Export (0) Print
Expand All

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

Shlwapi.h

Library

Shlwapi.lib

DLL

Shlwapi.dll (version 5.0 or later)

Unicode and ANSI names

UrlGetLocationW (Unicode) and UrlGetLocationA (ANSI)

 

 

Community Additions

ADD
Show:
© 2014 Microsoft