4 #pragma GCC system_header
14 #define ACLUIAPI DECLSPEC_IMPORT WINAPI
16 #define ACLUIAPI WINAPI
23 typedef struct _SI_OBJECT_INFO
31 } SI_OBJECT_INFO
, *PSI_OBJECT_INFO
;
33 /* values for SI_OBJECT_INFO.dwFlags */
34 #define SI_EDIT_PERMS 0x00000000L
35 #define SI_EDIT_OWNER 0x00000001L
36 #define SI_EDIT_AUDITS 0x00000002L
37 #define SI_CONTAINER 0x00000004L
38 #define SI_READONLY 0x00000008L
39 #define SI_ADVANCED 0x00000010L
40 #define SI_RESET 0x00000020L
41 #define SI_OWNER_READONLY 0x00000040L
42 #define SI_EDIT_PROPERTIES 0x00000080L
43 #define SI_OWNER_RECURSE 0x00000100L
44 #define SI_NO_ACL_PROTECT 0x00000200L
45 #define SI_NO_TREE_APPLY 0x00000400L
46 #define SI_PAGE_TITLE 0x00000800L
47 #define SI_SERVER_IS_DC 0x00001000L
48 #define SI_RESET_DACL_TREE 0x00004000L
49 #define SI_RESET_SACL_TREE 0x00008000L
50 #define SI_OBJECT_GUID 0x00010000L
51 #define SI_EDIT_EFFECTIVE 0x00020000L
52 #define SI_RESET_DACL 0x00040000L
53 #define SI_RESET_SACL 0x00080000L
54 #define SI_RESET_OWNER 0x00100000L
55 #define SI_NO_ADDITIONAL_PERMISSION 0x00200000L
56 #define SI_MAY_WRITE 0x10000000L
58 #define SI_EDIT_ALL (SI_EDIT_PERMS | SI_EDIT_OWNER | SI_EDIT_AUDITS)
61 typedef struct _SI_ACCESS
67 } SI_ACCESS
, *PSI_ACCESS
;
69 /* values for SI_ACCESS.dwFlags */
70 #define SI_ACCESS_SPECIFIC 0x00010000L
71 #define SI_ACCESS_GENERAL 0x00020000L
72 #define SI_ACCESS_CONTAINER 0x00040000L
73 #define SI_ACCESS_PROPERTY 0x00080000L
76 typedef struct _SI_INHERIT_TYPE
81 } SI_INHERIT_TYPE
, *PSI_INHERIT_TYPE
;
83 /* values for SI_INHERIT_TYPE.dwFlags
84 INHERIT_ONLY_ACE, CONTAINER_INHERIT_ACE, OBJECT_INHERIT_ACE
88 typedef enum _SI_PAGE_TYPE
97 #define PSPCB_SI_INITDIALOG (WM_USER + 1)
99 #ifndef __ISecurityInformation_INTERFACE_DEFINED__
100 #define __ISecurityInformation_INTERFACE_DEFINED__
101 #define INTERFACE ISecurityInformation
102 DECLARE_INTERFACE_(ISecurityInformation
, IUnknown
)
104 STDMETHOD(QueryInterface
)(THIS_ REFIID
,PVOID
*) PURE
;
105 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
106 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
108 STDMETHOD(GetObjectInformation
)(THIS_ PSI_OBJECT_INFO
) PURE
;
109 STDMETHOD(GetSecurity
)(THIS_ SECURITY_INFORMATION
,PSECURITY_DESCRIPTOR
*,BOOL
) PURE
;
110 STDMETHOD(SetSecurity
)(THIS_ SECURITY_INFORMATION
,PSECURITY_DESCRIPTOR
) PURE
;
111 STDMETHOD(GetAccessRights
)(THIS_
const GUID
*,DWORD
,PSI_ACCESS
*,ULONG
*,ULONG
*) PURE
;
112 STDMETHOD(MapGeneric
)(THIS_
const GUID
*,UCHAR
*,ACCESS_MASK
*) PURE
;
113 STDMETHOD(GetInheritTypes
)(THIS_ PSI_INHERIT_TYPE
*,ULONG
*) PURE
;
114 STDMETHOD(PropertySheetPageCallback
)(THIS_ HWND
,UINT
,SI_PAGE_TYPE
) PURE
;
117 typedef ISecurityInformation
*LPSECURITYINFO
;
121 * TODO: ISecurityInformation2, IEffectivePermission, ISecurityObjectTypeInfo
124 extern DECLSPEC_IMPORT
const IID IID_ISecurityInformation
;
127 HPROPSHEETPAGE ACLUIAPI
CreateSecurityPage(LPSECURITYINFO psi
);
128 BOOL ACLUIAPI
EditSecurity(HWND hwndOwner
, LPSECURITYINFO psi
);