Expand Minimize

WdfDeviceRemoveRemovalRelationsPhysicalDevice method

[Applies to KMDF only]

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

Syntax


VOID WdfDeviceRemoveRemovalRelationsPhysicalDevice(
  [in]  WDFDEVICE Device,
  [in]  PDEVICE_OBJECT PhysicalDevice
);

Parameters

Device [in]

A handle to a framework device object.

PhysicalDevice [in]

A pointer to a caller-supplied DEVICE_OBJECT structure that represents a physical device object (PDO).

Return value

None.

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

Examples

The following code example removes the device that pPdo identifies from the list of devices that must be removed when the device that device specifies is removed.


WdfDeviceRemoveRemovalRelationsPhysicalDevice(
                                              device,
                                              pPdo
                                              );

Requirements

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
WdfDeviceClearRemovalRelationsDevices

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft. All rights reserved.