NtSuspendProcess function Null safety

int NtSuspendProcess(
  1. int hWnd
)

The undocumented NtSuspendProcess function accepts a process handle and suspends that process. Return value is 0 for success, non-zero for failure.

BOOL NtSuspendProcess(
 HWND hWnd
);

Implementation

int NtSuspendProcess(int hWnd) {
  final _NtSuspendProcess = _ntdll.lookupFunction<Int32 Function(IntPtr hWnd),
      int Function(int hWnd)>('NtSuspendProcess');
  return _NtSuspendProcess(hWnd);
}