WORD GlobalPageUnlock(wSelector)
This function decrements the page-lock count for the block of memory identified by the wSelector parameter and, if the page-lock count reaches zero, allows the block of memory to move and to be paged to disk.
The GlobalPageLock function increments the page-lock count for the block of memory, and GlobalPageUnlock decrements the page-lock count. Page-locking operations can be nested, but each page lock must be balanced by a corresponding unlock.
Only libraries can call this function.
Parameter | Type/Description |
wSelector | WORD Specifies the selector of the memory to be page-unlocked. |
The return value specifies the page-lock count after the function has decremented it. If the function fails, the return value is zero.