WORD LocalFlags(hMem)
This function returns information about the specified local memory block.
| Parameter | Type/Description |
| hMem | HANDLE Identifies the local memory block. |
The return value contains one of the following memory-allocation flags in the high byte:
| Value | Meaning |
| LMEM_DISCARDABLE | Block is marked as discardable. |
| LMEM_DISCARDED | Block has been discarded. |
The low byte of the return value contains the reference count of the block. Use the LMEM_LOCKCOUNT mask to retrieve the lock-count value from the return value.