Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is there a way in VFP to determine the windows profile..
Message
 
To
23/02/2004 14:46:24
Lamar Glover
Southeastern Apparel, Inc.
Dothan, Alabama, United States
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00880042
Message ID:
00880063
Views:
16
>George,
>
>Thanks for your response. I'm looking for a way to determine the folder where the user's profile is located. For example on my machine it is located in C:\WINNT\Profiles\(username). I am trying to determine this info while in a VFP application. I want to store user info for whichever user is logged on to the machine.
>
>Thanks again.

Well, there's the API call (which I've never used, BTW) called GetUserProfileDirectory(). There's more to this, however, than simply calling this function. You have to first get handle to a token for the user.

There's also GetDefaultUserProfileDirectory(). This is much simpler to use. If this would be acceptable, I'd recommend going with that. If you'd like I can post some code to access these functions.
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform