如何从PDB文件获取GUID? [英] How can I get the GUID from a PDB file?

查看:503
本文介绍了如何从PDB文件获取GUID?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有人知道如何从PDB文件获取GUID?



我正在使用Microsoft的Debug Interface Access SDK



http://msdn.microsoft.com/en-us /library/f0756hat.aspx



,并在传入GUID时获取E_PDB_INVALID_SIG,我试图加载PDB时。



我只想知道PDB的GUID,所以我可以肯定它是不匹配的,而不只是一个可能被破坏的PDB。



<有没有可以做到这一点的工具?我试过dia2dump和dumpbin,但没有快乐...



非常感谢,



解决方案

有一个代码项目工具称为PDB Inspector ,应该能够帮助您。或者如果您需要以编程方式基本上调用:

  IDiaDataSource :: LoadDataFromPdb 
IDiaDataSource :: openSession
IDiaSession :: get_global_scope
IDiaSymbol :: get_guid


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

这篇关于如何从PDB文件获取GUID?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆