PC Review


Reply
Thread Tools Rate Thread

Current logged on user

 
 
Owe Armandt
Guest
Posts: n/a
 
      26th Sep 2003
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


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Get current logged-in user =?Utf-8?B?TGF0dGlz?= Microsoft Dot NET 3 14th Dec 2006 02:49 AM
Get current logged on user Niclas Microsoft Dot NET Framework 3 1st Mar 2006 02:44 AM
Exporting Current Logged In User Tim Pafford Microsoft Windows 2000 Registry Archive 2 31st Mar 2004 05:05 AM
Exporting Current Logged In User Tim Pafford Microsoft Windows 2000 Registry Archive 0 30th Mar 2004 09:28 PM
Current logged on user Owe Armandt Microsoft Windows 2000 Developer 0 26th Sep 2003 04:18 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:48 AM.