// wdfdevice.h
VOID WdfDeviceRemoveRemovalRelationsPhysicalDevice(
[in] WDFDEVICE Device,
[in] PDEVICE_OBJECT PhysicalDevice
);
View the official Windows Driver Kit DDI referenceNo description available.
[Applies to KMDF only]
The WdfDeviceRemoveRemovalRelationsPhysicalDevice method removes a specified device from the list of devices that must be removed when another specified device is removed.
Device [in]A handle to a framework device object.
PhysicalDevice [in]A pointer to a caller-supplied DEVICE_OBJECT structure that represents a physical device object (PDO).
A bug check occurs if the driver supplies an invalid object handle.
WdfDeviceAddRemovalRelationsPhysicalDevice
WdfDeviceClearRemovalRelationsDevices