ControlService function advapi32

int ControlService(
  1. int hService,
  2. int dwControl,
  3. Pointer<SERVICE_STATUS> lpServiceStatus
)

Sends a control code to a service.

BOOL ControlService(
  [in]  SC_HANDLE        hService,
  [in]  DWORD            dwControl,
  [out] LPSERVICE_STATUS lpServiceStatus
);

Implementation

int ControlService(
        int hService, int dwControl, Pointer<SERVICE_STATUS> lpServiceStatus) =>
    _ControlService(hService, dwControl, lpServiceStatus);