WdfDeviceRemoveRemovalRelationsPhysicalDevice 函式 (wdfdevice.h)

[僅適用於 KMDF]

WdfDeviceRemoveRemovalRelationsPhysicalDevice 方法會從移除另一個指定裝置時必須移除的裝置清單中移除指定的裝置。

語法

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

參數

[in] Device

架構裝置物件的句柄。

[in] PhysicalDevice

呼叫端提供的 DEVICE_OBJECT 結構的指標,表示 PDO) 實體裝置物件 (。

傳回值

備註

如果驅動程式提供無效的物件句柄,就會發生錯誤檢查。

規格需求

需求
目標平台 Universal
最低 KMDF 版本 1.0
標頭 wdfdevice.h (包含 Wdf.h)
程式庫 Wdf01000.sys (請參閱 Framework Library Versioning.)
IRQL <= DISPATCH_LEVEL
DDI 合規性規則 DriverCreate (kmdf) KmdfIrql (kmdf) KmdfIrql2 (kmdf) 、 KmdfIrqlExplicit (kmdf)

另請參閱

WdfDeviceAddRemovalRelationsPhysicalDevice

WdfDeviceClearRemovalRelationsDevices