[Applies to KMDF and UMDF]
The WdfInterruptGetInfo method retrieves information about a specified interrupt.
VOID WdfInterruptGetInfo( _In_ WDFINTERRUPT Interrupt, _Out_ PWDF_INTERRUPT_INFO Info );
A handle to the interrupt object.
A bug check occurs if the driver supplies an invalid object handle.
The WdfInterruptGetInfo method can obtain interrupt information only if your driver calls it after the framework has called the driver's EvtDevicePrepareHardware callback function and before the framework has called the driver's EvtDeviceReleaseHardware callback function.
After WdfInterruptGetInfo has returned, the driver can identify passive level interrupt objects by examining the Irql member of the WDF_INTERRUPT_INFO structure. For passive level interrupt objects, this value is PASSIVE_LEVEL.
For information about the order in which a driver's callback functions are called, see PnP and Power Management Scenarios.
For more information about handling interrupts in framework-based drivers, see Handling Hardware Interrupts.
The following code example initializes a WDF_INTERRUPT_INFO structure and calls WdfInterruptGetInfo.
|Windows Driver kit version|
|Minimum KMDF version||1.0|
|Minimum UMDF version||2.0|
|Header||wdfinterrupt.h (include Wdf.h)|
|DDI compliance rules||DriverCreate|