Hardware Dev Center

Expand Minimize

WdfDeviceClearRemovalRelationsDevices method

[Applies to KMDF only]

The WdfDeviceClearRemovalRelationsDevices method removes all devices from the list of devices that must be removed when a specified device is removed.

Syntax


VOID WdfDeviceClearRemovalRelationsDevices(
  [in] WDFDEVICE Device
);

Parameters

Device [in]

A handle to a framework device object.

Return value

None.

A bug check occurs if the driver supplies an invalid object handle.

Examples

The following code example clears the list of devices that must be removed when the device that device identifies is removed.


WdfDeviceClearRemovalRelationsDevices(device);

Requirements

Target platform

Universal

Minimum KMDF version

1.0

Header

Wdfdevice.h (include Wdf.h)

Library

Wdf01000.sys (see Framework Library Versioning.)

IRQL

<= DISPATCH_LEVEL

DDI compliance rules

DriverCreate, KmdfIrql, KmdfIrql2

See also

WdfDeviceAddRemovalRelationsPhysicalDevice
WdfDeviceRemoveRemovalRelationsPhysicalDevice

 

 

Send comments about this topic to Microsoft

Show:
© 2015 Microsoft