windows - KeEnterGuardedRegion() vs. KeRaiseIrql(APC_LEVEL, &old_irql) -


there 2 ways disable apcs:

  1. call keenterguardedregion();

  2. call keraiseirql(apc_level, &old_irql);

what's difference?

see msdn documentation titled disabling apcs:

using guarded region faster raising , lowering current irql, guarded regions available in windows server 2003 , later versions of windows.

so, if code needs support windows xp, use keraiseirql.

if not, use keenterguardedregion.


Comments

Popular posts from this blog

vb.net - Alternative to the T-SQL AS keyword -

php - MySQLi binding parameters in a prepared statement doesn't work unless inserted after "WHERE" -

ios - CFRelease causing crash in iPad application -