Dim myMNCPServiceControler As ServiceController myMNCPServiceControler = New ServiceController(mncpServiceManager) If MNCPServiceManagerStatus = ServiceControllerStatus.Stopped.ToString() Or MNCPServiceManagerStatus = ServiceControllerStatus.Running.ToString() Then myMNCPServiceControler.Pause() myMNCPServiceControler.Refresh() End If
myMNCPServiceControler.CanPauseAndContinue
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)