函数参考


_WinAPI_UrlApplyScheme

Determines a scheme for a specified URL string, and returns a string with an appropriate prefix.

#Include <WinAPIEx.au3>
_WinAPI_UrlApplyScheme ( $sUrl [, $iFlags] )

参数

$sUrl The URL.
$iFlags [可选参数] The flags that specify how to determine the scheme. It can be a combination of the following values.

$URL_APPLY_DEFAULT
$URL_APPLY_GUESSSCHEME
$URL_APPLY_GUESSFILE
$URL_APPLY_FORCEAPPLY

返回值

Success The URL converted to the "//URL_string format" scheme.
Failure Empty string and sets the @error flag to non-zero, @extended flag may contain the system error code.

注意/说明

None

相关

详情参考

在MSDN中搜索


示例/演示


#Include <WinAPIEx.au3>

Opt('MustDeclareVars', 1)

Global $Url = 'www.microsoft.com'

ConsoleWrite(_WinAPI_UrlApplyScheme($Url) & @CR)