Can someone please give me a hand.
How can I, from a service, find out the current logged on user (if any)??
I have tried the reg key
"HCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Logon User Name"
but this only varies if I run the service in debug mode (ie. not as a
service but rather a ordinary interactiv program) - if the program runs as a
service, it always displays my accountname followed by "@mydomainname.com".
This is the case even if I logoff and then logon as a different user.
Owe Armandt
|