WdfDeviceRemoveDependentUsageDeviceObject - NtDoc

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

VOID WdfDeviceRemoveDependentUsageDeviceObject(
  [in] WDFDEVICE      Device,
  [in] PDEVICE_OBJECT DependentDevice
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-wdfdevice-wdfdeviceremovedependentusagedeviceobject)

WdfDeviceRemoveDependentUsageDeviceObject function

Description

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

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.

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
                                                );

See also

WdfDeviceAddDependentUsageDeviceObject