mailslot/cldap: use nt_version bits in queries.
[Samba.git] / source / librpc / gen_ndr / ndr_libnetapi.c
blob028753a391fcbd71b1c7a4e8f2e687155b2a8359
1 /* parser auto-generated by pidl */
3 #include "includes.h"
4 #include "librpc/gen_ndr/ndr_libnetapi.h"
6 _PUBLIC_ enum ndr_err_code ndr_push_NET_API_STATUS(struct ndr_push *ndr, int ndr_flags, enum NET_API_STATUS r)
8 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r));
9 return NDR_ERR_SUCCESS;
12 _PUBLIC_ enum ndr_err_code ndr_pull_NET_API_STATUS(struct ndr_pull *ndr, int ndr_flags, enum NET_API_STATUS *r)
14 uint32_t v;
15 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &v));
16 *r = v;
17 return NDR_ERR_SUCCESS;
20 _PUBLIC_ void ndr_print_NET_API_STATUS(struct ndr_print *ndr, const char *name, enum NET_API_STATUS r)
22 const char *val = NULL;
24 switch (r) {
25 case NERR_Success: val = "NERR_Success"; break;
27 ndr_print_enum(ndr, name, "ENUM", val, r);
30 _PUBLIC_ enum ndr_err_code ndr_push_SERVER_INFO_1005(struct ndr_push *ndr, int ndr_flags, const struct SERVER_INFO_1005 *r)
32 if (ndr_flags & NDR_SCALARS) {
33 NDR_CHECK(ndr_push_align(ndr, 4));
34 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->sv1005_comment));
36 if (ndr_flags & NDR_BUFFERS) {
38 return NDR_ERR_SUCCESS;
41 _PUBLIC_ enum ndr_err_code ndr_pull_SERVER_INFO_1005(struct ndr_pull *ndr, int ndr_flags, struct SERVER_INFO_1005 *r)
43 if (ndr_flags & NDR_SCALARS) {
44 NDR_CHECK(ndr_pull_align(ndr, 4));
45 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->sv1005_comment));
47 if (ndr_flags & NDR_BUFFERS) {
49 return NDR_ERR_SUCCESS;
52 _PUBLIC_ void ndr_print_SERVER_INFO_1005(struct ndr_print *ndr, const char *name, const struct SERVER_INFO_1005 *r)
54 ndr_print_struct(ndr, name, "SERVER_INFO_1005");
55 ndr->depth++;
56 ndr_print_string(ndr, "sv1005_comment", r->sv1005_comment);
57 ndr->depth--;
60 _PUBLIC_ enum ndr_err_code ndr_push_DOMAIN_CONTROLLER_INFO(struct ndr_push *ndr, int ndr_flags, const struct DOMAIN_CONTROLLER_INFO *r)
62 if (ndr_flags & NDR_SCALARS) {
63 NDR_CHECK(ndr_push_align(ndr, 4));
64 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->domain_controller_name));
65 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->domain_controller_address));
66 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->domain_controller_address_type));
67 NDR_CHECK(ndr_push_GUID(ndr, NDR_SCALARS, &r->domain_guid));
68 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->domain_name));
69 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->dns_forest_name));
70 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->flags));
71 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->dc_site_name));
72 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->client_site_name));
74 if (ndr_flags & NDR_BUFFERS) {
76 return NDR_ERR_SUCCESS;
79 _PUBLIC_ enum ndr_err_code ndr_pull_DOMAIN_CONTROLLER_INFO(struct ndr_pull *ndr, int ndr_flags, struct DOMAIN_CONTROLLER_INFO *r)
81 if (ndr_flags & NDR_SCALARS) {
82 NDR_CHECK(ndr_pull_align(ndr, 4));
83 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->domain_controller_name));
84 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->domain_controller_address));
85 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->domain_controller_address_type));
86 NDR_CHECK(ndr_pull_GUID(ndr, NDR_SCALARS, &r->domain_guid));
87 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->domain_name));
88 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->dns_forest_name));
89 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->flags));
90 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->dc_site_name));
91 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->client_site_name));
93 if (ndr_flags & NDR_BUFFERS) {
95 return NDR_ERR_SUCCESS;
98 _PUBLIC_ void ndr_print_DOMAIN_CONTROLLER_INFO(struct ndr_print *ndr, const char *name, const struct DOMAIN_CONTROLLER_INFO *r)
100 ndr_print_struct(ndr, name, "DOMAIN_CONTROLLER_INFO");
101 ndr->depth++;
102 ndr_print_string(ndr, "domain_controller_name", r->domain_controller_name);
103 ndr_print_string(ndr, "domain_controller_address", r->domain_controller_address);
104 ndr_print_uint32(ndr, "domain_controller_address_type", r->domain_controller_address_type);
105 ndr_print_GUID(ndr, "domain_guid", &r->domain_guid);
106 ndr_print_string(ndr, "domain_name", r->domain_name);
107 ndr_print_string(ndr, "dns_forest_name", r->dns_forest_name);
108 ndr_print_uint32(ndr, "flags", r->flags);
109 ndr_print_string(ndr, "dc_site_name", r->dc_site_name);
110 ndr_print_string(ndr, "client_site_name", r->client_site_name);
111 ndr->depth--;
114 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_0(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_0 *r)
116 if (ndr_flags & NDR_SCALARS) {
117 NDR_CHECK(ndr_push_align(ndr, 4));
118 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri0_name));
120 if (ndr_flags & NDR_BUFFERS) {
122 return NDR_ERR_SUCCESS;
125 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_0(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_0 *r)
127 if (ndr_flags & NDR_SCALARS) {
128 NDR_CHECK(ndr_pull_align(ndr, 4));
129 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri0_name));
131 if (ndr_flags & NDR_BUFFERS) {
133 return NDR_ERR_SUCCESS;
136 _PUBLIC_ void ndr_print_USER_INFO_0(struct ndr_print *ndr, const char *name, const struct USER_INFO_0 *r)
138 ndr_print_struct(ndr, name, "USER_INFO_0");
139 ndr->depth++;
140 ndr_print_string(ndr, "usri0_name", r->usri0_name);
141 ndr->depth--;
144 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_1(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_1 *r)
146 if (ndr_flags & NDR_SCALARS) {
147 NDR_CHECK(ndr_push_align(ndr, 4));
148 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1_name));
149 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1_password));
150 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri1_password_age));
151 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri1_priv));
152 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1_home_dir));
153 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1_comment));
154 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri1_flags));
155 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1_script_path));
157 if (ndr_flags & NDR_BUFFERS) {
159 return NDR_ERR_SUCCESS;
162 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_1(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_1 *r)
164 if (ndr_flags & NDR_SCALARS) {
165 NDR_CHECK(ndr_pull_align(ndr, 4));
166 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1_name));
167 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1_password));
168 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri1_password_age));
169 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri1_priv));
170 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1_home_dir));
171 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1_comment));
172 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri1_flags));
173 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1_script_path));
175 if (ndr_flags & NDR_BUFFERS) {
177 return NDR_ERR_SUCCESS;
180 _PUBLIC_ void ndr_print_USER_INFO_1(struct ndr_print *ndr, const char *name, const struct USER_INFO_1 *r)
182 ndr_print_struct(ndr, name, "USER_INFO_1");
183 ndr->depth++;
184 ndr_print_string(ndr, "usri1_name", r->usri1_name);
185 ndr_print_string(ndr, "usri1_password", r->usri1_password);
186 ndr_print_uint32(ndr, "usri1_password_age", r->usri1_password_age);
187 ndr_print_uint32(ndr, "usri1_priv", r->usri1_priv);
188 ndr_print_string(ndr, "usri1_home_dir", r->usri1_home_dir);
189 ndr_print_string(ndr, "usri1_comment", r->usri1_comment);
190 ndr_print_uint32(ndr, "usri1_flags", r->usri1_flags);
191 ndr_print_string(ndr, "usri1_script_path", r->usri1_script_path);
192 ndr->depth--;
195 _PUBLIC_ enum ndr_err_code ndr_push_NET_DISPLAY_USER(struct ndr_push *ndr, int ndr_flags, const struct NET_DISPLAY_USER *r)
197 if (ndr_flags & NDR_SCALARS) {
198 NDR_CHECK(ndr_push_align(ndr, 4));
199 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1_name));
200 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1_comment));
201 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri1_flags));
202 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1_full_name));
203 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri1_user_id));
204 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri1_next_index));
206 if (ndr_flags & NDR_BUFFERS) {
208 return NDR_ERR_SUCCESS;
211 _PUBLIC_ enum ndr_err_code ndr_pull_NET_DISPLAY_USER(struct ndr_pull *ndr, int ndr_flags, struct NET_DISPLAY_USER *r)
213 if (ndr_flags & NDR_SCALARS) {
214 NDR_CHECK(ndr_pull_align(ndr, 4));
215 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1_name));
216 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1_comment));
217 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri1_flags));
218 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1_full_name));
219 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri1_user_id));
220 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri1_next_index));
222 if (ndr_flags & NDR_BUFFERS) {
224 return NDR_ERR_SUCCESS;
227 _PUBLIC_ void ndr_print_NET_DISPLAY_USER(struct ndr_print *ndr, const char *name, const struct NET_DISPLAY_USER *r)
229 ndr_print_struct(ndr, name, "NET_DISPLAY_USER");
230 ndr->depth++;
231 ndr_print_string(ndr, "usri1_name", r->usri1_name);
232 ndr_print_string(ndr, "usri1_comment", r->usri1_comment);
233 ndr_print_uint32(ndr, "usri1_flags", r->usri1_flags);
234 ndr_print_string(ndr, "usri1_full_name", r->usri1_full_name);
235 ndr_print_uint32(ndr, "usri1_user_id", r->usri1_user_id);
236 ndr_print_uint32(ndr, "usri1_next_index", r->usri1_next_index);
237 ndr->depth--;
240 _PUBLIC_ enum ndr_err_code ndr_push_NET_DISPLAY_MACHINE(struct ndr_push *ndr, int ndr_flags, const struct NET_DISPLAY_MACHINE *r)
242 if (ndr_flags & NDR_SCALARS) {
243 NDR_CHECK(ndr_push_align(ndr, 4));
244 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri2_name));
245 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri2_comment));
246 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri2_flags));
247 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri2_user_id));
248 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri2_next_index));
250 if (ndr_flags & NDR_BUFFERS) {
252 return NDR_ERR_SUCCESS;
255 _PUBLIC_ enum ndr_err_code ndr_pull_NET_DISPLAY_MACHINE(struct ndr_pull *ndr, int ndr_flags, struct NET_DISPLAY_MACHINE *r)
257 if (ndr_flags & NDR_SCALARS) {
258 NDR_CHECK(ndr_pull_align(ndr, 4));
259 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri2_name));
260 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri2_comment));
261 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri2_flags));
262 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri2_user_id));
263 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri2_next_index));
265 if (ndr_flags & NDR_BUFFERS) {
267 return NDR_ERR_SUCCESS;
270 _PUBLIC_ void ndr_print_NET_DISPLAY_MACHINE(struct ndr_print *ndr, const char *name, const struct NET_DISPLAY_MACHINE *r)
272 ndr_print_struct(ndr, name, "NET_DISPLAY_MACHINE");
273 ndr->depth++;
274 ndr_print_string(ndr, "usri2_name", r->usri2_name);
275 ndr_print_string(ndr, "usri2_comment", r->usri2_comment);
276 ndr_print_uint32(ndr, "usri2_flags", r->usri2_flags);
277 ndr_print_uint32(ndr, "usri2_user_id", r->usri2_user_id);
278 ndr_print_uint32(ndr, "usri2_next_index", r->usri2_next_index);
279 ndr->depth--;
282 _PUBLIC_ enum ndr_err_code ndr_push_NET_DISPLAY_GROUP(struct ndr_push *ndr, int ndr_flags, const struct NET_DISPLAY_GROUP *r)
284 if (ndr_flags & NDR_SCALARS) {
285 NDR_CHECK(ndr_push_align(ndr, 4));
286 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->grpi3_name));
287 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->grpi3_comment));
288 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->grpi3_group_id));
289 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->grpi3_attributes));
290 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->grpi3_next_index));
292 if (ndr_flags & NDR_BUFFERS) {
294 return NDR_ERR_SUCCESS;
297 _PUBLIC_ enum ndr_err_code ndr_pull_NET_DISPLAY_GROUP(struct ndr_pull *ndr, int ndr_flags, struct NET_DISPLAY_GROUP *r)
299 if (ndr_flags & NDR_SCALARS) {
300 NDR_CHECK(ndr_pull_align(ndr, 4));
301 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->grpi3_name));
302 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->grpi3_comment));
303 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->grpi3_group_id));
304 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->grpi3_attributes));
305 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->grpi3_next_index));
307 if (ndr_flags & NDR_BUFFERS) {
309 return NDR_ERR_SUCCESS;
312 _PUBLIC_ void ndr_print_NET_DISPLAY_GROUP(struct ndr_print *ndr, const char *name, const struct NET_DISPLAY_GROUP *r)
314 ndr_print_struct(ndr, name, "NET_DISPLAY_GROUP");
315 ndr->depth++;
316 ndr_print_string(ndr, "grpi3_name", r->grpi3_name);
317 ndr_print_string(ndr, "grpi3_comment", r->grpi3_comment);
318 ndr_print_uint32(ndr, "grpi3_group_id", r->grpi3_group_id);
319 ndr_print_uint32(ndr, "grpi3_attributes", r->grpi3_attributes);
320 ndr_print_uint32(ndr, "grpi3_next_index", r->grpi3_next_index);
321 ndr->depth--;
324 _PUBLIC_ void ndr_print_NetJoinDomain(struct ndr_print *ndr, const char *name, int flags, const struct NetJoinDomain *r)
326 ndr_print_struct(ndr, name, "NetJoinDomain");
327 ndr->depth++;
328 if (flags & NDR_SET_VALUES) {
329 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
331 if (flags & NDR_IN) {
332 ndr_print_struct(ndr, "in", "NetJoinDomain");
333 ndr->depth++;
334 ndr_print_ptr(ndr, "server", r->in.server);
335 ndr->depth++;
336 if (r->in.server) {
337 ndr_print_string(ndr, "server", r->in.server);
339 ndr->depth--;
340 ndr_print_ptr(ndr, "domain", r->in.domain);
341 ndr->depth++;
342 ndr_print_string(ndr, "domain", r->in.domain);
343 ndr->depth--;
344 ndr_print_ptr(ndr, "account_ou", r->in.account_ou);
345 ndr->depth++;
346 if (r->in.account_ou) {
347 ndr_print_string(ndr, "account_ou", r->in.account_ou);
349 ndr->depth--;
350 ndr_print_ptr(ndr, "account", r->in.account);
351 ndr->depth++;
352 if (r->in.account) {
353 ndr_print_string(ndr, "account", r->in.account);
355 ndr->depth--;
356 ndr_print_ptr(ndr, "password", r->in.password);
357 ndr->depth++;
358 if (r->in.password) {
359 ndr_print_string(ndr, "password", r->in.password);
361 ndr->depth--;
362 ndr_print_uint32(ndr, "join_flags", r->in.join_flags);
363 ndr->depth--;
365 if (flags & NDR_OUT) {
366 ndr_print_struct(ndr, "out", "NetJoinDomain");
367 ndr->depth++;
368 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
369 ndr->depth--;
371 ndr->depth--;
374 _PUBLIC_ void ndr_print_NetUnjoinDomain(struct ndr_print *ndr, const char *name, int flags, const struct NetUnjoinDomain *r)
376 ndr_print_struct(ndr, name, "NetUnjoinDomain");
377 ndr->depth++;
378 if (flags & NDR_SET_VALUES) {
379 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
381 if (flags & NDR_IN) {
382 ndr_print_struct(ndr, "in", "NetUnjoinDomain");
383 ndr->depth++;
384 ndr_print_ptr(ndr, "server_name", r->in.server_name);
385 ndr->depth++;
386 if (r->in.server_name) {
387 ndr_print_string(ndr, "server_name", r->in.server_name);
389 ndr->depth--;
390 ndr_print_ptr(ndr, "account", r->in.account);
391 ndr->depth++;
392 if (r->in.account) {
393 ndr_print_string(ndr, "account", r->in.account);
395 ndr->depth--;
396 ndr_print_ptr(ndr, "password", r->in.password);
397 ndr->depth++;
398 if (r->in.password) {
399 ndr_print_string(ndr, "password", r->in.password);
401 ndr->depth--;
402 ndr_print_uint32(ndr, "unjoin_flags", r->in.unjoin_flags);
403 ndr->depth--;
405 if (flags & NDR_OUT) {
406 ndr_print_struct(ndr, "out", "NetUnjoinDomain");
407 ndr->depth++;
408 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
409 ndr->depth--;
411 ndr->depth--;
414 _PUBLIC_ void ndr_print_NetGetJoinInformation(struct ndr_print *ndr, const char *name, int flags, const struct NetGetJoinInformation *r)
416 ndr_print_struct(ndr, name, "NetGetJoinInformation");
417 ndr->depth++;
418 if (flags & NDR_SET_VALUES) {
419 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
421 if (flags & NDR_IN) {
422 ndr_print_struct(ndr, "in", "NetGetJoinInformation");
423 ndr->depth++;
424 ndr_print_ptr(ndr, "server_name", r->in.server_name);
425 ndr->depth++;
426 if (r->in.server_name) {
427 ndr_print_string(ndr, "server_name", r->in.server_name);
429 ndr->depth--;
430 ndr->depth--;
432 if (flags & NDR_OUT) {
433 ndr_print_struct(ndr, "out", "NetGetJoinInformation");
434 ndr->depth++;
435 ndr_print_ptr(ndr, "name_buffer", r->out.name_buffer);
436 ndr->depth++;
437 ndr_print_ptr(ndr, "name_buffer", *r->out.name_buffer);
438 ndr->depth++;
439 if (*r->out.name_buffer) {
440 ndr_print_string(ndr, "name_buffer", *r->out.name_buffer);
442 ndr->depth--;
443 ndr->depth--;
444 ndr_print_ptr(ndr, "name_type", r->out.name_type);
445 ndr->depth++;
446 ndr_print_uint16(ndr, "name_type", *r->out.name_type);
447 ndr->depth--;
448 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
449 ndr->depth--;
451 ndr->depth--;
454 _PUBLIC_ void ndr_print_NetGetJoinableOUs(struct ndr_print *ndr, const char *name, int flags, const struct NetGetJoinableOUs *r)
456 ndr_print_struct(ndr, name, "NetGetJoinableOUs");
457 ndr->depth++;
458 if (flags & NDR_SET_VALUES) {
459 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
461 if (flags & NDR_IN) {
462 ndr_print_struct(ndr, "in", "NetGetJoinableOUs");
463 ndr->depth++;
464 ndr_print_ptr(ndr, "server_name", r->in.server_name);
465 ndr->depth++;
466 if (r->in.server_name) {
467 ndr_print_string(ndr, "server_name", r->in.server_name);
469 ndr->depth--;
470 ndr_print_ptr(ndr, "domain", r->in.domain);
471 ndr->depth++;
472 ndr_print_string(ndr, "domain", r->in.domain);
473 ndr->depth--;
474 ndr_print_ptr(ndr, "account", r->in.account);
475 ndr->depth++;
476 if (r->in.account) {
477 ndr_print_string(ndr, "account", r->in.account);
479 ndr->depth--;
480 ndr_print_ptr(ndr, "password", r->in.password);
481 ndr->depth++;
482 if (r->in.password) {
483 ndr_print_string(ndr, "password", r->in.password);
485 ndr->depth--;
486 ndr->depth--;
488 if (flags & NDR_OUT) {
489 ndr_print_struct(ndr, "out", "NetGetJoinableOUs");
490 ndr->depth++;
491 ndr_print_ptr(ndr, "ou_count", r->out.ou_count);
492 ndr->depth++;
493 ndr_print_uint32(ndr, "ou_count", *r->out.ou_count);
494 ndr->depth--;
495 ndr_print_ptr(ndr, "ous", r->out.ous);
496 ndr->depth++;
497 ndr_print_ptr(ndr, "ous", *r->out.ous);
498 ndr->depth++;
499 if (*r->out.ous) {
500 ndr_print_ptr(ndr, "ous", **r->out.ous);
501 ndr->depth++;
502 if (**r->out.ous) {
503 ndr_print_string(ndr, "ous", **r->out.ous);
505 ndr->depth--;
507 ndr->depth--;
508 ndr->depth--;
509 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
510 ndr->depth--;
512 ndr->depth--;
515 _PUBLIC_ void ndr_print_NetServerGetInfo(struct ndr_print *ndr, const char *name, int flags, const struct NetServerGetInfo *r)
517 ndr_print_struct(ndr, name, "NetServerGetInfo");
518 ndr->depth++;
519 if (flags & NDR_SET_VALUES) {
520 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
522 if (flags & NDR_IN) {
523 ndr_print_struct(ndr, "in", "NetServerGetInfo");
524 ndr->depth++;
525 ndr_print_ptr(ndr, "server_name", r->in.server_name);
526 ndr->depth++;
527 if (r->in.server_name) {
528 ndr_print_string(ndr, "server_name", r->in.server_name);
530 ndr->depth--;
531 ndr_print_uint32(ndr, "level", r->in.level);
532 ndr->depth--;
534 if (flags & NDR_OUT) {
535 ndr_print_struct(ndr, "out", "NetServerGetInfo");
536 ndr->depth++;
537 ndr_print_ptr(ndr, "buffer", r->out.buffer);
538 ndr->depth++;
539 ndr_print_ptr(ndr, "buffer", *r->out.buffer);
540 ndr->depth++;
541 if (*r->out.buffer) {
542 ndr_print_uint8(ndr, "buffer", **r->out.buffer);
544 ndr->depth--;
545 ndr->depth--;
546 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
547 ndr->depth--;
549 ndr->depth--;
552 _PUBLIC_ void ndr_print_NetServerSetInfo(struct ndr_print *ndr, const char *name, int flags, const struct NetServerSetInfo *r)
554 ndr_print_struct(ndr, name, "NetServerSetInfo");
555 ndr->depth++;
556 if (flags & NDR_SET_VALUES) {
557 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
559 if (flags & NDR_IN) {
560 ndr_print_struct(ndr, "in", "NetServerSetInfo");
561 ndr->depth++;
562 ndr_print_ptr(ndr, "server_name", r->in.server_name);
563 ndr->depth++;
564 if (r->in.server_name) {
565 ndr_print_string(ndr, "server_name", r->in.server_name);
567 ndr->depth--;
568 ndr_print_uint32(ndr, "level", r->in.level);
569 ndr_print_ptr(ndr, "buffer", r->in.buffer);
570 ndr->depth++;
571 ndr_print_uint8(ndr, "buffer", *r->in.buffer);
572 ndr->depth--;
573 ndr->depth--;
575 if (flags & NDR_OUT) {
576 ndr_print_struct(ndr, "out", "NetServerSetInfo");
577 ndr->depth++;
578 ndr_print_ptr(ndr, "parm_error", r->out.parm_error);
579 ndr->depth++;
580 ndr_print_uint32(ndr, "parm_error", *r->out.parm_error);
581 ndr->depth--;
582 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
583 ndr->depth--;
585 ndr->depth--;
588 _PUBLIC_ void ndr_print_NetGetDCName(struct ndr_print *ndr, const char *name, int flags, const struct NetGetDCName *r)
590 ndr_print_struct(ndr, name, "NetGetDCName");
591 ndr->depth++;
592 if (flags & NDR_SET_VALUES) {
593 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
595 if (flags & NDR_IN) {
596 ndr_print_struct(ndr, "in", "NetGetDCName");
597 ndr->depth++;
598 ndr_print_ptr(ndr, "server_name", r->in.server_name);
599 ndr->depth++;
600 if (r->in.server_name) {
601 ndr_print_string(ndr, "server_name", r->in.server_name);
603 ndr->depth--;
604 ndr_print_ptr(ndr, "domain_name", r->in.domain_name);
605 ndr->depth++;
606 if (r->in.domain_name) {
607 ndr_print_string(ndr, "domain_name", r->in.domain_name);
609 ndr->depth--;
610 ndr->depth--;
612 if (flags & NDR_OUT) {
613 ndr_print_struct(ndr, "out", "NetGetDCName");
614 ndr->depth++;
615 ndr_print_ptr(ndr, "buffer", r->out.buffer);
616 ndr->depth++;
617 ndr_print_ptr(ndr, "buffer", *r->out.buffer);
618 ndr->depth++;
619 if (*r->out.buffer) {
620 ndr_print_uint8(ndr, "buffer", **r->out.buffer);
622 ndr->depth--;
623 ndr->depth--;
624 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
625 ndr->depth--;
627 ndr->depth--;
630 _PUBLIC_ void ndr_print_NetGetAnyDCName(struct ndr_print *ndr, const char *name, int flags, const struct NetGetAnyDCName *r)
632 ndr_print_struct(ndr, name, "NetGetAnyDCName");
633 ndr->depth++;
634 if (flags & NDR_SET_VALUES) {
635 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
637 if (flags & NDR_IN) {
638 ndr_print_struct(ndr, "in", "NetGetAnyDCName");
639 ndr->depth++;
640 ndr_print_ptr(ndr, "server_name", r->in.server_name);
641 ndr->depth++;
642 if (r->in.server_name) {
643 ndr_print_string(ndr, "server_name", r->in.server_name);
645 ndr->depth--;
646 ndr_print_ptr(ndr, "domain_name", r->in.domain_name);
647 ndr->depth++;
648 if (r->in.domain_name) {
649 ndr_print_string(ndr, "domain_name", r->in.domain_name);
651 ndr->depth--;
652 ndr->depth--;
654 if (flags & NDR_OUT) {
655 ndr_print_struct(ndr, "out", "NetGetAnyDCName");
656 ndr->depth++;
657 ndr_print_ptr(ndr, "buffer", r->out.buffer);
658 ndr->depth++;
659 ndr_print_ptr(ndr, "buffer", *r->out.buffer);
660 ndr->depth++;
661 if (*r->out.buffer) {
662 ndr_print_uint8(ndr, "buffer", **r->out.buffer);
664 ndr->depth--;
665 ndr->depth--;
666 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
667 ndr->depth--;
669 ndr->depth--;
672 _PUBLIC_ void ndr_print_DsGetDcName(struct ndr_print *ndr, const char *name, int flags, const struct DsGetDcName *r)
674 ndr_print_struct(ndr, name, "DsGetDcName");
675 ndr->depth++;
676 if (flags & NDR_SET_VALUES) {
677 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
679 if (flags & NDR_IN) {
680 ndr_print_struct(ndr, "in", "DsGetDcName");
681 ndr->depth++;
682 ndr_print_ptr(ndr, "server_name", r->in.server_name);
683 ndr->depth++;
684 if (r->in.server_name) {
685 ndr_print_string(ndr, "server_name", r->in.server_name);
687 ndr->depth--;
688 ndr_print_ptr(ndr, "domain_name", r->in.domain_name);
689 ndr->depth++;
690 ndr_print_string(ndr, "domain_name", r->in.domain_name);
691 ndr->depth--;
692 ndr_print_ptr(ndr, "domain_guid", r->in.domain_guid);
693 ndr->depth++;
694 if (r->in.domain_guid) {
695 ndr_print_GUID(ndr, "domain_guid", r->in.domain_guid);
697 ndr->depth--;
698 ndr_print_ptr(ndr, "site_name", r->in.site_name);
699 ndr->depth++;
700 if (r->in.site_name) {
701 ndr_print_string(ndr, "site_name", r->in.site_name);
703 ndr->depth--;
704 ndr_print_uint32(ndr, "flags", r->in.flags);
705 ndr->depth--;
707 if (flags & NDR_OUT) {
708 ndr_print_struct(ndr, "out", "DsGetDcName");
709 ndr->depth++;
710 ndr_print_ptr(ndr, "dc_info", r->out.dc_info);
711 ndr->depth++;
712 ndr_print_ptr(ndr, "dc_info", *r->out.dc_info);
713 ndr->depth++;
714 if (*r->out.dc_info) {
715 ndr_print_DOMAIN_CONTROLLER_INFO(ndr, "dc_info", *r->out.dc_info);
717 ndr->depth--;
718 ndr->depth--;
719 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
720 ndr->depth--;
722 ndr->depth--;
725 _PUBLIC_ void ndr_print_NetUserAdd(struct ndr_print *ndr, const char *name, int flags, const struct NetUserAdd *r)
727 ndr_print_struct(ndr, name, "NetUserAdd");
728 ndr->depth++;
729 if (flags & NDR_SET_VALUES) {
730 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
732 if (flags & NDR_IN) {
733 ndr_print_struct(ndr, "in", "NetUserAdd");
734 ndr->depth++;
735 ndr_print_ptr(ndr, "server_name", r->in.server_name);
736 ndr->depth++;
737 if (r->in.server_name) {
738 ndr_print_string(ndr, "server_name", r->in.server_name);
740 ndr->depth--;
741 ndr_print_uint32(ndr, "level", r->in.level);
742 ndr_print_ptr(ndr, "buffer", r->in.buffer);
743 ndr->depth++;
744 ndr_print_uint8(ndr, "buffer", *r->in.buffer);
745 ndr->depth--;
746 ndr->depth--;
748 if (flags & NDR_OUT) {
749 ndr_print_struct(ndr, "out", "NetUserAdd");
750 ndr->depth++;
751 ndr_print_ptr(ndr, "parm_error", r->out.parm_error);
752 ndr->depth++;
753 ndr_print_uint32(ndr, "parm_error", *r->out.parm_error);
754 ndr->depth--;
755 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
756 ndr->depth--;
758 ndr->depth--;
761 _PUBLIC_ void ndr_print_NetUserDel(struct ndr_print *ndr, const char *name, int flags, const struct NetUserDel *r)
763 ndr_print_struct(ndr, name, "NetUserDel");
764 ndr->depth++;
765 if (flags & NDR_SET_VALUES) {
766 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
768 if (flags & NDR_IN) {
769 ndr_print_struct(ndr, "in", "NetUserDel");
770 ndr->depth++;
771 ndr_print_ptr(ndr, "server_name", r->in.server_name);
772 ndr->depth++;
773 if (r->in.server_name) {
774 ndr_print_string(ndr, "server_name", r->in.server_name);
776 ndr->depth--;
777 ndr_print_ptr(ndr, "user_name", r->in.user_name);
778 ndr->depth++;
779 ndr_print_string(ndr, "user_name", r->in.user_name);
780 ndr->depth--;
781 ndr->depth--;
783 if (flags & NDR_OUT) {
784 ndr_print_struct(ndr, "out", "NetUserDel");
785 ndr->depth++;
786 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
787 ndr->depth--;
789 ndr->depth--;
792 _PUBLIC_ void ndr_print_NetUserEnum(struct ndr_print *ndr, const char *name, int flags, const struct NetUserEnum *r)
794 ndr_print_struct(ndr, name, "NetUserEnum");
795 ndr->depth++;
796 if (flags & NDR_SET_VALUES) {
797 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
799 if (flags & NDR_IN) {
800 ndr_print_struct(ndr, "in", "NetUserEnum");
801 ndr->depth++;
802 ndr_print_ptr(ndr, "server_name", r->in.server_name);
803 ndr->depth++;
804 if (r->in.server_name) {
805 ndr_print_string(ndr, "server_name", r->in.server_name);
807 ndr->depth--;
808 ndr_print_uint32(ndr, "level", r->in.level);
809 ndr_print_uint32(ndr, "filter", r->in.filter);
810 ndr_print_uint32(ndr, "prefmaxlen", r->in.prefmaxlen);
811 ndr_print_ptr(ndr, "resume_handle", r->in.resume_handle);
812 ndr->depth++;
813 ndr_print_uint32(ndr, "resume_handle", *r->in.resume_handle);
814 ndr->depth--;
815 ndr->depth--;
817 if (flags & NDR_OUT) {
818 ndr_print_struct(ndr, "out", "NetUserEnum");
819 ndr->depth++;
820 ndr_print_ptr(ndr, "buffer", r->out.buffer);
821 ndr->depth++;
822 ndr_print_ptr(ndr, "buffer", *r->out.buffer);
823 ndr->depth++;
824 if (*r->out.buffer) {
825 ndr_print_uint8(ndr, "buffer", **r->out.buffer);
827 ndr->depth--;
828 ndr->depth--;
829 ndr_print_ptr(ndr, "entries_read", r->out.entries_read);
830 ndr->depth++;
831 ndr_print_uint32(ndr, "entries_read", *r->out.entries_read);
832 ndr->depth--;
833 ndr_print_ptr(ndr, "total_entries", r->out.total_entries);
834 ndr->depth++;
835 ndr_print_uint32(ndr, "total_entries", *r->out.total_entries);
836 ndr->depth--;
837 ndr_print_ptr(ndr, "resume_handle", r->out.resume_handle);
838 ndr->depth++;
839 ndr_print_uint32(ndr, "resume_handle", *r->out.resume_handle);
840 ndr->depth--;
841 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
842 ndr->depth--;
844 ndr->depth--;
847 _PUBLIC_ void ndr_print_NetQueryDisplayInformation(struct ndr_print *ndr, const char *name, int flags, const struct NetQueryDisplayInformation *r)
849 ndr_print_struct(ndr, name, "NetQueryDisplayInformation");
850 ndr->depth++;
851 if (flags & NDR_SET_VALUES) {
852 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
854 if (flags & NDR_IN) {
855 ndr_print_struct(ndr, "in", "NetQueryDisplayInformation");
856 ndr->depth++;
857 ndr_print_ptr(ndr, "server_name", r->in.server_name);
858 ndr->depth++;
859 if (r->in.server_name) {
860 ndr_print_string(ndr, "server_name", r->in.server_name);
862 ndr->depth--;
863 ndr_print_uint32(ndr, "level", r->in.level);
864 ndr_print_uint32(ndr, "idx", r->in.idx);
865 ndr_print_uint32(ndr, "entries_requested", r->in.entries_requested);
866 ndr_print_uint32(ndr, "prefmaxlen", r->in.prefmaxlen);
867 ndr->depth--;
869 if (flags & NDR_OUT) {
870 ndr_print_struct(ndr, "out", "NetQueryDisplayInformation");
871 ndr->depth++;
872 ndr_print_ptr(ndr, "entries_read", r->out.entries_read);
873 ndr->depth++;
874 ndr_print_uint32(ndr, "entries_read", *r->out.entries_read);
875 ndr->depth--;
876 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
877 ndr->depth--;
879 ndr->depth--;