Group: Shell Lightweight Utility APIs -- Path Functions - Library: shlwapi
Winsock: retrieving Web pages using sockets (HTTP, port 80)
HRESULT UrlGetPart(
LPCTSTR pszIn,
LPTSTR pszOut,
LPDWORD pcchOut,
DWORD dwPart,
DWORD dwFlags
);
DECLARE INTEGER UrlGetPart IN shlwapi;
STRING pszIn,;
STRING @ pszOut,;
INTEGER @ pcchOut,;
INTEGER dwPart,;
INTEGER dwFlags
pszIn [in] Null-terminated string of maximum length INTERNET_MAX_URL_LENGTH that contains the URL.
pszOut [out] A buffer that will receive a null-terminated string with the specified part of the URL.
pcchOut [in, out] Address of a value set to the number of characters in the pszOut buffer.
dwPart [in] Flags that specify which part of the URL to retrieve.
dwFlags [in] Flag that can be set to keep the URL scheme.
Returns an OLE success code if successful.