EnumServicesStatusA method

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

Implementation

int EnumServicesStatusA(
  ffi.Pointer<SC_HANDLE__> hSCManager,
  int dwServiceType,
  int dwServiceState,
  ffi.Pointer<LPENUM_SERVICE_STATUSA> lpServices,
  int cbBufSize,
  ffi.Pointer<ffi.Uint64> pcbBytesNeeded,
  ffi.Pointer<ffi.Uint64> lpServicesReturned,
  ffi.Pointer<ffi.Uint64> lpResumeHandle,
) {
  return (_EnumServicesStatusA ??= _dylib.lookupFunction<
      _c_EnumServicesStatusA,
      _dart_EnumServicesStatusA>('EnumServicesStatusA'))(
    hSCManager,
    dwServiceType,
    dwServiceState,
    lpServices,
    cbBufSize,
    pcbBytesNeeded,
    lpServicesReturned,
    lpResumeHandle,
  );
}