re-run make idl.
[Samba.git] / source / librpc / gen_ndr / ndr_libnetapi.c
bloba5266827b61043b7bc92230c372bb3213a70c457
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_domsid(struct ndr_push *ndr, int ndr_flags, const struct domsid *r)
32 uint32_t cntr_sub_auths_0;
33 if (ndr_flags & NDR_SCALARS) {
34 NDR_CHECK(ndr_push_align(ndr, 4));
35 NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, r->sid_rev_num));
36 NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, r->num_auths));
37 NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->id_auth, 6));
38 for (cntr_sub_auths_0 = 0; cntr_sub_auths_0 < MAXSUBAUTHS; cntr_sub_auths_0++) {
39 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->sub_auths[cntr_sub_auths_0]));
42 if (ndr_flags & NDR_BUFFERS) {
44 return NDR_ERR_SUCCESS;
47 _PUBLIC_ enum ndr_err_code ndr_pull_domsid(struct ndr_pull *ndr, int ndr_flags, struct domsid *r)
49 uint32_t cntr_sub_auths_0;
50 TALLOC_CTX *_mem_save_sub_auths_0;
51 if (ndr_flags & NDR_SCALARS) {
52 NDR_CHECK(ndr_pull_align(ndr, 4));
53 NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, &r->sid_rev_num));
54 NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, &r->num_auths));
55 NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->id_auth, 6));
56 NDR_PULL_ALLOC_N(ndr, r->sub_auths, MAXSUBAUTHS);
57 _mem_save_sub_auths_0 = NDR_PULL_GET_MEM_CTX(ndr);
58 NDR_PULL_SET_MEM_CTX(ndr, r->sub_auths, 0);
59 for (cntr_sub_auths_0 = 0; cntr_sub_auths_0 < MAXSUBAUTHS; cntr_sub_auths_0++) {
60 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->sub_auths[cntr_sub_auths_0]));
62 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_sub_auths_0, 0);
64 if (ndr_flags & NDR_BUFFERS) {
66 return NDR_ERR_SUCCESS;
69 _PUBLIC_ void ndr_print_domsid(struct ndr_print *ndr, const char *name, const struct domsid *r)
71 uint32_t cntr_sub_auths_0;
72 ndr_print_struct(ndr, name, "domsid");
73 ndr->depth++;
74 ndr_print_uint8(ndr, "sid_rev_num", r->sid_rev_num);
75 ndr_print_uint8(ndr, "num_auths", r->num_auths);
76 ndr_print_array_uint8(ndr, "id_auth", r->id_auth, 6);
77 ndr->print(ndr, "%s: ARRAY(%d)", "sub_auths", (int)MAXSUBAUTHS);
78 ndr->depth++;
79 for (cntr_sub_auths_0=0;cntr_sub_auths_0<MAXSUBAUTHS;cntr_sub_auths_0++) {
80 char *idx_0=NULL;
81 if (asprintf(&idx_0, "[%d]", cntr_sub_auths_0) != -1) {
82 ndr_print_uint32(ndr, "sub_auths", r->sub_auths[cntr_sub_auths_0]);
83 free(idx_0);
86 ndr->depth--;
87 ndr->depth--;
90 _PUBLIC_ enum ndr_err_code ndr_push_NetJoinFlags(struct ndr_push *ndr, int ndr_flags, uint32_t r)
92 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r));
93 return NDR_ERR_SUCCESS;
96 _PUBLIC_ enum ndr_err_code ndr_pull_NetJoinFlags(struct ndr_pull *ndr, int ndr_flags, uint32_t *r)
98 uint32_t v;
99 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &v));
100 *r = v;
101 return NDR_ERR_SUCCESS;
104 _PUBLIC_ void ndr_print_NetJoinFlags(struct ndr_print *ndr, const char *name, uint32_t r)
106 ndr_print_uint32(ndr, name, r);
107 ndr->depth++;
108 ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "NETSETUP_JOIN_DOMAIN", NETSETUP_JOIN_DOMAIN, r);
109 ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "NETSETUP_ACCT_CREATE", NETSETUP_ACCT_CREATE, r);
110 ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "NETSETUP_ACCT_DELETE", NETSETUP_ACCT_DELETE, r);
111 ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "NETSETUP_WIN9X_UPGRADE", NETSETUP_WIN9X_UPGRADE, r);
112 ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "NETSETUP_DOMAIN_JOIN_IF_JOINED", NETSETUP_DOMAIN_JOIN_IF_JOINED, r);
113 ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "NETSETUP_JOIN_UNSECURE", NETSETUP_JOIN_UNSECURE, r);
114 ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "NETSETUP_MACHINE_PWD_PASSED", NETSETUP_MACHINE_PWD_PASSED, r);
115 ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "NETSETUP_DEFER_SPN_SET", NETSETUP_DEFER_SPN_SET, r);
116 ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "NETSETUP_JOIN_DC_ACCOUNT", NETSETUP_JOIN_DC_ACCOUNT, r);
117 ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "NETSETUP_JOIN_WITH_NEW_NAME", NETSETUP_JOIN_WITH_NEW_NAME, r);
118 ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "NETSETUP_INSTALL_INVOCATION", NETSETUP_INSTALL_INVOCATION, r);
119 ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "NETSETUP_IGNORE_UNSUPPORTED_FLAGS", NETSETUP_IGNORE_UNSUPPORTED_FLAGS, r);
120 ndr->depth--;
123 _PUBLIC_ enum ndr_err_code ndr_push_SERVER_INFO_100(struct ndr_push *ndr, int ndr_flags, const struct SERVER_INFO_100 *r)
125 if (ndr_flags & NDR_SCALARS) {
126 NDR_CHECK(ndr_push_align(ndr, 4));
127 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->sv100_platform_id));
128 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->sv100_name));
130 if (ndr_flags & NDR_BUFFERS) {
132 return NDR_ERR_SUCCESS;
135 _PUBLIC_ enum ndr_err_code ndr_pull_SERVER_INFO_100(struct ndr_pull *ndr, int ndr_flags, struct SERVER_INFO_100 *r)
137 if (ndr_flags & NDR_SCALARS) {
138 NDR_CHECK(ndr_pull_align(ndr, 4));
139 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->sv100_platform_id));
140 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->sv100_name));
142 if (ndr_flags & NDR_BUFFERS) {
144 return NDR_ERR_SUCCESS;
147 _PUBLIC_ void ndr_print_SERVER_INFO_100(struct ndr_print *ndr, const char *name, const struct SERVER_INFO_100 *r)
149 ndr_print_struct(ndr, name, "SERVER_INFO_100");
150 ndr->depth++;
151 ndr_print_uint32(ndr, "sv100_platform_id", r->sv100_platform_id);
152 ndr_print_string(ndr, "sv100_name", r->sv100_name);
153 ndr->depth--;
156 _PUBLIC_ enum ndr_err_code ndr_push_SERVER_INFO_101(struct ndr_push *ndr, int ndr_flags, const struct SERVER_INFO_101 *r)
158 if (ndr_flags & NDR_SCALARS) {
159 NDR_CHECK(ndr_push_align(ndr, 4));
160 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->sv101_platform_id));
161 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->sv101_name));
162 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->sv101_version_major));
163 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->sv101_version_minor));
164 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->sv101_type));
165 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->sv101_comment));
167 if (ndr_flags & NDR_BUFFERS) {
169 return NDR_ERR_SUCCESS;
172 _PUBLIC_ enum ndr_err_code ndr_pull_SERVER_INFO_101(struct ndr_pull *ndr, int ndr_flags, struct SERVER_INFO_101 *r)
174 if (ndr_flags & NDR_SCALARS) {
175 NDR_CHECK(ndr_pull_align(ndr, 4));
176 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->sv101_platform_id));
177 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->sv101_name));
178 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->sv101_version_major));
179 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->sv101_version_minor));
180 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->sv101_type));
181 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->sv101_comment));
183 if (ndr_flags & NDR_BUFFERS) {
185 return NDR_ERR_SUCCESS;
188 _PUBLIC_ void ndr_print_SERVER_INFO_101(struct ndr_print *ndr, const char *name, const struct SERVER_INFO_101 *r)
190 ndr_print_struct(ndr, name, "SERVER_INFO_101");
191 ndr->depth++;
192 ndr_print_uint32(ndr, "sv101_platform_id", r->sv101_platform_id);
193 ndr_print_string(ndr, "sv101_name", r->sv101_name);
194 ndr_print_uint32(ndr, "sv101_version_major", r->sv101_version_major);
195 ndr_print_uint32(ndr, "sv101_version_minor", r->sv101_version_minor);
196 ndr_print_uint32(ndr, "sv101_type", r->sv101_type);
197 ndr_print_string(ndr, "sv101_comment", r->sv101_comment);
198 ndr->depth--;
201 _PUBLIC_ enum ndr_err_code ndr_push_SERVER_INFO_102(struct ndr_push *ndr, int ndr_flags, const struct SERVER_INFO_102 *r)
203 if (ndr_flags & NDR_SCALARS) {
204 NDR_CHECK(ndr_push_align(ndr, 4));
205 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->sv102_platform_id));
206 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->sv102_name));
207 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->sv102_version_major));
208 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->sv102_version_minor));
209 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->sv102_type));
210 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->sv102_comment));
211 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->sv102_users));
212 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->sv102_disc));
213 NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, r->sv102_hidden));
214 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->sv102_announce));
215 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->sv102_anndelta));
216 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->sv102_licenses));
217 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->sv102_userpath));
219 if (ndr_flags & NDR_BUFFERS) {
221 return NDR_ERR_SUCCESS;
224 _PUBLIC_ enum ndr_err_code ndr_pull_SERVER_INFO_102(struct ndr_pull *ndr, int ndr_flags, struct SERVER_INFO_102 *r)
226 if (ndr_flags & NDR_SCALARS) {
227 NDR_CHECK(ndr_pull_align(ndr, 4));
228 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->sv102_platform_id));
229 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->sv102_name));
230 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->sv102_version_major));
231 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->sv102_version_minor));
232 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->sv102_type));
233 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->sv102_comment));
234 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->sv102_users));
235 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->sv102_disc));
236 NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, &r->sv102_hidden));
237 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->sv102_announce));
238 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->sv102_anndelta));
239 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->sv102_licenses));
240 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->sv102_userpath));
242 if (ndr_flags & NDR_BUFFERS) {
244 return NDR_ERR_SUCCESS;
247 _PUBLIC_ void ndr_print_SERVER_INFO_102(struct ndr_print *ndr, const char *name, const struct SERVER_INFO_102 *r)
249 ndr_print_struct(ndr, name, "SERVER_INFO_102");
250 ndr->depth++;
251 ndr_print_uint32(ndr, "sv102_platform_id", r->sv102_platform_id);
252 ndr_print_string(ndr, "sv102_name", r->sv102_name);
253 ndr_print_uint32(ndr, "sv102_version_major", r->sv102_version_major);
254 ndr_print_uint32(ndr, "sv102_version_minor", r->sv102_version_minor);
255 ndr_print_uint32(ndr, "sv102_type", r->sv102_type);
256 ndr_print_string(ndr, "sv102_comment", r->sv102_comment);
257 ndr_print_uint32(ndr, "sv102_users", r->sv102_users);
258 ndr_print_uint32(ndr, "sv102_disc", r->sv102_disc);
259 ndr_print_uint8(ndr, "sv102_hidden", r->sv102_hidden);
260 ndr_print_uint32(ndr, "sv102_announce", r->sv102_announce);
261 ndr_print_uint32(ndr, "sv102_anndelta", r->sv102_anndelta);
262 ndr_print_uint32(ndr, "sv102_licenses", r->sv102_licenses);
263 ndr_print_string(ndr, "sv102_userpath", r->sv102_userpath);
264 ndr->depth--;
267 _PUBLIC_ enum ndr_err_code ndr_push_SERVER_INFO_1005(struct ndr_push *ndr, int ndr_flags, const struct SERVER_INFO_1005 *r)
269 if (ndr_flags & NDR_SCALARS) {
270 NDR_CHECK(ndr_push_align(ndr, 4));
271 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->sv1005_comment));
273 if (ndr_flags & NDR_BUFFERS) {
275 return NDR_ERR_SUCCESS;
278 _PUBLIC_ enum ndr_err_code ndr_pull_SERVER_INFO_1005(struct ndr_pull *ndr, int ndr_flags, struct SERVER_INFO_1005 *r)
280 if (ndr_flags & NDR_SCALARS) {
281 NDR_CHECK(ndr_pull_align(ndr, 4));
282 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->sv1005_comment));
284 if (ndr_flags & NDR_BUFFERS) {
286 return NDR_ERR_SUCCESS;
289 _PUBLIC_ void ndr_print_SERVER_INFO_1005(struct ndr_print *ndr, const char *name, const struct SERVER_INFO_1005 *r)
291 ndr_print_struct(ndr, name, "SERVER_INFO_1005");
292 ndr->depth++;
293 ndr_print_string(ndr, "sv1005_comment", r->sv1005_comment);
294 ndr->depth--;
297 _PUBLIC_ enum ndr_err_code ndr_push_DOMAIN_CONTROLLER_INFO(struct ndr_push *ndr, int ndr_flags, const struct DOMAIN_CONTROLLER_INFO *r)
299 if (ndr_flags & NDR_SCALARS) {
300 NDR_CHECK(ndr_push_align(ndr, 4));
301 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->domain_controller_name));
302 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->domain_controller_address));
303 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->domain_controller_address_type));
304 NDR_CHECK(ndr_push_GUID(ndr, NDR_SCALARS, &r->domain_guid));
305 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->domain_name));
306 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->dns_forest_name));
307 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->flags));
308 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->dc_site_name));
309 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->client_site_name));
311 if (ndr_flags & NDR_BUFFERS) {
313 return NDR_ERR_SUCCESS;
316 _PUBLIC_ enum ndr_err_code ndr_pull_DOMAIN_CONTROLLER_INFO(struct ndr_pull *ndr, int ndr_flags, struct DOMAIN_CONTROLLER_INFO *r)
318 if (ndr_flags & NDR_SCALARS) {
319 NDR_CHECK(ndr_pull_align(ndr, 4));
320 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->domain_controller_name));
321 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->domain_controller_address));
322 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->domain_controller_address_type));
323 NDR_CHECK(ndr_pull_GUID(ndr, NDR_SCALARS, &r->domain_guid));
324 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->domain_name));
325 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->dns_forest_name));
326 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->flags));
327 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->dc_site_name));
328 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->client_site_name));
330 if (ndr_flags & NDR_BUFFERS) {
332 return NDR_ERR_SUCCESS;
335 _PUBLIC_ void ndr_print_DOMAIN_CONTROLLER_INFO(struct ndr_print *ndr, const char *name, const struct DOMAIN_CONTROLLER_INFO *r)
337 ndr_print_struct(ndr, name, "DOMAIN_CONTROLLER_INFO");
338 ndr->depth++;
339 ndr_print_string(ndr, "domain_controller_name", r->domain_controller_name);
340 ndr_print_string(ndr, "domain_controller_address", r->domain_controller_address);
341 ndr_print_uint32(ndr, "domain_controller_address_type", r->domain_controller_address_type);
342 ndr_print_GUID(ndr, "domain_guid", &r->domain_guid);
343 ndr_print_string(ndr, "domain_name", r->domain_name);
344 ndr_print_string(ndr, "dns_forest_name", r->dns_forest_name);
345 ndr_print_uint32(ndr, "flags", r->flags);
346 ndr_print_string(ndr, "dc_site_name", r->dc_site_name);
347 ndr_print_string(ndr, "client_site_name", r->client_site_name);
348 ndr->depth--;
351 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_0(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_0 *r)
353 if (ndr_flags & NDR_SCALARS) {
354 NDR_CHECK(ndr_push_align(ndr, 4));
355 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri0_name));
357 if (ndr_flags & NDR_BUFFERS) {
359 return NDR_ERR_SUCCESS;
362 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_0(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_0 *r)
364 if (ndr_flags & NDR_SCALARS) {
365 NDR_CHECK(ndr_pull_align(ndr, 4));
366 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri0_name));
368 if (ndr_flags & NDR_BUFFERS) {
370 return NDR_ERR_SUCCESS;
373 _PUBLIC_ void ndr_print_USER_INFO_0(struct ndr_print *ndr, const char *name, const struct USER_INFO_0 *r)
375 ndr_print_struct(ndr, name, "USER_INFO_0");
376 ndr->depth++;
377 ndr_print_string(ndr, "usri0_name", r->usri0_name);
378 ndr->depth--;
381 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_1(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_1 *r)
383 if (ndr_flags & NDR_SCALARS) {
384 NDR_CHECK(ndr_push_align(ndr, 4));
385 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1_name));
386 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1_password));
387 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri1_password_age));
388 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri1_priv));
389 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1_home_dir));
390 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1_comment));
391 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri1_flags));
392 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1_script_path));
394 if (ndr_flags & NDR_BUFFERS) {
396 return NDR_ERR_SUCCESS;
399 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_1(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_1 *r)
401 if (ndr_flags & NDR_SCALARS) {
402 NDR_CHECK(ndr_pull_align(ndr, 4));
403 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1_name));
404 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1_password));
405 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri1_password_age));
406 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri1_priv));
407 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1_home_dir));
408 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1_comment));
409 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri1_flags));
410 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1_script_path));
412 if (ndr_flags & NDR_BUFFERS) {
414 return NDR_ERR_SUCCESS;
417 _PUBLIC_ void ndr_print_USER_INFO_1(struct ndr_print *ndr, const char *name, const struct USER_INFO_1 *r)
419 ndr_print_struct(ndr, name, "USER_INFO_1");
420 ndr->depth++;
421 ndr_print_string(ndr, "usri1_name", r->usri1_name);
422 ndr_print_string(ndr, "usri1_password", r->usri1_password);
423 ndr_print_uint32(ndr, "usri1_password_age", r->usri1_password_age);
424 ndr_print_uint32(ndr, "usri1_priv", r->usri1_priv);
425 ndr_print_string(ndr, "usri1_home_dir", r->usri1_home_dir);
426 ndr_print_string(ndr, "usri1_comment", r->usri1_comment);
427 ndr_print_uint32(ndr, "usri1_flags", r->usri1_flags);
428 ndr_print_string(ndr, "usri1_script_path", r->usri1_script_path);
429 ndr->depth--;
432 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_2(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_2 *r)
434 if (ndr_flags & NDR_SCALARS) {
435 NDR_CHECK(ndr_push_align(ndr, 4));
436 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri2_name));
437 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri2_password));
438 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri2_password_age));
439 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri2_priv));
440 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri2_home_dir));
441 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri2_comment));
442 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri2_flags));
443 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri2_script_path));
444 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri2_auth_flags));
445 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri2_full_name));
446 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri2_usr_comment));
447 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri2_parms));
448 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri2_workstations));
449 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri2_last_logon));
450 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri2_last_logoff));
451 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri2_acct_expires));
452 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri2_max_storage));
453 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri2_units_per_week));
454 NDR_CHECK(ndr_push_unique_ptr(ndr, r->usri2_logon_hours));
455 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri2_bad_pw_count));
456 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri2_num_logons));
457 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri2_logon_server));
458 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri2_country_code));
459 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri2_code_page));
461 if (ndr_flags & NDR_BUFFERS) {
462 if (r->usri2_logon_hours) {
463 NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, *r->usri2_logon_hours));
466 return NDR_ERR_SUCCESS;
469 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_2(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_2 *r)
471 uint32_t _ptr_usri2_logon_hours;
472 TALLOC_CTX *_mem_save_usri2_logon_hours_0;
473 if (ndr_flags & NDR_SCALARS) {
474 NDR_CHECK(ndr_pull_align(ndr, 4));
475 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri2_name));
476 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri2_password));
477 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri2_password_age));
478 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri2_priv));
479 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri2_home_dir));
480 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri2_comment));
481 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri2_flags));
482 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri2_script_path));
483 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri2_auth_flags));
484 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri2_full_name));
485 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri2_usr_comment));
486 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri2_parms));
487 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri2_workstations));
488 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri2_last_logon));
489 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri2_last_logoff));
490 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri2_acct_expires));
491 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri2_max_storage));
492 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri2_units_per_week));
493 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_usri2_logon_hours));
494 if (_ptr_usri2_logon_hours) {
495 NDR_PULL_ALLOC(ndr, r->usri2_logon_hours);
496 } else {
497 r->usri2_logon_hours = NULL;
499 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri2_bad_pw_count));
500 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri2_num_logons));
501 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri2_logon_server));
502 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri2_country_code));
503 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri2_code_page));
505 if (ndr_flags & NDR_BUFFERS) {
506 if (r->usri2_logon_hours) {
507 _mem_save_usri2_logon_hours_0 = NDR_PULL_GET_MEM_CTX(ndr);
508 NDR_PULL_SET_MEM_CTX(ndr, r->usri2_logon_hours, 0);
509 NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, r->usri2_logon_hours));
510 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_usri2_logon_hours_0, 0);
513 return NDR_ERR_SUCCESS;
516 _PUBLIC_ void ndr_print_USER_INFO_2(struct ndr_print *ndr, const char *name, const struct USER_INFO_2 *r)
518 ndr_print_struct(ndr, name, "USER_INFO_2");
519 ndr->depth++;
520 ndr_print_string(ndr, "usri2_name", r->usri2_name);
521 ndr_print_string(ndr, "usri2_password", r->usri2_password);
522 ndr_print_uint32(ndr, "usri2_password_age", r->usri2_password_age);
523 ndr_print_uint32(ndr, "usri2_priv", r->usri2_priv);
524 ndr_print_string(ndr, "usri2_home_dir", r->usri2_home_dir);
525 ndr_print_string(ndr, "usri2_comment", r->usri2_comment);
526 ndr_print_uint32(ndr, "usri2_flags", r->usri2_flags);
527 ndr_print_string(ndr, "usri2_script_path", r->usri2_script_path);
528 ndr_print_uint32(ndr, "usri2_auth_flags", r->usri2_auth_flags);
529 ndr_print_string(ndr, "usri2_full_name", r->usri2_full_name);
530 ndr_print_string(ndr, "usri2_usr_comment", r->usri2_usr_comment);
531 ndr_print_string(ndr, "usri2_parms", r->usri2_parms);
532 ndr_print_string(ndr, "usri2_workstations", r->usri2_workstations);
533 ndr_print_uint32(ndr, "usri2_last_logon", r->usri2_last_logon);
534 ndr_print_uint32(ndr, "usri2_last_logoff", r->usri2_last_logoff);
535 ndr_print_uint32(ndr, "usri2_acct_expires", r->usri2_acct_expires);
536 ndr_print_uint32(ndr, "usri2_max_storage", r->usri2_max_storage);
537 ndr_print_uint32(ndr, "usri2_units_per_week", r->usri2_units_per_week);
538 ndr_print_ptr(ndr, "usri2_logon_hours", r->usri2_logon_hours);
539 ndr->depth++;
540 if (r->usri2_logon_hours) {
541 ndr_print_uint8(ndr, "usri2_logon_hours", *r->usri2_logon_hours);
543 ndr->depth--;
544 ndr_print_uint32(ndr, "usri2_bad_pw_count", r->usri2_bad_pw_count);
545 ndr_print_uint32(ndr, "usri2_num_logons", r->usri2_num_logons);
546 ndr_print_string(ndr, "usri2_logon_server", r->usri2_logon_server);
547 ndr_print_uint32(ndr, "usri2_country_code", r->usri2_country_code);
548 ndr_print_uint32(ndr, "usri2_code_page", r->usri2_code_page);
549 ndr->depth--;
552 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_3(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_3 *r)
554 if (ndr_flags & NDR_SCALARS) {
555 NDR_CHECK(ndr_push_align(ndr, 4));
556 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri3_name));
557 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri3_password_age));
558 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri3_priv));
559 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri3_home_dir));
560 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri3_comment));
561 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri3_flags));
562 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri3_script_path));
563 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri3_auth_flags));
564 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri3_full_name));
565 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri3_usr_comment));
566 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri3_parms));
567 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri3_workstations));
568 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri3_last_logon));
569 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri3_last_logoff));
570 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri3_acct_expires));
571 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri3_max_storage));
572 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri3_units_per_week));
573 NDR_CHECK(ndr_push_unique_ptr(ndr, r->usri3_logon_hours));
574 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri3_bad_pw_count));
575 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri3_num_logons));
576 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri3_logon_server));
577 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri3_country_code));
578 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri3_code_page));
579 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri3_user_id));
580 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri3_primary_group_id));
581 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri3_profile));
582 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri3_home_dir_drive));
583 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri3_password_expired));
585 if (ndr_flags & NDR_BUFFERS) {
586 if (r->usri3_logon_hours) {
587 NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, *r->usri3_logon_hours));
590 return NDR_ERR_SUCCESS;
593 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_3(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_3 *r)
595 uint32_t _ptr_usri3_logon_hours;
596 TALLOC_CTX *_mem_save_usri3_logon_hours_0;
597 if (ndr_flags & NDR_SCALARS) {
598 NDR_CHECK(ndr_pull_align(ndr, 4));
599 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri3_name));
600 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri3_password_age));
601 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri3_priv));
602 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri3_home_dir));
603 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri3_comment));
604 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri3_flags));
605 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri3_script_path));
606 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri3_auth_flags));
607 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri3_full_name));
608 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri3_usr_comment));
609 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri3_parms));
610 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri3_workstations));
611 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri3_last_logon));
612 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri3_last_logoff));
613 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri3_acct_expires));
614 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri3_max_storage));
615 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri3_units_per_week));
616 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_usri3_logon_hours));
617 if (_ptr_usri3_logon_hours) {
618 NDR_PULL_ALLOC(ndr, r->usri3_logon_hours);
619 } else {
620 r->usri3_logon_hours = NULL;
622 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri3_bad_pw_count));
623 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri3_num_logons));
624 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri3_logon_server));
625 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri3_country_code));
626 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri3_code_page));
627 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri3_user_id));
628 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri3_primary_group_id));
629 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri3_profile));
630 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri3_home_dir_drive));
631 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri3_password_expired));
633 if (ndr_flags & NDR_BUFFERS) {
634 if (r->usri3_logon_hours) {
635 _mem_save_usri3_logon_hours_0 = NDR_PULL_GET_MEM_CTX(ndr);
636 NDR_PULL_SET_MEM_CTX(ndr, r->usri3_logon_hours, 0);
637 NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, r->usri3_logon_hours));
638 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_usri3_logon_hours_0, 0);
641 return NDR_ERR_SUCCESS;
644 _PUBLIC_ void ndr_print_USER_INFO_3(struct ndr_print *ndr, const char *name, const struct USER_INFO_3 *r)
646 ndr_print_struct(ndr, name, "USER_INFO_3");
647 ndr->depth++;
648 ndr_print_string(ndr, "usri3_name", r->usri3_name);
649 ndr_print_uint32(ndr, "usri3_password_age", r->usri3_password_age);
650 ndr_print_uint32(ndr, "usri3_priv", r->usri3_priv);
651 ndr_print_string(ndr, "usri3_home_dir", r->usri3_home_dir);
652 ndr_print_string(ndr, "usri3_comment", r->usri3_comment);
653 ndr_print_uint32(ndr, "usri3_flags", r->usri3_flags);
654 ndr_print_string(ndr, "usri3_script_path", r->usri3_script_path);
655 ndr_print_uint32(ndr, "usri3_auth_flags", r->usri3_auth_flags);
656 ndr_print_string(ndr, "usri3_full_name", r->usri3_full_name);
657 ndr_print_string(ndr, "usri3_usr_comment", r->usri3_usr_comment);
658 ndr_print_string(ndr, "usri3_parms", r->usri3_parms);
659 ndr_print_string(ndr, "usri3_workstations", r->usri3_workstations);
660 ndr_print_uint32(ndr, "usri3_last_logon", r->usri3_last_logon);
661 ndr_print_uint32(ndr, "usri3_last_logoff", r->usri3_last_logoff);
662 ndr_print_uint32(ndr, "usri3_acct_expires", r->usri3_acct_expires);
663 ndr_print_uint32(ndr, "usri3_max_storage", r->usri3_max_storage);
664 ndr_print_uint32(ndr, "usri3_units_per_week", r->usri3_units_per_week);
665 ndr_print_ptr(ndr, "usri3_logon_hours", r->usri3_logon_hours);
666 ndr->depth++;
667 if (r->usri3_logon_hours) {
668 ndr_print_uint8(ndr, "usri3_logon_hours", *r->usri3_logon_hours);
670 ndr->depth--;
671 ndr_print_uint32(ndr, "usri3_bad_pw_count", r->usri3_bad_pw_count);
672 ndr_print_uint32(ndr, "usri3_num_logons", r->usri3_num_logons);
673 ndr_print_string(ndr, "usri3_logon_server", r->usri3_logon_server);
674 ndr_print_uint32(ndr, "usri3_country_code", r->usri3_country_code);
675 ndr_print_uint32(ndr, "usri3_code_page", r->usri3_code_page);
676 ndr_print_uint32(ndr, "usri3_user_id", r->usri3_user_id);
677 ndr_print_uint32(ndr, "usri3_primary_group_id", r->usri3_primary_group_id);
678 ndr_print_string(ndr, "usri3_profile", r->usri3_profile);
679 ndr_print_string(ndr, "usri3_home_dir_drive", r->usri3_home_dir_drive);
680 ndr_print_uint32(ndr, "usri3_password_expired", r->usri3_password_expired);
681 ndr->depth--;
684 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_4(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_4 *r)
686 if (ndr_flags & NDR_SCALARS) {
687 NDR_CHECK(ndr_push_align(ndr, 4));
688 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri4_name));
689 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri4_password));
690 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri4_password_age));
691 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri4_priv));
692 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri4_home_dir));
693 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri4_comment));
694 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri4_flags));
695 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri4_script_path));
696 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri4_auth_flags));
697 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri4_full_name));
698 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri4_usr_comment));
699 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri4_parms));
700 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri4_workstations));
701 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri4_last_logon));
702 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri4_last_logoff));
703 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri4_acct_expires));
704 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri4_max_storage));
705 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri4_units_per_week));
706 NDR_CHECK(ndr_push_unique_ptr(ndr, r->usri4_logon_hours));
707 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri4_bad_pw_count));
708 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri4_num_logons));
709 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri4_logon_server));
710 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri4_country_code));
711 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri4_code_page));
712 NDR_CHECK(ndr_push_unique_ptr(ndr, r->usri4_user_sid));
713 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri4_primary_group_id));
714 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri4_profile));
715 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri4_home_dir_drive));
716 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri4_password_expired));
718 if (ndr_flags & NDR_BUFFERS) {
719 if (r->usri4_logon_hours) {
720 NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, *r->usri4_logon_hours));
722 if (r->usri4_user_sid) {
723 NDR_CHECK(ndr_push_domsid(ndr, NDR_SCALARS, r->usri4_user_sid));
726 return NDR_ERR_SUCCESS;
729 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_4(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_4 *r)
731 uint32_t _ptr_usri4_logon_hours;
732 TALLOC_CTX *_mem_save_usri4_logon_hours_0;
733 uint32_t _ptr_usri4_user_sid;
734 TALLOC_CTX *_mem_save_usri4_user_sid_0;
735 if (ndr_flags & NDR_SCALARS) {
736 NDR_CHECK(ndr_pull_align(ndr, 4));
737 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri4_name));
738 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri4_password));
739 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri4_password_age));
740 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri4_priv));
741 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri4_home_dir));
742 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri4_comment));
743 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri4_flags));
744 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri4_script_path));
745 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri4_auth_flags));
746 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri4_full_name));
747 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri4_usr_comment));
748 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri4_parms));
749 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri4_workstations));
750 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri4_last_logon));
751 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri4_last_logoff));
752 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri4_acct_expires));
753 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri4_max_storage));
754 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri4_units_per_week));
755 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_usri4_logon_hours));
756 if (_ptr_usri4_logon_hours) {
757 NDR_PULL_ALLOC(ndr, r->usri4_logon_hours);
758 } else {
759 r->usri4_logon_hours = NULL;
761 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri4_bad_pw_count));
762 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri4_num_logons));
763 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri4_logon_server));
764 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri4_country_code));
765 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri4_code_page));
766 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_usri4_user_sid));
767 if (_ptr_usri4_user_sid) {
768 NDR_PULL_ALLOC(ndr, r->usri4_user_sid);
769 } else {
770 r->usri4_user_sid = NULL;
772 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri4_primary_group_id));
773 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri4_profile));
774 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri4_home_dir_drive));
775 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri4_password_expired));
777 if (ndr_flags & NDR_BUFFERS) {
778 if (r->usri4_logon_hours) {
779 _mem_save_usri4_logon_hours_0 = NDR_PULL_GET_MEM_CTX(ndr);
780 NDR_PULL_SET_MEM_CTX(ndr, r->usri4_logon_hours, 0);
781 NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, r->usri4_logon_hours));
782 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_usri4_logon_hours_0, 0);
784 if (r->usri4_user_sid) {
785 _mem_save_usri4_user_sid_0 = NDR_PULL_GET_MEM_CTX(ndr);
786 NDR_PULL_SET_MEM_CTX(ndr, r->usri4_user_sid, 0);
787 NDR_CHECK(ndr_pull_domsid(ndr, NDR_SCALARS, r->usri4_user_sid));
788 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_usri4_user_sid_0, 0);
791 return NDR_ERR_SUCCESS;
794 _PUBLIC_ void ndr_print_USER_INFO_4(struct ndr_print *ndr, const char *name, const struct USER_INFO_4 *r)
796 ndr_print_struct(ndr, name, "USER_INFO_4");
797 ndr->depth++;
798 ndr_print_string(ndr, "usri4_name", r->usri4_name);
799 ndr_print_string(ndr, "usri4_password", r->usri4_password);
800 ndr_print_uint32(ndr, "usri4_password_age", r->usri4_password_age);
801 ndr_print_uint32(ndr, "usri4_priv", r->usri4_priv);
802 ndr_print_string(ndr, "usri4_home_dir", r->usri4_home_dir);
803 ndr_print_string(ndr, "usri4_comment", r->usri4_comment);
804 ndr_print_uint32(ndr, "usri4_flags", r->usri4_flags);
805 ndr_print_string(ndr, "usri4_script_path", r->usri4_script_path);
806 ndr_print_uint32(ndr, "usri4_auth_flags", r->usri4_auth_flags);
807 ndr_print_string(ndr, "usri4_full_name", r->usri4_full_name);
808 ndr_print_string(ndr, "usri4_usr_comment", r->usri4_usr_comment);
809 ndr_print_string(ndr, "usri4_parms", r->usri4_parms);
810 ndr_print_string(ndr, "usri4_workstations", r->usri4_workstations);
811 ndr_print_uint32(ndr, "usri4_last_logon", r->usri4_last_logon);
812 ndr_print_uint32(ndr, "usri4_last_logoff", r->usri4_last_logoff);
813 ndr_print_uint32(ndr, "usri4_acct_expires", r->usri4_acct_expires);
814 ndr_print_uint32(ndr, "usri4_max_storage", r->usri4_max_storage);
815 ndr_print_uint32(ndr, "usri4_units_per_week", r->usri4_units_per_week);
816 ndr_print_ptr(ndr, "usri4_logon_hours", r->usri4_logon_hours);
817 ndr->depth++;
818 if (r->usri4_logon_hours) {
819 ndr_print_uint8(ndr, "usri4_logon_hours", *r->usri4_logon_hours);
821 ndr->depth--;
822 ndr_print_uint32(ndr, "usri4_bad_pw_count", r->usri4_bad_pw_count);
823 ndr_print_uint32(ndr, "usri4_num_logons", r->usri4_num_logons);
824 ndr_print_string(ndr, "usri4_logon_server", r->usri4_logon_server);
825 ndr_print_uint32(ndr, "usri4_country_code", r->usri4_country_code);
826 ndr_print_uint32(ndr, "usri4_code_page", r->usri4_code_page);
827 ndr_print_ptr(ndr, "usri4_user_sid", r->usri4_user_sid);
828 ndr->depth++;
829 if (r->usri4_user_sid) {
830 ndr_print_domsid(ndr, "usri4_user_sid", r->usri4_user_sid);
832 ndr->depth--;
833 ndr_print_uint32(ndr, "usri4_primary_group_id", r->usri4_primary_group_id);
834 ndr_print_string(ndr, "usri4_profile", r->usri4_profile);
835 ndr_print_string(ndr, "usri4_home_dir_drive", r->usri4_home_dir_drive);
836 ndr_print_uint32(ndr, "usri4_password_expired", r->usri4_password_expired);
837 ndr->depth--;
840 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_10(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_10 *r)
842 if (ndr_flags & NDR_SCALARS) {
843 NDR_CHECK(ndr_push_align(ndr, 4));
844 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri10_name));
845 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri10_comment));
846 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri10_usr_comment));
847 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri10_full_name));
849 if (ndr_flags & NDR_BUFFERS) {
851 return NDR_ERR_SUCCESS;
854 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_10(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_10 *r)
856 if (ndr_flags & NDR_SCALARS) {
857 NDR_CHECK(ndr_pull_align(ndr, 4));
858 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri10_name));
859 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri10_comment));
860 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri10_usr_comment));
861 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri10_full_name));
863 if (ndr_flags & NDR_BUFFERS) {
865 return NDR_ERR_SUCCESS;
868 _PUBLIC_ void ndr_print_USER_INFO_10(struct ndr_print *ndr, const char *name, const struct USER_INFO_10 *r)
870 ndr_print_struct(ndr, name, "USER_INFO_10");
871 ndr->depth++;
872 ndr_print_string(ndr, "usri10_name", r->usri10_name);
873 ndr_print_string(ndr, "usri10_comment", r->usri10_comment);
874 ndr_print_string(ndr, "usri10_usr_comment", r->usri10_usr_comment);
875 ndr_print_string(ndr, "usri10_full_name", r->usri10_full_name);
876 ndr->depth--;
879 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_11(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_11 *r)
881 if (ndr_flags & NDR_SCALARS) {
882 NDR_CHECK(ndr_push_align(ndr, 4));
883 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri11_name));
884 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri11_comment));
885 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri11_usr_comment));
886 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri11_full_name));
887 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri11_priv));
888 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri11_auth_flags));
889 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri11_password_age));
890 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri11_home_dir));
891 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri11_parms));
892 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri11_last_logon));
893 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri11_last_logoff));
894 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri11_bad_pw_count));
895 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri11_num_logons));
896 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri11_logon_server));
897 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri11_country_code));
898 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri11_workstations));
899 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri11_max_storage));
900 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri11_units_per_week));
901 NDR_CHECK(ndr_push_unique_ptr(ndr, r->usri11_logon_hours));
902 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri11_code_page));
904 if (ndr_flags & NDR_BUFFERS) {
905 if (r->usri11_logon_hours) {
906 NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, *r->usri11_logon_hours));
909 return NDR_ERR_SUCCESS;
912 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_11(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_11 *r)
914 uint32_t _ptr_usri11_logon_hours;
915 TALLOC_CTX *_mem_save_usri11_logon_hours_0;
916 if (ndr_flags & NDR_SCALARS) {
917 NDR_CHECK(ndr_pull_align(ndr, 4));
918 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri11_name));
919 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri11_comment));
920 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri11_usr_comment));
921 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri11_full_name));
922 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri11_priv));
923 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri11_auth_flags));
924 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri11_password_age));
925 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri11_home_dir));
926 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri11_parms));
927 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri11_last_logon));
928 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri11_last_logoff));
929 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri11_bad_pw_count));
930 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri11_num_logons));
931 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri11_logon_server));
932 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri11_country_code));
933 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri11_workstations));
934 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri11_max_storage));
935 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri11_units_per_week));
936 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_usri11_logon_hours));
937 if (_ptr_usri11_logon_hours) {
938 NDR_PULL_ALLOC(ndr, r->usri11_logon_hours);
939 } else {
940 r->usri11_logon_hours = NULL;
942 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri11_code_page));
944 if (ndr_flags & NDR_BUFFERS) {
945 if (r->usri11_logon_hours) {
946 _mem_save_usri11_logon_hours_0 = NDR_PULL_GET_MEM_CTX(ndr);
947 NDR_PULL_SET_MEM_CTX(ndr, r->usri11_logon_hours, 0);
948 NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, r->usri11_logon_hours));
949 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_usri11_logon_hours_0, 0);
952 return NDR_ERR_SUCCESS;
955 _PUBLIC_ void ndr_print_USER_INFO_11(struct ndr_print *ndr, const char *name, const struct USER_INFO_11 *r)
957 ndr_print_struct(ndr, name, "USER_INFO_11");
958 ndr->depth++;
959 ndr_print_string(ndr, "usri11_name", r->usri11_name);
960 ndr_print_string(ndr, "usri11_comment", r->usri11_comment);
961 ndr_print_string(ndr, "usri11_usr_comment", r->usri11_usr_comment);
962 ndr_print_string(ndr, "usri11_full_name", r->usri11_full_name);
963 ndr_print_uint32(ndr, "usri11_priv", r->usri11_priv);
964 ndr_print_uint32(ndr, "usri11_auth_flags", r->usri11_auth_flags);
965 ndr_print_uint32(ndr, "usri11_password_age", r->usri11_password_age);
966 ndr_print_string(ndr, "usri11_home_dir", r->usri11_home_dir);
967 ndr_print_string(ndr, "usri11_parms", r->usri11_parms);
968 ndr_print_uint32(ndr, "usri11_last_logon", r->usri11_last_logon);
969 ndr_print_uint32(ndr, "usri11_last_logoff", r->usri11_last_logoff);
970 ndr_print_uint32(ndr, "usri11_bad_pw_count", r->usri11_bad_pw_count);
971 ndr_print_uint32(ndr, "usri11_num_logons", r->usri11_num_logons);
972 ndr_print_string(ndr, "usri11_logon_server", r->usri11_logon_server);
973 ndr_print_uint32(ndr, "usri11_country_code", r->usri11_country_code);
974 ndr_print_string(ndr, "usri11_workstations", r->usri11_workstations);
975 ndr_print_uint32(ndr, "usri11_max_storage", r->usri11_max_storage);
976 ndr_print_uint32(ndr, "usri11_units_per_week", r->usri11_units_per_week);
977 ndr_print_ptr(ndr, "usri11_logon_hours", r->usri11_logon_hours);
978 ndr->depth++;
979 if (r->usri11_logon_hours) {
980 ndr_print_uint8(ndr, "usri11_logon_hours", *r->usri11_logon_hours);
982 ndr->depth--;
983 ndr_print_uint32(ndr, "usri11_code_page", r->usri11_code_page);
984 ndr->depth--;
987 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_20(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_20 *r)
989 if (ndr_flags & NDR_SCALARS) {
990 NDR_CHECK(ndr_push_align(ndr, 4));
991 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri20_name));
992 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri20_full_name));
993 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri20_comment));
994 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri20_flags));
995 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri20_user_id));
997 if (ndr_flags & NDR_BUFFERS) {
999 return NDR_ERR_SUCCESS;
1002 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_20(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_20 *r)
1004 if (ndr_flags & NDR_SCALARS) {
1005 NDR_CHECK(ndr_pull_align(ndr, 4));
1006 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri20_name));
1007 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri20_full_name));
1008 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri20_comment));
1009 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri20_flags));
1010 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri20_user_id));
1012 if (ndr_flags & NDR_BUFFERS) {
1014 return NDR_ERR_SUCCESS;
1017 _PUBLIC_ void ndr_print_USER_INFO_20(struct ndr_print *ndr, const char *name, const struct USER_INFO_20 *r)
1019 ndr_print_struct(ndr, name, "USER_INFO_20");
1020 ndr->depth++;
1021 ndr_print_string(ndr, "usri20_name", r->usri20_name);
1022 ndr_print_string(ndr, "usri20_full_name", r->usri20_full_name);
1023 ndr_print_string(ndr, "usri20_comment", r->usri20_comment);
1024 ndr_print_uint32(ndr, "usri20_flags", r->usri20_flags);
1025 ndr_print_uint32(ndr, "usri20_user_id", r->usri20_user_id);
1026 ndr->depth--;
1029 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_21(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_21 *r)
1031 if (ndr_flags & NDR_SCALARS) {
1032 NDR_CHECK(ndr_push_align(ndr, 1));
1033 NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->usri21_password, ENCRYPTED_PWLEN));
1035 if (ndr_flags & NDR_BUFFERS) {
1037 return NDR_ERR_SUCCESS;
1040 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_21(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_21 *r)
1042 if (ndr_flags & NDR_SCALARS) {
1043 NDR_CHECK(ndr_pull_align(ndr, 1));
1044 NDR_PULL_ALLOC_N(ndr, r->usri21_password, ENCRYPTED_PWLEN);
1045 NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->usri21_password, ENCRYPTED_PWLEN));
1047 if (ndr_flags & NDR_BUFFERS) {
1049 return NDR_ERR_SUCCESS;
1052 _PUBLIC_ void ndr_print_USER_INFO_21(struct ndr_print *ndr, const char *name, const struct USER_INFO_21 *r)
1054 ndr_print_struct(ndr, name, "USER_INFO_21");
1055 ndr->depth++;
1056 ndr_print_array_uint8(ndr, "usri21_password", r->usri21_password, ENCRYPTED_PWLEN);
1057 ndr->depth--;
1060 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_22(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_22 *r)
1062 if (ndr_flags & NDR_SCALARS) {
1063 NDR_CHECK(ndr_push_align(ndr, 4));
1064 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri22_name));
1065 NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->usri22_password, ENCRYPTED_PWLEN));
1066 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri22_password_age));
1067 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri22_priv));
1068 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri22_home_dir));
1069 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri22_comment));
1070 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri22_flags));
1071 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri22_script_path));
1072 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri22_auth_flags));
1073 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri22_full_name));
1074 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri22_usr_comment));
1075 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri22_parms));
1076 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri22_workstations));
1077 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri22_last_logon));
1078 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri22_last_logoff));
1079 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri22_acct_expires));
1080 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri22_max_storage));
1081 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri22_units_per_week));
1082 NDR_CHECK(ndr_push_unique_ptr(ndr, r->usri22_logon_hours));
1083 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri22_bad_pw_count));
1084 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri22_num_logons));
1085 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri22_logon_server));
1086 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri22_country_code));
1087 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri22_code_page));
1089 if (ndr_flags & NDR_BUFFERS) {
1090 if (r->usri22_logon_hours) {
1091 NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, *r->usri22_logon_hours));
1094 return NDR_ERR_SUCCESS;
1097 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_22(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_22 *r)
1099 uint32_t _ptr_usri22_logon_hours;
1100 TALLOC_CTX *_mem_save_usri22_logon_hours_0;
1101 if (ndr_flags & NDR_SCALARS) {
1102 NDR_CHECK(ndr_pull_align(ndr, 4));
1103 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri22_name));
1104 NDR_PULL_ALLOC_N(ndr, r->usri22_password, ENCRYPTED_PWLEN);
1105 NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->usri22_password, ENCRYPTED_PWLEN));
1106 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri22_password_age));
1107 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri22_priv));
1108 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri22_home_dir));
1109 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri22_comment));
1110 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri22_flags));
1111 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri22_script_path));
1112 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri22_auth_flags));
1113 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri22_full_name));
1114 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri22_usr_comment));
1115 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri22_parms));
1116 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri22_workstations));
1117 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri22_last_logon));
1118 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri22_last_logoff));
1119 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri22_acct_expires));
1120 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri22_max_storage));
1121 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri22_units_per_week));
1122 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_usri22_logon_hours));
1123 if (_ptr_usri22_logon_hours) {
1124 NDR_PULL_ALLOC(ndr, r->usri22_logon_hours);
1125 } else {
1126 r->usri22_logon_hours = NULL;
1128 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri22_bad_pw_count));
1129 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri22_num_logons));
1130 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri22_logon_server));
1131 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri22_country_code));
1132 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri22_code_page));
1134 if (ndr_flags & NDR_BUFFERS) {
1135 if (r->usri22_logon_hours) {
1136 _mem_save_usri22_logon_hours_0 = NDR_PULL_GET_MEM_CTX(ndr);
1137 NDR_PULL_SET_MEM_CTX(ndr, r->usri22_logon_hours, 0);
1138 NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, r->usri22_logon_hours));
1139 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_usri22_logon_hours_0, 0);
1142 return NDR_ERR_SUCCESS;
1145 _PUBLIC_ void ndr_print_USER_INFO_22(struct ndr_print *ndr, const char *name, const struct USER_INFO_22 *r)
1147 ndr_print_struct(ndr, name, "USER_INFO_22");
1148 ndr->depth++;
1149 ndr_print_string(ndr, "usri22_name", r->usri22_name);
1150 ndr_print_array_uint8(ndr, "usri22_password", r->usri22_password, ENCRYPTED_PWLEN);
1151 ndr_print_uint32(ndr, "usri22_password_age", r->usri22_password_age);
1152 ndr_print_uint32(ndr, "usri22_priv", r->usri22_priv);
1153 ndr_print_string(ndr, "usri22_home_dir", r->usri22_home_dir);
1154 ndr_print_string(ndr, "usri22_comment", r->usri22_comment);
1155 ndr_print_uint32(ndr, "usri22_flags", r->usri22_flags);
1156 ndr_print_uint32(ndr, "usri22_script_path", r->usri22_script_path);
1157 ndr_print_uint32(ndr, "usri22_auth_flags", r->usri22_auth_flags);
1158 ndr_print_string(ndr, "usri22_full_name", r->usri22_full_name);
1159 ndr_print_string(ndr, "usri22_usr_comment", r->usri22_usr_comment);
1160 ndr_print_string(ndr, "usri22_parms", r->usri22_parms);
1161 ndr_print_string(ndr, "usri22_workstations", r->usri22_workstations);
1162 ndr_print_uint32(ndr, "usri22_last_logon", r->usri22_last_logon);
1163 ndr_print_uint32(ndr, "usri22_last_logoff", r->usri22_last_logoff);
1164 ndr_print_uint32(ndr, "usri22_acct_expires", r->usri22_acct_expires);
1165 ndr_print_uint32(ndr, "usri22_max_storage", r->usri22_max_storage);
1166 ndr_print_uint32(ndr, "usri22_units_per_week", r->usri22_units_per_week);
1167 ndr_print_ptr(ndr, "usri22_logon_hours", r->usri22_logon_hours);
1168 ndr->depth++;
1169 if (r->usri22_logon_hours) {
1170 ndr_print_uint8(ndr, "usri22_logon_hours", *r->usri22_logon_hours);
1172 ndr->depth--;
1173 ndr_print_uint32(ndr, "usri22_bad_pw_count", r->usri22_bad_pw_count);
1174 ndr_print_uint32(ndr, "usri22_num_logons", r->usri22_num_logons);
1175 ndr_print_string(ndr, "usri22_logon_server", r->usri22_logon_server);
1176 ndr_print_uint32(ndr, "usri22_country_code", r->usri22_country_code);
1177 ndr_print_uint32(ndr, "usri22_code_page", r->usri22_code_page);
1178 ndr->depth--;
1181 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_23(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_23 *r)
1183 if (ndr_flags & NDR_SCALARS) {
1184 NDR_CHECK(ndr_push_align(ndr, 4));
1185 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri23_name));
1186 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri23_full_name));
1187 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri23_comment));
1188 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri23_flags));
1189 NDR_CHECK(ndr_push_unique_ptr(ndr, r->usri23_user_sid));
1191 if (ndr_flags & NDR_BUFFERS) {
1192 if (r->usri23_user_sid) {
1193 NDR_CHECK(ndr_push_domsid(ndr, NDR_SCALARS, r->usri23_user_sid));
1196 return NDR_ERR_SUCCESS;
1199 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_23(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_23 *r)
1201 uint32_t _ptr_usri23_user_sid;
1202 TALLOC_CTX *_mem_save_usri23_user_sid_0;
1203 if (ndr_flags & NDR_SCALARS) {
1204 NDR_CHECK(ndr_pull_align(ndr, 4));
1205 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri23_name));
1206 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri23_full_name));
1207 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri23_comment));
1208 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri23_flags));
1209 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_usri23_user_sid));
1210 if (_ptr_usri23_user_sid) {
1211 NDR_PULL_ALLOC(ndr, r->usri23_user_sid);
1212 } else {
1213 r->usri23_user_sid = NULL;
1216 if (ndr_flags & NDR_BUFFERS) {
1217 if (r->usri23_user_sid) {
1218 _mem_save_usri23_user_sid_0 = NDR_PULL_GET_MEM_CTX(ndr);
1219 NDR_PULL_SET_MEM_CTX(ndr, r->usri23_user_sid, 0);
1220 NDR_CHECK(ndr_pull_domsid(ndr, NDR_SCALARS, r->usri23_user_sid));
1221 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_usri23_user_sid_0, 0);
1224 return NDR_ERR_SUCCESS;
1227 _PUBLIC_ void ndr_print_USER_INFO_23(struct ndr_print *ndr, const char *name, const struct USER_INFO_23 *r)
1229 ndr_print_struct(ndr, name, "USER_INFO_23");
1230 ndr->depth++;
1231 ndr_print_string(ndr, "usri23_name", r->usri23_name);
1232 ndr_print_string(ndr, "usri23_full_name", r->usri23_full_name);
1233 ndr_print_string(ndr, "usri23_comment", r->usri23_comment);
1234 ndr_print_uint32(ndr, "usri23_flags", r->usri23_flags);
1235 ndr_print_ptr(ndr, "usri23_user_sid", r->usri23_user_sid);
1236 ndr->depth++;
1237 if (r->usri23_user_sid) {
1238 ndr_print_domsid(ndr, "usri23_user_sid", r->usri23_user_sid);
1240 ndr->depth--;
1241 ndr->depth--;
1244 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_1003(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_1003 *r)
1246 if (ndr_flags & NDR_SCALARS) {
1247 NDR_CHECK(ndr_push_align(ndr, 4));
1248 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1003_password));
1250 if (ndr_flags & NDR_BUFFERS) {
1252 return NDR_ERR_SUCCESS;
1255 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_1003(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_1003 *r)
1257 if (ndr_flags & NDR_SCALARS) {
1258 NDR_CHECK(ndr_pull_align(ndr, 4));
1259 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1003_password));
1261 if (ndr_flags & NDR_BUFFERS) {
1263 return NDR_ERR_SUCCESS;
1266 _PUBLIC_ void ndr_print_USER_INFO_1003(struct ndr_print *ndr, const char *name, const struct USER_INFO_1003 *r)
1268 ndr_print_struct(ndr, name, "USER_INFO_1003");
1269 ndr->depth++;
1270 ndr_print_string(ndr, "usri1003_password", r->usri1003_password);
1271 ndr->depth--;
1274 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_1005(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_1005 *r)
1276 if (ndr_flags & NDR_SCALARS) {
1277 NDR_CHECK(ndr_push_align(ndr, 4));
1278 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri1005_priv));
1280 if (ndr_flags & NDR_BUFFERS) {
1282 return NDR_ERR_SUCCESS;
1285 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_1005(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_1005 *r)
1287 if (ndr_flags & NDR_SCALARS) {
1288 NDR_CHECK(ndr_pull_align(ndr, 4));
1289 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri1005_priv));
1291 if (ndr_flags & NDR_BUFFERS) {
1293 return NDR_ERR_SUCCESS;
1296 _PUBLIC_ void ndr_print_USER_INFO_1005(struct ndr_print *ndr, const char *name, const struct USER_INFO_1005 *r)
1298 ndr_print_struct(ndr, name, "USER_INFO_1005");
1299 ndr->depth++;
1300 ndr_print_uint32(ndr, "usri1005_priv", r->usri1005_priv);
1301 ndr->depth--;
1304 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_1006(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_1006 *r)
1306 if (ndr_flags & NDR_SCALARS) {
1307 NDR_CHECK(ndr_push_align(ndr, 4));
1308 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1006_home_dir));
1310 if (ndr_flags & NDR_BUFFERS) {
1312 return NDR_ERR_SUCCESS;
1315 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_1006(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_1006 *r)
1317 if (ndr_flags & NDR_SCALARS) {
1318 NDR_CHECK(ndr_pull_align(ndr, 4));
1319 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1006_home_dir));
1321 if (ndr_flags & NDR_BUFFERS) {
1323 return NDR_ERR_SUCCESS;
1326 _PUBLIC_ void ndr_print_USER_INFO_1006(struct ndr_print *ndr, const char *name, const struct USER_INFO_1006 *r)
1328 ndr_print_struct(ndr, name, "USER_INFO_1006");
1329 ndr->depth++;
1330 ndr_print_string(ndr, "usri1006_home_dir", r->usri1006_home_dir);
1331 ndr->depth--;
1334 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_1007(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_1007 *r)
1336 if (ndr_flags & NDR_SCALARS) {
1337 NDR_CHECK(ndr_push_align(ndr, 4));
1338 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1007_comment));
1340 if (ndr_flags & NDR_BUFFERS) {
1342 return NDR_ERR_SUCCESS;
1345 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_1007(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_1007 *r)
1347 if (ndr_flags & NDR_SCALARS) {
1348 NDR_CHECK(ndr_pull_align(ndr, 4));
1349 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1007_comment));
1351 if (ndr_flags & NDR_BUFFERS) {
1353 return NDR_ERR_SUCCESS;
1356 _PUBLIC_ void ndr_print_USER_INFO_1007(struct ndr_print *ndr, const char *name, const struct USER_INFO_1007 *r)
1358 ndr_print_struct(ndr, name, "USER_INFO_1007");
1359 ndr->depth++;
1360 ndr_print_string(ndr, "usri1007_comment", r->usri1007_comment);
1361 ndr->depth--;
1364 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_1008(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_1008 *r)
1366 if (ndr_flags & NDR_SCALARS) {
1367 NDR_CHECK(ndr_push_align(ndr, 4));
1368 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri1008_flags));
1370 if (ndr_flags & NDR_BUFFERS) {
1372 return NDR_ERR_SUCCESS;
1375 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_1008(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_1008 *r)
1377 if (ndr_flags & NDR_SCALARS) {
1378 NDR_CHECK(ndr_pull_align(ndr, 4));
1379 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri1008_flags));
1381 if (ndr_flags & NDR_BUFFERS) {
1383 return NDR_ERR_SUCCESS;
1386 _PUBLIC_ void ndr_print_USER_INFO_1008(struct ndr_print *ndr, const char *name, const struct USER_INFO_1008 *r)
1388 ndr_print_struct(ndr, name, "USER_INFO_1008");
1389 ndr->depth++;
1390 ndr_print_uint32(ndr, "usri1008_flags", r->usri1008_flags);
1391 ndr->depth--;
1394 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_1009(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_1009 *r)
1396 if (ndr_flags & NDR_SCALARS) {
1397 NDR_CHECK(ndr_push_align(ndr, 4));
1398 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1009_script_path));
1400 if (ndr_flags & NDR_BUFFERS) {
1402 return NDR_ERR_SUCCESS;
1405 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_1009(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_1009 *r)
1407 if (ndr_flags & NDR_SCALARS) {
1408 NDR_CHECK(ndr_pull_align(ndr, 4));
1409 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1009_script_path));
1411 if (ndr_flags & NDR_BUFFERS) {
1413 return NDR_ERR_SUCCESS;
1416 _PUBLIC_ void ndr_print_USER_INFO_1009(struct ndr_print *ndr, const char *name, const struct USER_INFO_1009 *r)
1418 ndr_print_struct(ndr, name, "USER_INFO_1009");
1419 ndr->depth++;
1420 ndr_print_string(ndr, "usri1009_script_path", r->usri1009_script_path);
1421 ndr->depth--;
1424 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_1010(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_1010 *r)
1426 if (ndr_flags & NDR_SCALARS) {
1427 NDR_CHECK(ndr_push_align(ndr, 4));
1428 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri1010_auth_flags));
1430 if (ndr_flags & NDR_BUFFERS) {
1432 return NDR_ERR_SUCCESS;
1435 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_1010(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_1010 *r)
1437 if (ndr_flags & NDR_SCALARS) {
1438 NDR_CHECK(ndr_pull_align(ndr, 4));
1439 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri1010_auth_flags));
1441 if (ndr_flags & NDR_BUFFERS) {
1443 return NDR_ERR_SUCCESS;
1446 _PUBLIC_ void ndr_print_USER_INFO_1010(struct ndr_print *ndr, const char *name, const struct USER_INFO_1010 *r)
1448 ndr_print_struct(ndr, name, "USER_INFO_1010");
1449 ndr->depth++;
1450 ndr_print_uint32(ndr, "usri1010_auth_flags", r->usri1010_auth_flags);
1451 ndr->depth--;
1454 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_1011(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_1011 *r)
1456 if (ndr_flags & NDR_SCALARS) {
1457 NDR_CHECK(ndr_push_align(ndr, 4));
1458 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1011_full_name));
1460 if (ndr_flags & NDR_BUFFERS) {
1462 return NDR_ERR_SUCCESS;
1465 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_1011(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_1011 *r)
1467 if (ndr_flags & NDR_SCALARS) {
1468 NDR_CHECK(ndr_pull_align(ndr, 4));
1469 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1011_full_name));
1471 if (ndr_flags & NDR_BUFFERS) {
1473 return NDR_ERR_SUCCESS;
1476 _PUBLIC_ void ndr_print_USER_INFO_1011(struct ndr_print *ndr, const char *name, const struct USER_INFO_1011 *r)
1478 ndr_print_struct(ndr, name, "USER_INFO_1011");
1479 ndr->depth++;
1480 ndr_print_string(ndr, "usri1011_full_name", r->usri1011_full_name);
1481 ndr->depth--;
1484 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_1012(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_1012 *r)
1486 if (ndr_flags & NDR_SCALARS) {
1487 NDR_CHECK(ndr_push_align(ndr, 4));
1488 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1012_usr_comment));
1490 if (ndr_flags & NDR_BUFFERS) {
1492 return NDR_ERR_SUCCESS;
1495 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_1012(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_1012 *r)
1497 if (ndr_flags & NDR_SCALARS) {
1498 NDR_CHECK(ndr_pull_align(ndr, 4));
1499 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1012_usr_comment));
1501 if (ndr_flags & NDR_BUFFERS) {
1503 return NDR_ERR_SUCCESS;
1506 _PUBLIC_ void ndr_print_USER_INFO_1012(struct ndr_print *ndr, const char *name, const struct USER_INFO_1012 *r)
1508 ndr_print_struct(ndr, name, "USER_INFO_1012");
1509 ndr->depth++;
1510 ndr_print_string(ndr, "usri1012_usr_comment", r->usri1012_usr_comment);
1511 ndr->depth--;
1514 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_1013(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_1013 *r)
1516 if (ndr_flags & NDR_SCALARS) {
1517 NDR_CHECK(ndr_push_align(ndr, 4));
1518 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1013_parms));
1520 if (ndr_flags & NDR_BUFFERS) {
1522 return NDR_ERR_SUCCESS;
1525 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_1013(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_1013 *r)
1527 if (ndr_flags & NDR_SCALARS) {
1528 NDR_CHECK(ndr_pull_align(ndr, 4));
1529 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1013_parms));
1531 if (ndr_flags & NDR_BUFFERS) {
1533 return NDR_ERR_SUCCESS;
1536 _PUBLIC_ void ndr_print_USER_INFO_1013(struct ndr_print *ndr, const char *name, const struct USER_INFO_1013 *r)
1538 ndr_print_struct(ndr, name, "USER_INFO_1013");
1539 ndr->depth++;
1540 ndr_print_string(ndr, "usri1013_parms", r->usri1013_parms);
1541 ndr->depth--;
1544 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_1014(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_1014 *r)
1546 if (ndr_flags & NDR_SCALARS) {
1547 NDR_CHECK(ndr_push_align(ndr, 4));
1548 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1014_workstations));
1550 if (ndr_flags & NDR_BUFFERS) {
1552 return NDR_ERR_SUCCESS;
1555 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_1014(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_1014 *r)
1557 if (ndr_flags & NDR_SCALARS) {
1558 NDR_CHECK(ndr_pull_align(ndr, 4));
1559 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1014_workstations));
1561 if (ndr_flags & NDR_BUFFERS) {
1563 return NDR_ERR_SUCCESS;
1566 _PUBLIC_ void ndr_print_USER_INFO_1014(struct ndr_print *ndr, const char *name, const struct USER_INFO_1014 *r)
1568 ndr_print_struct(ndr, name, "USER_INFO_1014");
1569 ndr->depth++;
1570 ndr_print_string(ndr, "usri1014_workstations", r->usri1014_workstations);
1571 ndr->depth--;
1574 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_1017(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_1017 *r)
1576 if (ndr_flags & NDR_SCALARS) {
1577 NDR_CHECK(ndr_push_align(ndr, 4));
1578 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri1017_acct_expires));
1580 if (ndr_flags & NDR_BUFFERS) {
1582 return NDR_ERR_SUCCESS;
1585 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_1017(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_1017 *r)
1587 if (ndr_flags & NDR_SCALARS) {
1588 NDR_CHECK(ndr_pull_align(ndr, 4));
1589 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri1017_acct_expires));
1591 if (ndr_flags & NDR_BUFFERS) {
1593 return NDR_ERR_SUCCESS;
1596 _PUBLIC_ void ndr_print_USER_INFO_1017(struct ndr_print *ndr, const char *name, const struct USER_INFO_1017 *r)
1598 ndr_print_struct(ndr, name, "USER_INFO_1017");
1599 ndr->depth++;
1600 ndr_print_uint32(ndr, "usri1017_acct_expires", r->usri1017_acct_expires);
1601 ndr->depth--;
1604 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_1018(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_1018 *r)
1606 if (ndr_flags & NDR_SCALARS) {
1607 NDR_CHECK(ndr_push_align(ndr, 4));
1608 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri1018_max_storage));
1610 if (ndr_flags & NDR_BUFFERS) {
1612 return NDR_ERR_SUCCESS;
1615 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_1018(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_1018 *r)
1617 if (ndr_flags & NDR_SCALARS) {
1618 NDR_CHECK(ndr_pull_align(ndr, 4));
1619 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri1018_max_storage));
1621 if (ndr_flags & NDR_BUFFERS) {
1623 return NDR_ERR_SUCCESS;
1626 _PUBLIC_ void ndr_print_USER_INFO_1018(struct ndr_print *ndr, const char *name, const struct USER_INFO_1018 *r)
1628 ndr_print_struct(ndr, name, "USER_INFO_1018");
1629 ndr->depth++;
1630 ndr_print_uint32(ndr, "usri1018_max_storage", r->usri1018_max_storage);
1631 ndr->depth--;
1634 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_1020(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_1020 *r)
1636 if (ndr_flags & NDR_SCALARS) {
1637 NDR_CHECK(ndr_push_align(ndr, 4));
1638 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri1020_units_per_week));
1639 NDR_CHECK(ndr_push_unique_ptr(ndr, r->usri1020_logon_hours));
1641 if (ndr_flags & NDR_BUFFERS) {
1642 if (r->usri1020_logon_hours) {
1643 NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, *r->usri1020_logon_hours));
1646 return NDR_ERR_SUCCESS;
1649 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_1020(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_1020 *r)
1651 uint32_t _ptr_usri1020_logon_hours;
1652 TALLOC_CTX *_mem_save_usri1020_logon_hours_0;
1653 if (ndr_flags & NDR_SCALARS) {
1654 NDR_CHECK(ndr_pull_align(ndr, 4));
1655 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri1020_units_per_week));
1656 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_usri1020_logon_hours));
1657 if (_ptr_usri1020_logon_hours) {
1658 NDR_PULL_ALLOC(ndr, r->usri1020_logon_hours);
1659 } else {
1660 r->usri1020_logon_hours = NULL;
1663 if (ndr_flags & NDR_BUFFERS) {
1664 if (r->usri1020_logon_hours) {
1665 _mem_save_usri1020_logon_hours_0 = NDR_PULL_GET_MEM_CTX(ndr);
1666 NDR_PULL_SET_MEM_CTX(ndr, r->usri1020_logon_hours, 0);
1667 NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, r->usri1020_logon_hours));
1668 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_usri1020_logon_hours_0, 0);
1671 return NDR_ERR_SUCCESS;
1674 _PUBLIC_ void ndr_print_USER_INFO_1020(struct ndr_print *ndr, const char *name, const struct USER_INFO_1020 *r)
1676 ndr_print_struct(ndr, name, "USER_INFO_1020");
1677 ndr->depth++;
1678 ndr_print_uint32(ndr, "usri1020_units_per_week", r->usri1020_units_per_week);
1679 ndr_print_ptr(ndr, "usri1020_logon_hours", r->usri1020_logon_hours);
1680 ndr->depth++;
1681 if (r->usri1020_logon_hours) {
1682 ndr_print_uint8(ndr, "usri1020_logon_hours", *r->usri1020_logon_hours);
1684 ndr->depth--;
1685 ndr->depth--;
1688 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_1023(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_1023 *r)
1690 if (ndr_flags & NDR_SCALARS) {
1691 NDR_CHECK(ndr_push_align(ndr, 4));
1692 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1023_logon_server));
1694 if (ndr_flags & NDR_BUFFERS) {
1696 return NDR_ERR_SUCCESS;
1699 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_1023(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_1023 *r)
1701 if (ndr_flags & NDR_SCALARS) {
1702 NDR_CHECK(ndr_pull_align(ndr, 4));
1703 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1023_logon_server));
1705 if (ndr_flags & NDR_BUFFERS) {
1707 return NDR_ERR_SUCCESS;
1710 _PUBLIC_ void ndr_print_USER_INFO_1023(struct ndr_print *ndr, const char *name, const struct USER_INFO_1023 *r)
1712 ndr_print_struct(ndr, name, "USER_INFO_1023");
1713 ndr->depth++;
1714 ndr_print_string(ndr, "usri1023_logon_server", r->usri1023_logon_server);
1715 ndr->depth--;
1718 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_1024(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_1024 *r)
1720 if (ndr_flags & NDR_SCALARS) {
1721 NDR_CHECK(ndr_push_align(ndr, 4));
1722 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri1024_country_code));
1724 if (ndr_flags & NDR_BUFFERS) {
1726 return NDR_ERR_SUCCESS;
1729 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_1024(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_1024 *r)
1731 if (ndr_flags & NDR_SCALARS) {
1732 NDR_CHECK(ndr_pull_align(ndr, 4));
1733 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri1024_country_code));
1735 if (ndr_flags & NDR_BUFFERS) {
1737 return NDR_ERR_SUCCESS;
1740 _PUBLIC_ void ndr_print_USER_INFO_1024(struct ndr_print *ndr, const char *name, const struct USER_INFO_1024 *r)
1742 ndr_print_struct(ndr, name, "USER_INFO_1024");
1743 ndr->depth++;
1744 ndr_print_uint32(ndr, "usri1024_country_code", r->usri1024_country_code);
1745 ndr->depth--;
1748 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_1025(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_1025 *r)
1750 if (ndr_flags & NDR_SCALARS) {
1751 NDR_CHECK(ndr_push_align(ndr, 4));
1752 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri1025_code_page));
1754 if (ndr_flags & NDR_BUFFERS) {
1756 return NDR_ERR_SUCCESS;
1759 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_1025(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_1025 *r)
1761 if (ndr_flags & NDR_SCALARS) {
1762 NDR_CHECK(ndr_pull_align(ndr, 4));
1763 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri1025_code_page));
1765 if (ndr_flags & NDR_BUFFERS) {
1767 return NDR_ERR_SUCCESS;
1770 _PUBLIC_ void ndr_print_USER_INFO_1025(struct ndr_print *ndr, const char *name, const struct USER_INFO_1025 *r)
1772 ndr_print_struct(ndr, name, "USER_INFO_1025");
1773 ndr->depth++;
1774 ndr_print_uint32(ndr, "usri1025_code_page", r->usri1025_code_page);
1775 ndr->depth--;
1778 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_1051(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_1051 *r)
1780 if (ndr_flags & NDR_SCALARS) {
1781 NDR_CHECK(ndr_push_align(ndr, 4));
1782 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri1051_primary_group_id));
1784 if (ndr_flags & NDR_BUFFERS) {
1786 return NDR_ERR_SUCCESS;
1789 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_1051(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_1051 *r)
1791 if (ndr_flags & NDR_SCALARS) {
1792 NDR_CHECK(ndr_pull_align(ndr, 4));
1793 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri1051_primary_group_id));
1795 if (ndr_flags & NDR_BUFFERS) {
1797 return NDR_ERR_SUCCESS;
1800 _PUBLIC_ void ndr_print_USER_INFO_1051(struct ndr_print *ndr, const char *name, const struct USER_INFO_1051 *r)
1802 ndr_print_struct(ndr, name, "USER_INFO_1051");
1803 ndr->depth++;
1804 ndr_print_uint32(ndr, "usri1051_primary_group_id", r->usri1051_primary_group_id);
1805 ndr->depth--;
1808 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_1052(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_1052 *r)
1810 if (ndr_flags & NDR_SCALARS) {
1811 NDR_CHECK(ndr_push_align(ndr, 4));
1812 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1052_profile));
1814 if (ndr_flags & NDR_BUFFERS) {
1816 return NDR_ERR_SUCCESS;
1819 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_1052(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_1052 *r)
1821 if (ndr_flags & NDR_SCALARS) {
1822 NDR_CHECK(ndr_pull_align(ndr, 4));
1823 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1052_profile));
1825 if (ndr_flags & NDR_BUFFERS) {
1827 return NDR_ERR_SUCCESS;
1830 _PUBLIC_ void ndr_print_USER_INFO_1052(struct ndr_print *ndr, const char *name, const struct USER_INFO_1052 *r)
1832 ndr_print_struct(ndr, name, "USER_INFO_1052");
1833 ndr->depth++;
1834 ndr_print_string(ndr, "usri1052_profile", r->usri1052_profile);
1835 ndr->depth--;
1838 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_1053(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_1053 *r)
1840 if (ndr_flags & NDR_SCALARS) {
1841 NDR_CHECK(ndr_push_align(ndr, 4));
1842 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1053_home_dir_drive));
1844 if (ndr_flags & NDR_BUFFERS) {
1846 return NDR_ERR_SUCCESS;
1849 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_1053(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_1053 *r)
1851 if (ndr_flags & NDR_SCALARS) {
1852 NDR_CHECK(ndr_pull_align(ndr, 4));
1853 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1053_home_dir_drive));
1855 if (ndr_flags & NDR_BUFFERS) {
1857 return NDR_ERR_SUCCESS;
1860 _PUBLIC_ void ndr_print_USER_INFO_1053(struct ndr_print *ndr, const char *name, const struct USER_INFO_1053 *r)
1862 ndr_print_struct(ndr, name, "USER_INFO_1053");
1863 ndr->depth++;
1864 ndr_print_string(ndr, "usri1053_home_dir_drive", r->usri1053_home_dir_drive);
1865 ndr->depth--;
1868 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_X(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_X *r)
1870 if (ndr_flags & NDR_SCALARS) {
1871 NDR_CHECK(ndr_push_align(ndr, 4));
1872 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usriX_name));
1873 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usriX_password));
1874 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usriX_password_age));
1875 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usriX_priv));
1876 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usriX_home_dir));
1877 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usriX_comment));
1878 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usriX_flags));
1879 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usriX_script_path));
1880 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usriX_auth_flags));
1881 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usriX_full_name));
1882 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usriX_usr_comment));
1883 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usriX_parms));
1884 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usriX_workstations));
1885 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usriX_last_logon));
1886 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usriX_last_logoff));
1887 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usriX_acct_expires));
1888 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usriX_max_storage));
1889 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usriX_units_per_week));
1890 NDR_CHECK(ndr_push_unique_ptr(ndr, r->usriX_logon_hours));
1891 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usriX_bad_pw_count));
1892 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usriX_num_logons));
1893 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usriX_logon_server));
1894 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usriX_country_code));
1895 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usriX_code_page));
1896 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usriX_profile));
1897 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usriX_home_dir_drive));
1898 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usriX_primary_group_id));
1900 if (ndr_flags & NDR_BUFFERS) {
1901 if (r->usriX_logon_hours) {
1902 NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, *r->usriX_logon_hours));
1905 return NDR_ERR_SUCCESS;
1908 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_X(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_X *r)
1910 uint32_t _ptr_usriX_logon_hours;
1911 TALLOC_CTX *_mem_save_usriX_logon_hours_0;
1912 if (ndr_flags & NDR_SCALARS) {
1913 NDR_CHECK(ndr_pull_align(ndr, 4));
1914 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usriX_name));
1915 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usriX_password));
1916 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usriX_password_age));
1917 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usriX_priv));
1918 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usriX_home_dir));
1919 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usriX_comment));
1920 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usriX_flags));
1921 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usriX_script_path));
1922 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usriX_auth_flags));
1923 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usriX_full_name));
1924 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usriX_usr_comment));
1925 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usriX_parms));
1926 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usriX_workstations));
1927 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usriX_last_logon));
1928 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usriX_last_logoff));
1929 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usriX_acct_expires));
1930 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usriX_max_storage));
1931 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usriX_units_per_week));
1932 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_usriX_logon_hours));
1933 if (_ptr_usriX_logon_hours) {
1934 NDR_PULL_ALLOC(ndr, r->usriX_logon_hours);
1935 } else {
1936 r->usriX_logon_hours = NULL;
1938 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usriX_bad_pw_count));
1939 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usriX_num_logons));
1940 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usriX_logon_server));
1941 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usriX_country_code));
1942 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usriX_code_page));
1943 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usriX_profile));
1944 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usriX_home_dir_drive));
1945 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usriX_primary_group_id));
1947 if (ndr_flags & NDR_BUFFERS) {
1948 if (r->usriX_logon_hours) {
1949 _mem_save_usriX_logon_hours_0 = NDR_PULL_GET_MEM_CTX(ndr);
1950 NDR_PULL_SET_MEM_CTX(ndr, r->usriX_logon_hours, 0);
1951 NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, r->usriX_logon_hours));
1952 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_usriX_logon_hours_0, 0);
1955 return NDR_ERR_SUCCESS;
1958 _PUBLIC_ void ndr_print_USER_INFO_X(struct ndr_print *ndr, const char *name, const struct USER_INFO_X *r)
1960 ndr_print_struct(ndr, name, "USER_INFO_X");
1961 ndr->depth++;
1962 ndr_print_string(ndr, "usriX_name", r->usriX_name);
1963 ndr_print_string(ndr, "usriX_password", r->usriX_password);
1964 ndr_print_uint32(ndr, "usriX_password_age", r->usriX_password_age);
1965 ndr_print_uint32(ndr, "usriX_priv", r->usriX_priv);
1966 ndr_print_string(ndr, "usriX_home_dir", r->usriX_home_dir);
1967 ndr_print_string(ndr, "usriX_comment", r->usriX_comment);
1968 ndr_print_uint32(ndr, "usriX_flags", r->usriX_flags);
1969 ndr_print_string(ndr, "usriX_script_path", r->usriX_script_path);
1970 ndr_print_uint32(ndr, "usriX_auth_flags", r->usriX_auth_flags);
1971 ndr_print_string(ndr, "usriX_full_name", r->usriX_full_name);
1972 ndr_print_string(ndr, "usriX_usr_comment", r->usriX_usr_comment);
1973 ndr_print_string(ndr, "usriX_parms", r->usriX_parms);
1974 ndr_print_string(ndr, "usriX_workstations", r->usriX_workstations);
1975 ndr_print_uint32(ndr, "usriX_last_logon", r->usriX_last_logon);
1976 ndr_print_uint32(ndr, "usriX_last_logoff", r->usriX_last_logoff);
1977 ndr_print_uint32(ndr, "usriX_acct_expires", r->usriX_acct_expires);
1978 ndr_print_uint32(ndr, "usriX_max_storage", r->usriX_max_storage);
1979 ndr_print_uint32(ndr, "usriX_units_per_week", r->usriX_units_per_week);
1980 ndr_print_ptr(ndr, "usriX_logon_hours", r->usriX_logon_hours);
1981 ndr->depth++;
1982 if (r->usriX_logon_hours) {
1983 ndr_print_uint8(ndr, "usriX_logon_hours", *r->usriX_logon_hours);
1985 ndr->depth--;
1986 ndr_print_uint32(ndr, "usriX_bad_pw_count", r->usriX_bad_pw_count);
1987 ndr_print_uint32(ndr, "usriX_num_logons", r->usriX_num_logons);
1988 ndr_print_string(ndr, "usriX_logon_server", r->usriX_logon_server);
1989 ndr_print_uint32(ndr, "usriX_country_code", r->usriX_country_code);
1990 ndr_print_uint32(ndr, "usriX_code_page", r->usriX_code_page);
1991 ndr_print_string(ndr, "usriX_profile", r->usriX_profile);
1992 ndr_print_string(ndr, "usriX_home_dir_drive", r->usriX_home_dir_drive);
1993 ndr_print_uint32(ndr, "usriX_primary_group_id", r->usriX_primary_group_id);
1994 ndr->depth--;
1997 _PUBLIC_ enum ndr_err_code ndr_push_GROUP_USERS_INFO_0(struct ndr_push *ndr, int ndr_flags, const struct GROUP_USERS_INFO_0 *r)
1999 if (ndr_flags & NDR_SCALARS) {
2000 NDR_CHECK(ndr_push_align(ndr, 4));
2001 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->grui0_name));
2003 if (ndr_flags & NDR_BUFFERS) {
2005 return NDR_ERR_SUCCESS;
2008 _PUBLIC_ enum ndr_err_code ndr_pull_GROUP_USERS_INFO_0(struct ndr_pull *ndr, int ndr_flags, struct GROUP_USERS_INFO_0 *r)
2010 if (ndr_flags & NDR_SCALARS) {
2011 NDR_CHECK(ndr_pull_align(ndr, 4));
2012 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->grui0_name));
2014 if (ndr_flags & NDR_BUFFERS) {
2016 return NDR_ERR_SUCCESS;
2019 _PUBLIC_ void ndr_print_GROUP_USERS_INFO_0(struct ndr_print *ndr, const char *name, const struct GROUP_USERS_INFO_0 *r)
2021 ndr_print_struct(ndr, name, "GROUP_USERS_INFO_0");
2022 ndr->depth++;
2023 ndr_print_string(ndr, "grui0_name", r->grui0_name);
2024 ndr->depth--;
2027 _PUBLIC_ enum ndr_err_code ndr_push_GROUP_USERS_INFO_1(struct ndr_push *ndr, int ndr_flags, const struct GROUP_USERS_INFO_1 *r)
2029 if (ndr_flags & NDR_SCALARS) {
2030 NDR_CHECK(ndr_push_align(ndr, 4));
2031 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->grui1_name));
2032 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->grui1_attributes));
2034 if (ndr_flags & NDR_BUFFERS) {
2036 return NDR_ERR_SUCCESS;
2039 _PUBLIC_ enum ndr_err_code ndr_pull_GROUP_USERS_INFO_1(struct ndr_pull *ndr, int ndr_flags, struct GROUP_USERS_INFO_1 *r)
2041 if (ndr_flags & NDR_SCALARS) {
2042 NDR_CHECK(ndr_pull_align(ndr, 4));
2043 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->grui1_name));
2044 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->grui1_attributes));
2046 if (ndr_flags & NDR_BUFFERS) {
2048 return NDR_ERR_SUCCESS;
2051 _PUBLIC_ void ndr_print_GROUP_USERS_INFO_1(struct ndr_print *ndr, const char *name, const struct GROUP_USERS_INFO_1 *r)
2053 ndr_print_struct(ndr, name, "GROUP_USERS_INFO_1");
2054 ndr->depth++;
2055 ndr_print_string(ndr, "grui1_name", r->grui1_name);
2056 ndr_print_uint32(ndr, "grui1_attributes", r->grui1_attributes);
2057 ndr->depth--;
2060 _PUBLIC_ enum ndr_err_code ndr_push_NET_DISPLAY_USER(struct ndr_push *ndr, int ndr_flags, const struct NET_DISPLAY_USER *r)
2062 if (ndr_flags & NDR_SCALARS) {
2063 NDR_CHECK(ndr_push_align(ndr, 4));
2064 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1_name));
2065 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1_comment));
2066 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri1_flags));
2067 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1_full_name));
2068 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri1_user_id));
2069 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri1_next_index));
2071 if (ndr_flags & NDR_BUFFERS) {
2073 return NDR_ERR_SUCCESS;
2076 _PUBLIC_ enum ndr_err_code ndr_pull_NET_DISPLAY_USER(struct ndr_pull *ndr, int ndr_flags, struct NET_DISPLAY_USER *r)
2078 if (ndr_flags & NDR_SCALARS) {
2079 NDR_CHECK(ndr_pull_align(ndr, 4));
2080 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1_name));
2081 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1_comment));
2082 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri1_flags));
2083 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1_full_name));
2084 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri1_user_id));
2085 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri1_next_index));
2087 if (ndr_flags & NDR_BUFFERS) {
2089 return NDR_ERR_SUCCESS;
2092 _PUBLIC_ void ndr_print_NET_DISPLAY_USER(struct ndr_print *ndr, const char *name, const struct NET_DISPLAY_USER *r)
2094 ndr_print_struct(ndr, name, "NET_DISPLAY_USER");
2095 ndr->depth++;
2096 ndr_print_string(ndr, "usri1_name", r->usri1_name);
2097 ndr_print_string(ndr, "usri1_comment", r->usri1_comment);
2098 ndr_print_uint32(ndr, "usri1_flags", r->usri1_flags);
2099 ndr_print_string(ndr, "usri1_full_name", r->usri1_full_name);
2100 ndr_print_uint32(ndr, "usri1_user_id", r->usri1_user_id);
2101 ndr_print_uint32(ndr, "usri1_next_index", r->usri1_next_index);
2102 ndr->depth--;
2105 _PUBLIC_ enum ndr_err_code ndr_push_NET_DISPLAY_MACHINE(struct ndr_push *ndr, int ndr_flags, const struct NET_DISPLAY_MACHINE *r)
2107 if (ndr_flags & NDR_SCALARS) {
2108 NDR_CHECK(ndr_push_align(ndr, 4));
2109 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri2_name));
2110 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri2_comment));
2111 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri2_flags));
2112 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri2_user_id));
2113 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri2_next_index));
2115 if (ndr_flags & NDR_BUFFERS) {
2117 return NDR_ERR_SUCCESS;
2120 _PUBLIC_ enum ndr_err_code ndr_pull_NET_DISPLAY_MACHINE(struct ndr_pull *ndr, int ndr_flags, struct NET_DISPLAY_MACHINE *r)
2122 if (ndr_flags & NDR_SCALARS) {
2123 NDR_CHECK(ndr_pull_align(ndr, 4));
2124 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri2_name));
2125 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri2_comment));
2126 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri2_flags));
2127 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri2_user_id));
2128 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri2_next_index));
2130 if (ndr_flags & NDR_BUFFERS) {
2132 return NDR_ERR_SUCCESS;
2135 _PUBLIC_ void ndr_print_NET_DISPLAY_MACHINE(struct ndr_print *ndr, const char *name, const struct NET_DISPLAY_MACHINE *r)
2137 ndr_print_struct(ndr, name, "NET_DISPLAY_MACHINE");
2138 ndr->depth++;
2139 ndr_print_string(ndr, "usri2_name", r->usri2_name);
2140 ndr_print_string(ndr, "usri2_comment", r->usri2_comment);
2141 ndr_print_uint32(ndr, "usri2_flags", r->usri2_flags);
2142 ndr_print_uint32(ndr, "usri2_user_id", r->usri2_user_id);
2143 ndr_print_uint32(ndr, "usri2_next_index", r->usri2_next_index);
2144 ndr->depth--;
2147 _PUBLIC_ enum ndr_err_code ndr_push_NET_DISPLAY_GROUP(struct ndr_push *ndr, int ndr_flags, const struct NET_DISPLAY_GROUP *r)
2149 if (ndr_flags & NDR_SCALARS) {
2150 NDR_CHECK(ndr_push_align(ndr, 4));
2151 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->grpi3_name));
2152 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->grpi3_comment));
2153 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->grpi3_group_id));
2154 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->grpi3_attributes));
2155 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->grpi3_next_index));
2157 if (ndr_flags & NDR_BUFFERS) {
2159 return NDR_ERR_SUCCESS;
2162 _PUBLIC_ enum ndr_err_code ndr_pull_NET_DISPLAY_GROUP(struct ndr_pull *ndr, int ndr_flags, struct NET_DISPLAY_GROUP *r)
2164 if (ndr_flags & NDR_SCALARS) {
2165 NDR_CHECK(ndr_pull_align(ndr, 4));
2166 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->grpi3_name));
2167 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->grpi3_comment));
2168 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->grpi3_group_id));
2169 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->grpi3_attributes));
2170 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->grpi3_next_index));
2172 if (ndr_flags & NDR_BUFFERS) {
2174 return NDR_ERR_SUCCESS;
2177 _PUBLIC_ void ndr_print_NET_DISPLAY_GROUP(struct ndr_print *ndr, const char *name, const struct NET_DISPLAY_GROUP *r)
2179 ndr_print_struct(ndr, name, "NET_DISPLAY_GROUP");
2180 ndr->depth++;
2181 ndr_print_string(ndr, "grpi3_name", r->grpi3_name);
2182 ndr_print_string(ndr, "grpi3_comment", r->grpi3_comment);
2183 ndr_print_uint32(ndr, "grpi3_group_id", r->grpi3_group_id);
2184 ndr_print_uint32(ndr, "grpi3_attributes", r->grpi3_attributes);
2185 ndr_print_uint32(ndr, "grpi3_next_index", r->grpi3_next_index);
2186 ndr->depth--;
2189 _PUBLIC_ enum ndr_err_code ndr_push_SHARE_INFO_1005_FLAGS(struct ndr_push *ndr, int ndr_flags, uint32_t r)
2191 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r));
2192 return NDR_ERR_SUCCESS;
2195 _PUBLIC_ enum ndr_err_code ndr_pull_SHARE_INFO_1005_FLAGS(struct ndr_pull *ndr, int ndr_flags, uint32_t *r)
2197 uint32_t v;
2198 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &v));
2199 *r = v;
2200 return NDR_ERR_SUCCESS;
2203 _PUBLIC_ void ndr_print_SHARE_INFO_1005_FLAGS(struct ndr_print *ndr, const char *name, uint32_t r)
2205 ndr_print_uint32(ndr, name, r);
2206 ndr->depth++;
2207 ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "SHI1005_FLAGS_DFS", SHI1005_FLAGS_DFS, r);
2208 ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "SHI1005_FLAGS_DFS_ROOT", SHI1005_FLAGS_DFS_ROOT, r);
2209 ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "CSC_CACHE_MANUAL_REINT", CSC_CACHE_MANUAL_REINT, r);
2210 ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "CSC_CACHE_AUTO_REINT", CSC_CACHE_AUTO_REINT, r);
2211 ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "CSC_CACHE_VDO", CSC_CACHE_VDO, r);
2212 ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "CSC_CACHE_NONE", CSC_CACHE_NONE, r);
2213 ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "SHI1005_FLAGS_RESTRICT_EXCLUSIVE_OPENS", SHI1005_FLAGS_RESTRICT_EXCLUSIVE_OPENS, r);
2214 ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "SHI1005_FLAGS_FORCE_SHARED_DELETE", SHI1005_FLAGS_FORCE_SHARED_DELETE, r);
2215 ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "SHI1005_FLAGS_ALLOW_NAMESPACE_CACHING", SHI1005_FLAGS_ALLOW_NAMESPACE_CACHING, r);
2216 ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "SHI1005_FLAGS_ACCESS_BASED_DIRECTORY_ENUM", SHI1005_FLAGS_ACCESS_BASED_DIRECTORY_ENUM, r);
2217 ndr->depth--;
2220 _PUBLIC_ void ndr_print_NetJoinDomain(struct ndr_print *ndr, const char *name, int flags, const struct NetJoinDomain *r)
2222 ndr_print_struct(ndr, name, "NetJoinDomain");
2223 ndr->depth++;
2224 if (flags & NDR_SET_VALUES) {
2225 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2227 if (flags & NDR_IN) {
2228 ndr_print_struct(ndr, "in", "NetJoinDomain");
2229 ndr->depth++;
2230 ndr_print_ptr(ndr, "server", r->in.server);
2231 ndr->depth++;
2232 if (r->in.server) {
2233 ndr_print_string(ndr, "server", r->in.server);
2235 ndr->depth--;
2236 ndr_print_ptr(ndr, "domain", r->in.domain);
2237 ndr->depth++;
2238 ndr_print_string(ndr, "domain", r->in.domain);
2239 ndr->depth--;
2240 ndr_print_ptr(ndr, "account_ou", r->in.account_ou);
2241 ndr->depth++;
2242 if (r->in.account_ou) {
2243 ndr_print_string(ndr, "account_ou", r->in.account_ou);
2245 ndr->depth--;
2246 ndr_print_ptr(ndr, "account", r->in.account);
2247 ndr->depth++;
2248 if (r->in.account) {
2249 ndr_print_string(ndr, "account", r->in.account);
2251 ndr->depth--;
2252 ndr_print_ptr(ndr, "password", r->in.password);
2253 ndr->depth++;
2254 if (r->in.password) {
2255 ndr_print_string(ndr, "password", r->in.password);
2257 ndr->depth--;
2258 ndr_print_NetJoinFlags(ndr, "join_flags", r->in.join_flags);
2259 ndr->depth--;
2261 if (flags & NDR_OUT) {
2262 ndr_print_struct(ndr, "out", "NetJoinDomain");
2263 ndr->depth++;
2264 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2265 ndr->depth--;
2267 ndr->depth--;
2270 _PUBLIC_ void ndr_print_NetUnjoinDomain(struct ndr_print *ndr, const char *name, int flags, const struct NetUnjoinDomain *r)
2272 ndr_print_struct(ndr, name, "NetUnjoinDomain");
2273 ndr->depth++;
2274 if (flags & NDR_SET_VALUES) {
2275 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2277 if (flags & NDR_IN) {
2278 ndr_print_struct(ndr, "in", "NetUnjoinDomain");
2279 ndr->depth++;
2280 ndr_print_ptr(ndr, "server_name", r->in.server_name);
2281 ndr->depth++;
2282 if (r->in.server_name) {
2283 ndr_print_string(ndr, "server_name", r->in.server_name);
2285 ndr->depth--;
2286 ndr_print_ptr(ndr, "account", r->in.account);
2287 ndr->depth++;
2288 if (r->in.account) {
2289 ndr_print_string(ndr, "account", r->in.account);
2291 ndr->depth--;
2292 ndr_print_ptr(ndr, "password", r->in.password);
2293 ndr->depth++;
2294 if (r->in.password) {
2295 ndr_print_string(ndr, "password", r->in.password);
2297 ndr->depth--;
2298 ndr_print_NetJoinFlags(ndr, "unjoin_flags", r->in.unjoin_flags);
2299 ndr->depth--;
2301 if (flags & NDR_OUT) {
2302 ndr_print_struct(ndr, "out", "NetUnjoinDomain");
2303 ndr->depth++;
2304 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2305 ndr->depth--;
2307 ndr->depth--;
2310 _PUBLIC_ void ndr_print_NetGetJoinInformation(struct ndr_print *ndr, const char *name, int flags, const struct NetGetJoinInformation *r)
2312 ndr_print_struct(ndr, name, "NetGetJoinInformation");
2313 ndr->depth++;
2314 if (flags & NDR_SET_VALUES) {
2315 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2317 if (flags & NDR_IN) {
2318 ndr_print_struct(ndr, "in", "NetGetJoinInformation");
2319 ndr->depth++;
2320 ndr_print_ptr(ndr, "server_name", r->in.server_name);
2321 ndr->depth++;
2322 if (r->in.server_name) {
2323 ndr_print_string(ndr, "server_name", r->in.server_name);
2325 ndr->depth--;
2326 ndr->depth--;
2328 if (flags & NDR_OUT) {
2329 ndr_print_struct(ndr, "out", "NetGetJoinInformation");
2330 ndr->depth++;
2331 ndr_print_ptr(ndr, "name_buffer", r->out.name_buffer);
2332 ndr->depth++;
2333 ndr_print_ptr(ndr, "name_buffer", *r->out.name_buffer);
2334 ndr->depth++;
2335 if (*r->out.name_buffer) {
2336 ndr_print_string(ndr, "name_buffer", *r->out.name_buffer);
2338 ndr->depth--;
2339 ndr->depth--;
2340 ndr_print_ptr(ndr, "name_type", r->out.name_type);
2341 ndr->depth++;
2342 ndr_print_uint16(ndr, "name_type", *r->out.name_type);
2343 ndr->depth--;
2344 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2345 ndr->depth--;
2347 ndr->depth--;
2350 _PUBLIC_ void ndr_print_NetGetJoinableOUs(struct ndr_print *ndr, const char *name, int flags, const struct NetGetJoinableOUs *r)
2352 ndr_print_struct(ndr, name, "NetGetJoinableOUs");
2353 ndr->depth++;
2354 if (flags & NDR_SET_VALUES) {
2355 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2357 if (flags & NDR_IN) {
2358 ndr_print_struct(ndr, "in", "NetGetJoinableOUs");
2359 ndr->depth++;
2360 ndr_print_ptr(ndr, "server_name", r->in.server_name);
2361 ndr->depth++;
2362 if (r->in.server_name) {
2363 ndr_print_string(ndr, "server_name", r->in.server_name);
2365 ndr->depth--;
2366 ndr_print_ptr(ndr, "domain", r->in.domain);
2367 ndr->depth++;
2368 ndr_print_string(ndr, "domain", r->in.domain);
2369 ndr->depth--;
2370 ndr_print_ptr(ndr, "account", r->in.account);
2371 ndr->depth++;
2372 if (r->in.account) {
2373 ndr_print_string(ndr, "account", r->in.account);
2375 ndr->depth--;
2376 ndr_print_ptr(ndr, "password", r->in.password);
2377 ndr->depth++;
2378 if (r->in.password) {
2379 ndr_print_string(ndr, "password", r->in.password);
2381 ndr->depth--;
2382 ndr->depth--;
2384 if (flags & NDR_OUT) {
2385 ndr_print_struct(ndr, "out", "NetGetJoinableOUs");
2386 ndr->depth++;
2387 ndr_print_ptr(ndr, "ou_count", r->out.ou_count);
2388 ndr->depth++;
2389 ndr_print_uint32(ndr, "ou_count", *r->out.ou_count);
2390 ndr->depth--;
2391 ndr_print_ptr(ndr, "ous", r->out.ous);
2392 ndr->depth++;
2393 ndr_print_ptr(ndr, "ous", *r->out.ous);
2394 ndr->depth++;
2395 if (*r->out.ous) {
2396 ndr_print_ptr(ndr, "ous", **r->out.ous);
2397 ndr->depth++;
2398 if (**r->out.ous) {
2399 ndr_print_string(ndr, "ous", **r->out.ous);
2401 ndr->depth--;
2403 ndr->depth--;
2404 ndr->depth--;
2405 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2406 ndr->depth--;
2408 ndr->depth--;
2411 _PUBLIC_ void ndr_print_NetRenameMachineInDomain(struct ndr_print *ndr, const char *name, int flags, const struct NetRenameMachineInDomain *r)
2413 ndr_print_struct(ndr, name, "NetRenameMachineInDomain");
2414 ndr->depth++;
2415 if (flags & NDR_SET_VALUES) {
2416 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2418 if (flags & NDR_IN) {
2419 ndr_print_struct(ndr, "in", "NetRenameMachineInDomain");
2420 ndr->depth++;
2421 ndr_print_string(ndr, "server_name", r->in.server_name);
2422 ndr_print_string(ndr, "new_machine_name", r->in.new_machine_name);
2423 ndr_print_string(ndr, "account", r->in.account);
2424 ndr_print_string(ndr, "password", r->in.password);
2425 ndr_print_uint32(ndr, "rename_options", r->in.rename_options);
2426 ndr->depth--;
2428 if (flags & NDR_OUT) {
2429 ndr_print_struct(ndr, "out", "NetRenameMachineInDomain");
2430 ndr->depth++;
2431 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2432 ndr->depth--;
2434 ndr->depth--;
2437 _PUBLIC_ void ndr_print_NetServerGetInfo(struct ndr_print *ndr, const char *name, int flags, const struct NetServerGetInfo *r)
2439 ndr_print_struct(ndr, name, "NetServerGetInfo");
2440 ndr->depth++;
2441 if (flags & NDR_SET_VALUES) {
2442 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2444 if (flags & NDR_IN) {
2445 ndr_print_struct(ndr, "in", "NetServerGetInfo");
2446 ndr->depth++;
2447 ndr_print_ptr(ndr, "server_name", r->in.server_name);
2448 ndr->depth++;
2449 if (r->in.server_name) {
2450 ndr_print_string(ndr, "server_name", r->in.server_name);
2452 ndr->depth--;
2453 ndr_print_uint32(ndr, "level", r->in.level);
2454 ndr->depth--;
2456 if (flags & NDR_OUT) {
2457 ndr_print_struct(ndr, "out", "NetServerGetInfo");
2458 ndr->depth++;
2459 ndr_print_ptr(ndr, "buffer", r->out.buffer);
2460 ndr->depth++;
2461 ndr_print_ptr(ndr, "buffer", *r->out.buffer);
2462 ndr->depth++;
2463 if (*r->out.buffer) {
2464 ndr_print_uint8(ndr, "buffer", **r->out.buffer);
2466 ndr->depth--;
2467 ndr->depth--;
2468 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2469 ndr->depth--;
2471 ndr->depth--;
2474 _PUBLIC_ void ndr_print_NetServerSetInfo(struct ndr_print *ndr, const char *name, int flags, const struct NetServerSetInfo *r)
2476 ndr_print_struct(ndr, name, "NetServerSetInfo");
2477 ndr->depth++;
2478 if (flags & NDR_SET_VALUES) {
2479 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2481 if (flags & NDR_IN) {
2482 ndr_print_struct(ndr, "in", "NetServerSetInfo");
2483 ndr->depth++;
2484 ndr_print_ptr(ndr, "server_name", r->in.server_name);
2485 ndr->depth++;
2486 if (r->in.server_name) {
2487 ndr_print_string(ndr, "server_name", r->in.server_name);
2489 ndr->depth--;
2490 ndr_print_uint32(ndr, "level", r->in.level);
2491 ndr_print_ptr(ndr, "buffer", r->in.buffer);
2492 ndr->depth++;
2493 ndr_print_uint8(ndr, "buffer", *r->in.buffer);
2494 ndr->depth--;
2495 ndr->depth--;
2497 if (flags & NDR_OUT) {
2498 ndr_print_struct(ndr, "out", "NetServerSetInfo");
2499 ndr->depth++;
2500 ndr_print_ptr(ndr, "parm_error", r->out.parm_error);
2501 ndr->depth++;
2502 ndr_print_uint32(ndr, "parm_error", *r->out.parm_error);
2503 ndr->depth--;
2504 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2505 ndr->depth--;
2507 ndr->depth--;
2510 _PUBLIC_ void ndr_print_NetGetDCName(struct ndr_print *ndr, const char *name, int flags, const struct NetGetDCName *r)
2512 ndr_print_struct(ndr, name, "NetGetDCName");
2513 ndr->depth++;
2514 if (flags & NDR_SET_VALUES) {
2515 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2517 if (flags & NDR_IN) {
2518 ndr_print_struct(ndr, "in", "NetGetDCName");
2519 ndr->depth++;
2520 ndr_print_ptr(ndr, "server_name", r->in.server_name);
2521 ndr->depth++;
2522 if (r->in.server_name) {
2523 ndr_print_string(ndr, "server_name", r->in.server_name);
2525 ndr->depth--;
2526 ndr_print_ptr(ndr, "domain_name", r->in.domain_name);
2527 ndr->depth++;
2528 if (r->in.domain_name) {
2529 ndr_print_string(ndr, "domain_name", r->in.domain_name);
2531 ndr->depth--;
2532 ndr->depth--;
2534 if (flags & NDR_OUT) {
2535 ndr_print_struct(ndr, "out", "NetGetDCName");
2536 ndr->depth++;
2537 ndr_print_ptr(ndr, "buffer", r->out.buffer);
2538 ndr->depth++;
2539 ndr_print_ptr(ndr, "buffer", *r->out.buffer);
2540 ndr->depth++;
2541 if (*r->out.buffer) {
2542 ndr_print_uint8(ndr, "buffer", **r->out.buffer);
2544 ndr->depth--;
2545 ndr->depth--;
2546 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2547 ndr->depth--;
2549 ndr->depth--;
2552 _PUBLIC_ void ndr_print_NetGetAnyDCName(struct ndr_print *ndr, const char *name, int flags, const struct NetGetAnyDCName *r)
2554 ndr_print_struct(ndr, name, "NetGetAnyDCName");
2555 ndr->depth++;
2556 if (flags & NDR_SET_VALUES) {
2557 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2559 if (flags & NDR_IN) {
2560 ndr_print_struct(ndr, "in", "NetGetAnyDCName");
2561 ndr->depth++;
2562 ndr_print_ptr(ndr, "server_name", r->in.server_name);
2563 ndr->depth++;
2564 if (r->in.server_name) {
2565 ndr_print_string(ndr, "server_name", r->in.server_name);
2567 ndr->depth--;
2568 ndr_print_ptr(ndr, "domain_name", r->in.domain_name);
2569 ndr->depth++;
2570 if (r->in.domain_name) {
2571 ndr_print_string(ndr, "domain_name", r->in.domain_name);
2573 ndr->depth--;
2574 ndr->depth--;
2576 if (flags & NDR_OUT) {
2577 ndr_print_struct(ndr, "out", "NetGetAnyDCName");
2578 ndr->depth++;
2579 ndr_print_ptr(ndr, "buffer", r->out.buffer);
2580 ndr->depth++;
2581 ndr_print_ptr(ndr, "buffer", *r->out.buffer);
2582 ndr->depth++;
2583 if (*r->out.buffer) {
2584 ndr_print_uint8(ndr, "buffer", **r->out.buffer);
2586 ndr->depth--;
2587 ndr->depth--;
2588 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2589 ndr->depth--;
2591 ndr->depth--;
2594 _PUBLIC_ void ndr_print_DsGetDcName(struct ndr_print *ndr, const char *name, int flags, const struct DsGetDcName *r)
2596 ndr_print_struct(ndr, name, "DsGetDcName");
2597 ndr->depth++;
2598 if (flags & NDR_SET_VALUES) {
2599 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2601 if (flags & NDR_IN) {
2602 ndr_print_struct(ndr, "in", "DsGetDcName");
2603 ndr->depth++;
2604 ndr_print_ptr(ndr, "server_name", r->in.server_name);
2605 ndr->depth++;
2606 if (r->in.server_name) {
2607 ndr_print_string(ndr, "server_name", r->in.server_name);
2609 ndr->depth--;
2610 ndr_print_ptr(ndr, "domain_name", r->in.domain_name);
2611 ndr->depth++;
2612 ndr_print_string(ndr, "domain_name", r->in.domain_name);
2613 ndr->depth--;
2614 ndr_print_ptr(ndr, "domain_guid", r->in.domain_guid);
2615 ndr->depth++;
2616 if (r->in.domain_guid) {
2617 ndr_print_GUID(ndr, "domain_guid", r->in.domain_guid);
2619 ndr->depth--;
2620 ndr_print_ptr(ndr, "site_name", r->in.site_name);
2621 ndr->depth++;
2622 if (r->in.site_name) {
2623 ndr_print_string(ndr, "site_name", r->in.site_name);
2625 ndr->depth--;
2626 ndr_print_uint32(ndr, "flags", r->in.flags);
2627 ndr->depth--;
2629 if (flags & NDR_OUT) {
2630 ndr_print_struct(ndr, "out", "DsGetDcName");
2631 ndr->depth++;
2632 ndr_print_ptr(ndr, "dc_info", r->out.dc_info);
2633 ndr->depth++;
2634 ndr_print_ptr(ndr, "dc_info", *r->out.dc_info);
2635 ndr->depth++;
2636 if (*r->out.dc_info) {
2637 ndr_print_DOMAIN_CONTROLLER_INFO(ndr, "dc_info", *r->out.dc_info);
2639 ndr->depth--;
2640 ndr->depth--;
2641 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2642 ndr->depth--;
2644 ndr->depth--;
2647 _PUBLIC_ void ndr_print_NetUserAdd(struct ndr_print *ndr, const char *name, int flags, const struct NetUserAdd *r)
2649 ndr_print_struct(ndr, name, "NetUserAdd");
2650 ndr->depth++;
2651 if (flags & NDR_SET_VALUES) {
2652 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2654 if (flags & NDR_IN) {
2655 ndr_print_struct(ndr, "in", "NetUserAdd");
2656 ndr->depth++;
2657 ndr_print_ptr(ndr, "server_name", r->in.server_name);
2658 ndr->depth++;
2659 if (r->in.server_name) {
2660 ndr_print_string(ndr, "server_name", r->in.server_name);
2662 ndr->depth--;
2663 ndr_print_uint32(ndr, "level", r->in.level);
2664 ndr_print_ptr(ndr, "buffer", r->in.buffer);
2665 ndr->depth++;
2666 ndr_print_uint8(ndr, "buffer", *r->in.buffer);
2667 ndr->depth--;
2668 ndr->depth--;
2670 if (flags & NDR_OUT) {
2671 ndr_print_struct(ndr, "out", "NetUserAdd");
2672 ndr->depth++;
2673 ndr_print_ptr(ndr, "parm_error", r->out.parm_error);
2674 ndr->depth++;
2675 ndr_print_uint32(ndr, "parm_error", *r->out.parm_error);
2676 ndr->depth--;
2677 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2678 ndr->depth--;
2680 ndr->depth--;
2683 _PUBLIC_ void ndr_print_NetUserDel(struct ndr_print *ndr, const char *name, int flags, const struct NetUserDel *r)
2685 ndr_print_struct(ndr, name, "NetUserDel");
2686 ndr->depth++;
2687 if (flags & NDR_SET_VALUES) {
2688 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2690 if (flags & NDR_IN) {
2691 ndr_print_struct(ndr, "in", "NetUserDel");
2692 ndr->depth++;
2693 ndr_print_ptr(ndr, "server_name", r->in.server_name);
2694 ndr->depth++;
2695 if (r->in.server_name) {
2696 ndr_print_string(ndr, "server_name", r->in.server_name);
2698 ndr->depth--;
2699 ndr_print_ptr(ndr, "user_name", r->in.user_name);
2700 ndr->depth++;
2701 ndr_print_string(ndr, "user_name", r->in.user_name);
2702 ndr->depth--;
2703 ndr->depth--;
2705 if (flags & NDR_OUT) {
2706 ndr_print_struct(ndr, "out", "NetUserDel");
2707 ndr->depth++;
2708 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2709 ndr->depth--;
2711 ndr->depth--;
2714 _PUBLIC_ void ndr_print_NetUserEnum(struct ndr_print *ndr, const char *name, int flags, const struct NetUserEnum *r)
2716 ndr_print_struct(ndr, name, "NetUserEnum");
2717 ndr->depth++;
2718 if (flags & NDR_SET_VALUES) {
2719 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2721 if (flags & NDR_IN) {
2722 ndr_print_struct(ndr, "in", "NetUserEnum");
2723 ndr->depth++;
2724 ndr_print_ptr(ndr, "server_name", r->in.server_name);
2725 ndr->depth++;
2726 if (r->in.server_name) {
2727 ndr_print_string(ndr, "server_name", r->in.server_name);
2729 ndr->depth--;
2730 ndr_print_uint32(ndr, "level", r->in.level);
2731 ndr_print_uint32(ndr, "filter", r->in.filter);
2732 ndr_print_uint32(ndr, "prefmaxlen", r->in.prefmaxlen);
2733 ndr_print_ptr(ndr, "resume_handle", r->in.resume_handle);
2734 ndr->depth++;
2735 ndr_print_uint32(ndr, "resume_handle", *r->in.resume_handle);
2736 ndr->depth--;
2737 ndr->depth--;
2739 if (flags & NDR_OUT) {
2740 ndr_print_struct(ndr, "out", "NetUserEnum");
2741 ndr->depth++;
2742 ndr_print_ptr(ndr, "buffer", r->out.buffer);
2743 ndr->depth++;
2744 ndr_print_ptr(ndr, "buffer", *r->out.buffer);
2745 ndr->depth++;
2746 if (*r->out.buffer) {
2747 ndr_print_uint8(ndr, "buffer", **r->out.buffer);
2749 ndr->depth--;
2750 ndr->depth--;
2751 ndr_print_ptr(ndr, "entries_read", r->out.entries_read);
2752 ndr->depth++;
2753 ndr_print_uint32(ndr, "entries_read", *r->out.entries_read);
2754 ndr->depth--;
2755 ndr_print_ptr(ndr, "total_entries", r->out.total_entries);
2756 ndr->depth++;
2757 ndr_print_uint32(ndr, "total_entries", *r->out.total_entries);
2758 ndr->depth--;
2759 ndr_print_ptr(ndr, "resume_handle", r->out.resume_handle);
2760 ndr->depth++;
2761 ndr_print_uint32(ndr, "resume_handle", *r->out.resume_handle);
2762 ndr->depth--;
2763 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2764 ndr->depth--;
2766 ndr->depth--;
2769 _PUBLIC_ void ndr_print_NetUserChangePassword(struct ndr_print *ndr, const char *name, int flags, const struct NetUserChangePassword *r)
2771 ndr_print_struct(ndr, name, "NetUserChangePassword");
2772 ndr->depth++;
2773 if (flags & NDR_SET_VALUES) {
2774 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2776 if (flags & NDR_IN) {
2777 ndr_print_struct(ndr, "in", "NetUserChangePassword");
2778 ndr->depth++;
2779 ndr_print_string(ndr, "domain_name", r->in.domain_name);
2780 ndr_print_string(ndr, "user_name", r->in.user_name);
2781 ndr_print_string(ndr, "old_password", r->in.old_password);
2782 ndr_print_string(ndr, "new_password", r->in.new_password);
2783 ndr->depth--;
2785 if (flags & NDR_OUT) {
2786 ndr_print_struct(ndr, "out", "NetUserChangePassword");
2787 ndr->depth++;
2788 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2789 ndr->depth--;
2791 ndr->depth--;
2794 _PUBLIC_ void ndr_print_NetUserGetInfo(struct ndr_print *ndr, const char *name, int flags, const struct NetUserGetInfo *r)
2796 ndr_print_struct(ndr, name, "NetUserGetInfo");
2797 ndr->depth++;
2798 if (flags & NDR_SET_VALUES) {
2799 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2801 if (flags & NDR_IN) {
2802 ndr_print_struct(ndr, "in", "NetUserGetInfo");
2803 ndr->depth++;
2804 ndr_print_string(ndr, "server_name", r->in.server_name);
2805 ndr_print_string(ndr, "user_name", r->in.user_name);
2806 ndr_print_uint32(ndr, "level", r->in.level);
2807 ndr->depth--;
2809 if (flags & NDR_OUT) {
2810 ndr_print_struct(ndr, "out", "NetUserGetInfo");
2811 ndr->depth++;
2812 ndr_print_ptr(ndr, "buffer", r->out.buffer);
2813 ndr->depth++;
2814 ndr_print_ptr(ndr, "buffer", *r->out.buffer);
2815 ndr->depth++;
2816 if (*r->out.buffer) {
2817 ndr_print_uint8(ndr, "buffer", **r->out.buffer);
2819 ndr->depth--;
2820 ndr->depth--;
2821 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2822 ndr->depth--;
2824 ndr->depth--;
2827 _PUBLIC_ void ndr_print_NetUserSetInfo(struct ndr_print *ndr, const char *name, int flags, const struct NetUserSetInfo *r)
2829 ndr_print_struct(ndr, name, "NetUserSetInfo");
2830 ndr->depth++;
2831 if (flags & NDR_SET_VALUES) {
2832 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2834 if (flags & NDR_IN) {
2835 ndr_print_struct(ndr, "in", "NetUserSetInfo");
2836 ndr->depth++;
2837 ndr_print_string(ndr, "server_name", r->in.server_name);
2838 ndr_print_string(ndr, "user_name", r->in.user_name);
2839 ndr_print_uint32(ndr, "level", r->in.level);
2840 ndr_print_ptr(ndr, "buffer", r->in.buffer);
2841 ndr->depth++;
2842 ndr_print_uint8(ndr, "buffer", *r->in.buffer);
2843 ndr->depth--;
2844 ndr->depth--;
2846 if (flags & NDR_OUT) {
2847 ndr_print_struct(ndr, "out", "NetUserSetInfo");
2848 ndr->depth++;
2849 ndr_print_ptr(ndr, "parm_err", r->out.parm_err);
2850 ndr->depth++;
2851 ndr_print_uint32(ndr, "parm_err", *r->out.parm_err);
2852 ndr->depth--;
2853 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2854 ndr->depth--;
2856 ndr->depth--;
2859 _PUBLIC_ void ndr_print_NetUserGetGroups(struct ndr_print *ndr, const char *name, int flags, const struct NetUserGetGroups *r)
2861 ndr_print_struct(ndr, name, "NetUserGetGroups");
2862 ndr->depth++;
2863 if (flags & NDR_SET_VALUES) {
2864 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2866 if (flags & NDR_IN) {
2867 ndr_print_struct(ndr, "in", "NetUserGetGroups");
2868 ndr->depth++;
2869 ndr_print_string(ndr, "server_name", r->in.server_name);
2870 ndr_print_string(ndr, "user_name", r->in.user_name);
2871 ndr_print_uint32(ndr, "level", r->in.level);
2872 ndr_print_uint32(ndr, "prefmaxlen", r->in.prefmaxlen);
2873 ndr->depth--;
2875 if (flags & NDR_OUT) {
2876 ndr_print_struct(ndr, "out", "NetUserGetGroups");
2877 ndr->depth++;
2878 ndr_print_ptr(ndr, "buffer", r->out.buffer);
2879 ndr->depth++;
2880 ndr_print_ptr(ndr, "buffer", *r->out.buffer);
2881 ndr->depth++;
2882 if (*r->out.buffer) {
2883 ndr_print_uint8(ndr, "buffer", **r->out.buffer);
2885 ndr->depth--;
2886 ndr->depth--;
2887 ndr_print_ptr(ndr, "entries_read", r->out.entries_read);
2888 ndr->depth++;
2889 ndr_print_uint32(ndr, "entries_read", *r->out.entries_read);
2890 ndr->depth--;
2891 ndr_print_ptr(ndr, "total_entries", r->out.total_entries);
2892 ndr->depth++;
2893 ndr_print_uint32(ndr, "total_entries", *r->out.total_entries);
2894 ndr->depth--;
2895 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2896 ndr->depth--;
2898 ndr->depth--;
2901 _PUBLIC_ void ndr_print_NetUserSetGroups(struct ndr_print *ndr, const char *name, int flags, const struct NetUserSetGroups *r)
2903 ndr_print_struct(ndr, name, "NetUserSetGroups");
2904 ndr->depth++;
2905 if (flags & NDR_SET_VALUES) {
2906 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2908 if (flags & NDR_IN) {
2909 ndr_print_struct(ndr, "in", "NetUserSetGroups");
2910 ndr->depth++;
2911 ndr_print_string(ndr, "server_name", r->in.server_name);
2912 ndr_print_string(ndr, "user_name", r->in.user_name);
2913 ndr_print_uint32(ndr, "level", r->in.level);
2914 ndr_print_ptr(ndr, "buffer", r->in.buffer);
2915 ndr->depth++;
2916 ndr_print_uint8(ndr, "buffer", *r->in.buffer);
2917 ndr->depth--;
2918 ndr_print_uint32(ndr, "num_entries", r->in.num_entries);
2919 ndr->depth--;
2921 if (flags & NDR_OUT) {
2922 ndr_print_struct(ndr, "out", "NetUserSetGroups");
2923 ndr->depth++;
2924 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2925 ndr->depth--;
2927 ndr->depth--;
2930 _PUBLIC_ void ndr_print_NetUserGetLocalGroups(struct ndr_print *ndr, const char *name, int flags, const struct NetUserGetLocalGroups *r)
2932 ndr_print_struct(ndr, name, "NetUserGetLocalGroups");
2933 ndr->depth++;
2934 if (flags & NDR_SET_VALUES) {
2935 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2937 if (flags & NDR_IN) {
2938 ndr_print_struct(ndr, "in", "NetUserGetLocalGroups");
2939 ndr->depth++;
2940 ndr_print_string(ndr, "server_name", r->in.server_name);
2941 ndr_print_string(ndr, "user_name", r->in.user_name);
2942 ndr_print_uint32(ndr, "level", r->in.level);
2943 ndr_print_uint32(ndr, "flags", r->in.flags);
2944 ndr_print_uint32(ndr, "prefmaxlen", r->in.prefmaxlen);
2945 ndr->depth--;
2947 if (flags & NDR_OUT) {
2948 ndr_print_struct(ndr, "out", "NetUserGetLocalGroups");
2949 ndr->depth++;
2950 ndr_print_ptr(ndr, "buffer", r->out.buffer);
2951 ndr->depth++;
2952 ndr_print_ptr(ndr, "buffer", *r->out.buffer);
2953 ndr->depth++;
2954 if (*r->out.buffer) {
2955 ndr_print_uint8(ndr, "buffer", **r->out.buffer);
2957 ndr->depth--;
2958 ndr->depth--;
2959 ndr_print_ptr(ndr, "entries_read", r->out.entries_read);
2960 ndr->depth++;
2961 ndr_print_uint32(ndr, "entries_read", *r->out.entries_read);
2962 ndr->depth--;
2963 ndr_print_ptr(ndr, "total_entries", r->out.total_entries);
2964 ndr->depth++;
2965 ndr_print_uint32(ndr, "total_entries", *r->out.total_entries);
2966 ndr->depth--;
2967 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2968 ndr->depth--;
2970 ndr->depth--;
2973 _PUBLIC_ void ndr_print_NetUserModalsGet(struct ndr_print *ndr, const char *name, int flags, const struct NetUserModalsGet *r)
2975 ndr_print_struct(ndr, name, "NetUserModalsGet");
2976 ndr->depth++;
2977 if (flags & NDR_SET_VALUES) {
2978 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2980 if (flags & NDR_IN) {
2981 ndr_print_struct(ndr, "in", "NetUserModalsGet");
2982 ndr->depth++;
2983 ndr_print_string(ndr, "server_name", r->in.server_name);
2984 ndr_print_uint32(ndr, "level", r->in.level);
2985 ndr->depth--;
2987 if (flags & NDR_OUT) {
2988 ndr_print_struct(ndr, "out", "NetUserModalsGet");
2989 ndr->depth++;
2990 ndr_print_ptr(ndr, "buffer", r->out.buffer);
2991 ndr->depth++;
2992 ndr_print_ptr(ndr, "buffer", *r->out.buffer);
2993 ndr->depth++;
2994 if (*r->out.buffer) {
2995 ndr_print_uint8(ndr, "buffer", **r->out.buffer);
2997 ndr->depth--;
2998 ndr->depth--;
2999 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
3000 ndr->depth--;
3002 ndr->depth--;
3005 _PUBLIC_ void ndr_print_NetUserModalsSet(struct ndr_print *ndr, const char *name, int flags, const struct NetUserModalsSet *r)
3007 ndr_print_struct(ndr, name, "NetUserModalsSet");
3008 ndr->depth++;
3009 if (flags & NDR_SET_VALUES) {
3010 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3012 if (flags & NDR_IN) {
3013 ndr_print_struct(ndr, "in", "NetUserModalsSet");
3014 ndr->depth++;
3015 ndr_print_string(ndr, "server_name", r->in.server_name);
3016 ndr_print_uint32(ndr, "level", r->in.level);
3017 ndr_print_ptr(ndr, "buffer", r->in.buffer);
3018 ndr->depth++;
3019 ndr_print_uint8(ndr, "buffer", *r->in.buffer);
3020 ndr->depth--;
3021 ndr->depth--;
3023 if (flags & NDR_OUT) {
3024 ndr_print_struct(ndr, "out", "NetUserModalsSet");
3025 ndr->depth++;
3026 ndr_print_ptr(ndr, "parm_err", r->out.parm_err);
3027 ndr->depth++;
3028 ndr_print_uint32(ndr, "parm_err", *r->out.parm_err);
3029 ndr->depth--;
3030 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
3031 ndr->depth--;
3033 ndr->depth--;
3036 _PUBLIC_ void ndr_print_NetQueryDisplayInformation(struct ndr_print *ndr, const char *name, int flags, const struct NetQueryDisplayInformation *r)
3038 ndr_print_struct(ndr, name, "NetQueryDisplayInformation");
3039 ndr->depth++;
3040 if (flags & NDR_SET_VALUES) {
3041 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3043 if (flags & NDR_IN) {
3044 ndr_print_struct(ndr, "in", "NetQueryDisplayInformation");
3045 ndr->depth++;
3046 ndr_print_ptr(ndr, "server_name", r->in.server_name);
3047 ndr->depth++;
3048 if (r->in.server_name) {
3049 ndr_print_string(ndr, "server_name", r->in.server_name);
3051 ndr->depth--;
3052 ndr_print_uint32(ndr, "level", r->in.level);
3053 ndr_print_uint32(ndr, "idx", r->in.idx);
3054 ndr_print_uint32(ndr, "entries_requested", r->in.entries_requested);
3055 ndr_print_uint32(ndr, "prefmaxlen", r->in.prefmaxlen);
3056 ndr->depth--;
3058 if (flags & NDR_OUT) {
3059 ndr_print_struct(ndr, "out", "NetQueryDisplayInformation");
3060 ndr->depth++;
3061 ndr_print_ptr(ndr, "entries_read", r->out.entries_read);
3062 ndr->depth++;
3063 ndr_print_uint32(ndr, "entries_read", *r->out.entries_read);
3064 ndr->depth--;
3065 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
3066 ndr->depth--;
3068 ndr->depth--;
3071 _PUBLIC_ void ndr_print_NetGroupAdd(struct ndr_print *ndr, const char *name, int flags, const struct NetGroupAdd *r)
3073 ndr_print_struct(ndr, name, "NetGroupAdd");
3074 ndr->depth++;
3075 if (flags & NDR_SET_VALUES) {
3076 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3078 if (flags & NDR_IN) {
3079 ndr_print_struct(ndr, "in", "NetGroupAdd");
3080 ndr->depth++;
3081 ndr_print_string(ndr, "server_name", r->in.server_name);
3082 ndr_print_uint32(ndr, "level", r->in.level);
3083 ndr_print_ptr(ndr, "buffer", r->in.buffer);
3084 ndr->depth++;
3085 ndr_print_uint8(ndr, "buffer", *r->in.buffer);
3086 ndr->depth--;
3087 ndr->depth--;
3089 if (flags & NDR_OUT) {
3090 ndr_print_struct(ndr, "out", "NetGroupAdd");
3091 ndr->depth++;
3092 ndr_print_ptr(ndr, "parm_err", r->out.parm_err);
3093 ndr->depth++;
3094 ndr_print_uint32(ndr, "parm_err", *r->out.parm_err);
3095 ndr->depth--;
3096 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
3097 ndr->depth--;
3099 ndr->depth--;
3102 _PUBLIC_ void ndr_print_NetGroupDel(struct ndr_print *ndr, const char *name, int flags, const struct NetGroupDel *r)
3104 ndr_print_struct(ndr, name, "NetGroupDel");
3105 ndr->depth++;
3106 if (flags & NDR_SET_VALUES) {
3107 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3109 if (flags & NDR_IN) {
3110 ndr_print_struct(ndr, "in", "NetGroupDel");
3111 ndr->depth++;
3112 ndr_print_string(ndr, "server_name", r->in.server_name);
3113 ndr_print_string(ndr, "group_name", r->in.group_name);
3114 ndr->depth--;
3116 if (flags & NDR_OUT) {
3117 ndr_print_struct(ndr, "out", "NetGroupDel");
3118 ndr->depth++;
3119 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
3120 ndr->depth--;
3122 ndr->depth--;
3125 _PUBLIC_ void ndr_print_NetGroupEnum(struct ndr_print *ndr, const char *name, int flags, const struct NetGroupEnum *r)
3127 ndr_print_struct(ndr, name, "NetGroupEnum");
3128 ndr->depth++;
3129 if (flags & NDR_SET_VALUES) {
3130 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3132 if (flags & NDR_IN) {
3133 ndr_print_struct(ndr, "in", "NetGroupEnum");
3134 ndr->depth++;
3135 ndr_print_string(ndr, "server_name", r->in.server_name);
3136 ndr_print_uint32(ndr, "level", r->in.level);
3137 ndr_print_uint32(ndr, "prefmaxlen", r->in.prefmaxlen);
3138 ndr_print_ptr(ndr, "resume_handle", r->in.resume_handle);
3139 ndr->depth++;
3140 ndr_print_uint32(ndr, "resume_handle", *r->in.resume_handle);
3141 ndr->depth--;
3142 ndr->depth--;
3144 if (flags & NDR_OUT) {
3145 ndr_print_struct(ndr, "out", "NetGroupEnum");
3146 ndr->depth++;
3147 ndr_print_ptr(ndr, "buffer", r->out.buffer);
3148 ndr->depth++;
3149 ndr_print_ptr(ndr, "buffer", *r->out.buffer);
3150 ndr->depth++;
3151 if (*r->out.buffer) {
3152 ndr_print_uint8(ndr, "buffer", **r->out.buffer);
3154 ndr->depth--;
3155 ndr->depth--;
3156 ndr_print_ptr(ndr, "entries_read", r->out.entries_read);
3157 ndr->depth++;
3158 ndr_print_uint32(ndr, "entries_read", *r->out.entries_read);
3159 ndr->depth--;
3160 ndr_print_ptr(ndr, "total_entries", r->out.total_entries);
3161 ndr->depth++;
3162 ndr_print_uint32(ndr, "total_entries", *r->out.total_entries);
3163 ndr->depth--;
3164 ndr_print_ptr(ndr, "resume_handle", r->out.resume_handle);
3165 ndr->depth++;
3166 ndr_print_uint32(ndr, "resume_handle", *r->out.resume_handle);
3167 ndr->depth--;
3168 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
3169 ndr->depth--;
3171 ndr->depth--;
3174 _PUBLIC_ void ndr_print_NetGroupSetInfo(struct ndr_print *ndr, const char *name, int flags, const struct NetGroupSetInfo *r)
3176 ndr_print_struct(ndr, name, "NetGroupSetInfo");
3177 ndr->depth++;
3178 if (flags & NDR_SET_VALUES) {
3179 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3181 if (flags & NDR_IN) {
3182 ndr_print_struct(ndr, "in", "NetGroupSetInfo");
3183 ndr->depth++;
3184 ndr_print_string(ndr, "server_name", r->in.server_name);
3185 ndr_print_string(ndr, "group_name", r->in.group_name);
3186 ndr_print_uint32(ndr, "level", r->in.level);
3187 ndr_print_ptr(ndr, "buffer", r->in.buffer);
3188 ndr->depth++;
3189 ndr_print_uint8(ndr, "buffer", *r->in.buffer);
3190 ndr->depth--;
3191 ndr->depth--;
3193 if (flags & NDR_OUT) {
3194 ndr_print_struct(ndr, "out", "NetGroupSetInfo");
3195 ndr->depth++;
3196 ndr_print_ptr(ndr, "parm_err", r->out.parm_err);
3197 ndr->depth++;
3198 ndr_print_uint32(ndr, "parm_err", *r->out.parm_err);
3199 ndr->depth--;
3200 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
3201 ndr->depth--;
3203 ndr->depth--;
3206 _PUBLIC_ void ndr_print_NetGroupGetInfo(struct ndr_print *ndr, const char *name, int flags, const struct NetGroupGetInfo *r)
3208 ndr_print_struct(ndr, name, "NetGroupGetInfo");
3209 ndr->depth++;
3210 if (flags & NDR_SET_VALUES) {
3211 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3213 if (flags & NDR_IN) {
3214 ndr_print_struct(ndr, "in", "NetGroupGetInfo");
3215 ndr->depth++;
3216 ndr_print_string(ndr, "server_name", r->in.server_name);
3217 ndr_print_string(ndr, "group_name", r->in.group_name);
3218 ndr_print_uint32(ndr, "level", r->in.level);
3219 ndr->depth--;
3221 if (flags & NDR_OUT) {
3222 ndr_print_struct(ndr, "out", "NetGroupGetInfo");
3223 ndr->depth++;
3224 ndr_print_ptr(ndr, "buffer", r->out.buffer);
3225 ndr->depth++;
3226 ndr_print_ptr(ndr, "buffer", *r->out.buffer);
3227 ndr->depth++;
3228 if (*r->out.buffer) {
3229 ndr_print_uint8(ndr, "buffer", **r->out.buffer);
3231 ndr->depth--;
3232 ndr->depth--;
3233 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
3234 ndr->depth--;
3236 ndr->depth--;
3239 _PUBLIC_ void ndr_print_NetGroupAddUser(struct ndr_print *ndr, const char *name, int flags, const struct NetGroupAddUser *r)
3241 ndr_print_struct(ndr, name, "NetGroupAddUser");
3242 ndr->depth++;
3243 if (flags & NDR_SET_VALUES) {
3244 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3246 if (flags & NDR_IN) {
3247 ndr_print_struct(ndr, "in", "NetGroupAddUser");
3248 ndr->depth++;
3249 ndr_print_string(ndr, "server_name", r->in.server_name);
3250 ndr_print_string(ndr, "group_name", r->in.group_name);
3251 ndr_print_string(ndr, "user_name", r->in.user_name);
3252 ndr->depth--;
3254 if (flags & NDR_OUT) {
3255 ndr_print_struct(ndr, "out", "NetGroupAddUser");
3256 ndr->depth++;
3257 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
3258 ndr->depth--;
3260 ndr->depth--;
3263 _PUBLIC_ void ndr_print_NetGroupDelUser(struct ndr_print *ndr, const char *name, int flags, const struct NetGroupDelUser *r)
3265 ndr_print_struct(ndr, name, "NetGroupDelUser");
3266 ndr->depth++;
3267 if (flags & NDR_SET_VALUES) {
3268 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3270 if (flags & NDR_IN) {
3271 ndr_print_struct(ndr, "in", "NetGroupDelUser");
3272 ndr->depth++;
3273 ndr_print_string(ndr, "server_name", r->in.server_name);
3274 ndr_print_string(ndr, "group_name", r->in.group_name);
3275 ndr_print_string(ndr, "user_name", r->in.user_name);
3276 ndr->depth--;
3278 if (flags & NDR_OUT) {
3279 ndr_print_struct(ndr, "out", "NetGroupDelUser");
3280 ndr->depth++;
3281 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
3282 ndr->depth--;
3284 ndr->depth--;
3287 _PUBLIC_ void ndr_print_NetGroupGetUsers(struct ndr_print *ndr, const char *name, int flags, const struct NetGroupGetUsers *r)
3289 ndr_print_struct(ndr, name, "NetGroupGetUsers");
3290 ndr->depth++;
3291 if (flags & NDR_SET_VALUES) {
3292 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3294 if (flags & NDR_IN) {
3295 ndr_print_struct(ndr, "in", "NetGroupGetUsers");
3296 ndr->depth++;
3297 ndr_print_string(ndr, "server_name", r->in.server_name);
3298 ndr_print_string(ndr, "group_name", r->in.group_name);
3299 ndr_print_uint32(ndr, "level", r->in.level);
3300 ndr_print_uint32(ndr, "prefmaxlen", r->in.prefmaxlen);
3301 ndr_print_ptr(ndr, "resume_handle", r->in.resume_handle);
3302 ndr->depth++;
3303 ndr_print_uint32(ndr, "resume_handle", *r->in.resume_handle);
3304 ndr->depth--;
3305 ndr->depth--;
3307 if (flags & NDR_OUT) {
3308 ndr_print_struct(ndr, "out", "NetGroupGetUsers");
3309 ndr->depth++;
3310 ndr_print_ptr(ndr, "buffer", r->out.buffer);
3311 ndr->depth++;
3312 ndr_print_ptr(ndr, "buffer", *r->out.buffer);
3313 ndr->depth++;
3314 if (*r->out.buffer) {
3315 ndr_print_uint8(ndr, "buffer", **r->out.buffer);
3317 ndr->depth--;
3318 ndr->depth--;
3319 ndr_print_ptr(ndr, "entries_read", r->out.entries_read);
3320 ndr->depth++;
3321 ndr_print_uint32(ndr, "entries_read", *r->out.entries_read);
3322 ndr->depth--;
3323 ndr_print_ptr(ndr, "total_entries", r->out.total_entries);
3324 ndr->depth++;
3325 ndr_print_uint32(ndr, "total_entries", *r->out.total_entries);
3326 ndr->depth--;
3327 ndr_print_ptr(ndr, "resume_handle", r->out.resume_handle);
3328 ndr->depth++;
3329 ndr_print_uint32(ndr, "resume_handle", *r->out.resume_handle);
3330 ndr->depth--;
3331 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
3332 ndr->depth--;
3334 ndr->depth--;
3337 _PUBLIC_ void ndr_print_NetGroupSetUsers(struct ndr_print *ndr, const char *name, int flags, const struct NetGroupSetUsers *r)
3339 ndr_print_struct(ndr, name, "NetGroupSetUsers");
3340 ndr->depth++;
3341 if (flags & NDR_SET_VALUES) {
3342 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3344 if (flags & NDR_IN) {
3345 ndr_print_struct(ndr, "in", "NetGroupSetUsers");
3346 ndr->depth++;
3347 ndr_print_string(ndr, "server_name", r->in.server_name);
3348 ndr_print_string(ndr, "group_name", r->in.group_name);
3349 ndr_print_uint32(ndr, "level", r->in.level);
3350 ndr_print_ptr(ndr, "buffer", r->in.buffer);
3351 ndr->depth++;
3352 ndr_print_uint8(ndr, "buffer", *r->in.buffer);
3353 ndr->depth--;
3354 ndr_print_uint32(ndr, "num_entries", r->in.num_entries);
3355 ndr->depth--;
3357 if (flags & NDR_OUT) {
3358 ndr_print_struct(ndr, "out", "NetGroupSetUsers");
3359 ndr->depth++;
3360 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
3361 ndr->depth--;
3363 ndr->depth--;
3366 _PUBLIC_ void ndr_print_NetLocalGroupAdd(struct ndr_print *ndr, const char *name, int flags, const struct NetLocalGroupAdd *r)
3368 ndr_print_struct(ndr, name, "NetLocalGroupAdd");
3369 ndr->depth++;
3370 if (flags & NDR_SET_VALUES) {
3371 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3373 if (flags & NDR_IN) {
3374 ndr_print_struct(ndr, "in", "NetLocalGroupAdd");
3375 ndr->depth++;
3376 ndr_print_string(ndr, "server_name", r->in.server_name);
3377 ndr_print_uint32(ndr, "level", r->in.level);
3378 ndr_print_ptr(ndr, "buffer", r->in.buffer);
3379 ndr->depth++;
3380 ndr_print_uint8(ndr, "buffer", *r->in.buffer);
3381 ndr->depth--;
3382 ndr->depth--;
3384 if (flags & NDR_OUT) {
3385 ndr_print_struct(ndr, "out", "NetLocalGroupAdd");
3386 ndr->depth++;
3387 ndr_print_ptr(ndr, "parm_err", r->out.parm_err);
3388 ndr->depth++;
3389 ndr_print_uint32(ndr, "parm_err", *r->out.parm_err);
3390 ndr->depth--;
3391 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
3392 ndr->depth--;
3394 ndr->depth--;
3397 _PUBLIC_ void ndr_print_NetLocalGroupDel(struct ndr_print *ndr, const char *name, int flags, const struct NetLocalGroupDel *r)
3399 ndr_print_struct(ndr, name, "NetLocalGroupDel");
3400 ndr->depth++;
3401 if (flags & NDR_SET_VALUES) {
3402 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3404 if (flags & NDR_IN) {
3405 ndr_print_struct(ndr, "in", "NetLocalGroupDel");
3406 ndr->depth++;
3407 ndr_print_string(ndr, "server_name", r->in.server_name);
3408 ndr_print_string(ndr, "group_name", r->in.group_name);
3409 ndr->depth--;
3411 if (flags & NDR_OUT) {
3412 ndr_print_struct(ndr, "out", "NetLocalGroupDel");
3413 ndr->depth++;
3414 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
3415 ndr->depth--;
3417 ndr->depth--;
3420 _PUBLIC_ void ndr_print_NetLocalGroupGetInfo(struct ndr_print *ndr, const char *name, int flags, const struct NetLocalGroupGetInfo *r)
3422 ndr_print_struct(ndr, name, "NetLocalGroupGetInfo");
3423 ndr->depth++;
3424 if (flags & NDR_SET_VALUES) {
3425 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3427 if (flags & NDR_IN) {
3428 ndr_print_struct(ndr, "in", "NetLocalGroupGetInfo");
3429 ndr->depth++;
3430 ndr_print_string(ndr, "server_name", r->in.server_name);
3431 ndr_print_string(ndr, "group_name", r->in.group_name);
3432 ndr_print_uint32(ndr, "level", r->in.level);
3433 ndr->depth--;
3435 if (flags & NDR_OUT) {
3436 ndr_print_struct(ndr, "out", "NetLocalGroupGetInfo");
3437 ndr->depth++;
3438 ndr_print_ptr(ndr, "buffer", r->out.buffer);
3439 ndr->depth++;
3440 ndr_print_ptr(ndr, "buffer", *r->out.buffer);
3441 ndr->depth++;
3442 if (*r->out.buffer) {
3443 ndr_print_uint8(ndr, "buffer", **r->out.buffer);
3445 ndr->depth--;
3446 ndr->depth--;
3447 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
3448 ndr->depth--;
3450 ndr->depth--;
3453 _PUBLIC_ void ndr_print_NetLocalGroupSetInfo(struct ndr_print *ndr, const char *name, int flags, const struct NetLocalGroupSetInfo *r)
3455 ndr_print_struct(ndr, name, "NetLocalGroupSetInfo");
3456 ndr->depth++;
3457 if (flags & NDR_SET_VALUES) {
3458 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3460 if (flags & NDR_IN) {
3461 ndr_print_struct(ndr, "in", "NetLocalGroupSetInfo");
3462 ndr->depth++;
3463 ndr_print_string(ndr, "server_name", r->in.server_name);
3464 ndr_print_string(ndr, "group_name", r->in.group_name);
3465 ndr_print_uint32(ndr, "level", r->in.level);
3466 ndr_print_ptr(ndr, "buffer", r->in.buffer);
3467 ndr->depth++;
3468 ndr_print_uint8(ndr, "buffer", *r->in.buffer);
3469 ndr->depth--;
3470 ndr->depth--;
3472 if (flags & NDR_OUT) {
3473 ndr_print_struct(ndr, "out", "NetLocalGroupSetInfo");
3474 ndr->depth++;
3475 ndr_print_ptr(ndr, "parm_err", r->out.parm_err);
3476 ndr->depth++;
3477 ndr_print_uint32(ndr, "parm_err", *r->out.parm_err);
3478 ndr->depth--;
3479 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
3480 ndr->depth--;
3482 ndr->depth--;
3485 _PUBLIC_ void ndr_print_NetLocalGroupEnum(struct ndr_print *ndr, const char *name, int flags, const struct NetLocalGroupEnum *r)
3487 ndr_print_struct(ndr, name, "NetLocalGroupEnum");
3488 ndr->depth++;
3489 if (flags & NDR_SET_VALUES) {
3490 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3492 if (flags & NDR_IN) {
3493 ndr_print_struct(ndr, "in", "NetLocalGroupEnum");
3494 ndr->depth++;
3495 ndr_print_string(ndr, "server_name", r->in.server_name);
3496 ndr_print_uint32(ndr, "level", r->in.level);
3497 ndr_print_uint32(ndr, "prefmaxlen", r->in.prefmaxlen);
3498 ndr_print_ptr(ndr, "resume_handle", r->in.resume_handle);
3499 ndr->depth++;
3500 ndr_print_uint32(ndr, "resume_handle", *r->in.resume_handle);
3501 ndr->depth--;
3502 ndr->depth--;
3504 if (flags & NDR_OUT) {
3505 ndr_print_struct(ndr, "out", "NetLocalGroupEnum");
3506 ndr->depth++;
3507 ndr_print_ptr(ndr, "buffer", r->out.buffer);
3508 ndr->depth++;
3509 ndr_print_ptr(ndr, "buffer", *r->out.buffer);
3510 ndr->depth++;
3511 if (*r->out.buffer) {
3512 ndr_print_uint8(ndr, "buffer", **r->out.buffer);
3514 ndr->depth--;
3515 ndr->depth--;
3516 ndr_print_ptr(ndr, "entries_read", r->out.entries_read);
3517 ndr->depth++;
3518 ndr_print_uint32(ndr, "entries_read", *r->out.entries_read);
3519 ndr->depth--;
3520 ndr_print_ptr(ndr, "total_entries", r->out.total_entries);
3521 ndr->depth++;
3522 ndr_print_uint32(ndr, "total_entries", *r->out.total_entries);
3523 ndr->depth--;
3524 ndr_print_ptr(ndr, "resume_handle", r->out.resume_handle);
3525 ndr->depth++;
3526 ndr_print_uint32(ndr, "resume_handle", *r->out.resume_handle);
3527 ndr->depth--;
3528 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
3529 ndr->depth--;
3531 ndr->depth--;
3534 _PUBLIC_ void ndr_print_NetLocalGroupAddMembers(struct ndr_print *ndr, const char *name, int flags, const struct NetLocalGroupAddMembers *r)
3536 ndr_print_struct(ndr, name, "NetLocalGroupAddMembers");
3537 ndr->depth++;
3538 if (flags & NDR_SET_VALUES) {
3539 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3541 if (flags & NDR_IN) {
3542 ndr_print_struct(ndr, "in", "NetLocalGroupAddMembers");
3543 ndr->depth++;
3544 ndr_print_string(ndr, "server_name", r->in.server_name);
3545 ndr_print_string(ndr, "group_name", r->in.group_name);
3546 ndr_print_uint32(ndr, "level", r->in.level);
3547 ndr_print_ptr(ndr, "buffer", r->in.buffer);
3548 ndr->depth++;
3549 ndr_print_uint8(ndr, "buffer", *r->in.buffer);
3550 ndr->depth--;
3551 ndr_print_uint32(ndr, "total_entries", r->in.total_entries);
3552 ndr->depth--;
3554 if (flags & NDR_OUT) {
3555 ndr_print_struct(ndr, "out", "NetLocalGroupAddMembers");
3556 ndr->depth++;
3557 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
3558 ndr->depth--;
3560 ndr->depth--;
3563 _PUBLIC_ void ndr_print_NetLocalGroupDelMembers(struct ndr_print *ndr, const char *name, int flags, const struct NetLocalGroupDelMembers *r)
3565 ndr_print_struct(ndr, name, "NetLocalGroupDelMembers");
3566 ndr->depth++;
3567 if (flags & NDR_SET_VALUES) {
3568 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3570 if (flags & NDR_IN) {
3571 ndr_print_struct(ndr, "in", "NetLocalGroupDelMembers");
3572 ndr->depth++;
3573 ndr_print_string(ndr, "server_name", r->in.server_name);
3574 ndr_print_string(ndr, "group_name", r->in.group_name);
3575 ndr_print_uint32(ndr, "level", r->in.level);
3576 ndr_print_ptr(ndr, "buffer", r->in.buffer);
3577 ndr->depth++;
3578 ndr_print_uint8(ndr, "buffer", *r->in.buffer);
3579 ndr->depth--;
3580 ndr_print_uint32(ndr, "total_entries", r->in.total_entries);
3581 ndr->depth--;
3583 if (flags & NDR_OUT) {
3584 ndr_print_struct(ndr, "out", "NetLocalGroupDelMembers");
3585 ndr->depth++;
3586 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
3587 ndr->depth--;
3589 ndr->depth--;
3592 _PUBLIC_ void ndr_print_NetLocalGroupGetMembers(struct ndr_print *ndr, const char *name, int flags, const struct NetLocalGroupGetMembers *r)
3594 ndr_print_struct(ndr, name, "NetLocalGroupGetMembers");
3595 ndr->depth++;
3596 if (flags & NDR_SET_VALUES) {
3597 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3599 if (flags & NDR_IN) {
3600 ndr_print_struct(ndr, "in", "NetLocalGroupGetMembers");
3601 ndr->depth++;
3602 ndr_print_string(ndr, "server_name", r->in.server_name);
3603 ndr_print_string(ndr, "local_group_name", r->in.local_group_name);
3604 ndr_print_uint32(ndr, "level", r->in.level);
3605 ndr_print_uint32(ndr, "prefmaxlen", r->in.prefmaxlen);
3606 ndr_print_ptr(ndr, "resume_handle", r->in.resume_handle);
3607 ndr->depth++;
3608 ndr_print_uint32(ndr, "resume_handle", *r->in.resume_handle);
3609 ndr->depth--;
3610 ndr->depth--;
3612 if (flags & NDR_OUT) {
3613 ndr_print_struct(ndr, "out", "NetLocalGroupGetMembers");
3614 ndr->depth++;
3615 ndr_print_ptr(ndr, "buffer", r->out.buffer);
3616 ndr->depth++;
3617 ndr_print_ptr(ndr, "buffer", *r->out.buffer);
3618 ndr->depth++;
3619 if (*r->out.buffer) {
3620 ndr_print_uint8(ndr, "buffer", **r->out.buffer);
3622 ndr->depth--;
3623 ndr->depth--;
3624 ndr_print_ptr(ndr, "entries_read", r->out.entries_read);
3625 ndr->depth++;
3626 ndr_print_uint32(ndr, "entries_read", *r->out.entries_read);
3627 ndr->depth--;
3628 ndr_print_ptr(ndr, "total_entries", r->out.total_entries);
3629 ndr->depth++;
3630 ndr_print_uint32(ndr, "total_entries", *r->out.total_entries);
3631 ndr->depth--;
3632 ndr_print_ptr(ndr, "resume_handle", r->out.resume_handle);
3633 ndr->depth++;
3634 ndr_print_uint32(ndr, "resume_handle", *r->out.resume_handle);
3635 ndr->depth--;
3636 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
3637 ndr->depth--;
3639 ndr->depth--;
3642 _PUBLIC_ void ndr_print_NetLocalGroupSetMembers(struct ndr_print *ndr, const char *name, int flags, const struct NetLocalGroupSetMembers *r)
3644 ndr_print_struct(ndr, name, "NetLocalGroupSetMembers");
3645 ndr->depth++;
3646 if (flags & NDR_SET_VALUES) {
3647 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3649 if (flags & NDR_IN) {
3650 ndr_print_struct(ndr, "in", "NetLocalGroupSetMembers");
3651 ndr->depth++;
3652 ndr_print_string(ndr, "server_name", r->in.server_name);
3653 ndr_print_string(ndr, "group_name", r->in.group_name);
3654 ndr_print_uint32(ndr, "level", r->in.level);
3655 ndr_print_ptr(ndr, "buffer", r->in.buffer);
3656 ndr->depth++;
3657 ndr_print_uint8(ndr, "buffer", *r->in.buffer);
3658 ndr->depth--;
3659 ndr_print_uint32(ndr, "total_entries", r->in.total_entries);
3660 ndr->depth--;
3662 if (flags & NDR_OUT) {
3663 ndr_print_struct(ndr, "out", "NetLocalGroupSetMembers");
3664 ndr->depth++;
3665 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
3666 ndr->depth--;
3668 ndr->depth--;
3671 _PUBLIC_ void ndr_print_NetRemoteTOD(struct ndr_print *ndr, const char *name, int flags, const struct NetRemoteTOD *r)
3673 ndr_print_struct(ndr, name, "NetRemoteTOD");
3674 ndr->depth++;
3675 if (flags & NDR_SET_VALUES) {
3676 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3678 if (flags & NDR_IN) {
3679 ndr_print_struct(ndr, "in", "NetRemoteTOD");
3680 ndr->depth++;
3681 ndr_print_string(ndr, "server_name", r->in.server_name);
3682 ndr->depth--;
3684 if (flags & NDR_OUT) {
3685 ndr_print_struct(ndr, "out", "NetRemoteTOD");
3686 ndr->depth++;
3687 ndr_print_ptr(ndr, "buffer", r->out.buffer);
3688 ndr->depth++;
3689 ndr_print_ptr(ndr, "buffer", *r->out.buffer);
3690 ndr->depth++;
3691 if (*r->out.buffer) {
3692 ndr_print_uint8(ndr, "buffer", **r->out.buffer);
3694 ndr->depth--;
3695 ndr->depth--;
3696 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
3697 ndr->depth--;
3699 ndr->depth--;
3702 _PUBLIC_ void ndr_print_NetShareAdd(struct ndr_print *ndr, const char *name, int flags, const struct NetShareAdd *r)
3704 ndr_print_struct(ndr, name, "NetShareAdd");
3705 ndr->depth++;
3706 if (flags & NDR_SET_VALUES) {
3707 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3709 if (flags & NDR_IN) {
3710 ndr_print_struct(ndr, "in", "NetShareAdd");
3711 ndr->depth++;
3712 ndr_print_string(ndr, "server_name", r->in.server_name);
3713 ndr_print_uint32(ndr, "level", r->in.level);
3714 ndr_print_ptr(ndr, "buffer", r->in.buffer);
3715 ndr->depth++;
3716 ndr_print_uint8(ndr, "buffer", *r->in.buffer);
3717 ndr->depth--;
3718 ndr->depth--;
3720 if (flags & NDR_OUT) {
3721 ndr_print_struct(ndr, "out", "NetShareAdd");
3722 ndr->depth++;
3723 ndr_print_ptr(ndr, "parm_err", r->out.parm_err);
3724 ndr->depth++;
3725 ndr_print_uint32(ndr, "parm_err", *r->out.parm_err);
3726 ndr->depth--;
3727 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
3728 ndr->depth--;
3730 ndr->depth--;
3733 _PUBLIC_ void ndr_print_NetShareDel(struct ndr_print *ndr, const char *name, int flags, const struct NetShareDel *r)
3735 ndr_print_struct(ndr, name, "NetShareDel");
3736 ndr->depth++;
3737 if (flags & NDR_SET_VALUES) {
3738 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3740 if (flags & NDR_IN) {
3741 ndr_print_struct(ndr, "in", "NetShareDel");
3742 ndr->depth++;
3743 ndr_print_string(ndr, "server_name", r->in.server_name);
3744 ndr_print_string(ndr, "net_name", r->in.net_name);
3745 ndr_print_uint32(ndr, "reserved", r->in.reserved);
3746 ndr->depth--;
3748 if (flags & NDR_OUT) {
3749 ndr_print_struct(ndr, "out", "NetShareDel");
3750 ndr->depth++;
3751 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
3752 ndr->depth--;
3754 ndr->depth--;
3757 _PUBLIC_ void ndr_print_NetShareEnum(struct ndr_print *ndr, const char *name, int flags, const struct NetShareEnum *r)
3759 ndr_print_struct(ndr, name, "NetShareEnum");
3760 ndr->depth++;
3761 if (flags & NDR_SET_VALUES) {
3762 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3764 if (flags & NDR_IN) {
3765 ndr_print_struct(ndr, "in", "NetShareEnum");
3766 ndr->depth++;
3767 ndr_print_string(ndr, "server_name", r->in.server_name);
3768 ndr_print_uint32(ndr, "level", r->in.level);
3769 ndr_print_uint32(ndr, "prefmaxlen", r->in.prefmaxlen);
3770 ndr_print_ptr(ndr, "resume_handle", r->in.resume_handle);
3771 ndr->depth++;
3772 ndr_print_uint32(ndr, "resume_handle", *r->in.resume_handle);
3773 ndr->depth--;
3774 ndr->depth--;
3776 if (flags & NDR_OUT) {
3777 ndr_print_struct(ndr, "out", "NetShareEnum");
3778 ndr->depth++;
3779 ndr_print_ptr(ndr, "buffer", r->out.buffer);
3780 ndr->depth++;
3781 ndr_print_ptr(ndr, "buffer", *r->out.buffer);
3782 ndr->depth++;
3783 if (*r->out.buffer) {
3784 ndr_print_uint8(ndr, "buffer", **r->out.buffer);
3786 ndr->depth--;
3787 ndr->depth--;
3788 ndr_print_ptr(ndr, "entries_read", r->out.entries_read);
3789 ndr->depth++;
3790 ndr_print_uint32(ndr, "entries_read", *r->out.entries_read);
3791 ndr->depth--;
3792 ndr_print_ptr(ndr, "total_entries", r->out.total_entries);
3793 ndr->depth++;
3794 ndr_print_uint32(ndr, "total_entries", *r->out.total_entries);
3795 ndr->depth--;
3796 ndr_print_ptr(ndr, "resume_handle", r->out.resume_handle);
3797 ndr->depth++;
3798 ndr_print_uint32(ndr, "resume_handle", *r->out.resume_handle);
3799 ndr->depth--;
3800 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
3801 ndr->depth--;
3803 ndr->depth--;
3806 _PUBLIC_ void ndr_print_NetShareGetInfo(struct ndr_print *ndr, const char *name, int flags, const struct NetShareGetInfo *r)
3808 ndr_print_struct(ndr, name, "NetShareGetInfo");
3809 ndr->depth++;
3810 if (flags & NDR_SET_VALUES) {
3811 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3813 if (flags & NDR_IN) {
3814 ndr_print_struct(ndr, "in", "NetShareGetInfo");
3815 ndr->depth++;
3816 ndr_print_string(ndr, "server_name", r->in.server_name);
3817 ndr_print_string(ndr, "net_name", r->in.net_name);
3818 ndr_print_uint32(ndr, "level", r->in.level);
3819 ndr->depth--;
3821 if (flags & NDR_OUT) {
3822 ndr_print_struct(ndr, "out", "NetShareGetInfo");
3823 ndr->depth++;
3824 ndr_print_ptr(ndr, "buffer", r->out.buffer);
3825 ndr->depth++;
3826 ndr_print_ptr(ndr, "buffer", *r->out.buffer);
3827 ndr->depth++;
3828 if (*r->out.buffer) {
3829 ndr_print_uint8(ndr, "buffer", **r->out.buffer);
3831 ndr->depth--;
3832 ndr->depth--;
3833 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
3834 ndr->depth--;
3836 ndr->depth--;
3839 _PUBLIC_ void ndr_print_NetShareSetInfo(struct ndr_print *ndr, const char *name, int flags, const struct NetShareSetInfo *r)
3841 ndr_print_struct(ndr, name, "NetShareSetInfo");
3842 ndr->depth++;
3843 if (flags & NDR_SET_VALUES) {
3844 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3846 if (flags & NDR_IN) {
3847 ndr_print_struct(ndr, "in", "NetShareSetInfo");
3848 ndr->depth++;
3849 ndr_print_string(ndr, "server_name", r->in.server_name);
3850 ndr_print_string(ndr, "net_name", r->in.net_name);
3851 ndr_print_uint32(ndr, "level", r->in.level);
3852 ndr_print_ptr(ndr, "buffer", r->in.buffer);
3853 ndr->depth++;
3854 ndr_print_uint8(ndr, "buffer", *r->in.buffer);
3855 ndr->depth--;
3856 ndr->depth--;
3858 if (flags & NDR_OUT) {
3859 ndr_print_struct(ndr, "out", "NetShareSetInfo");
3860 ndr->depth++;
3861 ndr_print_ptr(ndr, "parm_err", r->out.parm_err);
3862 ndr->depth++;
3863 ndr_print_uint32(ndr, "parm_err", *r->out.parm_err);
3864 ndr->depth--;
3865 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
3866 ndr->depth--;
3868 ndr->depth--;
3871 _PUBLIC_ void ndr_print_NetFileClose(struct ndr_print *ndr, const char *name, int flags, const struct NetFileClose *r)
3873 ndr_print_struct(ndr, name, "NetFileClose");
3874 ndr->depth++;
3875 if (flags & NDR_SET_VALUES) {
3876 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3878 if (flags & NDR_IN) {
3879 ndr_print_struct(ndr, "in", "NetFileClose");
3880 ndr->depth++;
3881 ndr_print_string(ndr, "server_name", r->in.server_name);
3882 ndr_print_uint32(ndr, "fileid", r->in.fileid);
3883 ndr->depth--;
3885 if (flags & NDR_OUT) {
3886 ndr_print_struct(ndr, "out", "NetFileClose");
3887 ndr->depth++;
3888 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
3889 ndr->depth--;
3891 ndr->depth--;
3894 _PUBLIC_ void ndr_print_NetFileGetInfo(struct ndr_print *ndr, const char *name, int flags, const struct NetFileGetInfo *r)
3896 ndr_print_struct(ndr, name, "NetFileGetInfo");
3897 ndr->depth++;
3898 if (flags & NDR_SET_VALUES) {
3899 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3901 if (flags & NDR_IN) {
3902 ndr_print_struct(ndr, "in", "NetFileGetInfo");
3903 ndr->depth++;
3904 ndr_print_string(ndr, "server_name", r->in.server_name);
3905 ndr_print_uint32(ndr, "fileid", r->in.fileid);
3906 ndr_print_uint32(ndr, "level", r->in.level);
3907 ndr->depth--;
3909 if (flags & NDR_OUT) {
3910 ndr_print_struct(ndr, "out", "NetFileGetInfo");
3911 ndr->depth++;
3912 ndr_print_ptr(ndr, "buffer", r->out.buffer);
3913 ndr->depth++;
3914 ndr_print_ptr(ndr, "buffer", *r->out.buffer);
3915 ndr->depth++;
3916 if (*r->out.buffer) {
3917 ndr_print_uint8(ndr, "buffer", **r->out.buffer);
3919 ndr->depth--;
3920 ndr->depth--;
3921 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
3922 ndr->depth--;
3924 ndr->depth--;
3927 _PUBLIC_ void ndr_print_NetFileEnum(struct ndr_print *ndr, const char *name, int flags, const struct NetFileEnum *r)
3929 ndr_print_struct(ndr, name, "NetFileEnum");
3930 ndr->depth++;
3931 if (flags & NDR_SET_VALUES) {
3932 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3934 if (flags & NDR_IN) {
3935 ndr_print_struct(ndr, "in", "NetFileEnum");
3936 ndr->depth++;
3937 ndr_print_string(ndr, "server_name", r->in.server_name);
3938 ndr_print_string(ndr, "base_path", r->in.base_path);
3939 ndr_print_string(ndr, "user_name", r->in.user_name);
3940 ndr_print_uint32(ndr, "level", r->in.level);
3941 ndr_print_uint32(ndr, "prefmaxlen", r->in.prefmaxlen);
3942 ndr_print_ptr(ndr, "resume_handle", r->in.resume_handle);
3943 ndr->depth++;
3944 ndr_print_uint32(ndr, "resume_handle", *r->in.resume_handle);
3945 ndr->depth--;
3946 ndr->depth--;
3948 if (flags & NDR_OUT) {
3949 ndr_print_struct(ndr, "out", "NetFileEnum");
3950 ndr->depth++;
3951 ndr_print_ptr(ndr, "buffer", r->out.buffer);
3952 ndr->depth++;
3953 ndr_print_ptr(ndr, "buffer", *r->out.buffer);
3954 ndr->depth++;
3955 if (*r->out.buffer) {
3956 ndr_print_uint8(ndr, "buffer", **r->out.buffer);
3958 ndr->depth--;
3959 ndr->depth--;
3960 ndr_print_ptr(ndr, "entries_read", r->out.entries_read);
3961 ndr->depth++;
3962 ndr_print_uint32(ndr, "entries_read", *r->out.entries_read);
3963 ndr->depth--;
3964 ndr_print_ptr(ndr, "total_entries", r->out.total_entries);
3965 ndr->depth++;
3966 ndr_print_uint32(ndr, "total_entries", *r->out.total_entries);
3967 ndr->depth--;
3968 ndr_print_ptr(ndr, "resume_handle", r->out.resume_handle);
3969 ndr->depth++;
3970 ndr_print_uint32(ndr, "resume_handle", *r->out.resume_handle);
3971 ndr->depth--;
3972 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
3973 ndr->depth--;
3975 ndr->depth--;