HashData function

Hashes an array of data.

Syntax

LWSTDAPI HashData(
  BYTE  *pbData,
  DWORD cbData,
  BYTE  *pbHash,
  DWORD cbHash
);

Parameters

pbData

Type: BYTE*

A pointer to the data array.

cbData

Type: DWORD

The number of elements in the array at pbData.

pbHash

Type: BYTE*

A pointer to a value that, when this function returns successfully, receives the hashed array.

cbHash

Type: DWORD

The number of elements in 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.

Requirements

   
Minimum supported client Windows 2000 Professional, Windows XP [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header shlwapi.h
Library Shlwapi.lib
DLL Shlwapi.dll (version 5.0 or later)