Does anyone know how to get the GUID from a PDB file?
I'm using Microsoft's Debug Interface Access SDK
http://msdn.microsoft.com/en-us/library/f0756hat.aspx
and getting E_PDB_INVALID_SIG when passing in the GUID i expect when trying to load the PDB.
I'd just like to know the GUID of the PDB so I can be certain that it's mismatching and not just a PDB that's perhaps corrupted somehow.
Is there a tool that can do this? I've tried dia2dump and dumpbin, but with no joy...
Many thanks,
thoughton.
There is a Code Project tool called PDB Inspector that should be able to help you. Or if you need to do this programatically essentially you call:
IDiaDataSource::LoadDataFromPdb
IDiaDataSource::openSession
IDiaSession::get_global_scope
IDiaSymbol::get_guid