Check if my application was launched as a Windows Service
HowTo: How to check if my application was launched as a Windows Service
Some applications will want to implement slightly different behavior
when running as Windows Service (or UNIX Daemon), versus
when running from a command prompt or console window.
The Wrapper makes this easy to test for using the Wrapper's Java API.
Running as a service query example:
// Required imports:
if ( WrapperManager.isLaunchedAsService() )
// Application was launched as a Windows service or UNIX daemon.
// Application is running in a command prompt or console.