2 * Unix SMB/CIFS implementation.
3 * server auto-generated by pidl. DO NOT MODIFY!
7 #include "librpc/gen_ndr/srv_srvsvc.h"
9 static BOOL
api_srvsvc_NetCharDevEnum(pipes_struct
*p
)
11 struct ndr_pull
*pull
;
12 struct ndr_push
*push
;
15 struct srvsvc_NetCharDevEnum r
;
16 TALLOC_CTX
*mem_ctx
= talloc_init("api_srvsvc_NetCharDevEnum");
18 if (!prs_data_blob(&p
->in_data
.data
, &blob
, mem_ctx
)) {
23 pull
= ndr_pull_init_blob(&blob
, mem_ctx
);
29 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
30 status
= ndr_pull_srvsvc_NetCharDevEnum(pull
, NDR_IN
, &r
);
31 if (NT_STATUS_IS_ERR(status
)) {
37 NDR_PRINT_IN_DEBUG(srvsvc_NetCharDevEnum
, &r
);
40 r
.out
.level
= r
.in
.level
;
42 r
.out
.totalentries
= talloc_zero(mem_ctx
, uint32_t);
43 if (r
.out
.totalentries
== NULL
) {
48 r
.out
.resume_handle
= r
.in
.resume_handle
;
49 r
.out
.result
= _srvsvc_NetCharDevEnum(p
, &r
);
51 if (p
->rng_fault_state
) {
53 /* Return True here, srv_pipe_hnd.c will take care */
58 NDR_PRINT_OUT_DEBUG(srvsvc_NetCharDevEnum
, &r
);
60 push
= ndr_push_init_ctx(mem_ctx
);
66 status
= ndr_push_srvsvc_NetCharDevEnum(push
, NDR_OUT
, &r
);
67 if (NT_STATUS_IS_ERR(status
)) {
72 blob
= ndr_push_blob(push
);
73 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32
)blob
.length
)) {
83 static BOOL
api_srvsvc_NetCharDevGetInfo(pipes_struct
*p
)
85 struct ndr_pull
*pull
;
86 struct ndr_push
*push
;
89 struct srvsvc_NetCharDevGetInfo r
;
90 TALLOC_CTX
*mem_ctx
= talloc_init("api_srvsvc_NetCharDevGetInfo");
92 if (!prs_data_blob(&p
->in_data
.data
, &blob
, mem_ctx
)) {
97 pull
= ndr_pull_init_blob(&blob
, mem_ctx
);
103 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
104 status
= ndr_pull_srvsvc_NetCharDevGetInfo(pull
, NDR_IN
, &r
);
105 if (NT_STATUS_IS_ERR(status
)) {
106 talloc_free(mem_ctx
);
110 if (DEBUGLEVEL
>= 10)
111 NDR_PRINT_IN_DEBUG(srvsvc_NetCharDevGetInfo
, &r
);
114 r
.out
.info
= talloc_zero(mem_ctx
, union srvsvc_NetCharDevInfo
);
115 if (r
.out
.info
== NULL
) {
116 talloc_free(mem_ctx
);
120 r
.out
.result
= _srvsvc_NetCharDevGetInfo(p
, &r
);
122 if (p
->rng_fault_state
) {
123 talloc_free(mem_ctx
);
124 /* Return True here, srv_pipe_hnd.c will take care */
128 if (DEBUGLEVEL
>= 10)
129 NDR_PRINT_OUT_DEBUG(srvsvc_NetCharDevGetInfo
, &r
);
131 push
= ndr_push_init_ctx(mem_ctx
);
133 talloc_free(mem_ctx
);
137 status
= ndr_push_srvsvc_NetCharDevGetInfo(push
, NDR_OUT
, &r
);
138 if (NT_STATUS_IS_ERR(status
)) {
139 talloc_free(mem_ctx
);
143 blob
= ndr_push_blob(push
);
144 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32
)blob
.length
)) {
145 talloc_free(mem_ctx
);
149 talloc_free(mem_ctx
);
154 static BOOL
api_srvsvc_NetCharDevControl(pipes_struct
*p
)
156 struct ndr_pull
*pull
;
157 struct ndr_push
*push
;
160 struct srvsvc_NetCharDevControl r
;
161 TALLOC_CTX
*mem_ctx
= talloc_init("api_srvsvc_NetCharDevControl");
163 if (!prs_data_blob(&p
->in_data
.data
, &blob
, mem_ctx
)) {
164 talloc_free(mem_ctx
);
168 pull
= ndr_pull_init_blob(&blob
, mem_ctx
);
170 talloc_free(mem_ctx
);
174 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
175 status
= ndr_pull_srvsvc_NetCharDevControl(pull
, NDR_IN
, &r
);
176 if (NT_STATUS_IS_ERR(status
)) {
177 talloc_free(mem_ctx
);
181 if (DEBUGLEVEL
>= 10)
182 NDR_PRINT_IN_DEBUG(srvsvc_NetCharDevControl
, &r
);
184 r
.out
.result
= _srvsvc_NetCharDevControl(p
, &r
);
186 if (p
->rng_fault_state
) {
187 talloc_free(mem_ctx
);
188 /* Return True here, srv_pipe_hnd.c will take care */
192 if (DEBUGLEVEL
>= 10)
193 NDR_PRINT_OUT_DEBUG(srvsvc_NetCharDevControl
, &r
);
195 push
= ndr_push_init_ctx(mem_ctx
);
197 talloc_free(mem_ctx
);
201 status
= ndr_push_srvsvc_NetCharDevControl(push
, NDR_OUT
, &r
);
202 if (NT_STATUS_IS_ERR(status
)) {
203 talloc_free(mem_ctx
);
207 blob
= ndr_push_blob(push
);
208 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32
)blob
.length
)) {
209 talloc_free(mem_ctx
);
213 talloc_free(mem_ctx
);
218 static BOOL
api_srvsvc_NetCharDevQEnum(pipes_struct
*p
)
220 struct ndr_pull
*pull
;
221 struct ndr_push
*push
;
224 struct srvsvc_NetCharDevQEnum r
;
225 TALLOC_CTX
*mem_ctx
= talloc_init("api_srvsvc_NetCharDevQEnum");
227 if (!prs_data_blob(&p
->in_data
.data
, &blob
, mem_ctx
)) {
228 talloc_free(mem_ctx
);
232 pull
= ndr_pull_init_blob(&blob
, mem_ctx
);
234 talloc_free(mem_ctx
);
238 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
239 status
= ndr_pull_srvsvc_NetCharDevQEnum(pull
, NDR_IN
, &r
);
240 if (NT_STATUS_IS_ERR(status
)) {
241 talloc_free(mem_ctx
);
245 if (DEBUGLEVEL
>= 10)
246 NDR_PRINT_IN_DEBUG(srvsvc_NetCharDevQEnum
, &r
);
249 r
.out
.level
= r
.in
.level
;
250 r
.out
.ctr
= r
.in
.ctr
;
251 r
.out
.totalentries
= talloc_zero(mem_ctx
, uint32_t);
252 if (r
.out
.totalentries
== NULL
) {
253 talloc_free(mem_ctx
);
257 r
.out
.resume_handle
= r
.in
.resume_handle
;
258 r
.out
.result
= _srvsvc_NetCharDevQEnum(p
, &r
);
260 if (p
->rng_fault_state
) {
261 talloc_free(mem_ctx
);
262 /* Return True here, srv_pipe_hnd.c will take care */
266 if (DEBUGLEVEL
>= 10)
267 NDR_PRINT_OUT_DEBUG(srvsvc_NetCharDevQEnum
, &r
);
269 push
= ndr_push_init_ctx(mem_ctx
);
271 talloc_free(mem_ctx
);
275 status
= ndr_push_srvsvc_NetCharDevQEnum(push
, NDR_OUT
, &r
);
276 if (NT_STATUS_IS_ERR(status
)) {
277 talloc_free(mem_ctx
);
281 blob
= ndr_push_blob(push
);
282 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32
)blob
.length
)) {
283 talloc_free(mem_ctx
);
287 talloc_free(mem_ctx
);
292 static BOOL
api_srvsvc_NetCharDevQGetInfo(pipes_struct
*p
)
294 struct ndr_pull
*pull
;
295 struct ndr_push
*push
;
298 struct srvsvc_NetCharDevQGetInfo r
;
299 TALLOC_CTX
*mem_ctx
= talloc_init("api_srvsvc_NetCharDevQGetInfo");
301 if (!prs_data_blob(&p
->in_data
.data
, &blob
, mem_ctx
)) {
302 talloc_free(mem_ctx
);
306 pull
= ndr_pull_init_blob(&blob
, mem_ctx
);
308 talloc_free(mem_ctx
);
312 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
313 status
= ndr_pull_srvsvc_NetCharDevQGetInfo(pull
, NDR_IN
, &r
);
314 if (NT_STATUS_IS_ERR(status
)) {
315 talloc_free(mem_ctx
);
319 if (DEBUGLEVEL
>= 10)
320 NDR_PRINT_IN_DEBUG(srvsvc_NetCharDevQGetInfo
, &r
);
323 r
.out
.info
= talloc_zero(mem_ctx
, union srvsvc_NetCharDevQInfo
);
324 if (r
.out
.info
== NULL
) {
325 talloc_free(mem_ctx
);
329 r
.out
.result
= _srvsvc_NetCharDevQGetInfo(p
, &r
);
331 if (p
->rng_fault_state
) {
332 talloc_free(mem_ctx
);
333 /* Return True here, srv_pipe_hnd.c will take care */
337 if (DEBUGLEVEL
>= 10)
338 NDR_PRINT_OUT_DEBUG(srvsvc_NetCharDevQGetInfo
, &r
);
340 push
= ndr_push_init_ctx(mem_ctx
);
342 talloc_free(mem_ctx
);
346 status
= ndr_push_srvsvc_NetCharDevQGetInfo(push
, NDR_OUT
, &r
);
347 if (NT_STATUS_IS_ERR(status
)) {
348 talloc_free(mem_ctx
);
352 blob
= ndr_push_blob(push
);
353 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32
)blob
.length
)) {
354 talloc_free(mem_ctx
);
358 talloc_free(mem_ctx
);
363 static BOOL
api_srvsvc_NetCharDevQSetInfo(pipes_struct
*p
)
365 struct ndr_pull
*pull
;
366 struct ndr_push
*push
;
369 struct srvsvc_NetCharDevQSetInfo r
;
370 TALLOC_CTX
*mem_ctx
= talloc_init("api_srvsvc_NetCharDevQSetInfo");
372 if (!prs_data_blob(&p
->in_data
.data
, &blob
, mem_ctx
)) {
373 talloc_free(mem_ctx
);
377 pull
= ndr_pull_init_blob(&blob
, mem_ctx
);
379 talloc_free(mem_ctx
);
383 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
384 status
= ndr_pull_srvsvc_NetCharDevQSetInfo(pull
, NDR_IN
, &r
);
385 if (NT_STATUS_IS_ERR(status
)) {
386 talloc_free(mem_ctx
);
390 if (DEBUGLEVEL
>= 10)
391 NDR_PRINT_IN_DEBUG(srvsvc_NetCharDevQSetInfo
, &r
);
394 r
.out
.parm_error
= r
.in
.parm_error
;
395 r
.out
.result
= _srvsvc_NetCharDevQSetInfo(p
, &r
);
397 if (p
->rng_fault_state
) {
398 talloc_free(mem_ctx
);
399 /* Return True here, srv_pipe_hnd.c will take care */
403 if (DEBUGLEVEL
>= 10)
404 NDR_PRINT_OUT_DEBUG(srvsvc_NetCharDevQSetInfo
, &r
);
406 push
= ndr_push_init_ctx(mem_ctx
);
408 talloc_free(mem_ctx
);
412 status
= ndr_push_srvsvc_NetCharDevQSetInfo(push
, NDR_OUT
, &r
);
413 if (NT_STATUS_IS_ERR(status
)) {
414 talloc_free(mem_ctx
);
418 blob
= ndr_push_blob(push
);
419 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32
)blob
.length
)) {
420 talloc_free(mem_ctx
);
424 talloc_free(mem_ctx
);
429 static BOOL
api_srvsvc_NetCharDevQPurge(pipes_struct
*p
)
431 struct ndr_pull
*pull
;
432 struct ndr_push
*push
;
435 struct srvsvc_NetCharDevQPurge r
;
436 TALLOC_CTX
*mem_ctx
= talloc_init("api_srvsvc_NetCharDevQPurge");
438 if (!prs_data_blob(&p
->in_data
.data
, &blob
, mem_ctx
)) {
439 talloc_free(mem_ctx
);
443 pull
= ndr_pull_init_blob(&blob
, mem_ctx
);
445 talloc_free(mem_ctx
);
449 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
450 status
= ndr_pull_srvsvc_NetCharDevQPurge(pull
, NDR_IN
, &r
);
451 if (NT_STATUS_IS_ERR(status
)) {
452 talloc_free(mem_ctx
);
456 if (DEBUGLEVEL
>= 10)
457 NDR_PRINT_IN_DEBUG(srvsvc_NetCharDevQPurge
, &r
);
459 r
.out
.result
= _srvsvc_NetCharDevQPurge(p
, &r
);
461 if (p
->rng_fault_state
) {
462 talloc_free(mem_ctx
);
463 /* Return True here, srv_pipe_hnd.c will take care */
467 if (DEBUGLEVEL
>= 10)
468 NDR_PRINT_OUT_DEBUG(srvsvc_NetCharDevQPurge
, &r
);
470 push
= ndr_push_init_ctx(mem_ctx
);
472 talloc_free(mem_ctx
);
476 status
= ndr_push_srvsvc_NetCharDevQPurge(push
, NDR_OUT
, &r
);
477 if (NT_STATUS_IS_ERR(status
)) {
478 talloc_free(mem_ctx
);
482 blob
= ndr_push_blob(push
);
483 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32
)blob
.length
)) {
484 talloc_free(mem_ctx
);
488 talloc_free(mem_ctx
);
493 static BOOL
api_srvsvc_NetCharDevQPurgeSelf(pipes_struct
*p
)
495 struct ndr_pull
*pull
;
496 struct ndr_push
*push
;
499 struct srvsvc_NetCharDevQPurgeSelf r
;
500 TALLOC_CTX
*mem_ctx
= talloc_init("api_srvsvc_NetCharDevQPurgeSelf");
502 if (!prs_data_blob(&p
->in_data
.data
, &blob
, mem_ctx
)) {
503 talloc_free(mem_ctx
);
507 pull
= ndr_pull_init_blob(&blob
, mem_ctx
);
509 talloc_free(mem_ctx
);
513 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
514 status
= ndr_pull_srvsvc_NetCharDevQPurgeSelf(pull
, NDR_IN
, &r
);
515 if (NT_STATUS_IS_ERR(status
)) {
516 talloc_free(mem_ctx
);
520 if (DEBUGLEVEL
>= 10)
521 NDR_PRINT_IN_DEBUG(srvsvc_NetCharDevQPurgeSelf
, &r
);
523 r
.out
.result
= _srvsvc_NetCharDevQPurgeSelf(p
, &r
);
525 if (p
->rng_fault_state
) {
526 talloc_free(mem_ctx
);
527 /* Return True here, srv_pipe_hnd.c will take care */
531 if (DEBUGLEVEL
>= 10)
532 NDR_PRINT_OUT_DEBUG(srvsvc_NetCharDevQPurgeSelf
, &r
);
534 push
= ndr_push_init_ctx(mem_ctx
);
536 talloc_free(mem_ctx
);
540 status
= ndr_push_srvsvc_NetCharDevQPurgeSelf(push
, NDR_OUT
, &r
);
541 if (NT_STATUS_IS_ERR(status
)) {
542 talloc_free(mem_ctx
);
546 blob
= ndr_push_blob(push
);
547 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32
)blob
.length
)) {
548 talloc_free(mem_ctx
);
552 talloc_free(mem_ctx
);
557 static BOOL
api_srvsvc_NetConnEnum(pipes_struct
*p
)
559 struct ndr_pull
*pull
;
560 struct ndr_push
*push
;
563 struct srvsvc_NetConnEnum r
;
564 TALLOC_CTX
*mem_ctx
= talloc_init("api_srvsvc_NetConnEnum");
566 if (!prs_data_blob(&p
->in_data
.data
, &blob
, mem_ctx
)) {
567 talloc_free(mem_ctx
);
571 pull
= ndr_pull_init_blob(&blob
, mem_ctx
);
573 talloc_free(mem_ctx
);
577 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
578 status
= ndr_pull_srvsvc_NetConnEnum(pull
, NDR_IN
, &r
);
579 if (NT_STATUS_IS_ERR(status
)) {
580 talloc_free(mem_ctx
);
584 if (DEBUGLEVEL
>= 10)
585 NDR_PRINT_IN_DEBUG(srvsvc_NetConnEnum
, &r
);
588 r
.out
.level
= r
.in
.level
;
589 r
.out
.ctr
= r
.in
.ctr
;
590 r
.out
.totalentries
= talloc_zero(mem_ctx
, uint32_t);
591 if (r
.out
.totalentries
== NULL
) {
592 talloc_free(mem_ctx
);
596 r
.out
.resume_handle
= r
.in
.resume_handle
;
597 r
.out
.result
= _srvsvc_NetConnEnum(p
, &r
);
599 if (p
->rng_fault_state
) {
600 talloc_free(mem_ctx
);
601 /* Return True here, srv_pipe_hnd.c will take care */
605 if (DEBUGLEVEL
>= 10)
606 NDR_PRINT_OUT_DEBUG(srvsvc_NetConnEnum
, &r
);
608 push
= ndr_push_init_ctx(mem_ctx
);
610 talloc_free(mem_ctx
);
614 status
= ndr_push_srvsvc_NetConnEnum(push
, NDR_OUT
, &r
);
615 if (NT_STATUS_IS_ERR(status
)) {
616 talloc_free(mem_ctx
);
620 blob
= ndr_push_blob(push
);
621 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32
)blob
.length
)) {
622 talloc_free(mem_ctx
);
626 talloc_free(mem_ctx
);
631 static BOOL
api_srvsvc_NetFileEnum(pipes_struct
*p
)
633 struct ndr_pull
*pull
;
634 struct ndr_push
*push
;
637 struct srvsvc_NetFileEnum r
;
638 TALLOC_CTX
*mem_ctx
= talloc_init("api_srvsvc_NetFileEnum");
640 if (!prs_data_blob(&p
->in_data
.data
, &blob
, mem_ctx
)) {
641 talloc_free(mem_ctx
);
645 pull
= ndr_pull_init_blob(&blob
, mem_ctx
);
647 talloc_free(mem_ctx
);
651 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
652 status
= ndr_pull_srvsvc_NetFileEnum(pull
, NDR_IN
, &r
);
653 if (NT_STATUS_IS_ERR(status
)) {
654 talloc_free(mem_ctx
);
658 if (DEBUGLEVEL
>= 10)
659 NDR_PRINT_IN_DEBUG(srvsvc_NetFileEnum
, &r
);
662 r
.out
.level
= r
.in
.level
;
663 r
.out
.ctr
= r
.in
.ctr
;
664 r
.out
.totalentries
= talloc_zero(mem_ctx
, uint32_t);
665 if (r
.out
.totalentries
== NULL
) {
666 talloc_free(mem_ctx
);
670 r
.out
.resume_handle
= r
.in
.resume_handle
;
671 r
.out
.result
= _srvsvc_NetFileEnum(p
, &r
);
673 if (p
->rng_fault_state
) {
674 talloc_free(mem_ctx
);
675 /* Return True here, srv_pipe_hnd.c will take care */
679 if (DEBUGLEVEL
>= 10)
680 NDR_PRINT_OUT_DEBUG(srvsvc_NetFileEnum
, &r
);
682 push
= ndr_push_init_ctx(mem_ctx
);
684 talloc_free(mem_ctx
);
688 status
= ndr_push_srvsvc_NetFileEnum(push
, NDR_OUT
, &r
);
689 if (NT_STATUS_IS_ERR(status
)) {
690 talloc_free(mem_ctx
);
694 blob
= ndr_push_blob(push
);
695 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32
)blob
.length
)) {
696 talloc_free(mem_ctx
);
700 talloc_free(mem_ctx
);
705 static BOOL
api_srvsvc_NetFileGetInfo(pipes_struct
*p
)
707 struct ndr_pull
*pull
;
708 struct ndr_push
*push
;
711 struct srvsvc_NetFileGetInfo r
;
712 TALLOC_CTX
*mem_ctx
= talloc_init("api_srvsvc_NetFileGetInfo");
714 if (!prs_data_blob(&p
->in_data
.data
, &blob
, mem_ctx
)) {
715 talloc_free(mem_ctx
);
719 pull
= ndr_pull_init_blob(&blob
, mem_ctx
);
721 talloc_free(mem_ctx
);
725 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
726 status
= ndr_pull_srvsvc_NetFileGetInfo(pull
, NDR_IN
, &r
);
727 if (NT_STATUS_IS_ERR(status
)) {
728 talloc_free(mem_ctx
);
732 if (DEBUGLEVEL
>= 10)
733 NDR_PRINT_IN_DEBUG(srvsvc_NetFileGetInfo
, &r
);
736 r
.out
.info
= talloc_zero(mem_ctx
, union srvsvc_NetFileInfo
);
737 if (r
.out
.info
== NULL
) {
738 talloc_free(mem_ctx
);
742 r
.out
.result
= _srvsvc_NetFileGetInfo(p
, &r
);
744 if (p
->rng_fault_state
) {
745 talloc_free(mem_ctx
);
746 /* Return True here, srv_pipe_hnd.c will take care */
750 if (DEBUGLEVEL
>= 10)
751 NDR_PRINT_OUT_DEBUG(srvsvc_NetFileGetInfo
, &r
);
753 push
= ndr_push_init_ctx(mem_ctx
);
755 talloc_free(mem_ctx
);
759 status
= ndr_push_srvsvc_NetFileGetInfo(push
, NDR_OUT
, &r
);
760 if (NT_STATUS_IS_ERR(status
)) {
761 talloc_free(mem_ctx
);
765 blob
= ndr_push_blob(push
);
766 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32
)blob
.length
)) {
767 talloc_free(mem_ctx
);
771 talloc_free(mem_ctx
);
776 static BOOL
api_srvsvc_NetFileClose(pipes_struct
*p
)
778 struct ndr_pull
*pull
;
779 struct ndr_push
*push
;
782 struct srvsvc_NetFileClose r
;
783 TALLOC_CTX
*mem_ctx
= talloc_init("api_srvsvc_NetFileClose");
785 if (!prs_data_blob(&p
->in_data
.data
, &blob
, mem_ctx
)) {
786 talloc_free(mem_ctx
);
790 pull
= ndr_pull_init_blob(&blob
, mem_ctx
);
792 talloc_free(mem_ctx
);
796 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
797 status
= ndr_pull_srvsvc_NetFileClose(pull
, NDR_IN
, &r
);
798 if (NT_STATUS_IS_ERR(status
)) {
799 talloc_free(mem_ctx
);
803 if (DEBUGLEVEL
>= 10)
804 NDR_PRINT_IN_DEBUG(srvsvc_NetFileClose
, &r
);
806 r
.out
.result
= _srvsvc_NetFileClose(p
, &r
);
808 if (p
->rng_fault_state
) {
809 talloc_free(mem_ctx
);
810 /* Return True here, srv_pipe_hnd.c will take care */
814 if (DEBUGLEVEL
>= 10)
815 NDR_PRINT_OUT_DEBUG(srvsvc_NetFileClose
, &r
);
817 push
= ndr_push_init_ctx(mem_ctx
);
819 talloc_free(mem_ctx
);
823 status
= ndr_push_srvsvc_NetFileClose(push
, NDR_OUT
, &r
);
824 if (NT_STATUS_IS_ERR(status
)) {
825 talloc_free(mem_ctx
);
829 blob
= ndr_push_blob(push
);
830 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32
)blob
.length
)) {
831 talloc_free(mem_ctx
);
835 talloc_free(mem_ctx
);
840 static BOOL
api_srvsvc_NetSessEnum(pipes_struct
*p
)
842 struct ndr_pull
*pull
;
843 struct ndr_push
*push
;
846 struct srvsvc_NetSessEnum r
;
847 TALLOC_CTX
*mem_ctx
= talloc_init("api_srvsvc_NetSessEnum");
849 if (!prs_data_blob(&p
->in_data
.data
, &blob
, mem_ctx
)) {
850 talloc_free(mem_ctx
);
854 pull
= ndr_pull_init_blob(&blob
, mem_ctx
);
856 talloc_free(mem_ctx
);
860 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
861 status
= ndr_pull_srvsvc_NetSessEnum(pull
, NDR_IN
, &r
);
862 if (NT_STATUS_IS_ERR(status
)) {
863 talloc_free(mem_ctx
);
867 if (DEBUGLEVEL
>= 10)
868 NDR_PRINT_IN_DEBUG(srvsvc_NetSessEnum
, &r
);
871 r
.out
.level
= r
.in
.level
;
872 r
.out
.ctr
= r
.in
.ctr
;
873 r
.out
.totalentries
= talloc_zero(mem_ctx
, uint32_t);
874 if (r
.out
.totalentries
== NULL
) {
875 talloc_free(mem_ctx
);
879 r
.out
.resume_handle
= r
.in
.resume_handle
;
880 r
.out
.result
= _srvsvc_NetSessEnum(p
, &r
);
882 if (p
->rng_fault_state
) {
883 talloc_free(mem_ctx
);
884 /* Return True here, srv_pipe_hnd.c will take care */
888 if (DEBUGLEVEL
>= 10)
889 NDR_PRINT_OUT_DEBUG(srvsvc_NetSessEnum
, &r
);
891 push
= ndr_push_init_ctx(mem_ctx
);
893 talloc_free(mem_ctx
);
897 status
= ndr_push_srvsvc_NetSessEnum(push
, NDR_OUT
, &r
);
898 if (NT_STATUS_IS_ERR(status
)) {
899 talloc_free(mem_ctx
);
903 blob
= ndr_push_blob(push
);
904 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32
)blob
.length
)) {
905 talloc_free(mem_ctx
);
909 talloc_free(mem_ctx
);
914 static BOOL
api_srvsvc_NetSessDel(pipes_struct
*p
)
916 struct ndr_pull
*pull
;
917 struct ndr_push
*push
;
920 struct srvsvc_NetSessDel r
;
921 TALLOC_CTX
*mem_ctx
= talloc_init("api_srvsvc_NetSessDel");
923 if (!prs_data_blob(&p
->in_data
.data
, &blob
, mem_ctx
)) {
924 talloc_free(mem_ctx
);
928 pull
= ndr_pull_init_blob(&blob
, mem_ctx
);
930 talloc_free(mem_ctx
);
934 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
935 status
= ndr_pull_srvsvc_NetSessDel(pull
, NDR_IN
, &r
);
936 if (NT_STATUS_IS_ERR(status
)) {
937 talloc_free(mem_ctx
);
941 if (DEBUGLEVEL
>= 10)
942 NDR_PRINT_IN_DEBUG(srvsvc_NetSessDel
, &r
);
944 r
.out
.result
= _srvsvc_NetSessDel(p
, &r
);
946 if (p
->rng_fault_state
) {
947 talloc_free(mem_ctx
);
948 /* Return True here, srv_pipe_hnd.c will take care */
952 if (DEBUGLEVEL
>= 10)
953 NDR_PRINT_OUT_DEBUG(srvsvc_NetSessDel
, &r
);
955 push
= ndr_push_init_ctx(mem_ctx
);
957 talloc_free(mem_ctx
);
961 status
= ndr_push_srvsvc_NetSessDel(push
, NDR_OUT
, &r
);
962 if (NT_STATUS_IS_ERR(status
)) {
963 talloc_free(mem_ctx
);
967 blob
= ndr_push_blob(push
);
968 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32
)blob
.length
)) {
969 talloc_free(mem_ctx
);
973 talloc_free(mem_ctx
);
978 static BOOL
api_srvsvc_NetShareAdd(pipes_struct
*p
)
980 struct ndr_pull
*pull
;
981 struct ndr_push
*push
;
984 struct srvsvc_NetShareAdd r
;
985 TALLOC_CTX
*mem_ctx
= talloc_init("api_srvsvc_NetShareAdd");
987 if (!prs_data_blob(&p
->in_data
.data
, &blob
, mem_ctx
)) {
988 talloc_free(mem_ctx
);
992 pull
= ndr_pull_init_blob(&blob
, mem_ctx
);
994 talloc_free(mem_ctx
);
998 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
999 status
= ndr_pull_srvsvc_NetShareAdd(pull
, NDR_IN
, &r
);
1000 if (NT_STATUS_IS_ERR(status
)) {
1001 talloc_free(mem_ctx
);
1005 if (DEBUGLEVEL
>= 10)
1006 NDR_PRINT_IN_DEBUG(srvsvc_NetShareAdd
, &r
);
1009 r
.out
.parm_error
= r
.in
.parm_error
;
1010 r
.out
.result
= _srvsvc_NetShareAdd(p
, &r
);
1012 if (p
->rng_fault_state
) {
1013 talloc_free(mem_ctx
);
1014 /* Return True here, srv_pipe_hnd.c will take care */
1018 if (DEBUGLEVEL
>= 10)
1019 NDR_PRINT_OUT_DEBUG(srvsvc_NetShareAdd
, &r
);
1021 push
= ndr_push_init_ctx(mem_ctx
);
1023 talloc_free(mem_ctx
);
1027 status
= ndr_push_srvsvc_NetShareAdd(push
, NDR_OUT
, &r
);
1028 if (NT_STATUS_IS_ERR(status
)) {
1029 talloc_free(mem_ctx
);
1033 blob
= ndr_push_blob(push
);
1034 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32
)blob
.length
)) {
1035 talloc_free(mem_ctx
);
1039 talloc_free(mem_ctx
);
1044 static BOOL
api_srvsvc_NetShareEnumAll(pipes_struct
*p
)
1046 struct ndr_pull
*pull
;
1047 struct ndr_push
*push
;
1050 struct srvsvc_NetShareEnumAll r
;
1051 TALLOC_CTX
*mem_ctx
= talloc_init("api_srvsvc_NetShareEnumAll");
1053 if (!prs_data_blob(&p
->in_data
.data
, &blob
, mem_ctx
)) {
1054 talloc_free(mem_ctx
);
1058 pull
= ndr_pull_init_blob(&blob
, mem_ctx
);
1060 talloc_free(mem_ctx
);
1064 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
1065 status
= ndr_pull_srvsvc_NetShareEnumAll(pull
, NDR_IN
, &r
);
1066 if (NT_STATUS_IS_ERR(status
)) {
1067 talloc_free(mem_ctx
);
1071 if (DEBUGLEVEL
>= 10)
1072 NDR_PRINT_IN_DEBUG(srvsvc_NetShareEnumAll
, &r
);
1075 r
.out
.level
= r
.in
.level
;
1076 r
.out
.ctr
= r
.in
.ctr
;
1077 r
.out
.totalentries
= talloc_zero(mem_ctx
, uint32_t);
1078 if (r
.out
.totalentries
== NULL
) {
1079 talloc_free(mem_ctx
);
1083 r
.out
.resume_handle
= r
.in
.resume_handle
;
1084 r
.out
.result
= _srvsvc_NetShareEnumAll(p
, &r
);
1086 if (p
->rng_fault_state
) {
1087 talloc_free(mem_ctx
);
1088 /* Return True here, srv_pipe_hnd.c will take care */
1092 if (DEBUGLEVEL
>= 10)
1093 NDR_PRINT_OUT_DEBUG(srvsvc_NetShareEnumAll
, &r
);
1095 push
= ndr_push_init_ctx(mem_ctx
);
1097 talloc_free(mem_ctx
);
1101 status
= ndr_push_srvsvc_NetShareEnumAll(push
, NDR_OUT
, &r
);
1102 if (NT_STATUS_IS_ERR(status
)) {
1103 talloc_free(mem_ctx
);
1107 blob
= ndr_push_blob(push
);
1108 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32
)blob
.length
)) {
1109 talloc_free(mem_ctx
);
1113 talloc_free(mem_ctx
);
1118 static BOOL
api_srvsvc_NetShareGetInfo(pipes_struct
*p
)
1120 struct ndr_pull
*pull
;
1121 struct ndr_push
*push
;
1124 struct srvsvc_NetShareGetInfo r
;
1125 TALLOC_CTX
*mem_ctx
= talloc_init("api_srvsvc_NetShareGetInfo");
1127 if (!prs_data_blob(&p
->in_data
.data
, &blob
, mem_ctx
)) {
1128 talloc_free(mem_ctx
);
1132 pull
= ndr_pull_init_blob(&blob
, mem_ctx
);
1134 talloc_free(mem_ctx
);
1138 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
1139 status
= ndr_pull_srvsvc_NetShareGetInfo(pull
, NDR_IN
, &r
);
1140 if (NT_STATUS_IS_ERR(status
)) {
1141 talloc_free(mem_ctx
);
1145 if (DEBUGLEVEL
>= 10)
1146 NDR_PRINT_IN_DEBUG(srvsvc_NetShareGetInfo
, &r
);
1149 r
.out
.info
= talloc_zero(mem_ctx
, union srvsvc_NetShareInfo
);
1150 if (r
.out
.info
== NULL
) {
1151 talloc_free(mem_ctx
);
1155 r
.out
.result
= _srvsvc_NetShareGetInfo(p
, &r
);
1157 if (p
->rng_fault_state
) {
1158 talloc_free(mem_ctx
);
1159 /* Return True here, srv_pipe_hnd.c will take care */
1163 if (DEBUGLEVEL
>= 10)
1164 NDR_PRINT_OUT_DEBUG(srvsvc_NetShareGetInfo
, &r
);
1166 push
= ndr_push_init_ctx(mem_ctx
);
1168 talloc_free(mem_ctx
);
1172 status
= ndr_push_srvsvc_NetShareGetInfo(push
, NDR_OUT
, &r
);
1173 if (NT_STATUS_IS_ERR(status
)) {
1174 talloc_free(mem_ctx
);
1178 blob
= ndr_push_blob(push
);
1179 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32
)blob
.length
)) {
1180 talloc_free(mem_ctx
);
1184 talloc_free(mem_ctx
);
1189 static BOOL
api_srvsvc_NetShareSetInfo(pipes_struct
*p
)
1191 struct ndr_pull
*pull
;
1192 struct ndr_push
*push
;
1195 struct srvsvc_NetShareSetInfo r
;
1196 TALLOC_CTX
*mem_ctx
= talloc_init("api_srvsvc_NetShareSetInfo");
1198 if (!prs_data_blob(&p
->in_data
.data
, &blob
, mem_ctx
)) {
1199 talloc_free(mem_ctx
);
1203 pull
= ndr_pull_init_blob(&blob
, mem_ctx
);
1205 talloc_free(mem_ctx
);
1209 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
1210 status
= ndr_pull_srvsvc_NetShareSetInfo(pull
, NDR_IN
, &r
);
1211 if (NT_STATUS_IS_ERR(status
)) {
1212 talloc_free(mem_ctx
);
1216 if (DEBUGLEVEL
>= 10)
1217 NDR_PRINT_IN_DEBUG(srvsvc_NetShareSetInfo
, &r
);
1220 r
.out
.parm_error
= r
.in
.parm_error
;
1221 r
.out
.result
= _srvsvc_NetShareSetInfo(p
, &r
);
1223 if (p
->rng_fault_state
) {
1224 talloc_free(mem_ctx
);
1225 /* Return True here, srv_pipe_hnd.c will take care */
1229 if (DEBUGLEVEL
>= 10)
1230 NDR_PRINT_OUT_DEBUG(srvsvc_NetShareSetInfo
, &r
);
1232 push
= ndr_push_init_ctx(mem_ctx
);
1234 talloc_free(mem_ctx
);
1238 status
= ndr_push_srvsvc_NetShareSetInfo(push
, NDR_OUT
, &r
);
1239 if (NT_STATUS_IS_ERR(status
)) {
1240 talloc_free(mem_ctx
);
1244 blob
= ndr_push_blob(push
);
1245 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32
)blob
.length
)) {
1246 talloc_free(mem_ctx
);
1250 talloc_free(mem_ctx
);
1255 static BOOL
api_srvsvc_NetShareDel(pipes_struct
*p
)
1257 struct ndr_pull
*pull
;
1258 struct ndr_push
*push
;
1261 struct srvsvc_NetShareDel r
;
1262 TALLOC_CTX
*mem_ctx
= talloc_init("api_srvsvc_NetShareDel");
1264 if (!prs_data_blob(&p
->in_data
.data
, &blob
, mem_ctx
)) {
1265 talloc_free(mem_ctx
);
1269 pull
= ndr_pull_init_blob(&blob
, mem_ctx
);
1271 talloc_free(mem_ctx
);
1275 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
1276 status
= ndr_pull_srvsvc_NetShareDel(pull
, NDR_IN
, &r
);
1277 if (NT_STATUS_IS_ERR(status
)) {
1278 talloc_free(mem_ctx
);
1282 if (DEBUGLEVEL
>= 10)
1283 NDR_PRINT_IN_DEBUG(srvsvc_NetShareDel
, &r
);
1285 r
.out
.result
= _srvsvc_NetShareDel(p
, &r
);
1287 if (p
->rng_fault_state
) {
1288 talloc_free(mem_ctx
);
1289 /* Return True here, srv_pipe_hnd.c will take care */
1293 if (DEBUGLEVEL
>= 10)
1294 NDR_PRINT_OUT_DEBUG(srvsvc_NetShareDel
, &r
);
1296 push
= ndr_push_init_ctx(mem_ctx
);
1298 talloc_free(mem_ctx
);
1302 status
= ndr_push_srvsvc_NetShareDel(push
, NDR_OUT
, &r
);
1303 if (NT_STATUS_IS_ERR(status
)) {
1304 talloc_free(mem_ctx
);
1308 blob
= ndr_push_blob(push
);
1309 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32
)blob
.length
)) {
1310 talloc_free(mem_ctx
);
1314 talloc_free(mem_ctx
);
1319 static BOOL
api_srvsvc_NetShareDelSticky(pipes_struct
*p
)
1321 struct ndr_pull
*pull
;
1322 struct ndr_push
*push
;
1325 struct srvsvc_NetShareDelSticky r
;
1326 TALLOC_CTX
*mem_ctx
= talloc_init("api_srvsvc_NetShareDelSticky");
1328 if (!prs_data_blob(&p
->in_data
.data
, &blob
, mem_ctx
)) {
1329 talloc_free(mem_ctx
);
1333 pull
= ndr_pull_init_blob(&blob
, mem_ctx
);
1335 talloc_free(mem_ctx
);
1339 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
1340 status
= ndr_pull_srvsvc_NetShareDelSticky(pull
, NDR_IN
, &r
);
1341 if (NT_STATUS_IS_ERR(status
)) {
1342 talloc_free(mem_ctx
);
1346 if (DEBUGLEVEL
>= 10)
1347 NDR_PRINT_IN_DEBUG(srvsvc_NetShareDelSticky
, &r
);
1349 r
.out
.result
= _srvsvc_NetShareDelSticky(p
, &r
);
1351 if (p
->rng_fault_state
) {
1352 talloc_free(mem_ctx
);
1353 /* Return True here, srv_pipe_hnd.c will take care */
1357 if (DEBUGLEVEL
>= 10)
1358 NDR_PRINT_OUT_DEBUG(srvsvc_NetShareDelSticky
, &r
);
1360 push
= ndr_push_init_ctx(mem_ctx
);
1362 talloc_free(mem_ctx
);
1366 status
= ndr_push_srvsvc_NetShareDelSticky(push
, NDR_OUT
, &r
);
1367 if (NT_STATUS_IS_ERR(status
)) {
1368 talloc_free(mem_ctx
);
1372 blob
= ndr_push_blob(push
);
1373 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32
)blob
.length
)) {
1374 talloc_free(mem_ctx
);
1378 talloc_free(mem_ctx
);
1383 static BOOL
api_srvsvc_NetShareCheck(pipes_struct
*p
)
1385 struct ndr_pull
*pull
;
1386 struct ndr_push
*push
;
1389 struct srvsvc_NetShareCheck r
;
1390 TALLOC_CTX
*mem_ctx
= talloc_init("api_srvsvc_NetShareCheck");
1392 if (!prs_data_blob(&p
->in_data
.data
, &blob
, mem_ctx
)) {
1393 talloc_free(mem_ctx
);
1397 pull
= ndr_pull_init_blob(&blob
, mem_ctx
);
1399 talloc_free(mem_ctx
);
1403 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
1404 status
= ndr_pull_srvsvc_NetShareCheck(pull
, NDR_IN
, &r
);
1405 if (NT_STATUS_IS_ERR(status
)) {
1406 talloc_free(mem_ctx
);
1410 if (DEBUGLEVEL
>= 10)
1411 NDR_PRINT_IN_DEBUG(srvsvc_NetShareCheck
, &r
);
1414 r
.out
.type
= talloc_zero(mem_ctx
, enum srvsvc_ShareType
);
1415 if (r
.out
.type
== NULL
) {
1416 talloc_free(mem_ctx
);
1420 r
.out
.result
= _srvsvc_NetShareCheck(p
, &r
);
1422 if (p
->rng_fault_state
) {
1423 talloc_free(mem_ctx
);
1424 /* Return True here, srv_pipe_hnd.c will take care */
1428 if (DEBUGLEVEL
>= 10)
1429 NDR_PRINT_OUT_DEBUG(srvsvc_NetShareCheck
, &r
);
1431 push
= ndr_push_init_ctx(mem_ctx
);
1433 talloc_free(mem_ctx
);
1437 status
= ndr_push_srvsvc_NetShareCheck(push
, NDR_OUT
, &r
);
1438 if (NT_STATUS_IS_ERR(status
)) {
1439 talloc_free(mem_ctx
);
1443 blob
= ndr_push_blob(push
);
1444 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32
)blob
.length
)) {
1445 talloc_free(mem_ctx
);
1449 talloc_free(mem_ctx
);
1454 static BOOL
api_srvsvc_NetSrvGetInfo(pipes_struct
*p
)
1456 struct ndr_pull
*pull
;
1457 struct ndr_push
*push
;
1460 struct srvsvc_NetSrvGetInfo r
;
1461 TALLOC_CTX
*mem_ctx
= talloc_init("api_srvsvc_NetSrvGetInfo");
1463 if (!prs_data_blob(&p
->in_data
.data
, &blob
, mem_ctx
)) {
1464 talloc_free(mem_ctx
);
1468 pull
= ndr_pull_init_blob(&blob
, mem_ctx
);
1470 talloc_free(mem_ctx
);
1474 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
1475 status
= ndr_pull_srvsvc_NetSrvGetInfo(pull
, NDR_IN
, &r
);
1476 if (NT_STATUS_IS_ERR(status
)) {
1477 talloc_free(mem_ctx
);
1481 if (DEBUGLEVEL
>= 10)
1482 NDR_PRINT_IN_DEBUG(srvsvc_NetSrvGetInfo
, &r
);
1485 r
.out
.info
= talloc_zero(mem_ctx
, union srvsvc_NetSrvInfo
);
1486 if (r
.out
.info
== NULL
) {
1487 talloc_free(mem_ctx
);
1491 r
.out
.result
= _srvsvc_NetSrvGetInfo(p
, &r
);
1493 if (p
->rng_fault_state
) {
1494 talloc_free(mem_ctx
);
1495 /* Return True here, srv_pipe_hnd.c will take care */
1499 if (DEBUGLEVEL
>= 10)
1500 NDR_PRINT_OUT_DEBUG(srvsvc_NetSrvGetInfo
, &r
);
1502 push
= ndr_push_init_ctx(mem_ctx
);
1504 talloc_free(mem_ctx
);
1508 status
= ndr_push_srvsvc_NetSrvGetInfo(push
, NDR_OUT
, &r
);
1509 if (NT_STATUS_IS_ERR(status
)) {
1510 talloc_free(mem_ctx
);
1514 blob
= ndr_push_blob(push
);
1515 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32
)blob
.length
)) {
1516 talloc_free(mem_ctx
);
1520 talloc_free(mem_ctx
);
1525 static BOOL
api_srvsvc_NetSrvSetInfo(pipes_struct
*p
)
1527 struct ndr_pull
*pull
;
1528 struct ndr_push
*push
;
1531 struct srvsvc_NetSrvSetInfo r
;
1532 TALLOC_CTX
*mem_ctx
= talloc_init("api_srvsvc_NetSrvSetInfo");
1534 if (!prs_data_blob(&p
->in_data
.data
, &blob
, mem_ctx
)) {
1535 talloc_free(mem_ctx
);
1539 pull
= ndr_pull_init_blob(&blob
, mem_ctx
);
1541 talloc_free(mem_ctx
);
1545 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
1546 status
= ndr_pull_srvsvc_NetSrvSetInfo(pull
, NDR_IN
, &r
);
1547 if (NT_STATUS_IS_ERR(status
)) {
1548 talloc_free(mem_ctx
);
1552 if (DEBUGLEVEL
>= 10)
1553 NDR_PRINT_IN_DEBUG(srvsvc_NetSrvSetInfo
, &r
);
1556 r
.out
.parm_error
= r
.in
.parm_error
;
1557 r
.out
.result
= _srvsvc_NetSrvSetInfo(p
, &r
);
1559 if (p
->rng_fault_state
) {
1560 talloc_free(mem_ctx
);
1561 /* Return True here, srv_pipe_hnd.c will take care */
1565 if (DEBUGLEVEL
>= 10)
1566 NDR_PRINT_OUT_DEBUG(srvsvc_NetSrvSetInfo
, &r
);
1568 push
= ndr_push_init_ctx(mem_ctx
);
1570 talloc_free(mem_ctx
);
1574 status
= ndr_push_srvsvc_NetSrvSetInfo(push
, NDR_OUT
, &r
);
1575 if (NT_STATUS_IS_ERR(status
)) {
1576 talloc_free(mem_ctx
);
1580 blob
= ndr_push_blob(push
);
1581 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32
)blob
.length
)) {
1582 talloc_free(mem_ctx
);
1586 talloc_free(mem_ctx
);
1591 static BOOL
api_srvsvc_NetDiskEnum(pipes_struct
*p
)
1593 struct ndr_pull
*pull
;
1594 struct ndr_push
*push
;
1597 struct srvsvc_NetDiskEnum r
;
1598 TALLOC_CTX
*mem_ctx
= talloc_init("api_srvsvc_NetDiskEnum");
1600 if (!prs_data_blob(&p
->in_data
.data
, &blob
, mem_ctx
)) {
1601 talloc_free(mem_ctx
);
1605 pull
= ndr_pull_init_blob(&blob
, mem_ctx
);
1607 talloc_free(mem_ctx
);
1611 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
1612 status
= ndr_pull_srvsvc_NetDiskEnum(pull
, NDR_IN
, &r
);
1613 if (NT_STATUS_IS_ERR(status
)) {
1614 talloc_free(mem_ctx
);
1618 if (DEBUGLEVEL
>= 10)
1619 NDR_PRINT_IN_DEBUG(srvsvc_NetDiskEnum
, &r
);
1622 r
.out
.info
= r
.in
.info
;
1623 r
.out
.totalentries
= talloc_zero(mem_ctx
, uint32_t);
1624 if (r
.out
.totalentries
== NULL
) {
1625 talloc_free(mem_ctx
);
1629 r
.out
.resume_handle
= r
.in
.resume_handle
;
1630 r
.out
.result
= _srvsvc_NetDiskEnum(p
, &r
);
1632 if (p
->rng_fault_state
) {
1633 talloc_free(mem_ctx
);
1634 /* Return True here, srv_pipe_hnd.c will take care */
1638 if (DEBUGLEVEL
>= 10)
1639 NDR_PRINT_OUT_DEBUG(srvsvc_NetDiskEnum
, &r
);
1641 push
= ndr_push_init_ctx(mem_ctx
);
1643 talloc_free(mem_ctx
);
1647 status
= ndr_push_srvsvc_NetDiskEnum(push
, NDR_OUT
, &r
);
1648 if (NT_STATUS_IS_ERR(status
)) {
1649 talloc_free(mem_ctx
);
1653 blob
= ndr_push_blob(push
);
1654 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32
)blob
.length
)) {
1655 talloc_free(mem_ctx
);
1659 talloc_free(mem_ctx
);
1664 static BOOL
api_srvsvc_NetServerStatisticsGet(pipes_struct
*p
)
1666 struct ndr_pull
*pull
;
1667 struct ndr_push
*push
;
1670 struct srvsvc_NetServerStatisticsGet r
;
1671 TALLOC_CTX
*mem_ctx
= talloc_init("api_srvsvc_NetServerStatisticsGet");
1673 if (!prs_data_blob(&p
->in_data
.data
, &blob
, mem_ctx
)) {
1674 talloc_free(mem_ctx
);
1678 pull
= ndr_pull_init_blob(&blob
, mem_ctx
);
1680 talloc_free(mem_ctx
);
1684 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
1685 status
= ndr_pull_srvsvc_NetServerStatisticsGet(pull
, NDR_IN
, &r
);
1686 if (NT_STATUS_IS_ERR(status
)) {
1687 talloc_free(mem_ctx
);
1691 if (DEBUGLEVEL
>= 10)
1692 NDR_PRINT_IN_DEBUG(srvsvc_NetServerStatisticsGet
, &r
);
1695 r
.out
.stats
= talloc_zero(mem_ctx
, struct srvsvc_Statistics
);
1696 if (r
.out
.stats
== NULL
) {
1697 talloc_free(mem_ctx
);
1701 r
.out
.result
= _srvsvc_NetServerStatisticsGet(p
, &r
);
1703 if (p
->rng_fault_state
) {
1704 talloc_free(mem_ctx
);
1705 /* Return True here, srv_pipe_hnd.c will take care */
1709 if (DEBUGLEVEL
>= 10)
1710 NDR_PRINT_OUT_DEBUG(srvsvc_NetServerStatisticsGet
, &r
);
1712 push
= ndr_push_init_ctx(mem_ctx
);
1714 talloc_free(mem_ctx
);
1718 status
= ndr_push_srvsvc_NetServerStatisticsGet(push
, NDR_OUT
, &r
);
1719 if (NT_STATUS_IS_ERR(status
)) {
1720 talloc_free(mem_ctx
);
1724 blob
= ndr_push_blob(push
);
1725 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32
)blob
.length
)) {
1726 talloc_free(mem_ctx
);
1730 talloc_free(mem_ctx
);
1735 static BOOL
api_srvsvc_NetTransportAdd(pipes_struct
*p
)
1737 struct ndr_pull
*pull
;
1738 struct ndr_push
*push
;
1741 struct srvsvc_NetTransportAdd r
;
1742 TALLOC_CTX
*mem_ctx
= talloc_init("api_srvsvc_NetTransportAdd");
1744 if (!prs_data_blob(&p
->in_data
.data
, &blob
, mem_ctx
)) {
1745 talloc_free(mem_ctx
);
1749 pull
= ndr_pull_init_blob(&blob
, mem_ctx
);
1751 talloc_free(mem_ctx
);
1755 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
1756 status
= ndr_pull_srvsvc_NetTransportAdd(pull
, NDR_IN
, &r
);
1757 if (NT_STATUS_IS_ERR(status
)) {
1758 talloc_free(mem_ctx
);
1762 if (DEBUGLEVEL
>= 10)
1763 NDR_PRINT_IN_DEBUG(srvsvc_NetTransportAdd
, &r
);
1765 r
.out
.result
= _srvsvc_NetTransportAdd(p
, &r
);
1767 if (p
->rng_fault_state
) {
1768 talloc_free(mem_ctx
);
1769 /* Return True here, srv_pipe_hnd.c will take care */
1773 if (DEBUGLEVEL
>= 10)
1774 NDR_PRINT_OUT_DEBUG(srvsvc_NetTransportAdd
, &r
);
1776 push
= ndr_push_init_ctx(mem_ctx
);
1778 talloc_free(mem_ctx
);
1782 status
= ndr_push_srvsvc_NetTransportAdd(push
, NDR_OUT
, &r
);
1783 if (NT_STATUS_IS_ERR(status
)) {
1784 talloc_free(mem_ctx
);
1788 blob
= ndr_push_blob(push
);
1789 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32
)blob
.length
)) {
1790 talloc_free(mem_ctx
);
1794 talloc_free(mem_ctx
);
1799 static BOOL
api_srvsvc_NetTransportEnum(pipes_struct
*p
)
1801 struct ndr_pull
*pull
;
1802 struct ndr_push
*push
;
1805 struct srvsvc_NetTransportEnum r
;
1806 TALLOC_CTX
*mem_ctx
= talloc_init("api_srvsvc_NetTransportEnum");
1808 if (!prs_data_blob(&p
->in_data
.data
, &blob
, mem_ctx
)) {
1809 talloc_free(mem_ctx
);
1813 pull
= ndr_pull_init_blob(&blob
, mem_ctx
);
1815 talloc_free(mem_ctx
);
1819 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
1820 status
= ndr_pull_srvsvc_NetTransportEnum(pull
, NDR_IN
, &r
);
1821 if (NT_STATUS_IS_ERR(status
)) {
1822 talloc_free(mem_ctx
);
1826 if (DEBUGLEVEL
>= 10)
1827 NDR_PRINT_IN_DEBUG(srvsvc_NetTransportEnum
, &r
);
1830 r
.out
.level
= r
.in
.level
;
1831 r
.out
.transports
= r
.in
.transports
;
1832 r
.out
.totalentries
= talloc_zero(mem_ctx
, uint32_t);
1833 if (r
.out
.totalentries
== NULL
) {
1834 talloc_free(mem_ctx
);
1838 r
.out
.resume_handle
= r
.in
.resume_handle
;
1839 r
.out
.result
= _srvsvc_NetTransportEnum(p
, &r
);
1841 if (p
->rng_fault_state
) {
1842 talloc_free(mem_ctx
);
1843 /* Return True here, srv_pipe_hnd.c will take care */
1847 if (DEBUGLEVEL
>= 10)
1848 NDR_PRINT_OUT_DEBUG(srvsvc_NetTransportEnum
, &r
);
1850 push
= ndr_push_init_ctx(mem_ctx
);
1852 talloc_free(mem_ctx
);
1856 status
= ndr_push_srvsvc_NetTransportEnum(push
, NDR_OUT
, &r
);
1857 if (NT_STATUS_IS_ERR(status
)) {
1858 talloc_free(mem_ctx
);
1862 blob
= ndr_push_blob(push
);
1863 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32
)blob
.length
)) {
1864 talloc_free(mem_ctx
);
1868 talloc_free(mem_ctx
);
1873 static BOOL
api_srvsvc_NetTransportDel(pipes_struct
*p
)
1875 struct ndr_pull
*pull
;
1876 struct ndr_push
*push
;
1879 struct srvsvc_NetTransportDel r
;
1880 TALLOC_CTX
*mem_ctx
= talloc_init("api_srvsvc_NetTransportDel");
1882 if (!prs_data_blob(&p
->in_data
.data
, &blob
, mem_ctx
)) {
1883 talloc_free(mem_ctx
);
1887 pull
= ndr_pull_init_blob(&blob
, mem_ctx
);
1889 talloc_free(mem_ctx
);
1893 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
1894 status
= ndr_pull_srvsvc_NetTransportDel(pull
, NDR_IN
, &r
);
1895 if (NT_STATUS_IS_ERR(status
)) {
1896 talloc_free(mem_ctx
);
1900 if (DEBUGLEVEL
>= 10)
1901 NDR_PRINT_IN_DEBUG(srvsvc_NetTransportDel
, &r
);
1903 r
.out
.result
= _srvsvc_NetTransportDel(p
, &r
);
1905 if (p
->rng_fault_state
) {
1906 talloc_free(mem_ctx
);
1907 /* Return True here, srv_pipe_hnd.c will take care */
1911 if (DEBUGLEVEL
>= 10)
1912 NDR_PRINT_OUT_DEBUG(srvsvc_NetTransportDel
, &r
);
1914 push
= ndr_push_init_ctx(mem_ctx
);
1916 talloc_free(mem_ctx
);
1920 status
= ndr_push_srvsvc_NetTransportDel(push
, NDR_OUT
, &r
);
1921 if (NT_STATUS_IS_ERR(status
)) {
1922 talloc_free(mem_ctx
);
1926 blob
= ndr_push_blob(push
);
1927 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32
)blob
.length
)) {
1928 talloc_free(mem_ctx
);
1932 talloc_free(mem_ctx
);
1937 static BOOL
api_srvsvc_NetRemoteTOD(pipes_struct
*p
)
1939 struct ndr_pull
*pull
;
1940 struct ndr_push
*push
;
1943 struct srvsvc_NetRemoteTOD r
;
1944 TALLOC_CTX
*mem_ctx
= talloc_init("api_srvsvc_NetRemoteTOD");
1946 if (!prs_data_blob(&p
->in_data
.data
, &blob
, mem_ctx
)) {
1947 talloc_free(mem_ctx
);
1951 pull
= ndr_pull_init_blob(&blob
, mem_ctx
);
1953 talloc_free(mem_ctx
);
1957 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
1958 status
= ndr_pull_srvsvc_NetRemoteTOD(pull
, NDR_IN
, &r
);
1959 if (NT_STATUS_IS_ERR(status
)) {
1960 talloc_free(mem_ctx
);
1964 if (DEBUGLEVEL
>= 10)
1965 NDR_PRINT_IN_DEBUG(srvsvc_NetRemoteTOD
, &r
);
1968 r
.out
.info
= talloc_zero(mem_ctx
, struct srvsvc_NetRemoteTODInfo
);
1969 if (r
.out
.info
== NULL
) {
1970 talloc_free(mem_ctx
);
1974 r
.out
.result
= _srvsvc_NetRemoteTOD(p
, &r
);
1976 if (p
->rng_fault_state
) {
1977 talloc_free(mem_ctx
);
1978 /* Return True here, srv_pipe_hnd.c will take care */
1982 if (DEBUGLEVEL
>= 10)
1983 NDR_PRINT_OUT_DEBUG(srvsvc_NetRemoteTOD
, &r
);
1985 push
= ndr_push_init_ctx(mem_ctx
);
1987 talloc_free(mem_ctx
);
1991 status
= ndr_push_srvsvc_NetRemoteTOD(push
, NDR_OUT
, &r
);
1992 if (NT_STATUS_IS_ERR(status
)) {
1993 talloc_free(mem_ctx
);
1997 blob
= ndr_push_blob(push
);
1998 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32
)blob
.length
)) {
1999 talloc_free(mem_ctx
);
2003 talloc_free(mem_ctx
);
2008 static BOOL
api_srvsvc_NetSetServiceBits(pipes_struct
*p
)
2010 struct ndr_pull
*pull
;
2011 struct ndr_push
*push
;
2014 struct srvsvc_NetSetServiceBits r
;
2015 TALLOC_CTX
*mem_ctx
= talloc_init("api_srvsvc_NetSetServiceBits");
2017 if (!prs_data_blob(&p
->in_data
.data
, &blob
, mem_ctx
)) {
2018 talloc_free(mem_ctx
);
2022 pull
= ndr_pull_init_blob(&blob
, mem_ctx
);
2024 talloc_free(mem_ctx
);
2028 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
2029 status
= ndr_pull_srvsvc_NetSetServiceBits(pull
, NDR_IN
, &r
);
2030 if (NT_STATUS_IS_ERR(status
)) {
2031 talloc_free(mem_ctx
);
2035 if (DEBUGLEVEL
>= 10)
2036 NDR_PRINT_IN_DEBUG(srvsvc_NetSetServiceBits
, &r
);
2038 r
.out
.result
= _srvsvc_NetSetServiceBits(p
, &r
);
2040 if (p
->rng_fault_state
) {
2041 talloc_free(mem_ctx
);
2042 /* Return True here, srv_pipe_hnd.c will take care */
2046 if (DEBUGLEVEL
>= 10)
2047 NDR_PRINT_OUT_DEBUG(srvsvc_NetSetServiceBits
, &r
);
2049 push
= ndr_push_init_ctx(mem_ctx
);
2051 talloc_free(mem_ctx
);
2055 status
= ndr_push_srvsvc_NetSetServiceBits(push
, NDR_OUT
, &r
);
2056 if (NT_STATUS_IS_ERR(status
)) {
2057 talloc_free(mem_ctx
);
2061 blob
= ndr_push_blob(push
);
2062 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32
)blob
.length
)) {
2063 talloc_free(mem_ctx
);
2067 talloc_free(mem_ctx
);
2072 static BOOL
api_srvsvc_NetPathType(pipes_struct
*p
)
2074 struct ndr_pull
*pull
;
2075 struct ndr_push
*push
;
2078 struct srvsvc_NetPathType r
;
2079 TALLOC_CTX
*mem_ctx
= talloc_init("api_srvsvc_NetPathType");
2081 if (!prs_data_blob(&p
->in_data
.data
, &blob
, mem_ctx
)) {
2082 talloc_free(mem_ctx
);
2086 pull
= ndr_pull_init_blob(&blob
, mem_ctx
);
2088 talloc_free(mem_ctx
);
2092 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
2093 status
= ndr_pull_srvsvc_NetPathType(pull
, NDR_IN
, &r
);
2094 if (NT_STATUS_IS_ERR(status
)) {
2095 talloc_free(mem_ctx
);
2099 if (DEBUGLEVEL
>= 10)
2100 NDR_PRINT_IN_DEBUG(srvsvc_NetPathType
, &r
);
2103 r
.out
.pathtype
= talloc_zero(mem_ctx
, uint32_t);
2104 if (r
.out
.pathtype
== NULL
) {
2105 talloc_free(mem_ctx
);
2109 r
.out
.result
= _srvsvc_NetPathType(p
, &r
);
2111 if (p
->rng_fault_state
) {
2112 talloc_free(mem_ctx
);
2113 /* Return True here, srv_pipe_hnd.c will take care */
2117 if (DEBUGLEVEL
>= 10)
2118 NDR_PRINT_OUT_DEBUG(srvsvc_NetPathType
, &r
);
2120 push
= ndr_push_init_ctx(mem_ctx
);
2122 talloc_free(mem_ctx
);
2126 status
= ndr_push_srvsvc_NetPathType(push
, NDR_OUT
, &r
);
2127 if (NT_STATUS_IS_ERR(status
)) {
2128 talloc_free(mem_ctx
);
2132 blob
= ndr_push_blob(push
);
2133 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32
)blob
.length
)) {
2134 talloc_free(mem_ctx
);
2138 talloc_free(mem_ctx
);
2143 static BOOL
api_srvsvc_NetPathCanonicalize(pipes_struct
*p
)
2145 struct ndr_pull
*pull
;
2146 struct ndr_push
*push
;
2149 struct srvsvc_NetPathCanonicalize r
;
2150 TALLOC_CTX
*mem_ctx
= talloc_init("api_srvsvc_NetPathCanonicalize");
2152 if (!prs_data_blob(&p
->in_data
.data
, &blob
, mem_ctx
)) {
2153 talloc_free(mem_ctx
);
2157 pull
= ndr_pull_init_blob(&blob
, mem_ctx
);
2159 talloc_free(mem_ctx
);
2163 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
2164 status
= ndr_pull_srvsvc_NetPathCanonicalize(pull
, NDR_IN
, &r
);
2165 if (NT_STATUS_IS_ERR(status
)) {
2166 talloc_free(mem_ctx
);
2170 if (DEBUGLEVEL
>= 10)
2171 NDR_PRINT_IN_DEBUG(srvsvc_NetPathCanonicalize
, &r
);
2174 r
.out
.can_path
= talloc_zero_array(mem_ctx
, uint8_t, r
.in
.maxbuf
);
2175 if (r
.out
.can_path
== NULL
) {
2176 talloc_free(mem_ctx
);
2180 r
.out
.pathtype
= r
.in
.pathtype
;
2181 r
.out
.result
= _srvsvc_NetPathCanonicalize(p
, &r
);
2183 if (p
->rng_fault_state
) {
2184 talloc_free(mem_ctx
);
2185 /* Return True here, srv_pipe_hnd.c will take care */
2189 if (DEBUGLEVEL
>= 10)
2190 NDR_PRINT_OUT_DEBUG(srvsvc_NetPathCanonicalize
, &r
);
2192 push
= ndr_push_init_ctx(mem_ctx
);
2194 talloc_free(mem_ctx
);
2198 status
= ndr_push_srvsvc_NetPathCanonicalize(push
, NDR_OUT
, &r
);
2199 if (NT_STATUS_IS_ERR(status
)) {
2200 talloc_free(mem_ctx
);
2204 blob
= ndr_push_blob(push
);
2205 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32
)blob
.length
)) {
2206 talloc_free(mem_ctx
);
2210 talloc_free(mem_ctx
);
2215 static BOOL
api_srvsvc_NetPathCompare(pipes_struct
*p
)
2217 struct ndr_pull
*pull
;
2218 struct ndr_push
*push
;
2221 struct srvsvc_NetPathCompare r
;
2222 TALLOC_CTX
*mem_ctx
= talloc_init("api_srvsvc_NetPathCompare");
2224 if (!prs_data_blob(&p
->in_data
.data
, &blob
, mem_ctx
)) {
2225 talloc_free(mem_ctx
);
2229 pull
= ndr_pull_init_blob(&blob
, mem_ctx
);
2231 talloc_free(mem_ctx
);
2235 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
2236 status
= ndr_pull_srvsvc_NetPathCompare(pull
, NDR_IN
, &r
);
2237 if (NT_STATUS_IS_ERR(status
)) {
2238 talloc_free(mem_ctx
);
2242 if (DEBUGLEVEL
>= 10)
2243 NDR_PRINT_IN_DEBUG(srvsvc_NetPathCompare
, &r
);
2245 r
.out
.result
= _srvsvc_NetPathCompare(p
, &r
);
2247 if (p
->rng_fault_state
) {
2248 talloc_free(mem_ctx
);
2249 /* Return True here, srv_pipe_hnd.c will take care */
2253 if (DEBUGLEVEL
>= 10)
2254 NDR_PRINT_OUT_DEBUG(srvsvc_NetPathCompare
, &r
);
2256 push
= ndr_push_init_ctx(mem_ctx
);
2258 talloc_free(mem_ctx
);
2262 status
= ndr_push_srvsvc_NetPathCompare(push
, NDR_OUT
, &r
);
2263 if (NT_STATUS_IS_ERR(status
)) {
2264 talloc_free(mem_ctx
);
2268 blob
= ndr_push_blob(push
);
2269 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32
)blob
.length
)) {
2270 talloc_free(mem_ctx
);
2274 talloc_free(mem_ctx
);
2279 static BOOL
api_srvsvc_NetNameValidate(pipes_struct
*p
)
2281 struct ndr_pull
*pull
;
2282 struct ndr_push
*push
;
2285 struct srvsvc_NetNameValidate r
;
2286 TALLOC_CTX
*mem_ctx
= talloc_init("api_srvsvc_NetNameValidate");
2288 if (!prs_data_blob(&p
->in_data
.data
, &blob
, mem_ctx
)) {
2289 talloc_free(mem_ctx
);
2293 pull
= ndr_pull_init_blob(&blob
, mem_ctx
);
2295 talloc_free(mem_ctx
);
2299 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
2300 status
= ndr_pull_srvsvc_NetNameValidate(pull
, NDR_IN
, &r
);
2301 if (NT_STATUS_IS_ERR(status
)) {
2302 talloc_free(mem_ctx
);
2306 if (DEBUGLEVEL
>= 10)
2307 NDR_PRINT_IN_DEBUG(srvsvc_NetNameValidate
, &r
);
2309 r
.out
.result
= _srvsvc_NetNameValidate(p
, &r
);
2311 if (p
->rng_fault_state
) {
2312 talloc_free(mem_ctx
);
2313 /* Return True here, srv_pipe_hnd.c will take care */
2317 if (DEBUGLEVEL
>= 10)
2318 NDR_PRINT_OUT_DEBUG(srvsvc_NetNameValidate
, &r
);
2320 push
= ndr_push_init_ctx(mem_ctx
);
2322 talloc_free(mem_ctx
);
2326 status
= ndr_push_srvsvc_NetNameValidate(push
, NDR_OUT
, &r
);
2327 if (NT_STATUS_IS_ERR(status
)) {
2328 talloc_free(mem_ctx
);
2332 blob
= ndr_push_blob(push
);
2333 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32
)blob
.length
)) {
2334 talloc_free(mem_ctx
);
2338 talloc_free(mem_ctx
);
2343 static BOOL
api_srvsvc_NETRPRNAMECANONICALIZE(pipes_struct
*p
)
2345 struct ndr_pull
*pull
;
2346 struct ndr_push
*push
;
2349 struct srvsvc_NETRPRNAMECANONICALIZE r
;
2350 TALLOC_CTX
*mem_ctx
= talloc_init("api_srvsvc_NETRPRNAMECANONICALIZE");
2352 if (!prs_data_blob(&p
->in_data
.data
, &blob
, mem_ctx
)) {
2353 talloc_free(mem_ctx
);
2357 pull
= ndr_pull_init_blob(&blob
, mem_ctx
);
2359 talloc_free(mem_ctx
);
2363 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
2364 status
= ndr_pull_srvsvc_NETRPRNAMECANONICALIZE(pull
, NDR_IN
, &r
);
2365 if (NT_STATUS_IS_ERR(status
)) {
2366 talloc_free(mem_ctx
);
2370 if (DEBUGLEVEL
>= 10)
2371 NDR_PRINT_IN_DEBUG(srvsvc_NETRPRNAMECANONICALIZE
, &r
);
2373 r
.out
.result
= _srvsvc_NETRPRNAMECANONICALIZE(p
, &r
);
2375 if (p
->rng_fault_state
) {
2376 talloc_free(mem_ctx
);
2377 /* Return True here, srv_pipe_hnd.c will take care */
2381 if (DEBUGLEVEL
>= 10)
2382 NDR_PRINT_OUT_DEBUG(srvsvc_NETRPRNAMECANONICALIZE
, &r
);
2384 push
= ndr_push_init_ctx(mem_ctx
);
2386 talloc_free(mem_ctx
);
2390 status
= ndr_push_srvsvc_NETRPRNAMECANONICALIZE(push
, NDR_OUT
, &r
);
2391 if (NT_STATUS_IS_ERR(status
)) {
2392 talloc_free(mem_ctx
);
2396 blob
= ndr_push_blob(push
);
2397 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32
)blob
.length
)) {
2398 talloc_free(mem_ctx
);
2402 talloc_free(mem_ctx
);
2407 static BOOL
api_srvsvc_NetPRNameCompare(pipes_struct
*p
)
2409 struct ndr_pull
*pull
;
2410 struct ndr_push
*push
;
2413 struct srvsvc_NetPRNameCompare r
;
2414 TALLOC_CTX
*mem_ctx
= talloc_init("api_srvsvc_NetPRNameCompare");
2416 if (!prs_data_blob(&p
->in_data
.data
, &blob
, mem_ctx
)) {
2417 talloc_free(mem_ctx
);
2421 pull
= ndr_pull_init_blob(&blob
, mem_ctx
);
2423 talloc_free(mem_ctx
);
2427 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
2428 status
= ndr_pull_srvsvc_NetPRNameCompare(pull
, NDR_IN
, &r
);
2429 if (NT_STATUS_IS_ERR(status
)) {
2430 talloc_free(mem_ctx
);
2434 if (DEBUGLEVEL
>= 10)
2435 NDR_PRINT_IN_DEBUG(srvsvc_NetPRNameCompare
, &r
);
2437 r
.out
.result
= _srvsvc_NetPRNameCompare(p
, &r
);
2439 if (p
->rng_fault_state
) {
2440 talloc_free(mem_ctx
);
2441 /* Return True here, srv_pipe_hnd.c will take care */
2445 if (DEBUGLEVEL
>= 10)
2446 NDR_PRINT_OUT_DEBUG(srvsvc_NetPRNameCompare
, &r
);
2448 push
= ndr_push_init_ctx(mem_ctx
);
2450 talloc_free(mem_ctx
);
2454 status
= ndr_push_srvsvc_NetPRNameCompare(push
, NDR_OUT
, &r
);
2455 if (NT_STATUS_IS_ERR(status
)) {
2456 talloc_free(mem_ctx
);
2460 blob
= ndr_push_blob(push
);
2461 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32
)blob
.length
)) {
2462 talloc_free(mem_ctx
);
2466 talloc_free(mem_ctx
);
2471 static BOOL
api_srvsvc_NetShareEnum(pipes_struct
*p
)
2473 struct ndr_pull
*pull
;
2474 struct ndr_push
*push
;
2477 struct srvsvc_NetShareEnum r
;
2478 TALLOC_CTX
*mem_ctx
= talloc_init("api_srvsvc_NetShareEnum");
2480 if (!prs_data_blob(&p
->in_data
.data
, &blob
, mem_ctx
)) {
2481 talloc_free(mem_ctx
);
2485 pull
= ndr_pull_init_blob(&blob
, mem_ctx
);
2487 talloc_free(mem_ctx
);
2491 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
2492 status
= ndr_pull_srvsvc_NetShareEnum(pull
, NDR_IN
, &r
);
2493 if (NT_STATUS_IS_ERR(status
)) {
2494 talloc_free(mem_ctx
);
2498 if (DEBUGLEVEL
>= 10)
2499 NDR_PRINT_IN_DEBUG(srvsvc_NetShareEnum
, &r
);
2502 r
.out
.level
= r
.in
.level
;
2503 r
.out
.ctr
= r
.in
.ctr
;
2504 r
.out
.totalentries
= talloc_zero(mem_ctx
, uint32_t);
2505 if (r
.out
.totalentries
== NULL
) {
2506 talloc_free(mem_ctx
);
2510 r
.out
.resume_handle
= r
.in
.resume_handle
;
2511 r
.out
.result
= _srvsvc_NetShareEnum(p
, &r
);
2513 if (p
->rng_fault_state
) {
2514 talloc_free(mem_ctx
);
2515 /* Return True here, srv_pipe_hnd.c will take care */
2519 if (DEBUGLEVEL
>= 10)
2520 NDR_PRINT_OUT_DEBUG(srvsvc_NetShareEnum
, &r
);
2522 push
= ndr_push_init_ctx(mem_ctx
);
2524 talloc_free(mem_ctx
);
2528 status
= ndr_push_srvsvc_NetShareEnum(push
, NDR_OUT
, &r
);
2529 if (NT_STATUS_IS_ERR(status
)) {
2530 talloc_free(mem_ctx
);
2534 blob
= ndr_push_blob(push
);
2535 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32
)blob
.length
)) {
2536 talloc_free(mem_ctx
);
2540 talloc_free(mem_ctx
);
2545 static BOOL
api_srvsvc_NetShareDelStart(pipes_struct
*p
)
2547 struct ndr_pull
*pull
;
2548 struct ndr_push
*push
;
2551 struct srvsvc_NetShareDelStart r
;
2552 TALLOC_CTX
*mem_ctx
= talloc_init("api_srvsvc_NetShareDelStart");
2554 if (!prs_data_blob(&p
->in_data
.data
, &blob
, mem_ctx
)) {
2555 talloc_free(mem_ctx
);
2559 pull
= ndr_pull_init_blob(&blob
, mem_ctx
);
2561 talloc_free(mem_ctx
);
2565 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
2566 status
= ndr_pull_srvsvc_NetShareDelStart(pull
, NDR_IN
, &r
);
2567 if (NT_STATUS_IS_ERR(status
)) {
2568 talloc_free(mem_ctx
);
2572 if (DEBUGLEVEL
>= 10)
2573 NDR_PRINT_IN_DEBUG(srvsvc_NetShareDelStart
, &r
);
2576 r
.out
.hnd
= talloc_zero(mem_ctx
, struct policy_handle
);
2577 if (r
.out
.hnd
== NULL
) {
2578 talloc_free(mem_ctx
);
2582 r
.out
.result
= _srvsvc_NetShareDelStart(p
, &r
);
2584 if (p
->rng_fault_state
) {
2585 talloc_free(mem_ctx
);
2586 /* Return True here, srv_pipe_hnd.c will take care */
2590 if (DEBUGLEVEL
>= 10)
2591 NDR_PRINT_OUT_DEBUG(srvsvc_NetShareDelStart
, &r
);
2593 push
= ndr_push_init_ctx(mem_ctx
);
2595 talloc_free(mem_ctx
);
2599 status
= ndr_push_srvsvc_NetShareDelStart(push
, NDR_OUT
, &r
);
2600 if (NT_STATUS_IS_ERR(status
)) {
2601 talloc_free(mem_ctx
);
2605 blob
= ndr_push_blob(push
);
2606 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32
)blob
.length
)) {
2607 talloc_free(mem_ctx
);
2611 talloc_free(mem_ctx
);
2616 static BOOL
api_srvsvc_NetShareDelCommit(pipes_struct
*p
)
2618 struct ndr_pull
*pull
;
2619 struct ndr_push
*push
;
2622 struct srvsvc_NetShareDelCommit r
;
2623 TALLOC_CTX
*mem_ctx
= talloc_init("api_srvsvc_NetShareDelCommit");
2625 if (!prs_data_blob(&p
->in_data
.data
, &blob
, mem_ctx
)) {
2626 talloc_free(mem_ctx
);
2630 pull
= ndr_pull_init_blob(&blob
, mem_ctx
);
2632 talloc_free(mem_ctx
);
2636 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
2637 status
= ndr_pull_srvsvc_NetShareDelCommit(pull
, NDR_IN
, &r
);
2638 if (NT_STATUS_IS_ERR(status
)) {
2639 talloc_free(mem_ctx
);
2643 if (DEBUGLEVEL
>= 10)
2644 NDR_PRINT_IN_DEBUG(srvsvc_NetShareDelCommit
, &r
);
2647 r
.out
.hnd
= r
.in
.hnd
;
2648 r
.out
.result
= _srvsvc_NetShareDelCommit(p
, &r
);
2650 if (p
->rng_fault_state
) {
2651 talloc_free(mem_ctx
);
2652 /* Return True here, srv_pipe_hnd.c will take care */
2656 if (DEBUGLEVEL
>= 10)
2657 NDR_PRINT_OUT_DEBUG(srvsvc_NetShareDelCommit
, &r
);
2659 push
= ndr_push_init_ctx(mem_ctx
);
2661 talloc_free(mem_ctx
);
2665 status
= ndr_push_srvsvc_NetShareDelCommit(push
, NDR_OUT
, &r
);
2666 if (NT_STATUS_IS_ERR(status
)) {
2667 talloc_free(mem_ctx
);
2671 blob
= ndr_push_blob(push
);
2672 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32
)blob
.length
)) {
2673 talloc_free(mem_ctx
);
2677 talloc_free(mem_ctx
);
2682 static BOOL
api_srvsvc_NetGetFileSecurity(pipes_struct
*p
)
2684 struct ndr_pull
*pull
;
2685 struct ndr_push
*push
;
2688 struct srvsvc_NetGetFileSecurity r
;
2689 TALLOC_CTX
*mem_ctx
= talloc_init("api_srvsvc_NetGetFileSecurity");
2691 if (!prs_data_blob(&p
->in_data
.data
, &blob
, mem_ctx
)) {
2692 talloc_free(mem_ctx
);
2696 pull
= ndr_pull_init_blob(&blob
, mem_ctx
);
2698 talloc_free(mem_ctx
);
2702 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
2703 status
= ndr_pull_srvsvc_NetGetFileSecurity(pull
, NDR_IN
, &r
);
2704 if (NT_STATUS_IS_ERR(status
)) {
2705 talloc_free(mem_ctx
);
2709 if (DEBUGLEVEL
>= 10)
2710 NDR_PRINT_IN_DEBUG(srvsvc_NetGetFileSecurity
, &r
);
2713 r
.out
.sd_buf
= talloc_zero(mem_ctx
, struct sec_desc_buf
);
2714 if (r
.out
.sd_buf
== NULL
) {
2715 talloc_free(mem_ctx
);
2719 r
.out
.result
= _srvsvc_NetGetFileSecurity(p
, &r
);
2721 if (p
->rng_fault_state
) {
2722 talloc_free(mem_ctx
);
2723 /* Return True here, srv_pipe_hnd.c will take care */
2727 if (DEBUGLEVEL
>= 10)
2728 NDR_PRINT_OUT_DEBUG(srvsvc_NetGetFileSecurity
, &r
);
2730 push
= ndr_push_init_ctx(mem_ctx
);
2732 talloc_free(mem_ctx
);
2736 status
= ndr_push_srvsvc_NetGetFileSecurity(push
, NDR_OUT
, &r
);
2737 if (NT_STATUS_IS_ERR(status
)) {
2738 talloc_free(mem_ctx
);
2742 blob
= ndr_push_blob(push
);
2743 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32
)blob
.length
)) {
2744 talloc_free(mem_ctx
);
2748 talloc_free(mem_ctx
);
2753 static BOOL
api_srvsvc_NetSetFileSecurity(pipes_struct
*p
)
2755 struct ndr_pull
*pull
;
2756 struct ndr_push
*push
;
2759 struct srvsvc_NetSetFileSecurity r
;
2760 TALLOC_CTX
*mem_ctx
= talloc_init("api_srvsvc_NetSetFileSecurity");
2762 if (!prs_data_blob(&p
->in_data
.data
, &blob
, mem_ctx
)) {
2763 talloc_free(mem_ctx
);
2767 pull
= ndr_pull_init_blob(&blob
, mem_ctx
);
2769 talloc_free(mem_ctx
);
2773 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
2774 status
= ndr_pull_srvsvc_NetSetFileSecurity(pull
, NDR_IN
, &r
);
2775 if (NT_STATUS_IS_ERR(status
)) {
2776 talloc_free(mem_ctx
);
2780 if (DEBUGLEVEL
>= 10)
2781 NDR_PRINT_IN_DEBUG(srvsvc_NetSetFileSecurity
, &r
);
2783 r
.out
.result
= _srvsvc_NetSetFileSecurity(p
, &r
);
2785 if (p
->rng_fault_state
) {
2786 talloc_free(mem_ctx
);
2787 /* Return True here, srv_pipe_hnd.c will take care */
2791 if (DEBUGLEVEL
>= 10)
2792 NDR_PRINT_OUT_DEBUG(srvsvc_NetSetFileSecurity
, &r
);
2794 push
= ndr_push_init_ctx(mem_ctx
);
2796 talloc_free(mem_ctx
);
2800 status
= ndr_push_srvsvc_NetSetFileSecurity(push
, NDR_OUT
, &r
);
2801 if (NT_STATUS_IS_ERR(status
)) {
2802 talloc_free(mem_ctx
);
2806 blob
= ndr_push_blob(push
);
2807 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32
)blob
.length
)) {
2808 talloc_free(mem_ctx
);
2812 talloc_free(mem_ctx
);
2817 static BOOL
api_srvsvc_NetServerTransportAddEx(pipes_struct
*p
)
2819 struct ndr_pull
*pull
;
2820 struct ndr_push
*push
;
2823 struct srvsvc_NetServerTransportAddEx r
;
2824 TALLOC_CTX
*mem_ctx
= talloc_init("api_srvsvc_NetServerTransportAddEx");
2826 if (!prs_data_blob(&p
->in_data
.data
, &blob
, mem_ctx
)) {
2827 talloc_free(mem_ctx
);
2831 pull
= ndr_pull_init_blob(&blob
, mem_ctx
);
2833 talloc_free(mem_ctx
);
2837 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
2838 status
= ndr_pull_srvsvc_NetServerTransportAddEx(pull
, NDR_IN
, &r
);
2839 if (NT_STATUS_IS_ERR(status
)) {
2840 talloc_free(mem_ctx
);
2844 if (DEBUGLEVEL
>= 10)
2845 NDR_PRINT_IN_DEBUG(srvsvc_NetServerTransportAddEx
, &r
);
2847 r
.out
.result
= _srvsvc_NetServerTransportAddEx(p
, &r
);
2849 if (p
->rng_fault_state
) {
2850 talloc_free(mem_ctx
);
2851 /* Return True here, srv_pipe_hnd.c will take care */
2855 if (DEBUGLEVEL
>= 10)
2856 NDR_PRINT_OUT_DEBUG(srvsvc_NetServerTransportAddEx
, &r
);
2858 push
= ndr_push_init_ctx(mem_ctx
);
2860 talloc_free(mem_ctx
);
2864 status
= ndr_push_srvsvc_NetServerTransportAddEx(push
, NDR_OUT
, &r
);
2865 if (NT_STATUS_IS_ERR(status
)) {
2866 talloc_free(mem_ctx
);
2870 blob
= ndr_push_blob(push
);
2871 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32
)blob
.length
)) {
2872 talloc_free(mem_ctx
);
2876 talloc_free(mem_ctx
);
2881 static BOOL
api_srvsvc_NetServerSetServiceBitsEx(pipes_struct
*p
)
2883 struct ndr_pull
*pull
;
2884 struct ndr_push
*push
;
2887 struct srvsvc_NetServerSetServiceBitsEx r
;
2888 TALLOC_CTX
*mem_ctx
= talloc_init("api_srvsvc_NetServerSetServiceBitsEx");
2890 if (!prs_data_blob(&p
->in_data
.data
, &blob
, mem_ctx
)) {
2891 talloc_free(mem_ctx
);
2895 pull
= ndr_pull_init_blob(&blob
, mem_ctx
);
2897 talloc_free(mem_ctx
);
2901 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
2902 status
= ndr_pull_srvsvc_NetServerSetServiceBitsEx(pull
, NDR_IN
, &r
);
2903 if (NT_STATUS_IS_ERR(status
)) {
2904 talloc_free(mem_ctx
);
2908 if (DEBUGLEVEL
>= 10)
2909 NDR_PRINT_IN_DEBUG(srvsvc_NetServerSetServiceBitsEx
, &r
);
2911 r
.out
.result
= _srvsvc_NetServerSetServiceBitsEx(p
, &r
);
2913 if (p
->rng_fault_state
) {
2914 talloc_free(mem_ctx
);
2915 /* Return True here, srv_pipe_hnd.c will take care */
2919 if (DEBUGLEVEL
>= 10)
2920 NDR_PRINT_OUT_DEBUG(srvsvc_NetServerSetServiceBitsEx
, &r
);
2922 push
= ndr_push_init_ctx(mem_ctx
);
2924 talloc_free(mem_ctx
);
2928 status
= ndr_push_srvsvc_NetServerSetServiceBitsEx(push
, NDR_OUT
, &r
);
2929 if (NT_STATUS_IS_ERR(status
)) {
2930 talloc_free(mem_ctx
);
2934 blob
= ndr_push_blob(push
);
2935 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32
)blob
.length
)) {
2936 talloc_free(mem_ctx
);
2940 talloc_free(mem_ctx
);
2945 static BOOL
api_srvsvc_NETRDFSGETVERSION(pipes_struct
*p
)
2947 struct ndr_pull
*pull
;
2948 struct ndr_push
*push
;
2951 struct srvsvc_NETRDFSGETVERSION r
;
2952 TALLOC_CTX
*mem_ctx
= talloc_init("api_srvsvc_NETRDFSGETVERSION");
2954 if (!prs_data_blob(&p
->in_data
.data
, &blob
, mem_ctx
)) {
2955 talloc_free(mem_ctx
);
2959 pull
= ndr_pull_init_blob(&blob
, mem_ctx
);
2961 talloc_free(mem_ctx
);
2965 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
2966 status
= ndr_pull_srvsvc_NETRDFSGETVERSION(pull
, NDR_IN
, &r
);
2967 if (NT_STATUS_IS_ERR(status
)) {
2968 talloc_free(mem_ctx
);
2972 if (DEBUGLEVEL
>= 10)
2973 NDR_PRINT_IN_DEBUG(srvsvc_NETRDFSGETVERSION
, &r
);
2975 r
.out
.result
= _srvsvc_NETRDFSGETVERSION(p
, &r
);
2977 if (p
->rng_fault_state
) {
2978 talloc_free(mem_ctx
);
2979 /* Return True here, srv_pipe_hnd.c will take care */
2983 if (DEBUGLEVEL
>= 10)
2984 NDR_PRINT_OUT_DEBUG(srvsvc_NETRDFSGETVERSION
, &r
);
2986 push
= ndr_push_init_ctx(mem_ctx
);
2988 talloc_free(mem_ctx
);
2992 status
= ndr_push_srvsvc_NETRDFSGETVERSION(push
, NDR_OUT
, &r
);
2993 if (NT_STATUS_IS_ERR(status
)) {
2994 talloc_free(mem_ctx
);
2998 blob
= ndr_push_blob(push
);
2999 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32
)blob
.length
)) {
3000 talloc_free(mem_ctx
);
3004 talloc_free(mem_ctx
);
3009 static BOOL
api_srvsvc_NETRDFSCREATELOCALPARTITION(pipes_struct
*p
)
3011 struct ndr_pull
*pull
;
3012 struct ndr_push
*push
;
3015 struct srvsvc_NETRDFSCREATELOCALPARTITION r
;
3016 TALLOC_CTX
*mem_ctx
= talloc_init("api_srvsvc_NETRDFSCREATELOCALPARTITION");
3018 if (!prs_data_blob(&p
->in_data
.data
, &blob
, mem_ctx
)) {
3019 talloc_free(mem_ctx
);
3023 pull
= ndr_pull_init_blob(&blob
, mem_ctx
);
3025 talloc_free(mem_ctx
);
3029 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
3030 status
= ndr_pull_srvsvc_NETRDFSCREATELOCALPARTITION(pull
, NDR_IN
, &r
);
3031 if (NT_STATUS_IS_ERR(status
)) {
3032 talloc_free(mem_ctx
);
3036 if (DEBUGLEVEL
>= 10)
3037 NDR_PRINT_IN_DEBUG(srvsvc_NETRDFSCREATELOCALPARTITION
, &r
);
3039 r
.out
.result
= _srvsvc_NETRDFSCREATELOCALPARTITION(p
, &r
);
3041 if (p
->rng_fault_state
) {
3042 talloc_free(mem_ctx
);
3043 /* Return True here, srv_pipe_hnd.c will take care */
3047 if (DEBUGLEVEL
>= 10)
3048 NDR_PRINT_OUT_DEBUG(srvsvc_NETRDFSCREATELOCALPARTITION
, &r
);
3050 push
= ndr_push_init_ctx(mem_ctx
);
3052 talloc_free(mem_ctx
);
3056 status
= ndr_push_srvsvc_NETRDFSCREATELOCALPARTITION(push
, NDR_OUT
, &r
);
3057 if (NT_STATUS_IS_ERR(status
)) {
3058 talloc_free(mem_ctx
);
3062 blob
= ndr_push_blob(push
);
3063 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32
)blob
.length
)) {
3064 talloc_free(mem_ctx
);
3068 talloc_free(mem_ctx
);
3073 static BOOL
api_srvsvc_NETRDFSDELETELOCALPARTITION(pipes_struct
*p
)
3075 struct ndr_pull
*pull
;
3076 struct ndr_push
*push
;
3079 struct srvsvc_NETRDFSDELETELOCALPARTITION r
;
3080 TALLOC_CTX
*mem_ctx
= talloc_init("api_srvsvc_NETRDFSDELETELOCALPARTITION");
3082 if (!prs_data_blob(&p
->in_data
.data
, &blob
, mem_ctx
)) {
3083 talloc_free(mem_ctx
);
3087 pull
= ndr_pull_init_blob(&blob
, mem_ctx
);
3089 talloc_free(mem_ctx
);
3093 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
3094 status
= ndr_pull_srvsvc_NETRDFSDELETELOCALPARTITION(pull
, NDR_IN
, &r
);
3095 if (NT_STATUS_IS_ERR(status
)) {
3096 talloc_free(mem_ctx
);
3100 if (DEBUGLEVEL
>= 10)
3101 NDR_PRINT_IN_DEBUG(srvsvc_NETRDFSDELETELOCALPARTITION
, &r
);
3103 r
.out
.result
= _srvsvc_NETRDFSDELETELOCALPARTITION(p
, &r
);
3105 if (p
->rng_fault_state
) {
3106 talloc_free(mem_ctx
);
3107 /* Return True here, srv_pipe_hnd.c will take care */
3111 if (DEBUGLEVEL
>= 10)
3112 NDR_PRINT_OUT_DEBUG(srvsvc_NETRDFSDELETELOCALPARTITION
, &r
);
3114 push
= ndr_push_init_ctx(mem_ctx
);
3116 talloc_free(mem_ctx
);
3120 status
= ndr_push_srvsvc_NETRDFSDELETELOCALPARTITION(push
, NDR_OUT
, &r
);
3121 if (NT_STATUS_IS_ERR(status
)) {
3122 talloc_free(mem_ctx
);
3126 blob
= ndr_push_blob(push
);
3127 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32
)blob
.length
)) {
3128 talloc_free(mem_ctx
);
3132 talloc_free(mem_ctx
);
3137 static BOOL
api_srvsvc_NETRDFSSETLOCALVOLUMESTATE(pipes_struct
*p
)
3139 struct ndr_pull
*pull
;
3140 struct ndr_push
*push
;
3143 struct srvsvc_NETRDFSSETLOCALVOLUMESTATE r
;
3144 TALLOC_CTX
*mem_ctx
= talloc_init("api_srvsvc_NETRDFSSETLOCALVOLUMESTATE");
3146 if (!prs_data_blob(&p
->in_data
.data
, &blob
, mem_ctx
)) {
3147 talloc_free(mem_ctx
);
3151 pull
= ndr_pull_init_blob(&blob
, mem_ctx
);
3153 talloc_free(mem_ctx
);
3157 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
3158 status
= ndr_pull_srvsvc_NETRDFSSETLOCALVOLUMESTATE(pull
, NDR_IN
, &r
);
3159 if (NT_STATUS_IS_ERR(status
)) {
3160 talloc_free(mem_ctx
);
3164 if (DEBUGLEVEL
>= 10)
3165 NDR_PRINT_IN_DEBUG(srvsvc_NETRDFSSETLOCALVOLUMESTATE
, &r
);
3167 r
.out
.result
= _srvsvc_NETRDFSSETLOCALVOLUMESTATE(p
, &r
);
3169 if (p
->rng_fault_state
) {
3170 talloc_free(mem_ctx
);
3171 /* Return True here, srv_pipe_hnd.c will take care */
3175 if (DEBUGLEVEL
>= 10)
3176 NDR_PRINT_OUT_DEBUG(srvsvc_NETRDFSSETLOCALVOLUMESTATE
, &r
);
3178 push
= ndr_push_init_ctx(mem_ctx
);
3180 talloc_free(mem_ctx
);
3184 status
= ndr_push_srvsvc_NETRDFSSETLOCALVOLUMESTATE(push
, NDR_OUT
, &r
);
3185 if (NT_STATUS_IS_ERR(status
)) {
3186 talloc_free(mem_ctx
);
3190 blob
= ndr_push_blob(push
);
3191 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32
)blob
.length
)) {
3192 talloc_free(mem_ctx
);
3196 talloc_free(mem_ctx
);
3201 static BOOL
api_srvsvc_NETRDFSSETSERVERINFO(pipes_struct
*p
)
3203 struct ndr_pull
*pull
;
3204 struct ndr_push
*push
;
3207 struct srvsvc_NETRDFSSETSERVERINFO r
;
3208 TALLOC_CTX
*mem_ctx
= talloc_init("api_srvsvc_NETRDFSSETSERVERINFO");
3210 if (!prs_data_blob(&p
->in_data
.data
, &blob
, mem_ctx
)) {
3211 talloc_free(mem_ctx
);
3215 pull
= ndr_pull_init_blob(&blob
, mem_ctx
);
3217 talloc_free(mem_ctx
);
3221 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
3222 status
= ndr_pull_srvsvc_NETRDFSSETSERVERINFO(pull
, NDR_IN
, &r
);
3223 if (NT_STATUS_IS_ERR(status
)) {
3224 talloc_free(mem_ctx
);
3228 if (DEBUGLEVEL
>= 10)
3229 NDR_PRINT_IN_DEBUG(srvsvc_NETRDFSSETSERVERINFO
, &r
);
3231 r
.out
.result
= _srvsvc_NETRDFSSETSERVERINFO(p
, &r
);
3233 if (p
->rng_fault_state
) {
3234 talloc_free(mem_ctx
);
3235 /* Return True here, srv_pipe_hnd.c will take care */
3239 if (DEBUGLEVEL
>= 10)
3240 NDR_PRINT_OUT_DEBUG(srvsvc_NETRDFSSETSERVERINFO
, &r
);
3242 push
= ndr_push_init_ctx(mem_ctx
);
3244 talloc_free(mem_ctx
);
3248 status
= ndr_push_srvsvc_NETRDFSSETSERVERINFO(push
, NDR_OUT
, &r
);
3249 if (NT_STATUS_IS_ERR(status
)) {
3250 talloc_free(mem_ctx
);
3254 blob
= ndr_push_blob(push
);
3255 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32
)blob
.length
)) {
3256 talloc_free(mem_ctx
);
3260 talloc_free(mem_ctx
);
3265 static BOOL
api_srvsvc_NETRDFSCREATEEXITPOINT(pipes_struct
*p
)
3267 struct ndr_pull
*pull
;
3268 struct ndr_push
*push
;
3271 struct srvsvc_NETRDFSCREATEEXITPOINT r
;
3272 TALLOC_CTX
*mem_ctx
= talloc_init("api_srvsvc_NETRDFSCREATEEXITPOINT");
3274 if (!prs_data_blob(&p
->in_data
.data
, &blob
, mem_ctx
)) {
3275 talloc_free(mem_ctx
);
3279 pull
= ndr_pull_init_blob(&blob
, mem_ctx
);
3281 talloc_free(mem_ctx
);
3285 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
3286 status
= ndr_pull_srvsvc_NETRDFSCREATEEXITPOINT(pull
, NDR_IN
, &r
);
3287 if (NT_STATUS_IS_ERR(status
)) {
3288 talloc_free(mem_ctx
);
3292 if (DEBUGLEVEL
>= 10)
3293 NDR_PRINT_IN_DEBUG(srvsvc_NETRDFSCREATEEXITPOINT
, &r
);
3295 r
.out
.result
= _srvsvc_NETRDFSCREATEEXITPOINT(p
, &r
);
3297 if (p
->rng_fault_state
) {
3298 talloc_free(mem_ctx
);
3299 /* Return True here, srv_pipe_hnd.c will take care */
3303 if (DEBUGLEVEL
>= 10)
3304 NDR_PRINT_OUT_DEBUG(srvsvc_NETRDFSCREATEEXITPOINT
, &r
);
3306 push
= ndr_push_init_ctx(mem_ctx
);
3308 talloc_free(mem_ctx
);
3312 status
= ndr_push_srvsvc_NETRDFSCREATEEXITPOINT(push
, NDR_OUT
, &r
);
3313 if (NT_STATUS_IS_ERR(status
)) {
3314 talloc_free(mem_ctx
);
3318 blob
= ndr_push_blob(push
);
3319 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32
)blob
.length
)) {
3320 talloc_free(mem_ctx
);
3324 talloc_free(mem_ctx
);
3329 static BOOL
api_srvsvc_NETRDFSDELETEEXITPOINT(pipes_struct
*p
)
3331 struct ndr_pull
*pull
;
3332 struct ndr_push
*push
;
3335 struct srvsvc_NETRDFSDELETEEXITPOINT r
;
3336 TALLOC_CTX
*mem_ctx
= talloc_init("api_srvsvc_NETRDFSDELETEEXITPOINT");
3338 if (!prs_data_blob(&p
->in_data
.data
, &blob
, mem_ctx
)) {
3339 talloc_free(mem_ctx
);
3343 pull
= ndr_pull_init_blob(&blob
, mem_ctx
);
3345 talloc_free(mem_ctx
);
3349 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
3350 status
= ndr_pull_srvsvc_NETRDFSDELETEEXITPOINT(pull
, NDR_IN
, &r
);
3351 if (NT_STATUS_IS_ERR(status
)) {
3352 talloc_free(mem_ctx
);
3356 if (DEBUGLEVEL
>= 10)
3357 NDR_PRINT_IN_DEBUG(srvsvc_NETRDFSDELETEEXITPOINT
, &r
);
3359 r
.out
.result
= _srvsvc_NETRDFSDELETEEXITPOINT(p
, &r
);
3361 if (p
->rng_fault_state
) {
3362 talloc_free(mem_ctx
);
3363 /* Return True here, srv_pipe_hnd.c will take care */
3367 if (DEBUGLEVEL
>= 10)
3368 NDR_PRINT_OUT_DEBUG(srvsvc_NETRDFSDELETEEXITPOINT
, &r
);
3370 push
= ndr_push_init_ctx(mem_ctx
);
3372 talloc_free(mem_ctx
);
3376 status
= ndr_push_srvsvc_NETRDFSDELETEEXITPOINT(push
, NDR_OUT
, &r
);
3377 if (NT_STATUS_IS_ERR(status
)) {
3378 talloc_free(mem_ctx
);
3382 blob
= ndr_push_blob(push
);
3383 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32
)blob
.length
)) {
3384 talloc_free(mem_ctx
);
3388 talloc_free(mem_ctx
);
3393 static BOOL
api_srvsvc_NETRDFSMODIFYPREFIX(pipes_struct
*p
)
3395 struct ndr_pull
*pull
;
3396 struct ndr_push
*push
;
3399 struct srvsvc_NETRDFSMODIFYPREFIX r
;
3400 TALLOC_CTX
*mem_ctx
= talloc_init("api_srvsvc_NETRDFSMODIFYPREFIX");
3402 if (!prs_data_blob(&p
->in_data
.data
, &blob
, mem_ctx
)) {
3403 talloc_free(mem_ctx
);
3407 pull
= ndr_pull_init_blob(&blob
, mem_ctx
);
3409 talloc_free(mem_ctx
);
3413 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
3414 status
= ndr_pull_srvsvc_NETRDFSMODIFYPREFIX(pull
, NDR_IN
, &r
);
3415 if (NT_STATUS_IS_ERR(status
)) {
3416 talloc_free(mem_ctx
);
3420 if (DEBUGLEVEL
>= 10)
3421 NDR_PRINT_IN_DEBUG(srvsvc_NETRDFSMODIFYPREFIX
, &r
);
3423 r
.out
.result
= _srvsvc_NETRDFSMODIFYPREFIX(p
, &r
);
3425 if (p
->rng_fault_state
) {
3426 talloc_free(mem_ctx
);
3427 /* Return True here, srv_pipe_hnd.c will take care */
3431 if (DEBUGLEVEL
>= 10)
3432 NDR_PRINT_OUT_DEBUG(srvsvc_NETRDFSMODIFYPREFIX
, &r
);
3434 push
= ndr_push_init_ctx(mem_ctx
);
3436 talloc_free(mem_ctx
);
3440 status
= ndr_push_srvsvc_NETRDFSMODIFYPREFIX(push
, NDR_OUT
, &r
);
3441 if (NT_STATUS_IS_ERR(status
)) {
3442 talloc_free(mem_ctx
);
3446 blob
= ndr_push_blob(push
);
3447 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32
)blob
.length
)) {
3448 talloc_free(mem_ctx
);
3452 talloc_free(mem_ctx
);
3457 static BOOL
api_srvsvc_NETRDFSFIXLOCALVOLUME(pipes_struct
*p
)
3459 struct ndr_pull
*pull
;
3460 struct ndr_push
*push
;
3463 struct srvsvc_NETRDFSFIXLOCALVOLUME r
;
3464 TALLOC_CTX
*mem_ctx
= talloc_init("api_srvsvc_NETRDFSFIXLOCALVOLUME");
3466 if (!prs_data_blob(&p
->in_data
.data
, &blob
, mem_ctx
)) {
3467 talloc_free(mem_ctx
);
3471 pull
= ndr_pull_init_blob(&blob
, mem_ctx
);
3473 talloc_free(mem_ctx
);
3477 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
3478 status
= ndr_pull_srvsvc_NETRDFSFIXLOCALVOLUME(pull
, NDR_IN
, &r
);
3479 if (NT_STATUS_IS_ERR(status
)) {
3480 talloc_free(mem_ctx
);
3484 if (DEBUGLEVEL
>= 10)
3485 NDR_PRINT_IN_DEBUG(srvsvc_NETRDFSFIXLOCALVOLUME
, &r
);
3487 r
.out
.result
= _srvsvc_NETRDFSFIXLOCALVOLUME(p
, &r
);
3489 if (p
->rng_fault_state
) {
3490 talloc_free(mem_ctx
);
3491 /* Return True here, srv_pipe_hnd.c will take care */
3495 if (DEBUGLEVEL
>= 10)
3496 NDR_PRINT_OUT_DEBUG(srvsvc_NETRDFSFIXLOCALVOLUME
, &r
);
3498 push
= ndr_push_init_ctx(mem_ctx
);
3500 talloc_free(mem_ctx
);
3504 status
= ndr_push_srvsvc_NETRDFSFIXLOCALVOLUME(push
, NDR_OUT
, &r
);
3505 if (NT_STATUS_IS_ERR(status
)) {
3506 talloc_free(mem_ctx
);
3510 blob
= ndr_push_blob(push
);
3511 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32
)blob
.length
)) {
3512 talloc_free(mem_ctx
);
3516 talloc_free(mem_ctx
);
3521 static BOOL
api_srvsvc_NETRDFSMANAGERREPORTSITEINFO(pipes_struct
*p
)
3523 struct ndr_pull
*pull
;
3524 struct ndr_push
*push
;
3527 struct srvsvc_NETRDFSMANAGERREPORTSITEINFO r
;
3528 TALLOC_CTX
*mem_ctx
= talloc_init("api_srvsvc_NETRDFSMANAGERREPORTSITEINFO");
3530 if (!prs_data_blob(&p
->in_data
.data
, &blob
, mem_ctx
)) {
3531 talloc_free(mem_ctx
);
3535 pull
= ndr_pull_init_blob(&blob
, mem_ctx
);
3537 talloc_free(mem_ctx
);
3541 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
3542 status
= ndr_pull_srvsvc_NETRDFSMANAGERREPORTSITEINFO(pull
, NDR_IN
, &r
);
3543 if (NT_STATUS_IS_ERR(status
)) {
3544 talloc_free(mem_ctx
);
3548 if (DEBUGLEVEL
>= 10)
3549 NDR_PRINT_IN_DEBUG(srvsvc_NETRDFSMANAGERREPORTSITEINFO
, &r
);
3551 r
.out
.result
= _srvsvc_NETRDFSMANAGERREPORTSITEINFO(p
, &r
);
3553 if (p
->rng_fault_state
) {
3554 talloc_free(mem_ctx
);
3555 /* Return True here, srv_pipe_hnd.c will take care */
3559 if (DEBUGLEVEL
>= 10)
3560 NDR_PRINT_OUT_DEBUG(srvsvc_NETRDFSMANAGERREPORTSITEINFO
, &r
);
3562 push
= ndr_push_init_ctx(mem_ctx
);
3564 talloc_free(mem_ctx
);
3568 status
= ndr_push_srvsvc_NETRDFSMANAGERREPORTSITEINFO(push
, NDR_OUT
, &r
);
3569 if (NT_STATUS_IS_ERR(status
)) {
3570 talloc_free(mem_ctx
);
3574 blob
= ndr_push_blob(push
);
3575 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32
)blob
.length
)) {
3576 talloc_free(mem_ctx
);
3580 talloc_free(mem_ctx
);
3585 static BOOL
api_srvsvc_NETRSERVERTRANSPORTDELEX(pipes_struct
*p
)
3587 struct ndr_pull
*pull
;
3588 struct ndr_push
*push
;
3591 struct srvsvc_NETRSERVERTRANSPORTDELEX r
;
3592 TALLOC_CTX
*mem_ctx
= talloc_init("api_srvsvc_NETRSERVERTRANSPORTDELEX");
3594 if (!prs_data_blob(&p
->in_data
.data
, &blob
, mem_ctx
)) {
3595 talloc_free(mem_ctx
);
3599 pull
= ndr_pull_init_blob(&blob
, mem_ctx
);
3601 talloc_free(mem_ctx
);
3605 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
3606 status
= ndr_pull_srvsvc_NETRSERVERTRANSPORTDELEX(pull
, NDR_IN
, &r
);
3607 if (NT_STATUS_IS_ERR(status
)) {
3608 talloc_free(mem_ctx
);
3612 if (DEBUGLEVEL
>= 10)
3613 NDR_PRINT_IN_DEBUG(srvsvc_NETRSERVERTRANSPORTDELEX
, &r
);
3615 r
.out
.result
= _srvsvc_NETRSERVERTRANSPORTDELEX(p
, &r
);
3617 if (p
->rng_fault_state
) {
3618 talloc_free(mem_ctx
);
3619 /* Return True here, srv_pipe_hnd.c will take care */
3623 if (DEBUGLEVEL
>= 10)
3624 NDR_PRINT_OUT_DEBUG(srvsvc_NETRSERVERTRANSPORTDELEX
, &r
);
3626 push
= ndr_push_init_ctx(mem_ctx
);
3628 talloc_free(mem_ctx
);
3632 status
= ndr_push_srvsvc_NETRSERVERTRANSPORTDELEX(push
, NDR_OUT
, &r
);
3633 if (NT_STATUS_IS_ERR(status
)) {
3634 talloc_free(mem_ctx
);
3638 blob
= ndr_push_blob(push
);
3639 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32
)blob
.length
)) {
3640 talloc_free(mem_ctx
);
3644 talloc_free(mem_ctx
);
3651 static struct api_struct api_srvsvc_cmds
[] =
3653 {"SRVSVC_NETCHARDEVENUM", DCERPC_SRVSVC_NETCHARDEVENUM
, api_srvsvc_NetCharDevEnum
},
3654 {"SRVSVC_NETCHARDEVGETINFO", DCERPC_SRVSVC_NETCHARDEVGETINFO
, api_srvsvc_NetCharDevGetInfo
},
3655 {"SRVSVC_NETCHARDEVCONTROL", DCERPC_SRVSVC_NETCHARDEVCONTROL
, api_srvsvc_NetCharDevControl
},
3656 {"SRVSVC_NETCHARDEVQENUM", DCERPC_SRVSVC_NETCHARDEVQENUM
, api_srvsvc_NetCharDevQEnum
},
3657 {"SRVSVC_NETCHARDEVQGETINFO", DCERPC_SRVSVC_NETCHARDEVQGETINFO
, api_srvsvc_NetCharDevQGetInfo
},
3658 {"SRVSVC_NETCHARDEVQSETINFO", DCERPC_SRVSVC_NETCHARDEVQSETINFO
, api_srvsvc_NetCharDevQSetInfo
},
3659 {"SRVSVC_NETCHARDEVQPURGE", DCERPC_SRVSVC_NETCHARDEVQPURGE
, api_srvsvc_NetCharDevQPurge
},
3660 {"SRVSVC_NETCHARDEVQPURGESELF", DCERPC_SRVSVC_NETCHARDEVQPURGESELF
, api_srvsvc_NetCharDevQPurgeSelf
},
3661 {"SRVSVC_NETCONNENUM", DCERPC_SRVSVC_NETCONNENUM
, api_srvsvc_NetConnEnum
},
3662 {"SRVSVC_NETFILEENUM", DCERPC_SRVSVC_NETFILEENUM
, api_srvsvc_NetFileEnum
},
3663 {"SRVSVC_NETFILEGETINFO", DCERPC_SRVSVC_NETFILEGETINFO
, api_srvsvc_NetFileGetInfo
},
3664 {"SRVSVC_NETFILECLOSE", DCERPC_SRVSVC_NETFILECLOSE
, api_srvsvc_NetFileClose
},
3665 {"SRVSVC_NETSESSENUM", DCERPC_SRVSVC_NETSESSENUM
, api_srvsvc_NetSessEnum
},
3666 {"SRVSVC_NETSESSDEL", DCERPC_SRVSVC_NETSESSDEL
, api_srvsvc_NetSessDel
},
3667 {"SRVSVC_NETSHAREADD", DCERPC_SRVSVC_NETSHAREADD
, api_srvsvc_NetShareAdd
},
3668 {"SRVSVC_NETSHAREENUMALL", DCERPC_SRVSVC_NETSHAREENUMALL
, api_srvsvc_NetShareEnumAll
},
3669 {"SRVSVC_NETSHAREGETINFO", DCERPC_SRVSVC_NETSHAREGETINFO
, api_srvsvc_NetShareGetInfo
},
3670 {"SRVSVC_NETSHARESETINFO", DCERPC_SRVSVC_NETSHARESETINFO
, api_srvsvc_NetShareSetInfo
},
3671 {"SRVSVC_NETSHAREDEL", DCERPC_SRVSVC_NETSHAREDEL
, api_srvsvc_NetShareDel
},
3672 {"SRVSVC_NETSHAREDELSTICKY", DCERPC_SRVSVC_NETSHAREDELSTICKY
, api_srvsvc_NetShareDelSticky
},
3673 {"SRVSVC_NETSHARECHECK", DCERPC_SRVSVC_NETSHARECHECK
, api_srvsvc_NetShareCheck
},
3674 {"SRVSVC_NETSRVGETINFO", DCERPC_SRVSVC_NETSRVGETINFO
, api_srvsvc_NetSrvGetInfo
},
3675 {"SRVSVC_NETSRVSETINFO", DCERPC_SRVSVC_NETSRVSETINFO
, api_srvsvc_NetSrvSetInfo
},
3676 {"SRVSVC_NETDISKENUM", DCERPC_SRVSVC_NETDISKENUM
, api_srvsvc_NetDiskEnum
},
3677 {"SRVSVC_NETSERVERSTATISTICSGET", DCERPC_SRVSVC_NETSERVERSTATISTICSGET
, api_srvsvc_NetServerStatisticsGet
},
3678 {"SRVSVC_NETTRANSPORTADD", DCERPC_SRVSVC_NETTRANSPORTADD
, api_srvsvc_NetTransportAdd
},
3679 {"SRVSVC_NETTRANSPORTENUM", DCERPC_SRVSVC_NETTRANSPORTENUM
, api_srvsvc_NetTransportEnum
},
3680 {"SRVSVC_NETTRANSPORTDEL", DCERPC_SRVSVC_NETTRANSPORTDEL
, api_srvsvc_NetTransportDel
},
3681 {"SRVSVC_NETREMOTETOD", DCERPC_SRVSVC_NETREMOTETOD
, api_srvsvc_NetRemoteTOD
},
3682 {"SRVSVC_NETSETSERVICEBITS", DCERPC_SRVSVC_NETSETSERVICEBITS
, api_srvsvc_NetSetServiceBits
},
3683 {"SRVSVC_NETPATHTYPE", DCERPC_SRVSVC_NETPATHTYPE
, api_srvsvc_NetPathType
},
3684 {"SRVSVC_NETPATHCANONICALIZE", DCERPC_SRVSVC_NETPATHCANONICALIZE
, api_srvsvc_NetPathCanonicalize
},
3685 {"SRVSVC_NETPATHCOMPARE", DCERPC_SRVSVC_NETPATHCOMPARE
, api_srvsvc_NetPathCompare
},
3686 {"SRVSVC_NETNAMEVALIDATE", DCERPC_SRVSVC_NETNAMEVALIDATE
, api_srvsvc_NetNameValidate
},
3687 {"SRVSVC_NETRPRNAMECANONICALIZE", DCERPC_SRVSVC_NETRPRNAMECANONICALIZE
, api_srvsvc_NETRPRNAMECANONICALIZE
},
3688 {"SRVSVC_NETPRNAMECOMPARE", DCERPC_SRVSVC_NETPRNAMECOMPARE
, api_srvsvc_NetPRNameCompare
},
3689 {"SRVSVC_NETSHAREENUM", DCERPC_SRVSVC_NETSHAREENUM
, api_srvsvc_NetShareEnum
},
3690 {"SRVSVC_NETSHAREDELSTART", DCERPC_SRVSVC_NETSHAREDELSTART
, api_srvsvc_NetShareDelStart
},
3691 {"SRVSVC_NETSHAREDELCOMMIT", DCERPC_SRVSVC_NETSHAREDELCOMMIT
, api_srvsvc_NetShareDelCommit
},
3692 {"SRVSVC_NETGETFILESECURITY", DCERPC_SRVSVC_NETGETFILESECURITY
, api_srvsvc_NetGetFileSecurity
},
3693 {"SRVSVC_NETSETFILESECURITY", DCERPC_SRVSVC_NETSETFILESECURITY
, api_srvsvc_NetSetFileSecurity
},
3694 {"SRVSVC_NETSERVERTRANSPORTADDEX", DCERPC_SRVSVC_NETSERVERTRANSPORTADDEX
, api_srvsvc_NetServerTransportAddEx
},
3695 {"SRVSVC_NETSERVERSETSERVICEBITSEX", DCERPC_SRVSVC_NETSERVERSETSERVICEBITSEX
, api_srvsvc_NetServerSetServiceBitsEx
},
3696 {"SRVSVC_NETRDFSGETVERSION", DCERPC_SRVSVC_NETRDFSGETVERSION
, api_srvsvc_NETRDFSGETVERSION
},
3697 {"SRVSVC_NETRDFSCREATELOCALPARTITION", DCERPC_SRVSVC_NETRDFSCREATELOCALPARTITION
, api_srvsvc_NETRDFSCREATELOCALPARTITION
},
3698 {"SRVSVC_NETRDFSDELETELOCALPARTITION", DCERPC_SRVSVC_NETRDFSDELETELOCALPARTITION
, api_srvsvc_NETRDFSDELETELOCALPARTITION
},
3699 {"SRVSVC_NETRDFSSETLOCALVOLUMESTATE", DCERPC_SRVSVC_NETRDFSSETLOCALVOLUMESTATE
, api_srvsvc_NETRDFSSETLOCALVOLUMESTATE
},
3700 {"SRVSVC_NETRDFSSETSERVERINFO", DCERPC_SRVSVC_NETRDFSSETSERVERINFO
, api_srvsvc_NETRDFSSETSERVERINFO
},
3701 {"SRVSVC_NETRDFSCREATEEXITPOINT", DCERPC_SRVSVC_NETRDFSCREATEEXITPOINT
, api_srvsvc_NETRDFSCREATEEXITPOINT
},
3702 {"SRVSVC_NETRDFSDELETEEXITPOINT", DCERPC_SRVSVC_NETRDFSDELETEEXITPOINT
, api_srvsvc_NETRDFSDELETEEXITPOINT
},
3703 {"SRVSVC_NETRDFSMODIFYPREFIX", DCERPC_SRVSVC_NETRDFSMODIFYPREFIX
, api_srvsvc_NETRDFSMODIFYPREFIX
},
3704 {"SRVSVC_NETRDFSFIXLOCALVOLUME", DCERPC_SRVSVC_NETRDFSFIXLOCALVOLUME
, api_srvsvc_NETRDFSFIXLOCALVOLUME
},
3705 {"SRVSVC_NETRDFSMANAGERREPORTSITEINFO", DCERPC_SRVSVC_NETRDFSMANAGERREPORTSITEINFO
, api_srvsvc_NETRDFSMANAGERREPORTSITEINFO
},
3706 {"SRVSVC_NETRSERVERTRANSPORTDELEX", DCERPC_SRVSVC_NETRSERVERTRANSPORTDELEX
, api_srvsvc_NETRSERVERTRANSPORTDELEX
},
3709 void srvsvc_get_pipe_fns(struct api_struct
**fns
, int *n_fns
)
3711 *fns
= api_srvsvc_cmds
;
3712 *n_fns
= sizeof(api_srvsvc_cmds
) / sizeof(struct api_struct
);
3715 NTSTATUS
rpc_srvsvc_init(void)
3717 return rpc_pipe_register_commands(SMB_RPC_INTERFACE_VERSION
, "srvsvc", "srvsvc", api_srvsvc_cmds
, sizeof(api_srvsvc_cmds
) / sizeof(struct api_struct
));