Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Get User Name from the OS
Message
From
16/10/1998 14:29:49
 
 
General information
Forum:
Visual FoxPro
Category:
FoxPro 2.x
Miscellaneous
Thread ID:
00147628
Message ID:
00147630
Views:
23
>I am trying to obtain the User name from the OS in a Win95 or NT environment from a 16 bit FoxPro (2.6 for windows) program. This is easily done from a 32 bit program using the GetUserName API. Can I address the 32 bit API from a 16 bit program? Or, is there another way of obtaing the User Name from a 16 bit app??

You could always go back to the old way of doing it. Creating a DOS environment variable during their login and then using GETENV in FoxPro...
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform