Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
LookupAccountName definition
Message
From
19/06/1997 11:27:42
 
 
To
19/06/1997 10:55:41
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00036970
Message ID:
00036974
Views:
50
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform