次の方法で共有


WdfControlDeviceInitSetShutdownNotification 関数 (wdfcontrol.h)

[KMDF にのみ適用]

WdfControlDeviceInitSetShutdownNotification メソッドは、コントロール デバイス オブジェクトのシャットダウン通知情報を設定します。

構文

void WdfControlDeviceInitSetShutdownNotification(
  [in] PWDFDEVICE_INIT                      DeviceInit,
  [in] PFN_WDF_DEVICE_SHUTDOWN_NOTIFICATION Notification,
  [in] UCHAR                                Flags
);

パラメーター

[in] DeviceInit

WdfControlDeviceInitAllocate 呼び出すことによってドライバーが取得する WDFDEVICE_INIT 構造体へのポインター。

[in] Notification

ドライバーの EvtDeviceShutdownNotification イベント コールバック関数へのポインター。

[in] Flags

EvtDeviceShutdownNotification コールバック関数が呼び出されるタイミングを示す 1 つ以上の WDF_DEVICE_SHUTDOWN_FLAGS型指定されたフラグ。

戻り値

何一つ

備考

ドライバーは、WdfDeviceCreate 呼び出す前に、WdfControlDeviceInitSetShutdownNotification呼び出す必要があります。 WdfControlDeviceInitSetShutdownNotification 呼び出す方法の詳細については、「コントロール デバイス オブジェクトの使用を参照してください。

WdfControlDeviceInitSetShutdownNotification 使用するコード例については、「WdfControlDeviceInitAllocateを参照してください。

必要条件

要件 価値
ターゲット プラットフォーム 万国
最小 KMDF バージョン 1.0
ヘッダー wdfcontrol.h (Wdf.h を含む)
ライブラリ Wdf01000.sys (フレームワーク ライブラリのバージョン管理を参照)。
IRQL <= DISPATCH_LEVEL
DDI コンプライアンス規則 する ControlDeviceInitAPI(kmdf), DriverCreate(kmdf), KmdfIrql(kmdf), KmdfIrql2(kmdf), KmdfIrqlExplicit(kmdf)

関連項目

EvtDeviceShutdownNotification

WDFDEVICE_INIT

WDF_DEVICE_SHUTDOWN_FLAGS

WdfDeviceCreate