How do you detect a Windows login event?
If any mechanism exists, it will most likely be in WMI. There are several WMI classes. Noteworthy Win32_LogonSession; which is associated with Win32_Accountthrough Win32_LoggedonUser). If creation events are supported for Win32_LogonSession, then this will be a very efficient method.
And how do you initiate a user login from a Windows service?
API LogonUser , . CreateProcessWithLogonW ( ) ( LogonUser plus CreateProcessWithTokenW).