rerun: make samba3-idl
[Samba.git] / librpc / gen_ndr / cli_ntsvcs.c
blobe9c3d4c4a5693b43c3a30255161f9dbdf670fe94
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->dispatch(cli,
23 mem_ctx,
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 if (werror) {
44 *werror = r.out.result;
47 return werror_to_ntstatus(r.out.result);
50 NTSTATUS rpccli_PNP_Connect(struct rpc_pipe_client *cli,
51 TALLOC_CTX *mem_ctx,
52 WERROR *werror)
54 struct PNP_Connect r;
55 NTSTATUS status;
57 /* In parameters */
59 if (DEBUGLEVEL >= 10) {
60 NDR_PRINT_IN_DEBUG(PNP_Connect, &r);
63 status = cli->dispatch(cli,
64 mem_ctx,
65 &ndr_table_ntsvcs,
66 NDR_PNP_CONNECT,
67 &r);
69 if (!NT_STATUS_IS_OK(status)) {
70 return status;
73 if (DEBUGLEVEL >= 10) {
74 NDR_PRINT_OUT_DEBUG(PNP_Connect, &r);
77 if (NT_STATUS_IS_ERR(status)) {
78 return status;
81 /* Return variables */
83 /* Return result */
84 if (werror) {
85 *werror = r.out.result;
88 return werror_to_ntstatus(r.out.result);
91 NTSTATUS rpccli_PNP_GetVersion(struct rpc_pipe_client *cli,
92 TALLOC_CTX *mem_ctx,
93 uint16_t *version /* [out] [ref] */,
94 WERROR *werror)
96 struct PNP_GetVersion r;
97 NTSTATUS status;
99 /* In parameters */
101 if (DEBUGLEVEL >= 10) {
102 NDR_PRINT_IN_DEBUG(PNP_GetVersion, &r);
105 status = cli->dispatch(cli,
106 mem_ctx,
107 &ndr_table_ntsvcs,
108 NDR_PNP_GETVERSION,
109 &r);
111 if (!NT_STATUS_IS_OK(status)) {
112 return status;
115 if (DEBUGLEVEL >= 10) {
116 NDR_PRINT_OUT_DEBUG(PNP_GetVersion, &r);
119 if (NT_STATUS_IS_ERR(status)) {
120 return status;
123 /* Return variables */
124 *version = *r.out.version;
126 /* Return result */
127 if (werror) {
128 *werror = r.out.result;
131 return werror_to_ntstatus(r.out.result);
134 NTSTATUS rpccli_PNP_GetGlobalState(struct rpc_pipe_client *cli,
135 TALLOC_CTX *mem_ctx,
136 WERROR *werror)
138 struct PNP_GetGlobalState r;
139 NTSTATUS status;
141 /* In parameters */
143 if (DEBUGLEVEL >= 10) {
144 NDR_PRINT_IN_DEBUG(PNP_GetGlobalState, &r);
147 status = cli->dispatch(cli,
148 mem_ctx,
149 &ndr_table_ntsvcs,
150 NDR_PNP_GETGLOBALSTATE,
151 &r);
153 if (!NT_STATUS_IS_OK(status)) {
154 return status;
157 if (DEBUGLEVEL >= 10) {
158 NDR_PRINT_OUT_DEBUG(PNP_GetGlobalState, &r);
161 if (NT_STATUS_IS_ERR(status)) {
162 return status;
165 /* Return variables */
167 /* Return result */
168 if (werror) {
169 *werror = r.out.result;
172 return werror_to_ntstatus(r.out.result);
175 NTSTATUS rpccli_PNP_InitDetection(struct rpc_pipe_client *cli,
176 TALLOC_CTX *mem_ctx,
177 WERROR *werror)
179 struct PNP_InitDetection r;
180 NTSTATUS status;
182 /* In parameters */
184 if (DEBUGLEVEL >= 10) {
185 NDR_PRINT_IN_DEBUG(PNP_InitDetection, &r);
188 status = cli->dispatch(cli,
189 mem_ctx,
190 &ndr_table_ntsvcs,
191 NDR_PNP_INITDETECTION,
192 &r);
194 if (!NT_STATUS_IS_OK(status)) {
195 return status;
198 if (DEBUGLEVEL >= 10) {
199 NDR_PRINT_OUT_DEBUG(PNP_InitDetection, &r);
202 if (NT_STATUS_IS_ERR(status)) {
203 return status;
206 /* Return variables */
208 /* Return result */
209 if (werror) {
210 *werror = r.out.result;
213 return werror_to_ntstatus(r.out.result);
216 NTSTATUS rpccli_PNP_ReportLogOn(struct rpc_pipe_client *cli,
217 TALLOC_CTX *mem_ctx,
218 WERROR *werror)
220 struct PNP_ReportLogOn r;
221 NTSTATUS status;
223 /* In parameters */
225 if (DEBUGLEVEL >= 10) {
226 NDR_PRINT_IN_DEBUG(PNP_ReportLogOn, &r);
229 status = cli->dispatch(cli,
230 mem_ctx,
231 &ndr_table_ntsvcs,
232 NDR_PNP_REPORTLOGON,
233 &r);
235 if (!NT_STATUS_IS_OK(status)) {
236 return status;
239 if (DEBUGLEVEL >= 10) {
240 NDR_PRINT_OUT_DEBUG(PNP_ReportLogOn, &r);
243 if (NT_STATUS_IS_ERR(status)) {
244 return status;
247 /* Return variables */
249 /* Return result */
250 if (werror) {
251 *werror = r.out.result;
254 return werror_to_ntstatus(r.out.result);
257 NTSTATUS rpccli_PNP_ValidateDeviceInstance(struct rpc_pipe_client *cli,
258 TALLOC_CTX *mem_ctx,
259 const char *devicepath /* [in] [ref,charset(UTF16)] */,
260 uint32_t flags /* [in] */,
261 WERROR *werror)
263 struct PNP_ValidateDeviceInstance r;
264 NTSTATUS status;
266 /* In parameters */
267 r.in.devicepath = devicepath;
268 r.in.flags = flags;
270 if (DEBUGLEVEL >= 10) {
271 NDR_PRINT_IN_DEBUG(PNP_ValidateDeviceInstance, &r);
274 status = cli->dispatch(cli,
275 mem_ctx,
276 &ndr_table_ntsvcs,
277 NDR_PNP_VALIDATEDEVICEINSTANCE,
278 &r);
280 if (!NT_STATUS_IS_OK(status)) {
281 return status;
284 if (DEBUGLEVEL >= 10) {
285 NDR_PRINT_OUT_DEBUG(PNP_ValidateDeviceInstance, &r);
288 if (NT_STATUS_IS_ERR(status)) {
289 return status;
292 /* Return variables */
294 /* Return result */
295 if (werror) {
296 *werror = r.out.result;
299 return werror_to_ntstatus(r.out.result);
302 NTSTATUS rpccli_PNP_GetRootDeviceInstance(struct rpc_pipe_client *cli,
303 TALLOC_CTX *mem_ctx,
304 WERROR *werror)
306 struct PNP_GetRootDeviceInstance r;
307 NTSTATUS status;
309 /* In parameters */
311 if (DEBUGLEVEL >= 10) {
312 NDR_PRINT_IN_DEBUG(PNP_GetRootDeviceInstance, &r);
315 status = cli->dispatch(cli,
316 mem_ctx,
317 &ndr_table_ntsvcs,
318 NDR_PNP_GETROOTDEVICEINSTANCE,
319 &r);
321 if (!NT_STATUS_IS_OK(status)) {
322 return status;
325 if (DEBUGLEVEL >= 10) {
326 NDR_PRINT_OUT_DEBUG(PNP_GetRootDeviceInstance, &r);
329 if (NT_STATUS_IS_ERR(status)) {
330 return status;
333 /* Return variables */
335 /* Return result */
336 if (werror) {
337 *werror = r.out.result;
340 return werror_to_ntstatus(r.out.result);
343 NTSTATUS rpccli_PNP_GetRelatedDeviceInstance(struct rpc_pipe_client *cli,
344 TALLOC_CTX *mem_ctx,
345 WERROR *werror)
347 struct PNP_GetRelatedDeviceInstance r;
348 NTSTATUS status;
350 /* In parameters */
352 if (DEBUGLEVEL >= 10) {
353 NDR_PRINT_IN_DEBUG(PNP_GetRelatedDeviceInstance, &r);
356 status = cli->dispatch(cli,
357 mem_ctx,
358 &ndr_table_ntsvcs,
359 NDR_PNP_GETRELATEDDEVICEINSTANCE,
360 &r);
362 if (!NT_STATUS_IS_OK(status)) {
363 return status;
366 if (DEBUGLEVEL >= 10) {
367 NDR_PRINT_OUT_DEBUG(PNP_GetRelatedDeviceInstance, &r);
370 if (NT_STATUS_IS_ERR(status)) {
371 return status;
374 /* Return variables */
376 /* Return result */
377 if (werror) {
378 *werror = r.out.result;
381 return werror_to_ntstatus(r.out.result);
384 NTSTATUS rpccli_PNP_EnumerateSubKeys(struct rpc_pipe_client *cli,
385 TALLOC_CTX *mem_ctx,
386 WERROR *werror)
388 struct PNP_EnumerateSubKeys r;
389 NTSTATUS status;
391 /* In parameters */
393 if (DEBUGLEVEL >= 10) {
394 NDR_PRINT_IN_DEBUG(PNP_EnumerateSubKeys, &r);
397 status = cli->dispatch(cli,
398 mem_ctx,
399 &ndr_table_ntsvcs,
400 NDR_PNP_ENUMERATESUBKEYS,
401 &r);
403 if (!NT_STATUS_IS_OK(status)) {
404 return status;
407 if (DEBUGLEVEL >= 10) {
408 NDR_PRINT_OUT_DEBUG(PNP_EnumerateSubKeys, &r);
411 if (NT_STATUS_IS_ERR(status)) {
412 return status;
415 /* Return variables */
417 /* Return result */
418 if (werror) {
419 *werror = r.out.result;
422 return werror_to_ntstatus(r.out.result);
425 NTSTATUS rpccli_PNP_GetDeviceList(struct rpc_pipe_client *cli,
426 TALLOC_CTX *mem_ctx,
427 const char *filter /* [in] [unique,charset(UTF16)] */,
428 uint16_t *buffer /* [out] [ref,length_is(*length),size_is(*length)] */,
429 uint32_t *length /* [in,out] [ref] */,
430 uint32_t flags /* [in] */,
431 WERROR *werror)
433 struct PNP_GetDeviceList r;
434 NTSTATUS status;
436 /* In parameters */
437 r.in.filter = filter;
438 r.in.length = length;
439 r.in.flags = flags;
441 if (DEBUGLEVEL >= 10) {
442 NDR_PRINT_IN_DEBUG(PNP_GetDeviceList, &r);
445 status = cli->dispatch(cli,
446 mem_ctx,
447 &ndr_table_ntsvcs,
448 NDR_PNP_GETDEVICELIST,
449 &r);
451 if (!NT_STATUS_IS_OK(status)) {
452 return status;
455 if (DEBUGLEVEL >= 10) {
456 NDR_PRINT_OUT_DEBUG(PNP_GetDeviceList, &r);
459 if (NT_STATUS_IS_ERR(status)) {
460 return status;
463 /* Return variables */
464 if ((*r.out.length) > (*r.in.length)) {
465 return NT_STATUS_INVALID_NETWORK_RESPONSE;
467 memcpy(buffer, r.out.buffer, (*r.out.length) * sizeof(*buffer));
468 *length = *r.out.length;
470 /* Return result */
471 if (werror) {
472 *werror = r.out.result;
475 return werror_to_ntstatus(r.out.result);
478 NTSTATUS rpccli_PNP_GetDeviceListSize(struct rpc_pipe_client *cli,
479 TALLOC_CTX *mem_ctx,
480 const char *devicename /* [in] [unique,charset(UTF16)] */,
481 uint32_t *size /* [out] [ref] */,
482 uint32_t flags /* [in] */,
483 WERROR *werror)
485 struct PNP_GetDeviceListSize r;
486 NTSTATUS status;
488 /* In parameters */
489 r.in.devicename = devicename;
490 r.in.flags = flags;
492 if (DEBUGLEVEL >= 10) {
493 NDR_PRINT_IN_DEBUG(PNP_GetDeviceListSize, &r);
496 status = cli->dispatch(cli,
497 mem_ctx,
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->dispatch(cli,
539 mem_ctx,
540 &ndr_table_ntsvcs,
541 NDR_PNP_GETDEPTH,
542 &r);
544 if (!NT_STATUS_IS_OK(status)) {
545 return status;
548 if (DEBUGLEVEL >= 10) {
549 NDR_PRINT_OUT_DEBUG(PNP_GetDepth, &r);
552 if (NT_STATUS_IS_ERR(status)) {
553 return status;
556 /* Return variables */
558 /* Return result */
559 if (werror) {
560 *werror = r.out.result;
563 return werror_to_ntstatus(r.out.result);
566 NTSTATUS rpccli_PNP_GetDeviceRegProp(struct rpc_pipe_client *cli,
567 TALLOC_CTX *mem_ctx,
568 const char *devicepath /* [in] [ref,charset(UTF16)] */,
569 uint32_t property /* [in] */,
570 enum winreg_Type *reg_data_type /* [in,out] [ref] */,
571 uint8_t *buffer /* [out] [ref,length_is(*buffer_size),size_is(*buffer_size)] */,
572 uint32_t *buffer_size /* [in,out] [ref] */,
573 uint32_t *needed /* [in,out] [ref] */,
574 uint32_t flags /* [in] */,
575 WERROR *werror)
577 struct PNP_GetDeviceRegProp r;
578 NTSTATUS status;
580 /* In parameters */
581 r.in.devicepath = devicepath;
582 r.in.property = property;
583 r.in.reg_data_type = reg_data_type;
584 r.in.buffer_size = buffer_size;
585 r.in.needed = needed;
586 r.in.flags = flags;
588 if (DEBUGLEVEL >= 10) {
589 NDR_PRINT_IN_DEBUG(PNP_GetDeviceRegProp, &r);
592 status = cli->dispatch(cli,
593 mem_ctx,
594 &ndr_table_ntsvcs,
595 NDR_PNP_GETDEVICEREGPROP,
596 &r);
598 if (!NT_STATUS_IS_OK(status)) {
599 return status;
602 if (DEBUGLEVEL >= 10) {
603 NDR_PRINT_OUT_DEBUG(PNP_GetDeviceRegProp, &r);
606 if (NT_STATUS_IS_ERR(status)) {
607 return status;
610 /* Return variables */
611 *reg_data_type = *r.out.reg_data_type;
612 if ((*r.out.buffer_size) > (*r.in.buffer_size)) {
613 return NT_STATUS_INVALID_NETWORK_RESPONSE;
615 memcpy(buffer, r.out.buffer, (*r.out.buffer_size) * sizeof(*buffer));
616 *buffer_size = *r.out.buffer_size;
617 *needed = *r.out.needed;
619 /* Return result */
620 if (werror) {
621 *werror = r.out.result;
624 return werror_to_ntstatus(r.out.result);
627 NTSTATUS rpccli_PNP_SetDeviceRegProp(struct rpc_pipe_client *cli,
628 TALLOC_CTX *mem_ctx,
629 WERROR *werror)
631 struct PNP_SetDeviceRegProp r;
632 NTSTATUS status;
634 /* In parameters */
636 if (DEBUGLEVEL >= 10) {
637 NDR_PRINT_IN_DEBUG(PNP_SetDeviceRegProp, &r);
640 status = cli->dispatch(cli,
641 mem_ctx,
642 &ndr_table_ntsvcs,
643 NDR_PNP_SETDEVICEREGPROP,
644 &r);
646 if (!NT_STATUS_IS_OK(status)) {
647 return status;
650 if (DEBUGLEVEL >= 10) {
651 NDR_PRINT_OUT_DEBUG(PNP_SetDeviceRegProp, &r);
654 if (NT_STATUS_IS_ERR(status)) {
655 return status;
658 /* Return variables */
660 /* Return result */
661 if (werror) {
662 *werror = r.out.result;
665 return werror_to_ntstatus(r.out.result);
668 NTSTATUS rpccli_PNP_GetClassInstance(struct rpc_pipe_client *cli,
669 TALLOC_CTX *mem_ctx,
670 WERROR *werror)
672 struct PNP_GetClassInstance r;
673 NTSTATUS status;
675 /* In parameters */
677 if (DEBUGLEVEL >= 10) {
678 NDR_PRINT_IN_DEBUG(PNP_GetClassInstance, &r);
681 status = cli->dispatch(cli,
682 mem_ctx,
683 &ndr_table_ntsvcs,
684 NDR_PNP_GETCLASSINSTANCE,
685 &r);
687 if (!NT_STATUS_IS_OK(status)) {
688 return status;
691 if (DEBUGLEVEL >= 10) {
692 NDR_PRINT_OUT_DEBUG(PNP_GetClassInstance, &r);
695 if (NT_STATUS_IS_ERR(status)) {
696 return status;
699 /* Return variables */
701 /* Return result */
702 if (werror) {
703 *werror = r.out.result;
706 return werror_to_ntstatus(r.out.result);
709 NTSTATUS rpccli_PNP_CreateKey(struct rpc_pipe_client *cli,
710 TALLOC_CTX *mem_ctx,
711 WERROR *werror)
713 struct PNP_CreateKey r;
714 NTSTATUS status;
716 /* In parameters */
718 if (DEBUGLEVEL >= 10) {
719 NDR_PRINT_IN_DEBUG(PNP_CreateKey, &r);
722 status = cli->dispatch(cli,
723 mem_ctx,
724 &ndr_table_ntsvcs,
725 NDR_PNP_CREATEKEY,
726 &r);
728 if (!NT_STATUS_IS_OK(status)) {
729 return status;
732 if (DEBUGLEVEL >= 10) {
733 NDR_PRINT_OUT_DEBUG(PNP_CreateKey, &r);
736 if (NT_STATUS_IS_ERR(status)) {
737 return status;
740 /* Return variables */
742 /* Return result */
743 if (werror) {
744 *werror = r.out.result;
747 return werror_to_ntstatus(r.out.result);
750 NTSTATUS rpccli_PNP_DeleteRegistryKey(struct rpc_pipe_client *cli,
751 TALLOC_CTX *mem_ctx,
752 WERROR *werror)
754 struct PNP_DeleteRegistryKey r;
755 NTSTATUS status;
757 /* In parameters */
759 if (DEBUGLEVEL >= 10) {
760 NDR_PRINT_IN_DEBUG(PNP_DeleteRegistryKey, &r);
763 status = cli->dispatch(cli,
764 mem_ctx,
765 &ndr_table_ntsvcs,
766 NDR_PNP_DELETEREGISTRYKEY,
767 &r);
769 if (!NT_STATUS_IS_OK(status)) {
770 return status;
773 if (DEBUGLEVEL >= 10) {
774 NDR_PRINT_OUT_DEBUG(PNP_DeleteRegistryKey, &r);
777 if (NT_STATUS_IS_ERR(status)) {
778 return status;
781 /* Return variables */
783 /* Return result */
784 if (werror) {
785 *werror = r.out.result;
788 return werror_to_ntstatus(r.out.result);
791 NTSTATUS rpccli_PNP_GetClassCount(struct rpc_pipe_client *cli,
792 TALLOC_CTX *mem_ctx,
793 WERROR *werror)
795 struct PNP_GetClassCount r;
796 NTSTATUS status;
798 /* In parameters */
800 if (DEBUGLEVEL >= 10) {
801 NDR_PRINT_IN_DEBUG(PNP_GetClassCount, &r);
804 status = cli->dispatch(cli,
805 mem_ctx,
806 &ndr_table_ntsvcs,
807 NDR_PNP_GETCLASSCOUNT,
808 &r);
810 if (!NT_STATUS_IS_OK(status)) {
811 return status;
814 if (DEBUGLEVEL >= 10) {
815 NDR_PRINT_OUT_DEBUG(PNP_GetClassCount, &r);
818 if (NT_STATUS_IS_ERR(status)) {
819 return status;
822 /* Return variables */
824 /* Return result */
825 if (werror) {
826 *werror = r.out.result;
829 return werror_to_ntstatus(r.out.result);
832 NTSTATUS rpccli_PNP_GetClassName(struct rpc_pipe_client *cli,
833 TALLOC_CTX *mem_ctx,
834 WERROR *werror)
836 struct PNP_GetClassName r;
837 NTSTATUS status;
839 /* In parameters */
841 if (DEBUGLEVEL >= 10) {
842 NDR_PRINT_IN_DEBUG(PNP_GetClassName, &r);
845 status = cli->dispatch(cli,
846 mem_ctx,
847 &ndr_table_ntsvcs,
848 NDR_PNP_GETCLASSNAME,
849 &r);
851 if (!NT_STATUS_IS_OK(status)) {
852 return status;
855 if (DEBUGLEVEL >= 10) {
856 NDR_PRINT_OUT_DEBUG(PNP_GetClassName, &r);
859 if (NT_STATUS_IS_ERR(status)) {
860 return status;
863 /* Return variables */
865 /* Return result */
866 if (werror) {
867 *werror = r.out.result;
870 return werror_to_ntstatus(r.out.result);
873 NTSTATUS rpccli_PNP_DeleteClassKey(struct rpc_pipe_client *cli,
874 TALLOC_CTX *mem_ctx,
875 WERROR *werror)
877 struct PNP_DeleteClassKey r;
878 NTSTATUS status;
880 /* In parameters */
882 if (DEBUGLEVEL >= 10) {
883 NDR_PRINT_IN_DEBUG(PNP_DeleteClassKey, &r);
886 status = cli->dispatch(cli,
887 mem_ctx,
888 &ndr_table_ntsvcs,
889 NDR_PNP_DELETECLASSKEY,
890 &r);
892 if (!NT_STATUS_IS_OK(status)) {
893 return status;
896 if (DEBUGLEVEL >= 10) {
897 NDR_PRINT_OUT_DEBUG(PNP_DeleteClassKey, &r);
900 if (NT_STATUS_IS_ERR(status)) {
901 return status;
904 /* Return variables */
906 /* Return result */
907 if (werror) {
908 *werror = r.out.result;
911 return werror_to_ntstatus(r.out.result);
914 NTSTATUS rpccli_PNP_GetInterfaceDeviceAlias(struct rpc_pipe_client *cli,
915 TALLOC_CTX *mem_ctx,
916 WERROR *werror)
918 struct PNP_GetInterfaceDeviceAlias r;
919 NTSTATUS status;
921 /* In parameters */
923 if (DEBUGLEVEL >= 10) {
924 NDR_PRINT_IN_DEBUG(PNP_GetInterfaceDeviceAlias, &r);
927 status = cli->dispatch(cli,
928 mem_ctx,
929 &ndr_table_ntsvcs,
930 NDR_PNP_GETINTERFACEDEVICEALIAS,
931 &r);
933 if (!NT_STATUS_IS_OK(status)) {
934 return status;
937 if (DEBUGLEVEL >= 10) {
938 NDR_PRINT_OUT_DEBUG(PNP_GetInterfaceDeviceAlias, &r);
941 if (NT_STATUS_IS_ERR(status)) {
942 return status;
945 /* Return variables */
947 /* Return result */
948 if (werror) {
949 *werror = r.out.result;
952 return werror_to_ntstatus(r.out.result);
955 NTSTATUS rpccli_PNP_GetInterfaceDeviceList(struct rpc_pipe_client *cli,
956 TALLOC_CTX *mem_ctx,
957 WERROR *werror)
959 struct PNP_GetInterfaceDeviceList r;
960 NTSTATUS status;
962 /* In parameters */
964 if (DEBUGLEVEL >= 10) {
965 NDR_PRINT_IN_DEBUG(PNP_GetInterfaceDeviceList, &r);
968 status = cli->dispatch(cli,
969 mem_ctx,
970 &ndr_table_ntsvcs,
971 NDR_PNP_GETINTERFACEDEVICELIST,
972 &r);
974 if (!NT_STATUS_IS_OK(status)) {
975 return status;
978 if (DEBUGLEVEL >= 10) {
979 NDR_PRINT_OUT_DEBUG(PNP_GetInterfaceDeviceList, &r);
982 if (NT_STATUS_IS_ERR(status)) {
983 return status;
986 /* Return variables */
988 /* Return result */
989 if (werror) {
990 *werror = r.out.result;
993 return werror_to_ntstatus(r.out.result);
996 NTSTATUS rpccli_PNP_GetInterfaceDeviceListSize(struct rpc_pipe_client *cli,
997 TALLOC_CTX *mem_ctx,
998 WERROR *werror)
1000 struct PNP_GetInterfaceDeviceListSize r;
1001 NTSTATUS status;
1003 /* In parameters */
1005 if (DEBUGLEVEL >= 10) {
1006 NDR_PRINT_IN_DEBUG(PNP_GetInterfaceDeviceListSize, &r);
1009 status = cli->dispatch(cli,
1010 mem_ctx,
1011 &ndr_table_ntsvcs,
1012 NDR_PNP_GETINTERFACEDEVICELISTSIZE,
1013 &r);
1015 if (!NT_STATUS_IS_OK(status)) {
1016 return status;
1019 if (DEBUGLEVEL >= 10) {
1020 NDR_PRINT_OUT_DEBUG(PNP_GetInterfaceDeviceListSize, &r);
1023 if (NT_STATUS_IS_ERR(status)) {
1024 return status;
1027 /* Return variables */
1029 /* Return result */
1030 if (werror) {
1031 *werror = r.out.result;
1034 return werror_to_ntstatus(r.out.result);
1037 NTSTATUS rpccli_PNP_RegisterDeviceClassAssociation(struct rpc_pipe_client *cli,
1038 TALLOC_CTX *mem_ctx,
1039 WERROR *werror)
1041 struct PNP_RegisterDeviceClassAssociation r;
1042 NTSTATUS status;
1044 /* In parameters */
1046 if (DEBUGLEVEL >= 10) {
1047 NDR_PRINT_IN_DEBUG(PNP_RegisterDeviceClassAssociation, &r);
1050 status = cli->dispatch(cli,
1051 mem_ctx,
1052 &ndr_table_ntsvcs,
1053 NDR_PNP_REGISTERDEVICECLASSASSOCIATION,
1054 &r);
1056 if (!NT_STATUS_IS_OK(status)) {
1057 return status;
1060 if (DEBUGLEVEL >= 10) {
1061 NDR_PRINT_OUT_DEBUG(PNP_RegisterDeviceClassAssociation, &r);
1064 if (NT_STATUS_IS_ERR(status)) {
1065 return status;
1068 /* Return variables */
1070 /* Return result */
1071 if (werror) {
1072 *werror = r.out.result;
1075 return werror_to_ntstatus(r.out.result);
1078 NTSTATUS rpccli_PNP_UnregisterDeviceClassAssociation(struct rpc_pipe_client *cli,
1079 TALLOC_CTX *mem_ctx,
1080 WERROR *werror)
1082 struct PNP_UnregisterDeviceClassAssociation r;
1083 NTSTATUS status;
1085 /* In parameters */
1087 if (DEBUGLEVEL >= 10) {
1088 NDR_PRINT_IN_DEBUG(PNP_UnregisterDeviceClassAssociation, &r);
1091 status = cli->dispatch(cli,
1092 mem_ctx,
1093 &ndr_table_ntsvcs,
1094 NDR_PNP_UNREGISTERDEVICECLASSASSOCIATION,
1095 &r);
1097 if (!NT_STATUS_IS_OK(status)) {
1098 return status;
1101 if (DEBUGLEVEL >= 10) {
1102 NDR_PRINT_OUT_DEBUG(PNP_UnregisterDeviceClassAssociation, &r);
1105 if (NT_STATUS_IS_ERR(status)) {
1106 return status;
1109 /* Return variables */
1111 /* Return result */
1112 if (werror) {
1113 *werror = r.out.result;
1116 return werror_to_ntstatus(r.out.result);
1119 NTSTATUS rpccli_PNP_GetClassRegProp(struct rpc_pipe_client *cli,
1120 TALLOC_CTX *mem_ctx,
1121 WERROR *werror)
1123 struct PNP_GetClassRegProp r;
1124 NTSTATUS status;
1126 /* In parameters */
1128 if (DEBUGLEVEL >= 10) {
1129 NDR_PRINT_IN_DEBUG(PNP_GetClassRegProp, &r);
1132 status = cli->dispatch(cli,
1133 mem_ctx,
1134 &ndr_table_ntsvcs,
1135 NDR_PNP_GETCLASSREGPROP,
1136 &r);
1138 if (!NT_STATUS_IS_OK(status)) {
1139 return status;
1142 if (DEBUGLEVEL >= 10) {
1143 NDR_PRINT_OUT_DEBUG(PNP_GetClassRegProp, &r);
1146 if (NT_STATUS_IS_ERR(status)) {
1147 return status;
1150 /* Return variables */
1152 /* Return result */
1153 if (werror) {
1154 *werror = r.out.result;
1157 return werror_to_ntstatus(r.out.result);
1160 NTSTATUS rpccli_PNP_SetClassRegProp(struct rpc_pipe_client *cli,
1161 TALLOC_CTX *mem_ctx,
1162 WERROR *werror)
1164 struct PNP_SetClassRegProp r;
1165 NTSTATUS status;
1167 /* In parameters */
1169 if (DEBUGLEVEL >= 10) {
1170 NDR_PRINT_IN_DEBUG(PNP_SetClassRegProp, &r);
1173 status = cli->dispatch(cli,
1174 mem_ctx,
1175 &ndr_table_ntsvcs,
1176 NDR_PNP_SETCLASSREGPROP,
1177 &r);
1179 if (!NT_STATUS_IS_OK(status)) {
1180 return status;
1183 if (DEBUGLEVEL >= 10) {
1184 NDR_PRINT_OUT_DEBUG(PNP_SetClassRegProp, &r);
1187 if (NT_STATUS_IS_ERR(status)) {
1188 return status;
1191 /* Return variables */
1193 /* Return result */
1194 if (werror) {
1195 *werror = r.out.result;
1198 return werror_to_ntstatus(r.out.result);
1201 NTSTATUS rpccli_PNP_CreateDevInst(struct rpc_pipe_client *cli,
1202 TALLOC_CTX *mem_ctx,
1203 WERROR *werror)
1205 struct PNP_CreateDevInst r;
1206 NTSTATUS status;
1208 /* In parameters */
1210 if (DEBUGLEVEL >= 10) {
1211 NDR_PRINT_IN_DEBUG(PNP_CreateDevInst, &r);
1214 status = cli->dispatch(cli,
1215 mem_ctx,
1216 &ndr_table_ntsvcs,
1217 NDR_PNP_CREATEDEVINST,
1218 &r);
1220 if (!NT_STATUS_IS_OK(status)) {
1221 return status;
1224 if (DEBUGLEVEL >= 10) {
1225 NDR_PRINT_OUT_DEBUG(PNP_CreateDevInst, &r);
1228 if (NT_STATUS_IS_ERR(status)) {
1229 return status;
1232 /* Return variables */
1234 /* Return result */
1235 if (werror) {
1236 *werror = r.out.result;
1239 return werror_to_ntstatus(r.out.result);
1242 NTSTATUS rpccli_PNP_DeviceInstanceAction(struct rpc_pipe_client *cli,
1243 TALLOC_CTX *mem_ctx,
1244 WERROR *werror)
1246 struct PNP_DeviceInstanceAction r;
1247 NTSTATUS status;
1249 /* In parameters */
1251 if (DEBUGLEVEL >= 10) {
1252 NDR_PRINT_IN_DEBUG(PNP_DeviceInstanceAction, &r);
1255 status = cli->dispatch(cli,
1256 mem_ctx,
1257 &ndr_table_ntsvcs,
1258 NDR_PNP_DEVICEINSTANCEACTION,
1259 &r);
1261 if (!NT_STATUS_IS_OK(status)) {
1262 return status;
1265 if (DEBUGLEVEL >= 10) {
1266 NDR_PRINT_OUT_DEBUG(PNP_DeviceInstanceAction, &r);
1269 if (NT_STATUS_IS_ERR(status)) {
1270 return status;
1273 /* Return variables */
1275 /* Return result */
1276 if (werror) {
1277 *werror = r.out.result;
1280 return werror_to_ntstatus(r.out.result);
1283 NTSTATUS rpccli_PNP_GetDeviceStatus(struct rpc_pipe_client *cli,
1284 TALLOC_CTX *mem_ctx,
1285 WERROR *werror)
1287 struct PNP_GetDeviceStatus r;
1288 NTSTATUS status;
1290 /* In parameters */
1292 if (DEBUGLEVEL >= 10) {
1293 NDR_PRINT_IN_DEBUG(PNP_GetDeviceStatus, &r);
1296 status = cli->dispatch(cli,
1297 mem_ctx,
1298 &ndr_table_ntsvcs,
1299 NDR_PNP_GETDEVICESTATUS,
1300 &r);
1302 if (!NT_STATUS_IS_OK(status)) {
1303 return status;
1306 if (DEBUGLEVEL >= 10) {
1307 NDR_PRINT_OUT_DEBUG(PNP_GetDeviceStatus, &r);
1310 if (NT_STATUS_IS_ERR(status)) {
1311 return status;
1314 /* Return variables */
1316 /* Return result */
1317 if (werror) {
1318 *werror = r.out.result;
1321 return werror_to_ntstatus(r.out.result);
1324 NTSTATUS rpccli_PNP_SetDeviceProblem(struct rpc_pipe_client *cli,
1325 TALLOC_CTX *mem_ctx,
1326 WERROR *werror)
1328 struct PNP_SetDeviceProblem r;
1329 NTSTATUS status;
1331 /* In parameters */
1333 if (DEBUGLEVEL >= 10) {
1334 NDR_PRINT_IN_DEBUG(PNP_SetDeviceProblem, &r);
1337 status = cli->dispatch(cli,
1338 mem_ctx,
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->dispatch(cli,
1379 mem_ctx,
1380 &ndr_table_ntsvcs,
1381 NDR_PNP_DISABLEDEVINST,
1382 &r);
1384 if (!NT_STATUS_IS_OK(status)) {
1385 return status;
1388 if (DEBUGLEVEL >= 10) {
1389 NDR_PRINT_OUT_DEBUG(PNP_DisableDevInst, &r);
1392 if (NT_STATUS_IS_ERR(status)) {
1393 return status;
1396 /* Return variables */
1398 /* Return result */
1399 if (werror) {
1400 *werror = r.out.result;
1403 return werror_to_ntstatus(r.out.result);
1406 NTSTATUS rpccli_PNP_UninstallDevInst(struct rpc_pipe_client *cli,
1407 TALLOC_CTX *mem_ctx,
1408 WERROR *werror)
1410 struct PNP_UninstallDevInst r;
1411 NTSTATUS status;
1413 /* In parameters */
1415 if (DEBUGLEVEL >= 10) {
1416 NDR_PRINT_IN_DEBUG(PNP_UninstallDevInst, &r);
1419 status = cli->dispatch(cli,
1420 mem_ctx,
1421 &ndr_table_ntsvcs,
1422 NDR_PNP_UNINSTALLDEVINST,
1423 &r);
1425 if (!NT_STATUS_IS_OK(status)) {
1426 return status;
1429 if (DEBUGLEVEL >= 10) {
1430 NDR_PRINT_OUT_DEBUG(PNP_UninstallDevInst, &r);
1433 if (NT_STATUS_IS_ERR(status)) {
1434 return status;
1437 /* Return variables */
1439 /* Return result */
1440 if (werror) {
1441 *werror = r.out.result;
1444 return werror_to_ntstatus(r.out.result);
1447 NTSTATUS rpccli_PNP_AddID(struct rpc_pipe_client *cli,
1448 TALLOC_CTX *mem_ctx,
1449 WERROR *werror)
1451 struct PNP_AddID r;
1452 NTSTATUS status;
1454 /* In parameters */
1456 if (DEBUGLEVEL >= 10) {
1457 NDR_PRINT_IN_DEBUG(PNP_AddID, &r);
1460 status = cli->dispatch(cli,
1461 mem_ctx,
1462 &ndr_table_ntsvcs,
1463 NDR_PNP_ADDID,
1464 &r);
1466 if (!NT_STATUS_IS_OK(status)) {
1467 return status;
1470 if (DEBUGLEVEL >= 10) {
1471 NDR_PRINT_OUT_DEBUG(PNP_AddID, &r);
1474 if (NT_STATUS_IS_ERR(status)) {
1475 return status;
1478 /* Return variables */
1480 /* Return result */
1481 if (werror) {
1482 *werror = r.out.result;
1485 return werror_to_ntstatus(r.out.result);
1488 NTSTATUS rpccli_PNP_RegisterDriver(struct rpc_pipe_client *cli,
1489 TALLOC_CTX *mem_ctx,
1490 WERROR *werror)
1492 struct PNP_RegisterDriver r;
1493 NTSTATUS status;
1495 /* In parameters */
1497 if (DEBUGLEVEL >= 10) {
1498 NDR_PRINT_IN_DEBUG(PNP_RegisterDriver, &r);
1501 status = cli->dispatch(cli,
1502 mem_ctx,
1503 &ndr_table_ntsvcs,
1504 NDR_PNP_REGISTERDRIVER,
1505 &r);
1507 if (!NT_STATUS_IS_OK(status)) {
1508 return status;
1511 if (DEBUGLEVEL >= 10) {
1512 NDR_PRINT_OUT_DEBUG(PNP_RegisterDriver, &r);
1515 if (NT_STATUS_IS_ERR(status)) {
1516 return status;
1519 /* Return variables */
1521 /* Return result */
1522 if (werror) {
1523 *werror = r.out.result;
1526 return werror_to_ntstatus(r.out.result);
1529 NTSTATUS rpccli_PNP_QueryRemove(struct rpc_pipe_client *cli,
1530 TALLOC_CTX *mem_ctx,
1531 WERROR *werror)
1533 struct PNP_QueryRemove r;
1534 NTSTATUS status;
1536 /* In parameters */
1538 if (DEBUGLEVEL >= 10) {
1539 NDR_PRINT_IN_DEBUG(PNP_QueryRemove, &r);
1542 status = cli->dispatch(cli,
1543 mem_ctx,
1544 &ndr_table_ntsvcs,
1545 NDR_PNP_QUERYREMOVE,
1546 &r);
1548 if (!NT_STATUS_IS_OK(status)) {
1549 return status;
1552 if (DEBUGLEVEL >= 10) {
1553 NDR_PRINT_OUT_DEBUG(PNP_QueryRemove, &r);
1556 if (NT_STATUS_IS_ERR(status)) {
1557 return status;
1560 /* Return variables */
1562 /* Return result */
1563 if (werror) {
1564 *werror = r.out.result;
1567 return werror_to_ntstatus(r.out.result);
1570 NTSTATUS rpccli_PNP_RequestDeviceEject(struct rpc_pipe_client *cli,
1571 TALLOC_CTX *mem_ctx,
1572 WERROR *werror)
1574 struct PNP_RequestDeviceEject r;
1575 NTSTATUS status;
1577 /* In parameters */
1579 if (DEBUGLEVEL >= 10) {
1580 NDR_PRINT_IN_DEBUG(PNP_RequestDeviceEject, &r);
1583 status = cli->dispatch(cli,
1584 mem_ctx,
1585 &ndr_table_ntsvcs,
1586 NDR_PNP_REQUESTDEVICEEJECT,
1587 &r);
1589 if (!NT_STATUS_IS_OK(status)) {
1590 return status;
1593 if (DEBUGLEVEL >= 10) {
1594 NDR_PRINT_OUT_DEBUG(PNP_RequestDeviceEject, &r);
1597 if (NT_STATUS_IS_ERR(status)) {
1598 return status;
1601 /* Return variables */
1603 /* Return result */
1604 if (werror) {
1605 *werror = r.out.result;
1608 return werror_to_ntstatus(r.out.result);
1611 NTSTATUS rpccli_PNP_IsDockStationPresent(struct rpc_pipe_client *cli,
1612 TALLOC_CTX *mem_ctx,
1613 WERROR *werror)
1615 struct PNP_IsDockStationPresent r;
1616 NTSTATUS status;
1618 /* In parameters */
1620 if (DEBUGLEVEL >= 10) {
1621 NDR_PRINT_IN_DEBUG(PNP_IsDockStationPresent, &r);
1624 status = cli->dispatch(cli,
1625 mem_ctx,
1626 &ndr_table_ntsvcs,
1627 NDR_PNP_ISDOCKSTATIONPRESENT,
1628 &r);
1630 if (!NT_STATUS_IS_OK(status)) {
1631 return status;
1634 if (DEBUGLEVEL >= 10) {
1635 NDR_PRINT_OUT_DEBUG(PNP_IsDockStationPresent, &r);
1638 if (NT_STATUS_IS_ERR(status)) {
1639 return status;
1642 /* Return variables */
1644 /* Return result */
1645 if (werror) {
1646 *werror = r.out.result;
1649 return werror_to_ntstatus(r.out.result);
1652 NTSTATUS rpccli_PNP_RequestEjectPC(struct rpc_pipe_client *cli,
1653 TALLOC_CTX *mem_ctx,
1654 WERROR *werror)
1656 struct PNP_RequestEjectPC r;
1657 NTSTATUS status;
1659 /* In parameters */
1661 if (DEBUGLEVEL >= 10) {
1662 NDR_PRINT_IN_DEBUG(PNP_RequestEjectPC, &r);
1665 status = cli->dispatch(cli,
1666 mem_ctx,
1667 &ndr_table_ntsvcs,
1668 NDR_PNP_REQUESTEJECTPC,
1669 &r);
1671 if (!NT_STATUS_IS_OK(status)) {
1672 return status;
1675 if (DEBUGLEVEL >= 10) {
1676 NDR_PRINT_OUT_DEBUG(PNP_RequestEjectPC, &r);
1679 if (NT_STATUS_IS_ERR(status)) {
1680 return status;
1683 /* Return variables */
1685 /* Return result */
1686 if (werror) {
1687 *werror = r.out.result;
1690 return werror_to_ntstatus(r.out.result);
1693 NTSTATUS rpccli_PNP_HwProfFlags(struct rpc_pipe_client *cli,
1694 TALLOC_CTX *mem_ctx,
1695 uint32_t action /* [in] */,
1696 const char *devicepath /* [in] [ref,charset(UTF16)] */,
1697 uint32_t config /* [in] */,
1698 uint32_t *profile_flags /* [in,out] [ref] */,
1699 uint16_t *veto_type /* [in,out] [unique] */,
1700 const char *unknown5 /* [in] [unique,charset(UTF16)] */,
1701 const char **unknown5a /* [out] [unique,charset(UTF16)] */,
1702 uint32_t name_length /* [in] */,
1703 uint32_t flags /* [in] */,
1704 WERROR *werror)
1706 struct PNP_HwProfFlags r;
1707 NTSTATUS status;
1709 /* In parameters */
1710 r.in.action = action;
1711 r.in.devicepath = devicepath;
1712 r.in.config = config;
1713 r.in.profile_flags = profile_flags;
1714 r.in.veto_type = veto_type;
1715 r.in.unknown5 = unknown5;
1716 r.in.name_length = name_length;
1717 r.in.flags = flags;
1719 if (DEBUGLEVEL >= 10) {
1720 NDR_PRINT_IN_DEBUG(PNP_HwProfFlags, &r);
1723 status = cli->dispatch(cli,
1724 mem_ctx,
1725 &ndr_table_ntsvcs,
1726 NDR_PNP_HWPROFFLAGS,
1727 &r);
1729 if (!NT_STATUS_IS_OK(status)) {
1730 return status;
1733 if (DEBUGLEVEL >= 10) {
1734 NDR_PRINT_OUT_DEBUG(PNP_HwProfFlags, &r);
1737 if (NT_STATUS_IS_ERR(status)) {
1738 return status;
1741 /* Return variables */
1742 *profile_flags = *r.out.profile_flags;
1743 if (veto_type && r.out.veto_type) {
1744 *veto_type = *r.out.veto_type;
1746 if (unknown5a && r.out.unknown5a) {
1747 *unknown5a = *r.out.unknown5a;
1750 /* Return result */
1751 if (werror) {
1752 *werror = r.out.result;
1755 return werror_to_ntstatus(r.out.result);
1758 NTSTATUS rpccli_PNP_GetHwProfInfo(struct rpc_pipe_client *cli,
1759 TALLOC_CTX *mem_ctx,
1760 uint32_t idx /* [in] */,
1761 struct PNP_HwProfInfo *info /* [in,out] [ref] */,
1762 uint32_t size /* [in] */,
1763 uint32_t flags /* [in] */,
1764 WERROR *werror)
1766 struct PNP_GetHwProfInfo r;
1767 NTSTATUS status;
1769 /* In parameters */
1770 r.in.idx = idx;
1771 r.in.info = info;
1772 r.in.size = size;
1773 r.in.flags = flags;
1775 if (DEBUGLEVEL >= 10) {
1776 NDR_PRINT_IN_DEBUG(PNP_GetHwProfInfo, &r);
1779 status = cli->dispatch(cli,
1780 mem_ctx,
1781 &ndr_table_ntsvcs,
1782 NDR_PNP_GETHWPROFINFO,
1783 &r);
1785 if (!NT_STATUS_IS_OK(status)) {
1786 return status;
1789 if (DEBUGLEVEL >= 10) {
1790 NDR_PRINT_OUT_DEBUG(PNP_GetHwProfInfo, &r);
1793 if (NT_STATUS_IS_ERR(status)) {
1794 return status;
1797 /* Return variables */
1798 *info = *r.out.info;
1800 /* Return result */
1801 if (werror) {
1802 *werror = r.out.result;
1805 return werror_to_ntstatus(r.out.result);
1808 NTSTATUS rpccli_PNP_AddEmptyLogConf(struct rpc_pipe_client *cli,
1809 TALLOC_CTX *mem_ctx,
1810 WERROR *werror)
1812 struct PNP_AddEmptyLogConf r;
1813 NTSTATUS status;
1815 /* In parameters */
1817 if (DEBUGLEVEL >= 10) {
1818 NDR_PRINT_IN_DEBUG(PNP_AddEmptyLogConf, &r);
1821 status = cli->dispatch(cli,
1822 mem_ctx,
1823 &ndr_table_ntsvcs,
1824 NDR_PNP_ADDEMPTYLOGCONF,
1825 &r);
1827 if (!NT_STATUS_IS_OK(status)) {
1828 return status;
1831 if (DEBUGLEVEL >= 10) {
1832 NDR_PRINT_OUT_DEBUG(PNP_AddEmptyLogConf, &r);
1835 if (NT_STATUS_IS_ERR(status)) {
1836 return status;
1839 /* Return variables */
1841 /* Return result */
1842 if (werror) {
1843 *werror = r.out.result;
1846 return werror_to_ntstatus(r.out.result);
1849 NTSTATUS rpccli_PNP_FreeLogConf(struct rpc_pipe_client *cli,
1850 TALLOC_CTX *mem_ctx,
1851 WERROR *werror)
1853 struct PNP_FreeLogConf r;
1854 NTSTATUS status;
1856 /* In parameters */
1858 if (DEBUGLEVEL >= 10) {
1859 NDR_PRINT_IN_DEBUG(PNP_FreeLogConf, &r);
1862 status = cli->dispatch(cli,
1863 mem_ctx,
1864 &ndr_table_ntsvcs,
1865 NDR_PNP_FREELOGCONF,
1866 &r);
1868 if (!NT_STATUS_IS_OK(status)) {
1869 return status;
1872 if (DEBUGLEVEL >= 10) {
1873 NDR_PRINT_OUT_DEBUG(PNP_FreeLogConf, &r);
1876 if (NT_STATUS_IS_ERR(status)) {
1877 return status;
1880 /* Return variables */
1882 /* Return result */
1883 if (werror) {
1884 *werror = r.out.result;
1887 return werror_to_ntstatus(r.out.result);
1890 NTSTATUS rpccli_PNP_GetFirstLogConf(struct rpc_pipe_client *cli,
1891 TALLOC_CTX *mem_ctx,
1892 WERROR *werror)
1894 struct PNP_GetFirstLogConf r;
1895 NTSTATUS status;
1897 /* In parameters */
1899 if (DEBUGLEVEL >= 10) {
1900 NDR_PRINT_IN_DEBUG(PNP_GetFirstLogConf, &r);
1903 status = cli->dispatch(cli,
1904 mem_ctx,
1905 &ndr_table_ntsvcs,
1906 NDR_PNP_GETFIRSTLOGCONF,
1907 &r);
1909 if (!NT_STATUS_IS_OK(status)) {
1910 return status;
1913 if (DEBUGLEVEL >= 10) {
1914 NDR_PRINT_OUT_DEBUG(PNP_GetFirstLogConf, &r);
1917 if (NT_STATUS_IS_ERR(status)) {
1918 return status;
1921 /* Return variables */
1923 /* Return result */
1924 if (werror) {
1925 *werror = r.out.result;
1928 return werror_to_ntstatus(r.out.result);
1931 NTSTATUS rpccli_PNP_GetNextLogConf(struct rpc_pipe_client *cli,
1932 TALLOC_CTX *mem_ctx,
1933 WERROR *werror)
1935 struct PNP_GetNextLogConf r;
1936 NTSTATUS status;
1938 /* In parameters */
1940 if (DEBUGLEVEL >= 10) {
1941 NDR_PRINT_IN_DEBUG(PNP_GetNextLogConf, &r);
1944 status = cli->dispatch(cli,
1945 mem_ctx,
1946 &ndr_table_ntsvcs,
1947 NDR_PNP_GETNEXTLOGCONF,
1948 &r);
1950 if (!NT_STATUS_IS_OK(status)) {
1951 return status;
1954 if (DEBUGLEVEL >= 10) {
1955 NDR_PRINT_OUT_DEBUG(PNP_GetNextLogConf, &r);
1958 if (NT_STATUS_IS_ERR(status)) {
1959 return status;
1962 /* Return variables */
1964 /* Return result */
1965 if (werror) {
1966 *werror = r.out.result;
1969 return werror_to_ntstatus(r.out.result);
1972 NTSTATUS rpccli_PNP_GetLogConfPriority(struct rpc_pipe_client *cli,
1973 TALLOC_CTX *mem_ctx,
1974 WERROR *werror)
1976 struct PNP_GetLogConfPriority r;
1977 NTSTATUS status;
1979 /* In parameters */
1981 if (DEBUGLEVEL >= 10) {
1982 NDR_PRINT_IN_DEBUG(PNP_GetLogConfPriority, &r);
1985 status = cli->dispatch(cli,
1986 mem_ctx,
1987 &ndr_table_ntsvcs,
1988 NDR_PNP_GETLOGCONFPRIORITY,
1989 &r);
1991 if (!NT_STATUS_IS_OK(status)) {
1992 return status;
1995 if (DEBUGLEVEL >= 10) {
1996 NDR_PRINT_OUT_DEBUG(PNP_GetLogConfPriority, &r);
1999 if (NT_STATUS_IS_ERR(status)) {
2000 return status;
2003 /* Return variables */
2005 /* Return result */
2006 if (werror) {
2007 *werror = r.out.result;
2010 return werror_to_ntstatus(r.out.result);
2013 NTSTATUS rpccli_PNP_AddResDes(struct rpc_pipe_client *cli,
2014 TALLOC_CTX *mem_ctx,
2015 WERROR *werror)
2017 struct PNP_AddResDes r;
2018 NTSTATUS status;
2020 /* In parameters */
2022 if (DEBUGLEVEL >= 10) {
2023 NDR_PRINT_IN_DEBUG(PNP_AddResDes, &r);
2026 status = cli->dispatch(cli,
2027 mem_ctx,
2028 &ndr_table_ntsvcs,
2029 NDR_PNP_ADDRESDES,
2030 &r);
2032 if (!NT_STATUS_IS_OK(status)) {
2033 return status;
2036 if (DEBUGLEVEL >= 10) {
2037 NDR_PRINT_OUT_DEBUG(PNP_AddResDes, &r);
2040 if (NT_STATUS_IS_ERR(status)) {
2041 return status;
2044 /* Return variables */
2046 /* Return result */
2047 if (werror) {
2048 *werror = r.out.result;
2051 return werror_to_ntstatus(r.out.result);
2054 NTSTATUS rpccli_PNP_FreeResDes(struct rpc_pipe_client *cli,
2055 TALLOC_CTX *mem_ctx,
2056 WERROR *werror)
2058 struct PNP_FreeResDes r;
2059 NTSTATUS status;
2061 /* In parameters */
2063 if (DEBUGLEVEL >= 10) {
2064 NDR_PRINT_IN_DEBUG(PNP_FreeResDes, &r);
2067 status = cli->dispatch(cli,
2068 mem_ctx,
2069 &ndr_table_ntsvcs,
2070 NDR_PNP_FREERESDES,
2071 &r);
2073 if (!NT_STATUS_IS_OK(status)) {
2074 return status;
2077 if (DEBUGLEVEL >= 10) {
2078 NDR_PRINT_OUT_DEBUG(PNP_FreeResDes, &r);
2081 if (NT_STATUS_IS_ERR(status)) {
2082 return status;
2085 /* Return variables */
2087 /* Return result */
2088 if (werror) {
2089 *werror = r.out.result;
2092 return werror_to_ntstatus(r.out.result);
2095 NTSTATUS rpccli_PNP_GetNextResDes(struct rpc_pipe_client *cli,
2096 TALLOC_CTX *mem_ctx,
2097 WERROR *werror)
2099 struct PNP_GetNextResDes r;
2100 NTSTATUS status;
2102 /* In parameters */
2104 if (DEBUGLEVEL >= 10) {
2105 NDR_PRINT_IN_DEBUG(PNP_GetNextResDes, &r);
2108 status = cli->dispatch(cli,
2109 mem_ctx,
2110 &ndr_table_ntsvcs,
2111 NDR_PNP_GETNEXTRESDES,
2112 &r);
2114 if (!NT_STATUS_IS_OK(status)) {
2115 return status;
2118 if (DEBUGLEVEL >= 10) {
2119 NDR_PRINT_OUT_DEBUG(PNP_GetNextResDes, &r);
2122 if (NT_STATUS_IS_ERR(status)) {
2123 return status;
2126 /* Return variables */
2128 /* Return result */
2129 if (werror) {
2130 *werror = r.out.result;
2133 return werror_to_ntstatus(r.out.result);
2136 NTSTATUS rpccli_PNP_GetResDesData(struct rpc_pipe_client *cli,
2137 TALLOC_CTX *mem_ctx,
2138 WERROR *werror)
2140 struct PNP_GetResDesData r;
2141 NTSTATUS status;
2143 /* In parameters */
2145 if (DEBUGLEVEL >= 10) {
2146 NDR_PRINT_IN_DEBUG(PNP_GetResDesData, &r);
2149 status = cli->dispatch(cli,
2150 mem_ctx,
2151 &ndr_table_ntsvcs,
2152 NDR_PNP_GETRESDESDATA,
2153 &r);
2155 if (!NT_STATUS_IS_OK(status)) {
2156 return status;
2159 if (DEBUGLEVEL >= 10) {
2160 NDR_PRINT_OUT_DEBUG(PNP_GetResDesData, &r);
2163 if (NT_STATUS_IS_ERR(status)) {
2164 return status;
2167 /* Return variables */
2169 /* Return result */
2170 if (werror) {
2171 *werror = r.out.result;
2174 return werror_to_ntstatus(r.out.result);
2177 NTSTATUS rpccli_PNP_GetResDesDataSize(struct rpc_pipe_client *cli,
2178 TALLOC_CTX *mem_ctx,
2179 WERROR *werror)
2181 struct PNP_GetResDesDataSize r;
2182 NTSTATUS status;
2184 /* In parameters */
2186 if (DEBUGLEVEL >= 10) {
2187 NDR_PRINT_IN_DEBUG(PNP_GetResDesDataSize, &r);
2190 status = cli->dispatch(cli,
2191 mem_ctx,
2192 &ndr_table_ntsvcs,
2193 NDR_PNP_GETRESDESDATASIZE,
2194 &r);
2196 if (!NT_STATUS_IS_OK(status)) {
2197 return status;
2200 if (DEBUGLEVEL >= 10) {
2201 NDR_PRINT_OUT_DEBUG(PNP_GetResDesDataSize, &r);
2204 if (NT_STATUS_IS_ERR(status)) {
2205 return status;
2208 /* Return variables */
2210 /* Return result */
2211 if (werror) {
2212 *werror = r.out.result;
2215 return werror_to_ntstatus(r.out.result);
2218 NTSTATUS rpccli_PNP_ModifyResDes(struct rpc_pipe_client *cli,
2219 TALLOC_CTX *mem_ctx,
2220 WERROR *werror)
2222 struct PNP_ModifyResDes r;
2223 NTSTATUS status;
2225 /* In parameters */
2227 if (DEBUGLEVEL >= 10) {
2228 NDR_PRINT_IN_DEBUG(PNP_ModifyResDes, &r);
2231 status = cli->dispatch(cli,
2232 mem_ctx,
2233 &ndr_table_ntsvcs,
2234 NDR_PNP_MODIFYRESDES,
2235 &r);
2237 if (!NT_STATUS_IS_OK(status)) {
2238 return status;
2241 if (DEBUGLEVEL >= 10) {
2242 NDR_PRINT_OUT_DEBUG(PNP_ModifyResDes, &r);
2245 if (NT_STATUS_IS_ERR(status)) {
2246 return status;
2249 /* Return variables */
2251 /* Return result */
2252 if (werror) {
2253 *werror = r.out.result;
2256 return werror_to_ntstatus(r.out.result);
2259 NTSTATUS rpccli_PNP_DetectResourceLimit(struct rpc_pipe_client *cli,
2260 TALLOC_CTX *mem_ctx,
2261 WERROR *werror)
2263 struct PNP_DetectResourceLimit r;
2264 NTSTATUS status;
2266 /* In parameters */
2268 if (DEBUGLEVEL >= 10) {
2269 NDR_PRINT_IN_DEBUG(PNP_DetectResourceLimit, &r);
2272 status = cli->dispatch(cli,
2273 mem_ctx,
2274 &ndr_table_ntsvcs,
2275 NDR_PNP_DETECTRESOURCELIMIT,
2276 &r);
2278 if (!NT_STATUS_IS_OK(status)) {
2279 return status;
2282 if (DEBUGLEVEL >= 10) {
2283 NDR_PRINT_OUT_DEBUG(PNP_DetectResourceLimit, &r);
2286 if (NT_STATUS_IS_ERR(status)) {
2287 return status;
2290 /* Return variables */
2292 /* Return result */
2293 if (werror) {
2294 *werror = r.out.result;
2297 return werror_to_ntstatus(r.out.result);
2300 NTSTATUS rpccli_PNP_QueryResConfList(struct rpc_pipe_client *cli,
2301 TALLOC_CTX *mem_ctx,
2302 WERROR *werror)
2304 struct PNP_QueryResConfList r;
2305 NTSTATUS status;
2307 /* In parameters */
2309 if (DEBUGLEVEL >= 10) {
2310 NDR_PRINT_IN_DEBUG(PNP_QueryResConfList, &r);
2313 status = cli->dispatch(cli,
2314 mem_ctx,
2315 &ndr_table_ntsvcs,
2316 NDR_PNP_QUERYRESCONFLIST,
2317 &r);
2319 if (!NT_STATUS_IS_OK(status)) {
2320 return status;
2323 if (DEBUGLEVEL >= 10) {
2324 NDR_PRINT_OUT_DEBUG(PNP_QueryResConfList, &r);
2327 if (NT_STATUS_IS_ERR(status)) {
2328 return status;
2331 /* Return variables */
2333 /* Return result */
2334 if (werror) {
2335 *werror = r.out.result;
2338 return werror_to_ntstatus(r.out.result);
2341 NTSTATUS rpccli_PNP_SetHwProf(struct rpc_pipe_client *cli,
2342 TALLOC_CTX *mem_ctx,
2343 WERROR *werror)
2345 struct PNP_SetHwProf r;
2346 NTSTATUS status;
2348 /* In parameters */
2350 if (DEBUGLEVEL >= 10) {
2351 NDR_PRINT_IN_DEBUG(PNP_SetHwProf, &r);
2354 status = cli->dispatch(cli,
2355 mem_ctx,
2356 &ndr_table_ntsvcs,
2357 NDR_PNP_SETHWPROF,
2358 &r);
2360 if (!NT_STATUS_IS_OK(status)) {
2361 return status;
2364 if (DEBUGLEVEL >= 10) {
2365 NDR_PRINT_OUT_DEBUG(PNP_SetHwProf, &r);
2368 if (NT_STATUS_IS_ERR(status)) {
2369 return status;
2372 /* Return variables */
2374 /* Return result */
2375 if (werror) {
2376 *werror = r.out.result;
2379 return werror_to_ntstatus(r.out.result);
2382 NTSTATUS rpccli_PNP_QueryArbitratorFreeData(struct rpc_pipe_client *cli,
2383 TALLOC_CTX *mem_ctx,
2384 WERROR *werror)
2386 struct PNP_QueryArbitratorFreeData r;
2387 NTSTATUS status;
2389 /* In parameters */
2391 if (DEBUGLEVEL >= 10) {
2392 NDR_PRINT_IN_DEBUG(PNP_QueryArbitratorFreeData, &r);
2395 status = cli->dispatch(cli,
2396 mem_ctx,
2397 &ndr_table_ntsvcs,
2398 NDR_PNP_QUERYARBITRATORFREEDATA,
2399 &r);
2401 if (!NT_STATUS_IS_OK(status)) {
2402 return status;
2405 if (DEBUGLEVEL >= 10) {
2406 NDR_PRINT_OUT_DEBUG(PNP_QueryArbitratorFreeData, &r);
2409 if (NT_STATUS_IS_ERR(status)) {
2410 return status;
2413 /* Return variables */
2415 /* Return result */
2416 if (werror) {
2417 *werror = r.out.result;
2420 return werror_to_ntstatus(r.out.result);
2423 NTSTATUS rpccli_PNP_QueryArbitratorFreeSize(struct rpc_pipe_client *cli,
2424 TALLOC_CTX *mem_ctx,
2425 WERROR *werror)
2427 struct PNP_QueryArbitratorFreeSize r;
2428 NTSTATUS status;
2430 /* In parameters */
2432 if (DEBUGLEVEL >= 10) {
2433 NDR_PRINT_IN_DEBUG(PNP_QueryArbitratorFreeSize, &r);
2436 status = cli->dispatch(cli,
2437 mem_ctx,
2438 &ndr_table_ntsvcs,
2439 NDR_PNP_QUERYARBITRATORFREESIZE,
2440 &r);
2442 if (!NT_STATUS_IS_OK(status)) {
2443 return status;
2446 if (DEBUGLEVEL >= 10) {
2447 NDR_PRINT_OUT_DEBUG(PNP_QueryArbitratorFreeSize, &r);
2450 if (NT_STATUS_IS_ERR(status)) {
2451 return status;
2454 /* Return variables */
2456 /* Return result */
2457 if (werror) {
2458 *werror = r.out.result;
2461 return werror_to_ntstatus(r.out.result);
2464 NTSTATUS rpccli_PNP_RunDetection(struct rpc_pipe_client *cli,
2465 TALLOC_CTX *mem_ctx,
2466 WERROR *werror)
2468 struct PNP_RunDetection r;
2469 NTSTATUS status;
2471 /* In parameters */
2473 if (DEBUGLEVEL >= 10) {
2474 NDR_PRINT_IN_DEBUG(PNP_RunDetection, &r);
2477 status = cli->dispatch(cli,
2478 mem_ctx,
2479 &ndr_table_ntsvcs,
2480 NDR_PNP_RUNDETECTION,
2481 &r);
2483 if (!NT_STATUS_IS_OK(status)) {
2484 return status;
2487 if (DEBUGLEVEL >= 10) {
2488 NDR_PRINT_OUT_DEBUG(PNP_RunDetection, &r);
2491 if (NT_STATUS_IS_ERR(status)) {
2492 return status;
2495 /* Return variables */
2497 /* Return result */
2498 if (werror) {
2499 *werror = r.out.result;
2502 return werror_to_ntstatus(r.out.result);
2505 NTSTATUS rpccli_PNP_RegisterNotification(struct rpc_pipe_client *cli,
2506 TALLOC_CTX *mem_ctx,
2507 WERROR *werror)
2509 struct PNP_RegisterNotification r;
2510 NTSTATUS status;
2512 /* In parameters */
2514 if (DEBUGLEVEL >= 10) {
2515 NDR_PRINT_IN_DEBUG(PNP_RegisterNotification, &r);
2518 status = cli->dispatch(cli,
2519 mem_ctx,
2520 &ndr_table_ntsvcs,
2521 NDR_PNP_REGISTERNOTIFICATION,
2522 &r);
2524 if (!NT_STATUS_IS_OK(status)) {
2525 return status;
2528 if (DEBUGLEVEL >= 10) {
2529 NDR_PRINT_OUT_DEBUG(PNP_RegisterNotification, &r);
2532 if (NT_STATUS_IS_ERR(status)) {
2533 return status;
2536 /* Return variables */
2538 /* Return result */
2539 if (werror) {
2540 *werror = r.out.result;
2543 return werror_to_ntstatus(r.out.result);
2546 NTSTATUS rpccli_PNP_UnregisterNotification(struct rpc_pipe_client *cli,
2547 TALLOC_CTX *mem_ctx,
2548 WERROR *werror)
2550 struct PNP_UnregisterNotification r;
2551 NTSTATUS status;
2553 /* In parameters */
2555 if (DEBUGLEVEL >= 10) {
2556 NDR_PRINT_IN_DEBUG(PNP_UnregisterNotification, &r);
2559 status = cli->dispatch(cli,
2560 mem_ctx,
2561 &ndr_table_ntsvcs,
2562 NDR_PNP_UNREGISTERNOTIFICATION,
2563 &r);
2565 if (!NT_STATUS_IS_OK(status)) {
2566 return status;
2569 if (DEBUGLEVEL >= 10) {
2570 NDR_PRINT_OUT_DEBUG(PNP_UnregisterNotification, &r);
2573 if (NT_STATUS_IS_ERR(status)) {
2574 return status;
2577 /* Return variables */
2579 /* Return result */
2580 if (werror) {
2581 *werror = r.out.result;
2584 return werror_to_ntstatus(r.out.result);
2587 NTSTATUS rpccli_PNP_GetCustomDevProp(struct rpc_pipe_client *cli,
2588 TALLOC_CTX *mem_ctx,
2589 WERROR *werror)
2591 struct PNP_GetCustomDevProp r;
2592 NTSTATUS status;
2594 /* In parameters */
2596 if (DEBUGLEVEL >= 10) {
2597 NDR_PRINT_IN_DEBUG(PNP_GetCustomDevProp, &r);
2600 status = cli->dispatch(cli,
2601 mem_ctx,
2602 &ndr_table_ntsvcs,
2603 NDR_PNP_GETCUSTOMDEVPROP,
2604 &r);
2606 if (!NT_STATUS_IS_OK(status)) {
2607 return status;
2610 if (DEBUGLEVEL >= 10) {
2611 NDR_PRINT_OUT_DEBUG(PNP_GetCustomDevProp, &r);
2614 if (NT_STATUS_IS_ERR(status)) {
2615 return status;
2618 /* Return variables */
2620 /* Return result */
2621 if (werror) {
2622 *werror = r.out.result;
2625 return werror_to_ntstatus(r.out.result);
2628 NTSTATUS rpccli_PNP_GetVersionInternal(struct rpc_pipe_client *cli,
2629 TALLOC_CTX *mem_ctx,
2630 WERROR *werror)
2632 struct PNP_GetVersionInternal r;
2633 NTSTATUS status;
2635 /* In parameters */
2637 if (DEBUGLEVEL >= 10) {
2638 NDR_PRINT_IN_DEBUG(PNP_GetVersionInternal, &r);
2641 status = cli->dispatch(cli,
2642 mem_ctx,
2643 &ndr_table_ntsvcs,
2644 NDR_PNP_GETVERSIONINTERNAL,
2645 &r);
2647 if (!NT_STATUS_IS_OK(status)) {
2648 return status;
2651 if (DEBUGLEVEL >= 10) {
2652 NDR_PRINT_OUT_DEBUG(PNP_GetVersionInternal, &r);
2655 if (NT_STATUS_IS_ERR(status)) {
2656 return status;
2659 /* Return variables */
2661 /* Return result */
2662 if (werror) {
2663 *werror = r.out.result;
2666 return werror_to_ntstatus(r.out.result);
2669 NTSTATUS rpccli_PNP_GetBlockedDriverInfo(struct rpc_pipe_client *cli,
2670 TALLOC_CTX *mem_ctx,
2671 WERROR *werror)
2673 struct PNP_GetBlockedDriverInfo r;
2674 NTSTATUS status;
2676 /* In parameters */
2678 if (DEBUGLEVEL >= 10) {
2679 NDR_PRINT_IN_DEBUG(PNP_GetBlockedDriverInfo, &r);
2682 status = cli->dispatch(cli,
2683 mem_ctx,
2684 &ndr_table_ntsvcs,
2685 NDR_PNP_GETBLOCKEDDRIVERINFO,
2686 &r);
2688 if (!NT_STATUS_IS_OK(status)) {
2689 return status;
2692 if (DEBUGLEVEL >= 10) {
2693 NDR_PRINT_OUT_DEBUG(PNP_GetBlockedDriverInfo, &r);
2696 if (NT_STATUS_IS_ERR(status)) {
2697 return status;
2700 /* Return variables */
2702 /* Return result */
2703 if (werror) {
2704 *werror = r.out.result;
2707 return werror_to_ntstatus(r.out.result);
2710 NTSTATUS rpccli_PNP_GetServerSideDeviceInstallFlags(struct rpc_pipe_client *cli,
2711 TALLOC_CTX *mem_ctx,
2712 WERROR *werror)
2714 struct PNP_GetServerSideDeviceInstallFlags r;
2715 NTSTATUS status;
2717 /* In parameters */
2719 if (DEBUGLEVEL >= 10) {
2720 NDR_PRINT_IN_DEBUG(PNP_GetServerSideDeviceInstallFlags, &r);
2723 status = cli->dispatch(cli,
2724 mem_ctx,
2725 &ndr_table_ntsvcs,
2726 NDR_PNP_GETSERVERSIDEDEVICEINSTALLFLAGS,
2727 &r);
2729 if (!NT_STATUS_IS_OK(status)) {
2730 return status;
2733 if (DEBUGLEVEL >= 10) {
2734 NDR_PRINT_OUT_DEBUG(PNP_GetServerSideDeviceInstallFlags, &r);
2737 if (NT_STATUS_IS_ERR(status)) {
2738 return status;
2741 /* Return variables */
2743 /* Return result */
2744 if (werror) {
2745 *werror = r.out.result;
2748 return werror_to_ntstatus(r.out.result);