Function Reference


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

#include <WinAPIShPath.au3>
_WinAPI_UrlApplyScheme ( $sUrl [, $iFlags = 1] )


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

Return Value

Success: The URL converted to the "//URL_string format" scheme.
Failure: Sets the @error flag to non-zero, @extended flag may contain the HRESULT error code.

See Also

Search UrlApplyScheme in MSDN Library.


#include <WinAPIShPath.au3>

Local $sUrl = ''

ConsoleWrite(_WinAPI_UrlApplyScheme($sUrl) & @CRLF)

ConsoleWrite(_WinAPI_UrlApplyScheme('') & @CRLF)