1 /* parser auto-generated by pidl */
4 #include "librpc/gen_ndr/ndr_ntsvcs.h"
6 static enum ndr_err_code
ndr_push_PNP_Disconnect(struct ndr_push
*ndr
, int flags
, const struct PNP_Disconnect
*r
)
10 if (flags
& NDR_OUT
) {
11 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
13 return NDR_ERR_SUCCESS
;
16 static enum ndr_err_code
ndr_pull_PNP_Disconnect(struct ndr_pull
*ndr
, int flags
, struct PNP_Disconnect
*r
)
20 if (flags
& NDR_OUT
) {
21 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
23 return NDR_ERR_SUCCESS
;
26 _PUBLIC_
void ndr_print_PNP_Disconnect(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_Disconnect
*r
)
28 ndr_print_struct(ndr
, name
, "PNP_Disconnect");
30 if (flags
& NDR_SET_VALUES
) {
31 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
34 ndr_print_struct(ndr
, "in", "PNP_Disconnect");
38 if (flags
& NDR_OUT
) {
39 ndr_print_struct(ndr
, "out", "PNP_Disconnect");
41 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
47 static enum ndr_err_code
ndr_push_PNP_Connect(struct ndr_push
*ndr
, int flags
, const struct PNP_Connect
*r
)
51 if (flags
& NDR_OUT
) {
52 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
54 return NDR_ERR_SUCCESS
;
57 static enum ndr_err_code
ndr_pull_PNP_Connect(struct ndr_pull
*ndr
, int flags
, struct PNP_Connect
*r
)
61 if (flags
& NDR_OUT
) {
62 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
64 return NDR_ERR_SUCCESS
;
67 _PUBLIC_
void ndr_print_PNP_Connect(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_Connect
*r
)
69 ndr_print_struct(ndr
, name
, "PNP_Connect");
71 if (flags
& NDR_SET_VALUES
) {
72 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
75 ndr_print_struct(ndr
, "in", "PNP_Connect");
79 if (flags
& NDR_OUT
) {
80 ndr_print_struct(ndr
, "out", "PNP_Connect");
82 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
88 static enum ndr_err_code
ndr_push_PNP_GetVersion(struct ndr_push
*ndr
, int flags
, const struct PNP_GetVersion
*r
)
92 if (flags
& NDR_OUT
) {
93 if (r
->out
.version
== NULL
) {
94 return ndr_push_error(ndr
, NDR_ERR_INVALID_POINTER
, "NULL [ref] pointer");
96 NDR_CHECK(ndr_push_uint16(ndr
, NDR_SCALARS
, *r
->out
.version
));
97 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
99 return NDR_ERR_SUCCESS
;
102 static enum ndr_err_code
ndr_pull_PNP_GetVersion(struct ndr_pull
*ndr
, int flags
, struct PNP_GetVersion
*r
)
104 TALLOC_CTX
*_mem_save_version_0
;
105 if (flags
& NDR_IN
) {
108 NDR_PULL_ALLOC(ndr
, r
->out
.version
);
109 ZERO_STRUCTP(r
->out
.version
);
111 if (flags
& NDR_OUT
) {
112 if (ndr
->flags
& LIBNDR_FLAG_REF_ALLOC
) {
113 NDR_PULL_ALLOC(ndr
, r
->out
.version
);
115 _mem_save_version_0
= NDR_PULL_GET_MEM_CTX(ndr
);
116 NDR_PULL_SET_MEM_CTX(ndr
, r
->out
.version
, LIBNDR_FLAG_REF_ALLOC
);
117 NDR_CHECK(ndr_pull_uint16(ndr
, NDR_SCALARS
, r
->out
.version
));
118 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_version_0
, LIBNDR_FLAG_REF_ALLOC
);
119 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
121 return NDR_ERR_SUCCESS
;
124 _PUBLIC_
void ndr_print_PNP_GetVersion(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetVersion
*r
)
126 ndr_print_struct(ndr
, name
, "PNP_GetVersion");
128 if (flags
& NDR_SET_VALUES
) {
129 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
131 if (flags
& NDR_IN
) {
132 ndr_print_struct(ndr
, "in", "PNP_GetVersion");
136 if (flags
& NDR_OUT
) {
137 ndr_print_struct(ndr
, "out", "PNP_GetVersion");
139 ndr_print_ptr(ndr
, "version", r
->out
.version
);
141 ndr_print_uint16(ndr
, "version", *r
->out
.version
);
143 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
149 static enum ndr_err_code
ndr_push_PNP_GetGlobalState(struct ndr_push
*ndr
, int flags
, const struct PNP_GetGlobalState
*r
)
151 if (flags
& NDR_IN
) {
153 if (flags
& NDR_OUT
) {
154 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
156 return NDR_ERR_SUCCESS
;
159 static enum ndr_err_code
ndr_pull_PNP_GetGlobalState(struct ndr_pull
*ndr
, int flags
, struct PNP_GetGlobalState
*r
)
161 if (flags
& NDR_IN
) {
163 if (flags
& NDR_OUT
) {
164 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
166 return NDR_ERR_SUCCESS
;
169 _PUBLIC_
void ndr_print_PNP_GetGlobalState(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetGlobalState
*r
)
171 ndr_print_struct(ndr
, name
, "PNP_GetGlobalState");
173 if (flags
& NDR_SET_VALUES
) {
174 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
176 if (flags
& NDR_IN
) {
177 ndr_print_struct(ndr
, "in", "PNP_GetGlobalState");
181 if (flags
& NDR_OUT
) {
182 ndr_print_struct(ndr
, "out", "PNP_GetGlobalState");
184 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
190 static enum ndr_err_code
ndr_push_PNP_InitDetection(struct ndr_push
*ndr
, int flags
, const struct PNP_InitDetection
*r
)
192 if (flags
& NDR_IN
) {
194 if (flags
& NDR_OUT
) {
195 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
197 return NDR_ERR_SUCCESS
;
200 static enum ndr_err_code
ndr_pull_PNP_InitDetection(struct ndr_pull
*ndr
, int flags
, struct PNP_InitDetection
*r
)
202 if (flags
& NDR_IN
) {
204 if (flags
& NDR_OUT
) {
205 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
207 return NDR_ERR_SUCCESS
;
210 _PUBLIC_
void ndr_print_PNP_InitDetection(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_InitDetection
*r
)
212 ndr_print_struct(ndr
, name
, "PNP_InitDetection");
214 if (flags
& NDR_SET_VALUES
) {
215 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
217 if (flags
& NDR_IN
) {
218 ndr_print_struct(ndr
, "in", "PNP_InitDetection");
222 if (flags
& NDR_OUT
) {
223 ndr_print_struct(ndr
, "out", "PNP_InitDetection");
225 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
231 static enum ndr_err_code
ndr_push_PNP_ReportLogOn(struct ndr_push
*ndr
, int flags
, const struct PNP_ReportLogOn
*r
)
233 if (flags
& NDR_IN
) {
235 if (flags
& NDR_OUT
) {
236 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
238 return NDR_ERR_SUCCESS
;
241 static enum ndr_err_code
ndr_pull_PNP_ReportLogOn(struct ndr_pull
*ndr
, int flags
, struct PNP_ReportLogOn
*r
)
243 if (flags
& NDR_IN
) {
245 if (flags
& NDR_OUT
) {
246 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
248 return NDR_ERR_SUCCESS
;
251 _PUBLIC_
void ndr_print_PNP_ReportLogOn(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_ReportLogOn
*r
)
253 ndr_print_struct(ndr
, name
, "PNP_ReportLogOn");
255 if (flags
& NDR_SET_VALUES
) {
256 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
258 if (flags
& NDR_IN
) {
259 ndr_print_struct(ndr
, "in", "PNP_ReportLogOn");
263 if (flags
& NDR_OUT
) {
264 ndr_print_struct(ndr
, "out", "PNP_ReportLogOn");
266 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
272 static enum ndr_err_code
ndr_push_PNP_ValidateDeviceInstance(struct ndr_push
*ndr
, int flags
, const struct PNP_ValidateDeviceInstance
*r
)
274 if (flags
& NDR_IN
) {
275 if (r
->in
.devicepath
== NULL
) {
276 return ndr_push_error(ndr
, NDR_ERR_INVALID_POINTER
, "NULL [ref] pointer");
278 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, ndr_charset_length(r
->in
.devicepath
, CH_UTF16
)));
279 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, 0));
280 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, ndr_charset_length(r
->in
.devicepath
, CH_UTF16
)));
281 NDR_CHECK(ndr_push_charset(ndr
, NDR_SCALARS
, r
->in
.devicepath
, ndr_charset_length(r
->in
.devicepath
, CH_UTF16
), sizeof(uint16_t), CH_UTF16
));
282 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, r
->in
.flags
));
284 if (flags
& NDR_OUT
) {
285 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
287 return NDR_ERR_SUCCESS
;
290 static enum ndr_err_code
ndr_pull_PNP_ValidateDeviceInstance(struct ndr_pull
*ndr
, int flags
, struct PNP_ValidateDeviceInstance
*r
)
292 if (flags
& NDR_IN
) {
293 NDR_CHECK(ndr_pull_array_size(ndr
, &r
->in
.devicepath
));
294 NDR_CHECK(ndr_pull_array_length(ndr
, &r
->in
.devicepath
));
295 if (ndr_get_array_length(ndr
, &r
->in
.devicepath
) > ndr_get_array_size(ndr
, &r
->in
.devicepath
)) {
296 return ndr_pull_error(ndr
, NDR_ERR_ARRAY_SIZE
, "Bad array size %u should exceed array length %u", ndr_get_array_size(ndr
, &r
->in
.devicepath
), ndr_get_array_length(ndr
, &r
->in
.devicepath
));
298 NDR_CHECK(ndr_check_string_terminator(ndr
, ndr_get_array_length(ndr
, &r
->in
.devicepath
), sizeof(uint16_t)));
299 NDR_CHECK(ndr_pull_charset(ndr
, NDR_SCALARS
, &r
->in
.devicepath
, ndr_get_array_length(ndr
, &r
->in
.devicepath
), sizeof(uint16_t), CH_UTF16
));
300 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, &r
->in
.flags
));
302 if (flags
& NDR_OUT
) {
303 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
305 return NDR_ERR_SUCCESS
;
308 _PUBLIC_
void ndr_print_PNP_ValidateDeviceInstance(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_ValidateDeviceInstance
*r
)
310 ndr_print_struct(ndr
, name
, "PNP_ValidateDeviceInstance");
312 if (flags
& NDR_SET_VALUES
) {
313 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
315 if (flags
& NDR_IN
) {
316 ndr_print_struct(ndr
, "in", "PNP_ValidateDeviceInstance");
318 ndr_print_ptr(ndr
, "devicepath", r
->in
.devicepath
);
320 ndr_print_string(ndr
, "devicepath", r
->in
.devicepath
);
322 ndr_print_uint32(ndr
, "flags", r
->in
.flags
);
325 if (flags
& NDR_OUT
) {
326 ndr_print_struct(ndr
, "out", "PNP_ValidateDeviceInstance");
328 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
334 static enum ndr_err_code
ndr_push_PNP_GetRootDeviceInstance(struct ndr_push
*ndr
, int flags
, const struct PNP_GetRootDeviceInstance
*r
)
336 if (flags
& NDR_IN
) {
338 if (flags
& NDR_OUT
) {
339 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
341 return NDR_ERR_SUCCESS
;
344 static enum ndr_err_code
ndr_pull_PNP_GetRootDeviceInstance(struct ndr_pull
*ndr
, int flags
, struct PNP_GetRootDeviceInstance
*r
)
346 if (flags
& NDR_IN
) {
348 if (flags
& NDR_OUT
) {
349 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
351 return NDR_ERR_SUCCESS
;
354 _PUBLIC_
void ndr_print_PNP_GetRootDeviceInstance(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetRootDeviceInstance
*r
)
356 ndr_print_struct(ndr
, name
, "PNP_GetRootDeviceInstance");
358 if (flags
& NDR_SET_VALUES
) {
359 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
361 if (flags
& NDR_IN
) {
362 ndr_print_struct(ndr
, "in", "PNP_GetRootDeviceInstance");
366 if (flags
& NDR_OUT
) {
367 ndr_print_struct(ndr
, "out", "PNP_GetRootDeviceInstance");
369 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
375 static enum ndr_err_code
ndr_push_PNP_GetRelatedDeviceInstance(struct ndr_push
*ndr
, int flags
, const struct PNP_GetRelatedDeviceInstance
*r
)
377 if (flags
& NDR_IN
) {
379 if (flags
& NDR_OUT
) {
380 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
382 return NDR_ERR_SUCCESS
;
385 static enum ndr_err_code
ndr_pull_PNP_GetRelatedDeviceInstance(struct ndr_pull
*ndr
, int flags
, struct PNP_GetRelatedDeviceInstance
*r
)
387 if (flags
& NDR_IN
) {
389 if (flags
& NDR_OUT
) {
390 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
392 return NDR_ERR_SUCCESS
;
395 _PUBLIC_
void ndr_print_PNP_GetRelatedDeviceInstance(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetRelatedDeviceInstance
*r
)
397 ndr_print_struct(ndr
, name
, "PNP_GetRelatedDeviceInstance");
399 if (flags
& NDR_SET_VALUES
) {
400 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
402 if (flags
& NDR_IN
) {
403 ndr_print_struct(ndr
, "in", "PNP_GetRelatedDeviceInstance");
407 if (flags
& NDR_OUT
) {
408 ndr_print_struct(ndr
, "out", "PNP_GetRelatedDeviceInstance");
410 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
416 static enum ndr_err_code
ndr_push_PNP_EnumerateSubKeys(struct ndr_push
*ndr
, int flags
, const struct PNP_EnumerateSubKeys
*r
)
418 if (flags
& NDR_IN
) {
420 if (flags
& NDR_OUT
) {
421 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
423 return NDR_ERR_SUCCESS
;
426 static enum ndr_err_code
ndr_pull_PNP_EnumerateSubKeys(struct ndr_pull
*ndr
, int flags
, struct PNP_EnumerateSubKeys
*r
)
428 if (flags
& NDR_IN
) {
430 if (flags
& NDR_OUT
) {
431 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
433 return NDR_ERR_SUCCESS
;
436 _PUBLIC_
void ndr_print_PNP_EnumerateSubKeys(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_EnumerateSubKeys
*r
)
438 ndr_print_struct(ndr
, name
, "PNP_EnumerateSubKeys");
440 if (flags
& NDR_SET_VALUES
) {
441 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
443 if (flags
& NDR_IN
) {
444 ndr_print_struct(ndr
, "in", "PNP_EnumerateSubKeys");
448 if (flags
& NDR_OUT
) {
449 ndr_print_struct(ndr
, "out", "PNP_EnumerateSubKeys");
451 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
457 static enum ndr_err_code
ndr_push_PNP_GetDeviceList(struct ndr_push
*ndr
, int flags
, const struct PNP_GetDeviceList
*r
)
459 if (flags
& NDR_IN
) {
461 if (flags
& NDR_OUT
) {
462 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
464 return NDR_ERR_SUCCESS
;
467 static enum ndr_err_code
ndr_pull_PNP_GetDeviceList(struct ndr_pull
*ndr
, int flags
, struct PNP_GetDeviceList
*r
)
469 if (flags
& NDR_IN
) {
471 if (flags
& NDR_OUT
) {
472 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
474 return NDR_ERR_SUCCESS
;
477 _PUBLIC_
void ndr_print_PNP_GetDeviceList(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetDeviceList
*r
)
479 ndr_print_struct(ndr
, name
, "PNP_GetDeviceList");
481 if (flags
& NDR_SET_VALUES
) {
482 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
484 if (flags
& NDR_IN
) {
485 ndr_print_struct(ndr
, "in", "PNP_GetDeviceList");
489 if (flags
& NDR_OUT
) {
490 ndr_print_struct(ndr
, "out", "PNP_GetDeviceList");
492 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
498 static enum ndr_err_code
ndr_push_PNP_GetDeviceListSize(struct ndr_push
*ndr
, int flags
, const struct PNP_GetDeviceListSize
*r
)
500 if (flags
& NDR_IN
) {
501 NDR_CHECK(ndr_push_unique_ptr(ndr
, r
->in
.devicename
));
502 if (r
->in
.devicename
) {
503 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, ndr_charset_length(r
->in
.devicename
, CH_UTF16
)));
504 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, 0));
505 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, ndr_charset_length(r
->in
.devicename
, CH_UTF16
)));
506 NDR_CHECK(ndr_push_charset(ndr
, NDR_SCALARS
, r
->in
.devicename
, ndr_charset_length(r
->in
.devicename
, CH_UTF16
), sizeof(uint16_t), CH_UTF16
));
508 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, r
->in
.flags
));
510 if (flags
& NDR_OUT
) {
511 if (r
->out
.size
== NULL
) {
512 return ndr_push_error(ndr
, NDR_ERR_INVALID_POINTER
, "NULL [ref] pointer");
514 NDR_CHECK(ndr_push_uint32(ndr
, NDR_SCALARS
, *r
->out
.size
));
515 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
517 return NDR_ERR_SUCCESS
;
520 static enum ndr_err_code
ndr_pull_PNP_GetDeviceListSize(struct ndr_pull
*ndr
, int flags
, struct PNP_GetDeviceListSize
*r
)
522 uint32_t _ptr_devicename
;
523 TALLOC_CTX
*_mem_save_devicename_0
;
524 TALLOC_CTX
*_mem_save_size_0
;
525 if (flags
& NDR_IN
) {
528 NDR_CHECK(ndr_pull_generic_ptr(ndr
, &_ptr_devicename
));
529 if (_ptr_devicename
) {
530 NDR_PULL_ALLOC(ndr
, r
->in
.devicename
);
532 r
->in
.devicename
= NULL
;
534 if (r
->in
.devicename
) {
535 _mem_save_devicename_0
= NDR_PULL_GET_MEM_CTX(ndr
);
536 NDR_PULL_SET_MEM_CTX(ndr
, r
->in
.devicename
, 0);
537 NDR_CHECK(ndr_pull_array_size(ndr
, &r
->in
.devicename
));
538 NDR_CHECK(ndr_pull_array_length(ndr
, &r
->in
.devicename
));
539 if (ndr_get_array_length(ndr
, &r
->in
.devicename
) > ndr_get_array_size(ndr
, &r
->in
.devicename
)) {
540 return ndr_pull_error(ndr
, NDR_ERR_ARRAY_SIZE
, "Bad array size %u should exceed array length %u", ndr_get_array_size(ndr
, &r
->in
.devicename
), ndr_get_array_length(ndr
, &r
->in
.devicename
));
542 NDR_CHECK(ndr_check_string_terminator(ndr
, ndr_get_array_length(ndr
, &r
->in
.devicename
), sizeof(uint16_t)));
543 NDR_CHECK(ndr_pull_charset(ndr
, NDR_SCALARS
, &r
->in
.devicename
, ndr_get_array_length(ndr
, &r
->in
.devicename
), sizeof(uint16_t), CH_UTF16
));
544 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_devicename_0
, 0);
546 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, &r
->in
.flags
));
547 NDR_PULL_ALLOC(ndr
, r
->out
.size
);
548 ZERO_STRUCTP(r
->out
.size
);
550 if (flags
& NDR_OUT
) {
551 if (ndr
->flags
& LIBNDR_FLAG_REF_ALLOC
) {
552 NDR_PULL_ALLOC(ndr
, r
->out
.size
);
554 _mem_save_size_0
= NDR_PULL_GET_MEM_CTX(ndr
);
555 NDR_PULL_SET_MEM_CTX(ndr
, r
->out
.size
, LIBNDR_FLAG_REF_ALLOC
);
556 NDR_CHECK(ndr_pull_uint32(ndr
, NDR_SCALARS
, r
->out
.size
));
557 NDR_PULL_SET_MEM_CTX(ndr
, _mem_save_size_0
, LIBNDR_FLAG_REF_ALLOC
);
558 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
560 return NDR_ERR_SUCCESS
;
563 _PUBLIC_
void ndr_print_PNP_GetDeviceListSize(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetDeviceListSize
*r
)
565 ndr_print_struct(ndr
, name
, "PNP_GetDeviceListSize");
567 if (flags
& NDR_SET_VALUES
) {
568 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
570 if (flags
& NDR_IN
) {
571 ndr_print_struct(ndr
, "in", "PNP_GetDeviceListSize");
573 ndr_print_ptr(ndr
, "devicename", r
->in
.devicename
);
575 if (r
->in
.devicename
) {
576 ndr_print_string(ndr
, "devicename", r
->in
.devicename
);
579 ndr_print_uint32(ndr
, "flags", r
->in
.flags
);
582 if (flags
& NDR_OUT
) {
583 ndr_print_struct(ndr
, "out", "PNP_GetDeviceListSize");
585 ndr_print_ptr(ndr
, "size", r
->out
.size
);
587 ndr_print_uint32(ndr
, "size", *r
->out
.size
);
589 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
595 static enum ndr_err_code
ndr_push_PNP_GetDepth(struct ndr_push
*ndr
, int flags
, const struct PNP_GetDepth
*r
)
597 if (flags
& NDR_IN
) {
599 if (flags
& NDR_OUT
) {
600 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
602 return NDR_ERR_SUCCESS
;
605 static enum ndr_err_code
ndr_pull_PNP_GetDepth(struct ndr_pull
*ndr
, int flags
, struct PNP_GetDepth
*r
)
607 if (flags
& NDR_IN
) {
609 if (flags
& NDR_OUT
) {
610 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
612 return NDR_ERR_SUCCESS
;
615 _PUBLIC_
void ndr_print_PNP_GetDepth(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetDepth
*r
)
617 ndr_print_struct(ndr
, name
, "PNP_GetDepth");
619 if (flags
& NDR_SET_VALUES
) {
620 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
622 if (flags
& NDR_IN
) {
623 ndr_print_struct(ndr
, "in", "PNP_GetDepth");
627 if (flags
& NDR_OUT
) {
628 ndr_print_struct(ndr
, "out", "PNP_GetDepth");
630 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
636 static enum ndr_err_code
ndr_push_PNP_GetDeviceRegProp(struct ndr_push
*ndr
, int flags
, const struct PNP_GetDeviceRegProp
*r
)
638 if (flags
& NDR_IN
) {
640 if (flags
& NDR_OUT
) {
641 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
643 return NDR_ERR_SUCCESS
;
646 static enum ndr_err_code
ndr_pull_PNP_GetDeviceRegProp(struct ndr_pull
*ndr
, int flags
, struct PNP_GetDeviceRegProp
*r
)
648 if (flags
& NDR_IN
) {
650 if (flags
& NDR_OUT
) {
651 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
653 return NDR_ERR_SUCCESS
;
656 _PUBLIC_
void ndr_print_PNP_GetDeviceRegProp(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetDeviceRegProp
*r
)
658 ndr_print_struct(ndr
, name
, "PNP_GetDeviceRegProp");
660 if (flags
& NDR_SET_VALUES
) {
661 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
663 if (flags
& NDR_IN
) {
664 ndr_print_struct(ndr
, "in", "PNP_GetDeviceRegProp");
668 if (flags
& NDR_OUT
) {
669 ndr_print_struct(ndr
, "out", "PNP_GetDeviceRegProp");
671 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
677 static enum ndr_err_code
ndr_push_PNP_SetDeviceRegProp(struct ndr_push
*ndr
, int flags
, const struct PNP_SetDeviceRegProp
*r
)
679 if (flags
& NDR_IN
) {
681 if (flags
& NDR_OUT
) {
682 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
684 return NDR_ERR_SUCCESS
;
687 static enum ndr_err_code
ndr_pull_PNP_SetDeviceRegProp(struct ndr_pull
*ndr
, int flags
, struct PNP_SetDeviceRegProp
*r
)
689 if (flags
& NDR_IN
) {
691 if (flags
& NDR_OUT
) {
692 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
694 return NDR_ERR_SUCCESS
;
697 _PUBLIC_
void ndr_print_PNP_SetDeviceRegProp(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_SetDeviceRegProp
*r
)
699 ndr_print_struct(ndr
, name
, "PNP_SetDeviceRegProp");
701 if (flags
& NDR_SET_VALUES
) {
702 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
704 if (flags
& NDR_IN
) {
705 ndr_print_struct(ndr
, "in", "PNP_SetDeviceRegProp");
709 if (flags
& NDR_OUT
) {
710 ndr_print_struct(ndr
, "out", "PNP_SetDeviceRegProp");
712 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
718 static enum ndr_err_code
ndr_push_PNP_GetClassInstance(struct ndr_push
*ndr
, int flags
, const struct PNP_GetClassInstance
*r
)
720 if (flags
& NDR_IN
) {
722 if (flags
& NDR_OUT
) {
723 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
725 return NDR_ERR_SUCCESS
;
728 static enum ndr_err_code
ndr_pull_PNP_GetClassInstance(struct ndr_pull
*ndr
, int flags
, struct PNP_GetClassInstance
*r
)
730 if (flags
& NDR_IN
) {
732 if (flags
& NDR_OUT
) {
733 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
735 return NDR_ERR_SUCCESS
;
738 _PUBLIC_
void ndr_print_PNP_GetClassInstance(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetClassInstance
*r
)
740 ndr_print_struct(ndr
, name
, "PNP_GetClassInstance");
742 if (flags
& NDR_SET_VALUES
) {
743 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
745 if (flags
& NDR_IN
) {
746 ndr_print_struct(ndr
, "in", "PNP_GetClassInstance");
750 if (flags
& NDR_OUT
) {
751 ndr_print_struct(ndr
, "out", "PNP_GetClassInstance");
753 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
759 static enum ndr_err_code
ndr_push_PNP_CreateKey(struct ndr_push
*ndr
, int flags
, const struct PNP_CreateKey
*r
)
761 if (flags
& NDR_IN
) {
763 if (flags
& NDR_OUT
) {
764 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
766 return NDR_ERR_SUCCESS
;
769 static enum ndr_err_code
ndr_pull_PNP_CreateKey(struct ndr_pull
*ndr
, int flags
, struct PNP_CreateKey
*r
)
771 if (flags
& NDR_IN
) {
773 if (flags
& NDR_OUT
) {
774 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
776 return NDR_ERR_SUCCESS
;
779 _PUBLIC_
void ndr_print_PNP_CreateKey(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_CreateKey
*r
)
781 ndr_print_struct(ndr
, name
, "PNP_CreateKey");
783 if (flags
& NDR_SET_VALUES
) {
784 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
786 if (flags
& NDR_IN
) {
787 ndr_print_struct(ndr
, "in", "PNP_CreateKey");
791 if (flags
& NDR_OUT
) {
792 ndr_print_struct(ndr
, "out", "PNP_CreateKey");
794 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
800 static enum ndr_err_code
ndr_push_PNP_DeleteRegistryKey(struct ndr_push
*ndr
, int flags
, const struct PNP_DeleteRegistryKey
*r
)
802 if (flags
& NDR_IN
) {
804 if (flags
& NDR_OUT
) {
805 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
807 return NDR_ERR_SUCCESS
;
810 static enum ndr_err_code
ndr_pull_PNP_DeleteRegistryKey(struct ndr_pull
*ndr
, int flags
, struct PNP_DeleteRegistryKey
*r
)
812 if (flags
& NDR_IN
) {
814 if (flags
& NDR_OUT
) {
815 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
817 return NDR_ERR_SUCCESS
;
820 _PUBLIC_
void ndr_print_PNP_DeleteRegistryKey(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_DeleteRegistryKey
*r
)
822 ndr_print_struct(ndr
, name
, "PNP_DeleteRegistryKey");
824 if (flags
& NDR_SET_VALUES
) {
825 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
827 if (flags
& NDR_IN
) {
828 ndr_print_struct(ndr
, "in", "PNP_DeleteRegistryKey");
832 if (flags
& NDR_OUT
) {
833 ndr_print_struct(ndr
, "out", "PNP_DeleteRegistryKey");
835 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
841 static enum ndr_err_code
ndr_push_PNP_GetClassCount(struct ndr_push
*ndr
, int flags
, const struct PNP_GetClassCount
*r
)
843 if (flags
& NDR_IN
) {
845 if (flags
& NDR_OUT
) {
846 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
848 return NDR_ERR_SUCCESS
;
851 static enum ndr_err_code
ndr_pull_PNP_GetClassCount(struct ndr_pull
*ndr
, int flags
, struct PNP_GetClassCount
*r
)
853 if (flags
& NDR_IN
) {
855 if (flags
& NDR_OUT
) {
856 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
858 return NDR_ERR_SUCCESS
;
861 _PUBLIC_
void ndr_print_PNP_GetClassCount(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetClassCount
*r
)
863 ndr_print_struct(ndr
, name
, "PNP_GetClassCount");
865 if (flags
& NDR_SET_VALUES
) {
866 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
868 if (flags
& NDR_IN
) {
869 ndr_print_struct(ndr
, "in", "PNP_GetClassCount");
873 if (flags
& NDR_OUT
) {
874 ndr_print_struct(ndr
, "out", "PNP_GetClassCount");
876 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
882 static enum ndr_err_code
ndr_push_PNP_GetClassName(struct ndr_push
*ndr
, int flags
, const struct PNP_GetClassName
*r
)
884 if (flags
& NDR_IN
) {
886 if (flags
& NDR_OUT
) {
887 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
889 return NDR_ERR_SUCCESS
;
892 static enum ndr_err_code
ndr_pull_PNP_GetClassName(struct ndr_pull
*ndr
, int flags
, struct PNP_GetClassName
*r
)
894 if (flags
& NDR_IN
) {
896 if (flags
& NDR_OUT
) {
897 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
899 return NDR_ERR_SUCCESS
;
902 _PUBLIC_
void ndr_print_PNP_GetClassName(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetClassName
*r
)
904 ndr_print_struct(ndr
, name
, "PNP_GetClassName");
906 if (flags
& NDR_SET_VALUES
) {
907 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
909 if (flags
& NDR_IN
) {
910 ndr_print_struct(ndr
, "in", "PNP_GetClassName");
914 if (flags
& NDR_OUT
) {
915 ndr_print_struct(ndr
, "out", "PNP_GetClassName");
917 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
923 static enum ndr_err_code
ndr_push_PNP_DeleteClassKey(struct ndr_push
*ndr
, int flags
, const struct PNP_DeleteClassKey
*r
)
925 if (flags
& NDR_IN
) {
927 if (flags
& NDR_OUT
) {
928 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
930 return NDR_ERR_SUCCESS
;
933 static enum ndr_err_code
ndr_pull_PNP_DeleteClassKey(struct ndr_pull
*ndr
, int flags
, struct PNP_DeleteClassKey
*r
)
935 if (flags
& NDR_IN
) {
937 if (flags
& NDR_OUT
) {
938 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
940 return NDR_ERR_SUCCESS
;
943 _PUBLIC_
void ndr_print_PNP_DeleteClassKey(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_DeleteClassKey
*r
)
945 ndr_print_struct(ndr
, name
, "PNP_DeleteClassKey");
947 if (flags
& NDR_SET_VALUES
) {
948 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
950 if (flags
& NDR_IN
) {
951 ndr_print_struct(ndr
, "in", "PNP_DeleteClassKey");
955 if (flags
& NDR_OUT
) {
956 ndr_print_struct(ndr
, "out", "PNP_DeleteClassKey");
958 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
964 static enum ndr_err_code
ndr_push_PNP_GetInterfaceDeviceAlias(struct ndr_push
*ndr
, int flags
, const struct PNP_GetInterfaceDeviceAlias
*r
)
966 if (flags
& NDR_IN
) {
968 if (flags
& NDR_OUT
) {
969 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
971 return NDR_ERR_SUCCESS
;
974 static enum ndr_err_code
ndr_pull_PNP_GetInterfaceDeviceAlias(struct ndr_pull
*ndr
, int flags
, struct PNP_GetInterfaceDeviceAlias
*r
)
976 if (flags
& NDR_IN
) {
978 if (flags
& NDR_OUT
) {
979 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
981 return NDR_ERR_SUCCESS
;
984 _PUBLIC_
void ndr_print_PNP_GetInterfaceDeviceAlias(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetInterfaceDeviceAlias
*r
)
986 ndr_print_struct(ndr
, name
, "PNP_GetInterfaceDeviceAlias");
988 if (flags
& NDR_SET_VALUES
) {
989 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
991 if (flags
& NDR_IN
) {
992 ndr_print_struct(ndr
, "in", "PNP_GetInterfaceDeviceAlias");
996 if (flags
& NDR_OUT
) {
997 ndr_print_struct(ndr
, "out", "PNP_GetInterfaceDeviceAlias");
999 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1005 static enum ndr_err_code
ndr_push_PNP_GetInterfaceDeviceList(struct ndr_push
*ndr
, int flags
, const struct PNP_GetInterfaceDeviceList
*r
)
1007 if (flags
& NDR_IN
) {
1009 if (flags
& NDR_OUT
) {
1010 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1012 return NDR_ERR_SUCCESS
;
1015 static enum ndr_err_code
ndr_pull_PNP_GetInterfaceDeviceList(struct ndr_pull
*ndr
, int flags
, struct PNP_GetInterfaceDeviceList
*r
)
1017 if (flags
& NDR_IN
) {
1019 if (flags
& NDR_OUT
) {
1020 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1022 return NDR_ERR_SUCCESS
;
1025 _PUBLIC_
void ndr_print_PNP_GetInterfaceDeviceList(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetInterfaceDeviceList
*r
)
1027 ndr_print_struct(ndr
, name
, "PNP_GetInterfaceDeviceList");
1029 if (flags
& NDR_SET_VALUES
) {
1030 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1032 if (flags
& NDR_IN
) {
1033 ndr_print_struct(ndr
, "in", "PNP_GetInterfaceDeviceList");
1037 if (flags
& NDR_OUT
) {
1038 ndr_print_struct(ndr
, "out", "PNP_GetInterfaceDeviceList");
1040 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1046 static enum ndr_err_code
ndr_push_PNP_GetInterfaceDeviceListSize(struct ndr_push
*ndr
, int flags
, const struct PNP_GetInterfaceDeviceListSize
*r
)
1048 if (flags
& NDR_IN
) {
1050 if (flags
& NDR_OUT
) {
1051 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1053 return NDR_ERR_SUCCESS
;
1056 static enum ndr_err_code
ndr_pull_PNP_GetInterfaceDeviceListSize(struct ndr_pull
*ndr
, int flags
, struct PNP_GetInterfaceDeviceListSize
*r
)
1058 if (flags
& NDR_IN
) {
1060 if (flags
& NDR_OUT
) {
1061 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1063 return NDR_ERR_SUCCESS
;
1066 _PUBLIC_
void ndr_print_PNP_GetInterfaceDeviceListSize(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetInterfaceDeviceListSize
*r
)
1068 ndr_print_struct(ndr
, name
, "PNP_GetInterfaceDeviceListSize");
1070 if (flags
& NDR_SET_VALUES
) {
1071 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1073 if (flags
& NDR_IN
) {
1074 ndr_print_struct(ndr
, "in", "PNP_GetInterfaceDeviceListSize");
1078 if (flags
& NDR_OUT
) {
1079 ndr_print_struct(ndr
, "out", "PNP_GetInterfaceDeviceListSize");
1081 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1087 static enum ndr_err_code
ndr_push_PNP_RegisterDeviceClassAssociation(struct ndr_push
*ndr
, int flags
, const struct PNP_RegisterDeviceClassAssociation
*r
)
1089 if (flags
& NDR_IN
) {
1091 if (flags
& NDR_OUT
) {
1092 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1094 return NDR_ERR_SUCCESS
;
1097 static enum ndr_err_code
ndr_pull_PNP_RegisterDeviceClassAssociation(struct ndr_pull
*ndr
, int flags
, struct PNP_RegisterDeviceClassAssociation
*r
)
1099 if (flags
& NDR_IN
) {
1101 if (flags
& NDR_OUT
) {
1102 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1104 return NDR_ERR_SUCCESS
;
1107 _PUBLIC_
void ndr_print_PNP_RegisterDeviceClassAssociation(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_RegisterDeviceClassAssociation
*r
)
1109 ndr_print_struct(ndr
, name
, "PNP_RegisterDeviceClassAssociation");
1111 if (flags
& NDR_SET_VALUES
) {
1112 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1114 if (flags
& NDR_IN
) {
1115 ndr_print_struct(ndr
, "in", "PNP_RegisterDeviceClassAssociation");
1119 if (flags
& NDR_OUT
) {
1120 ndr_print_struct(ndr
, "out", "PNP_RegisterDeviceClassAssociation");
1122 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1128 static enum ndr_err_code
ndr_push_PNP_UnregisterDeviceClassAssociation(struct ndr_push
*ndr
, int flags
, const struct PNP_UnregisterDeviceClassAssociation
*r
)
1130 if (flags
& NDR_IN
) {
1132 if (flags
& NDR_OUT
) {
1133 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1135 return NDR_ERR_SUCCESS
;
1138 static enum ndr_err_code
ndr_pull_PNP_UnregisterDeviceClassAssociation(struct ndr_pull
*ndr
, int flags
, struct PNP_UnregisterDeviceClassAssociation
*r
)
1140 if (flags
& NDR_IN
) {
1142 if (flags
& NDR_OUT
) {
1143 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1145 return NDR_ERR_SUCCESS
;
1148 _PUBLIC_
void ndr_print_PNP_UnregisterDeviceClassAssociation(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_UnregisterDeviceClassAssociation
*r
)
1150 ndr_print_struct(ndr
, name
, "PNP_UnregisterDeviceClassAssociation");
1152 if (flags
& NDR_SET_VALUES
) {
1153 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1155 if (flags
& NDR_IN
) {
1156 ndr_print_struct(ndr
, "in", "PNP_UnregisterDeviceClassAssociation");
1160 if (flags
& NDR_OUT
) {
1161 ndr_print_struct(ndr
, "out", "PNP_UnregisterDeviceClassAssociation");
1163 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1169 static enum ndr_err_code
ndr_push_PNP_GetClassRegProp(struct ndr_push
*ndr
, int flags
, const struct PNP_GetClassRegProp
*r
)
1171 if (flags
& NDR_IN
) {
1173 if (flags
& NDR_OUT
) {
1174 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1176 return NDR_ERR_SUCCESS
;
1179 static enum ndr_err_code
ndr_pull_PNP_GetClassRegProp(struct ndr_pull
*ndr
, int flags
, struct PNP_GetClassRegProp
*r
)
1181 if (flags
& NDR_IN
) {
1183 if (flags
& NDR_OUT
) {
1184 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1186 return NDR_ERR_SUCCESS
;
1189 _PUBLIC_
void ndr_print_PNP_GetClassRegProp(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetClassRegProp
*r
)
1191 ndr_print_struct(ndr
, name
, "PNP_GetClassRegProp");
1193 if (flags
& NDR_SET_VALUES
) {
1194 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1196 if (flags
& NDR_IN
) {
1197 ndr_print_struct(ndr
, "in", "PNP_GetClassRegProp");
1201 if (flags
& NDR_OUT
) {
1202 ndr_print_struct(ndr
, "out", "PNP_GetClassRegProp");
1204 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1210 static enum ndr_err_code
ndr_push_PNP_SetClassRegProp(struct ndr_push
*ndr
, int flags
, const struct PNP_SetClassRegProp
*r
)
1212 if (flags
& NDR_IN
) {
1214 if (flags
& NDR_OUT
) {
1215 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1217 return NDR_ERR_SUCCESS
;
1220 static enum ndr_err_code
ndr_pull_PNP_SetClassRegProp(struct ndr_pull
*ndr
, int flags
, struct PNP_SetClassRegProp
*r
)
1222 if (flags
& NDR_IN
) {
1224 if (flags
& NDR_OUT
) {
1225 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1227 return NDR_ERR_SUCCESS
;
1230 _PUBLIC_
void ndr_print_PNP_SetClassRegProp(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_SetClassRegProp
*r
)
1232 ndr_print_struct(ndr
, name
, "PNP_SetClassRegProp");
1234 if (flags
& NDR_SET_VALUES
) {
1235 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1237 if (flags
& NDR_IN
) {
1238 ndr_print_struct(ndr
, "in", "PNP_SetClassRegProp");
1242 if (flags
& NDR_OUT
) {
1243 ndr_print_struct(ndr
, "out", "PNP_SetClassRegProp");
1245 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1251 static enum ndr_err_code
ndr_push_PNP_CreateDevInst(struct ndr_push
*ndr
, int flags
, const struct PNP_CreateDevInst
*r
)
1253 if (flags
& NDR_IN
) {
1255 if (flags
& NDR_OUT
) {
1256 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1258 return NDR_ERR_SUCCESS
;
1261 static enum ndr_err_code
ndr_pull_PNP_CreateDevInst(struct ndr_pull
*ndr
, int flags
, struct PNP_CreateDevInst
*r
)
1263 if (flags
& NDR_IN
) {
1265 if (flags
& NDR_OUT
) {
1266 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1268 return NDR_ERR_SUCCESS
;
1271 _PUBLIC_
void ndr_print_PNP_CreateDevInst(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_CreateDevInst
*r
)
1273 ndr_print_struct(ndr
, name
, "PNP_CreateDevInst");
1275 if (flags
& NDR_SET_VALUES
) {
1276 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1278 if (flags
& NDR_IN
) {
1279 ndr_print_struct(ndr
, "in", "PNP_CreateDevInst");
1283 if (flags
& NDR_OUT
) {
1284 ndr_print_struct(ndr
, "out", "PNP_CreateDevInst");
1286 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1292 static enum ndr_err_code
ndr_push_PNP_DeviceInstanceAction(struct ndr_push
*ndr
, int flags
, const struct PNP_DeviceInstanceAction
*r
)
1294 if (flags
& NDR_IN
) {
1296 if (flags
& NDR_OUT
) {
1297 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1299 return NDR_ERR_SUCCESS
;
1302 static enum ndr_err_code
ndr_pull_PNP_DeviceInstanceAction(struct ndr_pull
*ndr
, int flags
, struct PNP_DeviceInstanceAction
*r
)
1304 if (flags
& NDR_IN
) {
1306 if (flags
& NDR_OUT
) {
1307 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1309 return NDR_ERR_SUCCESS
;
1312 _PUBLIC_
void ndr_print_PNP_DeviceInstanceAction(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_DeviceInstanceAction
*r
)
1314 ndr_print_struct(ndr
, name
, "PNP_DeviceInstanceAction");
1316 if (flags
& NDR_SET_VALUES
) {
1317 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1319 if (flags
& NDR_IN
) {
1320 ndr_print_struct(ndr
, "in", "PNP_DeviceInstanceAction");
1324 if (flags
& NDR_OUT
) {
1325 ndr_print_struct(ndr
, "out", "PNP_DeviceInstanceAction");
1327 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1333 static enum ndr_err_code
ndr_push_PNP_GetDeviceStatus(struct ndr_push
*ndr
, int flags
, const struct PNP_GetDeviceStatus
*r
)
1335 if (flags
& NDR_IN
) {
1337 if (flags
& NDR_OUT
) {
1338 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1340 return NDR_ERR_SUCCESS
;
1343 static enum ndr_err_code
ndr_pull_PNP_GetDeviceStatus(struct ndr_pull
*ndr
, int flags
, struct PNP_GetDeviceStatus
*r
)
1345 if (flags
& NDR_IN
) {
1347 if (flags
& NDR_OUT
) {
1348 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1350 return NDR_ERR_SUCCESS
;
1353 _PUBLIC_
void ndr_print_PNP_GetDeviceStatus(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetDeviceStatus
*r
)
1355 ndr_print_struct(ndr
, name
, "PNP_GetDeviceStatus");
1357 if (flags
& NDR_SET_VALUES
) {
1358 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1360 if (flags
& NDR_IN
) {
1361 ndr_print_struct(ndr
, "in", "PNP_GetDeviceStatus");
1365 if (flags
& NDR_OUT
) {
1366 ndr_print_struct(ndr
, "out", "PNP_GetDeviceStatus");
1368 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1374 static enum ndr_err_code
ndr_push_PNP_SetDeviceProblem(struct ndr_push
*ndr
, int flags
, const struct PNP_SetDeviceProblem
*r
)
1376 if (flags
& NDR_IN
) {
1378 if (flags
& NDR_OUT
) {
1379 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1381 return NDR_ERR_SUCCESS
;
1384 static enum ndr_err_code
ndr_pull_PNP_SetDeviceProblem(struct ndr_pull
*ndr
, int flags
, struct PNP_SetDeviceProblem
*r
)
1386 if (flags
& NDR_IN
) {
1388 if (flags
& NDR_OUT
) {
1389 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1391 return NDR_ERR_SUCCESS
;
1394 _PUBLIC_
void ndr_print_PNP_SetDeviceProblem(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_SetDeviceProblem
*r
)
1396 ndr_print_struct(ndr
, name
, "PNP_SetDeviceProblem");
1398 if (flags
& NDR_SET_VALUES
) {
1399 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1401 if (flags
& NDR_IN
) {
1402 ndr_print_struct(ndr
, "in", "PNP_SetDeviceProblem");
1406 if (flags
& NDR_OUT
) {
1407 ndr_print_struct(ndr
, "out", "PNP_SetDeviceProblem");
1409 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1415 static enum ndr_err_code
ndr_push_PNP_DisableDevInst(struct ndr_push
*ndr
, int flags
, const struct PNP_DisableDevInst
*r
)
1417 if (flags
& NDR_IN
) {
1419 if (flags
& NDR_OUT
) {
1420 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1422 return NDR_ERR_SUCCESS
;
1425 static enum ndr_err_code
ndr_pull_PNP_DisableDevInst(struct ndr_pull
*ndr
, int flags
, struct PNP_DisableDevInst
*r
)
1427 if (flags
& NDR_IN
) {
1429 if (flags
& NDR_OUT
) {
1430 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1432 return NDR_ERR_SUCCESS
;
1435 _PUBLIC_
void ndr_print_PNP_DisableDevInst(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_DisableDevInst
*r
)
1437 ndr_print_struct(ndr
, name
, "PNP_DisableDevInst");
1439 if (flags
& NDR_SET_VALUES
) {
1440 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1442 if (flags
& NDR_IN
) {
1443 ndr_print_struct(ndr
, "in", "PNP_DisableDevInst");
1447 if (flags
& NDR_OUT
) {
1448 ndr_print_struct(ndr
, "out", "PNP_DisableDevInst");
1450 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1456 static enum ndr_err_code
ndr_push_PNP_UninstallDevInst(struct ndr_push
*ndr
, int flags
, const struct PNP_UninstallDevInst
*r
)
1458 if (flags
& NDR_IN
) {
1460 if (flags
& NDR_OUT
) {
1461 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1463 return NDR_ERR_SUCCESS
;
1466 static enum ndr_err_code
ndr_pull_PNP_UninstallDevInst(struct ndr_pull
*ndr
, int flags
, struct PNP_UninstallDevInst
*r
)
1468 if (flags
& NDR_IN
) {
1470 if (flags
& NDR_OUT
) {
1471 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1473 return NDR_ERR_SUCCESS
;
1476 _PUBLIC_
void ndr_print_PNP_UninstallDevInst(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_UninstallDevInst
*r
)
1478 ndr_print_struct(ndr
, name
, "PNP_UninstallDevInst");
1480 if (flags
& NDR_SET_VALUES
) {
1481 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1483 if (flags
& NDR_IN
) {
1484 ndr_print_struct(ndr
, "in", "PNP_UninstallDevInst");
1488 if (flags
& NDR_OUT
) {
1489 ndr_print_struct(ndr
, "out", "PNP_UninstallDevInst");
1491 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1497 static enum ndr_err_code
ndr_push_PNP_AddID(struct ndr_push
*ndr
, int flags
, const struct PNP_AddID
*r
)
1499 if (flags
& NDR_IN
) {
1501 if (flags
& NDR_OUT
) {
1502 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1504 return NDR_ERR_SUCCESS
;
1507 static enum ndr_err_code
ndr_pull_PNP_AddID(struct ndr_pull
*ndr
, int flags
, struct PNP_AddID
*r
)
1509 if (flags
& NDR_IN
) {
1511 if (flags
& NDR_OUT
) {
1512 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1514 return NDR_ERR_SUCCESS
;
1517 _PUBLIC_
void ndr_print_PNP_AddID(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_AddID
*r
)
1519 ndr_print_struct(ndr
, name
, "PNP_AddID");
1521 if (flags
& NDR_SET_VALUES
) {
1522 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1524 if (flags
& NDR_IN
) {
1525 ndr_print_struct(ndr
, "in", "PNP_AddID");
1529 if (flags
& NDR_OUT
) {
1530 ndr_print_struct(ndr
, "out", "PNP_AddID");
1532 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1538 static enum ndr_err_code
ndr_push_PNP_RegisterDriver(struct ndr_push
*ndr
, int flags
, const struct PNP_RegisterDriver
*r
)
1540 if (flags
& NDR_IN
) {
1542 if (flags
& NDR_OUT
) {
1543 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1545 return NDR_ERR_SUCCESS
;
1548 static enum ndr_err_code
ndr_pull_PNP_RegisterDriver(struct ndr_pull
*ndr
, int flags
, struct PNP_RegisterDriver
*r
)
1550 if (flags
& NDR_IN
) {
1552 if (flags
& NDR_OUT
) {
1553 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1555 return NDR_ERR_SUCCESS
;
1558 _PUBLIC_
void ndr_print_PNP_RegisterDriver(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_RegisterDriver
*r
)
1560 ndr_print_struct(ndr
, name
, "PNP_RegisterDriver");
1562 if (flags
& NDR_SET_VALUES
) {
1563 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1565 if (flags
& NDR_IN
) {
1566 ndr_print_struct(ndr
, "in", "PNP_RegisterDriver");
1570 if (flags
& NDR_OUT
) {
1571 ndr_print_struct(ndr
, "out", "PNP_RegisterDriver");
1573 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1579 static enum ndr_err_code
ndr_push_PNP_QueryRemove(struct ndr_push
*ndr
, int flags
, const struct PNP_QueryRemove
*r
)
1581 if (flags
& NDR_IN
) {
1583 if (flags
& NDR_OUT
) {
1584 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1586 return NDR_ERR_SUCCESS
;
1589 static enum ndr_err_code
ndr_pull_PNP_QueryRemove(struct ndr_pull
*ndr
, int flags
, struct PNP_QueryRemove
*r
)
1591 if (flags
& NDR_IN
) {
1593 if (flags
& NDR_OUT
) {
1594 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1596 return NDR_ERR_SUCCESS
;
1599 _PUBLIC_
void ndr_print_PNP_QueryRemove(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_QueryRemove
*r
)
1601 ndr_print_struct(ndr
, name
, "PNP_QueryRemove");
1603 if (flags
& NDR_SET_VALUES
) {
1604 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1606 if (flags
& NDR_IN
) {
1607 ndr_print_struct(ndr
, "in", "PNP_QueryRemove");
1611 if (flags
& NDR_OUT
) {
1612 ndr_print_struct(ndr
, "out", "PNP_QueryRemove");
1614 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1620 static enum ndr_err_code
ndr_push_PNP_RequestDeviceEject(struct ndr_push
*ndr
, int flags
, const struct PNP_RequestDeviceEject
*r
)
1622 if (flags
& NDR_IN
) {
1624 if (flags
& NDR_OUT
) {
1625 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1627 return NDR_ERR_SUCCESS
;
1630 static enum ndr_err_code
ndr_pull_PNP_RequestDeviceEject(struct ndr_pull
*ndr
, int flags
, struct PNP_RequestDeviceEject
*r
)
1632 if (flags
& NDR_IN
) {
1634 if (flags
& NDR_OUT
) {
1635 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1637 return NDR_ERR_SUCCESS
;
1640 _PUBLIC_
void ndr_print_PNP_RequestDeviceEject(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_RequestDeviceEject
*r
)
1642 ndr_print_struct(ndr
, name
, "PNP_RequestDeviceEject");
1644 if (flags
& NDR_SET_VALUES
) {
1645 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1647 if (flags
& NDR_IN
) {
1648 ndr_print_struct(ndr
, "in", "PNP_RequestDeviceEject");
1652 if (flags
& NDR_OUT
) {
1653 ndr_print_struct(ndr
, "out", "PNP_RequestDeviceEject");
1655 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1661 static enum ndr_err_code
ndr_push_PNP_IsDockStationPresent(struct ndr_push
*ndr
, int flags
, const struct PNP_IsDockStationPresent
*r
)
1663 if (flags
& NDR_IN
) {
1665 if (flags
& NDR_OUT
) {
1666 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1668 return NDR_ERR_SUCCESS
;
1671 static enum ndr_err_code
ndr_pull_PNP_IsDockStationPresent(struct ndr_pull
*ndr
, int flags
, struct PNP_IsDockStationPresent
*r
)
1673 if (flags
& NDR_IN
) {
1675 if (flags
& NDR_OUT
) {
1676 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1678 return NDR_ERR_SUCCESS
;
1681 _PUBLIC_
void ndr_print_PNP_IsDockStationPresent(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_IsDockStationPresent
*r
)
1683 ndr_print_struct(ndr
, name
, "PNP_IsDockStationPresent");
1685 if (flags
& NDR_SET_VALUES
) {
1686 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1688 if (flags
& NDR_IN
) {
1689 ndr_print_struct(ndr
, "in", "PNP_IsDockStationPresent");
1693 if (flags
& NDR_OUT
) {
1694 ndr_print_struct(ndr
, "out", "PNP_IsDockStationPresent");
1696 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1702 static enum ndr_err_code
ndr_push_PNP_RequestEjectPC(struct ndr_push
*ndr
, int flags
, const struct PNP_RequestEjectPC
*r
)
1704 if (flags
& NDR_IN
) {
1706 if (flags
& NDR_OUT
) {
1707 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1709 return NDR_ERR_SUCCESS
;
1712 static enum ndr_err_code
ndr_pull_PNP_RequestEjectPC(struct ndr_pull
*ndr
, int flags
, struct PNP_RequestEjectPC
*r
)
1714 if (flags
& NDR_IN
) {
1716 if (flags
& NDR_OUT
) {
1717 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1719 return NDR_ERR_SUCCESS
;
1722 _PUBLIC_
void ndr_print_PNP_RequestEjectPC(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_RequestEjectPC
*r
)
1724 ndr_print_struct(ndr
, name
, "PNP_RequestEjectPC");
1726 if (flags
& NDR_SET_VALUES
) {
1727 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1729 if (flags
& NDR_IN
) {
1730 ndr_print_struct(ndr
, "in", "PNP_RequestEjectPC");
1734 if (flags
& NDR_OUT
) {
1735 ndr_print_struct(ndr
, "out", "PNP_RequestEjectPC");
1737 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1743 static enum ndr_err_code
ndr_push_PNP_HwProfFlags(struct ndr_push
*ndr
, int flags
, const struct PNP_HwProfFlags
*r
)
1745 if (flags
& NDR_IN
) {
1747 if (flags
& NDR_OUT
) {
1748 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1750 return NDR_ERR_SUCCESS
;
1753 static enum ndr_err_code
ndr_pull_PNP_HwProfFlags(struct ndr_pull
*ndr
, int flags
, struct PNP_HwProfFlags
*r
)
1755 if (flags
& NDR_IN
) {
1757 if (flags
& NDR_OUT
) {
1758 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1760 return NDR_ERR_SUCCESS
;
1763 _PUBLIC_
void ndr_print_PNP_HwProfFlags(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_HwProfFlags
*r
)
1765 ndr_print_struct(ndr
, name
, "PNP_HwProfFlags");
1767 if (flags
& NDR_SET_VALUES
) {
1768 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1770 if (flags
& NDR_IN
) {
1771 ndr_print_struct(ndr
, "in", "PNP_HwProfFlags");
1775 if (flags
& NDR_OUT
) {
1776 ndr_print_struct(ndr
, "out", "PNP_HwProfFlags");
1778 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1784 static enum ndr_err_code
ndr_push_PNP_GetHwProfInfo(struct ndr_push
*ndr
, int flags
, const struct PNP_GetHwProfInfo
*r
)
1786 if (flags
& NDR_IN
) {
1788 if (flags
& NDR_OUT
) {
1789 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1791 return NDR_ERR_SUCCESS
;
1794 static enum ndr_err_code
ndr_pull_PNP_GetHwProfInfo(struct ndr_pull
*ndr
, int flags
, struct PNP_GetHwProfInfo
*r
)
1796 if (flags
& NDR_IN
) {
1798 if (flags
& NDR_OUT
) {
1799 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1801 return NDR_ERR_SUCCESS
;
1804 _PUBLIC_
void ndr_print_PNP_GetHwProfInfo(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetHwProfInfo
*r
)
1806 ndr_print_struct(ndr
, name
, "PNP_GetHwProfInfo");
1808 if (flags
& NDR_SET_VALUES
) {
1809 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1811 if (flags
& NDR_IN
) {
1812 ndr_print_struct(ndr
, "in", "PNP_GetHwProfInfo");
1816 if (flags
& NDR_OUT
) {
1817 ndr_print_struct(ndr
, "out", "PNP_GetHwProfInfo");
1819 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1825 static enum ndr_err_code
ndr_push_PNP_AddEmptyLogConf(struct ndr_push
*ndr
, int flags
, const struct PNP_AddEmptyLogConf
*r
)
1827 if (flags
& NDR_IN
) {
1829 if (flags
& NDR_OUT
) {
1830 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1832 return NDR_ERR_SUCCESS
;
1835 static enum ndr_err_code
ndr_pull_PNP_AddEmptyLogConf(struct ndr_pull
*ndr
, int flags
, struct PNP_AddEmptyLogConf
*r
)
1837 if (flags
& NDR_IN
) {
1839 if (flags
& NDR_OUT
) {
1840 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1842 return NDR_ERR_SUCCESS
;
1845 _PUBLIC_
void ndr_print_PNP_AddEmptyLogConf(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_AddEmptyLogConf
*r
)
1847 ndr_print_struct(ndr
, name
, "PNP_AddEmptyLogConf");
1849 if (flags
& NDR_SET_VALUES
) {
1850 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1852 if (flags
& NDR_IN
) {
1853 ndr_print_struct(ndr
, "in", "PNP_AddEmptyLogConf");
1857 if (flags
& NDR_OUT
) {
1858 ndr_print_struct(ndr
, "out", "PNP_AddEmptyLogConf");
1860 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1866 static enum ndr_err_code
ndr_push_PNP_FreeLogConf(struct ndr_push
*ndr
, int flags
, const struct PNP_FreeLogConf
*r
)
1868 if (flags
& NDR_IN
) {
1870 if (flags
& NDR_OUT
) {
1871 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1873 return NDR_ERR_SUCCESS
;
1876 static enum ndr_err_code
ndr_pull_PNP_FreeLogConf(struct ndr_pull
*ndr
, int flags
, struct PNP_FreeLogConf
*r
)
1878 if (flags
& NDR_IN
) {
1880 if (flags
& NDR_OUT
) {
1881 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1883 return NDR_ERR_SUCCESS
;
1886 _PUBLIC_
void ndr_print_PNP_FreeLogConf(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_FreeLogConf
*r
)
1888 ndr_print_struct(ndr
, name
, "PNP_FreeLogConf");
1890 if (flags
& NDR_SET_VALUES
) {
1891 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1893 if (flags
& NDR_IN
) {
1894 ndr_print_struct(ndr
, "in", "PNP_FreeLogConf");
1898 if (flags
& NDR_OUT
) {
1899 ndr_print_struct(ndr
, "out", "PNP_FreeLogConf");
1901 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1907 static enum ndr_err_code
ndr_push_PNP_GetFirstLogConf(struct ndr_push
*ndr
, int flags
, const struct PNP_GetFirstLogConf
*r
)
1909 if (flags
& NDR_IN
) {
1911 if (flags
& NDR_OUT
) {
1912 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1914 return NDR_ERR_SUCCESS
;
1917 static enum ndr_err_code
ndr_pull_PNP_GetFirstLogConf(struct ndr_pull
*ndr
, int flags
, struct PNP_GetFirstLogConf
*r
)
1919 if (flags
& NDR_IN
) {
1921 if (flags
& NDR_OUT
) {
1922 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1924 return NDR_ERR_SUCCESS
;
1927 _PUBLIC_
void ndr_print_PNP_GetFirstLogConf(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetFirstLogConf
*r
)
1929 ndr_print_struct(ndr
, name
, "PNP_GetFirstLogConf");
1931 if (flags
& NDR_SET_VALUES
) {
1932 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1934 if (flags
& NDR_IN
) {
1935 ndr_print_struct(ndr
, "in", "PNP_GetFirstLogConf");
1939 if (flags
& NDR_OUT
) {
1940 ndr_print_struct(ndr
, "out", "PNP_GetFirstLogConf");
1942 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1948 static enum ndr_err_code
ndr_push_PNP_GetNextLogConf(struct ndr_push
*ndr
, int flags
, const struct PNP_GetNextLogConf
*r
)
1950 if (flags
& NDR_IN
) {
1952 if (flags
& NDR_OUT
) {
1953 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1955 return NDR_ERR_SUCCESS
;
1958 static enum ndr_err_code
ndr_pull_PNP_GetNextLogConf(struct ndr_pull
*ndr
, int flags
, struct PNP_GetNextLogConf
*r
)
1960 if (flags
& NDR_IN
) {
1962 if (flags
& NDR_OUT
) {
1963 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
1965 return NDR_ERR_SUCCESS
;
1968 _PUBLIC_
void ndr_print_PNP_GetNextLogConf(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetNextLogConf
*r
)
1970 ndr_print_struct(ndr
, name
, "PNP_GetNextLogConf");
1972 if (flags
& NDR_SET_VALUES
) {
1973 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
1975 if (flags
& NDR_IN
) {
1976 ndr_print_struct(ndr
, "in", "PNP_GetNextLogConf");
1980 if (flags
& NDR_OUT
) {
1981 ndr_print_struct(ndr
, "out", "PNP_GetNextLogConf");
1983 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
1989 static enum ndr_err_code
ndr_push_PNP_GetLogConfPriority(struct ndr_push
*ndr
, int flags
, const struct PNP_GetLogConfPriority
*r
)
1991 if (flags
& NDR_IN
) {
1993 if (flags
& NDR_OUT
) {
1994 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
1996 return NDR_ERR_SUCCESS
;
1999 static enum ndr_err_code
ndr_pull_PNP_GetLogConfPriority(struct ndr_pull
*ndr
, int flags
, struct PNP_GetLogConfPriority
*r
)
2001 if (flags
& NDR_IN
) {
2003 if (flags
& NDR_OUT
) {
2004 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
2006 return NDR_ERR_SUCCESS
;
2009 _PUBLIC_
void ndr_print_PNP_GetLogConfPriority(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetLogConfPriority
*r
)
2011 ndr_print_struct(ndr
, name
, "PNP_GetLogConfPriority");
2013 if (flags
& NDR_SET_VALUES
) {
2014 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2016 if (flags
& NDR_IN
) {
2017 ndr_print_struct(ndr
, "in", "PNP_GetLogConfPriority");
2021 if (flags
& NDR_OUT
) {
2022 ndr_print_struct(ndr
, "out", "PNP_GetLogConfPriority");
2024 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
2030 static enum ndr_err_code
ndr_push_PNP_AddResDes(struct ndr_push
*ndr
, int flags
, const struct PNP_AddResDes
*r
)
2032 if (flags
& NDR_IN
) {
2034 if (flags
& NDR_OUT
) {
2035 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
2037 return NDR_ERR_SUCCESS
;
2040 static enum ndr_err_code
ndr_pull_PNP_AddResDes(struct ndr_pull
*ndr
, int flags
, struct PNP_AddResDes
*r
)
2042 if (flags
& NDR_IN
) {
2044 if (flags
& NDR_OUT
) {
2045 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
2047 return NDR_ERR_SUCCESS
;
2050 _PUBLIC_
void ndr_print_PNP_AddResDes(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_AddResDes
*r
)
2052 ndr_print_struct(ndr
, name
, "PNP_AddResDes");
2054 if (flags
& NDR_SET_VALUES
) {
2055 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2057 if (flags
& NDR_IN
) {
2058 ndr_print_struct(ndr
, "in", "PNP_AddResDes");
2062 if (flags
& NDR_OUT
) {
2063 ndr_print_struct(ndr
, "out", "PNP_AddResDes");
2065 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
2071 static enum ndr_err_code
ndr_push_PNP_FreeResDes(struct ndr_push
*ndr
, int flags
, const struct PNP_FreeResDes
*r
)
2073 if (flags
& NDR_IN
) {
2075 if (flags
& NDR_OUT
) {
2076 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
2078 return NDR_ERR_SUCCESS
;
2081 static enum ndr_err_code
ndr_pull_PNP_FreeResDes(struct ndr_pull
*ndr
, int flags
, struct PNP_FreeResDes
*r
)
2083 if (flags
& NDR_IN
) {
2085 if (flags
& NDR_OUT
) {
2086 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
2088 return NDR_ERR_SUCCESS
;
2091 _PUBLIC_
void ndr_print_PNP_FreeResDes(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_FreeResDes
*r
)
2093 ndr_print_struct(ndr
, name
, "PNP_FreeResDes");
2095 if (flags
& NDR_SET_VALUES
) {
2096 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2098 if (flags
& NDR_IN
) {
2099 ndr_print_struct(ndr
, "in", "PNP_FreeResDes");
2103 if (flags
& NDR_OUT
) {
2104 ndr_print_struct(ndr
, "out", "PNP_FreeResDes");
2106 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
2112 static enum ndr_err_code
ndr_push_PNP_GetNextResDes(struct ndr_push
*ndr
, int flags
, const struct PNP_GetNextResDes
*r
)
2114 if (flags
& NDR_IN
) {
2116 if (flags
& NDR_OUT
) {
2117 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
2119 return NDR_ERR_SUCCESS
;
2122 static enum ndr_err_code
ndr_pull_PNP_GetNextResDes(struct ndr_pull
*ndr
, int flags
, struct PNP_GetNextResDes
*r
)
2124 if (flags
& NDR_IN
) {
2126 if (flags
& NDR_OUT
) {
2127 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
2129 return NDR_ERR_SUCCESS
;
2132 _PUBLIC_
void ndr_print_PNP_GetNextResDes(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetNextResDes
*r
)
2134 ndr_print_struct(ndr
, name
, "PNP_GetNextResDes");
2136 if (flags
& NDR_SET_VALUES
) {
2137 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2139 if (flags
& NDR_IN
) {
2140 ndr_print_struct(ndr
, "in", "PNP_GetNextResDes");
2144 if (flags
& NDR_OUT
) {
2145 ndr_print_struct(ndr
, "out", "PNP_GetNextResDes");
2147 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
2153 static enum ndr_err_code
ndr_push_PNP_GetResDesData(struct ndr_push
*ndr
, int flags
, const struct PNP_GetResDesData
*r
)
2155 if (flags
& NDR_IN
) {
2157 if (flags
& NDR_OUT
) {
2158 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
2160 return NDR_ERR_SUCCESS
;
2163 static enum ndr_err_code
ndr_pull_PNP_GetResDesData(struct ndr_pull
*ndr
, int flags
, struct PNP_GetResDesData
*r
)
2165 if (flags
& NDR_IN
) {
2167 if (flags
& NDR_OUT
) {
2168 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
2170 return NDR_ERR_SUCCESS
;
2173 _PUBLIC_
void ndr_print_PNP_GetResDesData(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetResDesData
*r
)
2175 ndr_print_struct(ndr
, name
, "PNP_GetResDesData");
2177 if (flags
& NDR_SET_VALUES
) {
2178 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2180 if (flags
& NDR_IN
) {
2181 ndr_print_struct(ndr
, "in", "PNP_GetResDesData");
2185 if (flags
& NDR_OUT
) {
2186 ndr_print_struct(ndr
, "out", "PNP_GetResDesData");
2188 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
2194 static enum ndr_err_code
ndr_push_PNP_GetResDesDataSize(struct ndr_push
*ndr
, int flags
, const struct PNP_GetResDesDataSize
*r
)
2196 if (flags
& NDR_IN
) {
2198 if (flags
& NDR_OUT
) {
2199 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
2201 return NDR_ERR_SUCCESS
;
2204 static enum ndr_err_code
ndr_pull_PNP_GetResDesDataSize(struct ndr_pull
*ndr
, int flags
, struct PNP_GetResDesDataSize
*r
)
2206 if (flags
& NDR_IN
) {
2208 if (flags
& NDR_OUT
) {
2209 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
2211 return NDR_ERR_SUCCESS
;
2214 _PUBLIC_
void ndr_print_PNP_GetResDesDataSize(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetResDesDataSize
*r
)
2216 ndr_print_struct(ndr
, name
, "PNP_GetResDesDataSize");
2218 if (flags
& NDR_SET_VALUES
) {
2219 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2221 if (flags
& NDR_IN
) {
2222 ndr_print_struct(ndr
, "in", "PNP_GetResDesDataSize");
2226 if (flags
& NDR_OUT
) {
2227 ndr_print_struct(ndr
, "out", "PNP_GetResDesDataSize");
2229 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
2235 static enum ndr_err_code
ndr_push_PNP_ModifyResDes(struct ndr_push
*ndr
, int flags
, const struct PNP_ModifyResDes
*r
)
2237 if (flags
& NDR_IN
) {
2239 if (flags
& NDR_OUT
) {
2240 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
2242 return NDR_ERR_SUCCESS
;
2245 static enum ndr_err_code
ndr_pull_PNP_ModifyResDes(struct ndr_pull
*ndr
, int flags
, struct PNP_ModifyResDes
*r
)
2247 if (flags
& NDR_IN
) {
2249 if (flags
& NDR_OUT
) {
2250 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
2252 return NDR_ERR_SUCCESS
;
2255 _PUBLIC_
void ndr_print_PNP_ModifyResDes(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_ModifyResDes
*r
)
2257 ndr_print_struct(ndr
, name
, "PNP_ModifyResDes");
2259 if (flags
& NDR_SET_VALUES
) {
2260 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2262 if (flags
& NDR_IN
) {
2263 ndr_print_struct(ndr
, "in", "PNP_ModifyResDes");
2267 if (flags
& NDR_OUT
) {
2268 ndr_print_struct(ndr
, "out", "PNP_ModifyResDes");
2270 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
2276 static enum ndr_err_code
ndr_push_PNP_DetectResourceLimit(struct ndr_push
*ndr
, int flags
, const struct PNP_DetectResourceLimit
*r
)
2278 if (flags
& NDR_IN
) {
2280 if (flags
& NDR_OUT
) {
2281 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
2283 return NDR_ERR_SUCCESS
;
2286 static enum ndr_err_code
ndr_pull_PNP_DetectResourceLimit(struct ndr_pull
*ndr
, int flags
, struct PNP_DetectResourceLimit
*r
)
2288 if (flags
& NDR_IN
) {
2290 if (flags
& NDR_OUT
) {
2291 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
2293 return NDR_ERR_SUCCESS
;
2296 _PUBLIC_
void ndr_print_PNP_DetectResourceLimit(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_DetectResourceLimit
*r
)
2298 ndr_print_struct(ndr
, name
, "PNP_DetectResourceLimit");
2300 if (flags
& NDR_SET_VALUES
) {
2301 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2303 if (flags
& NDR_IN
) {
2304 ndr_print_struct(ndr
, "in", "PNP_DetectResourceLimit");
2308 if (flags
& NDR_OUT
) {
2309 ndr_print_struct(ndr
, "out", "PNP_DetectResourceLimit");
2311 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
2317 static enum ndr_err_code
ndr_push_PNP_QueryResConfList(struct ndr_push
*ndr
, int flags
, const struct PNP_QueryResConfList
*r
)
2319 if (flags
& NDR_IN
) {
2321 if (flags
& NDR_OUT
) {
2322 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
2324 return NDR_ERR_SUCCESS
;
2327 static enum ndr_err_code
ndr_pull_PNP_QueryResConfList(struct ndr_pull
*ndr
, int flags
, struct PNP_QueryResConfList
*r
)
2329 if (flags
& NDR_IN
) {
2331 if (flags
& NDR_OUT
) {
2332 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
2334 return NDR_ERR_SUCCESS
;
2337 _PUBLIC_
void ndr_print_PNP_QueryResConfList(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_QueryResConfList
*r
)
2339 ndr_print_struct(ndr
, name
, "PNP_QueryResConfList");
2341 if (flags
& NDR_SET_VALUES
) {
2342 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2344 if (flags
& NDR_IN
) {
2345 ndr_print_struct(ndr
, "in", "PNP_QueryResConfList");
2349 if (flags
& NDR_OUT
) {
2350 ndr_print_struct(ndr
, "out", "PNP_QueryResConfList");
2352 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
2358 static enum ndr_err_code
ndr_push_PNP_SetHwProf(struct ndr_push
*ndr
, int flags
, const struct PNP_SetHwProf
*r
)
2360 if (flags
& NDR_IN
) {
2362 if (flags
& NDR_OUT
) {
2363 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
2365 return NDR_ERR_SUCCESS
;
2368 static enum ndr_err_code
ndr_pull_PNP_SetHwProf(struct ndr_pull
*ndr
, int flags
, struct PNP_SetHwProf
*r
)
2370 if (flags
& NDR_IN
) {
2372 if (flags
& NDR_OUT
) {
2373 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
2375 return NDR_ERR_SUCCESS
;
2378 _PUBLIC_
void ndr_print_PNP_SetHwProf(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_SetHwProf
*r
)
2380 ndr_print_struct(ndr
, name
, "PNP_SetHwProf");
2382 if (flags
& NDR_SET_VALUES
) {
2383 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2385 if (flags
& NDR_IN
) {
2386 ndr_print_struct(ndr
, "in", "PNP_SetHwProf");
2390 if (flags
& NDR_OUT
) {
2391 ndr_print_struct(ndr
, "out", "PNP_SetHwProf");
2393 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
2399 static enum ndr_err_code
ndr_push_PNP_QueryArbitratorFreeData(struct ndr_push
*ndr
, int flags
, const struct PNP_QueryArbitratorFreeData
*r
)
2401 if (flags
& NDR_IN
) {
2403 if (flags
& NDR_OUT
) {
2404 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
2406 return NDR_ERR_SUCCESS
;
2409 static enum ndr_err_code
ndr_pull_PNP_QueryArbitratorFreeData(struct ndr_pull
*ndr
, int flags
, struct PNP_QueryArbitratorFreeData
*r
)
2411 if (flags
& NDR_IN
) {
2413 if (flags
& NDR_OUT
) {
2414 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
2416 return NDR_ERR_SUCCESS
;
2419 _PUBLIC_
void ndr_print_PNP_QueryArbitratorFreeData(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_QueryArbitratorFreeData
*r
)
2421 ndr_print_struct(ndr
, name
, "PNP_QueryArbitratorFreeData");
2423 if (flags
& NDR_SET_VALUES
) {
2424 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2426 if (flags
& NDR_IN
) {
2427 ndr_print_struct(ndr
, "in", "PNP_QueryArbitratorFreeData");
2431 if (flags
& NDR_OUT
) {
2432 ndr_print_struct(ndr
, "out", "PNP_QueryArbitratorFreeData");
2434 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
2440 static enum ndr_err_code
ndr_push_PNP_QueryArbitratorFreeSize(struct ndr_push
*ndr
, int flags
, const struct PNP_QueryArbitratorFreeSize
*r
)
2442 if (flags
& NDR_IN
) {
2444 if (flags
& NDR_OUT
) {
2445 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
2447 return NDR_ERR_SUCCESS
;
2450 static enum ndr_err_code
ndr_pull_PNP_QueryArbitratorFreeSize(struct ndr_pull
*ndr
, int flags
, struct PNP_QueryArbitratorFreeSize
*r
)
2452 if (flags
& NDR_IN
) {
2454 if (flags
& NDR_OUT
) {
2455 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
2457 return NDR_ERR_SUCCESS
;
2460 _PUBLIC_
void ndr_print_PNP_QueryArbitratorFreeSize(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_QueryArbitratorFreeSize
*r
)
2462 ndr_print_struct(ndr
, name
, "PNP_QueryArbitratorFreeSize");
2464 if (flags
& NDR_SET_VALUES
) {
2465 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2467 if (flags
& NDR_IN
) {
2468 ndr_print_struct(ndr
, "in", "PNP_QueryArbitratorFreeSize");
2472 if (flags
& NDR_OUT
) {
2473 ndr_print_struct(ndr
, "out", "PNP_QueryArbitratorFreeSize");
2475 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
2481 static enum ndr_err_code
ndr_push_PNP_RunDetection(struct ndr_push
*ndr
, int flags
, const struct PNP_RunDetection
*r
)
2483 if (flags
& NDR_IN
) {
2485 if (flags
& NDR_OUT
) {
2486 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
2488 return NDR_ERR_SUCCESS
;
2491 static enum ndr_err_code
ndr_pull_PNP_RunDetection(struct ndr_pull
*ndr
, int flags
, struct PNP_RunDetection
*r
)
2493 if (flags
& NDR_IN
) {
2495 if (flags
& NDR_OUT
) {
2496 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
2498 return NDR_ERR_SUCCESS
;
2501 _PUBLIC_
void ndr_print_PNP_RunDetection(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_RunDetection
*r
)
2503 ndr_print_struct(ndr
, name
, "PNP_RunDetection");
2505 if (flags
& NDR_SET_VALUES
) {
2506 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2508 if (flags
& NDR_IN
) {
2509 ndr_print_struct(ndr
, "in", "PNP_RunDetection");
2513 if (flags
& NDR_OUT
) {
2514 ndr_print_struct(ndr
, "out", "PNP_RunDetection");
2516 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
2522 static enum ndr_err_code
ndr_push_PNP_RegisterNotification(struct ndr_push
*ndr
, int flags
, const struct PNP_RegisterNotification
*r
)
2524 if (flags
& NDR_IN
) {
2526 if (flags
& NDR_OUT
) {
2527 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
2529 return NDR_ERR_SUCCESS
;
2532 static enum ndr_err_code
ndr_pull_PNP_RegisterNotification(struct ndr_pull
*ndr
, int flags
, struct PNP_RegisterNotification
*r
)
2534 if (flags
& NDR_IN
) {
2536 if (flags
& NDR_OUT
) {
2537 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
2539 return NDR_ERR_SUCCESS
;
2542 _PUBLIC_
void ndr_print_PNP_RegisterNotification(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_RegisterNotification
*r
)
2544 ndr_print_struct(ndr
, name
, "PNP_RegisterNotification");
2546 if (flags
& NDR_SET_VALUES
) {
2547 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2549 if (flags
& NDR_IN
) {
2550 ndr_print_struct(ndr
, "in", "PNP_RegisterNotification");
2554 if (flags
& NDR_OUT
) {
2555 ndr_print_struct(ndr
, "out", "PNP_RegisterNotification");
2557 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
2563 static enum ndr_err_code
ndr_push_PNP_UnregisterNotification(struct ndr_push
*ndr
, int flags
, const struct PNP_UnregisterNotification
*r
)
2565 if (flags
& NDR_IN
) {
2567 if (flags
& NDR_OUT
) {
2568 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
2570 return NDR_ERR_SUCCESS
;
2573 static enum ndr_err_code
ndr_pull_PNP_UnregisterNotification(struct ndr_pull
*ndr
, int flags
, struct PNP_UnregisterNotification
*r
)
2575 if (flags
& NDR_IN
) {
2577 if (flags
& NDR_OUT
) {
2578 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
2580 return NDR_ERR_SUCCESS
;
2583 _PUBLIC_
void ndr_print_PNP_UnregisterNotification(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_UnregisterNotification
*r
)
2585 ndr_print_struct(ndr
, name
, "PNP_UnregisterNotification");
2587 if (flags
& NDR_SET_VALUES
) {
2588 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2590 if (flags
& NDR_IN
) {
2591 ndr_print_struct(ndr
, "in", "PNP_UnregisterNotification");
2595 if (flags
& NDR_OUT
) {
2596 ndr_print_struct(ndr
, "out", "PNP_UnregisterNotification");
2598 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
2604 static enum ndr_err_code
ndr_push_PNP_GetCustomDevProp(struct ndr_push
*ndr
, int flags
, const struct PNP_GetCustomDevProp
*r
)
2606 if (flags
& NDR_IN
) {
2608 if (flags
& NDR_OUT
) {
2609 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
2611 return NDR_ERR_SUCCESS
;
2614 static enum ndr_err_code
ndr_pull_PNP_GetCustomDevProp(struct ndr_pull
*ndr
, int flags
, struct PNP_GetCustomDevProp
*r
)
2616 if (flags
& NDR_IN
) {
2618 if (flags
& NDR_OUT
) {
2619 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
2621 return NDR_ERR_SUCCESS
;
2624 _PUBLIC_
void ndr_print_PNP_GetCustomDevProp(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetCustomDevProp
*r
)
2626 ndr_print_struct(ndr
, name
, "PNP_GetCustomDevProp");
2628 if (flags
& NDR_SET_VALUES
) {
2629 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2631 if (flags
& NDR_IN
) {
2632 ndr_print_struct(ndr
, "in", "PNP_GetCustomDevProp");
2636 if (flags
& NDR_OUT
) {
2637 ndr_print_struct(ndr
, "out", "PNP_GetCustomDevProp");
2639 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
2645 static enum ndr_err_code
ndr_push_PNP_GetVersionInternal(struct ndr_push
*ndr
, int flags
, const struct PNP_GetVersionInternal
*r
)
2647 if (flags
& NDR_IN
) {
2649 if (flags
& NDR_OUT
) {
2650 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
2652 return NDR_ERR_SUCCESS
;
2655 static enum ndr_err_code
ndr_pull_PNP_GetVersionInternal(struct ndr_pull
*ndr
, int flags
, struct PNP_GetVersionInternal
*r
)
2657 if (flags
& NDR_IN
) {
2659 if (flags
& NDR_OUT
) {
2660 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
2662 return NDR_ERR_SUCCESS
;
2665 _PUBLIC_
void ndr_print_PNP_GetVersionInternal(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetVersionInternal
*r
)
2667 ndr_print_struct(ndr
, name
, "PNP_GetVersionInternal");
2669 if (flags
& NDR_SET_VALUES
) {
2670 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2672 if (flags
& NDR_IN
) {
2673 ndr_print_struct(ndr
, "in", "PNP_GetVersionInternal");
2677 if (flags
& NDR_OUT
) {
2678 ndr_print_struct(ndr
, "out", "PNP_GetVersionInternal");
2680 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
2686 static enum ndr_err_code
ndr_push_PNP_GetBlockedDriverInfo(struct ndr_push
*ndr
, int flags
, const struct PNP_GetBlockedDriverInfo
*r
)
2688 if (flags
& NDR_IN
) {
2690 if (flags
& NDR_OUT
) {
2691 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
2693 return NDR_ERR_SUCCESS
;
2696 static enum ndr_err_code
ndr_pull_PNP_GetBlockedDriverInfo(struct ndr_pull
*ndr
, int flags
, struct PNP_GetBlockedDriverInfo
*r
)
2698 if (flags
& NDR_IN
) {
2700 if (flags
& NDR_OUT
) {
2701 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
2703 return NDR_ERR_SUCCESS
;
2706 _PUBLIC_
void ndr_print_PNP_GetBlockedDriverInfo(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetBlockedDriverInfo
*r
)
2708 ndr_print_struct(ndr
, name
, "PNP_GetBlockedDriverInfo");
2710 if (flags
& NDR_SET_VALUES
) {
2711 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2713 if (flags
& NDR_IN
) {
2714 ndr_print_struct(ndr
, "in", "PNP_GetBlockedDriverInfo");
2718 if (flags
& NDR_OUT
) {
2719 ndr_print_struct(ndr
, "out", "PNP_GetBlockedDriverInfo");
2721 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
2727 static enum ndr_err_code
ndr_push_PNP_GetServerSideDeviceInstallFlags(struct ndr_push
*ndr
, int flags
, const struct PNP_GetServerSideDeviceInstallFlags
*r
)
2729 if (flags
& NDR_IN
) {
2731 if (flags
& NDR_OUT
) {
2732 NDR_CHECK(ndr_push_WERROR(ndr
, NDR_SCALARS
, r
->out
.result
));
2734 return NDR_ERR_SUCCESS
;
2737 static enum ndr_err_code
ndr_pull_PNP_GetServerSideDeviceInstallFlags(struct ndr_pull
*ndr
, int flags
, struct PNP_GetServerSideDeviceInstallFlags
*r
)
2739 if (flags
& NDR_IN
) {
2741 if (flags
& NDR_OUT
) {
2742 NDR_CHECK(ndr_pull_WERROR(ndr
, NDR_SCALARS
, &r
->out
.result
));
2744 return NDR_ERR_SUCCESS
;
2747 _PUBLIC_
void ndr_print_PNP_GetServerSideDeviceInstallFlags(struct ndr_print
*ndr
, const char *name
, int flags
, const struct PNP_GetServerSideDeviceInstallFlags
*r
)
2749 ndr_print_struct(ndr
, name
, "PNP_GetServerSideDeviceInstallFlags");
2751 if (flags
& NDR_SET_VALUES
) {
2752 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
2754 if (flags
& NDR_IN
) {
2755 ndr_print_struct(ndr
, "in", "PNP_GetServerSideDeviceInstallFlags");
2759 if (flags
& NDR_OUT
) {
2760 ndr_print_struct(ndr
, "out", "PNP_GetServerSideDeviceInstallFlags");
2762 ndr_print_WERROR(ndr
, "result", r
->out
.result
);
2768 static const struct ndr_interface_call ntsvcs_calls
[] = {
2771 sizeof(struct PNP_Disconnect
),
2772 (ndr_push_flags_fn_t
) ndr_push_PNP_Disconnect
,
2773 (ndr_pull_flags_fn_t
) ndr_pull_PNP_Disconnect
,
2774 (ndr_print_function_t
) ndr_print_PNP_Disconnect
,
2779 sizeof(struct PNP_Connect
),
2780 (ndr_push_flags_fn_t
) ndr_push_PNP_Connect
,
2781 (ndr_pull_flags_fn_t
) ndr_pull_PNP_Connect
,
2782 (ndr_print_function_t
) ndr_print_PNP_Connect
,
2787 sizeof(struct PNP_GetVersion
),
2788 (ndr_push_flags_fn_t
) ndr_push_PNP_GetVersion
,
2789 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetVersion
,
2790 (ndr_print_function_t
) ndr_print_PNP_GetVersion
,
2794 "PNP_GetGlobalState",
2795 sizeof(struct PNP_GetGlobalState
),
2796 (ndr_push_flags_fn_t
) ndr_push_PNP_GetGlobalState
,
2797 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetGlobalState
,
2798 (ndr_print_function_t
) ndr_print_PNP_GetGlobalState
,
2802 "PNP_InitDetection",
2803 sizeof(struct PNP_InitDetection
),
2804 (ndr_push_flags_fn_t
) ndr_push_PNP_InitDetection
,
2805 (ndr_pull_flags_fn_t
) ndr_pull_PNP_InitDetection
,
2806 (ndr_print_function_t
) ndr_print_PNP_InitDetection
,
2811 sizeof(struct PNP_ReportLogOn
),
2812 (ndr_push_flags_fn_t
) ndr_push_PNP_ReportLogOn
,
2813 (ndr_pull_flags_fn_t
) ndr_pull_PNP_ReportLogOn
,
2814 (ndr_print_function_t
) ndr_print_PNP_ReportLogOn
,
2818 "PNP_ValidateDeviceInstance",
2819 sizeof(struct PNP_ValidateDeviceInstance
),
2820 (ndr_push_flags_fn_t
) ndr_push_PNP_ValidateDeviceInstance
,
2821 (ndr_pull_flags_fn_t
) ndr_pull_PNP_ValidateDeviceInstance
,
2822 (ndr_print_function_t
) ndr_print_PNP_ValidateDeviceInstance
,
2826 "PNP_GetRootDeviceInstance",
2827 sizeof(struct PNP_GetRootDeviceInstance
),
2828 (ndr_push_flags_fn_t
) ndr_push_PNP_GetRootDeviceInstance
,
2829 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetRootDeviceInstance
,
2830 (ndr_print_function_t
) ndr_print_PNP_GetRootDeviceInstance
,
2834 "PNP_GetRelatedDeviceInstance",
2835 sizeof(struct PNP_GetRelatedDeviceInstance
),
2836 (ndr_push_flags_fn_t
) ndr_push_PNP_GetRelatedDeviceInstance
,
2837 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetRelatedDeviceInstance
,
2838 (ndr_print_function_t
) ndr_print_PNP_GetRelatedDeviceInstance
,
2842 "PNP_EnumerateSubKeys",
2843 sizeof(struct PNP_EnumerateSubKeys
),
2844 (ndr_push_flags_fn_t
) ndr_push_PNP_EnumerateSubKeys
,
2845 (ndr_pull_flags_fn_t
) ndr_pull_PNP_EnumerateSubKeys
,
2846 (ndr_print_function_t
) ndr_print_PNP_EnumerateSubKeys
,
2850 "PNP_GetDeviceList",
2851 sizeof(struct PNP_GetDeviceList
),
2852 (ndr_push_flags_fn_t
) ndr_push_PNP_GetDeviceList
,
2853 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetDeviceList
,
2854 (ndr_print_function_t
) ndr_print_PNP_GetDeviceList
,
2858 "PNP_GetDeviceListSize",
2859 sizeof(struct PNP_GetDeviceListSize
),
2860 (ndr_push_flags_fn_t
) ndr_push_PNP_GetDeviceListSize
,
2861 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetDeviceListSize
,
2862 (ndr_print_function_t
) ndr_print_PNP_GetDeviceListSize
,
2867 sizeof(struct PNP_GetDepth
),
2868 (ndr_push_flags_fn_t
) ndr_push_PNP_GetDepth
,
2869 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetDepth
,
2870 (ndr_print_function_t
) ndr_print_PNP_GetDepth
,
2874 "PNP_GetDeviceRegProp",
2875 sizeof(struct PNP_GetDeviceRegProp
),
2876 (ndr_push_flags_fn_t
) ndr_push_PNP_GetDeviceRegProp
,
2877 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetDeviceRegProp
,
2878 (ndr_print_function_t
) ndr_print_PNP_GetDeviceRegProp
,
2882 "PNP_SetDeviceRegProp",
2883 sizeof(struct PNP_SetDeviceRegProp
),
2884 (ndr_push_flags_fn_t
) ndr_push_PNP_SetDeviceRegProp
,
2885 (ndr_pull_flags_fn_t
) ndr_pull_PNP_SetDeviceRegProp
,
2886 (ndr_print_function_t
) ndr_print_PNP_SetDeviceRegProp
,
2890 "PNP_GetClassInstance",
2891 sizeof(struct PNP_GetClassInstance
),
2892 (ndr_push_flags_fn_t
) ndr_push_PNP_GetClassInstance
,
2893 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetClassInstance
,
2894 (ndr_print_function_t
) ndr_print_PNP_GetClassInstance
,
2899 sizeof(struct PNP_CreateKey
),
2900 (ndr_push_flags_fn_t
) ndr_push_PNP_CreateKey
,
2901 (ndr_pull_flags_fn_t
) ndr_pull_PNP_CreateKey
,
2902 (ndr_print_function_t
) ndr_print_PNP_CreateKey
,
2906 "PNP_DeleteRegistryKey",
2907 sizeof(struct PNP_DeleteRegistryKey
),
2908 (ndr_push_flags_fn_t
) ndr_push_PNP_DeleteRegistryKey
,
2909 (ndr_pull_flags_fn_t
) ndr_pull_PNP_DeleteRegistryKey
,
2910 (ndr_print_function_t
) ndr_print_PNP_DeleteRegistryKey
,
2914 "PNP_GetClassCount",
2915 sizeof(struct PNP_GetClassCount
),
2916 (ndr_push_flags_fn_t
) ndr_push_PNP_GetClassCount
,
2917 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetClassCount
,
2918 (ndr_print_function_t
) ndr_print_PNP_GetClassCount
,
2923 sizeof(struct PNP_GetClassName
),
2924 (ndr_push_flags_fn_t
) ndr_push_PNP_GetClassName
,
2925 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetClassName
,
2926 (ndr_print_function_t
) ndr_print_PNP_GetClassName
,
2930 "PNP_DeleteClassKey",
2931 sizeof(struct PNP_DeleteClassKey
),
2932 (ndr_push_flags_fn_t
) ndr_push_PNP_DeleteClassKey
,
2933 (ndr_pull_flags_fn_t
) ndr_pull_PNP_DeleteClassKey
,
2934 (ndr_print_function_t
) ndr_print_PNP_DeleteClassKey
,
2938 "PNP_GetInterfaceDeviceAlias",
2939 sizeof(struct PNP_GetInterfaceDeviceAlias
),
2940 (ndr_push_flags_fn_t
) ndr_push_PNP_GetInterfaceDeviceAlias
,
2941 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetInterfaceDeviceAlias
,
2942 (ndr_print_function_t
) ndr_print_PNP_GetInterfaceDeviceAlias
,
2946 "PNP_GetInterfaceDeviceList",
2947 sizeof(struct PNP_GetInterfaceDeviceList
),
2948 (ndr_push_flags_fn_t
) ndr_push_PNP_GetInterfaceDeviceList
,
2949 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetInterfaceDeviceList
,
2950 (ndr_print_function_t
) ndr_print_PNP_GetInterfaceDeviceList
,
2954 "PNP_GetInterfaceDeviceListSize",
2955 sizeof(struct PNP_GetInterfaceDeviceListSize
),
2956 (ndr_push_flags_fn_t
) ndr_push_PNP_GetInterfaceDeviceListSize
,
2957 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetInterfaceDeviceListSize
,
2958 (ndr_print_function_t
) ndr_print_PNP_GetInterfaceDeviceListSize
,
2962 "PNP_RegisterDeviceClassAssociation",
2963 sizeof(struct PNP_RegisterDeviceClassAssociation
),
2964 (ndr_push_flags_fn_t
) ndr_push_PNP_RegisterDeviceClassAssociation
,
2965 (ndr_pull_flags_fn_t
) ndr_pull_PNP_RegisterDeviceClassAssociation
,
2966 (ndr_print_function_t
) ndr_print_PNP_RegisterDeviceClassAssociation
,
2970 "PNP_UnregisterDeviceClassAssociation",
2971 sizeof(struct PNP_UnregisterDeviceClassAssociation
),
2972 (ndr_push_flags_fn_t
) ndr_push_PNP_UnregisterDeviceClassAssociation
,
2973 (ndr_pull_flags_fn_t
) ndr_pull_PNP_UnregisterDeviceClassAssociation
,
2974 (ndr_print_function_t
) ndr_print_PNP_UnregisterDeviceClassAssociation
,
2978 "PNP_GetClassRegProp",
2979 sizeof(struct PNP_GetClassRegProp
),
2980 (ndr_push_flags_fn_t
) ndr_push_PNP_GetClassRegProp
,
2981 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetClassRegProp
,
2982 (ndr_print_function_t
) ndr_print_PNP_GetClassRegProp
,
2986 "PNP_SetClassRegProp",
2987 sizeof(struct PNP_SetClassRegProp
),
2988 (ndr_push_flags_fn_t
) ndr_push_PNP_SetClassRegProp
,
2989 (ndr_pull_flags_fn_t
) ndr_pull_PNP_SetClassRegProp
,
2990 (ndr_print_function_t
) ndr_print_PNP_SetClassRegProp
,
2994 "PNP_CreateDevInst",
2995 sizeof(struct PNP_CreateDevInst
),
2996 (ndr_push_flags_fn_t
) ndr_push_PNP_CreateDevInst
,
2997 (ndr_pull_flags_fn_t
) ndr_pull_PNP_CreateDevInst
,
2998 (ndr_print_function_t
) ndr_print_PNP_CreateDevInst
,
3002 "PNP_DeviceInstanceAction",
3003 sizeof(struct PNP_DeviceInstanceAction
),
3004 (ndr_push_flags_fn_t
) ndr_push_PNP_DeviceInstanceAction
,
3005 (ndr_pull_flags_fn_t
) ndr_pull_PNP_DeviceInstanceAction
,
3006 (ndr_print_function_t
) ndr_print_PNP_DeviceInstanceAction
,
3010 "PNP_GetDeviceStatus",
3011 sizeof(struct PNP_GetDeviceStatus
),
3012 (ndr_push_flags_fn_t
) ndr_push_PNP_GetDeviceStatus
,
3013 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetDeviceStatus
,
3014 (ndr_print_function_t
) ndr_print_PNP_GetDeviceStatus
,
3018 "PNP_SetDeviceProblem",
3019 sizeof(struct PNP_SetDeviceProblem
),
3020 (ndr_push_flags_fn_t
) ndr_push_PNP_SetDeviceProblem
,
3021 (ndr_pull_flags_fn_t
) ndr_pull_PNP_SetDeviceProblem
,
3022 (ndr_print_function_t
) ndr_print_PNP_SetDeviceProblem
,
3026 "PNP_DisableDevInst",
3027 sizeof(struct PNP_DisableDevInst
),
3028 (ndr_push_flags_fn_t
) ndr_push_PNP_DisableDevInst
,
3029 (ndr_pull_flags_fn_t
) ndr_pull_PNP_DisableDevInst
,
3030 (ndr_print_function_t
) ndr_print_PNP_DisableDevInst
,
3034 "PNP_UninstallDevInst",
3035 sizeof(struct PNP_UninstallDevInst
),
3036 (ndr_push_flags_fn_t
) ndr_push_PNP_UninstallDevInst
,
3037 (ndr_pull_flags_fn_t
) ndr_pull_PNP_UninstallDevInst
,
3038 (ndr_print_function_t
) ndr_print_PNP_UninstallDevInst
,
3043 sizeof(struct PNP_AddID
),
3044 (ndr_push_flags_fn_t
) ndr_push_PNP_AddID
,
3045 (ndr_pull_flags_fn_t
) ndr_pull_PNP_AddID
,
3046 (ndr_print_function_t
) ndr_print_PNP_AddID
,
3050 "PNP_RegisterDriver",
3051 sizeof(struct PNP_RegisterDriver
),
3052 (ndr_push_flags_fn_t
) ndr_push_PNP_RegisterDriver
,
3053 (ndr_pull_flags_fn_t
) ndr_pull_PNP_RegisterDriver
,
3054 (ndr_print_function_t
) ndr_print_PNP_RegisterDriver
,
3059 sizeof(struct PNP_QueryRemove
),
3060 (ndr_push_flags_fn_t
) ndr_push_PNP_QueryRemove
,
3061 (ndr_pull_flags_fn_t
) ndr_pull_PNP_QueryRemove
,
3062 (ndr_print_function_t
) ndr_print_PNP_QueryRemove
,
3066 "PNP_RequestDeviceEject",
3067 sizeof(struct PNP_RequestDeviceEject
),
3068 (ndr_push_flags_fn_t
) ndr_push_PNP_RequestDeviceEject
,
3069 (ndr_pull_flags_fn_t
) ndr_pull_PNP_RequestDeviceEject
,
3070 (ndr_print_function_t
) ndr_print_PNP_RequestDeviceEject
,
3074 "PNP_IsDockStationPresent",
3075 sizeof(struct PNP_IsDockStationPresent
),
3076 (ndr_push_flags_fn_t
) ndr_push_PNP_IsDockStationPresent
,
3077 (ndr_pull_flags_fn_t
) ndr_pull_PNP_IsDockStationPresent
,
3078 (ndr_print_function_t
) ndr_print_PNP_IsDockStationPresent
,
3082 "PNP_RequestEjectPC",
3083 sizeof(struct PNP_RequestEjectPC
),
3084 (ndr_push_flags_fn_t
) ndr_push_PNP_RequestEjectPC
,
3085 (ndr_pull_flags_fn_t
) ndr_pull_PNP_RequestEjectPC
,
3086 (ndr_print_function_t
) ndr_print_PNP_RequestEjectPC
,
3091 sizeof(struct PNP_HwProfFlags
),
3092 (ndr_push_flags_fn_t
) ndr_push_PNP_HwProfFlags
,
3093 (ndr_pull_flags_fn_t
) ndr_pull_PNP_HwProfFlags
,
3094 (ndr_print_function_t
) ndr_print_PNP_HwProfFlags
,
3098 "PNP_GetHwProfInfo",
3099 sizeof(struct PNP_GetHwProfInfo
),
3100 (ndr_push_flags_fn_t
) ndr_push_PNP_GetHwProfInfo
,
3101 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetHwProfInfo
,
3102 (ndr_print_function_t
) ndr_print_PNP_GetHwProfInfo
,
3106 "PNP_AddEmptyLogConf",
3107 sizeof(struct PNP_AddEmptyLogConf
),
3108 (ndr_push_flags_fn_t
) ndr_push_PNP_AddEmptyLogConf
,
3109 (ndr_pull_flags_fn_t
) ndr_pull_PNP_AddEmptyLogConf
,
3110 (ndr_print_function_t
) ndr_print_PNP_AddEmptyLogConf
,
3115 sizeof(struct PNP_FreeLogConf
),
3116 (ndr_push_flags_fn_t
) ndr_push_PNP_FreeLogConf
,
3117 (ndr_pull_flags_fn_t
) ndr_pull_PNP_FreeLogConf
,
3118 (ndr_print_function_t
) ndr_print_PNP_FreeLogConf
,
3122 "PNP_GetFirstLogConf",
3123 sizeof(struct PNP_GetFirstLogConf
),
3124 (ndr_push_flags_fn_t
) ndr_push_PNP_GetFirstLogConf
,
3125 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetFirstLogConf
,
3126 (ndr_print_function_t
) ndr_print_PNP_GetFirstLogConf
,
3130 "PNP_GetNextLogConf",
3131 sizeof(struct PNP_GetNextLogConf
),
3132 (ndr_push_flags_fn_t
) ndr_push_PNP_GetNextLogConf
,
3133 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetNextLogConf
,
3134 (ndr_print_function_t
) ndr_print_PNP_GetNextLogConf
,
3138 "PNP_GetLogConfPriority",
3139 sizeof(struct PNP_GetLogConfPriority
),
3140 (ndr_push_flags_fn_t
) ndr_push_PNP_GetLogConfPriority
,
3141 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetLogConfPriority
,
3142 (ndr_print_function_t
) ndr_print_PNP_GetLogConfPriority
,
3147 sizeof(struct PNP_AddResDes
),
3148 (ndr_push_flags_fn_t
) ndr_push_PNP_AddResDes
,
3149 (ndr_pull_flags_fn_t
) ndr_pull_PNP_AddResDes
,
3150 (ndr_print_function_t
) ndr_print_PNP_AddResDes
,
3155 sizeof(struct PNP_FreeResDes
),
3156 (ndr_push_flags_fn_t
) ndr_push_PNP_FreeResDes
,
3157 (ndr_pull_flags_fn_t
) ndr_pull_PNP_FreeResDes
,
3158 (ndr_print_function_t
) ndr_print_PNP_FreeResDes
,
3162 "PNP_GetNextResDes",
3163 sizeof(struct PNP_GetNextResDes
),
3164 (ndr_push_flags_fn_t
) ndr_push_PNP_GetNextResDes
,
3165 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetNextResDes
,
3166 (ndr_print_function_t
) ndr_print_PNP_GetNextResDes
,
3170 "PNP_GetResDesData",
3171 sizeof(struct PNP_GetResDesData
),
3172 (ndr_push_flags_fn_t
) ndr_push_PNP_GetResDesData
,
3173 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetResDesData
,
3174 (ndr_print_function_t
) ndr_print_PNP_GetResDesData
,
3178 "PNP_GetResDesDataSize",
3179 sizeof(struct PNP_GetResDesDataSize
),
3180 (ndr_push_flags_fn_t
) ndr_push_PNP_GetResDesDataSize
,
3181 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetResDesDataSize
,
3182 (ndr_print_function_t
) ndr_print_PNP_GetResDesDataSize
,
3187 sizeof(struct PNP_ModifyResDes
),
3188 (ndr_push_flags_fn_t
) ndr_push_PNP_ModifyResDes
,
3189 (ndr_pull_flags_fn_t
) ndr_pull_PNP_ModifyResDes
,
3190 (ndr_print_function_t
) ndr_print_PNP_ModifyResDes
,
3194 "PNP_DetectResourceLimit",
3195 sizeof(struct PNP_DetectResourceLimit
),
3196 (ndr_push_flags_fn_t
) ndr_push_PNP_DetectResourceLimit
,
3197 (ndr_pull_flags_fn_t
) ndr_pull_PNP_DetectResourceLimit
,
3198 (ndr_print_function_t
) ndr_print_PNP_DetectResourceLimit
,
3202 "PNP_QueryResConfList",
3203 sizeof(struct PNP_QueryResConfList
),
3204 (ndr_push_flags_fn_t
) ndr_push_PNP_QueryResConfList
,
3205 (ndr_pull_flags_fn_t
) ndr_pull_PNP_QueryResConfList
,
3206 (ndr_print_function_t
) ndr_print_PNP_QueryResConfList
,
3211 sizeof(struct PNP_SetHwProf
),
3212 (ndr_push_flags_fn_t
) ndr_push_PNP_SetHwProf
,
3213 (ndr_pull_flags_fn_t
) ndr_pull_PNP_SetHwProf
,
3214 (ndr_print_function_t
) ndr_print_PNP_SetHwProf
,
3218 "PNP_QueryArbitratorFreeData",
3219 sizeof(struct PNP_QueryArbitratorFreeData
),
3220 (ndr_push_flags_fn_t
) ndr_push_PNP_QueryArbitratorFreeData
,
3221 (ndr_pull_flags_fn_t
) ndr_pull_PNP_QueryArbitratorFreeData
,
3222 (ndr_print_function_t
) ndr_print_PNP_QueryArbitratorFreeData
,
3226 "PNP_QueryArbitratorFreeSize",
3227 sizeof(struct PNP_QueryArbitratorFreeSize
),
3228 (ndr_push_flags_fn_t
) ndr_push_PNP_QueryArbitratorFreeSize
,
3229 (ndr_pull_flags_fn_t
) ndr_pull_PNP_QueryArbitratorFreeSize
,
3230 (ndr_print_function_t
) ndr_print_PNP_QueryArbitratorFreeSize
,
3235 sizeof(struct PNP_RunDetection
),
3236 (ndr_push_flags_fn_t
) ndr_push_PNP_RunDetection
,
3237 (ndr_pull_flags_fn_t
) ndr_pull_PNP_RunDetection
,
3238 (ndr_print_function_t
) ndr_print_PNP_RunDetection
,
3242 "PNP_RegisterNotification",
3243 sizeof(struct PNP_RegisterNotification
),
3244 (ndr_push_flags_fn_t
) ndr_push_PNP_RegisterNotification
,
3245 (ndr_pull_flags_fn_t
) ndr_pull_PNP_RegisterNotification
,
3246 (ndr_print_function_t
) ndr_print_PNP_RegisterNotification
,
3250 "PNP_UnregisterNotification",
3251 sizeof(struct PNP_UnregisterNotification
),
3252 (ndr_push_flags_fn_t
) ndr_push_PNP_UnregisterNotification
,
3253 (ndr_pull_flags_fn_t
) ndr_pull_PNP_UnregisterNotification
,
3254 (ndr_print_function_t
) ndr_print_PNP_UnregisterNotification
,
3258 "PNP_GetCustomDevProp",
3259 sizeof(struct PNP_GetCustomDevProp
),
3260 (ndr_push_flags_fn_t
) ndr_push_PNP_GetCustomDevProp
,
3261 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetCustomDevProp
,
3262 (ndr_print_function_t
) ndr_print_PNP_GetCustomDevProp
,
3266 "PNP_GetVersionInternal",
3267 sizeof(struct PNP_GetVersionInternal
),
3268 (ndr_push_flags_fn_t
) ndr_push_PNP_GetVersionInternal
,
3269 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetVersionInternal
,
3270 (ndr_print_function_t
) ndr_print_PNP_GetVersionInternal
,
3274 "PNP_GetBlockedDriverInfo",
3275 sizeof(struct PNP_GetBlockedDriverInfo
),
3276 (ndr_push_flags_fn_t
) ndr_push_PNP_GetBlockedDriverInfo
,
3277 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetBlockedDriverInfo
,
3278 (ndr_print_function_t
) ndr_print_PNP_GetBlockedDriverInfo
,
3282 "PNP_GetServerSideDeviceInstallFlags",
3283 sizeof(struct PNP_GetServerSideDeviceInstallFlags
),
3284 (ndr_push_flags_fn_t
) ndr_push_PNP_GetServerSideDeviceInstallFlags
,
3285 (ndr_pull_flags_fn_t
) ndr_pull_PNP_GetServerSideDeviceInstallFlags
,
3286 (ndr_print_function_t
) ndr_print_PNP_GetServerSideDeviceInstallFlags
,
3289 { NULL
, 0, NULL
, NULL
, NULL
, false }
3292 static const char * const ntsvcs_endpoint_strings
[] = {
3293 "ncacn_np:[\\pipe\\ntsvcs]",
3296 static const struct ndr_interface_string_array ntsvcs_endpoints
= {
3298 .names
= ntsvcs_endpoint_strings
3301 static const char * const ntsvcs_authservice_strings
[] = {
3305 static const struct ndr_interface_string_array ntsvcs_authservices
= {
3307 .names
= ntsvcs_authservice_strings
3311 const struct ndr_interface_table ndr_table_ntsvcs
= {
3314 {0x8d9f4e40,0xa03d,0x11ce,{0x8f,0x69},{0x08,0x00,0x3e,0x30,0x05,0x1b}},
3317 .helpstring
= NDR_NTSVCS_HELPSTRING
,
3319 .calls
= ntsvcs_calls
,
3320 .endpoints
= &ntsvcs_endpoints
,
3321 .authservices
= &ntsvcs_authservices