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 |
|
Library |
|
IRQL | <= DISPATCH_LEVEL |
DDI compliance rules | DriverCreate, KmdfIrql, KmdfIrql2 |
See also
Show: