ControlService method

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

Implementation

int ControlService(
  ffi.Pointer<SC_HANDLE__> hService,
  int dwControl,
  ffi.Pointer<LPSERVICE_STATUS> lpServiceStatus,
) {
  return (_ControlService ??=
      _dylib.lookupFunction<_c_ControlService, _dart_ControlService>(
          'ControlService'))(
    hService,
    dwControl,
    lpServiceStatus,
  );
}