使用调试帮助库(dbghelp.lib)获取函数原型 [英] Get function prototype with Debug Help Library (dbghelp.lib)

查看:512
本文介绍了使用调试帮助库(dbghelp.lib)获取函数原型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想找到一种获取Windows API函数原型的方法.实际上,我使用调试帮助库来获取此信息.但是,

I would like to find a way to get function prototypes of Windows API. Actually, I use the Debug Help Library in order to get this information. But,

符号不会导出有关函数原型的任何信息.

symbols which are provided by the Debug Help Library don't export any information about function prototypes.

是否有与SymSetOptions一起使用的特定标志?

Is there a specific flag to use with SymSetOptions ?

 

实际上我使用以下代码:

Actually I use this code :

SymSetOptions(SYMOPT_LOAD_LINES | SYMOPT_ALLOW_ZERO_ADDRESS | SYMOPT_CASE_INSENSITIVE |&SYB; SYMOPT_DEFERRED_LOADS | SYMOPT_INCLUDE_32BIT_MODULES | SYMOPT_DEBUG);
SymInitialize(GetCurrentProcess(),0,TRUE);

SymSetOptions(SYMOPT_LOAD_LINES | SYMOPT_ALLOW_ZERO_ADDRESS | SYMOPT_CASE_INSENSITIVE|  SYMOPT_DEFERRED_LOADS | SYMOPT_INCLUDE_32BIT_MODULES | SYMOPT_DEBUG);
SymInitialize(GetCurrentProcess(), 0, TRUE);

然后使用SymLoadModule64和SymEnumSymbols

then SymLoadModule64 and SymEnumSymbols

 

有什么想法吗?

 

谢谢.

 

 

 

推荐答案

Microsoft Symbol Server上的PBD被剥离,并且不包含函数参数信息.

PBDs on the Microsoft Symbol Server are stripped and do not contain function parameter information.

-斯科特

 


这篇关于使用调试帮助库(dbghelp.lib)获取函数原型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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