WdfChildListGetDevice - NtDoc

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

WDFDEVICE WdfChildListGetDevice(
  [in] WDFCHILDLIST ChildList
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-wdfchildlist-wdfchildlistgetdevice)

WdfChildListGetDevice function

Description

[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.

Parameters

ChildList [in]

A handle to a framework child-list object.

Return value

WdfChildListGetDevice returns a handle to a framework device object.

A system bug check occurs if the driver supplies an invalid object handle.

Remarks

For more information about child lists, see Dynamic Enumeration.

Examples

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);