void GlobalUnfix(hglb) | |||||
HGLOBAL hglb; | /* handle of global memory to unlock | */ |
The GlobalUnfix function cancels the effects of the GlobalFix function and allows a global memory object to be moved in linear memory.
hglb
Identifies the global memory object to be unlocked.
This function does not return a value.
This function interferes with effective Windows memory management and can result in linear-address fragmentation. Few applications need to fix memory in linear address space.
Each time an application calls the GlobalFix function for an object, it must eventually call the GlobalUnfix function for the object.
GlobalUnfix decrements (decreases by one) the object's lock count and returns the new lock count in the CX register. The object is completely unlocked and subject to moving or discarding if the lock count is decremented to zero. Other functions also can affect the lock count of a memory object. For a list of these functions, see the description of the GlobalFlags function.