GlobalUnlock function Null safety kernel32

int GlobalUnlock(
  1. int hMem
)

Decrements the lock count associated with a memory object that was allocated with GMEM_MOVEABLE. This function has no effect on memory objects allocated with GMEM_FIXED.

BOOL GlobalUnlock(
  HGLOBAL hMem
);

Implementation

int GlobalUnlock(int hMem) {
  final _GlobalUnlock = _kernel32.lookupFunction<Int32 Function(IntPtr hMem),
      int Function(int hMem)>('GlobalUnlock');
  return _GlobalUnlock(hMem);
}