OpenProcessToken method

int OpenProcessToken(
  1. Pointer<Void> ProcessHandle,
  2. int DesiredAccess,
  3. Pointer<Pointer<Void>> TokenHandle
)

Implementation

int OpenProcessToken(
  ffi.Pointer<ffi.Void> ProcessHandle,
  int DesiredAccess,
  ffi.Pointer<ffi.Pointer<ffi.Void>> TokenHandle,
) {
  return (_OpenProcessToken ??=
      _dylib.lookupFunction<_c_OpenProcessToken, _dart_OpenProcessToken>(
          'OpenProcessToken'))(
    ProcessHandle,
    DesiredAccess,
    TokenHandle,
  );
}