SetHandleInformation function Null safety kernel32

int SetHandleInformation(
  1. int hObject,
  2. int dwMask,
  3. int dwFlags
)

Sets certain properties of an object handle.

BOOL SetHandleInformation(
  HANDLE hObject,
  DWORD  dwMask,
  DWORD  dwFlags
);

Implementation

int SetHandleInformation(int hObject, int dwMask, int dwFlags) {
  final _SetHandleInformation = _kernel32.lookupFunction<
      Int32 Function(IntPtr hObject, Uint32 dwMask, Uint32 dwFlags),
      int Function(
          int hObject, int dwMask, int dwFlags)>('SetHandleInformation');
  return _SetHandleInformation(hObject, dwMask, dwFlags);
}