Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is there a way in VFP to determine the windows profile..
Message
From
23/02/2004 15:24:11
Lamar Glover
Southeastern Apparel, Inc.
Dothan, Alabama, United States
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00880042
Message ID:
00880065
Views:
24
George,

I think that is exactly what I am looking for. I would appreciate it if you could post the code.

Thank you very much and thank you for your patience.
>>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.
Lamar Glover
DP Manager, Southeastern Apparel, Inc.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform