如何使用C#.net代码关闭数据执行保护(缓冲区安全检查)。 [英] How to turn off Data execution prevention (buffer security check) using C#.net code.

查看:385
本文介绍了如何使用C#.net代码关闭数据执行保护(缓冲区安全检查)。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


大家好,


我只需要为我的应用程序关闭数据执行保护(缓冲安全检查)方面的帮助 通过编程方式或者你能否告诉我任何最好的方法来实现这一点。


让我解释一下这个场景。


我们为我们开发了一些代理商产品,在测试阶段,我们观察到一些与"数据执行预防"相关的错误消息,并阻止我们的代理启动。我们在Windows,64位机器上观察到这种情况。


我们在关闭DEP后测试了这个应用程序。工作正常。


请建议您解决此问题的最佳解决方案。



问候,


Vidya


解决方案

您可以使用以下命令:


editbin.exe / NXCOMPAT:NO< PE的路径(即EXE,DLL)文件>


----

Nima Sharifimehr。

sbucsc at yahoo dot com




Hi All,

I need help on turning off Data execution prevention(bufer security check) only for my application through programatically or can you please suggest me any best way to accomplish this.

Let me explain the scenario.

We have developed some agents for our product, During testing phase we observed some error messages popping up related to "Data execution prevention",and stopping our agents to start. This behavior we observed on windows 7, 64 bit machine.

We have tested this application after turning off DEP . Its working fine.

Please suggest your best solution to overcome this problem.

Regards,

Vidya

解决方案

You can use the following command:

editbin.exe /NXCOMPAT:NO <path to your PE (i.e. EXE, DLL) file>

----
Nima Sharifimehr.
sbucsc at yahoo dot com



这篇关于如何使用C#.net代码关闭数据执行保护(缓冲区安全检查)。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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