Decrements the lock count associated with a memory object allocated with AllocHGlobal.

UnlockHGlobal(nHandle)

Parameters

nHandle

A handle to a memory block returned from AllocHGlobal.

Return Value

A memory handle can be locked multiple times.
The function returns 1 if the handle is completly unlocked or 2 if there are still locks.

See Also

Reference

AllocHGlobal
AllocMem
AllocMemTo
AMemBlocks
CompactMem
FreeHGlobal
FreeMem
FreePMem
FreeRefArray
LockHGlobal
ReAllocHGlobal
ReAllocMem
SizeOfMem
ValidateMem

Used WinApi functions

GlobalUnlock