1 /* parser auto-generated by pidl */
4 #include "../librpc/gen_ndr/ndr_ntsvcs.h"
6 #include "librpc/gen_ndr/ndr_winreg.h"
7 static enum ndr_err_code
ndr_push_PNP_HwProfInfo(struct ndr_push
*ndr
, int ndr_flags
, const struct PNP_HwProfInfo
*r
)
9 uint32_t cntr_friendly_name_0
;
10 if (ndr_flags
& NDR_SCALARS
) {
11 NDR_CHECK(ndr_push_align(ndr
, 4));
12 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, r
->profile_handle
));
13 for (cntr_friendly_name_0
= 0; cntr_friendly_name_0
< 80; cntr_friendly_name_0
++) {
14 NDR_CHECK(ndr_push_uint16(ndr
, NDR_SCALARS
, r
->friendly_name
[cntr_friendly_name_0
]));
16 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, r
->flags
));
18 if (ndr_flags
& NDR_BUFFERS
) {
20 return NDR_ERR_SUCCESS
;
23 static enum ndr_err_code
ndr_pull_PNP_HwProfInfo(struct ndr_pull
*ndr
, int ndr_flags
, struct PNP_HwProfInfo
*r
)
25 uint32_t cntr_friendly_name_0
;
26 if (ndr_flags
& NDR_SCALARS
) {
27 NDR_CHECK(ndr_pull_align(ndr
, 4));
28 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, &r
->profile_handle
));
29 for (cntr_friendly_name_0
= 0; cntr_friendly_name_0
< 80; cntr_friendly_name_0
++) {
30 NDR_CHECK(ndr_pull_uint16(ndr
, NDR_SCALARS
, &r
->friendly_name
[cntr_friendly_name_0
]));
32 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, &r
->flags
));
34 if (ndr_flags
& NDR_BUFFERS
) {
36 return NDR_ERR_SUCCESS
;
39 _PUBLIC_
void ndr_print_PNP_HwProfInfo(struct ndr_print
*ndr
, const char *name
, const struct PNP_HwProfInfo
*r
)
41 uint32_t cntr_friendly_name_0
;
42 ndr_print_struct(ndr
, name
, "PNP_HwProfInfo");
44 ndr_print_uint32(ndr
, "profile_handle", r
->profile_handle
);
45 ndr
->print(ndr
, "%s: ARRAY(%d)", "friendly_name", (int)80);
47 for (cntr_friendly_name_0
=0;cntr_friendly_name_0
<80;cntr_friendly_name_0
++) {
49 if (asprintf(&idx_0
, "[%d]", cntr_friendly_name_0
) != -1) {
50 ndr_print_uint16(ndr
, "friendly_name", r
->friendly_name
[cntr_friendly_name_0
]);
55 ndr_print_uint32(ndr
, "flags", r
->flags
);
59 static enum ndr_err_code
ndr_push_PNP_Disconnect(struct ndr_push
*ndr
, int flags
, const struct PNP_Disconnect
*r
)
63 if (flags
& NDR_OUT
) {
64 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
66 return NDR_ERR_SUCCESS
;
69 static enum ndr_err_code
ndr_pull_PNP_Disconnect(struct ndr_pull
*ndr
, int flags
, struct PNP_Disconnect
*r
)
73 if (flags
& NDR_OUT
) {
74 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
76 return NDR_ERR_SUCCESS
;
79 _PUBLIC_
void ndr_print_PNP_Disconnect(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_Disconnect
*r
)
81 ndr_print_struct(ndr
, name
, "PNP_Disconnect");
83 if (flags
& NDR_SET_VALUES
) {
84 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
87 ndr_print_struct(ndr
, "in", "PNP_Disconnect");
91 if (flags
& NDR_OUT
) {
92 ndr_print_struct(ndr
, "out", "PNP_Disconnect");
94 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
100 static enum ndr_err_code
ndr_push_PNP_Connect(struct ndr_push
*ndr
, int flags
, const struct PNP_Connect
*r
)
102 if (flags
& NDR_IN
) {
104 if (flags
& NDR_OUT
) {
105 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
107 return NDR_ERR_SUCCESS
;
110 static enum ndr_err_code
ndr_pull_PNP_Connect(struct ndr_pull
*ndr
, int flags
, struct PNP_Connect
*r
)
112 if (flags
& NDR_IN
) {
114 if (flags
& NDR_OUT
) {
115 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
117 return NDR_ERR_SUCCESS
;
120 _PUBLIC_
void ndr_print_PNP_Connect(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_Connect
*r
)
122 ndr_print_struct(ndr
, name
, "PNP_Connect");
124 if (flags
& NDR_SET_VALUES
) {
125 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
127 if (flags
& NDR_IN
) {
128 ndr_print_struct(ndr
, "in", "PNP_Connect");
132 if (flags
& NDR_OUT
) {
133 ndr_print_struct(ndr
, "out", "PNP_Connect");
135 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
141 static enum ndr_err_code
ndr_push_PNP_GetVersion(struct ndr_push
*ndr
, int flags
, const struct PNP_GetVersion
*r
)
143 if (flags
& NDR_IN
) {
145 if (flags
& NDR_OUT
) {
146 if (r
->out
.version
== NULL
) {
147 return ndr_push_error(ndr
, NDR_ERR_INVALID_POINTER
, "NULL [ref] pointer");
149 NDR_CHECK(ndr_push_uint16(ndr
, NDR_SCALARS
, *r
->out
.version
));
150 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
152 return NDR_ERR_SUCCESS
;
155 static enum ndr_err_code
ndr_pull_PNP_GetVersion(struct ndr_pull
*ndr
, int flags
, struct PNP_GetVersion
*r
)
157 TALLOC_CTX
*_mem_save_version_0
;
158 if (flags
& NDR_IN
) {
161 NDR_PULL_ALLOC(ndr
, r
->out
.version
);
162 ZERO_STRUCTP(r
->out
.version
);
164 if (flags
& NDR_OUT
) {
165 if (ndr
->flags
& LIBNDR_FLAG_REF_ALLOC
) {
166 NDR_PULL_ALLOC(ndr
, r
->out
.version
);
168 _mem_save_version_0
= NDR_PULL_GET_MEM_CTX(ndr
);
169 NDR_PULL_SET_MEM_CTX(ndr
, r
->out
.version
, LIBNDR_FLAG_REF_ALLOC
);
170 NDR_CHECK(ndr_pull_uint16(ndr
, NDR_SCALARS
, r
->out
.version
));
171 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_version_0
, LIBNDR_FLAG_REF_ALLOC
);
172 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
174 return NDR_ERR_SUCCESS
;
177 _PUBLIC_
void ndr_print_PNP_GetVersion(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetVersion
*r
)
179 ndr_print_struct(ndr
, name
, "PNP_GetVersion");
181 if (flags
& NDR_SET_VALUES
) {
182 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
184 if (flags
& NDR_IN
) {
185 ndr_print_struct(ndr
, "in", "PNP_GetVersion");
189 if (flags
& NDR_OUT
) {
190 ndr_print_struct(ndr
, "out", "PNP_GetVersion");
192 ndr_print_ptr(ndr
, "version", r
->out
.version
);
194 ndr_print_uint16(ndr
, "version", *r
->out
.version
);
196 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
202 static enum ndr_err_code
ndr_push_PNP_GetGlobalState(struct ndr_push
*ndr
, int flags
, const struct PNP_GetGlobalState
*r
)
204 if (flags
& NDR_IN
) {
206 if (flags
& NDR_OUT
) {
207 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
209 return NDR_ERR_SUCCESS
;
212 static enum ndr_err_code
ndr_pull_PNP_GetGlobalState(struct ndr_pull
*ndr
, int flags
, struct PNP_GetGlobalState
*r
)
214 if (flags
& NDR_IN
) {
216 if (flags
& NDR_OUT
) {
217 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
219 return NDR_ERR_SUCCESS
;
222 _PUBLIC_
void ndr_print_PNP_GetGlobalState(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetGlobalState
*r
)
224 ndr_print_struct(ndr
, name
, "PNP_GetGlobalState");
226 if (flags
& NDR_SET_VALUES
) {
227 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
229 if (flags
& NDR_IN
) {
230 ndr_print_struct(ndr
, "in", "PNP_GetGlobalState");
234 if (flags
& NDR_OUT
) {
235 ndr_print_struct(ndr
, "out", "PNP_GetGlobalState");
237 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
243 static enum ndr_err_code
ndr_push_PNP_InitDetection(struct ndr_push
*ndr
, int flags
, const struct PNP_InitDetection
*r
)
245 if (flags
& NDR_IN
) {
247 if (flags
& NDR_OUT
) {
248 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
250 return NDR_ERR_SUCCESS
;
253 static enum ndr_err_code
ndr_pull_PNP_InitDetection(struct ndr_pull
*ndr
, int flags
, struct PNP_InitDetection
*r
)
255 if (flags
& NDR_IN
) {
257 if (flags
& NDR_OUT
) {
258 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
260 return NDR_ERR_SUCCESS
;
263 _PUBLIC_
void ndr_print_PNP_InitDetection(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_InitDetection
*r
)
265 ndr_print_struct(ndr
, name
, "PNP_InitDetection");
267 if (flags
& NDR_SET_VALUES
) {
268 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
270 if (flags
& NDR_IN
) {
271 ndr_print_struct(ndr
, "in", "PNP_InitDetection");
275 if (flags
& NDR_OUT
) {
276 ndr_print_struct(ndr
, "out", "PNP_InitDetection");
278 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
284 static enum ndr_err_code
ndr_push_PNP_ReportLogOn(struct ndr_push
*ndr
, int flags
, const struct PNP_ReportLogOn
*r
)
286 if (flags
& NDR_IN
) {
288 if (flags
& NDR_OUT
) {
289 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
291 return NDR_ERR_SUCCESS
;
294 static enum ndr_err_code
ndr_pull_PNP_ReportLogOn(struct ndr_pull
*ndr
, int flags
, struct PNP_ReportLogOn
*r
)
296 if (flags
& NDR_IN
) {
298 if (flags
& NDR_OUT
) {
299 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
301 return NDR_ERR_SUCCESS
;
304 _PUBLIC_
void ndr_print_PNP_ReportLogOn(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_ReportLogOn
*r
)
306 ndr_print_struct(ndr
, name
, "PNP_ReportLogOn");
308 if (flags
& NDR_SET_VALUES
) {
309 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
311 if (flags
& NDR_IN
) {
312 ndr_print_struct(ndr
, "in", "PNP_ReportLogOn");
316 if (flags
& NDR_OUT
) {
317 ndr_print_struct(ndr
, "out", "PNP_ReportLogOn");
319 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
325 static enum ndr_err_code
ndr_push_PNP_ValidateDeviceInstance(struct ndr_push
*ndr
, int flags
, const struct PNP_ValidateDeviceInstance
*r
)
327 if (flags
& NDR_IN
) {
328 if (r
->in
.devicepath
== NULL
) {
329 return ndr_push_error(ndr
, NDR_ERR_INVALID_POINTER
, "NULL [ref] pointer");
331 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, ndr_charset_length(r
->in
.devicepath
, CH_UTF16
)));
332 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, 0));
333 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, ndr_charset_length(r
->in
.devicepath
, CH_UTF16
)));
334 NDR_CHECK(ndr_push_charset(ndr
, NDR_SCALARS
, r
->in
.devicepath
, ndr_charset_length(r
->in
.devicepath
, CH_UTF16
), sizeof(uint16_t), CH_UTF16
));
335 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, r
->in
.flags
));
337 if (flags
& NDR_OUT
) {
338 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
340 return NDR_ERR_SUCCESS
;
343 static enum ndr_err_code
ndr_pull_PNP_ValidateDeviceInstance(struct ndr_pull
*ndr
, int flags
, struct PNP_ValidateDeviceInstance
*r
)
345 if (flags
& NDR_IN
) {
346 NDR_CHECK(ndr_pull_array_size(ndr
, &r
->in
.devicepath
));
347 NDR_CHECK(ndr_pull_array_length(ndr
, &r
->in
.devicepath
));
348 if (ndr_get_array_length(ndr
, &r
->in
.devicepath
) > ndr_get_array_size(ndr
, &r
->in
.devicepath
)) {
349 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
));
351 NDR_CHECK(ndr_check_string_terminator(ndr
, ndr_get_array_length(ndr
, &r
->in
.devicepath
), sizeof(uint16_t)));
352 NDR_CHECK(ndr_pull_charset(ndr
, NDR_SCALARS
, &r
->in
.devicepath
, ndr_get_array_length(ndr
, &r
->in
.devicepath
), sizeof(uint16_t), CH_UTF16
));
353 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, &r
->in
.flags
));
355 if (flags
& NDR_OUT
) {
356 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
358 return NDR_ERR_SUCCESS
;
361 _PUBLIC_
void ndr_print_PNP_ValidateDeviceInstance(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_ValidateDeviceInstance
*r
)
363 ndr_print_struct(ndr
, name
, "PNP_ValidateDeviceInstance");
365 if (flags
& NDR_SET_VALUES
) {
366 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
368 if (flags
& NDR_IN
) {
369 ndr_print_struct(ndr
, "in", "PNP_ValidateDeviceInstance");
371 ndr_print_ptr(ndr
, "devicepath", r
->in
.devicepath
);
373 ndr_print_string(ndr
, "devicepath", r
->in
.devicepath
);
375 ndr_print_uint32(ndr
, "flags", r
->in
.flags
);
378 if (flags
& NDR_OUT
) {
379 ndr_print_struct(ndr
, "out", "PNP_ValidateDeviceInstance");
381 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
387 static enum ndr_err_code
ndr_push_PNP_GetRootDeviceInstance(struct ndr_push
*ndr
, int flags
, const struct PNP_GetRootDeviceInstance
*r
)
389 if (flags
& NDR_IN
) {
391 if (flags
& NDR_OUT
) {
392 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
394 return NDR_ERR_SUCCESS
;
397 static enum ndr_err_code
ndr_pull_PNP_GetRootDeviceInstance(struct ndr_pull
*ndr
, int flags
, struct PNP_GetRootDeviceInstance
*r
)
399 if (flags
& NDR_IN
) {
401 if (flags
& NDR_OUT
) {
402 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
404 return NDR_ERR_SUCCESS
;
407 _PUBLIC_
void ndr_print_PNP_GetRootDeviceInstance(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetRootDeviceInstance
*r
)
409 ndr_print_struct(ndr
, name
, "PNP_GetRootDeviceInstance");
411 if (flags
& NDR_SET_VALUES
) {
412 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
414 if (flags
& NDR_IN
) {
415 ndr_print_struct(ndr
, "in", "PNP_GetRootDeviceInstance");
419 if (flags
& NDR_OUT
) {
420 ndr_print_struct(ndr
, "out", "PNP_GetRootDeviceInstance");
422 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
428 static enum ndr_err_code
ndr_push_PNP_GetRelatedDeviceInstance(struct ndr_push
*ndr
, int flags
, const struct PNP_GetRelatedDeviceInstance
*r
)
430 if (flags
& NDR_IN
) {
432 if (flags
& NDR_OUT
) {
433 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
435 return NDR_ERR_SUCCESS
;
438 static enum ndr_err_code
ndr_pull_PNP_GetRelatedDeviceInstance(struct ndr_pull
*ndr
, int flags
, struct PNP_GetRelatedDeviceInstance
*r
)
440 if (flags
& NDR_IN
) {
442 if (flags
& NDR_OUT
) {
443 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
445 return NDR_ERR_SUCCESS
;
448 _PUBLIC_
void ndr_print_PNP_GetRelatedDeviceInstance(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetRelatedDeviceInstance
*r
)
450 ndr_print_struct(ndr
, name
, "PNP_GetRelatedDeviceInstance");
452 if (flags
& NDR_SET_VALUES
) {
453 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
455 if (flags
& NDR_IN
) {
456 ndr_print_struct(ndr
, "in", "PNP_GetRelatedDeviceInstance");
460 if (flags
& NDR_OUT
) {
461 ndr_print_struct(ndr
, "out", "PNP_GetRelatedDeviceInstance");
463 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
469 static enum ndr_err_code
ndr_push_PNP_EnumerateSubKeys(struct ndr_push
*ndr
, int flags
, const struct PNP_EnumerateSubKeys
*r
)
471 if (flags
& NDR_IN
) {
473 if (flags
& NDR_OUT
) {
474 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
476 return NDR_ERR_SUCCESS
;
479 static enum ndr_err_code
ndr_pull_PNP_EnumerateSubKeys(struct ndr_pull
*ndr
, int flags
, struct PNP_EnumerateSubKeys
*r
)
481 if (flags
& NDR_IN
) {
483 if (flags
& NDR_OUT
) {
484 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
486 return NDR_ERR_SUCCESS
;
489 _PUBLIC_
void ndr_print_PNP_EnumerateSubKeys(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_EnumerateSubKeys
*r
)
491 ndr_print_struct(ndr
, name
, "PNP_EnumerateSubKeys");
493 if (flags
& NDR_SET_VALUES
) {
494 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
496 if (flags
& NDR_IN
) {
497 ndr_print_struct(ndr
, "in", "PNP_EnumerateSubKeys");
501 if (flags
& NDR_OUT
) {
502 ndr_print_struct(ndr
, "out", "PNP_EnumerateSubKeys");
504 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
510 static enum ndr_err_code
ndr_push_PNP_GetDeviceList(struct ndr_push
*ndr
, int flags
, const struct PNP_GetDeviceList
*r
)
512 uint32_t cntr_buffer_1
;
513 if (flags
& NDR_IN
) {
514 NDR_CHECK(ndr_push_unique_ptr(ndr
, r
->in
.filter
));
516 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, ndr_charset_length(r
->in
.filter
, CH_UTF16
)));
517 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, 0));
518 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, ndr_charset_length(r
->in
.filter
, CH_UTF16
)));
519 NDR_CHECK(ndr_push_charset(ndr
, NDR_SCALARS
, r
->in
.filter
, ndr_charset_length(r
->in
.filter
, CH_UTF16
), sizeof(uint16_t), CH_UTF16
));
521 if (r
->in
.length
== NULL
) {
522 return ndr_push_error(ndr
, NDR_ERR_INVALID_POINTER
, "NULL [ref] pointer");
524 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, *r
->in
.length
));
525 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, r
->in
.flags
));
527 if (flags
& NDR_OUT
) {
528 if (r
->out
.buffer
== NULL
) {
529 return ndr_push_error(ndr
, NDR_ERR_INVALID_POINTER
, "NULL [ref] pointer");
531 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, *r
->out
.length
));
532 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, 0));
533 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, *r
->out
.length
));
534 for (cntr_buffer_1
= 0; cntr_buffer_1
< *r
->out
.length
; cntr_buffer_1
++) {
535 NDR_CHECK(ndr_push_uint16(ndr
, NDR_SCALARS
, r
->out
.buffer
[cntr_buffer_1
]));
537 if (r
->out
.length
== NULL
) {
538 return ndr_push_error(ndr
, NDR_ERR_INVALID_POINTER
, "NULL [ref] pointer");
540 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, *r
->out
.length
));
541 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
543 return NDR_ERR_SUCCESS
;
546 static enum ndr_err_code
ndr_pull_PNP_GetDeviceList(struct ndr_pull
*ndr
, int flags
, struct PNP_GetDeviceList
*r
)
548 uint32_t _ptr_filter
;
549 uint32_t cntr_buffer_1
;
550 TALLOC_CTX
*_mem_save_filter_0
;
551 TALLOC_CTX
*_mem_save_buffer_1
;
552 TALLOC_CTX
*_mem_save_length_0
;
553 if (flags
& NDR_IN
) {
556 NDR_CHECK(ndr_pull_generic_ptr(ndr
, &_ptr_filter
));
558 NDR_PULL_ALLOC(ndr
, r
->in
.filter
);
563 _mem_save_filter_0
= NDR_PULL_GET_MEM_CTX(ndr
);
564 NDR_PULL_SET_MEM_CTX(ndr
, r
->in
.filter
, 0);
565 NDR_CHECK(ndr_pull_array_size(ndr
, &r
->in
.filter
));
566 NDR_CHECK(ndr_pull_array_length(ndr
, &r
->in
.filter
));
567 if (ndr_get_array_length(ndr
, &r
->in
.filter
) > ndr_get_array_size(ndr
, &r
->in
.filter
)) {
568 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
));
570 NDR_CHECK(ndr_check_string_terminator(ndr
, ndr_get_array_length(ndr
, &r
->in
.filter
), sizeof(uint16_t)));
571 NDR_CHECK(ndr_pull_charset(ndr
, NDR_SCALARS
, &r
->in
.filter
, ndr_get_array_length(ndr
, &r
->in
.filter
), sizeof(uint16_t), CH_UTF16
));
572 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_filter_0
, 0);
574 if (ndr
->flags
& LIBNDR_FLAG_REF_ALLOC
) {
575 NDR_PULL_ALLOC(ndr
, r
->in
.length
);
577 _mem_save_length_0
= NDR_PULL_GET_MEM_CTX(ndr
);
578 NDR_PULL_SET_MEM_CTX(ndr
, r
->in
.length
, LIBNDR_FLAG_REF_ALLOC
);
579 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, r
->in
.length
));
580 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_length_0
, LIBNDR_FLAG_REF_ALLOC
);
581 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, &r
->in
.flags
));
582 NDR_PULL_ALLOC_N(ndr
, r
->out
.buffer
, *r
->in
.length
);
583 memset(CONST_DISCARD(struct PNP_GetDeviceList
*,r
->out
.buffer
), 0, (*r
->in
.length
) * sizeof(*r
->out
.buffer
));
584 NDR_PULL_ALLOC(ndr
, r
->out
.length
);
585 *r
->out
.length
= *r
->in
.length
;
587 if (flags
& NDR_OUT
) {
588 NDR_CHECK(ndr_pull_array_size(ndr
, &r
->out
.buffer
));
589 NDR_CHECK(ndr_pull_array_length(ndr
, &r
->out
.buffer
));
590 if (ndr_get_array_length(ndr
, &r
->out
.buffer
) > ndr_get_array_size(ndr
, &r
->out
.buffer
)) {
591 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
));
593 if (ndr
->flags
& LIBNDR_FLAG_REF_ALLOC
) {
594 NDR_PULL_ALLOC_N(ndr
, r
->out
.buffer
, ndr_get_array_size(ndr
, &r
->out
.buffer
));
596 _mem_save_buffer_1
= NDR_PULL_GET_MEM_CTX(ndr
);
597 NDR_PULL_SET_MEM_CTX(ndr
, r
->out
.buffer
, 0);
598 for (cntr_buffer_1
= 0; cntr_buffer_1
< *r
->out
.length
; cntr_buffer_1
++) {
599 NDR_CHECK(ndr_pull_uint16(ndr
, NDR_SCALARS
, &r
->out
.buffer
[cntr_buffer_1
]));
601 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_buffer_1
, 0);
602 if (ndr
->flags
& LIBNDR_FLAG_REF_ALLOC
) {
603 NDR_PULL_ALLOC(ndr
, r
->out
.length
);
605 _mem_save_length_0
= NDR_PULL_GET_MEM_CTX(ndr
);
606 NDR_PULL_SET_MEM_CTX(ndr
, r
->out
.length
, LIBNDR_FLAG_REF_ALLOC
);
607 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, r
->out
.length
));
608 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_length_0
, LIBNDR_FLAG_REF_ALLOC
);
609 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
611 NDR_CHECK(ndr_check_array_size(ndr
, (void*)&r
->out
.buffer
, *r
->out
.length
));
614 NDR_CHECK(ndr_check_array_length(ndr
, (void*)&r
->out
.buffer
, *r
->out
.length
));
617 return NDR_ERR_SUCCESS
;
620 _PUBLIC_
void ndr_print_PNP_GetDeviceList(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetDeviceList
*r
)
622 uint32_t cntr_buffer_1
;
623 ndr_print_struct(ndr
, name
, "PNP_GetDeviceList");
625 if (flags
& NDR_SET_VALUES
) {
626 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
628 if (flags
& NDR_IN
) {
629 ndr_print_struct(ndr
, "in", "PNP_GetDeviceList");
631 ndr_print_ptr(ndr
, "filter", r
->in
.filter
);
634 ndr_print_string(ndr
, "filter", r
->in
.filter
);
637 ndr_print_ptr(ndr
, "length", r
->in
.length
);
639 ndr_print_uint32(ndr
, "length", *r
->in
.length
);
641 ndr_print_uint32(ndr
, "flags", r
->in
.flags
);
644 if (flags
& NDR_OUT
) {
645 ndr_print_struct(ndr
, "out", "PNP_GetDeviceList");
647 ndr_print_ptr(ndr
, "buffer", r
->out
.buffer
);
649 ndr
->print(ndr
, "%s: ARRAY(%d)", "buffer", (int)*r
->out
.length
);
651 for (cntr_buffer_1
=0;cntr_buffer_1
<*r
->out
.length
;cntr_buffer_1
++) {
653 if (asprintf(&idx_1
, "[%d]", cntr_buffer_1
) != -1) {
654 ndr_print_uint16(ndr
, "buffer", r
->out
.buffer
[cntr_buffer_1
]);
660 ndr_print_ptr(ndr
, "length", r
->out
.length
);
662 ndr_print_uint32(ndr
, "length", *r
->out
.length
);
664 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
670 static enum ndr_err_code
ndr_push_PNP_GetDeviceListSize(struct ndr_push
*ndr
, int flags
, const struct PNP_GetDeviceListSize
*r
)
672 if (flags
& NDR_IN
) {
673 NDR_CHECK(ndr_push_unique_ptr(ndr
, r
->in
.devicename
));
674 if (r
->in
.devicename
) {
675 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, ndr_charset_length(r
->in
.devicename
, CH_UTF16
)));
676 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, 0));
677 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, ndr_charset_length(r
->in
.devicename
, CH_UTF16
)));
678 NDR_CHECK(ndr_push_charset(ndr
, NDR_SCALARS
, r
->in
.devicename
, ndr_charset_length(r
->in
.devicename
, CH_UTF16
), sizeof(uint16_t), CH_UTF16
));
680 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, r
->in
.flags
));
682 if (flags
& NDR_OUT
) {
683 if (r
->out
.size
== NULL
) {
684 return ndr_push_error(ndr
, NDR_ERR_INVALID_POINTER
, "NULL [ref] pointer");
686 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, *r
->out
.size
));
687 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
689 return NDR_ERR_SUCCESS
;
692 static enum ndr_err_code
ndr_pull_PNP_GetDeviceListSize(struct ndr_pull
*ndr
, int flags
, struct PNP_GetDeviceListSize
*r
)
694 uint32_t _ptr_devicename
;
695 TALLOC_CTX
*_mem_save_devicename_0
;
696 TALLOC_CTX
*_mem_save_size_0
;
697 if (flags
& NDR_IN
) {
700 NDR_CHECK(ndr_pull_generic_ptr(ndr
, &_ptr_devicename
));
701 if (_ptr_devicename
) {
702 NDR_PULL_ALLOC(ndr
, r
->in
.devicename
);
704 r
->in
.devicename
= NULL
;
706 if (r
->in
.devicename
) {
707 _mem_save_devicename_0
= NDR_PULL_GET_MEM_CTX(ndr
);
708 NDR_PULL_SET_MEM_CTX(ndr
, r
->in
.devicename
, 0);
709 NDR_CHECK(ndr_pull_array_size(ndr
, &r
->in
.devicename
));
710 NDR_CHECK(ndr_pull_array_length(ndr
, &r
->in
.devicename
));
711 if (ndr_get_array_length(ndr
, &r
->in
.devicename
) > ndr_get_array_size(ndr
, &r
->in
.devicename
)) {
712 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
));
714 NDR_CHECK(ndr_check_string_terminator(ndr
, ndr_get_array_length(ndr
, &r
->in
.devicename
), sizeof(uint16_t)));
715 NDR_CHECK(ndr_pull_charset(ndr
, NDR_SCALARS
, &r
->in
.devicename
, ndr_get_array_length(ndr
, &r
->in
.devicename
), sizeof(uint16_t), CH_UTF16
));
716 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_devicename_0
, 0);
718 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, &r
->in
.flags
));
719 NDR_PULL_ALLOC(ndr
, r
->out
.size
);
720 ZERO_STRUCTP(r
->out
.size
);
722 if (flags
& NDR_OUT
) {
723 if (ndr
->flags
& LIBNDR_FLAG_REF_ALLOC
) {
724 NDR_PULL_ALLOC(ndr
, r
->out
.size
);
726 _mem_save_size_0
= NDR_PULL_GET_MEM_CTX(ndr
);
727 NDR_PULL_SET_MEM_CTX(ndr
, r
->out
.size
, LIBNDR_FLAG_REF_ALLOC
);
728 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, r
->out
.size
));
729 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_size_0
, LIBNDR_FLAG_REF_ALLOC
);
730 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
732 return NDR_ERR_SUCCESS
;
735 _PUBLIC_
void ndr_print_PNP_GetDeviceListSize(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetDeviceListSize
*r
)
737 ndr_print_struct(ndr
, name
, "PNP_GetDeviceListSize");
739 if (flags
& NDR_SET_VALUES
) {
740 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
742 if (flags
& NDR_IN
) {
743 ndr_print_struct(ndr
, "in", "PNP_GetDeviceListSize");
745 ndr_print_ptr(ndr
, "devicename", r
->in
.devicename
);
747 if (r
->in
.devicename
) {
748 ndr_print_string(ndr
, "devicename", r
->in
.devicename
);
751 ndr_print_uint32(ndr
, "flags", r
->in
.flags
);
754 if (flags
& NDR_OUT
) {
755 ndr_print_struct(ndr
, "out", "PNP_GetDeviceListSize");
757 ndr_print_ptr(ndr
, "size", r
->out
.size
);
759 ndr_print_uint32(ndr
, "size", *r
->out
.size
);
761 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
767 static enum ndr_err_code
ndr_push_PNP_GetDepth(struct ndr_push
*ndr
, int flags
, const struct PNP_GetDepth
*r
)
769 if (flags
& NDR_IN
) {
771 if (flags
& NDR_OUT
) {
772 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
774 return NDR_ERR_SUCCESS
;
777 static enum ndr_err_code
ndr_pull_PNP_GetDepth(struct ndr_pull
*ndr
, int flags
, struct PNP_GetDepth
*r
)
779 if (flags
& NDR_IN
) {
781 if (flags
& NDR_OUT
) {
782 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
784 return NDR_ERR_SUCCESS
;
787 _PUBLIC_
void ndr_print_PNP_GetDepth(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetDepth
*r
)
789 ndr_print_struct(ndr
, name
, "PNP_GetDepth");
791 if (flags
& NDR_SET_VALUES
) {
792 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
794 if (flags
& NDR_IN
) {
795 ndr_print_struct(ndr
, "in", "PNP_GetDepth");
799 if (flags
& NDR_OUT
) {
800 ndr_print_struct(ndr
, "out", "PNP_GetDepth");
802 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
808 static enum ndr_err_code
ndr_push_PNP_GetDeviceRegProp(struct ndr_push
*ndr
, int flags
, const struct PNP_GetDeviceRegProp
*r
)
810 if (flags
& NDR_IN
) {
811 if (r
->in
.devicepath
== NULL
) {
812 return ndr_push_error(ndr
, NDR_ERR_INVALID_POINTER
, "NULL [ref] pointer");
814 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, ndr_charset_length(r
->in
.devicepath
, CH_UTF16
)));
815 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, 0));
816 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, ndr_charset_length(r
->in
.devicepath
, CH_UTF16
)));
817 NDR_CHECK(ndr_push_charset(ndr
, NDR_SCALARS
, r
->in
.devicepath
, ndr_charset_length(r
->in
.devicepath
, CH_UTF16
), sizeof(uint16_t), CH_UTF16
));
818 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, r
->in
.property
));
819 if (r
->in
.reg_data_type
== NULL
) {
820 return ndr_push_error(ndr
, NDR_ERR_INVALID_POINTER
, "NULL [ref] pointer");
822 NDR_CHECK(ndr_push_winreg_Type(ndr
, NDR_SCALARS
, *r
->in
.reg_data_type
));
823 if (r
->in
.buffer_size
== NULL
) {
824 return ndr_push_error(ndr
, NDR_ERR_INVALID_POINTER
, "NULL [ref] pointer");
826 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, *r
->in
.buffer_size
));
827 if (r
->in
.needed
== NULL
) {
828 return ndr_push_error(ndr
, NDR_ERR_INVALID_POINTER
, "NULL [ref] pointer");
830 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, *r
->in
.needed
));
831 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, r
->in
.flags
));
833 if (flags
& NDR_OUT
) {
834 if (r
->out
.reg_data_type
== NULL
) {
835 return ndr_push_error(ndr
, NDR_ERR_INVALID_POINTER
, "NULL [ref] pointer");
837 NDR_CHECK(ndr_push_winreg_Type(ndr
, NDR_SCALARS
, *r
->out
.reg_data_type
));
838 if (r
->out
.buffer
== NULL
) {
839 return ndr_push_error(ndr
, NDR_ERR_INVALID_POINTER
, "NULL [ref] pointer");
841 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, *r
->out
.buffer_size
));
842 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, 0));
843 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, *r
->out
.buffer_size
));
844 NDR_CHECK(ndr_push_array_uint8(ndr
, NDR_SCALARS
, r
->out
.buffer
, *r
->out
.buffer_size
));
845 if (r
->out
.buffer_size
== NULL
) {
846 return ndr_push_error(ndr
, NDR_ERR_INVALID_POINTER
, "NULL [ref] pointer");
848 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, *r
->out
.buffer_size
));
849 if (r
->out
.needed
== NULL
) {
850 return ndr_push_error(ndr
, NDR_ERR_INVALID_POINTER
, "NULL [ref] pointer");
852 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, *r
->out
.needed
));
853 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
855 return NDR_ERR_SUCCESS
;
858 static enum ndr_err_code
ndr_pull_PNP_GetDeviceRegProp(struct ndr_pull
*ndr
, int flags
, struct PNP_GetDeviceRegProp
*r
)
860 TALLOC_CTX
*_mem_save_reg_data_type_0
;
861 TALLOC_CTX
*_mem_save_buffer_size_0
;
862 TALLOC_CTX
*_mem_save_needed_0
;
863 if (flags
& NDR_IN
) {
866 NDR_CHECK(ndr_pull_array_size(ndr
, &r
->in
.devicepath
));
867 NDR_CHECK(ndr_pull_array_length(ndr
, &r
->in
.devicepath
));
868 if (ndr_get_array_length(ndr
, &r
->in
.devicepath
) > ndr_get_array_size(ndr
, &r
->in
.devicepath
)) {
869 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
));
871 NDR_CHECK(ndr_check_string_terminator(ndr
, ndr_get_array_length(ndr
, &r
->in
.devicepath
), sizeof(uint16_t)));
872 NDR_CHECK(ndr_pull_charset(ndr
, NDR_SCALARS
, &r
->in
.devicepath
, ndr_get_array_length(ndr
, &r
->in
.devicepath
), sizeof(uint16_t), CH_UTF16
));
873 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, &r
->in
.property
));
874 if (ndr
->flags
& LIBNDR_FLAG_REF_ALLOC
) {
875 NDR_PULL_ALLOC(ndr
, r
->in
.reg_data_type
);
877 _mem_save_reg_data_type_0
= NDR_PULL_GET_MEM_CTX(ndr
);
878 NDR_PULL_SET_MEM_CTX(ndr
, r
->in
.reg_data_type
, LIBNDR_FLAG_REF_ALLOC
);
879 NDR_CHECK(ndr_pull_winreg_Type(ndr
, NDR_SCALARS
, r
->in
.reg_data_type
));
880 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_reg_data_type_0
, LIBNDR_FLAG_REF_ALLOC
);
881 if (ndr
->flags
& LIBNDR_FLAG_REF_ALLOC
) {
882 NDR_PULL_ALLOC(ndr
, r
->in
.buffer_size
);
884 _mem_save_buffer_size_0
= NDR_PULL_GET_MEM_CTX(ndr
);
885 NDR_PULL_SET_MEM_CTX(ndr
, r
->in
.buffer_size
, LIBNDR_FLAG_REF_ALLOC
);
886 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, r
->in
.buffer_size
));
887 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_buffer_size_0
, LIBNDR_FLAG_REF_ALLOC
);
888 if (ndr
->flags
& LIBNDR_FLAG_REF_ALLOC
) {
889 NDR_PULL_ALLOC(ndr
, r
->in
.needed
);
891 _mem_save_needed_0
= NDR_PULL_GET_MEM_CTX(ndr
);
892 NDR_PULL_SET_MEM_CTX(ndr
, r
->in
.needed
, LIBNDR_FLAG_REF_ALLOC
);
893 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, r
->in
.needed
));
894 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_needed_0
, LIBNDR_FLAG_REF_ALLOC
);
895 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, &r
->in
.flags
));
896 NDR_PULL_ALLOC(ndr
, r
->out
.reg_data_type
);
897 *r
->out
.reg_data_type
= *r
->in
.reg_data_type
;
898 NDR_PULL_ALLOC_N(ndr
, r
->out
.buffer
, *r
->in
.buffer_size
);
899 memset(CONST_DISCARD(struct PNP_GetDeviceRegProp
*,r
->out
.buffer
), 0, (*r
->in
.buffer_size
) * sizeof(*r
->out
.buffer
));
900 NDR_PULL_ALLOC(ndr
, r
->out
.buffer_size
);
901 *r
->out
.buffer_size
= *r
->in
.buffer_size
;
902 NDR_PULL_ALLOC(ndr
, r
->out
.needed
);
903 *r
->out
.needed
= *r
->in
.needed
;
905 if (flags
& NDR_OUT
) {
906 if (ndr
->flags
& LIBNDR_FLAG_REF_ALLOC
) {
907 NDR_PULL_ALLOC(ndr
, r
->out
.reg_data_type
);
909 _mem_save_reg_data_type_0
= NDR_PULL_GET_MEM_CTX(ndr
);
910 NDR_PULL_SET_MEM_CTX(ndr
, r
->out
.reg_data_type
, LIBNDR_FLAG_REF_ALLOC
);
911 NDR_CHECK(ndr_pull_winreg_Type(ndr
, NDR_SCALARS
, r
->out
.reg_data_type
));
912 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_reg_data_type_0
, LIBNDR_FLAG_REF_ALLOC
);
913 NDR_CHECK(ndr_pull_array_size(ndr
, &r
->out
.buffer
));
914 NDR_CHECK(ndr_pull_array_length(ndr
, &r
->out
.buffer
));
915 if (ndr_get_array_length(ndr
, &r
->out
.buffer
) > ndr_get_array_size(ndr
, &r
->out
.buffer
)) {
916 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
));
918 if (ndr
->flags
& LIBNDR_FLAG_REF_ALLOC
) {
919 NDR_PULL_ALLOC_N(ndr
, r
->out
.buffer
, ndr_get_array_size(ndr
, &r
->out
.buffer
));
921 NDR_CHECK(ndr_pull_array_uint8(ndr
, NDR_SCALARS
, r
->out
.buffer
, ndr_get_array_length(ndr
, &r
->out
.buffer
)));
922 if (ndr
->flags
& LIBNDR_FLAG_REF_ALLOC
) {
923 NDR_PULL_ALLOC(ndr
, r
->out
.buffer_size
);
925 _mem_save_buffer_size_0
= NDR_PULL_GET_MEM_CTX(ndr
);
926 NDR_PULL_SET_MEM_CTX(ndr
, r
->out
.buffer_size
, LIBNDR_FLAG_REF_ALLOC
);
927 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, r
->out
.buffer_size
));
928 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_buffer_size_0
, LIBNDR_FLAG_REF_ALLOC
);
929 if (ndr
->flags
& LIBNDR_FLAG_REF_ALLOC
) {
930 NDR_PULL_ALLOC(ndr
, r
->out
.needed
);
932 _mem_save_needed_0
= NDR_PULL_GET_MEM_CTX(ndr
);
933 NDR_PULL_SET_MEM_CTX(ndr
, r
->out
.needed
, LIBNDR_FLAG_REF_ALLOC
);
934 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, r
->out
.needed
));
935 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_needed_0
, LIBNDR_FLAG_REF_ALLOC
);
936 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
938 NDR_CHECK(ndr_check_array_size(ndr
, (void*)&r
->out
.buffer
, *r
->out
.buffer_size
));
941 NDR_CHECK(ndr_check_array_length(ndr
, (void*)&r
->out
.buffer
, *r
->out
.buffer_size
));
944 return NDR_ERR_SUCCESS
;
947 _PUBLIC_
void ndr_print_PNP_GetDeviceRegProp(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetDeviceRegProp
*r
)
949 ndr_print_struct(ndr
, name
, "PNP_GetDeviceRegProp");
951 if (flags
& NDR_SET_VALUES
) {
952 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
954 if (flags
& NDR_IN
) {
955 ndr_print_struct(ndr
, "in", "PNP_GetDeviceRegProp");
957 ndr_print_ptr(ndr
, "devicepath", r
->in
.devicepath
);
959 ndr_print_string(ndr
, "devicepath", r
->in
.devicepath
);
961 ndr_print_uint32(ndr
, "property", r
->in
.property
);
962 ndr_print_ptr(ndr
, "reg_data_type", r
->in
.reg_data_type
);
964 ndr_print_winreg_Type(ndr
, "reg_data_type", *r
->in
.reg_data_type
);
966 ndr_print_ptr(ndr
, "buffer_size", r
->in
.buffer_size
);
968 ndr_print_uint32(ndr
, "buffer_size", *r
->in
.buffer_size
);
970 ndr_print_ptr(ndr
, "needed", r
->in
.needed
);
972 ndr_print_uint32(ndr
, "needed", *r
->in
.needed
);
974 ndr_print_uint32(ndr
, "flags", r
->in
.flags
);
977 if (flags
& NDR_OUT
) {
978 ndr_print_struct(ndr
, "out", "PNP_GetDeviceRegProp");
980 ndr_print_ptr(ndr
, "reg_data_type", r
->out
.reg_data_type
);
982 ndr_print_winreg_Type(ndr
, "reg_data_type", *r
->out
.reg_data_type
);
984 ndr_print_ptr(ndr
, "buffer", r
->out
.buffer
);
986 ndr_print_array_uint8(ndr
, "buffer", r
->out
.buffer
, *r
->out
.buffer_size
);
988 ndr_print_ptr(ndr
, "buffer_size", r
->out
.buffer_size
);
990 ndr_print_uint32(ndr
, "buffer_size", *r
->out
.buffer_size
);
992 ndr_print_ptr(ndr
, "needed", r
->out
.needed
);
994 ndr_print_uint32(ndr
, "needed", *r
->out
.needed
);
996 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1002 static enum ndr_err_code
ndr_push_PNP_SetDeviceRegProp(struct ndr_push
*ndr
, int flags
, const struct PNP_SetDeviceRegProp
*r
)
1004 if (flags
& NDR_IN
) {
1006 if (flags
& NDR_OUT
) {
1007 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1009 return NDR_ERR_SUCCESS
;
1012 static enum ndr_err_code
ndr_pull_PNP_SetDeviceRegProp(struct ndr_pull
*ndr
, int flags
, struct PNP_SetDeviceRegProp
*r
)
1014 if (flags
& NDR_IN
) {
1016 if (flags
& NDR_OUT
) {
1017 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1019 return NDR_ERR_SUCCESS
;
1022 _PUBLIC_
void ndr_print_PNP_SetDeviceRegProp(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_SetDeviceRegProp
*r
)
1024 ndr_print_struct(ndr
, name
, "PNP_SetDeviceRegProp");
1026 if (flags
& NDR_SET_VALUES
) {
1027 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1029 if (flags
& NDR_IN
) {
1030 ndr_print_struct(ndr
, "in", "PNP_SetDeviceRegProp");
1034 if (flags
& NDR_OUT
) {
1035 ndr_print_struct(ndr
, "out", "PNP_SetDeviceRegProp");
1037 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1043 static enum ndr_err_code
ndr_push_PNP_GetClassInstance(struct ndr_push
*ndr
, int flags
, const struct PNP_GetClassInstance
*r
)
1045 if (flags
& NDR_IN
) {
1047 if (flags
& NDR_OUT
) {
1048 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1050 return NDR_ERR_SUCCESS
;
1053 static enum ndr_err_code
ndr_pull_PNP_GetClassInstance(struct ndr_pull
*ndr
, int flags
, struct PNP_GetClassInstance
*r
)
1055 if (flags
& NDR_IN
) {
1057 if (flags
& NDR_OUT
) {
1058 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1060 return NDR_ERR_SUCCESS
;
1063 _PUBLIC_
void ndr_print_PNP_GetClassInstance(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetClassInstance
*r
)
1065 ndr_print_struct(ndr
, name
, "PNP_GetClassInstance");
1067 if (flags
& NDR_SET_VALUES
) {
1068 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1070 if (flags
& NDR_IN
) {
1071 ndr_print_struct(ndr
, "in", "PNP_GetClassInstance");
1075 if (flags
& NDR_OUT
) {
1076 ndr_print_struct(ndr
, "out", "PNP_GetClassInstance");
1078 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1084 static enum ndr_err_code
ndr_push_PNP_CreateKey(struct ndr_push
*ndr
, int flags
, const struct PNP_CreateKey
*r
)
1086 if (flags
& NDR_IN
) {
1088 if (flags
& NDR_OUT
) {
1089 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1091 return NDR_ERR_SUCCESS
;
1094 static enum ndr_err_code
ndr_pull_PNP_CreateKey(struct ndr_pull
*ndr
, int flags
, struct PNP_CreateKey
*r
)
1096 if (flags
& NDR_IN
) {
1098 if (flags
& NDR_OUT
) {
1099 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1101 return NDR_ERR_SUCCESS
;
1104 _PUBLIC_
void ndr_print_PNP_CreateKey(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_CreateKey
*r
)
1106 ndr_print_struct(ndr
, name
, "PNP_CreateKey");
1108 if (flags
& NDR_SET_VALUES
) {
1109 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1111 if (flags
& NDR_IN
) {
1112 ndr_print_struct(ndr
, "in", "PNP_CreateKey");
1116 if (flags
& NDR_OUT
) {
1117 ndr_print_struct(ndr
, "out", "PNP_CreateKey");
1119 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1125 static enum ndr_err_code
ndr_push_PNP_DeleteRegistryKey(struct ndr_push
*ndr
, int flags
, const struct PNP_DeleteRegistryKey
*r
)
1127 if (flags
& NDR_IN
) {
1129 if (flags
& NDR_OUT
) {
1130 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1132 return NDR_ERR_SUCCESS
;
1135 static enum ndr_err_code
ndr_pull_PNP_DeleteRegistryKey(struct ndr_pull
*ndr
, int flags
, struct PNP_DeleteRegistryKey
*r
)
1137 if (flags
& NDR_IN
) {
1139 if (flags
& NDR_OUT
) {
1140 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1142 return NDR_ERR_SUCCESS
;
1145 _PUBLIC_
void ndr_print_PNP_DeleteRegistryKey(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_DeleteRegistryKey
*r
)
1147 ndr_print_struct(ndr
, name
, "PNP_DeleteRegistryKey");
1149 if (flags
& NDR_SET_VALUES
) {
1150 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1152 if (flags
& NDR_IN
) {
1153 ndr_print_struct(ndr
, "in", "PNP_DeleteRegistryKey");
1157 if (flags
& NDR_OUT
) {
1158 ndr_print_struct(ndr
, "out", "PNP_DeleteRegistryKey");
1160 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1166 static enum ndr_err_code
ndr_push_PNP_GetClassCount(struct ndr_push
*ndr
, int flags
, const struct PNP_GetClassCount
*r
)
1168 if (flags
& NDR_IN
) {
1170 if (flags
& NDR_OUT
) {
1171 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1173 return NDR_ERR_SUCCESS
;
1176 static enum ndr_err_code
ndr_pull_PNP_GetClassCount(struct ndr_pull
*ndr
, int flags
, struct PNP_GetClassCount
*r
)
1178 if (flags
& NDR_IN
) {
1180 if (flags
& NDR_OUT
) {
1181 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1183 return NDR_ERR_SUCCESS
;
1186 _PUBLIC_
void ndr_print_PNP_GetClassCount(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetClassCount
*r
)
1188 ndr_print_struct(ndr
, name
, "PNP_GetClassCount");
1190 if (flags
& NDR_SET_VALUES
) {
1191 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1193 if (flags
& NDR_IN
) {
1194 ndr_print_struct(ndr
, "in", "PNP_GetClassCount");
1198 if (flags
& NDR_OUT
) {
1199 ndr_print_struct(ndr
, "out", "PNP_GetClassCount");
1201 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1207 static enum ndr_err_code
ndr_push_PNP_GetClassName(struct ndr_push
*ndr
, int flags
, const struct PNP_GetClassName
*r
)
1209 if (flags
& NDR_IN
) {
1211 if (flags
& NDR_OUT
) {
1212 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1214 return NDR_ERR_SUCCESS
;
1217 static enum ndr_err_code
ndr_pull_PNP_GetClassName(struct ndr_pull
*ndr
, int flags
, struct PNP_GetClassName
*r
)
1219 if (flags
& NDR_IN
) {
1221 if (flags
& NDR_OUT
) {
1222 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1224 return NDR_ERR_SUCCESS
;
1227 _PUBLIC_
void ndr_print_PNP_GetClassName(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetClassName
*r
)
1229 ndr_print_struct(ndr
, name
, "PNP_GetClassName");
1231 if (flags
& NDR_SET_VALUES
) {
1232 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1234 if (flags
& NDR_IN
) {
1235 ndr_print_struct(ndr
, "in", "PNP_GetClassName");
1239 if (flags
& NDR_OUT
) {
1240 ndr_print_struct(ndr
, "out", "PNP_GetClassName");
1242 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1248 static enum ndr_err_code
ndr_push_PNP_DeleteClassKey(struct ndr_push
*ndr
, int flags
, const struct PNP_DeleteClassKey
*r
)
1250 if (flags
& NDR_IN
) {
1252 if (flags
& NDR_OUT
) {
1253 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1255 return NDR_ERR_SUCCESS
;
1258 static enum ndr_err_code
ndr_pull_PNP_DeleteClassKey(struct ndr_pull
*ndr
, int flags
, struct PNP_DeleteClassKey
*r
)
1260 if (flags
& NDR_IN
) {
1262 if (flags
& NDR_OUT
) {
1263 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1265 return NDR_ERR_SUCCESS
;
1268 _PUBLIC_
void ndr_print_PNP_DeleteClassKey(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_DeleteClassKey
*r
)
1270 ndr_print_struct(ndr
, name
, "PNP_DeleteClassKey");
1272 if (flags
& NDR_SET_VALUES
) {
1273 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1275 if (flags
& NDR_IN
) {
1276 ndr_print_struct(ndr
, "in", "PNP_DeleteClassKey");
1280 if (flags
& NDR_OUT
) {
1281 ndr_print_struct(ndr
, "out", "PNP_DeleteClassKey");
1283 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1289 static enum ndr_err_code
ndr_push_PNP_GetInterfaceDeviceAlias(struct ndr_push
*ndr
, int flags
, const struct PNP_GetInterfaceDeviceAlias
*r
)
1291 if (flags
& NDR_IN
) {
1293 if (flags
& NDR_OUT
) {
1294 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1296 return NDR_ERR_SUCCESS
;
1299 static enum ndr_err_code
ndr_pull_PNP_GetInterfaceDeviceAlias(struct ndr_pull
*ndr
, int flags
, struct PNP_GetInterfaceDeviceAlias
*r
)
1301 if (flags
& NDR_IN
) {
1303 if (flags
& NDR_OUT
) {
1304 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1306 return NDR_ERR_SUCCESS
;
1309 _PUBLIC_
void ndr_print_PNP_GetInterfaceDeviceAlias(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetInterfaceDeviceAlias
*r
)
1311 ndr_print_struct(ndr
, name
, "PNP_GetInterfaceDeviceAlias");
1313 if (flags
& NDR_SET_VALUES
) {
1314 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1316 if (flags
& NDR_IN
) {
1317 ndr_print_struct(ndr
, "in", "PNP_GetInterfaceDeviceAlias");
1321 if (flags
& NDR_OUT
) {
1322 ndr_print_struct(ndr
, "out", "PNP_GetInterfaceDeviceAlias");
1324 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1330 static enum ndr_err_code
ndr_push_PNP_GetInterfaceDeviceList(struct ndr_push
*ndr
, int flags
, const struct PNP_GetInterfaceDeviceList
*r
)
1332 if (flags
& NDR_IN
) {
1334 if (flags
& NDR_OUT
) {
1335 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1337 return NDR_ERR_SUCCESS
;
1340 static enum ndr_err_code
ndr_pull_PNP_GetInterfaceDeviceList(struct ndr_pull
*ndr
, int flags
, struct PNP_GetInterfaceDeviceList
*r
)
1342 if (flags
& NDR_IN
) {
1344 if (flags
& NDR_OUT
) {
1345 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1347 return NDR_ERR_SUCCESS
;
1350 _PUBLIC_
void ndr_print_PNP_GetInterfaceDeviceList(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetInterfaceDeviceList
*r
)
1352 ndr_print_struct(ndr
, name
, "PNP_GetInterfaceDeviceList");
1354 if (flags
& NDR_SET_VALUES
) {
1355 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1357 if (flags
& NDR_IN
) {
1358 ndr_print_struct(ndr
, "in", "PNP_GetInterfaceDeviceList");
1362 if (flags
& NDR_OUT
) {
1363 ndr_print_struct(ndr
, "out", "PNP_GetInterfaceDeviceList");
1365 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1371 static enum ndr_err_code
ndr_push_PNP_GetInterfaceDeviceListSize(struct ndr_push
*ndr
, int flags
, const struct PNP_GetInterfaceDeviceListSize
*r
)
1373 if (flags
& NDR_IN
) {
1375 if (flags
& NDR_OUT
) {
1376 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1378 return NDR_ERR_SUCCESS
;
1381 static enum ndr_err_code
ndr_pull_PNP_GetInterfaceDeviceListSize(struct ndr_pull
*ndr
, int flags
, struct PNP_GetInterfaceDeviceListSize
*r
)
1383 if (flags
& NDR_IN
) {
1385 if (flags
& NDR_OUT
) {
1386 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1388 return NDR_ERR_SUCCESS
;
1391 _PUBLIC_
void ndr_print_PNP_GetInterfaceDeviceListSize(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetInterfaceDeviceListSize
*r
)
1393 ndr_print_struct(ndr
, name
, "PNP_GetInterfaceDeviceListSize");
1395 if (flags
& NDR_SET_VALUES
) {
1396 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1398 if (flags
& NDR_IN
) {
1399 ndr_print_struct(ndr
, "in", "PNP_GetInterfaceDeviceListSize");
1403 if (flags
& NDR_OUT
) {
1404 ndr_print_struct(ndr
, "out", "PNP_GetInterfaceDeviceListSize");
1406 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1412 static enum ndr_err_code
ndr_push_PNP_RegisterDeviceClassAssociation(struct ndr_push
*ndr
, int flags
, const struct PNP_RegisterDeviceClassAssociation
*r
)
1414 if (flags
& NDR_IN
) {
1416 if (flags
& NDR_OUT
) {
1417 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1419 return NDR_ERR_SUCCESS
;
1422 static enum ndr_err_code
ndr_pull_PNP_RegisterDeviceClassAssociation(struct ndr_pull
*ndr
, int flags
, struct PNP_RegisterDeviceClassAssociation
*r
)
1424 if (flags
& NDR_IN
) {
1426 if (flags
& NDR_OUT
) {
1427 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1429 return NDR_ERR_SUCCESS
;
1432 _PUBLIC_
void ndr_print_PNP_RegisterDeviceClassAssociation(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_RegisterDeviceClassAssociation
*r
)
1434 ndr_print_struct(ndr
, name
, "PNP_RegisterDeviceClassAssociation");
1436 if (flags
& NDR_SET_VALUES
) {
1437 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1439 if (flags
& NDR_IN
) {
1440 ndr_print_struct(ndr
, "in", "PNP_RegisterDeviceClassAssociation");
1444 if (flags
& NDR_OUT
) {
1445 ndr_print_struct(ndr
, "out", "PNP_RegisterDeviceClassAssociation");
1447 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1453 static enum ndr_err_code
ndr_push_PNP_UnregisterDeviceClassAssociation(struct ndr_push
*ndr
, int flags
, const struct PNP_UnregisterDeviceClassAssociation
*r
)
1455 if (flags
& NDR_IN
) {
1457 if (flags
& NDR_OUT
) {
1458 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1460 return NDR_ERR_SUCCESS
;
1463 static enum ndr_err_code
ndr_pull_PNP_UnregisterDeviceClassAssociation(struct ndr_pull
*ndr
, int flags
, struct PNP_UnregisterDeviceClassAssociation
*r
)
1465 if (flags
& NDR_IN
) {
1467 if (flags
& NDR_OUT
) {
1468 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1470 return NDR_ERR_SUCCESS
;
1473 _PUBLIC_
void ndr_print_PNP_UnregisterDeviceClassAssociation(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_UnregisterDeviceClassAssociation
*r
)
1475 ndr_print_struct(ndr
, name
, "PNP_UnregisterDeviceClassAssociation");
1477 if (flags
& NDR_SET_VALUES
) {
1478 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1480 if (flags
& NDR_IN
) {
1481 ndr_print_struct(ndr
, "in", "PNP_UnregisterDeviceClassAssociation");
1485 if (flags
& NDR_OUT
) {
1486 ndr_print_struct(ndr
, "out", "PNP_UnregisterDeviceClassAssociation");
1488 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1494 static enum ndr_err_code
ndr_push_PNP_GetClassRegProp(struct ndr_push
*ndr
, int flags
, const struct PNP_GetClassRegProp
*r
)
1496 if (flags
& NDR_IN
) {
1498 if (flags
& NDR_OUT
) {
1499 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1501 return NDR_ERR_SUCCESS
;
1504 static enum ndr_err_code
ndr_pull_PNP_GetClassRegProp(struct ndr_pull
*ndr
, int flags
, struct PNP_GetClassRegProp
*r
)
1506 if (flags
& NDR_IN
) {
1508 if (flags
& NDR_OUT
) {
1509 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1511 return NDR_ERR_SUCCESS
;
1514 _PUBLIC_
void ndr_print_PNP_GetClassRegProp(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetClassRegProp
*r
)
1516 ndr_print_struct(ndr
, name
, "PNP_GetClassRegProp");
1518 if (flags
& NDR_SET_VALUES
) {
1519 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1521 if (flags
& NDR_IN
) {
1522 ndr_print_struct(ndr
, "in", "PNP_GetClassRegProp");
1526 if (flags
& NDR_OUT
) {
1527 ndr_print_struct(ndr
, "out", "PNP_GetClassRegProp");
1529 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1535 static enum ndr_err_code
ndr_push_PNP_SetClassRegProp(struct ndr_push
*ndr
, int flags
, const struct PNP_SetClassRegProp
*r
)
1537 if (flags
& NDR_IN
) {
1539 if (flags
& NDR_OUT
) {
1540 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1542 return NDR_ERR_SUCCESS
;
1545 static enum ndr_err_code
ndr_pull_PNP_SetClassRegProp(struct ndr_pull
*ndr
, int flags
, struct PNP_SetClassRegProp
*r
)
1547 if (flags
& NDR_IN
) {
1549 if (flags
& NDR_OUT
) {
1550 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1552 return NDR_ERR_SUCCESS
;
1555 _PUBLIC_
void ndr_print_PNP_SetClassRegProp(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_SetClassRegProp
*r
)
1557 ndr_print_struct(ndr
, name
, "PNP_SetClassRegProp");
1559 if (flags
& NDR_SET_VALUES
) {
1560 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1562 if (flags
& NDR_IN
) {
1563 ndr_print_struct(ndr
, "in", "PNP_SetClassRegProp");
1567 if (flags
& NDR_OUT
) {
1568 ndr_print_struct(ndr
, "out", "PNP_SetClassRegProp");
1570 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1576 static enum ndr_err_code
ndr_push_PNP_CreateDevInst(struct ndr_push
*ndr
, int flags
, const struct PNP_CreateDevInst
*r
)
1578 if (flags
& NDR_IN
) {
1580 if (flags
& NDR_OUT
) {
1581 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1583 return NDR_ERR_SUCCESS
;
1586 static enum ndr_err_code
ndr_pull_PNP_CreateDevInst(struct ndr_pull
*ndr
, int flags
, struct PNP_CreateDevInst
*r
)
1588 if (flags
& NDR_IN
) {
1590 if (flags
& NDR_OUT
) {
1591 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1593 return NDR_ERR_SUCCESS
;
1596 _PUBLIC_
void ndr_print_PNP_CreateDevInst(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_CreateDevInst
*r
)
1598 ndr_print_struct(ndr
, name
, "PNP_CreateDevInst");
1600 if (flags
& NDR_SET_VALUES
) {
1601 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1603 if (flags
& NDR_IN
) {
1604 ndr_print_struct(ndr
, "in", "PNP_CreateDevInst");
1608 if (flags
& NDR_OUT
) {
1609 ndr_print_struct(ndr
, "out", "PNP_CreateDevInst");
1611 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1617 static enum ndr_err_code
ndr_push_PNP_DeviceInstanceAction(struct ndr_push
*ndr
, int flags
, const struct PNP_DeviceInstanceAction
*r
)
1619 if (flags
& NDR_IN
) {
1621 if (flags
& NDR_OUT
) {
1622 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1624 return NDR_ERR_SUCCESS
;
1627 static enum ndr_err_code
ndr_pull_PNP_DeviceInstanceAction(struct ndr_pull
*ndr
, int flags
, struct PNP_DeviceInstanceAction
*r
)
1629 if (flags
& NDR_IN
) {
1631 if (flags
& NDR_OUT
) {
1632 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1634 return NDR_ERR_SUCCESS
;
1637 _PUBLIC_
void ndr_print_PNP_DeviceInstanceAction(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_DeviceInstanceAction
*r
)
1639 ndr_print_struct(ndr
, name
, "PNP_DeviceInstanceAction");
1641 if (flags
& NDR_SET_VALUES
) {
1642 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1644 if (flags
& NDR_IN
) {
1645 ndr_print_struct(ndr
, "in", "PNP_DeviceInstanceAction");
1649 if (flags
& NDR_OUT
) {
1650 ndr_print_struct(ndr
, "out", "PNP_DeviceInstanceAction");
1652 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1658 static enum ndr_err_code
ndr_push_PNP_GetDeviceStatus(struct ndr_push
*ndr
, int flags
, const struct PNP_GetDeviceStatus
*r
)
1660 if (flags
& NDR_IN
) {
1662 if (flags
& NDR_OUT
) {
1663 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1665 return NDR_ERR_SUCCESS
;
1668 static enum ndr_err_code
ndr_pull_PNP_GetDeviceStatus(struct ndr_pull
*ndr
, int flags
, struct PNP_GetDeviceStatus
*r
)
1670 if (flags
& NDR_IN
) {
1672 if (flags
& NDR_OUT
) {
1673 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1675 return NDR_ERR_SUCCESS
;
1678 _PUBLIC_
void ndr_print_PNP_GetDeviceStatus(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetDeviceStatus
*r
)
1680 ndr_print_struct(ndr
, name
, "PNP_GetDeviceStatus");
1682 if (flags
& NDR_SET_VALUES
) {
1683 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1685 if (flags
& NDR_IN
) {
1686 ndr_print_struct(ndr
, "in", "PNP_GetDeviceStatus");
1690 if (flags
& NDR_OUT
) {
1691 ndr_print_struct(ndr
, "out", "PNP_GetDeviceStatus");
1693 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1699 static enum ndr_err_code
ndr_push_PNP_SetDeviceProblem(struct ndr_push
*ndr
, int flags
, const struct PNP_SetDeviceProblem
*r
)
1701 if (flags
& NDR_IN
) {
1703 if (flags
& NDR_OUT
) {
1704 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1706 return NDR_ERR_SUCCESS
;
1709 static enum ndr_err_code
ndr_pull_PNP_SetDeviceProblem(struct ndr_pull
*ndr
, int flags
, struct PNP_SetDeviceProblem
*r
)
1711 if (flags
& NDR_IN
) {
1713 if (flags
& NDR_OUT
) {
1714 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1716 return NDR_ERR_SUCCESS
;
1719 _PUBLIC_
void ndr_print_PNP_SetDeviceProblem(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_SetDeviceProblem
*r
)
1721 ndr_print_struct(ndr
, name
, "PNP_SetDeviceProblem");
1723 if (flags
& NDR_SET_VALUES
) {
1724 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1726 if (flags
& NDR_IN
) {
1727 ndr_print_struct(ndr
, "in", "PNP_SetDeviceProblem");
1731 if (flags
& NDR_OUT
) {
1732 ndr_print_struct(ndr
, "out", "PNP_SetDeviceProblem");
1734 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1740 static enum ndr_err_code
ndr_push_PNP_DisableDevInst(struct ndr_push
*ndr
, int flags
, const struct PNP_DisableDevInst
*r
)
1742 if (flags
& NDR_IN
) {
1744 if (flags
& NDR_OUT
) {
1745 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1747 return NDR_ERR_SUCCESS
;
1750 static enum ndr_err_code
ndr_pull_PNP_DisableDevInst(struct ndr_pull
*ndr
, int flags
, struct PNP_DisableDevInst
*r
)
1752 if (flags
& NDR_IN
) {
1754 if (flags
& NDR_OUT
) {
1755 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1757 return NDR_ERR_SUCCESS
;
1760 _PUBLIC_
void ndr_print_PNP_DisableDevInst(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_DisableDevInst
*r
)
1762 ndr_print_struct(ndr
, name
, "PNP_DisableDevInst");
1764 if (flags
& NDR_SET_VALUES
) {
1765 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1767 if (flags
& NDR_IN
) {
1768 ndr_print_struct(ndr
, "in", "PNP_DisableDevInst");
1772 if (flags
& NDR_OUT
) {
1773 ndr_print_struct(ndr
, "out", "PNP_DisableDevInst");
1775 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1781 static enum ndr_err_code
ndr_push_PNP_UninstallDevInst(struct ndr_push
*ndr
, int flags
, const struct PNP_UninstallDevInst
*r
)
1783 if (flags
& NDR_IN
) {
1785 if (flags
& NDR_OUT
) {
1786 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1788 return NDR_ERR_SUCCESS
;
1791 static enum ndr_err_code
ndr_pull_PNP_UninstallDevInst(struct ndr_pull
*ndr
, int flags
, struct PNP_UninstallDevInst
*r
)
1793 if (flags
& NDR_IN
) {
1795 if (flags
& NDR_OUT
) {
1796 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1798 return NDR_ERR_SUCCESS
;
1801 _PUBLIC_
void ndr_print_PNP_UninstallDevInst(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_UninstallDevInst
*r
)
1803 ndr_print_struct(ndr
, name
, "PNP_UninstallDevInst");
1805 if (flags
& NDR_SET_VALUES
) {
1806 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1808 if (flags
& NDR_IN
) {
1809 ndr_print_struct(ndr
, "in", "PNP_UninstallDevInst");
1813 if (flags
& NDR_OUT
) {
1814 ndr_print_struct(ndr
, "out", "PNP_UninstallDevInst");
1816 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1822 static enum ndr_err_code
ndr_push_PNP_AddID(struct ndr_push
*ndr
, int flags
, const struct PNP_AddID
*r
)
1824 if (flags
& NDR_IN
) {
1826 if (flags
& NDR_OUT
) {
1827 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1829 return NDR_ERR_SUCCESS
;
1832 static enum ndr_err_code
ndr_pull_PNP_AddID(struct ndr_pull
*ndr
, int flags
, struct PNP_AddID
*r
)
1834 if (flags
& NDR_IN
) {
1836 if (flags
& NDR_OUT
) {
1837 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1839 return NDR_ERR_SUCCESS
;
1842 _PUBLIC_
void ndr_print_PNP_AddID(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_AddID
*r
)
1844 ndr_print_struct(ndr
, name
, "PNP_AddID");
1846 if (flags
& NDR_SET_VALUES
) {
1847 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1849 if (flags
& NDR_IN
) {
1850 ndr_print_struct(ndr
, "in", "PNP_AddID");
1854 if (flags
& NDR_OUT
) {
1855 ndr_print_struct(ndr
, "out", "PNP_AddID");
1857 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1863 static enum ndr_err_code
ndr_push_PNP_RegisterDriver(struct ndr_push
*ndr
, int flags
, const struct PNP_RegisterDriver
*r
)
1865 if (flags
& NDR_IN
) {
1867 if (flags
& NDR_OUT
) {
1868 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1870 return NDR_ERR_SUCCESS
;
1873 static enum ndr_err_code
ndr_pull_PNP_RegisterDriver(struct ndr_pull
*ndr
, int flags
, struct PNP_RegisterDriver
*r
)
1875 if (flags
& NDR_IN
) {
1877 if (flags
& NDR_OUT
) {
1878 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1880 return NDR_ERR_SUCCESS
;
1883 _PUBLIC_
void ndr_print_PNP_RegisterDriver(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_RegisterDriver
*r
)
1885 ndr_print_struct(ndr
, name
, "PNP_RegisterDriver");
1887 if (flags
& NDR_SET_VALUES
) {
1888 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1890 if (flags
& NDR_IN
) {
1891 ndr_print_struct(ndr
, "in", "PNP_RegisterDriver");
1895 if (flags
& NDR_OUT
) {
1896 ndr_print_struct(ndr
, "out", "PNP_RegisterDriver");
1898 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1904 static enum ndr_err_code
ndr_push_PNP_QueryRemove(struct ndr_push
*ndr
, int flags
, const struct PNP_QueryRemove
*r
)
1906 if (flags
& NDR_IN
) {
1908 if (flags
& NDR_OUT
) {
1909 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1911 return NDR_ERR_SUCCESS
;
1914 static enum ndr_err_code
ndr_pull_PNP_QueryRemove(struct ndr_pull
*ndr
, int flags
, struct PNP_QueryRemove
*r
)
1916 if (flags
& NDR_IN
) {
1918 if (flags
& NDR_OUT
) {
1919 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1921 return NDR_ERR_SUCCESS
;
1924 _PUBLIC_
void ndr_print_PNP_QueryRemove(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_QueryRemove
*r
)
1926 ndr_print_struct(ndr
, name
, "PNP_QueryRemove");
1928 if (flags
& NDR_SET_VALUES
) {
1929 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1931 if (flags
& NDR_IN
) {
1932 ndr_print_struct(ndr
, "in", "PNP_QueryRemove");
1936 if (flags
& NDR_OUT
) {
1937 ndr_print_struct(ndr
, "out", "PNP_QueryRemove");
1939 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1945 static enum ndr_err_code
ndr_push_PNP_RequestDeviceEject(struct ndr_push
*ndr
, int flags
, const struct PNP_RequestDeviceEject
*r
)
1947 if (flags
& NDR_IN
) {
1949 if (flags
& NDR_OUT
) {
1950 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1952 return NDR_ERR_SUCCESS
;
1955 static enum ndr_err_code
ndr_pull_PNP_RequestDeviceEject(struct ndr_pull
*ndr
, int flags
, struct PNP_RequestDeviceEject
*r
)
1957 if (flags
& NDR_IN
) {
1959 if (flags
& NDR_OUT
) {
1960 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1962 return NDR_ERR_SUCCESS
;
1965 _PUBLIC_
void ndr_print_PNP_RequestDeviceEject(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_RequestDeviceEject
*r
)
1967 ndr_print_struct(ndr
, name
, "PNP_RequestDeviceEject");
1969 if (flags
& NDR_SET_VALUES
) {
1970 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1972 if (flags
& NDR_IN
) {
1973 ndr_print_struct(ndr
, "in", "PNP_RequestDeviceEject");
1977 if (flags
& NDR_OUT
) {
1978 ndr_print_struct(ndr
, "out", "PNP_RequestDeviceEject");
1980 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1986 static enum ndr_err_code
ndr_push_PNP_IsDockStationPresent(struct ndr_push
*ndr
, int flags
, const struct PNP_IsDockStationPresent
*r
)
1988 if (flags
& NDR_IN
) {
1990 if (flags
& NDR_OUT
) {
1991 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1993 return NDR_ERR_SUCCESS
;
1996 static enum ndr_err_code
ndr_pull_PNP_IsDockStationPresent(struct ndr_pull
*ndr
, int flags
, struct PNP_IsDockStationPresent
*r
)
1998 if (flags
& NDR_IN
) {
2000 if (flags
& NDR_OUT
) {
2001 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
2003 return NDR_ERR_SUCCESS
;
2006 _PUBLIC_
void ndr_print_PNP_IsDockStationPresent(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_IsDockStationPresent
*r
)
2008 ndr_print_struct(ndr
, name
, "PNP_IsDockStationPresent");
2010 if (flags
& NDR_SET_VALUES
) {
2011 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2013 if (flags
& NDR_IN
) {
2014 ndr_print_struct(ndr
, "in", "PNP_IsDockStationPresent");
2018 if (flags
& NDR_OUT
) {
2019 ndr_print_struct(ndr
, "out", "PNP_IsDockStationPresent");
2021 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
2027 static enum ndr_err_code
ndr_push_PNP_RequestEjectPC(struct ndr_push
*ndr
, int flags
, const struct PNP_RequestEjectPC
*r
)
2029 if (flags
& NDR_IN
) {
2031 if (flags
& NDR_OUT
) {
2032 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
2034 return NDR_ERR_SUCCESS
;
2037 static enum ndr_err_code
ndr_pull_PNP_RequestEjectPC(struct ndr_pull
*ndr
, int flags
, struct PNP_RequestEjectPC
*r
)
2039 if (flags
& NDR_IN
) {
2041 if (flags
& NDR_OUT
) {
2042 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
2044 return NDR_ERR_SUCCESS
;
2047 _PUBLIC_
void ndr_print_PNP_RequestEjectPC(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_RequestEjectPC
*r
)
2049 ndr_print_struct(ndr
, name
, "PNP_RequestEjectPC");
2051 if (flags
& NDR_SET_VALUES
) {
2052 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2054 if (flags
& NDR_IN
) {
2055 ndr_print_struct(ndr
, "in", "PNP_RequestEjectPC");
2059 if (flags
& NDR_OUT
) {
2060 ndr_print_struct(ndr
, "out", "PNP_RequestEjectPC");
2062 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
2068 static enum ndr_err_code
ndr_push_PNP_HwProfFlags(struct ndr_push
*ndr
, int flags
, const struct PNP_HwProfFlags
*r
)
2070 if (flags
& NDR_IN
) {
2071 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, r
->in
.action
));
2072 if (r
->in
.devicepath
== NULL
) {
2073 return ndr_push_error(ndr
, NDR_ERR_INVALID_POINTER
, "NULL [ref] pointer");
2075 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, ndr_charset_length(r
->in
.devicepath
, CH_UTF16
)));
2076 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, 0));
2077 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, ndr_charset_length(r
->in
.devicepath
, CH_UTF16
)));
2078 NDR_CHECK(ndr_push_charset(ndr
, NDR_SCALARS
, r
->in
.devicepath
, ndr_charset_length(r
->in
.devicepath
, CH_UTF16
), sizeof(uint16_t), CH_UTF16
));
2079 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, r
->in
.config
));
2080 if (r
->in
.profile_flags
== NULL
) {
2081 return ndr_push_error(ndr
, NDR_ERR_INVALID_POINTER
, "NULL [ref] pointer");
2083 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, *r
->in
.profile_flags
));
2084 NDR_CHECK(ndr_push_unique_ptr(ndr
, r
->in
.veto_type
));
2085 if (r
->in
.veto_type
) {
2086 NDR_CHECK(ndr_push_uint16(ndr
, NDR_SCALARS
, *r
->in
.veto_type
));
2088 NDR_CHECK(ndr_push_unique_ptr(ndr
, r
->in
.unknown5
));
2089 if (r
->in
.unknown5
) {
2090 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, ndr_charset_length(r
->in
.unknown5
, CH_UTF16
)));
2091 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, 0));
2092 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, ndr_charset_length(r
->in
.unknown5
, CH_UTF16
)));
2093 NDR_CHECK(ndr_push_charset(ndr
, NDR_SCALARS
, r
->in
.unknown5
, ndr_charset_length(r
->in
.unknown5
, CH_UTF16
), sizeof(uint16_t), CH_UTF16
));
2095 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, r
->in
.name_length
));
2096 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, r
->in
.flags
));
2098 if (flags
& NDR_OUT
) {
2099 if (r
->out
.profile_flags
== NULL
) {
2100 return ndr_push_error(ndr
, NDR_ERR_INVALID_POINTER
, "NULL [ref] pointer");
2102 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, *r
->out
.profile_flags
));
2103 NDR_CHECK(ndr_push_unique_ptr(ndr
, r
->out
.veto_type
));
2104 if (r
->out
.veto_type
) {
2105 NDR_CHECK(ndr_push_uint16(ndr
, NDR_SCALARS
, *r
->out
.veto_type
));
2107 NDR_CHECK(ndr_push_unique_ptr(ndr
, r
->out
.unknown5a
));
2108 if (r
->out
.unknown5a
) {
2109 NDR_CHECK(ndr_push_unique_ptr(ndr
, *r
->out
.unknown5a
));
2110 if (*r
->out
.unknown5a
) {
2111 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, ndr_charset_length(*r
->out
.unknown5a
, CH_UTF16
)));
2112 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, 0));
2113 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, ndr_charset_length(*r
->out
.unknown5a
, CH_UTF16
)));
2114 NDR_CHECK(ndr_push_charset(ndr
, NDR_SCALARS
, *r
->out
.unknown5a
, ndr_charset_length(*r
->out
.unknown5a
, CH_UTF16
), sizeof(uint16_t), CH_UTF16
));
2117 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
2119 return NDR_ERR_SUCCESS
;
2122 static enum ndr_err_code
ndr_pull_PNP_HwProfFlags(struct ndr_pull
*ndr
, int flags
, struct PNP_HwProfFlags
*r
)
2124 uint32_t _ptr_veto_type
;
2125 uint32_t _ptr_unknown5
;
2126 uint32_t _ptr_unknown5a
;
2127 TALLOC_CTX
*_mem_save_profile_flags_0
;
2128 TALLOC_CTX
*_mem_save_veto_type_0
;
2129 TALLOC_CTX
*_mem_save_unknown5_0
;
2130 TALLOC_CTX
*_mem_save_unknown5a_0
;
2131 TALLOC_CTX
*_mem_save_unknown5a_1
;
2132 if (flags
& NDR_IN
) {
2133 ZERO_STRUCT(r
->out
);
2135 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, &r
->in
.action
));
2136 NDR_CHECK(ndr_pull_array_size(ndr
, &r
->in
.devicepath
));
2137 NDR_CHECK(ndr_pull_array_length(ndr
, &r
->in
.devicepath
));
2138 if (ndr_get_array_length(ndr
, &r
->in
.devicepath
) > ndr_get_array_size(ndr
, &r
->in
.devicepath
)) {
2139 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
));
2141 NDR_CHECK(ndr_check_string_terminator(ndr
, ndr_get_array_length(ndr
, &r
->in
.devicepath
), sizeof(uint16_t)));
2142 NDR_CHECK(ndr_pull_charset(ndr
, NDR_SCALARS
, &r
->in
.devicepath
, ndr_get_array_length(ndr
, &r
->in
.devicepath
), sizeof(uint16_t), CH_UTF16
));
2143 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, &r
->in
.config
));
2144 if (ndr
->flags
& LIBNDR_FLAG_REF_ALLOC
) {
2145 NDR_PULL_ALLOC(ndr
, r
->in
.profile_flags
);
2147 _mem_save_profile_flags_0
= NDR_PULL_GET_MEM_CTX(ndr
);
2148 NDR_PULL_SET_MEM_CTX(ndr
, r
->in
.profile_flags
, LIBNDR_FLAG_REF_ALLOC
);
2149 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, r
->in
.profile_flags
));
2150 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_profile_flags_0
, LIBNDR_FLAG_REF_ALLOC
);
2151 NDR_CHECK(ndr_pull_generic_ptr(ndr
, &_ptr_veto_type
));
2152 if (_ptr_veto_type
) {
2153 NDR_PULL_ALLOC(ndr
, r
->in
.veto_type
);
2155 r
->in
.veto_type
= NULL
;
2157 if (r
->in
.veto_type
) {
2158 _mem_save_veto_type_0
= NDR_PULL_GET_MEM_CTX(ndr
);
2159 NDR_PULL_SET_MEM_CTX(ndr
, r
->in
.veto_type
, 0);
2160 NDR_CHECK(ndr_pull_uint16(ndr
, NDR_SCALARS
, r
->in
.veto_type
));
2161 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_veto_type_0
, 0);
2163 NDR_CHECK(ndr_pull_generic_ptr(ndr
, &_ptr_unknown5
));
2164 if (_ptr_unknown5
) {
2165 NDR_PULL_ALLOC(ndr
, r
->in
.unknown5
);
2167 r
->in
.unknown5
= NULL
;
2169 if (r
->in
.unknown5
) {
2170 _mem_save_unknown5_0
= NDR_PULL_GET_MEM_CTX(ndr
);
2171 NDR_PULL_SET_MEM_CTX(ndr
, r
->in
.unknown5
, 0);
2172 NDR_CHECK(ndr_pull_array_size(ndr
, &r
->in
.unknown5
));
2173 NDR_CHECK(ndr_pull_array_length(ndr
, &r
->in
.unknown5
));
2174 if (ndr_get_array_length(ndr
, &r
->in
.unknown5
) > ndr_get_array_size(ndr
, &r
->in
.unknown5
)) {
2175 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
));
2177 NDR_CHECK(ndr_check_string_terminator(ndr
, ndr_get_array_length(ndr
, &r
->in
.unknown5
), sizeof(uint16_t)));
2178 NDR_CHECK(ndr_pull_charset(ndr
, NDR_SCALARS
, &r
->in
.unknown5
, ndr_get_array_length(ndr
, &r
->in
.unknown5
), sizeof(uint16_t), CH_UTF16
));
2179 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_unknown5_0
, 0);
2181 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, &r
->in
.name_length
));
2182 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, &r
->in
.flags
));
2183 NDR_PULL_ALLOC(ndr
, r
->out
.profile_flags
);
2184 *r
->out
.profile_flags
= *r
->in
.profile_flags
;
2186 if (flags
& NDR_OUT
) {
2187 if (ndr
->flags
& LIBNDR_FLAG_REF_ALLOC
) {
2188 NDR_PULL_ALLOC(ndr
, r
->out
.profile_flags
);
2190 _mem_save_profile_flags_0
= NDR_PULL_GET_MEM_CTX(ndr
);
2191 NDR_PULL_SET_MEM_CTX(ndr
, r
->out
.profile_flags
, LIBNDR_FLAG_REF_ALLOC
);
2192 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, r
->out
.profile_flags
));
2193 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_profile_flags_0
, LIBNDR_FLAG_REF_ALLOC
);
2194 NDR_CHECK(ndr_pull_generic_ptr(ndr
, &_ptr_veto_type
));
2195 if (_ptr_veto_type
) {
2196 NDR_PULL_ALLOC(ndr
, r
->out
.veto_type
);
2198 r
->out
.veto_type
= NULL
;
2200 if (r
->out
.veto_type
) {
2201 _mem_save_veto_type_0
= NDR_PULL_GET_MEM_CTX(ndr
);
2202 NDR_PULL_SET_MEM_CTX(ndr
, r
->out
.veto_type
, 0);
2203 NDR_CHECK(ndr_pull_uint16(ndr
, NDR_SCALARS
, r
->out
.veto_type
));
2204 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_veto_type_0
, 0);
2206 NDR_CHECK(ndr_pull_generic_ptr(ndr
, &_ptr_unknown5a
));
2207 if (_ptr_unknown5a
) {
2208 NDR_PULL_ALLOC(ndr
, r
->out
.unknown5a
);
2210 r
->out
.unknown5a
= NULL
;
2212 if (r
->out
.unknown5a
) {
2213 _mem_save_unknown5a_0
= NDR_PULL_GET_MEM_CTX(ndr
);
2214 NDR_PULL_SET_MEM_CTX(ndr
, r
->out
.unknown5a
, 0);
2215 NDR_CHECK(ndr_pull_generic_ptr(ndr
, &_ptr_unknown5a
));
2216 if (_ptr_unknown5a
) {
2217 NDR_PULL_ALLOC(ndr
, *r
->out
.unknown5a
);
2219 *r
->out
.unknown5a
= NULL
;
2221 if (*r
->out
.unknown5a
) {
2222 _mem_save_unknown5a_1
= NDR_PULL_GET_MEM_CTX(ndr
);
2223 NDR_PULL_SET_MEM_CTX(ndr
, *r
->out
.unknown5a
, 0);
2224 NDR_CHECK(ndr_pull_array_size(ndr
, r
->out
.unknown5a
));
2225 NDR_CHECK(ndr_pull_array_length(ndr
, r
->out
.unknown5a
));
2226 if (ndr_get_array_length(ndr
, r
->out
.unknown5a
) > ndr_get_array_size(ndr
, r
->out
.unknown5a
)) {
2227 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
));
2229 NDR_CHECK(ndr_check_string_terminator(ndr
, ndr_get_array_length(ndr
, r
->out
.unknown5a
), sizeof(uint16_t)));
2230 NDR_CHECK(ndr_pull_charset(ndr
, NDR_SCALARS
, r
->out
.unknown5a
, ndr_get_array_length(ndr
, r
->out
.unknown5a
), sizeof(uint16_t), CH_UTF16
));
2231 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_unknown5a_1
, 0);
2233 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_unknown5a_0
, 0);
2235 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
2237 return NDR_ERR_SUCCESS
;
2240 _PUBLIC_
void ndr_print_PNP_HwProfFlags(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_HwProfFlags
*r
)
2242 ndr_print_struct(ndr
, name
, "PNP_HwProfFlags");
2244 if (flags
& NDR_SET_VALUES
) {
2245 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2247 if (flags
& NDR_IN
) {
2248 ndr_print_struct(ndr
, "in", "PNP_HwProfFlags");
2250 ndr_print_uint32(ndr
, "action", r
->in
.action
);
2251 ndr_print_ptr(ndr
, "devicepath", r
->in
.devicepath
);
2253 ndr_print_string(ndr
, "devicepath", r
->in
.devicepath
);
2255 ndr_print_uint32(ndr
, "config", r
->in
.config
);
2256 ndr_print_ptr(ndr
, "profile_flags", r
->in
.profile_flags
);
2258 ndr_print_uint32(ndr
, "profile_flags", *r
->in
.profile_flags
);
2260 ndr_print_ptr(ndr
, "veto_type", r
->in
.veto_type
);
2262 if (r
->in
.veto_type
) {
2263 ndr_print_uint16(ndr
, "veto_type", *r
->in
.veto_type
);
2266 ndr_print_ptr(ndr
, "unknown5", r
->in
.unknown5
);
2268 if (r
->in
.unknown5
) {
2269 ndr_print_string(ndr
, "unknown5", r
->in
.unknown5
);
2272 ndr_print_uint32(ndr
, "name_length", r
->in
.name_length
);
2273 ndr_print_uint32(ndr
, "flags", r
->in
.flags
);
2276 if (flags
& NDR_OUT
) {
2277 ndr_print_struct(ndr
, "out", "PNP_HwProfFlags");
2279 ndr_print_ptr(ndr
, "profile_flags", r
->out
.profile_flags
);
2281 ndr_print_uint32(ndr
, "profile_flags", *r
->out
.profile_flags
);
2283 ndr_print_ptr(ndr
, "veto_type", r
->out
.veto_type
);
2285 if (r
->out
.veto_type
) {
2286 ndr_print_uint16(ndr
, "veto_type", *r
->out
.veto_type
);
2289 ndr_print_ptr(ndr
, "unknown5a", r
->out
.unknown5a
);
2291 if (r
->out
.unknown5a
) {
2292 ndr_print_ptr(ndr
, "unknown5a", *r
->out
.unknown5a
);
2294 if (*r
->out
.unknown5a
) {
2295 ndr_print_string(ndr
, "unknown5a", *r
->out
.unknown5a
);
2300 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
2306 static enum ndr_err_code
ndr_push_PNP_GetHwProfInfo(struct ndr_push
*ndr
, int flags
, const struct PNP_GetHwProfInfo
*r
)
2308 if (flags
& NDR_IN
) {
2309 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, r
->in
.idx
));
2310 if (r
->in
.info
== NULL
) {
2311 return ndr_push_error(ndr
, NDR_ERR_INVALID_POINTER
, "NULL [ref] pointer");
2313 NDR_CHECK(ndr_push_PNP_HwProfInfo(ndr
, NDR_SCALARS
, r
->in
.info
));
2314 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, r
->in
.size
));
2315 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, r
->in
.flags
));
2317 if (flags
& NDR_OUT
) {
2318 if (r
->out
.info
== NULL
) {
2319 return ndr_push_error(ndr
, NDR_ERR_INVALID_POINTER
, "NULL [ref] pointer");
2321 NDR_CHECK(ndr_push_PNP_HwProfInfo(ndr
, NDR_SCALARS
, r
->out
.info
));
2322 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
2324 return NDR_ERR_SUCCESS
;
2327 static enum ndr_err_code
ndr_pull_PNP_GetHwProfInfo(struct ndr_pull
*ndr
, int flags
, struct PNP_GetHwProfInfo
*r
)
2329 TALLOC_CTX
*_mem_save_info_0
;
2330 if (flags
& NDR_IN
) {
2331 ZERO_STRUCT(r
->out
);
2333 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, &r
->in
.idx
));
2334 if (ndr
->flags
& LIBNDR_FLAG_REF_ALLOC
) {
2335 NDR_PULL_ALLOC(ndr
, r
->in
.info
);
2337 _mem_save_info_0
= NDR_PULL_GET_MEM_CTX(ndr
);
2338 NDR_PULL_SET_MEM_CTX(ndr
, r
->in
.info
, LIBNDR_FLAG_REF_ALLOC
);
2339 NDR_CHECK(ndr_pull_PNP_HwProfInfo(ndr
, NDR_SCALARS
, r
->in
.info
));
2340 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_info_0
, LIBNDR_FLAG_REF_ALLOC
);
2341 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, &r
->in
.size
));
2342 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, &r
->in
.flags
));
2343 NDR_PULL_ALLOC(ndr
, r
->out
.info
);
2344 *r
->out
.info
= *r
->in
.info
;
2346 if (flags
& NDR_OUT
) {
2347 if (ndr
->flags
& LIBNDR_FLAG_REF_ALLOC
) {
2348 NDR_PULL_ALLOC(ndr
, r
->out
.info
);
2350 _mem_save_info_0
= NDR_PULL_GET_MEM_CTX(ndr
);
2351 NDR_PULL_SET_MEM_CTX(ndr
, r
->out
.info
, LIBNDR_FLAG_REF_ALLOC
);
2352 NDR_CHECK(ndr_pull_PNP_HwProfInfo(ndr
, NDR_SCALARS
, r
->out
.info
));
2353 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_info_0
, LIBNDR_FLAG_REF_ALLOC
);
2354 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
2356 return NDR_ERR_SUCCESS
;
2359 _PUBLIC_
void ndr_print_PNP_GetHwProfInfo(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetHwProfInfo
*r
)
2361 ndr_print_struct(ndr
, name
, "PNP_GetHwProfInfo");
2363 if (flags
& NDR_SET_VALUES
) {
2364 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2366 if (flags
& NDR_IN
) {
2367 ndr_print_struct(ndr
, "in", "PNP_GetHwProfInfo");
2369 ndr_print_uint32(ndr
, "idx", r
->in
.idx
);
2370 ndr_print_ptr(ndr
, "info", r
->in
.info
);
2372 ndr_print_PNP_HwProfInfo(ndr
, "info", r
->in
.info
);
2374 ndr_print_uint32(ndr
, "size", r
->in
.size
);
2375 ndr_print_uint32(ndr
, "flags", r
->in
.flags
);
2378 if (flags
& NDR_OUT
) {
2379 ndr_print_struct(ndr
, "out", "PNP_GetHwProfInfo");
2381 ndr_print_ptr(ndr
, "info", r
->out
.info
);
2383 ndr_print_PNP_HwProfInfo(ndr
, "info", r
->out
.info
);
2385 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
2391 static enum ndr_err_code
ndr_push_PNP_AddEmptyLogConf(struct ndr_push
*ndr
, int flags
, const struct PNP_AddEmptyLogConf
*r
)
2393 if (flags
& NDR_IN
) {
2395 if (flags
& NDR_OUT
) {
2396 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
2398 return NDR_ERR_SUCCESS
;
2401 static enum ndr_err_code
ndr_pull_PNP_AddEmptyLogConf(struct ndr_pull
*ndr
, int flags
, struct PNP_AddEmptyLogConf
*r
)
2403 if (flags
& NDR_IN
) {
2405 if (flags
& NDR_OUT
) {
2406 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
2408 return NDR_ERR_SUCCESS
;
2411 _PUBLIC_
void ndr_print_PNP_AddEmptyLogConf(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_AddEmptyLogConf
*r
)
2413 ndr_print_struct(ndr
, name
, "PNP_AddEmptyLogConf");
2415 if (flags
& NDR_SET_VALUES
) {
2416 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2418 if (flags
& NDR_IN
) {
2419 ndr_print_struct(ndr
, "in", "PNP_AddEmptyLogConf");
2423 if (flags
& NDR_OUT
) {
2424 ndr_print_struct(ndr
, "out", "PNP_AddEmptyLogConf");
2426 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
2432 static enum ndr_err_code
ndr_push_PNP_FreeLogConf(struct ndr_push
*ndr
, int flags
, const struct PNP_FreeLogConf
*r
)
2434 if (flags
& NDR_IN
) {
2436 if (flags
& NDR_OUT
) {
2437 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
2439 return NDR_ERR_SUCCESS
;
2442 static enum ndr_err_code
ndr_pull_PNP_FreeLogConf(struct ndr_pull
*ndr
, int flags
, struct PNP_FreeLogConf
*r
)
2444 if (flags
& NDR_IN
) {
2446 if (flags
& NDR_OUT
) {
2447 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
2449 return NDR_ERR_SUCCESS
;
2452 _PUBLIC_
void ndr_print_PNP_FreeLogConf(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_FreeLogConf
*r
)
2454 ndr_print_struct(ndr
, name
, "PNP_FreeLogConf");
2456 if (flags
& NDR_SET_VALUES
) {
2457 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2459 if (flags
& NDR_IN
) {
2460 ndr_print_struct(ndr
, "in", "PNP_FreeLogConf");
2464 if (flags
& NDR_OUT
) {
2465 ndr_print_struct(ndr
, "out", "PNP_FreeLogConf");
2467 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
2473 static enum ndr_err_code
ndr_push_PNP_GetFirstLogConf(struct ndr_push
*ndr
, int flags
, const struct PNP_GetFirstLogConf
*r
)
2475 if (flags
& NDR_IN
) {
2477 if (flags
& NDR_OUT
) {
2478 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
2480 return NDR_ERR_SUCCESS
;
2483 static enum ndr_err_code
ndr_pull_PNP_GetFirstLogConf(struct ndr_pull
*ndr
, int flags
, struct PNP_GetFirstLogConf
*r
)
2485 if (flags
& NDR_IN
) {
2487 if (flags
& NDR_OUT
) {
2488 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
2490 return NDR_ERR_SUCCESS
;
2493 _PUBLIC_
void ndr_print_PNP_GetFirstLogConf(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetFirstLogConf
*r
)
2495 ndr_print_struct(ndr
, name
, "PNP_GetFirstLogConf");
2497 if (flags
& NDR_SET_VALUES
) {
2498 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2500 if (flags
& NDR_IN
) {
2501 ndr_print_struct(ndr
, "in", "PNP_GetFirstLogConf");
2505 if (flags
& NDR_OUT
) {
2506 ndr_print_struct(ndr
, "out", "PNP_GetFirstLogConf");
2508 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
2514 static enum ndr_err_code
ndr_push_PNP_GetNextLogConf(struct ndr_push
*ndr
, int flags
, const struct PNP_GetNextLogConf
*r
)
2516 if (flags
& NDR_IN
) {
2518 if (flags
& NDR_OUT
) {
2519 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
2521 return NDR_ERR_SUCCESS
;
2524 static enum ndr_err_code
ndr_pull_PNP_GetNextLogConf(struct ndr_pull
*ndr
, int flags
, struct PNP_GetNextLogConf
*r
)
2526 if (flags
& NDR_IN
) {
2528 if (flags
& NDR_OUT
) {
2529 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
2531 return NDR_ERR_SUCCESS
;
2534 _PUBLIC_
void ndr_print_PNP_GetNextLogConf(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetNextLogConf
*r
)
2536 ndr_print_struct(ndr
, name
, "PNP_GetNextLogConf");
2538 if (flags
& NDR_SET_VALUES
) {
2539 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2541 if (flags
& NDR_IN
) {
2542 ndr_print_struct(ndr
, "in", "PNP_GetNextLogConf");
2546 if (flags
& NDR_OUT
) {
2547 ndr_print_struct(ndr
, "out", "PNP_GetNextLogConf");
2549 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
2555 static enum ndr_err_code
ndr_push_PNP_GetLogConfPriority(struct ndr_push
*ndr
, int flags
, const struct PNP_GetLogConfPriority
*r
)
2557 if (flags
& NDR_IN
) {
2559 if (flags
& NDR_OUT
) {
2560 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
2562 return NDR_ERR_SUCCESS
;
2565 static enum ndr_err_code
ndr_pull_PNP_GetLogConfPriority(struct ndr_pull
*ndr
, int flags
, struct PNP_GetLogConfPriority
*r
)
2567 if (flags
& NDR_IN
) {
2569 if (flags
& NDR_OUT
) {
2570 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
2572 return NDR_ERR_SUCCESS
;
2575 _PUBLIC_
void ndr_print_PNP_GetLogConfPriority(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetLogConfPriority
*r
)
2577 ndr_print_struct(ndr
, name
, "PNP_GetLogConfPriority");
2579 if (flags
& NDR_SET_VALUES
) {
2580 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2582 if (flags
& NDR_IN
) {
2583 ndr_print_struct(ndr
, "in", "PNP_GetLogConfPriority");
2587 if (flags
& NDR_OUT
) {
2588 ndr_print_struct(ndr
, "out", "PNP_GetLogConfPriority");
2590 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
2596 static enum ndr_err_code
ndr_push_PNP_AddResDes(struct ndr_push
*ndr
, int flags
, const struct PNP_AddResDes
*r
)
2598 if (flags
& NDR_IN
) {
2600 if (flags
& NDR_OUT
) {
2601 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
2603 return NDR_ERR_SUCCESS
;
2606 static enum ndr_err_code
ndr_pull_PNP_AddResDes(struct ndr_pull
*ndr
, int flags
, struct PNP_AddResDes
*r
)
2608 if (flags
& NDR_IN
) {
2610 if (flags
& NDR_OUT
) {
2611 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
2613 return NDR_ERR_SUCCESS
;
2616 _PUBLIC_
void ndr_print_PNP_AddResDes(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_AddResDes
*r
)
2618 ndr_print_struct(ndr
, name
, "PNP_AddResDes");
2620 if (flags
& NDR_SET_VALUES
) {
2621 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2623 if (flags
& NDR_IN
) {
2624 ndr_print_struct(ndr
, "in", "PNP_AddResDes");
2628 if (flags
& NDR_OUT
) {
2629 ndr_print_struct(ndr
, "out", "PNP_AddResDes");
2631 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
2637 static enum ndr_err_code
ndr_push_PNP_FreeResDes(struct ndr_push
*ndr
, int flags
, const struct PNP_FreeResDes
*r
)
2639 if (flags
& NDR_IN
) {
2641 if (flags
& NDR_OUT
) {
2642 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
2644 return NDR_ERR_SUCCESS
;
2647 static enum ndr_err_code
ndr_pull_PNP_FreeResDes(struct ndr_pull
*ndr
, int flags
, struct PNP_FreeResDes
*r
)
2649 if (flags
& NDR_IN
) {
2651 if (flags
& NDR_OUT
) {
2652 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
2654 return NDR_ERR_SUCCESS
;
2657 _PUBLIC_
void ndr_print_PNP_FreeResDes(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_FreeResDes
*r
)
2659 ndr_print_struct(ndr
, name
, "PNP_FreeResDes");
2661 if (flags
& NDR_SET_VALUES
) {
2662 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2664 if (flags
& NDR_IN
) {
2665 ndr_print_struct(ndr
, "in", "PNP_FreeResDes");
2669 if (flags
& NDR_OUT
) {
2670 ndr_print_struct(ndr
, "out", "PNP_FreeResDes");
2672 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
2678 static enum ndr_err_code
ndr_push_PNP_GetNextResDes(struct ndr_push
*ndr
, int flags
, const struct PNP_GetNextResDes
*r
)
2680 if (flags
& NDR_IN
) {
2682 if (flags
& NDR_OUT
) {
2683 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
2685 return NDR_ERR_SUCCESS
;
2688 static enum ndr_err_code
ndr_pull_PNP_GetNextResDes(struct ndr_pull
*ndr
, int flags
, struct PNP_GetNextResDes
*r
)
2690 if (flags
& NDR_IN
) {
2692 if (flags
& NDR_OUT
) {
2693 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
2695 return NDR_ERR_SUCCESS
;
2698 _PUBLIC_
void ndr_print_PNP_GetNextResDes(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetNextResDes
*r
)
2700 ndr_print_struct(ndr
, name
, "PNP_GetNextResDes");
2702 if (flags
& NDR_SET_VALUES
) {
2703 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2705 if (flags
& NDR_IN
) {
2706 ndr_print_struct(ndr
, "in", "PNP_GetNextResDes");
2710 if (flags
& NDR_OUT
) {
2711 ndr_print_struct(ndr
, "out", "PNP_GetNextResDes");
2713 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
2719 static enum ndr_err_code
ndr_push_PNP_GetResDesData(struct ndr_push
*ndr
, int flags
, const struct PNP_GetResDesData
*r
)
2721 if (flags
& NDR_IN
) {
2723 if (flags
& NDR_OUT
) {
2724 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
2726 return NDR_ERR_SUCCESS
;
2729 static enum ndr_err_code
ndr_pull_PNP_GetResDesData(struct ndr_pull
*ndr
, int flags
, struct PNP_GetResDesData
*r
)
2731 if (flags
& NDR_IN
) {
2733 if (flags
& NDR_OUT
) {
2734 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
2736 return NDR_ERR_SUCCESS
;
2739 _PUBLIC_
void ndr_print_PNP_GetResDesData(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetResDesData
*r
)
2741 ndr_print_struct(ndr
, name
, "PNP_GetResDesData");
2743 if (flags
& NDR_SET_VALUES
) {
2744 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2746 if (flags
& NDR_IN
) {
2747 ndr_print_struct(ndr
, "in", "PNP_GetResDesData");
2751 if (flags
& NDR_OUT
) {
2752 ndr_print_struct(ndr
, "out", "PNP_GetResDesData");
2754 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
2760 static enum ndr_err_code
ndr_push_PNP_GetResDesDataSize(struct ndr_push
*ndr
, int flags
, const struct PNP_GetResDesDataSize
*r
)
2762 if (flags
& NDR_IN
) {
2764 if (flags
& NDR_OUT
) {
2765 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
2767 return NDR_ERR_SUCCESS
;
2770 static enum ndr_err_code
ndr_pull_PNP_GetResDesDataSize(struct ndr_pull
*ndr
, int flags
, struct PNP_GetResDesDataSize
*r
)
2772 if (flags
& NDR_IN
) {
2774 if (flags
& NDR_OUT
) {
2775 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
2777 return NDR_ERR_SUCCESS
;
2780 _PUBLIC_
void ndr_print_PNP_GetResDesDataSize(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetResDesDataSize
*r
)
2782 ndr_print_struct(ndr
, name
, "PNP_GetResDesDataSize");
2784 if (flags
& NDR_SET_VALUES
) {
2785 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2787 if (flags
& NDR_IN
) {
2788 ndr_print_struct(ndr
, "in", "PNP_GetResDesDataSize");
2792 if (flags
& NDR_OUT
) {
2793 ndr_print_struct(ndr
, "out", "PNP_GetResDesDataSize");
2795 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
2801 static enum ndr_err_code
ndr_push_PNP_ModifyResDes(struct ndr_push
*ndr
, int flags
, const struct PNP_ModifyResDes
*r
)
2803 if (flags
& NDR_IN
) {
2805 if (flags
& NDR_OUT
) {
2806 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
2808 return NDR_ERR_SUCCESS
;
2811 static enum ndr_err_code
ndr_pull_PNP_ModifyResDes(struct ndr_pull
*ndr
, int flags
, struct PNP_ModifyResDes
*r
)
2813 if (flags
& NDR_IN
) {
2815 if (flags
& NDR_OUT
) {
2816 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
2818 return NDR_ERR_SUCCESS
;
2821 _PUBLIC_
void ndr_print_PNP_ModifyResDes(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_ModifyResDes
*r
)
2823 ndr_print_struct(ndr
, name
, "PNP_ModifyResDes");
2825 if (flags
& NDR_SET_VALUES
) {
2826 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2828 if (flags
& NDR_IN
) {
2829 ndr_print_struct(ndr
, "in", "PNP_ModifyResDes");
2833 if (flags
& NDR_OUT
) {
2834 ndr_print_struct(ndr
, "out", "PNP_ModifyResDes");
2836 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
2842 static enum ndr_err_code
ndr_push_PNP_DetectResourceLimit(struct ndr_push
*ndr
, int flags
, const struct PNP_DetectResourceLimit
*r
)
2844 if (flags
& NDR_IN
) {
2846 if (flags
& NDR_OUT
) {
2847 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
2849 return NDR_ERR_SUCCESS
;
2852 static enum ndr_err_code
ndr_pull_PNP_DetectResourceLimit(struct ndr_pull
*ndr
, int flags
, struct PNP_DetectResourceLimit
*r
)
2854 if (flags
& NDR_IN
) {
2856 if (flags
& NDR_OUT
) {
2857 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
2859 return NDR_ERR_SUCCESS
;
2862 _PUBLIC_
void ndr_print_PNP_DetectResourceLimit(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_DetectResourceLimit
*r
)
2864 ndr_print_struct(ndr
, name
, "PNP_DetectResourceLimit");
2866 if (flags
& NDR_SET_VALUES
) {
2867 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2869 if (flags
& NDR_IN
) {
2870 ndr_print_struct(ndr
, "in", "PNP_DetectResourceLimit");
2874 if (flags
& NDR_OUT
) {
2875 ndr_print_struct(ndr
, "out", "PNP_DetectResourceLimit");
2877 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
2883 static enum ndr_err_code
ndr_push_PNP_QueryResConfList(struct ndr_push
*ndr
, int flags
, const struct PNP_QueryResConfList
*r
)
2885 if (flags
& NDR_IN
) {
2887 if (flags
& NDR_OUT
) {
2888 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
2890 return NDR_ERR_SUCCESS
;
2893 static enum ndr_err_code
ndr_pull_PNP_QueryResConfList(struct ndr_pull
*ndr
, int flags
, struct PNP_QueryResConfList
*r
)
2895 if (flags
& NDR_IN
) {
2897 if (flags
& NDR_OUT
) {
2898 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
2900 return NDR_ERR_SUCCESS
;
2903 _PUBLIC_
void ndr_print_PNP_QueryResConfList(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_QueryResConfList
*r
)
2905 ndr_print_struct(ndr
, name
, "PNP_QueryResConfList");
2907 if (flags
& NDR_SET_VALUES
) {
2908 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2910 if (flags
& NDR_IN
) {
2911 ndr_print_struct(ndr
, "in", "PNP_QueryResConfList");
2915 if (flags
& NDR_OUT
) {
2916 ndr_print_struct(ndr
, "out", "PNP_QueryResConfList");
2918 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
2924 static enum ndr_err_code
ndr_push_PNP_SetHwProf(struct ndr_push
*ndr
, int flags
, const struct PNP_SetHwProf
*r
)
2926 if (flags
& NDR_IN
) {
2928 if (flags
& NDR_OUT
) {
2929 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
2931 return NDR_ERR_SUCCESS
;
2934 static enum ndr_err_code
ndr_pull_PNP_SetHwProf(struct ndr_pull
*ndr
, int flags
, struct PNP_SetHwProf
*r
)
2936 if (flags
& NDR_IN
) {
2938 if (flags
& NDR_OUT
) {
2939 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
2941 return NDR_ERR_SUCCESS
;
2944 _PUBLIC_
void ndr_print_PNP_SetHwProf(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_SetHwProf
*r
)
2946 ndr_print_struct(ndr
, name
, "PNP_SetHwProf");
2948 if (flags
& NDR_SET_VALUES
) {
2949 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2951 if (flags
& NDR_IN
) {
2952 ndr_print_struct(ndr
, "in", "PNP_SetHwProf");
2956 if (flags
& NDR_OUT
) {
2957 ndr_print_struct(ndr
, "out", "PNP_SetHwProf");
2959 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
2965 static enum ndr_err_code
ndr_push_PNP_QueryArbitratorFreeData(struct ndr_push
*ndr
, int flags
, const struct PNP_QueryArbitratorFreeData
*r
)
2967 if (flags
& NDR_IN
) {
2969 if (flags
& NDR_OUT
) {
2970 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
2972 return NDR_ERR_SUCCESS
;
2975 static enum ndr_err_code
ndr_pull_PNP_QueryArbitratorFreeData(struct ndr_pull
*ndr
, int flags
, struct PNP_QueryArbitratorFreeData
*r
)
2977 if (flags
& NDR_IN
) {
2979 if (flags
& NDR_OUT
) {
2980 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
2982 return NDR_ERR_SUCCESS
;
2985 _PUBLIC_
void ndr_print_PNP_QueryArbitratorFreeData(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_QueryArbitratorFreeData
*r
)
2987 ndr_print_struct(ndr
, name
, "PNP_QueryArbitratorFreeData");
2989 if (flags
& NDR_SET_VALUES
) {
2990 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2992 if (flags
& NDR_IN
) {
2993 ndr_print_struct(ndr
, "in", "PNP_QueryArbitratorFreeData");
2997 if (flags
& NDR_OUT
) {
2998 ndr_print_struct(ndr
, "out", "PNP_QueryArbitratorFreeData");
3000 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
3006 static enum ndr_err_code
ndr_push_PNP_QueryArbitratorFreeSize(struct ndr_push
*ndr
, int flags
, const struct PNP_QueryArbitratorFreeSize
*r
)
3008 if (flags
& NDR_IN
) {
3010 if (flags
& NDR_OUT
) {
3011 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
3013 return NDR_ERR_SUCCESS
;
3016 static enum ndr_err_code
ndr_pull_PNP_QueryArbitratorFreeSize(struct ndr_pull
*ndr
, int flags
, struct PNP_QueryArbitratorFreeSize
*r
)
3018 if (flags
& NDR_IN
) {
3020 if (flags
& NDR_OUT
) {
3021 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
3023 return NDR_ERR_SUCCESS
;
3026 _PUBLIC_
void ndr_print_PNP_QueryArbitratorFreeSize(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_QueryArbitratorFreeSize
*r
)
3028 ndr_print_struct(ndr
, name
, "PNP_QueryArbitratorFreeSize");
3030 if (flags
& NDR_SET_VALUES
) {
3031 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
3033 if (flags
& NDR_IN
) {
3034 ndr_print_struct(ndr
, "in", "PNP_QueryArbitratorFreeSize");
3038 if (flags
& NDR_OUT
) {
3039 ndr_print_struct(ndr
, "out", "PNP_QueryArbitratorFreeSize");
3041 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
3047 static enum ndr_err_code
ndr_push_PNP_RunDetection(struct ndr_push
*ndr
, int flags
, const struct PNP_RunDetection
*r
)
3049 if (flags
& NDR_IN
) {
3051 if (flags
& NDR_OUT
) {
3052 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
3054 return NDR_ERR_SUCCESS
;
3057 static enum ndr_err_code
ndr_pull_PNP_RunDetection(struct ndr_pull
*ndr
, int flags
, struct PNP_RunDetection
*r
)
3059 if (flags
& NDR_IN
) {
3061 if (flags
& NDR_OUT
) {
3062 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
3064 return NDR_ERR_SUCCESS
;
3067 _PUBLIC_
void ndr_print_PNP_RunDetection(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_RunDetection
*r
)
3069 ndr_print_struct(ndr
, name
, "PNP_RunDetection");
3071 if (flags
& NDR_SET_VALUES
) {
3072 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
3074 if (flags
& NDR_IN
) {
3075 ndr_print_struct(ndr
, "in", "PNP_RunDetection");
3079 if (flags
& NDR_OUT
) {
3080 ndr_print_struct(ndr
, "out", "PNP_RunDetection");
3082 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
3088 static enum ndr_err_code
ndr_push_PNP_RegisterNotification(struct ndr_push
*ndr
, int flags
, const struct PNP_RegisterNotification
*r
)
3090 if (flags
& NDR_IN
) {
3092 if (flags
& NDR_OUT
) {
3093 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
3095 return NDR_ERR_SUCCESS
;
3098 static enum ndr_err_code
ndr_pull_PNP_RegisterNotification(struct ndr_pull
*ndr
, int flags
, struct PNP_RegisterNotification
*r
)
3100 if (flags
& NDR_IN
) {
3102 if (flags
& NDR_OUT
) {
3103 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
3105 return NDR_ERR_SUCCESS
;
3108 _PUBLIC_
void ndr_print_PNP_RegisterNotification(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_RegisterNotification
*r
)
3110 ndr_print_struct(ndr
, name
, "PNP_RegisterNotification");
3112 if (flags
& NDR_SET_VALUES
) {
3113 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
3115 if (flags
& NDR_IN
) {
3116 ndr_print_struct(ndr
, "in", "PNP_RegisterNotification");
3120 if (flags
& NDR_OUT
) {
3121 ndr_print_struct(ndr
, "out", "PNP_RegisterNotification");
3123 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
3129 static enum ndr_err_code
ndr_push_PNP_UnregisterNotification(struct ndr_push
*ndr
, int flags
, const struct PNP_UnregisterNotification
*r
)
3131 if (flags
& NDR_IN
) {
3133 if (flags
& NDR_OUT
) {
3134 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
3136 return NDR_ERR_SUCCESS
;
3139 static enum ndr_err_code
ndr_pull_PNP_UnregisterNotification(struct ndr_pull
*ndr
, int flags
, struct PNP_UnregisterNotification
*r
)
3141 if (flags
& NDR_IN
) {
3143 if (flags
& NDR_OUT
) {
3144 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
3146 return NDR_ERR_SUCCESS
;
3149 _PUBLIC_
void ndr_print_PNP_UnregisterNotification(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_UnregisterNotification
*r
)
3151 ndr_print_struct(ndr
, name
, "PNP_UnregisterNotification");
3153 if (flags
& NDR_SET_VALUES
) {
3154 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
3156 if (flags
& NDR_IN
) {
3157 ndr_print_struct(ndr
, "in", "PNP_UnregisterNotification");
3161 if (flags
& NDR_OUT
) {
3162 ndr_print_struct(ndr
, "out", "PNP_UnregisterNotification");
3164 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
3170 static enum ndr_err_code
ndr_push_PNP_GetCustomDevProp(struct ndr_push
*ndr
, int flags
, const struct PNP_GetCustomDevProp
*r
)
3172 if (flags
& NDR_IN
) {
3174 if (flags
& NDR_OUT
) {
3175 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
3177 return NDR_ERR_SUCCESS
;
3180 static enum ndr_err_code
ndr_pull_PNP_GetCustomDevProp(struct ndr_pull
*ndr
, int flags
, struct PNP_GetCustomDevProp
*r
)
3182 if (flags
& NDR_IN
) {
3184 if (flags
& NDR_OUT
) {
3185 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
3187 return NDR_ERR_SUCCESS
;
3190 _PUBLIC_
void ndr_print_PNP_GetCustomDevProp(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetCustomDevProp
*r
)
3192 ndr_print_struct(ndr
, name
, "PNP_GetCustomDevProp");
3194 if (flags
& NDR_SET_VALUES
) {
3195 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
3197 if (flags
& NDR_IN
) {
3198 ndr_print_struct(ndr
, "in", "PNP_GetCustomDevProp");
3202 if (flags
& NDR_OUT
) {
3203 ndr_print_struct(ndr
, "out", "PNP_GetCustomDevProp");
3205 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
3211 static enum ndr_err_code
ndr_push_PNP_GetVersionInternal(struct ndr_push
*ndr
, int flags
, const struct PNP_GetVersionInternal
*r
)
3213 if (flags
& NDR_IN
) {
3215 if (flags
& NDR_OUT
) {
3216 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
3218 return NDR_ERR_SUCCESS
;
3221 static enum ndr_err_code
ndr_pull_PNP_GetVersionInternal(struct ndr_pull
*ndr
, int flags
, struct PNP_GetVersionInternal
*r
)
3223 if (flags
& NDR_IN
) {
3225 if (flags
& NDR_OUT
) {
3226 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
3228 return NDR_ERR_SUCCESS
;
3231 _PUBLIC_
void ndr_print_PNP_GetVersionInternal(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetVersionInternal
*r
)
3233 ndr_print_struct(ndr
, name
, "PNP_GetVersionInternal");
3235 if (flags
& NDR_SET_VALUES
) {
3236 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
3238 if (flags
& NDR_IN
) {
3239 ndr_print_struct(ndr
, "in", "PNP_GetVersionInternal");
3243 if (flags
& NDR_OUT
) {
3244 ndr_print_struct(ndr
, "out", "PNP_GetVersionInternal");
3246 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
3252 static enum ndr_err_code
ndr_push_PNP_GetBlockedDriverInfo(struct ndr_push
*ndr
, int flags
, const struct PNP_GetBlockedDriverInfo
*r
)
3254 if (flags
& NDR_IN
) {
3256 if (flags
& NDR_OUT
) {
3257 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
3259 return NDR_ERR_SUCCESS
;
3262 static enum ndr_err_code
ndr_pull_PNP_GetBlockedDriverInfo(struct ndr_pull
*ndr
, int flags
, struct PNP_GetBlockedDriverInfo
*r
)
3264 if (flags
& NDR_IN
) {
3266 if (flags
& NDR_OUT
) {
3267 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
3269 return NDR_ERR_SUCCESS
;
3272 _PUBLIC_
void ndr_print_PNP_GetBlockedDriverInfo(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetBlockedDriverInfo
*r
)
3274 ndr_print_struct(ndr
, name
, "PNP_GetBlockedDriverInfo");
3276 if (flags
& NDR_SET_VALUES
) {
3277 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
3279 if (flags
& NDR_IN
) {
3280 ndr_print_struct(ndr
, "in", "PNP_GetBlockedDriverInfo");
3284 if (flags
& NDR_OUT
) {
3285 ndr_print_struct(ndr
, "out", "PNP_GetBlockedDriverInfo");
3287 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
3293 static enum ndr_err_code
ndr_push_PNP_GetServerSideDeviceInstallFlags(struct ndr_push
*ndr
, int flags
, const struct PNP_GetServerSideDeviceInstallFlags
*r
)
3295 if (flags
& NDR_IN
) {
3297 if (flags
& NDR_OUT
) {
3298 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
3300 return NDR_ERR_SUCCESS
;
3303 static enum ndr_err_code
ndr_pull_PNP_GetServerSideDeviceInstallFlags(struct ndr_pull
*ndr
, int flags
, struct PNP_GetServerSideDeviceInstallFlags
*r
)
3305 if (flags
& NDR_IN
) {
3307 if (flags
& NDR_OUT
) {
3308 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
3310 return NDR_ERR_SUCCESS
;
3313 _PUBLIC_
void ndr_print_PNP_GetServerSideDeviceInstallFlags(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetServerSideDeviceInstallFlags
*r
)
3315 ndr_print_struct(ndr
, name
, "PNP_GetServerSideDeviceInstallFlags");
3317 if (flags
& NDR_SET_VALUES
) {
3318 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
3320 if (flags
& NDR_IN
) {
3321 ndr_print_struct(ndr
, "in", "PNP_GetServerSideDeviceInstallFlags");
3325 if (flags
& NDR_OUT
) {
3326 ndr_print_struct(ndr
, "out", "PNP_GetServerSideDeviceInstallFlags");
3328 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
3334 static const struct ndr_interface_call ntsvcs_calls
[] = {
3337 sizeof(struct PNP_Disconnect
),
3338 (ndr_push_flags_fn_t
) ndr_push_PNP_Disconnect
,
3339 (ndr_pull_flags_fn_t
) ndr_pull_PNP_Disconnect
,
3340 (ndr_print_function_t
) ndr_print_PNP_Disconnect
,
3345 sizeof(struct PNP_Connect
),
3346 (ndr_push_flags_fn_t
) ndr_push_PNP_Connect
,
3347 (ndr_pull_flags_fn_t
) ndr_pull_PNP_Connect
,
3348 (ndr_print_function_t
) ndr_print_PNP_Connect
,
3353 sizeof(struct PNP_GetVersion
),
3354 (ndr_push_flags_fn_t
) ndr_push_PNP_GetVersion
,
3355 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetVersion
,
3356 (ndr_print_function_t
) ndr_print_PNP_GetVersion
,
3360 "PNP_GetGlobalState",
3361 sizeof(struct PNP_GetGlobalState
),
3362 (ndr_push_flags_fn_t
) ndr_push_PNP_GetGlobalState
,
3363 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetGlobalState
,
3364 (ndr_print_function_t
) ndr_print_PNP_GetGlobalState
,
3368 "PNP_InitDetection",
3369 sizeof(struct PNP_InitDetection
),
3370 (ndr_push_flags_fn_t
) ndr_push_PNP_InitDetection
,
3371 (ndr_pull_flags_fn_t
) ndr_pull_PNP_InitDetection
,
3372 (ndr_print_function_t
) ndr_print_PNP_InitDetection
,
3377 sizeof(struct PNP_ReportLogOn
),
3378 (ndr_push_flags_fn_t
) ndr_push_PNP_ReportLogOn
,
3379 (ndr_pull_flags_fn_t
) ndr_pull_PNP_ReportLogOn
,
3380 (ndr_print_function_t
) ndr_print_PNP_ReportLogOn
,
3384 "PNP_ValidateDeviceInstance",
3385 sizeof(struct PNP_ValidateDeviceInstance
),
3386 (ndr_push_flags_fn_t
) ndr_push_PNP_ValidateDeviceInstance
,
3387 (ndr_pull_flags_fn_t
) ndr_pull_PNP_ValidateDeviceInstance
,
3388 (ndr_print_function_t
) ndr_print_PNP_ValidateDeviceInstance
,
3392 "PNP_GetRootDeviceInstance",
3393 sizeof(struct PNP_GetRootDeviceInstance
),
3394 (ndr_push_flags_fn_t
) ndr_push_PNP_GetRootDeviceInstance
,
3395 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetRootDeviceInstance
,
3396 (ndr_print_function_t
) ndr_print_PNP_GetRootDeviceInstance
,
3400 "PNP_GetRelatedDeviceInstance",
3401 sizeof(struct PNP_GetRelatedDeviceInstance
),
3402 (ndr_push_flags_fn_t
) ndr_push_PNP_GetRelatedDeviceInstance
,
3403 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetRelatedDeviceInstance
,
3404 (ndr_print_function_t
) ndr_print_PNP_GetRelatedDeviceInstance
,
3408 "PNP_EnumerateSubKeys",
3409 sizeof(struct PNP_EnumerateSubKeys
),
3410 (ndr_push_flags_fn_t
) ndr_push_PNP_EnumerateSubKeys
,
3411 (ndr_pull_flags_fn_t
) ndr_pull_PNP_EnumerateSubKeys
,
3412 (ndr_print_function_t
) ndr_print_PNP_EnumerateSubKeys
,
3416 "PNP_GetDeviceList",
3417 sizeof(struct PNP_GetDeviceList
),
3418 (ndr_push_flags_fn_t
) ndr_push_PNP_GetDeviceList
,
3419 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetDeviceList
,
3420 (ndr_print_function_t
) ndr_print_PNP_GetDeviceList
,
3424 "PNP_GetDeviceListSize",
3425 sizeof(struct PNP_GetDeviceListSize
),
3426 (ndr_push_flags_fn_t
) ndr_push_PNP_GetDeviceListSize
,
3427 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetDeviceListSize
,
3428 (ndr_print_function_t
) ndr_print_PNP_GetDeviceListSize
,
3433 sizeof(struct PNP_GetDepth
),
3434 (ndr_push_flags_fn_t
) ndr_push_PNP_GetDepth
,
3435 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetDepth
,
3436 (ndr_print_function_t
) ndr_print_PNP_GetDepth
,
3440 "PNP_GetDeviceRegProp",
3441 sizeof(struct PNP_GetDeviceRegProp
),
3442 (ndr_push_flags_fn_t
) ndr_push_PNP_GetDeviceRegProp
,
3443 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetDeviceRegProp
,
3444 (ndr_print_function_t
) ndr_print_PNP_GetDeviceRegProp
,
3448 "PNP_SetDeviceRegProp",
3449 sizeof(struct PNP_SetDeviceRegProp
),
3450 (ndr_push_flags_fn_t
) ndr_push_PNP_SetDeviceRegProp
,
3451 (ndr_pull_flags_fn_t
) ndr_pull_PNP_SetDeviceRegProp
,
3452 (ndr_print_function_t
) ndr_print_PNP_SetDeviceRegProp
,
3456 "PNP_GetClassInstance",
3457 sizeof(struct PNP_GetClassInstance
),
3458 (ndr_push_flags_fn_t
) ndr_push_PNP_GetClassInstance
,
3459 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetClassInstance
,
3460 (ndr_print_function_t
) ndr_print_PNP_GetClassInstance
,
3465 sizeof(struct PNP_CreateKey
),
3466 (ndr_push_flags_fn_t
) ndr_push_PNP_CreateKey
,
3467 (ndr_pull_flags_fn_t
) ndr_pull_PNP_CreateKey
,
3468 (ndr_print_function_t
) ndr_print_PNP_CreateKey
,
3472 "PNP_DeleteRegistryKey",
3473 sizeof(struct PNP_DeleteRegistryKey
),
3474 (ndr_push_flags_fn_t
) ndr_push_PNP_DeleteRegistryKey
,
3475 (ndr_pull_flags_fn_t
) ndr_pull_PNP_DeleteRegistryKey
,
3476 (ndr_print_function_t
) ndr_print_PNP_DeleteRegistryKey
,
3480 "PNP_GetClassCount",
3481 sizeof(struct PNP_GetClassCount
),
3482 (ndr_push_flags_fn_t
) ndr_push_PNP_GetClassCount
,
3483 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetClassCount
,
3484 (ndr_print_function_t
) ndr_print_PNP_GetClassCount
,
3489 sizeof(struct PNP_GetClassName
),
3490 (ndr_push_flags_fn_t
) ndr_push_PNP_GetClassName
,
3491 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetClassName
,
3492 (ndr_print_function_t
) ndr_print_PNP_GetClassName
,
3496 "PNP_DeleteClassKey",
3497 sizeof(struct PNP_DeleteClassKey
),
3498 (ndr_push_flags_fn_t
) ndr_push_PNP_DeleteClassKey
,
3499 (ndr_pull_flags_fn_t
) ndr_pull_PNP_DeleteClassKey
,
3500 (ndr_print_function_t
) ndr_print_PNP_DeleteClassKey
,
3504 "PNP_GetInterfaceDeviceAlias",
3505 sizeof(struct PNP_GetInterfaceDeviceAlias
),
3506 (ndr_push_flags_fn_t
) ndr_push_PNP_GetInterfaceDeviceAlias
,
3507 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetInterfaceDeviceAlias
,
3508 (ndr_print_function_t
) ndr_print_PNP_GetInterfaceDeviceAlias
,
3512 "PNP_GetInterfaceDeviceList",
3513 sizeof(struct PNP_GetInterfaceDeviceList
),
3514 (ndr_push_flags_fn_t
) ndr_push_PNP_GetInterfaceDeviceList
,
3515 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetInterfaceDeviceList
,
3516 (ndr_print_function_t
) ndr_print_PNP_GetInterfaceDeviceList
,
3520 "PNP_GetInterfaceDeviceListSize",
3521 sizeof(struct PNP_GetInterfaceDeviceListSize
),
3522 (ndr_push_flags_fn_t
) ndr_push_PNP_GetInterfaceDeviceListSize
,
3523 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetInterfaceDeviceListSize
,
3524 (ndr_print_function_t
) ndr_print_PNP_GetInterfaceDeviceListSize
,
3528 "PNP_RegisterDeviceClassAssociation",
3529 sizeof(struct PNP_RegisterDeviceClassAssociation
),
3530 (ndr_push_flags_fn_t
) ndr_push_PNP_RegisterDeviceClassAssociation
,
3531 (ndr_pull_flags_fn_t
) ndr_pull_PNP_RegisterDeviceClassAssociation
,
3532 (ndr_print_function_t
) ndr_print_PNP_RegisterDeviceClassAssociation
,
3536 "PNP_UnregisterDeviceClassAssociation",
3537 sizeof(struct PNP_UnregisterDeviceClassAssociation
),
3538 (ndr_push_flags_fn_t
) ndr_push_PNP_UnregisterDeviceClassAssociation
,
3539 (ndr_pull_flags_fn_t
) ndr_pull_PNP_UnregisterDeviceClassAssociation
,
3540 (ndr_print_function_t
) ndr_print_PNP_UnregisterDeviceClassAssociation
,
3544 "PNP_GetClassRegProp",
3545 sizeof(struct PNP_GetClassRegProp
),
3546 (ndr_push_flags_fn_t
) ndr_push_PNP_GetClassRegProp
,
3547 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetClassRegProp
,
3548 (ndr_print_function_t
) ndr_print_PNP_GetClassRegProp
,
3552 "PNP_SetClassRegProp",
3553 sizeof(struct PNP_SetClassRegProp
),
3554 (ndr_push_flags_fn_t
) ndr_push_PNP_SetClassRegProp
,
3555 (ndr_pull_flags_fn_t
) ndr_pull_PNP_SetClassRegProp
,
3556 (ndr_print_function_t
) ndr_print_PNP_SetClassRegProp
,
3560 "PNP_CreateDevInst",
3561 sizeof(struct PNP_CreateDevInst
),
3562 (ndr_push_flags_fn_t
) ndr_push_PNP_CreateDevInst
,
3563 (ndr_pull_flags_fn_t
) ndr_pull_PNP_CreateDevInst
,
3564 (ndr_print_function_t
) ndr_print_PNP_CreateDevInst
,
3568 "PNP_DeviceInstanceAction",
3569 sizeof(struct PNP_DeviceInstanceAction
),
3570 (ndr_push_flags_fn_t
) ndr_push_PNP_DeviceInstanceAction
,
3571 (ndr_pull_flags_fn_t
) ndr_pull_PNP_DeviceInstanceAction
,
3572 (ndr_print_function_t
) ndr_print_PNP_DeviceInstanceAction
,
3576 "PNP_GetDeviceStatus",
3577 sizeof(struct PNP_GetDeviceStatus
),
3578 (ndr_push_flags_fn_t
) ndr_push_PNP_GetDeviceStatus
,
3579 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetDeviceStatus
,
3580 (ndr_print_function_t
) ndr_print_PNP_GetDeviceStatus
,
3584 "PNP_SetDeviceProblem",
3585 sizeof(struct PNP_SetDeviceProblem
),
3586 (ndr_push_flags_fn_t
) ndr_push_PNP_SetDeviceProblem
,
3587 (ndr_pull_flags_fn_t
) ndr_pull_PNP_SetDeviceProblem
,
3588 (ndr_print_function_t
) ndr_print_PNP_SetDeviceProblem
,
3592 "PNP_DisableDevInst",
3593 sizeof(struct PNP_DisableDevInst
),
3594 (ndr_push_flags_fn_t
) ndr_push_PNP_DisableDevInst
,
3595 (ndr_pull_flags_fn_t
) ndr_pull_PNP_DisableDevInst
,
3596 (ndr_print_function_t
) ndr_print_PNP_DisableDevInst
,
3600 "PNP_UninstallDevInst",
3601 sizeof(struct PNP_UninstallDevInst
),
3602 (ndr_push_flags_fn_t
) ndr_push_PNP_UninstallDevInst
,
3603 (ndr_pull_flags_fn_t
) ndr_pull_PNP_UninstallDevInst
,
3604 (ndr_print_function_t
) ndr_print_PNP_UninstallDevInst
,
3609 sizeof(struct PNP_AddID
),
3610 (ndr_push_flags_fn_t
) ndr_push_PNP_AddID
,
3611 (ndr_pull_flags_fn_t
) ndr_pull_PNP_AddID
,
3612 (ndr_print_function_t
) ndr_print_PNP_AddID
,
3616 "PNP_RegisterDriver",
3617 sizeof(struct PNP_RegisterDriver
),
3618 (ndr_push_flags_fn_t
) ndr_push_PNP_RegisterDriver
,
3619 (ndr_pull_flags_fn_t
) ndr_pull_PNP_RegisterDriver
,
3620 (ndr_print_function_t
) ndr_print_PNP_RegisterDriver
,
3625 sizeof(struct PNP_QueryRemove
),
3626 (ndr_push_flags_fn_t
) ndr_push_PNP_QueryRemove
,
3627 (ndr_pull_flags_fn_t
) ndr_pull_PNP_QueryRemove
,
3628 (ndr_print_function_t
) ndr_print_PNP_QueryRemove
,
3632 "PNP_RequestDeviceEject",
3633 sizeof(struct PNP_RequestDeviceEject
),
3634 (ndr_push_flags_fn_t
) ndr_push_PNP_RequestDeviceEject
,
3635 (ndr_pull_flags_fn_t
) ndr_pull_PNP_RequestDeviceEject
,
3636 (ndr_print_function_t
) ndr_print_PNP_RequestDeviceEject
,
3640 "PNP_IsDockStationPresent",
3641 sizeof(struct PNP_IsDockStationPresent
),
3642 (ndr_push_flags_fn_t
) ndr_push_PNP_IsDockStationPresent
,
3643 (ndr_pull_flags_fn_t
) ndr_pull_PNP_IsDockStationPresent
,
3644 (ndr_print_function_t
) ndr_print_PNP_IsDockStationPresent
,
3648 "PNP_RequestEjectPC",
3649 sizeof(struct PNP_RequestEjectPC
),
3650 (ndr_push_flags_fn_t
) ndr_push_PNP_RequestEjectPC
,
3651 (ndr_pull_flags_fn_t
) ndr_pull_PNP_RequestEjectPC
,
3652 (ndr_print_function_t
) ndr_print_PNP_RequestEjectPC
,
3657 sizeof(struct PNP_HwProfFlags
),
3658 (ndr_push_flags_fn_t
) ndr_push_PNP_HwProfFlags
,
3659 (ndr_pull_flags_fn_t
) ndr_pull_PNP_HwProfFlags
,
3660 (ndr_print_function_t
) ndr_print_PNP_HwProfFlags
,
3664 "PNP_GetHwProfInfo",
3665 sizeof(struct PNP_GetHwProfInfo
),
3666 (ndr_push_flags_fn_t
) ndr_push_PNP_GetHwProfInfo
,
3667 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetHwProfInfo
,
3668 (ndr_print_function_t
) ndr_print_PNP_GetHwProfInfo
,
3672 "PNP_AddEmptyLogConf",
3673 sizeof(struct PNP_AddEmptyLogConf
),
3674 (ndr_push_flags_fn_t
) ndr_push_PNP_AddEmptyLogConf
,
3675 (ndr_pull_flags_fn_t
) ndr_pull_PNP_AddEmptyLogConf
,
3676 (ndr_print_function_t
) ndr_print_PNP_AddEmptyLogConf
,
3681 sizeof(struct PNP_FreeLogConf
),
3682 (ndr_push_flags_fn_t
) ndr_push_PNP_FreeLogConf
,
3683 (ndr_pull_flags_fn_t
) ndr_pull_PNP_FreeLogConf
,
3684 (ndr_print_function_t
) ndr_print_PNP_FreeLogConf
,
3688 "PNP_GetFirstLogConf",
3689 sizeof(struct PNP_GetFirstLogConf
),
3690 (ndr_push_flags_fn_t
) ndr_push_PNP_GetFirstLogConf
,
3691 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetFirstLogConf
,
3692 (ndr_print_function_t
) ndr_print_PNP_GetFirstLogConf
,
3696 "PNP_GetNextLogConf",
3697 sizeof(struct PNP_GetNextLogConf
),
3698 (ndr_push_flags_fn_t
) ndr_push_PNP_GetNextLogConf
,
3699 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetNextLogConf
,
3700 (ndr_print_function_t
) ndr_print_PNP_GetNextLogConf
,
3704 "PNP_GetLogConfPriority",
3705 sizeof(struct PNP_GetLogConfPriority
),
3706 (ndr_push_flags_fn_t
) ndr_push_PNP_GetLogConfPriority
,
3707 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetLogConfPriority
,
3708 (ndr_print_function_t
) ndr_print_PNP_GetLogConfPriority
,
3713 sizeof(struct PNP_AddResDes
),
3714 (ndr_push_flags_fn_t
) ndr_push_PNP_AddResDes
,
3715 (ndr_pull_flags_fn_t
) ndr_pull_PNP_AddResDes
,
3716 (ndr_print_function_t
) ndr_print_PNP_AddResDes
,
3721 sizeof(struct PNP_FreeResDes
),
3722 (ndr_push_flags_fn_t
) ndr_push_PNP_FreeResDes
,
3723 (ndr_pull_flags_fn_t
) ndr_pull_PNP_FreeResDes
,
3724 (ndr_print_function_t
) ndr_print_PNP_FreeResDes
,
3728 "PNP_GetNextResDes",
3729 sizeof(struct PNP_GetNextResDes
),
3730 (ndr_push_flags_fn_t
) ndr_push_PNP_GetNextResDes
,
3731 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetNextResDes
,
3732 (ndr_print_function_t
) ndr_print_PNP_GetNextResDes
,
3736 "PNP_GetResDesData",
3737 sizeof(struct PNP_GetResDesData
),
3738 (ndr_push_flags_fn_t
) ndr_push_PNP_GetResDesData
,
3739 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetResDesData
,
3740 (ndr_print_function_t
) ndr_print_PNP_GetResDesData
,
3744 "PNP_GetResDesDataSize",
3745 sizeof(struct PNP_GetResDesDataSize
),
3746 (ndr_push_flags_fn_t
) ndr_push_PNP_GetResDesDataSize
,
3747 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetResDesDataSize
,
3748 (ndr_print_function_t
) ndr_print_PNP_GetResDesDataSize
,
3753 sizeof(struct PNP_ModifyResDes
),
3754 (ndr_push_flags_fn_t
) ndr_push_PNP_ModifyResDes
,
3755 (ndr_pull_flags_fn_t
) ndr_pull_PNP_ModifyResDes
,
3756 (ndr_print_function_t
) ndr_print_PNP_ModifyResDes
,
3760 "PNP_DetectResourceLimit",
3761 sizeof(struct PNP_DetectResourceLimit
),
3762 (ndr_push_flags_fn_t
) ndr_push_PNP_DetectResourceLimit
,
3763 (ndr_pull_flags_fn_t
) ndr_pull_PNP_DetectResourceLimit
,
3764 (ndr_print_function_t
) ndr_print_PNP_DetectResourceLimit
,
3768 "PNP_QueryResConfList",
3769 sizeof(struct PNP_QueryResConfList
),
3770 (ndr_push_flags_fn_t
) ndr_push_PNP_QueryResConfList
,
3771 (ndr_pull_flags_fn_t
) ndr_pull_PNP_QueryResConfList
,
3772 (ndr_print_function_t
) ndr_print_PNP_QueryResConfList
,
3777 sizeof(struct PNP_SetHwProf
),
3778 (ndr_push_flags_fn_t
) ndr_push_PNP_SetHwProf
,
3779 (ndr_pull_flags_fn_t
) ndr_pull_PNP_SetHwProf
,
3780 (ndr_print_function_t
) ndr_print_PNP_SetHwProf
,
3784 "PNP_QueryArbitratorFreeData",
3785 sizeof(struct PNP_QueryArbitratorFreeData
),
3786 (ndr_push_flags_fn_t
) ndr_push_PNP_QueryArbitratorFreeData
,
3787 (ndr_pull_flags_fn_t
) ndr_pull_PNP_QueryArbitratorFreeData
,
3788 (ndr_print_function_t
) ndr_print_PNP_QueryArbitratorFreeData
,
3792 "PNP_QueryArbitratorFreeSize",
3793 sizeof(struct PNP_QueryArbitratorFreeSize
),
3794 (ndr_push_flags_fn_t
) ndr_push_PNP_QueryArbitratorFreeSize
,
3795 (ndr_pull_flags_fn_t
) ndr_pull_PNP_QueryArbitratorFreeSize
,
3796 (ndr_print_function_t
) ndr_print_PNP_QueryArbitratorFreeSize
,
3801 sizeof(struct PNP_RunDetection
),
3802 (ndr_push_flags_fn_t
) ndr_push_PNP_RunDetection
,
3803 (ndr_pull_flags_fn_t
) ndr_pull_PNP_RunDetection
,
3804 (ndr_print_function_t
) ndr_print_PNP_RunDetection
,
3808 "PNP_RegisterNotification",
3809 sizeof(struct PNP_RegisterNotification
),
3810 (ndr_push_flags_fn_t
) ndr_push_PNP_RegisterNotification
,
3811 (ndr_pull_flags_fn_t
) ndr_pull_PNP_RegisterNotification
,
3812 (ndr_print_function_t
) ndr_print_PNP_RegisterNotification
,
3816 "PNP_UnregisterNotification",
3817 sizeof(struct PNP_UnregisterNotification
),
3818 (ndr_push_flags_fn_t
) ndr_push_PNP_UnregisterNotification
,
3819 (ndr_pull_flags_fn_t
) ndr_pull_PNP_UnregisterNotification
,
3820 (ndr_print_function_t
) ndr_print_PNP_UnregisterNotification
,
3824 "PNP_GetCustomDevProp",
3825 sizeof(struct PNP_GetCustomDevProp
),
3826 (ndr_push_flags_fn_t
) ndr_push_PNP_GetCustomDevProp
,
3827 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetCustomDevProp
,
3828 (ndr_print_function_t
) ndr_print_PNP_GetCustomDevProp
,
3832 "PNP_GetVersionInternal",
3833 sizeof(struct PNP_GetVersionInternal
),
3834 (ndr_push_flags_fn_t
) ndr_push_PNP_GetVersionInternal
,
3835 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetVersionInternal
,
3836 (ndr_print_function_t
) ndr_print_PNP_GetVersionInternal
,
3840 "PNP_GetBlockedDriverInfo",
3841 sizeof(struct PNP_GetBlockedDriverInfo
),
3842 (ndr_push_flags_fn_t
) ndr_push_PNP_GetBlockedDriverInfo
,
3843 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetBlockedDriverInfo
,
3844 (ndr_print_function_t
) ndr_print_PNP_GetBlockedDriverInfo
,
3848 "PNP_GetServerSideDeviceInstallFlags",
3849 sizeof(struct PNP_GetServerSideDeviceInstallFlags
),
3850 (ndr_push_flags_fn_t
) ndr_push_PNP_GetServerSideDeviceInstallFlags
,
3851 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetServerSideDeviceInstallFlags
,
3852 (ndr_print_function_t
) ndr_print_PNP_GetServerSideDeviceInstallFlags
,
3855 { NULL
, 0, NULL
, NULL
, NULL
, false }
3858 static const char * const ntsvcs_endpoint_strings
[] = {
3859 "ncacn_np:[\\pipe\\ntsvcs]",
3860 "ncacn_np:[\\pipe\\plugplay]",
3863 static const struct ndr_interface_string_array ntsvcs_endpoints
= {
3865 .names
= ntsvcs_endpoint_strings
3868 static const char * const ntsvcs_authservice_strings
[] = {
3872 static const struct ndr_interface_string_array ntsvcs_authservices
= {
3874 .names
= ntsvcs_authservice_strings
3878 const struct ndr_interface_table ndr_table_ntsvcs
= {
3881 {0x8d9f4e40,0xa03d,0x11ce,{0x8f,0x69},{0x08,0x00,0x3e,0x30,0x05,0x1b}},
3884 .helpstring
= NDR_NTSVCS_HELPSTRING
,
3886 .calls
= ntsvcs_calls
,
3887 .endpoints
= &ntsvcs_endpoints
,
3888 .authservices
= &ntsvcs_authservices