Pregunta

There are two ways to disable all APCs:

  1. call KeEnterGuardedRegion();

  2. call KeRaiseIrql(APC_LEVEL, &old_irql);

What's the difference?

¿Fue útil?

Solución

See the MSDN documentation titled Disabling APCs:

Using a guarded region is faster than raising and lowering the current IRQL, but guarded regions are only available in Windows Server 2003 and later versions of Windows.

So, if your code needs to support Windows XP, use KeRaiseIrql.

If not, use KeEnterGuardedRegion.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top