// dispmprt.h
DXGKDDI_GETMMIORANGECOUNT DxgkddiGetmmiorangecount;
NTSTATUS DxgkddiGetmmiorangecount(
HANDLE Context,
DXGKARG_GETMMIORANGECOUNT *pArgs
)
{...}
View the official Windows Driver Kit DDI referenceNo description available.
Gets the number of memory ranges in the virtual device's MMIO (memory mapped input output) BARs (base address registers).
ContextA handle to the device context.
pArgsPointer to a DXGKARG_GETMMIORANGECOUNT structure.
Returns:
//Declaration
DXGKDDI_GETMMIORANGECOUNT DxgkddiGetmmiorangecount;
// Definition
NTSTATUS DxgkddiGetmmiorangecount
(
HANDLE Context
DXGKARG_GETMMIORANGECOUNT * pArgs
)
{...}
This function will get the total count of memory rages that make up each of the virtual device BARs. Each range represent a group of pages that is either directly mapped from one of the physical device BARs, intercepted by the software virtual device (but still backed by physical device memory), or completely virtual and not mapped.
Note that if a device is fully virtual, and does not require any intercepts or virtual pages, this function can be unimplemented and NULL in the interface.