GetHandleInformation function Null safety kernel32

int GetHandleInformation(
  1. int hObject,
  2. Pointer<Uint32> lpdwFlags
)

Retrieves certain properties of an object handle.

BOOL GetHandleInformation(
  HANDLE  hObject,
  LPDWORD lpdwFlags
);

Implementation

int GetHandleInformation(int hObject, Pointer<Uint32> lpdwFlags) {
  final _GetHandleInformation = _kernel32.lookupFunction<
      Int32 Function(IntPtr hObject, Pointer<Uint32> lpdwFlags),
      int Function(
          int hObject, Pointer<Uint32> lpdwFlags)>('GetHandleInformation');
  return _GetHandleInformation(hObject, lpdwFlags);
}