GlobalLock
Locks a global memory object and returns a pointer to the first byte of the object's memory block.
See also: https://msdn.microsoft.com/en-us/library/windows/desktop/aa366584(v=vs.85).aspx
Syntax
GlobalLock( hMem )
Parameters
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.
Code
Declare Function GlobalLock Lib "kernel32" (ByVal hMem As Long) As Long
See also
- GlobalAlloc
- CopyStringToClipboard
- GetStringFromClipboard