Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is there a way in VFP to determine the windows profile..
Message
 
À
23/02/2004 14:46:24
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:
00880063
Vues:
17
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform