BOOL GlobalUnfix(hMem)
This function unlocks the global memory block specified by the hMem parameter.
GlobalUnfix decreases the block's lock count by one. The block is completely unlocked and subject to moving or discarding if the lock count is decreased to zero. Other functions also can affect the lock count of a memory object. See the description of the GlobalFlags function for a list of the functions that affect the lock count.
Each time an application calls GlobalFix for an object, it must eventually call Global-Unfix for the object.
Parameter | Type/Description |
hMem | HANDLE Identifies the global memory block to be unlocked. |
The return value specifies the outcome of the function. It is zero if the block's lock count was decreased to zero. Otherwise, the return value is nonzero.