I have discovered how to catch SENS events using .NET 1.1, and recently found out that .NET 2.0 will raise similar SENS events. Unfortunately, these events that 2.0 raises do not provide as much information as what I can get from SENS directly.
I will be providing links to both my local documentation, as well as the online WinFX documentation on the http://winfx.msdn.microsoft.com/library/ website in regards to the following questions.
With the SystemEvents class in the Microsoft.Win32 namespace,
longhorn:
http://winfx.msdn.microsoft.com/library/en-us/cpref/winfx/ref/ns/microsoft.win32/c/systemevents/systemevents.asp frame=true
local Beta1 docs:
ms-help://MS.VSCC.v80/MS.MSDNQTR.v80.en/MS.MSDN.v80/MS.NETDEVFX.v20.en/cpref/html/T_Microsoft_Win32_SystemEvents.htm
There is a SessionSwitch event that is raised when a person logs onto the system, locks the screen, etc.
Why is the username that causes events dropped Suppose I have a Windows Service that I want to monitor when people that are NOT in a Windows Domain log in. How can I tell who caused the event to be raised for that interactive session
Why is there no event raised when the screensaver starts and stops I would like to do high-priority processing when the screensaver starts without requiring that a user have a particular screen saver installed
SessionSwitchEventArgs (notice, it only has a Reason, no User)
longhorn
http://winfx.msdn.microsoft.com/library/en-us/cpref/winfx/ref/ns/microsoft.win32/c/sessionswitcheventargs/sessionswitcheventargs.asp frame=true
local Beta1 docs
ms-help://MS.VSCC.v80/MS.MSDNQTR.v80.en/MS.MSDN.v80/MS.NETDEVFX.v20.en/cpref/html/T_Microsoft_Win32_SessionSwitchEventArgs.htm
SessionSwitchReason enumeration (notice, no ScreenSaver start or stop)
longhorn
http://winfx.msdn.microsoft.com/library/en-us/cpref/winfx/ref/ns/microsoft.win32/e/sessionswitchreason/sessionswitchreason.asp frame=true
local Beta1 docs
ms-help://MS.VSCC.v80/MS.MSDNQTR.v80.en/MS.MSDN.v80/MS.NETDEVFX.v20.en/cpref/html/T_Microsoft_Win32_SessionSwitchReason.htm
Should I just revert to my 1.1 ways of getting those events directly
Thank you,
Richard Arthur

SENS Events in .NET 2.0
Ranger1370
I suggest you post a suggestion of the Microsoft Product Feedback Center so that Microsoft are aware what customers are finding is missing from the .NET Framework.