WTSINFO's LastInputTime

634 Views Asked by At

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!

0

There are 0 best solutions below