SymGetSourceFileChecksum function (dbghelp.h)

Retrieves the specified source file checksum from the source server.

Syntax

BOOL IMAGEAPI SymGetSourceFileChecksum(
  [in]  HANDLE  hProcess,
  [in]  ULONG64 Base,
  [in]  PCSTR   FileSpec,
  [out] DWORD   *pCheckSumType,
  [out] BYTE    *pChecksum,
  [in]  DWORD   checksumSize,
  [out] DWORD   *pActualBytesWritten
);

Parameters

[in] hProcess

A handle to a process. This handle must have been previously passed to the SymInitialize function.

[in] Base

The base address of the module.

[in] FileSpec

The name of the source file.

[out] pCheckSumType

On success, points to the checksum type.

[out] pChecksum

pointer to a buffer that receives the checksum. If NULL, then when the call returns pActualBytesWritten returns the number of bytes required.

[in] checksumSize

The size of the pChecksum buffer, in bytes.

[out] pActualBytesWritten

Pointer to the actual bytes written in the buffer.

Return value

If the function succeeds, the return value is TRUE.

If the function fails, the return value is FALSE. To retrieve extended error information, call GetLastError.

Requirements

Requirement Value
Target Platform Windows
Header dbghelp.h
Library Dbghelp.lib
DLL Dbghelp.dll
Redistributable DbgHelp.dll 10.0.15063 or later