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

WdfPdoGetParent 方法

The WdfPdoGetParent method returns a handle to the framework device object that represents the parent device of a specified device.

语法

WDFDEVICE WdfPdoGetParent(
  [in]  WDFDEVICE Device
);

参数

Device [in]

A handle to a framework device object that represents the device's physical device object (PDO).

返回值

The method returns a handle to the framework device object that represents the specified device's parent, or NULL if the Device value does not represent a PDO.

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

示例

The following code example obtains a handle to the framework device object that represents a specified device's parent device.

WDFDEVICE  parentDevice;

parentDevice = WdfPdoGetParent(device);

要求

版本

Available in version 1.0 and later versions of KMDF.

标头

Wdfpdo.h (包括Wdf.h)

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

IRQL

<= DISPATCH_LEVEL

 

 

社区附加资源

显示:
© 2014 Microsoft