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
,
29 if (!NT_STATUS_IS_OK(status
)) {
33 if (DEBUGLEVEL
>= 10) {
34 NDR_PRINT_OUT_DEBUG(PNP_Disconnect
, &r
);
37 if (NT_STATUS_IS_ERR(status
)) {
41 /* Return variables */
45 *werror
= r
.out
.result
;
48 return werror_to_ntstatus(r
.out
.result
);
51 NTSTATUS
rpccli_PNP_Connect(struct rpc_pipe_client
*cli
,
60 if (DEBUGLEVEL
>= 10) {
61 NDR_PRINT_IN_DEBUG(PNP_Connect
, &r
);
64 status
= cli_do_rpc_ndr(cli
,
71 if (!NT_STATUS_IS_OK(status
)) {
75 if (DEBUGLEVEL
>= 10) {
76 NDR_PRINT_OUT_DEBUG(PNP_Connect
, &r
);
79 if (NT_STATUS_IS_ERR(status
)) {
83 /* Return variables */
87 *werror
= r
.out
.result
;
90 return werror_to_ntstatus(r
.out
.result
);
93 NTSTATUS
rpccli_PNP_GetVersion(struct rpc_pipe_client
*cli
,
95 uint16_t *version
/* [out] [ref] */,
98 struct PNP_GetVersion r
;
103 if (DEBUGLEVEL
>= 10) {
104 NDR_PRINT_IN_DEBUG(PNP_GetVersion
, &r
);
107 status
= cli_do_rpc_ndr(cli
,
114 if (!NT_STATUS_IS_OK(status
)) {
118 if (DEBUGLEVEL
>= 10) {
119 NDR_PRINT_OUT_DEBUG(PNP_GetVersion
, &r
);
122 if (NT_STATUS_IS_ERR(status
)) {
126 /* Return variables */
127 *version
= *r
.out
.version
;
131 *werror
= r
.out
.result
;
134 return werror_to_ntstatus(r
.out
.result
);
137 NTSTATUS
rpccli_PNP_GetGlobalState(struct rpc_pipe_client
*cli
,
141 struct PNP_GetGlobalState r
;
146 if (DEBUGLEVEL
>= 10) {
147 NDR_PRINT_IN_DEBUG(PNP_GetGlobalState
, &r
);
150 status
= cli_do_rpc_ndr(cli
,
154 NDR_PNP_GETGLOBALSTATE
,
157 if (!NT_STATUS_IS_OK(status
)) {
161 if (DEBUGLEVEL
>= 10) {
162 NDR_PRINT_OUT_DEBUG(PNP_GetGlobalState
, &r
);
165 if (NT_STATUS_IS_ERR(status
)) {
169 /* Return variables */
173 *werror
= r
.out
.result
;
176 return werror_to_ntstatus(r
.out
.result
);
179 NTSTATUS
rpccli_PNP_InitDetection(struct rpc_pipe_client
*cli
,
183 struct PNP_InitDetection r
;
188 if (DEBUGLEVEL
>= 10) {
189 NDR_PRINT_IN_DEBUG(PNP_InitDetection
, &r
);
192 status
= cli_do_rpc_ndr(cli
,
196 NDR_PNP_INITDETECTION
,
199 if (!NT_STATUS_IS_OK(status
)) {
203 if (DEBUGLEVEL
>= 10) {
204 NDR_PRINT_OUT_DEBUG(PNP_InitDetection
, &r
);
207 if (NT_STATUS_IS_ERR(status
)) {
211 /* Return variables */
215 *werror
= r
.out
.result
;
218 return werror_to_ntstatus(r
.out
.result
);
221 NTSTATUS
rpccli_PNP_ReportLogOn(struct rpc_pipe_client
*cli
,
225 struct PNP_ReportLogOn r
;
230 if (DEBUGLEVEL
>= 10) {
231 NDR_PRINT_IN_DEBUG(PNP_ReportLogOn
, &r
);
234 status
= cli_do_rpc_ndr(cli
,
241 if (!NT_STATUS_IS_OK(status
)) {
245 if (DEBUGLEVEL
>= 10) {
246 NDR_PRINT_OUT_DEBUG(PNP_ReportLogOn
, &r
);
249 if (NT_STATUS_IS_ERR(status
)) {
253 /* Return variables */
257 *werror
= r
.out
.result
;
260 return werror_to_ntstatus(r
.out
.result
);
263 NTSTATUS
rpccli_PNP_ValidateDeviceInstance(struct rpc_pipe_client
*cli
,
265 const char *devicepath
/* [in] [ref,charset(UTF16)] */,
266 uint32_t flags
/* [in] */,
269 struct PNP_ValidateDeviceInstance r
;
273 r
.in
.devicepath
= devicepath
;
276 if (DEBUGLEVEL
>= 10) {
277 NDR_PRINT_IN_DEBUG(PNP_ValidateDeviceInstance
, &r
);
280 status
= cli_do_rpc_ndr(cli
,
284 NDR_PNP_VALIDATEDEVICEINSTANCE
,
287 if (!NT_STATUS_IS_OK(status
)) {
291 if (DEBUGLEVEL
>= 10) {
292 NDR_PRINT_OUT_DEBUG(PNP_ValidateDeviceInstance
, &r
);
295 if (NT_STATUS_IS_ERR(status
)) {
299 /* Return variables */
303 *werror
= r
.out
.result
;
306 return werror_to_ntstatus(r
.out
.result
);
309 NTSTATUS
rpccli_PNP_GetRootDeviceInstance(struct rpc_pipe_client
*cli
,
313 struct PNP_GetRootDeviceInstance r
;
318 if (DEBUGLEVEL
>= 10) {
319 NDR_PRINT_IN_DEBUG(PNP_GetRootDeviceInstance
, &r
);
322 status
= cli_do_rpc_ndr(cli
,
326 NDR_PNP_GETROOTDEVICEINSTANCE
,
329 if (!NT_STATUS_IS_OK(status
)) {
333 if (DEBUGLEVEL
>= 10) {
334 NDR_PRINT_OUT_DEBUG(PNP_GetRootDeviceInstance
, &r
);
337 if (NT_STATUS_IS_ERR(status
)) {
341 /* Return variables */
345 *werror
= r
.out
.result
;
348 return werror_to_ntstatus(r
.out
.result
);
351 NTSTATUS
rpccli_PNP_GetRelatedDeviceInstance(struct rpc_pipe_client
*cli
,
355 struct PNP_GetRelatedDeviceInstance r
;
360 if (DEBUGLEVEL
>= 10) {
361 NDR_PRINT_IN_DEBUG(PNP_GetRelatedDeviceInstance
, &r
);
364 status
= cli_do_rpc_ndr(cli
,
368 NDR_PNP_GETRELATEDDEVICEINSTANCE
,
371 if (!NT_STATUS_IS_OK(status
)) {
375 if (DEBUGLEVEL
>= 10) {
376 NDR_PRINT_OUT_DEBUG(PNP_GetRelatedDeviceInstance
, &r
);
379 if (NT_STATUS_IS_ERR(status
)) {
383 /* Return variables */
387 *werror
= r
.out
.result
;
390 return werror_to_ntstatus(r
.out
.result
);
393 NTSTATUS
rpccli_PNP_EnumerateSubKeys(struct rpc_pipe_client
*cli
,
397 struct PNP_EnumerateSubKeys r
;
402 if (DEBUGLEVEL
>= 10) {
403 NDR_PRINT_IN_DEBUG(PNP_EnumerateSubKeys
, &r
);
406 status
= cli_do_rpc_ndr(cli
,
410 NDR_PNP_ENUMERATESUBKEYS
,
413 if (!NT_STATUS_IS_OK(status
)) {
417 if (DEBUGLEVEL
>= 10) {
418 NDR_PRINT_OUT_DEBUG(PNP_EnumerateSubKeys
, &r
);
421 if (NT_STATUS_IS_ERR(status
)) {
425 /* Return variables */
429 *werror
= r
.out
.result
;
432 return werror_to_ntstatus(r
.out
.result
);
435 NTSTATUS
rpccli_PNP_GetDeviceList(struct rpc_pipe_client
*cli
,
439 struct PNP_GetDeviceList r
;
444 if (DEBUGLEVEL
>= 10) {
445 NDR_PRINT_IN_DEBUG(PNP_GetDeviceList
, &r
);
448 status
= cli_do_rpc_ndr(cli
,
452 NDR_PNP_GETDEVICELIST
,
455 if (!NT_STATUS_IS_OK(status
)) {
459 if (DEBUGLEVEL
>= 10) {
460 NDR_PRINT_OUT_DEBUG(PNP_GetDeviceList
, &r
);
463 if (NT_STATUS_IS_ERR(status
)) {
467 /* Return variables */
471 *werror
= r
.out
.result
;
474 return werror_to_ntstatus(r
.out
.result
);
477 NTSTATUS
rpccli_PNP_GetDeviceListSize(struct rpc_pipe_client
*cli
,
479 const char *devicename
/* [in] [unique,charset(UTF16)] */,
480 uint32_t *size
/* [out] [ref] */,
481 uint32_t flags
/* [in] */,
484 struct PNP_GetDeviceListSize r
;
488 r
.in
.devicename
= devicename
;
491 if (DEBUGLEVEL
>= 10) {
492 NDR_PRINT_IN_DEBUG(PNP_GetDeviceListSize
, &r
);
495 status
= cli_do_rpc_ndr(cli
,
499 NDR_PNP_GETDEVICELISTSIZE
,
502 if (!NT_STATUS_IS_OK(status
)) {
506 if (DEBUGLEVEL
>= 10) {
507 NDR_PRINT_OUT_DEBUG(PNP_GetDeviceListSize
, &r
);
510 if (NT_STATUS_IS_ERR(status
)) {
514 /* Return variables */
519 *werror
= r
.out
.result
;
522 return werror_to_ntstatus(r
.out
.result
);
525 NTSTATUS
rpccli_PNP_GetDepth(struct rpc_pipe_client
*cli
,
529 struct PNP_GetDepth r
;
534 if (DEBUGLEVEL
>= 10) {
535 NDR_PRINT_IN_DEBUG(PNP_GetDepth
, &r
);
538 status
= cli_do_rpc_ndr(cli
,
545 if (!NT_STATUS_IS_OK(status
)) {
549 if (DEBUGLEVEL
>= 10) {
550 NDR_PRINT_OUT_DEBUG(PNP_GetDepth
, &r
);
553 if (NT_STATUS_IS_ERR(status
)) {
557 /* Return variables */
561 *werror
= r
.out
.result
;
564 return werror_to_ntstatus(r
.out
.result
);
567 NTSTATUS
rpccli_PNP_GetDeviceRegProp(struct rpc_pipe_client
*cli
,
571 struct PNP_GetDeviceRegProp r
;
576 if (DEBUGLEVEL
>= 10) {
577 NDR_PRINT_IN_DEBUG(PNP_GetDeviceRegProp
, &r
);
580 status
= cli_do_rpc_ndr(cli
,
584 NDR_PNP_GETDEVICEREGPROP
,
587 if (!NT_STATUS_IS_OK(status
)) {
591 if (DEBUGLEVEL
>= 10) {
592 NDR_PRINT_OUT_DEBUG(PNP_GetDeviceRegProp
, &r
);
595 if (NT_STATUS_IS_ERR(status
)) {
599 /* Return variables */
603 *werror
= r
.out
.result
;
606 return werror_to_ntstatus(r
.out
.result
);
609 NTSTATUS
rpccli_PNP_SetDeviceRegProp(struct rpc_pipe_client
*cli
,
613 struct PNP_SetDeviceRegProp r
;
618 if (DEBUGLEVEL
>= 10) {
619 NDR_PRINT_IN_DEBUG(PNP_SetDeviceRegProp
, &r
);
622 status
= cli_do_rpc_ndr(cli
,
626 NDR_PNP_SETDEVICEREGPROP
,
629 if (!NT_STATUS_IS_OK(status
)) {
633 if (DEBUGLEVEL
>= 10) {
634 NDR_PRINT_OUT_DEBUG(PNP_SetDeviceRegProp
, &r
);
637 if (NT_STATUS_IS_ERR(status
)) {
641 /* Return variables */
645 *werror
= r
.out
.result
;
648 return werror_to_ntstatus(r
.out
.result
);
651 NTSTATUS
rpccli_PNP_GetClassInstance(struct rpc_pipe_client
*cli
,
655 struct PNP_GetClassInstance r
;
660 if (DEBUGLEVEL
>= 10) {
661 NDR_PRINT_IN_DEBUG(PNP_GetClassInstance
, &r
);
664 status
= cli_do_rpc_ndr(cli
,
668 NDR_PNP_GETCLASSINSTANCE
,
671 if (!NT_STATUS_IS_OK(status
)) {
675 if (DEBUGLEVEL
>= 10) {
676 NDR_PRINT_OUT_DEBUG(PNP_GetClassInstance
, &r
);
679 if (NT_STATUS_IS_ERR(status
)) {
683 /* Return variables */
687 *werror
= r
.out
.result
;
690 return werror_to_ntstatus(r
.out
.result
);
693 NTSTATUS
rpccli_PNP_CreateKey(struct rpc_pipe_client
*cli
,
697 struct PNP_CreateKey r
;
702 if (DEBUGLEVEL
>= 10) {
703 NDR_PRINT_IN_DEBUG(PNP_CreateKey
, &r
);
706 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
,
752 NDR_PNP_DELETEREGISTRYKEY
,
755 if (!NT_STATUS_IS_OK(status
)) {
759 if (DEBUGLEVEL
>= 10) {
760 NDR_PRINT_OUT_DEBUG(PNP_DeleteRegistryKey
, &r
);
763 if (NT_STATUS_IS_ERR(status
)) {
767 /* Return variables */
771 *werror
= r
.out
.result
;
774 return werror_to_ntstatus(r
.out
.result
);
777 NTSTATUS
rpccli_PNP_GetClassCount(struct rpc_pipe_client
*cli
,
781 struct PNP_GetClassCount r
;
786 if (DEBUGLEVEL
>= 10) {
787 NDR_PRINT_IN_DEBUG(PNP_GetClassCount
, &r
);
790 status
= cli_do_rpc_ndr(cli
,
794 NDR_PNP_GETCLASSCOUNT
,
797 if (!NT_STATUS_IS_OK(status
)) {
801 if (DEBUGLEVEL
>= 10) {
802 NDR_PRINT_OUT_DEBUG(PNP_GetClassCount
, &r
);
805 if (NT_STATUS_IS_ERR(status
)) {
809 /* Return variables */
813 *werror
= r
.out
.result
;
816 return werror_to_ntstatus(r
.out
.result
);
819 NTSTATUS
rpccli_PNP_GetClassName(struct rpc_pipe_client
*cli
,
823 struct PNP_GetClassName r
;
828 if (DEBUGLEVEL
>= 10) {
829 NDR_PRINT_IN_DEBUG(PNP_GetClassName
, &r
);
832 status
= cli_do_rpc_ndr(cli
,
836 NDR_PNP_GETCLASSNAME
,
839 if (!NT_STATUS_IS_OK(status
)) {
843 if (DEBUGLEVEL
>= 10) {
844 NDR_PRINT_OUT_DEBUG(PNP_GetClassName
, &r
);
847 if (NT_STATUS_IS_ERR(status
)) {
851 /* Return variables */
855 *werror
= r
.out
.result
;
858 return werror_to_ntstatus(r
.out
.result
);
861 NTSTATUS
rpccli_PNP_DeleteClassKey(struct rpc_pipe_client
*cli
,
865 struct PNP_DeleteClassKey r
;
870 if (DEBUGLEVEL
>= 10) {
871 NDR_PRINT_IN_DEBUG(PNP_DeleteClassKey
, &r
);
874 status
= cli_do_rpc_ndr(cli
,
878 NDR_PNP_DELETECLASSKEY
,
881 if (!NT_STATUS_IS_OK(status
)) {
885 if (DEBUGLEVEL
>= 10) {
886 NDR_PRINT_OUT_DEBUG(PNP_DeleteClassKey
, &r
);
889 if (NT_STATUS_IS_ERR(status
)) {
893 /* Return variables */
897 *werror
= r
.out
.result
;
900 return werror_to_ntstatus(r
.out
.result
);
903 NTSTATUS
rpccli_PNP_GetInterfaceDeviceAlias(struct rpc_pipe_client
*cli
,
907 struct PNP_GetInterfaceDeviceAlias r
;
912 if (DEBUGLEVEL
>= 10) {
913 NDR_PRINT_IN_DEBUG(PNP_GetInterfaceDeviceAlias
, &r
);
916 status
= cli_do_rpc_ndr(cli
,
920 NDR_PNP_GETINTERFACEDEVICEALIAS
,
923 if (!NT_STATUS_IS_OK(status
)) {
927 if (DEBUGLEVEL
>= 10) {
928 NDR_PRINT_OUT_DEBUG(PNP_GetInterfaceDeviceAlias
, &r
);
931 if (NT_STATUS_IS_ERR(status
)) {
935 /* Return variables */
939 *werror
= r
.out
.result
;
942 return werror_to_ntstatus(r
.out
.result
);
945 NTSTATUS
rpccli_PNP_GetInterfaceDeviceList(struct rpc_pipe_client
*cli
,
949 struct PNP_GetInterfaceDeviceList r
;
954 if (DEBUGLEVEL
>= 10) {
955 NDR_PRINT_IN_DEBUG(PNP_GetInterfaceDeviceList
, &r
);
958 status
= cli_do_rpc_ndr(cli
,
962 NDR_PNP_GETINTERFACEDEVICELIST
,
965 if (!NT_STATUS_IS_OK(status
)) {
969 if (DEBUGLEVEL
>= 10) {
970 NDR_PRINT_OUT_DEBUG(PNP_GetInterfaceDeviceList
, &r
);
973 if (NT_STATUS_IS_ERR(status
)) {
977 /* Return variables */
981 *werror
= r
.out
.result
;
984 return werror_to_ntstatus(r
.out
.result
);
987 NTSTATUS
rpccli_PNP_GetInterfaceDeviceListSize(struct rpc_pipe_client
*cli
,
991 struct PNP_GetInterfaceDeviceListSize r
;
996 if (DEBUGLEVEL
>= 10) {
997 NDR_PRINT_IN_DEBUG(PNP_GetInterfaceDeviceListSize
, &r
);
1000 status
= cli_do_rpc_ndr(cli
,
1004 NDR_PNP_GETINTERFACEDEVICELISTSIZE
,
1007 if (!NT_STATUS_IS_OK(status
)) {
1011 if (DEBUGLEVEL
>= 10) {
1012 NDR_PRINT_OUT_DEBUG(PNP_GetInterfaceDeviceListSize
, &r
);
1015 if (NT_STATUS_IS_ERR(status
)) {
1019 /* Return variables */
1023 *werror
= r
.out
.result
;
1026 return werror_to_ntstatus(r
.out
.result
);
1029 NTSTATUS
rpccli_PNP_RegisterDeviceClassAssociation(struct rpc_pipe_client
*cli
,
1030 TALLOC_CTX
*mem_ctx
,
1033 struct PNP_RegisterDeviceClassAssociation r
;
1038 if (DEBUGLEVEL
>= 10) {
1039 NDR_PRINT_IN_DEBUG(PNP_RegisterDeviceClassAssociation
, &r
);
1042 status
= cli_do_rpc_ndr(cli
,
1046 NDR_PNP_REGISTERDEVICECLASSASSOCIATION
,
1049 if (!NT_STATUS_IS_OK(status
)) {
1053 if (DEBUGLEVEL
>= 10) {
1054 NDR_PRINT_OUT_DEBUG(PNP_RegisterDeviceClassAssociation
, &r
);
1057 if (NT_STATUS_IS_ERR(status
)) {
1061 /* Return variables */
1065 *werror
= r
.out
.result
;
1068 return werror_to_ntstatus(r
.out
.result
);
1071 NTSTATUS
rpccli_PNP_UnregisterDeviceClassAssociation(struct rpc_pipe_client
*cli
,
1072 TALLOC_CTX
*mem_ctx
,
1075 struct PNP_UnregisterDeviceClassAssociation r
;
1080 if (DEBUGLEVEL
>= 10) {
1081 NDR_PRINT_IN_DEBUG(PNP_UnregisterDeviceClassAssociation
, &r
);
1084 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
,
1130 NDR_PNP_GETCLASSREGPROP
,
1133 if (!NT_STATUS_IS_OK(status
)) {
1137 if (DEBUGLEVEL
>= 10) {
1138 NDR_PRINT_OUT_DEBUG(PNP_GetClassRegProp
, &r
);
1141 if (NT_STATUS_IS_ERR(status
)) {
1145 /* Return variables */
1149 *werror
= r
.out
.result
;
1152 return werror_to_ntstatus(r
.out
.result
);
1155 NTSTATUS
rpccli_PNP_SetClassRegProp(struct rpc_pipe_client
*cli
,
1156 TALLOC_CTX
*mem_ctx
,
1159 struct PNP_SetClassRegProp r
;
1164 if (DEBUGLEVEL
>= 10) {
1165 NDR_PRINT_IN_DEBUG(PNP_SetClassRegProp
, &r
);
1168 status
= cli_do_rpc_ndr(cli
,
1172 NDR_PNP_SETCLASSREGPROP
,
1175 if (!NT_STATUS_IS_OK(status
)) {
1179 if (DEBUGLEVEL
>= 10) {
1180 NDR_PRINT_OUT_DEBUG(PNP_SetClassRegProp
, &r
);
1183 if (NT_STATUS_IS_ERR(status
)) {
1187 /* Return variables */
1191 *werror
= r
.out
.result
;
1194 return werror_to_ntstatus(r
.out
.result
);
1197 NTSTATUS
rpccli_PNP_CreateDevInst(struct rpc_pipe_client
*cli
,
1198 TALLOC_CTX
*mem_ctx
,
1201 struct PNP_CreateDevInst r
;
1206 if (DEBUGLEVEL
>= 10) {
1207 NDR_PRINT_IN_DEBUG(PNP_CreateDevInst
, &r
);
1210 status
= cli_do_rpc_ndr(cli
,
1214 NDR_PNP_CREATEDEVINST
,
1217 if (!NT_STATUS_IS_OK(status
)) {
1221 if (DEBUGLEVEL
>= 10) {
1222 NDR_PRINT_OUT_DEBUG(PNP_CreateDevInst
, &r
);
1225 if (NT_STATUS_IS_ERR(status
)) {
1229 /* Return variables */
1233 *werror
= r
.out
.result
;
1236 return werror_to_ntstatus(r
.out
.result
);
1239 NTSTATUS
rpccli_PNP_DeviceInstanceAction(struct rpc_pipe_client
*cli
,
1240 TALLOC_CTX
*mem_ctx
,
1243 struct PNP_DeviceInstanceAction r
;
1248 if (DEBUGLEVEL
>= 10) {
1249 NDR_PRINT_IN_DEBUG(PNP_DeviceInstanceAction
, &r
);
1252 status
= cli_do_rpc_ndr(cli
,
1256 NDR_PNP_DEVICEINSTANCEACTION
,
1259 if (!NT_STATUS_IS_OK(status
)) {
1263 if (DEBUGLEVEL
>= 10) {
1264 NDR_PRINT_OUT_DEBUG(PNP_DeviceInstanceAction
, &r
);
1267 if (NT_STATUS_IS_ERR(status
)) {
1271 /* Return variables */
1275 *werror
= r
.out
.result
;
1278 return werror_to_ntstatus(r
.out
.result
);
1281 NTSTATUS
rpccli_PNP_GetDeviceStatus(struct rpc_pipe_client
*cli
,
1282 TALLOC_CTX
*mem_ctx
,
1285 struct PNP_GetDeviceStatus r
;
1290 if (DEBUGLEVEL
>= 10) {
1291 NDR_PRINT_IN_DEBUG(PNP_GetDeviceStatus
, &r
);
1294 status
= cli_do_rpc_ndr(cli
,
1298 NDR_PNP_GETDEVICESTATUS
,
1301 if (!NT_STATUS_IS_OK(status
)) {
1305 if (DEBUGLEVEL
>= 10) {
1306 NDR_PRINT_OUT_DEBUG(PNP_GetDeviceStatus
, &r
);
1309 if (NT_STATUS_IS_ERR(status
)) {
1313 /* Return variables */
1317 *werror
= r
.out
.result
;
1320 return werror_to_ntstatus(r
.out
.result
);
1323 NTSTATUS
rpccli_PNP_SetDeviceProblem(struct rpc_pipe_client
*cli
,
1324 TALLOC_CTX
*mem_ctx
,
1327 struct PNP_SetDeviceProblem r
;
1332 if (DEBUGLEVEL
>= 10) {
1333 NDR_PRINT_IN_DEBUG(PNP_SetDeviceProblem
, &r
);
1336 status
= cli_do_rpc_ndr(cli
,
1340 NDR_PNP_SETDEVICEPROBLEM
,
1343 if (!NT_STATUS_IS_OK(status
)) {
1347 if (DEBUGLEVEL
>= 10) {
1348 NDR_PRINT_OUT_DEBUG(PNP_SetDeviceProblem
, &r
);
1351 if (NT_STATUS_IS_ERR(status
)) {
1355 /* Return variables */
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
,
1369 struct PNP_DisableDevInst r
;
1374 if (DEBUGLEVEL
>= 10) {
1375 NDR_PRINT_IN_DEBUG(PNP_DisableDevInst
, &r
);
1378 status
= cli_do_rpc_ndr(cli
,
1382 NDR_PNP_DISABLEDEVINST
,
1385 if (!NT_STATUS_IS_OK(status
)) {
1389 if (DEBUGLEVEL
>= 10) {
1390 NDR_PRINT_OUT_DEBUG(PNP_DisableDevInst
, &r
);
1393 if (NT_STATUS_IS_ERR(status
)) {
1397 /* Return variables */
1401 *werror
= r
.out
.result
;
1404 return werror_to_ntstatus(r
.out
.result
);
1407 NTSTATUS
rpccli_PNP_UninstallDevInst(struct rpc_pipe_client
*cli
,
1408 TALLOC_CTX
*mem_ctx
,
1411 struct PNP_UninstallDevInst r
;
1416 if (DEBUGLEVEL
>= 10) {
1417 NDR_PRINT_IN_DEBUG(PNP_UninstallDevInst
, &r
);
1420 status
= cli_do_rpc_ndr(cli
,
1424 NDR_PNP_UNINSTALLDEVINST
,
1427 if (!NT_STATUS_IS_OK(status
)) {
1431 if (DEBUGLEVEL
>= 10) {
1432 NDR_PRINT_OUT_DEBUG(PNP_UninstallDevInst
, &r
);
1435 if (NT_STATUS_IS_ERR(status
)) {
1439 /* Return variables */
1443 *werror
= r
.out
.result
;
1446 return werror_to_ntstatus(r
.out
.result
);
1449 NTSTATUS
rpccli_PNP_AddID(struct rpc_pipe_client
*cli
,
1450 TALLOC_CTX
*mem_ctx
,
1458 if (DEBUGLEVEL
>= 10) {
1459 NDR_PRINT_IN_DEBUG(PNP_AddID
, &r
);
1462 status
= cli_do_rpc_ndr(cli
,
1469 if (!NT_STATUS_IS_OK(status
)) {
1473 if (DEBUGLEVEL
>= 10) {
1474 NDR_PRINT_OUT_DEBUG(PNP_AddID
, &r
);
1477 if (NT_STATUS_IS_ERR(status
)) {
1481 /* Return variables */
1485 *werror
= r
.out
.result
;
1488 return werror_to_ntstatus(r
.out
.result
);
1491 NTSTATUS
rpccli_PNP_RegisterDriver(struct rpc_pipe_client
*cli
,
1492 TALLOC_CTX
*mem_ctx
,
1495 struct PNP_RegisterDriver r
;
1500 if (DEBUGLEVEL
>= 10) {
1501 NDR_PRINT_IN_DEBUG(PNP_RegisterDriver
, &r
);
1504 status
= cli_do_rpc_ndr(cli
,
1508 NDR_PNP_REGISTERDRIVER
,
1511 if (!NT_STATUS_IS_OK(status
)) {
1515 if (DEBUGLEVEL
>= 10) {
1516 NDR_PRINT_OUT_DEBUG(PNP_RegisterDriver
, &r
);
1519 if (NT_STATUS_IS_ERR(status
)) {
1523 /* Return variables */
1527 *werror
= r
.out
.result
;
1530 return werror_to_ntstatus(r
.out
.result
);
1533 NTSTATUS
rpccli_PNP_QueryRemove(struct rpc_pipe_client
*cli
,
1534 TALLOC_CTX
*mem_ctx
,
1537 struct PNP_QueryRemove r
;
1542 if (DEBUGLEVEL
>= 10) {
1543 NDR_PRINT_IN_DEBUG(PNP_QueryRemove
, &r
);
1546 status
= cli_do_rpc_ndr(cli
,
1550 NDR_PNP_QUERYREMOVE
,
1553 if (!NT_STATUS_IS_OK(status
)) {
1557 if (DEBUGLEVEL
>= 10) {
1558 NDR_PRINT_OUT_DEBUG(PNP_QueryRemove
, &r
);
1561 if (NT_STATUS_IS_ERR(status
)) {
1565 /* Return variables */
1569 *werror
= r
.out
.result
;
1572 return werror_to_ntstatus(r
.out
.result
);
1575 NTSTATUS
rpccli_PNP_RequestDeviceEject(struct rpc_pipe_client
*cli
,
1576 TALLOC_CTX
*mem_ctx
,
1579 struct PNP_RequestDeviceEject r
;
1584 if (DEBUGLEVEL
>= 10) {
1585 NDR_PRINT_IN_DEBUG(PNP_RequestDeviceEject
, &r
);
1588 status
= cli_do_rpc_ndr(cli
,
1592 NDR_PNP_REQUESTDEVICEEJECT
,
1595 if (!NT_STATUS_IS_OK(status
)) {
1599 if (DEBUGLEVEL
>= 10) {
1600 NDR_PRINT_OUT_DEBUG(PNP_RequestDeviceEject
, &r
);
1603 if (NT_STATUS_IS_ERR(status
)) {
1607 /* Return variables */
1611 *werror
= r
.out
.result
;
1614 return werror_to_ntstatus(r
.out
.result
);
1617 NTSTATUS
rpccli_PNP_IsDockStationPresent(struct rpc_pipe_client
*cli
,
1618 TALLOC_CTX
*mem_ctx
,
1621 struct PNP_IsDockStationPresent r
;
1626 if (DEBUGLEVEL
>= 10) {
1627 NDR_PRINT_IN_DEBUG(PNP_IsDockStationPresent
, &r
);
1630 status
= cli_do_rpc_ndr(cli
,
1634 NDR_PNP_ISDOCKSTATIONPRESENT
,
1637 if (!NT_STATUS_IS_OK(status
)) {
1641 if (DEBUGLEVEL
>= 10) {
1642 NDR_PRINT_OUT_DEBUG(PNP_IsDockStationPresent
, &r
);
1645 if (NT_STATUS_IS_ERR(status
)) {
1649 /* Return variables */
1653 *werror
= r
.out
.result
;
1656 return werror_to_ntstatus(r
.out
.result
);
1659 NTSTATUS
rpccli_PNP_RequestEjectPC(struct rpc_pipe_client
*cli
,
1660 TALLOC_CTX
*mem_ctx
,
1663 struct PNP_RequestEjectPC r
;
1668 if (DEBUGLEVEL
>= 10) {
1669 NDR_PRINT_IN_DEBUG(PNP_RequestEjectPC
, &r
);
1672 status
= cli_do_rpc_ndr(cli
,
1676 NDR_PNP_REQUESTEJECTPC
,
1679 if (!NT_STATUS_IS_OK(status
)) {
1683 if (DEBUGLEVEL
>= 10) {
1684 NDR_PRINT_OUT_DEBUG(PNP_RequestEjectPC
, &r
);
1687 if (NT_STATUS_IS_ERR(status
)) {
1691 /* Return variables */
1695 *werror
= r
.out
.result
;
1698 return werror_to_ntstatus(r
.out
.result
);
1701 NTSTATUS
rpccli_PNP_HwProfFlags(struct rpc_pipe_client
*cli
,
1702 TALLOC_CTX
*mem_ctx
,
1703 uint32_t unknown1
/* [in] */,
1704 const char *devicepath
/* [in] [ref,charset(UTF16)] */,
1705 uint32_t unknown2
/* [in] */,
1706 uint32_t *unknown3
/* [in,out] [ref] */,
1707 uint16_t *unknown4
/* [in,out] [unique] */,
1708 const char *unknown5
/* [in] [unique,charset(UTF16)] */,
1709 const char **unknown5a
/* [out] [unique,charset(UTF16)] */,
1710 uint32_t unknown6
/* [in] */,
1711 uint32_t unknown7
/* [in] */,
1714 struct PNP_HwProfFlags r
;
1718 r
.in
.unknown1
= unknown1
;
1719 r
.in
.devicepath
= devicepath
;
1720 r
.in
.unknown2
= unknown2
;
1721 r
.in
.unknown3
= unknown3
;
1722 r
.in
.unknown4
= unknown4
;
1723 r
.in
.unknown5
= unknown5
;
1724 r
.in
.unknown6
= unknown6
;
1725 r
.in
.unknown7
= unknown7
;
1727 if (DEBUGLEVEL
>= 10) {
1728 NDR_PRINT_IN_DEBUG(PNP_HwProfFlags
, &r
);
1731 status
= cli_do_rpc_ndr(cli
,
1735 NDR_PNP_HWPROFFLAGS
,
1738 if (!NT_STATUS_IS_OK(status
)) {
1742 if (DEBUGLEVEL
>= 10) {
1743 NDR_PRINT_OUT_DEBUG(PNP_HwProfFlags
, &r
);
1746 if (NT_STATUS_IS_ERR(status
)) {
1750 /* Return variables */
1751 *unknown3
= *r
.out
.unknown3
;
1752 if (unknown4
&& r
.out
.unknown4
) {
1753 *unknown4
= *r
.out
.unknown4
;
1755 if (unknown5a
&& r
.out
.unknown5a
) {
1756 *unknown5a
= *r
.out
.unknown5a
;
1761 *werror
= r
.out
.result
;
1764 return werror_to_ntstatus(r
.out
.result
);
1767 NTSTATUS
rpccli_PNP_GetHwProfInfo(struct rpc_pipe_client
*cli
,
1768 TALLOC_CTX
*mem_ctx
,
1769 uint32_t idx
/* [in] */,
1770 struct PNP_HwProfInfo
*info
/* [in,out] [ref] */,
1771 uint32_t size
/* [in] */,
1772 uint32_t flags
/* [in] */,
1775 struct PNP_GetHwProfInfo r
;
1784 if (DEBUGLEVEL
>= 10) {
1785 NDR_PRINT_IN_DEBUG(PNP_GetHwProfInfo
, &r
);
1788 status
= cli_do_rpc_ndr(cli
,
1792 NDR_PNP_GETHWPROFINFO
,
1795 if (!NT_STATUS_IS_OK(status
)) {
1799 if (DEBUGLEVEL
>= 10) {
1800 NDR_PRINT_OUT_DEBUG(PNP_GetHwProfInfo
, &r
);
1803 if (NT_STATUS_IS_ERR(status
)) {
1807 /* Return variables */
1808 *info
= *r
.out
.info
;
1812 *werror
= r
.out
.result
;
1815 return werror_to_ntstatus(r
.out
.result
);
1818 NTSTATUS
rpccli_PNP_AddEmptyLogConf(struct rpc_pipe_client
*cli
,
1819 TALLOC_CTX
*mem_ctx
,
1822 struct PNP_AddEmptyLogConf r
;
1827 if (DEBUGLEVEL
>= 10) {
1828 NDR_PRINT_IN_DEBUG(PNP_AddEmptyLogConf
, &r
);
1831 status
= cli_do_rpc_ndr(cli
,
1835 NDR_PNP_ADDEMPTYLOGCONF
,
1838 if (!NT_STATUS_IS_OK(status
)) {
1842 if (DEBUGLEVEL
>= 10) {
1843 NDR_PRINT_OUT_DEBUG(PNP_AddEmptyLogConf
, &r
);
1846 if (NT_STATUS_IS_ERR(status
)) {
1850 /* Return variables */
1854 *werror
= r
.out
.result
;
1857 return werror_to_ntstatus(r
.out
.result
);
1860 NTSTATUS
rpccli_PNP_FreeLogConf(struct rpc_pipe_client
*cli
,
1861 TALLOC_CTX
*mem_ctx
,
1864 struct PNP_FreeLogConf r
;
1869 if (DEBUGLEVEL
>= 10) {
1870 NDR_PRINT_IN_DEBUG(PNP_FreeLogConf
, &r
);
1873 status
= cli_do_rpc_ndr(cli
,
1877 NDR_PNP_FREELOGCONF
,
1880 if (!NT_STATUS_IS_OK(status
)) {
1884 if (DEBUGLEVEL
>= 10) {
1885 NDR_PRINT_OUT_DEBUG(PNP_FreeLogConf
, &r
);
1888 if (NT_STATUS_IS_ERR(status
)) {
1892 /* Return variables */
1896 *werror
= r
.out
.result
;
1899 return werror_to_ntstatus(r
.out
.result
);
1902 NTSTATUS
rpccli_PNP_GetFirstLogConf(struct rpc_pipe_client
*cli
,
1903 TALLOC_CTX
*mem_ctx
,
1906 struct PNP_GetFirstLogConf r
;
1911 if (DEBUGLEVEL
>= 10) {
1912 NDR_PRINT_IN_DEBUG(PNP_GetFirstLogConf
, &r
);
1915 status
= cli_do_rpc_ndr(cli
,
1919 NDR_PNP_GETFIRSTLOGCONF
,
1922 if (!NT_STATUS_IS_OK(status
)) {
1926 if (DEBUGLEVEL
>= 10) {
1927 NDR_PRINT_OUT_DEBUG(PNP_GetFirstLogConf
, &r
);
1930 if (NT_STATUS_IS_ERR(status
)) {
1934 /* Return variables */
1938 *werror
= r
.out
.result
;
1941 return werror_to_ntstatus(r
.out
.result
);
1944 NTSTATUS
rpccli_PNP_GetNextLogConf(struct rpc_pipe_client
*cli
,
1945 TALLOC_CTX
*mem_ctx
,
1948 struct PNP_GetNextLogConf r
;
1953 if (DEBUGLEVEL
>= 10) {
1954 NDR_PRINT_IN_DEBUG(PNP_GetNextLogConf
, &r
);
1957 status
= cli_do_rpc_ndr(cli
,
1961 NDR_PNP_GETNEXTLOGCONF
,
1964 if (!NT_STATUS_IS_OK(status
)) {
1968 if (DEBUGLEVEL
>= 10) {
1969 NDR_PRINT_OUT_DEBUG(PNP_GetNextLogConf
, &r
);
1972 if (NT_STATUS_IS_ERR(status
)) {
1976 /* Return variables */
1980 *werror
= r
.out
.result
;
1983 return werror_to_ntstatus(r
.out
.result
);
1986 NTSTATUS
rpccli_PNP_GetLogConfPriority(struct rpc_pipe_client
*cli
,
1987 TALLOC_CTX
*mem_ctx
,
1990 struct PNP_GetLogConfPriority r
;
1995 if (DEBUGLEVEL
>= 10) {
1996 NDR_PRINT_IN_DEBUG(PNP_GetLogConfPriority
, &r
);
1999 status
= cli_do_rpc_ndr(cli
,
2003 NDR_PNP_GETLOGCONFPRIORITY
,
2006 if (!NT_STATUS_IS_OK(status
)) {
2010 if (DEBUGLEVEL
>= 10) {
2011 NDR_PRINT_OUT_DEBUG(PNP_GetLogConfPriority
, &r
);
2014 if (NT_STATUS_IS_ERR(status
)) {
2018 /* Return variables */
2022 *werror
= r
.out
.result
;
2025 return werror_to_ntstatus(r
.out
.result
);
2028 NTSTATUS
rpccli_PNP_AddResDes(struct rpc_pipe_client
*cli
,
2029 TALLOC_CTX
*mem_ctx
,
2032 struct PNP_AddResDes r
;
2037 if (DEBUGLEVEL
>= 10) {
2038 NDR_PRINT_IN_DEBUG(PNP_AddResDes
, &r
);
2041 status
= cli_do_rpc_ndr(cli
,
2048 if (!NT_STATUS_IS_OK(status
)) {
2052 if (DEBUGLEVEL
>= 10) {
2053 NDR_PRINT_OUT_DEBUG(PNP_AddResDes
, &r
);
2056 if (NT_STATUS_IS_ERR(status
)) {
2060 /* Return variables */
2064 *werror
= r
.out
.result
;
2067 return werror_to_ntstatus(r
.out
.result
);
2070 NTSTATUS
rpccli_PNP_FreeResDes(struct rpc_pipe_client
*cli
,
2071 TALLOC_CTX
*mem_ctx
,
2074 struct PNP_FreeResDes r
;
2079 if (DEBUGLEVEL
>= 10) {
2080 NDR_PRINT_IN_DEBUG(PNP_FreeResDes
, &r
);
2083 status
= cli_do_rpc_ndr(cli
,
2090 if (!NT_STATUS_IS_OK(status
)) {
2094 if (DEBUGLEVEL
>= 10) {
2095 NDR_PRINT_OUT_DEBUG(PNP_FreeResDes
, &r
);
2098 if (NT_STATUS_IS_ERR(status
)) {
2102 /* Return variables */
2106 *werror
= r
.out
.result
;
2109 return werror_to_ntstatus(r
.out
.result
);
2112 NTSTATUS
rpccli_PNP_GetNextResDes(struct rpc_pipe_client
*cli
,
2113 TALLOC_CTX
*mem_ctx
,
2116 struct PNP_GetNextResDes r
;
2121 if (DEBUGLEVEL
>= 10) {
2122 NDR_PRINT_IN_DEBUG(PNP_GetNextResDes
, &r
);
2125 status
= cli_do_rpc_ndr(cli
,
2129 NDR_PNP_GETNEXTRESDES
,
2132 if (!NT_STATUS_IS_OK(status
)) {
2136 if (DEBUGLEVEL
>= 10) {
2137 NDR_PRINT_OUT_DEBUG(PNP_GetNextResDes
, &r
);
2140 if (NT_STATUS_IS_ERR(status
)) {
2144 /* Return variables */
2148 *werror
= r
.out
.result
;
2151 return werror_to_ntstatus(r
.out
.result
);
2154 NTSTATUS
rpccli_PNP_GetResDesData(struct rpc_pipe_client
*cli
,
2155 TALLOC_CTX
*mem_ctx
,
2158 struct PNP_GetResDesData r
;
2163 if (DEBUGLEVEL
>= 10) {
2164 NDR_PRINT_IN_DEBUG(PNP_GetResDesData
, &r
);
2167 status
= cli_do_rpc_ndr(cli
,
2171 NDR_PNP_GETRESDESDATA
,
2174 if (!NT_STATUS_IS_OK(status
)) {
2178 if (DEBUGLEVEL
>= 10) {
2179 NDR_PRINT_OUT_DEBUG(PNP_GetResDesData
, &r
);
2182 if (NT_STATUS_IS_ERR(status
)) {
2186 /* Return variables */
2190 *werror
= r
.out
.result
;
2193 return werror_to_ntstatus(r
.out
.result
);
2196 NTSTATUS
rpccli_PNP_GetResDesDataSize(struct rpc_pipe_client
*cli
,
2197 TALLOC_CTX
*mem_ctx
,
2200 struct PNP_GetResDesDataSize r
;
2205 if (DEBUGLEVEL
>= 10) {
2206 NDR_PRINT_IN_DEBUG(PNP_GetResDesDataSize
, &r
);
2209 status
= cli_do_rpc_ndr(cli
,
2213 NDR_PNP_GETRESDESDATASIZE
,
2216 if (!NT_STATUS_IS_OK(status
)) {
2220 if (DEBUGLEVEL
>= 10) {
2221 NDR_PRINT_OUT_DEBUG(PNP_GetResDesDataSize
, &r
);
2224 if (NT_STATUS_IS_ERR(status
)) {
2228 /* Return variables */
2232 *werror
= r
.out
.result
;
2235 return werror_to_ntstatus(r
.out
.result
);
2238 NTSTATUS
rpccli_PNP_ModifyResDes(struct rpc_pipe_client
*cli
,
2239 TALLOC_CTX
*mem_ctx
,
2242 struct PNP_ModifyResDes r
;
2247 if (DEBUGLEVEL
>= 10) {
2248 NDR_PRINT_IN_DEBUG(PNP_ModifyResDes
, &r
);
2251 status
= cli_do_rpc_ndr(cli
,
2255 NDR_PNP_MODIFYRESDES
,
2258 if (!NT_STATUS_IS_OK(status
)) {
2262 if (DEBUGLEVEL
>= 10) {
2263 NDR_PRINT_OUT_DEBUG(PNP_ModifyResDes
, &r
);
2266 if (NT_STATUS_IS_ERR(status
)) {
2270 /* Return variables */
2274 *werror
= r
.out
.result
;
2277 return werror_to_ntstatus(r
.out
.result
);
2280 NTSTATUS
rpccli_PNP_DetectResourceLimit(struct rpc_pipe_client
*cli
,
2281 TALLOC_CTX
*mem_ctx
,
2284 struct PNP_DetectResourceLimit r
;
2289 if (DEBUGLEVEL
>= 10) {
2290 NDR_PRINT_IN_DEBUG(PNP_DetectResourceLimit
, &r
);
2293 status
= cli_do_rpc_ndr(cli
,
2297 NDR_PNP_DETECTRESOURCELIMIT
,
2300 if (!NT_STATUS_IS_OK(status
)) {
2304 if (DEBUGLEVEL
>= 10) {
2305 NDR_PRINT_OUT_DEBUG(PNP_DetectResourceLimit
, &r
);
2308 if (NT_STATUS_IS_ERR(status
)) {
2312 /* Return variables */
2316 *werror
= r
.out
.result
;
2319 return werror_to_ntstatus(r
.out
.result
);
2322 NTSTATUS
rpccli_PNP_QueryResConfList(struct rpc_pipe_client
*cli
,
2323 TALLOC_CTX
*mem_ctx
,
2326 struct PNP_QueryResConfList r
;
2331 if (DEBUGLEVEL
>= 10) {
2332 NDR_PRINT_IN_DEBUG(PNP_QueryResConfList
, &r
);
2335 status
= cli_do_rpc_ndr(cli
,
2339 NDR_PNP_QUERYRESCONFLIST
,
2342 if (!NT_STATUS_IS_OK(status
)) {
2346 if (DEBUGLEVEL
>= 10) {
2347 NDR_PRINT_OUT_DEBUG(PNP_QueryResConfList
, &r
);
2350 if (NT_STATUS_IS_ERR(status
)) {
2354 /* Return variables */
2358 *werror
= r
.out
.result
;
2361 return werror_to_ntstatus(r
.out
.result
);
2364 NTSTATUS
rpccli_PNP_SetHwProf(struct rpc_pipe_client
*cli
,
2365 TALLOC_CTX
*mem_ctx
,
2368 struct PNP_SetHwProf r
;
2373 if (DEBUGLEVEL
>= 10) {
2374 NDR_PRINT_IN_DEBUG(PNP_SetHwProf
, &r
);
2377 status
= cli_do_rpc_ndr(cli
,
2384 if (!NT_STATUS_IS_OK(status
)) {
2388 if (DEBUGLEVEL
>= 10) {
2389 NDR_PRINT_OUT_DEBUG(PNP_SetHwProf
, &r
);
2392 if (NT_STATUS_IS_ERR(status
)) {
2396 /* Return variables */
2400 *werror
= r
.out
.result
;
2403 return werror_to_ntstatus(r
.out
.result
);
2406 NTSTATUS
rpccli_PNP_QueryArbitratorFreeData(struct rpc_pipe_client
*cli
,
2407 TALLOC_CTX
*mem_ctx
,
2410 struct PNP_QueryArbitratorFreeData r
;
2415 if (DEBUGLEVEL
>= 10) {
2416 NDR_PRINT_IN_DEBUG(PNP_QueryArbitratorFreeData
, &r
);
2419 status
= cli_do_rpc_ndr(cli
,
2423 NDR_PNP_QUERYARBITRATORFREEDATA
,
2426 if (!NT_STATUS_IS_OK(status
)) {
2430 if (DEBUGLEVEL
>= 10) {
2431 NDR_PRINT_OUT_DEBUG(PNP_QueryArbitratorFreeData
, &r
);
2434 if (NT_STATUS_IS_ERR(status
)) {
2438 /* Return variables */
2442 *werror
= r
.out
.result
;
2445 return werror_to_ntstatus(r
.out
.result
);
2448 NTSTATUS
rpccli_PNP_QueryArbitratorFreeSize(struct rpc_pipe_client
*cli
,
2449 TALLOC_CTX
*mem_ctx
,
2452 struct PNP_QueryArbitratorFreeSize r
;
2457 if (DEBUGLEVEL
>= 10) {
2458 NDR_PRINT_IN_DEBUG(PNP_QueryArbitratorFreeSize
, &r
);
2461 status
= cli_do_rpc_ndr(cli
,
2465 NDR_PNP_QUERYARBITRATORFREESIZE
,
2468 if (!NT_STATUS_IS_OK(status
)) {
2472 if (DEBUGLEVEL
>= 10) {
2473 NDR_PRINT_OUT_DEBUG(PNP_QueryArbitratorFreeSize
, &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_RunDetection(struct rpc_pipe_client
*cli
,
2491 TALLOC_CTX
*mem_ctx
,
2494 struct PNP_RunDetection r
;
2499 if (DEBUGLEVEL
>= 10) {
2500 NDR_PRINT_IN_DEBUG(PNP_RunDetection
, &r
);
2503 status
= cli_do_rpc_ndr(cli
,
2507 NDR_PNP_RUNDETECTION
,
2510 if (!NT_STATUS_IS_OK(status
)) {
2514 if (DEBUGLEVEL
>= 10) {
2515 NDR_PRINT_OUT_DEBUG(PNP_RunDetection
, &r
);
2518 if (NT_STATUS_IS_ERR(status
)) {
2522 /* Return variables */
2526 *werror
= r
.out
.result
;
2529 return werror_to_ntstatus(r
.out
.result
);
2532 NTSTATUS
rpccli_PNP_RegisterNotification(struct rpc_pipe_client
*cli
,
2533 TALLOC_CTX
*mem_ctx
,
2536 struct PNP_RegisterNotification r
;
2541 if (DEBUGLEVEL
>= 10) {
2542 NDR_PRINT_IN_DEBUG(PNP_RegisterNotification
, &r
);
2545 status
= cli_do_rpc_ndr(cli
,
2549 NDR_PNP_REGISTERNOTIFICATION
,
2552 if (!NT_STATUS_IS_OK(status
)) {
2556 if (DEBUGLEVEL
>= 10) {
2557 NDR_PRINT_OUT_DEBUG(PNP_RegisterNotification
, &r
);
2560 if (NT_STATUS_IS_ERR(status
)) {
2564 /* Return variables */
2568 *werror
= r
.out
.result
;
2571 return werror_to_ntstatus(r
.out
.result
);
2574 NTSTATUS
rpccli_PNP_UnregisterNotification(struct rpc_pipe_client
*cli
,
2575 TALLOC_CTX
*mem_ctx
,
2578 struct PNP_UnregisterNotification r
;
2583 if (DEBUGLEVEL
>= 10) {
2584 NDR_PRINT_IN_DEBUG(PNP_UnregisterNotification
, &r
);
2587 status
= cli_do_rpc_ndr(cli
,
2591 NDR_PNP_UNREGISTERNOTIFICATION
,
2594 if (!NT_STATUS_IS_OK(status
)) {
2598 if (DEBUGLEVEL
>= 10) {
2599 NDR_PRINT_OUT_DEBUG(PNP_UnregisterNotification
, &r
);
2602 if (NT_STATUS_IS_ERR(status
)) {
2606 /* Return variables */
2610 *werror
= r
.out
.result
;
2613 return werror_to_ntstatus(r
.out
.result
);
2616 NTSTATUS
rpccli_PNP_GetCustomDevProp(struct rpc_pipe_client
*cli
,
2617 TALLOC_CTX
*mem_ctx
,
2620 struct PNP_GetCustomDevProp r
;
2625 if (DEBUGLEVEL
>= 10) {
2626 NDR_PRINT_IN_DEBUG(PNP_GetCustomDevProp
, &r
);
2629 status
= cli_do_rpc_ndr(cli
,
2633 NDR_PNP_GETCUSTOMDEVPROP
,
2636 if (!NT_STATUS_IS_OK(status
)) {
2640 if (DEBUGLEVEL
>= 10) {
2641 NDR_PRINT_OUT_DEBUG(PNP_GetCustomDevProp
, &r
);
2644 if (NT_STATUS_IS_ERR(status
)) {
2648 /* Return variables */
2652 *werror
= r
.out
.result
;
2655 return werror_to_ntstatus(r
.out
.result
);
2658 NTSTATUS
rpccli_PNP_GetVersionInternal(struct rpc_pipe_client
*cli
,
2659 TALLOC_CTX
*mem_ctx
,
2662 struct PNP_GetVersionInternal r
;
2667 if (DEBUGLEVEL
>= 10) {
2668 NDR_PRINT_IN_DEBUG(PNP_GetVersionInternal
, &r
);
2671 status
= cli_do_rpc_ndr(cli
,
2675 NDR_PNP_GETVERSIONINTERNAL
,
2678 if (!NT_STATUS_IS_OK(status
)) {
2682 if (DEBUGLEVEL
>= 10) {
2683 NDR_PRINT_OUT_DEBUG(PNP_GetVersionInternal
, &r
);
2686 if (NT_STATUS_IS_ERR(status
)) {
2690 /* Return variables */
2694 *werror
= r
.out
.result
;
2697 return werror_to_ntstatus(r
.out
.result
);
2700 NTSTATUS
rpccli_PNP_GetBlockedDriverInfo(struct rpc_pipe_client
*cli
,
2701 TALLOC_CTX
*mem_ctx
,
2704 struct PNP_GetBlockedDriverInfo r
;
2709 if (DEBUGLEVEL
>= 10) {
2710 NDR_PRINT_IN_DEBUG(PNP_GetBlockedDriverInfo
, &r
);
2713 status
= cli_do_rpc_ndr(cli
,
2717 NDR_PNP_GETBLOCKEDDRIVERINFO
,
2720 if (!NT_STATUS_IS_OK(status
)) {
2724 if (DEBUGLEVEL
>= 10) {
2725 NDR_PRINT_OUT_DEBUG(PNP_GetBlockedDriverInfo
, &r
);
2728 if (NT_STATUS_IS_ERR(status
)) {
2732 /* Return variables */
2736 *werror
= r
.out
.result
;
2739 return werror_to_ntstatus(r
.out
.result
);
2742 NTSTATUS
rpccli_PNP_GetServerSideDeviceInstallFlags(struct rpc_pipe_client
*cli
,
2743 TALLOC_CTX
*mem_ctx
,
2746 struct PNP_GetServerSideDeviceInstallFlags r
;
2751 if (DEBUGLEVEL
>= 10) {
2752 NDR_PRINT_IN_DEBUG(PNP_GetServerSideDeviceInstallFlags
, &r
);
2755 status
= cli_do_rpc_ndr(cli
,
2759 NDR_PNP_GETSERVERSIDEDEVICEINSTALLFLAGS
,
2762 if (!NT_STATUS_IS_OK(status
)) {
2766 if (DEBUGLEVEL
>= 10) {
2767 NDR_PRINT_OUT_DEBUG(PNP_GetServerSideDeviceInstallFlags
, &r
);
2770 if (NT_STATUS_IS_ERR(status
)) {
2774 /* Return variables */
2778 *werror
= r
.out
.result
;
2781 return werror_to_ntstatus(r
.out
.result
);