Re-run make idl.
[Samba/gebeck_regimport.git] / source3 / librpc / gen_ndr / ndr_ntsvcs.c
blob2b299964e58d4380eb5c89327ae56535e579d5f7
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) {
1746 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.unknown1));
1747 if (r->in.devicepath == NULL) {
1748 return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
1750 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, ndr_charset_length(r->in.devicepath, CH_UTF16)));
1751 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, 0));
1752 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, ndr_charset_length(r->in.devicepath, CH_UTF16)));
1753 NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.devicepath, ndr_charset_length(r->in.devicepath, CH_UTF16), sizeof(uint16_t), CH_UTF16));
1754 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.unknown2));
1755 if (r->in.unknown3 == NULL) {
1756 return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
1758 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->in.unknown3));
1759 NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.unknown4));
1760 if (r->in.unknown4) {
1761 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, *r->in.unknown4));
1763 NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.unknown5));
1764 if (r->in.unknown5) {
1765 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, ndr_charset_length(r->in.unknown5, CH_UTF16)));
1766 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, 0));
1767 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, ndr_charset_length(r->in.unknown5, CH_UTF16)));
1768 NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.unknown5, ndr_charset_length(r->in.unknown5, CH_UTF16), sizeof(uint16_t), CH_UTF16));
1770 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.unknown6));
1771 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.unknown7));
1773 if (flags & NDR_OUT) {
1774 if (r->out.unknown3 == NULL) {
1775 return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
1777 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.unknown3));
1778 NDR_CHECK(ndr_push_unique_ptr(ndr, r->out.unknown4));
1779 if (r->out.unknown4) {
1780 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, *r->out.unknown4));
1782 NDR_CHECK(ndr_push_unique_ptr(ndr, r->out.unknown5a));
1783 if (r->out.unknown5a) {
1784 NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.unknown5a));
1785 if (*r->out.unknown5a) {
1786 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, ndr_charset_length(*r->out.unknown5a, CH_UTF16)));
1787 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, 0));
1788 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, ndr_charset_length(*r->out.unknown5a, CH_UTF16)));
1789 NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, *r->out.unknown5a, ndr_charset_length(*r->out.unknown5a, CH_UTF16), sizeof(uint16_t), CH_UTF16));
1792 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
1794 return NDR_ERR_SUCCESS;
1797 static enum ndr_err_code ndr_pull_PNP_HwProfFlags(struct ndr_pull *ndr, int flags, struct PNP_HwProfFlags *r)
1799 uint32_t _ptr_unknown4;
1800 uint32_t _ptr_unknown5;
1801 uint32_t _ptr_unknown5a;
1802 TALLOC_CTX *_mem_save_unknown3_0;
1803 TALLOC_CTX *_mem_save_unknown4_0;
1804 TALLOC_CTX *_mem_save_unknown5_0;
1805 TALLOC_CTX *_mem_save_unknown5a_0;
1806 TALLOC_CTX *_mem_save_unknown5a_1;
1807 if (flags & NDR_IN) {
1808 ZERO_STRUCT(r->out);
1810 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.unknown1));
1811 NDR_CHECK(ndr_pull_array_size(ndr, &r->in.devicepath));
1812 NDR_CHECK(ndr_pull_array_length(ndr, &r->in.devicepath));
1813 if (ndr_get_array_length(ndr, &r->in.devicepath) > ndr_get_array_size(ndr, &r->in.devicepath)) {
1814 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));
1816 NDR_CHECK(ndr_check_string_terminator(ndr, ndr_get_array_length(ndr, &r->in.devicepath), sizeof(uint16_t)));
1817 NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.devicepath, ndr_get_array_length(ndr, &r->in.devicepath), sizeof(uint16_t), CH_UTF16));
1818 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.unknown2));
1819 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
1820 NDR_PULL_ALLOC(ndr, r->in.unknown3);
1822 _mem_save_unknown3_0 = NDR_PULL_GET_MEM_CTX(ndr);
1823 NDR_PULL_SET_MEM_CTX(ndr, r->in.unknown3, LIBNDR_FLAG_REF_ALLOC);
1824 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->in.unknown3));
1825 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_unknown3_0, LIBNDR_FLAG_REF_ALLOC);
1826 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_unknown4));
1827 if (_ptr_unknown4) {
1828 NDR_PULL_ALLOC(ndr, r->in.unknown4);
1829 } else {
1830 r->in.unknown4 = NULL;
1832 if (r->in.unknown4) {
1833 _mem_save_unknown4_0 = NDR_PULL_GET_MEM_CTX(ndr);
1834 NDR_PULL_SET_MEM_CTX(ndr, r->in.unknown4, 0);
1835 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, r->in.unknown4));
1836 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_unknown4_0, 0);
1838 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_unknown5));
1839 if (_ptr_unknown5) {
1840 NDR_PULL_ALLOC(ndr, r->in.unknown5);
1841 } else {
1842 r->in.unknown5 = NULL;
1844 if (r->in.unknown5) {
1845 _mem_save_unknown5_0 = NDR_PULL_GET_MEM_CTX(ndr);
1846 NDR_PULL_SET_MEM_CTX(ndr, r->in.unknown5, 0);
1847 NDR_CHECK(ndr_pull_array_size(ndr, &r->in.unknown5));
1848 NDR_CHECK(ndr_pull_array_length(ndr, &r->in.unknown5));
1849 if (ndr_get_array_length(ndr, &r->in.unknown5) > ndr_get_array_size(ndr, &r->in.unknown5)) {
1850 return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", ndr_get_array_size(ndr, &r->in.unknown5), ndr_get_array_length(ndr, &r->in.unknown5));
1852 NDR_CHECK(ndr_check_string_terminator(ndr, ndr_get_array_length(ndr, &r->in.unknown5), sizeof(uint16_t)));
1853 NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.unknown5, ndr_get_array_length(ndr, &r->in.unknown5), sizeof(uint16_t), CH_UTF16));
1854 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_unknown5_0, 0);
1856 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.unknown6));
1857 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.unknown7));
1858 NDR_PULL_ALLOC(ndr, r->out.unknown3);
1859 *r->out.unknown3 = *r->in.unknown3;
1861 if (flags & NDR_OUT) {
1862 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
1863 NDR_PULL_ALLOC(ndr, r->out.unknown3);
1865 _mem_save_unknown3_0 = NDR_PULL_GET_MEM_CTX(ndr);
1866 NDR_PULL_SET_MEM_CTX(ndr, r->out.unknown3, LIBNDR_FLAG_REF_ALLOC);
1867 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.unknown3));
1868 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_unknown3_0, LIBNDR_FLAG_REF_ALLOC);
1869 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_unknown4));
1870 if (_ptr_unknown4) {
1871 NDR_PULL_ALLOC(ndr, r->out.unknown4);
1872 } else {
1873 r->out.unknown4 = NULL;
1875 if (r->out.unknown4) {
1876 _mem_save_unknown4_0 = NDR_PULL_GET_MEM_CTX(ndr);
1877 NDR_PULL_SET_MEM_CTX(ndr, r->out.unknown4, 0);
1878 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, r->out.unknown4));
1879 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_unknown4_0, 0);
1881 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_unknown5a));
1882 if (_ptr_unknown5a) {
1883 NDR_PULL_ALLOC(ndr, r->out.unknown5a);
1884 } else {
1885 r->out.unknown5a = NULL;
1887 if (r->out.unknown5a) {
1888 _mem_save_unknown5a_0 = NDR_PULL_GET_MEM_CTX(ndr);
1889 NDR_PULL_SET_MEM_CTX(ndr, r->out.unknown5a, 0);
1890 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_unknown5a));
1891 if (_ptr_unknown5a) {
1892 NDR_PULL_ALLOC(ndr, *r->out.unknown5a);
1893 } else {
1894 *r->out.unknown5a = NULL;
1896 if (*r->out.unknown5a) {
1897 _mem_save_unknown5a_1 = NDR_PULL_GET_MEM_CTX(ndr);
1898 NDR_PULL_SET_MEM_CTX(ndr, *r->out.unknown5a, 0);
1899 NDR_CHECK(ndr_pull_array_size(ndr, r->out.unknown5a));
1900 NDR_CHECK(ndr_pull_array_length(ndr, r->out.unknown5a));
1901 if (ndr_get_array_length(ndr, r->out.unknown5a) > ndr_get_array_size(ndr, r->out.unknown5a)) {
1902 return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", ndr_get_array_size(ndr, r->out.unknown5a), ndr_get_array_length(ndr, r->out.unknown5a));
1904 NDR_CHECK(ndr_check_string_terminator(ndr, ndr_get_array_length(ndr, r->out.unknown5a), sizeof(uint16_t)));
1905 NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, r->out.unknown5a, ndr_get_array_length(ndr, r->out.unknown5a), sizeof(uint16_t), CH_UTF16));
1906 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_unknown5a_1, 0);
1908 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_unknown5a_0, 0);
1910 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
1912 return NDR_ERR_SUCCESS;
1915 _PUBLIC_ void ndr_print_PNP_HwProfFlags(struct ndr_print *ndr, const char *name, int flags, const struct PNP_HwProfFlags *r)
1917 ndr_print_struct(ndr, name, "PNP_HwProfFlags");
1918 ndr->depth++;
1919 if (flags & NDR_SET_VALUES) {
1920 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
1922 if (flags & NDR_IN) {
1923 ndr_print_struct(ndr, "in", "PNP_HwProfFlags");
1924 ndr->depth++;
1925 ndr_print_uint32(ndr, "unknown1", r->in.unknown1);
1926 ndr_print_ptr(ndr, "devicepath", r->in.devicepath);
1927 ndr->depth++;
1928 ndr_print_string(ndr, "devicepath", r->in.devicepath);
1929 ndr->depth--;
1930 ndr_print_uint32(ndr, "unknown2", r->in.unknown2);
1931 ndr_print_ptr(ndr, "unknown3", r->in.unknown3);
1932 ndr->depth++;
1933 ndr_print_uint32(ndr, "unknown3", *r->in.unknown3);
1934 ndr->depth--;
1935 ndr_print_ptr(ndr, "unknown4", r->in.unknown4);
1936 ndr->depth++;
1937 if (r->in.unknown4) {
1938 ndr_print_uint16(ndr, "unknown4", *r->in.unknown4);
1940 ndr->depth--;
1941 ndr_print_ptr(ndr, "unknown5", r->in.unknown5);
1942 ndr->depth++;
1943 if (r->in.unknown5) {
1944 ndr_print_string(ndr, "unknown5", r->in.unknown5);
1946 ndr->depth--;
1947 ndr_print_uint32(ndr, "unknown6", r->in.unknown6);
1948 ndr_print_uint32(ndr, "unknown7", r->in.unknown7);
1949 ndr->depth--;
1951 if (flags & NDR_OUT) {
1952 ndr_print_struct(ndr, "out", "PNP_HwProfFlags");
1953 ndr->depth++;
1954 ndr_print_ptr(ndr, "unknown3", r->out.unknown3);
1955 ndr->depth++;
1956 ndr_print_uint32(ndr, "unknown3", *r->out.unknown3);
1957 ndr->depth--;
1958 ndr_print_ptr(ndr, "unknown4", r->out.unknown4);
1959 ndr->depth++;
1960 if (r->out.unknown4) {
1961 ndr_print_uint16(ndr, "unknown4", *r->out.unknown4);
1963 ndr->depth--;
1964 ndr_print_ptr(ndr, "unknown5a", r->out.unknown5a);
1965 ndr->depth++;
1966 if (r->out.unknown5a) {
1967 ndr_print_ptr(ndr, "unknown5a", *r->out.unknown5a);
1968 ndr->depth++;
1969 if (*r->out.unknown5a) {
1970 ndr_print_string(ndr, "unknown5a", *r->out.unknown5a);
1972 ndr->depth--;
1974 ndr->depth--;
1975 ndr_print_WERROR(ndr, "result", r->out.result);
1976 ndr->depth--;
1978 ndr->depth--;
1981 static enum ndr_err_code ndr_push_PNP_GetHwProfInfo(struct ndr_push *ndr, int flags, const struct PNP_GetHwProfInfo *r)
1983 if (flags & NDR_IN) {
1985 if (flags & NDR_OUT) {
1986 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
1988 return NDR_ERR_SUCCESS;
1991 static enum ndr_err_code ndr_pull_PNP_GetHwProfInfo(struct ndr_pull *ndr, int flags, struct PNP_GetHwProfInfo *r)
1993 if (flags & NDR_IN) {
1995 if (flags & NDR_OUT) {
1996 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
1998 return NDR_ERR_SUCCESS;
2001 _PUBLIC_ void ndr_print_PNP_GetHwProfInfo(struct ndr_print *ndr, const char *name, int flags, const struct PNP_GetHwProfInfo *r)
2003 ndr_print_struct(ndr, name, "PNP_GetHwProfInfo");
2004 ndr->depth++;
2005 if (flags & NDR_SET_VALUES) {
2006 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2008 if (flags & NDR_IN) {
2009 ndr_print_struct(ndr, "in", "PNP_GetHwProfInfo");
2010 ndr->depth++;
2011 ndr->depth--;
2013 if (flags & NDR_OUT) {
2014 ndr_print_struct(ndr, "out", "PNP_GetHwProfInfo");
2015 ndr->depth++;
2016 ndr_print_WERROR(ndr, "result", r->out.result);
2017 ndr->depth--;
2019 ndr->depth--;
2022 static enum ndr_err_code ndr_push_PNP_AddEmptyLogConf(struct ndr_push *ndr, int flags, const struct PNP_AddEmptyLogConf *r)
2024 if (flags & NDR_IN) {
2026 if (flags & NDR_OUT) {
2027 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
2029 return NDR_ERR_SUCCESS;
2032 static enum ndr_err_code ndr_pull_PNP_AddEmptyLogConf(struct ndr_pull *ndr, int flags, struct PNP_AddEmptyLogConf *r)
2034 if (flags & NDR_IN) {
2036 if (flags & NDR_OUT) {
2037 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
2039 return NDR_ERR_SUCCESS;
2042 _PUBLIC_ void ndr_print_PNP_AddEmptyLogConf(struct ndr_print *ndr, const char *name, int flags, const struct PNP_AddEmptyLogConf *r)
2044 ndr_print_struct(ndr, name, "PNP_AddEmptyLogConf");
2045 ndr->depth++;
2046 if (flags & NDR_SET_VALUES) {
2047 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2049 if (flags & NDR_IN) {
2050 ndr_print_struct(ndr, "in", "PNP_AddEmptyLogConf");
2051 ndr->depth++;
2052 ndr->depth--;
2054 if (flags & NDR_OUT) {
2055 ndr_print_struct(ndr, "out", "PNP_AddEmptyLogConf");
2056 ndr->depth++;
2057 ndr_print_WERROR(ndr, "result", r->out.result);
2058 ndr->depth--;
2060 ndr->depth--;
2063 static enum ndr_err_code ndr_push_PNP_FreeLogConf(struct ndr_push *ndr, int flags, const struct PNP_FreeLogConf *r)
2065 if (flags & NDR_IN) {
2067 if (flags & NDR_OUT) {
2068 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
2070 return NDR_ERR_SUCCESS;
2073 static enum ndr_err_code ndr_pull_PNP_FreeLogConf(struct ndr_pull *ndr, int flags, struct PNP_FreeLogConf *r)
2075 if (flags & NDR_IN) {
2077 if (flags & NDR_OUT) {
2078 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
2080 return NDR_ERR_SUCCESS;
2083 _PUBLIC_ void ndr_print_PNP_FreeLogConf(struct ndr_print *ndr, const char *name, int flags, const struct PNP_FreeLogConf *r)
2085 ndr_print_struct(ndr, name, "PNP_FreeLogConf");
2086 ndr->depth++;
2087 if (flags & NDR_SET_VALUES) {
2088 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2090 if (flags & NDR_IN) {
2091 ndr_print_struct(ndr, "in", "PNP_FreeLogConf");
2092 ndr->depth++;
2093 ndr->depth--;
2095 if (flags & NDR_OUT) {
2096 ndr_print_struct(ndr, "out", "PNP_FreeLogConf");
2097 ndr->depth++;
2098 ndr_print_WERROR(ndr, "result", r->out.result);
2099 ndr->depth--;
2101 ndr->depth--;
2104 static enum ndr_err_code ndr_push_PNP_GetFirstLogConf(struct ndr_push *ndr, int flags, const struct PNP_GetFirstLogConf *r)
2106 if (flags & NDR_IN) {
2108 if (flags & NDR_OUT) {
2109 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
2111 return NDR_ERR_SUCCESS;
2114 static enum ndr_err_code ndr_pull_PNP_GetFirstLogConf(struct ndr_pull *ndr, int flags, struct PNP_GetFirstLogConf *r)
2116 if (flags & NDR_IN) {
2118 if (flags & NDR_OUT) {
2119 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
2121 return NDR_ERR_SUCCESS;
2124 _PUBLIC_ void ndr_print_PNP_GetFirstLogConf(struct ndr_print *ndr, const char *name, int flags, const struct PNP_GetFirstLogConf *r)
2126 ndr_print_struct(ndr, name, "PNP_GetFirstLogConf");
2127 ndr->depth++;
2128 if (flags & NDR_SET_VALUES) {
2129 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2131 if (flags & NDR_IN) {
2132 ndr_print_struct(ndr, "in", "PNP_GetFirstLogConf");
2133 ndr->depth++;
2134 ndr->depth--;
2136 if (flags & NDR_OUT) {
2137 ndr_print_struct(ndr, "out", "PNP_GetFirstLogConf");
2138 ndr->depth++;
2139 ndr_print_WERROR(ndr, "result", r->out.result);
2140 ndr->depth--;
2142 ndr->depth--;
2145 static enum ndr_err_code ndr_push_PNP_GetNextLogConf(struct ndr_push *ndr, int flags, const struct PNP_GetNextLogConf *r)
2147 if (flags & NDR_IN) {
2149 if (flags & NDR_OUT) {
2150 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
2152 return NDR_ERR_SUCCESS;
2155 static enum ndr_err_code ndr_pull_PNP_GetNextLogConf(struct ndr_pull *ndr, int flags, struct PNP_GetNextLogConf *r)
2157 if (flags & NDR_IN) {
2159 if (flags & NDR_OUT) {
2160 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
2162 return NDR_ERR_SUCCESS;
2165 _PUBLIC_ void ndr_print_PNP_GetNextLogConf(struct ndr_print *ndr, const char *name, int flags, const struct PNP_GetNextLogConf *r)
2167 ndr_print_struct(ndr, name, "PNP_GetNextLogConf");
2168 ndr->depth++;
2169 if (flags & NDR_SET_VALUES) {
2170 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2172 if (flags & NDR_IN) {
2173 ndr_print_struct(ndr, "in", "PNP_GetNextLogConf");
2174 ndr->depth++;
2175 ndr->depth--;
2177 if (flags & NDR_OUT) {
2178 ndr_print_struct(ndr, "out", "PNP_GetNextLogConf");
2179 ndr->depth++;
2180 ndr_print_WERROR(ndr, "result", r->out.result);
2181 ndr->depth--;
2183 ndr->depth--;
2186 static enum ndr_err_code ndr_push_PNP_GetLogConfPriority(struct ndr_push *ndr, int flags, const struct PNP_GetLogConfPriority *r)
2188 if (flags & NDR_IN) {
2190 if (flags & NDR_OUT) {
2191 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
2193 return NDR_ERR_SUCCESS;
2196 static enum ndr_err_code ndr_pull_PNP_GetLogConfPriority(struct ndr_pull *ndr, int flags, struct PNP_GetLogConfPriority *r)
2198 if (flags & NDR_IN) {
2200 if (flags & NDR_OUT) {
2201 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
2203 return NDR_ERR_SUCCESS;
2206 _PUBLIC_ void ndr_print_PNP_GetLogConfPriority(struct ndr_print *ndr, const char *name, int flags, const struct PNP_GetLogConfPriority *r)
2208 ndr_print_struct(ndr, name, "PNP_GetLogConfPriority");
2209 ndr->depth++;
2210 if (flags & NDR_SET_VALUES) {
2211 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2213 if (flags & NDR_IN) {
2214 ndr_print_struct(ndr, "in", "PNP_GetLogConfPriority");
2215 ndr->depth++;
2216 ndr->depth--;
2218 if (flags & NDR_OUT) {
2219 ndr_print_struct(ndr, "out", "PNP_GetLogConfPriority");
2220 ndr->depth++;
2221 ndr_print_WERROR(ndr, "result", r->out.result);
2222 ndr->depth--;
2224 ndr->depth--;
2227 static enum ndr_err_code ndr_push_PNP_AddResDes(struct ndr_push *ndr, int flags, const struct PNP_AddResDes *r)
2229 if (flags & NDR_IN) {
2231 if (flags & NDR_OUT) {
2232 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
2234 return NDR_ERR_SUCCESS;
2237 static enum ndr_err_code ndr_pull_PNP_AddResDes(struct ndr_pull *ndr, int flags, struct PNP_AddResDes *r)
2239 if (flags & NDR_IN) {
2241 if (flags & NDR_OUT) {
2242 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
2244 return NDR_ERR_SUCCESS;
2247 _PUBLIC_ void ndr_print_PNP_AddResDes(struct ndr_print *ndr, const char *name, int flags, const struct PNP_AddResDes *r)
2249 ndr_print_struct(ndr, name, "PNP_AddResDes");
2250 ndr->depth++;
2251 if (flags & NDR_SET_VALUES) {
2252 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2254 if (flags & NDR_IN) {
2255 ndr_print_struct(ndr, "in", "PNP_AddResDes");
2256 ndr->depth++;
2257 ndr->depth--;
2259 if (flags & NDR_OUT) {
2260 ndr_print_struct(ndr, "out", "PNP_AddResDes");
2261 ndr->depth++;
2262 ndr_print_WERROR(ndr, "result", r->out.result);
2263 ndr->depth--;
2265 ndr->depth--;
2268 static enum ndr_err_code ndr_push_PNP_FreeResDes(struct ndr_push *ndr, int flags, const struct PNP_FreeResDes *r)
2270 if (flags & NDR_IN) {
2272 if (flags & NDR_OUT) {
2273 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
2275 return NDR_ERR_SUCCESS;
2278 static enum ndr_err_code ndr_pull_PNP_FreeResDes(struct ndr_pull *ndr, int flags, struct PNP_FreeResDes *r)
2280 if (flags & NDR_IN) {
2282 if (flags & NDR_OUT) {
2283 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
2285 return NDR_ERR_SUCCESS;
2288 _PUBLIC_ void ndr_print_PNP_FreeResDes(struct ndr_print *ndr, const char *name, int flags, const struct PNP_FreeResDes *r)
2290 ndr_print_struct(ndr, name, "PNP_FreeResDes");
2291 ndr->depth++;
2292 if (flags & NDR_SET_VALUES) {
2293 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2295 if (flags & NDR_IN) {
2296 ndr_print_struct(ndr, "in", "PNP_FreeResDes");
2297 ndr->depth++;
2298 ndr->depth--;
2300 if (flags & NDR_OUT) {
2301 ndr_print_struct(ndr, "out", "PNP_FreeResDes");
2302 ndr->depth++;
2303 ndr_print_WERROR(ndr, "result", r->out.result);
2304 ndr->depth--;
2306 ndr->depth--;
2309 static enum ndr_err_code ndr_push_PNP_GetNextResDes(struct ndr_push *ndr, int flags, const struct PNP_GetNextResDes *r)
2311 if (flags & NDR_IN) {
2313 if (flags & NDR_OUT) {
2314 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
2316 return NDR_ERR_SUCCESS;
2319 static enum ndr_err_code ndr_pull_PNP_GetNextResDes(struct ndr_pull *ndr, int flags, struct PNP_GetNextResDes *r)
2321 if (flags & NDR_IN) {
2323 if (flags & NDR_OUT) {
2324 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
2326 return NDR_ERR_SUCCESS;
2329 _PUBLIC_ void ndr_print_PNP_GetNextResDes(struct ndr_print *ndr, const char *name, int flags, const struct PNP_GetNextResDes *r)
2331 ndr_print_struct(ndr, name, "PNP_GetNextResDes");
2332 ndr->depth++;
2333 if (flags & NDR_SET_VALUES) {
2334 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2336 if (flags & NDR_IN) {
2337 ndr_print_struct(ndr, "in", "PNP_GetNextResDes");
2338 ndr->depth++;
2339 ndr->depth--;
2341 if (flags & NDR_OUT) {
2342 ndr_print_struct(ndr, "out", "PNP_GetNextResDes");
2343 ndr->depth++;
2344 ndr_print_WERROR(ndr, "result", r->out.result);
2345 ndr->depth--;
2347 ndr->depth--;
2350 static enum ndr_err_code ndr_push_PNP_GetResDesData(struct ndr_push *ndr, int flags, const struct PNP_GetResDesData *r)
2352 if (flags & NDR_IN) {
2354 if (flags & NDR_OUT) {
2355 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
2357 return NDR_ERR_SUCCESS;
2360 static enum ndr_err_code ndr_pull_PNP_GetResDesData(struct ndr_pull *ndr, int flags, struct PNP_GetResDesData *r)
2362 if (flags & NDR_IN) {
2364 if (flags & NDR_OUT) {
2365 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
2367 return NDR_ERR_SUCCESS;
2370 _PUBLIC_ void ndr_print_PNP_GetResDesData(struct ndr_print *ndr, const char *name, int flags, const struct PNP_GetResDesData *r)
2372 ndr_print_struct(ndr, name, "PNP_GetResDesData");
2373 ndr->depth++;
2374 if (flags & NDR_SET_VALUES) {
2375 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2377 if (flags & NDR_IN) {
2378 ndr_print_struct(ndr, "in", "PNP_GetResDesData");
2379 ndr->depth++;
2380 ndr->depth--;
2382 if (flags & NDR_OUT) {
2383 ndr_print_struct(ndr, "out", "PNP_GetResDesData");
2384 ndr->depth++;
2385 ndr_print_WERROR(ndr, "result", r->out.result);
2386 ndr->depth--;
2388 ndr->depth--;
2391 static enum ndr_err_code ndr_push_PNP_GetResDesDataSize(struct ndr_push *ndr, int flags, const struct PNP_GetResDesDataSize *r)
2393 if (flags & NDR_IN) {
2395 if (flags & NDR_OUT) {
2396 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
2398 return NDR_ERR_SUCCESS;
2401 static enum ndr_err_code ndr_pull_PNP_GetResDesDataSize(struct ndr_pull *ndr, int flags, struct PNP_GetResDesDataSize *r)
2403 if (flags & NDR_IN) {
2405 if (flags & NDR_OUT) {
2406 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
2408 return NDR_ERR_SUCCESS;
2411 _PUBLIC_ void ndr_print_PNP_GetResDesDataSize(struct ndr_print *ndr, const char *name, int flags, const struct PNP_GetResDesDataSize *r)
2413 ndr_print_struct(ndr, name, "PNP_GetResDesDataSize");
2414 ndr->depth++;
2415 if (flags & NDR_SET_VALUES) {
2416 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2418 if (flags & NDR_IN) {
2419 ndr_print_struct(ndr, "in", "PNP_GetResDesDataSize");
2420 ndr->depth++;
2421 ndr->depth--;
2423 if (flags & NDR_OUT) {
2424 ndr_print_struct(ndr, "out", "PNP_GetResDesDataSize");
2425 ndr->depth++;
2426 ndr_print_WERROR(ndr, "result", r->out.result);
2427 ndr->depth--;
2429 ndr->depth--;
2432 static enum ndr_err_code ndr_push_PNP_ModifyResDes(struct ndr_push *ndr, int flags, const struct PNP_ModifyResDes *r)
2434 if (flags & NDR_IN) {
2436 if (flags & NDR_OUT) {
2437 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
2439 return NDR_ERR_SUCCESS;
2442 static enum ndr_err_code ndr_pull_PNP_ModifyResDes(struct ndr_pull *ndr, int flags, struct PNP_ModifyResDes *r)
2444 if (flags & NDR_IN) {
2446 if (flags & NDR_OUT) {
2447 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
2449 return NDR_ERR_SUCCESS;
2452 _PUBLIC_ void ndr_print_PNP_ModifyResDes(struct ndr_print *ndr, const char *name, int flags, const struct PNP_ModifyResDes *r)
2454 ndr_print_struct(ndr, name, "PNP_ModifyResDes");
2455 ndr->depth++;
2456 if (flags & NDR_SET_VALUES) {
2457 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2459 if (flags & NDR_IN) {
2460 ndr_print_struct(ndr, "in", "PNP_ModifyResDes");
2461 ndr->depth++;
2462 ndr->depth--;
2464 if (flags & NDR_OUT) {
2465 ndr_print_struct(ndr, "out", "PNP_ModifyResDes");
2466 ndr->depth++;
2467 ndr_print_WERROR(ndr, "result", r->out.result);
2468 ndr->depth--;
2470 ndr->depth--;
2473 static enum ndr_err_code ndr_push_PNP_DetectResourceLimit(struct ndr_push *ndr, int flags, const struct PNP_DetectResourceLimit *r)
2475 if (flags & NDR_IN) {
2477 if (flags & NDR_OUT) {
2478 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
2480 return NDR_ERR_SUCCESS;
2483 static enum ndr_err_code ndr_pull_PNP_DetectResourceLimit(struct ndr_pull *ndr, int flags, struct PNP_DetectResourceLimit *r)
2485 if (flags & NDR_IN) {
2487 if (flags & NDR_OUT) {
2488 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
2490 return NDR_ERR_SUCCESS;
2493 _PUBLIC_ void ndr_print_PNP_DetectResourceLimit(struct ndr_print *ndr, const char *name, int flags, const struct PNP_DetectResourceLimit *r)
2495 ndr_print_struct(ndr, name, "PNP_DetectResourceLimit");
2496 ndr->depth++;
2497 if (flags & NDR_SET_VALUES) {
2498 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2500 if (flags & NDR_IN) {
2501 ndr_print_struct(ndr, "in", "PNP_DetectResourceLimit");
2502 ndr->depth++;
2503 ndr->depth--;
2505 if (flags & NDR_OUT) {
2506 ndr_print_struct(ndr, "out", "PNP_DetectResourceLimit");
2507 ndr->depth++;
2508 ndr_print_WERROR(ndr, "result", r->out.result);
2509 ndr->depth--;
2511 ndr->depth--;
2514 static enum ndr_err_code ndr_push_PNP_QueryResConfList(struct ndr_push *ndr, int flags, const struct PNP_QueryResConfList *r)
2516 if (flags & NDR_IN) {
2518 if (flags & NDR_OUT) {
2519 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
2521 return NDR_ERR_SUCCESS;
2524 static enum ndr_err_code ndr_pull_PNP_QueryResConfList(struct ndr_pull *ndr, int flags, struct PNP_QueryResConfList *r)
2526 if (flags & NDR_IN) {
2528 if (flags & NDR_OUT) {
2529 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
2531 return NDR_ERR_SUCCESS;
2534 _PUBLIC_ void ndr_print_PNP_QueryResConfList(struct ndr_print *ndr, const char *name, int flags, const struct PNP_QueryResConfList *r)
2536 ndr_print_struct(ndr, name, "PNP_QueryResConfList");
2537 ndr->depth++;
2538 if (flags & NDR_SET_VALUES) {
2539 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2541 if (flags & NDR_IN) {
2542 ndr_print_struct(ndr, "in", "PNP_QueryResConfList");
2543 ndr->depth++;
2544 ndr->depth--;
2546 if (flags & NDR_OUT) {
2547 ndr_print_struct(ndr, "out", "PNP_QueryResConfList");
2548 ndr->depth++;
2549 ndr_print_WERROR(ndr, "result", r->out.result);
2550 ndr->depth--;
2552 ndr->depth--;
2555 static enum ndr_err_code ndr_push_PNP_SetHwProf(struct ndr_push *ndr, int flags, const struct PNP_SetHwProf *r)
2557 if (flags & NDR_IN) {
2559 if (flags & NDR_OUT) {
2560 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
2562 return NDR_ERR_SUCCESS;
2565 static enum ndr_err_code ndr_pull_PNP_SetHwProf(struct ndr_pull *ndr, int flags, struct PNP_SetHwProf *r)
2567 if (flags & NDR_IN) {
2569 if (flags & NDR_OUT) {
2570 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
2572 return NDR_ERR_SUCCESS;
2575 _PUBLIC_ void ndr_print_PNP_SetHwProf(struct ndr_print *ndr, const char *name, int flags, const struct PNP_SetHwProf *r)
2577 ndr_print_struct(ndr, name, "PNP_SetHwProf");
2578 ndr->depth++;
2579 if (flags & NDR_SET_VALUES) {
2580 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2582 if (flags & NDR_IN) {
2583 ndr_print_struct(ndr, "in", "PNP_SetHwProf");
2584 ndr->depth++;
2585 ndr->depth--;
2587 if (flags & NDR_OUT) {
2588 ndr_print_struct(ndr, "out", "PNP_SetHwProf");
2589 ndr->depth++;
2590 ndr_print_WERROR(ndr, "result", r->out.result);
2591 ndr->depth--;
2593 ndr->depth--;
2596 static enum ndr_err_code ndr_push_PNP_QueryArbitratorFreeData(struct ndr_push *ndr, int flags, const struct PNP_QueryArbitratorFreeData *r)
2598 if (flags & NDR_IN) {
2600 if (flags & NDR_OUT) {
2601 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
2603 return NDR_ERR_SUCCESS;
2606 static enum ndr_err_code ndr_pull_PNP_QueryArbitratorFreeData(struct ndr_pull *ndr, int flags, struct PNP_QueryArbitratorFreeData *r)
2608 if (flags & NDR_IN) {
2610 if (flags & NDR_OUT) {
2611 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
2613 return NDR_ERR_SUCCESS;
2616 _PUBLIC_ void ndr_print_PNP_QueryArbitratorFreeData(struct ndr_print *ndr, const char *name, int flags, const struct PNP_QueryArbitratorFreeData *r)
2618 ndr_print_struct(ndr, name, "PNP_QueryArbitratorFreeData");
2619 ndr->depth++;
2620 if (flags & NDR_SET_VALUES) {
2621 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2623 if (flags & NDR_IN) {
2624 ndr_print_struct(ndr, "in", "PNP_QueryArbitratorFreeData");
2625 ndr->depth++;
2626 ndr->depth--;
2628 if (flags & NDR_OUT) {
2629 ndr_print_struct(ndr, "out", "PNP_QueryArbitratorFreeData");
2630 ndr->depth++;
2631 ndr_print_WERROR(ndr, "result", r->out.result);
2632 ndr->depth--;
2634 ndr->depth--;
2637 static enum ndr_err_code ndr_push_PNP_QueryArbitratorFreeSize(struct ndr_push *ndr, int flags, const struct PNP_QueryArbitratorFreeSize *r)
2639 if (flags & NDR_IN) {
2641 if (flags & NDR_OUT) {
2642 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
2644 return NDR_ERR_SUCCESS;
2647 static enum ndr_err_code ndr_pull_PNP_QueryArbitratorFreeSize(struct ndr_pull *ndr, int flags, struct PNP_QueryArbitratorFreeSize *r)
2649 if (flags & NDR_IN) {
2651 if (flags & NDR_OUT) {
2652 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
2654 return NDR_ERR_SUCCESS;
2657 _PUBLIC_ void ndr_print_PNP_QueryArbitratorFreeSize(struct ndr_print *ndr, const char *name, int flags, const struct PNP_QueryArbitratorFreeSize *r)
2659 ndr_print_struct(ndr, name, "PNP_QueryArbitratorFreeSize");
2660 ndr->depth++;
2661 if (flags & NDR_SET_VALUES) {
2662 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2664 if (flags & NDR_IN) {
2665 ndr_print_struct(ndr, "in", "PNP_QueryArbitratorFreeSize");
2666 ndr->depth++;
2667 ndr->depth--;
2669 if (flags & NDR_OUT) {
2670 ndr_print_struct(ndr, "out", "PNP_QueryArbitratorFreeSize");
2671 ndr->depth++;
2672 ndr_print_WERROR(ndr, "result", r->out.result);
2673 ndr->depth--;
2675 ndr->depth--;
2678 static enum ndr_err_code ndr_push_PNP_RunDetection(struct ndr_push *ndr, int flags, const struct PNP_RunDetection *r)
2680 if (flags & NDR_IN) {
2682 if (flags & NDR_OUT) {
2683 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
2685 return NDR_ERR_SUCCESS;
2688 static enum ndr_err_code ndr_pull_PNP_RunDetection(struct ndr_pull *ndr, int flags, struct PNP_RunDetection *r)
2690 if (flags & NDR_IN) {
2692 if (flags & NDR_OUT) {
2693 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
2695 return NDR_ERR_SUCCESS;
2698 _PUBLIC_ void ndr_print_PNP_RunDetection(struct ndr_print *ndr, const char *name, int flags, const struct PNP_RunDetection *r)
2700 ndr_print_struct(ndr, name, "PNP_RunDetection");
2701 ndr->depth++;
2702 if (flags & NDR_SET_VALUES) {
2703 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2705 if (flags & NDR_IN) {
2706 ndr_print_struct(ndr, "in", "PNP_RunDetection");
2707 ndr->depth++;
2708 ndr->depth--;
2710 if (flags & NDR_OUT) {
2711 ndr_print_struct(ndr, "out", "PNP_RunDetection");
2712 ndr->depth++;
2713 ndr_print_WERROR(ndr, "result", r->out.result);
2714 ndr->depth--;
2716 ndr->depth--;
2719 static enum ndr_err_code ndr_push_PNP_RegisterNotification(struct ndr_push *ndr, int flags, const struct PNP_RegisterNotification *r)
2721 if (flags & NDR_IN) {
2723 if (flags & NDR_OUT) {
2724 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
2726 return NDR_ERR_SUCCESS;
2729 static enum ndr_err_code ndr_pull_PNP_RegisterNotification(struct ndr_pull *ndr, int flags, struct PNP_RegisterNotification *r)
2731 if (flags & NDR_IN) {
2733 if (flags & NDR_OUT) {
2734 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
2736 return NDR_ERR_SUCCESS;
2739 _PUBLIC_ void ndr_print_PNP_RegisterNotification(struct ndr_print *ndr, const char *name, int flags, const struct PNP_RegisterNotification *r)
2741 ndr_print_struct(ndr, name, "PNP_RegisterNotification");
2742 ndr->depth++;
2743 if (flags & NDR_SET_VALUES) {
2744 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2746 if (flags & NDR_IN) {
2747 ndr_print_struct(ndr, "in", "PNP_RegisterNotification");
2748 ndr->depth++;
2749 ndr->depth--;
2751 if (flags & NDR_OUT) {
2752 ndr_print_struct(ndr, "out", "PNP_RegisterNotification");
2753 ndr->depth++;
2754 ndr_print_WERROR(ndr, "result", r->out.result);
2755 ndr->depth--;
2757 ndr->depth--;
2760 static enum ndr_err_code ndr_push_PNP_UnregisterNotification(struct ndr_push *ndr, int flags, const struct PNP_UnregisterNotification *r)
2762 if (flags & NDR_IN) {
2764 if (flags & NDR_OUT) {
2765 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
2767 return NDR_ERR_SUCCESS;
2770 static enum ndr_err_code ndr_pull_PNP_UnregisterNotification(struct ndr_pull *ndr, int flags, struct PNP_UnregisterNotification *r)
2772 if (flags & NDR_IN) {
2774 if (flags & NDR_OUT) {
2775 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
2777 return NDR_ERR_SUCCESS;
2780 _PUBLIC_ void ndr_print_PNP_UnregisterNotification(struct ndr_print *ndr, const char *name, int flags, const struct PNP_UnregisterNotification *r)
2782 ndr_print_struct(ndr, name, "PNP_UnregisterNotification");
2783 ndr->depth++;
2784 if (flags & NDR_SET_VALUES) {
2785 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2787 if (flags & NDR_IN) {
2788 ndr_print_struct(ndr, "in", "PNP_UnregisterNotification");
2789 ndr->depth++;
2790 ndr->depth--;
2792 if (flags & NDR_OUT) {
2793 ndr_print_struct(ndr, "out", "PNP_UnregisterNotification");
2794 ndr->depth++;
2795 ndr_print_WERROR(ndr, "result", r->out.result);
2796 ndr->depth--;
2798 ndr->depth--;
2801 static enum ndr_err_code ndr_push_PNP_GetCustomDevProp(struct ndr_push *ndr, int flags, const struct PNP_GetCustomDevProp *r)
2803 if (flags & NDR_IN) {
2805 if (flags & NDR_OUT) {
2806 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
2808 return NDR_ERR_SUCCESS;
2811 static enum ndr_err_code ndr_pull_PNP_GetCustomDevProp(struct ndr_pull *ndr, int flags, struct PNP_GetCustomDevProp *r)
2813 if (flags & NDR_IN) {
2815 if (flags & NDR_OUT) {
2816 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
2818 return NDR_ERR_SUCCESS;
2821 _PUBLIC_ void ndr_print_PNP_GetCustomDevProp(struct ndr_print *ndr, const char *name, int flags, const struct PNP_GetCustomDevProp *r)
2823 ndr_print_struct(ndr, name, "PNP_GetCustomDevProp");
2824 ndr->depth++;
2825 if (flags & NDR_SET_VALUES) {
2826 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2828 if (flags & NDR_IN) {
2829 ndr_print_struct(ndr, "in", "PNP_GetCustomDevProp");
2830 ndr->depth++;
2831 ndr->depth--;
2833 if (flags & NDR_OUT) {
2834 ndr_print_struct(ndr, "out", "PNP_GetCustomDevProp");
2835 ndr->depth++;
2836 ndr_print_WERROR(ndr, "result", r->out.result);
2837 ndr->depth--;
2839 ndr->depth--;
2842 static enum ndr_err_code ndr_push_PNP_GetVersionInternal(struct ndr_push *ndr, int flags, const struct PNP_GetVersionInternal *r)
2844 if (flags & NDR_IN) {
2846 if (flags & NDR_OUT) {
2847 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
2849 return NDR_ERR_SUCCESS;
2852 static enum ndr_err_code ndr_pull_PNP_GetVersionInternal(struct ndr_pull *ndr, int flags, struct PNP_GetVersionInternal *r)
2854 if (flags & NDR_IN) {
2856 if (flags & NDR_OUT) {
2857 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
2859 return NDR_ERR_SUCCESS;
2862 _PUBLIC_ void ndr_print_PNP_GetVersionInternal(struct ndr_print *ndr, const char *name, int flags, const struct PNP_GetVersionInternal *r)
2864 ndr_print_struct(ndr, name, "PNP_GetVersionInternal");
2865 ndr->depth++;
2866 if (flags & NDR_SET_VALUES) {
2867 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2869 if (flags & NDR_IN) {
2870 ndr_print_struct(ndr, "in", "PNP_GetVersionInternal");
2871 ndr->depth++;
2872 ndr->depth--;
2874 if (flags & NDR_OUT) {
2875 ndr_print_struct(ndr, "out", "PNP_GetVersionInternal");
2876 ndr->depth++;
2877 ndr_print_WERROR(ndr, "result", r->out.result);
2878 ndr->depth--;
2880 ndr->depth--;
2883 static enum ndr_err_code ndr_push_PNP_GetBlockedDriverInfo(struct ndr_push *ndr, int flags, const struct PNP_GetBlockedDriverInfo *r)
2885 if (flags & NDR_IN) {
2887 if (flags & NDR_OUT) {
2888 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
2890 return NDR_ERR_SUCCESS;
2893 static enum ndr_err_code ndr_pull_PNP_GetBlockedDriverInfo(struct ndr_pull *ndr, int flags, struct PNP_GetBlockedDriverInfo *r)
2895 if (flags & NDR_IN) {
2897 if (flags & NDR_OUT) {
2898 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
2900 return NDR_ERR_SUCCESS;
2903 _PUBLIC_ void ndr_print_PNP_GetBlockedDriverInfo(struct ndr_print *ndr, const char *name, int flags, const struct PNP_GetBlockedDriverInfo *r)
2905 ndr_print_struct(ndr, name, "PNP_GetBlockedDriverInfo");
2906 ndr->depth++;
2907 if (flags & NDR_SET_VALUES) {
2908 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2910 if (flags & NDR_IN) {
2911 ndr_print_struct(ndr, "in", "PNP_GetBlockedDriverInfo");
2912 ndr->depth++;
2913 ndr->depth--;
2915 if (flags & NDR_OUT) {
2916 ndr_print_struct(ndr, "out", "PNP_GetBlockedDriverInfo");
2917 ndr->depth++;
2918 ndr_print_WERROR(ndr, "result", r->out.result);
2919 ndr->depth--;
2921 ndr->depth--;
2924 static enum ndr_err_code ndr_push_PNP_GetServerSideDeviceInstallFlags(struct ndr_push *ndr, int flags, const struct PNP_GetServerSideDeviceInstallFlags *r)
2926 if (flags & NDR_IN) {
2928 if (flags & NDR_OUT) {
2929 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
2931 return NDR_ERR_SUCCESS;
2934 static enum ndr_err_code ndr_pull_PNP_GetServerSideDeviceInstallFlags(struct ndr_pull *ndr, int flags, struct PNP_GetServerSideDeviceInstallFlags *r)
2936 if (flags & NDR_IN) {
2938 if (flags & NDR_OUT) {
2939 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
2941 return NDR_ERR_SUCCESS;
2944 _PUBLIC_ void ndr_print_PNP_GetServerSideDeviceInstallFlags(struct ndr_print *ndr, const char *name, int flags, const struct PNP_GetServerSideDeviceInstallFlags *r)
2946 ndr_print_struct(ndr, name, "PNP_GetServerSideDeviceInstallFlags");
2947 ndr->depth++;
2948 if (flags & NDR_SET_VALUES) {
2949 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2951 if (flags & NDR_IN) {
2952 ndr_print_struct(ndr, "in", "PNP_GetServerSideDeviceInstallFlags");
2953 ndr->depth++;
2954 ndr->depth--;
2956 if (flags & NDR_OUT) {
2957 ndr_print_struct(ndr, "out", "PNP_GetServerSideDeviceInstallFlags");
2958 ndr->depth++;
2959 ndr_print_WERROR(ndr, "result", r->out.result);
2960 ndr->depth--;
2962 ndr->depth--;
2965 static const struct ndr_interface_call ntsvcs_calls[] = {
2967 "PNP_Disconnect",
2968 sizeof(struct PNP_Disconnect),
2969 (ndr_push_flags_fn_t) ndr_push_PNP_Disconnect,
2970 (ndr_pull_flags_fn_t) ndr_pull_PNP_Disconnect,
2971 (ndr_print_function_t) ndr_print_PNP_Disconnect,
2972 false,
2975 "PNP_Connect",
2976 sizeof(struct PNP_Connect),
2977 (ndr_push_flags_fn_t) ndr_push_PNP_Connect,
2978 (ndr_pull_flags_fn_t) ndr_pull_PNP_Connect,
2979 (ndr_print_function_t) ndr_print_PNP_Connect,
2980 false,
2983 "PNP_GetVersion",
2984 sizeof(struct PNP_GetVersion),
2985 (ndr_push_flags_fn_t) ndr_push_PNP_GetVersion,
2986 (ndr_pull_flags_fn_t) ndr_pull_PNP_GetVersion,
2987 (ndr_print_function_t) ndr_print_PNP_GetVersion,
2988 false,
2991 "PNP_GetGlobalState",
2992 sizeof(struct PNP_GetGlobalState),
2993 (ndr_push_flags_fn_t) ndr_push_PNP_GetGlobalState,
2994 (ndr_pull_flags_fn_t) ndr_pull_PNP_GetGlobalState,
2995 (ndr_print_function_t) ndr_print_PNP_GetGlobalState,
2996 false,
2999 "PNP_InitDetection",
3000 sizeof(struct PNP_InitDetection),
3001 (ndr_push_flags_fn_t) ndr_push_PNP_InitDetection,
3002 (ndr_pull_flags_fn_t) ndr_pull_PNP_InitDetection,
3003 (ndr_print_function_t) ndr_print_PNP_InitDetection,
3004 false,
3007 "PNP_ReportLogOn",
3008 sizeof(struct PNP_ReportLogOn),
3009 (ndr_push_flags_fn_t) ndr_push_PNP_ReportLogOn,
3010 (ndr_pull_flags_fn_t) ndr_pull_PNP_ReportLogOn,
3011 (ndr_print_function_t) ndr_print_PNP_ReportLogOn,
3012 false,
3015 "PNP_ValidateDeviceInstance",
3016 sizeof(struct PNP_ValidateDeviceInstance),
3017 (ndr_push_flags_fn_t) ndr_push_PNP_ValidateDeviceInstance,
3018 (ndr_pull_flags_fn_t) ndr_pull_PNP_ValidateDeviceInstance,
3019 (ndr_print_function_t) ndr_print_PNP_ValidateDeviceInstance,
3020 false,
3023 "PNP_GetRootDeviceInstance",
3024 sizeof(struct PNP_GetRootDeviceInstance),
3025 (ndr_push_flags_fn_t) ndr_push_PNP_GetRootDeviceInstance,
3026 (ndr_pull_flags_fn_t) ndr_pull_PNP_GetRootDeviceInstance,
3027 (ndr_print_function_t) ndr_print_PNP_GetRootDeviceInstance,
3028 false,
3031 "PNP_GetRelatedDeviceInstance",
3032 sizeof(struct PNP_GetRelatedDeviceInstance),
3033 (ndr_push_flags_fn_t) ndr_push_PNP_GetRelatedDeviceInstance,
3034 (ndr_pull_flags_fn_t) ndr_pull_PNP_GetRelatedDeviceInstance,
3035 (ndr_print_function_t) ndr_print_PNP_GetRelatedDeviceInstance,
3036 false,
3039 "PNP_EnumerateSubKeys",
3040 sizeof(struct PNP_EnumerateSubKeys),
3041 (ndr_push_flags_fn_t) ndr_push_PNP_EnumerateSubKeys,
3042 (ndr_pull_flags_fn_t) ndr_pull_PNP_EnumerateSubKeys,
3043 (ndr_print_function_t) ndr_print_PNP_EnumerateSubKeys,
3044 false,
3047 "PNP_GetDeviceList",
3048 sizeof(struct PNP_GetDeviceList),
3049 (ndr_push_flags_fn_t) ndr_push_PNP_GetDeviceList,
3050 (ndr_pull_flags_fn_t) ndr_pull_PNP_GetDeviceList,
3051 (ndr_print_function_t) ndr_print_PNP_GetDeviceList,
3052 false,
3055 "PNP_GetDeviceListSize",
3056 sizeof(struct PNP_GetDeviceListSize),
3057 (ndr_push_flags_fn_t) ndr_push_PNP_GetDeviceListSize,
3058 (ndr_pull_flags_fn_t) ndr_pull_PNP_GetDeviceListSize,
3059 (ndr_print_function_t) ndr_print_PNP_GetDeviceListSize,
3060 false,
3063 "PNP_GetDepth",
3064 sizeof(struct PNP_GetDepth),
3065 (ndr_push_flags_fn_t) ndr_push_PNP_GetDepth,
3066 (ndr_pull_flags_fn_t) ndr_pull_PNP_GetDepth,
3067 (ndr_print_function_t) ndr_print_PNP_GetDepth,
3068 false,
3071 "PNP_GetDeviceRegProp",
3072 sizeof(struct PNP_GetDeviceRegProp),
3073 (ndr_push_flags_fn_t) ndr_push_PNP_GetDeviceRegProp,
3074 (ndr_pull_flags_fn_t) ndr_pull_PNP_GetDeviceRegProp,
3075 (ndr_print_function_t) ndr_print_PNP_GetDeviceRegProp,
3076 false,
3079 "PNP_SetDeviceRegProp",
3080 sizeof(struct PNP_SetDeviceRegProp),
3081 (ndr_push_flags_fn_t) ndr_push_PNP_SetDeviceRegProp,
3082 (ndr_pull_flags_fn_t) ndr_pull_PNP_SetDeviceRegProp,
3083 (ndr_print_function_t) ndr_print_PNP_SetDeviceRegProp,
3084 false,
3087 "PNP_GetClassInstance",
3088 sizeof(struct PNP_GetClassInstance),
3089 (ndr_push_flags_fn_t) ndr_push_PNP_GetClassInstance,
3090 (ndr_pull_flags_fn_t) ndr_pull_PNP_GetClassInstance,
3091 (ndr_print_function_t) ndr_print_PNP_GetClassInstance,
3092 false,
3095 "PNP_CreateKey",
3096 sizeof(struct PNP_CreateKey),
3097 (ndr_push_flags_fn_t) ndr_push_PNP_CreateKey,
3098 (ndr_pull_flags_fn_t) ndr_pull_PNP_CreateKey,
3099 (ndr_print_function_t) ndr_print_PNP_CreateKey,
3100 false,
3103 "PNP_DeleteRegistryKey",
3104 sizeof(struct PNP_DeleteRegistryKey),
3105 (ndr_push_flags_fn_t) ndr_push_PNP_DeleteRegistryKey,
3106 (ndr_pull_flags_fn_t) ndr_pull_PNP_DeleteRegistryKey,
3107 (ndr_print_function_t) ndr_print_PNP_DeleteRegistryKey,
3108 false,
3111 "PNP_GetClassCount",
3112 sizeof(struct PNP_GetClassCount),
3113 (ndr_push_flags_fn_t) ndr_push_PNP_GetClassCount,
3114 (ndr_pull_flags_fn_t) ndr_pull_PNP_GetClassCount,
3115 (ndr_print_function_t) ndr_print_PNP_GetClassCount,
3116 false,
3119 "PNP_GetClassName",
3120 sizeof(struct PNP_GetClassName),
3121 (ndr_push_flags_fn_t) ndr_push_PNP_GetClassName,
3122 (ndr_pull_flags_fn_t) ndr_pull_PNP_GetClassName,
3123 (ndr_print_function_t) ndr_print_PNP_GetClassName,
3124 false,
3127 "PNP_DeleteClassKey",
3128 sizeof(struct PNP_DeleteClassKey),
3129 (ndr_push_flags_fn_t) ndr_push_PNP_DeleteClassKey,
3130 (ndr_pull_flags_fn_t) ndr_pull_PNP_DeleteClassKey,
3131 (ndr_print_function_t) ndr_print_PNP_DeleteClassKey,
3132 false,
3135 "PNP_GetInterfaceDeviceAlias",
3136 sizeof(struct PNP_GetInterfaceDeviceAlias),
3137 (ndr_push_flags_fn_t) ndr_push_PNP_GetInterfaceDeviceAlias,
3138 (ndr_pull_flags_fn_t) ndr_pull_PNP_GetInterfaceDeviceAlias,
3139 (ndr_print_function_t) ndr_print_PNP_GetInterfaceDeviceAlias,
3140 false,
3143 "PNP_GetInterfaceDeviceList",
3144 sizeof(struct PNP_GetInterfaceDeviceList),
3145 (ndr_push_flags_fn_t) ndr_push_PNP_GetInterfaceDeviceList,
3146 (ndr_pull_flags_fn_t) ndr_pull_PNP_GetInterfaceDeviceList,
3147 (ndr_print_function_t) ndr_print_PNP_GetInterfaceDeviceList,
3148 false,
3151 "PNP_GetInterfaceDeviceListSize",
3152 sizeof(struct PNP_GetInterfaceDeviceListSize),
3153 (ndr_push_flags_fn_t) ndr_push_PNP_GetInterfaceDeviceListSize,
3154 (ndr_pull_flags_fn_t) ndr_pull_PNP_GetInterfaceDeviceListSize,
3155 (ndr_print_function_t) ndr_print_PNP_GetInterfaceDeviceListSize,
3156 false,
3159 "PNP_RegisterDeviceClassAssociation",
3160 sizeof(struct PNP_RegisterDeviceClassAssociation),
3161 (ndr_push_flags_fn_t) ndr_push_PNP_RegisterDeviceClassAssociation,
3162 (ndr_pull_flags_fn_t) ndr_pull_PNP_RegisterDeviceClassAssociation,
3163 (ndr_print_function_t) ndr_print_PNP_RegisterDeviceClassAssociation,
3164 false,
3167 "PNP_UnregisterDeviceClassAssociation",
3168 sizeof(struct PNP_UnregisterDeviceClassAssociation),
3169 (ndr_push_flags_fn_t) ndr_push_PNP_UnregisterDeviceClassAssociation,
3170 (ndr_pull_flags_fn_t) ndr_pull_PNP_UnregisterDeviceClassAssociation,
3171 (ndr_print_function_t) ndr_print_PNP_UnregisterDeviceClassAssociation,
3172 false,
3175 "PNP_GetClassRegProp",
3176 sizeof(struct PNP_GetClassRegProp),
3177 (ndr_push_flags_fn_t) ndr_push_PNP_GetClassRegProp,
3178 (ndr_pull_flags_fn_t) ndr_pull_PNP_GetClassRegProp,
3179 (ndr_print_function_t) ndr_print_PNP_GetClassRegProp,
3180 false,
3183 "PNP_SetClassRegProp",
3184 sizeof(struct PNP_SetClassRegProp),
3185 (ndr_push_flags_fn_t) ndr_push_PNP_SetClassRegProp,
3186 (ndr_pull_flags_fn_t) ndr_pull_PNP_SetClassRegProp,
3187 (ndr_print_function_t) ndr_print_PNP_SetClassRegProp,
3188 false,
3191 "PNP_CreateDevInst",
3192 sizeof(struct PNP_CreateDevInst),
3193 (ndr_push_flags_fn_t) ndr_push_PNP_CreateDevInst,
3194 (ndr_pull_flags_fn_t) ndr_pull_PNP_CreateDevInst,
3195 (ndr_print_function_t) ndr_print_PNP_CreateDevInst,
3196 false,
3199 "PNP_DeviceInstanceAction",
3200 sizeof(struct PNP_DeviceInstanceAction),
3201 (ndr_push_flags_fn_t) ndr_push_PNP_DeviceInstanceAction,
3202 (ndr_pull_flags_fn_t) ndr_pull_PNP_DeviceInstanceAction,
3203 (ndr_print_function_t) ndr_print_PNP_DeviceInstanceAction,
3204 false,
3207 "PNP_GetDeviceStatus",
3208 sizeof(struct PNP_GetDeviceStatus),
3209 (ndr_push_flags_fn_t) ndr_push_PNP_GetDeviceStatus,
3210 (ndr_pull_flags_fn_t) ndr_pull_PNP_GetDeviceStatus,
3211 (ndr_print_function_t) ndr_print_PNP_GetDeviceStatus,
3212 false,
3215 "PNP_SetDeviceProblem",
3216 sizeof(struct PNP_SetDeviceProblem),
3217 (ndr_push_flags_fn_t) ndr_push_PNP_SetDeviceProblem,
3218 (ndr_pull_flags_fn_t) ndr_pull_PNP_SetDeviceProblem,
3219 (ndr_print_function_t) ndr_print_PNP_SetDeviceProblem,
3220 false,
3223 "PNP_DisableDevInst",
3224 sizeof(struct PNP_DisableDevInst),
3225 (ndr_push_flags_fn_t) ndr_push_PNP_DisableDevInst,
3226 (ndr_pull_flags_fn_t) ndr_pull_PNP_DisableDevInst,
3227 (ndr_print_function_t) ndr_print_PNP_DisableDevInst,
3228 false,
3231 "PNP_UninstallDevInst",
3232 sizeof(struct PNP_UninstallDevInst),
3233 (ndr_push_flags_fn_t) ndr_push_PNP_UninstallDevInst,
3234 (ndr_pull_flags_fn_t) ndr_pull_PNP_UninstallDevInst,
3235 (ndr_print_function_t) ndr_print_PNP_UninstallDevInst,
3236 false,
3239 "PNP_AddID",
3240 sizeof(struct PNP_AddID),
3241 (ndr_push_flags_fn_t) ndr_push_PNP_AddID,
3242 (ndr_pull_flags_fn_t) ndr_pull_PNP_AddID,
3243 (ndr_print_function_t) ndr_print_PNP_AddID,
3244 false,
3247 "PNP_RegisterDriver",
3248 sizeof(struct PNP_RegisterDriver),
3249 (ndr_push_flags_fn_t) ndr_push_PNP_RegisterDriver,
3250 (ndr_pull_flags_fn_t) ndr_pull_PNP_RegisterDriver,
3251 (ndr_print_function_t) ndr_print_PNP_RegisterDriver,
3252 false,
3255 "PNP_QueryRemove",
3256 sizeof(struct PNP_QueryRemove),
3257 (ndr_push_flags_fn_t) ndr_push_PNP_QueryRemove,
3258 (ndr_pull_flags_fn_t) ndr_pull_PNP_QueryRemove,
3259 (ndr_print_function_t) ndr_print_PNP_QueryRemove,
3260 false,
3263 "PNP_RequestDeviceEject",
3264 sizeof(struct PNP_RequestDeviceEject),
3265 (ndr_push_flags_fn_t) ndr_push_PNP_RequestDeviceEject,
3266 (ndr_pull_flags_fn_t) ndr_pull_PNP_RequestDeviceEject,
3267 (ndr_print_function_t) ndr_print_PNP_RequestDeviceEject,
3268 false,
3271 "PNP_IsDockStationPresent",
3272 sizeof(struct PNP_IsDockStationPresent),
3273 (ndr_push_flags_fn_t) ndr_push_PNP_IsDockStationPresent,
3274 (ndr_pull_flags_fn_t) ndr_pull_PNP_IsDockStationPresent,
3275 (ndr_print_function_t) ndr_print_PNP_IsDockStationPresent,
3276 false,
3279 "PNP_RequestEjectPC",
3280 sizeof(struct PNP_RequestEjectPC),
3281 (ndr_push_flags_fn_t) ndr_push_PNP_RequestEjectPC,
3282 (ndr_pull_flags_fn_t) ndr_pull_PNP_RequestEjectPC,
3283 (ndr_print_function_t) ndr_print_PNP_RequestEjectPC,
3284 false,
3287 "PNP_HwProfFlags",
3288 sizeof(struct PNP_HwProfFlags),
3289 (ndr_push_flags_fn_t) ndr_push_PNP_HwProfFlags,
3290 (ndr_pull_flags_fn_t) ndr_pull_PNP_HwProfFlags,
3291 (ndr_print_function_t) ndr_print_PNP_HwProfFlags,
3292 false,
3295 "PNP_GetHwProfInfo",
3296 sizeof(struct PNP_GetHwProfInfo),
3297 (ndr_push_flags_fn_t) ndr_push_PNP_GetHwProfInfo,
3298 (ndr_pull_flags_fn_t) ndr_pull_PNP_GetHwProfInfo,
3299 (ndr_print_function_t) ndr_print_PNP_GetHwProfInfo,
3300 false,
3303 "PNP_AddEmptyLogConf",
3304 sizeof(struct PNP_AddEmptyLogConf),
3305 (ndr_push_flags_fn_t) ndr_push_PNP_AddEmptyLogConf,
3306 (ndr_pull_flags_fn_t) ndr_pull_PNP_AddEmptyLogConf,
3307 (ndr_print_function_t) ndr_print_PNP_AddEmptyLogConf,
3308 false,
3311 "PNP_FreeLogConf",
3312 sizeof(struct PNP_FreeLogConf),
3313 (ndr_push_flags_fn_t) ndr_push_PNP_FreeLogConf,
3314 (ndr_pull_flags_fn_t) ndr_pull_PNP_FreeLogConf,
3315 (ndr_print_function_t) ndr_print_PNP_FreeLogConf,
3316 false,
3319 "PNP_GetFirstLogConf",
3320 sizeof(struct PNP_GetFirstLogConf),
3321 (ndr_push_flags_fn_t) ndr_push_PNP_GetFirstLogConf,
3322 (ndr_pull_flags_fn_t) ndr_pull_PNP_GetFirstLogConf,
3323 (ndr_print_function_t) ndr_print_PNP_GetFirstLogConf,
3324 false,
3327 "PNP_GetNextLogConf",
3328 sizeof(struct PNP_GetNextLogConf),
3329 (ndr_push_flags_fn_t) ndr_push_PNP_GetNextLogConf,
3330 (ndr_pull_flags_fn_t) ndr_pull_PNP_GetNextLogConf,
3331 (ndr_print_function_t) ndr_print_PNP_GetNextLogConf,
3332 false,
3335 "PNP_GetLogConfPriority",
3336 sizeof(struct PNP_GetLogConfPriority),
3337 (ndr_push_flags_fn_t) ndr_push_PNP_GetLogConfPriority,
3338 (ndr_pull_flags_fn_t) ndr_pull_PNP_GetLogConfPriority,
3339 (ndr_print_function_t) ndr_print_PNP_GetLogConfPriority,
3340 false,
3343 "PNP_AddResDes",
3344 sizeof(struct PNP_AddResDes),
3345 (ndr_push_flags_fn_t) ndr_push_PNP_AddResDes,
3346 (ndr_pull_flags_fn_t) ndr_pull_PNP_AddResDes,
3347 (ndr_print_function_t) ndr_print_PNP_AddResDes,
3348 false,
3351 "PNP_FreeResDes",
3352 sizeof(struct PNP_FreeResDes),
3353 (ndr_push_flags_fn_t) ndr_push_PNP_FreeResDes,
3354 (ndr_pull_flags_fn_t) ndr_pull_PNP_FreeResDes,
3355 (ndr_print_function_t) ndr_print_PNP_FreeResDes,
3356 false,
3359 "PNP_GetNextResDes",
3360 sizeof(struct PNP_GetNextResDes),
3361 (ndr_push_flags_fn_t) ndr_push_PNP_GetNextResDes,
3362 (ndr_pull_flags_fn_t) ndr_pull_PNP_GetNextResDes,
3363 (ndr_print_function_t) ndr_print_PNP_GetNextResDes,
3364 false,
3367 "PNP_GetResDesData",
3368 sizeof(struct PNP_GetResDesData),
3369 (ndr_push_flags_fn_t) ndr_push_PNP_GetResDesData,
3370 (ndr_pull_flags_fn_t) ndr_pull_PNP_GetResDesData,
3371 (ndr_print_function_t) ndr_print_PNP_GetResDesData,
3372 false,
3375 "PNP_GetResDesDataSize",
3376 sizeof(struct PNP_GetResDesDataSize),
3377 (ndr_push_flags_fn_t) ndr_push_PNP_GetResDesDataSize,
3378 (ndr_pull_flags_fn_t) ndr_pull_PNP_GetResDesDataSize,
3379 (ndr_print_function_t) ndr_print_PNP_GetResDesDataSize,
3380 false,
3383 "PNP_ModifyResDes",
3384 sizeof(struct PNP_ModifyResDes),
3385 (ndr_push_flags_fn_t) ndr_push_PNP_ModifyResDes,
3386 (ndr_pull_flags_fn_t) ndr_pull_PNP_ModifyResDes,
3387 (ndr_print_function_t) ndr_print_PNP_ModifyResDes,
3388 false,
3391 "PNP_DetectResourceLimit",
3392 sizeof(struct PNP_DetectResourceLimit),
3393 (ndr_push_flags_fn_t) ndr_push_PNP_DetectResourceLimit,
3394 (ndr_pull_flags_fn_t) ndr_pull_PNP_DetectResourceLimit,
3395 (ndr_print_function_t) ndr_print_PNP_DetectResourceLimit,
3396 false,
3399 "PNP_QueryResConfList",
3400 sizeof(struct PNP_QueryResConfList),
3401 (ndr_push_flags_fn_t) ndr_push_PNP_QueryResConfList,
3402 (ndr_pull_flags_fn_t) ndr_pull_PNP_QueryResConfList,
3403 (ndr_print_function_t) ndr_print_PNP_QueryResConfList,
3404 false,
3407 "PNP_SetHwProf",
3408 sizeof(struct PNP_SetHwProf),
3409 (ndr_push_flags_fn_t) ndr_push_PNP_SetHwProf,
3410 (ndr_pull_flags_fn_t) ndr_pull_PNP_SetHwProf,
3411 (ndr_print_function_t) ndr_print_PNP_SetHwProf,
3412 false,
3415 "PNP_QueryArbitratorFreeData",
3416 sizeof(struct PNP_QueryArbitratorFreeData),
3417 (ndr_push_flags_fn_t) ndr_push_PNP_QueryArbitratorFreeData,
3418 (ndr_pull_flags_fn_t) ndr_pull_PNP_QueryArbitratorFreeData,
3419 (ndr_print_function_t) ndr_print_PNP_QueryArbitratorFreeData,
3420 false,
3423 "PNP_QueryArbitratorFreeSize",
3424 sizeof(struct PNP_QueryArbitratorFreeSize),
3425 (ndr_push_flags_fn_t) ndr_push_PNP_QueryArbitratorFreeSize,
3426 (ndr_pull_flags_fn_t) ndr_pull_PNP_QueryArbitratorFreeSize,
3427 (ndr_print_function_t) ndr_print_PNP_QueryArbitratorFreeSize,
3428 false,
3431 "PNP_RunDetection",
3432 sizeof(struct PNP_RunDetection),
3433 (ndr_push_flags_fn_t) ndr_push_PNP_RunDetection,
3434 (ndr_pull_flags_fn_t) ndr_pull_PNP_RunDetection,
3435 (ndr_print_function_t) ndr_print_PNP_RunDetection,
3436 false,
3439 "PNP_RegisterNotification",
3440 sizeof(struct PNP_RegisterNotification),
3441 (ndr_push_flags_fn_t) ndr_push_PNP_RegisterNotification,
3442 (ndr_pull_flags_fn_t) ndr_pull_PNP_RegisterNotification,
3443 (ndr_print_function_t) ndr_print_PNP_RegisterNotification,
3444 false,
3447 "PNP_UnregisterNotification",
3448 sizeof(struct PNP_UnregisterNotification),
3449 (ndr_push_flags_fn_t) ndr_push_PNP_UnregisterNotification,
3450 (ndr_pull_flags_fn_t) ndr_pull_PNP_UnregisterNotification,
3451 (ndr_print_function_t) ndr_print_PNP_UnregisterNotification,
3452 false,
3455 "PNP_GetCustomDevProp",
3456 sizeof(struct PNP_GetCustomDevProp),
3457 (ndr_push_flags_fn_t) ndr_push_PNP_GetCustomDevProp,
3458 (ndr_pull_flags_fn_t) ndr_pull_PNP_GetCustomDevProp,
3459 (ndr_print_function_t) ndr_print_PNP_GetCustomDevProp,
3460 false,
3463 "PNP_GetVersionInternal",
3464 sizeof(struct PNP_GetVersionInternal),
3465 (ndr_push_flags_fn_t) ndr_push_PNP_GetVersionInternal,
3466 (ndr_pull_flags_fn_t) ndr_pull_PNP_GetVersionInternal,
3467 (ndr_print_function_t) ndr_print_PNP_GetVersionInternal,
3468 false,
3471 "PNP_GetBlockedDriverInfo",
3472 sizeof(struct PNP_GetBlockedDriverInfo),
3473 (ndr_push_flags_fn_t) ndr_push_PNP_GetBlockedDriverInfo,
3474 (ndr_pull_flags_fn_t) ndr_pull_PNP_GetBlockedDriverInfo,
3475 (ndr_print_function_t) ndr_print_PNP_GetBlockedDriverInfo,
3476 false,
3479 "PNP_GetServerSideDeviceInstallFlags",
3480 sizeof(struct PNP_GetServerSideDeviceInstallFlags),
3481 (ndr_push_flags_fn_t) ndr_push_PNP_GetServerSideDeviceInstallFlags,
3482 (ndr_pull_flags_fn_t) ndr_pull_PNP_GetServerSideDeviceInstallFlags,
3483 (ndr_print_function_t) ndr_print_PNP_GetServerSideDeviceInstallFlags,
3484 false,
3486 { NULL, 0, NULL, NULL, NULL, false }
3489 static const char * const ntsvcs_endpoint_strings[] = {
3490 "ncacn_np:[\\pipe\\ntsvcs]",
3493 static const struct ndr_interface_string_array ntsvcs_endpoints = {
3494 .count = 1,
3495 .names = ntsvcs_endpoint_strings
3498 static const char * const ntsvcs_authservice_strings[] = {
3499 "host",
3502 static const struct ndr_interface_string_array ntsvcs_authservices = {
3503 .count = 1,
3504 .names = ntsvcs_authservice_strings
3508 const struct ndr_interface_table ndr_table_ntsvcs = {
3509 .name = "ntsvcs",
3510 .syntax_id = {
3511 {0x8d9f4e40,0xa03d,0x11ce,{0x8f,0x69},{0x08,0x00,0x3e,0x30,0x05,0x1b}},
3512 NDR_NTSVCS_VERSION
3514 .helpstring = NDR_NTSVCS_HELPSTRING,
3515 .num_calls = 65,
3516 .calls = ntsvcs_calls,
3517 .endpoints = &ntsvcs_endpoints,
3518 .authservices = &ntsvcs_authservices