I'm trying to calculate the session's idle time using WTSINFO's LastInputTime. I called WTSQuerySessionInformation with WTSSessionInfo but the LastInputTime I get is the DisconnectTime. I was expecting it to be CurrentTime (or very close) since there's input until I'm running the code. Anyone has any idea?
Thanks!