scripting - Trigger an event when system locks/unlocks on Windows XP -


please me find way track lock/unlock time on winxp machine. i've tried windows scheduler - logs logins, not locks. alternatives?

in miranda's source code saw implementation via idleobject tracker, way long. may autoit script? time tracking program (freeware)?

if have windows service can notification of login/logout/lock/unlock events via onsessionchange method. in c# this:

 protected override void onsessionchange(sessionchangedescription changedescription)  {         switch (changedescription.reason)         {             case sessionchangereason.sessionlogon:                 //logon                 break;             case sessionchangereason.sessionlogoff:                 //logoff                 break;             case sessionchangereason.remoteconnect:                 //remote connect                 break;             case sessionchangereason.remotedisconnect:                 //remote disconnect                 break;             case sessionchangereason.sessionlock:                 //lock                 break;             case sessionchangereason.sessionunlock:                 //unlock                 break;             default:                 break;         }  } 

Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -