Check for administrator privileges.
authorIain Patterson <me@iain.cx>
Sat, 8 Oct 2011 10:02:51 +0000 (11:02 +0100)
committerIain Patterson <me@iain.cx>
Tue, 11 Oct 2011 10:05:22 +0000 (11:05 +0100)
commitb99cfc38fcf4fbf5c87e23f93a02d1d6a6d931ca
tree091c680c1a0d9adad728fcbf8ae94d28d76a7679
parent13a14267e612fb6a28ddef57f30f9de2685fc2ff
Check for administrator privileges.

If nssm is run without an administrator token it will fail to install or
remove services.  Check for the token and bomb out early rather than
waste the user's time filling in the form only to find the service can't
be managed.
nssm.cpp