/NXCOMPAT (Compatible with Data Execution Prevention)
The latest version of this topic can be found at -NXCOMPAT (Compatible with Data Execution Prevention).
Indicates that an executable was tested to be compatible with the Windows Data Execution Prevention feature.
Syntax
/NXCOMPAT[:NO]
Remarks
By default, /NXCOMPAT is on.
/NXCOMPAT:NO can be used to explicitly specify an executable as incompatible with Data Execution Prevention.
For more information about Data Execution Prevention, see these articles:
A detailed description of the Data Execution Prevention (DEP) feature on the Microsoft Help and Support Web site
Data Execution Prevention on the MSDN Web site
Data Execution Prevention (Windows Embedded) on the MSDN Web site
To set this linker option in Visual Studio
Open the project Property Pages dialog box. For details, see Working with Project Properties.
Click the Linker folder.
Click the Command Line property page.
Type the option in the Additional Options box.
To set this linker option programmatically
- See AdditionalOptions.