WORD GlobalPageLock(wSelector)
This function increments the page-lock count of the memory associated with the speci-fied global selector. As long as its page-lock count is nonzero, the data which the selector references is guaranteed to remain in memory at the same physical address and to remain paged in.
GlobalPageLock increments the page-lock count for the block of memory, and the GlobalPageUnlock function decrements the page-lock count. Page-locking operations can be nested, but each page lock must be balanced by a corresponding unlock.
Parameter | Type/Description |
wSelector | WORD Specifies the selector of the memory to be page-locked. |
The return value specifies the page-lock count after the function has incremented it. If the function fails, the return value is zero.
An application should not use this function unless it is absolutely necessary. Use of this function violates preferred Windows programming practices. It is intended to be used for dynamically allocated data that must be accessed at interrupt time. For this reason, it must only be called from a DLL.