kernel32: Added missing include to term.c.
[wine/multimedia.git] / server / trace.c
blobe01a3f11fe7af53a44b022fc7aad00f78ac463ae
1 /*
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
21 #include "config.h"
22 #include "wine/port.h"
24 #include <ctype.h>
25 #include <stdarg.h>
26 #include <stdio.h>
27 #include <sys/types.h>
29 #ifdef HAVE_SYS_UIO_H
30 #include <sys/uio.h>
31 #endif
33 #include "ntstatus.h"
34 #define WIN32_NO_STATUS
35 #include "windef.h"
36 #include "winbase.h"
37 #include "wincon.h"
38 #include "winternl.h"
39 #include "winioctl.h"
40 #include "file.h"
41 #include "request.h"
42 #include "unicode.h"
44 static const void *cur_data;
45 static data_size_t cur_size;
47 static const char *get_status_name( unsigned int status );
49 /* utility functions */
51 static inline void remove_data( data_size_t size )
53 cur_data = (const char *)cur_data + size;
54 cur_size -= size;
57 static void dump_uints( const int *ptr, int len )
59 fputc( '{', stderr );
60 while (len > 0)
62 fprintf( stderr, "%08x", *ptr++ );
63 if (--len) fputc( ',', stderr );
65 fputc( '}', stderr );
68 static void dump_timeout( const char *prefix, const timeout_t *time )
70 fprintf( stderr, "%s%s", prefix, get_timeout_str(*time) );
73 static void dump_uint64( const char *prefix, const unsigned __int64 *val )
75 if ((unsigned int)*val != *val)
76 fprintf( stderr, "%s%x%08x", prefix, (unsigned int)(*val >> 32), (unsigned int)*val );
77 else
78 fprintf( stderr, "%s%08x", prefix, (unsigned int)*val );
81 static void dump_rectangle( const char *prefix, const rectangle_t *rect )
83 fprintf( stderr, "%s{%d,%d;%d,%d}", prefix,
84 rect->left, rect->top, rect->right, rect->bottom );
87 static void dump_char_info( const char *prefix, const char_info_t *info )
89 fprintf( stderr, "%s{'", prefix );
90 dump_strW( &info->ch, 1, stderr, "\'\'" );
91 fprintf( stderr, "',%04x}", info->attr );
94 static void dump_ioctl_code( const char *prefix, const ioctl_code_t *code )
96 switch(*code)
98 #define CASE(c) case c: fprintf( stderr, "%s%s", prefix, #c ); break
99 CASE(FSCTL_DISMOUNT_VOLUME);
100 CASE(FSCTL_PIPE_DISCONNECT);
101 CASE(FSCTL_PIPE_LISTEN);
102 CASE(FSCTL_PIPE_WAIT);
103 default: fprintf( stderr, "%s%08x", prefix, *code ); break;
104 #undef CASE
108 static void dump_cpu_type( const char *prefix, const cpu_type_t *code )
110 switch (*code)
112 #define CASE(c) case CPU_##c: fprintf( stderr, "%s%s", prefix, #c ); break
113 CASE(x86);
114 CASE(x86_64);
115 CASE(ALPHA);
116 CASE(POWERPC);
117 CASE(SPARC);
118 default: fprintf( stderr, "%s%u", prefix, *code ); break;
119 #undef CASE
123 static void dump_apc_call( const char *prefix, const apc_call_t *call )
125 fprintf( stderr, "%s{", prefix );
126 switch(call->type)
128 case APC_NONE:
129 fprintf( stderr, "APC_NONE" );
130 break;
131 case APC_USER:
132 dump_uint64( "APC_USER,func=", &call->user.func );
133 dump_uint64( ",args={", &call->user.args[0] );
134 dump_uint64( ",", &call->user.args[1] );
135 dump_uint64( ",", &call->user.args[2] );
136 fputc( '}', stderr );
137 break;
138 case APC_TIMER:
139 dump_timeout( "APC_TIMER,time=", &call->timer.time );
140 dump_uint64( ",arg=", &call->timer.arg );
141 break;
142 case APC_ASYNC_IO:
143 dump_uint64( "APC_ASYNC_IO,func=", &call->async_io.func );
144 dump_uint64( ",user=", &call->async_io.user );
145 dump_uint64( ",sb=", &call->async_io.sb );
146 fprintf( stderr, ",status=%s", get_status_name(call->async_io.status) );
147 break;
148 case APC_VIRTUAL_ALLOC:
149 dump_uint64( "APC_VIRTUAL_ALLOC,addr==", &call->virtual_alloc.addr );
150 dump_uint64( ",size=", &call->virtual_alloc.size );
151 fprintf( stderr, ",zero_bits=%u,op_type=%x,prot=%x",
152 call->virtual_alloc.zero_bits, call->virtual_alloc.op_type,
153 call->virtual_alloc.prot );
154 break;
155 case APC_VIRTUAL_FREE:
156 dump_uint64( "APC_VIRTUAL_FREE,addr=", &call->virtual_free.addr );
157 dump_uint64( ",size=", &call->virtual_free.size );
158 fprintf( stderr, ",op_type=%x", call->virtual_free.op_type );
159 break;
160 case APC_VIRTUAL_QUERY:
161 dump_uint64( "APC_VIRTUAL_QUERY,addr=", &call->virtual_query.addr );
162 break;
163 case APC_VIRTUAL_PROTECT:
164 dump_uint64( "APC_VIRTUAL_PROTECT,addr=", &call->virtual_protect.addr );
165 dump_uint64( ",size=", &call->virtual_protect.size );
166 fprintf( stderr, ",prot=%x", call->virtual_protect.prot );
167 break;
168 case APC_VIRTUAL_FLUSH:
169 dump_uint64( "APC_VIRTUAL_FLUSH,addr=", &call->virtual_flush.addr );
170 dump_uint64( ",size=", &call->virtual_flush.size );
171 break;
172 case APC_VIRTUAL_LOCK:
173 dump_uint64( "APC_VIRTUAL_LOCK,addr=", &call->virtual_lock.addr );
174 dump_uint64( ",size=", &call->virtual_lock.size );
175 break;
176 case APC_VIRTUAL_UNLOCK:
177 dump_uint64( "APC_VIRTUAL_UNLOCK,addr=", &call->virtual_unlock.addr );
178 dump_uint64( ",size=", &call->virtual_unlock.size );
179 break;
180 case APC_MAP_VIEW:
181 fprintf( stderr, "APC_MAP_VIEW,handle=%04x", call->map_view.handle );
182 dump_uint64( ",addr=", &call->map_view.addr );
183 dump_uint64( ",size=", &call->map_view.size );
184 dump_uint64( ",offset=", &call->map_view.offset );
185 fprintf( stderr, ",zero_bits=%u,alloc_type=%x,prot=%x",
186 call->map_view.zero_bits, call->map_view.alloc_type, call->map_view.prot );
187 break;
188 case APC_UNMAP_VIEW:
189 dump_uint64( "APC_UNMAP_VIEW,addr=", &call->unmap_view.addr );
190 break;
191 case APC_CREATE_THREAD:
192 dump_uint64( "APC_CREATE_THREAD,func=", &call->create_thread.func );
193 dump_uint64( ",arg=", &call->create_thread.arg );
194 dump_uint64( ",reserve=", &call->create_thread.reserve );
195 dump_uint64( ",commit=", &call->create_thread.commit );
196 fprintf( stderr, ",suspend=%u", call->create_thread.suspend );
197 break;
198 default:
199 fprintf( stderr, "type=%u", call->type );
200 break;
202 fputc( '}', stderr );
205 static void dump_apc_result( const char *prefix, const apc_result_t *result )
207 fprintf( stderr, "%s{", prefix );
208 switch(result->type)
210 case APC_NONE:
211 break;
212 case APC_ASYNC_IO:
213 fprintf( stderr, "APC_ASYNC_IO,status=%s,total=%u",
214 get_status_name( result->async_io.status ), result->async_io.total );
215 dump_uint64( ",apc=", &result->async_io.apc );
216 break;
217 case APC_VIRTUAL_ALLOC:
218 fprintf( stderr, "APC_VIRTUAL_ALLOC,status=%s",
219 get_status_name( result->virtual_alloc.status ));
220 dump_uint64( ",addr=", &result->virtual_alloc.addr );
221 dump_uint64( ",size=", &result->virtual_alloc.size );
222 break;
223 case APC_VIRTUAL_FREE:
224 fprintf( stderr, "APC_VIRTUAL_FREE,status=%s",
225 get_status_name( result->virtual_free.status ));
226 dump_uint64( ",addr=", &result->virtual_free.addr );
227 dump_uint64( ",size=", &result->virtual_free.size );
228 break;
229 case APC_VIRTUAL_QUERY:
230 fprintf( stderr, "APC_VIRTUAL_QUERY,status=%s",
231 get_status_name( result->virtual_query.status ));
232 dump_uint64( ",base=", &result->virtual_query.base );
233 dump_uint64( ",alloc_base=", &result->virtual_query.alloc_base );
234 dump_uint64( ",size=", &result->virtual_query.size );
235 fprintf( stderr, ",state=%x,prot=%x,alloc_prot=%x,alloc_type=%x",
236 result->virtual_query.state, result->virtual_query.prot,
237 result->virtual_query.alloc_prot, result->virtual_query.alloc_type );
238 break;
239 case APC_VIRTUAL_PROTECT:
240 fprintf( stderr, "APC_VIRTUAL_PROTECT,status=%s",
241 get_status_name( result->virtual_protect.status ));
242 dump_uint64( ",addr=", &result->virtual_protect.addr );
243 dump_uint64( ",size=", &result->virtual_protect.size );
244 fprintf( stderr, ",prot=%x", result->virtual_protect.prot );
245 break;
246 case APC_VIRTUAL_FLUSH:
247 fprintf( stderr, "APC_VIRTUAL_FLUSH,status=%s",
248 get_status_name( result->virtual_flush.status ));
249 dump_uint64( ",addr=", &result->virtual_flush.addr );
250 dump_uint64( ",size=", &result->virtual_flush.size );
251 break;
252 case APC_VIRTUAL_LOCK:
253 fprintf( stderr, "APC_VIRTUAL_LOCK,status=%s",
254 get_status_name( result->virtual_lock.status ));
255 dump_uint64( ",addr=", &result->virtual_lock.addr );
256 dump_uint64( ",size=", &result->virtual_lock.size );
257 break;
258 case APC_VIRTUAL_UNLOCK:
259 fprintf( stderr, "APC_VIRTUAL_UNLOCK,status=%s",
260 get_status_name( result->virtual_unlock.status ));
261 dump_uint64( ",addr=", &result->virtual_unlock.addr );
262 dump_uint64( ",size=", &result->virtual_unlock.size );
263 break;
264 case APC_MAP_VIEW:
265 fprintf( stderr, "APC_MAP_VIEW,status=%s",
266 get_status_name( result->map_view.status ));
267 dump_uint64( ",addr=", &result->map_view.addr );
268 dump_uint64( ",size=", &result->map_view.size );
269 break;
270 case APC_UNMAP_VIEW:
271 fprintf( stderr, "APC_UNMAP_VIEW,status=%s",
272 get_status_name( result->unmap_view.status ) );
273 break;
274 case APC_CREATE_THREAD:
275 fprintf( stderr, "APC_CREATE_THREAD,status=%s,tid=%04x,handle=%04x",
276 get_status_name( result->create_thread.status ),
277 result->create_thread.tid, result->create_thread.handle );
278 break;
279 default:
280 fprintf( stderr, "type=%u", result->type );
281 break;
283 fputc( '}', stderr );
286 static void dump_async_data( const char *prefix, const async_data_t *data )
288 fprintf( stderr, "%s{handle=%04x,event=%04x", prefix, data->handle, data->event );
289 dump_uint64( ",callback=", &data->callback );
290 dump_uint64( ",iosb=", &data->iosb );
291 dump_uint64( ",arg=", &data->arg );
292 dump_uint64( ",cvalue=", &data->cvalue );
293 fputc( '}', stderr );
296 static void dump_luid( const char *prefix, const luid_t *luid )
298 fprintf( stderr, "%s%d.%u", prefix, luid->high_part, luid->low_part );
301 static void dump_varargs_ints( const char *prefix, data_size_t size )
303 const int *data = cur_data;
304 data_size_t len = size / sizeof(*data);
306 fprintf( stderr,"%s{", prefix );
307 while (len > 0)
309 fprintf( stderr, "%d", *data++ );
310 if (--len) fputc( ',', stderr );
312 fputc( '}', stderr );
313 remove_data( size );
316 static void dump_varargs_uints64( const char *prefix, data_size_t size )
318 const unsigned __int64 *data = cur_data;
319 data_size_t len = size / sizeof(*data);
321 fprintf( stderr,"%s{", prefix );
322 while (len > 0)
324 dump_uint64( "", data++ );
325 if (--len) fputc( ',', stderr );
327 fputc( '}', stderr );
328 remove_data( size );
331 static void dump_varargs_apc_result( const char *prefix, data_size_t size )
333 const apc_result_t *result = cur_data;
335 if (size >= sizeof(*result))
337 dump_apc_result( prefix, result );
338 size = sizeof(*result);
340 remove_data( size );
343 static void dump_varargs_handles( const char *prefix, data_size_t size )
345 const obj_handle_t *data = cur_data;
346 data_size_t len = size / sizeof(*data);
348 fprintf( stderr,"%s{", prefix );
349 while (len > 0)
351 fprintf( stderr, "%04x", *data++ );
352 if (--len) fputc( ',', stderr );
354 fputc( '}', stderr );
355 remove_data( size );
358 static void dump_varargs_user_handles( const char *prefix, data_size_t size )
360 const user_handle_t *data = cur_data;
361 data_size_t len = size / sizeof(*data);
363 fprintf( stderr,"%s{", prefix );
364 while (len > 0)
366 fprintf( stderr, "%08x", *data++ );
367 if (--len) fputc( ',', stderr );
369 fputc( '}', stderr );
370 remove_data( size );
373 static void dump_varargs_bytes( const char *prefix, data_size_t size )
375 const unsigned char *data = cur_data;
376 data_size_t len = min( 1024, size );
378 fprintf( stderr,"%s{", prefix );
379 while (len > 0)
381 fprintf( stderr, "%02x", *data++ );
382 if (--len) fputc( ',', stderr );
384 if (size > 1024) fprintf( stderr, "...(total %u)", size );
385 fputc( '}', stderr );
386 remove_data( size );
389 static void dump_varargs_string( const char *prefix, data_size_t size )
391 fprintf( stderr, "%s\"%.*s\"", prefix, (int)size, (const char *)cur_data );
392 remove_data( size );
395 static void dump_varargs_unicode_str( const char *prefix, data_size_t size )
397 fprintf( stderr, "%sL\"", prefix );
398 dump_strW( cur_data, size / sizeof(WCHAR), stderr, "\"\"" );
399 fputc( '\"', stderr );
400 remove_data( size );
403 static void dump_varargs_context( const char *prefix, data_size_t size )
405 const context_t *context = cur_data;
406 context_t ctx;
407 unsigned int i;
409 if (!size)
411 fprintf( stderr, "%s{}", prefix );
412 return;
414 size = min( size, sizeof(ctx) );
415 memset( &ctx, 0, sizeof(ctx) );
416 memcpy( &ctx, context, size );
418 fprintf( stderr,"%s{", prefix );
419 dump_cpu_type( "cpu=", &ctx.cpu );
420 switch (ctx.cpu)
422 case CPU_x86:
423 if (ctx.flags & SERVER_CTX_CONTROL)
424 fprintf( stderr, ",eip=%08x,esp=%08x,ebp=%08x,eflags=%08x,cs=%04x,ss=%04x",
425 ctx.ctl.i386_regs.eip, ctx.ctl.i386_regs.esp, ctx.ctl.i386_regs.ebp,
426 ctx.ctl.i386_regs.eflags, ctx.ctl.i386_regs.cs, ctx.ctl.i386_regs.ss );
427 if (ctx.flags & SERVER_CTX_SEGMENTS)
428 fprintf( stderr, ",ds=%04x,es=%04x,fs=%04x,gs=%04x",
429 ctx.seg.i386_regs.ds, ctx.seg.i386_regs.es,
430 ctx.seg.i386_regs.fs, ctx.seg.i386_regs.gs );
431 if (ctx.flags & SERVER_CTX_INTEGER)
432 fprintf( stderr, ",eax=%08x,ebx=%08x,ecx=%08x,edx=%08x,esi=%08x,edi=%08x",
433 ctx.integer.i386_regs.eax, ctx.integer.i386_regs.ebx, ctx.integer.i386_regs.ecx,
434 ctx.integer.i386_regs.edx, ctx.integer.i386_regs.esi, ctx.integer.i386_regs.edi );
435 if (ctx.flags & SERVER_CTX_DEBUG_REGISTERS)
436 fprintf( stderr, ",dr0=%08x,dr1=%08x,dr2=%08x,dr3=%08x,dr6=%08x,dr7=%08x",
437 ctx.debug.i386_regs.dr0, ctx.debug.i386_regs.dr1, ctx.debug.i386_regs.dr2,
438 ctx.debug.i386_regs.dr3, ctx.debug.i386_regs.dr6, ctx.debug.i386_regs.dr7 );
439 if (ctx.flags & SERVER_CTX_FLOATING_POINT)
441 fprintf( stderr, ",fp.ctrl=%08x,fp.status=%08x,fp.tag=%08x,fp.err_off=%08x,fp.err_sel=%08x",
442 ctx.fp.i386_regs.ctrl, ctx.fp.i386_regs.status, ctx.fp.i386_regs.tag,
443 ctx.fp.i386_regs.err_off, ctx.fp.i386_regs.err_sel );
444 fprintf( stderr, ",fp.data_off=%08x,fp.data_sel=%08x,fp.cr0npx=%08x",
445 ctx.fp.i386_regs.data_off, ctx.fp.i386_regs.data_sel, ctx.fp.i386_regs.cr0npx );
446 for (i = 0; i < 8; i++)
447 fprintf( stderr, ",fp.reg%u=%Lg", i, *(long double *)&ctx.fp.i386_regs.regs[10*i] );
449 if (ctx.flags & SERVER_CTX_EXTENDED_REGISTERS)
451 fprintf( stderr, ",extended=" );
452 dump_uints( (const int *)ctx.ext.i386_regs, sizeof(ctx.ext.i386_regs) / sizeof(int) );
454 break;
455 case CPU_x86_64:
456 if (ctx.flags & SERVER_CTX_CONTROL)
458 dump_uint64( ",rip=", &ctx.ctl.x86_64_regs.rip );
459 dump_uint64( ",rbp=", &ctx.ctl.x86_64_regs.rbp );
460 dump_uint64( ",rsp=", &ctx.ctl.x86_64_regs.rsp );
461 fprintf( stderr, ",cs=%04x,ss=%04x,flags=%08x",
462 ctx.ctl.x86_64_regs.cs, ctx.ctl.x86_64_regs.ss, ctx.ctl.x86_64_regs.flags );
464 if (ctx.flags & SERVER_CTX_INTEGER)
466 dump_uint64( ",rax=", &ctx.integer.x86_64_regs.rax );
467 dump_uint64( ",rbx=", &ctx.integer.x86_64_regs.rbx );
468 dump_uint64( ",rcx=", &ctx.integer.x86_64_regs.rcx );
469 dump_uint64( ",rdx=", &ctx.integer.x86_64_regs.rdx );
470 dump_uint64( ",rsi=", &ctx.integer.x86_64_regs.rsi );
471 dump_uint64( ",rdi=", &ctx.integer.x86_64_regs.rdi );
472 dump_uint64( ",r8=", &ctx.integer.x86_64_regs.r8 );
473 dump_uint64( ",r9=", &ctx.integer.x86_64_regs.r9 );
474 dump_uint64( ",r10=", &ctx.integer.x86_64_regs.r10 );
475 dump_uint64( ",r11=", &ctx.integer.x86_64_regs.r11 );
476 dump_uint64( ",r12=", &ctx.integer.x86_64_regs.r12 );
477 dump_uint64( ",r13=", &ctx.integer.x86_64_regs.r13 );
478 dump_uint64( ",r14=", &ctx.integer.x86_64_regs.r14 );
479 dump_uint64( ",r15=", &ctx.integer.x86_64_regs.r15 );
481 if (ctx.flags & SERVER_CTX_SEGMENTS)
482 fprintf( stderr, ",ds=%04x,es=%04x,fs=%04x,gs=%04x",
483 ctx.seg.x86_64_regs.ds, ctx.seg.x86_64_regs.es,
484 ctx.seg.x86_64_regs.fs, ctx.seg.x86_64_regs.gs );
485 if (ctx.flags & SERVER_CTX_DEBUG_REGISTERS)
487 dump_uint64( ",dr0=", &ctx.debug.x86_64_regs.dr0 );
488 dump_uint64( ",dr1=", &ctx.debug.x86_64_regs.dr1 );
489 dump_uint64( ",dr2=", &ctx.debug.x86_64_regs.dr2 );
490 dump_uint64( ",dr3=", &ctx.debug.x86_64_regs.dr3 );
491 dump_uint64( ",dr6=", &ctx.debug.x86_64_regs.dr6 );
492 dump_uint64( ",dr7=", &ctx.debug.x86_64_regs.dr7 );
494 if (ctx.flags & SERVER_CTX_FLOATING_POINT)
496 for (i = 0; i < 32; i++)
497 fprintf( stderr, ",fp%u=%08x%08x%08x%08x", i,
498 (unsigned int)(ctx.fp.x86_64_regs.fpregs[i].high >> 32),
499 (unsigned int)ctx.fp.x86_64_regs.fpregs[i].high,
500 (unsigned int)(ctx.fp.x86_64_regs.fpregs[i].low >> 32),
501 (unsigned int)ctx.fp.x86_64_regs.fpregs[i].low );
503 break;
504 case CPU_ALPHA:
505 if (ctx.flags & SERVER_CTX_CONTROL)
507 dump_uint64( ",fir=", &ctx.ctl.alpha_regs.fir );
508 fprintf( stderr, ",psr=%08x", ctx.ctl.alpha_regs.psr );
510 if (ctx.flags & SERVER_CTX_INTEGER)
512 dump_uint64( ",v0=", &ctx.integer.alpha_regs.v0 );
513 dump_uint64( ",t0=", &ctx.integer.alpha_regs.t0 );
514 dump_uint64( ",t1=", &ctx.integer.alpha_regs.t1 );
515 dump_uint64( ",t2=", &ctx.integer.alpha_regs.t2 );
516 dump_uint64( ",t3=", &ctx.integer.alpha_regs.t3 );
517 dump_uint64( ",t4=", &ctx.integer.alpha_regs.t4 );
518 dump_uint64( ",t5=", &ctx.integer.alpha_regs.t5 );
519 dump_uint64( ",t6=", &ctx.integer.alpha_regs.t6 );
520 dump_uint64( ",t7=", &ctx.integer.alpha_regs.t7 );
521 dump_uint64( ",t8=", &ctx.integer.alpha_regs.t8 );
522 dump_uint64( ",t9=", &ctx.integer.alpha_regs.t9 );
523 dump_uint64( ",t10=", &ctx.integer.alpha_regs.t10 );
524 dump_uint64( ",t11=", &ctx.integer.alpha_regs.t11 );
525 dump_uint64( ",t12=", &ctx.integer.alpha_regs.t12 );
526 dump_uint64( ",s0=", &ctx.integer.alpha_regs.s0 );
527 dump_uint64( ",s1=", &ctx.integer.alpha_regs.s1 );
528 dump_uint64( ",s2=", &ctx.integer.alpha_regs.s2 );
529 dump_uint64( ",s3=", &ctx.integer.alpha_regs.s3 );
530 dump_uint64( ",s4=", &ctx.integer.alpha_regs.s4 );
531 dump_uint64( ",s5=", &ctx.integer.alpha_regs.s5 );
532 dump_uint64( ",s6=", &ctx.integer.alpha_regs.s6 );
533 dump_uint64( ",a0=", &ctx.integer.alpha_regs.a0 );
534 dump_uint64( ",a1=", &ctx.integer.alpha_regs.a1 );
535 dump_uint64( ",a2=", &ctx.integer.alpha_regs.a2 );
536 dump_uint64( ",a3=", &ctx.integer.alpha_regs.a3 );
537 dump_uint64( ",a4=", &ctx.integer.alpha_regs.a4 );
538 dump_uint64( ",a5=", &ctx.integer.alpha_regs.a5 );
539 dump_uint64( ",at=", &ctx.integer.alpha_regs.at );
541 if (ctx.flags & SERVER_CTX_FLOATING_POINT)
543 for (i = 0; i < 32; i++)
545 fprintf( stderr, ",f%u", i );
546 dump_uint64( "=", &ctx.fp.alpha_regs.f[i] );
548 dump_uint64( ",fpcr=", &ctx.fp.alpha_regs.fpcr );
549 dump_uint64( ",softfpcr=", &ctx.fp.alpha_regs.softfpcr );
551 break;
552 case CPU_POWERPC:
553 if (ctx.flags & SERVER_CTX_CONTROL)
554 fprintf( stderr, ",iar=%08x,msr=%08x,ctr=%08x,lr=%08x,dar=%08x,dsisr=%08x,trap=%08x",
555 ctx.ctl.powerpc_regs.iar, ctx.ctl.powerpc_regs.msr, ctx.ctl.powerpc_regs.ctr,
556 ctx.ctl.powerpc_regs.lr, ctx.ctl.powerpc_regs.dar, ctx.ctl.powerpc_regs.dsisr,
557 ctx.ctl.powerpc_regs.trap );
558 if (ctx.flags & SERVER_CTX_INTEGER)
560 for (i = 0; i < 32; i++) fprintf( stderr, ",gpr%u=%08x", i, ctx.integer.powerpc_regs.gpr[i] );
561 fprintf( stderr, ",cr=%08x,xer=%08x",
562 ctx.integer.powerpc_regs.cr, ctx.integer.powerpc_regs.xer );
564 if (ctx.flags & SERVER_CTX_DEBUG_REGISTERS)
565 for (i = 0; i < 8; i++) fprintf( stderr, ",dr%u=%08x", i, ctx.debug.powerpc_regs.dr[i] );
566 if (ctx.flags & SERVER_CTX_FLOATING_POINT)
568 for (i = 0; i < 32; i++) fprintf( stderr, ",fpr%u=%g", i, ctx.fp.powerpc_regs.fpr[i] );
569 fprintf( stderr, ",fpscr=%g", ctx.fp.powerpc_regs.fpscr );
571 break;
572 case CPU_ARM:
573 if (ctx.flags & SERVER_CTX_CONTROL)
574 fprintf( stderr, ",sp=%08x,lr=%08x,pc=%08x,cpsr=%08x",
575 ctx.ctl.arm_regs.sp, ctx.ctl.arm_regs.lr,
576 ctx.ctl.arm_regs.pc, ctx.ctl.arm_regs.cpsr );
577 if (ctx.flags & SERVER_CTX_INTEGER)
578 for (i = 0; i < 13; i++) fprintf( stderr, ",r%u=%08x", i, ctx.integer.arm_regs.r[i] );
579 break;
580 case CPU_SPARC:
581 if (ctx.flags & SERVER_CTX_CONTROL)
582 fprintf( stderr, ",psr=%08x,pc=%08x,npc=%08x,y=%08x,wim=%08x,tbr=%08x",
583 ctx.ctl.sparc_regs.psr, ctx.ctl.sparc_regs.pc, ctx.ctl.sparc_regs.npc,
584 ctx.ctl.sparc_regs.y, ctx.ctl.sparc_regs.wim, ctx.ctl.sparc_regs.tbr );
585 if (ctx.flags & SERVER_CTX_INTEGER)
587 for (i = 0; i < 8; i++) fprintf( stderr, ",g%u=%08x", i, ctx.integer.sparc_regs.g[i] );
588 for (i = 0; i < 8; i++) fprintf( stderr, ",o%u=%08x", i, ctx.integer.sparc_regs.o[i] );
589 for (i = 0; i < 8; i++) fprintf( stderr, ",l%u=%08x", i, ctx.integer.sparc_regs.l[i] );
590 for (i = 0; i < 8; i++) fprintf( stderr, ",i%u=%08x", i, ctx.integer.sparc_regs.i[i] );
592 break;
594 fputc( '}', stderr );
595 remove_data( size );
598 static void dump_varargs_debug_event( const char *prefix, data_size_t size )
600 debug_event_t event;
601 unsigned int i;
603 if (!size)
605 fprintf( stderr, "%s{}", prefix );
606 return;
608 size = min( size, sizeof(event) );
609 memset( &event, 0, sizeof(event) );
610 memcpy( &event, cur_data, size );
612 switch(event.code)
614 case EXCEPTION_DEBUG_EVENT:
615 fprintf( stderr, "%s{exception,first=%d,exc_code=%08x,flags=%08x", prefix,
616 event.exception.first, event.exception.exc_code, event.exception.flags );
617 dump_uint64( ",record=", &event.exception.record );
618 dump_uint64( ",address=", &event.exception.address );
619 fprintf( stderr, ",params={" );
620 event.exception.nb_params = min( event.exception.nb_params, EXCEPTION_MAXIMUM_PARAMETERS );
621 for (i = 0; i < event.exception.nb_params; i++)
623 dump_uint64( "", &event.exception.params[i] );
624 if (i < event.exception.nb_params) fputc( ',', stderr );
626 fprintf( stderr, "}}" );
627 break;
628 case CREATE_THREAD_DEBUG_EVENT:
629 fprintf( stderr, "%s{create_thread,thread=%04x", prefix, event.create_thread.handle );
630 dump_uint64( ",teb=", &event.create_thread.teb );
631 dump_uint64( ",start=", &event.create_thread.start );
632 fputc( '}', stderr );
633 break;
634 case CREATE_PROCESS_DEBUG_EVENT:
635 fprintf( stderr, "%s{create_process,file=%04x,process=%04x,thread=%04x", prefix,
636 event.create_process.file, event.create_process.process,
637 event.create_process.thread );
638 dump_uint64( ",base=", &event.create_process.base );
639 fprintf( stderr, ",offset=%d,size=%d",
640 event.create_process.dbg_offset, event.create_process.dbg_size );
641 dump_uint64( ",teb=", &event.create_process.teb );
642 dump_uint64( ",start=", &event.create_process.start );
643 dump_uint64( ",name=", &event.create_process.name );
644 fprintf( stderr, ",unicode=%d}", event.create_process.unicode );
645 break;
646 case EXIT_THREAD_DEBUG_EVENT:
647 fprintf( stderr, "%s{exit_thread,code=%d}", prefix, event.exit.exit_code );
648 break;
649 case EXIT_PROCESS_DEBUG_EVENT:
650 fprintf( stderr, "%s{exit_process,code=%d}", prefix, event.exit.exit_code );
651 break;
652 case LOAD_DLL_DEBUG_EVENT:
653 fprintf( stderr, "%s{load_dll,file=%04x", prefix, event.load_dll.handle );
654 dump_uint64( ",base=", &event.load_dll.base );
655 fprintf( stderr, ",offset=%d,size=%d",
656 event.load_dll.dbg_offset, event.load_dll.dbg_size );
657 dump_uint64( ",name=", &event.load_dll.name );
658 fprintf( stderr, ",unicode=%d}", event.load_dll.unicode );
659 break;
660 case UNLOAD_DLL_DEBUG_EVENT:
661 fprintf( stderr, "%s{unload_dll", prefix );
662 dump_uint64( ",base=", &event.unload_dll.base );
663 fputc( '}', stderr );
664 break;
665 case OUTPUT_DEBUG_STRING_EVENT:
666 fprintf( stderr, "%s{output_string", prefix );
667 dump_uint64( ",string=", &event.output_string.string );
668 fprintf( stderr, ",len=%u}", event.output_string.length );
669 break;
670 case RIP_EVENT:
671 fprintf( stderr, "%s{rip,err=%d,type=%d}", prefix,
672 event.rip_info.error, event.rip_info.type );
673 break;
674 case 0: /* zero is the code returned on timeouts */
675 fprintf( stderr, "%s{}", prefix );
676 break;
677 default:
678 fprintf( stderr, "%s{code=??? (%d)}", prefix, event.code );
679 break;
681 remove_data( size );
684 /* dump a unicode string contained in a buffer; helper for dump_varargs_startup_info */
685 static data_size_t dump_inline_unicode_string( const char *prefix, data_size_t pos, data_size_t len, data_size_t total_size )
687 fputs( prefix, stderr );
688 if (pos >= total_size) return pos;
689 if (len > total_size - pos) len = total_size - pos;
690 len /= sizeof(WCHAR);
691 dump_strW( (const WCHAR *)cur_data + pos/sizeof(WCHAR), len, stderr, "\"\"" );
692 return pos + len * sizeof(WCHAR);
695 static void dump_varargs_startup_info( const char *prefix, data_size_t size )
697 startup_info_t info;
698 data_size_t pos = sizeof(info);
700 memset( &info, 0, sizeof(info) );
701 memcpy( &info, cur_data, min( size, sizeof(info) ));
703 fprintf( stderr,
704 "%s{debug_flags=%x,console_flags=%x,console=%04x,hstdin=%04x,hstdout=%04x,hstderr=%04x,"
705 "x=%u,y=%u,xsize=%u,ysize=%u,xchars=%u,ychars=%u,attribute=%02x,flags=%x,show=%u",
706 prefix, info.debug_flags, info.console_flags, info.console,
707 info.hstdin, info.hstdout, info.hstderr, info.x, info.y, info.xsize, info.ysize,
708 info.xchars, info.ychars, info.attribute, info.flags, info.show );
709 pos = dump_inline_unicode_string( ",curdir=L\"", pos, info.curdir_len, size );
710 pos = dump_inline_unicode_string( "\",dllpath=L\"", pos, info.dllpath_len, size );
711 pos = dump_inline_unicode_string( "\",imagepath=L\"", pos, info.imagepath_len, size );
712 pos = dump_inline_unicode_string( "\",cmdline=L\"", pos, info.cmdline_len, size );
713 pos = dump_inline_unicode_string( "\",title=L\"", pos, info.title_len, size );
714 pos = dump_inline_unicode_string( "\",desktop=L\"", pos, info.desktop_len, size );
715 pos = dump_inline_unicode_string( "\",shellinfo=L\"", pos, info.shellinfo_len, size );
716 pos = dump_inline_unicode_string( "\",runtime=L\"", pos, info.runtime_len, size );
717 fprintf( stderr, "\"}" );
718 remove_data( size );
721 static void dump_varargs_input_records( const char *prefix, data_size_t size )
723 const INPUT_RECORD *rec = cur_data;
724 data_size_t len = size / sizeof(*rec);
726 fprintf( stderr,"%s{", prefix );
727 while (len > 0)
729 fprintf( stderr, "{%04x,...}", rec->EventType );
730 rec++;
731 if (--len) fputc( ',', stderr );
733 fputc( '}', stderr );
734 remove_data( size );
737 static void dump_varargs_rectangles( const char *prefix, data_size_t size )
739 const rectangle_t *rect = cur_data;
740 data_size_t len = size / sizeof(*rect);
742 fprintf( stderr,"%s{", prefix );
743 while (len > 0)
745 dump_rectangle( "", rect++ );
746 if (--len) fputc( ',', stderr );
748 fputc( '}', stderr );
749 remove_data( size );
752 static void dump_varargs_message_data( const char *prefix, data_size_t size )
754 /* FIXME: dump the structured data */
755 dump_varargs_bytes( prefix, size );
758 static void dump_varargs_properties( const char *prefix, data_size_t size )
760 const property_data_t *prop = cur_data;
761 data_size_t len = size / sizeof(*prop);
763 fprintf( stderr,"%s{", prefix );
764 while (len > 0)
766 fprintf( stderr, "{atom=%04x,str=%d", prop->atom, prop->string );
767 dump_uint64( ",data=", &prop->data );
768 fputc( '}', stderr );
769 prop++;
770 if (--len) fputc( ',', stderr );
772 fputc( '}', stderr );
773 remove_data( size );
776 static void dump_varargs_LUID_AND_ATTRIBUTES( const char *prefix, data_size_t size )
778 const LUID_AND_ATTRIBUTES *lat = cur_data;
779 data_size_t len = size / sizeof(*lat);
781 fprintf( stderr,"%s{", prefix );
782 while (len > 0)
784 fprintf( stderr, "{luid=%08x%08x,attr=%x}",
785 lat->Luid.HighPart, lat->Luid.LowPart, lat->Attributes );
786 lat++;
787 if (--len) fputc( ',', stderr );
789 fputc( '}', stderr );
790 remove_data( size );
793 static void dump_inline_sid( const char *prefix, const SID *sid, data_size_t size )
795 DWORD i;
797 /* security check */
798 if ((FIELD_OFFSET(SID, SubAuthority[0]) > size) ||
799 (FIELD_OFFSET(SID, SubAuthority[sid->SubAuthorityCount]) > size))
801 fprintf( stderr, "<invalid sid>" );
802 return;
805 fprintf( stderr,"%s{", prefix );
806 fprintf( stderr, "S-%u-%u", sid->Revision, MAKELONG(
807 MAKEWORD( sid->IdentifierAuthority.Value[5],
808 sid->IdentifierAuthority.Value[4] ),
809 MAKEWORD( sid->IdentifierAuthority.Value[3],
810 sid->IdentifierAuthority.Value[2] ) ) );
811 for (i = 0; i < sid->SubAuthorityCount; i++)
812 fprintf( stderr, "-%u", sid->SubAuthority[i] );
813 fputc( '}', stderr );
816 static void dump_varargs_SID( const char *prefix, data_size_t size )
818 const SID *sid = cur_data;
819 dump_inline_sid( prefix, sid, size );
820 remove_data( size );
823 static void dump_inline_acl( const char *prefix, const ACL *acl, data_size_t size )
825 const ACE_HEADER *ace;
826 ULONG i;
828 fprintf( stderr,"%s{", prefix );
829 if (size)
831 if (size < sizeof(ACL))
833 fprintf( stderr, "<invalid acl>}" );
834 return;
836 size -= sizeof(ACL);
837 ace = (const ACE_HEADER *)(acl + 1);
838 for (i = 0; i < acl->AceCount; i++)
840 const SID *sid = NULL;
841 data_size_t sid_size = 0;
843 if (size < sizeof(ACE_HEADER) || size < ace->AceSize) break;
844 size -= ace->AceSize;
845 if (i != 0) fputc( ',', stderr );
846 fprintf( stderr, "{AceType=" );
847 switch (ace->AceType)
849 case ACCESS_DENIED_ACE_TYPE:
850 sid = (const SID *)&((const ACCESS_DENIED_ACE *)ace)->SidStart;
851 sid_size = ace->AceSize - FIELD_OFFSET(ACCESS_DENIED_ACE, SidStart);
852 fprintf( stderr, "ACCESS_DENIED_ACE_TYPE,Mask=%x",
853 ((const ACCESS_DENIED_ACE *)ace)->Mask );
854 break;
855 case ACCESS_ALLOWED_ACE_TYPE:
856 sid = (const SID *)&((const ACCESS_ALLOWED_ACE *)ace)->SidStart;
857 sid_size = ace->AceSize - FIELD_OFFSET(ACCESS_ALLOWED_ACE, SidStart);
858 fprintf( stderr, "ACCESS_ALLOWED_ACE_TYPE,Mask=%x",
859 ((const ACCESS_ALLOWED_ACE *)ace)->Mask );
860 break;
861 case SYSTEM_AUDIT_ACE_TYPE:
862 sid = (const SID *)&((const SYSTEM_AUDIT_ACE *)ace)->SidStart;
863 sid_size = ace->AceSize - FIELD_OFFSET(SYSTEM_AUDIT_ACE, SidStart);
864 fprintf( stderr, "SYSTEM_AUDIT_ACE_TYPE,Mask=%x",
865 ((const SYSTEM_AUDIT_ACE *)ace)->Mask );
866 break;
867 case SYSTEM_ALARM_ACE_TYPE:
868 sid = (const SID *)&((const SYSTEM_ALARM_ACE *)ace)->SidStart;
869 sid_size = ace->AceSize - FIELD_OFFSET(SYSTEM_ALARM_ACE, SidStart);
870 fprintf( stderr, "SYSTEM_ALARM_ACE_TYPE,Mask=%x",
871 ((const SYSTEM_ALARM_ACE *)ace)->Mask );
872 break;
873 default:
874 fprintf( stderr, "unknown<%d>", ace->AceType );
875 break;
877 fprintf( stderr, ",AceFlags=%x", ace->AceFlags );
878 if (sid)
879 dump_inline_sid( ",Sid=", sid, sid_size );
880 ace = (const ACE_HEADER *)((const char *)ace + ace->AceSize);
881 fputc( '}', stderr );
884 fputc( '}', stderr );
887 static void dump_varargs_ACL( const char *prefix, data_size_t size )
889 const ACL *acl = cur_data;
890 dump_inline_acl( prefix, acl, size );
891 remove_data( size );
894 static void dump_inline_security_descriptor( const char *prefix, const struct security_descriptor *sd, data_size_t size )
896 fprintf( stderr,"%s{", prefix );
897 if (size >= sizeof(struct security_descriptor))
899 size_t offset = sizeof(struct security_descriptor);
900 fprintf( stderr, "control=%08x", sd->control );
901 if ((sd->owner_len > FIELD_OFFSET(SID, SubAuthority[255])) || (offset + sd->owner_len > size))
902 return;
903 if (sd->owner_len)
904 dump_inline_sid( ",owner=", (const SID *)((const char *)sd + offset), sd->owner_len );
905 else
906 fprintf( stderr, ",owner=<not present>" );
907 offset += sd->owner_len;
908 if ((sd->group_len > FIELD_OFFSET(SID, SubAuthority[255])) || (offset + sd->group_len > size))
909 return;
910 if (sd->group_len)
911 dump_inline_sid( ",group=", (const SID *)((const char *)sd + offset), sd->group_len );
912 else
913 fprintf( stderr, ",group=<not present>" );
914 offset += sd->group_len;
915 if ((sd->sacl_len >= MAX_ACL_LEN) || (offset + sd->sacl_len > size))
916 return;
917 dump_inline_acl( ",sacl=", (const ACL *)((const char *)sd + offset), sd->sacl_len );
918 offset += sd->sacl_len;
919 if ((sd->dacl_len >= MAX_ACL_LEN) || (offset + sd->dacl_len > size))
920 return;
921 dump_inline_acl( ",dacl=", (const ACL *)((const char *)sd + offset), sd->dacl_len );
922 offset += sd->dacl_len;
924 fputc( '}', stderr );
927 static void dump_varargs_security_descriptor( const char *prefix, data_size_t size )
929 const struct security_descriptor *sd = cur_data;
930 dump_inline_security_descriptor( prefix, sd, size );
931 remove_data( size );
934 static void dump_varargs_token_groups( const char *prefix, data_size_t size )
936 const struct token_groups *tg = cur_data;
938 fprintf( stderr,"%s{", prefix );
939 if (size >= sizeof(struct token_groups))
941 size_t offset = sizeof(*tg);
942 fprintf( stderr, "count=%08x,", tg->count );
943 if (tg->count * sizeof(unsigned int) <= size)
945 unsigned int i;
946 const unsigned int *attr = (const unsigned int *)(tg + 1);
948 offset += tg->count * sizeof(unsigned int);
950 fputc( '[', stderr );
951 for (i = 0; i < tg->count; i++)
953 const SID *sid = (const SID *)((const char *)cur_data + offset);
954 if (i != 0)
955 fputc( ',', stderr );
956 fputc( '{', stderr );
957 fprintf( stderr, "attributes=%08x", attr[i] );
958 dump_inline_sid( ",sid=", sid, size - offset );
959 if ((offset + FIELD_OFFSET(SID, SubAuthority[0]) > size) ||
960 (offset + FIELD_OFFSET(SID, SubAuthority[sid->SubAuthorityCount]) > size))
961 break;
962 offset += FIELD_OFFSET(SID, SubAuthority[sid->SubAuthorityCount]);
963 fputc( '}', stderr );
965 fputc( ']', stderr );
968 fputc( '}', stderr );
971 static void dump_varargs_object_attributes( const char *prefix, data_size_t size )
973 const struct object_attributes *objattr = cur_data;
975 fprintf( stderr,"%s{", prefix );
976 if (size >= sizeof(struct object_attributes))
978 const WCHAR *str;
979 fprintf( stderr, "rootdir=%04x", objattr->rootdir );
980 if (objattr->sd_len > size - sizeof(*objattr) ||
981 objattr->name_len > size - sizeof(*objattr) - objattr->sd_len)
982 return;
983 dump_inline_security_descriptor( ",sd=", (const struct security_descriptor *)(objattr + 1), objattr->sd_len );
984 str = (const WCHAR *)objattr + (sizeof(*objattr) + objattr->sd_len) / sizeof(WCHAR);
985 fprintf( stderr, ",name=L\"" );
986 dump_strW( str, objattr->name_len / sizeof(WCHAR), stderr, "\"\"" );
987 fputc( '\"', stderr );
988 remove_data( ((sizeof(*objattr) + objattr->sd_len) / sizeof(WCHAR)) * sizeof(WCHAR) +
989 objattr->name_len );
991 fputc( '}', stderr );
994 static void dump_varargs_filesystem_event( const char *prefix, data_size_t size )
996 static const char * const actions[] = {
997 NULL,
998 "ADDED",
999 "REMOVED",
1000 "MODIFIED",
1001 "RENAMED_OLD_NAME",
1002 "RENAMED_NEW_NAME",
1003 "ADDED_STREAM",
1004 "REMOVED_STREAM",
1005 "MODIFIED_STREAM"
1008 fprintf( stderr,"%s{", prefix );
1009 while (size)
1011 const struct filesystem_event *event = cur_data;
1012 data_size_t len = (offsetof( struct filesystem_event, name[event->len] ) + sizeof(int)-1)
1013 / sizeof(int) * sizeof(int);
1014 if (size < len) break;
1015 if (event->action < sizeof(actions)/sizeof(actions[0]) && actions[event->action])
1016 fprintf( stderr, "{action=%s", actions[event->action] );
1017 else
1018 fprintf( stderr, "{action=%u", event->action );
1019 fprintf( stderr, ",name=\"%.*s\"}", event->len, event->name );
1020 size -= len;
1021 remove_data( len );
1022 if (size)fputc( ',', stderr );
1024 fputc( '}', stderr );
1027 typedef void (*dump_func)( const void *req );
1029 /* Everything below this line is generated automatically by tools/make_requests */
1030 /* ### make_requests begin ### */
1032 static void dump_new_process_request( const struct new_process_request *req )
1034 fprintf( stderr, " inherit_all=%d", req->inherit_all );
1035 fprintf( stderr, ", create_flags=%08x", req->create_flags );
1036 fprintf( stderr, ", socket_fd=%d", req->socket_fd );
1037 fprintf( stderr, ", exe_file=%04x", req->exe_file );
1038 fprintf( stderr, ", process_access=%08x", req->process_access );
1039 fprintf( stderr, ", process_attr=%08x", req->process_attr );
1040 fprintf( stderr, ", thread_access=%08x", req->thread_access );
1041 fprintf( stderr, ", thread_attr=%08x", req->thread_attr );
1042 fprintf( stderr, ", info_size=%u", req->info_size );
1043 dump_varargs_startup_info( ", info=", min(cur_size,req->info_size) );
1044 dump_varargs_unicode_str( ", env=", cur_size );
1047 static void dump_new_process_reply( const struct new_process_reply *req )
1049 fprintf( stderr, " info=%04x", req->info );
1050 fprintf( stderr, ", pid=%04x", req->pid );
1051 fprintf( stderr, ", phandle=%04x", req->phandle );
1052 fprintf( stderr, ", tid=%04x", req->tid );
1053 fprintf( stderr, ", thandle=%04x", req->thandle );
1056 static void dump_get_new_process_info_request( const struct get_new_process_info_request *req )
1058 fprintf( stderr, " info=%04x", req->info );
1061 static void dump_get_new_process_info_reply( const struct get_new_process_info_reply *req )
1063 fprintf( stderr, " success=%d", req->success );
1064 fprintf( stderr, ", exit_code=%d", req->exit_code );
1067 static void dump_new_thread_request( const struct new_thread_request *req )
1069 fprintf( stderr, " access=%08x", req->access );
1070 fprintf( stderr, ", attributes=%08x", req->attributes );
1071 fprintf( stderr, ", suspend=%d", req->suspend );
1072 fprintf( stderr, ", request_fd=%d", req->request_fd );
1075 static void dump_new_thread_reply( const struct new_thread_reply *req )
1077 fprintf( stderr, " tid=%04x", req->tid );
1078 fprintf( stderr, ", handle=%04x", req->handle );
1081 static void dump_get_startup_info_request( const struct get_startup_info_request *req )
1085 static void dump_get_startup_info_reply( const struct get_startup_info_reply *req )
1087 fprintf( stderr, " exe_file=%04x", req->exe_file );
1088 fprintf( stderr, ", info_size=%u", req->info_size );
1089 dump_varargs_startup_info( ", info=", min(cur_size,req->info_size) );
1090 dump_varargs_unicode_str( ", env=", cur_size );
1093 static void dump_init_process_done_request( const struct init_process_done_request *req )
1095 fprintf( stderr, " gui=%d", req->gui );
1096 dump_uint64( ", module=", &req->module );
1097 dump_uint64( ", ldt_copy=", &req->ldt_copy );
1098 dump_uint64( ", entry=", &req->entry );
1101 static void dump_init_thread_request( const struct init_thread_request *req )
1103 fprintf( stderr, " unix_pid=%d", req->unix_pid );
1104 fprintf( stderr, ", unix_tid=%d", req->unix_tid );
1105 fprintf( stderr, ", debug_level=%d", req->debug_level );
1106 dump_uint64( ", teb=", &req->teb );
1107 dump_uint64( ", entry=", &req->entry );
1108 fprintf( stderr, ", reply_fd=%d", req->reply_fd );
1109 fprintf( stderr, ", wait_fd=%d", req->wait_fd );
1110 dump_cpu_type( ", cpu=", &req->cpu );
1113 static void dump_init_thread_reply( const struct init_thread_reply *req )
1115 fprintf( stderr, " pid=%04x", req->pid );
1116 fprintf( stderr, ", tid=%04x", req->tid );
1117 dump_timeout( ", server_start=", &req->server_start );
1118 fprintf( stderr, ", info_size=%u", req->info_size );
1119 fprintf( stderr, ", version=%d", req->version );
1120 fprintf( stderr, ", all_cpus=%08x", req->all_cpus );
1123 static void dump_terminate_process_request( const struct terminate_process_request *req )
1125 fprintf( stderr, " handle=%04x", req->handle );
1126 fprintf( stderr, ", exit_code=%d", req->exit_code );
1129 static void dump_terminate_process_reply( const struct terminate_process_reply *req )
1131 fprintf( stderr, " self=%d", req->self );
1134 static void dump_terminate_thread_request( const struct terminate_thread_request *req )
1136 fprintf( stderr, " handle=%04x", req->handle );
1137 fprintf( stderr, ", exit_code=%d", req->exit_code );
1140 static void dump_terminate_thread_reply( const struct terminate_thread_reply *req )
1142 fprintf( stderr, " self=%d", req->self );
1143 fprintf( stderr, ", last=%d", req->last );
1146 static void dump_get_process_info_request( const struct get_process_info_request *req )
1148 fprintf( stderr, " handle=%04x", req->handle );
1151 static void dump_get_process_info_reply( const struct get_process_info_reply *req )
1153 fprintf( stderr, " pid=%04x", req->pid );
1154 fprintf( stderr, ", ppid=%04x", req->ppid );
1155 dump_uint64( ", affinity=", &req->affinity );
1156 dump_uint64( ", peb=", &req->peb );
1157 dump_timeout( ", start_time=", &req->start_time );
1158 dump_timeout( ", end_time=", &req->end_time );
1159 fprintf( stderr, ", exit_code=%d", req->exit_code );
1160 fprintf( stderr, ", priority=%d", req->priority );
1161 dump_cpu_type( ", cpu=", &req->cpu );
1162 fprintf( stderr, ", debugger_present=%d", req->debugger_present );
1165 static void dump_set_process_info_request( const struct set_process_info_request *req )
1167 fprintf( stderr, " handle=%04x", req->handle );
1168 fprintf( stderr, ", mask=%d", req->mask );
1169 fprintf( stderr, ", priority=%d", req->priority );
1170 dump_uint64( ", affinity=", &req->affinity );
1173 static void dump_get_thread_info_request( const struct get_thread_info_request *req )
1175 fprintf( stderr, " handle=%04x", req->handle );
1176 fprintf( stderr, ", tid_in=%04x", req->tid_in );
1179 static void dump_get_thread_info_reply( const struct get_thread_info_reply *req )
1181 fprintf( stderr, " pid=%04x", req->pid );
1182 fprintf( stderr, ", tid=%04x", req->tid );
1183 dump_uint64( ", teb=", &req->teb );
1184 dump_uint64( ", affinity=", &req->affinity );
1185 dump_timeout( ", creation_time=", &req->creation_time );
1186 dump_timeout( ", exit_time=", &req->exit_time );
1187 fprintf( stderr, ", exit_code=%d", req->exit_code );
1188 fprintf( stderr, ", priority=%d", req->priority );
1189 fprintf( stderr, ", last=%d", req->last );
1192 static void dump_set_thread_info_request( const struct set_thread_info_request *req )
1194 fprintf( stderr, " handle=%04x", req->handle );
1195 fprintf( stderr, ", mask=%d", req->mask );
1196 fprintf( stderr, ", priority=%d", req->priority );
1197 dump_uint64( ", affinity=", &req->affinity );
1198 fprintf( stderr, ", token=%04x", req->token );
1201 static void dump_get_dll_info_request( const struct get_dll_info_request *req )
1203 fprintf( stderr, " handle=%04x", req->handle );
1204 dump_uint64( ", base_address=", &req->base_address );
1207 static void dump_get_dll_info_reply( const struct get_dll_info_reply *req )
1209 dump_uint64( " entry_point=", &req->entry_point );
1210 fprintf( stderr, ", size=%u", req->size );
1211 fprintf( stderr, ", filename_len=%u", req->filename_len );
1212 dump_varargs_unicode_str( ", filename=", cur_size );
1215 static void dump_suspend_thread_request( const struct suspend_thread_request *req )
1217 fprintf( stderr, " handle=%04x", req->handle );
1220 static void dump_suspend_thread_reply( const struct suspend_thread_reply *req )
1222 fprintf( stderr, " count=%d", req->count );
1225 static void dump_resume_thread_request( const struct resume_thread_request *req )
1227 fprintf( stderr, " handle=%04x", req->handle );
1230 static void dump_resume_thread_reply( const struct resume_thread_reply *req )
1232 fprintf( stderr, " count=%d", req->count );
1235 static void dump_load_dll_request( const struct load_dll_request *req )
1237 fprintf( stderr, " handle=%04x", req->handle );
1238 dump_uint64( ", base=", &req->base );
1239 dump_uint64( ", name=", &req->name );
1240 fprintf( stderr, ", size=%u", req->size );
1241 fprintf( stderr, ", dbg_offset=%d", req->dbg_offset );
1242 fprintf( stderr, ", dbg_size=%d", req->dbg_size );
1243 dump_varargs_unicode_str( ", filename=", cur_size );
1246 static void dump_unload_dll_request( const struct unload_dll_request *req )
1248 dump_uint64( " base=", &req->base );
1251 static void dump_queue_apc_request( const struct queue_apc_request *req )
1253 fprintf( stderr, " handle=%04x", req->handle );
1254 dump_apc_call( ", call=", &req->call );
1257 static void dump_queue_apc_reply( const struct queue_apc_reply *req )
1259 fprintf( stderr, " handle=%04x", req->handle );
1260 fprintf( stderr, ", self=%d", req->self );
1263 static void dump_get_apc_result_request( const struct get_apc_result_request *req )
1265 fprintf( stderr, " handle=%04x", req->handle );
1268 static void dump_get_apc_result_reply( const struct get_apc_result_reply *req )
1270 dump_apc_result( " result=", &req->result );
1273 static void dump_close_handle_request( const struct close_handle_request *req )
1275 fprintf( stderr, " handle=%04x", req->handle );
1278 static void dump_set_handle_info_request( const struct set_handle_info_request *req )
1280 fprintf( stderr, " handle=%04x", req->handle );
1281 fprintf( stderr, ", flags=%d", req->flags );
1282 fprintf( stderr, ", mask=%d", req->mask );
1285 static void dump_set_handle_info_reply( const struct set_handle_info_reply *req )
1287 fprintf( stderr, " old_flags=%d", req->old_flags );
1290 static void dump_dup_handle_request( const struct dup_handle_request *req )
1292 fprintf( stderr, " src_process=%04x", req->src_process );
1293 fprintf( stderr, ", src_handle=%04x", req->src_handle );
1294 fprintf( stderr, ", dst_process=%04x", req->dst_process );
1295 fprintf( stderr, ", access=%08x", req->access );
1296 fprintf( stderr, ", attributes=%08x", req->attributes );
1297 fprintf( stderr, ", options=%08x", req->options );
1300 static void dump_dup_handle_reply( const struct dup_handle_reply *req )
1302 fprintf( stderr, " handle=%04x", req->handle );
1303 fprintf( stderr, ", self=%d", req->self );
1304 fprintf( stderr, ", closed=%d", req->closed );
1307 static void dump_open_process_request( const struct open_process_request *req )
1309 fprintf( stderr, " pid=%04x", req->pid );
1310 fprintf( stderr, ", access=%08x", req->access );
1311 fprintf( stderr, ", attributes=%08x", req->attributes );
1314 static void dump_open_process_reply( const struct open_process_reply *req )
1316 fprintf( stderr, " handle=%04x", req->handle );
1319 static void dump_open_thread_request( const struct open_thread_request *req )
1321 fprintf( stderr, " tid=%04x", req->tid );
1322 fprintf( stderr, ", access=%08x", req->access );
1323 fprintf( stderr, ", attributes=%08x", req->attributes );
1326 static void dump_open_thread_reply( const struct open_thread_reply *req )
1328 fprintf( stderr, " handle=%04x", req->handle );
1331 static void dump_select_request( const struct select_request *req )
1333 fprintf( stderr, " flags=%d", req->flags );
1334 dump_uint64( ", cookie=", &req->cookie );
1335 fprintf( stderr, ", signal=%04x", req->signal );
1336 fprintf( stderr, ", prev_apc=%04x", req->prev_apc );
1337 dump_timeout( ", timeout=", &req->timeout );
1338 dump_varargs_apc_result( ", result=", cur_size );
1339 dump_varargs_handles( ", handles=", cur_size );
1342 static void dump_select_reply( const struct select_reply *req )
1344 dump_timeout( " timeout=", &req->timeout );
1345 dump_apc_call( ", call=", &req->call );
1346 fprintf( stderr, ", apc_handle=%04x", req->apc_handle );
1349 static void dump_create_event_request( const struct create_event_request *req )
1351 fprintf( stderr, " access=%08x", req->access );
1352 fprintf( stderr, ", attributes=%08x", req->attributes );
1353 fprintf( stderr, ", manual_reset=%d", req->manual_reset );
1354 fprintf( stderr, ", initial_state=%d", req->initial_state );
1355 dump_varargs_object_attributes( ", objattr=", cur_size );
1358 static void dump_create_event_reply( const struct create_event_reply *req )
1360 fprintf( stderr, " handle=%04x", req->handle );
1363 static void dump_event_op_request( const struct event_op_request *req )
1365 fprintf( stderr, " handle=%04x", req->handle );
1366 fprintf( stderr, ", op=%d", req->op );
1369 static void dump_open_event_request( const struct open_event_request *req )
1371 fprintf( stderr, " access=%08x", req->access );
1372 fprintf( stderr, ", attributes=%08x", req->attributes );
1373 fprintf( stderr, ", rootdir=%04x", req->rootdir );
1374 dump_varargs_unicode_str( ", name=", cur_size );
1377 static void dump_open_event_reply( const struct open_event_reply *req )
1379 fprintf( stderr, " handle=%04x", req->handle );
1382 static void dump_create_mutex_request( const struct create_mutex_request *req )
1384 fprintf( stderr, " access=%08x", req->access );
1385 fprintf( stderr, ", attributes=%08x", req->attributes );
1386 fprintf( stderr, ", owned=%d", req->owned );
1387 dump_varargs_object_attributes( ", objattr=", cur_size );
1390 static void dump_create_mutex_reply( const struct create_mutex_reply *req )
1392 fprintf( stderr, " handle=%04x", req->handle );
1395 static void dump_release_mutex_request( const struct release_mutex_request *req )
1397 fprintf( stderr, " handle=%04x", req->handle );
1400 static void dump_release_mutex_reply( const struct release_mutex_reply *req )
1402 fprintf( stderr, " prev_count=%08x", req->prev_count );
1405 static void dump_open_mutex_request( const struct open_mutex_request *req )
1407 fprintf( stderr, " access=%08x", req->access );
1408 fprintf( stderr, ", attributes=%08x", req->attributes );
1409 fprintf( stderr, ", rootdir=%04x", req->rootdir );
1410 dump_varargs_unicode_str( ", name=", cur_size );
1413 static void dump_open_mutex_reply( const struct open_mutex_reply *req )
1415 fprintf( stderr, " handle=%04x", req->handle );
1418 static void dump_create_semaphore_request( const struct create_semaphore_request *req )
1420 fprintf( stderr, " access=%08x", req->access );
1421 fprintf( stderr, ", attributes=%08x", req->attributes );
1422 fprintf( stderr, ", initial=%08x", req->initial );
1423 fprintf( stderr, ", max=%08x", req->max );
1424 dump_varargs_object_attributes( ", objattr=", cur_size );
1427 static void dump_create_semaphore_reply( const struct create_semaphore_reply *req )
1429 fprintf( stderr, " handle=%04x", req->handle );
1432 static void dump_release_semaphore_request( const struct release_semaphore_request *req )
1434 fprintf( stderr, " handle=%04x", req->handle );
1435 fprintf( stderr, ", count=%08x", req->count );
1438 static void dump_release_semaphore_reply( const struct release_semaphore_reply *req )
1440 fprintf( stderr, " prev_count=%08x", req->prev_count );
1443 static void dump_open_semaphore_request( const struct open_semaphore_request *req )
1445 fprintf( stderr, " access=%08x", req->access );
1446 fprintf( stderr, ", attributes=%08x", req->attributes );
1447 fprintf( stderr, ", rootdir=%04x", req->rootdir );
1448 dump_varargs_unicode_str( ", name=", cur_size );
1451 static void dump_open_semaphore_reply( const struct open_semaphore_reply *req )
1453 fprintf( stderr, " handle=%04x", req->handle );
1456 static void dump_create_file_request( const struct create_file_request *req )
1458 fprintf( stderr, " access=%08x", req->access );
1459 fprintf( stderr, ", attributes=%08x", req->attributes );
1460 fprintf( stderr, ", sharing=%08x", req->sharing );
1461 fprintf( stderr, ", create=%d", req->create );
1462 fprintf( stderr, ", options=%08x", req->options );
1463 fprintf( stderr, ", attrs=%08x", req->attrs );
1464 dump_varargs_object_attributes( ", objattr=", cur_size );
1465 dump_varargs_string( ", filename=", cur_size );
1468 static void dump_create_file_reply( const struct create_file_reply *req )
1470 fprintf( stderr, " handle=%04x", req->handle );
1473 static void dump_open_file_object_request( const struct open_file_object_request *req )
1475 fprintf( stderr, " access=%08x", req->access );
1476 fprintf( stderr, ", attributes=%08x", req->attributes );
1477 fprintf( stderr, ", rootdir=%04x", req->rootdir );
1478 fprintf( stderr, ", sharing=%08x", req->sharing );
1479 fprintf( stderr, ", options=%08x", req->options );
1480 dump_varargs_unicode_str( ", filename=", cur_size );
1483 static void dump_open_file_object_reply( const struct open_file_object_reply *req )
1485 fprintf( stderr, " handle=%04x", req->handle );
1488 static void dump_alloc_file_handle_request( const struct alloc_file_handle_request *req )
1490 fprintf( stderr, " access=%08x", req->access );
1491 fprintf( stderr, ", attributes=%08x", req->attributes );
1492 fprintf( stderr, ", fd=%d", req->fd );
1495 static void dump_alloc_file_handle_reply( const struct alloc_file_handle_reply *req )
1497 fprintf( stderr, " handle=%04x", req->handle );
1500 static void dump_get_handle_unix_name_request( const struct get_handle_unix_name_request *req )
1502 fprintf( stderr, " handle=%04x", req->handle );
1505 static void dump_get_handle_unix_name_reply( const struct get_handle_unix_name_reply *req )
1507 fprintf( stderr, " name_len=%u", req->name_len );
1508 dump_varargs_string( ", name=", cur_size );
1511 static void dump_get_handle_fd_request( const struct get_handle_fd_request *req )
1513 fprintf( stderr, " handle=%04x", req->handle );
1516 static void dump_get_handle_fd_reply( const struct get_handle_fd_reply *req )
1518 fprintf( stderr, " type=%d", req->type );
1519 fprintf( stderr, ", cacheable=%d", req->cacheable );
1520 fprintf( stderr, ", access=%08x", req->access );
1521 fprintf( stderr, ", options=%08x", req->options );
1524 static void dump_flush_file_request( const struct flush_file_request *req )
1526 fprintf( stderr, " handle=%04x", req->handle );
1529 static void dump_flush_file_reply( const struct flush_file_reply *req )
1531 fprintf( stderr, " event=%04x", req->event );
1534 static void dump_lock_file_request( const struct lock_file_request *req )
1536 fprintf( stderr, " handle=%04x", req->handle );
1537 dump_uint64( ", offset=", &req->offset );
1538 dump_uint64( ", count=", &req->count );
1539 fprintf( stderr, ", shared=%d", req->shared );
1540 fprintf( stderr, ", wait=%d", req->wait );
1543 static void dump_lock_file_reply( const struct lock_file_reply *req )
1545 fprintf( stderr, " handle=%04x", req->handle );
1546 fprintf( stderr, ", overlapped=%d", req->overlapped );
1549 static void dump_unlock_file_request( const struct unlock_file_request *req )
1551 fprintf( stderr, " handle=%04x", req->handle );
1552 dump_uint64( ", offset=", &req->offset );
1553 dump_uint64( ", count=", &req->count );
1556 static void dump_create_socket_request( const struct create_socket_request *req )
1558 fprintf( stderr, " access=%08x", req->access );
1559 fprintf( stderr, ", attributes=%08x", req->attributes );
1560 fprintf( stderr, ", family=%d", req->family );
1561 fprintf( stderr, ", type=%d", req->type );
1562 fprintf( stderr, ", protocol=%d", req->protocol );
1563 fprintf( stderr, ", flags=%08x", req->flags );
1566 static void dump_create_socket_reply( const struct create_socket_reply *req )
1568 fprintf( stderr, " handle=%04x", req->handle );
1571 static void dump_accept_socket_request( const struct accept_socket_request *req )
1573 fprintf( stderr, " lhandle=%04x", req->lhandle );
1574 fprintf( stderr, ", access=%08x", req->access );
1575 fprintf( stderr, ", attributes=%08x", req->attributes );
1578 static void dump_accept_socket_reply( const struct accept_socket_reply *req )
1580 fprintf( stderr, " handle=%04x", req->handle );
1583 static void dump_accept_into_socket_request( const struct accept_into_socket_request *req )
1585 fprintf( stderr, " lhandle=%04x", req->lhandle );
1586 fprintf( stderr, ", ahandle=%04x", req->ahandle );
1589 static void dump_set_socket_event_request( const struct set_socket_event_request *req )
1591 fprintf( stderr, " handle=%04x", req->handle );
1592 fprintf( stderr, ", mask=%08x", req->mask );
1593 fprintf( stderr, ", event=%04x", req->event );
1594 fprintf( stderr, ", window=%08x", req->window );
1595 fprintf( stderr, ", msg=%08x", req->msg );
1598 static void dump_get_socket_event_request( const struct get_socket_event_request *req )
1600 fprintf( stderr, " handle=%04x", req->handle );
1601 fprintf( stderr, ", service=%d", req->service );
1602 fprintf( stderr, ", c_event=%04x", req->c_event );
1605 static void dump_get_socket_event_reply( const struct get_socket_event_reply *req )
1607 fprintf( stderr, " mask=%08x", req->mask );
1608 fprintf( stderr, ", pmask=%08x", req->pmask );
1609 fprintf( stderr, ", state=%08x", req->state );
1610 dump_varargs_ints( ", errors=", cur_size );
1613 static void dump_enable_socket_event_request( const struct enable_socket_event_request *req )
1615 fprintf( stderr, " handle=%04x", req->handle );
1616 fprintf( stderr, ", mask=%08x", req->mask );
1617 fprintf( stderr, ", sstate=%08x", req->sstate );
1618 fprintf( stderr, ", cstate=%08x", req->cstate );
1621 static void dump_set_socket_deferred_request( const struct set_socket_deferred_request *req )
1623 fprintf( stderr, " handle=%04x", req->handle );
1624 fprintf( stderr, ", deferred=%04x", req->deferred );
1627 static void dump_alloc_console_request( const struct alloc_console_request *req )
1629 fprintf( stderr, " access=%08x", req->access );
1630 fprintf( stderr, ", attributes=%08x", req->attributes );
1631 fprintf( stderr, ", pid=%04x", req->pid );
1632 fprintf( stderr, ", input_fd=%d", req->input_fd );
1635 static void dump_alloc_console_reply( const struct alloc_console_reply *req )
1637 fprintf( stderr, " handle_in=%04x", req->handle_in );
1638 fprintf( stderr, ", event=%04x", req->event );
1641 static void dump_free_console_request( const struct free_console_request *req )
1645 static void dump_get_console_renderer_events_request( const struct get_console_renderer_events_request *req )
1647 fprintf( stderr, " handle=%04x", req->handle );
1650 static void dump_get_console_renderer_events_reply( const struct get_console_renderer_events_reply *req )
1652 dump_varargs_bytes( " data=", cur_size );
1655 static void dump_open_console_request( const struct open_console_request *req )
1657 fprintf( stderr, " from=%04x", req->from );
1658 fprintf( stderr, ", access=%08x", req->access );
1659 fprintf( stderr, ", attributes=%08x", req->attributes );
1660 fprintf( stderr, ", share=%d", req->share );
1663 static void dump_open_console_reply( const struct open_console_reply *req )
1665 fprintf( stderr, " handle=%04x", req->handle );
1668 static void dump_get_console_wait_event_request( const struct get_console_wait_event_request *req )
1672 static void dump_get_console_wait_event_reply( const struct get_console_wait_event_reply *req )
1674 fprintf( stderr, " handle=%04x", req->handle );
1677 static void dump_get_console_mode_request( const struct get_console_mode_request *req )
1679 fprintf( stderr, " handle=%04x", req->handle );
1682 static void dump_get_console_mode_reply( const struct get_console_mode_reply *req )
1684 fprintf( stderr, " mode=%d", req->mode );
1687 static void dump_set_console_mode_request( const struct set_console_mode_request *req )
1689 fprintf( stderr, " handle=%04x", req->handle );
1690 fprintf( stderr, ", mode=%d", req->mode );
1693 static void dump_set_console_input_info_request( const struct set_console_input_info_request *req )
1695 fprintf( stderr, " handle=%04x", req->handle );
1696 fprintf( stderr, ", mask=%d", req->mask );
1697 fprintf( stderr, ", active_sb=%04x", req->active_sb );
1698 fprintf( stderr, ", history_mode=%d", req->history_mode );
1699 fprintf( stderr, ", history_size=%d", req->history_size );
1700 fprintf( stderr, ", edition_mode=%d", req->edition_mode );
1701 fprintf( stderr, ", input_cp=%d", req->input_cp );
1702 fprintf( stderr, ", output_cp=%d", req->output_cp );
1703 fprintf( stderr, ", win=%08x", req->win );
1704 dump_varargs_unicode_str( ", title=", cur_size );
1707 static void dump_get_console_input_info_request( const struct get_console_input_info_request *req )
1709 fprintf( stderr, " handle=%04x", req->handle );
1712 static void dump_get_console_input_info_reply( const struct get_console_input_info_reply *req )
1714 fprintf( stderr, " history_mode=%d", req->history_mode );
1715 fprintf( stderr, ", history_size=%d", req->history_size );
1716 fprintf( stderr, ", history_index=%d", req->history_index );
1717 fprintf( stderr, ", edition_mode=%d", req->edition_mode );
1718 fprintf( stderr, ", input_cp=%d", req->input_cp );
1719 fprintf( stderr, ", output_cp=%d", req->output_cp );
1720 fprintf( stderr, ", win=%08x", req->win );
1721 dump_varargs_unicode_str( ", title=", cur_size );
1724 static void dump_append_console_input_history_request( const struct append_console_input_history_request *req )
1726 fprintf( stderr, " handle=%04x", req->handle );
1727 dump_varargs_unicode_str( ", line=", cur_size );
1730 static void dump_get_console_input_history_request( const struct get_console_input_history_request *req )
1732 fprintf( stderr, " handle=%04x", req->handle );
1733 fprintf( stderr, ", index=%d", req->index );
1736 static void dump_get_console_input_history_reply( const struct get_console_input_history_reply *req )
1738 fprintf( stderr, " total=%d", req->total );
1739 dump_varargs_unicode_str( ", line=", cur_size );
1742 static void dump_create_console_output_request( const struct create_console_output_request *req )
1744 fprintf( stderr, " handle_in=%04x", req->handle_in );
1745 fprintf( stderr, ", access=%08x", req->access );
1746 fprintf( stderr, ", attributes=%08x", req->attributes );
1747 fprintf( stderr, ", share=%08x", req->share );
1748 fprintf( stderr, ", fd=%d", req->fd );
1751 static void dump_create_console_output_reply( const struct create_console_output_reply *req )
1753 fprintf( stderr, " handle_out=%04x", req->handle_out );
1756 static void dump_set_console_output_info_request( const struct set_console_output_info_request *req )
1758 fprintf( stderr, " handle=%04x", req->handle );
1759 fprintf( stderr, ", mask=%d", req->mask );
1760 fprintf( stderr, ", cursor_size=%d", req->cursor_size );
1761 fprintf( stderr, ", cursor_visible=%d", req->cursor_visible );
1762 fprintf( stderr, ", cursor_x=%d", req->cursor_x );
1763 fprintf( stderr, ", cursor_y=%d", req->cursor_y );
1764 fprintf( stderr, ", width=%d", req->width );
1765 fprintf( stderr, ", height=%d", req->height );
1766 fprintf( stderr, ", attr=%d", req->attr );
1767 fprintf( stderr, ", win_left=%d", req->win_left );
1768 fprintf( stderr, ", win_top=%d", req->win_top );
1769 fprintf( stderr, ", win_right=%d", req->win_right );
1770 fprintf( stderr, ", win_bottom=%d", req->win_bottom );
1771 fprintf( stderr, ", max_width=%d", req->max_width );
1772 fprintf( stderr, ", max_height=%d", req->max_height );
1775 static void dump_get_console_output_info_request( const struct get_console_output_info_request *req )
1777 fprintf( stderr, " handle=%04x", req->handle );
1780 static void dump_get_console_output_info_reply( const struct get_console_output_info_reply *req )
1782 fprintf( stderr, " cursor_size=%d", req->cursor_size );
1783 fprintf( stderr, ", cursor_visible=%d", req->cursor_visible );
1784 fprintf( stderr, ", cursor_x=%d", req->cursor_x );
1785 fprintf( stderr, ", cursor_y=%d", req->cursor_y );
1786 fprintf( stderr, ", width=%d", req->width );
1787 fprintf( stderr, ", height=%d", req->height );
1788 fprintf( stderr, ", attr=%d", req->attr );
1789 fprintf( stderr, ", win_left=%d", req->win_left );
1790 fprintf( stderr, ", win_top=%d", req->win_top );
1791 fprintf( stderr, ", win_right=%d", req->win_right );
1792 fprintf( stderr, ", win_bottom=%d", req->win_bottom );
1793 fprintf( stderr, ", max_width=%d", req->max_width );
1794 fprintf( stderr, ", max_height=%d", req->max_height );
1797 static void dump_write_console_input_request( const struct write_console_input_request *req )
1799 fprintf( stderr, " handle=%04x", req->handle );
1800 dump_varargs_input_records( ", rec=", cur_size );
1803 static void dump_write_console_input_reply( const struct write_console_input_reply *req )
1805 fprintf( stderr, " written=%d", req->written );
1808 static void dump_read_console_input_request( const struct read_console_input_request *req )
1810 fprintf( stderr, " handle=%04x", req->handle );
1811 fprintf( stderr, ", flush=%d", req->flush );
1814 static void dump_read_console_input_reply( const struct read_console_input_reply *req )
1816 fprintf( stderr, " read=%d", req->read );
1817 dump_varargs_input_records( ", rec=", cur_size );
1820 static void dump_write_console_output_request( const struct write_console_output_request *req )
1822 fprintf( stderr, " handle=%04x", req->handle );
1823 fprintf( stderr, ", x=%d", req->x );
1824 fprintf( stderr, ", y=%d", req->y );
1825 fprintf( stderr, ", mode=%d", req->mode );
1826 fprintf( stderr, ", wrap=%d", req->wrap );
1827 dump_varargs_bytes( ", data=", cur_size );
1830 static void dump_write_console_output_reply( const struct write_console_output_reply *req )
1832 fprintf( stderr, " written=%d", req->written );
1833 fprintf( stderr, ", width=%d", req->width );
1834 fprintf( stderr, ", height=%d", req->height );
1837 static void dump_fill_console_output_request( const struct fill_console_output_request *req )
1839 fprintf( stderr, " handle=%04x", req->handle );
1840 fprintf( stderr, ", x=%d", req->x );
1841 fprintf( stderr, ", y=%d", req->y );
1842 fprintf( stderr, ", mode=%d", req->mode );
1843 fprintf( stderr, ", count=%d", req->count );
1844 fprintf( stderr, ", wrap=%d", req->wrap );
1845 dump_char_info( ", data=", &req->data );
1848 static void dump_fill_console_output_reply( const struct fill_console_output_reply *req )
1850 fprintf( stderr, " written=%d", req->written );
1853 static void dump_read_console_output_request( const struct read_console_output_request *req )
1855 fprintf( stderr, " handle=%04x", req->handle );
1856 fprintf( stderr, ", x=%d", req->x );
1857 fprintf( stderr, ", y=%d", req->y );
1858 fprintf( stderr, ", mode=%d", req->mode );
1859 fprintf( stderr, ", wrap=%d", req->wrap );
1862 static void dump_read_console_output_reply( const struct read_console_output_reply *req )
1864 fprintf( stderr, " width=%d", req->width );
1865 fprintf( stderr, ", height=%d", req->height );
1866 dump_varargs_bytes( ", data=", cur_size );
1869 static void dump_move_console_output_request( const struct move_console_output_request *req )
1871 fprintf( stderr, " handle=%04x", req->handle );
1872 fprintf( stderr, ", x_src=%d", req->x_src );
1873 fprintf( stderr, ", y_src=%d", req->y_src );
1874 fprintf( stderr, ", x_dst=%d", req->x_dst );
1875 fprintf( stderr, ", y_dst=%d", req->y_dst );
1876 fprintf( stderr, ", w=%d", req->w );
1877 fprintf( stderr, ", h=%d", req->h );
1880 static void dump_send_console_signal_request( const struct send_console_signal_request *req )
1882 fprintf( stderr, " signal=%d", req->signal );
1883 fprintf( stderr, ", group_id=%04x", req->group_id );
1886 static void dump_read_directory_changes_request( const struct read_directory_changes_request *req )
1888 fprintf( stderr, " filter=%08x", req->filter );
1889 fprintf( stderr, ", subtree=%d", req->subtree );
1890 fprintf( stderr, ", want_data=%d", req->want_data );
1891 dump_async_data( ", async=", &req->async );
1894 static void dump_read_change_request( const struct read_change_request *req )
1896 fprintf( stderr, " handle=%04x", req->handle );
1899 static void dump_read_change_reply( const struct read_change_reply *req )
1901 dump_varargs_filesystem_event( " events=", cur_size );
1904 static void dump_create_mapping_request( const struct create_mapping_request *req )
1906 fprintf( stderr, " access=%08x", req->access );
1907 fprintf( stderr, ", attributes=%08x", req->attributes );
1908 fprintf( stderr, ", protect=%08x", req->protect );
1909 dump_uint64( ", size=", &req->size );
1910 fprintf( stderr, ", file_handle=%04x", req->file_handle );
1911 dump_varargs_object_attributes( ", objattr=", cur_size );
1914 static void dump_create_mapping_reply( const struct create_mapping_reply *req )
1916 fprintf( stderr, " handle=%04x", req->handle );
1919 static void dump_open_mapping_request( const struct open_mapping_request *req )
1921 fprintf( stderr, " access=%08x", req->access );
1922 fprintf( stderr, ", attributes=%08x", req->attributes );
1923 fprintf( stderr, ", rootdir=%04x", req->rootdir );
1924 dump_varargs_unicode_str( ", name=", cur_size );
1927 static void dump_open_mapping_reply( const struct open_mapping_reply *req )
1929 fprintf( stderr, " handle=%04x", req->handle );
1932 static void dump_get_mapping_info_request( const struct get_mapping_info_request *req )
1934 fprintf( stderr, " handle=%04x", req->handle );
1935 fprintf( stderr, ", access=%08x", req->access );
1938 static void dump_get_mapping_info_reply( const struct get_mapping_info_reply *req )
1940 dump_uint64( " size=", &req->size );
1941 fprintf( stderr, ", protect=%d", req->protect );
1942 fprintf( stderr, ", header_size=%d", req->header_size );
1943 dump_uint64( ", base=", &req->base );
1944 fprintf( stderr, ", mapping=%04x", req->mapping );
1945 fprintf( stderr, ", shared_file=%04x", req->shared_file );
1948 static void dump_get_mapping_committed_range_request( const struct get_mapping_committed_range_request *req )
1950 fprintf( stderr, " handle=%04x", req->handle );
1951 dump_uint64( ", offset=", &req->offset );
1954 static void dump_get_mapping_committed_range_reply( const struct get_mapping_committed_range_reply *req )
1956 dump_uint64( " size=", &req->size );
1957 fprintf( stderr, ", committed=%d", req->committed );
1960 static void dump_add_mapping_committed_range_request( const struct add_mapping_committed_range_request *req )
1962 fprintf( stderr, " handle=%04x", req->handle );
1963 dump_uint64( ", offset=", &req->offset );
1964 dump_uint64( ", size=", &req->size );
1967 static void dump_create_snapshot_request( const struct create_snapshot_request *req )
1969 fprintf( stderr, " attributes=%08x", req->attributes );
1970 fprintf( stderr, ", flags=%08x", req->flags );
1973 static void dump_create_snapshot_reply( const struct create_snapshot_reply *req )
1975 fprintf( stderr, " handle=%04x", req->handle );
1978 static void dump_next_process_request( const struct next_process_request *req )
1980 fprintf( stderr, " handle=%04x", req->handle );
1981 fprintf( stderr, ", reset=%d", req->reset );
1984 static void dump_next_process_reply( const struct next_process_reply *req )
1986 fprintf( stderr, " count=%d", req->count );
1987 fprintf( stderr, ", pid=%04x", req->pid );
1988 fprintf( stderr, ", ppid=%04x", req->ppid );
1989 fprintf( stderr, ", threads=%d", req->threads );
1990 fprintf( stderr, ", priority=%d", req->priority );
1991 fprintf( stderr, ", handles=%d", req->handles );
1992 dump_varargs_unicode_str( ", filename=", cur_size );
1995 static void dump_next_thread_request( const struct next_thread_request *req )
1997 fprintf( stderr, " handle=%04x", req->handle );
1998 fprintf( stderr, ", reset=%d", req->reset );
2001 static void dump_next_thread_reply( const struct next_thread_reply *req )
2003 fprintf( stderr, " count=%d", req->count );
2004 fprintf( stderr, ", pid=%04x", req->pid );
2005 fprintf( stderr, ", tid=%04x", req->tid );
2006 fprintf( stderr, ", base_pri=%d", req->base_pri );
2007 fprintf( stderr, ", delta_pri=%d", req->delta_pri );
2010 static void dump_wait_debug_event_request( const struct wait_debug_event_request *req )
2012 fprintf( stderr, " get_handle=%d", req->get_handle );
2015 static void dump_wait_debug_event_reply( const struct wait_debug_event_reply *req )
2017 fprintf( stderr, " pid=%04x", req->pid );
2018 fprintf( stderr, ", tid=%04x", req->tid );
2019 fprintf( stderr, ", wait=%04x", req->wait );
2020 dump_varargs_debug_event( ", event=", cur_size );
2023 static void dump_queue_exception_event_request( const struct queue_exception_event_request *req )
2025 fprintf( stderr, " first=%d", req->first );
2026 fprintf( stderr, ", code=%08x", req->code );
2027 fprintf( stderr, ", flags=%08x", req->flags );
2028 dump_uint64( ", record=", &req->record );
2029 dump_uint64( ", address=", &req->address );
2030 fprintf( stderr, ", len=%u", req->len );
2031 dump_varargs_uints64( ", params=", min(cur_size,req->len) );
2032 dump_varargs_context( ", context=", cur_size );
2035 static void dump_queue_exception_event_reply( const struct queue_exception_event_reply *req )
2037 fprintf( stderr, " handle=%04x", req->handle );
2040 static void dump_get_exception_status_request( const struct get_exception_status_request *req )
2042 fprintf( stderr, " handle=%04x", req->handle );
2045 static void dump_get_exception_status_reply( const struct get_exception_status_reply *req )
2047 dump_varargs_context( " context=", cur_size );
2050 static void dump_output_debug_string_request( const struct output_debug_string_request *req )
2052 fprintf( stderr, " length=%u", req->length );
2053 dump_uint64( ", string=", &req->string );
2056 static void dump_continue_debug_event_request( const struct continue_debug_event_request *req )
2058 fprintf( stderr, " pid=%04x", req->pid );
2059 fprintf( stderr, ", tid=%04x", req->tid );
2060 fprintf( stderr, ", status=%d", req->status );
2063 static void dump_debug_process_request( const struct debug_process_request *req )
2065 fprintf( stderr, " pid=%04x", req->pid );
2066 fprintf( stderr, ", attach=%d", req->attach );
2069 static void dump_debug_break_request( const struct debug_break_request *req )
2071 fprintf( stderr, " handle=%04x", req->handle );
2074 static void dump_debug_break_reply( const struct debug_break_reply *req )
2076 fprintf( stderr, " self=%d", req->self );
2079 static void dump_set_debugger_kill_on_exit_request( const struct set_debugger_kill_on_exit_request *req )
2081 fprintf( stderr, " kill_on_exit=%d", req->kill_on_exit );
2084 static void dump_read_process_memory_request( const struct read_process_memory_request *req )
2086 fprintf( stderr, " handle=%04x", req->handle );
2087 dump_uint64( ", addr=", &req->addr );
2090 static void dump_read_process_memory_reply( const struct read_process_memory_reply *req )
2092 dump_varargs_bytes( " data=", cur_size );
2095 static void dump_write_process_memory_request( const struct write_process_memory_request *req )
2097 fprintf( stderr, " handle=%04x", req->handle );
2098 dump_uint64( ", addr=", &req->addr );
2099 dump_varargs_bytes( ", data=", cur_size );
2102 static void dump_create_key_request( const struct create_key_request *req )
2104 fprintf( stderr, " parent=%04x", req->parent );
2105 fprintf( stderr, ", access=%08x", req->access );
2106 fprintf( stderr, ", attributes=%08x", req->attributes );
2107 fprintf( stderr, ", options=%08x", req->options );
2108 fprintf( stderr, ", namelen=%u", req->namelen );
2109 dump_varargs_unicode_str( ", name=", min(cur_size,req->namelen) );
2110 dump_varargs_unicode_str( ", class=", cur_size );
2113 static void dump_create_key_reply( const struct create_key_reply *req )
2115 fprintf( stderr, " hkey=%04x", req->hkey );
2116 fprintf( stderr, ", created=%d", req->created );
2119 static void dump_open_key_request( const struct open_key_request *req )
2121 fprintf( stderr, " parent=%04x", req->parent );
2122 fprintf( stderr, ", access=%08x", req->access );
2123 fprintf( stderr, ", attributes=%08x", req->attributes );
2124 dump_varargs_unicode_str( ", name=", cur_size );
2127 static void dump_open_key_reply( const struct open_key_reply *req )
2129 fprintf( stderr, " hkey=%04x", req->hkey );
2132 static void dump_delete_key_request( const struct delete_key_request *req )
2134 fprintf( stderr, " hkey=%04x", req->hkey );
2137 static void dump_flush_key_request( const struct flush_key_request *req )
2139 fprintf( stderr, " hkey=%04x", req->hkey );
2142 static void dump_enum_key_request( const struct enum_key_request *req )
2144 fprintf( stderr, " hkey=%04x", req->hkey );
2145 fprintf( stderr, ", index=%d", req->index );
2146 fprintf( stderr, ", info_class=%d", req->info_class );
2149 static void dump_enum_key_reply( const struct enum_key_reply *req )
2151 fprintf( stderr, " subkeys=%d", req->subkeys );
2152 fprintf( stderr, ", max_subkey=%d", req->max_subkey );
2153 fprintf( stderr, ", max_class=%d", req->max_class );
2154 fprintf( stderr, ", values=%d", req->values );
2155 fprintf( stderr, ", max_value=%d", req->max_value );
2156 fprintf( stderr, ", max_data=%d", req->max_data );
2157 dump_timeout( ", modif=", &req->modif );
2158 fprintf( stderr, ", total=%u", req->total );
2159 fprintf( stderr, ", namelen=%u", req->namelen );
2160 dump_varargs_unicode_str( ", name=", min(cur_size,req->namelen) );
2161 dump_varargs_unicode_str( ", class=", cur_size );
2164 static void dump_set_key_value_request( const struct set_key_value_request *req )
2166 fprintf( stderr, " hkey=%04x", req->hkey );
2167 fprintf( stderr, ", type=%d", req->type );
2168 fprintf( stderr, ", namelen=%u", req->namelen );
2169 dump_varargs_unicode_str( ", name=", min(cur_size,req->namelen) );
2170 dump_varargs_bytes( ", data=", cur_size );
2173 static void dump_get_key_value_request( const struct get_key_value_request *req )
2175 fprintf( stderr, " hkey=%04x", req->hkey );
2176 dump_varargs_unicode_str( ", name=", cur_size );
2179 static void dump_get_key_value_reply( const struct get_key_value_reply *req )
2181 fprintf( stderr, " type=%d", req->type );
2182 fprintf( stderr, ", total=%u", req->total );
2183 dump_varargs_bytes( ", data=", cur_size );
2186 static void dump_enum_key_value_request( const struct enum_key_value_request *req )
2188 fprintf( stderr, " hkey=%04x", req->hkey );
2189 fprintf( stderr, ", index=%d", req->index );
2190 fprintf( stderr, ", info_class=%d", req->info_class );
2193 static void dump_enum_key_value_reply( const struct enum_key_value_reply *req )
2195 fprintf( stderr, " type=%d", req->type );
2196 fprintf( stderr, ", total=%u", req->total );
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_delete_key_value_request( const struct delete_key_value_request *req )
2204 fprintf( stderr, " hkey=%04x", req->hkey );
2205 dump_varargs_unicode_str( ", name=", cur_size );
2208 static void dump_load_registry_request( const struct load_registry_request *req )
2210 fprintf( stderr, " hkey=%04x", req->hkey );
2211 fprintf( stderr, ", file=%04x", req->file );
2212 dump_varargs_unicode_str( ", name=", cur_size );
2215 static void dump_unload_registry_request( const struct unload_registry_request *req )
2217 fprintf( stderr, " hkey=%04x", req->hkey );
2220 static void dump_save_registry_request( const struct save_registry_request *req )
2222 fprintf( stderr, " hkey=%04x", req->hkey );
2223 fprintf( stderr, ", file=%04x", req->file );
2226 static void dump_set_registry_notification_request( const struct set_registry_notification_request *req )
2228 fprintf( stderr, " hkey=%04x", req->hkey );
2229 fprintf( stderr, ", event=%04x", req->event );
2230 fprintf( stderr, ", subtree=%d", req->subtree );
2231 fprintf( stderr, ", filter=%08x", req->filter );
2234 static void dump_create_timer_request( const struct create_timer_request *req )
2236 fprintf( stderr, " access=%08x", req->access );
2237 fprintf( stderr, ", attributes=%08x", req->attributes );
2238 fprintf( stderr, ", rootdir=%04x", req->rootdir );
2239 fprintf( stderr, ", manual=%d", req->manual );
2240 dump_varargs_unicode_str( ", name=", cur_size );
2243 static void dump_create_timer_reply( const struct create_timer_reply *req )
2245 fprintf( stderr, " handle=%04x", req->handle );
2248 static void dump_open_timer_request( const struct open_timer_request *req )
2250 fprintf( stderr, " access=%08x", req->access );
2251 fprintf( stderr, ", attributes=%08x", req->attributes );
2252 fprintf( stderr, ", rootdir=%04x", req->rootdir );
2253 dump_varargs_unicode_str( ", name=", cur_size );
2256 static void dump_open_timer_reply( const struct open_timer_reply *req )
2258 fprintf( stderr, " handle=%04x", req->handle );
2261 static void dump_set_timer_request( const struct set_timer_request *req )
2263 fprintf( stderr, " handle=%04x", req->handle );
2264 dump_timeout( ", expire=", &req->expire );
2265 dump_uint64( ", callback=", &req->callback );
2266 dump_uint64( ", arg=", &req->arg );
2267 fprintf( stderr, ", period=%d", req->period );
2270 static void dump_set_timer_reply( const struct set_timer_reply *req )
2272 fprintf( stderr, " signaled=%d", req->signaled );
2275 static void dump_cancel_timer_request( const struct cancel_timer_request *req )
2277 fprintf( stderr, " handle=%04x", req->handle );
2280 static void dump_cancel_timer_reply( const struct cancel_timer_reply *req )
2282 fprintf( stderr, " signaled=%d", req->signaled );
2285 static void dump_get_timer_info_request( const struct get_timer_info_request *req )
2287 fprintf( stderr, " handle=%04x", req->handle );
2290 static void dump_get_timer_info_reply( const struct get_timer_info_reply *req )
2292 dump_timeout( " when=", &req->when );
2293 fprintf( stderr, ", signaled=%d", req->signaled );
2296 static void dump_get_thread_context_request( const struct get_thread_context_request *req )
2298 fprintf( stderr, " handle=%04x", req->handle );
2299 fprintf( stderr, ", flags=%08x", req->flags );
2300 fprintf( stderr, ", suspend=%d", req->suspend );
2303 static void dump_get_thread_context_reply( const struct get_thread_context_reply *req )
2305 fprintf( stderr, " self=%d", req->self );
2306 dump_varargs_context( ", context=", cur_size );
2309 static void dump_set_thread_context_request( const struct set_thread_context_request *req )
2311 fprintf( stderr, " handle=%04x", req->handle );
2312 fprintf( stderr, ", suspend=%d", req->suspend );
2313 dump_varargs_context( ", context=", cur_size );
2316 static void dump_set_thread_context_reply( const struct set_thread_context_reply *req )
2318 fprintf( stderr, " self=%d", req->self );
2321 static void dump_get_selector_entry_request( const struct get_selector_entry_request *req )
2323 fprintf( stderr, " handle=%04x", req->handle );
2324 fprintf( stderr, ", entry=%d", req->entry );
2327 static void dump_get_selector_entry_reply( const struct get_selector_entry_reply *req )
2329 fprintf( stderr, " base=%08x", req->base );
2330 fprintf( stderr, ", limit=%08x", req->limit );
2331 fprintf( stderr, ", flags=%02x", req->flags );
2334 static void dump_add_atom_request( const struct add_atom_request *req )
2336 fprintf( stderr, " table=%04x", req->table );
2337 dump_varargs_unicode_str( ", name=", cur_size );
2340 static void dump_add_atom_reply( const struct add_atom_reply *req )
2342 fprintf( stderr, " atom=%04x", req->atom );
2345 static void dump_delete_atom_request( const struct delete_atom_request *req )
2347 fprintf( stderr, " table=%04x", req->table );
2348 fprintf( stderr, ", atom=%04x", req->atom );
2351 static void dump_find_atom_request( const struct find_atom_request *req )
2353 fprintf( stderr, " table=%04x", req->table );
2354 dump_varargs_unicode_str( ", name=", cur_size );
2357 static void dump_find_atom_reply( const struct find_atom_reply *req )
2359 fprintf( stderr, " atom=%04x", req->atom );
2362 static void dump_get_atom_information_request( const struct get_atom_information_request *req )
2364 fprintf( stderr, " table=%04x", req->table );
2365 fprintf( stderr, ", atom=%04x", req->atom );
2368 static void dump_get_atom_information_reply( const struct get_atom_information_reply *req )
2370 fprintf( stderr, " count=%d", req->count );
2371 fprintf( stderr, ", pinned=%d", req->pinned );
2372 fprintf( stderr, ", total=%u", req->total );
2373 dump_varargs_unicode_str( ", name=", cur_size );
2376 static void dump_set_atom_information_request( const struct set_atom_information_request *req )
2378 fprintf( stderr, " table=%04x", req->table );
2379 fprintf( stderr, ", atom=%04x", req->atom );
2380 fprintf( stderr, ", pinned=%d", req->pinned );
2383 static void dump_empty_atom_table_request( const struct empty_atom_table_request *req )
2385 fprintf( stderr, " table=%04x", req->table );
2386 fprintf( stderr, ", if_pinned=%d", req->if_pinned );
2389 static void dump_init_atom_table_request( const struct init_atom_table_request *req )
2391 fprintf( stderr, " entries=%d", req->entries );
2394 static void dump_init_atom_table_reply( const struct init_atom_table_reply *req )
2396 fprintf( stderr, " table=%04x", req->table );
2399 static void dump_get_msg_queue_request( const struct get_msg_queue_request *req )
2403 static void dump_get_msg_queue_reply( const struct get_msg_queue_reply *req )
2405 fprintf( stderr, " handle=%04x", req->handle );
2408 static void dump_set_queue_fd_request( const struct set_queue_fd_request *req )
2410 fprintf( stderr, " handle=%04x", req->handle );
2413 static void dump_set_queue_mask_request( const struct set_queue_mask_request *req )
2415 fprintf( stderr, " wake_mask=%08x", req->wake_mask );
2416 fprintf( stderr, ", changed_mask=%08x", req->changed_mask );
2417 fprintf( stderr, ", skip_wait=%d", req->skip_wait );
2420 static void dump_set_queue_mask_reply( const struct set_queue_mask_reply *req )
2422 fprintf( stderr, " wake_bits=%08x", req->wake_bits );
2423 fprintf( stderr, ", changed_bits=%08x", req->changed_bits );
2426 static void dump_get_queue_status_request( const struct get_queue_status_request *req )
2428 fprintf( stderr, " clear=%d", req->clear );
2431 static void dump_get_queue_status_reply( const struct get_queue_status_reply *req )
2433 fprintf( stderr, " wake_bits=%08x", req->wake_bits );
2434 fprintf( stderr, ", changed_bits=%08x", req->changed_bits );
2437 static void dump_get_process_idle_event_request( const struct get_process_idle_event_request *req )
2439 fprintf( stderr, " handle=%04x", req->handle );
2442 static void dump_get_process_idle_event_reply( const struct get_process_idle_event_reply *req )
2444 fprintf( stderr, " event=%04x", req->event );
2447 static void dump_send_message_request( const struct send_message_request *req )
2449 fprintf( stderr, " id=%04x", req->id );
2450 fprintf( stderr, ", type=%d", req->type );
2451 fprintf( stderr, ", flags=%d", req->flags );
2452 fprintf( stderr, ", win=%08x", req->win );
2453 fprintf( stderr, ", msg=%08x", req->msg );
2454 dump_uint64( ", wparam=", &req->wparam );
2455 dump_uint64( ", lparam=", &req->lparam );
2456 dump_timeout( ", timeout=", &req->timeout );
2457 dump_varargs_message_data( ", data=", cur_size );
2460 static void dump_post_quit_message_request( const struct post_quit_message_request *req )
2462 fprintf( stderr, " exit_code=%d", req->exit_code );
2465 static void dump_send_hardware_message_request( const struct send_hardware_message_request *req )
2467 fprintf( stderr, " id=%04x", req->id );
2468 fprintf( stderr, ", win=%08x", req->win );
2469 fprintf( stderr, ", msg=%08x", req->msg );
2470 dump_uint64( ", wparam=", &req->wparam );
2471 dump_uint64( ", lparam=", &req->lparam );
2472 dump_uint64( ", info=", &req->info );
2473 fprintf( stderr, ", x=%d", req->x );
2474 fprintf( stderr, ", y=%d", req->y );
2475 fprintf( stderr, ", time=%08x", req->time );
2478 static void dump_send_hardware_message_reply( const struct send_hardware_message_reply *req )
2480 fprintf( stderr, " cursor=%08x", req->cursor );
2481 fprintf( stderr, ", count=%d", req->count );
2484 static void dump_get_message_request( const struct get_message_request *req )
2486 fprintf( stderr, " flags=%08x", req->flags );
2487 fprintf( stderr, ", get_win=%08x", req->get_win );
2488 fprintf( stderr, ", get_first=%08x", req->get_first );
2489 fprintf( stderr, ", get_last=%08x", req->get_last );
2490 fprintf( stderr, ", hw_id=%08x", req->hw_id );
2491 fprintf( stderr, ", wake_mask=%08x", req->wake_mask );
2492 fprintf( stderr, ", changed_mask=%08x", req->changed_mask );
2495 static void dump_get_message_reply( const struct get_message_reply *req )
2497 fprintf( stderr, " win=%08x", req->win );
2498 fprintf( stderr, ", msg=%08x", req->msg );
2499 dump_uint64( ", wparam=", &req->wparam );
2500 dump_uint64( ", lparam=", &req->lparam );
2501 fprintf( stderr, ", type=%d", req->type );
2502 fprintf( stderr, ", time=%08x", req->time );
2503 fprintf( stderr, ", active_hooks=%08x", req->active_hooks );
2504 fprintf( stderr, ", total=%u", req->total );
2505 dump_varargs_message_data( ", data=", cur_size );
2508 static void dump_reply_message_request( const struct reply_message_request *req )
2510 fprintf( stderr, " remove=%d", req->remove );
2511 dump_uint64( ", result=", &req->result );
2512 dump_varargs_bytes( ", data=", cur_size );
2515 static void dump_accept_hardware_message_request( const struct accept_hardware_message_request *req )
2517 fprintf( stderr, " hw_id=%08x", req->hw_id );
2518 fprintf( stderr, ", remove=%d", req->remove );
2519 fprintf( stderr, ", new_win=%08x", req->new_win );
2522 static void dump_get_message_reply_request( const struct get_message_reply_request *req )
2524 fprintf( stderr, " cancel=%d", req->cancel );
2527 static void dump_get_message_reply_reply( const struct get_message_reply_reply *req )
2529 dump_uint64( " result=", &req->result );
2530 dump_varargs_bytes( ", data=", cur_size );
2533 static void dump_set_win_timer_request( const struct set_win_timer_request *req )
2535 fprintf( stderr, " win=%08x", req->win );
2536 fprintf( stderr, ", msg=%08x", req->msg );
2537 fprintf( stderr, ", rate=%08x", req->rate );
2538 dump_uint64( ", id=", &req->id );
2539 dump_uint64( ", lparam=", &req->lparam );
2542 static void dump_set_win_timer_reply( const struct set_win_timer_reply *req )
2544 dump_uint64( " id=", &req->id );
2547 static void dump_kill_win_timer_request( const struct kill_win_timer_request *req )
2549 fprintf( stderr, " win=%08x", req->win );
2550 dump_uint64( ", id=", &req->id );
2551 fprintf( stderr, ", msg=%08x", req->msg );
2554 static void dump_is_window_hung_request( const struct is_window_hung_request *req )
2556 fprintf( stderr, " win=%08x", req->win );
2559 static void dump_is_window_hung_reply( const struct is_window_hung_reply *req )
2561 fprintf( stderr, " is_hung=%d", req->is_hung );
2564 static void dump_get_serial_info_request( const struct get_serial_info_request *req )
2566 fprintf( stderr, " handle=%04x", req->handle );
2569 static void dump_get_serial_info_reply( const struct get_serial_info_reply *req )
2571 fprintf( stderr, " readinterval=%08x", req->readinterval );
2572 fprintf( stderr, ", readconst=%08x", req->readconst );
2573 fprintf( stderr, ", readmult=%08x", req->readmult );
2574 fprintf( stderr, ", writeconst=%08x", req->writeconst );
2575 fprintf( stderr, ", writemult=%08x", req->writemult );
2576 fprintf( stderr, ", eventmask=%08x", req->eventmask );
2579 static void dump_set_serial_info_request( const struct set_serial_info_request *req )
2581 fprintf( stderr, " handle=%04x", req->handle );
2582 fprintf( stderr, ", flags=%d", req->flags );
2583 fprintf( stderr, ", readinterval=%08x", req->readinterval );
2584 fprintf( stderr, ", readconst=%08x", req->readconst );
2585 fprintf( stderr, ", readmult=%08x", req->readmult );
2586 fprintf( stderr, ", writeconst=%08x", req->writeconst );
2587 fprintf( stderr, ", writemult=%08x", req->writemult );
2588 fprintf( stderr, ", eventmask=%08x", req->eventmask );
2591 static void dump_register_async_request( const struct register_async_request *req )
2593 fprintf( stderr, " type=%d", req->type );
2594 dump_async_data( ", async=", &req->async );
2595 fprintf( stderr, ", count=%d", req->count );
2598 static void dump_cancel_async_request( const struct cancel_async_request *req )
2600 fprintf( stderr, " handle=%04x", req->handle );
2601 dump_uint64( ", iosb=", &req->iosb );
2602 fprintf( stderr, ", only_thread=%d", req->only_thread );
2605 static void dump_ioctl_request( const struct ioctl_request *req )
2607 dump_ioctl_code( " code=", &req->code );
2608 dump_async_data( ", async=", &req->async );
2609 fprintf( stderr, ", blocking=%d", req->blocking );
2610 dump_varargs_bytes( ", in_data=", cur_size );
2613 static void dump_ioctl_reply( const struct ioctl_reply *req )
2615 fprintf( stderr, " wait=%04x", req->wait );
2616 fprintf( stderr, ", options=%08x", req->options );
2617 dump_varargs_bytes( ", out_data=", cur_size );
2620 static void dump_get_ioctl_result_request( const struct get_ioctl_result_request *req )
2622 fprintf( stderr, " handle=%04x", req->handle );
2623 dump_uint64( ", user_arg=", &req->user_arg );
2626 static void dump_get_ioctl_result_reply( const struct get_ioctl_result_reply *req )
2628 dump_varargs_bytes( " out_data=", cur_size );
2631 static void dump_create_named_pipe_request( const struct create_named_pipe_request *req )
2633 fprintf( stderr, " access=%08x", req->access );
2634 fprintf( stderr, ", attributes=%08x", req->attributes );
2635 fprintf( stderr, ", rootdir=%04x", req->rootdir );
2636 fprintf( stderr, ", options=%08x", req->options );
2637 fprintf( stderr, ", maxinstances=%08x", req->maxinstances );
2638 fprintf( stderr, ", outsize=%08x", req->outsize );
2639 fprintf( stderr, ", insize=%08x", req->insize );
2640 dump_timeout( ", timeout=", &req->timeout );
2641 fprintf( stderr, ", flags=%08x", req->flags );
2642 dump_varargs_unicode_str( ", name=", cur_size );
2645 static void dump_create_named_pipe_reply( const struct create_named_pipe_reply *req )
2647 fprintf( stderr, " handle=%04x", req->handle );
2650 static void dump_get_named_pipe_info_request( const struct get_named_pipe_info_request *req )
2652 fprintf( stderr, " handle=%04x", req->handle );
2655 static void dump_get_named_pipe_info_reply( const struct get_named_pipe_info_reply *req )
2657 fprintf( stderr, " flags=%08x", req->flags );
2658 fprintf( stderr, ", maxinstances=%08x", req->maxinstances );
2659 fprintf( stderr, ", instances=%08x", req->instances );
2660 fprintf( stderr, ", outsize=%08x", req->outsize );
2661 fprintf( stderr, ", insize=%08x", req->insize );
2664 static void dump_create_window_request( const struct create_window_request *req )
2666 fprintf( stderr, " parent=%08x", req->parent );
2667 fprintf( stderr, ", owner=%08x", req->owner );
2668 fprintf( stderr, ", atom=%04x", req->atom );
2669 dump_uint64( ", instance=", &req->instance );
2670 dump_varargs_unicode_str( ", class=", cur_size );
2673 static void dump_create_window_reply( const struct create_window_reply *req )
2675 fprintf( stderr, " handle=%08x", req->handle );
2676 fprintf( stderr, ", parent=%08x", req->parent );
2677 fprintf( stderr, ", owner=%08x", req->owner );
2678 fprintf( stderr, ", extra=%d", req->extra );
2679 dump_uint64( ", class_ptr=", &req->class_ptr );
2682 static void dump_destroy_window_request( const struct destroy_window_request *req )
2684 fprintf( stderr, " handle=%08x", req->handle );
2687 static void dump_get_desktop_window_request( const struct get_desktop_window_request *req )
2689 fprintf( stderr, " force=%d", req->force );
2692 static void dump_get_desktop_window_reply( const struct get_desktop_window_reply *req )
2694 fprintf( stderr, " top_window=%08x", req->top_window );
2695 fprintf( stderr, ", msg_window=%08x", req->msg_window );
2698 static void dump_set_window_owner_request( const struct set_window_owner_request *req )
2700 fprintf( stderr, " handle=%08x", req->handle );
2701 fprintf( stderr, ", owner=%08x", req->owner );
2704 static void dump_set_window_owner_reply( const struct set_window_owner_reply *req )
2706 fprintf( stderr, " full_owner=%08x", req->full_owner );
2707 fprintf( stderr, ", prev_owner=%08x", req->prev_owner );
2710 static void dump_get_window_info_request( const struct get_window_info_request *req )
2712 fprintf( stderr, " handle=%08x", req->handle );
2715 static void dump_get_window_info_reply( const struct get_window_info_reply *req )
2717 fprintf( stderr, " full_handle=%08x", req->full_handle );
2718 fprintf( stderr, ", last_active=%08x", req->last_active );
2719 fprintf( stderr, ", pid=%04x", req->pid );
2720 fprintf( stderr, ", tid=%04x", req->tid );
2721 fprintf( stderr, ", atom=%04x", req->atom );
2722 fprintf( stderr, ", is_unicode=%d", req->is_unicode );
2725 static void dump_set_window_info_request( const struct set_window_info_request *req )
2727 fprintf( stderr, " flags=%04x", req->flags );
2728 fprintf( stderr, ", is_unicode=%d", req->is_unicode );
2729 fprintf( stderr, ", handle=%08x", req->handle );
2730 fprintf( stderr, ", style=%08x", req->style );
2731 fprintf( stderr, ", ex_style=%08x", req->ex_style );
2732 fprintf( stderr, ", id=%08x", req->id );
2733 dump_uint64( ", instance=", &req->instance );
2734 dump_uint64( ", user_data=", &req->user_data );
2735 fprintf( stderr, ", extra_offset=%d", req->extra_offset );
2736 fprintf( stderr, ", extra_size=%u", req->extra_size );
2737 dump_uint64( ", extra_value=", &req->extra_value );
2740 static void dump_set_window_info_reply( const struct set_window_info_reply *req )
2742 fprintf( stderr, " old_style=%08x", req->old_style );
2743 fprintf( stderr, ", old_ex_style=%08x", req->old_ex_style );
2744 dump_uint64( ", old_instance=", &req->old_instance );
2745 dump_uint64( ", old_user_data=", &req->old_user_data );
2746 dump_uint64( ", old_extra_value=", &req->old_extra_value );
2747 fprintf( stderr, ", old_id=%08x", req->old_id );
2750 static void dump_set_parent_request( const struct set_parent_request *req )
2752 fprintf( stderr, " handle=%08x", req->handle );
2753 fprintf( stderr, ", parent=%08x", req->parent );
2756 static void dump_set_parent_reply( const struct set_parent_reply *req )
2758 fprintf( stderr, " old_parent=%08x", req->old_parent );
2759 fprintf( stderr, ", full_parent=%08x", req->full_parent );
2762 static void dump_get_window_parents_request( const struct get_window_parents_request *req )
2764 fprintf( stderr, " handle=%08x", req->handle );
2767 static void dump_get_window_parents_reply( const struct get_window_parents_reply *req )
2769 fprintf( stderr, " count=%d", req->count );
2770 dump_varargs_user_handles( ", parents=", cur_size );
2773 static void dump_get_window_children_request( const struct get_window_children_request *req )
2775 fprintf( stderr, " desktop=%04x", req->desktop );
2776 fprintf( stderr, ", parent=%08x", req->parent );
2777 fprintf( stderr, ", atom=%04x", req->atom );
2778 fprintf( stderr, ", tid=%04x", req->tid );
2779 dump_varargs_unicode_str( ", class=", cur_size );
2782 static void dump_get_window_children_reply( const struct get_window_children_reply *req )
2784 fprintf( stderr, " count=%d", req->count );
2785 dump_varargs_user_handles( ", children=", cur_size );
2788 static void dump_get_window_children_from_point_request( const struct get_window_children_from_point_request *req )
2790 fprintf( stderr, " parent=%08x", req->parent );
2791 fprintf( stderr, ", x=%d", req->x );
2792 fprintf( stderr, ", y=%d", req->y );
2795 static void dump_get_window_children_from_point_reply( const struct get_window_children_from_point_reply *req )
2797 fprintf( stderr, " count=%d", req->count );
2798 dump_varargs_user_handles( ", children=", cur_size );
2801 static void dump_get_window_tree_request( const struct get_window_tree_request *req )
2803 fprintf( stderr, " handle=%08x", req->handle );
2806 static void dump_get_window_tree_reply( const struct get_window_tree_reply *req )
2808 fprintf( stderr, " parent=%08x", req->parent );
2809 fprintf( stderr, ", owner=%08x", req->owner );
2810 fprintf( stderr, ", next_sibling=%08x", req->next_sibling );
2811 fprintf( stderr, ", prev_sibling=%08x", req->prev_sibling );
2812 fprintf( stderr, ", first_sibling=%08x", req->first_sibling );
2813 fprintf( stderr, ", last_sibling=%08x", req->last_sibling );
2814 fprintf( stderr, ", first_child=%08x", req->first_child );
2815 fprintf( stderr, ", last_child=%08x", req->last_child );
2818 static void dump_set_window_pos_request( const struct set_window_pos_request *req )
2820 fprintf( stderr, " flags=%08x", req->flags );
2821 fprintf( stderr, ", handle=%08x", req->handle );
2822 fprintf( stderr, ", previous=%08x", req->previous );
2823 dump_rectangle( ", window=", &req->window );
2824 dump_rectangle( ", client=", &req->client );
2825 dump_varargs_rectangles( ", valid=", cur_size );
2828 static void dump_set_window_pos_reply( const struct set_window_pos_reply *req )
2830 fprintf( stderr, " new_style=%08x", req->new_style );
2831 fprintf( stderr, ", new_ex_style=%08x", req->new_ex_style );
2834 static void dump_get_window_rectangles_request( const struct get_window_rectangles_request *req )
2836 fprintf( stderr, " handle=%08x", req->handle );
2837 fprintf( stderr, ", relative=%d", req->relative );
2840 static void dump_get_window_rectangles_reply( const struct get_window_rectangles_reply *req )
2842 dump_rectangle( " window=", &req->window );
2843 dump_rectangle( ", visible=", &req->visible );
2844 dump_rectangle( ", client=", &req->client );
2847 static void dump_get_window_text_request( const struct get_window_text_request *req )
2849 fprintf( stderr, " handle=%08x", req->handle );
2852 static void dump_get_window_text_reply( const struct get_window_text_reply *req )
2854 dump_varargs_unicode_str( " text=", cur_size );
2857 static void dump_set_window_text_request( const struct set_window_text_request *req )
2859 fprintf( stderr, " handle=%08x", req->handle );
2860 dump_varargs_unicode_str( ", text=", cur_size );
2863 static void dump_get_windows_offset_request( const struct get_windows_offset_request *req )
2865 fprintf( stderr, " from=%08x", req->from );
2866 fprintf( stderr, ", to=%08x", req->to );
2869 static void dump_get_windows_offset_reply( const struct get_windows_offset_reply *req )
2871 fprintf( stderr, " x=%d", req->x );
2872 fprintf( stderr, ", y=%d", req->y );
2873 fprintf( stderr, ", mirror=%d", req->mirror );
2876 static void dump_get_visible_region_request( const struct get_visible_region_request *req )
2878 fprintf( stderr, " window=%08x", req->window );
2879 fprintf( stderr, ", flags=%08x", req->flags );
2882 static void dump_get_visible_region_reply( const struct get_visible_region_reply *req )
2884 fprintf( stderr, " top_win=%08x", req->top_win );
2885 dump_rectangle( ", top_rect=", &req->top_rect );
2886 dump_rectangle( ", win_rect=", &req->win_rect );
2887 fprintf( stderr, ", total_size=%u", req->total_size );
2888 dump_varargs_rectangles( ", region=", cur_size );
2891 static void dump_get_window_region_request( const struct get_window_region_request *req )
2893 fprintf( stderr, " window=%08x", req->window );
2896 static void dump_get_window_region_reply( const struct get_window_region_reply *req )
2898 fprintf( stderr, " total_size=%u", req->total_size );
2899 dump_varargs_rectangles( ", region=", cur_size );
2902 static void dump_set_window_region_request( const struct set_window_region_request *req )
2904 fprintf( stderr, " window=%08x", req->window );
2905 fprintf( stderr, ", redraw=%d", req->redraw );
2906 dump_varargs_rectangles( ", region=", cur_size );
2909 static void dump_get_update_region_request( const struct get_update_region_request *req )
2911 fprintf( stderr, " window=%08x", req->window );
2912 fprintf( stderr, ", from_child=%08x", req->from_child );
2913 fprintf( stderr, ", flags=%08x", req->flags );
2916 static void dump_get_update_region_reply( const struct get_update_region_reply *req )
2918 fprintf( stderr, " child=%08x", req->child );
2919 fprintf( stderr, ", flags=%08x", req->flags );
2920 fprintf( stderr, ", total_size=%u", req->total_size );
2921 dump_varargs_rectangles( ", region=", cur_size );
2924 static void dump_update_window_zorder_request( const struct update_window_zorder_request *req )
2926 fprintf( stderr, " window=%08x", req->window );
2927 dump_rectangle( ", rect=", &req->rect );
2930 static void dump_redraw_window_request( const struct redraw_window_request *req )
2932 fprintf( stderr, " window=%08x", req->window );
2933 fprintf( stderr, ", flags=%08x", req->flags );
2934 dump_varargs_rectangles( ", region=", cur_size );
2937 static void dump_set_window_property_request( const struct set_window_property_request *req )
2939 fprintf( stderr, " window=%08x", req->window );
2940 dump_uint64( ", data=", &req->data );
2941 fprintf( stderr, ", atom=%04x", req->atom );
2942 dump_varargs_unicode_str( ", name=", cur_size );
2945 static void dump_remove_window_property_request( const struct remove_window_property_request *req )
2947 fprintf( stderr, " window=%08x", req->window );
2948 fprintf( stderr, ", atom=%04x", req->atom );
2949 dump_varargs_unicode_str( ", name=", cur_size );
2952 static void dump_remove_window_property_reply( const struct remove_window_property_reply *req )
2954 dump_uint64( " data=", &req->data );
2957 static void dump_get_window_property_request( const struct get_window_property_request *req )
2959 fprintf( stderr, " window=%08x", req->window );
2960 fprintf( stderr, ", atom=%04x", req->atom );
2961 dump_varargs_unicode_str( ", name=", cur_size );
2964 static void dump_get_window_property_reply( const struct get_window_property_reply *req )
2966 dump_uint64( " data=", &req->data );
2969 static void dump_get_window_properties_request( const struct get_window_properties_request *req )
2971 fprintf( stderr, " window=%08x", req->window );
2974 static void dump_get_window_properties_reply( const struct get_window_properties_reply *req )
2976 fprintf( stderr, " total=%d", req->total );
2977 dump_varargs_properties( ", props=", cur_size );
2980 static void dump_create_winstation_request( const struct create_winstation_request *req )
2982 fprintf( stderr, " flags=%08x", req->flags );
2983 fprintf( stderr, ", access=%08x", req->access );
2984 fprintf( stderr, ", attributes=%08x", req->attributes );
2985 dump_varargs_unicode_str( ", name=", cur_size );
2988 static void dump_create_winstation_reply( const struct create_winstation_reply *req )
2990 fprintf( stderr, " handle=%04x", req->handle );
2993 static void dump_open_winstation_request( const struct open_winstation_request *req )
2995 fprintf( stderr, " access=%08x", req->access );
2996 fprintf( stderr, ", attributes=%08x", req->attributes );
2997 dump_varargs_unicode_str( ", name=", cur_size );
3000 static void dump_open_winstation_reply( const struct open_winstation_reply *req )
3002 fprintf( stderr, " handle=%04x", req->handle );
3005 static void dump_close_winstation_request( const struct close_winstation_request *req )
3007 fprintf( stderr, " handle=%04x", req->handle );
3010 static void dump_get_process_winstation_request( const struct get_process_winstation_request *req )
3014 static void dump_get_process_winstation_reply( const struct get_process_winstation_reply *req )
3016 fprintf( stderr, " handle=%04x", req->handle );
3019 static void dump_set_process_winstation_request( const struct set_process_winstation_request *req )
3021 fprintf( stderr, " handle=%04x", req->handle );
3024 static void dump_enum_winstation_request( const struct enum_winstation_request *req )
3026 fprintf( stderr, " index=%08x", req->index );
3029 static void dump_enum_winstation_reply( const struct enum_winstation_reply *req )
3031 fprintf( stderr, " next=%08x", req->next );
3032 dump_varargs_unicode_str( ", name=", cur_size );
3035 static void dump_create_desktop_request( const struct create_desktop_request *req )
3037 fprintf( stderr, " flags=%08x", req->flags );
3038 fprintf( stderr, ", access=%08x", req->access );
3039 fprintf( stderr, ", attributes=%08x", req->attributes );
3040 dump_varargs_unicode_str( ", name=", cur_size );
3043 static void dump_create_desktop_reply( const struct create_desktop_reply *req )
3045 fprintf( stderr, " handle=%04x", req->handle );
3048 static void dump_open_desktop_request( const struct open_desktop_request *req )
3050 fprintf( stderr, " winsta=%04x", req->winsta );
3051 fprintf( stderr, ", flags=%08x", req->flags );
3052 fprintf( stderr, ", access=%08x", req->access );
3053 fprintf( stderr, ", attributes=%08x", req->attributes );
3054 dump_varargs_unicode_str( ", name=", cur_size );
3057 static void dump_open_desktop_reply( const struct open_desktop_reply *req )
3059 fprintf( stderr, " handle=%04x", req->handle );
3062 static void dump_close_desktop_request( const struct close_desktop_request *req )
3064 fprintf( stderr, " handle=%04x", req->handle );
3067 static void dump_get_thread_desktop_request( const struct get_thread_desktop_request *req )
3069 fprintf( stderr, " tid=%04x", req->tid );
3072 static void dump_get_thread_desktop_reply( const struct get_thread_desktop_reply *req )
3074 fprintf( stderr, " handle=%04x", req->handle );
3077 static void dump_set_thread_desktop_request( const struct set_thread_desktop_request *req )
3079 fprintf( stderr, " handle=%04x", req->handle );
3082 static void dump_enum_desktop_request( const struct enum_desktop_request *req )
3084 fprintf( stderr, " winstation=%04x", req->winstation );
3085 fprintf( stderr, ", index=%08x", req->index );
3088 static void dump_enum_desktop_reply( const struct enum_desktop_reply *req )
3090 fprintf( stderr, " next=%08x", req->next );
3091 dump_varargs_unicode_str( ", name=", cur_size );
3094 static void dump_set_user_object_info_request( const struct set_user_object_info_request *req )
3096 fprintf( stderr, " handle=%04x", req->handle );
3097 fprintf( stderr, ", flags=%08x", req->flags );
3098 fprintf( stderr, ", obj_flags=%08x", req->obj_flags );
3101 static void dump_set_user_object_info_reply( const struct set_user_object_info_reply *req )
3103 fprintf( stderr, " is_desktop=%d", req->is_desktop );
3104 fprintf( stderr, ", old_obj_flags=%08x", req->old_obj_flags );
3105 dump_varargs_unicode_str( ", name=", cur_size );
3108 static void dump_attach_thread_input_request( const struct attach_thread_input_request *req )
3110 fprintf( stderr, " tid_from=%04x", req->tid_from );
3111 fprintf( stderr, ", tid_to=%04x", req->tid_to );
3112 fprintf( stderr, ", attach=%d", req->attach );
3115 static void dump_get_thread_input_request( const struct get_thread_input_request *req )
3117 fprintf( stderr, " tid=%04x", req->tid );
3120 static void dump_get_thread_input_reply( const struct get_thread_input_reply *req )
3122 fprintf( stderr, " focus=%08x", req->focus );
3123 fprintf( stderr, ", capture=%08x", req->capture );
3124 fprintf( stderr, ", active=%08x", req->active );
3125 fprintf( stderr, ", foreground=%08x", req->foreground );
3126 fprintf( stderr, ", menu_owner=%08x", req->menu_owner );
3127 fprintf( stderr, ", move_size=%08x", req->move_size );
3128 fprintf( stderr, ", caret=%08x", req->caret );
3129 fprintf( stderr, ", cursor=%08x", req->cursor );
3130 fprintf( stderr, ", show_count=%d", req->show_count );
3131 dump_rectangle( ", rect=", &req->rect );
3134 static void dump_get_last_input_time_request( const struct get_last_input_time_request *req )
3138 static void dump_get_last_input_time_reply( const struct get_last_input_time_reply *req )
3140 fprintf( stderr, " time=%08x", req->time );
3143 static void dump_get_key_state_request( const struct get_key_state_request *req )
3145 fprintf( stderr, " tid=%04x", req->tid );
3146 fprintf( stderr, ", key=%d", req->key );
3149 static void dump_get_key_state_reply( const struct get_key_state_reply *req )
3151 fprintf( stderr, " state=%02x", req->state );
3152 dump_varargs_bytes( ", keystate=", cur_size );
3155 static void dump_set_key_state_request( const struct set_key_state_request *req )
3157 fprintf( stderr, " tid=%04x", req->tid );
3158 dump_varargs_bytes( ", keystate=", cur_size );
3161 static void dump_set_foreground_window_request( const struct set_foreground_window_request *req )
3163 fprintf( stderr, " handle=%08x", req->handle );
3166 static void dump_set_foreground_window_reply( const struct set_foreground_window_reply *req )
3168 fprintf( stderr, " previous=%08x", req->previous );
3169 fprintf( stderr, ", send_msg_old=%d", req->send_msg_old );
3170 fprintf( stderr, ", send_msg_new=%d", req->send_msg_new );
3173 static void dump_set_focus_window_request( const struct set_focus_window_request *req )
3175 fprintf( stderr, " handle=%08x", req->handle );
3178 static void dump_set_focus_window_reply( const struct set_focus_window_reply *req )
3180 fprintf( stderr, " previous=%08x", req->previous );
3183 static void dump_set_active_window_request( const struct set_active_window_request *req )
3185 fprintf( stderr, " handle=%08x", req->handle );
3188 static void dump_set_active_window_reply( const struct set_active_window_reply *req )
3190 fprintf( stderr, " previous=%08x", req->previous );
3193 static void dump_set_capture_window_request( const struct set_capture_window_request *req )
3195 fprintf( stderr, " handle=%08x", req->handle );
3196 fprintf( stderr, ", flags=%08x", req->flags );
3199 static void dump_set_capture_window_reply( const struct set_capture_window_reply *req )
3201 fprintf( stderr, " previous=%08x", req->previous );
3202 fprintf( stderr, ", full_handle=%08x", req->full_handle );
3205 static void dump_set_caret_window_request( const struct set_caret_window_request *req )
3207 fprintf( stderr, " handle=%08x", req->handle );
3208 fprintf( stderr, ", width=%d", req->width );
3209 fprintf( stderr, ", height=%d", req->height );
3212 static void dump_set_caret_window_reply( const struct set_caret_window_reply *req )
3214 fprintf( stderr, " previous=%08x", req->previous );
3215 dump_rectangle( ", old_rect=", &req->old_rect );
3216 fprintf( stderr, ", old_hide=%d", req->old_hide );
3217 fprintf( stderr, ", old_state=%d", req->old_state );
3220 static void dump_set_caret_info_request( const struct set_caret_info_request *req )
3222 fprintf( stderr, " flags=%08x", req->flags );
3223 fprintf( stderr, ", handle=%08x", req->handle );
3224 fprintf( stderr, ", x=%d", req->x );
3225 fprintf( stderr, ", y=%d", req->y );
3226 fprintf( stderr, ", hide=%d", req->hide );
3227 fprintf( stderr, ", state=%d", req->state );
3230 static void dump_set_caret_info_reply( const struct set_caret_info_reply *req )
3232 fprintf( stderr, " full_handle=%08x", req->full_handle );
3233 dump_rectangle( ", old_rect=", &req->old_rect );
3234 fprintf( stderr, ", old_hide=%d", req->old_hide );
3235 fprintf( stderr, ", old_state=%d", req->old_state );
3238 static void dump_set_hook_request( const struct set_hook_request *req )
3240 fprintf( stderr, " id=%d", req->id );
3241 fprintf( stderr, ", pid=%04x", req->pid );
3242 fprintf( stderr, ", tid=%04x", req->tid );
3243 fprintf( stderr, ", event_min=%d", req->event_min );
3244 fprintf( stderr, ", event_max=%d", req->event_max );
3245 dump_uint64( ", proc=", &req->proc );
3246 fprintf( stderr, ", flags=%d", req->flags );
3247 fprintf( stderr, ", unicode=%d", req->unicode );
3248 dump_varargs_unicode_str( ", module=", cur_size );
3251 static void dump_set_hook_reply( const struct set_hook_reply *req )
3253 fprintf( stderr, " handle=%08x", req->handle );
3254 fprintf( stderr, ", active_hooks=%08x", req->active_hooks );
3257 static void dump_remove_hook_request( const struct remove_hook_request *req )
3259 fprintf( stderr, " handle=%08x", req->handle );
3260 dump_uint64( ", proc=", &req->proc );
3261 fprintf( stderr, ", id=%d", req->id );
3264 static void dump_remove_hook_reply( const struct remove_hook_reply *req )
3266 fprintf( stderr, " active_hooks=%08x", req->active_hooks );
3269 static void dump_start_hook_chain_request( const struct start_hook_chain_request *req )
3271 fprintf( stderr, " id=%d", req->id );
3272 fprintf( stderr, ", event=%d", req->event );
3273 fprintf( stderr, ", window=%08x", req->window );
3274 fprintf( stderr, ", object_id=%d", req->object_id );
3275 fprintf( stderr, ", child_id=%d", req->child_id );
3278 static void dump_start_hook_chain_reply( const struct start_hook_chain_reply *req )
3280 fprintf( stderr, " handle=%08x", req->handle );
3281 fprintf( stderr, ", pid=%04x", req->pid );
3282 fprintf( stderr, ", tid=%04x", req->tid );
3283 fprintf( stderr, ", unicode=%d", req->unicode );
3284 dump_uint64( ", proc=", &req->proc );
3285 fprintf( stderr, ", active_hooks=%08x", req->active_hooks );
3286 dump_varargs_unicode_str( ", module=", cur_size );
3289 static void dump_finish_hook_chain_request( const struct finish_hook_chain_request *req )
3291 fprintf( stderr, " id=%d", req->id );
3294 static void dump_get_hook_info_request( const struct get_hook_info_request *req )
3296 fprintf( stderr, " handle=%08x", req->handle );
3297 fprintf( stderr, ", get_next=%d", req->get_next );
3298 fprintf( stderr, ", event=%d", req->event );
3299 fprintf( stderr, ", window=%08x", req->window );
3300 fprintf( stderr, ", object_id=%d", req->object_id );
3301 fprintf( stderr, ", child_id=%d", req->child_id );
3304 static void dump_get_hook_info_reply( const struct get_hook_info_reply *req )
3306 fprintf( stderr, " handle=%08x", req->handle );
3307 fprintf( stderr, ", id=%d", req->id );
3308 fprintf( stderr, ", pid=%04x", req->pid );
3309 fprintf( stderr, ", tid=%04x", req->tid );
3310 dump_uint64( ", proc=", &req->proc );
3311 fprintf( stderr, ", unicode=%d", req->unicode );
3312 dump_varargs_unicode_str( ", module=", cur_size );
3315 static void dump_create_class_request( const struct create_class_request *req )
3317 fprintf( stderr, " local=%d", req->local );
3318 fprintf( stderr, ", atom=%04x", req->atom );
3319 fprintf( stderr, ", style=%08x", req->style );
3320 dump_uint64( ", instance=", &req->instance );
3321 fprintf( stderr, ", extra=%d", req->extra );
3322 fprintf( stderr, ", win_extra=%d", req->win_extra );
3323 dump_uint64( ", client_ptr=", &req->client_ptr );
3324 dump_varargs_unicode_str( ", name=", cur_size );
3327 static void dump_create_class_reply( const struct create_class_reply *req )
3329 fprintf( stderr, " atom=%04x", req->atom );
3332 static void dump_destroy_class_request( const struct destroy_class_request *req )
3334 fprintf( stderr, " atom=%04x", req->atom );
3335 dump_uint64( ", instance=", &req->instance );
3336 dump_varargs_unicode_str( ", name=", cur_size );
3339 static void dump_destroy_class_reply( const struct destroy_class_reply *req )
3341 dump_uint64( " client_ptr=", &req->client_ptr );
3344 static void dump_set_class_info_request( const struct set_class_info_request *req )
3346 fprintf( stderr, " window=%08x", req->window );
3347 fprintf( stderr, ", flags=%08x", req->flags );
3348 fprintf( stderr, ", atom=%04x", req->atom );
3349 fprintf( stderr, ", style=%08x", req->style );
3350 fprintf( stderr, ", win_extra=%d", req->win_extra );
3351 dump_uint64( ", instance=", &req->instance );
3352 fprintf( stderr, ", extra_offset=%d", req->extra_offset );
3353 fprintf( stderr, ", extra_size=%u", req->extra_size );
3354 dump_uint64( ", extra_value=", &req->extra_value );
3357 static void dump_set_class_info_reply( const struct set_class_info_reply *req )
3359 fprintf( stderr, " old_atom=%04x", req->old_atom );
3360 fprintf( stderr, ", old_style=%08x", req->old_style );
3361 fprintf( stderr, ", old_extra=%d", req->old_extra );
3362 fprintf( stderr, ", old_win_extra=%d", req->old_win_extra );
3363 dump_uint64( ", old_instance=", &req->old_instance );
3364 dump_uint64( ", old_extra_value=", &req->old_extra_value );
3367 static void dump_set_clipboard_info_request( const struct set_clipboard_info_request *req )
3369 fprintf( stderr, " flags=%08x", req->flags );
3370 fprintf( stderr, ", clipboard=%08x", req->clipboard );
3371 fprintf( stderr, ", owner=%08x", req->owner );
3372 fprintf( stderr, ", viewer=%08x", req->viewer );
3373 fprintf( stderr, ", seqno=%08x", req->seqno );
3376 static void dump_set_clipboard_info_reply( const struct set_clipboard_info_reply *req )
3378 fprintf( stderr, " flags=%08x", req->flags );
3379 fprintf( stderr, ", old_clipboard=%08x", req->old_clipboard );
3380 fprintf( stderr, ", old_owner=%08x", req->old_owner );
3381 fprintf( stderr, ", old_viewer=%08x", req->old_viewer );
3382 fprintf( stderr, ", seqno=%08x", req->seqno );
3385 static void dump_open_token_request( const struct open_token_request *req )
3387 fprintf( stderr, " handle=%04x", req->handle );
3388 fprintf( stderr, ", access=%08x", req->access );
3389 fprintf( stderr, ", attributes=%08x", req->attributes );
3390 fprintf( stderr, ", flags=%08x", req->flags );
3393 static void dump_open_token_reply( const struct open_token_reply *req )
3395 fprintf( stderr, " token=%04x", req->token );
3398 static void dump_set_global_windows_request( const struct set_global_windows_request *req )
3400 fprintf( stderr, " flags=%08x", req->flags );
3401 fprintf( stderr, ", shell_window=%08x", req->shell_window );
3402 fprintf( stderr, ", shell_listview=%08x", req->shell_listview );
3403 fprintf( stderr, ", progman_window=%08x", req->progman_window );
3404 fprintf( stderr, ", taskman_window=%08x", req->taskman_window );
3407 static void dump_set_global_windows_reply( const struct set_global_windows_reply *req )
3409 fprintf( stderr, " old_shell_window=%08x", req->old_shell_window );
3410 fprintf( stderr, ", old_shell_listview=%08x", req->old_shell_listview );
3411 fprintf( stderr, ", old_progman_window=%08x", req->old_progman_window );
3412 fprintf( stderr, ", old_taskman_window=%08x", req->old_taskman_window );
3415 static void dump_adjust_token_privileges_request( const struct adjust_token_privileges_request *req )
3417 fprintf( stderr, " handle=%04x", req->handle );
3418 fprintf( stderr, ", disable_all=%d", req->disable_all );
3419 fprintf( stderr, ", get_modified_state=%d", req->get_modified_state );
3420 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size );
3423 static void dump_adjust_token_privileges_reply( const struct adjust_token_privileges_reply *req )
3425 fprintf( stderr, " len=%08x", req->len );
3426 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size );
3429 static void dump_get_token_privileges_request( const struct get_token_privileges_request *req )
3431 fprintf( stderr, " handle=%04x", req->handle );
3434 static void dump_get_token_privileges_reply( const struct get_token_privileges_reply *req )
3436 fprintf( stderr, " len=%08x", req->len );
3437 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size );
3440 static void dump_check_token_privileges_request( const struct check_token_privileges_request *req )
3442 fprintf( stderr, " handle=%04x", req->handle );
3443 fprintf( stderr, ", all_required=%d", req->all_required );
3444 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size );
3447 static void dump_check_token_privileges_reply( const struct check_token_privileges_reply *req )
3449 fprintf( stderr, " has_privileges=%d", req->has_privileges );
3450 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size );
3453 static void dump_duplicate_token_request( const struct duplicate_token_request *req )
3455 fprintf( stderr, " handle=%04x", req->handle );
3456 fprintf( stderr, ", access=%08x", req->access );
3457 fprintf( stderr, ", attributes=%08x", req->attributes );
3458 fprintf( stderr, ", primary=%d", req->primary );
3459 fprintf( stderr, ", impersonation_level=%d", req->impersonation_level );
3462 static void dump_duplicate_token_reply( const struct duplicate_token_reply *req )
3464 fprintf( stderr, " new_handle=%04x", req->new_handle );
3467 static void dump_access_check_request( const struct access_check_request *req )
3469 fprintf( stderr, " handle=%04x", req->handle );
3470 fprintf( stderr, ", desired_access=%08x", req->desired_access );
3471 fprintf( stderr, ", mapping_read=%08x", req->mapping_read );
3472 fprintf( stderr, ", mapping_write=%08x", req->mapping_write );
3473 fprintf( stderr, ", mapping_execute=%08x", req->mapping_execute );
3474 fprintf( stderr, ", mapping_all=%08x", req->mapping_all );
3475 dump_varargs_security_descriptor( ", sd=", cur_size );
3478 static void dump_access_check_reply( const struct access_check_reply *req )
3480 fprintf( stderr, " access_granted=%08x", req->access_granted );
3481 fprintf( stderr, ", access_status=%08x", req->access_status );
3482 fprintf( stderr, ", privileges_len=%08x", req->privileges_len );
3483 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size );
3486 static void dump_get_token_sid_request( const struct get_token_sid_request *req )
3488 fprintf( stderr, " handle=%04x", req->handle );
3489 fprintf( stderr, ", which_sid=%08x", req->which_sid );
3492 static void dump_get_token_sid_reply( const struct get_token_sid_reply *req )
3494 fprintf( stderr, " sid_len=%u", req->sid_len );
3495 dump_varargs_SID( ", sid=", cur_size );
3498 static void dump_get_token_groups_request( const struct get_token_groups_request *req )
3500 fprintf( stderr, " handle=%04x", req->handle );
3503 static void dump_get_token_groups_reply( const struct get_token_groups_reply *req )
3505 fprintf( stderr, " user_len=%u", req->user_len );
3506 dump_varargs_token_groups( ", user=", cur_size );
3509 static void dump_get_token_default_dacl_request( const struct get_token_default_dacl_request *req )
3511 fprintf( stderr, " handle=%04x", req->handle );
3514 static void dump_get_token_default_dacl_reply( const struct get_token_default_dacl_reply *req )
3516 fprintf( stderr, " acl_len=%u", req->acl_len );
3517 dump_varargs_ACL( ", acl=", cur_size );
3520 static void dump_set_token_default_dacl_request( const struct set_token_default_dacl_request *req )
3522 fprintf( stderr, " handle=%04x", req->handle );
3523 dump_varargs_ACL( ", acl=", cur_size );
3526 static void dump_set_security_object_request( const struct set_security_object_request *req )
3528 fprintf( stderr, " handle=%04x", req->handle );
3529 fprintf( stderr, ", security_info=%08x", req->security_info );
3530 dump_varargs_security_descriptor( ", sd=", cur_size );
3533 static void dump_get_security_object_request( const struct get_security_object_request *req )
3535 fprintf( stderr, " handle=%04x", req->handle );
3536 fprintf( stderr, ", security_info=%08x", req->security_info );
3539 static void dump_get_security_object_reply( const struct get_security_object_reply *req )
3541 fprintf( stderr, " sd_len=%08x", req->sd_len );
3542 dump_varargs_security_descriptor( ", sd=", cur_size );
3545 static void dump_create_mailslot_request( const struct create_mailslot_request *req )
3547 fprintf( stderr, " access=%08x", req->access );
3548 fprintf( stderr, ", attributes=%08x", req->attributes );
3549 fprintf( stderr, ", rootdir=%04x", req->rootdir );
3550 dump_timeout( ", read_timeout=", &req->read_timeout );
3551 fprintf( stderr, ", max_msgsize=%08x", req->max_msgsize );
3552 dump_varargs_unicode_str( ", name=", cur_size );
3555 static void dump_create_mailslot_reply( const struct create_mailslot_reply *req )
3557 fprintf( stderr, " handle=%04x", req->handle );
3560 static void dump_set_mailslot_info_request( const struct set_mailslot_info_request *req )
3562 fprintf( stderr, " handle=%04x", req->handle );
3563 dump_timeout( ", read_timeout=", &req->read_timeout );
3564 fprintf( stderr, ", flags=%08x", req->flags );
3567 static void dump_set_mailslot_info_reply( const struct set_mailslot_info_reply *req )
3569 dump_timeout( " read_timeout=", &req->read_timeout );
3570 fprintf( stderr, ", max_msgsize=%08x", req->max_msgsize );
3573 static void dump_create_directory_request( const struct create_directory_request *req )
3575 fprintf( stderr, " access=%08x", req->access );
3576 fprintf( stderr, ", attributes=%08x", req->attributes );
3577 fprintf( stderr, ", rootdir=%04x", req->rootdir );
3578 dump_varargs_unicode_str( ", directory_name=", cur_size );
3581 static void dump_create_directory_reply( const struct create_directory_reply *req )
3583 fprintf( stderr, " handle=%04x", req->handle );
3586 static void dump_open_directory_request( const struct open_directory_request *req )
3588 fprintf( stderr, " access=%08x", req->access );
3589 fprintf( stderr, ", attributes=%08x", req->attributes );
3590 fprintf( stderr, ", rootdir=%04x", req->rootdir );
3591 dump_varargs_unicode_str( ", directory_name=", cur_size );
3594 static void dump_open_directory_reply( const struct open_directory_reply *req )
3596 fprintf( stderr, " handle=%04x", req->handle );
3599 static void dump_get_directory_entry_request( const struct get_directory_entry_request *req )
3601 fprintf( stderr, " handle=%04x", req->handle );
3602 fprintf( stderr, ", index=%08x", req->index );
3605 static void dump_get_directory_entry_reply( const struct get_directory_entry_reply *req )
3607 fprintf( stderr, " name_len=%u", req->name_len );
3608 dump_varargs_unicode_str( ", name=", min(cur_size,req->name_len) );
3609 dump_varargs_unicode_str( ", type=", cur_size );
3612 static void dump_create_symlink_request( const struct create_symlink_request *req )
3614 fprintf( stderr, " access=%08x", req->access );
3615 fprintf( stderr, ", attributes=%08x", req->attributes );
3616 fprintf( stderr, ", rootdir=%04x", req->rootdir );
3617 fprintf( stderr, ", name_len=%u", req->name_len );
3618 dump_varargs_unicode_str( ", name=", min(cur_size,req->name_len) );
3619 dump_varargs_unicode_str( ", target_name=", cur_size );
3622 static void dump_create_symlink_reply( const struct create_symlink_reply *req )
3624 fprintf( stderr, " handle=%04x", req->handle );
3627 static void dump_open_symlink_request( const struct open_symlink_request *req )
3629 fprintf( stderr, " access=%08x", req->access );
3630 fprintf( stderr, ", attributes=%08x", req->attributes );
3631 fprintf( stderr, ", rootdir=%04x", req->rootdir );
3632 dump_varargs_unicode_str( ", name=", cur_size );
3635 static void dump_open_symlink_reply( const struct open_symlink_reply *req )
3637 fprintf( stderr, " handle=%04x", req->handle );
3640 static void dump_query_symlink_request( const struct query_symlink_request *req )
3642 fprintf( stderr, " handle=%04x", req->handle );
3645 static void dump_query_symlink_reply( const struct query_symlink_reply *req )
3647 fprintf( stderr, " total=%u", req->total );
3648 dump_varargs_unicode_str( ", target_name=", cur_size );
3651 static void dump_get_object_info_request( const struct get_object_info_request *req )
3653 fprintf( stderr, " handle=%04x", req->handle );
3656 static void dump_get_object_info_reply( const struct get_object_info_reply *req )
3658 fprintf( stderr, " access=%08x", req->access );
3659 fprintf( stderr, ", ref_count=%08x", req->ref_count );
3660 fprintf( stderr, ", total=%u", req->total );
3661 dump_varargs_unicode_str( ", name=", cur_size );
3664 static void dump_unlink_object_request( const struct unlink_object_request *req )
3666 fprintf( stderr, " handle=%04x", req->handle );
3669 static void dump_get_token_impersonation_level_request( const struct get_token_impersonation_level_request *req )
3671 fprintf( stderr, " handle=%04x", req->handle );
3674 static void dump_get_token_impersonation_level_reply( const struct get_token_impersonation_level_reply *req )
3676 fprintf( stderr, " impersonation_level=%d", req->impersonation_level );
3679 static void dump_allocate_locally_unique_id_request( const struct allocate_locally_unique_id_request *req )
3683 static void dump_allocate_locally_unique_id_reply( const struct allocate_locally_unique_id_reply *req )
3685 dump_luid( " luid=", &req->luid );
3688 static void dump_create_device_manager_request( const struct create_device_manager_request *req )
3690 fprintf( stderr, " access=%08x", req->access );
3691 fprintf( stderr, ", attributes=%08x", req->attributes );
3694 static void dump_create_device_manager_reply( const struct create_device_manager_reply *req )
3696 fprintf( stderr, " handle=%04x", req->handle );
3699 static void dump_create_device_request( const struct create_device_request *req )
3701 fprintf( stderr, " access=%08x", req->access );
3702 fprintf( stderr, ", attributes=%08x", req->attributes );
3703 fprintf( stderr, ", rootdir=%04x", req->rootdir );
3704 dump_uint64( ", user_ptr=", &req->user_ptr );
3705 fprintf( stderr, ", manager=%04x", req->manager );
3706 dump_varargs_unicode_str( ", name=", cur_size );
3709 static void dump_create_device_reply( const struct create_device_reply *req )
3711 fprintf( stderr, " handle=%04x", req->handle );
3714 static void dump_delete_device_request( const struct delete_device_request *req )
3716 fprintf( stderr, " handle=%04x", req->handle );
3719 static void dump_get_next_device_request_request( const struct get_next_device_request_request *req )
3721 fprintf( stderr, " manager=%04x", req->manager );
3722 fprintf( stderr, ", prev=%04x", req->prev );
3723 fprintf( stderr, ", status=%08x", req->status );
3724 dump_varargs_bytes( ", prev_data=", cur_size );
3727 static void dump_get_next_device_request_reply( const struct get_next_device_request_reply *req )
3729 fprintf( stderr, " next=%04x", req->next );
3730 dump_ioctl_code( ", code=", &req->code );
3731 dump_uint64( ", user_ptr=", &req->user_ptr );
3732 fprintf( stderr, ", in_size=%u", req->in_size );
3733 fprintf( stderr, ", out_size=%u", req->out_size );
3734 dump_varargs_bytes( ", next_data=", cur_size );
3737 static void dump_make_process_system_request( const struct make_process_system_request *req )
3741 static void dump_make_process_system_reply( const struct make_process_system_reply *req )
3743 fprintf( stderr, " event=%04x", req->event );
3746 static void dump_get_token_statistics_request( const struct get_token_statistics_request *req )
3748 fprintf( stderr, " handle=%04x", req->handle );
3751 static void dump_get_token_statistics_reply( const struct get_token_statistics_reply *req )
3753 dump_luid( " token_id=", &req->token_id );
3754 dump_luid( ", modified_id=", &req->modified_id );
3755 fprintf( stderr, ", primary=%d", req->primary );
3756 fprintf( stderr, ", impersonation_level=%d", req->impersonation_level );
3757 fprintf( stderr, ", group_count=%d", req->group_count );
3758 fprintf( stderr, ", privilege_count=%d", req->privilege_count );
3761 static void dump_create_completion_request( const struct create_completion_request *req )
3763 fprintf( stderr, " access=%08x", req->access );
3764 fprintf( stderr, ", attributes=%08x", req->attributes );
3765 fprintf( stderr, ", concurrent=%08x", req->concurrent );
3766 fprintf( stderr, ", rootdir=%04x", req->rootdir );
3767 dump_varargs_string( ", filename=", cur_size );
3770 static void dump_create_completion_reply( const struct create_completion_reply *req )
3772 fprintf( stderr, " handle=%04x", req->handle );
3775 static void dump_open_completion_request( const struct open_completion_request *req )
3777 fprintf( stderr, " access=%08x", req->access );
3778 fprintf( stderr, ", attributes=%08x", req->attributes );
3779 fprintf( stderr, ", rootdir=%04x", req->rootdir );
3780 dump_varargs_string( ", filename=", cur_size );
3783 static void dump_open_completion_reply( const struct open_completion_reply *req )
3785 fprintf( stderr, " handle=%04x", req->handle );
3788 static void dump_add_completion_request( const struct add_completion_request *req )
3790 fprintf( stderr, " handle=%04x", req->handle );
3791 dump_uint64( ", ckey=", &req->ckey );
3792 dump_uint64( ", cvalue=", &req->cvalue );
3793 fprintf( stderr, ", information=%08x", req->information );
3794 fprintf( stderr, ", status=%08x", req->status );
3797 static void dump_remove_completion_request( const struct remove_completion_request *req )
3799 fprintf( stderr, " handle=%04x", req->handle );
3802 static void dump_remove_completion_reply( const struct remove_completion_reply *req )
3804 dump_uint64( " ckey=", &req->ckey );
3805 dump_uint64( ", cvalue=", &req->cvalue );
3806 fprintf( stderr, ", information=%08x", req->information );
3807 fprintf( stderr, ", status=%08x", req->status );
3810 static void dump_query_completion_request( const struct query_completion_request *req )
3812 fprintf( stderr, " handle=%04x", req->handle );
3815 static void dump_query_completion_reply( const struct query_completion_reply *req )
3817 fprintf( stderr, " depth=%08x", req->depth );
3820 static void dump_set_completion_info_request( const struct set_completion_info_request *req )
3822 fprintf( stderr, " handle=%04x", req->handle );
3823 dump_uint64( ", ckey=", &req->ckey );
3824 fprintf( stderr, ", chandle=%04x", req->chandle );
3827 static void dump_add_fd_completion_request( const struct add_fd_completion_request *req )
3829 fprintf( stderr, " handle=%04x", req->handle );
3830 dump_uint64( ", cvalue=", &req->cvalue );
3831 fprintf( stderr, ", status=%08x", req->status );
3832 fprintf( stderr, ", information=%08x", req->information );
3835 static void dump_get_window_layered_info_request( const struct get_window_layered_info_request *req )
3837 fprintf( stderr, " handle=%08x", req->handle );
3840 static void dump_get_window_layered_info_reply( const struct get_window_layered_info_reply *req )
3842 fprintf( stderr, " color_key=%08x", req->color_key );
3843 fprintf( stderr, ", alpha=%08x", req->alpha );
3844 fprintf( stderr, ", flags=%08x", req->flags );
3847 static void dump_set_window_layered_info_request( const struct set_window_layered_info_request *req )
3849 fprintf( stderr, " handle=%08x", req->handle );
3850 fprintf( stderr, ", color_key=%08x", req->color_key );
3851 fprintf( stderr, ", alpha=%08x", req->alpha );
3852 fprintf( stderr, ", flags=%08x", req->flags );
3855 static void dump_alloc_user_handle_request( const struct alloc_user_handle_request *req )
3859 static void dump_alloc_user_handle_reply( const struct alloc_user_handle_reply *req )
3861 fprintf( stderr, " handle=%08x", req->handle );
3864 static void dump_free_user_handle_request( const struct free_user_handle_request *req )
3866 fprintf( stderr, " handle=%08x", req->handle );
3869 static void dump_set_cursor_request( const struct set_cursor_request *req )
3871 fprintf( stderr, " flags=%08x", req->flags );
3872 fprintf( stderr, ", handle=%08x", req->handle );
3873 fprintf( stderr, ", show_count=%d", req->show_count );
3876 static void dump_set_cursor_reply( const struct set_cursor_reply *req )
3878 fprintf( stderr, " prev_handle=%08x", req->prev_handle );
3879 fprintf( stderr, ", prev_count=%d", req->prev_count );
3882 static const dump_func req_dumpers[REQ_NB_REQUESTS] = {
3883 (dump_func)dump_new_process_request,
3884 (dump_func)dump_get_new_process_info_request,
3885 (dump_func)dump_new_thread_request,
3886 (dump_func)dump_get_startup_info_request,
3887 (dump_func)dump_init_process_done_request,
3888 (dump_func)dump_init_thread_request,
3889 (dump_func)dump_terminate_process_request,
3890 (dump_func)dump_terminate_thread_request,
3891 (dump_func)dump_get_process_info_request,
3892 (dump_func)dump_set_process_info_request,
3893 (dump_func)dump_get_thread_info_request,
3894 (dump_func)dump_set_thread_info_request,
3895 (dump_func)dump_get_dll_info_request,
3896 (dump_func)dump_suspend_thread_request,
3897 (dump_func)dump_resume_thread_request,
3898 (dump_func)dump_load_dll_request,
3899 (dump_func)dump_unload_dll_request,
3900 (dump_func)dump_queue_apc_request,
3901 (dump_func)dump_get_apc_result_request,
3902 (dump_func)dump_close_handle_request,
3903 (dump_func)dump_set_handle_info_request,
3904 (dump_func)dump_dup_handle_request,
3905 (dump_func)dump_open_process_request,
3906 (dump_func)dump_open_thread_request,
3907 (dump_func)dump_select_request,
3908 (dump_func)dump_create_event_request,
3909 (dump_func)dump_event_op_request,
3910 (dump_func)dump_open_event_request,
3911 (dump_func)dump_create_mutex_request,
3912 (dump_func)dump_release_mutex_request,
3913 (dump_func)dump_open_mutex_request,
3914 (dump_func)dump_create_semaphore_request,
3915 (dump_func)dump_release_semaphore_request,
3916 (dump_func)dump_open_semaphore_request,
3917 (dump_func)dump_create_file_request,
3918 (dump_func)dump_open_file_object_request,
3919 (dump_func)dump_alloc_file_handle_request,
3920 (dump_func)dump_get_handle_unix_name_request,
3921 (dump_func)dump_get_handle_fd_request,
3922 (dump_func)dump_flush_file_request,
3923 (dump_func)dump_lock_file_request,
3924 (dump_func)dump_unlock_file_request,
3925 (dump_func)dump_create_socket_request,
3926 (dump_func)dump_accept_socket_request,
3927 (dump_func)dump_accept_into_socket_request,
3928 (dump_func)dump_set_socket_event_request,
3929 (dump_func)dump_get_socket_event_request,
3930 (dump_func)dump_enable_socket_event_request,
3931 (dump_func)dump_set_socket_deferred_request,
3932 (dump_func)dump_alloc_console_request,
3933 (dump_func)dump_free_console_request,
3934 (dump_func)dump_get_console_renderer_events_request,
3935 (dump_func)dump_open_console_request,
3936 (dump_func)dump_get_console_wait_event_request,
3937 (dump_func)dump_get_console_mode_request,
3938 (dump_func)dump_set_console_mode_request,
3939 (dump_func)dump_set_console_input_info_request,
3940 (dump_func)dump_get_console_input_info_request,
3941 (dump_func)dump_append_console_input_history_request,
3942 (dump_func)dump_get_console_input_history_request,
3943 (dump_func)dump_create_console_output_request,
3944 (dump_func)dump_set_console_output_info_request,
3945 (dump_func)dump_get_console_output_info_request,
3946 (dump_func)dump_write_console_input_request,
3947 (dump_func)dump_read_console_input_request,
3948 (dump_func)dump_write_console_output_request,
3949 (dump_func)dump_fill_console_output_request,
3950 (dump_func)dump_read_console_output_request,
3951 (dump_func)dump_move_console_output_request,
3952 (dump_func)dump_send_console_signal_request,
3953 (dump_func)dump_read_directory_changes_request,
3954 (dump_func)dump_read_change_request,
3955 (dump_func)dump_create_mapping_request,
3956 (dump_func)dump_open_mapping_request,
3957 (dump_func)dump_get_mapping_info_request,
3958 (dump_func)dump_get_mapping_committed_range_request,
3959 (dump_func)dump_add_mapping_committed_range_request,
3960 (dump_func)dump_create_snapshot_request,
3961 (dump_func)dump_next_process_request,
3962 (dump_func)dump_next_thread_request,
3963 (dump_func)dump_wait_debug_event_request,
3964 (dump_func)dump_queue_exception_event_request,
3965 (dump_func)dump_get_exception_status_request,
3966 (dump_func)dump_output_debug_string_request,
3967 (dump_func)dump_continue_debug_event_request,
3968 (dump_func)dump_debug_process_request,
3969 (dump_func)dump_debug_break_request,
3970 (dump_func)dump_set_debugger_kill_on_exit_request,
3971 (dump_func)dump_read_process_memory_request,
3972 (dump_func)dump_write_process_memory_request,
3973 (dump_func)dump_create_key_request,
3974 (dump_func)dump_open_key_request,
3975 (dump_func)dump_delete_key_request,
3976 (dump_func)dump_flush_key_request,
3977 (dump_func)dump_enum_key_request,
3978 (dump_func)dump_set_key_value_request,
3979 (dump_func)dump_get_key_value_request,
3980 (dump_func)dump_enum_key_value_request,
3981 (dump_func)dump_delete_key_value_request,
3982 (dump_func)dump_load_registry_request,
3983 (dump_func)dump_unload_registry_request,
3984 (dump_func)dump_save_registry_request,
3985 (dump_func)dump_set_registry_notification_request,
3986 (dump_func)dump_create_timer_request,
3987 (dump_func)dump_open_timer_request,
3988 (dump_func)dump_set_timer_request,
3989 (dump_func)dump_cancel_timer_request,
3990 (dump_func)dump_get_timer_info_request,
3991 (dump_func)dump_get_thread_context_request,
3992 (dump_func)dump_set_thread_context_request,
3993 (dump_func)dump_get_selector_entry_request,
3994 (dump_func)dump_add_atom_request,
3995 (dump_func)dump_delete_atom_request,
3996 (dump_func)dump_find_atom_request,
3997 (dump_func)dump_get_atom_information_request,
3998 (dump_func)dump_set_atom_information_request,
3999 (dump_func)dump_empty_atom_table_request,
4000 (dump_func)dump_init_atom_table_request,
4001 (dump_func)dump_get_msg_queue_request,
4002 (dump_func)dump_set_queue_fd_request,
4003 (dump_func)dump_set_queue_mask_request,
4004 (dump_func)dump_get_queue_status_request,
4005 (dump_func)dump_get_process_idle_event_request,
4006 (dump_func)dump_send_message_request,
4007 (dump_func)dump_post_quit_message_request,
4008 (dump_func)dump_send_hardware_message_request,
4009 (dump_func)dump_get_message_request,
4010 (dump_func)dump_reply_message_request,
4011 (dump_func)dump_accept_hardware_message_request,
4012 (dump_func)dump_get_message_reply_request,
4013 (dump_func)dump_set_win_timer_request,
4014 (dump_func)dump_kill_win_timer_request,
4015 (dump_func)dump_is_window_hung_request,
4016 (dump_func)dump_get_serial_info_request,
4017 (dump_func)dump_set_serial_info_request,
4018 (dump_func)dump_register_async_request,
4019 (dump_func)dump_cancel_async_request,
4020 (dump_func)dump_ioctl_request,
4021 (dump_func)dump_get_ioctl_result_request,
4022 (dump_func)dump_create_named_pipe_request,
4023 (dump_func)dump_get_named_pipe_info_request,
4024 (dump_func)dump_create_window_request,
4025 (dump_func)dump_destroy_window_request,
4026 (dump_func)dump_get_desktop_window_request,
4027 (dump_func)dump_set_window_owner_request,
4028 (dump_func)dump_get_window_info_request,
4029 (dump_func)dump_set_window_info_request,
4030 (dump_func)dump_set_parent_request,
4031 (dump_func)dump_get_window_parents_request,
4032 (dump_func)dump_get_window_children_request,
4033 (dump_func)dump_get_window_children_from_point_request,
4034 (dump_func)dump_get_window_tree_request,
4035 (dump_func)dump_set_window_pos_request,
4036 (dump_func)dump_get_window_rectangles_request,
4037 (dump_func)dump_get_window_text_request,
4038 (dump_func)dump_set_window_text_request,
4039 (dump_func)dump_get_windows_offset_request,
4040 (dump_func)dump_get_visible_region_request,
4041 (dump_func)dump_get_window_region_request,
4042 (dump_func)dump_set_window_region_request,
4043 (dump_func)dump_get_update_region_request,
4044 (dump_func)dump_update_window_zorder_request,
4045 (dump_func)dump_redraw_window_request,
4046 (dump_func)dump_set_window_property_request,
4047 (dump_func)dump_remove_window_property_request,
4048 (dump_func)dump_get_window_property_request,
4049 (dump_func)dump_get_window_properties_request,
4050 (dump_func)dump_create_winstation_request,
4051 (dump_func)dump_open_winstation_request,
4052 (dump_func)dump_close_winstation_request,
4053 (dump_func)dump_get_process_winstation_request,
4054 (dump_func)dump_set_process_winstation_request,
4055 (dump_func)dump_enum_winstation_request,
4056 (dump_func)dump_create_desktop_request,
4057 (dump_func)dump_open_desktop_request,
4058 (dump_func)dump_close_desktop_request,
4059 (dump_func)dump_get_thread_desktop_request,
4060 (dump_func)dump_set_thread_desktop_request,
4061 (dump_func)dump_enum_desktop_request,
4062 (dump_func)dump_set_user_object_info_request,
4063 (dump_func)dump_attach_thread_input_request,
4064 (dump_func)dump_get_thread_input_request,
4065 (dump_func)dump_get_last_input_time_request,
4066 (dump_func)dump_get_key_state_request,
4067 (dump_func)dump_set_key_state_request,
4068 (dump_func)dump_set_foreground_window_request,
4069 (dump_func)dump_set_focus_window_request,
4070 (dump_func)dump_set_active_window_request,
4071 (dump_func)dump_set_capture_window_request,
4072 (dump_func)dump_set_caret_window_request,
4073 (dump_func)dump_set_caret_info_request,
4074 (dump_func)dump_set_hook_request,
4075 (dump_func)dump_remove_hook_request,
4076 (dump_func)dump_start_hook_chain_request,
4077 (dump_func)dump_finish_hook_chain_request,
4078 (dump_func)dump_get_hook_info_request,
4079 (dump_func)dump_create_class_request,
4080 (dump_func)dump_destroy_class_request,
4081 (dump_func)dump_set_class_info_request,
4082 (dump_func)dump_set_clipboard_info_request,
4083 (dump_func)dump_open_token_request,
4084 (dump_func)dump_set_global_windows_request,
4085 (dump_func)dump_adjust_token_privileges_request,
4086 (dump_func)dump_get_token_privileges_request,
4087 (dump_func)dump_check_token_privileges_request,
4088 (dump_func)dump_duplicate_token_request,
4089 (dump_func)dump_access_check_request,
4090 (dump_func)dump_get_token_sid_request,
4091 (dump_func)dump_get_token_groups_request,
4092 (dump_func)dump_get_token_default_dacl_request,
4093 (dump_func)dump_set_token_default_dacl_request,
4094 (dump_func)dump_set_security_object_request,
4095 (dump_func)dump_get_security_object_request,
4096 (dump_func)dump_create_mailslot_request,
4097 (dump_func)dump_set_mailslot_info_request,
4098 (dump_func)dump_create_directory_request,
4099 (dump_func)dump_open_directory_request,
4100 (dump_func)dump_get_directory_entry_request,
4101 (dump_func)dump_create_symlink_request,
4102 (dump_func)dump_open_symlink_request,
4103 (dump_func)dump_query_symlink_request,
4104 (dump_func)dump_get_object_info_request,
4105 (dump_func)dump_unlink_object_request,
4106 (dump_func)dump_get_token_impersonation_level_request,
4107 (dump_func)dump_allocate_locally_unique_id_request,
4108 (dump_func)dump_create_device_manager_request,
4109 (dump_func)dump_create_device_request,
4110 (dump_func)dump_delete_device_request,
4111 (dump_func)dump_get_next_device_request_request,
4112 (dump_func)dump_make_process_system_request,
4113 (dump_func)dump_get_token_statistics_request,
4114 (dump_func)dump_create_completion_request,
4115 (dump_func)dump_open_completion_request,
4116 (dump_func)dump_add_completion_request,
4117 (dump_func)dump_remove_completion_request,
4118 (dump_func)dump_query_completion_request,
4119 (dump_func)dump_set_completion_info_request,
4120 (dump_func)dump_add_fd_completion_request,
4121 (dump_func)dump_get_window_layered_info_request,
4122 (dump_func)dump_set_window_layered_info_request,
4123 (dump_func)dump_alloc_user_handle_request,
4124 (dump_func)dump_free_user_handle_request,
4125 (dump_func)dump_set_cursor_request,
4128 static const dump_func reply_dumpers[REQ_NB_REQUESTS] = {
4129 (dump_func)dump_new_process_reply,
4130 (dump_func)dump_get_new_process_info_reply,
4131 (dump_func)dump_new_thread_reply,
4132 (dump_func)dump_get_startup_info_reply,
4133 NULL,
4134 (dump_func)dump_init_thread_reply,
4135 (dump_func)dump_terminate_process_reply,
4136 (dump_func)dump_terminate_thread_reply,
4137 (dump_func)dump_get_process_info_reply,
4138 NULL,
4139 (dump_func)dump_get_thread_info_reply,
4140 NULL,
4141 (dump_func)dump_get_dll_info_reply,
4142 (dump_func)dump_suspend_thread_reply,
4143 (dump_func)dump_resume_thread_reply,
4144 NULL,
4145 NULL,
4146 (dump_func)dump_queue_apc_reply,
4147 (dump_func)dump_get_apc_result_reply,
4148 NULL,
4149 (dump_func)dump_set_handle_info_reply,
4150 (dump_func)dump_dup_handle_reply,
4151 (dump_func)dump_open_process_reply,
4152 (dump_func)dump_open_thread_reply,
4153 (dump_func)dump_select_reply,
4154 (dump_func)dump_create_event_reply,
4155 NULL,
4156 (dump_func)dump_open_event_reply,
4157 (dump_func)dump_create_mutex_reply,
4158 (dump_func)dump_release_mutex_reply,
4159 (dump_func)dump_open_mutex_reply,
4160 (dump_func)dump_create_semaphore_reply,
4161 (dump_func)dump_release_semaphore_reply,
4162 (dump_func)dump_open_semaphore_reply,
4163 (dump_func)dump_create_file_reply,
4164 (dump_func)dump_open_file_object_reply,
4165 (dump_func)dump_alloc_file_handle_reply,
4166 (dump_func)dump_get_handle_unix_name_reply,
4167 (dump_func)dump_get_handle_fd_reply,
4168 (dump_func)dump_flush_file_reply,
4169 (dump_func)dump_lock_file_reply,
4170 NULL,
4171 (dump_func)dump_create_socket_reply,
4172 (dump_func)dump_accept_socket_reply,
4173 NULL,
4174 NULL,
4175 (dump_func)dump_get_socket_event_reply,
4176 NULL,
4177 NULL,
4178 (dump_func)dump_alloc_console_reply,
4179 NULL,
4180 (dump_func)dump_get_console_renderer_events_reply,
4181 (dump_func)dump_open_console_reply,
4182 (dump_func)dump_get_console_wait_event_reply,
4183 (dump_func)dump_get_console_mode_reply,
4184 NULL,
4185 NULL,
4186 (dump_func)dump_get_console_input_info_reply,
4187 NULL,
4188 (dump_func)dump_get_console_input_history_reply,
4189 (dump_func)dump_create_console_output_reply,
4190 NULL,
4191 (dump_func)dump_get_console_output_info_reply,
4192 (dump_func)dump_write_console_input_reply,
4193 (dump_func)dump_read_console_input_reply,
4194 (dump_func)dump_write_console_output_reply,
4195 (dump_func)dump_fill_console_output_reply,
4196 (dump_func)dump_read_console_output_reply,
4197 NULL,
4198 NULL,
4199 NULL,
4200 (dump_func)dump_read_change_reply,
4201 (dump_func)dump_create_mapping_reply,
4202 (dump_func)dump_open_mapping_reply,
4203 (dump_func)dump_get_mapping_info_reply,
4204 (dump_func)dump_get_mapping_committed_range_reply,
4205 NULL,
4206 (dump_func)dump_create_snapshot_reply,
4207 (dump_func)dump_next_process_reply,
4208 (dump_func)dump_next_thread_reply,
4209 (dump_func)dump_wait_debug_event_reply,
4210 (dump_func)dump_queue_exception_event_reply,
4211 (dump_func)dump_get_exception_status_reply,
4212 NULL,
4213 NULL,
4214 NULL,
4215 (dump_func)dump_debug_break_reply,
4216 NULL,
4217 (dump_func)dump_read_process_memory_reply,
4218 NULL,
4219 (dump_func)dump_create_key_reply,
4220 (dump_func)dump_open_key_reply,
4221 NULL,
4222 NULL,
4223 (dump_func)dump_enum_key_reply,
4224 NULL,
4225 (dump_func)dump_get_key_value_reply,
4226 (dump_func)dump_enum_key_value_reply,
4227 NULL,
4228 NULL,
4229 NULL,
4230 NULL,
4231 NULL,
4232 (dump_func)dump_create_timer_reply,
4233 (dump_func)dump_open_timer_reply,
4234 (dump_func)dump_set_timer_reply,
4235 (dump_func)dump_cancel_timer_reply,
4236 (dump_func)dump_get_timer_info_reply,
4237 (dump_func)dump_get_thread_context_reply,
4238 (dump_func)dump_set_thread_context_reply,
4239 (dump_func)dump_get_selector_entry_reply,
4240 (dump_func)dump_add_atom_reply,
4241 NULL,
4242 (dump_func)dump_find_atom_reply,
4243 (dump_func)dump_get_atom_information_reply,
4244 NULL,
4245 NULL,
4246 (dump_func)dump_init_atom_table_reply,
4247 (dump_func)dump_get_msg_queue_reply,
4248 NULL,
4249 (dump_func)dump_set_queue_mask_reply,
4250 (dump_func)dump_get_queue_status_reply,
4251 (dump_func)dump_get_process_idle_event_reply,
4252 NULL,
4253 NULL,
4254 (dump_func)dump_send_hardware_message_reply,
4255 (dump_func)dump_get_message_reply,
4256 NULL,
4257 NULL,
4258 (dump_func)dump_get_message_reply_reply,
4259 (dump_func)dump_set_win_timer_reply,
4260 NULL,
4261 (dump_func)dump_is_window_hung_reply,
4262 (dump_func)dump_get_serial_info_reply,
4263 NULL,
4264 NULL,
4265 NULL,
4266 (dump_func)dump_ioctl_reply,
4267 (dump_func)dump_get_ioctl_result_reply,
4268 (dump_func)dump_create_named_pipe_reply,
4269 (dump_func)dump_get_named_pipe_info_reply,
4270 (dump_func)dump_create_window_reply,
4271 NULL,
4272 (dump_func)dump_get_desktop_window_reply,
4273 (dump_func)dump_set_window_owner_reply,
4274 (dump_func)dump_get_window_info_reply,
4275 (dump_func)dump_set_window_info_reply,
4276 (dump_func)dump_set_parent_reply,
4277 (dump_func)dump_get_window_parents_reply,
4278 (dump_func)dump_get_window_children_reply,
4279 (dump_func)dump_get_window_children_from_point_reply,
4280 (dump_func)dump_get_window_tree_reply,
4281 (dump_func)dump_set_window_pos_reply,
4282 (dump_func)dump_get_window_rectangles_reply,
4283 (dump_func)dump_get_window_text_reply,
4284 NULL,
4285 (dump_func)dump_get_windows_offset_reply,
4286 (dump_func)dump_get_visible_region_reply,
4287 (dump_func)dump_get_window_region_reply,
4288 NULL,
4289 (dump_func)dump_get_update_region_reply,
4290 NULL,
4291 NULL,
4292 NULL,
4293 (dump_func)dump_remove_window_property_reply,
4294 (dump_func)dump_get_window_property_reply,
4295 (dump_func)dump_get_window_properties_reply,
4296 (dump_func)dump_create_winstation_reply,
4297 (dump_func)dump_open_winstation_reply,
4298 NULL,
4299 (dump_func)dump_get_process_winstation_reply,
4300 NULL,
4301 (dump_func)dump_enum_winstation_reply,
4302 (dump_func)dump_create_desktop_reply,
4303 (dump_func)dump_open_desktop_reply,
4304 NULL,
4305 (dump_func)dump_get_thread_desktop_reply,
4306 NULL,
4307 (dump_func)dump_enum_desktop_reply,
4308 (dump_func)dump_set_user_object_info_reply,
4309 NULL,
4310 (dump_func)dump_get_thread_input_reply,
4311 (dump_func)dump_get_last_input_time_reply,
4312 (dump_func)dump_get_key_state_reply,
4313 NULL,
4314 (dump_func)dump_set_foreground_window_reply,
4315 (dump_func)dump_set_focus_window_reply,
4316 (dump_func)dump_set_active_window_reply,
4317 (dump_func)dump_set_capture_window_reply,
4318 (dump_func)dump_set_caret_window_reply,
4319 (dump_func)dump_set_caret_info_reply,
4320 (dump_func)dump_set_hook_reply,
4321 (dump_func)dump_remove_hook_reply,
4322 (dump_func)dump_start_hook_chain_reply,
4323 NULL,
4324 (dump_func)dump_get_hook_info_reply,
4325 (dump_func)dump_create_class_reply,
4326 (dump_func)dump_destroy_class_reply,
4327 (dump_func)dump_set_class_info_reply,
4328 (dump_func)dump_set_clipboard_info_reply,
4329 (dump_func)dump_open_token_reply,
4330 (dump_func)dump_set_global_windows_reply,
4331 (dump_func)dump_adjust_token_privileges_reply,
4332 (dump_func)dump_get_token_privileges_reply,
4333 (dump_func)dump_check_token_privileges_reply,
4334 (dump_func)dump_duplicate_token_reply,
4335 (dump_func)dump_access_check_reply,
4336 (dump_func)dump_get_token_sid_reply,
4337 (dump_func)dump_get_token_groups_reply,
4338 (dump_func)dump_get_token_default_dacl_reply,
4339 NULL,
4340 NULL,
4341 (dump_func)dump_get_security_object_reply,
4342 (dump_func)dump_create_mailslot_reply,
4343 (dump_func)dump_set_mailslot_info_reply,
4344 (dump_func)dump_create_directory_reply,
4345 (dump_func)dump_open_directory_reply,
4346 (dump_func)dump_get_directory_entry_reply,
4347 (dump_func)dump_create_symlink_reply,
4348 (dump_func)dump_open_symlink_reply,
4349 (dump_func)dump_query_symlink_reply,
4350 (dump_func)dump_get_object_info_reply,
4351 NULL,
4352 (dump_func)dump_get_token_impersonation_level_reply,
4353 (dump_func)dump_allocate_locally_unique_id_reply,
4354 (dump_func)dump_create_device_manager_reply,
4355 (dump_func)dump_create_device_reply,
4356 NULL,
4357 (dump_func)dump_get_next_device_request_reply,
4358 (dump_func)dump_make_process_system_reply,
4359 (dump_func)dump_get_token_statistics_reply,
4360 (dump_func)dump_create_completion_reply,
4361 (dump_func)dump_open_completion_reply,
4362 NULL,
4363 (dump_func)dump_remove_completion_reply,
4364 (dump_func)dump_query_completion_reply,
4365 NULL,
4366 NULL,
4367 (dump_func)dump_get_window_layered_info_reply,
4368 NULL,
4369 (dump_func)dump_alloc_user_handle_reply,
4370 NULL,
4371 (dump_func)dump_set_cursor_reply,
4374 static const char * const req_names[REQ_NB_REQUESTS] = {
4375 "new_process",
4376 "get_new_process_info",
4377 "new_thread",
4378 "get_startup_info",
4379 "init_process_done",
4380 "init_thread",
4381 "terminate_process",
4382 "terminate_thread",
4383 "get_process_info",
4384 "set_process_info",
4385 "get_thread_info",
4386 "set_thread_info",
4387 "get_dll_info",
4388 "suspend_thread",
4389 "resume_thread",
4390 "load_dll",
4391 "unload_dll",
4392 "queue_apc",
4393 "get_apc_result",
4394 "close_handle",
4395 "set_handle_info",
4396 "dup_handle",
4397 "open_process",
4398 "open_thread",
4399 "select",
4400 "create_event",
4401 "event_op",
4402 "open_event",
4403 "create_mutex",
4404 "release_mutex",
4405 "open_mutex",
4406 "create_semaphore",
4407 "release_semaphore",
4408 "open_semaphore",
4409 "create_file",
4410 "open_file_object",
4411 "alloc_file_handle",
4412 "get_handle_unix_name",
4413 "get_handle_fd",
4414 "flush_file",
4415 "lock_file",
4416 "unlock_file",
4417 "create_socket",
4418 "accept_socket",
4419 "accept_into_socket",
4420 "set_socket_event",
4421 "get_socket_event",
4422 "enable_socket_event",
4423 "set_socket_deferred",
4424 "alloc_console",
4425 "free_console",
4426 "get_console_renderer_events",
4427 "open_console",
4428 "get_console_wait_event",
4429 "get_console_mode",
4430 "set_console_mode",
4431 "set_console_input_info",
4432 "get_console_input_info",
4433 "append_console_input_history",
4434 "get_console_input_history",
4435 "create_console_output",
4436 "set_console_output_info",
4437 "get_console_output_info",
4438 "write_console_input",
4439 "read_console_input",
4440 "write_console_output",
4441 "fill_console_output",
4442 "read_console_output",
4443 "move_console_output",
4444 "send_console_signal",
4445 "read_directory_changes",
4446 "read_change",
4447 "create_mapping",
4448 "open_mapping",
4449 "get_mapping_info",
4450 "get_mapping_committed_range",
4451 "add_mapping_committed_range",
4452 "create_snapshot",
4453 "next_process",
4454 "next_thread",
4455 "wait_debug_event",
4456 "queue_exception_event",
4457 "get_exception_status",
4458 "output_debug_string",
4459 "continue_debug_event",
4460 "debug_process",
4461 "debug_break",
4462 "set_debugger_kill_on_exit",
4463 "read_process_memory",
4464 "write_process_memory",
4465 "create_key",
4466 "open_key",
4467 "delete_key",
4468 "flush_key",
4469 "enum_key",
4470 "set_key_value",
4471 "get_key_value",
4472 "enum_key_value",
4473 "delete_key_value",
4474 "load_registry",
4475 "unload_registry",
4476 "save_registry",
4477 "set_registry_notification",
4478 "create_timer",
4479 "open_timer",
4480 "set_timer",
4481 "cancel_timer",
4482 "get_timer_info",
4483 "get_thread_context",
4484 "set_thread_context",
4485 "get_selector_entry",
4486 "add_atom",
4487 "delete_atom",
4488 "find_atom",
4489 "get_atom_information",
4490 "set_atom_information",
4491 "empty_atom_table",
4492 "init_atom_table",
4493 "get_msg_queue",
4494 "set_queue_fd",
4495 "set_queue_mask",
4496 "get_queue_status",
4497 "get_process_idle_event",
4498 "send_message",
4499 "post_quit_message",
4500 "send_hardware_message",
4501 "get_message",
4502 "reply_message",
4503 "accept_hardware_message",
4504 "get_message_reply",
4505 "set_win_timer",
4506 "kill_win_timer",
4507 "is_window_hung",
4508 "get_serial_info",
4509 "set_serial_info",
4510 "register_async",
4511 "cancel_async",
4512 "ioctl",
4513 "get_ioctl_result",
4514 "create_named_pipe",
4515 "get_named_pipe_info",
4516 "create_window",
4517 "destroy_window",
4518 "get_desktop_window",
4519 "set_window_owner",
4520 "get_window_info",
4521 "set_window_info",
4522 "set_parent",
4523 "get_window_parents",
4524 "get_window_children",
4525 "get_window_children_from_point",
4526 "get_window_tree",
4527 "set_window_pos",
4528 "get_window_rectangles",
4529 "get_window_text",
4530 "set_window_text",
4531 "get_windows_offset",
4532 "get_visible_region",
4533 "get_window_region",
4534 "set_window_region",
4535 "get_update_region",
4536 "update_window_zorder",
4537 "redraw_window",
4538 "set_window_property",
4539 "remove_window_property",
4540 "get_window_property",
4541 "get_window_properties",
4542 "create_winstation",
4543 "open_winstation",
4544 "close_winstation",
4545 "get_process_winstation",
4546 "set_process_winstation",
4547 "enum_winstation",
4548 "create_desktop",
4549 "open_desktop",
4550 "close_desktop",
4551 "get_thread_desktop",
4552 "set_thread_desktop",
4553 "enum_desktop",
4554 "set_user_object_info",
4555 "attach_thread_input",
4556 "get_thread_input",
4557 "get_last_input_time",
4558 "get_key_state",
4559 "set_key_state",
4560 "set_foreground_window",
4561 "set_focus_window",
4562 "set_active_window",
4563 "set_capture_window",
4564 "set_caret_window",
4565 "set_caret_info",
4566 "set_hook",
4567 "remove_hook",
4568 "start_hook_chain",
4569 "finish_hook_chain",
4570 "get_hook_info",
4571 "create_class",
4572 "destroy_class",
4573 "set_class_info",
4574 "set_clipboard_info",
4575 "open_token",
4576 "set_global_windows",
4577 "adjust_token_privileges",
4578 "get_token_privileges",
4579 "check_token_privileges",
4580 "duplicate_token",
4581 "access_check",
4582 "get_token_sid",
4583 "get_token_groups",
4584 "get_token_default_dacl",
4585 "set_token_default_dacl",
4586 "set_security_object",
4587 "get_security_object",
4588 "create_mailslot",
4589 "set_mailslot_info",
4590 "create_directory",
4591 "open_directory",
4592 "get_directory_entry",
4593 "create_symlink",
4594 "open_symlink",
4595 "query_symlink",
4596 "get_object_info",
4597 "unlink_object",
4598 "get_token_impersonation_level",
4599 "allocate_locally_unique_id",
4600 "create_device_manager",
4601 "create_device",
4602 "delete_device",
4603 "get_next_device_request",
4604 "make_process_system",
4605 "get_token_statistics",
4606 "create_completion",
4607 "open_completion",
4608 "add_completion",
4609 "remove_completion",
4610 "query_completion",
4611 "set_completion_info",
4612 "add_fd_completion",
4613 "get_window_layered_info",
4614 "set_window_layered_info",
4615 "alloc_user_handle",
4616 "free_user_handle",
4617 "set_cursor",
4620 static const struct
4622 const char *name;
4623 unsigned int value;
4624 } status_names[] =
4626 { "ABANDONED_WAIT_0", STATUS_ABANDONED_WAIT_0 },
4627 { "ACCESS_DENIED", STATUS_ACCESS_DENIED },
4628 { "ACCESS_VIOLATION", STATUS_ACCESS_VIOLATION },
4629 { "ADDRESS_ALREADY_ASSOCIATED", STATUS_ADDRESS_ALREADY_ASSOCIATED },
4630 { "ALERTED", STATUS_ALERTED },
4631 { "ALIAS_EXISTS", STATUS_ALIAS_EXISTS },
4632 { "BAD_DEVICE_TYPE", STATUS_BAD_DEVICE_TYPE },
4633 { "BAD_IMPERSONATION_LEVEL", STATUS_BAD_IMPERSONATION_LEVEL },
4634 { "BREAKPOINT", STATUS_BREAKPOINT },
4635 { "BUFFER_OVERFLOW", STATUS_BUFFER_OVERFLOW },
4636 { "BUFFER_TOO_SMALL", STATUS_BUFFER_TOO_SMALL },
4637 { "CANCELLED", STATUS_CANCELLED },
4638 { "CANNOT_DELETE", STATUS_CANNOT_DELETE },
4639 { "CANT_OPEN_ANONYMOUS", STATUS_CANT_OPEN_ANONYMOUS },
4640 { "CANT_WAIT", STATUS_CANT_WAIT },
4641 { "CHILD_MUST_BE_VOLATILE", STATUS_CHILD_MUST_BE_VOLATILE },
4642 { "CONNECTION_ABORTED", STATUS_CONNECTION_ABORTED },
4643 { "CONNECTION_DISCONNECTED", STATUS_CONNECTION_DISCONNECTED },
4644 { "CONNECTION_REFUSED", STATUS_CONNECTION_REFUSED },
4645 { "CONNECTION_RESET", STATUS_CONNECTION_RESET },
4646 { "DEBUGGER_INACTIVE", STATUS_DEBUGGER_INACTIVE },
4647 { "DEVICE_BUSY", STATUS_DEVICE_BUSY },
4648 { "DIRECTORY_NOT_EMPTY", STATUS_DIRECTORY_NOT_EMPTY },
4649 { "DISK_FULL", STATUS_DISK_FULL },
4650 { "DLL_NOT_FOUND", STATUS_DLL_NOT_FOUND },
4651 { "ERROR_CLASS_ALREADY_EXISTS", 0xc0010000 | ERROR_CLASS_ALREADY_EXISTS },
4652 { "ERROR_CLASS_DOES_NOT_EXIST", 0xc0010000 | ERROR_CLASS_DOES_NOT_EXIST },
4653 { "ERROR_CLASS_HAS_WINDOWS", 0xc0010000 | ERROR_CLASS_HAS_WINDOWS },
4654 { "ERROR_CLIPBOARD_NOT_OPEN", 0xc0010000 | ERROR_CLIPBOARD_NOT_OPEN },
4655 { "ERROR_INVALID_CURSOR_HANDLE", 0xc0010000 | ERROR_INVALID_CURSOR_HANDLE },
4656 { "ERROR_INVALID_INDEX", 0xc0010000 | ERROR_INVALID_INDEX },
4657 { "ERROR_INVALID_WINDOW_HANDLE", 0xc0010000 | ERROR_INVALID_WINDOW_HANDLE },
4658 { "FILE_DELETED", STATUS_FILE_DELETED },
4659 { "FILE_IS_A_DIRECTORY", STATUS_FILE_IS_A_DIRECTORY },
4660 { "FILE_LOCK_CONFLICT", STATUS_FILE_LOCK_CONFLICT },
4661 { "GENERIC_NOT_MAPPED", STATUS_GENERIC_NOT_MAPPED },
4662 { "HANDLES_CLOSED", STATUS_HANDLES_CLOSED },
4663 { "HANDLE_NOT_CLOSABLE", STATUS_HANDLE_NOT_CLOSABLE },
4664 { "HOST_UNREACHABLE", STATUS_HOST_UNREACHABLE },
4665 { "ILLEGAL_FUNCTION", STATUS_ILLEGAL_FUNCTION },
4666 { "INSTANCE_NOT_AVAILABLE", STATUS_INSTANCE_NOT_AVAILABLE },
4667 { "INSUFFICIENT_RESOURCES", STATUS_INSUFFICIENT_RESOURCES },
4668 { "INVALID_CID", STATUS_INVALID_CID },
4669 { "INVALID_DEVICE_REQUEST", STATUS_INVALID_DEVICE_REQUEST },
4670 { "INVALID_FILE_FOR_SECTION", STATUS_INVALID_FILE_FOR_SECTION },
4671 { "INVALID_HANDLE", STATUS_INVALID_HANDLE },
4672 { "INVALID_PARAMETER", STATUS_INVALID_PARAMETER },
4673 { "INVALID_SECURITY_DESCR", STATUS_INVALID_SECURITY_DESCR },
4674 { "IO_TIMEOUT", STATUS_IO_TIMEOUT },
4675 { "KEY_DELETED", STATUS_KEY_DELETED },
4676 { "MAPPED_FILE_SIZE_ZERO", STATUS_MAPPED_FILE_SIZE_ZERO },
4677 { "MUTANT_NOT_OWNED", STATUS_MUTANT_NOT_OWNED },
4678 { "NAME_TOO_LONG", STATUS_NAME_TOO_LONG },
4679 { "NETWORK_BUSY", STATUS_NETWORK_BUSY },
4680 { "NETWORK_UNREACHABLE", STATUS_NETWORK_UNREACHABLE },
4681 { "NOTIFY_ENUM_DIR", STATUS_NOTIFY_ENUM_DIR },
4682 { "NOT_ALL_ASSIGNED", STATUS_NOT_ALL_ASSIGNED },
4683 { "NOT_A_DIRECTORY", STATUS_NOT_A_DIRECTORY },
4684 { "NOT_FOUND", STATUS_NOT_FOUND },
4685 { "NOT_IMPLEMENTED", STATUS_NOT_IMPLEMENTED },
4686 { "NOT_REGISTRY_FILE", STATUS_NOT_REGISTRY_FILE },
4687 { "NOT_SUPPORTED", STATUS_NOT_SUPPORTED },
4688 { "NO_DATA_DETECTED", STATUS_NO_DATA_DETECTED },
4689 { "NO_IMPERSONATION_TOKEN", STATUS_NO_IMPERSONATION_TOKEN },
4690 { "NO_MEMORY", STATUS_NO_MEMORY },
4691 { "NO_MORE_ENTRIES", STATUS_NO_MORE_ENTRIES },
4692 { "NO_MORE_FILES", STATUS_NO_MORE_FILES },
4693 { "NO_SUCH_DEVICE", STATUS_NO_SUCH_DEVICE },
4694 { "NO_SUCH_FILE", STATUS_NO_SUCH_FILE },
4695 { "NO_TOKEN", STATUS_NO_TOKEN },
4696 { "OBJECT_NAME_COLLISION", STATUS_OBJECT_NAME_COLLISION },
4697 { "OBJECT_NAME_EXISTS", STATUS_OBJECT_NAME_EXISTS },
4698 { "OBJECT_NAME_INVALID", STATUS_OBJECT_NAME_INVALID },
4699 { "OBJECT_NAME_NOT_FOUND", STATUS_OBJECT_NAME_NOT_FOUND },
4700 { "OBJECT_PATH_INVALID", STATUS_OBJECT_PATH_INVALID },
4701 { "OBJECT_PATH_NOT_FOUND", STATUS_OBJECT_PATH_NOT_FOUND },
4702 { "OBJECT_PATH_SYNTAX_BAD", STATUS_OBJECT_PATH_SYNTAX_BAD },
4703 { "OBJECT_TYPE_MISMATCH", STATUS_OBJECT_TYPE_MISMATCH },
4704 { "PENDING", STATUS_PENDING },
4705 { "PIPE_BUSY", STATUS_PIPE_BUSY },
4706 { "PIPE_CONNECTED", STATUS_PIPE_CONNECTED },
4707 { "PIPE_DISCONNECTED", STATUS_PIPE_DISCONNECTED },
4708 { "PIPE_LISTENING", STATUS_PIPE_LISTENING },
4709 { "PIPE_NOT_AVAILABLE", STATUS_PIPE_NOT_AVAILABLE },
4710 { "PRIVILEGE_NOT_HELD", STATUS_PRIVILEGE_NOT_HELD },
4711 { "PROCESS_IS_TERMINATING", STATUS_PROCESS_IS_TERMINATING },
4712 { "SECTION_TOO_BIG", STATUS_SECTION_TOO_BIG },
4713 { "SEMAPHORE_LIMIT_EXCEEDED", STATUS_SEMAPHORE_LIMIT_EXCEEDED },
4714 { "SHARING_VIOLATION", STATUS_SHARING_VIOLATION },
4715 { "SHUTDOWN_IN_PROGRESS", STATUS_SHUTDOWN_IN_PROGRESS },
4716 { "SUSPEND_COUNT_EXCEEDED", STATUS_SUSPEND_COUNT_EXCEEDED },
4717 { "THREAD_IS_TERMINATING", STATUS_THREAD_IS_TERMINATING },
4718 { "TIMEOUT", STATUS_TIMEOUT },
4719 { "TOO_MANY_OPENED_FILES", STATUS_TOO_MANY_OPENED_FILES },
4720 { "UNSUCCESSFUL", STATUS_UNSUCCESSFUL },
4721 { "USER_APC", STATUS_USER_APC },
4722 { "USER_MAPPED_FILE", STATUS_USER_MAPPED_FILE },
4723 { "VOLUME_DISMOUNTED", STATUS_VOLUME_DISMOUNTED },
4724 { "WAS_LOCKED", STATUS_WAS_LOCKED },
4725 { NULL, 0 }
4728 /* ### make_requests end ### */
4729 /* Everything above this line is generated automatically by tools/make_requests */
4731 static const char *get_status_name( unsigned int status )
4733 int i;
4734 static char buffer[10];
4736 if (status)
4738 for (i = 0; status_names[i].name; i++)
4739 if (status_names[i].value == status) return status_names[i].name;
4741 sprintf( buffer, "%x", status );
4742 return buffer;
4745 void trace_request(void)
4747 enum request req = current->req.request_header.req;
4748 if (req < REQ_NB_REQUESTS)
4750 fprintf( stderr, "%04x: %s(", current->id, req_names[req] );
4751 if (req_dumpers[req])
4753 cur_data = get_req_data();
4754 cur_size = get_req_data_size();
4755 req_dumpers[req]( &current->req );
4757 fprintf( stderr, " )\n" );
4759 else fprintf( stderr, "%04x: %d(?)\n", current->id, req );
4762 void trace_reply( enum request req, const union generic_reply *reply )
4764 if (req < REQ_NB_REQUESTS)
4766 fprintf( stderr, "%04x: %s() = %s",
4767 current->id, req_names[req], get_status_name(current->error) );
4768 if (reply_dumpers[req])
4770 fprintf( stderr, " {" );
4771 cur_data = current->reply_data;
4772 cur_size = reply->reply_header.reply_size;
4773 reply_dumpers[req]( reply );
4774 fprintf( stderr, " }" );
4776 fputc( '\n', stderr );
4778 else fprintf( stderr, "%04x: %d() = %s\n",
4779 current->id, req, get_status_name(current->error) );