GlobalFree function Null safety kernel32

int GlobalFree(
  1. int hMem
)

Frees the specified global memory object and invalidates its handle.

HGLOBAL GlobalFree(
  _Frees_ptr_opt_ HGLOBAL hMem
);

Implementation

int GlobalFree(int hMem) {
  final _GlobalFree = _kernel32.lookupFunction<IntPtr Function(IntPtr hMem),
      int Function(int hMem)>('GlobalFree');
  return _GlobalFree(hMem);
}