DXGKDDI_QUERY_INTERFACE - NtDoc

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

DXGKDDI_QUERY_INTERFACE DxgkddiQueryInterface;

NTSTATUS DxgkddiQueryInterface(
  [in] IN_CONST_PVOID MiniportDeviceContext,
  [in] IN_PQUERY_INTERFACE QueryInterface
)
{...}
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nc-dispmprt-dxgkddi_query_interface)

DXGKDDI_QUERY_INTERFACE callback function

Description

The DxgkDdiQueryInterface function returns a functional interface that is implemented by the display miniport driver.

Parameters

MiniportDeviceContext [in]

A handle to a context block associated with a display adapter. The display miniport driver's DxgkDdiAddDevice function previously provided this handle to Dxgkrnl.

QueryInterface [in]

A pointer to a QUERY_INTERFACE structure in which the display miniport driver should return information about the interface it supports.

Return value

DxgkDdiQueryInterface returns STATUS_SUCCESS if it succeeds; otherwise, it returns an appropriate NTSTATUS code. If a display miniport driver doesn't support the requested interface, it must return STATUS_NOT_SUPPORTED. By returning STATUS_NOT_SUPPORTED, the display miniport driver informs the operating system to pass the query on to the next driver.

Remarks

DxgkDdiQueryInterface exposes a communication mechanism between the display miniport driver and the driver of a child device (for example, a video capture device). A display miniport driver that exposes such a mechanism should implement this function.

DxgkDdiQueryInterface should fill in the members of the INTERFACE structure that QueryInterface->Interface points to as follows:

DxgkDdiQueryInterface runs at IRQL = PASSIVE_LEVEL and should be made pageable.

See also

DxgkDdiAddDevice

DxgkDdiQueryChildRelations

QUERY_INTERFACE