WdfChildListGetDevice function (wdfchildlist.h)

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

Syntax

WDFDEVICE WdfChildListGetDevice(
  WDFCHILDLIST ChildList
);

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

Requirements

   
Target Platform Universal
Minimum KMDF version 1.0
Header wdfchildlist.h (include Wdf.h)
Library Wdf01000.sys (see Framework Library Versioning.)
IRQL <= DISPATCH_LEVEL
DDI compliance rules DriverCreate, KmdfIrql, KmdfIrql2