UrlHash function

Syntax

Parameters

A null-terminated string of maximum length INTERNET_MAX_URL_LENGTH that contains the URL.

pbHash [out]

Type: BYTE*

A pointere to a buffer that, when this function returns successfully, receives the hashed array.

cbHash

Type: DWORD

The number of elements in the array at pbHash. It should be no larger than 256.

Return value

Type: HRESULT

If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

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.