The GlobalDiscard function discards the specified global memory block. The lock count of the memory object must be zero.
HGLOBAL GlobalDiscard(
HGLOBAL hglbMem |
// handle to the global memory object |
); |
If the function succeeds, the return value is the handle of the memory object.
If the function fails, the return value is NULL. To get extended error information, call GetLastError.
GlobalDiscard discards only global objects that the calling process allocated with the GMEM_DISCARDABLE flag. If a process attempts to discard a fixed or locked object, the function fails.
Although GlobalDiscard discards the object’s memory block, the handle of the object remains valid. A process can subsequently pass the handle to the GlobalReAlloc function to allocate another global memory block identified by the same handle.
file: /Techref/os/win/api/win32/func/src/f43_13.htm, 2KB, , updated: 2000/4/7 11:19, local time: 2024/11/29 21:30,
18.223.206.84: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/f43_13.htm"> GlobalDiscard</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! |
.