Platform SDK: Access Control |
The CreateSecurityPage function creates a basic security property page that enables the user to view and edit the access rights allowed or denied by the ACEs in an object's DACL. Use the PropertySheet function or the PSM_ADDPAGE message to add this page to a property sheet.
HPROPSHEETPAGE CreateSecurityPage( LPSECURITYINFO psi // an ISecurityInformation pointer );
If the function succeeds, the return value is a handle to a basic security property page.
If the function fails, the return value is NULL. To get extended error information, call GetLastError.
During the property page initialization, the system calls the ISecurityInformation::GetSecurity and ISecurityInformation::SetSecurity methods to determine whether the user has permission to edit the object's security descriptor. The system displays an error message if the user does not have permission.
The basic security property page can include an Advanced button for displaying the advanced security property sheet. This advanced security property sheet can contain three additional property pages that enable the user to view and edit the object's DACL, SACL, and owner.
Windows NT/2000: Requires Windows 2000.
Header: Declared in Aclui.h.
Library: Use Aclui.lib.
Access Control Editor Overview, Access Control Editor Functions, EditSecurity, ISecurityInformation, PropertySheet, PSM_ADDPAGE