// wdfdevice.h
VOID WdfDeviceRemoveDependentUsageDeviceObject(
[in] WDFDEVICE Device,
[in] PDEVICE_OBJECT DependentDevice
);
View the official Windows Driver Kit DDI referenceNo description available.
[Applies to KMDF only]
The WdfDeviceRemoveDependentUsageDeviceObject method indicates that a specified device no longer depends on another device when the specified device is used to store special files.
Device [in]A handle to a framework device object.
DependentDevice [in]A pointer to a caller-supplied DEVICE_OBJECT structure that identifies a device that Device depends on.
Your driver can call WdfDeviceRemoveDependentUsageDeviceObject to remove a device dependency that a previous call to WdfDeviceAddDependentUsageDeviceObject created.
For more information about WdfDeviceRemoveDependentUsageDeviceObject and WdfDeviceRemoveDependentUsageDeviceObject, see Supporting Special Files.
The following code example removes a device (pDeviceObject) from the list of devices that another device (device) depends on.
status = WdfDeviceRemoveDependentUsageDeviceObject(
device,
pDeviceObject
);
WdfDeviceAddDependentUsageDeviceObject