Re-run make idl.
[Samba/gebeck_regimport.git] / source3 / librpc / gen_ndr / ndr_ntsvcs.c
blobc66ec2aa874aa71efef7f37c01582410ae06fb66
1 /* parser auto-generated by pidl */
3 #include "includes.h"
4 #include "librpc/gen_ndr/ndr_ntsvcs.h"
6 static enum ndr_err_code ndr_push_PNP_Disconnect(struct ndr_push *ndr, int flags, const struct PNP_Disconnect *r)
8 if (flags & NDR_IN) {
10 if (flags & NDR_OUT) {
11 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
13 return NDR_ERR_SUCCESS;
16 static enum ndr_err_code ndr_pull_PNP_Disconnect(struct ndr_pull *ndr, int flags, struct PNP_Disconnect *r)
18 if (flags & NDR_IN) {
20 if (flags & NDR_OUT) {
21 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
23 return NDR_ERR_SUCCESS;
26 _PUBLIC_ void ndr_print_PNP_Disconnect(struct ndr_print *ndr, const char *name, int flags, const struct PNP_Disconnect *r)
28 ndr_print_struct(ndr, name, "PNP_Disconnect");
29 ndr->depth++;
30 if (flags & NDR_SET_VALUES) {
31 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
33 if (flags & NDR_IN) {
34 ndr_print_struct(ndr, "in", "PNP_Disconnect");
35 ndr->depth++;
36 ndr->depth--;
38 if (flags & NDR_OUT) {
39 ndr_print_struct(ndr, "out", "PNP_Disconnect");
40 ndr->depth++;
41 ndr_print_WERROR(ndr, "result", r->out.result);
42 ndr->depth--;
44 ndr->depth--;
47 static enum ndr_err_code ndr_push_PNP_Connect(struct ndr_push *ndr, int flags, const struct PNP_Connect *r)
49 if (flags & NDR_IN) {
51 if (flags & NDR_OUT) {
52 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
54 return NDR_ERR_SUCCESS;
57 static enum ndr_err_code ndr_pull_PNP_Connect(struct ndr_pull *ndr, int flags, struct PNP_Connect *r)
59 if (flags & NDR_IN) {
61 if (flags & NDR_OUT) {
62 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
64 return NDR_ERR_SUCCESS;
67 _PUBLIC_ void ndr_print_PNP_Connect(struct ndr_print *ndr, const char *name, int flags, const struct PNP_Connect *r)
69 ndr_print_struct(ndr, name, "PNP_Connect");
70 ndr->depth++;
71 if (flags & NDR_SET_VALUES) {
72 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
74 if (flags & NDR_IN) {
75 ndr_print_struct(ndr, "in", "PNP_Connect");
76 ndr->depth++;
77 ndr->depth--;
79 if (flags & NDR_OUT) {
80 ndr_print_struct(ndr, "out", "PNP_Connect");
81 ndr->depth++;
82 ndr_print_WERROR(ndr, "result", r->out.result);
83 ndr->depth--;
85 ndr->depth--;
88 static enum ndr_err_code ndr_push_PNP_GetVersion(struct ndr_push *ndr, int flags, const struct PNP_GetVersion *r)
90 if (flags & NDR_IN) {
92 if (flags & NDR_OUT) {
93 if (r->out.version == NULL) {
94 return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
96 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, *r->out.version));
97 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
99 return NDR_ERR_SUCCESS;
102 static enum ndr_err_code ndr_pull_PNP_GetVersion(struct ndr_pull *ndr, int flags, struct PNP_GetVersion *r)
104 TALLOC_CTX *_mem_save_version_0;
105 if (flags & NDR_IN) {
106 ZERO_STRUCT(r->out);
108 NDR_PULL_ALLOC(ndr, r->out.version);
109 ZERO_STRUCTP(r->out.version);
111 if (flags & NDR_OUT) {
112 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
113 NDR_PULL_ALLOC(ndr, r->out.version);
115 _mem_save_version_0 = NDR_PULL_GET_MEM_CTX(ndr);
116 NDR_PULL_SET_MEM_CTX(ndr, r->out.version, LIBNDR_FLAG_REF_ALLOC);
117 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, r->out.version));
118 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_version_0, LIBNDR_FLAG_REF_ALLOC);
119 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
121 return NDR_ERR_SUCCESS;
124 _PUBLIC_ void ndr_print_PNP_GetVersion(struct ndr_print *ndr, const char *name, int flags, const struct PNP_GetVersion *r)
126 ndr_print_struct(ndr, name, "PNP_GetVersion");
127 ndr->depth++;
128 if (flags & NDR_SET_VALUES) {
129 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
131 if (flags & NDR_IN) {
132 ndr_print_struct(ndr, "in", "PNP_GetVersion");
133 ndr->depth++;
134 ndr->depth--;
136 if (flags & NDR_OUT) {
137 ndr_print_struct(ndr, "out", "PNP_GetVersion");
138 ndr->depth++;
139 ndr_print_ptr(ndr, "version", r->out.version);
140 ndr->depth++;
141 ndr_print_uint16(ndr, "version", *r->out.version);
142 ndr->depth--;
143 ndr_print_WERROR(ndr, "result", r->out.result);
144 ndr->depth--;
146 ndr->depth--;
149 static enum ndr_err_code ndr_push_PNP_GetGlobalState(struct ndr_push *ndr, int flags, const struct PNP_GetGlobalState *r)
151 if (flags & NDR_IN) {
153 if (flags & NDR_OUT) {
154 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
156 return NDR_ERR_SUCCESS;
159 static enum ndr_err_code ndr_pull_PNP_GetGlobalState(struct ndr_pull *ndr, int flags, struct PNP_GetGlobalState *r)
161 if (flags & NDR_IN) {
163 if (flags & NDR_OUT) {
164 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
166 return NDR_ERR_SUCCESS;
169 _PUBLIC_ void ndr_print_PNP_GetGlobalState(struct ndr_print *ndr, const char *name, int flags, const struct PNP_GetGlobalState *r)
171 ndr_print_struct(ndr, name, "PNP_GetGlobalState");
172 ndr->depth++;
173 if (flags & NDR_SET_VALUES) {
174 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
176 if (flags & NDR_IN) {
177 ndr_print_struct(ndr, "in", "PNP_GetGlobalState");
178 ndr->depth++;
179 ndr->depth--;
181 if (flags & NDR_OUT) {
182 ndr_print_struct(ndr, "out", "PNP_GetGlobalState");
183 ndr->depth++;
184 ndr_print_WERROR(ndr, "result", r->out.result);
185 ndr->depth--;
187 ndr->depth--;
190 static enum ndr_err_code ndr_push_PNP_InitDetection(struct ndr_push *ndr, int flags, const struct PNP_InitDetection *r)
192 if (flags & NDR_IN) {
194 if (flags & NDR_OUT) {
195 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
197 return NDR_ERR_SUCCESS;
200 static enum ndr_err_code ndr_pull_PNP_InitDetection(struct ndr_pull *ndr, int flags, struct PNP_InitDetection *r)
202 if (flags & NDR_IN) {
204 if (flags & NDR_OUT) {
205 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
207 return NDR_ERR_SUCCESS;
210 _PUBLIC_ void ndr_print_PNP_InitDetection(struct ndr_print *ndr, const char *name, int flags, const struct PNP_InitDetection *r)
212 ndr_print_struct(ndr, name, "PNP_InitDetection");
213 ndr->depth++;
214 if (flags & NDR_SET_VALUES) {
215 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
217 if (flags & NDR_IN) {
218 ndr_print_struct(ndr, "in", "PNP_InitDetection");
219 ndr->depth++;
220 ndr->depth--;
222 if (flags & NDR_OUT) {
223 ndr_print_struct(ndr, "out", "PNP_InitDetection");
224 ndr->depth++;
225 ndr_print_WERROR(ndr, "result", r->out.result);
226 ndr->depth--;
228 ndr->depth--;
231 static enum ndr_err_code ndr_push_PNP_ReportLogOn(struct ndr_push *ndr, int flags, const struct PNP_ReportLogOn *r)
233 if (flags & NDR_IN) {
235 if (flags & NDR_OUT) {
236 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
238 return NDR_ERR_SUCCESS;
241 static enum ndr_err_code ndr_pull_PNP_ReportLogOn(struct ndr_pull *ndr, int flags, struct PNP_ReportLogOn *r)
243 if (flags & NDR_IN) {
245 if (flags & NDR_OUT) {
246 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
248 return NDR_ERR_SUCCESS;
251 _PUBLIC_ void ndr_print_PNP_ReportLogOn(struct ndr_print *ndr, const char *name, int flags, const struct PNP_ReportLogOn *r)
253 ndr_print_struct(ndr, name, "PNP_ReportLogOn");
254 ndr->depth++;
255 if (flags & NDR_SET_VALUES) {
256 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
258 if (flags & NDR_IN) {
259 ndr_print_struct(ndr, "in", "PNP_ReportLogOn");
260 ndr->depth++;
261 ndr->depth--;
263 if (flags & NDR_OUT) {
264 ndr_print_struct(ndr, "out", "PNP_ReportLogOn");
265 ndr->depth++;
266 ndr_print_WERROR(ndr, "result", r->out.result);
267 ndr->depth--;
269 ndr->depth--;
272 static enum ndr_err_code ndr_push_PNP_ValidateDeviceInstance(struct ndr_push *ndr, int flags, const struct PNP_ValidateDeviceInstance *r)
274 if (flags & NDR_IN) {
275 if (r->in.devicepath == NULL) {
276 return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
278 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, ndr_charset_length(r->in.devicepath, CH_UTF16)));
279 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, 0));
280 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, ndr_charset_length(r->in.devicepath, CH_UTF16)));
281 NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.devicepath, ndr_charset_length(r->in.devicepath, CH_UTF16), sizeof(uint16_t), CH_UTF16));
282 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.flags));
284 if (flags & NDR_OUT) {
285 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
287 return NDR_ERR_SUCCESS;
290 static enum ndr_err_code ndr_pull_PNP_ValidateDeviceInstance(struct ndr_pull *ndr, int flags, struct PNP_ValidateDeviceInstance *r)
292 if (flags & NDR_IN) {
293 NDR_CHECK(ndr_pull_array_size(ndr, &r->in.devicepath));
294 NDR_CHECK(ndr_pull_array_length(ndr, &r->in.devicepath));
295 if (ndr_get_array_length(ndr, &r->in.devicepath) > ndr_get_array_size(ndr, &r->in.devicepath)) {
296 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));
298 NDR_CHECK(ndr_check_string_terminator(ndr, ndr_get_array_length(ndr, &r->in.devicepath), sizeof(uint16_t)));
299 NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.devicepath, ndr_get_array_length(ndr, &r->in.devicepath), sizeof(uint16_t), CH_UTF16));
300 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.flags));
302 if (flags & NDR_OUT) {
303 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
305 return NDR_ERR_SUCCESS;
308 _PUBLIC_ void ndr_print_PNP_ValidateDeviceInstance(struct ndr_print *ndr, const char *name, int flags, const struct PNP_ValidateDeviceInstance *r)
310 ndr_print_struct(ndr, name, "PNP_ValidateDeviceInstance");
311 ndr->depth++;
312 if (flags & NDR_SET_VALUES) {
313 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
315 if (flags & NDR_IN) {
316 ndr_print_struct(ndr, "in", "PNP_ValidateDeviceInstance");
317 ndr->depth++;
318 ndr_print_ptr(ndr, "devicepath", r->in.devicepath);
319 ndr->depth++;
320 ndr_print_string(ndr, "devicepath", r->in.devicepath);
321 ndr->depth--;
322 ndr_print_uint32(ndr, "flags", r->in.flags);
323 ndr->depth--;
325 if (flags & NDR_OUT) {
326 ndr_print_struct(ndr, "out", "PNP_ValidateDeviceInstance");
327 ndr->depth++;
328 ndr_print_WERROR(ndr, "result", r->out.result);
329 ndr->depth--;
331 ndr->depth--;
334 static enum ndr_err_code ndr_push_PNP_GetRootDeviceInstance(struct ndr_push *ndr, int flags, const struct PNP_GetRootDeviceInstance *r)
336 if (flags & NDR_IN) {
338 if (flags & NDR_OUT) {
339 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
341 return NDR_ERR_SUCCESS;
344 static enum ndr_err_code ndr_pull_PNP_GetRootDeviceInstance(struct ndr_pull *ndr, int flags, struct PNP_GetRootDeviceInstance *r)
346 if (flags & NDR_IN) {
348 if (flags & NDR_OUT) {
349 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
351 return NDR_ERR_SUCCESS;
354 _PUBLIC_ void ndr_print_PNP_GetRootDeviceInstance(struct ndr_print *ndr, const char *name, int flags, const struct PNP_GetRootDeviceInstance *r)
356 ndr_print_struct(ndr, name, "PNP_GetRootDeviceInstance");
357 ndr->depth++;
358 if (flags & NDR_SET_VALUES) {
359 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
361 if (flags & NDR_IN) {
362 ndr_print_struct(ndr, "in", "PNP_GetRootDeviceInstance");
363 ndr->depth++;
364 ndr->depth--;
366 if (flags & NDR_OUT) {
367 ndr_print_struct(ndr, "out", "PNP_GetRootDeviceInstance");
368 ndr->depth++;
369 ndr_print_WERROR(ndr, "result", r->out.result);
370 ndr->depth--;
372 ndr->depth--;
375 static enum ndr_err_code ndr_push_PNP_GetRelatedDeviceInstance(struct ndr_push *ndr, int flags, const struct PNP_GetRelatedDeviceInstance *r)
377 if (flags & NDR_IN) {
379 if (flags & NDR_OUT) {
380 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
382 return NDR_ERR_SUCCESS;
385 static enum ndr_err_code ndr_pull_PNP_GetRelatedDeviceInstance(struct ndr_pull *ndr, int flags, struct PNP_GetRelatedDeviceInstance *r)
387 if (flags & NDR_IN) {
389 if (flags & NDR_OUT) {
390 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
392 return NDR_ERR_SUCCESS;
395 _PUBLIC_ void ndr_print_PNP_GetRelatedDeviceInstance(struct ndr_print *ndr, const char *name, int flags, const struct PNP_GetRelatedDeviceInstance *r)
397 ndr_print_struct(ndr, name, "PNP_GetRelatedDeviceInstance");
398 ndr->depth++;
399 if (flags & NDR_SET_VALUES) {
400 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
402 if (flags & NDR_IN) {
403 ndr_print_struct(ndr, "in", "PNP_GetRelatedDeviceInstance");
404 ndr->depth++;
405 ndr->depth--;
407 if (flags & NDR_OUT) {
408 ndr_print_struct(ndr, "out", "PNP_GetRelatedDeviceInstance");
409 ndr->depth++;
410 ndr_print_WERROR(ndr, "result", r->out.result);
411 ndr->depth--;
413 ndr->depth--;
416 static enum ndr_err_code ndr_push_PNP_EnumerateSubKeys(struct ndr_push *ndr, int flags, const struct PNP_EnumerateSubKeys *r)
418 if (flags & NDR_IN) {
420 if (flags & NDR_OUT) {
421 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
423 return NDR_ERR_SUCCESS;
426 static enum ndr_err_code ndr_pull_PNP_EnumerateSubKeys(struct ndr_pull *ndr, int flags, struct PNP_EnumerateSubKeys *r)
428 if (flags & NDR_IN) {
430 if (flags & NDR_OUT) {
431 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
433 return NDR_ERR_SUCCESS;
436 _PUBLIC_ void ndr_print_PNP_EnumerateSubKeys(struct ndr_print *ndr, const char *name, int flags, const struct PNP_EnumerateSubKeys *r)
438 ndr_print_struct(ndr, name, "PNP_EnumerateSubKeys");
439 ndr->depth++;
440 if (flags & NDR_SET_VALUES) {
441 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
443 if (flags & NDR_IN) {
444 ndr_print_struct(ndr, "in", "PNP_EnumerateSubKeys");
445 ndr->depth++;
446 ndr->depth--;
448 if (flags & NDR_OUT) {
449 ndr_print_struct(ndr, "out", "PNP_EnumerateSubKeys");
450 ndr->depth++;
451 ndr_print_WERROR(ndr, "result", r->out.result);
452 ndr->depth--;
454 ndr->depth--;
457 static enum ndr_err_code ndr_push_PNP_GetDeviceList(struct ndr_push *ndr, int flags, const struct PNP_GetDeviceList *r)
459 if (flags & NDR_IN) {
461 if (flags & NDR_OUT) {
462 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
464 return NDR_ERR_SUCCESS;
467 static enum ndr_err_code ndr_pull_PNP_GetDeviceList(struct ndr_pull *ndr, int flags, struct PNP_GetDeviceList *r)
469 if (flags & NDR_IN) {
471 if (flags & NDR_OUT) {
472 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
474 return NDR_ERR_SUCCESS;
477 _PUBLIC_ void ndr_print_PNP_GetDeviceList(struct ndr_print *ndr, const char *name, int flags, const struct PNP_GetDeviceList *r)
479 ndr_print_struct(ndr, name, "PNP_GetDeviceList");
480 ndr->depth++;
481 if (flags & NDR_SET_VALUES) {
482 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
484 if (flags & NDR_IN) {
485 ndr_print_struct(ndr, "in", "PNP_GetDeviceList");
486 ndr->depth++;
487 ndr->depth--;
489 if (flags & NDR_OUT) {
490 ndr_print_struct(ndr, "out", "PNP_GetDeviceList");
491 ndr->depth++;
492 ndr_print_WERROR(ndr, "result", r->out.result);
493 ndr->depth--;
495 ndr->depth--;
498 static enum ndr_err_code ndr_push_PNP_GetDeviceListSize(struct ndr_push *ndr, int flags, const struct PNP_GetDeviceListSize *r)
500 if (flags & NDR_IN) {
501 NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.devicename));
502 if (r->in.devicename) {
503 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, ndr_charset_length(r->in.devicename, CH_UTF16)));
504 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, 0));
505 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, ndr_charset_length(r->in.devicename, CH_UTF16)));
506 NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.devicename, ndr_charset_length(r->in.devicename, CH_UTF16), sizeof(uint16_t), CH_UTF16));
508 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.flags));
510 if (flags & NDR_OUT) {
511 if (r->out.size == NULL) {
512 return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
514 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.size));
515 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
517 return NDR_ERR_SUCCESS;
520 static enum ndr_err_code ndr_pull_PNP_GetDeviceListSize(struct ndr_pull *ndr, int flags, struct PNP_GetDeviceListSize *r)
522 uint32_t _ptr_devicename;
523 TALLOC_CTX *_mem_save_devicename_0;
524 TALLOC_CTX *_mem_save_size_0;
525 if (flags & NDR_IN) {
526 ZERO_STRUCT(r->out);
528 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_devicename));
529 if (_ptr_devicename) {
530 NDR_PULL_ALLOC(ndr, r->in.devicename);
531 } else {
532 r->in.devicename = NULL;
534 if (r->in.devicename) {
535 _mem_save_devicename_0 = NDR_PULL_GET_MEM_CTX(ndr);
536 NDR_PULL_SET_MEM_CTX(ndr, r->in.devicename, 0);
537 NDR_CHECK(ndr_pull_array_size(ndr, &r->in.devicename));
538 NDR_CHECK(ndr_pull_array_length(ndr, &r->in.devicename));
539 if (ndr_get_array_length(ndr, &r->in.devicename) > ndr_get_array_size(ndr, &r->in.devicename)) {
540 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));
542 NDR_CHECK(ndr_check_string_terminator(ndr, ndr_get_array_length(ndr, &r->in.devicename), sizeof(uint16_t)));
543 NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.devicename, ndr_get_array_length(ndr, &r->in.devicename), sizeof(uint16_t), CH_UTF16));
544 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_devicename_0, 0);
546 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.flags));
547 NDR_PULL_ALLOC(ndr, r->out.size);
548 ZERO_STRUCTP(r->out.size);
550 if (flags & NDR_OUT) {
551 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
552 NDR_PULL_ALLOC(ndr, r->out.size);
554 _mem_save_size_0 = NDR_PULL_GET_MEM_CTX(ndr);
555 NDR_PULL_SET_MEM_CTX(ndr, r->out.size, LIBNDR_FLAG_REF_ALLOC);
556 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.size));
557 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_size_0, LIBNDR_FLAG_REF_ALLOC);
558 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
560 return NDR_ERR_SUCCESS;
563 _PUBLIC_ void ndr_print_PNP_GetDeviceListSize(struct ndr_print *ndr, const char *name, int flags, const struct PNP_GetDeviceListSize *r)
565 ndr_print_struct(ndr, name, "PNP_GetDeviceListSize");
566 ndr->depth++;
567 if (flags & NDR_SET_VALUES) {
568 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
570 if (flags & NDR_IN) {
571 ndr_print_struct(ndr, "in", "PNP_GetDeviceListSize");
572 ndr->depth++;
573 ndr_print_ptr(ndr, "devicename", r->in.devicename);
574 ndr->depth++;
575 if (r->in.devicename) {
576 ndr_print_string(ndr, "devicename", r->in.devicename);
578 ndr->depth--;
579 ndr_print_uint32(ndr, "flags", r->in.flags);
580 ndr->depth--;
582 if (flags & NDR_OUT) {
583 ndr_print_struct(ndr, "out", "PNP_GetDeviceListSize");
584 ndr->depth++;
585 ndr_print_ptr(ndr, "size", r->out.size);
586 ndr->depth++;
587 ndr_print_uint32(ndr, "size", *r->out.size);
588 ndr->depth--;
589 ndr_print_WERROR(ndr, "result", r->out.result);
590 ndr->depth--;
592 ndr->depth--;
595 static enum ndr_err_code ndr_push_PNP_GetDepth(struct ndr_push *ndr, int flags, const struct PNP_GetDepth *r)
597 if (flags & NDR_IN) {
599 if (flags & NDR_OUT) {
600 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
602 return NDR_ERR_SUCCESS;
605 static enum ndr_err_code ndr_pull_PNP_GetDepth(struct ndr_pull *ndr, int flags, struct PNP_GetDepth *r)
607 if (flags & NDR_IN) {
609 if (flags & NDR_OUT) {
610 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
612 return NDR_ERR_SUCCESS;
615 _PUBLIC_ void ndr_print_PNP_GetDepth(struct ndr_print *ndr, const char *name, int flags, const struct PNP_GetDepth *r)
617 ndr_print_struct(ndr, name, "PNP_GetDepth");
618 ndr->depth++;
619 if (flags & NDR_SET_VALUES) {
620 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
622 if (flags & NDR_IN) {
623 ndr_print_struct(ndr, "in", "PNP_GetDepth");
624 ndr->depth++;
625 ndr->depth--;
627 if (flags & NDR_OUT) {
628 ndr_print_struct(ndr, "out", "PNP_GetDepth");
629 ndr->depth++;
630 ndr_print_WERROR(ndr, "result", r->out.result);
631 ndr->depth--;
633 ndr->depth--;
636 static enum ndr_err_code ndr_push_PNP_GetDeviceRegProp(struct ndr_push *ndr, int flags, const struct PNP_GetDeviceRegProp *r)
638 if (flags & NDR_IN) {
640 if (flags & NDR_OUT) {
641 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
643 return NDR_ERR_SUCCESS;
646 static enum ndr_err_code ndr_pull_PNP_GetDeviceRegProp(struct ndr_pull *ndr, int flags, struct PNP_GetDeviceRegProp *r)
648 if (flags & NDR_IN) {
650 if (flags & NDR_OUT) {
651 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
653 return NDR_ERR_SUCCESS;
656 _PUBLIC_ void ndr_print_PNP_GetDeviceRegProp(struct ndr_print *ndr, const char *name, int flags, const struct PNP_GetDeviceRegProp *r)
658 ndr_print_struct(ndr, name, "PNP_GetDeviceRegProp");
659 ndr->depth++;
660 if (flags & NDR_SET_VALUES) {
661 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
663 if (flags & NDR_IN) {
664 ndr_print_struct(ndr, "in", "PNP_GetDeviceRegProp");
665 ndr->depth++;
666 ndr->depth--;
668 if (flags & NDR_OUT) {
669 ndr_print_struct(ndr, "out", "PNP_GetDeviceRegProp");
670 ndr->depth++;
671 ndr_print_WERROR(ndr, "result", r->out.result);
672 ndr->depth--;
674 ndr->depth--;
677 static enum ndr_err_code ndr_push_PNP_SetDeviceRegProp(struct ndr_push *ndr, int flags, const struct PNP_SetDeviceRegProp *r)
679 if (flags & NDR_IN) {
681 if (flags & NDR_OUT) {
682 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
684 return NDR_ERR_SUCCESS;
687 static enum ndr_err_code ndr_pull_PNP_SetDeviceRegProp(struct ndr_pull *ndr, int flags, struct PNP_SetDeviceRegProp *r)
689 if (flags & NDR_IN) {
691 if (flags & NDR_OUT) {
692 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
694 return NDR_ERR_SUCCESS;
697 _PUBLIC_ void ndr_print_PNP_SetDeviceRegProp(struct ndr_print *ndr, const char *name, int flags, const struct PNP_SetDeviceRegProp *r)
699 ndr_print_struct(ndr, name, "PNP_SetDeviceRegProp");
700 ndr->depth++;
701 if (flags & NDR_SET_VALUES) {
702 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
704 if (flags & NDR_IN) {
705 ndr_print_struct(ndr, "in", "PNP_SetDeviceRegProp");
706 ndr->depth++;
707 ndr->depth--;
709 if (flags & NDR_OUT) {
710 ndr_print_struct(ndr, "out", "PNP_SetDeviceRegProp");
711 ndr->depth++;
712 ndr_print_WERROR(ndr, "result", r->out.result);
713 ndr->depth--;
715 ndr->depth--;
718 static enum ndr_err_code ndr_push_PNP_GetClassInstance(struct ndr_push *ndr, int flags, const struct PNP_GetClassInstance *r)
720 if (flags & NDR_IN) {
722 if (flags & NDR_OUT) {
723 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
725 return NDR_ERR_SUCCESS;
728 static enum ndr_err_code ndr_pull_PNP_GetClassInstance(struct ndr_pull *ndr, int flags, struct PNP_GetClassInstance *r)
730 if (flags & NDR_IN) {
732 if (flags & NDR_OUT) {
733 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
735 return NDR_ERR_SUCCESS;
738 _PUBLIC_ void ndr_print_PNP_GetClassInstance(struct ndr_print *ndr, const char *name, int flags, const struct PNP_GetClassInstance *r)
740 ndr_print_struct(ndr, name, "PNP_GetClassInstance");
741 ndr->depth++;
742 if (flags & NDR_SET_VALUES) {
743 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
745 if (flags & NDR_IN) {
746 ndr_print_struct(ndr, "in", "PNP_GetClassInstance");
747 ndr->depth++;
748 ndr->depth--;
750 if (flags & NDR_OUT) {
751 ndr_print_struct(ndr, "out", "PNP_GetClassInstance");
752 ndr->depth++;
753 ndr_print_WERROR(ndr, "result", r->out.result);
754 ndr->depth--;
756 ndr->depth--;
759 static enum ndr_err_code ndr_push_PNP_CreateKey(struct ndr_push *ndr, int flags, const struct PNP_CreateKey *r)
761 if (flags & NDR_IN) {
763 if (flags & NDR_OUT) {
764 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
766 return NDR_ERR_SUCCESS;
769 static enum ndr_err_code ndr_pull_PNP_CreateKey(struct ndr_pull *ndr, int flags, struct PNP_CreateKey *r)
771 if (flags & NDR_IN) {
773 if (flags & NDR_OUT) {
774 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
776 return NDR_ERR_SUCCESS;
779 _PUBLIC_ void ndr_print_PNP_CreateKey(struct ndr_print *ndr, const char *name, int flags, const struct PNP_CreateKey *r)
781 ndr_print_struct(ndr, name, "PNP_CreateKey");
782 ndr->depth++;
783 if (flags & NDR_SET_VALUES) {
784 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
786 if (flags & NDR_IN) {
787 ndr_print_struct(ndr, "in", "PNP_CreateKey");
788 ndr->depth++;
789 ndr->depth--;
791 if (flags & NDR_OUT) {
792 ndr_print_struct(ndr, "out", "PNP_CreateKey");
793 ndr->depth++;
794 ndr_print_WERROR(ndr, "result", r->out.result);
795 ndr->depth--;
797 ndr->depth--;
800 static enum ndr_err_code ndr_push_PNP_DeleteRegistryKey(struct ndr_push *ndr, int flags, const struct PNP_DeleteRegistryKey *r)
802 if (flags & NDR_IN) {
804 if (flags & NDR_OUT) {
805 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
807 return NDR_ERR_SUCCESS;
810 static enum ndr_err_code ndr_pull_PNP_DeleteRegistryKey(struct ndr_pull *ndr, int flags, struct PNP_DeleteRegistryKey *r)
812 if (flags & NDR_IN) {
814 if (flags & NDR_OUT) {
815 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
817 return NDR_ERR_SUCCESS;
820 _PUBLIC_ void ndr_print_PNP_DeleteRegistryKey(struct ndr_print *ndr, const char *name, int flags, const struct PNP_DeleteRegistryKey *r)
822 ndr_print_struct(ndr, name, "PNP_DeleteRegistryKey");
823 ndr->depth++;
824 if (flags & NDR_SET_VALUES) {
825 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
827 if (flags & NDR_IN) {
828 ndr_print_struct(ndr, "in", "PNP_DeleteRegistryKey");
829 ndr->depth++;
830 ndr->depth--;
832 if (flags & NDR_OUT) {
833 ndr_print_struct(ndr, "out", "PNP_DeleteRegistryKey");
834 ndr->depth++;
835 ndr_print_WERROR(ndr, "result", r->out.result);
836 ndr->depth--;
838 ndr->depth--;
841 static enum ndr_err_code ndr_push_PNP_GetClassCount(struct ndr_push *ndr, int flags, const struct PNP_GetClassCount *r)
843 if (flags & NDR_IN) {
845 if (flags & NDR_OUT) {
846 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
848 return NDR_ERR_SUCCESS;
851 static enum ndr_err_code ndr_pull_PNP_GetClassCount(struct ndr_pull *ndr, int flags, struct PNP_GetClassCount *r)
853 if (flags & NDR_IN) {
855 if (flags & NDR_OUT) {
856 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
858 return NDR_ERR_SUCCESS;
861 _PUBLIC_ void ndr_print_PNP_GetClassCount(struct ndr_print *ndr, const char *name, int flags, const struct PNP_GetClassCount *r)
863 ndr_print_struct(ndr, name, "PNP_GetClassCount");
864 ndr->depth++;
865 if (flags & NDR_SET_VALUES) {
866 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
868 if (flags & NDR_IN) {
869 ndr_print_struct(ndr, "in", "PNP_GetClassCount");
870 ndr->depth++;
871 ndr->depth--;
873 if (flags & NDR_OUT) {
874 ndr_print_struct(ndr, "out", "PNP_GetClassCount");
875 ndr->depth++;
876 ndr_print_WERROR(ndr, "result", r->out.result);
877 ndr->depth--;
879 ndr->depth--;
882 static enum ndr_err_code ndr_push_PNP_GetClassName(struct ndr_push *ndr, int flags, const struct PNP_GetClassName *r)
884 if (flags & NDR_IN) {
886 if (flags & NDR_OUT) {
887 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
889 return NDR_ERR_SUCCESS;
892 static enum ndr_err_code ndr_pull_PNP_GetClassName(struct ndr_pull *ndr, int flags, struct PNP_GetClassName *r)
894 if (flags & NDR_IN) {
896 if (flags & NDR_OUT) {
897 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
899 return NDR_ERR_SUCCESS;
902 _PUBLIC_ void ndr_print_PNP_GetClassName(struct ndr_print *ndr, const char *name, int flags, const struct PNP_GetClassName *r)
904 ndr_print_struct(ndr, name, "PNP_GetClassName");
905 ndr->depth++;
906 if (flags & NDR_SET_VALUES) {
907 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
909 if (flags & NDR_IN) {
910 ndr_print_struct(ndr, "in", "PNP_GetClassName");
911 ndr->depth++;
912 ndr->depth--;
914 if (flags & NDR_OUT) {
915 ndr_print_struct(ndr, "out", "PNP_GetClassName");
916 ndr->depth++;
917 ndr_print_WERROR(ndr, "result", r->out.result);
918 ndr->depth--;
920 ndr->depth--;
923 static enum ndr_err_code ndr_push_PNP_DeleteClassKey(struct ndr_push *ndr, int flags, const struct PNP_DeleteClassKey *r)
925 if (flags & NDR_IN) {
927 if (flags & NDR_OUT) {
928 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
930 return NDR_ERR_SUCCESS;
933 static enum ndr_err_code ndr_pull_PNP_DeleteClassKey(struct ndr_pull *ndr, int flags, struct PNP_DeleteClassKey *r)
935 if (flags & NDR_IN) {
937 if (flags & NDR_OUT) {
938 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
940 return NDR_ERR_SUCCESS;
943 _PUBLIC_ void ndr_print_PNP_DeleteClassKey(struct ndr_print *ndr, const char *name, int flags, const struct PNP_DeleteClassKey *r)
945 ndr_print_struct(ndr, name, "PNP_DeleteClassKey");
946 ndr->depth++;
947 if (flags & NDR_SET_VALUES) {
948 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
950 if (flags & NDR_IN) {
951 ndr_print_struct(ndr, "in", "PNP_DeleteClassKey");
952 ndr->depth++;
953 ndr->depth--;
955 if (flags & NDR_OUT) {
956 ndr_print_struct(ndr, "out", "PNP_DeleteClassKey");
957 ndr->depth++;
958 ndr_print_WERROR(ndr, "result", r->out.result);
959 ndr->depth--;
961 ndr->depth--;
964 static enum ndr_err_code ndr_push_PNP_GetInterfaceDeviceAlias(struct ndr_push *ndr, int flags, const struct PNP_GetInterfaceDeviceAlias *r)
966 if (flags & NDR_IN) {
968 if (flags & NDR_OUT) {
969 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
971 return NDR_ERR_SUCCESS;
974 static enum ndr_err_code ndr_pull_PNP_GetInterfaceDeviceAlias(struct ndr_pull *ndr, int flags, struct PNP_GetInterfaceDeviceAlias *r)
976 if (flags & NDR_IN) {
978 if (flags & NDR_OUT) {
979 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
981 return NDR_ERR_SUCCESS;
984 _PUBLIC_ void ndr_print_PNP_GetInterfaceDeviceAlias(struct ndr_print *ndr, const char *name, int flags, const struct PNP_GetInterfaceDeviceAlias *r)
986 ndr_print_struct(ndr, name, "PNP_GetInterfaceDeviceAlias");
987 ndr->depth++;
988 if (flags & NDR_SET_VALUES) {
989 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
991 if (flags & NDR_IN) {
992 ndr_print_struct(ndr, "in", "PNP_GetInterfaceDeviceAlias");
993 ndr->depth++;
994 ndr->depth--;
996 if (flags & NDR_OUT) {
997 ndr_print_struct(ndr, "out", "PNP_GetInterfaceDeviceAlias");
998 ndr->depth++;
999 ndr_print_WERROR(ndr, "result", r->out.result);
1000 ndr->depth--;
1002 ndr->depth--;
1005 static enum ndr_err_code ndr_push_PNP_GetInterfaceDeviceList(struct ndr_push *ndr, int flags, const struct PNP_GetInterfaceDeviceList *r)
1007 if (flags & NDR_IN) {
1009 if (flags & NDR_OUT) {
1010 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
1012 return NDR_ERR_SUCCESS;
1015 static enum ndr_err_code ndr_pull_PNP_GetInterfaceDeviceList(struct ndr_pull *ndr, int flags, struct PNP_GetInterfaceDeviceList *r)
1017 if (flags & NDR_IN) {
1019 if (flags & NDR_OUT) {
1020 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
1022 return NDR_ERR_SUCCESS;
1025 _PUBLIC_ void ndr_print_PNP_GetInterfaceDeviceList(struct ndr_print *ndr, const char *name, int flags, const struct PNP_GetInterfaceDeviceList *r)
1027 ndr_print_struct(ndr, name, "PNP_GetInterfaceDeviceList");
1028 ndr->depth++;
1029 if (flags & NDR_SET_VALUES) {
1030 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
1032 if (flags & NDR_IN) {
1033 ndr_print_struct(ndr, "in", "PNP_GetInterfaceDeviceList");
1034 ndr->depth++;
1035 ndr->depth--;
1037 if (flags & NDR_OUT) {
1038 ndr_print_struct(ndr, "out", "PNP_GetInterfaceDeviceList");
1039 ndr->depth++;
1040 ndr_print_WERROR(ndr, "result", r->out.result);
1041 ndr->depth--;
1043 ndr->depth--;
1046 static enum ndr_err_code ndr_push_PNP_GetInterfaceDeviceListSize(struct ndr_push *ndr, int flags, const struct PNP_GetInterfaceDeviceListSize *r)
1048 if (flags & NDR_IN) {
1050 if (flags & NDR_OUT) {
1051 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
1053 return NDR_ERR_SUCCESS;
1056 static enum ndr_err_code ndr_pull_PNP_GetInterfaceDeviceListSize(struct ndr_pull *ndr, int flags, struct PNP_GetInterfaceDeviceListSize *r)
1058 if (flags & NDR_IN) {
1060 if (flags & NDR_OUT) {
1061 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
1063 return NDR_ERR_SUCCESS;
1066 _PUBLIC_ void ndr_print_PNP_GetInterfaceDeviceListSize(struct ndr_print *ndr, const char *name, int flags, const struct PNP_GetInterfaceDeviceListSize *r)
1068 ndr_print_struct(ndr, name, "PNP_GetInterfaceDeviceListSize");
1069 ndr->depth++;
1070 if (flags & NDR_SET_VALUES) {
1071 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
1073 if (flags & NDR_IN) {
1074 ndr_print_struct(ndr, "in", "PNP_GetInterfaceDeviceListSize");
1075 ndr->depth++;
1076 ndr->depth--;
1078 if (flags & NDR_OUT) {
1079 ndr_print_struct(ndr, "out", "PNP_GetInterfaceDeviceListSize");
1080 ndr->depth++;
1081 ndr_print_WERROR(ndr, "result", r->out.result);
1082 ndr->depth--;
1084 ndr->depth--;
1087 static enum ndr_err_code ndr_push_PNP_RegisterDeviceClassAssociation(struct ndr_push *ndr, int flags, const struct PNP_RegisterDeviceClassAssociation *r)
1089 if (flags & NDR_IN) {
1091 if (flags & NDR_OUT) {
1092 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
1094 return NDR_ERR_SUCCESS;
1097 static enum ndr_err_code ndr_pull_PNP_RegisterDeviceClassAssociation(struct ndr_pull *ndr, int flags, struct PNP_RegisterDeviceClassAssociation *r)
1099 if (flags & NDR_IN) {
1101 if (flags & NDR_OUT) {
1102 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
1104 return NDR_ERR_SUCCESS;
1107 _PUBLIC_ void ndr_print_PNP_RegisterDeviceClassAssociation(struct ndr_print *ndr, const char *name, int flags, const struct PNP_RegisterDeviceClassAssociation *r)
1109 ndr_print_struct(ndr, name, "PNP_RegisterDeviceClassAssociation");
1110 ndr->depth++;
1111 if (flags & NDR_SET_VALUES) {
1112 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
1114 if (flags & NDR_IN) {
1115 ndr_print_struct(ndr, "in", "PNP_RegisterDeviceClassAssociation");
1116 ndr->depth++;
1117 ndr->depth--;
1119 if (flags & NDR_OUT) {
1120 ndr_print_struct(ndr, "out", "PNP_RegisterDeviceClassAssociation");
1121 ndr->depth++;
1122 ndr_print_WERROR(ndr, "result", r->out.result);
1123 ndr->depth--;
1125 ndr->depth--;
1128 static enum ndr_err_code ndr_push_PNP_UnregisterDeviceClassAssociation(struct ndr_push *ndr, int flags, const struct PNP_UnregisterDeviceClassAssociation *r)
1130 if (flags & NDR_IN) {
1132 if (flags & NDR_OUT) {
1133 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
1135 return NDR_ERR_SUCCESS;
1138 static enum ndr_err_code ndr_pull_PNP_UnregisterDeviceClassAssociation(struct ndr_pull *ndr, int flags, struct PNP_UnregisterDeviceClassAssociation *r)
1140 if (flags & NDR_IN) {
1142 if (flags & NDR_OUT) {
1143 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
1145 return NDR_ERR_SUCCESS;
1148 _PUBLIC_ void ndr_print_PNP_UnregisterDeviceClassAssociation(struct ndr_print *ndr, const char *name, int flags, const struct PNP_UnregisterDeviceClassAssociation *r)
1150 ndr_print_struct(ndr, name, "PNP_UnregisterDeviceClassAssociation");
1151 ndr->depth++;
1152 if (flags & NDR_SET_VALUES) {
1153 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
1155 if (flags & NDR_IN) {
1156 ndr_print_struct(ndr, "in", "PNP_UnregisterDeviceClassAssociation");
1157 ndr->depth++;
1158 ndr->depth--;
1160 if (flags & NDR_OUT) {
1161 ndr_print_struct(ndr, "out", "PNP_UnregisterDeviceClassAssociation");
1162 ndr->depth++;
1163 ndr_print_WERROR(ndr, "result", r->out.result);
1164 ndr->depth--;
1166 ndr->depth--;
1169 static enum ndr_err_code ndr_push_PNP_GetClassRegProp(struct ndr_push *ndr, int flags, const struct PNP_GetClassRegProp *r)
1171 if (flags & NDR_IN) {
1173 if (flags & NDR_OUT) {
1174 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
1176 return NDR_ERR_SUCCESS;
1179 static enum ndr_err_code ndr_pull_PNP_GetClassRegProp(struct ndr_pull *ndr, int flags, struct PNP_GetClassRegProp *r)
1181 if (flags & NDR_IN) {
1183 if (flags & NDR_OUT) {
1184 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
1186 return NDR_ERR_SUCCESS;
1189 _PUBLIC_ void ndr_print_PNP_GetClassRegProp(struct ndr_print *ndr, const char *name, int flags, const struct PNP_GetClassRegProp *r)
1191 ndr_print_struct(ndr, name, "PNP_GetClassRegProp");
1192 ndr->depth++;
1193 if (flags & NDR_SET_VALUES) {
1194 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
1196 if (flags & NDR_IN) {
1197 ndr_print_struct(ndr, "in", "PNP_GetClassRegProp");
1198 ndr->depth++;
1199 ndr->depth--;
1201 if (flags & NDR_OUT) {
1202 ndr_print_struct(ndr, "out", "PNP_GetClassRegProp");
1203 ndr->depth++;
1204 ndr_print_WERROR(ndr, "result", r->out.result);
1205 ndr->depth--;
1207 ndr->depth--;
1210 static enum ndr_err_code ndr_push_PNP_SetClassRegProp(struct ndr_push *ndr, int flags, const struct PNP_SetClassRegProp *r)
1212 if (flags & NDR_IN) {
1214 if (flags & NDR_OUT) {
1215 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
1217 return NDR_ERR_SUCCESS;
1220 static enum ndr_err_code ndr_pull_PNP_SetClassRegProp(struct ndr_pull *ndr, int flags, struct PNP_SetClassRegProp *r)
1222 if (flags & NDR_IN) {
1224 if (flags & NDR_OUT) {
1225 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
1227 return NDR_ERR_SUCCESS;
1230 _PUBLIC_ void ndr_print_PNP_SetClassRegProp(struct ndr_print *ndr, const char *name, int flags, const struct PNP_SetClassRegProp *r)
1232 ndr_print_struct(ndr, name, "PNP_SetClassRegProp");
1233 ndr->depth++;
1234 if (flags & NDR_SET_VALUES) {
1235 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
1237 if (flags & NDR_IN) {
1238 ndr_print_struct(ndr, "in", "PNP_SetClassRegProp");
1239 ndr->depth++;
1240 ndr->depth--;
1242 if (flags & NDR_OUT) {
1243 ndr_print_struct(ndr, "out", "PNP_SetClassRegProp");
1244 ndr->depth++;
1245 ndr_print_WERROR(ndr, "result", r->out.result);
1246 ndr->depth--;
1248 ndr->depth--;
1251 static enum ndr_err_code ndr_push_PNP_CreateDevInst(struct ndr_push *ndr, int flags, const struct PNP_CreateDevInst *r)
1253 if (flags & NDR_IN) {
1255 if (flags & NDR_OUT) {
1256 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
1258 return NDR_ERR_SUCCESS;
1261 static enum ndr_err_code ndr_pull_PNP_CreateDevInst(struct ndr_pull *ndr, int flags, struct PNP_CreateDevInst *r)
1263 if (flags & NDR_IN) {
1265 if (flags & NDR_OUT) {
1266 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
1268 return NDR_ERR_SUCCESS;
1271 _PUBLIC_ void ndr_print_PNP_CreateDevInst(struct ndr_print *ndr, const char *name, int flags, const struct PNP_CreateDevInst *r)
1273 ndr_print_struct(ndr, name, "PNP_CreateDevInst");
1274 ndr->depth++;
1275 if (flags & NDR_SET_VALUES) {
1276 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
1278 if (flags & NDR_IN) {
1279 ndr_print_struct(ndr, "in", "PNP_CreateDevInst");
1280 ndr->depth++;
1281 ndr->depth--;
1283 if (flags & NDR_OUT) {
1284 ndr_print_struct(ndr, "out", "PNP_CreateDevInst");
1285 ndr->depth++;
1286 ndr_print_WERROR(ndr, "result", r->out.result);
1287 ndr->depth--;
1289 ndr->depth--;
1292 static enum ndr_err_code ndr_push_PNP_DeviceInstanceAction(struct ndr_push *ndr, int flags, const struct PNP_DeviceInstanceAction *r)
1294 if (flags & NDR_IN) {
1296 if (flags & NDR_OUT) {
1297 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
1299 return NDR_ERR_SUCCESS;
1302 static enum ndr_err_code ndr_pull_PNP_DeviceInstanceAction(struct ndr_pull *ndr, int flags, struct PNP_DeviceInstanceAction *r)
1304 if (flags & NDR_IN) {
1306 if (flags & NDR_OUT) {
1307 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
1309 return NDR_ERR_SUCCESS;
1312 _PUBLIC_ void ndr_print_PNP_DeviceInstanceAction(struct ndr_print *ndr, const char *name, int flags, const struct PNP_DeviceInstanceAction *r)
1314 ndr_print_struct(ndr, name, "PNP_DeviceInstanceAction");
1315 ndr->depth++;
1316 if (flags & NDR_SET_VALUES) {
1317 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
1319 if (flags & NDR_IN) {
1320 ndr_print_struct(ndr, "in", "PNP_DeviceInstanceAction");
1321 ndr->depth++;
1322 ndr->depth--;
1324 if (flags & NDR_OUT) {
1325 ndr_print_struct(ndr, "out", "PNP_DeviceInstanceAction");
1326 ndr->depth++;
1327 ndr_print_WERROR(ndr, "result", r->out.result);
1328 ndr->depth--;
1330 ndr->depth--;
1333 static enum ndr_err_code ndr_push_PNP_GetDeviceStatus(struct ndr_push *ndr, int flags, const struct PNP_GetDeviceStatus *r)
1335 if (flags & NDR_IN) {
1337 if (flags & NDR_OUT) {
1338 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
1340 return NDR_ERR_SUCCESS;
1343 static enum ndr_err_code ndr_pull_PNP_GetDeviceStatus(struct ndr_pull *ndr, int flags, struct PNP_GetDeviceStatus *r)
1345 if (flags & NDR_IN) {
1347 if (flags & NDR_OUT) {
1348 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
1350 return NDR_ERR_SUCCESS;
1353 _PUBLIC_ void ndr_print_PNP_GetDeviceStatus(struct ndr_print *ndr, const char *name, int flags, const struct PNP_GetDeviceStatus *r)
1355 ndr_print_struct(ndr, name, "PNP_GetDeviceStatus");
1356 ndr->depth++;
1357 if (flags & NDR_SET_VALUES) {
1358 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
1360 if (flags & NDR_IN) {
1361 ndr_print_struct(ndr, "in", "PNP_GetDeviceStatus");
1362 ndr->depth++;
1363 ndr->depth--;
1365 if (flags & NDR_OUT) {
1366 ndr_print_struct(ndr, "out", "PNP_GetDeviceStatus");
1367 ndr->depth++;
1368 ndr_print_WERROR(ndr, "result", r->out.result);
1369 ndr->depth--;
1371 ndr->depth--;
1374 static enum ndr_err_code ndr_push_PNP_SetDeviceProblem(struct ndr_push *ndr, int flags, const struct PNP_SetDeviceProblem *r)
1376 if (flags & NDR_IN) {
1378 if (flags & NDR_OUT) {
1379 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
1381 return NDR_ERR_SUCCESS;
1384 static enum ndr_err_code ndr_pull_PNP_SetDeviceProblem(struct ndr_pull *ndr, int flags, struct PNP_SetDeviceProblem *r)
1386 if (flags & NDR_IN) {
1388 if (flags & NDR_OUT) {
1389 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
1391 return NDR_ERR_SUCCESS;
1394 _PUBLIC_ void ndr_print_PNP_SetDeviceProblem(struct ndr_print *ndr, const char *name, int flags, const struct PNP_SetDeviceProblem *r)
1396 ndr_print_struct(ndr, name, "PNP_SetDeviceProblem");
1397 ndr->depth++;
1398 if (flags & NDR_SET_VALUES) {
1399 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
1401 if (flags & NDR_IN) {
1402 ndr_print_struct(ndr, "in", "PNP_SetDeviceProblem");
1403 ndr->depth++;
1404 ndr->depth--;
1406 if (flags & NDR_OUT) {
1407 ndr_print_struct(ndr, "out", "PNP_SetDeviceProblem");
1408 ndr->depth++;
1409 ndr_print_WERROR(ndr, "result", r->out.result);
1410 ndr->depth--;
1412 ndr->depth--;
1415 static enum ndr_err_code ndr_push_PNP_DisableDevInst(struct ndr_push *ndr, int flags, const struct PNP_DisableDevInst *r)
1417 if (flags & NDR_IN) {
1419 if (flags & NDR_OUT) {
1420 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
1422 return NDR_ERR_SUCCESS;
1425 static enum ndr_err_code ndr_pull_PNP_DisableDevInst(struct ndr_pull *ndr, int flags, struct PNP_DisableDevInst *r)
1427 if (flags & NDR_IN) {
1429 if (flags & NDR_OUT) {
1430 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
1432 return NDR_ERR_SUCCESS;
1435 _PUBLIC_ void ndr_print_PNP_DisableDevInst(struct ndr_print *ndr, const char *name, int flags, const struct PNP_DisableDevInst *r)
1437 ndr_print_struct(ndr, name, "PNP_DisableDevInst");
1438 ndr->depth++;
1439 if (flags & NDR_SET_VALUES) {
1440 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
1442 if (flags & NDR_IN) {
1443 ndr_print_struct(ndr, "in", "PNP_DisableDevInst");
1444 ndr->depth++;
1445 ndr->depth--;
1447 if (flags & NDR_OUT) {
1448 ndr_print_struct(ndr, "out", "PNP_DisableDevInst");
1449 ndr->depth++;
1450 ndr_print_WERROR(ndr, "result", r->out.result);
1451 ndr->depth--;
1453 ndr->depth--;
1456 static enum ndr_err_code ndr_push_PNP_UninstallDevInst(struct ndr_push *ndr, int flags, const struct PNP_UninstallDevInst *r)
1458 if (flags & NDR_IN) {
1460 if (flags & NDR_OUT) {
1461 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
1463 return NDR_ERR_SUCCESS;
1466 static enum ndr_err_code ndr_pull_PNP_UninstallDevInst(struct ndr_pull *ndr, int flags, struct PNP_UninstallDevInst *r)
1468 if (flags & NDR_IN) {
1470 if (flags & NDR_OUT) {
1471 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
1473 return NDR_ERR_SUCCESS;
1476 _PUBLIC_ void ndr_print_PNP_UninstallDevInst(struct ndr_print *ndr, const char *name, int flags, const struct PNP_UninstallDevInst *r)
1478 ndr_print_struct(ndr, name, "PNP_UninstallDevInst");
1479 ndr->depth++;
1480 if (flags & NDR_SET_VALUES) {
1481 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
1483 if (flags & NDR_IN) {
1484 ndr_print_struct(ndr, "in", "PNP_UninstallDevInst");
1485 ndr->depth++;
1486 ndr->depth--;
1488 if (flags & NDR_OUT) {
1489 ndr_print_struct(ndr, "out", "PNP_UninstallDevInst");
1490 ndr->depth++;
1491 ndr_print_WERROR(ndr, "result", r->out.result);
1492 ndr->depth--;
1494 ndr->depth--;
1497 static enum ndr_err_code ndr_push_PNP_AddID(struct ndr_push *ndr, int flags, const struct PNP_AddID *r)
1499 if (flags & NDR_IN) {
1501 if (flags & NDR_OUT) {
1502 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
1504 return NDR_ERR_SUCCESS;
1507 static enum ndr_err_code ndr_pull_PNP_AddID(struct ndr_pull *ndr, int flags, struct PNP_AddID *r)
1509 if (flags & NDR_IN) {
1511 if (flags & NDR_OUT) {
1512 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
1514 return NDR_ERR_SUCCESS;
1517 _PUBLIC_ void ndr_print_PNP_AddID(struct ndr_print *ndr, const char *name, int flags, const struct PNP_AddID *r)
1519 ndr_print_struct(ndr, name, "PNP_AddID");
1520 ndr->depth++;
1521 if (flags & NDR_SET_VALUES) {
1522 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
1524 if (flags & NDR_IN) {
1525 ndr_print_struct(ndr, "in", "PNP_AddID");
1526 ndr->depth++;
1527 ndr->depth--;
1529 if (flags & NDR_OUT) {
1530 ndr_print_struct(ndr, "out", "PNP_AddID");
1531 ndr->depth++;
1532 ndr_print_WERROR(ndr, "result", r->out.result);
1533 ndr->depth--;
1535 ndr->depth--;
1538 static enum ndr_err_code ndr_push_PNP_RegisterDriver(struct ndr_push *ndr, int flags, const struct PNP_RegisterDriver *r)
1540 if (flags & NDR_IN) {
1542 if (flags & NDR_OUT) {
1543 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
1545 return NDR_ERR_SUCCESS;
1548 static enum ndr_err_code ndr_pull_PNP_RegisterDriver(struct ndr_pull *ndr, int flags, struct PNP_RegisterDriver *r)
1550 if (flags & NDR_IN) {
1552 if (flags & NDR_OUT) {
1553 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
1555 return NDR_ERR_SUCCESS;
1558 _PUBLIC_ void ndr_print_PNP_RegisterDriver(struct ndr_print *ndr, const char *name, int flags, const struct PNP_RegisterDriver *r)
1560 ndr_print_struct(ndr, name, "PNP_RegisterDriver");
1561 ndr->depth++;
1562 if (flags & NDR_SET_VALUES) {
1563 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
1565 if (flags & NDR_IN) {
1566 ndr_print_struct(ndr, "in", "PNP_RegisterDriver");
1567 ndr->depth++;
1568 ndr->depth--;
1570 if (flags & NDR_OUT) {
1571 ndr_print_struct(ndr, "out", "PNP_RegisterDriver");
1572 ndr->depth++;
1573 ndr_print_WERROR(ndr, "result", r->out.result);
1574 ndr->depth--;
1576 ndr->depth--;
1579 static enum ndr_err_code ndr_push_PNP_QueryRemove(struct ndr_push *ndr, int flags, const struct PNP_QueryRemove *r)
1581 if (flags & NDR_IN) {
1583 if (flags & NDR_OUT) {
1584 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
1586 return NDR_ERR_SUCCESS;
1589 static enum ndr_err_code ndr_pull_PNP_QueryRemove(struct ndr_pull *ndr, int flags, struct PNP_QueryRemove *r)
1591 if (flags & NDR_IN) {
1593 if (flags & NDR_OUT) {
1594 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
1596 return NDR_ERR_SUCCESS;
1599 _PUBLIC_ void ndr_print_PNP_QueryRemove(struct ndr_print *ndr, const char *name, int flags, const struct PNP_QueryRemove *r)
1601 ndr_print_struct(ndr, name, "PNP_QueryRemove");
1602 ndr->depth++;
1603 if (flags & NDR_SET_VALUES) {
1604 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
1606 if (flags & NDR_IN) {
1607 ndr_print_struct(ndr, "in", "PNP_QueryRemove");
1608 ndr->depth++;
1609 ndr->depth--;
1611 if (flags & NDR_OUT) {
1612 ndr_print_struct(ndr, "out", "PNP_QueryRemove");
1613 ndr->depth++;
1614 ndr_print_WERROR(ndr, "result", r->out.result);
1615 ndr->depth--;
1617 ndr->depth--;
1620 static enum ndr_err_code ndr_push_PNP_RequestDeviceEject(struct ndr_push *ndr, int flags, const struct PNP_RequestDeviceEject *r)
1622 if (flags & NDR_IN) {
1624 if (flags & NDR_OUT) {
1625 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
1627 return NDR_ERR_SUCCESS;
1630 static enum ndr_err_code ndr_pull_PNP_RequestDeviceEject(struct ndr_pull *ndr, int flags, struct PNP_RequestDeviceEject *r)
1632 if (flags & NDR_IN) {
1634 if (flags & NDR_OUT) {
1635 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
1637 return NDR_ERR_SUCCESS;
1640 _PUBLIC_ void ndr_print_PNP_RequestDeviceEject(struct ndr_print *ndr, const char *name, int flags, const struct PNP_RequestDeviceEject *r)
1642 ndr_print_struct(ndr, name, "PNP_RequestDeviceEject");
1643 ndr->depth++;
1644 if (flags & NDR_SET_VALUES) {
1645 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
1647 if (flags & NDR_IN) {
1648 ndr_print_struct(ndr, "in", "PNP_RequestDeviceEject");
1649 ndr->depth++;
1650 ndr->depth--;
1652 if (flags & NDR_OUT) {
1653 ndr_print_struct(ndr, "out", "PNP_RequestDeviceEject");
1654 ndr->depth++;
1655 ndr_print_WERROR(ndr, "result", r->out.result);
1656 ndr->depth--;
1658 ndr->depth--;
1661 static enum ndr_err_code ndr_push_PNP_IsDockStationPresent(struct ndr_push *ndr, int flags, const struct PNP_IsDockStationPresent *r)
1663 if (flags & NDR_IN) {
1665 if (flags & NDR_OUT) {
1666 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
1668 return NDR_ERR_SUCCESS;
1671 static enum ndr_err_code ndr_pull_PNP_IsDockStationPresent(struct ndr_pull *ndr, int flags, struct PNP_IsDockStationPresent *r)
1673 if (flags & NDR_IN) {
1675 if (flags & NDR_OUT) {
1676 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
1678 return NDR_ERR_SUCCESS;
1681 _PUBLIC_ void ndr_print_PNP_IsDockStationPresent(struct ndr_print *ndr, const char *name, int flags, const struct PNP_IsDockStationPresent *r)
1683 ndr_print_struct(ndr, name, "PNP_IsDockStationPresent");
1684 ndr->depth++;
1685 if (flags & NDR_SET_VALUES) {
1686 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
1688 if (flags & NDR_IN) {
1689 ndr_print_struct(ndr, "in", "PNP_IsDockStationPresent");
1690 ndr->depth++;
1691 ndr->depth--;
1693 if (flags & NDR_OUT) {
1694 ndr_print_struct(ndr, "out", "PNP_IsDockStationPresent");
1695 ndr->depth++;
1696 ndr_print_WERROR(ndr, "result", r->out.result);
1697 ndr->depth--;
1699 ndr->depth--;
1702 static enum ndr_err_code ndr_push_PNP_RequestEjectPC(struct ndr_push *ndr, int flags, const struct PNP_RequestEjectPC *r)
1704 if (flags & NDR_IN) {
1706 if (flags & NDR_OUT) {
1707 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
1709 return NDR_ERR_SUCCESS;
1712 static enum ndr_err_code ndr_pull_PNP_RequestEjectPC(struct ndr_pull *ndr, int flags, struct PNP_RequestEjectPC *r)
1714 if (flags & NDR_IN) {
1716 if (flags & NDR_OUT) {
1717 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
1719 return NDR_ERR_SUCCESS;
1722 _PUBLIC_ void ndr_print_PNP_RequestEjectPC(struct ndr_print *ndr, const char *name, int flags, const struct PNP_RequestEjectPC *r)
1724 ndr_print_struct(ndr, name, "PNP_RequestEjectPC");
1725 ndr->depth++;
1726 if (flags & NDR_SET_VALUES) {
1727 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
1729 if (flags & NDR_IN) {
1730 ndr_print_struct(ndr, "in", "PNP_RequestEjectPC");
1731 ndr->depth++;
1732 ndr->depth--;
1734 if (flags & NDR_OUT) {
1735 ndr_print_struct(ndr, "out", "PNP_RequestEjectPC");
1736 ndr->depth++;
1737 ndr_print_WERROR(ndr, "result", r->out.result);
1738 ndr->depth--;
1740 ndr->depth--;
1743 static enum ndr_err_code ndr_push_PNP_HwProfFlags(struct ndr_push *ndr, int flags, const struct PNP_HwProfFlags *r)
1745 if (flags & NDR_IN) {
1747 if (flags & NDR_OUT) {
1748 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
1750 return NDR_ERR_SUCCESS;
1753 static enum ndr_err_code ndr_pull_PNP_HwProfFlags(struct ndr_pull *ndr, int flags, struct PNP_HwProfFlags *r)
1755 if (flags & NDR_IN) {
1757 if (flags & NDR_OUT) {
1758 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
1760 return NDR_ERR_SUCCESS;
1763 _PUBLIC_ void ndr_print_PNP_HwProfFlags(struct ndr_print *ndr, const char *name, int flags, const struct PNP_HwProfFlags *r)
1765 ndr_print_struct(ndr, name, "PNP_HwProfFlags");
1766 ndr->depth++;
1767 if (flags & NDR_SET_VALUES) {
1768 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
1770 if (flags & NDR_IN) {
1771 ndr_print_struct(ndr, "in", "PNP_HwProfFlags");
1772 ndr->depth++;
1773 ndr->depth--;
1775 if (flags & NDR_OUT) {
1776 ndr_print_struct(ndr, "out", "PNP_HwProfFlags");
1777 ndr->depth++;
1778 ndr_print_WERROR(ndr, "result", r->out.result);
1779 ndr->depth--;
1781 ndr->depth--;
1784 static enum ndr_err_code ndr_push_PNP_GetHwProfInfo(struct ndr_push *ndr, int flags, const struct PNP_GetHwProfInfo *r)
1786 if (flags & NDR_IN) {
1788 if (flags & NDR_OUT) {
1789 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
1791 return NDR_ERR_SUCCESS;
1794 static enum ndr_err_code ndr_pull_PNP_GetHwProfInfo(struct ndr_pull *ndr, int flags, struct PNP_GetHwProfInfo *r)
1796 if (flags & NDR_IN) {
1798 if (flags & NDR_OUT) {
1799 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
1801 return NDR_ERR_SUCCESS;
1804 _PUBLIC_ void ndr_print_PNP_GetHwProfInfo(struct ndr_print *ndr, const char *name, int flags, const struct PNP_GetHwProfInfo *r)
1806 ndr_print_struct(ndr, name, "PNP_GetHwProfInfo");
1807 ndr->depth++;
1808 if (flags & NDR_SET_VALUES) {
1809 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
1811 if (flags & NDR_IN) {
1812 ndr_print_struct(ndr, "in", "PNP_GetHwProfInfo");
1813 ndr->depth++;
1814 ndr->depth--;
1816 if (flags & NDR_OUT) {
1817 ndr_print_struct(ndr, "out", "PNP_GetHwProfInfo");
1818 ndr->depth++;
1819 ndr_print_WERROR(ndr, "result", r->out.result);
1820 ndr->depth--;
1822 ndr->depth--;
1825 static enum ndr_err_code ndr_push_PNP_AddEmptyLogConf(struct ndr_push *ndr, int flags, const struct PNP_AddEmptyLogConf *r)
1827 if (flags & NDR_IN) {
1829 if (flags & NDR_OUT) {
1830 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
1832 return NDR_ERR_SUCCESS;
1835 static enum ndr_err_code ndr_pull_PNP_AddEmptyLogConf(struct ndr_pull *ndr, int flags, struct PNP_AddEmptyLogConf *r)
1837 if (flags & NDR_IN) {
1839 if (flags & NDR_OUT) {
1840 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
1842 return NDR_ERR_SUCCESS;
1845 _PUBLIC_ void ndr_print_PNP_AddEmptyLogConf(struct ndr_print *ndr, const char *name, int flags, const struct PNP_AddEmptyLogConf *r)
1847 ndr_print_struct(ndr, name, "PNP_AddEmptyLogConf");
1848 ndr->depth++;
1849 if (flags & NDR_SET_VALUES) {
1850 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
1852 if (flags & NDR_IN) {
1853 ndr_print_struct(ndr, "in", "PNP_AddEmptyLogConf");
1854 ndr->depth++;
1855 ndr->depth--;
1857 if (flags & NDR_OUT) {
1858 ndr_print_struct(ndr, "out", "PNP_AddEmptyLogConf");
1859 ndr->depth++;
1860 ndr_print_WERROR(ndr, "result", r->out.result);
1861 ndr->depth--;
1863 ndr->depth--;
1866 static enum ndr_err_code ndr_push_PNP_FreeLogConf(struct ndr_push *ndr, int flags, const struct PNP_FreeLogConf *r)
1868 if (flags & NDR_IN) {
1870 if (flags & NDR_OUT) {
1871 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
1873 return NDR_ERR_SUCCESS;
1876 static enum ndr_err_code ndr_pull_PNP_FreeLogConf(struct ndr_pull *ndr, int flags, struct PNP_FreeLogConf *r)
1878 if (flags & NDR_IN) {
1880 if (flags & NDR_OUT) {
1881 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
1883 return NDR_ERR_SUCCESS;
1886 _PUBLIC_ void ndr_print_PNP_FreeLogConf(struct ndr_print *ndr, const char *name, int flags, const struct PNP_FreeLogConf *r)
1888 ndr_print_struct(ndr, name, "PNP_FreeLogConf");
1889 ndr->depth++;
1890 if (flags & NDR_SET_VALUES) {
1891 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
1893 if (flags & NDR_IN) {
1894 ndr_print_struct(ndr, "in", "PNP_FreeLogConf");
1895 ndr->depth++;
1896 ndr->depth--;
1898 if (flags & NDR_OUT) {
1899 ndr_print_struct(ndr, "out", "PNP_FreeLogConf");
1900 ndr->depth++;
1901 ndr_print_WERROR(ndr, "result", r->out.result);
1902 ndr->depth--;
1904 ndr->depth--;
1907 static enum ndr_err_code ndr_push_PNP_GetFirstLogConf(struct ndr_push *ndr, int flags, const struct PNP_GetFirstLogConf *r)
1909 if (flags & NDR_IN) {
1911 if (flags & NDR_OUT) {
1912 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
1914 return NDR_ERR_SUCCESS;
1917 static enum ndr_err_code ndr_pull_PNP_GetFirstLogConf(struct ndr_pull *ndr, int flags, struct PNP_GetFirstLogConf *r)
1919 if (flags & NDR_IN) {
1921 if (flags & NDR_OUT) {
1922 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
1924 return NDR_ERR_SUCCESS;
1927 _PUBLIC_ void ndr_print_PNP_GetFirstLogConf(struct ndr_print *ndr, const char *name, int flags, const struct PNP_GetFirstLogConf *r)
1929 ndr_print_struct(ndr, name, "PNP_GetFirstLogConf");
1930 ndr->depth++;
1931 if (flags & NDR_SET_VALUES) {
1932 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
1934 if (flags & NDR_IN) {
1935 ndr_print_struct(ndr, "in", "PNP_GetFirstLogConf");
1936 ndr->depth++;
1937 ndr->depth--;
1939 if (flags & NDR_OUT) {
1940 ndr_print_struct(ndr, "out", "PNP_GetFirstLogConf");
1941 ndr->depth++;
1942 ndr_print_WERROR(ndr, "result", r->out.result);
1943 ndr->depth--;
1945 ndr->depth--;
1948 static enum ndr_err_code ndr_push_PNP_GetNextLogConf(struct ndr_push *ndr, int flags, const struct PNP_GetNextLogConf *r)
1950 if (flags & NDR_IN) {
1952 if (flags & NDR_OUT) {
1953 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
1955 return NDR_ERR_SUCCESS;
1958 static enum ndr_err_code ndr_pull_PNP_GetNextLogConf(struct ndr_pull *ndr, int flags, struct PNP_GetNextLogConf *r)
1960 if (flags & NDR_IN) {
1962 if (flags & NDR_OUT) {
1963 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
1965 return NDR_ERR_SUCCESS;
1968 _PUBLIC_ void ndr_print_PNP_GetNextLogConf(struct ndr_print *ndr, const char *name, int flags, const struct PNP_GetNextLogConf *r)
1970 ndr_print_struct(ndr, name, "PNP_GetNextLogConf");
1971 ndr->depth++;
1972 if (flags & NDR_SET_VALUES) {
1973 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
1975 if (flags & NDR_IN) {
1976 ndr_print_struct(ndr, "in", "PNP_GetNextLogConf");
1977 ndr->depth++;
1978 ndr->depth--;
1980 if (flags & NDR_OUT) {
1981 ndr_print_struct(ndr, "out", "PNP_GetNextLogConf");
1982 ndr->depth++;
1983 ndr_print_WERROR(ndr, "result", r->out.result);
1984 ndr->depth--;
1986 ndr->depth--;
1989 static enum ndr_err_code ndr_push_PNP_GetLogConfPriority(struct ndr_push *ndr, int flags, const struct PNP_GetLogConfPriority *r)
1991 if (flags & NDR_IN) {
1993 if (flags & NDR_OUT) {
1994 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
1996 return NDR_ERR_SUCCESS;
1999 static enum ndr_err_code ndr_pull_PNP_GetLogConfPriority(struct ndr_pull *ndr, int flags, struct PNP_GetLogConfPriority *r)
2001 if (flags & NDR_IN) {
2003 if (flags & NDR_OUT) {
2004 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
2006 return NDR_ERR_SUCCESS;
2009 _PUBLIC_ void ndr_print_PNP_GetLogConfPriority(struct ndr_print *ndr, const char *name, int flags, const struct PNP_GetLogConfPriority *r)
2011 ndr_print_struct(ndr, name, "PNP_GetLogConfPriority");
2012 ndr->depth++;
2013 if (flags & NDR_SET_VALUES) {
2014 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2016 if (flags & NDR_IN) {
2017 ndr_print_struct(ndr, "in", "PNP_GetLogConfPriority");
2018 ndr->depth++;
2019 ndr->depth--;
2021 if (flags & NDR_OUT) {
2022 ndr_print_struct(ndr, "out", "PNP_GetLogConfPriority");
2023 ndr->depth++;
2024 ndr_print_WERROR(ndr, "result", r->out.result);
2025 ndr->depth--;
2027 ndr->depth--;
2030 static enum ndr_err_code ndr_push_PNP_AddResDes(struct ndr_push *ndr, int flags, const struct PNP_AddResDes *r)
2032 if (flags & NDR_IN) {
2034 if (flags & NDR_OUT) {
2035 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
2037 return NDR_ERR_SUCCESS;
2040 static enum ndr_err_code ndr_pull_PNP_AddResDes(struct ndr_pull *ndr, int flags, struct PNP_AddResDes *r)
2042 if (flags & NDR_IN) {
2044 if (flags & NDR_OUT) {
2045 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
2047 return NDR_ERR_SUCCESS;
2050 _PUBLIC_ void ndr_print_PNP_AddResDes(struct ndr_print *ndr, const char *name, int flags, const struct PNP_AddResDes *r)
2052 ndr_print_struct(ndr, name, "PNP_AddResDes");
2053 ndr->depth++;
2054 if (flags & NDR_SET_VALUES) {
2055 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2057 if (flags & NDR_IN) {
2058 ndr_print_struct(ndr, "in", "PNP_AddResDes");
2059 ndr->depth++;
2060 ndr->depth--;
2062 if (flags & NDR_OUT) {
2063 ndr_print_struct(ndr, "out", "PNP_AddResDes");
2064 ndr->depth++;
2065 ndr_print_WERROR(ndr, "result", r->out.result);
2066 ndr->depth--;
2068 ndr->depth--;
2071 static enum ndr_err_code ndr_push_PNP_FreeResDes(struct ndr_push *ndr, int flags, const struct PNP_FreeResDes *r)
2073 if (flags & NDR_IN) {
2075 if (flags & NDR_OUT) {
2076 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
2078 return NDR_ERR_SUCCESS;
2081 static enum ndr_err_code ndr_pull_PNP_FreeResDes(struct ndr_pull *ndr, int flags, struct PNP_FreeResDes *r)
2083 if (flags & NDR_IN) {
2085 if (flags & NDR_OUT) {
2086 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
2088 return NDR_ERR_SUCCESS;
2091 _PUBLIC_ void ndr_print_PNP_FreeResDes(struct ndr_print *ndr, const char *name, int flags, const struct PNP_FreeResDes *r)
2093 ndr_print_struct(ndr, name, "PNP_FreeResDes");
2094 ndr->depth++;
2095 if (flags & NDR_SET_VALUES) {
2096 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2098 if (flags & NDR_IN) {
2099 ndr_print_struct(ndr, "in", "PNP_FreeResDes");
2100 ndr->depth++;
2101 ndr->depth--;
2103 if (flags & NDR_OUT) {
2104 ndr_print_struct(ndr, "out", "PNP_FreeResDes");
2105 ndr->depth++;
2106 ndr_print_WERROR(ndr, "result", r->out.result);
2107 ndr->depth--;
2109 ndr->depth--;
2112 static enum ndr_err_code ndr_push_PNP_GetNextResDes(struct ndr_push *ndr, int flags, const struct PNP_GetNextResDes *r)
2114 if (flags & NDR_IN) {
2116 if (flags & NDR_OUT) {
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_GetNextResDes(struct ndr_pull *ndr, int flags, struct PNP_GetNextResDes *r)
2124 if (flags & NDR_IN) {
2126 if (flags & NDR_OUT) {
2127 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
2129 return NDR_ERR_SUCCESS;
2132 _PUBLIC_ void ndr_print_PNP_GetNextResDes(struct ndr_print *ndr, const char *name, int flags, const struct PNP_GetNextResDes *r)
2134 ndr_print_struct(ndr, name, "PNP_GetNextResDes");
2135 ndr->depth++;
2136 if (flags & NDR_SET_VALUES) {
2137 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2139 if (flags & NDR_IN) {
2140 ndr_print_struct(ndr, "in", "PNP_GetNextResDes");
2141 ndr->depth++;
2142 ndr->depth--;
2144 if (flags & NDR_OUT) {
2145 ndr_print_struct(ndr, "out", "PNP_GetNextResDes");
2146 ndr->depth++;
2147 ndr_print_WERROR(ndr, "result", r->out.result);
2148 ndr->depth--;
2150 ndr->depth--;
2153 static enum ndr_err_code ndr_push_PNP_GetResDesData(struct ndr_push *ndr, int flags, const struct PNP_GetResDesData *r)
2155 if (flags & NDR_IN) {
2157 if (flags & NDR_OUT) {
2158 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
2160 return NDR_ERR_SUCCESS;
2163 static enum ndr_err_code ndr_pull_PNP_GetResDesData(struct ndr_pull *ndr, int flags, struct PNP_GetResDesData *r)
2165 if (flags & NDR_IN) {
2167 if (flags & NDR_OUT) {
2168 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
2170 return NDR_ERR_SUCCESS;
2173 _PUBLIC_ void ndr_print_PNP_GetResDesData(struct ndr_print *ndr, const char *name, int flags, const struct PNP_GetResDesData *r)
2175 ndr_print_struct(ndr, name, "PNP_GetResDesData");
2176 ndr->depth++;
2177 if (flags & NDR_SET_VALUES) {
2178 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2180 if (flags & NDR_IN) {
2181 ndr_print_struct(ndr, "in", "PNP_GetResDesData");
2182 ndr->depth++;
2183 ndr->depth--;
2185 if (flags & NDR_OUT) {
2186 ndr_print_struct(ndr, "out", "PNP_GetResDesData");
2187 ndr->depth++;
2188 ndr_print_WERROR(ndr, "result", r->out.result);
2189 ndr->depth--;
2191 ndr->depth--;
2194 static enum ndr_err_code ndr_push_PNP_GetResDesDataSize(struct ndr_push *ndr, int flags, const struct PNP_GetResDesDataSize *r)
2196 if (flags & NDR_IN) {
2198 if (flags & NDR_OUT) {
2199 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
2201 return NDR_ERR_SUCCESS;
2204 static enum ndr_err_code ndr_pull_PNP_GetResDesDataSize(struct ndr_pull *ndr, int flags, struct PNP_GetResDesDataSize *r)
2206 if (flags & NDR_IN) {
2208 if (flags & NDR_OUT) {
2209 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
2211 return NDR_ERR_SUCCESS;
2214 _PUBLIC_ void ndr_print_PNP_GetResDesDataSize(struct ndr_print *ndr, const char *name, int flags, const struct PNP_GetResDesDataSize *r)
2216 ndr_print_struct(ndr, name, "PNP_GetResDesDataSize");
2217 ndr->depth++;
2218 if (flags & NDR_SET_VALUES) {
2219 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2221 if (flags & NDR_IN) {
2222 ndr_print_struct(ndr, "in", "PNP_GetResDesDataSize");
2223 ndr->depth++;
2224 ndr->depth--;
2226 if (flags & NDR_OUT) {
2227 ndr_print_struct(ndr, "out", "PNP_GetResDesDataSize");
2228 ndr->depth++;
2229 ndr_print_WERROR(ndr, "result", r->out.result);
2230 ndr->depth--;
2232 ndr->depth--;
2235 static enum ndr_err_code ndr_push_PNP_ModifyResDes(struct ndr_push *ndr, int flags, const struct PNP_ModifyResDes *r)
2237 if (flags & NDR_IN) {
2239 if (flags & NDR_OUT) {
2240 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
2242 return NDR_ERR_SUCCESS;
2245 static enum ndr_err_code ndr_pull_PNP_ModifyResDes(struct ndr_pull *ndr, int flags, struct PNP_ModifyResDes *r)
2247 if (flags & NDR_IN) {
2249 if (flags & NDR_OUT) {
2250 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
2252 return NDR_ERR_SUCCESS;
2255 _PUBLIC_ void ndr_print_PNP_ModifyResDes(struct ndr_print *ndr, const char *name, int flags, const struct PNP_ModifyResDes *r)
2257 ndr_print_struct(ndr, name, "PNP_ModifyResDes");
2258 ndr->depth++;
2259 if (flags & NDR_SET_VALUES) {
2260 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2262 if (flags & NDR_IN) {
2263 ndr_print_struct(ndr, "in", "PNP_ModifyResDes");
2264 ndr->depth++;
2265 ndr->depth--;
2267 if (flags & NDR_OUT) {
2268 ndr_print_struct(ndr, "out", "PNP_ModifyResDes");
2269 ndr->depth++;
2270 ndr_print_WERROR(ndr, "result", r->out.result);
2271 ndr->depth--;
2273 ndr->depth--;
2276 static enum ndr_err_code ndr_push_PNP_DetectResourceLimit(struct ndr_push *ndr, int flags, const struct PNP_DetectResourceLimit *r)
2278 if (flags & NDR_IN) {
2280 if (flags & NDR_OUT) {
2281 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
2283 return NDR_ERR_SUCCESS;
2286 static enum ndr_err_code ndr_pull_PNP_DetectResourceLimit(struct ndr_pull *ndr, int flags, struct PNP_DetectResourceLimit *r)
2288 if (flags & NDR_IN) {
2290 if (flags & NDR_OUT) {
2291 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
2293 return NDR_ERR_SUCCESS;
2296 _PUBLIC_ void ndr_print_PNP_DetectResourceLimit(struct ndr_print *ndr, const char *name, int flags, const struct PNP_DetectResourceLimit *r)
2298 ndr_print_struct(ndr, name, "PNP_DetectResourceLimit");
2299 ndr->depth++;
2300 if (flags & NDR_SET_VALUES) {
2301 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2303 if (flags & NDR_IN) {
2304 ndr_print_struct(ndr, "in", "PNP_DetectResourceLimit");
2305 ndr->depth++;
2306 ndr->depth--;
2308 if (flags & NDR_OUT) {
2309 ndr_print_struct(ndr, "out", "PNP_DetectResourceLimit");
2310 ndr->depth++;
2311 ndr_print_WERROR(ndr, "result", r->out.result);
2312 ndr->depth--;
2314 ndr->depth--;
2317 static enum ndr_err_code ndr_push_PNP_QueryResConfList(struct ndr_push *ndr, int flags, const struct PNP_QueryResConfList *r)
2319 if (flags & NDR_IN) {
2321 if (flags & NDR_OUT) {
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_QueryResConfList(struct ndr_pull *ndr, int flags, struct PNP_QueryResConfList *r)
2329 if (flags & NDR_IN) {
2331 if (flags & NDR_OUT) {
2332 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
2334 return NDR_ERR_SUCCESS;
2337 _PUBLIC_ void ndr_print_PNP_QueryResConfList(struct ndr_print *ndr, const char *name, int flags, const struct PNP_QueryResConfList *r)
2339 ndr_print_struct(ndr, name, "PNP_QueryResConfList");
2340 ndr->depth++;
2341 if (flags & NDR_SET_VALUES) {
2342 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2344 if (flags & NDR_IN) {
2345 ndr_print_struct(ndr, "in", "PNP_QueryResConfList");
2346 ndr->depth++;
2347 ndr->depth--;
2349 if (flags & NDR_OUT) {
2350 ndr_print_struct(ndr, "out", "PNP_QueryResConfList");
2351 ndr->depth++;
2352 ndr_print_WERROR(ndr, "result", r->out.result);
2353 ndr->depth--;
2355 ndr->depth--;
2358 static enum ndr_err_code ndr_push_PNP_SetHwProf(struct ndr_push *ndr, int flags, const struct PNP_SetHwProf *r)
2360 if (flags & NDR_IN) {
2362 if (flags & NDR_OUT) {
2363 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
2365 return NDR_ERR_SUCCESS;
2368 static enum ndr_err_code ndr_pull_PNP_SetHwProf(struct ndr_pull *ndr, int flags, struct PNP_SetHwProf *r)
2370 if (flags & NDR_IN) {
2372 if (flags & NDR_OUT) {
2373 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
2375 return NDR_ERR_SUCCESS;
2378 _PUBLIC_ void ndr_print_PNP_SetHwProf(struct ndr_print *ndr, const char *name, int flags, const struct PNP_SetHwProf *r)
2380 ndr_print_struct(ndr, name, "PNP_SetHwProf");
2381 ndr->depth++;
2382 if (flags & NDR_SET_VALUES) {
2383 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2385 if (flags & NDR_IN) {
2386 ndr_print_struct(ndr, "in", "PNP_SetHwProf");
2387 ndr->depth++;
2388 ndr->depth--;
2390 if (flags & NDR_OUT) {
2391 ndr_print_struct(ndr, "out", "PNP_SetHwProf");
2392 ndr->depth++;
2393 ndr_print_WERROR(ndr, "result", r->out.result);
2394 ndr->depth--;
2396 ndr->depth--;
2399 static enum ndr_err_code ndr_push_PNP_QueryArbitratorFreeData(struct ndr_push *ndr, int flags, const struct PNP_QueryArbitratorFreeData *r)
2401 if (flags & NDR_IN) {
2403 if (flags & NDR_OUT) {
2404 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
2406 return NDR_ERR_SUCCESS;
2409 static enum ndr_err_code ndr_pull_PNP_QueryArbitratorFreeData(struct ndr_pull *ndr, int flags, struct PNP_QueryArbitratorFreeData *r)
2411 if (flags & NDR_IN) {
2413 if (flags & NDR_OUT) {
2414 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
2416 return NDR_ERR_SUCCESS;
2419 _PUBLIC_ void ndr_print_PNP_QueryArbitratorFreeData(struct ndr_print *ndr, const char *name, int flags, const struct PNP_QueryArbitratorFreeData *r)
2421 ndr_print_struct(ndr, name, "PNP_QueryArbitratorFreeData");
2422 ndr->depth++;
2423 if (flags & NDR_SET_VALUES) {
2424 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2426 if (flags & NDR_IN) {
2427 ndr_print_struct(ndr, "in", "PNP_QueryArbitratorFreeData");
2428 ndr->depth++;
2429 ndr->depth--;
2431 if (flags & NDR_OUT) {
2432 ndr_print_struct(ndr, "out", "PNP_QueryArbitratorFreeData");
2433 ndr->depth++;
2434 ndr_print_WERROR(ndr, "result", r->out.result);
2435 ndr->depth--;
2437 ndr->depth--;
2440 static enum ndr_err_code ndr_push_PNP_QueryArbitratorFreeSize(struct ndr_push *ndr, int flags, const struct PNP_QueryArbitratorFreeSize *r)
2442 if (flags & NDR_IN) {
2444 if (flags & NDR_OUT) {
2445 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
2447 return NDR_ERR_SUCCESS;
2450 static enum ndr_err_code ndr_pull_PNP_QueryArbitratorFreeSize(struct ndr_pull *ndr, int flags, struct PNP_QueryArbitratorFreeSize *r)
2452 if (flags & NDR_IN) {
2454 if (flags & NDR_OUT) {
2455 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
2457 return NDR_ERR_SUCCESS;
2460 _PUBLIC_ void ndr_print_PNP_QueryArbitratorFreeSize(struct ndr_print *ndr, const char *name, int flags, const struct PNP_QueryArbitratorFreeSize *r)
2462 ndr_print_struct(ndr, name, "PNP_QueryArbitratorFreeSize");
2463 ndr->depth++;
2464 if (flags & NDR_SET_VALUES) {
2465 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2467 if (flags & NDR_IN) {
2468 ndr_print_struct(ndr, "in", "PNP_QueryArbitratorFreeSize");
2469 ndr->depth++;
2470 ndr->depth--;
2472 if (flags & NDR_OUT) {
2473 ndr_print_struct(ndr, "out", "PNP_QueryArbitratorFreeSize");
2474 ndr->depth++;
2475 ndr_print_WERROR(ndr, "result", r->out.result);
2476 ndr->depth--;
2478 ndr->depth--;
2481 static enum ndr_err_code ndr_push_PNP_RunDetection(struct ndr_push *ndr, int flags, const struct PNP_RunDetection *r)
2483 if (flags & NDR_IN) {
2485 if (flags & NDR_OUT) {
2486 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
2488 return NDR_ERR_SUCCESS;
2491 static enum ndr_err_code ndr_pull_PNP_RunDetection(struct ndr_pull *ndr, int flags, struct PNP_RunDetection *r)
2493 if (flags & NDR_IN) {
2495 if (flags & NDR_OUT) {
2496 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
2498 return NDR_ERR_SUCCESS;
2501 _PUBLIC_ void ndr_print_PNP_RunDetection(struct ndr_print *ndr, const char *name, int flags, const struct PNP_RunDetection *r)
2503 ndr_print_struct(ndr, name, "PNP_RunDetection");
2504 ndr->depth++;
2505 if (flags & NDR_SET_VALUES) {
2506 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2508 if (flags & NDR_IN) {
2509 ndr_print_struct(ndr, "in", "PNP_RunDetection");
2510 ndr->depth++;
2511 ndr->depth--;
2513 if (flags & NDR_OUT) {
2514 ndr_print_struct(ndr, "out", "PNP_RunDetection");
2515 ndr->depth++;
2516 ndr_print_WERROR(ndr, "result", r->out.result);
2517 ndr->depth--;
2519 ndr->depth--;
2522 static enum ndr_err_code ndr_push_PNP_RegisterNotification(struct ndr_push *ndr, int flags, const struct PNP_RegisterNotification *r)
2524 if (flags & NDR_IN) {
2526 if (flags & NDR_OUT) {
2527 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
2529 return NDR_ERR_SUCCESS;
2532 static enum ndr_err_code ndr_pull_PNP_RegisterNotification(struct ndr_pull *ndr, int flags, struct PNP_RegisterNotification *r)
2534 if (flags & NDR_IN) {
2536 if (flags & NDR_OUT) {
2537 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
2539 return NDR_ERR_SUCCESS;
2542 _PUBLIC_ void ndr_print_PNP_RegisterNotification(struct ndr_print *ndr, const char *name, int flags, const struct PNP_RegisterNotification *r)
2544 ndr_print_struct(ndr, name, "PNP_RegisterNotification");
2545 ndr->depth++;
2546 if (flags & NDR_SET_VALUES) {
2547 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2549 if (flags & NDR_IN) {
2550 ndr_print_struct(ndr, "in", "PNP_RegisterNotification");
2551 ndr->depth++;
2552 ndr->depth--;
2554 if (flags & NDR_OUT) {
2555 ndr_print_struct(ndr, "out", "PNP_RegisterNotification");
2556 ndr->depth++;
2557 ndr_print_WERROR(ndr, "result", r->out.result);
2558 ndr->depth--;
2560 ndr->depth--;
2563 static enum ndr_err_code ndr_push_PNP_UnregisterNotification(struct ndr_push *ndr, int flags, const struct PNP_UnregisterNotification *r)
2565 if (flags & NDR_IN) {
2567 if (flags & NDR_OUT) {
2568 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
2570 return NDR_ERR_SUCCESS;
2573 static enum ndr_err_code ndr_pull_PNP_UnregisterNotification(struct ndr_pull *ndr, int flags, struct PNP_UnregisterNotification *r)
2575 if (flags & NDR_IN) {
2577 if (flags & NDR_OUT) {
2578 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
2580 return NDR_ERR_SUCCESS;
2583 _PUBLIC_ void ndr_print_PNP_UnregisterNotification(struct ndr_print *ndr, const char *name, int flags, const struct PNP_UnregisterNotification *r)
2585 ndr_print_struct(ndr, name, "PNP_UnregisterNotification");
2586 ndr->depth++;
2587 if (flags & NDR_SET_VALUES) {
2588 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2590 if (flags & NDR_IN) {
2591 ndr_print_struct(ndr, "in", "PNP_UnregisterNotification");
2592 ndr->depth++;
2593 ndr->depth--;
2595 if (flags & NDR_OUT) {
2596 ndr_print_struct(ndr, "out", "PNP_UnregisterNotification");
2597 ndr->depth++;
2598 ndr_print_WERROR(ndr, "result", r->out.result);
2599 ndr->depth--;
2601 ndr->depth--;
2604 static enum ndr_err_code ndr_push_PNP_GetCustomDevProp(struct ndr_push *ndr, int flags, const struct PNP_GetCustomDevProp *r)
2606 if (flags & NDR_IN) {
2608 if (flags & NDR_OUT) {
2609 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
2611 return NDR_ERR_SUCCESS;
2614 static enum ndr_err_code ndr_pull_PNP_GetCustomDevProp(struct ndr_pull *ndr, int flags, struct PNP_GetCustomDevProp *r)
2616 if (flags & NDR_IN) {
2618 if (flags & NDR_OUT) {
2619 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
2621 return NDR_ERR_SUCCESS;
2624 _PUBLIC_ void ndr_print_PNP_GetCustomDevProp(struct ndr_print *ndr, const char *name, int flags, const struct PNP_GetCustomDevProp *r)
2626 ndr_print_struct(ndr, name, "PNP_GetCustomDevProp");
2627 ndr->depth++;
2628 if (flags & NDR_SET_VALUES) {
2629 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2631 if (flags & NDR_IN) {
2632 ndr_print_struct(ndr, "in", "PNP_GetCustomDevProp");
2633 ndr->depth++;
2634 ndr->depth--;
2636 if (flags & NDR_OUT) {
2637 ndr_print_struct(ndr, "out", "PNP_GetCustomDevProp");
2638 ndr->depth++;
2639 ndr_print_WERROR(ndr, "result", r->out.result);
2640 ndr->depth--;
2642 ndr->depth--;
2645 static enum ndr_err_code ndr_push_PNP_GetVersionInternal(struct ndr_push *ndr, int flags, const struct PNP_GetVersionInternal *r)
2647 if (flags & NDR_IN) {
2649 if (flags & NDR_OUT) {
2650 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
2652 return NDR_ERR_SUCCESS;
2655 static enum ndr_err_code ndr_pull_PNP_GetVersionInternal(struct ndr_pull *ndr, int flags, struct PNP_GetVersionInternal *r)
2657 if (flags & NDR_IN) {
2659 if (flags & NDR_OUT) {
2660 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
2662 return NDR_ERR_SUCCESS;
2665 _PUBLIC_ void ndr_print_PNP_GetVersionInternal(struct ndr_print *ndr, const char *name, int flags, const struct PNP_GetVersionInternal *r)
2667 ndr_print_struct(ndr, name, "PNP_GetVersionInternal");
2668 ndr->depth++;
2669 if (flags & NDR_SET_VALUES) {
2670 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2672 if (flags & NDR_IN) {
2673 ndr_print_struct(ndr, "in", "PNP_GetVersionInternal");
2674 ndr->depth++;
2675 ndr->depth--;
2677 if (flags & NDR_OUT) {
2678 ndr_print_struct(ndr, "out", "PNP_GetVersionInternal");
2679 ndr->depth++;
2680 ndr_print_WERROR(ndr, "result", r->out.result);
2681 ndr->depth--;
2683 ndr->depth--;
2686 static enum ndr_err_code ndr_push_PNP_GetBlockedDriverInfo(struct ndr_push *ndr, int flags, const struct PNP_GetBlockedDriverInfo *r)
2688 if (flags & NDR_IN) {
2690 if (flags & NDR_OUT) {
2691 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
2693 return NDR_ERR_SUCCESS;
2696 static enum ndr_err_code ndr_pull_PNP_GetBlockedDriverInfo(struct ndr_pull *ndr, int flags, struct PNP_GetBlockedDriverInfo *r)
2698 if (flags & NDR_IN) {
2700 if (flags & NDR_OUT) {
2701 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
2703 return NDR_ERR_SUCCESS;
2706 _PUBLIC_ void ndr_print_PNP_GetBlockedDriverInfo(struct ndr_print *ndr, const char *name, int flags, const struct PNP_GetBlockedDriverInfo *r)
2708 ndr_print_struct(ndr, name, "PNP_GetBlockedDriverInfo");
2709 ndr->depth++;
2710 if (flags & NDR_SET_VALUES) {
2711 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2713 if (flags & NDR_IN) {
2714 ndr_print_struct(ndr, "in", "PNP_GetBlockedDriverInfo");
2715 ndr->depth++;
2716 ndr->depth--;
2718 if (flags & NDR_OUT) {
2719 ndr_print_struct(ndr, "out", "PNP_GetBlockedDriverInfo");
2720 ndr->depth++;
2721 ndr_print_WERROR(ndr, "result", r->out.result);
2722 ndr->depth--;
2724 ndr->depth--;
2727 static enum ndr_err_code ndr_push_PNP_GetServerSideDeviceInstallFlags(struct ndr_push *ndr, int flags, const struct PNP_GetServerSideDeviceInstallFlags *r)
2729 if (flags & NDR_IN) {
2731 if (flags & NDR_OUT) {
2732 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
2734 return NDR_ERR_SUCCESS;
2737 static enum ndr_err_code ndr_pull_PNP_GetServerSideDeviceInstallFlags(struct ndr_pull *ndr, int flags, struct PNP_GetServerSideDeviceInstallFlags *r)
2739 if (flags & NDR_IN) {
2741 if (flags & NDR_OUT) {
2742 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
2744 return NDR_ERR_SUCCESS;
2747 _PUBLIC_ void ndr_print_PNP_GetServerSideDeviceInstallFlags(struct ndr_print *ndr, const char *name, int flags, const struct PNP_GetServerSideDeviceInstallFlags *r)
2749 ndr_print_struct(ndr, name, "PNP_GetServerSideDeviceInstallFlags");
2750 ndr->depth++;
2751 if (flags & NDR_SET_VALUES) {
2752 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2754 if (flags & NDR_IN) {
2755 ndr_print_struct(ndr, "in", "PNP_GetServerSideDeviceInstallFlags");
2756 ndr->depth++;
2757 ndr->depth--;
2759 if (flags & NDR_OUT) {
2760 ndr_print_struct(ndr, "out", "PNP_GetServerSideDeviceInstallFlags");
2761 ndr->depth++;
2762 ndr_print_WERROR(ndr, "result", r->out.result);
2763 ndr->depth--;
2765 ndr->depth--;
2768 static const struct ndr_interface_call ntsvcs_calls[] = {
2770 "PNP_Disconnect",
2771 sizeof(struct PNP_Disconnect),
2772 (ndr_push_flags_fn_t) ndr_push_PNP_Disconnect,
2773 (ndr_pull_flags_fn_t) ndr_pull_PNP_Disconnect,
2774 (ndr_print_function_t) ndr_print_PNP_Disconnect,
2775 false,
2778 "PNP_Connect",
2779 sizeof(struct PNP_Connect),
2780 (ndr_push_flags_fn_t) ndr_push_PNP_Connect,
2781 (ndr_pull_flags_fn_t) ndr_pull_PNP_Connect,
2782 (ndr_print_function_t) ndr_print_PNP_Connect,
2783 false,
2786 "PNP_GetVersion",
2787 sizeof(struct PNP_GetVersion),
2788 (ndr_push_flags_fn_t) ndr_push_PNP_GetVersion,
2789 (ndr_pull_flags_fn_t) ndr_pull_PNP_GetVersion,
2790 (ndr_print_function_t) ndr_print_PNP_GetVersion,
2791 false,
2794 "PNP_GetGlobalState",
2795 sizeof(struct PNP_GetGlobalState),
2796 (ndr_push_flags_fn_t) ndr_push_PNP_GetGlobalState,
2797 (ndr_pull_flags_fn_t) ndr_pull_PNP_GetGlobalState,
2798 (ndr_print_function_t) ndr_print_PNP_GetGlobalState,
2799 false,
2802 "PNP_InitDetection",
2803 sizeof(struct PNP_InitDetection),
2804 (ndr_push_flags_fn_t) ndr_push_PNP_InitDetection,
2805 (ndr_pull_flags_fn_t) ndr_pull_PNP_InitDetection,
2806 (ndr_print_function_t) ndr_print_PNP_InitDetection,
2807 false,
2810 "PNP_ReportLogOn",
2811 sizeof(struct PNP_ReportLogOn),
2812 (ndr_push_flags_fn_t) ndr_push_PNP_ReportLogOn,
2813 (ndr_pull_flags_fn_t) ndr_pull_PNP_ReportLogOn,
2814 (ndr_print_function_t) ndr_print_PNP_ReportLogOn,
2815 false,
2818 "PNP_ValidateDeviceInstance",
2819 sizeof(struct PNP_ValidateDeviceInstance),
2820 (ndr_push_flags_fn_t) ndr_push_PNP_ValidateDeviceInstance,
2821 (ndr_pull_flags_fn_t) ndr_pull_PNP_ValidateDeviceInstance,
2822 (ndr_print_function_t) ndr_print_PNP_ValidateDeviceInstance,
2823 false,
2826 "PNP_GetRootDeviceInstance",
2827 sizeof(struct PNP_GetRootDeviceInstance),
2828 (ndr_push_flags_fn_t) ndr_push_PNP_GetRootDeviceInstance,
2829 (ndr_pull_flags_fn_t) ndr_pull_PNP_GetRootDeviceInstance,
2830 (ndr_print_function_t) ndr_print_PNP_GetRootDeviceInstance,
2831 false,
2834 "PNP_GetRelatedDeviceInstance",
2835 sizeof(struct PNP_GetRelatedDeviceInstance),
2836 (ndr_push_flags_fn_t) ndr_push_PNP_GetRelatedDeviceInstance,
2837 (ndr_pull_flags_fn_t) ndr_pull_PNP_GetRelatedDeviceInstance,
2838 (ndr_print_function_t) ndr_print_PNP_GetRelatedDeviceInstance,
2839 false,
2842 "PNP_EnumerateSubKeys",
2843 sizeof(struct PNP_EnumerateSubKeys),
2844 (ndr_push_flags_fn_t) ndr_push_PNP_EnumerateSubKeys,
2845 (ndr_pull_flags_fn_t) ndr_pull_PNP_EnumerateSubKeys,
2846 (ndr_print_function_t) ndr_print_PNP_EnumerateSubKeys,
2847 false,
2850 "PNP_GetDeviceList",
2851 sizeof(struct PNP_GetDeviceList),
2852 (ndr_push_flags_fn_t) ndr_push_PNP_GetDeviceList,
2853 (ndr_pull_flags_fn_t) ndr_pull_PNP_GetDeviceList,
2854 (ndr_print_function_t) ndr_print_PNP_GetDeviceList,
2855 false,
2858 "PNP_GetDeviceListSize",
2859 sizeof(struct PNP_GetDeviceListSize),
2860 (ndr_push_flags_fn_t) ndr_push_PNP_GetDeviceListSize,
2861 (ndr_pull_flags_fn_t) ndr_pull_PNP_GetDeviceListSize,
2862 (ndr_print_function_t) ndr_print_PNP_GetDeviceListSize,
2863 false,
2866 "PNP_GetDepth",
2867 sizeof(struct PNP_GetDepth),
2868 (ndr_push_flags_fn_t) ndr_push_PNP_GetDepth,
2869 (ndr_pull_flags_fn_t) ndr_pull_PNP_GetDepth,
2870 (ndr_print_function_t) ndr_print_PNP_GetDepth,
2871 false,
2874 "PNP_GetDeviceRegProp",
2875 sizeof(struct PNP_GetDeviceRegProp),
2876 (ndr_push_flags_fn_t) ndr_push_PNP_GetDeviceRegProp,
2877 (ndr_pull_flags_fn_t) ndr_pull_PNP_GetDeviceRegProp,
2878 (ndr_print_function_t) ndr_print_PNP_GetDeviceRegProp,
2879 false,
2882 "PNP_SetDeviceRegProp",
2883 sizeof(struct PNP_SetDeviceRegProp),
2884 (ndr_push_flags_fn_t) ndr_push_PNP_SetDeviceRegProp,
2885 (ndr_pull_flags_fn_t) ndr_pull_PNP_SetDeviceRegProp,
2886 (ndr_print_function_t) ndr_print_PNP_SetDeviceRegProp,
2887 false,
2890 "PNP_GetClassInstance",
2891 sizeof(struct PNP_GetClassInstance),
2892 (ndr_push_flags_fn_t) ndr_push_PNP_GetClassInstance,
2893 (ndr_pull_flags_fn_t) ndr_pull_PNP_GetClassInstance,
2894 (ndr_print_function_t) ndr_print_PNP_GetClassInstance,
2895 false,
2898 "PNP_CreateKey",
2899 sizeof(struct PNP_CreateKey),
2900 (ndr_push_flags_fn_t) ndr_push_PNP_CreateKey,
2901 (ndr_pull_flags_fn_t) ndr_pull_PNP_CreateKey,
2902 (ndr_print_function_t) ndr_print_PNP_CreateKey,
2903 false,
2906 "PNP_DeleteRegistryKey",
2907 sizeof(struct PNP_DeleteRegistryKey),
2908 (ndr_push_flags_fn_t) ndr_push_PNP_DeleteRegistryKey,
2909 (ndr_pull_flags_fn_t) ndr_pull_PNP_DeleteRegistryKey,
2910 (ndr_print_function_t) ndr_print_PNP_DeleteRegistryKey,
2911 false,
2914 "PNP_GetClassCount",
2915 sizeof(struct PNP_GetClassCount),
2916 (ndr_push_flags_fn_t) ndr_push_PNP_GetClassCount,
2917 (ndr_pull_flags_fn_t) ndr_pull_PNP_GetClassCount,
2918 (ndr_print_function_t) ndr_print_PNP_GetClassCount,
2919 false,
2922 "PNP_GetClassName",
2923 sizeof(struct PNP_GetClassName),
2924 (ndr_push_flags_fn_t) ndr_push_PNP_GetClassName,
2925 (ndr_pull_flags_fn_t) ndr_pull_PNP_GetClassName,
2926 (ndr_print_function_t) ndr_print_PNP_GetClassName,
2927 false,
2930 "PNP_DeleteClassKey",
2931 sizeof(struct PNP_DeleteClassKey),
2932 (ndr_push_flags_fn_t) ndr_push_PNP_DeleteClassKey,
2933 (ndr_pull_flags_fn_t) ndr_pull_PNP_DeleteClassKey,
2934 (ndr_print_function_t) ndr_print_PNP_DeleteClassKey,
2935 false,
2938 "PNP_GetInterfaceDeviceAlias",
2939 sizeof(struct PNP_GetInterfaceDeviceAlias),
2940 (ndr_push_flags_fn_t) ndr_push_PNP_GetInterfaceDeviceAlias,
2941 (ndr_pull_flags_fn_t) ndr_pull_PNP_GetInterfaceDeviceAlias,
2942 (ndr_print_function_t) ndr_print_PNP_GetInterfaceDeviceAlias,
2943 false,
2946 "PNP_GetInterfaceDeviceList",
2947 sizeof(struct PNP_GetInterfaceDeviceList),
2948 (ndr_push_flags_fn_t) ndr_push_PNP_GetInterfaceDeviceList,
2949 (ndr_pull_flags_fn_t) ndr_pull_PNP_GetInterfaceDeviceList,
2950 (ndr_print_function_t) ndr_print_PNP_GetInterfaceDeviceList,
2951 false,
2954 "PNP_GetInterfaceDeviceListSize",
2955 sizeof(struct PNP_GetInterfaceDeviceListSize),
2956 (ndr_push_flags_fn_t) ndr_push_PNP_GetInterfaceDeviceListSize,
2957 (ndr_pull_flags_fn_t) ndr_pull_PNP_GetInterfaceDeviceListSize,
2958 (ndr_print_function_t) ndr_print_PNP_GetInterfaceDeviceListSize,
2959 false,
2962 "PNP_RegisterDeviceClassAssociation",
2963 sizeof(struct PNP_RegisterDeviceClassAssociation),
2964 (ndr_push_flags_fn_t) ndr_push_PNP_RegisterDeviceClassAssociation,
2965 (ndr_pull_flags_fn_t) ndr_pull_PNP_RegisterDeviceClassAssociation,
2966 (ndr_print_function_t) ndr_print_PNP_RegisterDeviceClassAssociation,
2967 false,
2970 "PNP_UnregisterDeviceClassAssociation",
2971 sizeof(struct PNP_UnregisterDeviceClassAssociation),
2972 (ndr_push_flags_fn_t) ndr_push_PNP_UnregisterDeviceClassAssociation,
2973 (ndr_pull_flags_fn_t) ndr_pull_PNP_UnregisterDeviceClassAssociation,
2974 (ndr_print_function_t) ndr_print_PNP_UnregisterDeviceClassAssociation,
2975 false,
2978 "PNP_GetClassRegProp",
2979 sizeof(struct PNP_GetClassRegProp),
2980 (ndr_push_flags_fn_t) ndr_push_PNP_GetClassRegProp,
2981 (ndr_pull_flags_fn_t) ndr_pull_PNP_GetClassRegProp,
2982 (ndr_print_function_t) ndr_print_PNP_GetClassRegProp,
2983 false,
2986 "PNP_SetClassRegProp",
2987 sizeof(struct PNP_SetClassRegProp),
2988 (ndr_push_flags_fn_t) ndr_push_PNP_SetClassRegProp,
2989 (ndr_pull_flags_fn_t) ndr_pull_PNP_SetClassRegProp,
2990 (ndr_print_function_t) ndr_print_PNP_SetClassRegProp,
2991 false,
2994 "PNP_CreateDevInst",
2995 sizeof(struct PNP_CreateDevInst),
2996 (ndr_push_flags_fn_t) ndr_push_PNP_CreateDevInst,
2997 (ndr_pull_flags_fn_t) ndr_pull_PNP_CreateDevInst,
2998 (ndr_print_function_t) ndr_print_PNP_CreateDevInst,
2999 false,
3002 "PNP_DeviceInstanceAction",
3003 sizeof(struct PNP_DeviceInstanceAction),
3004 (ndr_push_flags_fn_t) ndr_push_PNP_DeviceInstanceAction,
3005 (ndr_pull_flags_fn_t) ndr_pull_PNP_DeviceInstanceAction,
3006 (ndr_print_function_t) ndr_print_PNP_DeviceInstanceAction,
3007 false,
3010 "PNP_GetDeviceStatus",
3011 sizeof(struct PNP_GetDeviceStatus),
3012 (ndr_push_flags_fn_t) ndr_push_PNP_GetDeviceStatus,
3013 (ndr_pull_flags_fn_t) ndr_pull_PNP_GetDeviceStatus,
3014 (ndr_print_function_t) ndr_print_PNP_GetDeviceStatus,
3015 false,
3018 "PNP_SetDeviceProblem",
3019 sizeof(struct PNP_SetDeviceProblem),
3020 (ndr_push_flags_fn_t) ndr_push_PNP_SetDeviceProblem,
3021 (ndr_pull_flags_fn_t) ndr_pull_PNP_SetDeviceProblem,
3022 (ndr_print_function_t) ndr_print_PNP_SetDeviceProblem,
3023 false,
3026 "PNP_DisableDevInst",
3027 sizeof(struct PNP_DisableDevInst),
3028 (ndr_push_flags_fn_t) ndr_push_PNP_DisableDevInst,
3029 (ndr_pull_flags_fn_t) ndr_pull_PNP_DisableDevInst,
3030 (ndr_print_function_t) ndr_print_PNP_DisableDevInst,
3031 false,
3034 "PNP_UninstallDevInst",
3035 sizeof(struct PNP_UninstallDevInst),
3036 (ndr_push_flags_fn_t) ndr_push_PNP_UninstallDevInst,
3037 (ndr_pull_flags_fn_t) ndr_pull_PNP_UninstallDevInst,
3038 (ndr_print_function_t) ndr_print_PNP_UninstallDevInst,
3039 false,
3042 "PNP_AddID",
3043 sizeof(struct PNP_AddID),
3044 (ndr_push_flags_fn_t) ndr_push_PNP_AddID,
3045 (ndr_pull_flags_fn_t) ndr_pull_PNP_AddID,
3046 (ndr_print_function_t) ndr_print_PNP_AddID,
3047 false,
3050 "PNP_RegisterDriver",
3051 sizeof(struct PNP_RegisterDriver),
3052 (ndr_push_flags_fn_t) ndr_push_PNP_RegisterDriver,
3053 (ndr_pull_flags_fn_t) ndr_pull_PNP_RegisterDriver,
3054 (ndr_print_function_t) ndr_print_PNP_RegisterDriver,
3055 false,
3058 "PNP_QueryRemove",
3059 sizeof(struct PNP_QueryRemove),
3060 (ndr_push_flags_fn_t) ndr_push_PNP_QueryRemove,
3061 (ndr_pull_flags_fn_t) ndr_pull_PNP_QueryRemove,
3062 (ndr_print_function_t) ndr_print_PNP_QueryRemove,
3063 false,
3066 "PNP_RequestDeviceEject",
3067 sizeof(struct PNP_RequestDeviceEject),
3068 (ndr_push_flags_fn_t) ndr_push_PNP_RequestDeviceEject,
3069 (ndr_pull_flags_fn_t) ndr_pull_PNP_RequestDeviceEject,
3070 (ndr_print_function_t) ndr_print_PNP_RequestDeviceEject,
3071 false,
3074 "PNP_IsDockStationPresent",
3075 sizeof(struct PNP_IsDockStationPresent),
3076 (ndr_push_flags_fn_t) ndr_push_PNP_IsDockStationPresent,
3077 (ndr_pull_flags_fn_t) ndr_pull_PNP_IsDockStationPresent,
3078 (ndr_print_function_t) ndr_print_PNP_IsDockStationPresent,
3079 false,
3082 "PNP_RequestEjectPC",
3083 sizeof(struct PNP_RequestEjectPC),
3084 (ndr_push_flags_fn_t) ndr_push_PNP_RequestEjectPC,
3085 (ndr_pull_flags_fn_t) ndr_pull_PNP_RequestEjectPC,
3086 (ndr_print_function_t) ndr_print_PNP_RequestEjectPC,
3087 false,
3090 "PNP_HwProfFlags",
3091 sizeof(struct PNP_HwProfFlags),
3092 (ndr_push_flags_fn_t) ndr_push_PNP_HwProfFlags,
3093 (ndr_pull_flags_fn_t) ndr_pull_PNP_HwProfFlags,
3094 (ndr_print_function_t) ndr_print_PNP_HwProfFlags,
3095 false,
3098 "PNP_GetHwProfInfo",
3099 sizeof(struct PNP_GetHwProfInfo),
3100 (ndr_push_flags_fn_t) ndr_push_PNP_GetHwProfInfo,
3101 (ndr_pull_flags_fn_t) ndr_pull_PNP_GetHwProfInfo,
3102 (ndr_print_function_t) ndr_print_PNP_GetHwProfInfo,
3103 false,
3106 "PNP_AddEmptyLogConf",
3107 sizeof(struct PNP_AddEmptyLogConf),
3108 (ndr_push_flags_fn_t) ndr_push_PNP_AddEmptyLogConf,
3109 (ndr_pull_flags_fn_t) ndr_pull_PNP_AddEmptyLogConf,
3110 (ndr_print_function_t) ndr_print_PNP_AddEmptyLogConf,
3111 false,
3114 "PNP_FreeLogConf",
3115 sizeof(struct PNP_FreeLogConf),
3116 (ndr_push_flags_fn_t) ndr_push_PNP_FreeLogConf,
3117 (ndr_pull_flags_fn_t) ndr_pull_PNP_FreeLogConf,
3118 (ndr_print_function_t) ndr_print_PNP_FreeLogConf,
3119 false,
3122 "PNP_GetFirstLogConf",
3123 sizeof(struct PNP_GetFirstLogConf),
3124 (ndr_push_flags_fn_t) ndr_push_PNP_GetFirstLogConf,
3125 (ndr_pull_flags_fn_t) ndr_pull_PNP_GetFirstLogConf,
3126 (ndr_print_function_t) ndr_print_PNP_GetFirstLogConf,
3127 false,
3130 "PNP_GetNextLogConf",
3131 sizeof(struct PNP_GetNextLogConf),
3132 (ndr_push_flags_fn_t) ndr_push_PNP_GetNextLogConf,
3133 (ndr_pull_flags_fn_t) ndr_pull_PNP_GetNextLogConf,
3134 (ndr_print_function_t) ndr_print_PNP_GetNextLogConf,
3135 false,
3138 "PNP_GetLogConfPriority",
3139 sizeof(struct PNP_GetLogConfPriority),
3140 (ndr_push_flags_fn_t) ndr_push_PNP_GetLogConfPriority,
3141 (ndr_pull_flags_fn_t) ndr_pull_PNP_GetLogConfPriority,
3142 (ndr_print_function_t) ndr_print_PNP_GetLogConfPriority,
3143 false,
3146 "PNP_AddResDes",
3147 sizeof(struct PNP_AddResDes),
3148 (ndr_push_flags_fn_t) ndr_push_PNP_AddResDes,
3149 (ndr_pull_flags_fn_t) ndr_pull_PNP_AddResDes,
3150 (ndr_print_function_t) ndr_print_PNP_AddResDes,
3151 false,
3154 "PNP_FreeResDes",
3155 sizeof(struct PNP_FreeResDes),
3156 (ndr_push_flags_fn_t) ndr_push_PNP_FreeResDes,
3157 (ndr_pull_flags_fn_t) ndr_pull_PNP_FreeResDes,
3158 (ndr_print_function_t) ndr_print_PNP_FreeResDes,
3159 false,
3162 "PNP_GetNextResDes",
3163 sizeof(struct PNP_GetNextResDes),
3164 (ndr_push_flags_fn_t) ndr_push_PNP_GetNextResDes,
3165 (ndr_pull_flags_fn_t) ndr_pull_PNP_GetNextResDes,
3166 (ndr_print_function_t) ndr_print_PNP_GetNextResDes,
3167 false,
3170 "PNP_GetResDesData",
3171 sizeof(struct PNP_GetResDesData),
3172 (ndr_push_flags_fn_t) ndr_push_PNP_GetResDesData,
3173 (ndr_pull_flags_fn_t) ndr_pull_PNP_GetResDesData,
3174 (ndr_print_function_t) ndr_print_PNP_GetResDesData,
3175 false,
3178 "PNP_GetResDesDataSize",
3179 sizeof(struct PNP_GetResDesDataSize),
3180 (ndr_push_flags_fn_t) ndr_push_PNP_GetResDesDataSize,
3181 (ndr_pull_flags_fn_t) ndr_pull_PNP_GetResDesDataSize,
3182 (ndr_print_function_t) ndr_print_PNP_GetResDesDataSize,
3183 false,
3186 "PNP_ModifyResDes",
3187 sizeof(struct PNP_ModifyResDes),
3188 (ndr_push_flags_fn_t) ndr_push_PNP_ModifyResDes,
3189 (ndr_pull_flags_fn_t) ndr_pull_PNP_ModifyResDes,
3190 (ndr_print_function_t) ndr_print_PNP_ModifyResDes,
3191 false,
3194 "PNP_DetectResourceLimit",
3195 sizeof(struct PNP_DetectResourceLimit),
3196 (ndr_push_flags_fn_t) ndr_push_PNP_DetectResourceLimit,
3197 (ndr_pull_flags_fn_t) ndr_pull_PNP_DetectResourceLimit,
3198 (ndr_print_function_t) ndr_print_PNP_DetectResourceLimit,
3199 false,
3202 "PNP_QueryResConfList",
3203 sizeof(struct PNP_QueryResConfList),
3204 (ndr_push_flags_fn_t) ndr_push_PNP_QueryResConfList,
3205 (ndr_pull_flags_fn_t) ndr_pull_PNP_QueryResConfList,
3206 (ndr_print_function_t) ndr_print_PNP_QueryResConfList,
3207 false,
3210 "PNP_SetHwProf",
3211 sizeof(struct PNP_SetHwProf),
3212 (ndr_push_flags_fn_t) ndr_push_PNP_SetHwProf,
3213 (ndr_pull_flags_fn_t) ndr_pull_PNP_SetHwProf,
3214 (ndr_print_function_t) ndr_print_PNP_SetHwProf,
3215 false,
3218 "PNP_QueryArbitratorFreeData",
3219 sizeof(struct PNP_QueryArbitratorFreeData),
3220 (ndr_push_flags_fn_t) ndr_push_PNP_QueryArbitratorFreeData,
3221 (ndr_pull_flags_fn_t) ndr_pull_PNP_QueryArbitratorFreeData,
3222 (ndr_print_function_t) ndr_print_PNP_QueryArbitratorFreeData,
3223 false,
3226 "PNP_QueryArbitratorFreeSize",
3227 sizeof(struct PNP_QueryArbitratorFreeSize),
3228 (ndr_push_flags_fn_t) ndr_push_PNP_QueryArbitratorFreeSize,
3229 (ndr_pull_flags_fn_t) ndr_pull_PNP_QueryArbitratorFreeSize,
3230 (ndr_print_function_t) ndr_print_PNP_QueryArbitratorFreeSize,
3231 false,
3234 "PNP_RunDetection",
3235 sizeof(struct PNP_RunDetection),
3236 (ndr_push_flags_fn_t) ndr_push_PNP_RunDetection,
3237 (ndr_pull_flags_fn_t) ndr_pull_PNP_RunDetection,
3238 (ndr_print_function_t) ndr_print_PNP_RunDetection,
3239 false,
3242 "PNP_RegisterNotification",
3243 sizeof(struct PNP_RegisterNotification),
3244 (ndr_push_flags_fn_t) ndr_push_PNP_RegisterNotification,
3245 (ndr_pull_flags_fn_t) ndr_pull_PNP_RegisterNotification,
3246 (ndr_print_function_t) ndr_print_PNP_RegisterNotification,
3247 false,
3250 "PNP_UnregisterNotification",
3251 sizeof(struct PNP_UnregisterNotification),
3252 (ndr_push_flags_fn_t) ndr_push_PNP_UnregisterNotification,
3253 (ndr_pull_flags_fn_t) ndr_pull_PNP_UnregisterNotification,
3254 (ndr_print_function_t) ndr_print_PNP_UnregisterNotification,
3255 false,
3258 "PNP_GetCustomDevProp",
3259 sizeof(struct PNP_GetCustomDevProp),
3260 (ndr_push_flags_fn_t) ndr_push_PNP_GetCustomDevProp,
3261 (ndr_pull_flags_fn_t) ndr_pull_PNP_GetCustomDevProp,
3262 (ndr_print_function_t) ndr_print_PNP_GetCustomDevProp,
3263 false,
3266 "PNP_GetVersionInternal",
3267 sizeof(struct PNP_GetVersionInternal),
3268 (ndr_push_flags_fn_t) ndr_push_PNP_GetVersionInternal,
3269 (ndr_pull_flags_fn_t) ndr_pull_PNP_GetVersionInternal,
3270 (ndr_print_function_t) ndr_print_PNP_GetVersionInternal,
3271 false,
3274 "PNP_GetBlockedDriverInfo",
3275 sizeof(struct PNP_GetBlockedDriverInfo),
3276 (ndr_push_flags_fn_t) ndr_push_PNP_GetBlockedDriverInfo,
3277 (ndr_pull_flags_fn_t) ndr_pull_PNP_GetBlockedDriverInfo,
3278 (ndr_print_function_t) ndr_print_PNP_GetBlockedDriverInfo,
3279 false,
3282 "PNP_GetServerSideDeviceInstallFlags",
3283 sizeof(struct PNP_GetServerSideDeviceInstallFlags),
3284 (ndr_push_flags_fn_t) ndr_push_PNP_GetServerSideDeviceInstallFlags,
3285 (ndr_pull_flags_fn_t) ndr_pull_PNP_GetServerSideDeviceInstallFlags,
3286 (ndr_print_function_t) ndr_print_PNP_GetServerSideDeviceInstallFlags,
3287 false,
3289 { NULL, 0, NULL, NULL, NULL, false }
3292 static const char * const ntsvcs_endpoint_strings[] = {
3293 "ncacn_np:[\\pipe\\ntsvcs]",
3296 static const struct ndr_interface_string_array ntsvcs_endpoints = {
3297 .count = 1,
3298 .names = ntsvcs_endpoint_strings
3301 static const char * const ntsvcs_authservice_strings[] = {
3302 "host",
3305 static const struct ndr_interface_string_array ntsvcs_authservices = {
3306 .count = 1,
3307 .names = ntsvcs_authservice_strings
3311 const struct ndr_interface_table ndr_table_ntsvcs = {
3312 .name = "ntsvcs",
3313 .syntax_id = {
3314 {0x8d9f4e40,0xa03d,0x11ce,{0x8f,0x69},{0x08,0x00,0x3e,0x30,0x05,0x1b}},
3315 NDR_NTSVCS_VERSION
3317 .helpstring = NDR_NTSVCS_HELPSTRING,
3318 .num_calls = 65,
3319 .calls = ntsvcs_calls,
3320 .endpoints = &ntsvcs_endpoints,
3321 .authservices = &ntsvcs_authservices