The GlobalFlags function returns information about the specified global memory object.
UINT GlobalFlags(
HGLOBAL hMem |
// handle to the global memory object |
); |
If the function succeeds, the return value is a 32-bit value specifying the allocation flags and the lock count for the memory object.
If the function fails, the return value is the GMEM_INVALID_HANDLE flag, indicating that the global 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 GMEM_LOCKCOUNT mask with the bitwise AND (&) operator. The lock count of memory objects allocated with the GMEM_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:
Flag |
Meaning |
GMEM_DDESHARE |
Memory was allocated for use by the dynamic data exchange (DDE) functions. Unlike Windows version |
GMEM_DISCARDABLE |
The object’s memory block can be discarded. |
GMEM_DISCARDED |
The object’s memory block has been discarded. |
GlobalAlloc, GlobalDiscard, GlobalLock, GlobalReAlloc, GlobalUnlock, LocalFlags
file: /Techref/os/win/api/win32/func/src/f43_16.htm, 3KB, , updated: 2000/4/7 11:19, local time: 2024/11/8 18:49,
18.119.167.75:LOG IN ©2024 PLEASE DON'T RIP! THIS SITE CLOSES OCT 28, 2024 SO LONG AND THANKS FOR ALL THE FISH!
|
©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://massmind.ecomorder.com/techref/os/win/api/win32/func/src/f43_16.htm"> GlobalFlags</A> |
Did you find what you needed? |
Welcome to ecomorder.com! |
Welcome to massmind.ecomorder.com! |
.