UrlGetLocation function
Retrieves the location from a URL.
Syntax
LPCTSTR UrlGetLocation( _In_ PCTSTR pszURL );
Parameters
- pszURL [in]
-
Type: PCTSTR
A null-terminated string of maximum length INTERNET_MAX_URL_LENGTH that contains the location.
Return value
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.
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 |
UrlGetLocationW (Unicode) and UrlGetLocationA (ANSI) |