windows api一日一练(dbghelp sdk)-001-ImagehlpApiVersion,ImagehlpApiVersionEx

本文介绍了如何使用ImagehlpApiVersion和ImagehlpApiVersionEx函数来获取和指定DbgHelp库的版本号,这对于确保应用程序与不同版本库之间的兼容性至关重要。文章还详细解释了当设置特定版本号时,StackWalk64函数的行为变化。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

日期:2009-10-14

分类:General

函数:

ImagehlpApiVersion 返回系统安装的DbgHelp库的版本号,

ImagehlpApiVersionEx:用来指定创建程序时刻使用的版本号

结构:

API_VERSION:库的版本信息,包括4个版本数据,用于上面的Version函数

――――――――下面是代码和注释――――――――――――――――――――

LPAPI_VERSION pVer = NULL;

pVer = ImagehlpApiVersion();

pVer->Revision = 4;

pVer = ImagehlpApiVersionEx(pVer);

――――――――下面是一些其他记录―――――――――――――――――――

这是我机器的文件,但貌似不一致

 

说明

 

不知道这个显示是怎么匹配的

也许下面的话有说明,可是我看不懂。。。

Remarks

Use the ImagehlpApiVersionEx function to indicate the version of the library with which the application was built. The library uses this information to ensure compatibility. For example, consider walking through kernel-mode callback stack frames (starting with Windows NT 4.0, User and GDI exist in kernel mode). If you call ImagehlpApiVersionEx to set the Revision member to version 4 or later, the StackWalk64 function will continue through a callback stack frame. Otherwise, if you set Revision to a version earlier than 4, StackWalk64 will stop at the kernel transition.

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值