re-run make idl.
[Samba.git] / source / librpc / gen_ndr / ndr_libnetapi.c
blob4f2579f256d08702b7d59c018853443d40ddab7b
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_1005(struct ndr_push *ndr, int ndr_flags, const struct SERVER_INFO_1005 *r)
125 if (ndr_flags & NDR_SCALARS) {
126 NDR_CHECK(ndr_push_align(ndr, 4));
127 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->sv1005_comment));
129 if (ndr_flags & NDR_BUFFERS) {
131 return NDR_ERR_SUCCESS;
134 _PUBLIC_ enum ndr_err_code ndr_pull_SERVER_INFO_1005(struct ndr_pull *ndr, int ndr_flags, struct SERVER_INFO_1005 *r)
136 if (ndr_flags & NDR_SCALARS) {
137 NDR_CHECK(ndr_pull_align(ndr, 4));
138 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->sv1005_comment));
140 if (ndr_flags & NDR_BUFFERS) {
142 return NDR_ERR_SUCCESS;
145 _PUBLIC_ void ndr_print_SERVER_INFO_1005(struct ndr_print *ndr, const char *name, const struct SERVER_INFO_1005 *r)
147 ndr_print_struct(ndr, name, "SERVER_INFO_1005");
148 ndr->depth++;
149 ndr_print_string(ndr, "sv1005_comment", r->sv1005_comment);
150 ndr->depth--;
153 _PUBLIC_ enum ndr_err_code ndr_push_DOMAIN_CONTROLLER_INFO(struct ndr_push *ndr, int ndr_flags, const struct DOMAIN_CONTROLLER_INFO *r)
155 if (ndr_flags & NDR_SCALARS) {
156 NDR_CHECK(ndr_push_align(ndr, 4));
157 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->domain_controller_name));
158 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->domain_controller_address));
159 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->domain_controller_address_type));
160 NDR_CHECK(ndr_push_GUID(ndr, NDR_SCALARS, &r->domain_guid));
161 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->domain_name));
162 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->dns_forest_name));
163 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->flags));
164 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->dc_site_name));
165 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->client_site_name));
167 if (ndr_flags & NDR_BUFFERS) {
169 return NDR_ERR_SUCCESS;
172 _PUBLIC_ enum ndr_err_code ndr_pull_DOMAIN_CONTROLLER_INFO(struct ndr_pull *ndr, int ndr_flags, struct DOMAIN_CONTROLLER_INFO *r)
174 if (ndr_flags & NDR_SCALARS) {
175 NDR_CHECK(ndr_pull_align(ndr, 4));
176 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->domain_controller_name));
177 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->domain_controller_address));
178 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->domain_controller_address_type));
179 NDR_CHECK(ndr_pull_GUID(ndr, NDR_SCALARS, &r->domain_guid));
180 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->domain_name));
181 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->dns_forest_name));
182 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->flags));
183 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->dc_site_name));
184 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->client_site_name));
186 if (ndr_flags & NDR_BUFFERS) {
188 return NDR_ERR_SUCCESS;
191 _PUBLIC_ void ndr_print_DOMAIN_CONTROLLER_INFO(struct ndr_print *ndr, const char *name, const struct DOMAIN_CONTROLLER_INFO *r)
193 ndr_print_struct(ndr, name, "DOMAIN_CONTROLLER_INFO");
194 ndr->depth++;
195 ndr_print_string(ndr, "domain_controller_name", r->domain_controller_name);
196 ndr_print_string(ndr, "domain_controller_address", r->domain_controller_address);
197 ndr_print_uint32(ndr, "domain_controller_address_type", r->domain_controller_address_type);
198 ndr_print_GUID(ndr, "domain_guid", &r->domain_guid);
199 ndr_print_string(ndr, "domain_name", r->domain_name);
200 ndr_print_string(ndr, "dns_forest_name", r->dns_forest_name);
201 ndr_print_uint32(ndr, "flags", r->flags);
202 ndr_print_string(ndr, "dc_site_name", r->dc_site_name);
203 ndr_print_string(ndr, "client_site_name", r->client_site_name);
204 ndr->depth--;
207 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_0(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_0 *r)
209 if (ndr_flags & NDR_SCALARS) {
210 NDR_CHECK(ndr_push_align(ndr, 4));
211 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri0_name));
213 if (ndr_flags & NDR_BUFFERS) {
215 return NDR_ERR_SUCCESS;
218 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_0(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_0 *r)
220 if (ndr_flags & NDR_SCALARS) {
221 NDR_CHECK(ndr_pull_align(ndr, 4));
222 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri0_name));
224 if (ndr_flags & NDR_BUFFERS) {
226 return NDR_ERR_SUCCESS;
229 _PUBLIC_ void ndr_print_USER_INFO_0(struct ndr_print *ndr, const char *name, const struct USER_INFO_0 *r)
231 ndr_print_struct(ndr, name, "USER_INFO_0");
232 ndr->depth++;
233 ndr_print_string(ndr, "usri0_name", r->usri0_name);
234 ndr->depth--;
237 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_1(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_1 *r)
239 if (ndr_flags & NDR_SCALARS) {
240 NDR_CHECK(ndr_push_align(ndr, 4));
241 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1_name));
242 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1_password));
243 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri1_password_age));
244 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri1_priv));
245 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1_home_dir));
246 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1_comment));
247 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri1_flags));
248 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1_script_path));
250 if (ndr_flags & NDR_BUFFERS) {
252 return NDR_ERR_SUCCESS;
255 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_1(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_1 *r)
257 if (ndr_flags & NDR_SCALARS) {
258 NDR_CHECK(ndr_pull_align(ndr, 4));
259 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1_name));
260 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1_password));
261 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri1_password_age));
262 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri1_priv));
263 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1_home_dir));
264 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1_comment));
265 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri1_flags));
266 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1_script_path));
268 if (ndr_flags & NDR_BUFFERS) {
270 return NDR_ERR_SUCCESS;
273 _PUBLIC_ void ndr_print_USER_INFO_1(struct ndr_print *ndr, const char *name, const struct USER_INFO_1 *r)
275 ndr_print_struct(ndr, name, "USER_INFO_1");
276 ndr->depth++;
277 ndr_print_string(ndr, "usri1_name", r->usri1_name);
278 ndr_print_string(ndr, "usri1_password", r->usri1_password);
279 ndr_print_uint32(ndr, "usri1_password_age", r->usri1_password_age);
280 ndr_print_uint32(ndr, "usri1_priv", r->usri1_priv);
281 ndr_print_string(ndr, "usri1_home_dir", r->usri1_home_dir);
282 ndr_print_string(ndr, "usri1_comment", r->usri1_comment);
283 ndr_print_uint32(ndr, "usri1_flags", r->usri1_flags);
284 ndr_print_string(ndr, "usri1_script_path", r->usri1_script_path);
285 ndr->depth--;
288 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_2(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_2 *r)
290 if (ndr_flags & NDR_SCALARS) {
291 NDR_CHECK(ndr_push_align(ndr, 4));
292 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri2_name));
293 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri2_password));
294 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri2_password_age));
295 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri2_priv));
296 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri2_home_dir));
297 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri2_comment));
298 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri2_flags));
299 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri2_script_path));
300 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri2_auth_flags));
301 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri2_full_name));
302 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri2_usr_comment));
303 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri2_parms));
304 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri2_workstations));
305 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri2_last_logon));
306 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri2_last_logoff));
307 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri2_acct_expires));
308 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri2_max_storage));
309 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri2_units_per_week));
310 NDR_CHECK(ndr_push_unique_ptr(ndr, r->usri2_logon_hours));
311 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri2_bad_pw_count));
312 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri2_num_logons));
313 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri2_logon_server));
314 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri2_country_code));
315 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri2_code_page));
317 if (ndr_flags & NDR_BUFFERS) {
318 if (r->usri2_logon_hours) {
319 NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, *r->usri2_logon_hours));
322 return NDR_ERR_SUCCESS;
325 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_2(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_2 *r)
327 uint32_t _ptr_usri2_logon_hours;
328 TALLOC_CTX *_mem_save_usri2_logon_hours_0;
329 if (ndr_flags & NDR_SCALARS) {
330 NDR_CHECK(ndr_pull_align(ndr, 4));
331 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri2_name));
332 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri2_password));
333 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri2_password_age));
334 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri2_priv));
335 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri2_home_dir));
336 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri2_comment));
337 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri2_flags));
338 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri2_script_path));
339 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri2_auth_flags));
340 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri2_full_name));
341 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri2_usr_comment));
342 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri2_parms));
343 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri2_workstations));
344 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri2_last_logon));
345 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri2_last_logoff));
346 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri2_acct_expires));
347 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri2_max_storage));
348 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri2_units_per_week));
349 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_usri2_logon_hours));
350 if (_ptr_usri2_logon_hours) {
351 NDR_PULL_ALLOC(ndr, r->usri2_logon_hours);
352 } else {
353 r->usri2_logon_hours = NULL;
355 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri2_bad_pw_count));
356 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri2_num_logons));
357 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri2_logon_server));
358 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri2_country_code));
359 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri2_code_page));
361 if (ndr_flags & NDR_BUFFERS) {
362 if (r->usri2_logon_hours) {
363 _mem_save_usri2_logon_hours_0 = NDR_PULL_GET_MEM_CTX(ndr);
364 NDR_PULL_SET_MEM_CTX(ndr, r->usri2_logon_hours, 0);
365 NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, r->usri2_logon_hours));
366 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_usri2_logon_hours_0, 0);
369 return NDR_ERR_SUCCESS;
372 _PUBLIC_ void ndr_print_USER_INFO_2(struct ndr_print *ndr, const char *name, const struct USER_INFO_2 *r)
374 ndr_print_struct(ndr, name, "USER_INFO_2");
375 ndr->depth++;
376 ndr_print_string(ndr, "usri2_name", r->usri2_name);
377 ndr_print_string(ndr, "usri2_password", r->usri2_password);
378 ndr_print_uint32(ndr, "usri2_password_age", r->usri2_password_age);
379 ndr_print_uint32(ndr, "usri2_priv", r->usri2_priv);
380 ndr_print_string(ndr, "usri2_home_dir", r->usri2_home_dir);
381 ndr_print_string(ndr, "usri2_comment", r->usri2_comment);
382 ndr_print_uint32(ndr, "usri2_flags", r->usri2_flags);
383 ndr_print_string(ndr, "usri2_script_path", r->usri2_script_path);
384 ndr_print_uint32(ndr, "usri2_auth_flags", r->usri2_auth_flags);
385 ndr_print_string(ndr, "usri2_full_name", r->usri2_full_name);
386 ndr_print_string(ndr, "usri2_usr_comment", r->usri2_usr_comment);
387 ndr_print_string(ndr, "usri2_parms", r->usri2_parms);
388 ndr_print_string(ndr, "usri2_workstations", r->usri2_workstations);
389 ndr_print_uint32(ndr, "usri2_last_logon", r->usri2_last_logon);
390 ndr_print_uint32(ndr, "usri2_last_logoff", r->usri2_last_logoff);
391 ndr_print_uint32(ndr, "usri2_acct_expires", r->usri2_acct_expires);
392 ndr_print_uint32(ndr, "usri2_max_storage", r->usri2_max_storage);
393 ndr_print_uint32(ndr, "usri2_units_per_week", r->usri2_units_per_week);
394 ndr_print_ptr(ndr, "usri2_logon_hours", r->usri2_logon_hours);
395 ndr->depth++;
396 if (r->usri2_logon_hours) {
397 ndr_print_uint8(ndr, "usri2_logon_hours", *r->usri2_logon_hours);
399 ndr->depth--;
400 ndr_print_uint32(ndr, "usri2_bad_pw_count", r->usri2_bad_pw_count);
401 ndr_print_uint32(ndr, "usri2_num_logons", r->usri2_num_logons);
402 ndr_print_string(ndr, "usri2_logon_server", r->usri2_logon_server);
403 ndr_print_uint32(ndr, "usri2_country_code", r->usri2_country_code);
404 ndr_print_uint32(ndr, "usri2_code_page", r->usri2_code_page);
405 ndr->depth--;
408 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_3(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_3 *r)
410 if (ndr_flags & NDR_SCALARS) {
411 NDR_CHECK(ndr_push_align(ndr, 4));
412 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri3_name));
413 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri3_password_age));
414 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri3_priv));
415 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri3_home_dir));
416 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri3_comment));
417 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri3_flags));
418 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri3_script_path));
419 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri3_auth_flags));
420 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri3_full_name));
421 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri3_usr_comment));
422 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri3_parms));
423 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri3_workstations));
424 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri3_last_logon));
425 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri3_last_logoff));
426 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri3_acct_expires));
427 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri3_max_storage));
428 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri3_units_per_week));
429 NDR_CHECK(ndr_push_unique_ptr(ndr, r->usri3_logon_hours));
430 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri3_bad_pw_count));
431 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri3_num_logons));
432 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri3_logon_server));
433 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri3_country_code));
434 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri3_code_page));
435 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri3_user_id));
436 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri3_primary_group_id));
437 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri3_profile));
438 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri3_home_dir_drive));
439 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri3_password_expired));
441 if (ndr_flags & NDR_BUFFERS) {
442 if (r->usri3_logon_hours) {
443 NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, *r->usri3_logon_hours));
446 return NDR_ERR_SUCCESS;
449 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_3(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_3 *r)
451 uint32_t _ptr_usri3_logon_hours;
452 TALLOC_CTX *_mem_save_usri3_logon_hours_0;
453 if (ndr_flags & NDR_SCALARS) {
454 NDR_CHECK(ndr_pull_align(ndr, 4));
455 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri3_name));
456 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri3_password_age));
457 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri3_priv));
458 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri3_home_dir));
459 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri3_comment));
460 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri3_flags));
461 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri3_script_path));
462 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri3_auth_flags));
463 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri3_full_name));
464 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri3_usr_comment));
465 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri3_parms));
466 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri3_workstations));
467 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri3_last_logon));
468 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri3_last_logoff));
469 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri3_acct_expires));
470 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri3_max_storage));
471 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri3_units_per_week));
472 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_usri3_logon_hours));
473 if (_ptr_usri3_logon_hours) {
474 NDR_PULL_ALLOC(ndr, r->usri3_logon_hours);
475 } else {
476 r->usri3_logon_hours = NULL;
478 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri3_bad_pw_count));
479 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri3_num_logons));
480 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri3_logon_server));
481 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri3_country_code));
482 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri3_code_page));
483 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri3_user_id));
484 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri3_primary_group_id));
485 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri3_profile));
486 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri3_home_dir_drive));
487 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri3_password_expired));
489 if (ndr_flags & NDR_BUFFERS) {
490 if (r->usri3_logon_hours) {
491 _mem_save_usri3_logon_hours_0 = NDR_PULL_GET_MEM_CTX(ndr);
492 NDR_PULL_SET_MEM_CTX(ndr, r->usri3_logon_hours, 0);
493 NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, r->usri3_logon_hours));
494 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_usri3_logon_hours_0, 0);
497 return NDR_ERR_SUCCESS;
500 _PUBLIC_ void ndr_print_USER_INFO_3(struct ndr_print *ndr, const char *name, const struct USER_INFO_3 *r)
502 ndr_print_struct(ndr, name, "USER_INFO_3");
503 ndr->depth++;
504 ndr_print_string(ndr, "usri3_name", r->usri3_name);
505 ndr_print_uint32(ndr, "usri3_password_age", r->usri3_password_age);
506 ndr_print_uint32(ndr, "usri3_priv", r->usri3_priv);
507 ndr_print_string(ndr, "usri3_home_dir", r->usri3_home_dir);
508 ndr_print_string(ndr, "usri3_comment", r->usri3_comment);
509 ndr_print_uint32(ndr, "usri3_flags", r->usri3_flags);
510 ndr_print_string(ndr, "usri3_script_path", r->usri3_script_path);
511 ndr_print_uint32(ndr, "usri3_auth_flags", r->usri3_auth_flags);
512 ndr_print_string(ndr, "usri3_full_name", r->usri3_full_name);
513 ndr_print_string(ndr, "usri3_usr_comment", r->usri3_usr_comment);
514 ndr_print_string(ndr, "usri3_parms", r->usri3_parms);
515 ndr_print_string(ndr, "usri3_workstations", r->usri3_workstations);
516 ndr_print_uint32(ndr, "usri3_last_logon", r->usri3_last_logon);
517 ndr_print_uint32(ndr, "usri3_last_logoff", r->usri3_last_logoff);
518 ndr_print_uint32(ndr, "usri3_acct_expires", r->usri3_acct_expires);
519 ndr_print_uint32(ndr, "usri3_max_storage", r->usri3_max_storage);
520 ndr_print_uint32(ndr, "usri3_units_per_week", r->usri3_units_per_week);
521 ndr_print_ptr(ndr, "usri3_logon_hours", r->usri3_logon_hours);
522 ndr->depth++;
523 if (r->usri3_logon_hours) {
524 ndr_print_uint8(ndr, "usri3_logon_hours", *r->usri3_logon_hours);
526 ndr->depth--;
527 ndr_print_uint32(ndr, "usri3_bad_pw_count", r->usri3_bad_pw_count);
528 ndr_print_uint32(ndr, "usri3_num_logons", r->usri3_num_logons);
529 ndr_print_string(ndr, "usri3_logon_server", r->usri3_logon_server);
530 ndr_print_uint32(ndr, "usri3_country_code", r->usri3_country_code);
531 ndr_print_uint32(ndr, "usri3_code_page", r->usri3_code_page);
532 ndr_print_uint32(ndr, "usri3_user_id", r->usri3_user_id);
533 ndr_print_uint32(ndr, "usri3_primary_group_id", r->usri3_primary_group_id);
534 ndr_print_string(ndr, "usri3_profile", r->usri3_profile);
535 ndr_print_string(ndr, "usri3_home_dir_drive", r->usri3_home_dir_drive);
536 ndr_print_uint32(ndr, "usri3_password_expired", r->usri3_password_expired);
537 ndr->depth--;
540 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_4(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_4 *r)
542 if (ndr_flags & NDR_SCALARS) {
543 NDR_CHECK(ndr_push_align(ndr, 4));
544 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri4_name));
545 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri4_password));
546 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri4_password_age));
547 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri4_priv));
548 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri4_home_dir));
549 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri4_comment));
550 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri4_flags));
551 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri4_script_path));
552 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri4_auth_flags));
553 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri4_full_name));
554 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri4_usr_comment));
555 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri4_parms));
556 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri4_workstations));
557 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri4_last_logon));
558 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri4_last_logoff));
559 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri4_acct_expires));
560 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri4_max_storage));
561 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri4_units_per_week));
562 NDR_CHECK(ndr_push_unique_ptr(ndr, r->usri4_logon_hours));
563 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri4_bad_pw_count));
564 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri4_num_logons));
565 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri4_logon_server));
566 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri4_country_code));
567 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri4_code_page));
568 NDR_CHECK(ndr_push_unique_ptr(ndr, r->usri4_user_sid));
569 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri4_primary_group_id));
570 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri4_profile));
571 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri4_home_dir_drive));
572 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri4_password_expired));
574 if (ndr_flags & NDR_BUFFERS) {
575 if (r->usri4_logon_hours) {
576 NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, *r->usri4_logon_hours));
578 if (r->usri4_user_sid) {
579 NDR_CHECK(ndr_push_domsid(ndr, NDR_SCALARS, r->usri4_user_sid));
582 return NDR_ERR_SUCCESS;
585 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_4(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_4 *r)
587 uint32_t _ptr_usri4_logon_hours;
588 TALLOC_CTX *_mem_save_usri4_logon_hours_0;
589 uint32_t _ptr_usri4_user_sid;
590 TALLOC_CTX *_mem_save_usri4_user_sid_0;
591 if (ndr_flags & NDR_SCALARS) {
592 NDR_CHECK(ndr_pull_align(ndr, 4));
593 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri4_name));
594 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri4_password));
595 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri4_password_age));
596 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri4_priv));
597 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri4_home_dir));
598 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri4_comment));
599 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri4_flags));
600 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri4_script_path));
601 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri4_auth_flags));
602 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri4_full_name));
603 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri4_usr_comment));
604 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri4_parms));
605 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri4_workstations));
606 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri4_last_logon));
607 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri4_last_logoff));
608 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri4_acct_expires));
609 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri4_max_storage));
610 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri4_units_per_week));
611 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_usri4_logon_hours));
612 if (_ptr_usri4_logon_hours) {
613 NDR_PULL_ALLOC(ndr, r->usri4_logon_hours);
614 } else {
615 r->usri4_logon_hours = NULL;
617 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri4_bad_pw_count));
618 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri4_num_logons));
619 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri4_logon_server));
620 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri4_country_code));
621 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri4_code_page));
622 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_usri4_user_sid));
623 if (_ptr_usri4_user_sid) {
624 NDR_PULL_ALLOC(ndr, r->usri4_user_sid);
625 } else {
626 r->usri4_user_sid = NULL;
628 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri4_primary_group_id));
629 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri4_profile));
630 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri4_home_dir_drive));
631 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri4_password_expired));
633 if (ndr_flags & NDR_BUFFERS) {
634 if (r->usri4_logon_hours) {
635 _mem_save_usri4_logon_hours_0 = NDR_PULL_GET_MEM_CTX(ndr);
636 NDR_PULL_SET_MEM_CTX(ndr, r->usri4_logon_hours, 0);
637 NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, r->usri4_logon_hours));
638 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_usri4_logon_hours_0, 0);
640 if (r->usri4_user_sid) {
641 _mem_save_usri4_user_sid_0 = NDR_PULL_GET_MEM_CTX(ndr);
642 NDR_PULL_SET_MEM_CTX(ndr, r->usri4_user_sid, 0);
643 NDR_CHECK(ndr_pull_domsid(ndr, NDR_SCALARS, r->usri4_user_sid));
644 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_usri4_user_sid_0, 0);
647 return NDR_ERR_SUCCESS;
650 _PUBLIC_ void ndr_print_USER_INFO_4(struct ndr_print *ndr, const char *name, const struct USER_INFO_4 *r)
652 ndr_print_struct(ndr, name, "USER_INFO_4");
653 ndr->depth++;
654 ndr_print_string(ndr, "usri4_name", r->usri4_name);
655 ndr_print_string(ndr, "usri4_password", r->usri4_password);
656 ndr_print_uint32(ndr, "usri4_password_age", r->usri4_password_age);
657 ndr_print_uint32(ndr, "usri4_priv", r->usri4_priv);
658 ndr_print_string(ndr, "usri4_home_dir", r->usri4_home_dir);
659 ndr_print_string(ndr, "usri4_comment", r->usri4_comment);
660 ndr_print_uint32(ndr, "usri4_flags", r->usri4_flags);
661 ndr_print_string(ndr, "usri4_script_path", r->usri4_script_path);
662 ndr_print_uint32(ndr, "usri4_auth_flags", r->usri4_auth_flags);
663 ndr_print_string(ndr, "usri4_full_name", r->usri4_full_name);
664 ndr_print_string(ndr, "usri4_usr_comment", r->usri4_usr_comment);
665 ndr_print_string(ndr, "usri4_parms", r->usri4_parms);
666 ndr_print_string(ndr, "usri4_workstations", r->usri4_workstations);
667 ndr_print_uint32(ndr, "usri4_last_logon", r->usri4_last_logon);
668 ndr_print_uint32(ndr, "usri4_last_logoff", r->usri4_last_logoff);
669 ndr_print_uint32(ndr, "usri4_acct_expires", r->usri4_acct_expires);
670 ndr_print_uint32(ndr, "usri4_max_storage", r->usri4_max_storage);
671 ndr_print_uint32(ndr, "usri4_units_per_week", r->usri4_units_per_week);
672 ndr_print_ptr(ndr, "usri4_logon_hours", r->usri4_logon_hours);
673 ndr->depth++;
674 if (r->usri4_logon_hours) {
675 ndr_print_uint8(ndr, "usri4_logon_hours", *r->usri4_logon_hours);
677 ndr->depth--;
678 ndr_print_uint32(ndr, "usri4_bad_pw_count", r->usri4_bad_pw_count);
679 ndr_print_uint32(ndr, "usri4_num_logons", r->usri4_num_logons);
680 ndr_print_string(ndr, "usri4_logon_server", r->usri4_logon_server);
681 ndr_print_uint32(ndr, "usri4_country_code", r->usri4_country_code);
682 ndr_print_uint32(ndr, "usri4_code_page", r->usri4_code_page);
683 ndr_print_ptr(ndr, "usri4_user_sid", r->usri4_user_sid);
684 ndr->depth++;
685 if (r->usri4_user_sid) {
686 ndr_print_domsid(ndr, "usri4_user_sid", r->usri4_user_sid);
688 ndr->depth--;
689 ndr_print_uint32(ndr, "usri4_primary_group_id", r->usri4_primary_group_id);
690 ndr_print_string(ndr, "usri4_profile", r->usri4_profile);
691 ndr_print_string(ndr, "usri4_home_dir_drive", r->usri4_home_dir_drive);
692 ndr_print_uint32(ndr, "usri4_password_expired", r->usri4_password_expired);
693 ndr->depth--;
696 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_10(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_10 *r)
698 if (ndr_flags & NDR_SCALARS) {
699 NDR_CHECK(ndr_push_align(ndr, 4));
700 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri10_name));
701 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri10_comment));
702 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri10_usr_comment));
703 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri10_full_name));
705 if (ndr_flags & NDR_BUFFERS) {
707 return NDR_ERR_SUCCESS;
710 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_10(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_10 *r)
712 if (ndr_flags & NDR_SCALARS) {
713 NDR_CHECK(ndr_pull_align(ndr, 4));
714 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri10_name));
715 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri10_comment));
716 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri10_usr_comment));
717 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri10_full_name));
719 if (ndr_flags & NDR_BUFFERS) {
721 return NDR_ERR_SUCCESS;
724 _PUBLIC_ void ndr_print_USER_INFO_10(struct ndr_print *ndr, const char *name, const struct USER_INFO_10 *r)
726 ndr_print_struct(ndr, name, "USER_INFO_10");
727 ndr->depth++;
728 ndr_print_string(ndr, "usri10_name", r->usri10_name);
729 ndr_print_string(ndr, "usri10_comment", r->usri10_comment);
730 ndr_print_string(ndr, "usri10_usr_comment", r->usri10_usr_comment);
731 ndr_print_string(ndr, "usri10_full_name", r->usri10_full_name);
732 ndr->depth--;
735 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_11(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_11 *r)
737 if (ndr_flags & NDR_SCALARS) {
738 NDR_CHECK(ndr_push_align(ndr, 4));
739 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri11_name));
740 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri11_comment));
741 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri11_usr_comment));
742 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri11_full_name));
743 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri11_priv));
744 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri11_auth_flags));
745 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri11_password_age));
746 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri11_home_dir));
747 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri11_parms));
748 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri11_last_logon));
749 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri11_last_logoff));
750 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri11_bad_pw_count));
751 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri11_num_logons));
752 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri11_logon_server));
753 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri11_country_code));
754 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri11_workstations));
755 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri11_max_storage));
756 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri11_units_per_week));
757 NDR_CHECK(ndr_push_unique_ptr(ndr, r->usri11_logon_hours));
758 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri11_code_page));
760 if (ndr_flags & NDR_BUFFERS) {
761 if (r->usri11_logon_hours) {
762 NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, *r->usri11_logon_hours));
765 return NDR_ERR_SUCCESS;
768 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_11(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_11 *r)
770 uint32_t _ptr_usri11_logon_hours;
771 TALLOC_CTX *_mem_save_usri11_logon_hours_0;
772 if (ndr_flags & NDR_SCALARS) {
773 NDR_CHECK(ndr_pull_align(ndr, 4));
774 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri11_name));
775 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri11_comment));
776 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri11_usr_comment));
777 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri11_full_name));
778 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri11_priv));
779 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri11_auth_flags));
780 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri11_password_age));
781 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri11_home_dir));
782 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri11_parms));
783 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri11_last_logon));
784 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri11_last_logoff));
785 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri11_bad_pw_count));
786 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri11_num_logons));
787 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri11_logon_server));
788 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri11_country_code));
789 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri11_workstations));
790 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri11_max_storage));
791 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri11_units_per_week));
792 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_usri11_logon_hours));
793 if (_ptr_usri11_logon_hours) {
794 NDR_PULL_ALLOC(ndr, r->usri11_logon_hours);
795 } else {
796 r->usri11_logon_hours = NULL;
798 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri11_code_page));
800 if (ndr_flags & NDR_BUFFERS) {
801 if (r->usri11_logon_hours) {
802 _mem_save_usri11_logon_hours_0 = NDR_PULL_GET_MEM_CTX(ndr);
803 NDR_PULL_SET_MEM_CTX(ndr, r->usri11_logon_hours, 0);
804 NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, r->usri11_logon_hours));
805 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_usri11_logon_hours_0, 0);
808 return NDR_ERR_SUCCESS;
811 _PUBLIC_ void ndr_print_USER_INFO_11(struct ndr_print *ndr, const char *name, const struct USER_INFO_11 *r)
813 ndr_print_struct(ndr, name, "USER_INFO_11");
814 ndr->depth++;
815 ndr_print_string(ndr, "usri11_name", r->usri11_name);
816 ndr_print_string(ndr, "usri11_comment", r->usri11_comment);
817 ndr_print_string(ndr, "usri11_usr_comment", r->usri11_usr_comment);
818 ndr_print_string(ndr, "usri11_full_name", r->usri11_full_name);
819 ndr_print_uint32(ndr, "usri11_priv", r->usri11_priv);
820 ndr_print_uint32(ndr, "usri11_auth_flags", r->usri11_auth_flags);
821 ndr_print_uint32(ndr, "usri11_password_age", r->usri11_password_age);
822 ndr_print_string(ndr, "usri11_home_dir", r->usri11_home_dir);
823 ndr_print_string(ndr, "usri11_parms", r->usri11_parms);
824 ndr_print_uint32(ndr, "usri11_last_logon", r->usri11_last_logon);
825 ndr_print_uint32(ndr, "usri11_last_logoff", r->usri11_last_logoff);
826 ndr_print_uint32(ndr, "usri11_bad_pw_count", r->usri11_bad_pw_count);
827 ndr_print_uint32(ndr, "usri11_num_logons", r->usri11_num_logons);
828 ndr_print_string(ndr, "usri11_logon_server", r->usri11_logon_server);
829 ndr_print_uint32(ndr, "usri11_country_code", r->usri11_country_code);
830 ndr_print_string(ndr, "usri11_workstations", r->usri11_workstations);
831 ndr_print_uint32(ndr, "usri11_max_storage", r->usri11_max_storage);
832 ndr_print_uint32(ndr, "usri11_units_per_week", r->usri11_units_per_week);
833 ndr_print_ptr(ndr, "usri11_logon_hours", r->usri11_logon_hours);
834 ndr->depth++;
835 if (r->usri11_logon_hours) {
836 ndr_print_uint8(ndr, "usri11_logon_hours", *r->usri11_logon_hours);
838 ndr->depth--;
839 ndr_print_uint32(ndr, "usri11_code_page", r->usri11_code_page);
840 ndr->depth--;
843 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_20(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_20 *r)
845 if (ndr_flags & NDR_SCALARS) {
846 NDR_CHECK(ndr_push_align(ndr, 4));
847 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri20_name));
848 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri20_full_name));
849 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri20_comment));
850 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri20_flags));
851 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri20_user_id));
853 if (ndr_flags & NDR_BUFFERS) {
855 return NDR_ERR_SUCCESS;
858 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_20(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_20 *r)
860 if (ndr_flags & NDR_SCALARS) {
861 NDR_CHECK(ndr_pull_align(ndr, 4));
862 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri20_name));
863 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri20_full_name));
864 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri20_comment));
865 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri20_flags));
866 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri20_user_id));
868 if (ndr_flags & NDR_BUFFERS) {
870 return NDR_ERR_SUCCESS;
873 _PUBLIC_ void ndr_print_USER_INFO_20(struct ndr_print *ndr, const char *name, const struct USER_INFO_20 *r)
875 ndr_print_struct(ndr, name, "USER_INFO_20");
876 ndr->depth++;
877 ndr_print_string(ndr, "usri20_name", r->usri20_name);
878 ndr_print_string(ndr, "usri20_full_name", r->usri20_full_name);
879 ndr_print_string(ndr, "usri20_comment", r->usri20_comment);
880 ndr_print_uint32(ndr, "usri20_flags", r->usri20_flags);
881 ndr_print_uint32(ndr, "usri20_user_id", r->usri20_user_id);
882 ndr->depth--;
885 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_21(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_21 *r)
887 if (ndr_flags & NDR_SCALARS) {
888 NDR_CHECK(ndr_push_align(ndr, 1));
889 NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->usri21_password, ENCRYPTED_PWLEN));
891 if (ndr_flags & NDR_BUFFERS) {
893 return NDR_ERR_SUCCESS;
896 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_21(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_21 *r)
898 if (ndr_flags & NDR_SCALARS) {
899 NDR_CHECK(ndr_pull_align(ndr, 1));
900 NDR_PULL_ALLOC_N(ndr, r->usri21_password, ENCRYPTED_PWLEN);
901 NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->usri21_password, ENCRYPTED_PWLEN));
903 if (ndr_flags & NDR_BUFFERS) {
905 return NDR_ERR_SUCCESS;
908 _PUBLIC_ void ndr_print_USER_INFO_21(struct ndr_print *ndr, const char *name, const struct USER_INFO_21 *r)
910 ndr_print_struct(ndr, name, "USER_INFO_21");
911 ndr->depth++;
912 ndr_print_array_uint8(ndr, "usri21_password", r->usri21_password, ENCRYPTED_PWLEN);
913 ndr->depth--;
916 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_22(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_22 *r)
918 if (ndr_flags & NDR_SCALARS) {
919 NDR_CHECK(ndr_push_align(ndr, 4));
920 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri22_name));
921 NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->usri22_password, ENCRYPTED_PWLEN));
922 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri22_password_age));
923 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri22_priv));
924 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri22_home_dir));
925 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri22_comment));
926 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri22_flags));
927 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri22_script_path));
928 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri22_auth_flags));
929 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri22_full_name));
930 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri22_usr_comment));
931 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri22_parms));
932 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri22_workstations));
933 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri22_last_logon));
934 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri22_last_logoff));
935 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri22_acct_expires));
936 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri22_max_storage));
937 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri22_units_per_week));
938 NDR_CHECK(ndr_push_unique_ptr(ndr, r->usri22_logon_hours));
939 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri22_bad_pw_count));
940 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri22_num_logons));
941 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri22_logon_server));
942 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri22_country_code));
943 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri22_code_page));
945 if (ndr_flags & NDR_BUFFERS) {
946 if (r->usri22_logon_hours) {
947 NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, *r->usri22_logon_hours));
950 return NDR_ERR_SUCCESS;
953 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_22(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_22 *r)
955 uint32_t _ptr_usri22_logon_hours;
956 TALLOC_CTX *_mem_save_usri22_logon_hours_0;
957 if (ndr_flags & NDR_SCALARS) {
958 NDR_CHECK(ndr_pull_align(ndr, 4));
959 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri22_name));
960 NDR_PULL_ALLOC_N(ndr, r->usri22_password, ENCRYPTED_PWLEN);
961 NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->usri22_password, ENCRYPTED_PWLEN));
962 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri22_password_age));
963 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri22_priv));
964 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri22_home_dir));
965 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri22_comment));
966 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri22_flags));
967 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri22_script_path));
968 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri22_auth_flags));
969 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri22_full_name));
970 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri22_usr_comment));
971 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri22_parms));
972 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri22_workstations));
973 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri22_last_logon));
974 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri22_last_logoff));
975 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri22_acct_expires));
976 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri22_max_storage));
977 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri22_units_per_week));
978 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_usri22_logon_hours));
979 if (_ptr_usri22_logon_hours) {
980 NDR_PULL_ALLOC(ndr, r->usri22_logon_hours);
981 } else {
982 r->usri22_logon_hours = NULL;
984 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri22_bad_pw_count));
985 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri22_num_logons));
986 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri22_logon_server));
987 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri22_country_code));
988 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri22_code_page));
990 if (ndr_flags & NDR_BUFFERS) {
991 if (r->usri22_logon_hours) {
992 _mem_save_usri22_logon_hours_0 = NDR_PULL_GET_MEM_CTX(ndr);
993 NDR_PULL_SET_MEM_CTX(ndr, r->usri22_logon_hours, 0);
994 NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, r->usri22_logon_hours));
995 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_usri22_logon_hours_0, 0);
998 return NDR_ERR_SUCCESS;
1001 _PUBLIC_ void ndr_print_USER_INFO_22(struct ndr_print *ndr, const char *name, const struct USER_INFO_22 *r)
1003 ndr_print_struct(ndr, name, "USER_INFO_22");
1004 ndr->depth++;
1005 ndr_print_string(ndr, "usri22_name", r->usri22_name);
1006 ndr_print_array_uint8(ndr, "usri22_password", r->usri22_password, ENCRYPTED_PWLEN);
1007 ndr_print_uint32(ndr, "usri22_password_age", r->usri22_password_age);
1008 ndr_print_uint32(ndr, "usri22_priv", r->usri22_priv);
1009 ndr_print_string(ndr, "usri22_home_dir", r->usri22_home_dir);
1010 ndr_print_string(ndr, "usri22_comment", r->usri22_comment);
1011 ndr_print_uint32(ndr, "usri22_flags", r->usri22_flags);
1012 ndr_print_uint32(ndr, "usri22_script_path", r->usri22_script_path);
1013 ndr_print_uint32(ndr, "usri22_auth_flags", r->usri22_auth_flags);
1014 ndr_print_string(ndr, "usri22_full_name", r->usri22_full_name);
1015 ndr_print_string(ndr, "usri22_usr_comment", r->usri22_usr_comment);
1016 ndr_print_string(ndr, "usri22_parms", r->usri22_parms);
1017 ndr_print_string(ndr, "usri22_workstations", r->usri22_workstations);
1018 ndr_print_uint32(ndr, "usri22_last_logon", r->usri22_last_logon);
1019 ndr_print_uint32(ndr, "usri22_last_logoff", r->usri22_last_logoff);
1020 ndr_print_uint32(ndr, "usri22_acct_expires", r->usri22_acct_expires);
1021 ndr_print_uint32(ndr, "usri22_max_storage", r->usri22_max_storage);
1022 ndr_print_uint32(ndr, "usri22_units_per_week", r->usri22_units_per_week);
1023 ndr_print_ptr(ndr, "usri22_logon_hours", r->usri22_logon_hours);
1024 ndr->depth++;
1025 if (r->usri22_logon_hours) {
1026 ndr_print_uint8(ndr, "usri22_logon_hours", *r->usri22_logon_hours);
1028 ndr->depth--;
1029 ndr_print_uint32(ndr, "usri22_bad_pw_count", r->usri22_bad_pw_count);
1030 ndr_print_uint32(ndr, "usri22_num_logons", r->usri22_num_logons);
1031 ndr_print_string(ndr, "usri22_logon_server", r->usri22_logon_server);
1032 ndr_print_uint32(ndr, "usri22_country_code", r->usri22_country_code);
1033 ndr_print_uint32(ndr, "usri22_code_page", r->usri22_code_page);
1034 ndr->depth--;
1037 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_23(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_23 *r)
1039 if (ndr_flags & NDR_SCALARS) {
1040 NDR_CHECK(ndr_push_align(ndr, 4));
1041 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri23_name));
1042 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri23_full_name));
1043 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri23_comment));
1044 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri23_flags));
1045 NDR_CHECK(ndr_push_unique_ptr(ndr, r->usri23_user_sid));
1047 if (ndr_flags & NDR_BUFFERS) {
1048 if (r->usri23_user_sid) {
1049 NDR_CHECK(ndr_push_domsid(ndr, NDR_SCALARS, r->usri23_user_sid));
1052 return NDR_ERR_SUCCESS;
1055 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_23(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_23 *r)
1057 uint32_t _ptr_usri23_user_sid;
1058 TALLOC_CTX *_mem_save_usri23_user_sid_0;
1059 if (ndr_flags & NDR_SCALARS) {
1060 NDR_CHECK(ndr_pull_align(ndr, 4));
1061 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri23_name));
1062 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri23_full_name));
1063 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri23_comment));
1064 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri23_flags));
1065 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_usri23_user_sid));
1066 if (_ptr_usri23_user_sid) {
1067 NDR_PULL_ALLOC(ndr, r->usri23_user_sid);
1068 } else {
1069 r->usri23_user_sid = NULL;
1072 if (ndr_flags & NDR_BUFFERS) {
1073 if (r->usri23_user_sid) {
1074 _mem_save_usri23_user_sid_0 = NDR_PULL_GET_MEM_CTX(ndr);
1075 NDR_PULL_SET_MEM_CTX(ndr, r->usri23_user_sid, 0);
1076 NDR_CHECK(ndr_pull_domsid(ndr, NDR_SCALARS, r->usri23_user_sid));
1077 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_usri23_user_sid_0, 0);
1080 return NDR_ERR_SUCCESS;
1083 _PUBLIC_ void ndr_print_USER_INFO_23(struct ndr_print *ndr, const char *name, const struct USER_INFO_23 *r)
1085 ndr_print_struct(ndr, name, "USER_INFO_23");
1086 ndr->depth++;
1087 ndr_print_string(ndr, "usri23_name", r->usri23_name);
1088 ndr_print_string(ndr, "usri23_full_name", r->usri23_full_name);
1089 ndr_print_string(ndr, "usri23_comment", r->usri23_comment);
1090 ndr_print_uint32(ndr, "usri23_flags", r->usri23_flags);
1091 ndr_print_ptr(ndr, "usri23_user_sid", r->usri23_user_sid);
1092 ndr->depth++;
1093 if (r->usri23_user_sid) {
1094 ndr_print_domsid(ndr, "usri23_user_sid", r->usri23_user_sid);
1096 ndr->depth--;
1097 ndr->depth--;
1100 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_1003(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_1003 *r)
1102 if (ndr_flags & NDR_SCALARS) {
1103 NDR_CHECK(ndr_push_align(ndr, 4));
1104 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1003_password));
1106 if (ndr_flags & NDR_BUFFERS) {
1108 return NDR_ERR_SUCCESS;
1111 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_1003(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_1003 *r)
1113 if (ndr_flags & NDR_SCALARS) {
1114 NDR_CHECK(ndr_pull_align(ndr, 4));
1115 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1003_password));
1117 if (ndr_flags & NDR_BUFFERS) {
1119 return NDR_ERR_SUCCESS;
1122 _PUBLIC_ void ndr_print_USER_INFO_1003(struct ndr_print *ndr, const char *name, const struct USER_INFO_1003 *r)
1124 ndr_print_struct(ndr, name, "USER_INFO_1003");
1125 ndr->depth++;
1126 ndr_print_string(ndr, "usri1003_password", r->usri1003_password);
1127 ndr->depth--;
1130 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_1005(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_1005 *r)
1132 if (ndr_flags & NDR_SCALARS) {
1133 NDR_CHECK(ndr_push_align(ndr, 4));
1134 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri1005_priv));
1136 if (ndr_flags & NDR_BUFFERS) {
1138 return NDR_ERR_SUCCESS;
1141 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_1005(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_1005 *r)
1143 if (ndr_flags & NDR_SCALARS) {
1144 NDR_CHECK(ndr_pull_align(ndr, 4));
1145 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri1005_priv));
1147 if (ndr_flags & NDR_BUFFERS) {
1149 return NDR_ERR_SUCCESS;
1152 _PUBLIC_ void ndr_print_USER_INFO_1005(struct ndr_print *ndr, const char *name, const struct USER_INFO_1005 *r)
1154 ndr_print_struct(ndr, name, "USER_INFO_1005");
1155 ndr->depth++;
1156 ndr_print_uint32(ndr, "usri1005_priv", r->usri1005_priv);
1157 ndr->depth--;
1160 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_1006(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_1006 *r)
1162 if (ndr_flags & NDR_SCALARS) {
1163 NDR_CHECK(ndr_push_align(ndr, 4));
1164 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1006_home_dir));
1166 if (ndr_flags & NDR_BUFFERS) {
1168 return NDR_ERR_SUCCESS;
1171 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_1006(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_1006 *r)
1173 if (ndr_flags & NDR_SCALARS) {
1174 NDR_CHECK(ndr_pull_align(ndr, 4));
1175 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1006_home_dir));
1177 if (ndr_flags & NDR_BUFFERS) {
1179 return NDR_ERR_SUCCESS;
1182 _PUBLIC_ void ndr_print_USER_INFO_1006(struct ndr_print *ndr, const char *name, const struct USER_INFO_1006 *r)
1184 ndr_print_struct(ndr, name, "USER_INFO_1006");
1185 ndr->depth++;
1186 ndr_print_string(ndr, "usri1006_home_dir", r->usri1006_home_dir);
1187 ndr->depth--;
1190 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_1007(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_1007 *r)
1192 if (ndr_flags & NDR_SCALARS) {
1193 NDR_CHECK(ndr_push_align(ndr, 4));
1194 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1007_comment));
1196 if (ndr_flags & NDR_BUFFERS) {
1198 return NDR_ERR_SUCCESS;
1201 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_1007(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_1007 *r)
1203 if (ndr_flags & NDR_SCALARS) {
1204 NDR_CHECK(ndr_pull_align(ndr, 4));
1205 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1007_comment));
1207 if (ndr_flags & NDR_BUFFERS) {
1209 return NDR_ERR_SUCCESS;
1212 _PUBLIC_ void ndr_print_USER_INFO_1007(struct ndr_print *ndr, const char *name, const struct USER_INFO_1007 *r)
1214 ndr_print_struct(ndr, name, "USER_INFO_1007");
1215 ndr->depth++;
1216 ndr_print_string(ndr, "usri1007_comment", r->usri1007_comment);
1217 ndr->depth--;
1220 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_1008(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_1008 *r)
1222 if (ndr_flags & NDR_SCALARS) {
1223 NDR_CHECK(ndr_push_align(ndr, 4));
1224 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri1008_flags));
1226 if (ndr_flags & NDR_BUFFERS) {
1228 return NDR_ERR_SUCCESS;
1231 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_1008(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_1008 *r)
1233 if (ndr_flags & NDR_SCALARS) {
1234 NDR_CHECK(ndr_pull_align(ndr, 4));
1235 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri1008_flags));
1237 if (ndr_flags & NDR_BUFFERS) {
1239 return NDR_ERR_SUCCESS;
1242 _PUBLIC_ void ndr_print_USER_INFO_1008(struct ndr_print *ndr, const char *name, const struct USER_INFO_1008 *r)
1244 ndr_print_struct(ndr, name, "USER_INFO_1008");
1245 ndr->depth++;
1246 ndr_print_uint32(ndr, "usri1008_flags", r->usri1008_flags);
1247 ndr->depth--;
1250 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_1009(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_1009 *r)
1252 if (ndr_flags & NDR_SCALARS) {
1253 NDR_CHECK(ndr_push_align(ndr, 4));
1254 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1009_script_path));
1256 if (ndr_flags & NDR_BUFFERS) {
1258 return NDR_ERR_SUCCESS;
1261 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_1009(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_1009 *r)
1263 if (ndr_flags & NDR_SCALARS) {
1264 NDR_CHECK(ndr_pull_align(ndr, 4));
1265 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1009_script_path));
1267 if (ndr_flags & NDR_BUFFERS) {
1269 return NDR_ERR_SUCCESS;
1272 _PUBLIC_ void ndr_print_USER_INFO_1009(struct ndr_print *ndr, const char *name, const struct USER_INFO_1009 *r)
1274 ndr_print_struct(ndr, name, "USER_INFO_1009");
1275 ndr->depth++;
1276 ndr_print_string(ndr, "usri1009_script_path", r->usri1009_script_path);
1277 ndr->depth--;
1280 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_1010(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_1010 *r)
1282 if (ndr_flags & NDR_SCALARS) {
1283 NDR_CHECK(ndr_push_align(ndr, 4));
1284 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri1010_auth_flags));
1286 if (ndr_flags & NDR_BUFFERS) {
1288 return NDR_ERR_SUCCESS;
1291 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_1010(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_1010 *r)
1293 if (ndr_flags & NDR_SCALARS) {
1294 NDR_CHECK(ndr_pull_align(ndr, 4));
1295 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri1010_auth_flags));
1297 if (ndr_flags & NDR_BUFFERS) {
1299 return NDR_ERR_SUCCESS;
1302 _PUBLIC_ void ndr_print_USER_INFO_1010(struct ndr_print *ndr, const char *name, const struct USER_INFO_1010 *r)
1304 ndr_print_struct(ndr, name, "USER_INFO_1010");
1305 ndr->depth++;
1306 ndr_print_uint32(ndr, "usri1010_auth_flags", r->usri1010_auth_flags);
1307 ndr->depth--;
1310 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_1011(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_1011 *r)
1312 if (ndr_flags & NDR_SCALARS) {
1313 NDR_CHECK(ndr_push_align(ndr, 4));
1314 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1011_full_name));
1316 if (ndr_flags & NDR_BUFFERS) {
1318 return NDR_ERR_SUCCESS;
1321 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_1011(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_1011 *r)
1323 if (ndr_flags & NDR_SCALARS) {
1324 NDR_CHECK(ndr_pull_align(ndr, 4));
1325 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1011_full_name));
1327 if (ndr_flags & NDR_BUFFERS) {
1329 return NDR_ERR_SUCCESS;
1332 _PUBLIC_ void ndr_print_USER_INFO_1011(struct ndr_print *ndr, const char *name, const struct USER_INFO_1011 *r)
1334 ndr_print_struct(ndr, name, "USER_INFO_1011");
1335 ndr->depth++;
1336 ndr_print_string(ndr, "usri1011_full_name", r->usri1011_full_name);
1337 ndr->depth--;
1340 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_1012(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_1012 *r)
1342 if (ndr_flags & NDR_SCALARS) {
1343 NDR_CHECK(ndr_push_align(ndr, 4));
1344 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1012_usr_comment));
1346 if (ndr_flags & NDR_BUFFERS) {
1348 return NDR_ERR_SUCCESS;
1351 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_1012(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_1012 *r)
1353 if (ndr_flags & NDR_SCALARS) {
1354 NDR_CHECK(ndr_pull_align(ndr, 4));
1355 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1012_usr_comment));
1357 if (ndr_flags & NDR_BUFFERS) {
1359 return NDR_ERR_SUCCESS;
1362 _PUBLIC_ void ndr_print_USER_INFO_1012(struct ndr_print *ndr, const char *name, const struct USER_INFO_1012 *r)
1364 ndr_print_struct(ndr, name, "USER_INFO_1012");
1365 ndr->depth++;
1366 ndr_print_string(ndr, "usri1012_usr_comment", r->usri1012_usr_comment);
1367 ndr->depth--;
1370 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_1013(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_1013 *r)
1372 if (ndr_flags & NDR_SCALARS) {
1373 NDR_CHECK(ndr_push_align(ndr, 4));
1374 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1013_parms));
1376 if (ndr_flags & NDR_BUFFERS) {
1378 return NDR_ERR_SUCCESS;
1381 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_1013(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_1013 *r)
1383 if (ndr_flags & NDR_SCALARS) {
1384 NDR_CHECK(ndr_pull_align(ndr, 4));
1385 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1013_parms));
1387 if (ndr_flags & NDR_BUFFERS) {
1389 return NDR_ERR_SUCCESS;
1392 _PUBLIC_ void ndr_print_USER_INFO_1013(struct ndr_print *ndr, const char *name, const struct USER_INFO_1013 *r)
1394 ndr_print_struct(ndr, name, "USER_INFO_1013");
1395 ndr->depth++;
1396 ndr_print_string(ndr, "usri1013_parms", r->usri1013_parms);
1397 ndr->depth--;
1400 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_1014(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_1014 *r)
1402 if (ndr_flags & NDR_SCALARS) {
1403 NDR_CHECK(ndr_push_align(ndr, 4));
1404 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1014_workstations));
1406 if (ndr_flags & NDR_BUFFERS) {
1408 return NDR_ERR_SUCCESS;
1411 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_1014(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_1014 *r)
1413 if (ndr_flags & NDR_SCALARS) {
1414 NDR_CHECK(ndr_pull_align(ndr, 4));
1415 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1014_workstations));
1417 if (ndr_flags & NDR_BUFFERS) {
1419 return NDR_ERR_SUCCESS;
1422 _PUBLIC_ void ndr_print_USER_INFO_1014(struct ndr_print *ndr, const char *name, const struct USER_INFO_1014 *r)
1424 ndr_print_struct(ndr, name, "USER_INFO_1014");
1425 ndr->depth++;
1426 ndr_print_string(ndr, "usri1014_workstations", r->usri1014_workstations);
1427 ndr->depth--;
1430 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_1017(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_1017 *r)
1432 if (ndr_flags & NDR_SCALARS) {
1433 NDR_CHECK(ndr_push_align(ndr, 4));
1434 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri1017_acct_expires));
1436 if (ndr_flags & NDR_BUFFERS) {
1438 return NDR_ERR_SUCCESS;
1441 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_1017(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_1017 *r)
1443 if (ndr_flags & NDR_SCALARS) {
1444 NDR_CHECK(ndr_pull_align(ndr, 4));
1445 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri1017_acct_expires));
1447 if (ndr_flags & NDR_BUFFERS) {
1449 return NDR_ERR_SUCCESS;
1452 _PUBLIC_ void ndr_print_USER_INFO_1017(struct ndr_print *ndr, const char *name, const struct USER_INFO_1017 *r)
1454 ndr_print_struct(ndr, name, "USER_INFO_1017");
1455 ndr->depth++;
1456 ndr_print_uint32(ndr, "usri1017_acct_expires", r->usri1017_acct_expires);
1457 ndr->depth--;
1460 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_1018(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_1018 *r)
1462 if (ndr_flags & NDR_SCALARS) {
1463 NDR_CHECK(ndr_push_align(ndr, 4));
1464 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri1018_max_storage));
1466 if (ndr_flags & NDR_BUFFERS) {
1468 return NDR_ERR_SUCCESS;
1471 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_1018(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_1018 *r)
1473 if (ndr_flags & NDR_SCALARS) {
1474 NDR_CHECK(ndr_pull_align(ndr, 4));
1475 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri1018_max_storage));
1477 if (ndr_flags & NDR_BUFFERS) {
1479 return NDR_ERR_SUCCESS;
1482 _PUBLIC_ void ndr_print_USER_INFO_1018(struct ndr_print *ndr, const char *name, const struct USER_INFO_1018 *r)
1484 ndr_print_struct(ndr, name, "USER_INFO_1018");
1485 ndr->depth++;
1486 ndr_print_uint32(ndr, "usri1018_max_storage", r->usri1018_max_storage);
1487 ndr->depth--;
1490 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_1020(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_1020 *r)
1492 if (ndr_flags & NDR_SCALARS) {
1493 NDR_CHECK(ndr_push_align(ndr, 4));
1494 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri1020_units_per_week));
1495 NDR_CHECK(ndr_push_unique_ptr(ndr, r->usri1020_logon_hours));
1497 if (ndr_flags & NDR_BUFFERS) {
1498 if (r->usri1020_logon_hours) {
1499 NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, *r->usri1020_logon_hours));
1502 return NDR_ERR_SUCCESS;
1505 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_1020(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_1020 *r)
1507 uint32_t _ptr_usri1020_logon_hours;
1508 TALLOC_CTX *_mem_save_usri1020_logon_hours_0;
1509 if (ndr_flags & NDR_SCALARS) {
1510 NDR_CHECK(ndr_pull_align(ndr, 4));
1511 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri1020_units_per_week));
1512 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_usri1020_logon_hours));
1513 if (_ptr_usri1020_logon_hours) {
1514 NDR_PULL_ALLOC(ndr, r->usri1020_logon_hours);
1515 } else {
1516 r->usri1020_logon_hours = NULL;
1519 if (ndr_flags & NDR_BUFFERS) {
1520 if (r->usri1020_logon_hours) {
1521 _mem_save_usri1020_logon_hours_0 = NDR_PULL_GET_MEM_CTX(ndr);
1522 NDR_PULL_SET_MEM_CTX(ndr, r->usri1020_logon_hours, 0);
1523 NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, r->usri1020_logon_hours));
1524 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_usri1020_logon_hours_0, 0);
1527 return NDR_ERR_SUCCESS;
1530 _PUBLIC_ void ndr_print_USER_INFO_1020(struct ndr_print *ndr, const char *name, const struct USER_INFO_1020 *r)
1532 ndr_print_struct(ndr, name, "USER_INFO_1020");
1533 ndr->depth++;
1534 ndr_print_uint32(ndr, "usri1020_units_per_week", r->usri1020_units_per_week);
1535 ndr_print_ptr(ndr, "usri1020_logon_hours", r->usri1020_logon_hours);
1536 ndr->depth++;
1537 if (r->usri1020_logon_hours) {
1538 ndr_print_uint8(ndr, "usri1020_logon_hours", *r->usri1020_logon_hours);
1540 ndr->depth--;
1541 ndr->depth--;
1544 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_1023(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_1023 *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->usri1023_logon_server));
1550 if (ndr_flags & NDR_BUFFERS) {
1552 return NDR_ERR_SUCCESS;
1555 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_1023(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_1023 *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->usri1023_logon_server));
1561 if (ndr_flags & NDR_BUFFERS) {
1563 return NDR_ERR_SUCCESS;
1566 _PUBLIC_ void ndr_print_USER_INFO_1023(struct ndr_print *ndr, const char *name, const struct USER_INFO_1023 *r)
1568 ndr_print_struct(ndr, name, "USER_INFO_1023");
1569 ndr->depth++;
1570 ndr_print_string(ndr, "usri1023_logon_server", r->usri1023_logon_server);
1571 ndr->depth--;
1574 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_1024(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_1024 *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->usri1024_country_code));
1580 if (ndr_flags & NDR_BUFFERS) {
1582 return NDR_ERR_SUCCESS;
1585 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_1024(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_1024 *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->usri1024_country_code));
1591 if (ndr_flags & NDR_BUFFERS) {
1593 return NDR_ERR_SUCCESS;
1596 _PUBLIC_ void ndr_print_USER_INFO_1024(struct ndr_print *ndr, const char *name, const struct USER_INFO_1024 *r)
1598 ndr_print_struct(ndr, name, "USER_INFO_1024");
1599 ndr->depth++;
1600 ndr_print_uint32(ndr, "usri1024_country_code", r->usri1024_country_code);
1601 ndr->depth--;
1604 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_1025(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_1025 *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->usri1025_code_page));
1610 if (ndr_flags & NDR_BUFFERS) {
1612 return NDR_ERR_SUCCESS;
1615 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_1025(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_1025 *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->usri1025_code_page));
1621 if (ndr_flags & NDR_BUFFERS) {
1623 return NDR_ERR_SUCCESS;
1626 _PUBLIC_ void ndr_print_USER_INFO_1025(struct ndr_print *ndr, const char *name, const struct USER_INFO_1025 *r)
1628 ndr_print_struct(ndr, name, "USER_INFO_1025");
1629 ndr->depth++;
1630 ndr_print_uint32(ndr, "usri1025_code_page", r->usri1025_code_page);
1631 ndr->depth--;
1634 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_1051(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_1051 *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->usri1051_primary_group_id));
1640 if (ndr_flags & NDR_BUFFERS) {
1642 return NDR_ERR_SUCCESS;
1645 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_1051(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_1051 *r)
1647 if (ndr_flags & NDR_SCALARS) {
1648 NDR_CHECK(ndr_pull_align(ndr, 4));
1649 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri1051_primary_group_id));
1651 if (ndr_flags & NDR_BUFFERS) {
1653 return NDR_ERR_SUCCESS;
1656 _PUBLIC_ void ndr_print_USER_INFO_1051(struct ndr_print *ndr, const char *name, const struct USER_INFO_1051 *r)
1658 ndr_print_struct(ndr, name, "USER_INFO_1051");
1659 ndr->depth++;
1660 ndr_print_uint32(ndr, "usri1051_primary_group_id", r->usri1051_primary_group_id);
1661 ndr->depth--;
1664 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_1052(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_1052 *r)
1666 if (ndr_flags & NDR_SCALARS) {
1667 NDR_CHECK(ndr_push_align(ndr, 4));
1668 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1052_profile));
1670 if (ndr_flags & NDR_BUFFERS) {
1672 return NDR_ERR_SUCCESS;
1675 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_1052(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_1052 *r)
1677 if (ndr_flags & NDR_SCALARS) {
1678 NDR_CHECK(ndr_pull_align(ndr, 4));
1679 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1052_profile));
1681 if (ndr_flags & NDR_BUFFERS) {
1683 return NDR_ERR_SUCCESS;
1686 _PUBLIC_ void ndr_print_USER_INFO_1052(struct ndr_print *ndr, const char *name, const struct USER_INFO_1052 *r)
1688 ndr_print_struct(ndr, name, "USER_INFO_1052");
1689 ndr->depth++;
1690 ndr_print_string(ndr, "usri1052_profile", r->usri1052_profile);
1691 ndr->depth--;
1694 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_1053(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_1053 *r)
1696 if (ndr_flags & NDR_SCALARS) {
1697 NDR_CHECK(ndr_push_align(ndr, 4));
1698 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1053_home_dir_drive));
1700 if (ndr_flags & NDR_BUFFERS) {
1702 return NDR_ERR_SUCCESS;
1705 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_1053(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_1053 *r)
1707 if (ndr_flags & NDR_SCALARS) {
1708 NDR_CHECK(ndr_pull_align(ndr, 4));
1709 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1053_home_dir_drive));
1711 if (ndr_flags & NDR_BUFFERS) {
1713 return NDR_ERR_SUCCESS;
1716 _PUBLIC_ void ndr_print_USER_INFO_1053(struct ndr_print *ndr, const char *name, const struct USER_INFO_1053 *r)
1718 ndr_print_struct(ndr, name, "USER_INFO_1053");
1719 ndr->depth++;
1720 ndr_print_string(ndr, "usri1053_home_dir_drive", r->usri1053_home_dir_drive);
1721 ndr->depth--;
1724 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_X(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_X *r)
1726 if (ndr_flags & NDR_SCALARS) {
1727 NDR_CHECK(ndr_push_align(ndr, 4));
1728 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usriX_name));
1729 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usriX_password));
1730 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usriX_password_age));
1731 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usriX_priv));
1732 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usriX_home_dir));
1733 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usriX_comment));
1734 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usriX_flags));
1735 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usriX_script_path));
1736 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usriX_auth_flags));
1737 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usriX_full_name));
1738 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usriX_usr_comment));
1739 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usriX_parms));
1740 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usriX_workstations));
1741 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usriX_last_logon));
1742 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usriX_last_logoff));
1743 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usriX_acct_expires));
1744 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usriX_max_storage));
1745 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usriX_units_per_week));
1746 NDR_CHECK(ndr_push_unique_ptr(ndr, r->usriX_logon_hours));
1747 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usriX_bad_pw_count));
1748 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usriX_num_logons));
1749 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usriX_logon_server));
1750 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usriX_country_code));
1751 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usriX_code_page));
1752 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usriX_profile));
1753 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usriX_home_dir_drive));
1754 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usriX_primary_group_id));
1756 if (ndr_flags & NDR_BUFFERS) {
1757 if (r->usriX_logon_hours) {
1758 NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, *r->usriX_logon_hours));
1761 return NDR_ERR_SUCCESS;
1764 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_X(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_X *r)
1766 uint32_t _ptr_usriX_logon_hours;
1767 TALLOC_CTX *_mem_save_usriX_logon_hours_0;
1768 if (ndr_flags & NDR_SCALARS) {
1769 NDR_CHECK(ndr_pull_align(ndr, 4));
1770 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usriX_name));
1771 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usriX_password));
1772 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usriX_password_age));
1773 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usriX_priv));
1774 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usriX_home_dir));
1775 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usriX_comment));
1776 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usriX_flags));
1777 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usriX_script_path));
1778 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usriX_auth_flags));
1779 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usriX_full_name));
1780 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usriX_usr_comment));
1781 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usriX_parms));
1782 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usriX_workstations));
1783 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usriX_last_logon));
1784 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usriX_last_logoff));
1785 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usriX_acct_expires));
1786 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usriX_max_storage));
1787 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usriX_units_per_week));
1788 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_usriX_logon_hours));
1789 if (_ptr_usriX_logon_hours) {
1790 NDR_PULL_ALLOC(ndr, r->usriX_logon_hours);
1791 } else {
1792 r->usriX_logon_hours = NULL;
1794 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usriX_bad_pw_count));
1795 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usriX_num_logons));
1796 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usriX_logon_server));
1797 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usriX_country_code));
1798 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usriX_code_page));
1799 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usriX_profile));
1800 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usriX_home_dir_drive));
1801 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usriX_primary_group_id));
1803 if (ndr_flags & NDR_BUFFERS) {
1804 if (r->usriX_logon_hours) {
1805 _mem_save_usriX_logon_hours_0 = NDR_PULL_GET_MEM_CTX(ndr);
1806 NDR_PULL_SET_MEM_CTX(ndr, r->usriX_logon_hours, 0);
1807 NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, r->usriX_logon_hours));
1808 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_usriX_logon_hours_0, 0);
1811 return NDR_ERR_SUCCESS;
1814 _PUBLIC_ void ndr_print_USER_INFO_X(struct ndr_print *ndr, const char *name, const struct USER_INFO_X *r)
1816 ndr_print_struct(ndr, name, "USER_INFO_X");
1817 ndr->depth++;
1818 ndr_print_string(ndr, "usriX_name", r->usriX_name);
1819 ndr_print_string(ndr, "usriX_password", r->usriX_password);
1820 ndr_print_uint32(ndr, "usriX_password_age", r->usriX_password_age);
1821 ndr_print_uint32(ndr, "usriX_priv", r->usriX_priv);
1822 ndr_print_string(ndr, "usriX_home_dir", r->usriX_home_dir);
1823 ndr_print_string(ndr, "usriX_comment", r->usriX_comment);
1824 ndr_print_uint32(ndr, "usriX_flags", r->usriX_flags);
1825 ndr_print_string(ndr, "usriX_script_path", r->usriX_script_path);
1826 ndr_print_uint32(ndr, "usriX_auth_flags", r->usriX_auth_flags);
1827 ndr_print_string(ndr, "usriX_full_name", r->usriX_full_name);
1828 ndr_print_string(ndr, "usriX_usr_comment", r->usriX_usr_comment);
1829 ndr_print_string(ndr, "usriX_parms", r->usriX_parms);
1830 ndr_print_string(ndr, "usriX_workstations", r->usriX_workstations);
1831 ndr_print_uint32(ndr, "usriX_last_logon", r->usriX_last_logon);
1832 ndr_print_uint32(ndr, "usriX_last_logoff", r->usriX_last_logoff);
1833 ndr_print_uint32(ndr, "usriX_acct_expires", r->usriX_acct_expires);
1834 ndr_print_uint32(ndr, "usriX_max_storage", r->usriX_max_storage);
1835 ndr_print_uint32(ndr, "usriX_units_per_week", r->usriX_units_per_week);
1836 ndr_print_ptr(ndr, "usriX_logon_hours", r->usriX_logon_hours);
1837 ndr->depth++;
1838 if (r->usriX_logon_hours) {
1839 ndr_print_uint8(ndr, "usriX_logon_hours", *r->usriX_logon_hours);
1841 ndr->depth--;
1842 ndr_print_uint32(ndr, "usriX_bad_pw_count", r->usriX_bad_pw_count);
1843 ndr_print_uint32(ndr, "usriX_num_logons", r->usriX_num_logons);
1844 ndr_print_string(ndr, "usriX_logon_server", r->usriX_logon_server);
1845 ndr_print_uint32(ndr, "usriX_country_code", r->usriX_country_code);
1846 ndr_print_uint32(ndr, "usriX_code_page", r->usriX_code_page);
1847 ndr_print_string(ndr, "usriX_profile", r->usriX_profile);
1848 ndr_print_string(ndr, "usriX_home_dir_drive", r->usriX_home_dir_drive);
1849 ndr_print_uint32(ndr, "usriX_primary_group_id", r->usriX_primary_group_id);
1850 ndr->depth--;
1853 _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)
1855 if (ndr_flags & NDR_SCALARS) {
1856 NDR_CHECK(ndr_push_align(ndr, 4));
1857 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->grui0_name));
1859 if (ndr_flags & NDR_BUFFERS) {
1861 return NDR_ERR_SUCCESS;
1864 _PUBLIC_ enum ndr_err_code ndr_pull_GROUP_USERS_INFO_0(struct ndr_pull *ndr, int ndr_flags, struct GROUP_USERS_INFO_0 *r)
1866 if (ndr_flags & NDR_SCALARS) {
1867 NDR_CHECK(ndr_pull_align(ndr, 4));
1868 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->grui0_name));
1870 if (ndr_flags & NDR_BUFFERS) {
1872 return NDR_ERR_SUCCESS;
1875 _PUBLIC_ void ndr_print_GROUP_USERS_INFO_0(struct ndr_print *ndr, const char *name, const struct GROUP_USERS_INFO_0 *r)
1877 ndr_print_struct(ndr, name, "GROUP_USERS_INFO_0");
1878 ndr->depth++;
1879 ndr_print_string(ndr, "grui0_name", r->grui0_name);
1880 ndr->depth--;
1883 _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)
1885 if (ndr_flags & NDR_SCALARS) {
1886 NDR_CHECK(ndr_push_align(ndr, 4));
1887 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->grui1_name));
1888 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->grui1_attributes));
1890 if (ndr_flags & NDR_BUFFERS) {
1892 return NDR_ERR_SUCCESS;
1895 _PUBLIC_ enum ndr_err_code ndr_pull_GROUP_USERS_INFO_1(struct ndr_pull *ndr, int ndr_flags, struct GROUP_USERS_INFO_1 *r)
1897 if (ndr_flags & NDR_SCALARS) {
1898 NDR_CHECK(ndr_pull_align(ndr, 4));
1899 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->grui1_name));
1900 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->grui1_attributes));
1902 if (ndr_flags & NDR_BUFFERS) {
1904 return NDR_ERR_SUCCESS;
1907 _PUBLIC_ void ndr_print_GROUP_USERS_INFO_1(struct ndr_print *ndr, const char *name, const struct GROUP_USERS_INFO_1 *r)
1909 ndr_print_struct(ndr, name, "GROUP_USERS_INFO_1");
1910 ndr->depth++;
1911 ndr_print_string(ndr, "grui1_name", r->grui1_name);
1912 ndr_print_uint32(ndr, "grui1_attributes", r->grui1_attributes);
1913 ndr->depth--;
1916 _PUBLIC_ enum ndr_err_code ndr_push_NET_DISPLAY_USER(struct ndr_push *ndr, int ndr_flags, const struct NET_DISPLAY_USER *r)
1918 if (ndr_flags & NDR_SCALARS) {
1919 NDR_CHECK(ndr_push_align(ndr, 4));
1920 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1_name));
1921 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1_comment));
1922 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri1_flags));
1923 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1_full_name));
1924 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri1_user_id));
1925 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri1_next_index));
1927 if (ndr_flags & NDR_BUFFERS) {
1929 return NDR_ERR_SUCCESS;
1932 _PUBLIC_ enum ndr_err_code ndr_pull_NET_DISPLAY_USER(struct ndr_pull *ndr, int ndr_flags, struct NET_DISPLAY_USER *r)
1934 if (ndr_flags & NDR_SCALARS) {
1935 NDR_CHECK(ndr_pull_align(ndr, 4));
1936 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1_name));
1937 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1_comment));
1938 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri1_flags));
1939 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1_full_name));
1940 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri1_user_id));
1941 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri1_next_index));
1943 if (ndr_flags & NDR_BUFFERS) {
1945 return NDR_ERR_SUCCESS;
1948 _PUBLIC_ void ndr_print_NET_DISPLAY_USER(struct ndr_print *ndr, const char *name, const struct NET_DISPLAY_USER *r)
1950 ndr_print_struct(ndr, name, "NET_DISPLAY_USER");
1951 ndr->depth++;
1952 ndr_print_string(ndr, "usri1_name", r->usri1_name);
1953 ndr_print_string(ndr, "usri1_comment", r->usri1_comment);
1954 ndr_print_uint32(ndr, "usri1_flags", r->usri1_flags);
1955 ndr_print_string(ndr, "usri1_full_name", r->usri1_full_name);
1956 ndr_print_uint32(ndr, "usri1_user_id", r->usri1_user_id);
1957 ndr_print_uint32(ndr, "usri1_next_index", r->usri1_next_index);
1958 ndr->depth--;
1961 _PUBLIC_ enum ndr_err_code ndr_push_NET_DISPLAY_MACHINE(struct ndr_push *ndr, int ndr_flags, const struct NET_DISPLAY_MACHINE *r)
1963 if (ndr_flags & NDR_SCALARS) {
1964 NDR_CHECK(ndr_push_align(ndr, 4));
1965 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri2_name));
1966 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri2_comment));
1967 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri2_flags));
1968 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri2_user_id));
1969 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri2_next_index));
1971 if (ndr_flags & NDR_BUFFERS) {
1973 return NDR_ERR_SUCCESS;
1976 _PUBLIC_ enum ndr_err_code ndr_pull_NET_DISPLAY_MACHINE(struct ndr_pull *ndr, int ndr_flags, struct NET_DISPLAY_MACHINE *r)
1978 if (ndr_flags & NDR_SCALARS) {
1979 NDR_CHECK(ndr_pull_align(ndr, 4));
1980 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri2_name));
1981 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri2_comment));
1982 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri2_flags));
1983 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri2_user_id));
1984 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri2_next_index));
1986 if (ndr_flags & NDR_BUFFERS) {
1988 return NDR_ERR_SUCCESS;
1991 _PUBLIC_ void ndr_print_NET_DISPLAY_MACHINE(struct ndr_print *ndr, const char *name, const struct NET_DISPLAY_MACHINE *r)
1993 ndr_print_struct(ndr, name, "NET_DISPLAY_MACHINE");
1994 ndr->depth++;
1995 ndr_print_string(ndr, "usri2_name", r->usri2_name);
1996 ndr_print_string(ndr, "usri2_comment", r->usri2_comment);
1997 ndr_print_uint32(ndr, "usri2_flags", r->usri2_flags);
1998 ndr_print_uint32(ndr, "usri2_user_id", r->usri2_user_id);
1999 ndr_print_uint32(ndr, "usri2_next_index", r->usri2_next_index);
2000 ndr->depth--;
2003 _PUBLIC_ enum ndr_err_code ndr_push_NET_DISPLAY_GROUP(struct ndr_push *ndr, int ndr_flags, const struct NET_DISPLAY_GROUP *r)
2005 if (ndr_flags & NDR_SCALARS) {
2006 NDR_CHECK(ndr_push_align(ndr, 4));
2007 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->grpi3_name));
2008 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->grpi3_comment));
2009 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->grpi3_group_id));
2010 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->grpi3_attributes));
2011 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->grpi3_next_index));
2013 if (ndr_flags & NDR_BUFFERS) {
2015 return NDR_ERR_SUCCESS;
2018 _PUBLIC_ enum ndr_err_code ndr_pull_NET_DISPLAY_GROUP(struct ndr_pull *ndr, int ndr_flags, struct NET_DISPLAY_GROUP *r)
2020 if (ndr_flags & NDR_SCALARS) {
2021 NDR_CHECK(ndr_pull_align(ndr, 4));
2022 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->grpi3_name));
2023 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->grpi3_comment));
2024 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->grpi3_group_id));
2025 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->grpi3_attributes));
2026 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->grpi3_next_index));
2028 if (ndr_flags & NDR_BUFFERS) {
2030 return NDR_ERR_SUCCESS;
2033 _PUBLIC_ void ndr_print_NET_DISPLAY_GROUP(struct ndr_print *ndr, const char *name, const struct NET_DISPLAY_GROUP *r)
2035 ndr_print_struct(ndr, name, "NET_DISPLAY_GROUP");
2036 ndr->depth++;
2037 ndr_print_string(ndr, "grpi3_name", r->grpi3_name);
2038 ndr_print_string(ndr, "grpi3_comment", r->grpi3_comment);
2039 ndr_print_uint32(ndr, "grpi3_group_id", r->grpi3_group_id);
2040 ndr_print_uint32(ndr, "grpi3_attributes", r->grpi3_attributes);
2041 ndr_print_uint32(ndr, "grpi3_next_index", r->grpi3_next_index);
2042 ndr->depth--;
2045 _PUBLIC_ void ndr_print_NetJoinDomain(struct ndr_print *ndr, const char *name, int flags, const struct NetJoinDomain *r)
2047 ndr_print_struct(ndr, name, "NetJoinDomain");
2048 ndr->depth++;
2049 if (flags & NDR_SET_VALUES) {
2050 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2052 if (flags & NDR_IN) {
2053 ndr_print_struct(ndr, "in", "NetJoinDomain");
2054 ndr->depth++;
2055 ndr_print_ptr(ndr, "server", r->in.server);
2056 ndr->depth++;
2057 if (r->in.server) {
2058 ndr_print_string(ndr, "server", r->in.server);
2060 ndr->depth--;
2061 ndr_print_ptr(ndr, "domain", r->in.domain);
2062 ndr->depth++;
2063 ndr_print_string(ndr, "domain", r->in.domain);
2064 ndr->depth--;
2065 ndr_print_ptr(ndr, "account_ou", r->in.account_ou);
2066 ndr->depth++;
2067 if (r->in.account_ou) {
2068 ndr_print_string(ndr, "account_ou", r->in.account_ou);
2070 ndr->depth--;
2071 ndr_print_ptr(ndr, "account", r->in.account);
2072 ndr->depth++;
2073 if (r->in.account) {
2074 ndr_print_string(ndr, "account", r->in.account);
2076 ndr->depth--;
2077 ndr_print_ptr(ndr, "password", r->in.password);
2078 ndr->depth++;
2079 if (r->in.password) {
2080 ndr_print_string(ndr, "password", r->in.password);
2082 ndr->depth--;
2083 ndr_print_NetJoinFlags(ndr, "join_flags", r->in.join_flags);
2084 ndr->depth--;
2086 if (flags & NDR_OUT) {
2087 ndr_print_struct(ndr, "out", "NetJoinDomain");
2088 ndr->depth++;
2089 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2090 ndr->depth--;
2092 ndr->depth--;
2095 _PUBLIC_ void ndr_print_NetUnjoinDomain(struct ndr_print *ndr, const char *name, int flags, const struct NetUnjoinDomain *r)
2097 ndr_print_struct(ndr, name, "NetUnjoinDomain");
2098 ndr->depth++;
2099 if (flags & NDR_SET_VALUES) {
2100 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2102 if (flags & NDR_IN) {
2103 ndr_print_struct(ndr, "in", "NetUnjoinDomain");
2104 ndr->depth++;
2105 ndr_print_ptr(ndr, "server_name", r->in.server_name);
2106 ndr->depth++;
2107 if (r->in.server_name) {
2108 ndr_print_string(ndr, "server_name", r->in.server_name);
2110 ndr->depth--;
2111 ndr_print_ptr(ndr, "account", r->in.account);
2112 ndr->depth++;
2113 if (r->in.account) {
2114 ndr_print_string(ndr, "account", r->in.account);
2116 ndr->depth--;
2117 ndr_print_ptr(ndr, "password", r->in.password);
2118 ndr->depth++;
2119 if (r->in.password) {
2120 ndr_print_string(ndr, "password", r->in.password);
2122 ndr->depth--;
2123 ndr_print_NetJoinFlags(ndr, "unjoin_flags", r->in.unjoin_flags);
2124 ndr->depth--;
2126 if (flags & NDR_OUT) {
2127 ndr_print_struct(ndr, "out", "NetUnjoinDomain");
2128 ndr->depth++;
2129 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2130 ndr->depth--;
2132 ndr->depth--;
2135 _PUBLIC_ void ndr_print_NetGetJoinInformation(struct ndr_print *ndr, const char *name, int flags, const struct NetGetJoinInformation *r)
2137 ndr_print_struct(ndr, name, "NetGetJoinInformation");
2138 ndr->depth++;
2139 if (flags & NDR_SET_VALUES) {
2140 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2142 if (flags & NDR_IN) {
2143 ndr_print_struct(ndr, "in", "NetGetJoinInformation");
2144 ndr->depth++;
2145 ndr_print_ptr(ndr, "server_name", r->in.server_name);
2146 ndr->depth++;
2147 if (r->in.server_name) {
2148 ndr_print_string(ndr, "server_name", r->in.server_name);
2150 ndr->depth--;
2151 ndr->depth--;
2153 if (flags & NDR_OUT) {
2154 ndr_print_struct(ndr, "out", "NetGetJoinInformation");
2155 ndr->depth++;
2156 ndr_print_ptr(ndr, "name_buffer", r->out.name_buffer);
2157 ndr->depth++;
2158 ndr_print_ptr(ndr, "name_buffer", *r->out.name_buffer);
2159 ndr->depth++;
2160 if (*r->out.name_buffer) {
2161 ndr_print_string(ndr, "name_buffer", *r->out.name_buffer);
2163 ndr->depth--;
2164 ndr->depth--;
2165 ndr_print_ptr(ndr, "name_type", r->out.name_type);
2166 ndr->depth++;
2167 ndr_print_uint16(ndr, "name_type", *r->out.name_type);
2168 ndr->depth--;
2169 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2170 ndr->depth--;
2172 ndr->depth--;
2175 _PUBLIC_ void ndr_print_NetGetJoinableOUs(struct ndr_print *ndr, const char *name, int flags, const struct NetGetJoinableOUs *r)
2177 ndr_print_struct(ndr, name, "NetGetJoinableOUs");
2178 ndr->depth++;
2179 if (flags & NDR_SET_VALUES) {
2180 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2182 if (flags & NDR_IN) {
2183 ndr_print_struct(ndr, "in", "NetGetJoinableOUs");
2184 ndr->depth++;
2185 ndr_print_ptr(ndr, "server_name", r->in.server_name);
2186 ndr->depth++;
2187 if (r->in.server_name) {
2188 ndr_print_string(ndr, "server_name", r->in.server_name);
2190 ndr->depth--;
2191 ndr_print_ptr(ndr, "domain", r->in.domain);
2192 ndr->depth++;
2193 ndr_print_string(ndr, "domain", r->in.domain);
2194 ndr->depth--;
2195 ndr_print_ptr(ndr, "account", r->in.account);
2196 ndr->depth++;
2197 if (r->in.account) {
2198 ndr_print_string(ndr, "account", r->in.account);
2200 ndr->depth--;
2201 ndr_print_ptr(ndr, "password", r->in.password);
2202 ndr->depth++;
2203 if (r->in.password) {
2204 ndr_print_string(ndr, "password", r->in.password);
2206 ndr->depth--;
2207 ndr->depth--;
2209 if (flags & NDR_OUT) {
2210 ndr_print_struct(ndr, "out", "NetGetJoinableOUs");
2211 ndr->depth++;
2212 ndr_print_ptr(ndr, "ou_count", r->out.ou_count);
2213 ndr->depth++;
2214 ndr_print_uint32(ndr, "ou_count", *r->out.ou_count);
2215 ndr->depth--;
2216 ndr_print_ptr(ndr, "ous", r->out.ous);
2217 ndr->depth++;
2218 ndr_print_ptr(ndr, "ous", *r->out.ous);
2219 ndr->depth++;
2220 if (*r->out.ous) {
2221 ndr_print_ptr(ndr, "ous", **r->out.ous);
2222 ndr->depth++;
2223 if (**r->out.ous) {
2224 ndr_print_string(ndr, "ous", **r->out.ous);
2226 ndr->depth--;
2228 ndr->depth--;
2229 ndr->depth--;
2230 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2231 ndr->depth--;
2233 ndr->depth--;
2236 _PUBLIC_ void ndr_print_NetServerGetInfo(struct ndr_print *ndr, const char *name, int flags, const struct NetServerGetInfo *r)
2238 ndr_print_struct(ndr, name, "NetServerGetInfo");
2239 ndr->depth++;
2240 if (flags & NDR_SET_VALUES) {
2241 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2243 if (flags & NDR_IN) {
2244 ndr_print_struct(ndr, "in", "NetServerGetInfo");
2245 ndr->depth++;
2246 ndr_print_ptr(ndr, "server_name", r->in.server_name);
2247 ndr->depth++;
2248 if (r->in.server_name) {
2249 ndr_print_string(ndr, "server_name", r->in.server_name);
2251 ndr->depth--;
2252 ndr_print_uint32(ndr, "level", r->in.level);
2253 ndr->depth--;
2255 if (flags & NDR_OUT) {
2256 ndr_print_struct(ndr, "out", "NetServerGetInfo");
2257 ndr->depth++;
2258 ndr_print_ptr(ndr, "buffer", r->out.buffer);
2259 ndr->depth++;
2260 ndr_print_ptr(ndr, "buffer", *r->out.buffer);
2261 ndr->depth++;
2262 if (*r->out.buffer) {
2263 ndr_print_uint8(ndr, "buffer", **r->out.buffer);
2265 ndr->depth--;
2266 ndr->depth--;
2267 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2268 ndr->depth--;
2270 ndr->depth--;
2273 _PUBLIC_ void ndr_print_NetServerSetInfo(struct ndr_print *ndr, const char *name, int flags, const struct NetServerSetInfo *r)
2275 ndr_print_struct(ndr, name, "NetServerSetInfo");
2276 ndr->depth++;
2277 if (flags & NDR_SET_VALUES) {
2278 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2280 if (flags & NDR_IN) {
2281 ndr_print_struct(ndr, "in", "NetServerSetInfo");
2282 ndr->depth++;
2283 ndr_print_ptr(ndr, "server_name", r->in.server_name);
2284 ndr->depth++;
2285 if (r->in.server_name) {
2286 ndr_print_string(ndr, "server_name", r->in.server_name);
2288 ndr->depth--;
2289 ndr_print_uint32(ndr, "level", r->in.level);
2290 ndr_print_ptr(ndr, "buffer", r->in.buffer);
2291 ndr->depth++;
2292 ndr_print_uint8(ndr, "buffer", *r->in.buffer);
2293 ndr->depth--;
2294 ndr->depth--;
2296 if (flags & NDR_OUT) {
2297 ndr_print_struct(ndr, "out", "NetServerSetInfo");
2298 ndr->depth++;
2299 ndr_print_ptr(ndr, "parm_error", r->out.parm_error);
2300 ndr->depth++;
2301 ndr_print_uint32(ndr, "parm_error", *r->out.parm_error);
2302 ndr->depth--;
2303 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2304 ndr->depth--;
2306 ndr->depth--;
2309 _PUBLIC_ void ndr_print_NetGetDCName(struct ndr_print *ndr, const char *name, int flags, const struct NetGetDCName *r)
2311 ndr_print_struct(ndr, name, "NetGetDCName");
2312 ndr->depth++;
2313 if (flags & NDR_SET_VALUES) {
2314 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2316 if (flags & NDR_IN) {
2317 ndr_print_struct(ndr, "in", "NetGetDCName");
2318 ndr->depth++;
2319 ndr_print_ptr(ndr, "server_name", r->in.server_name);
2320 ndr->depth++;
2321 if (r->in.server_name) {
2322 ndr_print_string(ndr, "server_name", r->in.server_name);
2324 ndr->depth--;
2325 ndr_print_ptr(ndr, "domain_name", r->in.domain_name);
2326 ndr->depth++;
2327 if (r->in.domain_name) {
2328 ndr_print_string(ndr, "domain_name", r->in.domain_name);
2330 ndr->depth--;
2331 ndr->depth--;
2333 if (flags & NDR_OUT) {
2334 ndr_print_struct(ndr, "out", "NetGetDCName");
2335 ndr->depth++;
2336 ndr_print_ptr(ndr, "buffer", r->out.buffer);
2337 ndr->depth++;
2338 ndr_print_ptr(ndr, "buffer", *r->out.buffer);
2339 ndr->depth++;
2340 if (*r->out.buffer) {
2341 ndr_print_uint8(ndr, "buffer", **r->out.buffer);
2343 ndr->depth--;
2344 ndr->depth--;
2345 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2346 ndr->depth--;
2348 ndr->depth--;
2351 _PUBLIC_ void ndr_print_NetGetAnyDCName(struct ndr_print *ndr, const char *name, int flags, const struct NetGetAnyDCName *r)
2353 ndr_print_struct(ndr, name, "NetGetAnyDCName");
2354 ndr->depth++;
2355 if (flags & NDR_SET_VALUES) {
2356 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2358 if (flags & NDR_IN) {
2359 ndr_print_struct(ndr, "in", "NetGetAnyDCName");
2360 ndr->depth++;
2361 ndr_print_ptr(ndr, "server_name", r->in.server_name);
2362 ndr->depth++;
2363 if (r->in.server_name) {
2364 ndr_print_string(ndr, "server_name", r->in.server_name);
2366 ndr->depth--;
2367 ndr_print_ptr(ndr, "domain_name", r->in.domain_name);
2368 ndr->depth++;
2369 if (r->in.domain_name) {
2370 ndr_print_string(ndr, "domain_name", r->in.domain_name);
2372 ndr->depth--;
2373 ndr->depth--;
2375 if (flags & NDR_OUT) {
2376 ndr_print_struct(ndr, "out", "NetGetAnyDCName");
2377 ndr->depth++;
2378 ndr_print_ptr(ndr, "buffer", r->out.buffer);
2379 ndr->depth++;
2380 ndr_print_ptr(ndr, "buffer", *r->out.buffer);
2381 ndr->depth++;
2382 if (*r->out.buffer) {
2383 ndr_print_uint8(ndr, "buffer", **r->out.buffer);
2385 ndr->depth--;
2386 ndr->depth--;
2387 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2388 ndr->depth--;
2390 ndr->depth--;
2393 _PUBLIC_ void ndr_print_DsGetDcName(struct ndr_print *ndr, const char *name, int flags, const struct DsGetDcName *r)
2395 ndr_print_struct(ndr, name, "DsGetDcName");
2396 ndr->depth++;
2397 if (flags & NDR_SET_VALUES) {
2398 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2400 if (flags & NDR_IN) {
2401 ndr_print_struct(ndr, "in", "DsGetDcName");
2402 ndr->depth++;
2403 ndr_print_ptr(ndr, "server_name", r->in.server_name);
2404 ndr->depth++;
2405 if (r->in.server_name) {
2406 ndr_print_string(ndr, "server_name", r->in.server_name);
2408 ndr->depth--;
2409 ndr_print_ptr(ndr, "domain_name", r->in.domain_name);
2410 ndr->depth++;
2411 ndr_print_string(ndr, "domain_name", r->in.domain_name);
2412 ndr->depth--;
2413 ndr_print_ptr(ndr, "domain_guid", r->in.domain_guid);
2414 ndr->depth++;
2415 if (r->in.domain_guid) {
2416 ndr_print_GUID(ndr, "domain_guid", r->in.domain_guid);
2418 ndr->depth--;
2419 ndr_print_ptr(ndr, "site_name", r->in.site_name);
2420 ndr->depth++;
2421 if (r->in.site_name) {
2422 ndr_print_string(ndr, "site_name", r->in.site_name);
2424 ndr->depth--;
2425 ndr_print_uint32(ndr, "flags", r->in.flags);
2426 ndr->depth--;
2428 if (flags & NDR_OUT) {
2429 ndr_print_struct(ndr, "out", "DsGetDcName");
2430 ndr->depth++;
2431 ndr_print_ptr(ndr, "dc_info", r->out.dc_info);
2432 ndr->depth++;
2433 ndr_print_ptr(ndr, "dc_info", *r->out.dc_info);
2434 ndr->depth++;
2435 if (*r->out.dc_info) {
2436 ndr_print_DOMAIN_CONTROLLER_INFO(ndr, "dc_info", *r->out.dc_info);
2438 ndr->depth--;
2439 ndr->depth--;
2440 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2441 ndr->depth--;
2443 ndr->depth--;
2446 _PUBLIC_ void ndr_print_NetUserAdd(struct ndr_print *ndr, const char *name, int flags, const struct NetUserAdd *r)
2448 ndr_print_struct(ndr, name, "NetUserAdd");
2449 ndr->depth++;
2450 if (flags & NDR_SET_VALUES) {
2451 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2453 if (flags & NDR_IN) {
2454 ndr_print_struct(ndr, "in", "NetUserAdd");
2455 ndr->depth++;
2456 ndr_print_ptr(ndr, "server_name", r->in.server_name);
2457 ndr->depth++;
2458 if (r->in.server_name) {
2459 ndr_print_string(ndr, "server_name", r->in.server_name);
2461 ndr->depth--;
2462 ndr_print_uint32(ndr, "level", r->in.level);
2463 ndr_print_ptr(ndr, "buffer", r->in.buffer);
2464 ndr->depth++;
2465 ndr_print_uint8(ndr, "buffer", *r->in.buffer);
2466 ndr->depth--;
2467 ndr->depth--;
2469 if (flags & NDR_OUT) {
2470 ndr_print_struct(ndr, "out", "NetUserAdd");
2471 ndr->depth++;
2472 ndr_print_ptr(ndr, "parm_error", r->out.parm_error);
2473 ndr->depth++;
2474 ndr_print_uint32(ndr, "parm_error", *r->out.parm_error);
2475 ndr->depth--;
2476 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2477 ndr->depth--;
2479 ndr->depth--;
2482 _PUBLIC_ void ndr_print_NetUserDel(struct ndr_print *ndr, const char *name, int flags, const struct NetUserDel *r)
2484 ndr_print_struct(ndr, name, "NetUserDel");
2485 ndr->depth++;
2486 if (flags & NDR_SET_VALUES) {
2487 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2489 if (flags & NDR_IN) {
2490 ndr_print_struct(ndr, "in", "NetUserDel");
2491 ndr->depth++;
2492 ndr_print_ptr(ndr, "server_name", r->in.server_name);
2493 ndr->depth++;
2494 if (r->in.server_name) {
2495 ndr_print_string(ndr, "server_name", r->in.server_name);
2497 ndr->depth--;
2498 ndr_print_ptr(ndr, "user_name", r->in.user_name);
2499 ndr->depth++;
2500 ndr_print_string(ndr, "user_name", r->in.user_name);
2501 ndr->depth--;
2502 ndr->depth--;
2504 if (flags & NDR_OUT) {
2505 ndr_print_struct(ndr, "out", "NetUserDel");
2506 ndr->depth++;
2507 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2508 ndr->depth--;
2510 ndr->depth--;
2513 _PUBLIC_ void ndr_print_NetUserEnum(struct ndr_print *ndr, const char *name, int flags, const struct NetUserEnum *r)
2515 ndr_print_struct(ndr, name, "NetUserEnum");
2516 ndr->depth++;
2517 if (flags & NDR_SET_VALUES) {
2518 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2520 if (flags & NDR_IN) {
2521 ndr_print_struct(ndr, "in", "NetUserEnum");
2522 ndr->depth++;
2523 ndr_print_ptr(ndr, "server_name", r->in.server_name);
2524 ndr->depth++;
2525 if (r->in.server_name) {
2526 ndr_print_string(ndr, "server_name", r->in.server_name);
2528 ndr->depth--;
2529 ndr_print_uint32(ndr, "level", r->in.level);
2530 ndr_print_uint32(ndr, "filter", r->in.filter);
2531 ndr_print_uint32(ndr, "prefmaxlen", r->in.prefmaxlen);
2532 ndr_print_ptr(ndr, "resume_handle", r->in.resume_handle);
2533 ndr->depth++;
2534 ndr_print_uint32(ndr, "resume_handle", *r->in.resume_handle);
2535 ndr->depth--;
2536 ndr->depth--;
2538 if (flags & NDR_OUT) {
2539 ndr_print_struct(ndr, "out", "NetUserEnum");
2540 ndr->depth++;
2541 ndr_print_ptr(ndr, "buffer", r->out.buffer);
2542 ndr->depth++;
2543 ndr_print_ptr(ndr, "buffer", *r->out.buffer);
2544 ndr->depth++;
2545 if (*r->out.buffer) {
2546 ndr_print_uint8(ndr, "buffer", **r->out.buffer);
2548 ndr->depth--;
2549 ndr->depth--;
2550 ndr_print_ptr(ndr, "entries_read", r->out.entries_read);
2551 ndr->depth++;
2552 ndr_print_uint32(ndr, "entries_read", *r->out.entries_read);
2553 ndr->depth--;
2554 ndr_print_ptr(ndr, "total_entries", r->out.total_entries);
2555 ndr->depth++;
2556 ndr_print_uint32(ndr, "total_entries", *r->out.total_entries);
2557 ndr->depth--;
2558 ndr_print_ptr(ndr, "resume_handle", r->out.resume_handle);
2559 ndr->depth++;
2560 ndr_print_uint32(ndr, "resume_handle", *r->out.resume_handle);
2561 ndr->depth--;
2562 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2563 ndr->depth--;
2565 ndr->depth--;
2568 _PUBLIC_ void ndr_print_NetUserChangePassword(struct ndr_print *ndr, const char *name, int flags, const struct NetUserChangePassword *r)
2570 ndr_print_struct(ndr, name, "NetUserChangePassword");
2571 ndr->depth++;
2572 if (flags & NDR_SET_VALUES) {
2573 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2575 if (flags & NDR_IN) {
2576 ndr_print_struct(ndr, "in", "NetUserChangePassword");
2577 ndr->depth++;
2578 ndr_print_string(ndr, "domain_name", r->in.domain_name);
2579 ndr_print_string(ndr, "user_name", r->in.user_name);
2580 ndr_print_string(ndr, "old_password", r->in.old_password);
2581 ndr_print_string(ndr, "new_password", r->in.new_password);
2582 ndr->depth--;
2584 if (flags & NDR_OUT) {
2585 ndr_print_struct(ndr, "out", "NetUserChangePassword");
2586 ndr->depth++;
2587 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2588 ndr->depth--;
2590 ndr->depth--;
2593 _PUBLIC_ void ndr_print_NetUserGetInfo(struct ndr_print *ndr, const char *name, int flags, const struct NetUserGetInfo *r)
2595 ndr_print_struct(ndr, name, "NetUserGetInfo");
2596 ndr->depth++;
2597 if (flags & NDR_SET_VALUES) {
2598 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2600 if (flags & NDR_IN) {
2601 ndr_print_struct(ndr, "in", "NetUserGetInfo");
2602 ndr->depth++;
2603 ndr_print_string(ndr, "server_name", r->in.server_name);
2604 ndr_print_string(ndr, "user_name", r->in.user_name);
2605 ndr_print_uint32(ndr, "level", r->in.level);
2606 ndr->depth--;
2608 if (flags & NDR_OUT) {
2609 ndr_print_struct(ndr, "out", "NetUserGetInfo");
2610 ndr->depth++;
2611 ndr_print_ptr(ndr, "buffer", r->out.buffer);
2612 ndr->depth++;
2613 ndr_print_ptr(ndr, "buffer", *r->out.buffer);
2614 ndr->depth++;
2615 if (*r->out.buffer) {
2616 ndr_print_uint8(ndr, "buffer", **r->out.buffer);
2618 ndr->depth--;
2619 ndr->depth--;
2620 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2621 ndr->depth--;
2623 ndr->depth--;
2626 _PUBLIC_ void ndr_print_NetUserSetInfo(struct ndr_print *ndr, const char *name, int flags, const struct NetUserSetInfo *r)
2628 ndr_print_struct(ndr, name, "NetUserSetInfo");
2629 ndr->depth++;
2630 if (flags & NDR_SET_VALUES) {
2631 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2633 if (flags & NDR_IN) {
2634 ndr_print_struct(ndr, "in", "NetUserSetInfo");
2635 ndr->depth++;
2636 ndr_print_string(ndr, "server_name", r->in.server_name);
2637 ndr_print_string(ndr, "user_name", r->in.user_name);
2638 ndr_print_uint32(ndr, "level", r->in.level);
2639 ndr_print_ptr(ndr, "buffer", r->in.buffer);
2640 ndr->depth++;
2641 ndr_print_uint8(ndr, "buffer", *r->in.buffer);
2642 ndr->depth--;
2643 ndr->depth--;
2645 if (flags & NDR_OUT) {
2646 ndr_print_struct(ndr, "out", "NetUserSetInfo");
2647 ndr->depth++;
2648 ndr_print_ptr(ndr, "parm_err", r->out.parm_err);
2649 ndr->depth++;
2650 ndr_print_uint32(ndr, "parm_err", *r->out.parm_err);
2651 ndr->depth--;
2652 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2653 ndr->depth--;
2655 ndr->depth--;
2658 _PUBLIC_ void ndr_print_NetUserGetGroups(struct ndr_print *ndr, const char *name, int flags, const struct NetUserGetGroups *r)
2660 ndr_print_struct(ndr, name, "NetUserGetGroups");
2661 ndr->depth++;
2662 if (flags & NDR_SET_VALUES) {
2663 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2665 if (flags & NDR_IN) {
2666 ndr_print_struct(ndr, "in", "NetUserGetGroups");
2667 ndr->depth++;
2668 ndr_print_string(ndr, "server_name", r->in.server_name);
2669 ndr_print_string(ndr, "user_name", r->in.user_name);
2670 ndr_print_uint32(ndr, "level", r->in.level);
2671 ndr_print_uint32(ndr, "prefmaxlen", r->in.prefmaxlen);
2672 ndr->depth--;
2674 if (flags & NDR_OUT) {
2675 ndr_print_struct(ndr, "out", "NetUserGetGroups");
2676 ndr->depth++;
2677 ndr_print_ptr(ndr, "buffer", r->out.buffer);
2678 ndr->depth++;
2679 ndr_print_ptr(ndr, "buffer", *r->out.buffer);
2680 ndr->depth++;
2681 if (*r->out.buffer) {
2682 ndr_print_uint8(ndr, "buffer", **r->out.buffer);
2684 ndr->depth--;
2685 ndr->depth--;
2686 ndr_print_ptr(ndr, "entries_read", r->out.entries_read);
2687 ndr->depth++;
2688 ndr_print_uint32(ndr, "entries_read", *r->out.entries_read);
2689 ndr->depth--;
2690 ndr_print_ptr(ndr, "total_entries", r->out.total_entries);
2691 ndr->depth++;
2692 ndr_print_uint32(ndr, "total_entries", *r->out.total_entries);
2693 ndr->depth--;
2694 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2695 ndr->depth--;
2697 ndr->depth--;
2700 _PUBLIC_ void ndr_print_NetUserModalsGet(struct ndr_print *ndr, const char *name, int flags, const struct NetUserModalsGet *r)
2702 ndr_print_struct(ndr, name, "NetUserModalsGet");
2703 ndr->depth++;
2704 if (flags & NDR_SET_VALUES) {
2705 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2707 if (flags & NDR_IN) {
2708 ndr_print_struct(ndr, "in", "NetUserModalsGet");
2709 ndr->depth++;
2710 ndr_print_string(ndr, "server_name", r->in.server_name);
2711 ndr_print_uint32(ndr, "level", r->in.level);
2712 ndr->depth--;
2714 if (flags & NDR_OUT) {
2715 ndr_print_struct(ndr, "out", "NetUserModalsGet");
2716 ndr->depth++;
2717 ndr_print_ptr(ndr, "buffer", r->out.buffer);
2718 ndr->depth++;
2719 ndr_print_ptr(ndr, "buffer", *r->out.buffer);
2720 ndr->depth++;
2721 if (*r->out.buffer) {
2722 ndr_print_uint8(ndr, "buffer", **r->out.buffer);
2724 ndr->depth--;
2725 ndr->depth--;
2726 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2727 ndr->depth--;
2729 ndr->depth--;
2732 _PUBLIC_ void ndr_print_NetUserModalsSet(struct ndr_print *ndr, const char *name, int flags, const struct NetUserModalsSet *r)
2734 ndr_print_struct(ndr, name, "NetUserModalsSet");
2735 ndr->depth++;
2736 if (flags & NDR_SET_VALUES) {
2737 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2739 if (flags & NDR_IN) {
2740 ndr_print_struct(ndr, "in", "NetUserModalsSet");
2741 ndr->depth++;
2742 ndr_print_string(ndr, "server_name", r->in.server_name);
2743 ndr_print_uint32(ndr, "level", r->in.level);
2744 ndr_print_ptr(ndr, "buffer", r->in.buffer);
2745 ndr->depth++;
2746 ndr_print_uint8(ndr, "buffer", *r->in.buffer);
2747 ndr->depth--;
2748 ndr->depth--;
2750 if (flags & NDR_OUT) {
2751 ndr_print_struct(ndr, "out", "NetUserModalsSet");
2752 ndr->depth++;
2753 ndr_print_ptr(ndr, "parm_err", r->out.parm_err);
2754 ndr->depth++;
2755 ndr_print_uint32(ndr, "parm_err", *r->out.parm_err);
2756 ndr->depth--;
2757 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2758 ndr->depth--;
2760 ndr->depth--;
2763 _PUBLIC_ void ndr_print_NetQueryDisplayInformation(struct ndr_print *ndr, const char *name, int flags, const struct NetQueryDisplayInformation *r)
2765 ndr_print_struct(ndr, name, "NetQueryDisplayInformation");
2766 ndr->depth++;
2767 if (flags & NDR_SET_VALUES) {
2768 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2770 if (flags & NDR_IN) {
2771 ndr_print_struct(ndr, "in", "NetQueryDisplayInformation");
2772 ndr->depth++;
2773 ndr_print_ptr(ndr, "server_name", r->in.server_name);
2774 ndr->depth++;
2775 if (r->in.server_name) {
2776 ndr_print_string(ndr, "server_name", r->in.server_name);
2778 ndr->depth--;
2779 ndr_print_uint32(ndr, "level", r->in.level);
2780 ndr_print_uint32(ndr, "idx", r->in.idx);
2781 ndr_print_uint32(ndr, "entries_requested", r->in.entries_requested);
2782 ndr_print_uint32(ndr, "prefmaxlen", r->in.prefmaxlen);
2783 ndr->depth--;
2785 if (flags & NDR_OUT) {
2786 ndr_print_struct(ndr, "out", "NetQueryDisplayInformation");
2787 ndr->depth++;
2788 ndr_print_ptr(ndr, "entries_read", r->out.entries_read);
2789 ndr->depth++;
2790 ndr_print_uint32(ndr, "entries_read", *r->out.entries_read);
2791 ndr->depth--;
2792 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2793 ndr->depth--;
2795 ndr->depth--;
2798 _PUBLIC_ void ndr_print_NetGroupAdd(struct ndr_print *ndr, const char *name, int flags, const struct NetGroupAdd *r)
2800 ndr_print_struct(ndr, name, "NetGroupAdd");
2801 ndr->depth++;
2802 if (flags & NDR_SET_VALUES) {
2803 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2805 if (flags & NDR_IN) {
2806 ndr_print_struct(ndr, "in", "NetGroupAdd");
2807 ndr->depth++;
2808 ndr_print_string(ndr, "server_name", r->in.server_name);
2809 ndr_print_uint32(ndr, "level", r->in.level);
2810 ndr_print_ptr(ndr, "buffer", r->in.buffer);
2811 ndr->depth++;
2812 ndr_print_uint8(ndr, "buffer", *r->in.buffer);
2813 ndr->depth--;
2814 ndr->depth--;
2816 if (flags & NDR_OUT) {
2817 ndr_print_struct(ndr, "out", "NetGroupAdd");
2818 ndr->depth++;
2819 ndr_print_ptr(ndr, "parm_err", r->out.parm_err);
2820 ndr->depth++;
2821 ndr_print_uint32(ndr, "parm_err", *r->out.parm_err);
2822 ndr->depth--;
2823 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2824 ndr->depth--;
2826 ndr->depth--;
2829 _PUBLIC_ void ndr_print_NetGroupDel(struct ndr_print *ndr, const char *name, int flags, const struct NetGroupDel *r)
2831 ndr_print_struct(ndr, name, "NetGroupDel");
2832 ndr->depth++;
2833 if (flags & NDR_SET_VALUES) {
2834 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2836 if (flags & NDR_IN) {
2837 ndr_print_struct(ndr, "in", "NetGroupDel");
2838 ndr->depth++;
2839 ndr_print_string(ndr, "server_name", r->in.server_name);
2840 ndr_print_string(ndr, "group_name", r->in.group_name);
2841 ndr->depth--;
2843 if (flags & NDR_OUT) {
2844 ndr_print_struct(ndr, "out", "NetGroupDel");
2845 ndr->depth++;
2846 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2847 ndr->depth--;
2849 ndr->depth--;
2852 _PUBLIC_ void ndr_print_NetGroupEnum(struct ndr_print *ndr, const char *name, int flags, const struct NetGroupEnum *r)
2854 ndr_print_struct(ndr, name, "NetGroupEnum");
2855 ndr->depth++;
2856 if (flags & NDR_SET_VALUES) {
2857 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2859 if (flags & NDR_IN) {
2860 ndr_print_struct(ndr, "in", "NetGroupEnum");
2861 ndr->depth++;
2862 ndr_print_string(ndr, "server_name", r->in.server_name);
2863 ndr_print_uint32(ndr, "level", r->in.level);
2864 ndr_print_uint32(ndr, "prefmaxlen", r->in.prefmaxlen);
2865 ndr_print_ptr(ndr, "resume_handle", r->in.resume_handle);
2866 ndr->depth++;
2867 ndr_print_uint32(ndr, "resume_handle", *r->in.resume_handle);
2868 ndr->depth--;
2869 ndr->depth--;
2871 if (flags & NDR_OUT) {
2872 ndr_print_struct(ndr, "out", "NetGroupEnum");
2873 ndr->depth++;
2874 ndr_print_ptr(ndr, "buffer", r->out.buffer);
2875 ndr->depth++;
2876 ndr_print_ptr(ndr, "buffer", *r->out.buffer);
2877 ndr->depth++;
2878 if (*r->out.buffer) {
2879 ndr_print_uint8(ndr, "buffer", **r->out.buffer);
2881 ndr->depth--;
2882 ndr->depth--;
2883 ndr_print_ptr(ndr, "entries_read", r->out.entries_read);
2884 ndr->depth++;
2885 ndr_print_uint32(ndr, "entries_read", *r->out.entries_read);
2886 ndr->depth--;
2887 ndr_print_ptr(ndr, "total_entries", r->out.total_entries);
2888 ndr->depth++;
2889 ndr_print_uint32(ndr, "total_entries", *r->out.total_entries);
2890 ndr->depth--;
2891 ndr_print_ptr(ndr, "resume_handle", r->out.resume_handle);
2892 ndr->depth++;
2893 ndr_print_uint32(ndr, "resume_handle", *r->out.resume_handle);
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_NetGroupSetInfo(struct ndr_print *ndr, const char *name, int flags, const struct NetGroupSetInfo *r)
2903 ndr_print_struct(ndr, name, "NetGroupSetInfo");
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", "NetGroupSetInfo");
2910 ndr->depth++;
2911 ndr_print_string(ndr, "server_name", r->in.server_name);
2912 ndr_print_string(ndr, "group_name", r->in.group_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->depth--;
2920 if (flags & NDR_OUT) {
2921 ndr_print_struct(ndr, "out", "NetGroupSetInfo");
2922 ndr->depth++;
2923 ndr_print_ptr(ndr, "parm_err", r->out.parm_err);
2924 ndr->depth++;
2925 ndr_print_uint32(ndr, "parm_err", *r->out.parm_err);
2926 ndr->depth--;
2927 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2928 ndr->depth--;
2930 ndr->depth--;
2933 _PUBLIC_ void ndr_print_NetGroupGetInfo(struct ndr_print *ndr, const char *name, int flags, const struct NetGroupGetInfo *r)
2935 ndr_print_struct(ndr, name, "NetGroupGetInfo");
2936 ndr->depth++;
2937 if (flags & NDR_SET_VALUES) {
2938 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2940 if (flags & NDR_IN) {
2941 ndr_print_struct(ndr, "in", "NetGroupGetInfo");
2942 ndr->depth++;
2943 ndr_print_string(ndr, "server_name", r->in.server_name);
2944 ndr_print_string(ndr, "group_name", r->in.group_name);
2945 ndr_print_uint32(ndr, "level", r->in.level);
2946 ndr->depth--;
2948 if (flags & NDR_OUT) {
2949 ndr_print_struct(ndr, "out", "NetGroupGetInfo");
2950 ndr->depth++;
2951 ndr_print_ptr(ndr, "buffer", r->out.buffer);
2952 ndr->depth++;
2953 ndr_print_ptr(ndr, "buffer", *r->out.buffer);
2954 ndr->depth++;
2955 if (*r->out.buffer) {
2956 ndr_print_uint8(ndr, "buffer", **r->out.buffer);
2958 ndr->depth--;
2959 ndr->depth--;
2960 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2961 ndr->depth--;
2963 ndr->depth--;
2966 _PUBLIC_ void ndr_print_NetGroupAddUser(struct ndr_print *ndr, const char *name, int flags, const struct NetGroupAddUser *r)
2968 ndr_print_struct(ndr, name, "NetGroupAddUser");
2969 ndr->depth++;
2970 if (flags & NDR_SET_VALUES) {
2971 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2973 if (flags & NDR_IN) {
2974 ndr_print_struct(ndr, "in", "NetGroupAddUser");
2975 ndr->depth++;
2976 ndr_print_string(ndr, "server_name", r->in.server_name);
2977 ndr_print_string(ndr, "group_name", r->in.group_name);
2978 ndr_print_string(ndr, "user_name", r->in.user_name);
2979 ndr->depth--;
2981 if (flags & NDR_OUT) {
2982 ndr_print_struct(ndr, "out", "NetGroupAddUser");
2983 ndr->depth++;
2984 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2985 ndr->depth--;
2987 ndr->depth--;
2990 _PUBLIC_ void ndr_print_NetGroupDelUser(struct ndr_print *ndr, const char *name, int flags, const struct NetGroupDelUser *r)
2992 ndr_print_struct(ndr, name, "NetGroupDelUser");
2993 ndr->depth++;
2994 if (flags & NDR_SET_VALUES) {
2995 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2997 if (flags & NDR_IN) {
2998 ndr_print_struct(ndr, "in", "NetGroupDelUser");
2999 ndr->depth++;
3000 ndr_print_string(ndr, "server_name", r->in.server_name);
3001 ndr_print_string(ndr, "group_name", r->in.group_name);
3002 ndr_print_string(ndr, "user_name", r->in.user_name);
3003 ndr->depth--;
3005 if (flags & NDR_OUT) {
3006 ndr_print_struct(ndr, "out", "NetGroupDelUser");
3007 ndr->depth++;
3008 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
3009 ndr->depth--;
3011 ndr->depth--;
3014 _PUBLIC_ void ndr_print_NetGroupGetUsers(struct ndr_print *ndr, const char *name, int flags, const struct NetGroupGetUsers *r)
3016 ndr_print_struct(ndr, name, "NetGroupGetUsers");
3017 ndr->depth++;
3018 if (flags & NDR_SET_VALUES) {
3019 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3021 if (flags & NDR_IN) {
3022 ndr_print_struct(ndr, "in", "NetGroupGetUsers");
3023 ndr->depth++;
3024 ndr_print_string(ndr, "server_name", r->in.server_name);
3025 ndr_print_string(ndr, "group_name", r->in.group_name);
3026 ndr_print_uint32(ndr, "level", r->in.level);
3027 ndr_print_uint32(ndr, "prefmaxlen", r->in.prefmaxlen);
3028 ndr_print_ptr(ndr, "resume_handle", r->in.resume_handle);
3029 ndr->depth++;
3030 ndr_print_uint32(ndr, "resume_handle", *r->in.resume_handle);
3031 ndr->depth--;
3032 ndr->depth--;
3034 if (flags & NDR_OUT) {
3035 ndr_print_struct(ndr, "out", "NetGroupGetUsers");
3036 ndr->depth++;
3037 ndr_print_ptr(ndr, "buffer", r->out.buffer);
3038 ndr->depth++;
3039 ndr_print_ptr(ndr, "buffer", *r->out.buffer);
3040 ndr->depth++;
3041 if (*r->out.buffer) {
3042 ndr_print_uint8(ndr, "buffer", **r->out.buffer);
3044 ndr->depth--;
3045 ndr->depth--;
3046 ndr_print_ptr(ndr, "entries_read", r->out.entries_read);
3047 ndr->depth++;
3048 ndr_print_uint32(ndr, "entries_read", *r->out.entries_read);
3049 ndr->depth--;
3050 ndr_print_ptr(ndr, "total_entries", r->out.total_entries);
3051 ndr->depth++;
3052 ndr_print_uint32(ndr, "total_entries", *r->out.total_entries);
3053 ndr->depth--;
3054 ndr_print_ptr(ndr, "resume_handle", r->out.resume_handle);
3055 ndr->depth++;
3056 ndr_print_uint32(ndr, "resume_handle", *r->out.resume_handle);
3057 ndr->depth--;
3058 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
3059 ndr->depth--;
3061 ndr->depth--;
3064 _PUBLIC_ void ndr_print_NetLocalGroupAdd(struct ndr_print *ndr, const char *name, int flags, const struct NetLocalGroupAdd *r)
3066 ndr_print_struct(ndr, name, "NetLocalGroupAdd");
3067 ndr->depth++;
3068 if (flags & NDR_SET_VALUES) {
3069 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3071 if (flags & NDR_IN) {
3072 ndr_print_struct(ndr, "in", "NetLocalGroupAdd");
3073 ndr->depth++;
3074 ndr_print_string(ndr, "server_name", r->in.server_name);
3075 ndr_print_uint32(ndr, "level", r->in.level);
3076 ndr_print_ptr(ndr, "buffer", r->in.buffer);
3077 ndr->depth++;
3078 ndr_print_uint8(ndr, "buffer", *r->in.buffer);
3079 ndr->depth--;
3080 ndr->depth--;
3082 if (flags & NDR_OUT) {
3083 ndr_print_struct(ndr, "out", "NetLocalGroupAdd");
3084 ndr->depth++;
3085 ndr_print_ptr(ndr, "parm_err", r->out.parm_err);
3086 ndr->depth++;
3087 ndr_print_uint32(ndr, "parm_err", *r->out.parm_err);
3088 ndr->depth--;
3089 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
3090 ndr->depth--;
3092 ndr->depth--;
3095 _PUBLIC_ void ndr_print_NetLocalGroupDel(struct ndr_print *ndr, const char *name, int flags, const struct NetLocalGroupDel *r)
3097 ndr_print_struct(ndr, name, "NetLocalGroupDel");
3098 ndr->depth++;
3099 if (flags & NDR_SET_VALUES) {
3100 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3102 if (flags & NDR_IN) {
3103 ndr_print_struct(ndr, "in", "NetLocalGroupDel");
3104 ndr->depth++;
3105 ndr_print_string(ndr, "server_name", r->in.server_name);
3106 ndr_print_string(ndr, "group_name", r->in.group_name);
3107 ndr->depth--;
3109 if (flags & NDR_OUT) {
3110 ndr_print_struct(ndr, "out", "NetLocalGroupDel");
3111 ndr->depth++;
3112 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
3113 ndr->depth--;
3115 ndr->depth--;
3118 _PUBLIC_ void ndr_print_NetLocalGroupGetInfo(struct ndr_print *ndr, const char *name, int flags, const struct NetLocalGroupGetInfo *r)
3120 ndr_print_struct(ndr, name, "NetLocalGroupGetInfo");
3121 ndr->depth++;
3122 if (flags & NDR_SET_VALUES) {
3123 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3125 if (flags & NDR_IN) {
3126 ndr_print_struct(ndr, "in", "NetLocalGroupGetInfo");
3127 ndr->depth++;
3128 ndr_print_string(ndr, "server_name", r->in.server_name);
3129 ndr_print_string(ndr, "group_name", r->in.group_name);
3130 ndr_print_uint32(ndr, "level", r->in.level);
3131 ndr->depth--;
3133 if (flags & NDR_OUT) {
3134 ndr_print_struct(ndr, "out", "NetLocalGroupGetInfo");
3135 ndr->depth++;
3136 ndr_print_ptr(ndr, "buffer", r->out.buffer);
3137 ndr->depth++;
3138 ndr_print_ptr(ndr, "buffer", *r->out.buffer);
3139 ndr->depth++;
3140 if (*r->out.buffer) {
3141 ndr_print_uint8(ndr, "buffer", **r->out.buffer);
3143 ndr->depth--;
3144 ndr->depth--;
3145 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
3146 ndr->depth--;
3148 ndr->depth--;
3151 _PUBLIC_ void ndr_print_NetLocalGroupSetInfo(struct ndr_print *ndr, const char *name, int flags, const struct NetLocalGroupSetInfo *r)
3153 ndr_print_struct(ndr, name, "NetLocalGroupSetInfo");
3154 ndr->depth++;
3155 if (flags & NDR_SET_VALUES) {
3156 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3158 if (flags & NDR_IN) {
3159 ndr_print_struct(ndr, "in", "NetLocalGroupSetInfo");
3160 ndr->depth++;
3161 ndr_print_string(ndr, "server_name", r->in.server_name);
3162 ndr_print_string(ndr, "group_name", r->in.group_name);
3163 ndr_print_uint32(ndr, "level", r->in.level);
3164 ndr_print_ptr(ndr, "buffer", r->in.buffer);
3165 ndr->depth++;
3166 ndr_print_uint8(ndr, "buffer", *r->in.buffer);
3167 ndr->depth--;
3168 ndr->depth--;
3170 if (flags & NDR_OUT) {
3171 ndr_print_struct(ndr, "out", "NetLocalGroupSetInfo");
3172 ndr->depth++;
3173 ndr_print_ptr(ndr, "parm_err", r->out.parm_err);
3174 ndr->depth++;
3175 ndr_print_uint32(ndr, "parm_err", *r->out.parm_err);
3176 ndr->depth--;
3177 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
3178 ndr->depth--;
3180 ndr->depth--;
3183 _PUBLIC_ void ndr_print_NetLocalGroupEnum(struct ndr_print *ndr, const char *name, int flags, const struct NetLocalGroupEnum *r)
3185 ndr_print_struct(ndr, name, "NetLocalGroupEnum");
3186 ndr->depth++;
3187 if (flags & NDR_SET_VALUES) {
3188 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3190 if (flags & NDR_IN) {
3191 ndr_print_struct(ndr, "in", "NetLocalGroupEnum");
3192 ndr->depth++;
3193 ndr_print_string(ndr, "server_name", r->in.server_name);
3194 ndr_print_uint32(ndr, "level", r->in.level);
3195 ndr_print_uint32(ndr, "prefmaxlen", r->in.prefmaxlen);
3196 ndr_print_ptr(ndr, "resume_handle", r->in.resume_handle);
3197 ndr->depth++;
3198 ndr_print_uint32(ndr, "resume_handle", *r->in.resume_handle);
3199 ndr->depth--;
3200 ndr->depth--;
3202 if (flags & NDR_OUT) {
3203 ndr_print_struct(ndr, "out", "NetLocalGroupEnum");
3204 ndr->depth++;
3205 ndr_print_ptr(ndr, "buffer", r->out.buffer);
3206 ndr->depth++;
3207 ndr_print_ptr(ndr, "buffer", *r->out.buffer);
3208 ndr->depth++;
3209 if (*r->out.buffer) {
3210 ndr_print_uint8(ndr, "buffer", **r->out.buffer);
3212 ndr->depth--;
3213 ndr->depth--;
3214 ndr_print_ptr(ndr, "entries_read", r->out.entries_read);
3215 ndr->depth++;
3216 ndr_print_uint32(ndr, "entries_read", *r->out.entries_read);
3217 ndr->depth--;
3218 ndr_print_ptr(ndr, "total_entries", r->out.total_entries);
3219 ndr->depth++;
3220 ndr_print_uint32(ndr, "total_entries", *r->out.total_entries);
3221 ndr->depth--;
3222 ndr_print_ptr(ndr, "resume_handle", r->out.resume_handle);
3223 ndr->depth++;
3224 ndr_print_uint32(ndr, "resume_handle", *r->out.resume_handle);
3225 ndr->depth--;
3226 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
3227 ndr->depth--;
3229 ndr->depth--;
3232 _PUBLIC_ void ndr_print_NetLocalGroupAddMembers(struct ndr_print *ndr, const char *name, int flags, const struct NetLocalGroupAddMembers *r)
3234 ndr_print_struct(ndr, name, "NetLocalGroupAddMembers");
3235 ndr->depth++;
3236 if (flags & NDR_SET_VALUES) {
3237 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3239 if (flags & NDR_IN) {
3240 ndr_print_struct(ndr, "in", "NetLocalGroupAddMembers");
3241 ndr->depth++;
3242 ndr_print_string(ndr, "server_name", r->in.server_name);
3243 ndr_print_string(ndr, "group_name", r->in.group_name);
3244 ndr_print_uint32(ndr, "level", r->in.level);
3245 ndr_print_ptr(ndr, "buffer", r->in.buffer);
3246 ndr->depth++;
3247 ndr_print_uint8(ndr, "buffer", *r->in.buffer);
3248 ndr->depth--;
3249 ndr_print_uint32(ndr, "total_entries", r->in.total_entries);
3250 ndr->depth--;
3252 if (flags & NDR_OUT) {
3253 ndr_print_struct(ndr, "out", "NetLocalGroupAddMembers");
3254 ndr->depth++;
3255 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
3256 ndr->depth--;
3258 ndr->depth--;
3261 _PUBLIC_ void ndr_print_NetLocalGroupDelMembers(struct ndr_print *ndr, const char *name, int flags, const struct NetLocalGroupDelMembers *r)
3263 ndr_print_struct(ndr, name, "NetLocalGroupDelMembers");
3264 ndr->depth++;
3265 if (flags & NDR_SET_VALUES) {
3266 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3268 if (flags & NDR_IN) {
3269 ndr_print_struct(ndr, "in", "NetLocalGroupDelMembers");
3270 ndr->depth++;
3271 ndr_print_string(ndr, "server_name", r->in.server_name);
3272 ndr_print_string(ndr, "group_name", r->in.group_name);
3273 ndr_print_uint32(ndr, "level", r->in.level);
3274 ndr_print_ptr(ndr, "buffer", r->in.buffer);
3275 ndr->depth++;
3276 ndr_print_uint8(ndr, "buffer", *r->in.buffer);
3277 ndr->depth--;
3278 ndr_print_uint32(ndr, "total_entries", r->in.total_entries);
3279 ndr->depth--;
3281 if (flags & NDR_OUT) {
3282 ndr_print_struct(ndr, "out", "NetLocalGroupDelMembers");
3283 ndr->depth++;
3284 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
3285 ndr->depth--;
3287 ndr->depth--;
3290 _PUBLIC_ void ndr_print_NetLocalGroupGetMembers(struct ndr_print *ndr, const char *name, int flags, const struct NetLocalGroupGetMembers *r)
3292 ndr_print_struct(ndr, name, "NetLocalGroupGetMembers");
3293 ndr->depth++;
3294 if (flags & NDR_SET_VALUES) {
3295 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3297 if (flags & NDR_IN) {
3298 ndr_print_struct(ndr, "in", "NetLocalGroupGetMembers");
3299 ndr->depth++;
3300 ndr_print_string(ndr, "server_name", r->in.server_name);
3301 ndr_print_string(ndr, "local_group_name", r->in.local_group_name);
3302 ndr_print_uint32(ndr, "level", r->in.level);
3303 ndr_print_uint32(ndr, "prefmaxlen", r->in.prefmaxlen);
3304 ndr_print_ptr(ndr, "resume_handle", r->in.resume_handle);
3305 ndr->depth++;
3306 ndr_print_uint32(ndr, "resume_handle", *r->in.resume_handle);
3307 ndr->depth--;
3308 ndr->depth--;
3310 if (flags & NDR_OUT) {
3311 ndr_print_struct(ndr, "out", "NetLocalGroupGetMembers");
3312 ndr->depth++;
3313 ndr_print_ptr(ndr, "buffer", r->out.buffer);
3314 ndr->depth++;
3315 ndr_print_ptr(ndr, "buffer", *r->out.buffer);
3316 ndr->depth++;
3317 if (*r->out.buffer) {
3318 ndr_print_uint8(ndr, "buffer", **r->out.buffer);
3320 ndr->depth--;
3321 ndr->depth--;
3322 ndr_print_ptr(ndr, "entries_read", r->out.entries_read);
3323 ndr->depth++;
3324 ndr_print_uint32(ndr, "entries_read", *r->out.entries_read);
3325 ndr->depth--;
3326 ndr_print_ptr(ndr, "total_entries", r->out.total_entries);
3327 ndr->depth++;
3328 ndr_print_uint32(ndr, "total_entries", *r->out.total_entries);
3329 ndr->depth--;
3330 ndr_print_ptr(ndr, "resume_handle", r->out.resume_handle);
3331 ndr->depth++;
3332 ndr_print_uint32(ndr, "resume_handle", *r->out.resume_handle);
3333 ndr->depth--;
3334 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
3335 ndr->depth--;
3337 ndr->depth--;
3340 _PUBLIC_ void ndr_print_NetLocalGroupSetMembers(struct ndr_print *ndr, const char *name, int flags, const struct NetLocalGroupSetMembers *r)
3342 ndr_print_struct(ndr, name, "NetLocalGroupSetMembers");
3343 ndr->depth++;
3344 if (flags & NDR_SET_VALUES) {
3345 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3347 if (flags & NDR_IN) {
3348 ndr_print_struct(ndr, "in", "NetLocalGroupSetMembers");
3349 ndr->depth++;
3350 ndr_print_string(ndr, "server_name", r->in.server_name);
3351 ndr_print_string(ndr, "group_name", r->in.group_name);
3352 ndr_print_uint32(ndr, "level", r->in.level);
3353 ndr_print_ptr(ndr, "buffer", r->in.buffer);
3354 ndr->depth++;
3355 ndr_print_uint8(ndr, "buffer", *r->in.buffer);
3356 ndr->depth--;
3357 ndr_print_uint32(ndr, "total_entries", r->in.total_entries);
3358 ndr->depth--;
3360 if (flags & NDR_OUT) {
3361 ndr_print_struct(ndr, "out", "NetLocalGroupSetMembers");
3362 ndr->depth++;
3363 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
3364 ndr->depth--;
3366 ndr->depth--;
3369 _PUBLIC_ void ndr_print_NetRemoteTOD(struct ndr_print *ndr, const char *name, int flags, const struct NetRemoteTOD *r)
3371 ndr_print_struct(ndr, name, "NetRemoteTOD");
3372 ndr->depth++;
3373 if (flags & NDR_SET_VALUES) {
3374 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3376 if (flags & NDR_IN) {
3377 ndr_print_struct(ndr, "in", "NetRemoteTOD");
3378 ndr->depth++;
3379 ndr_print_string(ndr, "server_name", r->in.server_name);
3380 ndr->depth--;
3382 if (flags & NDR_OUT) {
3383 ndr_print_struct(ndr, "out", "NetRemoteTOD");
3384 ndr->depth++;
3385 ndr_print_ptr(ndr, "buffer", r->out.buffer);
3386 ndr->depth++;
3387 ndr_print_ptr(ndr, "buffer", *r->out.buffer);
3388 ndr->depth++;
3389 if (*r->out.buffer) {
3390 ndr_print_uint8(ndr, "buffer", **r->out.buffer);
3392 ndr->depth--;
3393 ndr->depth--;
3394 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
3395 ndr->depth--;
3397 ndr->depth--;
3400 _PUBLIC_ void ndr_print_NetShareAdd(struct ndr_print *ndr, const char *name, int flags, const struct NetShareAdd *r)
3402 ndr_print_struct(ndr, name, "NetShareAdd");
3403 ndr->depth++;
3404 if (flags & NDR_SET_VALUES) {
3405 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3407 if (flags & NDR_IN) {
3408 ndr_print_struct(ndr, "in", "NetShareAdd");
3409 ndr->depth++;
3410 ndr_print_string(ndr, "server_name", r->in.server_name);
3411 ndr_print_uint32(ndr, "level", r->in.level);
3412 ndr_print_ptr(ndr, "buffer", r->in.buffer);
3413 ndr->depth++;
3414 ndr_print_uint8(ndr, "buffer", *r->in.buffer);
3415 ndr->depth--;
3416 ndr->depth--;
3418 if (flags & NDR_OUT) {
3419 ndr_print_struct(ndr, "out", "NetShareAdd");
3420 ndr->depth++;
3421 ndr_print_ptr(ndr, "parm_err", r->out.parm_err);
3422 ndr->depth++;
3423 ndr_print_uint32(ndr, "parm_err", *r->out.parm_err);
3424 ndr->depth--;
3425 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
3426 ndr->depth--;
3428 ndr->depth--;