// wdfchildlist.h
WDFDEVICE WdfChildListGetDevice(
[in] WDFCHILDLIST ChildList
);
View the official Windows Driver Kit DDI referenceNo description available.
[Applies to KMDF only]
The WdfChildListGetDevice method returns a handle to the framework device object that represents the parent device of a specified child list.
ChildList [in]A handle to a framework child-list object.
WdfChildListGetDevice returns a handle to a framework device object.
A system bug check occurs if the driver supplies an invalid object handle.
For more information about child lists, see Dynamic Enumeration.
The following code example obtains a handle to the device object that represents the parent device of a child list.
WDFDEVICE parentDevice;
parentDevice = WdfChildListGetDevice(ChildList);