s3/docs: Fix serveral typos.
[Samba.git] / source / librpc / gen_ndr / cli_ntsvcs.c
blob6beb8ebbee81b4cf09c1706f4404d86e76fbd3ba
1 /*
2 * Unix SMB/CIFS implementation.
3 * client auto-generated by pidl. DO NOT MODIFY!
4 */
6 #include "includes.h"
7 #include "librpc/gen_ndr/cli_ntsvcs.h"
9 NTSTATUS rpccli_PNP_Disconnect(struct rpc_pipe_client *cli,
10 TALLOC_CTX *mem_ctx,
11 WERROR *werror)
13 struct PNP_Disconnect r;
14 NTSTATUS status;
16 /* In parameters */
18 if (DEBUGLEVEL >= 10) {
19 NDR_PRINT_IN_DEBUG(PNP_Disconnect, &r);
22 status = cli_do_rpc_ndr(cli,
23 mem_ctx,
24 PI_NTSVCS,
25 &ndr_table_ntsvcs,
26 NDR_PNP_DISCONNECT,
27 &r);
29 if (!NT_STATUS_IS_OK(status)) {
30 return status;
33 if (DEBUGLEVEL >= 10) {
34 NDR_PRINT_OUT_DEBUG(PNP_Disconnect, &r);
37 if (NT_STATUS_IS_ERR(status)) {
38 return status;
41 /* Return variables */
43 /* Return result */
44 if (werror) {
45 *werror = r.out.result;
48 return werror_to_ntstatus(r.out.result);
51 NTSTATUS rpccli_PNP_Connect(struct rpc_pipe_client *cli,
52 TALLOC_CTX *mem_ctx,
53 WERROR *werror)
55 struct PNP_Connect r;
56 NTSTATUS status;
58 /* In parameters */
60 if (DEBUGLEVEL >= 10) {
61 NDR_PRINT_IN_DEBUG(PNP_Connect, &r);
64 status = cli_do_rpc_ndr(cli,
65 mem_ctx,
66 PI_NTSVCS,
67 &ndr_table_ntsvcs,
68 NDR_PNP_CONNECT,
69 &r);
71 if (!NT_STATUS_IS_OK(status)) {
72 return status;
75 if (DEBUGLEVEL >= 10) {
76 NDR_PRINT_OUT_DEBUG(PNP_Connect, &r);
79 if (NT_STATUS_IS_ERR(status)) {
80 return status;
83 /* Return variables */
85 /* Return result */
86 if (werror) {
87 *werror = r.out.result;
90 return werror_to_ntstatus(r.out.result);
93 NTSTATUS rpccli_PNP_GetVersion(struct rpc_pipe_client *cli,
94 TALLOC_CTX *mem_ctx,
95 uint16_t *version /* [out] [ref] */,
96 WERROR *werror)
98 struct PNP_GetVersion r;
99 NTSTATUS status;
101 /* In parameters */
103 if (DEBUGLEVEL >= 10) {
104 NDR_PRINT_IN_DEBUG(PNP_GetVersion, &r);
107 status = cli_do_rpc_ndr(cli,
108 mem_ctx,
109 PI_NTSVCS,
110 &ndr_table_ntsvcs,
111 NDR_PNP_GETVERSION,
112 &r);
114 if (!NT_STATUS_IS_OK(status)) {
115 return status;
118 if (DEBUGLEVEL >= 10) {
119 NDR_PRINT_OUT_DEBUG(PNP_GetVersion, &r);
122 if (NT_STATUS_IS_ERR(status)) {
123 return status;
126 /* Return variables */
127 *version = *r.out.version;
129 /* Return result */
130 if (werror) {
131 *werror = r.out.result;
134 return werror_to_ntstatus(r.out.result);
137 NTSTATUS rpccli_PNP_GetGlobalState(struct rpc_pipe_client *cli,
138 TALLOC_CTX *mem_ctx,
139 WERROR *werror)
141 struct PNP_GetGlobalState r;
142 NTSTATUS status;
144 /* In parameters */
146 if (DEBUGLEVEL >= 10) {
147 NDR_PRINT_IN_DEBUG(PNP_GetGlobalState, &r);
150 status = cli_do_rpc_ndr(cli,
151 mem_ctx,
152 PI_NTSVCS,
153 &ndr_table_ntsvcs,
154 NDR_PNP_GETGLOBALSTATE,
155 &r);
157 if (!NT_STATUS_IS_OK(status)) {
158 return status;
161 if (DEBUGLEVEL >= 10) {
162 NDR_PRINT_OUT_DEBUG(PNP_GetGlobalState, &r);
165 if (NT_STATUS_IS_ERR(status)) {
166 return status;
169 /* Return variables */
171 /* Return result */
172 if (werror) {
173 *werror = r.out.result;
176 return werror_to_ntstatus(r.out.result);
179 NTSTATUS rpccli_PNP_InitDetection(struct rpc_pipe_client *cli,
180 TALLOC_CTX *mem_ctx,
181 WERROR *werror)
183 struct PNP_InitDetection r;
184 NTSTATUS status;
186 /* In parameters */
188 if (DEBUGLEVEL >= 10) {
189 NDR_PRINT_IN_DEBUG(PNP_InitDetection, &r);
192 status = cli_do_rpc_ndr(cli,
193 mem_ctx,
194 PI_NTSVCS,
195 &ndr_table_ntsvcs,
196 NDR_PNP_INITDETECTION,
197 &r);
199 if (!NT_STATUS_IS_OK(status)) {
200 return status;
203 if (DEBUGLEVEL >= 10) {
204 NDR_PRINT_OUT_DEBUG(PNP_InitDetection, &r);
207 if (NT_STATUS_IS_ERR(status)) {
208 return status;
211 /* Return variables */
213 /* Return result */
214 if (werror) {
215 *werror = r.out.result;
218 return werror_to_ntstatus(r.out.result);
221 NTSTATUS rpccli_PNP_ReportLogOn(struct rpc_pipe_client *cli,
222 TALLOC_CTX *mem_ctx,
223 WERROR *werror)
225 struct PNP_ReportLogOn r;
226 NTSTATUS status;
228 /* In parameters */
230 if (DEBUGLEVEL >= 10) {
231 NDR_PRINT_IN_DEBUG(PNP_ReportLogOn, &r);
234 status = cli_do_rpc_ndr(cli,
235 mem_ctx,
236 PI_NTSVCS,
237 &ndr_table_ntsvcs,
238 NDR_PNP_REPORTLOGON,
239 &r);
241 if (!NT_STATUS_IS_OK(status)) {
242 return status;
245 if (DEBUGLEVEL >= 10) {
246 NDR_PRINT_OUT_DEBUG(PNP_ReportLogOn, &r);
249 if (NT_STATUS_IS_ERR(status)) {
250 return status;
253 /* Return variables */
255 /* Return result */
256 if (werror) {
257 *werror = r.out.result;
260 return werror_to_ntstatus(r.out.result);
263 NTSTATUS rpccli_PNP_ValidateDeviceInstance(struct rpc_pipe_client *cli,
264 TALLOC_CTX *mem_ctx,
265 const char *devicepath /* [in] [ref,charset(UTF16)] */,
266 uint32_t flags /* [in] */,
267 WERROR *werror)
269 struct PNP_ValidateDeviceInstance r;
270 NTSTATUS status;
272 /* In parameters */
273 r.in.devicepath = devicepath;
274 r.in.flags = flags;
276 if (DEBUGLEVEL >= 10) {
277 NDR_PRINT_IN_DEBUG(PNP_ValidateDeviceInstance, &r);
280 status = cli_do_rpc_ndr(cli,
281 mem_ctx,
282 PI_NTSVCS,
283 &ndr_table_ntsvcs,
284 NDR_PNP_VALIDATEDEVICEINSTANCE,
285 &r);
287 if (!NT_STATUS_IS_OK(status)) {
288 return status;
291 if (DEBUGLEVEL >= 10) {
292 NDR_PRINT_OUT_DEBUG(PNP_ValidateDeviceInstance, &r);
295 if (NT_STATUS_IS_ERR(status)) {
296 return status;
299 /* Return variables */
301 /* Return result */
302 if (werror) {
303 *werror = r.out.result;
306 return werror_to_ntstatus(r.out.result);
309 NTSTATUS rpccli_PNP_GetRootDeviceInstance(struct rpc_pipe_client *cli,
310 TALLOC_CTX *mem_ctx,
311 WERROR *werror)
313 struct PNP_GetRootDeviceInstance r;
314 NTSTATUS status;
316 /* In parameters */
318 if (DEBUGLEVEL >= 10) {
319 NDR_PRINT_IN_DEBUG(PNP_GetRootDeviceInstance, &r);
322 status = cli_do_rpc_ndr(cli,
323 mem_ctx,
324 PI_NTSVCS,
325 &ndr_table_ntsvcs,
326 NDR_PNP_GETROOTDEVICEINSTANCE,
327 &r);
329 if (!NT_STATUS_IS_OK(status)) {
330 return status;
333 if (DEBUGLEVEL >= 10) {
334 NDR_PRINT_OUT_DEBUG(PNP_GetRootDeviceInstance, &r);
337 if (NT_STATUS_IS_ERR(status)) {
338 return status;
341 /* Return variables */
343 /* Return result */
344 if (werror) {
345 *werror = r.out.result;
348 return werror_to_ntstatus(r.out.result);
351 NTSTATUS rpccli_PNP_GetRelatedDeviceInstance(struct rpc_pipe_client *cli,
352 TALLOC_CTX *mem_ctx,
353 WERROR *werror)
355 struct PNP_GetRelatedDeviceInstance r;
356 NTSTATUS status;
358 /* In parameters */
360 if (DEBUGLEVEL >= 10) {
361 NDR_PRINT_IN_DEBUG(PNP_GetRelatedDeviceInstance, &r);
364 status = cli_do_rpc_ndr(cli,
365 mem_ctx,
366 PI_NTSVCS,
367 &ndr_table_ntsvcs,
368 NDR_PNP_GETRELATEDDEVICEINSTANCE,
369 &r);
371 if (!NT_STATUS_IS_OK(status)) {
372 return status;
375 if (DEBUGLEVEL >= 10) {
376 NDR_PRINT_OUT_DEBUG(PNP_GetRelatedDeviceInstance, &r);
379 if (NT_STATUS_IS_ERR(status)) {
380 return status;
383 /* Return variables */
385 /* Return result */
386 if (werror) {
387 *werror = r.out.result;
390 return werror_to_ntstatus(r.out.result);
393 NTSTATUS rpccli_PNP_EnumerateSubKeys(struct rpc_pipe_client *cli,
394 TALLOC_CTX *mem_ctx,
395 WERROR *werror)
397 struct PNP_EnumerateSubKeys r;
398 NTSTATUS status;
400 /* In parameters */
402 if (DEBUGLEVEL >= 10) {
403 NDR_PRINT_IN_DEBUG(PNP_EnumerateSubKeys, &r);
406 status = cli_do_rpc_ndr(cli,
407 mem_ctx,
408 PI_NTSVCS,
409 &ndr_table_ntsvcs,
410 NDR_PNP_ENUMERATESUBKEYS,
411 &r);
413 if (!NT_STATUS_IS_OK(status)) {
414 return status;
417 if (DEBUGLEVEL >= 10) {
418 NDR_PRINT_OUT_DEBUG(PNP_EnumerateSubKeys, &r);
421 if (NT_STATUS_IS_ERR(status)) {
422 return status;
425 /* Return variables */
427 /* Return result */
428 if (werror) {
429 *werror = r.out.result;
432 return werror_to_ntstatus(r.out.result);
435 NTSTATUS rpccli_PNP_GetDeviceList(struct rpc_pipe_client *cli,
436 TALLOC_CTX *mem_ctx,
437 WERROR *werror)
439 struct PNP_GetDeviceList r;
440 NTSTATUS status;
442 /* In parameters */
444 if (DEBUGLEVEL >= 10) {
445 NDR_PRINT_IN_DEBUG(PNP_GetDeviceList, &r);
448 status = cli_do_rpc_ndr(cli,
449 mem_ctx,
450 PI_NTSVCS,
451 &ndr_table_ntsvcs,
452 NDR_PNP_GETDEVICELIST,
453 &r);
455 if (!NT_STATUS_IS_OK(status)) {
456 return status;
459 if (DEBUGLEVEL >= 10) {
460 NDR_PRINT_OUT_DEBUG(PNP_GetDeviceList, &r);
463 if (NT_STATUS_IS_ERR(status)) {
464 return status;
467 /* Return variables */
469 /* Return result */
470 if (werror) {
471 *werror = r.out.result;
474 return werror_to_ntstatus(r.out.result);
477 NTSTATUS rpccli_PNP_GetDeviceListSize(struct rpc_pipe_client *cli,
478 TALLOC_CTX *mem_ctx,
479 const char *devicename /* [in] [unique,charset(UTF16)] */,
480 uint32_t *size /* [out] [ref] */,
481 uint32_t flags /* [in] */,
482 WERROR *werror)
484 struct PNP_GetDeviceListSize r;
485 NTSTATUS status;
487 /* In parameters */
488 r.in.devicename = devicename;
489 r.in.flags = flags;
491 if (DEBUGLEVEL >= 10) {
492 NDR_PRINT_IN_DEBUG(PNP_GetDeviceListSize, &r);
495 status = cli_do_rpc_ndr(cli,
496 mem_ctx,
497 PI_NTSVCS,
498 &ndr_table_ntsvcs,
499 NDR_PNP_GETDEVICELISTSIZE,
500 &r);
502 if (!NT_STATUS_IS_OK(status)) {
503 return status;
506 if (DEBUGLEVEL >= 10) {
507 NDR_PRINT_OUT_DEBUG(PNP_GetDeviceListSize, &r);
510 if (NT_STATUS_IS_ERR(status)) {
511 return status;
514 /* Return variables */
515 *size = *r.out.size;
517 /* Return result */
518 if (werror) {
519 *werror = r.out.result;
522 return werror_to_ntstatus(r.out.result);
525 NTSTATUS rpccli_PNP_GetDepth(struct rpc_pipe_client *cli,
526 TALLOC_CTX *mem_ctx,
527 WERROR *werror)
529 struct PNP_GetDepth r;
530 NTSTATUS status;
532 /* In parameters */
534 if (DEBUGLEVEL >= 10) {
535 NDR_PRINT_IN_DEBUG(PNP_GetDepth, &r);
538 status = cli_do_rpc_ndr(cli,
539 mem_ctx,
540 PI_NTSVCS,
541 &ndr_table_ntsvcs,
542 NDR_PNP_GETDEPTH,
543 &r);
545 if (!NT_STATUS_IS_OK(status)) {
546 return status;
549 if (DEBUGLEVEL >= 10) {
550 NDR_PRINT_OUT_DEBUG(PNP_GetDepth, &r);
553 if (NT_STATUS_IS_ERR(status)) {
554 return status;
557 /* Return variables */
559 /* Return result */
560 if (werror) {
561 *werror = r.out.result;
564 return werror_to_ntstatus(r.out.result);
567 NTSTATUS rpccli_PNP_GetDeviceRegProp(struct rpc_pipe_client *cli,
568 TALLOC_CTX *mem_ctx,
569 WERROR *werror)
571 struct PNP_GetDeviceRegProp r;
572 NTSTATUS status;
574 /* In parameters */
576 if (DEBUGLEVEL >= 10) {
577 NDR_PRINT_IN_DEBUG(PNP_GetDeviceRegProp, &r);
580 status = cli_do_rpc_ndr(cli,
581 mem_ctx,
582 PI_NTSVCS,
583 &ndr_table_ntsvcs,
584 NDR_PNP_GETDEVICEREGPROP,
585 &r);
587 if (!NT_STATUS_IS_OK(status)) {
588 return status;
591 if (DEBUGLEVEL >= 10) {
592 NDR_PRINT_OUT_DEBUG(PNP_GetDeviceRegProp, &r);
595 if (NT_STATUS_IS_ERR(status)) {
596 return status;
599 /* Return variables */
601 /* Return result */
602 if (werror) {
603 *werror = r.out.result;
606 return werror_to_ntstatus(r.out.result);
609 NTSTATUS rpccli_PNP_SetDeviceRegProp(struct rpc_pipe_client *cli,
610 TALLOC_CTX *mem_ctx,
611 WERROR *werror)
613 struct PNP_SetDeviceRegProp r;
614 NTSTATUS status;
616 /* In parameters */
618 if (DEBUGLEVEL >= 10) {
619 NDR_PRINT_IN_DEBUG(PNP_SetDeviceRegProp, &r);
622 status = cli_do_rpc_ndr(cli,
623 mem_ctx,
624 PI_NTSVCS,
625 &ndr_table_ntsvcs,
626 NDR_PNP_SETDEVICEREGPROP,
627 &r);
629 if (!NT_STATUS_IS_OK(status)) {
630 return status;
633 if (DEBUGLEVEL >= 10) {
634 NDR_PRINT_OUT_DEBUG(PNP_SetDeviceRegProp, &r);
637 if (NT_STATUS_IS_ERR(status)) {
638 return status;
641 /* Return variables */
643 /* Return result */
644 if (werror) {
645 *werror = r.out.result;
648 return werror_to_ntstatus(r.out.result);
651 NTSTATUS rpccli_PNP_GetClassInstance(struct rpc_pipe_client *cli,
652 TALLOC_CTX *mem_ctx,
653 WERROR *werror)
655 struct PNP_GetClassInstance r;
656 NTSTATUS status;
658 /* In parameters */
660 if (DEBUGLEVEL >= 10) {
661 NDR_PRINT_IN_DEBUG(PNP_GetClassInstance, &r);
664 status = cli_do_rpc_ndr(cli,
665 mem_ctx,
666 PI_NTSVCS,
667 &ndr_table_ntsvcs,
668 NDR_PNP_GETCLASSINSTANCE,
669 &r);
671 if (!NT_STATUS_IS_OK(status)) {
672 return status;
675 if (DEBUGLEVEL >= 10) {
676 NDR_PRINT_OUT_DEBUG(PNP_GetClassInstance, &r);
679 if (NT_STATUS_IS_ERR(status)) {
680 return status;
683 /* Return variables */
685 /* Return result */
686 if (werror) {
687 *werror = r.out.result;
690 return werror_to_ntstatus(r.out.result);
693 NTSTATUS rpccli_PNP_CreateKey(struct rpc_pipe_client *cli,
694 TALLOC_CTX *mem_ctx,
695 WERROR *werror)
697 struct PNP_CreateKey r;
698 NTSTATUS status;
700 /* In parameters */
702 if (DEBUGLEVEL >= 10) {
703 NDR_PRINT_IN_DEBUG(PNP_CreateKey, &r);
706 status = cli_do_rpc_ndr(cli,
707 mem_ctx,
708 PI_NTSVCS,
709 &ndr_table_ntsvcs,
710 NDR_PNP_CREATEKEY,
711 &r);
713 if (!NT_STATUS_IS_OK(status)) {
714 return status;
717 if (DEBUGLEVEL >= 10) {
718 NDR_PRINT_OUT_DEBUG(PNP_CreateKey, &r);
721 if (NT_STATUS_IS_ERR(status)) {
722 return status;
725 /* Return variables */
727 /* Return result */
728 if (werror) {
729 *werror = r.out.result;
732 return werror_to_ntstatus(r.out.result);
735 NTSTATUS rpccli_PNP_DeleteRegistryKey(struct rpc_pipe_client *cli,
736 TALLOC_CTX *mem_ctx,
737 WERROR *werror)
739 struct PNP_DeleteRegistryKey r;
740 NTSTATUS status;
742 /* In parameters */
744 if (DEBUGLEVEL >= 10) {
745 NDR_PRINT_IN_DEBUG(PNP_DeleteRegistryKey, &r);
748 status = cli_do_rpc_ndr(cli,
749 mem_ctx,
750 PI_NTSVCS,
751 &ndr_table_ntsvcs,
752 NDR_PNP_DELETEREGISTRYKEY,
753 &r);
755 if (!NT_STATUS_IS_OK(status)) {
756 return status;
759 if (DEBUGLEVEL >= 10) {
760 NDR_PRINT_OUT_DEBUG(PNP_DeleteRegistryKey, &r);
763 if (NT_STATUS_IS_ERR(status)) {
764 return status;
767 /* Return variables */
769 /* Return result */
770 if (werror) {
771 *werror = r.out.result;
774 return werror_to_ntstatus(r.out.result);
777 NTSTATUS rpccli_PNP_GetClassCount(struct rpc_pipe_client *cli,
778 TALLOC_CTX *mem_ctx,
779 WERROR *werror)
781 struct PNP_GetClassCount r;
782 NTSTATUS status;
784 /* In parameters */
786 if (DEBUGLEVEL >= 10) {
787 NDR_PRINT_IN_DEBUG(PNP_GetClassCount, &r);
790 status = cli_do_rpc_ndr(cli,
791 mem_ctx,
792 PI_NTSVCS,
793 &ndr_table_ntsvcs,
794 NDR_PNP_GETCLASSCOUNT,
795 &r);
797 if (!NT_STATUS_IS_OK(status)) {
798 return status;
801 if (DEBUGLEVEL >= 10) {
802 NDR_PRINT_OUT_DEBUG(PNP_GetClassCount, &r);
805 if (NT_STATUS_IS_ERR(status)) {
806 return status;
809 /* Return variables */
811 /* Return result */
812 if (werror) {
813 *werror = r.out.result;
816 return werror_to_ntstatus(r.out.result);
819 NTSTATUS rpccli_PNP_GetClassName(struct rpc_pipe_client *cli,
820 TALLOC_CTX *mem_ctx,
821 WERROR *werror)
823 struct PNP_GetClassName r;
824 NTSTATUS status;
826 /* In parameters */
828 if (DEBUGLEVEL >= 10) {
829 NDR_PRINT_IN_DEBUG(PNP_GetClassName, &r);
832 status = cli_do_rpc_ndr(cli,
833 mem_ctx,
834 PI_NTSVCS,
835 &ndr_table_ntsvcs,
836 NDR_PNP_GETCLASSNAME,
837 &r);
839 if (!NT_STATUS_IS_OK(status)) {
840 return status;
843 if (DEBUGLEVEL >= 10) {
844 NDR_PRINT_OUT_DEBUG(PNP_GetClassName, &r);
847 if (NT_STATUS_IS_ERR(status)) {
848 return status;
851 /* Return variables */
853 /* Return result */
854 if (werror) {
855 *werror = r.out.result;
858 return werror_to_ntstatus(r.out.result);
861 NTSTATUS rpccli_PNP_DeleteClassKey(struct rpc_pipe_client *cli,
862 TALLOC_CTX *mem_ctx,
863 WERROR *werror)
865 struct PNP_DeleteClassKey r;
866 NTSTATUS status;
868 /* In parameters */
870 if (DEBUGLEVEL >= 10) {
871 NDR_PRINT_IN_DEBUG(PNP_DeleteClassKey, &r);
874 status = cli_do_rpc_ndr(cli,
875 mem_ctx,
876 PI_NTSVCS,
877 &ndr_table_ntsvcs,
878 NDR_PNP_DELETECLASSKEY,
879 &r);
881 if (!NT_STATUS_IS_OK(status)) {
882 return status;
885 if (DEBUGLEVEL >= 10) {
886 NDR_PRINT_OUT_DEBUG(PNP_DeleteClassKey, &r);
889 if (NT_STATUS_IS_ERR(status)) {
890 return status;
893 /* Return variables */
895 /* Return result */
896 if (werror) {
897 *werror = r.out.result;
900 return werror_to_ntstatus(r.out.result);
903 NTSTATUS rpccli_PNP_GetInterfaceDeviceAlias(struct rpc_pipe_client *cli,
904 TALLOC_CTX *mem_ctx,
905 WERROR *werror)
907 struct PNP_GetInterfaceDeviceAlias r;
908 NTSTATUS status;
910 /* In parameters */
912 if (DEBUGLEVEL >= 10) {
913 NDR_PRINT_IN_DEBUG(PNP_GetInterfaceDeviceAlias, &r);
916 status = cli_do_rpc_ndr(cli,
917 mem_ctx,
918 PI_NTSVCS,
919 &ndr_table_ntsvcs,
920 NDR_PNP_GETINTERFACEDEVICEALIAS,
921 &r);
923 if (!NT_STATUS_IS_OK(status)) {
924 return status;
927 if (DEBUGLEVEL >= 10) {
928 NDR_PRINT_OUT_DEBUG(PNP_GetInterfaceDeviceAlias, &r);
931 if (NT_STATUS_IS_ERR(status)) {
932 return status;
935 /* Return variables */
937 /* Return result */
938 if (werror) {
939 *werror = r.out.result;
942 return werror_to_ntstatus(r.out.result);
945 NTSTATUS rpccli_PNP_GetInterfaceDeviceList(struct rpc_pipe_client *cli,
946 TALLOC_CTX *mem_ctx,
947 WERROR *werror)
949 struct PNP_GetInterfaceDeviceList r;
950 NTSTATUS status;
952 /* In parameters */
954 if (DEBUGLEVEL >= 10) {
955 NDR_PRINT_IN_DEBUG(PNP_GetInterfaceDeviceList, &r);
958 status = cli_do_rpc_ndr(cli,
959 mem_ctx,
960 PI_NTSVCS,
961 &ndr_table_ntsvcs,
962 NDR_PNP_GETINTERFACEDEVICELIST,
963 &r);
965 if (!NT_STATUS_IS_OK(status)) {
966 return status;
969 if (DEBUGLEVEL >= 10) {
970 NDR_PRINT_OUT_DEBUG(PNP_GetInterfaceDeviceList, &r);
973 if (NT_STATUS_IS_ERR(status)) {
974 return status;
977 /* Return variables */
979 /* Return result */
980 if (werror) {
981 *werror = r.out.result;
984 return werror_to_ntstatus(r.out.result);
987 NTSTATUS rpccli_PNP_GetInterfaceDeviceListSize(struct rpc_pipe_client *cli,
988 TALLOC_CTX *mem_ctx,
989 WERROR *werror)
991 struct PNP_GetInterfaceDeviceListSize r;
992 NTSTATUS status;
994 /* In parameters */
996 if (DEBUGLEVEL >= 10) {
997 NDR_PRINT_IN_DEBUG(PNP_GetInterfaceDeviceListSize, &r);
1000 status = cli_do_rpc_ndr(cli,
1001 mem_ctx,
1002 PI_NTSVCS,
1003 &ndr_table_ntsvcs,
1004 NDR_PNP_GETINTERFACEDEVICELISTSIZE,
1005 &r);
1007 if (!NT_STATUS_IS_OK(status)) {
1008 return status;
1011 if (DEBUGLEVEL >= 10) {
1012 NDR_PRINT_OUT_DEBUG(PNP_GetInterfaceDeviceListSize, &r);
1015 if (NT_STATUS_IS_ERR(status)) {
1016 return status;
1019 /* Return variables */
1021 /* Return result */
1022 if (werror) {
1023 *werror = r.out.result;
1026 return werror_to_ntstatus(r.out.result);
1029 NTSTATUS rpccli_PNP_RegisterDeviceClassAssociation(struct rpc_pipe_client *cli,
1030 TALLOC_CTX *mem_ctx,
1031 WERROR *werror)
1033 struct PNP_RegisterDeviceClassAssociation r;
1034 NTSTATUS status;
1036 /* In parameters */
1038 if (DEBUGLEVEL >= 10) {
1039 NDR_PRINT_IN_DEBUG(PNP_RegisterDeviceClassAssociation, &r);
1042 status = cli_do_rpc_ndr(cli,
1043 mem_ctx,
1044 PI_NTSVCS,
1045 &ndr_table_ntsvcs,
1046 NDR_PNP_REGISTERDEVICECLASSASSOCIATION,
1047 &r);
1049 if (!NT_STATUS_IS_OK(status)) {
1050 return status;
1053 if (DEBUGLEVEL >= 10) {
1054 NDR_PRINT_OUT_DEBUG(PNP_RegisterDeviceClassAssociation, &r);
1057 if (NT_STATUS_IS_ERR(status)) {
1058 return status;
1061 /* Return variables */
1063 /* Return result */
1064 if (werror) {
1065 *werror = r.out.result;
1068 return werror_to_ntstatus(r.out.result);
1071 NTSTATUS rpccli_PNP_UnregisterDeviceClassAssociation(struct rpc_pipe_client *cli,
1072 TALLOC_CTX *mem_ctx,
1073 WERROR *werror)
1075 struct PNP_UnregisterDeviceClassAssociation r;
1076 NTSTATUS status;
1078 /* In parameters */
1080 if (DEBUGLEVEL >= 10) {
1081 NDR_PRINT_IN_DEBUG(PNP_UnregisterDeviceClassAssociation, &r);
1084 status = cli_do_rpc_ndr(cli,
1085 mem_ctx,
1086 PI_NTSVCS,
1087 &ndr_table_ntsvcs,
1088 NDR_PNP_UNREGISTERDEVICECLASSASSOCIATION,
1089 &r);
1091 if (!NT_STATUS_IS_OK(status)) {
1092 return status;
1095 if (DEBUGLEVEL >= 10) {
1096 NDR_PRINT_OUT_DEBUG(PNP_UnregisterDeviceClassAssociation, &r);
1099 if (NT_STATUS_IS_ERR(status)) {
1100 return status;
1103 /* Return variables */
1105 /* Return result */
1106 if (werror) {
1107 *werror = r.out.result;
1110 return werror_to_ntstatus(r.out.result);
1113 NTSTATUS rpccli_PNP_GetClassRegProp(struct rpc_pipe_client *cli,
1114 TALLOC_CTX *mem_ctx,
1115 WERROR *werror)
1117 struct PNP_GetClassRegProp r;
1118 NTSTATUS status;
1120 /* In parameters */
1122 if (DEBUGLEVEL >= 10) {
1123 NDR_PRINT_IN_DEBUG(PNP_GetClassRegProp, &r);
1126 status = cli_do_rpc_ndr(cli,
1127 mem_ctx,
1128 PI_NTSVCS,
1129 &ndr_table_ntsvcs,
1130 NDR_PNP_GETCLASSREGPROP,
1131 &r);
1133 if (!NT_STATUS_IS_OK(status)) {
1134 return status;
1137 if (DEBUGLEVEL >= 10) {
1138 NDR_PRINT_OUT_DEBUG(PNP_GetClassRegProp, &r);
1141 if (NT_STATUS_IS_ERR(status)) {
1142 return status;
1145 /* Return variables */
1147 /* Return result */
1148 if (werror) {
1149 *werror = r.out.result;
1152 return werror_to_ntstatus(r.out.result);
1155 NTSTATUS rpccli_PNP_SetClassRegProp(struct rpc_pipe_client *cli,
1156 TALLOC_CTX *mem_ctx,
1157 WERROR *werror)
1159 struct PNP_SetClassRegProp r;
1160 NTSTATUS status;
1162 /* In parameters */
1164 if (DEBUGLEVEL >= 10) {
1165 NDR_PRINT_IN_DEBUG(PNP_SetClassRegProp, &r);
1168 status = cli_do_rpc_ndr(cli,
1169 mem_ctx,
1170 PI_NTSVCS,
1171 &ndr_table_ntsvcs,
1172 NDR_PNP_SETCLASSREGPROP,
1173 &r);
1175 if (!NT_STATUS_IS_OK(status)) {
1176 return status;
1179 if (DEBUGLEVEL >= 10) {
1180 NDR_PRINT_OUT_DEBUG(PNP_SetClassRegProp, &r);
1183 if (NT_STATUS_IS_ERR(status)) {
1184 return status;
1187 /* Return variables */
1189 /* Return result */
1190 if (werror) {
1191 *werror = r.out.result;
1194 return werror_to_ntstatus(r.out.result);
1197 NTSTATUS rpccli_PNP_CreateDevInst(struct rpc_pipe_client *cli,
1198 TALLOC_CTX *mem_ctx,
1199 WERROR *werror)
1201 struct PNP_CreateDevInst r;
1202 NTSTATUS status;
1204 /* In parameters */
1206 if (DEBUGLEVEL >= 10) {
1207 NDR_PRINT_IN_DEBUG(PNP_CreateDevInst, &r);
1210 status = cli_do_rpc_ndr(cli,
1211 mem_ctx,
1212 PI_NTSVCS,
1213 &ndr_table_ntsvcs,
1214 NDR_PNP_CREATEDEVINST,
1215 &r);
1217 if (!NT_STATUS_IS_OK(status)) {
1218 return status;
1221 if (DEBUGLEVEL >= 10) {
1222 NDR_PRINT_OUT_DEBUG(PNP_CreateDevInst, &r);
1225 if (NT_STATUS_IS_ERR(status)) {
1226 return status;
1229 /* Return variables */
1231 /* Return result */
1232 if (werror) {
1233 *werror = r.out.result;
1236 return werror_to_ntstatus(r.out.result);
1239 NTSTATUS rpccli_PNP_DeviceInstanceAction(struct rpc_pipe_client *cli,
1240 TALLOC_CTX *mem_ctx,
1241 WERROR *werror)
1243 struct PNP_DeviceInstanceAction r;
1244 NTSTATUS status;
1246 /* In parameters */
1248 if (DEBUGLEVEL >= 10) {
1249 NDR_PRINT_IN_DEBUG(PNP_DeviceInstanceAction, &r);
1252 status = cli_do_rpc_ndr(cli,
1253 mem_ctx,
1254 PI_NTSVCS,
1255 &ndr_table_ntsvcs,
1256 NDR_PNP_DEVICEINSTANCEACTION,
1257 &r);
1259 if (!NT_STATUS_IS_OK(status)) {
1260 return status;
1263 if (DEBUGLEVEL >= 10) {
1264 NDR_PRINT_OUT_DEBUG(PNP_DeviceInstanceAction, &r);
1267 if (NT_STATUS_IS_ERR(status)) {
1268 return status;
1271 /* Return variables */
1273 /* Return result */
1274 if (werror) {
1275 *werror = r.out.result;
1278 return werror_to_ntstatus(r.out.result);
1281 NTSTATUS rpccli_PNP_GetDeviceStatus(struct rpc_pipe_client *cli,
1282 TALLOC_CTX *mem_ctx,
1283 WERROR *werror)
1285 struct PNP_GetDeviceStatus r;
1286 NTSTATUS status;
1288 /* In parameters */
1290 if (DEBUGLEVEL >= 10) {
1291 NDR_PRINT_IN_DEBUG(PNP_GetDeviceStatus, &r);
1294 status = cli_do_rpc_ndr(cli,
1295 mem_ctx,
1296 PI_NTSVCS,
1297 &ndr_table_ntsvcs,
1298 NDR_PNP_GETDEVICESTATUS,
1299 &r);
1301 if (!NT_STATUS_IS_OK(status)) {
1302 return status;
1305 if (DEBUGLEVEL >= 10) {
1306 NDR_PRINT_OUT_DEBUG(PNP_GetDeviceStatus, &r);
1309 if (NT_STATUS_IS_ERR(status)) {
1310 return status;
1313 /* Return variables */
1315 /* Return result */
1316 if (werror) {
1317 *werror = r.out.result;
1320 return werror_to_ntstatus(r.out.result);
1323 NTSTATUS rpccli_PNP_SetDeviceProblem(struct rpc_pipe_client *cli,
1324 TALLOC_CTX *mem_ctx,
1325 WERROR *werror)
1327 struct PNP_SetDeviceProblem r;
1328 NTSTATUS status;
1330 /* In parameters */
1332 if (DEBUGLEVEL >= 10) {
1333 NDR_PRINT_IN_DEBUG(PNP_SetDeviceProblem, &r);
1336 status = cli_do_rpc_ndr(cli,
1337 mem_ctx,
1338 PI_NTSVCS,
1339 &ndr_table_ntsvcs,
1340 NDR_PNP_SETDEVICEPROBLEM,
1341 &r);
1343 if (!NT_STATUS_IS_OK(status)) {
1344 return status;
1347 if (DEBUGLEVEL >= 10) {
1348 NDR_PRINT_OUT_DEBUG(PNP_SetDeviceProblem, &r);
1351 if (NT_STATUS_IS_ERR(status)) {
1352 return status;
1355 /* Return variables */
1357 /* Return result */
1358 if (werror) {
1359 *werror = r.out.result;
1362 return werror_to_ntstatus(r.out.result);
1365 NTSTATUS rpccli_PNP_DisableDevInst(struct rpc_pipe_client *cli,
1366 TALLOC_CTX *mem_ctx,
1367 WERROR *werror)
1369 struct PNP_DisableDevInst r;
1370 NTSTATUS status;
1372 /* In parameters */
1374 if (DEBUGLEVEL >= 10) {
1375 NDR_PRINT_IN_DEBUG(PNP_DisableDevInst, &r);
1378 status = cli_do_rpc_ndr(cli,
1379 mem_ctx,
1380 PI_NTSVCS,
1381 &ndr_table_ntsvcs,
1382 NDR_PNP_DISABLEDEVINST,
1383 &r);
1385 if (!NT_STATUS_IS_OK(status)) {
1386 return status;
1389 if (DEBUGLEVEL >= 10) {
1390 NDR_PRINT_OUT_DEBUG(PNP_DisableDevInst, &r);
1393 if (NT_STATUS_IS_ERR(status)) {
1394 return status;
1397 /* Return variables */
1399 /* Return result */
1400 if (werror) {
1401 *werror = r.out.result;
1404 return werror_to_ntstatus(r.out.result);
1407 NTSTATUS rpccli_PNP_UninstallDevInst(struct rpc_pipe_client *cli,
1408 TALLOC_CTX *mem_ctx,
1409 WERROR *werror)
1411 struct PNP_UninstallDevInst r;
1412 NTSTATUS status;
1414 /* In parameters */
1416 if (DEBUGLEVEL >= 10) {
1417 NDR_PRINT_IN_DEBUG(PNP_UninstallDevInst, &r);
1420 status = cli_do_rpc_ndr(cli,
1421 mem_ctx,
1422 PI_NTSVCS,
1423 &ndr_table_ntsvcs,
1424 NDR_PNP_UNINSTALLDEVINST,
1425 &r);
1427 if (!NT_STATUS_IS_OK(status)) {
1428 return status;
1431 if (DEBUGLEVEL >= 10) {
1432 NDR_PRINT_OUT_DEBUG(PNP_UninstallDevInst, &r);
1435 if (NT_STATUS_IS_ERR(status)) {
1436 return status;
1439 /* Return variables */
1441 /* Return result */
1442 if (werror) {
1443 *werror = r.out.result;
1446 return werror_to_ntstatus(r.out.result);
1449 NTSTATUS rpccli_PNP_AddID(struct rpc_pipe_client *cli,
1450 TALLOC_CTX *mem_ctx,
1451 WERROR *werror)
1453 struct PNP_AddID r;
1454 NTSTATUS status;
1456 /* In parameters */
1458 if (DEBUGLEVEL >= 10) {
1459 NDR_PRINT_IN_DEBUG(PNP_AddID, &r);
1462 status = cli_do_rpc_ndr(cli,
1463 mem_ctx,
1464 PI_NTSVCS,
1465 &ndr_table_ntsvcs,
1466 NDR_PNP_ADDID,
1467 &r);
1469 if (!NT_STATUS_IS_OK(status)) {
1470 return status;
1473 if (DEBUGLEVEL >= 10) {
1474 NDR_PRINT_OUT_DEBUG(PNP_AddID, &r);
1477 if (NT_STATUS_IS_ERR(status)) {
1478 return status;
1481 /* Return variables */
1483 /* Return result */
1484 if (werror) {
1485 *werror = r.out.result;
1488 return werror_to_ntstatus(r.out.result);
1491 NTSTATUS rpccli_PNP_RegisterDriver(struct rpc_pipe_client *cli,
1492 TALLOC_CTX *mem_ctx,
1493 WERROR *werror)
1495 struct PNP_RegisterDriver r;
1496 NTSTATUS status;
1498 /* In parameters */
1500 if (DEBUGLEVEL >= 10) {
1501 NDR_PRINT_IN_DEBUG(PNP_RegisterDriver, &r);
1504 status = cli_do_rpc_ndr(cli,
1505 mem_ctx,
1506 PI_NTSVCS,
1507 &ndr_table_ntsvcs,
1508 NDR_PNP_REGISTERDRIVER,
1509 &r);
1511 if (!NT_STATUS_IS_OK(status)) {
1512 return status;
1515 if (DEBUGLEVEL >= 10) {
1516 NDR_PRINT_OUT_DEBUG(PNP_RegisterDriver, &r);
1519 if (NT_STATUS_IS_ERR(status)) {
1520 return status;
1523 /* Return variables */
1525 /* Return result */
1526 if (werror) {
1527 *werror = r.out.result;
1530 return werror_to_ntstatus(r.out.result);
1533 NTSTATUS rpccli_PNP_QueryRemove(struct rpc_pipe_client *cli,
1534 TALLOC_CTX *mem_ctx,
1535 WERROR *werror)
1537 struct PNP_QueryRemove r;
1538 NTSTATUS status;
1540 /* In parameters */
1542 if (DEBUGLEVEL >= 10) {
1543 NDR_PRINT_IN_DEBUG(PNP_QueryRemove, &r);
1546 status = cli_do_rpc_ndr(cli,
1547 mem_ctx,
1548 PI_NTSVCS,
1549 &ndr_table_ntsvcs,
1550 NDR_PNP_QUERYREMOVE,
1551 &r);
1553 if (!NT_STATUS_IS_OK(status)) {
1554 return status;
1557 if (DEBUGLEVEL >= 10) {
1558 NDR_PRINT_OUT_DEBUG(PNP_QueryRemove, &r);
1561 if (NT_STATUS_IS_ERR(status)) {
1562 return status;
1565 /* Return variables */
1567 /* Return result */
1568 if (werror) {
1569 *werror = r.out.result;
1572 return werror_to_ntstatus(r.out.result);
1575 NTSTATUS rpccli_PNP_RequestDeviceEject(struct rpc_pipe_client *cli,
1576 TALLOC_CTX *mem_ctx,
1577 WERROR *werror)
1579 struct PNP_RequestDeviceEject r;
1580 NTSTATUS status;
1582 /* In parameters */
1584 if (DEBUGLEVEL >= 10) {
1585 NDR_PRINT_IN_DEBUG(PNP_RequestDeviceEject, &r);
1588 status = cli_do_rpc_ndr(cli,
1589 mem_ctx,
1590 PI_NTSVCS,
1591 &ndr_table_ntsvcs,
1592 NDR_PNP_REQUESTDEVICEEJECT,
1593 &r);
1595 if (!NT_STATUS_IS_OK(status)) {
1596 return status;
1599 if (DEBUGLEVEL >= 10) {
1600 NDR_PRINT_OUT_DEBUG(PNP_RequestDeviceEject, &r);
1603 if (NT_STATUS_IS_ERR(status)) {
1604 return status;
1607 /* Return variables */
1609 /* Return result */
1610 if (werror) {
1611 *werror = r.out.result;
1614 return werror_to_ntstatus(r.out.result);
1617 NTSTATUS rpccli_PNP_IsDockStationPresent(struct rpc_pipe_client *cli,
1618 TALLOC_CTX *mem_ctx,
1619 WERROR *werror)
1621 struct PNP_IsDockStationPresent r;
1622 NTSTATUS status;
1624 /* In parameters */
1626 if (DEBUGLEVEL >= 10) {
1627 NDR_PRINT_IN_DEBUG(PNP_IsDockStationPresent, &r);
1630 status = cli_do_rpc_ndr(cli,
1631 mem_ctx,
1632 PI_NTSVCS,
1633 &ndr_table_ntsvcs,
1634 NDR_PNP_ISDOCKSTATIONPRESENT,
1635 &r);
1637 if (!NT_STATUS_IS_OK(status)) {
1638 return status;
1641 if (DEBUGLEVEL >= 10) {
1642 NDR_PRINT_OUT_DEBUG(PNP_IsDockStationPresent, &r);
1645 if (NT_STATUS_IS_ERR(status)) {
1646 return status;
1649 /* Return variables */
1651 /* Return result */
1652 if (werror) {
1653 *werror = r.out.result;
1656 return werror_to_ntstatus(r.out.result);
1659 NTSTATUS rpccli_PNP_RequestEjectPC(struct rpc_pipe_client *cli,
1660 TALLOC_CTX *mem_ctx,
1661 WERROR *werror)
1663 struct PNP_RequestEjectPC r;
1664 NTSTATUS status;
1666 /* In parameters */
1668 if (DEBUGLEVEL >= 10) {
1669 NDR_PRINT_IN_DEBUG(PNP_RequestEjectPC, &r);
1672 status = cli_do_rpc_ndr(cli,
1673 mem_ctx,
1674 PI_NTSVCS,
1675 &ndr_table_ntsvcs,
1676 NDR_PNP_REQUESTEJECTPC,
1677 &r);
1679 if (!NT_STATUS_IS_OK(status)) {
1680 return status;
1683 if (DEBUGLEVEL >= 10) {
1684 NDR_PRINT_OUT_DEBUG(PNP_RequestEjectPC, &r);
1687 if (NT_STATUS_IS_ERR(status)) {
1688 return status;
1691 /* Return variables */
1693 /* Return result */
1694 if (werror) {
1695 *werror = r.out.result;
1698 return werror_to_ntstatus(r.out.result);
1701 NTSTATUS rpccli_PNP_HwProfFlags(struct rpc_pipe_client *cli,
1702 TALLOC_CTX *mem_ctx,
1703 uint32_t unknown1 /* [in] */,
1704 const char *devicepath /* [in] [ref,charset(UTF16)] */,
1705 uint32_t unknown2 /* [in] */,
1706 uint32_t *unknown3 /* [in,out] [ref] */,
1707 uint16_t *unknown4 /* [in,out] [unique] */,
1708 const char *unknown5 /* [in] [unique,charset(UTF16)] */,
1709 const char **unknown5a /* [out] [unique,charset(UTF16)] */,
1710 uint32_t unknown6 /* [in] */,
1711 uint32_t unknown7 /* [in] */,
1712 WERROR *werror)
1714 struct PNP_HwProfFlags r;
1715 NTSTATUS status;
1717 /* In parameters */
1718 r.in.unknown1 = unknown1;
1719 r.in.devicepath = devicepath;
1720 r.in.unknown2 = unknown2;
1721 r.in.unknown3 = unknown3;
1722 r.in.unknown4 = unknown4;
1723 r.in.unknown5 = unknown5;
1724 r.in.unknown6 = unknown6;
1725 r.in.unknown7 = unknown7;
1727 if (DEBUGLEVEL >= 10) {
1728 NDR_PRINT_IN_DEBUG(PNP_HwProfFlags, &r);
1731 status = cli_do_rpc_ndr(cli,
1732 mem_ctx,
1733 PI_NTSVCS,
1734 &ndr_table_ntsvcs,
1735 NDR_PNP_HWPROFFLAGS,
1736 &r);
1738 if (!NT_STATUS_IS_OK(status)) {
1739 return status;
1742 if (DEBUGLEVEL >= 10) {
1743 NDR_PRINT_OUT_DEBUG(PNP_HwProfFlags, &r);
1746 if (NT_STATUS_IS_ERR(status)) {
1747 return status;
1750 /* Return variables */
1751 *unknown3 = *r.out.unknown3;
1752 if (unknown4 && r.out.unknown4) {
1753 *unknown4 = *r.out.unknown4;
1755 if (unknown5a && r.out.unknown5a) {
1756 *unknown5a = *r.out.unknown5a;
1759 /* Return result */
1760 if (werror) {
1761 *werror = r.out.result;
1764 return werror_to_ntstatus(r.out.result);
1767 NTSTATUS rpccli_PNP_GetHwProfInfo(struct rpc_pipe_client *cli,
1768 TALLOC_CTX *mem_ctx,
1769 uint32_t idx /* [in] */,
1770 struct PNP_HwProfInfo *info /* [in,out] [ref] */,
1771 uint32_t size /* [in] */,
1772 uint32_t flags /* [in] */,
1773 WERROR *werror)
1775 struct PNP_GetHwProfInfo r;
1776 NTSTATUS status;
1778 /* In parameters */
1779 r.in.idx = idx;
1780 r.in.info = info;
1781 r.in.size = size;
1782 r.in.flags = flags;
1784 if (DEBUGLEVEL >= 10) {
1785 NDR_PRINT_IN_DEBUG(PNP_GetHwProfInfo, &r);
1788 status = cli_do_rpc_ndr(cli,
1789 mem_ctx,
1790 PI_NTSVCS,
1791 &ndr_table_ntsvcs,
1792 NDR_PNP_GETHWPROFINFO,
1793 &r);
1795 if (!NT_STATUS_IS_OK(status)) {
1796 return status;
1799 if (DEBUGLEVEL >= 10) {
1800 NDR_PRINT_OUT_DEBUG(PNP_GetHwProfInfo, &r);
1803 if (NT_STATUS_IS_ERR(status)) {
1804 return status;
1807 /* Return variables */
1808 *info = *r.out.info;
1810 /* Return result */
1811 if (werror) {
1812 *werror = r.out.result;
1815 return werror_to_ntstatus(r.out.result);
1818 NTSTATUS rpccli_PNP_AddEmptyLogConf(struct rpc_pipe_client *cli,
1819 TALLOC_CTX *mem_ctx,
1820 WERROR *werror)
1822 struct PNP_AddEmptyLogConf r;
1823 NTSTATUS status;
1825 /* In parameters */
1827 if (DEBUGLEVEL >= 10) {
1828 NDR_PRINT_IN_DEBUG(PNP_AddEmptyLogConf, &r);
1831 status = cli_do_rpc_ndr(cli,
1832 mem_ctx,
1833 PI_NTSVCS,
1834 &ndr_table_ntsvcs,
1835 NDR_PNP_ADDEMPTYLOGCONF,
1836 &r);
1838 if (!NT_STATUS_IS_OK(status)) {
1839 return status;
1842 if (DEBUGLEVEL >= 10) {
1843 NDR_PRINT_OUT_DEBUG(PNP_AddEmptyLogConf, &r);
1846 if (NT_STATUS_IS_ERR(status)) {
1847 return status;
1850 /* Return variables */
1852 /* Return result */
1853 if (werror) {
1854 *werror = r.out.result;
1857 return werror_to_ntstatus(r.out.result);
1860 NTSTATUS rpccli_PNP_FreeLogConf(struct rpc_pipe_client *cli,
1861 TALLOC_CTX *mem_ctx,
1862 WERROR *werror)
1864 struct PNP_FreeLogConf r;
1865 NTSTATUS status;
1867 /* In parameters */
1869 if (DEBUGLEVEL >= 10) {
1870 NDR_PRINT_IN_DEBUG(PNP_FreeLogConf, &r);
1873 status = cli_do_rpc_ndr(cli,
1874 mem_ctx,
1875 PI_NTSVCS,
1876 &ndr_table_ntsvcs,
1877 NDR_PNP_FREELOGCONF,
1878 &r);
1880 if (!NT_STATUS_IS_OK(status)) {
1881 return status;
1884 if (DEBUGLEVEL >= 10) {
1885 NDR_PRINT_OUT_DEBUG(PNP_FreeLogConf, &r);
1888 if (NT_STATUS_IS_ERR(status)) {
1889 return status;
1892 /* Return variables */
1894 /* Return result */
1895 if (werror) {
1896 *werror = r.out.result;
1899 return werror_to_ntstatus(r.out.result);
1902 NTSTATUS rpccli_PNP_GetFirstLogConf(struct rpc_pipe_client *cli,
1903 TALLOC_CTX *mem_ctx,
1904 WERROR *werror)
1906 struct PNP_GetFirstLogConf r;
1907 NTSTATUS status;
1909 /* In parameters */
1911 if (DEBUGLEVEL >= 10) {
1912 NDR_PRINT_IN_DEBUG(PNP_GetFirstLogConf, &r);
1915 status = cli_do_rpc_ndr(cli,
1916 mem_ctx,
1917 PI_NTSVCS,
1918 &ndr_table_ntsvcs,
1919 NDR_PNP_GETFIRSTLOGCONF,
1920 &r);
1922 if (!NT_STATUS_IS_OK(status)) {
1923 return status;
1926 if (DEBUGLEVEL >= 10) {
1927 NDR_PRINT_OUT_DEBUG(PNP_GetFirstLogConf, &r);
1930 if (NT_STATUS_IS_ERR(status)) {
1931 return status;
1934 /* Return variables */
1936 /* Return result */
1937 if (werror) {
1938 *werror = r.out.result;
1941 return werror_to_ntstatus(r.out.result);
1944 NTSTATUS rpccli_PNP_GetNextLogConf(struct rpc_pipe_client *cli,
1945 TALLOC_CTX *mem_ctx,
1946 WERROR *werror)
1948 struct PNP_GetNextLogConf r;
1949 NTSTATUS status;
1951 /* In parameters */
1953 if (DEBUGLEVEL >= 10) {
1954 NDR_PRINT_IN_DEBUG(PNP_GetNextLogConf, &r);
1957 status = cli_do_rpc_ndr(cli,
1958 mem_ctx,
1959 PI_NTSVCS,
1960 &ndr_table_ntsvcs,
1961 NDR_PNP_GETNEXTLOGCONF,
1962 &r);
1964 if (!NT_STATUS_IS_OK(status)) {
1965 return status;
1968 if (DEBUGLEVEL >= 10) {
1969 NDR_PRINT_OUT_DEBUG(PNP_GetNextLogConf, &r);
1972 if (NT_STATUS_IS_ERR(status)) {
1973 return status;
1976 /* Return variables */
1978 /* Return result */
1979 if (werror) {
1980 *werror = r.out.result;
1983 return werror_to_ntstatus(r.out.result);
1986 NTSTATUS rpccli_PNP_GetLogConfPriority(struct rpc_pipe_client *cli,
1987 TALLOC_CTX *mem_ctx,
1988 WERROR *werror)
1990 struct PNP_GetLogConfPriority r;
1991 NTSTATUS status;
1993 /* In parameters */
1995 if (DEBUGLEVEL >= 10) {
1996 NDR_PRINT_IN_DEBUG(PNP_GetLogConfPriority, &r);
1999 status = cli_do_rpc_ndr(cli,
2000 mem_ctx,
2001 PI_NTSVCS,
2002 &ndr_table_ntsvcs,
2003 NDR_PNP_GETLOGCONFPRIORITY,
2004 &r);
2006 if (!NT_STATUS_IS_OK(status)) {
2007 return status;
2010 if (DEBUGLEVEL >= 10) {
2011 NDR_PRINT_OUT_DEBUG(PNP_GetLogConfPriority, &r);
2014 if (NT_STATUS_IS_ERR(status)) {
2015 return status;
2018 /* Return variables */
2020 /* Return result */
2021 if (werror) {
2022 *werror = r.out.result;
2025 return werror_to_ntstatus(r.out.result);
2028 NTSTATUS rpccli_PNP_AddResDes(struct rpc_pipe_client *cli,
2029 TALLOC_CTX *mem_ctx,
2030 WERROR *werror)
2032 struct PNP_AddResDes r;
2033 NTSTATUS status;
2035 /* In parameters */
2037 if (DEBUGLEVEL >= 10) {
2038 NDR_PRINT_IN_DEBUG(PNP_AddResDes, &r);
2041 status = cli_do_rpc_ndr(cli,
2042 mem_ctx,
2043 PI_NTSVCS,
2044 &ndr_table_ntsvcs,
2045 NDR_PNP_ADDRESDES,
2046 &r);
2048 if (!NT_STATUS_IS_OK(status)) {
2049 return status;
2052 if (DEBUGLEVEL >= 10) {
2053 NDR_PRINT_OUT_DEBUG(PNP_AddResDes, &r);
2056 if (NT_STATUS_IS_ERR(status)) {
2057 return status;
2060 /* Return variables */
2062 /* Return result */
2063 if (werror) {
2064 *werror = r.out.result;
2067 return werror_to_ntstatus(r.out.result);
2070 NTSTATUS rpccli_PNP_FreeResDes(struct rpc_pipe_client *cli,
2071 TALLOC_CTX *mem_ctx,
2072 WERROR *werror)
2074 struct PNP_FreeResDes r;
2075 NTSTATUS status;
2077 /* In parameters */
2079 if (DEBUGLEVEL >= 10) {
2080 NDR_PRINT_IN_DEBUG(PNP_FreeResDes, &r);
2083 status = cli_do_rpc_ndr(cli,
2084 mem_ctx,
2085 PI_NTSVCS,
2086 &ndr_table_ntsvcs,
2087 NDR_PNP_FREERESDES,
2088 &r);
2090 if (!NT_STATUS_IS_OK(status)) {
2091 return status;
2094 if (DEBUGLEVEL >= 10) {
2095 NDR_PRINT_OUT_DEBUG(PNP_FreeResDes, &r);
2098 if (NT_STATUS_IS_ERR(status)) {
2099 return status;
2102 /* Return variables */
2104 /* Return result */
2105 if (werror) {
2106 *werror = r.out.result;
2109 return werror_to_ntstatus(r.out.result);
2112 NTSTATUS rpccli_PNP_GetNextResDes(struct rpc_pipe_client *cli,
2113 TALLOC_CTX *mem_ctx,
2114 WERROR *werror)
2116 struct PNP_GetNextResDes r;
2117 NTSTATUS status;
2119 /* In parameters */
2121 if (DEBUGLEVEL >= 10) {
2122 NDR_PRINT_IN_DEBUG(PNP_GetNextResDes, &r);
2125 status = cli_do_rpc_ndr(cli,
2126 mem_ctx,
2127 PI_NTSVCS,
2128 &ndr_table_ntsvcs,
2129 NDR_PNP_GETNEXTRESDES,
2130 &r);
2132 if (!NT_STATUS_IS_OK(status)) {
2133 return status;
2136 if (DEBUGLEVEL >= 10) {
2137 NDR_PRINT_OUT_DEBUG(PNP_GetNextResDes, &r);
2140 if (NT_STATUS_IS_ERR(status)) {
2141 return status;
2144 /* Return variables */
2146 /* Return result */
2147 if (werror) {
2148 *werror = r.out.result;
2151 return werror_to_ntstatus(r.out.result);
2154 NTSTATUS rpccli_PNP_GetResDesData(struct rpc_pipe_client *cli,
2155 TALLOC_CTX *mem_ctx,
2156 WERROR *werror)
2158 struct PNP_GetResDesData r;
2159 NTSTATUS status;
2161 /* In parameters */
2163 if (DEBUGLEVEL >= 10) {
2164 NDR_PRINT_IN_DEBUG(PNP_GetResDesData, &r);
2167 status = cli_do_rpc_ndr(cli,
2168 mem_ctx,
2169 PI_NTSVCS,
2170 &ndr_table_ntsvcs,
2171 NDR_PNP_GETRESDESDATA,
2172 &r);
2174 if (!NT_STATUS_IS_OK(status)) {
2175 return status;
2178 if (DEBUGLEVEL >= 10) {
2179 NDR_PRINT_OUT_DEBUG(PNP_GetResDesData, &r);
2182 if (NT_STATUS_IS_ERR(status)) {
2183 return status;
2186 /* Return variables */
2188 /* Return result */
2189 if (werror) {
2190 *werror = r.out.result;
2193 return werror_to_ntstatus(r.out.result);
2196 NTSTATUS rpccli_PNP_GetResDesDataSize(struct rpc_pipe_client *cli,
2197 TALLOC_CTX *mem_ctx,
2198 WERROR *werror)
2200 struct PNP_GetResDesDataSize r;
2201 NTSTATUS status;
2203 /* In parameters */
2205 if (DEBUGLEVEL >= 10) {
2206 NDR_PRINT_IN_DEBUG(PNP_GetResDesDataSize, &r);
2209 status = cli_do_rpc_ndr(cli,
2210 mem_ctx,
2211 PI_NTSVCS,
2212 &ndr_table_ntsvcs,
2213 NDR_PNP_GETRESDESDATASIZE,
2214 &r);
2216 if (!NT_STATUS_IS_OK(status)) {
2217 return status;
2220 if (DEBUGLEVEL >= 10) {
2221 NDR_PRINT_OUT_DEBUG(PNP_GetResDesDataSize, &r);
2224 if (NT_STATUS_IS_ERR(status)) {
2225 return status;
2228 /* Return variables */
2230 /* Return result */
2231 if (werror) {
2232 *werror = r.out.result;
2235 return werror_to_ntstatus(r.out.result);
2238 NTSTATUS rpccli_PNP_ModifyResDes(struct rpc_pipe_client *cli,
2239 TALLOC_CTX *mem_ctx,
2240 WERROR *werror)
2242 struct PNP_ModifyResDes r;
2243 NTSTATUS status;
2245 /* In parameters */
2247 if (DEBUGLEVEL >= 10) {
2248 NDR_PRINT_IN_DEBUG(PNP_ModifyResDes, &r);
2251 status = cli_do_rpc_ndr(cli,
2252 mem_ctx,
2253 PI_NTSVCS,
2254 &ndr_table_ntsvcs,
2255 NDR_PNP_MODIFYRESDES,
2256 &r);
2258 if (!NT_STATUS_IS_OK(status)) {
2259 return status;
2262 if (DEBUGLEVEL >= 10) {
2263 NDR_PRINT_OUT_DEBUG(PNP_ModifyResDes, &r);
2266 if (NT_STATUS_IS_ERR(status)) {
2267 return status;
2270 /* Return variables */
2272 /* Return result */
2273 if (werror) {
2274 *werror = r.out.result;
2277 return werror_to_ntstatus(r.out.result);
2280 NTSTATUS rpccli_PNP_DetectResourceLimit(struct rpc_pipe_client *cli,
2281 TALLOC_CTX *mem_ctx,
2282 WERROR *werror)
2284 struct PNP_DetectResourceLimit r;
2285 NTSTATUS status;
2287 /* In parameters */
2289 if (DEBUGLEVEL >= 10) {
2290 NDR_PRINT_IN_DEBUG(PNP_DetectResourceLimit, &r);
2293 status = cli_do_rpc_ndr(cli,
2294 mem_ctx,
2295 PI_NTSVCS,
2296 &ndr_table_ntsvcs,
2297 NDR_PNP_DETECTRESOURCELIMIT,
2298 &r);
2300 if (!NT_STATUS_IS_OK(status)) {
2301 return status;
2304 if (DEBUGLEVEL >= 10) {
2305 NDR_PRINT_OUT_DEBUG(PNP_DetectResourceLimit, &r);
2308 if (NT_STATUS_IS_ERR(status)) {
2309 return status;
2312 /* Return variables */
2314 /* Return result */
2315 if (werror) {
2316 *werror = r.out.result;
2319 return werror_to_ntstatus(r.out.result);
2322 NTSTATUS rpccli_PNP_QueryResConfList(struct rpc_pipe_client *cli,
2323 TALLOC_CTX *mem_ctx,
2324 WERROR *werror)
2326 struct PNP_QueryResConfList r;
2327 NTSTATUS status;
2329 /* In parameters */
2331 if (DEBUGLEVEL >= 10) {
2332 NDR_PRINT_IN_DEBUG(PNP_QueryResConfList, &r);
2335 status = cli_do_rpc_ndr(cli,
2336 mem_ctx,
2337 PI_NTSVCS,
2338 &ndr_table_ntsvcs,
2339 NDR_PNP_QUERYRESCONFLIST,
2340 &r);
2342 if (!NT_STATUS_IS_OK(status)) {
2343 return status;
2346 if (DEBUGLEVEL >= 10) {
2347 NDR_PRINT_OUT_DEBUG(PNP_QueryResConfList, &r);
2350 if (NT_STATUS_IS_ERR(status)) {
2351 return status;
2354 /* Return variables */
2356 /* Return result */
2357 if (werror) {
2358 *werror = r.out.result;
2361 return werror_to_ntstatus(r.out.result);
2364 NTSTATUS rpccli_PNP_SetHwProf(struct rpc_pipe_client *cli,
2365 TALLOC_CTX *mem_ctx,
2366 WERROR *werror)
2368 struct PNP_SetHwProf r;
2369 NTSTATUS status;
2371 /* In parameters */
2373 if (DEBUGLEVEL >= 10) {
2374 NDR_PRINT_IN_DEBUG(PNP_SetHwProf, &r);
2377 status = cli_do_rpc_ndr(cli,
2378 mem_ctx,
2379 PI_NTSVCS,
2380 &ndr_table_ntsvcs,
2381 NDR_PNP_SETHWPROF,
2382 &r);
2384 if (!NT_STATUS_IS_OK(status)) {
2385 return status;
2388 if (DEBUGLEVEL >= 10) {
2389 NDR_PRINT_OUT_DEBUG(PNP_SetHwProf, &r);
2392 if (NT_STATUS_IS_ERR(status)) {
2393 return status;
2396 /* Return variables */
2398 /* Return result */
2399 if (werror) {
2400 *werror = r.out.result;
2403 return werror_to_ntstatus(r.out.result);
2406 NTSTATUS rpccli_PNP_QueryArbitratorFreeData(struct rpc_pipe_client *cli,
2407 TALLOC_CTX *mem_ctx,
2408 WERROR *werror)
2410 struct PNP_QueryArbitratorFreeData r;
2411 NTSTATUS status;
2413 /* In parameters */
2415 if (DEBUGLEVEL >= 10) {
2416 NDR_PRINT_IN_DEBUG(PNP_QueryArbitratorFreeData, &r);
2419 status = cli_do_rpc_ndr(cli,
2420 mem_ctx,
2421 PI_NTSVCS,
2422 &ndr_table_ntsvcs,
2423 NDR_PNP_QUERYARBITRATORFREEDATA,
2424 &r);
2426 if (!NT_STATUS_IS_OK(status)) {
2427 return status;
2430 if (DEBUGLEVEL >= 10) {
2431 NDR_PRINT_OUT_DEBUG(PNP_QueryArbitratorFreeData, &r);
2434 if (NT_STATUS_IS_ERR(status)) {
2435 return status;
2438 /* Return variables */
2440 /* Return result */
2441 if (werror) {
2442 *werror = r.out.result;
2445 return werror_to_ntstatus(r.out.result);
2448 NTSTATUS rpccli_PNP_QueryArbitratorFreeSize(struct rpc_pipe_client *cli,
2449 TALLOC_CTX *mem_ctx,
2450 WERROR *werror)
2452 struct PNP_QueryArbitratorFreeSize r;
2453 NTSTATUS status;
2455 /* In parameters */
2457 if (DEBUGLEVEL >= 10) {
2458 NDR_PRINT_IN_DEBUG(PNP_QueryArbitratorFreeSize, &r);
2461 status = cli_do_rpc_ndr(cli,
2462 mem_ctx,
2463 PI_NTSVCS,
2464 &ndr_table_ntsvcs,
2465 NDR_PNP_QUERYARBITRATORFREESIZE,
2466 &r);
2468 if (!NT_STATUS_IS_OK(status)) {
2469 return status;
2472 if (DEBUGLEVEL >= 10) {
2473 NDR_PRINT_OUT_DEBUG(PNP_QueryArbitratorFreeSize, &r);
2476 if (NT_STATUS_IS_ERR(status)) {
2477 return status;
2480 /* Return variables */
2482 /* Return result */
2483 if (werror) {
2484 *werror = r.out.result;
2487 return werror_to_ntstatus(r.out.result);
2490 NTSTATUS rpccli_PNP_RunDetection(struct rpc_pipe_client *cli,
2491 TALLOC_CTX *mem_ctx,
2492 WERROR *werror)
2494 struct PNP_RunDetection r;
2495 NTSTATUS status;
2497 /* In parameters */
2499 if (DEBUGLEVEL >= 10) {
2500 NDR_PRINT_IN_DEBUG(PNP_RunDetection, &r);
2503 status = cli_do_rpc_ndr(cli,
2504 mem_ctx,
2505 PI_NTSVCS,
2506 &ndr_table_ntsvcs,
2507 NDR_PNP_RUNDETECTION,
2508 &r);
2510 if (!NT_STATUS_IS_OK(status)) {
2511 return status;
2514 if (DEBUGLEVEL >= 10) {
2515 NDR_PRINT_OUT_DEBUG(PNP_RunDetection, &r);
2518 if (NT_STATUS_IS_ERR(status)) {
2519 return status;
2522 /* Return variables */
2524 /* Return result */
2525 if (werror) {
2526 *werror = r.out.result;
2529 return werror_to_ntstatus(r.out.result);
2532 NTSTATUS rpccli_PNP_RegisterNotification(struct rpc_pipe_client *cli,
2533 TALLOC_CTX *mem_ctx,
2534 WERROR *werror)
2536 struct PNP_RegisterNotification r;
2537 NTSTATUS status;
2539 /* In parameters */
2541 if (DEBUGLEVEL >= 10) {
2542 NDR_PRINT_IN_DEBUG(PNP_RegisterNotification, &r);
2545 status = cli_do_rpc_ndr(cli,
2546 mem_ctx,
2547 PI_NTSVCS,
2548 &ndr_table_ntsvcs,
2549 NDR_PNP_REGISTERNOTIFICATION,
2550 &r);
2552 if (!NT_STATUS_IS_OK(status)) {
2553 return status;
2556 if (DEBUGLEVEL >= 10) {
2557 NDR_PRINT_OUT_DEBUG(PNP_RegisterNotification, &r);
2560 if (NT_STATUS_IS_ERR(status)) {
2561 return status;
2564 /* Return variables */
2566 /* Return result */
2567 if (werror) {
2568 *werror = r.out.result;
2571 return werror_to_ntstatus(r.out.result);
2574 NTSTATUS rpccli_PNP_UnregisterNotification(struct rpc_pipe_client *cli,
2575 TALLOC_CTX *mem_ctx,
2576 WERROR *werror)
2578 struct PNP_UnregisterNotification r;
2579 NTSTATUS status;
2581 /* In parameters */
2583 if (DEBUGLEVEL >= 10) {
2584 NDR_PRINT_IN_DEBUG(PNP_UnregisterNotification, &r);
2587 status = cli_do_rpc_ndr(cli,
2588 mem_ctx,
2589 PI_NTSVCS,
2590 &ndr_table_ntsvcs,
2591 NDR_PNP_UNREGISTERNOTIFICATION,
2592 &r);
2594 if (!NT_STATUS_IS_OK(status)) {
2595 return status;
2598 if (DEBUGLEVEL >= 10) {
2599 NDR_PRINT_OUT_DEBUG(PNP_UnregisterNotification, &r);
2602 if (NT_STATUS_IS_ERR(status)) {
2603 return status;
2606 /* Return variables */
2608 /* Return result */
2609 if (werror) {
2610 *werror = r.out.result;
2613 return werror_to_ntstatus(r.out.result);
2616 NTSTATUS rpccli_PNP_GetCustomDevProp(struct rpc_pipe_client *cli,
2617 TALLOC_CTX *mem_ctx,
2618 WERROR *werror)
2620 struct PNP_GetCustomDevProp r;
2621 NTSTATUS status;
2623 /* In parameters */
2625 if (DEBUGLEVEL >= 10) {
2626 NDR_PRINT_IN_DEBUG(PNP_GetCustomDevProp, &r);
2629 status = cli_do_rpc_ndr(cli,
2630 mem_ctx,
2631 PI_NTSVCS,
2632 &ndr_table_ntsvcs,
2633 NDR_PNP_GETCUSTOMDEVPROP,
2634 &r);
2636 if (!NT_STATUS_IS_OK(status)) {
2637 return status;
2640 if (DEBUGLEVEL >= 10) {
2641 NDR_PRINT_OUT_DEBUG(PNP_GetCustomDevProp, &r);
2644 if (NT_STATUS_IS_ERR(status)) {
2645 return status;
2648 /* Return variables */
2650 /* Return result */
2651 if (werror) {
2652 *werror = r.out.result;
2655 return werror_to_ntstatus(r.out.result);
2658 NTSTATUS rpccli_PNP_GetVersionInternal(struct rpc_pipe_client *cli,
2659 TALLOC_CTX *mem_ctx,
2660 WERROR *werror)
2662 struct PNP_GetVersionInternal r;
2663 NTSTATUS status;
2665 /* In parameters */
2667 if (DEBUGLEVEL >= 10) {
2668 NDR_PRINT_IN_DEBUG(PNP_GetVersionInternal, &r);
2671 status = cli_do_rpc_ndr(cli,
2672 mem_ctx,
2673 PI_NTSVCS,
2674 &ndr_table_ntsvcs,
2675 NDR_PNP_GETVERSIONINTERNAL,
2676 &r);
2678 if (!NT_STATUS_IS_OK(status)) {
2679 return status;
2682 if (DEBUGLEVEL >= 10) {
2683 NDR_PRINT_OUT_DEBUG(PNP_GetVersionInternal, &r);
2686 if (NT_STATUS_IS_ERR(status)) {
2687 return status;
2690 /* Return variables */
2692 /* Return result */
2693 if (werror) {
2694 *werror = r.out.result;
2697 return werror_to_ntstatus(r.out.result);
2700 NTSTATUS rpccli_PNP_GetBlockedDriverInfo(struct rpc_pipe_client *cli,
2701 TALLOC_CTX *mem_ctx,
2702 WERROR *werror)
2704 struct PNP_GetBlockedDriverInfo r;
2705 NTSTATUS status;
2707 /* In parameters */
2709 if (DEBUGLEVEL >= 10) {
2710 NDR_PRINT_IN_DEBUG(PNP_GetBlockedDriverInfo, &r);
2713 status = cli_do_rpc_ndr(cli,
2714 mem_ctx,
2715 PI_NTSVCS,
2716 &ndr_table_ntsvcs,
2717 NDR_PNP_GETBLOCKEDDRIVERINFO,
2718 &r);
2720 if (!NT_STATUS_IS_OK(status)) {
2721 return status;
2724 if (DEBUGLEVEL >= 10) {
2725 NDR_PRINT_OUT_DEBUG(PNP_GetBlockedDriverInfo, &r);
2728 if (NT_STATUS_IS_ERR(status)) {
2729 return status;
2732 /* Return variables */
2734 /* Return result */
2735 if (werror) {
2736 *werror = r.out.result;
2739 return werror_to_ntstatus(r.out.result);
2742 NTSTATUS rpccli_PNP_GetServerSideDeviceInstallFlags(struct rpc_pipe_client *cli,
2743 TALLOC_CTX *mem_ctx,
2744 WERROR *werror)
2746 struct PNP_GetServerSideDeviceInstallFlags r;
2747 NTSTATUS status;
2749 /* In parameters */
2751 if (DEBUGLEVEL >= 10) {
2752 NDR_PRINT_IN_DEBUG(PNP_GetServerSideDeviceInstallFlags, &r);
2755 status = cli_do_rpc_ndr(cli,
2756 mem_ctx,
2757 PI_NTSVCS,
2758 &ndr_table_ntsvcs,
2759 NDR_PNP_GETSERVERSIDEDEVICEINSTALLFLAGS,
2760 &r);
2762 if (!NT_STATUS_IS_OK(status)) {
2763 return status;
2766 if (DEBUGLEVEL >= 10) {
2767 NDR_PRINT_OUT_DEBUG(PNP_GetServerSideDeviceInstallFlags, &r);
2770 if (NT_STATUS_IS_ERR(status)) {
2771 return status;
2774 /* Return variables */
2776 /* Return result */
2777 if (werror) {
2778 *werror = r.out.result;
2781 return werror_to_ntstatus(r.out.result);