Edit

Share via


C28118

warning: C28118: The current function is permitted to run at an IRQ level above the maximum permitted for %func% (%level%). Prior function calls or annotation are inconsistent with use of that function.

Additional information

The current function may need IRQL_requires_max, or it may be that the limit is set by some prior call.

The function being called is limited to being called at or below some IRQL. The calling (current) function is allowed to run at some higher IRQL, and making that call could cause the called function to run at an IRQL it cannot operate at.

Note that PREfast will attempt to infer what it can about the current IRQ level, and this warning is generated only when it has inferred enough about the IRQ level to detect the error. Inference may come from the signature of the function being analyzed or prior calls along the current path.