我最近一直在研究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。