CheckRemoteDebuggerPresent function Null safety kernel32

int CheckRemoteDebuggerPresent(
  1. int hProcess,
  2. Pointer<Int32> pbDebuggerPresent
)

Determines whether the specified process is being debugged.

BOOL CheckRemoteDebuggerPresent(
  HANDLE hProcess,
  PBOOL  pbDebuggerPresent
      );

Implementation

int CheckRemoteDebuggerPresent(int hProcess, Pointer<Int32> pbDebuggerPresent) {
  final _CheckRemoteDebuggerPresent = _kernel32.lookupFunction<
      Int32 Function(IntPtr hProcess, Pointer<Int32> pbDebuggerPresent),
      int Function(int hProcess,
          Pointer<Int32> pbDebuggerPresent)>('CheckRemoteDebuggerPresent');
  return _CheckRemoteDebuggerPresent(hProcess, pbDebuggerPresent);
}