PopSetSleepMarker
VOID __stdcall PopSetSleepMarker(_SYSTEM_POWER_STATE PowerState){
char v1;
__int16 TransitionsToOnCount;
v1 = PowerState;
TransitionsToOnCount = -1;
if( (unsigned int)PopGetTransitionsToOnCount() < 0xFFFF )
TransitionsToOnCount = PopGetTransitionsToOnCount();
PopAcquireRwLockExclusive(&PopBsdUpdateLock);
*((_WORD *)&PopBsdPowerTransition + 6) = TransitionsToOnCount;
*((_BYTE *)&PopBsdPowerTransition + 8) = (16 * v1) | *(_BYTE *)(&PopBsdPowerTransition + 1) & 0xF;
*((_BYTE *)&PopBsdPowerTransition + 14) = PopSleepCheckpointStatus & 0xF | *((_BYTE *)&PopBsdPowerTransition + 14) & 0xF0;
PopBsdHandleRequest(8i64);
PopReleaseRwLock((UINT64)&PopBsdUpdateLock);
}Referenced by:
PopIssueActionRequest
PopTransitionSystemPowerStateEx