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

WdfInterruptGetDevice メソッド

The WdfInterruptGetDevice method returns a handle to the framework device object that is associated with a specified framework interrupt object.

構文

WDFDEVICE WdfInterruptGetDevice(
  [in]  WDFINTERRUPT Interrupt
);

パラメーター

Interrupt [in]

A handle to a framework interrupt object.

戻り値

WdfInterruptGetDevice returns a handle to a framework device object.

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

解説

For more information about handling interrupts in framework-based drivers, see Handling Hardware Interrupts.

The following code example shows how an EvtInterruptIsr callback function can obtain a pointer to driver-defined context space for the device object that an interrupt object belongs to.

BOOLEAN
MyEvtInterruptIsr(
    IN WDFINTERRUPT Interrupt,
    IN ULONG  MessageID
    )
{
    PDEVICE_EXTENSION  devExt;

    devExt = GetMyDeviceContext(WdfInterruptGetDevice(Interrupt));
...
}

要件

バージョン

Available in version 1.0 and later versions of KMDF.

ヘッダー

Wdfinterrupt.h (includeWdf.h)

ライブラリ

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

IRQL

<= DIRQL

参照

EvtInterruptIsr

 

 

コミュニティの追加

表示:
© 2014 Microsoft