1 /* parser auto-generated by pidl */
4 #include "../librpc/gen_ndr/ndr_ntsvcs.h"
6 #include "librpc/gen_ndr/ndr_winreg.h"
7 static enum ndr_err_code
ndr_push_PNP_GetIdListFlags(struct ndr_push
*ndr
, int ndr_flags
, uint32_t r
)
9 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, r
));
10 return NDR_ERR_SUCCESS
;
13 static enum ndr_err_code
ndr_pull_PNP_GetIdListFlags(struct ndr_pull
*ndr
, int ndr_flags
, uint32_t *r
)
16 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, &v
));
18 return NDR_ERR_SUCCESS
;
21 _PUBLIC_
void ndr_print_PNP_GetIdListFlags(struct ndr_print
*ndr
, const char *name
, uint32_t r
)
23 ndr_print_uint32(ndr
, name
, r
);
25 ndr_print_bitmap_flag(ndr
, sizeof(uint32_t), "CM_GETIDLIST_FILTER_ENUMERATOR", CM_GETIDLIST_FILTER_ENUMERATOR
, r
);
26 ndr_print_bitmap_flag(ndr
, sizeof(uint32_t), "CM_GETIDLIST_FILTER_SERVICE", CM_GETIDLIST_FILTER_SERVICE
, r
);
27 ndr_print_bitmap_flag(ndr
, sizeof(uint32_t), "CM_GETIDLIST_FILTER_EJECTRELATIONS", CM_GETIDLIST_FILTER_EJECTRELATIONS
, r
);
28 ndr_print_bitmap_flag(ndr
, sizeof(uint32_t), "CM_GETIDLIST_FILTER_REMOVALRELATIONS", CM_GETIDLIST_FILTER_REMOVALRELATIONS
, r
);
29 ndr_print_bitmap_flag(ndr
, sizeof(uint32_t), "CM_GETIDLIST_FILTER_POWERRELATIONS", CM_GETIDLIST_FILTER_POWERRELATIONS
, r
);
30 ndr_print_bitmap_flag(ndr
, sizeof(uint32_t), "CM_GETIDLIST_FILTER_BUSRELATIONS", CM_GETIDLIST_FILTER_BUSRELATIONS
, r
);
31 ndr_print_bitmap_flag(ndr
, sizeof(uint32_t), "CM_GETIDLIST_DONOTGENERATE", CM_GETIDLIST_DONOTGENERATE
, r
);
32 ndr_print_bitmap_flag(ndr
, sizeof(uint32_t), "CM_GETIDLIST_FILTER_TRANSPORTRELATIONS", CM_GETIDLIST_FILTER_TRANSPORTRELATIONS
, r
);
33 ndr_print_bitmap_flag(ndr
, sizeof(uint32_t), "CM_GETIDLIST_FILTER_PRESENT", CM_GETIDLIST_FILTER_PRESENT
, r
);
34 ndr_print_bitmap_flag(ndr
, sizeof(uint32_t), "CM_GETIDLIST_FILTER_CLASS", CM_GETIDLIST_FILTER_CLASS
, r
);
38 static enum ndr_err_code
ndr_push_PNP_HwProfInfo(struct ndr_push
*ndr
, int ndr_flags
, const struct PNP_HwProfInfo
*r
)
40 uint32_t cntr_friendly_name_0
;
41 if (ndr_flags
& NDR_SCALARS
) {
42 NDR_CHECK(ndr_push_align(ndr
, 4));
43 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, r
->profile_handle
));
44 for (cntr_friendly_name_0
= 0; cntr_friendly_name_0
< 80; cntr_friendly_name_0
++) {
45 NDR_CHECK(ndr_push_uint16(ndr
, NDR_SCALARS
, r
->friendly_name
[cntr_friendly_name_0
]));
47 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, r
->flags
));
49 if (ndr_flags
& NDR_BUFFERS
) {
51 return NDR_ERR_SUCCESS
;
54 static enum ndr_err_code
ndr_pull_PNP_HwProfInfo(struct ndr_pull
*ndr
, int ndr_flags
, struct PNP_HwProfInfo
*r
)
56 uint32_t cntr_friendly_name_0
;
57 if (ndr_flags
& NDR_SCALARS
) {
58 NDR_CHECK(ndr_pull_align(ndr
, 4));
59 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, &r
->profile_handle
));
60 for (cntr_friendly_name_0
= 0; cntr_friendly_name_0
< 80; cntr_friendly_name_0
++) {
61 NDR_CHECK(ndr_pull_uint16(ndr
, NDR_SCALARS
, &r
->friendly_name
[cntr_friendly_name_0
]));
63 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, &r
->flags
));
65 if (ndr_flags
& NDR_BUFFERS
) {
67 return NDR_ERR_SUCCESS
;
70 _PUBLIC_
void ndr_print_PNP_HwProfInfo(struct ndr_print
*ndr
, const char *name
, const struct PNP_HwProfInfo
*r
)
72 uint32_t cntr_friendly_name_0
;
73 ndr_print_struct(ndr
, name
, "PNP_HwProfInfo");
75 ndr_print_uint32(ndr
, "profile_handle", r
->profile_handle
);
76 ndr
->print(ndr
, "%s: ARRAY(%d)", "friendly_name", (int)80);
78 for (cntr_friendly_name_0
=0;cntr_friendly_name_0
<80;cntr_friendly_name_0
++) {
80 if (asprintf(&idx_0
, "[%d]", cntr_friendly_name_0
) != -1) {
81 ndr_print_uint16(ndr
, "friendly_name", r
->friendly_name
[cntr_friendly_name_0
]);
86 ndr_print_uint32(ndr
, "flags", r
->flags
);
90 static enum ndr_err_code
ndr_push_PNP_Disconnect(struct ndr_push
*ndr
, int flags
, const struct PNP_Disconnect
*r
)
94 if (flags
& NDR_OUT
) {
95 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
97 return NDR_ERR_SUCCESS
;
100 static enum ndr_err_code
ndr_pull_PNP_Disconnect(struct ndr_pull
*ndr
, int flags
, struct PNP_Disconnect
*r
)
102 if (flags
& NDR_IN
) {
104 if (flags
& NDR_OUT
) {
105 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
107 return NDR_ERR_SUCCESS
;
110 _PUBLIC_
void ndr_print_PNP_Disconnect(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_Disconnect
*r
)
112 ndr_print_struct(ndr
, name
, "PNP_Disconnect");
114 if (flags
& NDR_SET_VALUES
) {
115 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
117 if (flags
& NDR_IN
) {
118 ndr_print_struct(ndr
, "in", "PNP_Disconnect");
122 if (flags
& NDR_OUT
) {
123 ndr_print_struct(ndr
, "out", "PNP_Disconnect");
125 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
131 static enum ndr_err_code
ndr_push_PNP_Connect(struct ndr_push
*ndr
, int flags
, const struct PNP_Connect
*r
)
133 if (flags
& NDR_IN
) {
135 if (flags
& NDR_OUT
) {
136 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
138 return NDR_ERR_SUCCESS
;
141 static enum ndr_err_code
ndr_pull_PNP_Connect(struct ndr_pull
*ndr
, int flags
, struct PNP_Connect
*r
)
143 if (flags
& NDR_IN
) {
145 if (flags
& NDR_OUT
) {
146 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
148 return NDR_ERR_SUCCESS
;
151 _PUBLIC_
void ndr_print_PNP_Connect(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_Connect
*r
)
153 ndr_print_struct(ndr
, name
, "PNP_Connect");
155 if (flags
& NDR_SET_VALUES
) {
156 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
158 if (flags
& NDR_IN
) {
159 ndr_print_struct(ndr
, "in", "PNP_Connect");
163 if (flags
& NDR_OUT
) {
164 ndr_print_struct(ndr
, "out", "PNP_Connect");
166 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
172 static enum ndr_err_code
ndr_push_PNP_GetVersion(struct ndr_push
*ndr
, int flags
, const struct PNP_GetVersion
*r
)
174 if (flags
& NDR_IN
) {
176 if (flags
& NDR_OUT
) {
177 if (r
->out
.version
== NULL
) {
178 return ndr_push_error(ndr
, NDR_ERR_INVALID_POINTER
, "NULL [ref] pointer");
180 NDR_CHECK(ndr_push_uint16(ndr
, NDR_SCALARS
, *r
->out
.version
));
181 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
183 return NDR_ERR_SUCCESS
;
186 static enum ndr_err_code
ndr_pull_PNP_GetVersion(struct ndr_pull
*ndr
, int flags
, struct PNP_GetVersion
*r
)
188 TALLOC_CTX
*_mem_save_version_0
;
189 if (flags
& NDR_IN
) {
192 NDR_PULL_ALLOC(ndr
, r
->out
.version
);
193 ZERO_STRUCTP(r
->out
.version
);
195 if (flags
& NDR_OUT
) {
196 if (ndr
->flags
& LIBNDR_FLAG_REF_ALLOC
) {
197 NDR_PULL_ALLOC(ndr
, r
->out
.version
);
199 _mem_save_version_0
= NDR_PULL_GET_MEM_CTX(ndr
);
200 NDR_PULL_SET_MEM_CTX(ndr
, r
->out
.version
, LIBNDR_FLAG_REF_ALLOC
);
201 NDR_CHECK(ndr_pull_uint16(ndr
, NDR_SCALARS
, r
->out
.version
));
202 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_version_0
, LIBNDR_FLAG_REF_ALLOC
);
203 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
205 return NDR_ERR_SUCCESS
;
208 _PUBLIC_
void ndr_print_PNP_GetVersion(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetVersion
*r
)
210 ndr_print_struct(ndr
, name
, "PNP_GetVersion");
212 if (flags
& NDR_SET_VALUES
) {
213 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
215 if (flags
& NDR_IN
) {
216 ndr_print_struct(ndr
, "in", "PNP_GetVersion");
220 if (flags
& NDR_OUT
) {
221 ndr_print_struct(ndr
, "out", "PNP_GetVersion");
223 ndr_print_ptr(ndr
, "version", r
->out
.version
);
225 ndr_print_uint16(ndr
, "version", *r
->out
.version
);
227 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
233 static enum ndr_err_code
ndr_push_PNP_GetGlobalState(struct ndr_push
*ndr
, int flags
, const struct PNP_GetGlobalState
*r
)
235 if (flags
& NDR_IN
) {
237 if (flags
& NDR_OUT
) {
238 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
240 return NDR_ERR_SUCCESS
;
243 static enum ndr_err_code
ndr_pull_PNP_GetGlobalState(struct ndr_pull
*ndr
, int flags
, struct PNP_GetGlobalState
*r
)
245 if (flags
& NDR_IN
) {
247 if (flags
& NDR_OUT
) {
248 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
250 return NDR_ERR_SUCCESS
;
253 _PUBLIC_
void ndr_print_PNP_GetGlobalState(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetGlobalState
*r
)
255 ndr_print_struct(ndr
, name
, "PNP_GetGlobalState");
257 if (flags
& NDR_SET_VALUES
) {
258 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
260 if (flags
& NDR_IN
) {
261 ndr_print_struct(ndr
, "in", "PNP_GetGlobalState");
265 if (flags
& NDR_OUT
) {
266 ndr_print_struct(ndr
, "out", "PNP_GetGlobalState");
268 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
274 static enum ndr_err_code
ndr_push_PNP_InitDetection(struct ndr_push
*ndr
, int flags
, const struct PNP_InitDetection
*r
)
276 if (flags
& NDR_IN
) {
278 if (flags
& NDR_OUT
) {
279 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
281 return NDR_ERR_SUCCESS
;
284 static enum ndr_err_code
ndr_pull_PNP_InitDetection(struct ndr_pull
*ndr
, int flags
, struct PNP_InitDetection
*r
)
286 if (flags
& NDR_IN
) {
288 if (flags
& NDR_OUT
) {
289 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
291 return NDR_ERR_SUCCESS
;
294 _PUBLIC_
void ndr_print_PNP_InitDetection(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_InitDetection
*r
)
296 ndr_print_struct(ndr
, name
, "PNP_InitDetection");
298 if (flags
& NDR_SET_VALUES
) {
299 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
301 if (flags
& NDR_IN
) {
302 ndr_print_struct(ndr
, "in", "PNP_InitDetection");
306 if (flags
& NDR_OUT
) {
307 ndr_print_struct(ndr
, "out", "PNP_InitDetection");
309 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
315 static enum ndr_err_code
ndr_push_PNP_ReportLogOn(struct ndr_push
*ndr
, int flags
, const struct PNP_ReportLogOn
*r
)
317 if (flags
& NDR_IN
) {
319 if (flags
& NDR_OUT
) {
320 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
322 return NDR_ERR_SUCCESS
;
325 static enum ndr_err_code
ndr_pull_PNP_ReportLogOn(struct ndr_pull
*ndr
, int flags
, struct PNP_ReportLogOn
*r
)
327 if (flags
& NDR_IN
) {
329 if (flags
& NDR_OUT
) {
330 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
332 return NDR_ERR_SUCCESS
;
335 _PUBLIC_
void ndr_print_PNP_ReportLogOn(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_ReportLogOn
*r
)
337 ndr_print_struct(ndr
, name
, "PNP_ReportLogOn");
339 if (flags
& NDR_SET_VALUES
) {
340 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
342 if (flags
& NDR_IN
) {
343 ndr_print_struct(ndr
, "in", "PNP_ReportLogOn");
347 if (flags
& NDR_OUT
) {
348 ndr_print_struct(ndr
, "out", "PNP_ReportLogOn");
350 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
356 static enum ndr_err_code
ndr_push_PNP_ValidateDeviceInstance(struct ndr_push
*ndr
, int flags
, const struct PNP_ValidateDeviceInstance
*r
)
358 if (flags
& NDR_IN
) {
359 if (r
->in
.devicepath
== NULL
) {
360 return ndr_push_error(ndr
, NDR_ERR_INVALID_POINTER
, "NULL [ref] pointer");
362 NDR_CHECK(ndr_push_uint3264(ndr
, NDR_SCALARS
, ndr_charset_length(r
->in
.devicepath
, CH_UTF16
)));
363 NDR_CHECK(ndr_push_uint3264(ndr
, NDR_SCALARS
, 0));
364 NDR_CHECK(ndr_push_uint3264(ndr
, NDR_SCALARS
, ndr_charset_length(r
->in
.devicepath
, CH_UTF16
)));
365 NDR_CHECK(ndr_push_charset(ndr
, NDR_SCALARS
, r
->in
.devicepath
, ndr_charset_length(r
->in
.devicepath
, CH_UTF16
), sizeof(uint16_t), CH_UTF16
));
366 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, r
->in
.flags
));
368 if (flags
& NDR_OUT
) {
369 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
371 return NDR_ERR_SUCCESS
;
374 static enum ndr_err_code
ndr_pull_PNP_ValidateDeviceInstance(struct ndr_pull
*ndr
, int flags
, struct PNP_ValidateDeviceInstance
*r
)
376 if (flags
& NDR_IN
) {
377 NDR_CHECK(ndr_pull_array_size(ndr
, &r
->in
.devicepath
));
378 NDR_CHECK(ndr_pull_array_length(ndr
, &r
->in
.devicepath
));
379 if (ndr_get_array_length(ndr
, &r
->in
.devicepath
) > ndr_get_array_size(ndr
, &r
->in
.devicepath
)) {
380 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
));
382 NDR_CHECK(ndr_check_string_terminator(ndr
, ndr_get_array_length(ndr
, &r
->in
.devicepath
), sizeof(uint16_t)));
383 NDR_CHECK(ndr_pull_charset(ndr
, NDR_SCALARS
, &r
->in
.devicepath
, ndr_get_array_length(ndr
, &r
->in
.devicepath
), sizeof(uint16_t), CH_UTF16
));
384 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, &r
->in
.flags
));
386 if (flags
& NDR_OUT
) {
387 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
389 return NDR_ERR_SUCCESS
;
392 _PUBLIC_
void ndr_print_PNP_ValidateDeviceInstance(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_ValidateDeviceInstance
*r
)
394 ndr_print_struct(ndr
, name
, "PNP_ValidateDeviceInstance");
396 if (flags
& NDR_SET_VALUES
) {
397 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
399 if (flags
& NDR_IN
) {
400 ndr_print_struct(ndr
, "in", "PNP_ValidateDeviceInstance");
402 ndr_print_ptr(ndr
, "devicepath", r
->in
.devicepath
);
404 ndr_print_string(ndr
, "devicepath", r
->in
.devicepath
);
406 ndr_print_uint32(ndr
, "flags", r
->in
.flags
);
409 if (flags
& NDR_OUT
) {
410 ndr_print_struct(ndr
, "out", "PNP_ValidateDeviceInstance");
412 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
418 static enum ndr_err_code
ndr_push_PNP_GetRootDeviceInstance(struct ndr_push
*ndr
, int flags
, const struct PNP_GetRootDeviceInstance
*r
)
420 if (flags
& NDR_IN
) {
422 if (flags
& NDR_OUT
) {
423 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
425 return NDR_ERR_SUCCESS
;
428 static enum ndr_err_code
ndr_pull_PNP_GetRootDeviceInstance(struct ndr_pull
*ndr
, int flags
, struct PNP_GetRootDeviceInstance
*r
)
430 if (flags
& NDR_IN
) {
432 if (flags
& NDR_OUT
) {
433 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
435 return NDR_ERR_SUCCESS
;
438 _PUBLIC_
void ndr_print_PNP_GetRootDeviceInstance(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetRootDeviceInstance
*r
)
440 ndr_print_struct(ndr
, name
, "PNP_GetRootDeviceInstance");
442 if (flags
& NDR_SET_VALUES
) {
443 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
445 if (flags
& NDR_IN
) {
446 ndr_print_struct(ndr
, "in", "PNP_GetRootDeviceInstance");
450 if (flags
& NDR_OUT
) {
451 ndr_print_struct(ndr
, "out", "PNP_GetRootDeviceInstance");
453 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
459 static enum ndr_err_code
ndr_push_PNP_GetRelatedDeviceInstance(struct ndr_push
*ndr
, int flags
, const struct PNP_GetRelatedDeviceInstance
*r
)
461 if (flags
& NDR_IN
) {
463 if (flags
& NDR_OUT
) {
464 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
466 return NDR_ERR_SUCCESS
;
469 static enum ndr_err_code
ndr_pull_PNP_GetRelatedDeviceInstance(struct ndr_pull
*ndr
, int flags
, struct PNP_GetRelatedDeviceInstance
*r
)
471 if (flags
& NDR_IN
) {
473 if (flags
& NDR_OUT
) {
474 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
476 return NDR_ERR_SUCCESS
;
479 _PUBLIC_
void ndr_print_PNP_GetRelatedDeviceInstance(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetRelatedDeviceInstance
*r
)
481 ndr_print_struct(ndr
, name
, "PNP_GetRelatedDeviceInstance");
483 if (flags
& NDR_SET_VALUES
) {
484 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
486 if (flags
& NDR_IN
) {
487 ndr_print_struct(ndr
, "in", "PNP_GetRelatedDeviceInstance");
491 if (flags
& NDR_OUT
) {
492 ndr_print_struct(ndr
, "out", "PNP_GetRelatedDeviceInstance");
494 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
500 static enum ndr_err_code
ndr_push_PNP_EnumerateSubKeys(struct ndr_push
*ndr
, int flags
, const struct PNP_EnumerateSubKeys
*r
)
502 if (flags
& NDR_IN
) {
504 if (flags
& NDR_OUT
) {
505 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
507 return NDR_ERR_SUCCESS
;
510 static enum ndr_err_code
ndr_pull_PNP_EnumerateSubKeys(struct ndr_pull
*ndr
, int flags
, struct PNP_EnumerateSubKeys
*r
)
512 if (flags
& NDR_IN
) {
514 if (flags
& NDR_OUT
) {
515 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
517 return NDR_ERR_SUCCESS
;
520 _PUBLIC_
void ndr_print_PNP_EnumerateSubKeys(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_EnumerateSubKeys
*r
)
522 ndr_print_struct(ndr
, name
, "PNP_EnumerateSubKeys");
524 if (flags
& NDR_SET_VALUES
) {
525 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
527 if (flags
& NDR_IN
) {
528 ndr_print_struct(ndr
, "in", "PNP_EnumerateSubKeys");
532 if (flags
& NDR_OUT
) {
533 ndr_print_struct(ndr
, "out", "PNP_EnumerateSubKeys");
535 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
541 static enum ndr_err_code
ndr_push_PNP_GetDeviceList(struct ndr_push
*ndr
, int flags
, const struct PNP_GetDeviceList
*r
)
543 uint32_t cntr_buffer_1
;
544 if (flags
& NDR_IN
) {
545 NDR_CHECK(ndr_push_unique_ptr(ndr
, r
->in
.filter
));
547 NDR_CHECK(ndr_push_uint3264(ndr
, NDR_SCALARS
, ndr_charset_length(r
->in
.filter
, CH_UTF16
)));
548 NDR_CHECK(ndr_push_uint3264(ndr
, NDR_SCALARS
, 0));
549 NDR_CHECK(ndr_push_uint3264(ndr
, NDR_SCALARS
, ndr_charset_length(r
->in
.filter
, CH_UTF16
)));
550 NDR_CHECK(ndr_push_charset(ndr
, NDR_SCALARS
, r
->in
.filter
, ndr_charset_length(r
->in
.filter
, CH_UTF16
), sizeof(uint16_t), CH_UTF16
));
552 if (r
->in
.length
== NULL
) {
553 return ndr_push_error(ndr
, NDR_ERR_INVALID_POINTER
, "NULL [ref] pointer");
555 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, *r
->in
.length
));
556 NDR_CHECK(ndr_push_PNP_GetIdListFlags(ndr
, NDR_SCALARS
, r
->in
.flags
));
558 if (flags
& NDR_OUT
) {
559 if (r
->out
.buffer
== NULL
) {
560 return ndr_push_error(ndr
, NDR_ERR_INVALID_POINTER
, "NULL [ref] pointer");
562 NDR_CHECK(ndr_push_uint3264(ndr
, NDR_SCALARS
, *r
->out
.length
));
563 NDR_CHECK(ndr_push_uint3264(ndr
, NDR_SCALARS
, 0));
564 NDR_CHECK(ndr_push_uint3264(ndr
, NDR_SCALARS
, *r
->out
.length
));
565 for (cntr_buffer_1
= 0; cntr_buffer_1
< *r
->out
.length
; cntr_buffer_1
++) {
566 NDR_CHECK(ndr_push_uint16(ndr
, NDR_SCALARS
, r
->out
.buffer
[cntr_buffer_1
]));
568 if (r
->out
.length
== NULL
) {
569 return ndr_push_error(ndr
, NDR_ERR_INVALID_POINTER
, "NULL [ref] pointer");
571 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, *r
->out
.length
));
572 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
574 return NDR_ERR_SUCCESS
;
577 static enum ndr_err_code
ndr_pull_PNP_GetDeviceList(struct ndr_pull
*ndr
, int flags
, struct PNP_GetDeviceList
*r
)
579 uint32_t _ptr_filter
;
580 uint32_t cntr_buffer_1
;
581 TALLOC_CTX
*_mem_save_filter_0
;
582 TALLOC_CTX
*_mem_save_buffer_1
;
583 TALLOC_CTX
*_mem_save_length_0
;
584 if (flags
& NDR_IN
) {
587 NDR_CHECK(ndr_pull_generic_ptr(ndr
, &_ptr_filter
));
589 NDR_PULL_ALLOC(ndr
, r
->in
.filter
);
594 _mem_save_filter_0
= NDR_PULL_GET_MEM_CTX(ndr
);
595 NDR_PULL_SET_MEM_CTX(ndr
, r
->in
.filter
, 0);
596 NDR_CHECK(ndr_pull_array_size(ndr
, &r
->in
.filter
));
597 NDR_CHECK(ndr_pull_array_length(ndr
, &r
->in
.filter
));
598 if (ndr_get_array_length(ndr
, &r
->in
.filter
) > ndr_get_array_size(ndr
, &r
->in
.filter
)) {
599 return ndr_pull_error(ndr
, NDR_ERR_ARRAY_SIZE
, "Bad array size %u should exceed array length %u", ndr_get_array_size(ndr
, &r
->in
.filter
), ndr_get_array_length(ndr
, &r
->in
.filter
));
601 NDR_CHECK(ndr_check_string_terminator(ndr
, ndr_get_array_length(ndr
, &r
->in
.filter
), sizeof(uint16_t)));
602 NDR_CHECK(ndr_pull_charset(ndr
, NDR_SCALARS
, &r
->in
.filter
, ndr_get_array_length(ndr
, &r
->in
.filter
), sizeof(uint16_t), CH_UTF16
));
603 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_filter_0
, 0);
605 if (ndr
->flags
& LIBNDR_FLAG_REF_ALLOC
) {
606 NDR_PULL_ALLOC(ndr
, r
->in
.length
);
608 _mem_save_length_0
= NDR_PULL_GET_MEM_CTX(ndr
);
609 NDR_PULL_SET_MEM_CTX(ndr
, r
->in
.length
, LIBNDR_FLAG_REF_ALLOC
);
610 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, r
->in
.length
));
611 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_length_0
, LIBNDR_FLAG_REF_ALLOC
);
612 NDR_CHECK(ndr_pull_PNP_GetIdListFlags(ndr
, NDR_SCALARS
, &r
->in
.flags
));
613 NDR_PULL_ALLOC_N(ndr
, r
->out
.buffer
, *r
->in
.length
);
614 memset(r
->out
.buffer
, 0, (*r
->in
.length
) * sizeof(*r
->out
.buffer
));
615 NDR_PULL_ALLOC(ndr
, r
->out
.length
);
616 *r
->out
.length
= *r
->in
.length
;
618 if (flags
& NDR_OUT
) {
619 NDR_CHECK(ndr_pull_array_size(ndr
, &r
->out
.buffer
));
620 NDR_CHECK(ndr_pull_array_length(ndr
, &r
->out
.buffer
));
621 if (ndr_get_array_length(ndr
, &r
->out
.buffer
) > ndr_get_array_size(ndr
, &r
->out
.buffer
)) {
622 return ndr_pull_error(ndr
, NDR_ERR_ARRAY_SIZE
, "Bad array size %u should exceed array length %u", ndr_get_array_size(ndr
, &r
->out
.buffer
), ndr_get_array_length(ndr
, &r
->out
.buffer
));
624 if (ndr
->flags
& LIBNDR_FLAG_REF_ALLOC
) {
625 NDR_PULL_ALLOC_N(ndr
, r
->out
.buffer
, ndr_get_array_size(ndr
, &r
->out
.buffer
));
627 _mem_save_buffer_1
= NDR_PULL_GET_MEM_CTX(ndr
);
628 NDR_PULL_SET_MEM_CTX(ndr
, r
->out
.buffer
, 0);
629 for (cntr_buffer_1
= 0; cntr_buffer_1
< ndr_get_array_length(ndr
, &r
->out
.buffer
); cntr_buffer_1
++) {
630 NDR_CHECK(ndr_pull_uint16(ndr
, NDR_SCALARS
, &r
->out
.buffer
[cntr_buffer_1
]));
632 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_buffer_1
, 0);
633 if (ndr
->flags
& LIBNDR_FLAG_REF_ALLOC
) {
634 NDR_PULL_ALLOC(ndr
, r
->out
.length
);
636 _mem_save_length_0
= NDR_PULL_GET_MEM_CTX(ndr
);
637 NDR_PULL_SET_MEM_CTX(ndr
, r
->out
.length
, LIBNDR_FLAG_REF_ALLOC
);
638 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, r
->out
.length
));
639 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_length_0
, LIBNDR_FLAG_REF_ALLOC
);
640 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
642 NDR_CHECK(ndr_check_array_size(ndr
, (void*)&r
->out
.buffer
, *r
->out
.length
));
645 NDR_CHECK(ndr_check_array_length(ndr
, (void*)&r
->out
.buffer
, *r
->out
.length
));
648 return NDR_ERR_SUCCESS
;
651 _PUBLIC_
void ndr_print_PNP_GetDeviceList(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetDeviceList
*r
)
653 uint32_t cntr_buffer_1
;
654 ndr_print_struct(ndr
, name
, "PNP_GetDeviceList");
656 if (flags
& NDR_SET_VALUES
) {
657 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
659 if (flags
& NDR_IN
) {
660 ndr_print_struct(ndr
, "in", "PNP_GetDeviceList");
662 ndr_print_ptr(ndr
, "filter", r
->in
.filter
);
665 ndr_print_string(ndr
, "filter", r
->in
.filter
);
668 ndr_print_ptr(ndr
, "length", r
->in
.length
);
670 ndr_print_uint32(ndr
, "length", *r
->in
.length
);
672 ndr_print_PNP_GetIdListFlags(ndr
, "flags", r
->in
.flags
);
675 if (flags
& NDR_OUT
) {
676 ndr_print_struct(ndr
, "out", "PNP_GetDeviceList");
678 ndr_print_ptr(ndr
, "buffer", r
->out
.buffer
);
680 ndr
->print(ndr
, "%s: ARRAY(%d)", "buffer", (int)*r
->out
.length
);
682 for (cntr_buffer_1
=0;cntr_buffer_1
<*r
->out
.length
;cntr_buffer_1
++) {
684 if (asprintf(&idx_1
, "[%d]", cntr_buffer_1
) != -1) {
685 ndr_print_uint16(ndr
, "buffer", r
->out
.buffer
[cntr_buffer_1
]);
691 ndr_print_ptr(ndr
, "length", r
->out
.length
);
693 ndr_print_uint32(ndr
, "length", *r
->out
.length
);
695 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
701 static enum ndr_err_code
ndr_push_PNP_GetDeviceListSize(struct ndr_push
*ndr
, int flags
, const struct PNP_GetDeviceListSize
*r
)
703 if (flags
& NDR_IN
) {
704 NDR_CHECK(ndr_push_unique_ptr(ndr
, r
->in
.devicename
));
705 if (r
->in
.devicename
) {
706 NDR_CHECK(ndr_push_uint3264(ndr
, NDR_SCALARS
, ndr_charset_length(r
->in
.devicename
, CH_UTF16
)));
707 NDR_CHECK(ndr_push_uint3264(ndr
, NDR_SCALARS
, 0));
708 NDR_CHECK(ndr_push_uint3264(ndr
, NDR_SCALARS
, ndr_charset_length(r
->in
.devicename
, CH_UTF16
)));
709 NDR_CHECK(ndr_push_charset(ndr
, NDR_SCALARS
, r
->in
.devicename
, ndr_charset_length(r
->in
.devicename
, CH_UTF16
), sizeof(uint16_t), CH_UTF16
));
711 NDR_CHECK(ndr_push_PNP_GetIdListFlags(ndr
, NDR_SCALARS
, r
->in
.flags
));
713 if (flags
& NDR_OUT
) {
714 if (r
->out
.size
== NULL
) {
715 return ndr_push_error(ndr
, NDR_ERR_INVALID_POINTER
, "NULL [ref] pointer");
717 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, *r
->out
.size
));
718 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
720 return NDR_ERR_SUCCESS
;
723 static enum ndr_err_code
ndr_pull_PNP_GetDeviceListSize(struct ndr_pull
*ndr
, int flags
, struct PNP_GetDeviceListSize
*r
)
725 uint32_t _ptr_devicename
;
726 TALLOC_CTX
*_mem_save_devicename_0
;
727 TALLOC_CTX
*_mem_save_size_0
;
728 if (flags
& NDR_IN
) {
731 NDR_CHECK(ndr_pull_generic_ptr(ndr
, &_ptr_devicename
));
732 if (_ptr_devicename
) {
733 NDR_PULL_ALLOC(ndr
, r
->in
.devicename
);
735 r
->in
.devicename
= NULL
;
737 if (r
->in
.devicename
) {
738 _mem_save_devicename_0
= NDR_PULL_GET_MEM_CTX(ndr
);
739 NDR_PULL_SET_MEM_CTX(ndr
, r
->in
.devicename
, 0);
740 NDR_CHECK(ndr_pull_array_size(ndr
, &r
->in
.devicename
));
741 NDR_CHECK(ndr_pull_array_length(ndr
, &r
->in
.devicename
));
742 if (ndr_get_array_length(ndr
, &r
->in
.devicename
) > ndr_get_array_size(ndr
, &r
->in
.devicename
)) {
743 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
));
745 NDR_CHECK(ndr_check_string_terminator(ndr
, ndr_get_array_length(ndr
, &r
->in
.devicename
), sizeof(uint16_t)));
746 NDR_CHECK(ndr_pull_charset(ndr
, NDR_SCALARS
, &r
->in
.devicename
, ndr_get_array_length(ndr
, &r
->in
.devicename
), sizeof(uint16_t), CH_UTF16
));
747 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_devicename_0
, 0);
749 NDR_CHECK(ndr_pull_PNP_GetIdListFlags(ndr
, NDR_SCALARS
, &r
->in
.flags
));
750 NDR_PULL_ALLOC(ndr
, r
->out
.size
);
751 ZERO_STRUCTP(r
->out
.size
);
753 if (flags
& NDR_OUT
) {
754 if (ndr
->flags
& LIBNDR_FLAG_REF_ALLOC
) {
755 NDR_PULL_ALLOC(ndr
, r
->out
.size
);
757 _mem_save_size_0
= NDR_PULL_GET_MEM_CTX(ndr
);
758 NDR_PULL_SET_MEM_CTX(ndr
, r
->out
.size
, LIBNDR_FLAG_REF_ALLOC
);
759 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, r
->out
.size
));
760 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_size_0
, LIBNDR_FLAG_REF_ALLOC
);
761 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
763 return NDR_ERR_SUCCESS
;
766 _PUBLIC_
void ndr_print_PNP_GetDeviceListSize(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetDeviceListSize
*r
)
768 ndr_print_struct(ndr
, name
, "PNP_GetDeviceListSize");
770 if (flags
& NDR_SET_VALUES
) {
771 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
773 if (flags
& NDR_IN
) {
774 ndr_print_struct(ndr
, "in", "PNP_GetDeviceListSize");
776 ndr_print_ptr(ndr
, "devicename", r
->in
.devicename
);
778 if (r
->in
.devicename
) {
779 ndr_print_string(ndr
, "devicename", r
->in
.devicename
);
782 ndr_print_PNP_GetIdListFlags(ndr
, "flags", r
->in
.flags
);
785 if (flags
& NDR_OUT
) {
786 ndr_print_struct(ndr
, "out", "PNP_GetDeviceListSize");
788 ndr_print_ptr(ndr
, "size", r
->out
.size
);
790 ndr_print_uint32(ndr
, "size", *r
->out
.size
);
792 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
798 static enum ndr_err_code
ndr_push_PNP_GetDepth(struct ndr_push
*ndr
, int flags
, const struct PNP_GetDepth
*r
)
800 if (flags
& NDR_IN
) {
802 if (flags
& NDR_OUT
) {
803 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
805 return NDR_ERR_SUCCESS
;
808 static enum ndr_err_code
ndr_pull_PNP_GetDepth(struct ndr_pull
*ndr
, int flags
, struct PNP_GetDepth
*r
)
810 if (flags
& NDR_IN
) {
812 if (flags
& NDR_OUT
) {
813 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
815 return NDR_ERR_SUCCESS
;
818 _PUBLIC_
void ndr_print_PNP_GetDepth(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetDepth
*r
)
820 ndr_print_struct(ndr
, name
, "PNP_GetDepth");
822 if (flags
& NDR_SET_VALUES
) {
823 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
825 if (flags
& NDR_IN
) {
826 ndr_print_struct(ndr
, "in", "PNP_GetDepth");
830 if (flags
& NDR_OUT
) {
831 ndr_print_struct(ndr
, "out", "PNP_GetDepth");
833 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
839 static enum ndr_err_code
ndr_push_PNP_GetDeviceRegProp(struct ndr_push
*ndr
, int flags
, const struct PNP_GetDeviceRegProp
*r
)
841 if (flags
& NDR_IN
) {
842 if (r
->in
.devicepath
== NULL
) {
843 return ndr_push_error(ndr
, NDR_ERR_INVALID_POINTER
, "NULL [ref] pointer");
845 NDR_CHECK(ndr_push_uint3264(ndr
, NDR_SCALARS
, ndr_charset_length(r
->in
.devicepath
, CH_UTF16
)));
846 NDR_CHECK(ndr_push_uint3264(ndr
, NDR_SCALARS
, 0));
847 NDR_CHECK(ndr_push_uint3264(ndr
, NDR_SCALARS
, ndr_charset_length(r
->in
.devicepath
, CH_UTF16
)));
848 NDR_CHECK(ndr_push_charset(ndr
, NDR_SCALARS
, r
->in
.devicepath
, ndr_charset_length(r
->in
.devicepath
, CH_UTF16
), sizeof(uint16_t), CH_UTF16
));
849 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, r
->in
.property
));
850 if (r
->in
.reg_data_type
== NULL
) {
851 return ndr_push_error(ndr
, NDR_ERR_INVALID_POINTER
, "NULL [ref] pointer");
853 NDR_CHECK(ndr_push_winreg_Type(ndr
, NDR_SCALARS
, *r
->in
.reg_data_type
));
854 if (r
->in
.buffer_size
== NULL
) {
855 return ndr_push_error(ndr
, NDR_ERR_INVALID_POINTER
, "NULL [ref] pointer");
857 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, *r
->in
.buffer_size
));
858 if (r
->in
.needed
== NULL
) {
859 return ndr_push_error(ndr
, NDR_ERR_INVALID_POINTER
, "NULL [ref] pointer");
861 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, *r
->in
.needed
));
862 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, r
->in
.flags
));
864 if (flags
& NDR_OUT
) {
865 if (r
->out
.reg_data_type
== NULL
) {
866 return ndr_push_error(ndr
, NDR_ERR_INVALID_POINTER
, "NULL [ref] pointer");
868 NDR_CHECK(ndr_push_winreg_Type(ndr
, NDR_SCALARS
, *r
->out
.reg_data_type
));
869 if (r
->out
.buffer
== NULL
) {
870 return ndr_push_error(ndr
, NDR_ERR_INVALID_POINTER
, "NULL [ref] pointer");
872 NDR_CHECK(ndr_push_uint3264(ndr
, NDR_SCALARS
, *r
->out
.buffer_size
));
873 NDR_CHECK(ndr_push_uint3264(ndr
, NDR_SCALARS
, 0));
874 NDR_CHECK(ndr_push_uint3264(ndr
, NDR_SCALARS
, *r
->out
.buffer_size
));
875 NDR_CHECK(ndr_push_array_uint8(ndr
, NDR_SCALARS
, r
->out
.buffer
, *r
->out
.buffer_size
));
876 if (r
->out
.buffer_size
== NULL
) {
877 return ndr_push_error(ndr
, NDR_ERR_INVALID_POINTER
, "NULL [ref] pointer");
879 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, *r
->out
.buffer_size
));
880 if (r
->out
.needed
== NULL
) {
881 return ndr_push_error(ndr
, NDR_ERR_INVALID_POINTER
, "NULL [ref] pointer");
883 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, *r
->out
.needed
));
884 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
886 return NDR_ERR_SUCCESS
;
889 static enum ndr_err_code
ndr_pull_PNP_GetDeviceRegProp(struct ndr_pull
*ndr
, int flags
, struct PNP_GetDeviceRegProp
*r
)
891 TALLOC_CTX
*_mem_save_reg_data_type_0
;
892 TALLOC_CTX
*_mem_save_buffer_size_0
;
893 TALLOC_CTX
*_mem_save_needed_0
;
894 if (flags
& NDR_IN
) {
897 NDR_CHECK(ndr_pull_array_size(ndr
, &r
->in
.devicepath
));
898 NDR_CHECK(ndr_pull_array_length(ndr
, &r
->in
.devicepath
));
899 if (ndr_get_array_length(ndr
, &r
->in
.devicepath
) > ndr_get_array_size(ndr
, &r
->in
.devicepath
)) {
900 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
));
902 NDR_CHECK(ndr_check_string_terminator(ndr
, ndr_get_array_length(ndr
, &r
->in
.devicepath
), sizeof(uint16_t)));
903 NDR_CHECK(ndr_pull_charset(ndr
, NDR_SCALARS
, &r
->in
.devicepath
, ndr_get_array_length(ndr
, &r
->in
.devicepath
), sizeof(uint16_t), CH_UTF16
));
904 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, &r
->in
.property
));
905 if (ndr
->flags
& LIBNDR_FLAG_REF_ALLOC
) {
906 NDR_PULL_ALLOC(ndr
, r
->in
.reg_data_type
);
908 _mem_save_reg_data_type_0
= NDR_PULL_GET_MEM_CTX(ndr
);
909 NDR_PULL_SET_MEM_CTX(ndr
, r
->in
.reg_data_type
, LIBNDR_FLAG_REF_ALLOC
);
910 NDR_CHECK(ndr_pull_winreg_Type(ndr
, NDR_SCALARS
, r
->in
.reg_data_type
));
911 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_reg_data_type_0
, LIBNDR_FLAG_REF_ALLOC
);
912 if (ndr
->flags
& LIBNDR_FLAG_REF_ALLOC
) {
913 NDR_PULL_ALLOC(ndr
, r
->in
.buffer_size
);
915 _mem_save_buffer_size_0
= NDR_PULL_GET_MEM_CTX(ndr
);
916 NDR_PULL_SET_MEM_CTX(ndr
, r
->in
.buffer_size
, LIBNDR_FLAG_REF_ALLOC
);
917 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, r
->in
.buffer_size
));
918 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_buffer_size_0
, LIBNDR_FLAG_REF_ALLOC
);
919 if (ndr
->flags
& LIBNDR_FLAG_REF_ALLOC
) {
920 NDR_PULL_ALLOC(ndr
, r
->in
.needed
);
922 _mem_save_needed_0
= NDR_PULL_GET_MEM_CTX(ndr
);
923 NDR_PULL_SET_MEM_CTX(ndr
, r
->in
.needed
, LIBNDR_FLAG_REF_ALLOC
);
924 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, r
->in
.needed
));
925 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_needed_0
, LIBNDR_FLAG_REF_ALLOC
);
926 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, &r
->in
.flags
));
927 NDR_PULL_ALLOC(ndr
, r
->out
.reg_data_type
);
928 *r
->out
.reg_data_type
= *r
->in
.reg_data_type
;
929 NDR_PULL_ALLOC_N(ndr
, r
->out
.buffer
, *r
->in
.buffer_size
);
930 memset(r
->out
.buffer
, 0, (*r
->in
.buffer_size
) * sizeof(*r
->out
.buffer
));
931 NDR_PULL_ALLOC(ndr
, r
->out
.buffer_size
);
932 *r
->out
.buffer_size
= *r
->in
.buffer_size
;
933 NDR_PULL_ALLOC(ndr
, r
->out
.needed
);
934 *r
->out
.needed
= *r
->in
.needed
;
936 if (flags
& NDR_OUT
) {
937 if (ndr
->flags
& LIBNDR_FLAG_REF_ALLOC
) {
938 NDR_PULL_ALLOC(ndr
, r
->out
.reg_data_type
);
940 _mem_save_reg_data_type_0
= NDR_PULL_GET_MEM_CTX(ndr
);
941 NDR_PULL_SET_MEM_CTX(ndr
, r
->out
.reg_data_type
, LIBNDR_FLAG_REF_ALLOC
);
942 NDR_CHECK(ndr_pull_winreg_Type(ndr
, NDR_SCALARS
, r
->out
.reg_data_type
));
943 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_reg_data_type_0
, LIBNDR_FLAG_REF_ALLOC
);
944 NDR_CHECK(ndr_pull_array_size(ndr
, &r
->out
.buffer
));
945 NDR_CHECK(ndr_pull_array_length(ndr
, &r
->out
.buffer
));
946 if (ndr_get_array_length(ndr
, &r
->out
.buffer
) > ndr_get_array_size(ndr
, &r
->out
.buffer
)) {
947 return ndr_pull_error(ndr
, NDR_ERR_ARRAY_SIZE
, "Bad array size %u should exceed array length %u", ndr_get_array_size(ndr
, &r
->out
.buffer
), ndr_get_array_length(ndr
, &r
->out
.buffer
));
949 if (ndr
->flags
& LIBNDR_FLAG_REF_ALLOC
) {
950 NDR_PULL_ALLOC_N(ndr
, r
->out
.buffer
, ndr_get_array_size(ndr
, &r
->out
.buffer
));
952 NDR_CHECK(ndr_pull_array_uint8(ndr
, NDR_SCALARS
, r
->out
.buffer
, ndr_get_array_length(ndr
, &r
->out
.buffer
)));
953 if (ndr
->flags
& LIBNDR_FLAG_REF_ALLOC
) {
954 NDR_PULL_ALLOC(ndr
, r
->out
.buffer_size
);
956 _mem_save_buffer_size_0
= NDR_PULL_GET_MEM_CTX(ndr
);
957 NDR_PULL_SET_MEM_CTX(ndr
, r
->out
.buffer_size
, LIBNDR_FLAG_REF_ALLOC
);
958 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, r
->out
.buffer_size
));
959 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_buffer_size_0
, LIBNDR_FLAG_REF_ALLOC
);
960 if (ndr
->flags
& LIBNDR_FLAG_REF_ALLOC
) {
961 NDR_PULL_ALLOC(ndr
, r
->out
.needed
);
963 _mem_save_needed_0
= NDR_PULL_GET_MEM_CTX(ndr
);
964 NDR_PULL_SET_MEM_CTX(ndr
, r
->out
.needed
, LIBNDR_FLAG_REF_ALLOC
);
965 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, r
->out
.needed
));
966 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_needed_0
, LIBNDR_FLAG_REF_ALLOC
);
967 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
969 NDR_CHECK(ndr_check_array_size(ndr
, (void*)&r
->out
.buffer
, *r
->out
.buffer_size
));
972 NDR_CHECK(ndr_check_array_length(ndr
, (void*)&r
->out
.buffer
, *r
->out
.buffer_size
));
975 return NDR_ERR_SUCCESS
;
978 _PUBLIC_
void ndr_print_PNP_GetDeviceRegProp(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetDeviceRegProp
*r
)
980 ndr_print_struct(ndr
, name
, "PNP_GetDeviceRegProp");
982 if (flags
& NDR_SET_VALUES
) {
983 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
985 if (flags
& NDR_IN
) {
986 ndr_print_struct(ndr
, "in", "PNP_GetDeviceRegProp");
988 ndr_print_ptr(ndr
, "devicepath", r
->in
.devicepath
);
990 ndr_print_string(ndr
, "devicepath", r
->in
.devicepath
);
992 ndr_print_uint32(ndr
, "property", r
->in
.property
);
993 ndr_print_ptr(ndr
, "reg_data_type", r
->in
.reg_data_type
);
995 ndr_print_winreg_Type(ndr
, "reg_data_type", *r
->in
.reg_data_type
);
997 ndr_print_ptr(ndr
, "buffer_size", r
->in
.buffer_size
);
999 ndr_print_uint32(ndr
, "buffer_size", *r
->in
.buffer_size
);
1001 ndr_print_ptr(ndr
, "needed", r
->in
.needed
);
1003 ndr_print_uint32(ndr
, "needed", *r
->in
.needed
);
1005 ndr_print_uint32(ndr
, "flags", r
->in
.flags
);
1008 if (flags
& NDR_OUT
) {
1009 ndr_print_struct(ndr
, "out", "PNP_GetDeviceRegProp");
1011 ndr_print_ptr(ndr
, "reg_data_type", r
->out
.reg_data_type
);
1013 ndr_print_winreg_Type(ndr
, "reg_data_type", *r
->out
.reg_data_type
);
1015 ndr_print_ptr(ndr
, "buffer", r
->out
.buffer
);
1017 ndr_print_array_uint8(ndr
, "buffer", r
->out
.buffer
, *r
->out
.buffer_size
);
1019 ndr_print_ptr(ndr
, "buffer_size", r
->out
.buffer_size
);
1021 ndr_print_uint32(ndr
, "buffer_size", *r
->out
.buffer_size
);
1023 ndr_print_ptr(ndr
, "needed", r
->out
.needed
);
1025 ndr_print_uint32(ndr
, "needed", *r
->out
.needed
);
1027 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1033 static enum ndr_err_code
ndr_push_PNP_SetDeviceRegProp(struct ndr_push
*ndr
, int flags
, const struct PNP_SetDeviceRegProp
*r
)
1035 if (flags
& NDR_IN
) {
1037 if (flags
& NDR_OUT
) {
1038 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1040 return NDR_ERR_SUCCESS
;
1043 static enum ndr_err_code
ndr_pull_PNP_SetDeviceRegProp(struct ndr_pull
*ndr
, int flags
, struct PNP_SetDeviceRegProp
*r
)
1045 if (flags
& NDR_IN
) {
1047 if (flags
& NDR_OUT
) {
1048 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1050 return NDR_ERR_SUCCESS
;
1053 _PUBLIC_
void ndr_print_PNP_SetDeviceRegProp(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_SetDeviceRegProp
*r
)
1055 ndr_print_struct(ndr
, name
, "PNP_SetDeviceRegProp");
1057 if (flags
& NDR_SET_VALUES
) {
1058 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1060 if (flags
& NDR_IN
) {
1061 ndr_print_struct(ndr
, "in", "PNP_SetDeviceRegProp");
1065 if (flags
& NDR_OUT
) {
1066 ndr_print_struct(ndr
, "out", "PNP_SetDeviceRegProp");
1068 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1074 static enum ndr_err_code
ndr_push_PNP_GetClassInstance(struct ndr_push
*ndr
, int flags
, const struct PNP_GetClassInstance
*r
)
1076 if (flags
& NDR_IN
) {
1078 if (flags
& NDR_OUT
) {
1079 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1081 return NDR_ERR_SUCCESS
;
1084 static enum ndr_err_code
ndr_pull_PNP_GetClassInstance(struct ndr_pull
*ndr
, int flags
, struct PNP_GetClassInstance
*r
)
1086 if (flags
& NDR_IN
) {
1088 if (flags
& NDR_OUT
) {
1089 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1091 return NDR_ERR_SUCCESS
;
1094 _PUBLIC_
void ndr_print_PNP_GetClassInstance(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetClassInstance
*r
)
1096 ndr_print_struct(ndr
, name
, "PNP_GetClassInstance");
1098 if (flags
& NDR_SET_VALUES
) {
1099 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1101 if (flags
& NDR_IN
) {
1102 ndr_print_struct(ndr
, "in", "PNP_GetClassInstance");
1106 if (flags
& NDR_OUT
) {
1107 ndr_print_struct(ndr
, "out", "PNP_GetClassInstance");
1109 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1115 static enum ndr_err_code
ndr_push_PNP_CreateKey(struct ndr_push
*ndr
, int flags
, const struct PNP_CreateKey
*r
)
1117 if (flags
& NDR_IN
) {
1119 if (flags
& NDR_OUT
) {
1120 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1122 return NDR_ERR_SUCCESS
;
1125 static enum ndr_err_code
ndr_pull_PNP_CreateKey(struct ndr_pull
*ndr
, int flags
, struct PNP_CreateKey
*r
)
1127 if (flags
& NDR_IN
) {
1129 if (flags
& NDR_OUT
) {
1130 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1132 return NDR_ERR_SUCCESS
;
1135 _PUBLIC_
void ndr_print_PNP_CreateKey(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_CreateKey
*r
)
1137 ndr_print_struct(ndr
, name
, "PNP_CreateKey");
1139 if (flags
& NDR_SET_VALUES
) {
1140 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1142 if (flags
& NDR_IN
) {
1143 ndr_print_struct(ndr
, "in", "PNP_CreateKey");
1147 if (flags
& NDR_OUT
) {
1148 ndr_print_struct(ndr
, "out", "PNP_CreateKey");
1150 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1156 static enum ndr_err_code
ndr_push_PNP_DeleteRegistryKey(struct ndr_push
*ndr
, int flags
, const struct PNP_DeleteRegistryKey
*r
)
1158 if (flags
& NDR_IN
) {
1160 if (flags
& NDR_OUT
) {
1161 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1163 return NDR_ERR_SUCCESS
;
1166 static enum ndr_err_code
ndr_pull_PNP_DeleteRegistryKey(struct ndr_pull
*ndr
, int flags
, struct PNP_DeleteRegistryKey
*r
)
1168 if (flags
& NDR_IN
) {
1170 if (flags
& NDR_OUT
) {
1171 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1173 return NDR_ERR_SUCCESS
;
1176 _PUBLIC_
void ndr_print_PNP_DeleteRegistryKey(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_DeleteRegistryKey
*r
)
1178 ndr_print_struct(ndr
, name
, "PNP_DeleteRegistryKey");
1180 if (flags
& NDR_SET_VALUES
) {
1181 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1183 if (flags
& NDR_IN
) {
1184 ndr_print_struct(ndr
, "in", "PNP_DeleteRegistryKey");
1188 if (flags
& NDR_OUT
) {
1189 ndr_print_struct(ndr
, "out", "PNP_DeleteRegistryKey");
1191 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1197 static enum ndr_err_code
ndr_push_PNP_GetClassCount(struct ndr_push
*ndr
, int flags
, const struct PNP_GetClassCount
*r
)
1199 if (flags
& NDR_IN
) {
1201 if (flags
& NDR_OUT
) {
1202 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1204 return NDR_ERR_SUCCESS
;
1207 static enum ndr_err_code
ndr_pull_PNP_GetClassCount(struct ndr_pull
*ndr
, int flags
, struct PNP_GetClassCount
*r
)
1209 if (flags
& NDR_IN
) {
1211 if (flags
& NDR_OUT
) {
1212 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1214 return NDR_ERR_SUCCESS
;
1217 _PUBLIC_
void ndr_print_PNP_GetClassCount(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetClassCount
*r
)
1219 ndr_print_struct(ndr
, name
, "PNP_GetClassCount");
1221 if (flags
& NDR_SET_VALUES
) {
1222 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1224 if (flags
& NDR_IN
) {
1225 ndr_print_struct(ndr
, "in", "PNP_GetClassCount");
1229 if (flags
& NDR_OUT
) {
1230 ndr_print_struct(ndr
, "out", "PNP_GetClassCount");
1232 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1238 static enum ndr_err_code
ndr_push_PNP_GetClassName(struct ndr_push
*ndr
, int flags
, const struct PNP_GetClassName
*r
)
1240 if (flags
& NDR_IN
) {
1242 if (flags
& NDR_OUT
) {
1243 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1245 return NDR_ERR_SUCCESS
;
1248 static enum ndr_err_code
ndr_pull_PNP_GetClassName(struct ndr_pull
*ndr
, int flags
, struct PNP_GetClassName
*r
)
1250 if (flags
& NDR_IN
) {
1252 if (flags
& NDR_OUT
) {
1253 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1255 return NDR_ERR_SUCCESS
;
1258 _PUBLIC_
void ndr_print_PNP_GetClassName(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetClassName
*r
)
1260 ndr_print_struct(ndr
, name
, "PNP_GetClassName");
1262 if (flags
& NDR_SET_VALUES
) {
1263 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1265 if (flags
& NDR_IN
) {
1266 ndr_print_struct(ndr
, "in", "PNP_GetClassName");
1270 if (flags
& NDR_OUT
) {
1271 ndr_print_struct(ndr
, "out", "PNP_GetClassName");
1273 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1279 static enum ndr_err_code
ndr_push_PNP_DeleteClassKey(struct ndr_push
*ndr
, int flags
, const struct PNP_DeleteClassKey
*r
)
1281 if (flags
& NDR_IN
) {
1283 if (flags
& NDR_OUT
) {
1284 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1286 return NDR_ERR_SUCCESS
;
1289 static enum ndr_err_code
ndr_pull_PNP_DeleteClassKey(struct ndr_pull
*ndr
, int flags
, struct PNP_DeleteClassKey
*r
)
1291 if (flags
& NDR_IN
) {
1293 if (flags
& NDR_OUT
) {
1294 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1296 return NDR_ERR_SUCCESS
;
1299 _PUBLIC_
void ndr_print_PNP_DeleteClassKey(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_DeleteClassKey
*r
)
1301 ndr_print_struct(ndr
, name
, "PNP_DeleteClassKey");
1303 if (flags
& NDR_SET_VALUES
) {
1304 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1306 if (flags
& NDR_IN
) {
1307 ndr_print_struct(ndr
, "in", "PNP_DeleteClassKey");
1311 if (flags
& NDR_OUT
) {
1312 ndr_print_struct(ndr
, "out", "PNP_DeleteClassKey");
1314 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1320 static enum ndr_err_code
ndr_push_PNP_GetInterfaceDeviceAlias(struct ndr_push
*ndr
, int flags
, const struct PNP_GetInterfaceDeviceAlias
*r
)
1322 if (flags
& NDR_IN
) {
1324 if (flags
& NDR_OUT
) {
1325 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1327 return NDR_ERR_SUCCESS
;
1330 static enum ndr_err_code
ndr_pull_PNP_GetInterfaceDeviceAlias(struct ndr_pull
*ndr
, int flags
, struct PNP_GetInterfaceDeviceAlias
*r
)
1332 if (flags
& NDR_IN
) {
1334 if (flags
& NDR_OUT
) {
1335 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1337 return NDR_ERR_SUCCESS
;
1340 _PUBLIC_
void ndr_print_PNP_GetInterfaceDeviceAlias(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetInterfaceDeviceAlias
*r
)
1342 ndr_print_struct(ndr
, name
, "PNP_GetInterfaceDeviceAlias");
1344 if (flags
& NDR_SET_VALUES
) {
1345 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1347 if (flags
& NDR_IN
) {
1348 ndr_print_struct(ndr
, "in", "PNP_GetInterfaceDeviceAlias");
1352 if (flags
& NDR_OUT
) {
1353 ndr_print_struct(ndr
, "out", "PNP_GetInterfaceDeviceAlias");
1355 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1361 static enum ndr_err_code
ndr_push_PNP_GetInterfaceDeviceList(struct ndr_push
*ndr
, int flags
, const struct PNP_GetInterfaceDeviceList
*r
)
1363 if (flags
& NDR_IN
) {
1365 if (flags
& NDR_OUT
) {
1366 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1368 return NDR_ERR_SUCCESS
;
1371 static enum ndr_err_code
ndr_pull_PNP_GetInterfaceDeviceList(struct ndr_pull
*ndr
, int flags
, struct PNP_GetInterfaceDeviceList
*r
)
1373 if (flags
& NDR_IN
) {
1375 if (flags
& NDR_OUT
) {
1376 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1378 return NDR_ERR_SUCCESS
;
1381 _PUBLIC_
void ndr_print_PNP_GetInterfaceDeviceList(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetInterfaceDeviceList
*r
)
1383 ndr_print_struct(ndr
, name
, "PNP_GetInterfaceDeviceList");
1385 if (flags
& NDR_SET_VALUES
) {
1386 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1388 if (flags
& NDR_IN
) {
1389 ndr_print_struct(ndr
, "in", "PNP_GetInterfaceDeviceList");
1393 if (flags
& NDR_OUT
) {
1394 ndr_print_struct(ndr
, "out", "PNP_GetInterfaceDeviceList");
1396 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1402 static enum ndr_err_code
ndr_push_PNP_GetInterfaceDeviceListSize(struct ndr_push
*ndr
, int flags
, const struct PNP_GetInterfaceDeviceListSize
*r
)
1404 if (flags
& NDR_IN
) {
1406 if (flags
& NDR_OUT
) {
1407 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1409 return NDR_ERR_SUCCESS
;
1412 static enum ndr_err_code
ndr_pull_PNP_GetInterfaceDeviceListSize(struct ndr_pull
*ndr
, int flags
, struct PNP_GetInterfaceDeviceListSize
*r
)
1414 if (flags
& NDR_IN
) {
1416 if (flags
& NDR_OUT
) {
1417 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1419 return NDR_ERR_SUCCESS
;
1422 _PUBLIC_
void ndr_print_PNP_GetInterfaceDeviceListSize(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetInterfaceDeviceListSize
*r
)
1424 ndr_print_struct(ndr
, name
, "PNP_GetInterfaceDeviceListSize");
1426 if (flags
& NDR_SET_VALUES
) {
1427 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1429 if (flags
& NDR_IN
) {
1430 ndr_print_struct(ndr
, "in", "PNP_GetInterfaceDeviceListSize");
1434 if (flags
& NDR_OUT
) {
1435 ndr_print_struct(ndr
, "out", "PNP_GetInterfaceDeviceListSize");
1437 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1443 static enum ndr_err_code
ndr_push_PNP_RegisterDeviceClassAssociation(struct ndr_push
*ndr
, int flags
, const struct PNP_RegisterDeviceClassAssociation
*r
)
1445 if (flags
& NDR_IN
) {
1447 if (flags
& NDR_OUT
) {
1448 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1450 return NDR_ERR_SUCCESS
;
1453 static enum ndr_err_code
ndr_pull_PNP_RegisterDeviceClassAssociation(struct ndr_pull
*ndr
, int flags
, struct PNP_RegisterDeviceClassAssociation
*r
)
1455 if (flags
& NDR_IN
) {
1457 if (flags
& NDR_OUT
) {
1458 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1460 return NDR_ERR_SUCCESS
;
1463 _PUBLIC_
void ndr_print_PNP_RegisterDeviceClassAssociation(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_RegisterDeviceClassAssociation
*r
)
1465 ndr_print_struct(ndr
, name
, "PNP_RegisterDeviceClassAssociation");
1467 if (flags
& NDR_SET_VALUES
) {
1468 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1470 if (flags
& NDR_IN
) {
1471 ndr_print_struct(ndr
, "in", "PNP_RegisterDeviceClassAssociation");
1475 if (flags
& NDR_OUT
) {
1476 ndr_print_struct(ndr
, "out", "PNP_RegisterDeviceClassAssociation");
1478 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1484 static enum ndr_err_code
ndr_push_PNP_UnregisterDeviceClassAssociation(struct ndr_push
*ndr
, int flags
, const struct PNP_UnregisterDeviceClassAssociation
*r
)
1486 if (flags
& NDR_IN
) {
1488 if (flags
& NDR_OUT
) {
1489 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1491 return NDR_ERR_SUCCESS
;
1494 static enum ndr_err_code
ndr_pull_PNP_UnregisterDeviceClassAssociation(struct ndr_pull
*ndr
, int flags
, struct PNP_UnregisterDeviceClassAssociation
*r
)
1496 if (flags
& NDR_IN
) {
1498 if (flags
& NDR_OUT
) {
1499 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1501 return NDR_ERR_SUCCESS
;
1504 _PUBLIC_
void ndr_print_PNP_UnregisterDeviceClassAssociation(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_UnregisterDeviceClassAssociation
*r
)
1506 ndr_print_struct(ndr
, name
, "PNP_UnregisterDeviceClassAssociation");
1508 if (flags
& NDR_SET_VALUES
) {
1509 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1511 if (flags
& NDR_IN
) {
1512 ndr_print_struct(ndr
, "in", "PNP_UnregisterDeviceClassAssociation");
1516 if (flags
& NDR_OUT
) {
1517 ndr_print_struct(ndr
, "out", "PNP_UnregisterDeviceClassAssociation");
1519 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1525 static enum ndr_err_code
ndr_push_PNP_GetClassRegProp(struct ndr_push
*ndr
, int flags
, const struct PNP_GetClassRegProp
*r
)
1527 if (flags
& NDR_IN
) {
1529 if (flags
& NDR_OUT
) {
1530 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1532 return NDR_ERR_SUCCESS
;
1535 static enum ndr_err_code
ndr_pull_PNP_GetClassRegProp(struct ndr_pull
*ndr
, int flags
, struct PNP_GetClassRegProp
*r
)
1537 if (flags
& NDR_IN
) {
1539 if (flags
& NDR_OUT
) {
1540 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1542 return NDR_ERR_SUCCESS
;
1545 _PUBLIC_
void ndr_print_PNP_GetClassRegProp(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetClassRegProp
*r
)
1547 ndr_print_struct(ndr
, name
, "PNP_GetClassRegProp");
1549 if (flags
& NDR_SET_VALUES
) {
1550 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1552 if (flags
& NDR_IN
) {
1553 ndr_print_struct(ndr
, "in", "PNP_GetClassRegProp");
1557 if (flags
& NDR_OUT
) {
1558 ndr_print_struct(ndr
, "out", "PNP_GetClassRegProp");
1560 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1566 static enum ndr_err_code
ndr_push_PNP_SetClassRegProp(struct ndr_push
*ndr
, int flags
, const struct PNP_SetClassRegProp
*r
)
1568 if (flags
& NDR_IN
) {
1570 if (flags
& NDR_OUT
) {
1571 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1573 return NDR_ERR_SUCCESS
;
1576 static enum ndr_err_code
ndr_pull_PNP_SetClassRegProp(struct ndr_pull
*ndr
, int flags
, struct PNP_SetClassRegProp
*r
)
1578 if (flags
& NDR_IN
) {
1580 if (flags
& NDR_OUT
) {
1581 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1583 return NDR_ERR_SUCCESS
;
1586 _PUBLIC_
void ndr_print_PNP_SetClassRegProp(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_SetClassRegProp
*r
)
1588 ndr_print_struct(ndr
, name
, "PNP_SetClassRegProp");
1590 if (flags
& NDR_SET_VALUES
) {
1591 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1593 if (flags
& NDR_IN
) {
1594 ndr_print_struct(ndr
, "in", "PNP_SetClassRegProp");
1598 if (flags
& NDR_OUT
) {
1599 ndr_print_struct(ndr
, "out", "PNP_SetClassRegProp");
1601 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1607 static enum ndr_err_code
ndr_push_PNP_CreateDevInst(struct ndr_push
*ndr
, int flags
, const struct PNP_CreateDevInst
*r
)
1609 if (flags
& NDR_IN
) {
1611 if (flags
& NDR_OUT
) {
1612 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1614 return NDR_ERR_SUCCESS
;
1617 static enum ndr_err_code
ndr_pull_PNP_CreateDevInst(struct ndr_pull
*ndr
, int flags
, struct PNP_CreateDevInst
*r
)
1619 if (flags
& NDR_IN
) {
1621 if (flags
& NDR_OUT
) {
1622 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1624 return NDR_ERR_SUCCESS
;
1627 _PUBLIC_
void ndr_print_PNP_CreateDevInst(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_CreateDevInst
*r
)
1629 ndr_print_struct(ndr
, name
, "PNP_CreateDevInst");
1631 if (flags
& NDR_SET_VALUES
) {
1632 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1634 if (flags
& NDR_IN
) {
1635 ndr_print_struct(ndr
, "in", "PNP_CreateDevInst");
1639 if (flags
& NDR_OUT
) {
1640 ndr_print_struct(ndr
, "out", "PNP_CreateDevInst");
1642 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1648 static enum ndr_err_code
ndr_push_PNP_DeviceInstanceAction(struct ndr_push
*ndr
, int flags
, const struct PNP_DeviceInstanceAction
*r
)
1650 if (flags
& NDR_IN
) {
1652 if (flags
& NDR_OUT
) {
1653 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1655 return NDR_ERR_SUCCESS
;
1658 static enum ndr_err_code
ndr_pull_PNP_DeviceInstanceAction(struct ndr_pull
*ndr
, int flags
, struct PNP_DeviceInstanceAction
*r
)
1660 if (flags
& NDR_IN
) {
1662 if (flags
& NDR_OUT
) {
1663 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1665 return NDR_ERR_SUCCESS
;
1668 _PUBLIC_
void ndr_print_PNP_DeviceInstanceAction(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_DeviceInstanceAction
*r
)
1670 ndr_print_struct(ndr
, name
, "PNP_DeviceInstanceAction");
1672 if (flags
& NDR_SET_VALUES
) {
1673 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1675 if (flags
& NDR_IN
) {
1676 ndr_print_struct(ndr
, "in", "PNP_DeviceInstanceAction");
1680 if (flags
& NDR_OUT
) {
1681 ndr_print_struct(ndr
, "out", "PNP_DeviceInstanceAction");
1683 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1689 static enum ndr_err_code
ndr_push_PNP_GetDeviceStatus(struct ndr_push
*ndr
, int flags
, const struct PNP_GetDeviceStatus
*r
)
1691 if (flags
& NDR_IN
) {
1693 if (flags
& NDR_OUT
) {
1694 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1696 return NDR_ERR_SUCCESS
;
1699 static enum ndr_err_code
ndr_pull_PNP_GetDeviceStatus(struct ndr_pull
*ndr
, int flags
, struct PNP_GetDeviceStatus
*r
)
1701 if (flags
& NDR_IN
) {
1703 if (flags
& NDR_OUT
) {
1704 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1706 return NDR_ERR_SUCCESS
;
1709 _PUBLIC_
void ndr_print_PNP_GetDeviceStatus(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetDeviceStatus
*r
)
1711 ndr_print_struct(ndr
, name
, "PNP_GetDeviceStatus");
1713 if (flags
& NDR_SET_VALUES
) {
1714 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1716 if (flags
& NDR_IN
) {
1717 ndr_print_struct(ndr
, "in", "PNP_GetDeviceStatus");
1721 if (flags
& NDR_OUT
) {
1722 ndr_print_struct(ndr
, "out", "PNP_GetDeviceStatus");
1724 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1730 static enum ndr_err_code
ndr_push_PNP_SetDeviceProblem(struct ndr_push
*ndr
, int flags
, const struct PNP_SetDeviceProblem
*r
)
1732 if (flags
& NDR_IN
) {
1734 if (flags
& NDR_OUT
) {
1735 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1737 return NDR_ERR_SUCCESS
;
1740 static enum ndr_err_code
ndr_pull_PNP_SetDeviceProblem(struct ndr_pull
*ndr
, int flags
, struct PNP_SetDeviceProblem
*r
)
1742 if (flags
& NDR_IN
) {
1744 if (flags
& NDR_OUT
) {
1745 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1747 return NDR_ERR_SUCCESS
;
1750 _PUBLIC_
void ndr_print_PNP_SetDeviceProblem(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_SetDeviceProblem
*r
)
1752 ndr_print_struct(ndr
, name
, "PNP_SetDeviceProblem");
1754 if (flags
& NDR_SET_VALUES
) {
1755 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1757 if (flags
& NDR_IN
) {
1758 ndr_print_struct(ndr
, "in", "PNP_SetDeviceProblem");
1762 if (flags
& NDR_OUT
) {
1763 ndr_print_struct(ndr
, "out", "PNP_SetDeviceProblem");
1765 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1771 static enum ndr_err_code
ndr_push_PNP_DisableDevInst(struct ndr_push
*ndr
, int flags
, const struct PNP_DisableDevInst
*r
)
1773 if (flags
& NDR_IN
) {
1775 if (flags
& NDR_OUT
) {
1776 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1778 return NDR_ERR_SUCCESS
;
1781 static enum ndr_err_code
ndr_pull_PNP_DisableDevInst(struct ndr_pull
*ndr
, int flags
, struct PNP_DisableDevInst
*r
)
1783 if (flags
& NDR_IN
) {
1785 if (flags
& NDR_OUT
) {
1786 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1788 return NDR_ERR_SUCCESS
;
1791 _PUBLIC_
void ndr_print_PNP_DisableDevInst(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_DisableDevInst
*r
)
1793 ndr_print_struct(ndr
, name
, "PNP_DisableDevInst");
1795 if (flags
& NDR_SET_VALUES
) {
1796 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1798 if (flags
& NDR_IN
) {
1799 ndr_print_struct(ndr
, "in", "PNP_DisableDevInst");
1803 if (flags
& NDR_OUT
) {
1804 ndr_print_struct(ndr
, "out", "PNP_DisableDevInst");
1806 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1812 static enum ndr_err_code
ndr_push_PNP_UninstallDevInst(struct ndr_push
*ndr
, int flags
, const struct PNP_UninstallDevInst
*r
)
1814 if (flags
& NDR_IN
) {
1816 if (flags
& NDR_OUT
) {
1817 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1819 return NDR_ERR_SUCCESS
;
1822 static enum ndr_err_code
ndr_pull_PNP_UninstallDevInst(struct ndr_pull
*ndr
, int flags
, struct PNP_UninstallDevInst
*r
)
1824 if (flags
& NDR_IN
) {
1826 if (flags
& NDR_OUT
) {
1827 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1829 return NDR_ERR_SUCCESS
;
1832 _PUBLIC_
void ndr_print_PNP_UninstallDevInst(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_UninstallDevInst
*r
)
1834 ndr_print_struct(ndr
, name
, "PNP_UninstallDevInst");
1836 if (flags
& NDR_SET_VALUES
) {
1837 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1839 if (flags
& NDR_IN
) {
1840 ndr_print_struct(ndr
, "in", "PNP_UninstallDevInst");
1844 if (flags
& NDR_OUT
) {
1845 ndr_print_struct(ndr
, "out", "PNP_UninstallDevInst");
1847 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1853 static enum ndr_err_code
ndr_push_PNP_AddID(struct ndr_push
*ndr
, int flags
, const struct PNP_AddID
*r
)
1855 if (flags
& NDR_IN
) {
1857 if (flags
& NDR_OUT
) {
1858 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1860 return NDR_ERR_SUCCESS
;
1863 static enum ndr_err_code
ndr_pull_PNP_AddID(struct ndr_pull
*ndr
, int flags
, struct PNP_AddID
*r
)
1865 if (flags
& NDR_IN
) {
1867 if (flags
& NDR_OUT
) {
1868 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1870 return NDR_ERR_SUCCESS
;
1873 _PUBLIC_
void ndr_print_PNP_AddID(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_AddID
*r
)
1875 ndr_print_struct(ndr
, name
, "PNP_AddID");
1877 if (flags
& NDR_SET_VALUES
) {
1878 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1880 if (flags
& NDR_IN
) {
1881 ndr_print_struct(ndr
, "in", "PNP_AddID");
1885 if (flags
& NDR_OUT
) {
1886 ndr_print_struct(ndr
, "out", "PNP_AddID");
1888 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1894 static enum ndr_err_code
ndr_push_PNP_RegisterDriver(struct ndr_push
*ndr
, int flags
, const struct PNP_RegisterDriver
*r
)
1896 if (flags
& NDR_IN
) {
1898 if (flags
& NDR_OUT
) {
1899 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1901 return NDR_ERR_SUCCESS
;
1904 static enum ndr_err_code
ndr_pull_PNP_RegisterDriver(struct ndr_pull
*ndr
, int flags
, struct PNP_RegisterDriver
*r
)
1906 if (flags
& NDR_IN
) {
1908 if (flags
& NDR_OUT
) {
1909 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1911 return NDR_ERR_SUCCESS
;
1914 _PUBLIC_
void ndr_print_PNP_RegisterDriver(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_RegisterDriver
*r
)
1916 ndr_print_struct(ndr
, name
, "PNP_RegisterDriver");
1918 if (flags
& NDR_SET_VALUES
) {
1919 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1921 if (flags
& NDR_IN
) {
1922 ndr_print_struct(ndr
, "in", "PNP_RegisterDriver");
1926 if (flags
& NDR_OUT
) {
1927 ndr_print_struct(ndr
, "out", "PNP_RegisterDriver");
1929 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1935 static enum ndr_err_code
ndr_push_PNP_QueryRemove(struct ndr_push
*ndr
, int flags
, const struct PNP_QueryRemove
*r
)
1937 if (flags
& NDR_IN
) {
1939 if (flags
& NDR_OUT
) {
1940 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1942 return NDR_ERR_SUCCESS
;
1945 static enum ndr_err_code
ndr_pull_PNP_QueryRemove(struct ndr_pull
*ndr
, int flags
, struct PNP_QueryRemove
*r
)
1947 if (flags
& NDR_IN
) {
1949 if (flags
& NDR_OUT
) {
1950 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1952 return NDR_ERR_SUCCESS
;
1955 _PUBLIC_
void ndr_print_PNP_QueryRemove(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_QueryRemove
*r
)
1957 ndr_print_struct(ndr
, name
, "PNP_QueryRemove");
1959 if (flags
& NDR_SET_VALUES
) {
1960 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1962 if (flags
& NDR_IN
) {
1963 ndr_print_struct(ndr
, "in", "PNP_QueryRemove");
1967 if (flags
& NDR_OUT
) {
1968 ndr_print_struct(ndr
, "out", "PNP_QueryRemove");
1970 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1976 static enum ndr_err_code
ndr_push_PNP_RequestDeviceEject(struct ndr_push
*ndr
, int flags
, const struct PNP_RequestDeviceEject
*r
)
1978 if (flags
& NDR_IN
) {
1980 if (flags
& NDR_OUT
) {
1981 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1983 return NDR_ERR_SUCCESS
;
1986 static enum ndr_err_code
ndr_pull_PNP_RequestDeviceEject(struct ndr_pull
*ndr
, int flags
, struct PNP_RequestDeviceEject
*r
)
1988 if (flags
& NDR_IN
) {
1990 if (flags
& NDR_OUT
) {
1991 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1993 return NDR_ERR_SUCCESS
;
1996 _PUBLIC_
void ndr_print_PNP_RequestDeviceEject(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_RequestDeviceEject
*r
)
1998 ndr_print_struct(ndr
, name
, "PNP_RequestDeviceEject");
2000 if (flags
& NDR_SET_VALUES
) {
2001 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2003 if (flags
& NDR_IN
) {
2004 ndr_print_struct(ndr
, "in", "PNP_RequestDeviceEject");
2008 if (flags
& NDR_OUT
) {
2009 ndr_print_struct(ndr
, "out", "PNP_RequestDeviceEject");
2011 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
2017 static enum ndr_err_code
ndr_push_PNP_IsDockStationPresent(struct ndr_push
*ndr
, int flags
, const struct PNP_IsDockStationPresent
*r
)
2019 if (flags
& NDR_IN
) {
2021 if (flags
& NDR_OUT
) {
2022 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
2024 return NDR_ERR_SUCCESS
;
2027 static enum ndr_err_code
ndr_pull_PNP_IsDockStationPresent(struct ndr_pull
*ndr
, int flags
, struct PNP_IsDockStationPresent
*r
)
2029 if (flags
& NDR_IN
) {
2031 if (flags
& NDR_OUT
) {
2032 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
2034 return NDR_ERR_SUCCESS
;
2037 _PUBLIC_
void ndr_print_PNP_IsDockStationPresent(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_IsDockStationPresent
*r
)
2039 ndr_print_struct(ndr
, name
, "PNP_IsDockStationPresent");
2041 if (flags
& NDR_SET_VALUES
) {
2042 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2044 if (flags
& NDR_IN
) {
2045 ndr_print_struct(ndr
, "in", "PNP_IsDockStationPresent");
2049 if (flags
& NDR_OUT
) {
2050 ndr_print_struct(ndr
, "out", "PNP_IsDockStationPresent");
2052 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
2058 static enum ndr_err_code
ndr_push_PNP_RequestEjectPC(struct ndr_push
*ndr
, int flags
, const struct PNP_RequestEjectPC
*r
)
2060 if (flags
& NDR_IN
) {
2062 if (flags
& NDR_OUT
) {
2063 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
2065 return NDR_ERR_SUCCESS
;
2068 static enum ndr_err_code
ndr_pull_PNP_RequestEjectPC(struct ndr_pull
*ndr
, int flags
, struct PNP_RequestEjectPC
*r
)
2070 if (flags
& NDR_IN
) {
2072 if (flags
& NDR_OUT
) {
2073 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
2075 return NDR_ERR_SUCCESS
;
2078 _PUBLIC_
void ndr_print_PNP_RequestEjectPC(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_RequestEjectPC
*r
)
2080 ndr_print_struct(ndr
, name
, "PNP_RequestEjectPC");
2082 if (flags
& NDR_SET_VALUES
) {
2083 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2085 if (flags
& NDR_IN
) {
2086 ndr_print_struct(ndr
, "in", "PNP_RequestEjectPC");
2090 if (flags
& NDR_OUT
) {
2091 ndr_print_struct(ndr
, "out", "PNP_RequestEjectPC");
2093 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
2099 static enum ndr_err_code
ndr_push_PNP_HwProfFlags(struct ndr_push
*ndr
, int flags
, const struct PNP_HwProfFlags
*r
)
2101 if (flags
& NDR_IN
) {
2102 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, r
->in
.action
));
2103 if (r
->in
.devicepath
== NULL
) {
2104 return ndr_push_error(ndr
, NDR_ERR_INVALID_POINTER
, "NULL [ref] pointer");
2106 NDR_CHECK(ndr_push_uint3264(ndr
, NDR_SCALARS
, ndr_charset_length(r
->in
.devicepath
, CH_UTF16
)));
2107 NDR_CHECK(ndr_push_uint3264(ndr
, NDR_SCALARS
, 0));
2108 NDR_CHECK(ndr_push_uint3264(ndr
, NDR_SCALARS
, ndr_charset_length(r
->in
.devicepath
, CH_UTF16
)));
2109 NDR_CHECK(ndr_push_charset(ndr
, NDR_SCALARS
, r
->in
.devicepath
, ndr_charset_length(r
->in
.devicepath
, CH_UTF16
), sizeof(uint16_t), CH_UTF16
));
2110 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, r
->in
.config
));
2111 if (r
->in
.profile_flags
== NULL
) {
2112 return ndr_push_error(ndr
, NDR_ERR_INVALID_POINTER
, "NULL [ref] pointer");
2114 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, *r
->in
.profile_flags
));
2115 NDR_CHECK(ndr_push_unique_ptr(ndr
, r
->in
.veto_type
));
2116 if (r
->in
.veto_type
) {
2117 NDR_CHECK(ndr_push_uint16(ndr
, NDR_SCALARS
, *r
->in
.veto_type
));
2119 NDR_CHECK(ndr_push_unique_ptr(ndr
, r
->in
.unknown5
));
2120 if (r
->in
.unknown5
) {
2121 NDR_CHECK(ndr_push_uint3264(ndr
, NDR_SCALARS
, ndr_charset_length(r
->in
.unknown5
, CH_UTF16
)));
2122 NDR_CHECK(ndr_push_uint3264(ndr
, NDR_SCALARS
, 0));
2123 NDR_CHECK(ndr_push_uint3264(ndr
, NDR_SCALARS
, ndr_charset_length(r
->in
.unknown5
, CH_UTF16
)));
2124 NDR_CHECK(ndr_push_charset(ndr
, NDR_SCALARS
, r
->in
.unknown5
, ndr_charset_length(r
->in
.unknown5
, CH_UTF16
), sizeof(uint16_t), CH_UTF16
));
2126 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, r
->in
.name_length
));
2127 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, r
->in
.flags
));
2129 if (flags
& NDR_OUT
) {
2130 if (r
->out
.profile_flags
== NULL
) {
2131 return ndr_push_error(ndr
, NDR_ERR_INVALID_POINTER
, "NULL [ref] pointer");
2133 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, *r
->out
.profile_flags
));
2134 NDR_CHECK(ndr_push_unique_ptr(ndr
, r
->out
.veto_type
));
2135 if (r
->out
.veto_type
) {
2136 NDR_CHECK(ndr_push_uint16(ndr
, NDR_SCALARS
, *r
->out
.veto_type
));
2138 NDR_CHECK(ndr_push_unique_ptr(ndr
, r
->out
.unknown5a
));
2139 if (r
->out
.unknown5a
) {
2140 NDR_CHECK(ndr_push_unique_ptr(ndr
, *r
->out
.unknown5a
));
2141 if (*r
->out
.unknown5a
) {
2142 NDR_CHECK(ndr_push_uint3264(ndr
, NDR_SCALARS
, ndr_charset_length(*r
->out
.unknown5a
, CH_UTF16
)));
2143 NDR_CHECK(ndr_push_uint3264(ndr
, NDR_SCALARS
, 0));
2144 NDR_CHECK(ndr_push_uint3264(ndr
, NDR_SCALARS
, ndr_charset_length(*r
->out
.unknown5a
, CH_UTF16
)));
2145 NDR_CHECK(ndr_push_charset(ndr
, NDR_SCALARS
, *r
->out
.unknown5a
, ndr_charset_length(*r
->out
.unknown5a
, CH_UTF16
), sizeof(uint16_t), CH_UTF16
));
2148 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
2150 return NDR_ERR_SUCCESS
;
2153 static enum ndr_err_code
ndr_pull_PNP_HwProfFlags(struct ndr_pull
*ndr
, int flags
, struct PNP_HwProfFlags
*r
)
2155 uint32_t _ptr_veto_type
;
2156 uint32_t _ptr_unknown5
;
2157 uint32_t _ptr_unknown5a
;
2158 TALLOC_CTX
*_mem_save_profile_flags_0
;
2159 TALLOC_CTX
*_mem_save_veto_type_0
;
2160 TALLOC_CTX
*_mem_save_unknown5_0
;
2161 TALLOC_CTX
*_mem_save_unknown5a_0
;
2162 TALLOC_CTX
*_mem_save_unknown5a_1
;
2163 if (flags
& NDR_IN
) {
2164 ZERO_STRUCT(r
->out
);
2166 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, &r
->in
.action
));
2167 NDR_CHECK(ndr_pull_array_size(ndr
, &r
->in
.devicepath
));
2168 NDR_CHECK(ndr_pull_array_length(ndr
, &r
->in
.devicepath
));
2169 if (ndr_get_array_length(ndr
, &r
->in
.devicepath
) > ndr_get_array_size(ndr
, &r
->in
.devicepath
)) {
2170 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
));
2172 NDR_CHECK(ndr_check_string_terminator(ndr
, ndr_get_array_length(ndr
, &r
->in
.devicepath
), sizeof(uint16_t)));
2173 NDR_CHECK(ndr_pull_charset(ndr
, NDR_SCALARS
, &r
->in
.devicepath
, ndr_get_array_length(ndr
, &r
->in
.devicepath
), sizeof(uint16_t), CH_UTF16
));
2174 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, &r
->in
.config
));
2175 if (ndr
->flags
& LIBNDR_FLAG_REF_ALLOC
) {
2176 NDR_PULL_ALLOC(ndr
, r
->in
.profile_flags
);
2178 _mem_save_profile_flags_0
= NDR_PULL_GET_MEM_CTX(ndr
);
2179 NDR_PULL_SET_MEM_CTX(ndr
, r
->in
.profile_flags
, LIBNDR_FLAG_REF_ALLOC
);
2180 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, r
->in
.profile_flags
));
2181 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_profile_flags_0
, LIBNDR_FLAG_REF_ALLOC
);
2182 NDR_CHECK(ndr_pull_generic_ptr(ndr
, &_ptr_veto_type
));
2183 if (_ptr_veto_type
) {
2184 NDR_PULL_ALLOC(ndr
, r
->in
.veto_type
);
2186 r
->in
.veto_type
= NULL
;
2188 if (r
->in
.veto_type
) {
2189 _mem_save_veto_type_0
= NDR_PULL_GET_MEM_CTX(ndr
);
2190 NDR_PULL_SET_MEM_CTX(ndr
, r
->in
.veto_type
, 0);
2191 NDR_CHECK(ndr_pull_uint16(ndr
, NDR_SCALARS
, r
->in
.veto_type
));
2192 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_veto_type_0
, 0);
2194 NDR_CHECK(ndr_pull_generic_ptr(ndr
, &_ptr_unknown5
));
2195 if (_ptr_unknown5
) {
2196 NDR_PULL_ALLOC(ndr
, r
->in
.unknown5
);
2198 r
->in
.unknown5
= NULL
;
2200 if (r
->in
.unknown5
) {
2201 _mem_save_unknown5_0
= NDR_PULL_GET_MEM_CTX(ndr
);
2202 NDR_PULL_SET_MEM_CTX(ndr
, r
->in
.unknown5
, 0);
2203 NDR_CHECK(ndr_pull_array_size(ndr
, &r
->in
.unknown5
));
2204 NDR_CHECK(ndr_pull_array_length(ndr
, &r
->in
.unknown5
));
2205 if (ndr_get_array_length(ndr
, &r
->in
.unknown5
) > ndr_get_array_size(ndr
, &r
->in
.unknown5
)) {
2206 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
));
2208 NDR_CHECK(ndr_check_string_terminator(ndr
, ndr_get_array_length(ndr
, &r
->in
.unknown5
), sizeof(uint16_t)));
2209 NDR_CHECK(ndr_pull_charset(ndr
, NDR_SCALARS
, &r
->in
.unknown5
, ndr_get_array_length(ndr
, &r
->in
.unknown5
), sizeof(uint16_t), CH_UTF16
));
2210 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_unknown5_0
, 0);
2212 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, &r
->in
.name_length
));
2213 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, &r
->in
.flags
));
2214 NDR_PULL_ALLOC(ndr
, r
->out
.profile_flags
);
2215 *r
->out
.profile_flags
= *r
->in
.profile_flags
;
2217 if (flags
& NDR_OUT
) {
2218 if (ndr
->flags
& LIBNDR_FLAG_REF_ALLOC
) {
2219 NDR_PULL_ALLOC(ndr
, r
->out
.profile_flags
);
2221 _mem_save_profile_flags_0
= NDR_PULL_GET_MEM_CTX(ndr
);
2222 NDR_PULL_SET_MEM_CTX(ndr
, r
->out
.profile_flags
, LIBNDR_FLAG_REF_ALLOC
);
2223 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, r
->out
.profile_flags
));
2224 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_profile_flags_0
, LIBNDR_FLAG_REF_ALLOC
);
2225 NDR_CHECK(ndr_pull_generic_ptr(ndr
, &_ptr_veto_type
));
2226 if (_ptr_veto_type
) {
2227 NDR_PULL_ALLOC(ndr
, r
->out
.veto_type
);
2229 r
->out
.veto_type
= NULL
;
2231 if (r
->out
.veto_type
) {
2232 _mem_save_veto_type_0
= NDR_PULL_GET_MEM_CTX(ndr
);
2233 NDR_PULL_SET_MEM_CTX(ndr
, r
->out
.veto_type
, 0);
2234 NDR_CHECK(ndr_pull_uint16(ndr
, NDR_SCALARS
, r
->out
.veto_type
));
2235 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_veto_type_0
, 0);
2237 NDR_CHECK(ndr_pull_generic_ptr(ndr
, &_ptr_unknown5a
));
2238 if (_ptr_unknown5a
) {
2239 NDR_PULL_ALLOC(ndr
, r
->out
.unknown5a
);
2241 r
->out
.unknown5a
= NULL
;
2243 if (r
->out
.unknown5a
) {
2244 _mem_save_unknown5a_0
= NDR_PULL_GET_MEM_CTX(ndr
);
2245 NDR_PULL_SET_MEM_CTX(ndr
, r
->out
.unknown5a
, 0);
2246 NDR_CHECK(ndr_pull_generic_ptr(ndr
, &_ptr_unknown5a
));
2247 if (_ptr_unknown5a
) {
2248 NDR_PULL_ALLOC(ndr
, *r
->out
.unknown5a
);
2250 *r
->out
.unknown5a
= NULL
;
2252 if (*r
->out
.unknown5a
) {
2253 _mem_save_unknown5a_1
= NDR_PULL_GET_MEM_CTX(ndr
);
2254 NDR_PULL_SET_MEM_CTX(ndr
, *r
->out
.unknown5a
, 0);
2255 NDR_CHECK(ndr_pull_array_size(ndr
, r
->out
.unknown5a
));
2256 NDR_CHECK(ndr_pull_array_length(ndr
, r
->out
.unknown5a
));
2257 if (ndr_get_array_length(ndr
, r
->out
.unknown5a
) > ndr_get_array_size(ndr
, r
->out
.unknown5a
)) {
2258 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
));
2260 NDR_CHECK(ndr_check_string_terminator(ndr
, ndr_get_array_length(ndr
, r
->out
.unknown5a
), sizeof(uint16_t)));
2261 NDR_CHECK(ndr_pull_charset(ndr
, NDR_SCALARS
, r
->out
.unknown5a
, ndr_get_array_length(ndr
, r
->out
.unknown5a
), sizeof(uint16_t), CH_UTF16
));
2262 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_unknown5a_1
, 0);
2264 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_unknown5a_0
, 0);
2266 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
2268 return NDR_ERR_SUCCESS
;
2271 _PUBLIC_
void ndr_print_PNP_HwProfFlags(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_HwProfFlags
*r
)
2273 ndr_print_struct(ndr
, name
, "PNP_HwProfFlags");
2275 if (flags
& NDR_SET_VALUES
) {
2276 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2278 if (flags
& NDR_IN
) {
2279 ndr_print_struct(ndr
, "in", "PNP_HwProfFlags");
2281 ndr_print_uint32(ndr
, "action", r
->in
.action
);
2282 ndr_print_ptr(ndr
, "devicepath", r
->in
.devicepath
);
2284 ndr_print_string(ndr
, "devicepath", r
->in
.devicepath
);
2286 ndr_print_uint32(ndr
, "config", r
->in
.config
);
2287 ndr_print_ptr(ndr
, "profile_flags", r
->in
.profile_flags
);
2289 ndr_print_uint32(ndr
, "profile_flags", *r
->in
.profile_flags
);
2291 ndr_print_ptr(ndr
, "veto_type", r
->in
.veto_type
);
2293 if (r
->in
.veto_type
) {
2294 ndr_print_uint16(ndr
, "veto_type", *r
->in
.veto_type
);
2297 ndr_print_ptr(ndr
, "unknown5", r
->in
.unknown5
);
2299 if (r
->in
.unknown5
) {
2300 ndr_print_string(ndr
, "unknown5", r
->in
.unknown5
);
2303 ndr_print_uint32(ndr
, "name_length", r
->in
.name_length
);
2304 ndr_print_uint32(ndr
, "flags", r
->in
.flags
);
2307 if (flags
& NDR_OUT
) {
2308 ndr_print_struct(ndr
, "out", "PNP_HwProfFlags");
2310 ndr_print_ptr(ndr
, "profile_flags", r
->out
.profile_flags
);
2312 ndr_print_uint32(ndr
, "profile_flags", *r
->out
.profile_flags
);
2314 ndr_print_ptr(ndr
, "veto_type", r
->out
.veto_type
);
2316 if (r
->out
.veto_type
) {
2317 ndr_print_uint16(ndr
, "veto_type", *r
->out
.veto_type
);
2320 ndr_print_ptr(ndr
, "unknown5a", r
->out
.unknown5a
);
2322 if (r
->out
.unknown5a
) {
2323 ndr_print_ptr(ndr
, "unknown5a", *r
->out
.unknown5a
);
2325 if (*r
->out
.unknown5a
) {
2326 ndr_print_string(ndr
, "unknown5a", *r
->out
.unknown5a
);
2331 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
2337 static enum ndr_err_code
ndr_push_PNP_GetHwProfInfo(struct ndr_push
*ndr
, int flags
, const struct PNP_GetHwProfInfo
*r
)
2339 if (flags
& NDR_IN
) {
2340 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, r
->in
.idx
));
2341 if (r
->in
.info
== NULL
) {
2342 return ndr_push_error(ndr
, NDR_ERR_INVALID_POINTER
, "NULL [ref] pointer");
2344 NDR_CHECK(ndr_push_PNP_HwProfInfo(ndr
, NDR_SCALARS
, r
->in
.info
));
2345 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, r
->in
.size
));
2346 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, r
->in
.flags
));
2348 if (flags
& NDR_OUT
) {
2349 if (r
->out
.info
== NULL
) {
2350 return ndr_push_error(ndr
, NDR_ERR_INVALID_POINTER
, "NULL [ref] pointer");
2352 NDR_CHECK(ndr_push_PNP_HwProfInfo(ndr
, NDR_SCALARS
, r
->out
.info
));
2353 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
2355 return NDR_ERR_SUCCESS
;
2358 static enum ndr_err_code
ndr_pull_PNP_GetHwProfInfo(struct ndr_pull
*ndr
, int flags
, struct PNP_GetHwProfInfo
*r
)
2360 TALLOC_CTX
*_mem_save_info_0
;
2361 if (flags
& NDR_IN
) {
2362 ZERO_STRUCT(r
->out
);
2364 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, &r
->in
.idx
));
2365 if (ndr
->flags
& LIBNDR_FLAG_REF_ALLOC
) {
2366 NDR_PULL_ALLOC(ndr
, r
->in
.info
);
2368 _mem_save_info_0
= NDR_PULL_GET_MEM_CTX(ndr
);
2369 NDR_PULL_SET_MEM_CTX(ndr
, r
->in
.info
, LIBNDR_FLAG_REF_ALLOC
);
2370 NDR_CHECK(ndr_pull_PNP_HwProfInfo(ndr
, NDR_SCALARS
, r
->in
.info
));
2371 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_info_0
, LIBNDR_FLAG_REF_ALLOC
);
2372 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, &r
->in
.size
));
2373 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, &r
->in
.flags
));
2374 NDR_PULL_ALLOC(ndr
, r
->out
.info
);
2375 *r
->out
.info
= *r
->in
.info
;
2377 if (flags
& NDR_OUT
) {
2378 if (ndr
->flags
& LIBNDR_FLAG_REF_ALLOC
) {
2379 NDR_PULL_ALLOC(ndr
, r
->out
.info
);
2381 _mem_save_info_0
= NDR_PULL_GET_MEM_CTX(ndr
);
2382 NDR_PULL_SET_MEM_CTX(ndr
, r
->out
.info
, LIBNDR_FLAG_REF_ALLOC
);
2383 NDR_CHECK(ndr_pull_PNP_HwProfInfo(ndr
, NDR_SCALARS
, r
->out
.info
));
2384 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_info_0
, LIBNDR_FLAG_REF_ALLOC
);
2385 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
2387 return NDR_ERR_SUCCESS
;
2390 _PUBLIC_
void ndr_print_PNP_GetHwProfInfo(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetHwProfInfo
*r
)
2392 ndr_print_struct(ndr
, name
, "PNP_GetHwProfInfo");
2394 if (flags
& NDR_SET_VALUES
) {
2395 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2397 if (flags
& NDR_IN
) {
2398 ndr_print_struct(ndr
, "in", "PNP_GetHwProfInfo");
2400 ndr_print_uint32(ndr
, "idx", r
->in
.idx
);
2401 ndr_print_ptr(ndr
, "info", r
->in
.info
);
2403 ndr_print_PNP_HwProfInfo(ndr
, "info", r
->in
.info
);
2405 ndr_print_uint32(ndr
, "size", r
->in
.size
);
2406 ndr_print_uint32(ndr
, "flags", r
->in
.flags
);
2409 if (flags
& NDR_OUT
) {
2410 ndr_print_struct(ndr
, "out", "PNP_GetHwProfInfo");
2412 ndr_print_ptr(ndr
, "info", r
->out
.info
);
2414 ndr_print_PNP_HwProfInfo(ndr
, "info", r
->out
.info
);
2416 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
2422 static enum ndr_err_code
ndr_push_PNP_AddEmptyLogConf(struct ndr_push
*ndr
, int flags
, const struct PNP_AddEmptyLogConf
*r
)
2424 if (flags
& NDR_IN
) {
2426 if (flags
& NDR_OUT
) {
2427 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
2429 return NDR_ERR_SUCCESS
;
2432 static enum ndr_err_code
ndr_pull_PNP_AddEmptyLogConf(struct ndr_pull
*ndr
, int flags
, struct PNP_AddEmptyLogConf
*r
)
2434 if (flags
& NDR_IN
) {
2436 if (flags
& NDR_OUT
) {
2437 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
2439 return NDR_ERR_SUCCESS
;
2442 _PUBLIC_
void ndr_print_PNP_AddEmptyLogConf(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_AddEmptyLogConf
*r
)
2444 ndr_print_struct(ndr
, name
, "PNP_AddEmptyLogConf");
2446 if (flags
& NDR_SET_VALUES
) {
2447 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2449 if (flags
& NDR_IN
) {
2450 ndr_print_struct(ndr
, "in", "PNP_AddEmptyLogConf");
2454 if (flags
& NDR_OUT
) {
2455 ndr_print_struct(ndr
, "out", "PNP_AddEmptyLogConf");
2457 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
2463 static enum ndr_err_code
ndr_push_PNP_FreeLogConf(struct ndr_push
*ndr
, int flags
, const struct PNP_FreeLogConf
*r
)
2465 if (flags
& NDR_IN
) {
2467 if (flags
& NDR_OUT
) {
2468 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
2470 return NDR_ERR_SUCCESS
;
2473 static enum ndr_err_code
ndr_pull_PNP_FreeLogConf(struct ndr_pull
*ndr
, int flags
, struct PNP_FreeLogConf
*r
)
2475 if (flags
& NDR_IN
) {
2477 if (flags
& NDR_OUT
) {
2478 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
2480 return NDR_ERR_SUCCESS
;
2483 _PUBLIC_
void ndr_print_PNP_FreeLogConf(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_FreeLogConf
*r
)
2485 ndr_print_struct(ndr
, name
, "PNP_FreeLogConf");
2487 if (flags
& NDR_SET_VALUES
) {
2488 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2490 if (flags
& NDR_IN
) {
2491 ndr_print_struct(ndr
, "in", "PNP_FreeLogConf");
2495 if (flags
& NDR_OUT
) {
2496 ndr_print_struct(ndr
, "out", "PNP_FreeLogConf");
2498 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
2504 static enum ndr_err_code
ndr_push_PNP_GetFirstLogConf(struct ndr_push
*ndr
, int flags
, const struct PNP_GetFirstLogConf
*r
)
2506 if (flags
& NDR_IN
) {
2508 if (flags
& NDR_OUT
) {
2509 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
2511 return NDR_ERR_SUCCESS
;
2514 static enum ndr_err_code
ndr_pull_PNP_GetFirstLogConf(struct ndr_pull
*ndr
, int flags
, struct PNP_GetFirstLogConf
*r
)
2516 if (flags
& NDR_IN
) {
2518 if (flags
& NDR_OUT
) {
2519 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
2521 return NDR_ERR_SUCCESS
;
2524 _PUBLIC_
void ndr_print_PNP_GetFirstLogConf(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetFirstLogConf
*r
)
2526 ndr_print_struct(ndr
, name
, "PNP_GetFirstLogConf");
2528 if (flags
& NDR_SET_VALUES
) {
2529 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2531 if (flags
& NDR_IN
) {
2532 ndr_print_struct(ndr
, "in", "PNP_GetFirstLogConf");
2536 if (flags
& NDR_OUT
) {
2537 ndr_print_struct(ndr
, "out", "PNP_GetFirstLogConf");
2539 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
2545 static enum ndr_err_code
ndr_push_PNP_GetNextLogConf(struct ndr_push
*ndr
, int flags
, const struct PNP_GetNextLogConf
*r
)
2547 if (flags
& NDR_IN
) {
2549 if (flags
& NDR_OUT
) {
2550 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
2552 return NDR_ERR_SUCCESS
;
2555 static enum ndr_err_code
ndr_pull_PNP_GetNextLogConf(struct ndr_pull
*ndr
, int flags
, struct PNP_GetNextLogConf
*r
)
2557 if (flags
& NDR_IN
) {
2559 if (flags
& NDR_OUT
) {
2560 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
2562 return NDR_ERR_SUCCESS
;
2565 _PUBLIC_
void ndr_print_PNP_GetNextLogConf(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetNextLogConf
*r
)
2567 ndr_print_struct(ndr
, name
, "PNP_GetNextLogConf");
2569 if (flags
& NDR_SET_VALUES
) {
2570 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2572 if (flags
& NDR_IN
) {
2573 ndr_print_struct(ndr
, "in", "PNP_GetNextLogConf");
2577 if (flags
& NDR_OUT
) {
2578 ndr_print_struct(ndr
, "out", "PNP_GetNextLogConf");
2580 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
2586 static enum ndr_err_code
ndr_push_PNP_GetLogConfPriority(struct ndr_push
*ndr
, int flags
, const struct PNP_GetLogConfPriority
*r
)
2588 if (flags
& NDR_IN
) {
2590 if (flags
& NDR_OUT
) {
2591 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
2593 return NDR_ERR_SUCCESS
;
2596 static enum ndr_err_code
ndr_pull_PNP_GetLogConfPriority(struct ndr_pull
*ndr
, int flags
, struct PNP_GetLogConfPriority
*r
)
2598 if (flags
& NDR_IN
) {
2600 if (flags
& NDR_OUT
) {
2601 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
2603 return NDR_ERR_SUCCESS
;
2606 _PUBLIC_
void ndr_print_PNP_GetLogConfPriority(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetLogConfPriority
*r
)
2608 ndr_print_struct(ndr
, name
, "PNP_GetLogConfPriority");
2610 if (flags
& NDR_SET_VALUES
) {
2611 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2613 if (flags
& NDR_IN
) {
2614 ndr_print_struct(ndr
, "in", "PNP_GetLogConfPriority");
2618 if (flags
& NDR_OUT
) {
2619 ndr_print_struct(ndr
, "out", "PNP_GetLogConfPriority");
2621 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
2627 static enum ndr_err_code
ndr_push_PNP_AddResDes(struct ndr_push
*ndr
, int flags
, const struct PNP_AddResDes
*r
)
2629 if (flags
& NDR_IN
) {
2631 if (flags
& NDR_OUT
) {
2632 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
2634 return NDR_ERR_SUCCESS
;
2637 static enum ndr_err_code
ndr_pull_PNP_AddResDes(struct ndr_pull
*ndr
, int flags
, struct PNP_AddResDes
*r
)
2639 if (flags
& NDR_IN
) {
2641 if (flags
& NDR_OUT
) {
2642 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
2644 return NDR_ERR_SUCCESS
;
2647 _PUBLIC_
void ndr_print_PNP_AddResDes(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_AddResDes
*r
)
2649 ndr_print_struct(ndr
, name
, "PNP_AddResDes");
2651 if (flags
& NDR_SET_VALUES
) {
2652 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2654 if (flags
& NDR_IN
) {
2655 ndr_print_struct(ndr
, "in", "PNP_AddResDes");
2659 if (flags
& NDR_OUT
) {
2660 ndr_print_struct(ndr
, "out", "PNP_AddResDes");
2662 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
2668 static enum ndr_err_code
ndr_push_PNP_FreeResDes(struct ndr_push
*ndr
, int flags
, const struct PNP_FreeResDes
*r
)
2670 if (flags
& NDR_IN
) {
2672 if (flags
& NDR_OUT
) {
2673 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
2675 return NDR_ERR_SUCCESS
;
2678 static enum ndr_err_code
ndr_pull_PNP_FreeResDes(struct ndr_pull
*ndr
, int flags
, struct PNP_FreeResDes
*r
)
2680 if (flags
& NDR_IN
) {
2682 if (flags
& NDR_OUT
) {
2683 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
2685 return NDR_ERR_SUCCESS
;
2688 _PUBLIC_
void ndr_print_PNP_FreeResDes(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_FreeResDes
*r
)
2690 ndr_print_struct(ndr
, name
, "PNP_FreeResDes");
2692 if (flags
& NDR_SET_VALUES
) {
2693 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2695 if (flags
& NDR_IN
) {
2696 ndr_print_struct(ndr
, "in", "PNP_FreeResDes");
2700 if (flags
& NDR_OUT
) {
2701 ndr_print_struct(ndr
, "out", "PNP_FreeResDes");
2703 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
2709 static enum ndr_err_code
ndr_push_PNP_GetNextResDes(struct ndr_push
*ndr
, int flags
, const struct PNP_GetNextResDes
*r
)
2711 if (flags
& NDR_IN
) {
2713 if (flags
& NDR_OUT
) {
2714 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
2716 return NDR_ERR_SUCCESS
;
2719 static enum ndr_err_code
ndr_pull_PNP_GetNextResDes(struct ndr_pull
*ndr
, int flags
, struct PNP_GetNextResDes
*r
)
2721 if (flags
& NDR_IN
) {
2723 if (flags
& NDR_OUT
) {
2724 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
2726 return NDR_ERR_SUCCESS
;
2729 _PUBLIC_
void ndr_print_PNP_GetNextResDes(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetNextResDes
*r
)
2731 ndr_print_struct(ndr
, name
, "PNP_GetNextResDes");
2733 if (flags
& NDR_SET_VALUES
) {
2734 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2736 if (flags
& NDR_IN
) {
2737 ndr_print_struct(ndr
, "in", "PNP_GetNextResDes");
2741 if (flags
& NDR_OUT
) {
2742 ndr_print_struct(ndr
, "out", "PNP_GetNextResDes");
2744 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
2750 static enum ndr_err_code
ndr_push_PNP_GetResDesData(struct ndr_push
*ndr
, int flags
, const struct PNP_GetResDesData
*r
)
2752 if (flags
& NDR_IN
) {
2754 if (flags
& NDR_OUT
) {
2755 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
2757 return NDR_ERR_SUCCESS
;
2760 static enum ndr_err_code
ndr_pull_PNP_GetResDesData(struct ndr_pull
*ndr
, int flags
, struct PNP_GetResDesData
*r
)
2762 if (flags
& NDR_IN
) {
2764 if (flags
& NDR_OUT
) {
2765 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
2767 return NDR_ERR_SUCCESS
;
2770 _PUBLIC_
void ndr_print_PNP_GetResDesData(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetResDesData
*r
)
2772 ndr_print_struct(ndr
, name
, "PNP_GetResDesData");
2774 if (flags
& NDR_SET_VALUES
) {
2775 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2777 if (flags
& NDR_IN
) {
2778 ndr_print_struct(ndr
, "in", "PNP_GetResDesData");
2782 if (flags
& NDR_OUT
) {
2783 ndr_print_struct(ndr
, "out", "PNP_GetResDesData");
2785 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
2791 static enum ndr_err_code
ndr_push_PNP_GetResDesDataSize(struct ndr_push
*ndr
, int flags
, const struct PNP_GetResDesDataSize
*r
)
2793 if (flags
& NDR_IN
) {
2795 if (flags
& NDR_OUT
) {
2796 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
2798 return NDR_ERR_SUCCESS
;
2801 static enum ndr_err_code
ndr_pull_PNP_GetResDesDataSize(struct ndr_pull
*ndr
, int flags
, struct PNP_GetResDesDataSize
*r
)
2803 if (flags
& NDR_IN
) {
2805 if (flags
& NDR_OUT
) {
2806 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
2808 return NDR_ERR_SUCCESS
;
2811 _PUBLIC_
void ndr_print_PNP_GetResDesDataSize(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetResDesDataSize
*r
)
2813 ndr_print_struct(ndr
, name
, "PNP_GetResDesDataSize");
2815 if (flags
& NDR_SET_VALUES
) {
2816 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2818 if (flags
& NDR_IN
) {
2819 ndr_print_struct(ndr
, "in", "PNP_GetResDesDataSize");
2823 if (flags
& NDR_OUT
) {
2824 ndr_print_struct(ndr
, "out", "PNP_GetResDesDataSize");
2826 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
2832 static enum ndr_err_code
ndr_push_PNP_ModifyResDes(struct ndr_push
*ndr
, int flags
, const struct PNP_ModifyResDes
*r
)
2834 if (flags
& NDR_IN
) {
2836 if (flags
& NDR_OUT
) {
2837 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
2839 return NDR_ERR_SUCCESS
;
2842 static enum ndr_err_code
ndr_pull_PNP_ModifyResDes(struct ndr_pull
*ndr
, int flags
, struct PNP_ModifyResDes
*r
)
2844 if (flags
& NDR_IN
) {
2846 if (flags
& NDR_OUT
) {
2847 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
2849 return NDR_ERR_SUCCESS
;
2852 _PUBLIC_
void ndr_print_PNP_ModifyResDes(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_ModifyResDes
*r
)
2854 ndr_print_struct(ndr
, name
, "PNP_ModifyResDes");
2856 if (flags
& NDR_SET_VALUES
) {
2857 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2859 if (flags
& NDR_IN
) {
2860 ndr_print_struct(ndr
, "in", "PNP_ModifyResDes");
2864 if (flags
& NDR_OUT
) {
2865 ndr_print_struct(ndr
, "out", "PNP_ModifyResDes");
2867 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
2873 static enum ndr_err_code
ndr_push_PNP_DetectResourceLimit(struct ndr_push
*ndr
, int flags
, const struct PNP_DetectResourceLimit
*r
)
2875 if (flags
& NDR_IN
) {
2877 if (flags
& NDR_OUT
) {
2878 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
2880 return NDR_ERR_SUCCESS
;
2883 static enum ndr_err_code
ndr_pull_PNP_DetectResourceLimit(struct ndr_pull
*ndr
, int flags
, struct PNP_DetectResourceLimit
*r
)
2885 if (flags
& NDR_IN
) {
2887 if (flags
& NDR_OUT
) {
2888 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
2890 return NDR_ERR_SUCCESS
;
2893 _PUBLIC_
void ndr_print_PNP_DetectResourceLimit(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_DetectResourceLimit
*r
)
2895 ndr_print_struct(ndr
, name
, "PNP_DetectResourceLimit");
2897 if (flags
& NDR_SET_VALUES
) {
2898 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2900 if (flags
& NDR_IN
) {
2901 ndr_print_struct(ndr
, "in", "PNP_DetectResourceLimit");
2905 if (flags
& NDR_OUT
) {
2906 ndr_print_struct(ndr
, "out", "PNP_DetectResourceLimit");
2908 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
2914 static enum ndr_err_code
ndr_push_PNP_QueryResConfList(struct ndr_push
*ndr
, int flags
, const struct PNP_QueryResConfList
*r
)
2916 if (flags
& NDR_IN
) {
2918 if (flags
& NDR_OUT
) {
2919 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
2921 return NDR_ERR_SUCCESS
;
2924 static enum ndr_err_code
ndr_pull_PNP_QueryResConfList(struct ndr_pull
*ndr
, int flags
, struct PNP_QueryResConfList
*r
)
2926 if (flags
& NDR_IN
) {
2928 if (flags
& NDR_OUT
) {
2929 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
2931 return NDR_ERR_SUCCESS
;
2934 _PUBLIC_
void ndr_print_PNP_QueryResConfList(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_QueryResConfList
*r
)
2936 ndr_print_struct(ndr
, name
, "PNP_QueryResConfList");
2938 if (flags
& NDR_SET_VALUES
) {
2939 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2941 if (flags
& NDR_IN
) {
2942 ndr_print_struct(ndr
, "in", "PNP_QueryResConfList");
2946 if (flags
& NDR_OUT
) {
2947 ndr_print_struct(ndr
, "out", "PNP_QueryResConfList");
2949 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
2955 static enum ndr_err_code
ndr_push_PNP_SetHwProf(struct ndr_push
*ndr
, int flags
, const struct PNP_SetHwProf
*r
)
2957 if (flags
& NDR_IN
) {
2959 if (flags
& NDR_OUT
) {
2960 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
2962 return NDR_ERR_SUCCESS
;
2965 static enum ndr_err_code
ndr_pull_PNP_SetHwProf(struct ndr_pull
*ndr
, int flags
, struct PNP_SetHwProf
*r
)
2967 if (flags
& NDR_IN
) {
2969 if (flags
& NDR_OUT
) {
2970 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
2972 return NDR_ERR_SUCCESS
;
2975 _PUBLIC_
void ndr_print_PNP_SetHwProf(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_SetHwProf
*r
)
2977 ndr_print_struct(ndr
, name
, "PNP_SetHwProf");
2979 if (flags
& NDR_SET_VALUES
) {
2980 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2982 if (flags
& NDR_IN
) {
2983 ndr_print_struct(ndr
, "in", "PNP_SetHwProf");
2987 if (flags
& NDR_OUT
) {
2988 ndr_print_struct(ndr
, "out", "PNP_SetHwProf");
2990 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
2996 static enum ndr_err_code
ndr_push_PNP_QueryArbitratorFreeData(struct ndr_push
*ndr
, int flags
, const struct PNP_QueryArbitratorFreeData
*r
)
2998 if (flags
& NDR_IN
) {
3000 if (flags
& NDR_OUT
) {
3001 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
3003 return NDR_ERR_SUCCESS
;
3006 static enum ndr_err_code
ndr_pull_PNP_QueryArbitratorFreeData(struct ndr_pull
*ndr
, int flags
, struct PNP_QueryArbitratorFreeData
*r
)
3008 if (flags
& NDR_IN
) {
3010 if (flags
& NDR_OUT
) {
3011 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
3013 return NDR_ERR_SUCCESS
;
3016 _PUBLIC_
void ndr_print_PNP_QueryArbitratorFreeData(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_QueryArbitratorFreeData
*r
)
3018 ndr_print_struct(ndr
, name
, "PNP_QueryArbitratorFreeData");
3020 if (flags
& NDR_SET_VALUES
) {
3021 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
3023 if (flags
& NDR_IN
) {
3024 ndr_print_struct(ndr
, "in", "PNP_QueryArbitratorFreeData");
3028 if (flags
& NDR_OUT
) {
3029 ndr_print_struct(ndr
, "out", "PNP_QueryArbitratorFreeData");
3031 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
3037 static enum ndr_err_code
ndr_push_PNP_QueryArbitratorFreeSize(struct ndr_push
*ndr
, int flags
, const struct PNP_QueryArbitratorFreeSize
*r
)
3039 if (flags
& NDR_IN
) {
3041 if (flags
& NDR_OUT
) {
3042 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
3044 return NDR_ERR_SUCCESS
;
3047 static enum ndr_err_code
ndr_pull_PNP_QueryArbitratorFreeSize(struct ndr_pull
*ndr
, int flags
, struct PNP_QueryArbitratorFreeSize
*r
)
3049 if (flags
& NDR_IN
) {
3051 if (flags
& NDR_OUT
) {
3052 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
3054 return NDR_ERR_SUCCESS
;
3057 _PUBLIC_
void ndr_print_PNP_QueryArbitratorFreeSize(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_QueryArbitratorFreeSize
*r
)
3059 ndr_print_struct(ndr
, name
, "PNP_QueryArbitratorFreeSize");
3061 if (flags
& NDR_SET_VALUES
) {
3062 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
3064 if (flags
& NDR_IN
) {
3065 ndr_print_struct(ndr
, "in", "PNP_QueryArbitratorFreeSize");
3069 if (flags
& NDR_OUT
) {
3070 ndr_print_struct(ndr
, "out", "PNP_QueryArbitratorFreeSize");
3072 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
3078 static enum ndr_err_code
ndr_push_PNP_RunDetection(struct ndr_push
*ndr
, int flags
, const struct PNP_RunDetection
*r
)
3080 if (flags
& NDR_IN
) {
3082 if (flags
& NDR_OUT
) {
3083 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
3085 return NDR_ERR_SUCCESS
;
3088 static enum ndr_err_code
ndr_pull_PNP_RunDetection(struct ndr_pull
*ndr
, int flags
, struct PNP_RunDetection
*r
)
3090 if (flags
& NDR_IN
) {
3092 if (flags
& NDR_OUT
) {
3093 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
3095 return NDR_ERR_SUCCESS
;
3098 _PUBLIC_
void ndr_print_PNP_RunDetection(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_RunDetection
*r
)
3100 ndr_print_struct(ndr
, name
, "PNP_RunDetection");
3102 if (flags
& NDR_SET_VALUES
) {
3103 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
3105 if (flags
& NDR_IN
) {
3106 ndr_print_struct(ndr
, "in", "PNP_RunDetection");
3110 if (flags
& NDR_OUT
) {
3111 ndr_print_struct(ndr
, "out", "PNP_RunDetection");
3113 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
3119 static enum ndr_err_code
ndr_push_PNP_RegisterNotification(struct ndr_push
*ndr
, int flags
, const struct PNP_RegisterNotification
*r
)
3121 if (flags
& NDR_IN
) {
3123 if (flags
& NDR_OUT
) {
3124 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
3126 return NDR_ERR_SUCCESS
;
3129 static enum ndr_err_code
ndr_pull_PNP_RegisterNotification(struct ndr_pull
*ndr
, int flags
, struct PNP_RegisterNotification
*r
)
3131 if (flags
& NDR_IN
) {
3133 if (flags
& NDR_OUT
) {
3134 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
3136 return NDR_ERR_SUCCESS
;
3139 _PUBLIC_
void ndr_print_PNP_RegisterNotification(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_RegisterNotification
*r
)
3141 ndr_print_struct(ndr
, name
, "PNP_RegisterNotification");
3143 if (flags
& NDR_SET_VALUES
) {
3144 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
3146 if (flags
& NDR_IN
) {
3147 ndr_print_struct(ndr
, "in", "PNP_RegisterNotification");
3151 if (flags
& NDR_OUT
) {
3152 ndr_print_struct(ndr
, "out", "PNP_RegisterNotification");
3154 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
3160 static enum ndr_err_code
ndr_push_PNP_UnregisterNotification(struct ndr_push
*ndr
, int flags
, const struct PNP_UnregisterNotification
*r
)
3162 if (flags
& NDR_IN
) {
3164 if (flags
& NDR_OUT
) {
3165 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
3167 return NDR_ERR_SUCCESS
;
3170 static enum ndr_err_code
ndr_pull_PNP_UnregisterNotification(struct ndr_pull
*ndr
, int flags
, struct PNP_UnregisterNotification
*r
)
3172 if (flags
& NDR_IN
) {
3174 if (flags
& NDR_OUT
) {
3175 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
3177 return NDR_ERR_SUCCESS
;
3180 _PUBLIC_
void ndr_print_PNP_UnregisterNotification(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_UnregisterNotification
*r
)
3182 ndr_print_struct(ndr
, name
, "PNP_UnregisterNotification");
3184 if (flags
& NDR_SET_VALUES
) {
3185 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
3187 if (flags
& NDR_IN
) {
3188 ndr_print_struct(ndr
, "in", "PNP_UnregisterNotification");
3192 if (flags
& NDR_OUT
) {
3193 ndr_print_struct(ndr
, "out", "PNP_UnregisterNotification");
3195 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
3201 static enum ndr_err_code
ndr_push_PNP_GetCustomDevProp(struct ndr_push
*ndr
, int flags
, const struct PNP_GetCustomDevProp
*r
)
3203 if (flags
& NDR_IN
) {
3205 if (flags
& NDR_OUT
) {
3206 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
3208 return NDR_ERR_SUCCESS
;
3211 static enum ndr_err_code
ndr_pull_PNP_GetCustomDevProp(struct ndr_pull
*ndr
, int flags
, struct PNP_GetCustomDevProp
*r
)
3213 if (flags
& NDR_IN
) {
3215 if (flags
& NDR_OUT
) {
3216 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
3218 return NDR_ERR_SUCCESS
;
3221 _PUBLIC_
void ndr_print_PNP_GetCustomDevProp(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetCustomDevProp
*r
)
3223 ndr_print_struct(ndr
, name
, "PNP_GetCustomDevProp");
3225 if (flags
& NDR_SET_VALUES
) {
3226 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
3228 if (flags
& NDR_IN
) {
3229 ndr_print_struct(ndr
, "in", "PNP_GetCustomDevProp");
3233 if (flags
& NDR_OUT
) {
3234 ndr_print_struct(ndr
, "out", "PNP_GetCustomDevProp");
3236 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
3242 static enum ndr_err_code
ndr_push_PNP_GetVersionInternal(struct ndr_push
*ndr
, int flags
, const struct PNP_GetVersionInternal
*r
)
3244 if (flags
& NDR_IN
) {
3246 if (flags
& NDR_OUT
) {
3247 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
3249 return NDR_ERR_SUCCESS
;
3252 static enum ndr_err_code
ndr_pull_PNP_GetVersionInternal(struct ndr_pull
*ndr
, int flags
, struct PNP_GetVersionInternal
*r
)
3254 if (flags
& NDR_IN
) {
3256 if (flags
& NDR_OUT
) {
3257 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
3259 return NDR_ERR_SUCCESS
;
3262 _PUBLIC_
void ndr_print_PNP_GetVersionInternal(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetVersionInternal
*r
)
3264 ndr_print_struct(ndr
, name
, "PNP_GetVersionInternal");
3266 if (flags
& NDR_SET_VALUES
) {
3267 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
3269 if (flags
& NDR_IN
) {
3270 ndr_print_struct(ndr
, "in", "PNP_GetVersionInternal");
3274 if (flags
& NDR_OUT
) {
3275 ndr_print_struct(ndr
, "out", "PNP_GetVersionInternal");
3277 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
3283 static enum ndr_err_code
ndr_push_PNP_GetBlockedDriverInfo(struct ndr_push
*ndr
, int flags
, const struct PNP_GetBlockedDriverInfo
*r
)
3285 if (flags
& NDR_IN
) {
3287 if (flags
& NDR_OUT
) {
3288 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
3290 return NDR_ERR_SUCCESS
;
3293 static enum ndr_err_code
ndr_pull_PNP_GetBlockedDriverInfo(struct ndr_pull
*ndr
, int flags
, struct PNP_GetBlockedDriverInfo
*r
)
3295 if (flags
& NDR_IN
) {
3297 if (flags
& NDR_OUT
) {
3298 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
3300 return NDR_ERR_SUCCESS
;
3303 _PUBLIC_
void ndr_print_PNP_GetBlockedDriverInfo(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetBlockedDriverInfo
*r
)
3305 ndr_print_struct(ndr
, name
, "PNP_GetBlockedDriverInfo");
3307 if (flags
& NDR_SET_VALUES
) {
3308 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
3310 if (flags
& NDR_IN
) {
3311 ndr_print_struct(ndr
, "in", "PNP_GetBlockedDriverInfo");
3315 if (flags
& NDR_OUT
) {
3316 ndr_print_struct(ndr
, "out", "PNP_GetBlockedDriverInfo");
3318 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
3324 static enum ndr_err_code
ndr_push_PNP_GetServerSideDeviceInstallFlags(struct ndr_push
*ndr
, int flags
, const struct PNP_GetServerSideDeviceInstallFlags
*r
)
3326 if (flags
& NDR_IN
) {
3328 if (flags
& NDR_OUT
) {
3329 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
3331 return NDR_ERR_SUCCESS
;
3334 static enum ndr_err_code
ndr_pull_PNP_GetServerSideDeviceInstallFlags(struct ndr_pull
*ndr
, int flags
, struct PNP_GetServerSideDeviceInstallFlags
*r
)
3336 if (flags
& NDR_IN
) {
3338 if (flags
& NDR_OUT
) {
3339 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
3341 return NDR_ERR_SUCCESS
;
3344 _PUBLIC_
void ndr_print_PNP_GetServerSideDeviceInstallFlags(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetServerSideDeviceInstallFlags
*r
)
3346 ndr_print_struct(ndr
, name
, "PNP_GetServerSideDeviceInstallFlags");
3348 if (flags
& NDR_SET_VALUES
) {
3349 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
3351 if (flags
& NDR_IN
) {
3352 ndr_print_struct(ndr
, "in", "PNP_GetServerSideDeviceInstallFlags");
3356 if (flags
& NDR_OUT
) {
3357 ndr_print_struct(ndr
, "out", "PNP_GetServerSideDeviceInstallFlags");
3359 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
3365 static const struct ndr_interface_call ntsvcs_calls
[] = {
3368 sizeof(struct PNP_Disconnect
),
3369 (ndr_push_flags_fn_t
) ndr_push_PNP_Disconnect
,
3370 (ndr_pull_flags_fn_t
) ndr_pull_PNP_Disconnect
,
3371 (ndr_print_function_t
) ndr_print_PNP_Disconnect
,
3376 sizeof(struct PNP_Connect
),
3377 (ndr_push_flags_fn_t
) ndr_push_PNP_Connect
,
3378 (ndr_pull_flags_fn_t
) ndr_pull_PNP_Connect
,
3379 (ndr_print_function_t
) ndr_print_PNP_Connect
,
3384 sizeof(struct PNP_GetVersion
),
3385 (ndr_push_flags_fn_t
) ndr_push_PNP_GetVersion
,
3386 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetVersion
,
3387 (ndr_print_function_t
) ndr_print_PNP_GetVersion
,
3391 "PNP_GetGlobalState",
3392 sizeof(struct PNP_GetGlobalState
),
3393 (ndr_push_flags_fn_t
) ndr_push_PNP_GetGlobalState
,
3394 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetGlobalState
,
3395 (ndr_print_function_t
) ndr_print_PNP_GetGlobalState
,
3399 "PNP_InitDetection",
3400 sizeof(struct PNP_InitDetection
),
3401 (ndr_push_flags_fn_t
) ndr_push_PNP_InitDetection
,
3402 (ndr_pull_flags_fn_t
) ndr_pull_PNP_InitDetection
,
3403 (ndr_print_function_t
) ndr_print_PNP_InitDetection
,
3408 sizeof(struct PNP_ReportLogOn
),
3409 (ndr_push_flags_fn_t
) ndr_push_PNP_ReportLogOn
,
3410 (ndr_pull_flags_fn_t
) ndr_pull_PNP_ReportLogOn
,
3411 (ndr_print_function_t
) ndr_print_PNP_ReportLogOn
,
3415 "PNP_ValidateDeviceInstance",
3416 sizeof(struct PNP_ValidateDeviceInstance
),
3417 (ndr_push_flags_fn_t
) ndr_push_PNP_ValidateDeviceInstance
,
3418 (ndr_pull_flags_fn_t
) ndr_pull_PNP_ValidateDeviceInstance
,
3419 (ndr_print_function_t
) ndr_print_PNP_ValidateDeviceInstance
,
3423 "PNP_GetRootDeviceInstance",
3424 sizeof(struct PNP_GetRootDeviceInstance
),
3425 (ndr_push_flags_fn_t
) ndr_push_PNP_GetRootDeviceInstance
,
3426 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetRootDeviceInstance
,
3427 (ndr_print_function_t
) ndr_print_PNP_GetRootDeviceInstance
,
3431 "PNP_GetRelatedDeviceInstance",
3432 sizeof(struct PNP_GetRelatedDeviceInstance
),
3433 (ndr_push_flags_fn_t
) ndr_push_PNP_GetRelatedDeviceInstance
,
3434 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetRelatedDeviceInstance
,
3435 (ndr_print_function_t
) ndr_print_PNP_GetRelatedDeviceInstance
,
3439 "PNP_EnumerateSubKeys",
3440 sizeof(struct PNP_EnumerateSubKeys
),
3441 (ndr_push_flags_fn_t
) ndr_push_PNP_EnumerateSubKeys
,
3442 (ndr_pull_flags_fn_t
) ndr_pull_PNP_EnumerateSubKeys
,
3443 (ndr_print_function_t
) ndr_print_PNP_EnumerateSubKeys
,
3447 "PNP_GetDeviceList",
3448 sizeof(struct PNP_GetDeviceList
),
3449 (ndr_push_flags_fn_t
) ndr_push_PNP_GetDeviceList
,
3450 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetDeviceList
,
3451 (ndr_print_function_t
) ndr_print_PNP_GetDeviceList
,
3455 "PNP_GetDeviceListSize",
3456 sizeof(struct PNP_GetDeviceListSize
),
3457 (ndr_push_flags_fn_t
) ndr_push_PNP_GetDeviceListSize
,
3458 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetDeviceListSize
,
3459 (ndr_print_function_t
) ndr_print_PNP_GetDeviceListSize
,
3464 sizeof(struct PNP_GetDepth
),
3465 (ndr_push_flags_fn_t
) ndr_push_PNP_GetDepth
,
3466 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetDepth
,
3467 (ndr_print_function_t
) ndr_print_PNP_GetDepth
,
3471 "PNP_GetDeviceRegProp",
3472 sizeof(struct PNP_GetDeviceRegProp
),
3473 (ndr_push_flags_fn_t
) ndr_push_PNP_GetDeviceRegProp
,
3474 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetDeviceRegProp
,
3475 (ndr_print_function_t
) ndr_print_PNP_GetDeviceRegProp
,
3479 "PNP_SetDeviceRegProp",
3480 sizeof(struct PNP_SetDeviceRegProp
),
3481 (ndr_push_flags_fn_t
) ndr_push_PNP_SetDeviceRegProp
,
3482 (ndr_pull_flags_fn_t
) ndr_pull_PNP_SetDeviceRegProp
,
3483 (ndr_print_function_t
) ndr_print_PNP_SetDeviceRegProp
,
3487 "PNP_GetClassInstance",
3488 sizeof(struct PNP_GetClassInstance
),
3489 (ndr_push_flags_fn_t
) ndr_push_PNP_GetClassInstance
,
3490 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetClassInstance
,
3491 (ndr_print_function_t
) ndr_print_PNP_GetClassInstance
,
3496 sizeof(struct PNP_CreateKey
),
3497 (ndr_push_flags_fn_t
) ndr_push_PNP_CreateKey
,
3498 (ndr_pull_flags_fn_t
) ndr_pull_PNP_CreateKey
,
3499 (ndr_print_function_t
) ndr_print_PNP_CreateKey
,
3503 "PNP_DeleteRegistryKey",
3504 sizeof(struct PNP_DeleteRegistryKey
),
3505 (ndr_push_flags_fn_t
) ndr_push_PNP_DeleteRegistryKey
,
3506 (ndr_pull_flags_fn_t
) ndr_pull_PNP_DeleteRegistryKey
,
3507 (ndr_print_function_t
) ndr_print_PNP_DeleteRegistryKey
,
3511 "PNP_GetClassCount",
3512 sizeof(struct PNP_GetClassCount
),
3513 (ndr_push_flags_fn_t
) ndr_push_PNP_GetClassCount
,
3514 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetClassCount
,
3515 (ndr_print_function_t
) ndr_print_PNP_GetClassCount
,
3520 sizeof(struct PNP_GetClassName
),
3521 (ndr_push_flags_fn_t
) ndr_push_PNP_GetClassName
,
3522 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetClassName
,
3523 (ndr_print_function_t
) ndr_print_PNP_GetClassName
,
3527 "PNP_DeleteClassKey",
3528 sizeof(struct PNP_DeleteClassKey
),
3529 (ndr_push_flags_fn_t
) ndr_push_PNP_DeleteClassKey
,
3530 (ndr_pull_flags_fn_t
) ndr_pull_PNP_DeleteClassKey
,
3531 (ndr_print_function_t
) ndr_print_PNP_DeleteClassKey
,
3535 "PNP_GetInterfaceDeviceAlias",
3536 sizeof(struct PNP_GetInterfaceDeviceAlias
),
3537 (ndr_push_flags_fn_t
) ndr_push_PNP_GetInterfaceDeviceAlias
,
3538 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetInterfaceDeviceAlias
,
3539 (ndr_print_function_t
) ndr_print_PNP_GetInterfaceDeviceAlias
,
3543 "PNP_GetInterfaceDeviceList",
3544 sizeof(struct PNP_GetInterfaceDeviceList
),
3545 (ndr_push_flags_fn_t
) ndr_push_PNP_GetInterfaceDeviceList
,
3546 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetInterfaceDeviceList
,
3547 (ndr_print_function_t
) ndr_print_PNP_GetInterfaceDeviceList
,
3551 "PNP_GetInterfaceDeviceListSize",
3552 sizeof(struct PNP_GetInterfaceDeviceListSize
),
3553 (ndr_push_flags_fn_t
) ndr_push_PNP_GetInterfaceDeviceListSize
,
3554 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetInterfaceDeviceListSize
,
3555 (ndr_print_function_t
) ndr_print_PNP_GetInterfaceDeviceListSize
,
3559 "PNP_RegisterDeviceClassAssociation",
3560 sizeof(struct PNP_RegisterDeviceClassAssociation
),
3561 (ndr_push_flags_fn_t
) ndr_push_PNP_RegisterDeviceClassAssociation
,
3562 (ndr_pull_flags_fn_t
) ndr_pull_PNP_RegisterDeviceClassAssociation
,
3563 (ndr_print_function_t
) ndr_print_PNP_RegisterDeviceClassAssociation
,
3567 "PNP_UnregisterDeviceClassAssociation",
3568 sizeof(struct PNP_UnregisterDeviceClassAssociation
),
3569 (ndr_push_flags_fn_t
) ndr_push_PNP_UnregisterDeviceClassAssociation
,
3570 (ndr_pull_flags_fn_t
) ndr_pull_PNP_UnregisterDeviceClassAssociation
,
3571 (ndr_print_function_t
) ndr_print_PNP_UnregisterDeviceClassAssociation
,
3575 "PNP_GetClassRegProp",
3576 sizeof(struct PNP_GetClassRegProp
),
3577 (ndr_push_flags_fn_t
) ndr_push_PNP_GetClassRegProp
,
3578 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetClassRegProp
,
3579 (ndr_print_function_t
) ndr_print_PNP_GetClassRegProp
,
3583 "PNP_SetClassRegProp",
3584 sizeof(struct PNP_SetClassRegProp
),
3585 (ndr_push_flags_fn_t
) ndr_push_PNP_SetClassRegProp
,
3586 (ndr_pull_flags_fn_t
) ndr_pull_PNP_SetClassRegProp
,
3587 (ndr_print_function_t
) ndr_print_PNP_SetClassRegProp
,
3591 "PNP_CreateDevInst",
3592 sizeof(struct PNP_CreateDevInst
),
3593 (ndr_push_flags_fn_t
) ndr_push_PNP_CreateDevInst
,
3594 (ndr_pull_flags_fn_t
) ndr_pull_PNP_CreateDevInst
,
3595 (ndr_print_function_t
) ndr_print_PNP_CreateDevInst
,
3599 "PNP_DeviceInstanceAction",
3600 sizeof(struct PNP_DeviceInstanceAction
),
3601 (ndr_push_flags_fn_t
) ndr_push_PNP_DeviceInstanceAction
,
3602 (ndr_pull_flags_fn_t
) ndr_pull_PNP_DeviceInstanceAction
,
3603 (ndr_print_function_t
) ndr_print_PNP_DeviceInstanceAction
,
3607 "PNP_GetDeviceStatus",
3608 sizeof(struct PNP_GetDeviceStatus
),
3609 (ndr_push_flags_fn_t
) ndr_push_PNP_GetDeviceStatus
,
3610 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetDeviceStatus
,
3611 (ndr_print_function_t
) ndr_print_PNP_GetDeviceStatus
,
3615 "PNP_SetDeviceProblem",
3616 sizeof(struct PNP_SetDeviceProblem
),
3617 (ndr_push_flags_fn_t
) ndr_push_PNP_SetDeviceProblem
,
3618 (ndr_pull_flags_fn_t
) ndr_pull_PNP_SetDeviceProblem
,
3619 (ndr_print_function_t
) ndr_print_PNP_SetDeviceProblem
,
3623 "PNP_DisableDevInst",
3624 sizeof(struct PNP_DisableDevInst
),
3625 (ndr_push_flags_fn_t
) ndr_push_PNP_DisableDevInst
,
3626 (ndr_pull_flags_fn_t
) ndr_pull_PNP_DisableDevInst
,
3627 (ndr_print_function_t
) ndr_print_PNP_DisableDevInst
,
3631 "PNP_UninstallDevInst",
3632 sizeof(struct PNP_UninstallDevInst
),
3633 (ndr_push_flags_fn_t
) ndr_push_PNP_UninstallDevInst
,
3634 (ndr_pull_flags_fn_t
) ndr_pull_PNP_UninstallDevInst
,
3635 (ndr_print_function_t
) ndr_print_PNP_UninstallDevInst
,
3640 sizeof(struct PNP_AddID
),
3641 (ndr_push_flags_fn_t
) ndr_push_PNP_AddID
,
3642 (ndr_pull_flags_fn_t
) ndr_pull_PNP_AddID
,
3643 (ndr_print_function_t
) ndr_print_PNP_AddID
,
3647 "PNP_RegisterDriver",
3648 sizeof(struct PNP_RegisterDriver
),
3649 (ndr_push_flags_fn_t
) ndr_push_PNP_RegisterDriver
,
3650 (ndr_pull_flags_fn_t
) ndr_pull_PNP_RegisterDriver
,
3651 (ndr_print_function_t
) ndr_print_PNP_RegisterDriver
,
3656 sizeof(struct PNP_QueryRemove
),
3657 (ndr_push_flags_fn_t
) ndr_push_PNP_QueryRemove
,
3658 (ndr_pull_flags_fn_t
) ndr_pull_PNP_QueryRemove
,
3659 (ndr_print_function_t
) ndr_print_PNP_QueryRemove
,
3663 "PNP_RequestDeviceEject",
3664 sizeof(struct PNP_RequestDeviceEject
),
3665 (ndr_push_flags_fn_t
) ndr_push_PNP_RequestDeviceEject
,
3666 (ndr_pull_flags_fn_t
) ndr_pull_PNP_RequestDeviceEject
,
3667 (ndr_print_function_t
) ndr_print_PNP_RequestDeviceEject
,
3671 "PNP_IsDockStationPresent",
3672 sizeof(struct PNP_IsDockStationPresent
),
3673 (ndr_push_flags_fn_t
) ndr_push_PNP_IsDockStationPresent
,
3674 (ndr_pull_flags_fn_t
) ndr_pull_PNP_IsDockStationPresent
,
3675 (ndr_print_function_t
) ndr_print_PNP_IsDockStationPresent
,
3679 "PNP_RequestEjectPC",
3680 sizeof(struct PNP_RequestEjectPC
),
3681 (ndr_push_flags_fn_t
) ndr_push_PNP_RequestEjectPC
,
3682 (ndr_pull_flags_fn_t
) ndr_pull_PNP_RequestEjectPC
,
3683 (ndr_print_function_t
) ndr_print_PNP_RequestEjectPC
,
3688 sizeof(struct PNP_HwProfFlags
),
3689 (ndr_push_flags_fn_t
) ndr_push_PNP_HwProfFlags
,
3690 (ndr_pull_flags_fn_t
) ndr_pull_PNP_HwProfFlags
,
3691 (ndr_print_function_t
) ndr_print_PNP_HwProfFlags
,
3695 "PNP_GetHwProfInfo",
3696 sizeof(struct PNP_GetHwProfInfo
),
3697 (ndr_push_flags_fn_t
) ndr_push_PNP_GetHwProfInfo
,
3698 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetHwProfInfo
,
3699 (ndr_print_function_t
) ndr_print_PNP_GetHwProfInfo
,
3703 "PNP_AddEmptyLogConf",
3704 sizeof(struct PNP_AddEmptyLogConf
),
3705 (ndr_push_flags_fn_t
) ndr_push_PNP_AddEmptyLogConf
,
3706 (ndr_pull_flags_fn_t
) ndr_pull_PNP_AddEmptyLogConf
,
3707 (ndr_print_function_t
) ndr_print_PNP_AddEmptyLogConf
,
3712 sizeof(struct PNP_FreeLogConf
),
3713 (ndr_push_flags_fn_t
) ndr_push_PNP_FreeLogConf
,
3714 (ndr_pull_flags_fn_t
) ndr_pull_PNP_FreeLogConf
,
3715 (ndr_print_function_t
) ndr_print_PNP_FreeLogConf
,
3719 "PNP_GetFirstLogConf",
3720 sizeof(struct PNP_GetFirstLogConf
),
3721 (ndr_push_flags_fn_t
) ndr_push_PNP_GetFirstLogConf
,
3722 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetFirstLogConf
,
3723 (ndr_print_function_t
) ndr_print_PNP_GetFirstLogConf
,
3727 "PNP_GetNextLogConf",
3728 sizeof(struct PNP_GetNextLogConf
),
3729 (ndr_push_flags_fn_t
) ndr_push_PNP_GetNextLogConf
,
3730 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetNextLogConf
,
3731 (ndr_print_function_t
) ndr_print_PNP_GetNextLogConf
,
3735 "PNP_GetLogConfPriority",
3736 sizeof(struct PNP_GetLogConfPriority
),
3737 (ndr_push_flags_fn_t
) ndr_push_PNP_GetLogConfPriority
,
3738 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetLogConfPriority
,
3739 (ndr_print_function_t
) ndr_print_PNP_GetLogConfPriority
,
3744 sizeof(struct PNP_AddResDes
),
3745 (ndr_push_flags_fn_t
) ndr_push_PNP_AddResDes
,
3746 (ndr_pull_flags_fn_t
) ndr_pull_PNP_AddResDes
,
3747 (ndr_print_function_t
) ndr_print_PNP_AddResDes
,
3752 sizeof(struct PNP_FreeResDes
),
3753 (ndr_push_flags_fn_t
) ndr_push_PNP_FreeResDes
,
3754 (ndr_pull_flags_fn_t
) ndr_pull_PNP_FreeResDes
,
3755 (ndr_print_function_t
) ndr_print_PNP_FreeResDes
,
3759 "PNP_GetNextResDes",
3760 sizeof(struct PNP_GetNextResDes
),
3761 (ndr_push_flags_fn_t
) ndr_push_PNP_GetNextResDes
,
3762 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetNextResDes
,
3763 (ndr_print_function_t
) ndr_print_PNP_GetNextResDes
,
3767 "PNP_GetResDesData",
3768 sizeof(struct PNP_GetResDesData
),
3769 (ndr_push_flags_fn_t
) ndr_push_PNP_GetResDesData
,
3770 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetResDesData
,
3771 (ndr_print_function_t
) ndr_print_PNP_GetResDesData
,
3775 "PNP_GetResDesDataSize",
3776 sizeof(struct PNP_GetResDesDataSize
),
3777 (ndr_push_flags_fn_t
) ndr_push_PNP_GetResDesDataSize
,
3778 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetResDesDataSize
,
3779 (ndr_print_function_t
) ndr_print_PNP_GetResDesDataSize
,
3784 sizeof(struct PNP_ModifyResDes
),
3785 (ndr_push_flags_fn_t
) ndr_push_PNP_ModifyResDes
,
3786 (ndr_pull_flags_fn_t
) ndr_pull_PNP_ModifyResDes
,
3787 (ndr_print_function_t
) ndr_print_PNP_ModifyResDes
,
3791 "PNP_DetectResourceLimit",
3792 sizeof(struct PNP_DetectResourceLimit
),
3793 (ndr_push_flags_fn_t
) ndr_push_PNP_DetectResourceLimit
,
3794 (ndr_pull_flags_fn_t
) ndr_pull_PNP_DetectResourceLimit
,
3795 (ndr_print_function_t
) ndr_print_PNP_DetectResourceLimit
,
3799 "PNP_QueryResConfList",
3800 sizeof(struct PNP_QueryResConfList
),
3801 (ndr_push_flags_fn_t
) ndr_push_PNP_QueryResConfList
,
3802 (ndr_pull_flags_fn_t
) ndr_pull_PNP_QueryResConfList
,
3803 (ndr_print_function_t
) ndr_print_PNP_QueryResConfList
,
3808 sizeof(struct PNP_SetHwProf
),
3809 (ndr_push_flags_fn_t
) ndr_push_PNP_SetHwProf
,
3810 (ndr_pull_flags_fn_t
) ndr_pull_PNP_SetHwProf
,
3811 (ndr_print_function_t
) ndr_print_PNP_SetHwProf
,
3815 "PNP_QueryArbitratorFreeData",
3816 sizeof(struct PNP_QueryArbitratorFreeData
),
3817 (ndr_push_flags_fn_t
) ndr_push_PNP_QueryArbitratorFreeData
,
3818 (ndr_pull_flags_fn_t
) ndr_pull_PNP_QueryArbitratorFreeData
,
3819 (ndr_print_function_t
) ndr_print_PNP_QueryArbitratorFreeData
,
3823 "PNP_QueryArbitratorFreeSize",
3824 sizeof(struct PNP_QueryArbitratorFreeSize
),
3825 (ndr_push_flags_fn_t
) ndr_push_PNP_QueryArbitratorFreeSize
,
3826 (ndr_pull_flags_fn_t
) ndr_pull_PNP_QueryArbitratorFreeSize
,
3827 (ndr_print_function_t
) ndr_print_PNP_QueryArbitratorFreeSize
,
3832 sizeof(struct PNP_RunDetection
),
3833 (ndr_push_flags_fn_t
) ndr_push_PNP_RunDetection
,
3834 (ndr_pull_flags_fn_t
) ndr_pull_PNP_RunDetection
,
3835 (ndr_print_function_t
) ndr_print_PNP_RunDetection
,
3839 "PNP_RegisterNotification",
3840 sizeof(struct PNP_RegisterNotification
),
3841 (ndr_push_flags_fn_t
) ndr_push_PNP_RegisterNotification
,
3842 (ndr_pull_flags_fn_t
) ndr_pull_PNP_RegisterNotification
,
3843 (ndr_print_function_t
) ndr_print_PNP_RegisterNotification
,
3847 "PNP_UnregisterNotification",
3848 sizeof(struct PNP_UnregisterNotification
),
3849 (ndr_push_flags_fn_t
) ndr_push_PNP_UnregisterNotification
,
3850 (ndr_pull_flags_fn_t
) ndr_pull_PNP_UnregisterNotification
,
3851 (ndr_print_function_t
) ndr_print_PNP_UnregisterNotification
,
3855 "PNP_GetCustomDevProp",
3856 sizeof(struct PNP_GetCustomDevProp
),
3857 (ndr_push_flags_fn_t
) ndr_push_PNP_GetCustomDevProp
,
3858 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetCustomDevProp
,
3859 (ndr_print_function_t
) ndr_print_PNP_GetCustomDevProp
,
3863 "PNP_GetVersionInternal",
3864 sizeof(struct PNP_GetVersionInternal
),
3865 (ndr_push_flags_fn_t
) ndr_push_PNP_GetVersionInternal
,
3866 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetVersionInternal
,
3867 (ndr_print_function_t
) ndr_print_PNP_GetVersionInternal
,
3871 "PNP_GetBlockedDriverInfo",
3872 sizeof(struct PNP_GetBlockedDriverInfo
),
3873 (ndr_push_flags_fn_t
) ndr_push_PNP_GetBlockedDriverInfo
,
3874 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetBlockedDriverInfo
,
3875 (ndr_print_function_t
) ndr_print_PNP_GetBlockedDriverInfo
,
3879 "PNP_GetServerSideDeviceInstallFlags",
3880 sizeof(struct PNP_GetServerSideDeviceInstallFlags
),
3881 (ndr_push_flags_fn_t
) ndr_push_PNP_GetServerSideDeviceInstallFlags
,
3882 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetServerSideDeviceInstallFlags
,
3883 (ndr_print_function_t
) ndr_print_PNP_GetServerSideDeviceInstallFlags
,
3886 { NULL
, 0, NULL
, NULL
, NULL
, false }
3889 static const char * const ntsvcs_endpoint_strings
[] = {
3890 "ncacn_np:[\\pipe\\ntsvcs]",
3891 "ncacn_np:[\\pipe\\plugplay]",
3894 static const struct ndr_interface_string_array ntsvcs_endpoints
= {
3896 .names
= ntsvcs_endpoint_strings
3899 static const char * const ntsvcs_authservice_strings
[] = {
3903 static const struct ndr_interface_string_array ntsvcs_authservices
= {
3905 .names
= ntsvcs_authservice_strings
3909 const struct ndr_interface_table ndr_table_ntsvcs
= {
3912 {0x8d9f4e40,0xa03d,0x11ce,{0x8f,0x69},{0x08,0x00,0x3e,0x30,0x05,0x1b}},
3915 .helpstring
= NDR_NTSVCS_HELPSTRING
,
3917 .calls
= ntsvcs_calls
,
3918 .endpoints
= &ntsvcs_endpoints
,
3919 .authservices
= &ntsvcs_authservices