WdfPdoClearEjectionRelationsDevices - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// wdfpdo.h

VOID WdfPdoClearEjectionRelationsDevices(
  [in] WDFDEVICE Device
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-wdfpdo-wdfpdoclearejectionrelationsdevices)

WdfPdoClearEjectionRelationsDevices function

Description

[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.

Parameters

Device [in]

A handle to a framework device object.

Remarks

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

For more information, see Supporting Ejectable Devices.

Examples

The following code example clears the specified device's list of ejection relations.

WdfPdoClearEjectionRelationsDevices(device);

See also

WdfPdoAddEjectionRelationsPhysicalDevice

WdfPdoRemoveEjectionRelationsPhysicalDevice