2 * Unix SMB/CIFS implementation.
3 * client auto-generated by pidl. DO NOT MODIFY!
7 #include "librpc/gen_ndr/cli_ntsvcs.h"
9 NTSTATUS rpccli_PNP_Disconnect(struct rpc_pipe_client *cli,
13 struct PNP_Disconnect r;
18 if (DEBUGLEVEL >= 10) {
19 NDR_PRINT_IN_DEBUG(PNP_Disconnect, &r);
22 status = cli_do_rpc_ndr(cli,
28 if (!NT_STATUS_IS_OK(status)) {
32 if (DEBUGLEVEL >= 10) {
33 NDR_PRINT_OUT_DEBUG(PNP_Disconnect, &r);
36 if (NT_STATUS_IS_ERR(status)) {
40 /* Return variables */
44 *werror = r.out.result;
47 return werror_to_ntstatus(r.out.result);
50 NTSTATUS rpccli_PNP_Connect(struct rpc_pipe_client *cli,
59 if (DEBUGLEVEL >= 10) {
60 NDR_PRINT_IN_DEBUG(PNP_Connect, &r);
63 status = cli_do_rpc_ndr(cli,
69 if (!NT_STATUS_IS_OK(status)) {
73 if (DEBUGLEVEL >= 10) {
74 NDR_PRINT_OUT_DEBUG(PNP_Connect, &r);
77 if (NT_STATUS_IS_ERR(status)) {
81 /* Return variables */
85 *werror = r.out.result;
88 return werror_to_ntstatus(r.out.result);
91 NTSTATUS rpccli_PNP_GetVersion(struct rpc_pipe_client *cli,
93 uint16_t *version /* [out] [ref] */,
96 struct PNP_GetVersion r;
101 if (DEBUGLEVEL >= 10) {
102 NDR_PRINT_IN_DEBUG(PNP_GetVersion, &r);
105 status = cli_do_rpc_ndr(cli,
111 if (!NT_STATUS_IS_OK(status)) {
115 if (DEBUGLEVEL >= 10) {
116 NDR_PRINT_OUT_DEBUG(PNP_GetVersion, &r);
119 if (NT_STATUS_IS_ERR(status)) {
123 /* Return variables */
124 *version = *r.out.version;
128 *werror = r.out.result;
131 return werror_to_ntstatus(r.out.result);
134 NTSTATUS rpccli_PNP_GetGlobalState(struct rpc_pipe_client *cli,
138 struct PNP_GetGlobalState r;
143 if (DEBUGLEVEL >= 10) {
144 NDR_PRINT_IN_DEBUG(PNP_GetGlobalState, &r);
147 status = cli_do_rpc_ndr(cli,
150 NDR_PNP_GETGLOBALSTATE,
153 if (!NT_STATUS_IS_OK(status)) {
157 if (DEBUGLEVEL >= 10) {
158 NDR_PRINT_OUT_DEBUG(PNP_GetGlobalState, &r);
161 if (NT_STATUS_IS_ERR(status)) {
165 /* Return variables */
169 *werror = r.out.result;
172 return werror_to_ntstatus(r.out.result);
175 NTSTATUS rpccli_PNP_InitDetection(struct rpc_pipe_client *cli,
179 struct PNP_InitDetection r;
184 if (DEBUGLEVEL >= 10) {
185 NDR_PRINT_IN_DEBUG(PNP_InitDetection, &r);
188 status = cli_do_rpc_ndr(cli,
191 NDR_PNP_INITDETECTION,
194 if (!NT_STATUS_IS_OK(status)) {
198 if (DEBUGLEVEL >= 10) {
199 NDR_PRINT_OUT_DEBUG(PNP_InitDetection, &r);
202 if (NT_STATUS_IS_ERR(status)) {
206 /* Return variables */
210 *werror = r.out.result;
213 return werror_to_ntstatus(r.out.result);
216 NTSTATUS rpccli_PNP_ReportLogOn(struct rpc_pipe_client *cli,
220 struct PNP_ReportLogOn r;
225 if (DEBUGLEVEL >= 10) {
226 NDR_PRINT_IN_DEBUG(PNP_ReportLogOn, &r);
229 status = cli_do_rpc_ndr(cli,
235 if (!NT_STATUS_IS_OK(status)) {
239 if (DEBUGLEVEL >= 10) {
240 NDR_PRINT_OUT_DEBUG(PNP_ReportLogOn, &r);
243 if (NT_STATUS_IS_ERR(status)) {
247 /* Return variables */
251 *werror = r.out.result;
254 return werror_to_ntstatus(r.out.result);
257 NTSTATUS rpccli_PNP_ValidateDeviceInstance(struct rpc_pipe_client *cli,
259 const char *devicepath /* [in] [ref,charset(UTF16)] */,
260 uint32_t flags /* [in] */,
263 struct PNP_ValidateDeviceInstance r;
267 r.in.devicepath = devicepath;
270 if (DEBUGLEVEL >= 10) {
271 NDR_PRINT_IN_DEBUG(PNP_ValidateDeviceInstance, &r);
274 status = cli_do_rpc_ndr(cli,
277 NDR_PNP_VALIDATEDEVICEINSTANCE,
280 if (!NT_STATUS_IS_OK(status)) {
284 if (DEBUGLEVEL >= 10) {
285 NDR_PRINT_OUT_DEBUG(PNP_ValidateDeviceInstance, &r);
288 if (NT_STATUS_IS_ERR(status)) {
292 /* Return variables */
296 *werror = r.out.result;
299 return werror_to_ntstatus(r.out.result);
302 NTSTATUS rpccli_PNP_GetRootDeviceInstance(struct rpc_pipe_client *cli,
306 struct PNP_GetRootDeviceInstance r;
311 if (DEBUGLEVEL >= 10) {
312 NDR_PRINT_IN_DEBUG(PNP_GetRootDeviceInstance, &r);
315 status = cli_do_rpc_ndr(cli,
318 NDR_PNP_GETROOTDEVICEINSTANCE,
321 if (!NT_STATUS_IS_OK(status)) {
325 if (DEBUGLEVEL >= 10) {
326 NDR_PRINT_OUT_DEBUG(PNP_GetRootDeviceInstance, &r);
329 if (NT_STATUS_IS_ERR(status)) {
333 /* Return variables */
337 *werror = r.out.result;
340 return werror_to_ntstatus(r.out.result);
343 NTSTATUS rpccli_PNP_GetRelatedDeviceInstance(struct rpc_pipe_client *cli,
347 struct PNP_GetRelatedDeviceInstance r;
352 if (DEBUGLEVEL >= 10) {
353 NDR_PRINT_IN_DEBUG(PNP_GetRelatedDeviceInstance, &r);
356 status = cli_do_rpc_ndr(cli,
359 NDR_PNP_GETRELATEDDEVICEINSTANCE,
362 if (!NT_STATUS_IS_OK(status)) {
366 if (DEBUGLEVEL >= 10) {
367 NDR_PRINT_OUT_DEBUG(PNP_GetRelatedDeviceInstance, &r);
370 if (NT_STATUS_IS_ERR(status)) {
374 /* Return variables */
378 *werror = r.out.result;
381 return werror_to_ntstatus(r.out.result);
384 NTSTATUS rpccli_PNP_EnumerateSubKeys(struct rpc_pipe_client *cli,
388 struct PNP_EnumerateSubKeys r;
393 if (DEBUGLEVEL >= 10) {
394 NDR_PRINT_IN_DEBUG(PNP_EnumerateSubKeys, &r);
397 status = cli_do_rpc_ndr(cli,
400 NDR_PNP_ENUMERATESUBKEYS,
403 if (!NT_STATUS_IS_OK(status)) {
407 if (DEBUGLEVEL >= 10) {
408 NDR_PRINT_OUT_DEBUG(PNP_EnumerateSubKeys, &r);
411 if (NT_STATUS_IS_ERR(status)) {
415 /* Return variables */
419 *werror = r.out.result;
422 return werror_to_ntstatus(r.out.result);
425 NTSTATUS rpccli_PNP_GetDeviceList(struct rpc_pipe_client *cli,
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] */,
433 struct PNP_GetDeviceList r;
437 r.in.filter = filter;
438 r.in.length = length;
441 if (DEBUGLEVEL >= 10) {
442 NDR_PRINT_IN_DEBUG(PNP_GetDeviceList, &r);
445 status = cli_do_rpc_ndr(cli,
448 NDR_PNP_GETDEVICELIST,
451 if (!NT_STATUS_IS_OK(status)) {
455 if (DEBUGLEVEL >= 10) {
456 NDR_PRINT_OUT_DEBUG(PNP_GetDeviceList, &r);
459 if (NT_STATUS_IS_ERR(status)) {
463 /* Return variables */
464 memcpy(buffer, r.out.buffer, *r.in.length * sizeof(*buffer));
465 *length = *r.out.length;
469 *werror = r.out.result;
472 return werror_to_ntstatus(r.out.result);
475 NTSTATUS rpccli_PNP_GetDeviceListSize(struct rpc_pipe_client *cli,
477 const char *devicename /* [in] [unique,charset(UTF16)] */,
478 uint32_t *size /* [out] [ref] */,
479 uint32_t flags /* [in] */,
482 struct PNP_GetDeviceListSize r;
486 r.in.devicename = devicename;
489 if (DEBUGLEVEL >= 10) {
490 NDR_PRINT_IN_DEBUG(PNP_GetDeviceListSize, &r);
493 status = cli_do_rpc_ndr(cli,
496 NDR_PNP_GETDEVICELISTSIZE,
499 if (!NT_STATUS_IS_OK(status)) {
503 if (DEBUGLEVEL >= 10) {
504 NDR_PRINT_OUT_DEBUG(PNP_GetDeviceListSize, &r);
507 if (NT_STATUS_IS_ERR(status)) {
511 /* Return variables */
516 *werror = r.out.result;
519 return werror_to_ntstatus(r.out.result);
522 NTSTATUS rpccli_PNP_GetDepth(struct rpc_pipe_client *cli,
526 struct PNP_GetDepth r;
531 if (DEBUGLEVEL >= 10) {
532 NDR_PRINT_IN_DEBUG(PNP_GetDepth, &r);
535 status = cli_do_rpc_ndr(cli,
541 if (!NT_STATUS_IS_OK(status)) {
545 if (DEBUGLEVEL >= 10) {
546 NDR_PRINT_OUT_DEBUG(PNP_GetDepth, &r);
549 if (NT_STATUS_IS_ERR(status)) {
553 /* Return variables */
557 *werror = r.out.result;
560 return werror_to_ntstatus(r.out.result);
563 NTSTATUS rpccli_PNP_GetDeviceRegProp(struct rpc_pipe_client *cli,
565 const char *devicepath /* [in] [ref,charset(UTF16)] */,
566 uint32_t property /* [in] */,
567 enum winreg_Type *reg_data_type /* [in,out] [ref] */,
568 uint8_t *buffer /* [out] [ref,length_is(*buffer_size),size_is(*buffer_size)] */,
569 uint32_t *buffer_size /* [in,out] [ref] */,
570 uint32_t *needed /* [in,out] [ref] */,
571 uint32_t flags /* [in] */,
574 struct PNP_GetDeviceRegProp r;
578 r.in.devicepath = devicepath;
579 r.in.property = property;
580 r.in.reg_data_type = reg_data_type;
581 r.in.buffer_size = buffer_size;
582 r.in.needed = needed;
585 if (DEBUGLEVEL >= 10) {
586 NDR_PRINT_IN_DEBUG(PNP_GetDeviceRegProp, &r);
589 status = cli_do_rpc_ndr(cli,
592 NDR_PNP_GETDEVICEREGPROP,
595 if (!NT_STATUS_IS_OK(status)) {
599 if (DEBUGLEVEL >= 10) {
600 NDR_PRINT_OUT_DEBUG(PNP_GetDeviceRegProp, &r);
603 if (NT_STATUS_IS_ERR(status)) {
607 /* Return variables */
608 *reg_data_type = *r.out.reg_data_type;
609 memcpy(buffer, r.out.buffer, *r.in.buffer_size * sizeof(*buffer));
610 *buffer_size = *r.out.buffer_size;
611 *needed = *r.out.needed;
615 *werror = r.out.result;
618 return werror_to_ntstatus(r.out.result);
621 NTSTATUS rpccli_PNP_SetDeviceRegProp(struct rpc_pipe_client *cli,
625 struct PNP_SetDeviceRegProp r;
630 if (DEBUGLEVEL >= 10) {
631 NDR_PRINT_IN_DEBUG(PNP_SetDeviceRegProp, &r);
634 status = cli_do_rpc_ndr(cli,
637 NDR_PNP_SETDEVICEREGPROP,
640 if (!NT_STATUS_IS_OK(status)) {
644 if (DEBUGLEVEL >= 10) {
645 NDR_PRINT_OUT_DEBUG(PNP_SetDeviceRegProp, &r);
648 if (NT_STATUS_IS_ERR(status)) {
652 /* Return variables */
656 *werror = r.out.result;
659 return werror_to_ntstatus(r.out.result);
662 NTSTATUS rpccli_PNP_GetClassInstance(struct rpc_pipe_client *cli,
666 struct PNP_GetClassInstance r;
671 if (DEBUGLEVEL >= 10) {
672 NDR_PRINT_IN_DEBUG(PNP_GetClassInstance, &r);
675 status = cli_do_rpc_ndr(cli,
678 NDR_PNP_GETCLASSINSTANCE,
681 if (!NT_STATUS_IS_OK(status)) {
685 if (DEBUGLEVEL >= 10) {
686 NDR_PRINT_OUT_DEBUG(PNP_GetClassInstance, &r);
689 if (NT_STATUS_IS_ERR(status)) {
693 /* Return variables */
697 *werror = r.out.result;
700 return werror_to_ntstatus(r.out.result);
703 NTSTATUS rpccli_PNP_CreateKey(struct rpc_pipe_client *cli,
707 struct PNP_CreateKey r;
712 if (DEBUGLEVEL >= 10) {
713 NDR_PRINT_IN_DEBUG(PNP_CreateKey, &r);
716 status = cli_do_rpc_ndr(cli,
722 if (!NT_STATUS_IS_OK(status)) {
726 if (DEBUGLEVEL >= 10) {
727 NDR_PRINT_OUT_DEBUG(PNP_CreateKey, &r);
730 if (NT_STATUS_IS_ERR(status)) {
734 /* Return variables */
738 *werror = r.out.result;
741 return werror_to_ntstatus(r.out.result);
744 NTSTATUS rpccli_PNP_DeleteRegistryKey(struct rpc_pipe_client *cli,
748 struct PNP_DeleteRegistryKey r;
753 if (DEBUGLEVEL >= 10) {
754 NDR_PRINT_IN_DEBUG(PNP_DeleteRegistryKey, &r);
757 status = cli_do_rpc_ndr(cli,
760 NDR_PNP_DELETEREGISTRYKEY,
763 if (!NT_STATUS_IS_OK(status)) {
767 if (DEBUGLEVEL >= 10) {
768 NDR_PRINT_OUT_DEBUG(PNP_DeleteRegistryKey, &r);
771 if (NT_STATUS_IS_ERR(status)) {
775 /* Return variables */
779 *werror = r.out.result;
782 return werror_to_ntstatus(r.out.result);
785 NTSTATUS rpccli_PNP_GetClassCount(struct rpc_pipe_client *cli,
789 struct PNP_GetClassCount r;
794 if (DEBUGLEVEL >= 10) {
795 NDR_PRINT_IN_DEBUG(PNP_GetClassCount, &r);
798 status = cli_do_rpc_ndr(cli,
801 NDR_PNP_GETCLASSCOUNT,
804 if (!NT_STATUS_IS_OK(status)) {
808 if (DEBUGLEVEL >= 10) {
809 NDR_PRINT_OUT_DEBUG(PNP_GetClassCount, &r);
812 if (NT_STATUS_IS_ERR(status)) {
816 /* Return variables */
820 *werror = r.out.result;
823 return werror_to_ntstatus(r.out.result);
826 NTSTATUS rpccli_PNP_GetClassName(struct rpc_pipe_client *cli,
830 struct PNP_GetClassName r;
835 if (DEBUGLEVEL >= 10) {
836 NDR_PRINT_IN_DEBUG(PNP_GetClassName, &r);
839 status = cli_do_rpc_ndr(cli,
842 NDR_PNP_GETCLASSNAME,
845 if (!NT_STATUS_IS_OK(status)) {
849 if (DEBUGLEVEL >= 10) {
850 NDR_PRINT_OUT_DEBUG(PNP_GetClassName, &r);
853 if (NT_STATUS_IS_ERR(status)) {
857 /* Return variables */
861 *werror = r.out.result;
864 return werror_to_ntstatus(r.out.result);
867 NTSTATUS rpccli_PNP_DeleteClassKey(struct rpc_pipe_client *cli,
871 struct PNP_DeleteClassKey r;
876 if (DEBUGLEVEL >= 10) {
877 NDR_PRINT_IN_DEBUG(PNP_DeleteClassKey, &r);
880 status = cli_do_rpc_ndr(cli,
883 NDR_PNP_DELETECLASSKEY,
886 if (!NT_STATUS_IS_OK(status)) {
890 if (DEBUGLEVEL >= 10) {
891 NDR_PRINT_OUT_DEBUG(PNP_DeleteClassKey, &r);
894 if (NT_STATUS_IS_ERR(status)) {
898 /* Return variables */
902 *werror = r.out.result;
905 return werror_to_ntstatus(r.out.result);
908 NTSTATUS rpccli_PNP_GetInterfaceDeviceAlias(struct rpc_pipe_client *cli,
912 struct PNP_GetInterfaceDeviceAlias r;
917 if (DEBUGLEVEL >= 10) {
918 NDR_PRINT_IN_DEBUG(PNP_GetInterfaceDeviceAlias, &r);
921 status = cli_do_rpc_ndr(cli,
924 NDR_PNP_GETINTERFACEDEVICEALIAS,
927 if (!NT_STATUS_IS_OK(status)) {
931 if (DEBUGLEVEL >= 10) {
932 NDR_PRINT_OUT_DEBUG(PNP_GetInterfaceDeviceAlias, &r);
935 if (NT_STATUS_IS_ERR(status)) {
939 /* Return variables */
943 *werror = r.out.result;
946 return werror_to_ntstatus(r.out.result);
949 NTSTATUS rpccli_PNP_GetInterfaceDeviceList(struct rpc_pipe_client *cli,
953 struct PNP_GetInterfaceDeviceList r;
958 if (DEBUGLEVEL >= 10) {
959 NDR_PRINT_IN_DEBUG(PNP_GetInterfaceDeviceList, &r);
962 status = cli_do_rpc_ndr(cli,
965 NDR_PNP_GETINTERFACEDEVICELIST,
968 if (!NT_STATUS_IS_OK(status)) {
972 if (DEBUGLEVEL >= 10) {
973 NDR_PRINT_OUT_DEBUG(PNP_GetInterfaceDeviceList, &r);
976 if (NT_STATUS_IS_ERR(status)) {
980 /* Return variables */
984 *werror = r.out.result;
987 return werror_to_ntstatus(r.out.result);
990 NTSTATUS rpccli_PNP_GetInterfaceDeviceListSize(struct rpc_pipe_client *cli,
994 struct PNP_GetInterfaceDeviceListSize r;
999 if (DEBUGLEVEL >= 10) {
1000 NDR_PRINT_IN_DEBUG(PNP_GetInterfaceDeviceListSize, &r);
1003 status = cli_do_rpc_ndr(cli,
1006 NDR_PNP_GETINTERFACEDEVICELISTSIZE,
1009 if (!NT_STATUS_IS_OK(status)) {
1013 if (DEBUGLEVEL >= 10) {
1014 NDR_PRINT_OUT_DEBUG(PNP_GetInterfaceDeviceListSize, &r);
1017 if (NT_STATUS_IS_ERR(status)) {
1021 /* Return variables */
1025 *werror = r.out.result;
1028 return werror_to_ntstatus(r.out.result);
1031 NTSTATUS rpccli_PNP_RegisterDeviceClassAssociation(struct rpc_pipe_client *cli,
1032 TALLOC_CTX *mem_ctx,
1035 struct PNP_RegisterDeviceClassAssociation r;
1040 if (DEBUGLEVEL >= 10) {
1041 NDR_PRINT_IN_DEBUG(PNP_RegisterDeviceClassAssociation, &r);
1044 status = cli_do_rpc_ndr(cli,
1047 NDR_PNP_REGISTERDEVICECLASSASSOCIATION,
1050 if (!NT_STATUS_IS_OK(status)) {
1054 if (DEBUGLEVEL >= 10) {
1055 NDR_PRINT_OUT_DEBUG(PNP_RegisterDeviceClassAssociation, &r);
1058 if (NT_STATUS_IS_ERR(status)) {
1062 /* Return variables */
1066 *werror = r.out.result;
1069 return werror_to_ntstatus(r.out.result);
1072 NTSTATUS rpccli_PNP_UnregisterDeviceClassAssociation(struct rpc_pipe_client *cli,
1073 TALLOC_CTX *mem_ctx,
1076 struct PNP_UnregisterDeviceClassAssociation r;
1081 if (DEBUGLEVEL >= 10) {
1082 NDR_PRINT_IN_DEBUG(PNP_UnregisterDeviceClassAssociation, &r);
1085 status = cli_do_rpc_ndr(cli,
1088 NDR_PNP_UNREGISTERDEVICECLASSASSOCIATION,
1091 if (!NT_STATUS_IS_OK(status)) {
1095 if (DEBUGLEVEL >= 10) {
1096 NDR_PRINT_OUT_DEBUG(PNP_UnregisterDeviceClassAssociation, &r);
1099 if (NT_STATUS_IS_ERR(status)) {
1103 /* Return variables */
1107 *werror = r.out.result;
1110 return werror_to_ntstatus(r.out.result);
1113 NTSTATUS rpccli_PNP_GetClassRegProp(struct rpc_pipe_client *cli,
1114 TALLOC_CTX *mem_ctx,
1117 struct PNP_GetClassRegProp r;
1122 if (DEBUGLEVEL >= 10) {
1123 NDR_PRINT_IN_DEBUG(PNP_GetClassRegProp, &r);
1126 status = cli_do_rpc_ndr(cli,
1129 NDR_PNP_GETCLASSREGPROP,
1132 if (!NT_STATUS_IS_OK(status)) {
1136 if (DEBUGLEVEL >= 10) {
1137 NDR_PRINT_OUT_DEBUG(PNP_GetClassRegProp, &r);
1140 if (NT_STATUS_IS_ERR(status)) {
1144 /* Return variables */
1148 *werror = r.out.result;
1151 return werror_to_ntstatus(r.out.result);
1154 NTSTATUS rpccli_PNP_SetClassRegProp(struct rpc_pipe_client *cli,
1155 TALLOC_CTX *mem_ctx,
1158 struct PNP_SetClassRegProp r;
1163 if (DEBUGLEVEL >= 10) {
1164 NDR_PRINT_IN_DEBUG(PNP_SetClassRegProp, &r);
1167 status = cli_do_rpc_ndr(cli,
1170 NDR_PNP_SETCLASSREGPROP,
1173 if (!NT_STATUS_IS_OK(status)) {
1177 if (DEBUGLEVEL >= 10) {
1178 NDR_PRINT_OUT_DEBUG(PNP_SetClassRegProp, &r);
1181 if (NT_STATUS_IS_ERR(status)) {
1185 /* Return variables */
1189 *werror = r.out.result;
1192 return werror_to_ntstatus(r.out.result);
1195 NTSTATUS rpccli_PNP_CreateDevInst(struct rpc_pipe_client *cli,
1196 TALLOC_CTX *mem_ctx,
1199 struct PNP_CreateDevInst r;
1204 if (DEBUGLEVEL >= 10) {
1205 NDR_PRINT_IN_DEBUG(PNP_CreateDevInst, &r);
1208 status = cli_do_rpc_ndr(cli,
1211 NDR_PNP_CREATEDEVINST,
1214 if (!NT_STATUS_IS_OK(status)) {
1218 if (DEBUGLEVEL >= 10) {
1219 NDR_PRINT_OUT_DEBUG(PNP_CreateDevInst, &r);
1222 if (NT_STATUS_IS_ERR(status)) {
1226 /* Return variables */
1230 *werror = r.out.result;
1233 return werror_to_ntstatus(r.out.result);
1236 NTSTATUS rpccli_PNP_DeviceInstanceAction(struct rpc_pipe_client *cli,
1237 TALLOC_CTX *mem_ctx,
1240 struct PNP_DeviceInstanceAction r;
1245 if (DEBUGLEVEL >= 10) {
1246 NDR_PRINT_IN_DEBUG(PNP_DeviceInstanceAction, &r);
1249 status = cli_do_rpc_ndr(cli,
1252 NDR_PNP_DEVICEINSTANCEACTION,
1255 if (!NT_STATUS_IS_OK(status)) {
1259 if (DEBUGLEVEL >= 10) {
1260 NDR_PRINT_OUT_DEBUG(PNP_DeviceInstanceAction, &r);
1263 if (NT_STATUS_IS_ERR(status)) {
1267 /* Return variables */
1271 *werror = r.out.result;
1274 return werror_to_ntstatus(r.out.result);
1277 NTSTATUS rpccli_PNP_GetDeviceStatus(struct rpc_pipe_client *cli,
1278 TALLOC_CTX *mem_ctx,
1281 struct PNP_GetDeviceStatus r;
1286 if (DEBUGLEVEL >= 10) {
1287 NDR_PRINT_IN_DEBUG(PNP_GetDeviceStatus, &r);
1290 status = cli_do_rpc_ndr(cli,
1293 NDR_PNP_GETDEVICESTATUS,
1296 if (!NT_STATUS_IS_OK(status)) {
1300 if (DEBUGLEVEL >= 10) {
1301 NDR_PRINT_OUT_DEBUG(PNP_GetDeviceStatus, &r);
1304 if (NT_STATUS_IS_ERR(status)) {
1308 /* Return variables */
1312 *werror = r.out.result;
1315 return werror_to_ntstatus(r.out.result);
1318 NTSTATUS rpccli_PNP_SetDeviceProblem(struct rpc_pipe_client *cli,
1319 TALLOC_CTX *mem_ctx,
1322 struct PNP_SetDeviceProblem r;
1327 if (DEBUGLEVEL >= 10) {
1328 NDR_PRINT_IN_DEBUG(PNP_SetDeviceProblem, &r);
1331 status = cli_do_rpc_ndr(cli,
1334 NDR_PNP_SETDEVICEPROBLEM,
1337 if (!NT_STATUS_IS_OK(status)) {
1341 if (DEBUGLEVEL >= 10) {
1342 NDR_PRINT_OUT_DEBUG(PNP_SetDeviceProblem, &r);
1345 if (NT_STATUS_IS_ERR(status)) {
1349 /* Return variables */
1353 *werror = r.out.result;
1356 return werror_to_ntstatus(r.out.result);
1359 NTSTATUS rpccli_PNP_DisableDevInst(struct rpc_pipe_client *cli,
1360 TALLOC_CTX *mem_ctx,
1363 struct PNP_DisableDevInst r;
1368 if (DEBUGLEVEL >= 10) {
1369 NDR_PRINT_IN_DEBUG(PNP_DisableDevInst, &r);
1372 status = cli_do_rpc_ndr(cli,
1375 NDR_PNP_DISABLEDEVINST,
1378 if (!NT_STATUS_IS_OK(status)) {
1382 if (DEBUGLEVEL >= 10) {
1383 NDR_PRINT_OUT_DEBUG(PNP_DisableDevInst, &r);
1386 if (NT_STATUS_IS_ERR(status)) {
1390 /* Return variables */
1394 *werror = r.out.result;
1397 return werror_to_ntstatus(r.out.result);
1400 NTSTATUS rpccli_PNP_UninstallDevInst(struct rpc_pipe_client *cli,
1401 TALLOC_CTX *mem_ctx,
1404 struct PNP_UninstallDevInst r;
1409 if (DEBUGLEVEL >= 10) {
1410 NDR_PRINT_IN_DEBUG(PNP_UninstallDevInst, &r);
1413 status = cli_do_rpc_ndr(cli,
1416 NDR_PNP_UNINSTALLDEVINST,
1419 if (!NT_STATUS_IS_OK(status)) {
1423 if (DEBUGLEVEL >= 10) {
1424 NDR_PRINT_OUT_DEBUG(PNP_UninstallDevInst, &r);
1427 if (NT_STATUS_IS_ERR(status)) {
1431 /* Return variables */
1435 *werror = r.out.result;
1438 return werror_to_ntstatus(r.out.result);
1441 NTSTATUS rpccli_PNP_AddID(struct rpc_pipe_client *cli,
1442 TALLOC_CTX *mem_ctx,
1450 if (DEBUGLEVEL >= 10) {
1451 NDR_PRINT_IN_DEBUG(PNP_AddID, &r);
1454 status = cli_do_rpc_ndr(cli,
1460 if (!NT_STATUS_IS_OK(status)) {
1464 if (DEBUGLEVEL >= 10) {
1465 NDR_PRINT_OUT_DEBUG(PNP_AddID, &r);
1468 if (NT_STATUS_IS_ERR(status)) {
1472 /* Return variables */
1476 *werror = r.out.result;
1479 return werror_to_ntstatus(r.out.result);
1482 NTSTATUS rpccli_PNP_RegisterDriver(struct rpc_pipe_client *cli,
1483 TALLOC_CTX *mem_ctx,
1486 struct PNP_RegisterDriver r;
1491 if (DEBUGLEVEL >= 10) {
1492 NDR_PRINT_IN_DEBUG(PNP_RegisterDriver, &r);
1495 status = cli_do_rpc_ndr(cli,
1498 NDR_PNP_REGISTERDRIVER,
1501 if (!NT_STATUS_IS_OK(status)) {
1505 if (DEBUGLEVEL >= 10) {
1506 NDR_PRINT_OUT_DEBUG(PNP_RegisterDriver, &r);
1509 if (NT_STATUS_IS_ERR(status)) {
1513 /* Return variables */
1517 *werror = r.out.result;
1520 return werror_to_ntstatus(r.out.result);
1523 NTSTATUS rpccli_PNP_QueryRemove(struct rpc_pipe_client *cli,
1524 TALLOC_CTX *mem_ctx,
1527 struct PNP_QueryRemove r;
1532 if (DEBUGLEVEL >= 10) {
1533 NDR_PRINT_IN_DEBUG(PNP_QueryRemove, &r);
1536 status = cli_do_rpc_ndr(cli,
1539 NDR_PNP_QUERYREMOVE,
1542 if (!NT_STATUS_IS_OK(status)) {
1546 if (DEBUGLEVEL >= 10) {
1547 NDR_PRINT_OUT_DEBUG(PNP_QueryRemove, &r);
1550 if (NT_STATUS_IS_ERR(status)) {
1554 /* Return variables */
1558 *werror = r.out.result;
1561 return werror_to_ntstatus(r.out.result);
1564 NTSTATUS rpccli_PNP_RequestDeviceEject(struct rpc_pipe_client *cli,
1565 TALLOC_CTX *mem_ctx,
1568 struct PNP_RequestDeviceEject r;
1573 if (DEBUGLEVEL >= 10) {
1574 NDR_PRINT_IN_DEBUG(PNP_RequestDeviceEject, &r);
1577 status = cli_do_rpc_ndr(cli,
1580 NDR_PNP_REQUESTDEVICEEJECT,
1583 if (!NT_STATUS_IS_OK(status)) {
1587 if (DEBUGLEVEL >= 10) {
1588 NDR_PRINT_OUT_DEBUG(PNP_RequestDeviceEject, &r);
1591 if (NT_STATUS_IS_ERR(status)) {
1595 /* Return variables */
1599 *werror = r.out.result;
1602 return werror_to_ntstatus(r.out.result);
1605 NTSTATUS rpccli_PNP_IsDockStationPresent(struct rpc_pipe_client *cli,
1606 TALLOC_CTX *mem_ctx,
1609 struct PNP_IsDockStationPresent r;
1614 if (DEBUGLEVEL >= 10) {
1615 NDR_PRINT_IN_DEBUG(PNP_IsDockStationPresent, &r);
1618 status = cli_do_rpc_ndr(cli,
1621 NDR_PNP_ISDOCKSTATIONPRESENT,
1624 if (!NT_STATUS_IS_OK(status)) {
1628 if (DEBUGLEVEL >= 10) {
1629 NDR_PRINT_OUT_DEBUG(PNP_IsDockStationPresent, &r);
1632 if (NT_STATUS_IS_ERR(status)) {
1636 /* Return variables */
1640 *werror = r.out.result;
1643 return werror_to_ntstatus(r.out.result);
1646 NTSTATUS rpccli_PNP_RequestEjectPC(struct rpc_pipe_client *cli,
1647 TALLOC_CTX *mem_ctx,
1650 struct PNP_RequestEjectPC r;
1655 if (DEBUGLEVEL >= 10) {
1656 NDR_PRINT_IN_DEBUG(PNP_RequestEjectPC, &r);
1659 status = cli_do_rpc_ndr(cli,
1662 NDR_PNP_REQUESTEJECTPC,
1665 if (!NT_STATUS_IS_OK(status)) {
1669 if (DEBUGLEVEL >= 10) {
1670 NDR_PRINT_OUT_DEBUG(PNP_RequestEjectPC, &r);
1673 if (NT_STATUS_IS_ERR(status)) {
1677 /* Return variables */
1681 *werror = r.out.result;
1684 return werror_to_ntstatus(r.out.result);
1687 NTSTATUS rpccli_PNP_HwProfFlags(struct rpc_pipe_client *cli,
1688 TALLOC_CTX *mem_ctx,
1689 uint32_t action /* [in] */,
1690 const char *devicepath /* [in] [ref,charset(UTF16)] */,
1691 uint32_t config /* [in] */,
1692 uint32_t *profile_flags /* [in,out] [ref] */,
1693 uint16_t *veto_type /* [in,out] [unique] */,
1694 const char *unknown5 /* [in] [unique,charset(UTF16)] */,
1695 const char **unknown5a /* [out] [unique,charset(UTF16)] */,
1696 uint32_t name_length /* [in] */,
1697 uint32_t flags /* [in] */,
1700 struct PNP_HwProfFlags r;
1704 r.in.action = action;
1705 r.in.devicepath = devicepath;
1706 r.in.config = config;
1707 r.in.profile_flags = profile_flags;
1708 r.in.veto_type = veto_type;
1709 r.in.unknown5 = unknown5;
1710 r.in.name_length = name_length;
1713 if (DEBUGLEVEL >= 10) {
1714 NDR_PRINT_IN_DEBUG(PNP_HwProfFlags, &r);
1717 status = cli_do_rpc_ndr(cli,
1720 NDR_PNP_HWPROFFLAGS,
1723 if (!NT_STATUS_IS_OK(status)) {
1727 if (DEBUGLEVEL >= 10) {
1728 NDR_PRINT_OUT_DEBUG(PNP_HwProfFlags, &r);
1731 if (NT_STATUS_IS_ERR(status)) {
1735 /* Return variables */
1736 *profile_flags = *r.out.profile_flags;
1737 if (veto_type && r.out.veto_type) {
1738 *veto_type = *r.out.veto_type;
1740 if (unknown5a && r.out.unknown5a) {
1741 *unknown5a = *r.out.unknown5a;
1746 *werror = r.out.result;
1749 return werror_to_ntstatus(r.out.result);
1752 NTSTATUS rpccli_PNP_GetHwProfInfo(struct rpc_pipe_client *cli,
1753 TALLOC_CTX *mem_ctx,
1754 uint32_t idx /* [in] */,
1755 struct PNP_HwProfInfo *info /* [in,out] [ref] */,
1756 uint32_t size /* [in] */,
1757 uint32_t flags /* [in] */,
1760 struct PNP_GetHwProfInfo r;
1769 if (DEBUGLEVEL >= 10) {
1770 NDR_PRINT_IN_DEBUG(PNP_GetHwProfInfo, &r);
1773 status = cli_do_rpc_ndr(cli,
1776 NDR_PNP_GETHWPROFINFO,
1779 if (!NT_STATUS_IS_OK(status)) {
1783 if (DEBUGLEVEL >= 10) {
1784 NDR_PRINT_OUT_DEBUG(PNP_GetHwProfInfo, &r);
1787 if (NT_STATUS_IS_ERR(status)) {
1791 /* Return variables */
1792 *info = *r.out.info;
1796 *werror = r.out.result;
1799 return werror_to_ntstatus(r.out.result);
1802 NTSTATUS rpccli_PNP_AddEmptyLogConf(struct rpc_pipe_client *cli,
1803 TALLOC_CTX *mem_ctx,
1806 struct PNP_AddEmptyLogConf r;
1811 if (DEBUGLEVEL >= 10) {
1812 NDR_PRINT_IN_DEBUG(PNP_AddEmptyLogConf, &r);
1815 status = cli_do_rpc_ndr(cli,
1818 NDR_PNP_ADDEMPTYLOGCONF,
1821 if (!NT_STATUS_IS_OK(status)) {
1825 if (DEBUGLEVEL >= 10) {
1826 NDR_PRINT_OUT_DEBUG(PNP_AddEmptyLogConf, &r);
1829 if (NT_STATUS_IS_ERR(status)) {
1833 /* Return variables */
1837 *werror = r.out.result;
1840 return werror_to_ntstatus(r.out.result);
1843 NTSTATUS rpccli_PNP_FreeLogConf(struct rpc_pipe_client *cli,
1844 TALLOC_CTX *mem_ctx,
1847 struct PNP_FreeLogConf r;
1852 if (DEBUGLEVEL >= 10) {
1853 NDR_PRINT_IN_DEBUG(PNP_FreeLogConf, &r);
1856 status = cli_do_rpc_ndr(cli,
1859 NDR_PNP_FREELOGCONF,
1862 if (!NT_STATUS_IS_OK(status)) {
1866 if (DEBUGLEVEL >= 10) {
1867 NDR_PRINT_OUT_DEBUG(PNP_FreeLogConf, &r);
1870 if (NT_STATUS_IS_ERR(status)) {
1874 /* Return variables */
1878 *werror = r.out.result;
1881 return werror_to_ntstatus(r.out.result);
1884 NTSTATUS rpccli_PNP_GetFirstLogConf(struct rpc_pipe_client *cli,
1885 TALLOC_CTX *mem_ctx,
1888 struct PNP_GetFirstLogConf r;
1893 if (DEBUGLEVEL >= 10) {
1894 NDR_PRINT_IN_DEBUG(PNP_GetFirstLogConf, &r);
1897 status = cli_do_rpc_ndr(cli,
1900 NDR_PNP_GETFIRSTLOGCONF,
1903 if (!NT_STATUS_IS_OK(status)) {
1907 if (DEBUGLEVEL >= 10) {
1908 NDR_PRINT_OUT_DEBUG(PNP_GetFirstLogConf, &r);
1911 if (NT_STATUS_IS_ERR(status)) {
1915 /* Return variables */
1919 *werror = r.out.result;
1922 return werror_to_ntstatus(r.out.result);
1925 NTSTATUS rpccli_PNP_GetNextLogConf(struct rpc_pipe_client *cli,
1926 TALLOC_CTX *mem_ctx,
1929 struct PNP_GetNextLogConf r;
1934 if (DEBUGLEVEL >= 10) {
1935 NDR_PRINT_IN_DEBUG(PNP_GetNextLogConf, &r);
1938 status = cli_do_rpc_ndr(cli,
1941 NDR_PNP_GETNEXTLOGCONF,
1944 if (!NT_STATUS_IS_OK(status)) {
1948 if (DEBUGLEVEL >= 10) {
1949 NDR_PRINT_OUT_DEBUG(PNP_GetNextLogConf, &r);
1952 if (NT_STATUS_IS_ERR(status)) {
1956 /* Return variables */
1960 *werror = r.out.result;
1963 return werror_to_ntstatus(r.out.result);
1966 NTSTATUS rpccli_PNP_GetLogConfPriority(struct rpc_pipe_client *cli,
1967 TALLOC_CTX *mem_ctx,
1970 struct PNP_GetLogConfPriority r;
1975 if (DEBUGLEVEL >= 10) {
1976 NDR_PRINT_IN_DEBUG(PNP_GetLogConfPriority, &r);
1979 status = cli_do_rpc_ndr(cli,
1982 NDR_PNP_GETLOGCONFPRIORITY,
1985 if (!NT_STATUS_IS_OK(status)) {
1989 if (DEBUGLEVEL >= 10) {
1990 NDR_PRINT_OUT_DEBUG(PNP_GetLogConfPriority, &r);
1993 if (NT_STATUS_IS_ERR(status)) {
1997 /* Return variables */
2001 *werror = r.out.result;
2004 return werror_to_ntstatus(r.out.result);
2007 NTSTATUS rpccli_PNP_AddResDes(struct rpc_pipe_client *cli,
2008 TALLOC_CTX *mem_ctx,
2011 struct PNP_AddResDes r;
2016 if (DEBUGLEVEL >= 10) {
2017 NDR_PRINT_IN_DEBUG(PNP_AddResDes, &r);
2020 status = cli_do_rpc_ndr(cli,
2026 if (!NT_STATUS_IS_OK(status)) {
2030 if (DEBUGLEVEL >= 10) {
2031 NDR_PRINT_OUT_DEBUG(PNP_AddResDes, &r);
2034 if (NT_STATUS_IS_ERR(status)) {
2038 /* Return variables */
2042 *werror = r.out.result;
2045 return werror_to_ntstatus(r.out.result);
2048 NTSTATUS rpccli_PNP_FreeResDes(struct rpc_pipe_client *cli,
2049 TALLOC_CTX *mem_ctx,
2052 struct PNP_FreeResDes r;
2057 if (DEBUGLEVEL >= 10) {
2058 NDR_PRINT_IN_DEBUG(PNP_FreeResDes, &r);
2061 status = cli_do_rpc_ndr(cli,
2067 if (!NT_STATUS_IS_OK(status)) {
2071 if (DEBUGLEVEL >= 10) {
2072 NDR_PRINT_OUT_DEBUG(PNP_FreeResDes, &r);
2075 if (NT_STATUS_IS_ERR(status)) {
2079 /* Return variables */
2083 *werror = r.out.result;
2086 return werror_to_ntstatus(r.out.result);
2089 NTSTATUS rpccli_PNP_GetNextResDes(struct rpc_pipe_client *cli,
2090 TALLOC_CTX *mem_ctx,
2093 struct PNP_GetNextResDes r;
2098 if (DEBUGLEVEL >= 10) {
2099 NDR_PRINT_IN_DEBUG(PNP_GetNextResDes, &r);
2102 status = cli_do_rpc_ndr(cli,
2105 NDR_PNP_GETNEXTRESDES,
2108 if (!NT_STATUS_IS_OK(status)) {
2112 if (DEBUGLEVEL >= 10) {
2113 NDR_PRINT_OUT_DEBUG(PNP_GetNextResDes, &r);
2116 if (NT_STATUS_IS_ERR(status)) {
2120 /* Return variables */
2124 *werror = r.out.result;
2127 return werror_to_ntstatus(r.out.result);
2130 NTSTATUS rpccli_PNP_GetResDesData(struct rpc_pipe_client *cli,
2131 TALLOC_CTX *mem_ctx,
2134 struct PNP_GetResDesData r;
2139 if (DEBUGLEVEL >= 10) {
2140 NDR_PRINT_IN_DEBUG(PNP_GetResDesData, &r);
2143 status = cli_do_rpc_ndr(cli,
2146 NDR_PNP_GETRESDESDATA,
2149 if (!NT_STATUS_IS_OK(status)) {
2153 if (DEBUGLEVEL >= 10) {
2154 NDR_PRINT_OUT_DEBUG(PNP_GetResDesData, &r);
2157 if (NT_STATUS_IS_ERR(status)) {
2161 /* Return variables */
2165 *werror = r.out.result;
2168 return werror_to_ntstatus(r.out.result);
2171 NTSTATUS rpccli_PNP_GetResDesDataSize(struct rpc_pipe_client *cli,
2172 TALLOC_CTX *mem_ctx,
2175 struct PNP_GetResDesDataSize r;
2180 if (DEBUGLEVEL >= 10) {
2181 NDR_PRINT_IN_DEBUG(PNP_GetResDesDataSize, &r);
2184 status = cli_do_rpc_ndr(cli,
2187 NDR_PNP_GETRESDESDATASIZE,
2190 if (!NT_STATUS_IS_OK(status)) {
2194 if (DEBUGLEVEL >= 10) {
2195 NDR_PRINT_OUT_DEBUG(PNP_GetResDesDataSize, &r);
2198 if (NT_STATUS_IS_ERR(status)) {
2202 /* Return variables */
2206 *werror = r.out.result;
2209 return werror_to_ntstatus(r.out.result);
2212 NTSTATUS rpccli_PNP_ModifyResDes(struct rpc_pipe_client *cli,
2213 TALLOC_CTX *mem_ctx,
2216 struct PNP_ModifyResDes r;
2221 if (DEBUGLEVEL >= 10) {
2222 NDR_PRINT_IN_DEBUG(PNP_ModifyResDes, &r);
2225 status = cli_do_rpc_ndr(cli,
2228 NDR_PNP_MODIFYRESDES,
2231 if (!NT_STATUS_IS_OK(status)) {
2235 if (DEBUGLEVEL >= 10) {
2236 NDR_PRINT_OUT_DEBUG(PNP_ModifyResDes, &r);
2239 if (NT_STATUS_IS_ERR(status)) {
2243 /* Return variables */
2247 *werror = r.out.result;
2250 return werror_to_ntstatus(r.out.result);
2253 NTSTATUS rpccli_PNP_DetectResourceLimit(struct rpc_pipe_client *cli,
2254 TALLOC_CTX *mem_ctx,
2257 struct PNP_DetectResourceLimit r;
2262 if (DEBUGLEVEL >= 10) {
2263 NDR_PRINT_IN_DEBUG(PNP_DetectResourceLimit, &r);
2266 status = cli_do_rpc_ndr(cli,
2269 NDR_PNP_DETECTRESOURCELIMIT,
2272 if (!NT_STATUS_IS_OK(status)) {
2276 if (DEBUGLEVEL >= 10) {
2277 NDR_PRINT_OUT_DEBUG(PNP_DetectResourceLimit, &r);
2280 if (NT_STATUS_IS_ERR(status)) {
2284 /* Return variables */
2288 *werror = r.out.result;
2291 return werror_to_ntstatus(r.out.result);
2294 NTSTATUS rpccli_PNP_QueryResConfList(struct rpc_pipe_client *cli,
2295 TALLOC_CTX *mem_ctx,
2298 struct PNP_QueryResConfList r;
2303 if (DEBUGLEVEL >= 10) {
2304 NDR_PRINT_IN_DEBUG(PNP_QueryResConfList, &r);
2307 status = cli_do_rpc_ndr(cli,
2310 NDR_PNP_QUERYRESCONFLIST,
2313 if (!NT_STATUS_IS_OK(status)) {
2317 if (DEBUGLEVEL >= 10) {
2318 NDR_PRINT_OUT_DEBUG(PNP_QueryResConfList, &r);
2321 if (NT_STATUS_IS_ERR(status)) {
2325 /* Return variables */
2329 *werror = r.out.result;
2332 return werror_to_ntstatus(r.out.result);
2335 NTSTATUS rpccli_PNP_SetHwProf(struct rpc_pipe_client *cli,
2336 TALLOC_CTX *mem_ctx,
2339 struct PNP_SetHwProf r;
2344 if (DEBUGLEVEL >= 10) {
2345 NDR_PRINT_IN_DEBUG(PNP_SetHwProf, &r);
2348 status = cli_do_rpc_ndr(cli,
2354 if (!NT_STATUS_IS_OK(status)) {
2358 if (DEBUGLEVEL >= 10) {
2359 NDR_PRINT_OUT_DEBUG(PNP_SetHwProf, &r);
2362 if (NT_STATUS_IS_ERR(status)) {
2366 /* Return variables */
2370 *werror = r.out.result;
2373 return werror_to_ntstatus(r.out.result);
2376 NTSTATUS rpccli_PNP_QueryArbitratorFreeData(struct rpc_pipe_client *cli,
2377 TALLOC_CTX *mem_ctx,
2380 struct PNP_QueryArbitratorFreeData r;
2385 if (DEBUGLEVEL >= 10) {
2386 NDR_PRINT_IN_DEBUG(PNP_QueryArbitratorFreeData, &r);
2389 status = cli_do_rpc_ndr(cli,
2392 NDR_PNP_QUERYARBITRATORFREEDATA,
2395 if (!NT_STATUS_IS_OK(status)) {
2399 if (DEBUGLEVEL >= 10) {
2400 NDR_PRINT_OUT_DEBUG(PNP_QueryArbitratorFreeData, &r);
2403 if (NT_STATUS_IS_ERR(status)) {
2407 /* Return variables */
2411 *werror = r.out.result;
2414 return werror_to_ntstatus(r.out.result);
2417 NTSTATUS rpccli_PNP_QueryArbitratorFreeSize(struct rpc_pipe_client *cli,
2418 TALLOC_CTX *mem_ctx,
2421 struct PNP_QueryArbitratorFreeSize r;
2426 if (DEBUGLEVEL >= 10) {
2427 NDR_PRINT_IN_DEBUG(PNP_QueryArbitratorFreeSize, &r);
2430 status = cli_do_rpc_ndr(cli,
2433 NDR_PNP_QUERYARBITRATORFREESIZE,
2436 if (!NT_STATUS_IS_OK(status)) {
2440 if (DEBUGLEVEL >= 10) {
2441 NDR_PRINT_OUT_DEBUG(PNP_QueryArbitratorFreeSize, &r);
2444 if (NT_STATUS_IS_ERR(status)) {
2448 /* Return variables */
2452 *werror = r.out.result;
2455 return werror_to_ntstatus(r.out.result);
2458 NTSTATUS rpccli_PNP_RunDetection(struct rpc_pipe_client *cli,
2459 TALLOC_CTX *mem_ctx,
2462 struct PNP_RunDetection r;
2467 if (DEBUGLEVEL >= 10) {
2468 NDR_PRINT_IN_DEBUG(PNP_RunDetection, &r);
2471 status = cli_do_rpc_ndr(cli,
2474 NDR_PNP_RUNDETECTION,
2477 if (!NT_STATUS_IS_OK(status)) {
2481 if (DEBUGLEVEL >= 10) {
2482 NDR_PRINT_OUT_DEBUG(PNP_RunDetection, &r);
2485 if (NT_STATUS_IS_ERR(status)) {
2489 /* Return variables */
2493 *werror = r.out.result;
2496 return werror_to_ntstatus(r.out.result);
2499 NTSTATUS rpccli_PNP_RegisterNotification(struct rpc_pipe_client *cli,
2500 TALLOC_CTX *mem_ctx,
2503 struct PNP_RegisterNotification r;
2508 if (DEBUGLEVEL >= 10) {
2509 NDR_PRINT_IN_DEBUG(PNP_RegisterNotification, &r);
2512 status = cli_do_rpc_ndr(cli,
2515 NDR_PNP_REGISTERNOTIFICATION,
2518 if (!NT_STATUS_IS_OK(status)) {
2522 if (DEBUGLEVEL >= 10) {
2523 NDR_PRINT_OUT_DEBUG(PNP_RegisterNotification, &r);
2526 if (NT_STATUS_IS_ERR(status)) {
2530 /* Return variables */
2534 *werror = r.out.result;
2537 return werror_to_ntstatus(r.out.result);
2540 NTSTATUS rpccli_PNP_UnregisterNotification(struct rpc_pipe_client *cli,
2541 TALLOC_CTX *mem_ctx,
2544 struct PNP_UnregisterNotification r;
2549 if (DEBUGLEVEL >= 10) {
2550 NDR_PRINT_IN_DEBUG(PNP_UnregisterNotification, &r);
2553 status = cli_do_rpc_ndr(cli,
2556 NDR_PNP_UNREGISTERNOTIFICATION,
2559 if (!NT_STATUS_IS_OK(status)) {
2563 if (DEBUGLEVEL >= 10) {
2564 NDR_PRINT_OUT_DEBUG(PNP_UnregisterNotification, &r);
2567 if (NT_STATUS_IS_ERR(status)) {
2571 /* Return variables */
2575 *werror = r.out.result;
2578 return werror_to_ntstatus(r.out.result);
2581 NTSTATUS rpccli_PNP_GetCustomDevProp(struct rpc_pipe_client *cli,
2582 TALLOC_CTX *mem_ctx,
2585 struct PNP_GetCustomDevProp r;
2590 if (DEBUGLEVEL >= 10) {
2591 NDR_PRINT_IN_DEBUG(PNP_GetCustomDevProp, &r);
2594 status = cli_do_rpc_ndr(cli,
2597 NDR_PNP_GETCUSTOMDEVPROP,
2600 if (!NT_STATUS_IS_OK(status)) {
2604 if (DEBUGLEVEL >= 10) {
2605 NDR_PRINT_OUT_DEBUG(PNP_GetCustomDevProp, &r);
2608 if (NT_STATUS_IS_ERR(status)) {
2612 /* Return variables */
2616 *werror = r.out.result;
2619 return werror_to_ntstatus(r.out.result);
2622 NTSTATUS rpccli_PNP_GetVersionInternal(struct rpc_pipe_client *cli,
2623 TALLOC_CTX *mem_ctx,
2626 struct PNP_GetVersionInternal r;
2631 if (DEBUGLEVEL >= 10) {
2632 NDR_PRINT_IN_DEBUG(PNP_GetVersionInternal, &r);
2635 status = cli_do_rpc_ndr(cli,
2638 NDR_PNP_GETVERSIONINTERNAL,
2641 if (!NT_STATUS_IS_OK(status)) {
2645 if (DEBUGLEVEL >= 10) {
2646 NDR_PRINT_OUT_DEBUG(PNP_GetVersionInternal, &r);
2649 if (NT_STATUS_IS_ERR(status)) {
2653 /* Return variables */
2657 *werror = r.out.result;
2660 return werror_to_ntstatus(r.out.result);
2663 NTSTATUS rpccli_PNP_GetBlockedDriverInfo(struct rpc_pipe_client *cli,
2664 TALLOC_CTX *mem_ctx,
2667 struct PNP_GetBlockedDriverInfo r;
2672 if (DEBUGLEVEL >= 10) {
2673 NDR_PRINT_IN_DEBUG(PNP_GetBlockedDriverInfo, &r);
2676 status = cli_do_rpc_ndr(cli,
2679 NDR_PNP_GETBLOCKEDDRIVERINFO,
2682 if (!NT_STATUS_IS_OK(status)) {
2686 if (DEBUGLEVEL >= 10) {
2687 NDR_PRINT_OUT_DEBUG(PNP_GetBlockedDriverInfo, &r);
2690 if (NT_STATUS_IS_ERR(status)) {
2694 /* Return variables */
2698 *werror = r.out.result;
2701 return werror_to_ntstatus(r.out.result);
2704 NTSTATUS rpccli_PNP_GetServerSideDeviceInstallFlags(struct rpc_pipe_client *cli,
2705 TALLOC_CTX *mem_ctx,
2708 struct PNP_GetServerSideDeviceInstallFlags r;
2713 if (DEBUGLEVEL >= 10) {
2714 NDR_PRINT_IN_DEBUG(PNP_GetServerSideDeviceInstallFlags, &r);
2717 status = cli_do_rpc_ndr(cli,
2720 NDR_PNP_GETSERVERSIDEDEVICEINSTALLFLAGS,
2723 if (!NT_STATUS_IS_OK(status)) {
2727 if (DEBUGLEVEL >= 10) {
2728 NDR_PRINT_OUT_DEBUG(PNP_GetServerSideDeviceInstallFlags, &r);
2731 if (NT_STATUS_IS_ERR(status)) {
2735 /* Return variables */
2739 *werror = r.out.result;
2742 return werror_to_ntstatus(r.out.result);