Share via


CSid::LoadAccount

Updates the CSid object given the account name and domain, or an existing SID (security identifier) structure.

bool LoadAccount(
   LPCTSTR pszAccountName,
   LPCTSTR pszSystem = NULL 
) throw(...);
bool LoadAccount(
   const SID * pSid,
   LPCTSTR pszSystem = NULL 
) throw(...);

Parameters

  • pszAccountName
    The account name.

  • pszSystem
    The system name. This string can be the name of a remote computer. If this string is NULL, the local system is used instead.

  • pSid
    A pointer to a SID structure.

Return Value

Returns true on success, false on failure. To get extended error information, call GetLastError.

Remarks

LoadAccount attempts to find a security identifier for the specified name. See LookupAccountSid for more details.

Requirements

Header: atlsecurity.h

See Also

Reference

CSid Class