2 Unix SMB/CIFS implementation.
3 SMB parameters and setup
4 Copyright (C) Andrew Tridgell 1992-2000
5 Copyright (C) Luke Kenneth Casson Leighton 1996-2000
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 3 of the License, or
10 (at your option) any later version.
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with this program. If not, see <http://www.gnu.org/licenses/>.
21 #ifndef _RPC_SECDES_H /* _RPC_SECDES_H */
25 #define SEC_RIGHTS_LIST_CONTENTS 0x4
26 #define SEC_RIGHTS_LIST_OBJECT 0x80
27 #define SEC_RIGHTS_READ_ALL_PROP 0x10
28 #define SEC_RIGHTS_READ_PERMS 0x20000
29 #define SEC_RIGHTS_WRITE_ALL_VALID 0x8
30 #define SEC_RIGHTS_WRITE_ALL_PROP 0x20
31 #define SEC_RIGHTS_MODIFY_OWNER 0x80000
32 #define SEC_RIGHTS_MODIFY_PERMS 0x40000
33 #define SEC_RIGHTS_CREATE_CHILD 0x1
34 #define SEC_RIGHTS_DELETE_CHILD 0x2
35 #define SEC_RIGHTS_DELETE_SUBTREE 0x40
36 #define SEC_RIGHTS_DELETE 0x10000 /* advanced/special/object/delete */
37 #define SEC_RIGHTS_EXTENDED 0x100 /* change/reset password, receive/send as*/
38 #define SEC_RIGHTS_CHANGE_PASSWD SEC_RIGHTS_EXTENDED
39 #define SEC_RIGHTS_RESET_PASSWD SEC_RIGHTS_EXTENDED
40 #define SEC_RIGHTS_FULL_CTRL 0xf01ff
42 #define SEC_ACE_OBJECT_PRESENT 0x00000001 /* thanks for Jim McDonough <jmcd@us.ibm.com> */
43 #define SEC_ACE_OBJECT_INHERITED_PRESENT 0x00000002
46 * New Windows 2000 bits.
48 #define SE_DESC_DACL_AUTO_INHERIT_REQ 0x0100
49 #define SE_DESC_SACL_AUTO_INHERIT_REQ 0x0200
50 #define SE_DESC_DACL_AUTO_INHERITED 0x0400
51 #define SE_DESC_SACL_AUTO_INHERITED 0x0800
52 #define SE_DESC_DACL_PROTECTED 0x1000
53 #define SE_DESC_SACL_PROTECTED 0x2000
55 /* security information */
56 #define OWNER_SECURITY_INFORMATION 0x00000001
57 #define GROUP_SECURITY_INFORMATION 0x00000002
58 #define DACL_SECURITY_INFORMATION 0x00000004
59 #define SACL_SECURITY_INFORMATION 0x00000008
60 /* Extra W2K flags. */
61 #define UNPROTECTED_SACL_SECURITY_INFORMATION 0x10000000
62 #define UNPROTECTED_DACL_SECURITY_INFORMATION 0x20000000
63 #define PROTECTED_SACL_SECURITY_INFORMATION 0x40000000
64 #define PROTECTED_DACL_SECURITY_INFORMATION 0x80000000
66 #define ALL_SECURITY_INFORMATION (OWNER_SECURITY_INFORMATION|GROUP_SECURITY_INFORMATION|\
67 DACL_SECURITY_INFORMATION|SACL_SECURITY_INFORMATION|\
68 UNPROTECTED_SACL_SECURITY_INFORMATION|\
69 UNPROTECTED_DACL_SECURITY_INFORMATION|\
70 PROTECTED_SACL_SECURITY_INFORMATION|\
71 PROTECTED_DACL_SECURITY_INFORMATION)
74 typedef uint32 SEC_ACCESS
;
77 typedef struct security_ace SEC_ACE
;
78 #define SEC_ACE_HEADER_SIZE (2 * sizeof(uint8) + sizeof(uint16) + sizeof(uint32))
81 #define ACL_REVISION 0x3
86 typedef struct security_acl SEC_ACL
;
87 #define SEC_ACL_HEADER_SIZE (2 * sizeof(uint16) + sizeof(uint32))
91 #ifndef SEC_DESC_REVISION
92 #define SEC_DESC_REVISION 0x1
97 typedef struct security_descriptor SEC_DESC
;
98 #define SEC_DESC_HEADER_SIZE (2 * sizeof(uint16) + 4 * sizeof(uint32))
102 #ifndef _SEC_DESC_BUF
104 typedef struct sec_desc_buf SEC_DESC_BUF
;
105 #define _SEC_DESC_BUF
108 /* A type to describe the mapping of generic access rights to object
109 specific access rights. */
111 struct generic_mapping
{
113 uint32 generic_write
;
114 uint32 generic_execute
;
118 struct standard_mapping
{
126 /* Security Access Masks Rights */
128 #define SPECIFIC_RIGHTS_MASK 0x0000FFFF
129 #define STANDARD_RIGHTS_MASK 0x00FF0000
130 #define GENERIC_RIGHTS_MASK 0xF0000000
132 #define SEC_RIGHT_SYSTEM_SECURITY 0x01000000
133 #define SEC_RIGHT_MAXIMUM_ALLOWED 0x02000000
135 /* Generic access rights */
137 #define GENERIC_RIGHT_ALL_ACCESS 0x10000000
138 #define GENERIC_RIGHT_EXECUTE_ACCESS 0x20000000
139 #define GENERIC_RIGHT_WRITE_ACCESS 0x40000000
140 #define GENERIC_RIGHT_READ_ACCESS 0x80000000
142 /* Standard access rights. */
144 #define STD_RIGHT_DELETE_ACCESS 0x00010000
145 #define STD_RIGHT_READ_CONTROL_ACCESS 0x00020000
146 #define STD_RIGHT_WRITE_DAC_ACCESS 0x00040000
147 #define STD_RIGHT_WRITE_OWNER_ACCESS 0x00080000
148 #define STD_RIGHT_SYNCHRONIZE_ACCESS 0x00100000
150 #define STD_RIGHT_ALL_ACCESS 0x001F0000
152 /* Combinations of standard masks. */
153 #define STANDARD_RIGHTS_ALL_ACCESS STD_RIGHT_ALL_ACCESS /* 0x001f0000 */
154 #define STANDARD_RIGHTS_MODIFY_ACCESS STD_RIGHT_READ_CONTROL_ACCESS /* 0x00020000 */
155 #define STANDARD_RIGHTS_EXECUTE_ACCESS STD_RIGHT_READ_CONTROL_ACCESS /* 0x00020000 */
156 #define STANDARD_RIGHTS_READ_ACCESS STD_RIGHT_READ_CONTROL_ACCESS /* 0x00020000 */
157 #define STANDARD_RIGHTS_WRITE_ACCESS \
158 (STD_RIGHT_WRITE_OWNER_ACCESS | \
159 STD_RIGHT_WRITE_DAC_ACCESS | \
160 STD_RIGHT_DELETE_ACCESS) /* 0x000d0000 */
161 #define STANDARD_RIGHTS_REQUIRED_ACCESS \
162 (STD_RIGHT_DELETE_ACCESS | \
163 STD_RIGHT_READ_CONTROL_ACCESS | \
164 STD_RIGHT_WRITE_DAC_ACCESS | \
165 STD_RIGHT_WRITE_OWNER_ACCESS) /* 0x000f0000 */
167 /* File Object specific access rights */
169 #define SA_RIGHT_FILE_READ_DATA 0x00000001
170 #define SA_RIGHT_FILE_WRITE_DATA 0x00000002
171 #define SA_RIGHT_FILE_APPEND_DATA 0x00000004
172 #define SA_RIGHT_FILE_READ_EA 0x00000008
173 #define SA_RIGHT_FILE_WRITE_EA 0x00000010
174 #define SA_RIGHT_FILE_EXECUTE 0x00000020
175 #define SA_RIGHT_FILE_DELETE_CHILD 0x00000040
176 #define SA_RIGHT_FILE_READ_ATTRIBUTES 0x00000080
177 #define SA_RIGHT_FILE_WRITE_ATTRIBUTES 0x00000100
179 #define SA_RIGHT_FILE_ALL_ACCESS 0x000001FF
181 #define GENERIC_RIGHTS_FILE_ALL_ACCESS \
182 (STANDARD_RIGHTS_REQUIRED_ACCESS| \
183 STD_RIGHT_SYNCHRONIZE_ACCESS | \
184 SA_RIGHT_FILE_ALL_ACCESS)
186 #define GENERIC_RIGHTS_FILE_READ \
187 (STANDARD_RIGHTS_READ_ACCESS | \
188 STD_RIGHT_SYNCHRONIZE_ACCESS | \
189 SA_RIGHT_FILE_READ_DATA | \
190 SA_RIGHT_FILE_READ_ATTRIBUTES | \
191 SA_RIGHT_FILE_READ_EA)
193 #define GENERIC_RIGHTS_FILE_WRITE \
194 (STANDARD_RIGHTS_WRITE_ACCESS | \
195 STD_RIGHT_SYNCHRONIZE_ACCESS | \
196 SA_RIGHT_FILE_WRITE_DATA | \
197 SA_RIGHT_FILE_WRITE_ATTRIBUTES | \
198 SA_RIGHT_FILE_WRITE_EA | \
199 SA_RIGHT_FILE_APPEND_DATA)
201 #define GENERIC_RIGHTS_FILE_EXECUTE \
202 (STANDARD_RIGHTS_EXECUTE_ACCESS | \
203 STD_RIGHT_SYNCHRONIZE_ACCESS | \
204 SA_RIGHT_FILE_READ_ATTRIBUTES | \
205 SA_RIGHT_FILE_EXECUTE)
207 #define GENERIC_RIGHTS_FILE_MODIFY \
208 (STANDARD_RIGHTS_MODIFY_ACCESS | \
209 STD_RIGHT_SYNCHRONIZE_ACCESS | \
210 STD_RIGHT_DELETE_ACCESS | \
211 SA_RIGHT_FILE_WRITE_ATTRIBUTES | \
212 SA_RIGHT_FILE_READ_ATTRIBUTES | \
213 SA_RIGHT_FILE_EXECUTE | \
214 SA_RIGHT_FILE_WRITE_EA | \
215 SA_RIGHT_FILE_READ_EA | \
216 SA_RIGHT_FILE_APPEND_DATA | \
217 SA_RIGHT_FILE_WRITE_DATA | \
218 SA_RIGHT_FILE_READ_DATA)
220 /* SAM server specific access rights */
222 #define SA_RIGHT_SAM_CONNECT_SERVER 0x00000001
223 #define SA_RIGHT_SAM_SHUTDOWN_SERVER 0x00000002
224 #define SA_RIGHT_SAM_INITIALISE_SERVER 0x00000004
225 #define SA_RIGHT_SAM_CREATE_DOMAIN 0x00000008
226 #define SA_RIGHT_SAM_ENUM_DOMAINS 0x00000010
227 #define SA_RIGHT_SAM_OPEN_DOMAIN 0x00000020
229 #define SA_RIGHT_SAM_ALL_ACCESS 0x0000003F
231 #define GENERIC_RIGHTS_SAM_ALL_ACCESS \
232 (STANDARD_RIGHTS_REQUIRED_ACCESS| \
233 SA_RIGHT_SAM_ALL_ACCESS)
235 #define GENERIC_RIGHTS_SAM_READ \
236 (STANDARD_RIGHTS_READ_ACCESS | \
237 SA_RIGHT_SAM_ENUM_DOMAINS)
239 #define GENERIC_RIGHTS_SAM_WRITE \
240 (STANDARD_RIGHTS_WRITE_ACCESS | \
241 SA_RIGHT_SAM_CREATE_DOMAIN | \
242 SA_RIGHT_SAM_INITIALISE_SERVER | \
243 SA_RIGHT_SAM_SHUTDOWN_SERVER)
245 #define GENERIC_RIGHTS_SAM_EXECUTE \
246 (STANDARD_RIGHTS_EXECUTE_ACCESS | \
247 SA_RIGHT_SAM_OPEN_DOMAIN | \
248 SA_RIGHT_SAM_CONNECT_SERVER)
251 /* Domain Object specific access rights */
253 #define SA_RIGHT_DOMAIN_LOOKUP_INFO_1 0x00000001
254 #define SA_RIGHT_DOMAIN_SET_INFO_1 0x00000002
255 #define SA_RIGHT_DOMAIN_LOOKUP_INFO_2 0x00000004
256 #define SA_RIGHT_DOMAIN_SET_INFO_2 0x00000008
257 #define SA_RIGHT_DOMAIN_CREATE_USER 0x00000010
258 #define SA_RIGHT_DOMAIN_CREATE_GROUP 0x00000020
259 #define SA_RIGHT_DOMAIN_CREATE_ALIAS 0x00000040
260 #define SA_RIGHT_DOMAIN_LOOKUP_ALIAS_BY_MEM 0x00000080
261 #define SA_RIGHT_DOMAIN_ENUM_ACCOUNTS 0x00000100
262 #define SA_RIGHT_DOMAIN_OPEN_ACCOUNT 0x00000200
263 #define SA_RIGHT_DOMAIN_SET_INFO_3 0x00000400
265 #define SA_RIGHT_DOMAIN_ALL_ACCESS 0x000007FF
267 #define GENERIC_RIGHTS_DOMAIN_ALL_ACCESS \
268 (STANDARD_RIGHTS_REQUIRED_ACCESS| \
269 SA_RIGHT_DOMAIN_ALL_ACCESS)
271 #define GENERIC_RIGHTS_DOMAIN_READ \
272 (STANDARD_RIGHTS_READ_ACCESS | \
273 SA_RIGHT_DOMAIN_LOOKUP_ALIAS_BY_MEM | \
274 SA_RIGHT_DOMAIN_LOOKUP_INFO_2)
276 #define GENERIC_RIGHTS_DOMAIN_WRITE \
277 (STANDARD_RIGHTS_WRITE_ACCESS | \
278 SA_RIGHT_DOMAIN_SET_INFO_3 | \
279 SA_RIGHT_DOMAIN_CREATE_ALIAS | \
280 SA_RIGHT_DOMAIN_CREATE_GROUP | \
281 SA_RIGHT_DOMAIN_CREATE_USER | \
282 SA_RIGHT_DOMAIN_SET_INFO_2 | \
283 SA_RIGHT_DOMAIN_SET_INFO_1)
285 #define GENERIC_RIGHTS_DOMAIN_EXECUTE \
286 (STANDARD_RIGHTS_EXECUTE_ACCESS | \
287 SA_RIGHT_DOMAIN_OPEN_ACCOUNT | \
288 SA_RIGHT_DOMAIN_ENUM_ACCOUNTS | \
289 SA_RIGHT_DOMAIN_LOOKUP_INFO_1)
292 /* User Object specific access rights */
294 #define SA_RIGHT_USER_GET_NAME_ETC 0x00000001
295 #define SA_RIGHT_USER_GET_LOCALE 0x00000002
296 #define SA_RIGHT_USER_SET_LOC_COM 0x00000004
297 #define SA_RIGHT_USER_GET_LOGONINFO 0x00000008
298 #define SA_RIGHT_USER_ACCT_FLAGS_EXPIRY 0x00000010
299 #define SA_RIGHT_USER_SET_ATTRIBUTES 0x00000020
300 #define SA_RIGHT_USER_CHANGE_PASSWORD 0x00000040
301 #define SA_RIGHT_USER_SET_PASSWORD 0x00000080
302 #define SA_RIGHT_USER_GET_GROUPS 0x00000100
303 #define SA_RIGHT_USER_READ_GROUP_MEM 0x00000200
304 #define SA_RIGHT_USER_CHANGE_GROUP_MEM 0x00000400
306 #define SA_RIGHT_USER_ALL_ACCESS 0x000007FF
308 #define GENERIC_RIGHTS_USER_ALL_ACCESS \
309 (STANDARD_RIGHTS_REQUIRED_ACCESS| \
310 SA_RIGHT_USER_ALL_ACCESS) /* 0x000f07ff */
312 #define GENERIC_RIGHTS_USER_READ \
313 (STANDARD_RIGHTS_READ_ACCESS | \
314 SA_RIGHT_USER_READ_GROUP_MEM | \
315 SA_RIGHT_USER_GET_GROUPS | \
316 SA_RIGHT_USER_ACCT_FLAGS_EXPIRY | \
317 SA_RIGHT_USER_GET_LOGONINFO | \
318 SA_RIGHT_USER_GET_LOCALE) /* 0x0002031a */
320 #define GENERIC_RIGHTS_USER_WRITE \
321 (STANDARD_RIGHTS_WRITE_ACCESS | \
322 SA_RIGHT_USER_CHANGE_PASSWORD | \
323 SA_RIGHT_USER_SET_LOC_COM | \
324 SA_RIGHT_USER_SET_ATTRIBUTES | \
325 SA_RIGHT_USER_SET_PASSWORD | \
326 SA_RIGHT_USER_CHANGE_GROUP_MEM) /* 0x000204e4 */
328 #define GENERIC_RIGHTS_USER_EXECUTE \
329 (STANDARD_RIGHTS_EXECUTE_ACCESS | \
330 SA_RIGHT_USER_CHANGE_PASSWORD | \
331 SA_RIGHT_USER_GET_NAME_ETC ) /* 0x00020041 */
334 /* Group Object specific access rights */
336 #define SA_RIGHT_GROUP_LOOKUP_INFO 0x00000001
337 #define SA_RIGHT_GROUP_SET_INFO 0x00000002
338 #define SA_RIGHT_GROUP_ADD_MEMBER 0x00000004
339 #define SA_RIGHT_GROUP_REMOVE_MEMBER 0x00000008
340 #define SA_RIGHT_GROUP_GET_MEMBERS 0x00000010
342 #define SA_RIGHT_GROUP_ALL_ACCESS 0x0000001F
344 #define GENERIC_RIGHTS_GROUP_ALL_ACCESS \
345 (STANDARD_RIGHTS_REQUIRED_ACCESS| \
346 SA_RIGHT_GROUP_ALL_ACCESS) /* 0x000f001f */
348 #define GENERIC_RIGHTS_GROUP_READ \
349 (STANDARD_RIGHTS_READ_ACCESS | \
350 SA_RIGHT_GROUP_GET_MEMBERS) /* 0x00020010 */
352 #define GENERIC_RIGHTS_GROUP_WRITE \
353 (STANDARD_RIGHTS_WRITE_ACCESS | \
354 SA_RIGHT_GROUP_REMOVE_MEMBER | \
355 SA_RIGHT_GROUP_ADD_MEMBER | \
356 SA_RIGHT_GROUP_SET_INFO ) /* 0x0002000e */
358 #define GENERIC_RIGHTS_GROUP_EXECUTE \
359 (STANDARD_RIGHTS_EXECUTE_ACCESS | \
360 SA_RIGHT_GROUP_LOOKUP_INFO) /* 0x00020001 */
363 /* Alias Object specific access rights */
365 #define SA_RIGHT_ALIAS_ADD_MEMBER 0x00000001
366 #define SA_RIGHT_ALIAS_REMOVE_MEMBER 0x00000002
367 #define SA_RIGHT_ALIAS_GET_MEMBERS 0x00000004
368 #define SA_RIGHT_ALIAS_LOOKUP_INFO 0x00000008
369 #define SA_RIGHT_ALIAS_SET_INFO 0x00000010
371 #define SA_RIGHT_ALIAS_ALL_ACCESS 0x0000001F
373 #define GENERIC_RIGHTS_ALIAS_ALL_ACCESS \
374 (STANDARD_RIGHTS_REQUIRED_ACCESS| \
375 SA_RIGHT_ALIAS_ALL_ACCESS) /* 0x000f001f */
377 #define GENERIC_RIGHTS_ALIAS_READ \
378 (STANDARD_RIGHTS_READ_ACCESS | \
379 SA_RIGHT_ALIAS_GET_MEMBERS ) /* 0x00020004 */
381 #define GENERIC_RIGHTS_ALIAS_WRITE \
382 (STANDARD_RIGHTS_WRITE_ACCESS | \
383 SA_RIGHT_ALIAS_REMOVE_MEMBER | \
384 SA_RIGHT_ALIAS_ADD_MEMBER | \
385 SA_RIGHT_ALIAS_SET_INFO ) /* 0x00020013 */
387 #define GENERIC_RIGHTS_ALIAS_EXECUTE \
388 (STANDARD_RIGHTS_EXECUTE_ACCESS | \
389 SA_RIGHT_ALIAS_LOOKUP_INFO ) /* 0x00020008 */
392 * Acces bits for the svcctl objects
395 /* Service Control Manager Bits */
398 #define SC_RIGHT_MGR_CONNECT 0x0001
399 #define SC_RIGHT_MGR_CREATE_SERVICE 0x0002
400 #define SC_RIGHT_MGR_ENUMERATE_SERVICE 0x0004
401 #define SC_RIGHT_MGR_LOCK 0x0008
402 #define SC_RIGHT_MGR_QUERY_LOCK_STATUS 0x0010
403 #define SC_RIGHT_MGR_MODIFY_BOOT_CONFIG 0x0020
407 #define SC_MANAGER_READ_ACCESS \
408 ( STANDARD_RIGHTS_READ_ACCESS | \
409 SC_RIGHT_MGR_CONNECT | \
410 SC_RIGHT_MGR_ENUMERATE_SERVICE | \
411 SC_RIGHT_MGR_QUERY_LOCK_STATUS )
413 #define SC_MANAGER_EXECUTE_ACCESS SC_MANAGER_READ_ACCESS
415 #define SC_MANAGER_WRITE_ACCESS \
416 ( STANDARD_RIGHTS_REQUIRED_ACCESS | \
417 SC_MANAGER_READ_ACCESS | \
418 SC_RIGHT_MGR_CREATE_SERVICE | \
419 SC_RIGHT_MGR_LOCK | \
420 SC_RIGHT_MGR_MODIFY_BOOT_CONFIG )
422 #define SC_MANAGER_ALL_ACCESS SC_MANAGER_WRITE_ACCESS
424 /* Service Object Bits */
427 #define SC_RIGHT_SVC_QUERY_CONFIG 0x0001
428 #define SC_RIGHT_SVC_CHANGE_CONFIG 0x0002
429 #define SC_RIGHT_SVC_QUERY_STATUS 0x0004
430 #define SC_RIGHT_SVC_ENUMERATE_DEPENDENTS 0x0008
431 #define SC_RIGHT_SVC_START 0x0010
432 #define SC_RIGHT_SVC_STOP 0x0020
433 #define SC_RIGHT_SVC_PAUSE_CONTINUE 0x0040
434 #define SC_RIGHT_SVC_INTERROGATE 0x0080
435 #define SC_RIGHT_SVC_USER_DEFINED_CONTROL 0x0100
439 #define SERVICE_READ_ACCESS \
440 ( STANDARD_RIGHTS_READ_ACCESS | \
441 SC_RIGHT_SVC_ENUMERATE_DEPENDENTS | \
442 SC_RIGHT_SVC_INTERROGATE | \
443 SC_RIGHT_SVC_QUERY_CONFIG | \
444 SC_RIGHT_SVC_QUERY_STATUS | \
445 SC_RIGHT_SVC_USER_DEFINED_CONTROL )
447 #define SERVICE_EXECUTE_ACCESS \
448 ( SERVICE_READ_ACCESS | \
449 SC_RIGHT_SVC_START | \
450 SC_RIGHT_SVC_STOP | \
451 SC_RIGHT_SVC_PAUSE_CONTINUE )
453 #define SERVICE_WRITE_ACCESS \
454 ( STANDARD_RIGHTS_REQUIRED_ACCESS | \
455 SERVICE_READ_ACCESS | \
456 SERVICE_EXECUTE_ACCESS | \
457 SC_RIGHT_SVC_CHANGE_CONFIG )
459 #define SERVICE_ALL_ACCESS SERVICE_WRITE_ACCESS
462 * Access Bits for registry ACLS
465 /* used by registry ACLs */
467 #define SEC_RIGHTS_QUERY_VALUE 0x00000001
468 #define SEC_RIGHTS_SET_VALUE 0x00000002
469 #define SEC_RIGHTS_CREATE_SUBKEY 0x00000004
470 #define SEC_RIGHTS_ENUM_SUBKEYS 0x00000008
471 #define SEC_RIGHTS_NOTIFY 0x00000010
472 #define SEC_RIGHTS_CREATE_LINK 0x00000020
473 #define SEC_RIGHTS_MAXIMUM_ALLOWED 0x02000000
476 #define REG_KEY_READ \
477 ( STANDARD_RIGHTS_READ_ACCESS |\
478 SEC_RIGHTS_QUERY_VALUE |\
479 SEC_RIGHTS_ENUM_SUBKEYS |\
482 #define REG_KEY_EXECUTE REG_KEY_READ
484 #define REG_KEY_WRITE \
485 ( STANDARD_RIGHTS_WRITE_ACCESS |\
486 SEC_RIGHTS_SET_VALUE |\
487 SEC_RIGHTS_CREATE_SUBKEY )
489 #define REG_KEY_ALL \
490 ( STANDARD_RIGHTS_REQUIRED_ACCESS |\
493 SEC_RIGHTS_CREATE_LINK )
496 #endif /* _RPC_SECDES_H */