BrianAtWork
Programmer
Good afternoon,
I am trying to write some code in VB.NET that starts a timer when a user locks their windows desktop (either their screen saver is set to lock the computer after nn minutes, or they manually lock their computer), and then stop when the computer is unlocked, and subtract to get the total time the computer was "idle".
I've tried looking through System.Microsoft.Win32 and a few other ones, and I've looked around on MSDN, but I can't find what I should use to let my code know when the user locks or unlocks the computer...
So, has anyone used this, or know how I would do this? I would really appreciate a step in the right direction. It's gotta be there, I'm just not seeing it.
Thanks in advance!
Brian
I am trying to write some code in VB.NET that starts a timer when a user locks their windows desktop (either their screen saver is set to lock the computer after nn minutes, or they manually lock their computer), and then stop when the computer is unlocked, and subtract to get the total time the computer was "idle".
I've tried looking through System.Microsoft.Win32 and a few other ones, and I've looked around on MSDN, but I can't find what I should use to let my code know when the user locks or unlocks the computer...
So, has anyone used this, or know how I would do this? I would really appreciate a step in the right direction. It's gotta be there, I'm just not seeing it.
Thanks in advance!
Brian