wined3d: Explicitly check for WINED3DUSAGE_TEXTURE when validating surface dimensions...
[wine.git] / server / trace.c
blobefbd0e2475076a90fbbc164a0589e5865f4c7c58
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 "winuser.h"
40 #include "winioctl.h"
41 #include "ddk/wdm.h"
42 #define USE_WS_PREFIX
43 #include "winsock2.h"
44 #include "file.h"
45 #include "request.h"
46 #include "unicode.h"
48 static const void *cur_data;
49 static data_size_t cur_size;
51 static const char *get_status_name( unsigned int status );
53 /* utility functions */
55 static inline void remove_data( data_size_t size )
57 cur_data = (const char *)cur_data + size;
58 cur_size -= size;
61 static void dump_uints( const int *ptr, int len )
63 fputc( '{', stderr );
64 while (len > 0)
66 fprintf( stderr, "%08x", *ptr++ );
67 if (--len) fputc( ',', stderr );
69 fputc( '}', stderr );
72 static void dump_handles( const char *prefix, const obj_handle_t *data, data_size_t size )
74 data_size_t len = size / sizeof(*data);
76 fprintf( stderr,"%s{", prefix );
77 while (len > 0)
79 fprintf( stderr, "%04x", *data++ );
80 if (--len) fputc( ',', stderr );
82 fputc( '}', stderr );
85 static void dump_timeout( const char *prefix, const timeout_t *time )
87 fprintf( stderr, "%s%s", prefix, get_timeout_str(*time) );
90 static void dump_uint64( const char *prefix, const unsigned __int64 *val )
92 if ((unsigned int)*val != *val)
93 fprintf( stderr, "%s%x%08x", prefix, (unsigned int)(*val >> 32), (unsigned int)*val );
94 else
95 fprintf( stderr, "%s%08x", prefix, (unsigned int)*val );
98 static void dump_rectangle( const char *prefix, const rectangle_t *rect )
100 fprintf( stderr, "%s{%d,%d;%d,%d}", prefix,
101 rect->left, rect->top, rect->right, rect->bottom );
104 static void dump_char_info( const char *prefix, const char_info_t *info )
106 fprintf( stderr, "%s{'", prefix );
107 dump_strW( &info->ch, 1, stderr, "\'\'" );
108 fprintf( stderr, "',%04x}", info->attr );
111 static void dump_ioctl_code( const char *prefix, const ioctl_code_t *code )
113 switch(*code)
115 #define CASE(c) case c: fprintf( stderr, "%s%s", prefix, #c ); break
116 CASE(FSCTL_DISMOUNT_VOLUME);
117 CASE(FSCTL_PIPE_DISCONNECT);
118 CASE(FSCTL_PIPE_LISTEN);
119 CASE(FSCTL_PIPE_WAIT);
120 CASE(WS_SIO_ADDRESS_LIST_CHANGE);
121 default: fprintf( stderr, "%s%08x", prefix, *code ); break;
122 #undef CASE
126 static void dump_cpu_type( const char *prefix, const cpu_type_t *code )
128 switch (*code)
130 #define CASE(c) case CPU_##c: fprintf( stderr, "%s%s", prefix, #c ); break
131 CASE(x86);
132 CASE(x86_64);
133 CASE(POWERPC);
134 CASE(ARM);
135 CASE(ARM64);
136 default: fprintf( stderr, "%s%u", prefix, *code ); break;
137 #undef CASE
141 static void dump_apc_call( const char *prefix, const apc_call_t *call )
143 fprintf( stderr, "%s{", prefix );
144 switch(call->type)
146 case APC_NONE:
147 fprintf( stderr, "APC_NONE" );
148 break;
149 case APC_USER:
150 dump_uint64( "APC_USER,func=", &call->user.func );
151 dump_uint64( ",args={", &call->user.args[0] );
152 dump_uint64( ",", &call->user.args[1] );
153 dump_uint64( ",", &call->user.args[2] );
154 fputc( '}', stderr );
155 break;
156 case APC_TIMER:
157 dump_timeout( "APC_TIMER,time=", &call->timer.time );
158 dump_uint64( ",arg=", &call->timer.arg );
159 break;
160 case APC_ASYNC_IO:
161 dump_uint64( "APC_ASYNC_IO,func=", &call->async_io.func );
162 dump_uint64( ",user=", &call->async_io.user );
163 dump_uint64( ",sb=", &call->async_io.sb );
164 fprintf( stderr, ",status=%s", get_status_name(call->async_io.status) );
165 break;
166 case APC_VIRTUAL_ALLOC:
167 dump_uint64( "APC_VIRTUAL_ALLOC,addr==", &call->virtual_alloc.addr );
168 dump_uint64( ",size=", &call->virtual_alloc.size );
169 fprintf( stderr, ",zero_bits=%u,op_type=%x,prot=%x",
170 call->virtual_alloc.zero_bits, call->virtual_alloc.op_type,
171 call->virtual_alloc.prot );
172 break;
173 case APC_VIRTUAL_FREE:
174 dump_uint64( "APC_VIRTUAL_FREE,addr=", &call->virtual_free.addr );
175 dump_uint64( ",size=", &call->virtual_free.size );
176 fprintf( stderr, ",op_type=%x", call->virtual_free.op_type );
177 break;
178 case APC_VIRTUAL_QUERY:
179 dump_uint64( "APC_VIRTUAL_QUERY,addr=", &call->virtual_query.addr );
180 break;
181 case APC_VIRTUAL_PROTECT:
182 dump_uint64( "APC_VIRTUAL_PROTECT,addr=", &call->virtual_protect.addr );
183 dump_uint64( ",size=", &call->virtual_protect.size );
184 fprintf( stderr, ",prot=%x", call->virtual_protect.prot );
185 break;
186 case APC_VIRTUAL_FLUSH:
187 dump_uint64( "APC_VIRTUAL_FLUSH,addr=", &call->virtual_flush.addr );
188 dump_uint64( ",size=", &call->virtual_flush.size );
189 break;
190 case APC_VIRTUAL_LOCK:
191 dump_uint64( "APC_VIRTUAL_LOCK,addr=", &call->virtual_lock.addr );
192 dump_uint64( ",size=", &call->virtual_lock.size );
193 break;
194 case APC_VIRTUAL_UNLOCK:
195 dump_uint64( "APC_VIRTUAL_UNLOCK,addr=", &call->virtual_unlock.addr );
196 dump_uint64( ",size=", &call->virtual_unlock.size );
197 break;
198 case APC_MAP_VIEW:
199 fprintf( stderr, "APC_MAP_VIEW,handle=%04x", call->map_view.handle );
200 dump_uint64( ",addr=", &call->map_view.addr );
201 dump_uint64( ",size=", &call->map_view.size );
202 dump_uint64( ",offset=", &call->map_view.offset );
203 fprintf( stderr, ",zero_bits=%u,alloc_type=%x,prot=%x",
204 call->map_view.zero_bits, call->map_view.alloc_type, call->map_view.prot );
205 break;
206 case APC_UNMAP_VIEW:
207 dump_uint64( "APC_UNMAP_VIEW,addr=", &call->unmap_view.addr );
208 break;
209 case APC_CREATE_THREAD:
210 dump_uint64( "APC_CREATE_THREAD,func=", &call->create_thread.func );
211 dump_uint64( ",arg=", &call->create_thread.arg );
212 dump_uint64( ",reserve=", &call->create_thread.reserve );
213 dump_uint64( ",commit=", &call->create_thread.commit );
214 fprintf( stderr, ",suspend=%u", call->create_thread.suspend );
215 break;
216 default:
217 fprintf( stderr, "type=%u", call->type );
218 break;
220 fputc( '}', stderr );
223 static void dump_apc_result( const char *prefix, const apc_result_t *result )
225 fprintf( stderr, "%s{", prefix );
226 switch(result->type)
228 case APC_NONE:
229 break;
230 case APC_ASYNC_IO:
231 fprintf( stderr, "APC_ASYNC_IO,status=%s,total=%u",
232 get_status_name( result->async_io.status ), result->async_io.total );
233 dump_uint64( ",apc=", &result->async_io.apc );
234 dump_uint64( ",arg=", &result->async_io.arg );
235 break;
236 case APC_VIRTUAL_ALLOC:
237 fprintf( stderr, "APC_VIRTUAL_ALLOC,status=%s",
238 get_status_name( result->virtual_alloc.status ));
239 dump_uint64( ",addr=", &result->virtual_alloc.addr );
240 dump_uint64( ",size=", &result->virtual_alloc.size );
241 break;
242 case APC_VIRTUAL_FREE:
243 fprintf( stderr, "APC_VIRTUAL_FREE,status=%s",
244 get_status_name( result->virtual_free.status ));
245 dump_uint64( ",addr=", &result->virtual_free.addr );
246 dump_uint64( ",size=", &result->virtual_free.size );
247 break;
248 case APC_VIRTUAL_QUERY:
249 fprintf( stderr, "APC_VIRTUAL_QUERY,status=%s",
250 get_status_name( result->virtual_query.status ));
251 dump_uint64( ",base=", &result->virtual_query.base );
252 dump_uint64( ",alloc_base=", &result->virtual_query.alloc_base );
253 dump_uint64( ",size=", &result->virtual_query.size );
254 fprintf( stderr, ",state=%x,prot=%x,alloc_prot=%x,alloc_type=%x",
255 result->virtual_query.state, result->virtual_query.prot,
256 result->virtual_query.alloc_prot, result->virtual_query.alloc_type );
257 break;
258 case APC_VIRTUAL_PROTECT:
259 fprintf( stderr, "APC_VIRTUAL_PROTECT,status=%s",
260 get_status_name( result->virtual_protect.status ));
261 dump_uint64( ",addr=", &result->virtual_protect.addr );
262 dump_uint64( ",size=", &result->virtual_protect.size );
263 fprintf( stderr, ",prot=%x", result->virtual_protect.prot );
264 break;
265 case APC_VIRTUAL_FLUSH:
266 fprintf( stderr, "APC_VIRTUAL_FLUSH,status=%s",
267 get_status_name( result->virtual_flush.status ));
268 dump_uint64( ",addr=", &result->virtual_flush.addr );
269 dump_uint64( ",size=", &result->virtual_flush.size );
270 break;
271 case APC_VIRTUAL_LOCK:
272 fprintf( stderr, "APC_VIRTUAL_LOCK,status=%s",
273 get_status_name( result->virtual_lock.status ));
274 dump_uint64( ",addr=", &result->virtual_lock.addr );
275 dump_uint64( ",size=", &result->virtual_lock.size );
276 break;
277 case APC_VIRTUAL_UNLOCK:
278 fprintf( stderr, "APC_VIRTUAL_UNLOCK,status=%s",
279 get_status_name( result->virtual_unlock.status ));
280 dump_uint64( ",addr=", &result->virtual_unlock.addr );
281 dump_uint64( ",size=", &result->virtual_unlock.size );
282 break;
283 case APC_MAP_VIEW:
284 fprintf( stderr, "APC_MAP_VIEW,status=%s",
285 get_status_name( result->map_view.status ));
286 dump_uint64( ",addr=", &result->map_view.addr );
287 dump_uint64( ",size=", &result->map_view.size );
288 break;
289 case APC_UNMAP_VIEW:
290 fprintf( stderr, "APC_UNMAP_VIEW,status=%s",
291 get_status_name( result->unmap_view.status ) );
292 break;
293 case APC_CREATE_THREAD:
294 fprintf( stderr, "APC_CREATE_THREAD,status=%s,tid=%04x,handle=%04x",
295 get_status_name( result->create_thread.status ),
296 result->create_thread.tid, result->create_thread.handle );
297 break;
298 default:
299 fprintf( stderr, "type=%u", result->type );
300 break;
302 fputc( '}', stderr );
305 static void dump_async_data( const char *prefix, const async_data_t *data )
307 fprintf( stderr, "%s{handle=%04x,event=%04x", prefix, data->handle, data->event );
308 dump_uint64( ",callback=", &data->callback );
309 dump_uint64( ",iosb=", &data->iosb );
310 dump_uint64( ",arg=", &data->arg );
311 dump_uint64( ",cvalue=", &data->cvalue );
312 fputc( '}', stderr );
315 static void dump_irp_params( const char *prefix, const irp_params_t *data )
317 switch (data->major)
319 case IRP_MJ_CREATE:
320 fprintf( stderr, "%s{major=CREATE,access=%08x,sharing=%08x,options=%08x",
321 prefix, data->create.access, data->create.sharing, data->create.options );
322 dump_uint64( ",device=", &data->create.device );
323 fputc( '}', stderr );
324 break;
325 case IRP_MJ_CLOSE:
326 fprintf( stderr, "%s{major=CLOSE", prefix );
327 dump_uint64( ",file=", &data->close.file );
328 fputc( '}', stderr );
329 break;
330 case IRP_MJ_READ:
331 fprintf( stderr, "%s{major=READ,key=%08x", prefix, data->read.key );
332 dump_uint64( ",pos=", &data->read.pos );
333 dump_uint64( ",file=", &data->read.file );
334 fputc( '}', stderr );
335 break;
336 case IRP_MJ_WRITE:
337 fprintf( stderr, "%s{major=WRITE,key=%08x", prefix, data->write.key );
338 dump_uint64( ",pos=", &data->write.pos );
339 dump_uint64( ",file=", &data->write.file );
340 fputc( '}', stderr );
341 break;
342 case IRP_MJ_FLUSH_BUFFERS:
343 fprintf( stderr, "%s{major=FLUSH_BUFFERS", prefix );
344 dump_uint64( ",file=", &data->flush.file );
345 fputc( '}', stderr );
346 break;
347 case IRP_MJ_DEVICE_CONTROL:
348 fprintf( stderr, "%s{major=DEVICE_CONTROL", prefix );
349 dump_ioctl_code( ",code=", &data->ioctl.code );
350 dump_uint64( ",file=", &data->ioctl.file );
351 fputc( '}', stderr );
352 break;
353 case IRP_MJ_MAXIMUM_FUNCTION + 1: /* invalid */
354 fprintf( stderr, "%s{}", prefix );
355 break;
356 default:
357 fprintf( stderr, "%s{major=%u}", prefix, data->major );
358 break;
362 static void dump_hw_input( const char *prefix, const hw_input_t *input )
364 switch (input->type)
366 case INPUT_MOUSE:
367 fprintf( stderr, "%s{type=MOUSE,x=%d,y=%d,data=%08x,flags=%08x,time=%u",
368 prefix, input->mouse.x, input->mouse.y, input->mouse.data, input->mouse.flags,
369 input->mouse.time );
370 dump_uint64( ",info=", &input->mouse.info );
371 fputc( '}', stderr );
372 break;
373 case INPUT_KEYBOARD:
374 fprintf( stderr, "%s{type=KEYBOARD,vkey=%04hx,scan=%04hx,flags=%08x,time=%u",
375 prefix, input->kbd.vkey, input->kbd.scan, input->kbd.flags, input->kbd.time );
376 dump_uint64( ",info=", &input->kbd.info );
377 fputc( '}', stderr );
378 break;
379 case INPUT_HARDWARE:
380 fprintf( stderr, "%s{type=HARDWARE,msg=%04x", prefix, input->hw.msg );
381 dump_uint64( ",lparam=", &input->hw.lparam );
382 fputc( '}', stderr );
383 break;
384 default:
385 fprintf( stderr, "%s{type=%04x}", prefix, input->type );
386 break;
390 static void dump_luid( const char *prefix, const luid_t *luid )
392 fprintf( stderr, "%s%d.%u", prefix, luid->high_part, luid->low_part );
395 static void dump_varargs_ints( const char *prefix, data_size_t size )
397 const int *data = cur_data;
398 data_size_t len = size / sizeof(*data);
400 fprintf( stderr,"%s{", prefix );
401 while (len > 0)
403 fprintf( stderr, "%d", *data++ );
404 if (--len) fputc( ',', stderr );
406 fputc( '}', stderr );
407 remove_data( size );
410 static void dump_varargs_uints64( const char *prefix, data_size_t size )
412 const unsigned __int64 *data = cur_data;
413 data_size_t len = size / sizeof(*data);
415 fprintf( stderr,"%s{", prefix );
416 while (len > 0)
418 dump_uint64( "", data++ );
419 if (--len) fputc( ',', stderr );
421 fputc( '}', stderr );
422 remove_data( size );
425 static void dump_varargs_apc_result( const char *prefix, data_size_t size )
427 const apc_result_t *result = cur_data;
429 if (size >= sizeof(*result))
431 dump_apc_result( prefix, result );
432 size = sizeof(*result);
434 remove_data( size );
437 static void dump_varargs_select_op( const char *prefix, data_size_t size )
439 select_op_t data;
441 if (!size)
443 fprintf( stderr, "%s{}", prefix );
444 return;
446 memset( &data, 0, sizeof(data) );
447 memcpy( &data, cur_data, min( size, sizeof(data) ));
449 fprintf( stderr, "%s{", prefix );
450 switch (data.op)
452 case SELECT_NONE:
453 fprintf( stderr, "NONE" );
454 break;
455 case SELECT_WAIT:
456 case SELECT_WAIT_ALL:
457 fprintf( stderr, "%s", data.op == SELECT_WAIT ? "WAIT" : "WAIT_ALL" );
458 if (size > offsetof( select_op_t, wait.handles ))
459 dump_handles( ",handles=", data.wait.handles,
460 min( size, sizeof(data.wait) ) - offsetof( select_op_t, wait.handles ));
461 break;
462 case SELECT_SIGNAL_AND_WAIT:
463 fprintf( stderr, "SIGNAL_AND_WAIT,signal=%04x,wait=%04x",
464 data.signal_and_wait.signal, data.signal_and_wait.wait );
465 break;
466 case SELECT_KEYED_EVENT_WAIT:
467 case SELECT_KEYED_EVENT_RELEASE:
468 fprintf( stderr, "KEYED_EVENT_%s,handle=%04x",
469 data.op == SELECT_KEYED_EVENT_WAIT ? "WAIT" : "RELEASE",
470 data.keyed_event.handle );
471 dump_uint64( ",key=", &data.keyed_event.key );
472 break;
473 default:
474 fprintf( stderr, "op=%u", data.op );
475 break;
477 fputc( '}', stderr );
478 remove_data( size );
481 static void dump_varargs_user_handles( const char *prefix, data_size_t size )
483 const user_handle_t *data = cur_data;
484 data_size_t len = size / sizeof(*data);
486 fprintf( stderr,"%s{", prefix );
487 while (len > 0)
489 fprintf( stderr, "%08x", *data++ );
490 if (--len) fputc( ',', stderr );
492 fputc( '}', stderr );
493 remove_data( size );
496 static void dump_varargs_bytes( const char *prefix, data_size_t size )
498 const unsigned char *data = cur_data;
499 data_size_t len = min( 1024, size );
501 fprintf( stderr,"%s{", prefix );
502 while (len > 0)
504 fprintf( stderr, "%02x", *data++ );
505 if (--len) fputc( ',', stderr );
507 if (size > 1024) fprintf( stderr, "...(total %u)", size );
508 fputc( '}', stderr );
509 remove_data( size );
512 static void dump_varargs_string( const char *prefix, data_size_t size )
514 fprintf( stderr, "%s\"%.*s\"", prefix, (int)size, (const char *)cur_data );
515 remove_data( size );
518 static void dump_varargs_unicode_str( const char *prefix, data_size_t size )
520 fprintf( stderr, "%sL\"", prefix );
521 dump_strW( cur_data, size / sizeof(WCHAR), stderr, "\"\"" );
522 fputc( '\"', stderr );
523 remove_data( size );
526 static void dump_varargs_context( const char *prefix, data_size_t size )
528 const context_t *context = cur_data;
529 context_t ctx;
530 unsigned int i;
532 if (!size)
534 fprintf( stderr, "%s{}", prefix );
535 return;
537 size = min( size, sizeof(ctx) );
538 memset( &ctx, 0, sizeof(ctx) );
539 memcpy( &ctx, context, size );
541 fprintf( stderr,"%s{", prefix );
542 dump_cpu_type( "cpu=", &ctx.cpu );
543 switch (ctx.cpu)
545 case CPU_x86:
546 if (ctx.flags & SERVER_CTX_CONTROL)
547 fprintf( stderr, ",eip=%08x,esp=%08x,ebp=%08x,eflags=%08x,cs=%04x,ss=%04x",
548 ctx.ctl.i386_regs.eip, ctx.ctl.i386_regs.esp, ctx.ctl.i386_regs.ebp,
549 ctx.ctl.i386_regs.eflags, ctx.ctl.i386_regs.cs, ctx.ctl.i386_regs.ss );
550 if (ctx.flags & SERVER_CTX_SEGMENTS)
551 fprintf( stderr, ",ds=%04x,es=%04x,fs=%04x,gs=%04x",
552 ctx.seg.i386_regs.ds, ctx.seg.i386_regs.es,
553 ctx.seg.i386_regs.fs, ctx.seg.i386_regs.gs );
554 if (ctx.flags & SERVER_CTX_INTEGER)
555 fprintf( stderr, ",eax=%08x,ebx=%08x,ecx=%08x,edx=%08x,esi=%08x,edi=%08x",
556 ctx.integer.i386_regs.eax, ctx.integer.i386_regs.ebx, ctx.integer.i386_regs.ecx,
557 ctx.integer.i386_regs.edx, ctx.integer.i386_regs.esi, ctx.integer.i386_regs.edi );
558 if (ctx.flags & SERVER_CTX_DEBUG_REGISTERS)
559 fprintf( stderr, ",dr0=%08x,dr1=%08x,dr2=%08x,dr3=%08x,dr6=%08x,dr7=%08x",
560 ctx.debug.i386_regs.dr0, ctx.debug.i386_regs.dr1, ctx.debug.i386_regs.dr2,
561 ctx.debug.i386_regs.dr3, ctx.debug.i386_regs.dr6, ctx.debug.i386_regs.dr7 );
562 if (ctx.flags & SERVER_CTX_FLOATING_POINT)
564 fprintf( stderr, ",fp.ctrl=%08x,fp.status=%08x,fp.tag=%08x,fp.err_off=%08x,fp.err_sel=%08x",
565 ctx.fp.i386_regs.ctrl, ctx.fp.i386_regs.status, ctx.fp.i386_regs.tag,
566 ctx.fp.i386_regs.err_off, ctx.fp.i386_regs.err_sel );
567 fprintf( stderr, ",fp.data_off=%08x,fp.data_sel=%08x,fp.cr0npx=%08x",
568 ctx.fp.i386_regs.data_off, ctx.fp.i386_regs.data_sel, ctx.fp.i386_regs.cr0npx );
569 for (i = 0; i < 8; i++)
570 fprintf( stderr, ",fp.reg%u=%Lg", i, *(long double *)&ctx.fp.i386_regs.regs[10*i] );
572 if (ctx.flags & SERVER_CTX_EXTENDED_REGISTERS)
574 fprintf( stderr, ",extended=" );
575 dump_uints( (const int *)ctx.ext.i386_regs, sizeof(ctx.ext.i386_regs) / sizeof(int) );
577 break;
578 case CPU_x86_64:
579 if (ctx.flags & SERVER_CTX_CONTROL)
581 dump_uint64( ",rip=", &ctx.ctl.x86_64_regs.rip );
582 dump_uint64( ",rbp=", &ctx.ctl.x86_64_regs.rbp );
583 dump_uint64( ",rsp=", &ctx.ctl.x86_64_regs.rsp );
584 fprintf( stderr, ",cs=%04x,ss=%04x,flags=%08x",
585 ctx.ctl.x86_64_regs.cs, ctx.ctl.x86_64_regs.ss, ctx.ctl.x86_64_regs.flags );
587 if (ctx.flags & SERVER_CTX_INTEGER)
589 dump_uint64( ",rax=", &ctx.integer.x86_64_regs.rax );
590 dump_uint64( ",rbx=", &ctx.integer.x86_64_regs.rbx );
591 dump_uint64( ",rcx=", &ctx.integer.x86_64_regs.rcx );
592 dump_uint64( ",rdx=", &ctx.integer.x86_64_regs.rdx );
593 dump_uint64( ",rsi=", &ctx.integer.x86_64_regs.rsi );
594 dump_uint64( ",rdi=", &ctx.integer.x86_64_regs.rdi );
595 dump_uint64( ",r8=", &ctx.integer.x86_64_regs.r8 );
596 dump_uint64( ",r9=", &ctx.integer.x86_64_regs.r9 );
597 dump_uint64( ",r10=", &ctx.integer.x86_64_regs.r10 );
598 dump_uint64( ",r11=", &ctx.integer.x86_64_regs.r11 );
599 dump_uint64( ",r12=", &ctx.integer.x86_64_regs.r12 );
600 dump_uint64( ",r13=", &ctx.integer.x86_64_regs.r13 );
601 dump_uint64( ",r14=", &ctx.integer.x86_64_regs.r14 );
602 dump_uint64( ",r15=", &ctx.integer.x86_64_regs.r15 );
604 if (ctx.flags & SERVER_CTX_SEGMENTS)
605 fprintf( stderr, ",ds=%04x,es=%04x,fs=%04x,gs=%04x",
606 ctx.seg.x86_64_regs.ds, ctx.seg.x86_64_regs.es,
607 ctx.seg.x86_64_regs.fs, ctx.seg.x86_64_regs.gs );
608 if (ctx.flags & SERVER_CTX_DEBUG_REGISTERS)
610 dump_uint64( ",dr0=", &ctx.debug.x86_64_regs.dr0 );
611 dump_uint64( ",dr1=", &ctx.debug.x86_64_regs.dr1 );
612 dump_uint64( ",dr2=", &ctx.debug.x86_64_regs.dr2 );
613 dump_uint64( ",dr3=", &ctx.debug.x86_64_regs.dr3 );
614 dump_uint64( ",dr6=", &ctx.debug.x86_64_regs.dr6 );
615 dump_uint64( ",dr7=", &ctx.debug.x86_64_regs.dr7 );
617 if (ctx.flags & SERVER_CTX_FLOATING_POINT)
619 for (i = 0; i < 32; i++)
620 fprintf( stderr, ",fp%u=%08x%08x%08x%08x", i,
621 (unsigned int)(ctx.fp.x86_64_regs.fpregs[i].high >> 32),
622 (unsigned int)ctx.fp.x86_64_regs.fpregs[i].high,
623 (unsigned int)(ctx.fp.x86_64_regs.fpregs[i].low >> 32),
624 (unsigned int)ctx.fp.x86_64_regs.fpregs[i].low );
626 break;
627 case CPU_POWERPC:
628 if (ctx.flags & SERVER_CTX_CONTROL)
629 fprintf( stderr, ",iar=%08x,msr=%08x,ctr=%08x,lr=%08x,dar=%08x,dsisr=%08x,trap=%08x",
630 ctx.ctl.powerpc_regs.iar, ctx.ctl.powerpc_regs.msr, ctx.ctl.powerpc_regs.ctr,
631 ctx.ctl.powerpc_regs.lr, ctx.ctl.powerpc_regs.dar, ctx.ctl.powerpc_regs.dsisr,
632 ctx.ctl.powerpc_regs.trap );
633 if (ctx.flags & SERVER_CTX_INTEGER)
635 for (i = 0; i < 32; i++) fprintf( stderr, ",gpr%u=%08x", i, ctx.integer.powerpc_regs.gpr[i] );
636 fprintf( stderr, ",cr=%08x,xer=%08x",
637 ctx.integer.powerpc_regs.cr, ctx.integer.powerpc_regs.xer );
639 if (ctx.flags & SERVER_CTX_DEBUG_REGISTERS)
640 for (i = 0; i < 8; i++) fprintf( stderr, ",dr%u=%08x", i, ctx.debug.powerpc_regs.dr[i] );
641 if (ctx.flags & SERVER_CTX_FLOATING_POINT)
643 for (i = 0; i < 32; i++) fprintf( stderr, ",fpr%u=%g", i, ctx.fp.powerpc_regs.fpr[i] );
644 fprintf( stderr, ",fpscr=%g", ctx.fp.powerpc_regs.fpscr );
646 break;
647 case CPU_ARM:
648 if (ctx.flags & SERVER_CTX_CONTROL)
649 fprintf( stderr, ",sp=%08x,lr=%08x,pc=%08x,cpsr=%08x",
650 ctx.ctl.arm_regs.sp, ctx.ctl.arm_regs.lr,
651 ctx.ctl.arm_regs.pc, ctx.ctl.arm_regs.cpsr );
652 if (ctx.flags & SERVER_CTX_INTEGER)
653 for (i = 0; i < 13; i++) fprintf( stderr, ",r%u=%08x", i, ctx.integer.arm_regs.r[i] );
654 break;
655 case CPU_ARM64:
656 if (ctx.flags & SERVER_CTX_CONTROL)
658 dump_uint64( ",sp=", &ctx.ctl.arm64_regs.sp );
659 dump_uint64( ",pc=", &ctx.ctl.arm64_regs.pc );
660 dump_uint64( ",pstate=", &ctx.ctl.arm64_regs.pstate );
662 if (ctx.flags & SERVER_CTX_INTEGER)
664 dump_uint64( ",x0=", &ctx.integer.arm64_regs.x[0] );
665 dump_uint64( ",x1=", &ctx.integer.arm64_regs.x[1] );
666 dump_uint64( ",x2=", &ctx.integer.arm64_regs.x[2] );
667 dump_uint64( ",x3=", &ctx.integer.arm64_regs.x[3] );
668 dump_uint64( ",x4=", &ctx.integer.arm64_regs.x[4] );
669 dump_uint64( ",x5=", &ctx.integer.arm64_regs.x[5] );
670 dump_uint64( ",x6=", &ctx.integer.arm64_regs.x[6] );
671 dump_uint64( ",x7=", &ctx.integer.arm64_regs.x[7] );
672 dump_uint64( ",x8=", &ctx.integer.arm64_regs.x[8] );
673 dump_uint64( ",x9=", &ctx.integer.arm64_regs.x[9] );
674 dump_uint64( ",x10=", &ctx.integer.arm64_regs.x[10] );
675 dump_uint64( ",x11=", &ctx.integer.arm64_regs.x[11] );
676 dump_uint64( ",x12=", &ctx.integer.arm64_regs.x[12] );
677 dump_uint64( ",x13=", &ctx.integer.arm64_regs.x[13] );
678 dump_uint64( ",x14=", &ctx.integer.arm64_regs.x[14] );
679 dump_uint64( ",x15=", &ctx.integer.arm64_regs.x[15] );
680 dump_uint64( ",x16=", &ctx.integer.arm64_regs.x[16] );
681 dump_uint64( ",x17=", &ctx.integer.arm64_regs.x[17] );
682 dump_uint64( ",x18=", &ctx.integer.arm64_regs.x[18] );
683 dump_uint64( ",x19=", &ctx.integer.arm64_regs.x[19] );
684 dump_uint64( ",x20=", &ctx.integer.arm64_regs.x[20] );
685 dump_uint64( ",x21=", &ctx.integer.arm64_regs.x[21] );
686 dump_uint64( ",x22=", &ctx.integer.arm64_regs.x[22] );
687 dump_uint64( ",x23=", &ctx.integer.arm64_regs.x[23] );
688 dump_uint64( ",x24=", &ctx.integer.arm64_regs.x[24] );
689 dump_uint64( ",x25=", &ctx.integer.arm64_regs.x[25] );
690 dump_uint64( ",x26=", &ctx.integer.arm64_regs.x[26] );
691 dump_uint64( ",x27=", &ctx.integer.arm64_regs.x[27] );
692 dump_uint64( ",x28=", &ctx.integer.arm64_regs.x[28] );
693 dump_uint64( ",x29=", &ctx.integer.arm64_regs.x[29] );
694 dump_uint64( ",x30=", &ctx.integer.arm64_regs.x[30] );
696 break;
698 fputc( '}', stderr );
699 remove_data( size );
702 static void dump_varargs_debug_event( const char *prefix, data_size_t size )
704 debug_event_t event;
705 unsigned int i;
707 if (!size)
709 fprintf( stderr, "%s{}", prefix );
710 return;
712 size = min( size, sizeof(event) );
713 memset( &event, 0, sizeof(event) );
714 memcpy( &event, cur_data, size );
716 switch(event.code)
718 case EXCEPTION_DEBUG_EVENT:
719 fprintf( stderr, "%s{exception,first=%d,exc_code=%08x,flags=%08x", prefix,
720 event.exception.first, event.exception.exc_code, event.exception.flags );
721 dump_uint64( ",record=", &event.exception.record );
722 dump_uint64( ",address=", &event.exception.address );
723 fprintf( stderr, ",params={" );
724 event.exception.nb_params = min( event.exception.nb_params, EXCEPTION_MAXIMUM_PARAMETERS );
725 for (i = 0; i < event.exception.nb_params; i++)
727 dump_uint64( "", &event.exception.params[i] );
728 if (i < event.exception.nb_params) fputc( ',', stderr );
730 fprintf( stderr, "}}" );
731 break;
732 case CREATE_THREAD_DEBUG_EVENT:
733 fprintf( stderr, "%s{create_thread,thread=%04x", prefix, event.create_thread.handle );
734 dump_uint64( ",teb=", &event.create_thread.teb );
735 dump_uint64( ",start=", &event.create_thread.start );
736 fputc( '}', stderr );
737 break;
738 case CREATE_PROCESS_DEBUG_EVENT:
739 fprintf( stderr, "%s{create_process,file=%04x,process=%04x,thread=%04x", prefix,
740 event.create_process.file, event.create_process.process,
741 event.create_process.thread );
742 dump_uint64( ",base=", &event.create_process.base );
743 fprintf( stderr, ",offset=%d,size=%d",
744 event.create_process.dbg_offset, event.create_process.dbg_size );
745 dump_uint64( ",teb=", &event.create_process.teb );
746 dump_uint64( ",start=", &event.create_process.start );
747 dump_uint64( ",name=", &event.create_process.name );
748 fprintf( stderr, ",unicode=%d}", event.create_process.unicode );
749 break;
750 case EXIT_THREAD_DEBUG_EVENT:
751 fprintf( stderr, "%s{exit_thread,code=%d}", prefix, event.exit.exit_code );
752 break;
753 case EXIT_PROCESS_DEBUG_EVENT:
754 fprintf( stderr, "%s{exit_process,code=%d}", prefix, event.exit.exit_code );
755 break;
756 case LOAD_DLL_DEBUG_EVENT:
757 fprintf( stderr, "%s{load_dll,file=%04x", prefix, event.load_dll.handle );
758 dump_uint64( ",base=", &event.load_dll.base );
759 fprintf( stderr, ",offset=%d,size=%d",
760 event.load_dll.dbg_offset, event.load_dll.dbg_size );
761 dump_uint64( ",name=", &event.load_dll.name );
762 fprintf( stderr, ",unicode=%d}", event.load_dll.unicode );
763 break;
764 case UNLOAD_DLL_DEBUG_EVENT:
765 fprintf( stderr, "%s{unload_dll", prefix );
766 dump_uint64( ",base=", &event.unload_dll.base );
767 fputc( '}', stderr );
768 break;
769 case 0: /* zero is the code returned on timeouts */
770 fprintf( stderr, "%s{}", prefix );
771 break;
772 default:
773 fprintf( stderr, "%s{code=??? (%d)}", prefix, event.code );
774 break;
776 remove_data( size );
779 /* dump a unicode string contained in a buffer; helper for dump_varargs_startup_info */
780 static data_size_t dump_inline_unicode_string( const char *prefix, data_size_t pos, data_size_t len, data_size_t total_size )
782 fputs( prefix, stderr );
783 if (pos >= total_size) return pos;
784 if (len > total_size - pos) len = total_size - pos;
785 len /= sizeof(WCHAR);
786 dump_strW( (const WCHAR *)cur_data + pos/sizeof(WCHAR), len, stderr, "\"\"" );
787 return pos + len * sizeof(WCHAR);
790 static void dump_varargs_startup_info( const char *prefix, data_size_t size )
792 startup_info_t info;
793 data_size_t pos = sizeof(info);
795 memset( &info, 0, sizeof(info) );
796 memcpy( &info, cur_data, min( size, sizeof(info) ));
798 fprintf( stderr,
799 "%s{debug_flags=%x,console_flags=%x,console=%04x,hstdin=%04x,hstdout=%04x,hstderr=%04x,"
800 "x=%u,y=%u,xsize=%u,ysize=%u,xchars=%u,ychars=%u,attribute=%02x,flags=%x,show=%u",
801 prefix, info.debug_flags, info.console_flags, info.console,
802 info.hstdin, info.hstdout, info.hstderr, info.x, info.y, info.xsize, info.ysize,
803 info.xchars, info.ychars, info.attribute, info.flags, info.show );
804 pos = dump_inline_unicode_string( ",curdir=L\"", pos, info.curdir_len, size );
805 pos = dump_inline_unicode_string( "\",dllpath=L\"", pos, info.dllpath_len, size );
806 pos = dump_inline_unicode_string( "\",imagepath=L\"", pos, info.imagepath_len, size );
807 pos = dump_inline_unicode_string( "\",cmdline=L\"", pos, info.cmdline_len, size );
808 pos = dump_inline_unicode_string( "\",title=L\"", pos, info.title_len, size );
809 pos = dump_inline_unicode_string( "\",desktop=L\"", pos, info.desktop_len, size );
810 pos = dump_inline_unicode_string( "\",shellinfo=L\"", pos, info.shellinfo_len, size );
811 pos = dump_inline_unicode_string( "\",runtime=L\"", pos, info.runtime_len, size );
812 fprintf( stderr, "\"}" );
813 remove_data( size );
816 static void dump_varargs_input_records( const char *prefix, data_size_t size )
818 const INPUT_RECORD *rec = cur_data;
819 data_size_t len = size / sizeof(*rec);
821 fprintf( stderr,"%s{", prefix );
822 while (len > 0)
824 fprintf( stderr, "{%04x,...}", rec->EventType );
825 rec++;
826 if (--len) fputc( ',', stderr );
828 fputc( '}', stderr );
829 remove_data( size );
832 static void dump_varargs_rectangles( const char *prefix, data_size_t size )
834 const rectangle_t *rect = cur_data;
835 data_size_t len = size / sizeof(*rect);
837 fprintf( stderr,"%s{", prefix );
838 while (len > 0)
840 dump_rectangle( "", rect++ );
841 if (--len) fputc( ',', stderr );
843 fputc( '}', stderr );
844 remove_data( size );
847 static void dump_varargs_message_data( const char *prefix, data_size_t size )
849 /* FIXME: dump the structured data */
850 dump_varargs_bytes( prefix, size );
853 static void dump_varargs_properties( const char *prefix, data_size_t size )
855 const property_data_t *prop = cur_data;
856 data_size_t len = size / sizeof(*prop);
858 fprintf( stderr,"%s{", prefix );
859 while (len > 0)
861 fprintf( stderr, "{atom=%04x,str=%d", prop->atom, prop->string );
862 dump_uint64( ",data=", &prop->data );
863 fputc( '}', stderr );
864 prop++;
865 if (--len) fputc( ',', stderr );
867 fputc( '}', stderr );
868 remove_data( size );
871 static void dump_varargs_LUID_AND_ATTRIBUTES( const char *prefix, data_size_t size )
873 const LUID_AND_ATTRIBUTES *lat = cur_data;
874 data_size_t len = size / sizeof(*lat);
876 fprintf( stderr,"%s{", prefix );
877 while (len > 0)
879 fprintf( stderr, "{luid=%08x%08x,attr=%x}",
880 lat->Luid.HighPart, lat->Luid.LowPart, lat->Attributes );
881 lat++;
882 if (--len) fputc( ',', stderr );
884 fputc( '}', stderr );
885 remove_data( size );
888 static void dump_inline_sid( const char *prefix, const SID *sid, data_size_t size )
890 DWORD i;
892 /* security check */
893 if ((FIELD_OFFSET(SID, SubAuthority[0]) > size) ||
894 (FIELD_OFFSET(SID, SubAuthority[sid->SubAuthorityCount]) > size))
896 fprintf( stderr, "<invalid sid>" );
897 return;
900 fprintf( stderr,"%s{", prefix );
901 fprintf( stderr, "S-%u-%u", sid->Revision, MAKELONG(
902 MAKEWORD( sid->IdentifierAuthority.Value[5],
903 sid->IdentifierAuthority.Value[4] ),
904 MAKEWORD( sid->IdentifierAuthority.Value[3],
905 sid->IdentifierAuthority.Value[2] ) ) );
906 for (i = 0; i < sid->SubAuthorityCount; i++)
907 fprintf( stderr, "-%u", sid->SubAuthority[i] );
908 fputc( '}', stderr );
911 static void dump_varargs_SID( const char *prefix, data_size_t size )
913 const SID *sid = cur_data;
914 dump_inline_sid( prefix, sid, size );
915 remove_data( size );
918 static void dump_inline_acl( const char *prefix, const ACL *acl, data_size_t size )
920 const ACE_HEADER *ace;
921 ULONG i;
923 fprintf( stderr,"%s{", prefix );
924 if (size)
926 if (size < sizeof(ACL))
928 fprintf( stderr, "<invalid acl>}" );
929 return;
931 size -= sizeof(ACL);
932 ace = (const ACE_HEADER *)(acl + 1);
933 for (i = 0; i < acl->AceCount; i++)
935 const SID *sid = NULL;
936 data_size_t sid_size = 0;
938 if (size < sizeof(ACE_HEADER) || size < ace->AceSize) break;
939 size -= ace->AceSize;
940 if (i != 0) fputc( ',', stderr );
941 fprintf( stderr, "{AceType=" );
942 switch (ace->AceType)
944 case ACCESS_DENIED_ACE_TYPE:
945 sid = (const SID *)&((const ACCESS_DENIED_ACE *)ace)->SidStart;
946 sid_size = ace->AceSize - FIELD_OFFSET(ACCESS_DENIED_ACE, SidStart);
947 fprintf( stderr, "ACCESS_DENIED_ACE_TYPE,Mask=%x",
948 ((const ACCESS_DENIED_ACE *)ace)->Mask );
949 break;
950 case ACCESS_ALLOWED_ACE_TYPE:
951 sid = (const SID *)&((const ACCESS_ALLOWED_ACE *)ace)->SidStart;
952 sid_size = ace->AceSize - FIELD_OFFSET(ACCESS_ALLOWED_ACE, SidStart);
953 fprintf( stderr, "ACCESS_ALLOWED_ACE_TYPE,Mask=%x",
954 ((const ACCESS_ALLOWED_ACE *)ace)->Mask );
955 break;
956 case SYSTEM_AUDIT_ACE_TYPE:
957 sid = (const SID *)&((const SYSTEM_AUDIT_ACE *)ace)->SidStart;
958 sid_size = ace->AceSize - FIELD_OFFSET(SYSTEM_AUDIT_ACE, SidStart);
959 fprintf( stderr, "SYSTEM_AUDIT_ACE_TYPE,Mask=%x",
960 ((const SYSTEM_AUDIT_ACE *)ace)->Mask );
961 break;
962 case SYSTEM_ALARM_ACE_TYPE:
963 sid = (const SID *)&((const SYSTEM_ALARM_ACE *)ace)->SidStart;
964 sid_size = ace->AceSize - FIELD_OFFSET(SYSTEM_ALARM_ACE, SidStart);
965 fprintf( stderr, "SYSTEM_ALARM_ACE_TYPE,Mask=%x",
966 ((const SYSTEM_ALARM_ACE *)ace)->Mask );
967 break;
968 case SYSTEM_MANDATORY_LABEL_ACE_TYPE:
969 sid = (const SID *)&((const SYSTEM_MANDATORY_LABEL_ACE *)ace)->SidStart;
970 sid_size = ace->AceSize - FIELD_OFFSET(SYSTEM_MANDATORY_LABEL_ACE, SidStart);
971 fprintf( stderr, "SYSTEM_MANDATORY_LABEL_ACE_TYPE,Mask=%x",
972 ((const SYSTEM_MANDATORY_LABEL_ACE *)ace)->Mask );
973 break;
974 default:
975 fprintf( stderr, "unknown<%d>", ace->AceType );
976 break;
978 fprintf( stderr, ",AceFlags=%x", ace->AceFlags );
979 if (sid)
980 dump_inline_sid( ",Sid=", sid, sid_size );
981 ace = (const ACE_HEADER *)((const char *)ace + ace->AceSize);
982 fputc( '}', stderr );
985 fputc( '}', stderr );
988 static void dump_varargs_ACL( const char *prefix, data_size_t size )
990 const ACL *acl = cur_data;
991 dump_inline_acl( prefix, acl, size );
992 remove_data( size );
995 static void dump_inline_security_descriptor( const char *prefix, const struct security_descriptor *sd, data_size_t size )
997 fprintf( stderr,"%s{", prefix );
998 if (size >= sizeof(struct security_descriptor))
1000 size_t offset = sizeof(struct security_descriptor);
1001 fprintf( stderr, "control=%08x", sd->control );
1002 if ((sd->owner_len > FIELD_OFFSET(SID, SubAuthority[255])) || (offset + sd->owner_len > size))
1003 return;
1004 if (sd->owner_len)
1005 dump_inline_sid( ",owner=", (const SID *)((const char *)sd + offset), sd->owner_len );
1006 else
1007 fprintf( stderr, ",owner=<not present>" );
1008 offset += sd->owner_len;
1009 if ((sd->group_len > FIELD_OFFSET(SID, SubAuthority[255])) || (offset + sd->group_len > size))
1010 return;
1011 if (sd->group_len)
1012 dump_inline_sid( ",group=", (const SID *)((const char *)sd + offset), sd->group_len );
1013 else
1014 fprintf( stderr, ",group=<not present>" );
1015 offset += sd->group_len;
1016 if ((sd->sacl_len >= MAX_ACL_LEN) || (offset + sd->sacl_len > size))
1017 return;
1018 dump_inline_acl( ",sacl=", (const ACL *)((const char *)sd + offset), sd->sacl_len );
1019 offset += sd->sacl_len;
1020 if ((sd->dacl_len >= MAX_ACL_LEN) || (offset + sd->dacl_len > size))
1021 return;
1022 dump_inline_acl( ",dacl=", (const ACL *)((const char *)sd + offset), sd->dacl_len );
1023 offset += sd->dacl_len;
1025 fputc( '}', stderr );
1028 static void dump_varargs_security_descriptor( const char *prefix, data_size_t size )
1030 const struct security_descriptor *sd = cur_data;
1031 dump_inline_security_descriptor( prefix, sd, size );
1032 remove_data( size );
1035 static void dump_varargs_token_groups( const char *prefix, data_size_t size )
1037 const struct token_groups *tg = cur_data;
1039 fprintf( stderr,"%s{", prefix );
1040 if (size >= sizeof(struct token_groups))
1042 size_t offset = sizeof(*tg);
1043 fprintf( stderr, "count=%08x,", tg->count );
1044 if (tg->count * sizeof(unsigned int) <= size)
1046 unsigned int i;
1047 const unsigned int *attr = (const unsigned int *)(tg + 1);
1049 offset += tg->count * sizeof(unsigned int);
1051 fputc( '[', stderr );
1052 for (i = 0; i < tg->count; i++)
1054 const SID *sid = (const SID *)((const char *)cur_data + offset);
1055 if (i != 0)
1056 fputc( ',', stderr );
1057 fputc( '{', stderr );
1058 fprintf( stderr, "attributes=%08x", attr[i] );
1059 dump_inline_sid( ",sid=", sid, size - offset );
1060 if ((offset + FIELD_OFFSET(SID, SubAuthority[0]) > size) ||
1061 (offset + FIELD_OFFSET(SID, SubAuthority[sid->SubAuthorityCount]) > size))
1062 break;
1063 offset += FIELD_OFFSET(SID, SubAuthority[sid->SubAuthorityCount]);
1064 fputc( '}', stderr );
1066 fputc( ']', stderr );
1069 fputc( '}', stderr );
1072 static void dump_varargs_object_attributes( const char *prefix, data_size_t size )
1074 const struct object_attributes *objattr = cur_data;
1076 fprintf( stderr,"%s{", prefix );
1077 if (size)
1079 const WCHAR *str;
1081 if (size < sizeof(*objattr) ||
1082 (size - sizeof(*objattr) < objattr->sd_len) ||
1083 (size - sizeof(*objattr) - objattr->sd_len < objattr->name_len))
1085 fprintf( stderr, "***invalid***}" );
1086 remove_data( size );
1087 return;
1090 fprintf( stderr, "rootdir=%04x,attributes=%08x", objattr->rootdir, objattr->attributes );
1091 dump_inline_security_descriptor( ",sd=", (const struct security_descriptor *)(objattr + 1), objattr->sd_len );
1092 str = (const WCHAR *)objattr + (sizeof(*objattr) + objattr->sd_len) / sizeof(WCHAR);
1093 fprintf( stderr, ",name=L\"" );
1094 dump_strW( str, objattr->name_len / sizeof(WCHAR), stderr, "\"\"" );
1095 fputc( '\"', stderr );
1096 remove_data( ((sizeof(*objattr) + objattr->sd_len) / sizeof(WCHAR)) * sizeof(WCHAR) +
1097 (objattr->name_len / sizeof(WCHAR)) * sizeof(WCHAR) );
1099 fputc( '}', stderr );
1102 static void dump_varargs_filesystem_event( const char *prefix, data_size_t size )
1104 static const char * const actions[] = {
1105 NULL,
1106 "ADDED",
1107 "REMOVED",
1108 "MODIFIED",
1109 "RENAMED_OLD_NAME",
1110 "RENAMED_NEW_NAME",
1111 "ADDED_STREAM",
1112 "REMOVED_STREAM",
1113 "MODIFIED_STREAM"
1116 fprintf( stderr,"%s{", prefix );
1117 while (size)
1119 const struct filesystem_event *event = cur_data;
1120 data_size_t len = (offsetof( struct filesystem_event, name[event->len] ) + sizeof(int)-1)
1121 / sizeof(int) * sizeof(int);
1122 if (size < len) break;
1123 if (event->action < sizeof(actions)/sizeof(actions[0]) && actions[event->action])
1124 fprintf( stderr, "{action=%s", actions[event->action] );
1125 else
1126 fprintf( stderr, "{action=%u", event->action );
1127 fprintf( stderr, ",name=\"%.*s\"}", event->len, event->name );
1128 size -= len;
1129 remove_data( len );
1130 if (size)fputc( ',', stderr );
1132 fputc( '}', stderr );
1135 static void dump_varargs_rawinput_devices(const char *prefix, data_size_t size )
1137 const struct rawinput_device *device;
1139 fprintf( stderr, "%s{", prefix );
1140 while (size >= sizeof(*device))
1142 device = cur_data;
1143 fprintf( stderr, "{usage_page=%04x,usage=%04x,flags=%08x,target=%08x}",
1144 device->usage_page, device->usage, device->flags, device->target );
1145 size -= sizeof(*device);
1146 remove_data( sizeof(*device) );
1147 if (size) fputc( ',', stderr );
1149 fputc( '}', stderr );
1152 static void dump_varargs_handle_infos( const char *prefix, data_size_t size )
1154 const struct handle_info *handle;
1156 fprintf( stderr, "%s{", prefix );
1157 while (size >= sizeof(*handle))
1159 handle = cur_data;
1160 fprintf( stderr, "{owner=%04x,handle=%04x,access=%08x}",
1161 handle->owner, handle->handle, handle->access );
1162 size -= sizeof(*handle);
1163 remove_data( sizeof(*handle) );
1164 if (size) fputc( ',', stderr );
1166 fputc( '}', stderr );
1169 typedef void (*dump_func)( const void *req );
1171 /* Everything below this line is generated automatically by tools/make_requests */
1172 /* ### make_requests begin ### */
1174 static void dump_new_process_request( const struct new_process_request *req )
1176 fprintf( stderr, " inherit_all=%d", req->inherit_all );
1177 fprintf( stderr, ", create_flags=%08x", req->create_flags );
1178 fprintf( stderr, ", socket_fd=%d", req->socket_fd );
1179 fprintf( stderr, ", exe_file=%04x", req->exe_file );
1180 fprintf( stderr, ", process_access=%08x", req->process_access );
1181 fprintf( stderr, ", process_attr=%08x", req->process_attr );
1182 fprintf( stderr, ", thread_access=%08x", req->thread_access );
1183 fprintf( stderr, ", thread_attr=%08x", req->thread_attr );
1184 dump_cpu_type( ", cpu=", &req->cpu );
1185 fprintf( stderr, ", info_size=%u", req->info_size );
1186 dump_varargs_startup_info( ", info=", min(cur_size,req->info_size) );
1187 dump_varargs_unicode_str( ", env=", cur_size );
1190 static void dump_new_process_reply( const struct new_process_reply *req )
1192 fprintf( stderr, " info=%04x", req->info );
1193 fprintf( stderr, ", pid=%04x", req->pid );
1194 fprintf( stderr, ", phandle=%04x", req->phandle );
1195 fprintf( stderr, ", tid=%04x", req->tid );
1196 fprintf( stderr, ", thandle=%04x", req->thandle );
1199 static void dump_get_new_process_info_request( const struct get_new_process_info_request *req )
1201 fprintf( stderr, " info=%04x", req->info );
1204 static void dump_get_new_process_info_reply( const struct get_new_process_info_reply *req )
1206 fprintf( stderr, " success=%d", req->success );
1207 fprintf( stderr, ", exit_code=%d", req->exit_code );
1210 static void dump_new_thread_request( const struct new_thread_request *req )
1212 fprintf( stderr, " access=%08x", req->access );
1213 fprintf( stderr, ", attributes=%08x", req->attributes );
1214 fprintf( stderr, ", suspend=%d", req->suspend );
1215 fprintf( stderr, ", request_fd=%d", req->request_fd );
1218 static void dump_new_thread_reply( const struct new_thread_reply *req )
1220 fprintf( stderr, " tid=%04x", req->tid );
1221 fprintf( stderr, ", handle=%04x", req->handle );
1224 static void dump_get_startup_info_request( const struct get_startup_info_request *req )
1228 static void dump_get_startup_info_reply( const struct get_startup_info_reply *req )
1230 fprintf( stderr, " exe_file=%04x", req->exe_file );
1231 fprintf( stderr, ", info_size=%u", req->info_size );
1232 dump_varargs_startup_info( ", info=", min(cur_size,req->info_size) );
1233 dump_varargs_unicode_str( ", env=", cur_size );
1236 static void dump_init_process_done_request( const struct init_process_done_request *req )
1238 fprintf( stderr, " gui=%d", req->gui );
1239 dump_uint64( ", module=", &req->module );
1240 dump_uint64( ", ldt_copy=", &req->ldt_copy );
1241 dump_uint64( ", entry=", &req->entry );
1244 static void dump_init_thread_request( const struct init_thread_request *req )
1246 fprintf( stderr, " unix_pid=%d", req->unix_pid );
1247 fprintf( stderr, ", unix_tid=%d", req->unix_tid );
1248 fprintf( stderr, ", debug_level=%d", req->debug_level );
1249 dump_uint64( ", teb=", &req->teb );
1250 dump_uint64( ", entry=", &req->entry );
1251 fprintf( stderr, ", reply_fd=%d", req->reply_fd );
1252 fprintf( stderr, ", wait_fd=%d", req->wait_fd );
1253 dump_cpu_type( ", cpu=", &req->cpu );
1256 static void dump_init_thread_reply( const struct init_thread_reply *req )
1258 fprintf( stderr, " pid=%04x", req->pid );
1259 fprintf( stderr, ", tid=%04x", req->tid );
1260 dump_timeout( ", server_start=", &req->server_start );
1261 fprintf( stderr, ", info_size=%u", req->info_size );
1262 fprintf( stderr, ", version=%d", req->version );
1263 fprintf( stderr, ", all_cpus=%08x", req->all_cpus );
1266 static void dump_terminate_process_request( const struct terminate_process_request *req )
1268 fprintf( stderr, " handle=%04x", req->handle );
1269 fprintf( stderr, ", exit_code=%d", req->exit_code );
1272 static void dump_terminate_process_reply( const struct terminate_process_reply *req )
1274 fprintf( stderr, " self=%d", req->self );
1277 static void dump_terminate_thread_request( const struct terminate_thread_request *req )
1279 fprintf( stderr, " handle=%04x", req->handle );
1280 fprintf( stderr, ", exit_code=%d", req->exit_code );
1283 static void dump_terminate_thread_reply( const struct terminate_thread_reply *req )
1285 fprintf( stderr, " self=%d", req->self );
1286 fprintf( stderr, ", last=%d", req->last );
1289 static void dump_get_process_info_request( const struct get_process_info_request *req )
1291 fprintf( stderr, " handle=%04x", req->handle );
1294 static void dump_get_process_info_reply( const struct get_process_info_reply *req )
1296 fprintf( stderr, " pid=%04x", req->pid );
1297 fprintf( stderr, ", ppid=%04x", req->ppid );
1298 dump_uint64( ", affinity=", &req->affinity );
1299 dump_uint64( ", peb=", &req->peb );
1300 dump_timeout( ", start_time=", &req->start_time );
1301 dump_timeout( ", end_time=", &req->end_time );
1302 fprintf( stderr, ", exit_code=%d", req->exit_code );
1303 fprintf( stderr, ", priority=%d", req->priority );
1304 dump_cpu_type( ", cpu=", &req->cpu );
1305 fprintf( stderr, ", debugger_present=%d", req->debugger_present );
1306 fprintf( stderr, ", debug_children=%d", req->debug_children );
1309 static void dump_set_process_info_request( const struct set_process_info_request *req )
1311 fprintf( stderr, " handle=%04x", req->handle );
1312 fprintf( stderr, ", mask=%d", req->mask );
1313 fprintf( stderr, ", priority=%d", req->priority );
1314 dump_uint64( ", affinity=", &req->affinity );
1317 static void dump_get_thread_info_request( const struct get_thread_info_request *req )
1319 fprintf( stderr, " handle=%04x", req->handle );
1320 fprintf( stderr, ", tid_in=%04x", req->tid_in );
1323 static void dump_get_thread_info_reply( const struct get_thread_info_reply *req )
1325 fprintf( stderr, " pid=%04x", req->pid );
1326 fprintf( stderr, ", tid=%04x", req->tid );
1327 dump_uint64( ", teb=", &req->teb );
1328 dump_uint64( ", entry_point=", &req->entry_point );
1329 dump_uint64( ", affinity=", &req->affinity );
1330 fprintf( stderr, ", exit_code=%d", req->exit_code );
1331 fprintf( stderr, ", priority=%d", req->priority );
1332 fprintf( stderr, ", last=%d", req->last );
1335 static void dump_get_thread_times_request( const struct get_thread_times_request *req )
1337 fprintf( stderr, " handle=%04x", req->handle );
1340 static void dump_get_thread_times_reply( const struct get_thread_times_reply *req )
1342 dump_timeout( " creation_time=", &req->creation_time );
1343 dump_timeout( ", exit_time=", &req->exit_time );
1346 static void dump_set_thread_info_request( const struct set_thread_info_request *req )
1348 fprintf( stderr, " handle=%04x", req->handle );
1349 fprintf( stderr, ", mask=%d", req->mask );
1350 fprintf( stderr, ", priority=%d", req->priority );
1351 dump_uint64( ", affinity=", &req->affinity );
1352 dump_uint64( ", entry_point=", &req->entry_point );
1353 fprintf( stderr, ", token=%04x", req->token );
1356 static void dump_get_dll_info_request( const struct get_dll_info_request *req )
1358 fprintf( stderr, " handle=%04x", req->handle );
1359 dump_uint64( ", base_address=", &req->base_address );
1362 static void dump_get_dll_info_reply( const struct get_dll_info_reply *req )
1364 dump_uint64( " entry_point=", &req->entry_point );
1365 fprintf( stderr, ", size=%u", req->size );
1366 fprintf( stderr, ", filename_len=%u", req->filename_len );
1367 dump_varargs_unicode_str( ", filename=", cur_size );
1370 static void dump_suspend_thread_request( const struct suspend_thread_request *req )
1372 fprintf( stderr, " handle=%04x", req->handle );
1375 static void dump_suspend_thread_reply( const struct suspend_thread_reply *req )
1377 fprintf( stderr, " count=%d", req->count );
1380 static void dump_resume_thread_request( const struct resume_thread_request *req )
1382 fprintf( stderr, " handle=%04x", req->handle );
1385 static void dump_resume_thread_reply( const struct resume_thread_reply *req )
1387 fprintf( stderr, " count=%d", req->count );
1390 static void dump_load_dll_request( const struct load_dll_request *req )
1392 fprintf( stderr, " mapping=%04x", req->mapping );
1393 dump_uint64( ", base=", &req->base );
1394 dump_uint64( ", name=", &req->name );
1395 fprintf( stderr, ", size=%u", req->size );
1396 fprintf( stderr, ", dbg_offset=%d", req->dbg_offset );
1397 fprintf( stderr, ", dbg_size=%d", req->dbg_size );
1398 dump_varargs_unicode_str( ", filename=", cur_size );
1401 static void dump_unload_dll_request( const struct unload_dll_request *req )
1403 dump_uint64( " base=", &req->base );
1406 static void dump_queue_apc_request( const struct queue_apc_request *req )
1408 fprintf( stderr, " handle=%04x", req->handle );
1409 dump_apc_call( ", call=", &req->call );
1412 static void dump_queue_apc_reply( const struct queue_apc_reply *req )
1414 fprintf( stderr, " handle=%04x", req->handle );
1415 fprintf( stderr, ", self=%d", req->self );
1418 static void dump_get_apc_result_request( const struct get_apc_result_request *req )
1420 fprintf( stderr, " handle=%04x", req->handle );
1423 static void dump_get_apc_result_reply( const struct get_apc_result_reply *req )
1425 dump_apc_result( " result=", &req->result );
1428 static void dump_close_handle_request( const struct close_handle_request *req )
1430 fprintf( stderr, " handle=%04x", req->handle );
1433 static void dump_set_handle_info_request( const struct set_handle_info_request *req )
1435 fprintf( stderr, " handle=%04x", req->handle );
1436 fprintf( stderr, ", flags=%d", req->flags );
1437 fprintf( stderr, ", mask=%d", req->mask );
1440 static void dump_set_handle_info_reply( const struct set_handle_info_reply *req )
1442 fprintf( stderr, " old_flags=%d", req->old_flags );
1445 static void dump_dup_handle_request( const struct dup_handle_request *req )
1447 fprintf( stderr, " src_process=%04x", req->src_process );
1448 fprintf( stderr, ", src_handle=%04x", req->src_handle );
1449 fprintf( stderr, ", dst_process=%04x", req->dst_process );
1450 fprintf( stderr, ", access=%08x", req->access );
1451 fprintf( stderr, ", attributes=%08x", req->attributes );
1452 fprintf( stderr, ", options=%08x", req->options );
1455 static void dump_dup_handle_reply( const struct dup_handle_reply *req )
1457 fprintf( stderr, " handle=%04x", req->handle );
1458 fprintf( stderr, ", self=%d", req->self );
1459 fprintf( stderr, ", closed=%d", req->closed );
1462 static void dump_open_process_request( const struct open_process_request *req )
1464 fprintf( stderr, " pid=%04x", req->pid );
1465 fprintf( stderr, ", access=%08x", req->access );
1466 fprintf( stderr, ", attributes=%08x", req->attributes );
1469 static void dump_open_process_reply( const struct open_process_reply *req )
1471 fprintf( stderr, " handle=%04x", req->handle );
1474 static void dump_open_thread_request( const struct open_thread_request *req )
1476 fprintf( stderr, " tid=%04x", req->tid );
1477 fprintf( stderr, ", access=%08x", req->access );
1478 fprintf( stderr, ", attributes=%08x", req->attributes );
1481 static void dump_open_thread_reply( const struct open_thread_reply *req )
1483 fprintf( stderr, " handle=%04x", req->handle );
1486 static void dump_select_request( const struct select_request *req )
1488 fprintf( stderr, " flags=%d", req->flags );
1489 dump_uint64( ", cookie=", &req->cookie );
1490 dump_timeout( ", timeout=", &req->timeout );
1491 fprintf( stderr, ", prev_apc=%04x", req->prev_apc );
1492 dump_varargs_apc_result( ", result=", cur_size );
1493 dump_varargs_select_op( ", data=", cur_size );
1496 static void dump_select_reply( const struct select_reply *req )
1498 dump_timeout( " timeout=", &req->timeout );
1499 dump_apc_call( ", call=", &req->call );
1500 fprintf( stderr, ", apc_handle=%04x", req->apc_handle );
1503 static void dump_create_event_request( const struct create_event_request *req )
1505 fprintf( stderr, " access=%08x", req->access );
1506 fprintf( stderr, ", manual_reset=%d", req->manual_reset );
1507 fprintf( stderr, ", initial_state=%d", req->initial_state );
1508 dump_varargs_object_attributes( ", objattr=", cur_size );
1511 static void dump_create_event_reply( const struct create_event_reply *req )
1513 fprintf( stderr, " handle=%04x", req->handle );
1516 static void dump_event_op_request( const struct event_op_request *req )
1518 fprintf( stderr, " handle=%04x", req->handle );
1519 fprintf( stderr, ", op=%d", req->op );
1522 static void dump_query_event_request( const struct query_event_request *req )
1524 fprintf( stderr, " handle=%04x", req->handle );
1527 static void dump_query_event_reply( const struct query_event_reply *req )
1529 fprintf( stderr, " manual_reset=%d", req->manual_reset );
1530 fprintf( stderr, ", state=%d", req->state );
1533 static void dump_open_event_request( const struct open_event_request *req )
1535 fprintf( stderr, " access=%08x", req->access );
1536 fprintf( stderr, ", attributes=%08x", req->attributes );
1537 fprintf( stderr, ", rootdir=%04x", req->rootdir );
1538 dump_varargs_unicode_str( ", name=", cur_size );
1541 static void dump_open_event_reply( const struct open_event_reply *req )
1543 fprintf( stderr, " handle=%04x", req->handle );
1546 static void dump_create_keyed_event_request( const struct create_keyed_event_request *req )
1548 fprintf( stderr, " access=%08x", req->access );
1549 dump_varargs_object_attributes( ", objattr=", cur_size );
1552 static void dump_create_keyed_event_reply( const struct create_keyed_event_reply *req )
1554 fprintf( stderr, " handle=%04x", req->handle );
1557 static void dump_open_keyed_event_request( const struct open_keyed_event_request *req )
1559 fprintf( stderr, " access=%08x", req->access );
1560 fprintf( stderr, ", attributes=%08x", req->attributes );
1561 fprintf( stderr, ", rootdir=%04x", req->rootdir );
1562 dump_varargs_unicode_str( ", name=", cur_size );
1565 static void dump_open_keyed_event_reply( const struct open_keyed_event_reply *req )
1567 fprintf( stderr, " handle=%04x", req->handle );
1570 static void dump_create_mutex_request( const struct create_mutex_request *req )
1572 fprintf( stderr, " access=%08x", req->access );
1573 fprintf( stderr, ", owned=%d", req->owned );
1574 dump_varargs_object_attributes( ", objattr=", cur_size );
1577 static void dump_create_mutex_reply( const struct create_mutex_reply *req )
1579 fprintf( stderr, " handle=%04x", req->handle );
1582 static void dump_release_mutex_request( const struct release_mutex_request *req )
1584 fprintf( stderr, " handle=%04x", req->handle );
1587 static void dump_release_mutex_reply( const struct release_mutex_reply *req )
1589 fprintf( stderr, " prev_count=%08x", req->prev_count );
1592 static void dump_open_mutex_request( const struct open_mutex_request *req )
1594 fprintf( stderr, " access=%08x", req->access );
1595 fprintf( stderr, ", attributes=%08x", req->attributes );
1596 fprintf( stderr, ", rootdir=%04x", req->rootdir );
1597 dump_varargs_unicode_str( ", name=", cur_size );
1600 static void dump_open_mutex_reply( const struct open_mutex_reply *req )
1602 fprintf( stderr, " handle=%04x", req->handle );
1605 static void dump_create_semaphore_request( const struct create_semaphore_request *req )
1607 fprintf( stderr, " access=%08x", req->access );
1608 fprintf( stderr, ", initial=%08x", req->initial );
1609 fprintf( stderr, ", max=%08x", req->max );
1610 dump_varargs_object_attributes( ", objattr=", cur_size );
1613 static void dump_create_semaphore_reply( const struct create_semaphore_reply *req )
1615 fprintf( stderr, " handle=%04x", req->handle );
1618 static void dump_release_semaphore_request( const struct release_semaphore_request *req )
1620 fprintf( stderr, " handle=%04x", req->handle );
1621 fprintf( stderr, ", count=%08x", req->count );
1624 static void dump_release_semaphore_reply( const struct release_semaphore_reply *req )
1626 fprintf( stderr, " prev_count=%08x", req->prev_count );
1629 static void dump_query_semaphore_request( const struct query_semaphore_request *req )
1631 fprintf( stderr, " handle=%04x", req->handle );
1634 static void dump_query_semaphore_reply( const struct query_semaphore_reply *req )
1636 fprintf( stderr, " current=%08x", req->current );
1637 fprintf( stderr, ", max=%08x", req->max );
1640 static void dump_open_semaphore_request( const struct open_semaphore_request *req )
1642 fprintf( stderr, " access=%08x", req->access );
1643 fprintf( stderr, ", attributes=%08x", req->attributes );
1644 fprintf( stderr, ", rootdir=%04x", req->rootdir );
1645 dump_varargs_unicode_str( ", name=", cur_size );
1648 static void dump_open_semaphore_reply( const struct open_semaphore_reply *req )
1650 fprintf( stderr, " handle=%04x", req->handle );
1653 static void dump_create_file_request( const struct create_file_request *req )
1655 fprintf( stderr, " access=%08x", req->access );
1656 fprintf( stderr, ", sharing=%08x", req->sharing );
1657 fprintf( stderr, ", create=%d", req->create );
1658 fprintf( stderr, ", options=%08x", req->options );
1659 fprintf( stderr, ", attrs=%08x", req->attrs );
1660 dump_varargs_object_attributes( ", objattr=", cur_size );
1661 dump_varargs_string( ", filename=", cur_size );
1664 static void dump_create_file_reply( const struct create_file_reply *req )
1666 fprintf( stderr, " handle=%04x", req->handle );
1669 static void dump_open_file_object_request( const struct open_file_object_request *req )
1671 fprintf( stderr, " access=%08x", req->access );
1672 fprintf( stderr, ", attributes=%08x", req->attributes );
1673 fprintf( stderr, ", rootdir=%04x", req->rootdir );
1674 fprintf( stderr, ", sharing=%08x", req->sharing );
1675 fprintf( stderr, ", options=%08x", req->options );
1676 dump_varargs_unicode_str( ", filename=", cur_size );
1679 static void dump_open_file_object_reply( const struct open_file_object_reply *req )
1681 fprintf( stderr, " handle=%04x", req->handle );
1684 static void dump_alloc_file_handle_request( const struct alloc_file_handle_request *req )
1686 fprintf( stderr, " access=%08x", req->access );
1687 fprintf( stderr, ", attributes=%08x", req->attributes );
1688 fprintf( stderr, ", fd=%d", req->fd );
1691 static void dump_alloc_file_handle_reply( const struct alloc_file_handle_reply *req )
1693 fprintf( stderr, " handle=%04x", req->handle );
1696 static void dump_get_handle_unix_name_request( const struct get_handle_unix_name_request *req )
1698 fprintf( stderr, " handle=%04x", req->handle );
1701 static void dump_get_handle_unix_name_reply( const struct get_handle_unix_name_reply *req )
1703 fprintf( stderr, " name_len=%u", req->name_len );
1704 dump_varargs_string( ", name=", cur_size );
1707 static void dump_get_handle_fd_request( const struct get_handle_fd_request *req )
1709 fprintf( stderr, " handle=%04x", req->handle );
1712 static void dump_get_handle_fd_reply( const struct get_handle_fd_reply *req )
1714 fprintf( stderr, " type=%d", req->type );
1715 fprintf( stderr, ", cacheable=%d", req->cacheable );
1716 fprintf( stderr, ", access=%08x", req->access );
1717 fprintf( stderr, ", options=%08x", req->options );
1720 static void dump_flush_request( const struct flush_request *req )
1722 fprintf( stderr, " blocking=%d", req->blocking );
1723 dump_async_data( ", async=", &req->async );
1726 static void dump_flush_reply( const struct flush_reply *req )
1728 fprintf( stderr, " event=%04x", req->event );
1731 static void dump_lock_file_request( const struct lock_file_request *req )
1733 fprintf( stderr, " handle=%04x", req->handle );
1734 dump_uint64( ", offset=", &req->offset );
1735 dump_uint64( ", count=", &req->count );
1736 fprintf( stderr, ", shared=%d", req->shared );
1737 fprintf( stderr, ", wait=%d", req->wait );
1740 static void dump_lock_file_reply( const struct lock_file_reply *req )
1742 fprintf( stderr, " handle=%04x", req->handle );
1743 fprintf( stderr, ", overlapped=%d", req->overlapped );
1746 static void dump_unlock_file_request( const struct unlock_file_request *req )
1748 fprintf( stderr, " handle=%04x", req->handle );
1749 dump_uint64( ", offset=", &req->offset );
1750 dump_uint64( ", count=", &req->count );
1753 static void dump_create_socket_request( const struct create_socket_request *req )
1755 fprintf( stderr, " access=%08x", req->access );
1756 fprintf( stderr, ", attributes=%08x", req->attributes );
1757 fprintf( stderr, ", family=%d", req->family );
1758 fprintf( stderr, ", type=%d", req->type );
1759 fprintf( stderr, ", protocol=%d", req->protocol );
1760 fprintf( stderr, ", flags=%08x", req->flags );
1763 static void dump_create_socket_reply( const struct create_socket_reply *req )
1765 fprintf( stderr, " handle=%04x", req->handle );
1768 static void dump_accept_socket_request( const struct accept_socket_request *req )
1770 fprintf( stderr, " lhandle=%04x", req->lhandle );
1771 fprintf( stderr, ", access=%08x", req->access );
1772 fprintf( stderr, ", attributes=%08x", req->attributes );
1775 static void dump_accept_socket_reply( const struct accept_socket_reply *req )
1777 fprintf( stderr, " handle=%04x", req->handle );
1780 static void dump_accept_into_socket_request( const struct accept_into_socket_request *req )
1782 fprintf( stderr, " lhandle=%04x", req->lhandle );
1783 fprintf( stderr, ", ahandle=%04x", req->ahandle );
1786 static void dump_set_socket_event_request( const struct set_socket_event_request *req )
1788 fprintf( stderr, " handle=%04x", req->handle );
1789 fprintf( stderr, ", mask=%08x", req->mask );
1790 fprintf( stderr, ", event=%04x", req->event );
1791 fprintf( stderr, ", window=%08x", req->window );
1792 fprintf( stderr, ", msg=%08x", req->msg );
1795 static void dump_get_socket_event_request( const struct get_socket_event_request *req )
1797 fprintf( stderr, " handle=%04x", req->handle );
1798 fprintf( stderr, ", service=%d", req->service );
1799 fprintf( stderr, ", c_event=%04x", req->c_event );
1802 static void dump_get_socket_event_reply( const struct get_socket_event_reply *req )
1804 fprintf( stderr, " mask=%08x", req->mask );
1805 fprintf( stderr, ", pmask=%08x", req->pmask );
1806 fprintf( stderr, ", state=%08x", req->state );
1807 dump_varargs_ints( ", errors=", cur_size );
1810 static void dump_get_socket_info_request( const struct get_socket_info_request *req )
1812 fprintf( stderr, " handle=%04x", req->handle );
1815 static void dump_get_socket_info_reply( const struct get_socket_info_reply *req )
1817 fprintf( stderr, " family=%d", req->family );
1818 fprintf( stderr, ", type=%d", req->type );
1819 fprintf( stderr, ", protocol=%d", req->protocol );
1822 static void dump_enable_socket_event_request( const struct enable_socket_event_request *req )
1824 fprintf( stderr, " handle=%04x", req->handle );
1825 fprintf( stderr, ", mask=%08x", req->mask );
1826 fprintf( stderr, ", sstate=%08x", req->sstate );
1827 fprintf( stderr, ", cstate=%08x", req->cstate );
1830 static void dump_set_socket_deferred_request( const struct set_socket_deferred_request *req )
1832 fprintf( stderr, " handle=%04x", req->handle );
1833 fprintf( stderr, ", deferred=%04x", req->deferred );
1836 static void dump_alloc_console_request( const struct alloc_console_request *req )
1838 fprintf( stderr, " access=%08x", req->access );
1839 fprintf( stderr, ", attributes=%08x", req->attributes );
1840 fprintf( stderr, ", pid=%04x", req->pid );
1841 fprintf( stderr, ", input_fd=%d", req->input_fd );
1844 static void dump_alloc_console_reply( const struct alloc_console_reply *req )
1846 fprintf( stderr, " handle_in=%04x", req->handle_in );
1847 fprintf( stderr, ", event=%04x", req->event );
1850 static void dump_free_console_request( const struct free_console_request *req )
1854 static void dump_get_console_renderer_events_request( const struct get_console_renderer_events_request *req )
1856 fprintf( stderr, " handle=%04x", req->handle );
1859 static void dump_get_console_renderer_events_reply( const struct get_console_renderer_events_reply *req )
1861 dump_varargs_bytes( " data=", cur_size );
1864 static void dump_open_console_request( const struct open_console_request *req )
1866 fprintf( stderr, " from=%04x", req->from );
1867 fprintf( stderr, ", access=%08x", req->access );
1868 fprintf( stderr, ", attributes=%08x", req->attributes );
1869 fprintf( stderr, ", share=%d", req->share );
1872 static void dump_open_console_reply( const struct open_console_reply *req )
1874 fprintf( stderr, " handle=%04x", req->handle );
1877 static void dump_get_console_wait_event_request( const struct get_console_wait_event_request *req )
1881 static void dump_get_console_wait_event_reply( const struct get_console_wait_event_reply *req )
1883 fprintf( stderr, " handle=%04x", req->handle );
1886 static void dump_get_console_mode_request( const struct get_console_mode_request *req )
1888 fprintf( stderr, " handle=%04x", req->handle );
1891 static void dump_get_console_mode_reply( const struct get_console_mode_reply *req )
1893 fprintf( stderr, " mode=%d", req->mode );
1896 static void dump_set_console_mode_request( const struct set_console_mode_request *req )
1898 fprintf( stderr, " handle=%04x", req->handle );
1899 fprintf( stderr, ", mode=%d", req->mode );
1902 static void dump_set_console_input_info_request( const struct set_console_input_info_request *req )
1904 fprintf( stderr, " handle=%04x", req->handle );
1905 fprintf( stderr, ", mask=%d", req->mask );
1906 fprintf( stderr, ", active_sb=%04x", req->active_sb );
1907 fprintf( stderr, ", history_mode=%d", req->history_mode );
1908 fprintf( stderr, ", history_size=%d", req->history_size );
1909 fprintf( stderr, ", edition_mode=%d", req->edition_mode );
1910 fprintf( stderr, ", input_cp=%d", req->input_cp );
1911 fprintf( stderr, ", output_cp=%d", req->output_cp );
1912 fprintf( stderr, ", win=%08x", req->win );
1913 dump_varargs_unicode_str( ", title=", cur_size );
1916 static void dump_get_console_input_info_request( const struct get_console_input_info_request *req )
1918 fprintf( stderr, " handle=%04x", req->handle );
1921 static void dump_get_console_input_info_reply( const struct get_console_input_info_reply *req )
1923 fprintf( stderr, " history_mode=%d", req->history_mode );
1924 fprintf( stderr, ", history_size=%d", req->history_size );
1925 fprintf( stderr, ", history_index=%d", req->history_index );
1926 fprintf( stderr, ", edition_mode=%d", req->edition_mode );
1927 fprintf( stderr, ", input_cp=%d", req->input_cp );
1928 fprintf( stderr, ", output_cp=%d", req->output_cp );
1929 fprintf( stderr, ", win=%08x", req->win );
1930 dump_varargs_unicode_str( ", title=", cur_size );
1933 static void dump_append_console_input_history_request( const struct append_console_input_history_request *req )
1935 fprintf( stderr, " handle=%04x", req->handle );
1936 dump_varargs_unicode_str( ", line=", cur_size );
1939 static void dump_get_console_input_history_request( const struct get_console_input_history_request *req )
1941 fprintf( stderr, " handle=%04x", req->handle );
1942 fprintf( stderr, ", index=%d", req->index );
1945 static void dump_get_console_input_history_reply( const struct get_console_input_history_reply *req )
1947 fprintf( stderr, " total=%d", req->total );
1948 dump_varargs_unicode_str( ", line=", cur_size );
1951 static void dump_create_console_output_request( const struct create_console_output_request *req )
1953 fprintf( stderr, " handle_in=%04x", req->handle_in );
1954 fprintf( stderr, ", access=%08x", req->access );
1955 fprintf( stderr, ", attributes=%08x", req->attributes );
1956 fprintf( stderr, ", share=%08x", req->share );
1957 fprintf( stderr, ", fd=%d", req->fd );
1960 static void dump_create_console_output_reply( const struct create_console_output_reply *req )
1962 fprintf( stderr, " handle_out=%04x", req->handle_out );
1965 static void dump_set_console_output_info_request( const struct set_console_output_info_request *req )
1967 fprintf( stderr, " handle=%04x", req->handle );
1968 fprintf( stderr, ", mask=%d", req->mask );
1969 fprintf( stderr, ", cursor_size=%d", req->cursor_size );
1970 fprintf( stderr, ", cursor_visible=%d", req->cursor_visible );
1971 fprintf( stderr, ", cursor_x=%d", req->cursor_x );
1972 fprintf( stderr, ", cursor_y=%d", req->cursor_y );
1973 fprintf( stderr, ", width=%d", req->width );
1974 fprintf( stderr, ", height=%d", req->height );
1975 fprintf( stderr, ", attr=%d", req->attr );
1976 fprintf( stderr, ", win_left=%d", req->win_left );
1977 fprintf( stderr, ", win_top=%d", req->win_top );
1978 fprintf( stderr, ", win_right=%d", req->win_right );
1979 fprintf( stderr, ", win_bottom=%d", req->win_bottom );
1980 fprintf( stderr, ", max_width=%d", req->max_width );
1981 fprintf( stderr, ", max_height=%d", req->max_height );
1982 fprintf( stderr, ", font_width=%d", req->font_width );
1983 fprintf( stderr, ", font_height=%d", req->font_height );
1986 static void dump_get_console_output_info_request( const struct get_console_output_info_request *req )
1988 fprintf( stderr, " handle=%04x", req->handle );
1991 static void dump_get_console_output_info_reply( const struct get_console_output_info_reply *req )
1993 fprintf( stderr, " cursor_size=%d", req->cursor_size );
1994 fprintf( stderr, ", cursor_visible=%d", req->cursor_visible );
1995 fprintf( stderr, ", cursor_x=%d", req->cursor_x );
1996 fprintf( stderr, ", cursor_y=%d", req->cursor_y );
1997 fprintf( stderr, ", width=%d", req->width );
1998 fprintf( stderr, ", height=%d", req->height );
1999 fprintf( stderr, ", attr=%d", req->attr );
2000 fprintf( stderr, ", win_left=%d", req->win_left );
2001 fprintf( stderr, ", win_top=%d", req->win_top );
2002 fprintf( stderr, ", win_right=%d", req->win_right );
2003 fprintf( stderr, ", win_bottom=%d", req->win_bottom );
2004 fprintf( stderr, ", max_width=%d", req->max_width );
2005 fprintf( stderr, ", max_height=%d", req->max_height );
2006 fprintf( stderr, ", font_width=%d", req->font_width );
2007 fprintf( stderr, ", font_height=%d", req->font_height );
2010 static void dump_write_console_input_request( const struct write_console_input_request *req )
2012 fprintf( stderr, " handle=%04x", req->handle );
2013 dump_varargs_input_records( ", rec=", cur_size );
2016 static void dump_write_console_input_reply( const struct write_console_input_reply *req )
2018 fprintf( stderr, " written=%d", req->written );
2021 static void dump_read_console_input_request( const struct read_console_input_request *req )
2023 fprintf( stderr, " handle=%04x", req->handle );
2024 fprintf( stderr, ", flush=%d", req->flush );
2027 static void dump_read_console_input_reply( const struct read_console_input_reply *req )
2029 fprintf( stderr, " read=%d", req->read );
2030 dump_varargs_input_records( ", rec=", cur_size );
2033 static void dump_write_console_output_request( const struct write_console_output_request *req )
2035 fprintf( stderr, " handle=%04x", req->handle );
2036 fprintf( stderr, ", x=%d", req->x );
2037 fprintf( stderr, ", y=%d", req->y );
2038 fprintf( stderr, ", mode=%d", req->mode );
2039 fprintf( stderr, ", wrap=%d", req->wrap );
2040 dump_varargs_bytes( ", data=", cur_size );
2043 static void dump_write_console_output_reply( const struct write_console_output_reply *req )
2045 fprintf( stderr, " written=%d", req->written );
2046 fprintf( stderr, ", width=%d", req->width );
2047 fprintf( stderr, ", height=%d", req->height );
2050 static void dump_fill_console_output_request( const struct fill_console_output_request *req )
2052 fprintf( stderr, " handle=%04x", req->handle );
2053 fprintf( stderr, ", x=%d", req->x );
2054 fprintf( stderr, ", y=%d", req->y );
2055 fprintf( stderr, ", mode=%d", req->mode );
2056 fprintf( stderr, ", count=%d", req->count );
2057 fprintf( stderr, ", wrap=%d", req->wrap );
2058 dump_char_info( ", data=", &req->data );
2061 static void dump_fill_console_output_reply( const struct fill_console_output_reply *req )
2063 fprintf( stderr, " written=%d", req->written );
2066 static void dump_read_console_output_request( const struct read_console_output_request *req )
2068 fprintf( stderr, " handle=%04x", req->handle );
2069 fprintf( stderr, ", x=%d", req->x );
2070 fprintf( stderr, ", y=%d", req->y );
2071 fprintf( stderr, ", mode=%d", req->mode );
2072 fprintf( stderr, ", wrap=%d", req->wrap );
2075 static void dump_read_console_output_reply( const struct read_console_output_reply *req )
2077 fprintf( stderr, " width=%d", req->width );
2078 fprintf( stderr, ", height=%d", req->height );
2079 dump_varargs_bytes( ", data=", cur_size );
2082 static void dump_move_console_output_request( const struct move_console_output_request *req )
2084 fprintf( stderr, " handle=%04x", req->handle );
2085 fprintf( stderr, ", x_src=%d", req->x_src );
2086 fprintf( stderr, ", y_src=%d", req->y_src );
2087 fprintf( stderr, ", x_dst=%d", req->x_dst );
2088 fprintf( stderr, ", y_dst=%d", req->y_dst );
2089 fprintf( stderr, ", w=%d", req->w );
2090 fprintf( stderr, ", h=%d", req->h );
2093 static void dump_send_console_signal_request( const struct send_console_signal_request *req )
2095 fprintf( stderr, " signal=%d", req->signal );
2096 fprintf( stderr, ", group_id=%04x", req->group_id );
2099 static void dump_read_directory_changes_request( const struct read_directory_changes_request *req )
2101 fprintf( stderr, " filter=%08x", req->filter );
2102 fprintf( stderr, ", subtree=%d", req->subtree );
2103 fprintf( stderr, ", want_data=%d", req->want_data );
2104 dump_async_data( ", async=", &req->async );
2107 static void dump_read_change_request( const struct read_change_request *req )
2109 fprintf( stderr, " handle=%04x", req->handle );
2112 static void dump_read_change_reply( const struct read_change_reply *req )
2114 dump_varargs_filesystem_event( " events=", cur_size );
2117 static void dump_create_mapping_request( const struct create_mapping_request *req )
2119 fprintf( stderr, " access=%08x", req->access );
2120 fprintf( stderr, ", protect=%08x", req->protect );
2121 dump_uint64( ", size=", &req->size );
2122 fprintf( stderr, ", file_handle=%04x", req->file_handle );
2123 dump_varargs_object_attributes( ", objattr=", cur_size );
2126 static void dump_create_mapping_reply( const struct create_mapping_reply *req )
2128 fprintf( stderr, " handle=%04x", req->handle );
2131 static void dump_open_mapping_request( const struct open_mapping_request *req )
2133 fprintf( stderr, " access=%08x", req->access );
2134 fprintf( stderr, ", attributes=%08x", req->attributes );
2135 fprintf( stderr, ", rootdir=%04x", req->rootdir );
2136 dump_varargs_unicode_str( ", name=", cur_size );
2139 static void dump_open_mapping_reply( const struct open_mapping_reply *req )
2141 fprintf( stderr, " handle=%04x", req->handle );
2144 static void dump_get_mapping_info_request( const struct get_mapping_info_request *req )
2146 fprintf( stderr, " handle=%04x", req->handle );
2147 fprintf( stderr, ", access=%08x", req->access );
2150 static void dump_get_mapping_info_reply( const struct get_mapping_info_reply *req )
2152 dump_uint64( " size=", &req->size );
2153 fprintf( stderr, ", protect=%d", req->protect );
2154 fprintf( stderr, ", header_size=%d", req->header_size );
2155 dump_uint64( ", base=", &req->base );
2156 fprintf( stderr, ", mapping=%04x", req->mapping );
2157 fprintf( stderr, ", shared_file=%04x", req->shared_file );
2160 static void dump_get_mapping_committed_range_request( const struct get_mapping_committed_range_request *req )
2162 fprintf( stderr, " handle=%04x", req->handle );
2163 dump_uint64( ", offset=", &req->offset );
2166 static void dump_get_mapping_committed_range_reply( const struct get_mapping_committed_range_reply *req )
2168 dump_uint64( " size=", &req->size );
2169 fprintf( stderr, ", committed=%d", req->committed );
2172 static void dump_add_mapping_committed_range_request( const struct add_mapping_committed_range_request *req )
2174 fprintf( stderr, " handle=%04x", req->handle );
2175 dump_uint64( ", offset=", &req->offset );
2176 dump_uint64( ", size=", &req->size );
2179 static void dump_create_snapshot_request( const struct create_snapshot_request *req )
2181 fprintf( stderr, " attributes=%08x", req->attributes );
2182 fprintf( stderr, ", flags=%08x", req->flags );
2185 static void dump_create_snapshot_reply( const struct create_snapshot_reply *req )
2187 fprintf( stderr, " handle=%04x", req->handle );
2190 static void dump_next_process_request( const struct next_process_request *req )
2192 fprintf( stderr, " handle=%04x", req->handle );
2193 fprintf( stderr, ", reset=%d", req->reset );
2196 static void dump_next_process_reply( const struct next_process_reply *req )
2198 fprintf( stderr, " count=%d", req->count );
2199 fprintf( stderr, ", pid=%04x", req->pid );
2200 fprintf( stderr, ", ppid=%04x", req->ppid );
2201 fprintf( stderr, ", threads=%d", req->threads );
2202 fprintf( stderr, ", priority=%d", req->priority );
2203 fprintf( stderr, ", handles=%d", req->handles );
2204 fprintf( stderr, ", unix_pid=%d", req->unix_pid );
2205 dump_varargs_unicode_str( ", filename=", cur_size );
2208 static void dump_next_thread_request( const struct next_thread_request *req )
2210 fprintf( stderr, " handle=%04x", req->handle );
2211 fprintf( stderr, ", reset=%d", req->reset );
2214 static void dump_next_thread_reply( const struct next_thread_reply *req )
2216 fprintf( stderr, " count=%d", req->count );
2217 fprintf( stderr, ", pid=%04x", req->pid );
2218 fprintf( stderr, ", tid=%04x", req->tid );
2219 fprintf( stderr, ", base_pri=%d", req->base_pri );
2220 fprintf( stderr, ", delta_pri=%d", req->delta_pri );
2223 static void dump_wait_debug_event_request( const struct wait_debug_event_request *req )
2225 fprintf( stderr, " get_handle=%d", req->get_handle );
2228 static void dump_wait_debug_event_reply( const struct wait_debug_event_reply *req )
2230 fprintf( stderr, " pid=%04x", req->pid );
2231 fprintf( stderr, ", tid=%04x", req->tid );
2232 fprintf( stderr, ", wait=%04x", req->wait );
2233 dump_varargs_debug_event( ", event=", cur_size );
2236 static void dump_queue_exception_event_request( const struct queue_exception_event_request *req )
2238 fprintf( stderr, " first=%d", req->first );
2239 fprintf( stderr, ", code=%08x", req->code );
2240 fprintf( stderr, ", flags=%08x", req->flags );
2241 dump_uint64( ", record=", &req->record );
2242 dump_uint64( ", address=", &req->address );
2243 fprintf( stderr, ", len=%u", req->len );
2244 dump_varargs_uints64( ", params=", min(cur_size,req->len) );
2245 dump_varargs_context( ", context=", cur_size );
2248 static void dump_queue_exception_event_reply( const struct queue_exception_event_reply *req )
2250 fprintf( stderr, " handle=%04x", req->handle );
2253 static void dump_get_exception_status_request( const struct get_exception_status_request *req )
2255 fprintf( stderr, " handle=%04x", req->handle );
2258 static void dump_get_exception_status_reply( const struct get_exception_status_reply *req )
2260 dump_varargs_context( " context=", cur_size );
2263 static void dump_continue_debug_event_request( const struct continue_debug_event_request *req )
2265 fprintf( stderr, " pid=%04x", req->pid );
2266 fprintf( stderr, ", tid=%04x", req->tid );
2267 fprintf( stderr, ", status=%d", req->status );
2270 static void dump_debug_process_request( const struct debug_process_request *req )
2272 fprintf( stderr, " pid=%04x", req->pid );
2273 fprintf( stderr, ", attach=%d", req->attach );
2276 static void dump_debug_break_request( const struct debug_break_request *req )
2278 fprintf( stderr, " handle=%04x", req->handle );
2281 static void dump_debug_break_reply( const struct debug_break_reply *req )
2283 fprintf( stderr, " self=%d", req->self );
2286 static void dump_set_debugger_kill_on_exit_request( const struct set_debugger_kill_on_exit_request *req )
2288 fprintf( stderr, " kill_on_exit=%d", req->kill_on_exit );
2291 static void dump_read_process_memory_request( const struct read_process_memory_request *req )
2293 fprintf( stderr, " handle=%04x", req->handle );
2294 dump_uint64( ", addr=", &req->addr );
2297 static void dump_read_process_memory_reply( const struct read_process_memory_reply *req )
2299 dump_varargs_bytes( " data=", cur_size );
2302 static void dump_write_process_memory_request( const struct write_process_memory_request *req )
2304 fprintf( stderr, " handle=%04x", req->handle );
2305 dump_uint64( ", addr=", &req->addr );
2306 dump_varargs_bytes( ", data=", cur_size );
2309 static void dump_create_key_request( const struct create_key_request *req )
2311 fprintf( stderr, " access=%08x", req->access );
2312 fprintf( stderr, ", options=%08x", req->options );
2313 dump_varargs_object_attributes( ", objattr=", cur_size );
2314 dump_varargs_unicode_str( ", class=", cur_size );
2317 static void dump_create_key_reply( const struct create_key_reply *req )
2319 fprintf( stderr, " hkey=%04x", req->hkey );
2320 fprintf( stderr, ", created=%d", req->created );
2323 static void dump_open_key_request( const struct open_key_request *req )
2325 fprintf( stderr, " parent=%04x", req->parent );
2326 fprintf( stderr, ", access=%08x", req->access );
2327 fprintf( stderr, ", attributes=%08x", req->attributes );
2328 dump_varargs_unicode_str( ", name=", cur_size );
2331 static void dump_open_key_reply( const struct open_key_reply *req )
2333 fprintf( stderr, " hkey=%04x", req->hkey );
2336 static void dump_delete_key_request( const struct delete_key_request *req )
2338 fprintf( stderr, " hkey=%04x", req->hkey );
2341 static void dump_flush_key_request( const struct flush_key_request *req )
2343 fprintf( stderr, " hkey=%04x", req->hkey );
2346 static void dump_enum_key_request( const struct enum_key_request *req )
2348 fprintf( stderr, " hkey=%04x", req->hkey );
2349 fprintf( stderr, ", index=%d", req->index );
2350 fprintf( stderr, ", info_class=%d", req->info_class );
2353 static void dump_enum_key_reply( const struct enum_key_reply *req )
2355 fprintf( stderr, " subkeys=%d", req->subkeys );
2356 fprintf( stderr, ", max_subkey=%d", req->max_subkey );
2357 fprintf( stderr, ", max_class=%d", req->max_class );
2358 fprintf( stderr, ", values=%d", req->values );
2359 fprintf( stderr, ", max_value=%d", req->max_value );
2360 fprintf( stderr, ", max_data=%d", req->max_data );
2361 dump_timeout( ", modif=", &req->modif );
2362 fprintf( stderr, ", total=%u", req->total );
2363 fprintf( stderr, ", namelen=%u", req->namelen );
2364 dump_varargs_unicode_str( ", name=", min(cur_size,req->namelen) );
2365 dump_varargs_unicode_str( ", class=", cur_size );
2368 static void dump_set_key_value_request( const struct set_key_value_request *req )
2370 fprintf( stderr, " hkey=%04x", req->hkey );
2371 fprintf( stderr, ", type=%d", req->type );
2372 fprintf( stderr, ", namelen=%u", req->namelen );
2373 dump_varargs_unicode_str( ", name=", min(cur_size,req->namelen) );
2374 dump_varargs_bytes( ", data=", cur_size );
2377 static void dump_get_key_value_request( const struct get_key_value_request *req )
2379 fprintf( stderr, " hkey=%04x", req->hkey );
2380 dump_varargs_unicode_str( ", name=", cur_size );
2383 static void dump_get_key_value_reply( const struct get_key_value_reply *req )
2385 fprintf( stderr, " type=%d", req->type );
2386 fprintf( stderr, ", total=%u", req->total );
2387 dump_varargs_bytes( ", data=", cur_size );
2390 static void dump_enum_key_value_request( const struct enum_key_value_request *req )
2392 fprintf( stderr, " hkey=%04x", req->hkey );
2393 fprintf( stderr, ", index=%d", req->index );
2394 fprintf( stderr, ", info_class=%d", req->info_class );
2397 static void dump_enum_key_value_reply( const struct enum_key_value_reply *req )
2399 fprintf( stderr, " type=%d", req->type );
2400 fprintf( stderr, ", total=%u", req->total );
2401 fprintf( stderr, ", namelen=%u", req->namelen );
2402 dump_varargs_unicode_str( ", name=", min(cur_size,req->namelen) );
2403 dump_varargs_bytes( ", data=", cur_size );
2406 static void dump_delete_key_value_request( const struct delete_key_value_request *req )
2408 fprintf( stderr, " hkey=%04x", req->hkey );
2409 dump_varargs_unicode_str( ", name=", cur_size );
2412 static void dump_load_registry_request( const struct load_registry_request *req )
2414 fprintf( stderr, " file=%04x", req->file );
2415 dump_varargs_object_attributes( ", objattr=", cur_size );
2418 static void dump_unload_registry_request( const struct unload_registry_request *req )
2420 fprintf( stderr, " hkey=%04x", req->hkey );
2423 static void dump_save_registry_request( const struct save_registry_request *req )
2425 fprintf( stderr, " hkey=%04x", req->hkey );
2426 fprintf( stderr, ", file=%04x", req->file );
2429 static void dump_set_registry_notification_request( const struct set_registry_notification_request *req )
2431 fprintf( stderr, " hkey=%04x", req->hkey );
2432 fprintf( stderr, ", event=%04x", req->event );
2433 fprintf( stderr, ", subtree=%d", req->subtree );
2434 fprintf( stderr, ", filter=%08x", req->filter );
2437 static void dump_create_timer_request( const struct create_timer_request *req )
2439 fprintf( stderr, " access=%08x", req->access );
2440 fprintf( stderr, ", manual=%d", req->manual );
2441 dump_varargs_object_attributes( ", objattr=", cur_size );
2444 static void dump_create_timer_reply( const struct create_timer_reply *req )
2446 fprintf( stderr, " handle=%04x", req->handle );
2449 static void dump_open_timer_request( const struct open_timer_request *req )
2451 fprintf( stderr, " access=%08x", req->access );
2452 fprintf( stderr, ", attributes=%08x", req->attributes );
2453 fprintf( stderr, ", rootdir=%04x", req->rootdir );
2454 dump_varargs_unicode_str( ", name=", cur_size );
2457 static void dump_open_timer_reply( const struct open_timer_reply *req )
2459 fprintf( stderr, " handle=%04x", req->handle );
2462 static void dump_set_timer_request( const struct set_timer_request *req )
2464 fprintf( stderr, " handle=%04x", req->handle );
2465 dump_timeout( ", expire=", &req->expire );
2466 dump_uint64( ", callback=", &req->callback );
2467 dump_uint64( ", arg=", &req->arg );
2468 fprintf( stderr, ", period=%d", req->period );
2471 static void dump_set_timer_reply( const struct set_timer_reply *req )
2473 fprintf( stderr, " signaled=%d", req->signaled );
2476 static void dump_cancel_timer_request( const struct cancel_timer_request *req )
2478 fprintf( stderr, " handle=%04x", req->handle );
2481 static void dump_cancel_timer_reply( const struct cancel_timer_reply *req )
2483 fprintf( stderr, " signaled=%d", req->signaled );
2486 static void dump_get_timer_info_request( const struct get_timer_info_request *req )
2488 fprintf( stderr, " handle=%04x", req->handle );
2491 static void dump_get_timer_info_reply( const struct get_timer_info_reply *req )
2493 dump_timeout( " when=", &req->when );
2494 fprintf( stderr, ", signaled=%d", req->signaled );
2497 static void dump_get_thread_context_request( const struct get_thread_context_request *req )
2499 fprintf( stderr, " handle=%04x", req->handle );
2500 fprintf( stderr, ", flags=%08x", req->flags );
2501 fprintf( stderr, ", suspend=%d", req->suspend );
2504 static void dump_get_thread_context_reply( const struct get_thread_context_reply *req )
2506 fprintf( stderr, " self=%d", req->self );
2507 dump_varargs_context( ", context=", cur_size );
2510 static void dump_set_thread_context_request( const struct set_thread_context_request *req )
2512 fprintf( stderr, " handle=%04x", req->handle );
2513 fprintf( stderr, ", suspend=%d", req->suspend );
2514 dump_varargs_context( ", context=", cur_size );
2517 static void dump_set_thread_context_reply( const struct set_thread_context_reply *req )
2519 fprintf( stderr, " self=%d", req->self );
2522 static void dump_get_selector_entry_request( const struct get_selector_entry_request *req )
2524 fprintf( stderr, " handle=%04x", req->handle );
2525 fprintf( stderr, ", entry=%d", req->entry );
2528 static void dump_get_selector_entry_reply( const struct get_selector_entry_reply *req )
2530 fprintf( stderr, " base=%08x", req->base );
2531 fprintf( stderr, ", limit=%08x", req->limit );
2532 fprintf( stderr, ", flags=%02x", req->flags );
2535 static void dump_add_atom_request( const struct add_atom_request *req )
2537 fprintf( stderr, " table=%04x", req->table );
2538 dump_varargs_unicode_str( ", name=", cur_size );
2541 static void dump_add_atom_reply( const struct add_atom_reply *req )
2543 fprintf( stderr, " atom=%04x", req->atom );
2546 static void dump_delete_atom_request( const struct delete_atom_request *req )
2548 fprintf( stderr, " table=%04x", req->table );
2549 fprintf( stderr, ", atom=%04x", req->atom );
2552 static void dump_find_atom_request( const struct find_atom_request *req )
2554 fprintf( stderr, " table=%04x", req->table );
2555 dump_varargs_unicode_str( ", name=", cur_size );
2558 static void dump_find_atom_reply( const struct find_atom_reply *req )
2560 fprintf( stderr, " atom=%04x", req->atom );
2563 static void dump_get_atom_information_request( const struct get_atom_information_request *req )
2565 fprintf( stderr, " table=%04x", req->table );
2566 fprintf( stderr, ", atom=%04x", req->atom );
2569 static void dump_get_atom_information_reply( const struct get_atom_information_reply *req )
2571 fprintf( stderr, " count=%d", req->count );
2572 fprintf( stderr, ", pinned=%d", req->pinned );
2573 fprintf( stderr, ", total=%u", req->total );
2574 dump_varargs_unicode_str( ", name=", cur_size );
2577 static void dump_set_atom_information_request( const struct set_atom_information_request *req )
2579 fprintf( stderr, " table=%04x", req->table );
2580 fprintf( stderr, ", atom=%04x", req->atom );
2581 fprintf( stderr, ", pinned=%d", req->pinned );
2584 static void dump_empty_atom_table_request( const struct empty_atom_table_request *req )
2586 fprintf( stderr, " table=%04x", req->table );
2587 fprintf( stderr, ", if_pinned=%d", req->if_pinned );
2590 static void dump_init_atom_table_request( const struct init_atom_table_request *req )
2592 fprintf( stderr, " entries=%d", req->entries );
2595 static void dump_init_atom_table_reply( const struct init_atom_table_reply *req )
2597 fprintf( stderr, " table=%04x", req->table );
2600 static void dump_get_msg_queue_request( const struct get_msg_queue_request *req )
2604 static void dump_get_msg_queue_reply( const struct get_msg_queue_reply *req )
2606 fprintf( stderr, " handle=%04x", req->handle );
2609 static void dump_set_queue_fd_request( const struct set_queue_fd_request *req )
2611 fprintf( stderr, " handle=%04x", req->handle );
2614 static void dump_set_queue_mask_request( const struct set_queue_mask_request *req )
2616 fprintf( stderr, " wake_mask=%08x", req->wake_mask );
2617 fprintf( stderr, ", changed_mask=%08x", req->changed_mask );
2618 fprintf( stderr, ", skip_wait=%d", req->skip_wait );
2621 static void dump_set_queue_mask_reply( const struct set_queue_mask_reply *req )
2623 fprintf( stderr, " wake_bits=%08x", req->wake_bits );
2624 fprintf( stderr, ", changed_bits=%08x", req->changed_bits );
2627 static void dump_get_queue_status_request( const struct get_queue_status_request *req )
2629 fprintf( stderr, " clear_bits=%08x", req->clear_bits );
2632 static void dump_get_queue_status_reply( const struct get_queue_status_reply *req )
2634 fprintf( stderr, " wake_bits=%08x", req->wake_bits );
2635 fprintf( stderr, ", changed_bits=%08x", req->changed_bits );
2638 static void dump_get_process_idle_event_request( const struct get_process_idle_event_request *req )
2640 fprintf( stderr, " handle=%04x", req->handle );
2643 static void dump_get_process_idle_event_reply( const struct get_process_idle_event_reply *req )
2645 fprintf( stderr, " event=%04x", req->event );
2648 static void dump_send_message_request( const struct send_message_request *req )
2650 fprintf( stderr, " id=%04x", req->id );
2651 fprintf( stderr, ", type=%d", req->type );
2652 fprintf( stderr, ", flags=%d", req->flags );
2653 fprintf( stderr, ", win=%08x", req->win );
2654 fprintf( stderr, ", msg=%08x", req->msg );
2655 dump_uint64( ", wparam=", &req->wparam );
2656 dump_uint64( ", lparam=", &req->lparam );
2657 dump_timeout( ", timeout=", &req->timeout );
2658 dump_varargs_message_data( ", data=", cur_size );
2661 static void dump_post_quit_message_request( const struct post_quit_message_request *req )
2663 fprintf( stderr, " exit_code=%d", req->exit_code );
2666 static void dump_send_hardware_message_request( const struct send_hardware_message_request *req )
2668 fprintf( stderr, " win=%08x", req->win );
2669 dump_hw_input( ", input=", &req->input );
2670 fprintf( stderr, ", flags=%08x", req->flags );
2673 static void dump_send_hardware_message_reply( const struct send_hardware_message_reply *req )
2675 fprintf( stderr, " wait=%d", req->wait );
2676 fprintf( stderr, ", prev_x=%d", req->prev_x );
2677 fprintf( stderr, ", prev_y=%d", req->prev_y );
2678 fprintf( stderr, ", new_x=%d", req->new_x );
2679 fprintf( stderr, ", new_y=%d", req->new_y );
2680 dump_varargs_bytes( ", keystate=", cur_size );
2683 static void dump_get_message_request( const struct get_message_request *req )
2685 fprintf( stderr, " flags=%08x", req->flags );
2686 fprintf( stderr, ", get_win=%08x", req->get_win );
2687 fprintf( stderr, ", get_first=%08x", req->get_first );
2688 fprintf( stderr, ", get_last=%08x", req->get_last );
2689 fprintf( stderr, ", hw_id=%08x", req->hw_id );
2690 fprintf( stderr, ", wake_mask=%08x", req->wake_mask );
2691 fprintf( stderr, ", changed_mask=%08x", req->changed_mask );
2694 static void dump_get_message_reply( const struct get_message_reply *req )
2696 fprintf( stderr, " win=%08x", req->win );
2697 fprintf( stderr, ", msg=%08x", req->msg );
2698 dump_uint64( ", wparam=", &req->wparam );
2699 dump_uint64( ", lparam=", &req->lparam );
2700 fprintf( stderr, ", type=%d", req->type );
2701 fprintf( stderr, ", x=%d", req->x );
2702 fprintf( stderr, ", y=%d", req->y );
2703 fprintf( stderr, ", time=%08x", req->time );
2704 fprintf( stderr, ", active_hooks=%08x", req->active_hooks );
2705 fprintf( stderr, ", total=%u", req->total );
2706 dump_varargs_message_data( ", data=", cur_size );
2709 static void dump_reply_message_request( const struct reply_message_request *req )
2711 fprintf( stderr, " remove=%d", req->remove );
2712 dump_uint64( ", result=", &req->result );
2713 dump_varargs_bytes( ", data=", cur_size );
2716 static void dump_accept_hardware_message_request( const struct accept_hardware_message_request *req )
2718 fprintf( stderr, " hw_id=%08x", req->hw_id );
2719 fprintf( stderr, ", remove=%d", req->remove );
2722 static void dump_get_message_reply_request( const struct get_message_reply_request *req )
2724 fprintf( stderr, " cancel=%d", req->cancel );
2727 static void dump_get_message_reply_reply( const struct get_message_reply_reply *req )
2729 dump_uint64( " result=", &req->result );
2730 dump_varargs_bytes( ", data=", cur_size );
2733 static void dump_set_win_timer_request( const struct set_win_timer_request *req )
2735 fprintf( stderr, " win=%08x", req->win );
2736 fprintf( stderr, ", msg=%08x", req->msg );
2737 fprintf( stderr, ", rate=%08x", req->rate );
2738 dump_uint64( ", id=", &req->id );
2739 dump_uint64( ", lparam=", &req->lparam );
2742 static void dump_set_win_timer_reply( const struct set_win_timer_reply *req )
2744 dump_uint64( " id=", &req->id );
2747 static void dump_kill_win_timer_request( const struct kill_win_timer_request *req )
2749 fprintf( stderr, " win=%08x", req->win );
2750 dump_uint64( ", id=", &req->id );
2751 fprintf( stderr, ", msg=%08x", req->msg );
2754 static void dump_is_window_hung_request( const struct is_window_hung_request *req )
2756 fprintf( stderr, " win=%08x", req->win );
2759 static void dump_is_window_hung_reply( const struct is_window_hung_reply *req )
2761 fprintf( stderr, " is_hung=%d", req->is_hung );
2764 static void dump_get_serial_info_request( const struct get_serial_info_request *req )
2766 fprintf( stderr, " handle=%04x", req->handle );
2767 fprintf( stderr, ", flags=%d", req->flags );
2770 static void dump_get_serial_info_reply( const struct get_serial_info_reply *req )
2772 fprintf( stderr, " readinterval=%08x", req->readinterval );
2773 fprintf( stderr, ", readconst=%08x", req->readconst );
2774 fprintf( stderr, ", readmult=%08x", req->readmult );
2775 fprintf( stderr, ", writeconst=%08x", req->writeconst );
2776 fprintf( stderr, ", writemult=%08x", req->writemult );
2777 fprintf( stderr, ", eventmask=%08x", req->eventmask );
2778 fprintf( stderr, ", cookie=%08x", req->cookie );
2779 fprintf( stderr, ", pending_write=%08x", req->pending_write );
2782 static void dump_set_serial_info_request( const struct set_serial_info_request *req )
2784 fprintf( stderr, " handle=%04x", req->handle );
2785 fprintf( stderr, ", flags=%d", req->flags );
2786 fprintf( stderr, ", readinterval=%08x", req->readinterval );
2787 fprintf( stderr, ", readconst=%08x", req->readconst );
2788 fprintf( stderr, ", readmult=%08x", req->readmult );
2789 fprintf( stderr, ", writeconst=%08x", req->writeconst );
2790 fprintf( stderr, ", writemult=%08x", req->writemult );
2791 fprintf( stderr, ", eventmask=%08x", req->eventmask );
2794 static void dump_register_async_request( const struct register_async_request *req )
2796 fprintf( stderr, " type=%d", req->type );
2797 dump_async_data( ", async=", &req->async );
2798 fprintf( stderr, ", count=%d", req->count );
2801 static void dump_cancel_async_request( const struct cancel_async_request *req )
2803 fprintf( stderr, " handle=%04x", req->handle );
2804 dump_uint64( ", iosb=", &req->iosb );
2805 fprintf( stderr, ", only_thread=%d", req->only_thread );
2808 static void dump_read_request( const struct read_request *req )
2810 fprintf( stderr, " blocking=%d", req->blocking );
2811 dump_async_data( ", async=", &req->async );
2812 dump_uint64( ", pos=", &req->pos );
2815 static void dump_read_reply( const struct read_reply *req )
2817 fprintf( stderr, " wait=%04x", req->wait );
2818 fprintf( stderr, ", options=%08x", req->options );
2819 dump_varargs_bytes( ", data=", cur_size );
2822 static void dump_write_request( const struct write_request *req )
2824 fprintf( stderr, " blocking=%d", req->blocking );
2825 dump_async_data( ", async=", &req->async );
2826 dump_uint64( ", pos=", &req->pos );
2827 dump_varargs_bytes( ", data=", cur_size );
2830 static void dump_write_reply( const struct write_reply *req )
2832 fprintf( stderr, " wait=%04x", req->wait );
2833 fprintf( stderr, ", options=%08x", req->options );
2834 fprintf( stderr, ", size=%u", req->size );
2837 static void dump_ioctl_request( const struct ioctl_request *req )
2839 dump_ioctl_code( " code=", &req->code );
2840 dump_async_data( ", async=", &req->async );
2841 fprintf( stderr, ", blocking=%d", req->blocking );
2842 dump_varargs_bytes( ", in_data=", cur_size );
2845 static void dump_ioctl_reply( const struct ioctl_reply *req )
2847 fprintf( stderr, " wait=%04x", req->wait );
2848 fprintf( stderr, ", options=%08x", req->options );
2849 dump_varargs_bytes( ", out_data=", cur_size );
2852 static void dump_set_irp_result_request( const struct set_irp_result_request *req )
2854 fprintf( stderr, " handle=%04x", req->handle );
2855 fprintf( stderr, ", status=%08x", req->status );
2856 fprintf( stderr, ", size=%u", req->size );
2857 dump_uint64( ", file_ptr=", &req->file_ptr );
2858 dump_varargs_bytes( ", data=", cur_size );
2861 static void dump_get_irp_result_request( const struct get_irp_result_request *req )
2863 fprintf( stderr, " handle=%04x", req->handle );
2864 dump_uint64( ", user_arg=", &req->user_arg );
2867 static void dump_get_irp_result_reply( const struct get_irp_result_reply *req )
2869 fprintf( stderr, " size=%u", req->size );
2870 dump_varargs_bytes( ", out_data=", cur_size );
2873 static void dump_create_named_pipe_request( const struct create_named_pipe_request *req )
2875 fprintf( stderr, " access=%08x", req->access );
2876 fprintf( stderr, ", options=%08x", req->options );
2877 fprintf( stderr, ", sharing=%08x", req->sharing );
2878 fprintf( stderr, ", maxinstances=%08x", req->maxinstances );
2879 fprintf( stderr, ", outsize=%08x", req->outsize );
2880 fprintf( stderr, ", insize=%08x", req->insize );
2881 dump_timeout( ", timeout=", &req->timeout );
2882 fprintf( stderr, ", flags=%08x", req->flags );
2883 dump_varargs_object_attributes( ", objattr=", cur_size );
2886 static void dump_create_named_pipe_reply( const struct create_named_pipe_reply *req )
2888 fprintf( stderr, " handle=%04x", req->handle );
2891 static void dump_get_named_pipe_info_request( const struct get_named_pipe_info_request *req )
2893 fprintf( stderr, " handle=%04x", req->handle );
2896 static void dump_get_named_pipe_info_reply( const struct get_named_pipe_info_reply *req )
2898 fprintf( stderr, " flags=%08x", req->flags );
2899 fprintf( stderr, ", sharing=%08x", req->sharing );
2900 fprintf( stderr, ", maxinstances=%08x", req->maxinstances );
2901 fprintf( stderr, ", instances=%08x", req->instances );
2902 fprintf( stderr, ", outsize=%08x", req->outsize );
2903 fprintf( stderr, ", insize=%08x", req->insize );
2906 static void dump_set_named_pipe_info_request( const struct set_named_pipe_info_request *req )
2908 fprintf( stderr, " handle=%04x", req->handle );
2909 fprintf( stderr, ", flags=%08x", req->flags );
2912 static void dump_create_window_request( const struct create_window_request *req )
2914 fprintf( stderr, " parent=%08x", req->parent );
2915 fprintf( stderr, ", owner=%08x", req->owner );
2916 fprintf( stderr, ", atom=%04x", req->atom );
2917 dump_uint64( ", instance=", &req->instance );
2918 dump_varargs_unicode_str( ", class=", cur_size );
2921 static void dump_create_window_reply( const struct create_window_reply *req )
2923 fprintf( stderr, " handle=%08x", req->handle );
2924 fprintf( stderr, ", parent=%08x", req->parent );
2925 fprintf( stderr, ", owner=%08x", req->owner );
2926 fprintf( stderr, ", extra=%d", req->extra );
2927 dump_uint64( ", class_ptr=", &req->class_ptr );
2930 static void dump_destroy_window_request( const struct destroy_window_request *req )
2932 fprintf( stderr, " handle=%08x", req->handle );
2935 static void dump_get_desktop_window_request( const struct get_desktop_window_request *req )
2937 fprintf( stderr, " force=%d", req->force );
2940 static void dump_get_desktop_window_reply( const struct get_desktop_window_reply *req )
2942 fprintf( stderr, " top_window=%08x", req->top_window );
2943 fprintf( stderr, ", msg_window=%08x", req->msg_window );
2946 static void dump_set_window_owner_request( const struct set_window_owner_request *req )
2948 fprintf( stderr, " handle=%08x", req->handle );
2949 fprintf( stderr, ", owner=%08x", req->owner );
2952 static void dump_set_window_owner_reply( const struct set_window_owner_reply *req )
2954 fprintf( stderr, " full_owner=%08x", req->full_owner );
2955 fprintf( stderr, ", prev_owner=%08x", req->prev_owner );
2958 static void dump_get_window_info_request( const struct get_window_info_request *req )
2960 fprintf( stderr, " handle=%08x", req->handle );
2963 static void dump_get_window_info_reply( const struct get_window_info_reply *req )
2965 fprintf( stderr, " full_handle=%08x", req->full_handle );
2966 fprintf( stderr, ", last_active=%08x", req->last_active );
2967 fprintf( stderr, ", pid=%04x", req->pid );
2968 fprintf( stderr, ", tid=%04x", req->tid );
2969 fprintf( stderr, ", atom=%04x", req->atom );
2970 fprintf( stderr, ", is_unicode=%d", req->is_unicode );
2973 static void dump_set_window_info_request( const struct set_window_info_request *req )
2975 fprintf( stderr, " flags=%04x", req->flags );
2976 fprintf( stderr, ", is_unicode=%d", req->is_unicode );
2977 fprintf( stderr, ", handle=%08x", req->handle );
2978 fprintf( stderr, ", style=%08x", req->style );
2979 fprintf( stderr, ", ex_style=%08x", req->ex_style );
2980 fprintf( stderr, ", id=%08x", req->id );
2981 dump_uint64( ", instance=", &req->instance );
2982 dump_uint64( ", user_data=", &req->user_data );
2983 fprintf( stderr, ", extra_offset=%d", req->extra_offset );
2984 fprintf( stderr, ", extra_size=%u", req->extra_size );
2985 dump_uint64( ", extra_value=", &req->extra_value );
2988 static void dump_set_window_info_reply( const struct set_window_info_reply *req )
2990 fprintf( stderr, " old_style=%08x", req->old_style );
2991 fprintf( stderr, ", old_ex_style=%08x", req->old_ex_style );
2992 dump_uint64( ", old_instance=", &req->old_instance );
2993 dump_uint64( ", old_user_data=", &req->old_user_data );
2994 dump_uint64( ", old_extra_value=", &req->old_extra_value );
2995 fprintf( stderr, ", old_id=%08x", req->old_id );
2998 static void dump_set_parent_request( const struct set_parent_request *req )
3000 fprintf( stderr, " handle=%08x", req->handle );
3001 fprintf( stderr, ", parent=%08x", req->parent );
3004 static void dump_set_parent_reply( const struct set_parent_reply *req )
3006 fprintf( stderr, " old_parent=%08x", req->old_parent );
3007 fprintf( stderr, ", full_parent=%08x", req->full_parent );
3010 static void dump_get_window_parents_request( const struct get_window_parents_request *req )
3012 fprintf( stderr, " handle=%08x", req->handle );
3015 static void dump_get_window_parents_reply( const struct get_window_parents_reply *req )
3017 fprintf( stderr, " count=%d", req->count );
3018 dump_varargs_user_handles( ", parents=", cur_size );
3021 static void dump_get_window_children_request( const struct get_window_children_request *req )
3023 fprintf( stderr, " desktop=%04x", req->desktop );
3024 fprintf( stderr, ", parent=%08x", req->parent );
3025 fprintf( stderr, ", atom=%04x", req->atom );
3026 fprintf( stderr, ", tid=%04x", req->tid );
3027 dump_varargs_unicode_str( ", class=", cur_size );
3030 static void dump_get_window_children_reply( const struct get_window_children_reply *req )
3032 fprintf( stderr, " count=%d", req->count );
3033 dump_varargs_user_handles( ", children=", cur_size );
3036 static void dump_get_window_children_from_point_request( const struct get_window_children_from_point_request *req )
3038 fprintf( stderr, " parent=%08x", req->parent );
3039 fprintf( stderr, ", x=%d", req->x );
3040 fprintf( stderr, ", y=%d", req->y );
3043 static void dump_get_window_children_from_point_reply( const struct get_window_children_from_point_reply *req )
3045 fprintf( stderr, " count=%d", req->count );
3046 dump_varargs_user_handles( ", children=", cur_size );
3049 static void dump_get_window_tree_request( const struct get_window_tree_request *req )
3051 fprintf( stderr, " handle=%08x", req->handle );
3054 static void dump_get_window_tree_reply( const struct get_window_tree_reply *req )
3056 fprintf( stderr, " parent=%08x", req->parent );
3057 fprintf( stderr, ", owner=%08x", req->owner );
3058 fprintf( stderr, ", next_sibling=%08x", req->next_sibling );
3059 fprintf( stderr, ", prev_sibling=%08x", req->prev_sibling );
3060 fprintf( stderr, ", first_sibling=%08x", req->first_sibling );
3061 fprintf( stderr, ", last_sibling=%08x", req->last_sibling );
3062 fprintf( stderr, ", first_child=%08x", req->first_child );
3063 fprintf( stderr, ", last_child=%08x", req->last_child );
3066 static void dump_set_window_pos_request( const struct set_window_pos_request *req )
3068 fprintf( stderr, " swp_flags=%04x", req->swp_flags );
3069 fprintf( stderr, ", paint_flags=%04x", req->paint_flags );
3070 fprintf( stderr, ", handle=%08x", req->handle );
3071 fprintf( stderr, ", previous=%08x", req->previous );
3072 dump_rectangle( ", window=", &req->window );
3073 dump_rectangle( ", client=", &req->client );
3074 dump_varargs_rectangles( ", valid=", cur_size );
3077 static void dump_set_window_pos_reply( const struct set_window_pos_reply *req )
3079 fprintf( stderr, " new_style=%08x", req->new_style );
3080 fprintf( stderr, ", new_ex_style=%08x", req->new_ex_style );
3081 fprintf( stderr, ", surface_win=%08x", req->surface_win );
3084 static void dump_get_window_rectangles_request( const struct get_window_rectangles_request *req )
3086 fprintf( stderr, " handle=%08x", req->handle );
3087 fprintf( stderr, ", relative=%d", req->relative );
3090 static void dump_get_window_rectangles_reply( const struct get_window_rectangles_reply *req )
3092 dump_rectangle( " window=", &req->window );
3093 dump_rectangle( ", visible=", &req->visible );
3094 dump_rectangle( ", client=", &req->client );
3097 static void dump_get_window_text_request( const struct get_window_text_request *req )
3099 fprintf( stderr, " handle=%08x", req->handle );
3102 static void dump_get_window_text_reply( const struct get_window_text_reply *req )
3104 dump_varargs_unicode_str( " text=", cur_size );
3107 static void dump_set_window_text_request( const struct set_window_text_request *req )
3109 fprintf( stderr, " handle=%08x", req->handle );
3110 dump_varargs_unicode_str( ", text=", cur_size );
3113 static void dump_get_windows_offset_request( const struct get_windows_offset_request *req )
3115 fprintf( stderr, " from=%08x", req->from );
3116 fprintf( stderr, ", to=%08x", req->to );
3119 static void dump_get_windows_offset_reply( const struct get_windows_offset_reply *req )
3121 fprintf( stderr, " x=%d", req->x );
3122 fprintf( stderr, ", y=%d", req->y );
3123 fprintf( stderr, ", mirror=%d", req->mirror );
3126 static void dump_get_visible_region_request( const struct get_visible_region_request *req )
3128 fprintf( stderr, " window=%08x", req->window );
3129 fprintf( stderr, ", flags=%08x", req->flags );
3132 static void dump_get_visible_region_reply( const struct get_visible_region_reply *req )
3134 fprintf( stderr, " top_win=%08x", req->top_win );
3135 dump_rectangle( ", top_rect=", &req->top_rect );
3136 dump_rectangle( ", win_rect=", &req->win_rect );
3137 fprintf( stderr, ", paint_flags=%08x", req->paint_flags );
3138 fprintf( stderr, ", total_size=%u", req->total_size );
3139 dump_varargs_rectangles( ", region=", cur_size );
3142 static void dump_get_surface_region_request( const struct get_surface_region_request *req )
3144 fprintf( stderr, " window=%08x", req->window );
3147 static void dump_get_surface_region_reply( const struct get_surface_region_reply *req )
3149 dump_rectangle( " visible_rect=", &req->visible_rect );
3150 fprintf( stderr, ", total_size=%u", req->total_size );
3151 dump_varargs_rectangles( ", region=", cur_size );
3154 static void dump_get_window_region_request( const struct get_window_region_request *req )
3156 fprintf( stderr, " window=%08x", req->window );
3159 static void dump_get_window_region_reply( const struct get_window_region_reply *req )
3161 fprintf( stderr, " total_size=%u", req->total_size );
3162 dump_varargs_rectangles( ", region=", cur_size );
3165 static void dump_set_window_region_request( const struct set_window_region_request *req )
3167 fprintf( stderr, " window=%08x", req->window );
3168 fprintf( stderr, ", redraw=%d", req->redraw );
3169 dump_varargs_rectangles( ", region=", cur_size );
3172 static void dump_get_update_region_request( const struct get_update_region_request *req )
3174 fprintf( stderr, " window=%08x", req->window );
3175 fprintf( stderr, ", from_child=%08x", req->from_child );
3176 fprintf( stderr, ", flags=%08x", req->flags );
3179 static void dump_get_update_region_reply( const struct get_update_region_reply *req )
3181 fprintf( stderr, " child=%08x", req->child );
3182 fprintf( stderr, ", flags=%08x", req->flags );
3183 fprintf( stderr, ", total_size=%u", req->total_size );
3184 dump_varargs_rectangles( ", region=", cur_size );
3187 static void dump_update_window_zorder_request( const struct update_window_zorder_request *req )
3189 fprintf( stderr, " window=%08x", req->window );
3190 dump_rectangle( ", rect=", &req->rect );
3193 static void dump_redraw_window_request( const struct redraw_window_request *req )
3195 fprintf( stderr, " window=%08x", req->window );
3196 fprintf( stderr, ", flags=%08x", req->flags );
3197 dump_varargs_rectangles( ", region=", cur_size );
3200 static void dump_set_window_property_request( const struct set_window_property_request *req )
3202 fprintf( stderr, " window=%08x", req->window );
3203 dump_uint64( ", data=", &req->data );
3204 fprintf( stderr, ", atom=%04x", req->atom );
3205 dump_varargs_unicode_str( ", name=", cur_size );
3208 static void dump_remove_window_property_request( const struct remove_window_property_request *req )
3210 fprintf( stderr, " window=%08x", req->window );
3211 fprintf( stderr, ", atom=%04x", req->atom );
3212 dump_varargs_unicode_str( ", name=", cur_size );
3215 static void dump_remove_window_property_reply( const struct remove_window_property_reply *req )
3217 dump_uint64( " data=", &req->data );
3220 static void dump_get_window_property_request( const struct get_window_property_request *req )
3222 fprintf( stderr, " window=%08x", req->window );
3223 fprintf( stderr, ", atom=%04x", req->atom );
3224 dump_varargs_unicode_str( ", name=", cur_size );
3227 static void dump_get_window_property_reply( const struct get_window_property_reply *req )
3229 dump_uint64( " data=", &req->data );
3232 static void dump_get_window_properties_request( const struct get_window_properties_request *req )
3234 fprintf( stderr, " window=%08x", req->window );
3237 static void dump_get_window_properties_reply( const struct get_window_properties_reply *req )
3239 fprintf( stderr, " total=%d", req->total );
3240 dump_varargs_properties( ", props=", cur_size );
3243 static void dump_create_winstation_request( const struct create_winstation_request *req )
3245 fprintf( stderr, " flags=%08x", req->flags );
3246 fprintf( stderr, ", access=%08x", req->access );
3247 fprintf( stderr, ", attributes=%08x", req->attributes );
3248 fprintf( stderr, ", rootdir=%04x", req->rootdir );
3249 dump_varargs_unicode_str( ", name=", cur_size );
3252 static void dump_create_winstation_reply( const struct create_winstation_reply *req )
3254 fprintf( stderr, " handle=%04x", req->handle );
3257 static void dump_open_winstation_request( const struct open_winstation_request *req )
3259 fprintf( stderr, " access=%08x", req->access );
3260 fprintf( stderr, ", attributes=%08x", req->attributes );
3261 fprintf( stderr, ", rootdir=%04x", req->rootdir );
3262 dump_varargs_unicode_str( ", name=", cur_size );
3265 static void dump_open_winstation_reply( const struct open_winstation_reply *req )
3267 fprintf( stderr, " handle=%04x", req->handle );
3270 static void dump_close_winstation_request( const struct close_winstation_request *req )
3272 fprintf( stderr, " handle=%04x", req->handle );
3275 static void dump_get_process_winstation_request( const struct get_process_winstation_request *req )
3279 static void dump_get_process_winstation_reply( const struct get_process_winstation_reply *req )
3281 fprintf( stderr, " handle=%04x", req->handle );
3284 static void dump_set_process_winstation_request( const struct set_process_winstation_request *req )
3286 fprintf( stderr, " handle=%04x", req->handle );
3289 static void dump_enum_winstation_request( const struct enum_winstation_request *req )
3291 fprintf( stderr, " index=%08x", req->index );
3294 static void dump_enum_winstation_reply( const struct enum_winstation_reply *req )
3296 fprintf( stderr, " next=%08x", req->next );
3297 dump_varargs_unicode_str( ", name=", cur_size );
3300 static void dump_create_desktop_request( const struct create_desktop_request *req )
3302 fprintf( stderr, " flags=%08x", req->flags );
3303 fprintf( stderr, ", access=%08x", req->access );
3304 fprintf( stderr, ", attributes=%08x", req->attributes );
3305 dump_varargs_unicode_str( ", name=", cur_size );
3308 static void dump_create_desktop_reply( const struct create_desktop_reply *req )
3310 fprintf( stderr, " handle=%04x", req->handle );
3313 static void dump_open_desktop_request( const struct open_desktop_request *req )
3315 fprintf( stderr, " winsta=%04x", req->winsta );
3316 fprintf( stderr, ", flags=%08x", req->flags );
3317 fprintf( stderr, ", access=%08x", req->access );
3318 fprintf( stderr, ", attributes=%08x", req->attributes );
3319 dump_varargs_unicode_str( ", name=", cur_size );
3322 static void dump_open_desktop_reply( const struct open_desktop_reply *req )
3324 fprintf( stderr, " handle=%04x", req->handle );
3327 static void dump_open_input_desktop_request( const struct open_input_desktop_request *req )
3329 fprintf( stderr, " flags=%08x", req->flags );
3330 fprintf( stderr, ", access=%08x", req->access );
3331 fprintf( stderr, ", attributes=%08x", req->attributes );
3334 static void dump_open_input_desktop_reply( const struct open_input_desktop_reply *req )
3336 fprintf( stderr, " handle=%04x", req->handle );
3339 static void dump_close_desktop_request( const struct close_desktop_request *req )
3341 fprintf( stderr, " handle=%04x", req->handle );
3344 static void dump_get_thread_desktop_request( const struct get_thread_desktop_request *req )
3346 fprintf( stderr, " tid=%04x", req->tid );
3349 static void dump_get_thread_desktop_reply( const struct get_thread_desktop_reply *req )
3351 fprintf( stderr, " handle=%04x", req->handle );
3354 static void dump_set_thread_desktop_request( const struct set_thread_desktop_request *req )
3356 fprintf( stderr, " handle=%04x", req->handle );
3359 static void dump_enum_desktop_request( const struct enum_desktop_request *req )
3361 fprintf( stderr, " winstation=%04x", req->winstation );
3362 fprintf( stderr, ", index=%08x", req->index );
3365 static void dump_enum_desktop_reply( const struct enum_desktop_reply *req )
3367 fprintf( stderr, " next=%08x", req->next );
3368 dump_varargs_unicode_str( ", name=", cur_size );
3371 static void dump_set_user_object_info_request( const struct set_user_object_info_request *req )
3373 fprintf( stderr, " handle=%04x", req->handle );
3374 fprintf( stderr, ", flags=%08x", req->flags );
3375 fprintf( stderr, ", obj_flags=%08x", req->obj_flags );
3378 static void dump_set_user_object_info_reply( const struct set_user_object_info_reply *req )
3380 fprintf( stderr, " is_desktop=%d", req->is_desktop );
3381 fprintf( stderr, ", old_obj_flags=%08x", req->old_obj_flags );
3382 dump_varargs_unicode_str( ", name=", cur_size );
3385 static void dump_register_hotkey_request( const struct register_hotkey_request *req )
3387 fprintf( stderr, " window=%08x", req->window );
3388 fprintf( stderr, ", id=%d", req->id );
3389 fprintf( stderr, ", flags=%08x", req->flags );
3390 fprintf( stderr, ", vkey=%08x", req->vkey );
3393 static void dump_register_hotkey_reply( const struct register_hotkey_reply *req )
3395 fprintf( stderr, " replaced=%d", req->replaced );
3396 fprintf( stderr, ", flags=%08x", req->flags );
3397 fprintf( stderr, ", vkey=%08x", req->vkey );
3400 static void dump_unregister_hotkey_request( const struct unregister_hotkey_request *req )
3402 fprintf( stderr, " window=%08x", req->window );
3403 fprintf( stderr, ", id=%d", req->id );
3406 static void dump_unregister_hotkey_reply( const struct unregister_hotkey_reply *req )
3408 fprintf( stderr, " flags=%08x", req->flags );
3409 fprintf( stderr, ", vkey=%08x", req->vkey );
3412 static void dump_attach_thread_input_request( const struct attach_thread_input_request *req )
3414 fprintf( stderr, " tid_from=%04x", req->tid_from );
3415 fprintf( stderr, ", tid_to=%04x", req->tid_to );
3416 fprintf( stderr, ", attach=%d", req->attach );
3419 static void dump_get_thread_input_request( const struct get_thread_input_request *req )
3421 fprintf( stderr, " tid=%04x", req->tid );
3424 static void dump_get_thread_input_reply( const struct get_thread_input_reply *req )
3426 fprintf( stderr, " focus=%08x", req->focus );
3427 fprintf( stderr, ", capture=%08x", req->capture );
3428 fprintf( stderr, ", active=%08x", req->active );
3429 fprintf( stderr, ", foreground=%08x", req->foreground );
3430 fprintf( stderr, ", menu_owner=%08x", req->menu_owner );
3431 fprintf( stderr, ", move_size=%08x", req->move_size );
3432 fprintf( stderr, ", caret=%08x", req->caret );
3433 fprintf( stderr, ", cursor=%08x", req->cursor );
3434 fprintf( stderr, ", show_count=%d", req->show_count );
3435 dump_rectangle( ", rect=", &req->rect );
3438 static void dump_get_last_input_time_request( const struct get_last_input_time_request *req )
3442 static void dump_get_last_input_time_reply( const struct get_last_input_time_reply *req )
3444 fprintf( stderr, " time=%08x", req->time );
3447 static void dump_get_key_state_request( const struct get_key_state_request *req )
3449 fprintf( stderr, " tid=%04x", req->tid );
3450 fprintf( stderr, ", key=%d", req->key );
3453 static void dump_get_key_state_reply( const struct get_key_state_reply *req )
3455 fprintf( stderr, " state=%02x", req->state );
3456 dump_varargs_bytes( ", keystate=", cur_size );
3459 static void dump_set_key_state_request( const struct set_key_state_request *req )
3461 fprintf( stderr, " tid=%04x", req->tid );
3462 fprintf( stderr, ", async=%d", req->async );
3463 dump_varargs_bytes( ", keystate=", cur_size );
3466 static void dump_set_foreground_window_request( const struct set_foreground_window_request *req )
3468 fprintf( stderr, " handle=%08x", req->handle );
3471 static void dump_set_foreground_window_reply( const struct set_foreground_window_reply *req )
3473 fprintf( stderr, " previous=%08x", req->previous );
3474 fprintf( stderr, ", send_msg_old=%d", req->send_msg_old );
3475 fprintf( stderr, ", send_msg_new=%d", req->send_msg_new );
3478 static void dump_set_focus_window_request( const struct set_focus_window_request *req )
3480 fprintf( stderr, " handle=%08x", req->handle );
3483 static void dump_set_focus_window_reply( const struct set_focus_window_reply *req )
3485 fprintf( stderr, " previous=%08x", req->previous );
3488 static void dump_set_active_window_request( const struct set_active_window_request *req )
3490 fprintf( stderr, " handle=%08x", req->handle );
3493 static void dump_set_active_window_reply( const struct set_active_window_reply *req )
3495 fprintf( stderr, " previous=%08x", req->previous );
3498 static void dump_set_capture_window_request( const struct set_capture_window_request *req )
3500 fprintf( stderr, " handle=%08x", req->handle );
3501 fprintf( stderr, ", flags=%08x", req->flags );
3504 static void dump_set_capture_window_reply( const struct set_capture_window_reply *req )
3506 fprintf( stderr, " previous=%08x", req->previous );
3507 fprintf( stderr, ", full_handle=%08x", req->full_handle );
3510 static void dump_set_caret_window_request( const struct set_caret_window_request *req )
3512 fprintf( stderr, " handle=%08x", req->handle );
3513 fprintf( stderr, ", width=%d", req->width );
3514 fprintf( stderr, ", height=%d", req->height );
3517 static void dump_set_caret_window_reply( const struct set_caret_window_reply *req )
3519 fprintf( stderr, " previous=%08x", req->previous );
3520 dump_rectangle( ", old_rect=", &req->old_rect );
3521 fprintf( stderr, ", old_hide=%d", req->old_hide );
3522 fprintf( stderr, ", old_state=%d", req->old_state );
3525 static void dump_set_caret_info_request( const struct set_caret_info_request *req )
3527 fprintf( stderr, " flags=%08x", req->flags );
3528 fprintf( stderr, ", handle=%08x", req->handle );
3529 fprintf( stderr, ", x=%d", req->x );
3530 fprintf( stderr, ", y=%d", req->y );
3531 fprintf( stderr, ", hide=%d", req->hide );
3532 fprintf( stderr, ", state=%d", req->state );
3535 static void dump_set_caret_info_reply( const struct set_caret_info_reply *req )
3537 fprintf( stderr, " full_handle=%08x", req->full_handle );
3538 dump_rectangle( ", old_rect=", &req->old_rect );
3539 fprintf( stderr, ", old_hide=%d", req->old_hide );
3540 fprintf( stderr, ", old_state=%d", req->old_state );
3543 static void dump_set_hook_request( const struct set_hook_request *req )
3545 fprintf( stderr, " id=%d", req->id );
3546 fprintf( stderr, ", pid=%04x", req->pid );
3547 fprintf( stderr, ", tid=%04x", req->tid );
3548 fprintf( stderr, ", event_min=%d", req->event_min );
3549 fprintf( stderr, ", event_max=%d", req->event_max );
3550 dump_uint64( ", proc=", &req->proc );
3551 fprintf( stderr, ", flags=%d", req->flags );
3552 fprintf( stderr, ", unicode=%d", req->unicode );
3553 dump_varargs_unicode_str( ", module=", cur_size );
3556 static void dump_set_hook_reply( const struct set_hook_reply *req )
3558 fprintf( stderr, " handle=%08x", req->handle );
3559 fprintf( stderr, ", active_hooks=%08x", req->active_hooks );
3562 static void dump_remove_hook_request( const struct remove_hook_request *req )
3564 fprintf( stderr, " handle=%08x", req->handle );
3565 dump_uint64( ", proc=", &req->proc );
3566 fprintf( stderr, ", id=%d", req->id );
3569 static void dump_remove_hook_reply( const struct remove_hook_reply *req )
3571 fprintf( stderr, " active_hooks=%08x", req->active_hooks );
3574 static void dump_start_hook_chain_request( const struct start_hook_chain_request *req )
3576 fprintf( stderr, " id=%d", req->id );
3577 fprintf( stderr, ", event=%d", req->event );
3578 fprintf( stderr, ", window=%08x", req->window );
3579 fprintf( stderr, ", object_id=%d", req->object_id );
3580 fprintf( stderr, ", child_id=%d", req->child_id );
3583 static void dump_start_hook_chain_reply( const struct start_hook_chain_reply *req )
3585 fprintf( stderr, " handle=%08x", req->handle );
3586 fprintf( stderr, ", pid=%04x", req->pid );
3587 fprintf( stderr, ", tid=%04x", req->tid );
3588 fprintf( stderr, ", unicode=%d", req->unicode );
3589 dump_uint64( ", proc=", &req->proc );
3590 fprintf( stderr, ", active_hooks=%08x", req->active_hooks );
3591 dump_varargs_unicode_str( ", module=", cur_size );
3594 static void dump_finish_hook_chain_request( const struct finish_hook_chain_request *req )
3596 fprintf( stderr, " id=%d", req->id );
3599 static void dump_get_hook_info_request( const struct get_hook_info_request *req )
3601 fprintf( stderr, " handle=%08x", req->handle );
3602 fprintf( stderr, ", get_next=%d", req->get_next );
3603 fprintf( stderr, ", event=%d", req->event );
3604 fprintf( stderr, ", window=%08x", req->window );
3605 fprintf( stderr, ", object_id=%d", req->object_id );
3606 fprintf( stderr, ", child_id=%d", req->child_id );
3609 static void dump_get_hook_info_reply( const struct get_hook_info_reply *req )
3611 fprintf( stderr, " handle=%08x", req->handle );
3612 fprintf( stderr, ", id=%d", req->id );
3613 fprintf( stderr, ", pid=%04x", req->pid );
3614 fprintf( stderr, ", tid=%04x", req->tid );
3615 dump_uint64( ", proc=", &req->proc );
3616 fprintf( stderr, ", unicode=%d", req->unicode );
3617 dump_varargs_unicode_str( ", module=", cur_size );
3620 static void dump_create_class_request( const struct create_class_request *req )
3622 fprintf( stderr, " local=%d", req->local );
3623 fprintf( stderr, ", atom=%04x", req->atom );
3624 fprintf( stderr, ", style=%08x", req->style );
3625 dump_uint64( ", instance=", &req->instance );
3626 fprintf( stderr, ", extra=%d", req->extra );
3627 fprintf( stderr, ", win_extra=%d", req->win_extra );
3628 dump_uint64( ", client_ptr=", &req->client_ptr );
3629 dump_varargs_unicode_str( ", name=", cur_size );
3632 static void dump_create_class_reply( const struct create_class_reply *req )
3634 fprintf( stderr, " atom=%04x", req->atom );
3637 static void dump_destroy_class_request( const struct destroy_class_request *req )
3639 fprintf( stderr, " atom=%04x", req->atom );
3640 dump_uint64( ", instance=", &req->instance );
3641 dump_varargs_unicode_str( ", name=", cur_size );
3644 static void dump_destroy_class_reply( const struct destroy_class_reply *req )
3646 dump_uint64( " client_ptr=", &req->client_ptr );
3649 static void dump_set_class_info_request( const struct set_class_info_request *req )
3651 fprintf( stderr, " window=%08x", req->window );
3652 fprintf( stderr, ", flags=%08x", req->flags );
3653 fprintf( stderr, ", atom=%04x", req->atom );
3654 fprintf( stderr, ", style=%08x", req->style );
3655 fprintf( stderr, ", win_extra=%d", req->win_extra );
3656 dump_uint64( ", instance=", &req->instance );
3657 fprintf( stderr, ", extra_offset=%d", req->extra_offset );
3658 fprintf( stderr, ", extra_size=%u", req->extra_size );
3659 dump_uint64( ", extra_value=", &req->extra_value );
3662 static void dump_set_class_info_reply( const struct set_class_info_reply *req )
3664 fprintf( stderr, " old_atom=%04x", req->old_atom );
3665 fprintf( stderr, ", old_style=%08x", req->old_style );
3666 fprintf( stderr, ", old_extra=%d", req->old_extra );
3667 fprintf( stderr, ", old_win_extra=%d", req->old_win_extra );
3668 dump_uint64( ", old_instance=", &req->old_instance );
3669 dump_uint64( ", old_extra_value=", &req->old_extra_value );
3672 static void dump_set_clipboard_info_request( const struct set_clipboard_info_request *req )
3674 fprintf( stderr, " flags=%08x", req->flags );
3675 fprintf( stderr, ", clipboard=%08x", req->clipboard );
3676 fprintf( stderr, ", owner=%08x", req->owner );
3677 fprintf( stderr, ", viewer=%08x", req->viewer );
3678 fprintf( stderr, ", seqno=%08x", req->seqno );
3681 static void dump_set_clipboard_info_reply( const struct set_clipboard_info_reply *req )
3683 fprintf( stderr, " flags=%08x", req->flags );
3684 fprintf( stderr, ", old_clipboard=%08x", req->old_clipboard );
3685 fprintf( stderr, ", old_owner=%08x", req->old_owner );
3686 fprintf( stderr, ", old_viewer=%08x", req->old_viewer );
3687 fprintf( stderr, ", seqno=%08x", req->seqno );
3690 static void dump_empty_clipboard_request( const struct empty_clipboard_request *req )
3694 static void dump_open_token_request( const struct open_token_request *req )
3696 fprintf( stderr, " handle=%04x", req->handle );
3697 fprintf( stderr, ", access=%08x", req->access );
3698 fprintf( stderr, ", attributes=%08x", req->attributes );
3699 fprintf( stderr, ", flags=%08x", req->flags );
3702 static void dump_open_token_reply( const struct open_token_reply *req )
3704 fprintf( stderr, " token=%04x", req->token );
3707 static void dump_set_global_windows_request( const struct set_global_windows_request *req )
3709 fprintf( stderr, " flags=%08x", req->flags );
3710 fprintf( stderr, ", shell_window=%08x", req->shell_window );
3711 fprintf( stderr, ", shell_listview=%08x", req->shell_listview );
3712 fprintf( stderr, ", progman_window=%08x", req->progman_window );
3713 fprintf( stderr, ", taskman_window=%08x", req->taskman_window );
3716 static void dump_set_global_windows_reply( const struct set_global_windows_reply *req )
3718 fprintf( stderr, " old_shell_window=%08x", req->old_shell_window );
3719 fprintf( stderr, ", old_shell_listview=%08x", req->old_shell_listview );
3720 fprintf( stderr, ", old_progman_window=%08x", req->old_progman_window );
3721 fprintf( stderr, ", old_taskman_window=%08x", req->old_taskman_window );
3724 static void dump_adjust_token_privileges_request( const struct adjust_token_privileges_request *req )
3726 fprintf( stderr, " handle=%04x", req->handle );
3727 fprintf( stderr, ", disable_all=%d", req->disable_all );
3728 fprintf( stderr, ", get_modified_state=%d", req->get_modified_state );
3729 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size );
3732 static void dump_adjust_token_privileges_reply( const struct adjust_token_privileges_reply *req )
3734 fprintf( stderr, " len=%08x", req->len );
3735 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size );
3738 static void dump_get_token_privileges_request( const struct get_token_privileges_request *req )
3740 fprintf( stderr, " handle=%04x", req->handle );
3743 static void dump_get_token_privileges_reply( const struct get_token_privileges_reply *req )
3745 fprintf( stderr, " len=%08x", req->len );
3746 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size );
3749 static void dump_check_token_privileges_request( const struct check_token_privileges_request *req )
3751 fprintf( stderr, " handle=%04x", req->handle );
3752 fprintf( stderr, ", all_required=%d", req->all_required );
3753 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size );
3756 static void dump_check_token_privileges_reply( const struct check_token_privileges_reply *req )
3758 fprintf( stderr, " has_privileges=%d", req->has_privileges );
3759 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size );
3762 static void dump_duplicate_token_request( const struct duplicate_token_request *req )
3764 fprintf( stderr, " handle=%04x", req->handle );
3765 fprintf( stderr, ", access=%08x", req->access );
3766 fprintf( stderr, ", attributes=%08x", req->attributes );
3767 fprintf( stderr, ", primary=%d", req->primary );
3768 fprintf( stderr, ", impersonation_level=%d", req->impersonation_level );
3771 static void dump_duplicate_token_reply( const struct duplicate_token_reply *req )
3773 fprintf( stderr, " new_handle=%04x", req->new_handle );
3776 static void dump_access_check_request( const struct access_check_request *req )
3778 fprintf( stderr, " handle=%04x", req->handle );
3779 fprintf( stderr, ", desired_access=%08x", req->desired_access );
3780 fprintf( stderr, ", mapping_read=%08x", req->mapping_read );
3781 fprintf( stderr, ", mapping_write=%08x", req->mapping_write );
3782 fprintf( stderr, ", mapping_execute=%08x", req->mapping_execute );
3783 fprintf( stderr, ", mapping_all=%08x", req->mapping_all );
3784 dump_varargs_security_descriptor( ", sd=", cur_size );
3787 static void dump_access_check_reply( const struct access_check_reply *req )
3789 fprintf( stderr, " access_granted=%08x", req->access_granted );
3790 fprintf( stderr, ", access_status=%08x", req->access_status );
3791 fprintf( stderr, ", privileges_len=%08x", req->privileges_len );
3792 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size );
3795 static void dump_get_token_sid_request( const struct get_token_sid_request *req )
3797 fprintf( stderr, " handle=%04x", req->handle );
3798 fprintf( stderr, ", which_sid=%08x", req->which_sid );
3801 static void dump_get_token_sid_reply( const struct get_token_sid_reply *req )
3803 fprintf( stderr, " sid_len=%u", req->sid_len );
3804 dump_varargs_SID( ", sid=", cur_size );
3807 static void dump_get_token_groups_request( const struct get_token_groups_request *req )
3809 fprintf( stderr, " handle=%04x", req->handle );
3812 static void dump_get_token_groups_reply( const struct get_token_groups_reply *req )
3814 fprintf( stderr, " user_len=%u", req->user_len );
3815 dump_varargs_token_groups( ", user=", cur_size );
3818 static void dump_get_token_default_dacl_request( const struct get_token_default_dacl_request *req )
3820 fprintf( stderr, " handle=%04x", req->handle );
3823 static void dump_get_token_default_dacl_reply( const struct get_token_default_dacl_reply *req )
3825 fprintf( stderr, " acl_len=%u", req->acl_len );
3826 dump_varargs_ACL( ", acl=", cur_size );
3829 static void dump_set_token_default_dacl_request( const struct set_token_default_dacl_request *req )
3831 fprintf( stderr, " handle=%04x", req->handle );
3832 dump_varargs_ACL( ", acl=", cur_size );
3835 static void dump_set_security_object_request( const struct set_security_object_request *req )
3837 fprintf( stderr, " handle=%04x", req->handle );
3838 fprintf( stderr, ", security_info=%08x", req->security_info );
3839 dump_varargs_security_descriptor( ", sd=", cur_size );
3842 static void dump_get_security_object_request( const struct get_security_object_request *req )
3844 fprintf( stderr, " handle=%04x", req->handle );
3845 fprintf( stderr, ", security_info=%08x", req->security_info );
3848 static void dump_get_security_object_reply( const struct get_security_object_reply *req )
3850 fprintf( stderr, " sd_len=%08x", req->sd_len );
3851 dump_varargs_security_descriptor( ", sd=", cur_size );
3854 static void dump_get_system_handles_request( const struct get_system_handles_request *req )
3858 static void dump_get_system_handles_reply( const struct get_system_handles_reply *req )
3860 fprintf( stderr, " count=%08x", req->count );
3861 dump_varargs_handle_infos( ", data=", cur_size );
3864 static void dump_create_mailslot_request( const struct create_mailslot_request *req )
3866 fprintf( stderr, " access=%08x", req->access );
3867 dump_timeout( ", read_timeout=", &req->read_timeout );
3868 fprintf( stderr, ", max_msgsize=%08x", req->max_msgsize );
3869 dump_varargs_object_attributes( ", objattr=", cur_size );
3872 static void dump_create_mailslot_reply( const struct create_mailslot_reply *req )
3874 fprintf( stderr, " handle=%04x", req->handle );
3877 static void dump_set_mailslot_info_request( const struct set_mailslot_info_request *req )
3879 fprintf( stderr, " handle=%04x", req->handle );
3880 dump_timeout( ", read_timeout=", &req->read_timeout );
3881 fprintf( stderr, ", flags=%08x", req->flags );
3884 static void dump_set_mailslot_info_reply( const struct set_mailslot_info_reply *req )
3886 dump_timeout( " read_timeout=", &req->read_timeout );
3887 fprintf( stderr, ", max_msgsize=%08x", req->max_msgsize );
3890 static void dump_create_directory_request( const struct create_directory_request *req )
3892 fprintf( stderr, " access=%08x", req->access );
3893 dump_varargs_object_attributes( ", objattr=", cur_size );
3896 static void dump_create_directory_reply( const struct create_directory_reply *req )
3898 fprintf( stderr, " handle=%04x", req->handle );
3901 static void dump_open_directory_request( const struct open_directory_request *req )
3903 fprintf( stderr, " access=%08x", req->access );
3904 fprintf( stderr, ", attributes=%08x", req->attributes );
3905 fprintf( stderr, ", rootdir=%04x", req->rootdir );
3906 dump_varargs_unicode_str( ", directory_name=", cur_size );
3909 static void dump_open_directory_reply( const struct open_directory_reply *req )
3911 fprintf( stderr, " handle=%04x", req->handle );
3914 static void dump_get_directory_entry_request( const struct get_directory_entry_request *req )
3916 fprintf( stderr, " handle=%04x", req->handle );
3917 fprintf( stderr, ", index=%08x", req->index );
3920 static void dump_get_directory_entry_reply( const struct get_directory_entry_reply *req )
3922 fprintf( stderr, " name_len=%u", req->name_len );
3923 dump_varargs_unicode_str( ", name=", min(cur_size,req->name_len) );
3924 dump_varargs_unicode_str( ", type=", cur_size );
3927 static void dump_create_symlink_request( const struct create_symlink_request *req )
3929 fprintf( stderr, " access=%08x", req->access );
3930 dump_varargs_object_attributes( ", objattr=", cur_size );
3931 dump_varargs_unicode_str( ", target_name=", cur_size );
3934 static void dump_create_symlink_reply( const struct create_symlink_reply *req )
3936 fprintf( stderr, " handle=%04x", req->handle );
3939 static void dump_open_symlink_request( const struct open_symlink_request *req )
3941 fprintf( stderr, " access=%08x", req->access );
3942 fprintf( stderr, ", attributes=%08x", req->attributes );
3943 fprintf( stderr, ", rootdir=%04x", req->rootdir );
3944 dump_varargs_unicode_str( ", name=", cur_size );
3947 static void dump_open_symlink_reply( const struct open_symlink_reply *req )
3949 fprintf( stderr, " handle=%04x", req->handle );
3952 static void dump_query_symlink_request( const struct query_symlink_request *req )
3954 fprintf( stderr, " handle=%04x", req->handle );
3957 static void dump_query_symlink_reply( const struct query_symlink_reply *req )
3959 fprintf( stderr, " total=%u", req->total );
3960 dump_varargs_unicode_str( ", target_name=", cur_size );
3963 static void dump_get_object_info_request( const struct get_object_info_request *req )
3965 fprintf( stderr, " handle=%04x", req->handle );
3968 static void dump_get_object_info_reply( const struct get_object_info_reply *req )
3970 fprintf( stderr, " access=%08x", req->access );
3971 fprintf( stderr, ", ref_count=%08x", req->ref_count );
3972 fprintf( stderr, ", handle_count=%08x", req->handle_count );
3973 fprintf( stderr, ", total=%u", req->total );
3974 dump_varargs_unicode_str( ", name=", cur_size );
3977 static void dump_get_object_type_request( const struct get_object_type_request *req )
3979 fprintf( stderr, " handle=%04x", req->handle );
3982 static void dump_get_object_type_reply( const struct get_object_type_reply *req )
3984 fprintf( stderr, " total=%u", req->total );
3985 dump_varargs_unicode_str( ", type=", cur_size );
3988 static void dump_unlink_object_request( const struct unlink_object_request *req )
3990 fprintf( stderr, " handle=%04x", req->handle );
3993 static void dump_get_token_impersonation_level_request( const struct get_token_impersonation_level_request *req )
3995 fprintf( stderr, " handle=%04x", req->handle );
3998 static void dump_get_token_impersonation_level_reply( const struct get_token_impersonation_level_reply *req )
4000 fprintf( stderr, " impersonation_level=%d", req->impersonation_level );
4003 static void dump_allocate_locally_unique_id_request( const struct allocate_locally_unique_id_request *req )
4007 static void dump_allocate_locally_unique_id_reply( const struct allocate_locally_unique_id_reply *req )
4009 dump_luid( " luid=", &req->luid );
4012 static void dump_create_device_manager_request( const struct create_device_manager_request *req )
4014 fprintf( stderr, " access=%08x", req->access );
4015 fprintf( stderr, ", attributes=%08x", req->attributes );
4018 static void dump_create_device_manager_reply( const struct create_device_manager_reply *req )
4020 fprintf( stderr, " handle=%04x", req->handle );
4023 static void dump_create_device_request( const struct create_device_request *req )
4025 fprintf( stderr, " access=%08x", req->access );
4026 fprintf( stderr, ", attributes=%08x", req->attributes );
4027 fprintf( stderr, ", rootdir=%04x", req->rootdir );
4028 dump_uint64( ", user_ptr=", &req->user_ptr );
4029 fprintf( stderr, ", manager=%04x", req->manager );
4030 dump_varargs_unicode_str( ", name=", cur_size );
4033 static void dump_create_device_reply( const struct create_device_reply *req )
4035 fprintf( stderr, " handle=%04x", req->handle );
4038 static void dump_delete_device_request( const struct delete_device_request *req )
4040 fprintf( stderr, " handle=%04x", req->handle );
4043 static void dump_get_next_device_request_request( const struct get_next_device_request_request *req )
4045 fprintf( stderr, " manager=%04x", req->manager );
4046 fprintf( stderr, ", prev=%04x", req->prev );
4047 fprintf( stderr, ", status=%08x", req->status );
4050 static void dump_get_next_device_request_reply( const struct get_next_device_request_reply *req )
4052 dump_irp_params( " params=", &req->params );
4053 fprintf( stderr, ", next=%04x", req->next );
4054 fprintf( stderr, ", client_pid=%04x", req->client_pid );
4055 fprintf( stderr, ", client_tid=%04x", req->client_tid );
4056 fprintf( stderr, ", in_size=%u", req->in_size );
4057 fprintf( stderr, ", out_size=%u", req->out_size );
4058 dump_varargs_bytes( ", next_data=", cur_size );
4061 static void dump_make_process_system_request( const struct make_process_system_request *req )
4065 static void dump_make_process_system_reply( const struct make_process_system_reply *req )
4067 fprintf( stderr, " event=%04x", req->event );
4070 static void dump_get_token_statistics_request( const struct get_token_statistics_request *req )
4072 fprintf( stderr, " handle=%04x", req->handle );
4075 static void dump_get_token_statistics_reply( const struct get_token_statistics_reply *req )
4077 dump_luid( " token_id=", &req->token_id );
4078 dump_luid( ", modified_id=", &req->modified_id );
4079 fprintf( stderr, ", primary=%d", req->primary );
4080 fprintf( stderr, ", impersonation_level=%d", req->impersonation_level );
4081 fprintf( stderr, ", group_count=%d", req->group_count );
4082 fprintf( stderr, ", privilege_count=%d", req->privilege_count );
4085 static void dump_create_completion_request( const struct create_completion_request *req )
4087 fprintf( stderr, " access=%08x", req->access );
4088 fprintf( stderr, ", concurrent=%08x", req->concurrent );
4089 dump_varargs_object_attributes( ", objattr=", cur_size );
4092 static void dump_create_completion_reply( const struct create_completion_reply *req )
4094 fprintf( stderr, " handle=%04x", req->handle );
4097 static void dump_open_completion_request( const struct open_completion_request *req )
4099 fprintf( stderr, " access=%08x", req->access );
4100 fprintf( stderr, ", attributes=%08x", req->attributes );
4101 fprintf( stderr, ", rootdir=%04x", req->rootdir );
4102 dump_varargs_unicode_str( ", filename=", cur_size );
4105 static void dump_open_completion_reply( const struct open_completion_reply *req )
4107 fprintf( stderr, " handle=%04x", req->handle );
4110 static void dump_add_completion_request( const struct add_completion_request *req )
4112 fprintf( stderr, " handle=%04x", req->handle );
4113 dump_uint64( ", ckey=", &req->ckey );
4114 dump_uint64( ", cvalue=", &req->cvalue );
4115 dump_uint64( ", information=", &req->information );
4116 fprintf( stderr, ", status=%08x", req->status );
4119 static void dump_remove_completion_request( const struct remove_completion_request *req )
4121 fprintf( stderr, " handle=%04x", req->handle );
4124 static void dump_remove_completion_reply( const struct remove_completion_reply *req )
4126 dump_uint64( " ckey=", &req->ckey );
4127 dump_uint64( ", cvalue=", &req->cvalue );
4128 dump_uint64( ", information=", &req->information );
4129 fprintf( stderr, ", status=%08x", req->status );
4132 static void dump_query_completion_request( const struct query_completion_request *req )
4134 fprintf( stderr, " handle=%04x", req->handle );
4137 static void dump_query_completion_reply( const struct query_completion_reply *req )
4139 fprintf( stderr, " depth=%08x", req->depth );
4142 static void dump_set_completion_info_request( const struct set_completion_info_request *req )
4144 fprintf( stderr, " handle=%04x", req->handle );
4145 dump_uint64( ", ckey=", &req->ckey );
4146 fprintf( stderr, ", chandle=%04x", req->chandle );
4149 static void dump_add_fd_completion_request( const struct add_fd_completion_request *req )
4151 fprintf( stderr, " handle=%04x", req->handle );
4152 dump_uint64( ", cvalue=", &req->cvalue );
4153 dump_uint64( ", information=", &req->information );
4154 fprintf( stderr, ", status=%08x", req->status );
4157 static void dump_set_fd_disp_info_request( const struct set_fd_disp_info_request *req )
4159 fprintf( stderr, " handle=%04x", req->handle );
4160 fprintf( stderr, ", unlink=%d", req->unlink );
4163 static void dump_set_fd_name_info_request( const struct set_fd_name_info_request *req )
4165 fprintf( stderr, " handle=%04x", req->handle );
4166 fprintf( stderr, ", rootdir=%04x", req->rootdir );
4167 fprintf( stderr, ", link=%d", req->link );
4168 dump_varargs_string( ", filename=", cur_size );
4171 static void dump_get_window_layered_info_request( const struct get_window_layered_info_request *req )
4173 fprintf( stderr, " handle=%08x", req->handle );
4176 static void dump_get_window_layered_info_reply( const struct get_window_layered_info_reply *req )
4178 fprintf( stderr, " color_key=%08x", req->color_key );
4179 fprintf( stderr, ", alpha=%08x", req->alpha );
4180 fprintf( stderr, ", flags=%08x", req->flags );
4183 static void dump_set_window_layered_info_request( const struct set_window_layered_info_request *req )
4185 fprintf( stderr, " handle=%08x", req->handle );
4186 fprintf( stderr, ", color_key=%08x", req->color_key );
4187 fprintf( stderr, ", alpha=%08x", req->alpha );
4188 fprintf( stderr, ", flags=%08x", req->flags );
4191 static void dump_alloc_user_handle_request( const struct alloc_user_handle_request *req )
4195 static void dump_alloc_user_handle_reply( const struct alloc_user_handle_reply *req )
4197 fprintf( stderr, " handle=%08x", req->handle );
4200 static void dump_free_user_handle_request( const struct free_user_handle_request *req )
4202 fprintf( stderr, " handle=%08x", req->handle );
4205 static void dump_set_cursor_request( const struct set_cursor_request *req )
4207 fprintf( stderr, " flags=%08x", req->flags );
4208 fprintf( stderr, ", handle=%08x", req->handle );
4209 fprintf( stderr, ", show_count=%d", req->show_count );
4210 fprintf( stderr, ", x=%d", req->x );
4211 fprintf( stderr, ", y=%d", req->y );
4212 dump_rectangle( ", clip=", &req->clip );
4213 fprintf( stderr, ", clip_msg=%08x", req->clip_msg );
4216 static void dump_set_cursor_reply( const struct set_cursor_reply *req )
4218 fprintf( stderr, " prev_handle=%08x", req->prev_handle );
4219 fprintf( stderr, ", prev_count=%d", req->prev_count );
4220 fprintf( stderr, ", prev_x=%d", req->prev_x );
4221 fprintf( stderr, ", prev_y=%d", req->prev_y );
4222 fprintf( stderr, ", new_x=%d", req->new_x );
4223 fprintf( stderr, ", new_y=%d", req->new_y );
4224 dump_rectangle( ", new_clip=", &req->new_clip );
4225 fprintf( stderr, ", last_change=%08x", req->last_change );
4228 static void dump_update_rawinput_devices_request( const struct update_rawinput_devices_request *req )
4230 dump_varargs_rawinput_devices( " devices=", cur_size );
4233 static void dump_get_suspend_context_request( const struct get_suspend_context_request *req )
4237 static void dump_get_suspend_context_reply( const struct get_suspend_context_reply *req )
4239 dump_varargs_context( " context=", cur_size );
4242 static void dump_set_suspend_context_request( const struct set_suspend_context_request *req )
4244 dump_varargs_context( " context=", cur_size );
4247 static void dump_create_job_request( const struct create_job_request *req )
4249 fprintf( stderr, " access=%08x", req->access );
4250 dump_varargs_object_attributes( ", objattr=", cur_size );
4253 static void dump_create_job_reply( const struct create_job_reply *req )
4255 fprintf( stderr, " handle=%04x", req->handle );
4258 static void dump_open_job_request( const struct open_job_request *req )
4260 fprintf( stderr, " access=%08x", req->access );
4261 fprintf( stderr, ", attributes=%08x", req->attributes );
4262 fprintf( stderr, ", rootdir=%04x", req->rootdir );
4263 dump_varargs_unicode_str( ", name=", cur_size );
4266 static void dump_open_job_reply( const struct open_job_reply *req )
4268 fprintf( stderr, " handle=%04x", req->handle );
4271 static void dump_assign_job_request( const struct assign_job_request *req )
4273 fprintf( stderr, " job=%04x", req->job );
4274 fprintf( stderr, ", process=%04x", req->process );
4277 static void dump_process_in_job_request( const struct process_in_job_request *req )
4279 fprintf( stderr, " job=%04x", req->job );
4280 fprintf( stderr, ", process=%04x", req->process );
4283 static void dump_set_job_limits_request( const struct set_job_limits_request *req )
4285 fprintf( stderr, " handle=%04x", req->handle );
4286 fprintf( stderr, ", limit_flags=%08x", req->limit_flags );
4289 static void dump_set_job_completion_port_request( const struct set_job_completion_port_request *req )
4291 fprintf( stderr, " job=%04x", req->job );
4292 fprintf( stderr, ", port=%04x", req->port );
4293 dump_uint64( ", key=", &req->key );
4296 static void dump_terminate_job_request( const struct terminate_job_request *req )
4298 fprintf( stderr, " handle=%04x", req->handle );
4299 fprintf( stderr, ", status=%d", req->status );
4302 static const dump_func req_dumpers[REQ_NB_REQUESTS] = {
4303 (dump_func)dump_new_process_request,
4304 (dump_func)dump_get_new_process_info_request,
4305 (dump_func)dump_new_thread_request,
4306 (dump_func)dump_get_startup_info_request,
4307 (dump_func)dump_init_process_done_request,
4308 (dump_func)dump_init_thread_request,
4309 (dump_func)dump_terminate_process_request,
4310 (dump_func)dump_terminate_thread_request,
4311 (dump_func)dump_get_process_info_request,
4312 (dump_func)dump_set_process_info_request,
4313 (dump_func)dump_get_thread_info_request,
4314 (dump_func)dump_get_thread_times_request,
4315 (dump_func)dump_set_thread_info_request,
4316 (dump_func)dump_get_dll_info_request,
4317 (dump_func)dump_suspend_thread_request,
4318 (dump_func)dump_resume_thread_request,
4319 (dump_func)dump_load_dll_request,
4320 (dump_func)dump_unload_dll_request,
4321 (dump_func)dump_queue_apc_request,
4322 (dump_func)dump_get_apc_result_request,
4323 (dump_func)dump_close_handle_request,
4324 (dump_func)dump_set_handle_info_request,
4325 (dump_func)dump_dup_handle_request,
4326 (dump_func)dump_open_process_request,
4327 (dump_func)dump_open_thread_request,
4328 (dump_func)dump_select_request,
4329 (dump_func)dump_create_event_request,
4330 (dump_func)dump_event_op_request,
4331 (dump_func)dump_query_event_request,
4332 (dump_func)dump_open_event_request,
4333 (dump_func)dump_create_keyed_event_request,
4334 (dump_func)dump_open_keyed_event_request,
4335 (dump_func)dump_create_mutex_request,
4336 (dump_func)dump_release_mutex_request,
4337 (dump_func)dump_open_mutex_request,
4338 (dump_func)dump_create_semaphore_request,
4339 (dump_func)dump_release_semaphore_request,
4340 (dump_func)dump_query_semaphore_request,
4341 (dump_func)dump_open_semaphore_request,
4342 (dump_func)dump_create_file_request,
4343 (dump_func)dump_open_file_object_request,
4344 (dump_func)dump_alloc_file_handle_request,
4345 (dump_func)dump_get_handle_unix_name_request,
4346 (dump_func)dump_get_handle_fd_request,
4347 (dump_func)dump_flush_request,
4348 (dump_func)dump_lock_file_request,
4349 (dump_func)dump_unlock_file_request,
4350 (dump_func)dump_create_socket_request,
4351 (dump_func)dump_accept_socket_request,
4352 (dump_func)dump_accept_into_socket_request,
4353 (dump_func)dump_set_socket_event_request,
4354 (dump_func)dump_get_socket_event_request,
4355 (dump_func)dump_get_socket_info_request,
4356 (dump_func)dump_enable_socket_event_request,
4357 (dump_func)dump_set_socket_deferred_request,
4358 (dump_func)dump_alloc_console_request,
4359 (dump_func)dump_free_console_request,
4360 (dump_func)dump_get_console_renderer_events_request,
4361 (dump_func)dump_open_console_request,
4362 (dump_func)dump_get_console_wait_event_request,
4363 (dump_func)dump_get_console_mode_request,
4364 (dump_func)dump_set_console_mode_request,
4365 (dump_func)dump_set_console_input_info_request,
4366 (dump_func)dump_get_console_input_info_request,
4367 (dump_func)dump_append_console_input_history_request,
4368 (dump_func)dump_get_console_input_history_request,
4369 (dump_func)dump_create_console_output_request,
4370 (dump_func)dump_set_console_output_info_request,
4371 (dump_func)dump_get_console_output_info_request,
4372 (dump_func)dump_write_console_input_request,
4373 (dump_func)dump_read_console_input_request,
4374 (dump_func)dump_write_console_output_request,
4375 (dump_func)dump_fill_console_output_request,
4376 (dump_func)dump_read_console_output_request,
4377 (dump_func)dump_move_console_output_request,
4378 (dump_func)dump_send_console_signal_request,
4379 (dump_func)dump_read_directory_changes_request,
4380 (dump_func)dump_read_change_request,
4381 (dump_func)dump_create_mapping_request,
4382 (dump_func)dump_open_mapping_request,
4383 (dump_func)dump_get_mapping_info_request,
4384 (dump_func)dump_get_mapping_committed_range_request,
4385 (dump_func)dump_add_mapping_committed_range_request,
4386 (dump_func)dump_create_snapshot_request,
4387 (dump_func)dump_next_process_request,
4388 (dump_func)dump_next_thread_request,
4389 (dump_func)dump_wait_debug_event_request,
4390 (dump_func)dump_queue_exception_event_request,
4391 (dump_func)dump_get_exception_status_request,
4392 (dump_func)dump_continue_debug_event_request,
4393 (dump_func)dump_debug_process_request,
4394 (dump_func)dump_debug_break_request,
4395 (dump_func)dump_set_debugger_kill_on_exit_request,
4396 (dump_func)dump_read_process_memory_request,
4397 (dump_func)dump_write_process_memory_request,
4398 (dump_func)dump_create_key_request,
4399 (dump_func)dump_open_key_request,
4400 (dump_func)dump_delete_key_request,
4401 (dump_func)dump_flush_key_request,
4402 (dump_func)dump_enum_key_request,
4403 (dump_func)dump_set_key_value_request,
4404 (dump_func)dump_get_key_value_request,
4405 (dump_func)dump_enum_key_value_request,
4406 (dump_func)dump_delete_key_value_request,
4407 (dump_func)dump_load_registry_request,
4408 (dump_func)dump_unload_registry_request,
4409 (dump_func)dump_save_registry_request,
4410 (dump_func)dump_set_registry_notification_request,
4411 (dump_func)dump_create_timer_request,
4412 (dump_func)dump_open_timer_request,
4413 (dump_func)dump_set_timer_request,
4414 (dump_func)dump_cancel_timer_request,
4415 (dump_func)dump_get_timer_info_request,
4416 (dump_func)dump_get_thread_context_request,
4417 (dump_func)dump_set_thread_context_request,
4418 (dump_func)dump_get_selector_entry_request,
4419 (dump_func)dump_add_atom_request,
4420 (dump_func)dump_delete_atom_request,
4421 (dump_func)dump_find_atom_request,
4422 (dump_func)dump_get_atom_information_request,
4423 (dump_func)dump_set_atom_information_request,
4424 (dump_func)dump_empty_atom_table_request,
4425 (dump_func)dump_init_atom_table_request,
4426 (dump_func)dump_get_msg_queue_request,
4427 (dump_func)dump_set_queue_fd_request,
4428 (dump_func)dump_set_queue_mask_request,
4429 (dump_func)dump_get_queue_status_request,
4430 (dump_func)dump_get_process_idle_event_request,
4431 (dump_func)dump_send_message_request,
4432 (dump_func)dump_post_quit_message_request,
4433 (dump_func)dump_send_hardware_message_request,
4434 (dump_func)dump_get_message_request,
4435 (dump_func)dump_reply_message_request,
4436 (dump_func)dump_accept_hardware_message_request,
4437 (dump_func)dump_get_message_reply_request,
4438 (dump_func)dump_set_win_timer_request,
4439 (dump_func)dump_kill_win_timer_request,
4440 (dump_func)dump_is_window_hung_request,
4441 (dump_func)dump_get_serial_info_request,
4442 (dump_func)dump_set_serial_info_request,
4443 (dump_func)dump_register_async_request,
4444 (dump_func)dump_cancel_async_request,
4445 (dump_func)dump_read_request,
4446 (dump_func)dump_write_request,
4447 (dump_func)dump_ioctl_request,
4448 (dump_func)dump_set_irp_result_request,
4449 (dump_func)dump_get_irp_result_request,
4450 (dump_func)dump_create_named_pipe_request,
4451 (dump_func)dump_get_named_pipe_info_request,
4452 (dump_func)dump_set_named_pipe_info_request,
4453 (dump_func)dump_create_window_request,
4454 (dump_func)dump_destroy_window_request,
4455 (dump_func)dump_get_desktop_window_request,
4456 (dump_func)dump_set_window_owner_request,
4457 (dump_func)dump_get_window_info_request,
4458 (dump_func)dump_set_window_info_request,
4459 (dump_func)dump_set_parent_request,
4460 (dump_func)dump_get_window_parents_request,
4461 (dump_func)dump_get_window_children_request,
4462 (dump_func)dump_get_window_children_from_point_request,
4463 (dump_func)dump_get_window_tree_request,
4464 (dump_func)dump_set_window_pos_request,
4465 (dump_func)dump_get_window_rectangles_request,
4466 (dump_func)dump_get_window_text_request,
4467 (dump_func)dump_set_window_text_request,
4468 (dump_func)dump_get_windows_offset_request,
4469 (dump_func)dump_get_visible_region_request,
4470 (dump_func)dump_get_surface_region_request,
4471 (dump_func)dump_get_window_region_request,
4472 (dump_func)dump_set_window_region_request,
4473 (dump_func)dump_get_update_region_request,
4474 (dump_func)dump_update_window_zorder_request,
4475 (dump_func)dump_redraw_window_request,
4476 (dump_func)dump_set_window_property_request,
4477 (dump_func)dump_remove_window_property_request,
4478 (dump_func)dump_get_window_property_request,
4479 (dump_func)dump_get_window_properties_request,
4480 (dump_func)dump_create_winstation_request,
4481 (dump_func)dump_open_winstation_request,
4482 (dump_func)dump_close_winstation_request,
4483 (dump_func)dump_get_process_winstation_request,
4484 (dump_func)dump_set_process_winstation_request,
4485 (dump_func)dump_enum_winstation_request,
4486 (dump_func)dump_create_desktop_request,
4487 (dump_func)dump_open_desktop_request,
4488 (dump_func)dump_open_input_desktop_request,
4489 (dump_func)dump_close_desktop_request,
4490 (dump_func)dump_get_thread_desktop_request,
4491 (dump_func)dump_set_thread_desktop_request,
4492 (dump_func)dump_enum_desktop_request,
4493 (dump_func)dump_set_user_object_info_request,
4494 (dump_func)dump_register_hotkey_request,
4495 (dump_func)dump_unregister_hotkey_request,
4496 (dump_func)dump_attach_thread_input_request,
4497 (dump_func)dump_get_thread_input_request,
4498 (dump_func)dump_get_last_input_time_request,
4499 (dump_func)dump_get_key_state_request,
4500 (dump_func)dump_set_key_state_request,
4501 (dump_func)dump_set_foreground_window_request,
4502 (dump_func)dump_set_focus_window_request,
4503 (dump_func)dump_set_active_window_request,
4504 (dump_func)dump_set_capture_window_request,
4505 (dump_func)dump_set_caret_window_request,
4506 (dump_func)dump_set_caret_info_request,
4507 (dump_func)dump_set_hook_request,
4508 (dump_func)dump_remove_hook_request,
4509 (dump_func)dump_start_hook_chain_request,
4510 (dump_func)dump_finish_hook_chain_request,
4511 (dump_func)dump_get_hook_info_request,
4512 (dump_func)dump_create_class_request,
4513 (dump_func)dump_destroy_class_request,
4514 (dump_func)dump_set_class_info_request,
4515 (dump_func)dump_set_clipboard_info_request,
4516 (dump_func)dump_empty_clipboard_request,
4517 (dump_func)dump_open_token_request,
4518 (dump_func)dump_set_global_windows_request,
4519 (dump_func)dump_adjust_token_privileges_request,
4520 (dump_func)dump_get_token_privileges_request,
4521 (dump_func)dump_check_token_privileges_request,
4522 (dump_func)dump_duplicate_token_request,
4523 (dump_func)dump_access_check_request,
4524 (dump_func)dump_get_token_sid_request,
4525 (dump_func)dump_get_token_groups_request,
4526 (dump_func)dump_get_token_default_dacl_request,
4527 (dump_func)dump_set_token_default_dacl_request,
4528 (dump_func)dump_set_security_object_request,
4529 (dump_func)dump_get_security_object_request,
4530 (dump_func)dump_get_system_handles_request,
4531 (dump_func)dump_create_mailslot_request,
4532 (dump_func)dump_set_mailslot_info_request,
4533 (dump_func)dump_create_directory_request,
4534 (dump_func)dump_open_directory_request,
4535 (dump_func)dump_get_directory_entry_request,
4536 (dump_func)dump_create_symlink_request,
4537 (dump_func)dump_open_symlink_request,
4538 (dump_func)dump_query_symlink_request,
4539 (dump_func)dump_get_object_info_request,
4540 (dump_func)dump_get_object_type_request,
4541 (dump_func)dump_unlink_object_request,
4542 (dump_func)dump_get_token_impersonation_level_request,
4543 (dump_func)dump_allocate_locally_unique_id_request,
4544 (dump_func)dump_create_device_manager_request,
4545 (dump_func)dump_create_device_request,
4546 (dump_func)dump_delete_device_request,
4547 (dump_func)dump_get_next_device_request_request,
4548 (dump_func)dump_make_process_system_request,
4549 (dump_func)dump_get_token_statistics_request,
4550 (dump_func)dump_create_completion_request,
4551 (dump_func)dump_open_completion_request,
4552 (dump_func)dump_add_completion_request,
4553 (dump_func)dump_remove_completion_request,
4554 (dump_func)dump_query_completion_request,
4555 (dump_func)dump_set_completion_info_request,
4556 (dump_func)dump_add_fd_completion_request,
4557 (dump_func)dump_set_fd_disp_info_request,
4558 (dump_func)dump_set_fd_name_info_request,
4559 (dump_func)dump_get_window_layered_info_request,
4560 (dump_func)dump_set_window_layered_info_request,
4561 (dump_func)dump_alloc_user_handle_request,
4562 (dump_func)dump_free_user_handle_request,
4563 (dump_func)dump_set_cursor_request,
4564 (dump_func)dump_update_rawinput_devices_request,
4565 (dump_func)dump_get_suspend_context_request,
4566 (dump_func)dump_set_suspend_context_request,
4567 (dump_func)dump_create_job_request,
4568 (dump_func)dump_open_job_request,
4569 (dump_func)dump_assign_job_request,
4570 (dump_func)dump_process_in_job_request,
4571 (dump_func)dump_set_job_limits_request,
4572 (dump_func)dump_set_job_completion_port_request,
4573 (dump_func)dump_terminate_job_request,
4576 static const dump_func reply_dumpers[REQ_NB_REQUESTS] = {
4577 (dump_func)dump_new_process_reply,
4578 (dump_func)dump_get_new_process_info_reply,
4579 (dump_func)dump_new_thread_reply,
4580 (dump_func)dump_get_startup_info_reply,
4581 NULL,
4582 (dump_func)dump_init_thread_reply,
4583 (dump_func)dump_terminate_process_reply,
4584 (dump_func)dump_terminate_thread_reply,
4585 (dump_func)dump_get_process_info_reply,
4586 NULL,
4587 (dump_func)dump_get_thread_info_reply,
4588 (dump_func)dump_get_thread_times_reply,
4589 NULL,
4590 (dump_func)dump_get_dll_info_reply,
4591 (dump_func)dump_suspend_thread_reply,
4592 (dump_func)dump_resume_thread_reply,
4593 NULL,
4594 NULL,
4595 (dump_func)dump_queue_apc_reply,
4596 (dump_func)dump_get_apc_result_reply,
4597 NULL,
4598 (dump_func)dump_set_handle_info_reply,
4599 (dump_func)dump_dup_handle_reply,
4600 (dump_func)dump_open_process_reply,
4601 (dump_func)dump_open_thread_reply,
4602 (dump_func)dump_select_reply,
4603 (dump_func)dump_create_event_reply,
4604 NULL,
4605 (dump_func)dump_query_event_reply,
4606 (dump_func)dump_open_event_reply,
4607 (dump_func)dump_create_keyed_event_reply,
4608 (dump_func)dump_open_keyed_event_reply,
4609 (dump_func)dump_create_mutex_reply,
4610 (dump_func)dump_release_mutex_reply,
4611 (dump_func)dump_open_mutex_reply,
4612 (dump_func)dump_create_semaphore_reply,
4613 (dump_func)dump_release_semaphore_reply,
4614 (dump_func)dump_query_semaphore_reply,
4615 (dump_func)dump_open_semaphore_reply,
4616 (dump_func)dump_create_file_reply,
4617 (dump_func)dump_open_file_object_reply,
4618 (dump_func)dump_alloc_file_handle_reply,
4619 (dump_func)dump_get_handle_unix_name_reply,
4620 (dump_func)dump_get_handle_fd_reply,
4621 (dump_func)dump_flush_reply,
4622 (dump_func)dump_lock_file_reply,
4623 NULL,
4624 (dump_func)dump_create_socket_reply,
4625 (dump_func)dump_accept_socket_reply,
4626 NULL,
4627 NULL,
4628 (dump_func)dump_get_socket_event_reply,
4629 (dump_func)dump_get_socket_info_reply,
4630 NULL,
4631 NULL,
4632 (dump_func)dump_alloc_console_reply,
4633 NULL,
4634 (dump_func)dump_get_console_renderer_events_reply,
4635 (dump_func)dump_open_console_reply,
4636 (dump_func)dump_get_console_wait_event_reply,
4637 (dump_func)dump_get_console_mode_reply,
4638 NULL,
4639 NULL,
4640 (dump_func)dump_get_console_input_info_reply,
4641 NULL,
4642 (dump_func)dump_get_console_input_history_reply,
4643 (dump_func)dump_create_console_output_reply,
4644 NULL,
4645 (dump_func)dump_get_console_output_info_reply,
4646 (dump_func)dump_write_console_input_reply,
4647 (dump_func)dump_read_console_input_reply,
4648 (dump_func)dump_write_console_output_reply,
4649 (dump_func)dump_fill_console_output_reply,
4650 (dump_func)dump_read_console_output_reply,
4651 NULL,
4652 NULL,
4653 NULL,
4654 (dump_func)dump_read_change_reply,
4655 (dump_func)dump_create_mapping_reply,
4656 (dump_func)dump_open_mapping_reply,
4657 (dump_func)dump_get_mapping_info_reply,
4658 (dump_func)dump_get_mapping_committed_range_reply,
4659 NULL,
4660 (dump_func)dump_create_snapshot_reply,
4661 (dump_func)dump_next_process_reply,
4662 (dump_func)dump_next_thread_reply,
4663 (dump_func)dump_wait_debug_event_reply,
4664 (dump_func)dump_queue_exception_event_reply,
4665 (dump_func)dump_get_exception_status_reply,
4666 NULL,
4667 NULL,
4668 (dump_func)dump_debug_break_reply,
4669 NULL,
4670 (dump_func)dump_read_process_memory_reply,
4671 NULL,
4672 (dump_func)dump_create_key_reply,
4673 (dump_func)dump_open_key_reply,
4674 NULL,
4675 NULL,
4676 (dump_func)dump_enum_key_reply,
4677 NULL,
4678 (dump_func)dump_get_key_value_reply,
4679 (dump_func)dump_enum_key_value_reply,
4680 NULL,
4681 NULL,
4682 NULL,
4683 NULL,
4684 NULL,
4685 (dump_func)dump_create_timer_reply,
4686 (dump_func)dump_open_timer_reply,
4687 (dump_func)dump_set_timer_reply,
4688 (dump_func)dump_cancel_timer_reply,
4689 (dump_func)dump_get_timer_info_reply,
4690 (dump_func)dump_get_thread_context_reply,
4691 (dump_func)dump_set_thread_context_reply,
4692 (dump_func)dump_get_selector_entry_reply,
4693 (dump_func)dump_add_atom_reply,
4694 NULL,
4695 (dump_func)dump_find_atom_reply,
4696 (dump_func)dump_get_atom_information_reply,
4697 NULL,
4698 NULL,
4699 (dump_func)dump_init_atom_table_reply,
4700 (dump_func)dump_get_msg_queue_reply,
4701 NULL,
4702 (dump_func)dump_set_queue_mask_reply,
4703 (dump_func)dump_get_queue_status_reply,
4704 (dump_func)dump_get_process_idle_event_reply,
4705 NULL,
4706 NULL,
4707 (dump_func)dump_send_hardware_message_reply,
4708 (dump_func)dump_get_message_reply,
4709 NULL,
4710 NULL,
4711 (dump_func)dump_get_message_reply_reply,
4712 (dump_func)dump_set_win_timer_reply,
4713 NULL,
4714 (dump_func)dump_is_window_hung_reply,
4715 (dump_func)dump_get_serial_info_reply,
4716 NULL,
4717 NULL,
4718 NULL,
4719 (dump_func)dump_read_reply,
4720 (dump_func)dump_write_reply,
4721 (dump_func)dump_ioctl_reply,
4722 NULL,
4723 (dump_func)dump_get_irp_result_reply,
4724 (dump_func)dump_create_named_pipe_reply,
4725 (dump_func)dump_get_named_pipe_info_reply,
4726 NULL,
4727 (dump_func)dump_create_window_reply,
4728 NULL,
4729 (dump_func)dump_get_desktop_window_reply,
4730 (dump_func)dump_set_window_owner_reply,
4731 (dump_func)dump_get_window_info_reply,
4732 (dump_func)dump_set_window_info_reply,
4733 (dump_func)dump_set_parent_reply,
4734 (dump_func)dump_get_window_parents_reply,
4735 (dump_func)dump_get_window_children_reply,
4736 (dump_func)dump_get_window_children_from_point_reply,
4737 (dump_func)dump_get_window_tree_reply,
4738 (dump_func)dump_set_window_pos_reply,
4739 (dump_func)dump_get_window_rectangles_reply,
4740 (dump_func)dump_get_window_text_reply,
4741 NULL,
4742 (dump_func)dump_get_windows_offset_reply,
4743 (dump_func)dump_get_visible_region_reply,
4744 (dump_func)dump_get_surface_region_reply,
4745 (dump_func)dump_get_window_region_reply,
4746 NULL,
4747 (dump_func)dump_get_update_region_reply,
4748 NULL,
4749 NULL,
4750 NULL,
4751 (dump_func)dump_remove_window_property_reply,
4752 (dump_func)dump_get_window_property_reply,
4753 (dump_func)dump_get_window_properties_reply,
4754 (dump_func)dump_create_winstation_reply,
4755 (dump_func)dump_open_winstation_reply,
4756 NULL,
4757 (dump_func)dump_get_process_winstation_reply,
4758 NULL,
4759 (dump_func)dump_enum_winstation_reply,
4760 (dump_func)dump_create_desktop_reply,
4761 (dump_func)dump_open_desktop_reply,
4762 (dump_func)dump_open_input_desktop_reply,
4763 NULL,
4764 (dump_func)dump_get_thread_desktop_reply,
4765 NULL,
4766 (dump_func)dump_enum_desktop_reply,
4767 (dump_func)dump_set_user_object_info_reply,
4768 (dump_func)dump_register_hotkey_reply,
4769 (dump_func)dump_unregister_hotkey_reply,
4770 NULL,
4771 (dump_func)dump_get_thread_input_reply,
4772 (dump_func)dump_get_last_input_time_reply,
4773 (dump_func)dump_get_key_state_reply,
4774 NULL,
4775 (dump_func)dump_set_foreground_window_reply,
4776 (dump_func)dump_set_focus_window_reply,
4777 (dump_func)dump_set_active_window_reply,
4778 (dump_func)dump_set_capture_window_reply,
4779 (dump_func)dump_set_caret_window_reply,
4780 (dump_func)dump_set_caret_info_reply,
4781 (dump_func)dump_set_hook_reply,
4782 (dump_func)dump_remove_hook_reply,
4783 (dump_func)dump_start_hook_chain_reply,
4784 NULL,
4785 (dump_func)dump_get_hook_info_reply,
4786 (dump_func)dump_create_class_reply,
4787 (dump_func)dump_destroy_class_reply,
4788 (dump_func)dump_set_class_info_reply,
4789 (dump_func)dump_set_clipboard_info_reply,
4790 NULL,
4791 (dump_func)dump_open_token_reply,
4792 (dump_func)dump_set_global_windows_reply,
4793 (dump_func)dump_adjust_token_privileges_reply,
4794 (dump_func)dump_get_token_privileges_reply,
4795 (dump_func)dump_check_token_privileges_reply,
4796 (dump_func)dump_duplicate_token_reply,
4797 (dump_func)dump_access_check_reply,
4798 (dump_func)dump_get_token_sid_reply,
4799 (dump_func)dump_get_token_groups_reply,
4800 (dump_func)dump_get_token_default_dacl_reply,
4801 NULL,
4802 NULL,
4803 (dump_func)dump_get_security_object_reply,
4804 (dump_func)dump_get_system_handles_reply,
4805 (dump_func)dump_create_mailslot_reply,
4806 (dump_func)dump_set_mailslot_info_reply,
4807 (dump_func)dump_create_directory_reply,
4808 (dump_func)dump_open_directory_reply,
4809 (dump_func)dump_get_directory_entry_reply,
4810 (dump_func)dump_create_symlink_reply,
4811 (dump_func)dump_open_symlink_reply,
4812 (dump_func)dump_query_symlink_reply,
4813 (dump_func)dump_get_object_info_reply,
4814 (dump_func)dump_get_object_type_reply,
4815 NULL,
4816 (dump_func)dump_get_token_impersonation_level_reply,
4817 (dump_func)dump_allocate_locally_unique_id_reply,
4818 (dump_func)dump_create_device_manager_reply,
4819 (dump_func)dump_create_device_reply,
4820 NULL,
4821 (dump_func)dump_get_next_device_request_reply,
4822 (dump_func)dump_make_process_system_reply,
4823 (dump_func)dump_get_token_statistics_reply,
4824 (dump_func)dump_create_completion_reply,
4825 (dump_func)dump_open_completion_reply,
4826 NULL,
4827 (dump_func)dump_remove_completion_reply,
4828 (dump_func)dump_query_completion_reply,
4829 NULL,
4830 NULL,
4831 NULL,
4832 NULL,
4833 (dump_func)dump_get_window_layered_info_reply,
4834 NULL,
4835 (dump_func)dump_alloc_user_handle_reply,
4836 NULL,
4837 (dump_func)dump_set_cursor_reply,
4838 NULL,
4839 (dump_func)dump_get_suspend_context_reply,
4840 NULL,
4841 (dump_func)dump_create_job_reply,
4842 (dump_func)dump_open_job_reply,
4843 NULL,
4844 NULL,
4845 NULL,
4846 NULL,
4847 NULL,
4850 static const char * const req_names[REQ_NB_REQUESTS] = {
4851 "new_process",
4852 "get_new_process_info",
4853 "new_thread",
4854 "get_startup_info",
4855 "init_process_done",
4856 "init_thread",
4857 "terminate_process",
4858 "terminate_thread",
4859 "get_process_info",
4860 "set_process_info",
4861 "get_thread_info",
4862 "get_thread_times",
4863 "set_thread_info",
4864 "get_dll_info",
4865 "suspend_thread",
4866 "resume_thread",
4867 "load_dll",
4868 "unload_dll",
4869 "queue_apc",
4870 "get_apc_result",
4871 "close_handle",
4872 "set_handle_info",
4873 "dup_handle",
4874 "open_process",
4875 "open_thread",
4876 "select",
4877 "create_event",
4878 "event_op",
4879 "query_event",
4880 "open_event",
4881 "create_keyed_event",
4882 "open_keyed_event",
4883 "create_mutex",
4884 "release_mutex",
4885 "open_mutex",
4886 "create_semaphore",
4887 "release_semaphore",
4888 "query_semaphore",
4889 "open_semaphore",
4890 "create_file",
4891 "open_file_object",
4892 "alloc_file_handle",
4893 "get_handle_unix_name",
4894 "get_handle_fd",
4895 "flush",
4896 "lock_file",
4897 "unlock_file",
4898 "create_socket",
4899 "accept_socket",
4900 "accept_into_socket",
4901 "set_socket_event",
4902 "get_socket_event",
4903 "get_socket_info",
4904 "enable_socket_event",
4905 "set_socket_deferred",
4906 "alloc_console",
4907 "free_console",
4908 "get_console_renderer_events",
4909 "open_console",
4910 "get_console_wait_event",
4911 "get_console_mode",
4912 "set_console_mode",
4913 "set_console_input_info",
4914 "get_console_input_info",
4915 "append_console_input_history",
4916 "get_console_input_history",
4917 "create_console_output",
4918 "set_console_output_info",
4919 "get_console_output_info",
4920 "write_console_input",
4921 "read_console_input",
4922 "write_console_output",
4923 "fill_console_output",
4924 "read_console_output",
4925 "move_console_output",
4926 "send_console_signal",
4927 "read_directory_changes",
4928 "read_change",
4929 "create_mapping",
4930 "open_mapping",
4931 "get_mapping_info",
4932 "get_mapping_committed_range",
4933 "add_mapping_committed_range",
4934 "create_snapshot",
4935 "next_process",
4936 "next_thread",
4937 "wait_debug_event",
4938 "queue_exception_event",
4939 "get_exception_status",
4940 "continue_debug_event",
4941 "debug_process",
4942 "debug_break",
4943 "set_debugger_kill_on_exit",
4944 "read_process_memory",
4945 "write_process_memory",
4946 "create_key",
4947 "open_key",
4948 "delete_key",
4949 "flush_key",
4950 "enum_key",
4951 "set_key_value",
4952 "get_key_value",
4953 "enum_key_value",
4954 "delete_key_value",
4955 "load_registry",
4956 "unload_registry",
4957 "save_registry",
4958 "set_registry_notification",
4959 "create_timer",
4960 "open_timer",
4961 "set_timer",
4962 "cancel_timer",
4963 "get_timer_info",
4964 "get_thread_context",
4965 "set_thread_context",
4966 "get_selector_entry",
4967 "add_atom",
4968 "delete_atom",
4969 "find_atom",
4970 "get_atom_information",
4971 "set_atom_information",
4972 "empty_atom_table",
4973 "init_atom_table",
4974 "get_msg_queue",
4975 "set_queue_fd",
4976 "set_queue_mask",
4977 "get_queue_status",
4978 "get_process_idle_event",
4979 "send_message",
4980 "post_quit_message",
4981 "send_hardware_message",
4982 "get_message",
4983 "reply_message",
4984 "accept_hardware_message",
4985 "get_message_reply",
4986 "set_win_timer",
4987 "kill_win_timer",
4988 "is_window_hung",
4989 "get_serial_info",
4990 "set_serial_info",
4991 "register_async",
4992 "cancel_async",
4993 "read",
4994 "write",
4995 "ioctl",
4996 "set_irp_result",
4997 "get_irp_result",
4998 "create_named_pipe",
4999 "get_named_pipe_info",
5000 "set_named_pipe_info",
5001 "create_window",
5002 "destroy_window",
5003 "get_desktop_window",
5004 "set_window_owner",
5005 "get_window_info",
5006 "set_window_info",
5007 "set_parent",
5008 "get_window_parents",
5009 "get_window_children",
5010 "get_window_children_from_point",
5011 "get_window_tree",
5012 "set_window_pos",
5013 "get_window_rectangles",
5014 "get_window_text",
5015 "set_window_text",
5016 "get_windows_offset",
5017 "get_visible_region",
5018 "get_surface_region",
5019 "get_window_region",
5020 "set_window_region",
5021 "get_update_region",
5022 "update_window_zorder",
5023 "redraw_window",
5024 "set_window_property",
5025 "remove_window_property",
5026 "get_window_property",
5027 "get_window_properties",
5028 "create_winstation",
5029 "open_winstation",
5030 "close_winstation",
5031 "get_process_winstation",
5032 "set_process_winstation",
5033 "enum_winstation",
5034 "create_desktop",
5035 "open_desktop",
5036 "open_input_desktop",
5037 "close_desktop",
5038 "get_thread_desktop",
5039 "set_thread_desktop",
5040 "enum_desktop",
5041 "set_user_object_info",
5042 "register_hotkey",
5043 "unregister_hotkey",
5044 "attach_thread_input",
5045 "get_thread_input",
5046 "get_last_input_time",
5047 "get_key_state",
5048 "set_key_state",
5049 "set_foreground_window",
5050 "set_focus_window",
5051 "set_active_window",
5052 "set_capture_window",
5053 "set_caret_window",
5054 "set_caret_info",
5055 "set_hook",
5056 "remove_hook",
5057 "start_hook_chain",
5058 "finish_hook_chain",
5059 "get_hook_info",
5060 "create_class",
5061 "destroy_class",
5062 "set_class_info",
5063 "set_clipboard_info",
5064 "empty_clipboard",
5065 "open_token",
5066 "set_global_windows",
5067 "adjust_token_privileges",
5068 "get_token_privileges",
5069 "check_token_privileges",
5070 "duplicate_token",
5071 "access_check",
5072 "get_token_sid",
5073 "get_token_groups",
5074 "get_token_default_dacl",
5075 "set_token_default_dacl",
5076 "set_security_object",
5077 "get_security_object",
5078 "get_system_handles",
5079 "create_mailslot",
5080 "set_mailslot_info",
5081 "create_directory",
5082 "open_directory",
5083 "get_directory_entry",
5084 "create_symlink",
5085 "open_symlink",
5086 "query_symlink",
5087 "get_object_info",
5088 "get_object_type",
5089 "unlink_object",
5090 "get_token_impersonation_level",
5091 "allocate_locally_unique_id",
5092 "create_device_manager",
5093 "create_device",
5094 "delete_device",
5095 "get_next_device_request",
5096 "make_process_system",
5097 "get_token_statistics",
5098 "create_completion",
5099 "open_completion",
5100 "add_completion",
5101 "remove_completion",
5102 "query_completion",
5103 "set_completion_info",
5104 "add_fd_completion",
5105 "set_fd_disp_info",
5106 "set_fd_name_info",
5107 "get_window_layered_info",
5108 "set_window_layered_info",
5109 "alloc_user_handle",
5110 "free_user_handle",
5111 "set_cursor",
5112 "update_rawinput_devices",
5113 "get_suspend_context",
5114 "set_suspend_context",
5115 "create_job",
5116 "open_job",
5117 "assign_job",
5118 "process_in_job",
5119 "set_job_limits",
5120 "set_job_completion_port",
5121 "terminate_job",
5124 static const struct
5126 const char *name;
5127 unsigned int value;
5128 } status_names[] =
5130 { "ABANDONED_WAIT_0", STATUS_ABANDONED_WAIT_0 },
5131 { "ACCESS_DENIED", STATUS_ACCESS_DENIED },
5132 { "ACCESS_VIOLATION", STATUS_ACCESS_VIOLATION },
5133 { "ADDRESS_ALREADY_ASSOCIATED", STATUS_ADDRESS_ALREADY_ASSOCIATED },
5134 { "ALERTED", STATUS_ALERTED },
5135 { "ALIAS_EXISTS", STATUS_ALIAS_EXISTS },
5136 { "BAD_DEVICE_TYPE", STATUS_BAD_DEVICE_TYPE },
5137 { "BAD_IMPERSONATION_LEVEL", STATUS_BAD_IMPERSONATION_LEVEL },
5138 { "BREAKPOINT", STATUS_BREAKPOINT },
5139 { "BUFFER_OVERFLOW", STATUS_BUFFER_OVERFLOW },
5140 { "BUFFER_TOO_SMALL", STATUS_BUFFER_TOO_SMALL },
5141 { "CANCELLED", STATUS_CANCELLED },
5142 { "CANNOT_DELETE", STATUS_CANNOT_DELETE },
5143 { "CANT_OPEN_ANONYMOUS", STATUS_CANT_OPEN_ANONYMOUS },
5144 { "CANT_WAIT", STATUS_CANT_WAIT },
5145 { "CHILD_MUST_BE_VOLATILE", STATUS_CHILD_MUST_BE_VOLATILE },
5146 { "CONNECTION_ABORTED", STATUS_CONNECTION_ABORTED },
5147 { "CONNECTION_DISCONNECTED", STATUS_CONNECTION_DISCONNECTED },
5148 { "CONNECTION_REFUSED", STATUS_CONNECTION_REFUSED },
5149 { "CONNECTION_RESET", STATUS_CONNECTION_RESET },
5150 { "DEBUGGER_INACTIVE", STATUS_DEBUGGER_INACTIVE },
5151 { "DEVICE_BUSY", STATUS_DEVICE_BUSY },
5152 { "DIRECTORY_NOT_EMPTY", STATUS_DIRECTORY_NOT_EMPTY },
5153 { "DISK_FULL", STATUS_DISK_FULL },
5154 { "DLL_NOT_FOUND", STATUS_DLL_NOT_FOUND },
5155 { "ERROR_CLASS_ALREADY_EXISTS", 0xc0010000 | ERROR_CLASS_ALREADY_EXISTS },
5156 { "ERROR_CLASS_DOES_NOT_EXIST", 0xc0010000 | ERROR_CLASS_DOES_NOT_EXIST },
5157 { "ERROR_CLASS_HAS_WINDOWS", 0xc0010000 | ERROR_CLASS_HAS_WINDOWS },
5158 { "ERROR_CLIPBOARD_NOT_OPEN", 0xc0010000 | ERROR_CLIPBOARD_NOT_OPEN },
5159 { "ERROR_HOTKEY_ALREADY_REGISTERED", 0xc0010000 | ERROR_HOTKEY_ALREADY_REGISTERED },
5160 { "ERROR_HOTKEY_NOT_REGISTERED", 0xc0010000 | ERROR_HOTKEY_NOT_REGISTERED },
5161 { "ERROR_INVALID_CURSOR_HANDLE", 0xc0010000 | ERROR_INVALID_CURSOR_HANDLE },
5162 { "ERROR_INVALID_INDEX", 0xc0010000 | ERROR_INVALID_INDEX },
5163 { "ERROR_INVALID_WINDOW_HANDLE", 0xc0010000 | ERROR_INVALID_WINDOW_HANDLE },
5164 { "ERROR_NO_MORE_USER_HANDLES", 0xc0010000 | ERROR_NO_MORE_USER_HANDLES },
5165 { "ERROR_WINDOW_OF_OTHER_THREAD", 0xc0010000 | ERROR_WINDOW_OF_OTHER_THREAD },
5166 { "FILE_DELETED", STATUS_FILE_DELETED },
5167 { "FILE_IS_A_DIRECTORY", STATUS_FILE_IS_A_DIRECTORY },
5168 { "FILE_LOCK_CONFLICT", STATUS_FILE_LOCK_CONFLICT },
5169 { "GENERIC_NOT_MAPPED", STATUS_GENERIC_NOT_MAPPED },
5170 { "HANDLES_CLOSED", STATUS_HANDLES_CLOSED },
5171 { "HANDLE_NOT_CLOSABLE", STATUS_HANDLE_NOT_CLOSABLE },
5172 { "HOST_UNREACHABLE", STATUS_HOST_UNREACHABLE },
5173 { "ILLEGAL_FUNCTION", STATUS_ILLEGAL_FUNCTION },
5174 { "INSTANCE_NOT_AVAILABLE", STATUS_INSTANCE_NOT_AVAILABLE },
5175 { "INSUFFICIENT_RESOURCES", STATUS_INSUFFICIENT_RESOURCES },
5176 { "INVALID_CID", STATUS_INVALID_CID },
5177 { "INVALID_DEVICE_REQUEST", STATUS_INVALID_DEVICE_REQUEST },
5178 { "INVALID_FILE_FOR_SECTION", STATUS_INVALID_FILE_FOR_SECTION },
5179 { "INVALID_HANDLE", STATUS_INVALID_HANDLE },
5180 { "INVALID_IMAGE_FORMAT", STATUS_INVALID_IMAGE_FORMAT },
5181 { "INVALID_IMAGE_NE_FORMAT", STATUS_INVALID_IMAGE_NE_FORMAT },
5182 { "INVALID_IMAGE_NOT_MZ", STATUS_INVALID_IMAGE_NOT_MZ },
5183 { "INVALID_IMAGE_PROTECT", STATUS_INVALID_IMAGE_PROTECT },
5184 { "INVALID_IMAGE_WIN_64", STATUS_INVALID_IMAGE_WIN_64 },
5185 { "INVALID_PARAMETER", STATUS_INVALID_PARAMETER },
5186 { "INVALID_SECURITY_DESCR", STATUS_INVALID_SECURITY_DESCR },
5187 { "IO_TIMEOUT", STATUS_IO_TIMEOUT },
5188 { "KEY_DELETED", STATUS_KEY_DELETED },
5189 { "MAPPED_FILE_SIZE_ZERO", STATUS_MAPPED_FILE_SIZE_ZERO },
5190 { "MORE_PROCESSING_REQUIRED", STATUS_MORE_PROCESSING_REQUIRED },
5191 { "MUTANT_NOT_OWNED", STATUS_MUTANT_NOT_OWNED },
5192 { "NAME_TOO_LONG", STATUS_NAME_TOO_LONG },
5193 { "NETWORK_BUSY", STATUS_NETWORK_BUSY },
5194 { "NETWORK_UNREACHABLE", STATUS_NETWORK_UNREACHABLE },
5195 { "NOT_ALL_ASSIGNED", STATUS_NOT_ALL_ASSIGNED },
5196 { "NOT_A_DIRECTORY", STATUS_NOT_A_DIRECTORY },
5197 { "NOT_FOUND", STATUS_NOT_FOUND },
5198 { "NOT_IMPLEMENTED", STATUS_NOT_IMPLEMENTED },
5199 { "NOT_REGISTRY_FILE", STATUS_NOT_REGISTRY_FILE },
5200 { "NOT_SUPPORTED", STATUS_NOT_SUPPORTED },
5201 { "NO_DATA_DETECTED", STATUS_NO_DATA_DETECTED },
5202 { "NO_IMPERSONATION_TOKEN", STATUS_NO_IMPERSONATION_TOKEN },
5203 { "NO_MEMORY", STATUS_NO_MEMORY },
5204 { "NO_MORE_ENTRIES", STATUS_NO_MORE_ENTRIES },
5205 { "NO_MORE_FILES", STATUS_NO_MORE_FILES },
5206 { "NO_SUCH_DEVICE", STATUS_NO_SUCH_DEVICE },
5207 { "NO_SUCH_FILE", STATUS_NO_SUCH_FILE },
5208 { "NO_TOKEN", STATUS_NO_TOKEN },
5209 { "OBJECT_NAME_COLLISION", STATUS_OBJECT_NAME_COLLISION },
5210 { "OBJECT_NAME_EXISTS", STATUS_OBJECT_NAME_EXISTS },
5211 { "OBJECT_NAME_INVALID", STATUS_OBJECT_NAME_INVALID },
5212 { "OBJECT_NAME_NOT_FOUND", STATUS_OBJECT_NAME_NOT_FOUND },
5213 { "OBJECT_PATH_INVALID", STATUS_OBJECT_PATH_INVALID },
5214 { "OBJECT_PATH_NOT_FOUND", STATUS_OBJECT_PATH_NOT_FOUND },
5215 { "OBJECT_PATH_SYNTAX_BAD", STATUS_OBJECT_PATH_SYNTAX_BAD },
5216 { "OBJECT_TYPE_MISMATCH", STATUS_OBJECT_TYPE_MISMATCH },
5217 { "PENDING", STATUS_PENDING },
5218 { "PIPE_BUSY", STATUS_PIPE_BUSY },
5219 { "PIPE_CONNECTED", STATUS_PIPE_CONNECTED },
5220 { "PIPE_DISCONNECTED", STATUS_PIPE_DISCONNECTED },
5221 { "PIPE_LISTENING", STATUS_PIPE_LISTENING },
5222 { "PIPE_NOT_AVAILABLE", STATUS_PIPE_NOT_AVAILABLE },
5223 { "PRIVILEGE_NOT_HELD", STATUS_PRIVILEGE_NOT_HELD },
5224 { "PROCESS_IN_JOB", STATUS_PROCESS_IN_JOB },
5225 { "PROCESS_IS_TERMINATING", STATUS_PROCESS_IS_TERMINATING },
5226 { "SECTION_TOO_BIG", STATUS_SECTION_TOO_BIG },
5227 { "SEMAPHORE_LIMIT_EXCEEDED", STATUS_SEMAPHORE_LIMIT_EXCEEDED },
5228 { "SHARING_VIOLATION", STATUS_SHARING_VIOLATION },
5229 { "SHUTDOWN_IN_PROGRESS", STATUS_SHUTDOWN_IN_PROGRESS },
5230 { "SUSPEND_COUNT_EXCEEDED", STATUS_SUSPEND_COUNT_EXCEEDED },
5231 { "THREAD_IS_TERMINATING", STATUS_THREAD_IS_TERMINATING },
5232 { "TIMEOUT", STATUS_TIMEOUT },
5233 { "TOO_MANY_OPENED_FILES", STATUS_TOO_MANY_OPENED_FILES },
5234 { "UNSUCCESSFUL", STATUS_UNSUCCESSFUL },
5235 { "USER_APC", STATUS_USER_APC },
5236 { "USER_MAPPED_FILE", STATUS_USER_MAPPED_FILE },
5237 { "VOLUME_DISMOUNTED", STATUS_VOLUME_DISMOUNTED },
5238 { "WAS_LOCKED", STATUS_WAS_LOCKED },
5239 { NULL, 0 }
5242 /* ### make_requests end ### */
5243 /* Everything above this line is generated automatically by tools/make_requests */
5245 static const char *get_status_name( unsigned int status )
5247 int i;
5248 static char buffer[10];
5250 if (status)
5252 for (i = 0; status_names[i].name; i++)
5253 if (status_names[i].value == status) return status_names[i].name;
5255 sprintf( buffer, "%x", status );
5256 return buffer;
5259 void trace_request(void)
5261 enum request req = current->req.request_header.req;
5262 if (req < REQ_NB_REQUESTS)
5264 fprintf( stderr, "%04x: %s(", current->id, req_names[req] );
5265 if (req_dumpers[req])
5267 cur_data = get_req_data();
5268 cur_size = get_req_data_size();
5269 req_dumpers[req]( &current->req );
5271 fprintf( stderr, " )\n" );
5273 else fprintf( stderr, "%04x: %d(?)\n", current->id, req );
5276 void trace_reply( enum request req, const union generic_reply *reply )
5278 if (req < REQ_NB_REQUESTS)
5280 fprintf( stderr, "%04x: %s() = %s",
5281 current->id, req_names[req], get_status_name(current->error) );
5282 if (reply_dumpers[req])
5284 fprintf( stderr, " {" );
5285 cur_data = current->reply_data;
5286 cur_size = reply->reply_header.reply_size;
5287 reply_dumpers[req]( reply );
5288 fprintf( stderr, " }" );
5290 fputc( '\n', stderr );
5292 else fprintf( stderr, "%04x: %d() = %s\n",
5293 current->id, req, get_status_name(current->error) );