2 * Server request tracing
4 * Copyright (C) 1999 Alexandre Julliard
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
22 #include "wine/port.h"
27 #include <sys/types.h>
34 #define WIN32_NO_STATUS
42 #include "ddk/ntddser.h"
49 static const void *cur_data
;
50 static data_size_t cur_size
;
52 static const char *get_status_name( unsigned int status
);
54 /* utility functions */
56 static inline void remove_data( data_size_t size
)
58 cur_data
= (const char *)cur_data
+ size
;
62 static void dump_uints( const char *prefix
, const unsigned int *ptr
, int len
)
64 fprintf( stderr
, "%s{", prefix
);
67 fprintf( stderr
, "%08x", *ptr
++ );
68 if (--len
) fputc( ',', stderr
);
73 static void dump_handles( const char *prefix
, const obj_handle_t
*data
, data_size_t size
)
75 data_size_t len
= size
/ sizeof(*data
);
77 fprintf( stderr
,"%s{", prefix
);
80 fprintf( stderr
, "%04x", *data
++ );
81 if (--len
) fputc( ',', stderr
);
86 static void dump_timeout( const char *prefix
, const timeout_t
*time
)
88 fprintf( stderr
, "%s%s", prefix
, get_timeout_str(*time
) );
91 static void dump_uint64( const char *prefix
, const unsigned __int64
*val
)
93 if ((unsigned int)*val
!= *val
)
94 fprintf( stderr
, "%s%x%08x", prefix
, (unsigned int)(*val
>> 32), (unsigned int)*val
);
96 fprintf( stderr
, "%s%08x", prefix
, (unsigned int)*val
);
99 static void dump_rectangle( const char *prefix
, const rectangle_t
*rect
)
101 fprintf( stderr
, "%s{%d,%d;%d,%d}", prefix
,
102 rect
->left
, rect
->top
, rect
->right
, rect
->bottom
);
105 static void dump_char_info( const char *prefix
, const char_info_t
*info
)
107 fprintf( stderr
, "%s{'", prefix
);
108 dump_strW( &info
->ch
, 1, stderr
, "\'\'" );
109 fprintf( stderr
, "',%04x}", info
->attr
);
112 static void dump_ioctl_code( const char *prefix
, const ioctl_code_t
*code
)
116 #define CASE(c) case c: fprintf( stderr, "%s%s", prefix, #c ); break
117 CASE(FSCTL_DISMOUNT_VOLUME
);
118 CASE(FSCTL_PIPE_DISCONNECT
);
119 CASE(FSCTL_PIPE_LISTEN
);
120 CASE(FSCTL_PIPE_PEEK
);
121 CASE(FSCTL_PIPE_WAIT
);
122 CASE(IOCTL_SERIAL_GET_TIMEOUTS
);
123 CASE(IOCTL_SERIAL_GET_WAIT_MASK
);
124 CASE(IOCTL_SERIAL_SET_TIMEOUTS
);
125 CASE(IOCTL_SERIAL_SET_WAIT_MASK
);
126 CASE(WS_SIO_ADDRESS_LIST_CHANGE
);
127 default: fprintf( stderr
, "%s%08x", prefix
, *code
); break;
132 static void dump_cpu_type( const char *prefix
, const cpu_type_t
*code
)
136 #define CASE(c) case CPU_##c: fprintf( stderr, "%s%s", prefix, #c ); break
142 default: fprintf( stderr
, "%s%u", prefix
, *code
); break;
147 static void dump_apc_call( const char *prefix
, const apc_call_t
*call
)
149 fprintf( stderr
, "%s{", prefix
);
153 fprintf( stderr
, "APC_NONE" );
156 dump_uint64( "APC_USER,func=", &call
->user
.func
);
157 dump_uint64( ",args={", &call
->user
.args
[0] );
158 dump_uint64( ",", &call
->user
.args
[1] );
159 dump_uint64( ",", &call
->user
.args
[2] );
160 fputc( '}', stderr
);
163 dump_timeout( "APC_TIMER,time=", &call
->timer
.time
);
164 dump_uint64( ",arg=", &call
->timer
.arg
);
167 dump_uint64( "APC_ASYNC_IO,user=", &call
->async_io
.user
);
168 dump_uint64( ",sb=", &call
->async_io
.sb
);
169 fprintf( stderr
, ",status=%s", get_status_name(call
->async_io
.status
) );
171 case APC_VIRTUAL_ALLOC
:
172 dump_uint64( "APC_VIRTUAL_ALLOC,addr==", &call
->virtual_alloc
.addr
);
173 dump_uint64( ",size=", &call
->virtual_alloc
.size
);
174 fprintf( stderr
, ",zero_bits=%u,op_type=%x,prot=%x",
175 call
->virtual_alloc
.zero_bits
, call
->virtual_alloc
.op_type
,
176 call
->virtual_alloc
.prot
);
178 case APC_VIRTUAL_FREE
:
179 dump_uint64( "APC_VIRTUAL_FREE,addr=", &call
->virtual_free
.addr
);
180 dump_uint64( ",size=", &call
->virtual_free
.size
);
181 fprintf( stderr
, ",op_type=%x", call
->virtual_free
.op_type
);
183 case APC_VIRTUAL_QUERY
:
184 dump_uint64( "APC_VIRTUAL_QUERY,addr=", &call
->virtual_query
.addr
);
186 case APC_VIRTUAL_PROTECT
:
187 dump_uint64( "APC_VIRTUAL_PROTECT,addr=", &call
->virtual_protect
.addr
);
188 dump_uint64( ",size=", &call
->virtual_protect
.size
);
189 fprintf( stderr
, ",prot=%x", call
->virtual_protect
.prot
);
191 case APC_VIRTUAL_FLUSH
:
192 dump_uint64( "APC_VIRTUAL_FLUSH,addr=", &call
->virtual_flush
.addr
);
193 dump_uint64( ",size=", &call
->virtual_flush
.size
);
195 case APC_VIRTUAL_LOCK
:
196 dump_uint64( "APC_VIRTUAL_LOCK,addr=", &call
->virtual_lock
.addr
);
197 dump_uint64( ",size=", &call
->virtual_lock
.size
);
199 case APC_VIRTUAL_UNLOCK
:
200 dump_uint64( "APC_VIRTUAL_UNLOCK,addr=", &call
->virtual_unlock
.addr
);
201 dump_uint64( ",size=", &call
->virtual_unlock
.size
);
204 fprintf( stderr
, "APC_MAP_VIEW,handle=%04x", call
->map_view
.handle
);
205 dump_uint64( ",addr=", &call
->map_view
.addr
);
206 dump_uint64( ",size=", &call
->map_view
.size
);
207 dump_uint64( ",offset=", &call
->map_view
.offset
);
208 fprintf( stderr
, ",zero_bits=%u,alloc_type=%x,prot=%x",
209 call
->map_view
.zero_bits
, call
->map_view
.alloc_type
, call
->map_view
.prot
);
212 dump_uint64( "APC_UNMAP_VIEW,addr=", &call
->unmap_view
.addr
);
214 case APC_CREATE_THREAD
:
215 dump_uint64( "APC_CREATE_THREAD,func=", &call
->create_thread
.func
);
216 dump_uint64( ",arg=", &call
->create_thread
.arg
);
217 dump_uint64( ",reserve=", &call
->create_thread
.reserve
);
218 dump_uint64( ",commit=", &call
->create_thread
.commit
);
219 fprintf( stderr
, ",suspend=%u", call
->create_thread
.suspend
);
222 fprintf( stderr
, "type=%u", call
->type
);
225 fputc( '}', stderr
);
228 static void dump_apc_result( const char *prefix
, const apc_result_t
*result
)
230 fprintf( stderr
, "%s{", prefix
);
236 fprintf( stderr
, "APC_ASYNC_IO,status=%s,total=%u",
237 get_status_name( result
->async_io
.status
), result
->async_io
.total
);
239 case APC_VIRTUAL_ALLOC
:
240 fprintf( stderr
, "APC_VIRTUAL_ALLOC,status=%s",
241 get_status_name( result
->virtual_alloc
.status
));
242 dump_uint64( ",addr=", &result
->virtual_alloc
.addr
);
243 dump_uint64( ",size=", &result
->virtual_alloc
.size
);
245 case APC_VIRTUAL_FREE
:
246 fprintf( stderr
, "APC_VIRTUAL_FREE,status=%s",
247 get_status_name( result
->virtual_free
.status
));
248 dump_uint64( ",addr=", &result
->virtual_free
.addr
);
249 dump_uint64( ",size=", &result
->virtual_free
.size
);
251 case APC_VIRTUAL_QUERY
:
252 fprintf( stderr
, "APC_VIRTUAL_QUERY,status=%s",
253 get_status_name( result
->virtual_query
.status
));
254 dump_uint64( ",base=", &result
->virtual_query
.base
);
255 dump_uint64( ",alloc_base=", &result
->virtual_query
.alloc_base
);
256 dump_uint64( ",size=", &result
->virtual_query
.size
);
257 fprintf( stderr
, ",state=%x,prot=%x,alloc_prot=%x,alloc_type=%x",
258 result
->virtual_query
.state
, result
->virtual_query
.prot
,
259 result
->virtual_query
.alloc_prot
, result
->virtual_query
.alloc_type
);
261 case APC_VIRTUAL_PROTECT
:
262 fprintf( stderr
, "APC_VIRTUAL_PROTECT,status=%s",
263 get_status_name( result
->virtual_protect
.status
));
264 dump_uint64( ",addr=", &result
->virtual_protect
.addr
);
265 dump_uint64( ",size=", &result
->virtual_protect
.size
);
266 fprintf( stderr
, ",prot=%x", result
->virtual_protect
.prot
);
268 case APC_VIRTUAL_FLUSH
:
269 fprintf( stderr
, "APC_VIRTUAL_FLUSH,status=%s",
270 get_status_name( result
->virtual_flush
.status
));
271 dump_uint64( ",addr=", &result
->virtual_flush
.addr
);
272 dump_uint64( ",size=", &result
->virtual_flush
.size
);
274 case APC_VIRTUAL_LOCK
:
275 fprintf( stderr
, "APC_VIRTUAL_LOCK,status=%s",
276 get_status_name( result
->virtual_lock
.status
));
277 dump_uint64( ",addr=", &result
->virtual_lock
.addr
);
278 dump_uint64( ",size=", &result
->virtual_lock
.size
);
280 case APC_VIRTUAL_UNLOCK
:
281 fprintf( stderr
, "APC_VIRTUAL_UNLOCK,status=%s",
282 get_status_name( result
->virtual_unlock
.status
));
283 dump_uint64( ",addr=", &result
->virtual_unlock
.addr
);
284 dump_uint64( ",size=", &result
->virtual_unlock
.size
);
287 fprintf( stderr
, "APC_MAP_VIEW,status=%s",
288 get_status_name( result
->map_view
.status
));
289 dump_uint64( ",addr=", &result
->map_view
.addr
);
290 dump_uint64( ",size=", &result
->map_view
.size
);
293 fprintf( stderr
, "APC_UNMAP_VIEW,status=%s",
294 get_status_name( result
->unmap_view
.status
) );
296 case APC_CREATE_THREAD
:
297 fprintf( stderr
, "APC_CREATE_THREAD,status=%s,tid=%04x,handle=%04x",
298 get_status_name( result
->create_thread
.status
),
299 result
->create_thread
.tid
, result
->create_thread
.handle
);
302 fprintf( stderr
, "type=%u", result
->type
);
305 fputc( '}', stderr
);
308 static void dump_async_data( const char *prefix
, const async_data_t
*data
)
310 fprintf( stderr
, "%s{handle=%04x,event=%04x", prefix
, data
->handle
, data
->event
);
311 dump_uint64( ",iosb=", &data
->iosb
);
312 dump_uint64( ",user=", &data
->user
);
313 dump_uint64( ",apc=", &data
->apc
);
314 dump_uint64( ",apc_context=", &data
->apc_context
);
315 fputc( '}', stderr
);
318 static void dump_irp_params( const char *prefix
, const irp_params_t
*data
)
323 fprintf( stderr
, "%s{major=CREATE,access=%08x,sharing=%08x,options=%08x",
324 prefix
, data
->create
.access
, data
->create
.sharing
, data
->create
.options
);
325 dump_uint64( ",device=", &data
->create
.device
);
326 fputc( '}', stderr
);
329 fprintf( stderr
, "%s{major=CLOSE", prefix
);
330 dump_uint64( ",file=", &data
->close
.file
);
331 fputc( '}', stderr
);
334 fprintf( stderr
, "%s{major=READ,key=%08x", prefix
, data
->read
.key
);
335 dump_uint64( ",pos=", &data
->read
.pos
);
336 dump_uint64( ",file=", &data
->read
.file
);
337 fputc( '}', stderr
);
340 fprintf( stderr
, "%s{major=WRITE,key=%08x", prefix
, data
->write
.key
);
341 dump_uint64( ",pos=", &data
->write
.pos
);
342 dump_uint64( ",file=", &data
->write
.file
);
343 fputc( '}', stderr
);
345 case IRP_MJ_FLUSH_BUFFERS
:
346 fprintf( stderr
, "%s{major=FLUSH_BUFFERS", prefix
);
347 dump_uint64( ",file=", &data
->flush
.file
);
348 fputc( '}', stderr
);
350 case IRP_MJ_DEVICE_CONTROL
:
351 fprintf( stderr
, "%s{major=DEVICE_CONTROL", prefix
);
352 dump_ioctl_code( ",code=", &data
->ioctl
.code
);
353 dump_uint64( ",file=", &data
->ioctl
.file
);
354 fputc( '}', stderr
);
356 case IRP_MJ_MAXIMUM_FUNCTION
+ 1: /* invalid */
357 fprintf( stderr
, "%s{}", prefix
);
360 fprintf( stderr
, "%s{major=%u}", prefix
, data
->major
);
365 static void dump_hw_input( const char *prefix
, const hw_input_t
*input
)
370 fprintf( stderr
, "%s{type=MOUSE,x=%d,y=%d,data=%08x,flags=%08x,time=%u",
371 prefix
, input
->mouse
.x
, input
->mouse
.y
, input
->mouse
.data
, input
->mouse
.flags
,
373 dump_uint64( ",info=", &input
->mouse
.info
);
374 fputc( '}', stderr
);
377 fprintf( stderr
, "%s{type=KEYBOARD,vkey=%04hx,scan=%04hx,flags=%08x,time=%u",
378 prefix
, input
->kbd
.vkey
, input
->kbd
.scan
, input
->kbd
.flags
, input
->kbd
.time
);
379 dump_uint64( ",info=", &input
->kbd
.info
);
380 fputc( '}', stderr
);
383 fprintf( stderr
, "%s{type=HARDWARE,msg=%04x", prefix
, input
->hw
.msg
);
384 dump_uint64( ",lparam=", &input
->hw
.lparam
);
385 fputc( '}', stderr
);
388 fprintf( stderr
, "%s{type=%04x}", prefix
, input
->type
);
393 static void dump_luid( const char *prefix
, const luid_t
*luid
)
395 fprintf( stderr
, "%s%d.%u", prefix
, luid
->high_part
, luid
->low_part
);
398 static void dump_varargs_ints( const char *prefix
, data_size_t size
)
400 const int *data
= cur_data
;
401 data_size_t len
= size
/ sizeof(*data
);
403 fprintf( stderr
,"%s{", prefix
);
406 fprintf( stderr
, "%d", *data
++ );
407 if (--len
) fputc( ',', stderr
);
409 fputc( '}', stderr
);
413 static void dump_varargs_uints( const char *prefix
, data_size_t size
)
415 const unsigned int *data
= cur_data
;
417 dump_uints( prefix
, data
, size
/ sizeof(*data
) );
421 static void dump_varargs_uints64( const char *prefix
, data_size_t size
)
423 const unsigned __int64
*data
= cur_data
;
424 data_size_t len
= size
/ sizeof(*data
);
426 fprintf( stderr
,"%s{", prefix
);
429 dump_uint64( "", data
++ );
430 if (--len
) fputc( ',', stderr
);
432 fputc( '}', stderr
);
436 static void dump_varargs_apc_result( const char *prefix
, data_size_t size
)
438 const apc_result_t
*result
= cur_data
;
440 if (size
>= sizeof(*result
))
442 dump_apc_result( prefix
, result
);
443 size
= sizeof(*result
);
448 static void dump_varargs_select_op( const char *prefix
, data_size_t size
)
454 fprintf( stderr
, "%s{}", prefix
);
457 memset( &data
, 0, sizeof(data
) );
458 memcpy( &data
, cur_data
, min( size
, sizeof(data
) ));
460 fprintf( stderr
, "%s{", prefix
);
464 fprintf( stderr
, "NONE" );
467 case SELECT_WAIT_ALL
:
468 fprintf( stderr
, "%s", data
.op
== SELECT_WAIT
? "WAIT" : "WAIT_ALL" );
469 if (size
> offsetof( select_op_t
, wait
.handles
))
470 dump_handles( ",handles=", data
.wait
.handles
,
471 min( size
, sizeof(data
.wait
) ) - offsetof( select_op_t
, wait
.handles
));
473 case SELECT_SIGNAL_AND_WAIT
:
474 fprintf( stderr
, "SIGNAL_AND_WAIT,signal=%04x,wait=%04x",
475 data
.signal_and_wait
.signal
, data
.signal_and_wait
.wait
);
477 case SELECT_KEYED_EVENT_WAIT
:
478 case SELECT_KEYED_EVENT_RELEASE
:
479 fprintf( stderr
, "KEYED_EVENT_%s,handle=%04x",
480 data
.op
== SELECT_KEYED_EVENT_WAIT
? "WAIT" : "RELEASE",
481 data
.keyed_event
.handle
);
482 dump_uint64( ",key=", &data
.keyed_event
.key
);
485 fprintf( stderr
, "op=%u", data
.op
);
488 fputc( '}', stderr
);
492 static void dump_varargs_user_handles( const char *prefix
, data_size_t size
)
494 const user_handle_t
*data
= cur_data
;
495 data_size_t len
= size
/ sizeof(*data
);
497 fprintf( stderr
,"%s{", prefix
);
500 fprintf( stderr
, "%08x", *data
++ );
501 if (--len
) fputc( ',', stderr
);
503 fputc( '}', stderr
);
507 static void dump_varargs_bytes( const char *prefix
, data_size_t size
)
509 const unsigned char *data
= cur_data
;
510 data_size_t len
= min( 1024, size
);
512 fprintf( stderr
,"%s{", prefix
);
515 fprintf( stderr
, "%02x", *data
++ );
516 if (--len
) fputc( ',', stderr
);
518 if (size
> 1024) fprintf( stderr
, "...(total %u)", size
);
519 fputc( '}', stderr
);
523 static void dump_varargs_string( const char *prefix
, data_size_t size
)
525 fprintf( stderr
, "%s\"%.*s\"", prefix
, (int)size
, (const char *)cur_data
);
529 static void dump_varargs_unicode_str( const char *prefix
, data_size_t size
)
531 fprintf( stderr
, "%sL\"", prefix
);
532 dump_strW( cur_data
, size
/ sizeof(WCHAR
), stderr
, "\"\"" );
533 fputc( '\"', stderr
);
537 static void dump_varargs_context( const char *prefix
, data_size_t size
)
539 const context_t
*context
= cur_data
;
545 fprintf( stderr
, "%s{}", prefix
);
548 size
= min( size
, sizeof(ctx
) );
549 memset( &ctx
, 0, sizeof(ctx
) );
550 memcpy( &ctx
, context
, size
);
552 fprintf( stderr
,"%s{", prefix
);
553 dump_cpu_type( "cpu=", &ctx
.cpu
);
557 if (ctx
.flags
& SERVER_CTX_CONTROL
)
558 fprintf( stderr
, ",eip=%08x,esp=%08x,ebp=%08x,eflags=%08x,cs=%04x,ss=%04x",
559 ctx
.ctl
.i386_regs
.eip
, ctx
.ctl
.i386_regs
.esp
, ctx
.ctl
.i386_regs
.ebp
,
560 ctx
.ctl
.i386_regs
.eflags
, ctx
.ctl
.i386_regs
.cs
, ctx
.ctl
.i386_regs
.ss
);
561 if (ctx
.flags
& SERVER_CTX_SEGMENTS
)
562 fprintf( stderr
, ",ds=%04x,es=%04x,fs=%04x,gs=%04x",
563 ctx
.seg
.i386_regs
.ds
, ctx
.seg
.i386_regs
.es
,
564 ctx
.seg
.i386_regs
.fs
, ctx
.seg
.i386_regs
.gs
);
565 if (ctx
.flags
& SERVER_CTX_INTEGER
)
566 fprintf( stderr
, ",eax=%08x,ebx=%08x,ecx=%08x,edx=%08x,esi=%08x,edi=%08x",
567 ctx
.integer
.i386_regs
.eax
, ctx
.integer
.i386_regs
.ebx
, ctx
.integer
.i386_regs
.ecx
,
568 ctx
.integer
.i386_regs
.edx
, ctx
.integer
.i386_regs
.esi
, ctx
.integer
.i386_regs
.edi
);
569 if (ctx
.flags
& SERVER_CTX_DEBUG_REGISTERS
)
570 fprintf( stderr
, ",dr0=%08x,dr1=%08x,dr2=%08x,dr3=%08x,dr6=%08x,dr7=%08x",
571 ctx
.debug
.i386_regs
.dr0
, ctx
.debug
.i386_regs
.dr1
, ctx
.debug
.i386_regs
.dr2
,
572 ctx
.debug
.i386_regs
.dr3
, ctx
.debug
.i386_regs
.dr6
, ctx
.debug
.i386_regs
.dr7
);
573 if (ctx
.flags
& SERVER_CTX_FLOATING_POINT
)
575 fprintf( stderr
, ",fp.ctrl=%08x,fp.status=%08x,fp.tag=%08x,fp.err_off=%08x,fp.err_sel=%08x",
576 ctx
.fp
.i386_regs
.ctrl
, ctx
.fp
.i386_regs
.status
, ctx
.fp
.i386_regs
.tag
,
577 ctx
.fp
.i386_regs
.err_off
, ctx
.fp
.i386_regs
.err_sel
);
578 fprintf( stderr
, ",fp.data_off=%08x,fp.data_sel=%08x,fp.cr0npx=%08x",
579 ctx
.fp
.i386_regs
.data_off
, ctx
.fp
.i386_regs
.data_sel
, ctx
.fp
.i386_regs
.cr0npx
);
580 for (i
= 0; i
< 8; i
++)
583 memcpy( ®
, &ctx
.fp
.i386_regs
.regs
[10 * i
], 10 );
584 fprintf( stderr
, ",fp.reg%u=%Lg", i
, reg
);
587 if (ctx
.flags
& SERVER_CTX_EXTENDED_REGISTERS
)
588 dump_uints( ",extended=", (const unsigned int *)ctx
.ext
.i386_regs
,
589 sizeof(ctx
.ext
.i386_regs
) / sizeof(int) );
592 if (ctx
.flags
& SERVER_CTX_CONTROL
)
594 dump_uint64( ",rip=", &ctx
.ctl
.x86_64_regs
.rip
);
595 dump_uint64( ",rbp=", &ctx
.ctl
.x86_64_regs
.rbp
);
596 dump_uint64( ",rsp=", &ctx
.ctl
.x86_64_regs
.rsp
);
597 fprintf( stderr
, ",cs=%04x,ss=%04x,flags=%08x",
598 ctx
.ctl
.x86_64_regs
.cs
, ctx
.ctl
.x86_64_regs
.ss
, ctx
.ctl
.x86_64_regs
.flags
);
600 if (ctx
.flags
& SERVER_CTX_INTEGER
)
602 dump_uint64( ",rax=", &ctx
.integer
.x86_64_regs
.rax
);
603 dump_uint64( ",rbx=", &ctx
.integer
.x86_64_regs
.rbx
);
604 dump_uint64( ",rcx=", &ctx
.integer
.x86_64_regs
.rcx
);
605 dump_uint64( ",rdx=", &ctx
.integer
.x86_64_regs
.rdx
);
606 dump_uint64( ",rsi=", &ctx
.integer
.x86_64_regs
.rsi
);
607 dump_uint64( ",rdi=", &ctx
.integer
.x86_64_regs
.rdi
);
608 dump_uint64( ",r8=", &ctx
.integer
.x86_64_regs
.r8
);
609 dump_uint64( ",r9=", &ctx
.integer
.x86_64_regs
.r9
);
610 dump_uint64( ",r10=", &ctx
.integer
.x86_64_regs
.r10
);
611 dump_uint64( ",r11=", &ctx
.integer
.x86_64_regs
.r11
);
612 dump_uint64( ",r12=", &ctx
.integer
.x86_64_regs
.r12
);
613 dump_uint64( ",r13=", &ctx
.integer
.x86_64_regs
.r13
);
614 dump_uint64( ",r14=", &ctx
.integer
.x86_64_regs
.r14
);
615 dump_uint64( ",r15=", &ctx
.integer
.x86_64_regs
.r15
);
617 if (ctx
.flags
& SERVER_CTX_SEGMENTS
)
618 fprintf( stderr
, ",ds=%04x,es=%04x,fs=%04x,gs=%04x",
619 ctx
.seg
.x86_64_regs
.ds
, ctx
.seg
.x86_64_regs
.es
,
620 ctx
.seg
.x86_64_regs
.fs
, ctx
.seg
.x86_64_regs
.gs
);
621 if (ctx
.flags
& SERVER_CTX_DEBUG_REGISTERS
)
623 dump_uint64( ",dr0=", &ctx
.debug
.x86_64_regs
.dr0
);
624 dump_uint64( ",dr1=", &ctx
.debug
.x86_64_regs
.dr1
);
625 dump_uint64( ",dr2=", &ctx
.debug
.x86_64_regs
.dr2
);
626 dump_uint64( ",dr3=", &ctx
.debug
.x86_64_regs
.dr3
);
627 dump_uint64( ",dr6=", &ctx
.debug
.x86_64_regs
.dr6
);
628 dump_uint64( ",dr7=", &ctx
.debug
.x86_64_regs
.dr7
);
630 if (ctx
.flags
& SERVER_CTX_FLOATING_POINT
)
632 for (i
= 0; i
< 32; i
++)
633 fprintf( stderr
, ",fp%u=%08x%08x%08x%08x", i
,
634 (unsigned int)(ctx
.fp
.x86_64_regs
.fpregs
[i
].high
>> 32),
635 (unsigned int)ctx
.fp
.x86_64_regs
.fpregs
[i
].high
,
636 (unsigned int)(ctx
.fp
.x86_64_regs
.fpregs
[i
].low
>> 32),
637 (unsigned int)ctx
.fp
.x86_64_regs
.fpregs
[i
].low
);
641 if (ctx
.flags
& SERVER_CTX_CONTROL
)
642 fprintf( stderr
, ",iar=%08x,msr=%08x,ctr=%08x,lr=%08x,dar=%08x,dsisr=%08x,trap=%08x",
643 ctx
.ctl
.powerpc_regs
.iar
, ctx
.ctl
.powerpc_regs
.msr
, ctx
.ctl
.powerpc_regs
.ctr
,
644 ctx
.ctl
.powerpc_regs
.lr
, ctx
.ctl
.powerpc_regs
.dar
, ctx
.ctl
.powerpc_regs
.dsisr
,
645 ctx
.ctl
.powerpc_regs
.trap
);
646 if (ctx
.flags
& SERVER_CTX_INTEGER
)
648 for (i
= 0; i
< 32; i
++) fprintf( stderr
, ",gpr%u=%08x", i
, ctx
.integer
.powerpc_regs
.gpr
[i
] );
649 fprintf( stderr
, ",cr=%08x,xer=%08x",
650 ctx
.integer
.powerpc_regs
.cr
, ctx
.integer
.powerpc_regs
.xer
);
652 if (ctx
.flags
& SERVER_CTX_DEBUG_REGISTERS
)
653 for (i
= 0; i
< 8; i
++) fprintf( stderr
, ",dr%u=%08x", i
, ctx
.debug
.powerpc_regs
.dr
[i
] );
654 if (ctx
.flags
& SERVER_CTX_FLOATING_POINT
)
656 for (i
= 0; i
< 32; i
++) fprintf( stderr
, ",fpr%u=%g", i
, ctx
.fp
.powerpc_regs
.fpr
[i
] );
657 fprintf( stderr
, ",fpscr=%g", ctx
.fp
.powerpc_regs
.fpscr
);
661 if (ctx
.flags
& SERVER_CTX_CONTROL
)
662 fprintf( stderr
, ",sp=%08x,lr=%08x,pc=%08x,cpsr=%08x",
663 ctx
.ctl
.arm_regs
.sp
, ctx
.ctl
.arm_regs
.lr
,
664 ctx
.ctl
.arm_regs
.pc
, ctx
.ctl
.arm_regs
.cpsr
);
665 if (ctx
.flags
& SERVER_CTX_INTEGER
)
666 for (i
= 0; i
< 13; i
++) fprintf( stderr
, ",r%u=%08x", i
, ctx
.integer
.arm_regs
.r
[i
] );
667 if (ctx
.flags
& SERVER_CTX_DEBUG_REGISTERS
)
669 for (i
= 0; i
< 8; i
++)
670 fprintf( stderr
, ",bcr%u=%08x,bvr%u=%08x",
671 i
, ctx
.debug
.arm_regs
.bcr
[i
], i
, ctx
.debug
.arm_regs
.bvr
[i
] );
672 fprintf( stderr
, ",wcr0=%08x,wvr0=%08x",
673 ctx
.debug
.arm_regs
.wcr
[0], ctx
.debug
.arm_regs
.wvr
[0] );
675 if (ctx
.flags
& SERVER_CTX_FLOATING_POINT
)
677 for (i
= 0; i
< 32; i
++)
679 fprintf( stderr
, ",d%u=", i
);
680 dump_uint64( "", &ctx
.fp
.arm_regs
.d
[i
] );
682 fprintf( stderr
, ",fpscr=%08x", ctx
.fp
.arm_regs
.fpscr
);
686 if (ctx
.flags
& SERVER_CTX_CONTROL
)
688 dump_uint64( ",sp=", &ctx
.ctl
.arm64_regs
.sp
);
689 dump_uint64( ",pc=", &ctx
.ctl
.arm64_regs
.pc
);
690 dump_uint64( ",pstate=", &ctx
.ctl
.arm64_regs
.pstate
);
692 if (ctx
.flags
& SERVER_CTX_INTEGER
)
694 for (i
= 0; i
< 31; i
++)
696 fprintf( stderr
, ",x%u=", i
);
697 dump_uint64( "", &ctx
.integer
.arm64_regs
.x
[i
] );
700 if (ctx
.flags
& SERVER_CTX_DEBUG_REGISTERS
)
702 for (i
= 0; i
< 8; i
++)
704 fprintf( stderr
, ",bcr%u=%08x,bvr%u=", i
, ctx
.debug
.arm64_regs
.bcr
[i
], i
);
705 dump_uint64( "", &ctx
.debug
.arm64_regs
.bvr
[i
] );
707 for (i
= 0; i
< 2; i
++)
709 fprintf( stderr
, ",wcr%u=%08x,wvr%u=", i
, ctx
.debug
.arm64_regs
.wcr
[i
], i
);
710 dump_uint64( "", &ctx
.debug
.arm64_regs
.wvr
[i
] );
713 if (ctx
.flags
& SERVER_CTX_FLOATING_POINT
)
715 for (i
= 0; i
< 64; i
++)
717 fprintf( stderr
, ",d%u=", i
);
718 dump_uint64( "", &ctx
.fp
.arm64_regs
.d
[i
] );
720 fprintf( stderr
, ",fpcr=%08x,fpsr=%08x", ctx
.fp
.arm64_regs
.fpcr
, ctx
.fp
.arm64_regs
.fpsr
);
724 fputc( '}', stderr
);
728 static void dump_varargs_debug_event( const char *prefix
, data_size_t size
)
735 fprintf( stderr
, "%s{}", prefix
);
738 size
= min( size
, sizeof(event
) );
739 memset( &event
, 0, sizeof(event
) );
740 memcpy( &event
, cur_data
, size
);
744 case EXCEPTION_DEBUG_EVENT
:
745 fprintf( stderr
, "%s{exception,first=%d,exc_code=%08x,flags=%08x", prefix
,
746 event
.exception
.first
, event
.exception
.exc_code
, event
.exception
.flags
);
747 dump_uint64( ",record=", &event
.exception
.record
);
748 dump_uint64( ",address=", &event
.exception
.address
);
749 fprintf( stderr
, ",params={" );
750 event
.exception
.nb_params
= min( event
.exception
.nb_params
, EXCEPTION_MAXIMUM_PARAMETERS
);
751 for (i
= 0; i
< event
.exception
.nb_params
; i
++)
753 dump_uint64( "", &event
.exception
.params
[i
] );
754 if (i
< event
.exception
.nb_params
) fputc( ',', stderr
);
756 fprintf( stderr
, "}}" );
758 case CREATE_THREAD_DEBUG_EVENT
:
759 fprintf( stderr
, "%s{create_thread,thread=%04x", prefix
, event
.create_thread
.handle
);
760 dump_uint64( ",teb=", &event
.create_thread
.teb
);
761 dump_uint64( ",start=", &event
.create_thread
.start
);
762 fputc( '}', stderr
);
764 case CREATE_PROCESS_DEBUG_EVENT
:
765 fprintf( stderr
, "%s{create_process,file=%04x,process=%04x,thread=%04x", prefix
,
766 event
.create_process
.file
, event
.create_process
.process
,
767 event
.create_process
.thread
);
768 dump_uint64( ",base=", &event
.create_process
.base
);
769 fprintf( stderr
, ",offset=%d,size=%d",
770 event
.create_process
.dbg_offset
, event
.create_process
.dbg_size
);
771 dump_uint64( ",teb=", &event
.create_process
.teb
);
772 dump_uint64( ",start=", &event
.create_process
.start
);
773 dump_uint64( ",name=", &event
.create_process
.name
);
774 fprintf( stderr
, ",unicode=%d}", event
.create_process
.unicode
);
776 case EXIT_THREAD_DEBUG_EVENT
:
777 fprintf( stderr
, "%s{exit_thread,code=%d}", prefix
, event
.exit
.exit_code
);
779 case EXIT_PROCESS_DEBUG_EVENT
:
780 fprintf( stderr
, "%s{exit_process,code=%d}", prefix
, event
.exit
.exit_code
);
782 case LOAD_DLL_DEBUG_EVENT
:
783 fprintf( stderr
, "%s{load_dll,file=%04x", prefix
, event
.load_dll
.handle
);
784 dump_uint64( ",base=", &event
.load_dll
.base
);
785 fprintf( stderr
, ",offset=%d,size=%d",
786 event
.load_dll
.dbg_offset
, event
.load_dll
.dbg_size
);
787 dump_uint64( ",name=", &event
.load_dll
.name
);
788 fprintf( stderr
, ",unicode=%d}", event
.load_dll
.unicode
);
790 case UNLOAD_DLL_DEBUG_EVENT
:
791 fprintf( stderr
, "%s{unload_dll", prefix
);
792 dump_uint64( ",base=", &event
.unload_dll
.base
);
793 fputc( '}', stderr
);
795 case 0: /* zero is the code returned on timeouts */
796 fprintf( stderr
, "%s{}", prefix
);
799 fprintf( stderr
, "%s{code=??? (%d)}", prefix
, event
.code
);
805 /* dump a unicode string contained in a buffer; helper for dump_varargs_startup_info */
806 static data_size_t
dump_inline_unicode_string( const char *prefix
, data_size_t pos
, data_size_t len
, data_size_t total_size
)
808 fputs( prefix
, stderr
);
809 if (pos
>= total_size
) return pos
;
810 if (len
> total_size
- pos
) len
= total_size
- pos
;
811 len
/= sizeof(WCHAR
);
812 dump_strW( (const WCHAR
*)cur_data
+ pos
/sizeof(WCHAR
), len
, stderr
, "\"\"" );
813 return pos
+ len
* sizeof(WCHAR
);
816 static void dump_varargs_startup_info( const char *prefix
, data_size_t size
)
819 data_size_t pos
= sizeof(info
);
821 memset( &info
, 0, sizeof(info
) );
822 memcpy( &info
, cur_data
, min( size
, sizeof(info
) ));
825 "%s{debug_flags=%x,console_flags=%x,console=%04x,hstdin=%04x,hstdout=%04x,hstderr=%04x,"
826 "x=%u,y=%u,xsize=%u,ysize=%u,xchars=%u,ychars=%u,attribute=%02x,flags=%x,show=%u",
827 prefix
, info
.debug_flags
, info
.console_flags
, info
.console
,
828 info
.hstdin
, info
.hstdout
, info
.hstderr
, info
.x
, info
.y
, info
.xsize
, info
.ysize
,
829 info
.xchars
, info
.ychars
, info
.attribute
, info
.flags
, info
.show
);
830 pos
= dump_inline_unicode_string( ",curdir=L\"", pos
, info
.curdir_len
, size
);
831 pos
= dump_inline_unicode_string( "\",dllpath=L\"", pos
, info
.dllpath_len
, size
);
832 pos
= dump_inline_unicode_string( "\",imagepath=L\"", pos
, info
.imagepath_len
, size
);
833 pos
= dump_inline_unicode_string( "\",cmdline=L\"", pos
, info
.cmdline_len
, size
);
834 pos
= dump_inline_unicode_string( "\",title=L\"", pos
, info
.title_len
, size
);
835 pos
= dump_inline_unicode_string( "\",desktop=L\"", pos
, info
.desktop_len
, size
);
836 pos
= dump_inline_unicode_string( "\",shellinfo=L\"", pos
, info
.shellinfo_len
, size
);
837 pos
= dump_inline_unicode_string( "\",runtime=L\"", pos
, info
.runtime_len
, size
);
838 fprintf( stderr
, "\"}" );
842 static void dump_varargs_input_records( const char *prefix
, data_size_t size
)
844 const INPUT_RECORD
*rec
= cur_data
;
845 data_size_t len
= size
/ sizeof(*rec
);
847 fprintf( stderr
,"%s{", prefix
);
850 fprintf( stderr
, "{%04x,...}", rec
->EventType
);
852 if (--len
) fputc( ',', stderr
);
854 fputc( '}', stderr
);
858 static void dump_varargs_rectangles( const char *prefix
, data_size_t size
)
860 const rectangle_t
*rect
= cur_data
;
861 data_size_t len
= size
/ sizeof(*rect
);
863 fprintf( stderr
,"%s{", prefix
);
866 dump_rectangle( "", rect
++ );
867 if (--len
) fputc( ',', stderr
);
869 fputc( '}', stderr
);
873 static void dump_varargs_message_data( const char *prefix
, data_size_t size
)
875 /* FIXME: dump the structured data */
876 dump_varargs_bytes( prefix
, size
);
879 static void dump_varargs_properties( const char *prefix
, data_size_t size
)
881 const property_data_t
*prop
= cur_data
;
882 data_size_t len
= size
/ sizeof(*prop
);
884 fprintf( stderr
,"%s{", prefix
);
887 fprintf( stderr
, "{atom=%04x,str=%d", prop
->atom
, prop
->string
);
888 dump_uint64( ",data=", &prop
->data
);
889 fputc( '}', stderr
);
891 if (--len
) fputc( ',', stderr
);
893 fputc( '}', stderr
);
897 static void dump_varargs_LUID_AND_ATTRIBUTES( const char *prefix
, data_size_t size
)
899 const LUID_AND_ATTRIBUTES
*lat
= cur_data
;
900 data_size_t len
= size
/ sizeof(*lat
);
902 fprintf( stderr
,"%s{", prefix
);
905 fprintf( stderr
, "{luid=%08x%08x,attr=%x}",
906 lat
->Luid
.HighPart
, lat
->Luid
.LowPart
, lat
->Attributes
);
908 if (--len
) fputc( ',', stderr
);
910 fputc( '}', stderr
);
914 static void dump_inline_sid( const char *prefix
, const SID
*sid
, data_size_t size
)
919 if ((FIELD_OFFSET(SID
, SubAuthority
[0]) > size
) ||
920 (FIELD_OFFSET(SID
, SubAuthority
[sid
->SubAuthorityCount
]) > size
))
922 fprintf( stderr
, "<invalid sid>" );
926 fprintf( stderr
,"%s{", prefix
);
927 fprintf( stderr
, "S-%u-%u", sid
->Revision
, MAKELONG(
928 MAKEWORD( sid
->IdentifierAuthority
.Value
[5],
929 sid
->IdentifierAuthority
.Value
[4] ),
930 MAKEWORD( sid
->IdentifierAuthority
.Value
[3],
931 sid
->IdentifierAuthority
.Value
[2] ) ) );
932 for (i
= 0; i
< sid
->SubAuthorityCount
; i
++)
933 fprintf( stderr
, "-%u", sid
->SubAuthority
[i
] );
934 fputc( '}', stderr
);
937 static void dump_varargs_SID( const char *prefix
, data_size_t size
)
939 const SID
*sid
= cur_data
;
940 dump_inline_sid( prefix
, sid
, size
);
944 static void dump_inline_acl( const char *prefix
, const ACL
*acl
, data_size_t size
)
946 const ACE_HEADER
*ace
;
949 fprintf( stderr
,"%s{", prefix
);
952 if (size
< sizeof(ACL
))
954 fprintf( stderr
, "<invalid acl>}" );
958 ace
= (const ACE_HEADER
*)(acl
+ 1);
959 for (i
= 0; i
< acl
->AceCount
; i
++)
961 const SID
*sid
= NULL
;
962 data_size_t sid_size
= 0;
964 if (size
< sizeof(ACE_HEADER
) || size
< ace
->AceSize
) break;
965 size
-= ace
->AceSize
;
966 if (i
!= 0) fputc( ',', stderr
);
967 fprintf( stderr
, "{AceType=" );
968 switch (ace
->AceType
)
970 case ACCESS_DENIED_ACE_TYPE
:
971 sid
= (const SID
*)&((const ACCESS_DENIED_ACE
*)ace
)->SidStart
;
972 sid_size
= ace
->AceSize
- FIELD_OFFSET(ACCESS_DENIED_ACE
, SidStart
);
973 fprintf( stderr
, "ACCESS_DENIED_ACE_TYPE,Mask=%x",
974 ((const ACCESS_DENIED_ACE
*)ace
)->Mask
);
976 case ACCESS_ALLOWED_ACE_TYPE
:
977 sid
= (const SID
*)&((const ACCESS_ALLOWED_ACE
*)ace
)->SidStart
;
978 sid_size
= ace
->AceSize
- FIELD_OFFSET(ACCESS_ALLOWED_ACE
, SidStart
);
979 fprintf( stderr
, "ACCESS_ALLOWED_ACE_TYPE,Mask=%x",
980 ((const ACCESS_ALLOWED_ACE
*)ace
)->Mask
);
982 case SYSTEM_AUDIT_ACE_TYPE
:
983 sid
= (const SID
*)&((const SYSTEM_AUDIT_ACE
*)ace
)->SidStart
;
984 sid_size
= ace
->AceSize
- FIELD_OFFSET(SYSTEM_AUDIT_ACE
, SidStart
);
985 fprintf( stderr
, "SYSTEM_AUDIT_ACE_TYPE,Mask=%x",
986 ((const SYSTEM_AUDIT_ACE
*)ace
)->Mask
);
988 case SYSTEM_ALARM_ACE_TYPE
:
989 sid
= (const SID
*)&((const SYSTEM_ALARM_ACE
*)ace
)->SidStart
;
990 sid_size
= ace
->AceSize
- FIELD_OFFSET(SYSTEM_ALARM_ACE
, SidStart
);
991 fprintf( stderr
, "SYSTEM_ALARM_ACE_TYPE,Mask=%x",
992 ((const SYSTEM_ALARM_ACE
*)ace
)->Mask
);
994 case SYSTEM_MANDATORY_LABEL_ACE_TYPE
:
995 sid
= (const SID
*)&((const SYSTEM_MANDATORY_LABEL_ACE
*)ace
)->SidStart
;
996 sid_size
= ace
->AceSize
- FIELD_OFFSET(SYSTEM_MANDATORY_LABEL_ACE
, SidStart
);
997 fprintf( stderr
, "SYSTEM_MANDATORY_LABEL_ACE_TYPE,Mask=%x",
998 ((const SYSTEM_MANDATORY_LABEL_ACE
*)ace
)->Mask
);
1001 fprintf( stderr
, "unknown<%d>", ace
->AceType
);
1004 fprintf( stderr
, ",AceFlags=%x", ace
->AceFlags
);
1006 dump_inline_sid( ",Sid=", sid
, sid_size
);
1007 ace
= (const ACE_HEADER
*)((const char *)ace
+ ace
->AceSize
);
1008 fputc( '}', stderr
);
1011 fputc( '}', stderr
);
1014 static void dump_varargs_ACL( const char *prefix
, data_size_t size
)
1016 const ACL
*acl
= cur_data
;
1017 dump_inline_acl( prefix
, acl
, size
);
1018 remove_data( size
);
1021 static void dump_inline_security_descriptor( const char *prefix
, const struct security_descriptor
*sd
, data_size_t size
)
1023 fprintf( stderr
,"%s{", prefix
);
1024 if (size
>= sizeof(struct security_descriptor
))
1026 size_t offset
= sizeof(struct security_descriptor
);
1027 fprintf( stderr
, "control=%08x", sd
->control
);
1028 if ((sd
->owner_len
> FIELD_OFFSET(SID
, SubAuthority
[255])) || (offset
+ sd
->owner_len
> size
))
1031 dump_inline_sid( ",owner=", (const SID
*)((const char *)sd
+ offset
), sd
->owner_len
);
1033 fprintf( stderr
, ",owner=<not present>" );
1034 offset
+= sd
->owner_len
;
1035 if ((sd
->group_len
> FIELD_OFFSET(SID
, SubAuthority
[255])) || (offset
+ sd
->group_len
> size
))
1038 dump_inline_sid( ",group=", (const SID
*)((const char *)sd
+ offset
), sd
->group_len
);
1040 fprintf( stderr
, ",group=<not present>" );
1041 offset
+= sd
->group_len
;
1042 if ((sd
->sacl_len
>= MAX_ACL_LEN
) || (offset
+ sd
->sacl_len
> size
))
1044 dump_inline_acl( ",sacl=", (const ACL
*)((const char *)sd
+ offset
), sd
->sacl_len
);
1045 offset
+= sd
->sacl_len
;
1046 if ((sd
->dacl_len
>= MAX_ACL_LEN
) || (offset
+ sd
->dacl_len
> size
))
1048 dump_inline_acl( ",dacl=", (const ACL
*)((const char *)sd
+ offset
), sd
->dacl_len
);
1049 offset
+= sd
->dacl_len
;
1051 fputc( '}', stderr
);
1054 static void dump_varargs_security_descriptor( const char *prefix
, data_size_t size
)
1056 const struct security_descriptor
*sd
= cur_data
;
1057 dump_inline_security_descriptor( prefix
, sd
, size
);
1058 remove_data( size
);
1061 static void dump_varargs_token_groups( const char *prefix
, data_size_t size
)
1063 const struct token_groups
*tg
= cur_data
;
1065 fprintf( stderr
,"%s{", prefix
);
1066 if (size
>= sizeof(struct token_groups
))
1068 size_t offset
= sizeof(*tg
);
1069 fprintf( stderr
, "count=%08x,", tg
->count
);
1070 if (tg
->count
* sizeof(unsigned int) <= size
)
1073 const unsigned int *attr
= (const unsigned int *)(tg
+ 1);
1075 offset
+= tg
->count
* sizeof(unsigned int);
1077 fputc( '[', stderr
);
1078 for (i
= 0; i
< tg
->count
; i
++)
1080 const SID
*sid
= (const SID
*)((const char *)cur_data
+ offset
);
1082 fputc( ',', stderr
);
1083 fputc( '{', stderr
);
1084 fprintf( stderr
, "attributes=%08x", attr
[i
] );
1085 dump_inline_sid( ",sid=", sid
, size
- offset
);
1086 if ((offset
+ FIELD_OFFSET(SID
, SubAuthority
[0]) > size
) ||
1087 (offset
+ FIELD_OFFSET(SID
, SubAuthority
[sid
->SubAuthorityCount
]) > size
))
1089 offset
+= FIELD_OFFSET(SID
, SubAuthority
[sid
->SubAuthorityCount
]);
1090 fputc( '}', stderr
);
1092 fputc( ']', stderr
);
1095 fputc( '}', stderr
);
1098 static void dump_varargs_object_attributes( const char *prefix
, data_size_t size
)
1100 const struct object_attributes
*objattr
= cur_data
;
1102 fprintf( stderr
,"%s{", prefix
);
1107 if (size
< sizeof(*objattr
) ||
1108 (size
- sizeof(*objattr
) < objattr
->sd_len
) ||
1109 (size
- sizeof(*objattr
) - objattr
->sd_len
< objattr
->name_len
))
1111 fprintf( stderr
, "***invalid***}" );
1112 remove_data( size
);
1116 fprintf( stderr
, "rootdir=%04x,attributes=%08x", objattr
->rootdir
, objattr
->attributes
);
1117 dump_inline_security_descriptor( ",sd=", (const struct security_descriptor
*)(objattr
+ 1), objattr
->sd_len
);
1118 str
= (const WCHAR
*)objattr
+ (sizeof(*objattr
) + objattr
->sd_len
) / sizeof(WCHAR
);
1119 fprintf( stderr
, ",name=L\"" );
1120 dump_strW( str
, objattr
->name_len
/ sizeof(WCHAR
), stderr
, "\"\"" );
1121 fputc( '\"', stderr
);
1122 remove_data( (sizeof(*objattr
) + (objattr
->sd_len
& ~1) + (objattr
->name_len
& ~1) + 3) & ~3 );
1124 fputc( '}', stderr
);
1127 static void dump_varargs_filesystem_event( const char *prefix
, data_size_t size
)
1129 static const char * const actions
[] = {
1141 fprintf( stderr
,"%s{", prefix
);
1144 const struct filesystem_event
*event
= cur_data
;
1145 data_size_t len
= (offsetof( struct filesystem_event
, name
[event
->len
] ) + sizeof(int)-1)
1146 / sizeof(int) * sizeof(int);
1147 if (size
< len
) break;
1148 if (event
->action
< ARRAY_SIZE( actions
) && actions
[event
->action
])
1149 fprintf( stderr
, "{action=%s", actions
[event
->action
] );
1151 fprintf( stderr
, "{action=%u", event
->action
);
1152 fprintf( stderr
, ",name=\"%.*s\"}", event
->len
, event
->name
);
1155 if (size
)fputc( ',', stderr
);
1157 fputc( '}', stderr
);
1160 static void dump_varargs_pe_image_info( const char *prefix
, data_size_t size
)
1162 pe_image_info_t info
;
1166 fprintf( stderr
, "%s{}", prefix
);
1169 memset( &info
, 0, sizeof(info
) );
1170 memcpy( &info
, cur_data
, min( size
, sizeof(info
) ));
1172 fprintf( stderr
, "%s{", prefix
);
1173 dump_uint64( "base=", &info
.base
);
1174 dump_uint64( ",entry_point=", &info
.entry_point
);
1175 dump_uint64( ",map_size=", &info
.map_size
);
1176 dump_uint64( ",stack_size=", &info
.stack_size
);
1177 dump_uint64( ",stack_commit=", &info
.stack_commit
);
1178 fprintf( stderr
, ",zerobits=%08x,subsystem=%08x,subsystem_low=%04x,subsystem_high=%04x,gp=%08x"
1179 ",image_charact=%04x,dll_charact=%04x,machine=%04x,contains_code=%u,image_flags=%02x"
1180 ",loader_flags=%08x,header_size=%08x,file_size=%08x,checksum=%08x",
1181 info
.zerobits
, info
.subsystem
, info
.subsystem_low
, info
.subsystem_high
, info
.gp
,
1182 info
.image_charact
, info
.dll_charact
, info
.machine
, info
.contains_code
, info
.image_flags
,
1183 info
.loader_flags
, info
.header_size
, info
.file_size
, info
.checksum
);
1184 dump_cpu_type( ",cpu=", &info
.cpu
);
1185 fputc( '}', stderr
);
1186 remove_data( size
);
1189 static void dump_varargs_rawinput_devices(const char *prefix
, data_size_t size
)
1191 const struct rawinput_device
*device
;
1193 fprintf( stderr
, "%s{", prefix
);
1194 while (size
>= sizeof(*device
))
1197 fprintf( stderr
, "{usage_page=%04x,usage=%04x,flags=%08x,target=%08x}",
1198 device
->usage_page
, device
->usage
, device
->flags
, device
->target
);
1199 size
-= sizeof(*device
);
1200 remove_data( sizeof(*device
) );
1201 if (size
) fputc( ',', stderr
);
1203 fputc( '}', stderr
);
1206 static void dump_varargs_handle_infos( const char *prefix
, data_size_t size
)
1208 const struct handle_info
*handle
;
1210 fprintf( stderr
, "%s{", prefix
);
1211 while (size
>= sizeof(*handle
))
1214 fprintf( stderr
, "{owner=%04x,handle=%04x,access=%08x}",
1215 handle
->owner
, handle
->handle
, handle
->access
);
1216 size
-= sizeof(*handle
);
1217 remove_data( sizeof(*handle
) );
1218 if (size
) fputc( ',', stderr
);
1220 fputc( '}', stderr
);
1223 typedef void (*dump_func
)( const void *req
);
1225 /* Everything below this line is generated automatically by tools/make_requests */
1226 /* ### make_requests begin ### */
1228 static void dump_new_process_request( const struct new_process_request
*req
)
1230 fprintf( stderr
, " inherit_all=%d", req
->inherit_all
);
1231 fprintf( stderr
, ", create_flags=%08x", req
->create_flags
);
1232 fprintf( stderr
, ", socket_fd=%d", req
->socket_fd
);
1233 fprintf( stderr
, ", exe_file=%04x", req
->exe_file
);
1234 fprintf( stderr
, ", access=%08x", req
->access
);
1235 dump_cpu_type( ", cpu=", &req
->cpu
);
1236 fprintf( stderr
, ", info_size=%u", req
->info_size
);
1237 dump_varargs_object_attributes( ", objattr=", cur_size
);
1238 dump_varargs_startup_info( ", info=", min(cur_size
,req
->info_size
) );
1239 dump_varargs_unicode_str( ", env=", cur_size
);
1242 static void dump_new_process_reply( const struct new_process_reply
*req
)
1244 fprintf( stderr
, " info=%04x", req
->info
);
1245 fprintf( stderr
, ", pid=%04x", req
->pid
);
1246 fprintf( stderr
, ", handle=%04x", req
->handle
);
1249 static void dump_exec_process_request( const struct exec_process_request
*req
)
1251 fprintf( stderr
, " socket_fd=%d", req
->socket_fd
);
1252 fprintf( stderr
, ", exe_file=%04x", req
->exe_file
);
1253 dump_cpu_type( ", cpu=", &req
->cpu
);
1256 static void dump_get_new_process_info_request( const struct get_new_process_info_request
*req
)
1258 fprintf( stderr
, " info=%04x", req
->info
);
1261 static void dump_get_new_process_info_reply( const struct get_new_process_info_reply
*req
)
1263 fprintf( stderr
, " success=%d", req
->success
);
1264 fprintf( stderr
, ", exit_code=%d", req
->exit_code
);
1267 static void dump_new_thread_request( const struct new_thread_request
*req
)
1269 fprintf( stderr
, " process=%04x", req
->process
);
1270 fprintf( stderr
, ", access=%08x", req
->access
);
1271 fprintf( stderr
, ", suspend=%d", req
->suspend
);
1272 fprintf( stderr
, ", request_fd=%d", req
->request_fd
);
1273 dump_varargs_object_attributes( ", objattr=", cur_size
);
1276 static void dump_new_thread_reply( const struct new_thread_reply
*req
)
1278 fprintf( stderr
, " tid=%04x", req
->tid
);
1279 fprintf( stderr
, ", handle=%04x", req
->handle
);
1282 static void dump_get_startup_info_request( const struct get_startup_info_request
*req
)
1286 static void dump_get_startup_info_reply( const struct get_startup_info_reply
*req
)
1288 fprintf( stderr
, " info_size=%u", req
->info_size
);
1289 dump_varargs_startup_info( ", info=", min(cur_size
,req
->info_size
) );
1290 dump_varargs_unicode_str( ", env=", cur_size
);
1293 static void dump_init_process_done_request( const struct init_process_done_request
*req
)
1295 fprintf( stderr
, " gui=%d", req
->gui
);
1296 dump_uint64( ", module=", &req
->module
);
1297 dump_uint64( ", ldt_copy=", &req
->ldt_copy
);
1298 dump_uint64( ", entry=", &req
->entry
);
1301 static void dump_init_process_done_reply( const struct init_process_done_reply
*req
)
1303 fprintf( stderr
, " suspend=%d", req
->suspend
);
1306 static void dump_init_thread_request( const struct init_thread_request
*req
)
1308 fprintf( stderr
, " unix_pid=%d", req
->unix_pid
);
1309 fprintf( stderr
, ", unix_tid=%d", req
->unix_tid
);
1310 fprintf( stderr
, ", debug_level=%d", req
->debug_level
);
1311 dump_uint64( ", teb=", &req
->teb
);
1312 dump_uint64( ", entry=", &req
->entry
);
1313 fprintf( stderr
, ", reply_fd=%d", req
->reply_fd
);
1314 fprintf( stderr
, ", wait_fd=%d", req
->wait_fd
);
1315 dump_cpu_type( ", cpu=", &req
->cpu
);
1318 static void dump_init_thread_reply( const struct init_thread_reply
*req
)
1320 fprintf( stderr
, " pid=%04x", req
->pid
);
1321 fprintf( stderr
, ", tid=%04x", req
->tid
);
1322 dump_timeout( ", server_start=", &req
->server_start
);
1323 fprintf( stderr
, ", info_size=%u", req
->info_size
);
1324 fprintf( stderr
, ", version=%d", req
->version
);
1325 fprintf( stderr
, ", all_cpus=%08x", req
->all_cpus
);
1326 fprintf( stderr
, ", suspend=%d", req
->suspend
);
1329 static void dump_terminate_process_request( const struct terminate_process_request
*req
)
1331 fprintf( stderr
, " handle=%04x", req
->handle
);
1332 fprintf( stderr
, ", exit_code=%d", req
->exit_code
);
1335 static void dump_terminate_process_reply( const struct terminate_process_reply
*req
)
1337 fprintf( stderr
, " self=%d", req
->self
);
1340 static void dump_terminate_thread_request( const struct terminate_thread_request
*req
)
1342 fprintf( stderr
, " handle=%04x", req
->handle
);
1343 fprintf( stderr
, ", exit_code=%d", req
->exit_code
);
1346 static void dump_terminate_thread_reply( const struct terminate_thread_reply
*req
)
1348 fprintf( stderr
, " self=%d", req
->self
);
1349 fprintf( stderr
, ", last=%d", req
->last
);
1352 static void dump_get_process_info_request( const struct get_process_info_request
*req
)
1354 fprintf( stderr
, " handle=%04x", req
->handle
);
1357 static void dump_get_process_info_reply( const struct get_process_info_reply
*req
)
1359 fprintf( stderr
, " pid=%04x", req
->pid
);
1360 fprintf( stderr
, ", ppid=%04x", req
->ppid
);
1361 dump_uint64( ", affinity=", &req
->affinity
);
1362 dump_uint64( ", peb=", &req
->peb
);
1363 dump_timeout( ", start_time=", &req
->start_time
);
1364 dump_timeout( ", end_time=", &req
->end_time
);
1365 fprintf( stderr
, ", exit_code=%d", req
->exit_code
);
1366 fprintf( stderr
, ", priority=%d", req
->priority
);
1367 dump_cpu_type( ", cpu=", &req
->cpu
);
1368 fprintf( stderr
, ", debugger_present=%d", req
->debugger_present
);
1369 fprintf( stderr
, ", debug_children=%d", req
->debug_children
);
1372 static void dump_get_process_vm_counters_request( const struct get_process_vm_counters_request
*req
)
1374 fprintf( stderr
, " handle=%04x", req
->handle
);
1377 static void dump_get_process_vm_counters_reply( const struct get_process_vm_counters_reply
*req
)
1379 dump_uint64( " peak_virtual_size=", &req
->peak_virtual_size
);
1380 dump_uint64( ", virtual_size=", &req
->virtual_size
);
1381 dump_uint64( ", peak_working_set_size=", &req
->peak_working_set_size
);
1382 dump_uint64( ", working_set_size=", &req
->working_set_size
);
1383 dump_uint64( ", pagefile_usage=", &req
->pagefile_usage
);
1384 dump_uint64( ", peak_pagefile_usage=", &req
->peak_pagefile_usage
);
1387 static void dump_set_process_info_request( const struct set_process_info_request
*req
)
1389 fprintf( stderr
, " handle=%04x", req
->handle
);
1390 fprintf( stderr
, ", mask=%d", req
->mask
);
1391 fprintf( stderr
, ", priority=%d", req
->priority
);
1392 dump_uint64( ", affinity=", &req
->affinity
);
1395 static void dump_get_thread_info_request( const struct get_thread_info_request
*req
)
1397 fprintf( stderr
, " handle=%04x", req
->handle
);
1398 fprintf( stderr
, ", tid_in=%04x", req
->tid_in
);
1401 static void dump_get_thread_info_reply( const struct get_thread_info_reply
*req
)
1403 fprintf( stderr
, " pid=%04x", req
->pid
);
1404 fprintf( stderr
, ", tid=%04x", req
->tid
);
1405 dump_uint64( ", teb=", &req
->teb
);
1406 dump_uint64( ", entry_point=", &req
->entry_point
);
1407 dump_uint64( ", affinity=", &req
->affinity
);
1408 fprintf( stderr
, ", exit_code=%d", req
->exit_code
);
1409 fprintf( stderr
, ", priority=%d", req
->priority
);
1410 fprintf( stderr
, ", last=%d", req
->last
);
1413 static void dump_get_thread_times_request( const struct get_thread_times_request
*req
)
1415 fprintf( stderr
, " handle=%04x", req
->handle
);
1418 static void dump_get_thread_times_reply( const struct get_thread_times_reply
*req
)
1420 dump_timeout( " creation_time=", &req
->creation_time
);
1421 dump_timeout( ", exit_time=", &req
->exit_time
);
1424 static void dump_set_thread_info_request( const struct set_thread_info_request
*req
)
1426 fprintf( stderr
, " handle=%04x", req
->handle
);
1427 fprintf( stderr
, ", mask=%d", req
->mask
);
1428 fprintf( stderr
, ", priority=%d", req
->priority
);
1429 dump_uint64( ", affinity=", &req
->affinity
);
1430 dump_uint64( ", entry_point=", &req
->entry_point
);
1431 fprintf( stderr
, ", token=%04x", req
->token
);
1434 static void dump_get_dll_info_request( const struct get_dll_info_request
*req
)
1436 fprintf( stderr
, " handle=%04x", req
->handle
);
1437 dump_uint64( ", base_address=", &req
->base_address
);
1440 static void dump_get_dll_info_reply( const struct get_dll_info_reply
*req
)
1442 dump_uint64( " entry_point=", &req
->entry_point
);
1443 fprintf( stderr
, ", filename_len=%u", req
->filename_len
);
1444 dump_varargs_unicode_str( ", filename=", cur_size
);
1447 static void dump_suspend_thread_request( const struct suspend_thread_request
*req
)
1449 fprintf( stderr
, " handle=%04x", req
->handle
);
1452 static void dump_suspend_thread_reply( const struct suspend_thread_reply
*req
)
1454 fprintf( stderr
, " count=%d", req
->count
);
1457 static void dump_resume_thread_request( const struct resume_thread_request
*req
)
1459 fprintf( stderr
, " handle=%04x", req
->handle
);
1462 static void dump_resume_thread_reply( const struct resume_thread_reply
*req
)
1464 fprintf( stderr
, " count=%d", req
->count
);
1467 static void dump_load_dll_request( const struct load_dll_request
*req
)
1469 fprintf( stderr
, " dbg_offset=%u", req
->dbg_offset
);
1470 dump_uint64( ", base=", &req
->base
);
1471 dump_uint64( ", name=", &req
->name
);
1472 fprintf( stderr
, ", dbg_size=%u", req
->dbg_size
);
1473 dump_varargs_unicode_str( ", filename=", cur_size
);
1476 static void dump_unload_dll_request( const struct unload_dll_request
*req
)
1478 dump_uint64( " base=", &req
->base
);
1481 static void dump_queue_apc_request( const struct queue_apc_request
*req
)
1483 fprintf( stderr
, " handle=%04x", req
->handle
);
1484 dump_apc_call( ", call=", &req
->call
);
1487 static void dump_queue_apc_reply( const struct queue_apc_reply
*req
)
1489 fprintf( stderr
, " handle=%04x", req
->handle
);
1490 fprintf( stderr
, ", self=%d", req
->self
);
1493 static void dump_get_apc_result_request( const struct get_apc_result_request
*req
)
1495 fprintf( stderr
, " handle=%04x", req
->handle
);
1498 static void dump_get_apc_result_reply( const struct get_apc_result_reply
*req
)
1500 dump_apc_result( " result=", &req
->result
);
1503 static void dump_close_handle_request( const struct close_handle_request
*req
)
1505 fprintf( stderr
, " handle=%04x", req
->handle
);
1508 static void dump_set_handle_info_request( const struct set_handle_info_request
*req
)
1510 fprintf( stderr
, " handle=%04x", req
->handle
);
1511 fprintf( stderr
, ", flags=%d", req
->flags
);
1512 fprintf( stderr
, ", mask=%d", req
->mask
);
1515 static void dump_set_handle_info_reply( const struct set_handle_info_reply
*req
)
1517 fprintf( stderr
, " old_flags=%d", req
->old_flags
);
1520 static void dump_dup_handle_request( const struct dup_handle_request
*req
)
1522 fprintf( stderr
, " src_process=%04x", req
->src_process
);
1523 fprintf( stderr
, ", src_handle=%04x", req
->src_handle
);
1524 fprintf( stderr
, ", dst_process=%04x", req
->dst_process
);
1525 fprintf( stderr
, ", access=%08x", req
->access
);
1526 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1527 fprintf( stderr
, ", options=%08x", req
->options
);
1530 static void dump_dup_handle_reply( const struct dup_handle_reply
*req
)
1532 fprintf( stderr
, " handle=%04x", req
->handle
);
1533 fprintf( stderr
, ", self=%d", req
->self
);
1534 fprintf( stderr
, ", closed=%d", req
->closed
);
1537 static void dump_open_process_request( const struct open_process_request
*req
)
1539 fprintf( stderr
, " pid=%04x", req
->pid
);
1540 fprintf( stderr
, ", access=%08x", req
->access
);
1541 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1544 static void dump_open_process_reply( const struct open_process_reply
*req
)
1546 fprintf( stderr
, " handle=%04x", req
->handle
);
1549 static void dump_open_thread_request( const struct open_thread_request
*req
)
1551 fprintf( stderr
, " tid=%04x", req
->tid
);
1552 fprintf( stderr
, ", access=%08x", req
->access
);
1553 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1556 static void dump_open_thread_reply( const struct open_thread_reply
*req
)
1558 fprintf( stderr
, " handle=%04x", req
->handle
);
1561 static void dump_select_request( const struct select_request
*req
)
1563 fprintf( stderr
, " flags=%d", req
->flags
);
1564 dump_uint64( ", cookie=", &req
->cookie
);
1565 dump_timeout( ", timeout=", &req
->timeout
);
1566 fprintf( stderr
, ", prev_apc=%04x", req
->prev_apc
);
1567 dump_varargs_apc_result( ", result=", cur_size
);
1568 dump_varargs_select_op( ", data=", cur_size
);
1571 static void dump_select_reply( const struct select_reply
*req
)
1573 dump_timeout( " timeout=", &req
->timeout
);
1574 dump_apc_call( ", call=", &req
->call
);
1575 fprintf( stderr
, ", apc_handle=%04x", req
->apc_handle
);
1578 static void dump_create_event_request( const struct create_event_request
*req
)
1580 fprintf( stderr
, " access=%08x", req
->access
);
1581 fprintf( stderr
, ", manual_reset=%d", req
->manual_reset
);
1582 fprintf( stderr
, ", initial_state=%d", req
->initial_state
);
1583 dump_varargs_object_attributes( ", objattr=", cur_size
);
1586 static void dump_create_event_reply( const struct create_event_reply
*req
)
1588 fprintf( stderr
, " handle=%04x", req
->handle
);
1591 static void dump_event_op_request( const struct event_op_request
*req
)
1593 fprintf( stderr
, " handle=%04x", req
->handle
);
1594 fprintf( stderr
, ", op=%d", req
->op
);
1597 static void dump_query_event_request( const struct query_event_request
*req
)
1599 fprintf( stderr
, " handle=%04x", req
->handle
);
1602 static void dump_query_event_reply( const struct query_event_reply
*req
)
1604 fprintf( stderr
, " manual_reset=%d", req
->manual_reset
);
1605 fprintf( stderr
, ", state=%d", req
->state
);
1608 static void dump_open_event_request( const struct open_event_request
*req
)
1610 fprintf( stderr
, " access=%08x", req
->access
);
1611 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1612 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
1613 dump_varargs_unicode_str( ", name=", cur_size
);
1616 static void dump_open_event_reply( const struct open_event_reply
*req
)
1618 fprintf( stderr
, " handle=%04x", req
->handle
);
1621 static void dump_create_keyed_event_request( const struct create_keyed_event_request
*req
)
1623 fprintf( stderr
, " access=%08x", req
->access
);
1624 dump_varargs_object_attributes( ", objattr=", cur_size
);
1627 static void dump_create_keyed_event_reply( const struct create_keyed_event_reply
*req
)
1629 fprintf( stderr
, " handle=%04x", req
->handle
);
1632 static void dump_open_keyed_event_request( const struct open_keyed_event_request
*req
)
1634 fprintf( stderr
, " access=%08x", req
->access
);
1635 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1636 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
1637 dump_varargs_unicode_str( ", name=", cur_size
);
1640 static void dump_open_keyed_event_reply( const struct open_keyed_event_reply
*req
)
1642 fprintf( stderr
, " handle=%04x", req
->handle
);
1645 static void dump_create_mutex_request( const struct create_mutex_request
*req
)
1647 fprintf( stderr
, " access=%08x", req
->access
);
1648 fprintf( stderr
, ", owned=%d", req
->owned
);
1649 dump_varargs_object_attributes( ", objattr=", cur_size
);
1652 static void dump_create_mutex_reply( const struct create_mutex_reply
*req
)
1654 fprintf( stderr
, " handle=%04x", req
->handle
);
1657 static void dump_release_mutex_request( const struct release_mutex_request
*req
)
1659 fprintf( stderr
, " handle=%04x", req
->handle
);
1662 static void dump_release_mutex_reply( const struct release_mutex_reply
*req
)
1664 fprintf( stderr
, " prev_count=%08x", req
->prev_count
);
1667 static void dump_open_mutex_request( const struct open_mutex_request
*req
)
1669 fprintf( stderr
, " access=%08x", req
->access
);
1670 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1671 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
1672 dump_varargs_unicode_str( ", name=", cur_size
);
1675 static void dump_open_mutex_reply( const struct open_mutex_reply
*req
)
1677 fprintf( stderr
, " handle=%04x", req
->handle
);
1680 static void dump_query_mutex_request( const struct query_mutex_request
*req
)
1682 fprintf( stderr
, " handle=%04x", req
->handle
);
1685 static void dump_query_mutex_reply( const struct query_mutex_reply
*req
)
1687 fprintf( stderr
, " count=%08x", req
->count
);
1688 fprintf( stderr
, ", owned=%d", req
->owned
);
1689 fprintf( stderr
, ", abandoned=%d", req
->abandoned
);
1692 static void dump_create_semaphore_request( const struct create_semaphore_request
*req
)
1694 fprintf( stderr
, " access=%08x", req
->access
);
1695 fprintf( stderr
, ", initial=%08x", req
->initial
);
1696 fprintf( stderr
, ", max=%08x", req
->max
);
1697 dump_varargs_object_attributes( ", objattr=", cur_size
);
1700 static void dump_create_semaphore_reply( const struct create_semaphore_reply
*req
)
1702 fprintf( stderr
, " handle=%04x", req
->handle
);
1705 static void dump_release_semaphore_request( const struct release_semaphore_request
*req
)
1707 fprintf( stderr
, " handle=%04x", req
->handle
);
1708 fprintf( stderr
, ", count=%08x", req
->count
);
1711 static void dump_release_semaphore_reply( const struct release_semaphore_reply
*req
)
1713 fprintf( stderr
, " prev_count=%08x", req
->prev_count
);
1716 static void dump_query_semaphore_request( const struct query_semaphore_request
*req
)
1718 fprintf( stderr
, " handle=%04x", req
->handle
);
1721 static void dump_query_semaphore_reply( const struct query_semaphore_reply
*req
)
1723 fprintf( stderr
, " current=%08x", req
->current
);
1724 fprintf( stderr
, ", max=%08x", req
->max
);
1727 static void dump_open_semaphore_request( const struct open_semaphore_request
*req
)
1729 fprintf( stderr
, " access=%08x", req
->access
);
1730 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1731 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
1732 dump_varargs_unicode_str( ", name=", cur_size
);
1735 static void dump_open_semaphore_reply( const struct open_semaphore_reply
*req
)
1737 fprintf( stderr
, " handle=%04x", req
->handle
);
1740 static void dump_create_file_request( const struct create_file_request
*req
)
1742 fprintf( stderr
, " access=%08x", req
->access
);
1743 fprintf( stderr
, ", sharing=%08x", req
->sharing
);
1744 fprintf( stderr
, ", create=%d", req
->create
);
1745 fprintf( stderr
, ", options=%08x", req
->options
);
1746 fprintf( stderr
, ", attrs=%08x", req
->attrs
);
1747 dump_varargs_object_attributes( ", objattr=", cur_size
);
1748 dump_varargs_string( ", filename=", cur_size
);
1751 static void dump_create_file_reply( const struct create_file_reply
*req
)
1753 fprintf( stderr
, " handle=%04x", req
->handle
);
1756 static void dump_open_file_object_request( const struct open_file_object_request
*req
)
1758 fprintf( stderr
, " access=%08x", req
->access
);
1759 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1760 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
1761 fprintf( stderr
, ", sharing=%08x", req
->sharing
);
1762 fprintf( stderr
, ", options=%08x", req
->options
);
1763 dump_varargs_unicode_str( ", filename=", cur_size
);
1766 static void dump_open_file_object_reply( const struct open_file_object_reply
*req
)
1768 fprintf( stderr
, " handle=%04x", req
->handle
);
1771 static void dump_alloc_file_handle_request( const struct alloc_file_handle_request
*req
)
1773 fprintf( stderr
, " access=%08x", req
->access
);
1774 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1775 fprintf( stderr
, ", fd=%d", req
->fd
);
1778 static void dump_alloc_file_handle_reply( const struct alloc_file_handle_reply
*req
)
1780 fprintf( stderr
, " handle=%04x", req
->handle
);
1783 static void dump_get_handle_unix_name_request( const struct get_handle_unix_name_request
*req
)
1785 fprintf( stderr
, " handle=%04x", req
->handle
);
1788 static void dump_get_handle_unix_name_reply( const struct get_handle_unix_name_reply
*req
)
1790 fprintf( stderr
, " name_len=%u", req
->name_len
);
1791 dump_varargs_string( ", name=", cur_size
);
1794 static void dump_get_handle_fd_request( const struct get_handle_fd_request
*req
)
1796 fprintf( stderr
, " handle=%04x", req
->handle
);
1799 static void dump_get_handle_fd_reply( const struct get_handle_fd_reply
*req
)
1801 fprintf( stderr
, " type=%d", req
->type
);
1802 fprintf( stderr
, ", cacheable=%d", req
->cacheable
);
1803 fprintf( stderr
, ", access=%08x", req
->access
);
1804 fprintf( stderr
, ", options=%08x", req
->options
);
1807 static void dump_get_directory_cache_entry_request( const struct get_directory_cache_entry_request
*req
)
1809 fprintf( stderr
, " handle=%04x", req
->handle
);
1812 static void dump_get_directory_cache_entry_reply( const struct get_directory_cache_entry_reply
*req
)
1814 fprintf( stderr
, " entry=%d", req
->entry
);
1815 dump_varargs_ints( ", free=", cur_size
);
1818 static void dump_flush_request( const struct flush_request
*req
)
1820 dump_async_data( " async=", &req
->async
);
1823 static void dump_flush_reply( const struct flush_reply
*req
)
1825 fprintf( stderr
, " event=%04x", req
->event
);
1828 static void dump_get_file_info_request( const struct get_file_info_request
*req
)
1830 fprintf( stderr
, " handle=%04x", req
->handle
);
1831 fprintf( stderr
, ", info_class=%08x", req
->info_class
);
1834 static void dump_get_file_info_reply( const struct get_file_info_reply
*req
)
1836 dump_varargs_bytes( " data=", cur_size
);
1839 static void dump_get_volume_info_request( const struct get_volume_info_request
*req
)
1841 fprintf( stderr
, " handle=%04x", req
->handle
);
1842 fprintf( stderr
, ", info_class=%08x", req
->info_class
);
1845 static void dump_get_volume_info_reply( const struct get_volume_info_reply
*req
)
1847 dump_varargs_bytes( " data=", cur_size
);
1850 static void dump_lock_file_request( const struct lock_file_request
*req
)
1852 fprintf( stderr
, " handle=%04x", req
->handle
);
1853 dump_uint64( ", offset=", &req
->offset
);
1854 dump_uint64( ", count=", &req
->count
);
1855 fprintf( stderr
, ", shared=%d", req
->shared
);
1856 fprintf( stderr
, ", wait=%d", req
->wait
);
1859 static void dump_lock_file_reply( const struct lock_file_reply
*req
)
1861 fprintf( stderr
, " handle=%04x", req
->handle
);
1862 fprintf( stderr
, ", overlapped=%d", req
->overlapped
);
1865 static void dump_unlock_file_request( const struct unlock_file_request
*req
)
1867 fprintf( stderr
, " handle=%04x", req
->handle
);
1868 dump_uint64( ", offset=", &req
->offset
);
1869 dump_uint64( ", count=", &req
->count
);
1872 static void dump_create_socket_request( const struct create_socket_request
*req
)
1874 fprintf( stderr
, " access=%08x", req
->access
);
1875 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1876 fprintf( stderr
, ", family=%d", req
->family
);
1877 fprintf( stderr
, ", type=%d", req
->type
);
1878 fprintf( stderr
, ", protocol=%d", req
->protocol
);
1879 fprintf( stderr
, ", flags=%08x", req
->flags
);
1882 static void dump_create_socket_reply( const struct create_socket_reply
*req
)
1884 fprintf( stderr
, " handle=%04x", req
->handle
);
1887 static void dump_accept_socket_request( const struct accept_socket_request
*req
)
1889 fprintf( stderr
, " lhandle=%04x", req
->lhandle
);
1890 fprintf( stderr
, ", access=%08x", req
->access
);
1891 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1894 static void dump_accept_socket_reply( const struct accept_socket_reply
*req
)
1896 fprintf( stderr
, " handle=%04x", req
->handle
);
1899 static void dump_accept_into_socket_request( const struct accept_into_socket_request
*req
)
1901 fprintf( stderr
, " lhandle=%04x", req
->lhandle
);
1902 fprintf( stderr
, ", ahandle=%04x", req
->ahandle
);
1905 static void dump_set_socket_event_request( const struct set_socket_event_request
*req
)
1907 fprintf( stderr
, " handle=%04x", req
->handle
);
1908 fprintf( stderr
, ", mask=%08x", req
->mask
);
1909 fprintf( stderr
, ", event=%04x", req
->event
);
1910 fprintf( stderr
, ", window=%08x", req
->window
);
1911 fprintf( stderr
, ", msg=%08x", req
->msg
);
1914 static void dump_get_socket_event_request( const struct get_socket_event_request
*req
)
1916 fprintf( stderr
, " handle=%04x", req
->handle
);
1917 fprintf( stderr
, ", service=%d", req
->service
);
1918 fprintf( stderr
, ", c_event=%04x", req
->c_event
);
1921 static void dump_get_socket_event_reply( const struct get_socket_event_reply
*req
)
1923 fprintf( stderr
, " mask=%08x", req
->mask
);
1924 fprintf( stderr
, ", pmask=%08x", req
->pmask
);
1925 fprintf( stderr
, ", state=%08x", req
->state
);
1926 dump_varargs_ints( ", errors=", cur_size
);
1929 static void dump_get_socket_info_request( const struct get_socket_info_request
*req
)
1931 fprintf( stderr
, " handle=%04x", req
->handle
);
1934 static void dump_get_socket_info_reply( const struct get_socket_info_reply
*req
)
1936 fprintf( stderr
, " family=%d", req
->family
);
1937 fprintf( stderr
, ", type=%d", req
->type
);
1938 fprintf( stderr
, ", protocol=%d", req
->protocol
);
1941 static void dump_enable_socket_event_request( const struct enable_socket_event_request
*req
)
1943 fprintf( stderr
, " handle=%04x", req
->handle
);
1944 fprintf( stderr
, ", mask=%08x", req
->mask
);
1945 fprintf( stderr
, ", sstate=%08x", req
->sstate
);
1946 fprintf( stderr
, ", cstate=%08x", req
->cstate
);
1949 static void dump_set_socket_deferred_request( const struct set_socket_deferred_request
*req
)
1951 fprintf( stderr
, " handle=%04x", req
->handle
);
1952 fprintf( stderr
, ", deferred=%04x", req
->deferred
);
1955 static void dump_alloc_console_request( const struct alloc_console_request
*req
)
1957 fprintf( stderr
, " access=%08x", req
->access
);
1958 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1959 fprintf( stderr
, ", pid=%04x", req
->pid
);
1960 fprintf( stderr
, ", input_fd=%d", req
->input_fd
);
1963 static void dump_alloc_console_reply( const struct alloc_console_reply
*req
)
1965 fprintf( stderr
, " handle_in=%04x", req
->handle_in
);
1966 fprintf( stderr
, ", event=%04x", req
->event
);
1969 static void dump_free_console_request( const struct free_console_request
*req
)
1973 static void dump_get_console_renderer_events_request( const struct get_console_renderer_events_request
*req
)
1975 fprintf( stderr
, " handle=%04x", req
->handle
);
1978 static void dump_get_console_renderer_events_reply( const struct get_console_renderer_events_reply
*req
)
1980 dump_varargs_bytes( " data=", cur_size
);
1983 static void dump_open_console_request( const struct open_console_request
*req
)
1985 fprintf( stderr
, " from=%04x", req
->from
);
1986 fprintf( stderr
, ", access=%08x", req
->access
);
1987 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1988 fprintf( stderr
, ", share=%d", req
->share
);
1991 static void dump_open_console_reply( const struct open_console_reply
*req
)
1993 fprintf( stderr
, " handle=%04x", req
->handle
);
1996 static void dump_attach_console_request( const struct attach_console_request
*req
)
1998 fprintf( stderr
, " pid=%04x", req
->pid
);
2001 static void dump_attach_console_reply( const struct attach_console_reply
*req
)
2003 fprintf( stderr
, " std_in=%04x", req
->std_in
);
2004 fprintf( stderr
, ", std_out=%04x", req
->std_out
);
2005 fprintf( stderr
, ", std_err=%04x", req
->std_err
);
2008 static void dump_get_console_wait_event_request( const struct get_console_wait_event_request
*req
)
2012 static void dump_get_console_wait_event_reply( const struct get_console_wait_event_reply
*req
)
2014 fprintf( stderr
, " handle=%04x", req
->handle
);
2017 static void dump_get_console_mode_request( const struct get_console_mode_request
*req
)
2019 fprintf( stderr
, " handle=%04x", req
->handle
);
2022 static void dump_get_console_mode_reply( const struct get_console_mode_reply
*req
)
2024 fprintf( stderr
, " mode=%d", req
->mode
);
2027 static void dump_set_console_mode_request( const struct set_console_mode_request
*req
)
2029 fprintf( stderr
, " handle=%04x", req
->handle
);
2030 fprintf( stderr
, ", mode=%d", req
->mode
);
2033 static void dump_set_console_input_info_request( const struct set_console_input_info_request
*req
)
2035 fprintf( stderr
, " handle=%04x", req
->handle
);
2036 fprintf( stderr
, ", mask=%d", req
->mask
);
2037 fprintf( stderr
, ", active_sb=%04x", req
->active_sb
);
2038 fprintf( stderr
, ", history_mode=%d", req
->history_mode
);
2039 fprintf( stderr
, ", history_size=%d", req
->history_size
);
2040 fprintf( stderr
, ", edition_mode=%d", req
->edition_mode
);
2041 fprintf( stderr
, ", input_cp=%d", req
->input_cp
);
2042 fprintf( stderr
, ", output_cp=%d", req
->output_cp
);
2043 fprintf( stderr
, ", win=%08x", req
->win
);
2044 dump_varargs_unicode_str( ", title=", cur_size
);
2047 static void dump_get_console_input_info_request( const struct get_console_input_info_request
*req
)
2049 fprintf( stderr
, " handle=%04x", req
->handle
);
2052 static void dump_get_console_input_info_reply( const struct get_console_input_info_reply
*req
)
2054 fprintf( stderr
, " history_mode=%d", req
->history_mode
);
2055 fprintf( stderr
, ", history_size=%d", req
->history_size
);
2056 fprintf( stderr
, ", history_index=%d", req
->history_index
);
2057 fprintf( stderr
, ", edition_mode=%d", req
->edition_mode
);
2058 fprintf( stderr
, ", input_cp=%d", req
->input_cp
);
2059 fprintf( stderr
, ", output_cp=%d", req
->output_cp
);
2060 fprintf( stderr
, ", win=%08x", req
->win
);
2061 dump_varargs_unicode_str( ", title=", cur_size
);
2064 static void dump_append_console_input_history_request( const struct append_console_input_history_request
*req
)
2066 fprintf( stderr
, " handle=%04x", req
->handle
);
2067 dump_varargs_unicode_str( ", line=", cur_size
);
2070 static void dump_get_console_input_history_request( const struct get_console_input_history_request
*req
)
2072 fprintf( stderr
, " handle=%04x", req
->handle
);
2073 fprintf( stderr
, ", index=%d", req
->index
);
2076 static void dump_get_console_input_history_reply( const struct get_console_input_history_reply
*req
)
2078 fprintf( stderr
, " total=%d", req
->total
);
2079 dump_varargs_unicode_str( ", line=", cur_size
);
2082 static void dump_create_console_output_request( const struct create_console_output_request
*req
)
2084 fprintf( stderr
, " handle_in=%04x", req
->handle_in
);
2085 fprintf( stderr
, ", access=%08x", req
->access
);
2086 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
2087 fprintf( stderr
, ", share=%08x", req
->share
);
2088 fprintf( stderr
, ", fd=%d", req
->fd
);
2091 static void dump_create_console_output_reply( const struct create_console_output_reply
*req
)
2093 fprintf( stderr
, " handle_out=%04x", req
->handle_out
);
2096 static void dump_set_console_output_info_request( const struct set_console_output_info_request
*req
)
2098 fprintf( stderr
, " handle=%04x", req
->handle
);
2099 fprintf( stderr
, ", mask=%d", req
->mask
);
2100 fprintf( stderr
, ", cursor_size=%d", req
->cursor_size
);
2101 fprintf( stderr
, ", cursor_visible=%d", req
->cursor_visible
);
2102 fprintf( stderr
, ", cursor_x=%d", req
->cursor_x
);
2103 fprintf( stderr
, ", cursor_y=%d", req
->cursor_y
);
2104 fprintf( stderr
, ", width=%d", req
->width
);
2105 fprintf( stderr
, ", height=%d", req
->height
);
2106 fprintf( stderr
, ", attr=%d", req
->attr
);
2107 fprintf( stderr
, ", popup_attr=%d", req
->popup_attr
);
2108 fprintf( stderr
, ", win_left=%d", req
->win_left
);
2109 fprintf( stderr
, ", win_top=%d", req
->win_top
);
2110 fprintf( stderr
, ", win_right=%d", req
->win_right
);
2111 fprintf( stderr
, ", win_bottom=%d", req
->win_bottom
);
2112 fprintf( stderr
, ", max_width=%d", req
->max_width
);
2113 fprintf( stderr
, ", max_height=%d", req
->max_height
);
2114 fprintf( stderr
, ", font_width=%d", req
->font_width
);
2115 fprintf( stderr
, ", font_height=%d", req
->font_height
);
2116 dump_varargs_uints( ", colors=", cur_size
);
2119 static void dump_get_console_output_info_request( const struct get_console_output_info_request
*req
)
2121 fprintf( stderr
, " handle=%04x", req
->handle
);
2124 static void dump_get_console_output_info_reply( const struct get_console_output_info_reply
*req
)
2126 fprintf( stderr
, " cursor_size=%d", req
->cursor_size
);
2127 fprintf( stderr
, ", cursor_visible=%d", req
->cursor_visible
);
2128 fprintf( stderr
, ", cursor_x=%d", req
->cursor_x
);
2129 fprintf( stderr
, ", cursor_y=%d", req
->cursor_y
);
2130 fprintf( stderr
, ", width=%d", req
->width
);
2131 fprintf( stderr
, ", height=%d", req
->height
);
2132 fprintf( stderr
, ", attr=%d", req
->attr
);
2133 fprintf( stderr
, ", popup_attr=%d", req
->popup_attr
);
2134 fprintf( stderr
, ", win_left=%d", req
->win_left
);
2135 fprintf( stderr
, ", win_top=%d", req
->win_top
);
2136 fprintf( stderr
, ", win_right=%d", req
->win_right
);
2137 fprintf( stderr
, ", win_bottom=%d", req
->win_bottom
);
2138 fprintf( stderr
, ", max_width=%d", req
->max_width
);
2139 fprintf( stderr
, ", max_height=%d", req
->max_height
);
2140 fprintf( stderr
, ", font_width=%d", req
->font_width
);
2141 fprintf( stderr
, ", font_height=%d", req
->font_height
);
2142 dump_varargs_uints( ", colors=", cur_size
);
2145 static void dump_write_console_input_request( const struct write_console_input_request
*req
)
2147 fprintf( stderr
, " handle=%04x", req
->handle
);
2148 dump_varargs_input_records( ", rec=", cur_size
);
2151 static void dump_write_console_input_reply( const struct write_console_input_reply
*req
)
2153 fprintf( stderr
, " written=%d", req
->written
);
2156 static void dump_read_console_input_request( const struct read_console_input_request
*req
)
2158 fprintf( stderr
, " handle=%04x", req
->handle
);
2159 fprintf( stderr
, ", flush=%d", req
->flush
);
2162 static void dump_read_console_input_reply( const struct read_console_input_reply
*req
)
2164 fprintf( stderr
, " read=%d", req
->read
);
2165 dump_varargs_input_records( ", rec=", cur_size
);
2168 static void dump_write_console_output_request( const struct write_console_output_request
*req
)
2170 fprintf( stderr
, " handle=%04x", req
->handle
);
2171 fprintf( stderr
, ", x=%d", req
->x
);
2172 fprintf( stderr
, ", y=%d", req
->y
);
2173 fprintf( stderr
, ", mode=%d", req
->mode
);
2174 fprintf( stderr
, ", wrap=%d", req
->wrap
);
2175 dump_varargs_bytes( ", data=", cur_size
);
2178 static void dump_write_console_output_reply( const struct write_console_output_reply
*req
)
2180 fprintf( stderr
, " written=%d", req
->written
);
2181 fprintf( stderr
, ", width=%d", req
->width
);
2182 fprintf( stderr
, ", height=%d", req
->height
);
2185 static void dump_fill_console_output_request( const struct fill_console_output_request
*req
)
2187 fprintf( stderr
, " handle=%04x", req
->handle
);
2188 fprintf( stderr
, ", x=%d", req
->x
);
2189 fprintf( stderr
, ", y=%d", req
->y
);
2190 fprintf( stderr
, ", mode=%d", req
->mode
);
2191 fprintf( stderr
, ", count=%d", req
->count
);
2192 fprintf( stderr
, ", wrap=%d", req
->wrap
);
2193 dump_char_info( ", data=", &req
->data
);
2196 static void dump_fill_console_output_reply( const struct fill_console_output_reply
*req
)
2198 fprintf( stderr
, " written=%d", req
->written
);
2201 static void dump_read_console_output_request( const struct read_console_output_request
*req
)
2203 fprintf( stderr
, " handle=%04x", req
->handle
);
2204 fprintf( stderr
, ", x=%d", req
->x
);
2205 fprintf( stderr
, ", y=%d", req
->y
);
2206 fprintf( stderr
, ", mode=%d", req
->mode
);
2207 fprintf( stderr
, ", wrap=%d", req
->wrap
);
2210 static void dump_read_console_output_reply( const struct read_console_output_reply
*req
)
2212 fprintf( stderr
, " width=%d", req
->width
);
2213 fprintf( stderr
, ", height=%d", req
->height
);
2214 dump_varargs_bytes( ", data=", cur_size
);
2217 static void dump_move_console_output_request( const struct move_console_output_request
*req
)
2219 fprintf( stderr
, " handle=%04x", req
->handle
);
2220 fprintf( stderr
, ", x_src=%d", req
->x_src
);
2221 fprintf( stderr
, ", y_src=%d", req
->y_src
);
2222 fprintf( stderr
, ", x_dst=%d", req
->x_dst
);
2223 fprintf( stderr
, ", y_dst=%d", req
->y_dst
);
2224 fprintf( stderr
, ", w=%d", req
->w
);
2225 fprintf( stderr
, ", h=%d", req
->h
);
2228 static void dump_send_console_signal_request( const struct send_console_signal_request
*req
)
2230 fprintf( stderr
, " signal=%d", req
->signal
);
2231 fprintf( stderr
, ", group_id=%04x", req
->group_id
);
2234 static void dump_read_directory_changes_request( const struct read_directory_changes_request
*req
)
2236 fprintf( stderr
, " filter=%08x", req
->filter
);
2237 fprintf( stderr
, ", subtree=%d", req
->subtree
);
2238 fprintf( stderr
, ", want_data=%d", req
->want_data
);
2239 dump_async_data( ", async=", &req
->async
);
2242 static void dump_read_change_request( const struct read_change_request
*req
)
2244 fprintf( stderr
, " handle=%04x", req
->handle
);
2247 static void dump_read_change_reply( const struct read_change_reply
*req
)
2249 dump_varargs_filesystem_event( " events=", cur_size
);
2252 static void dump_create_mapping_request( const struct create_mapping_request
*req
)
2254 fprintf( stderr
, " access=%08x", req
->access
);
2255 fprintf( stderr
, ", flags=%08x", req
->flags
);
2256 fprintf( stderr
, ", file_access=%08x", req
->file_access
);
2257 dump_uint64( ", size=", &req
->size
);
2258 fprintf( stderr
, ", file_handle=%04x", req
->file_handle
);
2259 dump_varargs_object_attributes( ", objattr=", cur_size
);
2262 static void dump_create_mapping_reply( const struct create_mapping_reply
*req
)
2264 fprintf( stderr
, " handle=%04x", req
->handle
);
2267 static void dump_open_mapping_request( const struct open_mapping_request
*req
)
2269 fprintf( stderr
, " access=%08x", req
->access
);
2270 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
2271 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
2272 dump_varargs_unicode_str( ", name=", cur_size
);
2275 static void dump_open_mapping_reply( const struct open_mapping_reply
*req
)
2277 fprintf( stderr
, " handle=%04x", req
->handle
);
2280 static void dump_get_mapping_info_request( const struct get_mapping_info_request
*req
)
2282 fprintf( stderr
, " handle=%04x", req
->handle
);
2283 fprintf( stderr
, ", access=%08x", req
->access
);
2286 static void dump_get_mapping_info_reply( const struct get_mapping_info_reply
*req
)
2288 dump_uint64( " size=", &req
->size
);
2289 fprintf( stderr
, ", flags=%08x", req
->flags
);
2290 fprintf( stderr
, ", shared_file=%04x", req
->shared_file
);
2291 dump_varargs_pe_image_info( ", image=", cur_size
);
2294 static void dump_map_view_request( const struct map_view_request
*req
)
2296 fprintf( stderr
, " mapping=%04x", req
->mapping
);
2297 fprintf( stderr
, ", access=%08x", req
->access
);
2298 dump_uint64( ", base=", &req
->base
);
2299 dump_uint64( ", size=", &req
->size
);
2300 dump_uint64( ", start=", &req
->start
);
2303 static void dump_unmap_view_request( const struct unmap_view_request
*req
)
2305 dump_uint64( " base=", &req
->base
);
2308 static void dump_get_mapping_committed_range_request( const struct get_mapping_committed_range_request
*req
)
2310 dump_uint64( " base=", &req
->base
);
2311 dump_uint64( ", offset=", &req
->offset
);
2314 static void dump_get_mapping_committed_range_reply( const struct get_mapping_committed_range_reply
*req
)
2316 dump_uint64( " size=", &req
->size
);
2317 fprintf( stderr
, ", committed=%d", req
->committed
);
2320 static void dump_add_mapping_committed_range_request( const struct add_mapping_committed_range_request
*req
)
2322 dump_uint64( " base=", &req
->base
);
2323 dump_uint64( ", offset=", &req
->offset
);
2324 dump_uint64( ", size=", &req
->size
);
2327 static void dump_is_same_mapping_request( const struct is_same_mapping_request
*req
)
2329 dump_uint64( " base1=", &req
->base1
);
2330 dump_uint64( ", base2=", &req
->base2
);
2333 static void dump_create_snapshot_request( const struct create_snapshot_request
*req
)
2335 fprintf( stderr
, " attributes=%08x", req
->attributes
);
2336 fprintf( stderr
, ", flags=%08x", req
->flags
);
2339 static void dump_create_snapshot_reply( const struct create_snapshot_reply
*req
)
2341 fprintf( stderr
, " handle=%04x", req
->handle
);
2344 static void dump_next_process_request( const struct next_process_request
*req
)
2346 fprintf( stderr
, " handle=%04x", req
->handle
);
2347 fprintf( stderr
, ", reset=%d", req
->reset
);
2350 static void dump_next_process_reply( const struct next_process_reply
*req
)
2352 fprintf( stderr
, " count=%d", req
->count
);
2353 fprintf( stderr
, ", pid=%04x", req
->pid
);
2354 fprintf( stderr
, ", ppid=%04x", req
->ppid
);
2355 fprintf( stderr
, ", threads=%d", req
->threads
);
2356 fprintf( stderr
, ", priority=%d", req
->priority
);
2357 fprintf( stderr
, ", handles=%d", req
->handles
);
2358 fprintf( stderr
, ", unix_pid=%d", req
->unix_pid
);
2359 dump_varargs_unicode_str( ", filename=", cur_size
);
2362 static void dump_next_thread_request( const struct next_thread_request
*req
)
2364 fprintf( stderr
, " handle=%04x", req
->handle
);
2365 fprintf( stderr
, ", reset=%d", req
->reset
);
2368 static void dump_next_thread_reply( const struct next_thread_reply
*req
)
2370 fprintf( stderr
, " count=%d", req
->count
);
2371 fprintf( stderr
, ", pid=%04x", req
->pid
);
2372 fprintf( stderr
, ", tid=%04x", req
->tid
);
2373 fprintf( stderr
, ", base_pri=%d", req
->base_pri
);
2374 fprintf( stderr
, ", delta_pri=%d", req
->delta_pri
);
2377 static void dump_wait_debug_event_request( const struct wait_debug_event_request
*req
)
2379 fprintf( stderr
, " get_handle=%d", req
->get_handle
);
2382 static void dump_wait_debug_event_reply( const struct wait_debug_event_reply
*req
)
2384 fprintf( stderr
, " pid=%04x", req
->pid
);
2385 fprintf( stderr
, ", tid=%04x", req
->tid
);
2386 fprintf( stderr
, ", wait=%04x", req
->wait
);
2387 dump_varargs_debug_event( ", event=", cur_size
);
2390 static void dump_queue_exception_event_request( const struct queue_exception_event_request
*req
)
2392 fprintf( stderr
, " first=%d", req
->first
);
2393 fprintf( stderr
, ", code=%08x", req
->code
);
2394 fprintf( stderr
, ", flags=%08x", req
->flags
);
2395 dump_uint64( ", record=", &req
->record
);
2396 dump_uint64( ", address=", &req
->address
);
2397 fprintf( stderr
, ", len=%u", req
->len
);
2398 dump_varargs_uints64( ", params=", min(cur_size
,req
->len
) );
2399 dump_varargs_context( ", context=", cur_size
);
2402 static void dump_queue_exception_event_reply( const struct queue_exception_event_reply
*req
)
2404 fprintf( stderr
, " handle=%04x", req
->handle
);
2407 static void dump_get_exception_status_request( const struct get_exception_status_request
*req
)
2409 fprintf( stderr
, " handle=%04x", req
->handle
);
2412 static void dump_get_exception_status_reply( const struct get_exception_status_reply
*req
)
2414 dump_varargs_context( " context=", cur_size
);
2417 static void dump_continue_debug_event_request( const struct continue_debug_event_request
*req
)
2419 fprintf( stderr
, " pid=%04x", req
->pid
);
2420 fprintf( stderr
, ", tid=%04x", req
->tid
);
2421 fprintf( stderr
, ", status=%d", req
->status
);
2424 static void dump_debug_process_request( const struct debug_process_request
*req
)
2426 fprintf( stderr
, " pid=%04x", req
->pid
);
2427 fprintf( stderr
, ", attach=%d", req
->attach
);
2430 static void dump_debug_break_request( const struct debug_break_request
*req
)
2432 fprintf( stderr
, " handle=%04x", req
->handle
);
2435 static void dump_debug_break_reply( const struct debug_break_reply
*req
)
2437 fprintf( stderr
, " self=%d", req
->self
);
2440 static void dump_set_debugger_kill_on_exit_request( const struct set_debugger_kill_on_exit_request
*req
)
2442 fprintf( stderr
, " kill_on_exit=%d", req
->kill_on_exit
);
2445 static void dump_read_process_memory_request( const struct read_process_memory_request
*req
)
2447 fprintf( stderr
, " handle=%04x", req
->handle
);
2448 dump_uint64( ", addr=", &req
->addr
);
2451 static void dump_read_process_memory_reply( const struct read_process_memory_reply
*req
)
2453 dump_varargs_bytes( " data=", cur_size
);
2456 static void dump_write_process_memory_request( const struct write_process_memory_request
*req
)
2458 fprintf( stderr
, " handle=%04x", req
->handle
);
2459 dump_uint64( ", addr=", &req
->addr
);
2460 dump_varargs_bytes( ", data=", cur_size
);
2463 static void dump_create_key_request( const struct create_key_request
*req
)
2465 fprintf( stderr
, " access=%08x", req
->access
);
2466 fprintf( stderr
, ", options=%08x", req
->options
);
2467 dump_varargs_object_attributes( ", objattr=", cur_size
);
2468 dump_varargs_unicode_str( ", class=", cur_size
);
2471 static void dump_create_key_reply( const struct create_key_reply
*req
)
2473 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2474 fprintf( stderr
, ", created=%d", req
->created
);
2477 static void dump_open_key_request( const struct open_key_request
*req
)
2479 fprintf( stderr
, " parent=%04x", req
->parent
);
2480 fprintf( stderr
, ", access=%08x", req
->access
);
2481 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
2482 dump_varargs_unicode_str( ", name=", cur_size
);
2485 static void dump_open_key_reply( const struct open_key_reply
*req
)
2487 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2490 static void dump_delete_key_request( const struct delete_key_request
*req
)
2492 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2495 static void dump_flush_key_request( const struct flush_key_request
*req
)
2497 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2500 static void dump_enum_key_request( const struct enum_key_request
*req
)
2502 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2503 fprintf( stderr
, ", index=%d", req
->index
);
2504 fprintf( stderr
, ", info_class=%d", req
->info_class
);
2507 static void dump_enum_key_reply( const struct enum_key_reply
*req
)
2509 fprintf( stderr
, " subkeys=%d", req
->subkeys
);
2510 fprintf( stderr
, ", max_subkey=%d", req
->max_subkey
);
2511 fprintf( stderr
, ", max_class=%d", req
->max_class
);
2512 fprintf( stderr
, ", values=%d", req
->values
);
2513 fprintf( stderr
, ", max_value=%d", req
->max_value
);
2514 fprintf( stderr
, ", max_data=%d", req
->max_data
);
2515 dump_timeout( ", modif=", &req
->modif
);
2516 fprintf( stderr
, ", total=%u", req
->total
);
2517 fprintf( stderr
, ", namelen=%u", req
->namelen
);
2518 dump_varargs_unicode_str( ", name=", min(cur_size
,req
->namelen
) );
2519 dump_varargs_unicode_str( ", class=", cur_size
);
2522 static void dump_set_key_value_request( const struct set_key_value_request
*req
)
2524 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2525 fprintf( stderr
, ", type=%d", req
->type
);
2526 fprintf( stderr
, ", namelen=%u", req
->namelen
);
2527 dump_varargs_unicode_str( ", name=", min(cur_size
,req
->namelen
) );
2528 dump_varargs_bytes( ", data=", cur_size
);
2531 static void dump_get_key_value_request( const struct get_key_value_request
*req
)
2533 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2534 dump_varargs_unicode_str( ", name=", cur_size
);
2537 static void dump_get_key_value_reply( const struct get_key_value_reply
*req
)
2539 fprintf( stderr
, " type=%d", req
->type
);
2540 fprintf( stderr
, ", total=%u", req
->total
);
2541 dump_varargs_bytes( ", data=", cur_size
);
2544 static void dump_enum_key_value_request( const struct enum_key_value_request
*req
)
2546 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2547 fprintf( stderr
, ", index=%d", req
->index
);
2548 fprintf( stderr
, ", info_class=%d", req
->info_class
);
2551 static void dump_enum_key_value_reply( const struct enum_key_value_reply
*req
)
2553 fprintf( stderr
, " type=%d", req
->type
);
2554 fprintf( stderr
, ", total=%u", req
->total
);
2555 fprintf( stderr
, ", namelen=%u", req
->namelen
);
2556 dump_varargs_unicode_str( ", name=", min(cur_size
,req
->namelen
) );
2557 dump_varargs_bytes( ", data=", cur_size
);
2560 static void dump_delete_key_value_request( const struct delete_key_value_request
*req
)
2562 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2563 dump_varargs_unicode_str( ", name=", cur_size
);
2566 static void dump_load_registry_request( const struct load_registry_request
*req
)
2568 fprintf( stderr
, " file=%04x", req
->file
);
2569 dump_varargs_object_attributes( ", objattr=", cur_size
);
2572 static void dump_unload_registry_request( const struct unload_registry_request
*req
)
2574 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2577 static void dump_save_registry_request( const struct save_registry_request
*req
)
2579 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2580 fprintf( stderr
, ", file=%04x", req
->file
);
2583 static void dump_set_registry_notification_request( const struct set_registry_notification_request
*req
)
2585 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2586 fprintf( stderr
, ", event=%04x", req
->event
);
2587 fprintf( stderr
, ", subtree=%d", req
->subtree
);
2588 fprintf( stderr
, ", filter=%08x", req
->filter
);
2591 static void dump_create_timer_request( const struct create_timer_request
*req
)
2593 fprintf( stderr
, " access=%08x", req
->access
);
2594 fprintf( stderr
, ", manual=%d", req
->manual
);
2595 dump_varargs_object_attributes( ", objattr=", cur_size
);
2598 static void dump_create_timer_reply( const struct create_timer_reply
*req
)
2600 fprintf( stderr
, " handle=%04x", req
->handle
);
2603 static void dump_open_timer_request( const struct open_timer_request
*req
)
2605 fprintf( stderr
, " access=%08x", req
->access
);
2606 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
2607 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
2608 dump_varargs_unicode_str( ", name=", cur_size
);
2611 static void dump_open_timer_reply( const struct open_timer_reply
*req
)
2613 fprintf( stderr
, " handle=%04x", req
->handle
);
2616 static void dump_set_timer_request( const struct set_timer_request
*req
)
2618 fprintf( stderr
, " handle=%04x", req
->handle
);
2619 dump_timeout( ", expire=", &req
->expire
);
2620 dump_uint64( ", callback=", &req
->callback
);
2621 dump_uint64( ", arg=", &req
->arg
);
2622 fprintf( stderr
, ", period=%d", req
->period
);
2625 static void dump_set_timer_reply( const struct set_timer_reply
*req
)
2627 fprintf( stderr
, " signaled=%d", req
->signaled
);
2630 static void dump_cancel_timer_request( const struct cancel_timer_request
*req
)
2632 fprintf( stderr
, " handle=%04x", req
->handle
);
2635 static void dump_cancel_timer_reply( const struct cancel_timer_reply
*req
)
2637 fprintf( stderr
, " signaled=%d", req
->signaled
);
2640 static void dump_get_timer_info_request( const struct get_timer_info_request
*req
)
2642 fprintf( stderr
, " handle=%04x", req
->handle
);
2645 static void dump_get_timer_info_reply( const struct get_timer_info_reply
*req
)
2647 dump_timeout( " when=", &req
->when
);
2648 fprintf( stderr
, ", signaled=%d", req
->signaled
);
2651 static void dump_get_thread_context_request( const struct get_thread_context_request
*req
)
2653 fprintf( stderr
, " handle=%04x", req
->handle
);
2654 fprintf( stderr
, ", flags=%08x", req
->flags
);
2655 fprintf( stderr
, ", suspend=%d", req
->suspend
);
2658 static void dump_get_thread_context_reply( const struct get_thread_context_reply
*req
)
2660 fprintf( stderr
, " self=%d", req
->self
);
2661 dump_varargs_context( ", context=", cur_size
);
2664 static void dump_set_thread_context_request( const struct set_thread_context_request
*req
)
2666 fprintf( stderr
, " handle=%04x", req
->handle
);
2667 fprintf( stderr
, ", suspend=%d", req
->suspend
);
2668 dump_varargs_context( ", context=", cur_size
);
2671 static void dump_set_thread_context_reply( const struct set_thread_context_reply
*req
)
2673 fprintf( stderr
, " self=%d", req
->self
);
2676 static void dump_get_selector_entry_request( const struct get_selector_entry_request
*req
)
2678 fprintf( stderr
, " handle=%04x", req
->handle
);
2679 fprintf( stderr
, ", entry=%d", req
->entry
);
2682 static void dump_get_selector_entry_reply( const struct get_selector_entry_reply
*req
)
2684 fprintf( stderr
, " base=%08x", req
->base
);
2685 fprintf( stderr
, ", limit=%08x", req
->limit
);
2686 fprintf( stderr
, ", flags=%02x", req
->flags
);
2689 static void dump_add_atom_request( const struct add_atom_request
*req
)
2691 fprintf( stderr
, " table=%04x", req
->table
);
2692 dump_varargs_unicode_str( ", name=", cur_size
);
2695 static void dump_add_atom_reply( const struct add_atom_reply
*req
)
2697 fprintf( stderr
, " atom=%04x", req
->atom
);
2700 static void dump_delete_atom_request( const struct delete_atom_request
*req
)
2702 fprintf( stderr
, " table=%04x", req
->table
);
2703 fprintf( stderr
, ", atom=%04x", req
->atom
);
2706 static void dump_find_atom_request( const struct find_atom_request
*req
)
2708 fprintf( stderr
, " table=%04x", req
->table
);
2709 dump_varargs_unicode_str( ", name=", cur_size
);
2712 static void dump_find_atom_reply( const struct find_atom_reply
*req
)
2714 fprintf( stderr
, " atom=%04x", req
->atom
);
2717 static void dump_get_atom_information_request( const struct get_atom_information_request
*req
)
2719 fprintf( stderr
, " table=%04x", req
->table
);
2720 fprintf( stderr
, ", atom=%04x", req
->atom
);
2723 static void dump_get_atom_information_reply( const struct get_atom_information_reply
*req
)
2725 fprintf( stderr
, " count=%d", req
->count
);
2726 fprintf( stderr
, ", pinned=%d", req
->pinned
);
2727 fprintf( stderr
, ", total=%u", req
->total
);
2728 dump_varargs_unicode_str( ", name=", cur_size
);
2731 static void dump_set_atom_information_request( const struct set_atom_information_request
*req
)
2733 fprintf( stderr
, " table=%04x", req
->table
);
2734 fprintf( stderr
, ", atom=%04x", req
->atom
);
2735 fprintf( stderr
, ", pinned=%d", req
->pinned
);
2738 static void dump_empty_atom_table_request( const struct empty_atom_table_request
*req
)
2740 fprintf( stderr
, " table=%04x", req
->table
);
2741 fprintf( stderr
, ", if_pinned=%d", req
->if_pinned
);
2744 static void dump_init_atom_table_request( const struct init_atom_table_request
*req
)
2746 fprintf( stderr
, " entries=%d", req
->entries
);
2749 static void dump_init_atom_table_reply( const struct init_atom_table_reply
*req
)
2751 fprintf( stderr
, " table=%04x", req
->table
);
2754 static void dump_get_msg_queue_request( const struct get_msg_queue_request
*req
)
2758 static void dump_get_msg_queue_reply( const struct get_msg_queue_reply
*req
)
2760 fprintf( stderr
, " handle=%04x", req
->handle
);
2763 static void dump_set_queue_fd_request( const struct set_queue_fd_request
*req
)
2765 fprintf( stderr
, " handle=%04x", req
->handle
);
2768 static void dump_set_queue_mask_request( const struct set_queue_mask_request
*req
)
2770 fprintf( stderr
, " wake_mask=%08x", req
->wake_mask
);
2771 fprintf( stderr
, ", changed_mask=%08x", req
->changed_mask
);
2772 fprintf( stderr
, ", skip_wait=%d", req
->skip_wait
);
2775 static void dump_set_queue_mask_reply( const struct set_queue_mask_reply
*req
)
2777 fprintf( stderr
, " wake_bits=%08x", req
->wake_bits
);
2778 fprintf( stderr
, ", changed_bits=%08x", req
->changed_bits
);
2781 static void dump_get_queue_status_request( const struct get_queue_status_request
*req
)
2783 fprintf( stderr
, " clear_bits=%08x", req
->clear_bits
);
2786 static void dump_get_queue_status_reply( const struct get_queue_status_reply
*req
)
2788 fprintf( stderr
, " wake_bits=%08x", req
->wake_bits
);
2789 fprintf( stderr
, ", changed_bits=%08x", req
->changed_bits
);
2792 static void dump_get_process_idle_event_request( const struct get_process_idle_event_request
*req
)
2794 fprintf( stderr
, " handle=%04x", req
->handle
);
2797 static void dump_get_process_idle_event_reply( const struct get_process_idle_event_reply
*req
)
2799 fprintf( stderr
, " event=%04x", req
->event
);
2802 static void dump_send_message_request( const struct send_message_request
*req
)
2804 fprintf( stderr
, " id=%04x", req
->id
);
2805 fprintf( stderr
, ", type=%d", req
->type
);
2806 fprintf( stderr
, ", flags=%d", req
->flags
);
2807 fprintf( stderr
, ", win=%08x", req
->win
);
2808 fprintf( stderr
, ", msg=%08x", req
->msg
);
2809 dump_uint64( ", wparam=", &req
->wparam
);
2810 dump_uint64( ", lparam=", &req
->lparam
);
2811 dump_timeout( ", timeout=", &req
->timeout
);
2812 dump_varargs_message_data( ", data=", cur_size
);
2815 static void dump_post_quit_message_request( const struct post_quit_message_request
*req
)
2817 fprintf( stderr
, " exit_code=%d", req
->exit_code
);
2820 static void dump_send_hardware_message_request( const struct send_hardware_message_request
*req
)
2822 fprintf( stderr
, " win=%08x", req
->win
);
2823 dump_hw_input( ", input=", &req
->input
);
2824 fprintf( stderr
, ", flags=%08x", req
->flags
);
2827 static void dump_send_hardware_message_reply( const struct send_hardware_message_reply
*req
)
2829 fprintf( stderr
, " wait=%d", req
->wait
);
2830 fprintf( stderr
, ", prev_x=%d", req
->prev_x
);
2831 fprintf( stderr
, ", prev_y=%d", req
->prev_y
);
2832 fprintf( stderr
, ", new_x=%d", req
->new_x
);
2833 fprintf( stderr
, ", new_y=%d", req
->new_y
);
2834 dump_varargs_bytes( ", keystate=", cur_size
);
2837 static void dump_get_message_request( const struct get_message_request
*req
)
2839 fprintf( stderr
, " flags=%08x", req
->flags
);
2840 fprintf( stderr
, ", get_win=%08x", req
->get_win
);
2841 fprintf( stderr
, ", get_first=%08x", req
->get_first
);
2842 fprintf( stderr
, ", get_last=%08x", req
->get_last
);
2843 fprintf( stderr
, ", hw_id=%08x", req
->hw_id
);
2844 fprintf( stderr
, ", wake_mask=%08x", req
->wake_mask
);
2845 fprintf( stderr
, ", changed_mask=%08x", req
->changed_mask
);
2848 static void dump_get_message_reply( const struct get_message_reply
*req
)
2850 fprintf( stderr
, " win=%08x", req
->win
);
2851 fprintf( stderr
, ", msg=%08x", req
->msg
);
2852 dump_uint64( ", wparam=", &req
->wparam
);
2853 dump_uint64( ", lparam=", &req
->lparam
);
2854 fprintf( stderr
, ", type=%d", req
->type
);
2855 fprintf( stderr
, ", x=%d", req
->x
);
2856 fprintf( stderr
, ", y=%d", req
->y
);
2857 fprintf( stderr
, ", time=%08x", req
->time
);
2858 fprintf( stderr
, ", active_hooks=%08x", req
->active_hooks
);
2859 fprintf( stderr
, ", total=%u", req
->total
);
2860 dump_varargs_message_data( ", data=", cur_size
);
2863 static void dump_reply_message_request( const struct reply_message_request
*req
)
2865 fprintf( stderr
, " remove=%d", req
->remove
);
2866 dump_uint64( ", result=", &req
->result
);
2867 dump_varargs_bytes( ", data=", cur_size
);
2870 static void dump_accept_hardware_message_request( const struct accept_hardware_message_request
*req
)
2872 fprintf( stderr
, " hw_id=%08x", req
->hw_id
);
2873 fprintf( stderr
, ", remove=%d", req
->remove
);
2876 static void dump_get_message_reply_request( const struct get_message_reply_request
*req
)
2878 fprintf( stderr
, " cancel=%d", req
->cancel
);
2881 static void dump_get_message_reply_reply( const struct get_message_reply_reply
*req
)
2883 dump_uint64( " result=", &req
->result
);
2884 dump_varargs_bytes( ", data=", cur_size
);
2887 static void dump_set_win_timer_request( const struct set_win_timer_request
*req
)
2889 fprintf( stderr
, " win=%08x", req
->win
);
2890 fprintf( stderr
, ", msg=%08x", req
->msg
);
2891 fprintf( stderr
, ", rate=%08x", req
->rate
);
2892 dump_uint64( ", id=", &req
->id
);
2893 dump_uint64( ", lparam=", &req
->lparam
);
2896 static void dump_set_win_timer_reply( const struct set_win_timer_reply
*req
)
2898 dump_uint64( " id=", &req
->id
);
2901 static void dump_kill_win_timer_request( const struct kill_win_timer_request
*req
)
2903 fprintf( stderr
, " win=%08x", req
->win
);
2904 dump_uint64( ", id=", &req
->id
);
2905 fprintf( stderr
, ", msg=%08x", req
->msg
);
2908 static void dump_is_window_hung_request( const struct is_window_hung_request
*req
)
2910 fprintf( stderr
, " win=%08x", req
->win
);
2913 static void dump_is_window_hung_reply( const struct is_window_hung_reply
*req
)
2915 fprintf( stderr
, " is_hung=%d", req
->is_hung
);
2918 static void dump_get_serial_info_request( const struct get_serial_info_request
*req
)
2920 fprintf( stderr
, " handle=%04x", req
->handle
);
2921 fprintf( stderr
, ", flags=%d", req
->flags
);
2924 static void dump_get_serial_info_reply( const struct get_serial_info_reply
*req
)
2926 fprintf( stderr
, " eventmask=%08x", req
->eventmask
);
2927 fprintf( stderr
, ", cookie=%08x", req
->cookie
);
2928 fprintf( stderr
, ", pending_write=%08x", req
->pending_write
);
2931 static void dump_set_serial_info_request( const struct set_serial_info_request
*req
)
2933 fprintf( stderr
, " handle=%04x", req
->handle
);
2934 fprintf( stderr
, ", flags=%d", req
->flags
);
2937 static void dump_register_async_request( const struct register_async_request
*req
)
2939 fprintf( stderr
, " type=%d", req
->type
);
2940 dump_async_data( ", async=", &req
->async
);
2941 fprintf( stderr
, ", count=%d", req
->count
);
2944 static void dump_cancel_async_request( const struct cancel_async_request
*req
)
2946 fprintf( stderr
, " handle=%04x", req
->handle
);
2947 dump_uint64( ", iosb=", &req
->iosb
);
2948 fprintf( stderr
, ", only_thread=%d", req
->only_thread
);
2951 static void dump_get_async_result_request( const struct get_async_result_request
*req
)
2953 dump_uint64( " user_arg=", &req
->user_arg
);
2956 static void dump_get_async_result_reply( const struct get_async_result_reply
*req
)
2958 fprintf( stderr
, " size=%u", req
->size
);
2959 dump_varargs_bytes( ", out_data=", cur_size
);
2962 static void dump_read_request( const struct read_request
*req
)
2964 dump_async_data( " async=", &req
->async
);
2965 dump_uint64( ", pos=", &req
->pos
);
2968 static void dump_read_reply( const struct read_reply
*req
)
2970 fprintf( stderr
, " wait=%04x", req
->wait
);
2971 fprintf( stderr
, ", options=%08x", req
->options
);
2972 dump_varargs_bytes( ", data=", cur_size
);
2975 static void dump_write_request( const struct write_request
*req
)
2977 dump_async_data( " async=", &req
->async
);
2978 dump_uint64( ", pos=", &req
->pos
);
2979 dump_varargs_bytes( ", data=", cur_size
);
2982 static void dump_write_reply( const struct write_reply
*req
)
2984 fprintf( stderr
, " wait=%04x", req
->wait
);
2985 fprintf( stderr
, ", options=%08x", req
->options
);
2986 fprintf( stderr
, ", size=%u", req
->size
);
2989 static void dump_ioctl_request( const struct ioctl_request
*req
)
2991 dump_ioctl_code( " code=", &req
->code
);
2992 dump_async_data( ", async=", &req
->async
);
2993 dump_varargs_bytes( ", in_data=", cur_size
);
2996 static void dump_ioctl_reply( const struct ioctl_reply
*req
)
2998 fprintf( stderr
, " wait=%04x", req
->wait
);
2999 fprintf( stderr
, ", options=%08x", req
->options
);
3000 dump_varargs_bytes( ", out_data=", cur_size
);
3003 static void dump_set_irp_result_request( const struct set_irp_result_request
*req
)
3005 fprintf( stderr
, " handle=%04x", req
->handle
);
3006 fprintf( stderr
, ", status=%08x", req
->status
);
3007 fprintf( stderr
, ", size=%u", req
->size
);
3008 dump_uint64( ", file_ptr=", &req
->file_ptr
);
3009 dump_varargs_bytes( ", data=", cur_size
);
3012 static void dump_create_named_pipe_request( const struct create_named_pipe_request
*req
)
3014 fprintf( stderr
, " access=%08x", req
->access
);
3015 fprintf( stderr
, ", options=%08x", req
->options
);
3016 fprintf( stderr
, ", sharing=%08x", req
->sharing
);
3017 fprintf( stderr
, ", maxinstances=%08x", req
->maxinstances
);
3018 fprintf( stderr
, ", outsize=%08x", req
->outsize
);
3019 fprintf( stderr
, ", insize=%08x", req
->insize
);
3020 dump_timeout( ", timeout=", &req
->timeout
);
3021 fprintf( stderr
, ", flags=%08x", req
->flags
);
3022 dump_varargs_object_attributes( ", objattr=", cur_size
);
3025 static void dump_create_named_pipe_reply( const struct create_named_pipe_reply
*req
)
3027 fprintf( stderr
, " handle=%04x", req
->handle
);
3030 static void dump_set_named_pipe_info_request( const struct set_named_pipe_info_request
*req
)
3032 fprintf( stderr
, " handle=%04x", req
->handle
);
3033 fprintf( stderr
, ", flags=%08x", req
->flags
);
3036 static void dump_create_window_request( const struct create_window_request
*req
)
3038 fprintf( stderr
, " parent=%08x", req
->parent
);
3039 fprintf( stderr
, ", owner=%08x", req
->owner
);
3040 fprintf( stderr
, ", atom=%04x", req
->atom
);
3041 dump_uint64( ", instance=", &req
->instance
);
3042 fprintf( stderr
, ", dpi=%d", req
->dpi
);
3043 fprintf( stderr
, ", awareness=%d", req
->awareness
);
3044 dump_varargs_unicode_str( ", class=", cur_size
);
3047 static void dump_create_window_reply( const struct create_window_reply
*req
)
3049 fprintf( stderr
, " handle=%08x", req
->handle
);
3050 fprintf( stderr
, ", parent=%08x", req
->parent
);
3051 fprintf( stderr
, ", owner=%08x", req
->owner
);
3052 fprintf( stderr
, ", extra=%d", req
->extra
);
3053 dump_uint64( ", class_ptr=", &req
->class_ptr
);
3054 fprintf( stderr
, ", dpi=%d", req
->dpi
);
3055 fprintf( stderr
, ", awareness=%d", req
->awareness
);
3058 static void dump_destroy_window_request( const struct destroy_window_request
*req
)
3060 fprintf( stderr
, " handle=%08x", req
->handle
);
3063 static void dump_get_desktop_window_request( const struct get_desktop_window_request
*req
)
3065 fprintf( stderr
, " force=%d", req
->force
);
3068 static void dump_get_desktop_window_reply( const struct get_desktop_window_reply
*req
)
3070 fprintf( stderr
, " top_window=%08x", req
->top_window
);
3071 fprintf( stderr
, ", msg_window=%08x", req
->msg_window
);
3074 static void dump_set_window_owner_request( const struct set_window_owner_request
*req
)
3076 fprintf( stderr
, " handle=%08x", req
->handle
);
3077 fprintf( stderr
, ", owner=%08x", req
->owner
);
3080 static void dump_set_window_owner_reply( const struct set_window_owner_reply
*req
)
3082 fprintf( stderr
, " full_owner=%08x", req
->full_owner
);
3083 fprintf( stderr
, ", prev_owner=%08x", req
->prev_owner
);
3086 static void dump_get_window_info_request( const struct get_window_info_request
*req
)
3088 fprintf( stderr
, " handle=%08x", req
->handle
);
3091 static void dump_get_window_info_reply( const struct get_window_info_reply
*req
)
3093 fprintf( stderr
, " full_handle=%08x", req
->full_handle
);
3094 fprintf( stderr
, ", last_active=%08x", req
->last_active
);
3095 fprintf( stderr
, ", pid=%04x", req
->pid
);
3096 fprintf( stderr
, ", tid=%04x", req
->tid
);
3097 fprintf( stderr
, ", atom=%04x", req
->atom
);
3098 fprintf( stderr
, ", is_unicode=%d", req
->is_unicode
);
3099 fprintf( stderr
, ", dpi=%d", req
->dpi
);
3100 fprintf( stderr
, ", awareness=%d", req
->awareness
);
3103 static void dump_set_window_info_request( const struct set_window_info_request
*req
)
3105 fprintf( stderr
, " flags=%04x", req
->flags
);
3106 fprintf( stderr
, ", is_unicode=%d", req
->is_unicode
);
3107 fprintf( stderr
, ", handle=%08x", req
->handle
);
3108 fprintf( stderr
, ", style=%08x", req
->style
);
3109 fprintf( stderr
, ", ex_style=%08x", req
->ex_style
);
3110 fprintf( stderr
, ", id=%08x", req
->id
);
3111 dump_uint64( ", instance=", &req
->instance
);
3112 dump_uint64( ", user_data=", &req
->user_data
);
3113 fprintf( stderr
, ", extra_offset=%d", req
->extra_offset
);
3114 fprintf( stderr
, ", extra_size=%u", req
->extra_size
);
3115 dump_uint64( ", extra_value=", &req
->extra_value
);
3118 static void dump_set_window_info_reply( const struct set_window_info_reply
*req
)
3120 fprintf( stderr
, " old_style=%08x", req
->old_style
);
3121 fprintf( stderr
, ", old_ex_style=%08x", req
->old_ex_style
);
3122 dump_uint64( ", old_instance=", &req
->old_instance
);
3123 dump_uint64( ", old_user_data=", &req
->old_user_data
);
3124 dump_uint64( ", old_extra_value=", &req
->old_extra_value
);
3125 fprintf( stderr
, ", old_id=%08x", req
->old_id
);
3128 static void dump_set_parent_request( const struct set_parent_request
*req
)
3130 fprintf( stderr
, " handle=%08x", req
->handle
);
3131 fprintf( stderr
, ", parent=%08x", req
->parent
);
3134 static void dump_set_parent_reply( const struct set_parent_reply
*req
)
3136 fprintf( stderr
, " old_parent=%08x", req
->old_parent
);
3137 fprintf( stderr
, ", full_parent=%08x", req
->full_parent
);
3138 fprintf( stderr
, ", dpi=%d", req
->dpi
);
3139 fprintf( stderr
, ", awareness=%d", req
->awareness
);
3142 static void dump_get_window_parents_request( const struct get_window_parents_request
*req
)
3144 fprintf( stderr
, " handle=%08x", req
->handle
);
3147 static void dump_get_window_parents_reply( const struct get_window_parents_reply
*req
)
3149 fprintf( stderr
, " count=%d", req
->count
);
3150 dump_varargs_user_handles( ", parents=", cur_size
);
3153 static void dump_get_window_children_request( const struct get_window_children_request
*req
)
3155 fprintf( stderr
, " desktop=%04x", req
->desktop
);
3156 fprintf( stderr
, ", parent=%08x", req
->parent
);
3157 fprintf( stderr
, ", atom=%04x", req
->atom
);
3158 fprintf( stderr
, ", tid=%04x", req
->tid
);
3159 dump_varargs_unicode_str( ", class=", cur_size
);
3162 static void dump_get_window_children_reply( const struct get_window_children_reply
*req
)
3164 fprintf( stderr
, " count=%d", req
->count
);
3165 dump_varargs_user_handles( ", children=", cur_size
);
3168 static void dump_get_window_children_from_point_request( const struct get_window_children_from_point_request
*req
)
3170 fprintf( stderr
, " parent=%08x", req
->parent
);
3171 fprintf( stderr
, ", x=%d", req
->x
);
3172 fprintf( stderr
, ", y=%d", req
->y
);
3173 fprintf( stderr
, ", dpi=%d", req
->dpi
);
3176 static void dump_get_window_children_from_point_reply( const struct get_window_children_from_point_reply
*req
)
3178 fprintf( stderr
, " count=%d", req
->count
);
3179 dump_varargs_user_handles( ", children=", cur_size
);
3182 static void dump_get_window_tree_request( const struct get_window_tree_request
*req
)
3184 fprintf( stderr
, " handle=%08x", req
->handle
);
3187 static void dump_get_window_tree_reply( const struct get_window_tree_reply
*req
)
3189 fprintf( stderr
, " parent=%08x", req
->parent
);
3190 fprintf( stderr
, ", owner=%08x", req
->owner
);
3191 fprintf( stderr
, ", next_sibling=%08x", req
->next_sibling
);
3192 fprintf( stderr
, ", prev_sibling=%08x", req
->prev_sibling
);
3193 fprintf( stderr
, ", first_sibling=%08x", req
->first_sibling
);
3194 fprintf( stderr
, ", last_sibling=%08x", req
->last_sibling
);
3195 fprintf( stderr
, ", first_child=%08x", req
->first_child
);
3196 fprintf( stderr
, ", last_child=%08x", req
->last_child
);
3199 static void dump_set_window_pos_request( const struct set_window_pos_request
*req
)
3201 fprintf( stderr
, " swp_flags=%04x", req
->swp_flags
);
3202 fprintf( stderr
, ", paint_flags=%04x", req
->paint_flags
);
3203 fprintf( stderr
, ", handle=%08x", req
->handle
);
3204 fprintf( stderr
, ", previous=%08x", req
->previous
);
3205 dump_rectangle( ", window=", &req
->window
);
3206 dump_rectangle( ", client=", &req
->client
);
3207 dump_varargs_rectangles( ", valid=", cur_size
);
3210 static void dump_set_window_pos_reply( const struct set_window_pos_reply
*req
)
3212 fprintf( stderr
, " new_style=%08x", req
->new_style
);
3213 fprintf( stderr
, ", new_ex_style=%08x", req
->new_ex_style
);
3214 fprintf( stderr
, ", surface_win=%08x", req
->surface_win
);
3215 fprintf( stderr
, ", needs_update=%d", req
->needs_update
);
3218 static void dump_get_window_rectangles_request( const struct get_window_rectangles_request
*req
)
3220 fprintf( stderr
, " handle=%08x", req
->handle
);
3221 fprintf( stderr
, ", relative=%d", req
->relative
);
3222 fprintf( stderr
, ", dpi=%d", req
->dpi
);
3225 static void dump_get_window_rectangles_reply( const struct get_window_rectangles_reply
*req
)
3227 dump_rectangle( " window=", &req
->window
);
3228 dump_rectangle( ", client=", &req
->client
);
3231 static void dump_get_window_text_request( const struct get_window_text_request
*req
)
3233 fprintf( stderr
, " handle=%08x", req
->handle
);
3236 static void dump_get_window_text_reply( const struct get_window_text_reply
*req
)
3238 fprintf( stderr
, " length=%u", req
->length
);
3239 dump_varargs_unicode_str( ", text=", cur_size
);
3242 static void dump_set_window_text_request( const struct set_window_text_request
*req
)
3244 fprintf( stderr
, " handle=%08x", req
->handle
);
3245 dump_varargs_unicode_str( ", text=", cur_size
);
3248 static void dump_get_windows_offset_request( const struct get_windows_offset_request
*req
)
3250 fprintf( stderr
, " from=%08x", req
->from
);
3251 fprintf( stderr
, ", to=%08x", req
->to
);
3252 fprintf( stderr
, ", dpi=%d", req
->dpi
);
3255 static void dump_get_windows_offset_reply( const struct get_windows_offset_reply
*req
)
3257 fprintf( stderr
, " x=%d", req
->x
);
3258 fprintf( stderr
, ", y=%d", req
->y
);
3259 fprintf( stderr
, ", mirror=%d", req
->mirror
);
3262 static void dump_get_visible_region_request( const struct get_visible_region_request
*req
)
3264 fprintf( stderr
, " window=%08x", req
->window
);
3265 fprintf( stderr
, ", flags=%08x", req
->flags
);
3268 static void dump_get_visible_region_reply( const struct get_visible_region_reply
*req
)
3270 fprintf( stderr
, " top_win=%08x", req
->top_win
);
3271 dump_rectangle( ", top_rect=", &req
->top_rect
);
3272 dump_rectangle( ", win_rect=", &req
->win_rect
);
3273 fprintf( stderr
, ", paint_flags=%08x", req
->paint_flags
);
3274 fprintf( stderr
, ", total_size=%u", req
->total_size
);
3275 dump_varargs_rectangles( ", region=", cur_size
);
3278 static void dump_get_surface_region_request( const struct get_surface_region_request
*req
)
3280 fprintf( stderr
, " window=%08x", req
->window
);
3283 static void dump_get_surface_region_reply( const struct get_surface_region_reply
*req
)
3285 dump_rectangle( " visible_rect=", &req
->visible_rect
);
3286 fprintf( stderr
, ", total_size=%u", req
->total_size
);
3287 dump_varargs_rectangles( ", region=", cur_size
);
3290 static void dump_get_window_region_request( const struct get_window_region_request
*req
)
3292 fprintf( stderr
, " window=%08x", req
->window
);
3295 static void dump_get_window_region_reply( const struct get_window_region_reply
*req
)
3297 fprintf( stderr
, " total_size=%u", req
->total_size
);
3298 dump_varargs_rectangles( ", region=", cur_size
);
3301 static void dump_set_window_region_request( const struct set_window_region_request
*req
)
3303 fprintf( stderr
, " window=%08x", req
->window
);
3304 fprintf( stderr
, ", redraw=%d", req
->redraw
);
3305 dump_varargs_rectangles( ", region=", cur_size
);
3308 static void dump_get_update_region_request( const struct get_update_region_request
*req
)
3310 fprintf( stderr
, " window=%08x", req
->window
);
3311 fprintf( stderr
, ", from_child=%08x", req
->from_child
);
3312 fprintf( stderr
, ", flags=%08x", req
->flags
);
3315 static void dump_get_update_region_reply( const struct get_update_region_reply
*req
)
3317 fprintf( stderr
, " child=%08x", req
->child
);
3318 fprintf( stderr
, ", flags=%08x", req
->flags
);
3319 fprintf( stderr
, ", total_size=%u", req
->total_size
);
3320 dump_varargs_rectangles( ", region=", cur_size
);
3323 static void dump_update_window_zorder_request( const struct update_window_zorder_request
*req
)
3325 fprintf( stderr
, " window=%08x", req
->window
);
3326 dump_rectangle( ", rect=", &req
->rect
);
3329 static void dump_redraw_window_request( const struct redraw_window_request
*req
)
3331 fprintf( stderr
, " window=%08x", req
->window
);
3332 fprintf( stderr
, ", flags=%08x", req
->flags
);
3333 dump_varargs_rectangles( ", region=", cur_size
);
3336 static void dump_set_window_property_request( const struct set_window_property_request
*req
)
3338 fprintf( stderr
, " window=%08x", req
->window
);
3339 dump_uint64( ", data=", &req
->data
);
3340 fprintf( stderr
, ", atom=%04x", req
->atom
);
3341 dump_varargs_unicode_str( ", name=", cur_size
);
3344 static void dump_remove_window_property_request( const struct remove_window_property_request
*req
)
3346 fprintf( stderr
, " window=%08x", req
->window
);
3347 fprintf( stderr
, ", atom=%04x", req
->atom
);
3348 dump_varargs_unicode_str( ", name=", cur_size
);
3351 static void dump_remove_window_property_reply( const struct remove_window_property_reply
*req
)
3353 dump_uint64( " data=", &req
->data
);
3356 static void dump_get_window_property_request( const struct get_window_property_request
*req
)
3358 fprintf( stderr
, " window=%08x", req
->window
);
3359 fprintf( stderr
, ", atom=%04x", req
->atom
);
3360 dump_varargs_unicode_str( ", name=", cur_size
);
3363 static void dump_get_window_property_reply( const struct get_window_property_reply
*req
)
3365 dump_uint64( " data=", &req
->data
);
3368 static void dump_get_window_properties_request( const struct get_window_properties_request
*req
)
3370 fprintf( stderr
, " window=%08x", req
->window
);
3373 static void dump_get_window_properties_reply( const struct get_window_properties_reply
*req
)
3375 fprintf( stderr
, " total=%d", req
->total
);
3376 dump_varargs_properties( ", props=", cur_size
);
3379 static void dump_create_winstation_request( const struct create_winstation_request
*req
)
3381 fprintf( stderr
, " flags=%08x", req
->flags
);
3382 fprintf( stderr
, ", access=%08x", req
->access
);
3383 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3384 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
3385 dump_varargs_unicode_str( ", name=", cur_size
);
3388 static void dump_create_winstation_reply( const struct create_winstation_reply
*req
)
3390 fprintf( stderr
, " handle=%04x", req
->handle
);
3393 static void dump_open_winstation_request( const struct open_winstation_request
*req
)
3395 fprintf( stderr
, " access=%08x", req
->access
);
3396 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3397 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
3398 dump_varargs_unicode_str( ", name=", cur_size
);
3401 static void dump_open_winstation_reply( const struct open_winstation_reply
*req
)
3403 fprintf( stderr
, " handle=%04x", req
->handle
);
3406 static void dump_close_winstation_request( const struct close_winstation_request
*req
)
3408 fprintf( stderr
, " handle=%04x", req
->handle
);
3411 static void dump_get_process_winstation_request( const struct get_process_winstation_request
*req
)
3415 static void dump_get_process_winstation_reply( const struct get_process_winstation_reply
*req
)
3417 fprintf( stderr
, " handle=%04x", req
->handle
);
3420 static void dump_set_process_winstation_request( const struct set_process_winstation_request
*req
)
3422 fprintf( stderr
, " handle=%04x", req
->handle
);
3425 static void dump_enum_winstation_request( const struct enum_winstation_request
*req
)
3427 fprintf( stderr
, " index=%08x", req
->index
);
3430 static void dump_enum_winstation_reply( const struct enum_winstation_reply
*req
)
3432 fprintf( stderr
, " next=%08x", req
->next
);
3433 dump_varargs_unicode_str( ", name=", cur_size
);
3436 static void dump_create_desktop_request( const struct create_desktop_request
*req
)
3438 fprintf( stderr
, " flags=%08x", req
->flags
);
3439 fprintf( stderr
, ", access=%08x", req
->access
);
3440 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3441 dump_varargs_unicode_str( ", name=", cur_size
);
3444 static void dump_create_desktop_reply( const struct create_desktop_reply
*req
)
3446 fprintf( stderr
, " handle=%04x", req
->handle
);
3449 static void dump_open_desktop_request( const struct open_desktop_request
*req
)
3451 fprintf( stderr
, " winsta=%04x", req
->winsta
);
3452 fprintf( stderr
, ", flags=%08x", req
->flags
);
3453 fprintf( stderr
, ", access=%08x", req
->access
);
3454 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3455 dump_varargs_unicode_str( ", name=", cur_size
);
3458 static void dump_open_desktop_reply( const struct open_desktop_reply
*req
)
3460 fprintf( stderr
, " handle=%04x", req
->handle
);
3463 static void dump_open_input_desktop_request( const struct open_input_desktop_request
*req
)
3465 fprintf( stderr
, " flags=%08x", req
->flags
);
3466 fprintf( stderr
, ", access=%08x", req
->access
);
3467 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3470 static void dump_open_input_desktop_reply( const struct open_input_desktop_reply
*req
)
3472 fprintf( stderr
, " handle=%04x", req
->handle
);
3475 static void dump_close_desktop_request( const struct close_desktop_request
*req
)
3477 fprintf( stderr
, " handle=%04x", req
->handle
);
3480 static void dump_get_thread_desktop_request( const struct get_thread_desktop_request
*req
)
3482 fprintf( stderr
, " tid=%04x", req
->tid
);
3485 static void dump_get_thread_desktop_reply( const struct get_thread_desktop_reply
*req
)
3487 fprintf( stderr
, " handle=%04x", req
->handle
);
3490 static void dump_set_thread_desktop_request( const struct set_thread_desktop_request
*req
)
3492 fprintf( stderr
, " handle=%04x", req
->handle
);
3495 static void dump_enum_desktop_request( const struct enum_desktop_request
*req
)
3497 fprintf( stderr
, " winstation=%04x", req
->winstation
);
3498 fprintf( stderr
, ", index=%08x", req
->index
);
3501 static void dump_enum_desktop_reply( const struct enum_desktop_reply
*req
)
3503 fprintf( stderr
, " next=%08x", req
->next
);
3504 dump_varargs_unicode_str( ", name=", cur_size
);
3507 static void dump_set_user_object_info_request( const struct set_user_object_info_request
*req
)
3509 fprintf( stderr
, " handle=%04x", req
->handle
);
3510 fprintf( stderr
, ", flags=%08x", req
->flags
);
3511 fprintf( stderr
, ", obj_flags=%08x", req
->obj_flags
);
3514 static void dump_set_user_object_info_reply( const struct set_user_object_info_reply
*req
)
3516 fprintf( stderr
, " is_desktop=%d", req
->is_desktop
);
3517 fprintf( stderr
, ", old_obj_flags=%08x", req
->old_obj_flags
);
3518 dump_varargs_unicode_str( ", name=", cur_size
);
3521 static void dump_register_hotkey_request( const struct register_hotkey_request
*req
)
3523 fprintf( stderr
, " window=%08x", req
->window
);
3524 fprintf( stderr
, ", id=%d", req
->id
);
3525 fprintf( stderr
, ", flags=%08x", req
->flags
);
3526 fprintf( stderr
, ", vkey=%08x", req
->vkey
);
3529 static void dump_register_hotkey_reply( const struct register_hotkey_reply
*req
)
3531 fprintf( stderr
, " replaced=%d", req
->replaced
);
3532 fprintf( stderr
, ", flags=%08x", req
->flags
);
3533 fprintf( stderr
, ", vkey=%08x", req
->vkey
);
3536 static void dump_unregister_hotkey_request( const struct unregister_hotkey_request
*req
)
3538 fprintf( stderr
, " window=%08x", req
->window
);
3539 fprintf( stderr
, ", id=%d", req
->id
);
3542 static void dump_unregister_hotkey_reply( const struct unregister_hotkey_reply
*req
)
3544 fprintf( stderr
, " flags=%08x", req
->flags
);
3545 fprintf( stderr
, ", vkey=%08x", req
->vkey
);
3548 static void dump_attach_thread_input_request( const struct attach_thread_input_request
*req
)
3550 fprintf( stderr
, " tid_from=%04x", req
->tid_from
);
3551 fprintf( stderr
, ", tid_to=%04x", req
->tid_to
);
3552 fprintf( stderr
, ", attach=%d", req
->attach
);
3555 static void dump_get_thread_input_request( const struct get_thread_input_request
*req
)
3557 fprintf( stderr
, " tid=%04x", req
->tid
);
3560 static void dump_get_thread_input_reply( const struct get_thread_input_reply
*req
)
3562 fprintf( stderr
, " focus=%08x", req
->focus
);
3563 fprintf( stderr
, ", capture=%08x", req
->capture
);
3564 fprintf( stderr
, ", active=%08x", req
->active
);
3565 fprintf( stderr
, ", foreground=%08x", req
->foreground
);
3566 fprintf( stderr
, ", menu_owner=%08x", req
->menu_owner
);
3567 fprintf( stderr
, ", move_size=%08x", req
->move_size
);
3568 fprintf( stderr
, ", caret=%08x", req
->caret
);
3569 fprintf( stderr
, ", cursor=%08x", req
->cursor
);
3570 fprintf( stderr
, ", show_count=%d", req
->show_count
);
3571 dump_rectangle( ", rect=", &req
->rect
);
3574 static void dump_get_last_input_time_request( const struct get_last_input_time_request
*req
)
3578 static void dump_get_last_input_time_reply( const struct get_last_input_time_reply
*req
)
3580 fprintf( stderr
, " time=%08x", req
->time
);
3583 static void dump_get_key_state_request( const struct get_key_state_request
*req
)
3585 fprintf( stderr
, " tid=%04x", req
->tid
);
3586 fprintf( stderr
, ", key=%d", req
->key
);
3589 static void dump_get_key_state_reply( const struct get_key_state_reply
*req
)
3591 fprintf( stderr
, " state=%02x", req
->state
);
3592 dump_varargs_bytes( ", keystate=", cur_size
);
3595 static void dump_set_key_state_request( const struct set_key_state_request
*req
)
3597 fprintf( stderr
, " tid=%04x", req
->tid
);
3598 fprintf( stderr
, ", async=%d", req
->async
);
3599 dump_varargs_bytes( ", keystate=", cur_size
);
3602 static void dump_set_foreground_window_request( const struct set_foreground_window_request
*req
)
3604 fprintf( stderr
, " handle=%08x", req
->handle
);
3607 static void dump_set_foreground_window_reply( const struct set_foreground_window_reply
*req
)
3609 fprintf( stderr
, " previous=%08x", req
->previous
);
3610 fprintf( stderr
, ", send_msg_old=%d", req
->send_msg_old
);
3611 fprintf( stderr
, ", send_msg_new=%d", req
->send_msg_new
);
3614 static void dump_set_focus_window_request( const struct set_focus_window_request
*req
)
3616 fprintf( stderr
, " handle=%08x", req
->handle
);
3619 static void dump_set_focus_window_reply( const struct set_focus_window_reply
*req
)
3621 fprintf( stderr
, " previous=%08x", req
->previous
);
3624 static void dump_set_active_window_request( const struct set_active_window_request
*req
)
3626 fprintf( stderr
, " handle=%08x", req
->handle
);
3629 static void dump_set_active_window_reply( const struct set_active_window_reply
*req
)
3631 fprintf( stderr
, " previous=%08x", req
->previous
);
3634 static void dump_set_capture_window_request( const struct set_capture_window_request
*req
)
3636 fprintf( stderr
, " handle=%08x", req
->handle
);
3637 fprintf( stderr
, ", flags=%08x", req
->flags
);
3640 static void dump_set_capture_window_reply( const struct set_capture_window_reply
*req
)
3642 fprintf( stderr
, " previous=%08x", req
->previous
);
3643 fprintf( stderr
, ", full_handle=%08x", req
->full_handle
);
3646 static void dump_set_caret_window_request( const struct set_caret_window_request
*req
)
3648 fprintf( stderr
, " handle=%08x", req
->handle
);
3649 fprintf( stderr
, ", width=%d", req
->width
);
3650 fprintf( stderr
, ", height=%d", req
->height
);
3653 static void dump_set_caret_window_reply( const struct set_caret_window_reply
*req
)
3655 fprintf( stderr
, " previous=%08x", req
->previous
);
3656 dump_rectangle( ", old_rect=", &req
->old_rect
);
3657 fprintf( stderr
, ", old_hide=%d", req
->old_hide
);
3658 fprintf( stderr
, ", old_state=%d", req
->old_state
);
3661 static void dump_set_caret_info_request( const struct set_caret_info_request
*req
)
3663 fprintf( stderr
, " flags=%08x", req
->flags
);
3664 fprintf( stderr
, ", handle=%08x", req
->handle
);
3665 fprintf( stderr
, ", x=%d", req
->x
);
3666 fprintf( stderr
, ", y=%d", req
->y
);
3667 fprintf( stderr
, ", hide=%d", req
->hide
);
3668 fprintf( stderr
, ", state=%d", req
->state
);
3671 static void dump_set_caret_info_reply( const struct set_caret_info_reply
*req
)
3673 fprintf( stderr
, " full_handle=%08x", req
->full_handle
);
3674 dump_rectangle( ", old_rect=", &req
->old_rect
);
3675 fprintf( stderr
, ", old_hide=%d", req
->old_hide
);
3676 fprintf( stderr
, ", old_state=%d", req
->old_state
);
3679 static void dump_set_hook_request( const struct set_hook_request
*req
)
3681 fprintf( stderr
, " id=%d", req
->id
);
3682 fprintf( stderr
, ", pid=%04x", req
->pid
);
3683 fprintf( stderr
, ", tid=%04x", req
->tid
);
3684 fprintf( stderr
, ", event_min=%d", req
->event_min
);
3685 fprintf( stderr
, ", event_max=%d", req
->event_max
);
3686 dump_uint64( ", proc=", &req
->proc
);
3687 fprintf( stderr
, ", flags=%d", req
->flags
);
3688 fprintf( stderr
, ", unicode=%d", req
->unicode
);
3689 dump_varargs_unicode_str( ", module=", cur_size
);
3692 static void dump_set_hook_reply( const struct set_hook_reply
*req
)
3694 fprintf( stderr
, " handle=%08x", req
->handle
);
3695 fprintf( stderr
, ", active_hooks=%08x", req
->active_hooks
);
3698 static void dump_remove_hook_request( const struct remove_hook_request
*req
)
3700 fprintf( stderr
, " handle=%08x", req
->handle
);
3701 dump_uint64( ", proc=", &req
->proc
);
3702 fprintf( stderr
, ", id=%d", req
->id
);
3705 static void dump_remove_hook_reply( const struct remove_hook_reply
*req
)
3707 fprintf( stderr
, " active_hooks=%08x", req
->active_hooks
);
3710 static void dump_start_hook_chain_request( const struct start_hook_chain_request
*req
)
3712 fprintf( stderr
, " id=%d", req
->id
);
3713 fprintf( stderr
, ", event=%d", req
->event
);
3714 fprintf( stderr
, ", window=%08x", req
->window
);
3715 fprintf( stderr
, ", object_id=%d", req
->object_id
);
3716 fprintf( stderr
, ", child_id=%d", req
->child_id
);
3719 static void dump_start_hook_chain_reply( const struct start_hook_chain_reply
*req
)
3721 fprintf( stderr
, " handle=%08x", req
->handle
);
3722 fprintf( stderr
, ", pid=%04x", req
->pid
);
3723 fprintf( stderr
, ", tid=%04x", req
->tid
);
3724 fprintf( stderr
, ", unicode=%d", req
->unicode
);
3725 dump_uint64( ", proc=", &req
->proc
);
3726 fprintf( stderr
, ", active_hooks=%08x", req
->active_hooks
);
3727 dump_varargs_unicode_str( ", module=", cur_size
);
3730 static void dump_finish_hook_chain_request( const struct finish_hook_chain_request
*req
)
3732 fprintf( stderr
, " id=%d", req
->id
);
3735 static void dump_get_hook_info_request( const struct get_hook_info_request
*req
)
3737 fprintf( stderr
, " handle=%08x", req
->handle
);
3738 fprintf( stderr
, ", get_next=%d", req
->get_next
);
3739 fprintf( stderr
, ", event=%d", req
->event
);
3740 fprintf( stderr
, ", window=%08x", req
->window
);
3741 fprintf( stderr
, ", object_id=%d", req
->object_id
);
3742 fprintf( stderr
, ", child_id=%d", req
->child_id
);
3745 static void dump_get_hook_info_reply( const struct get_hook_info_reply
*req
)
3747 fprintf( stderr
, " handle=%08x", req
->handle
);
3748 fprintf( stderr
, ", id=%d", req
->id
);
3749 fprintf( stderr
, ", pid=%04x", req
->pid
);
3750 fprintf( stderr
, ", tid=%04x", req
->tid
);
3751 dump_uint64( ", proc=", &req
->proc
);
3752 fprintf( stderr
, ", unicode=%d", req
->unicode
);
3753 dump_varargs_unicode_str( ", module=", cur_size
);
3756 static void dump_create_class_request( const struct create_class_request
*req
)
3758 fprintf( stderr
, " local=%d", req
->local
);
3759 fprintf( stderr
, ", atom=%04x", req
->atom
);
3760 fprintf( stderr
, ", style=%08x", req
->style
);
3761 dump_uint64( ", instance=", &req
->instance
);
3762 fprintf( stderr
, ", extra=%d", req
->extra
);
3763 fprintf( stderr
, ", win_extra=%d", req
->win_extra
);
3764 dump_uint64( ", client_ptr=", &req
->client_ptr
);
3765 fprintf( stderr
, ", name_offset=%u", req
->name_offset
);
3766 dump_varargs_unicode_str( ", name=", cur_size
);
3769 static void dump_create_class_reply( const struct create_class_reply
*req
)
3771 fprintf( stderr
, " atom=%04x", req
->atom
);
3774 static void dump_destroy_class_request( const struct destroy_class_request
*req
)
3776 fprintf( stderr
, " atom=%04x", req
->atom
);
3777 dump_uint64( ", instance=", &req
->instance
);
3778 dump_varargs_unicode_str( ", name=", cur_size
);
3781 static void dump_destroy_class_reply( const struct destroy_class_reply
*req
)
3783 dump_uint64( " client_ptr=", &req
->client_ptr
);
3786 static void dump_set_class_info_request( const struct set_class_info_request
*req
)
3788 fprintf( stderr
, " window=%08x", req
->window
);
3789 fprintf( stderr
, ", flags=%08x", req
->flags
);
3790 fprintf( stderr
, ", atom=%04x", req
->atom
);
3791 fprintf( stderr
, ", style=%08x", req
->style
);
3792 fprintf( stderr
, ", win_extra=%d", req
->win_extra
);
3793 dump_uint64( ", instance=", &req
->instance
);
3794 fprintf( stderr
, ", extra_offset=%d", req
->extra_offset
);
3795 fprintf( stderr
, ", extra_size=%u", req
->extra_size
);
3796 dump_uint64( ", extra_value=", &req
->extra_value
);
3799 static void dump_set_class_info_reply( const struct set_class_info_reply
*req
)
3801 fprintf( stderr
, " old_atom=%04x", req
->old_atom
);
3802 fprintf( stderr
, ", base_atom=%04x", req
->base_atom
);
3803 dump_uint64( ", old_instance=", &req
->old_instance
);
3804 dump_uint64( ", old_extra_value=", &req
->old_extra_value
);
3805 fprintf( stderr
, ", old_style=%08x", req
->old_style
);
3806 fprintf( stderr
, ", old_extra=%d", req
->old_extra
);
3807 fprintf( stderr
, ", old_win_extra=%d", req
->old_win_extra
);
3810 static void dump_open_clipboard_request( const struct open_clipboard_request
*req
)
3812 fprintf( stderr
, " window=%08x", req
->window
);
3815 static void dump_open_clipboard_reply( const struct open_clipboard_reply
*req
)
3817 fprintf( stderr
, " owner=%08x", req
->owner
);
3820 static void dump_close_clipboard_request( const struct close_clipboard_request
*req
)
3824 static void dump_close_clipboard_reply( const struct close_clipboard_reply
*req
)
3826 fprintf( stderr
, " viewer=%08x", req
->viewer
);
3827 fprintf( stderr
, ", owner=%08x", req
->owner
);
3830 static void dump_empty_clipboard_request( const struct empty_clipboard_request
*req
)
3834 static void dump_set_clipboard_data_request( const struct set_clipboard_data_request
*req
)
3836 fprintf( stderr
, " format=%08x", req
->format
);
3837 fprintf( stderr
, ", lcid=%08x", req
->lcid
);
3838 dump_varargs_bytes( ", data=", cur_size
);
3841 static void dump_set_clipboard_data_reply( const struct set_clipboard_data_reply
*req
)
3843 fprintf( stderr
, " seqno=%08x", req
->seqno
);
3846 static void dump_get_clipboard_data_request( const struct get_clipboard_data_request
*req
)
3848 fprintf( stderr
, " format=%08x", req
->format
);
3849 fprintf( stderr
, ", render=%d", req
->render
);
3850 fprintf( stderr
, ", cached=%d", req
->cached
);
3851 fprintf( stderr
, ", seqno=%08x", req
->seqno
);
3854 static void dump_get_clipboard_data_reply( const struct get_clipboard_data_reply
*req
)
3856 fprintf( stderr
, " from=%08x", req
->from
);
3857 fprintf( stderr
, ", owner=%08x", req
->owner
);
3858 fprintf( stderr
, ", seqno=%08x", req
->seqno
);
3859 fprintf( stderr
, ", total=%u", req
->total
);
3860 dump_varargs_bytes( ", data=", cur_size
);
3863 static void dump_get_clipboard_formats_request( const struct get_clipboard_formats_request
*req
)
3865 fprintf( stderr
, " format=%08x", req
->format
);
3868 static void dump_get_clipboard_formats_reply( const struct get_clipboard_formats_reply
*req
)
3870 fprintf( stderr
, " count=%08x", req
->count
);
3871 dump_varargs_uints( ", formats=", cur_size
);
3874 static void dump_enum_clipboard_formats_request( const struct enum_clipboard_formats_request
*req
)
3876 fprintf( stderr
, " previous=%08x", req
->previous
);
3879 static void dump_enum_clipboard_formats_reply( const struct enum_clipboard_formats_reply
*req
)
3881 fprintf( stderr
, " format=%08x", req
->format
);
3884 static void dump_release_clipboard_request( const struct release_clipboard_request
*req
)
3886 fprintf( stderr
, " owner=%08x", req
->owner
);
3889 static void dump_release_clipboard_reply( const struct release_clipboard_reply
*req
)
3891 fprintf( stderr
, " viewer=%08x", req
->viewer
);
3892 fprintf( stderr
, ", owner=%08x", req
->owner
);
3895 static void dump_get_clipboard_info_request( const struct get_clipboard_info_request
*req
)
3899 static void dump_get_clipboard_info_reply( const struct get_clipboard_info_reply
*req
)
3901 fprintf( stderr
, " window=%08x", req
->window
);
3902 fprintf( stderr
, ", owner=%08x", req
->owner
);
3903 fprintf( stderr
, ", viewer=%08x", req
->viewer
);
3904 fprintf( stderr
, ", seqno=%08x", req
->seqno
);
3907 static void dump_set_clipboard_viewer_request( const struct set_clipboard_viewer_request
*req
)
3909 fprintf( stderr
, " viewer=%08x", req
->viewer
);
3910 fprintf( stderr
, ", previous=%08x", req
->previous
);
3913 static void dump_set_clipboard_viewer_reply( const struct set_clipboard_viewer_reply
*req
)
3915 fprintf( stderr
, " old_viewer=%08x", req
->old_viewer
);
3916 fprintf( stderr
, ", owner=%08x", req
->owner
);
3919 static void dump_add_clipboard_listener_request( const struct add_clipboard_listener_request
*req
)
3921 fprintf( stderr
, " window=%08x", req
->window
);
3924 static void dump_remove_clipboard_listener_request( const struct remove_clipboard_listener_request
*req
)
3926 fprintf( stderr
, " window=%08x", req
->window
);
3929 static void dump_open_token_request( const struct open_token_request
*req
)
3931 fprintf( stderr
, " handle=%04x", req
->handle
);
3932 fprintf( stderr
, ", access=%08x", req
->access
);
3933 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3934 fprintf( stderr
, ", flags=%08x", req
->flags
);
3937 static void dump_open_token_reply( const struct open_token_reply
*req
)
3939 fprintf( stderr
, " token=%04x", req
->token
);
3942 static void dump_set_global_windows_request( const struct set_global_windows_request
*req
)
3944 fprintf( stderr
, " flags=%08x", req
->flags
);
3945 fprintf( stderr
, ", shell_window=%08x", req
->shell_window
);
3946 fprintf( stderr
, ", shell_listview=%08x", req
->shell_listview
);
3947 fprintf( stderr
, ", progman_window=%08x", req
->progman_window
);
3948 fprintf( stderr
, ", taskman_window=%08x", req
->taskman_window
);
3951 static void dump_set_global_windows_reply( const struct set_global_windows_reply
*req
)
3953 fprintf( stderr
, " old_shell_window=%08x", req
->old_shell_window
);
3954 fprintf( stderr
, ", old_shell_listview=%08x", req
->old_shell_listview
);
3955 fprintf( stderr
, ", old_progman_window=%08x", req
->old_progman_window
);
3956 fprintf( stderr
, ", old_taskman_window=%08x", req
->old_taskman_window
);
3959 static void dump_adjust_token_privileges_request( const struct adjust_token_privileges_request
*req
)
3961 fprintf( stderr
, " handle=%04x", req
->handle
);
3962 fprintf( stderr
, ", disable_all=%d", req
->disable_all
);
3963 fprintf( stderr
, ", get_modified_state=%d", req
->get_modified_state
);
3964 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size
);
3967 static void dump_adjust_token_privileges_reply( const struct adjust_token_privileges_reply
*req
)
3969 fprintf( stderr
, " len=%08x", req
->len
);
3970 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size
);
3973 static void dump_get_token_privileges_request( const struct get_token_privileges_request
*req
)
3975 fprintf( stderr
, " handle=%04x", req
->handle
);
3978 static void dump_get_token_privileges_reply( const struct get_token_privileges_reply
*req
)
3980 fprintf( stderr
, " len=%08x", req
->len
);
3981 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size
);
3984 static void dump_check_token_privileges_request( const struct check_token_privileges_request
*req
)
3986 fprintf( stderr
, " handle=%04x", req
->handle
);
3987 fprintf( stderr
, ", all_required=%d", req
->all_required
);
3988 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size
);
3991 static void dump_check_token_privileges_reply( const struct check_token_privileges_reply
*req
)
3993 fprintf( stderr
, " has_privileges=%d", req
->has_privileges
);
3994 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size
);
3997 static void dump_duplicate_token_request( const struct duplicate_token_request
*req
)
3999 fprintf( stderr
, " handle=%04x", req
->handle
);
4000 fprintf( stderr
, ", access=%08x", req
->access
);
4001 fprintf( stderr
, ", primary=%d", req
->primary
);
4002 fprintf( stderr
, ", impersonation_level=%d", req
->impersonation_level
);
4003 dump_varargs_object_attributes( ", objattr=", cur_size
);
4006 static void dump_duplicate_token_reply( const struct duplicate_token_reply
*req
)
4008 fprintf( stderr
, " new_handle=%04x", req
->new_handle
);
4011 static void dump_access_check_request( const struct access_check_request
*req
)
4013 fprintf( stderr
, " handle=%04x", req
->handle
);
4014 fprintf( stderr
, ", desired_access=%08x", req
->desired_access
);
4015 fprintf( stderr
, ", mapping_read=%08x", req
->mapping_read
);
4016 fprintf( stderr
, ", mapping_write=%08x", req
->mapping_write
);
4017 fprintf( stderr
, ", mapping_execute=%08x", req
->mapping_execute
);
4018 fprintf( stderr
, ", mapping_all=%08x", req
->mapping_all
);
4019 dump_varargs_security_descriptor( ", sd=", cur_size
);
4022 static void dump_access_check_reply( const struct access_check_reply
*req
)
4024 fprintf( stderr
, " access_granted=%08x", req
->access_granted
);
4025 fprintf( stderr
, ", access_status=%08x", req
->access_status
);
4026 fprintf( stderr
, ", privileges_len=%08x", req
->privileges_len
);
4027 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size
);
4030 static void dump_get_token_sid_request( const struct get_token_sid_request
*req
)
4032 fprintf( stderr
, " handle=%04x", req
->handle
);
4033 fprintf( stderr
, ", which_sid=%08x", req
->which_sid
);
4036 static void dump_get_token_sid_reply( const struct get_token_sid_reply
*req
)
4038 fprintf( stderr
, " sid_len=%u", req
->sid_len
);
4039 dump_varargs_SID( ", sid=", cur_size
);
4042 static void dump_get_token_groups_request( const struct get_token_groups_request
*req
)
4044 fprintf( stderr
, " handle=%04x", req
->handle
);
4047 static void dump_get_token_groups_reply( const struct get_token_groups_reply
*req
)
4049 fprintf( stderr
, " user_len=%u", req
->user_len
);
4050 dump_varargs_token_groups( ", user=", cur_size
);
4053 static void dump_get_token_default_dacl_request( const struct get_token_default_dacl_request
*req
)
4055 fprintf( stderr
, " handle=%04x", req
->handle
);
4058 static void dump_get_token_default_dacl_reply( const struct get_token_default_dacl_reply
*req
)
4060 fprintf( stderr
, " acl_len=%u", req
->acl_len
);
4061 dump_varargs_ACL( ", acl=", cur_size
);
4064 static void dump_set_token_default_dacl_request( const struct set_token_default_dacl_request
*req
)
4066 fprintf( stderr
, " handle=%04x", req
->handle
);
4067 dump_varargs_ACL( ", acl=", cur_size
);
4070 static void dump_set_security_object_request( const struct set_security_object_request
*req
)
4072 fprintf( stderr
, " handle=%04x", req
->handle
);
4073 fprintf( stderr
, ", security_info=%08x", req
->security_info
);
4074 dump_varargs_security_descriptor( ", sd=", cur_size
);
4077 static void dump_get_security_object_request( const struct get_security_object_request
*req
)
4079 fprintf( stderr
, " handle=%04x", req
->handle
);
4080 fprintf( stderr
, ", security_info=%08x", req
->security_info
);
4083 static void dump_get_security_object_reply( const struct get_security_object_reply
*req
)
4085 fprintf( stderr
, " sd_len=%08x", req
->sd_len
);
4086 dump_varargs_security_descriptor( ", sd=", cur_size
);
4089 static void dump_get_system_handles_request( const struct get_system_handles_request
*req
)
4093 static void dump_get_system_handles_reply( const struct get_system_handles_reply
*req
)
4095 fprintf( stderr
, " count=%08x", req
->count
);
4096 dump_varargs_handle_infos( ", data=", cur_size
);
4099 static void dump_create_mailslot_request( const struct create_mailslot_request
*req
)
4101 fprintf( stderr
, " access=%08x", req
->access
);
4102 dump_timeout( ", read_timeout=", &req
->read_timeout
);
4103 fprintf( stderr
, ", max_msgsize=%08x", req
->max_msgsize
);
4104 dump_varargs_object_attributes( ", objattr=", cur_size
);
4107 static void dump_create_mailslot_reply( const struct create_mailslot_reply
*req
)
4109 fprintf( stderr
, " handle=%04x", req
->handle
);
4112 static void dump_set_mailslot_info_request( const struct set_mailslot_info_request
*req
)
4114 fprintf( stderr
, " handle=%04x", req
->handle
);
4115 dump_timeout( ", read_timeout=", &req
->read_timeout
);
4116 fprintf( stderr
, ", flags=%08x", req
->flags
);
4119 static void dump_set_mailslot_info_reply( const struct set_mailslot_info_reply
*req
)
4121 dump_timeout( " read_timeout=", &req
->read_timeout
);
4122 fprintf( stderr
, ", max_msgsize=%08x", req
->max_msgsize
);
4125 static void dump_create_directory_request( const struct create_directory_request
*req
)
4127 fprintf( stderr
, " access=%08x", req
->access
);
4128 dump_varargs_object_attributes( ", objattr=", cur_size
);
4131 static void dump_create_directory_reply( const struct create_directory_reply
*req
)
4133 fprintf( stderr
, " handle=%04x", req
->handle
);
4136 static void dump_open_directory_request( const struct open_directory_request
*req
)
4138 fprintf( stderr
, " access=%08x", req
->access
);
4139 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
4140 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
4141 dump_varargs_unicode_str( ", directory_name=", cur_size
);
4144 static void dump_open_directory_reply( const struct open_directory_reply
*req
)
4146 fprintf( stderr
, " handle=%04x", req
->handle
);
4149 static void dump_get_directory_entry_request( const struct get_directory_entry_request
*req
)
4151 fprintf( stderr
, " handle=%04x", req
->handle
);
4152 fprintf( stderr
, ", index=%08x", req
->index
);
4155 static void dump_get_directory_entry_reply( const struct get_directory_entry_reply
*req
)
4157 fprintf( stderr
, " name_len=%u", req
->name_len
);
4158 dump_varargs_unicode_str( ", name=", min(cur_size
,req
->name_len
) );
4159 dump_varargs_unicode_str( ", type=", cur_size
);
4162 static void dump_create_symlink_request( const struct create_symlink_request
*req
)
4164 fprintf( stderr
, " access=%08x", req
->access
);
4165 dump_varargs_object_attributes( ", objattr=", cur_size
);
4166 dump_varargs_unicode_str( ", target_name=", cur_size
);
4169 static void dump_create_symlink_reply( const struct create_symlink_reply
*req
)
4171 fprintf( stderr
, " handle=%04x", req
->handle
);
4174 static void dump_open_symlink_request( const struct open_symlink_request
*req
)
4176 fprintf( stderr
, " access=%08x", req
->access
);
4177 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
4178 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
4179 dump_varargs_unicode_str( ", name=", cur_size
);
4182 static void dump_open_symlink_reply( const struct open_symlink_reply
*req
)
4184 fprintf( stderr
, " handle=%04x", req
->handle
);
4187 static void dump_query_symlink_request( const struct query_symlink_request
*req
)
4189 fprintf( stderr
, " handle=%04x", req
->handle
);
4192 static void dump_query_symlink_reply( const struct query_symlink_reply
*req
)
4194 fprintf( stderr
, " total=%u", req
->total
);
4195 dump_varargs_unicode_str( ", target_name=", cur_size
);
4198 static void dump_get_object_info_request( const struct get_object_info_request
*req
)
4200 fprintf( stderr
, " handle=%04x", req
->handle
);
4203 static void dump_get_object_info_reply( const struct get_object_info_reply
*req
)
4205 fprintf( stderr
, " access=%08x", req
->access
);
4206 fprintf( stderr
, ", ref_count=%08x", req
->ref_count
);
4207 fprintf( stderr
, ", handle_count=%08x", req
->handle_count
);
4208 fprintf( stderr
, ", total=%u", req
->total
);
4209 dump_varargs_unicode_str( ", name=", cur_size
);
4212 static void dump_get_object_type_request( const struct get_object_type_request
*req
)
4214 fprintf( stderr
, " handle=%04x", req
->handle
);
4217 static void dump_get_object_type_reply( const struct get_object_type_reply
*req
)
4219 fprintf( stderr
, " total=%u", req
->total
);
4220 dump_varargs_unicode_str( ", type=", cur_size
);
4223 static void dump_unlink_object_request( const struct unlink_object_request
*req
)
4225 fprintf( stderr
, " handle=%04x", req
->handle
);
4228 static void dump_get_token_impersonation_level_request( const struct get_token_impersonation_level_request
*req
)
4230 fprintf( stderr
, " handle=%04x", req
->handle
);
4233 static void dump_get_token_impersonation_level_reply( const struct get_token_impersonation_level_reply
*req
)
4235 fprintf( stderr
, " impersonation_level=%d", req
->impersonation_level
);
4238 static void dump_allocate_locally_unique_id_request( const struct allocate_locally_unique_id_request
*req
)
4242 static void dump_allocate_locally_unique_id_reply( const struct allocate_locally_unique_id_reply
*req
)
4244 dump_luid( " luid=", &req
->luid
);
4247 static void dump_create_device_manager_request( const struct create_device_manager_request
*req
)
4249 fprintf( stderr
, " access=%08x", req
->access
);
4250 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
4253 static void dump_create_device_manager_reply( const struct create_device_manager_reply
*req
)
4255 fprintf( stderr
, " handle=%04x", req
->handle
);
4258 static void dump_create_device_request( const struct create_device_request
*req
)
4260 fprintf( stderr
, " access=%08x", req
->access
);
4261 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
4262 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
4263 dump_uint64( ", user_ptr=", &req
->user_ptr
);
4264 fprintf( stderr
, ", manager=%04x", req
->manager
);
4265 dump_varargs_unicode_str( ", name=", cur_size
);
4268 static void dump_create_device_reply( const struct create_device_reply
*req
)
4270 fprintf( stderr
, " handle=%04x", req
->handle
);
4273 static void dump_delete_device_request( const struct delete_device_request
*req
)
4275 fprintf( stderr
, " handle=%04x", req
->handle
);
4278 static void dump_get_next_device_request_request( const struct get_next_device_request_request
*req
)
4280 fprintf( stderr
, " manager=%04x", req
->manager
);
4281 fprintf( stderr
, ", prev=%04x", req
->prev
);
4282 fprintf( stderr
, ", status=%08x", req
->status
);
4285 static void dump_get_next_device_request_reply( const struct get_next_device_request_reply
*req
)
4287 dump_irp_params( " params=", &req
->params
);
4288 fprintf( stderr
, ", next=%04x", req
->next
);
4289 fprintf( stderr
, ", client_pid=%04x", req
->client_pid
);
4290 fprintf( stderr
, ", client_tid=%04x", req
->client_tid
);
4291 fprintf( stderr
, ", in_size=%u", req
->in_size
);
4292 fprintf( stderr
, ", out_size=%u", req
->out_size
);
4293 dump_varargs_bytes( ", next_data=", cur_size
);
4296 static void dump_make_process_system_request( const struct make_process_system_request
*req
)
4300 static void dump_make_process_system_reply( const struct make_process_system_reply
*req
)
4302 fprintf( stderr
, " event=%04x", req
->event
);
4305 static void dump_get_token_statistics_request( const struct get_token_statistics_request
*req
)
4307 fprintf( stderr
, " handle=%04x", req
->handle
);
4310 static void dump_get_token_statistics_reply( const struct get_token_statistics_reply
*req
)
4312 dump_luid( " token_id=", &req
->token_id
);
4313 dump_luid( ", modified_id=", &req
->modified_id
);
4314 fprintf( stderr
, ", primary=%d", req
->primary
);
4315 fprintf( stderr
, ", impersonation_level=%d", req
->impersonation_level
);
4316 fprintf( stderr
, ", group_count=%d", req
->group_count
);
4317 fprintf( stderr
, ", privilege_count=%d", req
->privilege_count
);
4320 static void dump_create_completion_request( const struct create_completion_request
*req
)
4322 fprintf( stderr
, " access=%08x", req
->access
);
4323 fprintf( stderr
, ", concurrent=%08x", req
->concurrent
);
4324 dump_varargs_object_attributes( ", objattr=", cur_size
);
4327 static void dump_create_completion_reply( const struct create_completion_reply
*req
)
4329 fprintf( stderr
, " handle=%04x", req
->handle
);
4332 static void dump_open_completion_request( const struct open_completion_request
*req
)
4334 fprintf( stderr
, " access=%08x", req
->access
);
4335 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
4336 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
4337 dump_varargs_unicode_str( ", filename=", cur_size
);
4340 static void dump_open_completion_reply( const struct open_completion_reply
*req
)
4342 fprintf( stderr
, " handle=%04x", req
->handle
);
4345 static void dump_add_completion_request( const struct add_completion_request
*req
)
4347 fprintf( stderr
, " handle=%04x", req
->handle
);
4348 dump_uint64( ", ckey=", &req
->ckey
);
4349 dump_uint64( ", cvalue=", &req
->cvalue
);
4350 dump_uint64( ", information=", &req
->information
);
4351 fprintf( stderr
, ", status=%08x", req
->status
);
4354 static void dump_remove_completion_request( const struct remove_completion_request
*req
)
4356 fprintf( stderr
, " handle=%04x", req
->handle
);
4359 static void dump_remove_completion_reply( const struct remove_completion_reply
*req
)
4361 dump_uint64( " ckey=", &req
->ckey
);
4362 dump_uint64( ", cvalue=", &req
->cvalue
);
4363 dump_uint64( ", information=", &req
->information
);
4364 fprintf( stderr
, ", status=%08x", req
->status
);
4367 static void dump_query_completion_request( const struct query_completion_request
*req
)
4369 fprintf( stderr
, " handle=%04x", req
->handle
);
4372 static void dump_query_completion_reply( const struct query_completion_reply
*req
)
4374 fprintf( stderr
, " depth=%08x", req
->depth
);
4377 static void dump_set_completion_info_request( const struct set_completion_info_request
*req
)
4379 fprintf( stderr
, " handle=%04x", req
->handle
);
4380 dump_uint64( ", ckey=", &req
->ckey
);
4381 fprintf( stderr
, ", chandle=%04x", req
->chandle
);
4384 static void dump_add_fd_completion_request( const struct add_fd_completion_request
*req
)
4386 fprintf( stderr
, " handle=%04x", req
->handle
);
4387 dump_uint64( ", cvalue=", &req
->cvalue
);
4388 dump_uint64( ", information=", &req
->information
);
4389 fprintf( stderr
, ", status=%08x", req
->status
);
4390 fprintf( stderr
, ", async=%d", req
->async
);
4393 static void dump_set_fd_completion_mode_request( const struct set_fd_completion_mode_request
*req
)
4395 fprintf( stderr
, " handle=%04x", req
->handle
);
4396 fprintf( stderr
, ", flags=%08x", req
->flags
);
4399 static void dump_set_fd_disp_info_request( const struct set_fd_disp_info_request
*req
)
4401 fprintf( stderr
, " handle=%04x", req
->handle
);
4402 fprintf( stderr
, ", unlink=%d", req
->unlink
);
4405 static void dump_set_fd_name_info_request( const struct set_fd_name_info_request
*req
)
4407 fprintf( stderr
, " handle=%04x", req
->handle
);
4408 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
4409 fprintf( stderr
, ", link=%d", req
->link
);
4410 dump_varargs_string( ", filename=", cur_size
);
4413 static void dump_get_window_layered_info_request( const struct get_window_layered_info_request
*req
)
4415 fprintf( stderr
, " handle=%08x", req
->handle
);
4418 static void dump_get_window_layered_info_reply( const struct get_window_layered_info_reply
*req
)
4420 fprintf( stderr
, " color_key=%08x", req
->color_key
);
4421 fprintf( stderr
, ", alpha=%08x", req
->alpha
);
4422 fprintf( stderr
, ", flags=%08x", req
->flags
);
4425 static void dump_set_window_layered_info_request( const struct set_window_layered_info_request
*req
)
4427 fprintf( stderr
, " handle=%08x", req
->handle
);
4428 fprintf( stderr
, ", color_key=%08x", req
->color_key
);
4429 fprintf( stderr
, ", alpha=%08x", req
->alpha
);
4430 fprintf( stderr
, ", flags=%08x", req
->flags
);
4433 static void dump_alloc_user_handle_request( const struct alloc_user_handle_request
*req
)
4437 static void dump_alloc_user_handle_reply( const struct alloc_user_handle_reply
*req
)
4439 fprintf( stderr
, " handle=%08x", req
->handle
);
4442 static void dump_free_user_handle_request( const struct free_user_handle_request
*req
)
4444 fprintf( stderr
, " handle=%08x", req
->handle
);
4447 static void dump_set_cursor_request( const struct set_cursor_request
*req
)
4449 fprintf( stderr
, " flags=%08x", req
->flags
);
4450 fprintf( stderr
, ", handle=%08x", req
->handle
);
4451 fprintf( stderr
, ", show_count=%d", req
->show_count
);
4452 fprintf( stderr
, ", x=%d", req
->x
);
4453 fprintf( stderr
, ", y=%d", req
->y
);
4454 dump_rectangle( ", clip=", &req
->clip
);
4455 fprintf( stderr
, ", clip_msg=%08x", req
->clip_msg
);
4458 static void dump_set_cursor_reply( const struct set_cursor_reply
*req
)
4460 fprintf( stderr
, " prev_handle=%08x", req
->prev_handle
);
4461 fprintf( stderr
, ", prev_count=%d", req
->prev_count
);
4462 fprintf( stderr
, ", prev_x=%d", req
->prev_x
);
4463 fprintf( stderr
, ", prev_y=%d", req
->prev_y
);
4464 fprintf( stderr
, ", new_x=%d", req
->new_x
);
4465 fprintf( stderr
, ", new_y=%d", req
->new_y
);
4466 dump_rectangle( ", new_clip=", &req
->new_clip
);
4467 fprintf( stderr
, ", last_change=%08x", req
->last_change
);
4470 static void dump_update_rawinput_devices_request( const struct update_rawinput_devices_request
*req
)
4472 dump_varargs_rawinput_devices( " devices=", cur_size
);
4475 static void dump_get_suspend_context_request( const struct get_suspend_context_request
*req
)
4479 static void dump_get_suspend_context_reply( const struct get_suspend_context_reply
*req
)
4481 dump_varargs_context( " context=", cur_size
);
4484 static void dump_set_suspend_context_request( const struct set_suspend_context_request
*req
)
4486 dump_varargs_context( " context=", cur_size
);
4489 static void dump_create_job_request( const struct create_job_request
*req
)
4491 fprintf( stderr
, " access=%08x", req
->access
);
4492 dump_varargs_object_attributes( ", objattr=", cur_size
);
4495 static void dump_create_job_reply( const struct create_job_reply
*req
)
4497 fprintf( stderr
, " handle=%04x", req
->handle
);
4500 static void dump_open_job_request( const struct open_job_request
*req
)
4502 fprintf( stderr
, " access=%08x", req
->access
);
4503 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
4504 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
4505 dump_varargs_unicode_str( ", name=", cur_size
);
4508 static void dump_open_job_reply( const struct open_job_reply
*req
)
4510 fprintf( stderr
, " handle=%04x", req
->handle
);
4513 static void dump_assign_job_request( const struct assign_job_request
*req
)
4515 fprintf( stderr
, " job=%04x", req
->job
);
4516 fprintf( stderr
, ", process=%04x", req
->process
);
4519 static void dump_process_in_job_request( const struct process_in_job_request
*req
)
4521 fprintf( stderr
, " job=%04x", req
->job
);
4522 fprintf( stderr
, ", process=%04x", req
->process
);
4525 static void dump_set_job_limits_request( const struct set_job_limits_request
*req
)
4527 fprintf( stderr
, " handle=%04x", req
->handle
);
4528 fprintf( stderr
, ", limit_flags=%08x", req
->limit_flags
);
4531 static void dump_set_job_completion_port_request( const struct set_job_completion_port_request
*req
)
4533 fprintf( stderr
, " job=%04x", req
->job
);
4534 fprintf( stderr
, ", port=%04x", req
->port
);
4535 dump_uint64( ", key=", &req
->key
);
4538 static void dump_terminate_job_request( const struct terminate_job_request
*req
)
4540 fprintf( stderr
, " handle=%04x", req
->handle
);
4541 fprintf( stderr
, ", status=%d", req
->status
);
4544 static const dump_func req_dumpers
[REQ_NB_REQUESTS
] = {
4545 (dump_func
)dump_new_process_request
,
4546 (dump_func
)dump_exec_process_request
,
4547 (dump_func
)dump_get_new_process_info_request
,
4548 (dump_func
)dump_new_thread_request
,
4549 (dump_func
)dump_get_startup_info_request
,
4550 (dump_func
)dump_init_process_done_request
,
4551 (dump_func
)dump_init_thread_request
,
4552 (dump_func
)dump_terminate_process_request
,
4553 (dump_func
)dump_terminate_thread_request
,
4554 (dump_func
)dump_get_process_info_request
,
4555 (dump_func
)dump_get_process_vm_counters_request
,
4556 (dump_func
)dump_set_process_info_request
,
4557 (dump_func
)dump_get_thread_info_request
,
4558 (dump_func
)dump_get_thread_times_request
,
4559 (dump_func
)dump_set_thread_info_request
,
4560 (dump_func
)dump_get_dll_info_request
,
4561 (dump_func
)dump_suspend_thread_request
,
4562 (dump_func
)dump_resume_thread_request
,
4563 (dump_func
)dump_load_dll_request
,
4564 (dump_func
)dump_unload_dll_request
,
4565 (dump_func
)dump_queue_apc_request
,
4566 (dump_func
)dump_get_apc_result_request
,
4567 (dump_func
)dump_close_handle_request
,
4568 (dump_func
)dump_set_handle_info_request
,
4569 (dump_func
)dump_dup_handle_request
,
4570 (dump_func
)dump_open_process_request
,
4571 (dump_func
)dump_open_thread_request
,
4572 (dump_func
)dump_select_request
,
4573 (dump_func
)dump_create_event_request
,
4574 (dump_func
)dump_event_op_request
,
4575 (dump_func
)dump_query_event_request
,
4576 (dump_func
)dump_open_event_request
,
4577 (dump_func
)dump_create_keyed_event_request
,
4578 (dump_func
)dump_open_keyed_event_request
,
4579 (dump_func
)dump_create_mutex_request
,
4580 (dump_func
)dump_release_mutex_request
,
4581 (dump_func
)dump_open_mutex_request
,
4582 (dump_func
)dump_query_mutex_request
,
4583 (dump_func
)dump_create_semaphore_request
,
4584 (dump_func
)dump_release_semaphore_request
,
4585 (dump_func
)dump_query_semaphore_request
,
4586 (dump_func
)dump_open_semaphore_request
,
4587 (dump_func
)dump_create_file_request
,
4588 (dump_func
)dump_open_file_object_request
,
4589 (dump_func
)dump_alloc_file_handle_request
,
4590 (dump_func
)dump_get_handle_unix_name_request
,
4591 (dump_func
)dump_get_handle_fd_request
,
4592 (dump_func
)dump_get_directory_cache_entry_request
,
4593 (dump_func
)dump_flush_request
,
4594 (dump_func
)dump_get_file_info_request
,
4595 (dump_func
)dump_get_volume_info_request
,
4596 (dump_func
)dump_lock_file_request
,
4597 (dump_func
)dump_unlock_file_request
,
4598 (dump_func
)dump_create_socket_request
,
4599 (dump_func
)dump_accept_socket_request
,
4600 (dump_func
)dump_accept_into_socket_request
,
4601 (dump_func
)dump_set_socket_event_request
,
4602 (dump_func
)dump_get_socket_event_request
,
4603 (dump_func
)dump_get_socket_info_request
,
4604 (dump_func
)dump_enable_socket_event_request
,
4605 (dump_func
)dump_set_socket_deferred_request
,
4606 (dump_func
)dump_alloc_console_request
,
4607 (dump_func
)dump_free_console_request
,
4608 (dump_func
)dump_get_console_renderer_events_request
,
4609 (dump_func
)dump_open_console_request
,
4610 (dump_func
)dump_attach_console_request
,
4611 (dump_func
)dump_get_console_wait_event_request
,
4612 (dump_func
)dump_get_console_mode_request
,
4613 (dump_func
)dump_set_console_mode_request
,
4614 (dump_func
)dump_set_console_input_info_request
,
4615 (dump_func
)dump_get_console_input_info_request
,
4616 (dump_func
)dump_append_console_input_history_request
,
4617 (dump_func
)dump_get_console_input_history_request
,
4618 (dump_func
)dump_create_console_output_request
,
4619 (dump_func
)dump_set_console_output_info_request
,
4620 (dump_func
)dump_get_console_output_info_request
,
4621 (dump_func
)dump_write_console_input_request
,
4622 (dump_func
)dump_read_console_input_request
,
4623 (dump_func
)dump_write_console_output_request
,
4624 (dump_func
)dump_fill_console_output_request
,
4625 (dump_func
)dump_read_console_output_request
,
4626 (dump_func
)dump_move_console_output_request
,
4627 (dump_func
)dump_send_console_signal_request
,
4628 (dump_func
)dump_read_directory_changes_request
,
4629 (dump_func
)dump_read_change_request
,
4630 (dump_func
)dump_create_mapping_request
,
4631 (dump_func
)dump_open_mapping_request
,
4632 (dump_func
)dump_get_mapping_info_request
,
4633 (dump_func
)dump_map_view_request
,
4634 (dump_func
)dump_unmap_view_request
,
4635 (dump_func
)dump_get_mapping_committed_range_request
,
4636 (dump_func
)dump_add_mapping_committed_range_request
,
4637 (dump_func
)dump_is_same_mapping_request
,
4638 (dump_func
)dump_create_snapshot_request
,
4639 (dump_func
)dump_next_process_request
,
4640 (dump_func
)dump_next_thread_request
,
4641 (dump_func
)dump_wait_debug_event_request
,
4642 (dump_func
)dump_queue_exception_event_request
,
4643 (dump_func
)dump_get_exception_status_request
,
4644 (dump_func
)dump_continue_debug_event_request
,
4645 (dump_func
)dump_debug_process_request
,
4646 (dump_func
)dump_debug_break_request
,
4647 (dump_func
)dump_set_debugger_kill_on_exit_request
,
4648 (dump_func
)dump_read_process_memory_request
,
4649 (dump_func
)dump_write_process_memory_request
,
4650 (dump_func
)dump_create_key_request
,
4651 (dump_func
)dump_open_key_request
,
4652 (dump_func
)dump_delete_key_request
,
4653 (dump_func
)dump_flush_key_request
,
4654 (dump_func
)dump_enum_key_request
,
4655 (dump_func
)dump_set_key_value_request
,
4656 (dump_func
)dump_get_key_value_request
,
4657 (dump_func
)dump_enum_key_value_request
,
4658 (dump_func
)dump_delete_key_value_request
,
4659 (dump_func
)dump_load_registry_request
,
4660 (dump_func
)dump_unload_registry_request
,
4661 (dump_func
)dump_save_registry_request
,
4662 (dump_func
)dump_set_registry_notification_request
,
4663 (dump_func
)dump_create_timer_request
,
4664 (dump_func
)dump_open_timer_request
,
4665 (dump_func
)dump_set_timer_request
,
4666 (dump_func
)dump_cancel_timer_request
,
4667 (dump_func
)dump_get_timer_info_request
,
4668 (dump_func
)dump_get_thread_context_request
,
4669 (dump_func
)dump_set_thread_context_request
,
4670 (dump_func
)dump_get_selector_entry_request
,
4671 (dump_func
)dump_add_atom_request
,
4672 (dump_func
)dump_delete_atom_request
,
4673 (dump_func
)dump_find_atom_request
,
4674 (dump_func
)dump_get_atom_information_request
,
4675 (dump_func
)dump_set_atom_information_request
,
4676 (dump_func
)dump_empty_atom_table_request
,
4677 (dump_func
)dump_init_atom_table_request
,
4678 (dump_func
)dump_get_msg_queue_request
,
4679 (dump_func
)dump_set_queue_fd_request
,
4680 (dump_func
)dump_set_queue_mask_request
,
4681 (dump_func
)dump_get_queue_status_request
,
4682 (dump_func
)dump_get_process_idle_event_request
,
4683 (dump_func
)dump_send_message_request
,
4684 (dump_func
)dump_post_quit_message_request
,
4685 (dump_func
)dump_send_hardware_message_request
,
4686 (dump_func
)dump_get_message_request
,
4687 (dump_func
)dump_reply_message_request
,
4688 (dump_func
)dump_accept_hardware_message_request
,
4689 (dump_func
)dump_get_message_reply_request
,
4690 (dump_func
)dump_set_win_timer_request
,
4691 (dump_func
)dump_kill_win_timer_request
,
4692 (dump_func
)dump_is_window_hung_request
,
4693 (dump_func
)dump_get_serial_info_request
,
4694 (dump_func
)dump_set_serial_info_request
,
4695 (dump_func
)dump_register_async_request
,
4696 (dump_func
)dump_cancel_async_request
,
4697 (dump_func
)dump_get_async_result_request
,
4698 (dump_func
)dump_read_request
,
4699 (dump_func
)dump_write_request
,
4700 (dump_func
)dump_ioctl_request
,
4701 (dump_func
)dump_set_irp_result_request
,
4702 (dump_func
)dump_create_named_pipe_request
,
4703 (dump_func
)dump_set_named_pipe_info_request
,
4704 (dump_func
)dump_create_window_request
,
4705 (dump_func
)dump_destroy_window_request
,
4706 (dump_func
)dump_get_desktop_window_request
,
4707 (dump_func
)dump_set_window_owner_request
,
4708 (dump_func
)dump_get_window_info_request
,
4709 (dump_func
)dump_set_window_info_request
,
4710 (dump_func
)dump_set_parent_request
,
4711 (dump_func
)dump_get_window_parents_request
,
4712 (dump_func
)dump_get_window_children_request
,
4713 (dump_func
)dump_get_window_children_from_point_request
,
4714 (dump_func
)dump_get_window_tree_request
,
4715 (dump_func
)dump_set_window_pos_request
,
4716 (dump_func
)dump_get_window_rectangles_request
,
4717 (dump_func
)dump_get_window_text_request
,
4718 (dump_func
)dump_set_window_text_request
,
4719 (dump_func
)dump_get_windows_offset_request
,
4720 (dump_func
)dump_get_visible_region_request
,
4721 (dump_func
)dump_get_surface_region_request
,
4722 (dump_func
)dump_get_window_region_request
,
4723 (dump_func
)dump_set_window_region_request
,
4724 (dump_func
)dump_get_update_region_request
,
4725 (dump_func
)dump_update_window_zorder_request
,
4726 (dump_func
)dump_redraw_window_request
,
4727 (dump_func
)dump_set_window_property_request
,
4728 (dump_func
)dump_remove_window_property_request
,
4729 (dump_func
)dump_get_window_property_request
,
4730 (dump_func
)dump_get_window_properties_request
,
4731 (dump_func
)dump_create_winstation_request
,
4732 (dump_func
)dump_open_winstation_request
,
4733 (dump_func
)dump_close_winstation_request
,
4734 (dump_func
)dump_get_process_winstation_request
,
4735 (dump_func
)dump_set_process_winstation_request
,
4736 (dump_func
)dump_enum_winstation_request
,
4737 (dump_func
)dump_create_desktop_request
,
4738 (dump_func
)dump_open_desktop_request
,
4739 (dump_func
)dump_open_input_desktop_request
,
4740 (dump_func
)dump_close_desktop_request
,
4741 (dump_func
)dump_get_thread_desktop_request
,
4742 (dump_func
)dump_set_thread_desktop_request
,
4743 (dump_func
)dump_enum_desktop_request
,
4744 (dump_func
)dump_set_user_object_info_request
,
4745 (dump_func
)dump_register_hotkey_request
,
4746 (dump_func
)dump_unregister_hotkey_request
,
4747 (dump_func
)dump_attach_thread_input_request
,
4748 (dump_func
)dump_get_thread_input_request
,
4749 (dump_func
)dump_get_last_input_time_request
,
4750 (dump_func
)dump_get_key_state_request
,
4751 (dump_func
)dump_set_key_state_request
,
4752 (dump_func
)dump_set_foreground_window_request
,
4753 (dump_func
)dump_set_focus_window_request
,
4754 (dump_func
)dump_set_active_window_request
,
4755 (dump_func
)dump_set_capture_window_request
,
4756 (dump_func
)dump_set_caret_window_request
,
4757 (dump_func
)dump_set_caret_info_request
,
4758 (dump_func
)dump_set_hook_request
,
4759 (dump_func
)dump_remove_hook_request
,
4760 (dump_func
)dump_start_hook_chain_request
,
4761 (dump_func
)dump_finish_hook_chain_request
,
4762 (dump_func
)dump_get_hook_info_request
,
4763 (dump_func
)dump_create_class_request
,
4764 (dump_func
)dump_destroy_class_request
,
4765 (dump_func
)dump_set_class_info_request
,
4766 (dump_func
)dump_open_clipboard_request
,
4767 (dump_func
)dump_close_clipboard_request
,
4768 (dump_func
)dump_empty_clipboard_request
,
4769 (dump_func
)dump_set_clipboard_data_request
,
4770 (dump_func
)dump_get_clipboard_data_request
,
4771 (dump_func
)dump_get_clipboard_formats_request
,
4772 (dump_func
)dump_enum_clipboard_formats_request
,
4773 (dump_func
)dump_release_clipboard_request
,
4774 (dump_func
)dump_get_clipboard_info_request
,
4775 (dump_func
)dump_set_clipboard_viewer_request
,
4776 (dump_func
)dump_add_clipboard_listener_request
,
4777 (dump_func
)dump_remove_clipboard_listener_request
,
4778 (dump_func
)dump_open_token_request
,
4779 (dump_func
)dump_set_global_windows_request
,
4780 (dump_func
)dump_adjust_token_privileges_request
,
4781 (dump_func
)dump_get_token_privileges_request
,
4782 (dump_func
)dump_check_token_privileges_request
,
4783 (dump_func
)dump_duplicate_token_request
,
4784 (dump_func
)dump_access_check_request
,
4785 (dump_func
)dump_get_token_sid_request
,
4786 (dump_func
)dump_get_token_groups_request
,
4787 (dump_func
)dump_get_token_default_dacl_request
,
4788 (dump_func
)dump_set_token_default_dacl_request
,
4789 (dump_func
)dump_set_security_object_request
,
4790 (dump_func
)dump_get_security_object_request
,
4791 (dump_func
)dump_get_system_handles_request
,
4792 (dump_func
)dump_create_mailslot_request
,
4793 (dump_func
)dump_set_mailslot_info_request
,
4794 (dump_func
)dump_create_directory_request
,
4795 (dump_func
)dump_open_directory_request
,
4796 (dump_func
)dump_get_directory_entry_request
,
4797 (dump_func
)dump_create_symlink_request
,
4798 (dump_func
)dump_open_symlink_request
,
4799 (dump_func
)dump_query_symlink_request
,
4800 (dump_func
)dump_get_object_info_request
,
4801 (dump_func
)dump_get_object_type_request
,
4802 (dump_func
)dump_unlink_object_request
,
4803 (dump_func
)dump_get_token_impersonation_level_request
,
4804 (dump_func
)dump_allocate_locally_unique_id_request
,
4805 (dump_func
)dump_create_device_manager_request
,
4806 (dump_func
)dump_create_device_request
,
4807 (dump_func
)dump_delete_device_request
,
4808 (dump_func
)dump_get_next_device_request_request
,
4809 (dump_func
)dump_make_process_system_request
,
4810 (dump_func
)dump_get_token_statistics_request
,
4811 (dump_func
)dump_create_completion_request
,
4812 (dump_func
)dump_open_completion_request
,
4813 (dump_func
)dump_add_completion_request
,
4814 (dump_func
)dump_remove_completion_request
,
4815 (dump_func
)dump_query_completion_request
,
4816 (dump_func
)dump_set_completion_info_request
,
4817 (dump_func
)dump_add_fd_completion_request
,
4818 (dump_func
)dump_set_fd_completion_mode_request
,
4819 (dump_func
)dump_set_fd_disp_info_request
,
4820 (dump_func
)dump_set_fd_name_info_request
,
4821 (dump_func
)dump_get_window_layered_info_request
,
4822 (dump_func
)dump_set_window_layered_info_request
,
4823 (dump_func
)dump_alloc_user_handle_request
,
4824 (dump_func
)dump_free_user_handle_request
,
4825 (dump_func
)dump_set_cursor_request
,
4826 (dump_func
)dump_update_rawinput_devices_request
,
4827 (dump_func
)dump_get_suspend_context_request
,
4828 (dump_func
)dump_set_suspend_context_request
,
4829 (dump_func
)dump_create_job_request
,
4830 (dump_func
)dump_open_job_request
,
4831 (dump_func
)dump_assign_job_request
,
4832 (dump_func
)dump_process_in_job_request
,
4833 (dump_func
)dump_set_job_limits_request
,
4834 (dump_func
)dump_set_job_completion_port_request
,
4835 (dump_func
)dump_terminate_job_request
,
4838 static const dump_func reply_dumpers
[REQ_NB_REQUESTS
] = {
4839 (dump_func
)dump_new_process_reply
,
4841 (dump_func
)dump_get_new_process_info_reply
,
4842 (dump_func
)dump_new_thread_reply
,
4843 (dump_func
)dump_get_startup_info_reply
,
4844 (dump_func
)dump_init_process_done_reply
,
4845 (dump_func
)dump_init_thread_reply
,
4846 (dump_func
)dump_terminate_process_reply
,
4847 (dump_func
)dump_terminate_thread_reply
,
4848 (dump_func
)dump_get_process_info_reply
,
4849 (dump_func
)dump_get_process_vm_counters_reply
,
4851 (dump_func
)dump_get_thread_info_reply
,
4852 (dump_func
)dump_get_thread_times_reply
,
4854 (dump_func
)dump_get_dll_info_reply
,
4855 (dump_func
)dump_suspend_thread_reply
,
4856 (dump_func
)dump_resume_thread_reply
,
4859 (dump_func
)dump_queue_apc_reply
,
4860 (dump_func
)dump_get_apc_result_reply
,
4862 (dump_func
)dump_set_handle_info_reply
,
4863 (dump_func
)dump_dup_handle_reply
,
4864 (dump_func
)dump_open_process_reply
,
4865 (dump_func
)dump_open_thread_reply
,
4866 (dump_func
)dump_select_reply
,
4867 (dump_func
)dump_create_event_reply
,
4869 (dump_func
)dump_query_event_reply
,
4870 (dump_func
)dump_open_event_reply
,
4871 (dump_func
)dump_create_keyed_event_reply
,
4872 (dump_func
)dump_open_keyed_event_reply
,
4873 (dump_func
)dump_create_mutex_reply
,
4874 (dump_func
)dump_release_mutex_reply
,
4875 (dump_func
)dump_open_mutex_reply
,
4876 (dump_func
)dump_query_mutex_reply
,
4877 (dump_func
)dump_create_semaphore_reply
,
4878 (dump_func
)dump_release_semaphore_reply
,
4879 (dump_func
)dump_query_semaphore_reply
,
4880 (dump_func
)dump_open_semaphore_reply
,
4881 (dump_func
)dump_create_file_reply
,
4882 (dump_func
)dump_open_file_object_reply
,
4883 (dump_func
)dump_alloc_file_handle_reply
,
4884 (dump_func
)dump_get_handle_unix_name_reply
,
4885 (dump_func
)dump_get_handle_fd_reply
,
4886 (dump_func
)dump_get_directory_cache_entry_reply
,
4887 (dump_func
)dump_flush_reply
,
4888 (dump_func
)dump_get_file_info_reply
,
4889 (dump_func
)dump_get_volume_info_reply
,
4890 (dump_func
)dump_lock_file_reply
,
4892 (dump_func
)dump_create_socket_reply
,
4893 (dump_func
)dump_accept_socket_reply
,
4896 (dump_func
)dump_get_socket_event_reply
,
4897 (dump_func
)dump_get_socket_info_reply
,
4900 (dump_func
)dump_alloc_console_reply
,
4902 (dump_func
)dump_get_console_renderer_events_reply
,
4903 (dump_func
)dump_open_console_reply
,
4904 (dump_func
)dump_attach_console_reply
,
4905 (dump_func
)dump_get_console_wait_event_reply
,
4906 (dump_func
)dump_get_console_mode_reply
,
4909 (dump_func
)dump_get_console_input_info_reply
,
4911 (dump_func
)dump_get_console_input_history_reply
,
4912 (dump_func
)dump_create_console_output_reply
,
4914 (dump_func
)dump_get_console_output_info_reply
,
4915 (dump_func
)dump_write_console_input_reply
,
4916 (dump_func
)dump_read_console_input_reply
,
4917 (dump_func
)dump_write_console_output_reply
,
4918 (dump_func
)dump_fill_console_output_reply
,
4919 (dump_func
)dump_read_console_output_reply
,
4923 (dump_func
)dump_read_change_reply
,
4924 (dump_func
)dump_create_mapping_reply
,
4925 (dump_func
)dump_open_mapping_reply
,
4926 (dump_func
)dump_get_mapping_info_reply
,
4929 (dump_func
)dump_get_mapping_committed_range_reply
,
4932 (dump_func
)dump_create_snapshot_reply
,
4933 (dump_func
)dump_next_process_reply
,
4934 (dump_func
)dump_next_thread_reply
,
4935 (dump_func
)dump_wait_debug_event_reply
,
4936 (dump_func
)dump_queue_exception_event_reply
,
4937 (dump_func
)dump_get_exception_status_reply
,
4940 (dump_func
)dump_debug_break_reply
,
4942 (dump_func
)dump_read_process_memory_reply
,
4944 (dump_func
)dump_create_key_reply
,
4945 (dump_func
)dump_open_key_reply
,
4948 (dump_func
)dump_enum_key_reply
,
4950 (dump_func
)dump_get_key_value_reply
,
4951 (dump_func
)dump_enum_key_value_reply
,
4957 (dump_func
)dump_create_timer_reply
,
4958 (dump_func
)dump_open_timer_reply
,
4959 (dump_func
)dump_set_timer_reply
,
4960 (dump_func
)dump_cancel_timer_reply
,
4961 (dump_func
)dump_get_timer_info_reply
,
4962 (dump_func
)dump_get_thread_context_reply
,
4963 (dump_func
)dump_set_thread_context_reply
,
4964 (dump_func
)dump_get_selector_entry_reply
,
4965 (dump_func
)dump_add_atom_reply
,
4967 (dump_func
)dump_find_atom_reply
,
4968 (dump_func
)dump_get_atom_information_reply
,
4971 (dump_func
)dump_init_atom_table_reply
,
4972 (dump_func
)dump_get_msg_queue_reply
,
4974 (dump_func
)dump_set_queue_mask_reply
,
4975 (dump_func
)dump_get_queue_status_reply
,
4976 (dump_func
)dump_get_process_idle_event_reply
,
4979 (dump_func
)dump_send_hardware_message_reply
,
4980 (dump_func
)dump_get_message_reply
,
4983 (dump_func
)dump_get_message_reply_reply
,
4984 (dump_func
)dump_set_win_timer_reply
,
4986 (dump_func
)dump_is_window_hung_reply
,
4987 (dump_func
)dump_get_serial_info_reply
,
4991 (dump_func
)dump_get_async_result_reply
,
4992 (dump_func
)dump_read_reply
,
4993 (dump_func
)dump_write_reply
,
4994 (dump_func
)dump_ioctl_reply
,
4996 (dump_func
)dump_create_named_pipe_reply
,
4998 (dump_func
)dump_create_window_reply
,
5000 (dump_func
)dump_get_desktop_window_reply
,
5001 (dump_func
)dump_set_window_owner_reply
,
5002 (dump_func
)dump_get_window_info_reply
,
5003 (dump_func
)dump_set_window_info_reply
,
5004 (dump_func
)dump_set_parent_reply
,
5005 (dump_func
)dump_get_window_parents_reply
,
5006 (dump_func
)dump_get_window_children_reply
,
5007 (dump_func
)dump_get_window_children_from_point_reply
,
5008 (dump_func
)dump_get_window_tree_reply
,
5009 (dump_func
)dump_set_window_pos_reply
,
5010 (dump_func
)dump_get_window_rectangles_reply
,
5011 (dump_func
)dump_get_window_text_reply
,
5013 (dump_func
)dump_get_windows_offset_reply
,
5014 (dump_func
)dump_get_visible_region_reply
,
5015 (dump_func
)dump_get_surface_region_reply
,
5016 (dump_func
)dump_get_window_region_reply
,
5018 (dump_func
)dump_get_update_region_reply
,
5022 (dump_func
)dump_remove_window_property_reply
,
5023 (dump_func
)dump_get_window_property_reply
,
5024 (dump_func
)dump_get_window_properties_reply
,
5025 (dump_func
)dump_create_winstation_reply
,
5026 (dump_func
)dump_open_winstation_reply
,
5028 (dump_func
)dump_get_process_winstation_reply
,
5030 (dump_func
)dump_enum_winstation_reply
,
5031 (dump_func
)dump_create_desktop_reply
,
5032 (dump_func
)dump_open_desktop_reply
,
5033 (dump_func
)dump_open_input_desktop_reply
,
5035 (dump_func
)dump_get_thread_desktop_reply
,
5037 (dump_func
)dump_enum_desktop_reply
,
5038 (dump_func
)dump_set_user_object_info_reply
,
5039 (dump_func
)dump_register_hotkey_reply
,
5040 (dump_func
)dump_unregister_hotkey_reply
,
5042 (dump_func
)dump_get_thread_input_reply
,
5043 (dump_func
)dump_get_last_input_time_reply
,
5044 (dump_func
)dump_get_key_state_reply
,
5046 (dump_func
)dump_set_foreground_window_reply
,
5047 (dump_func
)dump_set_focus_window_reply
,
5048 (dump_func
)dump_set_active_window_reply
,
5049 (dump_func
)dump_set_capture_window_reply
,
5050 (dump_func
)dump_set_caret_window_reply
,
5051 (dump_func
)dump_set_caret_info_reply
,
5052 (dump_func
)dump_set_hook_reply
,
5053 (dump_func
)dump_remove_hook_reply
,
5054 (dump_func
)dump_start_hook_chain_reply
,
5056 (dump_func
)dump_get_hook_info_reply
,
5057 (dump_func
)dump_create_class_reply
,
5058 (dump_func
)dump_destroy_class_reply
,
5059 (dump_func
)dump_set_class_info_reply
,
5060 (dump_func
)dump_open_clipboard_reply
,
5061 (dump_func
)dump_close_clipboard_reply
,
5063 (dump_func
)dump_set_clipboard_data_reply
,
5064 (dump_func
)dump_get_clipboard_data_reply
,
5065 (dump_func
)dump_get_clipboard_formats_reply
,
5066 (dump_func
)dump_enum_clipboard_formats_reply
,
5067 (dump_func
)dump_release_clipboard_reply
,
5068 (dump_func
)dump_get_clipboard_info_reply
,
5069 (dump_func
)dump_set_clipboard_viewer_reply
,
5072 (dump_func
)dump_open_token_reply
,
5073 (dump_func
)dump_set_global_windows_reply
,
5074 (dump_func
)dump_adjust_token_privileges_reply
,
5075 (dump_func
)dump_get_token_privileges_reply
,
5076 (dump_func
)dump_check_token_privileges_reply
,
5077 (dump_func
)dump_duplicate_token_reply
,
5078 (dump_func
)dump_access_check_reply
,
5079 (dump_func
)dump_get_token_sid_reply
,
5080 (dump_func
)dump_get_token_groups_reply
,
5081 (dump_func
)dump_get_token_default_dacl_reply
,
5084 (dump_func
)dump_get_security_object_reply
,
5085 (dump_func
)dump_get_system_handles_reply
,
5086 (dump_func
)dump_create_mailslot_reply
,
5087 (dump_func
)dump_set_mailslot_info_reply
,
5088 (dump_func
)dump_create_directory_reply
,
5089 (dump_func
)dump_open_directory_reply
,
5090 (dump_func
)dump_get_directory_entry_reply
,
5091 (dump_func
)dump_create_symlink_reply
,
5092 (dump_func
)dump_open_symlink_reply
,
5093 (dump_func
)dump_query_symlink_reply
,
5094 (dump_func
)dump_get_object_info_reply
,
5095 (dump_func
)dump_get_object_type_reply
,
5097 (dump_func
)dump_get_token_impersonation_level_reply
,
5098 (dump_func
)dump_allocate_locally_unique_id_reply
,
5099 (dump_func
)dump_create_device_manager_reply
,
5100 (dump_func
)dump_create_device_reply
,
5102 (dump_func
)dump_get_next_device_request_reply
,
5103 (dump_func
)dump_make_process_system_reply
,
5104 (dump_func
)dump_get_token_statistics_reply
,
5105 (dump_func
)dump_create_completion_reply
,
5106 (dump_func
)dump_open_completion_reply
,
5108 (dump_func
)dump_remove_completion_reply
,
5109 (dump_func
)dump_query_completion_reply
,
5115 (dump_func
)dump_get_window_layered_info_reply
,
5117 (dump_func
)dump_alloc_user_handle_reply
,
5119 (dump_func
)dump_set_cursor_reply
,
5121 (dump_func
)dump_get_suspend_context_reply
,
5123 (dump_func
)dump_create_job_reply
,
5124 (dump_func
)dump_open_job_reply
,
5132 static const char * const req_names
[REQ_NB_REQUESTS
] = {
5135 "get_new_process_info",
5138 "init_process_done",
5140 "terminate_process",
5143 "get_process_vm_counters",
5165 "create_keyed_event",
5172 "release_semaphore",
5177 "alloc_file_handle",
5178 "get_handle_unix_name",
5180 "get_directory_cache_entry",
5188 "accept_into_socket",
5192 "enable_socket_event",
5193 "set_socket_deferred",
5196 "get_console_renderer_events",
5199 "get_console_wait_event",
5202 "set_console_input_info",
5203 "get_console_input_info",
5204 "append_console_input_history",
5205 "get_console_input_history",
5206 "create_console_output",
5207 "set_console_output_info",
5208 "get_console_output_info",
5209 "write_console_input",
5210 "read_console_input",
5211 "write_console_output",
5212 "fill_console_output",
5213 "read_console_output",
5214 "move_console_output",
5215 "send_console_signal",
5216 "read_directory_changes",
5223 "get_mapping_committed_range",
5224 "add_mapping_committed_range",
5230 "queue_exception_event",
5231 "get_exception_status",
5232 "continue_debug_event",
5235 "set_debugger_kill_on_exit",
5236 "read_process_memory",
5237 "write_process_memory",
5250 "set_registry_notification",
5256 "get_thread_context",
5257 "set_thread_context",
5258 "get_selector_entry",
5262 "get_atom_information",
5263 "set_atom_information",
5270 "get_process_idle_event",
5272 "post_quit_message",
5273 "send_hardware_message",
5276 "accept_hardware_message",
5277 "get_message_reply",
5290 "create_named_pipe",
5291 "set_named_pipe_info",
5294 "get_desktop_window",
5299 "get_window_parents",
5300 "get_window_children",
5301 "get_window_children_from_point",
5304 "get_window_rectangles",
5307 "get_windows_offset",
5308 "get_visible_region",
5309 "get_surface_region",
5310 "get_window_region",
5311 "set_window_region",
5312 "get_update_region",
5313 "update_window_zorder",
5315 "set_window_property",
5316 "remove_window_property",
5317 "get_window_property",
5318 "get_window_properties",
5319 "create_winstation",
5322 "get_process_winstation",
5323 "set_process_winstation",
5327 "open_input_desktop",
5329 "get_thread_desktop",
5330 "set_thread_desktop",
5332 "set_user_object_info",
5334 "unregister_hotkey",
5335 "attach_thread_input",
5337 "get_last_input_time",
5340 "set_foreground_window",
5342 "set_active_window",
5343 "set_capture_window",
5349 "finish_hook_chain",
5357 "set_clipboard_data",
5358 "get_clipboard_data",
5359 "get_clipboard_formats",
5360 "enum_clipboard_formats",
5361 "release_clipboard",
5362 "get_clipboard_info",
5363 "set_clipboard_viewer",
5364 "add_clipboard_listener",
5365 "remove_clipboard_listener",
5367 "set_global_windows",
5368 "adjust_token_privileges",
5369 "get_token_privileges",
5370 "check_token_privileges",
5375 "get_token_default_dacl",
5376 "set_token_default_dacl",
5377 "set_security_object",
5378 "get_security_object",
5379 "get_system_handles",
5381 "set_mailslot_info",
5384 "get_directory_entry",
5391 "get_token_impersonation_level",
5392 "allocate_locally_unique_id",
5393 "create_device_manager",
5396 "get_next_device_request",
5397 "make_process_system",
5398 "get_token_statistics",
5399 "create_completion",
5402 "remove_completion",
5404 "set_completion_info",
5405 "add_fd_completion",
5406 "set_fd_completion_mode",
5409 "get_window_layered_info",
5410 "set_window_layered_info",
5411 "alloc_user_handle",
5414 "update_rawinput_devices",
5415 "get_suspend_context",
5416 "set_suspend_context",
5422 "set_job_completion_port",
5432 { "ABANDONED_WAIT_0", STATUS_ABANDONED_WAIT_0
},
5433 { "ACCESS_DENIED", STATUS_ACCESS_DENIED
},
5434 { "ACCESS_VIOLATION", STATUS_ACCESS_VIOLATION
},
5435 { "ADDRESS_ALREADY_ASSOCIATED", STATUS_ADDRESS_ALREADY_ASSOCIATED
},
5436 { "ALERTED", STATUS_ALERTED
},
5437 { "ALIAS_EXISTS", STATUS_ALIAS_EXISTS
},
5438 { "BAD_DEVICE_TYPE", STATUS_BAD_DEVICE_TYPE
},
5439 { "BAD_IMPERSONATION_LEVEL", STATUS_BAD_IMPERSONATION_LEVEL
},
5440 { "BREAKPOINT", STATUS_BREAKPOINT
},
5441 { "BUFFER_OVERFLOW", STATUS_BUFFER_OVERFLOW
},
5442 { "BUFFER_TOO_SMALL", STATUS_BUFFER_TOO_SMALL
},
5443 { "CANCELLED", STATUS_CANCELLED
},
5444 { "CANNOT_DELETE", STATUS_CANNOT_DELETE
},
5445 { "CANT_OPEN_ANONYMOUS", STATUS_CANT_OPEN_ANONYMOUS
},
5446 { "CANT_WAIT", STATUS_CANT_WAIT
},
5447 { "CHILD_MUST_BE_VOLATILE", STATUS_CHILD_MUST_BE_VOLATILE
},
5448 { "CONNECTION_ABORTED", STATUS_CONNECTION_ABORTED
},
5449 { "CONNECTION_DISCONNECTED", STATUS_CONNECTION_DISCONNECTED
},
5450 { "CONNECTION_REFUSED", STATUS_CONNECTION_REFUSED
},
5451 { "CONNECTION_RESET", STATUS_CONNECTION_RESET
},
5452 { "DEBUGGER_INACTIVE", STATUS_DEBUGGER_INACTIVE
},
5453 { "DEVICE_BUSY", STATUS_DEVICE_BUSY
},
5454 { "DIRECTORY_NOT_EMPTY", STATUS_DIRECTORY_NOT_EMPTY
},
5455 { "DISK_FULL", STATUS_DISK_FULL
},
5456 { "DLL_NOT_FOUND", STATUS_DLL_NOT_FOUND
},
5457 { "ERROR_CLASS_ALREADY_EXISTS", 0xc0010000 | ERROR_CLASS_ALREADY_EXISTS
},
5458 { "ERROR_CLASS_DOES_NOT_EXIST", 0xc0010000 | ERROR_CLASS_DOES_NOT_EXIST
},
5459 { "ERROR_CLASS_HAS_WINDOWS", 0xc0010000 | ERROR_CLASS_HAS_WINDOWS
},
5460 { "ERROR_CLIPBOARD_NOT_OPEN", 0xc0010000 | ERROR_CLIPBOARD_NOT_OPEN
},
5461 { "ERROR_HOTKEY_ALREADY_REGISTERED", 0xc0010000 | ERROR_HOTKEY_ALREADY_REGISTERED
},
5462 { "ERROR_HOTKEY_NOT_REGISTERED", 0xc0010000 | ERROR_HOTKEY_NOT_REGISTERED
},
5463 { "ERROR_INVALID_CURSOR_HANDLE", 0xc0010000 | ERROR_INVALID_CURSOR_HANDLE
},
5464 { "ERROR_INVALID_INDEX", 0xc0010000 | ERROR_INVALID_INDEX
},
5465 { "ERROR_INVALID_WINDOW_HANDLE", 0xc0010000 | ERROR_INVALID_WINDOW_HANDLE
},
5466 { "ERROR_NO_MORE_USER_HANDLES", 0xc0010000 | ERROR_NO_MORE_USER_HANDLES
},
5467 { "ERROR_WINDOW_OF_OTHER_THREAD", 0xc0010000 | ERROR_WINDOW_OF_OTHER_THREAD
},
5468 { "FILE_DELETED", STATUS_FILE_DELETED
},
5469 { "FILE_IS_A_DIRECTORY", STATUS_FILE_IS_A_DIRECTORY
},
5470 { "FILE_LOCK_CONFLICT", STATUS_FILE_LOCK_CONFLICT
},
5471 { "GENERIC_NOT_MAPPED", STATUS_GENERIC_NOT_MAPPED
},
5472 { "HANDLES_CLOSED", STATUS_HANDLES_CLOSED
},
5473 { "HANDLE_NOT_CLOSABLE", STATUS_HANDLE_NOT_CLOSABLE
},
5474 { "HOST_UNREACHABLE", STATUS_HOST_UNREACHABLE
},
5475 { "ILLEGAL_FUNCTION", STATUS_ILLEGAL_FUNCTION
},
5476 { "INFO_LENGTH_MISMATCH", STATUS_INFO_LENGTH_MISMATCH
},
5477 { "INSTANCE_NOT_AVAILABLE", STATUS_INSTANCE_NOT_AVAILABLE
},
5478 { "INSUFFICIENT_RESOURCES", STATUS_INSUFFICIENT_RESOURCES
},
5479 { "INVALID_CID", STATUS_INVALID_CID
},
5480 { "INVALID_DEVICE_REQUEST", STATUS_INVALID_DEVICE_REQUEST
},
5481 { "INVALID_FILE_FOR_SECTION", STATUS_INVALID_FILE_FOR_SECTION
},
5482 { "INVALID_HANDLE", STATUS_INVALID_HANDLE
},
5483 { "INVALID_IMAGE_FORMAT", STATUS_INVALID_IMAGE_FORMAT
},
5484 { "INVALID_IMAGE_NE_FORMAT", STATUS_INVALID_IMAGE_NE_FORMAT
},
5485 { "INVALID_IMAGE_NOT_MZ", STATUS_INVALID_IMAGE_NOT_MZ
},
5486 { "INVALID_IMAGE_PROTECT", STATUS_INVALID_IMAGE_PROTECT
},
5487 { "INVALID_IMAGE_WIN_16", STATUS_INVALID_IMAGE_WIN_16
},
5488 { "INVALID_IMAGE_WIN_64", STATUS_INVALID_IMAGE_WIN_64
},
5489 { "INVALID_LOCK_SEQUENCE", STATUS_INVALID_LOCK_SEQUENCE
},
5490 { "INVALID_OWNER", STATUS_INVALID_OWNER
},
5491 { "INVALID_PARAMETER", STATUS_INVALID_PARAMETER
},
5492 { "INVALID_PIPE_STATE", STATUS_INVALID_PIPE_STATE
},
5493 { "INVALID_READ_MODE", STATUS_INVALID_READ_MODE
},
5494 { "INVALID_SECURITY_DESCR", STATUS_INVALID_SECURITY_DESCR
},
5495 { "IO_TIMEOUT", STATUS_IO_TIMEOUT
},
5496 { "KEY_DELETED", STATUS_KEY_DELETED
},
5497 { "MAPPED_FILE_SIZE_ZERO", STATUS_MAPPED_FILE_SIZE_ZERO
},
5498 { "MORE_PROCESSING_REQUIRED", STATUS_MORE_PROCESSING_REQUIRED
},
5499 { "MUTANT_NOT_OWNED", STATUS_MUTANT_NOT_OWNED
},
5500 { "NAME_TOO_LONG", STATUS_NAME_TOO_LONG
},
5501 { "NETWORK_BUSY", STATUS_NETWORK_BUSY
},
5502 { "NETWORK_UNREACHABLE", STATUS_NETWORK_UNREACHABLE
},
5503 { "NOT_ALL_ASSIGNED", STATUS_NOT_ALL_ASSIGNED
},
5504 { "NOT_A_DIRECTORY", STATUS_NOT_A_DIRECTORY
},
5505 { "NOT_FOUND", STATUS_NOT_FOUND
},
5506 { "NOT_IMPLEMENTED", STATUS_NOT_IMPLEMENTED
},
5507 { "NOT_MAPPED_VIEW", STATUS_NOT_MAPPED_VIEW
},
5508 { "NOT_REGISTRY_FILE", STATUS_NOT_REGISTRY_FILE
},
5509 { "NOT_SAME_DEVICE", STATUS_NOT_SAME_DEVICE
},
5510 { "NOT_SUPPORTED", STATUS_NOT_SUPPORTED
},
5511 { "NO_DATA_DETECTED", STATUS_NO_DATA_DETECTED
},
5512 { "NO_IMPERSONATION_TOKEN", STATUS_NO_IMPERSONATION_TOKEN
},
5513 { "NO_MEMORY", STATUS_NO_MEMORY
},
5514 { "NO_MORE_ENTRIES", STATUS_NO_MORE_ENTRIES
},
5515 { "NO_MORE_FILES", STATUS_NO_MORE_FILES
},
5516 { "NO_SUCH_DEVICE", STATUS_NO_SUCH_DEVICE
},
5517 { "NO_SUCH_FILE", STATUS_NO_SUCH_FILE
},
5518 { "NO_TOKEN", STATUS_NO_TOKEN
},
5519 { "OBJECT_NAME_COLLISION", STATUS_OBJECT_NAME_COLLISION
},
5520 { "OBJECT_NAME_EXISTS", STATUS_OBJECT_NAME_EXISTS
},
5521 { "OBJECT_NAME_INVALID", STATUS_OBJECT_NAME_INVALID
},
5522 { "OBJECT_NAME_NOT_FOUND", STATUS_OBJECT_NAME_NOT_FOUND
},
5523 { "OBJECT_PATH_INVALID", STATUS_OBJECT_PATH_INVALID
},
5524 { "OBJECT_PATH_NOT_FOUND", STATUS_OBJECT_PATH_NOT_FOUND
},
5525 { "OBJECT_PATH_SYNTAX_BAD", STATUS_OBJECT_PATH_SYNTAX_BAD
},
5526 { "OBJECT_TYPE_MISMATCH", STATUS_OBJECT_TYPE_MISMATCH
},
5527 { "PENDING", STATUS_PENDING
},
5528 { "PIPE_BROKEN", STATUS_PIPE_BROKEN
},
5529 { "PIPE_BUSY", STATUS_PIPE_BUSY
},
5530 { "PIPE_CLOSING", STATUS_PIPE_CLOSING
},
5531 { "PIPE_CONNECTED", STATUS_PIPE_CONNECTED
},
5532 { "PIPE_DISCONNECTED", STATUS_PIPE_DISCONNECTED
},
5533 { "PIPE_LISTENING", STATUS_PIPE_LISTENING
},
5534 { "PIPE_NOT_AVAILABLE", STATUS_PIPE_NOT_AVAILABLE
},
5535 { "PRIVILEGE_NOT_HELD", STATUS_PRIVILEGE_NOT_HELD
},
5536 { "PROCESS_IN_JOB", STATUS_PROCESS_IN_JOB
},
5537 { "PROCESS_IS_TERMINATING", STATUS_PROCESS_IS_TERMINATING
},
5538 { "PROCESS_NOT_IN_JOB", STATUS_PROCESS_NOT_IN_JOB
},
5539 { "SECTION_TOO_BIG", STATUS_SECTION_TOO_BIG
},
5540 { "SEMAPHORE_LIMIT_EXCEEDED", STATUS_SEMAPHORE_LIMIT_EXCEEDED
},
5541 { "SHARING_VIOLATION", STATUS_SHARING_VIOLATION
},
5542 { "SHUTDOWN_IN_PROGRESS", STATUS_SHUTDOWN_IN_PROGRESS
},
5543 { "SUSPEND_COUNT_EXCEEDED", STATUS_SUSPEND_COUNT_EXCEEDED
},
5544 { "THREAD_IS_TERMINATING", STATUS_THREAD_IS_TERMINATING
},
5545 { "TIMEOUT", STATUS_TIMEOUT
},
5546 { "TOO_MANY_OPENED_FILES", STATUS_TOO_MANY_OPENED_FILES
},
5547 { "UNSUCCESSFUL", STATUS_UNSUCCESSFUL
},
5548 { "USER_APC", STATUS_USER_APC
},
5549 { "USER_MAPPED_FILE", STATUS_USER_MAPPED_FILE
},
5550 { "VOLUME_DISMOUNTED", STATUS_VOLUME_DISMOUNTED
},
5551 { "WAS_LOCKED", STATUS_WAS_LOCKED
},
5555 /* ### make_requests end ### */
5556 /* Everything above this line is generated automatically by tools/make_requests */
5558 static const char *get_status_name( unsigned int status
)
5561 static char buffer
[10];
5565 for (i
= 0; status_names
[i
].name
; i
++)
5566 if (status_names
[i
].value
== status
) return status_names
[i
].name
;
5568 sprintf( buffer
, "%x", status
);
5572 void trace_request(void)
5574 enum request req
= current
->req
.request_header
.req
;
5575 if (req
< REQ_NB_REQUESTS
)
5577 fprintf( stderr
, "%04x: %s(", current
->id
, req_names
[req
] );
5578 if (req_dumpers
[req
])
5580 cur_data
= get_req_data();
5581 cur_size
= get_req_data_size();
5582 req_dumpers
[req
]( ¤t
->req
);
5584 fprintf( stderr
, " )\n" );
5586 else fprintf( stderr
, "%04x: %d(?)\n", current
->id
, req
);
5589 void trace_reply( enum request req
, const union generic_reply
*reply
)
5591 if (req
< REQ_NB_REQUESTS
)
5593 fprintf( stderr
, "%04x: %s() = %s",
5594 current
->id
, req_names
[req
], get_status_name(current
->error
) );
5595 if (reply_dumpers
[req
])
5597 fprintf( stderr
, " {" );
5598 cur_data
= current
->reply_data
;
5599 cur_size
= reply
->reply_header
.reply_size
;
5600 reply_dumpers
[req
]( reply
);
5601 fprintf( stderr
, " }" );
5603 fputc( '\n', stderr
);
5605 else fprintf( stderr
, "%04x: %d() = %s\n",
5606 current
->id
, req
, get_status_name(current
->error
) );