GlobalLock function Null safety kernel32

Pointer<NativeType> GlobalLock(
  1. int hMem
)

Locks a global memory object and returns a pointer to the first byte of the object's memory block.

LPVOID GlobalLock(
  HGLOBAL hMem
);

Implementation

Pointer GlobalLock(int hMem) {
  final _GlobalLock = _kernel32.lookupFunction<Pointer Function(IntPtr hMem),
      Pointer Function(int hMem)>('GlobalLock');
  return _GlobalLock(hMem);
}