StorPortGetCurrentIrql function (storport.h)

StorPortGetCurrentIrql retrieves the current interrupt request level (IRQL).

Syntax

ULONG StorPortGetCurrentIrql(
  [in]  PVOID  HwDeviceExtension,
  [out] PKIRQL Irql
);

Parameters

[in] HwDeviceExtension

A pointer to the miniport's device extension.

[out] Irql

Pointer to a KIRQL structure in which the current IRQL will be stored. Irql cannot be NULL.

Return value

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.

Remarks

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.

Requirements

Requirement Value
Minimum supported server Windows Server 2022
Header storport.h