2 * Unix SMB/CIFS implementation.
3 * server auto-generated by pidl. DO NOT MODIFY!
7 #include "librpc/gen_ndr/srv_wkssvc.h"
9 static bool api_wkssvc_NetWkstaGetInfo(pipes_struct *p)
11 const struct ndr_interface_call *call;
12 struct ndr_pull *pull;
13 struct ndr_push *push;
16 struct wkssvc_NetWkstaGetInfo *r;
18 call = &ndr_table_wkssvc.calls[NDR_WKSSVC_NETWKSTAGETINFO];
20 r = talloc(NULL, struct wkssvc_NetWkstaGetInfo);
25 if (!prs_data_blob(&p->in_data.data, &blob, r)) {
30 pull = ndr_pull_init_blob(&blob, r);
36 pull->flags |= LIBNDR_FLAG_REF_ALLOC;
37 status = call->ndr_pull(pull, NDR_IN, r);
38 if (NT_STATUS_IS_ERR(status)) {
44 NDR_PRINT_IN_DEBUG(wkssvc_NetWkstaGetInfo, r);
47 r->out.info = talloc_zero(r, union wkssvc_NetWkstaInfo);
48 if (r->out.info == NULL) {
53 r->out.result = _wkssvc_NetWkstaGetInfo(p, r);
55 if (p->rng_fault_state) {
57 /* Return True here, srv_pipe_hnd.c will take care */
62 NDR_PRINT_OUT_DEBUG(wkssvc_NetWkstaGetInfo, r);
64 push = ndr_push_init_ctx(r);
70 status = call->ndr_push(push, NDR_OUT, r);
71 if (NT_STATUS_IS_ERR(status)) {
76 blob = ndr_push_blob(push);
77 if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
87 static bool api_wkssvc_NetWkstaSetInfo(pipes_struct *p)
89 const struct ndr_interface_call *call;
90 struct ndr_pull *pull;
91 struct ndr_push *push;
94 struct wkssvc_NetWkstaSetInfo *r;
96 call = &ndr_table_wkssvc.calls[NDR_WKSSVC_NETWKSTASETINFO];
98 r = talloc(NULL, struct wkssvc_NetWkstaSetInfo);
103 if (!prs_data_blob(&p->in_data.data, &blob, r)) {
108 pull = ndr_pull_init_blob(&blob, r);
114 pull->flags |= LIBNDR_FLAG_REF_ALLOC;
115 status = call->ndr_pull(pull, NDR_IN, r);
116 if (NT_STATUS_IS_ERR(status)) {
121 if (DEBUGLEVEL >= 10)
122 NDR_PRINT_IN_DEBUG(wkssvc_NetWkstaSetInfo, r);
125 r->out.parm_error = r->in.parm_error;
126 r->out.result = _wkssvc_NetWkstaSetInfo(p, r);
128 if (p->rng_fault_state) {
130 /* Return True here, srv_pipe_hnd.c will take care */
134 if (DEBUGLEVEL >= 10)
135 NDR_PRINT_OUT_DEBUG(wkssvc_NetWkstaSetInfo, r);
137 push = ndr_push_init_ctx(r);
143 status = call->ndr_push(push, NDR_OUT, r);
144 if (NT_STATUS_IS_ERR(status)) {
149 blob = ndr_push_blob(push);
150 if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
160 static bool api_wkssvc_NetWkstaEnumUsers(pipes_struct *p)
162 const struct ndr_interface_call *call;
163 struct ndr_pull *pull;
164 struct ndr_push *push;
167 struct wkssvc_NetWkstaEnumUsers *r;
169 call = &ndr_table_wkssvc.calls[NDR_WKSSVC_NETWKSTAENUMUSERS];
171 r = talloc(NULL, struct wkssvc_NetWkstaEnumUsers);
176 if (!prs_data_blob(&p->in_data.data, &blob, r)) {
181 pull = ndr_pull_init_blob(&blob, r);
187 pull->flags |= LIBNDR_FLAG_REF_ALLOC;
188 status = call->ndr_pull(pull, NDR_IN, r);
189 if (NT_STATUS_IS_ERR(status)) {
194 if (DEBUGLEVEL >= 10)
195 NDR_PRINT_IN_DEBUG(wkssvc_NetWkstaEnumUsers, r);
198 r->out.users = r->in.users;
199 r->out.entriesread = talloc_zero(r, uint32_t);
200 if (r->out.entriesread == NULL) {
205 r->out.totalentries = talloc_zero(r, uint32_t);
206 if (r->out.totalentries == NULL) {
211 r->out.resumehandle = r->in.resumehandle;
212 r->out.result = _wkssvc_NetWkstaEnumUsers(p, r);
214 if (p->rng_fault_state) {
216 /* Return True here, srv_pipe_hnd.c will take care */
220 if (DEBUGLEVEL >= 10)
221 NDR_PRINT_OUT_DEBUG(wkssvc_NetWkstaEnumUsers, r);
223 push = ndr_push_init_ctx(r);
229 status = call->ndr_push(push, NDR_OUT, r);
230 if (NT_STATUS_IS_ERR(status)) {
235 blob = ndr_push_blob(push);
236 if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
246 static bool api_WKSSVC_NETRWKSTAUSERGETINFO(pipes_struct *p)
248 const struct ndr_interface_call *call;
249 struct ndr_pull *pull;
250 struct ndr_push *push;
253 struct WKSSVC_NETRWKSTAUSERGETINFO *r;
255 call = &ndr_table_wkssvc.calls[NDR_WKSSVC_NETRWKSTAUSERGETINFO];
257 r = talloc(NULL, struct WKSSVC_NETRWKSTAUSERGETINFO);
262 if (!prs_data_blob(&p->in_data.data, &blob, r)) {
267 pull = ndr_pull_init_blob(&blob, r);
273 pull->flags |= LIBNDR_FLAG_REF_ALLOC;
274 status = call->ndr_pull(pull, NDR_IN, r);
275 if (NT_STATUS_IS_ERR(status)) {
280 if (DEBUGLEVEL >= 10)
281 NDR_PRINT_IN_DEBUG(WKSSVC_NETRWKSTAUSERGETINFO, r);
283 r->out.result = _WKSSVC_NETRWKSTAUSERGETINFO(p, r);
285 if (p->rng_fault_state) {
287 /* Return True here, srv_pipe_hnd.c will take care */
291 if (DEBUGLEVEL >= 10)
292 NDR_PRINT_OUT_DEBUG(WKSSVC_NETRWKSTAUSERGETINFO, r);
294 push = ndr_push_init_ctx(r);
300 status = call->ndr_push(push, NDR_OUT, r);
301 if (NT_STATUS_IS_ERR(status)) {
306 blob = ndr_push_blob(push);
307 if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
317 static bool api_WKSSVC_NETRWKSTAUSERSETINFO(pipes_struct *p)
319 const struct ndr_interface_call *call;
320 struct ndr_pull *pull;
321 struct ndr_push *push;
324 struct WKSSVC_NETRWKSTAUSERSETINFO *r;
326 call = &ndr_table_wkssvc.calls[NDR_WKSSVC_NETRWKSTAUSERSETINFO];
328 r = talloc(NULL, struct WKSSVC_NETRWKSTAUSERSETINFO);
333 if (!prs_data_blob(&p->in_data.data, &blob, r)) {
338 pull = ndr_pull_init_blob(&blob, r);
344 pull->flags |= LIBNDR_FLAG_REF_ALLOC;
345 status = call->ndr_pull(pull, NDR_IN, r);
346 if (NT_STATUS_IS_ERR(status)) {
351 if (DEBUGLEVEL >= 10)
352 NDR_PRINT_IN_DEBUG(WKSSVC_NETRWKSTAUSERSETINFO, r);
354 r->out.result = _WKSSVC_NETRWKSTAUSERSETINFO(p, r);
356 if (p->rng_fault_state) {
358 /* Return True here, srv_pipe_hnd.c will take care */
362 if (DEBUGLEVEL >= 10)
363 NDR_PRINT_OUT_DEBUG(WKSSVC_NETRWKSTAUSERSETINFO, r);
365 push = ndr_push_init_ctx(r);
371 status = call->ndr_push(push, NDR_OUT, r);
372 if (NT_STATUS_IS_ERR(status)) {
377 blob = ndr_push_blob(push);
378 if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
388 static bool api_wkssvc_NetWkstaTransportEnum(pipes_struct *p)
390 const struct ndr_interface_call *call;
391 struct ndr_pull *pull;
392 struct ndr_push *push;
395 struct wkssvc_NetWkstaTransportEnum *r;
397 call = &ndr_table_wkssvc.calls[NDR_WKSSVC_NETWKSTATRANSPORTENUM];
399 r = talloc(NULL, struct wkssvc_NetWkstaTransportEnum);
404 if (!prs_data_blob(&p->in_data.data, &blob, r)) {
409 pull = ndr_pull_init_blob(&blob, r);
415 pull->flags |= LIBNDR_FLAG_REF_ALLOC;
416 status = call->ndr_pull(pull, NDR_IN, r);
417 if (NT_STATUS_IS_ERR(status)) {
422 if (DEBUGLEVEL >= 10)
423 NDR_PRINT_IN_DEBUG(wkssvc_NetWkstaTransportEnum, r);
426 r->out.level = r->in.level;
427 r->out.ctr = r->in.ctr;
428 r->out.totalentries = talloc_zero(r, uint32_t);
429 if (r->out.totalentries == NULL) {
434 r->out.resume_handle = r->in.resume_handle;
435 r->out.result = _wkssvc_NetWkstaTransportEnum(p, r);
437 if (p->rng_fault_state) {
439 /* Return True here, srv_pipe_hnd.c will take care */
443 if (DEBUGLEVEL >= 10)
444 NDR_PRINT_OUT_DEBUG(wkssvc_NetWkstaTransportEnum, r);
446 push = ndr_push_init_ctx(r);
452 status = call->ndr_push(push, NDR_OUT, r);
453 if (NT_STATUS_IS_ERR(status)) {
458 blob = ndr_push_blob(push);
459 if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
469 static bool api_WKSSVC_NETRWKSTATRANSPORTADD(pipes_struct *p)
471 const struct ndr_interface_call *call;
472 struct ndr_pull *pull;
473 struct ndr_push *push;
476 struct WKSSVC_NETRWKSTATRANSPORTADD *r;
478 call = &ndr_table_wkssvc.calls[NDR_WKSSVC_NETRWKSTATRANSPORTADD];
480 r = talloc(NULL, struct WKSSVC_NETRWKSTATRANSPORTADD);
485 if (!prs_data_blob(&p->in_data.data, &blob, r)) {
490 pull = ndr_pull_init_blob(&blob, r);
496 pull->flags |= LIBNDR_FLAG_REF_ALLOC;
497 status = call->ndr_pull(pull, NDR_IN, r);
498 if (NT_STATUS_IS_ERR(status)) {
503 if (DEBUGLEVEL >= 10)
504 NDR_PRINT_IN_DEBUG(WKSSVC_NETRWKSTATRANSPORTADD, r);
506 r->out.result = _WKSSVC_NETRWKSTATRANSPORTADD(p, r);
508 if (p->rng_fault_state) {
510 /* Return True here, srv_pipe_hnd.c will take care */
514 if (DEBUGLEVEL >= 10)
515 NDR_PRINT_OUT_DEBUG(WKSSVC_NETRWKSTATRANSPORTADD, r);
517 push = ndr_push_init_ctx(r);
523 status = call->ndr_push(push, NDR_OUT, r);
524 if (NT_STATUS_IS_ERR(status)) {
529 blob = ndr_push_blob(push);
530 if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
540 static bool api_WKSSVC_NETRWKSTATRANSPORTDEL(pipes_struct *p)
542 const struct ndr_interface_call *call;
543 struct ndr_pull *pull;
544 struct ndr_push *push;
547 struct WKSSVC_NETRWKSTATRANSPORTDEL *r;
549 call = &ndr_table_wkssvc.calls[NDR_WKSSVC_NETRWKSTATRANSPORTDEL];
551 r = talloc(NULL, struct WKSSVC_NETRWKSTATRANSPORTDEL);
556 if (!prs_data_blob(&p->in_data.data, &blob, r)) {
561 pull = ndr_pull_init_blob(&blob, r);
567 pull->flags |= LIBNDR_FLAG_REF_ALLOC;
568 status = call->ndr_pull(pull, NDR_IN, r);
569 if (NT_STATUS_IS_ERR(status)) {
574 if (DEBUGLEVEL >= 10)
575 NDR_PRINT_IN_DEBUG(WKSSVC_NETRWKSTATRANSPORTDEL, r);
577 r->out.result = _WKSSVC_NETRWKSTATRANSPORTDEL(p, r);
579 if (p->rng_fault_state) {
581 /* Return True here, srv_pipe_hnd.c will take care */
585 if (DEBUGLEVEL >= 10)
586 NDR_PRINT_OUT_DEBUG(WKSSVC_NETRWKSTATRANSPORTDEL, r);
588 push = ndr_push_init_ctx(r);
594 status = call->ndr_push(push, NDR_OUT, r);
595 if (NT_STATUS_IS_ERR(status)) {
600 blob = ndr_push_blob(push);
601 if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
611 static bool api_WKSSVC_NETRUSEADD(pipes_struct *p)
613 const struct ndr_interface_call *call;
614 struct ndr_pull *pull;
615 struct ndr_push *push;
618 struct WKSSVC_NETRUSEADD *r;
620 call = &ndr_table_wkssvc.calls[NDR_WKSSVC_NETRUSEADD];
622 r = talloc(NULL, struct WKSSVC_NETRUSEADD);
627 if (!prs_data_blob(&p->in_data.data, &blob, r)) {
632 pull = ndr_pull_init_blob(&blob, r);
638 pull->flags |= LIBNDR_FLAG_REF_ALLOC;
639 status = call->ndr_pull(pull, NDR_IN, r);
640 if (NT_STATUS_IS_ERR(status)) {
645 if (DEBUGLEVEL >= 10)
646 NDR_PRINT_IN_DEBUG(WKSSVC_NETRUSEADD, r);
648 r->out.result = _WKSSVC_NETRUSEADD(p, r);
650 if (p->rng_fault_state) {
652 /* Return True here, srv_pipe_hnd.c will take care */
656 if (DEBUGLEVEL >= 10)
657 NDR_PRINT_OUT_DEBUG(WKSSVC_NETRUSEADD, r);
659 push = ndr_push_init_ctx(r);
665 status = call->ndr_push(push, NDR_OUT, r);
666 if (NT_STATUS_IS_ERR(status)) {
671 blob = ndr_push_blob(push);
672 if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
682 static bool api_WKSSVC_NETRUSEGETINFO(pipes_struct *p)
684 const struct ndr_interface_call *call;
685 struct ndr_pull *pull;
686 struct ndr_push *push;
689 struct WKSSVC_NETRUSEGETINFO *r;
691 call = &ndr_table_wkssvc.calls[NDR_WKSSVC_NETRUSEGETINFO];
693 r = talloc(NULL, struct WKSSVC_NETRUSEGETINFO);
698 if (!prs_data_blob(&p->in_data.data, &blob, r)) {
703 pull = ndr_pull_init_blob(&blob, r);
709 pull->flags |= LIBNDR_FLAG_REF_ALLOC;
710 status = call->ndr_pull(pull, NDR_IN, r);
711 if (NT_STATUS_IS_ERR(status)) {
716 if (DEBUGLEVEL >= 10)
717 NDR_PRINT_IN_DEBUG(WKSSVC_NETRUSEGETINFO, r);
719 r->out.result = _WKSSVC_NETRUSEGETINFO(p, r);
721 if (p->rng_fault_state) {
723 /* Return True here, srv_pipe_hnd.c will take care */
727 if (DEBUGLEVEL >= 10)
728 NDR_PRINT_OUT_DEBUG(WKSSVC_NETRUSEGETINFO, r);
730 push = ndr_push_init_ctx(r);
736 status = call->ndr_push(push, NDR_OUT, r);
737 if (NT_STATUS_IS_ERR(status)) {
742 blob = ndr_push_blob(push);
743 if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
753 static bool api_WKSSVC_NETRUSEDEL(pipes_struct *p)
755 const struct ndr_interface_call *call;
756 struct ndr_pull *pull;
757 struct ndr_push *push;
760 struct WKSSVC_NETRUSEDEL *r;
762 call = &ndr_table_wkssvc.calls[NDR_WKSSVC_NETRUSEDEL];
764 r = talloc(NULL, struct WKSSVC_NETRUSEDEL);
769 if (!prs_data_blob(&p->in_data.data, &blob, r)) {
774 pull = ndr_pull_init_blob(&blob, r);
780 pull->flags |= LIBNDR_FLAG_REF_ALLOC;
781 status = call->ndr_pull(pull, NDR_IN, r);
782 if (NT_STATUS_IS_ERR(status)) {
787 if (DEBUGLEVEL >= 10)
788 NDR_PRINT_IN_DEBUG(WKSSVC_NETRUSEDEL, r);
790 r->out.result = _WKSSVC_NETRUSEDEL(p, r);
792 if (p->rng_fault_state) {
794 /* Return True here, srv_pipe_hnd.c will take care */
798 if (DEBUGLEVEL >= 10)
799 NDR_PRINT_OUT_DEBUG(WKSSVC_NETRUSEDEL, r);
801 push = ndr_push_init_ctx(r);
807 status = call->ndr_push(push, NDR_OUT, r);
808 if (NT_STATUS_IS_ERR(status)) {
813 blob = ndr_push_blob(push);
814 if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
824 static bool api_WKSSVC_NETRUSEENUM(pipes_struct *p)
826 const struct ndr_interface_call *call;
827 struct ndr_pull *pull;
828 struct ndr_push *push;
831 struct WKSSVC_NETRUSEENUM *r;
833 call = &ndr_table_wkssvc.calls[NDR_WKSSVC_NETRUSEENUM];
835 r = talloc(NULL, struct WKSSVC_NETRUSEENUM);
840 if (!prs_data_blob(&p->in_data.data, &blob, r)) {
845 pull = ndr_pull_init_blob(&blob, r);
851 pull->flags |= LIBNDR_FLAG_REF_ALLOC;
852 status = call->ndr_pull(pull, NDR_IN, r);
853 if (NT_STATUS_IS_ERR(status)) {
858 if (DEBUGLEVEL >= 10)
859 NDR_PRINT_IN_DEBUG(WKSSVC_NETRUSEENUM, r);
861 r->out.result = _WKSSVC_NETRUSEENUM(p, r);
863 if (p->rng_fault_state) {
865 /* Return True here, srv_pipe_hnd.c will take care */
869 if (DEBUGLEVEL >= 10)
870 NDR_PRINT_OUT_DEBUG(WKSSVC_NETRUSEENUM, r);
872 push = ndr_push_init_ctx(r);
878 status = call->ndr_push(push, NDR_OUT, r);
879 if (NT_STATUS_IS_ERR(status)) {
884 blob = ndr_push_blob(push);
885 if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
895 static bool api_WKSSVC_NETRMESSAGEBUFFERSEND(pipes_struct *p)
897 const struct ndr_interface_call *call;
898 struct ndr_pull *pull;
899 struct ndr_push *push;
902 struct WKSSVC_NETRMESSAGEBUFFERSEND *r;
904 call = &ndr_table_wkssvc.calls[NDR_WKSSVC_NETRMESSAGEBUFFERSEND];
906 r = talloc(NULL, struct WKSSVC_NETRMESSAGEBUFFERSEND);
911 if (!prs_data_blob(&p->in_data.data, &blob, r)) {
916 pull = ndr_pull_init_blob(&blob, r);
922 pull->flags |= LIBNDR_FLAG_REF_ALLOC;
923 status = call->ndr_pull(pull, NDR_IN, r);
924 if (NT_STATUS_IS_ERR(status)) {
929 if (DEBUGLEVEL >= 10)
930 NDR_PRINT_IN_DEBUG(WKSSVC_NETRMESSAGEBUFFERSEND, r);
932 r->out.result = _WKSSVC_NETRMESSAGEBUFFERSEND(p, r);
934 if (p->rng_fault_state) {
936 /* Return True here, srv_pipe_hnd.c will take care */
940 if (DEBUGLEVEL >= 10)
941 NDR_PRINT_OUT_DEBUG(WKSSVC_NETRMESSAGEBUFFERSEND, r);
943 push = ndr_push_init_ctx(r);
949 status = call->ndr_push(push, NDR_OUT, r);
950 if (NT_STATUS_IS_ERR(status)) {
955 blob = ndr_push_blob(push);
956 if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
966 static bool api_WKSSVC_NETRWORKSTATIONSTATISTICSGET(pipes_struct *p)
968 const struct ndr_interface_call *call;
969 struct ndr_pull *pull;
970 struct ndr_push *push;
973 struct WKSSVC_NETRWORKSTATIONSTATISTICSGET *r;
975 call = &ndr_table_wkssvc.calls[NDR_WKSSVC_NETRWORKSTATIONSTATISTICSGET];
977 r = talloc(NULL, struct WKSSVC_NETRWORKSTATIONSTATISTICSGET);
982 if (!prs_data_blob(&p->in_data.data, &blob, r)) {
987 pull = ndr_pull_init_blob(&blob, r);
993 pull->flags |= LIBNDR_FLAG_REF_ALLOC;
994 status = call->ndr_pull(pull, NDR_IN, r);
995 if (NT_STATUS_IS_ERR(status)) {
1000 if (DEBUGLEVEL >= 10)
1001 NDR_PRINT_IN_DEBUG(WKSSVC_NETRWORKSTATIONSTATISTICSGET, r);
1003 r->out.result = _WKSSVC_NETRWORKSTATIONSTATISTICSGET(p, r);
1005 if (p->rng_fault_state) {
1007 /* Return True here, srv_pipe_hnd.c will take care */
1011 if (DEBUGLEVEL >= 10)
1012 NDR_PRINT_OUT_DEBUG(WKSSVC_NETRWORKSTATIONSTATISTICSGET, r);
1014 push = ndr_push_init_ctx(r);
1020 status = call->ndr_push(push, NDR_OUT, r);
1021 if (NT_STATUS_IS_ERR(status)) {
1026 blob = ndr_push_blob(push);
1027 if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
1037 static bool api_WKSSVC_NETRLOGONDOMAINNAMEADD(pipes_struct *p)
1039 const struct ndr_interface_call *call;
1040 struct ndr_pull *pull;
1041 struct ndr_push *push;
1044 struct WKSSVC_NETRLOGONDOMAINNAMEADD *r;
1046 call = &ndr_table_wkssvc.calls[NDR_WKSSVC_NETRLOGONDOMAINNAMEADD];
1048 r = talloc(NULL, struct WKSSVC_NETRLOGONDOMAINNAMEADD);
1053 if (!prs_data_blob(&p->in_data.data, &blob, r)) {
1058 pull = ndr_pull_init_blob(&blob, r);
1064 pull->flags |= LIBNDR_FLAG_REF_ALLOC;
1065 status = call->ndr_pull(pull, NDR_IN, r);
1066 if (NT_STATUS_IS_ERR(status)) {
1071 if (DEBUGLEVEL >= 10)
1072 NDR_PRINT_IN_DEBUG(WKSSVC_NETRLOGONDOMAINNAMEADD, r);
1074 r->out.result = _WKSSVC_NETRLOGONDOMAINNAMEADD(p, r);
1076 if (p->rng_fault_state) {
1078 /* Return True here, srv_pipe_hnd.c will take care */
1082 if (DEBUGLEVEL >= 10)
1083 NDR_PRINT_OUT_DEBUG(WKSSVC_NETRLOGONDOMAINNAMEADD, r);
1085 push = ndr_push_init_ctx(r);
1091 status = call->ndr_push(push, NDR_OUT, r);
1092 if (NT_STATUS_IS_ERR(status)) {
1097 blob = ndr_push_blob(push);
1098 if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
1108 static bool api_WKSSVC_NETRLOGONDOMAINNAMEDEL(pipes_struct *p)
1110 const struct ndr_interface_call *call;
1111 struct ndr_pull *pull;
1112 struct ndr_push *push;
1115 struct WKSSVC_NETRLOGONDOMAINNAMEDEL *r;
1117 call = &ndr_table_wkssvc.calls[NDR_WKSSVC_NETRLOGONDOMAINNAMEDEL];
1119 r = talloc(NULL, struct WKSSVC_NETRLOGONDOMAINNAMEDEL);
1124 if (!prs_data_blob(&p->in_data.data, &blob, r)) {
1129 pull = ndr_pull_init_blob(&blob, r);
1135 pull->flags |= LIBNDR_FLAG_REF_ALLOC;
1136 status = call->ndr_pull(pull, NDR_IN, r);
1137 if (NT_STATUS_IS_ERR(status)) {
1142 if (DEBUGLEVEL >= 10)
1143 NDR_PRINT_IN_DEBUG(WKSSVC_NETRLOGONDOMAINNAMEDEL, r);
1145 r->out.result = _WKSSVC_NETRLOGONDOMAINNAMEDEL(p, r);
1147 if (p->rng_fault_state) {
1149 /* Return True here, srv_pipe_hnd.c will take care */
1153 if (DEBUGLEVEL >= 10)
1154 NDR_PRINT_OUT_DEBUG(WKSSVC_NETRLOGONDOMAINNAMEDEL, r);
1156 push = ndr_push_init_ctx(r);
1162 status = call->ndr_push(push, NDR_OUT, r);
1163 if (NT_STATUS_IS_ERR(status)) {
1168 blob = ndr_push_blob(push);
1169 if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
1179 static bool api_WKSSVC_NETRJOINDOMAIN(pipes_struct *p)
1181 const struct ndr_interface_call *call;
1182 struct ndr_pull *pull;
1183 struct ndr_push *push;
1186 struct WKSSVC_NETRJOINDOMAIN *r;
1188 call = &ndr_table_wkssvc.calls[NDR_WKSSVC_NETRJOINDOMAIN];
1190 r = talloc(NULL, struct WKSSVC_NETRJOINDOMAIN);
1195 if (!prs_data_blob(&p->in_data.data, &blob, r)) {
1200 pull = ndr_pull_init_blob(&blob, r);
1206 pull->flags |= LIBNDR_FLAG_REF_ALLOC;
1207 status = call->ndr_pull(pull, NDR_IN, r);
1208 if (NT_STATUS_IS_ERR(status)) {
1213 if (DEBUGLEVEL >= 10)
1214 NDR_PRINT_IN_DEBUG(WKSSVC_NETRJOINDOMAIN, r);
1216 r->out.result = _WKSSVC_NETRJOINDOMAIN(p, r);
1218 if (p->rng_fault_state) {
1220 /* Return True here, srv_pipe_hnd.c will take care */
1224 if (DEBUGLEVEL >= 10)
1225 NDR_PRINT_OUT_DEBUG(WKSSVC_NETRJOINDOMAIN, r);
1227 push = ndr_push_init_ctx(r);
1233 status = call->ndr_push(push, NDR_OUT, r);
1234 if (NT_STATUS_IS_ERR(status)) {
1239 blob = ndr_push_blob(push);
1240 if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
1250 static bool api_WKSSVC_NETRUNJOINDOMAIN(pipes_struct *p)
1252 const struct ndr_interface_call *call;
1253 struct ndr_pull *pull;
1254 struct ndr_push *push;
1257 struct WKSSVC_NETRUNJOINDOMAIN *r;
1259 call = &ndr_table_wkssvc.calls[NDR_WKSSVC_NETRUNJOINDOMAIN];
1261 r = talloc(NULL, struct WKSSVC_NETRUNJOINDOMAIN);
1266 if (!prs_data_blob(&p->in_data.data, &blob, r)) {
1271 pull = ndr_pull_init_blob(&blob, r);
1277 pull->flags |= LIBNDR_FLAG_REF_ALLOC;
1278 status = call->ndr_pull(pull, NDR_IN, r);
1279 if (NT_STATUS_IS_ERR(status)) {
1284 if (DEBUGLEVEL >= 10)
1285 NDR_PRINT_IN_DEBUG(WKSSVC_NETRUNJOINDOMAIN, r);
1287 r->out.result = _WKSSVC_NETRUNJOINDOMAIN(p, r);
1289 if (p->rng_fault_state) {
1291 /* Return True here, srv_pipe_hnd.c will take care */
1295 if (DEBUGLEVEL >= 10)
1296 NDR_PRINT_OUT_DEBUG(WKSSVC_NETRUNJOINDOMAIN, r);
1298 push = ndr_push_init_ctx(r);
1304 status = call->ndr_push(push, NDR_OUT, r);
1305 if (NT_STATUS_IS_ERR(status)) {
1310 blob = ndr_push_blob(push);
1311 if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
1321 static bool api_WKSSVC_NETRRENAMEMACHINEINDOMAIN(pipes_struct *p)
1323 const struct ndr_interface_call *call;
1324 struct ndr_pull *pull;
1325 struct ndr_push *push;
1328 struct WKSSVC_NETRRENAMEMACHINEINDOMAIN *r;
1330 call = &ndr_table_wkssvc.calls[NDR_WKSSVC_NETRRENAMEMACHINEINDOMAIN];
1332 r = talloc(NULL, struct WKSSVC_NETRRENAMEMACHINEINDOMAIN);
1337 if (!prs_data_blob(&p->in_data.data, &blob, r)) {
1342 pull = ndr_pull_init_blob(&blob, r);
1348 pull->flags |= LIBNDR_FLAG_REF_ALLOC;
1349 status = call->ndr_pull(pull, NDR_IN, r);
1350 if (NT_STATUS_IS_ERR(status)) {
1355 if (DEBUGLEVEL >= 10)
1356 NDR_PRINT_IN_DEBUG(WKSSVC_NETRRENAMEMACHINEINDOMAIN, r);
1358 r->out.result = _WKSSVC_NETRRENAMEMACHINEINDOMAIN(p, r);
1360 if (p->rng_fault_state) {
1362 /* Return True here, srv_pipe_hnd.c will take care */
1366 if (DEBUGLEVEL >= 10)
1367 NDR_PRINT_OUT_DEBUG(WKSSVC_NETRRENAMEMACHINEINDOMAIN, r);
1369 push = ndr_push_init_ctx(r);
1375 status = call->ndr_push(push, NDR_OUT, r);
1376 if (NT_STATUS_IS_ERR(status)) {
1381 blob = ndr_push_blob(push);
1382 if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
1392 static bool api_WKSSVC_NETRVALIDATENAME(pipes_struct *p)
1394 const struct ndr_interface_call *call;
1395 struct ndr_pull *pull;
1396 struct ndr_push *push;
1399 struct WKSSVC_NETRVALIDATENAME *r;
1401 call = &ndr_table_wkssvc.calls[NDR_WKSSVC_NETRVALIDATENAME];
1403 r = talloc(NULL, struct WKSSVC_NETRVALIDATENAME);
1408 if (!prs_data_blob(&p->in_data.data, &blob, r)) {
1413 pull = ndr_pull_init_blob(&blob, r);
1419 pull->flags |= LIBNDR_FLAG_REF_ALLOC;
1420 status = call->ndr_pull(pull, NDR_IN, r);
1421 if (NT_STATUS_IS_ERR(status)) {
1426 if (DEBUGLEVEL >= 10)
1427 NDR_PRINT_IN_DEBUG(WKSSVC_NETRVALIDATENAME, r);
1429 r->out.result = _WKSSVC_NETRVALIDATENAME(p, r);
1431 if (p->rng_fault_state) {
1433 /* Return True here, srv_pipe_hnd.c will take care */
1437 if (DEBUGLEVEL >= 10)
1438 NDR_PRINT_OUT_DEBUG(WKSSVC_NETRVALIDATENAME, r);
1440 push = ndr_push_init_ctx(r);
1446 status = call->ndr_push(push, NDR_OUT, r);
1447 if (NT_STATUS_IS_ERR(status)) {
1452 blob = ndr_push_blob(push);
1453 if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
1463 static bool api_WKSSVC_NETRGETJOININFORMATION(pipes_struct *p)
1465 const struct ndr_interface_call *call;
1466 struct ndr_pull *pull;
1467 struct ndr_push *push;
1470 struct WKSSVC_NETRGETJOININFORMATION *r;
1472 call = &ndr_table_wkssvc.calls[NDR_WKSSVC_NETRGETJOININFORMATION];
1474 r = talloc(NULL, struct WKSSVC_NETRGETJOININFORMATION);
1479 if (!prs_data_blob(&p->in_data.data, &blob, r)) {
1484 pull = ndr_pull_init_blob(&blob, r);
1490 pull->flags |= LIBNDR_FLAG_REF_ALLOC;
1491 status = call->ndr_pull(pull, NDR_IN, r);
1492 if (NT_STATUS_IS_ERR(status)) {
1497 if (DEBUGLEVEL >= 10)
1498 NDR_PRINT_IN_DEBUG(WKSSVC_NETRGETJOININFORMATION, r);
1500 r->out.result = _WKSSVC_NETRGETJOININFORMATION(p, r);
1502 if (p->rng_fault_state) {
1504 /* Return True here, srv_pipe_hnd.c will take care */
1508 if (DEBUGLEVEL >= 10)
1509 NDR_PRINT_OUT_DEBUG(WKSSVC_NETRGETJOININFORMATION, r);
1511 push = ndr_push_init_ctx(r);
1517 status = call->ndr_push(push, NDR_OUT, r);
1518 if (NT_STATUS_IS_ERR(status)) {
1523 blob = ndr_push_blob(push);
1524 if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
1534 static bool api_WKSSVC_NETRGETJOINABLEOUS(pipes_struct *p)
1536 const struct ndr_interface_call *call;
1537 struct ndr_pull *pull;
1538 struct ndr_push *push;
1541 struct WKSSVC_NETRGETJOINABLEOUS *r;
1543 call = &ndr_table_wkssvc.calls[NDR_WKSSVC_NETRGETJOINABLEOUS];
1545 r = talloc(NULL, struct WKSSVC_NETRGETJOINABLEOUS);
1550 if (!prs_data_blob(&p->in_data.data, &blob, r)) {
1555 pull = ndr_pull_init_blob(&blob, r);
1561 pull->flags |= LIBNDR_FLAG_REF_ALLOC;
1562 status = call->ndr_pull(pull, NDR_IN, r);
1563 if (NT_STATUS_IS_ERR(status)) {
1568 if (DEBUGLEVEL >= 10)
1569 NDR_PRINT_IN_DEBUG(WKSSVC_NETRGETJOINABLEOUS, r);
1571 r->out.result = _WKSSVC_NETRGETJOINABLEOUS(p, r);
1573 if (p->rng_fault_state) {
1575 /* Return True here, srv_pipe_hnd.c will take care */
1579 if (DEBUGLEVEL >= 10)
1580 NDR_PRINT_OUT_DEBUG(WKSSVC_NETRGETJOINABLEOUS, r);
1582 push = ndr_push_init_ctx(r);
1588 status = call->ndr_push(push, NDR_OUT, r);
1589 if (NT_STATUS_IS_ERR(status)) {
1594 blob = ndr_push_blob(push);
1595 if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
1605 static bool api_wkssvc_NetrJoinDomain2(pipes_struct *p)
1607 const struct ndr_interface_call *call;
1608 struct ndr_pull *pull;
1609 struct ndr_push *push;
1612 struct wkssvc_NetrJoinDomain2 *r;
1614 call = &ndr_table_wkssvc.calls[NDR_WKSSVC_NETRJOINDOMAIN2];
1616 r = talloc(NULL, struct wkssvc_NetrJoinDomain2);
1621 if (!prs_data_blob(&p->in_data.data, &blob, r)) {
1626 pull = ndr_pull_init_blob(&blob, r);
1632 pull->flags |= LIBNDR_FLAG_REF_ALLOC;
1633 status = call->ndr_pull(pull, NDR_IN, r);
1634 if (NT_STATUS_IS_ERR(status)) {
1639 if (DEBUGLEVEL >= 10)
1640 NDR_PRINT_IN_DEBUG(wkssvc_NetrJoinDomain2, r);
1642 r->out.result = _wkssvc_NetrJoinDomain2(p, r);
1644 if (p->rng_fault_state) {
1646 /* Return True here, srv_pipe_hnd.c will take care */
1650 if (DEBUGLEVEL >= 10)
1651 NDR_PRINT_OUT_DEBUG(wkssvc_NetrJoinDomain2, r);
1653 push = ndr_push_init_ctx(r);
1659 status = call->ndr_push(push, NDR_OUT, r);
1660 if (NT_STATUS_IS_ERR(status)) {
1665 blob = ndr_push_blob(push);
1666 if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
1676 static bool api_wkssvc_NetrUnjoinDomain2(pipes_struct *p)
1678 const struct ndr_interface_call *call;
1679 struct ndr_pull *pull;
1680 struct ndr_push *push;
1683 struct wkssvc_NetrUnjoinDomain2 *r;
1685 call = &ndr_table_wkssvc.calls[NDR_WKSSVC_NETRUNJOINDOMAIN2];
1687 r = talloc(NULL, struct wkssvc_NetrUnjoinDomain2);
1692 if (!prs_data_blob(&p->in_data.data, &blob, r)) {
1697 pull = ndr_pull_init_blob(&blob, r);
1703 pull->flags |= LIBNDR_FLAG_REF_ALLOC;
1704 status = call->ndr_pull(pull, NDR_IN, r);
1705 if (NT_STATUS_IS_ERR(status)) {
1710 if (DEBUGLEVEL >= 10)
1711 NDR_PRINT_IN_DEBUG(wkssvc_NetrUnjoinDomain2, r);
1713 r->out.result = _wkssvc_NetrUnjoinDomain2(p, r);
1715 if (p->rng_fault_state) {
1717 /* Return True here, srv_pipe_hnd.c will take care */
1721 if (DEBUGLEVEL >= 10)
1722 NDR_PRINT_OUT_DEBUG(wkssvc_NetrUnjoinDomain2, r);
1724 push = ndr_push_init_ctx(r);
1730 status = call->ndr_push(push, NDR_OUT, r);
1731 if (NT_STATUS_IS_ERR(status)) {
1736 blob = ndr_push_blob(push);
1737 if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
1747 static bool api_wkssvc_NetrRenameMachineInDomain2(pipes_struct *p)
1749 const struct ndr_interface_call *call;
1750 struct ndr_pull *pull;
1751 struct ndr_push *push;
1754 struct wkssvc_NetrRenameMachineInDomain2 *r;
1756 call = &ndr_table_wkssvc.calls[NDR_WKSSVC_NETRRENAMEMACHINEINDOMAIN2];
1758 r = talloc(NULL, struct wkssvc_NetrRenameMachineInDomain2);
1763 if (!prs_data_blob(&p->in_data.data, &blob, r)) {
1768 pull = ndr_pull_init_blob(&blob, r);
1774 pull->flags |= LIBNDR_FLAG_REF_ALLOC;
1775 status = call->ndr_pull(pull, NDR_IN, r);
1776 if (NT_STATUS_IS_ERR(status)) {
1781 if (DEBUGLEVEL >= 10)
1782 NDR_PRINT_IN_DEBUG(wkssvc_NetrRenameMachineInDomain2, r);
1784 r->out.result = _wkssvc_NetrRenameMachineInDomain2(p, r);
1786 if (p->rng_fault_state) {
1788 /* Return True here, srv_pipe_hnd.c will take care */
1792 if (DEBUGLEVEL >= 10)
1793 NDR_PRINT_OUT_DEBUG(wkssvc_NetrRenameMachineInDomain2, r);
1795 push = ndr_push_init_ctx(r);
1801 status = call->ndr_push(push, NDR_OUT, r);
1802 if (NT_STATUS_IS_ERR(status)) {
1807 blob = ndr_push_blob(push);
1808 if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
1818 static bool api_WKSSVC_NETRVALIDATENAME2(pipes_struct *p)
1820 const struct ndr_interface_call *call;
1821 struct ndr_pull *pull;
1822 struct ndr_push *push;
1825 struct WKSSVC_NETRVALIDATENAME2 *r;
1827 call = &ndr_table_wkssvc.calls[NDR_WKSSVC_NETRVALIDATENAME2];
1829 r = talloc(NULL, struct WKSSVC_NETRVALIDATENAME2);
1834 if (!prs_data_blob(&p->in_data.data, &blob, r)) {
1839 pull = ndr_pull_init_blob(&blob, r);
1845 pull->flags |= LIBNDR_FLAG_REF_ALLOC;
1846 status = call->ndr_pull(pull, NDR_IN, r);
1847 if (NT_STATUS_IS_ERR(status)) {
1852 if (DEBUGLEVEL >= 10)
1853 NDR_PRINT_IN_DEBUG(WKSSVC_NETRVALIDATENAME2, r);
1855 r->out.result = _WKSSVC_NETRVALIDATENAME2(p, r);
1857 if (p->rng_fault_state) {
1859 /* Return True here, srv_pipe_hnd.c will take care */
1863 if (DEBUGLEVEL >= 10)
1864 NDR_PRINT_OUT_DEBUG(WKSSVC_NETRVALIDATENAME2, r);
1866 push = ndr_push_init_ctx(r);
1872 status = call->ndr_push(push, NDR_OUT, r);
1873 if (NT_STATUS_IS_ERR(status)) {
1878 blob = ndr_push_blob(push);
1879 if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
1889 static bool api_WKSSVC_NETRGETJOINABLEOUS2(pipes_struct *p)
1891 const struct ndr_interface_call *call;
1892 struct ndr_pull *pull;
1893 struct ndr_push *push;
1896 struct WKSSVC_NETRGETJOINABLEOUS2 *r;
1898 call = &ndr_table_wkssvc.calls[NDR_WKSSVC_NETRGETJOINABLEOUS2];
1900 r = talloc(NULL, struct WKSSVC_NETRGETJOINABLEOUS2);
1905 if (!prs_data_blob(&p->in_data.data, &blob, r)) {
1910 pull = ndr_pull_init_blob(&blob, r);
1916 pull->flags |= LIBNDR_FLAG_REF_ALLOC;
1917 status = call->ndr_pull(pull, NDR_IN, r);
1918 if (NT_STATUS_IS_ERR(status)) {
1923 if (DEBUGLEVEL >= 10)
1924 NDR_PRINT_IN_DEBUG(WKSSVC_NETRGETJOINABLEOUS2, r);
1926 r->out.result = _WKSSVC_NETRGETJOINABLEOUS2(p, r);
1928 if (p->rng_fault_state) {
1930 /* Return True here, srv_pipe_hnd.c will take care */
1934 if (DEBUGLEVEL >= 10)
1935 NDR_PRINT_OUT_DEBUG(WKSSVC_NETRGETJOINABLEOUS2, r);
1937 push = ndr_push_init_ctx(r);
1943 status = call->ndr_push(push, NDR_OUT, r);
1944 if (NT_STATUS_IS_ERR(status)) {
1949 blob = ndr_push_blob(push);
1950 if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
1960 static bool api_wkssvc_NetrAddAlternateComputerName(pipes_struct *p)
1962 const struct ndr_interface_call *call;
1963 struct ndr_pull *pull;
1964 struct ndr_push *push;
1967 struct wkssvc_NetrAddAlternateComputerName *r;
1969 call = &ndr_table_wkssvc.calls[NDR_WKSSVC_NETRADDALTERNATECOMPUTERNAME];
1971 r = talloc(NULL, struct wkssvc_NetrAddAlternateComputerName);
1976 if (!prs_data_blob(&p->in_data.data, &blob, r)) {
1981 pull = ndr_pull_init_blob(&blob, r);
1987 pull->flags |= LIBNDR_FLAG_REF_ALLOC;
1988 status = call->ndr_pull(pull, NDR_IN, r);
1989 if (NT_STATUS_IS_ERR(status)) {
1994 if (DEBUGLEVEL >= 10)
1995 NDR_PRINT_IN_DEBUG(wkssvc_NetrAddAlternateComputerName, r);
1997 r->out.result = _wkssvc_NetrAddAlternateComputerName(p, r);
1999 if (p->rng_fault_state) {
2001 /* Return True here, srv_pipe_hnd.c will take care */
2005 if (DEBUGLEVEL >= 10)
2006 NDR_PRINT_OUT_DEBUG(wkssvc_NetrAddAlternateComputerName, r);
2008 push = ndr_push_init_ctx(r);
2014 status = call->ndr_push(push, NDR_OUT, r);
2015 if (NT_STATUS_IS_ERR(status)) {
2020 blob = ndr_push_blob(push);
2021 if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
2031 static bool api_wkssvc_NetrRemoveAlternateComputerName(pipes_struct *p)
2033 const struct ndr_interface_call *call;
2034 struct ndr_pull *pull;
2035 struct ndr_push *push;
2038 struct wkssvc_NetrRemoveAlternateComputerName *r;
2040 call = &ndr_table_wkssvc.calls[NDR_WKSSVC_NETRREMOVEALTERNATECOMPUTERNAME];
2042 r = talloc(NULL, struct wkssvc_NetrRemoveAlternateComputerName);
2047 if (!prs_data_blob(&p->in_data.data, &blob, r)) {
2052 pull = ndr_pull_init_blob(&blob, r);
2058 pull->flags |= LIBNDR_FLAG_REF_ALLOC;
2059 status = call->ndr_pull(pull, NDR_IN, r);
2060 if (NT_STATUS_IS_ERR(status)) {
2065 if (DEBUGLEVEL >= 10)
2066 NDR_PRINT_IN_DEBUG(wkssvc_NetrRemoveAlternateComputerName, r);
2068 r->out.result = _wkssvc_NetrRemoveAlternateComputerName(p, r);
2070 if (p->rng_fault_state) {
2072 /* Return True here, srv_pipe_hnd.c will take care */
2076 if (DEBUGLEVEL >= 10)
2077 NDR_PRINT_OUT_DEBUG(wkssvc_NetrRemoveAlternateComputerName, r);
2079 push = ndr_push_init_ctx(r);
2085 status = call->ndr_push(push, NDR_OUT, r);
2086 if (NT_STATUS_IS_ERR(status)) {
2091 blob = ndr_push_blob(push);
2092 if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
2102 static bool api_WKSSVC_NETRSETPRIMARYCOMPUTERNAME(pipes_struct *p)
2104 const struct ndr_interface_call *call;
2105 struct ndr_pull *pull;
2106 struct ndr_push *push;
2109 struct WKSSVC_NETRSETPRIMARYCOMPUTERNAME *r;
2111 call = &ndr_table_wkssvc.calls[NDR_WKSSVC_NETRSETPRIMARYCOMPUTERNAME];
2113 r = talloc(NULL, struct WKSSVC_NETRSETPRIMARYCOMPUTERNAME);
2118 if (!prs_data_blob(&p->in_data.data, &blob, r)) {
2123 pull = ndr_pull_init_blob(&blob, r);
2129 pull->flags |= LIBNDR_FLAG_REF_ALLOC;
2130 status = call->ndr_pull(pull, NDR_IN, r);
2131 if (NT_STATUS_IS_ERR(status)) {
2136 if (DEBUGLEVEL >= 10)
2137 NDR_PRINT_IN_DEBUG(WKSSVC_NETRSETPRIMARYCOMPUTERNAME, r);
2139 r->out.result = _WKSSVC_NETRSETPRIMARYCOMPUTERNAME(p, r);
2141 if (p->rng_fault_state) {
2143 /* Return True here, srv_pipe_hnd.c will take care */
2147 if (DEBUGLEVEL >= 10)
2148 NDR_PRINT_OUT_DEBUG(WKSSVC_NETRSETPRIMARYCOMPUTERNAME, r);
2150 push = ndr_push_init_ctx(r);
2156 status = call->ndr_push(push, NDR_OUT, r);
2157 if (NT_STATUS_IS_ERR(status)) {
2162 blob = ndr_push_blob(push);
2163 if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
2173 static bool api_WKSSVC_NETRENUMERATECOMPUTERNAMES(pipes_struct *p)
2175 const struct ndr_interface_call *call;
2176 struct ndr_pull *pull;
2177 struct ndr_push *push;
2180 struct WKSSVC_NETRENUMERATECOMPUTERNAMES *r;
2182 call = &ndr_table_wkssvc.calls[NDR_WKSSVC_NETRENUMERATECOMPUTERNAMES];
2184 r = talloc(NULL, struct WKSSVC_NETRENUMERATECOMPUTERNAMES);
2189 if (!prs_data_blob(&p->in_data.data, &blob, r)) {
2194 pull = ndr_pull_init_blob(&blob, r);
2200 pull->flags |= LIBNDR_FLAG_REF_ALLOC;
2201 status = call->ndr_pull(pull, NDR_IN, r);
2202 if (NT_STATUS_IS_ERR(status)) {
2207 if (DEBUGLEVEL >= 10)
2208 NDR_PRINT_IN_DEBUG(WKSSVC_NETRENUMERATECOMPUTERNAMES, r);
2210 r->out.result = _WKSSVC_NETRENUMERATECOMPUTERNAMES(p, r);
2212 if (p->rng_fault_state) {
2214 /* Return True here, srv_pipe_hnd.c will take care */
2218 if (DEBUGLEVEL >= 10)
2219 NDR_PRINT_OUT_DEBUG(WKSSVC_NETRENUMERATECOMPUTERNAMES, r);
2221 push = ndr_push_init_ctx(r);
2227 status = call->ndr_push(push, NDR_OUT, r);
2228 if (NT_STATUS_IS_ERR(status)) {
2233 blob = ndr_push_blob(push);
2234 if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
2246 static struct api_struct api_wkssvc_cmds[] =
2248 {"WKSSVC_NETWKSTAGETINFO", NDR_WKSSVC_NETWKSTAGETINFO, api_wkssvc_NetWkstaGetInfo},
2249 {"WKSSVC_NETWKSTASETINFO", NDR_WKSSVC_NETWKSTASETINFO, api_wkssvc_NetWkstaSetInfo},
2250 {"WKSSVC_NETWKSTAENUMUSERS", NDR_WKSSVC_NETWKSTAENUMUSERS, api_wkssvc_NetWkstaEnumUsers},
2251 {"WKSSVC_NETRWKSTAUSERGETINFO", NDR_WKSSVC_NETRWKSTAUSERGETINFO, api_WKSSVC_NETRWKSTAUSERGETINFO},
2252 {"WKSSVC_NETRWKSTAUSERSETINFO", NDR_WKSSVC_NETRWKSTAUSERSETINFO, api_WKSSVC_NETRWKSTAUSERSETINFO},
2253 {"WKSSVC_NETWKSTATRANSPORTENUM", NDR_WKSSVC_NETWKSTATRANSPORTENUM, api_wkssvc_NetWkstaTransportEnum},
2254 {"WKSSVC_NETRWKSTATRANSPORTADD", NDR_WKSSVC_NETRWKSTATRANSPORTADD, api_WKSSVC_NETRWKSTATRANSPORTADD},
2255 {"WKSSVC_NETRWKSTATRANSPORTDEL", NDR_WKSSVC_NETRWKSTATRANSPORTDEL, api_WKSSVC_NETRWKSTATRANSPORTDEL},
2256 {"WKSSVC_NETRUSEADD", NDR_WKSSVC_NETRUSEADD, api_WKSSVC_NETRUSEADD},
2257 {"WKSSVC_NETRUSEGETINFO", NDR_WKSSVC_NETRUSEGETINFO, api_WKSSVC_NETRUSEGETINFO},
2258 {"WKSSVC_NETRUSEDEL", NDR_WKSSVC_NETRUSEDEL, api_WKSSVC_NETRUSEDEL},
2259 {"WKSSVC_NETRUSEENUM", NDR_WKSSVC_NETRUSEENUM, api_WKSSVC_NETRUSEENUM},
2260 {"WKSSVC_NETRMESSAGEBUFFERSEND", NDR_WKSSVC_NETRMESSAGEBUFFERSEND, api_WKSSVC_NETRMESSAGEBUFFERSEND},
2261 {"WKSSVC_NETRWORKSTATIONSTATISTICSGET", NDR_WKSSVC_NETRWORKSTATIONSTATISTICSGET, api_WKSSVC_NETRWORKSTATIONSTATISTICSGET},
2262 {"WKSSVC_NETRLOGONDOMAINNAMEADD", NDR_WKSSVC_NETRLOGONDOMAINNAMEADD, api_WKSSVC_NETRLOGONDOMAINNAMEADD},
2263 {"WKSSVC_NETRLOGONDOMAINNAMEDEL", NDR_WKSSVC_NETRLOGONDOMAINNAMEDEL, api_WKSSVC_NETRLOGONDOMAINNAMEDEL},
2264 {"WKSSVC_NETRJOINDOMAIN", NDR_WKSSVC_NETRJOINDOMAIN, api_WKSSVC_NETRJOINDOMAIN},
2265 {"WKSSVC_NETRUNJOINDOMAIN", NDR_WKSSVC_NETRUNJOINDOMAIN, api_WKSSVC_NETRUNJOINDOMAIN},
2266 {"WKSSVC_NETRRENAMEMACHINEINDOMAIN", NDR_WKSSVC_NETRRENAMEMACHINEINDOMAIN, api_WKSSVC_NETRRENAMEMACHINEINDOMAIN},
2267 {"WKSSVC_NETRVALIDATENAME", NDR_WKSSVC_NETRVALIDATENAME, api_WKSSVC_NETRVALIDATENAME},
2268 {"WKSSVC_NETRGETJOININFORMATION", NDR_WKSSVC_NETRGETJOININFORMATION, api_WKSSVC_NETRGETJOININFORMATION},
2269 {"WKSSVC_NETRGETJOINABLEOUS", NDR_WKSSVC_NETRGETJOINABLEOUS, api_WKSSVC_NETRGETJOINABLEOUS},
2270 {"WKSSVC_NETRJOINDOMAIN2", NDR_WKSSVC_NETRJOINDOMAIN2, api_wkssvc_NetrJoinDomain2},
2271 {"WKSSVC_NETRUNJOINDOMAIN2", NDR_WKSSVC_NETRUNJOINDOMAIN2, api_wkssvc_NetrUnjoinDomain2},
2272 {"WKSSVC_NETRRENAMEMACHINEINDOMAIN2", NDR_WKSSVC_NETRRENAMEMACHINEINDOMAIN2, api_wkssvc_NetrRenameMachineInDomain2},
2273 {"WKSSVC_NETRVALIDATENAME2", NDR_WKSSVC_NETRVALIDATENAME2, api_WKSSVC_NETRVALIDATENAME2},
2274 {"WKSSVC_NETRGETJOINABLEOUS2", NDR_WKSSVC_NETRGETJOINABLEOUS2, api_WKSSVC_NETRGETJOINABLEOUS2},
2275 {"WKSSVC_NETRADDALTERNATECOMPUTERNAME", NDR_WKSSVC_NETRADDALTERNATECOMPUTERNAME, api_wkssvc_NetrAddAlternateComputerName},
2276 {"WKSSVC_NETRREMOVEALTERNATECOMPUTERNAME", NDR_WKSSVC_NETRREMOVEALTERNATECOMPUTERNAME, api_wkssvc_NetrRemoveAlternateComputerName},
2277 {"WKSSVC_NETRSETPRIMARYCOMPUTERNAME", NDR_WKSSVC_NETRSETPRIMARYCOMPUTERNAME, api_WKSSVC_NETRSETPRIMARYCOMPUTERNAME},
2278 {"WKSSVC_NETRENUMERATECOMPUTERNAMES", NDR_WKSSVC_NETRENUMERATECOMPUTERNAMES, api_WKSSVC_NETRENUMERATECOMPUTERNAMES},
2281 void wkssvc_get_pipe_fns(struct api_struct **fns, int *n_fns)
2283 *fns = api_wkssvc_cmds;
2284 *n_fns = sizeof(api_wkssvc_cmds) / sizeof(struct api_struct);
2287 NTSTATUS rpc_wkssvc_init(void)
2289 return rpc_pipe_register_commands(SMB_RPC_INTERFACE_VERSION, "wkssvc", "wkssvc", api_wkssvc_cmds, sizeof(api_wkssvc_cmds) / sizeof(struct api_struct));