1 /* parser auto-generated by pidl */
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
)
15 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, &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
;
25 case NERR_Success
: val
= "NERR_Success"; break;
27 ndr_print_enum(ndr
, name
, "ENUM", val
, r
);
30 _PUBLIC_
enum ndr_err_code
ndr_push_SERVER_INFO_1005(struct ndr_push
*ndr
, int ndr_flags
, const struct SERVER_INFO_1005
*r
)
32 if (ndr_flags
& NDR_SCALARS
) {
33 NDR_CHECK(ndr_push_align(ndr
, 4));
34 NDR_CHECK(ndr_push_string(ndr
, NDR_SCALARS
, r
->sv1005_comment
));
36 if (ndr_flags
& NDR_BUFFERS
) {
38 return NDR_ERR_SUCCESS
;
41 _PUBLIC_
enum ndr_err_code
ndr_pull_SERVER_INFO_1005(struct ndr_pull
*ndr
, int ndr_flags
, struct SERVER_INFO_1005
*r
)
43 if (ndr_flags
& NDR_SCALARS
) {
44 NDR_CHECK(ndr_pull_align(ndr
, 4));
45 NDR_CHECK(ndr_pull_string(ndr
, NDR_SCALARS
, &r
->sv1005_comment
));
47 if (ndr_flags
& NDR_BUFFERS
) {
49 return NDR_ERR_SUCCESS
;
52 _PUBLIC_
void ndr_print_SERVER_INFO_1005(struct ndr_print
*ndr
, const char *name
, const struct SERVER_INFO_1005
*r
)
54 ndr_print_struct(ndr
, name
, "SERVER_INFO_1005");
56 ndr_print_string(ndr
, "sv1005_comment", r
->sv1005_comment
);
60 _PUBLIC_
enum ndr_err_code
ndr_push_DOMAIN_CONTROLLER_INFO(struct ndr_push
*ndr
, int ndr_flags
, const struct DOMAIN_CONTROLLER_INFO
*r
)
62 if (ndr_flags
& NDR_SCALARS
) {
63 NDR_CHECK(ndr_push_align(ndr
, 4));
64 NDR_CHECK(ndr_push_string(ndr
, NDR_SCALARS
, r
->domain_controller_name
));
65 NDR_CHECK(ndr_push_string(ndr
, NDR_SCALARS
, r
->domain_controller_address
));
66 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, r
->domain_controller_address_type
));
67 NDR_CHECK(ndr_push_GUID(ndr
, NDR_SCALARS
, &r
->domain_guid
));
68 NDR_CHECK(ndr_push_string(ndr
, NDR_SCALARS
, r
->domain_name
));
69 NDR_CHECK(ndr_push_string(ndr
, NDR_SCALARS
, r
->dns_forest_name
));
70 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, r
->flags
));
71 NDR_CHECK(ndr_push_string(ndr
, NDR_SCALARS
, r
->dc_site_name
));
72 NDR_CHECK(ndr_push_string(ndr
, NDR_SCALARS
, r
->client_site_name
));
74 if (ndr_flags
& NDR_BUFFERS
) {
76 return NDR_ERR_SUCCESS
;
79 _PUBLIC_
enum ndr_err_code
ndr_pull_DOMAIN_CONTROLLER_INFO(struct ndr_pull
*ndr
, int ndr_flags
, struct DOMAIN_CONTROLLER_INFO
*r
)
81 if (ndr_flags
& NDR_SCALARS
) {
82 NDR_CHECK(ndr_pull_align(ndr
, 4));
83 NDR_CHECK(ndr_pull_string(ndr
, NDR_SCALARS
, &r
->domain_controller_name
));
84 NDR_CHECK(ndr_pull_string(ndr
, NDR_SCALARS
, &r
->domain_controller_address
));
85 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, &r
->domain_controller_address_type
));
86 NDR_CHECK(ndr_pull_GUID(ndr
, NDR_SCALARS
, &r
->domain_guid
));
87 NDR_CHECK(ndr_pull_string(ndr
, NDR_SCALARS
, &r
->domain_name
));
88 NDR_CHECK(ndr_pull_string(ndr
, NDR_SCALARS
, &r
->dns_forest_name
));
89 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, &r
->flags
));
90 NDR_CHECK(ndr_pull_string(ndr
, NDR_SCALARS
, &r
->dc_site_name
));
91 NDR_CHECK(ndr_pull_string(ndr
, NDR_SCALARS
, &r
->client_site_name
));
93 if (ndr_flags
& NDR_BUFFERS
) {
95 return NDR_ERR_SUCCESS
;
98 _PUBLIC_
void ndr_print_DOMAIN_CONTROLLER_INFO(struct ndr_print
*ndr
, const char *name
, const struct DOMAIN_CONTROLLER_INFO
*r
)
100 ndr_print_struct(ndr
, name
, "DOMAIN_CONTROLLER_INFO");
102 ndr_print_string(ndr
, "domain_controller_name", r
->domain_controller_name
);
103 ndr_print_string(ndr
, "domain_controller_address", r
->domain_controller_address
);
104 ndr_print_uint32(ndr
, "domain_controller_address_type", r
->domain_controller_address_type
);
105 ndr_print_GUID(ndr
, "domain_guid", &r
->domain_guid
);
106 ndr_print_string(ndr
, "domain_name", r
->domain_name
);
107 ndr_print_string(ndr
, "dns_forest_name", r
->dns_forest_name
);
108 ndr_print_uint32(ndr
, "flags", r
->flags
);
109 ndr_print_string(ndr
, "dc_site_name", r
->dc_site_name
);
110 ndr_print_string(ndr
, "client_site_name", r
->client_site_name
);
114 _PUBLIC_
enum ndr_err_code
ndr_push_USER_INFO_0(struct ndr_push
*ndr
, int ndr_flags
, const struct USER_INFO_0
*r
)
116 if (ndr_flags
& NDR_SCALARS
) {
117 NDR_CHECK(ndr_push_align(ndr
, 4));
118 NDR_CHECK(ndr_push_string(ndr
, NDR_SCALARS
, r
->usri0_name
));
120 if (ndr_flags
& NDR_BUFFERS
) {
122 return NDR_ERR_SUCCESS
;
125 _PUBLIC_
enum ndr_err_code
ndr_pull_USER_INFO_0(struct ndr_pull
*ndr
, int ndr_flags
, struct USER_INFO_0
*r
)
127 if (ndr_flags
& NDR_SCALARS
) {
128 NDR_CHECK(ndr_pull_align(ndr
, 4));
129 NDR_CHECK(ndr_pull_string(ndr
, NDR_SCALARS
, &r
->usri0_name
));
131 if (ndr_flags
& NDR_BUFFERS
) {
133 return NDR_ERR_SUCCESS
;
136 _PUBLIC_
void ndr_print_USER_INFO_0(struct ndr_print
*ndr
, const char *name
, const struct USER_INFO_0
*r
)
138 ndr_print_struct(ndr
, name
, "USER_INFO_0");
140 ndr_print_string(ndr
, "usri0_name", r
->usri0_name
);
144 _PUBLIC_
enum ndr_err_code
ndr_push_USER_INFO_1(struct ndr_push
*ndr
, int ndr_flags
, const struct USER_INFO_1
*r
)
146 if (ndr_flags
& NDR_SCALARS
) {
147 NDR_CHECK(ndr_push_align(ndr
, 4));
148 NDR_CHECK(ndr_push_string(ndr
, NDR_SCALARS
, r
->usri1_name
));
149 NDR_CHECK(ndr_push_string(ndr
, NDR_SCALARS
, r
->usri1_password
));
150 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, r
->usri1_password_age
));
151 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, r
->usri1_priv
));
152 NDR_CHECK(ndr_push_string(ndr
, NDR_SCALARS
, r
->usri1_home_dir
));
153 NDR_CHECK(ndr_push_string(ndr
, NDR_SCALARS
, r
->usri1_comment
));
154 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, r
->usri1_flags
));
155 NDR_CHECK(ndr_push_string(ndr
, NDR_SCALARS
, r
->usri1_script_path
));
157 if (ndr_flags
& NDR_BUFFERS
) {
159 return NDR_ERR_SUCCESS
;
162 _PUBLIC_
enum ndr_err_code
ndr_pull_USER_INFO_1(struct ndr_pull
*ndr
, int ndr_flags
, struct USER_INFO_1
*r
)
164 if (ndr_flags
& NDR_SCALARS
) {
165 NDR_CHECK(ndr_pull_align(ndr
, 4));
166 NDR_CHECK(ndr_pull_string(ndr
, NDR_SCALARS
, &r
->usri1_name
));
167 NDR_CHECK(ndr_pull_string(ndr
, NDR_SCALARS
, &r
->usri1_password
));
168 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, &r
->usri1_password_age
));
169 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, &r
->usri1_priv
));
170 NDR_CHECK(ndr_pull_string(ndr
, NDR_SCALARS
, &r
->usri1_home_dir
));
171 NDR_CHECK(ndr_pull_string(ndr
, NDR_SCALARS
, &r
->usri1_comment
));
172 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, &r
->usri1_flags
));
173 NDR_CHECK(ndr_pull_string(ndr
, NDR_SCALARS
, &r
->usri1_script_path
));
175 if (ndr_flags
& NDR_BUFFERS
) {
177 return NDR_ERR_SUCCESS
;
180 _PUBLIC_
void ndr_print_USER_INFO_1(struct ndr_print
*ndr
, const char *name
, const struct USER_INFO_1
*r
)
182 ndr_print_struct(ndr
, name
, "USER_INFO_1");
184 ndr_print_string(ndr
, "usri1_name", r
->usri1_name
);
185 ndr_print_string(ndr
, "usri1_password", r
->usri1_password
);
186 ndr_print_uint32(ndr
, "usri1_password_age", r
->usri1_password_age
);
187 ndr_print_uint32(ndr
, "usri1_priv", r
->usri1_priv
);
188 ndr_print_string(ndr
, "usri1_home_dir", r
->usri1_home_dir
);
189 ndr_print_string(ndr
, "usri1_comment", r
->usri1_comment
);
190 ndr_print_uint32(ndr
, "usri1_flags", r
->usri1_flags
);
191 ndr_print_string(ndr
, "usri1_script_path", r
->usri1_script_path
);
195 _PUBLIC_
enum ndr_err_code
ndr_push_NET_DISPLAY_USER(struct ndr_push
*ndr
, int ndr_flags
, const struct NET_DISPLAY_USER
*r
)
197 if (ndr_flags
& NDR_SCALARS
) {
198 NDR_CHECK(ndr_push_align(ndr
, 4));
199 NDR_CHECK(ndr_push_string(ndr
, NDR_SCALARS
, r
->usri1_name
));
200 NDR_CHECK(ndr_push_string(ndr
, NDR_SCALARS
, r
->usri1_comment
));
201 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, r
->usri1_flags
));
202 NDR_CHECK(ndr_push_string(ndr
, NDR_SCALARS
, r
->usri1_full_name
));
203 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, r
->usri1_user_id
));
204 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, r
->usri1_next_index
));
206 if (ndr_flags
& NDR_BUFFERS
) {
208 return NDR_ERR_SUCCESS
;
211 _PUBLIC_
enum ndr_err_code
ndr_pull_NET_DISPLAY_USER(struct ndr_pull
*ndr
, int ndr_flags
, struct NET_DISPLAY_USER
*r
)
213 if (ndr_flags
& NDR_SCALARS
) {
214 NDR_CHECK(ndr_pull_align(ndr
, 4));
215 NDR_CHECK(ndr_pull_string(ndr
, NDR_SCALARS
, &r
->usri1_name
));
216 NDR_CHECK(ndr_pull_string(ndr
, NDR_SCALARS
, &r
->usri1_comment
));
217 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, &r
->usri1_flags
));
218 NDR_CHECK(ndr_pull_string(ndr
, NDR_SCALARS
, &r
->usri1_full_name
));
219 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, &r
->usri1_user_id
));
220 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, &r
->usri1_next_index
));
222 if (ndr_flags
& NDR_BUFFERS
) {
224 return NDR_ERR_SUCCESS
;
227 _PUBLIC_
void ndr_print_NET_DISPLAY_USER(struct ndr_print
*ndr
, const char *name
, const struct NET_DISPLAY_USER
*r
)
229 ndr_print_struct(ndr
, name
, "NET_DISPLAY_USER");
231 ndr_print_string(ndr
, "usri1_name", r
->usri1_name
);
232 ndr_print_string(ndr
, "usri1_comment", r
->usri1_comment
);
233 ndr_print_uint32(ndr
, "usri1_flags", r
->usri1_flags
);
234 ndr_print_string(ndr
, "usri1_full_name", r
->usri1_full_name
);
235 ndr_print_uint32(ndr
, "usri1_user_id", r
->usri1_user_id
);
236 ndr_print_uint32(ndr
, "usri1_next_index", r
->usri1_next_index
);
240 _PUBLIC_
enum ndr_err_code
ndr_push_NET_DISPLAY_MACHINE(struct ndr_push
*ndr
, int ndr_flags
, const struct NET_DISPLAY_MACHINE
*r
)
242 if (ndr_flags
& NDR_SCALARS
) {
243 NDR_CHECK(ndr_push_align(ndr
, 4));
244 NDR_CHECK(ndr_push_string(ndr
, NDR_SCALARS
, r
->usri2_name
));
245 NDR_CHECK(ndr_push_string(ndr
, NDR_SCALARS
, r
->usri2_comment
));
246 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, r
->usri2_flags
));
247 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, r
->usri2_user_id
));
248 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, r
->usri2_next_index
));
250 if (ndr_flags
& NDR_BUFFERS
) {
252 return NDR_ERR_SUCCESS
;
255 _PUBLIC_
enum ndr_err_code
ndr_pull_NET_DISPLAY_MACHINE(struct ndr_pull
*ndr
, int ndr_flags
, struct NET_DISPLAY_MACHINE
*r
)
257 if (ndr_flags
& NDR_SCALARS
) {
258 NDR_CHECK(ndr_pull_align(ndr
, 4));
259 NDR_CHECK(ndr_pull_string(ndr
, NDR_SCALARS
, &r
->usri2_name
));
260 NDR_CHECK(ndr_pull_string(ndr
, NDR_SCALARS
, &r
->usri2_comment
));
261 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, &r
->usri2_flags
));
262 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, &r
->usri2_user_id
));
263 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, &r
->usri2_next_index
));
265 if (ndr_flags
& NDR_BUFFERS
) {
267 return NDR_ERR_SUCCESS
;
270 _PUBLIC_
void ndr_print_NET_DISPLAY_MACHINE(struct ndr_print
*ndr
, const char *name
, const struct NET_DISPLAY_MACHINE
*r
)
272 ndr_print_struct(ndr
, name
, "NET_DISPLAY_MACHINE");
274 ndr_print_string(ndr
, "usri2_name", r
->usri2_name
);
275 ndr_print_string(ndr
, "usri2_comment", r
->usri2_comment
);
276 ndr_print_uint32(ndr
, "usri2_flags", r
->usri2_flags
);
277 ndr_print_uint32(ndr
, "usri2_user_id", r
->usri2_user_id
);
278 ndr_print_uint32(ndr
, "usri2_next_index", r
->usri2_next_index
);
282 _PUBLIC_
enum ndr_err_code
ndr_push_NET_DISPLAY_GROUP(struct ndr_push
*ndr
, int ndr_flags
, const struct NET_DISPLAY_GROUP
*r
)
284 if (ndr_flags
& NDR_SCALARS
) {
285 NDR_CHECK(ndr_push_align(ndr
, 4));
286 NDR_CHECK(ndr_push_string(ndr
, NDR_SCALARS
, r
->grpi3_name
));
287 NDR_CHECK(ndr_push_string(ndr
, NDR_SCALARS
, r
->grpi3_comment
));
288 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, r
->grpi3_group_id
));
289 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, r
->grpi3_attributes
));
290 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, r
->grpi3_next_index
));
292 if (ndr_flags
& NDR_BUFFERS
) {
294 return NDR_ERR_SUCCESS
;
297 _PUBLIC_
enum ndr_err_code
ndr_pull_NET_DISPLAY_GROUP(struct ndr_pull
*ndr
, int ndr_flags
, struct NET_DISPLAY_GROUP
*r
)
299 if (ndr_flags
& NDR_SCALARS
) {
300 NDR_CHECK(ndr_pull_align(ndr
, 4));
301 NDR_CHECK(ndr_pull_string(ndr
, NDR_SCALARS
, &r
->grpi3_name
));
302 NDR_CHECK(ndr_pull_string(ndr
, NDR_SCALARS
, &r
->grpi3_comment
));
303 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, &r
->grpi3_group_id
));
304 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, &r
->grpi3_attributes
));
305 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, &r
->grpi3_next_index
));
307 if (ndr_flags
& NDR_BUFFERS
) {
309 return NDR_ERR_SUCCESS
;
312 _PUBLIC_
void ndr_print_NET_DISPLAY_GROUP(struct ndr_print
*ndr
, const char *name
, const struct NET_DISPLAY_GROUP
*r
)
314 ndr_print_struct(ndr
, name
, "NET_DISPLAY_GROUP");
316 ndr_print_string(ndr
, "grpi3_name", r
->grpi3_name
);
317 ndr_print_string(ndr
, "grpi3_comment", r
->grpi3_comment
);
318 ndr_print_uint32(ndr
, "grpi3_group_id", r
->grpi3_group_id
);
319 ndr_print_uint32(ndr
, "grpi3_attributes", r
->grpi3_attributes
);
320 ndr_print_uint32(ndr
, "grpi3_next_index", r
->grpi3_next_index
);
324 _PUBLIC_
void ndr_print_NetJoinDomain(struct ndr_print
*ndr
, const char *name
, int flags
, const struct NetJoinDomain
*r
)
326 ndr_print_struct(ndr
, name
, "NetJoinDomain");
328 if (flags
& NDR_SET_VALUES
) {
329 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
331 if (flags
& NDR_IN
) {
332 ndr_print_struct(ndr
, "in", "NetJoinDomain");
334 ndr_print_ptr(ndr
, "server", r
->in
.server
);
337 ndr_print_string(ndr
, "server", r
->in
.server
);
340 ndr_print_ptr(ndr
, "domain", r
->in
.domain
);
342 ndr_print_string(ndr
, "domain", r
->in
.domain
);
344 ndr_print_ptr(ndr
, "account_ou", r
->in
.account_ou
);
346 if (r
->in
.account_ou
) {
347 ndr_print_string(ndr
, "account_ou", r
->in
.account_ou
);
350 ndr_print_ptr(ndr
, "account", r
->in
.account
);
353 ndr_print_string(ndr
, "account", r
->in
.account
);
356 ndr_print_ptr(ndr
, "password", r
->in
.password
);
358 if (r
->in
.password
) {
359 ndr_print_string(ndr
, "password", r
->in
.password
);
362 ndr_print_uint32(ndr
, "join_flags", r
->in
.join_flags
);
365 if (flags
& NDR_OUT
) {
366 ndr_print_struct(ndr
, "out", "NetJoinDomain");
368 ndr_print_NET_API_STATUS(ndr
, "result", r
->out
.result
);
374 _PUBLIC_
void ndr_print_NetUnjoinDomain(struct ndr_print
*ndr
, const char *name
, int flags
, const struct NetUnjoinDomain
*r
)
376 ndr_print_struct(ndr
, name
, "NetUnjoinDomain");
378 if (flags
& NDR_SET_VALUES
) {
379 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
381 if (flags
& NDR_IN
) {
382 ndr_print_struct(ndr
, "in", "NetUnjoinDomain");
384 ndr_print_ptr(ndr
, "server_name", r
->in
.server_name
);
386 if (r
->in
.server_name
) {
387 ndr_print_string(ndr
, "server_name", r
->in
.server_name
);
390 ndr_print_ptr(ndr
, "account", r
->in
.account
);
393 ndr_print_string(ndr
, "account", r
->in
.account
);
396 ndr_print_ptr(ndr
, "password", r
->in
.password
);
398 if (r
->in
.password
) {
399 ndr_print_string(ndr
, "password", r
->in
.password
);
402 ndr_print_uint32(ndr
, "unjoin_flags", r
->in
.unjoin_flags
);
405 if (flags
& NDR_OUT
) {
406 ndr_print_struct(ndr
, "out", "NetUnjoinDomain");
408 ndr_print_NET_API_STATUS(ndr
, "result", r
->out
.result
);
414 _PUBLIC_
void ndr_print_NetGetJoinInformation(struct ndr_print
*ndr
, const char *name
, int flags
, const struct NetGetJoinInformation
*r
)
416 ndr_print_struct(ndr
, name
, "NetGetJoinInformation");
418 if (flags
& NDR_SET_VALUES
) {
419 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
421 if (flags
& NDR_IN
) {
422 ndr_print_struct(ndr
, "in", "NetGetJoinInformation");
424 ndr_print_ptr(ndr
, "server_name", r
->in
.server_name
);
426 if (r
->in
.server_name
) {
427 ndr_print_string(ndr
, "server_name", r
->in
.server_name
);
432 if (flags
& NDR_OUT
) {
433 ndr_print_struct(ndr
, "out", "NetGetJoinInformation");
435 ndr_print_ptr(ndr
, "name_buffer", r
->out
.name_buffer
);
437 ndr_print_ptr(ndr
, "name_buffer", *r
->out
.name_buffer
);
439 if (*r
->out
.name_buffer
) {
440 ndr_print_string(ndr
, "name_buffer", *r
->out
.name_buffer
);
444 ndr_print_ptr(ndr
, "name_type", r
->out
.name_type
);
446 ndr_print_uint16(ndr
, "name_type", *r
->out
.name_type
);
448 ndr_print_NET_API_STATUS(ndr
, "result", r
->out
.result
);
454 _PUBLIC_
void ndr_print_NetGetJoinableOUs(struct ndr_print
*ndr
, const char *name
, int flags
, const struct NetGetJoinableOUs
*r
)
456 ndr_print_struct(ndr
, name
, "NetGetJoinableOUs");
458 if (flags
& NDR_SET_VALUES
) {
459 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
461 if (flags
& NDR_IN
) {
462 ndr_print_struct(ndr
, "in", "NetGetJoinableOUs");
464 ndr_print_ptr(ndr
, "server_name", r
->in
.server_name
);
466 if (r
->in
.server_name
) {
467 ndr_print_string(ndr
, "server_name", r
->in
.server_name
);
470 ndr_print_ptr(ndr
, "domain", r
->in
.domain
);
472 ndr_print_string(ndr
, "domain", r
->in
.domain
);
474 ndr_print_ptr(ndr
, "account", r
->in
.account
);
477 ndr_print_string(ndr
, "account", r
->in
.account
);
480 ndr_print_ptr(ndr
, "password", r
->in
.password
);
482 if (r
->in
.password
) {
483 ndr_print_string(ndr
, "password", r
->in
.password
);
488 if (flags
& NDR_OUT
) {
489 ndr_print_struct(ndr
, "out", "NetGetJoinableOUs");
491 ndr_print_ptr(ndr
, "ou_count", r
->out
.ou_count
);
493 ndr_print_uint32(ndr
, "ou_count", *r
->out
.ou_count
);
495 ndr_print_ptr(ndr
, "ous", r
->out
.ous
);
497 ndr_print_ptr(ndr
, "ous", *r
->out
.ous
);
500 ndr_print_ptr(ndr
, "ous", **r
->out
.ous
);
503 ndr_print_string(ndr
, "ous", **r
->out
.ous
);
509 ndr_print_NET_API_STATUS(ndr
, "result", r
->out
.result
);
515 _PUBLIC_
void ndr_print_NetServerGetInfo(struct ndr_print
*ndr
, const char *name
, int flags
, const struct NetServerGetInfo
*r
)
517 ndr_print_struct(ndr
, name
, "NetServerGetInfo");
519 if (flags
& NDR_SET_VALUES
) {
520 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
522 if (flags
& NDR_IN
) {
523 ndr_print_struct(ndr
, "in", "NetServerGetInfo");
525 ndr_print_ptr(ndr
, "server_name", r
->in
.server_name
);
527 if (r
->in
.server_name
) {
528 ndr_print_string(ndr
, "server_name", r
->in
.server_name
);
531 ndr_print_uint32(ndr
, "level", r
->in
.level
);
534 if (flags
& NDR_OUT
) {
535 ndr_print_struct(ndr
, "out", "NetServerGetInfo");
537 ndr_print_ptr(ndr
, "buffer", r
->out
.buffer
);
539 ndr_print_ptr(ndr
, "buffer", *r
->out
.buffer
);
541 if (*r
->out
.buffer
) {
542 ndr_print_uint8(ndr
, "buffer", **r
->out
.buffer
);
546 ndr_print_NET_API_STATUS(ndr
, "result", r
->out
.result
);
552 _PUBLIC_
void ndr_print_NetServerSetInfo(struct ndr_print
*ndr
, const char *name
, int flags
, const struct NetServerSetInfo
*r
)
554 ndr_print_struct(ndr
, name
, "NetServerSetInfo");
556 if (flags
& NDR_SET_VALUES
) {
557 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
559 if (flags
& NDR_IN
) {
560 ndr_print_struct(ndr
, "in", "NetServerSetInfo");
562 ndr_print_ptr(ndr
, "server_name", r
->in
.server_name
);
564 if (r
->in
.server_name
) {
565 ndr_print_string(ndr
, "server_name", r
->in
.server_name
);
568 ndr_print_uint32(ndr
, "level", r
->in
.level
);
569 ndr_print_ptr(ndr
, "buffer", r
->in
.buffer
);
571 ndr_print_uint8(ndr
, "buffer", *r
->in
.buffer
);
575 if (flags
& NDR_OUT
) {
576 ndr_print_struct(ndr
, "out", "NetServerSetInfo");
578 ndr_print_ptr(ndr
, "parm_error", r
->out
.parm_error
);
580 ndr_print_uint32(ndr
, "parm_error", *r
->out
.parm_error
);
582 ndr_print_NET_API_STATUS(ndr
, "result", r
->out
.result
);
588 _PUBLIC_
void ndr_print_NetGetDCName(struct ndr_print
*ndr
, const char *name
, int flags
, const struct NetGetDCName
*r
)
590 ndr_print_struct(ndr
, name
, "NetGetDCName");
592 if (flags
& NDR_SET_VALUES
) {
593 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
595 if (flags
& NDR_IN
) {
596 ndr_print_struct(ndr
, "in", "NetGetDCName");
598 ndr_print_ptr(ndr
, "server_name", r
->in
.server_name
);
600 if (r
->in
.server_name
) {
601 ndr_print_string(ndr
, "server_name", r
->in
.server_name
);
604 ndr_print_ptr(ndr
, "domain_name", r
->in
.domain_name
);
606 if (r
->in
.domain_name
) {
607 ndr_print_string(ndr
, "domain_name", r
->in
.domain_name
);
612 if (flags
& NDR_OUT
) {
613 ndr_print_struct(ndr
, "out", "NetGetDCName");
615 ndr_print_ptr(ndr
, "buffer", r
->out
.buffer
);
617 ndr_print_ptr(ndr
, "buffer", *r
->out
.buffer
);
619 if (*r
->out
.buffer
) {
620 ndr_print_uint8(ndr
, "buffer", **r
->out
.buffer
);
624 ndr_print_NET_API_STATUS(ndr
, "result", r
->out
.result
);
630 _PUBLIC_
void ndr_print_NetGetAnyDCName(struct ndr_print
*ndr
, const char *name
, int flags
, const struct NetGetAnyDCName
*r
)
632 ndr_print_struct(ndr
, name
, "NetGetAnyDCName");
634 if (flags
& NDR_SET_VALUES
) {
635 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
637 if (flags
& NDR_IN
) {
638 ndr_print_struct(ndr
, "in", "NetGetAnyDCName");
640 ndr_print_ptr(ndr
, "server_name", r
->in
.server_name
);
642 if (r
->in
.server_name
) {
643 ndr_print_string(ndr
, "server_name", r
->in
.server_name
);
646 ndr_print_ptr(ndr
, "domain_name", r
->in
.domain_name
);
648 if (r
->in
.domain_name
) {
649 ndr_print_string(ndr
, "domain_name", r
->in
.domain_name
);
654 if (flags
& NDR_OUT
) {
655 ndr_print_struct(ndr
, "out", "NetGetAnyDCName");
657 ndr_print_ptr(ndr
, "buffer", r
->out
.buffer
);
659 ndr_print_ptr(ndr
, "buffer", *r
->out
.buffer
);
661 if (*r
->out
.buffer
) {
662 ndr_print_uint8(ndr
, "buffer", **r
->out
.buffer
);
666 ndr_print_NET_API_STATUS(ndr
, "result", r
->out
.result
);
672 _PUBLIC_
void ndr_print_DsGetDcName(struct ndr_print
*ndr
, const char *name
, int flags
, const struct DsGetDcName
*r
)
674 ndr_print_struct(ndr
, name
, "DsGetDcName");
676 if (flags
& NDR_SET_VALUES
) {
677 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
679 if (flags
& NDR_IN
) {
680 ndr_print_struct(ndr
, "in", "DsGetDcName");
682 ndr_print_ptr(ndr
, "server_name", r
->in
.server_name
);
684 if (r
->in
.server_name
) {
685 ndr_print_string(ndr
, "server_name", r
->in
.server_name
);
688 ndr_print_ptr(ndr
, "domain_name", r
->in
.domain_name
);
690 ndr_print_string(ndr
, "domain_name", r
->in
.domain_name
);
692 ndr_print_ptr(ndr
, "domain_guid", r
->in
.domain_guid
);
694 if (r
->in
.domain_guid
) {
695 ndr_print_GUID(ndr
, "domain_guid", r
->in
.domain_guid
);
698 ndr_print_ptr(ndr
, "site_name", r
->in
.site_name
);
700 if (r
->in
.site_name
) {
701 ndr_print_string(ndr
, "site_name", r
->in
.site_name
);
704 ndr_print_uint32(ndr
, "flags", r
->in
.flags
);
707 if (flags
& NDR_OUT
) {
708 ndr_print_struct(ndr
, "out", "DsGetDcName");
710 ndr_print_ptr(ndr
, "dc_info", r
->out
.dc_info
);
712 ndr_print_ptr(ndr
, "dc_info", *r
->out
.dc_info
);
714 if (*r
->out
.dc_info
) {
715 ndr_print_DOMAIN_CONTROLLER_INFO(ndr
, "dc_info", *r
->out
.dc_info
);
719 ndr_print_NET_API_STATUS(ndr
, "result", r
->out
.result
);
725 _PUBLIC_
void ndr_print_NetUserAdd(struct ndr_print
*ndr
, const char *name
, int flags
, const struct NetUserAdd
*r
)
727 ndr_print_struct(ndr
, name
, "NetUserAdd");
729 if (flags
& NDR_SET_VALUES
) {
730 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
732 if (flags
& NDR_IN
) {
733 ndr_print_struct(ndr
, "in", "NetUserAdd");
735 ndr_print_ptr(ndr
, "server_name", r
->in
.server_name
);
737 if (r
->in
.server_name
) {
738 ndr_print_string(ndr
, "server_name", r
->in
.server_name
);
741 ndr_print_uint32(ndr
, "level", r
->in
.level
);
742 ndr_print_ptr(ndr
, "buffer", r
->in
.buffer
);
744 ndr_print_uint8(ndr
, "buffer", *r
->in
.buffer
);
748 if (flags
& NDR_OUT
) {
749 ndr_print_struct(ndr
, "out", "NetUserAdd");
751 ndr_print_ptr(ndr
, "parm_error", r
->out
.parm_error
);
753 ndr_print_uint32(ndr
, "parm_error", *r
->out
.parm_error
);
755 ndr_print_NET_API_STATUS(ndr
, "result", r
->out
.result
);
761 _PUBLIC_
void ndr_print_NetUserDel(struct ndr_print
*ndr
, const char *name
, int flags
, const struct NetUserDel
*r
)
763 ndr_print_struct(ndr
, name
, "NetUserDel");
765 if (flags
& NDR_SET_VALUES
) {
766 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
768 if (flags
& NDR_IN
) {
769 ndr_print_struct(ndr
, "in", "NetUserDel");
771 ndr_print_ptr(ndr
, "server_name", r
->in
.server_name
);
773 if (r
->in
.server_name
) {
774 ndr_print_string(ndr
, "server_name", r
->in
.server_name
);
777 ndr_print_ptr(ndr
, "user_name", r
->in
.user_name
);
779 ndr_print_string(ndr
, "user_name", r
->in
.user_name
);
783 if (flags
& NDR_OUT
) {
784 ndr_print_struct(ndr
, "out", "NetUserDel");
786 ndr_print_NET_API_STATUS(ndr
, "result", r
->out
.result
);
792 _PUBLIC_
void ndr_print_NetUserEnum(struct ndr_print
*ndr
, const char *name
, int flags
, const struct NetUserEnum
*r
)
794 ndr_print_struct(ndr
, name
, "NetUserEnum");
796 if (flags
& NDR_SET_VALUES
) {
797 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
799 if (flags
& NDR_IN
) {
800 ndr_print_struct(ndr
, "in", "NetUserEnum");
802 ndr_print_ptr(ndr
, "server_name", r
->in
.server_name
);
804 if (r
->in
.server_name
) {
805 ndr_print_string(ndr
, "server_name", r
->in
.server_name
);
808 ndr_print_uint32(ndr
, "level", r
->in
.level
);
809 ndr_print_uint32(ndr
, "filter", r
->in
.filter
);
810 ndr_print_uint32(ndr
, "prefmaxlen", r
->in
.prefmaxlen
);
811 ndr_print_ptr(ndr
, "resume_handle", r
->in
.resume_handle
);
813 ndr_print_uint32(ndr
, "resume_handle", *r
->in
.resume_handle
);
817 if (flags
& NDR_OUT
) {
818 ndr_print_struct(ndr
, "out", "NetUserEnum");
820 ndr_print_ptr(ndr
, "buffer", r
->out
.buffer
);
822 ndr_print_ptr(ndr
, "buffer", *r
->out
.buffer
);
824 if (*r
->out
.buffer
) {
825 ndr_print_uint8(ndr
, "buffer", **r
->out
.buffer
);
829 ndr_print_ptr(ndr
, "entries_read", r
->out
.entries_read
);
831 ndr_print_uint32(ndr
, "entries_read", *r
->out
.entries_read
);
833 ndr_print_ptr(ndr
, "total_entries", r
->out
.total_entries
);
835 ndr_print_uint32(ndr
, "total_entries", *r
->out
.total_entries
);
837 ndr_print_ptr(ndr
, "resume_handle", r
->out
.resume_handle
);
839 ndr_print_uint32(ndr
, "resume_handle", *r
->out
.resume_handle
);
841 ndr_print_NET_API_STATUS(ndr
, "result", r
->out
.result
);
847 _PUBLIC_
void ndr_print_NetQueryDisplayInformation(struct ndr_print
*ndr
, const char *name
, int flags
, const struct NetQueryDisplayInformation
*r
)
849 ndr_print_struct(ndr
, name
, "NetQueryDisplayInformation");
851 if (flags
& NDR_SET_VALUES
) {
852 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
854 if (flags
& NDR_IN
) {
855 ndr_print_struct(ndr
, "in", "NetQueryDisplayInformation");
857 ndr_print_ptr(ndr
, "server_name", r
->in
.server_name
);
859 if (r
->in
.server_name
) {
860 ndr_print_string(ndr
, "server_name", r
->in
.server_name
);
863 ndr_print_uint32(ndr
, "level", r
->in
.level
);
864 ndr_print_uint32(ndr
, "idx", r
->in
.idx
);
865 ndr_print_uint32(ndr
, "entries_requested", r
->in
.entries_requested
);
866 ndr_print_uint32(ndr
, "prefmaxlen", r
->in
.prefmaxlen
);
869 if (flags
& NDR_OUT
) {
870 ndr_print_struct(ndr
, "out", "NetQueryDisplayInformation");
872 ndr_print_ptr(ndr
, "entries_read", r
->out
.entries_read
);
874 ndr_print_uint32(ndr
, "entries_read", *r
->out
.entries_read
);
876 ndr_print_NET_API_STATUS(ndr
, "result", r
->out
.result
);