强制.net 程序以32位模式运行

本文介绍如何使用.NET Framework SDK工具Corflags.exe修改PE头,强制应用程序在x64平台上以x86模式运行。具体步骤包括:通过Visual Studio 2008命令提示符导航到目标可执行文件位置,运行corflags /32BIT+ EXEName.exe,然后验证32位标志是否已设置。
摘要由CSDN通过智能技术生成

You can modify the PE header of the executable (using the "Corflags.exe" .NET Framework SDK utility) to force the executable to run in x86 mode on the x64 platform.

Information on "Corflags.exe" can be found here: http://www.request-response.com/blog/PermaLink,guid,cf345d71-cdc7-46b9-8c1c-eb21581a9222.aspx

The procedure is to:

  1. Go to the Start Menu, and Navigate to the "Microsoft Visual Studio 2008" folder, expand it and under the "Visual Studio Tools" folder, ran the "Visual Studio 2008 Command Prompt".
  2. In the command prompt, navigate to the folder where executable is located.
  3. Run the command "corflags /32BIT+ EXEName.exe"
  4. Run "corflags EXEName.exe" to verify that the "32BIT" flag was set to "1".
  5. You're done! You can now run the application properly.

转载于:https://www.cnblogs.com/himax/p/9883305.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值