CSecurityDesc Class
This class is a wrapper for the SECURITY_DESCRIPTOR structure.
Important
This class and its members cannot be used in applications that execute in the Windows Runtime.
class CSecurityDesc
Members
Public Constructors
Name |
Description |
---|---|
The constructor. |
|
The destructor. |
Public Methods
Name |
Description |
---|---|
Converts a string-format security descriptor into a valid, functional security descriptor. |
|
Retrieves control information from the security descriptor. |
|
Retrieves discretionary access-control list (DACL) information from the security descriptor. |
|
Retrieves the primary group information from the security descriptor. |
|
Retrieves owner informaton from the security descriptor. |
|
Returns a pointer to the SECURITY_DESCRIPTOR structure. |
|
Retrieves system access-control list (SACL) information from the security descriptor. |
|
Determines if the DACL is configured to support automatic propagation. |
|
Determines if the security descriptor is configured with a default DACL. |
|
Determines if the security descriptor contains a DACL. |
|
Determines if the DACL is configured to prevent modifications. |
|
Determines if the security descriptor's group security identifier (SID) was set by default. |
|
Determines if the security descriptor's owner SID was set by default. |
|
Determines if the SACL is configured to support automatic propagation. |
|
Determines if the security descriptor is configured with a default SACL. |
|
Determines if the security descriptor contains a SACL. |
|
Determines if the SACL is configured to prevent modifications. |
|
Determines if the security descriptor is in self-relative format. |
|
Call this method to convert the security descriptor to absolute format. |
|
Call this method to convert the security descriptor to self-relative format. |
|
Sets the control bits of a security descriptor. |
|
Sets information in a DACL. If a DACL is already present in the security descriptor, it is replaced. |
|
Sets the primary group information of an absolute format security descriptor, replacing any primary group information already present. |
|
Sets the owner information of an absolute format security descriptor, replacing any owner information already present. |
|
Sets information in a SACL. If a SACL is already present in the security descriptor, it is replaced. |
|
Converts a security descriptor to a string format. |
Public Operators
Name |
Description |
---|---|
Returns a pointer to the SECURITY_DESCRIPTOR structure. |
|
Assignment operator. |
Remarks
The SECURITY_DESCRIPTOR structure contains the security information associated with an object. Applications use this structure to set and query an object's security status. See also AtlGetSecurityDescriptor.
Applications should not modify the SECURITY_DESCRIPTOR structure directly, and instead should use the class methods provided.
For an introduction to the access control model in Windows, see Access Control in the Windows SDK.
Requirements
Header: atlsecurity.h