Access/VBA Library


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

See also:


GlobalLock( hMem )
Name Type Description
hMem Long Required. A handle to the global memory object returned by GlobalAlloc.
Return value

Long : If the function succeeds, the return value is a pointer to the first byte of the memory block. Otherwise NULL.

Declare Function GlobalLock Lib "kernel32" (ByVal hMem As Long) As Long

See also

  • GlobalAlloc
  • CopyStringToClipboard
  • GetStringFromClipboard