TheCodeArtist / Active-Window-Logger

Smartly log the active foreground window of the system to transparently capture usage analytics.
25 stars 2 forks source link

Detect and log MS-Windows locked event #2

Closed TheCodeArtist closed 8 years ago

TheCodeArtist commented 8 years ago

Detect when system locks out (either automatically or manually) and log an entry.

This will ensure that the time the system spends in locked-state is not wrongly accounted under the last active window.

WM_WTSSESSION_CHANGE and WTS_SESSION_LOCK ought to be useful. Reference: https://msdn.microsoft.com/en-us/library/aa383828.aspx

TheCodeArtist commented 8 years ago

Detects and logs a dummy entry in the list of active windows whenever system is locked/unlocked.