// d3dkmddi.h
typedef enum _DXGK_ACCESS_MODE {
DXGK_ACCESS_MODE_KERNEL_MODE,
DXGK_ACCESS_MODE_USER_MODE
} DXGK_ACCESS_MODE;
View the official Windows Driver Kit DDI referenceNo description available.
DXGK_ACCESS_MODE describes the access mode that DxgkCbMapPhysicalMemory will provide when doing a mapping.
DXGK_ACCESS_MODE_KERNEL_MODEThe resulting mapping will be a kernel-mode virtual address. If the hPhysicalMemoryObject returned by DxgkCbCreatePhysicalMemoryObject is of type DXGK_PHYSICAL_MEMORY_TYPE_IO_SPACE, then AccessMode must be KernelMode.
DXGK_ACCESS_MODE_USER_MODEThe resulting mapping will be made in the context of the current process. The caller is expected to be in the context of the correct process during both map and unmap.
DXGK_ACCESS_MODE is provided in the DXGKARGCB_MAP_PHYSICAL_MEMORY structure that is passed to DxgkCbMapPhysicalMemory.
DxgkCbCreatePhysicalMemoryObject