EnumProcesses function Null safety kernel32

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 K32EnumProcesses(
  DWORD   *lpidProcess,
  DWORD   cb,
  LPDWORD lpcbNeeded


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