Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Need An API Call
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00552691
Message ID:
00553168
Vues:
18
>>How do I know what 'myDomain' & 'myUser' are?
>>
>>Thanks
>
>The domain parameter can also be a machine name, so for a stand-alone Sys(0) should give both out. The machine name is before the "#" and user is after.
>
>Otherwise you can use this API call for the user name: GetUserName (http://www.levelextreme.com/wconnect/wc.dll?FournierTransformation~2,31,Forum=0,18,13).
>
>I haven't had a need to extract a domain, but there should be a way to do this with ADSI or an API call. If this program will run on a known domain, you can always hard-code that in.

To get the domain you might want to try GETENV("userdomain").

Roger
Aremaitch Consulting
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform