Search notes:

EXE

An executable is bound to a subsystem. This subsystem is specified when the executable is linked with the /subsystem linker option.

See also

The registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Image File Execution Options and its sub key progName.exe.
Entry point
CorFlags.exe allows to set or clear a few bits from the CorFlags section of the header of a PE image.

Index