CloseHandle function Null safety kernel32

int CloseHandle(
  1. int hObject
)

Closes an open object handle.

BOOL CloseHandle(
  HANDLE hObject
);

Implementation

int CloseHandle(int hObject) {
  final _CloseHandle = _kernel32.lookupFunction<Int32 Function(IntPtr hObject),
      int Function(int hObject)>('CloseHandle');
  return _CloseHandle(hObject);
}