// storport.h
ULONG StorPortGetCurrentIrql(
[in] PVOID HwDeviceExtension,
[out] PKIRQL Irql
);
View the official Windows Driver Kit DDI referenceNo description available.
StorPortGetCurrentIrql retrieves the current interrupt request level (IRQL).
HwDeviceExtension [in]A pointer to the miniport's device extension.
Irql [out]Pointer to a KIRQL structure in which the current IRQL will be stored. Irql cannot be NULL.
This function returns one of the following status codes.
| Return code | Description |
|---|---|
| STOR_STATUS_SUCCESS | The IRQL was successfully retrieved. |
| STOR_STATUS_INVALID_PARAMETER | Irql is a null pointer. |
| STOR_STATUS_UNSUCCESSFUL | Returned for other internal system reasons. |
A miniport can call StorPortGetCurrentIrql to query the current IRQL. KIRQL is defined in miniport.h. For general information about IRQLs, see Managing Hardware Priorities.