DXGK_ACCESS_MODE - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// 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 reference

NtDoc

No description available.

Windows Driver Kit DDI reference (ne-d3dkmddi-dxgk_access_mode)

Description

DXGK_ACCESS_MODE describes the access mode that DxgkCbMapPhysicalMemory will provide when doing a mapping.

Constants

DXGK_ACCESS_MODE_KERNEL_MODE

The 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_MODE

The 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.

Remarks

DXGK_ACCESS_MODE is provided in the DXGKARGCB_MAP_PHYSICAL_MEMORY structure that is passed to DxgkCbMapPhysicalMemory.

See also

DXGKARGCB_MAP_PHYSICAL_MEMORY

DxgkCbCreatePhysicalMemoryObject

DxgkCbMapPhysicalMemory

DxgkCbUnmapPhysicalMemory