private bool bContinueWindowsService() { if (!bWindowsServiceInstaled()) { bWindowsServiceInstall(); } if (!bWindowsServiceInstaled()) { return(false); } System.ServiceProcess.ServiceController scSiscoMensagem = scReturnSiscoMensagem(); switch (scSiscoMensagem.Status) { case System.ServiceProcess.ServiceControllerStatus.PausePending: case System.ServiceProcess.ServiceControllerStatus.Paused: try { scSiscoMensagem.Continue(); }catch { return(false); } break; } return(this.State == mdlConstantes.SiscoMensagemState.Running); }