Support starting processes with a console on Windows 10.
authorIain Patterson <me@iain.cx>
Wed, 26 Apr 2017 12:55:18 +0000 (13:55 +0100)
committerIain Patterson <me@iain.cx>
Wed, 26 Apr 2017 13:40:14 +0000 (14:40 +0100)
commit897c7ad10ba9542b650f256445d953eff908b985
treea5461ae4a6ea4db4c167f562f850ff722f9ca2a4
parent140e503318f63208e8222a13e41b182299422c16
Support starting processes with a console on Windows 10.

By default we let the application inherit NSSM's console.  On Windows 10
Creators Update an application inheriting a console would fail to start with
error STATUS_DLL_INIT_FAILED.

Now we close our own console and call CreateProcess() with the
CREATE_NEW_CONSOLE flag if the application needs a console.

Unfortunately the ASCII art logo has to be sacrificed in the name of
progress...
console.cpp
io.cpp
service.cpp