Author: Dave Crozier
Posted: 2009-02-25 at 12:41:35
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: profox-bounces@leafe.com [mailto:profox-bounces@leafe.com] 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]