CSid::CSid

构造函数。

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(...);

参数

  • rhs
    现有 CSid 对象或 SID (安全标识符)结构。

  • IdentifierAuthority
    权限。

  • nSubAuthorityCount
    subauthority计数。

  • pszAccountName
    帐户名。

  • pszSystem
    系统名称。 此字符串可以是远程计算机的名称。 如果该字符串是NULL,使用该本地系统。

  • pSid
    SID 结构的指针。

备注

构造函数初始化 CSid 对象,并设置一个内部数据成员设置为 SidTypeInvalid,或者通过复制现有 CSidSID或现有帐户的设置。

如果初始化失败,构造函数将引发 CAtlException选件类

要求

Header: atlsecurity.h

请参见

参考

CSid Class