Microsoft.Win32.SystemEvents Class
Most of you might have known this for some time now, but
this is my first time working with it.
This
is so cool and could be very usefull in the future. The SysemEvents class
basicly provides a set of global system events to it's callers. You can
find a list of SystemEvents Members here.
"System events are things such as shutdown notifications and changes to
user preferences. When a system event is raised calls back the corresponding
delegate from a different thread. Therefore, you should make the call
thread-safe. If you need to call a system event that is not exposed as a member
of this class, you can use the InvokeOnEventsThread
method.
Note Do not perform time-consuming
processing in a system event notification because it might prevent other
applications from functioning."
powered by IMHO