Hi,
I have several machines running XP and using Fast User Switching. The code I'm writing, which runs when the user logs in, changes the version of certain files depending upon the users name. I've invoked it as shown below....
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]
"VersionControl"="C:\\Program Files\\Mk3 Version Control\\Launch Version Control.exe"
My problem is that many users access the machines remotely using 'remote desktop connection' and do not always log off, but simply disconnect the session. This leaves the user in a 'disconnected' state. If another user logs in, my code runs and changes the files okay, appropriate for that user, but if the original user reconnects, the login code is not executed and they end up with the wrong version of the files.
Turning off Fast User Switching is sadly not an option!
Does anybody know how to obtain a list of currently logged in users using VB .NET?
I have several machines running XP and using Fast User Switching. The code I'm writing, which runs when the user logs in, changes the version of certain files depending upon the users name. I've invoked it as shown below....
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]
"VersionControl"="C:\\Program Files\\Mk3 Version Control\\Launch Version Control.exe"
My problem is that many users access the machines remotely using 'remote desktop connection' and do not always log off, but simply disconnect the session. This leaves the user in a 'disconnected' state. If another user logs in, my code runs and changes the files okay, appropriate for that user, but if the original user reconnects, the login code is not executed and they end up with the wrong version of the files.
Turning off Fast User Switching is sadly not an option!
Does anybody know how to obtain a list of currently logged in users using VB .NET?