Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
LookupAccountName definition
Message
From
19/06/1997 10:55:41
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
LookupAccountName definition
Miscellaneous
Thread ID:
00036970
Message ID:
00036970
Views:
91
In order to use NetLocalGroupAddMember, I need to get the SID first.

For that, I am using LookupAccountName. Here's the structure of that command.

BOOL LookupAccountName(
LPCTSTR lpszSystem, // address of string for system name
LPCTSTR lpszAccount, // address of string for account name
PSID psid, // address of security identifier
LPDWORD lpcbSid, // address of size of security identifier
LPTSTR lpszReferencedDomain, // address of string for referenced domain
LPDWORD lpcchReferencedDomain, // address of size of domain string
PSID_NAME_USE psnu // address of SID-type indicator
);

Is this DECLARE ok to define that?

DECLARE LOGICAL LookupAccountName STRING,STRING,STRING,INTEGER,STRING,INTEGER,STRING

I am not sure if PS represent a string or an integer.

Also, I am not sure about the first 2 parameters. Usually, we pass the server name and user name but here we have to pass a constant for both of those parameters.
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
Next
Reply
Map
View

Click here to load this message in the networking platform