AttachConsole() isn't available in Windows 2000.
authorIain Patterson <me@iain.cx>
Tue, 12 Nov 2013 10:50:21 +0000 (10:50 +0000)
committerIain Patterson <me@iain.cx>
Tue, 12 Nov 2013 12:49:52 +0000 (12:49 +0000)
commite42e6900a5dad50b952d92c57344fdea2e13646e
tree19ee46c95c51f805eccb5937dd5d26ce4672ddea
parentce9eb5d4646a0e279eae2909a18fccb1197e15fb
AttachConsole() isn't available in Windows 2000.

Instead of calling AttachConsole() directory use a function pointer in
the new global imports struct.  It's safe to skip any attempt to attach
to the console when the function isn't available.
imports.cpp [new file with mode: 0644]
imports.h [new file with mode: 0644]
messages.mc
nssm.cpp
nssm.dsp
nssm.h
nssm.vcproj
process.cpp
service.cpp