WdfPdoGetParent function (wdfpdo.h)

[Applies to KMDF only]

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

Syntax

WDFDEVICE WdfPdoGetParent(
  [in] WDFDEVICE Device
);

Parameters

[in] Device

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

Return value

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.

Requirements

Requirement Value
Target Platform Universal
Minimum KMDF version 1.0
Header wdfpdo.h (include Wdf.h)
Library Wdf01000.sys (see Framework Library Versioning.)
IRQL <= DISPATCH_LEVEL
DDI compliance rules DriverCreate(kmdf), KmdfIrql(kmdf), KmdfIrql2(kmdf), KmdfIrqlExplicit(kmdf)