CurrentState Property

CurrentState property returns current state of the service.  

 LONG CurrentState;

  This property could have one of the following values:

TypeMeaning
RSA_ SERVICE_CONTINUE_PENDINGThe service continue is pending
RSA_ SERVICE_PAUSE_PENDINGThe service pause is pending
RSA_ SERVICE_PAUSEDThe service is paused
RSA_SERVICE_RUNNINGThe service is running
RSA_SERVICE_START_PENDINGThe service is starting
RSA_SERVICE_STOP_PENDINGThe service is stopping
RSA_SERVICE_STOPPEDThe service is not running