/NXCOMPAT (Compatible with Data Execution Prevention)
Indicates that an executable was tested to be compatible with the Windows Data Execution Prevention feature.
/NXCOMPAT[:NO]
/NXCOMPAT is on by default if a component requires Windows Vista (/SUBSYSTEM 6.0 and greater). See /SUBSYSTEM (Specify Subsystem) for more information.
/NXCOMPAT:NO can be used to explicitly specify an executable as not compatible with Data Execution Prevention.
For more information on Data Execution Prevention, see:
-
http://support.microsoft.com/default.aspx?scid=kb;en-us;875352
-
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/memory/base/data_execution_prevention.asp (also available in the MSDN CD library on Data Execution Prevention)
To set this linker option in the Visual Studio development environment
-
Open the project's Property Pages dialog box. For details, see Setting Visual C++ Project Properties.
-
Click the Linker folder.
-
Click the Command Line property page.
-
Type the option into the Additional Options box.
To set this linker option programmatically
-
See AdditionalOptions.