title: Conditionally hide console in C
body: <p>Currently I use <code>-Wl,--subsystem,windows</code> when compiling my application for windows so that it runs without a console window, however now I want to support a conditional console mode (e.g. as a command line or config parameter) so I need a way to only sometimes hide the console window. Is there a way to achieve this for windows?</p>