LocalUnlock

  BOOL LocalUnlock(hloc)    
  HLOCAL hloc; /* handle of local memory block */

The LocalUnlock function unlocks the specified local memory block. This function has no effect on fixed memory.

Parameters

hloc

Identifies the local memory block to be unlocked.

Return Value

The return value is FALSE if the block's reference count was decreased to zero. Otherwise, the return value is TRUE.

Comments

With movable or discardable memory, this function decrements (decreases by one) the block's lock count. The block is completely unlocked, and subject to moving or discarding, if the lock count is decreased to zero.

See Also

LocalLock