WdfInterruptWdmGetInterrupt メソッド

The WdfInterruptWdmGetInterrupt method returns a pointer to the WDM interrupt object that is associated with a specified framework interrupt object.

構文

PKINTERRUPT WdfInterruptWdmGetInterrupt(
  [in]  WDFINTERRUPT Interrupt
);

パラメーター

Interrupt [in]

A handle to a framework interrupt object.

戻り値

The WdfInterruptWdmGetInterrupt method returns a pointer to a KINTERRUPT structure. This method returns NULL if it is called before the driver's EvtInterruptEnable callback function is called or after the driver's EvtInterruptDisable callback function returns.

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

解説

The pointer that the WdfInterruptWdmGetInterrupt method returns is valid until the driver's EvtInterruptDisable callback function returns.

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

The following code example obtains a pointer to the KINTERRUPT structure that is associated with a specified framework interrupt object.

PKINTERRUPT  wdmInterrupt;

wdmInterrupt = WdfInterruptWdmGetInterrupt(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

参照

KINTERRUPT

 

 

コミュニティの追加

追加
表示:
© 2015 Microsoft