如何用corflags查看dll版本

本文介绍了如何使用corflags工具更改程序集的PE头信息,包括32BIT标志,以改变程序集的行为特性。文中详细解释了不同配置下(如anycpu、x86、64-bit)PE和32BIT标志的组合方式,并建议开发者考虑使用编译器选项而非此工具来创建具有特定特性的二进制文件。

找到corflags.exe + dll位置    >corflags C:\Users\AGV-LS\Desktop\agvsz.common.dll

The most interesting aspect is the PE(Portable executable) and the 32BIT flag of the header. These combine to specify the assembly types. Here is how they would look like for:


·         anycpu: PE = PE32    and  32BIT = 0


·         x86:      PE = PE32    and  32BIT = 1


·         64-bit:  PE = PE32+  and  32BIT = 0


 


Using corflags tool, users can forcefully change the PE headers of any assembly to make them behave the way they want to. Users can force most of the flags to the values as wanted. However, it is advised to use compiler switches instead of this tool to create binaries with specific characteristics as desired.


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值