Skip to content

Latest commit

 

History

History
62 lines (43 loc) · 1.1 KB

HashData.md

File metadata and controls

62 lines (43 loc) · 1.1 KB

Home

Function name : HashData

Group: Shell Lightweight Utility APIs -- misc. functions - Library: shlwapi


Hashes an array of data.


Code examples:

Creating hash values for the list of names

Declaration:

HRESULT HashData(
	LPBYTE pbData,
	DWORD cbData,
	LPBYTE pbHash,
	DWORD cbHash
);  

FoxPro declaration:

DECLARE INTEGER HashData IN shlwapi;
	STRING  @ pbData,;
	INTEGER   cbData,;
	STRING  @ pbHash,;
	INTEGER   cbHash  

Parameters:

pbData [in] Pointer to the data array.

cbData [in] Number of elements in pbData.

pbHash [out] Value used to return 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: UrlHash.