信息
您所需的主题如下所示。但此主题未包含在此库中。

WdfFdoGetDefaultChildList 方法

The WdfFdoGetDefaultChildList method returns a handle to a specified device's default child list.

语法

WDFCHILDLIST WdfFdoGetDefaultChildList(
  [in]  WDFDEVICE Fdo
);

参数

Fdo [in]

A handle to a framework device object.

返回值

If the operation succeeds, WdfFdoGetDefaultChildList returns a handle to the default child list that is associated with the device that is specified by Fdo. Otherwise the method returns NULL.

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

评论

Before calling WdfFdoGetDefaultChildList, your driver must call WdfFdoInitSetDefaultChildListConfig to configure the default child list. Otherwise, WdfFdoGetDefaultChildList returns NULL.

For more information about child lists, see Dynamic Enumeration.

示例

The following code example obtains a handle to a device's default child list.

WDFCHILDLIST  list;

list = WdfFdoGetDefaultChildList(Device);

要求

版本

Available in version 1.0 and later versions of KMDF.

标头

Wdffdo.h (包括Wdf.h)

Wdf<MajorVersionNumber>000.sys (see Framework Library Versions.)

IRQL

<= DISPATCH_LEVEL

另请参见

WdfFdoInitSetDefaultChildListConfig

 

 

社区附加资源

显示:
© 2014 Microsoft