 |
LookupAccountSid ..msdn Add comment W32 Constants Translate this page |
 |
 |
|
The LookupAccountSid function accepts a security identifier (SID) as input. It retrieves the name of the account for this SID and the name of the first domain on which this SID is found. |
 |
 |
| Code examples: |
 |
|
|
 |
 |
| Declaration: |
 |
 |
BOOL LookupAccountSid(
LPCTSTR lpSystemName,
PSID lpSid,
LPTSTR lpName,
LPDWORD cchName,
LPTSTR lpReferencedDomainName,
LPDWORD cchReferencedDomainName,
PSID_NAME_USE peUse
);
|
 |
 |
 |
| FoxPro declaration: |
 |
 |
DECLARE INTEGER LookupAccountSid IN advapi32;
STRING @ lpSystemName,;
INTEGER lpSid,;
STRING @ lpName,;
INTEGER @ cchName,;
STRING @ lpRefdDomain,;
INTEGER @ cchRefdDomain,;
INTEGER @ peUse
|
 |
 |
 |
| Parameters: |
 |
lpSystemName
[in] Pointer to a null-terminated character string that specifies the target computer.
lpSid
[in] Pointer to the SID to look up.
lpName
[out] Pointer to a buffer that receives a null-terminated string that contains the account name that corresponds to the lpSid parameter.
cchName
[in, out] On input, specifies the size, in TCHARs, of the lpName buffer.
cchReferencedDomainName
[in, out] On input, specifies the size, in TCHARs, of the lpReferencedDomainName buffer.
peUse
[out] Pointer to a variable that indicates the type of the account. |
 |
 |
| Return value: |
 |
| If the function succeeds, the function returns nonzero. |
 |
 |
| My comment: |
 |
| If the function fails, it returns zero. To get extended error information, call GetLastError. |
 |
 |
| Word Index links for the LookupAccountSid : |
 |
|
|
 |
 |
| Translate this page: |
 |
|
 |
 |
| • |
 |
| Created: | 2004-02-25 21:17:24 | | Modified: | 2004-02-25 21:19:59 | Visited in last 7 days: 37 |