/NXCOMPAT (Compatible with Data Execution Prevention) Home
This page is specific to:.NET Framework Version:2.03.03.54.0
Visual C++ Linker Options
/NXCOMPAT (Compatible with Data Execution Prevention)

Indicates that an executable was tested to be compatible with the Windows Data Execution Prevention feature.

/NXCOMPAT[:NO]
Remarks

/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:

To set this linker option in the Visual Studio development environment

  1. Open the project's Property Pages dialog box. For details, see Setting Visual C++ Project Properties.

  2. Click the Linker folder.

  3. Click the Command Line property page.

  4. Type the option into the Additional Options box.

To set this linker option programmatically

See Also

Reference

Setting Linker Options
Linker Options

Community Content

NXCOMPAT won't work for XP
Added by:Thomas Lee
Windows XP's loader does not recognize the NXCOMPAT flag. For XPSP3 or later, call SetProcessDEPPolicy instead.
© 2009 Microsoft Corporation. All rights reserved.   Terms of Use | Trademarks | Privacy Statement
Page view tracker
Rate the Lightweight library
x
Lightweight builds on ScriptFree (loband) by adding features you've requested: a SearchBox and default code language selection.
Do you like the SearchBox?
Do you like the tabbed code blocks?
How useful is this topic?
Tell us more.
Thanks
x
You're helping to improve MSDN Online.
Feedback
Switch View
Classic
Lightweight Beta
ScriptFree
Switch View