1 /* parser auto-generated by pidl */
4 #include "../librpc/gen_ndr/ndr_ntsvcs.h"
6 #include "librpc/gen_ndr/ndr_winreg.h"
7 static enum ndr_err_code
ndr_push_PNP_GetIdListFlags(struct ndr_push
*ndr
, int ndr_flags
, uint32_t r
)
9 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, r
));
10 return NDR_ERR_SUCCESS
;
13 static enum ndr_err_code
ndr_pull_PNP_GetIdListFlags(struct ndr_pull
*ndr
, int ndr_flags
, uint32_t *r
)
16 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, &v
));
18 return NDR_ERR_SUCCESS
;
21 _PUBLIC_
void ndr_print_PNP_GetIdListFlags(struct ndr_print
*ndr
, const char *name
, uint32_t r
)
23 ndr_print_uint32(ndr
, name
, r
);
25 ndr_print_bitmap_flag(ndr
, sizeof(uint32_t), "CM_GETIDLIST_FILTER_ENUMERATOR", CM_GETIDLIST_FILTER_ENUMERATOR
, r
);
26 ndr_print_bitmap_flag(ndr
, sizeof(uint32_t), "CM_GETIDLIST_FILTER_SERVICE", CM_GETIDLIST_FILTER_SERVICE
, r
);
27 ndr_print_bitmap_flag(ndr
, sizeof(uint32_t), "CM_GETIDLIST_FILTER_EJECTRELATIONS", CM_GETIDLIST_FILTER_EJECTRELATIONS
, r
);
28 ndr_print_bitmap_flag(ndr
, sizeof(uint32_t), "CM_GETIDLIST_FILTER_REMOVALRELATIONS", CM_GETIDLIST_FILTER_REMOVALRELATIONS
, r
);
29 ndr_print_bitmap_flag(ndr
, sizeof(uint32_t), "CM_GETIDLIST_FILTER_POWERRELATIONS", CM_GETIDLIST_FILTER_POWERRELATIONS
, r
);
30 ndr_print_bitmap_flag(ndr
, sizeof(uint32_t), "CM_GETIDLIST_FILTER_BUSRELATIONS", CM_GETIDLIST_FILTER_BUSRELATIONS
, r
);
31 ndr_print_bitmap_flag(ndr
, sizeof(uint32_t), "CM_GETIDLIST_DONOTGENERATE", CM_GETIDLIST_DONOTGENERATE
, r
);
32 ndr_print_bitmap_flag(ndr
, sizeof(uint32_t), "CM_GETIDLIST_FILTER_TRANSPORTRELATIONS", CM_GETIDLIST_FILTER_TRANSPORTRELATIONS
, r
);
33 ndr_print_bitmap_flag(ndr
, sizeof(uint32_t), "CM_GETIDLIST_FILTER_PRESENT", CM_GETIDLIST_FILTER_PRESENT
, r
);
34 ndr_print_bitmap_flag(ndr
, sizeof(uint32_t), "CM_GETIDLIST_FILTER_CLASS", CM_GETIDLIST_FILTER_CLASS
, r
);
38 static enum ndr_err_code
ndr_push_PNP_HwProfInfo(struct ndr_push
*ndr
, int ndr_flags
, const struct PNP_HwProfInfo
*r
)
40 uint32_t cntr_friendly_name_0
;
41 if (ndr_flags
& NDR_SCALARS
) {
42 NDR_CHECK(ndr_push_align(ndr
, 4));
43 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, r
->profile_handle
));
44 for (cntr_friendly_name_0
= 0; cntr_friendly_name_0
< 80; cntr_friendly_name_0
++) {
45 NDR_CHECK(ndr_push_uint16(ndr
, NDR_SCALARS
, r
->friendly_name
[cntr_friendly_name_0
]));
47 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, r
->flags
));
49 if (ndr_flags
& NDR_BUFFERS
) {
51 return NDR_ERR_SUCCESS
;
54 static enum ndr_err_code
ndr_pull_PNP_HwProfInfo(struct ndr_pull
*ndr
, int ndr_flags
, struct PNP_HwProfInfo
*r
)
56 uint32_t size_friendly_name_0
= 0;
57 uint32_t cntr_friendly_name_0
;
58 if (ndr_flags
& NDR_SCALARS
) {
59 NDR_CHECK(ndr_pull_align(ndr
, 4));
60 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, &r
->profile_handle
));
61 size_friendly_name_0
= 80;
62 for (cntr_friendly_name_0
= 0; cntr_friendly_name_0
< size_friendly_name_0
; cntr_friendly_name_0
++) {
63 NDR_CHECK(ndr_pull_uint16(ndr
, NDR_SCALARS
, &r
->friendly_name
[cntr_friendly_name_0
]));
65 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, &r
->flags
));
67 if (ndr_flags
& NDR_BUFFERS
) {
69 return NDR_ERR_SUCCESS
;
72 _PUBLIC_
void ndr_print_PNP_HwProfInfo(struct ndr_print
*ndr
, const char *name
, const struct PNP_HwProfInfo
*r
)
74 uint32_t cntr_friendly_name_0
;
75 ndr_print_struct(ndr
, name
, "PNP_HwProfInfo");
77 ndr_print_uint32(ndr
, "profile_handle", r
->profile_handle
);
78 ndr
->print(ndr
, "%s: ARRAY(%d)", "friendly_name", (int)80);
80 for (cntr_friendly_name_0
=0;cntr_friendly_name_0
<80;cntr_friendly_name_0
++) {
82 if (asprintf(&idx_0
, "[%d]", cntr_friendly_name_0
) != -1) {
83 ndr_print_uint16(ndr
, "friendly_name", r
->friendly_name
[cntr_friendly_name_0
]);
88 ndr_print_uint32(ndr
, "flags", r
->flags
);
92 static enum ndr_err_code
ndr_push_PNP_Disconnect(struct ndr_push
*ndr
, int flags
, const struct PNP_Disconnect
*r
)
96 if (flags
& NDR_OUT
) {
97 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
99 return NDR_ERR_SUCCESS
;
102 static enum ndr_err_code
ndr_pull_PNP_Disconnect(struct ndr_pull
*ndr
, int flags
, struct PNP_Disconnect
*r
)
104 if (flags
& NDR_IN
) {
106 if (flags
& NDR_OUT
) {
107 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
109 return NDR_ERR_SUCCESS
;
112 _PUBLIC_
void ndr_print_PNP_Disconnect(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_Disconnect
*r
)
114 ndr_print_struct(ndr
, name
, "PNP_Disconnect");
116 if (flags
& NDR_SET_VALUES
) {
117 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
119 if (flags
& NDR_IN
) {
120 ndr_print_struct(ndr
, "in", "PNP_Disconnect");
124 if (flags
& NDR_OUT
) {
125 ndr_print_struct(ndr
, "out", "PNP_Disconnect");
127 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
133 static enum ndr_err_code
ndr_push_PNP_Connect(struct ndr_push
*ndr
, int flags
, const struct PNP_Connect
*r
)
135 if (flags
& NDR_IN
) {
137 if (flags
& NDR_OUT
) {
138 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
140 return NDR_ERR_SUCCESS
;
143 static enum ndr_err_code
ndr_pull_PNP_Connect(struct ndr_pull
*ndr
, int flags
, struct PNP_Connect
*r
)
145 if (flags
& NDR_IN
) {
147 if (flags
& NDR_OUT
) {
148 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
150 return NDR_ERR_SUCCESS
;
153 _PUBLIC_
void ndr_print_PNP_Connect(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_Connect
*r
)
155 ndr_print_struct(ndr
, name
, "PNP_Connect");
157 if (flags
& NDR_SET_VALUES
) {
158 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
160 if (flags
& NDR_IN
) {
161 ndr_print_struct(ndr
, "in", "PNP_Connect");
165 if (flags
& NDR_OUT
) {
166 ndr_print_struct(ndr
, "out", "PNP_Connect");
168 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
174 static enum ndr_err_code
ndr_push_PNP_GetVersion(struct ndr_push
*ndr
, int flags
, const struct PNP_GetVersion
*r
)
176 if (flags
& NDR_IN
) {
178 if (flags
& NDR_OUT
) {
179 if (r
->out
.version
== NULL
) {
180 return ndr_push_error(ndr
, NDR_ERR_INVALID_POINTER
, "NULL [ref] pointer");
182 NDR_CHECK(ndr_push_uint16(ndr
, NDR_SCALARS
, *r
->out
.version
));
183 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
185 return NDR_ERR_SUCCESS
;
188 static enum ndr_err_code
ndr_pull_PNP_GetVersion(struct ndr_pull
*ndr
, int flags
, struct PNP_GetVersion
*r
)
190 TALLOC_CTX
*_mem_save_version_0
;
191 if (flags
& NDR_IN
) {
194 NDR_PULL_ALLOC(ndr
, r
->out
.version
);
195 ZERO_STRUCTP(r
->out
.version
);
197 if (flags
& NDR_OUT
) {
198 if (ndr
->flags
& LIBNDR_FLAG_REF_ALLOC
) {
199 NDR_PULL_ALLOC(ndr
, r
->out
.version
);
201 _mem_save_version_0
= NDR_PULL_GET_MEM_CTX(ndr
);
202 NDR_PULL_SET_MEM_CTX(ndr
, r
->out
.version
, LIBNDR_FLAG_REF_ALLOC
);
203 NDR_CHECK(ndr_pull_uint16(ndr
, NDR_SCALARS
, r
->out
.version
));
204 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_version_0
, LIBNDR_FLAG_REF_ALLOC
);
205 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
207 return NDR_ERR_SUCCESS
;
210 _PUBLIC_
void ndr_print_PNP_GetVersion(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetVersion
*r
)
212 ndr_print_struct(ndr
, name
, "PNP_GetVersion");
214 if (flags
& NDR_SET_VALUES
) {
215 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
217 if (flags
& NDR_IN
) {
218 ndr_print_struct(ndr
, "in", "PNP_GetVersion");
222 if (flags
& NDR_OUT
) {
223 ndr_print_struct(ndr
, "out", "PNP_GetVersion");
225 ndr_print_ptr(ndr
, "version", r
->out
.version
);
227 ndr_print_uint16(ndr
, "version", *r
->out
.version
);
229 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
235 static enum ndr_err_code
ndr_push_PNP_GetGlobalState(struct ndr_push
*ndr
, int flags
, const struct PNP_GetGlobalState
*r
)
237 if (flags
& NDR_IN
) {
239 if (flags
& NDR_OUT
) {
240 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
242 return NDR_ERR_SUCCESS
;
245 static enum ndr_err_code
ndr_pull_PNP_GetGlobalState(struct ndr_pull
*ndr
, int flags
, struct PNP_GetGlobalState
*r
)
247 if (flags
& NDR_IN
) {
249 if (flags
& NDR_OUT
) {
250 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
252 return NDR_ERR_SUCCESS
;
255 _PUBLIC_
void ndr_print_PNP_GetGlobalState(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetGlobalState
*r
)
257 ndr_print_struct(ndr
, name
, "PNP_GetGlobalState");
259 if (flags
& NDR_SET_VALUES
) {
260 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
262 if (flags
& NDR_IN
) {
263 ndr_print_struct(ndr
, "in", "PNP_GetGlobalState");
267 if (flags
& NDR_OUT
) {
268 ndr_print_struct(ndr
, "out", "PNP_GetGlobalState");
270 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
276 static enum ndr_err_code
ndr_push_PNP_InitDetection(struct ndr_push
*ndr
, int flags
, const struct PNP_InitDetection
*r
)
278 if (flags
& NDR_IN
) {
280 if (flags
& NDR_OUT
) {
281 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
283 return NDR_ERR_SUCCESS
;
286 static enum ndr_err_code
ndr_pull_PNP_InitDetection(struct ndr_pull
*ndr
, int flags
, struct PNP_InitDetection
*r
)
288 if (flags
& NDR_IN
) {
290 if (flags
& NDR_OUT
) {
291 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
293 return NDR_ERR_SUCCESS
;
296 _PUBLIC_
void ndr_print_PNP_InitDetection(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_InitDetection
*r
)
298 ndr_print_struct(ndr
, name
, "PNP_InitDetection");
300 if (flags
& NDR_SET_VALUES
) {
301 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
303 if (flags
& NDR_IN
) {
304 ndr_print_struct(ndr
, "in", "PNP_InitDetection");
308 if (flags
& NDR_OUT
) {
309 ndr_print_struct(ndr
, "out", "PNP_InitDetection");
311 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
317 static enum ndr_err_code
ndr_push_PNP_ReportLogOn(struct ndr_push
*ndr
, int flags
, const struct PNP_ReportLogOn
*r
)
319 if (flags
& NDR_IN
) {
321 if (flags
& NDR_OUT
) {
322 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
324 return NDR_ERR_SUCCESS
;
327 static enum ndr_err_code
ndr_pull_PNP_ReportLogOn(struct ndr_pull
*ndr
, int flags
, struct PNP_ReportLogOn
*r
)
329 if (flags
& NDR_IN
) {
331 if (flags
& NDR_OUT
) {
332 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
334 return NDR_ERR_SUCCESS
;
337 _PUBLIC_
void ndr_print_PNP_ReportLogOn(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_ReportLogOn
*r
)
339 ndr_print_struct(ndr
, name
, "PNP_ReportLogOn");
341 if (flags
& NDR_SET_VALUES
) {
342 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
344 if (flags
& NDR_IN
) {
345 ndr_print_struct(ndr
, "in", "PNP_ReportLogOn");
349 if (flags
& NDR_OUT
) {
350 ndr_print_struct(ndr
, "out", "PNP_ReportLogOn");
352 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
358 static enum ndr_err_code
ndr_push_PNP_ValidateDeviceInstance(struct ndr_push
*ndr
, int flags
, const struct PNP_ValidateDeviceInstance
*r
)
360 if (flags
& NDR_IN
) {
361 if (r
->in
.devicepath
== NULL
) {
362 return ndr_push_error(ndr
, NDR_ERR_INVALID_POINTER
, "NULL [ref] pointer");
364 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, ndr_charset_length(r
->in
.devicepath
, CH_UTF16
)));
365 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, 0));
366 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, ndr_charset_length(r
->in
.devicepath
, CH_UTF16
)));
367 NDR_CHECK(ndr_push_charset(ndr
, NDR_SCALARS
, r
->in
.devicepath
, ndr_charset_length(r
->in
.devicepath
, CH_UTF16
), sizeof(uint16_t), CH_UTF16
));
368 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, r
->in
.flags
));
370 if (flags
& NDR_OUT
) {
371 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
373 return NDR_ERR_SUCCESS
;
376 static enum ndr_err_code
ndr_pull_PNP_ValidateDeviceInstance(struct ndr_pull
*ndr
, int flags
, struct PNP_ValidateDeviceInstance
*r
)
378 uint32_t size_devicepath_1
= 0;
379 uint32_t length_devicepath_1
= 0;
380 if (flags
& NDR_IN
) {
381 NDR_CHECK(ndr_pull_array_size(ndr
, &r
->in
.devicepath
));
382 NDR_CHECK(ndr_pull_array_length(ndr
, &r
->in
.devicepath
));
383 size_devicepath_1
= ndr_get_array_size(ndr
, &r
->in
.devicepath
);
384 length_devicepath_1
= ndr_get_array_length(ndr
, &r
->in
.devicepath
);
385 if (length_devicepath_1
> size_devicepath_1
) {
386 return ndr_pull_error(ndr
, NDR_ERR_ARRAY_SIZE
, "Bad array size %u should exceed array length %u", size_devicepath_1
, length_devicepath_1
);
388 NDR_CHECK(ndr_check_string_terminator(ndr
, length_devicepath_1
, sizeof(uint16_t)));
389 NDR_CHECK(ndr_pull_charset(ndr
, NDR_SCALARS
, &r
->in
.devicepath
, length_devicepath_1
, sizeof(uint16_t), CH_UTF16
));
390 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, &r
->in
.flags
));
392 if (flags
& NDR_OUT
) {
393 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
395 return NDR_ERR_SUCCESS
;
398 _PUBLIC_
void ndr_print_PNP_ValidateDeviceInstance(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_ValidateDeviceInstance
*r
)
400 ndr_print_struct(ndr
, name
, "PNP_ValidateDeviceInstance");
402 if (flags
& NDR_SET_VALUES
) {
403 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
405 if (flags
& NDR_IN
) {
406 ndr_print_struct(ndr
, "in", "PNP_ValidateDeviceInstance");
408 ndr_print_ptr(ndr
, "devicepath", r
->in
.devicepath
);
410 ndr_print_string(ndr
, "devicepath", r
->in
.devicepath
);
412 ndr_print_uint32(ndr
, "flags", r
->in
.flags
);
415 if (flags
& NDR_OUT
) {
416 ndr_print_struct(ndr
, "out", "PNP_ValidateDeviceInstance");
418 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
424 static enum ndr_err_code
ndr_push_PNP_GetRootDeviceInstance(struct ndr_push
*ndr
, int flags
, const struct PNP_GetRootDeviceInstance
*r
)
426 if (flags
& NDR_IN
) {
428 if (flags
& NDR_OUT
) {
429 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
431 return NDR_ERR_SUCCESS
;
434 static enum ndr_err_code
ndr_pull_PNP_GetRootDeviceInstance(struct ndr_pull
*ndr
, int flags
, struct PNP_GetRootDeviceInstance
*r
)
436 if (flags
& NDR_IN
) {
438 if (flags
& NDR_OUT
) {
439 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
441 return NDR_ERR_SUCCESS
;
444 _PUBLIC_
void ndr_print_PNP_GetRootDeviceInstance(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetRootDeviceInstance
*r
)
446 ndr_print_struct(ndr
, name
, "PNP_GetRootDeviceInstance");
448 if (flags
& NDR_SET_VALUES
) {
449 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
451 if (flags
& NDR_IN
) {
452 ndr_print_struct(ndr
, "in", "PNP_GetRootDeviceInstance");
456 if (flags
& NDR_OUT
) {
457 ndr_print_struct(ndr
, "out", "PNP_GetRootDeviceInstance");
459 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
465 static enum ndr_err_code
ndr_push_PNP_GetRelatedDeviceInstance(struct ndr_push
*ndr
, int flags
, const struct PNP_GetRelatedDeviceInstance
*r
)
467 if (flags
& NDR_IN
) {
469 if (flags
& NDR_OUT
) {
470 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
472 return NDR_ERR_SUCCESS
;
475 static enum ndr_err_code
ndr_pull_PNP_GetRelatedDeviceInstance(struct ndr_pull
*ndr
, int flags
, struct PNP_GetRelatedDeviceInstance
*r
)
477 if (flags
& NDR_IN
) {
479 if (flags
& NDR_OUT
) {
480 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
482 return NDR_ERR_SUCCESS
;
485 _PUBLIC_
void ndr_print_PNP_GetRelatedDeviceInstance(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetRelatedDeviceInstance
*r
)
487 ndr_print_struct(ndr
, name
, "PNP_GetRelatedDeviceInstance");
489 if (flags
& NDR_SET_VALUES
) {
490 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
492 if (flags
& NDR_IN
) {
493 ndr_print_struct(ndr
, "in", "PNP_GetRelatedDeviceInstance");
497 if (flags
& NDR_OUT
) {
498 ndr_print_struct(ndr
, "out", "PNP_GetRelatedDeviceInstance");
500 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
506 static enum ndr_err_code
ndr_push_PNP_EnumerateSubKeys(struct ndr_push
*ndr
, int flags
, const struct PNP_EnumerateSubKeys
*r
)
508 if (flags
& NDR_IN
) {
510 if (flags
& NDR_OUT
) {
511 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
513 return NDR_ERR_SUCCESS
;
516 static enum ndr_err_code
ndr_pull_PNP_EnumerateSubKeys(struct ndr_pull
*ndr
, int flags
, struct PNP_EnumerateSubKeys
*r
)
518 if (flags
& NDR_IN
) {
520 if (flags
& NDR_OUT
) {
521 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
523 return NDR_ERR_SUCCESS
;
526 _PUBLIC_
void ndr_print_PNP_EnumerateSubKeys(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_EnumerateSubKeys
*r
)
528 ndr_print_struct(ndr
, name
, "PNP_EnumerateSubKeys");
530 if (flags
& NDR_SET_VALUES
) {
531 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
533 if (flags
& NDR_IN
) {
534 ndr_print_struct(ndr
, "in", "PNP_EnumerateSubKeys");
538 if (flags
& NDR_OUT
) {
539 ndr_print_struct(ndr
, "out", "PNP_EnumerateSubKeys");
541 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
547 static enum ndr_err_code
ndr_push_PNP_GetDeviceList(struct ndr_push
*ndr
, int flags
, const struct PNP_GetDeviceList
*r
)
549 uint32_t cntr_buffer_1
;
550 if (flags
& NDR_IN
) {
551 NDR_CHECK(ndr_push_unique_ptr(ndr
, r
->in
.filter
));
553 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, ndr_charset_length(r
->in
.filter
, CH_UTF16
)));
554 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, 0));
555 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, ndr_charset_length(r
->in
.filter
, CH_UTF16
)));
556 NDR_CHECK(ndr_push_charset(ndr
, NDR_SCALARS
, r
->in
.filter
, ndr_charset_length(r
->in
.filter
, CH_UTF16
), sizeof(uint16_t), CH_UTF16
));
558 if (r
->in
.length
== NULL
) {
559 return ndr_push_error(ndr
, NDR_ERR_INVALID_POINTER
, "NULL [ref] pointer");
561 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, *r
->in
.length
));
562 NDR_CHECK(ndr_push_PNP_GetIdListFlags(ndr
, NDR_SCALARS
, r
->in
.flags
));
564 if (flags
& NDR_OUT
) {
565 if (r
->out
.buffer
== NULL
) {
566 return ndr_push_error(ndr
, NDR_ERR_INVALID_POINTER
, "NULL [ref] pointer");
568 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, *r
->out
.length
));
569 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, 0));
570 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, *r
->out
.length
));
571 for (cntr_buffer_1
= 0; cntr_buffer_1
< *r
->out
.length
; cntr_buffer_1
++) {
572 NDR_CHECK(ndr_push_uint16(ndr
, NDR_SCALARS
, r
->out
.buffer
[cntr_buffer_1
]));
574 if (r
->out
.length
== NULL
) {
575 return ndr_push_error(ndr
, NDR_ERR_INVALID_POINTER
, "NULL [ref] pointer");
577 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, *r
->out
.length
));
578 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
580 return NDR_ERR_SUCCESS
;
583 static enum ndr_err_code
ndr_pull_PNP_GetDeviceList(struct ndr_pull
*ndr
, int flags
, struct PNP_GetDeviceList
*r
)
585 uint32_t _ptr_filter
;
586 uint32_t size_filter_1
= 0;
587 uint32_t length_filter_1
= 0;
588 uint32_t size_buffer_1
= 0;
589 uint32_t length_buffer_1
= 0;
590 uint32_t cntr_buffer_1
;
591 TALLOC_CTX
*_mem_save_filter_0
;
592 TALLOC_CTX
*_mem_save_buffer_1
;
593 TALLOC_CTX
*_mem_save_length_0
;
594 if (flags
& NDR_IN
) {
597 NDR_CHECK(ndr_pull_generic_ptr(ndr
, &_ptr_filter
));
599 NDR_PULL_ALLOC(ndr
, r
->in
.filter
);
604 _mem_save_filter_0
= NDR_PULL_GET_MEM_CTX(ndr
);
605 NDR_PULL_SET_MEM_CTX(ndr
, r
->in
.filter
, 0);
606 NDR_CHECK(ndr_pull_array_size(ndr
, &r
->in
.filter
));
607 NDR_CHECK(ndr_pull_array_length(ndr
, &r
->in
.filter
));
608 size_filter_1
= ndr_get_array_size(ndr
, &r
->in
.filter
);
609 length_filter_1
= ndr_get_array_length(ndr
, &r
->in
.filter
);
610 if (length_filter_1
> size_filter_1
) {
611 return ndr_pull_error(ndr
, NDR_ERR_ARRAY_SIZE
, "Bad array size %u should exceed array length %u", size_filter_1
, length_filter_1
);
613 NDR_CHECK(ndr_check_string_terminator(ndr
, length_filter_1
, sizeof(uint16_t)));
614 NDR_CHECK(ndr_pull_charset(ndr
, NDR_SCALARS
, &r
->in
.filter
, length_filter_1
, sizeof(uint16_t), CH_UTF16
));
615 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_filter_0
, 0);
617 if (ndr
->flags
& LIBNDR_FLAG_REF_ALLOC
) {
618 NDR_PULL_ALLOC(ndr
, r
->in
.length
);
620 _mem_save_length_0
= NDR_PULL_GET_MEM_CTX(ndr
);
621 NDR_PULL_SET_MEM_CTX(ndr
, r
->in
.length
, LIBNDR_FLAG_REF_ALLOC
);
622 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, r
->in
.length
));
623 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_length_0
, LIBNDR_FLAG_REF_ALLOC
);
624 NDR_CHECK(ndr_pull_PNP_GetIdListFlags(ndr
, NDR_SCALARS
, &r
->in
.flags
));
625 NDR_PULL_ALLOC_N(ndr
, r
->out
.buffer
, *r
->in
.length
);
626 memset(r
->out
.buffer
, 0, (*r
->in
.length
) * sizeof(*r
->out
.buffer
));
627 NDR_PULL_ALLOC(ndr
, r
->out
.length
);
628 *r
->out
.length
= *r
->in
.length
;
630 if (flags
& NDR_OUT
) {
631 NDR_CHECK(ndr_pull_array_size(ndr
, &r
->out
.buffer
));
632 NDR_CHECK(ndr_pull_array_length(ndr
, &r
->out
.buffer
));
633 size_buffer_1
= ndr_get_array_size(ndr
, &r
->out
.buffer
);
634 length_buffer_1
= ndr_get_array_length(ndr
, &r
->out
.buffer
);
635 if (length_buffer_1
> size_buffer_1
) {
636 return ndr_pull_error(ndr
, NDR_ERR_ARRAY_SIZE
, "Bad array size %u should exceed array length %u", size_buffer_1
, length_buffer_1
);
638 if (ndr
->flags
& LIBNDR_FLAG_REF_ALLOC
) {
639 NDR_PULL_ALLOC_N(ndr
, r
->out
.buffer
, size_buffer_1
);
641 _mem_save_buffer_1
= NDR_PULL_GET_MEM_CTX(ndr
);
642 NDR_PULL_SET_MEM_CTX(ndr
, r
->out
.buffer
, 0);
643 for (cntr_buffer_1
= 0; cntr_buffer_1
< length_buffer_1
; cntr_buffer_1
++) {
644 NDR_CHECK(ndr_pull_uint16(ndr
, NDR_SCALARS
, &r
->out
.buffer
[cntr_buffer_1
]));
646 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_buffer_1
, 0);
647 if (ndr
->flags
& LIBNDR_FLAG_REF_ALLOC
) {
648 NDR_PULL_ALLOC(ndr
, r
->out
.length
);
650 _mem_save_length_0
= NDR_PULL_GET_MEM_CTX(ndr
);
651 NDR_PULL_SET_MEM_CTX(ndr
, r
->out
.length
, LIBNDR_FLAG_REF_ALLOC
);
652 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, r
->out
.length
));
653 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_length_0
, LIBNDR_FLAG_REF_ALLOC
);
654 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
656 NDR_CHECK(ndr_check_array_size(ndr
, (void*)&r
->out
.buffer
, *r
->out
.length
));
659 NDR_CHECK(ndr_check_array_length(ndr
, (void*)&r
->out
.buffer
, *r
->out
.length
));
662 return NDR_ERR_SUCCESS
;
665 _PUBLIC_
void ndr_print_PNP_GetDeviceList(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetDeviceList
*r
)
667 uint32_t cntr_buffer_1
;
668 ndr_print_struct(ndr
, name
, "PNP_GetDeviceList");
670 if (flags
& NDR_SET_VALUES
) {
671 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
673 if (flags
& NDR_IN
) {
674 ndr_print_struct(ndr
, "in", "PNP_GetDeviceList");
676 ndr_print_ptr(ndr
, "filter", r
->in
.filter
);
679 ndr_print_string(ndr
, "filter", r
->in
.filter
);
682 ndr_print_ptr(ndr
, "length", r
->in
.length
);
684 ndr_print_uint32(ndr
, "length", *r
->in
.length
);
686 ndr_print_PNP_GetIdListFlags(ndr
, "flags", r
->in
.flags
);
689 if (flags
& NDR_OUT
) {
690 ndr_print_struct(ndr
, "out", "PNP_GetDeviceList");
692 ndr_print_ptr(ndr
, "buffer", r
->out
.buffer
);
694 ndr
->print(ndr
, "%s: ARRAY(%d)", "buffer", (int)*r
->out
.length
);
696 for (cntr_buffer_1
=0;cntr_buffer_1
<*r
->out
.length
;cntr_buffer_1
++) {
698 if (asprintf(&idx_1
, "[%d]", cntr_buffer_1
) != -1) {
699 ndr_print_uint16(ndr
, "buffer", r
->out
.buffer
[cntr_buffer_1
]);
705 ndr_print_ptr(ndr
, "length", r
->out
.length
);
707 ndr_print_uint32(ndr
, "length", *r
->out
.length
);
709 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
715 static enum ndr_err_code
ndr_push_PNP_GetDeviceListSize(struct ndr_push
*ndr
, int flags
, const struct PNP_GetDeviceListSize
*r
)
717 if (flags
& NDR_IN
) {
718 NDR_CHECK(ndr_push_unique_ptr(ndr
, r
->in
.devicename
));
719 if (r
->in
.devicename
) {
720 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, ndr_charset_length(r
->in
.devicename
, CH_UTF16
)));
721 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, 0));
722 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, ndr_charset_length(r
->in
.devicename
, CH_UTF16
)));
723 NDR_CHECK(ndr_push_charset(ndr
, NDR_SCALARS
, r
->in
.devicename
, ndr_charset_length(r
->in
.devicename
, CH_UTF16
), sizeof(uint16_t), CH_UTF16
));
725 NDR_CHECK(ndr_push_PNP_GetIdListFlags(ndr
, NDR_SCALARS
, r
->in
.flags
));
727 if (flags
& NDR_OUT
) {
728 if (r
->out
.size
== NULL
) {
729 return ndr_push_error(ndr
, NDR_ERR_INVALID_POINTER
, "NULL [ref] pointer");
731 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, *r
->out
.size
));
732 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
734 return NDR_ERR_SUCCESS
;
737 static enum ndr_err_code
ndr_pull_PNP_GetDeviceListSize(struct ndr_pull
*ndr
, int flags
, struct PNP_GetDeviceListSize
*r
)
739 uint32_t _ptr_devicename
;
740 uint32_t size_devicename_1
= 0;
741 uint32_t length_devicename_1
= 0;
742 TALLOC_CTX
*_mem_save_devicename_0
;
743 TALLOC_CTX
*_mem_save_size_0
;
744 if (flags
& NDR_IN
) {
747 NDR_CHECK(ndr_pull_generic_ptr(ndr
, &_ptr_devicename
));
748 if (_ptr_devicename
) {
749 NDR_PULL_ALLOC(ndr
, r
->in
.devicename
);
751 r
->in
.devicename
= NULL
;
753 if (r
->in
.devicename
) {
754 _mem_save_devicename_0
= NDR_PULL_GET_MEM_CTX(ndr
);
755 NDR_PULL_SET_MEM_CTX(ndr
, r
->in
.devicename
, 0);
756 NDR_CHECK(ndr_pull_array_size(ndr
, &r
->in
.devicename
));
757 NDR_CHECK(ndr_pull_array_length(ndr
, &r
->in
.devicename
));
758 size_devicename_1
= ndr_get_array_size(ndr
, &r
->in
.devicename
);
759 length_devicename_1
= ndr_get_array_length(ndr
, &r
->in
.devicename
);
760 if (length_devicename_1
> size_devicename_1
) {
761 return ndr_pull_error(ndr
, NDR_ERR_ARRAY_SIZE
, "Bad array size %u should exceed array length %u", size_devicename_1
, length_devicename_1
);
763 NDR_CHECK(ndr_check_string_terminator(ndr
, length_devicename_1
, sizeof(uint16_t)));
764 NDR_CHECK(ndr_pull_charset(ndr
, NDR_SCALARS
, &r
->in
.devicename
, length_devicename_1
, sizeof(uint16_t), CH_UTF16
));
765 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_devicename_0
, 0);
767 NDR_CHECK(ndr_pull_PNP_GetIdListFlags(ndr
, NDR_SCALARS
, &r
->in
.flags
));
768 NDR_PULL_ALLOC(ndr
, r
->out
.size
);
769 ZERO_STRUCTP(r
->out
.size
);
771 if (flags
& NDR_OUT
) {
772 if (ndr
->flags
& LIBNDR_FLAG_REF_ALLOC
) {
773 NDR_PULL_ALLOC(ndr
, r
->out
.size
);
775 _mem_save_size_0
= NDR_PULL_GET_MEM_CTX(ndr
);
776 NDR_PULL_SET_MEM_CTX(ndr
, r
->out
.size
, LIBNDR_FLAG_REF_ALLOC
);
777 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, r
->out
.size
));
778 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_size_0
, LIBNDR_FLAG_REF_ALLOC
);
779 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
781 return NDR_ERR_SUCCESS
;
784 _PUBLIC_
void ndr_print_PNP_GetDeviceListSize(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetDeviceListSize
*r
)
786 ndr_print_struct(ndr
, name
, "PNP_GetDeviceListSize");
788 if (flags
& NDR_SET_VALUES
) {
789 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
791 if (flags
& NDR_IN
) {
792 ndr_print_struct(ndr
, "in", "PNP_GetDeviceListSize");
794 ndr_print_ptr(ndr
, "devicename", r
->in
.devicename
);
796 if (r
->in
.devicename
) {
797 ndr_print_string(ndr
, "devicename", r
->in
.devicename
);
800 ndr_print_PNP_GetIdListFlags(ndr
, "flags", r
->in
.flags
);
803 if (flags
& NDR_OUT
) {
804 ndr_print_struct(ndr
, "out", "PNP_GetDeviceListSize");
806 ndr_print_ptr(ndr
, "size", r
->out
.size
);
808 ndr_print_uint32(ndr
, "size", *r
->out
.size
);
810 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
816 static enum ndr_err_code
ndr_push_PNP_GetDepth(struct ndr_push
*ndr
, int flags
, const struct PNP_GetDepth
*r
)
818 if (flags
& NDR_IN
) {
820 if (flags
& NDR_OUT
) {
821 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
823 return NDR_ERR_SUCCESS
;
826 static enum ndr_err_code
ndr_pull_PNP_GetDepth(struct ndr_pull
*ndr
, int flags
, struct PNP_GetDepth
*r
)
828 if (flags
& NDR_IN
) {
830 if (flags
& NDR_OUT
) {
831 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
833 return NDR_ERR_SUCCESS
;
836 _PUBLIC_
void ndr_print_PNP_GetDepth(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetDepth
*r
)
838 ndr_print_struct(ndr
, name
, "PNP_GetDepth");
840 if (flags
& NDR_SET_VALUES
) {
841 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
843 if (flags
& NDR_IN
) {
844 ndr_print_struct(ndr
, "in", "PNP_GetDepth");
848 if (flags
& NDR_OUT
) {
849 ndr_print_struct(ndr
, "out", "PNP_GetDepth");
851 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
857 static enum ndr_err_code
ndr_push_PNP_GetDeviceRegProp(struct ndr_push
*ndr
, int flags
, const struct PNP_GetDeviceRegProp
*r
)
859 if (flags
& NDR_IN
) {
860 if (r
->in
.devicepath
== NULL
) {
861 return ndr_push_error(ndr
, NDR_ERR_INVALID_POINTER
, "NULL [ref] pointer");
863 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, ndr_charset_length(r
->in
.devicepath
, CH_UTF16
)));
864 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, 0));
865 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, ndr_charset_length(r
->in
.devicepath
, CH_UTF16
)));
866 NDR_CHECK(ndr_push_charset(ndr
, NDR_SCALARS
, r
->in
.devicepath
, ndr_charset_length(r
->in
.devicepath
, CH_UTF16
), sizeof(uint16_t), CH_UTF16
));
867 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, r
->in
.property
));
868 if (r
->in
.reg_data_type
== NULL
) {
869 return ndr_push_error(ndr
, NDR_ERR_INVALID_POINTER
, "NULL [ref] pointer");
871 NDR_CHECK(ndr_push_winreg_Type(ndr
, NDR_SCALARS
, *r
->in
.reg_data_type
));
872 if (r
->in
.buffer_size
== NULL
) {
873 return ndr_push_error(ndr
, NDR_ERR_INVALID_POINTER
, "NULL [ref] pointer");
875 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, *r
->in
.buffer_size
));
876 if (r
->in
.needed
== NULL
) {
877 return ndr_push_error(ndr
, NDR_ERR_INVALID_POINTER
, "NULL [ref] pointer");
879 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, *r
->in
.needed
));
880 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, r
->in
.flags
));
882 if (flags
& NDR_OUT
) {
883 if (r
->out
.reg_data_type
== NULL
) {
884 return ndr_push_error(ndr
, NDR_ERR_INVALID_POINTER
, "NULL [ref] pointer");
886 NDR_CHECK(ndr_push_winreg_Type(ndr
, NDR_SCALARS
, *r
->out
.reg_data_type
));
887 if (r
->out
.buffer
== NULL
) {
888 return ndr_push_error(ndr
, NDR_ERR_INVALID_POINTER
, "NULL [ref] pointer");
890 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, *r
->out
.buffer_size
));
891 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, 0));
892 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, *r
->out
.buffer_size
));
893 NDR_CHECK(ndr_push_array_uint8(ndr
, NDR_SCALARS
, r
->out
.buffer
, *r
->out
.buffer_size
));
894 if (r
->out
.buffer_size
== NULL
) {
895 return ndr_push_error(ndr
, NDR_ERR_INVALID_POINTER
, "NULL [ref] pointer");
897 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, *r
->out
.buffer_size
));
898 if (r
->out
.needed
== NULL
) {
899 return ndr_push_error(ndr
, NDR_ERR_INVALID_POINTER
, "NULL [ref] pointer");
901 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, *r
->out
.needed
));
902 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
904 return NDR_ERR_SUCCESS
;
907 static enum ndr_err_code
ndr_pull_PNP_GetDeviceRegProp(struct ndr_pull
*ndr
, int flags
, struct PNP_GetDeviceRegProp
*r
)
909 uint32_t size_devicepath_1
= 0;
910 uint32_t length_devicepath_1
= 0;
911 uint32_t size_buffer_1
= 0;
912 uint32_t length_buffer_1
= 0;
913 TALLOC_CTX
*_mem_save_reg_data_type_0
;
914 TALLOC_CTX
*_mem_save_buffer_size_0
;
915 TALLOC_CTX
*_mem_save_needed_0
;
916 if (flags
& NDR_IN
) {
919 NDR_CHECK(ndr_pull_array_size(ndr
, &r
->in
.devicepath
));
920 NDR_CHECK(ndr_pull_array_length(ndr
, &r
->in
.devicepath
));
921 size_devicepath_1
= ndr_get_array_size(ndr
, &r
->in
.devicepath
);
922 length_devicepath_1
= ndr_get_array_length(ndr
, &r
->in
.devicepath
);
923 if (length_devicepath_1
> size_devicepath_1
) {
924 return ndr_pull_error(ndr
, NDR_ERR_ARRAY_SIZE
, "Bad array size %u should exceed array length %u", size_devicepath_1
, length_devicepath_1
);
926 NDR_CHECK(ndr_check_string_terminator(ndr
, length_devicepath_1
, sizeof(uint16_t)));
927 NDR_CHECK(ndr_pull_charset(ndr
, NDR_SCALARS
, &r
->in
.devicepath
, length_devicepath_1
, sizeof(uint16_t), CH_UTF16
));
928 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, &r
->in
.property
));
929 if (ndr
->flags
& LIBNDR_FLAG_REF_ALLOC
) {
930 NDR_PULL_ALLOC(ndr
, r
->in
.reg_data_type
);
932 _mem_save_reg_data_type_0
= NDR_PULL_GET_MEM_CTX(ndr
);
933 NDR_PULL_SET_MEM_CTX(ndr
, r
->in
.reg_data_type
, LIBNDR_FLAG_REF_ALLOC
);
934 NDR_CHECK(ndr_pull_winreg_Type(ndr
, NDR_SCALARS
, r
->in
.reg_data_type
));
935 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_reg_data_type_0
, LIBNDR_FLAG_REF_ALLOC
);
936 if (ndr
->flags
& LIBNDR_FLAG_REF_ALLOC
) {
937 NDR_PULL_ALLOC(ndr
, r
->in
.buffer_size
);
939 _mem_save_buffer_size_0
= NDR_PULL_GET_MEM_CTX(ndr
);
940 NDR_PULL_SET_MEM_CTX(ndr
, r
->in
.buffer_size
, LIBNDR_FLAG_REF_ALLOC
);
941 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, r
->in
.buffer_size
));
942 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_buffer_size_0
, LIBNDR_FLAG_REF_ALLOC
);
943 if (ndr
->flags
& LIBNDR_FLAG_REF_ALLOC
) {
944 NDR_PULL_ALLOC(ndr
, r
->in
.needed
);
946 _mem_save_needed_0
= NDR_PULL_GET_MEM_CTX(ndr
);
947 NDR_PULL_SET_MEM_CTX(ndr
, r
->in
.needed
, LIBNDR_FLAG_REF_ALLOC
);
948 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, r
->in
.needed
));
949 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_needed_0
, LIBNDR_FLAG_REF_ALLOC
);
950 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, &r
->in
.flags
));
951 NDR_PULL_ALLOC(ndr
, r
->out
.reg_data_type
);
952 *r
->out
.reg_data_type
= *r
->in
.reg_data_type
;
953 NDR_PULL_ALLOC_N(ndr
, r
->out
.buffer
, *r
->in
.buffer_size
);
954 memset(r
->out
.buffer
, 0, (*r
->in
.buffer_size
) * sizeof(*r
->out
.buffer
));
955 NDR_PULL_ALLOC(ndr
, r
->out
.buffer_size
);
956 *r
->out
.buffer_size
= *r
->in
.buffer_size
;
957 NDR_PULL_ALLOC(ndr
, r
->out
.needed
);
958 *r
->out
.needed
= *r
->in
.needed
;
960 if (flags
& NDR_OUT
) {
961 if (ndr
->flags
& LIBNDR_FLAG_REF_ALLOC
) {
962 NDR_PULL_ALLOC(ndr
, r
->out
.reg_data_type
);
964 _mem_save_reg_data_type_0
= NDR_PULL_GET_MEM_CTX(ndr
);
965 NDR_PULL_SET_MEM_CTX(ndr
, r
->out
.reg_data_type
, LIBNDR_FLAG_REF_ALLOC
);
966 NDR_CHECK(ndr_pull_winreg_Type(ndr
, NDR_SCALARS
, r
->out
.reg_data_type
));
967 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_reg_data_type_0
, LIBNDR_FLAG_REF_ALLOC
);
968 NDR_CHECK(ndr_pull_array_size(ndr
, &r
->out
.buffer
));
969 NDR_CHECK(ndr_pull_array_length(ndr
, &r
->out
.buffer
));
970 size_buffer_1
= ndr_get_array_size(ndr
, &r
->out
.buffer
);
971 length_buffer_1
= ndr_get_array_length(ndr
, &r
->out
.buffer
);
972 if (length_buffer_1
> size_buffer_1
) {
973 return ndr_pull_error(ndr
, NDR_ERR_ARRAY_SIZE
, "Bad array size %u should exceed array length %u", size_buffer_1
, length_buffer_1
);
975 if (ndr
->flags
& LIBNDR_FLAG_REF_ALLOC
) {
976 NDR_PULL_ALLOC_N(ndr
, r
->out
.buffer
, size_buffer_1
);
978 NDR_CHECK(ndr_pull_array_uint8(ndr
, NDR_SCALARS
, r
->out
.buffer
, length_buffer_1
));
979 if (ndr
->flags
& LIBNDR_FLAG_REF_ALLOC
) {
980 NDR_PULL_ALLOC(ndr
, r
->out
.buffer_size
);
982 _mem_save_buffer_size_0
= NDR_PULL_GET_MEM_CTX(ndr
);
983 NDR_PULL_SET_MEM_CTX(ndr
, r
->out
.buffer_size
, LIBNDR_FLAG_REF_ALLOC
);
984 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, r
->out
.buffer_size
));
985 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_buffer_size_0
, LIBNDR_FLAG_REF_ALLOC
);
986 if (ndr
->flags
& LIBNDR_FLAG_REF_ALLOC
) {
987 NDR_PULL_ALLOC(ndr
, r
->out
.needed
);
989 _mem_save_needed_0
= NDR_PULL_GET_MEM_CTX(ndr
);
990 NDR_PULL_SET_MEM_CTX(ndr
, r
->out
.needed
, LIBNDR_FLAG_REF_ALLOC
);
991 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, r
->out
.needed
));
992 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_needed_0
, LIBNDR_FLAG_REF_ALLOC
);
993 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
995 NDR_CHECK(ndr_check_array_size(ndr
, (void*)&r
->out
.buffer
, *r
->out
.buffer_size
));
998 NDR_CHECK(ndr_check_array_length(ndr
, (void*)&r
->out
.buffer
, *r
->out
.buffer_size
));
1001 return NDR_ERR_SUCCESS
;
1004 _PUBLIC_
void ndr_print_PNP_GetDeviceRegProp(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetDeviceRegProp
*r
)
1006 ndr_print_struct(ndr
, name
, "PNP_GetDeviceRegProp");
1008 if (flags
& NDR_SET_VALUES
) {
1009 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1011 if (flags
& NDR_IN
) {
1012 ndr_print_struct(ndr
, "in", "PNP_GetDeviceRegProp");
1014 ndr_print_ptr(ndr
, "devicepath", r
->in
.devicepath
);
1016 ndr_print_string(ndr
, "devicepath", r
->in
.devicepath
);
1018 ndr_print_uint32(ndr
, "property", r
->in
.property
);
1019 ndr_print_ptr(ndr
, "reg_data_type", r
->in
.reg_data_type
);
1021 ndr_print_winreg_Type(ndr
, "reg_data_type", *r
->in
.reg_data_type
);
1023 ndr_print_ptr(ndr
, "buffer_size", r
->in
.buffer_size
);
1025 ndr_print_uint32(ndr
, "buffer_size", *r
->in
.buffer_size
);
1027 ndr_print_ptr(ndr
, "needed", r
->in
.needed
);
1029 ndr_print_uint32(ndr
, "needed", *r
->in
.needed
);
1031 ndr_print_uint32(ndr
, "flags", r
->in
.flags
);
1034 if (flags
& NDR_OUT
) {
1035 ndr_print_struct(ndr
, "out", "PNP_GetDeviceRegProp");
1037 ndr_print_ptr(ndr
, "reg_data_type", r
->out
.reg_data_type
);
1039 ndr_print_winreg_Type(ndr
, "reg_data_type", *r
->out
.reg_data_type
);
1041 ndr_print_ptr(ndr
, "buffer", r
->out
.buffer
);
1043 ndr_print_array_uint8(ndr
, "buffer", r
->out
.buffer
, *r
->out
.buffer_size
);
1045 ndr_print_ptr(ndr
, "buffer_size", r
->out
.buffer_size
);
1047 ndr_print_uint32(ndr
, "buffer_size", *r
->out
.buffer_size
);
1049 ndr_print_ptr(ndr
, "needed", r
->out
.needed
);
1051 ndr_print_uint32(ndr
, "needed", *r
->out
.needed
);
1053 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1059 static enum ndr_err_code
ndr_push_PNP_SetDeviceRegProp(struct ndr_push
*ndr
, int flags
, const struct PNP_SetDeviceRegProp
*r
)
1061 if (flags
& NDR_IN
) {
1063 if (flags
& NDR_OUT
) {
1064 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1066 return NDR_ERR_SUCCESS
;
1069 static enum ndr_err_code
ndr_pull_PNP_SetDeviceRegProp(struct ndr_pull
*ndr
, int flags
, struct PNP_SetDeviceRegProp
*r
)
1071 if (flags
& NDR_IN
) {
1073 if (flags
& NDR_OUT
) {
1074 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1076 return NDR_ERR_SUCCESS
;
1079 _PUBLIC_
void ndr_print_PNP_SetDeviceRegProp(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_SetDeviceRegProp
*r
)
1081 ndr_print_struct(ndr
, name
, "PNP_SetDeviceRegProp");
1083 if (flags
& NDR_SET_VALUES
) {
1084 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1086 if (flags
& NDR_IN
) {
1087 ndr_print_struct(ndr
, "in", "PNP_SetDeviceRegProp");
1091 if (flags
& NDR_OUT
) {
1092 ndr_print_struct(ndr
, "out", "PNP_SetDeviceRegProp");
1094 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1100 static enum ndr_err_code
ndr_push_PNP_GetClassInstance(struct ndr_push
*ndr
, int flags
, const struct PNP_GetClassInstance
*r
)
1102 if (flags
& NDR_IN
) {
1104 if (flags
& NDR_OUT
) {
1105 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1107 return NDR_ERR_SUCCESS
;
1110 static enum ndr_err_code
ndr_pull_PNP_GetClassInstance(struct ndr_pull
*ndr
, int flags
, struct PNP_GetClassInstance
*r
)
1112 if (flags
& NDR_IN
) {
1114 if (flags
& NDR_OUT
) {
1115 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1117 return NDR_ERR_SUCCESS
;
1120 _PUBLIC_
void ndr_print_PNP_GetClassInstance(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetClassInstance
*r
)
1122 ndr_print_struct(ndr
, name
, "PNP_GetClassInstance");
1124 if (flags
& NDR_SET_VALUES
) {
1125 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1127 if (flags
& NDR_IN
) {
1128 ndr_print_struct(ndr
, "in", "PNP_GetClassInstance");
1132 if (flags
& NDR_OUT
) {
1133 ndr_print_struct(ndr
, "out", "PNP_GetClassInstance");
1135 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1141 static enum ndr_err_code
ndr_push_PNP_CreateKey(struct ndr_push
*ndr
, int flags
, const struct PNP_CreateKey
*r
)
1143 if (flags
& NDR_IN
) {
1145 if (flags
& NDR_OUT
) {
1146 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1148 return NDR_ERR_SUCCESS
;
1151 static enum ndr_err_code
ndr_pull_PNP_CreateKey(struct ndr_pull
*ndr
, int flags
, struct PNP_CreateKey
*r
)
1153 if (flags
& NDR_IN
) {
1155 if (flags
& NDR_OUT
) {
1156 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1158 return NDR_ERR_SUCCESS
;
1161 _PUBLIC_
void ndr_print_PNP_CreateKey(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_CreateKey
*r
)
1163 ndr_print_struct(ndr
, name
, "PNP_CreateKey");
1165 if (flags
& NDR_SET_VALUES
) {
1166 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1168 if (flags
& NDR_IN
) {
1169 ndr_print_struct(ndr
, "in", "PNP_CreateKey");
1173 if (flags
& NDR_OUT
) {
1174 ndr_print_struct(ndr
, "out", "PNP_CreateKey");
1176 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1182 static enum ndr_err_code
ndr_push_PNP_DeleteRegistryKey(struct ndr_push
*ndr
, int flags
, const struct PNP_DeleteRegistryKey
*r
)
1184 if (flags
& NDR_IN
) {
1186 if (flags
& NDR_OUT
) {
1187 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1189 return NDR_ERR_SUCCESS
;
1192 static enum ndr_err_code
ndr_pull_PNP_DeleteRegistryKey(struct ndr_pull
*ndr
, int flags
, struct PNP_DeleteRegistryKey
*r
)
1194 if (flags
& NDR_IN
) {
1196 if (flags
& NDR_OUT
) {
1197 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1199 return NDR_ERR_SUCCESS
;
1202 _PUBLIC_
void ndr_print_PNP_DeleteRegistryKey(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_DeleteRegistryKey
*r
)
1204 ndr_print_struct(ndr
, name
, "PNP_DeleteRegistryKey");
1206 if (flags
& NDR_SET_VALUES
) {
1207 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1209 if (flags
& NDR_IN
) {
1210 ndr_print_struct(ndr
, "in", "PNP_DeleteRegistryKey");
1214 if (flags
& NDR_OUT
) {
1215 ndr_print_struct(ndr
, "out", "PNP_DeleteRegistryKey");
1217 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1223 static enum ndr_err_code
ndr_push_PNP_GetClassCount(struct ndr_push
*ndr
, int flags
, const struct PNP_GetClassCount
*r
)
1225 if (flags
& NDR_IN
) {
1227 if (flags
& NDR_OUT
) {
1228 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1230 return NDR_ERR_SUCCESS
;
1233 static enum ndr_err_code
ndr_pull_PNP_GetClassCount(struct ndr_pull
*ndr
, int flags
, struct PNP_GetClassCount
*r
)
1235 if (flags
& NDR_IN
) {
1237 if (flags
& NDR_OUT
) {
1238 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1240 return NDR_ERR_SUCCESS
;
1243 _PUBLIC_
void ndr_print_PNP_GetClassCount(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetClassCount
*r
)
1245 ndr_print_struct(ndr
, name
, "PNP_GetClassCount");
1247 if (flags
& NDR_SET_VALUES
) {
1248 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1250 if (flags
& NDR_IN
) {
1251 ndr_print_struct(ndr
, "in", "PNP_GetClassCount");
1255 if (flags
& NDR_OUT
) {
1256 ndr_print_struct(ndr
, "out", "PNP_GetClassCount");
1258 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1264 static enum ndr_err_code
ndr_push_PNP_GetClassName(struct ndr_push
*ndr
, int flags
, const struct PNP_GetClassName
*r
)
1266 if (flags
& NDR_IN
) {
1268 if (flags
& NDR_OUT
) {
1269 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1271 return NDR_ERR_SUCCESS
;
1274 static enum ndr_err_code
ndr_pull_PNP_GetClassName(struct ndr_pull
*ndr
, int flags
, struct PNP_GetClassName
*r
)
1276 if (flags
& NDR_IN
) {
1278 if (flags
& NDR_OUT
) {
1279 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1281 return NDR_ERR_SUCCESS
;
1284 _PUBLIC_
void ndr_print_PNP_GetClassName(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetClassName
*r
)
1286 ndr_print_struct(ndr
, name
, "PNP_GetClassName");
1288 if (flags
& NDR_SET_VALUES
) {
1289 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1291 if (flags
& NDR_IN
) {
1292 ndr_print_struct(ndr
, "in", "PNP_GetClassName");
1296 if (flags
& NDR_OUT
) {
1297 ndr_print_struct(ndr
, "out", "PNP_GetClassName");
1299 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1305 static enum ndr_err_code
ndr_push_PNP_DeleteClassKey(struct ndr_push
*ndr
, int flags
, const struct PNP_DeleteClassKey
*r
)
1307 if (flags
& NDR_IN
) {
1309 if (flags
& NDR_OUT
) {
1310 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1312 return NDR_ERR_SUCCESS
;
1315 static enum ndr_err_code
ndr_pull_PNP_DeleteClassKey(struct ndr_pull
*ndr
, int flags
, struct PNP_DeleteClassKey
*r
)
1317 if (flags
& NDR_IN
) {
1319 if (flags
& NDR_OUT
) {
1320 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1322 return NDR_ERR_SUCCESS
;
1325 _PUBLIC_
void ndr_print_PNP_DeleteClassKey(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_DeleteClassKey
*r
)
1327 ndr_print_struct(ndr
, name
, "PNP_DeleteClassKey");
1329 if (flags
& NDR_SET_VALUES
) {
1330 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1332 if (flags
& NDR_IN
) {
1333 ndr_print_struct(ndr
, "in", "PNP_DeleteClassKey");
1337 if (flags
& NDR_OUT
) {
1338 ndr_print_struct(ndr
, "out", "PNP_DeleteClassKey");
1340 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1346 static enum ndr_err_code
ndr_push_PNP_GetInterfaceDeviceAlias(struct ndr_push
*ndr
, int flags
, const struct PNP_GetInterfaceDeviceAlias
*r
)
1348 if (flags
& NDR_IN
) {
1350 if (flags
& NDR_OUT
) {
1351 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1353 return NDR_ERR_SUCCESS
;
1356 static enum ndr_err_code
ndr_pull_PNP_GetInterfaceDeviceAlias(struct ndr_pull
*ndr
, int flags
, struct PNP_GetInterfaceDeviceAlias
*r
)
1358 if (flags
& NDR_IN
) {
1360 if (flags
& NDR_OUT
) {
1361 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1363 return NDR_ERR_SUCCESS
;
1366 _PUBLIC_
void ndr_print_PNP_GetInterfaceDeviceAlias(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetInterfaceDeviceAlias
*r
)
1368 ndr_print_struct(ndr
, name
, "PNP_GetInterfaceDeviceAlias");
1370 if (flags
& NDR_SET_VALUES
) {
1371 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1373 if (flags
& NDR_IN
) {
1374 ndr_print_struct(ndr
, "in", "PNP_GetInterfaceDeviceAlias");
1378 if (flags
& NDR_OUT
) {
1379 ndr_print_struct(ndr
, "out", "PNP_GetInterfaceDeviceAlias");
1381 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1387 static enum ndr_err_code
ndr_push_PNP_GetInterfaceDeviceList(struct ndr_push
*ndr
, int flags
, const struct PNP_GetInterfaceDeviceList
*r
)
1389 if (flags
& NDR_IN
) {
1391 if (flags
& NDR_OUT
) {
1392 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1394 return NDR_ERR_SUCCESS
;
1397 static enum ndr_err_code
ndr_pull_PNP_GetInterfaceDeviceList(struct ndr_pull
*ndr
, int flags
, struct PNP_GetInterfaceDeviceList
*r
)
1399 if (flags
& NDR_IN
) {
1401 if (flags
& NDR_OUT
) {
1402 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1404 return NDR_ERR_SUCCESS
;
1407 _PUBLIC_
void ndr_print_PNP_GetInterfaceDeviceList(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetInterfaceDeviceList
*r
)
1409 ndr_print_struct(ndr
, name
, "PNP_GetInterfaceDeviceList");
1411 if (flags
& NDR_SET_VALUES
) {
1412 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1414 if (flags
& NDR_IN
) {
1415 ndr_print_struct(ndr
, "in", "PNP_GetInterfaceDeviceList");
1419 if (flags
& NDR_OUT
) {
1420 ndr_print_struct(ndr
, "out", "PNP_GetInterfaceDeviceList");
1422 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1428 static enum ndr_err_code
ndr_push_PNP_GetInterfaceDeviceListSize(struct ndr_push
*ndr
, int flags
, const struct PNP_GetInterfaceDeviceListSize
*r
)
1430 if (flags
& NDR_IN
) {
1432 if (flags
& NDR_OUT
) {
1433 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1435 return NDR_ERR_SUCCESS
;
1438 static enum ndr_err_code
ndr_pull_PNP_GetInterfaceDeviceListSize(struct ndr_pull
*ndr
, int flags
, struct PNP_GetInterfaceDeviceListSize
*r
)
1440 if (flags
& NDR_IN
) {
1442 if (flags
& NDR_OUT
) {
1443 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1445 return NDR_ERR_SUCCESS
;
1448 _PUBLIC_
void ndr_print_PNP_GetInterfaceDeviceListSize(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetInterfaceDeviceListSize
*r
)
1450 ndr_print_struct(ndr
, name
, "PNP_GetInterfaceDeviceListSize");
1452 if (flags
& NDR_SET_VALUES
) {
1453 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1455 if (flags
& NDR_IN
) {
1456 ndr_print_struct(ndr
, "in", "PNP_GetInterfaceDeviceListSize");
1460 if (flags
& NDR_OUT
) {
1461 ndr_print_struct(ndr
, "out", "PNP_GetInterfaceDeviceListSize");
1463 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1469 static enum ndr_err_code
ndr_push_PNP_RegisterDeviceClassAssociation(struct ndr_push
*ndr
, int flags
, const struct PNP_RegisterDeviceClassAssociation
*r
)
1471 if (flags
& NDR_IN
) {
1473 if (flags
& NDR_OUT
) {
1474 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1476 return NDR_ERR_SUCCESS
;
1479 static enum ndr_err_code
ndr_pull_PNP_RegisterDeviceClassAssociation(struct ndr_pull
*ndr
, int flags
, struct PNP_RegisterDeviceClassAssociation
*r
)
1481 if (flags
& NDR_IN
) {
1483 if (flags
& NDR_OUT
) {
1484 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1486 return NDR_ERR_SUCCESS
;
1489 _PUBLIC_
void ndr_print_PNP_RegisterDeviceClassAssociation(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_RegisterDeviceClassAssociation
*r
)
1491 ndr_print_struct(ndr
, name
, "PNP_RegisterDeviceClassAssociation");
1493 if (flags
& NDR_SET_VALUES
) {
1494 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1496 if (flags
& NDR_IN
) {
1497 ndr_print_struct(ndr
, "in", "PNP_RegisterDeviceClassAssociation");
1501 if (flags
& NDR_OUT
) {
1502 ndr_print_struct(ndr
, "out", "PNP_RegisterDeviceClassAssociation");
1504 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1510 static enum ndr_err_code
ndr_push_PNP_UnregisterDeviceClassAssociation(struct ndr_push
*ndr
, int flags
, const struct PNP_UnregisterDeviceClassAssociation
*r
)
1512 if (flags
& NDR_IN
) {
1514 if (flags
& NDR_OUT
) {
1515 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1517 return NDR_ERR_SUCCESS
;
1520 static enum ndr_err_code
ndr_pull_PNP_UnregisterDeviceClassAssociation(struct ndr_pull
*ndr
, int flags
, struct PNP_UnregisterDeviceClassAssociation
*r
)
1522 if (flags
& NDR_IN
) {
1524 if (flags
& NDR_OUT
) {
1525 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1527 return NDR_ERR_SUCCESS
;
1530 _PUBLIC_
void ndr_print_PNP_UnregisterDeviceClassAssociation(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_UnregisterDeviceClassAssociation
*r
)
1532 ndr_print_struct(ndr
, name
, "PNP_UnregisterDeviceClassAssociation");
1534 if (flags
& NDR_SET_VALUES
) {
1535 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1537 if (flags
& NDR_IN
) {
1538 ndr_print_struct(ndr
, "in", "PNP_UnregisterDeviceClassAssociation");
1542 if (flags
& NDR_OUT
) {
1543 ndr_print_struct(ndr
, "out", "PNP_UnregisterDeviceClassAssociation");
1545 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1551 static enum ndr_err_code
ndr_push_PNP_GetClassRegProp(struct ndr_push
*ndr
, int flags
, const struct PNP_GetClassRegProp
*r
)
1553 if (flags
& NDR_IN
) {
1555 if (flags
& NDR_OUT
) {
1556 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1558 return NDR_ERR_SUCCESS
;
1561 static enum ndr_err_code
ndr_pull_PNP_GetClassRegProp(struct ndr_pull
*ndr
, int flags
, struct PNP_GetClassRegProp
*r
)
1563 if (flags
& NDR_IN
) {
1565 if (flags
& NDR_OUT
) {
1566 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1568 return NDR_ERR_SUCCESS
;
1571 _PUBLIC_
void ndr_print_PNP_GetClassRegProp(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetClassRegProp
*r
)
1573 ndr_print_struct(ndr
, name
, "PNP_GetClassRegProp");
1575 if (flags
& NDR_SET_VALUES
) {
1576 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1578 if (flags
& NDR_IN
) {
1579 ndr_print_struct(ndr
, "in", "PNP_GetClassRegProp");
1583 if (flags
& NDR_OUT
) {
1584 ndr_print_struct(ndr
, "out", "PNP_GetClassRegProp");
1586 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1592 static enum ndr_err_code
ndr_push_PNP_SetClassRegProp(struct ndr_push
*ndr
, int flags
, const struct PNP_SetClassRegProp
*r
)
1594 if (flags
& NDR_IN
) {
1596 if (flags
& NDR_OUT
) {
1597 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1599 return NDR_ERR_SUCCESS
;
1602 static enum ndr_err_code
ndr_pull_PNP_SetClassRegProp(struct ndr_pull
*ndr
, int flags
, struct PNP_SetClassRegProp
*r
)
1604 if (flags
& NDR_IN
) {
1606 if (flags
& NDR_OUT
) {
1607 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1609 return NDR_ERR_SUCCESS
;
1612 _PUBLIC_
void ndr_print_PNP_SetClassRegProp(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_SetClassRegProp
*r
)
1614 ndr_print_struct(ndr
, name
, "PNP_SetClassRegProp");
1616 if (flags
& NDR_SET_VALUES
) {
1617 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1619 if (flags
& NDR_IN
) {
1620 ndr_print_struct(ndr
, "in", "PNP_SetClassRegProp");
1624 if (flags
& NDR_OUT
) {
1625 ndr_print_struct(ndr
, "out", "PNP_SetClassRegProp");
1627 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1633 static enum ndr_err_code
ndr_push_PNP_CreateDevInst(struct ndr_push
*ndr
, int flags
, const struct PNP_CreateDevInst
*r
)
1635 if (flags
& NDR_IN
) {
1637 if (flags
& NDR_OUT
) {
1638 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1640 return NDR_ERR_SUCCESS
;
1643 static enum ndr_err_code
ndr_pull_PNP_CreateDevInst(struct ndr_pull
*ndr
, int flags
, struct PNP_CreateDevInst
*r
)
1645 if (flags
& NDR_IN
) {
1647 if (flags
& NDR_OUT
) {
1648 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1650 return NDR_ERR_SUCCESS
;
1653 _PUBLIC_
void ndr_print_PNP_CreateDevInst(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_CreateDevInst
*r
)
1655 ndr_print_struct(ndr
, name
, "PNP_CreateDevInst");
1657 if (flags
& NDR_SET_VALUES
) {
1658 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1660 if (flags
& NDR_IN
) {
1661 ndr_print_struct(ndr
, "in", "PNP_CreateDevInst");
1665 if (flags
& NDR_OUT
) {
1666 ndr_print_struct(ndr
, "out", "PNP_CreateDevInst");
1668 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1674 static enum ndr_err_code
ndr_push_PNP_DeviceInstanceAction(struct ndr_push
*ndr
, int flags
, const struct PNP_DeviceInstanceAction
*r
)
1676 if (flags
& NDR_IN
) {
1678 if (flags
& NDR_OUT
) {
1679 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1681 return NDR_ERR_SUCCESS
;
1684 static enum ndr_err_code
ndr_pull_PNP_DeviceInstanceAction(struct ndr_pull
*ndr
, int flags
, struct PNP_DeviceInstanceAction
*r
)
1686 if (flags
& NDR_IN
) {
1688 if (flags
& NDR_OUT
) {
1689 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1691 return NDR_ERR_SUCCESS
;
1694 _PUBLIC_
void ndr_print_PNP_DeviceInstanceAction(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_DeviceInstanceAction
*r
)
1696 ndr_print_struct(ndr
, name
, "PNP_DeviceInstanceAction");
1698 if (flags
& NDR_SET_VALUES
) {
1699 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1701 if (flags
& NDR_IN
) {
1702 ndr_print_struct(ndr
, "in", "PNP_DeviceInstanceAction");
1706 if (flags
& NDR_OUT
) {
1707 ndr_print_struct(ndr
, "out", "PNP_DeviceInstanceAction");
1709 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1715 static enum ndr_err_code
ndr_push_PNP_GetDeviceStatus(struct ndr_push
*ndr
, int flags
, const struct PNP_GetDeviceStatus
*r
)
1717 if (flags
& NDR_IN
) {
1719 if (flags
& NDR_OUT
) {
1720 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1722 return NDR_ERR_SUCCESS
;
1725 static enum ndr_err_code
ndr_pull_PNP_GetDeviceStatus(struct ndr_pull
*ndr
, int flags
, struct PNP_GetDeviceStatus
*r
)
1727 if (flags
& NDR_IN
) {
1729 if (flags
& NDR_OUT
) {
1730 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1732 return NDR_ERR_SUCCESS
;
1735 _PUBLIC_
void ndr_print_PNP_GetDeviceStatus(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetDeviceStatus
*r
)
1737 ndr_print_struct(ndr
, name
, "PNP_GetDeviceStatus");
1739 if (flags
& NDR_SET_VALUES
) {
1740 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1742 if (flags
& NDR_IN
) {
1743 ndr_print_struct(ndr
, "in", "PNP_GetDeviceStatus");
1747 if (flags
& NDR_OUT
) {
1748 ndr_print_struct(ndr
, "out", "PNP_GetDeviceStatus");
1750 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1756 static enum ndr_err_code
ndr_push_PNP_SetDeviceProblem(struct ndr_push
*ndr
, int flags
, const struct PNP_SetDeviceProblem
*r
)
1758 if (flags
& NDR_IN
) {
1760 if (flags
& NDR_OUT
) {
1761 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1763 return NDR_ERR_SUCCESS
;
1766 static enum ndr_err_code
ndr_pull_PNP_SetDeviceProblem(struct ndr_pull
*ndr
, int flags
, struct PNP_SetDeviceProblem
*r
)
1768 if (flags
& NDR_IN
) {
1770 if (flags
& NDR_OUT
) {
1771 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1773 return NDR_ERR_SUCCESS
;
1776 _PUBLIC_
void ndr_print_PNP_SetDeviceProblem(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_SetDeviceProblem
*r
)
1778 ndr_print_struct(ndr
, name
, "PNP_SetDeviceProblem");
1780 if (flags
& NDR_SET_VALUES
) {
1781 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1783 if (flags
& NDR_IN
) {
1784 ndr_print_struct(ndr
, "in", "PNP_SetDeviceProblem");
1788 if (flags
& NDR_OUT
) {
1789 ndr_print_struct(ndr
, "out", "PNP_SetDeviceProblem");
1791 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1797 static enum ndr_err_code
ndr_push_PNP_DisableDevInst(struct ndr_push
*ndr
, int flags
, const struct PNP_DisableDevInst
*r
)
1799 if (flags
& NDR_IN
) {
1801 if (flags
& NDR_OUT
) {
1802 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1804 return NDR_ERR_SUCCESS
;
1807 static enum ndr_err_code
ndr_pull_PNP_DisableDevInst(struct ndr_pull
*ndr
, int flags
, struct PNP_DisableDevInst
*r
)
1809 if (flags
& NDR_IN
) {
1811 if (flags
& NDR_OUT
) {
1812 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1814 return NDR_ERR_SUCCESS
;
1817 _PUBLIC_
void ndr_print_PNP_DisableDevInst(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_DisableDevInst
*r
)
1819 ndr_print_struct(ndr
, name
, "PNP_DisableDevInst");
1821 if (flags
& NDR_SET_VALUES
) {
1822 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1824 if (flags
& NDR_IN
) {
1825 ndr_print_struct(ndr
, "in", "PNP_DisableDevInst");
1829 if (flags
& NDR_OUT
) {
1830 ndr_print_struct(ndr
, "out", "PNP_DisableDevInst");
1832 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1838 static enum ndr_err_code
ndr_push_PNP_UninstallDevInst(struct ndr_push
*ndr
, int flags
, const struct PNP_UninstallDevInst
*r
)
1840 if (flags
& NDR_IN
) {
1842 if (flags
& NDR_OUT
) {
1843 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1845 return NDR_ERR_SUCCESS
;
1848 static enum ndr_err_code
ndr_pull_PNP_UninstallDevInst(struct ndr_pull
*ndr
, int flags
, struct PNP_UninstallDevInst
*r
)
1850 if (flags
& NDR_IN
) {
1852 if (flags
& NDR_OUT
) {
1853 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1855 return NDR_ERR_SUCCESS
;
1858 _PUBLIC_
void ndr_print_PNP_UninstallDevInst(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_UninstallDevInst
*r
)
1860 ndr_print_struct(ndr
, name
, "PNP_UninstallDevInst");
1862 if (flags
& NDR_SET_VALUES
) {
1863 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1865 if (flags
& NDR_IN
) {
1866 ndr_print_struct(ndr
, "in", "PNP_UninstallDevInst");
1870 if (flags
& NDR_OUT
) {
1871 ndr_print_struct(ndr
, "out", "PNP_UninstallDevInst");
1873 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1879 static enum ndr_err_code
ndr_push_PNP_AddID(struct ndr_push
*ndr
, int flags
, const struct PNP_AddID
*r
)
1881 if (flags
& NDR_IN
) {
1883 if (flags
& NDR_OUT
) {
1884 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1886 return NDR_ERR_SUCCESS
;
1889 static enum ndr_err_code
ndr_pull_PNP_AddID(struct ndr_pull
*ndr
, int flags
, struct PNP_AddID
*r
)
1891 if (flags
& NDR_IN
) {
1893 if (flags
& NDR_OUT
) {
1894 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1896 return NDR_ERR_SUCCESS
;
1899 _PUBLIC_
void ndr_print_PNP_AddID(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_AddID
*r
)
1901 ndr_print_struct(ndr
, name
, "PNP_AddID");
1903 if (flags
& NDR_SET_VALUES
) {
1904 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1906 if (flags
& NDR_IN
) {
1907 ndr_print_struct(ndr
, "in", "PNP_AddID");
1911 if (flags
& NDR_OUT
) {
1912 ndr_print_struct(ndr
, "out", "PNP_AddID");
1914 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1920 static enum ndr_err_code
ndr_push_PNP_RegisterDriver(struct ndr_push
*ndr
, int flags
, const struct PNP_RegisterDriver
*r
)
1922 if (flags
& NDR_IN
) {
1924 if (flags
& NDR_OUT
) {
1925 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1927 return NDR_ERR_SUCCESS
;
1930 static enum ndr_err_code
ndr_pull_PNP_RegisterDriver(struct ndr_pull
*ndr
, int flags
, struct PNP_RegisterDriver
*r
)
1932 if (flags
& NDR_IN
) {
1934 if (flags
& NDR_OUT
) {
1935 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1937 return NDR_ERR_SUCCESS
;
1940 _PUBLIC_
void ndr_print_PNP_RegisterDriver(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_RegisterDriver
*r
)
1942 ndr_print_struct(ndr
, name
, "PNP_RegisterDriver");
1944 if (flags
& NDR_SET_VALUES
) {
1945 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1947 if (flags
& NDR_IN
) {
1948 ndr_print_struct(ndr
, "in", "PNP_RegisterDriver");
1952 if (flags
& NDR_OUT
) {
1953 ndr_print_struct(ndr
, "out", "PNP_RegisterDriver");
1955 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1961 static enum ndr_err_code
ndr_push_PNP_QueryRemove(struct ndr_push
*ndr
, int flags
, const struct PNP_QueryRemove
*r
)
1963 if (flags
& NDR_IN
) {
1965 if (flags
& NDR_OUT
) {
1966 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1968 return NDR_ERR_SUCCESS
;
1971 static enum ndr_err_code
ndr_pull_PNP_QueryRemove(struct ndr_pull
*ndr
, int flags
, struct PNP_QueryRemove
*r
)
1973 if (flags
& NDR_IN
) {
1975 if (flags
& NDR_OUT
) {
1976 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1978 return NDR_ERR_SUCCESS
;
1981 _PUBLIC_
void ndr_print_PNP_QueryRemove(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_QueryRemove
*r
)
1983 ndr_print_struct(ndr
, name
, "PNP_QueryRemove");
1985 if (flags
& NDR_SET_VALUES
) {
1986 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1988 if (flags
& NDR_IN
) {
1989 ndr_print_struct(ndr
, "in", "PNP_QueryRemove");
1993 if (flags
& NDR_OUT
) {
1994 ndr_print_struct(ndr
, "out", "PNP_QueryRemove");
1996 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
2002 static enum ndr_err_code
ndr_push_PNP_RequestDeviceEject(struct ndr_push
*ndr
, int flags
, const struct PNP_RequestDeviceEject
*r
)
2004 if (flags
& NDR_IN
) {
2006 if (flags
& NDR_OUT
) {
2007 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
2009 return NDR_ERR_SUCCESS
;
2012 static enum ndr_err_code
ndr_pull_PNP_RequestDeviceEject(struct ndr_pull
*ndr
, int flags
, struct PNP_RequestDeviceEject
*r
)
2014 if (flags
& NDR_IN
) {
2016 if (flags
& NDR_OUT
) {
2017 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
2019 return NDR_ERR_SUCCESS
;
2022 _PUBLIC_
void ndr_print_PNP_RequestDeviceEject(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_RequestDeviceEject
*r
)
2024 ndr_print_struct(ndr
, name
, "PNP_RequestDeviceEject");
2026 if (flags
& NDR_SET_VALUES
) {
2027 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2029 if (flags
& NDR_IN
) {
2030 ndr_print_struct(ndr
, "in", "PNP_RequestDeviceEject");
2034 if (flags
& NDR_OUT
) {
2035 ndr_print_struct(ndr
, "out", "PNP_RequestDeviceEject");
2037 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
2043 static enum ndr_err_code
ndr_push_PNP_IsDockStationPresent(struct ndr_push
*ndr
, int flags
, const struct PNP_IsDockStationPresent
*r
)
2045 if (flags
& NDR_IN
) {
2047 if (flags
& NDR_OUT
) {
2048 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
2050 return NDR_ERR_SUCCESS
;
2053 static enum ndr_err_code
ndr_pull_PNP_IsDockStationPresent(struct ndr_pull
*ndr
, int flags
, struct PNP_IsDockStationPresent
*r
)
2055 if (flags
& NDR_IN
) {
2057 if (flags
& NDR_OUT
) {
2058 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
2060 return NDR_ERR_SUCCESS
;
2063 _PUBLIC_
void ndr_print_PNP_IsDockStationPresent(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_IsDockStationPresent
*r
)
2065 ndr_print_struct(ndr
, name
, "PNP_IsDockStationPresent");
2067 if (flags
& NDR_SET_VALUES
) {
2068 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2070 if (flags
& NDR_IN
) {
2071 ndr_print_struct(ndr
, "in", "PNP_IsDockStationPresent");
2075 if (flags
& NDR_OUT
) {
2076 ndr_print_struct(ndr
, "out", "PNP_IsDockStationPresent");
2078 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
2084 static enum ndr_err_code
ndr_push_PNP_RequestEjectPC(struct ndr_push
*ndr
, int flags
, const struct PNP_RequestEjectPC
*r
)
2086 if (flags
& NDR_IN
) {
2088 if (flags
& NDR_OUT
) {
2089 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
2091 return NDR_ERR_SUCCESS
;
2094 static enum ndr_err_code
ndr_pull_PNP_RequestEjectPC(struct ndr_pull
*ndr
, int flags
, struct PNP_RequestEjectPC
*r
)
2096 if (flags
& NDR_IN
) {
2098 if (flags
& NDR_OUT
) {
2099 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
2101 return NDR_ERR_SUCCESS
;
2104 _PUBLIC_
void ndr_print_PNP_RequestEjectPC(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_RequestEjectPC
*r
)
2106 ndr_print_struct(ndr
, name
, "PNP_RequestEjectPC");
2108 if (flags
& NDR_SET_VALUES
) {
2109 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2111 if (flags
& NDR_IN
) {
2112 ndr_print_struct(ndr
, "in", "PNP_RequestEjectPC");
2116 if (flags
& NDR_OUT
) {
2117 ndr_print_struct(ndr
, "out", "PNP_RequestEjectPC");
2119 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
2125 static enum ndr_err_code
ndr_push_PNP_HwProfFlags(struct ndr_push
*ndr
, int flags
, const struct PNP_HwProfFlags
*r
)
2127 if (flags
& NDR_IN
) {
2128 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, r
->in
.action
));
2129 if (r
->in
.devicepath
== NULL
) {
2130 return ndr_push_error(ndr
, NDR_ERR_INVALID_POINTER
, "NULL [ref] pointer");
2132 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, ndr_charset_length(r
->in
.devicepath
, CH_UTF16
)));
2133 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, 0));
2134 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, ndr_charset_length(r
->in
.devicepath
, CH_UTF16
)));
2135 NDR_CHECK(ndr_push_charset(ndr
, NDR_SCALARS
, r
->in
.devicepath
, ndr_charset_length(r
->in
.devicepath
, CH_UTF16
), sizeof(uint16_t), CH_UTF16
));
2136 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, r
->in
.config
));
2137 if (r
->in
.profile_flags
== NULL
) {
2138 return ndr_push_error(ndr
, NDR_ERR_INVALID_POINTER
, "NULL [ref] pointer");
2140 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, *r
->in
.profile_flags
));
2141 NDR_CHECK(ndr_push_unique_ptr(ndr
, r
->in
.veto_type
));
2142 if (r
->in
.veto_type
) {
2143 NDR_CHECK(ndr_push_uint16(ndr
, NDR_SCALARS
, *r
->in
.veto_type
));
2145 NDR_CHECK(ndr_push_unique_ptr(ndr
, r
->in
.unknown5
));
2146 if (r
->in
.unknown5
) {
2147 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, ndr_charset_length(r
->in
.unknown5
, CH_UTF16
)));
2148 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, 0));
2149 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, ndr_charset_length(r
->in
.unknown5
, CH_UTF16
)));
2150 NDR_CHECK(ndr_push_charset(ndr
, NDR_SCALARS
, r
->in
.unknown5
, ndr_charset_length(r
->in
.unknown5
, CH_UTF16
), sizeof(uint16_t), CH_UTF16
));
2152 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, r
->in
.name_length
));
2153 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, r
->in
.flags
));
2155 if (flags
& NDR_OUT
) {
2156 if (r
->out
.profile_flags
== NULL
) {
2157 return ndr_push_error(ndr
, NDR_ERR_INVALID_POINTER
, "NULL [ref] pointer");
2159 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, *r
->out
.profile_flags
));
2160 NDR_CHECK(ndr_push_unique_ptr(ndr
, r
->out
.veto_type
));
2161 if (r
->out
.veto_type
) {
2162 NDR_CHECK(ndr_push_uint16(ndr
, NDR_SCALARS
, *r
->out
.veto_type
));
2164 NDR_CHECK(ndr_push_unique_ptr(ndr
, r
->out
.unknown5a
));
2165 if (r
->out
.unknown5a
) {
2166 NDR_CHECK(ndr_push_unique_ptr(ndr
, *r
->out
.unknown5a
));
2167 if (*r
->out
.unknown5a
) {
2168 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, ndr_charset_length(*r
->out
.unknown5a
, CH_UTF16
)));
2169 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, 0));
2170 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, ndr_charset_length(*r
->out
.unknown5a
, CH_UTF16
)));
2171 NDR_CHECK(ndr_push_charset(ndr
, NDR_SCALARS
, *r
->out
.unknown5a
, ndr_charset_length(*r
->out
.unknown5a
, CH_UTF16
), sizeof(uint16_t), CH_UTF16
));
2174 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
2176 return NDR_ERR_SUCCESS
;
2179 static enum ndr_err_code
ndr_pull_PNP_HwProfFlags(struct ndr_pull
*ndr
, int flags
, struct PNP_HwProfFlags
*r
)
2181 uint32_t size_devicepath_1
= 0;
2182 uint32_t length_devicepath_1
= 0;
2183 uint32_t _ptr_veto_type
;
2184 uint32_t _ptr_unknown5
;
2185 uint32_t size_unknown5_1
= 0;
2186 uint32_t length_unknown5_1
= 0;
2187 uint32_t _ptr_unknown5a
;
2188 uint32_t size_unknown5a_2
= 0;
2189 uint32_t length_unknown5a_2
= 0;
2190 TALLOC_CTX
*_mem_save_profile_flags_0
;
2191 TALLOC_CTX
*_mem_save_veto_type_0
;
2192 TALLOC_CTX
*_mem_save_unknown5_0
;
2193 TALLOC_CTX
*_mem_save_unknown5a_0
;
2194 TALLOC_CTX
*_mem_save_unknown5a_1
;
2195 if (flags
& NDR_IN
) {
2196 ZERO_STRUCT(r
->out
);
2198 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, &r
->in
.action
));
2199 NDR_CHECK(ndr_pull_array_size(ndr
, &r
->in
.devicepath
));
2200 NDR_CHECK(ndr_pull_array_length(ndr
, &r
->in
.devicepath
));
2201 size_devicepath_1
= ndr_get_array_size(ndr
, &r
->in
.devicepath
);
2202 length_devicepath_1
= ndr_get_array_length(ndr
, &r
->in
.devicepath
);
2203 if (length_devicepath_1
> size_devicepath_1
) {
2204 return ndr_pull_error(ndr
, NDR_ERR_ARRAY_SIZE
, "Bad array size %u should exceed array length %u", size_devicepath_1
, length_devicepath_1
);
2206 NDR_CHECK(ndr_check_string_terminator(ndr
, length_devicepath_1
, sizeof(uint16_t)));
2207 NDR_CHECK(ndr_pull_charset(ndr
, NDR_SCALARS
, &r
->in
.devicepath
, length_devicepath_1
, sizeof(uint16_t), CH_UTF16
));
2208 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, &r
->in
.config
));
2209 if (ndr
->flags
& LIBNDR_FLAG_REF_ALLOC
) {
2210 NDR_PULL_ALLOC(ndr
, r
->in
.profile_flags
);
2212 _mem_save_profile_flags_0
= NDR_PULL_GET_MEM_CTX(ndr
);
2213 NDR_PULL_SET_MEM_CTX(ndr
, r
->in
.profile_flags
, LIBNDR_FLAG_REF_ALLOC
);
2214 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, r
->in
.profile_flags
));
2215 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_profile_flags_0
, LIBNDR_FLAG_REF_ALLOC
);
2216 NDR_CHECK(ndr_pull_generic_ptr(ndr
, &_ptr_veto_type
));
2217 if (_ptr_veto_type
) {
2218 NDR_PULL_ALLOC(ndr
, r
->in
.veto_type
);
2220 r
->in
.veto_type
= NULL
;
2222 if (r
->in
.veto_type
) {
2223 _mem_save_veto_type_0
= NDR_PULL_GET_MEM_CTX(ndr
);
2224 NDR_PULL_SET_MEM_CTX(ndr
, r
->in
.veto_type
, 0);
2225 NDR_CHECK(ndr_pull_uint16(ndr
, NDR_SCALARS
, r
->in
.veto_type
));
2226 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_veto_type_0
, 0);
2228 NDR_CHECK(ndr_pull_generic_ptr(ndr
, &_ptr_unknown5
));
2229 if (_ptr_unknown5
) {
2230 NDR_PULL_ALLOC(ndr
, r
->in
.unknown5
);
2232 r
->in
.unknown5
= NULL
;
2234 if (r
->in
.unknown5
) {
2235 _mem_save_unknown5_0
= NDR_PULL_GET_MEM_CTX(ndr
);
2236 NDR_PULL_SET_MEM_CTX(ndr
, r
->in
.unknown5
, 0);
2237 NDR_CHECK(ndr_pull_array_size(ndr
, &r
->in
.unknown5
));
2238 NDR_CHECK(ndr_pull_array_length(ndr
, &r
->in
.unknown5
));
2239 size_unknown5_1
= ndr_get_array_size(ndr
, &r
->in
.unknown5
);
2240 length_unknown5_1
= ndr_get_array_length(ndr
, &r
->in
.unknown5
);
2241 if (length_unknown5_1
> size_unknown5_1
) {
2242 return ndr_pull_error(ndr
, NDR_ERR_ARRAY_SIZE
, "Bad array size %u should exceed array length %u", size_unknown5_1
, length_unknown5_1
);
2244 NDR_CHECK(ndr_check_string_terminator(ndr
, length_unknown5_1
, sizeof(uint16_t)));
2245 NDR_CHECK(ndr_pull_charset(ndr
, NDR_SCALARS
, &r
->in
.unknown5
, length_unknown5_1
, sizeof(uint16_t), CH_UTF16
));
2246 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_unknown5_0
, 0);
2248 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, &r
->in
.name_length
));
2249 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, &r
->in
.flags
));
2250 NDR_PULL_ALLOC(ndr
, r
->out
.profile_flags
);
2251 *r
->out
.profile_flags
= *r
->in
.profile_flags
;
2253 if (flags
& NDR_OUT
) {
2254 if (ndr
->flags
& LIBNDR_FLAG_REF_ALLOC
) {
2255 NDR_PULL_ALLOC(ndr
, r
->out
.profile_flags
);
2257 _mem_save_profile_flags_0
= NDR_PULL_GET_MEM_CTX(ndr
);
2258 NDR_PULL_SET_MEM_CTX(ndr
, r
->out
.profile_flags
, LIBNDR_FLAG_REF_ALLOC
);
2259 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, r
->out
.profile_flags
));
2260 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_profile_flags_0
, LIBNDR_FLAG_REF_ALLOC
);
2261 NDR_CHECK(ndr_pull_generic_ptr(ndr
, &_ptr_veto_type
));
2262 if (_ptr_veto_type
) {
2263 NDR_PULL_ALLOC(ndr
, r
->out
.veto_type
);
2265 r
->out
.veto_type
= NULL
;
2267 if (r
->out
.veto_type
) {
2268 _mem_save_veto_type_0
= NDR_PULL_GET_MEM_CTX(ndr
);
2269 NDR_PULL_SET_MEM_CTX(ndr
, r
->out
.veto_type
, 0);
2270 NDR_CHECK(ndr_pull_uint16(ndr
, NDR_SCALARS
, r
->out
.veto_type
));
2271 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_veto_type_0
, 0);
2273 NDR_CHECK(ndr_pull_generic_ptr(ndr
, &_ptr_unknown5a
));
2274 if (_ptr_unknown5a
) {
2275 NDR_PULL_ALLOC(ndr
, r
->out
.unknown5a
);
2277 r
->out
.unknown5a
= NULL
;
2279 if (r
->out
.unknown5a
) {
2280 _mem_save_unknown5a_0
= NDR_PULL_GET_MEM_CTX(ndr
);
2281 NDR_PULL_SET_MEM_CTX(ndr
, r
->out
.unknown5a
, 0);
2282 NDR_CHECK(ndr_pull_generic_ptr(ndr
, &_ptr_unknown5a
));
2283 if (_ptr_unknown5a
) {
2284 NDR_PULL_ALLOC(ndr
, *r
->out
.unknown5a
);
2286 *r
->out
.unknown5a
= NULL
;
2288 if (*r
->out
.unknown5a
) {
2289 _mem_save_unknown5a_1
= NDR_PULL_GET_MEM_CTX(ndr
);
2290 NDR_PULL_SET_MEM_CTX(ndr
, *r
->out
.unknown5a
, 0);
2291 NDR_CHECK(ndr_pull_array_size(ndr
, r
->out
.unknown5a
));
2292 NDR_CHECK(ndr_pull_array_length(ndr
, r
->out
.unknown5a
));
2293 size_unknown5a_2
= ndr_get_array_size(ndr
, r
->out
.unknown5a
);
2294 length_unknown5a_2
= ndr_get_array_length(ndr
, r
->out
.unknown5a
);
2295 if (length_unknown5a_2
> size_unknown5a_2
) {
2296 return ndr_pull_error(ndr
, NDR_ERR_ARRAY_SIZE
, "Bad array size %u should exceed array length %u", size_unknown5a_2
, length_unknown5a_2
);
2298 NDR_CHECK(ndr_check_string_terminator(ndr
, length_unknown5a_2
, sizeof(uint16_t)));
2299 NDR_CHECK(ndr_pull_charset(ndr
, NDR_SCALARS
, r
->out
.unknown5a
, length_unknown5a_2
, sizeof(uint16_t), CH_UTF16
));
2300 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_unknown5a_1
, 0);
2302 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_unknown5a_0
, 0);
2304 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
2306 return NDR_ERR_SUCCESS
;
2309 _PUBLIC_
void ndr_print_PNP_HwProfFlags(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_HwProfFlags
*r
)
2311 ndr_print_struct(ndr
, name
, "PNP_HwProfFlags");
2313 if (flags
& NDR_SET_VALUES
) {
2314 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2316 if (flags
& NDR_IN
) {
2317 ndr_print_struct(ndr
, "in", "PNP_HwProfFlags");
2319 ndr_print_uint32(ndr
, "action", r
->in
.action
);
2320 ndr_print_ptr(ndr
, "devicepath", r
->in
.devicepath
);
2322 ndr_print_string(ndr
, "devicepath", r
->in
.devicepath
);
2324 ndr_print_uint32(ndr
, "config", r
->in
.config
);
2325 ndr_print_ptr(ndr
, "profile_flags", r
->in
.profile_flags
);
2327 ndr_print_uint32(ndr
, "profile_flags", *r
->in
.profile_flags
);
2329 ndr_print_ptr(ndr
, "veto_type", r
->in
.veto_type
);
2331 if (r
->in
.veto_type
) {
2332 ndr_print_uint16(ndr
, "veto_type", *r
->in
.veto_type
);
2335 ndr_print_ptr(ndr
, "unknown5", r
->in
.unknown5
);
2337 if (r
->in
.unknown5
) {
2338 ndr_print_string(ndr
, "unknown5", r
->in
.unknown5
);
2341 ndr_print_uint32(ndr
, "name_length", r
->in
.name_length
);
2342 ndr_print_uint32(ndr
, "flags", r
->in
.flags
);
2345 if (flags
& NDR_OUT
) {
2346 ndr_print_struct(ndr
, "out", "PNP_HwProfFlags");
2348 ndr_print_ptr(ndr
, "profile_flags", r
->out
.profile_flags
);
2350 ndr_print_uint32(ndr
, "profile_flags", *r
->out
.profile_flags
);
2352 ndr_print_ptr(ndr
, "veto_type", r
->out
.veto_type
);
2354 if (r
->out
.veto_type
) {
2355 ndr_print_uint16(ndr
, "veto_type", *r
->out
.veto_type
);
2358 ndr_print_ptr(ndr
, "unknown5a", r
->out
.unknown5a
);
2360 if (r
->out
.unknown5a
) {
2361 ndr_print_ptr(ndr
, "unknown5a", *r
->out
.unknown5a
);
2363 if (*r
->out
.unknown5a
) {
2364 ndr_print_string(ndr
, "unknown5a", *r
->out
.unknown5a
);
2369 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
2375 static enum ndr_err_code
ndr_push_PNP_GetHwProfInfo(struct ndr_push
*ndr
, int flags
, const struct PNP_GetHwProfInfo
*r
)
2377 if (flags
& NDR_IN
) {
2378 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, r
->in
.idx
));
2379 if (r
->in
.info
== NULL
) {
2380 return ndr_push_error(ndr
, NDR_ERR_INVALID_POINTER
, "NULL [ref] pointer");
2382 NDR_CHECK(ndr_push_PNP_HwProfInfo(ndr
, NDR_SCALARS
, r
->in
.info
));
2383 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, r
->in
.size
));
2384 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, r
->in
.flags
));
2386 if (flags
& NDR_OUT
) {
2387 if (r
->out
.info
== NULL
) {
2388 return ndr_push_error(ndr
, NDR_ERR_INVALID_POINTER
, "NULL [ref] pointer");
2390 NDR_CHECK(ndr_push_PNP_HwProfInfo(ndr
, NDR_SCALARS
, r
->out
.info
));
2391 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
2393 return NDR_ERR_SUCCESS
;
2396 static enum ndr_err_code
ndr_pull_PNP_GetHwProfInfo(struct ndr_pull
*ndr
, int flags
, struct PNP_GetHwProfInfo
*r
)
2398 TALLOC_CTX
*_mem_save_info_0
;
2399 if (flags
& NDR_IN
) {
2400 ZERO_STRUCT(r
->out
);
2402 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, &r
->in
.idx
));
2403 if (ndr
->flags
& LIBNDR_FLAG_REF_ALLOC
) {
2404 NDR_PULL_ALLOC(ndr
, r
->in
.info
);
2406 _mem_save_info_0
= NDR_PULL_GET_MEM_CTX(ndr
);
2407 NDR_PULL_SET_MEM_CTX(ndr
, r
->in
.info
, LIBNDR_FLAG_REF_ALLOC
);
2408 NDR_CHECK(ndr_pull_PNP_HwProfInfo(ndr
, NDR_SCALARS
, r
->in
.info
));
2409 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_info_0
, LIBNDR_FLAG_REF_ALLOC
);
2410 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, &r
->in
.size
));
2411 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, &r
->in
.flags
));
2412 NDR_PULL_ALLOC(ndr
, r
->out
.info
);
2413 *r
->out
.info
= *r
->in
.info
;
2415 if (flags
& NDR_OUT
) {
2416 if (ndr
->flags
& LIBNDR_FLAG_REF_ALLOC
) {
2417 NDR_PULL_ALLOC(ndr
, r
->out
.info
);
2419 _mem_save_info_0
= NDR_PULL_GET_MEM_CTX(ndr
);
2420 NDR_PULL_SET_MEM_CTX(ndr
, r
->out
.info
, LIBNDR_FLAG_REF_ALLOC
);
2421 NDR_CHECK(ndr_pull_PNP_HwProfInfo(ndr
, NDR_SCALARS
, r
->out
.info
));
2422 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_info_0
, LIBNDR_FLAG_REF_ALLOC
);
2423 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
2425 return NDR_ERR_SUCCESS
;
2428 _PUBLIC_
void ndr_print_PNP_GetHwProfInfo(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetHwProfInfo
*r
)
2430 ndr_print_struct(ndr
, name
, "PNP_GetHwProfInfo");
2432 if (flags
& NDR_SET_VALUES
) {
2433 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2435 if (flags
& NDR_IN
) {
2436 ndr_print_struct(ndr
, "in", "PNP_GetHwProfInfo");
2438 ndr_print_uint32(ndr
, "idx", r
->in
.idx
);
2439 ndr_print_ptr(ndr
, "info", r
->in
.info
);
2441 ndr_print_PNP_HwProfInfo(ndr
, "info", r
->in
.info
);
2443 ndr_print_uint32(ndr
, "size", r
->in
.size
);
2444 ndr_print_uint32(ndr
, "flags", r
->in
.flags
);
2447 if (flags
& NDR_OUT
) {
2448 ndr_print_struct(ndr
, "out", "PNP_GetHwProfInfo");
2450 ndr_print_ptr(ndr
, "info", r
->out
.info
);
2452 ndr_print_PNP_HwProfInfo(ndr
, "info", r
->out
.info
);
2454 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
2460 static enum ndr_err_code
ndr_push_PNP_AddEmptyLogConf(struct ndr_push
*ndr
, int flags
, const struct PNP_AddEmptyLogConf
*r
)
2462 if (flags
& NDR_IN
) {
2464 if (flags
& NDR_OUT
) {
2465 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
2467 return NDR_ERR_SUCCESS
;
2470 static enum ndr_err_code
ndr_pull_PNP_AddEmptyLogConf(struct ndr_pull
*ndr
, int flags
, struct PNP_AddEmptyLogConf
*r
)
2472 if (flags
& NDR_IN
) {
2474 if (flags
& NDR_OUT
) {
2475 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
2477 return NDR_ERR_SUCCESS
;
2480 _PUBLIC_
void ndr_print_PNP_AddEmptyLogConf(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_AddEmptyLogConf
*r
)
2482 ndr_print_struct(ndr
, name
, "PNP_AddEmptyLogConf");
2484 if (flags
& NDR_SET_VALUES
) {
2485 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2487 if (flags
& NDR_IN
) {
2488 ndr_print_struct(ndr
, "in", "PNP_AddEmptyLogConf");
2492 if (flags
& NDR_OUT
) {
2493 ndr_print_struct(ndr
, "out", "PNP_AddEmptyLogConf");
2495 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
2501 static enum ndr_err_code
ndr_push_PNP_FreeLogConf(struct ndr_push
*ndr
, int flags
, const struct PNP_FreeLogConf
*r
)
2503 if (flags
& NDR_IN
) {
2505 if (flags
& NDR_OUT
) {
2506 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
2508 return NDR_ERR_SUCCESS
;
2511 static enum ndr_err_code
ndr_pull_PNP_FreeLogConf(struct ndr_pull
*ndr
, int flags
, struct PNP_FreeLogConf
*r
)
2513 if (flags
& NDR_IN
) {
2515 if (flags
& NDR_OUT
) {
2516 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
2518 return NDR_ERR_SUCCESS
;
2521 _PUBLIC_
void ndr_print_PNP_FreeLogConf(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_FreeLogConf
*r
)
2523 ndr_print_struct(ndr
, name
, "PNP_FreeLogConf");
2525 if (flags
& NDR_SET_VALUES
) {
2526 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2528 if (flags
& NDR_IN
) {
2529 ndr_print_struct(ndr
, "in", "PNP_FreeLogConf");
2533 if (flags
& NDR_OUT
) {
2534 ndr_print_struct(ndr
, "out", "PNP_FreeLogConf");
2536 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
2542 static enum ndr_err_code
ndr_push_PNP_GetFirstLogConf(struct ndr_push
*ndr
, int flags
, const struct PNP_GetFirstLogConf
*r
)
2544 if (flags
& NDR_IN
) {
2546 if (flags
& NDR_OUT
) {
2547 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
2549 return NDR_ERR_SUCCESS
;
2552 static enum ndr_err_code
ndr_pull_PNP_GetFirstLogConf(struct ndr_pull
*ndr
, int flags
, struct PNP_GetFirstLogConf
*r
)
2554 if (flags
& NDR_IN
) {
2556 if (flags
& NDR_OUT
) {
2557 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
2559 return NDR_ERR_SUCCESS
;
2562 _PUBLIC_
void ndr_print_PNP_GetFirstLogConf(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetFirstLogConf
*r
)
2564 ndr_print_struct(ndr
, name
, "PNP_GetFirstLogConf");
2566 if (flags
& NDR_SET_VALUES
) {
2567 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2569 if (flags
& NDR_IN
) {
2570 ndr_print_struct(ndr
, "in", "PNP_GetFirstLogConf");
2574 if (flags
& NDR_OUT
) {
2575 ndr_print_struct(ndr
, "out", "PNP_GetFirstLogConf");
2577 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
2583 static enum ndr_err_code
ndr_push_PNP_GetNextLogConf(struct ndr_push
*ndr
, int flags
, const struct PNP_GetNextLogConf
*r
)
2585 if (flags
& NDR_IN
) {
2587 if (flags
& NDR_OUT
) {
2588 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
2590 return NDR_ERR_SUCCESS
;
2593 static enum ndr_err_code
ndr_pull_PNP_GetNextLogConf(struct ndr_pull
*ndr
, int flags
, struct PNP_GetNextLogConf
*r
)
2595 if (flags
& NDR_IN
) {
2597 if (flags
& NDR_OUT
) {
2598 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
2600 return NDR_ERR_SUCCESS
;
2603 _PUBLIC_
void ndr_print_PNP_GetNextLogConf(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetNextLogConf
*r
)
2605 ndr_print_struct(ndr
, name
, "PNP_GetNextLogConf");
2607 if (flags
& NDR_SET_VALUES
) {
2608 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2610 if (flags
& NDR_IN
) {
2611 ndr_print_struct(ndr
, "in", "PNP_GetNextLogConf");
2615 if (flags
& NDR_OUT
) {
2616 ndr_print_struct(ndr
, "out", "PNP_GetNextLogConf");
2618 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
2624 static enum ndr_err_code
ndr_push_PNP_GetLogConfPriority(struct ndr_push
*ndr
, int flags
, const struct PNP_GetLogConfPriority
*r
)
2626 if (flags
& NDR_IN
) {
2628 if (flags
& NDR_OUT
) {
2629 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
2631 return NDR_ERR_SUCCESS
;
2634 static enum ndr_err_code
ndr_pull_PNP_GetLogConfPriority(struct ndr_pull
*ndr
, int flags
, struct PNP_GetLogConfPriority
*r
)
2636 if (flags
& NDR_IN
) {
2638 if (flags
& NDR_OUT
) {
2639 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
2641 return NDR_ERR_SUCCESS
;
2644 _PUBLIC_
void ndr_print_PNP_GetLogConfPriority(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetLogConfPriority
*r
)
2646 ndr_print_struct(ndr
, name
, "PNP_GetLogConfPriority");
2648 if (flags
& NDR_SET_VALUES
) {
2649 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2651 if (flags
& NDR_IN
) {
2652 ndr_print_struct(ndr
, "in", "PNP_GetLogConfPriority");
2656 if (flags
& NDR_OUT
) {
2657 ndr_print_struct(ndr
, "out", "PNP_GetLogConfPriority");
2659 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
2665 static enum ndr_err_code
ndr_push_PNP_AddResDes(struct ndr_push
*ndr
, int flags
, const struct PNP_AddResDes
*r
)
2667 if (flags
& NDR_IN
) {
2669 if (flags
& NDR_OUT
) {
2670 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
2672 return NDR_ERR_SUCCESS
;
2675 static enum ndr_err_code
ndr_pull_PNP_AddResDes(struct ndr_pull
*ndr
, int flags
, struct PNP_AddResDes
*r
)
2677 if (flags
& NDR_IN
) {
2679 if (flags
& NDR_OUT
) {
2680 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
2682 return NDR_ERR_SUCCESS
;
2685 _PUBLIC_
void ndr_print_PNP_AddResDes(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_AddResDes
*r
)
2687 ndr_print_struct(ndr
, name
, "PNP_AddResDes");
2689 if (flags
& NDR_SET_VALUES
) {
2690 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2692 if (flags
& NDR_IN
) {
2693 ndr_print_struct(ndr
, "in", "PNP_AddResDes");
2697 if (flags
& NDR_OUT
) {
2698 ndr_print_struct(ndr
, "out", "PNP_AddResDes");
2700 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
2706 static enum ndr_err_code
ndr_push_PNP_FreeResDes(struct ndr_push
*ndr
, int flags
, const struct PNP_FreeResDes
*r
)
2708 if (flags
& NDR_IN
) {
2710 if (flags
& NDR_OUT
) {
2711 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
2713 return NDR_ERR_SUCCESS
;
2716 static enum ndr_err_code
ndr_pull_PNP_FreeResDes(struct ndr_pull
*ndr
, int flags
, struct PNP_FreeResDes
*r
)
2718 if (flags
& NDR_IN
) {
2720 if (flags
& NDR_OUT
) {
2721 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
2723 return NDR_ERR_SUCCESS
;
2726 _PUBLIC_
void ndr_print_PNP_FreeResDes(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_FreeResDes
*r
)
2728 ndr_print_struct(ndr
, name
, "PNP_FreeResDes");
2730 if (flags
& NDR_SET_VALUES
) {
2731 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2733 if (flags
& NDR_IN
) {
2734 ndr_print_struct(ndr
, "in", "PNP_FreeResDes");
2738 if (flags
& NDR_OUT
) {
2739 ndr_print_struct(ndr
, "out", "PNP_FreeResDes");
2741 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
2747 static enum ndr_err_code
ndr_push_PNP_GetNextResDes(struct ndr_push
*ndr
, int flags
, const struct PNP_GetNextResDes
*r
)
2749 if (flags
& NDR_IN
) {
2751 if (flags
& NDR_OUT
) {
2752 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
2754 return NDR_ERR_SUCCESS
;
2757 static enum ndr_err_code
ndr_pull_PNP_GetNextResDes(struct ndr_pull
*ndr
, int flags
, struct PNP_GetNextResDes
*r
)
2759 if (flags
& NDR_IN
) {
2761 if (flags
& NDR_OUT
) {
2762 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
2764 return NDR_ERR_SUCCESS
;
2767 _PUBLIC_
void ndr_print_PNP_GetNextResDes(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetNextResDes
*r
)
2769 ndr_print_struct(ndr
, name
, "PNP_GetNextResDes");
2771 if (flags
& NDR_SET_VALUES
) {
2772 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2774 if (flags
& NDR_IN
) {
2775 ndr_print_struct(ndr
, "in", "PNP_GetNextResDes");
2779 if (flags
& NDR_OUT
) {
2780 ndr_print_struct(ndr
, "out", "PNP_GetNextResDes");
2782 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
2788 static enum ndr_err_code
ndr_push_PNP_GetResDesData(struct ndr_push
*ndr
, int flags
, const struct PNP_GetResDesData
*r
)
2790 if (flags
& NDR_IN
) {
2792 if (flags
& NDR_OUT
) {
2793 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
2795 return NDR_ERR_SUCCESS
;
2798 static enum ndr_err_code
ndr_pull_PNP_GetResDesData(struct ndr_pull
*ndr
, int flags
, struct PNP_GetResDesData
*r
)
2800 if (flags
& NDR_IN
) {
2802 if (flags
& NDR_OUT
) {
2803 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
2805 return NDR_ERR_SUCCESS
;
2808 _PUBLIC_
void ndr_print_PNP_GetResDesData(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetResDesData
*r
)
2810 ndr_print_struct(ndr
, name
, "PNP_GetResDesData");
2812 if (flags
& NDR_SET_VALUES
) {
2813 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2815 if (flags
& NDR_IN
) {
2816 ndr_print_struct(ndr
, "in", "PNP_GetResDesData");
2820 if (flags
& NDR_OUT
) {
2821 ndr_print_struct(ndr
, "out", "PNP_GetResDesData");
2823 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
2829 static enum ndr_err_code
ndr_push_PNP_GetResDesDataSize(struct ndr_push
*ndr
, int flags
, const struct PNP_GetResDesDataSize
*r
)
2831 if (flags
& NDR_IN
) {
2833 if (flags
& NDR_OUT
) {
2834 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
2836 return NDR_ERR_SUCCESS
;
2839 static enum ndr_err_code
ndr_pull_PNP_GetResDesDataSize(struct ndr_pull
*ndr
, int flags
, struct PNP_GetResDesDataSize
*r
)
2841 if (flags
& NDR_IN
) {
2843 if (flags
& NDR_OUT
) {
2844 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
2846 return NDR_ERR_SUCCESS
;
2849 _PUBLIC_
void ndr_print_PNP_GetResDesDataSize(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetResDesDataSize
*r
)
2851 ndr_print_struct(ndr
, name
, "PNP_GetResDesDataSize");
2853 if (flags
& NDR_SET_VALUES
) {
2854 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2856 if (flags
& NDR_IN
) {
2857 ndr_print_struct(ndr
, "in", "PNP_GetResDesDataSize");
2861 if (flags
& NDR_OUT
) {
2862 ndr_print_struct(ndr
, "out", "PNP_GetResDesDataSize");
2864 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
2870 static enum ndr_err_code
ndr_push_PNP_ModifyResDes(struct ndr_push
*ndr
, int flags
, const struct PNP_ModifyResDes
*r
)
2872 if (flags
& NDR_IN
) {
2874 if (flags
& NDR_OUT
) {
2875 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
2877 return NDR_ERR_SUCCESS
;
2880 static enum ndr_err_code
ndr_pull_PNP_ModifyResDes(struct ndr_pull
*ndr
, int flags
, struct PNP_ModifyResDes
*r
)
2882 if (flags
& NDR_IN
) {
2884 if (flags
& NDR_OUT
) {
2885 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
2887 return NDR_ERR_SUCCESS
;
2890 _PUBLIC_
void ndr_print_PNP_ModifyResDes(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_ModifyResDes
*r
)
2892 ndr_print_struct(ndr
, name
, "PNP_ModifyResDes");
2894 if (flags
& NDR_SET_VALUES
) {
2895 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2897 if (flags
& NDR_IN
) {
2898 ndr_print_struct(ndr
, "in", "PNP_ModifyResDes");
2902 if (flags
& NDR_OUT
) {
2903 ndr_print_struct(ndr
, "out", "PNP_ModifyResDes");
2905 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
2911 static enum ndr_err_code
ndr_push_PNP_DetectResourceLimit(struct ndr_push
*ndr
, int flags
, const struct PNP_DetectResourceLimit
*r
)
2913 if (flags
& NDR_IN
) {
2915 if (flags
& NDR_OUT
) {
2916 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
2918 return NDR_ERR_SUCCESS
;
2921 static enum ndr_err_code
ndr_pull_PNP_DetectResourceLimit(struct ndr_pull
*ndr
, int flags
, struct PNP_DetectResourceLimit
*r
)
2923 if (flags
& NDR_IN
) {
2925 if (flags
& NDR_OUT
) {
2926 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
2928 return NDR_ERR_SUCCESS
;
2931 _PUBLIC_
void ndr_print_PNP_DetectResourceLimit(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_DetectResourceLimit
*r
)
2933 ndr_print_struct(ndr
, name
, "PNP_DetectResourceLimit");
2935 if (flags
& NDR_SET_VALUES
) {
2936 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2938 if (flags
& NDR_IN
) {
2939 ndr_print_struct(ndr
, "in", "PNP_DetectResourceLimit");
2943 if (flags
& NDR_OUT
) {
2944 ndr_print_struct(ndr
, "out", "PNP_DetectResourceLimit");
2946 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
2952 static enum ndr_err_code
ndr_push_PNP_QueryResConfList(struct ndr_push
*ndr
, int flags
, const struct PNP_QueryResConfList
*r
)
2954 if (flags
& NDR_IN
) {
2956 if (flags
& NDR_OUT
) {
2957 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
2959 return NDR_ERR_SUCCESS
;
2962 static enum ndr_err_code
ndr_pull_PNP_QueryResConfList(struct ndr_pull
*ndr
, int flags
, struct PNP_QueryResConfList
*r
)
2964 if (flags
& NDR_IN
) {
2966 if (flags
& NDR_OUT
) {
2967 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
2969 return NDR_ERR_SUCCESS
;
2972 _PUBLIC_
void ndr_print_PNP_QueryResConfList(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_QueryResConfList
*r
)
2974 ndr_print_struct(ndr
, name
, "PNP_QueryResConfList");
2976 if (flags
& NDR_SET_VALUES
) {
2977 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2979 if (flags
& NDR_IN
) {
2980 ndr_print_struct(ndr
, "in", "PNP_QueryResConfList");
2984 if (flags
& NDR_OUT
) {
2985 ndr_print_struct(ndr
, "out", "PNP_QueryResConfList");
2987 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
2993 static enum ndr_err_code
ndr_push_PNP_SetHwProf(struct ndr_push
*ndr
, int flags
, const struct PNP_SetHwProf
*r
)
2995 if (flags
& NDR_IN
) {
2997 if (flags
& NDR_OUT
) {
2998 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
3000 return NDR_ERR_SUCCESS
;
3003 static enum ndr_err_code
ndr_pull_PNP_SetHwProf(struct ndr_pull
*ndr
, int flags
, struct PNP_SetHwProf
*r
)
3005 if (flags
& NDR_IN
) {
3007 if (flags
& NDR_OUT
) {
3008 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
3010 return NDR_ERR_SUCCESS
;
3013 _PUBLIC_
void ndr_print_PNP_SetHwProf(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_SetHwProf
*r
)
3015 ndr_print_struct(ndr
, name
, "PNP_SetHwProf");
3017 if (flags
& NDR_SET_VALUES
) {
3018 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
3020 if (flags
& NDR_IN
) {
3021 ndr_print_struct(ndr
, "in", "PNP_SetHwProf");
3025 if (flags
& NDR_OUT
) {
3026 ndr_print_struct(ndr
, "out", "PNP_SetHwProf");
3028 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
3034 static enum ndr_err_code
ndr_push_PNP_QueryArbitratorFreeData(struct ndr_push
*ndr
, int flags
, const struct PNP_QueryArbitratorFreeData
*r
)
3036 if (flags
& NDR_IN
) {
3038 if (flags
& NDR_OUT
) {
3039 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
3041 return NDR_ERR_SUCCESS
;
3044 static enum ndr_err_code
ndr_pull_PNP_QueryArbitratorFreeData(struct ndr_pull
*ndr
, int flags
, struct PNP_QueryArbitratorFreeData
*r
)
3046 if (flags
& NDR_IN
) {
3048 if (flags
& NDR_OUT
) {
3049 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
3051 return NDR_ERR_SUCCESS
;
3054 _PUBLIC_
void ndr_print_PNP_QueryArbitratorFreeData(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_QueryArbitratorFreeData
*r
)
3056 ndr_print_struct(ndr
, name
, "PNP_QueryArbitratorFreeData");
3058 if (flags
& NDR_SET_VALUES
) {
3059 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
3061 if (flags
& NDR_IN
) {
3062 ndr_print_struct(ndr
, "in", "PNP_QueryArbitratorFreeData");
3066 if (flags
& NDR_OUT
) {
3067 ndr_print_struct(ndr
, "out", "PNP_QueryArbitratorFreeData");
3069 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
3075 static enum ndr_err_code
ndr_push_PNP_QueryArbitratorFreeSize(struct ndr_push
*ndr
, int flags
, const struct PNP_QueryArbitratorFreeSize
*r
)
3077 if (flags
& NDR_IN
) {
3079 if (flags
& NDR_OUT
) {
3080 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
3082 return NDR_ERR_SUCCESS
;
3085 static enum ndr_err_code
ndr_pull_PNP_QueryArbitratorFreeSize(struct ndr_pull
*ndr
, int flags
, struct PNP_QueryArbitratorFreeSize
*r
)
3087 if (flags
& NDR_IN
) {
3089 if (flags
& NDR_OUT
) {
3090 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
3092 return NDR_ERR_SUCCESS
;
3095 _PUBLIC_
void ndr_print_PNP_QueryArbitratorFreeSize(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_QueryArbitratorFreeSize
*r
)
3097 ndr_print_struct(ndr
, name
, "PNP_QueryArbitratorFreeSize");
3099 if (flags
& NDR_SET_VALUES
) {
3100 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
3102 if (flags
& NDR_IN
) {
3103 ndr_print_struct(ndr
, "in", "PNP_QueryArbitratorFreeSize");
3107 if (flags
& NDR_OUT
) {
3108 ndr_print_struct(ndr
, "out", "PNP_QueryArbitratorFreeSize");
3110 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
3116 static enum ndr_err_code
ndr_push_PNP_RunDetection(struct ndr_push
*ndr
, int flags
, const struct PNP_RunDetection
*r
)
3118 if (flags
& NDR_IN
) {
3120 if (flags
& NDR_OUT
) {
3121 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
3123 return NDR_ERR_SUCCESS
;
3126 static enum ndr_err_code
ndr_pull_PNP_RunDetection(struct ndr_pull
*ndr
, int flags
, struct PNP_RunDetection
*r
)
3128 if (flags
& NDR_IN
) {
3130 if (flags
& NDR_OUT
) {
3131 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
3133 return NDR_ERR_SUCCESS
;
3136 _PUBLIC_
void ndr_print_PNP_RunDetection(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_RunDetection
*r
)
3138 ndr_print_struct(ndr
, name
, "PNP_RunDetection");
3140 if (flags
& NDR_SET_VALUES
) {
3141 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
3143 if (flags
& NDR_IN
) {
3144 ndr_print_struct(ndr
, "in", "PNP_RunDetection");
3148 if (flags
& NDR_OUT
) {
3149 ndr_print_struct(ndr
, "out", "PNP_RunDetection");
3151 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
3157 static enum ndr_err_code
ndr_push_PNP_RegisterNotification(struct ndr_push
*ndr
, int flags
, const struct PNP_RegisterNotification
*r
)
3159 if (flags
& NDR_IN
) {
3161 if (flags
& NDR_OUT
) {
3162 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
3164 return NDR_ERR_SUCCESS
;
3167 static enum ndr_err_code
ndr_pull_PNP_RegisterNotification(struct ndr_pull
*ndr
, int flags
, struct PNP_RegisterNotification
*r
)
3169 if (flags
& NDR_IN
) {
3171 if (flags
& NDR_OUT
) {
3172 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
3174 return NDR_ERR_SUCCESS
;
3177 _PUBLIC_
void ndr_print_PNP_RegisterNotification(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_RegisterNotification
*r
)
3179 ndr_print_struct(ndr
, name
, "PNP_RegisterNotification");
3181 if (flags
& NDR_SET_VALUES
) {
3182 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
3184 if (flags
& NDR_IN
) {
3185 ndr_print_struct(ndr
, "in", "PNP_RegisterNotification");
3189 if (flags
& NDR_OUT
) {
3190 ndr_print_struct(ndr
, "out", "PNP_RegisterNotification");
3192 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
3198 static enum ndr_err_code
ndr_push_PNP_UnregisterNotification(struct ndr_push
*ndr
, int flags
, const struct PNP_UnregisterNotification
*r
)
3200 if (flags
& NDR_IN
) {
3202 if (flags
& NDR_OUT
) {
3203 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
3205 return NDR_ERR_SUCCESS
;
3208 static enum ndr_err_code
ndr_pull_PNP_UnregisterNotification(struct ndr_pull
*ndr
, int flags
, struct PNP_UnregisterNotification
*r
)
3210 if (flags
& NDR_IN
) {
3212 if (flags
& NDR_OUT
) {
3213 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
3215 return NDR_ERR_SUCCESS
;
3218 _PUBLIC_
void ndr_print_PNP_UnregisterNotification(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_UnregisterNotification
*r
)
3220 ndr_print_struct(ndr
, name
, "PNP_UnregisterNotification");
3222 if (flags
& NDR_SET_VALUES
) {
3223 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
3225 if (flags
& NDR_IN
) {
3226 ndr_print_struct(ndr
, "in", "PNP_UnregisterNotification");
3230 if (flags
& NDR_OUT
) {
3231 ndr_print_struct(ndr
, "out", "PNP_UnregisterNotification");
3233 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
3239 static enum ndr_err_code
ndr_push_PNP_GetCustomDevProp(struct ndr_push
*ndr
, int flags
, const struct PNP_GetCustomDevProp
*r
)
3241 if (flags
& NDR_IN
) {
3243 if (flags
& NDR_OUT
) {
3244 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
3246 return NDR_ERR_SUCCESS
;
3249 static enum ndr_err_code
ndr_pull_PNP_GetCustomDevProp(struct ndr_pull
*ndr
, int flags
, struct PNP_GetCustomDevProp
*r
)
3251 if (flags
& NDR_IN
) {
3253 if (flags
& NDR_OUT
) {
3254 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
3256 return NDR_ERR_SUCCESS
;
3259 _PUBLIC_
void ndr_print_PNP_GetCustomDevProp(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetCustomDevProp
*r
)
3261 ndr_print_struct(ndr
, name
, "PNP_GetCustomDevProp");
3263 if (flags
& NDR_SET_VALUES
) {
3264 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
3266 if (flags
& NDR_IN
) {
3267 ndr_print_struct(ndr
, "in", "PNP_GetCustomDevProp");
3271 if (flags
& NDR_OUT
) {
3272 ndr_print_struct(ndr
, "out", "PNP_GetCustomDevProp");
3274 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
3280 static enum ndr_err_code
ndr_push_PNP_GetVersionInternal(struct ndr_push
*ndr
, int flags
, const struct PNP_GetVersionInternal
*r
)
3282 if (flags
& NDR_IN
) {
3284 if (flags
& NDR_OUT
) {
3285 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
3287 return NDR_ERR_SUCCESS
;
3290 static enum ndr_err_code
ndr_pull_PNP_GetVersionInternal(struct ndr_pull
*ndr
, int flags
, struct PNP_GetVersionInternal
*r
)
3292 if (flags
& NDR_IN
) {
3294 if (flags
& NDR_OUT
) {
3295 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
3297 return NDR_ERR_SUCCESS
;
3300 _PUBLIC_
void ndr_print_PNP_GetVersionInternal(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetVersionInternal
*r
)
3302 ndr_print_struct(ndr
, name
, "PNP_GetVersionInternal");
3304 if (flags
& NDR_SET_VALUES
) {
3305 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
3307 if (flags
& NDR_IN
) {
3308 ndr_print_struct(ndr
, "in", "PNP_GetVersionInternal");
3312 if (flags
& NDR_OUT
) {
3313 ndr_print_struct(ndr
, "out", "PNP_GetVersionInternal");
3315 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
3321 static enum ndr_err_code
ndr_push_PNP_GetBlockedDriverInfo(struct ndr_push
*ndr
, int flags
, const struct PNP_GetBlockedDriverInfo
*r
)
3323 if (flags
& NDR_IN
) {
3325 if (flags
& NDR_OUT
) {
3326 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
3328 return NDR_ERR_SUCCESS
;
3331 static enum ndr_err_code
ndr_pull_PNP_GetBlockedDriverInfo(struct ndr_pull
*ndr
, int flags
, struct PNP_GetBlockedDriverInfo
*r
)
3333 if (flags
& NDR_IN
) {
3335 if (flags
& NDR_OUT
) {
3336 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
3338 return NDR_ERR_SUCCESS
;
3341 _PUBLIC_
void ndr_print_PNP_GetBlockedDriverInfo(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetBlockedDriverInfo
*r
)
3343 ndr_print_struct(ndr
, name
, "PNP_GetBlockedDriverInfo");
3345 if (flags
& NDR_SET_VALUES
) {
3346 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
3348 if (flags
& NDR_IN
) {
3349 ndr_print_struct(ndr
, "in", "PNP_GetBlockedDriverInfo");
3353 if (flags
& NDR_OUT
) {
3354 ndr_print_struct(ndr
, "out", "PNP_GetBlockedDriverInfo");
3356 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
3362 static enum ndr_err_code
ndr_push_PNP_GetServerSideDeviceInstallFlags(struct ndr_push
*ndr
, int flags
, const struct PNP_GetServerSideDeviceInstallFlags
*r
)
3364 if (flags
& NDR_IN
) {
3366 if (flags
& NDR_OUT
) {
3367 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
3369 return NDR_ERR_SUCCESS
;
3372 static enum ndr_err_code
ndr_pull_PNP_GetServerSideDeviceInstallFlags(struct ndr_pull
*ndr
, int flags
, struct PNP_GetServerSideDeviceInstallFlags
*r
)
3374 if (flags
& NDR_IN
) {
3376 if (flags
& NDR_OUT
) {
3377 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
3379 return NDR_ERR_SUCCESS
;
3382 _PUBLIC_
void ndr_print_PNP_GetServerSideDeviceInstallFlags(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetServerSideDeviceInstallFlags
*r
)
3384 ndr_print_struct(ndr
, name
, "PNP_GetServerSideDeviceInstallFlags");
3386 if (flags
& NDR_SET_VALUES
) {
3387 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
3389 if (flags
& NDR_IN
) {
3390 ndr_print_struct(ndr
, "in", "PNP_GetServerSideDeviceInstallFlags");
3394 if (flags
& NDR_OUT
) {
3395 ndr_print_struct(ndr
, "out", "PNP_GetServerSideDeviceInstallFlags");
3397 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
3403 static const struct ndr_interface_call ntsvcs_calls
[] = {
3406 sizeof(struct PNP_Disconnect
),
3407 (ndr_push_flags_fn_t
) ndr_push_PNP_Disconnect
,
3408 (ndr_pull_flags_fn_t
) ndr_pull_PNP_Disconnect
,
3409 (ndr_print_function_t
) ndr_print_PNP_Disconnect
,
3414 sizeof(struct PNP_Connect
),
3415 (ndr_push_flags_fn_t
) ndr_push_PNP_Connect
,
3416 (ndr_pull_flags_fn_t
) ndr_pull_PNP_Connect
,
3417 (ndr_print_function_t
) ndr_print_PNP_Connect
,
3422 sizeof(struct PNP_GetVersion
),
3423 (ndr_push_flags_fn_t
) ndr_push_PNP_GetVersion
,
3424 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetVersion
,
3425 (ndr_print_function_t
) ndr_print_PNP_GetVersion
,
3429 "PNP_GetGlobalState",
3430 sizeof(struct PNP_GetGlobalState
),
3431 (ndr_push_flags_fn_t
) ndr_push_PNP_GetGlobalState
,
3432 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetGlobalState
,
3433 (ndr_print_function_t
) ndr_print_PNP_GetGlobalState
,
3437 "PNP_InitDetection",
3438 sizeof(struct PNP_InitDetection
),
3439 (ndr_push_flags_fn_t
) ndr_push_PNP_InitDetection
,
3440 (ndr_pull_flags_fn_t
) ndr_pull_PNP_InitDetection
,
3441 (ndr_print_function_t
) ndr_print_PNP_InitDetection
,
3446 sizeof(struct PNP_ReportLogOn
),
3447 (ndr_push_flags_fn_t
) ndr_push_PNP_ReportLogOn
,
3448 (ndr_pull_flags_fn_t
) ndr_pull_PNP_ReportLogOn
,
3449 (ndr_print_function_t
) ndr_print_PNP_ReportLogOn
,
3453 "PNP_ValidateDeviceInstance",
3454 sizeof(struct PNP_ValidateDeviceInstance
),
3455 (ndr_push_flags_fn_t
) ndr_push_PNP_ValidateDeviceInstance
,
3456 (ndr_pull_flags_fn_t
) ndr_pull_PNP_ValidateDeviceInstance
,
3457 (ndr_print_function_t
) ndr_print_PNP_ValidateDeviceInstance
,
3461 "PNP_GetRootDeviceInstance",
3462 sizeof(struct PNP_GetRootDeviceInstance
),
3463 (ndr_push_flags_fn_t
) ndr_push_PNP_GetRootDeviceInstance
,
3464 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetRootDeviceInstance
,
3465 (ndr_print_function_t
) ndr_print_PNP_GetRootDeviceInstance
,
3469 "PNP_GetRelatedDeviceInstance",
3470 sizeof(struct PNP_GetRelatedDeviceInstance
),
3471 (ndr_push_flags_fn_t
) ndr_push_PNP_GetRelatedDeviceInstance
,
3472 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetRelatedDeviceInstance
,
3473 (ndr_print_function_t
) ndr_print_PNP_GetRelatedDeviceInstance
,
3477 "PNP_EnumerateSubKeys",
3478 sizeof(struct PNP_EnumerateSubKeys
),
3479 (ndr_push_flags_fn_t
) ndr_push_PNP_EnumerateSubKeys
,
3480 (ndr_pull_flags_fn_t
) ndr_pull_PNP_EnumerateSubKeys
,
3481 (ndr_print_function_t
) ndr_print_PNP_EnumerateSubKeys
,
3485 "PNP_GetDeviceList",
3486 sizeof(struct PNP_GetDeviceList
),
3487 (ndr_push_flags_fn_t
) ndr_push_PNP_GetDeviceList
,
3488 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetDeviceList
,
3489 (ndr_print_function_t
) ndr_print_PNP_GetDeviceList
,
3493 "PNP_GetDeviceListSize",
3494 sizeof(struct PNP_GetDeviceListSize
),
3495 (ndr_push_flags_fn_t
) ndr_push_PNP_GetDeviceListSize
,
3496 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetDeviceListSize
,
3497 (ndr_print_function_t
) ndr_print_PNP_GetDeviceListSize
,
3502 sizeof(struct PNP_GetDepth
),
3503 (ndr_push_flags_fn_t
) ndr_push_PNP_GetDepth
,
3504 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetDepth
,
3505 (ndr_print_function_t
) ndr_print_PNP_GetDepth
,
3509 "PNP_GetDeviceRegProp",
3510 sizeof(struct PNP_GetDeviceRegProp
),
3511 (ndr_push_flags_fn_t
) ndr_push_PNP_GetDeviceRegProp
,
3512 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetDeviceRegProp
,
3513 (ndr_print_function_t
) ndr_print_PNP_GetDeviceRegProp
,
3517 "PNP_SetDeviceRegProp",
3518 sizeof(struct PNP_SetDeviceRegProp
),
3519 (ndr_push_flags_fn_t
) ndr_push_PNP_SetDeviceRegProp
,
3520 (ndr_pull_flags_fn_t
) ndr_pull_PNP_SetDeviceRegProp
,
3521 (ndr_print_function_t
) ndr_print_PNP_SetDeviceRegProp
,
3525 "PNP_GetClassInstance",
3526 sizeof(struct PNP_GetClassInstance
),
3527 (ndr_push_flags_fn_t
) ndr_push_PNP_GetClassInstance
,
3528 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetClassInstance
,
3529 (ndr_print_function_t
) ndr_print_PNP_GetClassInstance
,
3534 sizeof(struct PNP_CreateKey
),
3535 (ndr_push_flags_fn_t
) ndr_push_PNP_CreateKey
,
3536 (ndr_pull_flags_fn_t
) ndr_pull_PNP_CreateKey
,
3537 (ndr_print_function_t
) ndr_print_PNP_CreateKey
,
3541 "PNP_DeleteRegistryKey",
3542 sizeof(struct PNP_DeleteRegistryKey
),
3543 (ndr_push_flags_fn_t
) ndr_push_PNP_DeleteRegistryKey
,
3544 (ndr_pull_flags_fn_t
) ndr_pull_PNP_DeleteRegistryKey
,
3545 (ndr_print_function_t
) ndr_print_PNP_DeleteRegistryKey
,
3549 "PNP_GetClassCount",
3550 sizeof(struct PNP_GetClassCount
),
3551 (ndr_push_flags_fn_t
) ndr_push_PNP_GetClassCount
,
3552 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetClassCount
,
3553 (ndr_print_function_t
) ndr_print_PNP_GetClassCount
,
3558 sizeof(struct PNP_GetClassName
),
3559 (ndr_push_flags_fn_t
) ndr_push_PNP_GetClassName
,
3560 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetClassName
,
3561 (ndr_print_function_t
) ndr_print_PNP_GetClassName
,
3565 "PNP_DeleteClassKey",
3566 sizeof(struct PNP_DeleteClassKey
),
3567 (ndr_push_flags_fn_t
) ndr_push_PNP_DeleteClassKey
,
3568 (ndr_pull_flags_fn_t
) ndr_pull_PNP_DeleteClassKey
,
3569 (ndr_print_function_t
) ndr_print_PNP_DeleteClassKey
,
3573 "PNP_GetInterfaceDeviceAlias",
3574 sizeof(struct PNP_GetInterfaceDeviceAlias
),
3575 (ndr_push_flags_fn_t
) ndr_push_PNP_GetInterfaceDeviceAlias
,
3576 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetInterfaceDeviceAlias
,
3577 (ndr_print_function_t
) ndr_print_PNP_GetInterfaceDeviceAlias
,
3581 "PNP_GetInterfaceDeviceList",
3582 sizeof(struct PNP_GetInterfaceDeviceList
),
3583 (ndr_push_flags_fn_t
) ndr_push_PNP_GetInterfaceDeviceList
,
3584 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetInterfaceDeviceList
,
3585 (ndr_print_function_t
) ndr_print_PNP_GetInterfaceDeviceList
,
3589 "PNP_GetInterfaceDeviceListSize",
3590 sizeof(struct PNP_GetInterfaceDeviceListSize
),
3591 (ndr_push_flags_fn_t
) ndr_push_PNP_GetInterfaceDeviceListSize
,
3592 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetInterfaceDeviceListSize
,
3593 (ndr_print_function_t
) ndr_print_PNP_GetInterfaceDeviceListSize
,
3597 "PNP_RegisterDeviceClassAssociation",
3598 sizeof(struct PNP_RegisterDeviceClassAssociation
),
3599 (ndr_push_flags_fn_t
) ndr_push_PNP_RegisterDeviceClassAssociation
,
3600 (ndr_pull_flags_fn_t
) ndr_pull_PNP_RegisterDeviceClassAssociation
,
3601 (ndr_print_function_t
) ndr_print_PNP_RegisterDeviceClassAssociation
,
3605 "PNP_UnregisterDeviceClassAssociation",
3606 sizeof(struct PNP_UnregisterDeviceClassAssociation
),
3607 (ndr_push_flags_fn_t
) ndr_push_PNP_UnregisterDeviceClassAssociation
,
3608 (ndr_pull_flags_fn_t
) ndr_pull_PNP_UnregisterDeviceClassAssociation
,
3609 (ndr_print_function_t
) ndr_print_PNP_UnregisterDeviceClassAssociation
,
3613 "PNP_GetClassRegProp",
3614 sizeof(struct PNP_GetClassRegProp
),
3615 (ndr_push_flags_fn_t
) ndr_push_PNP_GetClassRegProp
,
3616 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetClassRegProp
,
3617 (ndr_print_function_t
) ndr_print_PNP_GetClassRegProp
,
3621 "PNP_SetClassRegProp",
3622 sizeof(struct PNP_SetClassRegProp
),
3623 (ndr_push_flags_fn_t
) ndr_push_PNP_SetClassRegProp
,
3624 (ndr_pull_flags_fn_t
) ndr_pull_PNP_SetClassRegProp
,
3625 (ndr_print_function_t
) ndr_print_PNP_SetClassRegProp
,
3629 "PNP_CreateDevInst",
3630 sizeof(struct PNP_CreateDevInst
),
3631 (ndr_push_flags_fn_t
) ndr_push_PNP_CreateDevInst
,
3632 (ndr_pull_flags_fn_t
) ndr_pull_PNP_CreateDevInst
,
3633 (ndr_print_function_t
) ndr_print_PNP_CreateDevInst
,
3637 "PNP_DeviceInstanceAction",
3638 sizeof(struct PNP_DeviceInstanceAction
),
3639 (ndr_push_flags_fn_t
) ndr_push_PNP_DeviceInstanceAction
,
3640 (ndr_pull_flags_fn_t
) ndr_pull_PNP_DeviceInstanceAction
,
3641 (ndr_print_function_t
) ndr_print_PNP_DeviceInstanceAction
,
3645 "PNP_GetDeviceStatus",
3646 sizeof(struct PNP_GetDeviceStatus
),
3647 (ndr_push_flags_fn_t
) ndr_push_PNP_GetDeviceStatus
,
3648 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetDeviceStatus
,
3649 (ndr_print_function_t
) ndr_print_PNP_GetDeviceStatus
,
3653 "PNP_SetDeviceProblem",
3654 sizeof(struct PNP_SetDeviceProblem
),
3655 (ndr_push_flags_fn_t
) ndr_push_PNP_SetDeviceProblem
,
3656 (ndr_pull_flags_fn_t
) ndr_pull_PNP_SetDeviceProblem
,
3657 (ndr_print_function_t
) ndr_print_PNP_SetDeviceProblem
,
3661 "PNP_DisableDevInst",
3662 sizeof(struct PNP_DisableDevInst
),
3663 (ndr_push_flags_fn_t
) ndr_push_PNP_DisableDevInst
,
3664 (ndr_pull_flags_fn_t
) ndr_pull_PNP_DisableDevInst
,
3665 (ndr_print_function_t
) ndr_print_PNP_DisableDevInst
,
3669 "PNP_UninstallDevInst",
3670 sizeof(struct PNP_UninstallDevInst
),
3671 (ndr_push_flags_fn_t
) ndr_push_PNP_UninstallDevInst
,
3672 (ndr_pull_flags_fn_t
) ndr_pull_PNP_UninstallDevInst
,
3673 (ndr_print_function_t
) ndr_print_PNP_UninstallDevInst
,
3678 sizeof(struct PNP_AddID
),
3679 (ndr_push_flags_fn_t
) ndr_push_PNP_AddID
,
3680 (ndr_pull_flags_fn_t
) ndr_pull_PNP_AddID
,
3681 (ndr_print_function_t
) ndr_print_PNP_AddID
,
3685 "PNP_RegisterDriver",
3686 sizeof(struct PNP_RegisterDriver
),
3687 (ndr_push_flags_fn_t
) ndr_push_PNP_RegisterDriver
,
3688 (ndr_pull_flags_fn_t
) ndr_pull_PNP_RegisterDriver
,
3689 (ndr_print_function_t
) ndr_print_PNP_RegisterDriver
,
3694 sizeof(struct PNP_QueryRemove
),
3695 (ndr_push_flags_fn_t
) ndr_push_PNP_QueryRemove
,
3696 (ndr_pull_flags_fn_t
) ndr_pull_PNP_QueryRemove
,
3697 (ndr_print_function_t
) ndr_print_PNP_QueryRemove
,
3701 "PNP_RequestDeviceEject",
3702 sizeof(struct PNP_RequestDeviceEject
),
3703 (ndr_push_flags_fn_t
) ndr_push_PNP_RequestDeviceEject
,
3704 (ndr_pull_flags_fn_t
) ndr_pull_PNP_RequestDeviceEject
,
3705 (ndr_print_function_t
) ndr_print_PNP_RequestDeviceEject
,
3709 "PNP_IsDockStationPresent",
3710 sizeof(struct PNP_IsDockStationPresent
),
3711 (ndr_push_flags_fn_t
) ndr_push_PNP_IsDockStationPresent
,
3712 (ndr_pull_flags_fn_t
) ndr_pull_PNP_IsDockStationPresent
,
3713 (ndr_print_function_t
) ndr_print_PNP_IsDockStationPresent
,
3717 "PNP_RequestEjectPC",
3718 sizeof(struct PNP_RequestEjectPC
),
3719 (ndr_push_flags_fn_t
) ndr_push_PNP_RequestEjectPC
,
3720 (ndr_pull_flags_fn_t
) ndr_pull_PNP_RequestEjectPC
,
3721 (ndr_print_function_t
) ndr_print_PNP_RequestEjectPC
,
3726 sizeof(struct PNP_HwProfFlags
),
3727 (ndr_push_flags_fn_t
) ndr_push_PNP_HwProfFlags
,
3728 (ndr_pull_flags_fn_t
) ndr_pull_PNP_HwProfFlags
,
3729 (ndr_print_function_t
) ndr_print_PNP_HwProfFlags
,
3733 "PNP_GetHwProfInfo",
3734 sizeof(struct PNP_GetHwProfInfo
),
3735 (ndr_push_flags_fn_t
) ndr_push_PNP_GetHwProfInfo
,
3736 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetHwProfInfo
,
3737 (ndr_print_function_t
) ndr_print_PNP_GetHwProfInfo
,
3741 "PNP_AddEmptyLogConf",
3742 sizeof(struct PNP_AddEmptyLogConf
),
3743 (ndr_push_flags_fn_t
) ndr_push_PNP_AddEmptyLogConf
,
3744 (ndr_pull_flags_fn_t
) ndr_pull_PNP_AddEmptyLogConf
,
3745 (ndr_print_function_t
) ndr_print_PNP_AddEmptyLogConf
,
3750 sizeof(struct PNP_FreeLogConf
),
3751 (ndr_push_flags_fn_t
) ndr_push_PNP_FreeLogConf
,
3752 (ndr_pull_flags_fn_t
) ndr_pull_PNP_FreeLogConf
,
3753 (ndr_print_function_t
) ndr_print_PNP_FreeLogConf
,
3757 "PNP_GetFirstLogConf",
3758 sizeof(struct PNP_GetFirstLogConf
),
3759 (ndr_push_flags_fn_t
) ndr_push_PNP_GetFirstLogConf
,
3760 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetFirstLogConf
,
3761 (ndr_print_function_t
) ndr_print_PNP_GetFirstLogConf
,
3765 "PNP_GetNextLogConf",
3766 sizeof(struct PNP_GetNextLogConf
),
3767 (ndr_push_flags_fn_t
) ndr_push_PNP_GetNextLogConf
,
3768 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetNextLogConf
,
3769 (ndr_print_function_t
) ndr_print_PNP_GetNextLogConf
,
3773 "PNP_GetLogConfPriority",
3774 sizeof(struct PNP_GetLogConfPriority
),
3775 (ndr_push_flags_fn_t
) ndr_push_PNP_GetLogConfPriority
,
3776 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetLogConfPriority
,
3777 (ndr_print_function_t
) ndr_print_PNP_GetLogConfPriority
,
3782 sizeof(struct PNP_AddResDes
),
3783 (ndr_push_flags_fn_t
) ndr_push_PNP_AddResDes
,
3784 (ndr_pull_flags_fn_t
) ndr_pull_PNP_AddResDes
,
3785 (ndr_print_function_t
) ndr_print_PNP_AddResDes
,
3790 sizeof(struct PNP_FreeResDes
),
3791 (ndr_push_flags_fn_t
) ndr_push_PNP_FreeResDes
,
3792 (ndr_pull_flags_fn_t
) ndr_pull_PNP_FreeResDes
,
3793 (ndr_print_function_t
) ndr_print_PNP_FreeResDes
,
3797 "PNP_GetNextResDes",
3798 sizeof(struct PNP_GetNextResDes
),
3799 (ndr_push_flags_fn_t
) ndr_push_PNP_GetNextResDes
,
3800 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetNextResDes
,
3801 (ndr_print_function_t
) ndr_print_PNP_GetNextResDes
,
3805 "PNP_GetResDesData",
3806 sizeof(struct PNP_GetResDesData
),
3807 (ndr_push_flags_fn_t
) ndr_push_PNP_GetResDesData
,
3808 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetResDesData
,
3809 (ndr_print_function_t
) ndr_print_PNP_GetResDesData
,
3813 "PNP_GetResDesDataSize",
3814 sizeof(struct PNP_GetResDesDataSize
),
3815 (ndr_push_flags_fn_t
) ndr_push_PNP_GetResDesDataSize
,
3816 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetResDesDataSize
,
3817 (ndr_print_function_t
) ndr_print_PNP_GetResDesDataSize
,
3822 sizeof(struct PNP_ModifyResDes
),
3823 (ndr_push_flags_fn_t
) ndr_push_PNP_ModifyResDes
,
3824 (ndr_pull_flags_fn_t
) ndr_pull_PNP_ModifyResDes
,
3825 (ndr_print_function_t
) ndr_print_PNP_ModifyResDes
,
3829 "PNP_DetectResourceLimit",
3830 sizeof(struct PNP_DetectResourceLimit
),
3831 (ndr_push_flags_fn_t
) ndr_push_PNP_DetectResourceLimit
,
3832 (ndr_pull_flags_fn_t
) ndr_pull_PNP_DetectResourceLimit
,
3833 (ndr_print_function_t
) ndr_print_PNP_DetectResourceLimit
,
3837 "PNP_QueryResConfList",
3838 sizeof(struct PNP_QueryResConfList
),
3839 (ndr_push_flags_fn_t
) ndr_push_PNP_QueryResConfList
,
3840 (ndr_pull_flags_fn_t
) ndr_pull_PNP_QueryResConfList
,
3841 (ndr_print_function_t
) ndr_print_PNP_QueryResConfList
,
3846 sizeof(struct PNP_SetHwProf
),
3847 (ndr_push_flags_fn_t
) ndr_push_PNP_SetHwProf
,
3848 (ndr_pull_flags_fn_t
) ndr_pull_PNP_SetHwProf
,
3849 (ndr_print_function_t
) ndr_print_PNP_SetHwProf
,
3853 "PNP_QueryArbitratorFreeData",
3854 sizeof(struct PNP_QueryArbitratorFreeData
),
3855 (ndr_push_flags_fn_t
) ndr_push_PNP_QueryArbitratorFreeData
,
3856 (ndr_pull_flags_fn_t
) ndr_pull_PNP_QueryArbitratorFreeData
,
3857 (ndr_print_function_t
) ndr_print_PNP_QueryArbitratorFreeData
,
3861 "PNP_QueryArbitratorFreeSize",
3862 sizeof(struct PNP_QueryArbitratorFreeSize
),
3863 (ndr_push_flags_fn_t
) ndr_push_PNP_QueryArbitratorFreeSize
,
3864 (ndr_pull_flags_fn_t
) ndr_pull_PNP_QueryArbitratorFreeSize
,
3865 (ndr_print_function_t
) ndr_print_PNP_QueryArbitratorFreeSize
,
3870 sizeof(struct PNP_RunDetection
),
3871 (ndr_push_flags_fn_t
) ndr_push_PNP_RunDetection
,
3872 (ndr_pull_flags_fn_t
) ndr_pull_PNP_RunDetection
,
3873 (ndr_print_function_t
) ndr_print_PNP_RunDetection
,
3877 "PNP_RegisterNotification",
3878 sizeof(struct PNP_RegisterNotification
),
3879 (ndr_push_flags_fn_t
) ndr_push_PNP_RegisterNotification
,
3880 (ndr_pull_flags_fn_t
) ndr_pull_PNP_RegisterNotification
,
3881 (ndr_print_function_t
) ndr_print_PNP_RegisterNotification
,
3885 "PNP_UnregisterNotification",
3886 sizeof(struct PNP_UnregisterNotification
),
3887 (ndr_push_flags_fn_t
) ndr_push_PNP_UnregisterNotification
,
3888 (ndr_pull_flags_fn_t
) ndr_pull_PNP_UnregisterNotification
,
3889 (ndr_print_function_t
) ndr_print_PNP_UnregisterNotification
,
3893 "PNP_GetCustomDevProp",
3894 sizeof(struct PNP_GetCustomDevProp
),
3895 (ndr_push_flags_fn_t
) ndr_push_PNP_GetCustomDevProp
,
3896 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetCustomDevProp
,
3897 (ndr_print_function_t
) ndr_print_PNP_GetCustomDevProp
,
3901 "PNP_GetVersionInternal",
3902 sizeof(struct PNP_GetVersionInternal
),
3903 (ndr_push_flags_fn_t
) ndr_push_PNP_GetVersionInternal
,
3904 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetVersionInternal
,
3905 (ndr_print_function_t
) ndr_print_PNP_GetVersionInternal
,
3909 "PNP_GetBlockedDriverInfo",
3910 sizeof(struct PNP_GetBlockedDriverInfo
),
3911 (ndr_push_flags_fn_t
) ndr_push_PNP_GetBlockedDriverInfo
,
3912 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetBlockedDriverInfo
,
3913 (ndr_print_function_t
) ndr_print_PNP_GetBlockedDriverInfo
,
3917 "PNP_GetServerSideDeviceInstallFlags",
3918 sizeof(struct PNP_GetServerSideDeviceInstallFlags
),
3919 (ndr_push_flags_fn_t
) ndr_push_PNP_GetServerSideDeviceInstallFlags
,
3920 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetServerSideDeviceInstallFlags
,
3921 (ndr_print_function_t
) ndr_print_PNP_GetServerSideDeviceInstallFlags
,
3924 { NULL
, 0, NULL
, NULL
, NULL
, false }
3927 static const char * const ntsvcs_endpoint_strings
[] = {
3928 "ncacn_np:[\\pipe\\ntsvcs]",
3929 "ncacn_np:[\\pipe\\plugplay]",
3932 static const struct ndr_interface_string_array ntsvcs_endpoints
= {
3934 .names
= ntsvcs_endpoint_strings
3937 static const char * const ntsvcs_authservice_strings
[] = {
3941 static const struct ndr_interface_string_array ntsvcs_authservices
= {
3943 .names
= ntsvcs_authservice_strings
3947 const struct ndr_interface_table ndr_table_ntsvcs
= {
3950 {0x8d9f4e40,0xa03d,0x11ce,{0x8f,0x69},{0x08,0x00,0x3e,0x30,0x05,0x1b}},
3953 .helpstring
= NDR_NTSVCS_HELPSTRING
,
3955 .calls
= ntsvcs_calls
,
3956 .endpoints
= &ntsvcs_endpoints
,
3957 .authservices
= &ntsvcs_authservices