[Note: This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
[このトピックはプレリリース版のため将来変更される可能性があります。また、プレースホルダとしてブランクのトピックが含まれています。]
Retrieves the checksum type.
HRESULT get_checksumType (
DWORD* pRetVal
);
Parameters
- pRetVal
[out] Returns the checksum type.
Return Value
If successful, returns S_OK; otherwise, returns an error code.
Remarks
The checksum type is a value that can be mapped to a checksum algorithm. For example, the standard PDB file format can typically have one of the following values:
Checksum Type |
CryptoAPI Label |
Description |
---|---|---|
0 |
<none> |
No checksum present. |
1 |
CALG_MD5 |
checksum generated with the MD5 hashing algorithm. |
2 |
CALG_SHA1 |
checksum generated with the SHA1 hashing algorithm. |
The CryptoAPI labels are from the ALG_ID enumeration. For more information on hashing algorithms, consult the CryptoAPI section of the Microsoft Platform SDK.
To obtain the actual checksum bytes for the source file, call the IDiaSourceFile::get_checksum method.