Reference

UrlGetPartA(3w)

NAME

UrlGetPartA (SHLWAPI.@)

SYNOPSIS

HRESULT UrlGetPartA
(
LPCSTR pszIn,
LPSTR pszOut,
LPDWORD pcchOut,
DWORD dwPart,
DWORD dwFlags
)

DESCRIPTION

Retrieve part of a Url.

PARAMS

pszIn [In] Url to parse.

pszOut [Out] Destination for part of pszIn requested.

pcchOut [In] Size of pszOut.

[Out] length of pszOut string EXCLUDING ' ' if S_OK, otherwise needed size of pszOut INCLUDING ' '.

dwPart [In] URL_PART_ enum from "shlwapi.h".

dwFlags [In] URL_ flags from "shlwapi.h".

RETURNS

Success: S_OK. pszOut contains the part requested, pcchOut contains its length.

Failure: An HRESULT error code describing the error.

IMPLEMENTATION

Declared in "shlwapi.h".

Implemented in "dlls/shlwapi/url.c".

Debug channel "shell".

History