5

From http://blogs.msdn.com/b/michael_howard/archive/2007/04/04/codegear-s-new-delphi-2007-supports-aslr-and-nx.aspx, I am using {$SETPEOPTFLAGS $140} in my project file right under the program name to get address space layout randomization (ASLR) and DEP.

How can one tell if the flags are set in the PE? PeStudio seems to have the info, but doesn't seem to work.

Thanks.

Warren P
  • 65,725
  • 40
  • 181
  • 316
BrownFox97
  • 393
  • 1
  • 3
  • 9

2 Answers2

5

The easiest way that I know is to use Process Explorer on the running app. Just double-click on the process and read it out of this dialog:

enter image description here

David Heffernan
  • 601,492
  • 42
  • 1,072
  • 1,490
0

Need to add both header inside the application project file:

{$SETPEOPTFLAGS $140} //add this line

{$SetPEOptFlags $140} //and this line

between begin and end.