WdfChildListBeginScan - NtDoc

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

VOID WdfChildListBeginScan(
  [in] WDFCHILDLIST ChildList
);

View the official Windows Driver Kit DDI reference

NtDoc

No description available.

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

WdfChildListBeginScan function

Description

[Applies to KMDF only]

The WdfChildListBeginScan method prepares a specified list of child devices so the driver can update the information in the list.

Parameters

ChildList [in]

A handle to a framework child list object.

Remarks

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

The WdfChildListBeginScan method marks all of the child devices in the list as missing.

After calling WdfChildListBeginScan, the driver can call WdfChildListAddOrUpdateChildDescriptionAsPresent repeatedly, or call WdfChildListUpdateAllChildDescriptionsAsPresent, to report all of the child devices that are currently attached to the parent device.

After the driver has finished updating the child list, it must call WdfChildListEndScan. This call delivers the updated child list to the Plug and Play (PnP) manager. Subsequently, the framework will call the driver's EvtChildListCreateDevice callback function for each device that the driver reported.

For more information about child lists, see Dynamic Enumeration.

Examples

For a code example that uses WdfChildListBeginScan, see WdfChildListAddOrUpdateChildDescriptionAsPresent.

See also

WdfChildListAddOrUpdateChildDescriptionAsPresent

WdfChildListBeginIteration

WdfChildListEndScan

WdfChildListUpdateAllChildDescriptionsAsPresent