WdfChildListBeginIteration 函数 (wdfchildlist.h)
[仅适用于 KMDF]
WdfChildListBeginIteration 方法为从指定子列表中检索项准备框架。
语法
void WdfChildListBeginIteration(
[in] WDFCHILDLIST ChildList,
[in] PWDF_CHILD_LIST_ITERATOR Iterator
);
参数
[in] ChildList
框架子列表对象的句柄。
[in] Iterator
指向调用方分配 WDF_CHILD_LIST_ITERATOR 结构的指针,该结构指示要检索的子设备的类型。
返回值
没有
言论
如果驱动程序提供无效的对象句柄,则会发生 bug 检查。
调用 WdfChildListBeginIteration后,驱动程序可以重复调用 WdfChildListRetrieveNextDevice 以获取子列表中每个子设备的信息。
驱动程序调用完 WdfChildListRetrieveNextDevice后,它必须调用 WdfChildListEndIteration。
如果在调用 WdfChildListBeginIteration后驱动程序对子列表进行更改,则框架将存储所有更改,并在驱动程序调用 WdfChildListEndIteration时通知即插即用(PnP)管理器。
驱动程序可以嵌套对 WdfChildListBeginIteration 和 WdfChildListEndIteration的调用。 如果驱动程序嵌套对这些方法的调用,框架将存储所有更改,直到上次调用 WdfChildListEndIteration。
有关子列表的详细信息,请参阅 动态枚举。
例子
有关使用 WdfChildListBeginIteration的代码示例,请参阅 WdfChildListRetrieveNextDevice。
要求
要求 | 价值 |
---|---|
目标平台 | 普遍 |
最低 KMDF 版本 | 1.0 |
标头 | wdfchildlist.h (包括 Wdf.h) |
库 | Wdf01000.sys(请参阅框架库版本控制。 |
IRQL | <= DISPATCH_LEVEL |
DDI 符合性规则 | DriverCreate(kmdf),KmdfIrql(kmdf),KmdfIrql2(kmdf),KmdfIrqlExplicit(kmdf) |