// dispmprt.h
NTSTATUS DlMapMemoryEx(
IN PVOID DeviceHandle,
IN PHYSICAL_ADDRESS TranslatedAddress,
IN OUT PULONG Length,
IN PULONG InIoSpace,
IN HANDLE ProcessHandle,
IN OUT PVOID *VirtualAddress,
IN BOOLEAN MapToUserMode
);
View the official Windows Driver Kit DDI referenceNo description available.
Maps a range of bus-relative physical addresses of display memory into system space or into the virtual address space of a user-mode process.
DeviceHandleA handle that represents a display adapter.
TranslatedAddressLengthOn input, specifies the number of bytes of memory to map.
InIoSpacePointer to a variable that indicates the location of the range.
ProcessHandleVirtualAddressPointer to a variable that, on input, is either NULL or a handle to a user-mode process.
MapToUserModeThis function returns NTSTATUS.