PoSetUserPresent
VOID __stdcall PoSetUserPresent(POWER_MONITOR_REQUEST_REASON MonitorOnReason){
unsigned __int8 CurrentIrql;
UINT64 Flag;
EVENT_DATA_DESCRIPTOR EventData;
CurrentIrql = KeGetCurrentIrql();
if( CurrentIrql < 2u )
PopAcquirePolicyLock();
if( (*(_WORD *)(&PerfGlobalGroupMask + 2) & 0x8000) != 0 )
{
LODWORD(Flag) = 4200450;
EventData.Ptr = 0i64;
*(_QWORD *)&EventData.Size = 0i64;
EtwTraceKernelEvent(&EventData, 1ui64, 0x80008000ui64, 0x1241u, Flag);
}
PopSetSystemState(4ui64, MonitorOnReason);
if( CurrentIrql < 2u )
PopReleasePolicyLock();
}Referenced by:
PopTransitionSystemPowerStateEx