在Visual Studio中启用DEP

时间:2013-11-10 17:27:01

标签: c++ visual-studio-2010

我最近一直在研究DEP,我使用Linker选项/ NXCOMPAT在Visual Studio下编译了我的代码。当我在调试器下运行可执行文件并转储ntdll!_KPROCESS结构时,我得到以下内容:

+0x096 Flags            : _KEXECUTE_OPTIONS
      +0x000 ExecuteDisable   : 0y0
      +0x000 ExecuteEnable    : 0y1
      +0x000 DisableThunkEmulation : 0y0
      +0x000 Permanent        : 0y1
      +0x000 ExecuteDispatchEnable : 0y0
      +0x000 ImageDispatchEnable : 0y0
      +0x000 DisableExceptionChainValidation : 0y1
      +0x000 Spare            : 0y1

表示DEP已禁用(ExecuteDisable == 0)。 我想在我的机器下添加硬件DEP。

1 个答案:

答案 0 :(得分:2)

了解DEP in MSDN,包括与单个应用相关的系统级设置和/NXCOMPAT linker option。可能还有与DEP相关的BIOS设置。