The LookupAccountName function accepts the name of a system and an account as input. It retrieves a security identifier (SID) for the account and the name of the domain on which the account was found.
BOOL LookupAccountName(
LPCTSTR lpSystemName, |
// address of string for system name |
LPCTSTR lpAccountName, |
// address of string for account name |
PSID Sid, |
// address of security identifier |
LPDWORD cbSid, |
// address of size of security identifier |
LPTSTR ReferencedDomainName, |
// address of string for referenced domain |
LPDWORD cbReferencedDomainName, |
// address of size of domain string |
PSID_NAME_USE peUse |
// address of SID-type indicator |
); |
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError.
The LookupAccountName function attempts to find a security identifier for the specified name by first checking a list of well-known SIDs. If the name does not correspond to a well-known SID, the function checks built-in and administratively defined local accounts. Next, the function checks the primary domain. If the name is not found there, trusted domains are checked.
EqualPrefixSid, GetUserName, LookupAccountSid
file: /Techref/os/win/api/win32/func/src/f55_2.htm, 5KB, , updated: 2000/4/7 11:19, local time: 2024/12/29 10:46,
3.138.134.106:LOG IN
|
©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://ecomorder.com/techref/os/win/api/win32/func/src/f55_2.htm"> LookupAccountName</A> |
Did you find what you needed? |
Welcome to ecomorder.com! |
Welcome to ecomorder.com! |
.