DigestFunction Callback Function

Debug Help Library

DigestFunction Callback Function

An application-defined callback function used by the ImageGetDigestStream function to process data.

The DIGEST_FUNCTION type defines a pointer to this callback function. DigestFunction is a placeholder for the application-defined function name.

BOOL DigestFunction(
  [in]                 DIGEST_HANDLE refdata,
  [in]                 PBYTE pData,
  [in]                 DWORD dwLength
);

Parameters

refdata

A user-supplied handle to the digest. This value is passed as a parameter to the ImageGetDigestStream function.

pData

The data stream.

dwLength

The size of the data stream, in bytes.

Return Value

If the function succeeds, the return value should be TRUE. If the function fails, the return value should be FALSE.

Remarks

All ImageHlp functions, such as this one, are single threaded. Therefore, calls from more than one thread to this function will likely result in unexpected behavior or memory corruption. To avoid this, you must synchronize all concurrent calls from more than one thread to this function.

Requirements

Client

Requires Windows Vista, Windows XP, Windows 2000 Professional, Windows NT Workstation 4.0, Windows Me, Windows 98, or Windows 95.

Server

Requires Windows Server 2008, Windows Server 2003, Windows 2000 Server, or Windows NT Server 4.0.

Header

Declared in Imagehlp.h.

See Also

ImageHlp FunctionsImageGetDigestStream


Send comments about this topic to Microsoft

Build date: 9/25/2007

© 2007 Microsoft Corporation. All rights reserved.