UID | title | description | helpviewer_keywords | old-location | tech.root | ms.assetid | ms.date | ms.keywords | req.header | req.include-header | req.target-type | req.target-min-winverclnt | req.target-min-winversvr | req.kmdf-ver | req.umdf-ver | req.ddi-compliance | req.unicode-ansi | req.idl | req.max-support | req.namespace | req.assembly | req.type-library | req.lib | req.dll | req.irql | targetos | req.typenames | req.redist | ms.custom | f1_keywords | dev_langs | topic_type | api_type | api_location | api_name | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
NF:shlwapi.UrlIsA |
UrlIsA function (shlwapi.h) |
Tests whether a URL is a specified type. (ANSI) |
|
shell\UrlIs.htm |
shell |
2e83c953-b4c5-4411-90ca-49ffb94ee374 |
12/05/2018 |
URLIS_APPLIABLE, URLIS_DIRECTORY, URLIS_FILEURL, URLIS_HASQUERY, URLIS_NOHISTORY, URLIS_OPAQUE, URLIS_URL, UrlIs, UrlIs function [Windows Shell], UrlIsA, UrlIsW, _win32_UrlIs, shell.UrlIs, shlwapi/UrlIs, shlwapi/UrlIsA, shlwapi/UrlIsW |
shlwapi.h |
Windows |
Windows 2000 Professional, Windows XP [desktop apps only] |
Windows 2000 Server [desktop apps only] |
UrlIsW (Unicode) and UrlIsA (ANSI) |
Shlwapi.lib |
Shlwapi.dll (version 5.0 or later) |
Windows |
19H1 |
|
|
|
|
|
|
Tests whether a URL is a specified type.
Type: PCTSTR
A null-terminated string of maximum length INTERNET_MAX_URL_LENGTH that contains the URL.
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.
Note
The shlwapi.h header defines UrlIs as an alias which 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 not encoding-neutral can lead to mismatches that result in compilation or runtime errors. For more information, see Conventions for Function Prototypes.