情報
要求されたトピックは次のとおりです。しかし、このトピックはこのライブラリには含まれていません。

WdfDeviceRemoveDependentUsageDeviceObject メソッド

The WdfDeviceRemoveDependentUsageDeviceObject method indicates that a specified device no longer depends on another device when the specified device is used to store special files.

構文

VOID WdfDeviceRemoveDependentUsageDeviceObject(
  [in]  WDFDEVICE Device,
  [in]  PDEVICE_OBJECT DependentDevice
);

パラメーター

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.

戻り値

None.

解説

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.

The following code example removes a device (pDeviceObject) from the list of devices that another device (device) depends on.

status = WdfDeviceRemoveDependentUsageDeviceObject(
                                                device,
                                                pDeviceObject
                                                );

要件

バージョン

Available in version 1.9 and later versions of KMDF.

ヘッダー

Wdfdevice.h (includeWdf.h)

ライブラリ

Wdf<MajorVersionNumber>000.sys (see Framework Library Versions.)

IRQL

<=DISPATCH_LEVEL

参照

WdfDeviceAddDependentUsageDeviceObject

 

 

コミュニティの追加

表示:
© 2015 Microsoft