The LocalFlags function returns information about the specified local memory object.
UINT LocalFlags(
HLOCAL hMem |
// handle of local memory object |
); |
If the function succeeds, the return value is a 32-bit value that specifies the allocation flags and the lock count for the memory object.
If the function fails, the return value is the LMEM_INVALID_HANDLE flag, indicating that the local handle is not valid. To get extended error information, call GetLastError.
The low-order byte of the low-order word of the return value contains the lock count of the object. To retrieve the lock count from the return value, use the LMEM_LOCKCOUNT mask with the bitwise AND (&) operator. The lock count of memory objects allocated with the LMEM_FIXED flag is always zero.
The high-order byte of the low-order word of the return value indicates the allocation flags of the memory object. It can be zero or any combination of the following flags:
Value |
Description |
LMEM_DISCARDABLE |
The object’s memory block can be discarded. |
LMEM_DISCARDED |
The object’s memory block has been discarded. |
GlobalFlags, LocalAlloc, LocalDiscard, LocalLock, LocalReAlloc, LocalUnlock
file: /Techref/os/win/api/win32/func/src/f54_7.htm, 3KB, , updated: 2000/4/7 12:19, local time: 2024/8/16 14:51,
3.138.60.73:LOG IN
|
©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://sxlist.com/TECHREF/os/win/api/win32/func/src/f54_7.htm"> LocalFlags</A> |
Did you find what you needed? |
Welcome to sxlist.com!sales, advertizing, & kind contributors just like you! Please don't rip/copy (here's why Copies of the site on CD are available at minimal cost. |
Welcome to sxlist.com! |
.