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. |
在MSDN中搜索
#Include <WinAPIEx.au3>
Opt('MustDeclareVars', 1)
Global $Url = 'www.microsoft.com'
ConsoleWrite(_WinAPI_UrlApplyScheme($Url) & @CR)