Skip to content

Latest commit

 

History

History
57 lines (39 loc) · 1.08 KB

UrlHash.md

File metadata and controls

57 lines (39 loc) · 1.08 KB

Home

Function name : UrlHash

Group: Shell Lightweight Utility APIs -- Path Functions - Library: shlwapi


Hashes a URL string.


Code examples:

Creating two-byte hashes for a list of URLs

Declaration:

HRESULT UrlHash(
  LPCTSTR pszURL,
  LPBYTE pbHash,
  DWORD cbHash
);  

FoxPro declaration:

DECLARE INTEGER UrlHash IN shlwapi;
	STRING   pszURL,;
	STRING @ pbHash,;
	INTEGER  cbHash  

Parameters:

pszURL [in] null-terminated string of maximum length INTERNET_MAX_URL_LENGTH that contains the URL.

pbHash [out] Buffer to receive the hashed array.

cbHash [in] Number of elements in pbHash. It should be no larger than 256.


Return value:

Returns S_OK (0) if successful, or a standard OLE error value otherwise.


Comments:

See also: HashData.