Compartir a través de


CSid::CSid

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

Parámetros

  • rhs
    un objeto de CSid o una estructura existente de SID (identificador de seguridad).

  • IdentifierAuthority
    la autoridad.

  • nSubAuthorityCount
    El recuento de subauthority.

  • pszAccountName
    el nombre de cuenta.

  • pszSystem
    El nombre del sistema.esta cadena puede ser el nombre de un equipo remoto.Si esta cadena es NULL, el sistema local se usa en su lugar.

  • pSid
    un puntero a una estructura de SID .

Comentarios

El constructor inicializa el objeto de CSid , estableciendo un miembro de datos interno a SidTypeInvalid, o copiar los valores de CSidexistente, de SID, o una cuenta existente.

Si se produce un error en la inicialización, el constructor producirá clase de CAtlException.

Requisitos

encabezado: atlsecurity.h

Vea también

Referencia

Clase de CSid