// ntddk.h
NTSTATUS MmMapViewInSystemSpace(
PVOID Section,
PVOID *MappedBase,
PSIZE_T ViewSize
);
View the official Windows Driver Kit DDI referenceNo description available.
The MmMapViewInSystemSpace function maps the specified section into the system's address space.
SectionSupplies a pointer to the section to map.
MappedBaseContains the address where the section was mapped.
ViewSizeSupplies the size of the view to map. If this is specified as zero, the whole section is mapped. Returns the actual size mapped.
This function returns true if the map view operation was successful.