Run a script when either locking or unlocking Windows XP Run a script when either locking or unlocking Windows XP windows windows

Run a script when either locking or unlocking Windows XP


The standard way in Windows is to write a package (a dll) that subscribes to Winlogon notification events.

I don't know of any tool that provides an easy way to hook into those events, but you could make your package launch a script from some specific place if you really need your actions to be inside one.