// dispmprt.h
PVOID DlLockBuffer(
PVOID DeviceHandle,
PVOID BaseAddress,
ULONG Length,
VP_LOCK_OPERATION Operation
);
View the official Windows Driver Kit DDI referenceNo description available.
Probes the specified buffer, makes the buffer's memory pages resident in memory, and locks the physical pages mapped by the virtual address range.
DeviceHandleA handle that represents a display adapter.
BaseAddressSpecifies the virtual address of the buffer to be locked.
LengthSpecifies the length in bytes of the buffer to be locked.
OperationSpecifies the type of operation for which the caller wants the access rights probed and the pages locked.
This function returns PVOID.