I have a program that runs as a service and it works just great on Windows 2000,
but it doesn't work properly on windows XP when multiple users are logged in.
I need to interact with explorer for purposes of using the tray icon, mounting remote
drives, displaying a GUI and other user oriented stuff.
I found several examples that use ImpersonateLoggedOnUser which gets the required
token by finding the process of "Explorer". Now that there are multiple users, there
are multiple processes named "Explorer". When the user selects "Switch User" how
do I detect the change and know which explorer is the active one?? Is impersonateLoggedOnUser
the right way to make function calls relate to one of the instances of Explorer or is
there a different way of changing how my service relates to multiple instances of
explorer??
Thanks a lot!
Start Free Trial