I need to track the current in user (the one using the console) on Windows XP SP3.
I tried the following:
If you're making a service, your class is derived from
ServiceBase. Consider investigating the OnSessionChange method. Override this method to detect different types of session changes. It provides both a reason for the session change, and the new session identifier. Be sure in your constructor to set CanHandleSessionChangeEvent to
true, otherwise your override will not be called.