1 out of 3 rated this helpful - Rate this topic

HashData function

Applies to: desktop apps only

Hashes an array of data.

Syntax

HRESULT HashData(
  __in   BYTE *pbData,
  DWORD cbData,
  __out  BYTE *pbHash,
  DWORD cbHash
);

Parameters

pbData [in]

Type: BYTE*

A pointer to the data array.

cbData

Type: DWORD

The number of elements in the array at pbData.

pbHash [out]

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

Minimum supported server

Windows 2000 Server

Header

Shlwapi.h

Library

Shlwapi.lib

DLL

Shlwapi.dll (version 5.0 or later)

 

 

Send comments about this topic to Microsoft

Build date: 3/7/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ