// dispmprt.h
DXGKDDI_GETGPUPARTITIONINFO DxgkddiGetgpupartitioninfo;
NTSTATUS DxgkddiGetgpupartitioninfo(
HANDLE Context,
DXGKARG_GETGPUPARTITIONINFO *pArgs
)
{...}
View the official Windows Driver Kit DDI referenceNo description available.
Returns physical GPU partition information. The DXGKDDI_GETGPUPARTITIONINFO callback function is called once during the graphics adapter initialization.
ContextA handle to the driver context.
pArgsPointer to a DXGKARG_GETGPUPARTITIONINFO structure that contains arguments.
Return one of the following values:
//Declaration
DXGKDDI_GETGPUPARTITIONINFO DxgkddiGetgpupartitioninfo;
// Definition
NTSTATUS DxgkddiGetgpupartitioninfo
(
HANDLE Context
DXGKARG_GETGPUPARTITIONINFO * pArgs
)
{...}
The OS will set a particular partition count (one of the driver returned values) before a first vGPU is created. Unless the buffer is not large enough, a driver should always set NumGpuPartitionOptions and CurrentGpuPartitionCount, even when returning STATUS_BUFFER_TOO_SMALL.