Skip to content

Latest commit

 

History

History
84 lines (66 loc) · 2.57 KB

nf-shlwapi-urlgetlocationw.md

File metadata and controls

84 lines (66 loc) · 2.57 KB
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.UrlGetLocationW
UrlGetLocationW function (shlwapi.h)
Retrieves the location from a URL. (Unicode)
UrlGetLocation
UrlGetLocation function [Windows Shell]
UrlGetLocationW
_win32_UrlGetLocation
shell.UrlGetLocation
shlwapi/UrlGetLocation
shlwapi/UrlGetLocationW
shell\UrlGetLocation.htm
shell
e75bde92-2ca0-4d34-a276-50b4eeceda1c
12/05/2018
UrlGetLocation, UrlGetLocation function [Windows Shell], UrlGetLocationA, UrlGetLocationW, _win32_UrlGetLocation, shell.UrlGetLocation, shlwapi/UrlGetLocation, shlwapi/UrlGetLocationA, shlwapi/UrlGetLocationW
shlwapi.h
Windows
Windows 2000 Professional, Windows XP [desktop apps only]
Windows 2000 Server [desktop apps only]
UrlGetLocationW (Unicode) and UrlGetLocationA (ANSI)
Shlwapi.lib
Shlwapi.dll (version 5.0 or later)
Windows
19H1
UrlGetLocationW
shlwapi/UrlGetLocationW
c++
APIRef
kbSyntax
DllExport
Shlwapi.dll
API-MS-Win-Core-url-l1-1-0.dll
KernelBase.dll
API-MS-Win-DownLevel-shlwapi-l1-1-0.dll
API-MS-Win-DownLevel-shlwapi-l1-1-1.dll
UrlGetLocation
UrlGetLocationA
UrlGetLocationW

UrlGetLocationW function

-description

Retrieves the location from a URL.

-parameters

-param pszURL [in]

Type: PCTSTR

A null-terminated string of maximum length INTERNET_MAX_URL_LENGTH that contains the location.

-returns

Type: LPCTSTR

Returns a pointer to a null-terminated string with the location, or NULL otherwise.

-remarks

The location is the segment of the URL starting with a ? or # character. If a file URL has a query string, the returned string includes the query string.

Note

The shlwapi.h header defines UrlGetLocation 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.