1 /* header auto-generated by pidl */
5 #include "librpc/gen_ndr/lsa.h"
6 #include "librpc/gen_ndr/security.h"
10 /* bitmap winreg_AccessMask */
11 #define KEY_QUERY_VALUE ( 0x00001 )
12 #define KEY_SET_VALUE ( 0x00002 )
13 #define KEY_CREATE_SUB_KEY ( 0x00004 )
14 #define KEY_ENUMERATE_SUB_KEYS ( 0x00008 )
15 #define KEY_NOTIFY ( 0x00010 )
16 #define KEY_CREATE_LINK ( 0x00020 )
17 #define KEY_WOW64_64KEY ( 0x00100 )
18 #define KEY_WOW64_32KEY ( 0x00200 )
21 #ifndef USE_UINT_ENUMS
28 REG_DWORD_BIG_ENDIAN=5,
32 REG_FULL_RESOURCE_DESCRIPTOR=9,
33 REG_RESOURCE_REQUIREMENTS_LIST=10,
37 { __donnot_use_enum_winreg_Type=0x7FFFFFFF}
38 #define REG_NONE ( 0 )
40 #define REG_EXPAND_SZ ( 2 )
41 #define REG_BINARY ( 3 )
42 #define REG_DWORD ( 4 )
43 #define REG_DWORD_BIG_ENDIAN ( 5 )
44 #define REG_LINK ( 6 )
45 #define REG_MULTI_SZ ( 7 )
46 #define REG_RESOURCE_LIST ( 8 )
47 #define REG_FULL_RESOURCE_DESCRIPTOR ( 9 )
48 #define REG_RESOURCE_REQUIREMENTS_LIST ( 10 )
49 #define REG_QWORD ( 11 )
53 struct winreg_String {
54 uint16_t name_len;/* [value(strlen_m_term(name)*2)] */
55 uint16_t name_size;/* [value(strlen_m_term(name)*2)] */
56 const char *name;/* [unique,charset(UTF16)] */
59 struct KeySecurityData {
60 uint8_t *data;/* [unique,length_is(len),size_is(size)] */
65 struct winreg_SecBuf {
67 struct KeySecurityData sd;
71 enum winreg_CreateAction
72 #ifndef USE_UINT_ENUMS
75 REG_CREATED_NEW_KEY=1,
76 REG_OPENED_EXISTING_KEY=2
79 { __donnot_use_enum_winreg_CreateAction=0x7FFFFFFF}
80 #define REG_ACTION_NONE ( 0 )
81 #define REG_CREATED_NEW_KEY ( 1 )
82 #define REG_OPENED_EXISTING_KEY ( 2 )
86 struct winreg_StringBuf {
87 uint16_t length;/* [value(strlen_m_term(name)*2)] */
89 const char *name;/* [unique,length_is(length/2),charset(UTF16),size_is(size/2)] */
92 /* bitmap winreg_NotifyChangeType */
93 #define REG_NOTIFY_CHANGE_NAME ( 0x00000001 )
94 #define REG_NOTIFY_CHANGE_ATTRIBUTES ( 0x00000002 )
95 #define REG_NOTIFY_CHANGE_LAST_SET ( 0x00000004 )
96 #define REG_NOTIFY_CHANGE_SECURITY ( 0x00000008 )
98 struct KeySecurityAttribute {
100 struct KeySecurityData sec_data;
104 struct QueryMultipleValue {
105 struct winreg_String *name;/* [unique] */
106 enum winreg_Type type;
112 struct winreg_OpenHKCR {
114 uint16_t *system_name;/* [unique] */
115 uint32_t access_mask;
119 struct policy_handle *handle;/* [ref] */
126 struct winreg_OpenHKCU {
128 uint16_t *system_name;/* [unique] */
129 uint32_t access_mask;
133 struct policy_handle *handle;/* [ref] */
140 struct winreg_OpenHKLM {
142 uint16_t *system_name;/* [unique] */
143 uint32_t access_mask;
147 struct policy_handle *handle;/* [ref] */
154 struct winreg_OpenHKPD {
156 uint16_t *system_name;/* [unique] */
157 uint32_t access_mask;
161 struct policy_handle *handle;/* [ref] */
168 struct winreg_OpenHKU {
170 uint16_t *system_name;/* [unique] */
171 uint32_t access_mask;
175 struct policy_handle *handle;/* [ref] */
182 struct winreg_CloseKey {
184 struct policy_handle *handle;/* [ref] */
188 struct policy_handle *handle;/* [ref] */
195 struct winreg_CreateKey {
197 struct policy_handle *handle;/* [ref] */
198 struct winreg_String name;
199 struct winreg_String keyclass;
201 uint32_t access_mask;
202 struct winreg_SecBuf *secdesc;/* [unique] */
203 enum winreg_CreateAction *action_taken;/* [unique] */
207 struct policy_handle *new_handle;/* [ref] */
208 enum winreg_CreateAction *action_taken;/* [unique] */
215 struct winreg_DeleteKey {
217 struct policy_handle *handle;/* [ref] */
218 struct winreg_String key;
228 struct winreg_DeleteValue {
230 struct policy_handle *handle;/* [ref] */
231 struct winreg_String value;
241 struct winreg_EnumKey {
243 struct policy_handle *handle;/* [ref] */
245 struct winreg_StringBuf *name;/* [ref] */
246 struct winreg_StringBuf *keyclass;/* [unique] */
247 NTTIME *last_changed_time;/* [unique] */
251 struct winreg_StringBuf *name;/* [ref] */
252 struct winreg_StringBuf *keyclass;/* [unique] */
253 NTTIME *last_changed_time;/* [unique] */
260 struct winreg_EnumValue {
262 struct policy_handle *handle;/* [ref] */
264 struct winreg_StringBuf *name;/* [ref] */
265 enum winreg_Type *type;/* [unique] */
266 uint8_t *value;/* [unique,length_is(*length),size_is(*size)] */
267 uint32_t *size;/* [unique] */
268 uint32_t *length;/* [unique] */
272 struct winreg_StringBuf *name;/* [ref] */
273 enum winreg_Type *type;/* [unique] */
274 uint8_t *value;/* [unique,length_is(*length),size_is(*size)] */
275 uint32_t *size;/* [unique] */
276 uint32_t *length;/* [unique] */
283 struct winreg_FlushKey {
285 struct policy_handle *handle;/* [ref] */
295 struct winreg_GetKeySecurity {
297 struct policy_handle *handle;/* [ref] */
299 struct KeySecurityData *sd;/* [ref] */
303 struct KeySecurityData *sd;/* [ref] */
310 struct winreg_LoadKey {
312 struct policy_handle *handle;/* [ref] */
313 struct winreg_String *keyname;/* [unique] */
314 struct winreg_String *filename;/* [unique] */
324 struct winreg_NotifyChangeKeyValue {
326 struct policy_handle *handle;/* [ref] */
327 uint8_t watch_subtree;
328 uint32_t notify_filter;
330 struct winreg_String string1;
331 struct winreg_String string2;
342 struct winreg_OpenKey {
344 struct policy_handle *parent_handle;/* [ref] */
345 struct winreg_String keyname;
347 uint32_t access_mask;
351 struct policy_handle *handle;/* [ref] */
358 struct winreg_QueryInfoKey {
360 struct policy_handle *handle;/* [ref] */
361 struct winreg_String *classname;/* [ref] */
365 uint32_t *num_subkeys;/* [ref] */
366 uint32_t *max_subkeylen;/* [ref] */
367 uint32_t *max_classlen;/* [ref] */
368 uint32_t *num_values;/* [ref] */
369 uint32_t *max_valnamelen;/* [ref] */
370 uint32_t *max_valbufsize;/* [ref] */
371 uint32_t *secdescsize;/* [ref] */
372 NTTIME *last_changed_time;/* [ref] */
373 struct winreg_String *classname;/* [ref] */
380 struct winreg_QueryValue {
382 struct policy_handle *handle;/* [ref] */
383 struct winreg_String *value_name;/* [ref] */
384 enum winreg_Type *type;/* [unique] */
385 uint8_t *data;/* [unique,length_is(*data_length),size_is(*data_size)] */
386 uint32_t *data_size;/* [unique] */
387 uint32_t *data_length;/* [unique] */
391 enum winreg_Type *type;/* [unique] */
392 uint8_t *data;/* [unique,length_is(*data_length),size_is(*data_size)] */
393 uint32_t *data_size;/* [unique] */
394 uint32_t *data_length;/* [unique] */
401 struct winreg_ReplaceKey {
409 struct winreg_RestoreKey {
411 struct policy_handle *handle;/* [ref] */
412 struct winreg_String *filename;/* [ref] */
423 struct winreg_SaveKey {
425 struct policy_handle *handle;/* [ref] */
426 struct winreg_String *filename;/* [ref] */
427 struct KeySecurityAttribute *sec_attrib;/* [unique] */
437 struct winreg_SetKeySecurity {
439 struct policy_handle *handle;/* [ref] */
441 struct KeySecurityData *sd;/* [ref] */
451 struct winreg_SetValue {
453 struct policy_handle *handle;/* [ref] */
454 struct winreg_String name;
455 enum winreg_Type type;
456 uint8_t *data;/* [ref,size_is(size)] */
467 struct winreg_UnLoadKey {
475 struct winreg_InitiateSystemShutdown {
477 uint16_t *hostname;/* [unique] */
478 struct lsa_StringLarge *message;/* [unique] */
491 struct winreg_AbortSystemShutdown {
493 uint16_t *server;/* [unique] */
503 struct winreg_GetVersion {
505 struct policy_handle *handle;/* [ref] */
509 uint32_t *version;/* [ref] */
516 struct winreg_OpenHKCC {
518 uint16_t *system_name;/* [unique] */
519 uint32_t access_mask;
523 struct policy_handle *handle;/* [ref] */
530 struct winreg_OpenHKDD {
532 uint16_t *system_name;/* [unique] */
533 uint32_t access_mask;
537 struct policy_handle *handle;/* [ref] */
544 struct winreg_QueryMultipleValues {
546 struct policy_handle *key_handle;/* [ref] */
548 struct QueryMultipleValue *values;/* [ref,length_is(num_values),size_is(num_values)] */
549 uint8_t *buffer;/* [unique,length_is(*buffer_size),size_is(*buffer_size)] */
550 uint32_t *buffer_size;/* [ref] */
554 struct QueryMultipleValue *values;/* [ref,length_is(num_values),size_is(num_values)] */
555 uint8_t *buffer;/* [unique,length_is(*buffer_size),size_is(*buffer_size)] */
556 uint32_t *buffer_size;/* [ref] */
563 struct winreg_InitiateSystemShutdownEx {
565 uint16_t *hostname;/* [unique] */
566 struct lsa_StringLarge *message;/* [unique] */
580 struct winreg_SaveKeyEx {
588 struct winreg_OpenHKPT {
590 uint16_t *system_name;/* [unique] */
591 uint32_t access_mask;
595 struct policy_handle *handle;/* [ref] */
602 struct winreg_OpenHKPN {
604 uint16_t *system_name;/* [unique] */
605 uint32_t access_mask;
609 struct policy_handle *handle;/* [ref] */
616 struct winreg_QueryMultipleValues2 {
623 #endif /* _HEADER_winreg */