DXGKARG_QUERYADAPTERINFO structure (d3dkmddi.h)

The DXGKARG_QUERYADAPTERINFO structure contains parameters for a query.

Syntax

typedef struct _DXGKARG_QUERYADAPTERINFO {
  [in]  DXGK_QUERYADAPTERINFOTYPE  Type;
  [in]  VOID                       *pInputData;
  [in]  UINT                       InputDataSize;
  [out] VOID                       *pOutputData;
  [in]  UINT                       OutputDataSize;
  [in]  DXGK_QUERYADAPTERINFOFLAGS Flags;
  [in]  HANDLE                     hKmdProcessHandle;
} DXGKARG_QUERYADAPTERINFO;

Members

[in] Type

A DXGK_QUERYADAPTERINFOTYPE-typed value that indicates the type of information to retrieve.

[in] pInputData

A pointer to input information for the query.

When Type specifies DXGKQAITYPE_UMDRIVERPRIVATE, pInputData points to a proprietary buffer that contains information about the query. When Type specifies DXGKQAITYPE_QUERYSEGMENT, pInputData points to a DXGK_QUERYSEGMENTIN structure. When Type specifies DXGKQAITYPE_POWERCOMPONENTINFO, pInputData points to an input buffer that contains the power component index.

An input buffer is not required when Type specifies the DXGKQAITYPE_DRIVERCAPS value.

[in] InputDataSize

The size, in bytes, of the input data that pInputData points to.

[out] pOutputData

A pointer to an output buffer that the display miniport driver fills with the required information.

Value of Type Contents of output buffer pointed to by pOutputData
DXGKQAITYPE_UMDRIVERPRIVATE Proprietary buffer
DXGKQAITYPE_DRIVERCAPS Populated DXGK_DRIVERCAPS structure
DXGKQAITYPE_QUERYSEGMENT Populated DXGK_QUERYSEGMENTOUT structure
DXGKQAITYPE_QUERYSEGMENT3 Populated DXGK_QUERYSEGMENTOUT3 structure
DXGKQAITYPE_NUMPOWERCOMPONENTS A UINT value that specifies the number of power components used by the display miniport driver.
DXGKQAITYPE_POWERCOMPONENTINFO Populated DXGK_POWER_RUNTIME_COMPONENT structure that provides information about the nth power component, where n is the component index specified by pInputData in a call to the DxgkDdiQueryAdapterInfo function.

[in] OutputDataSize

The size, in bytes, of the output data that pOutputData points to.

[in] Flags

A set of DXGK_QUERYADAPTERINFOFLAGS-typed flags that indicates the query of graphics information.

[in] hKmdProcessHandle

A handle, return by the KMD from DxgkDdiCreateProcess. The driver must check the value for NULL. Note that hKmdProcessHandle is created when the first DXG device is created for the adapter, and destroyed when the last adapter handle in the process is closed.

Requirements

Requirement Value
Minimum supported client Available starting with Windows Vista.
Header d3dkmddi.h (include D3dkmddi.h)

See also

DXGK_DRIVERCAPS

DXGK_POWER_P_COMPONENT

DXGK_POWER_RUNTIME_COMPONENT

DXGK_QUERYADAPTERINFOTYPE

DXGK_QUERYSEGMENTIN

DXGK_QUERYSEGMENTOUT

DXGK_QUERYSEGMENTOUT3

DxgkDdiQueryAdapterInfo