EnumProcesses function Null safety psapi

int EnumProcesses (
  1. Pointer<Uint32> lpidProcess,
  2. int cb,
  3. Pointer<Uint32> lpcbNeeded

Retrieves the process identifier for each process object in the system.

BOOL EnumProcesses(
  DWORD   *lpidProcess,
  DWORD   cb,
  LPDWORD lpcbNeeded


int EnumProcesses(
    Pointer<Uint32> lpidProcess, int cb, Pointer<Uint32> lpcbNeeded) {
  final _EnumProcesses = _psapi.lookupFunction<
      Int32 Function(
          Pointer<Uint32> lpidProcess, Uint32 cb, Pointer<Uint32> lpcbNeeded),
      int Function(Pointer<Uint32> lpidProcess, int cb,
          Pointer<Uint32> lpcbNeeded)>('EnumProcesses');
  return _EnumProcesses(lpidProcess, cb, lpcbNeeded);