GlobalUnlock
Decrements the lock count associated with a memory object
See also: https://msdn.microsoft.com/en-us/library/windows/desktop/aa366595(v=vs.85).aspx
Syntax
GlobalUnlock( hMem )
Parameters
Name | Type | Description |
---|---|---|
hMem | Long | Required. A handle to the global memory object returned by GlobalAlloc. |
Return value
Long : If the memory object is still locked after decrementing the lock count, the return value is a nonzero value. If the memory object is unlocked after decrementing the lock count, the function returns zero.
Code
Declare Function GlobalUnlock Lib "kernel32" (ByVal hMem As Long) As Long
See also
- GlobalAlloc
- CopyStringToClipboard
- GetStringFromClipboard