UrlIsW function (shlwapi.h)
Tests whether a URL is a specified type.
BOOL UrlIsW(
[in] PCWSTR pszUrl,
URLIS UrlIs
);
[in] pszUrl
Type: PCTSTR
A null-terminated string of maximum length INTERNET_MAX_URL_LENGTH that contains the URL.
UrlIs
Type: URLIS
The type of URL to be tested for. This parameter can take one of the following values.
Attempt to determine a valid scheme for the URL.
Does the URL string end with a directory?
Is the URL a file URL?
Does the URL have an appended query string?
Is the URL a URL that is not typically tracked in navigation history?
Is the URL opaque?
Is the URL valid?
Type: BOOL
For all but one of the URL types, UrlIs returns TRUE if the URL is the specified type, or FALSE if not.
If UrlIs is set to URLIS_APPLIABLE, UrlIs will attempt to determine the URL scheme. If the function is able to determine a scheme, it returns TRUE, or FALSE otherwise.
Σημείωση
The shlwapi.h header defines UrlIs as an alias that automatically selects the ANSI or Unicode version of this function based on the definition of the UNICODE preprocessor constant. Mixing usage of the encoding-neutral alias with code that is not encoding-neutral can lead to mismatches that result in compilation or runtime errors. For more information, see Conventions for Function Prototypes.
Requirement | Value |
---|---|
Minimum supported client | Windows 2000 Professional, Windows XP [desktop apps only] |
Minimum supported server | Windows 2000 Server [desktop apps only] |
Target Platform | Windows |
Header | shlwapi.h |
Library | Shlwapi.lib |
DLL | Shlwapi.dll (version 5.0 or later) |