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.|
|Wdf<MajorVersionNumber>000.sys (see Framework Library Versions.)|