문제

There are two ways to disable all APCs:

  1. call KeEnterGuardedRegion();

  2. call KeRaiseIrql(APC_LEVEL, &old_irql);

What's the difference?

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top