UrlGetLocationA function

Retrieves the location from a URL.

Syntax

LPCSTR UrlGetLocationA(
  PCSTR pszURL
);

Parameters

pszURL

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]
Target Platform Windows
Header shlwapi.h
Library Shlwapi.lib
DLL Shlwapi.dll (version 5.0 or later)