Desktop Functions: Smart Device Functions:
|
Search Results for "ControlService" in [All]advapi32
public static extern bool ControlService(IntPtr hService, SERVICE_CONTROL dwControl, ref SERVICE_STATUS lpServiceStatus);
Public Function ControlService(ByVal hService As IntPtr, ByVal dwControl As SERVICE_CONTROL, ByRef lpServiceStatus As SERVICE_STATUS) As Boolean
Declare Function ControlService Lib "advapi32.dll" (ByVal hService As Long, ByVal lControlCode As Long, ByVal lpServiceStatus As SERVICE_STATUS) As Boolean
bool res = Tools.ControlService(m_serv, SERVICE_CONTROL.STOP, ref stat);
private void DoControlService (SERVICE_CONTROL aServiceControl)
if (!Interop.ControlService(serviceHandle, aServiceControl, ref serviceStatus))
internal static extern bool ControlService (
/// Required to call the ControlService function to stop the service.
/// Required to call the ControlService function to pause or continue
/// Required to call the ControlService function to specify a user-defined
''' Required to call the ControlService function to stop the service.
''' Required to call the ControlService function to pause or continue
''' Required to call the ControlService function to specify a user-defined StructuresSee ControlService for SERVICE_STATE definition. |