Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP Menu and Menu Toolbar
Message
General information
Forum:
Visual FoxPro
Category:
Menus & Menu designer
Miscellaneous
Thread ID:
00241831
Message ID:
00242091
Views:
24
>Thanks again! I'll give that a try.
>
>Since you're already reading this I'll go ahead and trouble you with one more question: Do you know of a way to read the userid from the Windows/NT registries? I have a request to automatically login the current user into a VFP APP with their current Windows or NT login? Can this even be done?

There's no need to go to the registry for the information; the current userid is an API call a stone's throw away, and it can also be extracted from the SYS(0) function return. There's an entry in the FAQ under Win32 and Other APIs that shows in 4 or 5 lines of code how to retrieve the username with the GetUsername Win32 API call, by the strange and unlikely name How to get the username?
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform