// dispmprt.h
DXGKDDI_QUERY_CHILD_STATUS DxgkddiQueryChildStatus;
NTSTATUS DxgkddiQueryChildStatus(
[in] IN_CONST_PVOID MiniportDeviceContext,
[in, out] INOUT_PDXGK_CHILD_STATUS ChildStatus,
[in] IN_BOOLEAN NonDestructiveOnly
)
{...}
View the official Windows Driver Kit DDI referenceNo description available.
The DxgkDdiQueryChildStatus function returns the status of an individual child device of a display adapter.
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 the DirectX graphics kernel subsystem.
ChildStatus [in, out]A pointer to a DXGK_CHILD_STATUS structure. The caller supplies ChildStatus->Type and ChildStatus->ChildUid. On return, the remaining structure member (a union) receives the requested status.
NonDestructiveOnly [in]A BOOLEAN value that specifies whether the display miniport driver is permitted to determine the requested status in a way that causes visual artifacts. If the caller sets this parameter to TRUE, then the display miniport driver is not permitted to cause artifacts. If the caller sets this parameter to FALSE, then the display miniport driver is permitted to cause artifacts.
DxgkDdiQueryChildStatus returns STATUS_SUCCESS if it succeeds; otherwise, it returns one of the error codes defined in Ntstatus.h.
During initialization, the display port driver calls DxgkDdiQueryChildRelations to get a list of devices that are children of the display adapter represented by MiniportDeviceContext. Then for each child that has an HPD awareness value of HpdAwarenessPolled or HpdAwarenessInterruptible, the display port driver calls DxgkDdiQueryChildStatus to determine whether the child currently has hardware (for example a monitor) connected to it.
DxgkDdiQueryChildStatus must perform the following actions:
DxgkDdiQueryChildStatus should be made pageable.