Hashes a URL string.
Syntax
HRESULT UrlHash(
LPCTSTR pszURL,
LPBYTE pbHash,
DWORD cbHash
);
Parameters
- pszURL
-
[in] A null-terminated string of maximum length INTERNET_MAX_URL_LENGTH that contains the URL.
- pbHash
-
[out] A buffer to receive the hashed array.
- cbHash
-
[in] The number of elements in pbHash. It should be no larger than 256.
Return Value
Returns S_OK if successful, or a standard OLE error value otherwise.
Remarks
To hash a URL into a single byte, set cbHash = sizeof(BYTE) and pbHash = (LPBYTE)&bHashedValue, where bHashedValue is a one-byte buffer. To hash a URL into a DWORD, set cbHash = sizeof(DWORD) and pbHash = (LPBYTE)&dwHashedValue, where dwHashedValue is a DWORD buffer.
Function Information
| Minimum DLL Version | shlwapi.dll version 5.0 or later |
|---|
| Custom Implementation | No |
|---|
| Header | shlwapi.h |
|---|
| Import library | shlwapi.lib |
|---|
| Minimum operating systems |
Windows 2000, Windows NT 4.0 with Internet Explorer 5, Windows 98, Windows 95 with Internet Explorer 5 |
|---|
| Unicode | Implemented as
ANSI and Unicode versions. |
|---|
See Also
HashData