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
->dispatch(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
->dispatch(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
->dispatch(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
->dispatch(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
->dispatch(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
->dispatch(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
->dispatch(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
->dispatch(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
->dispatch(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
->dispatch(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
->dispatch(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 if ((*r
.out
.length
) > (*r
.in
.length
)) {
465 return NT_STATUS_INVALID_NETWORK_RESPONSE
;
467 memcpy(buffer
, r
.out
.buffer
, (*r
.out
.length
) * sizeof(*buffer
));
468 *length
= *r
.out
.length
;
472 *werror
= r
.out
.result
;
475 return werror_to_ntstatus(r
.out
.result
);
478 NTSTATUS
rpccli_PNP_GetDeviceListSize(struct rpc_pipe_client
*cli
,
480 const char *devicename
/* [in] [unique,charset(UTF16)] */,
481 uint32_t *size
/* [out] [ref] */,
482 uint32_t flags
/* [in] */,
485 struct PNP_GetDeviceListSize r
;
489 r
.in
.devicename
= devicename
;
492 if (DEBUGLEVEL
>= 10) {
493 NDR_PRINT_IN_DEBUG(PNP_GetDeviceListSize
, &r
);
496 status
= cli
->dispatch(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
->dispatch(cli
,
544 if (!NT_STATUS_IS_OK(status
)) {
548 if (DEBUGLEVEL
>= 10) {
549 NDR_PRINT_OUT_DEBUG(PNP_GetDepth
, &r
);
552 if (NT_STATUS_IS_ERR(status
)) {
556 /* Return variables */
560 *werror
= r
.out
.result
;
563 return werror_to_ntstatus(r
.out
.result
);
566 NTSTATUS
rpccli_PNP_GetDeviceRegProp(struct rpc_pipe_client
*cli
,
568 const char *devicepath
/* [in] [ref,charset(UTF16)] */,
569 uint32_t property
/* [in] */,
570 enum winreg_Type
*reg_data_type
/* [in,out] [ref] */,
571 uint8_t *buffer
/* [out] [ref,length_is(*buffer_size),size_is(*buffer_size)] */,
572 uint32_t *buffer_size
/* [in,out] [ref] */,
573 uint32_t *needed
/* [in,out] [ref] */,
574 uint32_t flags
/* [in] */,
577 struct PNP_GetDeviceRegProp r
;
581 r
.in
.devicepath
= devicepath
;
582 r
.in
.property
= property
;
583 r
.in
.reg_data_type
= reg_data_type
;
584 r
.in
.buffer_size
= buffer_size
;
585 r
.in
.needed
= needed
;
588 if (DEBUGLEVEL
>= 10) {
589 NDR_PRINT_IN_DEBUG(PNP_GetDeviceRegProp
, &r
);
592 status
= cli
->dispatch(cli
,
595 NDR_PNP_GETDEVICEREGPROP
,
598 if (!NT_STATUS_IS_OK(status
)) {
602 if (DEBUGLEVEL
>= 10) {
603 NDR_PRINT_OUT_DEBUG(PNP_GetDeviceRegProp
, &r
);
606 if (NT_STATUS_IS_ERR(status
)) {
610 /* Return variables */
611 *reg_data_type
= *r
.out
.reg_data_type
;
612 if ((*r
.out
.buffer_size
) > (*r
.in
.buffer_size
)) {
613 return NT_STATUS_INVALID_NETWORK_RESPONSE
;
615 memcpy(buffer
, r
.out
.buffer
, (*r
.out
.buffer_size
) * sizeof(*buffer
));
616 *buffer_size
= *r
.out
.buffer_size
;
617 *needed
= *r
.out
.needed
;
621 *werror
= r
.out
.result
;
624 return werror_to_ntstatus(r
.out
.result
);
627 NTSTATUS
rpccli_PNP_SetDeviceRegProp(struct rpc_pipe_client
*cli
,
631 struct PNP_SetDeviceRegProp r
;
636 if (DEBUGLEVEL
>= 10) {
637 NDR_PRINT_IN_DEBUG(PNP_SetDeviceRegProp
, &r
);
640 status
= cli
->dispatch(cli
,
643 NDR_PNP_SETDEVICEREGPROP
,
646 if (!NT_STATUS_IS_OK(status
)) {
650 if (DEBUGLEVEL
>= 10) {
651 NDR_PRINT_OUT_DEBUG(PNP_SetDeviceRegProp
, &r
);
654 if (NT_STATUS_IS_ERR(status
)) {
658 /* Return variables */
662 *werror
= r
.out
.result
;
665 return werror_to_ntstatus(r
.out
.result
);
668 NTSTATUS
rpccli_PNP_GetClassInstance(struct rpc_pipe_client
*cli
,
672 struct PNP_GetClassInstance r
;
677 if (DEBUGLEVEL
>= 10) {
678 NDR_PRINT_IN_DEBUG(PNP_GetClassInstance
, &r
);
681 status
= cli
->dispatch(cli
,
684 NDR_PNP_GETCLASSINSTANCE
,
687 if (!NT_STATUS_IS_OK(status
)) {
691 if (DEBUGLEVEL
>= 10) {
692 NDR_PRINT_OUT_DEBUG(PNP_GetClassInstance
, &r
);
695 if (NT_STATUS_IS_ERR(status
)) {
699 /* Return variables */
703 *werror
= r
.out
.result
;
706 return werror_to_ntstatus(r
.out
.result
);
709 NTSTATUS
rpccli_PNP_CreateKey(struct rpc_pipe_client
*cli
,
713 struct PNP_CreateKey r
;
718 if (DEBUGLEVEL
>= 10) {
719 NDR_PRINT_IN_DEBUG(PNP_CreateKey
, &r
);
722 status
= cli
->dispatch(cli
,
728 if (!NT_STATUS_IS_OK(status
)) {
732 if (DEBUGLEVEL
>= 10) {
733 NDR_PRINT_OUT_DEBUG(PNP_CreateKey
, &r
);
736 if (NT_STATUS_IS_ERR(status
)) {
740 /* Return variables */
744 *werror
= r
.out
.result
;
747 return werror_to_ntstatus(r
.out
.result
);
750 NTSTATUS
rpccli_PNP_DeleteRegistryKey(struct rpc_pipe_client
*cli
,
754 struct PNP_DeleteRegistryKey r
;
759 if (DEBUGLEVEL
>= 10) {
760 NDR_PRINT_IN_DEBUG(PNP_DeleteRegistryKey
, &r
);
763 status
= cli
->dispatch(cli
,
766 NDR_PNP_DELETEREGISTRYKEY
,
769 if (!NT_STATUS_IS_OK(status
)) {
773 if (DEBUGLEVEL
>= 10) {
774 NDR_PRINT_OUT_DEBUG(PNP_DeleteRegistryKey
, &r
);
777 if (NT_STATUS_IS_ERR(status
)) {
781 /* Return variables */
785 *werror
= r
.out
.result
;
788 return werror_to_ntstatus(r
.out
.result
);
791 NTSTATUS
rpccli_PNP_GetClassCount(struct rpc_pipe_client
*cli
,
795 struct PNP_GetClassCount r
;
800 if (DEBUGLEVEL
>= 10) {
801 NDR_PRINT_IN_DEBUG(PNP_GetClassCount
, &r
);
804 status
= cli
->dispatch(cli
,
807 NDR_PNP_GETCLASSCOUNT
,
810 if (!NT_STATUS_IS_OK(status
)) {
814 if (DEBUGLEVEL
>= 10) {
815 NDR_PRINT_OUT_DEBUG(PNP_GetClassCount
, &r
);
818 if (NT_STATUS_IS_ERR(status
)) {
822 /* Return variables */
826 *werror
= r
.out
.result
;
829 return werror_to_ntstatus(r
.out
.result
);
832 NTSTATUS
rpccli_PNP_GetClassName(struct rpc_pipe_client
*cli
,
836 struct PNP_GetClassName r
;
841 if (DEBUGLEVEL
>= 10) {
842 NDR_PRINT_IN_DEBUG(PNP_GetClassName
, &r
);
845 status
= cli
->dispatch(cli
,
848 NDR_PNP_GETCLASSNAME
,
851 if (!NT_STATUS_IS_OK(status
)) {
855 if (DEBUGLEVEL
>= 10) {
856 NDR_PRINT_OUT_DEBUG(PNP_GetClassName
, &r
);
859 if (NT_STATUS_IS_ERR(status
)) {
863 /* Return variables */
867 *werror
= r
.out
.result
;
870 return werror_to_ntstatus(r
.out
.result
);
873 NTSTATUS
rpccli_PNP_DeleteClassKey(struct rpc_pipe_client
*cli
,
877 struct PNP_DeleteClassKey r
;
882 if (DEBUGLEVEL
>= 10) {
883 NDR_PRINT_IN_DEBUG(PNP_DeleteClassKey
, &r
);
886 status
= cli
->dispatch(cli
,
889 NDR_PNP_DELETECLASSKEY
,
892 if (!NT_STATUS_IS_OK(status
)) {
896 if (DEBUGLEVEL
>= 10) {
897 NDR_PRINT_OUT_DEBUG(PNP_DeleteClassKey
, &r
);
900 if (NT_STATUS_IS_ERR(status
)) {
904 /* Return variables */
908 *werror
= r
.out
.result
;
911 return werror_to_ntstatus(r
.out
.result
);
914 NTSTATUS
rpccli_PNP_GetInterfaceDeviceAlias(struct rpc_pipe_client
*cli
,
918 struct PNP_GetInterfaceDeviceAlias r
;
923 if (DEBUGLEVEL
>= 10) {
924 NDR_PRINT_IN_DEBUG(PNP_GetInterfaceDeviceAlias
, &r
);
927 status
= cli
->dispatch(cli
,
930 NDR_PNP_GETINTERFACEDEVICEALIAS
,
933 if (!NT_STATUS_IS_OK(status
)) {
937 if (DEBUGLEVEL
>= 10) {
938 NDR_PRINT_OUT_DEBUG(PNP_GetInterfaceDeviceAlias
, &r
);
941 if (NT_STATUS_IS_ERR(status
)) {
945 /* Return variables */
949 *werror
= r
.out
.result
;
952 return werror_to_ntstatus(r
.out
.result
);
955 NTSTATUS
rpccli_PNP_GetInterfaceDeviceList(struct rpc_pipe_client
*cli
,
959 struct PNP_GetInterfaceDeviceList r
;
964 if (DEBUGLEVEL
>= 10) {
965 NDR_PRINT_IN_DEBUG(PNP_GetInterfaceDeviceList
, &r
);
968 status
= cli
->dispatch(cli
,
971 NDR_PNP_GETINTERFACEDEVICELIST
,
974 if (!NT_STATUS_IS_OK(status
)) {
978 if (DEBUGLEVEL
>= 10) {
979 NDR_PRINT_OUT_DEBUG(PNP_GetInterfaceDeviceList
, &r
);
982 if (NT_STATUS_IS_ERR(status
)) {
986 /* Return variables */
990 *werror
= r
.out
.result
;
993 return werror_to_ntstatus(r
.out
.result
);
996 NTSTATUS
rpccli_PNP_GetInterfaceDeviceListSize(struct rpc_pipe_client
*cli
,
1000 struct PNP_GetInterfaceDeviceListSize r
;
1005 if (DEBUGLEVEL
>= 10) {
1006 NDR_PRINT_IN_DEBUG(PNP_GetInterfaceDeviceListSize
, &r
);
1009 status
= cli
->dispatch(cli
,
1012 NDR_PNP_GETINTERFACEDEVICELISTSIZE
,
1015 if (!NT_STATUS_IS_OK(status
)) {
1019 if (DEBUGLEVEL
>= 10) {
1020 NDR_PRINT_OUT_DEBUG(PNP_GetInterfaceDeviceListSize
, &r
);
1023 if (NT_STATUS_IS_ERR(status
)) {
1027 /* Return variables */
1031 *werror
= r
.out
.result
;
1034 return werror_to_ntstatus(r
.out
.result
);
1037 NTSTATUS
rpccli_PNP_RegisterDeviceClassAssociation(struct rpc_pipe_client
*cli
,
1038 TALLOC_CTX
*mem_ctx
,
1041 struct PNP_RegisterDeviceClassAssociation r
;
1046 if (DEBUGLEVEL
>= 10) {
1047 NDR_PRINT_IN_DEBUG(PNP_RegisterDeviceClassAssociation
, &r
);
1050 status
= cli
->dispatch(cli
,
1053 NDR_PNP_REGISTERDEVICECLASSASSOCIATION
,
1056 if (!NT_STATUS_IS_OK(status
)) {
1060 if (DEBUGLEVEL
>= 10) {
1061 NDR_PRINT_OUT_DEBUG(PNP_RegisterDeviceClassAssociation
, &r
);
1064 if (NT_STATUS_IS_ERR(status
)) {
1068 /* Return variables */
1072 *werror
= r
.out
.result
;
1075 return werror_to_ntstatus(r
.out
.result
);
1078 NTSTATUS
rpccli_PNP_UnregisterDeviceClassAssociation(struct rpc_pipe_client
*cli
,
1079 TALLOC_CTX
*mem_ctx
,
1082 struct PNP_UnregisterDeviceClassAssociation r
;
1087 if (DEBUGLEVEL
>= 10) {
1088 NDR_PRINT_IN_DEBUG(PNP_UnregisterDeviceClassAssociation
, &r
);
1091 status
= cli
->dispatch(cli
,
1094 NDR_PNP_UNREGISTERDEVICECLASSASSOCIATION
,
1097 if (!NT_STATUS_IS_OK(status
)) {
1101 if (DEBUGLEVEL
>= 10) {
1102 NDR_PRINT_OUT_DEBUG(PNP_UnregisterDeviceClassAssociation
, &r
);
1105 if (NT_STATUS_IS_ERR(status
)) {
1109 /* Return variables */
1113 *werror
= r
.out
.result
;
1116 return werror_to_ntstatus(r
.out
.result
);
1119 NTSTATUS
rpccli_PNP_GetClassRegProp(struct rpc_pipe_client
*cli
,
1120 TALLOC_CTX
*mem_ctx
,
1123 struct PNP_GetClassRegProp r
;
1128 if (DEBUGLEVEL
>= 10) {
1129 NDR_PRINT_IN_DEBUG(PNP_GetClassRegProp
, &r
);
1132 status
= cli
->dispatch(cli
,
1135 NDR_PNP_GETCLASSREGPROP
,
1138 if (!NT_STATUS_IS_OK(status
)) {
1142 if (DEBUGLEVEL
>= 10) {
1143 NDR_PRINT_OUT_DEBUG(PNP_GetClassRegProp
, &r
);
1146 if (NT_STATUS_IS_ERR(status
)) {
1150 /* Return variables */
1154 *werror
= r
.out
.result
;
1157 return werror_to_ntstatus(r
.out
.result
);
1160 NTSTATUS
rpccli_PNP_SetClassRegProp(struct rpc_pipe_client
*cli
,
1161 TALLOC_CTX
*mem_ctx
,
1164 struct PNP_SetClassRegProp r
;
1169 if (DEBUGLEVEL
>= 10) {
1170 NDR_PRINT_IN_DEBUG(PNP_SetClassRegProp
, &r
);
1173 status
= cli
->dispatch(cli
,
1176 NDR_PNP_SETCLASSREGPROP
,
1179 if (!NT_STATUS_IS_OK(status
)) {
1183 if (DEBUGLEVEL
>= 10) {
1184 NDR_PRINT_OUT_DEBUG(PNP_SetClassRegProp
, &r
);
1187 if (NT_STATUS_IS_ERR(status
)) {
1191 /* Return variables */
1195 *werror
= r
.out
.result
;
1198 return werror_to_ntstatus(r
.out
.result
);
1201 NTSTATUS
rpccli_PNP_CreateDevInst(struct rpc_pipe_client
*cli
,
1202 TALLOC_CTX
*mem_ctx
,
1205 struct PNP_CreateDevInst r
;
1210 if (DEBUGLEVEL
>= 10) {
1211 NDR_PRINT_IN_DEBUG(PNP_CreateDevInst
, &r
);
1214 status
= cli
->dispatch(cli
,
1217 NDR_PNP_CREATEDEVINST
,
1220 if (!NT_STATUS_IS_OK(status
)) {
1224 if (DEBUGLEVEL
>= 10) {
1225 NDR_PRINT_OUT_DEBUG(PNP_CreateDevInst
, &r
);
1228 if (NT_STATUS_IS_ERR(status
)) {
1232 /* Return variables */
1236 *werror
= r
.out
.result
;
1239 return werror_to_ntstatus(r
.out
.result
);
1242 NTSTATUS
rpccli_PNP_DeviceInstanceAction(struct rpc_pipe_client
*cli
,
1243 TALLOC_CTX
*mem_ctx
,
1246 struct PNP_DeviceInstanceAction r
;
1251 if (DEBUGLEVEL
>= 10) {
1252 NDR_PRINT_IN_DEBUG(PNP_DeviceInstanceAction
, &r
);
1255 status
= cli
->dispatch(cli
,
1258 NDR_PNP_DEVICEINSTANCEACTION
,
1261 if (!NT_STATUS_IS_OK(status
)) {
1265 if (DEBUGLEVEL
>= 10) {
1266 NDR_PRINT_OUT_DEBUG(PNP_DeviceInstanceAction
, &r
);
1269 if (NT_STATUS_IS_ERR(status
)) {
1273 /* Return variables */
1277 *werror
= r
.out
.result
;
1280 return werror_to_ntstatus(r
.out
.result
);
1283 NTSTATUS
rpccli_PNP_GetDeviceStatus(struct rpc_pipe_client
*cli
,
1284 TALLOC_CTX
*mem_ctx
,
1287 struct PNP_GetDeviceStatus r
;
1292 if (DEBUGLEVEL
>= 10) {
1293 NDR_PRINT_IN_DEBUG(PNP_GetDeviceStatus
, &r
);
1296 status
= cli
->dispatch(cli
,
1299 NDR_PNP_GETDEVICESTATUS
,
1302 if (!NT_STATUS_IS_OK(status
)) {
1306 if (DEBUGLEVEL
>= 10) {
1307 NDR_PRINT_OUT_DEBUG(PNP_GetDeviceStatus
, &r
);
1310 if (NT_STATUS_IS_ERR(status
)) {
1314 /* Return variables */
1318 *werror
= r
.out
.result
;
1321 return werror_to_ntstatus(r
.out
.result
);
1324 NTSTATUS
rpccli_PNP_SetDeviceProblem(struct rpc_pipe_client
*cli
,
1325 TALLOC_CTX
*mem_ctx
,
1328 struct PNP_SetDeviceProblem r
;
1333 if (DEBUGLEVEL
>= 10) {
1334 NDR_PRINT_IN_DEBUG(PNP_SetDeviceProblem
, &r
);
1337 status
= cli
->dispatch(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
->dispatch(cli
,
1381 NDR_PNP_DISABLEDEVINST
,
1384 if (!NT_STATUS_IS_OK(status
)) {
1388 if (DEBUGLEVEL
>= 10) {
1389 NDR_PRINT_OUT_DEBUG(PNP_DisableDevInst
, &r
);
1392 if (NT_STATUS_IS_ERR(status
)) {
1396 /* Return variables */
1400 *werror
= r
.out
.result
;
1403 return werror_to_ntstatus(r
.out
.result
);
1406 NTSTATUS
rpccli_PNP_UninstallDevInst(struct rpc_pipe_client
*cli
,
1407 TALLOC_CTX
*mem_ctx
,
1410 struct PNP_UninstallDevInst r
;
1415 if (DEBUGLEVEL
>= 10) {
1416 NDR_PRINT_IN_DEBUG(PNP_UninstallDevInst
, &r
);
1419 status
= cli
->dispatch(cli
,
1422 NDR_PNP_UNINSTALLDEVINST
,
1425 if (!NT_STATUS_IS_OK(status
)) {
1429 if (DEBUGLEVEL
>= 10) {
1430 NDR_PRINT_OUT_DEBUG(PNP_UninstallDevInst
, &r
);
1433 if (NT_STATUS_IS_ERR(status
)) {
1437 /* Return variables */
1441 *werror
= r
.out
.result
;
1444 return werror_to_ntstatus(r
.out
.result
);
1447 NTSTATUS
rpccli_PNP_AddID(struct rpc_pipe_client
*cli
,
1448 TALLOC_CTX
*mem_ctx
,
1456 if (DEBUGLEVEL
>= 10) {
1457 NDR_PRINT_IN_DEBUG(PNP_AddID
, &r
);
1460 status
= cli
->dispatch(cli
,
1466 if (!NT_STATUS_IS_OK(status
)) {
1470 if (DEBUGLEVEL
>= 10) {
1471 NDR_PRINT_OUT_DEBUG(PNP_AddID
, &r
);
1474 if (NT_STATUS_IS_ERR(status
)) {
1478 /* Return variables */
1482 *werror
= r
.out
.result
;
1485 return werror_to_ntstatus(r
.out
.result
);
1488 NTSTATUS
rpccli_PNP_RegisterDriver(struct rpc_pipe_client
*cli
,
1489 TALLOC_CTX
*mem_ctx
,
1492 struct PNP_RegisterDriver r
;
1497 if (DEBUGLEVEL
>= 10) {
1498 NDR_PRINT_IN_DEBUG(PNP_RegisterDriver
, &r
);
1501 status
= cli
->dispatch(cli
,
1504 NDR_PNP_REGISTERDRIVER
,
1507 if (!NT_STATUS_IS_OK(status
)) {
1511 if (DEBUGLEVEL
>= 10) {
1512 NDR_PRINT_OUT_DEBUG(PNP_RegisterDriver
, &r
);
1515 if (NT_STATUS_IS_ERR(status
)) {
1519 /* Return variables */
1523 *werror
= r
.out
.result
;
1526 return werror_to_ntstatus(r
.out
.result
);
1529 NTSTATUS
rpccli_PNP_QueryRemove(struct rpc_pipe_client
*cli
,
1530 TALLOC_CTX
*mem_ctx
,
1533 struct PNP_QueryRemove r
;
1538 if (DEBUGLEVEL
>= 10) {
1539 NDR_PRINT_IN_DEBUG(PNP_QueryRemove
, &r
);
1542 status
= cli
->dispatch(cli
,
1545 NDR_PNP_QUERYREMOVE
,
1548 if (!NT_STATUS_IS_OK(status
)) {
1552 if (DEBUGLEVEL
>= 10) {
1553 NDR_PRINT_OUT_DEBUG(PNP_QueryRemove
, &r
);
1556 if (NT_STATUS_IS_ERR(status
)) {
1560 /* Return variables */
1564 *werror
= r
.out
.result
;
1567 return werror_to_ntstatus(r
.out
.result
);
1570 NTSTATUS
rpccli_PNP_RequestDeviceEject(struct rpc_pipe_client
*cli
,
1571 TALLOC_CTX
*mem_ctx
,
1574 struct PNP_RequestDeviceEject r
;
1579 if (DEBUGLEVEL
>= 10) {
1580 NDR_PRINT_IN_DEBUG(PNP_RequestDeviceEject
, &r
);
1583 status
= cli
->dispatch(cli
,
1586 NDR_PNP_REQUESTDEVICEEJECT
,
1589 if (!NT_STATUS_IS_OK(status
)) {
1593 if (DEBUGLEVEL
>= 10) {
1594 NDR_PRINT_OUT_DEBUG(PNP_RequestDeviceEject
, &r
);
1597 if (NT_STATUS_IS_ERR(status
)) {
1601 /* Return variables */
1605 *werror
= r
.out
.result
;
1608 return werror_to_ntstatus(r
.out
.result
);
1611 NTSTATUS
rpccli_PNP_IsDockStationPresent(struct rpc_pipe_client
*cli
,
1612 TALLOC_CTX
*mem_ctx
,
1615 struct PNP_IsDockStationPresent r
;
1620 if (DEBUGLEVEL
>= 10) {
1621 NDR_PRINT_IN_DEBUG(PNP_IsDockStationPresent
, &r
);
1624 status
= cli
->dispatch(cli
,
1627 NDR_PNP_ISDOCKSTATIONPRESENT
,
1630 if (!NT_STATUS_IS_OK(status
)) {
1634 if (DEBUGLEVEL
>= 10) {
1635 NDR_PRINT_OUT_DEBUG(PNP_IsDockStationPresent
, &r
);
1638 if (NT_STATUS_IS_ERR(status
)) {
1642 /* Return variables */
1646 *werror
= r
.out
.result
;
1649 return werror_to_ntstatus(r
.out
.result
);
1652 NTSTATUS
rpccli_PNP_RequestEjectPC(struct rpc_pipe_client
*cli
,
1653 TALLOC_CTX
*mem_ctx
,
1656 struct PNP_RequestEjectPC r
;
1661 if (DEBUGLEVEL
>= 10) {
1662 NDR_PRINT_IN_DEBUG(PNP_RequestEjectPC
, &r
);
1665 status
= cli
->dispatch(cli
,
1668 NDR_PNP_REQUESTEJECTPC
,
1671 if (!NT_STATUS_IS_OK(status
)) {
1675 if (DEBUGLEVEL
>= 10) {
1676 NDR_PRINT_OUT_DEBUG(PNP_RequestEjectPC
, &r
);
1679 if (NT_STATUS_IS_ERR(status
)) {
1683 /* Return variables */
1687 *werror
= r
.out
.result
;
1690 return werror_to_ntstatus(r
.out
.result
);
1693 NTSTATUS
rpccli_PNP_HwProfFlags(struct rpc_pipe_client
*cli
,
1694 TALLOC_CTX
*mem_ctx
,
1695 uint32_t action
/* [in] */,
1696 const char *devicepath
/* [in] [ref,charset(UTF16)] */,
1697 uint32_t config
/* [in] */,
1698 uint32_t *profile_flags
/* [in,out] [ref] */,
1699 uint16_t *veto_type
/* [in,out] [unique] */,
1700 const char *unknown5
/* [in] [unique,charset(UTF16)] */,
1701 const char **unknown5a
/* [out] [unique,charset(UTF16)] */,
1702 uint32_t name_length
/* [in] */,
1703 uint32_t flags
/* [in] */,
1706 struct PNP_HwProfFlags r
;
1710 r
.in
.action
= action
;
1711 r
.in
.devicepath
= devicepath
;
1712 r
.in
.config
= config
;
1713 r
.in
.profile_flags
= profile_flags
;
1714 r
.in
.veto_type
= veto_type
;
1715 r
.in
.unknown5
= unknown5
;
1716 r
.in
.name_length
= name_length
;
1719 if (DEBUGLEVEL
>= 10) {
1720 NDR_PRINT_IN_DEBUG(PNP_HwProfFlags
, &r
);
1723 status
= cli
->dispatch(cli
,
1726 NDR_PNP_HWPROFFLAGS
,
1729 if (!NT_STATUS_IS_OK(status
)) {
1733 if (DEBUGLEVEL
>= 10) {
1734 NDR_PRINT_OUT_DEBUG(PNP_HwProfFlags
, &r
);
1737 if (NT_STATUS_IS_ERR(status
)) {
1741 /* Return variables */
1742 *profile_flags
= *r
.out
.profile_flags
;
1743 if (veto_type
&& r
.out
.veto_type
) {
1744 *veto_type
= *r
.out
.veto_type
;
1746 if (unknown5a
&& r
.out
.unknown5a
) {
1747 *unknown5a
= *r
.out
.unknown5a
;
1752 *werror
= r
.out
.result
;
1755 return werror_to_ntstatus(r
.out
.result
);
1758 NTSTATUS
rpccli_PNP_GetHwProfInfo(struct rpc_pipe_client
*cli
,
1759 TALLOC_CTX
*mem_ctx
,
1760 uint32_t idx
/* [in] */,
1761 struct PNP_HwProfInfo
*info
/* [in,out] [ref] */,
1762 uint32_t size
/* [in] */,
1763 uint32_t flags
/* [in] */,
1766 struct PNP_GetHwProfInfo r
;
1775 if (DEBUGLEVEL
>= 10) {
1776 NDR_PRINT_IN_DEBUG(PNP_GetHwProfInfo
, &r
);
1779 status
= cli
->dispatch(cli
,
1782 NDR_PNP_GETHWPROFINFO
,
1785 if (!NT_STATUS_IS_OK(status
)) {
1789 if (DEBUGLEVEL
>= 10) {
1790 NDR_PRINT_OUT_DEBUG(PNP_GetHwProfInfo
, &r
);
1793 if (NT_STATUS_IS_ERR(status
)) {
1797 /* Return variables */
1798 *info
= *r
.out
.info
;
1802 *werror
= r
.out
.result
;
1805 return werror_to_ntstatus(r
.out
.result
);
1808 NTSTATUS
rpccli_PNP_AddEmptyLogConf(struct rpc_pipe_client
*cli
,
1809 TALLOC_CTX
*mem_ctx
,
1812 struct PNP_AddEmptyLogConf r
;
1817 if (DEBUGLEVEL
>= 10) {
1818 NDR_PRINT_IN_DEBUG(PNP_AddEmptyLogConf
, &r
);
1821 status
= cli
->dispatch(cli
,
1824 NDR_PNP_ADDEMPTYLOGCONF
,
1827 if (!NT_STATUS_IS_OK(status
)) {
1831 if (DEBUGLEVEL
>= 10) {
1832 NDR_PRINT_OUT_DEBUG(PNP_AddEmptyLogConf
, &r
);
1835 if (NT_STATUS_IS_ERR(status
)) {
1839 /* Return variables */
1843 *werror
= r
.out
.result
;
1846 return werror_to_ntstatus(r
.out
.result
);
1849 NTSTATUS
rpccli_PNP_FreeLogConf(struct rpc_pipe_client
*cli
,
1850 TALLOC_CTX
*mem_ctx
,
1853 struct PNP_FreeLogConf r
;
1858 if (DEBUGLEVEL
>= 10) {
1859 NDR_PRINT_IN_DEBUG(PNP_FreeLogConf
, &r
);
1862 status
= cli
->dispatch(cli
,
1865 NDR_PNP_FREELOGCONF
,
1868 if (!NT_STATUS_IS_OK(status
)) {
1872 if (DEBUGLEVEL
>= 10) {
1873 NDR_PRINT_OUT_DEBUG(PNP_FreeLogConf
, &r
);
1876 if (NT_STATUS_IS_ERR(status
)) {
1880 /* Return variables */
1884 *werror
= r
.out
.result
;
1887 return werror_to_ntstatus(r
.out
.result
);
1890 NTSTATUS
rpccli_PNP_GetFirstLogConf(struct rpc_pipe_client
*cli
,
1891 TALLOC_CTX
*mem_ctx
,
1894 struct PNP_GetFirstLogConf r
;
1899 if (DEBUGLEVEL
>= 10) {
1900 NDR_PRINT_IN_DEBUG(PNP_GetFirstLogConf
, &r
);
1903 status
= cli
->dispatch(cli
,
1906 NDR_PNP_GETFIRSTLOGCONF
,
1909 if (!NT_STATUS_IS_OK(status
)) {
1913 if (DEBUGLEVEL
>= 10) {
1914 NDR_PRINT_OUT_DEBUG(PNP_GetFirstLogConf
, &r
);
1917 if (NT_STATUS_IS_ERR(status
)) {
1921 /* Return variables */
1925 *werror
= r
.out
.result
;
1928 return werror_to_ntstatus(r
.out
.result
);
1931 NTSTATUS
rpccli_PNP_GetNextLogConf(struct rpc_pipe_client
*cli
,
1932 TALLOC_CTX
*mem_ctx
,
1935 struct PNP_GetNextLogConf r
;
1940 if (DEBUGLEVEL
>= 10) {
1941 NDR_PRINT_IN_DEBUG(PNP_GetNextLogConf
, &r
);
1944 status
= cli
->dispatch(cli
,
1947 NDR_PNP_GETNEXTLOGCONF
,
1950 if (!NT_STATUS_IS_OK(status
)) {
1954 if (DEBUGLEVEL
>= 10) {
1955 NDR_PRINT_OUT_DEBUG(PNP_GetNextLogConf
, &r
);
1958 if (NT_STATUS_IS_ERR(status
)) {
1962 /* Return variables */
1966 *werror
= r
.out
.result
;
1969 return werror_to_ntstatus(r
.out
.result
);
1972 NTSTATUS
rpccli_PNP_GetLogConfPriority(struct rpc_pipe_client
*cli
,
1973 TALLOC_CTX
*mem_ctx
,
1976 struct PNP_GetLogConfPriority r
;
1981 if (DEBUGLEVEL
>= 10) {
1982 NDR_PRINT_IN_DEBUG(PNP_GetLogConfPriority
, &r
);
1985 status
= cli
->dispatch(cli
,
1988 NDR_PNP_GETLOGCONFPRIORITY
,
1991 if (!NT_STATUS_IS_OK(status
)) {
1995 if (DEBUGLEVEL
>= 10) {
1996 NDR_PRINT_OUT_DEBUG(PNP_GetLogConfPriority
, &r
);
1999 if (NT_STATUS_IS_ERR(status
)) {
2003 /* Return variables */
2007 *werror
= r
.out
.result
;
2010 return werror_to_ntstatus(r
.out
.result
);
2013 NTSTATUS
rpccli_PNP_AddResDes(struct rpc_pipe_client
*cli
,
2014 TALLOC_CTX
*mem_ctx
,
2017 struct PNP_AddResDes r
;
2022 if (DEBUGLEVEL
>= 10) {
2023 NDR_PRINT_IN_DEBUG(PNP_AddResDes
, &r
);
2026 status
= cli
->dispatch(cli
,
2032 if (!NT_STATUS_IS_OK(status
)) {
2036 if (DEBUGLEVEL
>= 10) {
2037 NDR_PRINT_OUT_DEBUG(PNP_AddResDes
, &r
);
2040 if (NT_STATUS_IS_ERR(status
)) {
2044 /* Return variables */
2048 *werror
= r
.out
.result
;
2051 return werror_to_ntstatus(r
.out
.result
);
2054 NTSTATUS
rpccli_PNP_FreeResDes(struct rpc_pipe_client
*cli
,
2055 TALLOC_CTX
*mem_ctx
,
2058 struct PNP_FreeResDes r
;
2063 if (DEBUGLEVEL
>= 10) {
2064 NDR_PRINT_IN_DEBUG(PNP_FreeResDes
, &r
);
2067 status
= cli
->dispatch(cli
,
2073 if (!NT_STATUS_IS_OK(status
)) {
2077 if (DEBUGLEVEL
>= 10) {
2078 NDR_PRINT_OUT_DEBUG(PNP_FreeResDes
, &r
);
2081 if (NT_STATUS_IS_ERR(status
)) {
2085 /* Return variables */
2089 *werror
= r
.out
.result
;
2092 return werror_to_ntstatus(r
.out
.result
);
2095 NTSTATUS
rpccli_PNP_GetNextResDes(struct rpc_pipe_client
*cli
,
2096 TALLOC_CTX
*mem_ctx
,
2099 struct PNP_GetNextResDes r
;
2104 if (DEBUGLEVEL
>= 10) {
2105 NDR_PRINT_IN_DEBUG(PNP_GetNextResDes
, &r
);
2108 status
= cli
->dispatch(cli
,
2111 NDR_PNP_GETNEXTRESDES
,
2114 if (!NT_STATUS_IS_OK(status
)) {
2118 if (DEBUGLEVEL
>= 10) {
2119 NDR_PRINT_OUT_DEBUG(PNP_GetNextResDes
, &r
);
2122 if (NT_STATUS_IS_ERR(status
)) {
2126 /* Return variables */
2130 *werror
= r
.out
.result
;
2133 return werror_to_ntstatus(r
.out
.result
);
2136 NTSTATUS
rpccli_PNP_GetResDesData(struct rpc_pipe_client
*cli
,
2137 TALLOC_CTX
*mem_ctx
,
2140 struct PNP_GetResDesData r
;
2145 if (DEBUGLEVEL
>= 10) {
2146 NDR_PRINT_IN_DEBUG(PNP_GetResDesData
, &r
);
2149 status
= cli
->dispatch(cli
,
2152 NDR_PNP_GETRESDESDATA
,
2155 if (!NT_STATUS_IS_OK(status
)) {
2159 if (DEBUGLEVEL
>= 10) {
2160 NDR_PRINT_OUT_DEBUG(PNP_GetResDesData
, &r
);
2163 if (NT_STATUS_IS_ERR(status
)) {
2167 /* Return variables */
2171 *werror
= r
.out
.result
;
2174 return werror_to_ntstatus(r
.out
.result
);
2177 NTSTATUS
rpccli_PNP_GetResDesDataSize(struct rpc_pipe_client
*cli
,
2178 TALLOC_CTX
*mem_ctx
,
2181 struct PNP_GetResDesDataSize r
;
2186 if (DEBUGLEVEL
>= 10) {
2187 NDR_PRINT_IN_DEBUG(PNP_GetResDesDataSize
, &r
);
2190 status
= cli
->dispatch(cli
,
2193 NDR_PNP_GETRESDESDATASIZE
,
2196 if (!NT_STATUS_IS_OK(status
)) {
2200 if (DEBUGLEVEL
>= 10) {
2201 NDR_PRINT_OUT_DEBUG(PNP_GetResDesDataSize
, &r
);
2204 if (NT_STATUS_IS_ERR(status
)) {
2208 /* Return variables */
2212 *werror
= r
.out
.result
;
2215 return werror_to_ntstatus(r
.out
.result
);
2218 NTSTATUS
rpccli_PNP_ModifyResDes(struct rpc_pipe_client
*cli
,
2219 TALLOC_CTX
*mem_ctx
,
2222 struct PNP_ModifyResDes r
;
2227 if (DEBUGLEVEL
>= 10) {
2228 NDR_PRINT_IN_DEBUG(PNP_ModifyResDes
, &r
);
2231 status
= cli
->dispatch(cli
,
2234 NDR_PNP_MODIFYRESDES
,
2237 if (!NT_STATUS_IS_OK(status
)) {
2241 if (DEBUGLEVEL
>= 10) {
2242 NDR_PRINT_OUT_DEBUG(PNP_ModifyResDes
, &r
);
2245 if (NT_STATUS_IS_ERR(status
)) {
2249 /* Return variables */
2253 *werror
= r
.out
.result
;
2256 return werror_to_ntstatus(r
.out
.result
);
2259 NTSTATUS
rpccli_PNP_DetectResourceLimit(struct rpc_pipe_client
*cli
,
2260 TALLOC_CTX
*mem_ctx
,
2263 struct PNP_DetectResourceLimit r
;
2268 if (DEBUGLEVEL
>= 10) {
2269 NDR_PRINT_IN_DEBUG(PNP_DetectResourceLimit
, &r
);
2272 status
= cli
->dispatch(cli
,
2275 NDR_PNP_DETECTRESOURCELIMIT
,
2278 if (!NT_STATUS_IS_OK(status
)) {
2282 if (DEBUGLEVEL
>= 10) {
2283 NDR_PRINT_OUT_DEBUG(PNP_DetectResourceLimit
, &r
);
2286 if (NT_STATUS_IS_ERR(status
)) {
2290 /* Return variables */
2294 *werror
= r
.out
.result
;
2297 return werror_to_ntstatus(r
.out
.result
);
2300 NTSTATUS
rpccli_PNP_QueryResConfList(struct rpc_pipe_client
*cli
,
2301 TALLOC_CTX
*mem_ctx
,
2304 struct PNP_QueryResConfList r
;
2309 if (DEBUGLEVEL
>= 10) {
2310 NDR_PRINT_IN_DEBUG(PNP_QueryResConfList
, &r
);
2313 status
= cli
->dispatch(cli
,
2316 NDR_PNP_QUERYRESCONFLIST
,
2319 if (!NT_STATUS_IS_OK(status
)) {
2323 if (DEBUGLEVEL
>= 10) {
2324 NDR_PRINT_OUT_DEBUG(PNP_QueryResConfList
, &r
);
2327 if (NT_STATUS_IS_ERR(status
)) {
2331 /* Return variables */
2335 *werror
= r
.out
.result
;
2338 return werror_to_ntstatus(r
.out
.result
);
2341 NTSTATUS
rpccli_PNP_SetHwProf(struct rpc_pipe_client
*cli
,
2342 TALLOC_CTX
*mem_ctx
,
2345 struct PNP_SetHwProf r
;
2350 if (DEBUGLEVEL
>= 10) {
2351 NDR_PRINT_IN_DEBUG(PNP_SetHwProf
, &r
);
2354 status
= cli
->dispatch(cli
,
2360 if (!NT_STATUS_IS_OK(status
)) {
2364 if (DEBUGLEVEL
>= 10) {
2365 NDR_PRINT_OUT_DEBUG(PNP_SetHwProf
, &r
);
2368 if (NT_STATUS_IS_ERR(status
)) {
2372 /* Return variables */
2376 *werror
= r
.out
.result
;
2379 return werror_to_ntstatus(r
.out
.result
);
2382 NTSTATUS
rpccli_PNP_QueryArbitratorFreeData(struct rpc_pipe_client
*cli
,
2383 TALLOC_CTX
*mem_ctx
,
2386 struct PNP_QueryArbitratorFreeData r
;
2391 if (DEBUGLEVEL
>= 10) {
2392 NDR_PRINT_IN_DEBUG(PNP_QueryArbitratorFreeData
, &r
);
2395 status
= cli
->dispatch(cli
,
2398 NDR_PNP_QUERYARBITRATORFREEDATA
,
2401 if (!NT_STATUS_IS_OK(status
)) {
2405 if (DEBUGLEVEL
>= 10) {
2406 NDR_PRINT_OUT_DEBUG(PNP_QueryArbitratorFreeData
, &r
);
2409 if (NT_STATUS_IS_ERR(status
)) {
2413 /* Return variables */
2417 *werror
= r
.out
.result
;
2420 return werror_to_ntstatus(r
.out
.result
);
2423 NTSTATUS
rpccli_PNP_QueryArbitratorFreeSize(struct rpc_pipe_client
*cli
,
2424 TALLOC_CTX
*mem_ctx
,
2427 struct PNP_QueryArbitratorFreeSize r
;
2432 if (DEBUGLEVEL
>= 10) {
2433 NDR_PRINT_IN_DEBUG(PNP_QueryArbitratorFreeSize
, &r
);
2436 status
= cli
->dispatch(cli
,
2439 NDR_PNP_QUERYARBITRATORFREESIZE
,
2442 if (!NT_STATUS_IS_OK(status
)) {
2446 if (DEBUGLEVEL
>= 10) {
2447 NDR_PRINT_OUT_DEBUG(PNP_QueryArbitratorFreeSize
, &r
);
2450 if (NT_STATUS_IS_ERR(status
)) {
2454 /* Return variables */
2458 *werror
= r
.out
.result
;
2461 return werror_to_ntstatus(r
.out
.result
);
2464 NTSTATUS
rpccli_PNP_RunDetection(struct rpc_pipe_client
*cli
,
2465 TALLOC_CTX
*mem_ctx
,
2468 struct PNP_RunDetection r
;
2473 if (DEBUGLEVEL
>= 10) {
2474 NDR_PRINT_IN_DEBUG(PNP_RunDetection
, &r
);
2477 status
= cli
->dispatch(cli
,
2480 NDR_PNP_RUNDETECTION
,
2483 if (!NT_STATUS_IS_OK(status
)) {
2487 if (DEBUGLEVEL
>= 10) {
2488 NDR_PRINT_OUT_DEBUG(PNP_RunDetection
, &r
);
2491 if (NT_STATUS_IS_ERR(status
)) {
2495 /* Return variables */
2499 *werror
= r
.out
.result
;
2502 return werror_to_ntstatus(r
.out
.result
);
2505 NTSTATUS
rpccli_PNP_RegisterNotification(struct rpc_pipe_client
*cli
,
2506 TALLOC_CTX
*mem_ctx
,
2509 struct PNP_RegisterNotification r
;
2514 if (DEBUGLEVEL
>= 10) {
2515 NDR_PRINT_IN_DEBUG(PNP_RegisterNotification
, &r
);
2518 status
= cli
->dispatch(cli
,
2521 NDR_PNP_REGISTERNOTIFICATION
,
2524 if (!NT_STATUS_IS_OK(status
)) {
2528 if (DEBUGLEVEL
>= 10) {
2529 NDR_PRINT_OUT_DEBUG(PNP_RegisterNotification
, &r
);
2532 if (NT_STATUS_IS_ERR(status
)) {
2536 /* Return variables */
2540 *werror
= r
.out
.result
;
2543 return werror_to_ntstatus(r
.out
.result
);
2546 NTSTATUS
rpccli_PNP_UnregisterNotification(struct rpc_pipe_client
*cli
,
2547 TALLOC_CTX
*mem_ctx
,
2550 struct PNP_UnregisterNotification r
;
2555 if (DEBUGLEVEL
>= 10) {
2556 NDR_PRINT_IN_DEBUG(PNP_UnregisterNotification
, &r
);
2559 status
= cli
->dispatch(cli
,
2562 NDR_PNP_UNREGISTERNOTIFICATION
,
2565 if (!NT_STATUS_IS_OK(status
)) {
2569 if (DEBUGLEVEL
>= 10) {
2570 NDR_PRINT_OUT_DEBUG(PNP_UnregisterNotification
, &r
);
2573 if (NT_STATUS_IS_ERR(status
)) {
2577 /* Return variables */
2581 *werror
= r
.out
.result
;
2584 return werror_to_ntstatus(r
.out
.result
);
2587 NTSTATUS
rpccli_PNP_GetCustomDevProp(struct rpc_pipe_client
*cli
,
2588 TALLOC_CTX
*mem_ctx
,
2591 struct PNP_GetCustomDevProp r
;
2596 if (DEBUGLEVEL
>= 10) {
2597 NDR_PRINT_IN_DEBUG(PNP_GetCustomDevProp
, &r
);
2600 status
= cli
->dispatch(cli
,
2603 NDR_PNP_GETCUSTOMDEVPROP
,
2606 if (!NT_STATUS_IS_OK(status
)) {
2610 if (DEBUGLEVEL
>= 10) {
2611 NDR_PRINT_OUT_DEBUG(PNP_GetCustomDevProp
, &r
);
2614 if (NT_STATUS_IS_ERR(status
)) {
2618 /* Return variables */
2622 *werror
= r
.out
.result
;
2625 return werror_to_ntstatus(r
.out
.result
);
2628 NTSTATUS
rpccli_PNP_GetVersionInternal(struct rpc_pipe_client
*cli
,
2629 TALLOC_CTX
*mem_ctx
,
2632 struct PNP_GetVersionInternal r
;
2637 if (DEBUGLEVEL
>= 10) {
2638 NDR_PRINT_IN_DEBUG(PNP_GetVersionInternal
, &r
);
2641 status
= cli
->dispatch(cli
,
2644 NDR_PNP_GETVERSIONINTERNAL
,
2647 if (!NT_STATUS_IS_OK(status
)) {
2651 if (DEBUGLEVEL
>= 10) {
2652 NDR_PRINT_OUT_DEBUG(PNP_GetVersionInternal
, &r
);
2655 if (NT_STATUS_IS_ERR(status
)) {
2659 /* Return variables */
2663 *werror
= r
.out
.result
;
2666 return werror_to_ntstatus(r
.out
.result
);
2669 NTSTATUS
rpccli_PNP_GetBlockedDriverInfo(struct rpc_pipe_client
*cli
,
2670 TALLOC_CTX
*mem_ctx
,
2673 struct PNP_GetBlockedDriverInfo r
;
2678 if (DEBUGLEVEL
>= 10) {
2679 NDR_PRINT_IN_DEBUG(PNP_GetBlockedDriverInfo
, &r
);
2682 status
= cli
->dispatch(cli
,
2685 NDR_PNP_GETBLOCKEDDRIVERINFO
,
2688 if (!NT_STATUS_IS_OK(status
)) {
2692 if (DEBUGLEVEL
>= 10) {
2693 NDR_PRINT_OUT_DEBUG(PNP_GetBlockedDriverInfo
, &r
);
2696 if (NT_STATUS_IS_ERR(status
)) {
2700 /* Return variables */
2704 *werror
= r
.out
.result
;
2707 return werror_to_ntstatus(r
.out
.result
);
2710 NTSTATUS
rpccli_PNP_GetServerSideDeviceInstallFlags(struct rpc_pipe_client
*cli
,
2711 TALLOC_CTX
*mem_ctx
,
2714 struct PNP_GetServerSideDeviceInstallFlags r
;
2719 if (DEBUGLEVEL
>= 10) {
2720 NDR_PRINT_IN_DEBUG(PNP_GetServerSideDeviceInstallFlags
, &r
);
2723 status
= cli
->dispatch(cli
,
2726 NDR_PNP_GETSERVERSIDEDEVICEINSTALLFLAGS
,
2729 if (!NT_STATUS_IS_OK(status
)) {
2733 if (DEBUGLEVEL
>= 10) {
2734 NDR_PRINT_OUT_DEBUG(PNP_GetServerSideDeviceInstallFlags
, &r
);
2737 if (NT_STATUS_IS_ERR(status
)) {
2741 /* Return variables */
2745 *werror
= r
.out
.result
;
2748 return werror_to_ntstatus(r
.out
.result
);