LocalFlags

2.x

  UINT LocalFlags(hloc)    
  HLOCAL hloc; /* handle of local memory object */

The LocalFlags function retrieves information about the given local memory object.

Parameters

hloc

Identifies the local memory object.

Return Value

The low-order byte of the return value contains the lock count of the object; the high-order byte contains either LMEM_DISCARDABLE (object has been marked as discardable) or LMEM_DISCARDED (object has been discarded).

Comments

To retrieve the lock count from the return value, use the LMEM_LOCKCOUNT mask.

See Also

LocalAlloc, LocalLock, LocalReAlloc, LocalUnlock