UrlIs function
Tests whether a URL is a specified type.
Syntax
BOOL UrlIs( _In_ PCTSTR pszUrl, URLIS UrlIs );
Parameters
- pszUrl [in]
-
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?
Return value
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.
Requirements
|
Minimum supported client |
Windows 2000 Professional, Windows XP [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows 2000 Server [desktop apps only] |
|
Header |
|
|
Library |
|
|
DLL |
|
|
Unicode and ANSI names |
UrlIsW (Unicode) and UrlIsA (ANSI) |
See also