John, Why not simply use Sys(0) that gives you the machine name and the Login name and it is version independent.
I assume you are running on a network. Dave Crozier -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Jon Westcot Sent: 25 February 2009 16:45 To: ProFox Subject: Question on Registry in Vista vs Windows XP Hi all: I've got a question regarding retrieving a value from the Registry within Vista that I hope someone here can help me answer. Here's the situation. I've got an existing application that has been working just fine under Windows XP Pro. At application startup, it queries the Registry to retrieve the following key value: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Logon User Name This value is then used to check in a Security table for a match on the name. (Yes, I know this is an odd logon situation; it's what the client wanted.) The thing is, now they're looking to move to Vista. And, for some reason, this key value does not exist in Vista. Can someone point me to a reference of registry keys for Vista? Or can someone recommend to me a key value I could use that would return the Logon User Name? Unfortunately, I don't have direct access to Vista, so I can't just open up the Registry and browse around to find the appropriate key. Any help you can send my way will be greatly appreciated. Jon [excessive quoting removed by server] _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/fa7432514ddf47979aaa21a4054c4...@develop ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

