EnumServicesStatusW method

int EnumServicesStatusW(
  1. Pointer<SC_HANDLE__> hSCManager,
  2. int dwServiceType,
  3. int dwServiceState,
  4. Pointer<LPENUM_SERVICE_STATUSW> lpServices,
  5. int cbBufSize,
  6. Pointer<Uint64> pcbBytesNeeded,
  7. Pointer<Uint64> lpServicesReturned,
  8. Pointer<Uint64> lpResumeHandle,
)

Implementation

int EnumServicesStatusW(
  ffi.Pointer<SC_HANDLE__> hSCManager,
  int dwServiceType,
  int dwServiceState,
  ffi.Pointer<LPENUM_SERVICE_STATUSW> lpServices,
  int cbBufSize,
  ffi.Pointer<ffi.Uint64> pcbBytesNeeded,
  ffi.Pointer<ffi.Uint64> lpServicesReturned,
  ffi.Pointer<ffi.Uint64> lpResumeHandle,
) {
  return (_EnumServicesStatusW ??= _dylib.lookupFunction<
      _c_EnumServicesStatusW,
      _dart_EnumServicesStatusW>('EnumServicesStatusW'))(
    hSCManager,
    dwServiceType,
    dwServiceState,
    lpServices,
    cbBufSize,
    pcbBytesNeeded,
    lpServicesReturned,
    lpResumeHandle,
  );
}