// swenum.h
KSDDKAPI NTSTATUS KsGetBusEnumParentFDOFromChildPDO(
[in] PDEVICE_OBJECT DeviceObject,
[out] PDEVICE_OBJECT *FunctionalDeviceObject
);
View the official Windows Driver Kit DDI referenceNo description available.
This function is intended for internal use only.
The KsGetBusEnumParentFDOFromChildPDO function retrieves the FDO of the parent of the given child PDO.
DeviceObject [in]Pointer to the child's PDO.
FunctionalDeviceObject [out]Pointer to the device object to receive the parent's FDO.
Returns STATUS_SUCCESS if successful, or STATUS_INVALID_PARAMETER if DeviceObject does not contain a device extension, or if the device extension specified in DeviceObject is not that of a PDO.