20 CComPtr<IDiaSourceFile> DiaSourceFile)
21 : Session(PDBSession), SourceFile(DiaSourceFile) {}
29 return (S_OK == SourceFile->get_uniqueId(&
Id)) ?
Id : 0;
34 HRESULT Result = SourceFile->get_checksum(0, &ByteSize,
nullptr);
37 std::vector<BYTE> ChecksumBytes(ByteSize);
38 Result = SourceFile->get_checksum(ByteSize, &ByteSize, &ChecksumBytes[0]);
41 return std::string(ChecksumBytes.begin(), ChecksumBytes.end());
46 HRESULT Result = SourceFile->get_checksumType(&
Type);
52 std::unique_ptr<IPDBEnumChildren<PDBSymbolCompiland>>
54 CComPtr<IDiaEnumSymbols> DiaEnumerator;
55 HRESULT Result = SourceFile->get_compilands(&DiaEnumerator);
59 auto Enumerator = std::unique_ptr<IPDBEnumSymbols>(
61 return std::unique_ptr<IPDBEnumChildren<PDBSymbolCompiland>>(