TtmNotifyConsoleUserPresent

VOID __stdcall TtmNotifyConsoleUserPresent(UINT64 SessionId, POWER_MONITOR_REQUEST_REASON RequestReason){
  unsigned int v3; 
  int v4; 
  unsigned int v5; 
  INT64 v6; 
  v6 = 0i64;
  v3 = SessionId;
  v4 = TtmpAcquireSessionById(&v6, SessionId);
  v5 = v4;
  if( v4 >= 0 )
  {
    TtmiResetTerminalTimeouts(v6, *(_QWORD *)(v6 + 32), RequestReason, 0x5055434Eui64, 1);
    ExReleaseResourceLite(&TtmpSessionLock);
    KeLeaveCriticalRegion();
  }
  else
  {
    TtmiLogError((PSTR)"TtmNotifyConsoleUserPresent", 3340i64, (unsigned int)v4, 0xFFFFFFFFi64);
  }
  TtmiLogConsoleUserPresent(v3, RequestReason, v5);
}

Referenced by:

PopNotifyConsoleUserPresent