Platform SDK: Debugging and Error Handling

DigestFunction

The DigestFunction function is 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 (
  DIGEST_HANDLE refdata, 
  PBYTE pData, 
  DWORD dwLength
);

Parameters

refdata
[in] User-supplied handle to the digest. This value is passed as a parameter to the ImageGetDigestStream function.
pData
[in] Specifies the data stream.
dwLength
[in] Specifies the length 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.

Requirements

  Windows NT/2000: Requires Windows NT 4.0 or later.
  Windows 95/98: Requires Windows 95 or later. Available as a redistributable for Windows 95.
  Header: Declared in Imagehlp.h.

See Also

Image Help Library Overview, ImageHlp Functions, ImageGetDigestStream