VirtualBox

source: vbox/trunk/src/VBox/Additions/WINNT/Graphics/Wine/include/aclui.h@ 30705

Last change on this file since 30705 was 19678, checked in by vboxsync, 16 years ago

opengl: update wine to 1.1.21, add d3d9.dll to build list

  • Property svn:eol-style set to native
File size: 9.2 KB
Line 
1/*
2 * Copyright (C) 2009 Nikolay Sivov
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
17 */
18
19/*
20 * Sun LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
21 * other than GPL or LGPL is available it will apply instead, Sun elects to use only
22 * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
23 * a choice of LGPL license versions is made available with the language indicating
24 * that LGPLv2 or any later version may be used, or where a choice of which version
25 * of the LGPL is applied is otherwise unspecified.
26 */
27
28#ifndef __WINE_ACLUI_H
29#define __WINE_ACLUI_H
30
31#include <objbase.h>
32#include <commctrl.h>
33#include <accctrl.h>
34
35#ifdef __cplusplus
36extern "C" {
37#endif /* __cplusplus */
38
39typedef struct _SI_OBJECT_INFO
40{
41 DWORD dwFlags;
42 HINSTANCE hInstance;
43 LPWSTR pszServerName;
44 LPWSTR pszObjectName;
45 LPWSTR pszPageTitle;
46 GUID guidObjectType;
47} SI_OBJECT_INFO, *PSI_OBJECT_INFO;
48
49#define SI_EDIT_PERMS 0x00000000
50#define SI_EDIT_OWNER 0x00000001
51#define SI_EDIT_AUDITS 0x00000002
52#define SI_CONTAINER 0x00000004
53#define SI_READONLY 0x00000008
54#define SI_ADVANCED 0x00000010
55#define SI_RESET 0x00000020
56#define SI_OWNER_READONLY 0x00000040
57#define SI_EDIT_PROPERTIES 0x00000080
58#define SI_OWNER_RECURSE 0x00000100
59#define SI_NO_ACL_PROTECT 0x00000200
60#define SI_NO_TREE_APPLY 0x00000400
61#define SI_PAGE_TITLE 0x00000800
62#define SI_SERVER_IS_DC 0x00001000
63#define SI_RESET_DACL_TREE 0x00004000
64#define SI_RESET_SACL_TREE 0x00008000
65#define SI_OBJECT_GUID 0x00010000
66#define SI_EDIT_EFFECTIVE 0x00020000
67#define SI_RESET_DACL 0x00040000
68#define SI_RESET_SACL 0x00080000
69#define SI_RESET_OWNER 0x00100000
70#define SI_NO_ADDITIONAL_PERMISSION 0x00200000
71#define SI_VIEW_ONLY 0x00400000
72#define SI_PERMS_ELEVATION_REQUIRED 0x01000000
73#define SI_AUDITS_ELEVATION_REQUIRED 0x02000000
74#define SI_OWNER_ELEVATION_REQUIRED 0x04000000
75#define SI_MAY_WRITE 0x10000000
76
77#define SI_EDIT_ALL (SI_EDIT_PERMS | SI_EDIT_OWNER | SI_EDIT_AUDITS)
78
79typedef struct _SI_ACCESS
80{
81 const GUID *pguid;
82 ACCESS_MASK mask;
83 LPCWSTR pszName;
84 DWORD dwFlags;
85} SI_ACCESS, *PSI_ACCESS;
86
87#define SI_ACCESS_SPECIFIC 0x00010000
88#define SI_ACCESS_GENERAL 0x00020000
89#define SI_ACCESS_CONTAINER 0x00040000
90#define SI_ACCESS_PROPERTY 0x00080000
91
92typedef struct _SI_INHERIT_TYPE
93{
94 const GUID *pguid;
95 ULONG dwFlags;
96 LPCWSTR pszName;
97} SI_INHERIT_TYPE, *PSI_INHERIT_TYPE;
98
99typedef enum _SI_PAGE_TYPE
100{
101 SI_PAGE_PERM,
102 SI_PAGE_ADVPERM,
103 SI_PAGE_AUDIT,
104 SI_PAGE_OWNER,
105 SI_PAGE_EFFECTIVE,
106 SI_PAGE_TAKEOWNERSHIP
107} SI_PAGE_TYPE;
108
109#define PSPCB_SI_INITDIALOG (WM_USER + 1)
110
111#undef INTERFACE
112#define INTERFACE ISecurityInformation
113DECLARE_INTERFACE_IID_(ISecurityInformation, IUnknown, "965fc360-16ff-11d0-91cb-00aa00bbb723")
114{
115 /* IUnknown methods */
116 STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID * ppvObj) PURE;
117 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
118 STDMETHOD_(ULONG,Release) (THIS) PURE;
119
120 /* ISecurityInformation methods */
121 STDMETHOD(GetObjectInformation) (THIS_ PSI_OBJECT_INFO pObjectInfo ) PURE;
122 STDMETHOD(GetSecurity) (THIS_ SECURITY_INFORMATION RequestedInformation,
123 PSECURITY_DESCRIPTOR *ppSecurityDescriptor,
124 BOOL fDefault ) PURE;
125 STDMETHOD(SetSecurity) (THIS_ SECURITY_INFORMATION SecurityInformation,
126 PSECURITY_DESCRIPTOR pSecurityDescriptor ) PURE;
127 STDMETHOD(GetAccessRights) (THIS_ const GUID* pguidObjectType,
128 DWORD dwFlags,
129 PSI_ACCESS *ppAccess,
130 ULONG *pcAccesses,
131 ULONG *piDefaultAccess ) PURE;
132 STDMETHOD(MapGeneric) (THIS_ const GUID *pguidObjectType,
133 UCHAR *pAceFlags,
134 ACCESS_MASK *pMask) PURE;
135 STDMETHOD(GetInheritTypes) (THIS_ PSI_INHERIT_TYPE *ppInheritTypes,
136 ULONG *pcInheritTypes ) PURE;
137 STDMETHOD(PropertySheetPageCallback)(THIS_ HWND hwnd, UINT uMsg, SI_PAGE_TYPE uPage ) PURE;
138};
139typedef ISecurityInformation *LPSECURITYINFO;
140
141#undef INTERFACE
142#define INTERFACE ISecurityInformation2
143DECLARE_INTERFACE_IID_(ISecurityInformation2, IUnknown, "c3ccfdb4-6f88-11d2-a3ce-00c04fb1782a")
144{
145 /* IUnknown methods */
146 STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID * ppvObj) PURE;
147 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
148 STDMETHOD_(ULONG,Release) (THIS) PURE;
149
150 /* ISecurityInformation2 methods */
151 STDMETHOD_(BOOL,IsDaclCanonical) (THIS_ PACL pDacl) PURE;
152 STDMETHOD(LookupSids) (THIS_ ULONG cSids, PSID *rgpSids, LPDATAOBJECT *ppdo) PURE;
153};
154typedef ISecurityInformation2 *LPSECURITYINFO2;
155
156#define CFSTR_ACLUI_SID_INFO_LIST TEXT("CFSTR_ACLUI_SID_INFO_LIST")
157
158typedef struct _SID_INFO
159{
160 PSID pSid;
161 PWSTR pwzCommonName;
162 PWSTR pwzClass;
163 PWSTR pwzUPN;
164} SID_INFO, *PSID_INFO;
165
166typedef struct _SID_INFO_LIST
167{
168 ULONG cItems;
169 SID_INFO aSidInfo[ANYSIZE_ARRAY];
170} SID_INFO_LIST, *PSID_INFO_LIST;
171
172
173#undef INTERFACE
174#define INTERFACE IEffectivePermission
175DECLARE_INTERFACE_IID_(IEffectivePermission, IUnknown, "3853dc76-9f35-407c-88a1-d19344365fbc")
176{
177 /* IUnknown methods */
178 STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID * ppvObj) PURE;
179 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
180 STDMETHOD_(ULONG,Release) (THIS) PURE;
181
182 /* ISecurityInformation methods */
183 STDMETHOD(GetEffectivePermission) (THIS_
184 const GUID* pguidObjectType,
185 PSID pUserSid,
186 LPCWSTR pszServerName,
187 PSECURITY_DESCRIPTOR pSD,
188 POBJECT_TYPE_LIST *ppObjectTypeList,
189 ULONG *pcObjectTypeListLength,
190 PACCESS_MASK *ppGrantedAccessList,
191 ULONG *pcGrantedAccessListLength) PURE;
192};
193typedef IEffectivePermission *LPEFFECTIVEPERMISSION;
194
195#undef INTERFACE
196#define INTERFACE ISecurityObjectTypeInfo
197DECLARE_INTERFACE_IID_(ISecurityObjectTypeInfo, IUnknown, "fc3066eb-79ef-444b-9111-d18a75ebf2fa")
198{
199 /* IUnknown methods */
200 STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID * ppvObj) PURE;
201 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
202 STDMETHOD_(ULONG,Release) (THIS) PURE;
203
204 /* ISecurityInformation methods */
205 STDMETHOD(GetInheritSource)(THIS_ SECURITY_INFORMATION si,
206 PACL pACL,
207#ifndef WINE_NO_UNICODE_MACROS
208 PINHERITED_FROM *ppInheritArray
209#else
210 PINHERITED_FROMW *ppInheritArray
211#endif
212 ) PURE;
213};
214typedef ISecurityObjectTypeInfo *LPSecurityObjectTypeInfo;
215
216
217#undef INTERFACE
218#define INTERFACE ISecurityInformation3
219DECLARE_INTERFACE_IID_(ISecurityInformation3, IUnknown, "e2cdc9cc-31bd-4f8f-8c8b-b641af516a1a")
220{
221 /* IUnknown methods */
222 STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID * ppvObj) PURE;
223 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
224 STDMETHOD_(ULONG,Release) (THIS) PURE;
225
226 /* ISecurityInformation3 methods */
227 STDMETHOD(GetFullResourceName) (THIS_ LPWSTR *ppszResourceName) PURE;
228 STDMETHOD(OpenElevatedEditor) (THIS_ HWND hWnd, SI_PAGE_TYPE uPage) PURE;
229};
230typedef ISecurityInformation3 *LPSECURITYINFO3;
231
232DEFINE_GUID(IID_ISecurityInformation, 0x965fc360, 0x16ff, 0x11d0, 0x91, 0xcb, 0x0, 0xaa, 0x0, 0xbb, 0xb7, 0x23);
233DEFINE_GUID(IID_ISecurityInformation2, 0xc3ccfdb4, 0x6f88, 0x11d2, 0xa3, 0xce, 0x0, 0xc0, 0x4f, 0xb1, 0x78, 0x2a);
234DEFINE_GUID(IID_IEffectivePermission, 0x3853dc76, 0x9f35, 0x407c, 0x88, 0xa1, 0xd1, 0x93, 0x44, 0x36, 0x5f, 0xbc);
235DEFINE_GUID(IID_ISecurityObjectTypeInfo, 0xfc3066eb, 0x79ef, 0x444b, 0x91, 0x11, 0xd1, 0x8a, 0x75, 0xeb, 0xf2, 0xfa);
236DEFINE_GUID(IID_ISecurityInformation3, 0xe2cdc9cc, 0x31bd, 0x4f8f, 0x8c, 0x8b, 0xb6, 0x41, 0xaf, 0x51, 0x6a, 0x1a);
237
238HPROPSHEETPAGE WINAPI CreateSecurityPage(LPSECURITYINFO psi);
239BOOL WINAPI EditSecurity(HWND owner, LPSECURITYINFO psi);
240HRESULT WINAPI EditSecurityAdvanced(HWND owner, LPSECURITYINFO psi, SI_PAGE_TYPE uSIPage);
241
242#ifdef __cplusplus
243}
244#endif /* __cplusplus */
245
246#endif /* __WINE_ACLUI_H */
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette