Authorization Functions


EditSecurity Function

The EditSecurity function displays a property sheet that contains a basic security property page. This property page enables the user to view and edit the access rights allowed or denied by the ACEs in an object's DACL.

Syntax

C++
BOOL WINAPI EditSecurity(
  __in  HWND hwndOwner,
  __in  LPSECURITYINFO psi
);

Parameters

hwndOwner [in]

A handle to the window that owns the property sheet. This parameter can be NULL.

psi [in]

A pointer to your implementation of the ISecurityInformation interface. The system calls the interface methods to retrieve information about the object being edited and to return the user's input.

Return Value

If the function succeeds, the return value is a nonzero value.

If the function fails, the return value is zero. To get extended error information, call GetLastError.

Remarks

The EditSecurity function calls the CreateSecurityPage function to create a basic security property page.

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.

Requirements

Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderAclui.h
LibraryAclui.lib
DLLAclui.dll

See Also

Access Control Editor
Access Control Editor Functions
CreateSecurityPage
GetSecurity
ISecurityInformation
SetSecurity

Send comments about this topic to Microsoft

Build date: 9/11/2009

Tags :


Page view tracker