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