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
45 static const void *cur_data
;
46 static data_size_t cur_size
;
48 static const char *get_status_name( unsigned int status
);
50 /* utility functions */
52 static inline void remove_data( data_size_t size
)
54 cur_data
= (const char *)cur_data
+ size
;
58 static void dump_uints( const int *ptr
, int len
)
63 fprintf( stderr
, "%08x", *ptr
++ );
64 if (--len
) fputc( ',', stderr
);
69 static void dump_handles( const char *prefix
, const obj_handle_t
*data
, data_size_t size
)
71 data_size_t len
= size
/ sizeof(*data
);
73 fprintf( stderr
,"%s{", prefix
);
76 fprintf( stderr
, "%04x", *data
++ );
77 if (--len
) fputc( ',', stderr
);
82 static void dump_timeout( const char *prefix
, const timeout_t
*time
)
84 fprintf( stderr
, "%s%s", prefix
, get_timeout_str(*time
) );
87 static void dump_uint64( const char *prefix
, const unsigned __int64
*val
)
89 if ((unsigned int)*val
!= *val
)
90 fprintf( stderr
, "%s%x%08x", prefix
, (unsigned int)(*val
>> 32), (unsigned int)*val
);
92 fprintf( stderr
, "%s%08x", prefix
, (unsigned int)*val
);
95 static void dump_rectangle( const char *prefix
, const rectangle_t
*rect
)
97 fprintf( stderr
, "%s{%d,%d;%d,%d}", prefix
,
98 rect
->left
, rect
->top
, rect
->right
, rect
->bottom
);
101 static void dump_char_info( const char *prefix
, const char_info_t
*info
)
103 fprintf( stderr
, "%s{'", prefix
);
104 dump_strW( &info
->ch
, 1, stderr
, "\'\'" );
105 fprintf( stderr
, "',%04x}", info
->attr
);
108 static void dump_ioctl_code( const char *prefix
, const ioctl_code_t
*code
)
112 #define CASE(c) case c: fprintf( stderr, "%s%s", prefix, #c ); break
113 CASE(FSCTL_DISMOUNT_VOLUME
);
114 CASE(FSCTL_PIPE_DISCONNECT
);
115 CASE(FSCTL_PIPE_LISTEN
);
116 CASE(FSCTL_PIPE_WAIT
);
117 default: fprintf( stderr
, "%s%08x", prefix
, *code
); break;
122 static void dump_cpu_type( const char *prefix
, const cpu_type_t
*code
)
126 #define CASE(c) case CPU_##c: fprintf( stderr, "%s%s", prefix, #c ); break
130 default: fprintf( stderr
, "%s%u", prefix
, *code
); break;
135 static void dump_apc_call( const char *prefix
, const apc_call_t
*call
)
137 fprintf( stderr
, "%s{", prefix
);
141 fprintf( stderr
, "APC_NONE" );
144 dump_uint64( "APC_USER,func=", &call
->user
.func
);
145 dump_uint64( ",args={", &call
->user
.args
[0] );
146 dump_uint64( ",", &call
->user
.args
[1] );
147 dump_uint64( ",", &call
->user
.args
[2] );
148 fputc( '}', stderr
);
151 dump_timeout( "APC_TIMER,time=", &call
->timer
.time
);
152 dump_uint64( ",arg=", &call
->timer
.arg
);
155 dump_uint64( "APC_ASYNC_IO,func=", &call
->async_io
.func
);
156 dump_uint64( ",user=", &call
->async_io
.user
);
157 dump_uint64( ",sb=", &call
->async_io
.sb
);
158 fprintf( stderr
, ",status=%s", get_status_name(call
->async_io
.status
) );
160 case APC_VIRTUAL_ALLOC
:
161 dump_uint64( "APC_VIRTUAL_ALLOC,addr==", &call
->virtual_alloc
.addr
);
162 dump_uint64( ",size=", &call
->virtual_alloc
.size
);
163 fprintf( stderr
, ",zero_bits=%u,op_type=%x,prot=%x",
164 call
->virtual_alloc
.zero_bits
, call
->virtual_alloc
.op_type
,
165 call
->virtual_alloc
.prot
);
167 case APC_VIRTUAL_FREE
:
168 dump_uint64( "APC_VIRTUAL_FREE,addr=", &call
->virtual_free
.addr
);
169 dump_uint64( ",size=", &call
->virtual_free
.size
);
170 fprintf( stderr
, ",op_type=%x", call
->virtual_free
.op_type
);
172 case APC_VIRTUAL_QUERY
:
173 dump_uint64( "APC_VIRTUAL_QUERY,addr=", &call
->virtual_query
.addr
);
175 case APC_VIRTUAL_PROTECT
:
176 dump_uint64( "APC_VIRTUAL_PROTECT,addr=", &call
->virtual_protect
.addr
);
177 dump_uint64( ",size=", &call
->virtual_protect
.size
);
178 fprintf( stderr
, ",prot=%x", call
->virtual_protect
.prot
);
180 case APC_VIRTUAL_FLUSH
:
181 dump_uint64( "APC_VIRTUAL_FLUSH,addr=", &call
->virtual_flush
.addr
);
182 dump_uint64( ",size=", &call
->virtual_flush
.size
);
184 case APC_VIRTUAL_LOCK
:
185 dump_uint64( "APC_VIRTUAL_LOCK,addr=", &call
->virtual_lock
.addr
);
186 dump_uint64( ",size=", &call
->virtual_lock
.size
);
188 case APC_VIRTUAL_UNLOCK
:
189 dump_uint64( "APC_VIRTUAL_UNLOCK,addr=", &call
->virtual_unlock
.addr
);
190 dump_uint64( ",size=", &call
->virtual_unlock
.size
);
193 fprintf( stderr
, "APC_MAP_VIEW,handle=%04x", call
->map_view
.handle
);
194 dump_uint64( ",addr=", &call
->map_view
.addr
);
195 dump_uint64( ",size=", &call
->map_view
.size
);
196 dump_uint64( ",offset=", &call
->map_view
.offset
);
197 fprintf( stderr
, ",zero_bits=%u,alloc_type=%x,prot=%x",
198 call
->map_view
.zero_bits
, call
->map_view
.alloc_type
, call
->map_view
.prot
);
201 dump_uint64( "APC_UNMAP_VIEW,addr=", &call
->unmap_view
.addr
);
203 case APC_CREATE_THREAD
:
204 dump_uint64( "APC_CREATE_THREAD,func=", &call
->create_thread
.func
);
205 dump_uint64( ",arg=", &call
->create_thread
.arg
);
206 dump_uint64( ",reserve=", &call
->create_thread
.reserve
);
207 dump_uint64( ",commit=", &call
->create_thread
.commit
);
208 fprintf( stderr
, ",suspend=%u", call
->create_thread
.suspend
);
211 fprintf( stderr
, "type=%u", call
->type
);
214 fputc( '}', stderr
);
217 static void dump_apc_result( const char *prefix
, const apc_result_t
*result
)
219 fprintf( stderr
, "%s{", prefix
);
225 fprintf( stderr
, "APC_ASYNC_IO,status=%s,total=%u",
226 get_status_name( result
->async_io
.status
), result
->async_io
.total
);
227 dump_uint64( ",apc=", &result
->async_io
.apc
);
229 case APC_VIRTUAL_ALLOC
:
230 fprintf( stderr
, "APC_VIRTUAL_ALLOC,status=%s",
231 get_status_name( result
->virtual_alloc
.status
));
232 dump_uint64( ",addr=", &result
->virtual_alloc
.addr
);
233 dump_uint64( ",size=", &result
->virtual_alloc
.size
);
235 case APC_VIRTUAL_FREE
:
236 fprintf( stderr
, "APC_VIRTUAL_FREE,status=%s",
237 get_status_name( result
->virtual_free
.status
));
238 dump_uint64( ",addr=", &result
->virtual_free
.addr
);
239 dump_uint64( ",size=", &result
->virtual_free
.size
);
241 case APC_VIRTUAL_QUERY
:
242 fprintf( stderr
, "APC_VIRTUAL_QUERY,status=%s",
243 get_status_name( result
->virtual_query
.status
));
244 dump_uint64( ",base=", &result
->virtual_query
.base
);
245 dump_uint64( ",alloc_base=", &result
->virtual_query
.alloc_base
);
246 dump_uint64( ",size=", &result
->virtual_query
.size
);
247 fprintf( stderr
, ",state=%x,prot=%x,alloc_prot=%x,alloc_type=%x",
248 result
->virtual_query
.state
, result
->virtual_query
.prot
,
249 result
->virtual_query
.alloc_prot
, result
->virtual_query
.alloc_type
);
251 case APC_VIRTUAL_PROTECT
:
252 fprintf( stderr
, "APC_VIRTUAL_PROTECT,status=%s",
253 get_status_name( result
->virtual_protect
.status
));
254 dump_uint64( ",addr=", &result
->virtual_protect
.addr
);
255 dump_uint64( ",size=", &result
->virtual_protect
.size
);
256 fprintf( stderr
, ",prot=%x", result
->virtual_protect
.prot
);
258 case APC_VIRTUAL_FLUSH
:
259 fprintf( stderr
, "APC_VIRTUAL_FLUSH,status=%s",
260 get_status_name( result
->virtual_flush
.status
));
261 dump_uint64( ",addr=", &result
->virtual_flush
.addr
);
262 dump_uint64( ",size=", &result
->virtual_flush
.size
);
264 case APC_VIRTUAL_LOCK
:
265 fprintf( stderr
, "APC_VIRTUAL_LOCK,status=%s",
266 get_status_name( result
->virtual_lock
.status
));
267 dump_uint64( ",addr=", &result
->virtual_lock
.addr
);
268 dump_uint64( ",size=", &result
->virtual_lock
.size
);
270 case APC_VIRTUAL_UNLOCK
:
271 fprintf( stderr
, "APC_VIRTUAL_UNLOCK,status=%s",
272 get_status_name( result
->virtual_unlock
.status
));
273 dump_uint64( ",addr=", &result
->virtual_unlock
.addr
);
274 dump_uint64( ",size=", &result
->virtual_unlock
.size
);
277 fprintf( stderr
, "APC_MAP_VIEW,status=%s",
278 get_status_name( result
->map_view
.status
));
279 dump_uint64( ",addr=", &result
->map_view
.addr
);
280 dump_uint64( ",size=", &result
->map_view
.size
);
283 fprintf( stderr
, "APC_UNMAP_VIEW,status=%s",
284 get_status_name( result
->unmap_view
.status
) );
286 case APC_CREATE_THREAD
:
287 fprintf( stderr
, "APC_CREATE_THREAD,status=%s,tid=%04x,handle=%04x",
288 get_status_name( result
->create_thread
.status
),
289 result
->create_thread
.tid
, result
->create_thread
.handle
);
292 fprintf( stderr
, "type=%u", result
->type
);
295 fputc( '}', stderr
);
298 static void dump_async_data( const char *prefix
, const async_data_t
*data
)
300 fprintf( stderr
, "%s{handle=%04x,event=%04x", prefix
, data
->handle
, data
->event
);
301 dump_uint64( ",callback=", &data
->callback
);
302 dump_uint64( ",iosb=", &data
->iosb
);
303 dump_uint64( ",arg=", &data
->arg
);
304 dump_uint64( ",cvalue=", &data
->cvalue
);
305 fputc( '}', stderr
);
308 static void dump_hw_input( const char *prefix
, const hw_input_t
*input
)
313 fprintf( stderr
, "%s{type=MOUSE,x=%d,y=%d,data=%08x,flags=%08x,time=%u",
314 prefix
, input
->mouse
.x
, input
->mouse
.y
, input
->mouse
.data
, input
->mouse
.flags
,
316 dump_uint64( ",info=", &input
->mouse
.info
);
317 fputc( '}', stderr
);
320 fprintf( stderr
, "%s{type=KEYBOARD,vkey=%04hx,scan=%04hx,flags=%08x,time=%u",
321 prefix
, input
->kbd
.vkey
, input
->kbd
.scan
, input
->kbd
.flags
, input
->kbd
.time
);
322 dump_uint64( ",info=", &input
->kbd
.info
);
323 fputc( '}', stderr
);
326 fprintf( stderr
, "%s{type=HARDWARE,msg=%04x", prefix
, input
->hw
.msg
);
327 dump_uint64( ",lparam=", &input
->hw
.lparam
);
328 fputc( '}', stderr
);
331 fprintf( stderr
, "%s{type=%04x}", prefix
, input
->type
);
336 static void dump_luid( const char *prefix
, const luid_t
*luid
)
338 fprintf( stderr
, "%s%d.%u", prefix
, luid
->high_part
, luid
->low_part
);
341 static void dump_varargs_ints( const char *prefix
, data_size_t size
)
343 const int *data
= cur_data
;
344 data_size_t len
= size
/ sizeof(*data
);
346 fprintf( stderr
,"%s{", prefix
);
349 fprintf( stderr
, "%d", *data
++ );
350 if (--len
) fputc( ',', stderr
);
352 fputc( '}', stderr
);
356 static void dump_varargs_uints64( const char *prefix
, data_size_t size
)
358 const unsigned __int64
*data
= cur_data
;
359 data_size_t len
= size
/ sizeof(*data
);
361 fprintf( stderr
,"%s{", prefix
);
364 dump_uint64( "", data
++ );
365 if (--len
) fputc( ',', stderr
);
367 fputc( '}', stderr
);
371 static void dump_varargs_apc_result( const char *prefix
, data_size_t size
)
373 const apc_result_t
*result
= cur_data
;
375 if (size
>= sizeof(*result
))
377 dump_apc_result( prefix
, result
);
378 size
= sizeof(*result
);
383 static void dump_varargs_select_op( const char *prefix
, data_size_t size
)
389 fprintf( stderr
, "%s{}", prefix
);
392 memset( &data
, 0, sizeof(data
) );
393 memcpy( &data
, cur_data
, min( size
, sizeof(data
) ));
395 fprintf( stderr
, "%s{", prefix
);
399 fprintf( stderr
, "NONE" );
402 case SELECT_WAIT_ALL
:
403 fprintf( stderr
, "%s", data
.op
== SELECT_WAIT
? "WAIT" : "WAIT_ALL" );
404 if (size
> offsetof( select_op_t
, wait
.handles
))
405 dump_handles( ",handles=", data
.wait
.handles
,
406 min( size
, sizeof(data
.wait
) ) - offsetof( select_op_t
, wait
.handles
));
408 case SELECT_SIGNAL_AND_WAIT
:
409 fprintf( stderr
, "SIGNAL_AND_WAIT,signal=%04x,wait=%04x",
410 data
.signal_and_wait
.signal
, data
.signal_and_wait
.wait
);
412 case SELECT_KEYED_EVENT_WAIT
:
413 case SELECT_KEYED_EVENT_RELEASE
:
414 fprintf( stderr
, "KEYED_EVENT_%s,handle=%04x",
415 data
.op
== SELECT_KEYED_EVENT_WAIT
? "WAIT" : "RELEASE",
416 data
.keyed_event
.handle
);
417 dump_uint64( ",key=", &data
.keyed_event
.key
);
420 fprintf( stderr
, "op=%u", data
.op
);
423 fputc( '}', stderr
);
427 static void dump_varargs_user_handles( const char *prefix
, data_size_t size
)
429 const user_handle_t
*data
= cur_data
;
430 data_size_t len
= size
/ sizeof(*data
);
432 fprintf( stderr
,"%s{", prefix
);
435 fprintf( stderr
, "%08x", *data
++ );
436 if (--len
) fputc( ',', stderr
);
438 fputc( '}', stderr
);
442 static void dump_varargs_bytes( const char *prefix
, data_size_t size
)
444 const unsigned char *data
= cur_data
;
445 data_size_t len
= min( 1024, size
);
447 fprintf( stderr
,"%s{", prefix
);
450 fprintf( stderr
, "%02x", *data
++ );
451 if (--len
) fputc( ',', stderr
);
453 if (size
> 1024) fprintf( stderr
, "...(total %u)", size
);
454 fputc( '}', stderr
);
458 static void dump_varargs_string( const char *prefix
, data_size_t size
)
460 fprintf( stderr
, "%s\"%.*s\"", prefix
, (int)size
, (const char *)cur_data
);
464 static void dump_varargs_unicode_str( const char *prefix
, data_size_t size
)
466 fprintf( stderr
, "%sL\"", prefix
);
467 dump_strW( cur_data
, size
/ sizeof(WCHAR
), stderr
, "\"\"" );
468 fputc( '\"', stderr
);
472 static void dump_varargs_context( const char *prefix
, data_size_t size
)
474 const context_t
*context
= cur_data
;
480 fprintf( stderr
, "%s{}", prefix
);
483 size
= min( size
, sizeof(ctx
) );
484 memset( &ctx
, 0, sizeof(ctx
) );
485 memcpy( &ctx
, context
, size
);
487 fprintf( stderr
,"%s{", prefix
);
488 dump_cpu_type( "cpu=", &ctx
.cpu
);
492 if (ctx
.flags
& SERVER_CTX_CONTROL
)
493 fprintf( stderr
, ",eip=%08x,esp=%08x,ebp=%08x,eflags=%08x,cs=%04x,ss=%04x",
494 ctx
.ctl
.i386_regs
.eip
, ctx
.ctl
.i386_regs
.esp
, ctx
.ctl
.i386_regs
.ebp
,
495 ctx
.ctl
.i386_regs
.eflags
, ctx
.ctl
.i386_regs
.cs
, ctx
.ctl
.i386_regs
.ss
);
496 if (ctx
.flags
& SERVER_CTX_SEGMENTS
)
497 fprintf( stderr
, ",ds=%04x,es=%04x,fs=%04x,gs=%04x",
498 ctx
.seg
.i386_regs
.ds
, ctx
.seg
.i386_regs
.es
,
499 ctx
.seg
.i386_regs
.fs
, ctx
.seg
.i386_regs
.gs
);
500 if (ctx
.flags
& SERVER_CTX_INTEGER
)
501 fprintf( stderr
, ",eax=%08x,ebx=%08x,ecx=%08x,edx=%08x,esi=%08x,edi=%08x",
502 ctx
.integer
.i386_regs
.eax
, ctx
.integer
.i386_regs
.ebx
, ctx
.integer
.i386_regs
.ecx
,
503 ctx
.integer
.i386_regs
.edx
, ctx
.integer
.i386_regs
.esi
, ctx
.integer
.i386_regs
.edi
);
504 if (ctx
.flags
& SERVER_CTX_DEBUG_REGISTERS
)
505 fprintf( stderr
, ",dr0=%08x,dr1=%08x,dr2=%08x,dr3=%08x,dr6=%08x,dr7=%08x",
506 ctx
.debug
.i386_regs
.dr0
, ctx
.debug
.i386_regs
.dr1
, ctx
.debug
.i386_regs
.dr2
,
507 ctx
.debug
.i386_regs
.dr3
, ctx
.debug
.i386_regs
.dr6
, ctx
.debug
.i386_regs
.dr7
);
508 if (ctx
.flags
& SERVER_CTX_FLOATING_POINT
)
510 fprintf( stderr
, ",fp.ctrl=%08x,fp.status=%08x,fp.tag=%08x,fp.err_off=%08x,fp.err_sel=%08x",
511 ctx
.fp
.i386_regs
.ctrl
, ctx
.fp
.i386_regs
.status
, ctx
.fp
.i386_regs
.tag
,
512 ctx
.fp
.i386_regs
.err_off
, ctx
.fp
.i386_regs
.err_sel
);
513 fprintf( stderr
, ",fp.data_off=%08x,fp.data_sel=%08x,fp.cr0npx=%08x",
514 ctx
.fp
.i386_regs
.data_off
, ctx
.fp
.i386_regs
.data_sel
, ctx
.fp
.i386_regs
.cr0npx
);
515 for (i
= 0; i
< 8; i
++)
516 fprintf( stderr
, ",fp.reg%u=%Lg", i
, *(long double *)&ctx
.fp
.i386_regs
.regs
[10*i
] );
518 if (ctx
.flags
& SERVER_CTX_EXTENDED_REGISTERS
)
520 fprintf( stderr
, ",extended=" );
521 dump_uints( (const int *)ctx
.ext
.i386_regs
, sizeof(ctx
.ext
.i386_regs
) / sizeof(int) );
525 if (ctx
.flags
& SERVER_CTX_CONTROL
)
527 dump_uint64( ",rip=", &ctx
.ctl
.x86_64_regs
.rip
);
528 dump_uint64( ",rbp=", &ctx
.ctl
.x86_64_regs
.rbp
);
529 dump_uint64( ",rsp=", &ctx
.ctl
.x86_64_regs
.rsp
);
530 fprintf( stderr
, ",cs=%04x,ss=%04x,flags=%08x",
531 ctx
.ctl
.x86_64_regs
.cs
, ctx
.ctl
.x86_64_regs
.ss
, ctx
.ctl
.x86_64_regs
.flags
);
533 if (ctx
.flags
& SERVER_CTX_INTEGER
)
535 dump_uint64( ",rax=", &ctx
.integer
.x86_64_regs
.rax
);
536 dump_uint64( ",rbx=", &ctx
.integer
.x86_64_regs
.rbx
);
537 dump_uint64( ",rcx=", &ctx
.integer
.x86_64_regs
.rcx
);
538 dump_uint64( ",rdx=", &ctx
.integer
.x86_64_regs
.rdx
);
539 dump_uint64( ",rsi=", &ctx
.integer
.x86_64_regs
.rsi
);
540 dump_uint64( ",rdi=", &ctx
.integer
.x86_64_regs
.rdi
);
541 dump_uint64( ",r8=", &ctx
.integer
.x86_64_regs
.r8
);
542 dump_uint64( ",r9=", &ctx
.integer
.x86_64_regs
.r9
);
543 dump_uint64( ",r10=", &ctx
.integer
.x86_64_regs
.r10
);
544 dump_uint64( ",r11=", &ctx
.integer
.x86_64_regs
.r11
);
545 dump_uint64( ",r12=", &ctx
.integer
.x86_64_regs
.r12
);
546 dump_uint64( ",r13=", &ctx
.integer
.x86_64_regs
.r13
);
547 dump_uint64( ",r14=", &ctx
.integer
.x86_64_regs
.r14
);
548 dump_uint64( ",r15=", &ctx
.integer
.x86_64_regs
.r15
);
550 if (ctx
.flags
& SERVER_CTX_SEGMENTS
)
551 fprintf( stderr
, ",ds=%04x,es=%04x,fs=%04x,gs=%04x",
552 ctx
.seg
.x86_64_regs
.ds
, ctx
.seg
.x86_64_regs
.es
,
553 ctx
.seg
.x86_64_regs
.fs
, ctx
.seg
.x86_64_regs
.gs
);
554 if (ctx
.flags
& SERVER_CTX_DEBUG_REGISTERS
)
556 dump_uint64( ",dr0=", &ctx
.debug
.x86_64_regs
.dr0
);
557 dump_uint64( ",dr1=", &ctx
.debug
.x86_64_regs
.dr1
);
558 dump_uint64( ",dr2=", &ctx
.debug
.x86_64_regs
.dr2
);
559 dump_uint64( ",dr3=", &ctx
.debug
.x86_64_regs
.dr3
);
560 dump_uint64( ",dr6=", &ctx
.debug
.x86_64_regs
.dr6
);
561 dump_uint64( ",dr7=", &ctx
.debug
.x86_64_regs
.dr7
);
563 if (ctx
.flags
& SERVER_CTX_FLOATING_POINT
)
565 for (i
= 0; i
< 32; i
++)
566 fprintf( stderr
, ",fp%u=%08x%08x%08x%08x", i
,
567 (unsigned int)(ctx
.fp
.x86_64_regs
.fpregs
[i
].high
>> 32),
568 (unsigned int)ctx
.fp
.x86_64_regs
.fpregs
[i
].high
,
569 (unsigned int)(ctx
.fp
.x86_64_regs
.fpregs
[i
].low
>> 32),
570 (unsigned int)ctx
.fp
.x86_64_regs
.fpregs
[i
].low
);
574 if (ctx
.flags
& SERVER_CTX_CONTROL
)
575 fprintf( stderr
, ",iar=%08x,msr=%08x,ctr=%08x,lr=%08x,dar=%08x,dsisr=%08x,trap=%08x",
576 ctx
.ctl
.powerpc_regs
.iar
, ctx
.ctl
.powerpc_regs
.msr
, ctx
.ctl
.powerpc_regs
.ctr
,
577 ctx
.ctl
.powerpc_regs
.lr
, ctx
.ctl
.powerpc_regs
.dar
, ctx
.ctl
.powerpc_regs
.dsisr
,
578 ctx
.ctl
.powerpc_regs
.trap
);
579 if (ctx
.flags
& SERVER_CTX_INTEGER
)
581 for (i
= 0; i
< 32; i
++) fprintf( stderr
, ",gpr%u=%08x", i
, ctx
.integer
.powerpc_regs
.gpr
[i
] );
582 fprintf( stderr
, ",cr=%08x,xer=%08x",
583 ctx
.integer
.powerpc_regs
.cr
, ctx
.integer
.powerpc_regs
.xer
);
585 if (ctx
.flags
& SERVER_CTX_DEBUG_REGISTERS
)
586 for (i
= 0; i
< 8; i
++) fprintf( stderr
, ",dr%u=%08x", i
, ctx
.debug
.powerpc_regs
.dr
[i
] );
587 if (ctx
.flags
& SERVER_CTX_FLOATING_POINT
)
589 for (i
= 0; i
< 32; i
++) fprintf( stderr
, ",fpr%u=%g", i
, ctx
.fp
.powerpc_regs
.fpr
[i
] );
590 fprintf( stderr
, ",fpscr=%g", ctx
.fp
.powerpc_regs
.fpscr
);
594 if (ctx
.flags
& SERVER_CTX_CONTROL
)
595 fprintf( stderr
, ",sp=%08x,lr=%08x,pc=%08x,cpsr=%08x",
596 ctx
.ctl
.arm_regs
.sp
, ctx
.ctl
.arm_regs
.lr
,
597 ctx
.ctl
.arm_regs
.pc
, ctx
.ctl
.arm_regs
.cpsr
);
598 if (ctx
.flags
& SERVER_CTX_INTEGER
)
599 for (i
= 0; i
< 13; i
++) fprintf( stderr
, ",r%u=%08x", i
, ctx
.integer
.arm_regs
.r
[i
] );
602 if (ctx
.flags
& SERVER_CTX_CONTROL
)
604 dump_uint64( ",sp=", &ctx
.ctl
.arm64_regs
.sp
);
605 dump_uint64( ",pc=", &ctx
.ctl
.arm64_regs
.pc
);
606 dump_uint64( ",pstate=", &ctx
.ctl
.arm64_regs
.pstate
);
608 if (ctx
.flags
& SERVER_CTX_INTEGER
)
610 dump_uint64( ",x0=", &ctx
.integer
.arm64_regs
.x
[0] );
611 dump_uint64( ",x1=", &ctx
.integer
.arm64_regs
.x
[1] );
612 dump_uint64( ",x2=", &ctx
.integer
.arm64_regs
.x
[2] );
613 dump_uint64( ",x3=", &ctx
.integer
.arm64_regs
.x
[3] );
614 dump_uint64( ",x4=", &ctx
.integer
.arm64_regs
.x
[4] );
615 dump_uint64( ",x5=", &ctx
.integer
.arm64_regs
.x
[5] );
616 dump_uint64( ",x6=", &ctx
.integer
.arm64_regs
.x
[6] );
617 dump_uint64( ",x7=", &ctx
.integer
.arm64_regs
.x
[7] );
618 dump_uint64( ",x8=", &ctx
.integer
.arm64_regs
.x
[8] );
619 dump_uint64( ",x9=", &ctx
.integer
.arm64_regs
.x
[9] );
620 dump_uint64( ",x10=", &ctx
.integer
.arm64_regs
.x
[10] );
621 dump_uint64( ",x11=", &ctx
.integer
.arm64_regs
.x
[11] );
622 dump_uint64( ",x12=", &ctx
.integer
.arm64_regs
.x
[12] );
623 dump_uint64( ",x13=", &ctx
.integer
.arm64_regs
.x
[13] );
624 dump_uint64( ",x14=", &ctx
.integer
.arm64_regs
.x
[14] );
625 dump_uint64( ",x15=", &ctx
.integer
.arm64_regs
.x
[15] );
626 dump_uint64( ",x16=", &ctx
.integer
.arm64_regs
.x
[16] );
627 dump_uint64( ",x17=", &ctx
.integer
.arm64_regs
.x
[17] );
628 dump_uint64( ",x18=", &ctx
.integer
.arm64_regs
.x
[18] );
629 dump_uint64( ",x19=", &ctx
.integer
.arm64_regs
.x
[19] );
630 dump_uint64( ",x20=", &ctx
.integer
.arm64_regs
.x
[20] );
631 dump_uint64( ",x21=", &ctx
.integer
.arm64_regs
.x
[21] );
632 dump_uint64( ",x22=", &ctx
.integer
.arm64_regs
.x
[22] );
633 dump_uint64( ",x23=", &ctx
.integer
.arm64_regs
.x
[23] );
634 dump_uint64( ",x24=", &ctx
.integer
.arm64_regs
.x
[24] );
635 dump_uint64( ",x25=", &ctx
.integer
.arm64_regs
.x
[25] );
636 dump_uint64( ",x26=", &ctx
.integer
.arm64_regs
.x
[26] );
637 dump_uint64( ",x27=", &ctx
.integer
.arm64_regs
.x
[27] );
638 dump_uint64( ",x28=", &ctx
.integer
.arm64_regs
.x
[28] );
639 dump_uint64( ",x29=", &ctx
.integer
.arm64_regs
.x
[29] );
640 dump_uint64( ",x30=", &ctx
.integer
.arm64_regs
.x
[30] );
644 fputc( '}', stderr
);
648 static void dump_varargs_debug_event( const char *prefix
, data_size_t size
)
655 fprintf( stderr
, "%s{}", prefix
);
658 size
= min( size
, sizeof(event
) );
659 memset( &event
, 0, sizeof(event
) );
660 memcpy( &event
, cur_data
, size
);
664 case EXCEPTION_DEBUG_EVENT
:
665 fprintf( stderr
, "%s{exception,first=%d,exc_code=%08x,flags=%08x", prefix
,
666 event
.exception
.first
, event
.exception
.exc_code
, event
.exception
.flags
);
667 dump_uint64( ",record=", &event
.exception
.record
);
668 dump_uint64( ",address=", &event
.exception
.address
);
669 fprintf( stderr
, ",params={" );
670 event
.exception
.nb_params
= min( event
.exception
.nb_params
, EXCEPTION_MAXIMUM_PARAMETERS
);
671 for (i
= 0; i
< event
.exception
.nb_params
; i
++)
673 dump_uint64( "", &event
.exception
.params
[i
] );
674 if (i
< event
.exception
.nb_params
) fputc( ',', stderr
);
676 fprintf( stderr
, "}}" );
678 case CREATE_THREAD_DEBUG_EVENT
:
679 fprintf( stderr
, "%s{create_thread,thread=%04x", prefix
, event
.create_thread
.handle
);
680 dump_uint64( ",teb=", &event
.create_thread
.teb
);
681 dump_uint64( ",start=", &event
.create_thread
.start
);
682 fputc( '}', stderr
);
684 case CREATE_PROCESS_DEBUG_EVENT
:
685 fprintf( stderr
, "%s{create_process,file=%04x,process=%04x,thread=%04x", prefix
,
686 event
.create_process
.file
, event
.create_process
.process
,
687 event
.create_process
.thread
);
688 dump_uint64( ",base=", &event
.create_process
.base
);
689 fprintf( stderr
, ",offset=%d,size=%d",
690 event
.create_process
.dbg_offset
, event
.create_process
.dbg_size
);
691 dump_uint64( ",teb=", &event
.create_process
.teb
);
692 dump_uint64( ",start=", &event
.create_process
.start
);
693 dump_uint64( ",name=", &event
.create_process
.name
);
694 fprintf( stderr
, ",unicode=%d}", event
.create_process
.unicode
);
696 case EXIT_THREAD_DEBUG_EVENT
:
697 fprintf( stderr
, "%s{exit_thread,code=%d}", prefix
, event
.exit
.exit_code
);
699 case EXIT_PROCESS_DEBUG_EVENT
:
700 fprintf( stderr
, "%s{exit_process,code=%d}", prefix
, event
.exit
.exit_code
);
702 case LOAD_DLL_DEBUG_EVENT
:
703 fprintf( stderr
, "%s{load_dll,file=%04x", prefix
, event
.load_dll
.handle
);
704 dump_uint64( ",base=", &event
.load_dll
.base
);
705 fprintf( stderr
, ",offset=%d,size=%d",
706 event
.load_dll
.dbg_offset
, event
.load_dll
.dbg_size
);
707 dump_uint64( ",name=", &event
.load_dll
.name
);
708 fprintf( stderr
, ",unicode=%d}", event
.load_dll
.unicode
);
710 case UNLOAD_DLL_DEBUG_EVENT
:
711 fprintf( stderr
, "%s{unload_dll", prefix
);
712 dump_uint64( ",base=", &event
.unload_dll
.base
);
713 fputc( '}', stderr
);
715 case OUTPUT_DEBUG_STRING_EVENT
:
716 fprintf( stderr
, "%s{output_string", prefix
);
717 dump_uint64( ",string=", &event
.output_string
.string
);
718 fprintf( stderr
, ",len=%u}", event
.output_string
.length
);
721 fprintf( stderr
, "%s{rip,err=%d,type=%d}", prefix
,
722 event
.rip_info
.error
, event
.rip_info
.type
);
724 case 0: /* zero is the code returned on timeouts */
725 fprintf( stderr
, "%s{}", prefix
);
728 fprintf( stderr
, "%s{code=??? (%d)}", prefix
, event
.code
);
734 /* dump a unicode string contained in a buffer; helper for dump_varargs_startup_info */
735 static data_size_t
dump_inline_unicode_string( const char *prefix
, data_size_t pos
, data_size_t len
, data_size_t total_size
)
737 fputs( prefix
, stderr
);
738 if (pos
>= total_size
) return pos
;
739 if (len
> total_size
- pos
) len
= total_size
- pos
;
740 len
/= sizeof(WCHAR
);
741 dump_strW( (const WCHAR
*)cur_data
+ pos
/sizeof(WCHAR
), len
, stderr
, "\"\"" );
742 return pos
+ len
* sizeof(WCHAR
);
745 static void dump_varargs_startup_info( const char *prefix
, data_size_t size
)
748 data_size_t pos
= sizeof(info
);
750 memset( &info
, 0, sizeof(info
) );
751 memcpy( &info
, cur_data
, min( size
, sizeof(info
) ));
754 "%s{debug_flags=%x,console_flags=%x,console=%04x,hstdin=%04x,hstdout=%04x,hstderr=%04x,"
755 "x=%u,y=%u,xsize=%u,ysize=%u,xchars=%u,ychars=%u,attribute=%02x,flags=%x,show=%u",
756 prefix
, info
.debug_flags
, info
.console_flags
, info
.console
,
757 info
.hstdin
, info
.hstdout
, info
.hstderr
, info
.x
, info
.y
, info
.xsize
, info
.ysize
,
758 info
.xchars
, info
.ychars
, info
.attribute
, info
.flags
, info
.show
);
759 pos
= dump_inline_unicode_string( ",curdir=L\"", pos
, info
.curdir_len
, size
);
760 pos
= dump_inline_unicode_string( "\",dllpath=L\"", pos
, info
.dllpath_len
, size
);
761 pos
= dump_inline_unicode_string( "\",imagepath=L\"", pos
, info
.imagepath_len
, size
);
762 pos
= dump_inline_unicode_string( "\",cmdline=L\"", pos
, info
.cmdline_len
, size
);
763 pos
= dump_inline_unicode_string( "\",title=L\"", pos
, info
.title_len
, size
);
764 pos
= dump_inline_unicode_string( "\",desktop=L\"", pos
, info
.desktop_len
, size
);
765 pos
= dump_inline_unicode_string( "\",shellinfo=L\"", pos
, info
.shellinfo_len
, size
);
766 pos
= dump_inline_unicode_string( "\",runtime=L\"", pos
, info
.runtime_len
, size
);
767 fprintf( stderr
, "\"}" );
771 static void dump_varargs_input_records( const char *prefix
, data_size_t size
)
773 const INPUT_RECORD
*rec
= cur_data
;
774 data_size_t len
= size
/ sizeof(*rec
);
776 fprintf( stderr
,"%s{", prefix
);
779 fprintf( stderr
, "{%04x,...}", rec
->EventType
);
781 if (--len
) fputc( ',', stderr
);
783 fputc( '}', stderr
);
787 static void dump_varargs_rectangles( const char *prefix
, data_size_t size
)
789 const rectangle_t
*rect
= cur_data
;
790 data_size_t len
= size
/ sizeof(*rect
);
792 fprintf( stderr
,"%s{", prefix
);
795 dump_rectangle( "", rect
++ );
796 if (--len
) fputc( ',', stderr
);
798 fputc( '}', stderr
);
802 static void dump_varargs_message_data( const char *prefix
, data_size_t size
)
804 /* FIXME: dump the structured data */
805 dump_varargs_bytes( prefix
, size
);
808 static void dump_varargs_properties( const char *prefix
, data_size_t size
)
810 const property_data_t
*prop
= cur_data
;
811 data_size_t len
= size
/ sizeof(*prop
);
813 fprintf( stderr
,"%s{", prefix
);
816 fprintf( stderr
, "{atom=%04x,str=%d", prop
->atom
, prop
->string
);
817 dump_uint64( ",data=", &prop
->data
);
818 fputc( '}', stderr
);
820 if (--len
) fputc( ',', stderr
);
822 fputc( '}', stderr
);
826 static void dump_varargs_LUID_AND_ATTRIBUTES( const char *prefix
, data_size_t size
)
828 const LUID_AND_ATTRIBUTES
*lat
= cur_data
;
829 data_size_t len
= size
/ sizeof(*lat
);
831 fprintf( stderr
,"%s{", prefix
);
834 fprintf( stderr
, "{luid=%08x%08x,attr=%x}",
835 lat
->Luid
.HighPart
, lat
->Luid
.LowPart
, lat
->Attributes
);
837 if (--len
) fputc( ',', stderr
);
839 fputc( '}', stderr
);
843 static void dump_inline_sid( const char *prefix
, const SID
*sid
, data_size_t size
)
848 if ((FIELD_OFFSET(SID
, SubAuthority
[0]) > size
) ||
849 (FIELD_OFFSET(SID
, SubAuthority
[sid
->SubAuthorityCount
]) > size
))
851 fprintf( stderr
, "<invalid sid>" );
855 fprintf( stderr
,"%s{", prefix
);
856 fprintf( stderr
, "S-%u-%u", sid
->Revision
, MAKELONG(
857 MAKEWORD( sid
->IdentifierAuthority
.Value
[5],
858 sid
->IdentifierAuthority
.Value
[4] ),
859 MAKEWORD( sid
->IdentifierAuthority
.Value
[3],
860 sid
->IdentifierAuthority
.Value
[2] ) ) );
861 for (i
= 0; i
< sid
->SubAuthorityCount
; i
++)
862 fprintf( stderr
, "-%u", sid
->SubAuthority
[i
] );
863 fputc( '}', stderr
);
866 static void dump_varargs_SID( const char *prefix
, data_size_t size
)
868 const SID
*sid
= cur_data
;
869 dump_inline_sid( prefix
, sid
, size
);
873 static void dump_inline_acl( const char *prefix
, const ACL
*acl
, data_size_t size
)
875 const ACE_HEADER
*ace
;
878 fprintf( stderr
,"%s{", prefix
);
881 if (size
< sizeof(ACL
))
883 fprintf( stderr
, "<invalid acl>}" );
887 ace
= (const ACE_HEADER
*)(acl
+ 1);
888 for (i
= 0; i
< acl
->AceCount
; i
++)
890 const SID
*sid
= NULL
;
891 data_size_t sid_size
= 0;
893 if (size
< sizeof(ACE_HEADER
) || size
< ace
->AceSize
) break;
894 size
-= ace
->AceSize
;
895 if (i
!= 0) fputc( ',', stderr
);
896 fprintf( stderr
, "{AceType=" );
897 switch (ace
->AceType
)
899 case ACCESS_DENIED_ACE_TYPE
:
900 sid
= (const SID
*)&((const ACCESS_DENIED_ACE
*)ace
)->SidStart
;
901 sid_size
= ace
->AceSize
- FIELD_OFFSET(ACCESS_DENIED_ACE
, SidStart
);
902 fprintf( stderr
, "ACCESS_DENIED_ACE_TYPE,Mask=%x",
903 ((const ACCESS_DENIED_ACE
*)ace
)->Mask
);
905 case ACCESS_ALLOWED_ACE_TYPE
:
906 sid
= (const SID
*)&((const ACCESS_ALLOWED_ACE
*)ace
)->SidStart
;
907 sid_size
= ace
->AceSize
- FIELD_OFFSET(ACCESS_ALLOWED_ACE
, SidStart
);
908 fprintf( stderr
, "ACCESS_ALLOWED_ACE_TYPE,Mask=%x",
909 ((const ACCESS_ALLOWED_ACE
*)ace
)->Mask
);
911 case SYSTEM_AUDIT_ACE_TYPE
:
912 sid
= (const SID
*)&((const SYSTEM_AUDIT_ACE
*)ace
)->SidStart
;
913 sid_size
= ace
->AceSize
- FIELD_OFFSET(SYSTEM_AUDIT_ACE
, SidStart
);
914 fprintf( stderr
, "SYSTEM_AUDIT_ACE_TYPE,Mask=%x",
915 ((const SYSTEM_AUDIT_ACE
*)ace
)->Mask
);
917 case SYSTEM_ALARM_ACE_TYPE
:
918 sid
= (const SID
*)&((const SYSTEM_ALARM_ACE
*)ace
)->SidStart
;
919 sid_size
= ace
->AceSize
- FIELD_OFFSET(SYSTEM_ALARM_ACE
, SidStart
);
920 fprintf( stderr
, "SYSTEM_ALARM_ACE_TYPE,Mask=%x",
921 ((const SYSTEM_ALARM_ACE
*)ace
)->Mask
);
924 fprintf( stderr
, "unknown<%d>", ace
->AceType
);
927 fprintf( stderr
, ",AceFlags=%x", ace
->AceFlags
);
929 dump_inline_sid( ",Sid=", sid
, sid_size
);
930 ace
= (const ACE_HEADER
*)((const char *)ace
+ ace
->AceSize
);
931 fputc( '}', stderr
);
934 fputc( '}', stderr
);
937 static void dump_varargs_ACL( const char *prefix
, data_size_t size
)
939 const ACL
*acl
= cur_data
;
940 dump_inline_acl( prefix
, acl
, size
);
944 static void dump_inline_security_descriptor( const char *prefix
, const struct security_descriptor
*sd
, data_size_t size
)
946 fprintf( stderr
,"%s{", prefix
);
947 if (size
>= sizeof(struct security_descriptor
))
949 size_t offset
= sizeof(struct security_descriptor
);
950 fprintf( stderr
, "control=%08x", sd
->control
);
951 if ((sd
->owner_len
> FIELD_OFFSET(SID
, SubAuthority
[255])) || (offset
+ sd
->owner_len
> size
))
954 dump_inline_sid( ",owner=", (const SID
*)((const char *)sd
+ offset
), sd
->owner_len
);
956 fprintf( stderr
, ",owner=<not present>" );
957 offset
+= sd
->owner_len
;
958 if ((sd
->group_len
> FIELD_OFFSET(SID
, SubAuthority
[255])) || (offset
+ sd
->group_len
> size
))
961 dump_inline_sid( ",group=", (const SID
*)((const char *)sd
+ offset
), sd
->group_len
);
963 fprintf( stderr
, ",group=<not present>" );
964 offset
+= sd
->group_len
;
965 if ((sd
->sacl_len
>= MAX_ACL_LEN
) || (offset
+ sd
->sacl_len
> size
))
967 dump_inline_acl( ",sacl=", (const ACL
*)((const char *)sd
+ offset
), sd
->sacl_len
);
968 offset
+= sd
->sacl_len
;
969 if ((sd
->dacl_len
>= MAX_ACL_LEN
) || (offset
+ sd
->dacl_len
> size
))
971 dump_inline_acl( ",dacl=", (const ACL
*)((const char *)sd
+ offset
), sd
->dacl_len
);
972 offset
+= sd
->dacl_len
;
974 fputc( '}', stderr
);
977 static void dump_varargs_security_descriptor( const char *prefix
, data_size_t size
)
979 const struct security_descriptor
*sd
= cur_data
;
980 dump_inline_security_descriptor( prefix
, sd
, size
);
984 static void dump_varargs_token_groups( const char *prefix
, data_size_t size
)
986 const struct token_groups
*tg
= cur_data
;
988 fprintf( stderr
,"%s{", prefix
);
989 if (size
>= sizeof(struct token_groups
))
991 size_t offset
= sizeof(*tg
);
992 fprintf( stderr
, "count=%08x,", tg
->count
);
993 if (tg
->count
* sizeof(unsigned int) <= size
)
996 const unsigned int *attr
= (const unsigned int *)(tg
+ 1);
998 offset
+= tg
->count
* sizeof(unsigned int);
1000 fputc( '[', stderr
);
1001 for (i
= 0; i
< tg
->count
; i
++)
1003 const SID
*sid
= (const SID
*)((const char *)cur_data
+ offset
);
1005 fputc( ',', stderr
);
1006 fputc( '{', stderr
);
1007 fprintf( stderr
, "attributes=%08x", attr
[i
] );
1008 dump_inline_sid( ",sid=", sid
, size
- offset
);
1009 if ((offset
+ FIELD_OFFSET(SID
, SubAuthority
[0]) > size
) ||
1010 (offset
+ FIELD_OFFSET(SID
, SubAuthority
[sid
->SubAuthorityCount
]) > size
))
1012 offset
+= FIELD_OFFSET(SID
, SubAuthority
[sid
->SubAuthorityCount
]);
1013 fputc( '}', stderr
);
1015 fputc( ']', stderr
);
1018 fputc( '}', stderr
);
1021 static void dump_varargs_object_attributes( const char *prefix
, data_size_t size
)
1023 const struct object_attributes
*objattr
= cur_data
;
1025 fprintf( stderr
,"%s{", prefix
);
1026 if (size
>= sizeof(struct object_attributes
))
1029 fprintf( stderr
, "rootdir=%04x", objattr
->rootdir
);
1030 if (objattr
->sd_len
> size
- sizeof(*objattr
) ||
1031 objattr
->name_len
> size
- sizeof(*objattr
) - objattr
->sd_len
)
1033 dump_inline_security_descriptor( ",sd=", (const struct security_descriptor
*)(objattr
+ 1), objattr
->sd_len
);
1034 str
= (const WCHAR
*)objattr
+ (sizeof(*objattr
) + objattr
->sd_len
) / sizeof(WCHAR
);
1035 fprintf( stderr
, ",name=L\"" );
1036 dump_strW( str
, objattr
->name_len
/ sizeof(WCHAR
), stderr
, "\"\"" );
1037 fputc( '\"', stderr
);
1038 remove_data( ((sizeof(*objattr
) + objattr
->sd_len
) / sizeof(WCHAR
)) * sizeof(WCHAR
) +
1039 objattr
->name_len
);
1041 fputc( '}', stderr
);
1044 static void dump_varargs_filesystem_event( const char *prefix
, data_size_t size
)
1046 static const char * const actions
[] = {
1058 fprintf( stderr
,"%s{", prefix
);
1061 const struct filesystem_event
*event
= cur_data
;
1062 data_size_t len
= (offsetof( struct filesystem_event
, name
[event
->len
] ) + sizeof(int)-1)
1063 / sizeof(int) * sizeof(int);
1064 if (size
< len
) break;
1065 if (event
->action
< sizeof(actions
)/sizeof(actions
[0]) && actions
[event
->action
])
1066 fprintf( stderr
, "{action=%s", actions
[event
->action
] );
1068 fprintf( stderr
, "{action=%u", event
->action
);
1069 fprintf( stderr
, ",name=\"%.*s\"}", event
->len
, event
->name
);
1072 if (size
)fputc( ',', stderr
);
1074 fputc( '}', stderr
);
1077 static void dump_varargs_rawinput_devices(const char *prefix
, data_size_t size
)
1079 const struct rawinput_device
*device
;
1081 fprintf( stderr
, "%s{", prefix
);
1082 while (size
>= sizeof(*device
))
1085 fprintf( stderr
, "{usage_page=%04x,usage=%04x,flags=%08x,target=%08x}",
1086 device
->usage_page
, device
->usage
, device
->flags
, device
->target
);
1087 size
-= sizeof(*device
);
1088 remove_data( sizeof(*device
) );
1089 if (size
) fputc( ',', stderr
);
1091 fputc( '}', stderr
);
1094 typedef void (*dump_func
)( const void *req
);
1096 /* Everything below this line is generated automatically by tools/make_requests */
1097 /* ### make_requests begin ### */
1099 static void dump_new_process_request( const struct new_process_request
*req
)
1101 fprintf( stderr
, " inherit_all=%d", req
->inherit_all
);
1102 fprintf( stderr
, ", create_flags=%08x", req
->create_flags
);
1103 fprintf( stderr
, ", socket_fd=%d", req
->socket_fd
);
1104 fprintf( stderr
, ", exe_file=%04x", req
->exe_file
);
1105 fprintf( stderr
, ", process_access=%08x", req
->process_access
);
1106 fprintf( stderr
, ", process_attr=%08x", req
->process_attr
);
1107 fprintf( stderr
, ", thread_access=%08x", req
->thread_access
);
1108 fprintf( stderr
, ", thread_attr=%08x", req
->thread_attr
);
1109 dump_cpu_type( ", cpu=", &req
->cpu
);
1110 fprintf( stderr
, ", info_size=%u", req
->info_size
);
1111 dump_varargs_startup_info( ", info=", min(cur_size
,req
->info_size
) );
1112 dump_varargs_unicode_str( ", env=", cur_size
);
1115 static void dump_new_process_reply( const struct new_process_reply
*req
)
1117 fprintf( stderr
, " info=%04x", req
->info
);
1118 fprintf( stderr
, ", pid=%04x", req
->pid
);
1119 fprintf( stderr
, ", phandle=%04x", req
->phandle
);
1120 fprintf( stderr
, ", tid=%04x", req
->tid
);
1121 fprintf( stderr
, ", thandle=%04x", req
->thandle
);
1124 static void dump_get_new_process_info_request( const struct get_new_process_info_request
*req
)
1126 fprintf( stderr
, " info=%04x", req
->info
);
1129 static void dump_get_new_process_info_reply( const struct get_new_process_info_reply
*req
)
1131 fprintf( stderr
, " success=%d", req
->success
);
1132 fprintf( stderr
, ", exit_code=%d", req
->exit_code
);
1135 static void dump_new_thread_request( const struct new_thread_request
*req
)
1137 fprintf( stderr
, " access=%08x", req
->access
);
1138 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1139 fprintf( stderr
, ", suspend=%d", req
->suspend
);
1140 fprintf( stderr
, ", request_fd=%d", req
->request_fd
);
1143 static void dump_new_thread_reply( const struct new_thread_reply
*req
)
1145 fprintf( stderr
, " tid=%04x", req
->tid
);
1146 fprintf( stderr
, ", handle=%04x", req
->handle
);
1149 static void dump_get_startup_info_request( const struct get_startup_info_request
*req
)
1153 static void dump_get_startup_info_reply( const struct get_startup_info_reply
*req
)
1155 fprintf( stderr
, " exe_file=%04x", req
->exe_file
);
1156 fprintf( stderr
, ", info_size=%u", req
->info_size
);
1157 dump_varargs_startup_info( ", info=", min(cur_size
,req
->info_size
) );
1158 dump_varargs_unicode_str( ", env=", cur_size
);
1161 static void dump_init_process_done_request( const struct init_process_done_request
*req
)
1163 fprintf( stderr
, " gui=%d", req
->gui
);
1164 dump_uint64( ", module=", &req
->module
);
1165 dump_uint64( ", ldt_copy=", &req
->ldt_copy
);
1166 dump_uint64( ", entry=", &req
->entry
);
1169 static void dump_init_thread_request( const struct init_thread_request
*req
)
1171 fprintf( stderr
, " unix_pid=%d", req
->unix_pid
);
1172 fprintf( stderr
, ", unix_tid=%d", req
->unix_tid
);
1173 fprintf( stderr
, ", debug_level=%d", req
->debug_level
);
1174 dump_uint64( ", teb=", &req
->teb
);
1175 dump_uint64( ", entry=", &req
->entry
);
1176 fprintf( stderr
, ", reply_fd=%d", req
->reply_fd
);
1177 fprintf( stderr
, ", wait_fd=%d", req
->wait_fd
);
1178 dump_cpu_type( ", cpu=", &req
->cpu
);
1181 static void dump_init_thread_reply( const struct init_thread_reply
*req
)
1183 fprintf( stderr
, " pid=%04x", req
->pid
);
1184 fprintf( stderr
, ", tid=%04x", req
->tid
);
1185 dump_timeout( ", server_start=", &req
->server_start
);
1186 fprintf( stderr
, ", info_size=%u", req
->info_size
);
1187 fprintf( stderr
, ", version=%d", req
->version
);
1188 fprintf( stderr
, ", all_cpus=%08x", req
->all_cpus
);
1191 static void dump_terminate_process_request( const struct terminate_process_request
*req
)
1193 fprintf( stderr
, " handle=%04x", req
->handle
);
1194 fprintf( stderr
, ", exit_code=%d", req
->exit_code
);
1197 static void dump_terminate_process_reply( const struct terminate_process_reply
*req
)
1199 fprintf( stderr
, " self=%d", req
->self
);
1202 static void dump_terminate_thread_request( const struct terminate_thread_request
*req
)
1204 fprintf( stderr
, " handle=%04x", req
->handle
);
1205 fprintf( stderr
, ", exit_code=%d", req
->exit_code
);
1208 static void dump_terminate_thread_reply( const struct terminate_thread_reply
*req
)
1210 fprintf( stderr
, " self=%d", req
->self
);
1211 fprintf( stderr
, ", last=%d", req
->last
);
1214 static void dump_get_process_info_request( const struct get_process_info_request
*req
)
1216 fprintf( stderr
, " handle=%04x", req
->handle
);
1219 static void dump_get_process_info_reply( const struct get_process_info_reply
*req
)
1221 fprintf( stderr
, " pid=%04x", req
->pid
);
1222 fprintf( stderr
, ", ppid=%04x", req
->ppid
);
1223 dump_uint64( ", affinity=", &req
->affinity
);
1224 dump_uint64( ", peb=", &req
->peb
);
1225 dump_timeout( ", start_time=", &req
->start_time
);
1226 dump_timeout( ", end_time=", &req
->end_time
);
1227 fprintf( stderr
, ", exit_code=%d", req
->exit_code
);
1228 fprintf( stderr
, ", priority=%d", req
->priority
);
1229 dump_cpu_type( ", cpu=", &req
->cpu
);
1230 fprintf( stderr
, ", debugger_present=%d", req
->debugger_present
);
1233 static void dump_set_process_info_request( const struct set_process_info_request
*req
)
1235 fprintf( stderr
, " handle=%04x", req
->handle
);
1236 fprintf( stderr
, ", mask=%d", req
->mask
);
1237 fprintf( stderr
, ", priority=%d", req
->priority
);
1238 dump_uint64( ", affinity=", &req
->affinity
);
1241 static void dump_get_thread_info_request( const struct get_thread_info_request
*req
)
1243 fprintf( stderr
, " handle=%04x", req
->handle
);
1244 fprintf( stderr
, ", tid_in=%04x", req
->tid_in
);
1247 static void dump_get_thread_info_reply( const struct get_thread_info_reply
*req
)
1249 fprintf( stderr
, " pid=%04x", req
->pid
);
1250 fprintf( stderr
, ", tid=%04x", req
->tid
);
1251 dump_uint64( ", teb=", &req
->teb
);
1252 dump_uint64( ", affinity=", &req
->affinity
);
1253 dump_timeout( ", creation_time=", &req
->creation_time
);
1254 dump_timeout( ", exit_time=", &req
->exit_time
);
1255 fprintf( stderr
, ", exit_code=%d", req
->exit_code
);
1256 fprintf( stderr
, ", priority=%d", req
->priority
);
1257 fprintf( stderr
, ", last=%d", req
->last
);
1260 static void dump_set_thread_info_request( const struct set_thread_info_request
*req
)
1262 fprintf( stderr
, " handle=%04x", req
->handle
);
1263 fprintf( stderr
, ", mask=%d", req
->mask
);
1264 fprintf( stderr
, ", priority=%d", req
->priority
);
1265 dump_uint64( ", affinity=", &req
->affinity
);
1266 fprintf( stderr
, ", token=%04x", req
->token
);
1269 static void dump_get_dll_info_request( const struct get_dll_info_request
*req
)
1271 fprintf( stderr
, " handle=%04x", req
->handle
);
1272 dump_uint64( ", base_address=", &req
->base_address
);
1275 static void dump_get_dll_info_reply( const struct get_dll_info_reply
*req
)
1277 dump_uint64( " entry_point=", &req
->entry_point
);
1278 fprintf( stderr
, ", size=%u", req
->size
);
1279 fprintf( stderr
, ", filename_len=%u", req
->filename_len
);
1280 dump_varargs_unicode_str( ", filename=", cur_size
);
1283 static void dump_suspend_thread_request( const struct suspend_thread_request
*req
)
1285 fprintf( stderr
, " handle=%04x", req
->handle
);
1288 static void dump_suspend_thread_reply( const struct suspend_thread_reply
*req
)
1290 fprintf( stderr
, " count=%d", req
->count
);
1293 static void dump_resume_thread_request( const struct resume_thread_request
*req
)
1295 fprintf( stderr
, " handle=%04x", req
->handle
);
1298 static void dump_resume_thread_reply( const struct resume_thread_reply
*req
)
1300 fprintf( stderr
, " count=%d", req
->count
);
1303 static void dump_load_dll_request( const struct load_dll_request
*req
)
1305 fprintf( stderr
, " mapping=%04x", req
->mapping
);
1306 dump_uint64( ", base=", &req
->base
);
1307 dump_uint64( ", name=", &req
->name
);
1308 fprintf( stderr
, ", size=%u", req
->size
);
1309 fprintf( stderr
, ", dbg_offset=%d", req
->dbg_offset
);
1310 fprintf( stderr
, ", dbg_size=%d", req
->dbg_size
);
1311 dump_varargs_unicode_str( ", filename=", cur_size
);
1314 static void dump_unload_dll_request( const struct unload_dll_request
*req
)
1316 dump_uint64( " base=", &req
->base
);
1319 static void dump_queue_apc_request( const struct queue_apc_request
*req
)
1321 fprintf( stderr
, " handle=%04x", req
->handle
);
1322 dump_apc_call( ", call=", &req
->call
);
1325 static void dump_queue_apc_reply( const struct queue_apc_reply
*req
)
1327 fprintf( stderr
, " handle=%04x", req
->handle
);
1328 fprintf( stderr
, ", self=%d", req
->self
);
1331 static void dump_get_apc_result_request( const struct get_apc_result_request
*req
)
1333 fprintf( stderr
, " handle=%04x", req
->handle
);
1336 static void dump_get_apc_result_reply( const struct get_apc_result_reply
*req
)
1338 dump_apc_result( " result=", &req
->result
);
1341 static void dump_close_handle_request( const struct close_handle_request
*req
)
1343 fprintf( stderr
, " handle=%04x", req
->handle
);
1346 static void dump_set_handle_info_request( const struct set_handle_info_request
*req
)
1348 fprintf( stderr
, " handle=%04x", req
->handle
);
1349 fprintf( stderr
, ", flags=%d", req
->flags
);
1350 fprintf( stderr
, ", mask=%d", req
->mask
);
1353 static void dump_set_handle_info_reply( const struct set_handle_info_reply
*req
)
1355 fprintf( stderr
, " old_flags=%d", req
->old_flags
);
1358 static void dump_dup_handle_request( const struct dup_handle_request
*req
)
1360 fprintf( stderr
, " src_process=%04x", req
->src_process
);
1361 fprintf( stderr
, ", src_handle=%04x", req
->src_handle
);
1362 fprintf( stderr
, ", dst_process=%04x", req
->dst_process
);
1363 fprintf( stderr
, ", access=%08x", req
->access
);
1364 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1365 fprintf( stderr
, ", options=%08x", req
->options
);
1368 static void dump_dup_handle_reply( const struct dup_handle_reply
*req
)
1370 fprintf( stderr
, " handle=%04x", req
->handle
);
1371 fprintf( stderr
, ", self=%d", req
->self
);
1372 fprintf( stderr
, ", closed=%d", req
->closed
);
1375 static void dump_open_process_request( const struct open_process_request
*req
)
1377 fprintf( stderr
, " pid=%04x", req
->pid
);
1378 fprintf( stderr
, ", access=%08x", req
->access
);
1379 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1382 static void dump_open_process_reply( const struct open_process_reply
*req
)
1384 fprintf( stderr
, " handle=%04x", req
->handle
);
1387 static void dump_open_thread_request( const struct open_thread_request
*req
)
1389 fprintf( stderr
, " tid=%04x", req
->tid
);
1390 fprintf( stderr
, ", access=%08x", req
->access
);
1391 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1394 static void dump_open_thread_reply( const struct open_thread_reply
*req
)
1396 fprintf( stderr
, " handle=%04x", req
->handle
);
1399 static void dump_select_request( const struct select_request
*req
)
1401 fprintf( stderr
, " flags=%d", req
->flags
);
1402 dump_uint64( ", cookie=", &req
->cookie
);
1403 dump_timeout( ", timeout=", &req
->timeout
);
1404 fprintf( stderr
, ", prev_apc=%04x", req
->prev_apc
);
1405 dump_varargs_apc_result( ", result=", cur_size
);
1406 dump_varargs_select_op( ", data=", cur_size
);
1409 static void dump_select_reply( const struct select_reply
*req
)
1411 dump_timeout( " timeout=", &req
->timeout
);
1412 dump_apc_call( ", call=", &req
->call
);
1413 fprintf( stderr
, ", apc_handle=%04x", req
->apc_handle
);
1416 static void dump_create_event_request( const struct create_event_request
*req
)
1418 fprintf( stderr
, " access=%08x", req
->access
);
1419 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1420 fprintf( stderr
, ", manual_reset=%d", req
->manual_reset
);
1421 fprintf( stderr
, ", initial_state=%d", req
->initial_state
);
1422 dump_varargs_object_attributes( ", objattr=", cur_size
);
1425 static void dump_create_event_reply( const struct create_event_reply
*req
)
1427 fprintf( stderr
, " handle=%04x", req
->handle
);
1430 static void dump_event_op_request( const struct event_op_request
*req
)
1432 fprintf( stderr
, " handle=%04x", req
->handle
);
1433 fprintf( stderr
, ", op=%d", req
->op
);
1436 static void dump_query_event_request( const struct query_event_request
*req
)
1438 fprintf( stderr
, " handle=%04x", req
->handle
);
1441 static void dump_query_event_reply( const struct query_event_reply
*req
)
1443 fprintf( stderr
, " manual_reset=%d", req
->manual_reset
);
1444 fprintf( stderr
, ", state=%d", req
->state
);
1447 static void dump_open_event_request( const struct open_event_request
*req
)
1449 fprintf( stderr
, " access=%08x", req
->access
);
1450 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1451 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
1452 dump_varargs_unicode_str( ", name=", cur_size
);
1455 static void dump_open_event_reply( const struct open_event_reply
*req
)
1457 fprintf( stderr
, " handle=%04x", req
->handle
);
1460 static void dump_create_keyed_event_request( const struct create_keyed_event_request
*req
)
1462 fprintf( stderr
, " access=%08x", req
->access
);
1463 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1464 dump_varargs_object_attributes( ", objattr=", cur_size
);
1467 static void dump_create_keyed_event_reply( const struct create_keyed_event_reply
*req
)
1469 fprintf( stderr
, " handle=%04x", req
->handle
);
1472 static void dump_open_keyed_event_request( const struct open_keyed_event_request
*req
)
1474 fprintf( stderr
, " access=%08x", req
->access
);
1475 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1476 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
1477 dump_varargs_unicode_str( ", name=", cur_size
);
1480 static void dump_open_keyed_event_reply( const struct open_keyed_event_reply
*req
)
1482 fprintf( stderr
, " handle=%04x", req
->handle
);
1485 static void dump_create_mutex_request( const struct create_mutex_request
*req
)
1487 fprintf( stderr
, " access=%08x", req
->access
);
1488 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1489 fprintf( stderr
, ", owned=%d", req
->owned
);
1490 dump_varargs_object_attributes( ", objattr=", cur_size
);
1493 static void dump_create_mutex_reply( const struct create_mutex_reply
*req
)
1495 fprintf( stderr
, " handle=%04x", req
->handle
);
1498 static void dump_release_mutex_request( const struct release_mutex_request
*req
)
1500 fprintf( stderr
, " handle=%04x", req
->handle
);
1503 static void dump_release_mutex_reply( const struct release_mutex_reply
*req
)
1505 fprintf( stderr
, " prev_count=%08x", req
->prev_count
);
1508 static void dump_open_mutex_request( const struct open_mutex_request
*req
)
1510 fprintf( stderr
, " access=%08x", req
->access
);
1511 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1512 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
1513 dump_varargs_unicode_str( ", name=", cur_size
);
1516 static void dump_open_mutex_reply( const struct open_mutex_reply
*req
)
1518 fprintf( stderr
, " handle=%04x", req
->handle
);
1521 static void dump_create_semaphore_request( const struct create_semaphore_request
*req
)
1523 fprintf( stderr
, " access=%08x", req
->access
);
1524 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1525 fprintf( stderr
, ", initial=%08x", req
->initial
);
1526 fprintf( stderr
, ", max=%08x", req
->max
);
1527 dump_varargs_object_attributes( ", objattr=", cur_size
);
1530 static void dump_create_semaphore_reply( const struct create_semaphore_reply
*req
)
1532 fprintf( stderr
, " handle=%04x", req
->handle
);
1535 static void dump_release_semaphore_request( const struct release_semaphore_request
*req
)
1537 fprintf( stderr
, " handle=%04x", req
->handle
);
1538 fprintf( stderr
, ", count=%08x", req
->count
);
1541 static void dump_release_semaphore_reply( const struct release_semaphore_reply
*req
)
1543 fprintf( stderr
, " prev_count=%08x", req
->prev_count
);
1546 static void dump_open_semaphore_request( const struct open_semaphore_request
*req
)
1548 fprintf( stderr
, " access=%08x", req
->access
);
1549 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1550 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
1551 dump_varargs_unicode_str( ", name=", cur_size
);
1554 static void dump_open_semaphore_reply( const struct open_semaphore_reply
*req
)
1556 fprintf( stderr
, " handle=%04x", req
->handle
);
1559 static void dump_create_file_request( const struct create_file_request
*req
)
1561 fprintf( stderr
, " access=%08x", req
->access
);
1562 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1563 fprintf( stderr
, ", sharing=%08x", req
->sharing
);
1564 fprintf( stderr
, ", create=%d", req
->create
);
1565 fprintf( stderr
, ", options=%08x", req
->options
);
1566 fprintf( stderr
, ", attrs=%08x", req
->attrs
);
1567 dump_varargs_object_attributes( ", objattr=", cur_size
);
1568 dump_varargs_string( ", filename=", cur_size
);
1571 static void dump_create_file_reply( const struct create_file_reply
*req
)
1573 fprintf( stderr
, " handle=%04x", req
->handle
);
1576 static void dump_open_file_object_request( const struct open_file_object_request
*req
)
1578 fprintf( stderr
, " access=%08x", req
->access
);
1579 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1580 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
1581 fprintf( stderr
, ", sharing=%08x", req
->sharing
);
1582 fprintf( stderr
, ", options=%08x", req
->options
);
1583 dump_varargs_unicode_str( ", filename=", cur_size
);
1586 static void dump_open_file_object_reply( const struct open_file_object_reply
*req
)
1588 fprintf( stderr
, " handle=%04x", req
->handle
);
1591 static void dump_alloc_file_handle_request( const struct alloc_file_handle_request
*req
)
1593 fprintf( stderr
, " access=%08x", req
->access
);
1594 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1595 fprintf( stderr
, ", fd=%d", req
->fd
);
1598 static void dump_alloc_file_handle_reply( const struct alloc_file_handle_reply
*req
)
1600 fprintf( stderr
, " handle=%04x", req
->handle
);
1603 static void dump_get_handle_unix_name_request( const struct get_handle_unix_name_request
*req
)
1605 fprintf( stderr
, " handle=%04x", req
->handle
);
1608 static void dump_get_handle_unix_name_reply( const struct get_handle_unix_name_reply
*req
)
1610 fprintf( stderr
, " name_len=%u", req
->name_len
);
1611 dump_varargs_string( ", name=", cur_size
);
1614 static void dump_get_handle_fd_request( const struct get_handle_fd_request
*req
)
1616 fprintf( stderr
, " handle=%04x", req
->handle
);
1619 static void dump_get_handle_fd_reply( const struct get_handle_fd_reply
*req
)
1621 fprintf( stderr
, " type=%d", req
->type
);
1622 fprintf( stderr
, ", cacheable=%d", req
->cacheable
);
1623 fprintf( stderr
, ", access=%08x", req
->access
);
1624 fprintf( stderr
, ", options=%08x", req
->options
);
1627 static void dump_flush_file_request( const struct flush_file_request
*req
)
1629 fprintf( stderr
, " handle=%04x", req
->handle
);
1632 static void dump_flush_file_reply( const struct flush_file_reply
*req
)
1634 fprintf( stderr
, " event=%04x", req
->event
);
1637 static void dump_lock_file_request( const struct lock_file_request
*req
)
1639 fprintf( stderr
, " handle=%04x", req
->handle
);
1640 dump_uint64( ", offset=", &req
->offset
);
1641 dump_uint64( ", count=", &req
->count
);
1642 fprintf( stderr
, ", shared=%d", req
->shared
);
1643 fprintf( stderr
, ", wait=%d", req
->wait
);
1646 static void dump_lock_file_reply( const struct lock_file_reply
*req
)
1648 fprintf( stderr
, " handle=%04x", req
->handle
);
1649 fprintf( stderr
, ", overlapped=%d", req
->overlapped
);
1652 static void dump_unlock_file_request( const struct unlock_file_request
*req
)
1654 fprintf( stderr
, " handle=%04x", req
->handle
);
1655 dump_uint64( ", offset=", &req
->offset
);
1656 dump_uint64( ", count=", &req
->count
);
1659 static void dump_create_socket_request( const struct create_socket_request
*req
)
1661 fprintf( stderr
, " access=%08x", req
->access
);
1662 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1663 fprintf( stderr
, ", family=%d", req
->family
);
1664 fprintf( stderr
, ", type=%d", req
->type
);
1665 fprintf( stderr
, ", protocol=%d", req
->protocol
);
1666 fprintf( stderr
, ", flags=%08x", req
->flags
);
1669 static void dump_create_socket_reply( const struct create_socket_reply
*req
)
1671 fprintf( stderr
, " handle=%04x", req
->handle
);
1674 static void dump_accept_socket_request( const struct accept_socket_request
*req
)
1676 fprintf( stderr
, " lhandle=%04x", req
->lhandle
);
1677 fprintf( stderr
, ", access=%08x", req
->access
);
1678 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1681 static void dump_accept_socket_reply( const struct accept_socket_reply
*req
)
1683 fprintf( stderr
, " handle=%04x", req
->handle
);
1686 static void dump_accept_into_socket_request( const struct accept_into_socket_request
*req
)
1688 fprintf( stderr
, " lhandle=%04x", req
->lhandle
);
1689 fprintf( stderr
, ", ahandle=%04x", req
->ahandle
);
1692 static void dump_set_socket_event_request( const struct set_socket_event_request
*req
)
1694 fprintf( stderr
, " handle=%04x", req
->handle
);
1695 fprintf( stderr
, ", mask=%08x", req
->mask
);
1696 fprintf( stderr
, ", event=%04x", req
->event
);
1697 fprintf( stderr
, ", window=%08x", req
->window
);
1698 fprintf( stderr
, ", msg=%08x", req
->msg
);
1701 static void dump_get_socket_event_request( const struct get_socket_event_request
*req
)
1703 fprintf( stderr
, " handle=%04x", req
->handle
);
1704 fprintf( stderr
, ", service=%d", req
->service
);
1705 fprintf( stderr
, ", c_event=%04x", req
->c_event
);
1708 static void dump_get_socket_event_reply( const struct get_socket_event_reply
*req
)
1710 fprintf( stderr
, " mask=%08x", req
->mask
);
1711 fprintf( stderr
, ", pmask=%08x", req
->pmask
);
1712 fprintf( stderr
, ", state=%08x", req
->state
);
1713 dump_varargs_ints( ", errors=", cur_size
);
1716 static void dump_get_socket_info_request( const struct get_socket_info_request
*req
)
1718 fprintf( stderr
, " handle=%04x", req
->handle
);
1721 static void dump_get_socket_info_reply( const struct get_socket_info_reply
*req
)
1723 fprintf( stderr
, " family=%d", req
->family
);
1724 fprintf( stderr
, ", type=%d", req
->type
);
1725 fprintf( stderr
, ", protocol=%d", req
->protocol
);
1728 static void dump_enable_socket_event_request( const struct enable_socket_event_request
*req
)
1730 fprintf( stderr
, " handle=%04x", req
->handle
);
1731 fprintf( stderr
, ", mask=%08x", req
->mask
);
1732 fprintf( stderr
, ", sstate=%08x", req
->sstate
);
1733 fprintf( stderr
, ", cstate=%08x", req
->cstate
);
1736 static void dump_set_socket_deferred_request( const struct set_socket_deferred_request
*req
)
1738 fprintf( stderr
, " handle=%04x", req
->handle
);
1739 fprintf( stderr
, ", deferred=%04x", req
->deferred
);
1742 static void dump_alloc_console_request( const struct alloc_console_request
*req
)
1744 fprintf( stderr
, " access=%08x", req
->access
);
1745 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1746 fprintf( stderr
, ", pid=%04x", req
->pid
);
1747 fprintf( stderr
, ", input_fd=%d", req
->input_fd
);
1750 static void dump_alloc_console_reply( const struct alloc_console_reply
*req
)
1752 fprintf( stderr
, " handle_in=%04x", req
->handle_in
);
1753 fprintf( stderr
, ", event=%04x", req
->event
);
1756 static void dump_free_console_request( const struct free_console_request
*req
)
1760 static void dump_get_console_renderer_events_request( const struct get_console_renderer_events_request
*req
)
1762 fprintf( stderr
, " handle=%04x", req
->handle
);
1765 static void dump_get_console_renderer_events_reply( const struct get_console_renderer_events_reply
*req
)
1767 dump_varargs_bytes( " data=", cur_size
);
1770 static void dump_open_console_request( const struct open_console_request
*req
)
1772 fprintf( stderr
, " from=%04x", req
->from
);
1773 fprintf( stderr
, ", access=%08x", req
->access
);
1774 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1775 fprintf( stderr
, ", share=%d", req
->share
);
1778 static void dump_open_console_reply( const struct open_console_reply
*req
)
1780 fprintf( stderr
, " handle=%04x", req
->handle
);
1783 static void dump_get_console_wait_event_request( const struct get_console_wait_event_request
*req
)
1787 static void dump_get_console_wait_event_reply( const struct get_console_wait_event_reply
*req
)
1789 fprintf( stderr
, " handle=%04x", req
->handle
);
1792 static void dump_get_console_mode_request( const struct get_console_mode_request
*req
)
1794 fprintf( stderr
, " handle=%04x", req
->handle
);
1797 static void dump_get_console_mode_reply( const struct get_console_mode_reply
*req
)
1799 fprintf( stderr
, " mode=%d", req
->mode
);
1802 static void dump_set_console_mode_request( const struct set_console_mode_request
*req
)
1804 fprintf( stderr
, " handle=%04x", req
->handle
);
1805 fprintf( stderr
, ", mode=%d", req
->mode
);
1808 static void dump_set_console_input_info_request( const struct set_console_input_info_request
*req
)
1810 fprintf( stderr
, " handle=%04x", req
->handle
);
1811 fprintf( stderr
, ", mask=%d", req
->mask
);
1812 fprintf( stderr
, ", active_sb=%04x", req
->active_sb
);
1813 fprintf( stderr
, ", history_mode=%d", req
->history_mode
);
1814 fprintf( stderr
, ", history_size=%d", req
->history_size
);
1815 fprintf( stderr
, ", edition_mode=%d", req
->edition_mode
);
1816 fprintf( stderr
, ", input_cp=%d", req
->input_cp
);
1817 fprintf( stderr
, ", output_cp=%d", req
->output_cp
);
1818 fprintf( stderr
, ", win=%08x", req
->win
);
1819 dump_varargs_unicode_str( ", title=", cur_size
);
1822 static void dump_get_console_input_info_request( const struct get_console_input_info_request
*req
)
1824 fprintf( stderr
, " handle=%04x", req
->handle
);
1827 static void dump_get_console_input_info_reply( const struct get_console_input_info_reply
*req
)
1829 fprintf( stderr
, " history_mode=%d", req
->history_mode
);
1830 fprintf( stderr
, ", history_size=%d", req
->history_size
);
1831 fprintf( stderr
, ", history_index=%d", req
->history_index
);
1832 fprintf( stderr
, ", edition_mode=%d", req
->edition_mode
);
1833 fprintf( stderr
, ", input_cp=%d", req
->input_cp
);
1834 fprintf( stderr
, ", output_cp=%d", req
->output_cp
);
1835 fprintf( stderr
, ", win=%08x", req
->win
);
1836 dump_varargs_unicode_str( ", title=", cur_size
);
1839 static void dump_append_console_input_history_request( const struct append_console_input_history_request
*req
)
1841 fprintf( stderr
, " handle=%04x", req
->handle
);
1842 dump_varargs_unicode_str( ", line=", cur_size
);
1845 static void dump_get_console_input_history_request( const struct get_console_input_history_request
*req
)
1847 fprintf( stderr
, " handle=%04x", req
->handle
);
1848 fprintf( stderr
, ", index=%d", req
->index
);
1851 static void dump_get_console_input_history_reply( const struct get_console_input_history_reply
*req
)
1853 fprintf( stderr
, " total=%d", req
->total
);
1854 dump_varargs_unicode_str( ", line=", cur_size
);
1857 static void dump_create_console_output_request( const struct create_console_output_request
*req
)
1859 fprintf( stderr
, " handle_in=%04x", req
->handle_in
);
1860 fprintf( stderr
, ", access=%08x", req
->access
);
1861 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1862 fprintf( stderr
, ", share=%08x", req
->share
);
1863 fprintf( stderr
, ", fd=%d", req
->fd
);
1866 static void dump_create_console_output_reply( const struct create_console_output_reply
*req
)
1868 fprintf( stderr
, " handle_out=%04x", req
->handle_out
);
1871 static void dump_set_console_output_info_request( const struct set_console_output_info_request
*req
)
1873 fprintf( stderr
, " handle=%04x", req
->handle
);
1874 fprintf( stderr
, ", mask=%d", req
->mask
);
1875 fprintf( stderr
, ", cursor_size=%d", req
->cursor_size
);
1876 fprintf( stderr
, ", cursor_visible=%d", req
->cursor_visible
);
1877 fprintf( stderr
, ", cursor_x=%d", req
->cursor_x
);
1878 fprintf( stderr
, ", cursor_y=%d", req
->cursor_y
);
1879 fprintf( stderr
, ", width=%d", req
->width
);
1880 fprintf( stderr
, ", height=%d", req
->height
);
1881 fprintf( stderr
, ", attr=%d", req
->attr
);
1882 fprintf( stderr
, ", win_left=%d", req
->win_left
);
1883 fprintf( stderr
, ", win_top=%d", req
->win_top
);
1884 fprintf( stderr
, ", win_right=%d", req
->win_right
);
1885 fprintf( stderr
, ", win_bottom=%d", req
->win_bottom
);
1886 fprintf( stderr
, ", max_width=%d", req
->max_width
);
1887 fprintf( stderr
, ", max_height=%d", req
->max_height
);
1890 static void dump_get_console_output_info_request( const struct get_console_output_info_request
*req
)
1892 fprintf( stderr
, " handle=%04x", req
->handle
);
1895 static void dump_get_console_output_info_reply( const struct get_console_output_info_reply
*req
)
1897 fprintf( stderr
, " cursor_size=%d", req
->cursor_size
);
1898 fprintf( stderr
, ", cursor_visible=%d", req
->cursor_visible
);
1899 fprintf( stderr
, ", cursor_x=%d", req
->cursor_x
);
1900 fprintf( stderr
, ", cursor_y=%d", req
->cursor_y
);
1901 fprintf( stderr
, ", width=%d", req
->width
);
1902 fprintf( stderr
, ", height=%d", req
->height
);
1903 fprintf( stderr
, ", attr=%d", req
->attr
);
1904 fprintf( stderr
, ", win_left=%d", req
->win_left
);
1905 fprintf( stderr
, ", win_top=%d", req
->win_top
);
1906 fprintf( stderr
, ", win_right=%d", req
->win_right
);
1907 fprintf( stderr
, ", win_bottom=%d", req
->win_bottom
);
1908 fprintf( stderr
, ", max_width=%d", req
->max_width
);
1909 fprintf( stderr
, ", max_height=%d", req
->max_height
);
1912 static void dump_write_console_input_request( const struct write_console_input_request
*req
)
1914 fprintf( stderr
, " handle=%04x", req
->handle
);
1915 dump_varargs_input_records( ", rec=", cur_size
);
1918 static void dump_write_console_input_reply( const struct write_console_input_reply
*req
)
1920 fprintf( stderr
, " written=%d", req
->written
);
1923 static void dump_read_console_input_request( const struct read_console_input_request
*req
)
1925 fprintf( stderr
, " handle=%04x", req
->handle
);
1926 fprintf( stderr
, ", flush=%d", req
->flush
);
1929 static void dump_read_console_input_reply( const struct read_console_input_reply
*req
)
1931 fprintf( stderr
, " read=%d", req
->read
);
1932 dump_varargs_input_records( ", rec=", cur_size
);
1935 static void dump_write_console_output_request( const struct write_console_output_request
*req
)
1937 fprintf( stderr
, " handle=%04x", req
->handle
);
1938 fprintf( stderr
, ", x=%d", req
->x
);
1939 fprintf( stderr
, ", y=%d", req
->y
);
1940 fprintf( stderr
, ", mode=%d", req
->mode
);
1941 fprintf( stderr
, ", wrap=%d", req
->wrap
);
1942 dump_varargs_bytes( ", data=", cur_size
);
1945 static void dump_write_console_output_reply( const struct write_console_output_reply
*req
)
1947 fprintf( stderr
, " written=%d", req
->written
);
1948 fprintf( stderr
, ", width=%d", req
->width
);
1949 fprintf( stderr
, ", height=%d", req
->height
);
1952 static void dump_fill_console_output_request( const struct fill_console_output_request
*req
)
1954 fprintf( stderr
, " handle=%04x", req
->handle
);
1955 fprintf( stderr
, ", x=%d", req
->x
);
1956 fprintf( stderr
, ", y=%d", req
->y
);
1957 fprintf( stderr
, ", mode=%d", req
->mode
);
1958 fprintf( stderr
, ", count=%d", req
->count
);
1959 fprintf( stderr
, ", wrap=%d", req
->wrap
);
1960 dump_char_info( ", data=", &req
->data
);
1963 static void dump_fill_console_output_reply( const struct fill_console_output_reply
*req
)
1965 fprintf( stderr
, " written=%d", req
->written
);
1968 static void dump_read_console_output_request( const struct read_console_output_request
*req
)
1970 fprintf( stderr
, " handle=%04x", req
->handle
);
1971 fprintf( stderr
, ", x=%d", req
->x
);
1972 fprintf( stderr
, ", y=%d", req
->y
);
1973 fprintf( stderr
, ", mode=%d", req
->mode
);
1974 fprintf( stderr
, ", wrap=%d", req
->wrap
);
1977 static void dump_read_console_output_reply( const struct read_console_output_reply
*req
)
1979 fprintf( stderr
, " width=%d", req
->width
);
1980 fprintf( stderr
, ", height=%d", req
->height
);
1981 dump_varargs_bytes( ", data=", cur_size
);
1984 static void dump_move_console_output_request( const struct move_console_output_request
*req
)
1986 fprintf( stderr
, " handle=%04x", req
->handle
);
1987 fprintf( stderr
, ", x_src=%d", req
->x_src
);
1988 fprintf( stderr
, ", y_src=%d", req
->y_src
);
1989 fprintf( stderr
, ", x_dst=%d", req
->x_dst
);
1990 fprintf( stderr
, ", y_dst=%d", req
->y_dst
);
1991 fprintf( stderr
, ", w=%d", req
->w
);
1992 fprintf( stderr
, ", h=%d", req
->h
);
1995 static void dump_send_console_signal_request( const struct send_console_signal_request
*req
)
1997 fprintf( stderr
, " signal=%d", req
->signal
);
1998 fprintf( stderr
, ", group_id=%04x", req
->group_id
);
2001 static void dump_read_directory_changes_request( const struct read_directory_changes_request
*req
)
2003 fprintf( stderr
, " filter=%08x", req
->filter
);
2004 fprintf( stderr
, ", subtree=%d", req
->subtree
);
2005 fprintf( stderr
, ", want_data=%d", req
->want_data
);
2006 dump_async_data( ", async=", &req
->async
);
2009 static void dump_read_change_request( const struct read_change_request
*req
)
2011 fprintf( stderr
, " handle=%04x", req
->handle
);
2014 static void dump_read_change_reply( const struct read_change_reply
*req
)
2016 dump_varargs_filesystem_event( " events=", cur_size
);
2019 static void dump_create_mapping_request( const struct create_mapping_request
*req
)
2021 fprintf( stderr
, " access=%08x", req
->access
);
2022 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
2023 fprintf( stderr
, ", protect=%08x", req
->protect
);
2024 dump_uint64( ", size=", &req
->size
);
2025 fprintf( stderr
, ", file_handle=%04x", req
->file_handle
);
2026 dump_varargs_object_attributes( ", objattr=", cur_size
);
2029 static void dump_create_mapping_reply( const struct create_mapping_reply
*req
)
2031 fprintf( stderr
, " handle=%04x", req
->handle
);
2034 static void dump_open_mapping_request( const struct open_mapping_request
*req
)
2036 fprintf( stderr
, " access=%08x", req
->access
);
2037 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
2038 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
2039 dump_varargs_unicode_str( ", name=", cur_size
);
2042 static void dump_open_mapping_reply( const struct open_mapping_reply
*req
)
2044 fprintf( stderr
, " handle=%04x", req
->handle
);
2047 static void dump_get_mapping_info_request( const struct get_mapping_info_request
*req
)
2049 fprintf( stderr
, " handle=%04x", req
->handle
);
2050 fprintf( stderr
, ", access=%08x", req
->access
);
2053 static void dump_get_mapping_info_reply( const struct get_mapping_info_reply
*req
)
2055 dump_uint64( " size=", &req
->size
);
2056 fprintf( stderr
, ", protect=%d", req
->protect
);
2057 fprintf( stderr
, ", header_size=%d", req
->header_size
);
2058 dump_uint64( ", base=", &req
->base
);
2059 fprintf( stderr
, ", mapping=%04x", req
->mapping
);
2060 fprintf( stderr
, ", shared_file=%04x", req
->shared_file
);
2063 static void dump_get_mapping_committed_range_request( const struct get_mapping_committed_range_request
*req
)
2065 fprintf( stderr
, " handle=%04x", req
->handle
);
2066 dump_uint64( ", offset=", &req
->offset
);
2069 static void dump_get_mapping_committed_range_reply( const struct get_mapping_committed_range_reply
*req
)
2071 dump_uint64( " size=", &req
->size
);
2072 fprintf( stderr
, ", committed=%d", req
->committed
);
2075 static void dump_add_mapping_committed_range_request( const struct add_mapping_committed_range_request
*req
)
2077 fprintf( stderr
, " handle=%04x", req
->handle
);
2078 dump_uint64( ", offset=", &req
->offset
);
2079 dump_uint64( ", size=", &req
->size
);
2082 static void dump_create_snapshot_request( const struct create_snapshot_request
*req
)
2084 fprintf( stderr
, " attributes=%08x", req
->attributes
);
2085 fprintf( stderr
, ", flags=%08x", req
->flags
);
2088 static void dump_create_snapshot_reply( const struct create_snapshot_reply
*req
)
2090 fprintf( stderr
, " handle=%04x", req
->handle
);
2093 static void dump_next_process_request( const struct next_process_request
*req
)
2095 fprintf( stderr
, " handle=%04x", req
->handle
);
2096 fprintf( stderr
, ", reset=%d", req
->reset
);
2099 static void dump_next_process_reply( const struct next_process_reply
*req
)
2101 fprintf( stderr
, " count=%d", req
->count
);
2102 fprintf( stderr
, ", pid=%04x", req
->pid
);
2103 fprintf( stderr
, ", ppid=%04x", req
->ppid
);
2104 fprintf( stderr
, ", threads=%d", req
->threads
);
2105 fprintf( stderr
, ", priority=%d", req
->priority
);
2106 fprintf( stderr
, ", handles=%d", req
->handles
);
2107 fprintf( stderr
, ", unix_pid=%d", req
->unix_pid
);
2108 dump_varargs_unicode_str( ", filename=", cur_size
);
2111 static void dump_next_thread_request( const struct next_thread_request
*req
)
2113 fprintf( stderr
, " handle=%04x", req
->handle
);
2114 fprintf( stderr
, ", reset=%d", req
->reset
);
2117 static void dump_next_thread_reply( const struct next_thread_reply
*req
)
2119 fprintf( stderr
, " count=%d", req
->count
);
2120 fprintf( stderr
, ", pid=%04x", req
->pid
);
2121 fprintf( stderr
, ", tid=%04x", req
->tid
);
2122 fprintf( stderr
, ", base_pri=%d", req
->base_pri
);
2123 fprintf( stderr
, ", delta_pri=%d", req
->delta_pri
);
2126 static void dump_wait_debug_event_request( const struct wait_debug_event_request
*req
)
2128 fprintf( stderr
, " get_handle=%d", req
->get_handle
);
2131 static void dump_wait_debug_event_reply( const struct wait_debug_event_reply
*req
)
2133 fprintf( stderr
, " pid=%04x", req
->pid
);
2134 fprintf( stderr
, ", tid=%04x", req
->tid
);
2135 fprintf( stderr
, ", wait=%04x", req
->wait
);
2136 dump_varargs_debug_event( ", event=", cur_size
);
2139 static void dump_queue_exception_event_request( const struct queue_exception_event_request
*req
)
2141 fprintf( stderr
, " first=%d", req
->first
);
2142 fprintf( stderr
, ", code=%08x", req
->code
);
2143 fprintf( stderr
, ", flags=%08x", req
->flags
);
2144 dump_uint64( ", record=", &req
->record
);
2145 dump_uint64( ", address=", &req
->address
);
2146 fprintf( stderr
, ", len=%u", req
->len
);
2147 dump_varargs_uints64( ", params=", min(cur_size
,req
->len
) );
2148 dump_varargs_context( ", context=", cur_size
);
2151 static void dump_queue_exception_event_reply( const struct queue_exception_event_reply
*req
)
2153 fprintf( stderr
, " handle=%04x", req
->handle
);
2156 static void dump_get_exception_status_request( const struct get_exception_status_request
*req
)
2158 fprintf( stderr
, " handle=%04x", req
->handle
);
2161 static void dump_get_exception_status_reply( const struct get_exception_status_reply
*req
)
2163 dump_varargs_context( " context=", cur_size
);
2166 static void dump_output_debug_string_request( const struct output_debug_string_request
*req
)
2168 fprintf( stderr
, " length=%u", req
->length
);
2169 dump_uint64( ", string=", &req
->string
);
2172 static void dump_continue_debug_event_request( const struct continue_debug_event_request
*req
)
2174 fprintf( stderr
, " pid=%04x", req
->pid
);
2175 fprintf( stderr
, ", tid=%04x", req
->tid
);
2176 fprintf( stderr
, ", status=%d", req
->status
);
2179 static void dump_debug_process_request( const struct debug_process_request
*req
)
2181 fprintf( stderr
, " pid=%04x", req
->pid
);
2182 fprintf( stderr
, ", attach=%d", req
->attach
);
2185 static void dump_debug_break_request( const struct debug_break_request
*req
)
2187 fprintf( stderr
, " handle=%04x", req
->handle
);
2190 static void dump_debug_break_reply( const struct debug_break_reply
*req
)
2192 fprintf( stderr
, " self=%d", req
->self
);
2195 static void dump_set_debugger_kill_on_exit_request( const struct set_debugger_kill_on_exit_request
*req
)
2197 fprintf( stderr
, " kill_on_exit=%d", req
->kill_on_exit
);
2200 static void dump_read_process_memory_request( const struct read_process_memory_request
*req
)
2202 fprintf( stderr
, " handle=%04x", req
->handle
);
2203 dump_uint64( ", addr=", &req
->addr
);
2206 static void dump_read_process_memory_reply( const struct read_process_memory_reply
*req
)
2208 dump_varargs_bytes( " data=", cur_size
);
2211 static void dump_write_process_memory_request( const struct write_process_memory_request
*req
)
2213 fprintf( stderr
, " handle=%04x", req
->handle
);
2214 dump_uint64( ", addr=", &req
->addr
);
2215 dump_varargs_bytes( ", data=", cur_size
);
2218 static void dump_create_key_request( const struct create_key_request
*req
)
2220 fprintf( stderr
, " parent=%04x", req
->parent
);
2221 fprintf( stderr
, ", access=%08x", req
->access
);
2222 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
2223 fprintf( stderr
, ", options=%08x", req
->options
);
2224 fprintf( stderr
, ", namelen=%u", req
->namelen
);
2225 dump_varargs_unicode_str( ", name=", min(cur_size
,req
->namelen
) );
2226 dump_varargs_unicode_str( ", class=", cur_size
);
2229 static void dump_create_key_reply( const struct create_key_reply
*req
)
2231 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2232 fprintf( stderr
, ", created=%d", req
->created
);
2235 static void dump_open_key_request( const struct open_key_request
*req
)
2237 fprintf( stderr
, " parent=%04x", req
->parent
);
2238 fprintf( stderr
, ", access=%08x", req
->access
);
2239 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
2240 dump_varargs_unicode_str( ", name=", cur_size
);
2243 static void dump_open_key_reply( const struct open_key_reply
*req
)
2245 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2248 static void dump_delete_key_request( const struct delete_key_request
*req
)
2250 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2253 static void dump_flush_key_request( const struct flush_key_request
*req
)
2255 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2258 static void dump_enum_key_request( const struct enum_key_request
*req
)
2260 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2261 fprintf( stderr
, ", index=%d", req
->index
);
2262 fprintf( stderr
, ", info_class=%d", req
->info_class
);
2265 static void dump_enum_key_reply( const struct enum_key_reply
*req
)
2267 fprintf( stderr
, " subkeys=%d", req
->subkeys
);
2268 fprintf( stderr
, ", max_subkey=%d", req
->max_subkey
);
2269 fprintf( stderr
, ", max_class=%d", req
->max_class
);
2270 fprintf( stderr
, ", values=%d", req
->values
);
2271 fprintf( stderr
, ", max_value=%d", req
->max_value
);
2272 fprintf( stderr
, ", max_data=%d", req
->max_data
);
2273 dump_timeout( ", modif=", &req
->modif
);
2274 fprintf( stderr
, ", total=%u", req
->total
);
2275 fprintf( stderr
, ", namelen=%u", req
->namelen
);
2276 dump_varargs_unicode_str( ", name=", min(cur_size
,req
->namelen
) );
2277 dump_varargs_unicode_str( ", class=", cur_size
);
2280 static void dump_set_key_value_request( const struct set_key_value_request
*req
)
2282 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2283 fprintf( stderr
, ", type=%d", req
->type
);
2284 fprintf( stderr
, ", namelen=%u", req
->namelen
);
2285 dump_varargs_unicode_str( ", name=", min(cur_size
,req
->namelen
) );
2286 dump_varargs_bytes( ", data=", cur_size
);
2289 static void dump_get_key_value_request( const struct get_key_value_request
*req
)
2291 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2292 dump_varargs_unicode_str( ", name=", cur_size
);
2295 static void dump_get_key_value_reply( const struct get_key_value_reply
*req
)
2297 fprintf( stderr
, " type=%d", req
->type
);
2298 fprintf( stderr
, ", total=%u", req
->total
);
2299 dump_varargs_bytes( ", data=", cur_size
);
2302 static void dump_enum_key_value_request( const struct enum_key_value_request
*req
)
2304 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2305 fprintf( stderr
, ", index=%d", req
->index
);
2306 fprintf( stderr
, ", info_class=%d", req
->info_class
);
2309 static void dump_enum_key_value_reply( const struct enum_key_value_reply
*req
)
2311 fprintf( stderr
, " type=%d", req
->type
);
2312 fprintf( stderr
, ", total=%u", req
->total
);
2313 fprintf( stderr
, ", namelen=%u", req
->namelen
);
2314 dump_varargs_unicode_str( ", name=", min(cur_size
,req
->namelen
) );
2315 dump_varargs_bytes( ", data=", cur_size
);
2318 static void dump_delete_key_value_request( const struct delete_key_value_request
*req
)
2320 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2321 dump_varargs_unicode_str( ", name=", cur_size
);
2324 static void dump_load_registry_request( const struct load_registry_request
*req
)
2326 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2327 fprintf( stderr
, ", file=%04x", req
->file
);
2328 dump_varargs_unicode_str( ", name=", cur_size
);
2331 static void dump_unload_registry_request( const struct unload_registry_request
*req
)
2333 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2336 static void dump_save_registry_request( const struct save_registry_request
*req
)
2338 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2339 fprintf( stderr
, ", file=%04x", req
->file
);
2342 static void dump_set_registry_notification_request( const struct set_registry_notification_request
*req
)
2344 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2345 fprintf( stderr
, ", event=%04x", req
->event
);
2346 fprintf( stderr
, ", subtree=%d", req
->subtree
);
2347 fprintf( stderr
, ", filter=%08x", req
->filter
);
2350 static void dump_create_timer_request( const struct create_timer_request
*req
)
2352 fprintf( stderr
, " access=%08x", req
->access
);
2353 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
2354 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
2355 fprintf( stderr
, ", manual=%d", req
->manual
);
2356 dump_varargs_unicode_str( ", name=", cur_size
);
2359 static void dump_create_timer_reply( const struct create_timer_reply
*req
)
2361 fprintf( stderr
, " handle=%04x", req
->handle
);
2364 static void dump_open_timer_request( const struct open_timer_request
*req
)
2366 fprintf( stderr
, " access=%08x", req
->access
);
2367 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
2368 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
2369 dump_varargs_unicode_str( ", name=", cur_size
);
2372 static void dump_open_timer_reply( const struct open_timer_reply
*req
)
2374 fprintf( stderr
, " handle=%04x", req
->handle
);
2377 static void dump_set_timer_request( const struct set_timer_request
*req
)
2379 fprintf( stderr
, " handle=%04x", req
->handle
);
2380 dump_timeout( ", expire=", &req
->expire
);
2381 dump_uint64( ", callback=", &req
->callback
);
2382 dump_uint64( ", arg=", &req
->arg
);
2383 fprintf( stderr
, ", period=%d", req
->period
);
2386 static void dump_set_timer_reply( const struct set_timer_reply
*req
)
2388 fprintf( stderr
, " signaled=%d", req
->signaled
);
2391 static void dump_cancel_timer_request( const struct cancel_timer_request
*req
)
2393 fprintf( stderr
, " handle=%04x", req
->handle
);
2396 static void dump_cancel_timer_reply( const struct cancel_timer_reply
*req
)
2398 fprintf( stderr
, " signaled=%d", req
->signaled
);
2401 static void dump_get_timer_info_request( const struct get_timer_info_request
*req
)
2403 fprintf( stderr
, " handle=%04x", req
->handle
);
2406 static void dump_get_timer_info_reply( const struct get_timer_info_reply
*req
)
2408 dump_timeout( " when=", &req
->when
);
2409 fprintf( stderr
, ", signaled=%d", req
->signaled
);
2412 static void dump_get_thread_context_request( const struct get_thread_context_request
*req
)
2414 fprintf( stderr
, " handle=%04x", req
->handle
);
2415 fprintf( stderr
, ", flags=%08x", req
->flags
);
2416 fprintf( stderr
, ", suspend=%d", req
->suspend
);
2419 static void dump_get_thread_context_reply( const struct get_thread_context_reply
*req
)
2421 fprintf( stderr
, " self=%d", req
->self
);
2422 dump_varargs_context( ", context=", cur_size
);
2425 static void dump_set_thread_context_request( const struct set_thread_context_request
*req
)
2427 fprintf( stderr
, " handle=%04x", req
->handle
);
2428 fprintf( stderr
, ", suspend=%d", req
->suspend
);
2429 dump_varargs_context( ", context=", cur_size
);
2432 static void dump_set_thread_context_reply( const struct set_thread_context_reply
*req
)
2434 fprintf( stderr
, " self=%d", req
->self
);
2437 static void dump_get_selector_entry_request( const struct get_selector_entry_request
*req
)
2439 fprintf( stderr
, " handle=%04x", req
->handle
);
2440 fprintf( stderr
, ", entry=%d", req
->entry
);
2443 static void dump_get_selector_entry_reply( const struct get_selector_entry_reply
*req
)
2445 fprintf( stderr
, " base=%08x", req
->base
);
2446 fprintf( stderr
, ", limit=%08x", req
->limit
);
2447 fprintf( stderr
, ", flags=%02x", req
->flags
);
2450 static void dump_add_atom_request( const struct add_atom_request
*req
)
2452 fprintf( stderr
, " table=%04x", req
->table
);
2453 dump_varargs_unicode_str( ", name=", cur_size
);
2456 static void dump_add_atom_reply( const struct add_atom_reply
*req
)
2458 fprintf( stderr
, " atom=%04x", req
->atom
);
2461 static void dump_delete_atom_request( const struct delete_atom_request
*req
)
2463 fprintf( stderr
, " table=%04x", req
->table
);
2464 fprintf( stderr
, ", atom=%04x", req
->atom
);
2467 static void dump_find_atom_request( const struct find_atom_request
*req
)
2469 fprintf( stderr
, " table=%04x", req
->table
);
2470 dump_varargs_unicode_str( ", name=", cur_size
);
2473 static void dump_find_atom_reply( const struct find_atom_reply
*req
)
2475 fprintf( stderr
, " atom=%04x", req
->atom
);
2478 static void dump_get_atom_information_request( const struct get_atom_information_request
*req
)
2480 fprintf( stderr
, " table=%04x", req
->table
);
2481 fprintf( stderr
, ", atom=%04x", req
->atom
);
2484 static void dump_get_atom_information_reply( const struct get_atom_information_reply
*req
)
2486 fprintf( stderr
, " count=%d", req
->count
);
2487 fprintf( stderr
, ", pinned=%d", req
->pinned
);
2488 fprintf( stderr
, ", total=%u", req
->total
);
2489 dump_varargs_unicode_str( ", name=", cur_size
);
2492 static void dump_set_atom_information_request( const struct set_atom_information_request
*req
)
2494 fprintf( stderr
, " table=%04x", req
->table
);
2495 fprintf( stderr
, ", atom=%04x", req
->atom
);
2496 fprintf( stderr
, ", pinned=%d", req
->pinned
);
2499 static void dump_empty_atom_table_request( const struct empty_atom_table_request
*req
)
2501 fprintf( stderr
, " table=%04x", req
->table
);
2502 fprintf( stderr
, ", if_pinned=%d", req
->if_pinned
);
2505 static void dump_init_atom_table_request( const struct init_atom_table_request
*req
)
2507 fprintf( stderr
, " entries=%d", req
->entries
);
2510 static void dump_init_atom_table_reply( const struct init_atom_table_reply
*req
)
2512 fprintf( stderr
, " table=%04x", req
->table
);
2515 static void dump_get_msg_queue_request( const struct get_msg_queue_request
*req
)
2519 static void dump_get_msg_queue_reply( const struct get_msg_queue_reply
*req
)
2521 fprintf( stderr
, " handle=%04x", req
->handle
);
2524 static void dump_set_queue_fd_request( const struct set_queue_fd_request
*req
)
2526 fprintf( stderr
, " handle=%04x", req
->handle
);
2529 static void dump_set_queue_mask_request( const struct set_queue_mask_request
*req
)
2531 fprintf( stderr
, " wake_mask=%08x", req
->wake_mask
);
2532 fprintf( stderr
, ", changed_mask=%08x", req
->changed_mask
);
2533 fprintf( stderr
, ", skip_wait=%d", req
->skip_wait
);
2536 static void dump_set_queue_mask_reply( const struct set_queue_mask_reply
*req
)
2538 fprintf( stderr
, " wake_bits=%08x", req
->wake_bits
);
2539 fprintf( stderr
, ", changed_bits=%08x", req
->changed_bits
);
2542 static void dump_get_queue_status_request( const struct get_queue_status_request
*req
)
2544 fprintf( stderr
, " clear=%d", req
->clear
);
2547 static void dump_get_queue_status_reply( const struct get_queue_status_reply
*req
)
2549 fprintf( stderr
, " wake_bits=%08x", req
->wake_bits
);
2550 fprintf( stderr
, ", changed_bits=%08x", req
->changed_bits
);
2553 static void dump_get_process_idle_event_request( const struct get_process_idle_event_request
*req
)
2555 fprintf( stderr
, " handle=%04x", req
->handle
);
2558 static void dump_get_process_idle_event_reply( const struct get_process_idle_event_reply
*req
)
2560 fprintf( stderr
, " event=%04x", req
->event
);
2563 static void dump_send_message_request( const struct send_message_request
*req
)
2565 fprintf( stderr
, " id=%04x", req
->id
);
2566 fprintf( stderr
, ", type=%d", req
->type
);
2567 fprintf( stderr
, ", flags=%d", req
->flags
);
2568 fprintf( stderr
, ", win=%08x", req
->win
);
2569 fprintf( stderr
, ", msg=%08x", req
->msg
);
2570 dump_uint64( ", wparam=", &req
->wparam
);
2571 dump_uint64( ", lparam=", &req
->lparam
);
2572 dump_timeout( ", timeout=", &req
->timeout
);
2573 dump_varargs_message_data( ", data=", cur_size
);
2576 static void dump_post_quit_message_request( const struct post_quit_message_request
*req
)
2578 fprintf( stderr
, " exit_code=%d", req
->exit_code
);
2581 static void dump_send_hardware_message_request( const struct send_hardware_message_request
*req
)
2583 fprintf( stderr
, " win=%08x", req
->win
);
2584 dump_hw_input( ", input=", &req
->input
);
2585 fprintf( stderr
, ", flags=%08x", req
->flags
);
2588 static void dump_send_hardware_message_reply( const struct send_hardware_message_reply
*req
)
2590 fprintf( stderr
, " wait=%d", req
->wait
);
2591 fprintf( stderr
, ", prev_x=%d", req
->prev_x
);
2592 fprintf( stderr
, ", prev_y=%d", req
->prev_y
);
2593 fprintf( stderr
, ", new_x=%d", req
->new_x
);
2594 fprintf( stderr
, ", new_y=%d", req
->new_y
);
2595 dump_varargs_bytes( ", keystate=", cur_size
);
2598 static void dump_get_message_request( const struct get_message_request
*req
)
2600 fprintf( stderr
, " flags=%08x", req
->flags
);
2601 fprintf( stderr
, ", get_win=%08x", req
->get_win
);
2602 fprintf( stderr
, ", get_first=%08x", req
->get_first
);
2603 fprintf( stderr
, ", get_last=%08x", req
->get_last
);
2604 fprintf( stderr
, ", hw_id=%08x", req
->hw_id
);
2605 fprintf( stderr
, ", wake_mask=%08x", req
->wake_mask
);
2606 fprintf( stderr
, ", changed_mask=%08x", req
->changed_mask
);
2609 static void dump_get_message_reply( const struct get_message_reply
*req
)
2611 fprintf( stderr
, " win=%08x", req
->win
);
2612 fprintf( stderr
, ", msg=%08x", req
->msg
);
2613 dump_uint64( ", wparam=", &req
->wparam
);
2614 dump_uint64( ", lparam=", &req
->lparam
);
2615 fprintf( stderr
, ", type=%d", req
->type
);
2616 fprintf( stderr
, ", time=%08x", req
->time
);
2617 fprintf( stderr
, ", active_hooks=%08x", req
->active_hooks
);
2618 fprintf( stderr
, ", total=%u", req
->total
);
2619 dump_varargs_message_data( ", data=", cur_size
);
2622 static void dump_reply_message_request( const struct reply_message_request
*req
)
2624 fprintf( stderr
, " remove=%d", req
->remove
);
2625 dump_uint64( ", result=", &req
->result
);
2626 dump_varargs_bytes( ", data=", cur_size
);
2629 static void dump_accept_hardware_message_request( const struct accept_hardware_message_request
*req
)
2631 fprintf( stderr
, " hw_id=%08x", req
->hw_id
);
2632 fprintf( stderr
, ", remove=%d", req
->remove
);
2633 fprintf( stderr
, ", new_win=%08x", req
->new_win
);
2636 static void dump_get_message_reply_request( const struct get_message_reply_request
*req
)
2638 fprintf( stderr
, " cancel=%d", req
->cancel
);
2641 static void dump_get_message_reply_reply( const struct get_message_reply_reply
*req
)
2643 dump_uint64( " result=", &req
->result
);
2644 dump_varargs_bytes( ", data=", cur_size
);
2647 static void dump_set_win_timer_request( const struct set_win_timer_request
*req
)
2649 fprintf( stderr
, " win=%08x", req
->win
);
2650 fprintf( stderr
, ", msg=%08x", req
->msg
);
2651 fprintf( stderr
, ", rate=%08x", req
->rate
);
2652 dump_uint64( ", id=", &req
->id
);
2653 dump_uint64( ", lparam=", &req
->lparam
);
2656 static void dump_set_win_timer_reply( const struct set_win_timer_reply
*req
)
2658 dump_uint64( " id=", &req
->id
);
2661 static void dump_kill_win_timer_request( const struct kill_win_timer_request
*req
)
2663 fprintf( stderr
, " win=%08x", req
->win
);
2664 dump_uint64( ", id=", &req
->id
);
2665 fprintf( stderr
, ", msg=%08x", req
->msg
);
2668 static void dump_is_window_hung_request( const struct is_window_hung_request
*req
)
2670 fprintf( stderr
, " win=%08x", req
->win
);
2673 static void dump_is_window_hung_reply( const struct is_window_hung_reply
*req
)
2675 fprintf( stderr
, " is_hung=%d", req
->is_hung
);
2678 static void dump_get_serial_info_request( const struct get_serial_info_request
*req
)
2680 fprintf( stderr
, " handle=%04x", req
->handle
);
2681 fprintf( stderr
, ", flags=%d", req
->flags
);
2684 static void dump_get_serial_info_reply( const struct get_serial_info_reply
*req
)
2686 fprintf( stderr
, " readinterval=%08x", req
->readinterval
);
2687 fprintf( stderr
, ", readconst=%08x", req
->readconst
);
2688 fprintf( stderr
, ", readmult=%08x", req
->readmult
);
2689 fprintf( stderr
, ", writeconst=%08x", req
->writeconst
);
2690 fprintf( stderr
, ", writemult=%08x", req
->writemult
);
2691 fprintf( stderr
, ", eventmask=%08x", req
->eventmask
);
2692 fprintf( stderr
, ", cookie=%08x", req
->cookie
);
2693 fprintf( stderr
, ", pending_write=%08x", req
->pending_write
);
2696 static void dump_set_serial_info_request( const struct set_serial_info_request
*req
)
2698 fprintf( stderr
, " handle=%04x", req
->handle
);
2699 fprintf( stderr
, ", flags=%d", req
->flags
);
2700 fprintf( stderr
, ", readinterval=%08x", req
->readinterval
);
2701 fprintf( stderr
, ", readconst=%08x", req
->readconst
);
2702 fprintf( stderr
, ", readmult=%08x", req
->readmult
);
2703 fprintf( stderr
, ", writeconst=%08x", req
->writeconst
);
2704 fprintf( stderr
, ", writemult=%08x", req
->writemult
);
2705 fprintf( stderr
, ", eventmask=%08x", req
->eventmask
);
2708 static void dump_register_async_request( const struct register_async_request
*req
)
2710 fprintf( stderr
, " type=%d", req
->type
);
2711 dump_async_data( ", async=", &req
->async
);
2712 fprintf( stderr
, ", count=%d", req
->count
);
2715 static void dump_cancel_async_request( const struct cancel_async_request
*req
)
2717 fprintf( stderr
, " handle=%04x", req
->handle
);
2718 dump_uint64( ", iosb=", &req
->iosb
);
2719 fprintf( stderr
, ", only_thread=%d", req
->only_thread
);
2722 static void dump_ioctl_request( const struct ioctl_request
*req
)
2724 dump_ioctl_code( " code=", &req
->code
);
2725 dump_async_data( ", async=", &req
->async
);
2726 fprintf( stderr
, ", blocking=%d", req
->blocking
);
2727 dump_varargs_bytes( ", in_data=", cur_size
);
2730 static void dump_ioctl_reply( const struct ioctl_reply
*req
)
2732 fprintf( stderr
, " wait=%04x", req
->wait
);
2733 fprintf( stderr
, ", options=%08x", req
->options
);
2734 dump_varargs_bytes( ", out_data=", cur_size
);
2737 static void dump_get_ioctl_result_request( const struct get_ioctl_result_request
*req
)
2739 fprintf( stderr
, " handle=%04x", req
->handle
);
2740 dump_uint64( ", user_arg=", &req
->user_arg
);
2743 static void dump_get_ioctl_result_reply( const struct get_ioctl_result_reply
*req
)
2745 dump_varargs_bytes( " out_data=", cur_size
);
2748 static void dump_create_named_pipe_request( const struct create_named_pipe_request
*req
)
2750 fprintf( stderr
, " access=%08x", req
->access
);
2751 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
2752 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
2753 fprintf( stderr
, ", options=%08x", req
->options
);
2754 fprintf( stderr
, ", sharing=%08x", req
->sharing
);
2755 fprintf( stderr
, ", maxinstances=%08x", req
->maxinstances
);
2756 fprintf( stderr
, ", outsize=%08x", req
->outsize
);
2757 fprintf( stderr
, ", insize=%08x", req
->insize
);
2758 dump_timeout( ", timeout=", &req
->timeout
);
2759 fprintf( stderr
, ", flags=%08x", req
->flags
);
2760 dump_varargs_unicode_str( ", name=", cur_size
);
2763 static void dump_create_named_pipe_reply( const struct create_named_pipe_reply
*req
)
2765 fprintf( stderr
, " handle=%04x", req
->handle
);
2768 static void dump_get_named_pipe_info_request( const struct get_named_pipe_info_request
*req
)
2770 fprintf( stderr
, " handle=%04x", req
->handle
);
2773 static void dump_get_named_pipe_info_reply( const struct get_named_pipe_info_reply
*req
)
2775 fprintf( stderr
, " flags=%08x", req
->flags
);
2776 fprintf( stderr
, ", sharing=%08x", req
->sharing
);
2777 fprintf( stderr
, ", maxinstances=%08x", req
->maxinstances
);
2778 fprintf( stderr
, ", instances=%08x", req
->instances
);
2779 fprintf( stderr
, ", outsize=%08x", req
->outsize
);
2780 fprintf( stderr
, ", insize=%08x", req
->insize
);
2783 static void dump_create_window_request( const struct create_window_request
*req
)
2785 fprintf( stderr
, " parent=%08x", req
->parent
);
2786 fprintf( stderr
, ", owner=%08x", req
->owner
);
2787 fprintf( stderr
, ", atom=%04x", req
->atom
);
2788 dump_uint64( ", instance=", &req
->instance
);
2789 dump_varargs_unicode_str( ", class=", cur_size
);
2792 static void dump_create_window_reply( const struct create_window_reply
*req
)
2794 fprintf( stderr
, " handle=%08x", req
->handle
);
2795 fprintf( stderr
, ", parent=%08x", req
->parent
);
2796 fprintf( stderr
, ", owner=%08x", req
->owner
);
2797 fprintf( stderr
, ", extra=%d", req
->extra
);
2798 dump_uint64( ", class_ptr=", &req
->class_ptr
);
2801 static void dump_destroy_window_request( const struct destroy_window_request
*req
)
2803 fprintf( stderr
, " handle=%08x", req
->handle
);
2806 static void dump_get_desktop_window_request( const struct get_desktop_window_request
*req
)
2808 fprintf( stderr
, " force=%d", req
->force
);
2811 static void dump_get_desktop_window_reply( const struct get_desktop_window_reply
*req
)
2813 fprintf( stderr
, " top_window=%08x", req
->top_window
);
2814 fprintf( stderr
, ", msg_window=%08x", req
->msg_window
);
2817 static void dump_set_window_owner_request( const struct set_window_owner_request
*req
)
2819 fprintf( stderr
, " handle=%08x", req
->handle
);
2820 fprintf( stderr
, ", owner=%08x", req
->owner
);
2823 static void dump_set_window_owner_reply( const struct set_window_owner_reply
*req
)
2825 fprintf( stderr
, " full_owner=%08x", req
->full_owner
);
2826 fprintf( stderr
, ", prev_owner=%08x", req
->prev_owner
);
2829 static void dump_get_window_info_request( const struct get_window_info_request
*req
)
2831 fprintf( stderr
, " handle=%08x", req
->handle
);
2834 static void dump_get_window_info_reply( const struct get_window_info_reply
*req
)
2836 fprintf( stderr
, " full_handle=%08x", req
->full_handle
);
2837 fprintf( stderr
, ", last_active=%08x", req
->last_active
);
2838 fprintf( stderr
, ", pid=%04x", req
->pid
);
2839 fprintf( stderr
, ", tid=%04x", req
->tid
);
2840 fprintf( stderr
, ", atom=%04x", req
->atom
);
2841 fprintf( stderr
, ", is_unicode=%d", req
->is_unicode
);
2844 static void dump_set_window_info_request( const struct set_window_info_request
*req
)
2846 fprintf( stderr
, " flags=%04x", req
->flags
);
2847 fprintf( stderr
, ", is_unicode=%d", req
->is_unicode
);
2848 fprintf( stderr
, ", handle=%08x", req
->handle
);
2849 fprintf( stderr
, ", style=%08x", req
->style
);
2850 fprintf( stderr
, ", ex_style=%08x", req
->ex_style
);
2851 fprintf( stderr
, ", id=%08x", req
->id
);
2852 dump_uint64( ", instance=", &req
->instance
);
2853 dump_uint64( ", user_data=", &req
->user_data
);
2854 fprintf( stderr
, ", extra_offset=%d", req
->extra_offset
);
2855 fprintf( stderr
, ", extra_size=%u", req
->extra_size
);
2856 dump_uint64( ", extra_value=", &req
->extra_value
);
2859 static void dump_set_window_info_reply( const struct set_window_info_reply
*req
)
2861 fprintf( stderr
, " old_style=%08x", req
->old_style
);
2862 fprintf( stderr
, ", old_ex_style=%08x", req
->old_ex_style
);
2863 dump_uint64( ", old_instance=", &req
->old_instance
);
2864 dump_uint64( ", old_user_data=", &req
->old_user_data
);
2865 dump_uint64( ", old_extra_value=", &req
->old_extra_value
);
2866 fprintf( stderr
, ", old_id=%08x", req
->old_id
);
2869 static void dump_set_parent_request( const struct set_parent_request
*req
)
2871 fprintf( stderr
, " handle=%08x", req
->handle
);
2872 fprintf( stderr
, ", parent=%08x", req
->parent
);
2875 static void dump_set_parent_reply( const struct set_parent_reply
*req
)
2877 fprintf( stderr
, " old_parent=%08x", req
->old_parent
);
2878 fprintf( stderr
, ", full_parent=%08x", req
->full_parent
);
2881 static void dump_get_window_parents_request( const struct get_window_parents_request
*req
)
2883 fprintf( stderr
, " handle=%08x", req
->handle
);
2886 static void dump_get_window_parents_reply( const struct get_window_parents_reply
*req
)
2888 fprintf( stderr
, " count=%d", req
->count
);
2889 dump_varargs_user_handles( ", parents=", cur_size
);
2892 static void dump_get_window_children_request( const struct get_window_children_request
*req
)
2894 fprintf( stderr
, " desktop=%04x", req
->desktop
);
2895 fprintf( stderr
, ", parent=%08x", req
->parent
);
2896 fprintf( stderr
, ", atom=%04x", req
->atom
);
2897 fprintf( stderr
, ", tid=%04x", req
->tid
);
2898 dump_varargs_unicode_str( ", class=", cur_size
);
2901 static void dump_get_window_children_reply( const struct get_window_children_reply
*req
)
2903 fprintf( stderr
, " count=%d", req
->count
);
2904 dump_varargs_user_handles( ", children=", cur_size
);
2907 static void dump_get_window_children_from_point_request( const struct get_window_children_from_point_request
*req
)
2909 fprintf( stderr
, " parent=%08x", req
->parent
);
2910 fprintf( stderr
, ", x=%d", req
->x
);
2911 fprintf( stderr
, ", y=%d", req
->y
);
2914 static void dump_get_window_children_from_point_reply( const struct get_window_children_from_point_reply
*req
)
2916 fprintf( stderr
, " count=%d", req
->count
);
2917 dump_varargs_user_handles( ", children=", cur_size
);
2920 static void dump_get_window_tree_request( const struct get_window_tree_request
*req
)
2922 fprintf( stderr
, " handle=%08x", req
->handle
);
2925 static void dump_get_window_tree_reply( const struct get_window_tree_reply
*req
)
2927 fprintf( stderr
, " parent=%08x", req
->parent
);
2928 fprintf( stderr
, ", owner=%08x", req
->owner
);
2929 fprintf( stderr
, ", next_sibling=%08x", req
->next_sibling
);
2930 fprintf( stderr
, ", prev_sibling=%08x", req
->prev_sibling
);
2931 fprintf( stderr
, ", first_sibling=%08x", req
->first_sibling
);
2932 fprintf( stderr
, ", last_sibling=%08x", req
->last_sibling
);
2933 fprintf( stderr
, ", first_child=%08x", req
->first_child
);
2934 fprintf( stderr
, ", last_child=%08x", req
->last_child
);
2937 static void dump_set_window_pos_request( const struct set_window_pos_request
*req
)
2939 fprintf( stderr
, " swp_flags=%04x", req
->swp_flags
);
2940 fprintf( stderr
, ", paint_flags=%04x", req
->paint_flags
);
2941 fprintf( stderr
, ", handle=%08x", req
->handle
);
2942 fprintf( stderr
, ", previous=%08x", req
->previous
);
2943 dump_rectangle( ", window=", &req
->window
);
2944 dump_rectangle( ", client=", &req
->client
);
2945 dump_varargs_rectangles( ", valid=", cur_size
);
2948 static void dump_set_window_pos_reply( const struct set_window_pos_reply
*req
)
2950 fprintf( stderr
, " new_style=%08x", req
->new_style
);
2951 fprintf( stderr
, ", new_ex_style=%08x", req
->new_ex_style
);
2952 fprintf( stderr
, ", surface_win=%08x", req
->surface_win
);
2955 static void dump_get_window_rectangles_request( const struct get_window_rectangles_request
*req
)
2957 fprintf( stderr
, " handle=%08x", req
->handle
);
2958 fprintf( stderr
, ", relative=%d", req
->relative
);
2961 static void dump_get_window_rectangles_reply( const struct get_window_rectangles_reply
*req
)
2963 dump_rectangle( " window=", &req
->window
);
2964 dump_rectangle( ", visible=", &req
->visible
);
2965 dump_rectangle( ", client=", &req
->client
);
2968 static void dump_get_window_text_request( const struct get_window_text_request
*req
)
2970 fprintf( stderr
, " handle=%08x", req
->handle
);
2973 static void dump_get_window_text_reply( const struct get_window_text_reply
*req
)
2975 dump_varargs_unicode_str( " text=", cur_size
);
2978 static void dump_set_window_text_request( const struct set_window_text_request
*req
)
2980 fprintf( stderr
, " handle=%08x", req
->handle
);
2981 dump_varargs_unicode_str( ", text=", cur_size
);
2984 static void dump_get_windows_offset_request( const struct get_windows_offset_request
*req
)
2986 fprintf( stderr
, " from=%08x", req
->from
);
2987 fprintf( stderr
, ", to=%08x", req
->to
);
2990 static void dump_get_windows_offset_reply( const struct get_windows_offset_reply
*req
)
2992 fprintf( stderr
, " x=%d", req
->x
);
2993 fprintf( stderr
, ", y=%d", req
->y
);
2994 fprintf( stderr
, ", mirror=%d", req
->mirror
);
2997 static void dump_get_visible_region_request( const struct get_visible_region_request
*req
)
2999 fprintf( stderr
, " window=%08x", req
->window
);
3000 fprintf( stderr
, ", flags=%08x", req
->flags
);
3003 static void dump_get_visible_region_reply( const struct get_visible_region_reply
*req
)
3005 fprintf( stderr
, " top_win=%08x", req
->top_win
);
3006 dump_rectangle( ", top_rect=", &req
->top_rect
);
3007 dump_rectangle( ", win_rect=", &req
->win_rect
);
3008 fprintf( stderr
, ", paint_flags=%08x", req
->paint_flags
);
3009 fprintf( stderr
, ", total_size=%u", req
->total_size
);
3010 dump_varargs_rectangles( ", region=", cur_size
);
3013 static void dump_get_surface_region_request( const struct get_surface_region_request
*req
)
3015 fprintf( stderr
, " window=%08x", req
->window
);
3018 static void dump_get_surface_region_reply( const struct get_surface_region_reply
*req
)
3020 dump_rectangle( " visible_rect=", &req
->visible_rect
);
3021 fprintf( stderr
, ", total_size=%u", req
->total_size
);
3022 dump_varargs_rectangles( ", region=", cur_size
);
3025 static void dump_get_window_region_request( const struct get_window_region_request
*req
)
3027 fprintf( stderr
, " window=%08x", req
->window
);
3030 static void dump_get_window_region_reply( const struct get_window_region_reply
*req
)
3032 fprintf( stderr
, " total_size=%u", req
->total_size
);
3033 dump_varargs_rectangles( ", region=", cur_size
);
3036 static void dump_set_window_region_request( const struct set_window_region_request
*req
)
3038 fprintf( stderr
, " window=%08x", req
->window
);
3039 fprintf( stderr
, ", redraw=%d", req
->redraw
);
3040 dump_varargs_rectangles( ", region=", cur_size
);
3043 static void dump_get_update_region_request( const struct get_update_region_request
*req
)
3045 fprintf( stderr
, " window=%08x", req
->window
);
3046 fprintf( stderr
, ", from_child=%08x", req
->from_child
);
3047 fprintf( stderr
, ", flags=%08x", req
->flags
);
3050 static void dump_get_update_region_reply( const struct get_update_region_reply
*req
)
3052 fprintf( stderr
, " child=%08x", req
->child
);
3053 fprintf( stderr
, ", flags=%08x", req
->flags
);
3054 fprintf( stderr
, ", total_size=%u", req
->total_size
);
3055 dump_varargs_rectangles( ", region=", cur_size
);
3058 static void dump_update_window_zorder_request( const struct update_window_zorder_request
*req
)
3060 fprintf( stderr
, " window=%08x", req
->window
);
3061 dump_rectangle( ", rect=", &req
->rect
);
3064 static void dump_redraw_window_request( const struct redraw_window_request
*req
)
3066 fprintf( stderr
, " window=%08x", req
->window
);
3067 fprintf( stderr
, ", flags=%08x", req
->flags
);
3068 dump_varargs_rectangles( ", region=", cur_size
);
3071 static void dump_set_window_property_request( const struct set_window_property_request
*req
)
3073 fprintf( stderr
, " window=%08x", req
->window
);
3074 dump_uint64( ", data=", &req
->data
);
3075 fprintf( stderr
, ", atom=%04x", req
->atom
);
3076 dump_varargs_unicode_str( ", name=", cur_size
);
3079 static void dump_remove_window_property_request( const struct remove_window_property_request
*req
)
3081 fprintf( stderr
, " window=%08x", req
->window
);
3082 fprintf( stderr
, ", atom=%04x", req
->atom
);
3083 dump_varargs_unicode_str( ", name=", cur_size
);
3086 static void dump_remove_window_property_reply( const struct remove_window_property_reply
*req
)
3088 dump_uint64( " data=", &req
->data
);
3091 static void dump_get_window_property_request( const struct get_window_property_request
*req
)
3093 fprintf( stderr
, " window=%08x", req
->window
);
3094 fprintf( stderr
, ", atom=%04x", req
->atom
);
3095 dump_varargs_unicode_str( ", name=", cur_size
);
3098 static void dump_get_window_property_reply( const struct get_window_property_reply
*req
)
3100 dump_uint64( " data=", &req
->data
);
3103 static void dump_get_window_properties_request( const struct get_window_properties_request
*req
)
3105 fprintf( stderr
, " window=%08x", req
->window
);
3108 static void dump_get_window_properties_reply( const struct get_window_properties_reply
*req
)
3110 fprintf( stderr
, " total=%d", req
->total
);
3111 dump_varargs_properties( ", props=", cur_size
);
3114 static void dump_create_winstation_request( const struct create_winstation_request
*req
)
3116 fprintf( stderr
, " flags=%08x", req
->flags
);
3117 fprintf( stderr
, ", access=%08x", req
->access
);
3118 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3119 dump_varargs_unicode_str( ", name=", cur_size
);
3122 static void dump_create_winstation_reply( const struct create_winstation_reply
*req
)
3124 fprintf( stderr
, " handle=%04x", req
->handle
);
3127 static void dump_open_winstation_request( const struct open_winstation_request
*req
)
3129 fprintf( stderr
, " access=%08x", req
->access
);
3130 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3131 dump_varargs_unicode_str( ", name=", cur_size
);
3134 static void dump_open_winstation_reply( const struct open_winstation_reply
*req
)
3136 fprintf( stderr
, " handle=%04x", req
->handle
);
3139 static void dump_close_winstation_request( const struct close_winstation_request
*req
)
3141 fprintf( stderr
, " handle=%04x", req
->handle
);
3144 static void dump_get_process_winstation_request( const struct get_process_winstation_request
*req
)
3148 static void dump_get_process_winstation_reply( const struct get_process_winstation_reply
*req
)
3150 fprintf( stderr
, " handle=%04x", req
->handle
);
3153 static void dump_set_process_winstation_request( const struct set_process_winstation_request
*req
)
3155 fprintf( stderr
, " handle=%04x", req
->handle
);
3158 static void dump_enum_winstation_request( const struct enum_winstation_request
*req
)
3160 fprintf( stderr
, " index=%08x", req
->index
);
3163 static void dump_enum_winstation_reply( const struct enum_winstation_reply
*req
)
3165 fprintf( stderr
, " next=%08x", req
->next
);
3166 dump_varargs_unicode_str( ", name=", cur_size
);
3169 static void dump_create_desktop_request( const struct create_desktop_request
*req
)
3171 fprintf( stderr
, " flags=%08x", req
->flags
);
3172 fprintf( stderr
, ", access=%08x", req
->access
);
3173 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3174 dump_varargs_unicode_str( ", name=", cur_size
);
3177 static void dump_create_desktop_reply( const struct create_desktop_reply
*req
)
3179 fprintf( stderr
, " handle=%04x", req
->handle
);
3182 static void dump_open_desktop_request( const struct open_desktop_request
*req
)
3184 fprintf( stderr
, " winsta=%04x", req
->winsta
);
3185 fprintf( stderr
, ", flags=%08x", req
->flags
);
3186 fprintf( stderr
, ", access=%08x", req
->access
);
3187 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3188 dump_varargs_unicode_str( ", name=", cur_size
);
3191 static void dump_open_desktop_reply( const struct open_desktop_reply
*req
)
3193 fprintf( stderr
, " handle=%04x", req
->handle
);
3196 static void dump_open_input_desktop_request( const struct open_input_desktop_request
*req
)
3198 fprintf( stderr
, " flags=%08x", req
->flags
);
3199 fprintf( stderr
, ", access=%08x", req
->access
);
3200 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3203 static void dump_open_input_desktop_reply( const struct open_input_desktop_reply
*req
)
3205 fprintf( stderr
, " handle=%04x", req
->handle
);
3208 static void dump_close_desktop_request( const struct close_desktop_request
*req
)
3210 fprintf( stderr
, " handle=%04x", req
->handle
);
3213 static void dump_get_thread_desktop_request( const struct get_thread_desktop_request
*req
)
3215 fprintf( stderr
, " tid=%04x", req
->tid
);
3218 static void dump_get_thread_desktop_reply( const struct get_thread_desktop_reply
*req
)
3220 fprintf( stderr
, " handle=%04x", req
->handle
);
3223 static void dump_set_thread_desktop_request( const struct set_thread_desktop_request
*req
)
3225 fprintf( stderr
, " handle=%04x", req
->handle
);
3228 static void dump_enum_desktop_request( const struct enum_desktop_request
*req
)
3230 fprintf( stderr
, " winstation=%04x", req
->winstation
);
3231 fprintf( stderr
, ", index=%08x", req
->index
);
3234 static void dump_enum_desktop_reply( const struct enum_desktop_reply
*req
)
3236 fprintf( stderr
, " next=%08x", req
->next
);
3237 dump_varargs_unicode_str( ", name=", cur_size
);
3240 static void dump_set_user_object_info_request( const struct set_user_object_info_request
*req
)
3242 fprintf( stderr
, " handle=%04x", req
->handle
);
3243 fprintf( stderr
, ", flags=%08x", req
->flags
);
3244 fprintf( stderr
, ", obj_flags=%08x", req
->obj_flags
);
3247 static void dump_set_user_object_info_reply( const struct set_user_object_info_reply
*req
)
3249 fprintf( stderr
, " is_desktop=%d", req
->is_desktop
);
3250 fprintf( stderr
, ", old_obj_flags=%08x", req
->old_obj_flags
);
3251 dump_varargs_unicode_str( ", name=", cur_size
);
3254 static void dump_register_hotkey_request( const struct register_hotkey_request
*req
)
3256 fprintf( stderr
, " window=%08x", req
->window
);
3257 fprintf( stderr
, ", id=%d", req
->id
);
3258 fprintf( stderr
, ", flags=%08x", req
->flags
);
3259 fprintf( stderr
, ", vkey=%08x", req
->vkey
);
3262 static void dump_register_hotkey_reply( const struct register_hotkey_reply
*req
)
3264 fprintf( stderr
, " replaced=%d", req
->replaced
);
3265 fprintf( stderr
, ", flags=%08x", req
->flags
);
3266 fprintf( stderr
, ", vkey=%08x", req
->vkey
);
3269 static void dump_unregister_hotkey_request( const struct unregister_hotkey_request
*req
)
3271 fprintf( stderr
, " window=%08x", req
->window
);
3272 fprintf( stderr
, ", id=%d", req
->id
);
3275 static void dump_unregister_hotkey_reply( const struct unregister_hotkey_reply
*req
)
3277 fprintf( stderr
, " flags=%08x", req
->flags
);
3278 fprintf( stderr
, ", vkey=%08x", req
->vkey
);
3281 static void dump_attach_thread_input_request( const struct attach_thread_input_request
*req
)
3283 fprintf( stderr
, " tid_from=%04x", req
->tid_from
);
3284 fprintf( stderr
, ", tid_to=%04x", req
->tid_to
);
3285 fprintf( stderr
, ", attach=%d", req
->attach
);
3288 static void dump_get_thread_input_request( const struct get_thread_input_request
*req
)
3290 fprintf( stderr
, " tid=%04x", req
->tid
);
3293 static void dump_get_thread_input_reply( const struct get_thread_input_reply
*req
)
3295 fprintf( stderr
, " focus=%08x", req
->focus
);
3296 fprintf( stderr
, ", capture=%08x", req
->capture
);
3297 fprintf( stderr
, ", active=%08x", req
->active
);
3298 fprintf( stderr
, ", foreground=%08x", req
->foreground
);
3299 fprintf( stderr
, ", menu_owner=%08x", req
->menu_owner
);
3300 fprintf( stderr
, ", move_size=%08x", req
->move_size
);
3301 fprintf( stderr
, ", caret=%08x", req
->caret
);
3302 fprintf( stderr
, ", cursor=%08x", req
->cursor
);
3303 fprintf( stderr
, ", show_count=%d", req
->show_count
);
3304 dump_rectangle( ", rect=", &req
->rect
);
3307 static void dump_get_last_input_time_request( const struct get_last_input_time_request
*req
)
3311 static void dump_get_last_input_time_reply( const struct get_last_input_time_reply
*req
)
3313 fprintf( stderr
, " time=%08x", req
->time
);
3316 static void dump_get_key_state_request( const struct get_key_state_request
*req
)
3318 fprintf( stderr
, " tid=%04x", req
->tid
);
3319 fprintf( stderr
, ", key=%d", req
->key
);
3322 static void dump_get_key_state_reply( const struct get_key_state_reply
*req
)
3324 fprintf( stderr
, " state=%02x", req
->state
);
3325 dump_varargs_bytes( ", keystate=", cur_size
);
3328 static void dump_set_key_state_request( const struct set_key_state_request
*req
)
3330 fprintf( stderr
, " tid=%04x", req
->tid
);
3331 fprintf( stderr
, ", async=%d", req
->async
);
3332 dump_varargs_bytes( ", keystate=", cur_size
);
3335 static void dump_set_foreground_window_request( const struct set_foreground_window_request
*req
)
3337 fprintf( stderr
, " handle=%08x", req
->handle
);
3340 static void dump_set_foreground_window_reply( const struct set_foreground_window_reply
*req
)
3342 fprintf( stderr
, " previous=%08x", req
->previous
);
3343 fprintf( stderr
, ", send_msg_old=%d", req
->send_msg_old
);
3344 fprintf( stderr
, ", send_msg_new=%d", req
->send_msg_new
);
3347 static void dump_set_focus_window_request( const struct set_focus_window_request
*req
)
3349 fprintf( stderr
, " handle=%08x", req
->handle
);
3352 static void dump_set_focus_window_reply( const struct set_focus_window_reply
*req
)
3354 fprintf( stderr
, " previous=%08x", req
->previous
);
3357 static void dump_set_active_window_request( const struct set_active_window_request
*req
)
3359 fprintf( stderr
, " handle=%08x", req
->handle
);
3362 static void dump_set_active_window_reply( const struct set_active_window_reply
*req
)
3364 fprintf( stderr
, " previous=%08x", req
->previous
);
3367 static void dump_set_capture_window_request( const struct set_capture_window_request
*req
)
3369 fprintf( stderr
, " handle=%08x", req
->handle
);
3370 fprintf( stderr
, ", flags=%08x", req
->flags
);
3373 static void dump_set_capture_window_reply( const struct set_capture_window_reply
*req
)
3375 fprintf( stderr
, " previous=%08x", req
->previous
);
3376 fprintf( stderr
, ", full_handle=%08x", req
->full_handle
);
3379 static void dump_set_caret_window_request( const struct set_caret_window_request
*req
)
3381 fprintf( stderr
, " handle=%08x", req
->handle
);
3382 fprintf( stderr
, ", width=%d", req
->width
);
3383 fprintf( stderr
, ", height=%d", req
->height
);
3386 static void dump_set_caret_window_reply( const struct set_caret_window_reply
*req
)
3388 fprintf( stderr
, " previous=%08x", req
->previous
);
3389 dump_rectangle( ", old_rect=", &req
->old_rect
);
3390 fprintf( stderr
, ", old_hide=%d", req
->old_hide
);
3391 fprintf( stderr
, ", old_state=%d", req
->old_state
);
3394 static void dump_set_caret_info_request( const struct set_caret_info_request
*req
)
3396 fprintf( stderr
, " flags=%08x", req
->flags
);
3397 fprintf( stderr
, ", handle=%08x", req
->handle
);
3398 fprintf( stderr
, ", x=%d", req
->x
);
3399 fprintf( stderr
, ", y=%d", req
->y
);
3400 fprintf( stderr
, ", hide=%d", req
->hide
);
3401 fprintf( stderr
, ", state=%d", req
->state
);
3404 static void dump_set_caret_info_reply( const struct set_caret_info_reply
*req
)
3406 fprintf( stderr
, " full_handle=%08x", req
->full_handle
);
3407 dump_rectangle( ", old_rect=", &req
->old_rect
);
3408 fprintf( stderr
, ", old_hide=%d", req
->old_hide
);
3409 fprintf( stderr
, ", old_state=%d", req
->old_state
);
3412 static void dump_set_hook_request( const struct set_hook_request
*req
)
3414 fprintf( stderr
, " id=%d", req
->id
);
3415 fprintf( stderr
, ", pid=%04x", req
->pid
);
3416 fprintf( stderr
, ", tid=%04x", req
->tid
);
3417 fprintf( stderr
, ", event_min=%d", req
->event_min
);
3418 fprintf( stderr
, ", event_max=%d", req
->event_max
);
3419 dump_uint64( ", proc=", &req
->proc
);
3420 fprintf( stderr
, ", flags=%d", req
->flags
);
3421 fprintf( stderr
, ", unicode=%d", req
->unicode
);
3422 dump_varargs_unicode_str( ", module=", cur_size
);
3425 static void dump_set_hook_reply( const struct set_hook_reply
*req
)
3427 fprintf( stderr
, " handle=%08x", req
->handle
);
3428 fprintf( stderr
, ", active_hooks=%08x", req
->active_hooks
);
3431 static void dump_remove_hook_request( const struct remove_hook_request
*req
)
3433 fprintf( stderr
, " handle=%08x", req
->handle
);
3434 dump_uint64( ", proc=", &req
->proc
);
3435 fprintf( stderr
, ", id=%d", req
->id
);
3438 static void dump_remove_hook_reply( const struct remove_hook_reply
*req
)
3440 fprintf( stderr
, " active_hooks=%08x", req
->active_hooks
);
3443 static void dump_start_hook_chain_request( const struct start_hook_chain_request
*req
)
3445 fprintf( stderr
, " id=%d", req
->id
);
3446 fprintf( stderr
, ", event=%d", req
->event
);
3447 fprintf( stderr
, ", window=%08x", req
->window
);
3448 fprintf( stderr
, ", object_id=%d", req
->object_id
);
3449 fprintf( stderr
, ", child_id=%d", req
->child_id
);
3452 static void dump_start_hook_chain_reply( const struct start_hook_chain_reply
*req
)
3454 fprintf( stderr
, " handle=%08x", req
->handle
);
3455 fprintf( stderr
, ", pid=%04x", req
->pid
);
3456 fprintf( stderr
, ", tid=%04x", req
->tid
);
3457 fprintf( stderr
, ", unicode=%d", req
->unicode
);
3458 dump_uint64( ", proc=", &req
->proc
);
3459 fprintf( stderr
, ", active_hooks=%08x", req
->active_hooks
);
3460 dump_varargs_unicode_str( ", module=", cur_size
);
3463 static void dump_finish_hook_chain_request( const struct finish_hook_chain_request
*req
)
3465 fprintf( stderr
, " id=%d", req
->id
);
3468 static void dump_get_hook_info_request( const struct get_hook_info_request
*req
)
3470 fprintf( stderr
, " handle=%08x", req
->handle
);
3471 fprintf( stderr
, ", get_next=%d", req
->get_next
);
3472 fprintf( stderr
, ", event=%d", req
->event
);
3473 fprintf( stderr
, ", window=%08x", req
->window
);
3474 fprintf( stderr
, ", object_id=%d", req
->object_id
);
3475 fprintf( stderr
, ", child_id=%d", req
->child_id
);
3478 static void dump_get_hook_info_reply( const struct get_hook_info_reply
*req
)
3480 fprintf( stderr
, " handle=%08x", req
->handle
);
3481 fprintf( stderr
, ", id=%d", req
->id
);
3482 fprintf( stderr
, ", pid=%04x", req
->pid
);
3483 fprintf( stderr
, ", tid=%04x", req
->tid
);
3484 dump_uint64( ", proc=", &req
->proc
);
3485 fprintf( stderr
, ", unicode=%d", req
->unicode
);
3486 dump_varargs_unicode_str( ", module=", cur_size
);
3489 static void dump_create_class_request( const struct create_class_request
*req
)
3491 fprintf( stderr
, " local=%d", req
->local
);
3492 fprintf( stderr
, ", atom=%04x", req
->atom
);
3493 fprintf( stderr
, ", style=%08x", req
->style
);
3494 dump_uint64( ", instance=", &req
->instance
);
3495 fprintf( stderr
, ", extra=%d", req
->extra
);
3496 fprintf( stderr
, ", win_extra=%d", req
->win_extra
);
3497 dump_uint64( ", client_ptr=", &req
->client_ptr
);
3498 dump_varargs_unicode_str( ", name=", cur_size
);
3501 static void dump_create_class_reply( const struct create_class_reply
*req
)
3503 fprintf( stderr
, " atom=%04x", req
->atom
);
3506 static void dump_destroy_class_request( const struct destroy_class_request
*req
)
3508 fprintf( stderr
, " atom=%04x", req
->atom
);
3509 dump_uint64( ", instance=", &req
->instance
);
3510 dump_varargs_unicode_str( ", name=", cur_size
);
3513 static void dump_destroy_class_reply( const struct destroy_class_reply
*req
)
3515 dump_uint64( " client_ptr=", &req
->client_ptr
);
3518 static void dump_set_class_info_request( const struct set_class_info_request
*req
)
3520 fprintf( stderr
, " window=%08x", req
->window
);
3521 fprintf( stderr
, ", flags=%08x", req
->flags
);
3522 fprintf( stderr
, ", atom=%04x", req
->atom
);
3523 fprintf( stderr
, ", style=%08x", req
->style
);
3524 fprintf( stderr
, ", win_extra=%d", req
->win_extra
);
3525 dump_uint64( ", instance=", &req
->instance
);
3526 fprintf( stderr
, ", extra_offset=%d", req
->extra_offset
);
3527 fprintf( stderr
, ", extra_size=%u", req
->extra_size
);
3528 dump_uint64( ", extra_value=", &req
->extra_value
);
3531 static void dump_set_class_info_reply( const struct set_class_info_reply
*req
)
3533 fprintf( stderr
, " old_atom=%04x", req
->old_atom
);
3534 fprintf( stderr
, ", old_style=%08x", req
->old_style
);
3535 fprintf( stderr
, ", old_extra=%d", req
->old_extra
);
3536 fprintf( stderr
, ", old_win_extra=%d", req
->old_win_extra
);
3537 dump_uint64( ", old_instance=", &req
->old_instance
);
3538 dump_uint64( ", old_extra_value=", &req
->old_extra_value
);
3541 static void dump_set_clipboard_info_request( const struct set_clipboard_info_request
*req
)
3543 fprintf( stderr
, " flags=%08x", req
->flags
);
3544 fprintf( stderr
, ", clipboard=%08x", req
->clipboard
);
3545 fprintf( stderr
, ", owner=%08x", req
->owner
);
3546 fprintf( stderr
, ", viewer=%08x", req
->viewer
);
3547 fprintf( stderr
, ", seqno=%08x", req
->seqno
);
3550 static void dump_set_clipboard_info_reply( const struct set_clipboard_info_reply
*req
)
3552 fprintf( stderr
, " flags=%08x", req
->flags
);
3553 fprintf( stderr
, ", old_clipboard=%08x", req
->old_clipboard
);
3554 fprintf( stderr
, ", old_owner=%08x", req
->old_owner
);
3555 fprintf( stderr
, ", old_viewer=%08x", req
->old_viewer
);
3556 fprintf( stderr
, ", seqno=%08x", req
->seqno
);
3559 static void dump_open_token_request( const struct open_token_request
*req
)
3561 fprintf( stderr
, " handle=%04x", req
->handle
);
3562 fprintf( stderr
, ", access=%08x", req
->access
);
3563 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3564 fprintf( stderr
, ", flags=%08x", req
->flags
);
3567 static void dump_open_token_reply( const struct open_token_reply
*req
)
3569 fprintf( stderr
, " token=%04x", req
->token
);
3572 static void dump_set_global_windows_request( const struct set_global_windows_request
*req
)
3574 fprintf( stderr
, " flags=%08x", req
->flags
);
3575 fprintf( stderr
, ", shell_window=%08x", req
->shell_window
);
3576 fprintf( stderr
, ", shell_listview=%08x", req
->shell_listview
);
3577 fprintf( stderr
, ", progman_window=%08x", req
->progman_window
);
3578 fprintf( stderr
, ", taskman_window=%08x", req
->taskman_window
);
3581 static void dump_set_global_windows_reply( const struct set_global_windows_reply
*req
)
3583 fprintf( stderr
, " old_shell_window=%08x", req
->old_shell_window
);
3584 fprintf( stderr
, ", old_shell_listview=%08x", req
->old_shell_listview
);
3585 fprintf( stderr
, ", old_progman_window=%08x", req
->old_progman_window
);
3586 fprintf( stderr
, ", old_taskman_window=%08x", req
->old_taskman_window
);
3589 static void dump_adjust_token_privileges_request( const struct adjust_token_privileges_request
*req
)
3591 fprintf( stderr
, " handle=%04x", req
->handle
);
3592 fprintf( stderr
, ", disable_all=%d", req
->disable_all
);
3593 fprintf( stderr
, ", get_modified_state=%d", req
->get_modified_state
);
3594 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size
);
3597 static void dump_adjust_token_privileges_reply( const struct adjust_token_privileges_reply
*req
)
3599 fprintf( stderr
, " len=%08x", req
->len
);
3600 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size
);
3603 static void dump_get_token_privileges_request( const struct get_token_privileges_request
*req
)
3605 fprintf( stderr
, " handle=%04x", req
->handle
);
3608 static void dump_get_token_privileges_reply( const struct get_token_privileges_reply
*req
)
3610 fprintf( stderr
, " len=%08x", req
->len
);
3611 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size
);
3614 static void dump_check_token_privileges_request( const struct check_token_privileges_request
*req
)
3616 fprintf( stderr
, " handle=%04x", req
->handle
);
3617 fprintf( stderr
, ", all_required=%d", req
->all_required
);
3618 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size
);
3621 static void dump_check_token_privileges_reply( const struct check_token_privileges_reply
*req
)
3623 fprintf( stderr
, " has_privileges=%d", req
->has_privileges
);
3624 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size
);
3627 static void dump_duplicate_token_request( const struct duplicate_token_request
*req
)
3629 fprintf( stderr
, " handle=%04x", req
->handle
);
3630 fprintf( stderr
, ", access=%08x", req
->access
);
3631 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3632 fprintf( stderr
, ", primary=%d", req
->primary
);
3633 fprintf( stderr
, ", impersonation_level=%d", req
->impersonation_level
);
3636 static void dump_duplicate_token_reply( const struct duplicate_token_reply
*req
)
3638 fprintf( stderr
, " new_handle=%04x", req
->new_handle
);
3641 static void dump_access_check_request( const struct access_check_request
*req
)
3643 fprintf( stderr
, " handle=%04x", req
->handle
);
3644 fprintf( stderr
, ", desired_access=%08x", req
->desired_access
);
3645 fprintf( stderr
, ", mapping_read=%08x", req
->mapping_read
);
3646 fprintf( stderr
, ", mapping_write=%08x", req
->mapping_write
);
3647 fprintf( stderr
, ", mapping_execute=%08x", req
->mapping_execute
);
3648 fprintf( stderr
, ", mapping_all=%08x", req
->mapping_all
);
3649 dump_varargs_security_descriptor( ", sd=", cur_size
);
3652 static void dump_access_check_reply( const struct access_check_reply
*req
)
3654 fprintf( stderr
, " access_granted=%08x", req
->access_granted
);
3655 fprintf( stderr
, ", access_status=%08x", req
->access_status
);
3656 fprintf( stderr
, ", privileges_len=%08x", req
->privileges_len
);
3657 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size
);
3660 static void dump_get_token_sid_request( const struct get_token_sid_request
*req
)
3662 fprintf( stderr
, " handle=%04x", req
->handle
);
3663 fprintf( stderr
, ", which_sid=%08x", req
->which_sid
);
3666 static void dump_get_token_sid_reply( const struct get_token_sid_reply
*req
)
3668 fprintf( stderr
, " sid_len=%u", req
->sid_len
);
3669 dump_varargs_SID( ", sid=", cur_size
);
3672 static void dump_get_token_groups_request( const struct get_token_groups_request
*req
)
3674 fprintf( stderr
, " handle=%04x", req
->handle
);
3677 static void dump_get_token_groups_reply( const struct get_token_groups_reply
*req
)
3679 fprintf( stderr
, " user_len=%u", req
->user_len
);
3680 dump_varargs_token_groups( ", user=", cur_size
);
3683 static void dump_get_token_default_dacl_request( const struct get_token_default_dacl_request
*req
)
3685 fprintf( stderr
, " handle=%04x", req
->handle
);
3688 static void dump_get_token_default_dacl_reply( const struct get_token_default_dacl_reply
*req
)
3690 fprintf( stderr
, " acl_len=%u", req
->acl_len
);
3691 dump_varargs_ACL( ", acl=", cur_size
);
3694 static void dump_set_token_default_dacl_request( const struct set_token_default_dacl_request
*req
)
3696 fprintf( stderr
, " handle=%04x", req
->handle
);
3697 dump_varargs_ACL( ", acl=", cur_size
);
3700 static void dump_set_security_object_request( const struct set_security_object_request
*req
)
3702 fprintf( stderr
, " handle=%04x", req
->handle
);
3703 fprintf( stderr
, ", security_info=%08x", req
->security_info
);
3704 dump_varargs_security_descriptor( ", sd=", cur_size
);
3707 static void dump_get_security_object_request( const struct get_security_object_request
*req
)
3709 fprintf( stderr
, " handle=%04x", req
->handle
);
3710 fprintf( stderr
, ", security_info=%08x", req
->security_info
);
3713 static void dump_get_security_object_reply( const struct get_security_object_reply
*req
)
3715 fprintf( stderr
, " sd_len=%08x", req
->sd_len
);
3716 dump_varargs_security_descriptor( ", sd=", cur_size
);
3719 static void dump_create_mailslot_request( const struct create_mailslot_request
*req
)
3721 fprintf( stderr
, " access=%08x", req
->access
);
3722 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3723 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
3724 dump_timeout( ", read_timeout=", &req
->read_timeout
);
3725 fprintf( stderr
, ", max_msgsize=%08x", req
->max_msgsize
);
3726 dump_varargs_unicode_str( ", name=", cur_size
);
3729 static void dump_create_mailslot_reply( const struct create_mailslot_reply
*req
)
3731 fprintf( stderr
, " handle=%04x", req
->handle
);
3734 static void dump_set_mailslot_info_request( const struct set_mailslot_info_request
*req
)
3736 fprintf( stderr
, " handle=%04x", req
->handle
);
3737 dump_timeout( ", read_timeout=", &req
->read_timeout
);
3738 fprintf( stderr
, ", flags=%08x", req
->flags
);
3741 static void dump_set_mailslot_info_reply( const struct set_mailslot_info_reply
*req
)
3743 dump_timeout( " read_timeout=", &req
->read_timeout
);
3744 fprintf( stderr
, ", max_msgsize=%08x", req
->max_msgsize
);
3747 static void dump_create_directory_request( const struct create_directory_request
*req
)
3749 fprintf( stderr
, " access=%08x", req
->access
);
3750 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3751 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
3752 dump_varargs_unicode_str( ", directory_name=", cur_size
);
3755 static void dump_create_directory_reply( const struct create_directory_reply
*req
)
3757 fprintf( stderr
, " handle=%04x", req
->handle
);
3760 static void dump_open_directory_request( const struct open_directory_request
*req
)
3762 fprintf( stderr
, " access=%08x", req
->access
);
3763 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3764 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
3765 dump_varargs_unicode_str( ", directory_name=", cur_size
);
3768 static void dump_open_directory_reply( const struct open_directory_reply
*req
)
3770 fprintf( stderr
, " handle=%04x", req
->handle
);
3773 static void dump_get_directory_entry_request( const struct get_directory_entry_request
*req
)
3775 fprintf( stderr
, " handle=%04x", req
->handle
);
3776 fprintf( stderr
, ", index=%08x", req
->index
);
3779 static void dump_get_directory_entry_reply( const struct get_directory_entry_reply
*req
)
3781 fprintf( stderr
, " name_len=%u", req
->name_len
);
3782 dump_varargs_unicode_str( ", name=", min(cur_size
,req
->name_len
) );
3783 dump_varargs_unicode_str( ", type=", cur_size
);
3786 static void dump_create_symlink_request( const struct create_symlink_request
*req
)
3788 fprintf( stderr
, " access=%08x", req
->access
);
3789 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3790 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
3791 fprintf( stderr
, ", name_len=%u", req
->name_len
);
3792 dump_varargs_unicode_str( ", name=", min(cur_size
,req
->name_len
) );
3793 dump_varargs_unicode_str( ", target_name=", cur_size
);
3796 static void dump_create_symlink_reply( const struct create_symlink_reply
*req
)
3798 fprintf( stderr
, " handle=%04x", req
->handle
);
3801 static void dump_open_symlink_request( const struct open_symlink_request
*req
)
3803 fprintf( stderr
, " access=%08x", req
->access
);
3804 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3805 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
3806 dump_varargs_unicode_str( ", name=", cur_size
);
3809 static void dump_open_symlink_reply( const struct open_symlink_reply
*req
)
3811 fprintf( stderr
, " handle=%04x", req
->handle
);
3814 static void dump_query_symlink_request( const struct query_symlink_request
*req
)
3816 fprintf( stderr
, " handle=%04x", req
->handle
);
3819 static void dump_query_symlink_reply( const struct query_symlink_reply
*req
)
3821 fprintf( stderr
, " total=%u", req
->total
);
3822 dump_varargs_unicode_str( ", target_name=", cur_size
);
3825 static void dump_get_object_info_request( const struct get_object_info_request
*req
)
3827 fprintf( stderr
, " handle=%04x", req
->handle
);
3830 static void dump_get_object_info_reply( const struct get_object_info_reply
*req
)
3832 fprintf( stderr
, " access=%08x", req
->access
);
3833 fprintf( stderr
, ", ref_count=%08x", req
->ref_count
);
3834 fprintf( stderr
, ", total=%u", req
->total
);
3835 dump_varargs_unicode_str( ", name=", cur_size
);
3838 static void dump_unlink_object_request( const struct unlink_object_request
*req
)
3840 fprintf( stderr
, " handle=%04x", req
->handle
);
3843 static void dump_get_token_impersonation_level_request( const struct get_token_impersonation_level_request
*req
)
3845 fprintf( stderr
, " handle=%04x", req
->handle
);
3848 static void dump_get_token_impersonation_level_reply( const struct get_token_impersonation_level_reply
*req
)
3850 fprintf( stderr
, " impersonation_level=%d", req
->impersonation_level
);
3853 static void dump_allocate_locally_unique_id_request( const struct allocate_locally_unique_id_request
*req
)
3857 static void dump_allocate_locally_unique_id_reply( const struct allocate_locally_unique_id_reply
*req
)
3859 dump_luid( " luid=", &req
->luid
);
3862 static void dump_create_device_manager_request( const struct create_device_manager_request
*req
)
3864 fprintf( stderr
, " access=%08x", req
->access
);
3865 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3868 static void dump_create_device_manager_reply( const struct create_device_manager_reply
*req
)
3870 fprintf( stderr
, " handle=%04x", req
->handle
);
3873 static void dump_create_device_request( const struct create_device_request
*req
)
3875 fprintf( stderr
, " access=%08x", req
->access
);
3876 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3877 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
3878 dump_uint64( ", user_ptr=", &req
->user_ptr
);
3879 fprintf( stderr
, ", manager=%04x", req
->manager
);
3880 dump_varargs_unicode_str( ", name=", cur_size
);
3883 static void dump_create_device_reply( const struct create_device_reply
*req
)
3885 fprintf( stderr
, " handle=%04x", req
->handle
);
3888 static void dump_delete_device_request( const struct delete_device_request
*req
)
3890 fprintf( stderr
, " handle=%04x", req
->handle
);
3893 static void dump_get_next_device_request_request( const struct get_next_device_request_request
*req
)
3895 fprintf( stderr
, " manager=%04x", req
->manager
);
3896 fprintf( stderr
, ", prev=%04x", req
->prev
);
3897 fprintf( stderr
, ", status=%08x", req
->status
);
3898 dump_varargs_bytes( ", prev_data=", cur_size
);
3901 static void dump_get_next_device_request_reply( const struct get_next_device_request_reply
*req
)
3903 fprintf( stderr
, " next=%04x", req
->next
);
3904 dump_ioctl_code( ", code=", &req
->code
);
3905 dump_uint64( ", user_ptr=", &req
->user_ptr
);
3906 fprintf( stderr
, ", client_pid=%04x", req
->client_pid
);
3907 fprintf( stderr
, ", client_tid=%04x", req
->client_tid
);
3908 fprintf( stderr
, ", in_size=%u", req
->in_size
);
3909 fprintf( stderr
, ", out_size=%u", req
->out_size
);
3910 dump_varargs_bytes( ", next_data=", cur_size
);
3913 static void dump_make_process_system_request( const struct make_process_system_request
*req
)
3917 static void dump_make_process_system_reply( const struct make_process_system_reply
*req
)
3919 fprintf( stderr
, " event=%04x", req
->event
);
3922 static void dump_get_token_statistics_request( const struct get_token_statistics_request
*req
)
3924 fprintf( stderr
, " handle=%04x", req
->handle
);
3927 static void dump_get_token_statistics_reply( const struct get_token_statistics_reply
*req
)
3929 dump_luid( " token_id=", &req
->token_id
);
3930 dump_luid( ", modified_id=", &req
->modified_id
);
3931 fprintf( stderr
, ", primary=%d", req
->primary
);
3932 fprintf( stderr
, ", impersonation_level=%d", req
->impersonation_level
);
3933 fprintf( stderr
, ", group_count=%d", req
->group_count
);
3934 fprintf( stderr
, ", privilege_count=%d", req
->privilege_count
);
3937 static void dump_create_completion_request( const struct create_completion_request
*req
)
3939 fprintf( stderr
, " access=%08x", req
->access
);
3940 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3941 fprintf( stderr
, ", concurrent=%08x", req
->concurrent
);
3942 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
3943 dump_varargs_string( ", filename=", cur_size
);
3946 static void dump_create_completion_reply( const struct create_completion_reply
*req
)
3948 fprintf( stderr
, " handle=%04x", req
->handle
);
3951 static void dump_open_completion_request( const struct open_completion_request
*req
)
3953 fprintf( stderr
, " access=%08x", req
->access
);
3954 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3955 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
3956 dump_varargs_string( ", filename=", cur_size
);
3959 static void dump_open_completion_reply( const struct open_completion_reply
*req
)
3961 fprintf( stderr
, " handle=%04x", req
->handle
);
3964 static void dump_add_completion_request( const struct add_completion_request
*req
)
3966 fprintf( stderr
, " handle=%04x", req
->handle
);
3967 dump_uint64( ", ckey=", &req
->ckey
);
3968 dump_uint64( ", cvalue=", &req
->cvalue
);
3969 dump_uint64( ", information=", &req
->information
);
3970 fprintf( stderr
, ", status=%08x", req
->status
);
3973 static void dump_remove_completion_request( const struct remove_completion_request
*req
)
3975 fprintf( stderr
, " handle=%04x", req
->handle
);
3978 static void dump_remove_completion_reply( const struct remove_completion_reply
*req
)
3980 dump_uint64( " ckey=", &req
->ckey
);
3981 dump_uint64( ", cvalue=", &req
->cvalue
);
3982 dump_uint64( ", information=", &req
->information
);
3983 fprintf( stderr
, ", status=%08x", req
->status
);
3986 static void dump_query_completion_request( const struct query_completion_request
*req
)
3988 fprintf( stderr
, " handle=%04x", req
->handle
);
3991 static void dump_query_completion_reply( const struct query_completion_reply
*req
)
3993 fprintf( stderr
, " depth=%08x", req
->depth
);
3996 static void dump_set_completion_info_request( const struct set_completion_info_request
*req
)
3998 fprintf( stderr
, " handle=%04x", req
->handle
);
3999 dump_uint64( ", ckey=", &req
->ckey
);
4000 fprintf( stderr
, ", chandle=%04x", req
->chandle
);
4003 static void dump_add_fd_completion_request( const struct add_fd_completion_request
*req
)
4005 fprintf( stderr
, " handle=%04x", req
->handle
);
4006 dump_uint64( ", cvalue=", &req
->cvalue
);
4007 dump_uint64( ", information=", &req
->information
);
4008 fprintf( stderr
, ", status=%08x", req
->status
);
4011 static void dump_get_window_layered_info_request( const struct get_window_layered_info_request
*req
)
4013 fprintf( stderr
, " handle=%08x", req
->handle
);
4016 static void dump_get_window_layered_info_reply( const struct get_window_layered_info_reply
*req
)
4018 fprintf( stderr
, " color_key=%08x", req
->color_key
);
4019 fprintf( stderr
, ", alpha=%08x", req
->alpha
);
4020 fprintf( stderr
, ", flags=%08x", req
->flags
);
4023 static void dump_set_window_layered_info_request( const struct set_window_layered_info_request
*req
)
4025 fprintf( stderr
, " handle=%08x", req
->handle
);
4026 fprintf( stderr
, ", color_key=%08x", req
->color_key
);
4027 fprintf( stderr
, ", alpha=%08x", req
->alpha
);
4028 fprintf( stderr
, ", flags=%08x", req
->flags
);
4031 static void dump_alloc_user_handle_request( const struct alloc_user_handle_request
*req
)
4035 static void dump_alloc_user_handle_reply( const struct alloc_user_handle_reply
*req
)
4037 fprintf( stderr
, " handle=%08x", req
->handle
);
4040 static void dump_free_user_handle_request( const struct free_user_handle_request
*req
)
4042 fprintf( stderr
, " handle=%08x", req
->handle
);
4045 static void dump_set_cursor_request( const struct set_cursor_request
*req
)
4047 fprintf( stderr
, " flags=%08x", req
->flags
);
4048 fprintf( stderr
, ", handle=%08x", req
->handle
);
4049 fprintf( stderr
, ", show_count=%d", req
->show_count
);
4050 fprintf( stderr
, ", x=%d", req
->x
);
4051 fprintf( stderr
, ", y=%d", req
->y
);
4052 dump_rectangle( ", clip=", &req
->clip
);
4053 fprintf( stderr
, ", clip_msg=%08x", req
->clip_msg
);
4056 static void dump_set_cursor_reply( const struct set_cursor_reply
*req
)
4058 fprintf( stderr
, " prev_handle=%08x", req
->prev_handle
);
4059 fprintf( stderr
, ", prev_count=%d", req
->prev_count
);
4060 fprintf( stderr
, ", prev_x=%d", req
->prev_x
);
4061 fprintf( stderr
, ", prev_y=%d", req
->prev_y
);
4062 fprintf( stderr
, ", new_x=%d", req
->new_x
);
4063 fprintf( stderr
, ", new_y=%d", req
->new_y
);
4064 dump_rectangle( ", new_clip=", &req
->new_clip
);
4065 fprintf( stderr
, ", last_change=%08x", req
->last_change
);
4068 static void dump_update_rawinput_devices_request( const struct update_rawinput_devices_request
*req
)
4070 dump_varargs_rawinput_devices( " devices=", cur_size
);
4073 static void dump_get_suspend_context_request( const struct get_suspend_context_request
*req
)
4077 static void dump_get_suspend_context_reply( const struct get_suspend_context_reply
*req
)
4079 dump_varargs_context( " context=", cur_size
);
4082 static void dump_set_suspend_context_request( const struct set_suspend_context_request
*req
)
4084 dump_varargs_context( " context=", cur_size
);
4087 static const dump_func req_dumpers
[REQ_NB_REQUESTS
] = {
4088 (dump_func
)dump_new_process_request
,
4089 (dump_func
)dump_get_new_process_info_request
,
4090 (dump_func
)dump_new_thread_request
,
4091 (dump_func
)dump_get_startup_info_request
,
4092 (dump_func
)dump_init_process_done_request
,
4093 (dump_func
)dump_init_thread_request
,
4094 (dump_func
)dump_terminate_process_request
,
4095 (dump_func
)dump_terminate_thread_request
,
4096 (dump_func
)dump_get_process_info_request
,
4097 (dump_func
)dump_set_process_info_request
,
4098 (dump_func
)dump_get_thread_info_request
,
4099 (dump_func
)dump_set_thread_info_request
,
4100 (dump_func
)dump_get_dll_info_request
,
4101 (dump_func
)dump_suspend_thread_request
,
4102 (dump_func
)dump_resume_thread_request
,
4103 (dump_func
)dump_load_dll_request
,
4104 (dump_func
)dump_unload_dll_request
,
4105 (dump_func
)dump_queue_apc_request
,
4106 (dump_func
)dump_get_apc_result_request
,
4107 (dump_func
)dump_close_handle_request
,
4108 (dump_func
)dump_set_handle_info_request
,
4109 (dump_func
)dump_dup_handle_request
,
4110 (dump_func
)dump_open_process_request
,
4111 (dump_func
)dump_open_thread_request
,
4112 (dump_func
)dump_select_request
,
4113 (dump_func
)dump_create_event_request
,
4114 (dump_func
)dump_event_op_request
,
4115 (dump_func
)dump_query_event_request
,
4116 (dump_func
)dump_open_event_request
,
4117 (dump_func
)dump_create_keyed_event_request
,
4118 (dump_func
)dump_open_keyed_event_request
,
4119 (dump_func
)dump_create_mutex_request
,
4120 (dump_func
)dump_release_mutex_request
,
4121 (dump_func
)dump_open_mutex_request
,
4122 (dump_func
)dump_create_semaphore_request
,
4123 (dump_func
)dump_release_semaphore_request
,
4124 (dump_func
)dump_open_semaphore_request
,
4125 (dump_func
)dump_create_file_request
,
4126 (dump_func
)dump_open_file_object_request
,
4127 (dump_func
)dump_alloc_file_handle_request
,
4128 (dump_func
)dump_get_handle_unix_name_request
,
4129 (dump_func
)dump_get_handle_fd_request
,
4130 (dump_func
)dump_flush_file_request
,
4131 (dump_func
)dump_lock_file_request
,
4132 (dump_func
)dump_unlock_file_request
,
4133 (dump_func
)dump_create_socket_request
,
4134 (dump_func
)dump_accept_socket_request
,
4135 (dump_func
)dump_accept_into_socket_request
,
4136 (dump_func
)dump_set_socket_event_request
,
4137 (dump_func
)dump_get_socket_event_request
,
4138 (dump_func
)dump_get_socket_info_request
,
4139 (dump_func
)dump_enable_socket_event_request
,
4140 (dump_func
)dump_set_socket_deferred_request
,
4141 (dump_func
)dump_alloc_console_request
,
4142 (dump_func
)dump_free_console_request
,
4143 (dump_func
)dump_get_console_renderer_events_request
,
4144 (dump_func
)dump_open_console_request
,
4145 (dump_func
)dump_get_console_wait_event_request
,
4146 (dump_func
)dump_get_console_mode_request
,
4147 (dump_func
)dump_set_console_mode_request
,
4148 (dump_func
)dump_set_console_input_info_request
,
4149 (dump_func
)dump_get_console_input_info_request
,
4150 (dump_func
)dump_append_console_input_history_request
,
4151 (dump_func
)dump_get_console_input_history_request
,
4152 (dump_func
)dump_create_console_output_request
,
4153 (dump_func
)dump_set_console_output_info_request
,
4154 (dump_func
)dump_get_console_output_info_request
,
4155 (dump_func
)dump_write_console_input_request
,
4156 (dump_func
)dump_read_console_input_request
,
4157 (dump_func
)dump_write_console_output_request
,
4158 (dump_func
)dump_fill_console_output_request
,
4159 (dump_func
)dump_read_console_output_request
,
4160 (dump_func
)dump_move_console_output_request
,
4161 (dump_func
)dump_send_console_signal_request
,
4162 (dump_func
)dump_read_directory_changes_request
,
4163 (dump_func
)dump_read_change_request
,
4164 (dump_func
)dump_create_mapping_request
,
4165 (dump_func
)dump_open_mapping_request
,
4166 (dump_func
)dump_get_mapping_info_request
,
4167 (dump_func
)dump_get_mapping_committed_range_request
,
4168 (dump_func
)dump_add_mapping_committed_range_request
,
4169 (dump_func
)dump_create_snapshot_request
,
4170 (dump_func
)dump_next_process_request
,
4171 (dump_func
)dump_next_thread_request
,
4172 (dump_func
)dump_wait_debug_event_request
,
4173 (dump_func
)dump_queue_exception_event_request
,
4174 (dump_func
)dump_get_exception_status_request
,
4175 (dump_func
)dump_output_debug_string_request
,
4176 (dump_func
)dump_continue_debug_event_request
,
4177 (dump_func
)dump_debug_process_request
,
4178 (dump_func
)dump_debug_break_request
,
4179 (dump_func
)dump_set_debugger_kill_on_exit_request
,
4180 (dump_func
)dump_read_process_memory_request
,
4181 (dump_func
)dump_write_process_memory_request
,
4182 (dump_func
)dump_create_key_request
,
4183 (dump_func
)dump_open_key_request
,
4184 (dump_func
)dump_delete_key_request
,
4185 (dump_func
)dump_flush_key_request
,
4186 (dump_func
)dump_enum_key_request
,
4187 (dump_func
)dump_set_key_value_request
,
4188 (dump_func
)dump_get_key_value_request
,
4189 (dump_func
)dump_enum_key_value_request
,
4190 (dump_func
)dump_delete_key_value_request
,
4191 (dump_func
)dump_load_registry_request
,
4192 (dump_func
)dump_unload_registry_request
,
4193 (dump_func
)dump_save_registry_request
,
4194 (dump_func
)dump_set_registry_notification_request
,
4195 (dump_func
)dump_create_timer_request
,
4196 (dump_func
)dump_open_timer_request
,
4197 (dump_func
)dump_set_timer_request
,
4198 (dump_func
)dump_cancel_timer_request
,
4199 (dump_func
)dump_get_timer_info_request
,
4200 (dump_func
)dump_get_thread_context_request
,
4201 (dump_func
)dump_set_thread_context_request
,
4202 (dump_func
)dump_get_selector_entry_request
,
4203 (dump_func
)dump_add_atom_request
,
4204 (dump_func
)dump_delete_atom_request
,
4205 (dump_func
)dump_find_atom_request
,
4206 (dump_func
)dump_get_atom_information_request
,
4207 (dump_func
)dump_set_atom_information_request
,
4208 (dump_func
)dump_empty_atom_table_request
,
4209 (dump_func
)dump_init_atom_table_request
,
4210 (dump_func
)dump_get_msg_queue_request
,
4211 (dump_func
)dump_set_queue_fd_request
,
4212 (dump_func
)dump_set_queue_mask_request
,
4213 (dump_func
)dump_get_queue_status_request
,
4214 (dump_func
)dump_get_process_idle_event_request
,
4215 (dump_func
)dump_send_message_request
,
4216 (dump_func
)dump_post_quit_message_request
,
4217 (dump_func
)dump_send_hardware_message_request
,
4218 (dump_func
)dump_get_message_request
,
4219 (dump_func
)dump_reply_message_request
,
4220 (dump_func
)dump_accept_hardware_message_request
,
4221 (dump_func
)dump_get_message_reply_request
,
4222 (dump_func
)dump_set_win_timer_request
,
4223 (dump_func
)dump_kill_win_timer_request
,
4224 (dump_func
)dump_is_window_hung_request
,
4225 (dump_func
)dump_get_serial_info_request
,
4226 (dump_func
)dump_set_serial_info_request
,
4227 (dump_func
)dump_register_async_request
,
4228 (dump_func
)dump_cancel_async_request
,
4229 (dump_func
)dump_ioctl_request
,
4230 (dump_func
)dump_get_ioctl_result_request
,
4231 (dump_func
)dump_create_named_pipe_request
,
4232 (dump_func
)dump_get_named_pipe_info_request
,
4233 (dump_func
)dump_create_window_request
,
4234 (dump_func
)dump_destroy_window_request
,
4235 (dump_func
)dump_get_desktop_window_request
,
4236 (dump_func
)dump_set_window_owner_request
,
4237 (dump_func
)dump_get_window_info_request
,
4238 (dump_func
)dump_set_window_info_request
,
4239 (dump_func
)dump_set_parent_request
,
4240 (dump_func
)dump_get_window_parents_request
,
4241 (dump_func
)dump_get_window_children_request
,
4242 (dump_func
)dump_get_window_children_from_point_request
,
4243 (dump_func
)dump_get_window_tree_request
,
4244 (dump_func
)dump_set_window_pos_request
,
4245 (dump_func
)dump_get_window_rectangles_request
,
4246 (dump_func
)dump_get_window_text_request
,
4247 (dump_func
)dump_set_window_text_request
,
4248 (dump_func
)dump_get_windows_offset_request
,
4249 (dump_func
)dump_get_visible_region_request
,
4250 (dump_func
)dump_get_surface_region_request
,
4251 (dump_func
)dump_get_window_region_request
,
4252 (dump_func
)dump_set_window_region_request
,
4253 (dump_func
)dump_get_update_region_request
,
4254 (dump_func
)dump_update_window_zorder_request
,
4255 (dump_func
)dump_redraw_window_request
,
4256 (dump_func
)dump_set_window_property_request
,
4257 (dump_func
)dump_remove_window_property_request
,
4258 (dump_func
)dump_get_window_property_request
,
4259 (dump_func
)dump_get_window_properties_request
,
4260 (dump_func
)dump_create_winstation_request
,
4261 (dump_func
)dump_open_winstation_request
,
4262 (dump_func
)dump_close_winstation_request
,
4263 (dump_func
)dump_get_process_winstation_request
,
4264 (dump_func
)dump_set_process_winstation_request
,
4265 (dump_func
)dump_enum_winstation_request
,
4266 (dump_func
)dump_create_desktop_request
,
4267 (dump_func
)dump_open_desktop_request
,
4268 (dump_func
)dump_open_input_desktop_request
,
4269 (dump_func
)dump_close_desktop_request
,
4270 (dump_func
)dump_get_thread_desktop_request
,
4271 (dump_func
)dump_set_thread_desktop_request
,
4272 (dump_func
)dump_enum_desktop_request
,
4273 (dump_func
)dump_set_user_object_info_request
,
4274 (dump_func
)dump_register_hotkey_request
,
4275 (dump_func
)dump_unregister_hotkey_request
,
4276 (dump_func
)dump_attach_thread_input_request
,
4277 (dump_func
)dump_get_thread_input_request
,
4278 (dump_func
)dump_get_last_input_time_request
,
4279 (dump_func
)dump_get_key_state_request
,
4280 (dump_func
)dump_set_key_state_request
,
4281 (dump_func
)dump_set_foreground_window_request
,
4282 (dump_func
)dump_set_focus_window_request
,
4283 (dump_func
)dump_set_active_window_request
,
4284 (dump_func
)dump_set_capture_window_request
,
4285 (dump_func
)dump_set_caret_window_request
,
4286 (dump_func
)dump_set_caret_info_request
,
4287 (dump_func
)dump_set_hook_request
,
4288 (dump_func
)dump_remove_hook_request
,
4289 (dump_func
)dump_start_hook_chain_request
,
4290 (dump_func
)dump_finish_hook_chain_request
,
4291 (dump_func
)dump_get_hook_info_request
,
4292 (dump_func
)dump_create_class_request
,
4293 (dump_func
)dump_destroy_class_request
,
4294 (dump_func
)dump_set_class_info_request
,
4295 (dump_func
)dump_set_clipboard_info_request
,
4296 (dump_func
)dump_open_token_request
,
4297 (dump_func
)dump_set_global_windows_request
,
4298 (dump_func
)dump_adjust_token_privileges_request
,
4299 (dump_func
)dump_get_token_privileges_request
,
4300 (dump_func
)dump_check_token_privileges_request
,
4301 (dump_func
)dump_duplicate_token_request
,
4302 (dump_func
)dump_access_check_request
,
4303 (dump_func
)dump_get_token_sid_request
,
4304 (dump_func
)dump_get_token_groups_request
,
4305 (dump_func
)dump_get_token_default_dacl_request
,
4306 (dump_func
)dump_set_token_default_dacl_request
,
4307 (dump_func
)dump_set_security_object_request
,
4308 (dump_func
)dump_get_security_object_request
,
4309 (dump_func
)dump_create_mailslot_request
,
4310 (dump_func
)dump_set_mailslot_info_request
,
4311 (dump_func
)dump_create_directory_request
,
4312 (dump_func
)dump_open_directory_request
,
4313 (dump_func
)dump_get_directory_entry_request
,
4314 (dump_func
)dump_create_symlink_request
,
4315 (dump_func
)dump_open_symlink_request
,
4316 (dump_func
)dump_query_symlink_request
,
4317 (dump_func
)dump_get_object_info_request
,
4318 (dump_func
)dump_unlink_object_request
,
4319 (dump_func
)dump_get_token_impersonation_level_request
,
4320 (dump_func
)dump_allocate_locally_unique_id_request
,
4321 (dump_func
)dump_create_device_manager_request
,
4322 (dump_func
)dump_create_device_request
,
4323 (dump_func
)dump_delete_device_request
,
4324 (dump_func
)dump_get_next_device_request_request
,
4325 (dump_func
)dump_make_process_system_request
,
4326 (dump_func
)dump_get_token_statistics_request
,
4327 (dump_func
)dump_create_completion_request
,
4328 (dump_func
)dump_open_completion_request
,
4329 (dump_func
)dump_add_completion_request
,
4330 (dump_func
)dump_remove_completion_request
,
4331 (dump_func
)dump_query_completion_request
,
4332 (dump_func
)dump_set_completion_info_request
,
4333 (dump_func
)dump_add_fd_completion_request
,
4334 (dump_func
)dump_get_window_layered_info_request
,
4335 (dump_func
)dump_set_window_layered_info_request
,
4336 (dump_func
)dump_alloc_user_handle_request
,
4337 (dump_func
)dump_free_user_handle_request
,
4338 (dump_func
)dump_set_cursor_request
,
4339 (dump_func
)dump_update_rawinput_devices_request
,
4340 (dump_func
)dump_get_suspend_context_request
,
4341 (dump_func
)dump_set_suspend_context_request
,
4344 static const dump_func reply_dumpers
[REQ_NB_REQUESTS
] = {
4345 (dump_func
)dump_new_process_reply
,
4346 (dump_func
)dump_get_new_process_info_reply
,
4347 (dump_func
)dump_new_thread_reply
,
4348 (dump_func
)dump_get_startup_info_reply
,
4350 (dump_func
)dump_init_thread_reply
,
4351 (dump_func
)dump_terminate_process_reply
,
4352 (dump_func
)dump_terminate_thread_reply
,
4353 (dump_func
)dump_get_process_info_reply
,
4355 (dump_func
)dump_get_thread_info_reply
,
4357 (dump_func
)dump_get_dll_info_reply
,
4358 (dump_func
)dump_suspend_thread_reply
,
4359 (dump_func
)dump_resume_thread_reply
,
4362 (dump_func
)dump_queue_apc_reply
,
4363 (dump_func
)dump_get_apc_result_reply
,
4365 (dump_func
)dump_set_handle_info_reply
,
4366 (dump_func
)dump_dup_handle_reply
,
4367 (dump_func
)dump_open_process_reply
,
4368 (dump_func
)dump_open_thread_reply
,
4369 (dump_func
)dump_select_reply
,
4370 (dump_func
)dump_create_event_reply
,
4372 (dump_func
)dump_query_event_reply
,
4373 (dump_func
)dump_open_event_reply
,
4374 (dump_func
)dump_create_keyed_event_reply
,
4375 (dump_func
)dump_open_keyed_event_reply
,
4376 (dump_func
)dump_create_mutex_reply
,
4377 (dump_func
)dump_release_mutex_reply
,
4378 (dump_func
)dump_open_mutex_reply
,
4379 (dump_func
)dump_create_semaphore_reply
,
4380 (dump_func
)dump_release_semaphore_reply
,
4381 (dump_func
)dump_open_semaphore_reply
,
4382 (dump_func
)dump_create_file_reply
,
4383 (dump_func
)dump_open_file_object_reply
,
4384 (dump_func
)dump_alloc_file_handle_reply
,
4385 (dump_func
)dump_get_handle_unix_name_reply
,
4386 (dump_func
)dump_get_handle_fd_reply
,
4387 (dump_func
)dump_flush_file_reply
,
4388 (dump_func
)dump_lock_file_reply
,
4390 (dump_func
)dump_create_socket_reply
,
4391 (dump_func
)dump_accept_socket_reply
,
4394 (dump_func
)dump_get_socket_event_reply
,
4395 (dump_func
)dump_get_socket_info_reply
,
4398 (dump_func
)dump_alloc_console_reply
,
4400 (dump_func
)dump_get_console_renderer_events_reply
,
4401 (dump_func
)dump_open_console_reply
,
4402 (dump_func
)dump_get_console_wait_event_reply
,
4403 (dump_func
)dump_get_console_mode_reply
,
4406 (dump_func
)dump_get_console_input_info_reply
,
4408 (dump_func
)dump_get_console_input_history_reply
,
4409 (dump_func
)dump_create_console_output_reply
,
4411 (dump_func
)dump_get_console_output_info_reply
,
4412 (dump_func
)dump_write_console_input_reply
,
4413 (dump_func
)dump_read_console_input_reply
,
4414 (dump_func
)dump_write_console_output_reply
,
4415 (dump_func
)dump_fill_console_output_reply
,
4416 (dump_func
)dump_read_console_output_reply
,
4420 (dump_func
)dump_read_change_reply
,
4421 (dump_func
)dump_create_mapping_reply
,
4422 (dump_func
)dump_open_mapping_reply
,
4423 (dump_func
)dump_get_mapping_info_reply
,
4424 (dump_func
)dump_get_mapping_committed_range_reply
,
4426 (dump_func
)dump_create_snapshot_reply
,
4427 (dump_func
)dump_next_process_reply
,
4428 (dump_func
)dump_next_thread_reply
,
4429 (dump_func
)dump_wait_debug_event_reply
,
4430 (dump_func
)dump_queue_exception_event_reply
,
4431 (dump_func
)dump_get_exception_status_reply
,
4435 (dump_func
)dump_debug_break_reply
,
4437 (dump_func
)dump_read_process_memory_reply
,
4439 (dump_func
)dump_create_key_reply
,
4440 (dump_func
)dump_open_key_reply
,
4443 (dump_func
)dump_enum_key_reply
,
4445 (dump_func
)dump_get_key_value_reply
,
4446 (dump_func
)dump_enum_key_value_reply
,
4452 (dump_func
)dump_create_timer_reply
,
4453 (dump_func
)dump_open_timer_reply
,
4454 (dump_func
)dump_set_timer_reply
,
4455 (dump_func
)dump_cancel_timer_reply
,
4456 (dump_func
)dump_get_timer_info_reply
,
4457 (dump_func
)dump_get_thread_context_reply
,
4458 (dump_func
)dump_set_thread_context_reply
,
4459 (dump_func
)dump_get_selector_entry_reply
,
4460 (dump_func
)dump_add_atom_reply
,
4462 (dump_func
)dump_find_atom_reply
,
4463 (dump_func
)dump_get_atom_information_reply
,
4466 (dump_func
)dump_init_atom_table_reply
,
4467 (dump_func
)dump_get_msg_queue_reply
,
4469 (dump_func
)dump_set_queue_mask_reply
,
4470 (dump_func
)dump_get_queue_status_reply
,
4471 (dump_func
)dump_get_process_idle_event_reply
,
4474 (dump_func
)dump_send_hardware_message_reply
,
4475 (dump_func
)dump_get_message_reply
,
4478 (dump_func
)dump_get_message_reply_reply
,
4479 (dump_func
)dump_set_win_timer_reply
,
4481 (dump_func
)dump_is_window_hung_reply
,
4482 (dump_func
)dump_get_serial_info_reply
,
4486 (dump_func
)dump_ioctl_reply
,
4487 (dump_func
)dump_get_ioctl_result_reply
,
4488 (dump_func
)dump_create_named_pipe_reply
,
4489 (dump_func
)dump_get_named_pipe_info_reply
,
4490 (dump_func
)dump_create_window_reply
,
4492 (dump_func
)dump_get_desktop_window_reply
,
4493 (dump_func
)dump_set_window_owner_reply
,
4494 (dump_func
)dump_get_window_info_reply
,
4495 (dump_func
)dump_set_window_info_reply
,
4496 (dump_func
)dump_set_parent_reply
,
4497 (dump_func
)dump_get_window_parents_reply
,
4498 (dump_func
)dump_get_window_children_reply
,
4499 (dump_func
)dump_get_window_children_from_point_reply
,
4500 (dump_func
)dump_get_window_tree_reply
,
4501 (dump_func
)dump_set_window_pos_reply
,
4502 (dump_func
)dump_get_window_rectangles_reply
,
4503 (dump_func
)dump_get_window_text_reply
,
4505 (dump_func
)dump_get_windows_offset_reply
,
4506 (dump_func
)dump_get_visible_region_reply
,
4507 (dump_func
)dump_get_surface_region_reply
,
4508 (dump_func
)dump_get_window_region_reply
,
4510 (dump_func
)dump_get_update_region_reply
,
4514 (dump_func
)dump_remove_window_property_reply
,
4515 (dump_func
)dump_get_window_property_reply
,
4516 (dump_func
)dump_get_window_properties_reply
,
4517 (dump_func
)dump_create_winstation_reply
,
4518 (dump_func
)dump_open_winstation_reply
,
4520 (dump_func
)dump_get_process_winstation_reply
,
4522 (dump_func
)dump_enum_winstation_reply
,
4523 (dump_func
)dump_create_desktop_reply
,
4524 (dump_func
)dump_open_desktop_reply
,
4525 (dump_func
)dump_open_input_desktop_reply
,
4527 (dump_func
)dump_get_thread_desktop_reply
,
4529 (dump_func
)dump_enum_desktop_reply
,
4530 (dump_func
)dump_set_user_object_info_reply
,
4531 (dump_func
)dump_register_hotkey_reply
,
4532 (dump_func
)dump_unregister_hotkey_reply
,
4534 (dump_func
)dump_get_thread_input_reply
,
4535 (dump_func
)dump_get_last_input_time_reply
,
4536 (dump_func
)dump_get_key_state_reply
,
4538 (dump_func
)dump_set_foreground_window_reply
,
4539 (dump_func
)dump_set_focus_window_reply
,
4540 (dump_func
)dump_set_active_window_reply
,
4541 (dump_func
)dump_set_capture_window_reply
,
4542 (dump_func
)dump_set_caret_window_reply
,
4543 (dump_func
)dump_set_caret_info_reply
,
4544 (dump_func
)dump_set_hook_reply
,
4545 (dump_func
)dump_remove_hook_reply
,
4546 (dump_func
)dump_start_hook_chain_reply
,
4548 (dump_func
)dump_get_hook_info_reply
,
4549 (dump_func
)dump_create_class_reply
,
4550 (dump_func
)dump_destroy_class_reply
,
4551 (dump_func
)dump_set_class_info_reply
,
4552 (dump_func
)dump_set_clipboard_info_reply
,
4553 (dump_func
)dump_open_token_reply
,
4554 (dump_func
)dump_set_global_windows_reply
,
4555 (dump_func
)dump_adjust_token_privileges_reply
,
4556 (dump_func
)dump_get_token_privileges_reply
,
4557 (dump_func
)dump_check_token_privileges_reply
,
4558 (dump_func
)dump_duplicate_token_reply
,
4559 (dump_func
)dump_access_check_reply
,
4560 (dump_func
)dump_get_token_sid_reply
,
4561 (dump_func
)dump_get_token_groups_reply
,
4562 (dump_func
)dump_get_token_default_dacl_reply
,
4565 (dump_func
)dump_get_security_object_reply
,
4566 (dump_func
)dump_create_mailslot_reply
,
4567 (dump_func
)dump_set_mailslot_info_reply
,
4568 (dump_func
)dump_create_directory_reply
,
4569 (dump_func
)dump_open_directory_reply
,
4570 (dump_func
)dump_get_directory_entry_reply
,
4571 (dump_func
)dump_create_symlink_reply
,
4572 (dump_func
)dump_open_symlink_reply
,
4573 (dump_func
)dump_query_symlink_reply
,
4574 (dump_func
)dump_get_object_info_reply
,
4576 (dump_func
)dump_get_token_impersonation_level_reply
,
4577 (dump_func
)dump_allocate_locally_unique_id_reply
,
4578 (dump_func
)dump_create_device_manager_reply
,
4579 (dump_func
)dump_create_device_reply
,
4581 (dump_func
)dump_get_next_device_request_reply
,
4582 (dump_func
)dump_make_process_system_reply
,
4583 (dump_func
)dump_get_token_statistics_reply
,
4584 (dump_func
)dump_create_completion_reply
,
4585 (dump_func
)dump_open_completion_reply
,
4587 (dump_func
)dump_remove_completion_reply
,
4588 (dump_func
)dump_query_completion_reply
,
4591 (dump_func
)dump_get_window_layered_info_reply
,
4593 (dump_func
)dump_alloc_user_handle_reply
,
4595 (dump_func
)dump_set_cursor_reply
,
4597 (dump_func
)dump_get_suspend_context_reply
,
4601 static const char * const req_names
[REQ_NB_REQUESTS
] = {
4603 "get_new_process_info",
4606 "init_process_done",
4608 "terminate_process",
4631 "create_keyed_event",
4637 "release_semaphore",
4641 "alloc_file_handle",
4642 "get_handle_unix_name",
4649 "accept_into_socket",
4653 "enable_socket_event",
4654 "set_socket_deferred",
4657 "get_console_renderer_events",
4659 "get_console_wait_event",
4662 "set_console_input_info",
4663 "get_console_input_info",
4664 "append_console_input_history",
4665 "get_console_input_history",
4666 "create_console_output",
4667 "set_console_output_info",
4668 "get_console_output_info",
4669 "write_console_input",
4670 "read_console_input",
4671 "write_console_output",
4672 "fill_console_output",
4673 "read_console_output",
4674 "move_console_output",
4675 "send_console_signal",
4676 "read_directory_changes",
4681 "get_mapping_committed_range",
4682 "add_mapping_committed_range",
4687 "queue_exception_event",
4688 "get_exception_status",
4689 "output_debug_string",
4690 "continue_debug_event",
4693 "set_debugger_kill_on_exit",
4694 "read_process_memory",
4695 "write_process_memory",
4708 "set_registry_notification",
4714 "get_thread_context",
4715 "set_thread_context",
4716 "get_selector_entry",
4720 "get_atom_information",
4721 "set_atom_information",
4728 "get_process_idle_event",
4730 "post_quit_message",
4731 "send_hardware_message",
4734 "accept_hardware_message",
4735 "get_message_reply",
4745 "create_named_pipe",
4746 "get_named_pipe_info",
4749 "get_desktop_window",
4754 "get_window_parents",
4755 "get_window_children",
4756 "get_window_children_from_point",
4759 "get_window_rectangles",
4762 "get_windows_offset",
4763 "get_visible_region",
4764 "get_surface_region",
4765 "get_window_region",
4766 "set_window_region",
4767 "get_update_region",
4768 "update_window_zorder",
4770 "set_window_property",
4771 "remove_window_property",
4772 "get_window_property",
4773 "get_window_properties",
4774 "create_winstation",
4777 "get_process_winstation",
4778 "set_process_winstation",
4782 "open_input_desktop",
4784 "get_thread_desktop",
4785 "set_thread_desktop",
4787 "set_user_object_info",
4789 "unregister_hotkey",
4790 "attach_thread_input",
4792 "get_last_input_time",
4795 "set_foreground_window",
4797 "set_active_window",
4798 "set_capture_window",
4804 "finish_hook_chain",
4809 "set_clipboard_info",
4811 "set_global_windows",
4812 "adjust_token_privileges",
4813 "get_token_privileges",
4814 "check_token_privileges",
4819 "get_token_default_dacl",
4820 "set_token_default_dacl",
4821 "set_security_object",
4822 "get_security_object",
4824 "set_mailslot_info",
4827 "get_directory_entry",
4833 "get_token_impersonation_level",
4834 "allocate_locally_unique_id",
4835 "create_device_manager",
4838 "get_next_device_request",
4839 "make_process_system",
4840 "get_token_statistics",
4841 "create_completion",
4844 "remove_completion",
4846 "set_completion_info",
4847 "add_fd_completion",
4848 "get_window_layered_info",
4849 "set_window_layered_info",
4850 "alloc_user_handle",
4853 "update_rawinput_devices",
4854 "get_suspend_context",
4855 "set_suspend_context",
4864 { "ABANDONED_WAIT_0", STATUS_ABANDONED_WAIT_0
},
4865 { "ACCESS_DENIED", STATUS_ACCESS_DENIED
},
4866 { "ACCESS_VIOLATION", STATUS_ACCESS_VIOLATION
},
4867 { "ADDRESS_ALREADY_ASSOCIATED", STATUS_ADDRESS_ALREADY_ASSOCIATED
},
4868 { "ALERTED", STATUS_ALERTED
},
4869 { "ALIAS_EXISTS", STATUS_ALIAS_EXISTS
},
4870 { "BAD_DEVICE_TYPE", STATUS_BAD_DEVICE_TYPE
},
4871 { "BAD_IMPERSONATION_LEVEL", STATUS_BAD_IMPERSONATION_LEVEL
},
4872 { "BREAKPOINT", STATUS_BREAKPOINT
},
4873 { "BUFFER_OVERFLOW", STATUS_BUFFER_OVERFLOW
},
4874 { "BUFFER_TOO_SMALL", STATUS_BUFFER_TOO_SMALL
},
4875 { "CANCELLED", STATUS_CANCELLED
},
4876 { "CANNOT_DELETE", STATUS_CANNOT_DELETE
},
4877 { "CANT_OPEN_ANONYMOUS", STATUS_CANT_OPEN_ANONYMOUS
},
4878 { "CANT_WAIT", STATUS_CANT_WAIT
},
4879 { "CHILD_MUST_BE_VOLATILE", STATUS_CHILD_MUST_BE_VOLATILE
},
4880 { "CONNECTION_ABORTED", STATUS_CONNECTION_ABORTED
},
4881 { "CONNECTION_DISCONNECTED", STATUS_CONNECTION_DISCONNECTED
},
4882 { "CONNECTION_REFUSED", STATUS_CONNECTION_REFUSED
},
4883 { "CONNECTION_RESET", STATUS_CONNECTION_RESET
},
4884 { "DEBUGGER_INACTIVE", STATUS_DEBUGGER_INACTIVE
},
4885 { "DEVICE_BUSY", STATUS_DEVICE_BUSY
},
4886 { "DIRECTORY_NOT_EMPTY", STATUS_DIRECTORY_NOT_EMPTY
},
4887 { "DISK_FULL", STATUS_DISK_FULL
},
4888 { "DLL_NOT_FOUND", STATUS_DLL_NOT_FOUND
},
4889 { "ERROR_CLASS_ALREADY_EXISTS", 0xc0010000 | ERROR_CLASS_ALREADY_EXISTS
},
4890 { "ERROR_CLASS_DOES_NOT_EXIST", 0xc0010000 | ERROR_CLASS_DOES_NOT_EXIST
},
4891 { "ERROR_CLASS_HAS_WINDOWS", 0xc0010000 | ERROR_CLASS_HAS_WINDOWS
},
4892 { "ERROR_CLIPBOARD_NOT_OPEN", 0xc0010000 | ERROR_CLIPBOARD_NOT_OPEN
},
4893 { "ERROR_HOTKEY_ALREADY_REGISTERED", 0xc0010000 | ERROR_HOTKEY_ALREADY_REGISTERED
},
4894 { "ERROR_HOTKEY_NOT_REGISTERED", 0xc0010000 | ERROR_HOTKEY_NOT_REGISTERED
},
4895 { "ERROR_INVALID_CURSOR_HANDLE", 0xc0010000 | ERROR_INVALID_CURSOR_HANDLE
},
4896 { "ERROR_INVALID_INDEX", 0xc0010000 | ERROR_INVALID_INDEX
},
4897 { "ERROR_INVALID_WINDOW_HANDLE", 0xc0010000 | ERROR_INVALID_WINDOW_HANDLE
},
4898 { "ERROR_WINDOW_OF_OTHER_THREAD", 0xc0010000 | ERROR_WINDOW_OF_OTHER_THREAD
},
4899 { "FILE_DELETED", STATUS_FILE_DELETED
},
4900 { "FILE_IS_A_DIRECTORY", STATUS_FILE_IS_A_DIRECTORY
},
4901 { "FILE_LOCK_CONFLICT", STATUS_FILE_LOCK_CONFLICT
},
4902 { "GENERIC_NOT_MAPPED", STATUS_GENERIC_NOT_MAPPED
},
4903 { "HANDLES_CLOSED", STATUS_HANDLES_CLOSED
},
4904 { "HANDLE_NOT_CLOSABLE", STATUS_HANDLE_NOT_CLOSABLE
},
4905 { "HOST_UNREACHABLE", STATUS_HOST_UNREACHABLE
},
4906 { "ILLEGAL_FUNCTION", STATUS_ILLEGAL_FUNCTION
},
4907 { "INSTANCE_NOT_AVAILABLE", STATUS_INSTANCE_NOT_AVAILABLE
},
4908 { "INSUFFICIENT_RESOURCES", STATUS_INSUFFICIENT_RESOURCES
},
4909 { "INVALID_CID", STATUS_INVALID_CID
},
4910 { "INVALID_DEVICE_REQUEST", STATUS_INVALID_DEVICE_REQUEST
},
4911 { "INVALID_FILE_FOR_SECTION", STATUS_INVALID_FILE_FOR_SECTION
},
4912 { "INVALID_HANDLE", STATUS_INVALID_HANDLE
},
4913 { "INVALID_IMAGE_FORMAT", STATUS_INVALID_IMAGE_FORMAT
},
4914 { "INVALID_IMAGE_NE_FORMAT", STATUS_INVALID_IMAGE_NE_FORMAT
},
4915 { "INVALID_IMAGE_NOT_MZ", STATUS_INVALID_IMAGE_NOT_MZ
},
4916 { "INVALID_IMAGE_PROTECT", STATUS_INVALID_IMAGE_PROTECT
},
4917 { "INVALID_IMAGE_WIN_64", STATUS_INVALID_IMAGE_WIN_64
},
4918 { "INVALID_PARAMETER", STATUS_INVALID_PARAMETER
},
4919 { "INVALID_SECURITY_DESCR", STATUS_INVALID_SECURITY_DESCR
},
4920 { "IO_TIMEOUT", STATUS_IO_TIMEOUT
},
4921 { "KEY_DELETED", STATUS_KEY_DELETED
},
4922 { "MAPPED_FILE_SIZE_ZERO", STATUS_MAPPED_FILE_SIZE_ZERO
},
4923 { "MORE_PROCESSING_REQUIRED", STATUS_MORE_PROCESSING_REQUIRED
},
4924 { "MUTANT_NOT_OWNED", STATUS_MUTANT_NOT_OWNED
},
4925 { "NAME_TOO_LONG", STATUS_NAME_TOO_LONG
},
4926 { "NETWORK_BUSY", STATUS_NETWORK_BUSY
},
4927 { "NETWORK_UNREACHABLE", STATUS_NETWORK_UNREACHABLE
},
4928 { "NOTIFY_ENUM_DIR", STATUS_NOTIFY_ENUM_DIR
},
4929 { "NOT_ALL_ASSIGNED", STATUS_NOT_ALL_ASSIGNED
},
4930 { "NOT_A_DIRECTORY", STATUS_NOT_A_DIRECTORY
},
4931 { "NOT_FOUND", STATUS_NOT_FOUND
},
4932 { "NOT_IMPLEMENTED", STATUS_NOT_IMPLEMENTED
},
4933 { "NOT_REGISTRY_FILE", STATUS_NOT_REGISTRY_FILE
},
4934 { "NOT_SUPPORTED", STATUS_NOT_SUPPORTED
},
4935 { "NO_DATA_DETECTED", STATUS_NO_DATA_DETECTED
},
4936 { "NO_IMPERSONATION_TOKEN", STATUS_NO_IMPERSONATION_TOKEN
},
4937 { "NO_MEMORY", STATUS_NO_MEMORY
},
4938 { "NO_MORE_ENTRIES", STATUS_NO_MORE_ENTRIES
},
4939 { "NO_MORE_FILES", STATUS_NO_MORE_FILES
},
4940 { "NO_SUCH_DEVICE", STATUS_NO_SUCH_DEVICE
},
4941 { "NO_SUCH_FILE", STATUS_NO_SUCH_FILE
},
4942 { "NO_TOKEN", STATUS_NO_TOKEN
},
4943 { "OBJECT_NAME_COLLISION", STATUS_OBJECT_NAME_COLLISION
},
4944 { "OBJECT_NAME_EXISTS", STATUS_OBJECT_NAME_EXISTS
},
4945 { "OBJECT_NAME_INVALID", STATUS_OBJECT_NAME_INVALID
},
4946 { "OBJECT_NAME_NOT_FOUND", STATUS_OBJECT_NAME_NOT_FOUND
},
4947 { "OBJECT_PATH_INVALID", STATUS_OBJECT_PATH_INVALID
},
4948 { "OBJECT_PATH_NOT_FOUND", STATUS_OBJECT_PATH_NOT_FOUND
},
4949 { "OBJECT_PATH_SYNTAX_BAD", STATUS_OBJECT_PATH_SYNTAX_BAD
},
4950 { "OBJECT_TYPE_MISMATCH", STATUS_OBJECT_TYPE_MISMATCH
},
4951 { "PENDING", STATUS_PENDING
},
4952 { "PIPE_BUSY", STATUS_PIPE_BUSY
},
4953 { "PIPE_CONNECTED", STATUS_PIPE_CONNECTED
},
4954 { "PIPE_DISCONNECTED", STATUS_PIPE_DISCONNECTED
},
4955 { "PIPE_LISTENING", STATUS_PIPE_LISTENING
},
4956 { "PIPE_NOT_AVAILABLE", STATUS_PIPE_NOT_AVAILABLE
},
4957 { "PRIVILEGE_NOT_HELD", STATUS_PRIVILEGE_NOT_HELD
},
4958 { "PROCESS_IS_TERMINATING", STATUS_PROCESS_IS_TERMINATING
},
4959 { "SECTION_TOO_BIG", STATUS_SECTION_TOO_BIG
},
4960 { "SEMAPHORE_LIMIT_EXCEEDED", STATUS_SEMAPHORE_LIMIT_EXCEEDED
},
4961 { "SHARING_VIOLATION", STATUS_SHARING_VIOLATION
},
4962 { "SHUTDOWN_IN_PROGRESS", STATUS_SHUTDOWN_IN_PROGRESS
},
4963 { "SUSPEND_COUNT_EXCEEDED", STATUS_SUSPEND_COUNT_EXCEEDED
},
4964 { "THREAD_IS_TERMINATING", STATUS_THREAD_IS_TERMINATING
},
4965 { "TIMEOUT", STATUS_TIMEOUT
},
4966 { "TOO_MANY_OPENED_FILES", STATUS_TOO_MANY_OPENED_FILES
},
4967 { "UNSUCCESSFUL", STATUS_UNSUCCESSFUL
},
4968 { "USER_APC", STATUS_USER_APC
},
4969 { "USER_MAPPED_FILE", STATUS_USER_MAPPED_FILE
},
4970 { "VOLUME_DISMOUNTED", STATUS_VOLUME_DISMOUNTED
},
4971 { "WAS_LOCKED", STATUS_WAS_LOCKED
},
4975 /* ### make_requests end ### */
4976 /* Everything above this line is generated automatically by tools/make_requests */
4978 static const char *get_status_name( unsigned int status
)
4981 static char buffer
[10];
4985 for (i
= 0; status_names
[i
].name
; i
++)
4986 if (status_names
[i
].value
== status
) return status_names
[i
].name
;
4988 sprintf( buffer
, "%x", status
);
4992 void trace_request(void)
4994 enum request req
= current
->req
.request_header
.req
;
4995 if (req
< REQ_NB_REQUESTS
)
4997 fprintf( stderr
, "%04x: %s(", current
->id
, req_names
[req
] );
4998 if (req_dumpers
[req
])
5000 cur_data
= get_req_data();
5001 cur_size
= get_req_data_size();
5002 req_dumpers
[req
]( ¤t
->req
);
5004 fprintf( stderr
, " )\n" );
5006 else fprintf( stderr
, "%04x: %d(?)\n", current
->id
, req
);
5009 void trace_reply( enum request req
, const union generic_reply
*reply
)
5011 if (req
< REQ_NB_REQUESTS
)
5013 fprintf( stderr
, "%04x: %s() = %s",
5014 current
->id
, req_names
[req
], get_status_name(current
->error
) );
5015 if (reply_dumpers
[req
])
5017 fprintf( stderr
, " {" );
5018 cur_data
= current
->reply_data
;
5019 cur_size
= reply
->reply_header
.reply_size
;
5020 reply_dumpers
[req
]( reply
);
5021 fprintf( stderr
, " }" );
5023 fputc( '\n', stderr
);
5025 else fprintf( stderr
, "%04x: %d() = %s\n",
5026 current
->id
, req
, get_status_name(current
->error
) );