Use pidl for NTSVCS.
[Samba/gebeck_regimport.git] / source3 / librpc / gen_ndr / cli_ntsvcs.c
blob7795962c3f6e54d19b9abc9113a8bfeea9c37219
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)
12 struct PNP_Disconnect r;
13 NTSTATUS status;
15 /* In parameters */
17 if (DEBUGLEVEL >= 10) {
18 NDR_PRINT_IN_DEBUG(PNP_Disconnect, &r);
21 status = cli_do_rpc_ndr(cli,
22 mem_ctx,
23 PI_NTSVCS,
24 &ndr_table_ntsvcs,
25 NDR_PNP_DISCONNECT,
26 &r);
28 if (!NT_STATUS_IS_OK(status)) {
29 return status;
32 if (DEBUGLEVEL >= 10) {
33 NDR_PRINT_OUT_DEBUG(PNP_Disconnect, &r);
36 if (NT_STATUS_IS_ERR(status)) {
37 return status;
40 /* Return variables */
42 /* Return result */
43 return NT_STATUS_OK;
46 NTSTATUS rpccli_PNP_Connect(struct rpc_pipe_client *cli,
47 TALLOC_CTX *mem_ctx)
49 struct PNP_Connect r;
50 NTSTATUS status;
52 /* In parameters */
54 if (DEBUGLEVEL >= 10) {
55 NDR_PRINT_IN_DEBUG(PNP_Connect, &r);
58 status = cli_do_rpc_ndr(cli,
59 mem_ctx,
60 PI_NTSVCS,
61 &ndr_table_ntsvcs,
62 NDR_PNP_CONNECT,
63 &r);
65 if (!NT_STATUS_IS_OK(status)) {
66 return status;
69 if (DEBUGLEVEL >= 10) {
70 NDR_PRINT_OUT_DEBUG(PNP_Connect, &r);
73 if (NT_STATUS_IS_ERR(status)) {
74 return status;
77 /* Return variables */
79 /* Return result */
80 return NT_STATUS_OK;
83 NTSTATUS rpccli_PNP_GetVersion(struct rpc_pipe_client *cli,
84 TALLOC_CTX *mem_ctx)
86 struct PNP_GetVersion r;
87 NTSTATUS status;
89 /* In parameters */
91 if (DEBUGLEVEL >= 10) {
92 NDR_PRINT_IN_DEBUG(PNP_GetVersion, &r);
95 status = cli_do_rpc_ndr(cli,
96 mem_ctx,
97 PI_NTSVCS,
98 &ndr_table_ntsvcs,
99 NDR_PNP_GETVERSION,
100 &r);
102 if (!NT_STATUS_IS_OK(status)) {
103 return status;
106 if (DEBUGLEVEL >= 10) {
107 NDR_PRINT_OUT_DEBUG(PNP_GetVersion, &r);
110 if (NT_STATUS_IS_ERR(status)) {
111 return status;
114 /* Return variables */
116 /* Return result */
117 return NT_STATUS_OK;
120 NTSTATUS rpccli_PNP_GetGlobalState(struct rpc_pipe_client *cli,
121 TALLOC_CTX *mem_ctx)
123 struct PNP_GetGlobalState r;
124 NTSTATUS status;
126 /* In parameters */
128 if (DEBUGLEVEL >= 10) {
129 NDR_PRINT_IN_DEBUG(PNP_GetGlobalState, &r);
132 status = cli_do_rpc_ndr(cli,
133 mem_ctx,
134 PI_NTSVCS,
135 &ndr_table_ntsvcs,
136 NDR_PNP_GETGLOBALSTATE,
137 &r);
139 if (!NT_STATUS_IS_OK(status)) {
140 return status;
143 if (DEBUGLEVEL >= 10) {
144 NDR_PRINT_OUT_DEBUG(PNP_GetGlobalState, &r);
147 if (NT_STATUS_IS_ERR(status)) {
148 return status;
151 /* Return variables */
153 /* Return result */
154 return NT_STATUS_OK;
157 NTSTATUS rpccli_PNP_InitDetection(struct rpc_pipe_client *cli,
158 TALLOC_CTX *mem_ctx)
160 struct PNP_InitDetection r;
161 NTSTATUS status;
163 /* In parameters */
165 if (DEBUGLEVEL >= 10) {
166 NDR_PRINT_IN_DEBUG(PNP_InitDetection, &r);
169 status = cli_do_rpc_ndr(cli,
170 mem_ctx,
171 PI_NTSVCS,
172 &ndr_table_ntsvcs,
173 NDR_PNP_INITDETECTION,
174 &r);
176 if (!NT_STATUS_IS_OK(status)) {
177 return status;
180 if (DEBUGLEVEL >= 10) {
181 NDR_PRINT_OUT_DEBUG(PNP_InitDetection, &r);
184 if (NT_STATUS_IS_ERR(status)) {
185 return status;
188 /* Return variables */
190 /* Return result */
191 return NT_STATUS_OK;
194 NTSTATUS rpccli_PNP_ReportLogOn(struct rpc_pipe_client *cli,
195 TALLOC_CTX *mem_ctx)
197 struct PNP_ReportLogOn r;
198 NTSTATUS status;
200 /* In parameters */
202 if (DEBUGLEVEL >= 10) {
203 NDR_PRINT_IN_DEBUG(PNP_ReportLogOn, &r);
206 status = cli_do_rpc_ndr(cli,
207 mem_ctx,
208 PI_NTSVCS,
209 &ndr_table_ntsvcs,
210 NDR_PNP_REPORTLOGON,
211 &r);
213 if (!NT_STATUS_IS_OK(status)) {
214 return status;
217 if (DEBUGLEVEL >= 10) {
218 NDR_PRINT_OUT_DEBUG(PNP_ReportLogOn, &r);
221 if (NT_STATUS_IS_ERR(status)) {
222 return status;
225 /* Return variables */
227 /* Return result */
228 return NT_STATUS_OK;
231 NTSTATUS rpccli_PNP_ValidateDeviceInstance(struct rpc_pipe_client *cli,
232 TALLOC_CTX *mem_ctx)
234 struct PNP_ValidateDeviceInstance r;
235 NTSTATUS status;
237 /* In parameters */
239 if (DEBUGLEVEL >= 10) {
240 NDR_PRINT_IN_DEBUG(PNP_ValidateDeviceInstance, &r);
243 status = cli_do_rpc_ndr(cli,
244 mem_ctx,
245 PI_NTSVCS,
246 &ndr_table_ntsvcs,
247 NDR_PNP_VALIDATEDEVICEINSTANCE,
248 &r);
250 if (!NT_STATUS_IS_OK(status)) {
251 return status;
254 if (DEBUGLEVEL >= 10) {
255 NDR_PRINT_OUT_DEBUG(PNP_ValidateDeviceInstance, &r);
258 if (NT_STATUS_IS_ERR(status)) {
259 return status;
262 /* Return variables */
264 /* Return result */
265 return NT_STATUS_OK;
268 NTSTATUS rpccli_PNP_GetRootDeviceInstance(struct rpc_pipe_client *cli,
269 TALLOC_CTX *mem_ctx)
271 struct PNP_GetRootDeviceInstance r;
272 NTSTATUS status;
274 /* In parameters */
276 if (DEBUGLEVEL >= 10) {
277 NDR_PRINT_IN_DEBUG(PNP_GetRootDeviceInstance, &r);
280 status = cli_do_rpc_ndr(cli,
281 mem_ctx,
282 PI_NTSVCS,
283 &ndr_table_ntsvcs,
284 NDR_PNP_GETROOTDEVICEINSTANCE,
285 &r);
287 if (!NT_STATUS_IS_OK(status)) {
288 return status;
291 if (DEBUGLEVEL >= 10) {
292 NDR_PRINT_OUT_DEBUG(PNP_GetRootDeviceInstance, &r);
295 if (NT_STATUS_IS_ERR(status)) {
296 return status;
299 /* Return variables */
301 /* Return result */
302 return NT_STATUS_OK;
305 NTSTATUS rpccli_PNP_GetRelatedDeviceInstance(struct rpc_pipe_client *cli,
306 TALLOC_CTX *mem_ctx)
308 struct PNP_GetRelatedDeviceInstance r;
309 NTSTATUS status;
311 /* In parameters */
313 if (DEBUGLEVEL >= 10) {
314 NDR_PRINT_IN_DEBUG(PNP_GetRelatedDeviceInstance, &r);
317 status = cli_do_rpc_ndr(cli,
318 mem_ctx,
319 PI_NTSVCS,
320 &ndr_table_ntsvcs,
321 NDR_PNP_GETRELATEDDEVICEINSTANCE,
322 &r);
324 if (!NT_STATUS_IS_OK(status)) {
325 return status;
328 if (DEBUGLEVEL >= 10) {
329 NDR_PRINT_OUT_DEBUG(PNP_GetRelatedDeviceInstance, &r);
332 if (NT_STATUS_IS_ERR(status)) {
333 return status;
336 /* Return variables */
338 /* Return result */
339 return NT_STATUS_OK;
342 NTSTATUS rpccli_PNP_EnumerateSubKeys(struct rpc_pipe_client *cli,
343 TALLOC_CTX *mem_ctx)
345 struct PNP_EnumerateSubKeys r;
346 NTSTATUS status;
348 /* In parameters */
350 if (DEBUGLEVEL >= 10) {
351 NDR_PRINT_IN_DEBUG(PNP_EnumerateSubKeys, &r);
354 status = cli_do_rpc_ndr(cli,
355 mem_ctx,
356 PI_NTSVCS,
357 &ndr_table_ntsvcs,
358 NDR_PNP_ENUMERATESUBKEYS,
359 &r);
361 if (!NT_STATUS_IS_OK(status)) {
362 return status;
365 if (DEBUGLEVEL >= 10) {
366 NDR_PRINT_OUT_DEBUG(PNP_EnumerateSubKeys, &r);
369 if (NT_STATUS_IS_ERR(status)) {
370 return status;
373 /* Return variables */
375 /* Return result */
376 return NT_STATUS_OK;
379 NTSTATUS rpccli_PNP_GetDeviceList(struct rpc_pipe_client *cli,
380 TALLOC_CTX *mem_ctx)
382 struct PNP_GetDeviceList r;
383 NTSTATUS status;
385 /* In parameters */
387 if (DEBUGLEVEL >= 10) {
388 NDR_PRINT_IN_DEBUG(PNP_GetDeviceList, &r);
391 status = cli_do_rpc_ndr(cli,
392 mem_ctx,
393 PI_NTSVCS,
394 &ndr_table_ntsvcs,
395 NDR_PNP_GETDEVICELIST,
396 &r);
398 if (!NT_STATUS_IS_OK(status)) {
399 return status;
402 if (DEBUGLEVEL >= 10) {
403 NDR_PRINT_OUT_DEBUG(PNP_GetDeviceList, &r);
406 if (NT_STATUS_IS_ERR(status)) {
407 return status;
410 /* Return variables */
412 /* Return result */
413 return NT_STATUS_OK;
416 NTSTATUS rpccli_PNP_GetDeviceListSize(struct rpc_pipe_client *cli,
417 TALLOC_CTX *mem_ctx)
419 struct PNP_GetDeviceListSize r;
420 NTSTATUS status;
422 /* In parameters */
424 if (DEBUGLEVEL >= 10) {
425 NDR_PRINT_IN_DEBUG(PNP_GetDeviceListSize, &r);
428 status = cli_do_rpc_ndr(cli,
429 mem_ctx,
430 PI_NTSVCS,
431 &ndr_table_ntsvcs,
432 NDR_PNP_GETDEVICELISTSIZE,
433 &r);
435 if (!NT_STATUS_IS_OK(status)) {
436 return status;
439 if (DEBUGLEVEL >= 10) {
440 NDR_PRINT_OUT_DEBUG(PNP_GetDeviceListSize, &r);
443 if (NT_STATUS_IS_ERR(status)) {
444 return status;
447 /* Return variables */
449 /* Return result */
450 return NT_STATUS_OK;
453 NTSTATUS rpccli_PNP_GetDepth(struct rpc_pipe_client *cli,
454 TALLOC_CTX *mem_ctx)
456 struct PNP_GetDepth r;
457 NTSTATUS status;
459 /* In parameters */
461 if (DEBUGLEVEL >= 10) {
462 NDR_PRINT_IN_DEBUG(PNP_GetDepth, &r);
465 status = cli_do_rpc_ndr(cli,
466 mem_ctx,
467 PI_NTSVCS,
468 &ndr_table_ntsvcs,
469 NDR_PNP_GETDEPTH,
470 &r);
472 if (!NT_STATUS_IS_OK(status)) {
473 return status;
476 if (DEBUGLEVEL >= 10) {
477 NDR_PRINT_OUT_DEBUG(PNP_GetDepth, &r);
480 if (NT_STATUS_IS_ERR(status)) {
481 return status;
484 /* Return variables */
486 /* Return result */
487 return NT_STATUS_OK;
490 NTSTATUS rpccli_PNP_GetDeviceRegProp(struct rpc_pipe_client *cli,
491 TALLOC_CTX *mem_ctx)
493 struct PNP_GetDeviceRegProp r;
494 NTSTATUS status;
496 /* In parameters */
498 if (DEBUGLEVEL >= 10) {
499 NDR_PRINT_IN_DEBUG(PNP_GetDeviceRegProp, &r);
502 status = cli_do_rpc_ndr(cli,
503 mem_ctx,
504 PI_NTSVCS,
505 &ndr_table_ntsvcs,
506 NDR_PNP_GETDEVICEREGPROP,
507 &r);
509 if (!NT_STATUS_IS_OK(status)) {
510 return status;
513 if (DEBUGLEVEL >= 10) {
514 NDR_PRINT_OUT_DEBUG(PNP_GetDeviceRegProp, &r);
517 if (NT_STATUS_IS_ERR(status)) {
518 return status;
521 /* Return variables */
523 /* Return result */
524 return NT_STATUS_OK;
527 NTSTATUS rpccli_PNP_SetDeviceRegProp(struct rpc_pipe_client *cli,
528 TALLOC_CTX *mem_ctx)
530 struct PNP_SetDeviceRegProp r;
531 NTSTATUS status;
533 /* In parameters */
535 if (DEBUGLEVEL >= 10) {
536 NDR_PRINT_IN_DEBUG(PNP_SetDeviceRegProp, &r);
539 status = cli_do_rpc_ndr(cli,
540 mem_ctx,
541 PI_NTSVCS,
542 &ndr_table_ntsvcs,
543 NDR_PNP_SETDEVICEREGPROP,
544 &r);
546 if (!NT_STATUS_IS_OK(status)) {
547 return status;
550 if (DEBUGLEVEL >= 10) {
551 NDR_PRINT_OUT_DEBUG(PNP_SetDeviceRegProp, &r);
554 if (NT_STATUS_IS_ERR(status)) {
555 return status;
558 /* Return variables */
560 /* Return result */
561 return NT_STATUS_OK;
564 NTSTATUS rpccli_PNP_GetClassInstance(struct rpc_pipe_client *cli,
565 TALLOC_CTX *mem_ctx)
567 struct PNP_GetClassInstance r;
568 NTSTATUS status;
570 /* In parameters */
572 if (DEBUGLEVEL >= 10) {
573 NDR_PRINT_IN_DEBUG(PNP_GetClassInstance, &r);
576 status = cli_do_rpc_ndr(cli,
577 mem_ctx,
578 PI_NTSVCS,
579 &ndr_table_ntsvcs,
580 NDR_PNP_GETCLASSINSTANCE,
581 &r);
583 if (!NT_STATUS_IS_OK(status)) {
584 return status;
587 if (DEBUGLEVEL >= 10) {
588 NDR_PRINT_OUT_DEBUG(PNP_GetClassInstance, &r);
591 if (NT_STATUS_IS_ERR(status)) {
592 return status;
595 /* Return variables */
597 /* Return result */
598 return NT_STATUS_OK;
601 NTSTATUS rpccli_PNP_CreateKey(struct rpc_pipe_client *cli,
602 TALLOC_CTX *mem_ctx)
604 struct PNP_CreateKey r;
605 NTSTATUS status;
607 /* In parameters */
609 if (DEBUGLEVEL >= 10) {
610 NDR_PRINT_IN_DEBUG(PNP_CreateKey, &r);
613 status = cli_do_rpc_ndr(cli,
614 mem_ctx,
615 PI_NTSVCS,
616 &ndr_table_ntsvcs,
617 NDR_PNP_CREATEKEY,
618 &r);
620 if (!NT_STATUS_IS_OK(status)) {
621 return status;
624 if (DEBUGLEVEL >= 10) {
625 NDR_PRINT_OUT_DEBUG(PNP_CreateKey, &r);
628 if (NT_STATUS_IS_ERR(status)) {
629 return status;
632 /* Return variables */
634 /* Return result */
635 return NT_STATUS_OK;
638 NTSTATUS rpccli_PNP_DeleteRegistryKey(struct rpc_pipe_client *cli,
639 TALLOC_CTX *mem_ctx)
641 struct PNP_DeleteRegistryKey r;
642 NTSTATUS status;
644 /* In parameters */
646 if (DEBUGLEVEL >= 10) {
647 NDR_PRINT_IN_DEBUG(PNP_DeleteRegistryKey, &r);
650 status = cli_do_rpc_ndr(cli,
651 mem_ctx,
652 PI_NTSVCS,
653 &ndr_table_ntsvcs,
654 NDR_PNP_DELETEREGISTRYKEY,
655 &r);
657 if (!NT_STATUS_IS_OK(status)) {
658 return status;
661 if (DEBUGLEVEL >= 10) {
662 NDR_PRINT_OUT_DEBUG(PNP_DeleteRegistryKey, &r);
665 if (NT_STATUS_IS_ERR(status)) {
666 return status;
669 /* Return variables */
671 /* Return result */
672 return NT_STATUS_OK;
675 NTSTATUS rpccli_PNP_GetClassCount(struct rpc_pipe_client *cli,
676 TALLOC_CTX *mem_ctx)
678 struct PNP_GetClassCount r;
679 NTSTATUS status;
681 /* In parameters */
683 if (DEBUGLEVEL >= 10) {
684 NDR_PRINT_IN_DEBUG(PNP_GetClassCount, &r);
687 status = cli_do_rpc_ndr(cli,
688 mem_ctx,
689 PI_NTSVCS,
690 &ndr_table_ntsvcs,
691 NDR_PNP_GETCLASSCOUNT,
692 &r);
694 if (!NT_STATUS_IS_OK(status)) {
695 return status;
698 if (DEBUGLEVEL >= 10) {
699 NDR_PRINT_OUT_DEBUG(PNP_GetClassCount, &r);
702 if (NT_STATUS_IS_ERR(status)) {
703 return status;
706 /* Return variables */
708 /* Return result */
709 return NT_STATUS_OK;
712 NTSTATUS rpccli_PNP_GetClassName(struct rpc_pipe_client *cli,
713 TALLOC_CTX *mem_ctx)
715 struct PNP_GetClassName r;
716 NTSTATUS status;
718 /* In parameters */
720 if (DEBUGLEVEL >= 10) {
721 NDR_PRINT_IN_DEBUG(PNP_GetClassName, &r);
724 status = cli_do_rpc_ndr(cli,
725 mem_ctx,
726 PI_NTSVCS,
727 &ndr_table_ntsvcs,
728 NDR_PNP_GETCLASSNAME,
729 &r);
731 if (!NT_STATUS_IS_OK(status)) {
732 return status;
735 if (DEBUGLEVEL >= 10) {
736 NDR_PRINT_OUT_DEBUG(PNP_GetClassName, &r);
739 if (NT_STATUS_IS_ERR(status)) {
740 return status;
743 /* Return variables */
745 /* Return result */
746 return NT_STATUS_OK;
749 NTSTATUS rpccli_PNP_DeleteClassKey(struct rpc_pipe_client *cli,
750 TALLOC_CTX *mem_ctx)
752 struct PNP_DeleteClassKey r;
753 NTSTATUS status;
755 /* In parameters */
757 if (DEBUGLEVEL >= 10) {
758 NDR_PRINT_IN_DEBUG(PNP_DeleteClassKey, &r);
761 status = cli_do_rpc_ndr(cli,
762 mem_ctx,
763 PI_NTSVCS,
764 &ndr_table_ntsvcs,
765 NDR_PNP_DELETECLASSKEY,
766 &r);
768 if (!NT_STATUS_IS_OK(status)) {
769 return status;
772 if (DEBUGLEVEL >= 10) {
773 NDR_PRINT_OUT_DEBUG(PNP_DeleteClassKey, &r);
776 if (NT_STATUS_IS_ERR(status)) {
777 return status;
780 /* Return variables */
782 /* Return result */
783 return NT_STATUS_OK;
786 NTSTATUS rpccli_PNP_GetInterfaceDeviceAlias(struct rpc_pipe_client *cli,
787 TALLOC_CTX *mem_ctx)
789 struct PNP_GetInterfaceDeviceAlias r;
790 NTSTATUS status;
792 /* In parameters */
794 if (DEBUGLEVEL >= 10) {
795 NDR_PRINT_IN_DEBUG(PNP_GetInterfaceDeviceAlias, &r);
798 status = cli_do_rpc_ndr(cli,
799 mem_ctx,
800 PI_NTSVCS,
801 &ndr_table_ntsvcs,
802 NDR_PNP_GETINTERFACEDEVICEALIAS,
803 &r);
805 if (!NT_STATUS_IS_OK(status)) {
806 return status;
809 if (DEBUGLEVEL >= 10) {
810 NDR_PRINT_OUT_DEBUG(PNP_GetInterfaceDeviceAlias, &r);
813 if (NT_STATUS_IS_ERR(status)) {
814 return status;
817 /* Return variables */
819 /* Return result */
820 return NT_STATUS_OK;
823 NTSTATUS rpccli_PNP_GetInterfaceDeviceList(struct rpc_pipe_client *cli,
824 TALLOC_CTX *mem_ctx)
826 struct PNP_GetInterfaceDeviceList r;
827 NTSTATUS status;
829 /* In parameters */
831 if (DEBUGLEVEL >= 10) {
832 NDR_PRINT_IN_DEBUG(PNP_GetInterfaceDeviceList, &r);
835 status = cli_do_rpc_ndr(cli,
836 mem_ctx,
837 PI_NTSVCS,
838 &ndr_table_ntsvcs,
839 NDR_PNP_GETINTERFACEDEVICELIST,
840 &r);
842 if (!NT_STATUS_IS_OK(status)) {
843 return status;
846 if (DEBUGLEVEL >= 10) {
847 NDR_PRINT_OUT_DEBUG(PNP_GetInterfaceDeviceList, &r);
850 if (NT_STATUS_IS_ERR(status)) {
851 return status;
854 /* Return variables */
856 /* Return result */
857 return NT_STATUS_OK;
860 NTSTATUS rpccli_PNP_GetInterfaceDeviceListSize(struct rpc_pipe_client *cli,
861 TALLOC_CTX *mem_ctx)
863 struct PNP_GetInterfaceDeviceListSize r;
864 NTSTATUS status;
866 /* In parameters */
868 if (DEBUGLEVEL >= 10) {
869 NDR_PRINT_IN_DEBUG(PNP_GetInterfaceDeviceListSize, &r);
872 status = cli_do_rpc_ndr(cli,
873 mem_ctx,
874 PI_NTSVCS,
875 &ndr_table_ntsvcs,
876 NDR_PNP_GETINTERFACEDEVICELISTSIZE,
877 &r);
879 if (!NT_STATUS_IS_OK(status)) {
880 return status;
883 if (DEBUGLEVEL >= 10) {
884 NDR_PRINT_OUT_DEBUG(PNP_GetInterfaceDeviceListSize, &r);
887 if (NT_STATUS_IS_ERR(status)) {
888 return status;
891 /* Return variables */
893 /* Return result */
894 return NT_STATUS_OK;
897 NTSTATUS rpccli_PNP_RegisterDeviceClassAssociation(struct rpc_pipe_client *cli,
898 TALLOC_CTX *mem_ctx)
900 struct PNP_RegisterDeviceClassAssociation r;
901 NTSTATUS status;
903 /* In parameters */
905 if (DEBUGLEVEL >= 10) {
906 NDR_PRINT_IN_DEBUG(PNP_RegisterDeviceClassAssociation, &r);
909 status = cli_do_rpc_ndr(cli,
910 mem_ctx,
911 PI_NTSVCS,
912 &ndr_table_ntsvcs,
913 NDR_PNP_REGISTERDEVICECLASSASSOCIATION,
914 &r);
916 if (!NT_STATUS_IS_OK(status)) {
917 return status;
920 if (DEBUGLEVEL >= 10) {
921 NDR_PRINT_OUT_DEBUG(PNP_RegisterDeviceClassAssociation, &r);
924 if (NT_STATUS_IS_ERR(status)) {
925 return status;
928 /* Return variables */
930 /* Return result */
931 return NT_STATUS_OK;
934 NTSTATUS rpccli_PNP_UnregisterDeviceClassAssociation(struct rpc_pipe_client *cli,
935 TALLOC_CTX *mem_ctx)
937 struct PNP_UnregisterDeviceClassAssociation r;
938 NTSTATUS status;
940 /* In parameters */
942 if (DEBUGLEVEL >= 10) {
943 NDR_PRINT_IN_DEBUG(PNP_UnregisterDeviceClassAssociation, &r);
946 status = cli_do_rpc_ndr(cli,
947 mem_ctx,
948 PI_NTSVCS,
949 &ndr_table_ntsvcs,
950 NDR_PNP_UNREGISTERDEVICECLASSASSOCIATION,
951 &r);
953 if (!NT_STATUS_IS_OK(status)) {
954 return status;
957 if (DEBUGLEVEL >= 10) {
958 NDR_PRINT_OUT_DEBUG(PNP_UnregisterDeviceClassAssociation, &r);
961 if (NT_STATUS_IS_ERR(status)) {
962 return status;
965 /* Return variables */
967 /* Return result */
968 return NT_STATUS_OK;
971 NTSTATUS rpccli_PNP_GetClassRegProp(struct rpc_pipe_client *cli,
972 TALLOC_CTX *mem_ctx)
974 struct PNP_GetClassRegProp r;
975 NTSTATUS status;
977 /* In parameters */
979 if (DEBUGLEVEL >= 10) {
980 NDR_PRINT_IN_DEBUG(PNP_GetClassRegProp, &r);
983 status = cli_do_rpc_ndr(cli,
984 mem_ctx,
985 PI_NTSVCS,
986 &ndr_table_ntsvcs,
987 NDR_PNP_GETCLASSREGPROP,
988 &r);
990 if (!NT_STATUS_IS_OK(status)) {
991 return status;
994 if (DEBUGLEVEL >= 10) {
995 NDR_PRINT_OUT_DEBUG(PNP_GetClassRegProp, &r);
998 if (NT_STATUS_IS_ERR(status)) {
999 return status;
1002 /* Return variables */
1004 /* Return result */
1005 return NT_STATUS_OK;
1008 NTSTATUS rpccli_PNP_SetClassRegProp(struct rpc_pipe_client *cli,
1009 TALLOC_CTX *mem_ctx)
1011 struct PNP_SetClassRegProp r;
1012 NTSTATUS status;
1014 /* In parameters */
1016 if (DEBUGLEVEL >= 10) {
1017 NDR_PRINT_IN_DEBUG(PNP_SetClassRegProp, &r);
1020 status = cli_do_rpc_ndr(cli,
1021 mem_ctx,
1022 PI_NTSVCS,
1023 &ndr_table_ntsvcs,
1024 NDR_PNP_SETCLASSREGPROP,
1025 &r);
1027 if (!NT_STATUS_IS_OK(status)) {
1028 return status;
1031 if (DEBUGLEVEL >= 10) {
1032 NDR_PRINT_OUT_DEBUG(PNP_SetClassRegProp, &r);
1035 if (NT_STATUS_IS_ERR(status)) {
1036 return status;
1039 /* Return variables */
1041 /* Return result */
1042 return NT_STATUS_OK;
1045 NTSTATUS rpccli_PNP_CreateDevInst(struct rpc_pipe_client *cli,
1046 TALLOC_CTX *mem_ctx)
1048 struct PNP_CreateDevInst r;
1049 NTSTATUS status;
1051 /* In parameters */
1053 if (DEBUGLEVEL >= 10) {
1054 NDR_PRINT_IN_DEBUG(PNP_CreateDevInst, &r);
1057 status = cli_do_rpc_ndr(cli,
1058 mem_ctx,
1059 PI_NTSVCS,
1060 &ndr_table_ntsvcs,
1061 NDR_PNP_CREATEDEVINST,
1062 &r);
1064 if (!NT_STATUS_IS_OK(status)) {
1065 return status;
1068 if (DEBUGLEVEL >= 10) {
1069 NDR_PRINT_OUT_DEBUG(PNP_CreateDevInst, &r);
1072 if (NT_STATUS_IS_ERR(status)) {
1073 return status;
1076 /* Return variables */
1078 /* Return result */
1079 return NT_STATUS_OK;
1082 NTSTATUS rpccli_PNP_DeviceInstanceAction(struct rpc_pipe_client *cli,
1083 TALLOC_CTX *mem_ctx)
1085 struct PNP_DeviceInstanceAction r;
1086 NTSTATUS status;
1088 /* In parameters */
1090 if (DEBUGLEVEL >= 10) {
1091 NDR_PRINT_IN_DEBUG(PNP_DeviceInstanceAction, &r);
1094 status = cli_do_rpc_ndr(cli,
1095 mem_ctx,
1096 PI_NTSVCS,
1097 &ndr_table_ntsvcs,
1098 NDR_PNP_DEVICEINSTANCEACTION,
1099 &r);
1101 if (!NT_STATUS_IS_OK(status)) {
1102 return status;
1105 if (DEBUGLEVEL >= 10) {
1106 NDR_PRINT_OUT_DEBUG(PNP_DeviceInstanceAction, &r);
1109 if (NT_STATUS_IS_ERR(status)) {
1110 return status;
1113 /* Return variables */
1115 /* Return result */
1116 return NT_STATUS_OK;
1119 NTSTATUS rpccli_PNP_GetDeviceStatus(struct rpc_pipe_client *cli,
1120 TALLOC_CTX *mem_ctx)
1122 struct PNP_GetDeviceStatus r;
1123 NTSTATUS status;
1125 /* In parameters */
1127 if (DEBUGLEVEL >= 10) {
1128 NDR_PRINT_IN_DEBUG(PNP_GetDeviceStatus, &r);
1131 status = cli_do_rpc_ndr(cli,
1132 mem_ctx,
1133 PI_NTSVCS,
1134 &ndr_table_ntsvcs,
1135 NDR_PNP_GETDEVICESTATUS,
1136 &r);
1138 if (!NT_STATUS_IS_OK(status)) {
1139 return status;
1142 if (DEBUGLEVEL >= 10) {
1143 NDR_PRINT_OUT_DEBUG(PNP_GetDeviceStatus, &r);
1146 if (NT_STATUS_IS_ERR(status)) {
1147 return status;
1150 /* Return variables */
1152 /* Return result */
1153 return NT_STATUS_OK;
1156 NTSTATUS rpccli_PNP_SetDeviceProblem(struct rpc_pipe_client *cli,
1157 TALLOC_CTX *mem_ctx)
1159 struct PNP_SetDeviceProblem r;
1160 NTSTATUS status;
1162 /* In parameters */
1164 if (DEBUGLEVEL >= 10) {
1165 NDR_PRINT_IN_DEBUG(PNP_SetDeviceProblem, &r);
1168 status = cli_do_rpc_ndr(cli,
1169 mem_ctx,
1170 PI_NTSVCS,
1171 &ndr_table_ntsvcs,
1172 NDR_PNP_SETDEVICEPROBLEM,
1173 &r);
1175 if (!NT_STATUS_IS_OK(status)) {
1176 return status;
1179 if (DEBUGLEVEL >= 10) {
1180 NDR_PRINT_OUT_DEBUG(PNP_SetDeviceProblem, &r);
1183 if (NT_STATUS_IS_ERR(status)) {
1184 return status;
1187 /* Return variables */
1189 /* Return result */
1190 return NT_STATUS_OK;
1193 NTSTATUS rpccli_PNP_DisableDevInst(struct rpc_pipe_client *cli,
1194 TALLOC_CTX *mem_ctx)
1196 struct PNP_DisableDevInst r;
1197 NTSTATUS status;
1199 /* In parameters */
1201 if (DEBUGLEVEL >= 10) {
1202 NDR_PRINT_IN_DEBUG(PNP_DisableDevInst, &r);
1205 status = cli_do_rpc_ndr(cli,
1206 mem_ctx,
1207 PI_NTSVCS,
1208 &ndr_table_ntsvcs,
1209 NDR_PNP_DISABLEDEVINST,
1210 &r);
1212 if (!NT_STATUS_IS_OK(status)) {
1213 return status;
1216 if (DEBUGLEVEL >= 10) {
1217 NDR_PRINT_OUT_DEBUG(PNP_DisableDevInst, &r);
1220 if (NT_STATUS_IS_ERR(status)) {
1221 return status;
1224 /* Return variables */
1226 /* Return result */
1227 return NT_STATUS_OK;
1230 NTSTATUS rpccli_PNP_UninstallDevInst(struct rpc_pipe_client *cli,
1231 TALLOC_CTX *mem_ctx)
1233 struct PNP_UninstallDevInst r;
1234 NTSTATUS status;
1236 /* In parameters */
1238 if (DEBUGLEVEL >= 10) {
1239 NDR_PRINT_IN_DEBUG(PNP_UninstallDevInst, &r);
1242 status = cli_do_rpc_ndr(cli,
1243 mem_ctx,
1244 PI_NTSVCS,
1245 &ndr_table_ntsvcs,
1246 NDR_PNP_UNINSTALLDEVINST,
1247 &r);
1249 if (!NT_STATUS_IS_OK(status)) {
1250 return status;
1253 if (DEBUGLEVEL >= 10) {
1254 NDR_PRINT_OUT_DEBUG(PNP_UninstallDevInst, &r);
1257 if (NT_STATUS_IS_ERR(status)) {
1258 return status;
1261 /* Return variables */
1263 /* Return result */
1264 return NT_STATUS_OK;
1267 NTSTATUS rpccli_PNP_AddID(struct rpc_pipe_client *cli,
1268 TALLOC_CTX *mem_ctx)
1270 struct PNP_AddID r;
1271 NTSTATUS status;
1273 /* In parameters */
1275 if (DEBUGLEVEL >= 10) {
1276 NDR_PRINT_IN_DEBUG(PNP_AddID, &r);
1279 status = cli_do_rpc_ndr(cli,
1280 mem_ctx,
1281 PI_NTSVCS,
1282 &ndr_table_ntsvcs,
1283 NDR_PNP_ADDID,
1284 &r);
1286 if (!NT_STATUS_IS_OK(status)) {
1287 return status;
1290 if (DEBUGLEVEL >= 10) {
1291 NDR_PRINT_OUT_DEBUG(PNP_AddID, &r);
1294 if (NT_STATUS_IS_ERR(status)) {
1295 return status;
1298 /* Return variables */
1300 /* Return result */
1301 return NT_STATUS_OK;
1304 NTSTATUS rpccli_PNP_RegisterDriver(struct rpc_pipe_client *cli,
1305 TALLOC_CTX *mem_ctx)
1307 struct PNP_RegisterDriver r;
1308 NTSTATUS status;
1310 /* In parameters */
1312 if (DEBUGLEVEL >= 10) {
1313 NDR_PRINT_IN_DEBUG(PNP_RegisterDriver, &r);
1316 status = cli_do_rpc_ndr(cli,
1317 mem_ctx,
1318 PI_NTSVCS,
1319 &ndr_table_ntsvcs,
1320 NDR_PNP_REGISTERDRIVER,
1321 &r);
1323 if (!NT_STATUS_IS_OK(status)) {
1324 return status;
1327 if (DEBUGLEVEL >= 10) {
1328 NDR_PRINT_OUT_DEBUG(PNP_RegisterDriver, &r);
1331 if (NT_STATUS_IS_ERR(status)) {
1332 return status;
1335 /* Return variables */
1337 /* Return result */
1338 return NT_STATUS_OK;
1341 NTSTATUS rpccli_PNP_QueryRemove(struct rpc_pipe_client *cli,
1342 TALLOC_CTX *mem_ctx)
1344 struct PNP_QueryRemove r;
1345 NTSTATUS status;
1347 /* In parameters */
1349 if (DEBUGLEVEL >= 10) {
1350 NDR_PRINT_IN_DEBUG(PNP_QueryRemove, &r);
1353 status = cli_do_rpc_ndr(cli,
1354 mem_ctx,
1355 PI_NTSVCS,
1356 &ndr_table_ntsvcs,
1357 NDR_PNP_QUERYREMOVE,
1358 &r);
1360 if (!NT_STATUS_IS_OK(status)) {
1361 return status;
1364 if (DEBUGLEVEL >= 10) {
1365 NDR_PRINT_OUT_DEBUG(PNP_QueryRemove, &r);
1368 if (NT_STATUS_IS_ERR(status)) {
1369 return status;
1372 /* Return variables */
1374 /* Return result */
1375 return NT_STATUS_OK;
1378 NTSTATUS rpccli_PNP_RequestDeviceEject(struct rpc_pipe_client *cli,
1379 TALLOC_CTX *mem_ctx)
1381 struct PNP_RequestDeviceEject r;
1382 NTSTATUS status;
1384 /* In parameters */
1386 if (DEBUGLEVEL >= 10) {
1387 NDR_PRINT_IN_DEBUG(PNP_RequestDeviceEject, &r);
1390 status = cli_do_rpc_ndr(cli,
1391 mem_ctx,
1392 PI_NTSVCS,
1393 &ndr_table_ntsvcs,
1394 NDR_PNP_REQUESTDEVICEEJECT,
1395 &r);
1397 if (!NT_STATUS_IS_OK(status)) {
1398 return status;
1401 if (DEBUGLEVEL >= 10) {
1402 NDR_PRINT_OUT_DEBUG(PNP_RequestDeviceEject, &r);
1405 if (NT_STATUS_IS_ERR(status)) {
1406 return status;
1409 /* Return variables */
1411 /* Return result */
1412 return NT_STATUS_OK;
1415 NTSTATUS rpccli_PNP_IsDockStationPresent(struct rpc_pipe_client *cli,
1416 TALLOC_CTX *mem_ctx)
1418 struct PNP_IsDockStationPresent r;
1419 NTSTATUS status;
1421 /* In parameters */
1423 if (DEBUGLEVEL >= 10) {
1424 NDR_PRINT_IN_DEBUG(PNP_IsDockStationPresent, &r);
1427 status = cli_do_rpc_ndr(cli,
1428 mem_ctx,
1429 PI_NTSVCS,
1430 &ndr_table_ntsvcs,
1431 NDR_PNP_ISDOCKSTATIONPRESENT,
1432 &r);
1434 if (!NT_STATUS_IS_OK(status)) {
1435 return status;
1438 if (DEBUGLEVEL >= 10) {
1439 NDR_PRINT_OUT_DEBUG(PNP_IsDockStationPresent, &r);
1442 if (NT_STATUS_IS_ERR(status)) {
1443 return status;
1446 /* Return variables */
1448 /* Return result */
1449 return NT_STATUS_OK;
1452 NTSTATUS rpccli_PNP_RequestEjectPC(struct rpc_pipe_client *cli,
1453 TALLOC_CTX *mem_ctx)
1455 struct PNP_RequestEjectPC r;
1456 NTSTATUS status;
1458 /* In parameters */
1460 if (DEBUGLEVEL >= 10) {
1461 NDR_PRINT_IN_DEBUG(PNP_RequestEjectPC, &r);
1464 status = cli_do_rpc_ndr(cli,
1465 mem_ctx,
1466 PI_NTSVCS,
1467 &ndr_table_ntsvcs,
1468 NDR_PNP_REQUESTEJECTPC,
1469 &r);
1471 if (!NT_STATUS_IS_OK(status)) {
1472 return status;
1475 if (DEBUGLEVEL >= 10) {
1476 NDR_PRINT_OUT_DEBUG(PNP_RequestEjectPC, &r);
1479 if (NT_STATUS_IS_ERR(status)) {
1480 return status;
1483 /* Return variables */
1485 /* Return result */
1486 return NT_STATUS_OK;
1489 NTSTATUS rpccli_PNP_HwProfFlags(struct rpc_pipe_client *cli,
1490 TALLOC_CTX *mem_ctx)
1492 struct PNP_HwProfFlags r;
1493 NTSTATUS status;
1495 /* In parameters */
1497 if (DEBUGLEVEL >= 10) {
1498 NDR_PRINT_IN_DEBUG(PNP_HwProfFlags, &r);
1501 status = cli_do_rpc_ndr(cli,
1502 mem_ctx,
1503 PI_NTSVCS,
1504 &ndr_table_ntsvcs,
1505 NDR_PNP_HWPROFFLAGS,
1506 &r);
1508 if (!NT_STATUS_IS_OK(status)) {
1509 return status;
1512 if (DEBUGLEVEL >= 10) {
1513 NDR_PRINT_OUT_DEBUG(PNP_HwProfFlags, &r);
1516 if (NT_STATUS_IS_ERR(status)) {
1517 return status;
1520 /* Return variables */
1522 /* Return result */
1523 return NT_STATUS_OK;
1526 NTSTATUS rpccli_PNP_GetHwProfInfo(struct rpc_pipe_client *cli,
1527 TALLOC_CTX *mem_ctx)
1529 struct PNP_GetHwProfInfo r;
1530 NTSTATUS status;
1532 /* In parameters */
1534 if (DEBUGLEVEL >= 10) {
1535 NDR_PRINT_IN_DEBUG(PNP_GetHwProfInfo, &r);
1538 status = cli_do_rpc_ndr(cli,
1539 mem_ctx,
1540 PI_NTSVCS,
1541 &ndr_table_ntsvcs,
1542 NDR_PNP_GETHWPROFINFO,
1543 &r);
1545 if (!NT_STATUS_IS_OK(status)) {
1546 return status;
1549 if (DEBUGLEVEL >= 10) {
1550 NDR_PRINT_OUT_DEBUG(PNP_GetHwProfInfo, &r);
1553 if (NT_STATUS_IS_ERR(status)) {
1554 return status;
1557 /* Return variables */
1559 /* Return result */
1560 return NT_STATUS_OK;
1563 NTSTATUS rpccli_PNP_AddEmptyLogConf(struct rpc_pipe_client *cli,
1564 TALLOC_CTX *mem_ctx)
1566 struct PNP_AddEmptyLogConf r;
1567 NTSTATUS status;
1569 /* In parameters */
1571 if (DEBUGLEVEL >= 10) {
1572 NDR_PRINT_IN_DEBUG(PNP_AddEmptyLogConf, &r);
1575 status = cli_do_rpc_ndr(cli,
1576 mem_ctx,
1577 PI_NTSVCS,
1578 &ndr_table_ntsvcs,
1579 NDR_PNP_ADDEMPTYLOGCONF,
1580 &r);
1582 if (!NT_STATUS_IS_OK(status)) {
1583 return status;
1586 if (DEBUGLEVEL >= 10) {
1587 NDR_PRINT_OUT_DEBUG(PNP_AddEmptyLogConf, &r);
1590 if (NT_STATUS_IS_ERR(status)) {
1591 return status;
1594 /* Return variables */
1596 /* Return result */
1597 return NT_STATUS_OK;
1600 NTSTATUS rpccli_PNP_FreeLogConf(struct rpc_pipe_client *cli,
1601 TALLOC_CTX *mem_ctx)
1603 struct PNP_FreeLogConf r;
1604 NTSTATUS status;
1606 /* In parameters */
1608 if (DEBUGLEVEL >= 10) {
1609 NDR_PRINT_IN_DEBUG(PNP_FreeLogConf, &r);
1612 status = cli_do_rpc_ndr(cli,
1613 mem_ctx,
1614 PI_NTSVCS,
1615 &ndr_table_ntsvcs,
1616 NDR_PNP_FREELOGCONF,
1617 &r);
1619 if (!NT_STATUS_IS_OK(status)) {
1620 return status;
1623 if (DEBUGLEVEL >= 10) {
1624 NDR_PRINT_OUT_DEBUG(PNP_FreeLogConf, &r);
1627 if (NT_STATUS_IS_ERR(status)) {
1628 return status;
1631 /* Return variables */
1633 /* Return result */
1634 return NT_STATUS_OK;
1637 NTSTATUS rpccli_PNP_GetFirstLogConf(struct rpc_pipe_client *cli,
1638 TALLOC_CTX *mem_ctx)
1640 struct PNP_GetFirstLogConf r;
1641 NTSTATUS status;
1643 /* In parameters */
1645 if (DEBUGLEVEL >= 10) {
1646 NDR_PRINT_IN_DEBUG(PNP_GetFirstLogConf, &r);
1649 status = cli_do_rpc_ndr(cli,
1650 mem_ctx,
1651 PI_NTSVCS,
1652 &ndr_table_ntsvcs,
1653 NDR_PNP_GETFIRSTLOGCONF,
1654 &r);
1656 if (!NT_STATUS_IS_OK(status)) {
1657 return status;
1660 if (DEBUGLEVEL >= 10) {
1661 NDR_PRINT_OUT_DEBUG(PNP_GetFirstLogConf, &r);
1664 if (NT_STATUS_IS_ERR(status)) {
1665 return status;
1668 /* Return variables */
1670 /* Return result */
1671 return NT_STATUS_OK;
1674 NTSTATUS rpccli_PNP_GetNextLogConf(struct rpc_pipe_client *cli,
1675 TALLOC_CTX *mem_ctx)
1677 struct PNP_GetNextLogConf r;
1678 NTSTATUS status;
1680 /* In parameters */
1682 if (DEBUGLEVEL >= 10) {
1683 NDR_PRINT_IN_DEBUG(PNP_GetNextLogConf, &r);
1686 status = cli_do_rpc_ndr(cli,
1687 mem_ctx,
1688 PI_NTSVCS,
1689 &ndr_table_ntsvcs,
1690 NDR_PNP_GETNEXTLOGCONF,
1691 &r);
1693 if (!NT_STATUS_IS_OK(status)) {
1694 return status;
1697 if (DEBUGLEVEL >= 10) {
1698 NDR_PRINT_OUT_DEBUG(PNP_GetNextLogConf, &r);
1701 if (NT_STATUS_IS_ERR(status)) {
1702 return status;
1705 /* Return variables */
1707 /* Return result */
1708 return NT_STATUS_OK;
1711 NTSTATUS rpccli_PNP_GetLogConfPriority(struct rpc_pipe_client *cli,
1712 TALLOC_CTX *mem_ctx)
1714 struct PNP_GetLogConfPriority r;
1715 NTSTATUS status;
1717 /* In parameters */
1719 if (DEBUGLEVEL >= 10) {
1720 NDR_PRINT_IN_DEBUG(PNP_GetLogConfPriority, &r);
1723 status = cli_do_rpc_ndr(cli,
1724 mem_ctx,
1725 PI_NTSVCS,
1726 &ndr_table_ntsvcs,
1727 NDR_PNP_GETLOGCONFPRIORITY,
1728 &r);
1730 if (!NT_STATUS_IS_OK(status)) {
1731 return status;
1734 if (DEBUGLEVEL >= 10) {
1735 NDR_PRINT_OUT_DEBUG(PNP_GetLogConfPriority, &r);
1738 if (NT_STATUS_IS_ERR(status)) {
1739 return status;
1742 /* Return variables */
1744 /* Return result */
1745 return NT_STATUS_OK;
1748 NTSTATUS rpccli_PNP_AddResDes(struct rpc_pipe_client *cli,
1749 TALLOC_CTX *mem_ctx)
1751 struct PNP_AddResDes r;
1752 NTSTATUS status;
1754 /* In parameters */
1756 if (DEBUGLEVEL >= 10) {
1757 NDR_PRINT_IN_DEBUG(PNP_AddResDes, &r);
1760 status = cli_do_rpc_ndr(cli,
1761 mem_ctx,
1762 PI_NTSVCS,
1763 &ndr_table_ntsvcs,
1764 NDR_PNP_ADDRESDES,
1765 &r);
1767 if (!NT_STATUS_IS_OK(status)) {
1768 return status;
1771 if (DEBUGLEVEL >= 10) {
1772 NDR_PRINT_OUT_DEBUG(PNP_AddResDes, &r);
1775 if (NT_STATUS_IS_ERR(status)) {
1776 return status;
1779 /* Return variables */
1781 /* Return result */
1782 return NT_STATUS_OK;
1785 NTSTATUS rpccli_PNP_FreeResDes(struct rpc_pipe_client *cli,
1786 TALLOC_CTX *mem_ctx)
1788 struct PNP_FreeResDes r;
1789 NTSTATUS status;
1791 /* In parameters */
1793 if (DEBUGLEVEL >= 10) {
1794 NDR_PRINT_IN_DEBUG(PNP_FreeResDes, &r);
1797 status = cli_do_rpc_ndr(cli,
1798 mem_ctx,
1799 PI_NTSVCS,
1800 &ndr_table_ntsvcs,
1801 NDR_PNP_FREERESDES,
1802 &r);
1804 if (!NT_STATUS_IS_OK(status)) {
1805 return status;
1808 if (DEBUGLEVEL >= 10) {
1809 NDR_PRINT_OUT_DEBUG(PNP_FreeResDes, &r);
1812 if (NT_STATUS_IS_ERR(status)) {
1813 return status;
1816 /* Return variables */
1818 /* Return result */
1819 return NT_STATUS_OK;
1822 NTSTATUS rpccli_PNP_GetNextResDes(struct rpc_pipe_client *cli,
1823 TALLOC_CTX *mem_ctx)
1825 struct PNP_GetNextResDes r;
1826 NTSTATUS status;
1828 /* In parameters */
1830 if (DEBUGLEVEL >= 10) {
1831 NDR_PRINT_IN_DEBUG(PNP_GetNextResDes, &r);
1834 status = cli_do_rpc_ndr(cli,
1835 mem_ctx,
1836 PI_NTSVCS,
1837 &ndr_table_ntsvcs,
1838 NDR_PNP_GETNEXTRESDES,
1839 &r);
1841 if (!NT_STATUS_IS_OK(status)) {
1842 return status;
1845 if (DEBUGLEVEL >= 10) {
1846 NDR_PRINT_OUT_DEBUG(PNP_GetNextResDes, &r);
1849 if (NT_STATUS_IS_ERR(status)) {
1850 return status;
1853 /* Return variables */
1855 /* Return result */
1856 return NT_STATUS_OK;
1859 NTSTATUS rpccli_PNP_GetResDesData(struct rpc_pipe_client *cli,
1860 TALLOC_CTX *mem_ctx)
1862 struct PNP_GetResDesData r;
1863 NTSTATUS status;
1865 /* In parameters */
1867 if (DEBUGLEVEL >= 10) {
1868 NDR_PRINT_IN_DEBUG(PNP_GetResDesData, &r);
1871 status = cli_do_rpc_ndr(cli,
1872 mem_ctx,
1873 PI_NTSVCS,
1874 &ndr_table_ntsvcs,
1875 NDR_PNP_GETRESDESDATA,
1876 &r);
1878 if (!NT_STATUS_IS_OK(status)) {
1879 return status;
1882 if (DEBUGLEVEL >= 10) {
1883 NDR_PRINT_OUT_DEBUG(PNP_GetResDesData, &r);
1886 if (NT_STATUS_IS_ERR(status)) {
1887 return status;
1890 /* Return variables */
1892 /* Return result */
1893 return NT_STATUS_OK;
1896 NTSTATUS rpccli_PNP_GetResDesDataSize(struct rpc_pipe_client *cli,
1897 TALLOC_CTX *mem_ctx)
1899 struct PNP_GetResDesDataSize r;
1900 NTSTATUS status;
1902 /* In parameters */
1904 if (DEBUGLEVEL >= 10) {
1905 NDR_PRINT_IN_DEBUG(PNP_GetResDesDataSize, &r);
1908 status = cli_do_rpc_ndr(cli,
1909 mem_ctx,
1910 PI_NTSVCS,
1911 &ndr_table_ntsvcs,
1912 NDR_PNP_GETRESDESDATASIZE,
1913 &r);
1915 if (!NT_STATUS_IS_OK(status)) {
1916 return status;
1919 if (DEBUGLEVEL >= 10) {
1920 NDR_PRINT_OUT_DEBUG(PNP_GetResDesDataSize, &r);
1923 if (NT_STATUS_IS_ERR(status)) {
1924 return status;
1927 /* Return variables */
1929 /* Return result */
1930 return NT_STATUS_OK;
1933 NTSTATUS rpccli_PNP_ModifyResDes(struct rpc_pipe_client *cli,
1934 TALLOC_CTX *mem_ctx)
1936 struct PNP_ModifyResDes r;
1937 NTSTATUS status;
1939 /* In parameters */
1941 if (DEBUGLEVEL >= 10) {
1942 NDR_PRINT_IN_DEBUG(PNP_ModifyResDes, &r);
1945 status = cli_do_rpc_ndr(cli,
1946 mem_ctx,
1947 PI_NTSVCS,
1948 &ndr_table_ntsvcs,
1949 NDR_PNP_MODIFYRESDES,
1950 &r);
1952 if (!NT_STATUS_IS_OK(status)) {
1953 return status;
1956 if (DEBUGLEVEL >= 10) {
1957 NDR_PRINT_OUT_DEBUG(PNP_ModifyResDes, &r);
1960 if (NT_STATUS_IS_ERR(status)) {
1961 return status;
1964 /* Return variables */
1966 /* Return result */
1967 return NT_STATUS_OK;
1970 NTSTATUS rpccli_PNP_DetectResourceLimit(struct rpc_pipe_client *cli,
1971 TALLOC_CTX *mem_ctx)
1973 struct PNP_DetectResourceLimit r;
1974 NTSTATUS status;
1976 /* In parameters */
1978 if (DEBUGLEVEL >= 10) {
1979 NDR_PRINT_IN_DEBUG(PNP_DetectResourceLimit, &r);
1982 status = cli_do_rpc_ndr(cli,
1983 mem_ctx,
1984 PI_NTSVCS,
1985 &ndr_table_ntsvcs,
1986 NDR_PNP_DETECTRESOURCELIMIT,
1987 &r);
1989 if (!NT_STATUS_IS_OK(status)) {
1990 return status;
1993 if (DEBUGLEVEL >= 10) {
1994 NDR_PRINT_OUT_DEBUG(PNP_DetectResourceLimit, &r);
1997 if (NT_STATUS_IS_ERR(status)) {
1998 return status;
2001 /* Return variables */
2003 /* Return result */
2004 return NT_STATUS_OK;
2007 NTSTATUS rpccli_PNP_QueryResConfList(struct rpc_pipe_client *cli,
2008 TALLOC_CTX *mem_ctx)
2010 struct PNP_QueryResConfList r;
2011 NTSTATUS status;
2013 /* In parameters */
2015 if (DEBUGLEVEL >= 10) {
2016 NDR_PRINT_IN_DEBUG(PNP_QueryResConfList, &r);
2019 status = cli_do_rpc_ndr(cli,
2020 mem_ctx,
2021 PI_NTSVCS,
2022 &ndr_table_ntsvcs,
2023 NDR_PNP_QUERYRESCONFLIST,
2024 &r);
2026 if (!NT_STATUS_IS_OK(status)) {
2027 return status;
2030 if (DEBUGLEVEL >= 10) {
2031 NDR_PRINT_OUT_DEBUG(PNP_QueryResConfList, &r);
2034 if (NT_STATUS_IS_ERR(status)) {
2035 return status;
2038 /* Return variables */
2040 /* Return result */
2041 return NT_STATUS_OK;
2044 NTSTATUS rpccli_PNP_SetHwProf(struct rpc_pipe_client *cli,
2045 TALLOC_CTX *mem_ctx)
2047 struct PNP_SetHwProf r;
2048 NTSTATUS status;
2050 /* In parameters */
2052 if (DEBUGLEVEL >= 10) {
2053 NDR_PRINT_IN_DEBUG(PNP_SetHwProf, &r);
2056 status = cli_do_rpc_ndr(cli,
2057 mem_ctx,
2058 PI_NTSVCS,
2059 &ndr_table_ntsvcs,
2060 NDR_PNP_SETHWPROF,
2061 &r);
2063 if (!NT_STATUS_IS_OK(status)) {
2064 return status;
2067 if (DEBUGLEVEL >= 10) {
2068 NDR_PRINT_OUT_DEBUG(PNP_SetHwProf, &r);
2071 if (NT_STATUS_IS_ERR(status)) {
2072 return status;
2075 /* Return variables */
2077 /* Return result */
2078 return NT_STATUS_OK;
2081 NTSTATUS rpccli_PNP_QueryArbitratorFreeData(struct rpc_pipe_client *cli,
2082 TALLOC_CTX *mem_ctx)
2084 struct PNP_QueryArbitratorFreeData r;
2085 NTSTATUS status;
2087 /* In parameters */
2089 if (DEBUGLEVEL >= 10) {
2090 NDR_PRINT_IN_DEBUG(PNP_QueryArbitratorFreeData, &r);
2093 status = cli_do_rpc_ndr(cli,
2094 mem_ctx,
2095 PI_NTSVCS,
2096 &ndr_table_ntsvcs,
2097 NDR_PNP_QUERYARBITRATORFREEDATA,
2098 &r);
2100 if (!NT_STATUS_IS_OK(status)) {
2101 return status;
2104 if (DEBUGLEVEL >= 10) {
2105 NDR_PRINT_OUT_DEBUG(PNP_QueryArbitratorFreeData, &r);
2108 if (NT_STATUS_IS_ERR(status)) {
2109 return status;
2112 /* Return variables */
2114 /* Return result */
2115 return NT_STATUS_OK;
2118 NTSTATUS rpccli_PNP_QueryArbitratorFreeSize(struct rpc_pipe_client *cli,
2119 TALLOC_CTX *mem_ctx)
2121 struct PNP_QueryArbitratorFreeSize r;
2122 NTSTATUS status;
2124 /* In parameters */
2126 if (DEBUGLEVEL >= 10) {
2127 NDR_PRINT_IN_DEBUG(PNP_QueryArbitratorFreeSize, &r);
2130 status = cli_do_rpc_ndr(cli,
2131 mem_ctx,
2132 PI_NTSVCS,
2133 &ndr_table_ntsvcs,
2134 NDR_PNP_QUERYARBITRATORFREESIZE,
2135 &r);
2137 if (!NT_STATUS_IS_OK(status)) {
2138 return status;
2141 if (DEBUGLEVEL >= 10) {
2142 NDR_PRINT_OUT_DEBUG(PNP_QueryArbitratorFreeSize, &r);
2145 if (NT_STATUS_IS_ERR(status)) {
2146 return status;
2149 /* Return variables */
2151 /* Return result */
2152 return NT_STATUS_OK;
2155 NTSTATUS rpccli_PNP_RunDetection(struct rpc_pipe_client *cli,
2156 TALLOC_CTX *mem_ctx)
2158 struct PNP_RunDetection r;
2159 NTSTATUS status;
2161 /* In parameters */
2163 if (DEBUGLEVEL >= 10) {
2164 NDR_PRINT_IN_DEBUG(PNP_RunDetection, &r);
2167 status = cli_do_rpc_ndr(cli,
2168 mem_ctx,
2169 PI_NTSVCS,
2170 &ndr_table_ntsvcs,
2171 NDR_PNP_RUNDETECTION,
2172 &r);
2174 if (!NT_STATUS_IS_OK(status)) {
2175 return status;
2178 if (DEBUGLEVEL >= 10) {
2179 NDR_PRINT_OUT_DEBUG(PNP_RunDetection, &r);
2182 if (NT_STATUS_IS_ERR(status)) {
2183 return status;
2186 /* Return variables */
2188 /* Return result */
2189 return NT_STATUS_OK;
2192 NTSTATUS rpccli_PNP_RegisterNotification(struct rpc_pipe_client *cli,
2193 TALLOC_CTX *mem_ctx)
2195 struct PNP_RegisterNotification r;
2196 NTSTATUS status;
2198 /* In parameters */
2200 if (DEBUGLEVEL >= 10) {
2201 NDR_PRINT_IN_DEBUG(PNP_RegisterNotification, &r);
2204 status = cli_do_rpc_ndr(cli,
2205 mem_ctx,
2206 PI_NTSVCS,
2207 &ndr_table_ntsvcs,
2208 NDR_PNP_REGISTERNOTIFICATION,
2209 &r);
2211 if (!NT_STATUS_IS_OK(status)) {
2212 return status;
2215 if (DEBUGLEVEL >= 10) {
2216 NDR_PRINT_OUT_DEBUG(PNP_RegisterNotification, &r);
2219 if (NT_STATUS_IS_ERR(status)) {
2220 return status;
2223 /* Return variables */
2225 /* Return result */
2226 return NT_STATUS_OK;
2229 NTSTATUS rpccli_PNP_UnregisterNotification(struct rpc_pipe_client *cli,
2230 TALLOC_CTX *mem_ctx)
2232 struct PNP_UnregisterNotification r;
2233 NTSTATUS status;
2235 /* In parameters */
2237 if (DEBUGLEVEL >= 10) {
2238 NDR_PRINT_IN_DEBUG(PNP_UnregisterNotification, &r);
2241 status = cli_do_rpc_ndr(cli,
2242 mem_ctx,
2243 PI_NTSVCS,
2244 &ndr_table_ntsvcs,
2245 NDR_PNP_UNREGISTERNOTIFICATION,
2246 &r);
2248 if (!NT_STATUS_IS_OK(status)) {
2249 return status;
2252 if (DEBUGLEVEL >= 10) {
2253 NDR_PRINT_OUT_DEBUG(PNP_UnregisterNotification, &r);
2256 if (NT_STATUS_IS_ERR(status)) {
2257 return status;
2260 /* Return variables */
2262 /* Return result */
2263 return NT_STATUS_OK;
2266 NTSTATUS rpccli_PNP_GetCustomDevProp(struct rpc_pipe_client *cli,
2267 TALLOC_CTX *mem_ctx)
2269 struct PNP_GetCustomDevProp r;
2270 NTSTATUS status;
2272 /* In parameters */
2274 if (DEBUGLEVEL >= 10) {
2275 NDR_PRINT_IN_DEBUG(PNP_GetCustomDevProp, &r);
2278 status = cli_do_rpc_ndr(cli,
2279 mem_ctx,
2280 PI_NTSVCS,
2281 &ndr_table_ntsvcs,
2282 NDR_PNP_GETCUSTOMDEVPROP,
2283 &r);
2285 if (!NT_STATUS_IS_OK(status)) {
2286 return status;
2289 if (DEBUGLEVEL >= 10) {
2290 NDR_PRINT_OUT_DEBUG(PNP_GetCustomDevProp, &r);
2293 if (NT_STATUS_IS_ERR(status)) {
2294 return status;
2297 /* Return variables */
2299 /* Return result */
2300 return NT_STATUS_OK;
2303 NTSTATUS rpccli_PNP_GetVersionInternal(struct rpc_pipe_client *cli,
2304 TALLOC_CTX *mem_ctx)
2306 struct PNP_GetVersionInternal r;
2307 NTSTATUS status;
2309 /* In parameters */
2311 if (DEBUGLEVEL >= 10) {
2312 NDR_PRINT_IN_DEBUG(PNP_GetVersionInternal, &r);
2315 status = cli_do_rpc_ndr(cli,
2316 mem_ctx,
2317 PI_NTSVCS,
2318 &ndr_table_ntsvcs,
2319 NDR_PNP_GETVERSIONINTERNAL,
2320 &r);
2322 if (!NT_STATUS_IS_OK(status)) {
2323 return status;
2326 if (DEBUGLEVEL >= 10) {
2327 NDR_PRINT_OUT_DEBUG(PNP_GetVersionInternal, &r);
2330 if (NT_STATUS_IS_ERR(status)) {
2331 return status;
2334 /* Return variables */
2336 /* Return result */
2337 return NT_STATUS_OK;
2340 NTSTATUS rpccli_PNP_GetBlockedDriverInfo(struct rpc_pipe_client *cli,
2341 TALLOC_CTX *mem_ctx)
2343 struct PNP_GetBlockedDriverInfo r;
2344 NTSTATUS status;
2346 /* In parameters */
2348 if (DEBUGLEVEL >= 10) {
2349 NDR_PRINT_IN_DEBUG(PNP_GetBlockedDriverInfo, &r);
2352 status = cli_do_rpc_ndr(cli,
2353 mem_ctx,
2354 PI_NTSVCS,
2355 &ndr_table_ntsvcs,
2356 NDR_PNP_GETBLOCKEDDRIVERINFO,
2357 &r);
2359 if (!NT_STATUS_IS_OK(status)) {
2360 return status;
2363 if (DEBUGLEVEL >= 10) {
2364 NDR_PRINT_OUT_DEBUG(PNP_GetBlockedDriverInfo, &r);
2367 if (NT_STATUS_IS_ERR(status)) {
2368 return status;
2371 /* Return variables */
2373 /* Return result */
2374 return NT_STATUS_OK;
2377 NTSTATUS rpccli_PNP_GetServerSideDeviceInstallFlags(struct rpc_pipe_client *cli,
2378 TALLOC_CTX *mem_ctx)
2380 struct PNP_GetServerSideDeviceInstallFlags r;
2381 NTSTATUS status;
2383 /* In parameters */
2385 if (DEBUGLEVEL >= 10) {
2386 NDR_PRINT_IN_DEBUG(PNP_GetServerSideDeviceInstallFlags, &r);
2389 status = cli_do_rpc_ndr(cli,
2390 mem_ctx,
2391 PI_NTSVCS,
2392 &ndr_table_ntsvcs,
2393 NDR_PNP_GETSERVERSIDEDEVICEINSTALLFLAGS,
2394 &r);
2396 if (!NT_STATUS_IS_OK(status)) {
2397 return status;
2400 if (DEBUGLEVEL >= 10) {
2401 NDR_PRINT_OUT_DEBUG(PNP_GetServerSideDeviceInstallFlags, &r);
2404 if (NT_STATUS_IS_ERR(status)) {
2405 return status;
2408 /* Return variables */
2410 /* Return result */
2411 return NT_STATUS_OK;