WdfChildListBeginIteration - NtDoc

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

VOID WdfChildListBeginIteration(
  [in] WDFCHILDLIST             ChildList,
  [in] PWDF_CHILD_LIST_ITERATOR Iterator
);

View the official Windows Driver Kit DDI reference

NtDoc

No description available.

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

WdfChildListBeginIteration function

Description

[Applies to KMDF only]

The WdfChildListBeginIteration method prepares the framework for retrieving items from a specified child list.

Parameters

ChildList [in]

A handle to a framework child list object.

Iterator [in]

A pointer to a caller-allocated WDF_CHILD_LIST_ITERATOR structure that indicates the type of child devices to be retrieved.

Remarks

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

After calling WdfChildListBeginIteration, the driver can repeatedly call WdfChildListRetrieveNextDevice to obtain information about each child device in the child list.

After the driver has finished calling WdfChildListRetrieveNextDevice, it must call WdfChildListEndIteration.

If the driver makes changes to the child list after calling WdfChildListBeginIteration, the framework stores all of the changes and notifies the Plug and Play (PnP) manager of the changes when the driver calls WdfChildListEndIteration.

The driver can nest calls to WdfChildListBeginIteration and WdfChildListEndIteration. If the driver nests calls to these methods, the framework stores all of the changes until the last call to WdfChildListEndIteration.

For more information about child lists, see Dynamic Enumeration.

Examples

For a code example that uses WdfChildListBeginIteration, see WdfChildListRetrieveNextDevice.

See also

WDF_CHILD_IDENTIFICATION_DESCRIPTION_HEADER_INIT

WDF_CHILD_LIST_ITERATOR

WDF_CHILD_LIST_ITERATOR_INIT

WdfChildListBeginScan

WdfChildListEndIteration

WdfChildListRequestChildEject

WdfChildListRetrieveNextDevice