// d3dkmthk.h
NTSTATUS D3DKMTPollDisplayChildren(
[in] const D3DKMT_POLLDISPLAYCHILDREN *unnamedParam1
);
View the official Windows Driver Kit DDI referenceNo description available.
The D3DKMTPollDisplayChildren function queries for connectivity status of all child devices of the given adapter.
unnamedParam1 [in]A pointer to a D3DKMT_POLLDISPLAYCHILDREN structure that describes the parameters for querying for connectivity status of the adapter's child devices.
D3DKMTPollDisplayChildren returns one of the following values:
| Return code | Description |
|---|---|
| STATUS_SUCCESS | Connectivity status was successfully retrieved. |
| STATUS_DEVICE_REMOVED | The graphics adapter was stopped. |
This function might also return other NTSTATUS values.
The OpenGL installable client driver (ICD) calls D3DKMTPollDisplayChildren to query for connectivity status of all of the adapter's child devices. The ICD sets the NonDestructiveOnly member of D3DKMT_POLLDISPLAYCHILDREN to indicate whether D3DKMTPollDisplayChildren should be destructive (that is, cause visual artifacts). For typical polling, the ICD should set NonDestructiveOnly to TRUE to prevent the screen from flickering.
New child devices are enumerated to the Plug and Play (PnP) manager when PnP detects them. The devices are then listed in the device manager. If PnP determines that a child device was removed, the device is reported as a surprise removal.