Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is there a way in VFP to determine the windows profile..
Message
De
23/02/2004 15:24:11
Lamar Glover
Southeastern Apparel, Inc.
Dothan, Alabama, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00880042
Message ID:
00880065
Vues:
26
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform