1 /* parser auto-generated by pidl */
4 #include "librpc/gen_ndr/ndr_ntsvcs.h"
6 static enum ndr_err_code
ndr_push_PNP_HwProfInfo(struct ndr_push
*ndr
, int ndr_flags
, const struct PNP_HwProfInfo
*r
)
8 uint32_t cntr_unknown2_0
;
9 if (ndr_flags
& NDR_SCALARS
) {
10 NDR_CHECK(ndr_push_align(ndr
, 4));
11 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, r
->unknown1
));
12 for (cntr_unknown2_0
= 0; cntr_unknown2_0
< 160; cntr_unknown2_0
++) {
13 NDR_CHECK(ndr_push_uint16(ndr
, NDR_SCALARS
, r
->unknown2
[cntr_unknown2_0
]));
15 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, r
->unknown3
));
17 if (ndr_flags
& NDR_BUFFERS
) {
19 return NDR_ERR_SUCCESS
;
22 static enum ndr_err_code
ndr_pull_PNP_HwProfInfo(struct ndr_pull
*ndr
, int ndr_flags
, struct PNP_HwProfInfo
*r
)
24 uint32_t cntr_unknown2_0
;
25 if (ndr_flags
& NDR_SCALARS
) {
26 NDR_CHECK(ndr_pull_align(ndr
, 4));
27 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, &r
->unknown1
));
28 for (cntr_unknown2_0
= 0; cntr_unknown2_0
< 160; cntr_unknown2_0
++) {
29 NDR_CHECK(ndr_pull_uint16(ndr
, NDR_SCALARS
, &r
->unknown2
[cntr_unknown2_0
]));
31 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, &r
->unknown3
));
33 if (ndr_flags
& NDR_BUFFERS
) {
35 return NDR_ERR_SUCCESS
;
38 _PUBLIC_
void ndr_print_PNP_HwProfInfo(struct ndr_print
*ndr
, const char *name
, const struct PNP_HwProfInfo
*r
)
40 uint32_t cntr_unknown2_0
;
41 ndr_print_struct(ndr
, name
, "PNP_HwProfInfo");
43 ndr_print_uint32(ndr
, "unknown1", r
->unknown1
);
44 ndr
->print(ndr
, "%s: ARRAY(%d)", "unknown2", (int)160);
46 for (cntr_unknown2_0
=0;cntr_unknown2_0
<160;cntr_unknown2_0
++) {
48 if (asprintf(&idx_0
, "[%d]", cntr_unknown2_0
) != -1) {
49 ndr_print_uint16(ndr
, "unknown2", r
->unknown2
[cntr_unknown2_0
]);
54 ndr_print_uint32(ndr
, "unknown3", r
->unknown3
);
58 static enum ndr_err_code
ndr_push_PNP_Disconnect(struct ndr_push
*ndr
, int flags
, const struct PNP_Disconnect
*r
)
62 if (flags
& NDR_OUT
) {
63 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
65 return NDR_ERR_SUCCESS
;
68 static enum ndr_err_code
ndr_pull_PNP_Disconnect(struct ndr_pull
*ndr
, int flags
, struct PNP_Disconnect
*r
)
72 if (flags
& NDR_OUT
) {
73 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
75 return NDR_ERR_SUCCESS
;
78 _PUBLIC_
void ndr_print_PNP_Disconnect(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_Disconnect
*r
)
80 ndr_print_struct(ndr
, name
, "PNP_Disconnect");
82 if (flags
& NDR_SET_VALUES
) {
83 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
86 ndr_print_struct(ndr
, "in", "PNP_Disconnect");
90 if (flags
& NDR_OUT
) {
91 ndr_print_struct(ndr
, "out", "PNP_Disconnect");
93 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
99 static enum ndr_err_code
ndr_push_PNP_Connect(struct ndr_push
*ndr
, int flags
, const struct PNP_Connect
*r
)
101 if (flags
& NDR_IN
) {
103 if (flags
& NDR_OUT
) {
104 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
106 return NDR_ERR_SUCCESS
;
109 static enum ndr_err_code
ndr_pull_PNP_Connect(struct ndr_pull
*ndr
, int flags
, struct PNP_Connect
*r
)
111 if (flags
& NDR_IN
) {
113 if (flags
& NDR_OUT
) {
114 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
116 return NDR_ERR_SUCCESS
;
119 _PUBLIC_
void ndr_print_PNP_Connect(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_Connect
*r
)
121 ndr_print_struct(ndr
, name
, "PNP_Connect");
123 if (flags
& NDR_SET_VALUES
) {
124 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
126 if (flags
& NDR_IN
) {
127 ndr_print_struct(ndr
, "in", "PNP_Connect");
131 if (flags
& NDR_OUT
) {
132 ndr_print_struct(ndr
, "out", "PNP_Connect");
134 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
140 static enum ndr_err_code
ndr_push_PNP_GetVersion(struct ndr_push
*ndr
, int flags
, const struct PNP_GetVersion
*r
)
142 if (flags
& NDR_IN
) {
144 if (flags
& NDR_OUT
) {
145 if (r
->out
.version
== NULL
) {
146 return ndr_push_error(ndr
, NDR_ERR_INVALID_POINTER
, "NULL [ref] pointer");
148 NDR_CHECK(ndr_push_uint16(ndr
, NDR_SCALARS
, *r
->out
.version
));
149 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
151 return NDR_ERR_SUCCESS
;
154 static enum ndr_err_code
ndr_pull_PNP_GetVersion(struct ndr_pull
*ndr
, int flags
, struct PNP_GetVersion
*r
)
156 TALLOC_CTX
*_mem_save_version_0
;
157 if (flags
& NDR_IN
) {
160 NDR_PULL_ALLOC(ndr
, r
->out
.version
);
161 ZERO_STRUCTP(r
->out
.version
);
163 if (flags
& NDR_OUT
) {
164 if (ndr
->flags
& LIBNDR_FLAG_REF_ALLOC
) {
165 NDR_PULL_ALLOC(ndr
, r
->out
.version
);
167 _mem_save_version_0
= NDR_PULL_GET_MEM_CTX(ndr
);
168 NDR_PULL_SET_MEM_CTX(ndr
, r
->out
.version
, LIBNDR_FLAG_REF_ALLOC
);
169 NDR_CHECK(ndr_pull_uint16(ndr
, NDR_SCALARS
, r
->out
.version
));
170 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_version_0
, LIBNDR_FLAG_REF_ALLOC
);
171 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
173 return NDR_ERR_SUCCESS
;
176 _PUBLIC_
void ndr_print_PNP_GetVersion(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetVersion
*r
)
178 ndr_print_struct(ndr
, name
, "PNP_GetVersion");
180 if (flags
& NDR_SET_VALUES
) {
181 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
183 if (flags
& NDR_IN
) {
184 ndr_print_struct(ndr
, "in", "PNP_GetVersion");
188 if (flags
& NDR_OUT
) {
189 ndr_print_struct(ndr
, "out", "PNP_GetVersion");
191 ndr_print_ptr(ndr
, "version", r
->out
.version
);
193 ndr_print_uint16(ndr
, "version", *r
->out
.version
);
195 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
201 static enum ndr_err_code
ndr_push_PNP_GetGlobalState(struct ndr_push
*ndr
, int flags
, const struct PNP_GetGlobalState
*r
)
203 if (flags
& NDR_IN
) {
205 if (flags
& NDR_OUT
) {
206 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
208 return NDR_ERR_SUCCESS
;
211 static enum ndr_err_code
ndr_pull_PNP_GetGlobalState(struct ndr_pull
*ndr
, int flags
, struct PNP_GetGlobalState
*r
)
213 if (flags
& NDR_IN
) {
215 if (flags
& NDR_OUT
) {
216 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
218 return NDR_ERR_SUCCESS
;
221 _PUBLIC_
void ndr_print_PNP_GetGlobalState(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetGlobalState
*r
)
223 ndr_print_struct(ndr
, name
, "PNP_GetGlobalState");
225 if (flags
& NDR_SET_VALUES
) {
226 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
228 if (flags
& NDR_IN
) {
229 ndr_print_struct(ndr
, "in", "PNP_GetGlobalState");
233 if (flags
& NDR_OUT
) {
234 ndr_print_struct(ndr
, "out", "PNP_GetGlobalState");
236 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
242 static enum ndr_err_code
ndr_push_PNP_InitDetection(struct ndr_push
*ndr
, int flags
, const struct PNP_InitDetection
*r
)
244 if (flags
& NDR_IN
) {
246 if (flags
& NDR_OUT
) {
247 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
249 return NDR_ERR_SUCCESS
;
252 static enum ndr_err_code
ndr_pull_PNP_InitDetection(struct ndr_pull
*ndr
, int flags
, struct PNP_InitDetection
*r
)
254 if (flags
& NDR_IN
) {
256 if (flags
& NDR_OUT
) {
257 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
259 return NDR_ERR_SUCCESS
;
262 _PUBLIC_
void ndr_print_PNP_InitDetection(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_InitDetection
*r
)
264 ndr_print_struct(ndr
, name
, "PNP_InitDetection");
266 if (flags
& NDR_SET_VALUES
) {
267 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
269 if (flags
& NDR_IN
) {
270 ndr_print_struct(ndr
, "in", "PNP_InitDetection");
274 if (flags
& NDR_OUT
) {
275 ndr_print_struct(ndr
, "out", "PNP_InitDetection");
277 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
283 static enum ndr_err_code
ndr_push_PNP_ReportLogOn(struct ndr_push
*ndr
, int flags
, const struct PNP_ReportLogOn
*r
)
285 if (flags
& NDR_IN
) {
287 if (flags
& NDR_OUT
) {
288 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
290 return NDR_ERR_SUCCESS
;
293 static enum ndr_err_code
ndr_pull_PNP_ReportLogOn(struct ndr_pull
*ndr
, int flags
, struct PNP_ReportLogOn
*r
)
295 if (flags
& NDR_IN
) {
297 if (flags
& NDR_OUT
) {
298 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
300 return NDR_ERR_SUCCESS
;
303 _PUBLIC_
void ndr_print_PNP_ReportLogOn(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_ReportLogOn
*r
)
305 ndr_print_struct(ndr
, name
, "PNP_ReportLogOn");
307 if (flags
& NDR_SET_VALUES
) {
308 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
310 if (flags
& NDR_IN
) {
311 ndr_print_struct(ndr
, "in", "PNP_ReportLogOn");
315 if (flags
& NDR_OUT
) {
316 ndr_print_struct(ndr
, "out", "PNP_ReportLogOn");
318 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
324 static enum ndr_err_code
ndr_push_PNP_ValidateDeviceInstance(struct ndr_push
*ndr
, int flags
, const struct PNP_ValidateDeviceInstance
*r
)
326 if (flags
& NDR_IN
) {
327 if (r
->in
.devicepath
== NULL
) {
328 return ndr_push_error(ndr
, NDR_ERR_INVALID_POINTER
, "NULL [ref] pointer");
330 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, ndr_charset_length(r
->in
.devicepath
, CH_UTF16
)));
331 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, 0));
332 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, ndr_charset_length(r
->in
.devicepath
, CH_UTF16
)));
333 NDR_CHECK(ndr_push_charset(ndr
, NDR_SCALARS
, r
->in
.devicepath
, ndr_charset_length(r
->in
.devicepath
, CH_UTF16
), sizeof(uint16_t), CH_UTF16
));
334 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, r
->in
.flags
));
336 if (flags
& NDR_OUT
) {
337 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
339 return NDR_ERR_SUCCESS
;
342 static enum ndr_err_code
ndr_pull_PNP_ValidateDeviceInstance(struct ndr_pull
*ndr
, int flags
, struct PNP_ValidateDeviceInstance
*r
)
344 if (flags
& NDR_IN
) {
345 NDR_CHECK(ndr_pull_array_size(ndr
, &r
->in
.devicepath
));
346 NDR_CHECK(ndr_pull_array_length(ndr
, &r
->in
.devicepath
));
347 if (ndr_get_array_length(ndr
, &r
->in
.devicepath
) > ndr_get_array_size(ndr
, &r
->in
.devicepath
)) {
348 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
));
350 NDR_CHECK(ndr_check_string_terminator(ndr
, ndr_get_array_length(ndr
, &r
->in
.devicepath
), sizeof(uint16_t)));
351 NDR_CHECK(ndr_pull_charset(ndr
, NDR_SCALARS
, &r
->in
.devicepath
, ndr_get_array_length(ndr
, &r
->in
.devicepath
), sizeof(uint16_t), CH_UTF16
));
352 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, &r
->in
.flags
));
354 if (flags
& NDR_OUT
) {
355 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
357 return NDR_ERR_SUCCESS
;
360 _PUBLIC_
void ndr_print_PNP_ValidateDeviceInstance(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_ValidateDeviceInstance
*r
)
362 ndr_print_struct(ndr
, name
, "PNP_ValidateDeviceInstance");
364 if (flags
& NDR_SET_VALUES
) {
365 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
367 if (flags
& NDR_IN
) {
368 ndr_print_struct(ndr
, "in", "PNP_ValidateDeviceInstance");
370 ndr_print_ptr(ndr
, "devicepath", r
->in
.devicepath
);
372 ndr_print_string(ndr
, "devicepath", r
->in
.devicepath
);
374 ndr_print_uint32(ndr
, "flags", r
->in
.flags
);
377 if (flags
& NDR_OUT
) {
378 ndr_print_struct(ndr
, "out", "PNP_ValidateDeviceInstance");
380 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
386 static enum ndr_err_code
ndr_push_PNP_GetRootDeviceInstance(struct ndr_push
*ndr
, int flags
, const struct PNP_GetRootDeviceInstance
*r
)
388 if (flags
& NDR_IN
) {
390 if (flags
& NDR_OUT
) {
391 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
393 return NDR_ERR_SUCCESS
;
396 static enum ndr_err_code
ndr_pull_PNP_GetRootDeviceInstance(struct ndr_pull
*ndr
, int flags
, struct PNP_GetRootDeviceInstance
*r
)
398 if (flags
& NDR_IN
) {
400 if (flags
& NDR_OUT
) {
401 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
403 return NDR_ERR_SUCCESS
;
406 _PUBLIC_
void ndr_print_PNP_GetRootDeviceInstance(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetRootDeviceInstance
*r
)
408 ndr_print_struct(ndr
, name
, "PNP_GetRootDeviceInstance");
410 if (flags
& NDR_SET_VALUES
) {
411 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
413 if (flags
& NDR_IN
) {
414 ndr_print_struct(ndr
, "in", "PNP_GetRootDeviceInstance");
418 if (flags
& NDR_OUT
) {
419 ndr_print_struct(ndr
, "out", "PNP_GetRootDeviceInstance");
421 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
427 static enum ndr_err_code
ndr_push_PNP_GetRelatedDeviceInstance(struct ndr_push
*ndr
, int flags
, const struct PNP_GetRelatedDeviceInstance
*r
)
429 if (flags
& NDR_IN
) {
431 if (flags
& NDR_OUT
) {
432 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
434 return NDR_ERR_SUCCESS
;
437 static enum ndr_err_code
ndr_pull_PNP_GetRelatedDeviceInstance(struct ndr_pull
*ndr
, int flags
, struct PNP_GetRelatedDeviceInstance
*r
)
439 if (flags
& NDR_IN
) {
441 if (flags
& NDR_OUT
) {
442 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
444 return NDR_ERR_SUCCESS
;
447 _PUBLIC_
void ndr_print_PNP_GetRelatedDeviceInstance(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetRelatedDeviceInstance
*r
)
449 ndr_print_struct(ndr
, name
, "PNP_GetRelatedDeviceInstance");
451 if (flags
& NDR_SET_VALUES
) {
452 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
454 if (flags
& NDR_IN
) {
455 ndr_print_struct(ndr
, "in", "PNP_GetRelatedDeviceInstance");
459 if (flags
& NDR_OUT
) {
460 ndr_print_struct(ndr
, "out", "PNP_GetRelatedDeviceInstance");
462 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
468 static enum ndr_err_code
ndr_push_PNP_EnumerateSubKeys(struct ndr_push
*ndr
, int flags
, const struct PNP_EnumerateSubKeys
*r
)
470 if (flags
& NDR_IN
) {
472 if (flags
& NDR_OUT
) {
473 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
475 return NDR_ERR_SUCCESS
;
478 static enum ndr_err_code
ndr_pull_PNP_EnumerateSubKeys(struct ndr_pull
*ndr
, int flags
, struct PNP_EnumerateSubKeys
*r
)
480 if (flags
& NDR_IN
) {
482 if (flags
& NDR_OUT
) {
483 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
485 return NDR_ERR_SUCCESS
;
488 _PUBLIC_
void ndr_print_PNP_EnumerateSubKeys(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_EnumerateSubKeys
*r
)
490 ndr_print_struct(ndr
, name
, "PNP_EnumerateSubKeys");
492 if (flags
& NDR_SET_VALUES
) {
493 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
495 if (flags
& NDR_IN
) {
496 ndr_print_struct(ndr
, "in", "PNP_EnumerateSubKeys");
500 if (flags
& NDR_OUT
) {
501 ndr_print_struct(ndr
, "out", "PNP_EnumerateSubKeys");
503 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
509 static enum ndr_err_code
ndr_push_PNP_GetDeviceList(struct ndr_push
*ndr
, int flags
, const struct PNP_GetDeviceList
*r
)
511 if (flags
& NDR_IN
) {
513 if (flags
& NDR_OUT
) {
514 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
516 return NDR_ERR_SUCCESS
;
519 static enum ndr_err_code
ndr_pull_PNP_GetDeviceList(struct ndr_pull
*ndr
, int flags
, struct PNP_GetDeviceList
*r
)
521 if (flags
& NDR_IN
) {
523 if (flags
& NDR_OUT
) {
524 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
526 return NDR_ERR_SUCCESS
;
529 _PUBLIC_
void ndr_print_PNP_GetDeviceList(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetDeviceList
*r
)
531 ndr_print_struct(ndr
, name
, "PNP_GetDeviceList");
533 if (flags
& NDR_SET_VALUES
) {
534 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
536 if (flags
& NDR_IN
) {
537 ndr_print_struct(ndr
, "in", "PNP_GetDeviceList");
541 if (flags
& NDR_OUT
) {
542 ndr_print_struct(ndr
, "out", "PNP_GetDeviceList");
544 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
550 static enum ndr_err_code
ndr_push_PNP_GetDeviceListSize(struct ndr_push
*ndr
, int flags
, const struct PNP_GetDeviceListSize
*r
)
552 if (flags
& NDR_IN
) {
553 NDR_CHECK(ndr_push_unique_ptr(ndr
, r
->in
.devicename
));
554 if (r
->in
.devicename
) {
555 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, ndr_charset_length(r
->in
.devicename
, CH_UTF16
)));
556 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, 0));
557 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, ndr_charset_length(r
->in
.devicename
, CH_UTF16
)));
558 NDR_CHECK(ndr_push_charset(ndr
, NDR_SCALARS
, r
->in
.devicename
, ndr_charset_length(r
->in
.devicename
, CH_UTF16
), sizeof(uint16_t), CH_UTF16
));
560 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, r
->in
.flags
));
562 if (flags
& NDR_OUT
) {
563 if (r
->out
.size
== NULL
) {
564 return ndr_push_error(ndr
, NDR_ERR_INVALID_POINTER
, "NULL [ref] pointer");
566 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, *r
->out
.size
));
567 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
569 return NDR_ERR_SUCCESS
;
572 static enum ndr_err_code
ndr_pull_PNP_GetDeviceListSize(struct ndr_pull
*ndr
, int flags
, struct PNP_GetDeviceListSize
*r
)
574 uint32_t _ptr_devicename
;
575 TALLOC_CTX
*_mem_save_devicename_0
;
576 TALLOC_CTX
*_mem_save_size_0
;
577 if (flags
& NDR_IN
) {
580 NDR_CHECK(ndr_pull_generic_ptr(ndr
, &_ptr_devicename
));
581 if (_ptr_devicename
) {
582 NDR_PULL_ALLOC(ndr
, r
->in
.devicename
);
584 r
->in
.devicename
= NULL
;
586 if (r
->in
.devicename
) {
587 _mem_save_devicename_0
= NDR_PULL_GET_MEM_CTX(ndr
);
588 NDR_PULL_SET_MEM_CTX(ndr
, r
->in
.devicename
, 0);
589 NDR_CHECK(ndr_pull_array_size(ndr
, &r
->in
.devicename
));
590 NDR_CHECK(ndr_pull_array_length(ndr
, &r
->in
.devicename
));
591 if (ndr_get_array_length(ndr
, &r
->in
.devicename
) > ndr_get_array_size(ndr
, &r
->in
.devicename
)) {
592 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
));
594 NDR_CHECK(ndr_check_string_terminator(ndr
, ndr_get_array_length(ndr
, &r
->in
.devicename
), sizeof(uint16_t)));
595 NDR_CHECK(ndr_pull_charset(ndr
, NDR_SCALARS
, &r
->in
.devicename
, ndr_get_array_length(ndr
, &r
->in
.devicename
), sizeof(uint16_t), CH_UTF16
));
596 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_devicename_0
, 0);
598 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, &r
->in
.flags
));
599 NDR_PULL_ALLOC(ndr
, r
->out
.size
);
600 ZERO_STRUCTP(r
->out
.size
);
602 if (flags
& NDR_OUT
) {
603 if (ndr
->flags
& LIBNDR_FLAG_REF_ALLOC
) {
604 NDR_PULL_ALLOC(ndr
, r
->out
.size
);
606 _mem_save_size_0
= NDR_PULL_GET_MEM_CTX(ndr
);
607 NDR_PULL_SET_MEM_CTX(ndr
, r
->out
.size
, LIBNDR_FLAG_REF_ALLOC
);
608 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, r
->out
.size
));
609 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_size_0
, LIBNDR_FLAG_REF_ALLOC
);
610 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
612 return NDR_ERR_SUCCESS
;
615 _PUBLIC_
void ndr_print_PNP_GetDeviceListSize(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetDeviceListSize
*r
)
617 ndr_print_struct(ndr
, name
, "PNP_GetDeviceListSize");
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_GetDeviceListSize");
625 ndr_print_ptr(ndr
, "devicename", r
->in
.devicename
);
627 if (r
->in
.devicename
) {
628 ndr_print_string(ndr
, "devicename", r
->in
.devicename
);
631 ndr_print_uint32(ndr
, "flags", r
->in
.flags
);
634 if (flags
& NDR_OUT
) {
635 ndr_print_struct(ndr
, "out", "PNP_GetDeviceListSize");
637 ndr_print_ptr(ndr
, "size", r
->out
.size
);
639 ndr_print_uint32(ndr
, "size", *r
->out
.size
);
641 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
647 static enum ndr_err_code
ndr_push_PNP_GetDepth(struct ndr_push
*ndr
, int flags
, const struct PNP_GetDepth
*r
)
649 if (flags
& NDR_IN
) {
651 if (flags
& NDR_OUT
) {
652 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
654 return NDR_ERR_SUCCESS
;
657 static enum ndr_err_code
ndr_pull_PNP_GetDepth(struct ndr_pull
*ndr
, int flags
, struct PNP_GetDepth
*r
)
659 if (flags
& NDR_IN
) {
661 if (flags
& NDR_OUT
) {
662 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
664 return NDR_ERR_SUCCESS
;
667 _PUBLIC_
void ndr_print_PNP_GetDepth(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetDepth
*r
)
669 ndr_print_struct(ndr
, name
, "PNP_GetDepth");
671 if (flags
& NDR_SET_VALUES
) {
672 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
674 if (flags
& NDR_IN
) {
675 ndr_print_struct(ndr
, "in", "PNP_GetDepth");
679 if (flags
& NDR_OUT
) {
680 ndr_print_struct(ndr
, "out", "PNP_GetDepth");
682 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
688 static enum ndr_err_code
ndr_push_PNP_GetDeviceRegProp(struct ndr_push
*ndr
, int flags
, const struct PNP_GetDeviceRegProp
*r
)
690 if (flags
& NDR_IN
) {
692 if (flags
& NDR_OUT
) {
693 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
695 return NDR_ERR_SUCCESS
;
698 static enum ndr_err_code
ndr_pull_PNP_GetDeviceRegProp(struct ndr_pull
*ndr
, int flags
, struct PNP_GetDeviceRegProp
*r
)
700 if (flags
& NDR_IN
) {
702 if (flags
& NDR_OUT
) {
703 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
705 return NDR_ERR_SUCCESS
;
708 _PUBLIC_
void ndr_print_PNP_GetDeviceRegProp(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetDeviceRegProp
*r
)
710 ndr_print_struct(ndr
, name
, "PNP_GetDeviceRegProp");
712 if (flags
& NDR_SET_VALUES
) {
713 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
715 if (flags
& NDR_IN
) {
716 ndr_print_struct(ndr
, "in", "PNP_GetDeviceRegProp");
720 if (flags
& NDR_OUT
) {
721 ndr_print_struct(ndr
, "out", "PNP_GetDeviceRegProp");
723 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
729 static enum ndr_err_code
ndr_push_PNP_SetDeviceRegProp(struct ndr_push
*ndr
, int flags
, const struct PNP_SetDeviceRegProp
*r
)
731 if (flags
& NDR_IN
) {
733 if (flags
& NDR_OUT
) {
734 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
736 return NDR_ERR_SUCCESS
;
739 static enum ndr_err_code
ndr_pull_PNP_SetDeviceRegProp(struct ndr_pull
*ndr
, int flags
, struct PNP_SetDeviceRegProp
*r
)
741 if (flags
& NDR_IN
) {
743 if (flags
& NDR_OUT
) {
744 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
746 return NDR_ERR_SUCCESS
;
749 _PUBLIC_
void ndr_print_PNP_SetDeviceRegProp(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_SetDeviceRegProp
*r
)
751 ndr_print_struct(ndr
, name
, "PNP_SetDeviceRegProp");
753 if (flags
& NDR_SET_VALUES
) {
754 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
756 if (flags
& NDR_IN
) {
757 ndr_print_struct(ndr
, "in", "PNP_SetDeviceRegProp");
761 if (flags
& NDR_OUT
) {
762 ndr_print_struct(ndr
, "out", "PNP_SetDeviceRegProp");
764 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
770 static enum ndr_err_code
ndr_push_PNP_GetClassInstance(struct ndr_push
*ndr
, int flags
, const struct PNP_GetClassInstance
*r
)
772 if (flags
& NDR_IN
) {
774 if (flags
& NDR_OUT
) {
775 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
777 return NDR_ERR_SUCCESS
;
780 static enum ndr_err_code
ndr_pull_PNP_GetClassInstance(struct ndr_pull
*ndr
, int flags
, struct PNP_GetClassInstance
*r
)
782 if (flags
& NDR_IN
) {
784 if (flags
& NDR_OUT
) {
785 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
787 return NDR_ERR_SUCCESS
;
790 _PUBLIC_
void ndr_print_PNP_GetClassInstance(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetClassInstance
*r
)
792 ndr_print_struct(ndr
, name
, "PNP_GetClassInstance");
794 if (flags
& NDR_SET_VALUES
) {
795 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
797 if (flags
& NDR_IN
) {
798 ndr_print_struct(ndr
, "in", "PNP_GetClassInstance");
802 if (flags
& NDR_OUT
) {
803 ndr_print_struct(ndr
, "out", "PNP_GetClassInstance");
805 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
811 static enum ndr_err_code
ndr_push_PNP_CreateKey(struct ndr_push
*ndr
, int flags
, const struct PNP_CreateKey
*r
)
813 if (flags
& NDR_IN
) {
815 if (flags
& NDR_OUT
) {
816 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
818 return NDR_ERR_SUCCESS
;
821 static enum ndr_err_code
ndr_pull_PNP_CreateKey(struct ndr_pull
*ndr
, int flags
, struct PNP_CreateKey
*r
)
823 if (flags
& NDR_IN
) {
825 if (flags
& NDR_OUT
) {
826 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
828 return NDR_ERR_SUCCESS
;
831 _PUBLIC_
void ndr_print_PNP_CreateKey(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_CreateKey
*r
)
833 ndr_print_struct(ndr
, name
, "PNP_CreateKey");
835 if (flags
& NDR_SET_VALUES
) {
836 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
838 if (flags
& NDR_IN
) {
839 ndr_print_struct(ndr
, "in", "PNP_CreateKey");
843 if (flags
& NDR_OUT
) {
844 ndr_print_struct(ndr
, "out", "PNP_CreateKey");
846 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
852 static enum ndr_err_code
ndr_push_PNP_DeleteRegistryKey(struct ndr_push
*ndr
, int flags
, const struct PNP_DeleteRegistryKey
*r
)
854 if (flags
& NDR_IN
) {
856 if (flags
& NDR_OUT
) {
857 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
859 return NDR_ERR_SUCCESS
;
862 static enum ndr_err_code
ndr_pull_PNP_DeleteRegistryKey(struct ndr_pull
*ndr
, int flags
, struct PNP_DeleteRegistryKey
*r
)
864 if (flags
& NDR_IN
) {
866 if (flags
& NDR_OUT
) {
867 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
869 return NDR_ERR_SUCCESS
;
872 _PUBLIC_
void ndr_print_PNP_DeleteRegistryKey(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_DeleteRegistryKey
*r
)
874 ndr_print_struct(ndr
, name
, "PNP_DeleteRegistryKey");
876 if (flags
& NDR_SET_VALUES
) {
877 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
879 if (flags
& NDR_IN
) {
880 ndr_print_struct(ndr
, "in", "PNP_DeleteRegistryKey");
884 if (flags
& NDR_OUT
) {
885 ndr_print_struct(ndr
, "out", "PNP_DeleteRegistryKey");
887 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
893 static enum ndr_err_code
ndr_push_PNP_GetClassCount(struct ndr_push
*ndr
, int flags
, const struct PNP_GetClassCount
*r
)
895 if (flags
& NDR_IN
) {
897 if (flags
& NDR_OUT
) {
898 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
900 return NDR_ERR_SUCCESS
;
903 static enum ndr_err_code
ndr_pull_PNP_GetClassCount(struct ndr_pull
*ndr
, int flags
, struct PNP_GetClassCount
*r
)
905 if (flags
& NDR_IN
) {
907 if (flags
& NDR_OUT
) {
908 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
910 return NDR_ERR_SUCCESS
;
913 _PUBLIC_
void ndr_print_PNP_GetClassCount(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetClassCount
*r
)
915 ndr_print_struct(ndr
, name
, "PNP_GetClassCount");
917 if (flags
& NDR_SET_VALUES
) {
918 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
920 if (flags
& NDR_IN
) {
921 ndr_print_struct(ndr
, "in", "PNP_GetClassCount");
925 if (flags
& NDR_OUT
) {
926 ndr_print_struct(ndr
, "out", "PNP_GetClassCount");
928 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
934 static enum ndr_err_code
ndr_push_PNP_GetClassName(struct ndr_push
*ndr
, int flags
, const struct PNP_GetClassName
*r
)
936 if (flags
& NDR_IN
) {
938 if (flags
& NDR_OUT
) {
939 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
941 return NDR_ERR_SUCCESS
;
944 static enum ndr_err_code
ndr_pull_PNP_GetClassName(struct ndr_pull
*ndr
, int flags
, struct PNP_GetClassName
*r
)
946 if (flags
& NDR_IN
) {
948 if (flags
& NDR_OUT
) {
949 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
951 return NDR_ERR_SUCCESS
;
954 _PUBLIC_
void ndr_print_PNP_GetClassName(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetClassName
*r
)
956 ndr_print_struct(ndr
, name
, "PNP_GetClassName");
958 if (flags
& NDR_SET_VALUES
) {
959 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
961 if (flags
& NDR_IN
) {
962 ndr_print_struct(ndr
, "in", "PNP_GetClassName");
966 if (flags
& NDR_OUT
) {
967 ndr_print_struct(ndr
, "out", "PNP_GetClassName");
969 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
975 static enum ndr_err_code
ndr_push_PNP_DeleteClassKey(struct ndr_push
*ndr
, int flags
, const struct PNP_DeleteClassKey
*r
)
977 if (flags
& NDR_IN
) {
979 if (flags
& NDR_OUT
) {
980 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
982 return NDR_ERR_SUCCESS
;
985 static enum ndr_err_code
ndr_pull_PNP_DeleteClassKey(struct ndr_pull
*ndr
, int flags
, struct PNP_DeleteClassKey
*r
)
987 if (flags
& NDR_IN
) {
989 if (flags
& NDR_OUT
) {
990 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
992 return NDR_ERR_SUCCESS
;
995 _PUBLIC_
void ndr_print_PNP_DeleteClassKey(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_DeleteClassKey
*r
)
997 ndr_print_struct(ndr
, name
, "PNP_DeleteClassKey");
999 if (flags
& NDR_SET_VALUES
) {
1000 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1002 if (flags
& NDR_IN
) {
1003 ndr_print_struct(ndr
, "in", "PNP_DeleteClassKey");
1007 if (flags
& NDR_OUT
) {
1008 ndr_print_struct(ndr
, "out", "PNP_DeleteClassKey");
1010 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1016 static enum ndr_err_code
ndr_push_PNP_GetInterfaceDeviceAlias(struct ndr_push
*ndr
, int flags
, const struct PNP_GetInterfaceDeviceAlias
*r
)
1018 if (flags
& NDR_IN
) {
1020 if (flags
& NDR_OUT
) {
1021 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1023 return NDR_ERR_SUCCESS
;
1026 static enum ndr_err_code
ndr_pull_PNP_GetInterfaceDeviceAlias(struct ndr_pull
*ndr
, int flags
, struct PNP_GetInterfaceDeviceAlias
*r
)
1028 if (flags
& NDR_IN
) {
1030 if (flags
& NDR_OUT
) {
1031 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1033 return NDR_ERR_SUCCESS
;
1036 _PUBLIC_
void ndr_print_PNP_GetInterfaceDeviceAlias(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetInterfaceDeviceAlias
*r
)
1038 ndr_print_struct(ndr
, name
, "PNP_GetInterfaceDeviceAlias");
1040 if (flags
& NDR_SET_VALUES
) {
1041 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1043 if (flags
& NDR_IN
) {
1044 ndr_print_struct(ndr
, "in", "PNP_GetInterfaceDeviceAlias");
1048 if (flags
& NDR_OUT
) {
1049 ndr_print_struct(ndr
, "out", "PNP_GetInterfaceDeviceAlias");
1051 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1057 static enum ndr_err_code
ndr_push_PNP_GetInterfaceDeviceList(struct ndr_push
*ndr
, int flags
, const struct PNP_GetInterfaceDeviceList
*r
)
1059 if (flags
& NDR_IN
) {
1061 if (flags
& NDR_OUT
) {
1062 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1064 return NDR_ERR_SUCCESS
;
1067 static enum ndr_err_code
ndr_pull_PNP_GetInterfaceDeviceList(struct ndr_pull
*ndr
, int flags
, struct PNP_GetInterfaceDeviceList
*r
)
1069 if (flags
& NDR_IN
) {
1071 if (flags
& NDR_OUT
) {
1072 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1074 return NDR_ERR_SUCCESS
;
1077 _PUBLIC_
void ndr_print_PNP_GetInterfaceDeviceList(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetInterfaceDeviceList
*r
)
1079 ndr_print_struct(ndr
, name
, "PNP_GetInterfaceDeviceList");
1081 if (flags
& NDR_SET_VALUES
) {
1082 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1084 if (flags
& NDR_IN
) {
1085 ndr_print_struct(ndr
, "in", "PNP_GetInterfaceDeviceList");
1089 if (flags
& NDR_OUT
) {
1090 ndr_print_struct(ndr
, "out", "PNP_GetInterfaceDeviceList");
1092 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1098 static enum ndr_err_code
ndr_push_PNP_GetInterfaceDeviceListSize(struct ndr_push
*ndr
, int flags
, const struct PNP_GetInterfaceDeviceListSize
*r
)
1100 if (flags
& NDR_IN
) {
1102 if (flags
& NDR_OUT
) {
1103 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1105 return NDR_ERR_SUCCESS
;
1108 static enum ndr_err_code
ndr_pull_PNP_GetInterfaceDeviceListSize(struct ndr_pull
*ndr
, int flags
, struct PNP_GetInterfaceDeviceListSize
*r
)
1110 if (flags
& NDR_IN
) {
1112 if (flags
& NDR_OUT
) {
1113 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1115 return NDR_ERR_SUCCESS
;
1118 _PUBLIC_
void ndr_print_PNP_GetInterfaceDeviceListSize(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetInterfaceDeviceListSize
*r
)
1120 ndr_print_struct(ndr
, name
, "PNP_GetInterfaceDeviceListSize");
1122 if (flags
& NDR_SET_VALUES
) {
1123 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1125 if (flags
& NDR_IN
) {
1126 ndr_print_struct(ndr
, "in", "PNP_GetInterfaceDeviceListSize");
1130 if (flags
& NDR_OUT
) {
1131 ndr_print_struct(ndr
, "out", "PNP_GetInterfaceDeviceListSize");
1133 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1139 static enum ndr_err_code
ndr_push_PNP_RegisterDeviceClassAssociation(struct ndr_push
*ndr
, int flags
, const struct PNP_RegisterDeviceClassAssociation
*r
)
1141 if (flags
& NDR_IN
) {
1143 if (flags
& NDR_OUT
) {
1144 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1146 return NDR_ERR_SUCCESS
;
1149 static enum ndr_err_code
ndr_pull_PNP_RegisterDeviceClassAssociation(struct ndr_pull
*ndr
, int flags
, struct PNP_RegisterDeviceClassAssociation
*r
)
1151 if (flags
& NDR_IN
) {
1153 if (flags
& NDR_OUT
) {
1154 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1156 return NDR_ERR_SUCCESS
;
1159 _PUBLIC_
void ndr_print_PNP_RegisterDeviceClassAssociation(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_RegisterDeviceClassAssociation
*r
)
1161 ndr_print_struct(ndr
, name
, "PNP_RegisterDeviceClassAssociation");
1163 if (flags
& NDR_SET_VALUES
) {
1164 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1166 if (flags
& NDR_IN
) {
1167 ndr_print_struct(ndr
, "in", "PNP_RegisterDeviceClassAssociation");
1171 if (flags
& NDR_OUT
) {
1172 ndr_print_struct(ndr
, "out", "PNP_RegisterDeviceClassAssociation");
1174 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1180 static enum ndr_err_code
ndr_push_PNP_UnregisterDeviceClassAssociation(struct ndr_push
*ndr
, int flags
, const struct PNP_UnregisterDeviceClassAssociation
*r
)
1182 if (flags
& NDR_IN
) {
1184 if (flags
& NDR_OUT
) {
1185 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1187 return NDR_ERR_SUCCESS
;
1190 static enum ndr_err_code
ndr_pull_PNP_UnregisterDeviceClassAssociation(struct ndr_pull
*ndr
, int flags
, struct PNP_UnregisterDeviceClassAssociation
*r
)
1192 if (flags
& NDR_IN
) {
1194 if (flags
& NDR_OUT
) {
1195 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1197 return NDR_ERR_SUCCESS
;
1200 _PUBLIC_
void ndr_print_PNP_UnregisterDeviceClassAssociation(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_UnregisterDeviceClassAssociation
*r
)
1202 ndr_print_struct(ndr
, name
, "PNP_UnregisterDeviceClassAssociation");
1204 if (flags
& NDR_SET_VALUES
) {
1205 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1207 if (flags
& NDR_IN
) {
1208 ndr_print_struct(ndr
, "in", "PNP_UnregisterDeviceClassAssociation");
1212 if (flags
& NDR_OUT
) {
1213 ndr_print_struct(ndr
, "out", "PNP_UnregisterDeviceClassAssociation");
1215 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1221 static enum ndr_err_code
ndr_push_PNP_GetClassRegProp(struct ndr_push
*ndr
, int flags
, const struct PNP_GetClassRegProp
*r
)
1223 if (flags
& NDR_IN
) {
1225 if (flags
& NDR_OUT
) {
1226 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1228 return NDR_ERR_SUCCESS
;
1231 static enum ndr_err_code
ndr_pull_PNP_GetClassRegProp(struct ndr_pull
*ndr
, int flags
, struct PNP_GetClassRegProp
*r
)
1233 if (flags
& NDR_IN
) {
1235 if (flags
& NDR_OUT
) {
1236 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1238 return NDR_ERR_SUCCESS
;
1241 _PUBLIC_
void ndr_print_PNP_GetClassRegProp(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetClassRegProp
*r
)
1243 ndr_print_struct(ndr
, name
, "PNP_GetClassRegProp");
1245 if (flags
& NDR_SET_VALUES
) {
1246 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1248 if (flags
& NDR_IN
) {
1249 ndr_print_struct(ndr
, "in", "PNP_GetClassRegProp");
1253 if (flags
& NDR_OUT
) {
1254 ndr_print_struct(ndr
, "out", "PNP_GetClassRegProp");
1256 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1262 static enum ndr_err_code
ndr_push_PNP_SetClassRegProp(struct ndr_push
*ndr
, int flags
, const struct PNP_SetClassRegProp
*r
)
1264 if (flags
& NDR_IN
) {
1266 if (flags
& NDR_OUT
) {
1267 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1269 return NDR_ERR_SUCCESS
;
1272 static enum ndr_err_code
ndr_pull_PNP_SetClassRegProp(struct ndr_pull
*ndr
, int flags
, struct PNP_SetClassRegProp
*r
)
1274 if (flags
& NDR_IN
) {
1276 if (flags
& NDR_OUT
) {
1277 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1279 return NDR_ERR_SUCCESS
;
1282 _PUBLIC_
void ndr_print_PNP_SetClassRegProp(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_SetClassRegProp
*r
)
1284 ndr_print_struct(ndr
, name
, "PNP_SetClassRegProp");
1286 if (flags
& NDR_SET_VALUES
) {
1287 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1289 if (flags
& NDR_IN
) {
1290 ndr_print_struct(ndr
, "in", "PNP_SetClassRegProp");
1294 if (flags
& NDR_OUT
) {
1295 ndr_print_struct(ndr
, "out", "PNP_SetClassRegProp");
1297 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1303 static enum ndr_err_code
ndr_push_PNP_CreateDevInst(struct ndr_push
*ndr
, int flags
, const struct PNP_CreateDevInst
*r
)
1305 if (flags
& NDR_IN
) {
1307 if (flags
& NDR_OUT
) {
1308 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1310 return NDR_ERR_SUCCESS
;
1313 static enum ndr_err_code
ndr_pull_PNP_CreateDevInst(struct ndr_pull
*ndr
, int flags
, struct PNP_CreateDevInst
*r
)
1315 if (flags
& NDR_IN
) {
1317 if (flags
& NDR_OUT
) {
1318 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1320 return NDR_ERR_SUCCESS
;
1323 _PUBLIC_
void ndr_print_PNP_CreateDevInst(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_CreateDevInst
*r
)
1325 ndr_print_struct(ndr
, name
, "PNP_CreateDevInst");
1327 if (flags
& NDR_SET_VALUES
) {
1328 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1330 if (flags
& NDR_IN
) {
1331 ndr_print_struct(ndr
, "in", "PNP_CreateDevInst");
1335 if (flags
& NDR_OUT
) {
1336 ndr_print_struct(ndr
, "out", "PNP_CreateDevInst");
1338 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1344 static enum ndr_err_code
ndr_push_PNP_DeviceInstanceAction(struct ndr_push
*ndr
, int flags
, const struct PNP_DeviceInstanceAction
*r
)
1346 if (flags
& NDR_IN
) {
1348 if (flags
& NDR_OUT
) {
1349 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1351 return NDR_ERR_SUCCESS
;
1354 static enum ndr_err_code
ndr_pull_PNP_DeviceInstanceAction(struct ndr_pull
*ndr
, int flags
, struct PNP_DeviceInstanceAction
*r
)
1356 if (flags
& NDR_IN
) {
1358 if (flags
& NDR_OUT
) {
1359 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1361 return NDR_ERR_SUCCESS
;
1364 _PUBLIC_
void ndr_print_PNP_DeviceInstanceAction(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_DeviceInstanceAction
*r
)
1366 ndr_print_struct(ndr
, name
, "PNP_DeviceInstanceAction");
1368 if (flags
& NDR_SET_VALUES
) {
1369 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1371 if (flags
& NDR_IN
) {
1372 ndr_print_struct(ndr
, "in", "PNP_DeviceInstanceAction");
1376 if (flags
& NDR_OUT
) {
1377 ndr_print_struct(ndr
, "out", "PNP_DeviceInstanceAction");
1379 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1385 static enum ndr_err_code
ndr_push_PNP_GetDeviceStatus(struct ndr_push
*ndr
, int flags
, const struct PNP_GetDeviceStatus
*r
)
1387 if (flags
& NDR_IN
) {
1389 if (flags
& NDR_OUT
) {
1390 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1392 return NDR_ERR_SUCCESS
;
1395 static enum ndr_err_code
ndr_pull_PNP_GetDeviceStatus(struct ndr_pull
*ndr
, int flags
, struct PNP_GetDeviceStatus
*r
)
1397 if (flags
& NDR_IN
) {
1399 if (flags
& NDR_OUT
) {
1400 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1402 return NDR_ERR_SUCCESS
;
1405 _PUBLIC_
void ndr_print_PNP_GetDeviceStatus(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetDeviceStatus
*r
)
1407 ndr_print_struct(ndr
, name
, "PNP_GetDeviceStatus");
1409 if (flags
& NDR_SET_VALUES
) {
1410 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1412 if (flags
& NDR_IN
) {
1413 ndr_print_struct(ndr
, "in", "PNP_GetDeviceStatus");
1417 if (flags
& NDR_OUT
) {
1418 ndr_print_struct(ndr
, "out", "PNP_GetDeviceStatus");
1420 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1426 static enum ndr_err_code
ndr_push_PNP_SetDeviceProblem(struct ndr_push
*ndr
, int flags
, const struct PNP_SetDeviceProblem
*r
)
1428 if (flags
& NDR_IN
) {
1430 if (flags
& NDR_OUT
) {
1431 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1433 return NDR_ERR_SUCCESS
;
1436 static enum ndr_err_code
ndr_pull_PNP_SetDeviceProblem(struct ndr_pull
*ndr
, int flags
, struct PNP_SetDeviceProblem
*r
)
1438 if (flags
& NDR_IN
) {
1440 if (flags
& NDR_OUT
) {
1441 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1443 return NDR_ERR_SUCCESS
;
1446 _PUBLIC_
void ndr_print_PNP_SetDeviceProblem(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_SetDeviceProblem
*r
)
1448 ndr_print_struct(ndr
, name
, "PNP_SetDeviceProblem");
1450 if (flags
& NDR_SET_VALUES
) {
1451 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1453 if (flags
& NDR_IN
) {
1454 ndr_print_struct(ndr
, "in", "PNP_SetDeviceProblem");
1458 if (flags
& NDR_OUT
) {
1459 ndr_print_struct(ndr
, "out", "PNP_SetDeviceProblem");
1461 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1467 static enum ndr_err_code
ndr_push_PNP_DisableDevInst(struct ndr_push
*ndr
, int flags
, const struct PNP_DisableDevInst
*r
)
1469 if (flags
& NDR_IN
) {
1471 if (flags
& NDR_OUT
) {
1472 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1474 return NDR_ERR_SUCCESS
;
1477 static enum ndr_err_code
ndr_pull_PNP_DisableDevInst(struct ndr_pull
*ndr
, int flags
, struct PNP_DisableDevInst
*r
)
1479 if (flags
& NDR_IN
) {
1481 if (flags
& NDR_OUT
) {
1482 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1484 return NDR_ERR_SUCCESS
;
1487 _PUBLIC_
void ndr_print_PNP_DisableDevInst(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_DisableDevInst
*r
)
1489 ndr_print_struct(ndr
, name
, "PNP_DisableDevInst");
1491 if (flags
& NDR_SET_VALUES
) {
1492 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1494 if (flags
& NDR_IN
) {
1495 ndr_print_struct(ndr
, "in", "PNP_DisableDevInst");
1499 if (flags
& NDR_OUT
) {
1500 ndr_print_struct(ndr
, "out", "PNP_DisableDevInst");
1502 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1508 static enum ndr_err_code
ndr_push_PNP_UninstallDevInst(struct ndr_push
*ndr
, int flags
, const struct PNP_UninstallDevInst
*r
)
1510 if (flags
& NDR_IN
) {
1512 if (flags
& NDR_OUT
) {
1513 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1515 return NDR_ERR_SUCCESS
;
1518 static enum ndr_err_code
ndr_pull_PNP_UninstallDevInst(struct ndr_pull
*ndr
, int flags
, struct PNP_UninstallDevInst
*r
)
1520 if (flags
& NDR_IN
) {
1522 if (flags
& NDR_OUT
) {
1523 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1525 return NDR_ERR_SUCCESS
;
1528 _PUBLIC_
void ndr_print_PNP_UninstallDevInst(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_UninstallDevInst
*r
)
1530 ndr_print_struct(ndr
, name
, "PNP_UninstallDevInst");
1532 if (flags
& NDR_SET_VALUES
) {
1533 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1535 if (flags
& NDR_IN
) {
1536 ndr_print_struct(ndr
, "in", "PNP_UninstallDevInst");
1540 if (flags
& NDR_OUT
) {
1541 ndr_print_struct(ndr
, "out", "PNP_UninstallDevInst");
1543 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1549 static enum ndr_err_code
ndr_push_PNP_AddID(struct ndr_push
*ndr
, int flags
, const struct PNP_AddID
*r
)
1551 if (flags
& NDR_IN
) {
1553 if (flags
& NDR_OUT
) {
1554 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1556 return NDR_ERR_SUCCESS
;
1559 static enum ndr_err_code
ndr_pull_PNP_AddID(struct ndr_pull
*ndr
, int flags
, struct PNP_AddID
*r
)
1561 if (flags
& NDR_IN
) {
1563 if (flags
& NDR_OUT
) {
1564 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1566 return NDR_ERR_SUCCESS
;
1569 _PUBLIC_
void ndr_print_PNP_AddID(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_AddID
*r
)
1571 ndr_print_struct(ndr
, name
, "PNP_AddID");
1573 if (flags
& NDR_SET_VALUES
) {
1574 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1576 if (flags
& NDR_IN
) {
1577 ndr_print_struct(ndr
, "in", "PNP_AddID");
1581 if (flags
& NDR_OUT
) {
1582 ndr_print_struct(ndr
, "out", "PNP_AddID");
1584 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1590 static enum ndr_err_code
ndr_push_PNP_RegisterDriver(struct ndr_push
*ndr
, int flags
, const struct PNP_RegisterDriver
*r
)
1592 if (flags
& NDR_IN
) {
1594 if (flags
& NDR_OUT
) {
1595 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1597 return NDR_ERR_SUCCESS
;
1600 static enum ndr_err_code
ndr_pull_PNP_RegisterDriver(struct ndr_pull
*ndr
, int flags
, struct PNP_RegisterDriver
*r
)
1602 if (flags
& NDR_IN
) {
1604 if (flags
& NDR_OUT
) {
1605 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1607 return NDR_ERR_SUCCESS
;
1610 _PUBLIC_
void ndr_print_PNP_RegisterDriver(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_RegisterDriver
*r
)
1612 ndr_print_struct(ndr
, name
, "PNP_RegisterDriver");
1614 if (flags
& NDR_SET_VALUES
) {
1615 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1617 if (flags
& NDR_IN
) {
1618 ndr_print_struct(ndr
, "in", "PNP_RegisterDriver");
1622 if (flags
& NDR_OUT
) {
1623 ndr_print_struct(ndr
, "out", "PNP_RegisterDriver");
1625 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1631 static enum ndr_err_code
ndr_push_PNP_QueryRemove(struct ndr_push
*ndr
, int flags
, const struct PNP_QueryRemove
*r
)
1633 if (flags
& NDR_IN
) {
1635 if (flags
& NDR_OUT
) {
1636 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1638 return NDR_ERR_SUCCESS
;
1641 static enum ndr_err_code
ndr_pull_PNP_QueryRemove(struct ndr_pull
*ndr
, int flags
, struct PNP_QueryRemove
*r
)
1643 if (flags
& NDR_IN
) {
1645 if (flags
& NDR_OUT
) {
1646 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1648 return NDR_ERR_SUCCESS
;
1651 _PUBLIC_
void ndr_print_PNP_QueryRemove(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_QueryRemove
*r
)
1653 ndr_print_struct(ndr
, name
, "PNP_QueryRemove");
1655 if (flags
& NDR_SET_VALUES
) {
1656 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1658 if (flags
& NDR_IN
) {
1659 ndr_print_struct(ndr
, "in", "PNP_QueryRemove");
1663 if (flags
& NDR_OUT
) {
1664 ndr_print_struct(ndr
, "out", "PNP_QueryRemove");
1666 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1672 static enum ndr_err_code
ndr_push_PNP_RequestDeviceEject(struct ndr_push
*ndr
, int flags
, const struct PNP_RequestDeviceEject
*r
)
1674 if (flags
& NDR_IN
) {
1676 if (flags
& NDR_OUT
) {
1677 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1679 return NDR_ERR_SUCCESS
;
1682 static enum ndr_err_code
ndr_pull_PNP_RequestDeviceEject(struct ndr_pull
*ndr
, int flags
, struct PNP_RequestDeviceEject
*r
)
1684 if (flags
& NDR_IN
) {
1686 if (flags
& NDR_OUT
) {
1687 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1689 return NDR_ERR_SUCCESS
;
1692 _PUBLIC_
void ndr_print_PNP_RequestDeviceEject(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_RequestDeviceEject
*r
)
1694 ndr_print_struct(ndr
, name
, "PNP_RequestDeviceEject");
1696 if (flags
& NDR_SET_VALUES
) {
1697 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1699 if (flags
& NDR_IN
) {
1700 ndr_print_struct(ndr
, "in", "PNP_RequestDeviceEject");
1704 if (flags
& NDR_OUT
) {
1705 ndr_print_struct(ndr
, "out", "PNP_RequestDeviceEject");
1707 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1713 static enum ndr_err_code
ndr_push_PNP_IsDockStationPresent(struct ndr_push
*ndr
, int flags
, const struct PNP_IsDockStationPresent
*r
)
1715 if (flags
& NDR_IN
) {
1717 if (flags
& NDR_OUT
) {
1718 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1720 return NDR_ERR_SUCCESS
;
1723 static enum ndr_err_code
ndr_pull_PNP_IsDockStationPresent(struct ndr_pull
*ndr
, int flags
, struct PNP_IsDockStationPresent
*r
)
1725 if (flags
& NDR_IN
) {
1727 if (flags
& NDR_OUT
) {
1728 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1730 return NDR_ERR_SUCCESS
;
1733 _PUBLIC_
void ndr_print_PNP_IsDockStationPresent(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_IsDockStationPresent
*r
)
1735 ndr_print_struct(ndr
, name
, "PNP_IsDockStationPresent");
1737 if (flags
& NDR_SET_VALUES
) {
1738 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1740 if (flags
& NDR_IN
) {
1741 ndr_print_struct(ndr
, "in", "PNP_IsDockStationPresent");
1745 if (flags
& NDR_OUT
) {
1746 ndr_print_struct(ndr
, "out", "PNP_IsDockStationPresent");
1748 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1754 static enum ndr_err_code
ndr_push_PNP_RequestEjectPC(struct ndr_push
*ndr
, int flags
, const struct PNP_RequestEjectPC
*r
)
1756 if (flags
& NDR_IN
) {
1758 if (flags
& NDR_OUT
) {
1759 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1761 return NDR_ERR_SUCCESS
;
1764 static enum ndr_err_code
ndr_pull_PNP_RequestEjectPC(struct ndr_pull
*ndr
, int flags
, struct PNP_RequestEjectPC
*r
)
1766 if (flags
& NDR_IN
) {
1768 if (flags
& NDR_OUT
) {
1769 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1771 return NDR_ERR_SUCCESS
;
1774 _PUBLIC_
void ndr_print_PNP_RequestEjectPC(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_RequestEjectPC
*r
)
1776 ndr_print_struct(ndr
, name
, "PNP_RequestEjectPC");
1778 if (flags
& NDR_SET_VALUES
) {
1779 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1781 if (flags
& NDR_IN
) {
1782 ndr_print_struct(ndr
, "in", "PNP_RequestEjectPC");
1786 if (flags
& NDR_OUT
) {
1787 ndr_print_struct(ndr
, "out", "PNP_RequestEjectPC");
1789 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1795 static enum ndr_err_code
ndr_push_PNP_HwProfFlags(struct ndr_push
*ndr
, int flags
, const struct PNP_HwProfFlags
*r
)
1797 if (flags
& NDR_IN
) {
1798 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, r
->in
.unknown1
));
1799 if (r
->in
.devicepath
== NULL
) {
1800 return ndr_push_error(ndr
, NDR_ERR_INVALID_POINTER
, "NULL [ref] pointer");
1802 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, ndr_charset_length(r
->in
.devicepath
, CH_UTF16
)));
1803 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, 0));
1804 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, ndr_charset_length(r
->in
.devicepath
, CH_UTF16
)));
1805 NDR_CHECK(ndr_push_charset(ndr
, NDR_SCALARS
, r
->in
.devicepath
, ndr_charset_length(r
->in
.devicepath
, CH_UTF16
), sizeof(uint16_t), CH_UTF16
));
1806 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, r
->in
.unknown2
));
1807 if (r
->in
.unknown3
== NULL
) {
1808 return ndr_push_error(ndr
, NDR_ERR_INVALID_POINTER
, "NULL [ref] pointer");
1810 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, *r
->in
.unknown3
));
1811 NDR_CHECK(ndr_push_unique_ptr(ndr
, r
->in
.unknown4
));
1812 if (r
->in
.unknown4
) {
1813 NDR_CHECK(ndr_push_uint16(ndr
, NDR_SCALARS
, *r
->in
.unknown4
));
1815 NDR_CHECK(ndr_push_unique_ptr(ndr
, r
->in
.unknown5
));
1816 if (r
->in
.unknown5
) {
1817 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, ndr_charset_length(r
->in
.unknown5
, CH_UTF16
)));
1818 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, 0));
1819 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, ndr_charset_length(r
->in
.unknown5
, CH_UTF16
)));
1820 NDR_CHECK(ndr_push_charset(ndr
, NDR_SCALARS
, r
->in
.unknown5
, ndr_charset_length(r
->in
.unknown5
, CH_UTF16
), sizeof(uint16_t), CH_UTF16
));
1822 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, r
->in
.unknown6
));
1823 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, r
->in
.unknown7
));
1825 if (flags
& NDR_OUT
) {
1826 if (r
->out
.unknown3
== NULL
) {
1827 return ndr_push_error(ndr
, NDR_ERR_INVALID_POINTER
, "NULL [ref] pointer");
1829 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, *r
->out
.unknown3
));
1830 NDR_CHECK(ndr_push_unique_ptr(ndr
, r
->out
.unknown4
));
1831 if (r
->out
.unknown4
) {
1832 NDR_CHECK(ndr_push_uint16(ndr
, NDR_SCALARS
, *r
->out
.unknown4
));
1834 NDR_CHECK(ndr_push_unique_ptr(ndr
, r
->out
.unknown5a
));
1835 if (r
->out
.unknown5a
) {
1836 NDR_CHECK(ndr_push_unique_ptr(ndr
, *r
->out
.unknown5a
));
1837 if (*r
->out
.unknown5a
) {
1838 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, ndr_charset_length(*r
->out
.unknown5a
, CH_UTF16
)));
1839 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, 0));
1840 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, ndr_charset_length(*r
->out
.unknown5a
, CH_UTF16
)));
1841 NDR_CHECK(ndr_push_charset(ndr
, NDR_SCALARS
, *r
->out
.unknown5a
, ndr_charset_length(*r
->out
.unknown5a
, CH_UTF16
), sizeof(uint16_t), CH_UTF16
));
1844 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1846 return NDR_ERR_SUCCESS
;
1849 static enum ndr_err_code
ndr_pull_PNP_HwProfFlags(struct ndr_pull
*ndr
, int flags
, struct PNP_HwProfFlags
*r
)
1851 uint32_t _ptr_unknown4
;
1852 uint32_t _ptr_unknown5
;
1853 uint32_t _ptr_unknown5a
;
1854 TALLOC_CTX
*_mem_save_unknown3_0
;
1855 TALLOC_CTX
*_mem_save_unknown4_0
;
1856 TALLOC_CTX
*_mem_save_unknown5_0
;
1857 TALLOC_CTX
*_mem_save_unknown5a_0
;
1858 TALLOC_CTX
*_mem_save_unknown5a_1
;
1859 if (flags
& NDR_IN
) {
1860 ZERO_STRUCT(r
->out
);
1862 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, &r
->in
.unknown1
));
1863 NDR_CHECK(ndr_pull_array_size(ndr
, &r
->in
.devicepath
));
1864 NDR_CHECK(ndr_pull_array_length(ndr
, &r
->in
.devicepath
));
1865 if (ndr_get_array_length(ndr
, &r
->in
.devicepath
) > ndr_get_array_size(ndr
, &r
->in
.devicepath
)) {
1866 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
));
1868 NDR_CHECK(ndr_check_string_terminator(ndr
, ndr_get_array_length(ndr
, &r
->in
.devicepath
), sizeof(uint16_t)));
1869 NDR_CHECK(ndr_pull_charset(ndr
, NDR_SCALARS
, &r
->in
.devicepath
, ndr_get_array_length(ndr
, &r
->in
.devicepath
), sizeof(uint16_t), CH_UTF16
));
1870 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, &r
->in
.unknown2
));
1871 if (ndr
->flags
& LIBNDR_FLAG_REF_ALLOC
) {
1872 NDR_PULL_ALLOC(ndr
, r
->in
.unknown3
);
1874 _mem_save_unknown3_0
= NDR_PULL_GET_MEM_CTX(ndr
);
1875 NDR_PULL_SET_MEM_CTX(ndr
, r
->in
.unknown3
, LIBNDR_FLAG_REF_ALLOC
);
1876 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, r
->in
.unknown3
));
1877 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_unknown3_0
, LIBNDR_FLAG_REF_ALLOC
);
1878 NDR_CHECK(ndr_pull_generic_ptr(ndr
, &_ptr_unknown4
));
1879 if (_ptr_unknown4
) {
1880 NDR_PULL_ALLOC(ndr
, r
->in
.unknown4
);
1882 r
->in
.unknown4
= NULL
;
1884 if (r
->in
.unknown4
) {
1885 _mem_save_unknown4_0
= NDR_PULL_GET_MEM_CTX(ndr
);
1886 NDR_PULL_SET_MEM_CTX(ndr
, r
->in
.unknown4
, 0);
1887 NDR_CHECK(ndr_pull_uint16(ndr
, NDR_SCALARS
, r
->in
.unknown4
));
1888 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_unknown4_0
, 0);
1890 NDR_CHECK(ndr_pull_generic_ptr(ndr
, &_ptr_unknown5
));
1891 if (_ptr_unknown5
) {
1892 NDR_PULL_ALLOC(ndr
, r
->in
.unknown5
);
1894 r
->in
.unknown5
= NULL
;
1896 if (r
->in
.unknown5
) {
1897 _mem_save_unknown5_0
= NDR_PULL_GET_MEM_CTX(ndr
);
1898 NDR_PULL_SET_MEM_CTX(ndr
, r
->in
.unknown5
, 0);
1899 NDR_CHECK(ndr_pull_array_size(ndr
, &r
->in
.unknown5
));
1900 NDR_CHECK(ndr_pull_array_length(ndr
, &r
->in
.unknown5
));
1901 if (ndr_get_array_length(ndr
, &r
->in
.unknown5
) > ndr_get_array_size(ndr
, &r
->in
.unknown5
)) {
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
->in
.unknown5
), ndr_get_array_length(ndr
, &r
->in
.unknown5
));
1904 NDR_CHECK(ndr_check_string_terminator(ndr
, ndr_get_array_length(ndr
, &r
->in
.unknown5
), sizeof(uint16_t)));
1905 NDR_CHECK(ndr_pull_charset(ndr
, NDR_SCALARS
, &r
->in
.unknown5
, ndr_get_array_length(ndr
, &r
->in
.unknown5
), sizeof(uint16_t), CH_UTF16
));
1906 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_unknown5_0
, 0);
1908 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, &r
->in
.unknown6
));
1909 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, &r
->in
.unknown7
));
1910 NDR_PULL_ALLOC(ndr
, r
->out
.unknown3
);
1911 *r
->out
.unknown3
= *r
->in
.unknown3
;
1913 if (flags
& NDR_OUT
) {
1914 if (ndr
->flags
& LIBNDR_FLAG_REF_ALLOC
) {
1915 NDR_PULL_ALLOC(ndr
, r
->out
.unknown3
);
1917 _mem_save_unknown3_0
= NDR_PULL_GET_MEM_CTX(ndr
);
1918 NDR_PULL_SET_MEM_CTX(ndr
, r
->out
.unknown3
, LIBNDR_FLAG_REF_ALLOC
);
1919 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, r
->out
.unknown3
));
1920 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_unknown3_0
, LIBNDR_FLAG_REF_ALLOC
);
1921 NDR_CHECK(ndr_pull_generic_ptr(ndr
, &_ptr_unknown4
));
1922 if (_ptr_unknown4
) {
1923 NDR_PULL_ALLOC(ndr
, r
->out
.unknown4
);
1925 r
->out
.unknown4
= NULL
;
1927 if (r
->out
.unknown4
) {
1928 _mem_save_unknown4_0
= NDR_PULL_GET_MEM_CTX(ndr
);
1929 NDR_PULL_SET_MEM_CTX(ndr
, r
->out
.unknown4
, 0);
1930 NDR_CHECK(ndr_pull_uint16(ndr
, NDR_SCALARS
, r
->out
.unknown4
));
1931 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_unknown4_0
, 0);
1933 NDR_CHECK(ndr_pull_generic_ptr(ndr
, &_ptr_unknown5a
));
1934 if (_ptr_unknown5a
) {
1935 NDR_PULL_ALLOC(ndr
, r
->out
.unknown5a
);
1937 r
->out
.unknown5a
= NULL
;
1939 if (r
->out
.unknown5a
) {
1940 _mem_save_unknown5a_0
= NDR_PULL_GET_MEM_CTX(ndr
);
1941 NDR_PULL_SET_MEM_CTX(ndr
, r
->out
.unknown5a
, 0);
1942 NDR_CHECK(ndr_pull_generic_ptr(ndr
, &_ptr_unknown5a
));
1943 if (_ptr_unknown5a
) {
1944 NDR_PULL_ALLOC(ndr
, *r
->out
.unknown5a
);
1946 *r
->out
.unknown5a
= NULL
;
1948 if (*r
->out
.unknown5a
) {
1949 _mem_save_unknown5a_1
= NDR_PULL_GET_MEM_CTX(ndr
);
1950 NDR_PULL_SET_MEM_CTX(ndr
, *r
->out
.unknown5a
, 0);
1951 NDR_CHECK(ndr_pull_array_size(ndr
, r
->out
.unknown5a
));
1952 NDR_CHECK(ndr_pull_array_length(ndr
, r
->out
.unknown5a
));
1953 if (ndr_get_array_length(ndr
, r
->out
.unknown5a
) > ndr_get_array_size(ndr
, r
->out
.unknown5a
)) {
1954 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
));
1956 NDR_CHECK(ndr_check_string_terminator(ndr
, ndr_get_array_length(ndr
, r
->out
.unknown5a
), sizeof(uint16_t)));
1957 NDR_CHECK(ndr_pull_charset(ndr
, NDR_SCALARS
, r
->out
.unknown5a
, ndr_get_array_length(ndr
, r
->out
.unknown5a
), sizeof(uint16_t), CH_UTF16
));
1958 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_unknown5a_1
, 0);
1960 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_unknown5a_0
, 0);
1962 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1964 return NDR_ERR_SUCCESS
;
1967 _PUBLIC_
void ndr_print_PNP_HwProfFlags(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_HwProfFlags
*r
)
1969 ndr_print_struct(ndr
, name
, "PNP_HwProfFlags");
1971 if (flags
& NDR_SET_VALUES
) {
1972 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1974 if (flags
& NDR_IN
) {
1975 ndr_print_struct(ndr
, "in", "PNP_HwProfFlags");
1977 ndr_print_uint32(ndr
, "unknown1", r
->in
.unknown1
);
1978 ndr_print_ptr(ndr
, "devicepath", r
->in
.devicepath
);
1980 ndr_print_string(ndr
, "devicepath", r
->in
.devicepath
);
1982 ndr_print_uint32(ndr
, "unknown2", r
->in
.unknown2
);
1983 ndr_print_ptr(ndr
, "unknown3", r
->in
.unknown3
);
1985 ndr_print_uint32(ndr
, "unknown3", *r
->in
.unknown3
);
1987 ndr_print_ptr(ndr
, "unknown4", r
->in
.unknown4
);
1989 if (r
->in
.unknown4
) {
1990 ndr_print_uint16(ndr
, "unknown4", *r
->in
.unknown4
);
1993 ndr_print_ptr(ndr
, "unknown5", r
->in
.unknown5
);
1995 if (r
->in
.unknown5
) {
1996 ndr_print_string(ndr
, "unknown5", r
->in
.unknown5
);
1999 ndr_print_uint32(ndr
, "unknown6", r
->in
.unknown6
);
2000 ndr_print_uint32(ndr
, "unknown7", r
->in
.unknown7
);
2003 if (flags
& NDR_OUT
) {
2004 ndr_print_struct(ndr
, "out", "PNP_HwProfFlags");
2006 ndr_print_ptr(ndr
, "unknown3", r
->out
.unknown3
);
2008 ndr_print_uint32(ndr
, "unknown3", *r
->out
.unknown3
);
2010 ndr_print_ptr(ndr
, "unknown4", r
->out
.unknown4
);
2012 if (r
->out
.unknown4
) {
2013 ndr_print_uint16(ndr
, "unknown4", *r
->out
.unknown4
);
2016 ndr_print_ptr(ndr
, "unknown5a", r
->out
.unknown5a
);
2018 if (r
->out
.unknown5a
) {
2019 ndr_print_ptr(ndr
, "unknown5a", *r
->out
.unknown5a
);
2021 if (*r
->out
.unknown5a
) {
2022 ndr_print_string(ndr
, "unknown5a", *r
->out
.unknown5a
);
2027 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
2033 static enum ndr_err_code
ndr_push_PNP_GetHwProfInfo(struct ndr_push
*ndr
, int flags
, const struct PNP_GetHwProfInfo
*r
)
2035 if (flags
& NDR_IN
) {
2036 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, r
->in
.idx
));
2037 if (r
->in
.info
== NULL
) {
2038 return ndr_push_error(ndr
, NDR_ERR_INVALID_POINTER
, "NULL [ref] pointer");
2040 NDR_CHECK(ndr_push_PNP_HwProfInfo(ndr
, NDR_SCALARS
, r
->in
.info
));
2041 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, r
->in
.unknown1
));
2042 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, r
->in
.unknown2
));
2044 if (flags
& NDR_OUT
) {
2045 if (r
->out
.info
== NULL
) {
2046 return ndr_push_error(ndr
, NDR_ERR_INVALID_POINTER
, "NULL [ref] pointer");
2048 NDR_CHECK(ndr_push_PNP_HwProfInfo(ndr
, NDR_SCALARS
, r
->out
.info
));
2049 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
2051 return NDR_ERR_SUCCESS
;
2054 static enum ndr_err_code
ndr_pull_PNP_GetHwProfInfo(struct ndr_pull
*ndr
, int flags
, struct PNP_GetHwProfInfo
*r
)
2056 TALLOC_CTX
*_mem_save_info_0
;
2057 if (flags
& NDR_IN
) {
2058 ZERO_STRUCT(r
->out
);
2060 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, &r
->in
.idx
));
2061 if (ndr
->flags
& LIBNDR_FLAG_REF_ALLOC
) {
2062 NDR_PULL_ALLOC(ndr
, r
->in
.info
);
2064 _mem_save_info_0
= NDR_PULL_GET_MEM_CTX(ndr
);
2065 NDR_PULL_SET_MEM_CTX(ndr
, r
->in
.info
, LIBNDR_FLAG_REF_ALLOC
);
2066 NDR_CHECK(ndr_pull_PNP_HwProfInfo(ndr
, NDR_SCALARS
, r
->in
.info
));
2067 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_info_0
, LIBNDR_FLAG_REF_ALLOC
);
2068 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, &r
->in
.unknown1
));
2069 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, &r
->in
.unknown2
));
2070 NDR_PULL_ALLOC(ndr
, r
->out
.info
);
2071 *r
->out
.info
= *r
->in
.info
;
2073 if (flags
& NDR_OUT
) {
2074 if (ndr
->flags
& LIBNDR_FLAG_REF_ALLOC
) {
2075 NDR_PULL_ALLOC(ndr
, r
->out
.info
);
2077 _mem_save_info_0
= NDR_PULL_GET_MEM_CTX(ndr
);
2078 NDR_PULL_SET_MEM_CTX(ndr
, r
->out
.info
, LIBNDR_FLAG_REF_ALLOC
);
2079 NDR_CHECK(ndr_pull_PNP_HwProfInfo(ndr
, NDR_SCALARS
, r
->out
.info
));
2080 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_info_0
, LIBNDR_FLAG_REF_ALLOC
);
2081 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
2083 return NDR_ERR_SUCCESS
;
2086 _PUBLIC_
void ndr_print_PNP_GetHwProfInfo(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetHwProfInfo
*r
)
2088 ndr_print_struct(ndr
, name
, "PNP_GetHwProfInfo");
2090 if (flags
& NDR_SET_VALUES
) {
2091 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2093 if (flags
& NDR_IN
) {
2094 ndr_print_struct(ndr
, "in", "PNP_GetHwProfInfo");
2096 ndr_print_uint32(ndr
, "idx", r
->in
.idx
);
2097 ndr_print_ptr(ndr
, "info", r
->in
.info
);
2099 ndr_print_PNP_HwProfInfo(ndr
, "info", r
->in
.info
);
2101 ndr_print_uint32(ndr
, "unknown1", r
->in
.unknown1
);
2102 ndr_print_uint32(ndr
, "unknown2", r
->in
.unknown2
);
2105 if (flags
& NDR_OUT
) {
2106 ndr_print_struct(ndr
, "out", "PNP_GetHwProfInfo");
2108 ndr_print_ptr(ndr
, "info", r
->out
.info
);
2110 ndr_print_PNP_HwProfInfo(ndr
, "info", r
->out
.info
);
2112 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
2118 static enum ndr_err_code
ndr_push_PNP_AddEmptyLogConf(struct ndr_push
*ndr
, int flags
, const struct PNP_AddEmptyLogConf
*r
)
2120 if (flags
& NDR_IN
) {
2122 if (flags
& NDR_OUT
) {
2123 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
2125 return NDR_ERR_SUCCESS
;
2128 static enum ndr_err_code
ndr_pull_PNP_AddEmptyLogConf(struct ndr_pull
*ndr
, int flags
, struct PNP_AddEmptyLogConf
*r
)
2130 if (flags
& NDR_IN
) {
2132 if (flags
& NDR_OUT
) {
2133 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
2135 return NDR_ERR_SUCCESS
;
2138 _PUBLIC_
void ndr_print_PNP_AddEmptyLogConf(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_AddEmptyLogConf
*r
)
2140 ndr_print_struct(ndr
, name
, "PNP_AddEmptyLogConf");
2142 if (flags
& NDR_SET_VALUES
) {
2143 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2145 if (flags
& NDR_IN
) {
2146 ndr_print_struct(ndr
, "in", "PNP_AddEmptyLogConf");
2150 if (flags
& NDR_OUT
) {
2151 ndr_print_struct(ndr
, "out", "PNP_AddEmptyLogConf");
2153 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
2159 static enum ndr_err_code
ndr_push_PNP_FreeLogConf(struct ndr_push
*ndr
, int flags
, const struct PNP_FreeLogConf
*r
)
2161 if (flags
& NDR_IN
) {
2163 if (flags
& NDR_OUT
) {
2164 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
2166 return NDR_ERR_SUCCESS
;
2169 static enum ndr_err_code
ndr_pull_PNP_FreeLogConf(struct ndr_pull
*ndr
, int flags
, struct PNP_FreeLogConf
*r
)
2171 if (flags
& NDR_IN
) {
2173 if (flags
& NDR_OUT
) {
2174 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
2176 return NDR_ERR_SUCCESS
;
2179 _PUBLIC_
void ndr_print_PNP_FreeLogConf(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_FreeLogConf
*r
)
2181 ndr_print_struct(ndr
, name
, "PNP_FreeLogConf");
2183 if (flags
& NDR_SET_VALUES
) {
2184 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2186 if (flags
& NDR_IN
) {
2187 ndr_print_struct(ndr
, "in", "PNP_FreeLogConf");
2191 if (flags
& NDR_OUT
) {
2192 ndr_print_struct(ndr
, "out", "PNP_FreeLogConf");
2194 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
2200 static enum ndr_err_code
ndr_push_PNP_GetFirstLogConf(struct ndr_push
*ndr
, int flags
, const struct PNP_GetFirstLogConf
*r
)
2202 if (flags
& NDR_IN
) {
2204 if (flags
& NDR_OUT
) {
2205 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
2207 return NDR_ERR_SUCCESS
;
2210 static enum ndr_err_code
ndr_pull_PNP_GetFirstLogConf(struct ndr_pull
*ndr
, int flags
, struct PNP_GetFirstLogConf
*r
)
2212 if (flags
& NDR_IN
) {
2214 if (flags
& NDR_OUT
) {
2215 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
2217 return NDR_ERR_SUCCESS
;
2220 _PUBLIC_
void ndr_print_PNP_GetFirstLogConf(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetFirstLogConf
*r
)
2222 ndr_print_struct(ndr
, name
, "PNP_GetFirstLogConf");
2224 if (flags
& NDR_SET_VALUES
) {
2225 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2227 if (flags
& NDR_IN
) {
2228 ndr_print_struct(ndr
, "in", "PNP_GetFirstLogConf");
2232 if (flags
& NDR_OUT
) {
2233 ndr_print_struct(ndr
, "out", "PNP_GetFirstLogConf");
2235 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
2241 static enum ndr_err_code
ndr_push_PNP_GetNextLogConf(struct ndr_push
*ndr
, int flags
, const struct PNP_GetNextLogConf
*r
)
2243 if (flags
& NDR_IN
) {
2245 if (flags
& NDR_OUT
) {
2246 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
2248 return NDR_ERR_SUCCESS
;
2251 static enum ndr_err_code
ndr_pull_PNP_GetNextLogConf(struct ndr_pull
*ndr
, int flags
, struct PNP_GetNextLogConf
*r
)
2253 if (flags
& NDR_IN
) {
2255 if (flags
& NDR_OUT
) {
2256 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
2258 return NDR_ERR_SUCCESS
;
2261 _PUBLIC_
void ndr_print_PNP_GetNextLogConf(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetNextLogConf
*r
)
2263 ndr_print_struct(ndr
, name
, "PNP_GetNextLogConf");
2265 if (flags
& NDR_SET_VALUES
) {
2266 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2268 if (flags
& NDR_IN
) {
2269 ndr_print_struct(ndr
, "in", "PNP_GetNextLogConf");
2273 if (flags
& NDR_OUT
) {
2274 ndr_print_struct(ndr
, "out", "PNP_GetNextLogConf");
2276 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
2282 static enum ndr_err_code
ndr_push_PNP_GetLogConfPriority(struct ndr_push
*ndr
, int flags
, const struct PNP_GetLogConfPriority
*r
)
2284 if (flags
& NDR_IN
) {
2286 if (flags
& NDR_OUT
) {
2287 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
2289 return NDR_ERR_SUCCESS
;
2292 static enum ndr_err_code
ndr_pull_PNP_GetLogConfPriority(struct ndr_pull
*ndr
, int flags
, struct PNP_GetLogConfPriority
*r
)
2294 if (flags
& NDR_IN
) {
2296 if (flags
& NDR_OUT
) {
2297 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
2299 return NDR_ERR_SUCCESS
;
2302 _PUBLIC_
void ndr_print_PNP_GetLogConfPriority(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetLogConfPriority
*r
)
2304 ndr_print_struct(ndr
, name
, "PNP_GetLogConfPriority");
2306 if (flags
& NDR_SET_VALUES
) {
2307 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2309 if (flags
& NDR_IN
) {
2310 ndr_print_struct(ndr
, "in", "PNP_GetLogConfPriority");
2314 if (flags
& NDR_OUT
) {
2315 ndr_print_struct(ndr
, "out", "PNP_GetLogConfPriority");
2317 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
2323 static enum ndr_err_code
ndr_push_PNP_AddResDes(struct ndr_push
*ndr
, int flags
, const struct PNP_AddResDes
*r
)
2325 if (flags
& NDR_IN
) {
2327 if (flags
& NDR_OUT
) {
2328 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
2330 return NDR_ERR_SUCCESS
;
2333 static enum ndr_err_code
ndr_pull_PNP_AddResDes(struct ndr_pull
*ndr
, int flags
, struct PNP_AddResDes
*r
)
2335 if (flags
& NDR_IN
) {
2337 if (flags
& NDR_OUT
) {
2338 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
2340 return NDR_ERR_SUCCESS
;
2343 _PUBLIC_
void ndr_print_PNP_AddResDes(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_AddResDes
*r
)
2345 ndr_print_struct(ndr
, name
, "PNP_AddResDes");
2347 if (flags
& NDR_SET_VALUES
) {
2348 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2350 if (flags
& NDR_IN
) {
2351 ndr_print_struct(ndr
, "in", "PNP_AddResDes");
2355 if (flags
& NDR_OUT
) {
2356 ndr_print_struct(ndr
, "out", "PNP_AddResDes");
2358 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
2364 static enum ndr_err_code
ndr_push_PNP_FreeResDes(struct ndr_push
*ndr
, int flags
, const struct PNP_FreeResDes
*r
)
2366 if (flags
& NDR_IN
) {
2368 if (flags
& NDR_OUT
) {
2369 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
2371 return NDR_ERR_SUCCESS
;
2374 static enum ndr_err_code
ndr_pull_PNP_FreeResDes(struct ndr_pull
*ndr
, int flags
, struct PNP_FreeResDes
*r
)
2376 if (flags
& NDR_IN
) {
2378 if (flags
& NDR_OUT
) {
2379 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
2381 return NDR_ERR_SUCCESS
;
2384 _PUBLIC_
void ndr_print_PNP_FreeResDes(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_FreeResDes
*r
)
2386 ndr_print_struct(ndr
, name
, "PNP_FreeResDes");
2388 if (flags
& NDR_SET_VALUES
) {
2389 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2391 if (flags
& NDR_IN
) {
2392 ndr_print_struct(ndr
, "in", "PNP_FreeResDes");
2396 if (flags
& NDR_OUT
) {
2397 ndr_print_struct(ndr
, "out", "PNP_FreeResDes");
2399 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
2405 static enum ndr_err_code
ndr_push_PNP_GetNextResDes(struct ndr_push
*ndr
, int flags
, const struct PNP_GetNextResDes
*r
)
2407 if (flags
& NDR_IN
) {
2409 if (flags
& NDR_OUT
) {
2410 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
2412 return NDR_ERR_SUCCESS
;
2415 static enum ndr_err_code
ndr_pull_PNP_GetNextResDes(struct ndr_pull
*ndr
, int flags
, struct PNP_GetNextResDes
*r
)
2417 if (flags
& NDR_IN
) {
2419 if (flags
& NDR_OUT
) {
2420 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
2422 return NDR_ERR_SUCCESS
;
2425 _PUBLIC_
void ndr_print_PNP_GetNextResDes(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetNextResDes
*r
)
2427 ndr_print_struct(ndr
, name
, "PNP_GetNextResDes");
2429 if (flags
& NDR_SET_VALUES
) {
2430 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2432 if (flags
& NDR_IN
) {
2433 ndr_print_struct(ndr
, "in", "PNP_GetNextResDes");
2437 if (flags
& NDR_OUT
) {
2438 ndr_print_struct(ndr
, "out", "PNP_GetNextResDes");
2440 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
2446 static enum ndr_err_code
ndr_push_PNP_GetResDesData(struct ndr_push
*ndr
, int flags
, const struct PNP_GetResDesData
*r
)
2448 if (flags
& NDR_IN
) {
2450 if (flags
& NDR_OUT
) {
2451 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
2453 return NDR_ERR_SUCCESS
;
2456 static enum ndr_err_code
ndr_pull_PNP_GetResDesData(struct ndr_pull
*ndr
, int flags
, struct PNP_GetResDesData
*r
)
2458 if (flags
& NDR_IN
) {
2460 if (flags
& NDR_OUT
) {
2461 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
2463 return NDR_ERR_SUCCESS
;
2466 _PUBLIC_
void ndr_print_PNP_GetResDesData(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetResDesData
*r
)
2468 ndr_print_struct(ndr
, name
, "PNP_GetResDesData");
2470 if (flags
& NDR_SET_VALUES
) {
2471 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2473 if (flags
& NDR_IN
) {
2474 ndr_print_struct(ndr
, "in", "PNP_GetResDesData");
2478 if (flags
& NDR_OUT
) {
2479 ndr_print_struct(ndr
, "out", "PNP_GetResDesData");
2481 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
2487 static enum ndr_err_code
ndr_push_PNP_GetResDesDataSize(struct ndr_push
*ndr
, int flags
, const struct PNP_GetResDesDataSize
*r
)
2489 if (flags
& NDR_IN
) {
2491 if (flags
& NDR_OUT
) {
2492 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
2494 return NDR_ERR_SUCCESS
;
2497 static enum ndr_err_code
ndr_pull_PNP_GetResDesDataSize(struct ndr_pull
*ndr
, int flags
, struct PNP_GetResDesDataSize
*r
)
2499 if (flags
& NDR_IN
) {
2501 if (flags
& NDR_OUT
) {
2502 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
2504 return NDR_ERR_SUCCESS
;
2507 _PUBLIC_
void ndr_print_PNP_GetResDesDataSize(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetResDesDataSize
*r
)
2509 ndr_print_struct(ndr
, name
, "PNP_GetResDesDataSize");
2511 if (flags
& NDR_SET_VALUES
) {
2512 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2514 if (flags
& NDR_IN
) {
2515 ndr_print_struct(ndr
, "in", "PNP_GetResDesDataSize");
2519 if (flags
& NDR_OUT
) {
2520 ndr_print_struct(ndr
, "out", "PNP_GetResDesDataSize");
2522 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
2528 static enum ndr_err_code
ndr_push_PNP_ModifyResDes(struct ndr_push
*ndr
, int flags
, const struct PNP_ModifyResDes
*r
)
2530 if (flags
& NDR_IN
) {
2532 if (flags
& NDR_OUT
) {
2533 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
2535 return NDR_ERR_SUCCESS
;
2538 static enum ndr_err_code
ndr_pull_PNP_ModifyResDes(struct ndr_pull
*ndr
, int flags
, struct PNP_ModifyResDes
*r
)
2540 if (flags
& NDR_IN
) {
2542 if (flags
& NDR_OUT
) {
2543 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
2545 return NDR_ERR_SUCCESS
;
2548 _PUBLIC_
void ndr_print_PNP_ModifyResDes(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_ModifyResDes
*r
)
2550 ndr_print_struct(ndr
, name
, "PNP_ModifyResDes");
2552 if (flags
& NDR_SET_VALUES
) {
2553 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2555 if (flags
& NDR_IN
) {
2556 ndr_print_struct(ndr
, "in", "PNP_ModifyResDes");
2560 if (flags
& NDR_OUT
) {
2561 ndr_print_struct(ndr
, "out", "PNP_ModifyResDes");
2563 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
2569 static enum ndr_err_code
ndr_push_PNP_DetectResourceLimit(struct ndr_push
*ndr
, int flags
, const struct PNP_DetectResourceLimit
*r
)
2571 if (flags
& NDR_IN
) {
2573 if (flags
& NDR_OUT
) {
2574 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
2576 return NDR_ERR_SUCCESS
;
2579 static enum ndr_err_code
ndr_pull_PNP_DetectResourceLimit(struct ndr_pull
*ndr
, int flags
, struct PNP_DetectResourceLimit
*r
)
2581 if (flags
& NDR_IN
) {
2583 if (flags
& NDR_OUT
) {
2584 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
2586 return NDR_ERR_SUCCESS
;
2589 _PUBLIC_
void ndr_print_PNP_DetectResourceLimit(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_DetectResourceLimit
*r
)
2591 ndr_print_struct(ndr
, name
, "PNP_DetectResourceLimit");
2593 if (flags
& NDR_SET_VALUES
) {
2594 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2596 if (flags
& NDR_IN
) {
2597 ndr_print_struct(ndr
, "in", "PNP_DetectResourceLimit");
2601 if (flags
& NDR_OUT
) {
2602 ndr_print_struct(ndr
, "out", "PNP_DetectResourceLimit");
2604 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
2610 static enum ndr_err_code
ndr_push_PNP_QueryResConfList(struct ndr_push
*ndr
, int flags
, const struct PNP_QueryResConfList
*r
)
2612 if (flags
& NDR_IN
) {
2614 if (flags
& NDR_OUT
) {
2615 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
2617 return NDR_ERR_SUCCESS
;
2620 static enum ndr_err_code
ndr_pull_PNP_QueryResConfList(struct ndr_pull
*ndr
, int flags
, struct PNP_QueryResConfList
*r
)
2622 if (flags
& NDR_IN
) {
2624 if (flags
& NDR_OUT
) {
2625 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
2627 return NDR_ERR_SUCCESS
;
2630 _PUBLIC_
void ndr_print_PNP_QueryResConfList(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_QueryResConfList
*r
)
2632 ndr_print_struct(ndr
, name
, "PNP_QueryResConfList");
2634 if (flags
& NDR_SET_VALUES
) {
2635 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2637 if (flags
& NDR_IN
) {
2638 ndr_print_struct(ndr
, "in", "PNP_QueryResConfList");
2642 if (flags
& NDR_OUT
) {
2643 ndr_print_struct(ndr
, "out", "PNP_QueryResConfList");
2645 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
2651 static enum ndr_err_code
ndr_push_PNP_SetHwProf(struct ndr_push
*ndr
, int flags
, const struct PNP_SetHwProf
*r
)
2653 if (flags
& NDR_IN
) {
2655 if (flags
& NDR_OUT
) {
2656 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
2658 return NDR_ERR_SUCCESS
;
2661 static enum ndr_err_code
ndr_pull_PNP_SetHwProf(struct ndr_pull
*ndr
, int flags
, struct PNP_SetHwProf
*r
)
2663 if (flags
& NDR_IN
) {
2665 if (flags
& NDR_OUT
) {
2666 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
2668 return NDR_ERR_SUCCESS
;
2671 _PUBLIC_
void ndr_print_PNP_SetHwProf(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_SetHwProf
*r
)
2673 ndr_print_struct(ndr
, name
, "PNP_SetHwProf");
2675 if (flags
& NDR_SET_VALUES
) {
2676 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2678 if (flags
& NDR_IN
) {
2679 ndr_print_struct(ndr
, "in", "PNP_SetHwProf");
2683 if (flags
& NDR_OUT
) {
2684 ndr_print_struct(ndr
, "out", "PNP_SetHwProf");
2686 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
2692 static enum ndr_err_code
ndr_push_PNP_QueryArbitratorFreeData(struct ndr_push
*ndr
, int flags
, const struct PNP_QueryArbitratorFreeData
*r
)
2694 if (flags
& NDR_IN
) {
2696 if (flags
& NDR_OUT
) {
2697 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
2699 return NDR_ERR_SUCCESS
;
2702 static enum ndr_err_code
ndr_pull_PNP_QueryArbitratorFreeData(struct ndr_pull
*ndr
, int flags
, struct PNP_QueryArbitratorFreeData
*r
)
2704 if (flags
& NDR_IN
) {
2706 if (flags
& NDR_OUT
) {
2707 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
2709 return NDR_ERR_SUCCESS
;
2712 _PUBLIC_
void ndr_print_PNP_QueryArbitratorFreeData(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_QueryArbitratorFreeData
*r
)
2714 ndr_print_struct(ndr
, name
, "PNP_QueryArbitratorFreeData");
2716 if (flags
& NDR_SET_VALUES
) {
2717 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2719 if (flags
& NDR_IN
) {
2720 ndr_print_struct(ndr
, "in", "PNP_QueryArbitratorFreeData");
2724 if (flags
& NDR_OUT
) {
2725 ndr_print_struct(ndr
, "out", "PNP_QueryArbitratorFreeData");
2727 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
2733 static enum ndr_err_code
ndr_push_PNP_QueryArbitratorFreeSize(struct ndr_push
*ndr
, int flags
, const struct PNP_QueryArbitratorFreeSize
*r
)
2735 if (flags
& NDR_IN
) {
2737 if (flags
& NDR_OUT
) {
2738 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
2740 return NDR_ERR_SUCCESS
;
2743 static enum ndr_err_code
ndr_pull_PNP_QueryArbitratorFreeSize(struct ndr_pull
*ndr
, int flags
, struct PNP_QueryArbitratorFreeSize
*r
)
2745 if (flags
& NDR_IN
) {
2747 if (flags
& NDR_OUT
) {
2748 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
2750 return NDR_ERR_SUCCESS
;
2753 _PUBLIC_
void ndr_print_PNP_QueryArbitratorFreeSize(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_QueryArbitratorFreeSize
*r
)
2755 ndr_print_struct(ndr
, name
, "PNP_QueryArbitratorFreeSize");
2757 if (flags
& NDR_SET_VALUES
) {
2758 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2760 if (flags
& NDR_IN
) {
2761 ndr_print_struct(ndr
, "in", "PNP_QueryArbitratorFreeSize");
2765 if (flags
& NDR_OUT
) {
2766 ndr_print_struct(ndr
, "out", "PNP_QueryArbitratorFreeSize");
2768 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
2774 static enum ndr_err_code
ndr_push_PNP_RunDetection(struct ndr_push
*ndr
, int flags
, const struct PNP_RunDetection
*r
)
2776 if (flags
& NDR_IN
) {
2778 if (flags
& NDR_OUT
) {
2779 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
2781 return NDR_ERR_SUCCESS
;
2784 static enum ndr_err_code
ndr_pull_PNP_RunDetection(struct ndr_pull
*ndr
, int flags
, struct PNP_RunDetection
*r
)
2786 if (flags
& NDR_IN
) {
2788 if (flags
& NDR_OUT
) {
2789 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
2791 return NDR_ERR_SUCCESS
;
2794 _PUBLIC_
void ndr_print_PNP_RunDetection(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_RunDetection
*r
)
2796 ndr_print_struct(ndr
, name
, "PNP_RunDetection");
2798 if (flags
& NDR_SET_VALUES
) {
2799 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2801 if (flags
& NDR_IN
) {
2802 ndr_print_struct(ndr
, "in", "PNP_RunDetection");
2806 if (flags
& NDR_OUT
) {
2807 ndr_print_struct(ndr
, "out", "PNP_RunDetection");
2809 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
2815 static enum ndr_err_code
ndr_push_PNP_RegisterNotification(struct ndr_push
*ndr
, int flags
, const struct PNP_RegisterNotification
*r
)
2817 if (flags
& NDR_IN
) {
2819 if (flags
& NDR_OUT
) {
2820 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
2822 return NDR_ERR_SUCCESS
;
2825 static enum ndr_err_code
ndr_pull_PNP_RegisterNotification(struct ndr_pull
*ndr
, int flags
, struct PNP_RegisterNotification
*r
)
2827 if (flags
& NDR_IN
) {
2829 if (flags
& NDR_OUT
) {
2830 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
2832 return NDR_ERR_SUCCESS
;
2835 _PUBLIC_
void ndr_print_PNP_RegisterNotification(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_RegisterNotification
*r
)
2837 ndr_print_struct(ndr
, name
, "PNP_RegisterNotification");
2839 if (flags
& NDR_SET_VALUES
) {
2840 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2842 if (flags
& NDR_IN
) {
2843 ndr_print_struct(ndr
, "in", "PNP_RegisterNotification");
2847 if (flags
& NDR_OUT
) {
2848 ndr_print_struct(ndr
, "out", "PNP_RegisterNotification");
2850 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
2856 static enum ndr_err_code
ndr_push_PNP_UnregisterNotification(struct ndr_push
*ndr
, int flags
, const struct PNP_UnregisterNotification
*r
)
2858 if (flags
& NDR_IN
) {
2860 if (flags
& NDR_OUT
) {
2861 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
2863 return NDR_ERR_SUCCESS
;
2866 static enum ndr_err_code
ndr_pull_PNP_UnregisterNotification(struct ndr_pull
*ndr
, int flags
, struct PNP_UnregisterNotification
*r
)
2868 if (flags
& NDR_IN
) {
2870 if (flags
& NDR_OUT
) {
2871 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
2873 return NDR_ERR_SUCCESS
;
2876 _PUBLIC_
void ndr_print_PNP_UnregisterNotification(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_UnregisterNotification
*r
)
2878 ndr_print_struct(ndr
, name
, "PNP_UnregisterNotification");
2880 if (flags
& NDR_SET_VALUES
) {
2881 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2883 if (flags
& NDR_IN
) {
2884 ndr_print_struct(ndr
, "in", "PNP_UnregisterNotification");
2888 if (flags
& NDR_OUT
) {
2889 ndr_print_struct(ndr
, "out", "PNP_UnregisterNotification");
2891 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
2897 static enum ndr_err_code
ndr_push_PNP_GetCustomDevProp(struct ndr_push
*ndr
, int flags
, const struct PNP_GetCustomDevProp
*r
)
2899 if (flags
& NDR_IN
) {
2901 if (flags
& NDR_OUT
) {
2902 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
2904 return NDR_ERR_SUCCESS
;
2907 static enum ndr_err_code
ndr_pull_PNP_GetCustomDevProp(struct ndr_pull
*ndr
, int flags
, struct PNP_GetCustomDevProp
*r
)
2909 if (flags
& NDR_IN
) {
2911 if (flags
& NDR_OUT
) {
2912 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
2914 return NDR_ERR_SUCCESS
;
2917 _PUBLIC_
void ndr_print_PNP_GetCustomDevProp(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetCustomDevProp
*r
)
2919 ndr_print_struct(ndr
, name
, "PNP_GetCustomDevProp");
2921 if (flags
& NDR_SET_VALUES
) {
2922 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2924 if (flags
& NDR_IN
) {
2925 ndr_print_struct(ndr
, "in", "PNP_GetCustomDevProp");
2929 if (flags
& NDR_OUT
) {
2930 ndr_print_struct(ndr
, "out", "PNP_GetCustomDevProp");
2932 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
2938 static enum ndr_err_code
ndr_push_PNP_GetVersionInternal(struct ndr_push
*ndr
, int flags
, const struct PNP_GetVersionInternal
*r
)
2940 if (flags
& NDR_IN
) {
2942 if (flags
& NDR_OUT
) {
2943 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
2945 return NDR_ERR_SUCCESS
;
2948 static enum ndr_err_code
ndr_pull_PNP_GetVersionInternal(struct ndr_pull
*ndr
, int flags
, struct PNP_GetVersionInternal
*r
)
2950 if (flags
& NDR_IN
) {
2952 if (flags
& NDR_OUT
) {
2953 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
2955 return NDR_ERR_SUCCESS
;
2958 _PUBLIC_
void ndr_print_PNP_GetVersionInternal(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetVersionInternal
*r
)
2960 ndr_print_struct(ndr
, name
, "PNP_GetVersionInternal");
2962 if (flags
& NDR_SET_VALUES
) {
2963 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2965 if (flags
& NDR_IN
) {
2966 ndr_print_struct(ndr
, "in", "PNP_GetVersionInternal");
2970 if (flags
& NDR_OUT
) {
2971 ndr_print_struct(ndr
, "out", "PNP_GetVersionInternal");
2973 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
2979 static enum ndr_err_code
ndr_push_PNP_GetBlockedDriverInfo(struct ndr_push
*ndr
, int flags
, const struct PNP_GetBlockedDriverInfo
*r
)
2981 if (flags
& NDR_IN
) {
2983 if (flags
& NDR_OUT
) {
2984 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
2986 return NDR_ERR_SUCCESS
;
2989 static enum ndr_err_code
ndr_pull_PNP_GetBlockedDriverInfo(struct ndr_pull
*ndr
, int flags
, struct PNP_GetBlockedDriverInfo
*r
)
2991 if (flags
& NDR_IN
) {
2993 if (flags
& NDR_OUT
) {
2994 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
2996 return NDR_ERR_SUCCESS
;
2999 _PUBLIC_
void ndr_print_PNP_GetBlockedDriverInfo(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetBlockedDriverInfo
*r
)
3001 ndr_print_struct(ndr
, name
, "PNP_GetBlockedDriverInfo");
3003 if (flags
& NDR_SET_VALUES
) {
3004 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
3006 if (flags
& NDR_IN
) {
3007 ndr_print_struct(ndr
, "in", "PNP_GetBlockedDriverInfo");
3011 if (flags
& NDR_OUT
) {
3012 ndr_print_struct(ndr
, "out", "PNP_GetBlockedDriverInfo");
3014 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
3020 static enum ndr_err_code
ndr_push_PNP_GetServerSideDeviceInstallFlags(struct ndr_push
*ndr
, int flags
, const struct PNP_GetServerSideDeviceInstallFlags
*r
)
3022 if (flags
& NDR_IN
) {
3024 if (flags
& NDR_OUT
) {
3025 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
3027 return NDR_ERR_SUCCESS
;
3030 static enum ndr_err_code
ndr_pull_PNP_GetServerSideDeviceInstallFlags(struct ndr_pull
*ndr
, int flags
, struct PNP_GetServerSideDeviceInstallFlags
*r
)
3032 if (flags
& NDR_IN
) {
3034 if (flags
& NDR_OUT
) {
3035 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
3037 return NDR_ERR_SUCCESS
;
3040 _PUBLIC_
void ndr_print_PNP_GetServerSideDeviceInstallFlags(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetServerSideDeviceInstallFlags
*r
)
3042 ndr_print_struct(ndr
, name
, "PNP_GetServerSideDeviceInstallFlags");
3044 if (flags
& NDR_SET_VALUES
) {
3045 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
3047 if (flags
& NDR_IN
) {
3048 ndr_print_struct(ndr
, "in", "PNP_GetServerSideDeviceInstallFlags");
3052 if (flags
& NDR_OUT
) {
3053 ndr_print_struct(ndr
, "out", "PNP_GetServerSideDeviceInstallFlags");
3055 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
3061 static const struct ndr_interface_call ntsvcs_calls
[] = {
3064 sizeof(struct PNP_Disconnect
),
3065 (ndr_push_flags_fn_t
) ndr_push_PNP_Disconnect
,
3066 (ndr_pull_flags_fn_t
) ndr_pull_PNP_Disconnect
,
3067 (ndr_print_function_t
) ndr_print_PNP_Disconnect
,
3072 sizeof(struct PNP_Connect
),
3073 (ndr_push_flags_fn_t
) ndr_push_PNP_Connect
,
3074 (ndr_pull_flags_fn_t
) ndr_pull_PNP_Connect
,
3075 (ndr_print_function_t
) ndr_print_PNP_Connect
,
3080 sizeof(struct PNP_GetVersion
),
3081 (ndr_push_flags_fn_t
) ndr_push_PNP_GetVersion
,
3082 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetVersion
,
3083 (ndr_print_function_t
) ndr_print_PNP_GetVersion
,
3087 "PNP_GetGlobalState",
3088 sizeof(struct PNP_GetGlobalState
),
3089 (ndr_push_flags_fn_t
) ndr_push_PNP_GetGlobalState
,
3090 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetGlobalState
,
3091 (ndr_print_function_t
) ndr_print_PNP_GetGlobalState
,
3095 "PNP_InitDetection",
3096 sizeof(struct PNP_InitDetection
),
3097 (ndr_push_flags_fn_t
) ndr_push_PNP_InitDetection
,
3098 (ndr_pull_flags_fn_t
) ndr_pull_PNP_InitDetection
,
3099 (ndr_print_function_t
) ndr_print_PNP_InitDetection
,
3104 sizeof(struct PNP_ReportLogOn
),
3105 (ndr_push_flags_fn_t
) ndr_push_PNP_ReportLogOn
,
3106 (ndr_pull_flags_fn_t
) ndr_pull_PNP_ReportLogOn
,
3107 (ndr_print_function_t
) ndr_print_PNP_ReportLogOn
,
3111 "PNP_ValidateDeviceInstance",
3112 sizeof(struct PNP_ValidateDeviceInstance
),
3113 (ndr_push_flags_fn_t
) ndr_push_PNP_ValidateDeviceInstance
,
3114 (ndr_pull_flags_fn_t
) ndr_pull_PNP_ValidateDeviceInstance
,
3115 (ndr_print_function_t
) ndr_print_PNP_ValidateDeviceInstance
,
3119 "PNP_GetRootDeviceInstance",
3120 sizeof(struct PNP_GetRootDeviceInstance
),
3121 (ndr_push_flags_fn_t
) ndr_push_PNP_GetRootDeviceInstance
,
3122 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetRootDeviceInstance
,
3123 (ndr_print_function_t
) ndr_print_PNP_GetRootDeviceInstance
,
3127 "PNP_GetRelatedDeviceInstance",
3128 sizeof(struct PNP_GetRelatedDeviceInstance
),
3129 (ndr_push_flags_fn_t
) ndr_push_PNP_GetRelatedDeviceInstance
,
3130 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetRelatedDeviceInstance
,
3131 (ndr_print_function_t
) ndr_print_PNP_GetRelatedDeviceInstance
,
3135 "PNP_EnumerateSubKeys",
3136 sizeof(struct PNP_EnumerateSubKeys
),
3137 (ndr_push_flags_fn_t
) ndr_push_PNP_EnumerateSubKeys
,
3138 (ndr_pull_flags_fn_t
) ndr_pull_PNP_EnumerateSubKeys
,
3139 (ndr_print_function_t
) ndr_print_PNP_EnumerateSubKeys
,
3143 "PNP_GetDeviceList",
3144 sizeof(struct PNP_GetDeviceList
),
3145 (ndr_push_flags_fn_t
) ndr_push_PNP_GetDeviceList
,
3146 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetDeviceList
,
3147 (ndr_print_function_t
) ndr_print_PNP_GetDeviceList
,
3151 "PNP_GetDeviceListSize",
3152 sizeof(struct PNP_GetDeviceListSize
),
3153 (ndr_push_flags_fn_t
) ndr_push_PNP_GetDeviceListSize
,
3154 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetDeviceListSize
,
3155 (ndr_print_function_t
) ndr_print_PNP_GetDeviceListSize
,
3160 sizeof(struct PNP_GetDepth
),
3161 (ndr_push_flags_fn_t
) ndr_push_PNP_GetDepth
,
3162 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetDepth
,
3163 (ndr_print_function_t
) ndr_print_PNP_GetDepth
,
3167 "PNP_GetDeviceRegProp",
3168 sizeof(struct PNP_GetDeviceRegProp
),
3169 (ndr_push_flags_fn_t
) ndr_push_PNP_GetDeviceRegProp
,
3170 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetDeviceRegProp
,
3171 (ndr_print_function_t
) ndr_print_PNP_GetDeviceRegProp
,
3175 "PNP_SetDeviceRegProp",
3176 sizeof(struct PNP_SetDeviceRegProp
),
3177 (ndr_push_flags_fn_t
) ndr_push_PNP_SetDeviceRegProp
,
3178 (ndr_pull_flags_fn_t
) ndr_pull_PNP_SetDeviceRegProp
,
3179 (ndr_print_function_t
) ndr_print_PNP_SetDeviceRegProp
,
3183 "PNP_GetClassInstance",
3184 sizeof(struct PNP_GetClassInstance
),
3185 (ndr_push_flags_fn_t
) ndr_push_PNP_GetClassInstance
,
3186 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetClassInstance
,
3187 (ndr_print_function_t
) ndr_print_PNP_GetClassInstance
,
3192 sizeof(struct PNP_CreateKey
),
3193 (ndr_push_flags_fn_t
) ndr_push_PNP_CreateKey
,
3194 (ndr_pull_flags_fn_t
) ndr_pull_PNP_CreateKey
,
3195 (ndr_print_function_t
) ndr_print_PNP_CreateKey
,
3199 "PNP_DeleteRegistryKey",
3200 sizeof(struct PNP_DeleteRegistryKey
),
3201 (ndr_push_flags_fn_t
) ndr_push_PNP_DeleteRegistryKey
,
3202 (ndr_pull_flags_fn_t
) ndr_pull_PNP_DeleteRegistryKey
,
3203 (ndr_print_function_t
) ndr_print_PNP_DeleteRegistryKey
,
3207 "PNP_GetClassCount",
3208 sizeof(struct PNP_GetClassCount
),
3209 (ndr_push_flags_fn_t
) ndr_push_PNP_GetClassCount
,
3210 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetClassCount
,
3211 (ndr_print_function_t
) ndr_print_PNP_GetClassCount
,
3216 sizeof(struct PNP_GetClassName
),
3217 (ndr_push_flags_fn_t
) ndr_push_PNP_GetClassName
,
3218 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetClassName
,
3219 (ndr_print_function_t
) ndr_print_PNP_GetClassName
,
3223 "PNP_DeleteClassKey",
3224 sizeof(struct PNP_DeleteClassKey
),
3225 (ndr_push_flags_fn_t
) ndr_push_PNP_DeleteClassKey
,
3226 (ndr_pull_flags_fn_t
) ndr_pull_PNP_DeleteClassKey
,
3227 (ndr_print_function_t
) ndr_print_PNP_DeleteClassKey
,
3231 "PNP_GetInterfaceDeviceAlias",
3232 sizeof(struct PNP_GetInterfaceDeviceAlias
),
3233 (ndr_push_flags_fn_t
) ndr_push_PNP_GetInterfaceDeviceAlias
,
3234 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetInterfaceDeviceAlias
,
3235 (ndr_print_function_t
) ndr_print_PNP_GetInterfaceDeviceAlias
,
3239 "PNP_GetInterfaceDeviceList",
3240 sizeof(struct PNP_GetInterfaceDeviceList
),
3241 (ndr_push_flags_fn_t
) ndr_push_PNP_GetInterfaceDeviceList
,
3242 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetInterfaceDeviceList
,
3243 (ndr_print_function_t
) ndr_print_PNP_GetInterfaceDeviceList
,
3247 "PNP_GetInterfaceDeviceListSize",
3248 sizeof(struct PNP_GetInterfaceDeviceListSize
),
3249 (ndr_push_flags_fn_t
) ndr_push_PNP_GetInterfaceDeviceListSize
,
3250 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetInterfaceDeviceListSize
,
3251 (ndr_print_function_t
) ndr_print_PNP_GetInterfaceDeviceListSize
,
3255 "PNP_RegisterDeviceClassAssociation",
3256 sizeof(struct PNP_RegisterDeviceClassAssociation
),
3257 (ndr_push_flags_fn_t
) ndr_push_PNP_RegisterDeviceClassAssociation
,
3258 (ndr_pull_flags_fn_t
) ndr_pull_PNP_RegisterDeviceClassAssociation
,
3259 (ndr_print_function_t
) ndr_print_PNP_RegisterDeviceClassAssociation
,
3263 "PNP_UnregisterDeviceClassAssociation",
3264 sizeof(struct PNP_UnregisterDeviceClassAssociation
),
3265 (ndr_push_flags_fn_t
) ndr_push_PNP_UnregisterDeviceClassAssociation
,
3266 (ndr_pull_flags_fn_t
) ndr_pull_PNP_UnregisterDeviceClassAssociation
,
3267 (ndr_print_function_t
) ndr_print_PNP_UnregisterDeviceClassAssociation
,
3271 "PNP_GetClassRegProp",
3272 sizeof(struct PNP_GetClassRegProp
),
3273 (ndr_push_flags_fn_t
) ndr_push_PNP_GetClassRegProp
,
3274 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetClassRegProp
,
3275 (ndr_print_function_t
) ndr_print_PNP_GetClassRegProp
,
3279 "PNP_SetClassRegProp",
3280 sizeof(struct PNP_SetClassRegProp
),
3281 (ndr_push_flags_fn_t
) ndr_push_PNP_SetClassRegProp
,
3282 (ndr_pull_flags_fn_t
) ndr_pull_PNP_SetClassRegProp
,
3283 (ndr_print_function_t
) ndr_print_PNP_SetClassRegProp
,
3287 "PNP_CreateDevInst",
3288 sizeof(struct PNP_CreateDevInst
),
3289 (ndr_push_flags_fn_t
) ndr_push_PNP_CreateDevInst
,
3290 (ndr_pull_flags_fn_t
) ndr_pull_PNP_CreateDevInst
,
3291 (ndr_print_function_t
) ndr_print_PNP_CreateDevInst
,
3295 "PNP_DeviceInstanceAction",
3296 sizeof(struct PNP_DeviceInstanceAction
),
3297 (ndr_push_flags_fn_t
) ndr_push_PNP_DeviceInstanceAction
,
3298 (ndr_pull_flags_fn_t
) ndr_pull_PNP_DeviceInstanceAction
,
3299 (ndr_print_function_t
) ndr_print_PNP_DeviceInstanceAction
,
3303 "PNP_GetDeviceStatus",
3304 sizeof(struct PNP_GetDeviceStatus
),
3305 (ndr_push_flags_fn_t
) ndr_push_PNP_GetDeviceStatus
,
3306 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetDeviceStatus
,
3307 (ndr_print_function_t
) ndr_print_PNP_GetDeviceStatus
,
3311 "PNP_SetDeviceProblem",
3312 sizeof(struct PNP_SetDeviceProblem
),
3313 (ndr_push_flags_fn_t
) ndr_push_PNP_SetDeviceProblem
,
3314 (ndr_pull_flags_fn_t
) ndr_pull_PNP_SetDeviceProblem
,
3315 (ndr_print_function_t
) ndr_print_PNP_SetDeviceProblem
,
3319 "PNP_DisableDevInst",
3320 sizeof(struct PNP_DisableDevInst
),
3321 (ndr_push_flags_fn_t
) ndr_push_PNP_DisableDevInst
,
3322 (ndr_pull_flags_fn_t
) ndr_pull_PNP_DisableDevInst
,
3323 (ndr_print_function_t
) ndr_print_PNP_DisableDevInst
,
3327 "PNP_UninstallDevInst",
3328 sizeof(struct PNP_UninstallDevInst
),
3329 (ndr_push_flags_fn_t
) ndr_push_PNP_UninstallDevInst
,
3330 (ndr_pull_flags_fn_t
) ndr_pull_PNP_UninstallDevInst
,
3331 (ndr_print_function_t
) ndr_print_PNP_UninstallDevInst
,
3336 sizeof(struct PNP_AddID
),
3337 (ndr_push_flags_fn_t
) ndr_push_PNP_AddID
,
3338 (ndr_pull_flags_fn_t
) ndr_pull_PNP_AddID
,
3339 (ndr_print_function_t
) ndr_print_PNP_AddID
,
3343 "PNP_RegisterDriver",
3344 sizeof(struct PNP_RegisterDriver
),
3345 (ndr_push_flags_fn_t
) ndr_push_PNP_RegisterDriver
,
3346 (ndr_pull_flags_fn_t
) ndr_pull_PNP_RegisterDriver
,
3347 (ndr_print_function_t
) ndr_print_PNP_RegisterDriver
,
3352 sizeof(struct PNP_QueryRemove
),
3353 (ndr_push_flags_fn_t
) ndr_push_PNP_QueryRemove
,
3354 (ndr_pull_flags_fn_t
) ndr_pull_PNP_QueryRemove
,
3355 (ndr_print_function_t
) ndr_print_PNP_QueryRemove
,
3359 "PNP_RequestDeviceEject",
3360 sizeof(struct PNP_RequestDeviceEject
),
3361 (ndr_push_flags_fn_t
) ndr_push_PNP_RequestDeviceEject
,
3362 (ndr_pull_flags_fn_t
) ndr_pull_PNP_RequestDeviceEject
,
3363 (ndr_print_function_t
) ndr_print_PNP_RequestDeviceEject
,
3367 "PNP_IsDockStationPresent",
3368 sizeof(struct PNP_IsDockStationPresent
),
3369 (ndr_push_flags_fn_t
) ndr_push_PNP_IsDockStationPresent
,
3370 (ndr_pull_flags_fn_t
) ndr_pull_PNP_IsDockStationPresent
,
3371 (ndr_print_function_t
) ndr_print_PNP_IsDockStationPresent
,
3375 "PNP_RequestEjectPC",
3376 sizeof(struct PNP_RequestEjectPC
),
3377 (ndr_push_flags_fn_t
) ndr_push_PNP_RequestEjectPC
,
3378 (ndr_pull_flags_fn_t
) ndr_pull_PNP_RequestEjectPC
,
3379 (ndr_print_function_t
) ndr_print_PNP_RequestEjectPC
,
3384 sizeof(struct PNP_HwProfFlags
),
3385 (ndr_push_flags_fn_t
) ndr_push_PNP_HwProfFlags
,
3386 (ndr_pull_flags_fn_t
) ndr_pull_PNP_HwProfFlags
,
3387 (ndr_print_function_t
) ndr_print_PNP_HwProfFlags
,
3391 "PNP_GetHwProfInfo",
3392 sizeof(struct PNP_GetHwProfInfo
),
3393 (ndr_push_flags_fn_t
) ndr_push_PNP_GetHwProfInfo
,
3394 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetHwProfInfo
,
3395 (ndr_print_function_t
) ndr_print_PNP_GetHwProfInfo
,
3399 "PNP_AddEmptyLogConf",
3400 sizeof(struct PNP_AddEmptyLogConf
),
3401 (ndr_push_flags_fn_t
) ndr_push_PNP_AddEmptyLogConf
,
3402 (ndr_pull_flags_fn_t
) ndr_pull_PNP_AddEmptyLogConf
,
3403 (ndr_print_function_t
) ndr_print_PNP_AddEmptyLogConf
,
3408 sizeof(struct PNP_FreeLogConf
),
3409 (ndr_push_flags_fn_t
) ndr_push_PNP_FreeLogConf
,
3410 (ndr_pull_flags_fn_t
) ndr_pull_PNP_FreeLogConf
,
3411 (ndr_print_function_t
) ndr_print_PNP_FreeLogConf
,
3415 "PNP_GetFirstLogConf",
3416 sizeof(struct PNP_GetFirstLogConf
),
3417 (ndr_push_flags_fn_t
) ndr_push_PNP_GetFirstLogConf
,
3418 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetFirstLogConf
,
3419 (ndr_print_function_t
) ndr_print_PNP_GetFirstLogConf
,
3423 "PNP_GetNextLogConf",
3424 sizeof(struct PNP_GetNextLogConf
),
3425 (ndr_push_flags_fn_t
) ndr_push_PNP_GetNextLogConf
,
3426 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetNextLogConf
,
3427 (ndr_print_function_t
) ndr_print_PNP_GetNextLogConf
,
3431 "PNP_GetLogConfPriority",
3432 sizeof(struct PNP_GetLogConfPriority
),
3433 (ndr_push_flags_fn_t
) ndr_push_PNP_GetLogConfPriority
,
3434 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetLogConfPriority
,
3435 (ndr_print_function_t
) ndr_print_PNP_GetLogConfPriority
,
3440 sizeof(struct PNP_AddResDes
),
3441 (ndr_push_flags_fn_t
) ndr_push_PNP_AddResDes
,
3442 (ndr_pull_flags_fn_t
) ndr_pull_PNP_AddResDes
,
3443 (ndr_print_function_t
) ndr_print_PNP_AddResDes
,
3448 sizeof(struct PNP_FreeResDes
),
3449 (ndr_push_flags_fn_t
) ndr_push_PNP_FreeResDes
,
3450 (ndr_pull_flags_fn_t
) ndr_pull_PNP_FreeResDes
,
3451 (ndr_print_function_t
) ndr_print_PNP_FreeResDes
,
3455 "PNP_GetNextResDes",
3456 sizeof(struct PNP_GetNextResDes
),
3457 (ndr_push_flags_fn_t
) ndr_push_PNP_GetNextResDes
,
3458 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetNextResDes
,
3459 (ndr_print_function_t
) ndr_print_PNP_GetNextResDes
,
3463 "PNP_GetResDesData",
3464 sizeof(struct PNP_GetResDesData
),
3465 (ndr_push_flags_fn_t
) ndr_push_PNP_GetResDesData
,
3466 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetResDesData
,
3467 (ndr_print_function_t
) ndr_print_PNP_GetResDesData
,
3471 "PNP_GetResDesDataSize",
3472 sizeof(struct PNP_GetResDesDataSize
),
3473 (ndr_push_flags_fn_t
) ndr_push_PNP_GetResDesDataSize
,
3474 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetResDesDataSize
,
3475 (ndr_print_function_t
) ndr_print_PNP_GetResDesDataSize
,
3480 sizeof(struct PNP_ModifyResDes
),
3481 (ndr_push_flags_fn_t
) ndr_push_PNP_ModifyResDes
,
3482 (ndr_pull_flags_fn_t
) ndr_pull_PNP_ModifyResDes
,
3483 (ndr_print_function_t
) ndr_print_PNP_ModifyResDes
,
3487 "PNP_DetectResourceLimit",
3488 sizeof(struct PNP_DetectResourceLimit
),
3489 (ndr_push_flags_fn_t
) ndr_push_PNP_DetectResourceLimit
,
3490 (ndr_pull_flags_fn_t
) ndr_pull_PNP_DetectResourceLimit
,
3491 (ndr_print_function_t
) ndr_print_PNP_DetectResourceLimit
,
3495 "PNP_QueryResConfList",
3496 sizeof(struct PNP_QueryResConfList
),
3497 (ndr_push_flags_fn_t
) ndr_push_PNP_QueryResConfList
,
3498 (ndr_pull_flags_fn_t
) ndr_pull_PNP_QueryResConfList
,
3499 (ndr_print_function_t
) ndr_print_PNP_QueryResConfList
,
3504 sizeof(struct PNP_SetHwProf
),
3505 (ndr_push_flags_fn_t
) ndr_push_PNP_SetHwProf
,
3506 (ndr_pull_flags_fn_t
) ndr_pull_PNP_SetHwProf
,
3507 (ndr_print_function_t
) ndr_print_PNP_SetHwProf
,
3511 "PNP_QueryArbitratorFreeData",
3512 sizeof(struct PNP_QueryArbitratorFreeData
),
3513 (ndr_push_flags_fn_t
) ndr_push_PNP_QueryArbitratorFreeData
,
3514 (ndr_pull_flags_fn_t
) ndr_pull_PNP_QueryArbitratorFreeData
,
3515 (ndr_print_function_t
) ndr_print_PNP_QueryArbitratorFreeData
,
3519 "PNP_QueryArbitratorFreeSize",
3520 sizeof(struct PNP_QueryArbitratorFreeSize
),
3521 (ndr_push_flags_fn_t
) ndr_push_PNP_QueryArbitratorFreeSize
,
3522 (ndr_pull_flags_fn_t
) ndr_pull_PNP_QueryArbitratorFreeSize
,
3523 (ndr_print_function_t
) ndr_print_PNP_QueryArbitratorFreeSize
,
3528 sizeof(struct PNP_RunDetection
),
3529 (ndr_push_flags_fn_t
) ndr_push_PNP_RunDetection
,
3530 (ndr_pull_flags_fn_t
) ndr_pull_PNP_RunDetection
,
3531 (ndr_print_function_t
) ndr_print_PNP_RunDetection
,
3535 "PNP_RegisterNotification",
3536 sizeof(struct PNP_RegisterNotification
),
3537 (ndr_push_flags_fn_t
) ndr_push_PNP_RegisterNotification
,
3538 (ndr_pull_flags_fn_t
) ndr_pull_PNP_RegisterNotification
,
3539 (ndr_print_function_t
) ndr_print_PNP_RegisterNotification
,
3543 "PNP_UnregisterNotification",
3544 sizeof(struct PNP_UnregisterNotification
),
3545 (ndr_push_flags_fn_t
) ndr_push_PNP_UnregisterNotification
,
3546 (ndr_pull_flags_fn_t
) ndr_pull_PNP_UnregisterNotification
,
3547 (ndr_print_function_t
) ndr_print_PNP_UnregisterNotification
,
3551 "PNP_GetCustomDevProp",
3552 sizeof(struct PNP_GetCustomDevProp
),
3553 (ndr_push_flags_fn_t
) ndr_push_PNP_GetCustomDevProp
,
3554 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetCustomDevProp
,
3555 (ndr_print_function_t
) ndr_print_PNP_GetCustomDevProp
,
3559 "PNP_GetVersionInternal",
3560 sizeof(struct PNP_GetVersionInternal
),
3561 (ndr_push_flags_fn_t
) ndr_push_PNP_GetVersionInternal
,
3562 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetVersionInternal
,
3563 (ndr_print_function_t
) ndr_print_PNP_GetVersionInternal
,
3567 "PNP_GetBlockedDriverInfo",
3568 sizeof(struct PNP_GetBlockedDriverInfo
),
3569 (ndr_push_flags_fn_t
) ndr_push_PNP_GetBlockedDriverInfo
,
3570 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetBlockedDriverInfo
,
3571 (ndr_print_function_t
) ndr_print_PNP_GetBlockedDriverInfo
,
3575 "PNP_GetServerSideDeviceInstallFlags",
3576 sizeof(struct PNP_GetServerSideDeviceInstallFlags
),
3577 (ndr_push_flags_fn_t
) ndr_push_PNP_GetServerSideDeviceInstallFlags
,
3578 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetServerSideDeviceInstallFlags
,
3579 (ndr_print_function_t
) ndr_print_PNP_GetServerSideDeviceInstallFlags
,
3582 { NULL
, 0, NULL
, NULL
, NULL
, false }
3585 static const char * const ntsvcs_endpoint_strings
[] = {
3586 "ncacn_np:[\\pipe\\ntsvcs]",
3589 static const struct ndr_interface_string_array ntsvcs_endpoints
= {
3591 .names
= ntsvcs_endpoint_strings
3594 static const char * const ntsvcs_authservice_strings
[] = {
3598 static const struct ndr_interface_string_array ntsvcs_authservices
= {
3600 .names
= ntsvcs_authservice_strings
3604 const struct ndr_interface_table ndr_table_ntsvcs
= {
3607 {0x8d9f4e40,0xa03d,0x11ce,{0x8f,0x69},{0x08,0x00,0x3e,0x30,0x05,0x1b}},
3610 .helpstring
= NDR_NTSVCS_HELPSTRING
,
3612 .calls
= ntsvcs_calls
,
3613 .endpoints
= &ntsvcs_endpoints
,
3614 .authservices
= &ntsvcs_authservices