WdfDeviceRemoveDependentUsageDeviceObject function (wdfdevice.h)

[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

[in] Device

A handle to a framework device object.

[in] DependentDevice

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

Requirement Value
Target Platform Universal
Minimum KMDF version 1.9
Header wdfdevice.h (include Wdf.h)
Library Wdf01000.sys (see Framework Library Versioning.)
IRQL <=DISPATCH_LEVEL
DDI compliance rules DriverCreate(kmdf), KmdfIrql(kmdf), KmdfIrql2(kmdf), KmdfIrqlExplicit(kmdf)

See also

WdfDeviceAddDependentUsageDeviceObject