s4:librpc/ndr: if uninitialized variable in string_array code
[Samba/gbeck.git] / librpc / gen_ndr / cli_winreg.h
blob20d2a755cedf955cbc1390f2e4ff5455776b9ffa
1 #include "../librpc/gen_ndr/ndr_winreg.h"
2 #ifndef __CLI_WINREG__
3 #define __CLI_WINREG__
4 NTSTATUS rpccli_winreg_OpenHKCR(struct rpc_pipe_client *cli,
5 TALLOC_CTX *mem_ctx,
6 uint16_t *system_name /* [in] [unique] */,
7 uint32_t access_mask /* [in] */,
8 struct policy_handle *handle /* [out] [ref] */,
9 WERROR *werror);
10 NTSTATUS rpccli_winreg_OpenHKCU(struct rpc_pipe_client *cli,
11 TALLOC_CTX *mem_ctx,
12 uint16_t *system_name /* [in] [unique] */,
13 uint32_t access_mask /* [in] */,
14 struct policy_handle *handle /* [out] [ref] */,
15 WERROR *werror);
16 NTSTATUS rpccli_winreg_OpenHKLM(struct rpc_pipe_client *cli,
17 TALLOC_CTX *mem_ctx,
18 uint16_t *system_name /* [in] [unique] */,
19 uint32_t access_mask /* [in] */,
20 struct policy_handle *handle /* [out] [ref] */,
21 WERROR *werror);
22 NTSTATUS rpccli_winreg_OpenHKPD(struct rpc_pipe_client *cli,
23 TALLOC_CTX *mem_ctx,
24 uint16_t *system_name /* [in] [unique] */,
25 uint32_t access_mask /* [in] */,
26 struct policy_handle *handle /* [out] [ref] */,
27 WERROR *werror);
28 NTSTATUS rpccli_winreg_OpenHKU(struct rpc_pipe_client *cli,
29 TALLOC_CTX *mem_ctx,
30 uint16_t *system_name /* [in] [unique] */,
31 uint32_t access_mask /* [in] */,
32 struct policy_handle *handle /* [out] [ref] */,
33 WERROR *werror);
34 NTSTATUS rpccli_winreg_CloseKey(struct rpc_pipe_client *cli,
35 TALLOC_CTX *mem_ctx,
36 struct policy_handle *handle /* [in,out] [ref] */,
37 WERROR *werror);
38 NTSTATUS rpccli_winreg_CreateKey(struct rpc_pipe_client *cli,
39 TALLOC_CTX *mem_ctx,
40 struct policy_handle *handle /* [in] [ref] */,
41 struct winreg_String name /* [in] */,
42 struct winreg_String keyclass /* [in] */,
43 uint32_t options /* [in] */,
44 uint32_t access_mask /* [in] */,
45 struct winreg_SecBuf *secdesc /* [in] [unique] */,
46 struct policy_handle *new_handle /* [out] [ref] */,
47 enum winreg_CreateAction *action_taken /* [in,out] [unique] */,
48 WERROR *werror);
49 NTSTATUS rpccli_winreg_DeleteKey(struct rpc_pipe_client *cli,
50 TALLOC_CTX *mem_ctx,
51 struct policy_handle *handle /* [in] [ref] */,
52 struct winreg_String key /* [in] */,
53 WERROR *werror);
54 NTSTATUS rpccli_winreg_DeleteValue(struct rpc_pipe_client *cli,
55 TALLOC_CTX *mem_ctx,
56 struct policy_handle *handle /* [in] [ref] */,
57 struct winreg_String value /* [in] */,
58 WERROR *werror);
59 NTSTATUS rpccli_winreg_EnumKey(struct rpc_pipe_client *cli,
60 TALLOC_CTX *mem_ctx,
61 struct policy_handle *handle /* [in] [ref] */,
62 uint32_t enum_index /* [in] */,
63 struct winreg_StringBuf *name /* [in,out] [ref] */,
64 struct winreg_StringBuf *keyclass /* [in,out] [unique] */,
65 NTTIME *last_changed_time /* [in,out] [unique] */,
66 WERROR *werror);
67 NTSTATUS rpccli_winreg_EnumValue(struct rpc_pipe_client *cli,
68 TALLOC_CTX *mem_ctx,
69 struct policy_handle *handle /* [in] [ref] */,
70 uint32_t enum_index /* [in] */,
71 struct winreg_ValNameBuf *name /* [in,out] [ref] */,
72 enum winreg_Type *type /* [in,out] [unique] */,
73 uint8_t *value /* [in,out] [unique,length_is(*length),size_is(*size)] */,
74 uint32_t *size /* [in,out] [unique] */,
75 uint32_t *length /* [in,out] [unique] */,
76 WERROR *werror);
77 NTSTATUS rpccli_winreg_FlushKey(struct rpc_pipe_client *cli,
78 TALLOC_CTX *mem_ctx,
79 struct policy_handle *handle /* [in] [ref] */,
80 WERROR *werror);
81 NTSTATUS rpccli_winreg_GetKeySecurity(struct rpc_pipe_client *cli,
82 TALLOC_CTX *mem_ctx,
83 struct policy_handle *handle /* [in] [ref] */,
84 uint32_t sec_info /* [in] */,
85 struct KeySecurityData *sd /* [in,out] [ref] */,
86 WERROR *werror);
87 NTSTATUS rpccli_winreg_LoadKey(struct rpc_pipe_client *cli,
88 TALLOC_CTX *mem_ctx,
89 struct policy_handle *handle /* [in] [ref] */,
90 struct winreg_String *keyname /* [in] [unique] */,
91 struct winreg_String *filename /* [in] [unique] */,
92 WERROR *werror);
93 NTSTATUS rpccli_winreg_NotifyChangeKeyValue(struct rpc_pipe_client *cli,
94 TALLOC_CTX *mem_ctx,
95 struct policy_handle *handle /* [in] [ref] */,
96 uint8_t watch_subtree /* [in] */,
97 uint32_t notify_filter /* [in] */,
98 uint32_t unknown /* [in] */,
99 struct winreg_String string1 /* [in] */,
100 struct winreg_String string2 /* [in] */,
101 uint32_t unknown2 /* [in] */,
102 WERROR *werror);
103 NTSTATUS rpccli_winreg_OpenKey(struct rpc_pipe_client *cli,
104 TALLOC_CTX *mem_ctx,
105 struct policy_handle *parent_handle /* [in] [ref] */,
106 struct winreg_String keyname /* [in] */,
107 uint32_t unknown /* [in] */,
108 uint32_t access_mask /* [in] */,
109 struct policy_handle *handle /* [out] [ref] */,
110 WERROR *werror);
111 NTSTATUS rpccli_winreg_QueryInfoKey(struct rpc_pipe_client *cli,
112 TALLOC_CTX *mem_ctx,
113 struct policy_handle *handle /* [in] [ref] */,
114 struct winreg_String *classname /* [in,out] [ref] */,
115 uint32_t *num_subkeys /* [out] [ref] */,
116 uint32_t *max_subkeylen /* [out] [ref] */,
117 uint32_t *max_classlen /* [out] [ref] */,
118 uint32_t *num_values /* [out] [ref] */,
119 uint32_t *max_valnamelen /* [out] [ref] */,
120 uint32_t *max_valbufsize /* [out] [ref] */,
121 uint32_t *secdescsize /* [out] [ref] */,
122 NTTIME *last_changed_time /* [out] [ref] */,
123 WERROR *werror);
124 NTSTATUS rpccli_winreg_QueryValue(struct rpc_pipe_client *cli,
125 TALLOC_CTX *mem_ctx,
126 struct policy_handle *handle /* [in] [ref] */,
127 struct winreg_String *value_name /* [in] [ref] */,
128 enum winreg_Type *type /* [in,out] [unique] */,
129 uint8_t *data /* [in,out] [unique,length_is(*data_length),size_is(*data_size)] */,
130 uint32_t *data_size /* [in,out] [unique] */,
131 uint32_t *data_length /* [in,out] [unique] */,
132 WERROR *werror);
133 NTSTATUS rpccli_winreg_ReplaceKey(struct rpc_pipe_client *cli,
134 TALLOC_CTX *mem_ctx,
135 WERROR *werror);
136 NTSTATUS rpccli_winreg_RestoreKey(struct rpc_pipe_client *cli,
137 TALLOC_CTX *mem_ctx,
138 struct policy_handle *handle /* [in] [ref] */,
139 struct winreg_String *filename /* [in] [ref] */,
140 uint32_t flags /* [in] */,
141 WERROR *werror);
142 NTSTATUS rpccli_winreg_SaveKey(struct rpc_pipe_client *cli,
143 TALLOC_CTX *mem_ctx,
144 struct policy_handle *handle /* [in] [ref] */,
145 struct winreg_String *filename /* [in] [ref] */,
146 struct KeySecurityAttribute *sec_attrib /* [in] [unique] */,
147 WERROR *werror);
148 NTSTATUS rpccli_winreg_SetKeySecurity(struct rpc_pipe_client *cli,
149 TALLOC_CTX *mem_ctx,
150 struct policy_handle *handle /* [in] [ref] */,
151 uint32_t sec_info /* [in] */,
152 struct KeySecurityData *sd /* [in] [ref] */,
153 WERROR *werror);
154 NTSTATUS rpccli_winreg_SetValue(struct rpc_pipe_client *cli,
155 TALLOC_CTX *mem_ctx,
156 struct policy_handle *handle /* [in] [ref] */,
157 struct winreg_String name /* [in] */,
158 enum winreg_Type type /* [in] */,
159 uint8_t *data /* [in] [ref,size_is(size)] */,
160 uint32_t size /* [in] */,
161 WERROR *werror);
162 NTSTATUS rpccli_winreg_UnLoadKey(struct rpc_pipe_client *cli,
163 TALLOC_CTX *mem_ctx,
164 WERROR *werror);
165 NTSTATUS rpccli_winreg_InitiateSystemShutdown(struct rpc_pipe_client *cli,
166 TALLOC_CTX *mem_ctx,
167 uint16_t *hostname /* [in] [unique] */,
168 struct lsa_StringLarge *message /* [in] [unique] */,
169 uint32_t timeout /* [in] */,
170 uint8_t force_apps /* [in] */,
171 uint8_t do_reboot /* [in] */,
172 WERROR *werror);
173 NTSTATUS rpccli_winreg_AbortSystemShutdown(struct rpc_pipe_client *cli,
174 TALLOC_CTX *mem_ctx,
175 uint16_t *server /* [in] [unique] */,
176 WERROR *werror);
177 NTSTATUS rpccli_winreg_GetVersion(struct rpc_pipe_client *cli,
178 TALLOC_CTX *mem_ctx,
179 struct policy_handle *handle /* [in] [ref] */,
180 uint32_t *version /* [out] [ref] */,
181 WERROR *werror);
182 NTSTATUS rpccli_winreg_OpenHKCC(struct rpc_pipe_client *cli,
183 TALLOC_CTX *mem_ctx,
184 uint16_t *system_name /* [in] [unique] */,
185 uint32_t access_mask /* [in] */,
186 struct policy_handle *handle /* [out] [ref] */,
187 WERROR *werror);
188 NTSTATUS rpccli_winreg_OpenHKDD(struct rpc_pipe_client *cli,
189 TALLOC_CTX *mem_ctx,
190 uint16_t *system_name /* [in] [unique] */,
191 uint32_t access_mask /* [in] */,
192 struct policy_handle *handle /* [out] [ref] */,
193 WERROR *werror);
194 NTSTATUS rpccli_winreg_QueryMultipleValues(struct rpc_pipe_client *cli,
195 TALLOC_CTX *mem_ctx,
196 struct policy_handle *key_handle /* [in] [ref] */,
197 struct QueryMultipleValue *values /* [in,out] [ref,length_is(num_values),size_is(num_values)] */,
198 uint32_t num_values /* [in] */,
199 uint8_t *buffer /* [in,out] [unique,length_is(*buffer_size),size_is(*buffer_size)] */,
200 uint32_t *buffer_size /* [in,out] [ref] */,
201 WERROR *werror);
202 NTSTATUS rpccli_winreg_InitiateSystemShutdownEx(struct rpc_pipe_client *cli,
203 TALLOC_CTX *mem_ctx,
204 uint16_t *hostname /* [in] [unique] */,
205 struct lsa_StringLarge *message /* [in] [unique] */,
206 uint32_t timeout /* [in] */,
207 uint8_t force_apps /* [in] */,
208 uint8_t do_reboot /* [in] */,
209 uint32_t reason /* [in] */,
210 WERROR *werror);
211 NTSTATUS rpccli_winreg_SaveKeyEx(struct rpc_pipe_client *cli,
212 TALLOC_CTX *mem_ctx,
213 WERROR *werror);
214 NTSTATUS rpccli_winreg_OpenHKPT(struct rpc_pipe_client *cli,
215 TALLOC_CTX *mem_ctx,
216 uint16_t *system_name /* [in] [unique] */,
217 uint32_t access_mask /* [in] */,
218 struct policy_handle *handle /* [out] [ref] */,
219 WERROR *werror);
220 NTSTATUS rpccli_winreg_OpenHKPN(struct rpc_pipe_client *cli,
221 TALLOC_CTX *mem_ctx,
222 uint16_t *system_name /* [in] [unique] */,
223 uint32_t access_mask /* [in] */,
224 struct policy_handle *handle /* [out] [ref] */,
225 WERROR *werror);
226 NTSTATUS rpccli_winreg_QueryMultipleValues2(struct rpc_pipe_client *cli,
227 TALLOC_CTX *mem_ctx,
228 WERROR *werror);
229 #endif /* __CLI_WINREG__ */