NTSTATUS __stdcall PopCompareActions(POWER_ACTION FutureAction, POWER_ACTION CurrentAction){
if( FutureAction == PowerActionWarmEject )
{
FutureAction = PowerActionSleep;
}
else if( FutureAction >= PowerActionSleep )
{
++FutureAction;
}
if( CurrentAction == PowerActionWarmEject )
{
CurrentAction = PowerActionSleep;
}
else if( CurrentAction >= PowerActionSleep )
{
++CurrentAction;
}
return FutureAction - CurrentAction;
}