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 ZERO_STRUCT(r
->out
);
1011 r
->out
.unknown1
= r
->in
.unknown1
;
1012 r
->out
.buffer
= talloc_zero_array(r
, uint8_t, *r
->out
.buffer_size
);
1013 if (r
->out
.buffer
== NULL
) {
1018 r
->out
.buffer_size
= r
->in
.buffer_size
;
1019 r
->out
.needed
= r
->in
.needed
;
1020 r
->out
.result
= _PNP_GetDeviceRegProp(p
, r
);
1022 if (p
->rng_fault_state
) {
1024 /* Return true here, srv_pipe_hnd.c will take care */
1028 if (DEBUGLEVEL
>= 10) {
1029 NDR_PRINT_OUT_DEBUG(PNP_GetDeviceRegProp
, r
);
1032 push
= ndr_push_init_ctx(r
);
1038 ndr_err
= call
->ndr_push(push
, NDR_OUT
, r
);
1039 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
1044 blob
= ndr_push_blob(push
);
1045 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32_t)blob
.length
)) {
1055 static bool api_PNP_SetDeviceRegProp(pipes_struct
*p
)
1057 const struct ndr_interface_call
*call
;
1058 struct ndr_pull
*pull
;
1059 struct ndr_push
*push
;
1060 enum ndr_err_code ndr_err
;
1062 struct PNP_SetDeviceRegProp
*r
;
1064 call
= &ndr_table_ntsvcs
.calls
[NDR_PNP_SETDEVICEREGPROP
];
1066 r
= talloc(talloc_tos(), struct PNP_SetDeviceRegProp
);
1071 if (!prs_data_blob(&p
->in_data
.data
, &blob
, r
)) {
1076 pull
= ndr_pull_init_blob(&blob
, r
);
1082 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
1083 ndr_err
= call
->ndr_pull(pull
, NDR_IN
, r
);
1084 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
1089 if (DEBUGLEVEL
>= 10) {
1090 NDR_PRINT_IN_DEBUG(PNP_SetDeviceRegProp
, r
);
1093 r
->out
.result
= _PNP_SetDeviceRegProp(p
, r
);
1095 if (p
->rng_fault_state
) {
1097 /* Return true here, srv_pipe_hnd.c will take care */
1101 if (DEBUGLEVEL
>= 10) {
1102 NDR_PRINT_OUT_DEBUG(PNP_SetDeviceRegProp
, r
);
1105 push
= ndr_push_init_ctx(r
);
1111 ndr_err
= call
->ndr_push(push
, NDR_OUT
, r
);
1112 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
1117 blob
= ndr_push_blob(push
);
1118 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32_t)blob
.length
)) {
1128 static bool api_PNP_GetClassInstance(pipes_struct
*p
)
1130 const struct ndr_interface_call
*call
;
1131 struct ndr_pull
*pull
;
1132 struct ndr_push
*push
;
1133 enum ndr_err_code ndr_err
;
1135 struct PNP_GetClassInstance
*r
;
1137 call
= &ndr_table_ntsvcs
.calls
[NDR_PNP_GETCLASSINSTANCE
];
1139 r
= talloc(talloc_tos(), struct PNP_GetClassInstance
);
1144 if (!prs_data_blob(&p
->in_data
.data
, &blob
, r
)) {
1149 pull
= ndr_pull_init_blob(&blob
, r
);
1155 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
1156 ndr_err
= call
->ndr_pull(pull
, NDR_IN
, r
);
1157 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
1162 if (DEBUGLEVEL
>= 10) {
1163 NDR_PRINT_IN_DEBUG(PNP_GetClassInstance
, r
);
1166 r
->out
.result
= _PNP_GetClassInstance(p
, r
);
1168 if (p
->rng_fault_state
) {
1170 /* Return true here, srv_pipe_hnd.c will take care */
1174 if (DEBUGLEVEL
>= 10) {
1175 NDR_PRINT_OUT_DEBUG(PNP_GetClassInstance
, r
);
1178 push
= ndr_push_init_ctx(r
);
1184 ndr_err
= call
->ndr_push(push
, NDR_OUT
, r
);
1185 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
1190 blob
= ndr_push_blob(push
);
1191 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32_t)blob
.length
)) {
1201 static bool api_PNP_CreateKey(pipes_struct
*p
)
1203 const struct ndr_interface_call
*call
;
1204 struct ndr_pull
*pull
;
1205 struct ndr_push
*push
;
1206 enum ndr_err_code ndr_err
;
1208 struct PNP_CreateKey
*r
;
1210 call
= &ndr_table_ntsvcs
.calls
[NDR_PNP_CREATEKEY
];
1212 r
= talloc(talloc_tos(), struct PNP_CreateKey
);
1217 if (!prs_data_blob(&p
->in_data
.data
, &blob
, r
)) {
1222 pull
= ndr_pull_init_blob(&blob
, r
);
1228 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
1229 ndr_err
= call
->ndr_pull(pull
, NDR_IN
, r
);
1230 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
1235 if (DEBUGLEVEL
>= 10) {
1236 NDR_PRINT_IN_DEBUG(PNP_CreateKey
, r
);
1239 r
->out
.result
= _PNP_CreateKey(p
, r
);
1241 if (p
->rng_fault_state
) {
1243 /* Return true here, srv_pipe_hnd.c will take care */
1247 if (DEBUGLEVEL
>= 10) {
1248 NDR_PRINT_OUT_DEBUG(PNP_CreateKey
, r
);
1251 push
= ndr_push_init_ctx(r
);
1257 ndr_err
= call
->ndr_push(push
, NDR_OUT
, r
);
1258 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
1263 blob
= ndr_push_blob(push
);
1264 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32_t)blob
.length
)) {
1274 static bool api_PNP_DeleteRegistryKey(pipes_struct
*p
)
1276 const struct ndr_interface_call
*call
;
1277 struct ndr_pull
*pull
;
1278 struct ndr_push
*push
;
1279 enum ndr_err_code ndr_err
;
1281 struct PNP_DeleteRegistryKey
*r
;
1283 call
= &ndr_table_ntsvcs
.calls
[NDR_PNP_DELETEREGISTRYKEY
];
1285 r
= talloc(talloc_tos(), struct PNP_DeleteRegistryKey
);
1290 if (!prs_data_blob(&p
->in_data
.data
, &blob
, r
)) {
1295 pull
= ndr_pull_init_blob(&blob
, r
);
1301 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
1302 ndr_err
= call
->ndr_pull(pull
, NDR_IN
, r
);
1303 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
1308 if (DEBUGLEVEL
>= 10) {
1309 NDR_PRINT_IN_DEBUG(PNP_DeleteRegistryKey
, r
);
1312 r
->out
.result
= _PNP_DeleteRegistryKey(p
, r
);
1314 if (p
->rng_fault_state
) {
1316 /* Return true here, srv_pipe_hnd.c will take care */
1320 if (DEBUGLEVEL
>= 10) {
1321 NDR_PRINT_OUT_DEBUG(PNP_DeleteRegistryKey
, r
);
1324 push
= ndr_push_init_ctx(r
);
1330 ndr_err
= call
->ndr_push(push
, NDR_OUT
, r
);
1331 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
1336 blob
= ndr_push_blob(push
);
1337 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32_t)blob
.length
)) {
1347 static bool api_PNP_GetClassCount(pipes_struct
*p
)
1349 const struct ndr_interface_call
*call
;
1350 struct ndr_pull
*pull
;
1351 struct ndr_push
*push
;
1352 enum ndr_err_code ndr_err
;
1354 struct PNP_GetClassCount
*r
;
1356 call
= &ndr_table_ntsvcs
.calls
[NDR_PNP_GETCLASSCOUNT
];
1358 r
= talloc(talloc_tos(), struct PNP_GetClassCount
);
1363 if (!prs_data_blob(&p
->in_data
.data
, &blob
, r
)) {
1368 pull
= ndr_pull_init_blob(&blob
, r
);
1374 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
1375 ndr_err
= call
->ndr_pull(pull
, NDR_IN
, r
);
1376 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
1381 if (DEBUGLEVEL
>= 10) {
1382 NDR_PRINT_IN_DEBUG(PNP_GetClassCount
, r
);
1385 r
->out
.result
= _PNP_GetClassCount(p
, r
);
1387 if (p
->rng_fault_state
) {
1389 /* Return true here, srv_pipe_hnd.c will take care */
1393 if (DEBUGLEVEL
>= 10) {
1394 NDR_PRINT_OUT_DEBUG(PNP_GetClassCount
, r
);
1397 push
= ndr_push_init_ctx(r
);
1403 ndr_err
= call
->ndr_push(push
, NDR_OUT
, r
);
1404 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
1409 blob
= ndr_push_blob(push
);
1410 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32_t)blob
.length
)) {
1420 static bool api_PNP_GetClassName(pipes_struct
*p
)
1422 const struct ndr_interface_call
*call
;
1423 struct ndr_pull
*pull
;
1424 struct ndr_push
*push
;
1425 enum ndr_err_code ndr_err
;
1427 struct PNP_GetClassName
*r
;
1429 call
= &ndr_table_ntsvcs
.calls
[NDR_PNP_GETCLASSNAME
];
1431 r
= talloc(talloc_tos(), struct PNP_GetClassName
);
1436 if (!prs_data_blob(&p
->in_data
.data
, &blob
, r
)) {
1441 pull
= ndr_pull_init_blob(&blob
, r
);
1447 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
1448 ndr_err
= call
->ndr_pull(pull
, NDR_IN
, r
);
1449 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
1454 if (DEBUGLEVEL
>= 10) {
1455 NDR_PRINT_IN_DEBUG(PNP_GetClassName
, r
);
1458 r
->out
.result
= _PNP_GetClassName(p
, r
);
1460 if (p
->rng_fault_state
) {
1462 /* Return true here, srv_pipe_hnd.c will take care */
1466 if (DEBUGLEVEL
>= 10) {
1467 NDR_PRINT_OUT_DEBUG(PNP_GetClassName
, r
);
1470 push
= ndr_push_init_ctx(r
);
1476 ndr_err
= call
->ndr_push(push
, NDR_OUT
, r
);
1477 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
1482 blob
= ndr_push_blob(push
);
1483 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32_t)blob
.length
)) {
1493 static bool api_PNP_DeleteClassKey(pipes_struct
*p
)
1495 const struct ndr_interface_call
*call
;
1496 struct ndr_pull
*pull
;
1497 struct ndr_push
*push
;
1498 enum ndr_err_code ndr_err
;
1500 struct PNP_DeleteClassKey
*r
;
1502 call
= &ndr_table_ntsvcs
.calls
[NDR_PNP_DELETECLASSKEY
];
1504 r
= talloc(talloc_tos(), struct PNP_DeleteClassKey
);
1509 if (!prs_data_blob(&p
->in_data
.data
, &blob
, r
)) {
1514 pull
= ndr_pull_init_blob(&blob
, r
);
1520 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
1521 ndr_err
= call
->ndr_pull(pull
, NDR_IN
, r
);
1522 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
1527 if (DEBUGLEVEL
>= 10) {
1528 NDR_PRINT_IN_DEBUG(PNP_DeleteClassKey
, r
);
1531 r
->out
.result
= _PNP_DeleteClassKey(p
, r
);
1533 if (p
->rng_fault_state
) {
1535 /* Return true here, srv_pipe_hnd.c will take care */
1539 if (DEBUGLEVEL
>= 10) {
1540 NDR_PRINT_OUT_DEBUG(PNP_DeleteClassKey
, r
);
1543 push
= ndr_push_init_ctx(r
);
1549 ndr_err
= call
->ndr_push(push
, NDR_OUT
, r
);
1550 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
1555 blob
= ndr_push_blob(push
);
1556 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32_t)blob
.length
)) {
1566 static bool api_PNP_GetInterfaceDeviceAlias(pipes_struct
*p
)
1568 const struct ndr_interface_call
*call
;
1569 struct ndr_pull
*pull
;
1570 struct ndr_push
*push
;
1571 enum ndr_err_code ndr_err
;
1573 struct PNP_GetInterfaceDeviceAlias
*r
;
1575 call
= &ndr_table_ntsvcs
.calls
[NDR_PNP_GETINTERFACEDEVICEALIAS
];
1577 r
= talloc(talloc_tos(), struct PNP_GetInterfaceDeviceAlias
);
1582 if (!prs_data_blob(&p
->in_data
.data
, &blob
, r
)) {
1587 pull
= ndr_pull_init_blob(&blob
, r
);
1593 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
1594 ndr_err
= call
->ndr_pull(pull
, NDR_IN
, r
);
1595 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
1600 if (DEBUGLEVEL
>= 10) {
1601 NDR_PRINT_IN_DEBUG(PNP_GetInterfaceDeviceAlias
, r
);
1604 r
->out
.result
= _PNP_GetInterfaceDeviceAlias(p
, r
);
1606 if (p
->rng_fault_state
) {
1608 /* Return true here, srv_pipe_hnd.c will take care */
1612 if (DEBUGLEVEL
>= 10) {
1613 NDR_PRINT_OUT_DEBUG(PNP_GetInterfaceDeviceAlias
, r
);
1616 push
= ndr_push_init_ctx(r
);
1622 ndr_err
= call
->ndr_push(push
, NDR_OUT
, r
);
1623 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
1628 blob
= ndr_push_blob(push
);
1629 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32_t)blob
.length
)) {
1639 static bool api_PNP_GetInterfaceDeviceList(pipes_struct
*p
)
1641 const struct ndr_interface_call
*call
;
1642 struct ndr_pull
*pull
;
1643 struct ndr_push
*push
;
1644 enum ndr_err_code ndr_err
;
1646 struct PNP_GetInterfaceDeviceList
*r
;
1648 call
= &ndr_table_ntsvcs
.calls
[NDR_PNP_GETINTERFACEDEVICELIST
];
1650 r
= talloc(talloc_tos(), struct PNP_GetInterfaceDeviceList
);
1655 if (!prs_data_blob(&p
->in_data
.data
, &blob
, r
)) {
1660 pull
= ndr_pull_init_blob(&blob
, r
);
1666 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
1667 ndr_err
= call
->ndr_pull(pull
, NDR_IN
, r
);
1668 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
1673 if (DEBUGLEVEL
>= 10) {
1674 NDR_PRINT_IN_DEBUG(PNP_GetInterfaceDeviceList
, r
);
1677 r
->out
.result
= _PNP_GetInterfaceDeviceList(p
, r
);
1679 if (p
->rng_fault_state
) {
1681 /* Return true here, srv_pipe_hnd.c will take care */
1685 if (DEBUGLEVEL
>= 10) {
1686 NDR_PRINT_OUT_DEBUG(PNP_GetInterfaceDeviceList
, r
);
1689 push
= ndr_push_init_ctx(r
);
1695 ndr_err
= call
->ndr_push(push
, NDR_OUT
, r
);
1696 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
1701 blob
= ndr_push_blob(push
);
1702 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32_t)blob
.length
)) {
1712 static bool api_PNP_GetInterfaceDeviceListSize(pipes_struct
*p
)
1714 const struct ndr_interface_call
*call
;
1715 struct ndr_pull
*pull
;
1716 struct ndr_push
*push
;
1717 enum ndr_err_code ndr_err
;
1719 struct PNP_GetInterfaceDeviceListSize
*r
;
1721 call
= &ndr_table_ntsvcs
.calls
[NDR_PNP_GETINTERFACEDEVICELISTSIZE
];
1723 r
= talloc(talloc_tos(), struct PNP_GetInterfaceDeviceListSize
);
1728 if (!prs_data_blob(&p
->in_data
.data
, &blob
, r
)) {
1733 pull
= ndr_pull_init_blob(&blob
, r
);
1739 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
1740 ndr_err
= call
->ndr_pull(pull
, NDR_IN
, r
);
1741 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
1746 if (DEBUGLEVEL
>= 10) {
1747 NDR_PRINT_IN_DEBUG(PNP_GetInterfaceDeviceListSize
, r
);
1750 r
->out
.result
= _PNP_GetInterfaceDeviceListSize(p
, r
);
1752 if (p
->rng_fault_state
) {
1754 /* Return true here, srv_pipe_hnd.c will take care */
1758 if (DEBUGLEVEL
>= 10) {
1759 NDR_PRINT_OUT_DEBUG(PNP_GetInterfaceDeviceListSize
, r
);
1762 push
= ndr_push_init_ctx(r
);
1768 ndr_err
= call
->ndr_push(push
, NDR_OUT
, r
);
1769 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
1774 blob
= ndr_push_blob(push
);
1775 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32_t)blob
.length
)) {
1785 static bool api_PNP_RegisterDeviceClassAssociation(pipes_struct
*p
)
1787 const struct ndr_interface_call
*call
;
1788 struct ndr_pull
*pull
;
1789 struct ndr_push
*push
;
1790 enum ndr_err_code ndr_err
;
1792 struct PNP_RegisterDeviceClassAssociation
*r
;
1794 call
= &ndr_table_ntsvcs
.calls
[NDR_PNP_REGISTERDEVICECLASSASSOCIATION
];
1796 r
= talloc(talloc_tos(), struct PNP_RegisterDeviceClassAssociation
);
1801 if (!prs_data_blob(&p
->in_data
.data
, &blob
, r
)) {
1806 pull
= ndr_pull_init_blob(&blob
, r
);
1812 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
1813 ndr_err
= call
->ndr_pull(pull
, NDR_IN
, r
);
1814 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
1819 if (DEBUGLEVEL
>= 10) {
1820 NDR_PRINT_IN_DEBUG(PNP_RegisterDeviceClassAssociation
, r
);
1823 r
->out
.result
= _PNP_RegisterDeviceClassAssociation(p
, r
);
1825 if (p
->rng_fault_state
) {
1827 /* Return true here, srv_pipe_hnd.c will take care */
1831 if (DEBUGLEVEL
>= 10) {
1832 NDR_PRINT_OUT_DEBUG(PNP_RegisterDeviceClassAssociation
, r
);
1835 push
= ndr_push_init_ctx(r
);
1841 ndr_err
= call
->ndr_push(push
, NDR_OUT
, r
);
1842 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
1847 blob
= ndr_push_blob(push
);
1848 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32_t)blob
.length
)) {
1858 static bool api_PNP_UnregisterDeviceClassAssociation(pipes_struct
*p
)
1860 const struct ndr_interface_call
*call
;
1861 struct ndr_pull
*pull
;
1862 struct ndr_push
*push
;
1863 enum ndr_err_code ndr_err
;
1865 struct PNP_UnregisterDeviceClassAssociation
*r
;
1867 call
= &ndr_table_ntsvcs
.calls
[NDR_PNP_UNREGISTERDEVICECLASSASSOCIATION
];
1869 r
= talloc(talloc_tos(), struct PNP_UnregisterDeviceClassAssociation
);
1874 if (!prs_data_blob(&p
->in_data
.data
, &blob
, r
)) {
1879 pull
= ndr_pull_init_blob(&blob
, r
);
1885 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
1886 ndr_err
= call
->ndr_pull(pull
, NDR_IN
, r
);
1887 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
1892 if (DEBUGLEVEL
>= 10) {
1893 NDR_PRINT_IN_DEBUG(PNP_UnregisterDeviceClassAssociation
, r
);
1896 r
->out
.result
= _PNP_UnregisterDeviceClassAssociation(p
, r
);
1898 if (p
->rng_fault_state
) {
1900 /* Return true here, srv_pipe_hnd.c will take care */
1904 if (DEBUGLEVEL
>= 10) {
1905 NDR_PRINT_OUT_DEBUG(PNP_UnregisterDeviceClassAssociation
, r
);
1908 push
= ndr_push_init_ctx(r
);
1914 ndr_err
= call
->ndr_push(push
, NDR_OUT
, r
);
1915 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
1920 blob
= ndr_push_blob(push
);
1921 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32_t)blob
.length
)) {
1931 static bool api_PNP_GetClassRegProp(pipes_struct
*p
)
1933 const struct ndr_interface_call
*call
;
1934 struct ndr_pull
*pull
;
1935 struct ndr_push
*push
;
1936 enum ndr_err_code ndr_err
;
1938 struct PNP_GetClassRegProp
*r
;
1940 call
= &ndr_table_ntsvcs
.calls
[NDR_PNP_GETCLASSREGPROP
];
1942 r
= talloc(talloc_tos(), struct PNP_GetClassRegProp
);
1947 if (!prs_data_blob(&p
->in_data
.data
, &blob
, r
)) {
1952 pull
= ndr_pull_init_blob(&blob
, r
);
1958 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
1959 ndr_err
= call
->ndr_pull(pull
, NDR_IN
, r
);
1960 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
1965 if (DEBUGLEVEL
>= 10) {
1966 NDR_PRINT_IN_DEBUG(PNP_GetClassRegProp
, r
);
1969 r
->out
.result
= _PNP_GetClassRegProp(p
, r
);
1971 if (p
->rng_fault_state
) {
1973 /* Return true here, srv_pipe_hnd.c will take care */
1977 if (DEBUGLEVEL
>= 10) {
1978 NDR_PRINT_OUT_DEBUG(PNP_GetClassRegProp
, r
);
1981 push
= ndr_push_init_ctx(r
);
1987 ndr_err
= call
->ndr_push(push
, NDR_OUT
, r
);
1988 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
1993 blob
= ndr_push_blob(push
);
1994 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32_t)blob
.length
)) {
2004 static bool api_PNP_SetClassRegProp(pipes_struct
*p
)
2006 const struct ndr_interface_call
*call
;
2007 struct ndr_pull
*pull
;
2008 struct ndr_push
*push
;
2009 enum ndr_err_code ndr_err
;
2011 struct PNP_SetClassRegProp
*r
;
2013 call
= &ndr_table_ntsvcs
.calls
[NDR_PNP_SETCLASSREGPROP
];
2015 r
= talloc(talloc_tos(), struct PNP_SetClassRegProp
);
2020 if (!prs_data_blob(&p
->in_data
.data
, &blob
, r
)) {
2025 pull
= ndr_pull_init_blob(&blob
, r
);
2031 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
2032 ndr_err
= call
->ndr_pull(pull
, NDR_IN
, r
);
2033 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
2038 if (DEBUGLEVEL
>= 10) {
2039 NDR_PRINT_IN_DEBUG(PNP_SetClassRegProp
, r
);
2042 r
->out
.result
= _PNP_SetClassRegProp(p
, r
);
2044 if (p
->rng_fault_state
) {
2046 /* Return true here, srv_pipe_hnd.c will take care */
2050 if (DEBUGLEVEL
>= 10) {
2051 NDR_PRINT_OUT_DEBUG(PNP_SetClassRegProp
, r
);
2054 push
= ndr_push_init_ctx(r
);
2060 ndr_err
= call
->ndr_push(push
, NDR_OUT
, r
);
2061 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
2066 blob
= ndr_push_blob(push
);
2067 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32_t)blob
.length
)) {
2077 static bool api_PNP_CreateDevInst(pipes_struct
*p
)
2079 const struct ndr_interface_call
*call
;
2080 struct ndr_pull
*pull
;
2081 struct ndr_push
*push
;
2082 enum ndr_err_code ndr_err
;
2084 struct PNP_CreateDevInst
*r
;
2086 call
= &ndr_table_ntsvcs
.calls
[NDR_PNP_CREATEDEVINST
];
2088 r
= talloc(talloc_tos(), struct PNP_CreateDevInst
);
2093 if (!prs_data_blob(&p
->in_data
.data
, &blob
, r
)) {
2098 pull
= ndr_pull_init_blob(&blob
, r
);
2104 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
2105 ndr_err
= call
->ndr_pull(pull
, NDR_IN
, r
);
2106 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
2111 if (DEBUGLEVEL
>= 10) {
2112 NDR_PRINT_IN_DEBUG(PNP_CreateDevInst
, r
);
2115 r
->out
.result
= _PNP_CreateDevInst(p
, r
);
2117 if (p
->rng_fault_state
) {
2119 /* Return true here, srv_pipe_hnd.c will take care */
2123 if (DEBUGLEVEL
>= 10) {
2124 NDR_PRINT_OUT_DEBUG(PNP_CreateDevInst
, r
);
2127 push
= ndr_push_init_ctx(r
);
2133 ndr_err
= call
->ndr_push(push
, NDR_OUT
, r
);
2134 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
2139 blob
= ndr_push_blob(push
);
2140 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32_t)blob
.length
)) {
2150 static bool api_PNP_DeviceInstanceAction(pipes_struct
*p
)
2152 const struct ndr_interface_call
*call
;
2153 struct ndr_pull
*pull
;
2154 struct ndr_push
*push
;
2155 enum ndr_err_code ndr_err
;
2157 struct PNP_DeviceInstanceAction
*r
;
2159 call
= &ndr_table_ntsvcs
.calls
[NDR_PNP_DEVICEINSTANCEACTION
];
2161 r
= talloc(talloc_tos(), struct PNP_DeviceInstanceAction
);
2166 if (!prs_data_blob(&p
->in_data
.data
, &blob
, r
)) {
2171 pull
= ndr_pull_init_blob(&blob
, r
);
2177 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
2178 ndr_err
= call
->ndr_pull(pull
, NDR_IN
, r
);
2179 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
2184 if (DEBUGLEVEL
>= 10) {
2185 NDR_PRINT_IN_DEBUG(PNP_DeviceInstanceAction
, r
);
2188 r
->out
.result
= _PNP_DeviceInstanceAction(p
, r
);
2190 if (p
->rng_fault_state
) {
2192 /* Return true here, srv_pipe_hnd.c will take care */
2196 if (DEBUGLEVEL
>= 10) {
2197 NDR_PRINT_OUT_DEBUG(PNP_DeviceInstanceAction
, r
);
2200 push
= ndr_push_init_ctx(r
);
2206 ndr_err
= call
->ndr_push(push
, NDR_OUT
, r
);
2207 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
2212 blob
= ndr_push_blob(push
);
2213 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32_t)blob
.length
)) {
2223 static bool api_PNP_GetDeviceStatus(pipes_struct
*p
)
2225 const struct ndr_interface_call
*call
;
2226 struct ndr_pull
*pull
;
2227 struct ndr_push
*push
;
2228 enum ndr_err_code ndr_err
;
2230 struct PNP_GetDeviceStatus
*r
;
2232 call
= &ndr_table_ntsvcs
.calls
[NDR_PNP_GETDEVICESTATUS
];
2234 r
= talloc(talloc_tos(), struct PNP_GetDeviceStatus
);
2239 if (!prs_data_blob(&p
->in_data
.data
, &blob
, r
)) {
2244 pull
= ndr_pull_init_blob(&blob
, r
);
2250 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
2251 ndr_err
= call
->ndr_pull(pull
, NDR_IN
, r
);
2252 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
2257 if (DEBUGLEVEL
>= 10) {
2258 NDR_PRINT_IN_DEBUG(PNP_GetDeviceStatus
, r
);
2261 r
->out
.result
= _PNP_GetDeviceStatus(p
, r
);
2263 if (p
->rng_fault_state
) {
2265 /* Return true here, srv_pipe_hnd.c will take care */
2269 if (DEBUGLEVEL
>= 10) {
2270 NDR_PRINT_OUT_DEBUG(PNP_GetDeviceStatus
, r
);
2273 push
= ndr_push_init_ctx(r
);
2279 ndr_err
= call
->ndr_push(push
, NDR_OUT
, r
);
2280 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
2285 blob
= ndr_push_blob(push
);
2286 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32_t)blob
.length
)) {
2296 static bool api_PNP_SetDeviceProblem(pipes_struct
*p
)
2298 const struct ndr_interface_call
*call
;
2299 struct ndr_pull
*pull
;
2300 struct ndr_push
*push
;
2301 enum ndr_err_code ndr_err
;
2303 struct PNP_SetDeviceProblem
*r
;
2305 call
= &ndr_table_ntsvcs
.calls
[NDR_PNP_SETDEVICEPROBLEM
];
2307 r
= talloc(talloc_tos(), struct PNP_SetDeviceProblem
);
2312 if (!prs_data_blob(&p
->in_data
.data
, &blob
, r
)) {
2317 pull
= ndr_pull_init_blob(&blob
, r
);
2323 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
2324 ndr_err
= call
->ndr_pull(pull
, NDR_IN
, r
);
2325 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
2330 if (DEBUGLEVEL
>= 10) {
2331 NDR_PRINT_IN_DEBUG(PNP_SetDeviceProblem
, r
);
2334 r
->out
.result
= _PNP_SetDeviceProblem(p
, r
);
2336 if (p
->rng_fault_state
) {
2338 /* Return true here, srv_pipe_hnd.c will take care */
2342 if (DEBUGLEVEL
>= 10) {
2343 NDR_PRINT_OUT_DEBUG(PNP_SetDeviceProblem
, r
);
2346 push
= ndr_push_init_ctx(r
);
2352 ndr_err
= call
->ndr_push(push
, NDR_OUT
, r
);
2353 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
2358 blob
= ndr_push_blob(push
);
2359 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32_t)blob
.length
)) {
2369 static bool api_PNP_DisableDevInst(pipes_struct
*p
)
2371 const struct ndr_interface_call
*call
;
2372 struct ndr_pull
*pull
;
2373 struct ndr_push
*push
;
2374 enum ndr_err_code ndr_err
;
2376 struct PNP_DisableDevInst
*r
;
2378 call
= &ndr_table_ntsvcs
.calls
[NDR_PNP_DISABLEDEVINST
];
2380 r
= talloc(talloc_tos(), struct PNP_DisableDevInst
);
2385 if (!prs_data_blob(&p
->in_data
.data
, &blob
, r
)) {
2390 pull
= ndr_pull_init_blob(&blob
, r
);
2396 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
2397 ndr_err
= call
->ndr_pull(pull
, NDR_IN
, r
);
2398 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
2403 if (DEBUGLEVEL
>= 10) {
2404 NDR_PRINT_IN_DEBUG(PNP_DisableDevInst
, r
);
2407 r
->out
.result
= _PNP_DisableDevInst(p
, r
);
2409 if (p
->rng_fault_state
) {
2411 /* Return true here, srv_pipe_hnd.c will take care */
2415 if (DEBUGLEVEL
>= 10) {
2416 NDR_PRINT_OUT_DEBUG(PNP_DisableDevInst
, r
);
2419 push
= ndr_push_init_ctx(r
);
2425 ndr_err
= call
->ndr_push(push
, NDR_OUT
, r
);
2426 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
2431 blob
= ndr_push_blob(push
);
2432 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32_t)blob
.length
)) {
2442 static bool api_PNP_UninstallDevInst(pipes_struct
*p
)
2444 const struct ndr_interface_call
*call
;
2445 struct ndr_pull
*pull
;
2446 struct ndr_push
*push
;
2447 enum ndr_err_code ndr_err
;
2449 struct PNP_UninstallDevInst
*r
;
2451 call
= &ndr_table_ntsvcs
.calls
[NDR_PNP_UNINSTALLDEVINST
];
2453 r
= talloc(talloc_tos(), struct PNP_UninstallDevInst
);
2458 if (!prs_data_blob(&p
->in_data
.data
, &blob
, r
)) {
2463 pull
= ndr_pull_init_blob(&blob
, r
);
2469 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
2470 ndr_err
= call
->ndr_pull(pull
, NDR_IN
, r
);
2471 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
2476 if (DEBUGLEVEL
>= 10) {
2477 NDR_PRINT_IN_DEBUG(PNP_UninstallDevInst
, r
);
2480 r
->out
.result
= _PNP_UninstallDevInst(p
, r
);
2482 if (p
->rng_fault_state
) {
2484 /* Return true here, srv_pipe_hnd.c will take care */
2488 if (DEBUGLEVEL
>= 10) {
2489 NDR_PRINT_OUT_DEBUG(PNP_UninstallDevInst
, r
);
2492 push
= ndr_push_init_ctx(r
);
2498 ndr_err
= call
->ndr_push(push
, NDR_OUT
, r
);
2499 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
2504 blob
= ndr_push_blob(push
);
2505 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32_t)blob
.length
)) {
2515 static bool api_PNP_AddID(pipes_struct
*p
)
2517 const struct ndr_interface_call
*call
;
2518 struct ndr_pull
*pull
;
2519 struct ndr_push
*push
;
2520 enum ndr_err_code ndr_err
;
2522 struct PNP_AddID
*r
;
2524 call
= &ndr_table_ntsvcs
.calls
[NDR_PNP_ADDID
];
2526 r
= talloc(talloc_tos(), struct PNP_AddID
);
2531 if (!prs_data_blob(&p
->in_data
.data
, &blob
, r
)) {
2536 pull
= ndr_pull_init_blob(&blob
, r
);
2542 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
2543 ndr_err
= call
->ndr_pull(pull
, NDR_IN
, r
);
2544 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
2549 if (DEBUGLEVEL
>= 10) {
2550 NDR_PRINT_IN_DEBUG(PNP_AddID
, r
);
2553 r
->out
.result
= _PNP_AddID(p
, r
);
2555 if (p
->rng_fault_state
) {
2557 /* Return true here, srv_pipe_hnd.c will take care */
2561 if (DEBUGLEVEL
>= 10) {
2562 NDR_PRINT_OUT_DEBUG(PNP_AddID
, r
);
2565 push
= ndr_push_init_ctx(r
);
2571 ndr_err
= call
->ndr_push(push
, NDR_OUT
, r
);
2572 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
2577 blob
= ndr_push_blob(push
);
2578 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32_t)blob
.length
)) {
2588 static bool api_PNP_RegisterDriver(pipes_struct
*p
)
2590 const struct ndr_interface_call
*call
;
2591 struct ndr_pull
*pull
;
2592 struct ndr_push
*push
;
2593 enum ndr_err_code ndr_err
;
2595 struct PNP_RegisterDriver
*r
;
2597 call
= &ndr_table_ntsvcs
.calls
[NDR_PNP_REGISTERDRIVER
];
2599 r
= talloc(talloc_tos(), struct PNP_RegisterDriver
);
2604 if (!prs_data_blob(&p
->in_data
.data
, &blob
, r
)) {
2609 pull
= ndr_pull_init_blob(&blob
, r
);
2615 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
2616 ndr_err
= call
->ndr_pull(pull
, NDR_IN
, r
);
2617 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
2622 if (DEBUGLEVEL
>= 10) {
2623 NDR_PRINT_IN_DEBUG(PNP_RegisterDriver
, r
);
2626 r
->out
.result
= _PNP_RegisterDriver(p
, r
);
2628 if (p
->rng_fault_state
) {
2630 /* Return true here, srv_pipe_hnd.c will take care */
2634 if (DEBUGLEVEL
>= 10) {
2635 NDR_PRINT_OUT_DEBUG(PNP_RegisterDriver
, r
);
2638 push
= ndr_push_init_ctx(r
);
2644 ndr_err
= call
->ndr_push(push
, NDR_OUT
, r
);
2645 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
2650 blob
= ndr_push_blob(push
);
2651 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32_t)blob
.length
)) {
2661 static bool api_PNP_QueryRemove(pipes_struct
*p
)
2663 const struct ndr_interface_call
*call
;
2664 struct ndr_pull
*pull
;
2665 struct ndr_push
*push
;
2666 enum ndr_err_code ndr_err
;
2668 struct PNP_QueryRemove
*r
;
2670 call
= &ndr_table_ntsvcs
.calls
[NDR_PNP_QUERYREMOVE
];
2672 r
= talloc(talloc_tos(), struct PNP_QueryRemove
);
2677 if (!prs_data_blob(&p
->in_data
.data
, &blob
, r
)) {
2682 pull
= ndr_pull_init_blob(&blob
, r
);
2688 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
2689 ndr_err
= call
->ndr_pull(pull
, NDR_IN
, r
);
2690 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
2695 if (DEBUGLEVEL
>= 10) {
2696 NDR_PRINT_IN_DEBUG(PNP_QueryRemove
, r
);
2699 r
->out
.result
= _PNP_QueryRemove(p
, r
);
2701 if (p
->rng_fault_state
) {
2703 /* Return true here, srv_pipe_hnd.c will take care */
2707 if (DEBUGLEVEL
>= 10) {
2708 NDR_PRINT_OUT_DEBUG(PNP_QueryRemove
, r
);
2711 push
= ndr_push_init_ctx(r
);
2717 ndr_err
= call
->ndr_push(push
, NDR_OUT
, r
);
2718 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
2723 blob
= ndr_push_blob(push
);
2724 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32_t)blob
.length
)) {
2734 static bool api_PNP_RequestDeviceEject(pipes_struct
*p
)
2736 const struct ndr_interface_call
*call
;
2737 struct ndr_pull
*pull
;
2738 struct ndr_push
*push
;
2739 enum ndr_err_code ndr_err
;
2741 struct PNP_RequestDeviceEject
*r
;
2743 call
= &ndr_table_ntsvcs
.calls
[NDR_PNP_REQUESTDEVICEEJECT
];
2745 r
= talloc(talloc_tos(), struct PNP_RequestDeviceEject
);
2750 if (!prs_data_blob(&p
->in_data
.data
, &blob
, r
)) {
2755 pull
= ndr_pull_init_blob(&blob
, r
);
2761 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
2762 ndr_err
= call
->ndr_pull(pull
, NDR_IN
, r
);
2763 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
2768 if (DEBUGLEVEL
>= 10) {
2769 NDR_PRINT_IN_DEBUG(PNP_RequestDeviceEject
, r
);
2772 r
->out
.result
= _PNP_RequestDeviceEject(p
, r
);
2774 if (p
->rng_fault_state
) {
2776 /* Return true here, srv_pipe_hnd.c will take care */
2780 if (DEBUGLEVEL
>= 10) {
2781 NDR_PRINT_OUT_DEBUG(PNP_RequestDeviceEject
, r
);
2784 push
= ndr_push_init_ctx(r
);
2790 ndr_err
= call
->ndr_push(push
, NDR_OUT
, r
);
2791 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
2796 blob
= ndr_push_blob(push
);
2797 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32_t)blob
.length
)) {
2807 static bool api_PNP_IsDockStationPresent(pipes_struct
*p
)
2809 const struct ndr_interface_call
*call
;
2810 struct ndr_pull
*pull
;
2811 struct ndr_push
*push
;
2812 enum ndr_err_code ndr_err
;
2814 struct PNP_IsDockStationPresent
*r
;
2816 call
= &ndr_table_ntsvcs
.calls
[NDR_PNP_ISDOCKSTATIONPRESENT
];
2818 r
= talloc(talloc_tos(), struct PNP_IsDockStationPresent
);
2823 if (!prs_data_blob(&p
->in_data
.data
, &blob
, r
)) {
2828 pull
= ndr_pull_init_blob(&blob
, r
);
2834 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
2835 ndr_err
= call
->ndr_pull(pull
, NDR_IN
, r
);
2836 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
2841 if (DEBUGLEVEL
>= 10) {
2842 NDR_PRINT_IN_DEBUG(PNP_IsDockStationPresent
, r
);
2845 r
->out
.result
= _PNP_IsDockStationPresent(p
, r
);
2847 if (p
->rng_fault_state
) {
2849 /* Return true here, srv_pipe_hnd.c will take care */
2853 if (DEBUGLEVEL
>= 10) {
2854 NDR_PRINT_OUT_DEBUG(PNP_IsDockStationPresent
, r
);
2857 push
= ndr_push_init_ctx(r
);
2863 ndr_err
= call
->ndr_push(push
, NDR_OUT
, r
);
2864 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
2869 blob
= ndr_push_blob(push
);
2870 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32_t)blob
.length
)) {
2880 static bool api_PNP_RequestEjectPC(pipes_struct
*p
)
2882 const struct ndr_interface_call
*call
;
2883 struct ndr_pull
*pull
;
2884 struct ndr_push
*push
;
2885 enum ndr_err_code ndr_err
;
2887 struct PNP_RequestEjectPC
*r
;
2889 call
= &ndr_table_ntsvcs
.calls
[NDR_PNP_REQUESTEJECTPC
];
2891 r
= talloc(talloc_tos(), struct PNP_RequestEjectPC
);
2896 if (!prs_data_blob(&p
->in_data
.data
, &blob
, r
)) {
2901 pull
= ndr_pull_init_blob(&blob
, r
);
2907 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
2908 ndr_err
= call
->ndr_pull(pull
, NDR_IN
, r
);
2909 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
2914 if (DEBUGLEVEL
>= 10) {
2915 NDR_PRINT_IN_DEBUG(PNP_RequestEjectPC
, r
);
2918 r
->out
.result
= _PNP_RequestEjectPC(p
, r
);
2920 if (p
->rng_fault_state
) {
2922 /* Return true here, srv_pipe_hnd.c will take care */
2926 if (DEBUGLEVEL
>= 10) {
2927 NDR_PRINT_OUT_DEBUG(PNP_RequestEjectPC
, r
);
2930 push
= ndr_push_init_ctx(r
);
2936 ndr_err
= call
->ndr_push(push
, NDR_OUT
, r
);
2937 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
2942 blob
= ndr_push_blob(push
);
2943 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32_t)blob
.length
)) {
2953 static bool api_PNP_HwProfFlags(pipes_struct
*p
)
2955 const struct ndr_interface_call
*call
;
2956 struct ndr_pull
*pull
;
2957 struct ndr_push
*push
;
2958 enum ndr_err_code ndr_err
;
2960 struct PNP_HwProfFlags
*r
;
2962 call
= &ndr_table_ntsvcs
.calls
[NDR_PNP_HWPROFFLAGS
];
2964 r
= talloc(talloc_tos(), struct PNP_HwProfFlags
);
2969 if (!prs_data_blob(&p
->in_data
.data
, &blob
, r
)) {
2974 pull
= ndr_pull_init_blob(&blob
, r
);
2980 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
2981 ndr_err
= call
->ndr_pull(pull
, NDR_IN
, r
);
2982 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
2987 if (DEBUGLEVEL
>= 10) {
2988 NDR_PRINT_IN_DEBUG(PNP_HwProfFlags
, r
);
2991 ZERO_STRUCT(r
->out
);
2992 r
->out
.unknown3
= r
->in
.unknown3
;
2993 r
->out
.unknown4
= r
->in
.unknown4
;
2994 r
->out
.unknown5a
= talloc_zero(r
, const char *);
2995 if (r
->out
.unknown5a
== NULL
) {
3000 r
->out
.result
= _PNP_HwProfFlags(p
, r
);
3002 if (p
->rng_fault_state
) {
3004 /* Return true here, srv_pipe_hnd.c will take care */
3008 if (DEBUGLEVEL
>= 10) {
3009 NDR_PRINT_OUT_DEBUG(PNP_HwProfFlags
, r
);
3012 push
= ndr_push_init_ctx(r
);
3018 ndr_err
= call
->ndr_push(push
, NDR_OUT
, r
);
3019 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
3024 blob
= ndr_push_blob(push
);
3025 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32_t)blob
.length
)) {
3035 static bool api_PNP_GetHwProfInfo(pipes_struct
*p
)
3037 const struct ndr_interface_call
*call
;
3038 struct ndr_pull
*pull
;
3039 struct ndr_push
*push
;
3040 enum ndr_err_code ndr_err
;
3042 struct PNP_GetHwProfInfo
*r
;
3044 call
= &ndr_table_ntsvcs
.calls
[NDR_PNP_GETHWPROFINFO
];
3046 r
= talloc(talloc_tos(), struct PNP_GetHwProfInfo
);
3051 if (!prs_data_blob(&p
->in_data
.data
, &blob
, r
)) {
3056 pull
= ndr_pull_init_blob(&blob
, r
);
3062 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
3063 ndr_err
= call
->ndr_pull(pull
, NDR_IN
, r
);
3064 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
3069 if (DEBUGLEVEL
>= 10) {
3070 NDR_PRINT_IN_DEBUG(PNP_GetHwProfInfo
, r
);
3073 ZERO_STRUCT(r
->out
);
3074 r
->out
.info
= r
->in
.info
;
3075 r
->out
.result
= _PNP_GetHwProfInfo(p
, r
);
3077 if (p
->rng_fault_state
) {
3079 /* Return true here, srv_pipe_hnd.c will take care */
3083 if (DEBUGLEVEL
>= 10) {
3084 NDR_PRINT_OUT_DEBUG(PNP_GetHwProfInfo
, r
);
3087 push
= ndr_push_init_ctx(r
);
3093 ndr_err
= call
->ndr_push(push
, NDR_OUT
, r
);
3094 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
3099 blob
= ndr_push_blob(push
);
3100 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32_t)blob
.length
)) {
3110 static bool api_PNP_AddEmptyLogConf(pipes_struct
*p
)
3112 const struct ndr_interface_call
*call
;
3113 struct ndr_pull
*pull
;
3114 struct ndr_push
*push
;
3115 enum ndr_err_code ndr_err
;
3117 struct PNP_AddEmptyLogConf
*r
;
3119 call
= &ndr_table_ntsvcs
.calls
[NDR_PNP_ADDEMPTYLOGCONF
];
3121 r
= talloc(talloc_tos(), struct PNP_AddEmptyLogConf
);
3126 if (!prs_data_blob(&p
->in_data
.data
, &blob
, r
)) {
3131 pull
= ndr_pull_init_blob(&blob
, r
);
3137 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
3138 ndr_err
= call
->ndr_pull(pull
, NDR_IN
, r
);
3139 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
3144 if (DEBUGLEVEL
>= 10) {
3145 NDR_PRINT_IN_DEBUG(PNP_AddEmptyLogConf
, r
);
3148 r
->out
.result
= _PNP_AddEmptyLogConf(p
, r
);
3150 if (p
->rng_fault_state
) {
3152 /* Return true here, srv_pipe_hnd.c will take care */
3156 if (DEBUGLEVEL
>= 10) {
3157 NDR_PRINT_OUT_DEBUG(PNP_AddEmptyLogConf
, r
);
3160 push
= ndr_push_init_ctx(r
);
3166 ndr_err
= call
->ndr_push(push
, NDR_OUT
, r
);
3167 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
3172 blob
= ndr_push_blob(push
);
3173 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32_t)blob
.length
)) {
3183 static bool api_PNP_FreeLogConf(pipes_struct
*p
)
3185 const struct ndr_interface_call
*call
;
3186 struct ndr_pull
*pull
;
3187 struct ndr_push
*push
;
3188 enum ndr_err_code ndr_err
;
3190 struct PNP_FreeLogConf
*r
;
3192 call
= &ndr_table_ntsvcs
.calls
[NDR_PNP_FREELOGCONF
];
3194 r
= talloc(talloc_tos(), struct PNP_FreeLogConf
);
3199 if (!prs_data_blob(&p
->in_data
.data
, &blob
, r
)) {
3204 pull
= ndr_pull_init_blob(&blob
, r
);
3210 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
3211 ndr_err
= call
->ndr_pull(pull
, NDR_IN
, r
);
3212 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
3217 if (DEBUGLEVEL
>= 10) {
3218 NDR_PRINT_IN_DEBUG(PNP_FreeLogConf
, r
);
3221 r
->out
.result
= _PNP_FreeLogConf(p
, r
);
3223 if (p
->rng_fault_state
) {
3225 /* Return true here, srv_pipe_hnd.c will take care */
3229 if (DEBUGLEVEL
>= 10) {
3230 NDR_PRINT_OUT_DEBUG(PNP_FreeLogConf
, r
);
3233 push
= ndr_push_init_ctx(r
);
3239 ndr_err
= call
->ndr_push(push
, NDR_OUT
, r
);
3240 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
3245 blob
= ndr_push_blob(push
);
3246 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32_t)blob
.length
)) {
3256 static bool api_PNP_GetFirstLogConf(pipes_struct
*p
)
3258 const struct ndr_interface_call
*call
;
3259 struct ndr_pull
*pull
;
3260 struct ndr_push
*push
;
3261 enum ndr_err_code ndr_err
;
3263 struct PNP_GetFirstLogConf
*r
;
3265 call
= &ndr_table_ntsvcs
.calls
[NDR_PNP_GETFIRSTLOGCONF
];
3267 r
= talloc(talloc_tos(), struct PNP_GetFirstLogConf
);
3272 if (!prs_data_blob(&p
->in_data
.data
, &blob
, r
)) {
3277 pull
= ndr_pull_init_blob(&blob
, r
);
3283 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
3284 ndr_err
= call
->ndr_pull(pull
, NDR_IN
, r
);
3285 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
3290 if (DEBUGLEVEL
>= 10) {
3291 NDR_PRINT_IN_DEBUG(PNP_GetFirstLogConf
, r
);
3294 r
->out
.result
= _PNP_GetFirstLogConf(p
, r
);
3296 if (p
->rng_fault_state
) {
3298 /* Return true here, srv_pipe_hnd.c will take care */
3302 if (DEBUGLEVEL
>= 10) {
3303 NDR_PRINT_OUT_DEBUG(PNP_GetFirstLogConf
, r
);
3306 push
= ndr_push_init_ctx(r
);
3312 ndr_err
= call
->ndr_push(push
, NDR_OUT
, r
);
3313 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
3318 blob
= ndr_push_blob(push
);
3319 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32_t)blob
.length
)) {
3329 static bool api_PNP_GetNextLogConf(pipes_struct
*p
)
3331 const struct ndr_interface_call
*call
;
3332 struct ndr_pull
*pull
;
3333 struct ndr_push
*push
;
3334 enum ndr_err_code ndr_err
;
3336 struct PNP_GetNextLogConf
*r
;
3338 call
= &ndr_table_ntsvcs
.calls
[NDR_PNP_GETNEXTLOGCONF
];
3340 r
= talloc(talloc_tos(), struct PNP_GetNextLogConf
);
3345 if (!prs_data_blob(&p
->in_data
.data
, &blob
, r
)) {
3350 pull
= ndr_pull_init_blob(&blob
, r
);
3356 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
3357 ndr_err
= call
->ndr_pull(pull
, NDR_IN
, r
);
3358 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
3363 if (DEBUGLEVEL
>= 10) {
3364 NDR_PRINT_IN_DEBUG(PNP_GetNextLogConf
, r
);
3367 r
->out
.result
= _PNP_GetNextLogConf(p
, r
);
3369 if (p
->rng_fault_state
) {
3371 /* Return true here, srv_pipe_hnd.c will take care */
3375 if (DEBUGLEVEL
>= 10) {
3376 NDR_PRINT_OUT_DEBUG(PNP_GetNextLogConf
, r
);
3379 push
= ndr_push_init_ctx(r
);
3385 ndr_err
= call
->ndr_push(push
, NDR_OUT
, r
);
3386 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
3391 blob
= ndr_push_blob(push
);
3392 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32_t)blob
.length
)) {
3402 static bool api_PNP_GetLogConfPriority(pipes_struct
*p
)
3404 const struct ndr_interface_call
*call
;
3405 struct ndr_pull
*pull
;
3406 struct ndr_push
*push
;
3407 enum ndr_err_code ndr_err
;
3409 struct PNP_GetLogConfPriority
*r
;
3411 call
= &ndr_table_ntsvcs
.calls
[NDR_PNP_GETLOGCONFPRIORITY
];
3413 r
= talloc(talloc_tos(), struct PNP_GetLogConfPriority
);
3418 if (!prs_data_blob(&p
->in_data
.data
, &blob
, r
)) {
3423 pull
= ndr_pull_init_blob(&blob
, r
);
3429 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
3430 ndr_err
= call
->ndr_pull(pull
, NDR_IN
, r
);
3431 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
3436 if (DEBUGLEVEL
>= 10) {
3437 NDR_PRINT_IN_DEBUG(PNP_GetLogConfPriority
, r
);
3440 r
->out
.result
= _PNP_GetLogConfPriority(p
, r
);
3442 if (p
->rng_fault_state
) {
3444 /* Return true here, srv_pipe_hnd.c will take care */
3448 if (DEBUGLEVEL
>= 10) {
3449 NDR_PRINT_OUT_DEBUG(PNP_GetLogConfPriority
, r
);
3452 push
= ndr_push_init_ctx(r
);
3458 ndr_err
= call
->ndr_push(push
, NDR_OUT
, r
);
3459 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
3464 blob
= ndr_push_blob(push
);
3465 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32_t)blob
.length
)) {
3475 static bool api_PNP_AddResDes(pipes_struct
*p
)
3477 const struct ndr_interface_call
*call
;
3478 struct ndr_pull
*pull
;
3479 struct ndr_push
*push
;
3480 enum ndr_err_code ndr_err
;
3482 struct PNP_AddResDes
*r
;
3484 call
= &ndr_table_ntsvcs
.calls
[NDR_PNP_ADDRESDES
];
3486 r
= talloc(talloc_tos(), struct PNP_AddResDes
);
3491 if (!prs_data_blob(&p
->in_data
.data
, &blob
, r
)) {
3496 pull
= ndr_pull_init_blob(&blob
, r
);
3502 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
3503 ndr_err
= call
->ndr_pull(pull
, NDR_IN
, r
);
3504 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
3509 if (DEBUGLEVEL
>= 10) {
3510 NDR_PRINT_IN_DEBUG(PNP_AddResDes
, r
);
3513 r
->out
.result
= _PNP_AddResDes(p
, r
);
3515 if (p
->rng_fault_state
) {
3517 /* Return true here, srv_pipe_hnd.c will take care */
3521 if (DEBUGLEVEL
>= 10) {
3522 NDR_PRINT_OUT_DEBUG(PNP_AddResDes
, r
);
3525 push
= ndr_push_init_ctx(r
);
3531 ndr_err
= call
->ndr_push(push
, NDR_OUT
, r
);
3532 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
3537 blob
= ndr_push_blob(push
);
3538 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32_t)blob
.length
)) {
3548 static bool api_PNP_FreeResDes(pipes_struct
*p
)
3550 const struct ndr_interface_call
*call
;
3551 struct ndr_pull
*pull
;
3552 struct ndr_push
*push
;
3553 enum ndr_err_code ndr_err
;
3555 struct PNP_FreeResDes
*r
;
3557 call
= &ndr_table_ntsvcs
.calls
[NDR_PNP_FREERESDES
];
3559 r
= talloc(talloc_tos(), struct PNP_FreeResDes
);
3564 if (!prs_data_blob(&p
->in_data
.data
, &blob
, r
)) {
3569 pull
= ndr_pull_init_blob(&blob
, r
);
3575 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
3576 ndr_err
= call
->ndr_pull(pull
, NDR_IN
, r
);
3577 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
3582 if (DEBUGLEVEL
>= 10) {
3583 NDR_PRINT_IN_DEBUG(PNP_FreeResDes
, r
);
3586 r
->out
.result
= _PNP_FreeResDes(p
, r
);
3588 if (p
->rng_fault_state
) {
3590 /* Return true here, srv_pipe_hnd.c will take care */
3594 if (DEBUGLEVEL
>= 10) {
3595 NDR_PRINT_OUT_DEBUG(PNP_FreeResDes
, r
);
3598 push
= ndr_push_init_ctx(r
);
3604 ndr_err
= call
->ndr_push(push
, NDR_OUT
, r
);
3605 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
3610 blob
= ndr_push_blob(push
);
3611 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32_t)blob
.length
)) {
3621 static bool api_PNP_GetNextResDes(pipes_struct
*p
)
3623 const struct ndr_interface_call
*call
;
3624 struct ndr_pull
*pull
;
3625 struct ndr_push
*push
;
3626 enum ndr_err_code ndr_err
;
3628 struct PNP_GetNextResDes
*r
;
3630 call
= &ndr_table_ntsvcs
.calls
[NDR_PNP_GETNEXTRESDES
];
3632 r
= talloc(talloc_tos(), struct PNP_GetNextResDes
);
3637 if (!prs_data_blob(&p
->in_data
.data
, &blob
, r
)) {
3642 pull
= ndr_pull_init_blob(&blob
, r
);
3648 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
3649 ndr_err
= call
->ndr_pull(pull
, NDR_IN
, r
);
3650 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
3655 if (DEBUGLEVEL
>= 10) {
3656 NDR_PRINT_IN_DEBUG(PNP_GetNextResDes
, r
);
3659 r
->out
.result
= _PNP_GetNextResDes(p
, r
);
3661 if (p
->rng_fault_state
) {
3663 /* Return true here, srv_pipe_hnd.c will take care */
3667 if (DEBUGLEVEL
>= 10) {
3668 NDR_PRINT_OUT_DEBUG(PNP_GetNextResDes
, r
);
3671 push
= ndr_push_init_ctx(r
);
3677 ndr_err
= call
->ndr_push(push
, NDR_OUT
, r
);
3678 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
3683 blob
= ndr_push_blob(push
);
3684 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32_t)blob
.length
)) {
3694 static bool api_PNP_GetResDesData(pipes_struct
*p
)
3696 const struct ndr_interface_call
*call
;
3697 struct ndr_pull
*pull
;
3698 struct ndr_push
*push
;
3699 enum ndr_err_code ndr_err
;
3701 struct PNP_GetResDesData
*r
;
3703 call
= &ndr_table_ntsvcs
.calls
[NDR_PNP_GETRESDESDATA
];
3705 r
= talloc(talloc_tos(), struct PNP_GetResDesData
);
3710 if (!prs_data_blob(&p
->in_data
.data
, &blob
, r
)) {
3715 pull
= ndr_pull_init_blob(&blob
, r
);
3721 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
3722 ndr_err
= call
->ndr_pull(pull
, NDR_IN
, r
);
3723 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
3728 if (DEBUGLEVEL
>= 10) {
3729 NDR_PRINT_IN_DEBUG(PNP_GetResDesData
, r
);
3732 r
->out
.result
= _PNP_GetResDesData(p
, r
);
3734 if (p
->rng_fault_state
) {
3736 /* Return true here, srv_pipe_hnd.c will take care */
3740 if (DEBUGLEVEL
>= 10) {
3741 NDR_PRINT_OUT_DEBUG(PNP_GetResDesData
, r
);
3744 push
= ndr_push_init_ctx(r
);
3750 ndr_err
= call
->ndr_push(push
, NDR_OUT
, r
);
3751 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
3756 blob
= ndr_push_blob(push
);
3757 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32_t)blob
.length
)) {
3767 static bool api_PNP_GetResDesDataSize(pipes_struct
*p
)
3769 const struct ndr_interface_call
*call
;
3770 struct ndr_pull
*pull
;
3771 struct ndr_push
*push
;
3772 enum ndr_err_code ndr_err
;
3774 struct PNP_GetResDesDataSize
*r
;
3776 call
= &ndr_table_ntsvcs
.calls
[NDR_PNP_GETRESDESDATASIZE
];
3778 r
= talloc(talloc_tos(), struct PNP_GetResDesDataSize
);
3783 if (!prs_data_blob(&p
->in_data
.data
, &blob
, r
)) {
3788 pull
= ndr_pull_init_blob(&blob
, r
);
3794 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
3795 ndr_err
= call
->ndr_pull(pull
, NDR_IN
, r
);
3796 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
3801 if (DEBUGLEVEL
>= 10) {
3802 NDR_PRINT_IN_DEBUG(PNP_GetResDesDataSize
, r
);
3805 r
->out
.result
= _PNP_GetResDesDataSize(p
, r
);
3807 if (p
->rng_fault_state
) {
3809 /* Return true here, srv_pipe_hnd.c will take care */
3813 if (DEBUGLEVEL
>= 10) {
3814 NDR_PRINT_OUT_DEBUG(PNP_GetResDesDataSize
, r
);
3817 push
= ndr_push_init_ctx(r
);
3823 ndr_err
= call
->ndr_push(push
, NDR_OUT
, r
);
3824 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
3829 blob
= ndr_push_blob(push
);
3830 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32_t)blob
.length
)) {
3840 static bool api_PNP_ModifyResDes(pipes_struct
*p
)
3842 const struct ndr_interface_call
*call
;
3843 struct ndr_pull
*pull
;
3844 struct ndr_push
*push
;
3845 enum ndr_err_code ndr_err
;
3847 struct PNP_ModifyResDes
*r
;
3849 call
= &ndr_table_ntsvcs
.calls
[NDR_PNP_MODIFYRESDES
];
3851 r
= talloc(talloc_tos(), struct PNP_ModifyResDes
);
3856 if (!prs_data_blob(&p
->in_data
.data
, &blob
, r
)) {
3861 pull
= ndr_pull_init_blob(&blob
, r
);
3867 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
3868 ndr_err
= call
->ndr_pull(pull
, NDR_IN
, r
);
3869 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
3874 if (DEBUGLEVEL
>= 10) {
3875 NDR_PRINT_IN_DEBUG(PNP_ModifyResDes
, r
);
3878 r
->out
.result
= _PNP_ModifyResDes(p
, r
);
3880 if (p
->rng_fault_state
) {
3882 /* Return true here, srv_pipe_hnd.c will take care */
3886 if (DEBUGLEVEL
>= 10) {
3887 NDR_PRINT_OUT_DEBUG(PNP_ModifyResDes
, r
);
3890 push
= ndr_push_init_ctx(r
);
3896 ndr_err
= call
->ndr_push(push
, NDR_OUT
, r
);
3897 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
3902 blob
= ndr_push_blob(push
);
3903 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32_t)blob
.length
)) {
3913 static bool api_PNP_DetectResourceLimit(pipes_struct
*p
)
3915 const struct ndr_interface_call
*call
;
3916 struct ndr_pull
*pull
;
3917 struct ndr_push
*push
;
3918 enum ndr_err_code ndr_err
;
3920 struct PNP_DetectResourceLimit
*r
;
3922 call
= &ndr_table_ntsvcs
.calls
[NDR_PNP_DETECTRESOURCELIMIT
];
3924 r
= talloc(talloc_tos(), struct PNP_DetectResourceLimit
);
3929 if (!prs_data_blob(&p
->in_data
.data
, &blob
, r
)) {
3934 pull
= ndr_pull_init_blob(&blob
, r
);
3940 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
3941 ndr_err
= call
->ndr_pull(pull
, NDR_IN
, r
);
3942 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
3947 if (DEBUGLEVEL
>= 10) {
3948 NDR_PRINT_IN_DEBUG(PNP_DetectResourceLimit
, r
);
3951 r
->out
.result
= _PNP_DetectResourceLimit(p
, r
);
3953 if (p
->rng_fault_state
) {
3955 /* Return true here, srv_pipe_hnd.c will take care */
3959 if (DEBUGLEVEL
>= 10) {
3960 NDR_PRINT_OUT_DEBUG(PNP_DetectResourceLimit
, r
);
3963 push
= ndr_push_init_ctx(r
);
3969 ndr_err
= call
->ndr_push(push
, NDR_OUT
, r
);
3970 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
3975 blob
= ndr_push_blob(push
);
3976 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32_t)blob
.length
)) {
3986 static bool api_PNP_QueryResConfList(pipes_struct
*p
)
3988 const struct ndr_interface_call
*call
;
3989 struct ndr_pull
*pull
;
3990 struct ndr_push
*push
;
3991 enum ndr_err_code ndr_err
;
3993 struct PNP_QueryResConfList
*r
;
3995 call
= &ndr_table_ntsvcs
.calls
[NDR_PNP_QUERYRESCONFLIST
];
3997 r
= talloc(talloc_tos(), struct PNP_QueryResConfList
);
4002 if (!prs_data_blob(&p
->in_data
.data
, &blob
, r
)) {
4007 pull
= ndr_pull_init_blob(&blob
, r
);
4013 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
4014 ndr_err
= call
->ndr_pull(pull
, NDR_IN
, r
);
4015 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
4020 if (DEBUGLEVEL
>= 10) {
4021 NDR_PRINT_IN_DEBUG(PNP_QueryResConfList
, r
);
4024 r
->out
.result
= _PNP_QueryResConfList(p
, r
);
4026 if (p
->rng_fault_state
) {
4028 /* Return true here, srv_pipe_hnd.c will take care */
4032 if (DEBUGLEVEL
>= 10) {
4033 NDR_PRINT_OUT_DEBUG(PNP_QueryResConfList
, r
);
4036 push
= ndr_push_init_ctx(r
);
4042 ndr_err
= call
->ndr_push(push
, NDR_OUT
, r
);
4043 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
4048 blob
= ndr_push_blob(push
);
4049 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32_t)blob
.length
)) {
4059 static bool api_PNP_SetHwProf(pipes_struct
*p
)
4061 const struct ndr_interface_call
*call
;
4062 struct ndr_pull
*pull
;
4063 struct ndr_push
*push
;
4064 enum ndr_err_code ndr_err
;
4066 struct PNP_SetHwProf
*r
;
4068 call
= &ndr_table_ntsvcs
.calls
[NDR_PNP_SETHWPROF
];
4070 r
= talloc(talloc_tos(), struct PNP_SetHwProf
);
4075 if (!prs_data_blob(&p
->in_data
.data
, &blob
, r
)) {
4080 pull
= ndr_pull_init_blob(&blob
, r
);
4086 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
4087 ndr_err
= call
->ndr_pull(pull
, NDR_IN
, r
);
4088 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
4093 if (DEBUGLEVEL
>= 10) {
4094 NDR_PRINT_IN_DEBUG(PNP_SetHwProf
, r
);
4097 r
->out
.result
= _PNP_SetHwProf(p
, r
);
4099 if (p
->rng_fault_state
) {
4101 /* Return true here, srv_pipe_hnd.c will take care */
4105 if (DEBUGLEVEL
>= 10) {
4106 NDR_PRINT_OUT_DEBUG(PNP_SetHwProf
, r
);
4109 push
= ndr_push_init_ctx(r
);
4115 ndr_err
= call
->ndr_push(push
, NDR_OUT
, r
);
4116 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
4121 blob
= ndr_push_blob(push
);
4122 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32_t)blob
.length
)) {
4132 static bool api_PNP_QueryArbitratorFreeData(pipes_struct
*p
)
4134 const struct ndr_interface_call
*call
;
4135 struct ndr_pull
*pull
;
4136 struct ndr_push
*push
;
4137 enum ndr_err_code ndr_err
;
4139 struct PNP_QueryArbitratorFreeData
*r
;
4141 call
= &ndr_table_ntsvcs
.calls
[NDR_PNP_QUERYARBITRATORFREEDATA
];
4143 r
= talloc(talloc_tos(), struct PNP_QueryArbitratorFreeData
);
4148 if (!prs_data_blob(&p
->in_data
.data
, &blob
, r
)) {
4153 pull
= ndr_pull_init_blob(&blob
, r
);
4159 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
4160 ndr_err
= call
->ndr_pull(pull
, NDR_IN
, r
);
4161 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
4166 if (DEBUGLEVEL
>= 10) {
4167 NDR_PRINT_IN_DEBUG(PNP_QueryArbitratorFreeData
, r
);
4170 r
->out
.result
= _PNP_QueryArbitratorFreeData(p
, r
);
4172 if (p
->rng_fault_state
) {
4174 /* Return true here, srv_pipe_hnd.c will take care */
4178 if (DEBUGLEVEL
>= 10) {
4179 NDR_PRINT_OUT_DEBUG(PNP_QueryArbitratorFreeData
, r
);
4182 push
= ndr_push_init_ctx(r
);
4188 ndr_err
= call
->ndr_push(push
, NDR_OUT
, r
);
4189 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
4194 blob
= ndr_push_blob(push
);
4195 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32_t)blob
.length
)) {
4205 static bool api_PNP_QueryArbitratorFreeSize(pipes_struct
*p
)
4207 const struct ndr_interface_call
*call
;
4208 struct ndr_pull
*pull
;
4209 struct ndr_push
*push
;
4210 enum ndr_err_code ndr_err
;
4212 struct PNP_QueryArbitratorFreeSize
*r
;
4214 call
= &ndr_table_ntsvcs
.calls
[NDR_PNP_QUERYARBITRATORFREESIZE
];
4216 r
= talloc(talloc_tos(), struct PNP_QueryArbitratorFreeSize
);
4221 if (!prs_data_blob(&p
->in_data
.data
, &blob
, r
)) {
4226 pull
= ndr_pull_init_blob(&blob
, r
);
4232 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
4233 ndr_err
= call
->ndr_pull(pull
, NDR_IN
, r
);
4234 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
4239 if (DEBUGLEVEL
>= 10) {
4240 NDR_PRINT_IN_DEBUG(PNP_QueryArbitratorFreeSize
, r
);
4243 r
->out
.result
= _PNP_QueryArbitratorFreeSize(p
, r
);
4245 if (p
->rng_fault_state
) {
4247 /* Return true here, srv_pipe_hnd.c will take care */
4251 if (DEBUGLEVEL
>= 10) {
4252 NDR_PRINT_OUT_DEBUG(PNP_QueryArbitratorFreeSize
, r
);
4255 push
= ndr_push_init_ctx(r
);
4261 ndr_err
= call
->ndr_push(push
, NDR_OUT
, r
);
4262 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
4267 blob
= ndr_push_blob(push
);
4268 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32_t)blob
.length
)) {
4278 static bool api_PNP_RunDetection(pipes_struct
*p
)
4280 const struct ndr_interface_call
*call
;
4281 struct ndr_pull
*pull
;
4282 struct ndr_push
*push
;
4283 enum ndr_err_code ndr_err
;
4285 struct PNP_RunDetection
*r
;
4287 call
= &ndr_table_ntsvcs
.calls
[NDR_PNP_RUNDETECTION
];
4289 r
= talloc(talloc_tos(), struct PNP_RunDetection
);
4294 if (!prs_data_blob(&p
->in_data
.data
, &blob
, r
)) {
4299 pull
= ndr_pull_init_blob(&blob
, r
);
4305 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
4306 ndr_err
= call
->ndr_pull(pull
, NDR_IN
, r
);
4307 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
4312 if (DEBUGLEVEL
>= 10) {
4313 NDR_PRINT_IN_DEBUG(PNP_RunDetection
, r
);
4316 r
->out
.result
= _PNP_RunDetection(p
, r
);
4318 if (p
->rng_fault_state
) {
4320 /* Return true here, srv_pipe_hnd.c will take care */
4324 if (DEBUGLEVEL
>= 10) {
4325 NDR_PRINT_OUT_DEBUG(PNP_RunDetection
, r
);
4328 push
= ndr_push_init_ctx(r
);
4334 ndr_err
= call
->ndr_push(push
, NDR_OUT
, r
);
4335 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
4340 blob
= ndr_push_blob(push
);
4341 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32_t)blob
.length
)) {
4351 static bool api_PNP_RegisterNotification(pipes_struct
*p
)
4353 const struct ndr_interface_call
*call
;
4354 struct ndr_pull
*pull
;
4355 struct ndr_push
*push
;
4356 enum ndr_err_code ndr_err
;
4358 struct PNP_RegisterNotification
*r
;
4360 call
= &ndr_table_ntsvcs
.calls
[NDR_PNP_REGISTERNOTIFICATION
];
4362 r
= talloc(talloc_tos(), struct PNP_RegisterNotification
);
4367 if (!prs_data_blob(&p
->in_data
.data
, &blob
, r
)) {
4372 pull
= ndr_pull_init_blob(&blob
, r
);
4378 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
4379 ndr_err
= call
->ndr_pull(pull
, NDR_IN
, r
);
4380 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
4385 if (DEBUGLEVEL
>= 10) {
4386 NDR_PRINT_IN_DEBUG(PNP_RegisterNotification
, r
);
4389 r
->out
.result
= _PNP_RegisterNotification(p
, r
);
4391 if (p
->rng_fault_state
) {
4393 /* Return true here, srv_pipe_hnd.c will take care */
4397 if (DEBUGLEVEL
>= 10) {
4398 NDR_PRINT_OUT_DEBUG(PNP_RegisterNotification
, r
);
4401 push
= ndr_push_init_ctx(r
);
4407 ndr_err
= call
->ndr_push(push
, NDR_OUT
, r
);
4408 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
4413 blob
= ndr_push_blob(push
);
4414 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32_t)blob
.length
)) {
4424 static bool api_PNP_UnregisterNotification(pipes_struct
*p
)
4426 const struct ndr_interface_call
*call
;
4427 struct ndr_pull
*pull
;
4428 struct ndr_push
*push
;
4429 enum ndr_err_code ndr_err
;
4431 struct PNP_UnregisterNotification
*r
;
4433 call
= &ndr_table_ntsvcs
.calls
[NDR_PNP_UNREGISTERNOTIFICATION
];
4435 r
= talloc(talloc_tos(), struct PNP_UnregisterNotification
);
4440 if (!prs_data_blob(&p
->in_data
.data
, &blob
, r
)) {
4445 pull
= ndr_pull_init_blob(&blob
, r
);
4451 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
4452 ndr_err
= call
->ndr_pull(pull
, NDR_IN
, r
);
4453 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
4458 if (DEBUGLEVEL
>= 10) {
4459 NDR_PRINT_IN_DEBUG(PNP_UnregisterNotification
, r
);
4462 r
->out
.result
= _PNP_UnregisterNotification(p
, r
);
4464 if (p
->rng_fault_state
) {
4466 /* Return true here, srv_pipe_hnd.c will take care */
4470 if (DEBUGLEVEL
>= 10) {
4471 NDR_PRINT_OUT_DEBUG(PNP_UnregisterNotification
, r
);
4474 push
= ndr_push_init_ctx(r
);
4480 ndr_err
= call
->ndr_push(push
, NDR_OUT
, r
);
4481 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
4486 blob
= ndr_push_blob(push
);
4487 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32_t)blob
.length
)) {
4497 static bool api_PNP_GetCustomDevProp(pipes_struct
*p
)
4499 const struct ndr_interface_call
*call
;
4500 struct ndr_pull
*pull
;
4501 struct ndr_push
*push
;
4502 enum ndr_err_code ndr_err
;
4504 struct PNP_GetCustomDevProp
*r
;
4506 call
= &ndr_table_ntsvcs
.calls
[NDR_PNP_GETCUSTOMDEVPROP
];
4508 r
= talloc(talloc_tos(), struct PNP_GetCustomDevProp
);
4513 if (!prs_data_blob(&p
->in_data
.data
, &blob
, r
)) {
4518 pull
= ndr_pull_init_blob(&blob
, r
);
4524 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
4525 ndr_err
= call
->ndr_pull(pull
, NDR_IN
, r
);
4526 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
4531 if (DEBUGLEVEL
>= 10) {
4532 NDR_PRINT_IN_DEBUG(PNP_GetCustomDevProp
, r
);
4535 r
->out
.result
= _PNP_GetCustomDevProp(p
, r
);
4537 if (p
->rng_fault_state
) {
4539 /* Return true here, srv_pipe_hnd.c will take care */
4543 if (DEBUGLEVEL
>= 10) {
4544 NDR_PRINT_OUT_DEBUG(PNP_GetCustomDevProp
, r
);
4547 push
= ndr_push_init_ctx(r
);
4553 ndr_err
= call
->ndr_push(push
, NDR_OUT
, r
);
4554 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
4559 blob
= ndr_push_blob(push
);
4560 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32_t)blob
.length
)) {
4570 static bool api_PNP_GetVersionInternal(pipes_struct
*p
)
4572 const struct ndr_interface_call
*call
;
4573 struct ndr_pull
*pull
;
4574 struct ndr_push
*push
;
4575 enum ndr_err_code ndr_err
;
4577 struct PNP_GetVersionInternal
*r
;
4579 call
= &ndr_table_ntsvcs
.calls
[NDR_PNP_GETVERSIONINTERNAL
];
4581 r
= talloc(talloc_tos(), struct PNP_GetVersionInternal
);
4586 if (!prs_data_blob(&p
->in_data
.data
, &blob
, r
)) {
4591 pull
= ndr_pull_init_blob(&blob
, r
);
4597 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
4598 ndr_err
= call
->ndr_pull(pull
, NDR_IN
, r
);
4599 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
4604 if (DEBUGLEVEL
>= 10) {
4605 NDR_PRINT_IN_DEBUG(PNP_GetVersionInternal
, r
);
4608 r
->out
.result
= _PNP_GetVersionInternal(p
, r
);
4610 if (p
->rng_fault_state
) {
4612 /* Return true here, srv_pipe_hnd.c will take care */
4616 if (DEBUGLEVEL
>= 10) {
4617 NDR_PRINT_OUT_DEBUG(PNP_GetVersionInternal
, r
);
4620 push
= ndr_push_init_ctx(r
);
4626 ndr_err
= call
->ndr_push(push
, NDR_OUT
, r
);
4627 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
4632 blob
= ndr_push_blob(push
);
4633 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32_t)blob
.length
)) {
4643 static bool api_PNP_GetBlockedDriverInfo(pipes_struct
*p
)
4645 const struct ndr_interface_call
*call
;
4646 struct ndr_pull
*pull
;
4647 struct ndr_push
*push
;
4648 enum ndr_err_code ndr_err
;
4650 struct PNP_GetBlockedDriverInfo
*r
;
4652 call
= &ndr_table_ntsvcs
.calls
[NDR_PNP_GETBLOCKEDDRIVERINFO
];
4654 r
= talloc(talloc_tos(), struct PNP_GetBlockedDriverInfo
);
4659 if (!prs_data_blob(&p
->in_data
.data
, &blob
, r
)) {
4664 pull
= ndr_pull_init_blob(&blob
, r
);
4670 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
4671 ndr_err
= call
->ndr_pull(pull
, NDR_IN
, r
);
4672 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
4677 if (DEBUGLEVEL
>= 10) {
4678 NDR_PRINT_IN_DEBUG(PNP_GetBlockedDriverInfo
, r
);
4681 r
->out
.result
= _PNP_GetBlockedDriverInfo(p
, r
);
4683 if (p
->rng_fault_state
) {
4685 /* Return true here, srv_pipe_hnd.c will take care */
4689 if (DEBUGLEVEL
>= 10) {
4690 NDR_PRINT_OUT_DEBUG(PNP_GetBlockedDriverInfo
, r
);
4693 push
= ndr_push_init_ctx(r
);
4699 ndr_err
= call
->ndr_push(push
, NDR_OUT
, r
);
4700 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
4705 blob
= ndr_push_blob(push
);
4706 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32_t)blob
.length
)) {
4716 static bool api_PNP_GetServerSideDeviceInstallFlags(pipes_struct
*p
)
4718 const struct ndr_interface_call
*call
;
4719 struct ndr_pull
*pull
;
4720 struct ndr_push
*push
;
4721 enum ndr_err_code ndr_err
;
4723 struct PNP_GetServerSideDeviceInstallFlags
*r
;
4725 call
= &ndr_table_ntsvcs
.calls
[NDR_PNP_GETSERVERSIDEDEVICEINSTALLFLAGS
];
4727 r
= talloc(talloc_tos(), struct PNP_GetServerSideDeviceInstallFlags
);
4732 if (!prs_data_blob(&p
->in_data
.data
, &blob
, r
)) {
4737 pull
= ndr_pull_init_blob(&blob
, r
);
4743 pull
->flags
|= LIBNDR_FLAG_REF_ALLOC
;
4744 ndr_err
= call
->ndr_pull(pull
, NDR_IN
, r
);
4745 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
4750 if (DEBUGLEVEL
>= 10) {
4751 NDR_PRINT_IN_DEBUG(PNP_GetServerSideDeviceInstallFlags
, r
);
4754 r
->out
.result
= _PNP_GetServerSideDeviceInstallFlags(p
, r
);
4756 if (p
->rng_fault_state
) {
4758 /* Return true here, srv_pipe_hnd.c will take care */
4762 if (DEBUGLEVEL
>= 10) {
4763 NDR_PRINT_OUT_DEBUG(PNP_GetServerSideDeviceInstallFlags
, r
);
4766 push
= ndr_push_init_ctx(r
);
4772 ndr_err
= call
->ndr_push(push
, NDR_OUT
, r
);
4773 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err
)) {
4778 blob
= ndr_push_blob(push
);
4779 if (!prs_copy_data_in(&p
->out_data
.rdata
, (const char *)blob
.data
, (uint32_t)blob
.length
)) {
4791 static struct api_struct api_ntsvcs_cmds
[] =
4793 {"PNP_DISCONNECT", NDR_PNP_DISCONNECT
, api_PNP_Disconnect
},
4794 {"PNP_CONNECT", NDR_PNP_CONNECT
, api_PNP_Connect
},
4795 {"PNP_GETVERSION", NDR_PNP_GETVERSION
, api_PNP_GetVersion
},
4796 {"PNP_GETGLOBALSTATE", NDR_PNP_GETGLOBALSTATE
, api_PNP_GetGlobalState
},
4797 {"PNP_INITDETECTION", NDR_PNP_INITDETECTION
, api_PNP_InitDetection
},
4798 {"PNP_REPORTLOGON", NDR_PNP_REPORTLOGON
, api_PNP_ReportLogOn
},
4799 {"PNP_VALIDATEDEVICEINSTANCE", NDR_PNP_VALIDATEDEVICEINSTANCE
, api_PNP_ValidateDeviceInstance
},
4800 {"PNP_GETROOTDEVICEINSTANCE", NDR_PNP_GETROOTDEVICEINSTANCE
, api_PNP_GetRootDeviceInstance
},
4801 {"PNP_GETRELATEDDEVICEINSTANCE", NDR_PNP_GETRELATEDDEVICEINSTANCE
, api_PNP_GetRelatedDeviceInstance
},
4802 {"PNP_ENUMERATESUBKEYS", NDR_PNP_ENUMERATESUBKEYS
, api_PNP_EnumerateSubKeys
},
4803 {"PNP_GETDEVICELIST", NDR_PNP_GETDEVICELIST
, api_PNP_GetDeviceList
},
4804 {"PNP_GETDEVICELISTSIZE", NDR_PNP_GETDEVICELISTSIZE
, api_PNP_GetDeviceListSize
},
4805 {"PNP_GETDEPTH", NDR_PNP_GETDEPTH
, api_PNP_GetDepth
},
4806 {"PNP_GETDEVICEREGPROP", NDR_PNP_GETDEVICEREGPROP
, api_PNP_GetDeviceRegProp
},
4807 {"PNP_SETDEVICEREGPROP", NDR_PNP_SETDEVICEREGPROP
, api_PNP_SetDeviceRegProp
},
4808 {"PNP_GETCLASSINSTANCE", NDR_PNP_GETCLASSINSTANCE
, api_PNP_GetClassInstance
},
4809 {"PNP_CREATEKEY", NDR_PNP_CREATEKEY
, api_PNP_CreateKey
},
4810 {"PNP_DELETEREGISTRYKEY", NDR_PNP_DELETEREGISTRYKEY
, api_PNP_DeleteRegistryKey
},
4811 {"PNP_GETCLASSCOUNT", NDR_PNP_GETCLASSCOUNT
, api_PNP_GetClassCount
},
4812 {"PNP_GETCLASSNAME", NDR_PNP_GETCLASSNAME
, api_PNP_GetClassName
},
4813 {"PNP_DELETECLASSKEY", NDR_PNP_DELETECLASSKEY
, api_PNP_DeleteClassKey
},
4814 {"PNP_GETINTERFACEDEVICEALIAS", NDR_PNP_GETINTERFACEDEVICEALIAS
, api_PNP_GetInterfaceDeviceAlias
},
4815 {"PNP_GETINTERFACEDEVICELIST", NDR_PNP_GETINTERFACEDEVICELIST
, api_PNP_GetInterfaceDeviceList
},
4816 {"PNP_GETINTERFACEDEVICELISTSIZE", NDR_PNP_GETINTERFACEDEVICELISTSIZE
, api_PNP_GetInterfaceDeviceListSize
},
4817 {"PNP_REGISTERDEVICECLASSASSOCIATION", NDR_PNP_REGISTERDEVICECLASSASSOCIATION
, api_PNP_RegisterDeviceClassAssociation
},
4818 {"PNP_UNREGISTERDEVICECLASSASSOCIATION", NDR_PNP_UNREGISTERDEVICECLASSASSOCIATION
, api_PNP_UnregisterDeviceClassAssociation
},
4819 {"PNP_GETCLASSREGPROP", NDR_PNP_GETCLASSREGPROP
, api_PNP_GetClassRegProp
},
4820 {"PNP_SETCLASSREGPROP", NDR_PNP_SETCLASSREGPROP
, api_PNP_SetClassRegProp
},
4821 {"PNP_CREATEDEVINST", NDR_PNP_CREATEDEVINST
, api_PNP_CreateDevInst
},
4822 {"PNP_DEVICEINSTANCEACTION", NDR_PNP_DEVICEINSTANCEACTION
, api_PNP_DeviceInstanceAction
},
4823 {"PNP_GETDEVICESTATUS", NDR_PNP_GETDEVICESTATUS
, api_PNP_GetDeviceStatus
},
4824 {"PNP_SETDEVICEPROBLEM", NDR_PNP_SETDEVICEPROBLEM
, api_PNP_SetDeviceProblem
},
4825 {"PNP_DISABLEDEVINST", NDR_PNP_DISABLEDEVINST
, api_PNP_DisableDevInst
},
4826 {"PNP_UNINSTALLDEVINST", NDR_PNP_UNINSTALLDEVINST
, api_PNP_UninstallDevInst
},
4827 {"PNP_ADDID", NDR_PNP_ADDID
, api_PNP_AddID
},
4828 {"PNP_REGISTERDRIVER", NDR_PNP_REGISTERDRIVER
, api_PNP_RegisterDriver
},
4829 {"PNP_QUERYREMOVE", NDR_PNP_QUERYREMOVE
, api_PNP_QueryRemove
},
4830 {"PNP_REQUESTDEVICEEJECT", NDR_PNP_REQUESTDEVICEEJECT
, api_PNP_RequestDeviceEject
},
4831 {"PNP_ISDOCKSTATIONPRESENT", NDR_PNP_ISDOCKSTATIONPRESENT
, api_PNP_IsDockStationPresent
},
4832 {"PNP_REQUESTEJECTPC", NDR_PNP_REQUESTEJECTPC
, api_PNP_RequestEjectPC
},
4833 {"PNP_HWPROFFLAGS", NDR_PNP_HWPROFFLAGS
, api_PNP_HwProfFlags
},
4834 {"PNP_GETHWPROFINFO", NDR_PNP_GETHWPROFINFO
, api_PNP_GetHwProfInfo
},
4835 {"PNP_ADDEMPTYLOGCONF", NDR_PNP_ADDEMPTYLOGCONF
, api_PNP_AddEmptyLogConf
},
4836 {"PNP_FREELOGCONF", NDR_PNP_FREELOGCONF
, api_PNP_FreeLogConf
},
4837 {"PNP_GETFIRSTLOGCONF", NDR_PNP_GETFIRSTLOGCONF
, api_PNP_GetFirstLogConf
},
4838 {"PNP_GETNEXTLOGCONF", NDR_PNP_GETNEXTLOGCONF
, api_PNP_GetNextLogConf
},
4839 {"PNP_GETLOGCONFPRIORITY", NDR_PNP_GETLOGCONFPRIORITY
, api_PNP_GetLogConfPriority
},
4840 {"PNP_ADDRESDES", NDR_PNP_ADDRESDES
, api_PNP_AddResDes
},
4841 {"PNP_FREERESDES", NDR_PNP_FREERESDES
, api_PNP_FreeResDes
},
4842 {"PNP_GETNEXTRESDES", NDR_PNP_GETNEXTRESDES
, api_PNP_GetNextResDes
},
4843 {"PNP_GETRESDESDATA", NDR_PNP_GETRESDESDATA
, api_PNP_GetResDesData
},
4844 {"PNP_GETRESDESDATASIZE", NDR_PNP_GETRESDESDATASIZE
, api_PNP_GetResDesDataSize
},
4845 {"PNP_MODIFYRESDES", NDR_PNP_MODIFYRESDES
, api_PNP_ModifyResDes
},
4846 {"PNP_DETECTRESOURCELIMIT", NDR_PNP_DETECTRESOURCELIMIT
, api_PNP_DetectResourceLimit
},
4847 {"PNP_QUERYRESCONFLIST", NDR_PNP_QUERYRESCONFLIST
, api_PNP_QueryResConfList
},
4848 {"PNP_SETHWPROF", NDR_PNP_SETHWPROF
, api_PNP_SetHwProf
},
4849 {"PNP_QUERYARBITRATORFREEDATA", NDR_PNP_QUERYARBITRATORFREEDATA
, api_PNP_QueryArbitratorFreeData
},
4850 {"PNP_QUERYARBITRATORFREESIZE", NDR_PNP_QUERYARBITRATORFREESIZE
, api_PNP_QueryArbitratorFreeSize
},
4851 {"PNP_RUNDETECTION", NDR_PNP_RUNDETECTION
, api_PNP_RunDetection
},
4852 {"PNP_REGISTERNOTIFICATION", NDR_PNP_REGISTERNOTIFICATION
, api_PNP_RegisterNotification
},
4853 {"PNP_UNREGISTERNOTIFICATION", NDR_PNP_UNREGISTERNOTIFICATION
, api_PNP_UnregisterNotification
},
4854 {"PNP_GETCUSTOMDEVPROP", NDR_PNP_GETCUSTOMDEVPROP
, api_PNP_GetCustomDevProp
},
4855 {"PNP_GETVERSIONINTERNAL", NDR_PNP_GETVERSIONINTERNAL
, api_PNP_GetVersionInternal
},
4856 {"PNP_GETBLOCKEDDRIVERINFO", NDR_PNP_GETBLOCKEDDRIVERINFO
, api_PNP_GetBlockedDriverInfo
},
4857 {"PNP_GETSERVERSIDEDEVICEINSTALLFLAGS", NDR_PNP_GETSERVERSIDEDEVICEINSTALLFLAGS
, api_PNP_GetServerSideDeviceInstallFlags
},
4860 void ntsvcs_get_pipe_fns(struct api_struct
**fns
, int *n_fns
)
4862 *fns
= api_ntsvcs_cmds
;
4863 *n_fns
= sizeof(api_ntsvcs_cmds
) / sizeof(struct api_struct
);
4866 NTSTATUS
rpc_ntsvcs_init(void)
4868 return rpc_pipe_register_commands(SMB_RPC_INTERFACE_VERSION
, "ntsvcs", "ntsvcs", api_ntsvcs_cmds
, sizeof(api_ntsvcs_cmds
) / sizeof(struct api_struct
));