DXGKDDI_QUERYADAPTERINFO - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// d3dkmddi.h

DXGKDDI_QUERYADAPTERINFO DxgkddiQueryadapterinfo;

NTSTATUS DxgkddiQueryadapterinfo(
  [in] IN_CONST_HANDLE hAdapter,
  [in] IN_CONST_PDXGKARG_QUERYADAPTERINFO pQueryAdapterInfo
)
{...}
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nc-d3dkmddi-dxgkddi_queryadapterinfo)

DXGKDDI_QUERYADAPTERINFO callback function

Description

Dxgkrnl calls the display miniport driver's (KMD's) DxgkDdiQueryAdapterInfo function to retrieve configuration information from the graphics adapter.

Parameters

hAdapter [in]

A handle to a context block that is associated with a display adapter. The KMD previously provided this handle to Dxgkrnl in the MiniportDeviceContext output parameter of the DxgkDdiAddDevice function.

pQueryAdapterInfo [in]

A pointer to a DXGKARG_QUERYADAPTERINFO structure that the KMD fills with the configuration information for the graphics adapter.

Return value

DxgkDdiQueryAdapterInfo returns STATUS_SUCCESS when it successfully retrieves the configuration information. Otherwise, it returns an NTSTATUS code such as one of the following values:

Return code Description
STATUS_INVALID_PARAMETER One or more passed parameter contained errors that prevented it from completing.
STATUS_NO_MEMORY DxgkDdiQueryAdapterInfo couldn't allocate memory that was required for it to complete.
STATUS_GRAPHICS_DRIVER_MISMATCH The KMD isn't compatible with the user-mode display driver (UMD) that initiated the call to DxgkDdiQueryAdapterInfo (that is, supplied private data for a query to the KMD).

Remarks

When the UMD calls the Direct3D runtime's pfnQueryAdapterInfoCb callback, a call to the DxgkDdiQueryAdapterInfo function is initiated.

DxgkDdiQueryAdapterInfo should be made pageable.

All drivers that support WDDM 2.6 and greater must implement the DxgkDdiQueryAdapterInfo callback.

See also

DXGKARG_QUERYADAPTERINFO

DxgkDdiAddDevice

pfnQueryAdapterInfoCb