{
WrapperWin32Service service = WrapperManager.sendServiceControlCode(
m_serviceName, WrapperManager.SERVICE_CONTROL_CODE_INTERROGATE );
}
*/
WrapperWin32Service service = WrapperManager.sendServiceControlCode(
m_serviceName, WrapperManager.SERVICE_CONTROL_CODE_INTERROGATE );
System.out.println( Main.getRes().getString( "Service after interrogate: {0}", service ) );
}
catch ( WrapperServiceException e )
{
e.printStackTrace();
}
}
else if ( action.equals( "service_start" ) )
{
try
{
WrapperWin32Service service = WrapperManager.sendServiceControlCode(
m_serviceName, WrapperManager.SERVICE_CONTROL_CODE_START );
System.out.println( Main.getRes().getString( "Service after start: {0}", service ) );
}
catch ( WrapperServiceException e )
{
e.printStackTrace();
}
}
else if ( action.equals( "service_stop" ) )
{
try
{
WrapperWin32Service service = WrapperManager.sendServiceControlCode(
m_serviceName, WrapperManager.SERVICE_CONTROL_CODE_STOP );
System.out.println( Main.getRes().getString( "Service after stop: {0}", service ) );
}
catch ( WrapperServiceException e )
{
e.printStackTrace();
}
}
else if ( action.equals( "service_user" ) )
{
try
{
for ( int i = 128; i < 256; i+=10 )
{
WrapperWin32Service service = WrapperManager.sendServiceControlCode(
m_serviceName, i );
System.out.println( Main.getRes().getString( "Service after user code {0} : {1}", new Integer( i ), service ) );
}
}
catch ( WrapperServiceException e )