// wdfpdo.h
VOID WdfPdoClearEjectionRelationsDevices(
[in] WDFDEVICE Device
);
View the official Windows Driver Kit DDI referenceNo description available.
[Applies to KMDF only]
The WdfPdoClearEjectionRelationsDevices method removes all devices from the list of devices that must be ejected when a specified device is ejected.
Device [in]A handle to a framework device object.
A bug check occurs if the driver supplies an invalid object handle.
For more information, see Supporting Ejectable Devices.
The following code example clears the specified device's list of ejection relations.
WdfPdoClearEjectionRelationsDevices(device);
WdfPdoAddEjectionRelationsPhysicalDevice
WdfPdoRemoveEjectionRelationsPhysicalDevice