문제

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