// wdfinterrupt.h
PKINTERRUPT WdfInterruptWdmGetInterrupt(
[in] WDFINTERRUPT Interrupt
);
View the official Windows Driver Kit DDI referenceNo description available.
[Applies to KMDF only]
The WdfInterruptWdmGetInterrupt method returns a pointer to the WDM interrupt object that is associated with a specified framework interrupt object.
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);