1 | /*
|
---|
2 | * Copyright (C) 2002 Alexandre Julliard
|
---|
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 | * Oracle 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, Oracle 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_ACCCTRL_H
|
---|
29 | #define __WINE_ACCCTRL_H
|
---|
30 |
|
---|
31 | #include <wtypes.h>
|
---|
32 |
|
---|
33 | #ifdef __cplusplus
|
---|
34 | extern "C" {
|
---|
35 | #endif
|
---|
36 |
|
---|
37 | typedef enum _SE_OBJECT_TYPE
|
---|
38 | {
|
---|
39 | SE_UNKNOWN_OBJECT_TYPE = 0,
|
---|
40 | SE_FILE_OBJECT,
|
---|
41 | SE_SERVICE,
|
---|
42 | SE_PRINTER,
|
---|
43 | SE_REGISTRY_KEY,
|
---|
44 | SE_LMSHARE,
|
---|
45 | SE_KERNEL_OBJECT,
|
---|
46 | SE_WINDOW_OBJECT,
|
---|
47 | SE_DS_OBJECT,
|
---|
48 | SE_DS_OBJECT_ALL,
|
---|
49 | SE_PROVIDER_DEFINED_OBJECT,
|
---|
50 | SE_WMIGUID_OBJECT,
|
---|
51 | SE_REGISTRY_WOW64_32KEY
|
---|
52 | } SE_OBJECT_TYPE;
|
---|
53 |
|
---|
54 | typedef enum _TRUSTEE_TYPE
|
---|
55 | {
|
---|
56 | TRUSTEE_IS_UNKNOWN,
|
---|
57 | TRUSTEE_IS_USER,
|
---|
58 | TRUSTEE_IS_GROUP,
|
---|
59 | TRUSTEE_IS_DOMAIN,
|
---|
60 | TRUSTEE_IS_ALIAS,
|
---|
61 | TRUSTEE_IS_WELL_KNOWN_GROUP,
|
---|
62 | TRUSTEE_IS_DELETED,
|
---|
63 | TRUSTEE_IS_INVALID,
|
---|
64 | TRUSTEE_IS_COMPUTER
|
---|
65 | } TRUSTEE_TYPE;
|
---|
66 |
|
---|
67 | typedef enum _TRUSTEE_FORM
|
---|
68 | {
|
---|
69 | TRUSTEE_IS_SID,
|
---|
70 | TRUSTEE_IS_NAME,
|
---|
71 | TRUSTEE_BAD_FORM,
|
---|
72 | TRUSTEE_IS_OBJECTS_AND_SID,
|
---|
73 | TRUSTEE_IS_OBJECTS_AND_NAME
|
---|
74 | } TRUSTEE_FORM;
|
---|
75 |
|
---|
76 | typedef enum _MULTIPLE_TRUSTEE_OPERATION
|
---|
77 | {
|
---|
78 | NO_MULTIPLE_TRUSTEE,
|
---|
79 | TRUSTEE_IS_IMPERSONATE,
|
---|
80 | } MULTIPLE_TRUSTEE_OPERATION;
|
---|
81 |
|
---|
82 | typedef struct _OBJECTS_AND_SID
|
---|
83 | {
|
---|
84 | DWORD ObjectsPresent;
|
---|
85 | GUID ObjectTypeGuid;
|
---|
86 | GUID InheritedObjectTypeGuid;
|
---|
87 | SID *pSid;
|
---|
88 | } OBJECTS_AND_SID, *POBJECTS_AND_SID;
|
---|
89 |
|
---|
90 | typedef struct _OBJECTS_AND_NAME_A
|
---|
91 | {
|
---|
92 | DWORD ObjectsPresent;
|
---|
93 | SE_OBJECT_TYPE ObjectType;
|
---|
94 | LPSTR ObjectTypeName;
|
---|
95 | LPSTR InheritedObjectTypeName;
|
---|
96 | LPSTR ptstrName;
|
---|
97 | } OBJECTS_AND_NAME_A, *POBJECTS_AND_NAME_A;
|
---|
98 |
|
---|
99 | typedef struct _OBJECTS_AND_NAME_W
|
---|
100 | {
|
---|
101 | DWORD ObjectsPresent;
|
---|
102 | SE_OBJECT_TYPE ObjectType;
|
---|
103 | LPWSTR ObjectTypeName;
|
---|
104 | LPWSTR InheritedObjectTypeName;
|
---|
105 | LPWSTR ptstrName;
|
---|
106 | } OBJECTS_AND_NAME_W, *POBJECTS_AND_NAME_W;
|
---|
107 |
|
---|
108 | DECL_WINELIB_TYPE_AW(OBJECTS_AND_NAME_)
|
---|
109 | DECL_WINELIB_TYPE_AW(POBJECTS_AND_NAME_)
|
---|
110 |
|
---|
111 | typedef struct _TRUSTEE_A
|
---|
112 | {
|
---|
113 | struct _TRUSTEE_A *pMultipleTrustee;
|
---|
114 | MULTIPLE_TRUSTEE_OPERATION MultipleTrusteeOperation;
|
---|
115 | TRUSTEE_FORM TrusteeForm;
|
---|
116 | TRUSTEE_TYPE TrusteeType;
|
---|
117 | LPSTR ptstrName;
|
---|
118 | } TRUSTEE_A, *PTRUSTEE_A, TRUSTEEA, *PTRUSTEEA;
|
---|
119 |
|
---|
120 | typedef struct _TRUSTEE_W
|
---|
121 | {
|
---|
122 | struct _TRUSTEE_W *pMultipleTrustee;
|
---|
123 | MULTIPLE_TRUSTEE_OPERATION MultipleTrusteeOperation;
|
---|
124 | TRUSTEE_FORM TrusteeForm;
|
---|
125 | TRUSTEE_TYPE TrusteeType;
|
---|
126 | LPWSTR ptstrName;
|
---|
127 | } TRUSTEE_W, *PTRUSTEE_W, TRUSTEEW, *PTRUSTEEW;
|
---|
128 |
|
---|
129 | DECL_WINELIB_TYPE_AW(TRUSTEE_)
|
---|
130 | DECL_WINELIB_TYPE_AW(PTRUSTEE_)
|
---|
131 | DECL_WINELIB_TYPE_AW(TRUSTEE)
|
---|
132 | DECL_WINELIB_TYPE_AW(PTRUSTEE)
|
---|
133 |
|
---|
134 | typedef enum _ACCESS_MODE
|
---|
135 | {
|
---|
136 | NOT_USED_ACCESS = 0,
|
---|
137 | GRANT_ACCESS,
|
---|
138 | SET_ACCESS,
|
---|
139 | DENY_ACCESS,
|
---|
140 | REVOKE_ACCESS,
|
---|
141 | SET_AUDIT_SUCCESS,
|
---|
142 | SET_AUDIT_FAILURE
|
---|
143 | } ACCESS_MODE;
|
---|
144 |
|
---|
145 | #define NO_INHERITANCE 0x0
|
---|
146 | #define SUB_OBJECTS_ONLY_INHERIT 0x1
|
---|
147 | #define SUB_CONTAINERS_ONLY_INHERIT 0x2
|
---|
148 | #define SUB_CONTAINERS_AND_OBJECTS_INHERIT 0x3
|
---|
149 | #define INHERIT_NO_PROPAGATE 0x4
|
---|
150 | #define INHERIT_ONLY 0x8
|
---|
151 | #define INHERITED_ACCESS_ENTRY 0x10
|
---|
152 | #define INHERITED_PARENT 0x10000000
|
---|
153 | #define INHERITED_GRANDPARENT 0x20000000
|
---|
154 |
|
---|
155 | typedef struct _EXPLICIT_ACCESS_A
|
---|
156 | {
|
---|
157 | DWORD grfAccessPermissions;
|
---|
158 | ACCESS_MODE grfAccessMode;
|
---|
159 | DWORD grfInheritance;
|
---|
160 | TRUSTEE_A Trustee;
|
---|
161 | } EXPLICIT_ACCESS_A, *PEXPLICIT_ACCESS_A, EXPLICIT_ACCESSA, *PEXPLICIT_ACCESSA;
|
---|
162 |
|
---|
163 | typedef struct _EXPLICIT_ACCESS_W
|
---|
164 | {
|
---|
165 | DWORD grfAccessPermissions;
|
---|
166 | ACCESS_MODE grfAccessMode;
|
---|
167 | DWORD grfInheritance;
|
---|
168 | TRUSTEE_W Trustee;
|
---|
169 | } EXPLICIT_ACCESS_W, *PEXPLICIT_ACCESS_W, EXPLICIT_ACCESSW, *PEXPLICIT_ACCESSW;
|
---|
170 |
|
---|
171 | DECL_WINELIB_TYPE_AW(EXPLICIT_ACCESS_)
|
---|
172 | DECL_WINELIB_TYPE_AW(PEXPLICIT_ACCESS_)
|
---|
173 | DECL_WINELIB_TYPE_AW(EXPLICIT_ACCESS)
|
---|
174 | DECL_WINELIB_TYPE_AW(PEXPLICIT_ACCESS)
|
---|
175 |
|
---|
176 | typedef ULONG ACCESS_RIGHTS, *PACCESS_RIGHTS;
|
---|
177 | typedef ULONG INHERIT_FLAGS, *PINHERIT_FLAGS;
|
---|
178 |
|
---|
179 | typedef struct _ACTRL_ACCESS_ENTRYA
|
---|
180 | {
|
---|
181 | TRUSTEE_A Trustee;
|
---|
182 | ULONG fAccessFlags;
|
---|
183 | ACCESS_RIGHTS Access;
|
---|
184 | ACCESS_RIGHTS ProvSpecificAccess;
|
---|
185 | INHERIT_FLAGS Inheritance;
|
---|
186 | LPSTR lpInheritProperty;
|
---|
187 | } ACTRL_ACCESS_ENTRYA, *PACTRL_ACCESS_ENTRYA;
|
---|
188 |
|
---|
189 | typedef struct _ACTRL_ACCESS_ENTRYW
|
---|
190 | {
|
---|
191 | TRUSTEE_W Trustee;
|
---|
192 | ULONG fAccessFlags;
|
---|
193 | ACCESS_RIGHTS Access;
|
---|
194 | ACCESS_RIGHTS ProvSpecificAccess;
|
---|
195 | INHERIT_FLAGS Inheritance;
|
---|
196 | LPWSTR lpInheritProperty;
|
---|
197 | } ACTRL_ACCESS_ENTRYW, *PACTRL_ACCESS_ENTRYW;
|
---|
198 |
|
---|
199 | DECL_WINELIB_TYPE_AW(ACTRL_ACCESS_ENTRY)
|
---|
200 | DECL_WINELIB_TYPE_AW(PACTRL_ACCESS_ENTRY)
|
---|
201 |
|
---|
202 |
|
---|
203 | typedef struct _ACTRL_ACCESS_ENTRY_LISTA
|
---|
204 | {
|
---|
205 | ULONG cEntries;
|
---|
206 | ACTRL_ACCESS_ENTRYA *pAccessList;
|
---|
207 | } ACTRL_ACCESS_ENTRY_LISTA, *PACTRL_ACCESS_ENTRY_LISTA;
|
---|
208 |
|
---|
209 | typedef struct _ACTRL_ACCESS_ENTRY_LISTW
|
---|
210 | {
|
---|
211 | ULONG cEntries;
|
---|
212 | ACTRL_ACCESS_ENTRYW *pAccessList;
|
---|
213 | } ACTRL_ACCESS_ENTRY_LISTW, *PACTRL_ACCESS_ENTRY_LISTW;
|
---|
214 |
|
---|
215 | DECL_WINELIB_TYPE_AW(ACTRL_ACCESS_ENTRY_LIST)
|
---|
216 | DECL_WINELIB_TYPE_AW(PACTRL_ACCESS_ENTRY_LIST)
|
---|
217 |
|
---|
218 | typedef struct _ACTRL_PROPERTY_ENTRYA
|
---|
219 | {
|
---|
220 | LPSTR lpProperty;
|
---|
221 | PACTRL_ACCESS_ENTRY_LISTA pAccessEntryList;
|
---|
222 | ULONG fListFlags;
|
---|
223 | } ACTRL_PROPERTY_ENTRYA, *PACTRL_PROPERTY_ENTRYA;
|
---|
224 |
|
---|
225 | typedef struct _ACTRL_PROPERTY_ENTRYW
|
---|
226 | {
|
---|
227 | LPWSTR lpProperty;
|
---|
228 | PACTRL_ACCESS_ENTRY_LISTW pAccessEntryList;
|
---|
229 | ULONG fListFlags;
|
---|
230 | } ACTRL_PROPERTY_ENTRYW, *PACTRL_PROPERTY_ENTRYW;
|
---|
231 |
|
---|
232 | DECL_WINELIB_TYPE_AW(ACTRL_PROPERTY_ENTRY)
|
---|
233 | DECL_WINELIB_TYPE_AW(PACTRL_PROPERTY_ENTRY)
|
---|
234 |
|
---|
235 | typedef struct _ACTRL_ALISTA
|
---|
236 | {
|
---|
237 | ULONG cEntries;
|
---|
238 | PACTRL_PROPERTY_ENTRYA pPropertyAccessList;
|
---|
239 | } ACTRL_ACCESSA, *PACTRL_ACCESSA, ACTRL_AUDITA, *PACTRL_AUDITA;
|
---|
240 |
|
---|
241 | typedef struct _ACTRL_ALISTW
|
---|
242 | {
|
---|
243 | ULONG cEntries;
|
---|
244 | PACTRL_PROPERTY_ENTRYW pPropertyAccessList;
|
---|
245 | } ACTRL_ACCESSW, *PACTRL_ACCESSW, ACTRL_AUDITW, *PACTRL_AUDITW;
|
---|
246 |
|
---|
247 | DECL_WINELIB_TYPE_AW(ACTRL_ACCESS)
|
---|
248 | DECL_WINELIB_TYPE_AW(PACTRL_ACCESS)
|
---|
249 | DECL_WINELIB_TYPE_AW(ACTRL_AUDIT)
|
---|
250 | DECL_WINELIB_TYPE_AW(PACTRL_AUDIT)
|
---|
251 |
|
---|
252 | #define TRUSTEE_ACCESS_ALLOWED 0x00000001
|
---|
253 | #define TRUSTEE_ACCESS_READ 0x00000002
|
---|
254 | #define TRUSTEE_ACCESS_WRITE 0x00000004
|
---|
255 |
|
---|
256 | #define TRUSTEE_ACCESS_EXPLICIT 0x00000001
|
---|
257 | #define TRUSTEE_ACCESS_READ_WRITE (TRUSTEE_ACCESS_READ|TRUSTEE_ACCESS_WRITE)
|
---|
258 | #define TRUSTEE_ACCESS_ALL 0xFFFFFFFF
|
---|
259 |
|
---|
260 | typedef struct _TRUSTEE_ACCESSA
|
---|
261 | {
|
---|
262 | LPSTR lpProperty;
|
---|
263 | ACCESS_RIGHTS Access;
|
---|
264 | ULONG fAccessFlags;
|
---|
265 | ULONG fReturnedAccess;
|
---|
266 | } TRUSTEE_ACCESSA, *PTRUSTEE_ACCESSA;
|
---|
267 |
|
---|
268 | typedef struct _TRUSTEE_ACCESSW
|
---|
269 | {
|
---|
270 | LPWSTR lpProperty;
|
---|
271 | ACCESS_RIGHTS Access;
|
---|
272 | ULONG fAccessFlags;
|
---|
273 | ULONG fReturnedAccess;
|
---|
274 | } TRUSTEE_ACCESSW, *PTRUSTEE_ACCESSW;
|
---|
275 |
|
---|
276 | DECL_WINELIB_TYPE_AW(TRUSTEE_ACCESS)
|
---|
277 | DECL_WINELIB_TYPE_AW(PTRUSTEE_ACCESS)
|
---|
278 |
|
---|
279 | #define ACTRL_RESERVED 0x00000000
|
---|
280 | #define ACTRL_PERM_1 0x00000001
|
---|
281 | #define ACTRL_PERM_2 0x00000002
|
---|
282 | #define ACTRL_PERM_3 0x00000004
|
---|
283 | #define ACTRL_PERM_4 0x00000008
|
---|
284 | #define ACTRL_PERM_5 0x00000010
|
---|
285 | #define ACTRL_PERM_6 0x00000020
|
---|
286 | #define ACTRL_PERM_7 0x00000040
|
---|
287 | #define ACTRL_PERM_8 0x00000080
|
---|
288 | #define ACTRL_PERM_9 0x00000100
|
---|
289 | #define ACTRL_PERM_10 0x00000200
|
---|
290 | #define ACTRL_PERM_11 0x00000400
|
---|
291 | #define ACTRL_PERM_12 0x00000800
|
---|
292 | #define ACTRL_PERM_13 0x00001000
|
---|
293 | #define ACTRL_PERM_14 0x00002000
|
---|
294 | #define ACTRL_PERM_15 0x00004000
|
---|
295 | #define ACTRL_PERM_16 0x00008000
|
---|
296 | #define ACTRL_PERM_17 0x00010000
|
---|
297 | #define ACTRL_PERM_18 0x00020000
|
---|
298 | #define ACTRL_PERM_19 0x00040000
|
---|
299 | #define ACTRL_PERM_20 0x00080000
|
---|
300 |
|
---|
301 | #define ACTRL_ACCESS_ALLOWED 0x00000001
|
---|
302 | #define ACTRL_ACCESS_DENIED 0x00000002
|
---|
303 | #define ACTRL_AUDIT_SUCCESS 0x00000004
|
---|
304 | #define ACTRL_AUDIT_FAILURE 0x00000008
|
---|
305 |
|
---|
306 | #define ACTRL_ACCESS_PROTECTED 0x00000001
|
---|
307 |
|
---|
308 | #define ACTRL_SYSTEM_ACCESS 0x04000000
|
---|
309 | #define ACTRL_DELETE 0x08000000
|
---|
310 | #define ACTRL_READ_CONTROL 0x10000000
|
---|
311 | #define ACTRL_CHANGE_ACCESS 0x20000000
|
---|
312 | #define ACTRL_CHANGE_OWNER 0x40000000
|
---|
313 | #define ACTRL_SYNCHRONIZE 0x80000000
|
---|
314 | #define ACTRL_STD_RIGHTS_ALL 0xf8000000
|
---|
315 | #define ACTRL_STD_RIGHT_REQUIRED (ACTRL_STD_RIGHTS_ALL & ~ACTRL_SYNCHRONIZE)
|
---|
316 |
|
---|
317 | #define ACTRL_DS_OPEN ACTRL_RESERVED
|
---|
318 | #define ACTRL_DS_CREATE_CHILD ACTRL_PERM_1
|
---|
319 | #define ACTRL_DS_DELETE_CHILD ACTRL_PERM_2
|
---|
320 | #define ACTRL_DS_LIST ACTRL_PERM_3
|
---|
321 | #define ACTRL_DS_SELF ACTRL_PERM_4
|
---|
322 | #define ACTRL_DS_READ_PROP ACTRL_PERM_5
|
---|
323 | #define ACTRL_DS_WRITE_PROP ACTRL_PERM_6
|
---|
324 | #define ACTRL_DS_DELETE_TREE ACTRL_PERM_7
|
---|
325 | #define ACTRL_DS_LIST_OBJECT ACTRL_PERM_8
|
---|
326 | #define ACTRL_DS_CONTROL_ACCESS ACTRL_PERM_9
|
---|
327 |
|
---|
328 | #define ACTRL_FILE_READ ACTRL_PERM_1
|
---|
329 | #define ACTRL_FILE_WRITE ACTRL_PERM_2
|
---|
330 | #define ACTRL_FILE_APPEND ACTRL_PERM_3
|
---|
331 | #define ACTRL_FILE_READ_PROP ACTRL_PERM_4
|
---|
332 | #define ACTRL_FILE_WRITE_PROP ACTRL_PERM_5
|
---|
333 | #define ACTRL_FILE_EXECUTE ACTRL_PERM_6
|
---|
334 | #define ACTRL_FILE_READ_ATTRIB ACTRL_PERM_8
|
---|
335 | #define ACTRL_FILE_WRITE_ATTRIB ACTRL_PERM_9
|
---|
336 | #define ACTRL_FILE_CREATE_PIPE ACTRL_PERM_10
|
---|
337 | #define ACTRL_DIR_LIST ACTRL_PERM_1
|
---|
338 | #define ACTRL_DIR_CREATE_OBJECT ACTRL_PERM_2
|
---|
339 | #define ACTRL_DIR_CREATE_CHILD ACTRL_PERM_3
|
---|
340 | #define ACTRL_DIR_DELETE_CHILD ACTRL_PERM_7
|
---|
341 | #define ACTRL_DIR_TRAVERSE ACTRL_PERM_6
|
---|
342 | #define ACTRL_KERNEL_TERMINATE ACTRL_PERM_1
|
---|
343 | #define ACTRL_KERNEL_THREAD ACTRL_PERM_2
|
---|
344 | #define ACTRL_KERNEL_VM ACTRL_PERM_3
|
---|
345 | #define ACTRL_KERNEL_VM_READ ACTRL_PERM_4
|
---|
346 | #define ACTRL_KERNEL_VM_WRITE ACTRL_PERM_5
|
---|
347 | #define ACTRL_KERNEL_DUP_HANDLE ACTRL_PERM_6
|
---|
348 | #define ACTRL_KERNEL_PROCESS ACTRL_PERM_7
|
---|
349 | #define ACTRL_KERNEL_SET_INFO ACTRL_PERM_8
|
---|
350 | #define ACTRL_KERNEL_GET_INFO ACTRL_PERM_9
|
---|
351 | #define ACTRL_KERNEL_CONTROL ACTRL_PERM_10
|
---|
352 | #define ACTRL_KERNEL_ALERT ACTRL_PERM_11
|
---|
353 | #define ACTRL_KERNEL_GET_CONTEXT ACTRL_PERM_12
|
---|
354 | #define ACTRL_KERNEL_SET_CONTEXT ACTRL_PERM_13
|
---|
355 | #define ACTRL_KERNEL_TOKEN ACTRL_PERM_14
|
---|
356 | #define ACTRL_KERNEL_IMPERSONATE ACTRL_PERM_15
|
---|
357 | #define ACTRL_KERNEL_DIMPERSONATE ACTRL_PERM_16
|
---|
358 | #define ACTRL_PRINT_SADMIN ACTRL_PERM_1
|
---|
359 | #define ACTRL_PRINT_SLIST ACTRL_PERM_2
|
---|
360 | #define ACTRL_PRINT_PADMIN ACTRL_PERM_3
|
---|
361 | #define ACTRL_PRINT_PUSE ACTRL_PERM_4
|
---|
362 | #define ACTRL_PRINT_JADMIN ACTRL_PERM_5
|
---|
363 | #define ACTRL_SVC_GET_INFO ACTRL_PERM_1
|
---|
364 | #define ACTRL_SVC_SET_INFO ACTRL_PERM_2
|
---|
365 | #define ACTRL_SVC_STATUS ACTRL_PERM_3
|
---|
366 | #define ACTRL_SVC_LIST ACTRL_PERM_4
|
---|
367 | #define ACTRL_SVC_START ACTRL_PERM_5
|
---|
368 | #define ACTRL_SVC_STOP ACTRL_PERM_6
|
---|
369 | #define ACTRL_SVC_PAUSE ACTRL_PERM_7
|
---|
370 | #define ACTRL_SVC_INTERROGATE ACTRL_PERM_8
|
---|
371 | #define ACTRL_SVC_UCONTROL ACTRL_PERM_9
|
---|
372 | #define ACTRL_REG_QUERY ACTRL_PERM_1
|
---|
373 | #define ACTRL_REG_SET ACTRL_PERM_2
|
---|
374 | #define ACTRL_REG_CREATE_CHILD ACTRL_PERM_3
|
---|
375 | #define ACTRL_REG_LIST ACTRL_PERM_4
|
---|
376 | #define ACTRL_REG_NOTIFY ACTRL_PERM_5
|
---|
377 | #define ACTRL_REG_LINK ACTRL_PERM_6
|
---|
378 | #define ACTRL_WIN_CLIPBRD ACTRL_PERM_1
|
---|
379 | #define ACTRL_WIN_GLOBAL_ATOMS ACTRL_PERM_2
|
---|
380 | #define ACTRL_WIN_CREATE ACTRL_PERM_3
|
---|
381 | #define ACTRL_WIN_LIST_DESK ACTRL_PERM_4
|
---|
382 | #define ACTRL_WIN_LIST ACTRL_PERM_5
|
---|
383 | #define ACTRL_WIN_READ_ATTRIBS ACTRL_PERM_6
|
---|
384 | #define ACTRL_WIN_WRITE_ATTRIBS ACTRL_PERM_7
|
---|
385 | #define ACTRL_WIN_SCREEN ACTRL_PERM_8
|
---|
386 | #define ACTRL_WIN_EXIT ACTRL_PERM_9
|
---|
387 |
|
---|
388 | #define ACTRL_ACCESS_NO_OPTIONS 0x00000000
|
---|
389 | #define ACTRL_ACCESS_SUPPORTS_OBJECT_ENTRIES 0x00000001
|
---|
390 |
|
---|
391 | typedef struct _ACTRL_OVERLAPPED
|
---|
392 | {
|
---|
393 | union {
|
---|
394 | PVOID Provider;
|
---|
395 | ULONG Reserved1;
|
---|
396 | } DUMMYUNIONNAME;
|
---|
397 | ULONG Reserved2;
|
---|
398 | HANDLE hEvent;
|
---|
399 | } ACTRL_OVERLAPPED, *PACTRL_OVERLAPPED;
|
---|
400 |
|
---|
401 | typedef struct _ACTRL_ACCESS_INFOA
|
---|
402 | {
|
---|
403 | ULONG fAccessPermission;
|
---|
404 | LPSTR lpAccessPermissionName;
|
---|
405 | } ACTRL_ACCESS_INFOA, *PACTRL_ACCESS_INFOA;
|
---|
406 |
|
---|
407 | typedef struct _ACTRL_ACCESS_INFOW
|
---|
408 | {
|
---|
409 | ULONG fAccessPermission;
|
---|
410 | LPWSTR lpAccessPermissionName;
|
---|
411 | } ACTRL_ACCESS_INFOW, *PACTRL_ACCESS_INFOW;
|
---|
412 |
|
---|
413 | DECL_WINELIB_TYPE_AW(ACTRL_ACCESS_INFO)
|
---|
414 | DECL_WINELIB_TYPE_AW(PACTRL_ACCESS_INFO)
|
---|
415 |
|
---|
416 | typedef struct _ACTRL_CONTROL_INFOA
|
---|
417 | {
|
---|
418 | LPSTR lpControlId;
|
---|
419 | LPSTR lpControlName;
|
---|
420 | } ACTRL_CONTROL_INFOA, *PACTRL_CONTROL_INFOA;
|
---|
421 |
|
---|
422 | typedef struct _ACTRL_CONTROL_INFOW
|
---|
423 | {
|
---|
424 | LPWSTR lpControlId;
|
---|
425 | LPWSTR lpControlName;
|
---|
426 | } ACTRL_CONTROL_INFOW, *PACTRL_CONTROL_INFOW;
|
---|
427 |
|
---|
428 | DECL_WINELIB_TYPE_AW(ACTRL_CONTROL_INFO)
|
---|
429 | DECL_WINELIB_TYPE_AW(PACTRL_CONTROL_INFO)
|
---|
430 |
|
---|
431 | typedef enum _PROGRESS_INVOKE_SETTING {
|
---|
432 | ProgressInvokeNever = 1,
|
---|
433 | ProgressInvokeEveryObject,
|
---|
434 | ProgressInvokeOnError,
|
---|
435 | ProgressCancelOperation,
|
---|
436 | ProgressRetryOperation
|
---|
437 | } PROG_INVOKE_SETTING, *PPROG_INVOKE_SETTING;
|
---|
438 |
|
---|
439 | typedef struct _INHERITED_FROMA
|
---|
440 | {
|
---|
441 | LONG GenerationGap;
|
---|
442 | LPSTR AncestorName;
|
---|
443 | } INHERITED_FROMA, *PINHERITED_FROMA;
|
---|
444 |
|
---|
445 | typedef struct _INHERITED_FROMW
|
---|
446 | {
|
---|
447 | LONG GenerationGap;
|
---|
448 | LPWSTR AncestorName;
|
---|
449 | } INHERITED_FROMW, *PINHERITED_FROMW;
|
---|
450 |
|
---|
451 | DECL_WINELIB_TYPE_AW(INHERITED_FROM)
|
---|
452 | DECL_WINELIB_TYPE_AW(PINHERITED_FROM)
|
---|
453 |
|
---|
454 | #define AccFree LocalFree
|
---|
455 |
|
---|
456 | #ifdef __cplusplus
|
---|
457 | }
|
---|
458 | #endif
|
---|
459 |
|
---|
460 | #endif /* __WINE_ACCCTRL_H */
|
---|