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,
429 struct PNP_GetDeviceList r;
434 if (DEBUGLEVEL >= 10) {
435 NDR_PRINT_IN_DEBUG(PNP_GetDeviceList, &r);
438 status = cli_do_rpc_ndr(cli,
441 NDR_PNP_GETDEVICELIST,
444 if (!NT_STATUS_IS_OK(status)) {
448 if (DEBUGLEVEL >= 10) {
449 NDR_PRINT_OUT_DEBUG(PNP_GetDeviceList, &r);
452 if (NT_STATUS_IS_ERR(status)) {
456 /* Return variables */
460 *werror = r.out.result;
463 return werror_to_ntstatus(r.out.result);
466 NTSTATUS rpccli_PNP_GetDeviceListSize(struct rpc_pipe_client *cli,
468 const char *devicename /* [in] [unique,charset(UTF16)] */,
469 uint32_t *size /* [out] [ref] */,
470 uint32_t flags /* [in] */,
473 struct PNP_GetDeviceListSize r;
477 r.in.devicename = devicename;
480 if (DEBUGLEVEL >= 10) {
481 NDR_PRINT_IN_DEBUG(PNP_GetDeviceListSize, &r);
484 status = cli_do_rpc_ndr(cli,
487 NDR_PNP_GETDEVICELISTSIZE,
490 if (!NT_STATUS_IS_OK(status)) {
494 if (DEBUGLEVEL >= 10) {
495 NDR_PRINT_OUT_DEBUG(PNP_GetDeviceListSize, &r);
498 if (NT_STATUS_IS_ERR(status)) {
502 /* Return variables */
507 *werror = r.out.result;
510 return werror_to_ntstatus(r.out.result);
513 NTSTATUS rpccli_PNP_GetDepth(struct rpc_pipe_client *cli,
517 struct PNP_GetDepth r;
522 if (DEBUGLEVEL >= 10) {
523 NDR_PRINT_IN_DEBUG(PNP_GetDepth, &r);
526 status = cli_do_rpc_ndr(cli,
532 if (!NT_STATUS_IS_OK(status)) {
536 if (DEBUGLEVEL >= 10) {
537 NDR_PRINT_OUT_DEBUG(PNP_GetDepth, &r);
540 if (NT_STATUS_IS_ERR(status)) {
544 /* Return variables */
548 *werror = r.out.result;
551 return werror_to_ntstatus(r.out.result);
554 NTSTATUS rpccli_PNP_GetDeviceRegProp(struct rpc_pipe_client *cli,
556 const char *devicepath /* [in] [ref,charset(UTF16)] */,
557 uint32_t property /* [in] */,
558 uint32_t *unknown1 /* [in,out] [ref] */,
559 uint8_t *buffer /* [out] [ref,length_is(*buffer_size),size_is(*buffer_size)] */,
560 uint32_t *buffer_size /* [in,out] [ref] */,
561 uint32_t *needed /* [in,out] [ref] */,
562 uint32_t unknown3 /* [in] */,
565 struct PNP_GetDeviceRegProp r;
569 r.in.devicepath = devicepath;
570 r.in.property = property;
571 r.in.unknown1 = unknown1;
572 r.in.buffer_size = buffer_size;
573 r.in.needed = needed;
574 r.in.unknown3 = unknown3;
576 if (DEBUGLEVEL >= 10) {
577 NDR_PRINT_IN_DEBUG(PNP_GetDeviceRegProp, &r);
580 status = cli_do_rpc_ndr(cli,
583 NDR_PNP_GETDEVICEREGPROP,
586 if (!NT_STATUS_IS_OK(status)) {
590 if (DEBUGLEVEL >= 10) {
591 NDR_PRINT_OUT_DEBUG(PNP_GetDeviceRegProp, &r);
594 if (NT_STATUS_IS_ERR(status)) {
598 /* Return variables */
599 *unknown1 = *r.out.unknown1;
600 memcpy(buffer, r.out.buffer, *r.in.buffer_size * sizeof(*buffer));
601 *buffer_size = *r.out.buffer_size;
602 *needed = *r.out.needed;
606 *werror = r.out.result;
609 return werror_to_ntstatus(r.out.result);
612 NTSTATUS rpccli_PNP_SetDeviceRegProp(struct rpc_pipe_client *cli,
616 struct PNP_SetDeviceRegProp r;
621 if (DEBUGLEVEL >= 10) {
622 NDR_PRINT_IN_DEBUG(PNP_SetDeviceRegProp, &r);
625 status = cli_do_rpc_ndr(cli,
628 NDR_PNP_SETDEVICEREGPROP,
631 if (!NT_STATUS_IS_OK(status)) {
635 if (DEBUGLEVEL >= 10) {
636 NDR_PRINT_OUT_DEBUG(PNP_SetDeviceRegProp, &r);
639 if (NT_STATUS_IS_ERR(status)) {
643 /* Return variables */
647 *werror = r.out.result;
650 return werror_to_ntstatus(r.out.result);
653 NTSTATUS rpccli_PNP_GetClassInstance(struct rpc_pipe_client *cli,
657 struct PNP_GetClassInstance r;
662 if (DEBUGLEVEL >= 10) {
663 NDR_PRINT_IN_DEBUG(PNP_GetClassInstance, &r);
666 status = cli_do_rpc_ndr(cli,
669 NDR_PNP_GETCLASSINSTANCE,
672 if (!NT_STATUS_IS_OK(status)) {
676 if (DEBUGLEVEL >= 10) {
677 NDR_PRINT_OUT_DEBUG(PNP_GetClassInstance, &r);
680 if (NT_STATUS_IS_ERR(status)) {
684 /* Return variables */
688 *werror = r.out.result;
691 return werror_to_ntstatus(r.out.result);
694 NTSTATUS rpccli_PNP_CreateKey(struct rpc_pipe_client *cli,
698 struct PNP_CreateKey r;
703 if (DEBUGLEVEL >= 10) {
704 NDR_PRINT_IN_DEBUG(PNP_CreateKey, &r);
707 status = cli_do_rpc_ndr(cli,
713 if (!NT_STATUS_IS_OK(status)) {
717 if (DEBUGLEVEL >= 10) {
718 NDR_PRINT_OUT_DEBUG(PNP_CreateKey, &r);
721 if (NT_STATUS_IS_ERR(status)) {
725 /* Return variables */
729 *werror = r.out.result;
732 return werror_to_ntstatus(r.out.result);
735 NTSTATUS rpccli_PNP_DeleteRegistryKey(struct rpc_pipe_client *cli,
739 struct PNP_DeleteRegistryKey r;
744 if (DEBUGLEVEL >= 10) {
745 NDR_PRINT_IN_DEBUG(PNP_DeleteRegistryKey, &r);
748 status = cli_do_rpc_ndr(cli,
751 NDR_PNP_DELETEREGISTRYKEY,
754 if (!NT_STATUS_IS_OK(status)) {
758 if (DEBUGLEVEL >= 10) {
759 NDR_PRINT_OUT_DEBUG(PNP_DeleteRegistryKey, &r);
762 if (NT_STATUS_IS_ERR(status)) {
766 /* Return variables */
770 *werror = r.out.result;
773 return werror_to_ntstatus(r.out.result);
776 NTSTATUS rpccli_PNP_GetClassCount(struct rpc_pipe_client *cli,
780 struct PNP_GetClassCount r;
785 if (DEBUGLEVEL >= 10) {
786 NDR_PRINT_IN_DEBUG(PNP_GetClassCount, &r);
789 status = cli_do_rpc_ndr(cli,
792 NDR_PNP_GETCLASSCOUNT,
795 if (!NT_STATUS_IS_OK(status)) {
799 if (DEBUGLEVEL >= 10) {
800 NDR_PRINT_OUT_DEBUG(PNP_GetClassCount, &r);
803 if (NT_STATUS_IS_ERR(status)) {
807 /* Return variables */
811 *werror = r.out.result;
814 return werror_to_ntstatus(r.out.result);
817 NTSTATUS rpccli_PNP_GetClassName(struct rpc_pipe_client *cli,
821 struct PNP_GetClassName r;
826 if (DEBUGLEVEL >= 10) {
827 NDR_PRINT_IN_DEBUG(PNP_GetClassName, &r);
830 status = cli_do_rpc_ndr(cli,
833 NDR_PNP_GETCLASSNAME,
836 if (!NT_STATUS_IS_OK(status)) {
840 if (DEBUGLEVEL >= 10) {
841 NDR_PRINT_OUT_DEBUG(PNP_GetClassName, &r);
844 if (NT_STATUS_IS_ERR(status)) {
848 /* Return variables */
852 *werror = r.out.result;
855 return werror_to_ntstatus(r.out.result);
858 NTSTATUS rpccli_PNP_DeleteClassKey(struct rpc_pipe_client *cli,
862 struct PNP_DeleteClassKey r;
867 if (DEBUGLEVEL >= 10) {
868 NDR_PRINT_IN_DEBUG(PNP_DeleteClassKey, &r);
871 status = cli_do_rpc_ndr(cli,
874 NDR_PNP_DELETECLASSKEY,
877 if (!NT_STATUS_IS_OK(status)) {
881 if (DEBUGLEVEL >= 10) {
882 NDR_PRINT_OUT_DEBUG(PNP_DeleteClassKey, &r);
885 if (NT_STATUS_IS_ERR(status)) {
889 /* Return variables */
893 *werror = r.out.result;
896 return werror_to_ntstatus(r.out.result);
899 NTSTATUS rpccli_PNP_GetInterfaceDeviceAlias(struct rpc_pipe_client *cli,
903 struct PNP_GetInterfaceDeviceAlias r;
908 if (DEBUGLEVEL >= 10) {
909 NDR_PRINT_IN_DEBUG(PNP_GetInterfaceDeviceAlias, &r);
912 status = cli_do_rpc_ndr(cli,
915 NDR_PNP_GETINTERFACEDEVICEALIAS,
918 if (!NT_STATUS_IS_OK(status)) {
922 if (DEBUGLEVEL >= 10) {
923 NDR_PRINT_OUT_DEBUG(PNP_GetInterfaceDeviceAlias, &r);
926 if (NT_STATUS_IS_ERR(status)) {
930 /* Return variables */
934 *werror = r.out.result;
937 return werror_to_ntstatus(r.out.result);
940 NTSTATUS rpccli_PNP_GetInterfaceDeviceList(struct rpc_pipe_client *cli,
944 struct PNP_GetInterfaceDeviceList r;
949 if (DEBUGLEVEL >= 10) {
950 NDR_PRINT_IN_DEBUG(PNP_GetInterfaceDeviceList, &r);
953 status = cli_do_rpc_ndr(cli,
956 NDR_PNP_GETINTERFACEDEVICELIST,
959 if (!NT_STATUS_IS_OK(status)) {
963 if (DEBUGLEVEL >= 10) {
964 NDR_PRINT_OUT_DEBUG(PNP_GetInterfaceDeviceList, &r);
967 if (NT_STATUS_IS_ERR(status)) {
971 /* Return variables */
975 *werror = r.out.result;
978 return werror_to_ntstatus(r.out.result);
981 NTSTATUS rpccli_PNP_GetInterfaceDeviceListSize(struct rpc_pipe_client *cli,
985 struct PNP_GetInterfaceDeviceListSize r;
990 if (DEBUGLEVEL >= 10) {
991 NDR_PRINT_IN_DEBUG(PNP_GetInterfaceDeviceListSize, &r);
994 status = cli_do_rpc_ndr(cli,
997 NDR_PNP_GETINTERFACEDEVICELISTSIZE,
1000 if (!NT_STATUS_IS_OK(status)) {
1004 if (DEBUGLEVEL >= 10) {
1005 NDR_PRINT_OUT_DEBUG(PNP_GetInterfaceDeviceListSize, &r);
1008 if (NT_STATUS_IS_ERR(status)) {
1012 /* Return variables */
1016 *werror = r.out.result;
1019 return werror_to_ntstatus(r.out.result);
1022 NTSTATUS rpccli_PNP_RegisterDeviceClassAssociation(struct rpc_pipe_client *cli,
1023 TALLOC_CTX *mem_ctx,
1026 struct PNP_RegisterDeviceClassAssociation r;
1031 if (DEBUGLEVEL >= 10) {
1032 NDR_PRINT_IN_DEBUG(PNP_RegisterDeviceClassAssociation, &r);
1035 status = cli_do_rpc_ndr(cli,
1038 NDR_PNP_REGISTERDEVICECLASSASSOCIATION,
1041 if (!NT_STATUS_IS_OK(status)) {
1045 if (DEBUGLEVEL >= 10) {
1046 NDR_PRINT_OUT_DEBUG(PNP_RegisterDeviceClassAssociation, &r);
1049 if (NT_STATUS_IS_ERR(status)) {
1053 /* Return variables */
1057 *werror = r.out.result;
1060 return werror_to_ntstatus(r.out.result);
1063 NTSTATUS rpccli_PNP_UnregisterDeviceClassAssociation(struct rpc_pipe_client *cli,
1064 TALLOC_CTX *mem_ctx,
1067 struct PNP_UnregisterDeviceClassAssociation r;
1072 if (DEBUGLEVEL >= 10) {
1073 NDR_PRINT_IN_DEBUG(PNP_UnregisterDeviceClassAssociation, &r);
1076 status = cli_do_rpc_ndr(cli,
1079 NDR_PNP_UNREGISTERDEVICECLASSASSOCIATION,
1082 if (!NT_STATUS_IS_OK(status)) {
1086 if (DEBUGLEVEL >= 10) {
1087 NDR_PRINT_OUT_DEBUG(PNP_UnregisterDeviceClassAssociation, &r);
1090 if (NT_STATUS_IS_ERR(status)) {
1094 /* Return variables */
1098 *werror = r.out.result;
1101 return werror_to_ntstatus(r.out.result);
1104 NTSTATUS rpccli_PNP_GetClassRegProp(struct rpc_pipe_client *cli,
1105 TALLOC_CTX *mem_ctx,
1108 struct PNP_GetClassRegProp r;
1113 if (DEBUGLEVEL >= 10) {
1114 NDR_PRINT_IN_DEBUG(PNP_GetClassRegProp, &r);
1117 status = cli_do_rpc_ndr(cli,
1120 NDR_PNP_GETCLASSREGPROP,
1123 if (!NT_STATUS_IS_OK(status)) {
1127 if (DEBUGLEVEL >= 10) {
1128 NDR_PRINT_OUT_DEBUG(PNP_GetClassRegProp, &r);
1131 if (NT_STATUS_IS_ERR(status)) {
1135 /* Return variables */
1139 *werror = r.out.result;
1142 return werror_to_ntstatus(r.out.result);
1145 NTSTATUS rpccli_PNP_SetClassRegProp(struct rpc_pipe_client *cli,
1146 TALLOC_CTX *mem_ctx,
1149 struct PNP_SetClassRegProp r;
1154 if (DEBUGLEVEL >= 10) {
1155 NDR_PRINT_IN_DEBUG(PNP_SetClassRegProp, &r);
1158 status = cli_do_rpc_ndr(cli,
1161 NDR_PNP_SETCLASSREGPROP,
1164 if (!NT_STATUS_IS_OK(status)) {
1168 if (DEBUGLEVEL >= 10) {
1169 NDR_PRINT_OUT_DEBUG(PNP_SetClassRegProp, &r);
1172 if (NT_STATUS_IS_ERR(status)) {
1176 /* Return variables */
1180 *werror = r.out.result;
1183 return werror_to_ntstatus(r.out.result);
1186 NTSTATUS rpccli_PNP_CreateDevInst(struct rpc_pipe_client *cli,
1187 TALLOC_CTX *mem_ctx,
1190 struct PNP_CreateDevInst r;
1195 if (DEBUGLEVEL >= 10) {
1196 NDR_PRINT_IN_DEBUG(PNP_CreateDevInst, &r);
1199 status = cli_do_rpc_ndr(cli,
1202 NDR_PNP_CREATEDEVINST,
1205 if (!NT_STATUS_IS_OK(status)) {
1209 if (DEBUGLEVEL >= 10) {
1210 NDR_PRINT_OUT_DEBUG(PNP_CreateDevInst, &r);
1213 if (NT_STATUS_IS_ERR(status)) {
1217 /* Return variables */
1221 *werror = r.out.result;
1224 return werror_to_ntstatus(r.out.result);
1227 NTSTATUS rpccli_PNP_DeviceInstanceAction(struct rpc_pipe_client *cli,
1228 TALLOC_CTX *mem_ctx,
1231 struct PNP_DeviceInstanceAction r;
1236 if (DEBUGLEVEL >= 10) {
1237 NDR_PRINT_IN_DEBUG(PNP_DeviceInstanceAction, &r);
1240 status = cli_do_rpc_ndr(cli,
1243 NDR_PNP_DEVICEINSTANCEACTION,
1246 if (!NT_STATUS_IS_OK(status)) {
1250 if (DEBUGLEVEL >= 10) {
1251 NDR_PRINT_OUT_DEBUG(PNP_DeviceInstanceAction, &r);
1254 if (NT_STATUS_IS_ERR(status)) {
1258 /* Return variables */
1262 *werror = r.out.result;
1265 return werror_to_ntstatus(r.out.result);
1268 NTSTATUS rpccli_PNP_GetDeviceStatus(struct rpc_pipe_client *cli,
1269 TALLOC_CTX *mem_ctx,
1272 struct PNP_GetDeviceStatus r;
1277 if (DEBUGLEVEL >= 10) {
1278 NDR_PRINT_IN_DEBUG(PNP_GetDeviceStatus, &r);
1281 status = cli_do_rpc_ndr(cli,
1284 NDR_PNP_GETDEVICESTATUS,
1287 if (!NT_STATUS_IS_OK(status)) {
1291 if (DEBUGLEVEL >= 10) {
1292 NDR_PRINT_OUT_DEBUG(PNP_GetDeviceStatus, &r);
1295 if (NT_STATUS_IS_ERR(status)) {
1299 /* Return variables */
1303 *werror = r.out.result;
1306 return werror_to_ntstatus(r.out.result);
1309 NTSTATUS rpccli_PNP_SetDeviceProblem(struct rpc_pipe_client *cli,
1310 TALLOC_CTX *mem_ctx,
1313 struct PNP_SetDeviceProblem r;
1318 if (DEBUGLEVEL >= 10) {
1319 NDR_PRINT_IN_DEBUG(PNP_SetDeviceProblem, &r);
1322 status = cli_do_rpc_ndr(cli,
1325 NDR_PNP_SETDEVICEPROBLEM,
1328 if (!NT_STATUS_IS_OK(status)) {
1332 if (DEBUGLEVEL >= 10) {
1333 NDR_PRINT_OUT_DEBUG(PNP_SetDeviceProblem, &r);
1336 if (NT_STATUS_IS_ERR(status)) {
1340 /* Return variables */
1344 *werror = r.out.result;
1347 return werror_to_ntstatus(r.out.result);
1350 NTSTATUS rpccli_PNP_DisableDevInst(struct rpc_pipe_client *cli,
1351 TALLOC_CTX *mem_ctx,
1354 struct PNP_DisableDevInst r;
1359 if (DEBUGLEVEL >= 10) {
1360 NDR_PRINT_IN_DEBUG(PNP_DisableDevInst, &r);
1363 status = cli_do_rpc_ndr(cli,
1366 NDR_PNP_DISABLEDEVINST,
1369 if (!NT_STATUS_IS_OK(status)) {
1373 if (DEBUGLEVEL >= 10) {
1374 NDR_PRINT_OUT_DEBUG(PNP_DisableDevInst, &r);
1377 if (NT_STATUS_IS_ERR(status)) {
1381 /* Return variables */
1385 *werror = r.out.result;
1388 return werror_to_ntstatus(r.out.result);
1391 NTSTATUS rpccli_PNP_UninstallDevInst(struct rpc_pipe_client *cli,
1392 TALLOC_CTX *mem_ctx,
1395 struct PNP_UninstallDevInst r;
1400 if (DEBUGLEVEL >= 10) {
1401 NDR_PRINT_IN_DEBUG(PNP_UninstallDevInst, &r);
1404 status = cli_do_rpc_ndr(cli,
1407 NDR_PNP_UNINSTALLDEVINST,
1410 if (!NT_STATUS_IS_OK(status)) {
1414 if (DEBUGLEVEL >= 10) {
1415 NDR_PRINT_OUT_DEBUG(PNP_UninstallDevInst, &r);
1418 if (NT_STATUS_IS_ERR(status)) {
1422 /* Return variables */
1426 *werror = r.out.result;
1429 return werror_to_ntstatus(r.out.result);
1432 NTSTATUS rpccli_PNP_AddID(struct rpc_pipe_client *cli,
1433 TALLOC_CTX *mem_ctx,
1441 if (DEBUGLEVEL >= 10) {
1442 NDR_PRINT_IN_DEBUG(PNP_AddID, &r);
1445 status = cli_do_rpc_ndr(cli,
1451 if (!NT_STATUS_IS_OK(status)) {
1455 if (DEBUGLEVEL >= 10) {
1456 NDR_PRINT_OUT_DEBUG(PNP_AddID, &r);
1459 if (NT_STATUS_IS_ERR(status)) {
1463 /* Return variables */
1467 *werror = r.out.result;
1470 return werror_to_ntstatus(r.out.result);
1473 NTSTATUS rpccli_PNP_RegisterDriver(struct rpc_pipe_client *cli,
1474 TALLOC_CTX *mem_ctx,
1477 struct PNP_RegisterDriver r;
1482 if (DEBUGLEVEL >= 10) {
1483 NDR_PRINT_IN_DEBUG(PNP_RegisterDriver, &r);
1486 status = cli_do_rpc_ndr(cli,
1489 NDR_PNP_REGISTERDRIVER,
1492 if (!NT_STATUS_IS_OK(status)) {
1496 if (DEBUGLEVEL >= 10) {
1497 NDR_PRINT_OUT_DEBUG(PNP_RegisterDriver, &r);
1500 if (NT_STATUS_IS_ERR(status)) {
1504 /* Return variables */
1508 *werror = r.out.result;
1511 return werror_to_ntstatus(r.out.result);
1514 NTSTATUS rpccli_PNP_QueryRemove(struct rpc_pipe_client *cli,
1515 TALLOC_CTX *mem_ctx,
1518 struct PNP_QueryRemove r;
1523 if (DEBUGLEVEL >= 10) {
1524 NDR_PRINT_IN_DEBUG(PNP_QueryRemove, &r);
1527 status = cli_do_rpc_ndr(cli,
1530 NDR_PNP_QUERYREMOVE,
1533 if (!NT_STATUS_IS_OK(status)) {
1537 if (DEBUGLEVEL >= 10) {
1538 NDR_PRINT_OUT_DEBUG(PNP_QueryRemove, &r);
1541 if (NT_STATUS_IS_ERR(status)) {
1545 /* Return variables */
1549 *werror = r.out.result;
1552 return werror_to_ntstatus(r.out.result);
1555 NTSTATUS rpccli_PNP_RequestDeviceEject(struct rpc_pipe_client *cli,
1556 TALLOC_CTX *mem_ctx,
1559 struct PNP_RequestDeviceEject r;
1564 if (DEBUGLEVEL >= 10) {
1565 NDR_PRINT_IN_DEBUG(PNP_RequestDeviceEject, &r);
1568 status = cli_do_rpc_ndr(cli,
1571 NDR_PNP_REQUESTDEVICEEJECT,
1574 if (!NT_STATUS_IS_OK(status)) {
1578 if (DEBUGLEVEL >= 10) {
1579 NDR_PRINT_OUT_DEBUG(PNP_RequestDeviceEject, &r);
1582 if (NT_STATUS_IS_ERR(status)) {
1586 /* Return variables */
1590 *werror = r.out.result;
1593 return werror_to_ntstatus(r.out.result);
1596 NTSTATUS rpccli_PNP_IsDockStationPresent(struct rpc_pipe_client *cli,
1597 TALLOC_CTX *mem_ctx,
1600 struct PNP_IsDockStationPresent r;
1605 if (DEBUGLEVEL >= 10) {
1606 NDR_PRINT_IN_DEBUG(PNP_IsDockStationPresent, &r);
1609 status = cli_do_rpc_ndr(cli,
1612 NDR_PNP_ISDOCKSTATIONPRESENT,
1615 if (!NT_STATUS_IS_OK(status)) {
1619 if (DEBUGLEVEL >= 10) {
1620 NDR_PRINT_OUT_DEBUG(PNP_IsDockStationPresent, &r);
1623 if (NT_STATUS_IS_ERR(status)) {
1627 /* Return variables */
1631 *werror = r.out.result;
1634 return werror_to_ntstatus(r.out.result);
1637 NTSTATUS rpccli_PNP_RequestEjectPC(struct rpc_pipe_client *cli,
1638 TALLOC_CTX *mem_ctx,
1641 struct PNP_RequestEjectPC r;
1646 if (DEBUGLEVEL >= 10) {
1647 NDR_PRINT_IN_DEBUG(PNP_RequestEjectPC, &r);
1650 status = cli_do_rpc_ndr(cli,
1653 NDR_PNP_REQUESTEJECTPC,
1656 if (!NT_STATUS_IS_OK(status)) {
1660 if (DEBUGLEVEL >= 10) {
1661 NDR_PRINT_OUT_DEBUG(PNP_RequestEjectPC, &r);
1664 if (NT_STATUS_IS_ERR(status)) {
1668 /* Return variables */
1672 *werror = r.out.result;
1675 return werror_to_ntstatus(r.out.result);
1678 NTSTATUS rpccli_PNP_HwProfFlags(struct rpc_pipe_client *cli,
1679 TALLOC_CTX *mem_ctx,
1680 uint32_t unknown1 /* [in] */,
1681 const char *devicepath /* [in] [ref,charset(UTF16)] */,
1682 uint32_t unknown2 /* [in] */,
1683 uint32_t *unknown3 /* [in,out] [ref] */,
1684 uint16_t *unknown4 /* [in,out] [unique] */,
1685 const char *unknown5 /* [in] [unique,charset(UTF16)] */,
1686 const char **unknown5a /* [out] [unique,charset(UTF16)] */,
1687 uint32_t unknown6 /* [in] */,
1688 uint32_t unknown7 /* [in] */,
1691 struct PNP_HwProfFlags r;
1695 r.in.unknown1 = unknown1;
1696 r.in.devicepath = devicepath;
1697 r.in.unknown2 = unknown2;
1698 r.in.unknown3 = unknown3;
1699 r.in.unknown4 = unknown4;
1700 r.in.unknown5 = unknown5;
1701 r.in.unknown6 = unknown6;
1702 r.in.unknown7 = unknown7;
1704 if (DEBUGLEVEL >= 10) {
1705 NDR_PRINT_IN_DEBUG(PNP_HwProfFlags, &r);
1708 status = cli_do_rpc_ndr(cli,
1711 NDR_PNP_HWPROFFLAGS,
1714 if (!NT_STATUS_IS_OK(status)) {
1718 if (DEBUGLEVEL >= 10) {
1719 NDR_PRINT_OUT_DEBUG(PNP_HwProfFlags, &r);
1722 if (NT_STATUS_IS_ERR(status)) {
1726 /* Return variables */
1727 *unknown3 = *r.out.unknown3;
1728 if (unknown4 && r.out.unknown4) {
1729 *unknown4 = *r.out.unknown4;
1731 if (unknown5a && r.out.unknown5a) {
1732 *unknown5a = *r.out.unknown5a;
1737 *werror = r.out.result;
1740 return werror_to_ntstatus(r.out.result);
1743 NTSTATUS rpccli_PNP_GetHwProfInfo(struct rpc_pipe_client *cli,
1744 TALLOC_CTX *mem_ctx,
1745 uint32_t idx /* [in] */,
1746 struct PNP_HwProfInfo *info /* [in,out] [ref] */,
1747 uint32_t unknown1 /* [in] */,
1748 uint32_t unknown2 /* [in] */,
1751 struct PNP_GetHwProfInfo r;
1757 r.in.unknown1 = unknown1;
1758 r.in.unknown2 = unknown2;
1760 if (DEBUGLEVEL >= 10) {
1761 NDR_PRINT_IN_DEBUG(PNP_GetHwProfInfo, &r);
1764 status = cli_do_rpc_ndr(cli,
1767 NDR_PNP_GETHWPROFINFO,
1770 if (!NT_STATUS_IS_OK(status)) {
1774 if (DEBUGLEVEL >= 10) {
1775 NDR_PRINT_OUT_DEBUG(PNP_GetHwProfInfo, &r);
1778 if (NT_STATUS_IS_ERR(status)) {
1782 /* Return variables */
1783 *info = *r.out.info;
1787 *werror = r.out.result;
1790 return werror_to_ntstatus(r.out.result);
1793 NTSTATUS rpccli_PNP_AddEmptyLogConf(struct rpc_pipe_client *cli,
1794 TALLOC_CTX *mem_ctx,
1797 struct PNP_AddEmptyLogConf r;
1802 if (DEBUGLEVEL >= 10) {
1803 NDR_PRINT_IN_DEBUG(PNP_AddEmptyLogConf, &r);
1806 status = cli_do_rpc_ndr(cli,
1809 NDR_PNP_ADDEMPTYLOGCONF,
1812 if (!NT_STATUS_IS_OK(status)) {
1816 if (DEBUGLEVEL >= 10) {
1817 NDR_PRINT_OUT_DEBUG(PNP_AddEmptyLogConf, &r);
1820 if (NT_STATUS_IS_ERR(status)) {
1824 /* Return variables */
1828 *werror = r.out.result;
1831 return werror_to_ntstatus(r.out.result);
1834 NTSTATUS rpccli_PNP_FreeLogConf(struct rpc_pipe_client *cli,
1835 TALLOC_CTX *mem_ctx,
1838 struct PNP_FreeLogConf r;
1843 if (DEBUGLEVEL >= 10) {
1844 NDR_PRINT_IN_DEBUG(PNP_FreeLogConf, &r);
1847 status = cli_do_rpc_ndr(cli,
1850 NDR_PNP_FREELOGCONF,
1853 if (!NT_STATUS_IS_OK(status)) {
1857 if (DEBUGLEVEL >= 10) {
1858 NDR_PRINT_OUT_DEBUG(PNP_FreeLogConf, &r);
1861 if (NT_STATUS_IS_ERR(status)) {
1865 /* Return variables */
1869 *werror = r.out.result;
1872 return werror_to_ntstatus(r.out.result);
1875 NTSTATUS rpccli_PNP_GetFirstLogConf(struct rpc_pipe_client *cli,
1876 TALLOC_CTX *mem_ctx,
1879 struct PNP_GetFirstLogConf r;
1884 if (DEBUGLEVEL >= 10) {
1885 NDR_PRINT_IN_DEBUG(PNP_GetFirstLogConf, &r);
1888 status = cli_do_rpc_ndr(cli,
1891 NDR_PNP_GETFIRSTLOGCONF,
1894 if (!NT_STATUS_IS_OK(status)) {
1898 if (DEBUGLEVEL >= 10) {
1899 NDR_PRINT_OUT_DEBUG(PNP_GetFirstLogConf, &r);
1902 if (NT_STATUS_IS_ERR(status)) {
1906 /* Return variables */
1910 *werror = r.out.result;
1913 return werror_to_ntstatus(r.out.result);
1916 NTSTATUS rpccli_PNP_GetNextLogConf(struct rpc_pipe_client *cli,
1917 TALLOC_CTX *mem_ctx,
1920 struct PNP_GetNextLogConf r;
1925 if (DEBUGLEVEL >= 10) {
1926 NDR_PRINT_IN_DEBUG(PNP_GetNextLogConf, &r);
1929 status = cli_do_rpc_ndr(cli,
1932 NDR_PNP_GETNEXTLOGCONF,
1935 if (!NT_STATUS_IS_OK(status)) {
1939 if (DEBUGLEVEL >= 10) {
1940 NDR_PRINT_OUT_DEBUG(PNP_GetNextLogConf, &r);
1943 if (NT_STATUS_IS_ERR(status)) {
1947 /* Return variables */
1951 *werror = r.out.result;
1954 return werror_to_ntstatus(r.out.result);
1957 NTSTATUS rpccli_PNP_GetLogConfPriority(struct rpc_pipe_client *cli,
1958 TALLOC_CTX *mem_ctx,
1961 struct PNP_GetLogConfPriority r;
1966 if (DEBUGLEVEL >= 10) {
1967 NDR_PRINT_IN_DEBUG(PNP_GetLogConfPriority, &r);
1970 status = cli_do_rpc_ndr(cli,
1973 NDR_PNP_GETLOGCONFPRIORITY,
1976 if (!NT_STATUS_IS_OK(status)) {
1980 if (DEBUGLEVEL >= 10) {
1981 NDR_PRINT_OUT_DEBUG(PNP_GetLogConfPriority, &r);
1984 if (NT_STATUS_IS_ERR(status)) {
1988 /* Return variables */
1992 *werror = r.out.result;
1995 return werror_to_ntstatus(r.out.result);
1998 NTSTATUS rpccli_PNP_AddResDes(struct rpc_pipe_client *cli,
1999 TALLOC_CTX *mem_ctx,
2002 struct PNP_AddResDes r;
2007 if (DEBUGLEVEL >= 10) {
2008 NDR_PRINT_IN_DEBUG(PNP_AddResDes, &r);
2011 status = cli_do_rpc_ndr(cli,
2017 if (!NT_STATUS_IS_OK(status)) {
2021 if (DEBUGLEVEL >= 10) {
2022 NDR_PRINT_OUT_DEBUG(PNP_AddResDes, &r);
2025 if (NT_STATUS_IS_ERR(status)) {
2029 /* Return variables */
2033 *werror = r.out.result;
2036 return werror_to_ntstatus(r.out.result);
2039 NTSTATUS rpccli_PNP_FreeResDes(struct rpc_pipe_client *cli,
2040 TALLOC_CTX *mem_ctx,
2043 struct PNP_FreeResDes r;
2048 if (DEBUGLEVEL >= 10) {
2049 NDR_PRINT_IN_DEBUG(PNP_FreeResDes, &r);
2052 status = cli_do_rpc_ndr(cli,
2058 if (!NT_STATUS_IS_OK(status)) {
2062 if (DEBUGLEVEL >= 10) {
2063 NDR_PRINT_OUT_DEBUG(PNP_FreeResDes, &r);
2066 if (NT_STATUS_IS_ERR(status)) {
2070 /* Return variables */
2074 *werror = r.out.result;
2077 return werror_to_ntstatus(r.out.result);
2080 NTSTATUS rpccli_PNP_GetNextResDes(struct rpc_pipe_client *cli,
2081 TALLOC_CTX *mem_ctx,
2084 struct PNP_GetNextResDes r;
2089 if (DEBUGLEVEL >= 10) {
2090 NDR_PRINT_IN_DEBUG(PNP_GetNextResDes, &r);
2093 status = cli_do_rpc_ndr(cli,
2096 NDR_PNP_GETNEXTRESDES,
2099 if (!NT_STATUS_IS_OK(status)) {
2103 if (DEBUGLEVEL >= 10) {
2104 NDR_PRINT_OUT_DEBUG(PNP_GetNextResDes, &r);
2107 if (NT_STATUS_IS_ERR(status)) {
2111 /* Return variables */
2115 *werror = r.out.result;
2118 return werror_to_ntstatus(r.out.result);
2121 NTSTATUS rpccli_PNP_GetResDesData(struct rpc_pipe_client *cli,
2122 TALLOC_CTX *mem_ctx,
2125 struct PNP_GetResDesData r;
2130 if (DEBUGLEVEL >= 10) {
2131 NDR_PRINT_IN_DEBUG(PNP_GetResDesData, &r);
2134 status = cli_do_rpc_ndr(cli,
2137 NDR_PNP_GETRESDESDATA,
2140 if (!NT_STATUS_IS_OK(status)) {
2144 if (DEBUGLEVEL >= 10) {
2145 NDR_PRINT_OUT_DEBUG(PNP_GetResDesData, &r);
2148 if (NT_STATUS_IS_ERR(status)) {
2152 /* Return variables */
2156 *werror = r.out.result;
2159 return werror_to_ntstatus(r.out.result);
2162 NTSTATUS rpccli_PNP_GetResDesDataSize(struct rpc_pipe_client *cli,
2163 TALLOC_CTX *mem_ctx,
2166 struct PNP_GetResDesDataSize r;
2171 if (DEBUGLEVEL >= 10) {
2172 NDR_PRINT_IN_DEBUG(PNP_GetResDesDataSize, &r);
2175 status = cli_do_rpc_ndr(cli,
2178 NDR_PNP_GETRESDESDATASIZE,
2181 if (!NT_STATUS_IS_OK(status)) {
2185 if (DEBUGLEVEL >= 10) {
2186 NDR_PRINT_OUT_DEBUG(PNP_GetResDesDataSize, &r);
2189 if (NT_STATUS_IS_ERR(status)) {
2193 /* Return variables */
2197 *werror = r.out.result;
2200 return werror_to_ntstatus(r.out.result);
2203 NTSTATUS rpccli_PNP_ModifyResDes(struct rpc_pipe_client *cli,
2204 TALLOC_CTX *mem_ctx,
2207 struct PNP_ModifyResDes r;
2212 if (DEBUGLEVEL >= 10) {
2213 NDR_PRINT_IN_DEBUG(PNP_ModifyResDes, &r);
2216 status = cli_do_rpc_ndr(cli,
2219 NDR_PNP_MODIFYRESDES,
2222 if (!NT_STATUS_IS_OK(status)) {
2226 if (DEBUGLEVEL >= 10) {
2227 NDR_PRINT_OUT_DEBUG(PNP_ModifyResDes, &r);
2230 if (NT_STATUS_IS_ERR(status)) {
2234 /* Return variables */
2238 *werror = r.out.result;
2241 return werror_to_ntstatus(r.out.result);
2244 NTSTATUS rpccli_PNP_DetectResourceLimit(struct rpc_pipe_client *cli,
2245 TALLOC_CTX *mem_ctx,
2248 struct PNP_DetectResourceLimit r;
2253 if (DEBUGLEVEL >= 10) {
2254 NDR_PRINT_IN_DEBUG(PNP_DetectResourceLimit, &r);
2257 status = cli_do_rpc_ndr(cli,
2260 NDR_PNP_DETECTRESOURCELIMIT,
2263 if (!NT_STATUS_IS_OK(status)) {
2267 if (DEBUGLEVEL >= 10) {
2268 NDR_PRINT_OUT_DEBUG(PNP_DetectResourceLimit, &r);
2271 if (NT_STATUS_IS_ERR(status)) {
2275 /* Return variables */
2279 *werror = r.out.result;
2282 return werror_to_ntstatus(r.out.result);
2285 NTSTATUS rpccli_PNP_QueryResConfList(struct rpc_pipe_client *cli,
2286 TALLOC_CTX *mem_ctx,
2289 struct PNP_QueryResConfList r;
2294 if (DEBUGLEVEL >= 10) {
2295 NDR_PRINT_IN_DEBUG(PNP_QueryResConfList, &r);
2298 status = cli_do_rpc_ndr(cli,
2301 NDR_PNP_QUERYRESCONFLIST,
2304 if (!NT_STATUS_IS_OK(status)) {
2308 if (DEBUGLEVEL >= 10) {
2309 NDR_PRINT_OUT_DEBUG(PNP_QueryResConfList, &r);
2312 if (NT_STATUS_IS_ERR(status)) {
2316 /* Return variables */
2320 *werror = r.out.result;
2323 return werror_to_ntstatus(r.out.result);
2326 NTSTATUS rpccli_PNP_SetHwProf(struct rpc_pipe_client *cli,
2327 TALLOC_CTX *mem_ctx,
2330 struct PNP_SetHwProf r;
2335 if (DEBUGLEVEL >= 10) {
2336 NDR_PRINT_IN_DEBUG(PNP_SetHwProf, &r);
2339 status = cli_do_rpc_ndr(cli,
2345 if (!NT_STATUS_IS_OK(status)) {
2349 if (DEBUGLEVEL >= 10) {
2350 NDR_PRINT_OUT_DEBUG(PNP_SetHwProf, &r);
2353 if (NT_STATUS_IS_ERR(status)) {
2357 /* Return variables */
2361 *werror = r.out.result;
2364 return werror_to_ntstatus(r.out.result);
2367 NTSTATUS rpccli_PNP_QueryArbitratorFreeData(struct rpc_pipe_client *cli,
2368 TALLOC_CTX *mem_ctx,
2371 struct PNP_QueryArbitratorFreeData r;
2376 if (DEBUGLEVEL >= 10) {
2377 NDR_PRINT_IN_DEBUG(PNP_QueryArbitratorFreeData, &r);
2380 status = cli_do_rpc_ndr(cli,
2383 NDR_PNP_QUERYARBITRATORFREEDATA,
2386 if (!NT_STATUS_IS_OK(status)) {
2390 if (DEBUGLEVEL >= 10) {
2391 NDR_PRINT_OUT_DEBUG(PNP_QueryArbitratorFreeData, &r);
2394 if (NT_STATUS_IS_ERR(status)) {
2398 /* Return variables */
2402 *werror = r.out.result;
2405 return werror_to_ntstatus(r.out.result);
2408 NTSTATUS rpccli_PNP_QueryArbitratorFreeSize(struct rpc_pipe_client *cli,
2409 TALLOC_CTX *mem_ctx,
2412 struct PNP_QueryArbitratorFreeSize r;
2417 if (DEBUGLEVEL >= 10) {
2418 NDR_PRINT_IN_DEBUG(PNP_QueryArbitratorFreeSize, &r);
2421 status = cli_do_rpc_ndr(cli,
2424 NDR_PNP_QUERYARBITRATORFREESIZE,
2427 if (!NT_STATUS_IS_OK(status)) {
2431 if (DEBUGLEVEL >= 10) {
2432 NDR_PRINT_OUT_DEBUG(PNP_QueryArbitratorFreeSize, &r);
2435 if (NT_STATUS_IS_ERR(status)) {
2439 /* Return variables */
2443 *werror = r.out.result;
2446 return werror_to_ntstatus(r.out.result);
2449 NTSTATUS rpccli_PNP_RunDetection(struct rpc_pipe_client *cli,
2450 TALLOC_CTX *mem_ctx,
2453 struct PNP_RunDetection r;
2458 if (DEBUGLEVEL >= 10) {
2459 NDR_PRINT_IN_DEBUG(PNP_RunDetection, &r);
2462 status = cli_do_rpc_ndr(cli,
2465 NDR_PNP_RUNDETECTION,
2468 if (!NT_STATUS_IS_OK(status)) {
2472 if (DEBUGLEVEL >= 10) {
2473 NDR_PRINT_OUT_DEBUG(PNP_RunDetection, &r);
2476 if (NT_STATUS_IS_ERR(status)) {
2480 /* Return variables */
2484 *werror = r.out.result;
2487 return werror_to_ntstatus(r.out.result);
2490 NTSTATUS rpccli_PNP_RegisterNotification(struct rpc_pipe_client *cli,
2491 TALLOC_CTX *mem_ctx,
2494 struct PNP_RegisterNotification r;
2499 if (DEBUGLEVEL >= 10) {
2500 NDR_PRINT_IN_DEBUG(PNP_RegisterNotification, &r);
2503 status = cli_do_rpc_ndr(cli,
2506 NDR_PNP_REGISTERNOTIFICATION,
2509 if (!NT_STATUS_IS_OK(status)) {
2513 if (DEBUGLEVEL >= 10) {
2514 NDR_PRINT_OUT_DEBUG(PNP_RegisterNotification, &r);
2517 if (NT_STATUS_IS_ERR(status)) {
2521 /* Return variables */
2525 *werror = r.out.result;
2528 return werror_to_ntstatus(r.out.result);
2531 NTSTATUS rpccli_PNP_UnregisterNotification(struct rpc_pipe_client *cli,
2532 TALLOC_CTX *mem_ctx,
2535 struct PNP_UnregisterNotification r;
2540 if (DEBUGLEVEL >= 10) {
2541 NDR_PRINT_IN_DEBUG(PNP_UnregisterNotification, &r);
2544 status = cli_do_rpc_ndr(cli,
2547 NDR_PNP_UNREGISTERNOTIFICATION,
2550 if (!NT_STATUS_IS_OK(status)) {
2554 if (DEBUGLEVEL >= 10) {
2555 NDR_PRINT_OUT_DEBUG(PNP_UnregisterNotification, &r);
2558 if (NT_STATUS_IS_ERR(status)) {
2562 /* Return variables */
2566 *werror = r.out.result;
2569 return werror_to_ntstatus(r.out.result);
2572 NTSTATUS rpccli_PNP_GetCustomDevProp(struct rpc_pipe_client *cli,
2573 TALLOC_CTX *mem_ctx,
2576 struct PNP_GetCustomDevProp r;
2581 if (DEBUGLEVEL >= 10) {
2582 NDR_PRINT_IN_DEBUG(PNP_GetCustomDevProp, &r);
2585 status = cli_do_rpc_ndr(cli,
2588 NDR_PNP_GETCUSTOMDEVPROP,
2591 if (!NT_STATUS_IS_OK(status)) {
2595 if (DEBUGLEVEL >= 10) {
2596 NDR_PRINT_OUT_DEBUG(PNP_GetCustomDevProp, &r);
2599 if (NT_STATUS_IS_ERR(status)) {
2603 /* Return variables */
2607 *werror = r.out.result;
2610 return werror_to_ntstatus(r.out.result);
2613 NTSTATUS rpccli_PNP_GetVersionInternal(struct rpc_pipe_client *cli,
2614 TALLOC_CTX *mem_ctx,
2617 struct PNP_GetVersionInternal r;
2622 if (DEBUGLEVEL >= 10) {
2623 NDR_PRINT_IN_DEBUG(PNP_GetVersionInternal, &r);
2626 status = cli_do_rpc_ndr(cli,
2629 NDR_PNP_GETVERSIONINTERNAL,
2632 if (!NT_STATUS_IS_OK(status)) {
2636 if (DEBUGLEVEL >= 10) {
2637 NDR_PRINT_OUT_DEBUG(PNP_GetVersionInternal, &r);
2640 if (NT_STATUS_IS_ERR(status)) {
2644 /* Return variables */
2648 *werror = r.out.result;
2651 return werror_to_ntstatus(r.out.result);
2654 NTSTATUS rpccli_PNP_GetBlockedDriverInfo(struct rpc_pipe_client *cli,
2655 TALLOC_CTX *mem_ctx,
2658 struct PNP_GetBlockedDriverInfo r;
2663 if (DEBUGLEVEL >= 10) {
2664 NDR_PRINT_IN_DEBUG(PNP_GetBlockedDriverInfo, &r);
2667 status = cli_do_rpc_ndr(cli,
2670 NDR_PNP_GETBLOCKEDDRIVERINFO,
2673 if (!NT_STATUS_IS_OK(status)) {
2677 if (DEBUGLEVEL >= 10) {
2678 NDR_PRINT_OUT_DEBUG(PNP_GetBlockedDriverInfo, &r);
2681 if (NT_STATUS_IS_ERR(status)) {
2685 /* Return variables */
2689 *werror = r.out.result;
2692 return werror_to_ntstatus(r.out.result);
2695 NTSTATUS rpccli_PNP_GetServerSideDeviceInstallFlags(struct rpc_pipe_client *cli,
2696 TALLOC_CTX *mem_ctx,
2699 struct PNP_GetServerSideDeviceInstallFlags r;
2704 if (DEBUGLEVEL >= 10) {
2705 NDR_PRINT_IN_DEBUG(PNP_GetServerSideDeviceInstallFlags, &r);
2708 status = cli_do_rpc_ndr(cli,
2711 NDR_PNP_GETSERVERSIDEDEVICEINSTALLFLAGS,
2714 if (!NT_STATUS_IS_OK(status)) {
2718 if (DEBUGLEVEL >= 10) {
2719 NDR_PRINT_OUT_DEBUG(PNP_GetServerSideDeviceInstallFlags, &r);
2722 if (NT_STATUS_IS_ERR(status)) {
2726 /* Return variables */
2730 *werror = r.out.result;
2733 return werror_to_ntstatus(r.out.result);