Поделиться через


CSid::CSid

The constructor.

CSid( ) throw( ); 
CSid( 
   const SID & rhs  
) throw(...); 
CSid( 
   const CSid & rhs  
) throw(...); 
CSid( 
   const SID_IDENTIFIER_AUTHORITY & IdentifierAuthority, 
   BYTE nSubAuthorityCount, 
   ...  
) throw(...); 
explicit CSid( 
   LPCTSTR pszAccountName, 
   LPCTSTR pszSystem = NULL  
) throw(...); 
explicit CSid( 
   const SID * pSid, 
   LPCTSTR pszSystem = NULL  
) throw(...);

Parameters

  • rhs
    An existing CSid object or SID (security identifier) structure.

  • IdentifierAuthority
    The authority.

  • nSubAuthorityCount
    The subauthority count.

  • 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.

Remarks

The constructor initializes the CSid object, setting an internal data member to SidTypeInvalid, or by copying the settings from an existing CSid, SID, or existing account.

If initialization fails, the constructor will throw a CAtlException Class.

Requirements

Header: atlsecurity.h

See Also

Reference

CSid Class