1 /* header auto-generated by pidl */
6 #include "librpc/gen_ndr/lsa.h"
7 #include "librpc/gen_ndr/initshutdown.h"
8 #include "librpc/gen_ndr/security.h"
9 /* bitmap winreg_AccessMask */
17 REG_DWORD_BIG_ENDIAN=5,
21 REG_FULL_RESOURCE_DESCRIPTOR=9,
22 REG_RESOURCE_REQUIREMENTS_LIST=10,
26 struct winreg_String {
27 uint16_t name_len;/* [value(strlen_m_term(name)*2)] */
28 uint16_t name_size;/* [value(strlen_m_term(name)*2)] */
29 const char *name;/* [unique,charset(UTF16)] */
30 }/* [public,noejs] */;
32 struct KeySecurityData {
33 uint8_t *data;/* [unique,length_is(len),size_is(size)] */
38 struct winreg_SecBuf {
40 struct KeySecurityData sd;
44 enum winreg_CreateAction {
46 REG_CREATED_NEW_KEY=1,
47 REG_OPENED_EXISTING_KEY=2
50 struct winreg_StringBuf {
51 uint16_t length;/* [value(strlen_m_term(name)*2)] */
53 const char *name;/* [unique,length_is(length/2),charset(UTF16),size_is(size/2)] */
56 struct QueryMultipleValue {
57 struct winreg_String *name;/* [unique] */
58 enum winreg_Type type;
64 struct winreg_OpenHKCR {
66 uint16_t *system_name;/* [unique] */
71 struct policy_handle *handle;/* [ref] */
78 struct winreg_OpenHKCU {
80 uint16_t *system_name;/* [unique] */
85 struct policy_handle *handle;/* [ref] */
92 struct winreg_OpenHKLM {
94 uint16_t *system_name;/* [unique] */
99 struct policy_handle *handle;/* [ref] */
106 struct winreg_OpenHKPD {
108 uint16_t *system_name;/* [unique] */
109 uint32_t access_mask;
113 struct policy_handle *handle;/* [ref] */
120 struct winreg_OpenHKU {
122 uint16_t *system_name;/* [unique] */
123 uint32_t access_mask;
127 struct policy_handle *handle;/* [ref] */
134 struct winreg_CloseKey {
136 struct policy_handle *handle;/* [ref] */
140 struct policy_handle *handle;/* [ref] */
147 struct winreg_CreateKey {
149 struct policy_handle *handle;/* [ref] */
150 struct winreg_String name;
151 struct winreg_String keyclass;
153 uint32_t access_mask;
154 struct winreg_SecBuf *secdesc;/* [unique] */
155 enum winreg_CreateAction *action_taken;/* [unique] */
159 struct policy_handle *new_handle;/* [ref] */
160 enum winreg_CreateAction *action_taken;/* [unique] */
167 struct winreg_DeleteKey {
169 struct policy_handle *handle;/* [ref] */
170 struct winreg_String key;
180 struct winreg_DeleteValue {
182 struct policy_handle *handle;/* [ref] */
183 struct winreg_String value;
193 struct winreg_EnumKey {
195 struct policy_handle *handle;/* [ref] */
197 struct winreg_StringBuf *name;/* [ref] */
198 struct winreg_StringBuf *keyclass;/* [unique] */
199 NTTIME *last_changed_time;/* [unique] */
203 struct winreg_StringBuf *name;/* [ref] */
204 struct winreg_StringBuf *keyclass;/* [unique] */
205 NTTIME *last_changed_time;/* [unique] */
212 struct winreg_EnumValue {
214 struct policy_handle *handle;/* [ref] */
216 struct winreg_StringBuf *name;/* [ref] */
217 enum winreg_Type *type;/* [unique] */
218 uint8_t *value;/* [unique,length_is(*length),size_is(*size)] */
219 uint32_t *size;/* [unique] */
220 uint32_t *length;/* [unique] */
224 struct winreg_StringBuf *name;/* [ref] */
225 enum winreg_Type *type;/* [unique] */
226 uint8_t *value;/* [unique,length_is(*length),size_is(*size)] */
227 uint32_t *size;/* [unique] */
228 uint32_t *length;/* [unique] */
235 struct winreg_FlushKey {
237 struct policy_handle *handle;/* [ref] */
247 struct winreg_GetKeySecurity {
249 struct policy_handle *handle;/* [ref] */
251 struct KeySecurityData *sd;/* [ref] */
255 struct KeySecurityData *sd;/* [ref] */
262 struct winreg_LoadKey {
264 struct policy_handle *handle;/* [ref] */
265 struct winreg_String *keyname;/* [unique] */
266 struct winreg_String *filename;/* [unique] */
276 struct winreg_NotifyChangeKeyValue {
278 struct policy_handle *handle;/* [ref] */
279 uint8_t watch_subtree;
280 uint32_t notify_filter;
282 struct winreg_String string1;
283 struct winreg_String string2;
294 struct winreg_OpenKey {
296 struct policy_handle *parent_handle;/* [ref] */
297 struct winreg_String keyname;
299 uint32_t access_mask;
303 struct policy_handle *handle;/* [ref] */
310 struct winreg_QueryInfoKey {
312 struct policy_handle *handle;/* [ref] */
313 struct winreg_String class_in;
317 struct winreg_String *class_out;/* [unique] */
318 uint32_t *num_subkeys;/* [ref] */
319 uint32_t *max_subkeylen;/* [ref] */
320 uint32_t *max_subkeysize;/* [ref] */
321 uint32_t *num_values;/* [ref] */
322 uint32_t *max_valnamelen;/* [ref] */
323 uint32_t *max_valbufsize;/* [ref] */
324 uint32_t *secdescsize;/* [ref] */
325 NTTIME *last_changed_time;/* [ref] */
332 struct winreg_QueryValue {
334 struct policy_handle *handle;/* [ref] */
335 struct winreg_String value_name;
336 enum winreg_Type *type;/* [unique] */
337 uint8_t *data;/* [unique,length_is(*value_length),size_is(*data_size)] */
338 uint32_t *data_size;/* [unique] */
339 uint32_t *value_length;/* [unique] */
343 enum winreg_Type *type;/* [unique] */
344 uint8_t *data;/* [unique,length_is(*value_length),size_is(*data_size)] */
345 uint32_t *data_size;/* [unique] */
346 uint32_t *value_length;/* [unique] */
353 struct winreg_ReplaceKey {
361 struct winreg_RestoreKey {
369 struct winreg_SaveKey {
377 struct winreg_SetKeySecurity {
379 struct policy_handle *handle;/* [ref] */
380 uint32_t access_mask;
381 struct KeySecurityData *sd;/* [ref] */
385 struct KeySecurityData *sd;/* [ref] */
392 struct winreg_SetValue {
394 struct policy_handle *handle;/* [ref] */
395 struct winreg_String name;
396 enum winreg_Type type;
397 uint8_t *data;/* [ref,size_is(size)] */
408 struct winreg_UnLoadKey {
416 struct winreg_InitiateSystemShutdown {
418 uint16_t *hostname;/* [unique] */
419 struct initshutdown_String *message;/* [unique] */
432 struct winreg_AbortSystemShutdown {
434 uint16_t *server;/* [unique] */
444 struct winreg_GetVersion {
446 struct policy_handle *handle;/* [ref] */
450 uint32_t *version;/* [ref] */
457 struct winreg_OpenHKCC {
459 uint16_t *system_name;/* [unique] */
460 uint32_t access_mask;
464 struct policy_handle *handle;/* [ref] */
471 struct winreg_OpenHKDD {
473 uint16_t *system_name;/* [unique] */
474 uint32_t access_mask;
478 struct policy_handle *handle;/* [ref] */
485 struct winreg_QueryMultipleValues {
487 struct policy_handle *key_handle;/* [ref] */
488 struct QueryMultipleValue *values;/* [ref,length_is(num_values),size_is(num_values)] */
490 uint8_t *buffer;/* [unique,length_is(*buffer_size),size_is(*buffer_size)] */
491 uint32_t *buffer_size;/* [ref] */
495 struct QueryMultipleValue *values;/* [ref,length_is(num_values),size_is(num_values)] */
496 uint8_t *buffer;/* [unique,length_is(*buffer_size),size_is(*buffer_size)] */
497 uint32_t *buffer_size;/* [ref] */
504 struct winreg_InitiateSystemShutdownEx {
506 uint16_t *hostname;/* [unique] */
507 struct initshutdown_String *message;/* [unique] */
521 struct winreg_SaveKeyEx {
529 struct winreg_OpenHKPT {
531 uint16_t *system_name;/* [unique] */
532 uint32_t access_mask;
536 struct policy_handle *handle;/* [ref] */
543 struct winreg_OpenHKPN {
545 uint16_t *system_name;/* [unique] */
546 uint32_t access_mask;
550 struct policy_handle *handle;/* [ref] */
557 struct winreg_QueryMultipleValues2 {
564 #endif /* _HEADER_winreg */