Is there a way to detect when a user is logging on a system? I found a method as described here: http://msdn.microsoft.com/en-us/library/windows/desktop/aa375405(v=vs.85).aspx but it doesn't work on Windows Vista and hihgher. So does anyone has an idea how to do it?

Thanks!

有帮助吗?

解决方案

Looks like WTSWaitSystemEvent with WTS_EVENT_LOGON might be what you are looking for.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top