Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
LookupAccountName definition
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00036970
Message ID:
00037058
Vues:
36
>>Here's what I have so far to get the SID from a specific account.
>>
>>FUNCTION GetSid
>>* Retourne le SID
>>* expC1 Nom du serveur
>>* expC2 Code d'usager
>>PARAMETER tcServer,tcUsername
>>DECLARE INTEGER LookupAccountName IN WIN32API;
>> STRING @,STRING @,STRING,INTEGER @,STRING @,INTEGER @,INTEGER
>>LOCAL lcSID,lcDomain
>>lcSID=SPACE(255)
>>lcDomain=SPACE(255)
>>tcServer=tcServer+CHR(0)
>>tcUsername=tcUsername+CHR(0)
>>? LookupAccountName(@tcServer,@tcUsername,@lcSID,255,@lcDomain,255,1)
>>? lcSID
>>? lcDomain
>>
>>This is giving me a Dr. Watson free visit. If someone can detect what is wrong, I will appreciate that. :)
>
>Michel,
>
>All of the parameters should be passed by reference. Don't forget the one's coming into the function as well. If they're passed with something like:

Thanks, I'll try that out.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform