2 * Unix SMB/CIFS implementation.
3 * server auto-generated by pidl. DO NOT MODIFY!
7 #include "librpc/gen_ndr/srv_ntsvcs.h"
9 static bool api_PNP_Disconnect(pipes_struct
*p
)
11 const struct ndr_interface_call
*call
;
12 struct ndr_pull
*pull
;
13 struct ndr_push
*push
;
14 enum ndr_err_code ndr_err
;
16 struct PNP_Disconnect
*r
;
18 call
= &ndr_table_ntsvcs
.calls
[NDR_PNP_DISCONNECT
];
20 r
= talloc(talloc_tos(), struct PNP_Disconnect
);
25 if (!prs_data_blob(&p
->in_data
.data
, &blob
, r
)) {
30 pull
= ndr_pull_init_blob(&blob
, r
);
36 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
37 ndr_err
= call
->ndr_pull(pull
, NDR_IN
, r
);
38 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
43 if (DEBUGLEVEL
>= 10) {
44 NDR_PRINT_IN_DEBUG(PNP_Disconnect
, r
);
47 r
->out
.result
= _PNP_Disconnect(p
, r
);
49 if (p
->rng_fault_state
) {
51 /* Return true here, srv_pipe_hnd.c will take care */
55 if (DEBUGLEVEL
>= 10) {
56 NDR_PRINT_OUT_DEBUG(PNP_Disconnect
, r
);
59 push
= ndr_push_init_ctx(r
);
65 ndr_err
= call
->ndr_push(push
, NDR_OUT
, r
);
66 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
71 blob
= ndr_push_blob(push
);
72 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32_t)blob
.length
)) {
82 static bool api_PNP_Connect(pipes_struct
*p
)
84 const struct ndr_interface_call
*call
;
85 struct ndr_pull
*pull
;
86 struct ndr_push
*push
;
87 enum ndr_err_code ndr_err
;
89 struct PNP_Connect
*r
;
91 call
= &ndr_table_ntsvcs
.calls
[NDR_PNP_CONNECT
];
93 r
= talloc(talloc_tos(), struct PNP_Connect
);
98 if (!prs_data_blob(&p
->in_data
.data
, &blob
, r
)) {
103 pull
= ndr_pull_init_blob(&blob
, r
);
109 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
110 ndr_err
= call
->ndr_pull(pull
, NDR_IN
, r
);
111 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
116 if (DEBUGLEVEL
>= 10) {
117 NDR_PRINT_IN_DEBUG(PNP_Connect
, r
);
120 r
->out
.result
= _PNP_Connect(p
, r
);
122 if (p
->rng_fault_state
) {
124 /* Return true here, srv_pipe_hnd.c will take care */
128 if (DEBUGLEVEL
>= 10) {
129 NDR_PRINT_OUT_DEBUG(PNP_Connect
, r
);
132 push
= ndr_push_init_ctx(r
);
138 ndr_err
= call
->ndr_push(push
, NDR_OUT
, r
);
139 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
144 blob
= ndr_push_blob(push
);
145 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32_t)blob
.length
)) {
155 static bool api_PNP_GetVersion(pipes_struct
*p
)
157 const struct ndr_interface_call
*call
;
158 struct ndr_pull
*pull
;
159 struct ndr_push
*push
;
160 enum ndr_err_code ndr_err
;
162 struct PNP_GetVersion
*r
;
164 call
= &ndr_table_ntsvcs
.calls
[NDR_PNP_GETVERSION
];
166 r
= talloc(talloc_tos(), struct PNP_GetVersion
);
171 if (!prs_data_blob(&p
->in_data
.data
, &blob
, r
)) {
176 pull
= ndr_pull_init_blob(&blob
, r
);
182 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
183 ndr_err
= call
->ndr_pull(pull
, NDR_IN
, r
);
184 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
189 if (DEBUGLEVEL
>= 10) {
190 NDR_PRINT_IN_DEBUG(PNP_GetVersion
, r
);
194 r
->out
.version
= talloc_zero(r
, uint16_t);
195 if (r
->out
.version
== NULL
) {
200 r
->out
.result
= _PNP_GetVersion(p
, r
);
202 if (p
->rng_fault_state
) {
204 /* Return true here, srv_pipe_hnd.c will take care */
208 if (DEBUGLEVEL
>= 10) {
209 NDR_PRINT_OUT_DEBUG(PNP_GetVersion
, r
);
212 push
= ndr_push_init_ctx(r
);
218 ndr_err
= call
->ndr_push(push
, NDR_OUT
, r
);
219 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
224 blob
= ndr_push_blob(push
);
225 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32_t)blob
.length
)) {
235 static bool api_PNP_GetGlobalState(pipes_struct
*p
)
237 const struct ndr_interface_call
*call
;
238 struct ndr_pull
*pull
;
239 struct ndr_push
*push
;
240 enum ndr_err_code ndr_err
;
242 struct PNP_GetGlobalState
*r
;
244 call
= &ndr_table_ntsvcs
.calls
[NDR_PNP_GETGLOBALSTATE
];
246 r
= talloc(talloc_tos(), struct PNP_GetGlobalState
);
251 if (!prs_data_blob(&p
->in_data
.data
, &blob
, r
)) {
256 pull
= ndr_pull_init_blob(&blob
, r
);
262 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
263 ndr_err
= call
->ndr_pull(pull
, NDR_IN
, r
);
264 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
269 if (DEBUGLEVEL
>= 10) {
270 NDR_PRINT_IN_DEBUG(PNP_GetGlobalState
, r
);
273 r
->out
.result
= _PNP_GetGlobalState(p
, r
);
275 if (p
->rng_fault_state
) {
277 /* Return true here, srv_pipe_hnd.c will take care */
281 if (DEBUGLEVEL
>= 10) {
282 NDR_PRINT_OUT_DEBUG(PNP_GetGlobalState
, r
);
285 push
= ndr_push_init_ctx(r
);
291 ndr_err
= call
->ndr_push(push
, NDR_OUT
, r
);
292 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
297 blob
= ndr_push_blob(push
);
298 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32_t)blob
.length
)) {
308 static bool api_PNP_InitDetection(pipes_struct
*p
)
310 const struct ndr_interface_call
*call
;
311 struct ndr_pull
*pull
;
312 struct ndr_push
*push
;
313 enum ndr_err_code ndr_err
;
315 struct PNP_InitDetection
*r
;
317 call
= &ndr_table_ntsvcs
.calls
[NDR_PNP_INITDETECTION
];
319 r
= talloc(talloc_tos(), struct PNP_InitDetection
);
324 if (!prs_data_blob(&p
->in_data
.data
, &blob
, r
)) {
329 pull
= ndr_pull_init_blob(&blob
, r
);
335 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
336 ndr_err
= call
->ndr_pull(pull
, NDR_IN
, r
);
337 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
342 if (DEBUGLEVEL
>= 10) {
343 NDR_PRINT_IN_DEBUG(PNP_InitDetection
, r
);
346 r
->out
.result
= _PNP_InitDetection(p
, r
);
348 if (p
->rng_fault_state
) {
350 /* Return true here, srv_pipe_hnd.c will take care */
354 if (DEBUGLEVEL
>= 10) {
355 NDR_PRINT_OUT_DEBUG(PNP_InitDetection
, r
);
358 push
= ndr_push_init_ctx(r
);
364 ndr_err
= call
->ndr_push(push
, NDR_OUT
, r
);
365 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
370 blob
= ndr_push_blob(push
);
371 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32_t)blob
.length
)) {
381 static bool api_PNP_ReportLogOn(pipes_struct
*p
)
383 const struct ndr_interface_call
*call
;
384 struct ndr_pull
*pull
;
385 struct ndr_push
*push
;
386 enum ndr_err_code ndr_err
;
388 struct PNP_ReportLogOn
*r
;
390 call
= &ndr_table_ntsvcs
.calls
[NDR_PNP_REPORTLOGON
];
392 r
= talloc(talloc_tos(), struct PNP_ReportLogOn
);
397 if (!prs_data_blob(&p
->in_data
.data
, &blob
, r
)) {
402 pull
= ndr_pull_init_blob(&blob
, r
);
408 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
409 ndr_err
= call
->ndr_pull(pull
, NDR_IN
, r
);
410 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
415 if (DEBUGLEVEL
>= 10) {
416 NDR_PRINT_IN_DEBUG(PNP_ReportLogOn
, r
);
419 r
->out
.result
= _PNP_ReportLogOn(p
, r
);
421 if (p
->rng_fault_state
) {
423 /* Return true here, srv_pipe_hnd.c will take care */
427 if (DEBUGLEVEL
>= 10) {
428 NDR_PRINT_OUT_DEBUG(PNP_ReportLogOn
, r
);
431 push
= ndr_push_init_ctx(r
);
437 ndr_err
= call
->ndr_push(push
, NDR_OUT
, r
);
438 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
443 blob
= ndr_push_blob(push
);
444 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32_t)blob
.length
)) {
454 static bool api_PNP_ValidateDeviceInstance(pipes_struct
*p
)
456 const struct ndr_interface_call
*call
;
457 struct ndr_pull
*pull
;
458 struct ndr_push
*push
;
459 enum ndr_err_code ndr_err
;
461 struct PNP_ValidateDeviceInstance
*r
;
463 call
= &ndr_table_ntsvcs
.calls
[NDR_PNP_VALIDATEDEVICEINSTANCE
];
465 r
= talloc(talloc_tos(), struct PNP_ValidateDeviceInstance
);
470 if (!prs_data_blob(&p
->in_data
.data
, &blob
, r
)) {
475 pull
= ndr_pull_init_blob(&blob
, r
);
481 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
482 ndr_err
= call
->ndr_pull(pull
, NDR_IN
, r
);
483 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
488 if (DEBUGLEVEL
>= 10) {
489 NDR_PRINT_IN_DEBUG(PNP_ValidateDeviceInstance
, r
);
492 r
->out
.result
= _PNP_ValidateDeviceInstance(p
, r
);
494 if (p
->rng_fault_state
) {
496 /* Return true here, srv_pipe_hnd.c will take care */
500 if (DEBUGLEVEL
>= 10) {
501 NDR_PRINT_OUT_DEBUG(PNP_ValidateDeviceInstance
, r
);
504 push
= ndr_push_init_ctx(r
);
510 ndr_err
= call
->ndr_push(push
, NDR_OUT
, r
);
511 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
516 blob
= ndr_push_blob(push
);
517 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32_t)blob
.length
)) {
527 static bool api_PNP_GetRootDeviceInstance(pipes_struct
*p
)
529 const struct ndr_interface_call
*call
;
530 struct ndr_pull
*pull
;
531 struct ndr_push
*push
;
532 enum ndr_err_code ndr_err
;
534 struct PNP_GetRootDeviceInstance
*r
;
536 call
= &ndr_table_ntsvcs
.calls
[NDR_PNP_GETROOTDEVICEINSTANCE
];
538 r
= talloc(talloc_tos(), struct PNP_GetRootDeviceInstance
);
543 if (!prs_data_blob(&p
->in_data
.data
, &blob
, r
)) {
548 pull
= ndr_pull_init_blob(&blob
, r
);
554 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
555 ndr_err
= call
->ndr_pull(pull
, NDR_IN
, r
);
556 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
561 if (DEBUGLEVEL
>= 10) {
562 NDR_PRINT_IN_DEBUG(PNP_GetRootDeviceInstance
, r
);
565 r
->out
.result
= _PNP_GetRootDeviceInstance(p
, r
);
567 if (p
->rng_fault_state
) {
569 /* Return true here, srv_pipe_hnd.c will take care */
573 if (DEBUGLEVEL
>= 10) {
574 NDR_PRINT_OUT_DEBUG(PNP_GetRootDeviceInstance
, r
);
577 push
= ndr_push_init_ctx(r
);
583 ndr_err
= call
->ndr_push(push
, NDR_OUT
, r
);
584 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
589 blob
= ndr_push_blob(push
);
590 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32_t)blob
.length
)) {
600 static bool api_PNP_GetRelatedDeviceInstance(pipes_struct
*p
)
602 const struct ndr_interface_call
*call
;
603 struct ndr_pull
*pull
;
604 struct ndr_push
*push
;
605 enum ndr_err_code ndr_err
;
607 struct PNP_GetRelatedDeviceInstance
*r
;
609 call
= &ndr_table_ntsvcs
.calls
[NDR_PNP_GETRELATEDDEVICEINSTANCE
];
611 r
= talloc(talloc_tos(), struct PNP_GetRelatedDeviceInstance
);
616 if (!prs_data_blob(&p
->in_data
.data
, &blob
, r
)) {
621 pull
= ndr_pull_init_blob(&blob
, r
);
627 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
628 ndr_err
= call
->ndr_pull(pull
, NDR_IN
, r
);
629 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
634 if (DEBUGLEVEL
>= 10) {
635 NDR_PRINT_IN_DEBUG(PNP_GetRelatedDeviceInstance
, r
);
638 r
->out
.result
= _PNP_GetRelatedDeviceInstance(p
, r
);
640 if (p
->rng_fault_state
) {
642 /* Return true here, srv_pipe_hnd.c will take care */
646 if (DEBUGLEVEL
>= 10) {
647 NDR_PRINT_OUT_DEBUG(PNP_GetRelatedDeviceInstance
, r
);
650 push
= ndr_push_init_ctx(r
);
656 ndr_err
= call
->ndr_push(push
, NDR_OUT
, r
);
657 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
662 blob
= ndr_push_blob(push
);
663 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32_t)blob
.length
)) {
673 static bool api_PNP_EnumerateSubKeys(pipes_struct
*p
)
675 const struct ndr_interface_call
*call
;
676 struct ndr_pull
*pull
;
677 struct ndr_push
*push
;
678 enum ndr_err_code ndr_err
;
680 struct PNP_EnumerateSubKeys
*r
;
682 call
= &ndr_table_ntsvcs
.calls
[NDR_PNP_ENUMERATESUBKEYS
];
684 r
= talloc(talloc_tos(), struct PNP_EnumerateSubKeys
);
689 if (!prs_data_blob(&p
->in_data
.data
, &blob
, r
)) {
694 pull
= ndr_pull_init_blob(&blob
, r
);
700 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
701 ndr_err
= call
->ndr_pull(pull
, NDR_IN
, r
);
702 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
707 if (DEBUGLEVEL
>= 10) {
708 NDR_PRINT_IN_DEBUG(PNP_EnumerateSubKeys
, r
);
711 r
->out
.result
= _PNP_EnumerateSubKeys(p
, r
);
713 if (p
->rng_fault_state
) {
715 /* Return true here, srv_pipe_hnd.c will take care */
719 if (DEBUGLEVEL
>= 10) {
720 NDR_PRINT_OUT_DEBUG(PNP_EnumerateSubKeys
, r
);
723 push
= ndr_push_init_ctx(r
);
729 ndr_err
= call
->ndr_push(push
, NDR_OUT
, r
);
730 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
735 blob
= ndr_push_blob(push
);
736 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32_t)blob
.length
)) {
746 static bool api_PNP_GetDeviceList(pipes_struct
*p
)
748 const struct ndr_interface_call
*call
;
749 struct ndr_pull
*pull
;
750 struct ndr_push
*push
;
751 enum ndr_err_code ndr_err
;
753 struct PNP_GetDeviceList
*r
;
755 call
= &ndr_table_ntsvcs
.calls
[NDR_PNP_GETDEVICELIST
];
757 r
= talloc(talloc_tos(), struct PNP_GetDeviceList
);
762 if (!prs_data_blob(&p
->in_data
.data
, &blob
, r
)) {
767 pull
= ndr_pull_init_blob(&blob
, r
);
773 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
774 ndr_err
= call
->ndr_pull(pull
, NDR_IN
, r
);
775 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
780 if (DEBUGLEVEL
>= 10) {
781 NDR_PRINT_IN_DEBUG(PNP_GetDeviceList
, r
);
784 r
->out
.result
= _PNP_GetDeviceList(p
, r
);
786 if (p
->rng_fault_state
) {
788 /* Return true here, srv_pipe_hnd.c will take care */
792 if (DEBUGLEVEL
>= 10) {
793 NDR_PRINT_OUT_DEBUG(PNP_GetDeviceList
, r
);
796 push
= ndr_push_init_ctx(r
);
802 ndr_err
= call
->ndr_push(push
, NDR_OUT
, r
);
803 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
808 blob
= ndr_push_blob(push
);
809 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32_t)blob
.length
)) {
819 static bool api_PNP_GetDeviceListSize(pipes_struct
*p
)
821 const struct ndr_interface_call
*call
;
822 struct ndr_pull
*pull
;
823 struct ndr_push
*push
;
824 enum ndr_err_code ndr_err
;
826 struct PNP_GetDeviceListSize
*r
;
828 call
= &ndr_table_ntsvcs
.calls
[NDR_PNP_GETDEVICELISTSIZE
];
830 r
= talloc(talloc_tos(), struct PNP_GetDeviceListSize
);
835 if (!prs_data_blob(&p
->in_data
.data
, &blob
, r
)) {
840 pull
= ndr_pull_init_blob(&blob
, r
);
846 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
847 ndr_err
= call
->ndr_pull(pull
, NDR_IN
, r
);
848 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
853 if (DEBUGLEVEL
>= 10) {
854 NDR_PRINT_IN_DEBUG(PNP_GetDeviceListSize
, r
);
858 r
->out
.size
= talloc_zero(r
, uint32_t);
859 if (r
->out
.size
== NULL
) {
864 r
->out
.result
= _PNP_GetDeviceListSize(p
, r
);
866 if (p
->rng_fault_state
) {
868 /* Return true here, srv_pipe_hnd.c will take care */
872 if (DEBUGLEVEL
>= 10) {
873 NDR_PRINT_OUT_DEBUG(PNP_GetDeviceListSize
, r
);
876 push
= ndr_push_init_ctx(r
);
882 ndr_err
= call
->ndr_push(push
, NDR_OUT
, r
);
883 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
888 blob
= ndr_push_blob(push
);
889 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32_t)blob
.length
)) {
899 static bool api_PNP_GetDepth(pipes_struct
*p
)
901 const struct ndr_interface_call
*call
;
902 struct ndr_pull
*pull
;
903 struct ndr_push
*push
;
904 enum ndr_err_code ndr_err
;
906 struct PNP_GetDepth
*r
;
908 call
= &ndr_table_ntsvcs
.calls
[NDR_PNP_GETDEPTH
];
910 r
= talloc(talloc_tos(), struct PNP_GetDepth
);
915 if (!prs_data_blob(&p
->in_data
.data
, &blob
, r
)) {
920 pull
= ndr_pull_init_blob(&blob
, r
);
926 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
927 ndr_err
= call
->ndr_pull(pull
, NDR_IN
, r
);
928 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
933 if (DEBUGLEVEL
>= 10) {
934 NDR_PRINT_IN_DEBUG(PNP_GetDepth
, r
);
937 r
->out
.result
= _PNP_GetDepth(p
, r
);
939 if (p
->rng_fault_state
) {
941 /* Return true here, srv_pipe_hnd.c will take care */
945 if (DEBUGLEVEL
>= 10) {
946 NDR_PRINT_OUT_DEBUG(PNP_GetDepth
, r
);
949 push
= ndr_push_init_ctx(r
);
955 ndr_err
= call
->ndr_push(push
, NDR_OUT
, r
);
956 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
961 blob
= ndr_push_blob(push
);
962 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32_t)blob
.length
)) {
972 static bool api_PNP_GetDeviceRegProp(pipes_struct
*p
)
974 const struct ndr_interface_call
*call
;
975 struct ndr_pull
*pull
;
976 struct ndr_push
*push
;
977 enum ndr_err_code ndr_err
;
979 struct PNP_GetDeviceRegProp
*r
;
981 call
= &ndr_table_ntsvcs
.calls
[NDR_PNP_GETDEVICEREGPROP
];
983 r
= talloc(talloc_tos(), struct PNP_GetDeviceRegProp
);
988 if (!prs_data_blob(&p
->in_data
.data
, &blob
, r
)) {
993 pull
= ndr_pull_init_blob(&blob
, r
);
999 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
1000 ndr_err
= call
->ndr_pull(pull
, NDR_IN
, r
);
1001 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
1006 if (DEBUGLEVEL
>= 10) {
1007 NDR_PRINT_IN_DEBUG(PNP_GetDeviceRegProp
, r
);
1010 r
->out
.result
= _PNP_GetDeviceRegProp(p
, r
);
1012 if (p
->rng_fault_state
) {
1014 /* Return true here, srv_pipe_hnd.c will take care */
1018 if (DEBUGLEVEL
>= 10) {
1019 NDR_PRINT_OUT_DEBUG(PNP_GetDeviceRegProp
, r
);
1022 push
= ndr_push_init_ctx(r
);
1028 ndr_err
= call
->ndr_push(push
, NDR_OUT
, r
);
1029 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
1034 blob
= ndr_push_blob(push
);
1035 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32_t)blob
.length
)) {
1045 static bool api_PNP_SetDeviceRegProp(pipes_struct
*p
)
1047 const struct ndr_interface_call
*call
;
1048 struct ndr_pull
*pull
;
1049 struct ndr_push
*push
;
1050 enum ndr_err_code ndr_err
;
1052 struct PNP_SetDeviceRegProp
*r
;
1054 call
= &ndr_table_ntsvcs
.calls
[NDR_PNP_SETDEVICEREGPROP
];
1056 r
= talloc(talloc_tos(), struct PNP_SetDeviceRegProp
);
1061 if (!prs_data_blob(&p
->in_data
.data
, &blob
, r
)) {
1066 pull
= ndr_pull_init_blob(&blob
, r
);
1072 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
1073 ndr_err
= call
->ndr_pull(pull
, NDR_IN
, r
);
1074 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
1079 if (DEBUGLEVEL
>= 10) {
1080 NDR_PRINT_IN_DEBUG(PNP_SetDeviceRegProp
, r
);
1083 r
->out
.result
= _PNP_SetDeviceRegProp(p
, r
);
1085 if (p
->rng_fault_state
) {
1087 /* Return true here, srv_pipe_hnd.c will take care */
1091 if (DEBUGLEVEL
>= 10) {
1092 NDR_PRINT_OUT_DEBUG(PNP_SetDeviceRegProp
, r
);
1095 push
= ndr_push_init_ctx(r
);
1101 ndr_err
= call
->ndr_push(push
, NDR_OUT
, r
);
1102 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
1107 blob
= ndr_push_blob(push
);
1108 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32_t)blob
.length
)) {
1118 static bool api_PNP_GetClassInstance(pipes_struct
*p
)
1120 const struct ndr_interface_call
*call
;
1121 struct ndr_pull
*pull
;
1122 struct ndr_push
*push
;
1123 enum ndr_err_code ndr_err
;
1125 struct PNP_GetClassInstance
*r
;
1127 call
= &ndr_table_ntsvcs
.calls
[NDR_PNP_GETCLASSINSTANCE
];
1129 r
= talloc(talloc_tos(), struct PNP_GetClassInstance
);
1134 if (!prs_data_blob(&p
->in_data
.data
, &blob
, r
)) {
1139 pull
= ndr_pull_init_blob(&blob
, r
);
1145 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
1146 ndr_err
= call
->ndr_pull(pull
, NDR_IN
, r
);
1147 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
1152 if (DEBUGLEVEL
>= 10) {
1153 NDR_PRINT_IN_DEBUG(PNP_GetClassInstance
, r
);
1156 r
->out
.result
= _PNP_GetClassInstance(p
, r
);
1158 if (p
->rng_fault_state
) {
1160 /* Return true here, srv_pipe_hnd.c will take care */
1164 if (DEBUGLEVEL
>= 10) {
1165 NDR_PRINT_OUT_DEBUG(PNP_GetClassInstance
, r
);
1168 push
= ndr_push_init_ctx(r
);
1174 ndr_err
= call
->ndr_push(push
, NDR_OUT
, r
);
1175 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
1180 blob
= ndr_push_blob(push
);
1181 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32_t)blob
.length
)) {
1191 static bool api_PNP_CreateKey(pipes_struct
*p
)
1193 const struct ndr_interface_call
*call
;
1194 struct ndr_pull
*pull
;
1195 struct ndr_push
*push
;
1196 enum ndr_err_code ndr_err
;
1198 struct PNP_CreateKey
*r
;
1200 call
= &ndr_table_ntsvcs
.calls
[NDR_PNP_CREATEKEY
];
1202 r
= talloc(talloc_tos(), struct PNP_CreateKey
);
1207 if (!prs_data_blob(&p
->in_data
.data
, &blob
, r
)) {
1212 pull
= ndr_pull_init_blob(&blob
, r
);
1218 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
1219 ndr_err
= call
->ndr_pull(pull
, NDR_IN
, r
);
1220 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
1225 if (DEBUGLEVEL
>= 10) {
1226 NDR_PRINT_IN_DEBUG(PNP_CreateKey
, r
);
1229 r
->out
.result
= _PNP_CreateKey(p
, r
);
1231 if (p
->rng_fault_state
) {
1233 /* Return true here, srv_pipe_hnd.c will take care */
1237 if (DEBUGLEVEL
>= 10) {
1238 NDR_PRINT_OUT_DEBUG(PNP_CreateKey
, r
);
1241 push
= ndr_push_init_ctx(r
);
1247 ndr_err
= call
->ndr_push(push
, NDR_OUT
, r
);
1248 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
1253 blob
= ndr_push_blob(push
);
1254 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32_t)blob
.length
)) {
1264 static bool api_PNP_DeleteRegistryKey(pipes_struct
*p
)
1266 const struct ndr_interface_call
*call
;
1267 struct ndr_pull
*pull
;
1268 struct ndr_push
*push
;
1269 enum ndr_err_code ndr_err
;
1271 struct PNP_DeleteRegistryKey
*r
;
1273 call
= &ndr_table_ntsvcs
.calls
[NDR_PNP_DELETEREGISTRYKEY
];
1275 r
= talloc(talloc_tos(), struct PNP_DeleteRegistryKey
);
1280 if (!prs_data_blob(&p
->in_data
.data
, &blob
, r
)) {
1285 pull
= ndr_pull_init_blob(&blob
, r
);
1291 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
1292 ndr_err
= call
->ndr_pull(pull
, NDR_IN
, r
);
1293 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
1298 if (DEBUGLEVEL
>= 10) {
1299 NDR_PRINT_IN_DEBUG(PNP_DeleteRegistryKey
, r
);
1302 r
->out
.result
= _PNP_DeleteRegistryKey(p
, r
);
1304 if (p
->rng_fault_state
) {
1306 /* Return true here, srv_pipe_hnd.c will take care */
1310 if (DEBUGLEVEL
>= 10) {
1311 NDR_PRINT_OUT_DEBUG(PNP_DeleteRegistryKey
, r
);
1314 push
= ndr_push_init_ctx(r
);
1320 ndr_err
= call
->ndr_push(push
, NDR_OUT
, r
);
1321 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
1326 blob
= ndr_push_blob(push
);
1327 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32_t)blob
.length
)) {
1337 static bool api_PNP_GetClassCount(pipes_struct
*p
)
1339 const struct ndr_interface_call
*call
;
1340 struct ndr_pull
*pull
;
1341 struct ndr_push
*push
;
1342 enum ndr_err_code ndr_err
;
1344 struct PNP_GetClassCount
*r
;
1346 call
= &ndr_table_ntsvcs
.calls
[NDR_PNP_GETCLASSCOUNT
];
1348 r
= talloc(talloc_tos(), struct PNP_GetClassCount
);
1353 if (!prs_data_blob(&p
->in_data
.data
, &blob
, r
)) {
1358 pull
= ndr_pull_init_blob(&blob
, r
);
1364 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
1365 ndr_err
= call
->ndr_pull(pull
, NDR_IN
, r
);
1366 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
1371 if (DEBUGLEVEL
>= 10) {
1372 NDR_PRINT_IN_DEBUG(PNP_GetClassCount
, r
);
1375 r
->out
.result
= _PNP_GetClassCount(p
, r
);
1377 if (p
->rng_fault_state
) {
1379 /* Return true here, srv_pipe_hnd.c will take care */
1383 if (DEBUGLEVEL
>= 10) {
1384 NDR_PRINT_OUT_DEBUG(PNP_GetClassCount
, r
);
1387 push
= ndr_push_init_ctx(r
);
1393 ndr_err
= call
->ndr_push(push
, NDR_OUT
, r
);
1394 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
1399 blob
= ndr_push_blob(push
);
1400 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32_t)blob
.length
)) {
1410 static bool api_PNP_GetClassName(pipes_struct
*p
)
1412 const struct ndr_interface_call
*call
;
1413 struct ndr_pull
*pull
;
1414 struct ndr_push
*push
;
1415 enum ndr_err_code ndr_err
;
1417 struct PNP_GetClassName
*r
;
1419 call
= &ndr_table_ntsvcs
.calls
[NDR_PNP_GETCLASSNAME
];
1421 r
= talloc(talloc_tos(), struct PNP_GetClassName
);
1426 if (!prs_data_blob(&p
->in_data
.data
, &blob
, r
)) {
1431 pull
= ndr_pull_init_blob(&blob
, r
);
1437 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
1438 ndr_err
= call
->ndr_pull(pull
, NDR_IN
, r
);
1439 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
1444 if (DEBUGLEVEL
>= 10) {
1445 NDR_PRINT_IN_DEBUG(PNP_GetClassName
, r
);
1448 r
->out
.result
= _PNP_GetClassName(p
, r
);
1450 if (p
->rng_fault_state
) {
1452 /* Return true here, srv_pipe_hnd.c will take care */
1456 if (DEBUGLEVEL
>= 10) {
1457 NDR_PRINT_OUT_DEBUG(PNP_GetClassName
, r
);
1460 push
= ndr_push_init_ctx(r
);
1466 ndr_err
= call
->ndr_push(push
, NDR_OUT
, r
);
1467 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
1472 blob
= ndr_push_blob(push
);
1473 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32_t)blob
.length
)) {
1483 static bool api_PNP_DeleteClassKey(pipes_struct
*p
)
1485 const struct ndr_interface_call
*call
;
1486 struct ndr_pull
*pull
;
1487 struct ndr_push
*push
;
1488 enum ndr_err_code ndr_err
;
1490 struct PNP_DeleteClassKey
*r
;
1492 call
= &ndr_table_ntsvcs
.calls
[NDR_PNP_DELETECLASSKEY
];
1494 r
= talloc(talloc_tos(), struct PNP_DeleteClassKey
);
1499 if (!prs_data_blob(&p
->in_data
.data
, &blob
, r
)) {
1504 pull
= ndr_pull_init_blob(&blob
, r
);
1510 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
1511 ndr_err
= call
->ndr_pull(pull
, NDR_IN
, r
);
1512 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
1517 if (DEBUGLEVEL
>= 10) {
1518 NDR_PRINT_IN_DEBUG(PNP_DeleteClassKey
, r
);
1521 r
->out
.result
= _PNP_DeleteClassKey(p
, r
);
1523 if (p
->rng_fault_state
) {
1525 /* Return true here, srv_pipe_hnd.c will take care */
1529 if (DEBUGLEVEL
>= 10) {
1530 NDR_PRINT_OUT_DEBUG(PNP_DeleteClassKey
, r
);
1533 push
= ndr_push_init_ctx(r
);
1539 ndr_err
= call
->ndr_push(push
, NDR_OUT
, r
);
1540 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
1545 blob
= ndr_push_blob(push
);
1546 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32_t)blob
.length
)) {
1556 static bool api_PNP_GetInterfaceDeviceAlias(pipes_struct
*p
)
1558 const struct ndr_interface_call
*call
;
1559 struct ndr_pull
*pull
;
1560 struct ndr_push
*push
;
1561 enum ndr_err_code ndr_err
;
1563 struct PNP_GetInterfaceDeviceAlias
*r
;
1565 call
= &ndr_table_ntsvcs
.calls
[NDR_PNP_GETINTERFACEDEVICEALIAS
];
1567 r
= talloc(talloc_tos(), struct PNP_GetInterfaceDeviceAlias
);
1572 if (!prs_data_blob(&p
->in_data
.data
, &blob
, r
)) {
1577 pull
= ndr_pull_init_blob(&blob
, r
);
1583 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
1584 ndr_err
= call
->ndr_pull(pull
, NDR_IN
, r
);
1585 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
1590 if (DEBUGLEVEL
>= 10) {
1591 NDR_PRINT_IN_DEBUG(PNP_GetInterfaceDeviceAlias
, r
);
1594 r
->out
.result
= _PNP_GetInterfaceDeviceAlias(p
, r
);
1596 if (p
->rng_fault_state
) {
1598 /* Return true here, srv_pipe_hnd.c will take care */
1602 if (DEBUGLEVEL
>= 10) {
1603 NDR_PRINT_OUT_DEBUG(PNP_GetInterfaceDeviceAlias
, r
);
1606 push
= ndr_push_init_ctx(r
);
1612 ndr_err
= call
->ndr_push(push
, NDR_OUT
, r
);
1613 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
1618 blob
= ndr_push_blob(push
);
1619 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32_t)blob
.length
)) {
1629 static bool api_PNP_GetInterfaceDeviceList(pipes_struct
*p
)
1631 const struct ndr_interface_call
*call
;
1632 struct ndr_pull
*pull
;
1633 struct ndr_push
*push
;
1634 enum ndr_err_code ndr_err
;
1636 struct PNP_GetInterfaceDeviceList
*r
;
1638 call
= &ndr_table_ntsvcs
.calls
[NDR_PNP_GETINTERFACEDEVICELIST
];
1640 r
= talloc(talloc_tos(), struct PNP_GetInterfaceDeviceList
);
1645 if (!prs_data_blob(&p
->in_data
.data
, &blob
, r
)) {
1650 pull
= ndr_pull_init_blob(&blob
, r
);
1656 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
1657 ndr_err
= call
->ndr_pull(pull
, NDR_IN
, r
);
1658 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
1663 if (DEBUGLEVEL
>= 10) {
1664 NDR_PRINT_IN_DEBUG(PNP_GetInterfaceDeviceList
, r
);
1667 r
->out
.result
= _PNP_GetInterfaceDeviceList(p
, r
);
1669 if (p
->rng_fault_state
) {
1671 /* Return true here, srv_pipe_hnd.c will take care */
1675 if (DEBUGLEVEL
>= 10) {
1676 NDR_PRINT_OUT_DEBUG(PNP_GetInterfaceDeviceList
, r
);
1679 push
= ndr_push_init_ctx(r
);
1685 ndr_err
= call
->ndr_push(push
, NDR_OUT
, r
);
1686 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
1691 blob
= ndr_push_blob(push
);
1692 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32_t)blob
.length
)) {
1702 static bool api_PNP_GetInterfaceDeviceListSize(pipes_struct
*p
)
1704 const struct ndr_interface_call
*call
;
1705 struct ndr_pull
*pull
;
1706 struct ndr_push
*push
;
1707 enum ndr_err_code ndr_err
;
1709 struct PNP_GetInterfaceDeviceListSize
*r
;
1711 call
= &ndr_table_ntsvcs
.calls
[NDR_PNP_GETINTERFACEDEVICELISTSIZE
];
1713 r
= talloc(talloc_tos(), struct PNP_GetInterfaceDeviceListSize
);
1718 if (!prs_data_blob(&p
->in_data
.data
, &blob
, r
)) {
1723 pull
= ndr_pull_init_blob(&blob
, r
);
1729 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
1730 ndr_err
= call
->ndr_pull(pull
, NDR_IN
, r
);
1731 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
1736 if (DEBUGLEVEL
>= 10) {
1737 NDR_PRINT_IN_DEBUG(PNP_GetInterfaceDeviceListSize
, r
);
1740 r
->out
.result
= _PNP_GetInterfaceDeviceListSize(p
, r
);
1742 if (p
->rng_fault_state
) {
1744 /* Return true here, srv_pipe_hnd.c will take care */
1748 if (DEBUGLEVEL
>= 10) {
1749 NDR_PRINT_OUT_DEBUG(PNP_GetInterfaceDeviceListSize
, r
);
1752 push
= ndr_push_init_ctx(r
);
1758 ndr_err
= call
->ndr_push(push
, NDR_OUT
, r
);
1759 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
1764 blob
= ndr_push_blob(push
);
1765 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32_t)blob
.length
)) {
1775 static bool api_PNP_RegisterDeviceClassAssociation(pipes_struct
*p
)
1777 const struct ndr_interface_call
*call
;
1778 struct ndr_pull
*pull
;
1779 struct ndr_push
*push
;
1780 enum ndr_err_code ndr_err
;
1782 struct PNP_RegisterDeviceClassAssociation
*r
;
1784 call
= &ndr_table_ntsvcs
.calls
[NDR_PNP_REGISTERDEVICECLASSASSOCIATION
];
1786 r
= talloc(talloc_tos(), struct PNP_RegisterDeviceClassAssociation
);
1791 if (!prs_data_blob(&p
->in_data
.data
, &blob
, r
)) {
1796 pull
= ndr_pull_init_blob(&blob
, r
);
1802 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
1803 ndr_err
= call
->ndr_pull(pull
, NDR_IN
, r
);
1804 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
1809 if (DEBUGLEVEL
>= 10) {
1810 NDR_PRINT_IN_DEBUG(PNP_RegisterDeviceClassAssociation
, r
);
1813 r
->out
.result
= _PNP_RegisterDeviceClassAssociation(p
, r
);
1815 if (p
->rng_fault_state
) {
1817 /* Return true here, srv_pipe_hnd.c will take care */
1821 if (DEBUGLEVEL
>= 10) {
1822 NDR_PRINT_OUT_DEBUG(PNP_RegisterDeviceClassAssociation
, r
);
1825 push
= ndr_push_init_ctx(r
);
1831 ndr_err
= call
->ndr_push(push
, NDR_OUT
, r
);
1832 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
1837 blob
= ndr_push_blob(push
);
1838 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32_t)blob
.length
)) {
1848 static bool api_PNP_UnregisterDeviceClassAssociation(pipes_struct
*p
)
1850 const struct ndr_interface_call
*call
;
1851 struct ndr_pull
*pull
;
1852 struct ndr_push
*push
;
1853 enum ndr_err_code ndr_err
;
1855 struct PNP_UnregisterDeviceClassAssociation
*r
;
1857 call
= &ndr_table_ntsvcs
.calls
[NDR_PNP_UNREGISTERDEVICECLASSASSOCIATION
];
1859 r
= talloc(talloc_tos(), struct PNP_UnregisterDeviceClassAssociation
);
1864 if (!prs_data_blob(&p
->in_data
.data
, &blob
, r
)) {
1869 pull
= ndr_pull_init_blob(&blob
, r
);
1875 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
1876 ndr_err
= call
->ndr_pull(pull
, NDR_IN
, r
);
1877 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
1882 if (DEBUGLEVEL
>= 10) {
1883 NDR_PRINT_IN_DEBUG(PNP_UnregisterDeviceClassAssociation
, r
);
1886 r
->out
.result
= _PNP_UnregisterDeviceClassAssociation(p
, r
);
1888 if (p
->rng_fault_state
) {
1890 /* Return true here, srv_pipe_hnd.c will take care */
1894 if (DEBUGLEVEL
>= 10) {
1895 NDR_PRINT_OUT_DEBUG(PNP_UnregisterDeviceClassAssociation
, r
);
1898 push
= ndr_push_init_ctx(r
);
1904 ndr_err
= call
->ndr_push(push
, NDR_OUT
, r
);
1905 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
1910 blob
= ndr_push_blob(push
);
1911 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32_t)blob
.length
)) {
1921 static bool api_PNP_GetClassRegProp(pipes_struct
*p
)
1923 const struct ndr_interface_call
*call
;
1924 struct ndr_pull
*pull
;
1925 struct ndr_push
*push
;
1926 enum ndr_err_code ndr_err
;
1928 struct PNP_GetClassRegProp
*r
;
1930 call
= &ndr_table_ntsvcs
.calls
[NDR_PNP_GETCLASSREGPROP
];
1932 r
= talloc(talloc_tos(), struct PNP_GetClassRegProp
);
1937 if (!prs_data_blob(&p
->in_data
.data
, &blob
, r
)) {
1942 pull
= ndr_pull_init_blob(&blob
, r
);
1948 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
1949 ndr_err
= call
->ndr_pull(pull
, NDR_IN
, r
);
1950 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
1955 if (DEBUGLEVEL
>= 10) {
1956 NDR_PRINT_IN_DEBUG(PNP_GetClassRegProp
, r
);
1959 r
->out
.result
= _PNP_GetClassRegProp(p
, r
);
1961 if (p
->rng_fault_state
) {
1963 /* Return true here, srv_pipe_hnd.c will take care */
1967 if (DEBUGLEVEL
>= 10) {
1968 NDR_PRINT_OUT_DEBUG(PNP_GetClassRegProp
, r
);
1971 push
= ndr_push_init_ctx(r
);
1977 ndr_err
= call
->ndr_push(push
, NDR_OUT
, r
);
1978 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
1983 blob
= ndr_push_blob(push
);
1984 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32_t)blob
.length
)) {
1994 static bool api_PNP_SetClassRegProp(pipes_struct
*p
)
1996 const struct ndr_interface_call
*call
;
1997 struct ndr_pull
*pull
;
1998 struct ndr_push
*push
;
1999 enum ndr_err_code ndr_err
;
2001 struct PNP_SetClassRegProp
*r
;
2003 call
= &ndr_table_ntsvcs
.calls
[NDR_PNP_SETCLASSREGPROP
];
2005 r
= talloc(talloc_tos(), struct PNP_SetClassRegProp
);
2010 if (!prs_data_blob(&p
->in_data
.data
, &blob
, r
)) {
2015 pull
= ndr_pull_init_blob(&blob
, r
);
2021 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
2022 ndr_err
= call
->ndr_pull(pull
, NDR_IN
, r
);
2023 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
2028 if (DEBUGLEVEL
>= 10) {
2029 NDR_PRINT_IN_DEBUG(PNP_SetClassRegProp
, r
);
2032 r
->out
.result
= _PNP_SetClassRegProp(p
, r
);
2034 if (p
->rng_fault_state
) {
2036 /* Return true here, srv_pipe_hnd.c will take care */
2040 if (DEBUGLEVEL
>= 10) {
2041 NDR_PRINT_OUT_DEBUG(PNP_SetClassRegProp
, r
);
2044 push
= ndr_push_init_ctx(r
);
2050 ndr_err
= call
->ndr_push(push
, NDR_OUT
, r
);
2051 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
2056 blob
= ndr_push_blob(push
);
2057 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32_t)blob
.length
)) {
2067 static bool api_PNP_CreateDevInst(pipes_struct
*p
)
2069 const struct ndr_interface_call
*call
;
2070 struct ndr_pull
*pull
;
2071 struct ndr_push
*push
;
2072 enum ndr_err_code ndr_err
;
2074 struct PNP_CreateDevInst
*r
;
2076 call
= &ndr_table_ntsvcs
.calls
[NDR_PNP_CREATEDEVINST
];
2078 r
= talloc(talloc_tos(), struct PNP_CreateDevInst
);
2083 if (!prs_data_blob(&p
->in_data
.data
, &blob
, r
)) {
2088 pull
= ndr_pull_init_blob(&blob
, r
);
2094 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
2095 ndr_err
= call
->ndr_pull(pull
, NDR_IN
, r
);
2096 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
2101 if (DEBUGLEVEL
>= 10) {
2102 NDR_PRINT_IN_DEBUG(PNP_CreateDevInst
, r
);
2105 r
->out
.result
= _PNP_CreateDevInst(p
, r
);
2107 if (p
->rng_fault_state
) {
2109 /* Return true here, srv_pipe_hnd.c will take care */
2113 if (DEBUGLEVEL
>= 10) {
2114 NDR_PRINT_OUT_DEBUG(PNP_CreateDevInst
, r
);
2117 push
= ndr_push_init_ctx(r
);
2123 ndr_err
= call
->ndr_push(push
, NDR_OUT
, r
);
2124 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
2129 blob
= ndr_push_blob(push
);
2130 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32_t)blob
.length
)) {
2140 static bool api_PNP_DeviceInstanceAction(pipes_struct
*p
)
2142 const struct ndr_interface_call
*call
;
2143 struct ndr_pull
*pull
;
2144 struct ndr_push
*push
;
2145 enum ndr_err_code ndr_err
;
2147 struct PNP_DeviceInstanceAction
*r
;
2149 call
= &ndr_table_ntsvcs
.calls
[NDR_PNP_DEVICEINSTANCEACTION
];
2151 r
= talloc(talloc_tos(), struct PNP_DeviceInstanceAction
);
2156 if (!prs_data_blob(&p
->in_data
.data
, &blob
, r
)) {
2161 pull
= ndr_pull_init_blob(&blob
, r
);
2167 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
2168 ndr_err
= call
->ndr_pull(pull
, NDR_IN
, r
);
2169 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
2174 if (DEBUGLEVEL
>= 10) {
2175 NDR_PRINT_IN_DEBUG(PNP_DeviceInstanceAction
, r
);
2178 r
->out
.result
= _PNP_DeviceInstanceAction(p
, r
);
2180 if (p
->rng_fault_state
) {
2182 /* Return true here, srv_pipe_hnd.c will take care */
2186 if (DEBUGLEVEL
>= 10) {
2187 NDR_PRINT_OUT_DEBUG(PNP_DeviceInstanceAction
, r
);
2190 push
= ndr_push_init_ctx(r
);
2196 ndr_err
= call
->ndr_push(push
, NDR_OUT
, r
);
2197 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
2202 blob
= ndr_push_blob(push
);
2203 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32_t)blob
.length
)) {
2213 static bool api_PNP_GetDeviceStatus(pipes_struct
*p
)
2215 const struct ndr_interface_call
*call
;
2216 struct ndr_pull
*pull
;
2217 struct ndr_push
*push
;
2218 enum ndr_err_code ndr_err
;
2220 struct PNP_GetDeviceStatus
*r
;
2222 call
= &ndr_table_ntsvcs
.calls
[NDR_PNP_GETDEVICESTATUS
];
2224 r
= talloc(talloc_tos(), struct PNP_GetDeviceStatus
);
2229 if (!prs_data_blob(&p
->in_data
.data
, &blob
, r
)) {
2234 pull
= ndr_pull_init_blob(&blob
, r
);
2240 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
2241 ndr_err
= call
->ndr_pull(pull
, NDR_IN
, r
);
2242 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
2247 if (DEBUGLEVEL
>= 10) {
2248 NDR_PRINT_IN_DEBUG(PNP_GetDeviceStatus
, r
);
2251 r
->out
.result
= _PNP_GetDeviceStatus(p
, r
);
2253 if (p
->rng_fault_state
) {
2255 /* Return true here, srv_pipe_hnd.c will take care */
2259 if (DEBUGLEVEL
>= 10) {
2260 NDR_PRINT_OUT_DEBUG(PNP_GetDeviceStatus
, r
);
2263 push
= ndr_push_init_ctx(r
);
2269 ndr_err
= call
->ndr_push(push
, NDR_OUT
, r
);
2270 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
2275 blob
= ndr_push_blob(push
);
2276 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32_t)blob
.length
)) {
2286 static bool api_PNP_SetDeviceProblem(pipes_struct
*p
)
2288 const struct ndr_interface_call
*call
;
2289 struct ndr_pull
*pull
;
2290 struct ndr_push
*push
;
2291 enum ndr_err_code ndr_err
;
2293 struct PNP_SetDeviceProblem
*r
;
2295 call
= &ndr_table_ntsvcs
.calls
[NDR_PNP_SETDEVICEPROBLEM
];
2297 r
= talloc(talloc_tos(), struct PNP_SetDeviceProblem
);
2302 if (!prs_data_blob(&p
->in_data
.data
, &blob
, r
)) {
2307 pull
= ndr_pull_init_blob(&blob
, r
);
2313 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
2314 ndr_err
= call
->ndr_pull(pull
, NDR_IN
, r
);
2315 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
2320 if (DEBUGLEVEL
>= 10) {
2321 NDR_PRINT_IN_DEBUG(PNP_SetDeviceProblem
, r
);
2324 r
->out
.result
= _PNP_SetDeviceProblem(p
, r
);
2326 if (p
->rng_fault_state
) {
2328 /* Return true here, srv_pipe_hnd.c will take care */
2332 if (DEBUGLEVEL
>= 10) {
2333 NDR_PRINT_OUT_DEBUG(PNP_SetDeviceProblem
, r
);
2336 push
= ndr_push_init_ctx(r
);
2342 ndr_err
= call
->ndr_push(push
, NDR_OUT
, r
);
2343 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
2348 blob
= ndr_push_blob(push
);
2349 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32_t)blob
.length
)) {
2359 static bool api_PNP_DisableDevInst(pipes_struct
*p
)
2361 const struct ndr_interface_call
*call
;
2362 struct ndr_pull
*pull
;
2363 struct ndr_push
*push
;
2364 enum ndr_err_code ndr_err
;
2366 struct PNP_DisableDevInst
*r
;
2368 call
= &ndr_table_ntsvcs
.calls
[NDR_PNP_DISABLEDEVINST
];
2370 r
= talloc(talloc_tos(), struct PNP_DisableDevInst
);
2375 if (!prs_data_blob(&p
->in_data
.data
, &blob
, r
)) {
2380 pull
= ndr_pull_init_blob(&blob
, r
);
2386 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
2387 ndr_err
= call
->ndr_pull(pull
, NDR_IN
, r
);
2388 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
2393 if (DEBUGLEVEL
>= 10) {
2394 NDR_PRINT_IN_DEBUG(PNP_DisableDevInst
, r
);
2397 r
->out
.result
= _PNP_DisableDevInst(p
, r
);
2399 if (p
->rng_fault_state
) {
2401 /* Return true here, srv_pipe_hnd.c will take care */
2405 if (DEBUGLEVEL
>= 10) {
2406 NDR_PRINT_OUT_DEBUG(PNP_DisableDevInst
, r
);
2409 push
= ndr_push_init_ctx(r
);
2415 ndr_err
= call
->ndr_push(push
, NDR_OUT
, r
);
2416 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
2421 blob
= ndr_push_blob(push
);
2422 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32_t)blob
.length
)) {
2432 static bool api_PNP_UninstallDevInst(pipes_struct
*p
)
2434 const struct ndr_interface_call
*call
;
2435 struct ndr_pull
*pull
;
2436 struct ndr_push
*push
;
2437 enum ndr_err_code ndr_err
;
2439 struct PNP_UninstallDevInst
*r
;
2441 call
= &ndr_table_ntsvcs
.calls
[NDR_PNP_UNINSTALLDEVINST
];
2443 r
= talloc(talloc_tos(), struct PNP_UninstallDevInst
);
2448 if (!prs_data_blob(&p
->in_data
.data
, &blob
, r
)) {
2453 pull
= ndr_pull_init_blob(&blob
, r
);
2459 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
2460 ndr_err
= call
->ndr_pull(pull
, NDR_IN
, r
);
2461 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
2466 if (DEBUGLEVEL
>= 10) {
2467 NDR_PRINT_IN_DEBUG(PNP_UninstallDevInst
, r
);
2470 r
->out
.result
= _PNP_UninstallDevInst(p
, r
);
2472 if (p
->rng_fault_state
) {
2474 /* Return true here, srv_pipe_hnd.c will take care */
2478 if (DEBUGLEVEL
>= 10) {
2479 NDR_PRINT_OUT_DEBUG(PNP_UninstallDevInst
, r
);
2482 push
= ndr_push_init_ctx(r
);
2488 ndr_err
= call
->ndr_push(push
, NDR_OUT
, r
);
2489 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
2494 blob
= ndr_push_blob(push
);
2495 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32_t)blob
.length
)) {
2505 static bool api_PNP_AddID(pipes_struct
*p
)
2507 const struct ndr_interface_call
*call
;
2508 struct ndr_pull
*pull
;
2509 struct ndr_push
*push
;
2510 enum ndr_err_code ndr_err
;
2512 struct PNP_AddID
*r
;
2514 call
= &ndr_table_ntsvcs
.calls
[NDR_PNP_ADDID
];
2516 r
= talloc(talloc_tos(), struct PNP_AddID
);
2521 if (!prs_data_blob(&p
->in_data
.data
, &blob
, r
)) {
2526 pull
= ndr_pull_init_blob(&blob
, r
);
2532 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
2533 ndr_err
= call
->ndr_pull(pull
, NDR_IN
, r
);
2534 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
2539 if (DEBUGLEVEL
>= 10) {
2540 NDR_PRINT_IN_DEBUG(PNP_AddID
, r
);
2543 r
->out
.result
= _PNP_AddID(p
, r
);
2545 if (p
->rng_fault_state
) {
2547 /* Return true here, srv_pipe_hnd.c will take care */
2551 if (DEBUGLEVEL
>= 10) {
2552 NDR_PRINT_OUT_DEBUG(PNP_AddID
, r
);
2555 push
= ndr_push_init_ctx(r
);
2561 ndr_err
= call
->ndr_push(push
, NDR_OUT
, r
);
2562 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
2567 blob
= ndr_push_blob(push
);
2568 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32_t)blob
.length
)) {
2578 static bool api_PNP_RegisterDriver(pipes_struct
*p
)
2580 const struct ndr_interface_call
*call
;
2581 struct ndr_pull
*pull
;
2582 struct ndr_push
*push
;
2583 enum ndr_err_code ndr_err
;
2585 struct PNP_RegisterDriver
*r
;
2587 call
= &ndr_table_ntsvcs
.calls
[NDR_PNP_REGISTERDRIVER
];
2589 r
= talloc(talloc_tos(), struct PNP_RegisterDriver
);
2594 if (!prs_data_blob(&p
->in_data
.data
, &blob
, r
)) {
2599 pull
= ndr_pull_init_blob(&blob
, r
);
2605 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
2606 ndr_err
= call
->ndr_pull(pull
, NDR_IN
, r
);
2607 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
2612 if (DEBUGLEVEL
>= 10) {
2613 NDR_PRINT_IN_DEBUG(PNP_RegisterDriver
, r
);
2616 r
->out
.result
= _PNP_RegisterDriver(p
, r
);
2618 if (p
->rng_fault_state
) {
2620 /* Return true here, srv_pipe_hnd.c will take care */
2624 if (DEBUGLEVEL
>= 10) {
2625 NDR_PRINT_OUT_DEBUG(PNP_RegisterDriver
, r
);
2628 push
= ndr_push_init_ctx(r
);
2634 ndr_err
= call
->ndr_push(push
, NDR_OUT
, r
);
2635 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
2640 blob
= ndr_push_blob(push
);
2641 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32_t)blob
.length
)) {
2651 static bool api_PNP_QueryRemove(pipes_struct
*p
)
2653 const struct ndr_interface_call
*call
;
2654 struct ndr_pull
*pull
;
2655 struct ndr_push
*push
;
2656 enum ndr_err_code ndr_err
;
2658 struct PNP_QueryRemove
*r
;
2660 call
= &ndr_table_ntsvcs
.calls
[NDR_PNP_QUERYREMOVE
];
2662 r
= talloc(talloc_tos(), struct PNP_QueryRemove
);
2667 if (!prs_data_blob(&p
->in_data
.data
, &blob
, r
)) {
2672 pull
= ndr_pull_init_blob(&blob
, r
);
2678 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
2679 ndr_err
= call
->ndr_pull(pull
, NDR_IN
, r
);
2680 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
2685 if (DEBUGLEVEL
>= 10) {
2686 NDR_PRINT_IN_DEBUG(PNP_QueryRemove
, r
);
2689 r
->out
.result
= _PNP_QueryRemove(p
, r
);
2691 if (p
->rng_fault_state
) {
2693 /* Return true here, srv_pipe_hnd.c will take care */
2697 if (DEBUGLEVEL
>= 10) {
2698 NDR_PRINT_OUT_DEBUG(PNP_QueryRemove
, r
);
2701 push
= ndr_push_init_ctx(r
);
2707 ndr_err
= call
->ndr_push(push
, NDR_OUT
, r
);
2708 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
2713 blob
= ndr_push_blob(push
);
2714 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32_t)blob
.length
)) {
2724 static bool api_PNP_RequestDeviceEject(pipes_struct
*p
)
2726 const struct ndr_interface_call
*call
;
2727 struct ndr_pull
*pull
;
2728 struct ndr_push
*push
;
2729 enum ndr_err_code ndr_err
;
2731 struct PNP_RequestDeviceEject
*r
;
2733 call
= &ndr_table_ntsvcs
.calls
[NDR_PNP_REQUESTDEVICEEJECT
];
2735 r
= talloc(talloc_tos(), struct PNP_RequestDeviceEject
);
2740 if (!prs_data_blob(&p
->in_data
.data
, &blob
, r
)) {
2745 pull
= ndr_pull_init_blob(&blob
, r
);
2751 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
2752 ndr_err
= call
->ndr_pull(pull
, NDR_IN
, r
);
2753 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
2758 if (DEBUGLEVEL
>= 10) {
2759 NDR_PRINT_IN_DEBUG(PNP_RequestDeviceEject
, r
);
2762 r
->out
.result
= _PNP_RequestDeviceEject(p
, r
);
2764 if (p
->rng_fault_state
) {
2766 /* Return true here, srv_pipe_hnd.c will take care */
2770 if (DEBUGLEVEL
>= 10) {
2771 NDR_PRINT_OUT_DEBUG(PNP_RequestDeviceEject
, r
);
2774 push
= ndr_push_init_ctx(r
);
2780 ndr_err
= call
->ndr_push(push
, NDR_OUT
, r
);
2781 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
2786 blob
= ndr_push_blob(push
);
2787 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32_t)blob
.length
)) {
2797 static bool api_PNP_IsDockStationPresent(pipes_struct
*p
)
2799 const struct ndr_interface_call
*call
;
2800 struct ndr_pull
*pull
;
2801 struct ndr_push
*push
;
2802 enum ndr_err_code ndr_err
;
2804 struct PNP_IsDockStationPresent
*r
;
2806 call
= &ndr_table_ntsvcs
.calls
[NDR_PNP_ISDOCKSTATIONPRESENT
];
2808 r
= talloc(talloc_tos(), struct PNP_IsDockStationPresent
);
2813 if (!prs_data_blob(&p
->in_data
.data
, &blob
, r
)) {
2818 pull
= ndr_pull_init_blob(&blob
, r
);
2824 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
2825 ndr_err
= call
->ndr_pull(pull
, NDR_IN
, r
);
2826 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
2831 if (DEBUGLEVEL
>= 10) {
2832 NDR_PRINT_IN_DEBUG(PNP_IsDockStationPresent
, r
);
2835 r
->out
.result
= _PNP_IsDockStationPresent(p
, r
);
2837 if (p
->rng_fault_state
) {
2839 /* Return true here, srv_pipe_hnd.c will take care */
2843 if (DEBUGLEVEL
>= 10) {
2844 NDR_PRINT_OUT_DEBUG(PNP_IsDockStationPresent
, r
);
2847 push
= ndr_push_init_ctx(r
);
2853 ndr_err
= call
->ndr_push(push
, NDR_OUT
, r
);
2854 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
2859 blob
= ndr_push_blob(push
);
2860 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32_t)blob
.length
)) {
2870 static bool api_PNP_RequestEjectPC(pipes_struct
*p
)
2872 const struct ndr_interface_call
*call
;
2873 struct ndr_pull
*pull
;
2874 struct ndr_push
*push
;
2875 enum ndr_err_code ndr_err
;
2877 struct PNP_RequestEjectPC
*r
;
2879 call
= &ndr_table_ntsvcs
.calls
[NDR_PNP_REQUESTEJECTPC
];
2881 r
= talloc(talloc_tos(), struct PNP_RequestEjectPC
);
2886 if (!prs_data_blob(&p
->in_data
.data
, &blob
, r
)) {
2891 pull
= ndr_pull_init_blob(&blob
, r
);
2897 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
2898 ndr_err
= call
->ndr_pull(pull
, NDR_IN
, r
);
2899 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
2904 if (DEBUGLEVEL
>= 10) {
2905 NDR_PRINT_IN_DEBUG(PNP_RequestEjectPC
, r
);
2908 r
->out
.result
= _PNP_RequestEjectPC(p
, r
);
2910 if (p
->rng_fault_state
) {
2912 /* Return true here, srv_pipe_hnd.c will take care */
2916 if (DEBUGLEVEL
>= 10) {
2917 NDR_PRINT_OUT_DEBUG(PNP_RequestEjectPC
, r
);
2920 push
= ndr_push_init_ctx(r
);
2926 ndr_err
= call
->ndr_push(push
, NDR_OUT
, r
);
2927 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
2932 blob
= ndr_push_blob(push
);
2933 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32_t)blob
.length
)) {
2943 static bool api_PNP_HwProfFlags(pipes_struct
*p
)
2945 const struct ndr_interface_call
*call
;
2946 struct ndr_pull
*pull
;
2947 struct ndr_push
*push
;
2948 enum ndr_err_code ndr_err
;
2950 struct PNP_HwProfFlags
*r
;
2952 call
= &ndr_table_ntsvcs
.calls
[NDR_PNP_HWPROFFLAGS
];
2954 r
= talloc(talloc_tos(), struct PNP_HwProfFlags
);
2959 if (!prs_data_blob(&p
->in_data
.data
, &blob
, r
)) {
2964 pull
= ndr_pull_init_blob(&blob
, r
);
2970 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
2971 ndr_err
= call
->ndr_pull(pull
, NDR_IN
, r
);
2972 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
2977 if (DEBUGLEVEL
>= 10) {
2978 NDR_PRINT_IN_DEBUG(PNP_HwProfFlags
, r
);
2981 ZERO_STRUCT(r
->out
);
2982 r
->out
.unknown3
= r
->in
.unknown3
;
2983 r
->out
.unknown4
= r
->in
.unknown4
;
2984 r
->out
.unknown5a
= talloc_zero(r
, const char *);
2985 if (r
->out
.unknown5a
== NULL
) {
2990 r
->out
.result
= _PNP_HwProfFlags(p
, r
);
2992 if (p
->rng_fault_state
) {
2994 /* Return true here, srv_pipe_hnd.c will take care */
2998 if (DEBUGLEVEL
>= 10) {
2999 NDR_PRINT_OUT_DEBUG(PNP_HwProfFlags
, r
);
3002 push
= ndr_push_init_ctx(r
);
3008 ndr_err
= call
->ndr_push(push
, NDR_OUT
, r
);
3009 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
3014 blob
= ndr_push_blob(push
);
3015 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32_t)blob
.length
)) {
3025 static bool api_PNP_GetHwProfInfo(pipes_struct
*p
)
3027 const struct ndr_interface_call
*call
;
3028 struct ndr_pull
*pull
;
3029 struct ndr_push
*push
;
3030 enum ndr_err_code ndr_err
;
3032 struct PNP_GetHwProfInfo
*r
;
3034 call
= &ndr_table_ntsvcs
.calls
[NDR_PNP_GETHWPROFINFO
];
3036 r
= talloc(talloc_tos(), struct PNP_GetHwProfInfo
);
3041 if (!prs_data_blob(&p
->in_data
.data
, &blob
, r
)) {
3046 pull
= ndr_pull_init_blob(&blob
, r
);
3052 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
3053 ndr_err
= call
->ndr_pull(pull
, NDR_IN
, r
);
3054 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
3059 if (DEBUGLEVEL
>= 10) {
3060 NDR_PRINT_IN_DEBUG(PNP_GetHwProfInfo
, r
);
3063 ZERO_STRUCT(r
->out
);
3064 r
->out
.info
= r
->in
.info
;
3065 r
->out
.result
= _PNP_GetHwProfInfo(p
, r
);
3067 if (p
->rng_fault_state
) {
3069 /* Return true here, srv_pipe_hnd.c will take care */
3073 if (DEBUGLEVEL
>= 10) {
3074 NDR_PRINT_OUT_DEBUG(PNP_GetHwProfInfo
, r
);
3077 push
= ndr_push_init_ctx(r
);
3083 ndr_err
= call
->ndr_push(push
, NDR_OUT
, r
);
3084 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
3089 blob
= ndr_push_blob(push
);
3090 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32_t)blob
.length
)) {
3100 static bool api_PNP_AddEmptyLogConf(pipes_struct
*p
)
3102 const struct ndr_interface_call
*call
;
3103 struct ndr_pull
*pull
;
3104 struct ndr_push
*push
;
3105 enum ndr_err_code ndr_err
;
3107 struct PNP_AddEmptyLogConf
*r
;
3109 call
= &ndr_table_ntsvcs
.calls
[NDR_PNP_ADDEMPTYLOGCONF
];
3111 r
= talloc(talloc_tos(), struct PNP_AddEmptyLogConf
);
3116 if (!prs_data_blob(&p
->in_data
.data
, &blob
, r
)) {
3121 pull
= ndr_pull_init_blob(&blob
, r
);
3127 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
3128 ndr_err
= call
->ndr_pull(pull
, NDR_IN
, r
);
3129 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
3134 if (DEBUGLEVEL
>= 10) {
3135 NDR_PRINT_IN_DEBUG(PNP_AddEmptyLogConf
, r
);
3138 r
->out
.result
= _PNP_AddEmptyLogConf(p
, r
);
3140 if (p
->rng_fault_state
) {
3142 /* Return true here, srv_pipe_hnd.c will take care */
3146 if (DEBUGLEVEL
>= 10) {
3147 NDR_PRINT_OUT_DEBUG(PNP_AddEmptyLogConf
, r
);
3150 push
= ndr_push_init_ctx(r
);
3156 ndr_err
= call
->ndr_push(push
, NDR_OUT
, r
);
3157 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
3162 blob
= ndr_push_blob(push
);
3163 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32_t)blob
.length
)) {
3173 static bool api_PNP_FreeLogConf(pipes_struct
*p
)
3175 const struct ndr_interface_call
*call
;
3176 struct ndr_pull
*pull
;
3177 struct ndr_push
*push
;
3178 enum ndr_err_code ndr_err
;
3180 struct PNP_FreeLogConf
*r
;
3182 call
= &ndr_table_ntsvcs
.calls
[NDR_PNP_FREELOGCONF
];
3184 r
= talloc(talloc_tos(), struct PNP_FreeLogConf
);
3189 if (!prs_data_blob(&p
->in_data
.data
, &blob
, r
)) {
3194 pull
= ndr_pull_init_blob(&blob
, r
);
3200 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
3201 ndr_err
= call
->ndr_pull(pull
, NDR_IN
, r
);
3202 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
3207 if (DEBUGLEVEL
>= 10) {
3208 NDR_PRINT_IN_DEBUG(PNP_FreeLogConf
, r
);
3211 r
->out
.result
= _PNP_FreeLogConf(p
, r
);
3213 if (p
->rng_fault_state
) {
3215 /* Return true here, srv_pipe_hnd.c will take care */
3219 if (DEBUGLEVEL
>= 10) {
3220 NDR_PRINT_OUT_DEBUG(PNP_FreeLogConf
, r
);
3223 push
= ndr_push_init_ctx(r
);
3229 ndr_err
= call
->ndr_push(push
, NDR_OUT
, r
);
3230 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
3235 blob
= ndr_push_blob(push
);
3236 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32_t)blob
.length
)) {
3246 static bool api_PNP_GetFirstLogConf(pipes_struct
*p
)
3248 const struct ndr_interface_call
*call
;
3249 struct ndr_pull
*pull
;
3250 struct ndr_push
*push
;
3251 enum ndr_err_code ndr_err
;
3253 struct PNP_GetFirstLogConf
*r
;
3255 call
= &ndr_table_ntsvcs
.calls
[NDR_PNP_GETFIRSTLOGCONF
];
3257 r
= talloc(talloc_tos(), struct PNP_GetFirstLogConf
);
3262 if (!prs_data_blob(&p
->in_data
.data
, &blob
, r
)) {
3267 pull
= ndr_pull_init_blob(&blob
, r
);
3273 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
3274 ndr_err
= call
->ndr_pull(pull
, NDR_IN
, r
);
3275 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
3280 if (DEBUGLEVEL
>= 10) {
3281 NDR_PRINT_IN_DEBUG(PNP_GetFirstLogConf
, r
);
3284 r
->out
.result
= _PNP_GetFirstLogConf(p
, r
);
3286 if (p
->rng_fault_state
) {
3288 /* Return true here, srv_pipe_hnd.c will take care */
3292 if (DEBUGLEVEL
>= 10) {
3293 NDR_PRINT_OUT_DEBUG(PNP_GetFirstLogConf
, r
);
3296 push
= ndr_push_init_ctx(r
);
3302 ndr_err
= call
->ndr_push(push
, NDR_OUT
, r
);
3303 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
3308 blob
= ndr_push_blob(push
);
3309 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32_t)blob
.length
)) {
3319 static bool api_PNP_GetNextLogConf(pipes_struct
*p
)
3321 const struct ndr_interface_call
*call
;
3322 struct ndr_pull
*pull
;
3323 struct ndr_push
*push
;
3324 enum ndr_err_code ndr_err
;
3326 struct PNP_GetNextLogConf
*r
;
3328 call
= &ndr_table_ntsvcs
.calls
[NDR_PNP_GETNEXTLOGCONF
];
3330 r
= talloc(talloc_tos(), struct PNP_GetNextLogConf
);
3335 if (!prs_data_blob(&p
->in_data
.data
, &blob
, r
)) {
3340 pull
= ndr_pull_init_blob(&blob
, r
);
3346 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
3347 ndr_err
= call
->ndr_pull(pull
, NDR_IN
, r
);
3348 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
3353 if (DEBUGLEVEL
>= 10) {
3354 NDR_PRINT_IN_DEBUG(PNP_GetNextLogConf
, r
);
3357 r
->out
.result
= _PNP_GetNextLogConf(p
, r
);
3359 if (p
->rng_fault_state
) {
3361 /* Return true here, srv_pipe_hnd.c will take care */
3365 if (DEBUGLEVEL
>= 10) {
3366 NDR_PRINT_OUT_DEBUG(PNP_GetNextLogConf
, r
);
3369 push
= ndr_push_init_ctx(r
);
3375 ndr_err
= call
->ndr_push(push
, NDR_OUT
, r
);
3376 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
3381 blob
= ndr_push_blob(push
);
3382 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32_t)blob
.length
)) {
3392 static bool api_PNP_GetLogConfPriority(pipes_struct
*p
)
3394 const struct ndr_interface_call
*call
;
3395 struct ndr_pull
*pull
;
3396 struct ndr_push
*push
;
3397 enum ndr_err_code ndr_err
;
3399 struct PNP_GetLogConfPriority
*r
;
3401 call
= &ndr_table_ntsvcs
.calls
[NDR_PNP_GETLOGCONFPRIORITY
];
3403 r
= talloc(talloc_tos(), struct PNP_GetLogConfPriority
);
3408 if (!prs_data_blob(&p
->in_data
.data
, &blob
, r
)) {
3413 pull
= ndr_pull_init_blob(&blob
, r
);
3419 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
3420 ndr_err
= call
->ndr_pull(pull
, NDR_IN
, r
);
3421 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
3426 if (DEBUGLEVEL
>= 10) {
3427 NDR_PRINT_IN_DEBUG(PNP_GetLogConfPriority
, r
);
3430 r
->out
.result
= _PNP_GetLogConfPriority(p
, r
);
3432 if (p
->rng_fault_state
) {
3434 /* Return true here, srv_pipe_hnd.c will take care */
3438 if (DEBUGLEVEL
>= 10) {
3439 NDR_PRINT_OUT_DEBUG(PNP_GetLogConfPriority
, r
);
3442 push
= ndr_push_init_ctx(r
);
3448 ndr_err
= call
->ndr_push(push
, NDR_OUT
, r
);
3449 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
3454 blob
= ndr_push_blob(push
);
3455 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32_t)blob
.length
)) {
3465 static bool api_PNP_AddResDes(pipes_struct
*p
)
3467 const struct ndr_interface_call
*call
;
3468 struct ndr_pull
*pull
;
3469 struct ndr_push
*push
;
3470 enum ndr_err_code ndr_err
;
3472 struct PNP_AddResDes
*r
;
3474 call
= &ndr_table_ntsvcs
.calls
[NDR_PNP_ADDRESDES
];
3476 r
= talloc(talloc_tos(), struct PNP_AddResDes
);
3481 if (!prs_data_blob(&p
->in_data
.data
, &blob
, r
)) {
3486 pull
= ndr_pull_init_blob(&blob
, r
);
3492 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
3493 ndr_err
= call
->ndr_pull(pull
, NDR_IN
, r
);
3494 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
3499 if (DEBUGLEVEL
>= 10) {
3500 NDR_PRINT_IN_DEBUG(PNP_AddResDes
, r
);
3503 r
->out
.result
= _PNP_AddResDes(p
, r
);
3505 if (p
->rng_fault_state
) {
3507 /* Return true here, srv_pipe_hnd.c will take care */
3511 if (DEBUGLEVEL
>= 10) {
3512 NDR_PRINT_OUT_DEBUG(PNP_AddResDes
, r
);
3515 push
= ndr_push_init_ctx(r
);
3521 ndr_err
= call
->ndr_push(push
, NDR_OUT
, r
);
3522 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
3527 blob
= ndr_push_blob(push
);
3528 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32_t)blob
.length
)) {
3538 static bool api_PNP_FreeResDes(pipes_struct
*p
)
3540 const struct ndr_interface_call
*call
;
3541 struct ndr_pull
*pull
;
3542 struct ndr_push
*push
;
3543 enum ndr_err_code ndr_err
;
3545 struct PNP_FreeResDes
*r
;
3547 call
= &ndr_table_ntsvcs
.calls
[NDR_PNP_FREERESDES
];
3549 r
= talloc(talloc_tos(), struct PNP_FreeResDes
);
3554 if (!prs_data_blob(&p
->in_data
.data
, &blob
, r
)) {
3559 pull
= ndr_pull_init_blob(&blob
, r
);
3565 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
3566 ndr_err
= call
->ndr_pull(pull
, NDR_IN
, r
);
3567 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
3572 if (DEBUGLEVEL
>= 10) {
3573 NDR_PRINT_IN_DEBUG(PNP_FreeResDes
, r
);
3576 r
->out
.result
= _PNP_FreeResDes(p
, r
);
3578 if (p
->rng_fault_state
) {
3580 /* Return true here, srv_pipe_hnd.c will take care */
3584 if (DEBUGLEVEL
>= 10) {
3585 NDR_PRINT_OUT_DEBUG(PNP_FreeResDes
, r
);
3588 push
= ndr_push_init_ctx(r
);
3594 ndr_err
= call
->ndr_push(push
, NDR_OUT
, r
);
3595 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
3600 blob
= ndr_push_blob(push
);
3601 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32_t)blob
.length
)) {
3611 static bool api_PNP_GetNextResDes(pipes_struct
*p
)
3613 const struct ndr_interface_call
*call
;
3614 struct ndr_pull
*pull
;
3615 struct ndr_push
*push
;
3616 enum ndr_err_code ndr_err
;
3618 struct PNP_GetNextResDes
*r
;
3620 call
= &ndr_table_ntsvcs
.calls
[NDR_PNP_GETNEXTRESDES
];
3622 r
= talloc(talloc_tos(), struct PNP_GetNextResDes
);
3627 if (!prs_data_blob(&p
->in_data
.data
, &blob
, r
)) {
3632 pull
= ndr_pull_init_blob(&blob
, r
);
3638 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
3639 ndr_err
= call
->ndr_pull(pull
, NDR_IN
, r
);
3640 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
3645 if (DEBUGLEVEL
>= 10) {
3646 NDR_PRINT_IN_DEBUG(PNP_GetNextResDes
, r
);
3649 r
->out
.result
= _PNP_GetNextResDes(p
, r
);
3651 if (p
->rng_fault_state
) {
3653 /* Return true here, srv_pipe_hnd.c will take care */
3657 if (DEBUGLEVEL
>= 10) {
3658 NDR_PRINT_OUT_DEBUG(PNP_GetNextResDes
, r
);
3661 push
= ndr_push_init_ctx(r
);
3667 ndr_err
= call
->ndr_push(push
, NDR_OUT
, r
);
3668 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
3673 blob
= ndr_push_blob(push
);
3674 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32_t)blob
.length
)) {
3684 static bool api_PNP_GetResDesData(pipes_struct
*p
)
3686 const struct ndr_interface_call
*call
;
3687 struct ndr_pull
*pull
;
3688 struct ndr_push
*push
;
3689 enum ndr_err_code ndr_err
;
3691 struct PNP_GetResDesData
*r
;
3693 call
= &ndr_table_ntsvcs
.calls
[NDR_PNP_GETRESDESDATA
];
3695 r
= talloc(talloc_tos(), struct PNP_GetResDesData
);
3700 if (!prs_data_blob(&p
->in_data
.data
, &blob
, r
)) {
3705 pull
= ndr_pull_init_blob(&blob
, r
);
3711 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
3712 ndr_err
= call
->ndr_pull(pull
, NDR_IN
, r
);
3713 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
3718 if (DEBUGLEVEL
>= 10) {
3719 NDR_PRINT_IN_DEBUG(PNP_GetResDesData
, r
);
3722 r
->out
.result
= _PNP_GetResDesData(p
, r
);
3724 if (p
->rng_fault_state
) {
3726 /* Return true here, srv_pipe_hnd.c will take care */
3730 if (DEBUGLEVEL
>= 10) {
3731 NDR_PRINT_OUT_DEBUG(PNP_GetResDesData
, r
);
3734 push
= ndr_push_init_ctx(r
);
3740 ndr_err
= call
->ndr_push(push
, NDR_OUT
, r
);
3741 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
3746 blob
= ndr_push_blob(push
);
3747 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32_t)blob
.length
)) {
3757 static bool api_PNP_GetResDesDataSize(pipes_struct
*p
)
3759 const struct ndr_interface_call
*call
;
3760 struct ndr_pull
*pull
;
3761 struct ndr_push
*push
;
3762 enum ndr_err_code ndr_err
;
3764 struct PNP_GetResDesDataSize
*r
;
3766 call
= &ndr_table_ntsvcs
.calls
[NDR_PNP_GETRESDESDATASIZE
];
3768 r
= talloc(talloc_tos(), struct PNP_GetResDesDataSize
);
3773 if (!prs_data_blob(&p
->in_data
.data
, &blob
, r
)) {
3778 pull
= ndr_pull_init_blob(&blob
, r
);
3784 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
3785 ndr_err
= call
->ndr_pull(pull
, NDR_IN
, r
);
3786 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
3791 if (DEBUGLEVEL
>= 10) {
3792 NDR_PRINT_IN_DEBUG(PNP_GetResDesDataSize
, r
);
3795 r
->out
.result
= _PNP_GetResDesDataSize(p
, r
);
3797 if (p
->rng_fault_state
) {
3799 /* Return true here, srv_pipe_hnd.c will take care */
3803 if (DEBUGLEVEL
>= 10) {
3804 NDR_PRINT_OUT_DEBUG(PNP_GetResDesDataSize
, r
);
3807 push
= ndr_push_init_ctx(r
);
3813 ndr_err
= call
->ndr_push(push
, NDR_OUT
, r
);
3814 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
3819 blob
= ndr_push_blob(push
);
3820 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32_t)blob
.length
)) {
3830 static bool api_PNP_ModifyResDes(pipes_struct
*p
)
3832 const struct ndr_interface_call
*call
;
3833 struct ndr_pull
*pull
;
3834 struct ndr_push
*push
;
3835 enum ndr_err_code ndr_err
;
3837 struct PNP_ModifyResDes
*r
;
3839 call
= &ndr_table_ntsvcs
.calls
[NDR_PNP_MODIFYRESDES
];
3841 r
= talloc(talloc_tos(), struct PNP_ModifyResDes
);
3846 if (!prs_data_blob(&p
->in_data
.data
, &blob
, r
)) {
3851 pull
= ndr_pull_init_blob(&blob
, r
);
3857 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
3858 ndr_err
= call
->ndr_pull(pull
, NDR_IN
, r
);
3859 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
3864 if (DEBUGLEVEL
>= 10) {
3865 NDR_PRINT_IN_DEBUG(PNP_ModifyResDes
, r
);
3868 r
->out
.result
= _PNP_ModifyResDes(p
, r
);
3870 if (p
->rng_fault_state
) {
3872 /* Return true here, srv_pipe_hnd.c will take care */
3876 if (DEBUGLEVEL
>= 10) {
3877 NDR_PRINT_OUT_DEBUG(PNP_ModifyResDes
, r
);
3880 push
= ndr_push_init_ctx(r
);
3886 ndr_err
= call
->ndr_push(push
, NDR_OUT
, r
);
3887 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
3892 blob
= ndr_push_blob(push
);
3893 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32_t)blob
.length
)) {
3903 static bool api_PNP_DetectResourceLimit(pipes_struct
*p
)
3905 const struct ndr_interface_call
*call
;
3906 struct ndr_pull
*pull
;
3907 struct ndr_push
*push
;
3908 enum ndr_err_code ndr_err
;
3910 struct PNP_DetectResourceLimit
*r
;
3912 call
= &ndr_table_ntsvcs
.calls
[NDR_PNP_DETECTRESOURCELIMIT
];
3914 r
= talloc(talloc_tos(), struct PNP_DetectResourceLimit
);
3919 if (!prs_data_blob(&p
->in_data
.data
, &blob
, r
)) {
3924 pull
= ndr_pull_init_blob(&blob
, r
);
3930 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
3931 ndr_err
= call
->ndr_pull(pull
, NDR_IN
, r
);
3932 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
3937 if (DEBUGLEVEL
>= 10) {
3938 NDR_PRINT_IN_DEBUG(PNP_DetectResourceLimit
, r
);
3941 r
->out
.result
= _PNP_DetectResourceLimit(p
, r
);
3943 if (p
->rng_fault_state
) {
3945 /* Return true here, srv_pipe_hnd.c will take care */
3949 if (DEBUGLEVEL
>= 10) {
3950 NDR_PRINT_OUT_DEBUG(PNP_DetectResourceLimit
, r
);
3953 push
= ndr_push_init_ctx(r
);
3959 ndr_err
= call
->ndr_push(push
, NDR_OUT
, r
);
3960 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
3965 blob
= ndr_push_blob(push
);
3966 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32_t)blob
.length
)) {
3976 static bool api_PNP_QueryResConfList(pipes_struct
*p
)
3978 const struct ndr_interface_call
*call
;
3979 struct ndr_pull
*pull
;
3980 struct ndr_push
*push
;
3981 enum ndr_err_code ndr_err
;
3983 struct PNP_QueryResConfList
*r
;
3985 call
= &ndr_table_ntsvcs
.calls
[NDR_PNP_QUERYRESCONFLIST
];
3987 r
= talloc(talloc_tos(), struct PNP_QueryResConfList
);
3992 if (!prs_data_blob(&p
->in_data
.data
, &blob
, r
)) {
3997 pull
= ndr_pull_init_blob(&blob
, r
);
4003 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
4004 ndr_err
= call
->ndr_pull(pull
, NDR_IN
, r
);
4005 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
4010 if (DEBUGLEVEL
>= 10) {
4011 NDR_PRINT_IN_DEBUG(PNP_QueryResConfList
, r
);
4014 r
->out
.result
= _PNP_QueryResConfList(p
, r
);
4016 if (p
->rng_fault_state
) {
4018 /* Return true here, srv_pipe_hnd.c will take care */
4022 if (DEBUGLEVEL
>= 10) {
4023 NDR_PRINT_OUT_DEBUG(PNP_QueryResConfList
, r
);
4026 push
= ndr_push_init_ctx(r
);
4032 ndr_err
= call
->ndr_push(push
, NDR_OUT
, r
);
4033 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
4038 blob
= ndr_push_blob(push
);
4039 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32_t)blob
.length
)) {
4049 static bool api_PNP_SetHwProf(pipes_struct
*p
)
4051 const struct ndr_interface_call
*call
;
4052 struct ndr_pull
*pull
;
4053 struct ndr_push
*push
;
4054 enum ndr_err_code ndr_err
;
4056 struct PNP_SetHwProf
*r
;
4058 call
= &ndr_table_ntsvcs
.calls
[NDR_PNP_SETHWPROF
];
4060 r
= talloc(talloc_tos(), struct PNP_SetHwProf
);
4065 if (!prs_data_blob(&p
->in_data
.data
, &blob
, r
)) {
4070 pull
= ndr_pull_init_blob(&blob
, r
);
4076 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
4077 ndr_err
= call
->ndr_pull(pull
, NDR_IN
, r
);
4078 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
4083 if (DEBUGLEVEL
>= 10) {
4084 NDR_PRINT_IN_DEBUG(PNP_SetHwProf
, r
);
4087 r
->out
.result
= _PNP_SetHwProf(p
, r
);
4089 if (p
->rng_fault_state
) {
4091 /* Return true here, srv_pipe_hnd.c will take care */
4095 if (DEBUGLEVEL
>= 10) {
4096 NDR_PRINT_OUT_DEBUG(PNP_SetHwProf
, r
);
4099 push
= ndr_push_init_ctx(r
);
4105 ndr_err
= call
->ndr_push(push
, NDR_OUT
, r
);
4106 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
4111 blob
= ndr_push_blob(push
);
4112 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32_t)blob
.length
)) {
4122 static bool api_PNP_QueryArbitratorFreeData(pipes_struct
*p
)
4124 const struct ndr_interface_call
*call
;
4125 struct ndr_pull
*pull
;
4126 struct ndr_push
*push
;
4127 enum ndr_err_code ndr_err
;
4129 struct PNP_QueryArbitratorFreeData
*r
;
4131 call
= &ndr_table_ntsvcs
.calls
[NDR_PNP_QUERYARBITRATORFREEDATA
];
4133 r
= talloc(talloc_tos(), struct PNP_QueryArbitratorFreeData
);
4138 if (!prs_data_blob(&p
->in_data
.data
, &blob
, r
)) {
4143 pull
= ndr_pull_init_blob(&blob
, r
);
4149 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
4150 ndr_err
= call
->ndr_pull(pull
, NDR_IN
, r
);
4151 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
4156 if (DEBUGLEVEL
>= 10) {
4157 NDR_PRINT_IN_DEBUG(PNP_QueryArbitratorFreeData
, r
);
4160 r
->out
.result
= _PNP_QueryArbitratorFreeData(p
, r
);
4162 if (p
->rng_fault_state
) {
4164 /* Return true here, srv_pipe_hnd.c will take care */
4168 if (DEBUGLEVEL
>= 10) {
4169 NDR_PRINT_OUT_DEBUG(PNP_QueryArbitratorFreeData
, r
);
4172 push
= ndr_push_init_ctx(r
);
4178 ndr_err
= call
->ndr_push(push
, NDR_OUT
, r
);
4179 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
4184 blob
= ndr_push_blob(push
);
4185 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32_t)blob
.length
)) {
4195 static bool api_PNP_QueryArbitratorFreeSize(pipes_struct
*p
)
4197 const struct ndr_interface_call
*call
;
4198 struct ndr_pull
*pull
;
4199 struct ndr_push
*push
;
4200 enum ndr_err_code ndr_err
;
4202 struct PNP_QueryArbitratorFreeSize
*r
;
4204 call
= &ndr_table_ntsvcs
.calls
[NDR_PNP_QUERYARBITRATORFREESIZE
];
4206 r
= talloc(talloc_tos(), struct PNP_QueryArbitratorFreeSize
);
4211 if (!prs_data_blob(&p
->in_data
.data
, &blob
, r
)) {
4216 pull
= ndr_pull_init_blob(&blob
, r
);
4222 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
4223 ndr_err
= call
->ndr_pull(pull
, NDR_IN
, r
);
4224 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
4229 if (DEBUGLEVEL
>= 10) {
4230 NDR_PRINT_IN_DEBUG(PNP_QueryArbitratorFreeSize
, r
);
4233 r
->out
.result
= _PNP_QueryArbitratorFreeSize(p
, r
);
4235 if (p
->rng_fault_state
) {
4237 /* Return true here, srv_pipe_hnd.c will take care */
4241 if (DEBUGLEVEL
>= 10) {
4242 NDR_PRINT_OUT_DEBUG(PNP_QueryArbitratorFreeSize
, r
);
4245 push
= ndr_push_init_ctx(r
);
4251 ndr_err
= call
->ndr_push(push
, NDR_OUT
, r
);
4252 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
4257 blob
= ndr_push_blob(push
);
4258 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32_t)blob
.length
)) {
4268 static bool api_PNP_RunDetection(pipes_struct
*p
)
4270 const struct ndr_interface_call
*call
;
4271 struct ndr_pull
*pull
;
4272 struct ndr_push
*push
;
4273 enum ndr_err_code ndr_err
;
4275 struct PNP_RunDetection
*r
;
4277 call
= &ndr_table_ntsvcs
.calls
[NDR_PNP_RUNDETECTION
];
4279 r
= talloc(talloc_tos(), struct PNP_RunDetection
);
4284 if (!prs_data_blob(&p
->in_data
.data
, &blob
, r
)) {
4289 pull
= ndr_pull_init_blob(&blob
, r
);
4295 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
4296 ndr_err
= call
->ndr_pull(pull
, NDR_IN
, r
);
4297 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
4302 if (DEBUGLEVEL
>= 10) {
4303 NDR_PRINT_IN_DEBUG(PNP_RunDetection
, r
);
4306 r
->out
.result
= _PNP_RunDetection(p
, r
);
4308 if (p
->rng_fault_state
) {
4310 /* Return true here, srv_pipe_hnd.c will take care */
4314 if (DEBUGLEVEL
>= 10) {
4315 NDR_PRINT_OUT_DEBUG(PNP_RunDetection
, r
);
4318 push
= ndr_push_init_ctx(r
);
4324 ndr_err
= call
->ndr_push(push
, NDR_OUT
, r
);
4325 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
4330 blob
= ndr_push_blob(push
);
4331 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32_t)blob
.length
)) {
4341 static bool api_PNP_RegisterNotification(pipes_struct
*p
)
4343 const struct ndr_interface_call
*call
;
4344 struct ndr_pull
*pull
;
4345 struct ndr_push
*push
;
4346 enum ndr_err_code ndr_err
;
4348 struct PNP_RegisterNotification
*r
;
4350 call
= &ndr_table_ntsvcs
.calls
[NDR_PNP_REGISTERNOTIFICATION
];
4352 r
= talloc(talloc_tos(), struct PNP_RegisterNotification
);
4357 if (!prs_data_blob(&p
->in_data
.data
, &blob
, r
)) {
4362 pull
= ndr_pull_init_blob(&blob
, r
);
4368 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
4369 ndr_err
= call
->ndr_pull(pull
, NDR_IN
, r
);
4370 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
4375 if (DEBUGLEVEL
>= 10) {
4376 NDR_PRINT_IN_DEBUG(PNP_RegisterNotification
, r
);
4379 r
->out
.result
= _PNP_RegisterNotification(p
, r
);
4381 if (p
->rng_fault_state
) {
4383 /* Return true here, srv_pipe_hnd.c will take care */
4387 if (DEBUGLEVEL
>= 10) {
4388 NDR_PRINT_OUT_DEBUG(PNP_RegisterNotification
, r
);
4391 push
= ndr_push_init_ctx(r
);
4397 ndr_err
= call
->ndr_push(push
, NDR_OUT
, r
);
4398 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
4403 blob
= ndr_push_blob(push
);
4404 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32_t)blob
.length
)) {
4414 static bool api_PNP_UnregisterNotification(pipes_struct
*p
)
4416 const struct ndr_interface_call
*call
;
4417 struct ndr_pull
*pull
;
4418 struct ndr_push
*push
;
4419 enum ndr_err_code ndr_err
;
4421 struct PNP_UnregisterNotification
*r
;
4423 call
= &ndr_table_ntsvcs
.calls
[NDR_PNP_UNREGISTERNOTIFICATION
];
4425 r
= talloc(talloc_tos(), struct PNP_UnregisterNotification
);
4430 if (!prs_data_blob(&p
->in_data
.data
, &blob
, r
)) {
4435 pull
= ndr_pull_init_blob(&blob
, r
);
4441 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
4442 ndr_err
= call
->ndr_pull(pull
, NDR_IN
, r
);
4443 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
4448 if (DEBUGLEVEL
>= 10) {
4449 NDR_PRINT_IN_DEBUG(PNP_UnregisterNotification
, r
);
4452 r
->out
.result
= _PNP_UnregisterNotification(p
, r
);
4454 if (p
->rng_fault_state
) {
4456 /* Return true here, srv_pipe_hnd.c will take care */
4460 if (DEBUGLEVEL
>= 10) {
4461 NDR_PRINT_OUT_DEBUG(PNP_UnregisterNotification
, r
);
4464 push
= ndr_push_init_ctx(r
);
4470 ndr_err
= call
->ndr_push(push
, NDR_OUT
, r
);
4471 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
4476 blob
= ndr_push_blob(push
);
4477 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32_t)blob
.length
)) {
4487 static bool api_PNP_GetCustomDevProp(pipes_struct
*p
)
4489 const struct ndr_interface_call
*call
;
4490 struct ndr_pull
*pull
;
4491 struct ndr_push
*push
;
4492 enum ndr_err_code ndr_err
;
4494 struct PNP_GetCustomDevProp
*r
;
4496 call
= &ndr_table_ntsvcs
.calls
[NDR_PNP_GETCUSTOMDEVPROP
];
4498 r
= talloc(talloc_tos(), struct PNP_GetCustomDevProp
);
4503 if (!prs_data_blob(&p
->in_data
.data
, &blob
, r
)) {
4508 pull
= ndr_pull_init_blob(&blob
, r
);
4514 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
4515 ndr_err
= call
->ndr_pull(pull
, NDR_IN
, r
);
4516 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
4521 if (DEBUGLEVEL
>= 10) {
4522 NDR_PRINT_IN_DEBUG(PNP_GetCustomDevProp
, r
);
4525 r
->out
.result
= _PNP_GetCustomDevProp(p
, r
);
4527 if (p
->rng_fault_state
) {
4529 /* Return true here, srv_pipe_hnd.c will take care */
4533 if (DEBUGLEVEL
>= 10) {
4534 NDR_PRINT_OUT_DEBUG(PNP_GetCustomDevProp
, r
);
4537 push
= ndr_push_init_ctx(r
);
4543 ndr_err
= call
->ndr_push(push
, NDR_OUT
, r
);
4544 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
4549 blob
= ndr_push_blob(push
);
4550 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32_t)blob
.length
)) {
4560 static bool api_PNP_GetVersionInternal(pipes_struct
*p
)
4562 const struct ndr_interface_call
*call
;
4563 struct ndr_pull
*pull
;
4564 struct ndr_push
*push
;
4565 enum ndr_err_code ndr_err
;
4567 struct PNP_GetVersionInternal
*r
;
4569 call
= &ndr_table_ntsvcs
.calls
[NDR_PNP_GETVERSIONINTERNAL
];
4571 r
= talloc(talloc_tos(), struct PNP_GetVersionInternal
);
4576 if (!prs_data_blob(&p
->in_data
.data
, &blob
, r
)) {
4581 pull
= ndr_pull_init_blob(&blob
, r
);
4587 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
4588 ndr_err
= call
->ndr_pull(pull
, NDR_IN
, r
);
4589 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
4594 if (DEBUGLEVEL
>= 10) {
4595 NDR_PRINT_IN_DEBUG(PNP_GetVersionInternal
, r
);
4598 r
->out
.result
= _PNP_GetVersionInternal(p
, r
);
4600 if (p
->rng_fault_state
) {
4602 /* Return true here, srv_pipe_hnd.c will take care */
4606 if (DEBUGLEVEL
>= 10) {
4607 NDR_PRINT_OUT_DEBUG(PNP_GetVersionInternal
, r
);
4610 push
= ndr_push_init_ctx(r
);
4616 ndr_err
= call
->ndr_push(push
, NDR_OUT
, r
);
4617 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
4622 blob
= ndr_push_blob(push
);
4623 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32_t)blob
.length
)) {
4633 static bool api_PNP_GetBlockedDriverInfo(pipes_struct
*p
)
4635 const struct ndr_interface_call
*call
;
4636 struct ndr_pull
*pull
;
4637 struct ndr_push
*push
;
4638 enum ndr_err_code ndr_err
;
4640 struct PNP_GetBlockedDriverInfo
*r
;
4642 call
= &ndr_table_ntsvcs
.calls
[NDR_PNP_GETBLOCKEDDRIVERINFO
];
4644 r
= talloc(talloc_tos(), struct PNP_GetBlockedDriverInfo
);
4649 if (!prs_data_blob(&p
->in_data
.data
, &blob
, r
)) {
4654 pull
= ndr_pull_init_blob(&blob
, r
);
4660 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
4661 ndr_err
= call
->ndr_pull(pull
, NDR_IN
, r
);
4662 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
4667 if (DEBUGLEVEL
>= 10) {
4668 NDR_PRINT_IN_DEBUG(PNP_GetBlockedDriverInfo
, r
);
4671 r
->out
.result
= _PNP_GetBlockedDriverInfo(p
, r
);
4673 if (p
->rng_fault_state
) {
4675 /* Return true here, srv_pipe_hnd.c will take care */
4679 if (DEBUGLEVEL
>= 10) {
4680 NDR_PRINT_OUT_DEBUG(PNP_GetBlockedDriverInfo
, r
);
4683 push
= ndr_push_init_ctx(r
);
4689 ndr_err
= call
->ndr_push(push
, NDR_OUT
, r
);
4690 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
4695 blob
= ndr_push_blob(push
);
4696 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32_t)blob
.length
)) {
4706 static bool api_PNP_GetServerSideDeviceInstallFlags(pipes_struct
*p
)
4708 const struct ndr_interface_call
*call
;
4709 struct ndr_pull
*pull
;
4710 struct ndr_push
*push
;
4711 enum ndr_err_code ndr_err
;
4713 struct PNP_GetServerSideDeviceInstallFlags
*r
;
4715 call
= &ndr_table_ntsvcs
.calls
[NDR_PNP_GETSERVERSIDEDEVICEINSTALLFLAGS
];
4717 r
= talloc(talloc_tos(), struct PNP_GetServerSideDeviceInstallFlags
);
4722 if (!prs_data_blob(&p
->in_data
.data
, &blob
, r
)) {
4727 pull
= ndr_pull_init_blob(&blob
, r
);
4733 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
4734 ndr_err
= call
->ndr_pull(pull
, NDR_IN
, r
);
4735 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
4740 if (DEBUGLEVEL
>= 10) {
4741 NDR_PRINT_IN_DEBUG(PNP_GetServerSideDeviceInstallFlags
, r
);
4744 r
->out
.result
= _PNP_GetServerSideDeviceInstallFlags(p
, r
);
4746 if (p
->rng_fault_state
) {
4748 /* Return true here, srv_pipe_hnd.c will take care */
4752 if (DEBUGLEVEL
>= 10) {
4753 NDR_PRINT_OUT_DEBUG(PNP_GetServerSideDeviceInstallFlags
, r
);
4756 push
= ndr_push_init_ctx(r
);
4762 ndr_err
= call
->ndr_push(push
, NDR_OUT
, r
);
4763 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
4768 blob
= ndr_push_blob(push
);
4769 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32_t)blob
.length
)) {
4781 static struct api_struct api_ntsvcs_cmds
[] =
4783 {"PNP_DISCONNECT", NDR_PNP_DISCONNECT
, api_PNP_Disconnect
},
4784 {"PNP_CONNECT", NDR_PNP_CONNECT
, api_PNP_Connect
},
4785 {"PNP_GETVERSION", NDR_PNP_GETVERSION
, api_PNP_GetVersion
},
4786 {"PNP_GETGLOBALSTATE", NDR_PNP_GETGLOBALSTATE
, api_PNP_GetGlobalState
},
4787 {"PNP_INITDETECTION", NDR_PNP_INITDETECTION
, api_PNP_InitDetection
},
4788 {"PNP_REPORTLOGON", NDR_PNP_REPORTLOGON
, api_PNP_ReportLogOn
},
4789 {"PNP_VALIDATEDEVICEINSTANCE", NDR_PNP_VALIDATEDEVICEINSTANCE
, api_PNP_ValidateDeviceInstance
},
4790 {"PNP_GETROOTDEVICEINSTANCE", NDR_PNP_GETROOTDEVICEINSTANCE
, api_PNP_GetRootDeviceInstance
},
4791 {"PNP_GETRELATEDDEVICEINSTANCE", NDR_PNP_GETRELATEDDEVICEINSTANCE
, api_PNP_GetRelatedDeviceInstance
},
4792 {"PNP_ENUMERATESUBKEYS", NDR_PNP_ENUMERATESUBKEYS
, api_PNP_EnumerateSubKeys
},
4793 {"PNP_GETDEVICELIST", NDR_PNP_GETDEVICELIST
, api_PNP_GetDeviceList
},
4794 {"PNP_GETDEVICELISTSIZE", NDR_PNP_GETDEVICELISTSIZE
, api_PNP_GetDeviceListSize
},
4795 {"PNP_GETDEPTH", NDR_PNP_GETDEPTH
, api_PNP_GetDepth
},
4796 {"PNP_GETDEVICEREGPROP", NDR_PNP_GETDEVICEREGPROP
, api_PNP_GetDeviceRegProp
},
4797 {"PNP_SETDEVICEREGPROP", NDR_PNP_SETDEVICEREGPROP
, api_PNP_SetDeviceRegProp
},
4798 {"PNP_GETCLASSINSTANCE", NDR_PNP_GETCLASSINSTANCE
, api_PNP_GetClassInstance
},
4799 {"PNP_CREATEKEY", NDR_PNP_CREATEKEY
, api_PNP_CreateKey
},
4800 {"PNP_DELETEREGISTRYKEY", NDR_PNP_DELETEREGISTRYKEY
, api_PNP_DeleteRegistryKey
},
4801 {"PNP_GETCLASSCOUNT", NDR_PNP_GETCLASSCOUNT
, api_PNP_GetClassCount
},
4802 {"PNP_GETCLASSNAME", NDR_PNP_GETCLASSNAME
, api_PNP_GetClassName
},
4803 {"PNP_DELETECLASSKEY", NDR_PNP_DELETECLASSKEY
, api_PNP_DeleteClassKey
},
4804 {"PNP_GETINTERFACEDEVICEALIAS", NDR_PNP_GETINTERFACEDEVICEALIAS
, api_PNP_GetInterfaceDeviceAlias
},
4805 {"PNP_GETINTERFACEDEVICELIST", NDR_PNP_GETINTERFACEDEVICELIST
, api_PNP_GetInterfaceDeviceList
},
4806 {"PNP_GETINTERFACEDEVICELISTSIZE", NDR_PNP_GETINTERFACEDEVICELISTSIZE
, api_PNP_GetInterfaceDeviceListSize
},
4807 {"PNP_REGISTERDEVICECLASSASSOCIATION", NDR_PNP_REGISTERDEVICECLASSASSOCIATION
, api_PNP_RegisterDeviceClassAssociation
},
4808 {"PNP_UNREGISTERDEVICECLASSASSOCIATION", NDR_PNP_UNREGISTERDEVICECLASSASSOCIATION
, api_PNP_UnregisterDeviceClassAssociation
},
4809 {"PNP_GETCLASSREGPROP", NDR_PNP_GETCLASSREGPROP
, api_PNP_GetClassRegProp
},
4810 {"PNP_SETCLASSREGPROP", NDR_PNP_SETCLASSREGPROP
, api_PNP_SetClassRegProp
},
4811 {"PNP_CREATEDEVINST", NDR_PNP_CREATEDEVINST
, api_PNP_CreateDevInst
},
4812 {"PNP_DEVICEINSTANCEACTION", NDR_PNP_DEVICEINSTANCEACTION
, api_PNP_DeviceInstanceAction
},
4813 {"PNP_GETDEVICESTATUS", NDR_PNP_GETDEVICESTATUS
, api_PNP_GetDeviceStatus
},
4814 {"PNP_SETDEVICEPROBLEM", NDR_PNP_SETDEVICEPROBLEM
, api_PNP_SetDeviceProblem
},
4815 {"PNP_DISABLEDEVINST", NDR_PNP_DISABLEDEVINST
, api_PNP_DisableDevInst
},
4816 {"PNP_UNINSTALLDEVINST", NDR_PNP_UNINSTALLDEVINST
, api_PNP_UninstallDevInst
},
4817 {"PNP_ADDID", NDR_PNP_ADDID
, api_PNP_AddID
},
4818 {"PNP_REGISTERDRIVER", NDR_PNP_REGISTERDRIVER
, api_PNP_RegisterDriver
},
4819 {"PNP_QUERYREMOVE", NDR_PNP_QUERYREMOVE
, api_PNP_QueryRemove
},
4820 {"PNP_REQUESTDEVICEEJECT", NDR_PNP_REQUESTDEVICEEJECT
, api_PNP_RequestDeviceEject
},
4821 {"PNP_ISDOCKSTATIONPRESENT", NDR_PNP_ISDOCKSTATIONPRESENT
, api_PNP_IsDockStationPresent
},
4822 {"PNP_REQUESTEJECTPC", NDR_PNP_REQUESTEJECTPC
, api_PNP_RequestEjectPC
},
4823 {"PNP_HWPROFFLAGS", NDR_PNP_HWPROFFLAGS
, api_PNP_HwProfFlags
},
4824 {"PNP_GETHWPROFINFO", NDR_PNP_GETHWPROFINFO
, api_PNP_GetHwProfInfo
},
4825 {"PNP_ADDEMPTYLOGCONF", NDR_PNP_ADDEMPTYLOGCONF
, api_PNP_AddEmptyLogConf
},
4826 {"PNP_FREELOGCONF", NDR_PNP_FREELOGCONF
, api_PNP_FreeLogConf
},
4827 {"PNP_GETFIRSTLOGCONF", NDR_PNP_GETFIRSTLOGCONF
, api_PNP_GetFirstLogConf
},
4828 {"PNP_GETNEXTLOGCONF", NDR_PNP_GETNEXTLOGCONF
, api_PNP_GetNextLogConf
},
4829 {"PNP_GETLOGCONFPRIORITY", NDR_PNP_GETLOGCONFPRIORITY
, api_PNP_GetLogConfPriority
},
4830 {"PNP_ADDRESDES", NDR_PNP_ADDRESDES
, api_PNP_AddResDes
},
4831 {"PNP_FREERESDES", NDR_PNP_FREERESDES
, api_PNP_FreeResDes
},
4832 {"PNP_GETNEXTRESDES", NDR_PNP_GETNEXTRESDES
, api_PNP_GetNextResDes
},
4833 {"PNP_GETRESDESDATA", NDR_PNP_GETRESDESDATA
, api_PNP_GetResDesData
},
4834 {"PNP_GETRESDESDATASIZE", NDR_PNP_GETRESDESDATASIZE
, api_PNP_GetResDesDataSize
},
4835 {"PNP_MODIFYRESDES", NDR_PNP_MODIFYRESDES
, api_PNP_ModifyResDes
},
4836 {"PNP_DETECTRESOURCELIMIT", NDR_PNP_DETECTRESOURCELIMIT
, api_PNP_DetectResourceLimit
},
4837 {"PNP_QUERYRESCONFLIST", NDR_PNP_QUERYRESCONFLIST
, api_PNP_QueryResConfList
},
4838 {"PNP_SETHWPROF", NDR_PNP_SETHWPROF
, api_PNP_SetHwProf
},
4839 {"PNP_QUERYARBITRATORFREEDATA", NDR_PNP_QUERYARBITRATORFREEDATA
, api_PNP_QueryArbitratorFreeData
},
4840 {"PNP_QUERYARBITRATORFREESIZE", NDR_PNP_QUERYARBITRATORFREESIZE
, api_PNP_QueryArbitratorFreeSize
},
4841 {"PNP_RUNDETECTION", NDR_PNP_RUNDETECTION
, api_PNP_RunDetection
},
4842 {"PNP_REGISTERNOTIFICATION", NDR_PNP_REGISTERNOTIFICATION
, api_PNP_RegisterNotification
},
4843 {"PNP_UNREGISTERNOTIFICATION", NDR_PNP_UNREGISTERNOTIFICATION
, api_PNP_UnregisterNotification
},
4844 {"PNP_GETCUSTOMDEVPROP", NDR_PNP_GETCUSTOMDEVPROP
, api_PNP_GetCustomDevProp
},
4845 {"PNP_GETVERSIONINTERNAL", NDR_PNP_GETVERSIONINTERNAL
, api_PNP_GetVersionInternal
},
4846 {"PNP_GETBLOCKEDDRIVERINFO", NDR_PNP_GETBLOCKEDDRIVERINFO
, api_PNP_GetBlockedDriverInfo
},
4847 {"PNP_GETSERVERSIDEDEVICEINSTALLFLAGS", NDR_PNP_GETSERVERSIDEDEVICEINSTALLFLAGS
, api_PNP_GetServerSideDeviceInstallFlags
},
4850 void ntsvcs_get_pipe_fns(struct api_struct
**fns
, int *n_fns
)
4852 *fns
= api_ntsvcs_cmds
;
4853 *n_fns
= sizeof(api_ntsvcs_cmds
) / sizeof(struct api_struct
);
4856 NTSTATUS
rpc_ntsvcs_init(void)
4858 return rpc_pipe_register_commands(SMB_RPC_INTERFACE_VERSION
, "ntsvcs", "ntsvcs", api_ntsvcs_cmds
, sizeof(api_ntsvcs_cmds
) / sizeof(struct api_struct
));