Are there methods to detect:

a. When Windows is going into standby state?

b. When Windows 2000 has the keyboard locked by Ctr-Alt-Del.

I already know how to detect when the screen saver is on. Basically, I would like a comprehensive solution to detect when the computer is unattended or shut down.

Thanks.

Sam