1 /* parser auto-generated by pidl */
4 #include "../librpc/gen_ndr/ndr_ntsvcs.h"
6 #include "librpc/gen_ndr/ndr_misc.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
));
48 NDR_CHECK(ndr_push_trailer_align(ndr
, 4));
50 if (ndr_flags
& NDR_BUFFERS
) {
52 return NDR_ERR_SUCCESS
;
55 static enum ndr_err_code
ndr_pull_PNP_HwProfInfo(struct ndr_pull
*ndr
, int ndr_flags
, struct PNP_HwProfInfo
*r
)
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 for (cntr_friendly_name_0
= 0; cntr_friendly_name_0
< 80; cntr_friendly_name_0
++) {
62 NDR_CHECK(ndr_pull_uint16(ndr
, NDR_SCALARS
, &r
->friendly_name
[cntr_friendly_name_0
]));
64 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, &r
->flags
));
65 NDR_CHECK(ndr_pull_trailer_align(ndr
, 4));
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_uint3264(ndr
, NDR_SCALARS
, ndr_charset_length(r
->in
.devicepath
, CH_UTF16
)));
365 NDR_CHECK(ndr_push_uint3264(ndr
, NDR_SCALARS
, 0));
366 NDR_CHECK(ndr_push_uint3264(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 if (flags
& NDR_IN
) {
379 NDR_CHECK(ndr_pull_array_size(ndr
, &r
->in
.devicepath
));
380 NDR_CHECK(ndr_pull_array_length(ndr
, &r
->in
.devicepath
));
381 if (ndr_get_array_length(ndr
, &r
->in
.devicepath
) > ndr_get_array_size(ndr
, &r
->in
.devicepath
)) {
382 return ndr_pull_error(ndr
, NDR_ERR_ARRAY_SIZE
, "Bad array size %u should exceed array length %u", ndr_get_array_size(ndr
, &r
->in
.devicepath
), ndr_get_array_length(ndr
, &r
->in
.devicepath
));
384 NDR_CHECK(ndr_check_string_terminator(ndr
, ndr_get_array_length(ndr
, &r
->in
.devicepath
), sizeof(uint16_t)));
385 NDR_CHECK(ndr_pull_charset(ndr
, NDR_SCALARS
, &r
->in
.devicepath
, ndr_get_array_length(ndr
, &r
->in
.devicepath
), sizeof(uint16_t), CH_UTF16
));
386 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, &r
->in
.flags
));
388 if (flags
& NDR_OUT
) {
389 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
391 return NDR_ERR_SUCCESS
;
394 _PUBLIC_
void ndr_print_PNP_ValidateDeviceInstance(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_ValidateDeviceInstance
*r
)
396 ndr_print_struct(ndr
, name
, "PNP_ValidateDeviceInstance");
398 if (flags
& NDR_SET_VALUES
) {
399 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
401 if (flags
& NDR_IN
) {
402 ndr_print_struct(ndr
, "in", "PNP_ValidateDeviceInstance");
404 ndr_print_ptr(ndr
, "devicepath", r
->in
.devicepath
);
406 ndr_print_string(ndr
, "devicepath", r
->in
.devicepath
);
408 ndr_print_uint32(ndr
, "flags", r
->in
.flags
);
411 if (flags
& NDR_OUT
) {
412 ndr_print_struct(ndr
, "out", "PNP_ValidateDeviceInstance");
414 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
420 static enum ndr_err_code
ndr_push_PNP_GetRootDeviceInstance(struct ndr_push
*ndr
, int flags
, const struct PNP_GetRootDeviceInstance
*r
)
422 if (flags
& NDR_IN
) {
424 if (flags
& NDR_OUT
) {
425 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
427 return NDR_ERR_SUCCESS
;
430 static enum ndr_err_code
ndr_pull_PNP_GetRootDeviceInstance(struct ndr_pull
*ndr
, int flags
, struct PNP_GetRootDeviceInstance
*r
)
432 if (flags
& NDR_IN
) {
434 if (flags
& NDR_OUT
) {
435 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
437 return NDR_ERR_SUCCESS
;
440 _PUBLIC_
void ndr_print_PNP_GetRootDeviceInstance(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetRootDeviceInstance
*r
)
442 ndr_print_struct(ndr
, name
, "PNP_GetRootDeviceInstance");
444 if (flags
& NDR_SET_VALUES
) {
445 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
447 if (flags
& NDR_IN
) {
448 ndr_print_struct(ndr
, "in", "PNP_GetRootDeviceInstance");
452 if (flags
& NDR_OUT
) {
453 ndr_print_struct(ndr
, "out", "PNP_GetRootDeviceInstance");
455 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
461 static enum ndr_err_code
ndr_push_PNP_GetRelatedDeviceInstance(struct ndr_push
*ndr
, int flags
, const struct PNP_GetRelatedDeviceInstance
*r
)
463 if (flags
& NDR_IN
) {
465 if (flags
& NDR_OUT
) {
466 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
468 return NDR_ERR_SUCCESS
;
471 static enum ndr_err_code
ndr_pull_PNP_GetRelatedDeviceInstance(struct ndr_pull
*ndr
, int flags
, struct PNP_GetRelatedDeviceInstance
*r
)
473 if (flags
& NDR_IN
) {
475 if (flags
& NDR_OUT
) {
476 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
478 return NDR_ERR_SUCCESS
;
481 _PUBLIC_
void ndr_print_PNP_GetRelatedDeviceInstance(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetRelatedDeviceInstance
*r
)
483 ndr_print_struct(ndr
, name
, "PNP_GetRelatedDeviceInstance");
485 if (flags
& NDR_SET_VALUES
) {
486 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
488 if (flags
& NDR_IN
) {
489 ndr_print_struct(ndr
, "in", "PNP_GetRelatedDeviceInstance");
493 if (flags
& NDR_OUT
) {
494 ndr_print_struct(ndr
, "out", "PNP_GetRelatedDeviceInstance");
496 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
502 static enum ndr_err_code
ndr_push_PNP_EnumerateSubKeys(struct ndr_push
*ndr
, int flags
, const struct PNP_EnumerateSubKeys
*r
)
504 if (flags
& NDR_IN
) {
506 if (flags
& NDR_OUT
) {
507 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
509 return NDR_ERR_SUCCESS
;
512 static enum ndr_err_code
ndr_pull_PNP_EnumerateSubKeys(struct ndr_pull
*ndr
, int flags
, struct PNP_EnumerateSubKeys
*r
)
514 if (flags
& NDR_IN
) {
516 if (flags
& NDR_OUT
) {
517 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
519 return NDR_ERR_SUCCESS
;
522 _PUBLIC_
void ndr_print_PNP_EnumerateSubKeys(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_EnumerateSubKeys
*r
)
524 ndr_print_struct(ndr
, name
, "PNP_EnumerateSubKeys");
526 if (flags
& NDR_SET_VALUES
) {
527 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
529 if (flags
& NDR_IN
) {
530 ndr_print_struct(ndr
, "in", "PNP_EnumerateSubKeys");
534 if (flags
& NDR_OUT
) {
535 ndr_print_struct(ndr
, "out", "PNP_EnumerateSubKeys");
537 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
543 static enum ndr_err_code
ndr_push_PNP_GetDeviceList(struct ndr_push
*ndr
, int flags
, const struct PNP_GetDeviceList
*r
)
545 uint32_t cntr_buffer_1
;
546 if (flags
& NDR_IN
) {
547 NDR_CHECK(ndr_push_unique_ptr(ndr
, r
->in
.filter
));
549 NDR_CHECK(ndr_push_uint3264(ndr
, NDR_SCALARS
, ndr_charset_length(r
->in
.filter
, CH_UTF16
)));
550 NDR_CHECK(ndr_push_uint3264(ndr
, NDR_SCALARS
, 0));
551 NDR_CHECK(ndr_push_uint3264(ndr
, NDR_SCALARS
, ndr_charset_length(r
->in
.filter
, CH_UTF16
)));
552 NDR_CHECK(ndr_push_charset(ndr
, NDR_SCALARS
, r
->in
.filter
, ndr_charset_length(r
->in
.filter
, CH_UTF16
), sizeof(uint16_t), CH_UTF16
));
554 if (r
->in
.length
== NULL
) {
555 return ndr_push_error(ndr
, NDR_ERR_INVALID_POINTER
, "NULL [ref] pointer");
557 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, *r
->in
.length
));
558 NDR_CHECK(ndr_push_PNP_GetIdListFlags(ndr
, NDR_SCALARS
, r
->in
.flags
));
560 if (flags
& NDR_OUT
) {
561 if (r
->out
.buffer
== NULL
) {
562 return ndr_push_error(ndr
, NDR_ERR_INVALID_POINTER
, "NULL [ref] pointer");
564 NDR_CHECK(ndr_push_uint3264(ndr
, NDR_SCALARS
, *r
->out
.length
));
565 NDR_CHECK(ndr_push_uint3264(ndr
, NDR_SCALARS
, 0));
566 NDR_CHECK(ndr_push_uint3264(ndr
, NDR_SCALARS
, *r
->out
.length
));
567 for (cntr_buffer_1
= 0; cntr_buffer_1
< *r
->out
.length
; cntr_buffer_1
++) {
568 NDR_CHECK(ndr_push_uint16(ndr
, NDR_SCALARS
, r
->out
.buffer
[cntr_buffer_1
]));
570 if (r
->out
.length
== NULL
) {
571 return ndr_push_error(ndr
, NDR_ERR_INVALID_POINTER
, "NULL [ref] pointer");
573 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, *r
->out
.length
));
574 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
576 return NDR_ERR_SUCCESS
;
579 static enum ndr_err_code
ndr_pull_PNP_GetDeviceList(struct ndr_pull
*ndr
, int flags
, struct PNP_GetDeviceList
*r
)
581 uint32_t _ptr_filter
;
582 uint32_t cntr_buffer_1
;
583 TALLOC_CTX
*_mem_save_filter_0
;
584 TALLOC_CTX
*_mem_save_buffer_1
;
585 TALLOC_CTX
*_mem_save_length_0
;
586 if (flags
& NDR_IN
) {
589 NDR_CHECK(ndr_pull_generic_ptr(ndr
, &_ptr_filter
));
591 NDR_PULL_ALLOC(ndr
, r
->in
.filter
);
596 _mem_save_filter_0
= NDR_PULL_GET_MEM_CTX(ndr
);
597 NDR_PULL_SET_MEM_CTX(ndr
, r
->in
.filter
, 0);
598 NDR_CHECK(ndr_pull_array_size(ndr
, &r
->in
.filter
));
599 NDR_CHECK(ndr_pull_array_length(ndr
, &r
->in
.filter
));
600 if (ndr_get_array_length(ndr
, &r
->in
.filter
) > ndr_get_array_size(ndr
, &r
->in
.filter
)) {
601 return ndr_pull_error(ndr
, NDR_ERR_ARRAY_SIZE
, "Bad array size %u should exceed array length %u", ndr_get_array_size(ndr
, &r
->in
.filter
), ndr_get_array_length(ndr
, &r
->in
.filter
));
603 NDR_CHECK(ndr_check_string_terminator(ndr
, ndr_get_array_length(ndr
, &r
->in
.filter
), sizeof(uint16_t)));
604 NDR_CHECK(ndr_pull_charset(ndr
, NDR_SCALARS
, &r
->in
.filter
, ndr_get_array_length(ndr
, &r
->in
.filter
), sizeof(uint16_t), CH_UTF16
));
605 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_filter_0
, 0);
607 if (ndr
->flags
& LIBNDR_FLAG_REF_ALLOC
) {
608 NDR_PULL_ALLOC(ndr
, r
->in
.length
);
610 _mem_save_length_0
= NDR_PULL_GET_MEM_CTX(ndr
);
611 NDR_PULL_SET_MEM_CTX(ndr
, r
->in
.length
, LIBNDR_FLAG_REF_ALLOC
);
612 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, r
->in
.length
));
613 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_length_0
, LIBNDR_FLAG_REF_ALLOC
);
614 NDR_CHECK(ndr_pull_PNP_GetIdListFlags(ndr
, NDR_SCALARS
, &r
->in
.flags
));
615 NDR_PULL_ALLOC_N(ndr
, r
->out
.buffer
, *r
->in
.length
);
616 memset(r
->out
.buffer
, 0, (*r
->in
.length
) * sizeof(*r
->out
.buffer
));
617 NDR_PULL_ALLOC(ndr
, r
->out
.length
);
618 *r
->out
.length
= *r
->in
.length
;
620 if (flags
& NDR_OUT
) {
621 NDR_CHECK(ndr_pull_array_size(ndr
, &r
->out
.buffer
));
622 NDR_CHECK(ndr_pull_array_length(ndr
, &r
->out
.buffer
));
623 if (ndr_get_array_length(ndr
, &r
->out
.buffer
) > ndr_get_array_size(ndr
, &r
->out
.buffer
)) {
624 return ndr_pull_error(ndr
, NDR_ERR_ARRAY_SIZE
, "Bad array size %u should exceed array length %u", ndr_get_array_size(ndr
, &r
->out
.buffer
), ndr_get_array_length(ndr
, &r
->out
.buffer
));
626 if (ndr
->flags
& LIBNDR_FLAG_REF_ALLOC
) {
627 NDR_PULL_ALLOC_N(ndr
, r
->out
.buffer
, ndr_get_array_size(ndr
, &r
->out
.buffer
));
629 _mem_save_buffer_1
= NDR_PULL_GET_MEM_CTX(ndr
);
630 NDR_PULL_SET_MEM_CTX(ndr
, r
->out
.buffer
, 0);
631 for (cntr_buffer_1
= 0; cntr_buffer_1
< ndr_get_array_length(ndr
, &r
->out
.buffer
); cntr_buffer_1
++) {
632 NDR_CHECK(ndr_pull_uint16(ndr
, NDR_SCALARS
, &r
->out
.buffer
[cntr_buffer_1
]));
634 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_buffer_1
, 0);
635 if (ndr
->flags
& LIBNDR_FLAG_REF_ALLOC
) {
636 NDR_PULL_ALLOC(ndr
, r
->out
.length
);
638 _mem_save_length_0
= NDR_PULL_GET_MEM_CTX(ndr
);
639 NDR_PULL_SET_MEM_CTX(ndr
, r
->out
.length
, LIBNDR_FLAG_REF_ALLOC
);
640 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, r
->out
.length
));
641 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_length_0
, LIBNDR_FLAG_REF_ALLOC
);
642 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
644 NDR_CHECK(ndr_check_array_size(ndr
, (void*)&r
->out
.buffer
, *r
->out
.length
));
647 NDR_CHECK(ndr_check_array_length(ndr
, (void*)&r
->out
.buffer
, *r
->out
.length
));
650 return NDR_ERR_SUCCESS
;
653 _PUBLIC_
void ndr_print_PNP_GetDeviceList(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetDeviceList
*r
)
655 uint32_t cntr_buffer_1
;
656 ndr_print_struct(ndr
, name
, "PNP_GetDeviceList");
658 if (flags
& NDR_SET_VALUES
) {
659 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
661 if (flags
& NDR_IN
) {
662 ndr_print_struct(ndr
, "in", "PNP_GetDeviceList");
664 ndr_print_ptr(ndr
, "filter", r
->in
.filter
);
667 ndr_print_string(ndr
, "filter", r
->in
.filter
);
670 ndr_print_ptr(ndr
, "length", r
->in
.length
);
672 ndr_print_uint32(ndr
, "length", *r
->in
.length
);
674 ndr_print_PNP_GetIdListFlags(ndr
, "flags", r
->in
.flags
);
677 if (flags
& NDR_OUT
) {
678 ndr_print_struct(ndr
, "out", "PNP_GetDeviceList");
680 ndr_print_ptr(ndr
, "buffer", r
->out
.buffer
);
682 ndr
->print(ndr
, "%s: ARRAY(%d)", "buffer", (int)*r
->out
.length
);
684 for (cntr_buffer_1
=0;cntr_buffer_1
<*r
->out
.length
;cntr_buffer_1
++) {
686 if (asprintf(&idx_1
, "[%d]", cntr_buffer_1
) != -1) {
687 ndr_print_uint16(ndr
, "buffer", r
->out
.buffer
[cntr_buffer_1
]);
693 ndr_print_ptr(ndr
, "length", r
->out
.length
);
695 ndr_print_uint32(ndr
, "length", *r
->out
.length
);
697 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
703 static enum ndr_err_code
ndr_push_PNP_GetDeviceListSize(struct ndr_push
*ndr
, int flags
, const struct PNP_GetDeviceListSize
*r
)
705 if (flags
& NDR_IN
) {
706 NDR_CHECK(ndr_push_unique_ptr(ndr
, r
->in
.devicename
));
707 if (r
->in
.devicename
) {
708 NDR_CHECK(ndr_push_uint3264(ndr
, NDR_SCALARS
, ndr_charset_length(r
->in
.devicename
, CH_UTF16
)));
709 NDR_CHECK(ndr_push_uint3264(ndr
, NDR_SCALARS
, 0));
710 NDR_CHECK(ndr_push_uint3264(ndr
, NDR_SCALARS
, ndr_charset_length(r
->in
.devicename
, CH_UTF16
)));
711 NDR_CHECK(ndr_push_charset(ndr
, NDR_SCALARS
, r
->in
.devicename
, ndr_charset_length(r
->in
.devicename
, CH_UTF16
), sizeof(uint16_t), CH_UTF16
));
713 NDR_CHECK(ndr_push_PNP_GetIdListFlags(ndr
, NDR_SCALARS
, r
->in
.flags
));
715 if (flags
& NDR_OUT
) {
716 if (r
->out
.size
== NULL
) {
717 return ndr_push_error(ndr
, NDR_ERR_INVALID_POINTER
, "NULL [ref] pointer");
719 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, *r
->out
.size
));
720 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
722 return NDR_ERR_SUCCESS
;
725 static enum ndr_err_code
ndr_pull_PNP_GetDeviceListSize(struct ndr_pull
*ndr
, int flags
, struct PNP_GetDeviceListSize
*r
)
727 uint32_t _ptr_devicename
;
728 TALLOC_CTX
*_mem_save_devicename_0
;
729 TALLOC_CTX
*_mem_save_size_0
;
730 if (flags
& NDR_IN
) {
733 NDR_CHECK(ndr_pull_generic_ptr(ndr
, &_ptr_devicename
));
734 if (_ptr_devicename
) {
735 NDR_PULL_ALLOC(ndr
, r
->in
.devicename
);
737 r
->in
.devicename
= NULL
;
739 if (r
->in
.devicename
) {
740 _mem_save_devicename_0
= NDR_PULL_GET_MEM_CTX(ndr
);
741 NDR_PULL_SET_MEM_CTX(ndr
, r
->in
.devicename
, 0);
742 NDR_CHECK(ndr_pull_array_size(ndr
, &r
->in
.devicename
));
743 NDR_CHECK(ndr_pull_array_length(ndr
, &r
->in
.devicename
));
744 if (ndr_get_array_length(ndr
, &r
->in
.devicename
) > ndr_get_array_size(ndr
, &r
->in
.devicename
)) {
745 return ndr_pull_error(ndr
, NDR_ERR_ARRAY_SIZE
, "Bad array size %u should exceed array length %u", ndr_get_array_size(ndr
, &r
->in
.devicename
), ndr_get_array_length(ndr
, &r
->in
.devicename
));
747 NDR_CHECK(ndr_check_string_terminator(ndr
, ndr_get_array_length(ndr
, &r
->in
.devicename
), sizeof(uint16_t)));
748 NDR_CHECK(ndr_pull_charset(ndr
, NDR_SCALARS
, &r
->in
.devicename
, ndr_get_array_length(ndr
, &r
->in
.devicename
), sizeof(uint16_t), CH_UTF16
));
749 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_devicename_0
, 0);
751 NDR_CHECK(ndr_pull_PNP_GetIdListFlags(ndr
, NDR_SCALARS
, &r
->in
.flags
));
752 NDR_PULL_ALLOC(ndr
, r
->out
.size
);
753 ZERO_STRUCTP(r
->out
.size
);
755 if (flags
& NDR_OUT
) {
756 if (ndr
->flags
& LIBNDR_FLAG_REF_ALLOC
) {
757 NDR_PULL_ALLOC(ndr
, r
->out
.size
);
759 _mem_save_size_0
= NDR_PULL_GET_MEM_CTX(ndr
);
760 NDR_PULL_SET_MEM_CTX(ndr
, r
->out
.size
, LIBNDR_FLAG_REF_ALLOC
);
761 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, r
->out
.size
));
762 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_size_0
, LIBNDR_FLAG_REF_ALLOC
);
763 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
765 return NDR_ERR_SUCCESS
;
768 _PUBLIC_
void ndr_print_PNP_GetDeviceListSize(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetDeviceListSize
*r
)
770 ndr_print_struct(ndr
, name
, "PNP_GetDeviceListSize");
772 if (flags
& NDR_SET_VALUES
) {
773 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
775 if (flags
& NDR_IN
) {
776 ndr_print_struct(ndr
, "in", "PNP_GetDeviceListSize");
778 ndr_print_ptr(ndr
, "devicename", r
->in
.devicename
);
780 if (r
->in
.devicename
) {
781 ndr_print_string(ndr
, "devicename", r
->in
.devicename
);
784 ndr_print_PNP_GetIdListFlags(ndr
, "flags", r
->in
.flags
);
787 if (flags
& NDR_OUT
) {
788 ndr_print_struct(ndr
, "out", "PNP_GetDeviceListSize");
790 ndr_print_ptr(ndr
, "size", r
->out
.size
);
792 ndr_print_uint32(ndr
, "size", *r
->out
.size
);
794 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
800 static enum ndr_err_code
ndr_push_PNP_GetDepth(struct ndr_push
*ndr
, int flags
, const struct PNP_GetDepth
*r
)
802 if (flags
& NDR_IN
) {
804 if (flags
& NDR_OUT
) {
805 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
807 return NDR_ERR_SUCCESS
;
810 static enum ndr_err_code
ndr_pull_PNP_GetDepth(struct ndr_pull
*ndr
, int flags
, struct PNP_GetDepth
*r
)
812 if (flags
& NDR_IN
) {
814 if (flags
& NDR_OUT
) {
815 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
817 return NDR_ERR_SUCCESS
;
820 _PUBLIC_
void ndr_print_PNP_GetDepth(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetDepth
*r
)
822 ndr_print_struct(ndr
, name
, "PNP_GetDepth");
824 if (flags
& NDR_SET_VALUES
) {
825 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
827 if (flags
& NDR_IN
) {
828 ndr_print_struct(ndr
, "in", "PNP_GetDepth");
832 if (flags
& NDR_OUT
) {
833 ndr_print_struct(ndr
, "out", "PNP_GetDepth");
835 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
841 static enum ndr_err_code
ndr_push_PNP_GetDeviceRegProp(struct ndr_push
*ndr
, int flags
, const struct PNP_GetDeviceRegProp
*r
)
843 if (flags
& NDR_IN
) {
844 if (r
->in
.devicepath
== NULL
) {
845 return ndr_push_error(ndr
, NDR_ERR_INVALID_POINTER
, "NULL [ref] pointer");
847 NDR_CHECK(ndr_push_uint3264(ndr
, NDR_SCALARS
, ndr_charset_length(r
->in
.devicepath
, CH_UTF16
)));
848 NDR_CHECK(ndr_push_uint3264(ndr
, NDR_SCALARS
, 0));
849 NDR_CHECK(ndr_push_uint3264(ndr
, NDR_SCALARS
, ndr_charset_length(r
->in
.devicepath
, CH_UTF16
)));
850 NDR_CHECK(ndr_push_charset(ndr
, NDR_SCALARS
, r
->in
.devicepath
, ndr_charset_length(r
->in
.devicepath
, CH_UTF16
), sizeof(uint16_t), CH_UTF16
));
851 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, r
->in
.property
));
852 if (r
->in
.reg_data_type
== NULL
) {
853 return ndr_push_error(ndr
, NDR_ERR_INVALID_POINTER
, "NULL [ref] pointer");
855 NDR_CHECK(ndr_push_winreg_Type(ndr
, NDR_SCALARS
, *r
->in
.reg_data_type
));
856 if (r
->in
.buffer_size
== NULL
) {
857 return ndr_push_error(ndr
, NDR_ERR_INVALID_POINTER
, "NULL [ref] pointer");
859 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, *r
->in
.buffer_size
));
860 if (r
->in
.needed
== NULL
) {
861 return ndr_push_error(ndr
, NDR_ERR_INVALID_POINTER
, "NULL [ref] pointer");
863 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, *r
->in
.needed
));
864 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, r
->in
.flags
));
866 if (flags
& NDR_OUT
) {
867 if (r
->out
.reg_data_type
== NULL
) {
868 return ndr_push_error(ndr
, NDR_ERR_INVALID_POINTER
, "NULL [ref] pointer");
870 NDR_CHECK(ndr_push_winreg_Type(ndr
, NDR_SCALARS
, *r
->out
.reg_data_type
));
871 if (r
->out
.buffer
== NULL
) {
872 return ndr_push_error(ndr
, NDR_ERR_INVALID_POINTER
, "NULL [ref] pointer");
874 NDR_CHECK(ndr_push_uint3264(ndr
, NDR_SCALARS
, *r
->out
.buffer_size
));
875 NDR_CHECK(ndr_push_uint3264(ndr
, NDR_SCALARS
, 0));
876 NDR_CHECK(ndr_push_uint3264(ndr
, NDR_SCALARS
, *r
->out
.buffer_size
));
877 NDR_CHECK(ndr_push_array_uint8(ndr
, NDR_SCALARS
, r
->out
.buffer
, *r
->out
.buffer_size
));
878 if (r
->out
.buffer_size
== NULL
) {
879 return ndr_push_error(ndr
, NDR_ERR_INVALID_POINTER
, "NULL [ref] pointer");
881 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, *r
->out
.buffer_size
));
882 if (r
->out
.needed
== NULL
) {
883 return ndr_push_error(ndr
, NDR_ERR_INVALID_POINTER
, "NULL [ref] pointer");
885 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, *r
->out
.needed
));
886 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
888 return NDR_ERR_SUCCESS
;
891 static enum ndr_err_code
ndr_pull_PNP_GetDeviceRegProp(struct ndr_pull
*ndr
, int flags
, struct PNP_GetDeviceRegProp
*r
)
893 TALLOC_CTX
*_mem_save_reg_data_type_0
;
894 TALLOC_CTX
*_mem_save_buffer_size_0
;
895 TALLOC_CTX
*_mem_save_needed_0
;
896 if (flags
& NDR_IN
) {
899 NDR_CHECK(ndr_pull_array_size(ndr
, &r
->in
.devicepath
));
900 NDR_CHECK(ndr_pull_array_length(ndr
, &r
->in
.devicepath
));
901 if (ndr_get_array_length(ndr
, &r
->in
.devicepath
) > ndr_get_array_size(ndr
, &r
->in
.devicepath
)) {
902 return ndr_pull_error(ndr
, NDR_ERR_ARRAY_SIZE
, "Bad array size %u should exceed array length %u", ndr_get_array_size(ndr
, &r
->in
.devicepath
), ndr_get_array_length(ndr
, &r
->in
.devicepath
));
904 NDR_CHECK(ndr_check_string_terminator(ndr
, ndr_get_array_length(ndr
, &r
->in
.devicepath
), sizeof(uint16_t)));
905 NDR_CHECK(ndr_pull_charset(ndr
, NDR_SCALARS
, &r
->in
.devicepath
, ndr_get_array_length(ndr
, &r
->in
.devicepath
), sizeof(uint16_t), CH_UTF16
));
906 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, &r
->in
.property
));
907 if (ndr
->flags
& LIBNDR_FLAG_REF_ALLOC
) {
908 NDR_PULL_ALLOC(ndr
, r
->in
.reg_data_type
);
910 _mem_save_reg_data_type_0
= NDR_PULL_GET_MEM_CTX(ndr
);
911 NDR_PULL_SET_MEM_CTX(ndr
, r
->in
.reg_data_type
, LIBNDR_FLAG_REF_ALLOC
);
912 NDR_CHECK(ndr_pull_winreg_Type(ndr
, NDR_SCALARS
, r
->in
.reg_data_type
));
913 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_reg_data_type_0
, LIBNDR_FLAG_REF_ALLOC
);
914 if (ndr
->flags
& LIBNDR_FLAG_REF_ALLOC
) {
915 NDR_PULL_ALLOC(ndr
, r
->in
.buffer_size
);
917 _mem_save_buffer_size_0
= NDR_PULL_GET_MEM_CTX(ndr
);
918 NDR_PULL_SET_MEM_CTX(ndr
, r
->in
.buffer_size
, LIBNDR_FLAG_REF_ALLOC
);
919 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, r
->in
.buffer_size
));
920 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_buffer_size_0
, LIBNDR_FLAG_REF_ALLOC
);
921 if (ndr
->flags
& LIBNDR_FLAG_REF_ALLOC
) {
922 NDR_PULL_ALLOC(ndr
, r
->in
.needed
);
924 _mem_save_needed_0
= NDR_PULL_GET_MEM_CTX(ndr
);
925 NDR_PULL_SET_MEM_CTX(ndr
, r
->in
.needed
, LIBNDR_FLAG_REF_ALLOC
);
926 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, r
->in
.needed
));
927 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_needed_0
, LIBNDR_FLAG_REF_ALLOC
);
928 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, &r
->in
.flags
));
929 NDR_PULL_ALLOC(ndr
, r
->out
.reg_data_type
);
930 *r
->out
.reg_data_type
= *r
->in
.reg_data_type
;
931 NDR_PULL_ALLOC_N(ndr
, r
->out
.buffer
, *r
->in
.buffer_size
);
932 memset(r
->out
.buffer
, 0, (*r
->in
.buffer_size
) * sizeof(*r
->out
.buffer
));
933 NDR_PULL_ALLOC(ndr
, r
->out
.buffer_size
);
934 *r
->out
.buffer_size
= *r
->in
.buffer_size
;
935 NDR_PULL_ALLOC(ndr
, r
->out
.needed
);
936 *r
->out
.needed
= *r
->in
.needed
;
938 if (flags
& NDR_OUT
) {
939 if (ndr
->flags
& LIBNDR_FLAG_REF_ALLOC
) {
940 NDR_PULL_ALLOC(ndr
, r
->out
.reg_data_type
);
942 _mem_save_reg_data_type_0
= NDR_PULL_GET_MEM_CTX(ndr
);
943 NDR_PULL_SET_MEM_CTX(ndr
, r
->out
.reg_data_type
, LIBNDR_FLAG_REF_ALLOC
);
944 NDR_CHECK(ndr_pull_winreg_Type(ndr
, NDR_SCALARS
, r
->out
.reg_data_type
));
945 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_reg_data_type_0
, LIBNDR_FLAG_REF_ALLOC
);
946 NDR_CHECK(ndr_pull_array_size(ndr
, &r
->out
.buffer
));
947 NDR_CHECK(ndr_pull_array_length(ndr
, &r
->out
.buffer
));
948 if (ndr_get_array_length(ndr
, &r
->out
.buffer
) > ndr_get_array_size(ndr
, &r
->out
.buffer
)) {
949 return ndr_pull_error(ndr
, NDR_ERR_ARRAY_SIZE
, "Bad array size %u should exceed array length %u", ndr_get_array_size(ndr
, &r
->out
.buffer
), ndr_get_array_length(ndr
, &r
->out
.buffer
));
951 if (ndr
->flags
& LIBNDR_FLAG_REF_ALLOC
) {
952 NDR_PULL_ALLOC_N(ndr
, r
->out
.buffer
, ndr_get_array_size(ndr
, &r
->out
.buffer
));
954 NDR_CHECK(ndr_pull_array_uint8(ndr
, NDR_SCALARS
, r
->out
.buffer
, ndr_get_array_length(ndr
, &r
->out
.buffer
)));
955 if (ndr
->flags
& LIBNDR_FLAG_REF_ALLOC
) {
956 NDR_PULL_ALLOC(ndr
, r
->out
.buffer_size
);
958 _mem_save_buffer_size_0
= NDR_PULL_GET_MEM_CTX(ndr
);
959 NDR_PULL_SET_MEM_CTX(ndr
, r
->out
.buffer_size
, LIBNDR_FLAG_REF_ALLOC
);
960 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, r
->out
.buffer_size
));
961 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_buffer_size_0
, LIBNDR_FLAG_REF_ALLOC
);
962 if (ndr
->flags
& LIBNDR_FLAG_REF_ALLOC
) {
963 NDR_PULL_ALLOC(ndr
, r
->out
.needed
);
965 _mem_save_needed_0
= NDR_PULL_GET_MEM_CTX(ndr
);
966 NDR_PULL_SET_MEM_CTX(ndr
, r
->out
.needed
, LIBNDR_FLAG_REF_ALLOC
);
967 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, r
->out
.needed
));
968 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_needed_0
, LIBNDR_FLAG_REF_ALLOC
);
969 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
971 NDR_CHECK(ndr_check_array_size(ndr
, (void*)&r
->out
.buffer
, *r
->out
.buffer_size
));
974 NDR_CHECK(ndr_check_array_length(ndr
, (void*)&r
->out
.buffer
, *r
->out
.buffer_size
));
977 return NDR_ERR_SUCCESS
;
980 _PUBLIC_
void ndr_print_PNP_GetDeviceRegProp(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetDeviceRegProp
*r
)
982 ndr_print_struct(ndr
, name
, "PNP_GetDeviceRegProp");
984 if (flags
& NDR_SET_VALUES
) {
985 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
987 if (flags
& NDR_IN
) {
988 ndr_print_struct(ndr
, "in", "PNP_GetDeviceRegProp");
990 ndr_print_ptr(ndr
, "devicepath", r
->in
.devicepath
);
992 ndr_print_string(ndr
, "devicepath", r
->in
.devicepath
);
994 ndr_print_uint32(ndr
, "property", r
->in
.property
);
995 ndr_print_ptr(ndr
, "reg_data_type", r
->in
.reg_data_type
);
997 ndr_print_winreg_Type(ndr
, "reg_data_type", *r
->in
.reg_data_type
);
999 ndr_print_ptr(ndr
, "buffer_size", r
->in
.buffer_size
);
1001 ndr_print_uint32(ndr
, "buffer_size", *r
->in
.buffer_size
);
1003 ndr_print_ptr(ndr
, "needed", r
->in
.needed
);
1005 ndr_print_uint32(ndr
, "needed", *r
->in
.needed
);
1007 ndr_print_uint32(ndr
, "flags", r
->in
.flags
);
1010 if (flags
& NDR_OUT
) {
1011 ndr_print_struct(ndr
, "out", "PNP_GetDeviceRegProp");
1013 ndr_print_ptr(ndr
, "reg_data_type", r
->out
.reg_data_type
);
1015 ndr_print_winreg_Type(ndr
, "reg_data_type", *r
->out
.reg_data_type
);
1017 ndr_print_ptr(ndr
, "buffer", r
->out
.buffer
);
1019 ndr_print_array_uint8(ndr
, "buffer", r
->out
.buffer
, *r
->out
.buffer_size
);
1021 ndr_print_ptr(ndr
, "buffer_size", r
->out
.buffer_size
);
1023 ndr_print_uint32(ndr
, "buffer_size", *r
->out
.buffer_size
);
1025 ndr_print_ptr(ndr
, "needed", r
->out
.needed
);
1027 ndr_print_uint32(ndr
, "needed", *r
->out
.needed
);
1029 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1035 static enum ndr_err_code
ndr_push_PNP_SetDeviceRegProp(struct ndr_push
*ndr
, int flags
, const struct PNP_SetDeviceRegProp
*r
)
1037 if (flags
& NDR_IN
) {
1039 if (flags
& NDR_OUT
) {
1040 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1042 return NDR_ERR_SUCCESS
;
1045 static enum ndr_err_code
ndr_pull_PNP_SetDeviceRegProp(struct ndr_pull
*ndr
, int flags
, struct PNP_SetDeviceRegProp
*r
)
1047 if (flags
& NDR_IN
) {
1049 if (flags
& NDR_OUT
) {
1050 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1052 return NDR_ERR_SUCCESS
;
1055 _PUBLIC_
void ndr_print_PNP_SetDeviceRegProp(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_SetDeviceRegProp
*r
)
1057 ndr_print_struct(ndr
, name
, "PNP_SetDeviceRegProp");
1059 if (flags
& NDR_SET_VALUES
) {
1060 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1062 if (flags
& NDR_IN
) {
1063 ndr_print_struct(ndr
, "in", "PNP_SetDeviceRegProp");
1067 if (flags
& NDR_OUT
) {
1068 ndr_print_struct(ndr
, "out", "PNP_SetDeviceRegProp");
1070 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1076 static enum ndr_err_code
ndr_push_PNP_GetClassInstance(struct ndr_push
*ndr
, int flags
, const struct PNP_GetClassInstance
*r
)
1078 if (flags
& NDR_IN
) {
1080 if (flags
& NDR_OUT
) {
1081 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1083 return NDR_ERR_SUCCESS
;
1086 static enum ndr_err_code
ndr_pull_PNP_GetClassInstance(struct ndr_pull
*ndr
, int flags
, struct PNP_GetClassInstance
*r
)
1088 if (flags
& NDR_IN
) {
1090 if (flags
& NDR_OUT
) {
1091 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1093 return NDR_ERR_SUCCESS
;
1096 _PUBLIC_
void ndr_print_PNP_GetClassInstance(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetClassInstance
*r
)
1098 ndr_print_struct(ndr
, name
, "PNP_GetClassInstance");
1100 if (flags
& NDR_SET_VALUES
) {
1101 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1103 if (flags
& NDR_IN
) {
1104 ndr_print_struct(ndr
, "in", "PNP_GetClassInstance");
1108 if (flags
& NDR_OUT
) {
1109 ndr_print_struct(ndr
, "out", "PNP_GetClassInstance");
1111 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1117 static enum ndr_err_code
ndr_push_PNP_CreateKey(struct ndr_push
*ndr
, int flags
, const struct PNP_CreateKey
*r
)
1119 if (flags
& NDR_IN
) {
1121 if (flags
& NDR_OUT
) {
1122 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1124 return NDR_ERR_SUCCESS
;
1127 static enum ndr_err_code
ndr_pull_PNP_CreateKey(struct ndr_pull
*ndr
, int flags
, struct PNP_CreateKey
*r
)
1129 if (flags
& NDR_IN
) {
1131 if (flags
& NDR_OUT
) {
1132 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1134 return NDR_ERR_SUCCESS
;
1137 _PUBLIC_
void ndr_print_PNP_CreateKey(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_CreateKey
*r
)
1139 ndr_print_struct(ndr
, name
, "PNP_CreateKey");
1141 if (flags
& NDR_SET_VALUES
) {
1142 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1144 if (flags
& NDR_IN
) {
1145 ndr_print_struct(ndr
, "in", "PNP_CreateKey");
1149 if (flags
& NDR_OUT
) {
1150 ndr_print_struct(ndr
, "out", "PNP_CreateKey");
1152 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1158 static enum ndr_err_code
ndr_push_PNP_DeleteRegistryKey(struct ndr_push
*ndr
, int flags
, const struct PNP_DeleteRegistryKey
*r
)
1160 if (flags
& NDR_IN
) {
1162 if (flags
& NDR_OUT
) {
1163 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1165 return NDR_ERR_SUCCESS
;
1168 static enum ndr_err_code
ndr_pull_PNP_DeleteRegistryKey(struct ndr_pull
*ndr
, int flags
, struct PNP_DeleteRegistryKey
*r
)
1170 if (flags
& NDR_IN
) {
1172 if (flags
& NDR_OUT
) {
1173 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1175 return NDR_ERR_SUCCESS
;
1178 _PUBLIC_
void ndr_print_PNP_DeleteRegistryKey(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_DeleteRegistryKey
*r
)
1180 ndr_print_struct(ndr
, name
, "PNP_DeleteRegistryKey");
1182 if (flags
& NDR_SET_VALUES
) {
1183 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1185 if (flags
& NDR_IN
) {
1186 ndr_print_struct(ndr
, "in", "PNP_DeleteRegistryKey");
1190 if (flags
& NDR_OUT
) {
1191 ndr_print_struct(ndr
, "out", "PNP_DeleteRegistryKey");
1193 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1199 static enum ndr_err_code
ndr_push_PNP_GetClassCount(struct ndr_push
*ndr
, int flags
, const struct PNP_GetClassCount
*r
)
1201 if (flags
& NDR_IN
) {
1203 if (flags
& NDR_OUT
) {
1204 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1206 return NDR_ERR_SUCCESS
;
1209 static enum ndr_err_code
ndr_pull_PNP_GetClassCount(struct ndr_pull
*ndr
, int flags
, struct PNP_GetClassCount
*r
)
1211 if (flags
& NDR_IN
) {
1213 if (flags
& NDR_OUT
) {
1214 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1216 return NDR_ERR_SUCCESS
;
1219 _PUBLIC_
void ndr_print_PNP_GetClassCount(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetClassCount
*r
)
1221 ndr_print_struct(ndr
, name
, "PNP_GetClassCount");
1223 if (flags
& NDR_SET_VALUES
) {
1224 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1226 if (flags
& NDR_IN
) {
1227 ndr_print_struct(ndr
, "in", "PNP_GetClassCount");
1231 if (flags
& NDR_OUT
) {
1232 ndr_print_struct(ndr
, "out", "PNP_GetClassCount");
1234 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1240 static enum ndr_err_code
ndr_push_PNP_GetClassName(struct ndr_push
*ndr
, int flags
, const struct PNP_GetClassName
*r
)
1242 if (flags
& NDR_IN
) {
1244 if (flags
& NDR_OUT
) {
1245 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1247 return NDR_ERR_SUCCESS
;
1250 static enum ndr_err_code
ndr_pull_PNP_GetClassName(struct ndr_pull
*ndr
, int flags
, struct PNP_GetClassName
*r
)
1252 if (flags
& NDR_IN
) {
1254 if (flags
& NDR_OUT
) {
1255 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1257 return NDR_ERR_SUCCESS
;
1260 _PUBLIC_
void ndr_print_PNP_GetClassName(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetClassName
*r
)
1262 ndr_print_struct(ndr
, name
, "PNP_GetClassName");
1264 if (flags
& NDR_SET_VALUES
) {
1265 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1267 if (flags
& NDR_IN
) {
1268 ndr_print_struct(ndr
, "in", "PNP_GetClassName");
1272 if (flags
& NDR_OUT
) {
1273 ndr_print_struct(ndr
, "out", "PNP_GetClassName");
1275 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1281 static enum ndr_err_code
ndr_push_PNP_DeleteClassKey(struct ndr_push
*ndr
, int flags
, const struct PNP_DeleteClassKey
*r
)
1283 if (flags
& NDR_IN
) {
1285 if (flags
& NDR_OUT
) {
1286 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1288 return NDR_ERR_SUCCESS
;
1291 static enum ndr_err_code
ndr_pull_PNP_DeleteClassKey(struct ndr_pull
*ndr
, int flags
, struct PNP_DeleteClassKey
*r
)
1293 if (flags
& NDR_IN
) {
1295 if (flags
& NDR_OUT
) {
1296 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1298 return NDR_ERR_SUCCESS
;
1301 _PUBLIC_
void ndr_print_PNP_DeleteClassKey(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_DeleteClassKey
*r
)
1303 ndr_print_struct(ndr
, name
, "PNP_DeleteClassKey");
1305 if (flags
& NDR_SET_VALUES
) {
1306 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1308 if (flags
& NDR_IN
) {
1309 ndr_print_struct(ndr
, "in", "PNP_DeleteClassKey");
1313 if (flags
& NDR_OUT
) {
1314 ndr_print_struct(ndr
, "out", "PNP_DeleteClassKey");
1316 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1322 static enum ndr_err_code
ndr_push_PNP_GetInterfaceDeviceAlias(struct ndr_push
*ndr
, int flags
, const struct PNP_GetInterfaceDeviceAlias
*r
)
1324 if (flags
& NDR_IN
) {
1326 if (flags
& NDR_OUT
) {
1327 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1329 return NDR_ERR_SUCCESS
;
1332 static enum ndr_err_code
ndr_pull_PNP_GetInterfaceDeviceAlias(struct ndr_pull
*ndr
, int flags
, struct PNP_GetInterfaceDeviceAlias
*r
)
1334 if (flags
& NDR_IN
) {
1336 if (flags
& NDR_OUT
) {
1337 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1339 return NDR_ERR_SUCCESS
;
1342 _PUBLIC_
void ndr_print_PNP_GetInterfaceDeviceAlias(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetInterfaceDeviceAlias
*r
)
1344 ndr_print_struct(ndr
, name
, "PNP_GetInterfaceDeviceAlias");
1346 if (flags
& NDR_SET_VALUES
) {
1347 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1349 if (flags
& NDR_IN
) {
1350 ndr_print_struct(ndr
, "in", "PNP_GetInterfaceDeviceAlias");
1354 if (flags
& NDR_OUT
) {
1355 ndr_print_struct(ndr
, "out", "PNP_GetInterfaceDeviceAlias");
1357 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1363 static enum ndr_err_code
ndr_push_PNP_GetInterfaceDeviceList(struct ndr_push
*ndr
, int flags
, const struct PNP_GetInterfaceDeviceList
*r
)
1365 if (flags
& NDR_IN
) {
1367 if (flags
& NDR_OUT
) {
1368 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1370 return NDR_ERR_SUCCESS
;
1373 static enum ndr_err_code
ndr_pull_PNP_GetInterfaceDeviceList(struct ndr_pull
*ndr
, int flags
, struct PNP_GetInterfaceDeviceList
*r
)
1375 if (flags
& NDR_IN
) {
1377 if (flags
& NDR_OUT
) {
1378 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1380 return NDR_ERR_SUCCESS
;
1383 _PUBLIC_
void ndr_print_PNP_GetInterfaceDeviceList(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetInterfaceDeviceList
*r
)
1385 ndr_print_struct(ndr
, name
, "PNP_GetInterfaceDeviceList");
1387 if (flags
& NDR_SET_VALUES
) {
1388 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1390 if (flags
& NDR_IN
) {
1391 ndr_print_struct(ndr
, "in", "PNP_GetInterfaceDeviceList");
1395 if (flags
& NDR_OUT
) {
1396 ndr_print_struct(ndr
, "out", "PNP_GetInterfaceDeviceList");
1398 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1404 static enum ndr_err_code
ndr_push_PNP_GetInterfaceDeviceListSize(struct ndr_push
*ndr
, int flags
, const struct PNP_GetInterfaceDeviceListSize
*r
)
1406 if (flags
& NDR_IN
) {
1408 if (flags
& NDR_OUT
) {
1409 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1411 return NDR_ERR_SUCCESS
;
1414 static enum ndr_err_code
ndr_pull_PNP_GetInterfaceDeviceListSize(struct ndr_pull
*ndr
, int flags
, struct PNP_GetInterfaceDeviceListSize
*r
)
1416 if (flags
& NDR_IN
) {
1418 if (flags
& NDR_OUT
) {
1419 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1421 return NDR_ERR_SUCCESS
;
1424 _PUBLIC_
void ndr_print_PNP_GetInterfaceDeviceListSize(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetInterfaceDeviceListSize
*r
)
1426 ndr_print_struct(ndr
, name
, "PNP_GetInterfaceDeviceListSize");
1428 if (flags
& NDR_SET_VALUES
) {
1429 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1431 if (flags
& NDR_IN
) {
1432 ndr_print_struct(ndr
, "in", "PNP_GetInterfaceDeviceListSize");
1436 if (flags
& NDR_OUT
) {
1437 ndr_print_struct(ndr
, "out", "PNP_GetInterfaceDeviceListSize");
1439 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1445 static enum ndr_err_code
ndr_push_PNP_RegisterDeviceClassAssociation(struct ndr_push
*ndr
, int flags
, const struct PNP_RegisterDeviceClassAssociation
*r
)
1447 if (flags
& NDR_IN
) {
1449 if (flags
& NDR_OUT
) {
1450 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1452 return NDR_ERR_SUCCESS
;
1455 static enum ndr_err_code
ndr_pull_PNP_RegisterDeviceClassAssociation(struct ndr_pull
*ndr
, int flags
, struct PNP_RegisterDeviceClassAssociation
*r
)
1457 if (flags
& NDR_IN
) {
1459 if (flags
& NDR_OUT
) {
1460 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1462 return NDR_ERR_SUCCESS
;
1465 _PUBLIC_
void ndr_print_PNP_RegisterDeviceClassAssociation(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_RegisterDeviceClassAssociation
*r
)
1467 ndr_print_struct(ndr
, name
, "PNP_RegisterDeviceClassAssociation");
1469 if (flags
& NDR_SET_VALUES
) {
1470 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1472 if (flags
& NDR_IN
) {
1473 ndr_print_struct(ndr
, "in", "PNP_RegisterDeviceClassAssociation");
1477 if (flags
& NDR_OUT
) {
1478 ndr_print_struct(ndr
, "out", "PNP_RegisterDeviceClassAssociation");
1480 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1486 static enum ndr_err_code
ndr_push_PNP_UnregisterDeviceClassAssociation(struct ndr_push
*ndr
, int flags
, const struct PNP_UnregisterDeviceClassAssociation
*r
)
1488 if (flags
& NDR_IN
) {
1490 if (flags
& NDR_OUT
) {
1491 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1493 return NDR_ERR_SUCCESS
;
1496 static enum ndr_err_code
ndr_pull_PNP_UnregisterDeviceClassAssociation(struct ndr_pull
*ndr
, int flags
, struct PNP_UnregisterDeviceClassAssociation
*r
)
1498 if (flags
& NDR_IN
) {
1500 if (flags
& NDR_OUT
) {
1501 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1503 return NDR_ERR_SUCCESS
;
1506 _PUBLIC_
void ndr_print_PNP_UnregisterDeviceClassAssociation(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_UnregisterDeviceClassAssociation
*r
)
1508 ndr_print_struct(ndr
, name
, "PNP_UnregisterDeviceClassAssociation");
1510 if (flags
& NDR_SET_VALUES
) {
1511 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1513 if (flags
& NDR_IN
) {
1514 ndr_print_struct(ndr
, "in", "PNP_UnregisterDeviceClassAssociation");
1518 if (flags
& NDR_OUT
) {
1519 ndr_print_struct(ndr
, "out", "PNP_UnregisterDeviceClassAssociation");
1521 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1527 static enum ndr_err_code
ndr_push_PNP_GetClassRegProp(struct ndr_push
*ndr
, int flags
, const struct PNP_GetClassRegProp
*r
)
1529 if (flags
& NDR_IN
) {
1531 if (flags
& NDR_OUT
) {
1532 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1534 return NDR_ERR_SUCCESS
;
1537 static enum ndr_err_code
ndr_pull_PNP_GetClassRegProp(struct ndr_pull
*ndr
, int flags
, struct PNP_GetClassRegProp
*r
)
1539 if (flags
& NDR_IN
) {
1541 if (flags
& NDR_OUT
) {
1542 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1544 return NDR_ERR_SUCCESS
;
1547 _PUBLIC_
void ndr_print_PNP_GetClassRegProp(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetClassRegProp
*r
)
1549 ndr_print_struct(ndr
, name
, "PNP_GetClassRegProp");
1551 if (flags
& NDR_SET_VALUES
) {
1552 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1554 if (flags
& NDR_IN
) {
1555 ndr_print_struct(ndr
, "in", "PNP_GetClassRegProp");
1559 if (flags
& NDR_OUT
) {
1560 ndr_print_struct(ndr
, "out", "PNP_GetClassRegProp");
1562 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1568 static enum ndr_err_code
ndr_push_PNP_SetClassRegProp(struct ndr_push
*ndr
, int flags
, const struct PNP_SetClassRegProp
*r
)
1570 if (flags
& NDR_IN
) {
1572 if (flags
& NDR_OUT
) {
1573 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1575 return NDR_ERR_SUCCESS
;
1578 static enum ndr_err_code
ndr_pull_PNP_SetClassRegProp(struct ndr_pull
*ndr
, int flags
, struct PNP_SetClassRegProp
*r
)
1580 if (flags
& NDR_IN
) {
1582 if (flags
& NDR_OUT
) {
1583 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1585 return NDR_ERR_SUCCESS
;
1588 _PUBLIC_
void ndr_print_PNP_SetClassRegProp(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_SetClassRegProp
*r
)
1590 ndr_print_struct(ndr
, name
, "PNP_SetClassRegProp");
1592 if (flags
& NDR_SET_VALUES
) {
1593 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1595 if (flags
& NDR_IN
) {
1596 ndr_print_struct(ndr
, "in", "PNP_SetClassRegProp");
1600 if (flags
& NDR_OUT
) {
1601 ndr_print_struct(ndr
, "out", "PNP_SetClassRegProp");
1603 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1609 static enum ndr_err_code
ndr_push_PNP_CreateDevInst(struct ndr_push
*ndr
, int flags
, const struct PNP_CreateDevInst
*r
)
1611 if (flags
& NDR_IN
) {
1613 if (flags
& NDR_OUT
) {
1614 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1616 return NDR_ERR_SUCCESS
;
1619 static enum ndr_err_code
ndr_pull_PNP_CreateDevInst(struct ndr_pull
*ndr
, int flags
, struct PNP_CreateDevInst
*r
)
1621 if (flags
& NDR_IN
) {
1623 if (flags
& NDR_OUT
) {
1624 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1626 return NDR_ERR_SUCCESS
;
1629 _PUBLIC_
void ndr_print_PNP_CreateDevInst(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_CreateDevInst
*r
)
1631 ndr_print_struct(ndr
, name
, "PNP_CreateDevInst");
1633 if (flags
& NDR_SET_VALUES
) {
1634 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1636 if (flags
& NDR_IN
) {
1637 ndr_print_struct(ndr
, "in", "PNP_CreateDevInst");
1641 if (flags
& NDR_OUT
) {
1642 ndr_print_struct(ndr
, "out", "PNP_CreateDevInst");
1644 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1650 static enum ndr_err_code
ndr_push_PNP_DeviceInstanceAction(struct ndr_push
*ndr
, int flags
, const struct PNP_DeviceInstanceAction
*r
)
1652 if (flags
& NDR_IN
) {
1654 if (flags
& NDR_OUT
) {
1655 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1657 return NDR_ERR_SUCCESS
;
1660 static enum ndr_err_code
ndr_pull_PNP_DeviceInstanceAction(struct ndr_pull
*ndr
, int flags
, struct PNP_DeviceInstanceAction
*r
)
1662 if (flags
& NDR_IN
) {
1664 if (flags
& NDR_OUT
) {
1665 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1667 return NDR_ERR_SUCCESS
;
1670 _PUBLIC_
void ndr_print_PNP_DeviceInstanceAction(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_DeviceInstanceAction
*r
)
1672 ndr_print_struct(ndr
, name
, "PNP_DeviceInstanceAction");
1674 if (flags
& NDR_SET_VALUES
) {
1675 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1677 if (flags
& NDR_IN
) {
1678 ndr_print_struct(ndr
, "in", "PNP_DeviceInstanceAction");
1682 if (flags
& NDR_OUT
) {
1683 ndr_print_struct(ndr
, "out", "PNP_DeviceInstanceAction");
1685 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1691 static enum ndr_err_code
ndr_push_PNP_GetDeviceStatus(struct ndr_push
*ndr
, int flags
, const struct PNP_GetDeviceStatus
*r
)
1693 if (flags
& NDR_IN
) {
1695 if (flags
& NDR_OUT
) {
1696 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1698 return NDR_ERR_SUCCESS
;
1701 static enum ndr_err_code
ndr_pull_PNP_GetDeviceStatus(struct ndr_pull
*ndr
, int flags
, struct PNP_GetDeviceStatus
*r
)
1703 if (flags
& NDR_IN
) {
1705 if (flags
& NDR_OUT
) {
1706 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1708 return NDR_ERR_SUCCESS
;
1711 _PUBLIC_
void ndr_print_PNP_GetDeviceStatus(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetDeviceStatus
*r
)
1713 ndr_print_struct(ndr
, name
, "PNP_GetDeviceStatus");
1715 if (flags
& NDR_SET_VALUES
) {
1716 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1718 if (flags
& NDR_IN
) {
1719 ndr_print_struct(ndr
, "in", "PNP_GetDeviceStatus");
1723 if (flags
& NDR_OUT
) {
1724 ndr_print_struct(ndr
, "out", "PNP_GetDeviceStatus");
1726 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1732 static enum ndr_err_code
ndr_push_PNP_SetDeviceProblem(struct ndr_push
*ndr
, int flags
, const struct PNP_SetDeviceProblem
*r
)
1734 if (flags
& NDR_IN
) {
1736 if (flags
& NDR_OUT
) {
1737 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1739 return NDR_ERR_SUCCESS
;
1742 static enum ndr_err_code
ndr_pull_PNP_SetDeviceProblem(struct ndr_pull
*ndr
, int flags
, struct PNP_SetDeviceProblem
*r
)
1744 if (flags
& NDR_IN
) {
1746 if (flags
& NDR_OUT
) {
1747 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1749 return NDR_ERR_SUCCESS
;
1752 _PUBLIC_
void ndr_print_PNP_SetDeviceProblem(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_SetDeviceProblem
*r
)
1754 ndr_print_struct(ndr
, name
, "PNP_SetDeviceProblem");
1756 if (flags
& NDR_SET_VALUES
) {
1757 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1759 if (flags
& NDR_IN
) {
1760 ndr_print_struct(ndr
, "in", "PNP_SetDeviceProblem");
1764 if (flags
& NDR_OUT
) {
1765 ndr_print_struct(ndr
, "out", "PNP_SetDeviceProblem");
1767 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1773 static enum ndr_err_code
ndr_push_PNP_DisableDevInst(struct ndr_push
*ndr
, int flags
, const struct PNP_DisableDevInst
*r
)
1775 if (flags
& NDR_IN
) {
1777 if (flags
& NDR_OUT
) {
1778 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1780 return NDR_ERR_SUCCESS
;
1783 static enum ndr_err_code
ndr_pull_PNP_DisableDevInst(struct ndr_pull
*ndr
, int flags
, struct PNP_DisableDevInst
*r
)
1785 if (flags
& NDR_IN
) {
1787 if (flags
& NDR_OUT
) {
1788 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1790 return NDR_ERR_SUCCESS
;
1793 _PUBLIC_
void ndr_print_PNP_DisableDevInst(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_DisableDevInst
*r
)
1795 ndr_print_struct(ndr
, name
, "PNP_DisableDevInst");
1797 if (flags
& NDR_SET_VALUES
) {
1798 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1800 if (flags
& NDR_IN
) {
1801 ndr_print_struct(ndr
, "in", "PNP_DisableDevInst");
1805 if (flags
& NDR_OUT
) {
1806 ndr_print_struct(ndr
, "out", "PNP_DisableDevInst");
1808 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1814 static enum ndr_err_code
ndr_push_PNP_UninstallDevInst(struct ndr_push
*ndr
, int flags
, const struct PNP_UninstallDevInst
*r
)
1816 if (flags
& NDR_IN
) {
1818 if (flags
& NDR_OUT
) {
1819 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1821 return NDR_ERR_SUCCESS
;
1824 static enum ndr_err_code
ndr_pull_PNP_UninstallDevInst(struct ndr_pull
*ndr
, int flags
, struct PNP_UninstallDevInst
*r
)
1826 if (flags
& NDR_IN
) {
1828 if (flags
& NDR_OUT
) {
1829 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1831 return NDR_ERR_SUCCESS
;
1834 _PUBLIC_
void ndr_print_PNP_UninstallDevInst(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_UninstallDevInst
*r
)
1836 ndr_print_struct(ndr
, name
, "PNP_UninstallDevInst");
1838 if (flags
& NDR_SET_VALUES
) {
1839 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1841 if (flags
& NDR_IN
) {
1842 ndr_print_struct(ndr
, "in", "PNP_UninstallDevInst");
1846 if (flags
& NDR_OUT
) {
1847 ndr_print_struct(ndr
, "out", "PNP_UninstallDevInst");
1849 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1855 static enum ndr_err_code
ndr_push_PNP_AddID(struct ndr_push
*ndr
, int flags
, const struct PNP_AddID
*r
)
1857 if (flags
& NDR_IN
) {
1859 if (flags
& NDR_OUT
) {
1860 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1862 return NDR_ERR_SUCCESS
;
1865 static enum ndr_err_code
ndr_pull_PNP_AddID(struct ndr_pull
*ndr
, int flags
, struct PNP_AddID
*r
)
1867 if (flags
& NDR_IN
) {
1869 if (flags
& NDR_OUT
) {
1870 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1872 return NDR_ERR_SUCCESS
;
1875 _PUBLIC_
void ndr_print_PNP_AddID(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_AddID
*r
)
1877 ndr_print_struct(ndr
, name
, "PNP_AddID");
1879 if (flags
& NDR_SET_VALUES
) {
1880 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1882 if (flags
& NDR_IN
) {
1883 ndr_print_struct(ndr
, "in", "PNP_AddID");
1887 if (flags
& NDR_OUT
) {
1888 ndr_print_struct(ndr
, "out", "PNP_AddID");
1890 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1896 static enum ndr_err_code
ndr_push_PNP_RegisterDriver(struct ndr_push
*ndr
, int flags
, const struct PNP_RegisterDriver
*r
)
1898 if (flags
& NDR_IN
) {
1900 if (flags
& NDR_OUT
) {
1901 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1903 return NDR_ERR_SUCCESS
;
1906 static enum ndr_err_code
ndr_pull_PNP_RegisterDriver(struct ndr_pull
*ndr
, int flags
, struct PNP_RegisterDriver
*r
)
1908 if (flags
& NDR_IN
) {
1910 if (flags
& NDR_OUT
) {
1911 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1913 return NDR_ERR_SUCCESS
;
1916 _PUBLIC_
void ndr_print_PNP_RegisterDriver(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_RegisterDriver
*r
)
1918 ndr_print_struct(ndr
, name
, "PNP_RegisterDriver");
1920 if (flags
& NDR_SET_VALUES
) {
1921 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1923 if (flags
& NDR_IN
) {
1924 ndr_print_struct(ndr
, "in", "PNP_RegisterDriver");
1928 if (flags
& NDR_OUT
) {
1929 ndr_print_struct(ndr
, "out", "PNP_RegisterDriver");
1931 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1937 static enum ndr_err_code
ndr_push_PNP_QueryRemove(struct ndr_push
*ndr
, int flags
, const struct PNP_QueryRemove
*r
)
1939 if (flags
& NDR_IN
) {
1941 if (flags
& NDR_OUT
) {
1942 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1944 return NDR_ERR_SUCCESS
;
1947 static enum ndr_err_code
ndr_pull_PNP_QueryRemove(struct ndr_pull
*ndr
, int flags
, struct PNP_QueryRemove
*r
)
1949 if (flags
& NDR_IN
) {
1951 if (flags
& NDR_OUT
) {
1952 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1954 return NDR_ERR_SUCCESS
;
1957 _PUBLIC_
void ndr_print_PNP_QueryRemove(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_QueryRemove
*r
)
1959 ndr_print_struct(ndr
, name
, "PNP_QueryRemove");
1961 if (flags
& NDR_SET_VALUES
) {
1962 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1964 if (flags
& NDR_IN
) {
1965 ndr_print_struct(ndr
, "in", "PNP_QueryRemove");
1969 if (flags
& NDR_OUT
) {
1970 ndr_print_struct(ndr
, "out", "PNP_QueryRemove");
1972 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1978 static enum ndr_err_code
ndr_push_PNP_RequestDeviceEject(struct ndr_push
*ndr
, int flags
, const struct PNP_RequestDeviceEject
*r
)
1980 if (flags
& NDR_IN
) {
1982 if (flags
& NDR_OUT
) {
1983 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1985 return NDR_ERR_SUCCESS
;
1988 static enum ndr_err_code
ndr_pull_PNP_RequestDeviceEject(struct ndr_pull
*ndr
, int flags
, struct PNP_RequestDeviceEject
*r
)
1990 if (flags
& NDR_IN
) {
1992 if (flags
& NDR_OUT
) {
1993 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1995 return NDR_ERR_SUCCESS
;
1998 _PUBLIC_
void ndr_print_PNP_RequestDeviceEject(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_RequestDeviceEject
*r
)
2000 ndr_print_struct(ndr
, name
, "PNP_RequestDeviceEject");
2002 if (flags
& NDR_SET_VALUES
) {
2003 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2005 if (flags
& NDR_IN
) {
2006 ndr_print_struct(ndr
, "in", "PNP_RequestDeviceEject");
2010 if (flags
& NDR_OUT
) {
2011 ndr_print_struct(ndr
, "out", "PNP_RequestDeviceEject");
2013 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
2019 static enum ndr_err_code
ndr_push_PNP_IsDockStationPresent(struct ndr_push
*ndr
, int flags
, const struct PNP_IsDockStationPresent
*r
)
2021 if (flags
& NDR_IN
) {
2023 if (flags
& NDR_OUT
) {
2024 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
2026 return NDR_ERR_SUCCESS
;
2029 static enum ndr_err_code
ndr_pull_PNP_IsDockStationPresent(struct ndr_pull
*ndr
, int flags
, struct PNP_IsDockStationPresent
*r
)
2031 if (flags
& NDR_IN
) {
2033 if (flags
& NDR_OUT
) {
2034 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
2036 return NDR_ERR_SUCCESS
;
2039 _PUBLIC_
void ndr_print_PNP_IsDockStationPresent(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_IsDockStationPresent
*r
)
2041 ndr_print_struct(ndr
, name
, "PNP_IsDockStationPresent");
2043 if (flags
& NDR_SET_VALUES
) {
2044 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2046 if (flags
& NDR_IN
) {
2047 ndr_print_struct(ndr
, "in", "PNP_IsDockStationPresent");
2051 if (flags
& NDR_OUT
) {
2052 ndr_print_struct(ndr
, "out", "PNP_IsDockStationPresent");
2054 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
2060 static enum ndr_err_code
ndr_push_PNP_RequestEjectPC(struct ndr_push
*ndr
, int flags
, const struct PNP_RequestEjectPC
*r
)
2062 if (flags
& NDR_IN
) {
2064 if (flags
& NDR_OUT
) {
2065 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
2067 return NDR_ERR_SUCCESS
;
2070 static enum ndr_err_code
ndr_pull_PNP_RequestEjectPC(struct ndr_pull
*ndr
, int flags
, struct PNP_RequestEjectPC
*r
)
2072 if (flags
& NDR_IN
) {
2074 if (flags
& NDR_OUT
) {
2075 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
2077 return NDR_ERR_SUCCESS
;
2080 _PUBLIC_
void ndr_print_PNP_RequestEjectPC(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_RequestEjectPC
*r
)
2082 ndr_print_struct(ndr
, name
, "PNP_RequestEjectPC");
2084 if (flags
& NDR_SET_VALUES
) {
2085 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2087 if (flags
& NDR_IN
) {
2088 ndr_print_struct(ndr
, "in", "PNP_RequestEjectPC");
2092 if (flags
& NDR_OUT
) {
2093 ndr_print_struct(ndr
, "out", "PNP_RequestEjectPC");
2095 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
2101 static enum ndr_err_code
ndr_push_PNP_HwProfFlags(struct ndr_push
*ndr
, int flags
, const struct PNP_HwProfFlags
*r
)
2103 if (flags
& NDR_IN
) {
2104 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, r
->in
.action
));
2105 if (r
->in
.devicepath
== NULL
) {
2106 return ndr_push_error(ndr
, NDR_ERR_INVALID_POINTER
, "NULL [ref] pointer");
2108 NDR_CHECK(ndr_push_uint3264(ndr
, NDR_SCALARS
, ndr_charset_length(r
->in
.devicepath
, CH_UTF16
)));
2109 NDR_CHECK(ndr_push_uint3264(ndr
, NDR_SCALARS
, 0));
2110 NDR_CHECK(ndr_push_uint3264(ndr
, NDR_SCALARS
, ndr_charset_length(r
->in
.devicepath
, CH_UTF16
)));
2111 NDR_CHECK(ndr_push_charset(ndr
, NDR_SCALARS
, r
->in
.devicepath
, ndr_charset_length(r
->in
.devicepath
, CH_UTF16
), sizeof(uint16_t), CH_UTF16
));
2112 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, r
->in
.config
));
2113 if (r
->in
.profile_flags
== NULL
) {
2114 return ndr_push_error(ndr
, NDR_ERR_INVALID_POINTER
, "NULL [ref] pointer");
2116 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, *r
->in
.profile_flags
));
2117 NDR_CHECK(ndr_push_unique_ptr(ndr
, r
->in
.veto_type
));
2118 if (r
->in
.veto_type
) {
2119 NDR_CHECK(ndr_push_uint16(ndr
, NDR_SCALARS
, *r
->in
.veto_type
));
2121 NDR_CHECK(ndr_push_unique_ptr(ndr
, r
->in
.unknown5
));
2122 if (r
->in
.unknown5
) {
2123 NDR_CHECK(ndr_push_uint3264(ndr
, NDR_SCALARS
, ndr_charset_length(r
->in
.unknown5
, CH_UTF16
)));
2124 NDR_CHECK(ndr_push_uint3264(ndr
, NDR_SCALARS
, 0));
2125 NDR_CHECK(ndr_push_uint3264(ndr
, NDR_SCALARS
, ndr_charset_length(r
->in
.unknown5
, CH_UTF16
)));
2126 NDR_CHECK(ndr_push_charset(ndr
, NDR_SCALARS
, r
->in
.unknown5
, ndr_charset_length(r
->in
.unknown5
, CH_UTF16
), sizeof(uint16_t), CH_UTF16
));
2128 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, r
->in
.name_length
));
2129 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, r
->in
.flags
));
2131 if (flags
& NDR_OUT
) {
2132 if (r
->out
.profile_flags
== NULL
) {
2133 return ndr_push_error(ndr
, NDR_ERR_INVALID_POINTER
, "NULL [ref] pointer");
2135 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, *r
->out
.profile_flags
));
2136 NDR_CHECK(ndr_push_unique_ptr(ndr
, r
->out
.veto_type
));
2137 if (r
->out
.veto_type
) {
2138 NDR_CHECK(ndr_push_uint16(ndr
, NDR_SCALARS
, *r
->out
.veto_type
));
2140 NDR_CHECK(ndr_push_unique_ptr(ndr
, r
->out
.unknown5a
));
2141 if (r
->out
.unknown5a
) {
2142 NDR_CHECK(ndr_push_unique_ptr(ndr
, *r
->out
.unknown5a
));
2143 if (*r
->out
.unknown5a
) {
2144 NDR_CHECK(ndr_push_uint3264(ndr
, NDR_SCALARS
, ndr_charset_length(*r
->out
.unknown5a
, CH_UTF16
)));
2145 NDR_CHECK(ndr_push_uint3264(ndr
, NDR_SCALARS
, 0));
2146 NDR_CHECK(ndr_push_uint3264(ndr
, NDR_SCALARS
, ndr_charset_length(*r
->out
.unknown5a
, CH_UTF16
)));
2147 NDR_CHECK(ndr_push_charset(ndr
, NDR_SCALARS
, *r
->out
.unknown5a
, ndr_charset_length(*r
->out
.unknown5a
, CH_UTF16
), sizeof(uint16_t), CH_UTF16
));
2150 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
2152 return NDR_ERR_SUCCESS
;
2155 static enum ndr_err_code
ndr_pull_PNP_HwProfFlags(struct ndr_pull
*ndr
, int flags
, struct PNP_HwProfFlags
*r
)
2157 uint32_t _ptr_veto_type
;
2158 uint32_t _ptr_unknown5
;
2159 uint32_t _ptr_unknown5a
;
2160 TALLOC_CTX
*_mem_save_profile_flags_0
;
2161 TALLOC_CTX
*_mem_save_veto_type_0
;
2162 TALLOC_CTX
*_mem_save_unknown5_0
;
2163 TALLOC_CTX
*_mem_save_unknown5a_0
;
2164 TALLOC_CTX
*_mem_save_unknown5a_1
;
2165 if (flags
& NDR_IN
) {
2166 ZERO_STRUCT(r
->out
);
2168 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, &r
->in
.action
));
2169 NDR_CHECK(ndr_pull_array_size(ndr
, &r
->in
.devicepath
));
2170 NDR_CHECK(ndr_pull_array_length(ndr
, &r
->in
.devicepath
));
2171 if (ndr_get_array_length(ndr
, &r
->in
.devicepath
) > ndr_get_array_size(ndr
, &r
->in
.devicepath
)) {
2172 return ndr_pull_error(ndr
, NDR_ERR_ARRAY_SIZE
, "Bad array size %u should exceed array length %u", ndr_get_array_size(ndr
, &r
->in
.devicepath
), ndr_get_array_length(ndr
, &r
->in
.devicepath
));
2174 NDR_CHECK(ndr_check_string_terminator(ndr
, ndr_get_array_length(ndr
, &r
->in
.devicepath
), sizeof(uint16_t)));
2175 NDR_CHECK(ndr_pull_charset(ndr
, NDR_SCALARS
, &r
->in
.devicepath
, ndr_get_array_length(ndr
, &r
->in
.devicepath
), sizeof(uint16_t), CH_UTF16
));
2176 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, &r
->in
.config
));
2177 if (ndr
->flags
& LIBNDR_FLAG_REF_ALLOC
) {
2178 NDR_PULL_ALLOC(ndr
, r
->in
.profile_flags
);
2180 _mem_save_profile_flags_0
= NDR_PULL_GET_MEM_CTX(ndr
);
2181 NDR_PULL_SET_MEM_CTX(ndr
, r
->in
.profile_flags
, LIBNDR_FLAG_REF_ALLOC
);
2182 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, r
->in
.profile_flags
));
2183 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_profile_flags_0
, LIBNDR_FLAG_REF_ALLOC
);
2184 NDR_CHECK(ndr_pull_generic_ptr(ndr
, &_ptr_veto_type
));
2185 if (_ptr_veto_type
) {
2186 NDR_PULL_ALLOC(ndr
, r
->in
.veto_type
);
2188 r
->in
.veto_type
= NULL
;
2190 if (r
->in
.veto_type
) {
2191 _mem_save_veto_type_0
= NDR_PULL_GET_MEM_CTX(ndr
);
2192 NDR_PULL_SET_MEM_CTX(ndr
, r
->in
.veto_type
, 0);
2193 NDR_CHECK(ndr_pull_uint16(ndr
, NDR_SCALARS
, r
->in
.veto_type
));
2194 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_veto_type_0
, 0);
2196 NDR_CHECK(ndr_pull_generic_ptr(ndr
, &_ptr_unknown5
));
2197 if (_ptr_unknown5
) {
2198 NDR_PULL_ALLOC(ndr
, r
->in
.unknown5
);
2200 r
->in
.unknown5
= NULL
;
2202 if (r
->in
.unknown5
) {
2203 _mem_save_unknown5_0
= NDR_PULL_GET_MEM_CTX(ndr
);
2204 NDR_PULL_SET_MEM_CTX(ndr
, r
->in
.unknown5
, 0);
2205 NDR_CHECK(ndr_pull_array_size(ndr
, &r
->in
.unknown5
));
2206 NDR_CHECK(ndr_pull_array_length(ndr
, &r
->in
.unknown5
));
2207 if (ndr_get_array_length(ndr
, &r
->in
.unknown5
) > ndr_get_array_size(ndr
, &r
->in
.unknown5
)) {
2208 return ndr_pull_error(ndr
, NDR_ERR_ARRAY_SIZE
, "Bad array size %u should exceed array length %u", ndr_get_array_size(ndr
, &r
->in
.unknown5
), ndr_get_array_length(ndr
, &r
->in
.unknown5
));
2210 NDR_CHECK(ndr_check_string_terminator(ndr
, ndr_get_array_length(ndr
, &r
->in
.unknown5
), sizeof(uint16_t)));
2211 NDR_CHECK(ndr_pull_charset(ndr
, NDR_SCALARS
, &r
->in
.unknown5
, ndr_get_array_length(ndr
, &r
->in
.unknown5
), sizeof(uint16_t), CH_UTF16
));
2212 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_unknown5_0
, 0);
2214 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, &r
->in
.name_length
));
2215 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, &r
->in
.flags
));
2216 NDR_PULL_ALLOC(ndr
, r
->out
.profile_flags
);
2217 *r
->out
.profile_flags
= *r
->in
.profile_flags
;
2219 if (flags
& NDR_OUT
) {
2220 if (ndr
->flags
& LIBNDR_FLAG_REF_ALLOC
) {
2221 NDR_PULL_ALLOC(ndr
, r
->out
.profile_flags
);
2223 _mem_save_profile_flags_0
= NDR_PULL_GET_MEM_CTX(ndr
);
2224 NDR_PULL_SET_MEM_CTX(ndr
, r
->out
.profile_flags
, LIBNDR_FLAG_REF_ALLOC
);
2225 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, r
->out
.profile_flags
));
2226 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_profile_flags_0
, LIBNDR_FLAG_REF_ALLOC
);
2227 NDR_CHECK(ndr_pull_generic_ptr(ndr
, &_ptr_veto_type
));
2228 if (_ptr_veto_type
) {
2229 NDR_PULL_ALLOC(ndr
, r
->out
.veto_type
);
2231 r
->out
.veto_type
= NULL
;
2233 if (r
->out
.veto_type
) {
2234 _mem_save_veto_type_0
= NDR_PULL_GET_MEM_CTX(ndr
);
2235 NDR_PULL_SET_MEM_CTX(ndr
, r
->out
.veto_type
, 0);
2236 NDR_CHECK(ndr_pull_uint16(ndr
, NDR_SCALARS
, r
->out
.veto_type
));
2237 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_veto_type_0
, 0);
2239 NDR_CHECK(ndr_pull_generic_ptr(ndr
, &_ptr_unknown5a
));
2240 if (_ptr_unknown5a
) {
2241 NDR_PULL_ALLOC(ndr
, r
->out
.unknown5a
);
2243 r
->out
.unknown5a
= NULL
;
2245 if (r
->out
.unknown5a
) {
2246 _mem_save_unknown5a_0
= NDR_PULL_GET_MEM_CTX(ndr
);
2247 NDR_PULL_SET_MEM_CTX(ndr
, r
->out
.unknown5a
, 0);
2248 NDR_CHECK(ndr_pull_generic_ptr(ndr
, &_ptr_unknown5a
));
2249 if (_ptr_unknown5a
) {
2250 NDR_PULL_ALLOC(ndr
, *r
->out
.unknown5a
);
2252 *r
->out
.unknown5a
= NULL
;
2254 if (*r
->out
.unknown5a
) {
2255 _mem_save_unknown5a_1
= NDR_PULL_GET_MEM_CTX(ndr
);
2256 NDR_PULL_SET_MEM_CTX(ndr
, *r
->out
.unknown5a
, 0);
2257 NDR_CHECK(ndr_pull_array_size(ndr
, r
->out
.unknown5a
));
2258 NDR_CHECK(ndr_pull_array_length(ndr
, r
->out
.unknown5a
));
2259 if (ndr_get_array_length(ndr
, r
->out
.unknown5a
) > ndr_get_array_size(ndr
, r
->out
.unknown5a
)) {
2260 return ndr_pull_error(ndr
, NDR_ERR_ARRAY_SIZE
, "Bad array size %u should exceed array length %u", ndr_get_array_size(ndr
, r
->out
.unknown5a
), ndr_get_array_length(ndr
, r
->out
.unknown5a
));
2262 NDR_CHECK(ndr_check_string_terminator(ndr
, ndr_get_array_length(ndr
, r
->out
.unknown5a
), sizeof(uint16_t)));
2263 NDR_CHECK(ndr_pull_charset(ndr
, NDR_SCALARS
, r
->out
.unknown5a
, ndr_get_array_length(ndr
, r
->out
.unknown5a
), sizeof(uint16_t), CH_UTF16
));
2264 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_unknown5a_1
, 0);
2266 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_unknown5a_0
, 0);
2268 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
2270 return NDR_ERR_SUCCESS
;
2273 _PUBLIC_
void ndr_print_PNP_HwProfFlags(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_HwProfFlags
*r
)
2275 ndr_print_struct(ndr
, name
, "PNP_HwProfFlags");
2277 if (flags
& NDR_SET_VALUES
) {
2278 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2280 if (flags
& NDR_IN
) {
2281 ndr_print_struct(ndr
, "in", "PNP_HwProfFlags");
2283 ndr_print_uint32(ndr
, "action", r
->in
.action
);
2284 ndr_print_ptr(ndr
, "devicepath", r
->in
.devicepath
);
2286 ndr_print_string(ndr
, "devicepath", r
->in
.devicepath
);
2288 ndr_print_uint32(ndr
, "config", r
->in
.config
);
2289 ndr_print_ptr(ndr
, "profile_flags", r
->in
.profile_flags
);
2291 ndr_print_uint32(ndr
, "profile_flags", *r
->in
.profile_flags
);
2293 ndr_print_ptr(ndr
, "veto_type", r
->in
.veto_type
);
2295 if (r
->in
.veto_type
) {
2296 ndr_print_uint16(ndr
, "veto_type", *r
->in
.veto_type
);
2299 ndr_print_ptr(ndr
, "unknown5", r
->in
.unknown5
);
2301 if (r
->in
.unknown5
) {
2302 ndr_print_string(ndr
, "unknown5", r
->in
.unknown5
);
2305 ndr_print_uint32(ndr
, "name_length", r
->in
.name_length
);
2306 ndr_print_uint32(ndr
, "flags", r
->in
.flags
);
2309 if (flags
& NDR_OUT
) {
2310 ndr_print_struct(ndr
, "out", "PNP_HwProfFlags");
2312 ndr_print_ptr(ndr
, "profile_flags", r
->out
.profile_flags
);
2314 ndr_print_uint32(ndr
, "profile_flags", *r
->out
.profile_flags
);
2316 ndr_print_ptr(ndr
, "veto_type", r
->out
.veto_type
);
2318 if (r
->out
.veto_type
) {
2319 ndr_print_uint16(ndr
, "veto_type", *r
->out
.veto_type
);
2322 ndr_print_ptr(ndr
, "unknown5a", r
->out
.unknown5a
);
2324 if (r
->out
.unknown5a
) {
2325 ndr_print_ptr(ndr
, "unknown5a", *r
->out
.unknown5a
);
2327 if (*r
->out
.unknown5a
) {
2328 ndr_print_string(ndr
, "unknown5a", *r
->out
.unknown5a
);
2333 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
2339 static enum ndr_err_code
ndr_push_PNP_GetHwProfInfo(struct ndr_push
*ndr
, int flags
, const struct PNP_GetHwProfInfo
*r
)
2341 if (flags
& NDR_IN
) {
2342 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, r
->in
.idx
));
2343 if (r
->in
.info
== NULL
) {
2344 return ndr_push_error(ndr
, NDR_ERR_INVALID_POINTER
, "NULL [ref] pointer");
2346 NDR_CHECK(ndr_push_PNP_HwProfInfo(ndr
, NDR_SCALARS
, r
->in
.info
));
2347 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, r
->in
.size
));
2348 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, r
->in
.flags
));
2350 if (flags
& NDR_OUT
) {
2351 if (r
->out
.info
== NULL
) {
2352 return ndr_push_error(ndr
, NDR_ERR_INVALID_POINTER
, "NULL [ref] pointer");
2354 NDR_CHECK(ndr_push_PNP_HwProfInfo(ndr
, NDR_SCALARS
, r
->out
.info
));
2355 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
2357 return NDR_ERR_SUCCESS
;
2360 static enum ndr_err_code
ndr_pull_PNP_GetHwProfInfo(struct ndr_pull
*ndr
, int flags
, struct PNP_GetHwProfInfo
*r
)
2362 TALLOC_CTX
*_mem_save_info_0
;
2363 if (flags
& NDR_IN
) {
2364 ZERO_STRUCT(r
->out
);
2366 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, &r
->in
.idx
));
2367 if (ndr
->flags
& LIBNDR_FLAG_REF_ALLOC
) {
2368 NDR_PULL_ALLOC(ndr
, r
->in
.info
);
2370 _mem_save_info_0
= NDR_PULL_GET_MEM_CTX(ndr
);
2371 NDR_PULL_SET_MEM_CTX(ndr
, r
->in
.info
, LIBNDR_FLAG_REF_ALLOC
);
2372 NDR_CHECK(ndr_pull_PNP_HwProfInfo(ndr
, NDR_SCALARS
, r
->in
.info
));
2373 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_info_0
, LIBNDR_FLAG_REF_ALLOC
);
2374 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, &r
->in
.size
));
2375 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, &r
->in
.flags
));
2376 NDR_PULL_ALLOC(ndr
, r
->out
.info
);
2377 *r
->out
.info
= *r
->in
.info
;
2379 if (flags
& NDR_OUT
) {
2380 if (ndr
->flags
& LIBNDR_FLAG_REF_ALLOC
) {
2381 NDR_PULL_ALLOC(ndr
, r
->out
.info
);
2383 _mem_save_info_0
= NDR_PULL_GET_MEM_CTX(ndr
);
2384 NDR_PULL_SET_MEM_CTX(ndr
, r
->out
.info
, LIBNDR_FLAG_REF_ALLOC
);
2385 NDR_CHECK(ndr_pull_PNP_HwProfInfo(ndr
, NDR_SCALARS
, r
->out
.info
));
2386 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_info_0
, LIBNDR_FLAG_REF_ALLOC
);
2387 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
2389 return NDR_ERR_SUCCESS
;
2392 _PUBLIC_
void ndr_print_PNP_GetHwProfInfo(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetHwProfInfo
*r
)
2394 ndr_print_struct(ndr
, name
, "PNP_GetHwProfInfo");
2396 if (flags
& NDR_SET_VALUES
) {
2397 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2399 if (flags
& NDR_IN
) {
2400 ndr_print_struct(ndr
, "in", "PNP_GetHwProfInfo");
2402 ndr_print_uint32(ndr
, "idx", r
->in
.idx
);
2403 ndr_print_ptr(ndr
, "info", r
->in
.info
);
2405 ndr_print_PNP_HwProfInfo(ndr
, "info", r
->in
.info
);
2407 ndr_print_uint32(ndr
, "size", r
->in
.size
);
2408 ndr_print_uint32(ndr
, "flags", r
->in
.flags
);
2411 if (flags
& NDR_OUT
) {
2412 ndr_print_struct(ndr
, "out", "PNP_GetHwProfInfo");
2414 ndr_print_ptr(ndr
, "info", r
->out
.info
);
2416 ndr_print_PNP_HwProfInfo(ndr
, "info", r
->out
.info
);
2418 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
2424 static enum ndr_err_code
ndr_push_PNP_AddEmptyLogConf(struct ndr_push
*ndr
, int flags
, const struct PNP_AddEmptyLogConf
*r
)
2426 if (flags
& NDR_IN
) {
2428 if (flags
& NDR_OUT
) {
2429 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
2431 return NDR_ERR_SUCCESS
;
2434 static enum ndr_err_code
ndr_pull_PNP_AddEmptyLogConf(struct ndr_pull
*ndr
, int flags
, struct PNP_AddEmptyLogConf
*r
)
2436 if (flags
& NDR_IN
) {
2438 if (flags
& NDR_OUT
) {
2439 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
2441 return NDR_ERR_SUCCESS
;
2444 _PUBLIC_
void ndr_print_PNP_AddEmptyLogConf(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_AddEmptyLogConf
*r
)
2446 ndr_print_struct(ndr
, name
, "PNP_AddEmptyLogConf");
2448 if (flags
& NDR_SET_VALUES
) {
2449 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2451 if (flags
& NDR_IN
) {
2452 ndr_print_struct(ndr
, "in", "PNP_AddEmptyLogConf");
2456 if (flags
& NDR_OUT
) {
2457 ndr_print_struct(ndr
, "out", "PNP_AddEmptyLogConf");
2459 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
2465 static enum ndr_err_code
ndr_push_PNP_FreeLogConf(struct ndr_push
*ndr
, int flags
, const struct PNP_FreeLogConf
*r
)
2467 if (flags
& NDR_IN
) {
2469 if (flags
& NDR_OUT
) {
2470 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
2472 return NDR_ERR_SUCCESS
;
2475 static enum ndr_err_code
ndr_pull_PNP_FreeLogConf(struct ndr_pull
*ndr
, int flags
, struct PNP_FreeLogConf
*r
)
2477 if (flags
& NDR_IN
) {
2479 if (flags
& NDR_OUT
) {
2480 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
2482 return NDR_ERR_SUCCESS
;
2485 _PUBLIC_
void ndr_print_PNP_FreeLogConf(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_FreeLogConf
*r
)
2487 ndr_print_struct(ndr
, name
, "PNP_FreeLogConf");
2489 if (flags
& NDR_SET_VALUES
) {
2490 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2492 if (flags
& NDR_IN
) {
2493 ndr_print_struct(ndr
, "in", "PNP_FreeLogConf");
2497 if (flags
& NDR_OUT
) {
2498 ndr_print_struct(ndr
, "out", "PNP_FreeLogConf");
2500 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
2506 static enum ndr_err_code
ndr_push_PNP_GetFirstLogConf(struct ndr_push
*ndr
, int flags
, const struct PNP_GetFirstLogConf
*r
)
2508 if (flags
& NDR_IN
) {
2510 if (flags
& NDR_OUT
) {
2511 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
2513 return NDR_ERR_SUCCESS
;
2516 static enum ndr_err_code
ndr_pull_PNP_GetFirstLogConf(struct ndr_pull
*ndr
, int flags
, struct PNP_GetFirstLogConf
*r
)
2518 if (flags
& NDR_IN
) {
2520 if (flags
& NDR_OUT
) {
2521 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
2523 return NDR_ERR_SUCCESS
;
2526 _PUBLIC_
void ndr_print_PNP_GetFirstLogConf(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetFirstLogConf
*r
)
2528 ndr_print_struct(ndr
, name
, "PNP_GetFirstLogConf");
2530 if (flags
& NDR_SET_VALUES
) {
2531 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2533 if (flags
& NDR_IN
) {
2534 ndr_print_struct(ndr
, "in", "PNP_GetFirstLogConf");
2538 if (flags
& NDR_OUT
) {
2539 ndr_print_struct(ndr
, "out", "PNP_GetFirstLogConf");
2541 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
2547 static enum ndr_err_code
ndr_push_PNP_GetNextLogConf(struct ndr_push
*ndr
, int flags
, const struct PNP_GetNextLogConf
*r
)
2549 if (flags
& NDR_IN
) {
2551 if (flags
& NDR_OUT
) {
2552 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
2554 return NDR_ERR_SUCCESS
;
2557 static enum ndr_err_code
ndr_pull_PNP_GetNextLogConf(struct ndr_pull
*ndr
, int flags
, struct PNP_GetNextLogConf
*r
)
2559 if (flags
& NDR_IN
) {
2561 if (flags
& NDR_OUT
) {
2562 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
2564 return NDR_ERR_SUCCESS
;
2567 _PUBLIC_
void ndr_print_PNP_GetNextLogConf(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetNextLogConf
*r
)
2569 ndr_print_struct(ndr
, name
, "PNP_GetNextLogConf");
2571 if (flags
& NDR_SET_VALUES
) {
2572 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2574 if (flags
& NDR_IN
) {
2575 ndr_print_struct(ndr
, "in", "PNP_GetNextLogConf");
2579 if (flags
& NDR_OUT
) {
2580 ndr_print_struct(ndr
, "out", "PNP_GetNextLogConf");
2582 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
2588 static enum ndr_err_code
ndr_push_PNP_GetLogConfPriority(struct ndr_push
*ndr
, int flags
, const struct PNP_GetLogConfPriority
*r
)
2590 if (flags
& NDR_IN
) {
2592 if (flags
& NDR_OUT
) {
2593 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
2595 return NDR_ERR_SUCCESS
;
2598 static enum ndr_err_code
ndr_pull_PNP_GetLogConfPriority(struct ndr_pull
*ndr
, int flags
, struct PNP_GetLogConfPriority
*r
)
2600 if (flags
& NDR_IN
) {
2602 if (flags
& NDR_OUT
) {
2603 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
2605 return NDR_ERR_SUCCESS
;
2608 _PUBLIC_
void ndr_print_PNP_GetLogConfPriority(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetLogConfPriority
*r
)
2610 ndr_print_struct(ndr
, name
, "PNP_GetLogConfPriority");
2612 if (flags
& NDR_SET_VALUES
) {
2613 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2615 if (flags
& NDR_IN
) {
2616 ndr_print_struct(ndr
, "in", "PNP_GetLogConfPriority");
2620 if (flags
& NDR_OUT
) {
2621 ndr_print_struct(ndr
, "out", "PNP_GetLogConfPriority");
2623 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
2629 static enum ndr_err_code
ndr_push_PNP_AddResDes(struct ndr_push
*ndr
, int flags
, const struct PNP_AddResDes
*r
)
2631 if (flags
& NDR_IN
) {
2633 if (flags
& NDR_OUT
) {
2634 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
2636 return NDR_ERR_SUCCESS
;
2639 static enum ndr_err_code
ndr_pull_PNP_AddResDes(struct ndr_pull
*ndr
, int flags
, struct PNP_AddResDes
*r
)
2641 if (flags
& NDR_IN
) {
2643 if (flags
& NDR_OUT
) {
2644 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
2646 return NDR_ERR_SUCCESS
;
2649 _PUBLIC_
void ndr_print_PNP_AddResDes(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_AddResDes
*r
)
2651 ndr_print_struct(ndr
, name
, "PNP_AddResDes");
2653 if (flags
& NDR_SET_VALUES
) {
2654 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2656 if (flags
& NDR_IN
) {
2657 ndr_print_struct(ndr
, "in", "PNP_AddResDes");
2661 if (flags
& NDR_OUT
) {
2662 ndr_print_struct(ndr
, "out", "PNP_AddResDes");
2664 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
2670 static enum ndr_err_code
ndr_push_PNP_FreeResDes(struct ndr_push
*ndr
, int flags
, const struct PNP_FreeResDes
*r
)
2672 if (flags
& NDR_IN
) {
2674 if (flags
& NDR_OUT
) {
2675 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
2677 return NDR_ERR_SUCCESS
;
2680 static enum ndr_err_code
ndr_pull_PNP_FreeResDes(struct ndr_pull
*ndr
, int flags
, struct PNP_FreeResDes
*r
)
2682 if (flags
& NDR_IN
) {
2684 if (flags
& NDR_OUT
) {
2685 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
2687 return NDR_ERR_SUCCESS
;
2690 _PUBLIC_
void ndr_print_PNP_FreeResDes(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_FreeResDes
*r
)
2692 ndr_print_struct(ndr
, name
, "PNP_FreeResDes");
2694 if (flags
& NDR_SET_VALUES
) {
2695 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2697 if (flags
& NDR_IN
) {
2698 ndr_print_struct(ndr
, "in", "PNP_FreeResDes");
2702 if (flags
& NDR_OUT
) {
2703 ndr_print_struct(ndr
, "out", "PNP_FreeResDes");
2705 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
2711 static enum ndr_err_code
ndr_push_PNP_GetNextResDes(struct ndr_push
*ndr
, int flags
, const struct PNP_GetNextResDes
*r
)
2713 if (flags
& NDR_IN
) {
2715 if (flags
& NDR_OUT
) {
2716 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
2718 return NDR_ERR_SUCCESS
;
2721 static enum ndr_err_code
ndr_pull_PNP_GetNextResDes(struct ndr_pull
*ndr
, int flags
, struct PNP_GetNextResDes
*r
)
2723 if (flags
& NDR_IN
) {
2725 if (flags
& NDR_OUT
) {
2726 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
2728 return NDR_ERR_SUCCESS
;
2731 _PUBLIC_
void ndr_print_PNP_GetNextResDes(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetNextResDes
*r
)
2733 ndr_print_struct(ndr
, name
, "PNP_GetNextResDes");
2735 if (flags
& NDR_SET_VALUES
) {
2736 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2738 if (flags
& NDR_IN
) {
2739 ndr_print_struct(ndr
, "in", "PNP_GetNextResDes");
2743 if (flags
& NDR_OUT
) {
2744 ndr_print_struct(ndr
, "out", "PNP_GetNextResDes");
2746 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
2752 static enum ndr_err_code
ndr_push_PNP_GetResDesData(struct ndr_push
*ndr
, int flags
, const struct PNP_GetResDesData
*r
)
2754 if (flags
& NDR_IN
) {
2756 if (flags
& NDR_OUT
) {
2757 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
2759 return NDR_ERR_SUCCESS
;
2762 static enum ndr_err_code
ndr_pull_PNP_GetResDesData(struct ndr_pull
*ndr
, int flags
, struct PNP_GetResDesData
*r
)
2764 if (flags
& NDR_IN
) {
2766 if (flags
& NDR_OUT
) {
2767 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
2769 return NDR_ERR_SUCCESS
;
2772 _PUBLIC_
void ndr_print_PNP_GetResDesData(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetResDesData
*r
)
2774 ndr_print_struct(ndr
, name
, "PNP_GetResDesData");
2776 if (flags
& NDR_SET_VALUES
) {
2777 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2779 if (flags
& NDR_IN
) {
2780 ndr_print_struct(ndr
, "in", "PNP_GetResDesData");
2784 if (flags
& NDR_OUT
) {
2785 ndr_print_struct(ndr
, "out", "PNP_GetResDesData");
2787 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
2793 static enum ndr_err_code
ndr_push_PNP_GetResDesDataSize(struct ndr_push
*ndr
, int flags
, const struct PNP_GetResDesDataSize
*r
)
2795 if (flags
& NDR_IN
) {
2797 if (flags
& NDR_OUT
) {
2798 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
2800 return NDR_ERR_SUCCESS
;
2803 static enum ndr_err_code
ndr_pull_PNP_GetResDesDataSize(struct ndr_pull
*ndr
, int flags
, struct PNP_GetResDesDataSize
*r
)
2805 if (flags
& NDR_IN
) {
2807 if (flags
& NDR_OUT
) {
2808 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
2810 return NDR_ERR_SUCCESS
;
2813 _PUBLIC_
void ndr_print_PNP_GetResDesDataSize(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetResDesDataSize
*r
)
2815 ndr_print_struct(ndr
, name
, "PNP_GetResDesDataSize");
2817 if (flags
& NDR_SET_VALUES
) {
2818 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2820 if (flags
& NDR_IN
) {
2821 ndr_print_struct(ndr
, "in", "PNP_GetResDesDataSize");
2825 if (flags
& NDR_OUT
) {
2826 ndr_print_struct(ndr
, "out", "PNP_GetResDesDataSize");
2828 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
2834 static enum ndr_err_code
ndr_push_PNP_ModifyResDes(struct ndr_push
*ndr
, int flags
, const struct PNP_ModifyResDes
*r
)
2836 if (flags
& NDR_IN
) {
2838 if (flags
& NDR_OUT
) {
2839 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
2841 return NDR_ERR_SUCCESS
;
2844 static enum ndr_err_code
ndr_pull_PNP_ModifyResDes(struct ndr_pull
*ndr
, int flags
, struct PNP_ModifyResDes
*r
)
2846 if (flags
& NDR_IN
) {
2848 if (flags
& NDR_OUT
) {
2849 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
2851 return NDR_ERR_SUCCESS
;
2854 _PUBLIC_
void ndr_print_PNP_ModifyResDes(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_ModifyResDes
*r
)
2856 ndr_print_struct(ndr
, name
, "PNP_ModifyResDes");
2858 if (flags
& NDR_SET_VALUES
) {
2859 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2861 if (flags
& NDR_IN
) {
2862 ndr_print_struct(ndr
, "in", "PNP_ModifyResDes");
2866 if (flags
& NDR_OUT
) {
2867 ndr_print_struct(ndr
, "out", "PNP_ModifyResDes");
2869 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
2875 static enum ndr_err_code
ndr_push_PNP_DetectResourceLimit(struct ndr_push
*ndr
, int flags
, const struct PNP_DetectResourceLimit
*r
)
2877 if (flags
& NDR_IN
) {
2879 if (flags
& NDR_OUT
) {
2880 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
2882 return NDR_ERR_SUCCESS
;
2885 static enum ndr_err_code
ndr_pull_PNP_DetectResourceLimit(struct ndr_pull
*ndr
, int flags
, struct PNP_DetectResourceLimit
*r
)
2887 if (flags
& NDR_IN
) {
2889 if (flags
& NDR_OUT
) {
2890 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
2892 return NDR_ERR_SUCCESS
;
2895 _PUBLIC_
void ndr_print_PNP_DetectResourceLimit(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_DetectResourceLimit
*r
)
2897 ndr_print_struct(ndr
, name
, "PNP_DetectResourceLimit");
2899 if (flags
& NDR_SET_VALUES
) {
2900 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2902 if (flags
& NDR_IN
) {
2903 ndr_print_struct(ndr
, "in", "PNP_DetectResourceLimit");
2907 if (flags
& NDR_OUT
) {
2908 ndr_print_struct(ndr
, "out", "PNP_DetectResourceLimit");
2910 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
2916 static enum ndr_err_code
ndr_push_PNP_QueryResConfList(struct ndr_push
*ndr
, int flags
, const struct PNP_QueryResConfList
*r
)
2918 if (flags
& NDR_IN
) {
2920 if (flags
& NDR_OUT
) {
2921 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
2923 return NDR_ERR_SUCCESS
;
2926 static enum ndr_err_code
ndr_pull_PNP_QueryResConfList(struct ndr_pull
*ndr
, int flags
, struct PNP_QueryResConfList
*r
)
2928 if (flags
& NDR_IN
) {
2930 if (flags
& NDR_OUT
) {
2931 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
2933 return NDR_ERR_SUCCESS
;
2936 _PUBLIC_
void ndr_print_PNP_QueryResConfList(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_QueryResConfList
*r
)
2938 ndr_print_struct(ndr
, name
, "PNP_QueryResConfList");
2940 if (flags
& NDR_SET_VALUES
) {
2941 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2943 if (flags
& NDR_IN
) {
2944 ndr_print_struct(ndr
, "in", "PNP_QueryResConfList");
2948 if (flags
& NDR_OUT
) {
2949 ndr_print_struct(ndr
, "out", "PNP_QueryResConfList");
2951 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
2957 static enum ndr_err_code
ndr_push_PNP_SetHwProf(struct ndr_push
*ndr
, int flags
, const struct PNP_SetHwProf
*r
)
2959 if (flags
& NDR_IN
) {
2961 if (flags
& NDR_OUT
) {
2962 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
2964 return NDR_ERR_SUCCESS
;
2967 static enum ndr_err_code
ndr_pull_PNP_SetHwProf(struct ndr_pull
*ndr
, int flags
, struct PNP_SetHwProf
*r
)
2969 if (flags
& NDR_IN
) {
2971 if (flags
& NDR_OUT
) {
2972 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
2974 return NDR_ERR_SUCCESS
;
2977 _PUBLIC_
void ndr_print_PNP_SetHwProf(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_SetHwProf
*r
)
2979 ndr_print_struct(ndr
, name
, "PNP_SetHwProf");
2981 if (flags
& NDR_SET_VALUES
) {
2982 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2984 if (flags
& NDR_IN
) {
2985 ndr_print_struct(ndr
, "in", "PNP_SetHwProf");
2989 if (flags
& NDR_OUT
) {
2990 ndr_print_struct(ndr
, "out", "PNP_SetHwProf");
2992 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
2998 static enum ndr_err_code
ndr_push_PNP_QueryArbitratorFreeData(struct ndr_push
*ndr
, int flags
, const struct PNP_QueryArbitratorFreeData
*r
)
3000 if (flags
& NDR_IN
) {
3002 if (flags
& NDR_OUT
) {
3003 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
3005 return NDR_ERR_SUCCESS
;
3008 static enum ndr_err_code
ndr_pull_PNP_QueryArbitratorFreeData(struct ndr_pull
*ndr
, int flags
, struct PNP_QueryArbitratorFreeData
*r
)
3010 if (flags
& NDR_IN
) {
3012 if (flags
& NDR_OUT
) {
3013 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
3015 return NDR_ERR_SUCCESS
;
3018 _PUBLIC_
void ndr_print_PNP_QueryArbitratorFreeData(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_QueryArbitratorFreeData
*r
)
3020 ndr_print_struct(ndr
, name
, "PNP_QueryArbitratorFreeData");
3022 if (flags
& NDR_SET_VALUES
) {
3023 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
3025 if (flags
& NDR_IN
) {
3026 ndr_print_struct(ndr
, "in", "PNP_QueryArbitratorFreeData");
3030 if (flags
& NDR_OUT
) {
3031 ndr_print_struct(ndr
, "out", "PNP_QueryArbitratorFreeData");
3033 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
3039 static enum ndr_err_code
ndr_push_PNP_QueryArbitratorFreeSize(struct ndr_push
*ndr
, int flags
, const struct PNP_QueryArbitratorFreeSize
*r
)
3041 if (flags
& NDR_IN
) {
3043 if (flags
& NDR_OUT
) {
3044 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
3046 return NDR_ERR_SUCCESS
;
3049 static enum ndr_err_code
ndr_pull_PNP_QueryArbitratorFreeSize(struct ndr_pull
*ndr
, int flags
, struct PNP_QueryArbitratorFreeSize
*r
)
3051 if (flags
& NDR_IN
) {
3053 if (flags
& NDR_OUT
) {
3054 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
3056 return NDR_ERR_SUCCESS
;
3059 _PUBLIC_
void ndr_print_PNP_QueryArbitratorFreeSize(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_QueryArbitratorFreeSize
*r
)
3061 ndr_print_struct(ndr
, name
, "PNP_QueryArbitratorFreeSize");
3063 if (flags
& NDR_SET_VALUES
) {
3064 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
3066 if (flags
& NDR_IN
) {
3067 ndr_print_struct(ndr
, "in", "PNP_QueryArbitratorFreeSize");
3071 if (flags
& NDR_OUT
) {
3072 ndr_print_struct(ndr
, "out", "PNP_QueryArbitratorFreeSize");
3074 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
3080 static enum ndr_err_code
ndr_push_PNP_RunDetection(struct ndr_push
*ndr
, int flags
, const struct PNP_RunDetection
*r
)
3082 if (flags
& NDR_IN
) {
3084 if (flags
& NDR_OUT
) {
3085 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
3087 return NDR_ERR_SUCCESS
;
3090 static enum ndr_err_code
ndr_pull_PNP_RunDetection(struct ndr_pull
*ndr
, int flags
, struct PNP_RunDetection
*r
)
3092 if (flags
& NDR_IN
) {
3094 if (flags
& NDR_OUT
) {
3095 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
3097 return NDR_ERR_SUCCESS
;
3100 _PUBLIC_
void ndr_print_PNP_RunDetection(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_RunDetection
*r
)
3102 ndr_print_struct(ndr
, name
, "PNP_RunDetection");
3104 if (flags
& NDR_SET_VALUES
) {
3105 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
3107 if (flags
& NDR_IN
) {
3108 ndr_print_struct(ndr
, "in", "PNP_RunDetection");
3112 if (flags
& NDR_OUT
) {
3113 ndr_print_struct(ndr
, "out", "PNP_RunDetection");
3115 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
3121 static enum ndr_err_code
ndr_push_PNP_RegisterNotification(struct ndr_push
*ndr
, int flags
, const struct PNP_RegisterNotification
*r
)
3123 if (flags
& NDR_IN
) {
3125 if (flags
& NDR_OUT
) {
3126 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
3128 return NDR_ERR_SUCCESS
;
3131 static enum ndr_err_code
ndr_pull_PNP_RegisterNotification(struct ndr_pull
*ndr
, int flags
, struct PNP_RegisterNotification
*r
)
3133 if (flags
& NDR_IN
) {
3135 if (flags
& NDR_OUT
) {
3136 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
3138 return NDR_ERR_SUCCESS
;
3141 _PUBLIC_
void ndr_print_PNP_RegisterNotification(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_RegisterNotification
*r
)
3143 ndr_print_struct(ndr
, name
, "PNP_RegisterNotification");
3145 if (flags
& NDR_SET_VALUES
) {
3146 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
3148 if (flags
& NDR_IN
) {
3149 ndr_print_struct(ndr
, "in", "PNP_RegisterNotification");
3153 if (flags
& NDR_OUT
) {
3154 ndr_print_struct(ndr
, "out", "PNP_RegisterNotification");
3156 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
3162 static enum ndr_err_code
ndr_push_PNP_UnregisterNotification(struct ndr_push
*ndr
, int flags
, const struct PNP_UnregisterNotification
*r
)
3164 if (flags
& NDR_IN
) {
3166 if (flags
& NDR_OUT
) {
3167 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
3169 return NDR_ERR_SUCCESS
;
3172 static enum ndr_err_code
ndr_pull_PNP_UnregisterNotification(struct ndr_pull
*ndr
, int flags
, struct PNP_UnregisterNotification
*r
)
3174 if (flags
& NDR_IN
) {
3176 if (flags
& NDR_OUT
) {
3177 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
3179 return NDR_ERR_SUCCESS
;
3182 _PUBLIC_
void ndr_print_PNP_UnregisterNotification(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_UnregisterNotification
*r
)
3184 ndr_print_struct(ndr
, name
, "PNP_UnregisterNotification");
3186 if (flags
& NDR_SET_VALUES
) {
3187 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
3189 if (flags
& NDR_IN
) {
3190 ndr_print_struct(ndr
, "in", "PNP_UnregisterNotification");
3194 if (flags
& NDR_OUT
) {
3195 ndr_print_struct(ndr
, "out", "PNP_UnregisterNotification");
3197 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
3203 static enum ndr_err_code
ndr_push_PNP_GetCustomDevProp(struct ndr_push
*ndr
, int flags
, const struct PNP_GetCustomDevProp
*r
)
3205 if (flags
& NDR_IN
) {
3207 if (flags
& NDR_OUT
) {
3208 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
3210 return NDR_ERR_SUCCESS
;
3213 static enum ndr_err_code
ndr_pull_PNP_GetCustomDevProp(struct ndr_pull
*ndr
, int flags
, struct PNP_GetCustomDevProp
*r
)
3215 if (flags
& NDR_IN
) {
3217 if (flags
& NDR_OUT
) {
3218 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
3220 return NDR_ERR_SUCCESS
;
3223 _PUBLIC_
void ndr_print_PNP_GetCustomDevProp(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetCustomDevProp
*r
)
3225 ndr_print_struct(ndr
, name
, "PNP_GetCustomDevProp");
3227 if (flags
& NDR_SET_VALUES
) {
3228 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
3230 if (flags
& NDR_IN
) {
3231 ndr_print_struct(ndr
, "in", "PNP_GetCustomDevProp");
3235 if (flags
& NDR_OUT
) {
3236 ndr_print_struct(ndr
, "out", "PNP_GetCustomDevProp");
3238 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
3244 static enum ndr_err_code
ndr_push_PNP_GetVersionInternal(struct ndr_push
*ndr
, int flags
, const struct PNP_GetVersionInternal
*r
)
3246 if (flags
& NDR_IN
) {
3248 if (flags
& NDR_OUT
) {
3249 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
3251 return NDR_ERR_SUCCESS
;
3254 static enum ndr_err_code
ndr_pull_PNP_GetVersionInternal(struct ndr_pull
*ndr
, int flags
, struct PNP_GetVersionInternal
*r
)
3256 if (flags
& NDR_IN
) {
3258 if (flags
& NDR_OUT
) {
3259 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
3261 return NDR_ERR_SUCCESS
;
3264 _PUBLIC_
void ndr_print_PNP_GetVersionInternal(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetVersionInternal
*r
)
3266 ndr_print_struct(ndr
, name
, "PNP_GetVersionInternal");
3268 if (flags
& NDR_SET_VALUES
) {
3269 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
3271 if (flags
& NDR_IN
) {
3272 ndr_print_struct(ndr
, "in", "PNP_GetVersionInternal");
3276 if (flags
& NDR_OUT
) {
3277 ndr_print_struct(ndr
, "out", "PNP_GetVersionInternal");
3279 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
3285 static enum ndr_err_code
ndr_push_PNP_GetBlockedDriverInfo(struct ndr_push
*ndr
, int flags
, const struct PNP_GetBlockedDriverInfo
*r
)
3287 if (flags
& NDR_IN
) {
3289 if (flags
& NDR_OUT
) {
3290 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
3292 return NDR_ERR_SUCCESS
;
3295 static enum ndr_err_code
ndr_pull_PNP_GetBlockedDriverInfo(struct ndr_pull
*ndr
, int flags
, struct PNP_GetBlockedDriverInfo
*r
)
3297 if (flags
& NDR_IN
) {
3299 if (flags
& NDR_OUT
) {
3300 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
3302 return NDR_ERR_SUCCESS
;
3305 _PUBLIC_
void ndr_print_PNP_GetBlockedDriverInfo(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetBlockedDriverInfo
*r
)
3307 ndr_print_struct(ndr
, name
, "PNP_GetBlockedDriverInfo");
3309 if (flags
& NDR_SET_VALUES
) {
3310 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
3312 if (flags
& NDR_IN
) {
3313 ndr_print_struct(ndr
, "in", "PNP_GetBlockedDriverInfo");
3317 if (flags
& NDR_OUT
) {
3318 ndr_print_struct(ndr
, "out", "PNP_GetBlockedDriverInfo");
3320 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
3326 static enum ndr_err_code
ndr_push_PNP_GetServerSideDeviceInstallFlags(struct ndr_push
*ndr
, int flags
, const struct PNP_GetServerSideDeviceInstallFlags
*r
)
3328 if (flags
& NDR_IN
) {
3330 if (flags
& NDR_OUT
) {
3331 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
3333 return NDR_ERR_SUCCESS
;
3336 static enum ndr_err_code
ndr_pull_PNP_GetServerSideDeviceInstallFlags(struct ndr_pull
*ndr
, int flags
, struct PNP_GetServerSideDeviceInstallFlags
*r
)
3338 if (flags
& NDR_IN
) {
3340 if (flags
& NDR_OUT
) {
3341 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
3343 return NDR_ERR_SUCCESS
;
3346 _PUBLIC_
void ndr_print_PNP_GetServerSideDeviceInstallFlags(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetServerSideDeviceInstallFlags
*r
)
3348 ndr_print_struct(ndr
, name
, "PNP_GetServerSideDeviceInstallFlags");
3350 if (flags
& NDR_SET_VALUES
) {
3351 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
3353 if (flags
& NDR_IN
) {
3354 ndr_print_struct(ndr
, "in", "PNP_GetServerSideDeviceInstallFlags");
3358 if (flags
& NDR_OUT
) {
3359 ndr_print_struct(ndr
, "out", "PNP_GetServerSideDeviceInstallFlags");
3361 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
3367 static const struct ndr_interface_call ntsvcs_calls
[] = {
3370 sizeof(struct PNP_Disconnect
),
3371 (ndr_push_flags_fn_t
) ndr_push_PNP_Disconnect
,
3372 (ndr_pull_flags_fn_t
) ndr_pull_PNP_Disconnect
,
3373 (ndr_print_function_t
) ndr_print_PNP_Disconnect
,
3378 sizeof(struct PNP_Connect
),
3379 (ndr_push_flags_fn_t
) ndr_push_PNP_Connect
,
3380 (ndr_pull_flags_fn_t
) ndr_pull_PNP_Connect
,
3381 (ndr_print_function_t
) ndr_print_PNP_Connect
,
3386 sizeof(struct PNP_GetVersion
),
3387 (ndr_push_flags_fn_t
) ndr_push_PNP_GetVersion
,
3388 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetVersion
,
3389 (ndr_print_function_t
) ndr_print_PNP_GetVersion
,
3393 "PNP_GetGlobalState",
3394 sizeof(struct PNP_GetGlobalState
),
3395 (ndr_push_flags_fn_t
) ndr_push_PNP_GetGlobalState
,
3396 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetGlobalState
,
3397 (ndr_print_function_t
) ndr_print_PNP_GetGlobalState
,
3401 "PNP_InitDetection",
3402 sizeof(struct PNP_InitDetection
),
3403 (ndr_push_flags_fn_t
) ndr_push_PNP_InitDetection
,
3404 (ndr_pull_flags_fn_t
) ndr_pull_PNP_InitDetection
,
3405 (ndr_print_function_t
) ndr_print_PNP_InitDetection
,
3410 sizeof(struct PNP_ReportLogOn
),
3411 (ndr_push_flags_fn_t
) ndr_push_PNP_ReportLogOn
,
3412 (ndr_pull_flags_fn_t
) ndr_pull_PNP_ReportLogOn
,
3413 (ndr_print_function_t
) ndr_print_PNP_ReportLogOn
,
3417 "PNP_ValidateDeviceInstance",
3418 sizeof(struct PNP_ValidateDeviceInstance
),
3419 (ndr_push_flags_fn_t
) ndr_push_PNP_ValidateDeviceInstance
,
3420 (ndr_pull_flags_fn_t
) ndr_pull_PNP_ValidateDeviceInstance
,
3421 (ndr_print_function_t
) ndr_print_PNP_ValidateDeviceInstance
,
3425 "PNP_GetRootDeviceInstance",
3426 sizeof(struct PNP_GetRootDeviceInstance
),
3427 (ndr_push_flags_fn_t
) ndr_push_PNP_GetRootDeviceInstance
,
3428 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetRootDeviceInstance
,
3429 (ndr_print_function_t
) ndr_print_PNP_GetRootDeviceInstance
,
3433 "PNP_GetRelatedDeviceInstance",
3434 sizeof(struct PNP_GetRelatedDeviceInstance
),
3435 (ndr_push_flags_fn_t
) ndr_push_PNP_GetRelatedDeviceInstance
,
3436 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetRelatedDeviceInstance
,
3437 (ndr_print_function_t
) ndr_print_PNP_GetRelatedDeviceInstance
,
3441 "PNP_EnumerateSubKeys",
3442 sizeof(struct PNP_EnumerateSubKeys
),
3443 (ndr_push_flags_fn_t
) ndr_push_PNP_EnumerateSubKeys
,
3444 (ndr_pull_flags_fn_t
) ndr_pull_PNP_EnumerateSubKeys
,
3445 (ndr_print_function_t
) ndr_print_PNP_EnumerateSubKeys
,
3449 "PNP_GetDeviceList",
3450 sizeof(struct PNP_GetDeviceList
),
3451 (ndr_push_flags_fn_t
) ndr_push_PNP_GetDeviceList
,
3452 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetDeviceList
,
3453 (ndr_print_function_t
) ndr_print_PNP_GetDeviceList
,
3457 "PNP_GetDeviceListSize",
3458 sizeof(struct PNP_GetDeviceListSize
),
3459 (ndr_push_flags_fn_t
) ndr_push_PNP_GetDeviceListSize
,
3460 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetDeviceListSize
,
3461 (ndr_print_function_t
) ndr_print_PNP_GetDeviceListSize
,
3466 sizeof(struct PNP_GetDepth
),
3467 (ndr_push_flags_fn_t
) ndr_push_PNP_GetDepth
,
3468 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetDepth
,
3469 (ndr_print_function_t
) ndr_print_PNP_GetDepth
,
3473 "PNP_GetDeviceRegProp",
3474 sizeof(struct PNP_GetDeviceRegProp
),
3475 (ndr_push_flags_fn_t
) ndr_push_PNP_GetDeviceRegProp
,
3476 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetDeviceRegProp
,
3477 (ndr_print_function_t
) ndr_print_PNP_GetDeviceRegProp
,
3481 "PNP_SetDeviceRegProp",
3482 sizeof(struct PNP_SetDeviceRegProp
),
3483 (ndr_push_flags_fn_t
) ndr_push_PNP_SetDeviceRegProp
,
3484 (ndr_pull_flags_fn_t
) ndr_pull_PNP_SetDeviceRegProp
,
3485 (ndr_print_function_t
) ndr_print_PNP_SetDeviceRegProp
,
3489 "PNP_GetClassInstance",
3490 sizeof(struct PNP_GetClassInstance
),
3491 (ndr_push_flags_fn_t
) ndr_push_PNP_GetClassInstance
,
3492 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetClassInstance
,
3493 (ndr_print_function_t
) ndr_print_PNP_GetClassInstance
,
3498 sizeof(struct PNP_CreateKey
),
3499 (ndr_push_flags_fn_t
) ndr_push_PNP_CreateKey
,
3500 (ndr_pull_flags_fn_t
) ndr_pull_PNP_CreateKey
,
3501 (ndr_print_function_t
) ndr_print_PNP_CreateKey
,
3505 "PNP_DeleteRegistryKey",
3506 sizeof(struct PNP_DeleteRegistryKey
),
3507 (ndr_push_flags_fn_t
) ndr_push_PNP_DeleteRegistryKey
,
3508 (ndr_pull_flags_fn_t
) ndr_pull_PNP_DeleteRegistryKey
,
3509 (ndr_print_function_t
) ndr_print_PNP_DeleteRegistryKey
,
3513 "PNP_GetClassCount",
3514 sizeof(struct PNP_GetClassCount
),
3515 (ndr_push_flags_fn_t
) ndr_push_PNP_GetClassCount
,
3516 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetClassCount
,
3517 (ndr_print_function_t
) ndr_print_PNP_GetClassCount
,
3522 sizeof(struct PNP_GetClassName
),
3523 (ndr_push_flags_fn_t
) ndr_push_PNP_GetClassName
,
3524 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetClassName
,
3525 (ndr_print_function_t
) ndr_print_PNP_GetClassName
,
3529 "PNP_DeleteClassKey",
3530 sizeof(struct PNP_DeleteClassKey
),
3531 (ndr_push_flags_fn_t
) ndr_push_PNP_DeleteClassKey
,
3532 (ndr_pull_flags_fn_t
) ndr_pull_PNP_DeleteClassKey
,
3533 (ndr_print_function_t
) ndr_print_PNP_DeleteClassKey
,
3537 "PNP_GetInterfaceDeviceAlias",
3538 sizeof(struct PNP_GetInterfaceDeviceAlias
),
3539 (ndr_push_flags_fn_t
) ndr_push_PNP_GetInterfaceDeviceAlias
,
3540 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetInterfaceDeviceAlias
,
3541 (ndr_print_function_t
) ndr_print_PNP_GetInterfaceDeviceAlias
,
3545 "PNP_GetInterfaceDeviceList",
3546 sizeof(struct PNP_GetInterfaceDeviceList
),
3547 (ndr_push_flags_fn_t
) ndr_push_PNP_GetInterfaceDeviceList
,
3548 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetInterfaceDeviceList
,
3549 (ndr_print_function_t
) ndr_print_PNP_GetInterfaceDeviceList
,
3553 "PNP_GetInterfaceDeviceListSize",
3554 sizeof(struct PNP_GetInterfaceDeviceListSize
),
3555 (ndr_push_flags_fn_t
) ndr_push_PNP_GetInterfaceDeviceListSize
,
3556 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetInterfaceDeviceListSize
,
3557 (ndr_print_function_t
) ndr_print_PNP_GetInterfaceDeviceListSize
,
3561 "PNP_RegisterDeviceClassAssociation",
3562 sizeof(struct PNP_RegisterDeviceClassAssociation
),
3563 (ndr_push_flags_fn_t
) ndr_push_PNP_RegisterDeviceClassAssociation
,
3564 (ndr_pull_flags_fn_t
) ndr_pull_PNP_RegisterDeviceClassAssociation
,
3565 (ndr_print_function_t
) ndr_print_PNP_RegisterDeviceClassAssociation
,
3569 "PNP_UnregisterDeviceClassAssociation",
3570 sizeof(struct PNP_UnregisterDeviceClassAssociation
),
3571 (ndr_push_flags_fn_t
) ndr_push_PNP_UnregisterDeviceClassAssociation
,
3572 (ndr_pull_flags_fn_t
) ndr_pull_PNP_UnregisterDeviceClassAssociation
,
3573 (ndr_print_function_t
) ndr_print_PNP_UnregisterDeviceClassAssociation
,
3577 "PNP_GetClassRegProp",
3578 sizeof(struct PNP_GetClassRegProp
),
3579 (ndr_push_flags_fn_t
) ndr_push_PNP_GetClassRegProp
,
3580 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetClassRegProp
,
3581 (ndr_print_function_t
) ndr_print_PNP_GetClassRegProp
,
3585 "PNP_SetClassRegProp",
3586 sizeof(struct PNP_SetClassRegProp
),
3587 (ndr_push_flags_fn_t
) ndr_push_PNP_SetClassRegProp
,
3588 (ndr_pull_flags_fn_t
) ndr_pull_PNP_SetClassRegProp
,
3589 (ndr_print_function_t
) ndr_print_PNP_SetClassRegProp
,
3593 "PNP_CreateDevInst",
3594 sizeof(struct PNP_CreateDevInst
),
3595 (ndr_push_flags_fn_t
) ndr_push_PNP_CreateDevInst
,
3596 (ndr_pull_flags_fn_t
) ndr_pull_PNP_CreateDevInst
,
3597 (ndr_print_function_t
) ndr_print_PNP_CreateDevInst
,
3601 "PNP_DeviceInstanceAction",
3602 sizeof(struct PNP_DeviceInstanceAction
),
3603 (ndr_push_flags_fn_t
) ndr_push_PNP_DeviceInstanceAction
,
3604 (ndr_pull_flags_fn_t
) ndr_pull_PNP_DeviceInstanceAction
,
3605 (ndr_print_function_t
) ndr_print_PNP_DeviceInstanceAction
,
3609 "PNP_GetDeviceStatus",
3610 sizeof(struct PNP_GetDeviceStatus
),
3611 (ndr_push_flags_fn_t
) ndr_push_PNP_GetDeviceStatus
,
3612 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetDeviceStatus
,
3613 (ndr_print_function_t
) ndr_print_PNP_GetDeviceStatus
,
3617 "PNP_SetDeviceProblem",
3618 sizeof(struct PNP_SetDeviceProblem
),
3619 (ndr_push_flags_fn_t
) ndr_push_PNP_SetDeviceProblem
,
3620 (ndr_pull_flags_fn_t
) ndr_pull_PNP_SetDeviceProblem
,
3621 (ndr_print_function_t
) ndr_print_PNP_SetDeviceProblem
,
3625 "PNP_DisableDevInst",
3626 sizeof(struct PNP_DisableDevInst
),
3627 (ndr_push_flags_fn_t
) ndr_push_PNP_DisableDevInst
,
3628 (ndr_pull_flags_fn_t
) ndr_pull_PNP_DisableDevInst
,
3629 (ndr_print_function_t
) ndr_print_PNP_DisableDevInst
,
3633 "PNP_UninstallDevInst",
3634 sizeof(struct PNP_UninstallDevInst
),
3635 (ndr_push_flags_fn_t
) ndr_push_PNP_UninstallDevInst
,
3636 (ndr_pull_flags_fn_t
) ndr_pull_PNP_UninstallDevInst
,
3637 (ndr_print_function_t
) ndr_print_PNP_UninstallDevInst
,
3642 sizeof(struct PNP_AddID
),
3643 (ndr_push_flags_fn_t
) ndr_push_PNP_AddID
,
3644 (ndr_pull_flags_fn_t
) ndr_pull_PNP_AddID
,
3645 (ndr_print_function_t
) ndr_print_PNP_AddID
,
3649 "PNP_RegisterDriver",
3650 sizeof(struct PNP_RegisterDriver
),
3651 (ndr_push_flags_fn_t
) ndr_push_PNP_RegisterDriver
,
3652 (ndr_pull_flags_fn_t
) ndr_pull_PNP_RegisterDriver
,
3653 (ndr_print_function_t
) ndr_print_PNP_RegisterDriver
,
3658 sizeof(struct PNP_QueryRemove
),
3659 (ndr_push_flags_fn_t
) ndr_push_PNP_QueryRemove
,
3660 (ndr_pull_flags_fn_t
) ndr_pull_PNP_QueryRemove
,
3661 (ndr_print_function_t
) ndr_print_PNP_QueryRemove
,
3665 "PNP_RequestDeviceEject",
3666 sizeof(struct PNP_RequestDeviceEject
),
3667 (ndr_push_flags_fn_t
) ndr_push_PNP_RequestDeviceEject
,
3668 (ndr_pull_flags_fn_t
) ndr_pull_PNP_RequestDeviceEject
,
3669 (ndr_print_function_t
) ndr_print_PNP_RequestDeviceEject
,
3673 "PNP_IsDockStationPresent",
3674 sizeof(struct PNP_IsDockStationPresent
),
3675 (ndr_push_flags_fn_t
) ndr_push_PNP_IsDockStationPresent
,
3676 (ndr_pull_flags_fn_t
) ndr_pull_PNP_IsDockStationPresent
,
3677 (ndr_print_function_t
) ndr_print_PNP_IsDockStationPresent
,
3681 "PNP_RequestEjectPC",
3682 sizeof(struct PNP_RequestEjectPC
),
3683 (ndr_push_flags_fn_t
) ndr_push_PNP_RequestEjectPC
,
3684 (ndr_pull_flags_fn_t
) ndr_pull_PNP_RequestEjectPC
,
3685 (ndr_print_function_t
) ndr_print_PNP_RequestEjectPC
,
3690 sizeof(struct PNP_HwProfFlags
),
3691 (ndr_push_flags_fn_t
) ndr_push_PNP_HwProfFlags
,
3692 (ndr_pull_flags_fn_t
) ndr_pull_PNP_HwProfFlags
,
3693 (ndr_print_function_t
) ndr_print_PNP_HwProfFlags
,
3697 "PNP_GetHwProfInfo",
3698 sizeof(struct PNP_GetHwProfInfo
),
3699 (ndr_push_flags_fn_t
) ndr_push_PNP_GetHwProfInfo
,
3700 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetHwProfInfo
,
3701 (ndr_print_function_t
) ndr_print_PNP_GetHwProfInfo
,
3705 "PNP_AddEmptyLogConf",
3706 sizeof(struct PNP_AddEmptyLogConf
),
3707 (ndr_push_flags_fn_t
) ndr_push_PNP_AddEmptyLogConf
,
3708 (ndr_pull_flags_fn_t
) ndr_pull_PNP_AddEmptyLogConf
,
3709 (ndr_print_function_t
) ndr_print_PNP_AddEmptyLogConf
,
3714 sizeof(struct PNP_FreeLogConf
),
3715 (ndr_push_flags_fn_t
) ndr_push_PNP_FreeLogConf
,
3716 (ndr_pull_flags_fn_t
) ndr_pull_PNP_FreeLogConf
,
3717 (ndr_print_function_t
) ndr_print_PNP_FreeLogConf
,
3721 "PNP_GetFirstLogConf",
3722 sizeof(struct PNP_GetFirstLogConf
),
3723 (ndr_push_flags_fn_t
) ndr_push_PNP_GetFirstLogConf
,
3724 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetFirstLogConf
,
3725 (ndr_print_function_t
) ndr_print_PNP_GetFirstLogConf
,
3729 "PNP_GetNextLogConf",
3730 sizeof(struct PNP_GetNextLogConf
),
3731 (ndr_push_flags_fn_t
) ndr_push_PNP_GetNextLogConf
,
3732 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetNextLogConf
,
3733 (ndr_print_function_t
) ndr_print_PNP_GetNextLogConf
,
3737 "PNP_GetLogConfPriority",
3738 sizeof(struct PNP_GetLogConfPriority
),
3739 (ndr_push_flags_fn_t
) ndr_push_PNP_GetLogConfPriority
,
3740 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetLogConfPriority
,
3741 (ndr_print_function_t
) ndr_print_PNP_GetLogConfPriority
,
3746 sizeof(struct PNP_AddResDes
),
3747 (ndr_push_flags_fn_t
) ndr_push_PNP_AddResDes
,
3748 (ndr_pull_flags_fn_t
) ndr_pull_PNP_AddResDes
,
3749 (ndr_print_function_t
) ndr_print_PNP_AddResDes
,
3754 sizeof(struct PNP_FreeResDes
),
3755 (ndr_push_flags_fn_t
) ndr_push_PNP_FreeResDes
,
3756 (ndr_pull_flags_fn_t
) ndr_pull_PNP_FreeResDes
,
3757 (ndr_print_function_t
) ndr_print_PNP_FreeResDes
,
3761 "PNP_GetNextResDes",
3762 sizeof(struct PNP_GetNextResDes
),
3763 (ndr_push_flags_fn_t
) ndr_push_PNP_GetNextResDes
,
3764 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetNextResDes
,
3765 (ndr_print_function_t
) ndr_print_PNP_GetNextResDes
,
3769 "PNP_GetResDesData",
3770 sizeof(struct PNP_GetResDesData
),
3771 (ndr_push_flags_fn_t
) ndr_push_PNP_GetResDesData
,
3772 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetResDesData
,
3773 (ndr_print_function_t
) ndr_print_PNP_GetResDesData
,
3777 "PNP_GetResDesDataSize",
3778 sizeof(struct PNP_GetResDesDataSize
),
3779 (ndr_push_flags_fn_t
) ndr_push_PNP_GetResDesDataSize
,
3780 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetResDesDataSize
,
3781 (ndr_print_function_t
) ndr_print_PNP_GetResDesDataSize
,
3786 sizeof(struct PNP_ModifyResDes
),
3787 (ndr_push_flags_fn_t
) ndr_push_PNP_ModifyResDes
,
3788 (ndr_pull_flags_fn_t
) ndr_pull_PNP_ModifyResDes
,
3789 (ndr_print_function_t
) ndr_print_PNP_ModifyResDes
,
3793 "PNP_DetectResourceLimit",
3794 sizeof(struct PNP_DetectResourceLimit
),
3795 (ndr_push_flags_fn_t
) ndr_push_PNP_DetectResourceLimit
,
3796 (ndr_pull_flags_fn_t
) ndr_pull_PNP_DetectResourceLimit
,
3797 (ndr_print_function_t
) ndr_print_PNP_DetectResourceLimit
,
3801 "PNP_QueryResConfList",
3802 sizeof(struct PNP_QueryResConfList
),
3803 (ndr_push_flags_fn_t
) ndr_push_PNP_QueryResConfList
,
3804 (ndr_pull_flags_fn_t
) ndr_pull_PNP_QueryResConfList
,
3805 (ndr_print_function_t
) ndr_print_PNP_QueryResConfList
,
3810 sizeof(struct PNP_SetHwProf
),
3811 (ndr_push_flags_fn_t
) ndr_push_PNP_SetHwProf
,
3812 (ndr_pull_flags_fn_t
) ndr_pull_PNP_SetHwProf
,
3813 (ndr_print_function_t
) ndr_print_PNP_SetHwProf
,
3817 "PNP_QueryArbitratorFreeData",
3818 sizeof(struct PNP_QueryArbitratorFreeData
),
3819 (ndr_push_flags_fn_t
) ndr_push_PNP_QueryArbitratorFreeData
,
3820 (ndr_pull_flags_fn_t
) ndr_pull_PNP_QueryArbitratorFreeData
,
3821 (ndr_print_function_t
) ndr_print_PNP_QueryArbitratorFreeData
,
3825 "PNP_QueryArbitratorFreeSize",
3826 sizeof(struct PNP_QueryArbitratorFreeSize
),
3827 (ndr_push_flags_fn_t
) ndr_push_PNP_QueryArbitratorFreeSize
,
3828 (ndr_pull_flags_fn_t
) ndr_pull_PNP_QueryArbitratorFreeSize
,
3829 (ndr_print_function_t
) ndr_print_PNP_QueryArbitratorFreeSize
,
3834 sizeof(struct PNP_RunDetection
),
3835 (ndr_push_flags_fn_t
) ndr_push_PNP_RunDetection
,
3836 (ndr_pull_flags_fn_t
) ndr_pull_PNP_RunDetection
,
3837 (ndr_print_function_t
) ndr_print_PNP_RunDetection
,
3841 "PNP_RegisterNotification",
3842 sizeof(struct PNP_RegisterNotification
),
3843 (ndr_push_flags_fn_t
) ndr_push_PNP_RegisterNotification
,
3844 (ndr_pull_flags_fn_t
) ndr_pull_PNP_RegisterNotification
,
3845 (ndr_print_function_t
) ndr_print_PNP_RegisterNotification
,
3849 "PNP_UnregisterNotification",
3850 sizeof(struct PNP_UnregisterNotification
),
3851 (ndr_push_flags_fn_t
) ndr_push_PNP_UnregisterNotification
,
3852 (ndr_pull_flags_fn_t
) ndr_pull_PNP_UnregisterNotification
,
3853 (ndr_print_function_t
) ndr_print_PNP_UnregisterNotification
,
3857 "PNP_GetCustomDevProp",
3858 sizeof(struct PNP_GetCustomDevProp
),
3859 (ndr_push_flags_fn_t
) ndr_push_PNP_GetCustomDevProp
,
3860 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetCustomDevProp
,
3861 (ndr_print_function_t
) ndr_print_PNP_GetCustomDevProp
,
3865 "PNP_GetVersionInternal",
3866 sizeof(struct PNP_GetVersionInternal
),
3867 (ndr_push_flags_fn_t
) ndr_push_PNP_GetVersionInternal
,
3868 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetVersionInternal
,
3869 (ndr_print_function_t
) ndr_print_PNP_GetVersionInternal
,
3873 "PNP_GetBlockedDriverInfo",
3874 sizeof(struct PNP_GetBlockedDriverInfo
),
3875 (ndr_push_flags_fn_t
) ndr_push_PNP_GetBlockedDriverInfo
,
3876 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetBlockedDriverInfo
,
3877 (ndr_print_function_t
) ndr_print_PNP_GetBlockedDriverInfo
,
3881 "PNP_GetServerSideDeviceInstallFlags",
3882 sizeof(struct PNP_GetServerSideDeviceInstallFlags
),
3883 (ndr_push_flags_fn_t
) ndr_push_PNP_GetServerSideDeviceInstallFlags
,
3884 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetServerSideDeviceInstallFlags
,
3885 (ndr_print_function_t
) ndr_print_PNP_GetServerSideDeviceInstallFlags
,
3888 { NULL
, 0, NULL
, NULL
, NULL
, false }
3891 static const char * const ntsvcs_endpoint_strings
[] = {
3892 "ncacn_np:[\\pipe\\ntsvcs]",
3893 "ncacn_np:[\\pipe\\plugplay]",
3896 static const struct ndr_interface_string_array ntsvcs_endpoints
= {
3898 .names
= ntsvcs_endpoint_strings
3901 static const char * const ntsvcs_authservice_strings
[] = {
3905 static const struct ndr_interface_string_array ntsvcs_authservices
= {
3907 .names
= ntsvcs_authservice_strings
3911 const struct ndr_interface_table ndr_table_ntsvcs
= {
3914 {0x8d9f4e40,0xa03d,0x11ce,{0x8f,0x69},{0x08,0x00,0x3e,0x30,0x05,0x1b}},
3917 .helpstring
= NDR_NTSVCS_HELPSTRING
,
3919 .calls
= ntsvcs_calls
,
3920 .endpoints
= &ntsvcs_endpoints
,
3921 .authservices
= &ntsvcs_authservices