NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

/SUBSYSTEM (Specify Subsystem)

Tells the operating system how to run the .exe file.

/SUBSYSTEM:{CONSOLE|WINDOWS|NATIVE|POSIX|WINDOWSCE}[,major[.minor]]

where,

CONSOLE
Win32 character-mode application. Console applications are given a console by the operating system. If main or wmain is defined, CONSOLE is the default.
WINDOWS
Application does not require a console, probably because it creates its own windows for interaction with the user. If WinMain or wWinMain is defined, WINDOWS is the default.
NATIVE
Device drivers for Windows NT.
POSIX
Application that runs with the POSIX subsystem in Windows NT.
WINDOWSCE
Application that runs on a Windows CE device.
major and minor (optional)
Specify the minimum required version of the subsystem:
  • The arguments are decimal numbers in the range 0 through 65,535.
  • The default is version 4.00 for CONSOLE, WINDOWS, and NATIVE; and version 19.90 for POSIX.
  • For /subsystem:windows and /subsystem:console, the version number must be 3.10 or higher.
  • For /subsystem:windowsce, the version must at least be 1.0.

    There are no upper bounds for version numbers.

The choice of subsystem affects the default starting address for the program. For more information, see the Entry-Point Symbol (/ENTRY:function) option.

See Also

Setting Linker Options | Linker Options | FAQ: Building Your Program