1 /* header auto-generated by pidl */
5 #include "librpc/gen_ndr/lsa.h"
6 #include "librpc/gen_ndr/initshutdown.h"
7 #include "librpc/gen_ndr/security.h"
11 /* bitmap winreg_AccessMask */
12 #define KEY_QUERY_VALUE ( 0x00001 )
13 #define KEY_SET_VALUE ( 0x00002 )
14 #define KEY_CREATE_SUB_KEY ( 0x00004 )
15 #define KEY_ENUMERATE_SUB_KEYS ( 0x00008 )
16 #define KEY_NOTIFY ( 0x00010 )
17 #define KEY_CREATE_LINK ( 0x00020 )
18 #define KEY_WOW64_64KEY ( 0x00100 )
19 #define KEY_WOW64_32KEY ( 0x00200 )
22 #ifndef USE_UINT_ENUMS
29 REG_DWORD_BIG_ENDIAN=5,
33 REG_FULL_RESOURCE_DESCRIPTOR=9,
34 REG_RESOURCE_REQUIREMENTS_LIST=10,
38 { __donnot_use_enum_winreg_Type=0x7FFFFFFF}
39 #define REG_NONE ( 0 )
41 #define REG_EXPAND_SZ ( 2 )
42 #define REG_BINARY ( 3 )
43 #define REG_DWORD ( 4 )
44 #define REG_DWORD_BIG_ENDIAN ( 5 )
45 #define REG_LINK ( 6 )
46 #define REG_MULTI_SZ ( 7 )
47 #define REG_RESOURCE_LIST ( 8 )
48 #define REG_FULL_RESOURCE_DESCRIPTOR ( 9 )
49 #define REG_RESOURCE_REQUIREMENTS_LIST ( 10 )
50 #define REG_QWORD ( 11 )
54 struct winreg_String {
55 uint16_t name_len;/* [value(strlen_m_term(name)*2)] */
56 uint16_t name_size;/* [value(strlen_m_term(name)*2)] */
57 const char *name;/* [unique,charset(UTF16)] */
58 }/* [public,noejs] */;
60 struct KeySecurityData {
61 uint8_t *data;/* [unique,length_is(len),size_is(size)] */
66 struct winreg_SecBuf {
68 struct KeySecurityData sd;
72 enum winreg_CreateAction
73 #ifndef USE_UINT_ENUMS
76 REG_CREATED_NEW_KEY=1,
77 REG_OPENED_EXISTING_KEY=2
80 { __donnot_use_enum_winreg_CreateAction=0x7FFFFFFF}
81 #define REG_ACTION_NONE ( 0 )
82 #define REG_CREATED_NEW_KEY ( 1 )
83 #define REG_OPENED_EXISTING_KEY ( 2 )
87 struct winreg_StringBuf {
88 uint16_t length;/* [value(strlen_m_term_null(name)*2)] */
90 const char *name;/* [unique,length_is(length/2),charset(UTF16),size_is(size/2)] */
93 struct winreg_ValNameBuf {
94 uint16_t length;/* [value(strlen_m_term(name)*2)] */
96 const char *name;/* [unique,length_is(length/2),charset(UTF16),size_is(size/2)] */
99 struct KeySecurityAttribute {
101 struct KeySecurityData sec_data;
105 struct QueryMultipleValue {
106 struct winreg_String *name;/* [unique] */
107 enum winreg_Type type;
113 struct winreg_OpenHKCR {
115 uint16_t *system_name;/* [unique] */
116 uint32_t access_mask;
120 struct policy_handle *handle;/* [ref] */
127 struct winreg_OpenHKCU {
129 uint16_t *system_name;/* [unique] */
130 uint32_t access_mask;
134 struct policy_handle *handle;/* [ref] */
141 struct winreg_OpenHKLM {
143 uint16_t *system_name;/* [unique] */
144 uint32_t access_mask;
148 struct policy_handle *handle;/* [ref] */
155 struct winreg_OpenHKPD {
157 uint16_t *system_name;/* [unique] */
158 uint32_t access_mask;
162 struct policy_handle *handle;/* [ref] */
169 struct winreg_OpenHKU {
171 uint16_t *system_name;/* [unique] */
172 uint32_t access_mask;
176 struct policy_handle *handle;/* [ref] */
183 struct winreg_CloseKey {
185 struct policy_handle *handle;/* [ref] */
189 struct policy_handle *handle;/* [ref] */
196 struct winreg_CreateKey {
198 struct policy_handle *handle;/* [ref] */
199 struct winreg_String name;
200 struct winreg_String keyclass;
202 uint32_t access_mask;
203 struct winreg_SecBuf *secdesc;/* [unique] */
204 enum winreg_CreateAction *action_taken;/* [unique] */
208 struct policy_handle *new_handle;/* [ref] */
209 enum winreg_CreateAction *action_taken;/* [unique] */
216 struct winreg_DeleteKey {
218 struct policy_handle *handle;/* [ref] */
219 struct winreg_String key;
229 struct winreg_DeleteValue {
231 struct policy_handle *handle;/* [ref] */
232 struct winreg_String value;
242 struct winreg_EnumKey {
244 struct policy_handle *handle;/* [ref] */
246 struct winreg_StringBuf *name;/* [ref] */
247 struct winreg_StringBuf *keyclass;/* [unique] */
248 NTTIME *last_changed_time;/* [unique] */
252 struct winreg_StringBuf *name;/* [ref] */
253 struct winreg_StringBuf *keyclass;/* [unique] */
254 NTTIME *last_changed_time;/* [unique] */
261 struct winreg_EnumValue {
263 struct policy_handle *handle;/* [ref] */
265 struct winreg_ValNameBuf *name;/* [ref] */
266 enum winreg_Type *type;/* [unique] */
267 uint8_t *value;/* [unique,length_is(*length),size_is(*size)] */
268 uint32_t *size;/* [unique] */
269 uint32_t *length;/* [unique] */
273 struct winreg_ValNameBuf *name;/* [ref] */
274 enum winreg_Type *type;/* [unique] */
275 uint8_t *value;/* [unique,length_is(*length),size_is(*size)] */
276 uint32_t *size;/* [unique] */
277 uint32_t *length;/* [unique] */
284 struct winreg_FlushKey {
286 struct policy_handle *handle;/* [ref] */
296 struct winreg_GetKeySecurity {
298 struct policy_handle *handle;/* [ref] */
300 struct KeySecurityData *sd;/* [ref] */
304 struct KeySecurityData *sd;/* [ref] */
311 struct winreg_LoadKey {
313 struct policy_handle *handle;/* [ref] */
314 struct winreg_String *keyname;/* [unique] */
315 struct winreg_String *filename;/* [unique] */
325 struct winreg_NotifyChangeKeyValue {
327 struct policy_handle *handle;/* [ref] */
328 uint8_t watch_subtree;
329 uint32_t notify_filter;
331 struct winreg_String string1;
332 struct winreg_String string2;
343 struct winreg_OpenKey {
345 struct policy_handle *parent_handle;/* [ref] */
346 struct winreg_String keyname;
348 uint32_t access_mask;
352 struct policy_handle *handle;/* [ref] */
359 struct winreg_QueryInfoKey {
361 struct policy_handle *handle;/* [ref] */
362 struct winreg_String *classname;/* [ref] */
366 uint32_t *num_subkeys;/* [ref] */
367 uint32_t *max_subkeylen;/* [ref] */
368 uint32_t *max_classlen;/* [ref] */
369 uint32_t *num_values;/* [ref] */
370 uint32_t *max_valnamelen;/* [ref] */
371 uint32_t *max_valbufsize;/* [ref] */
372 uint32_t *secdescsize;/* [ref] */
373 NTTIME *last_changed_time;/* [ref] */
374 struct winreg_String *classname;/* [ref] */
381 struct winreg_QueryValue {
383 struct policy_handle *handle;/* [ref] */
384 struct winreg_String *value_name;/* [ref] */
385 enum winreg_Type *type;/* [unique] */
386 uint8_t *data;/* [unique,length_is(*value_length),size_is(*data_size)] */
387 uint32_t *data_size;/* [unique] */
388 uint32_t *value_length;/* [unique] */
392 enum winreg_Type *type;/* [unique] */
393 uint8_t *data;/* [unique,length_is(*value_length),size_is(*data_size)] */
394 uint32_t *data_size;/* [unique] */
395 uint32_t *value_length;/* [unique] */
402 struct winreg_ReplaceKey {
410 struct winreg_RestoreKey {
412 struct policy_handle *handle;/* [ref] */
413 struct winreg_String *filename;/* [ref] */
424 struct winreg_SaveKey {
426 struct policy_handle *handle;/* [ref] */
427 struct winreg_String *filename;/* [ref] */
428 struct KeySecurityAttribute *sec_attrib;/* [unique] */
438 struct winreg_SetKeySecurity {
440 struct policy_handle *handle;/* [ref] */
441 uint32_t access_mask;
442 struct KeySecurityData *sd;/* [ref] */
452 struct winreg_SetValue {
454 struct policy_handle *handle;/* [ref] */
455 struct winreg_String name;
456 enum winreg_Type type;
457 uint8_t *data;/* [ref,size_is(size)] */
468 struct winreg_UnLoadKey {
476 struct winreg_InitiateSystemShutdown {
478 uint16_t *hostname;/* [unique] */
479 struct initshutdown_String *message;/* [unique] */
492 struct winreg_AbortSystemShutdown {
494 uint16_t *server;/* [unique] */
504 struct winreg_GetVersion {
506 struct policy_handle *handle;/* [ref] */
510 uint32_t *version;/* [ref] */
517 struct winreg_OpenHKCC {
519 uint16_t *system_name;/* [unique] */
520 uint32_t access_mask;
524 struct policy_handle *handle;/* [ref] */
531 struct winreg_OpenHKDD {
533 uint16_t *system_name;/* [unique] */
534 uint32_t access_mask;
538 struct policy_handle *handle;/* [ref] */
545 struct winreg_QueryMultipleValues {
547 struct policy_handle *key_handle;/* [ref] */
549 struct QueryMultipleValue *values;/* [ref,length_is(num_values),size_is(num_values)] */
550 uint8_t *buffer;/* [unique,length_is(*buffer_size),size_is(*buffer_size)] */
551 uint32_t *buffer_size;/* [ref] */
555 struct QueryMultipleValue *values;/* [ref,length_is(num_values),size_is(num_values)] */
556 uint8_t *buffer;/* [unique,length_is(*buffer_size),size_is(*buffer_size)] */
557 uint32_t *buffer_size;/* [ref] */
564 struct winreg_InitiateSystemShutdownEx {
566 uint16_t *hostname;/* [unique] */
567 struct initshutdown_String *message;/* [unique] */
581 struct winreg_SaveKeyEx {
589 struct winreg_OpenHKPT {
591 uint16_t *system_name;/* [unique] */
592 uint32_t access_mask;
596 struct policy_handle *handle;/* [ref] */
603 struct winreg_OpenHKPN {
605 uint16_t *system_name;/* [unique] */
606 uint32_t access_mask;
610 struct policy_handle *handle;/* [ref] */
617 struct winreg_QueryMultipleValues2 {
624 #endif /* _HEADER_winreg */