J
Jarod_24
How do a windows-service detect whether a user is logged or not on a computer?
So far i've found nothing in the windows api or any code examples that will allow me to figure this out.
The solution i have today is to use Diagnostics.Process.GetProcesses and then iterate through the array i get and look for
explorer.exe
Explorer.exe is not loaded when a user is logged out of a computer.
I found this on winlogon states:
http://msdn.microsoft.com/library/d...y/en-us/secauthn/security/winlogon_states.asp
but i cant see any api methods that will return the state that winlogon is actually in...
the only solution getting close to this issue i found at http://weblogs.asp.net/ralfw/archive/2004/01/04/47388.aspx but that dosent
work.
So far i've found nothing in the windows api or any code examples that will allow me to figure this out.
The solution i have today is to use Diagnostics.Process.GetProcesses and then iterate through the array i get and look for
explorer.exe
Explorer.exe is not loaded when a user is logged out of a computer.
I found this on winlogon states:
http://msdn.microsoft.com/library/d...y/en-us/secauthn/security/winlogon_states.asp
but i cant see any api methods that will return the state that winlogon is actually in...
the only solution getting close to this issue i found at http://weblogs.asp.net/ralfw/archive/2004/01/04/47388.aspx but that dosent
work.