WdfDeviceRemoveDependentUsageDeviceObject method
[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.
Syntax
VOID WdfDeviceRemoveDependentUsageDeviceObject( [in] WDFDEVICE Device, [in] PDEVICE_OBJECT DependentDevice );
Parameters
- 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.
Return value
None.
Remarks
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.
Examples
The following code example removes a device (pDeviceObject) from the list of devices that another device (device) depends on.
status = WdfDeviceRemoveDependentUsageDeviceObject( device, pDeviceObject );
Requirements
Minimum KMDF version | 1.9 |
---|---|
Header |
|
Library |
|
IRQL | <=DISPATCH_LEVEL |
DDI compliance rules | DriverCreate, KmdfIrql, KmdfIrql2 |
See also