LindaRichard
Programmer
In my Visual Fox Pro 6.0 application I use the Windows API to get the users network name though the registry to set access to various parts of the database.
Everything works fine with Windows 98 2 nd edition with the following keys:
HKEY_LOCAL_MACHINE
Network
Logon
Username
I can retrieve an 8 character username
The problem is that with Windows 2000 professional the registry returns encoded characters. Does anyone have any idea how I can get the network logon username into FoxPro without having to add a routine to force the user to logon a second time?
Thanks
Linda
Everything works fine with Windows 98 2 nd edition with the following keys:
HKEY_LOCAL_MACHINE
Network
Logon
Username
I can retrieve an 8 character username
The problem is that with Windows 2000 professional the registry returns encoded characters. Does anyone have any idea how I can get the network logon username into FoxPro without having to add a routine to force the user to logon a second time?
Thanks
Linda