Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
LookupAccountName definition
Message
De
19/06/1997 11:27:42
 
 
À
19/06/1997 10:55:41
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00036970
Message ID:
00036974
Vues:
53
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 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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform