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_timeout( const char *prefix, const timeout_t *time )
71 fprintf( stderr, "%s%s", prefix, get_timeout_str(*time) );
74 static void dump_uint64( const char *prefix, const unsigned __int64 *val )
76 if ((unsigned int)*val != *val)
77 fprintf( stderr, "%s%x%08x", prefix, (unsigned int)(*val >> 32), (unsigned int)*val );
79 fprintf( stderr, "%s%08x", prefix, (unsigned int)*val );
82 static void dump_rectangle( const char *prefix, const rectangle_t *rect )
84 fprintf( stderr, "%s{%d,%d;%d,%d}", prefix,
85 rect->left, rect->top, rect->right, rect->bottom );
88 static void dump_char_info( const char *prefix, const char_info_t *info )
90 fprintf( stderr, "%s{'", prefix );
91 dump_strW( &info->ch, 1, stderr, "\'\'" );
92 fprintf( stderr, "',%04x}", info->attr );
95 static void dump_ioctl_code( const char *prefix, const ioctl_code_t *code )
99 #define CASE(c) case c: fprintf( stderr, "%s%s", prefix, #c ); break
100 CASE(FSCTL_DISMOUNT_VOLUME);
101 CASE(FSCTL_PIPE_DISCONNECT);
102 CASE(FSCTL_PIPE_LISTEN);
103 CASE(FSCTL_PIPE_WAIT);
104 default: fprintf( stderr, "%s%08x", prefix, *code ); break;
109 static void dump_cpu_type( const char *prefix, const cpu_type_t *code )
113 #define CASE(c) case CPU_##c: fprintf( stderr, "%s%s", prefix, #c ); break
119 default: fprintf( stderr, "%s%u", prefix, *code ); break;
124 static void dump_apc_call( const char *prefix, const apc_call_t *call )
126 fprintf( stderr, "%s{", prefix );
130 fprintf( stderr, "APC_NONE" );
133 dump_uint64( "APC_USER,func=", &call->user.func );
134 dump_uint64( ",args={", &call->user.args[0] );
135 dump_uint64( ",", &call->user.args[1] );
136 dump_uint64( ",", &call->user.args[2] );
137 fputc( '}', stderr );
140 dump_timeout( "APC_TIMER,time=", &call->timer.time );
141 dump_uint64( ",arg=", &call->timer.arg );
144 dump_uint64( "APC_ASYNC_IO,func=", &call->async_io.func );
145 dump_uint64( ",user=", &call->async_io.user );
146 dump_uint64( ",sb=", &call->async_io.sb );
147 fprintf( stderr, ",status=%s", get_status_name(call->async_io.status) );
149 case APC_VIRTUAL_ALLOC:
150 dump_uint64( "APC_VIRTUAL_ALLOC,addr==", &call->virtual_alloc.addr );
151 dump_uint64( ",size=", &call->virtual_alloc.size );
152 fprintf( stderr, ",zero_bits=%u,op_type=%x,prot=%x",
153 call->virtual_alloc.zero_bits, call->virtual_alloc.op_type,
154 call->virtual_alloc.prot );
156 case APC_VIRTUAL_FREE:
157 dump_uint64( "APC_VIRTUAL_FREE,addr=", &call->virtual_free.addr );
158 dump_uint64( ",size=", &call->virtual_free.size );
159 fprintf( stderr, ",op_type=%x", call->virtual_free.op_type );
161 case APC_VIRTUAL_QUERY:
162 dump_uint64( "APC_VIRTUAL_QUERY,addr=", &call->virtual_query.addr );
164 case APC_VIRTUAL_PROTECT:
165 dump_uint64( "APC_VIRTUAL_PROTECT,addr=", &call->virtual_protect.addr );
166 dump_uint64( ",size=", &call->virtual_protect.size );
167 fprintf( stderr, ",prot=%x", call->virtual_protect.prot );
169 case APC_VIRTUAL_FLUSH:
170 dump_uint64( "APC_VIRTUAL_FLUSH,addr=", &call->virtual_flush.addr );
171 dump_uint64( ",size=", &call->virtual_flush.size );
173 case APC_VIRTUAL_LOCK:
174 dump_uint64( "APC_VIRTUAL_LOCK,addr=", &call->virtual_lock.addr );
175 dump_uint64( ",size=", &call->virtual_lock.size );
177 case APC_VIRTUAL_UNLOCK:
178 dump_uint64( "APC_VIRTUAL_UNLOCK,addr=", &call->virtual_unlock.addr );
179 dump_uint64( ",size=", &call->virtual_unlock.size );
182 fprintf( stderr, "APC_MAP_VIEW,handle=%04x", call->map_view.handle );
183 dump_uint64( ",addr=", &call->map_view.addr );
184 dump_uint64( ",size=", &call->map_view.size );
185 dump_uint64( ",offset=", &call->map_view.offset );
186 fprintf( stderr, ",zero_bits=%u,alloc_type=%x,prot=%x",
187 call->map_view.zero_bits, call->map_view.alloc_type, call->map_view.prot );
190 dump_uint64( "APC_UNMAP_VIEW,addr=", &call->unmap_view.addr );
192 case APC_CREATE_THREAD:
193 dump_uint64( "APC_CREATE_THREAD,func=", &call->create_thread.func );
194 dump_uint64( ",arg=", &call->create_thread.arg );
195 dump_uint64( ",reserve=", &call->create_thread.reserve );
196 dump_uint64( ",commit=", &call->create_thread.commit );
197 fprintf( stderr, ",suspend=%u", call->create_thread.suspend );
200 fprintf( stderr, "type=%u", call->type );
203 fputc( '}', stderr );
206 static void dump_apc_result( const char *prefix, const apc_result_t *result )
208 fprintf( stderr, "%s{", prefix );
214 fprintf( stderr, "APC_ASYNC_IO,status=%s,total=%u",
215 get_status_name( result->async_io.status ), result->async_io.total );
216 dump_uint64( ",apc=", &result->async_io.apc );
218 case APC_VIRTUAL_ALLOC:
219 fprintf( stderr, "APC_VIRTUAL_ALLOC,status=%s",
220 get_status_name( result->virtual_alloc.status ));
221 dump_uint64( ",addr=", &result->virtual_alloc.addr );
222 dump_uint64( ",size=", &result->virtual_alloc.size );
224 case APC_VIRTUAL_FREE:
225 fprintf( stderr, "APC_VIRTUAL_FREE,status=%s",
226 get_status_name( result->virtual_free.status ));
227 dump_uint64( ",addr=", &result->virtual_free.addr );
228 dump_uint64( ",size=", &result->virtual_free.size );
230 case APC_VIRTUAL_QUERY:
231 fprintf( stderr, "APC_VIRTUAL_QUERY,status=%s",
232 get_status_name( result->virtual_query.status ));
233 dump_uint64( ",base=", &result->virtual_query.base );
234 dump_uint64( ",alloc_base=", &result->virtual_query.alloc_base );
235 dump_uint64( ",size=", &result->virtual_query.size );
236 fprintf( stderr, ",state=%x,prot=%x,alloc_prot=%x,alloc_type=%x",
237 result->virtual_query.state, result->virtual_query.prot,
238 result->virtual_query.alloc_prot, result->virtual_query.alloc_type );
240 case APC_VIRTUAL_PROTECT:
241 fprintf( stderr, "APC_VIRTUAL_PROTECT,status=%s",
242 get_status_name( result->virtual_protect.status ));
243 dump_uint64( ",addr=", &result->virtual_protect.addr );
244 dump_uint64( ",size=", &result->virtual_protect.size );
245 fprintf( stderr, ",prot=%x", result->virtual_protect.prot );
247 case APC_VIRTUAL_FLUSH:
248 fprintf( stderr, "APC_VIRTUAL_FLUSH,status=%s",
249 get_status_name( result->virtual_flush.status ));
250 dump_uint64( ",addr=", &result->virtual_flush.addr );
251 dump_uint64( ",size=", &result->virtual_flush.size );
253 case APC_VIRTUAL_LOCK:
254 fprintf( stderr, "APC_VIRTUAL_LOCK,status=%s",
255 get_status_name( result->virtual_lock.status ));
256 dump_uint64( ",addr=", &result->virtual_lock.addr );
257 dump_uint64( ",size=", &result->virtual_lock.size );
259 case APC_VIRTUAL_UNLOCK:
260 fprintf( stderr, "APC_VIRTUAL_UNLOCK,status=%s",
261 get_status_name( result->virtual_unlock.status ));
262 dump_uint64( ",addr=", &result->virtual_unlock.addr );
263 dump_uint64( ",size=", &result->virtual_unlock.size );
266 fprintf( stderr, "APC_MAP_VIEW,status=%s",
267 get_status_name( result->map_view.status ));
268 dump_uint64( ",addr=", &result->map_view.addr );
269 dump_uint64( ",size=", &result->map_view.size );
272 fprintf( stderr, "APC_UNMAP_VIEW,status=%s",
273 get_status_name( result->unmap_view.status ) );
275 case APC_CREATE_THREAD:
276 fprintf( stderr, "APC_CREATE_THREAD,status=%s,tid=%04x,handle=%04x",
277 get_status_name( result->create_thread.status ),
278 result->create_thread.tid, result->create_thread.handle );
281 fprintf( stderr, "type=%u", result->type );
284 fputc( '}', stderr );
287 static void dump_async_data( const char *prefix, const async_data_t *data )
289 fprintf( stderr, "%s{handle=%04x,event=%04x", prefix, data->handle, data->event );
290 dump_uint64( ",callback=", &data->callback );
291 dump_uint64( ",iosb=", &data->iosb );
292 dump_uint64( ",arg=", &data->arg );
293 dump_uint64( ",cvalue=", &data->cvalue );
294 fputc( '}', stderr );
297 static void dump_hw_input( const char *prefix, const hw_input_t *input )
302 fprintf( stderr, "%s{type=MOUSE,x=%d,y=%d,data=%08x,flags=%08x,time=%u",
303 prefix, input->mouse.x, input->mouse.y, input->mouse.data, input->mouse.flags,
305 dump_uint64( ",info=", &input->mouse.info );
306 fputc( '}', stderr );
309 fprintf( stderr, "%s{type=KEYBOARD,vkey=%04hx,scan=%04hx,flags=%08x,time=%u",
310 prefix, input->kbd.vkey, input->kbd.scan, input->kbd.flags, input->kbd.time );
311 dump_uint64( ",info=", &input->kbd.info );
312 fputc( '}', stderr );
315 fprintf( stderr, "%s{type=HARDWARE,msg=%04x", prefix, input->hw.msg );
316 dump_uint64( ",lparam=", &input->hw.lparam );
317 fputc( '}', stderr );
320 fprintf( stderr, "%s{type=%04x}", prefix, input->type );
325 static void dump_luid( const char *prefix, const luid_t *luid )
327 fprintf( stderr, "%s%d.%u", prefix, luid->high_part, luid->low_part );
330 static void dump_varargs_ints( const char *prefix, data_size_t size )
332 const int *data = cur_data;
333 data_size_t len = size / sizeof(*data);
335 fprintf( stderr,"%s{", prefix );
338 fprintf( stderr, "%d", *data++ );
339 if (--len) fputc( ',', stderr );
341 fputc( '}', stderr );
345 static void dump_varargs_uints64( const char *prefix, data_size_t size )
347 const unsigned __int64 *data = cur_data;
348 data_size_t len = size / sizeof(*data);
350 fprintf( stderr,"%s{", prefix );
353 dump_uint64( "", data++ );
354 if (--len) fputc( ',', stderr );
356 fputc( '}', stderr );
360 static void dump_varargs_apc_result( const char *prefix, data_size_t size )
362 const apc_result_t *result = cur_data;
364 if (size >= sizeof(*result))
366 dump_apc_result( prefix, result );
367 size = sizeof(*result);
372 static void dump_varargs_handles( const char *prefix, data_size_t size )
374 const obj_handle_t *data = cur_data;
375 data_size_t len = size / sizeof(*data);
377 fprintf( stderr,"%s{", prefix );
380 fprintf( stderr, "%04x", *data++ );
381 if (--len) fputc( ',', stderr );
383 fputc( '}', stderr );
387 static void dump_varargs_user_handles( const char *prefix, data_size_t size )
389 const user_handle_t *data = cur_data;
390 data_size_t len = size / sizeof(*data);
392 fprintf( stderr,"%s{", prefix );
395 fprintf( stderr, "%08x", *data++ );
396 if (--len) fputc( ',', stderr );
398 fputc( '}', stderr );
402 static void dump_varargs_bytes( const char *prefix, data_size_t size )
404 const unsigned char *data = cur_data;
405 data_size_t len = min( 1024, size );
407 fprintf( stderr,"%s{", prefix );
410 fprintf( stderr, "%02x", *data++ );
411 if (--len) fputc( ',', stderr );
413 if (size > 1024) fprintf( stderr, "...(total %u)", size );
414 fputc( '}', stderr );
418 static void dump_varargs_string( const char *prefix, data_size_t size )
420 fprintf( stderr, "%s\"%.*s\"", prefix, (int)size, (const char *)cur_data );
424 static void dump_varargs_unicode_str( const char *prefix, data_size_t size )
426 fprintf( stderr, "%sL\"", prefix );
427 dump_strW( cur_data, size / sizeof(WCHAR), stderr, "\"\"" );
428 fputc( '\"', stderr );
432 static void dump_varargs_context( const char *prefix, data_size_t size )
434 const context_t *context = cur_data;
440 fprintf( stderr, "%s{}", prefix );
443 size = min( size, sizeof(ctx) );
444 memset( &ctx, 0, sizeof(ctx) );
445 memcpy( &ctx, context, size );
447 fprintf( stderr,"%s{", prefix );
448 dump_cpu_type( "cpu=", &ctx.cpu );
452 if (ctx.flags & SERVER_CTX_CONTROL)
453 fprintf( stderr, ",eip=%08x,esp=%08x,ebp=%08x,eflags=%08x,cs=%04x,ss=%04x",
454 ctx.ctl.i386_regs.eip, ctx.ctl.i386_regs.esp, ctx.ctl.i386_regs.ebp,
455 ctx.ctl.i386_regs.eflags, ctx.ctl.i386_regs.cs, ctx.ctl.i386_regs.ss );
456 if (ctx.flags & SERVER_CTX_SEGMENTS)
457 fprintf( stderr, ",ds=%04x,es=%04x,fs=%04x,gs=%04x",
458 ctx.seg.i386_regs.ds, ctx.seg.i386_regs.es,
459 ctx.seg.i386_regs.fs, ctx.seg.i386_regs.gs );
460 if (ctx.flags & SERVER_CTX_INTEGER)
461 fprintf( stderr, ",eax=%08x,ebx=%08x,ecx=%08x,edx=%08x,esi=%08x,edi=%08x",
462 ctx.integer.i386_regs.eax, ctx.integer.i386_regs.ebx, ctx.integer.i386_regs.ecx,
463 ctx.integer.i386_regs.edx, ctx.integer.i386_regs.esi, ctx.integer.i386_regs.edi );
464 if (ctx.flags & SERVER_CTX_DEBUG_REGISTERS)
465 fprintf( stderr, ",dr0=%08x,dr1=%08x,dr2=%08x,dr3=%08x,dr6=%08x,dr7=%08x",
466 ctx.debug.i386_regs.dr0, ctx.debug.i386_regs.dr1, ctx.debug.i386_regs.dr2,
467 ctx.debug.i386_regs.dr3, ctx.debug.i386_regs.dr6, ctx.debug.i386_regs.dr7 );
468 if (ctx.flags & SERVER_CTX_FLOATING_POINT)
470 fprintf( stderr, ",fp.ctrl=%08x,fp.status=%08x,fp.tag=%08x,fp.err_off=%08x,fp.err_sel=%08x",
471 ctx.fp.i386_regs.ctrl, ctx.fp.i386_regs.status, ctx.fp.i386_regs.tag,
472 ctx.fp.i386_regs.err_off, ctx.fp.i386_regs.err_sel );
473 fprintf( stderr, ",fp.data_off=%08x,fp.data_sel=%08x,fp.cr0npx=%08x",
474 ctx.fp.i386_regs.data_off, ctx.fp.i386_regs.data_sel, ctx.fp.i386_regs.cr0npx );
475 for (i = 0; i < 8; i++)
476 fprintf( stderr, ",fp.reg%u=%Lg", i, *(long double *)&ctx.fp.i386_regs.regs[10*i] );
478 if (ctx.flags & SERVER_CTX_EXTENDED_REGISTERS)
480 fprintf( stderr, ",extended=" );
481 dump_uints( (const int *)ctx.ext.i386_regs, sizeof(ctx.ext.i386_regs) / sizeof(int) );
485 if (ctx.flags & SERVER_CTX_CONTROL)
487 dump_uint64( ",rip=", &ctx.ctl.x86_64_regs.rip );
488 dump_uint64( ",rbp=", &ctx.ctl.x86_64_regs.rbp );
489 dump_uint64( ",rsp=", &ctx.ctl.x86_64_regs.rsp );
490 fprintf( stderr, ",cs=%04x,ss=%04x,flags=%08x",
491 ctx.ctl.x86_64_regs.cs, ctx.ctl.x86_64_regs.ss, ctx.ctl.x86_64_regs.flags );
493 if (ctx.flags & SERVER_CTX_INTEGER)
495 dump_uint64( ",rax=", &ctx.integer.x86_64_regs.rax );
496 dump_uint64( ",rbx=", &ctx.integer.x86_64_regs.rbx );
497 dump_uint64( ",rcx=", &ctx.integer.x86_64_regs.rcx );
498 dump_uint64( ",rdx=", &ctx.integer.x86_64_regs.rdx );
499 dump_uint64( ",rsi=", &ctx.integer.x86_64_regs.rsi );
500 dump_uint64( ",rdi=", &ctx.integer.x86_64_regs.rdi );
501 dump_uint64( ",r8=", &ctx.integer.x86_64_regs.r8 );
502 dump_uint64( ",r9=", &ctx.integer.x86_64_regs.r9 );
503 dump_uint64( ",r10=", &ctx.integer.x86_64_regs.r10 );
504 dump_uint64( ",r11=", &ctx.integer.x86_64_regs.r11 );
505 dump_uint64( ",r12=", &ctx.integer.x86_64_regs.r12 );
506 dump_uint64( ",r13=", &ctx.integer.x86_64_regs.r13 );
507 dump_uint64( ",r14=", &ctx.integer.x86_64_regs.r14 );
508 dump_uint64( ",r15=", &ctx.integer.x86_64_regs.r15 );
510 if (ctx.flags & SERVER_CTX_SEGMENTS)
511 fprintf( stderr, ",ds=%04x,es=%04x,fs=%04x,gs=%04x",
512 ctx.seg.x86_64_regs.ds, ctx.seg.x86_64_regs.es,
513 ctx.seg.x86_64_regs.fs, ctx.seg.x86_64_regs.gs );
514 if (ctx.flags & SERVER_CTX_DEBUG_REGISTERS)
516 dump_uint64( ",dr0=", &ctx.debug.x86_64_regs.dr0 );
517 dump_uint64( ",dr1=", &ctx.debug.x86_64_regs.dr1 );
518 dump_uint64( ",dr2=", &ctx.debug.x86_64_regs.dr2 );
519 dump_uint64( ",dr3=", &ctx.debug.x86_64_regs.dr3 );
520 dump_uint64( ",dr6=", &ctx.debug.x86_64_regs.dr6 );
521 dump_uint64( ",dr7=", &ctx.debug.x86_64_regs.dr7 );
523 if (ctx.flags & SERVER_CTX_FLOATING_POINT)
525 for (i = 0; i < 32; i++)
526 fprintf( stderr, ",fp%u=%08x%08x%08x%08x", i,
527 (unsigned int)(ctx.fp.x86_64_regs.fpregs[i].high >> 32),
528 (unsigned int)ctx.fp.x86_64_regs.fpregs[i].high,
529 (unsigned int)(ctx.fp.x86_64_regs.fpregs[i].low >> 32),
530 (unsigned int)ctx.fp.x86_64_regs.fpregs[i].low );
534 if (ctx.flags & SERVER_CTX_CONTROL)
536 dump_uint64( ",fir=", &ctx.ctl.alpha_regs.fir );
537 fprintf( stderr, ",psr=%08x", ctx.ctl.alpha_regs.psr );
539 if (ctx.flags & SERVER_CTX_INTEGER)
541 dump_uint64( ",v0=", &ctx.integer.alpha_regs.v0 );
542 dump_uint64( ",t0=", &ctx.integer.alpha_regs.t0 );
543 dump_uint64( ",t1=", &ctx.integer.alpha_regs.t1 );
544 dump_uint64( ",t2=", &ctx.integer.alpha_regs.t2 );
545 dump_uint64( ",t3=", &ctx.integer.alpha_regs.t3 );
546 dump_uint64( ",t4=", &ctx.integer.alpha_regs.t4 );
547 dump_uint64( ",t5=", &ctx.integer.alpha_regs.t5 );
548 dump_uint64( ",t6=", &ctx.integer.alpha_regs.t6 );
549 dump_uint64( ",t7=", &ctx.integer.alpha_regs.t7 );
550 dump_uint64( ",t8=", &ctx.integer.alpha_regs.t8 );
551 dump_uint64( ",t9=", &ctx.integer.alpha_regs.t9 );
552 dump_uint64( ",t10=", &ctx.integer.alpha_regs.t10 );
553 dump_uint64( ",t11=", &ctx.integer.alpha_regs.t11 );
554 dump_uint64( ",t12=", &ctx.integer.alpha_regs.t12 );
555 dump_uint64( ",s0=", &ctx.integer.alpha_regs.s0 );
556 dump_uint64( ",s1=", &ctx.integer.alpha_regs.s1 );
557 dump_uint64( ",s2=", &ctx.integer.alpha_regs.s2 );
558 dump_uint64( ",s3=", &ctx.integer.alpha_regs.s3 );
559 dump_uint64( ",s4=", &ctx.integer.alpha_regs.s4 );
560 dump_uint64( ",s5=", &ctx.integer.alpha_regs.s5 );
561 dump_uint64( ",s6=", &ctx.integer.alpha_regs.s6 );
562 dump_uint64( ",a0=", &ctx.integer.alpha_regs.a0 );
563 dump_uint64( ",a1=", &ctx.integer.alpha_regs.a1 );
564 dump_uint64( ",a2=", &ctx.integer.alpha_regs.a2 );
565 dump_uint64( ",a3=", &ctx.integer.alpha_regs.a3 );
566 dump_uint64( ",a4=", &ctx.integer.alpha_regs.a4 );
567 dump_uint64( ",a5=", &ctx.integer.alpha_regs.a5 );
568 dump_uint64( ",at=", &ctx.integer.alpha_regs.at );
570 if (ctx.flags & SERVER_CTX_FLOATING_POINT)
572 for (i = 0; i < 32; i++)
574 fprintf( stderr, ",f%u", i );
575 dump_uint64( "=", &ctx.fp.alpha_regs.f[i] );
577 dump_uint64( ",fpcr=", &ctx.fp.alpha_regs.fpcr );
578 dump_uint64( ",softfpcr=", &ctx.fp.alpha_regs.softfpcr );
582 if (ctx.flags & SERVER_CTX_CONTROL)
583 fprintf( stderr, ",iar=%08x,msr=%08x,ctr=%08x,lr=%08x,dar=%08x,dsisr=%08x,trap=%08x",
584 ctx.ctl.powerpc_regs.iar, ctx.ctl.powerpc_regs.msr, ctx.ctl.powerpc_regs.ctr,
585 ctx.ctl.powerpc_regs.lr, ctx.ctl.powerpc_regs.dar, ctx.ctl.powerpc_regs.dsisr,
586 ctx.ctl.powerpc_regs.trap );
587 if (ctx.flags & SERVER_CTX_INTEGER)
589 for (i = 0; i < 32; i++) fprintf( stderr, ",gpr%u=%08x", i, ctx.integer.powerpc_regs.gpr[i] );
590 fprintf( stderr, ",cr=%08x,xer=%08x",
591 ctx.integer.powerpc_regs.cr, ctx.integer.powerpc_regs.xer );
593 if (ctx.flags & SERVER_CTX_DEBUG_REGISTERS)
594 for (i = 0; i < 8; i++) fprintf( stderr, ",dr%u=%08x", i, ctx.debug.powerpc_regs.dr[i] );
595 if (ctx.flags & SERVER_CTX_FLOATING_POINT)
597 for (i = 0; i < 32; i++) fprintf( stderr, ",fpr%u=%g", i, ctx.fp.powerpc_regs.fpr[i] );
598 fprintf( stderr, ",fpscr=%g", ctx.fp.powerpc_regs.fpscr );
602 if (ctx.flags & SERVER_CTX_CONTROL)
603 fprintf( stderr, ",sp=%08x,lr=%08x,pc=%08x,cpsr=%08x",
604 ctx.ctl.arm_regs.sp, ctx.ctl.arm_regs.lr,
605 ctx.ctl.arm_regs.pc, ctx.ctl.arm_regs.cpsr );
606 if (ctx.flags & SERVER_CTX_INTEGER)
607 for (i = 0; i < 13; i++) fprintf( stderr, ",r%u=%08x", i, ctx.integer.arm_regs.r[i] );
610 if (ctx.flags & SERVER_CTX_CONTROL)
611 fprintf( stderr, ",psr=%08x,pc=%08x,npc=%08x,y=%08x,wim=%08x,tbr=%08x",
612 ctx.ctl.sparc_regs.psr, ctx.ctl.sparc_regs.pc, ctx.ctl.sparc_regs.npc,
613 ctx.ctl.sparc_regs.y, ctx.ctl.sparc_regs.wim, ctx.ctl.sparc_regs.tbr );
614 if (ctx.flags & SERVER_CTX_INTEGER)
616 for (i = 0; i < 8; i++) fprintf( stderr, ",g%u=%08x", i, ctx.integer.sparc_regs.g[i] );
617 for (i = 0; i < 8; i++) fprintf( stderr, ",o%u=%08x", i, ctx.integer.sparc_regs.o[i] );
618 for (i = 0; i < 8; i++) fprintf( stderr, ",l%u=%08x", i, ctx.integer.sparc_regs.l[i] );
619 for (i = 0; i < 8; i++) fprintf( stderr, ",i%u=%08x", i, ctx.integer.sparc_regs.i[i] );
623 fputc( '}', stderr );
627 static void dump_varargs_debug_event( const char *prefix, data_size_t size )
634 fprintf( stderr, "%s{}", prefix );
637 size = min( size, sizeof(event) );
638 memset( &event, 0, sizeof(event) );
639 memcpy( &event, cur_data, size );
643 case EXCEPTION_DEBUG_EVENT:
644 fprintf( stderr, "%s{exception,first=%d,exc_code=%08x,flags=%08x", prefix,
645 event.exception.first, event.exception.exc_code, event.exception.flags );
646 dump_uint64( ",record=", &event.exception.record );
647 dump_uint64( ",address=", &event.exception.address );
648 fprintf( stderr, ",params={" );
649 event.exception.nb_params = min( event.exception.nb_params, EXCEPTION_MAXIMUM_PARAMETERS );
650 for (i = 0; i < event.exception.nb_params; i++)
652 dump_uint64( "", &event.exception.params[i] );
653 if (i < event.exception.nb_params) fputc( ',', stderr );
655 fprintf( stderr, "}}" );
657 case CREATE_THREAD_DEBUG_EVENT:
658 fprintf( stderr, "%s{create_thread,thread=%04x", prefix, event.create_thread.handle );
659 dump_uint64( ",teb=", &event.create_thread.teb );
660 dump_uint64( ",start=", &event.create_thread.start );
661 fputc( '}', stderr );
663 case CREATE_PROCESS_DEBUG_EVENT:
664 fprintf( stderr, "%s{create_process,file=%04x,process=%04x,thread=%04x", prefix,
665 event.create_process.file, event.create_process.process,
666 event.create_process.thread );
667 dump_uint64( ",base=", &event.create_process.base );
668 fprintf( stderr, ",offset=%d,size=%d",
669 event.create_process.dbg_offset, event.create_process.dbg_size );
670 dump_uint64( ",teb=", &event.create_process.teb );
671 dump_uint64( ",start=", &event.create_process.start );
672 dump_uint64( ",name=", &event.create_process.name );
673 fprintf( stderr, ",unicode=%d}", event.create_process.unicode );
675 case EXIT_THREAD_DEBUG_EVENT:
676 fprintf( stderr, "%s{exit_thread,code=%d}", prefix, event.exit.exit_code );
678 case EXIT_PROCESS_DEBUG_EVENT:
679 fprintf( stderr, "%s{exit_process,code=%d}", prefix, event.exit.exit_code );
681 case LOAD_DLL_DEBUG_EVENT:
682 fprintf( stderr, "%s{load_dll,file=%04x", prefix, event.load_dll.handle );
683 dump_uint64( ",base=", &event.load_dll.base );
684 fprintf( stderr, ",offset=%d,size=%d",
685 event.load_dll.dbg_offset, event.load_dll.dbg_size );
686 dump_uint64( ",name=", &event.load_dll.name );
687 fprintf( stderr, ",unicode=%d}", event.load_dll.unicode );
689 case UNLOAD_DLL_DEBUG_EVENT:
690 fprintf( stderr, "%s{unload_dll", prefix );
691 dump_uint64( ",base=", &event.unload_dll.base );
692 fputc( '}', stderr );
694 case OUTPUT_DEBUG_STRING_EVENT:
695 fprintf( stderr, "%s{output_string", prefix );
696 dump_uint64( ",string=", &event.output_string.string );
697 fprintf( stderr, ",len=%u}", event.output_string.length );
700 fprintf( stderr, "%s{rip,err=%d,type=%d}", prefix,
701 event.rip_info.error, event.rip_info.type );
703 case 0: /* zero is the code returned on timeouts */
704 fprintf( stderr, "%s{}", prefix );
707 fprintf( stderr, "%s{code=??? (%d)}", prefix, event.code );
713 /* dump a unicode string contained in a buffer; helper for dump_varargs_startup_info */
714 static data_size_t dump_inline_unicode_string( const char *prefix, data_size_t pos, data_size_t len, data_size_t total_size )
716 fputs( prefix, stderr );
717 if (pos >= total_size) return pos;
718 if (len > total_size - pos) len = total_size - pos;
719 len /= sizeof(WCHAR);
720 dump_strW( (const WCHAR *)cur_data + pos/sizeof(WCHAR), len, stderr, "\"\"" );
721 return pos + len * sizeof(WCHAR);
724 static void dump_varargs_startup_info( const char *prefix, data_size_t size )
727 data_size_t pos = sizeof(info);
729 memset( &info, 0, sizeof(info) );
730 memcpy( &info, cur_data, min( size, sizeof(info) ));
733 "%s{debug_flags=%x,console_flags=%x,console=%04x,hstdin=%04x,hstdout=%04x,hstderr=%04x,"
734 "x=%u,y=%u,xsize=%u,ysize=%u,xchars=%u,ychars=%u,attribute=%02x,flags=%x,show=%u",
735 prefix, info.debug_flags, info.console_flags, info.console,
736 info.hstdin, info.hstdout, info.hstderr, info.x, info.y, info.xsize, info.ysize,
737 info.xchars, info.ychars, info.attribute, info.flags, info.show );
738 pos = dump_inline_unicode_string( ",curdir=L\"", pos, info.curdir_len, size );
739 pos = dump_inline_unicode_string( "\",dllpath=L\"", pos, info.dllpath_len, size );
740 pos = dump_inline_unicode_string( "\",imagepath=L\"", pos, info.imagepath_len, size );
741 pos = dump_inline_unicode_string( "\",cmdline=L\"", pos, info.cmdline_len, size );
742 pos = dump_inline_unicode_string( "\",title=L\"", pos, info.title_len, size );
743 pos = dump_inline_unicode_string( "\",desktop=L\"", pos, info.desktop_len, size );
744 pos = dump_inline_unicode_string( "\",shellinfo=L\"", pos, info.shellinfo_len, size );
745 pos = dump_inline_unicode_string( "\",runtime=L\"", pos, info.runtime_len, size );
746 fprintf( stderr, "\"}" );
750 static void dump_varargs_input_records( const char *prefix, data_size_t size )
752 const INPUT_RECORD *rec = cur_data;
753 data_size_t len = size / sizeof(*rec);
755 fprintf( stderr,"%s{", prefix );
758 fprintf( stderr, "{%04x,...}", rec->EventType );
760 if (--len) fputc( ',', stderr );
762 fputc( '}', stderr );
766 static void dump_varargs_rectangles( const char *prefix, data_size_t size )
768 const rectangle_t *rect = cur_data;
769 data_size_t len = size / sizeof(*rect);
771 fprintf( stderr,"%s{", prefix );
774 dump_rectangle( "", rect++ );
775 if (--len) fputc( ',', stderr );
777 fputc( '}', stderr );
781 static void dump_varargs_message_data( const char *prefix, data_size_t size )
783 /* FIXME: dump the structured data */
784 dump_varargs_bytes( prefix, size );
787 static void dump_varargs_properties( const char *prefix, data_size_t size )
789 const property_data_t *prop = cur_data;
790 data_size_t len = size / sizeof(*prop);
792 fprintf( stderr,"%s{", prefix );
795 fprintf( stderr, "{atom=%04x,str=%d", prop->atom, prop->string );
796 dump_uint64( ",data=", &prop->data );
797 fputc( '}', stderr );
799 if (--len) fputc( ',', stderr );
801 fputc( '}', stderr );
805 static void dump_varargs_LUID_AND_ATTRIBUTES( const char *prefix, data_size_t size )
807 const LUID_AND_ATTRIBUTES *lat = cur_data;
808 data_size_t len = size / sizeof(*lat);
810 fprintf( stderr,"%s{", prefix );
813 fprintf( stderr, "{luid=%08x%08x,attr=%x}",
814 lat->Luid.HighPart, lat->Luid.LowPart, lat->Attributes );
816 if (--len) fputc( ',', stderr );
818 fputc( '}', stderr );
822 static void dump_inline_sid( const char *prefix, const SID *sid, data_size_t size )
827 if ((FIELD_OFFSET(SID, SubAuthority[0]) > size) ||
828 (FIELD_OFFSET(SID, SubAuthority[sid->SubAuthorityCount]) > size))
830 fprintf( stderr, "<invalid sid>" );
834 fprintf( stderr,"%s{", prefix );
835 fprintf( stderr, "S-%u-%u", sid->Revision, MAKELONG(
836 MAKEWORD( sid->IdentifierAuthority.Value[5],
837 sid->IdentifierAuthority.Value[4] ),
838 MAKEWORD( sid->IdentifierAuthority.Value[3],
839 sid->IdentifierAuthority.Value[2] ) ) );
840 for (i = 0; i < sid->SubAuthorityCount; i++)
841 fprintf( stderr, "-%u", sid->SubAuthority[i] );
842 fputc( '}', stderr );
845 static void dump_varargs_SID( const char *prefix, data_size_t size )
847 const SID *sid = cur_data;
848 dump_inline_sid( prefix, sid, size );
852 static void dump_inline_acl( const char *prefix, const ACL *acl, data_size_t size )
854 const ACE_HEADER *ace;
857 fprintf( stderr,"%s{", prefix );
860 if (size < sizeof(ACL))
862 fprintf( stderr, "<invalid acl>}" );
866 ace = (const ACE_HEADER *)(acl + 1);
867 for (i = 0; i < acl->AceCount; i++)
869 const SID *sid = NULL;
870 data_size_t sid_size = 0;
872 if (size < sizeof(ACE_HEADER) || size < ace->AceSize) break;
873 size -= ace->AceSize;
874 if (i != 0) fputc( ',', stderr );
875 fprintf( stderr, "{AceType=" );
876 switch (ace->AceType)
878 case ACCESS_DENIED_ACE_TYPE:
879 sid = (const SID *)&((const ACCESS_DENIED_ACE *)ace)->SidStart;
880 sid_size = ace->AceSize - FIELD_OFFSET(ACCESS_DENIED_ACE, SidStart);
881 fprintf( stderr, "ACCESS_DENIED_ACE_TYPE,Mask=%x",
882 ((const ACCESS_DENIED_ACE *)ace)->Mask );
884 case ACCESS_ALLOWED_ACE_TYPE:
885 sid = (const SID *)&((const ACCESS_ALLOWED_ACE *)ace)->SidStart;
886 sid_size = ace->AceSize - FIELD_OFFSET(ACCESS_ALLOWED_ACE, SidStart);
887 fprintf( stderr, "ACCESS_ALLOWED_ACE_TYPE,Mask=%x",
888 ((const ACCESS_ALLOWED_ACE *)ace)->Mask );
890 case SYSTEM_AUDIT_ACE_TYPE:
891 sid = (const SID *)&((const SYSTEM_AUDIT_ACE *)ace)->SidStart;
892 sid_size = ace->AceSize - FIELD_OFFSET(SYSTEM_AUDIT_ACE, SidStart);
893 fprintf( stderr, "SYSTEM_AUDIT_ACE_TYPE,Mask=%x",
894 ((const SYSTEM_AUDIT_ACE *)ace)->Mask );
896 case SYSTEM_ALARM_ACE_TYPE:
897 sid = (const SID *)&((const SYSTEM_ALARM_ACE *)ace)->SidStart;
898 sid_size = ace->AceSize - FIELD_OFFSET(SYSTEM_ALARM_ACE, SidStart);
899 fprintf( stderr, "SYSTEM_ALARM_ACE_TYPE,Mask=%x",
900 ((const SYSTEM_ALARM_ACE *)ace)->Mask );
903 fprintf( stderr, "unknown<%d>", ace->AceType );
906 fprintf( stderr, ",AceFlags=%x", ace->AceFlags );
908 dump_inline_sid( ",Sid=", sid, sid_size );
909 ace = (const ACE_HEADER *)((const char *)ace + ace->AceSize);
910 fputc( '}', stderr );
913 fputc( '}', stderr );
916 static void dump_varargs_ACL( const char *prefix, data_size_t size )
918 const ACL *acl = cur_data;
919 dump_inline_acl( prefix, acl, size );
923 static void dump_inline_security_descriptor( const char *prefix, const struct security_descriptor *sd, data_size_t size )
925 fprintf( stderr,"%s{", prefix );
926 if (size >= sizeof(struct security_descriptor))
928 size_t offset = sizeof(struct security_descriptor);
929 fprintf( stderr, "control=%08x", sd->control );
930 if ((sd->owner_len > FIELD_OFFSET(SID, SubAuthority[255])) || (offset + sd->owner_len > size))
933 dump_inline_sid( ",owner=", (const SID *)((const char *)sd + offset), sd->owner_len );
935 fprintf( stderr, ",owner=<not present>" );
936 offset += sd->owner_len;
937 if ((sd->group_len > FIELD_OFFSET(SID, SubAuthority[255])) || (offset + sd->group_len > size))
940 dump_inline_sid( ",group=", (const SID *)((const char *)sd + offset), sd->group_len );
942 fprintf( stderr, ",group=<not present>" );
943 offset += sd->group_len;
944 if ((sd->sacl_len >= MAX_ACL_LEN) || (offset + sd->sacl_len > size))
946 dump_inline_acl( ",sacl=", (const ACL *)((const char *)sd + offset), sd->sacl_len );
947 offset += sd->sacl_len;
948 if ((sd->dacl_len >= MAX_ACL_LEN) || (offset + sd->dacl_len > size))
950 dump_inline_acl( ",dacl=", (const ACL *)((const char *)sd + offset), sd->dacl_len );
951 offset += sd->dacl_len;
953 fputc( '}', stderr );
956 static void dump_varargs_security_descriptor( const char *prefix, data_size_t size )
958 const struct security_descriptor *sd = cur_data;
959 dump_inline_security_descriptor( prefix, sd, size );
963 static void dump_varargs_token_groups( const char *prefix, data_size_t size )
965 const struct token_groups *tg = cur_data;
967 fprintf( stderr,"%s{", prefix );
968 if (size >= sizeof(struct token_groups))
970 size_t offset = sizeof(*tg);
971 fprintf( stderr, "count=%08x,", tg->count );
972 if (tg->count * sizeof(unsigned int) <= size)
975 const unsigned int *attr = (const unsigned int *)(tg + 1);
977 offset += tg->count * sizeof(unsigned int);
979 fputc( '[', stderr );
980 for (i = 0; i < tg->count; i++)
982 const SID *sid = (const SID *)((const char *)cur_data + offset);
984 fputc( ',', stderr );
985 fputc( '{', stderr );
986 fprintf( stderr, "attributes=%08x", attr[i] );
987 dump_inline_sid( ",sid=", sid, size - offset );
988 if ((offset + FIELD_OFFSET(SID, SubAuthority[0]) > size) ||
989 (offset + FIELD_OFFSET(SID, SubAuthority[sid->SubAuthorityCount]) > size))
991 offset += FIELD_OFFSET(SID, SubAuthority[sid->SubAuthorityCount]);
992 fputc( '}', stderr );
994 fputc( ']', stderr );
997 fputc( '}', stderr );
1000 static void dump_varargs_object_attributes( const char *prefix, data_size_t size )
1002 const struct object_attributes *objattr = cur_data;
1004 fprintf( stderr,"%s{", prefix );
1005 if (size >= sizeof(struct object_attributes))
1008 fprintf( stderr, "rootdir=%04x", objattr->rootdir );
1009 if (objattr->sd_len > size - sizeof(*objattr) ||
1010 objattr->name_len > size - sizeof(*objattr) - objattr->sd_len)
1012 dump_inline_security_descriptor( ",sd=", (const struct security_descriptor *)(objattr + 1), objattr->sd_len );
1013 str = (const WCHAR *)objattr + (sizeof(*objattr) + objattr->sd_len) / sizeof(WCHAR);
1014 fprintf( stderr, ",name=L\"" );
1015 dump_strW( str, objattr->name_len / sizeof(WCHAR), stderr, "\"\"" );
1016 fputc( '\"', stderr );
1017 remove_data( ((sizeof(*objattr) + objattr->sd_len) / sizeof(WCHAR)) * sizeof(WCHAR) +
1018 objattr->name_len );
1020 fputc( '}', stderr );
1023 static void dump_varargs_filesystem_event( const char *prefix, data_size_t size )
1025 static const char * const actions[] = {
1037 fprintf( stderr,"%s{", prefix );
1040 const struct filesystem_event *event = cur_data;
1041 data_size_t len = (offsetof( struct filesystem_event, name[event->len] ) + sizeof(int)-1)
1042 / sizeof(int) * sizeof(int);
1043 if (size < len) break;
1044 if (event->action < sizeof(actions)/sizeof(actions[0]) && actions[event->action])
1045 fprintf( stderr, "{action=%s", actions[event->action] );
1047 fprintf( stderr, "{action=%u", event->action );
1048 fprintf( stderr, ",name=\"%.*s\"}", event->len, event->name );
1051 if (size)fputc( ',', stderr );
1053 fputc( '}', stderr );
1056 typedef void (*dump_func)( const void *req );
1058 /* Everything below this line is generated automatically by tools/make_requests */
1059 /* ### make_requests begin ### */
1061 static void dump_new_process_request( const struct new_process_request *req )
1063 fprintf( stderr, " inherit_all=%d", req->inherit_all );
1064 fprintf( stderr, ", create_flags=%08x", req->create_flags );
1065 fprintf( stderr, ", socket_fd=%d", req->socket_fd );
1066 fprintf( stderr, ", exe_file=%04x", req->exe_file );
1067 fprintf( stderr, ", process_access=%08x", req->process_access );
1068 fprintf( stderr, ", process_attr=%08x", req->process_attr );
1069 fprintf( stderr, ", thread_access=%08x", req->thread_access );
1070 fprintf( stderr, ", thread_attr=%08x", req->thread_attr );
1071 fprintf( stderr, ", info_size=%u", req->info_size );
1072 dump_varargs_startup_info( ", info=", min(cur_size,req->info_size) );
1073 dump_varargs_unicode_str( ", env=", cur_size );
1076 static void dump_new_process_reply( const struct new_process_reply *req )
1078 fprintf( stderr, " info=%04x", req->info );
1079 fprintf( stderr, ", pid=%04x", req->pid );
1080 fprintf( stderr, ", phandle=%04x", req->phandle );
1081 fprintf( stderr, ", tid=%04x", req->tid );
1082 fprintf( stderr, ", thandle=%04x", req->thandle );
1085 static void dump_get_new_process_info_request( const struct get_new_process_info_request *req )
1087 fprintf( stderr, " info=%04x", req->info );
1090 static void dump_get_new_process_info_reply( const struct get_new_process_info_reply *req )
1092 fprintf( stderr, " success=%d", req->success );
1093 fprintf( stderr, ", exit_code=%d", req->exit_code );
1096 static void dump_new_thread_request( const struct new_thread_request *req )
1098 fprintf( stderr, " access=%08x", req->access );
1099 fprintf( stderr, ", attributes=%08x", req->attributes );
1100 fprintf( stderr, ", suspend=%d", req->suspend );
1101 fprintf( stderr, ", request_fd=%d", req->request_fd );
1104 static void dump_new_thread_reply( const struct new_thread_reply *req )
1106 fprintf( stderr, " tid=%04x", req->tid );
1107 fprintf( stderr, ", handle=%04x", req->handle );
1110 static void dump_get_startup_info_request( const struct get_startup_info_request *req )
1114 static void dump_get_startup_info_reply( const struct get_startup_info_reply *req )
1116 fprintf( stderr, " exe_file=%04x", req->exe_file );
1117 fprintf( stderr, ", info_size=%u", req->info_size );
1118 dump_varargs_startup_info( ", info=", min(cur_size,req->info_size) );
1119 dump_varargs_unicode_str( ", env=", cur_size );
1122 static void dump_init_process_done_request( const struct init_process_done_request *req )
1124 fprintf( stderr, " gui=%d", req->gui );
1125 dump_uint64( ", module=", &req->module );
1126 dump_uint64( ", ldt_copy=", &req->ldt_copy );
1127 dump_uint64( ", entry=", &req->entry );
1130 static void dump_init_thread_request( const struct init_thread_request *req )
1132 fprintf( stderr, " unix_pid=%d", req->unix_pid );
1133 fprintf( stderr, ", unix_tid=%d", req->unix_tid );
1134 fprintf( stderr, ", debug_level=%d", req->debug_level );
1135 dump_uint64( ", teb=", &req->teb );
1136 dump_uint64( ", entry=", &req->entry );
1137 fprintf( stderr, ", reply_fd=%d", req->reply_fd );
1138 fprintf( stderr, ", wait_fd=%d", req->wait_fd );
1139 dump_cpu_type( ", cpu=", &req->cpu );
1142 static void dump_init_thread_reply( const struct init_thread_reply *req )
1144 fprintf( stderr, " pid=%04x", req->pid );
1145 fprintf( stderr, ", tid=%04x", req->tid );
1146 dump_timeout( ", server_start=", &req->server_start );
1147 fprintf( stderr, ", info_size=%u", req->info_size );
1148 fprintf( stderr, ", version=%d", req->version );
1149 fprintf( stderr, ", all_cpus=%08x", req->all_cpus );
1152 static void dump_terminate_process_request( const struct terminate_process_request *req )
1154 fprintf( stderr, " handle=%04x", req->handle );
1155 fprintf( stderr, ", exit_code=%d", req->exit_code );
1158 static void dump_terminate_process_reply( const struct terminate_process_reply *req )
1160 fprintf( stderr, " self=%d", req->self );
1163 static void dump_terminate_thread_request( const struct terminate_thread_request *req )
1165 fprintf( stderr, " handle=%04x", req->handle );
1166 fprintf( stderr, ", exit_code=%d", req->exit_code );
1169 static void dump_terminate_thread_reply( const struct terminate_thread_reply *req )
1171 fprintf( stderr, " self=%d", req->self );
1172 fprintf( stderr, ", last=%d", req->last );
1175 static void dump_get_process_info_request( const struct get_process_info_request *req )
1177 fprintf( stderr, " handle=%04x", req->handle );
1180 static void dump_get_process_info_reply( const struct get_process_info_reply *req )
1182 fprintf( stderr, " pid=%04x", req->pid );
1183 fprintf( stderr, ", ppid=%04x", req->ppid );
1184 dump_uint64( ", affinity=", &req->affinity );
1185 dump_uint64( ", peb=", &req->peb );
1186 dump_timeout( ", start_time=", &req->start_time );
1187 dump_timeout( ", end_time=", &req->end_time );
1188 fprintf( stderr, ", exit_code=%d", req->exit_code );
1189 fprintf( stderr, ", priority=%d", req->priority );
1190 dump_cpu_type( ", cpu=", &req->cpu );
1191 fprintf( stderr, ", debugger_present=%d", req->debugger_present );
1194 static void dump_set_process_info_request( const struct set_process_info_request *req )
1196 fprintf( stderr, " handle=%04x", req->handle );
1197 fprintf( stderr, ", mask=%d", req->mask );
1198 fprintf( stderr, ", priority=%d", req->priority );
1199 dump_uint64( ", affinity=", &req->affinity );
1202 static void dump_get_thread_info_request( const struct get_thread_info_request *req )
1204 fprintf( stderr, " handle=%04x", req->handle );
1205 fprintf( stderr, ", tid_in=%04x", req->tid_in );
1208 static void dump_get_thread_info_reply( const struct get_thread_info_reply *req )
1210 fprintf( stderr, " pid=%04x", req->pid );
1211 fprintf( stderr, ", tid=%04x", req->tid );
1212 dump_uint64( ", teb=", &req->teb );
1213 dump_uint64( ", affinity=", &req->affinity );
1214 dump_timeout( ", creation_time=", &req->creation_time );
1215 dump_timeout( ", exit_time=", &req->exit_time );
1216 fprintf( stderr, ", exit_code=%d", req->exit_code );
1217 fprintf( stderr, ", priority=%d", req->priority );
1218 fprintf( stderr, ", last=%d", req->last );
1221 static void dump_set_thread_info_request( const struct set_thread_info_request *req )
1223 fprintf( stderr, " handle=%04x", req->handle );
1224 fprintf( stderr, ", mask=%d", req->mask );
1225 fprintf( stderr, ", priority=%d", req->priority );
1226 dump_uint64( ", affinity=", &req->affinity );
1227 fprintf( stderr, ", token=%04x", req->token );
1230 static void dump_get_dll_info_request( const struct get_dll_info_request *req )
1232 fprintf( stderr, " handle=%04x", req->handle );
1233 dump_uint64( ", base_address=", &req->base_address );
1236 static void dump_get_dll_info_reply( const struct get_dll_info_reply *req )
1238 dump_uint64( " entry_point=", &req->entry_point );
1239 fprintf( stderr, ", size=%u", req->size );
1240 fprintf( stderr, ", filename_len=%u", req->filename_len );
1241 dump_varargs_unicode_str( ", filename=", cur_size );
1244 static void dump_suspend_thread_request( const struct suspend_thread_request *req )
1246 fprintf( stderr, " handle=%04x", req->handle );
1249 static void dump_suspend_thread_reply( const struct suspend_thread_reply *req )
1251 fprintf( stderr, " count=%d", req->count );
1254 static void dump_resume_thread_request( const struct resume_thread_request *req )
1256 fprintf( stderr, " handle=%04x", req->handle );
1259 static void dump_resume_thread_reply( const struct resume_thread_reply *req )
1261 fprintf( stderr, " count=%d", req->count );
1264 static void dump_load_dll_request( const struct load_dll_request *req )
1266 fprintf( stderr, " handle=%04x", req->handle );
1267 dump_uint64( ", base=", &req->base );
1268 dump_uint64( ", name=", &req->name );
1269 fprintf( stderr, ", size=%u", req->size );
1270 fprintf( stderr, ", dbg_offset=%d", req->dbg_offset );
1271 fprintf( stderr, ", dbg_size=%d", req->dbg_size );
1272 dump_varargs_unicode_str( ", filename=", cur_size );
1275 static void dump_unload_dll_request( const struct unload_dll_request *req )
1277 dump_uint64( " base=", &req->base );
1280 static void dump_queue_apc_request( const struct queue_apc_request *req )
1282 fprintf( stderr, " handle=%04x", req->handle );
1283 dump_apc_call( ", call=", &req->call );
1286 static void dump_queue_apc_reply( const struct queue_apc_reply *req )
1288 fprintf( stderr, " handle=%04x", req->handle );
1289 fprintf( stderr, ", self=%d", req->self );
1292 static void dump_get_apc_result_request( const struct get_apc_result_request *req )
1294 fprintf( stderr, " handle=%04x", req->handle );
1297 static void dump_get_apc_result_reply( const struct get_apc_result_reply *req )
1299 dump_apc_result( " result=", &req->result );
1302 static void dump_close_handle_request( const struct close_handle_request *req )
1304 fprintf( stderr, " handle=%04x", req->handle );
1307 static void dump_set_handle_info_request( const struct set_handle_info_request *req )
1309 fprintf( stderr, " handle=%04x", req->handle );
1310 fprintf( stderr, ", flags=%d", req->flags );
1311 fprintf( stderr, ", mask=%d", req->mask );
1314 static void dump_set_handle_info_reply( const struct set_handle_info_reply *req )
1316 fprintf( stderr, " old_flags=%d", req->old_flags );
1319 static void dump_dup_handle_request( const struct dup_handle_request *req )
1321 fprintf( stderr, " src_process=%04x", req->src_process );
1322 fprintf( stderr, ", src_handle=%04x", req->src_handle );
1323 fprintf( stderr, ", dst_process=%04x", req->dst_process );
1324 fprintf( stderr, ", access=%08x", req->access );
1325 fprintf( stderr, ", attributes=%08x", req->attributes );
1326 fprintf( stderr, ", options=%08x", req->options );
1329 static void dump_dup_handle_reply( const struct dup_handle_reply *req )
1331 fprintf( stderr, " handle=%04x", req->handle );
1332 fprintf( stderr, ", self=%d", req->self );
1333 fprintf( stderr, ", closed=%d", req->closed );
1336 static void dump_open_process_request( const struct open_process_request *req )
1338 fprintf( stderr, " pid=%04x", req->pid );
1339 fprintf( stderr, ", access=%08x", req->access );
1340 fprintf( stderr, ", attributes=%08x", req->attributes );
1343 static void dump_open_process_reply( const struct open_process_reply *req )
1345 fprintf( stderr, " handle=%04x", req->handle );
1348 static void dump_open_thread_request( const struct open_thread_request *req )
1350 fprintf( stderr, " tid=%04x", req->tid );
1351 fprintf( stderr, ", access=%08x", req->access );
1352 fprintf( stderr, ", attributes=%08x", req->attributes );
1355 static void dump_open_thread_reply( const struct open_thread_reply *req )
1357 fprintf( stderr, " handle=%04x", req->handle );
1360 static void dump_select_request( const struct select_request *req )
1362 fprintf( stderr, " flags=%d", req->flags );
1363 dump_uint64( ", cookie=", &req->cookie );
1364 fprintf( stderr, ", signal=%04x", req->signal );
1365 fprintf( stderr, ", prev_apc=%04x", req->prev_apc );
1366 dump_timeout( ", timeout=", &req->timeout );
1367 dump_varargs_apc_result( ", result=", cur_size );
1368 dump_varargs_handles( ", handles=", cur_size );
1371 static void dump_select_reply( const struct select_reply *req )
1373 dump_timeout( " timeout=", &req->timeout );
1374 dump_apc_call( ", call=", &req->call );
1375 fprintf( stderr, ", apc_handle=%04x", req->apc_handle );
1378 static void dump_create_event_request( const struct create_event_request *req )
1380 fprintf( stderr, " access=%08x", req->access );
1381 fprintf( stderr, ", attributes=%08x", req->attributes );
1382 fprintf( stderr, ", manual_reset=%d", req->manual_reset );
1383 fprintf( stderr, ", initial_state=%d", req->initial_state );
1384 dump_varargs_object_attributes( ", objattr=", cur_size );
1387 static void dump_create_event_reply( const struct create_event_reply *req )
1389 fprintf( stderr, " handle=%04x", req->handle );
1392 static void dump_event_op_request( const struct event_op_request *req )
1394 fprintf( stderr, " handle=%04x", req->handle );
1395 fprintf( stderr, ", op=%d", req->op );
1398 static void dump_open_event_request( const struct open_event_request *req )
1400 fprintf( stderr, " access=%08x", req->access );
1401 fprintf( stderr, ", attributes=%08x", req->attributes );
1402 fprintf( stderr, ", rootdir=%04x", req->rootdir );
1403 dump_varargs_unicode_str( ", name=", cur_size );
1406 static void dump_open_event_reply( const struct open_event_reply *req )
1408 fprintf( stderr, " handle=%04x", req->handle );
1411 static void dump_create_mutex_request( const struct create_mutex_request *req )
1413 fprintf( stderr, " access=%08x", req->access );
1414 fprintf( stderr, ", attributes=%08x", req->attributes );
1415 fprintf( stderr, ", owned=%d", req->owned );
1416 dump_varargs_object_attributes( ", objattr=", cur_size );
1419 static void dump_create_mutex_reply( const struct create_mutex_reply *req )
1421 fprintf( stderr, " handle=%04x", req->handle );
1424 static void dump_release_mutex_request( const struct release_mutex_request *req )
1426 fprintf( stderr, " handle=%04x", req->handle );
1429 static void dump_release_mutex_reply( const struct release_mutex_reply *req )
1431 fprintf( stderr, " prev_count=%08x", req->prev_count );
1434 static void dump_open_mutex_request( const struct open_mutex_request *req )
1436 fprintf( stderr, " access=%08x", req->access );
1437 fprintf( stderr, ", attributes=%08x", req->attributes );
1438 fprintf( stderr, ", rootdir=%04x", req->rootdir );
1439 dump_varargs_unicode_str( ", name=", cur_size );
1442 static void dump_open_mutex_reply( const struct open_mutex_reply *req )
1444 fprintf( stderr, " handle=%04x", req->handle );
1447 static void dump_create_semaphore_request( const struct create_semaphore_request *req )
1449 fprintf( stderr, " access=%08x", req->access );
1450 fprintf( stderr, ", attributes=%08x", req->attributes );
1451 fprintf( stderr, ", initial=%08x", req->initial );
1452 fprintf( stderr, ", max=%08x", req->max );
1453 dump_varargs_object_attributes( ", objattr=", cur_size );
1456 static void dump_create_semaphore_reply( const struct create_semaphore_reply *req )
1458 fprintf( stderr, " handle=%04x", req->handle );
1461 static void dump_release_semaphore_request( const struct release_semaphore_request *req )
1463 fprintf( stderr, " handle=%04x", req->handle );
1464 fprintf( stderr, ", count=%08x", req->count );
1467 static void dump_release_semaphore_reply( const struct release_semaphore_reply *req )
1469 fprintf( stderr, " prev_count=%08x", req->prev_count );
1472 static void dump_open_semaphore_request( const struct open_semaphore_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_semaphore_reply( const struct open_semaphore_reply *req )
1482 fprintf( stderr, " handle=%04x", req->handle );
1485 static void dump_create_file_request( const struct create_file_request *req )
1487 fprintf( stderr, " access=%08x", req->access );
1488 fprintf( stderr, ", attributes=%08x", req->attributes );
1489 fprintf( stderr, ", sharing=%08x", req->sharing );
1490 fprintf( stderr, ", create=%d", req->create );
1491 fprintf( stderr, ", options=%08x", req->options );
1492 fprintf( stderr, ", attrs=%08x", req->attrs );
1493 dump_varargs_object_attributes( ", objattr=", cur_size );
1494 dump_varargs_string( ", filename=", cur_size );
1497 static void dump_create_file_reply( const struct create_file_reply *req )
1499 fprintf( stderr, " handle=%04x", req->handle );
1502 static void dump_open_file_object_request( const struct open_file_object_request *req )
1504 fprintf( stderr, " access=%08x", req->access );
1505 fprintf( stderr, ", attributes=%08x", req->attributes );
1506 fprintf( stderr, ", rootdir=%04x", req->rootdir );
1507 fprintf( stderr, ", sharing=%08x", req->sharing );
1508 fprintf( stderr, ", options=%08x", req->options );
1509 dump_varargs_unicode_str( ", filename=", cur_size );
1512 static void dump_open_file_object_reply( const struct open_file_object_reply *req )
1514 fprintf( stderr, " handle=%04x", req->handle );
1517 static void dump_alloc_file_handle_request( const struct alloc_file_handle_request *req )
1519 fprintf( stderr, " access=%08x", req->access );
1520 fprintf( stderr, ", attributes=%08x", req->attributes );
1521 fprintf( stderr, ", fd=%d", req->fd );
1524 static void dump_alloc_file_handle_reply( const struct alloc_file_handle_reply *req )
1526 fprintf( stderr, " handle=%04x", req->handle );
1529 static void dump_get_handle_unix_name_request( const struct get_handle_unix_name_request *req )
1531 fprintf( stderr, " handle=%04x", req->handle );
1534 static void dump_get_handle_unix_name_reply( const struct get_handle_unix_name_reply *req )
1536 fprintf( stderr, " name_len=%u", req->name_len );
1537 dump_varargs_string( ", name=", cur_size );
1540 static void dump_get_handle_fd_request( const struct get_handle_fd_request *req )
1542 fprintf( stderr, " handle=%04x", req->handle );
1545 static void dump_get_handle_fd_reply( const struct get_handle_fd_reply *req )
1547 fprintf( stderr, " type=%d", req->type );
1548 fprintf( stderr, ", cacheable=%d", req->cacheable );
1549 fprintf( stderr, ", access=%08x", req->access );
1550 fprintf( stderr, ", options=%08x", req->options );
1553 static void dump_flush_file_request( const struct flush_file_request *req )
1555 fprintf( stderr, " handle=%04x", req->handle );
1558 static void dump_flush_file_reply( const struct flush_file_reply *req )
1560 fprintf( stderr, " event=%04x", req->event );
1563 static void dump_lock_file_request( const struct lock_file_request *req )
1565 fprintf( stderr, " handle=%04x", req->handle );
1566 dump_uint64( ", offset=", &req->offset );
1567 dump_uint64( ", count=", &req->count );
1568 fprintf( stderr, ", shared=%d", req->shared );
1569 fprintf( stderr, ", wait=%d", req->wait );
1572 static void dump_lock_file_reply( const struct lock_file_reply *req )
1574 fprintf( stderr, " handle=%04x", req->handle );
1575 fprintf( stderr, ", overlapped=%d", req->overlapped );
1578 static void dump_unlock_file_request( const struct unlock_file_request *req )
1580 fprintf( stderr, " handle=%04x", req->handle );
1581 dump_uint64( ", offset=", &req->offset );
1582 dump_uint64( ", count=", &req->count );
1585 static void dump_create_socket_request( const struct create_socket_request *req )
1587 fprintf( stderr, " access=%08x", req->access );
1588 fprintf( stderr, ", attributes=%08x", req->attributes );
1589 fprintf( stderr, ", family=%d", req->family );
1590 fprintf( stderr, ", type=%d", req->type );
1591 fprintf( stderr, ", protocol=%d", req->protocol );
1592 fprintf( stderr, ", flags=%08x", req->flags );
1595 static void dump_create_socket_reply( const struct create_socket_reply *req )
1597 fprintf( stderr, " handle=%04x", req->handle );
1600 static void dump_accept_socket_request( const struct accept_socket_request *req )
1602 fprintf( stderr, " lhandle=%04x", req->lhandle );
1603 fprintf( stderr, ", access=%08x", req->access );
1604 fprintf( stderr, ", attributes=%08x", req->attributes );
1607 static void dump_accept_socket_reply( const struct accept_socket_reply *req )
1609 fprintf( stderr, " handle=%04x", req->handle );
1612 static void dump_accept_into_socket_request( const struct accept_into_socket_request *req )
1614 fprintf( stderr, " lhandle=%04x", req->lhandle );
1615 fprintf( stderr, ", ahandle=%04x", req->ahandle );
1618 static void dump_set_socket_event_request( const struct set_socket_event_request *req )
1620 fprintf( stderr, " handle=%04x", req->handle );
1621 fprintf( stderr, ", mask=%08x", req->mask );
1622 fprintf( stderr, ", event=%04x", req->event );
1623 fprintf( stderr, ", window=%08x", req->window );
1624 fprintf( stderr, ", msg=%08x", req->msg );
1627 static void dump_get_socket_event_request( const struct get_socket_event_request *req )
1629 fprintf( stderr, " handle=%04x", req->handle );
1630 fprintf( stderr, ", service=%d", req->service );
1631 fprintf( stderr, ", c_event=%04x", req->c_event );
1634 static void dump_get_socket_event_reply( const struct get_socket_event_reply *req )
1636 fprintf( stderr, " mask=%08x", req->mask );
1637 fprintf( stderr, ", pmask=%08x", req->pmask );
1638 fprintf( stderr, ", state=%08x", req->state );
1639 dump_varargs_ints( ", errors=", cur_size );
1642 static void dump_enable_socket_event_request( const struct enable_socket_event_request *req )
1644 fprintf( stderr, " handle=%04x", req->handle );
1645 fprintf( stderr, ", mask=%08x", req->mask );
1646 fprintf( stderr, ", sstate=%08x", req->sstate );
1647 fprintf( stderr, ", cstate=%08x", req->cstate );
1650 static void dump_set_socket_deferred_request( const struct set_socket_deferred_request *req )
1652 fprintf( stderr, " handle=%04x", req->handle );
1653 fprintf( stderr, ", deferred=%04x", req->deferred );
1656 static void dump_alloc_console_request( const struct alloc_console_request *req )
1658 fprintf( stderr, " access=%08x", req->access );
1659 fprintf( stderr, ", attributes=%08x", req->attributes );
1660 fprintf( stderr, ", pid=%04x", req->pid );
1661 fprintf( stderr, ", input_fd=%d", req->input_fd );
1664 static void dump_alloc_console_reply( const struct alloc_console_reply *req )
1666 fprintf( stderr, " handle_in=%04x", req->handle_in );
1667 fprintf( stderr, ", event=%04x", req->event );
1670 static void dump_free_console_request( const struct free_console_request *req )
1674 static void dump_get_console_renderer_events_request( const struct get_console_renderer_events_request *req )
1676 fprintf( stderr, " handle=%04x", req->handle );
1679 static void dump_get_console_renderer_events_reply( const struct get_console_renderer_events_reply *req )
1681 dump_varargs_bytes( " data=", cur_size );
1684 static void dump_open_console_request( const struct open_console_request *req )
1686 fprintf( stderr, " from=%04x", req->from );
1687 fprintf( stderr, ", access=%08x", req->access );
1688 fprintf( stderr, ", attributes=%08x", req->attributes );
1689 fprintf( stderr, ", share=%d", req->share );
1692 static void dump_open_console_reply( const struct open_console_reply *req )
1694 fprintf( stderr, " handle=%04x", req->handle );
1697 static void dump_get_console_wait_event_request( const struct get_console_wait_event_request *req )
1701 static void dump_get_console_wait_event_reply( const struct get_console_wait_event_reply *req )
1703 fprintf( stderr, " handle=%04x", req->handle );
1706 static void dump_get_console_mode_request( const struct get_console_mode_request *req )
1708 fprintf( stderr, " handle=%04x", req->handle );
1711 static void dump_get_console_mode_reply( const struct get_console_mode_reply *req )
1713 fprintf( stderr, " mode=%d", req->mode );
1716 static void dump_set_console_mode_request( const struct set_console_mode_request *req )
1718 fprintf( stderr, " handle=%04x", req->handle );
1719 fprintf( stderr, ", mode=%d", req->mode );
1722 static void dump_set_console_input_info_request( const struct set_console_input_info_request *req )
1724 fprintf( stderr, " handle=%04x", req->handle );
1725 fprintf( stderr, ", mask=%d", req->mask );
1726 fprintf( stderr, ", active_sb=%04x", req->active_sb );
1727 fprintf( stderr, ", history_mode=%d", req->history_mode );
1728 fprintf( stderr, ", history_size=%d", req->history_size );
1729 fprintf( stderr, ", edition_mode=%d", req->edition_mode );
1730 fprintf( stderr, ", input_cp=%d", req->input_cp );
1731 fprintf( stderr, ", output_cp=%d", req->output_cp );
1732 fprintf( stderr, ", win=%08x", req->win );
1733 dump_varargs_unicode_str( ", title=", cur_size );
1736 static void dump_get_console_input_info_request( const struct get_console_input_info_request *req )
1738 fprintf( stderr, " handle=%04x", req->handle );
1741 static void dump_get_console_input_info_reply( const struct get_console_input_info_reply *req )
1743 fprintf( stderr, " history_mode=%d", req->history_mode );
1744 fprintf( stderr, ", history_size=%d", req->history_size );
1745 fprintf( stderr, ", history_index=%d", req->history_index );
1746 fprintf( stderr, ", edition_mode=%d", req->edition_mode );
1747 fprintf( stderr, ", input_cp=%d", req->input_cp );
1748 fprintf( stderr, ", output_cp=%d", req->output_cp );
1749 fprintf( stderr, ", win=%08x", req->win );
1750 dump_varargs_unicode_str( ", title=", cur_size );
1753 static void dump_append_console_input_history_request( const struct append_console_input_history_request *req )
1755 fprintf( stderr, " handle=%04x", req->handle );
1756 dump_varargs_unicode_str( ", line=", cur_size );
1759 static void dump_get_console_input_history_request( const struct get_console_input_history_request *req )
1761 fprintf( stderr, " handle=%04x", req->handle );
1762 fprintf( stderr, ", index=%d", req->index );
1765 static void dump_get_console_input_history_reply( const struct get_console_input_history_reply *req )
1767 fprintf( stderr, " total=%d", req->total );
1768 dump_varargs_unicode_str( ", line=", cur_size );
1771 static void dump_create_console_output_request( const struct create_console_output_request *req )
1773 fprintf( stderr, " handle_in=%04x", req->handle_in );
1774 fprintf( stderr, ", access=%08x", req->access );
1775 fprintf( stderr, ", attributes=%08x", req->attributes );
1776 fprintf( stderr, ", share=%08x", req->share );
1777 fprintf( stderr, ", fd=%d", req->fd );
1780 static void dump_create_console_output_reply( const struct create_console_output_reply *req )
1782 fprintf( stderr, " handle_out=%04x", req->handle_out );
1785 static void dump_set_console_output_info_request( const struct set_console_output_info_request *req )
1787 fprintf( stderr, " handle=%04x", req->handle );
1788 fprintf( stderr, ", mask=%d", req->mask );
1789 fprintf( stderr, ", cursor_size=%d", req->cursor_size );
1790 fprintf( stderr, ", cursor_visible=%d", req->cursor_visible );
1791 fprintf( stderr, ", cursor_x=%d", req->cursor_x );
1792 fprintf( stderr, ", cursor_y=%d", req->cursor_y );
1793 fprintf( stderr, ", width=%d", req->width );
1794 fprintf( stderr, ", height=%d", req->height );
1795 fprintf( stderr, ", attr=%d", req->attr );
1796 fprintf( stderr, ", win_left=%d", req->win_left );
1797 fprintf( stderr, ", win_top=%d", req->win_top );
1798 fprintf( stderr, ", win_right=%d", req->win_right );
1799 fprintf( stderr, ", win_bottom=%d", req->win_bottom );
1800 fprintf( stderr, ", max_width=%d", req->max_width );
1801 fprintf( stderr, ", max_height=%d", req->max_height );
1804 static void dump_get_console_output_info_request( const struct get_console_output_info_request *req )
1806 fprintf( stderr, " handle=%04x", req->handle );
1809 static void dump_get_console_output_info_reply( const struct get_console_output_info_reply *req )
1811 fprintf( stderr, " cursor_size=%d", req->cursor_size );
1812 fprintf( stderr, ", cursor_visible=%d", req->cursor_visible );
1813 fprintf( stderr, ", cursor_x=%d", req->cursor_x );
1814 fprintf( stderr, ", cursor_y=%d", req->cursor_y );
1815 fprintf( stderr, ", width=%d", req->width );
1816 fprintf( stderr, ", height=%d", req->height );
1817 fprintf( stderr, ", attr=%d", req->attr );
1818 fprintf( stderr, ", win_left=%d", req->win_left );
1819 fprintf( stderr, ", win_top=%d", req->win_top );
1820 fprintf( stderr, ", win_right=%d", req->win_right );
1821 fprintf( stderr, ", win_bottom=%d", req->win_bottom );
1822 fprintf( stderr, ", max_width=%d", req->max_width );
1823 fprintf( stderr, ", max_height=%d", req->max_height );
1826 static void dump_write_console_input_request( const struct write_console_input_request *req )
1828 fprintf( stderr, " handle=%04x", req->handle );
1829 dump_varargs_input_records( ", rec=", cur_size );
1832 static void dump_write_console_input_reply( const struct write_console_input_reply *req )
1834 fprintf( stderr, " written=%d", req->written );
1837 static void dump_read_console_input_request( const struct read_console_input_request *req )
1839 fprintf( stderr, " handle=%04x", req->handle );
1840 fprintf( stderr, ", flush=%d", req->flush );
1843 static void dump_read_console_input_reply( const struct read_console_input_reply *req )
1845 fprintf( stderr, " read=%d", req->read );
1846 dump_varargs_input_records( ", rec=", cur_size );
1849 static void dump_write_console_output_request( const struct write_console_output_request *req )
1851 fprintf( stderr, " handle=%04x", req->handle );
1852 fprintf( stderr, ", x=%d", req->x );
1853 fprintf( stderr, ", y=%d", req->y );
1854 fprintf( stderr, ", mode=%d", req->mode );
1855 fprintf( stderr, ", wrap=%d", req->wrap );
1856 dump_varargs_bytes( ", data=", cur_size );
1859 static void dump_write_console_output_reply( const struct write_console_output_reply *req )
1861 fprintf( stderr, " written=%d", req->written );
1862 fprintf( stderr, ", width=%d", req->width );
1863 fprintf( stderr, ", height=%d", req->height );
1866 static void dump_fill_console_output_request( const struct fill_console_output_request *req )
1868 fprintf( stderr, " handle=%04x", req->handle );
1869 fprintf( stderr, ", x=%d", req->x );
1870 fprintf( stderr, ", y=%d", req->y );
1871 fprintf( stderr, ", mode=%d", req->mode );
1872 fprintf( stderr, ", count=%d", req->count );
1873 fprintf( stderr, ", wrap=%d", req->wrap );
1874 dump_char_info( ", data=", &req->data );
1877 static void dump_fill_console_output_reply( const struct fill_console_output_reply *req )
1879 fprintf( stderr, " written=%d", req->written );
1882 static void dump_read_console_output_request( const struct read_console_output_request *req )
1884 fprintf( stderr, " handle=%04x", req->handle );
1885 fprintf( stderr, ", x=%d", req->x );
1886 fprintf( stderr, ", y=%d", req->y );
1887 fprintf( stderr, ", mode=%d", req->mode );
1888 fprintf( stderr, ", wrap=%d", req->wrap );
1891 static void dump_read_console_output_reply( const struct read_console_output_reply *req )
1893 fprintf( stderr, " width=%d", req->width );
1894 fprintf( stderr, ", height=%d", req->height );
1895 dump_varargs_bytes( ", data=", cur_size );
1898 static void dump_move_console_output_request( const struct move_console_output_request *req )
1900 fprintf( stderr, " handle=%04x", req->handle );
1901 fprintf( stderr, ", x_src=%d", req->x_src );
1902 fprintf( stderr, ", y_src=%d", req->y_src );
1903 fprintf( stderr, ", x_dst=%d", req->x_dst );
1904 fprintf( stderr, ", y_dst=%d", req->y_dst );
1905 fprintf( stderr, ", w=%d", req->w );
1906 fprintf( stderr, ", h=%d", req->h );
1909 static void dump_send_console_signal_request( const struct send_console_signal_request *req )
1911 fprintf( stderr, " signal=%d", req->signal );
1912 fprintf( stderr, ", group_id=%04x", req->group_id );
1915 static void dump_read_directory_changes_request( const struct read_directory_changes_request *req )
1917 fprintf( stderr, " filter=%08x", req->filter );
1918 fprintf( stderr, ", subtree=%d", req->subtree );
1919 fprintf( stderr, ", want_data=%d", req->want_data );
1920 dump_async_data( ", async=", &req->async );
1923 static void dump_read_change_request( const struct read_change_request *req )
1925 fprintf( stderr, " handle=%04x", req->handle );
1928 static void dump_read_change_reply( const struct read_change_reply *req )
1930 dump_varargs_filesystem_event( " events=", cur_size );
1933 static void dump_create_mapping_request( const struct create_mapping_request *req )
1935 fprintf( stderr, " access=%08x", req->access );
1936 fprintf( stderr, ", attributes=%08x", req->attributes );
1937 fprintf( stderr, ", protect=%08x", req->protect );
1938 dump_uint64( ", size=", &req->size );
1939 fprintf( stderr, ", file_handle=%04x", req->file_handle );
1940 dump_varargs_object_attributes( ", objattr=", cur_size );
1943 static void dump_create_mapping_reply( const struct create_mapping_reply *req )
1945 fprintf( stderr, " handle=%04x", req->handle );
1948 static void dump_open_mapping_request( const struct open_mapping_request *req )
1950 fprintf( stderr, " access=%08x", req->access );
1951 fprintf( stderr, ", attributes=%08x", req->attributes );
1952 fprintf( stderr, ", rootdir=%04x", req->rootdir );
1953 dump_varargs_unicode_str( ", name=", cur_size );
1956 static void dump_open_mapping_reply( const struct open_mapping_reply *req )
1958 fprintf( stderr, " handle=%04x", req->handle );
1961 static void dump_get_mapping_info_request( const struct get_mapping_info_request *req )
1963 fprintf( stderr, " handle=%04x", req->handle );
1964 fprintf( stderr, ", access=%08x", req->access );
1967 static void dump_get_mapping_info_reply( const struct get_mapping_info_reply *req )
1969 dump_uint64( " size=", &req->size );
1970 fprintf( stderr, ", protect=%d", req->protect );
1971 fprintf( stderr, ", header_size=%d", req->header_size );
1972 dump_uint64( ", base=", &req->base );
1973 fprintf( stderr, ", mapping=%04x", req->mapping );
1974 fprintf( stderr, ", shared_file=%04x", req->shared_file );
1977 static void dump_get_mapping_committed_range_request( const struct get_mapping_committed_range_request *req )
1979 fprintf( stderr, " handle=%04x", req->handle );
1980 dump_uint64( ", offset=", &req->offset );
1983 static void dump_get_mapping_committed_range_reply( const struct get_mapping_committed_range_reply *req )
1985 dump_uint64( " size=", &req->size );
1986 fprintf( stderr, ", committed=%d", req->committed );
1989 static void dump_add_mapping_committed_range_request( const struct add_mapping_committed_range_request *req )
1991 fprintf( stderr, " handle=%04x", req->handle );
1992 dump_uint64( ", offset=", &req->offset );
1993 dump_uint64( ", size=", &req->size );
1996 static void dump_create_snapshot_request( const struct create_snapshot_request *req )
1998 fprintf( stderr, " attributes=%08x", req->attributes );
1999 fprintf( stderr, ", flags=%08x", req->flags );
2002 static void dump_create_snapshot_reply( const struct create_snapshot_reply *req )
2004 fprintf( stderr, " handle=%04x", req->handle );
2007 static void dump_next_process_request( const struct next_process_request *req )
2009 fprintf( stderr, " handle=%04x", req->handle );
2010 fprintf( stderr, ", reset=%d", req->reset );
2013 static void dump_next_process_reply( const struct next_process_reply *req )
2015 fprintf( stderr, " count=%d", req->count );
2016 fprintf( stderr, ", pid=%04x", req->pid );
2017 fprintf( stderr, ", ppid=%04x", req->ppid );
2018 fprintf( stderr, ", threads=%d", req->threads );
2019 fprintf( stderr, ", priority=%d", req->priority );
2020 fprintf( stderr, ", handles=%d", req->handles );
2021 dump_varargs_unicode_str( ", filename=", cur_size );
2024 static void dump_next_thread_request( const struct next_thread_request *req )
2026 fprintf( stderr, " handle=%04x", req->handle );
2027 fprintf( stderr, ", reset=%d", req->reset );
2030 static void dump_next_thread_reply( const struct next_thread_reply *req )
2032 fprintf( stderr, " count=%d", req->count );
2033 fprintf( stderr, ", pid=%04x", req->pid );
2034 fprintf( stderr, ", tid=%04x", req->tid );
2035 fprintf( stderr, ", base_pri=%d", req->base_pri );
2036 fprintf( stderr, ", delta_pri=%d", req->delta_pri );
2039 static void dump_wait_debug_event_request( const struct wait_debug_event_request *req )
2041 fprintf( stderr, " get_handle=%d", req->get_handle );
2044 static void dump_wait_debug_event_reply( const struct wait_debug_event_reply *req )
2046 fprintf( stderr, " pid=%04x", req->pid );
2047 fprintf( stderr, ", tid=%04x", req->tid );
2048 fprintf( stderr, ", wait=%04x", req->wait );
2049 dump_varargs_debug_event( ", event=", cur_size );
2052 static void dump_queue_exception_event_request( const struct queue_exception_event_request *req )
2054 fprintf( stderr, " first=%d", req->first );
2055 fprintf( stderr, ", code=%08x", req->code );
2056 fprintf( stderr, ", flags=%08x", req->flags );
2057 dump_uint64( ", record=", &req->record );
2058 dump_uint64( ", address=", &req->address );
2059 fprintf( stderr, ", len=%u", req->len );
2060 dump_varargs_uints64( ", params=", min(cur_size,req->len) );
2061 dump_varargs_context( ", context=", cur_size );
2064 static void dump_queue_exception_event_reply( const struct queue_exception_event_reply *req )
2066 fprintf( stderr, " handle=%04x", req->handle );
2069 static void dump_get_exception_status_request( const struct get_exception_status_request *req )
2071 fprintf( stderr, " handle=%04x", req->handle );
2074 static void dump_get_exception_status_reply( const struct get_exception_status_reply *req )
2076 dump_varargs_context( " context=", cur_size );
2079 static void dump_output_debug_string_request( const struct output_debug_string_request *req )
2081 fprintf( stderr, " length=%u", req->length );
2082 dump_uint64( ", string=", &req->string );
2085 static void dump_continue_debug_event_request( const struct continue_debug_event_request *req )
2087 fprintf( stderr, " pid=%04x", req->pid );
2088 fprintf( stderr, ", tid=%04x", req->tid );
2089 fprintf( stderr, ", status=%d", req->status );
2092 static void dump_debug_process_request( const struct debug_process_request *req )
2094 fprintf( stderr, " pid=%04x", req->pid );
2095 fprintf( stderr, ", attach=%d", req->attach );
2098 static void dump_debug_break_request( const struct debug_break_request *req )
2100 fprintf( stderr, " handle=%04x", req->handle );
2103 static void dump_debug_break_reply( const struct debug_break_reply *req )
2105 fprintf( stderr, " self=%d", req->self );
2108 static void dump_set_debugger_kill_on_exit_request( const struct set_debugger_kill_on_exit_request *req )
2110 fprintf( stderr, " kill_on_exit=%d", req->kill_on_exit );
2113 static void dump_read_process_memory_request( const struct read_process_memory_request *req )
2115 fprintf( stderr, " handle=%04x", req->handle );
2116 dump_uint64( ", addr=", &req->addr );
2119 static void dump_read_process_memory_reply( const struct read_process_memory_reply *req )
2121 dump_varargs_bytes( " data=", cur_size );
2124 static void dump_write_process_memory_request( const struct write_process_memory_request *req )
2126 fprintf( stderr, " handle=%04x", req->handle );
2127 dump_uint64( ", addr=", &req->addr );
2128 dump_varargs_bytes( ", data=", cur_size );
2131 static void dump_create_key_request( const struct create_key_request *req )
2133 fprintf( stderr, " parent=%04x", req->parent );
2134 fprintf( stderr, ", access=%08x", req->access );
2135 fprintf( stderr, ", attributes=%08x", req->attributes );
2136 fprintf( stderr, ", options=%08x", req->options );
2137 fprintf( stderr, ", namelen=%u", req->namelen );
2138 dump_varargs_unicode_str( ", name=", min(cur_size,req->namelen) );
2139 dump_varargs_unicode_str( ", class=", cur_size );
2142 static void dump_create_key_reply( const struct create_key_reply *req )
2144 fprintf( stderr, " hkey=%04x", req->hkey );
2145 fprintf( stderr, ", created=%d", req->created );
2148 static void dump_open_key_request( const struct open_key_request *req )
2150 fprintf( stderr, " parent=%04x", req->parent );
2151 fprintf( stderr, ", access=%08x", req->access );
2152 fprintf( stderr, ", attributes=%08x", req->attributes );
2153 dump_varargs_unicode_str( ", name=", cur_size );
2156 static void dump_open_key_reply( const struct open_key_reply *req )
2158 fprintf( stderr, " hkey=%04x", req->hkey );
2161 static void dump_delete_key_request( const struct delete_key_request *req )
2163 fprintf( stderr, " hkey=%04x", req->hkey );
2166 static void dump_flush_key_request( const struct flush_key_request *req )
2168 fprintf( stderr, " hkey=%04x", req->hkey );
2171 static void dump_enum_key_request( const struct enum_key_request *req )
2173 fprintf( stderr, " hkey=%04x", req->hkey );
2174 fprintf( stderr, ", index=%d", req->index );
2175 fprintf( stderr, ", info_class=%d", req->info_class );
2178 static void dump_enum_key_reply( const struct enum_key_reply *req )
2180 fprintf( stderr, " subkeys=%d", req->subkeys );
2181 fprintf( stderr, ", max_subkey=%d", req->max_subkey );
2182 fprintf( stderr, ", max_class=%d", req->max_class );
2183 fprintf( stderr, ", values=%d", req->values );
2184 fprintf( stderr, ", max_value=%d", req->max_value );
2185 fprintf( stderr, ", max_data=%d", req->max_data );
2186 dump_timeout( ", modif=", &req->modif );
2187 fprintf( stderr, ", total=%u", req->total );
2188 fprintf( stderr, ", namelen=%u", req->namelen );
2189 dump_varargs_unicode_str( ", name=", min(cur_size,req->namelen) );
2190 dump_varargs_unicode_str( ", class=", cur_size );
2193 static void dump_set_key_value_request( const struct set_key_value_request *req )
2195 fprintf( stderr, " hkey=%04x", req->hkey );
2196 fprintf( stderr, ", type=%d", req->type );
2197 fprintf( stderr, ", namelen=%u", req->namelen );
2198 dump_varargs_unicode_str( ", name=", min(cur_size,req->namelen) );
2199 dump_varargs_bytes( ", data=", cur_size );
2202 static void dump_get_key_value_request( const struct get_key_value_request *req )
2204 fprintf( stderr, " hkey=%04x", req->hkey );
2205 dump_varargs_unicode_str( ", name=", cur_size );
2208 static void dump_get_key_value_reply( const struct get_key_value_reply *req )
2210 fprintf( stderr, " type=%d", req->type );
2211 fprintf( stderr, ", total=%u", req->total );
2212 dump_varargs_bytes( ", data=", cur_size );
2215 static void dump_enum_key_value_request( const struct enum_key_value_request *req )
2217 fprintf( stderr, " hkey=%04x", req->hkey );
2218 fprintf( stderr, ", index=%d", req->index );
2219 fprintf( stderr, ", info_class=%d", req->info_class );
2222 static void dump_enum_key_value_reply( const struct enum_key_value_reply *req )
2224 fprintf( stderr, " type=%d", req->type );
2225 fprintf( stderr, ", total=%u", req->total );
2226 fprintf( stderr, ", namelen=%u", req->namelen );
2227 dump_varargs_unicode_str( ", name=", min(cur_size,req->namelen) );
2228 dump_varargs_bytes( ", data=", cur_size );
2231 static void dump_delete_key_value_request( const struct delete_key_value_request *req )
2233 fprintf( stderr, " hkey=%04x", req->hkey );
2234 dump_varargs_unicode_str( ", name=", cur_size );
2237 static void dump_load_registry_request( const struct load_registry_request *req )
2239 fprintf( stderr, " hkey=%04x", req->hkey );
2240 fprintf( stderr, ", file=%04x", req->file );
2241 dump_varargs_unicode_str( ", name=", cur_size );
2244 static void dump_unload_registry_request( const struct unload_registry_request *req )
2246 fprintf( stderr, " hkey=%04x", req->hkey );
2249 static void dump_save_registry_request( const struct save_registry_request *req )
2251 fprintf( stderr, " hkey=%04x", req->hkey );
2252 fprintf( stderr, ", file=%04x", req->file );
2255 static void dump_set_registry_notification_request( const struct set_registry_notification_request *req )
2257 fprintf( stderr, " hkey=%04x", req->hkey );
2258 fprintf( stderr, ", event=%04x", req->event );
2259 fprintf( stderr, ", subtree=%d", req->subtree );
2260 fprintf( stderr, ", filter=%08x", req->filter );
2263 static void dump_create_timer_request( const struct create_timer_request *req )
2265 fprintf( stderr, " access=%08x", req->access );
2266 fprintf( stderr, ", attributes=%08x", req->attributes );
2267 fprintf( stderr, ", rootdir=%04x", req->rootdir );
2268 fprintf( stderr, ", manual=%d", req->manual );
2269 dump_varargs_unicode_str( ", name=", cur_size );
2272 static void dump_create_timer_reply( const struct create_timer_reply *req )
2274 fprintf( stderr, " handle=%04x", req->handle );
2277 static void dump_open_timer_request( const struct open_timer_request *req )
2279 fprintf( stderr, " access=%08x", req->access );
2280 fprintf( stderr, ", attributes=%08x", req->attributes );
2281 fprintf( stderr, ", rootdir=%04x", req->rootdir );
2282 dump_varargs_unicode_str( ", name=", cur_size );
2285 static void dump_open_timer_reply( const struct open_timer_reply *req )
2287 fprintf( stderr, " handle=%04x", req->handle );
2290 static void dump_set_timer_request( const struct set_timer_request *req )
2292 fprintf( stderr, " handle=%04x", req->handle );
2293 dump_timeout( ", expire=", &req->expire );
2294 dump_uint64( ", callback=", &req->callback );
2295 dump_uint64( ", arg=", &req->arg );
2296 fprintf( stderr, ", period=%d", req->period );
2299 static void dump_set_timer_reply( const struct set_timer_reply *req )
2301 fprintf( stderr, " signaled=%d", req->signaled );
2304 static void dump_cancel_timer_request( const struct cancel_timer_request *req )
2306 fprintf( stderr, " handle=%04x", req->handle );
2309 static void dump_cancel_timer_reply( const struct cancel_timer_reply *req )
2311 fprintf( stderr, " signaled=%d", req->signaled );
2314 static void dump_get_timer_info_request( const struct get_timer_info_request *req )
2316 fprintf( stderr, " handle=%04x", req->handle );
2319 static void dump_get_timer_info_reply( const struct get_timer_info_reply *req )
2321 dump_timeout( " when=", &req->when );
2322 fprintf( stderr, ", signaled=%d", req->signaled );
2325 static void dump_get_thread_context_request( const struct get_thread_context_request *req )
2327 fprintf( stderr, " handle=%04x", req->handle );
2328 fprintf( stderr, ", flags=%08x", req->flags );
2329 fprintf( stderr, ", suspend=%d", req->suspend );
2332 static void dump_get_thread_context_reply( const struct get_thread_context_reply *req )
2334 fprintf( stderr, " self=%d", req->self );
2335 dump_varargs_context( ", context=", cur_size );
2338 static void dump_set_thread_context_request( const struct set_thread_context_request *req )
2340 fprintf( stderr, " handle=%04x", req->handle );
2341 fprintf( stderr, ", suspend=%d", req->suspend );
2342 dump_varargs_context( ", context=", cur_size );
2345 static void dump_set_thread_context_reply( const struct set_thread_context_reply *req )
2347 fprintf( stderr, " self=%d", req->self );
2350 static void dump_get_selector_entry_request( const struct get_selector_entry_request *req )
2352 fprintf( stderr, " handle=%04x", req->handle );
2353 fprintf( stderr, ", entry=%d", req->entry );
2356 static void dump_get_selector_entry_reply( const struct get_selector_entry_reply *req )
2358 fprintf( stderr, " base=%08x", req->base );
2359 fprintf( stderr, ", limit=%08x", req->limit );
2360 fprintf( stderr, ", flags=%02x", req->flags );
2363 static void dump_add_atom_request( const struct add_atom_request *req )
2365 fprintf( stderr, " table=%04x", req->table );
2366 dump_varargs_unicode_str( ", name=", cur_size );
2369 static void dump_add_atom_reply( const struct add_atom_reply *req )
2371 fprintf( stderr, " atom=%04x", req->atom );
2374 static void dump_delete_atom_request( const struct delete_atom_request *req )
2376 fprintf( stderr, " table=%04x", req->table );
2377 fprintf( stderr, ", atom=%04x", req->atom );
2380 static void dump_find_atom_request( const struct find_atom_request *req )
2382 fprintf( stderr, " table=%04x", req->table );
2383 dump_varargs_unicode_str( ", name=", cur_size );
2386 static void dump_find_atom_reply( const struct find_atom_reply *req )
2388 fprintf( stderr, " atom=%04x", req->atom );
2391 static void dump_get_atom_information_request( const struct get_atom_information_request *req )
2393 fprintf( stderr, " table=%04x", req->table );
2394 fprintf( stderr, ", atom=%04x", req->atom );
2397 static void dump_get_atom_information_reply( const struct get_atom_information_reply *req )
2399 fprintf( stderr, " count=%d", req->count );
2400 fprintf( stderr, ", pinned=%d", req->pinned );
2401 fprintf( stderr, ", total=%u", req->total );
2402 dump_varargs_unicode_str( ", name=", cur_size );
2405 static void dump_set_atom_information_request( const struct set_atom_information_request *req )
2407 fprintf( stderr, " table=%04x", req->table );
2408 fprintf( stderr, ", atom=%04x", req->atom );
2409 fprintf( stderr, ", pinned=%d", req->pinned );
2412 static void dump_empty_atom_table_request( const struct empty_atom_table_request *req )
2414 fprintf( stderr, " table=%04x", req->table );
2415 fprintf( stderr, ", if_pinned=%d", req->if_pinned );
2418 static void dump_init_atom_table_request( const struct init_atom_table_request *req )
2420 fprintf( stderr, " entries=%d", req->entries );
2423 static void dump_init_atom_table_reply( const struct init_atom_table_reply *req )
2425 fprintf( stderr, " table=%04x", req->table );
2428 static void dump_get_msg_queue_request( const struct get_msg_queue_request *req )
2432 static void dump_get_msg_queue_reply( const struct get_msg_queue_reply *req )
2434 fprintf( stderr, " handle=%04x", req->handle );
2437 static void dump_set_queue_fd_request( const struct set_queue_fd_request *req )
2439 fprintf( stderr, " handle=%04x", req->handle );
2442 static void dump_set_queue_mask_request( const struct set_queue_mask_request *req )
2444 fprintf( stderr, " wake_mask=%08x", req->wake_mask );
2445 fprintf( stderr, ", changed_mask=%08x", req->changed_mask );
2446 fprintf( stderr, ", skip_wait=%d", req->skip_wait );
2449 static void dump_set_queue_mask_reply( const struct set_queue_mask_reply *req )
2451 fprintf( stderr, " wake_bits=%08x", req->wake_bits );
2452 fprintf( stderr, ", changed_bits=%08x", req->changed_bits );
2455 static void dump_get_queue_status_request( const struct get_queue_status_request *req )
2457 fprintf( stderr, " clear=%d", req->clear );
2460 static void dump_get_queue_status_reply( const struct get_queue_status_reply *req )
2462 fprintf( stderr, " wake_bits=%08x", req->wake_bits );
2463 fprintf( stderr, ", changed_bits=%08x", req->changed_bits );
2466 static void dump_get_process_idle_event_request( const struct get_process_idle_event_request *req )
2468 fprintf( stderr, " handle=%04x", req->handle );
2471 static void dump_get_process_idle_event_reply( const struct get_process_idle_event_reply *req )
2473 fprintf( stderr, " event=%04x", req->event );
2476 static void dump_send_message_request( const struct send_message_request *req )
2478 fprintf( stderr, " id=%04x", req->id );
2479 fprintf( stderr, ", type=%d", req->type );
2480 fprintf( stderr, ", flags=%d", req->flags );
2481 fprintf( stderr, ", win=%08x", req->win );
2482 fprintf( stderr, ", msg=%08x", req->msg );
2483 dump_uint64( ", wparam=", &req->wparam );
2484 dump_uint64( ", lparam=", &req->lparam );
2485 dump_timeout( ", timeout=", &req->timeout );
2486 dump_varargs_message_data( ", data=", cur_size );
2489 static void dump_post_quit_message_request( const struct post_quit_message_request *req )
2491 fprintf( stderr, " exit_code=%d", req->exit_code );
2494 static void dump_send_hardware_message_request( const struct send_hardware_message_request *req )
2496 fprintf( stderr, " win=%08x", req->win );
2497 dump_hw_input( ", input=", &req->input );
2498 fprintf( stderr, ", flags=%08x", req->flags );
2501 static void dump_send_hardware_message_reply( const struct send_hardware_message_reply *req )
2503 fprintf( stderr, " wait=%d", req->wait );
2506 static void dump_get_message_request( const struct get_message_request *req )
2508 fprintf( stderr, " flags=%08x", req->flags );
2509 fprintf( stderr, ", get_win=%08x", req->get_win );
2510 fprintf( stderr, ", get_first=%08x", req->get_first );
2511 fprintf( stderr, ", get_last=%08x", req->get_last );
2512 fprintf( stderr, ", hw_id=%08x", req->hw_id );
2513 fprintf( stderr, ", wake_mask=%08x", req->wake_mask );
2514 fprintf( stderr, ", changed_mask=%08x", req->changed_mask );
2517 static void dump_get_message_reply( const struct get_message_reply *req )
2519 fprintf( stderr, " win=%08x", req->win );
2520 fprintf( stderr, ", msg=%08x", req->msg );
2521 dump_uint64( ", wparam=", &req->wparam );
2522 dump_uint64( ", lparam=", &req->lparam );
2523 fprintf( stderr, ", type=%d", req->type );
2524 fprintf( stderr, ", time=%08x", req->time );
2525 fprintf( stderr, ", active_hooks=%08x", req->active_hooks );
2526 fprintf( stderr, ", total=%u", req->total );
2527 dump_varargs_message_data( ", data=", cur_size );
2530 static void dump_reply_message_request( const struct reply_message_request *req )
2532 fprintf( stderr, " remove=%d", req->remove );
2533 dump_uint64( ", result=", &req->result );
2534 dump_varargs_bytes( ", data=", cur_size );
2537 static void dump_accept_hardware_message_request( const struct accept_hardware_message_request *req )
2539 fprintf( stderr, " hw_id=%08x", req->hw_id );
2540 fprintf( stderr, ", remove=%d", req->remove );
2541 fprintf( stderr, ", new_win=%08x", req->new_win );
2544 static void dump_get_message_reply_request( const struct get_message_reply_request *req )
2546 fprintf( stderr, " cancel=%d", req->cancel );
2549 static void dump_get_message_reply_reply( const struct get_message_reply_reply *req )
2551 dump_uint64( " result=", &req->result );
2552 dump_varargs_bytes( ", data=", cur_size );
2555 static void dump_set_win_timer_request( const struct set_win_timer_request *req )
2557 fprintf( stderr, " win=%08x", req->win );
2558 fprintf( stderr, ", msg=%08x", req->msg );
2559 fprintf( stderr, ", rate=%08x", req->rate );
2560 dump_uint64( ", id=", &req->id );
2561 dump_uint64( ", lparam=", &req->lparam );
2564 static void dump_set_win_timer_reply( const struct set_win_timer_reply *req )
2566 dump_uint64( " id=", &req->id );
2569 static void dump_kill_win_timer_request( const struct kill_win_timer_request *req )
2571 fprintf( stderr, " win=%08x", req->win );
2572 dump_uint64( ", id=", &req->id );
2573 fprintf( stderr, ", msg=%08x", req->msg );
2576 static void dump_is_window_hung_request( const struct is_window_hung_request *req )
2578 fprintf( stderr, " win=%08x", req->win );
2581 static void dump_is_window_hung_reply( const struct is_window_hung_reply *req )
2583 fprintf( stderr, " is_hung=%d", req->is_hung );
2586 static void dump_get_serial_info_request( const struct get_serial_info_request *req )
2588 fprintf( stderr, " handle=%04x", req->handle );
2591 static void dump_get_serial_info_reply( const struct get_serial_info_reply *req )
2593 fprintf( stderr, " readinterval=%08x", req->readinterval );
2594 fprintf( stderr, ", readconst=%08x", req->readconst );
2595 fprintf( stderr, ", readmult=%08x", req->readmult );
2596 fprintf( stderr, ", writeconst=%08x", req->writeconst );
2597 fprintf( stderr, ", writemult=%08x", req->writemult );
2598 fprintf( stderr, ", eventmask=%08x", req->eventmask );
2601 static void dump_set_serial_info_request( const struct set_serial_info_request *req )
2603 fprintf( stderr, " handle=%04x", req->handle );
2604 fprintf( stderr, ", flags=%d", req->flags );
2605 fprintf( stderr, ", readinterval=%08x", req->readinterval );
2606 fprintf( stderr, ", readconst=%08x", req->readconst );
2607 fprintf( stderr, ", readmult=%08x", req->readmult );
2608 fprintf( stderr, ", writeconst=%08x", req->writeconst );
2609 fprintf( stderr, ", writemult=%08x", req->writemult );
2610 fprintf( stderr, ", eventmask=%08x", req->eventmask );
2613 static void dump_register_async_request( const struct register_async_request *req )
2615 fprintf( stderr, " type=%d", req->type );
2616 dump_async_data( ", async=", &req->async );
2617 fprintf( stderr, ", count=%d", req->count );
2620 static void dump_cancel_async_request( const struct cancel_async_request *req )
2622 fprintf( stderr, " handle=%04x", req->handle );
2623 dump_uint64( ", iosb=", &req->iosb );
2624 fprintf( stderr, ", only_thread=%d", req->only_thread );
2627 static void dump_ioctl_request( const struct ioctl_request *req )
2629 dump_ioctl_code( " code=", &req->code );
2630 dump_async_data( ", async=", &req->async );
2631 fprintf( stderr, ", blocking=%d", req->blocking );
2632 dump_varargs_bytes( ", in_data=", cur_size );
2635 static void dump_ioctl_reply( const struct ioctl_reply *req )
2637 fprintf( stderr, " wait=%04x", req->wait );
2638 fprintf( stderr, ", options=%08x", req->options );
2639 dump_varargs_bytes( ", out_data=", cur_size );
2642 static void dump_get_ioctl_result_request( const struct get_ioctl_result_request *req )
2644 fprintf( stderr, " handle=%04x", req->handle );
2645 dump_uint64( ", user_arg=", &req->user_arg );
2648 static void dump_get_ioctl_result_reply( const struct get_ioctl_result_reply *req )
2650 dump_varargs_bytes( " out_data=", cur_size );
2653 static void dump_create_named_pipe_request( const struct create_named_pipe_request *req )
2655 fprintf( stderr, " access=%08x", req->access );
2656 fprintf( stderr, ", attributes=%08x", req->attributes );
2657 fprintf( stderr, ", rootdir=%04x", req->rootdir );
2658 fprintf( stderr, ", options=%08x", req->options );
2659 fprintf( stderr, ", maxinstances=%08x", req->maxinstances );
2660 fprintf( stderr, ", outsize=%08x", req->outsize );
2661 fprintf( stderr, ", insize=%08x", req->insize );
2662 dump_timeout( ", timeout=", &req->timeout );
2663 fprintf( stderr, ", flags=%08x", req->flags );
2664 dump_varargs_unicode_str( ", name=", cur_size );
2667 static void dump_create_named_pipe_reply( const struct create_named_pipe_reply *req )
2669 fprintf( stderr, " handle=%04x", req->handle );
2672 static void dump_get_named_pipe_info_request( const struct get_named_pipe_info_request *req )
2674 fprintf( stderr, " handle=%04x", req->handle );
2677 static void dump_get_named_pipe_info_reply( const struct get_named_pipe_info_reply *req )
2679 fprintf( stderr, " flags=%08x", req->flags );
2680 fprintf( stderr, ", maxinstances=%08x", req->maxinstances );
2681 fprintf( stderr, ", instances=%08x", req->instances );
2682 fprintf( stderr, ", outsize=%08x", req->outsize );
2683 fprintf( stderr, ", insize=%08x", req->insize );
2686 static void dump_create_window_request( const struct create_window_request *req )
2688 fprintf( stderr, " parent=%08x", req->parent );
2689 fprintf( stderr, ", owner=%08x", req->owner );
2690 fprintf( stderr, ", atom=%04x", req->atom );
2691 dump_uint64( ", instance=", &req->instance );
2692 dump_varargs_unicode_str( ", class=", cur_size );
2695 static void dump_create_window_reply( const struct create_window_reply *req )
2697 fprintf( stderr, " handle=%08x", req->handle );
2698 fprintf( stderr, ", parent=%08x", req->parent );
2699 fprintf( stderr, ", owner=%08x", req->owner );
2700 fprintf( stderr, ", extra=%d", req->extra );
2701 dump_uint64( ", class_ptr=", &req->class_ptr );
2704 static void dump_destroy_window_request( const struct destroy_window_request *req )
2706 fprintf( stderr, " handle=%08x", req->handle );
2709 static void dump_get_desktop_window_request( const struct get_desktop_window_request *req )
2711 fprintf( stderr, " force=%d", req->force );
2714 static void dump_get_desktop_window_reply( const struct get_desktop_window_reply *req )
2716 fprintf( stderr, " top_window=%08x", req->top_window );
2717 fprintf( stderr, ", msg_window=%08x", req->msg_window );
2720 static void dump_set_window_owner_request( const struct set_window_owner_request *req )
2722 fprintf( stderr, " handle=%08x", req->handle );
2723 fprintf( stderr, ", owner=%08x", req->owner );
2726 static void dump_set_window_owner_reply( const struct set_window_owner_reply *req )
2728 fprintf( stderr, " full_owner=%08x", req->full_owner );
2729 fprintf( stderr, ", prev_owner=%08x", req->prev_owner );
2732 static void dump_get_window_info_request( const struct get_window_info_request *req )
2734 fprintf( stderr, " handle=%08x", req->handle );
2737 static void dump_get_window_info_reply( const struct get_window_info_reply *req )
2739 fprintf( stderr, " full_handle=%08x", req->full_handle );
2740 fprintf( stderr, ", last_active=%08x", req->last_active );
2741 fprintf( stderr, ", pid=%04x", req->pid );
2742 fprintf( stderr, ", tid=%04x", req->tid );
2743 fprintf( stderr, ", atom=%04x", req->atom );
2744 fprintf( stderr, ", is_unicode=%d", req->is_unicode );
2747 static void dump_set_window_info_request( const struct set_window_info_request *req )
2749 fprintf( stderr, " flags=%04x", req->flags );
2750 fprintf( stderr, ", is_unicode=%d", req->is_unicode );
2751 fprintf( stderr, ", handle=%08x", req->handle );
2752 fprintf( stderr, ", style=%08x", req->style );
2753 fprintf( stderr, ", ex_style=%08x", req->ex_style );
2754 fprintf( stderr, ", id=%08x", req->id );
2755 dump_uint64( ", instance=", &req->instance );
2756 dump_uint64( ", user_data=", &req->user_data );
2757 fprintf( stderr, ", extra_offset=%d", req->extra_offset );
2758 fprintf( stderr, ", extra_size=%u", req->extra_size );
2759 dump_uint64( ", extra_value=", &req->extra_value );
2762 static void dump_set_window_info_reply( const struct set_window_info_reply *req )
2764 fprintf( stderr, " old_style=%08x", req->old_style );
2765 fprintf( stderr, ", old_ex_style=%08x", req->old_ex_style );
2766 dump_uint64( ", old_instance=", &req->old_instance );
2767 dump_uint64( ", old_user_data=", &req->old_user_data );
2768 dump_uint64( ", old_extra_value=", &req->old_extra_value );
2769 fprintf( stderr, ", old_id=%08x", req->old_id );
2772 static void dump_set_parent_request( const struct set_parent_request *req )
2774 fprintf( stderr, " handle=%08x", req->handle );
2775 fprintf( stderr, ", parent=%08x", req->parent );
2778 static void dump_set_parent_reply( const struct set_parent_reply *req )
2780 fprintf( stderr, " old_parent=%08x", req->old_parent );
2781 fprintf( stderr, ", full_parent=%08x", req->full_parent );
2784 static void dump_get_window_parents_request( const struct get_window_parents_request *req )
2786 fprintf( stderr, " handle=%08x", req->handle );
2789 static void dump_get_window_parents_reply( const struct get_window_parents_reply *req )
2791 fprintf( stderr, " count=%d", req->count );
2792 dump_varargs_user_handles( ", parents=", cur_size );
2795 static void dump_get_window_children_request( const struct get_window_children_request *req )
2797 fprintf( stderr, " desktop=%04x", req->desktop );
2798 fprintf( stderr, ", parent=%08x", req->parent );
2799 fprintf( stderr, ", atom=%04x", req->atom );
2800 fprintf( stderr, ", tid=%04x", req->tid );
2801 dump_varargs_unicode_str( ", class=", cur_size );
2804 static void dump_get_window_children_reply( const struct get_window_children_reply *req )
2806 fprintf( stderr, " count=%d", req->count );
2807 dump_varargs_user_handles( ", children=", cur_size );
2810 static void dump_get_window_children_from_point_request( const struct get_window_children_from_point_request *req )
2812 fprintf( stderr, " parent=%08x", req->parent );
2813 fprintf( stderr, ", x=%d", req->x );
2814 fprintf( stderr, ", y=%d", req->y );
2817 static void dump_get_window_children_from_point_reply( const struct get_window_children_from_point_reply *req )
2819 fprintf( stderr, " count=%d", req->count );
2820 dump_varargs_user_handles( ", children=", cur_size );
2823 static void dump_get_window_tree_request( const struct get_window_tree_request *req )
2825 fprintf( stderr, " handle=%08x", req->handle );
2828 static void dump_get_window_tree_reply( const struct get_window_tree_reply *req )
2830 fprintf( stderr, " parent=%08x", req->parent );
2831 fprintf( stderr, ", owner=%08x", req->owner );
2832 fprintf( stderr, ", next_sibling=%08x", req->next_sibling );
2833 fprintf( stderr, ", prev_sibling=%08x", req->prev_sibling );
2834 fprintf( stderr, ", first_sibling=%08x", req->first_sibling );
2835 fprintf( stderr, ", last_sibling=%08x", req->last_sibling );
2836 fprintf( stderr, ", first_child=%08x", req->first_child );
2837 fprintf( stderr, ", last_child=%08x", req->last_child );
2840 static void dump_set_window_pos_request( const struct set_window_pos_request *req )
2842 fprintf( stderr, " flags=%08x", req->flags );
2843 fprintf( stderr, ", handle=%08x", req->handle );
2844 fprintf( stderr, ", previous=%08x", req->previous );
2845 dump_rectangle( ", window=", &req->window );
2846 dump_rectangle( ", client=", &req->client );
2847 dump_varargs_rectangles( ", valid=", cur_size );
2850 static void dump_set_window_pos_reply( const struct set_window_pos_reply *req )
2852 fprintf( stderr, " new_style=%08x", req->new_style );
2853 fprintf( stderr, ", new_ex_style=%08x", req->new_ex_style );
2856 static void dump_get_window_rectangles_request( const struct get_window_rectangles_request *req )
2858 fprintf( stderr, " handle=%08x", req->handle );
2859 fprintf( stderr, ", relative=%d", req->relative );
2862 static void dump_get_window_rectangles_reply( const struct get_window_rectangles_reply *req )
2864 dump_rectangle( " window=", &req->window );
2865 dump_rectangle( ", visible=", &req->visible );
2866 dump_rectangle( ", client=", &req->client );
2869 static void dump_get_window_text_request( const struct get_window_text_request *req )
2871 fprintf( stderr, " handle=%08x", req->handle );
2874 static void dump_get_window_text_reply( const struct get_window_text_reply *req )
2876 dump_varargs_unicode_str( " text=", cur_size );
2879 static void dump_set_window_text_request( const struct set_window_text_request *req )
2881 fprintf( stderr, " handle=%08x", req->handle );
2882 dump_varargs_unicode_str( ", text=", cur_size );
2885 static void dump_get_windows_offset_request( const struct get_windows_offset_request *req )
2887 fprintf( stderr, " from=%08x", req->from );
2888 fprintf( stderr, ", to=%08x", req->to );
2891 static void dump_get_windows_offset_reply( const struct get_windows_offset_reply *req )
2893 fprintf( stderr, " x=%d", req->x );
2894 fprintf( stderr, ", y=%d", req->y );
2895 fprintf( stderr, ", mirror=%d", req->mirror );
2898 static void dump_get_visible_region_request( const struct get_visible_region_request *req )
2900 fprintf( stderr, " window=%08x", req->window );
2901 fprintf( stderr, ", flags=%08x", req->flags );
2904 static void dump_get_visible_region_reply( const struct get_visible_region_reply *req )
2906 fprintf( stderr, " top_win=%08x", req->top_win );
2907 dump_rectangle( ", top_rect=", &req->top_rect );
2908 dump_rectangle( ", win_rect=", &req->win_rect );
2909 fprintf( stderr, ", total_size=%u", req->total_size );
2910 dump_varargs_rectangles( ", region=", cur_size );
2913 static void dump_get_window_region_request( const struct get_window_region_request *req )
2915 fprintf( stderr, " window=%08x", req->window );
2918 static void dump_get_window_region_reply( const struct get_window_region_reply *req )
2920 fprintf( stderr, " total_size=%u", req->total_size );
2921 dump_varargs_rectangles( ", region=", cur_size );
2924 static void dump_set_window_region_request( const struct set_window_region_request *req )
2926 fprintf( stderr, " window=%08x", req->window );
2927 fprintf( stderr, ", redraw=%d", req->redraw );
2928 dump_varargs_rectangles( ", region=", cur_size );
2931 static void dump_get_update_region_request( const struct get_update_region_request *req )
2933 fprintf( stderr, " window=%08x", req->window );
2934 fprintf( stderr, ", from_child=%08x", req->from_child );
2935 fprintf( stderr, ", flags=%08x", req->flags );
2938 static void dump_get_update_region_reply( const struct get_update_region_reply *req )
2940 fprintf( stderr, " child=%08x", req->child );
2941 fprintf( stderr, ", flags=%08x", req->flags );
2942 fprintf( stderr, ", total_size=%u", req->total_size );
2943 dump_varargs_rectangles( ", region=", cur_size );
2946 static void dump_update_window_zorder_request( const struct update_window_zorder_request *req )
2948 fprintf( stderr, " window=%08x", req->window );
2949 dump_rectangle( ", rect=", &req->rect );
2952 static void dump_redraw_window_request( const struct redraw_window_request *req )
2954 fprintf( stderr, " window=%08x", req->window );
2955 fprintf( stderr, ", flags=%08x", req->flags );
2956 dump_varargs_rectangles( ", region=", cur_size );
2959 static void dump_set_window_property_request( const struct set_window_property_request *req )
2961 fprintf( stderr, " window=%08x", req->window );
2962 dump_uint64( ", data=", &req->data );
2963 fprintf( stderr, ", atom=%04x", req->atom );
2964 dump_varargs_unicode_str( ", name=", cur_size );
2967 static void dump_remove_window_property_request( const struct remove_window_property_request *req )
2969 fprintf( stderr, " window=%08x", req->window );
2970 fprintf( stderr, ", atom=%04x", req->atom );
2971 dump_varargs_unicode_str( ", name=", cur_size );
2974 static void dump_remove_window_property_reply( const struct remove_window_property_reply *req )
2976 dump_uint64( " data=", &req->data );
2979 static void dump_get_window_property_request( const struct get_window_property_request *req )
2981 fprintf( stderr, " window=%08x", req->window );
2982 fprintf( stderr, ", atom=%04x", req->atom );
2983 dump_varargs_unicode_str( ", name=", cur_size );
2986 static void dump_get_window_property_reply( const struct get_window_property_reply *req )
2988 dump_uint64( " data=", &req->data );
2991 static void dump_get_window_properties_request( const struct get_window_properties_request *req )
2993 fprintf( stderr, " window=%08x", req->window );
2996 static void dump_get_window_properties_reply( const struct get_window_properties_reply *req )
2998 fprintf( stderr, " total=%d", req->total );
2999 dump_varargs_properties( ", props=", cur_size );
3002 static void dump_create_winstation_request( const struct create_winstation_request *req )
3004 fprintf( stderr, " flags=%08x", req->flags );
3005 fprintf( stderr, ", access=%08x", req->access );
3006 fprintf( stderr, ", attributes=%08x", req->attributes );
3007 dump_varargs_unicode_str( ", name=", cur_size );
3010 static void dump_create_winstation_reply( const struct create_winstation_reply *req )
3012 fprintf( stderr, " handle=%04x", req->handle );
3015 static void dump_open_winstation_request( const struct open_winstation_request *req )
3017 fprintf( stderr, " access=%08x", req->access );
3018 fprintf( stderr, ", attributes=%08x", req->attributes );
3019 dump_varargs_unicode_str( ", name=", cur_size );
3022 static void dump_open_winstation_reply( const struct open_winstation_reply *req )
3024 fprintf( stderr, " handle=%04x", req->handle );
3027 static void dump_close_winstation_request( const struct close_winstation_request *req )
3029 fprintf( stderr, " handle=%04x", req->handle );
3032 static void dump_get_process_winstation_request( const struct get_process_winstation_request *req )
3036 static void dump_get_process_winstation_reply( const struct get_process_winstation_reply *req )
3038 fprintf( stderr, " handle=%04x", req->handle );
3041 static void dump_set_process_winstation_request( const struct set_process_winstation_request *req )
3043 fprintf( stderr, " handle=%04x", req->handle );
3046 static void dump_enum_winstation_request( const struct enum_winstation_request *req )
3048 fprintf( stderr, " index=%08x", req->index );
3051 static void dump_enum_winstation_reply( const struct enum_winstation_reply *req )
3053 fprintf( stderr, " next=%08x", req->next );
3054 dump_varargs_unicode_str( ", name=", cur_size );
3057 static void dump_create_desktop_request( const struct create_desktop_request *req )
3059 fprintf( stderr, " flags=%08x", req->flags );
3060 fprintf( stderr, ", access=%08x", req->access );
3061 fprintf( stderr, ", attributes=%08x", req->attributes );
3062 dump_varargs_unicode_str( ", name=", cur_size );
3065 static void dump_create_desktop_reply( const struct create_desktop_reply *req )
3067 fprintf( stderr, " handle=%04x", req->handle );
3070 static void dump_open_desktop_request( const struct open_desktop_request *req )
3072 fprintf( stderr, " winsta=%04x", req->winsta );
3073 fprintf( stderr, ", flags=%08x", req->flags );
3074 fprintf( stderr, ", access=%08x", req->access );
3075 fprintf( stderr, ", attributes=%08x", req->attributes );
3076 dump_varargs_unicode_str( ", name=", cur_size );
3079 static void dump_open_desktop_reply( const struct open_desktop_reply *req )
3081 fprintf( stderr, " handle=%04x", req->handle );
3084 static void dump_close_desktop_request( const struct close_desktop_request *req )
3086 fprintf( stderr, " handle=%04x", req->handle );
3089 static void dump_get_thread_desktop_request( const struct get_thread_desktop_request *req )
3091 fprintf( stderr, " tid=%04x", req->tid );
3094 static void dump_get_thread_desktop_reply( const struct get_thread_desktop_reply *req )
3096 fprintf( stderr, " handle=%04x", req->handle );
3099 static void dump_set_thread_desktop_request( const struct set_thread_desktop_request *req )
3101 fprintf( stderr, " handle=%04x", req->handle );
3104 static void dump_enum_desktop_request( const struct enum_desktop_request *req )
3106 fprintf( stderr, " winstation=%04x", req->winstation );
3107 fprintf( stderr, ", index=%08x", req->index );
3110 static void dump_enum_desktop_reply( const struct enum_desktop_reply *req )
3112 fprintf( stderr, " next=%08x", req->next );
3113 dump_varargs_unicode_str( ", name=", cur_size );
3116 static void dump_set_user_object_info_request( const struct set_user_object_info_request *req )
3118 fprintf( stderr, " handle=%04x", req->handle );
3119 fprintf( stderr, ", flags=%08x", req->flags );
3120 fprintf( stderr, ", obj_flags=%08x", req->obj_flags );
3123 static void dump_set_user_object_info_reply( const struct set_user_object_info_reply *req )
3125 fprintf( stderr, " is_desktop=%d", req->is_desktop );
3126 fprintf( stderr, ", old_obj_flags=%08x", req->old_obj_flags );
3127 dump_varargs_unicode_str( ", name=", cur_size );
3130 static void dump_attach_thread_input_request( const struct attach_thread_input_request *req )
3132 fprintf( stderr, " tid_from=%04x", req->tid_from );
3133 fprintf( stderr, ", tid_to=%04x", req->tid_to );
3134 fprintf( stderr, ", attach=%d", req->attach );
3137 static void dump_get_thread_input_request( const struct get_thread_input_request *req )
3139 fprintf( stderr, " tid=%04x", req->tid );
3142 static void dump_get_thread_input_reply( const struct get_thread_input_reply *req )
3144 fprintf( stderr, " focus=%08x", req->focus );
3145 fprintf( stderr, ", capture=%08x", req->capture );
3146 fprintf( stderr, ", active=%08x", req->active );
3147 fprintf( stderr, ", foreground=%08x", req->foreground );
3148 fprintf( stderr, ", menu_owner=%08x", req->menu_owner );
3149 fprintf( stderr, ", move_size=%08x", req->move_size );
3150 fprintf( stderr, ", caret=%08x", req->caret );
3151 fprintf( stderr, ", cursor=%08x", req->cursor );
3152 fprintf( stderr, ", show_count=%d", req->show_count );
3153 dump_rectangle( ", rect=", &req->rect );
3156 static void dump_get_last_input_time_request( const struct get_last_input_time_request *req )
3160 static void dump_get_last_input_time_reply( const struct get_last_input_time_reply *req )
3162 fprintf( stderr, " time=%08x", req->time );
3165 static void dump_get_key_state_request( const struct get_key_state_request *req )
3167 fprintf( stderr, " tid=%04x", req->tid );
3168 fprintf( stderr, ", key=%d", req->key );
3171 static void dump_get_key_state_reply( const struct get_key_state_reply *req )
3173 fprintf( stderr, " state=%02x", req->state );
3174 dump_varargs_bytes( ", keystate=", cur_size );
3177 static void dump_set_key_state_request( const struct set_key_state_request *req )
3179 fprintf( stderr, " tid=%04x", req->tid );
3180 dump_varargs_bytes( ", keystate=", cur_size );
3183 static void dump_set_foreground_window_request( const struct set_foreground_window_request *req )
3185 fprintf( stderr, " handle=%08x", req->handle );
3188 static void dump_set_foreground_window_reply( const struct set_foreground_window_reply *req )
3190 fprintf( stderr, " previous=%08x", req->previous );
3191 fprintf( stderr, ", send_msg_old=%d", req->send_msg_old );
3192 fprintf( stderr, ", send_msg_new=%d", req->send_msg_new );
3195 static void dump_set_focus_window_request( const struct set_focus_window_request *req )
3197 fprintf( stderr, " handle=%08x", req->handle );
3200 static void dump_set_focus_window_reply( const struct set_focus_window_reply *req )
3202 fprintf( stderr, " previous=%08x", req->previous );
3205 static void dump_set_active_window_request( const struct set_active_window_request *req )
3207 fprintf( stderr, " handle=%08x", req->handle );
3210 static void dump_set_active_window_reply( const struct set_active_window_reply *req )
3212 fprintf( stderr, " previous=%08x", req->previous );
3215 static void dump_set_capture_window_request( const struct set_capture_window_request *req )
3217 fprintf( stderr, " handle=%08x", req->handle );
3218 fprintf( stderr, ", flags=%08x", req->flags );
3221 static void dump_set_capture_window_reply( const struct set_capture_window_reply *req )
3223 fprintf( stderr, " previous=%08x", req->previous );
3224 fprintf( stderr, ", full_handle=%08x", req->full_handle );
3227 static void dump_set_caret_window_request( const struct set_caret_window_request *req )
3229 fprintf( stderr, " handle=%08x", req->handle );
3230 fprintf( stderr, ", width=%d", req->width );
3231 fprintf( stderr, ", height=%d", req->height );
3234 static void dump_set_caret_window_reply( const struct set_caret_window_reply *req )
3236 fprintf( stderr, " previous=%08x", req->previous );
3237 dump_rectangle( ", old_rect=", &req->old_rect );
3238 fprintf( stderr, ", old_hide=%d", req->old_hide );
3239 fprintf( stderr, ", old_state=%d", req->old_state );
3242 static void dump_set_caret_info_request( const struct set_caret_info_request *req )
3244 fprintf( stderr, " flags=%08x", req->flags );
3245 fprintf( stderr, ", handle=%08x", req->handle );
3246 fprintf( stderr, ", x=%d", req->x );
3247 fprintf( stderr, ", y=%d", req->y );
3248 fprintf( stderr, ", hide=%d", req->hide );
3249 fprintf( stderr, ", state=%d", req->state );
3252 static void dump_set_caret_info_reply( const struct set_caret_info_reply *req )
3254 fprintf( stderr, " full_handle=%08x", req->full_handle );
3255 dump_rectangle( ", old_rect=", &req->old_rect );
3256 fprintf( stderr, ", old_hide=%d", req->old_hide );
3257 fprintf( stderr, ", old_state=%d", req->old_state );
3260 static void dump_set_hook_request( const struct set_hook_request *req )
3262 fprintf( stderr, " id=%d", req->id );
3263 fprintf( stderr, ", pid=%04x", req->pid );
3264 fprintf( stderr, ", tid=%04x", req->tid );
3265 fprintf( stderr, ", event_min=%d", req->event_min );
3266 fprintf( stderr, ", event_max=%d", req->event_max );
3267 dump_uint64( ", proc=", &req->proc );
3268 fprintf( stderr, ", flags=%d", req->flags );
3269 fprintf( stderr, ", unicode=%d", req->unicode );
3270 dump_varargs_unicode_str( ", module=", cur_size );
3273 static void dump_set_hook_reply( const struct set_hook_reply *req )
3275 fprintf( stderr, " handle=%08x", req->handle );
3276 fprintf( stderr, ", active_hooks=%08x", req->active_hooks );
3279 static void dump_remove_hook_request( const struct remove_hook_request *req )
3281 fprintf( stderr, " handle=%08x", req->handle );
3282 dump_uint64( ", proc=", &req->proc );
3283 fprintf( stderr, ", id=%d", req->id );
3286 static void dump_remove_hook_reply( const struct remove_hook_reply *req )
3288 fprintf( stderr, " active_hooks=%08x", req->active_hooks );
3291 static void dump_start_hook_chain_request( const struct start_hook_chain_request *req )
3293 fprintf( stderr, " id=%d", req->id );
3294 fprintf( stderr, ", event=%d", req->event );
3295 fprintf( stderr, ", window=%08x", req->window );
3296 fprintf( stderr, ", object_id=%d", req->object_id );
3297 fprintf( stderr, ", child_id=%d", req->child_id );
3300 static void dump_start_hook_chain_reply( const struct start_hook_chain_reply *req )
3302 fprintf( stderr, " handle=%08x", req->handle );
3303 fprintf( stderr, ", pid=%04x", req->pid );
3304 fprintf( stderr, ", tid=%04x", req->tid );
3305 fprintf( stderr, ", unicode=%d", req->unicode );
3306 dump_uint64( ", proc=", &req->proc );
3307 fprintf( stderr, ", active_hooks=%08x", req->active_hooks );
3308 dump_varargs_unicode_str( ", module=", cur_size );
3311 static void dump_finish_hook_chain_request( const struct finish_hook_chain_request *req )
3313 fprintf( stderr, " id=%d", req->id );
3316 static void dump_get_hook_info_request( const struct get_hook_info_request *req )
3318 fprintf( stderr, " handle=%08x", req->handle );
3319 fprintf( stderr, ", get_next=%d", req->get_next );
3320 fprintf( stderr, ", event=%d", req->event );
3321 fprintf( stderr, ", window=%08x", req->window );
3322 fprintf( stderr, ", object_id=%d", req->object_id );
3323 fprintf( stderr, ", child_id=%d", req->child_id );
3326 static void dump_get_hook_info_reply( const struct get_hook_info_reply *req )
3328 fprintf( stderr, " handle=%08x", req->handle );
3329 fprintf( stderr, ", id=%d", req->id );
3330 fprintf( stderr, ", pid=%04x", req->pid );
3331 fprintf( stderr, ", tid=%04x", req->tid );
3332 dump_uint64( ", proc=", &req->proc );
3333 fprintf( stderr, ", unicode=%d", req->unicode );
3334 dump_varargs_unicode_str( ", module=", cur_size );
3337 static void dump_create_class_request( const struct create_class_request *req )
3339 fprintf( stderr, " local=%d", req->local );
3340 fprintf( stderr, ", atom=%04x", req->atom );
3341 fprintf( stderr, ", style=%08x", req->style );
3342 dump_uint64( ", instance=", &req->instance );
3343 fprintf( stderr, ", extra=%d", req->extra );
3344 fprintf( stderr, ", win_extra=%d", req->win_extra );
3345 dump_uint64( ", client_ptr=", &req->client_ptr );
3346 dump_varargs_unicode_str( ", name=", cur_size );
3349 static void dump_create_class_reply( const struct create_class_reply *req )
3351 fprintf( stderr, " atom=%04x", req->atom );
3354 static void dump_destroy_class_request( const struct destroy_class_request *req )
3356 fprintf( stderr, " atom=%04x", req->atom );
3357 dump_uint64( ", instance=", &req->instance );
3358 dump_varargs_unicode_str( ", name=", cur_size );
3361 static void dump_destroy_class_reply( const struct destroy_class_reply *req )
3363 dump_uint64( " client_ptr=", &req->client_ptr );
3366 static void dump_set_class_info_request( const struct set_class_info_request *req )
3368 fprintf( stderr, " window=%08x", req->window );
3369 fprintf( stderr, ", flags=%08x", req->flags );
3370 fprintf( stderr, ", atom=%04x", req->atom );
3371 fprintf( stderr, ", style=%08x", req->style );
3372 fprintf( stderr, ", win_extra=%d", req->win_extra );
3373 dump_uint64( ", instance=", &req->instance );
3374 fprintf( stderr, ", extra_offset=%d", req->extra_offset );
3375 fprintf( stderr, ", extra_size=%u", req->extra_size );
3376 dump_uint64( ", extra_value=", &req->extra_value );
3379 static void dump_set_class_info_reply( const struct set_class_info_reply *req )
3381 fprintf( stderr, " old_atom=%04x", req->old_atom );
3382 fprintf( stderr, ", old_style=%08x", req->old_style );
3383 fprintf( stderr, ", old_extra=%d", req->old_extra );
3384 fprintf( stderr, ", old_win_extra=%d", req->old_win_extra );
3385 dump_uint64( ", old_instance=", &req->old_instance );
3386 dump_uint64( ", old_extra_value=", &req->old_extra_value );
3389 static void dump_set_clipboard_info_request( const struct set_clipboard_info_request *req )
3391 fprintf( stderr, " flags=%08x", req->flags );
3392 fprintf( stderr, ", clipboard=%08x", req->clipboard );
3393 fprintf( stderr, ", owner=%08x", req->owner );
3394 fprintf( stderr, ", viewer=%08x", req->viewer );
3395 fprintf( stderr, ", seqno=%08x", req->seqno );
3398 static void dump_set_clipboard_info_reply( const struct set_clipboard_info_reply *req )
3400 fprintf( stderr, " flags=%08x", req->flags );
3401 fprintf( stderr, ", old_clipboard=%08x", req->old_clipboard );
3402 fprintf( stderr, ", old_owner=%08x", req->old_owner );
3403 fprintf( stderr, ", old_viewer=%08x", req->old_viewer );
3404 fprintf( stderr, ", seqno=%08x", req->seqno );
3407 static void dump_open_token_request( const struct open_token_request *req )
3409 fprintf( stderr, " handle=%04x", req->handle );
3410 fprintf( stderr, ", access=%08x", req->access );
3411 fprintf( stderr, ", attributes=%08x", req->attributes );
3412 fprintf( stderr, ", flags=%08x", req->flags );
3415 static void dump_open_token_reply( const struct open_token_reply *req )
3417 fprintf( stderr, " token=%04x", req->token );
3420 static void dump_set_global_windows_request( const struct set_global_windows_request *req )
3422 fprintf( stderr, " flags=%08x", req->flags );
3423 fprintf( stderr, ", shell_window=%08x", req->shell_window );
3424 fprintf( stderr, ", shell_listview=%08x", req->shell_listview );
3425 fprintf( stderr, ", progman_window=%08x", req->progman_window );
3426 fprintf( stderr, ", taskman_window=%08x", req->taskman_window );
3429 static void dump_set_global_windows_reply( const struct set_global_windows_reply *req )
3431 fprintf( stderr, " old_shell_window=%08x", req->old_shell_window );
3432 fprintf( stderr, ", old_shell_listview=%08x", req->old_shell_listview );
3433 fprintf( stderr, ", old_progman_window=%08x", req->old_progman_window );
3434 fprintf( stderr, ", old_taskman_window=%08x", req->old_taskman_window );
3437 static void dump_adjust_token_privileges_request( const struct adjust_token_privileges_request *req )
3439 fprintf( stderr, " handle=%04x", req->handle );
3440 fprintf( stderr, ", disable_all=%d", req->disable_all );
3441 fprintf( stderr, ", get_modified_state=%d", req->get_modified_state );
3442 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size );
3445 static void dump_adjust_token_privileges_reply( const struct adjust_token_privileges_reply *req )
3447 fprintf( stderr, " len=%08x", req->len );
3448 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size );
3451 static void dump_get_token_privileges_request( const struct get_token_privileges_request *req )
3453 fprintf( stderr, " handle=%04x", req->handle );
3456 static void dump_get_token_privileges_reply( const struct get_token_privileges_reply *req )
3458 fprintf( stderr, " len=%08x", req->len );
3459 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size );
3462 static void dump_check_token_privileges_request( const struct check_token_privileges_request *req )
3464 fprintf( stderr, " handle=%04x", req->handle );
3465 fprintf( stderr, ", all_required=%d", req->all_required );
3466 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size );
3469 static void dump_check_token_privileges_reply( const struct check_token_privileges_reply *req )
3471 fprintf( stderr, " has_privileges=%d", req->has_privileges );
3472 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size );
3475 static void dump_duplicate_token_request( const struct duplicate_token_request *req )
3477 fprintf( stderr, " handle=%04x", req->handle );
3478 fprintf( stderr, ", access=%08x", req->access );
3479 fprintf( stderr, ", attributes=%08x", req->attributes );
3480 fprintf( stderr, ", primary=%d", req->primary );
3481 fprintf( stderr, ", impersonation_level=%d", req->impersonation_level );
3484 static void dump_duplicate_token_reply( const struct duplicate_token_reply *req )
3486 fprintf( stderr, " new_handle=%04x", req->new_handle );
3489 static void dump_access_check_request( const struct access_check_request *req )
3491 fprintf( stderr, " handle=%04x", req->handle );
3492 fprintf( stderr, ", desired_access=%08x", req->desired_access );
3493 fprintf( stderr, ", mapping_read=%08x", req->mapping_read );
3494 fprintf( stderr, ", mapping_write=%08x", req->mapping_write );
3495 fprintf( stderr, ", mapping_execute=%08x", req->mapping_execute );
3496 fprintf( stderr, ", mapping_all=%08x", req->mapping_all );
3497 dump_varargs_security_descriptor( ", sd=", cur_size );
3500 static void dump_access_check_reply( const struct access_check_reply *req )
3502 fprintf( stderr, " access_granted=%08x", req->access_granted );
3503 fprintf( stderr, ", access_status=%08x", req->access_status );
3504 fprintf( stderr, ", privileges_len=%08x", req->privileges_len );
3505 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size );
3508 static void dump_get_token_sid_request( const struct get_token_sid_request *req )
3510 fprintf( stderr, " handle=%04x", req->handle );
3511 fprintf( stderr, ", which_sid=%08x", req->which_sid );
3514 static void dump_get_token_sid_reply( const struct get_token_sid_reply *req )
3516 fprintf( stderr, " sid_len=%u", req->sid_len );
3517 dump_varargs_SID( ", sid=", cur_size );
3520 static void dump_get_token_groups_request( const struct get_token_groups_request *req )
3522 fprintf( stderr, " handle=%04x", req->handle );
3525 static void dump_get_token_groups_reply( const struct get_token_groups_reply *req )
3527 fprintf( stderr, " user_len=%u", req->user_len );
3528 dump_varargs_token_groups( ", user=", cur_size );
3531 static void dump_get_token_default_dacl_request( const struct get_token_default_dacl_request *req )
3533 fprintf( stderr, " handle=%04x", req->handle );
3536 static void dump_get_token_default_dacl_reply( const struct get_token_default_dacl_reply *req )
3538 fprintf( stderr, " acl_len=%u", req->acl_len );
3539 dump_varargs_ACL( ", acl=", cur_size );
3542 static void dump_set_token_default_dacl_request( const struct set_token_default_dacl_request *req )
3544 fprintf( stderr, " handle=%04x", req->handle );
3545 dump_varargs_ACL( ", acl=", cur_size );
3548 static void dump_set_security_object_request( const struct set_security_object_request *req )
3550 fprintf( stderr, " handle=%04x", req->handle );
3551 fprintf( stderr, ", security_info=%08x", req->security_info );
3552 dump_varargs_security_descriptor( ", sd=", cur_size );
3555 static void dump_get_security_object_request( const struct get_security_object_request *req )
3557 fprintf( stderr, " handle=%04x", req->handle );
3558 fprintf( stderr, ", security_info=%08x", req->security_info );
3561 static void dump_get_security_object_reply( const struct get_security_object_reply *req )
3563 fprintf( stderr, " sd_len=%08x", req->sd_len );
3564 dump_varargs_security_descriptor( ", sd=", cur_size );
3567 static void dump_create_mailslot_request( const struct create_mailslot_request *req )
3569 fprintf( stderr, " access=%08x", req->access );
3570 fprintf( stderr, ", attributes=%08x", req->attributes );
3571 fprintf( stderr, ", rootdir=%04x", req->rootdir );
3572 dump_timeout( ", read_timeout=", &req->read_timeout );
3573 fprintf( stderr, ", max_msgsize=%08x", req->max_msgsize );
3574 dump_varargs_unicode_str( ", name=", cur_size );
3577 static void dump_create_mailslot_reply( const struct create_mailslot_reply *req )
3579 fprintf( stderr, " handle=%04x", req->handle );
3582 static void dump_set_mailslot_info_request( const struct set_mailslot_info_request *req )
3584 fprintf( stderr, " handle=%04x", req->handle );
3585 dump_timeout( ", read_timeout=", &req->read_timeout );
3586 fprintf( stderr, ", flags=%08x", req->flags );
3589 static void dump_set_mailslot_info_reply( const struct set_mailslot_info_reply *req )
3591 dump_timeout( " read_timeout=", &req->read_timeout );
3592 fprintf( stderr, ", max_msgsize=%08x", req->max_msgsize );
3595 static void dump_create_directory_request( const struct create_directory_request *req )
3597 fprintf( stderr, " access=%08x", req->access );
3598 fprintf( stderr, ", attributes=%08x", req->attributes );
3599 fprintf( stderr, ", rootdir=%04x", req->rootdir );
3600 dump_varargs_unicode_str( ", directory_name=", cur_size );
3603 static void dump_create_directory_reply( const struct create_directory_reply *req )
3605 fprintf( stderr, " handle=%04x", req->handle );
3608 static void dump_open_directory_request( const struct open_directory_request *req )
3610 fprintf( stderr, " access=%08x", req->access );
3611 fprintf( stderr, ", attributes=%08x", req->attributes );
3612 fprintf( stderr, ", rootdir=%04x", req->rootdir );
3613 dump_varargs_unicode_str( ", directory_name=", cur_size );
3616 static void dump_open_directory_reply( const struct open_directory_reply *req )
3618 fprintf( stderr, " handle=%04x", req->handle );
3621 static void dump_get_directory_entry_request( const struct get_directory_entry_request *req )
3623 fprintf( stderr, " handle=%04x", req->handle );
3624 fprintf( stderr, ", index=%08x", req->index );
3627 static void dump_get_directory_entry_reply( const struct get_directory_entry_reply *req )
3629 fprintf( stderr, " name_len=%u", req->name_len );
3630 dump_varargs_unicode_str( ", name=", min(cur_size,req->name_len) );
3631 dump_varargs_unicode_str( ", type=", cur_size );
3634 static void dump_create_symlink_request( const struct create_symlink_request *req )
3636 fprintf( stderr, " access=%08x", req->access );
3637 fprintf( stderr, ", attributes=%08x", req->attributes );
3638 fprintf( stderr, ", rootdir=%04x", req->rootdir );
3639 fprintf( stderr, ", name_len=%u", req->name_len );
3640 dump_varargs_unicode_str( ", name=", min(cur_size,req->name_len) );
3641 dump_varargs_unicode_str( ", target_name=", cur_size );
3644 static void dump_create_symlink_reply( const struct create_symlink_reply *req )
3646 fprintf( stderr, " handle=%04x", req->handle );
3649 static void dump_open_symlink_request( const struct open_symlink_request *req )
3651 fprintf( stderr, " access=%08x", req->access );
3652 fprintf( stderr, ", attributes=%08x", req->attributes );
3653 fprintf( stderr, ", rootdir=%04x", req->rootdir );
3654 dump_varargs_unicode_str( ", name=", cur_size );
3657 static void dump_open_symlink_reply( const struct open_symlink_reply *req )
3659 fprintf( stderr, " handle=%04x", req->handle );
3662 static void dump_query_symlink_request( const struct query_symlink_request *req )
3664 fprintf( stderr, " handle=%04x", req->handle );
3667 static void dump_query_symlink_reply( const struct query_symlink_reply *req )
3669 fprintf( stderr, " total=%u", req->total );
3670 dump_varargs_unicode_str( ", target_name=", cur_size );
3673 static void dump_get_object_info_request( const struct get_object_info_request *req )
3675 fprintf( stderr, " handle=%04x", req->handle );
3678 static void dump_get_object_info_reply( const struct get_object_info_reply *req )
3680 fprintf( stderr, " access=%08x", req->access );
3681 fprintf( stderr, ", ref_count=%08x", req->ref_count );
3682 fprintf( stderr, ", total=%u", req->total );
3683 dump_varargs_unicode_str( ", name=", cur_size );
3686 static void dump_unlink_object_request( const struct unlink_object_request *req )
3688 fprintf( stderr, " handle=%04x", req->handle );
3691 static void dump_get_token_impersonation_level_request( const struct get_token_impersonation_level_request *req )
3693 fprintf( stderr, " handle=%04x", req->handle );
3696 static void dump_get_token_impersonation_level_reply( const struct get_token_impersonation_level_reply *req )
3698 fprintf( stderr, " impersonation_level=%d", req->impersonation_level );
3701 static void dump_allocate_locally_unique_id_request( const struct allocate_locally_unique_id_request *req )
3705 static void dump_allocate_locally_unique_id_reply( const struct allocate_locally_unique_id_reply *req )
3707 dump_luid( " luid=", &req->luid );
3710 static void dump_create_device_manager_request( const struct create_device_manager_request *req )
3712 fprintf( stderr, " access=%08x", req->access );
3713 fprintf( stderr, ", attributes=%08x", req->attributes );
3716 static void dump_create_device_manager_reply( const struct create_device_manager_reply *req )
3718 fprintf( stderr, " handle=%04x", req->handle );
3721 static void dump_create_device_request( const struct create_device_request *req )
3723 fprintf( stderr, " access=%08x", req->access );
3724 fprintf( stderr, ", attributes=%08x", req->attributes );
3725 fprintf( stderr, ", rootdir=%04x", req->rootdir );
3726 dump_uint64( ", user_ptr=", &req->user_ptr );
3727 fprintf( stderr, ", manager=%04x", req->manager );
3728 dump_varargs_unicode_str( ", name=", cur_size );
3731 static void dump_create_device_reply( const struct create_device_reply *req )
3733 fprintf( stderr, " handle=%04x", req->handle );
3736 static void dump_delete_device_request( const struct delete_device_request *req )
3738 fprintf( stderr, " handle=%04x", req->handle );
3741 static void dump_get_next_device_request_request( const struct get_next_device_request_request *req )
3743 fprintf( stderr, " manager=%04x", req->manager );
3744 fprintf( stderr, ", prev=%04x", req->prev );
3745 fprintf( stderr, ", status=%08x", req->status );
3746 dump_varargs_bytes( ", prev_data=", cur_size );
3749 static void dump_get_next_device_request_reply( const struct get_next_device_request_reply *req )
3751 fprintf( stderr, " next=%04x", req->next );
3752 dump_ioctl_code( ", code=", &req->code );
3753 dump_uint64( ", user_ptr=", &req->user_ptr );
3754 fprintf( stderr, ", in_size=%u", req->in_size );
3755 fprintf( stderr, ", out_size=%u", req->out_size );
3756 dump_varargs_bytes( ", next_data=", cur_size );
3759 static void dump_make_process_system_request( const struct make_process_system_request *req )
3763 static void dump_make_process_system_reply( const struct make_process_system_reply *req )
3765 fprintf( stderr, " event=%04x", req->event );
3768 static void dump_get_token_statistics_request( const struct get_token_statistics_request *req )
3770 fprintf( stderr, " handle=%04x", req->handle );
3773 static void dump_get_token_statistics_reply( const struct get_token_statistics_reply *req )
3775 dump_luid( " token_id=", &req->token_id );
3776 dump_luid( ", modified_id=", &req->modified_id );
3777 fprintf( stderr, ", primary=%d", req->primary );
3778 fprintf( stderr, ", impersonation_level=%d", req->impersonation_level );
3779 fprintf( stderr, ", group_count=%d", req->group_count );
3780 fprintf( stderr, ", privilege_count=%d", req->privilege_count );
3783 static void dump_create_completion_request( const struct create_completion_request *req )
3785 fprintf( stderr, " access=%08x", req->access );
3786 fprintf( stderr, ", attributes=%08x", req->attributes );
3787 fprintf( stderr, ", concurrent=%08x", req->concurrent );
3788 fprintf( stderr, ", rootdir=%04x", req->rootdir );
3789 dump_varargs_string( ", filename=", cur_size );
3792 static void dump_create_completion_reply( const struct create_completion_reply *req )
3794 fprintf( stderr, " handle=%04x", req->handle );
3797 static void dump_open_completion_request( const struct open_completion_request *req )
3799 fprintf( stderr, " access=%08x", req->access );
3800 fprintf( stderr, ", attributes=%08x", req->attributes );
3801 fprintf( stderr, ", rootdir=%04x", req->rootdir );
3802 dump_varargs_string( ", filename=", cur_size );
3805 static void dump_open_completion_reply( const struct open_completion_reply *req )
3807 fprintf( stderr, " handle=%04x", req->handle );
3810 static void dump_add_completion_request( const struct add_completion_request *req )
3812 fprintf( stderr, " handle=%04x", req->handle );
3813 dump_uint64( ", ckey=", &req->ckey );
3814 dump_uint64( ", cvalue=", &req->cvalue );
3815 fprintf( stderr, ", information=%08x", req->information );
3816 fprintf( stderr, ", status=%08x", req->status );
3819 static void dump_remove_completion_request( const struct remove_completion_request *req )
3821 fprintf( stderr, " handle=%04x", req->handle );
3824 static void dump_remove_completion_reply( const struct remove_completion_reply *req )
3826 dump_uint64( " ckey=", &req->ckey );
3827 dump_uint64( ", cvalue=", &req->cvalue );
3828 fprintf( stderr, ", information=%08x", req->information );
3829 fprintf( stderr, ", status=%08x", req->status );
3832 static void dump_query_completion_request( const struct query_completion_request *req )
3834 fprintf( stderr, " handle=%04x", req->handle );
3837 static void dump_query_completion_reply( const struct query_completion_reply *req )
3839 fprintf( stderr, " depth=%08x", req->depth );
3842 static void dump_set_completion_info_request( const struct set_completion_info_request *req )
3844 fprintf( stderr, " handle=%04x", req->handle );
3845 dump_uint64( ", ckey=", &req->ckey );
3846 fprintf( stderr, ", chandle=%04x", req->chandle );
3849 static void dump_add_fd_completion_request( const struct add_fd_completion_request *req )
3851 fprintf( stderr, " handle=%04x", req->handle );
3852 dump_uint64( ", cvalue=", &req->cvalue );
3853 fprintf( stderr, ", status=%08x", req->status );
3854 fprintf( stderr, ", information=%08x", req->information );
3857 static void dump_get_window_layered_info_request( const struct get_window_layered_info_request *req )
3859 fprintf( stderr, " handle=%08x", req->handle );
3862 static void dump_get_window_layered_info_reply( const struct get_window_layered_info_reply *req )
3864 fprintf( stderr, " color_key=%08x", req->color_key );
3865 fprintf( stderr, ", alpha=%08x", req->alpha );
3866 fprintf( stderr, ", flags=%08x", req->flags );
3869 static void dump_set_window_layered_info_request( const struct set_window_layered_info_request *req )
3871 fprintf( stderr, " handle=%08x", req->handle );
3872 fprintf( stderr, ", color_key=%08x", req->color_key );
3873 fprintf( stderr, ", alpha=%08x", req->alpha );
3874 fprintf( stderr, ", flags=%08x", req->flags );
3877 static void dump_alloc_user_handle_request( const struct alloc_user_handle_request *req )
3881 static void dump_alloc_user_handle_reply( const struct alloc_user_handle_reply *req )
3883 fprintf( stderr, " handle=%08x", req->handle );
3886 static void dump_free_user_handle_request( const struct free_user_handle_request *req )
3888 fprintf( stderr, " handle=%08x", req->handle );
3891 static void dump_set_cursor_request( const struct set_cursor_request *req )
3893 fprintf( stderr, " flags=%08x", req->flags );
3894 fprintf( stderr, ", handle=%08x", req->handle );
3895 fprintf( stderr, ", show_count=%d", req->show_count );
3896 fprintf( stderr, ", x=%d", req->x );
3897 fprintf( stderr, ", y=%d", req->y );
3898 dump_rectangle( ", clip=", &req->clip );
3901 static void dump_set_cursor_reply( const struct set_cursor_reply *req )
3903 fprintf( stderr, " prev_handle=%08x", req->prev_handle );
3904 fprintf( stderr, ", prev_count=%d", req->prev_count );
3905 fprintf( stderr, ", new_x=%d", req->new_x );
3906 fprintf( stderr, ", new_y=%d", req->new_y );
3907 dump_rectangle( ", new_clip=", &req->new_clip );
3910 static const dump_func req_dumpers[REQ_NB_REQUESTS] = {
3911 (dump_func)dump_new_process_request,
3912 (dump_func)dump_get_new_process_info_request,
3913 (dump_func)dump_new_thread_request,
3914 (dump_func)dump_get_startup_info_request,
3915 (dump_func)dump_init_process_done_request,
3916 (dump_func)dump_init_thread_request,
3917 (dump_func)dump_terminate_process_request,
3918 (dump_func)dump_terminate_thread_request,
3919 (dump_func)dump_get_process_info_request,
3920 (dump_func)dump_set_process_info_request,
3921 (dump_func)dump_get_thread_info_request,
3922 (dump_func)dump_set_thread_info_request,
3923 (dump_func)dump_get_dll_info_request,
3924 (dump_func)dump_suspend_thread_request,
3925 (dump_func)dump_resume_thread_request,
3926 (dump_func)dump_load_dll_request,
3927 (dump_func)dump_unload_dll_request,
3928 (dump_func)dump_queue_apc_request,
3929 (dump_func)dump_get_apc_result_request,
3930 (dump_func)dump_close_handle_request,
3931 (dump_func)dump_set_handle_info_request,
3932 (dump_func)dump_dup_handle_request,
3933 (dump_func)dump_open_process_request,
3934 (dump_func)dump_open_thread_request,
3935 (dump_func)dump_select_request,
3936 (dump_func)dump_create_event_request,
3937 (dump_func)dump_event_op_request,
3938 (dump_func)dump_open_event_request,
3939 (dump_func)dump_create_mutex_request,
3940 (dump_func)dump_release_mutex_request,
3941 (dump_func)dump_open_mutex_request,
3942 (dump_func)dump_create_semaphore_request,
3943 (dump_func)dump_release_semaphore_request,
3944 (dump_func)dump_open_semaphore_request,
3945 (dump_func)dump_create_file_request,
3946 (dump_func)dump_open_file_object_request,
3947 (dump_func)dump_alloc_file_handle_request,
3948 (dump_func)dump_get_handle_unix_name_request,
3949 (dump_func)dump_get_handle_fd_request,
3950 (dump_func)dump_flush_file_request,
3951 (dump_func)dump_lock_file_request,
3952 (dump_func)dump_unlock_file_request,
3953 (dump_func)dump_create_socket_request,
3954 (dump_func)dump_accept_socket_request,
3955 (dump_func)dump_accept_into_socket_request,
3956 (dump_func)dump_set_socket_event_request,
3957 (dump_func)dump_get_socket_event_request,
3958 (dump_func)dump_enable_socket_event_request,
3959 (dump_func)dump_set_socket_deferred_request,
3960 (dump_func)dump_alloc_console_request,
3961 (dump_func)dump_free_console_request,
3962 (dump_func)dump_get_console_renderer_events_request,
3963 (dump_func)dump_open_console_request,
3964 (dump_func)dump_get_console_wait_event_request,
3965 (dump_func)dump_get_console_mode_request,
3966 (dump_func)dump_set_console_mode_request,
3967 (dump_func)dump_set_console_input_info_request,
3968 (dump_func)dump_get_console_input_info_request,
3969 (dump_func)dump_append_console_input_history_request,
3970 (dump_func)dump_get_console_input_history_request,
3971 (dump_func)dump_create_console_output_request,
3972 (dump_func)dump_set_console_output_info_request,
3973 (dump_func)dump_get_console_output_info_request,
3974 (dump_func)dump_write_console_input_request,
3975 (dump_func)dump_read_console_input_request,
3976 (dump_func)dump_write_console_output_request,
3977 (dump_func)dump_fill_console_output_request,
3978 (dump_func)dump_read_console_output_request,
3979 (dump_func)dump_move_console_output_request,
3980 (dump_func)dump_send_console_signal_request,
3981 (dump_func)dump_read_directory_changes_request,
3982 (dump_func)dump_read_change_request,
3983 (dump_func)dump_create_mapping_request,
3984 (dump_func)dump_open_mapping_request,
3985 (dump_func)dump_get_mapping_info_request,
3986 (dump_func)dump_get_mapping_committed_range_request,
3987 (dump_func)dump_add_mapping_committed_range_request,
3988 (dump_func)dump_create_snapshot_request,
3989 (dump_func)dump_next_process_request,
3990 (dump_func)dump_next_thread_request,
3991 (dump_func)dump_wait_debug_event_request,
3992 (dump_func)dump_queue_exception_event_request,
3993 (dump_func)dump_get_exception_status_request,
3994 (dump_func)dump_output_debug_string_request,
3995 (dump_func)dump_continue_debug_event_request,
3996 (dump_func)dump_debug_process_request,
3997 (dump_func)dump_debug_break_request,
3998 (dump_func)dump_set_debugger_kill_on_exit_request,
3999 (dump_func)dump_read_process_memory_request,
4000 (dump_func)dump_write_process_memory_request,
4001 (dump_func)dump_create_key_request,
4002 (dump_func)dump_open_key_request,
4003 (dump_func)dump_delete_key_request,
4004 (dump_func)dump_flush_key_request,
4005 (dump_func)dump_enum_key_request,
4006 (dump_func)dump_set_key_value_request,
4007 (dump_func)dump_get_key_value_request,
4008 (dump_func)dump_enum_key_value_request,
4009 (dump_func)dump_delete_key_value_request,
4010 (dump_func)dump_load_registry_request,
4011 (dump_func)dump_unload_registry_request,
4012 (dump_func)dump_save_registry_request,
4013 (dump_func)dump_set_registry_notification_request,
4014 (dump_func)dump_create_timer_request,
4015 (dump_func)dump_open_timer_request,
4016 (dump_func)dump_set_timer_request,
4017 (dump_func)dump_cancel_timer_request,
4018 (dump_func)dump_get_timer_info_request,
4019 (dump_func)dump_get_thread_context_request,
4020 (dump_func)dump_set_thread_context_request,
4021 (dump_func)dump_get_selector_entry_request,
4022 (dump_func)dump_add_atom_request,
4023 (dump_func)dump_delete_atom_request,
4024 (dump_func)dump_find_atom_request,
4025 (dump_func)dump_get_atom_information_request,
4026 (dump_func)dump_set_atom_information_request,
4027 (dump_func)dump_empty_atom_table_request,
4028 (dump_func)dump_init_atom_table_request,
4029 (dump_func)dump_get_msg_queue_request,
4030 (dump_func)dump_set_queue_fd_request,
4031 (dump_func)dump_set_queue_mask_request,
4032 (dump_func)dump_get_queue_status_request,
4033 (dump_func)dump_get_process_idle_event_request,
4034 (dump_func)dump_send_message_request,
4035 (dump_func)dump_post_quit_message_request,
4036 (dump_func)dump_send_hardware_message_request,
4037 (dump_func)dump_get_message_request,
4038 (dump_func)dump_reply_message_request,
4039 (dump_func)dump_accept_hardware_message_request,
4040 (dump_func)dump_get_message_reply_request,
4041 (dump_func)dump_set_win_timer_request,
4042 (dump_func)dump_kill_win_timer_request,
4043 (dump_func)dump_is_window_hung_request,
4044 (dump_func)dump_get_serial_info_request,
4045 (dump_func)dump_set_serial_info_request,
4046 (dump_func)dump_register_async_request,
4047 (dump_func)dump_cancel_async_request,
4048 (dump_func)dump_ioctl_request,
4049 (dump_func)dump_get_ioctl_result_request,
4050 (dump_func)dump_create_named_pipe_request,
4051 (dump_func)dump_get_named_pipe_info_request,
4052 (dump_func)dump_create_window_request,
4053 (dump_func)dump_destroy_window_request,
4054 (dump_func)dump_get_desktop_window_request,
4055 (dump_func)dump_set_window_owner_request,
4056 (dump_func)dump_get_window_info_request,
4057 (dump_func)dump_set_window_info_request,
4058 (dump_func)dump_set_parent_request,
4059 (dump_func)dump_get_window_parents_request,
4060 (dump_func)dump_get_window_children_request,
4061 (dump_func)dump_get_window_children_from_point_request,
4062 (dump_func)dump_get_window_tree_request,
4063 (dump_func)dump_set_window_pos_request,
4064 (dump_func)dump_get_window_rectangles_request,
4065 (dump_func)dump_get_window_text_request,
4066 (dump_func)dump_set_window_text_request,
4067 (dump_func)dump_get_windows_offset_request,
4068 (dump_func)dump_get_visible_region_request,
4069 (dump_func)dump_get_window_region_request,
4070 (dump_func)dump_set_window_region_request,
4071 (dump_func)dump_get_update_region_request,
4072 (dump_func)dump_update_window_zorder_request,
4073 (dump_func)dump_redraw_window_request,
4074 (dump_func)dump_set_window_property_request,
4075 (dump_func)dump_remove_window_property_request,
4076 (dump_func)dump_get_window_property_request,
4077 (dump_func)dump_get_window_properties_request,
4078 (dump_func)dump_create_winstation_request,
4079 (dump_func)dump_open_winstation_request,
4080 (dump_func)dump_close_winstation_request,
4081 (dump_func)dump_get_process_winstation_request,
4082 (dump_func)dump_set_process_winstation_request,
4083 (dump_func)dump_enum_winstation_request,
4084 (dump_func)dump_create_desktop_request,
4085 (dump_func)dump_open_desktop_request,
4086 (dump_func)dump_close_desktop_request,
4087 (dump_func)dump_get_thread_desktop_request,
4088 (dump_func)dump_set_thread_desktop_request,
4089 (dump_func)dump_enum_desktop_request,
4090 (dump_func)dump_set_user_object_info_request,
4091 (dump_func)dump_attach_thread_input_request,
4092 (dump_func)dump_get_thread_input_request,
4093 (dump_func)dump_get_last_input_time_request,
4094 (dump_func)dump_get_key_state_request,
4095 (dump_func)dump_set_key_state_request,
4096 (dump_func)dump_set_foreground_window_request,
4097 (dump_func)dump_set_focus_window_request,
4098 (dump_func)dump_set_active_window_request,
4099 (dump_func)dump_set_capture_window_request,
4100 (dump_func)dump_set_caret_window_request,
4101 (dump_func)dump_set_caret_info_request,
4102 (dump_func)dump_set_hook_request,
4103 (dump_func)dump_remove_hook_request,
4104 (dump_func)dump_start_hook_chain_request,
4105 (dump_func)dump_finish_hook_chain_request,
4106 (dump_func)dump_get_hook_info_request,
4107 (dump_func)dump_create_class_request,
4108 (dump_func)dump_destroy_class_request,
4109 (dump_func)dump_set_class_info_request,
4110 (dump_func)dump_set_clipboard_info_request,
4111 (dump_func)dump_open_token_request,
4112 (dump_func)dump_set_global_windows_request,
4113 (dump_func)dump_adjust_token_privileges_request,
4114 (dump_func)dump_get_token_privileges_request,
4115 (dump_func)dump_check_token_privileges_request,
4116 (dump_func)dump_duplicate_token_request,
4117 (dump_func)dump_access_check_request,
4118 (dump_func)dump_get_token_sid_request,
4119 (dump_func)dump_get_token_groups_request,
4120 (dump_func)dump_get_token_default_dacl_request,
4121 (dump_func)dump_set_token_default_dacl_request,
4122 (dump_func)dump_set_security_object_request,
4123 (dump_func)dump_get_security_object_request,
4124 (dump_func)dump_create_mailslot_request,
4125 (dump_func)dump_set_mailslot_info_request,
4126 (dump_func)dump_create_directory_request,
4127 (dump_func)dump_open_directory_request,
4128 (dump_func)dump_get_directory_entry_request,
4129 (dump_func)dump_create_symlink_request,
4130 (dump_func)dump_open_symlink_request,
4131 (dump_func)dump_query_symlink_request,
4132 (dump_func)dump_get_object_info_request,
4133 (dump_func)dump_unlink_object_request,
4134 (dump_func)dump_get_token_impersonation_level_request,
4135 (dump_func)dump_allocate_locally_unique_id_request,
4136 (dump_func)dump_create_device_manager_request,
4137 (dump_func)dump_create_device_request,
4138 (dump_func)dump_delete_device_request,
4139 (dump_func)dump_get_next_device_request_request,
4140 (dump_func)dump_make_process_system_request,
4141 (dump_func)dump_get_token_statistics_request,
4142 (dump_func)dump_create_completion_request,
4143 (dump_func)dump_open_completion_request,
4144 (dump_func)dump_add_completion_request,
4145 (dump_func)dump_remove_completion_request,
4146 (dump_func)dump_query_completion_request,
4147 (dump_func)dump_set_completion_info_request,
4148 (dump_func)dump_add_fd_completion_request,
4149 (dump_func)dump_get_window_layered_info_request,
4150 (dump_func)dump_set_window_layered_info_request,
4151 (dump_func)dump_alloc_user_handle_request,
4152 (dump_func)dump_free_user_handle_request,
4153 (dump_func)dump_set_cursor_request,
4156 static const dump_func reply_dumpers[REQ_NB_REQUESTS] = {
4157 (dump_func)dump_new_process_reply,
4158 (dump_func)dump_get_new_process_info_reply,
4159 (dump_func)dump_new_thread_reply,
4160 (dump_func)dump_get_startup_info_reply,
4162 (dump_func)dump_init_thread_reply,
4163 (dump_func)dump_terminate_process_reply,
4164 (dump_func)dump_terminate_thread_reply,
4165 (dump_func)dump_get_process_info_reply,
4167 (dump_func)dump_get_thread_info_reply,
4169 (dump_func)dump_get_dll_info_reply,
4170 (dump_func)dump_suspend_thread_reply,
4171 (dump_func)dump_resume_thread_reply,
4174 (dump_func)dump_queue_apc_reply,
4175 (dump_func)dump_get_apc_result_reply,
4177 (dump_func)dump_set_handle_info_reply,
4178 (dump_func)dump_dup_handle_reply,
4179 (dump_func)dump_open_process_reply,
4180 (dump_func)dump_open_thread_reply,
4181 (dump_func)dump_select_reply,
4182 (dump_func)dump_create_event_reply,
4184 (dump_func)dump_open_event_reply,
4185 (dump_func)dump_create_mutex_reply,
4186 (dump_func)dump_release_mutex_reply,
4187 (dump_func)dump_open_mutex_reply,
4188 (dump_func)dump_create_semaphore_reply,
4189 (dump_func)dump_release_semaphore_reply,
4190 (dump_func)dump_open_semaphore_reply,
4191 (dump_func)dump_create_file_reply,
4192 (dump_func)dump_open_file_object_reply,
4193 (dump_func)dump_alloc_file_handle_reply,
4194 (dump_func)dump_get_handle_unix_name_reply,
4195 (dump_func)dump_get_handle_fd_reply,
4196 (dump_func)dump_flush_file_reply,
4197 (dump_func)dump_lock_file_reply,
4199 (dump_func)dump_create_socket_reply,
4200 (dump_func)dump_accept_socket_reply,
4203 (dump_func)dump_get_socket_event_reply,
4206 (dump_func)dump_alloc_console_reply,
4208 (dump_func)dump_get_console_renderer_events_reply,
4209 (dump_func)dump_open_console_reply,
4210 (dump_func)dump_get_console_wait_event_reply,
4211 (dump_func)dump_get_console_mode_reply,
4214 (dump_func)dump_get_console_input_info_reply,
4216 (dump_func)dump_get_console_input_history_reply,
4217 (dump_func)dump_create_console_output_reply,
4219 (dump_func)dump_get_console_output_info_reply,
4220 (dump_func)dump_write_console_input_reply,
4221 (dump_func)dump_read_console_input_reply,
4222 (dump_func)dump_write_console_output_reply,
4223 (dump_func)dump_fill_console_output_reply,
4224 (dump_func)dump_read_console_output_reply,
4228 (dump_func)dump_read_change_reply,
4229 (dump_func)dump_create_mapping_reply,
4230 (dump_func)dump_open_mapping_reply,
4231 (dump_func)dump_get_mapping_info_reply,
4232 (dump_func)dump_get_mapping_committed_range_reply,
4234 (dump_func)dump_create_snapshot_reply,
4235 (dump_func)dump_next_process_reply,
4236 (dump_func)dump_next_thread_reply,
4237 (dump_func)dump_wait_debug_event_reply,
4238 (dump_func)dump_queue_exception_event_reply,
4239 (dump_func)dump_get_exception_status_reply,
4243 (dump_func)dump_debug_break_reply,
4245 (dump_func)dump_read_process_memory_reply,
4247 (dump_func)dump_create_key_reply,
4248 (dump_func)dump_open_key_reply,
4251 (dump_func)dump_enum_key_reply,
4253 (dump_func)dump_get_key_value_reply,
4254 (dump_func)dump_enum_key_value_reply,
4260 (dump_func)dump_create_timer_reply,
4261 (dump_func)dump_open_timer_reply,
4262 (dump_func)dump_set_timer_reply,
4263 (dump_func)dump_cancel_timer_reply,
4264 (dump_func)dump_get_timer_info_reply,
4265 (dump_func)dump_get_thread_context_reply,
4266 (dump_func)dump_set_thread_context_reply,
4267 (dump_func)dump_get_selector_entry_reply,
4268 (dump_func)dump_add_atom_reply,
4270 (dump_func)dump_find_atom_reply,
4271 (dump_func)dump_get_atom_information_reply,
4274 (dump_func)dump_init_atom_table_reply,
4275 (dump_func)dump_get_msg_queue_reply,
4277 (dump_func)dump_set_queue_mask_reply,
4278 (dump_func)dump_get_queue_status_reply,
4279 (dump_func)dump_get_process_idle_event_reply,
4282 (dump_func)dump_send_hardware_message_reply,
4283 (dump_func)dump_get_message_reply,
4286 (dump_func)dump_get_message_reply_reply,
4287 (dump_func)dump_set_win_timer_reply,
4289 (dump_func)dump_is_window_hung_reply,
4290 (dump_func)dump_get_serial_info_reply,
4294 (dump_func)dump_ioctl_reply,
4295 (dump_func)dump_get_ioctl_result_reply,
4296 (dump_func)dump_create_named_pipe_reply,
4297 (dump_func)dump_get_named_pipe_info_reply,
4298 (dump_func)dump_create_window_reply,
4300 (dump_func)dump_get_desktop_window_reply,
4301 (dump_func)dump_set_window_owner_reply,
4302 (dump_func)dump_get_window_info_reply,
4303 (dump_func)dump_set_window_info_reply,
4304 (dump_func)dump_set_parent_reply,
4305 (dump_func)dump_get_window_parents_reply,
4306 (dump_func)dump_get_window_children_reply,
4307 (dump_func)dump_get_window_children_from_point_reply,
4308 (dump_func)dump_get_window_tree_reply,
4309 (dump_func)dump_set_window_pos_reply,
4310 (dump_func)dump_get_window_rectangles_reply,
4311 (dump_func)dump_get_window_text_reply,
4313 (dump_func)dump_get_windows_offset_reply,
4314 (dump_func)dump_get_visible_region_reply,
4315 (dump_func)dump_get_window_region_reply,
4317 (dump_func)dump_get_update_region_reply,
4321 (dump_func)dump_remove_window_property_reply,
4322 (dump_func)dump_get_window_property_reply,
4323 (dump_func)dump_get_window_properties_reply,
4324 (dump_func)dump_create_winstation_reply,
4325 (dump_func)dump_open_winstation_reply,
4327 (dump_func)dump_get_process_winstation_reply,
4329 (dump_func)dump_enum_winstation_reply,
4330 (dump_func)dump_create_desktop_reply,
4331 (dump_func)dump_open_desktop_reply,
4333 (dump_func)dump_get_thread_desktop_reply,
4335 (dump_func)dump_enum_desktop_reply,
4336 (dump_func)dump_set_user_object_info_reply,
4338 (dump_func)dump_get_thread_input_reply,
4339 (dump_func)dump_get_last_input_time_reply,
4340 (dump_func)dump_get_key_state_reply,
4342 (dump_func)dump_set_foreground_window_reply,
4343 (dump_func)dump_set_focus_window_reply,
4344 (dump_func)dump_set_active_window_reply,
4345 (dump_func)dump_set_capture_window_reply,
4346 (dump_func)dump_set_caret_window_reply,
4347 (dump_func)dump_set_caret_info_reply,
4348 (dump_func)dump_set_hook_reply,
4349 (dump_func)dump_remove_hook_reply,
4350 (dump_func)dump_start_hook_chain_reply,
4352 (dump_func)dump_get_hook_info_reply,
4353 (dump_func)dump_create_class_reply,
4354 (dump_func)dump_destroy_class_reply,
4355 (dump_func)dump_set_class_info_reply,
4356 (dump_func)dump_set_clipboard_info_reply,
4357 (dump_func)dump_open_token_reply,
4358 (dump_func)dump_set_global_windows_reply,
4359 (dump_func)dump_adjust_token_privileges_reply,
4360 (dump_func)dump_get_token_privileges_reply,
4361 (dump_func)dump_check_token_privileges_reply,
4362 (dump_func)dump_duplicate_token_reply,
4363 (dump_func)dump_access_check_reply,
4364 (dump_func)dump_get_token_sid_reply,
4365 (dump_func)dump_get_token_groups_reply,
4366 (dump_func)dump_get_token_default_dacl_reply,
4369 (dump_func)dump_get_security_object_reply,
4370 (dump_func)dump_create_mailslot_reply,
4371 (dump_func)dump_set_mailslot_info_reply,
4372 (dump_func)dump_create_directory_reply,
4373 (dump_func)dump_open_directory_reply,
4374 (dump_func)dump_get_directory_entry_reply,
4375 (dump_func)dump_create_symlink_reply,
4376 (dump_func)dump_open_symlink_reply,
4377 (dump_func)dump_query_symlink_reply,
4378 (dump_func)dump_get_object_info_reply,
4380 (dump_func)dump_get_token_impersonation_level_reply,
4381 (dump_func)dump_allocate_locally_unique_id_reply,
4382 (dump_func)dump_create_device_manager_reply,
4383 (dump_func)dump_create_device_reply,
4385 (dump_func)dump_get_next_device_request_reply,
4386 (dump_func)dump_make_process_system_reply,
4387 (dump_func)dump_get_token_statistics_reply,
4388 (dump_func)dump_create_completion_reply,
4389 (dump_func)dump_open_completion_reply,
4391 (dump_func)dump_remove_completion_reply,
4392 (dump_func)dump_query_completion_reply,
4395 (dump_func)dump_get_window_layered_info_reply,
4397 (dump_func)dump_alloc_user_handle_reply,
4399 (dump_func)dump_set_cursor_reply,
4402 static const char * const req_names[REQ_NB_REQUESTS] = {
4404 "get_new_process_info",
4407 "init_process_done",
4409 "terminate_process",
4435 "release_semaphore",
4439 "alloc_file_handle",
4440 "get_handle_unix_name",
4447 "accept_into_socket",
4450 "enable_socket_event",
4451 "set_socket_deferred",
4454 "get_console_renderer_events",
4456 "get_console_wait_event",
4459 "set_console_input_info",
4460 "get_console_input_info",
4461 "append_console_input_history",
4462 "get_console_input_history",
4463 "create_console_output",
4464 "set_console_output_info",
4465 "get_console_output_info",
4466 "write_console_input",
4467 "read_console_input",
4468 "write_console_output",
4469 "fill_console_output",
4470 "read_console_output",
4471 "move_console_output",
4472 "send_console_signal",
4473 "read_directory_changes",
4478 "get_mapping_committed_range",
4479 "add_mapping_committed_range",
4484 "queue_exception_event",
4485 "get_exception_status",
4486 "output_debug_string",
4487 "continue_debug_event",
4490 "set_debugger_kill_on_exit",
4491 "read_process_memory",
4492 "write_process_memory",
4505 "set_registry_notification",
4511 "get_thread_context",
4512 "set_thread_context",
4513 "get_selector_entry",
4517 "get_atom_information",
4518 "set_atom_information",
4525 "get_process_idle_event",
4527 "post_quit_message",
4528 "send_hardware_message",
4531 "accept_hardware_message",
4532 "get_message_reply",
4542 "create_named_pipe",
4543 "get_named_pipe_info",
4546 "get_desktop_window",
4551 "get_window_parents",
4552 "get_window_children",
4553 "get_window_children_from_point",
4556 "get_window_rectangles",
4559 "get_windows_offset",
4560 "get_visible_region",
4561 "get_window_region",
4562 "set_window_region",
4563 "get_update_region",
4564 "update_window_zorder",
4566 "set_window_property",
4567 "remove_window_property",
4568 "get_window_property",
4569 "get_window_properties",
4570 "create_winstation",
4573 "get_process_winstation",
4574 "set_process_winstation",
4579 "get_thread_desktop",
4580 "set_thread_desktop",
4582 "set_user_object_info",
4583 "attach_thread_input",
4585 "get_last_input_time",
4588 "set_foreground_window",
4590 "set_active_window",
4591 "set_capture_window",
4597 "finish_hook_chain",
4602 "set_clipboard_info",
4604 "set_global_windows",
4605 "adjust_token_privileges",
4606 "get_token_privileges",
4607 "check_token_privileges",
4612 "get_token_default_dacl",
4613 "set_token_default_dacl",
4614 "set_security_object",
4615 "get_security_object",
4617 "set_mailslot_info",
4620 "get_directory_entry",
4626 "get_token_impersonation_level",
4627 "allocate_locally_unique_id",
4628 "create_device_manager",
4631 "get_next_device_request",
4632 "make_process_system",
4633 "get_token_statistics",
4634 "create_completion",
4637 "remove_completion",
4639 "set_completion_info",
4640 "add_fd_completion",
4641 "get_window_layered_info",
4642 "set_window_layered_info",
4643 "alloc_user_handle",
4654 { "ABANDONED_WAIT_0", STATUS_ABANDONED_WAIT_0 },
4655 { "ACCESS_DENIED", STATUS_ACCESS_DENIED },
4656 { "ACCESS_VIOLATION", STATUS_ACCESS_VIOLATION },
4657 { "ADDRESS_ALREADY_ASSOCIATED", STATUS_ADDRESS_ALREADY_ASSOCIATED },
4658 { "ALERTED", STATUS_ALERTED },
4659 { "ALIAS_EXISTS", STATUS_ALIAS_EXISTS },
4660 { "BAD_DEVICE_TYPE", STATUS_BAD_DEVICE_TYPE },
4661 { "BAD_IMPERSONATION_LEVEL", STATUS_BAD_IMPERSONATION_LEVEL },
4662 { "BREAKPOINT", STATUS_BREAKPOINT },
4663 { "BUFFER_OVERFLOW", STATUS_BUFFER_OVERFLOW },
4664 { "BUFFER_TOO_SMALL", STATUS_BUFFER_TOO_SMALL },
4665 { "CANCELLED", STATUS_CANCELLED },
4666 { "CANNOT_DELETE", STATUS_CANNOT_DELETE },
4667 { "CANT_OPEN_ANONYMOUS", STATUS_CANT_OPEN_ANONYMOUS },
4668 { "CANT_WAIT", STATUS_CANT_WAIT },
4669 { "CHILD_MUST_BE_VOLATILE", STATUS_CHILD_MUST_BE_VOLATILE },
4670 { "CONNECTION_ABORTED", STATUS_CONNECTION_ABORTED },
4671 { "CONNECTION_DISCONNECTED", STATUS_CONNECTION_DISCONNECTED },
4672 { "CONNECTION_REFUSED", STATUS_CONNECTION_REFUSED },
4673 { "CONNECTION_RESET", STATUS_CONNECTION_RESET },
4674 { "DEBUGGER_INACTIVE", STATUS_DEBUGGER_INACTIVE },
4675 { "DEVICE_BUSY", STATUS_DEVICE_BUSY },
4676 { "DIRECTORY_NOT_EMPTY", STATUS_DIRECTORY_NOT_EMPTY },
4677 { "DISK_FULL", STATUS_DISK_FULL },
4678 { "DLL_NOT_FOUND", STATUS_DLL_NOT_FOUND },
4679 { "ERROR_CLASS_ALREADY_EXISTS", 0xc0010000 | ERROR_CLASS_ALREADY_EXISTS },
4680 { "ERROR_CLASS_DOES_NOT_EXIST", 0xc0010000 | ERROR_CLASS_DOES_NOT_EXIST },
4681 { "ERROR_CLASS_HAS_WINDOWS", 0xc0010000 | ERROR_CLASS_HAS_WINDOWS },
4682 { "ERROR_CLIPBOARD_NOT_OPEN", 0xc0010000 | ERROR_CLIPBOARD_NOT_OPEN },
4683 { "ERROR_INVALID_CURSOR_HANDLE", 0xc0010000 | ERROR_INVALID_CURSOR_HANDLE },
4684 { "ERROR_INVALID_INDEX", 0xc0010000 | ERROR_INVALID_INDEX },
4685 { "ERROR_INVALID_WINDOW_HANDLE", 0xc0010000 | ERROR_INVALID_WINDOW_HANDLE },
4686 { "FILE_DELETED", STATUS_FILE_DELETED },
4687 { "FILE_IS_A_DIRECTORY", STATUS_FILE_IS_A_DIRECTORY },
4688 { "FILE_LOCK_CONFLICT", STATUS_FILE_LOCK_CONFLICT },
4689 { "GENERIC_NOT_MAPPED", STATUS_GENERIC_NOT_MAPPED },
4690 { "HANDLES_CLOSED", STATUS_HANDLES_CLOSED },
4691 { "HANDLE_NOT_CLOSABLE", STATUS_HANDLE_NOT_CLOSABLE },
4692 { "HOST_UNREACHABLE", STATUS_HOST_UNREACHABLE },
4693 { "ILLEGAL_FUNCTION", STATUS_ILLEGAL_FUNCTION },
4694 { "INSTANCE_NOT_AVAILABLE", STATUS_INSTANCE_NOT_AVAILABLE },
4695 { "INSUFFICIENT_RESOURCES", STATUS_INSUFFICIENT_RESOURCES },
4696 { "INVALID_CID", STATUS_INVALID_CID },
4697 { "INVALID_DEVICE_REQUEST", STATUS_INVALID_DEVICE_REQUEST },
4698 { "INVALID_FILE_FOR_SECTION", STATUS_INVALID_FILE_FOR_SECTION },
4699 { "INVALID_HANDLE", STATUS_INVALID_HANDLE },
4700 { "INVALID_PARAMETER", STATUS_INVALID_PARAMETER },
4701 { "INVALID_SECURITY_DESCR", STATUS_INVALID_SECURITY_DESCR },
4702 { "IO_TIMEOUT", STATUS_IO_TIMEOUT },
4703 { "KEY_DELETED", STATUS_KEY_DELETED },
4704 { "MAPPED_FILE_SIZE_ZERO", STATUS_MAPPED_FILE_SIZE_ZERO },
4705 { "MUTANT_NOT_OWNED", STATUS_MUTANT_NOT_OWNED },
4706 { "NAME_TOO_LONG", STATUS_NAME_TOO_LONG },
4707 { "NETWORK_BUSY", STATUS_NETWORK_BUSY },
4708 { "NETWORK_UNREACHABLE", STATUS_NETWORK_UNREACHABLE },
4709 { "NOTIFY_ENUM_DIR", STATUS_NOTIFY_ENUM_DIR },
4710 { "NOT_ALL_ASSIGNED", STATUS_NOT_ALL_ASSIGNED },
4711 { "NOT_A_DIRECTORY", STATUS_NOT_A_DIRECTORY },
4712 { "NOT_FOUND", STATUS_NOT_FOUND },
4713 { "NOT_IMPLEMENTED", STATUS_NOT_IMPLEMENTED },
4714 { "NOT_REGISTRY_FILE", STATUS_NOT_REGISTRY_FILE },
4715 { "NOT_SUPPORTED", STATUS_NOT_SUPPORTED },
4716 { "NO_DATA_DETECTED", STATUS_NO_DATA_DETECTED },
4717 { "NO_IMPERSONATION_TOKEN", STATUS_NO_IMPERSONATION_TOKEN },
4718 { "NO_MEMORY", STATUS_NO_MEMORY },
4719 { "NO_MORE_ENTRIES", STATUS_NO_MORE_ENTRIES },
4720 { "NO_MORE_FILES", STATUS_NO_MORE_FILES },
4721 { "NO_SUCH_DEVICE", STATUS_NO_SUCH_DEVICE },
4722 { "NO_SUCH_FILE", STATUS_NO_SUCH_FILE },
4723 { "NO_TOKEN", STATUS_NO_TOKEN },
4724 { "OBJECT_NAME_COLLISION", STATUS_OBJECT_NAME_COLLISION },
4725 { "OBJECT_NAME_EXISTS", STATUS_OBJECT_NAME_EXISTS },
4726 { "OBJECT_NAME_INVALID", STATUS_OBJECT_NAME_INVALID },
4727 { "OBJECT_NAME_NOT_FOUND", STATUS_OBJECT_NAME_NOT_FOUND },
4728 { "OBJECT_PATH_INVALID", STATUS_OBJECT_PATH_INVALID },
4729 { "OBJECT_PATH_NOT_FOUND", STATUS_OBJECT_PATH_NOT_FOUND },
4730 { "OBJECT_PATH_SYNTAX_BAD", STATUS_OBJECT_PATH_SYNTAX_BAD },
4731 { "OBJECT_TYPE_MISMATCH", STATUS_OBJECT_TYPE_MISMATCH },
4732 { "PENDING", STATUS_PENDING },
4733 { "PIPE_BUSY", STATUS_PIPE_BUSY },
4734 { "PIPE_CONNECTED", STATUS_PIPE_CONNECTED },
4735 { "PIPE_DISCONNECTED", STATUS_PIPE_DISCONNECTED },
4736 { "PIPE_LISTENING", STATUS_PIPE_LISTENING },
4737 { "PIPE_NOT_AVAILABLE", STATUS_PIPE_NOT_AVAILABLE },
4738 { "PRIVILEGE_NOT_HELD", STATUS_PRIVILEGE_NOT_HELD },
4739 { "PROCESS_IS_TERMINATING", STATUS_PROCESS_IS_TERMINATING },
4740 { "SECTION_TOO_BIG", STATUS_SECTION_TOO_BIG },
4741 { "SEMAPHORE_LIMIT_EXCEEDED", STATUS_SEMAPHORE_LIMIT_EXCEEDED },
4742 { "SHARING_VIOLATION", STATUS_SHARING_VIOLATION },
4743 { "SHUTDOWN_IN_PROGRESS", STATUS_SHUTDOWN_IN_PROGRESS },
4744 { "SUSPEND_COUNT_EXCEEDED", STATUS_SUSPEND_COUNT_EXCEEDED },
4745 { "THREAD_IS_TERMINATING", STATUS_THREAD_IS_TERMINATING },
4746 { "TIMEOUT", STATUS_TIMEOUT },
4747 { "TOO_MANY_OPENED_FILES", STATUS_TOO_MANY_OPENED_FILES },
4748 { "UNSUCCESSFUL", STATUS_UNSUCCESSFUL },
4749 { "USER_APC", STATUS_USER_APC },
4750 { "USER_MAPPED_FILE", STATUS_USER_MAPPED_FILE },
4751 { "VOLUME_DISMOUNTED", STATUS_VOLUME_DISMOUNTED },
4752 { "WAS_LOCKED", STATUS_WAS_LOCKED },
4756 /* ### make_requests end ### */
4757 /* Everything above this line is generated automatically by tools/make_requests */
4759 static const char *get_status_name( unsigned int status )
4762 static char buffer[10];
4766 for (i = 0; status_names[i].name; i++)
4767 if (status_names[i].value == status) return status_names[i].name;
4769 sprintf( buffer, "%x", status );
4773 void trace_request(void)
4775 enum request req = current->req.request_header.req;
4776 if (req < REQ_NB_REQUESTS)
4778 fprintf( stderr, "%04x: %s(", current->id, req_names[req] );
4779 if (req_dumpers[req])
4781 cur_data = get_req_data();
4782 cur_size = get_req_data_size();
4783 req_dumpers[req]( ¤t->req );
4785 fprintf( stderr, " )\n" );
4787 else fprintf( stderr, "%04x: %d(?)\n", current->id, req );
4790 void trace_reply( enum request req, const union generic_reply *reply )
4792 if (req < REQ_NB_REQUESTS)
4794 fprintf( stderr, "%04x: %s() = %s",
4795 current->id, req_names[req], get_status_name(current->error) );
4796 if (reply_dumpers[req])
4798 fprintf( stderr, " {" );
4799 cur_data = current->reply_data;
4800 cur_size = reply->reply_header.reply_size;
4801 reply_dumpers[req]( reply );
4802 fprintf( stderr, " }" );
4804 fputc( '\n', stderr );
4806 else fprintf( stderr, "%04x: %d() = %s\n",
4807 current->id, req, get_status_name(current->error) );