Clase CSecurityAttributes
Esta clase es un contenedor fino de la estructura de atributos de seguridad.
Importante
Esta clase y sus miembros no se pueden usar en las aplicaciones que se ejecutan en Windows Runtime.
class CSecurityAttributes : public SECURITY_ATTRIBUTES
Nombre | Descripción |
---|---|
CSecurityAttributes::CSecurityAttributes | Constructor . |
Nombre | Descripción |
---|---|
CSecurityAttributes::Set | Llame a este método para establecer los atributos del objeto CSecurityAttributes . |
La estructura SECURITY_ATTRIBUTES
contiene un descriptor de seguridad que se usa para la creación de un objeto y especifica si el manipulador que se ha recuperado mediante la especificación de esta estructura se puede heredar.
Para una introducción al modelo de control de acceso en Windows, consulte Control de acceso en Windows SDK.
SECURITY_ATTRIBUTES
CSecurityAttributes
Encabezado: atlsecurity.h
Constructor .
CSecurityAttributes() throw();
explicit CSecurityAttributes(const CSecurityDesc& rSecurityDescriptor, bool bInheritsHandle = false) throw(...);
rSecurityDescriptor
Referencia a un descriptor de seguridad.
bInheritsHandle
Especifica si se hereda el identificador devuelto cuando se crea un nuevo proceso. Si este miembro es true, el nuevo proceso hereda el identificador.
Llame a este método para establecer los atributos del objeto CSecurityAttributes
.
void Set(const CSecurityDesc& rSecurityDescriptor, bool bInheritHandle = false) throw(...);
rSecurityDescriptor
Referencia a un descriptor de seguridad.
bInheritHandle
Especifica si se hereda el identificador devuelto cuando se crea un nuevo proceso. Si este miembro es true, el nuevo proceso hereda el identificador.
El constructor utiliza este método para inicializar el objeto CSecurityAttributes
.
Ejemplo de seguridad
SECURITY_ATTRIBUTES
descriptor de seguridad
Información general sobre la clase
Funciones globales de seguridad