TtmSessionMonitorControl
VOID __stdcall TtmSessionMonitorControl(
UINT64 SessionId,
POWER_MONITOR_REQUEST_REASON RequestReason,
POWER_MONITOR_REQUEST_TYPE Type){
unsigned int v4;
int v6;
INT64 v7;
INT64 v8;
INT64 a1;
a1 = 0i64;
v4 = SessionId;
v6 = TtmpAcquireSessionById(&a1, SessionId);
v7 = a1;
if( v6 >= 0 )
{
v6 = TtmiTerminalMonitorControl(a1, *(_DWORD **)(a1 + 32), RequestReason, (unsigned int)Type);
if( v6 >= 0 )
goto LABEL_6;
v8 = 4079i64;
}
else
{
v8 = 4067i64;
}
TtmiLogError((PSTR)"TtmSessionMonitorControl", v8, (unsigned int)v6, (unsigned int)v6);
LABEL_6:
if( v7 )
{
ExReleaseResourceLite(&TtmpSessionLock);
KeLeaveCriticalRegion();
}
TtmiLogSessionMonitorControl(v4);
}Referenced by:
PopControlMonitor