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