2 * Server request tracing
4 * Copyright (C) 1999 Alexandre Julliard
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
22 #include "wine/port.h"
27 #include <sys/types.h>
34 #define WIN32_NO_STATUS
45 static const void *cur_data
;
46 static data_size_t cur_size
;
48 static const char *get_status_name( unsigned int status
);
50 /* utility functions */
52 static inline void remove_data( data_size_t size
)
54 cur_data
= (const char *)cur_data
+ size
;
58 static void dump_uints( const int *ptr
, int len
)
63 fprintf( stderr
, "%08x", *ptr
++ );
64 if (--len
) fputc( ',', stderr
);
69 static void dump_handles( const char *prefix
, const obj_handle_t
*data
, data_size_t size
)
71 data_size_t len
= size
/ sizeof(*data
);
73 fprintf( stderr
,"%s{", prefix
);
76 fprintf( stderr
, "%04x", *data
++ );
77 if (--len
) fputc( ',', stderr
);
82 static void dump_timeout( const char *prefix
, const timeout_t
*time
)
84 fprintf( stderr
, "%s%s", prefix
, get_timeout_str(*time
) );
87 static void dump_uint64( const char *prefix
, const unsigned __int64
*val
)
89 if ((unsigned int)*val
!= *val
)
90 fprintf( stderr
, "%s%x%08x", prefix
, (unsigned int)(*val
>> 32), (unsigned int)*val
);
92 fprintf( stderr
, "%s%08x", prefix
, (unsigned int)*val
);
95 static void dump_rectangle( const char *prefix
, const rectangle_t
*rect
)
97 fprintf( stderr
, "%s{%d,%d;%d,%d}", prefix
,
98 rect
->left
, rect
->top
, rect
->right
, rect
->bottom
);
101 static void dump_char_info( const char *prefix
, const char_info_t
*info
)
103 fprintf( stderr
, "%s{'", prefix
);
104 dump_strW( &info
->ch
, 1, stderr
, "\'\'" );
105 fprintf( stderr
, "',%04x}", info
->attr
);
108 static void dump_ioctl_code( const char *prefix
, const ioctl_code_t
*code
)
112 #define CASE(c) case c: fprintf( stderr, "%s%s", prefix, #c ); break
113 CASE(FSCTL_DISMOUNT_VOLUME
);
114 CASE(FSCTL_PIPE_DISCONNECT
);
115 CASE(FSCTL_PIPE_LISTEN
);
116 CASE(FSCTL_PIPE_WAIT
);
117 default: fprintf( stderr
, "%s%08x", prefix
, *code
); break;
122 static void dump_cpu_type( const char *prefix
, const cpu_type_t
*code
)
126 #define CASE(c) case CPU_##c: fprintf( stderr, "%s%s", prefix, #c ); break
132 default: fprintf( stderr
, "%s%u", prefix
, *code
); break;
137 static void dump_apc_call( const char *prefix
, const apc_call_t
*call
)
139 fprintf( stderr
, "%s{", prefix
);
143 fprintf( stderr
, "APC_NONE" );
146 dump_uint64( "APC_USER,func=", &call
->user
.func
);
147 dump_uint64( ",args={", &call
->user
.args
[0] );
148 dump_uint64( ",", &call
->user
.args
[1] );
149 dump_uint64( ",", &call
->user
.args
[2] );
150 fputc( '}', stderr
);
153 dump_timeout( "APC_TIMER,time=", &call
->timer
.time
);
154 dump_uint64( ",arg=", &call
->timer
.arg
);
157 dump_uint64( "APC_ASYNC_IO,func=", &call
->async_io
.func
);
158 dump_uint64( ",user=", &call
->async_io
.user
);
159 dump_uint64( ",sb=", &call
->async_io
.sb
);
160 fprintf( stderr
, ",status=%s", get_status_name(call
->async_io
.status
) );
162 case APC_VIRTUAL_ALLOC
:
163 dump_uint64( "APC_VIRTUAL_ALLOC,addr==", &call
->virtual_alloc
.addr
);
164 dump_uint64( ",size=", &call
->virtual_alloc
.size
);
165 fprintf( stderr
, ",zero_bits=%u,op_type=%x,prot=%x",
166 call
->virtual_alloc
.zero_bits
, call
->virtual_alloc
.op_type
,
167 call
->virtual_alloc
.prot
);
169 case APC_VIRTUAL_FREE
:
170 dump_uint64( "APC_VIRTUAL_FREE,addr=", &call
->virtual_free
.addr
);
171 dump_uint64( ",size=", &call
->virtual_free
.size
);
172 fprintf( stderr
, ",op_type=%x", call
->virtual_free
.op_type
);
174 case APC_VIRTUAL_QUERY
:
175 dump_uint64( "APC_VIRTUAL_QUERY,addr=", &call
->virtual_query
.addr
);
177 case APC_VIRTUAL_PROTECT
:
178 dump_uint64( "APC_VIRTUAL_PROTECT,addr=", &call
->virtual_protect
.addr
);
179 dump_uint64( ",size=", &call
->virtual_protect
.size
);
180 fprintf( stderr
, ",prot=%x", call
->virtual_protect
.prot
);
182 case APC_VIRTUAL_FLUSH
:
183 dump_uint64( "APC_VIRTUAL_FLUSH,addr=", &call
->virtual_flush
.addr
);
184 dump_uint64( ",size=", &call
->virtual_flush
.size
);
186 case APC_VIRTUAL_LOCK
:
187 dump_uint64( "APC_VIRTUAL_LOCK,addr=", &call
->virtual_lock
.addr
);
188 dump_uint64( ",size=", &call
->virtual_lock
.size
);
190 case APC_VIRTUAL_UNLOCK
:
191 dump_uint64( "APC_VIRTUAL_UNLOCK,addr=", &call
->virtual_unlock
.addr
);
192 dump_uint64( ",size=", &call
->virtual_unlock
.size
);
195 fprintf( stderr
, "APC_MAP_VIEW,handle=%04x", call
->map_view
.handle
);
196 dump_uint64( ",addr=", &call
->map_view
.addr
);
197 dump_uint64( ",size=", &call
->map_view
.size
);
198 dump_uint64( ",offset=", &call
->map_view
.offset
);
199 fprintf( stderr
, ",zero_bits=%u,alloc_type=%x,prot=%x",
200 call
->map_view
.zero_bits
, call
->map_view
.alloc_type
, call
->map_view
.prot
);
203 dump_uint64( "APC_UNMAP_VIEW,addr=", &call
->unmap_view
.addr
);
205 case APC_CREATE_THREAD
:
206 dump_uint64( "APC_CREATE_THREAD,func=", &call
->create_thread
.func
);
207 dump_uint64( ",arg=", &call
->create_thread
.arg
);
208 dump_uint64( ",reserve=", &call
->create_thread
.reserve
);
209 dump_uint64( ",commit=", &call
->create_thread
.commit
);
210 fprintf( stderr
, ",suspend=%u", call
->create_thread
.suspend
);
213 fprintf( stderr
, "type=%u", call
->type
);
216 fputc( '}', stderr
);
219 static void dump_apc_result( const char *prefix
, const apc_result_t
*result
)
221 fprintf( stderr
, "%s{", prefix
);
227 fprintf( stderr
, "APC_ASYNC_IO,status=%s,total=%u",
228 get_status_name( result
->async_io
.status
), result
->async_io
.total
);
229 dump_uint64( ",apc=", &result
->async_io
.apc
);
230 dump_uint64( ",arg=", &result
->async_io
.arg
);
232 case APC_VIRTUAL_ALLOC
:
233 fprintf( stderr
, "APC_VIRTUAL_ALLOC,status=%s",
234 get_status_name( result
->virtual_alloc
.status
));
235 dump_uint64( ",addr=", &result
->virtual_alloc
.addr
);
236 dump_uint64( ",size=", &result
->virtual_alloc
.size
);
238 case APC_VIRTUAL_FREE
:
239 fprintf( stderr
, "APC_VIRTUAL_FREE,status=%s",
240 get_status_name( result
->virtual_free
.status
));
241 dump_uint64( ",addr=", &result
->virtual_free
.addr
);
242 dump_uint64( ",size=", &result
->virtual_free
.size
);
244 case APC_VIRTUAL_QUERY
:
245 fprintf( stderr
, "APC_VIRTUAL_QUERY,status=%s",
246 get_status_name( result
->virtual_query
.status
));
247 dump_uint64( ",base=", &result
->virtual_query
.base
);
248 dump_uint64( ",alloc_base=", &result
->virtual_query
.alloc_base
);
249 dump_uint64( ",size=", &result
->virtual_query
.size
);
250 fprintf( stderr
, ",state=%x,prot=%x,alloc_prot=%x,alloc_type=%x",
251 result
->virtual_query
.state
, result
->virtual_query
.prot
,
252 result
->virtual_query
.alloc_prot
, result
->virtual_query
.alloc_type
);
254 case APC_VIRTUAL_PROTECT
:
255 fprintf( stderr
, "APC_VIRTUAL_PROTECT,status=%s",
256 get_status_name( result
->virtual_protect
.status
));
257 dump_uint64( ",addr=", &result
->virtual_protect
.addr
);
258 dump_uint64( ",size=", &result
->virtual_protect
.size
);
259 fprintf( stderr
, ",prot=%x", result
->virtual_protect
.prot
);
261 case APC_VIRTUAL_FLUSH
:
262 fprintf( stderr
, "APC_VIRTUAL_FLUSH,status=%s",
263 get_status_name( result
->virtual_flush
.status
));
264 dump_uint64( ",addr=", &result
->virtual_flush
.addr
);
265 dump_uint64( ",size=", &result
->virtual_flush
.size
);
267 case APC_VIRTUAL_LOCK
:
268 fprintf( stderr
, "APC_VIRTUAL_LOCK,status=%s",
269 get_status_name( result
->virtual_lock
.status
));
270 dump_uint64( ",addr=", &result
->virtual_lock
.addr
);
271 dump_uint64( ",size=", &result
->virtual_lock
.size
);
273 case APC_VIRTUAL_UNLOCK
:
274 fprintf( stderr
, "APC_VIRTUAL_UNLOCK,status=%s",
275 get_status_name( result
->virtual_unlock
.status
));
276 dump_uint64( ",addr=", &result
->virtual_unlock
.addr
);
277 dump_uint64( ",size=", &result
->virtual_unlock
.size
);
280 fprintf( stderr
, "APC_MAP_VIEW,status=%s",
281 get_status_name( result
->map_view
.status
));
282 dump_uint64( ",addr=", &result
->map_view
.addr
);
283 dump_uint64( ",size=", &result
->map_view
.size
);
286 fprintf( stderr
, "APC_UNMAP_VIEW,status=%s",
287 get_status_name( result
->unmap_view
.status
) );
289 case APC_CREATE_THREAD
:
290 fprintf( stderr
, "APC_CREATE_THREAD,status=%s,tid=%04x,handle=%04x",
291 get_status_name( result
->create_thread
.status
),
292 result
->create_thread
.tid
, result
->create_thread
.handle
);
295 fprintf( stderr
, "type=%u", result
->type
);
298 fputc( '}', stderr
);
301 static void dump_async_data( const char *prefix
, const async_data_t
*data
)
303 fprintf( stderr
, "%s{handle=%04x,event=%04x", prefix
, data
->handle
, data
->event
);
304 dump_uint64( ",callback=", &data
->callback
);
305 dump_uint64( ",iosb=", &data
->iosb
);
306 dump_uint64( ",arg=", &data
->arg
);
307 dump_uint64( ",cvalue=", &data
->cvalue
);
308 fputc( '}', stderr
);
311 static void dump_hw_input( const char *prefix
, const hw_input_t
*input
)
316 fprintf( stderr
, "%s{type=MOUSE,x=%d,y=%d,data=%08x,flags=%08x,time=%u",
317 prefix
, input
->mouse
.x
, input
->mouse
.y
, input
->mouse
.data
, input
->mouse
.flags
,
319 dump_uint64( ",info=", &input
->mouse
.info
);
320 fputc( '}', stderr
);
323 fprintf( stderr
, "%s{type=KEYBOARD,vkey=%04hx,scan=%04hx,flags=%08x,time=%u",
324 prefix
, input
->kbd
.vkey
, input
->kbd
.scan
, input
->kbd
.flags
, input
->kbd
.time
);
325 dump_uint64( ",info=", &input
->kbd
.info
);
326 fputc( '}', stderr
);
329 fprintf( stderr
, "%s{type=HARDWARE,msg=%04x", prefix
, input
->hw
.msg
);
330 dump_uint64( ",lparam=", &input
->hw
.lparam
);
331 fputc( '}', stderr
);
334 fprintf( stderr
, "%s{type=%04x}", prefix
, input
->type
);
339 static void dump_luid( const char *prefix
, const luid_t
*luid
)
341 fprintf( stderr
, "%s%d.%u", prefix
, luid
->high_part
, luid
->low_part
);
344 static void dump_varargs_ints( const char *prefix
, data_size_t size
)
346 const int *data
= cur_data
;
347 data_size_t len
= size
/ sizeof(*data
);
349 fprintf( stderr
,"%s{", prefix
);
352 fprintf( stderr
, "%d", *data
++ );
353 if (--len
) fputc( ',', stderr
);
355 fputc( '}', stderr
);
359 static void dump_varargs_uints64( const char *prefix
, data_size_t size
)
361 const unsigned __int64
*data
= cur_data
;
362 data_size_t len
= size
/ sizeof(*data
);
364 fprintf( stderr
,"%s{", prefix
);
367 dump_uint64( "", data
++ );
368 if (--len
) fputc( ',', stderr
);
370 fputc( '}', stderr
);
374 static void dump_varargs_apc_result( const char *prefix
, data_size_t size
)
376 const apc_result_t
*result
= cur_data
;
378 if (size
>= sizeof(*result
))
380 dump_apc_result( prefix
, result
);
381 size
= sizeof(*result
);
386 static void dump_varargs_select_op( const char *prefix
, data_size_t size
)
392 fprintf( stderr
, "%s{}", prefix
);
395 memset( &data
, 0, sizeof(data
) );
396 memcpy( &data
, cur_data
, min( size
, sizeof(data
) ));
398 fprintf( stderr
, "%s{", prefix
);
402 fprintf( stderr
, "NONE" );
405 case SELECT_WAIT_ALL
:
406 fprintf( stderr
, "%s", data
.op
== SELECT_WAIT
? "WAIT" : "WAIT_ALL" );
407 if (size
> offsetof( select_op_t
, wait
.handles
))
408 dump_handles( ",handles=", data
.wait
.handles
,
409 min( size
, sizeof(data
.wait
) ) - offsetof( select_op_t
, wait
.handles
));
411 case SELECT_SIGNAL_AND_WAIT
:
412 fprintf( stderr
, "SIGNAL_AND_WAIT,signal=%04x,wait=%04x",
413 data
.signal_and_wait
.signal
, data
.signal_and_wait
.wait
);
415 case SELECT_KEYED_EVENT_WAIT
:
416 case SELECT_KEYED_EVENT_RELEASE
:
417 fprintf( stderr
, "KEYED_EVENT_%s,handle=%04x",
418 data
.op
== SELECT_KEYED_EVENT_WAIT
? "WAIT" : "RELEASE",
419 data
.keyed_event
.handle
);
420 dump_uint64( ",key=", &data
.keyed_event
.key
);
423 fprintf( stderr
, "op=%u", data
.op
);
426 fputc( '}', stderr
);
430 static void dump_varargs_user_handles( const char *prefix
, data_size_t size
)
432 const user_handle_t
*data
= cur_data
;
433 data_size_t len
= size
/ sizeof(*data
);
435 fprintf( stderr
,"%s{", prefix
);
438 fprintf( stderr
, "%08x", *data
++ );
439 if (--len
) fputc( ',', stderr
);
441 fputc( '}', stderr
);
445 static void dump_varargs_bytes( const char *prefix
, data_size_t size
)
447 const unsigned char *data
= cur_data
;
448 data_size_t len
= min( 1024, size
);
450 fprintf( stderr
,"%s{", prefix
);
453 fprintf( stderr
, "%02x", *data
++ );
454 if (--len
) fputc( ',', stderr
);
456 if (size
> 1024) fprintf( stderr
, "...(total %u)", size
);
457 fputc( '}', stderr
);
461 static void dump_varargs_string( const char *prefix
, data_size_t size
)
463 fprintf( stderr
, "%s\"%.*s\"", prefix
, (int)size
, (const char *)cur_data
);
467 static void dump_varargs_unicode_str( const char *prefix
, data_size_t size
)
469 fprintf( stderr
, "%sL\"", prefix
);
470 dump_strW( cur_data
, size
/ sizeof(WCHAR
), stderr
, "\"\"" );
471 fputc( '\"', stderr
);
475 static void dump_varargs_context( const char *prefix
, data_size_t size
)
477 const context_t
*context
= cur_data
;
483 fprintf( stderr
, "%s{}", prefix
);
486 size
= min( size
, sizeof(ctx
) );
487 memset( &ctx
, 0, sizeof(ctx
) );
488 memcpy( &ctx
, context
, size
);
490 fprintf( stderr
,"%s{", prefix
);
491 dump_cpu_type( "cpu=", &ctx
.cpu
);
495 if (ctx
.flags
& SERVER_CTX_CONTROL
)
496 fprintf( stderr
, ",eip=%08x,esp=%08x,ebp=%08x,eflags=%08x,cs=%04x,ss=%04x",
497 ctx
.ctl
.i386_regs
.eip
, ctx
.ctl
.i386_regs
.esp
, ctx
.ctl
.i386_regs
.ebp
,
498 ctx
.ctl
.i386_regs
.eflags
, ctx
.ctl
.i386_regs
.cs
, ctx
.ctl
.i386_regs
.ss
);
499 if (ctx
.flags
& SERVER_CTX_SEGMENTS
)
500 fprintf( stderr
, ",ds=%04x,es=%04x,fs=%04x,gs=%04x",
501 ctx
.seg
.i386_regs
.ds
, ctx
.seg
.i386_regs
.es
,
502 ctx
.seg
.i386_regs
.fs
, ctx
.seg
.i386_regs
.gs
);
503 if (ctx
.flags
& SERVER_CTX_INTEGER
)
504 fprintf( stderr
, ",eax=%08x,ebx=%08x,ecx=%08x,edx=%08x,esi=%08x,edi=%08x",
505 ctx
.integer
.i386_regs
.eax
, ctx
.integer
.i386_regs
.ebx
, ctx
.integer
.i386_regs
.ecx
,
506 ctx
.integer
.i386_regs
.edx
, ctx
.integer
.i386_regs
.esi
, ctx
.integer
.i386_regs
.edi
);
507 if (ctx
.flags
& SERVER_CTX_DEBUG_REGISTERS
)
508 fprintf( stderr
, ",dr0=%08x,dr1=%08x,dr2=%08x,dr3=%08x,dr6=%08x,dr7=%08x",
509 ctx
.debug
.i386_regs
.dr0
, ctx
.debug
.i386_regs
.dr1
, ctx
.debug
.i386_regs
.dr2
,
510 ctx
.debug
.i386_regs
.dr3
, ctx
.debug
.i386_regs
.dr6
, ctx
.debug
.i386_regs
.dr7
);
511 if (ctx
.flags
& SERVER_CTX_FLOATING_POINT
)
513 fprintf( stderr
, ",fp.ctrl=%08x,fp.status=%08x,fp.tag=%08x,fp.err_off=%08x,fp.err_sel=%08x",
514 ctx
.fp
.i386_regs
.ctrl
, ctx
.fp
.i386_regs
.status
, ctx
.fp
.i386_regs
.tag
,
515 ctx
.fp
.i386_regs
.err_off
, ctx
.fp
.i386_regs
.err_sel
);
516 fprintf( stderr
, ",fp.data_off=%08x,fp.data_sel=%08x,fp.cr0npx=%08x",
517 ctx
.fp
.i386_regs
.data_off
, ctx
.fp
.i386_regs
.data_sel
, ctx
.fp
.i386_regs
.cr0npx
);
518 for (i
= 0; i
< 8; i
++)
519 fprintf( stderr
, ",fp.reg%u=%Lg", i
, *(long double *)&ctx
.fp
.i386_regs
.regs
[10*i
] );
521 if (ctx
.flags
& SERVER_CTX_EXTENDED_REGISTERS
)
523 fprintf( stderr
, ",extended=" );
524 dump_uints( (const int *)ctx
.ext
.i386_regs
, sizeof(ctx
.ext
.i386_regs
) / sizeof(int) );
528 if (ctx
.flags
& SERVER_CTX_CONTROL
)
530 dump_uint64( ",rip=", &ctx
.ctl
.x86_64_regs
.rip
);
531 dump_uint64( ",rbp=", &ctx
.ctl
.x86_64_regs
.rbp
);
532 dump_uint64( ",rsp=", &ctx
.ctl
.x86_64_regs
.rsp
);
533 fprintf( stderr
, ",cs=%04x,ss=%04x,flags=%08x",
534 ctx
.ctl
.x86_64_regs
.cs
, ctx
.ctl
.x86_64_regs
.ss
, ctx
.ctl
.x86_64_regs
.flags
);
536 if (ctx
.flags
& SERVER_CTX_INTEGER
)
538 dump_uint64( ",rax=", &ctx
.integer
.x86_64_regs
.rax
);
539 dump_uint64( ",rbx=", &ctx
.integer
.x86_64_regs
.rbx
);
540 dump_uint64( ",rcx=", &ctx
.integer
.x86_64_regs
.rcx
);
541 dump_uint64( ",rdx=", &ctx
.integer
.x86_64_regs
.rdx
);
542 dump_uint64( ",rsi=", &ctx
.integer
.x86_64_regs
.rsi
);
543 dump_uint64( ",rdi=", &ctx
.integer
.x86_64_regs
.rdi
);
544 dump_uint64( ",r8=", &ctx
.integer
.x86_64_regs
.r8
);
545 dump_uint64( ",r9=", &ctx
.integer
.x86_64_regs
.r9
);
546 dump_uint64( ",r10=", &ctx
.integer
.x86_64_regs
.r10
);
547 dump_uint64( ",r11=", &ctx
.integer
.x86_64_regs
.r11
);
548 dump_uint64( ",r12=", &ctx
.integer
.x86_64_regs
.r12
);
549 dump_uint64( ",r13=", &ctx
.integer
.x86_64_regs
.r13
);
550 dump_uint64( ",r14=", &ctx
.integer
.x86_64_regs
.r14
);
551 dump_uint64( ",r15=", &ctx
.integer
.x86_64_regs
.r15
);
553 if (ctx
.flags
& SERVER_CTX_SEGMENTS
)
554 fprintf( stderr
, ",ds=%04x,es=%04x,fs=%04x,gs=%04x",
555 ctx
.seg
.x86_64_regs
.ds
, ctx
.seg
.x86_64_regs
.es
,
556 ctx
.seg
.x86_64_regs
.fs
, ctx
.seg
.x86_64_regs
.gs
);
557 if (ctx
.flags
& SERVER_CTX_DEBUG_REGISTERS
)
559 dump_uint64( ",dr0=", &ctx
.debug
.x86_64_regs
.dr0
);
560 dump_uint64( ",dr1=", &ctx
.debug
.x86_64_regs
.dr1
);
561 dump_uint64( ",dr2=", &ctx
.debug
.x86_64_regs
.dr2
);
562 dump_uint64( ",dr3=", &ctx
.debug
.x86_64_regs
.dr3
);
563 dump_uint64( ",dr6=", &ctx
.debug
.x86_64_regs
.dr6
);
564 dump_uint64( ",dr7=", &ctx
.debug
.x86_64_regs
.dr7
);
566 if (ctx
.flags
& SERVER_CTX_FLOATING_POINT
)
568 for (i
= 0; i
< 32; i
++)
569 fprintf( stderr
, ",fp%u=%08x%08x%08x%08x", i
,
570 (unsigned int)(ctx
.fp
.x86_64_regs
.fpregs
[i
].high
>> 32),
571 (unsigned int)ctx
.fp
.x86_64_regs
.fpregs
[i
].high
,
572 (unsigned int)(ctx
.fp
.x86_64_regs
.fpregs
[i
].low
>> 32),
573 (unsigned int)ctx
.fp
.x86_64_regs
.fpregs
[i
].low
);
577 if (ctx
.flags
& SERVER_CTX_CONTROL
)
578 fprintf( stderr
, ",iar=%08x,msr=%08x,ctr=%08x,lr=%08x,dar=%08x,dsisr=%08x,trap=%08x",
579 ctx
.ctl
.powerpc_regs
.iar
, ctx
.ctl
.powerpc_regs
.msr
, ctx
.ctl
.powerpc_regs
.ctr
,
580 ctx
.ctl
.powerpc_regs
.lr
, ctx
.ctl
.powerpc_regs
.dar
, ctx
.ctl
.powerpc_regs
.dsisr
,
581 ctx
.ctl
.powerpc_regs
.trap
);
582 if (ctx
.flags
& SERVER_CTX_INTEGER
)
584 for (i
= 0; i
< 32; i
++) fprintf( stderr
, ",gpr%u=%08x", i
, ctx
.integer
.powerpc_regs
.gpr
[i
] );
585 fprintf( stderr
, ",cr=%08x,xer=%08x",
586 ctx
.integer
.powerpc_regs
.cr
, ctx
.integer
.powerpc_regs
.xer
);
588 if (ctx
.flags
& SERVER_CTX_DEBUG_REGISTERS
)
589 for (i
= 0; i
< 8; i
++) fprintf( stderr
, ",dr%u=%08x", i
, ctx
.debug
.powerpc_regs
.dr
[i
] );
590 if (ctx
.flags
& SERVER_CTX_FLOATING_POINT
)
592 for (i
= 0; i
< 32; i
++) fprintf( stderr
, ",fpr%u=%g", i
, ctx
.fp
.powerpc_regs
.fpr
[i
] );
593 fprintf( stderr
, ",fpscr=%g", ctx
.fp
.powerpc_regs
.fpscr
);
597 if (ctx
.flags
& SERVER_CTX_CONTROL
)
598 fprintf( stderr
, ",sp=%08x,lr=%08x,pc=%08x,cpsr=%08x",
599 ctx
.ctl
.arm_regs
.sp
, ctx
.ctl
.arm_regs
.lr
,
600 ctx
.ctl
.arm_regs
.pc
, ctx
.ctl
.arm_regs
.cpsr
);
601 if (ctx
.flags
& SERVER_CTX_INTEGER
)
602 for (i
= 0; i
< 13; i
++) fprintf( stderr
, ",r%u=%08x", i
, ctx
.integer
.arm_regs
.r
[i
] );
605 if (ctx
.flags
& SERVER_CTX_CONTROL
)
607 dump_uint64( ",sp=", &ctx
.ctl
.arm64_regs
.sp
);
608 dump_uint64( ",pc=", &ctx
.ctl
.arm64_regs
.pc
);
609 dump_uint64( ",pstate=", &ctx
.ctl
.arm64_regs
.pstate
);
611 if (ctx
.flags
& SERVER_CTX_INTEGER
)
613 dump_uint64( ",x0=", &ctx
.integer
.arm64_regs
.x
[0] );
614 dump_uint64( ",x1=", &ctx
.integer
.arm64_regs
.x
[1] );
615 dump_uint64( ",x2=", &ctx
.integer
.arm64_regs
.x
[2] );
616 dump_uint64( ",x3=", &ctx
.integer
.arm64_regs
.x
[3] );
617 dump_uint64( ",x4=", &ctx
.integer
.arm64_regs
.x
[4] );
618 dump_uint64( ",x5=", &ctx
.integer
.arm64_regs
.x
[5] );
619 dump_uint64( ",x6=", &ctx
.integer
.arm64_regs
.x
[6] );
620 dump_uint64( ",x7=", &ctx
.integer
.arm64_regs
.x
[7] );
621 dump_uint64( ",x8=", &ctx
.integer
.arm64_regs
.x
[8] );
622 dump_uint64( ",x9=", &ctx
.integer
.arm64_regs
.x
[9] );
623 dump_uint64( ",x10=", &ctx
.integer
.arm64_regs
.x
[10] );
624 dump_uint64( ",x11=", &ctx
.integer
.arm64_regs
.x
[11] );
625 dump_uint64( ",x12=", &ctx
.integer
.arm64_regs
.x
[12] );
626 dump_uint64( ",x13=", &ctx
.integer
.arm64_regs
.x
[13] );
627 dump_uint64( ",x14=", &ctx
.integer
.arm64_regs
.x
[14] );
628 dump_uint64( ",x15=", &ctx
.integer
.arm64_regs
.x
[15] );
629 dump_uint64( ",x16=", &ctx
.integer
.arm64_regs
.x
[16] );
630 dump_uint64( ",x17=", &ctx
.integer
.arm64_regs
.x
[17] );
631 dump_uint64( ",x18=", &ctx
.integer
.arm64_regs
.x
[18] );
632 dump_uint64( ",x19=", &ctx
.integer
.arm64_regs
.x
[19] );
633 dump_uint64( ",x20=", &ctx
.integer
.arm64_regs
.x
[20] );
634 dump_uint64( ",x21=", &ctx
.integer
.arm64_regs
.x
[21] );
635 dump_uint64( ",x22=", &ctx
.integer
.arm64_regs
.x
[22] );
636 dump_uint64( ",x23=", &ctx
.integer
.arm64_regs
.x
[23] );
637 dump_uint64( ",x24=", &ctx
.integer
.arm64_regs
.x
[24] );
638 dump_uint64( ",x25=", &ctx
.integer
.arm64_regs
.x
[25] );
639 dump_uint64( ",x26=", &ctx
.integer
.arm64_regs
.x
[26] );
640 dump_uint64( ",x27=", &ctx
.integer
.arm64_regs
.x
[27] );
641 dump_uint64( ",x28=", &ctx
.integer
.arm64_regs
.x
[28] );
642 dump_uint64( ",x29=", &ctx
.integer
.arm64_regs
.x
[29] );
643 dump_uint64( ",x30=", &ctx
.integer
.arm64_regs
.x
[30] );
647 fputc( '}', stderr
);
651 static void dump_varargs_debug_event( const char *prefix
, data_size_t size
)
658 fprintf( stderr
, "%s{}", prefix
);
661 size
= min( size
, sizeof(event
) );
662 memset( &event
, 0, sizeof(event
) );
663 memcpy( &event
, cur_data
, size
);
667 case EXCEPTION_DEBUG_EVENT
:
668 fprintf( stderr
, "%s{exception,first=%d,exc_code=%08x,flags=%08x", prefix
,
669 event
.exception
.first
, event
.exception
.exc_code
, event
.exception
.flags
);
670 dump_uint64( ",record=", &event
.exception
.record
);
671 dump_uint64( ",address=", &event
.exception
.address
);
672 fprintf( stderr
, ",params={" );
673 event
.exception
.nb_params
= min( event
.exception
.nb_params
, EXCEPTION_MAXIMUM_PARAMETERS
);
674 for (i
= 0; i
< event
.exception
.nb_params
; i
++)
676 dump_uint64( "", &event
.exception
.params
[i
] );
677 if (i
< event
.exception
.nb_params
) fputc( ',', stderr
);
679 fprintf( stderr
, "}}" );
681 case CREATE_THREAD_DEBUG_EVENT
:
682 fprintf( stderr
, "%s{create_thread,thread=%04x", prefix
, event
.create_thread
.handle
);
683 dump_uint64( ",teb=", &event
.create_thread
.teb
);
684 dump_uint64( ",start=", &event
.create_thread
.start
);
685 fputc( '}', stderr
);
687 case CREATE_PROCESS_DEBUG_EVENT
:
688 fprintf( stderr
, "%s{create_process,file=%04x,process=%04x,thread=%04x", prefix
,
689 event
.create_process
.file
, event
.create_process
.process
,
690 event
.create_process
.thread
);
691 dump_uint64( ",base=", &event
.create_process
.base
);
692 fprintf( stderr
, ",offset=%d,size=%d",
693 event
.create_process
.dbg_offset
, event
.create_process
.dbg_size
);
694 dump_uint64( ",teb=", &event
.create_process
.teb
);
695 dump_uint64( ",start=", &event
.create_process
.start
);
696 dump_uint64( ",name=", &event
.create_process
.name
);
697 fprintf( stderr
, ",unicode=%d}", event
.create_process
.unicode
);
699 case EXIT_THREAD_DEBUG_EVENT
:
700 fprintf( stderr
, "%s{exit_thread,code=%d}", prefix
, event
.exit
.exit_code
);
702 case EXIT_PROCESS_DEBUG_EVENT
:
703 fprintf( stderr
, "%s{exit_process,code=%d}", prefix
, event
.exit
.exit_code
);
705 case LOAD_DLL_DEBUG_EVENT
:
706 fprintf( stderr
, "%s{load_dll,file=%04x", prefix
, event
.load_dll
.handle
);
707 dump_uint64( ",base=", &event
.load_dll
.base
);
708 fprintf( stderr
, ",offset=%d,size=%d",
709 event
.load_dll
.dbg_offset
, event
.load_dll
.dbg_size
);
710 dump_uint64( ",name=", &event
.load_dll
.name
);
711 fprintf( stderr
, ",unicode=%d}", event
.load_dll
.unicode
);
713 case UNLOAD_DLL_DEBUG_EVENT
:
714 fprintf( stderr
, "%s{unload_dll", prefix
);
715 dump_uint64( ",base=", &event
.unload_dll
.base
);
716 fputc( '}', stderr
);
718 case 0: /* zero is the code returned on timeouts */
719 fprintf( stderr
, "%s{}", prefix
);
722 fprintf( stderr
, "%s{code=??? (%d)}", prefix
, event
.code
);
728 /* dump a unicode string contained in a buffer; helper for dump_varargs_startup_info */
729 static data_size_t
dump_inline_unicode_string( const char *prefix
, data_size_t pos
, data_size_t len
, data_size_t total_size
)
731 fputs( prefix
, stderr
);
732 if (pos
>= total_size
) return pos
;
733 if (len
> total_size
- pos
) len
= total_size
- pos
;
734 len
/= sizeof(WCHAR
);
735 dump_strW( (const WCHAR
*)cur_data
+ pos
/sizeof(WCHAR
), len
, stderr
, "\"\"" );
736 return pos
+ len
* sizeof(WCHAR
);
739 static void dump_varargs_startup_info( const char *prefix
, data_size_t size
)
742 data_size_t pos
= sizeof(info
);
744 memset( &info
, 0, sizeof(info
) );
745 memcpy( &info
, cur_data
, min( size
, sizeof(info
) ));
748 "%s{debug_flags=%x,console_flags=%x,console=%04x,hstdin=%04x,hstdout=%04x,hstderr=%04x,"
749 "x=%u,y=%u,xsize=%u,ysize=%u,xchars=%u,ychars=%u,attribute=%02x,flags=%x,show=%u",
750 prefix
, info
.debug_flags
, info
.console_flags
, info
.console
,
751 info
.hstdin
, info
.hstdout
, info
.hstderr
, info
.x
, info
.y
, info
.xsize
, info
.ysize
,
752 info
.xchars
, info
.ychars
, info
.attribute
, info
.flags
, info
.show
);
753 pos
= dump_inline_unicode_string( ",curdir=L\"", pos
, info
.curdir_len
, size
);
754 pos
= dump_inline_unicode_string( "\",dllpath=L\"", pos
, info
.dllpath_len
, size
);
755 pos
= dump_inline_unicode_string( "\",imagepath=L\"", pos
, info
.imagepath_len
, size
);
756 pos
= dump_inline_unicode_string( "\",cmdline=L\"", pos
, info
.cmdline_len
, size
);
757 pos
= dump_inline_unicode_string( "\",title=L\"", pos
, info
.title_len
, size
);
758 pos
= dump_inline_unicode_string( "\",desktop=L\"", pos
, info
.desktop_len
, size
);
759 pos
= dump_inline_unicode_string( "\",shellinfo=L\"", pos
, info
.shellinfo_len
, size
);
760 pos
= dump_inline_unicode_string( "\",runtime=L\"", pos
, info
.runtime_len
, size
);
761 fprintf( stderr
, "\"}" );
765 static void dump_varargs_input_records( const char *prefix
, data_size_t size
)
767 const INPUT_RECORD
*rec
= cur_data
;
768 data_size_t len
= size
/ sizeof(*rec
);
770 fprintf( stderr
,"%s{", prefix
);
773 fprintf( stderr
, "{%04x,...}", rec
->EventType
);
775 if (--len
) fputc( ',', stderr
);
777 fputc( '}', stderr
);
781 static void dump_varargs_rectangles( const char *prefix
, data_size_t size
)
783 const rectangle_t
*rect
= cur_data
;
784 data_size_t len
= size
/ sizeof(*rect
);
786 fprintf( stderr
,"%s{", prefix
);
789 dump_rectangle( "", rect
++ );
790 if (--len
) fputc( ',', stderr
);
792 fputc( '}', stderr
);
796 static void dump_varargs_message_data( const char *prefix
, data_size_t size
)
798 /* FIXME: dump the structured data */
799 dump_varargs_bytes( prefix
, size
);
802 static void dump_varargs_properties( const char *prefix
, data_size_t size
)
804 const property_data_t
*prop
= cur_data
;
805 data_size_t len
= size
/ sizeof(*prop
);
807 fprintf( stderr
,"%s{", prefix
);
810 fprintf( stderr
, "{atom=%04x,str=%d", prop
->atom
, prop
->string
);
811 dump_uint64( ",data=", &prop
->data
);
812 fputc( '}', stderr
);
814 if (--len
) fputc( ',', stderr
);
816 fputc( '}', stderr
);
820 static void dump_varargs_LUID_AND_ATTRIBUTES( const char *prefix
, data_size_t size
)
822 const LUID_AND_ATTRIBUTES
*lat
= cur_data
;
823 data_size_t len
= size
/ sizeof(*lat
);
825 fprintf( stderr
,"%s{", prefix
);
828 fprintf( stderr
, "{luid=%08x%08x,attr=%x}",
829 lat
->Luid
.HighPart
, lat
->Luid
.LowPart
, lat
->Attributes
);
831 if (--len
) fputc( ',', stderr
);
833 fputc( '}', stderr
);
837 static void dump_inline_sid( const char *prefix
, const SID
*sid
, data_size_t size
)
842 if ((FIELD_OFFSET(SID
, SubAuthority
[0]) > size
) ||
843 (FIELD_OFFSET(SID
, SubAuthority
[sid
->SubAuthorityCount
]) > size
))
845 fprintf( stderr
, "<invalid sid>" );
849 fprintf( stderr
,"%s{", prefix
);
850 fprintf( stderr
, "S-%u-%u", sid
->Revision
, MAKELONG(
851 MAKEWORD( sid
->IdentifierAuthority
.Value
[5],
852 sid
->IdentifierAuthority
.Value
[4] ),
853 MAKEWORD( sid
->IdentifierAuthority
.Value
[3],
854 sid
->IdentifierAuthority
.Value
[2] ) ) );
855 for (i
= 0; i
< sid
->SubAuthorityCount
; i
++)
856 fprintf( stderr
, "-%u", sid
->SubAuthority
[i
] );
857 fputc( '}', stderr
);
860 static void dump_varargs_SID( const char *prefix
, data_size_t size
)
862 const SID
*sid
= cur_data
;
863 dump_inline_sid( prefix
, sid
, size
);
867 static void dump_inline_acl( const char *prefix
, const ACL
*acl
, data_size_t size
)
869 const ACE_HEADER
*ace
;
872 fprintf( stderr
,"%s{", prefix
);
875 if (size
< sizeof(ACL
))
877 fprintf( stderr
, "<invalid acl>}" );
881 ace
= (const ACE_HEADER
*)(acl
+ 1);
882 for (i
= 0; i
< acl
->AceCount
; i
++)
884 const SID
*sid
= NULL
;
885 data_size_t sid_size
= 0;
887 if (size
< sizeof(ACE_HEADER
) || size
< ace
->AceSize
) break;
888 size
-= ace
->AceSize
;
889 if (i
!= 0) fputc( ',', stderr
);
890 fprintf( stderr
, "{AceType=" );
891 switch (ace
->AceType
)
893 case ACCESS_DENIED_ACE_TYPE
:
894 sid
= (const SID
*)&((const ACCESS_DENIED_ACE
*)ace
)->SidStart
;
895 sid_size
= ace
->AceSize
- FIELD_OFFSET(ACCESS_DENIED_ACE
, SidStart
);
896 fprintf( stderr
, "ACCESS_DENIED_ACE_TYPE,Mask=%x",
897 ((const ACCESS_DENIED_ACE
*)ace
)->Mask
);
899 case ACCESS_ALLOWED_ACE_TYPE
:
900 sid
= (const SID
*)&((const ACCESS_ALLOWED_ACE
*)ace
)->SidStart
;
901 sid_size
= ace
->AceSize
- FIELD_OFFSET(ACCESS_ALLOWED_ACE
, SidStart
);
902 fprintf( stderr
, "ACCESS_ALLOWED_ACE_TYPE,Mask=%x",
903 ((const ACCESS_ALLOWED_ACE
*)ace
)->Mask
);
905 case SYSTEM_AUDIT_ACE_TYPE
:
906 sid
= (const SID
*)&((const SYSTEM_AUDIT_ACE
*)ace
)->SidStart
;
907 sid_size
= ace
->AceSize
- FIELD_OFFSET(SYSTEM_AUDIT_ACE
, SidStart
);
908 fprintf( stderr
, "SYSTEM_AUDIT_ACE_TYPE,Mask=%x",
909 ((const SYSTEM_AUDIT_ACE
*)ace
)->Mask
);
911 case SYSTEM_ALARM_ACE_TYPE
:
912 sid
= (const SID
*)&((const SYSTEM_ALARM_ACE
*)ace
)->SidStart
;
913 sid_size
= ace
->AceSize
- FIELD_OFFSET(SYSTEM_ALARM_ACE
, SidStart
);
914 fprintf( stderr
, "SYSTEM_ALARM_ACE_TYPE,Mask=%x",
915 ((const SYSTEM_ALARM_ACE
*)ace
)->Mask
);
917 case SYSTEM_MANDATORY_LABEL_ACE_TYPE
:
918 sid
= (const SID
*)&((const SYSTEM_MANDATORY_LABEL_ACE
*)ace
)->SidStart
;
919 sid_size
= ace
->AceSize
- FIELD_OFFSET(SYSTEM_MANDATORY_LABEL_ACE
, SidStart
);
920 fprintf( stderr
, "SYSTEM_MANDATORY_LABEL_ACE_TYPE,Mask=%x",
921 ((const SYSTEM_MANDATORY_LABEL_ACE
*)ace
)->Mask
);
924 fprintf( stderr
, "unknown<%d>", ace
->AceType
);
927 fprintf( stderr
, ",AceFlags=%x", ace
->AceFlags
);
929 dump_inline_sid( ",Sid=", sid
, sid_size
);
930 ace
= (const ACE_HEADER
*)((const char *)ace
+ ace
->AceSize
);
931 fputc( '}', stderr
);
934 fputc( '}', stderr
);
937 static void dump_varargs_ACL( const char *prefix
, data_size_t size
)
939 const ACL
*acl
= cur_data
;
940 dump_inline_acl( prefix
, acl
, size
);
944 static void dump_inline_security_descriptor( const char *prefix
, const struct security_descriptor
*sd
, data_size_t size
)
946 fprintf( stderr
,"%s{", prefix
);
947 if (size
>= sizeof(struct security_descriptor
))
949 size_t offset
= sizeof(struct security_descriptor
);
950 fprintf( stderr
, "control=%08x", sd
->control
);
951 if ((sd
->owner_len
> FIELD_OFFSET(SID
, SubAuthority
[255])) || (offset
+ sd
->owner_len
> size
))
954 dump_inline_sid( ",owner=", (const SID
*)((const char *)sd
+ offset
), sd
->owner_len
);
956 fprintf( stderr
, ",owner=<not present>" );
957 offset
+= sd
->owner_len
;
958 if ((sd
->group_len
> FIELD_OFFSET(SID
, SubAuthority
[255])) || (offset
+ sd
->group_len
> size
))
961 dump_inline_sid( ",group=", (const SID
*)((const char *)sd
+ offset
), sd
->group_len
);
963 fprintf( stderr
, ",group=<not present>" );
964 offset
+= sd
->group_len
;
965 if ((sd
->sacl_len
>= MAX_ACL_LEN
) || (offset
+ sd
->sacl_len
> size
))
967 dump_inline_acl( ",sacl=", (const ACL
*)((const char *)sd
+ offset
), sd
->sacl_len
);
968 offset
+= sd
->sacl_len
;
969 if ((sd
->dacl_len
>= MAX_ACL_LEN
) || (offset
+ sd
->dacl_len
> size
))
971 dump_inline_acl( ",dacl=", (const ACL
*)((const char *)sd
+ offset
), sd
->dacl_len
);
972 offset
+= sd
->dacl_len
;
974 fputc( '}', stderr
);
977 static void dump_varargs_security_descriptor( const char *prefix
, data_size_t size
)
979 const struct security_descriptor
*sd
= cur_data
;
980 dump_inline_security_descriptor( prefix
, sd
, size
);
984 static void dump_varargs_token_groups( const char *prefix
, data_size_t size
)
986 const struct token_groups
*tg
= cur_data
;
988 fprintf( stderr
,"%s{", prefix
);
989 if (size
>= sizeof(struct token_groups
))
991 size_t offset
= sizeof(*tg
);
992 fprintf( stderr
, "count=%08x,", tg
->count
);
993 if (tg
->count
* sizeof(unsigned int) <= size
)
996 const unsigned int *attr
= (const unsigned int *)(tg
+ 1);
998 offset
+= tg
->count
* sizeof(unsigned int);
1000 fputc( '[', stderr
);
1001 for (i
= 0; i
< tg
->count
; i
++)
1003 const SID
*sid
= (const SID
*)((const char *)cur_data
+ offset
);
1005 fputc( ',', stderr
);
1006 fputc( '{', stderr
);
1007 fprintf( stderr
, "attributes=%08x", attr
[i
] );
1008 dump_inline_sid( ",sid=", sid
, size
- offset
);
1009 if ((offset
+ FIELD_OFFSET(SID
, SubAuthority
[0]) > size
) ||
1010 (offset
+ FIELD_OFFSET(SID
, SubAuthority
[sid
->SubAuthorityCount
]) > size
))
1012 offset
+= FIELD_OFFSET(SID
, SubAuthority
[sid
->SubAuthorityCount
]);
1013 fputc( '}', stderr
);
1015 fputc( ']', stderr
);
1018 fputc( '}', stderr
);
1021 static void dump_varargs_object_attributes( const char *prefix
, data_size_t size
)
1023 const struct object_attributes
*objattr
= cur_data
;
1025 fprintf( stderr
,"%s{", prefix
);
1026 if (size
>= sizeof(struct object_attributes
))
1029 fprintf( stderr
, "rootdir=%04x", objattr
->rootdir
);
1030 if (objattr
->sd_len
> size
- sizeof(*objattr
) ||
1031 objattr
->name_len
> size
- sizeof(*objattr
) - objattr
->sd_len
)
1033 dump_inline_security_descriptor( ",sd=", (const struct security_descriptor
*)(objattr
+ 1), objattr
->sd_len
);
1034 str
= (const WCHAR
*)objattr
+ (sizeof(*objattr
) + objattr
->sd_len
) / sizeof(WCHAR
);
1035 fprintf( stderr
, ",name=L\"" );
1036 dump_strW( str
, objattr
->name_len
/ sizeof(WCHAR
), stderr
, "\"\"" );
1037 fputc( '\"', stderr
);
1038 remove_data( ((sizeof(*objattr
) + objattr
->sd_len
) / sizeof(WCHAR
)) * sizeof(WCHAR
) +
1039 objattr
->name_len
);
1041 fputc( '}', stderr
);
1044 static void dump_varargs_filesystem_event( const char *prefix
, data_size_t size
)
1046 static const char * const actions
[] = {
1058 fprintf( stderr
,"%s{", prefix
);
1061 const struct filesystem_event
*event
= cur_data
;
1062 data_size_t len
= (offsetof( struct filesystem_event
, name
[event
->len
] ) + sizeof(int)-1)
1063 / sizeof(int) * sizeof(int);
1064 if (size
< len
) break;
1065 if (event
->action
< sizeof(actions
)/sizeof(actions
[0]) && actions
[event
->action
])
1066 fprintf( stderr
, "{action=%s", actions
[event
->action
] );
1068 fprintf( stderr
, "{action=%u", event
->action
);
1069 fprintf( stderr
, ",name=\"%.*s\"}", event
->len
, event
->name
);
1072 if (size
)fputc( ',', stderr
);
1074 fputc( '}', stderr
);
1077 static void dump_varargs_rawinput_devices(const char *prefix
, data_size_t size
)
1079 const struct rawinput_device
*device
;
1081 fprintf( stderr
, "%s{", prefix
);
1082 while (size
>= sizeof(*device
))
1085 fprintf( stderr
, "{usage_page=%04x,usage=%04x,flags=%08x,target=%08x}",
1086 device
->usage_page
, device
->usage
, device
->flags
, device
->target
);
1087 size
-= sizeof(*device
);
1088 remove_data( sizeof(*device
) );
1089 if (size
) fputc( ',', stderr
);
1091 fputc( '}', stderr
);
1094 typedef void (*dump_func
)( const void *req
);
1096 /* Everything below this line is generated automatically by tools/make_requests */
1097 /* ### make_requests begin ### */
1099 static void dump_new_process_request( const struct new_process_request
*req
)
1101 fprintf( stderr
, " inherit_all=%d", req
->inherit_all
);
1102 fprintf( stderr
, ", create_flags=%08x", req
->create_flags
);
1103 fprintf( stderr
, ", socket_fd=%d", req
->socket_fd
);
1104 fprintf( stderr
, ", exe_file=%04x", req
->exe_file
);
1105 fprintf( stderr
, ", process_access=%08x", req
->process_access
);
1106 fprintf( stderr
, ", process_attr=%08x", req
->process_attr
);
1107 fprintf( stderr
, ", thread_access=%08x", req
->thread_access
);
1108 fprintf( stderr
, ", thread_attr=%08x", req
->thread_attr
);
1109 dump_cpu_type( ", cpu=", &req
->cpu
);
1110 fprintf( stderr
, ", info_size=%u", req
->info_size
);
1111 dump_varargs_startup_info( ", info=", min(cur_size
,req
->info_size
) );
1112 dump_varargs_unicode_str( ", env=", cur_size
);
1115 static void dump_new_process_reply( const struct new_process_reply
*req
)
1117 fprintf( stderr
, " info=%04x", req
->info
);
1118 fprintf( stderr
, ", pid=%04x", req
->pid
);
1119 fprintf( stderr
, ", phandle=%04x", req
->phandle
);
1120 fprintf( stderr
, ", tid=%04x", req
->tid
);
1121 fprintf( stderr
, ", thandle=%04x", req
->thandle
);
1124 static void dump_get_new_process_info_request( const struct get_new_process_info_request
*req
)
1126 fprintf( stderr
, " info=%04x", req
->info
);
1129 static void dump_get_new_process_info_reply( const struct get_new_process_info_reply
*req
)
1131 fprintf( stderr
, " success=%d", req
->success
);
1132 fprintf( stderr
, ", exit_code=%d", req
->exit_code
);
1135 static void dump_new_thread_request( const struct new_thread_request
*req
)
1137 fprintf( stderr
, " access=%08x", req
->access
);
1138 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1139 fprintf( stderr
, ", suspend=%d", req
->suspend
);
1140 fprintf( stderr
, ", request_fd=%d", req
->request_fd
);
1143 static void dump_new_thread_reply( const struct new_thread_reply
*req
)
1145 fprintf( stderr
, " tid=%04x", req
->tid
);
1146 fprintf( stderr
, ", handle=%04x", req
->handle
);
1149 static void dump_get_startup_info_request( const struct get_startup_info_request
*req
)
1153 static void dump_get_startup_info_reply( const struct get_startup_info_reply
*req
)
1155 fprintf( stderr
, " exe_file=%04x", req
->exe_file
);
1156 fprintf( stderr
, ", info_size=%u", req
->info_size
);
1157 dump_varargs_startup_info( ", info=", min(cur_size
,req
->info_size
) );
1158 dump_varargs_unicode_str( ", env=", cur_size
);
1161 static void dump_init_process_done_request( const struct init_process_done_request
*req
)
1163 fprintf( stderr
, " gui=%d", req
->gui
);
1164 dump_uint64( ", module=", &req
->module
);
1165 dump_uint64( ", ldt_copy=", &req
->ldt_copy
);
1166 dump_uint64( ", entry=", &req
->entry
);
1169 static void dump_init_thread_request( const struct init_thread_request
*req
)
1171 fprintf( stderr
, " unix_pid=%d", req
->unix_pid
);
1172 fprintf( stderr
, ", unix_tid=%d", req
->unix_tid
);
1173 fprintf( stderr
, ", debug_level=%d", req
->debug_level
);
1174 dump_uint64( ", teb=", &req
->teb
);
1175 dump_uint64( ", entry=", &req
->entry
);
1176 fprintf( stderr
, ", reply_fd=%d", req
->reply_fd
);
1177 fprintf( stderr
, ", wait_fd=%d", req
->wait_fd
);
1178 dump_cpu_type( ", cpu=", &req
->cpu
);
1181 static void dump_init_thread_reply( const struct init_thread_reply
*req
)
1183 fprintf( stderr
, " pid=%04x", req
->pid
);
1184 fprintf( stderr
, ", tid=%04x", req
->tid
);
1185 dump_timeout( ", server_start=", &req
->server_start
);
1186 fprintf( stderr
, ", info_size=%u", req
->info_size
);
1187 fprintf( stderr
, ", version=%d", req
->version
);
1188 fprintf( stderr
, ", all_cpus=%08x", req
->all_cpus
);
1191 static void dump_terminate_process_request( const struct terminate_process_request
*req
)
1193 fprintf( stderr
, " handle=%04x", req
->handle
);
1194 fprintf( stderr
, ", exit_code=%d", req
->exit_code
);
1197 static void dump_terminate_process_reply( const struct terminate_process_reply
*req
)
1199 fprintf( stderr
, " self=%d", req
->self
);
1202 static void dump_terminate_thread_request( const struct terminate_thread_request
*req
)
1204 fprintf( stderr
, " handle=%04x", req
->handle
);
1205 fprintf( stderr
, ", exit_code=%d", req
->exit_code
);
1208 static void dump_terminate_thread_reply( const struct terminate_thread_reply
*req
)
1210 fprintf( stderr
, " self=%d", req
->self
);
1211 fprintf( stderr
, ", last=%d", req
->last
);
1214 static void dump_get_process_info_request( const struct get_process_info_request
*req
)
1216 fprintf( stderr
, " handle=%04x", req
->handle
);
1219 static void dump_get_process_info_reply( const struct get_process_info_reply
*req
)
1221 fprintf( stderr
, " pid=%04x", req
->pid
);
1222 fprintf( stderr
, ", ppid=%04x", req
->ppid
);
1223 dump_uint64( ", affinity=", &req
->affinity
);
1224 dump_uint64( ", peb=", &req
->peb
);
1225 dump_timeout( ", start_time=", &req
->start_time
);
1226 dump_timeout( ", end_time=", &req
->end_time
);
1227 fprintf( stderr
, ", exit_code=%d", req
->exit_code
);
1228 fprintf( stderr
, ", priority=%d", req
->priority
);
1229 dump_cpu_type( ", cpu=", &req
->cpu
);
1230 fprintf( stderr
, ", debugger_present=%d", req
->debugger_present
);
1233 static void dump_set_process_info_request( const struct set_process_info_request
*req
)
1235 fprintf( stderr
, " handle=%04x", req
->handle
);
1236 fprintf( stderr
, ", mask=%d", req
->mask
);
1237 fprintf( stderr
, ", priority=%d", req
->priority
);
1238 dump_uint64( ", affinity=", &req
->affinity
);
1241 static void dump_get_thread_info_request( const struct get_thread_info_request
*req
)
1243 fprintf( stderr
, " handle=%04x", req
->handle
);
1244 fprintf( stderr
, ", tid_in=%04x", req
->tid_in
);
1247 static void dump_get_thread_info_reply( const struct get_thread_info_reply
*req
)
1249 fprintf( stderr
, " pid=%04x", req
->pid
);
1250 fprintf( stderr
, ", tid=%04x", req
->tid
);
1251 dump_uint64( ", teb=", &req
->teb
);
1252 dump_uint64( ", affinity=", &req
->affinity
);
1253 dump_timeout( ", creation_time=", &req
->creation_time
);
1254 dump_timeout( ", exit_time=", &req
->exit_time
);
1255 fprintf( stderr
, ", exit_code=%d", req
->exit_code
);
1256 fprintf( stderr
, ", priority=%d", req
->priority
);
1257 fprintf( stderr
, ", last=%d", req
->last
);
1260 static void dump_set_thread_info_request( const struct set_thread_info_request
*req
)
1262 fprintf( stderr
, " handle=%04x", req
->handle
);
1263 fprintf( stderr
, ", mask=%d", req
->mask
);
1264 fprintf( stderr
, ", priority=%d", req
->priority
);
1265 dump_uint64( ", affinity=", &req
->affinity
);
1266 fprintf( stderr
, ", token=%04x", req
->token
);
1269 static void dump_get_dll_info_request( const struct get_dll_info_request
*req
)
1271 fprintf( stderr
, " handle=%04x", req
->handle
);
1272 dump_uint64( ", base_address=", &req
->base_address
);
1275 static void dump_get_dll_info_reply( const struct get_dll_info_reply
*req
)
1277 dump_uint64( " entry_point=", &req
->entry_point
);
1278 fprintf( stderr
, ", size=%u", req
->size
);
1279 fprintf( stderr
, ", filename_len=%u", req
->filename_len
);
1280 dump_varargs_unicode_str( ", filename=", cur_size
);
1283 static void dump_suspend_thread_request( const struct suspend_thread_request
*req
)
1285 fprintf( stderr
, " handle=%04x", req
->handle
);
1288 static void dump_suspend_thread_reply( const struct suspend_thread_reply
*req
)
1290 fprintf( stderr
, " count=%d", req
->count
);
1293 static void dump_resume_thread_request( const struct resume_thread_request
*req
)
1295 fprintf( stderr
, " handle=%04x", req
->handle
);
1298 static void dump_resume_thread_reply( const struct resume_thread_reply
*req
)
1300 fprintf( stderr
, " count=%d", req
->count
);
1303 static void dump_load_dll_request( const struct load_dll_request
*req
)
1305 fprintf( stderr
, " mapping=%04x", req
->mapping
);
1306 dump_uint64( ", base=", &req
->base
);
1307 dump_uint64( ", name=", &req
->name
);
1308 fprintf( stderr
, ", size=%u", req
->size
);
1309 fprintf( stderr
, ", dbg_offset=%d", req
->dbg_offset
);
1310 fprintf( stderr
, ", dbg_size=%d", req
->dbg_size
);
1311 dump_varargs_unicode_str( ", filename=", cur_size
);
1314 static void dump_unload_dll_request( const struct unload_dll_request
*req
)
1316 dump_uint64( " base=", &req
->base
);
1319 static void dump_queue_apc_request( const struct queue_apc_request
*req
)
1321 fprintf( stderr
, " handle=%04x", req
->handle
);
1322 dump_apc_call( ", call=", &req
->call
);
1325 static void dump_queue_apc_reply( const struct queue_apc_reply
*req
)
1327 fprintf( stderr
, " handle=%04x", req
->handle
);
1328 fprintf( stderr
, ", self=%d", req
->self
);
1331 static void dump_get_apc_result_request( const struct get_apc_result_request
*req
)
1333 fprintf( stderr
, " handle=%04x", req
->handle
);
1336 static void dump_get_apc_result_reply( const struct get_apc_result_reply
*req
)
1338 dump_apc_result( " result=", &req
->result
);
1341 static void dump_close_handle_request( const struct close_handle_request
*req
)
1343 fprintf( stderr
, " handle=%04x", req
->handle
);
1346 static void dump_set_handle_info_request( const struct set_handle_info_request
*req
)
1348 fprintf( stderr
, " handle=%04x", req
->handle
);
1349 fprintf( stderr
, ", flags=%d", req
->flags
);
1350 fprintf( stderr
, ", mask=%d", req
->mask
);
1353 static void dump_set_handle_info_reply( const struct set_handle_info_reply
*req
)
1355 fprintf( stderr
, " old_flags=%d", req
->old_flags
);
1358 static void dump_dup_handle_request( const struct dup_handle_request
*req
)
1360 fprintf( stderr
, " src_process=%04x", req
->src_process
);
1361 fprintf( stderr
, ", src_handle=%04x", req
->src_handle
);
1362 fprintf( stderr
, ", dst_process=%04x", req
->dst_process
);
1363 fprintf( stderr
, ", access=%08x", req
->access
);
1364 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1365 fprintf( stderr
, ", options=%08x", req
->options
);
1368 static void dump_dup_handle_reply( const struct dup_handle_reply
*req
)
1370 fprintf( stderr
, " handle=%04x", req
->handle
);
1371 fprintf( stderr
, ", self=%d", req
->self
);
1372 fprintf( stderr
, ", closed=%d", req
->closed
);
1375 static void dump_open_process_request( const struct open_process_request
*req
)
1377 fprintf( stderr
, " pid=%04x", req
->pid
);
1378 fprintf( stderr
, ", access=%08x", req
->access
);
1379 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1382 static void dump_open_process_reply( const struct open_process_reply
*req
)
1384 fprintf( stderr
, " handle=%04x", req
->handle
);
1387 static void dump_open_thread_request( const struct open_thread_request
*req
)
1389 fprintf( stderr
, " tid=%04x", req
->tid
);
1390 fprintf( stderr
, ", access=%08x", req
->access
);
1391 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1394 static void dump_open_thread_reply( const struct open_thread_reply
*req
)
1396 fprintf( stderr
, " handle=%04x", req
->handle
);
1399 static void dump_select_request( const struct select_request
*req
)
1401 fprintf( stderr
, " flags=%d", req
->flags
);
1402 dump_uint64( ", cookie=", &req
->cookie
);
1403 dump_timeout( ", timeout=", &req
->timeout
);
1404 fprintf( stderr
, ", prev_apc=%04x", req
->prev_apc
);
1405 dump_varargs_apc_result( ", result=", cur_size
);
1406 dump_varargs_select_op( ", data=", cur_size
);
1409 static void dump_select_reply( const struct select_reply
*req
)
1411 dump_timeout( " timeout=", &req
->timeout
);
1412 dump_apc_call( ", call=", &req
->call
);
1413 fprintf( stderr
, ", apc_handle=%04x", req
->apc_handle
);
1416 static void dump_create_event_request( const struct create_event_request
*req
)
1418 fprintf( stderr
, " access=%08x", req
->access
);
1419 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1420 fprintf( stderr
, ", manual_reset=%d", req
->manual_reset
);
1421 fprintf( stderr
, ", initial_state=%d", req
->initial_state
);
1422 dump_varargs_object_attributes( ", objattr=", cur_size
);
1425 static void dump_create_event_reply( const struct create_event_reply
*req
)
1427 fprintf( stderr
, " handle=%04x", req
->handle
);
1430 static void dump_event_op_request( const struct event_op_request
*req
)
1432 fprintf( stderr
, " handle=%04x", req
->handle
);
1433 fprintf( stderr
, ", op=%d", req
->op
);
1436 static void dump_query_event_request( const struct query_event_request
*req
)
1438 fprintf( stderr
, " handle=%04x", req
->handle
);
1441 static void dump_query_event_reply( const struct query_event_reply
*req
)
1443 fprintf( stderr
, " manual_reset=%d", req
->manual_reset
);
1444 fprintf( stderr
, ", state=%d", req
->state
);
1447 static void dump_open_event_request( const struct open_event_request
*req
)
1449 fprintf( stderr
, " access=%08x", req
->access
);
1450 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1451 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
1452 dump_varargs_unicode_str( ", name=", cur_size
);
1455 static void dump_open_event_reply( const struct open_event_reply
*req
)
1457 fprintf( stderr
, " handle=%04x", req
->handle
);
1460 static void dump_create_keyed_event_request( const struct create_keyed_event_request
*req
)
1462 fprintf( stderr
, " access=%08x", req
->access
);
1463 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1464 dump_varargs_object_attributes( ", objattr=", cur_size
);
1467 static void dump_create_keyed_event_reply( const struct create_keyed_event_reply
*req
)
1469 fprintf( stderr
, " handle=%04x", req
->handle
);
1472 static void dump_open_keyed_event_request( const struct open_keyed_event_request
*req
)
1474 fprintf( stderr
, " access=%08x", req
->access
);
1475 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1476 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
1477 dump_varargs_unicode_str( ", name=", cur_size
);
1480 static void dump_open_keyed_event_reply( const struct open_keyed_event_reply
*req
)
1482 fprintf( stderr
, " handle=%04x", req
->handle
);
1485 static void dump_create_mutex_request( const struct create_mutex_request
*req
)
1487 fprintf( stderr
, " access=%08x", req
->access
);
1488 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1489 fprintf( stderr
, ", owned=%d", req
->owned
);
1490 dump_varargs_object_attributes( ", objattr=", cur_size
);
1493 static void dump_create_mutex_reply( const struct create_mutex_reply
*req
)
1495 fprintf( stderr
, " handle=%04x", req
->handle
);
1498 static void dump_release_mutex_request( const struct release_mutex_request
*req
)
1500 fprintf( stderr
, " handle=%04x", req
->handle
);
1503 static void dump_release_mutex_reply( const struct release_mutex_reply
*req
)
1505 fprintf( stderr
, " prev_count=%08x", req
->prev_count
);
1508 static void dump_open_mutex_request( const struct open_mutex_request
*req
)
1510 fprintf( stderr
, " access=%08x", req
->access
);
1511 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1512 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
1513 dump_varargs_unicode_str( ", name=", cur_size
);
1516 static void dump_open_mutex_reply( const struct open_mutex_reply
*req
)
1518 fprintf( stderr
, " handle=%04x", req
->handle
);
1521 static void dump_create_semaphore_request( const struct create_semaphore_request
*req
)
1523 fprintf( stderr
, " access=%08x", req
->access
);
1524 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1525 fprintf( stderr
, ", initial=%08x", req
->initial
);
1526 fprintf( stderr
, ", max=%08x", req
->max
);
1527 dump_varargs_object_attributes( ", objattr=", cur_size
);
1530 static void dump_create_semaphore_reply( const struct create_semaphore_reply
*req
)
1532 fprintf( stderr
, " handle=%04x", req
->handle
);
1535 static void dump_release_semaphore_request( const struct release_semaphore_request
*req
)
1537 fprintf( stderr
, " handle=%04x", req
->handle
);
1538 fprintf( stderr
, ", count=%08x", req
->count
);
1541 static void dump_release_semaphore_reply( const struct release_semaphore_reply
*req
)
1543 fprintf( stderr
, " prev_count=%08x", req
->prev_count
);
1546 static void dump_query_semaphore_request( const struct query_semaphore_request
*req
)
1548 fprintf( stderr
, " handle=%04x", req
->handle
);
1551 static void dump_query_semaphore_reply( const struct query_semaphore_reply
*req
)
1553 fprintf( stderr
, " current=%08x", req
->current
);
1554 fprintf( stderr
, ", max=%08x", req
->max
);
1557 static void dump_open_semaphore_request( const struct open_semaphore_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_semaphore_reply( const struct open_semaphore_reply
*req
)
1567 fprintf( stderr
, " handle=%04x", req
->handle
);
1570 static void dump_create_file_request( const struct create_file_request
*req
)
1572 fprintf( stderr
, " access=%08x", req
->access
);
1573 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1574 fprintf( stderr
, ", sharing=%08x", req
->sharing
);
1575 fprintf( stderr
, ", create=%d", req
->create
);
1576 fprintf( stderr
, ", options=%08x", req
->options
);
1577 fprintf( stderr
, ", attrs=%08x", req
->attrs
);
1578 dump_varargs_object_attributes( ", objattr=", cur_size
);
1579 dump_varargs_string( ", filename=", cur_size
);
1582 static void dump_create_file_reply( const struct create_file_reply
*req
)
1584 fprintf( stderr
, " handle=%04x", req
->handle
);
1587 static void dump_open_file_object_request( const struct open_file_object_request
*req
)
1589 fprintf( stderr
, " access=%08x", req
->access
);
1590 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1591 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
1592 fprintf( stderr
, ", sharing=%08x", req
->sharing
);
1593 fprintf( stderr
, ", options=%08x", req
->options
);
1594 dump_varargs_unicode_str( ", filename=", cur_size
);
1597 static void dump_open_file_object_reply( const struct open_file_object_reply
*req
)
1599 fprintf( stderr
, " handle=%04x", req
->handle
);
1602 static void dump_alloc_file_handle_request( const struct alloc_file_handle_request
*req
)
1604 fprintf( stderr
, " access=%08x", req
->access
);
1605 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1606 fprintf( stderr
, ", fd=%d", req
->fd
);
1609 static void dump_alloc_file_handle_reply( const struct alloc_file_handle_reply
*req
)
1611 fprintf( stderr
, " handle=%04x", req
->handle
);
1614 static void dump_get_handle_unix_name_request( const struct get_handle_unix_name_request
*req
)
1616 fprintf( stderr
, " handle=%04x", req
->handle
);
1619 static void dump_get_handle_unix_name_reply( const struct get_handle_unix_name_reply
*req
)
1621 fprintf( stderr
, " name_len=%u", req
->name_len
);
1622 dump_varargs_string( ", name=", cur_size
);
1625 static void dump_get_handle_fd_request( const struct get_handle_fd_request
*req
)
1627 fprintf( stderr
, " handle=%04x", req
->handle
);
1630 static void dump_get_handle_fd_reply( const struct get_handle_fd_reply
*req
)
1632 fprintf( stderr
, " type=%d", req
->type
);
1633 fprintf( stderr
, ", cacheable=%d", req
->cacheable
);
1634 fprintf( stderr
, ", access=%08x", req
->access
);
1635 fprintf( stderr
, ", options=%08x", req
->options
);
1638 static void dump_flush_file_request( const struct flush_file_request
*req
)
1640 fprintf( stderr
, " handle=%04x", req
->handle
);
1643 static void dump_flush_file_reply( const struct flush_file_reply
*req
)
1645 fprintf( stderr
, " event=%04x", req
->event
);
1648 static void dump_lock_file_request( const struct lock_file_request
*req
)
1650 fprintf( stderr
, " handle=%04x", req
->handle
);
1651 dump_uint64( ", offset=", &req
->offset
);
1652 dump_uint64( ", count=", &req
->count
);
1653 fprintf( stderr
, ", shared=%d", req
->shared
);
1654 fprintf( stderr
, ", wait=%d", req
->wait
);
1657 static void dump_lock_file_reply( const struct lock_file_reply
*req
)
1659 fprintf( stderr
, " handle=%04x", req
->handle
);
1660 fprintf( stderr
, ", overlapped=%d", req
->overlapped
);
1663 static void dump_unlock_file_request( const struct unlock_file_request
*req
)
1665 fprintf( stderr
, " handle=%04x", req
->handle
);
1666 dump_uint64( ", offset=", &req
->offset
);
1667 dump_uint64( ", count=", &req
->count
);
1670 static void dump_create_socket_request( const struct create_socket_request
*req
)
1672 fprintf( stderr
, " access=%08x", req
->access
);
1673 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1674 fprintf( stderr
, ", family=%d", req
->family
);
1675 fprintf( stderr
, ", type=%d", req
->type
);
1676 fprintf( stderr
, ", protocol=%d", req
->protocol
);
1677 fprintf( stderr
, ", flags=%08x", req
->flags
);
1680 static void dump_create_socket_reply( const struct create_socket_reply
*req
)
1682 fprintf( stderr
, " handle=%04x", req
->handle
);
1685 static void dump_accept_socket_request( const struct accept_socket_request
*req
)
1687 fprintf( stderr
, " lhandle=%04x", req
->lhandle
);
1688 fprintf( stderr
, ", access=%08x", req
->access
);
1689 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1692 static void dump_accept_socket_reply( const struct accept_socket_reply
*req
)
1694 fprintf( stderr
, " handle=%04x", req
->handle
);
1697 static void dump_accept_into_socket_request( const struct accept_into_socket_request
*req
)
1699 fprintf( stderr
, " lhandle=%04x", req
->lhandle
);
1700 fprintf( stderr
, ", ahandle=%04x", req
->ahandle
);
1703 static void dump_set_socket_event_request( const struct set_socket_event_request
*req
)
1705 fprintf( stderr
, " handle=%04x", req
->handle
);
1706 fprintf( stderr
, ", mask=%08x", req
->mask
);
1707 fprintf( stderr
, ", event=%04x", req
->event
);
1708 fprintf( stderr
, ", window=%08x", req
->window
);
1709 fprintf( stderr
, ", msg=%08x", req
->msg
);
1712 static void dump_get_socket_event_request( const struct get_socket_event_request
*req
)
1714 fprintf( stderr
, " handle=%04x", req
->handle
);
1715 fprintf( stderr
, ", service=%d", req
->service
);
1716 fprintf( stderr
, ", c_event=%04x", req
->c_event
);
1719 static void dump_get_socket_event_reply( const struct get_socket_event_reply
*req
)
1721 fprintf( stderr
, " mask=%08x", req
->mask
);
1722 fprintf( stderr
, ", pmask=%08x", req
->pmask
);
1723 fprintf( stderr
, ", state=%08x", req
->state
);
1724 dump_varargs_ints( ", errors=", cur_size
);
1727 static void dump_get_socket_info_request( const struct get_socket_info_request
*req
)
1729 fprintf( stderr
, " handle=%04x", req
->handle
);
1732 static void dump_get_socket_info_reply( const struct get_socket_info_reply
*req
)
1734 fprintf( stderr
, " family=%d", req
->family
);
1735 fprintf( stderr
, ", type=%d", req
->type
);
1736 fprintf( stderr
, ", protocol=%d", req
->protocol
);
1739 static void dump_enable_socket_event_request( const struct enable_socket_event_request
*req
)
1741 fprintf( stderr
, " handle=%04x", req
->handle
);
1742 fprintf( stderr
, ", mask=%08x", req
->mask
);
1743 fprintf( stderr
, ", sstate=%08x", req
->sstate
);
1744 fprintf( stderr
, ", cstate=%08x", req
->cstate
);
1747 static void dump_set_socket_deferred_request( const struct set_socket_deferred_request
*req
)
1749 fprintf( stderr
, " handle=%04x", req
->handle
);
1750 fprintf( stderr
, ", deferred=%04x", req
->deferred
);
1753 static void dump_alloc_console_request( const struct alloc_console_request
*req
)
1755 fprintf( stderr
, " access=%08x", req
->access
);
1756 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1757 fprintf( stderr
, ", pid=%04x", req
->pid
);
1758 fprintf( stderr
, ", input_fd=%d", req
->input_fd
);
1761 static void dump_alloc_console_reply( const struct alloc_console_reply
*req
)
1763 fprintf( stderr
, " handle_in=%04x", req
->handle_in
);
1764 fprintf( stderr
, ", event=%04x", req
->event
);
1767 static void dump_free_console_request( const struct free_console_request
*req
)
1771 static void dump_get_console_renderer_events_request( const struct get_console_renderer_events_request
*req
)
1773 fprintf( stderr
, " handle=%04x", req
->handle
);
1776 static void dump_get_console_renderer_events_reply( const struct get_console_renderer_events_reply
*req
)
1778 dump_varargs_bytes( " data=", cur_size
);
1781 static void dump_open_console_request( const struct open_console_request
*req
)
1783 fprintf( stderr
, " from=%04x", req
->from
);
1784 fprintf( stderr
, ", access=%08x", req
->access
);
1785 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1786 fprintf( stderr
, ", share=%d", req
->share
);
1789 static void dump_open_console_reply( const struct open_console_reply
*req
)
1791 fprintf( stderr
, " handle=%04x", req
->handle
);
1794 static void dump_get_console_wait_event_request( const struct get_console_wait_event_request
*req
)
1798 static void dump_get_console_wait_event_reply( const struct get_console_wait_event_reply
*req
)
1800 fprintf( stderr
, " handle=%04x", req
->handle
);
1803 static void dump_get_console_mode_request( const struct get_console_mode_request
*req
)
1805 fprintf( stderr
, " handle=%04x", req
->handle
);
1808 static void dump_get_console_mode_reply( const struct get_console_mode_reply
*req
)
1810 fprintf( stderr
, " mode=%d", req
->mode
);
1813 static void dump_set_console_mode_request( const struct set_console_mode_request
*req
)
1815 fprintf( stderr
, " handle=%04x", req
->handle
);
1816 fprintf( stderr
, ", mode=%d", req
->mode
);
1819 static void dump_set_console_input_info_request( const struct set_console_input_info_request
*req
)
1821 fprintf( stderr
, " handle=%04x", req
->handle
);
1822 fprintf( stderr
, ", mask=%d", req
->mask
);
1823 fprintf( stderr
, ", active_sb=%04x", req
->active_sb
);
1824 fprintf( stderr
, ", history_mode=%d", req
->history_mode
);
1825 fprintf( stderr
, ", history_size=%d", req
->history_size
);
1826 fprintf( stderr
, ", edition_mode=%d", req
->edition_mode
);
1827 fprintf( stderr
, ", input_cp=%d", req
->input_cp
);
1828 fprintf( stderr
, ", output_cp=%d", req
->output_cp
);
1829 fprintf( stderr
, ", win=%08x", req
->win
);
1830 dump_varargs_unicode_str( ", title=", cur_size
);
1833 static void dump_get_console_input_info_request( const struct get_console_input_info_request
*req
)
1835 fprintf( stderr
, " handle=%04x", req
->handle
);
1838 static void dump_get_console_input_info_reply( const struct get_console_input_info_reply
*req
)
1840 fprintf( stderr
, " history_mode=%d", req
->history_mode
);
1841 fprintf( stderr
, ", history_size=%d", req
->history_size
);
1842 fprintf( stderr
, ", history_index=%d", req
->history_index
);
1843 fprintf( stderr
, ", edition_mode=%d", req
->edition_mode
);
1844 fprintf( stderr
, ", input_cp=%d", req
->input_cp
);
1845 fprintf( stderr
, ", output_cp=%d", req
->output_cp
);
1846 fprintf( stderr
, ", win=%08x", req
->win
);
1847 dump_varargs_unicode_str( ", title=", cur_size
);
1850 static void dump_append_console_input_history_request( const struct append_console_input_history_request
*req
)
1852 fprintf( stderr
, " handle=%04x", req
->handle
);
1853 dump_varargs_unicode_str( ", line=", cur_size
);
1856 static void dump_get_console_input_history_request( const struct get_console_input_history_request
*req
)
1858 fprintf( stderr
, " handle=%04x", req
->handle
);
1859 fprintf( stderr
, ", index=%d", req
->index
);
1862 static void dump_get_console_input_history_reply( const struct get_console_input_history_reply
*req
)
1864 fprintf( stderr
, " total=%d", req
->total
);
1865 dump_varargs_unicode_str( ", line=", cur_size
);
1868 static void dump_create_console_output_request( const struct create_console_output_request
*req
)
1870 fprintf( stderr
, " handle_in=%04x", req
->handle_in
);
1871 fprintf( stderr
, ", access=%08x", req
->access
);
1872 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1873 fprintf( stderr
, ", share=%08x", req
->share
);
1874 fprintf( stderr
, ", fd=%d", req
->fd
);
1877 static void dump_create_console_output_reply( const struct create_console_output_reply
*req
)
1879 fprintf( stderr
, " handle_out=%04x", req
->handle_out
);
1882 static void dump_set_console_output_info_request( const struct set_console_output_info_request
*req
)
1884 fprintf( stderr
, " handle=%04x", req
->handle
);
1885 fprintf( stderr
, ", mask=%d", req
->mask
);
1886 fprintf( stderr
, ", cursor_size=%d", req
->cursor_size
);
1887 fprintf( stderr
, ", cursor_visible=%d", req
->cursor_visible
);
1888 fprintf( stderr
, ", cursor_x=%d", req
->cursor_x
);
1889 fprintf( stderr
, ", cursor_y=%d", req
->cursor_y
);
1890 fprintf( stderr
, ", width=%d", req
->width
);
1891 fprintf( stderr
, ", height=%d", req
->height
);
1892 fprintf( stderr
, ", attr=%d", req
->attr
);
1893 fprintf( stderr
, ", win_left=%d", req
->win_left
);
1894 fprintf( stderr
, ", win_top=%d", req
->win_top
);
1895 fprintf( stderr
, ", win_right=%d", req
->win_right
);
1896 fprintf( stderr
, ", win_bottom=%d", req
->win_bottom
);
1897 fprintf( stderr
, ", max_width=%d", req
->max_width
);
1898 fprintf( stderr
, ", max_height=%d", req
->max_height
);
1901 static void dump_get_console_output_info_request( const struct get_console_output_info_request
*req
)
1903 fprintf( stderr
, " handle=%04x", req
->handle
);
1906 static void dump_get_console_output_info_reply( const struct get_console_output_info_reply
*req
)
1908 fprintf( stderr
, " cursor_size=%d", req
->cursor_size
);
1909 fprintf( stderr
, ", cursor_visible=%d", req
->cursor_visible
);
1910 fprintf( stderr
, ", cursor_x=%d", req
->cursor_x
);
1911 fprintf( stderr
, ", cursor_y=%d", req
->cursor_y
);
1912 fprintf( stderr
, ", width=%d", req
->width
);
1913 fprintf( stderr
, ", height=%d", req
->height
);
1914 fprintf( stderr
, ", attr=%d", req
->attr
);
1915 fprintf( stderr
, ", win_left=%d", req
->win_left
);
1916 fprintf( stderr
, ", win_top=%d", req
->win_top
);
1917 fprintf( stderr
, ", win_right=%d", req
->win_right
);
1918 fprintf( stderr
, ", win_bottom=%d", req
->win_bottom
);
1919 fprintf( stderr
, ", max_width=%d", req
->max_width
);
1920 fprintf( stderr
, ", max_height=%d", req
->max_height
);
1923 static void dump_write_console_input_request( const struct write_console_input_request
*req
)
1925 fprintf( stderr
, " handle=%04x", req
->handle
);
1926 dump_varargs_input_records( ", rec=", cur_size
);
1929 static void dump_write_console_input_reply( const struct write_console_input_reply
*req
)
1931 fprintf( stderr
, " written=%d", req
->written
);
1934 static void dump_read_console_input_request( const struct read_console_input_request
*req
)
1936 fprintf( stderr
, " handle=%04x", req
->handle
);
1937 fprintf( stderr
, ", flush=%d", req
->flush
);
1940 static void dump_read_console_input_reply( const struct read_console_input_reply
*req
)
1942 fprintf( stderr
, " read=%d", req
->read
);
1943 dump_varargs_input_records( ", rec=", cur_size
);
1946 static void dump_write_console_output_request( const struct write_console_output_request
*req
)
1948 fprintf( stderr
, " handle=%04x", req
->handle
);
1949 fprintf( stderr
, ", x=%d", req
->x
);
1950 fprintf( stderr
, ", y=%d", req
->y
);
1951 fprintf( stderr
, ", mode=%d", req
->mode
);
1952 fprintf( stderr
, ", wrap=%d", req
->wrap
);
1953 dump_varargs_bytes( ", data=", cur_size
);
1956 static void dump_write_console_output_reply( const struct write_console_output_reply
*req
)
1958 fprintf( stderr
, " written=%d", req
->written
);
1959 fprintf( stderr
, ", width=%d", req
->width
);
1960 fprintf( stderr
, ", height=%d", req
->height
);
1963 static void dump_fill_console_output_request( const struct fill_console_output_request
*req
)
1965 fprintf( stderr
, " handle=%04x", req
->handle
);
1966 fprintf( stderr
, ", x=%d", req
->x
);
1967 fprintf( stderr
, ", y=%d", req
->y
);
1968 fprintf( stderr
, ", mode=%d", req
->mode
);
1969 fprintf( stderr
, ", count=%d", req
->count
);
1970 fprintf( stderr
, ", wrap=%d", req
->wrap
);
1971 dump_char_info( ", data=", &req
->data
);
1974 static void dump_fill_console_output_reply( const struct fill_console_output_reply
*req
)
1976 fprintf( stderr
, " written=%d", req
->written
);
1979 static void dump_read_console_output_request( const struct read_console_output_request
*req
)
1981 fprintf( stderr
, " handle=%04x", req
->handle
);
1982 fprintf( stderr
, ", x=%d", req
->x
);
1983 fprintf( stderr
, ", y=%d", req
->y
);
1984 fprintf( stderr
, ", mode=%d", req
->mode
);
1985 fprintf( stderr
, ", wrap=%d", req
->wrap
);
1988 static void dump_read_console_output_reply( const struct read_console_output_reply
*req
)
1990 fprintf( stderr
, " width=%d", req
->width
);
1991 fprintf( stderr
, ", height=%d", req
->height
);
1992 dump_varargs_bytes( ", data=", cur_size
);
1995 static void dump_move_console_output_request( const struct move_console_output_request
*req
)
1997 fprintf( stderr
, " handle=%04x", req
->handle
);
1998 fprintf( stderr
, ", x_src=%d", req
->x_src
);
1999 fprintf( stderr
, ", y_src=%d", req
->y_src
);
2000 fprintf( stderr
, ", x_dst=%d", req
->x_dst
);
2001 fprintf( stderr
, ", y_dst=%d", req
->y_dst
);
2002 fprintf( stderr
, ", w=%d", req
->w
);
2003 fprintf( stderr
, ", h=%d", req
->h
);
2006 static void dump_send_console_signal_request( const struct send_console_signal_request
*req
)
2008 fprintf( stderr
, " signal=%d", req
->signal
);
2009 fprintf( stderr
, ", group_id=%04x", req
->group_id
);
2012 static void dump_read_directory_changes_request( const struct read_directory_changes_request
*req
)
2014 fprintf( stderr
, " filter=%08x", req
->filter
);
2015 fprintf( stderr
, ", subtree=%d", req
->subtree
);
2016 fprintf( stderr
, ", want_data=%d", req
->want_data
);
2017 dump_async_data( ", async=", &req
->async
);
2020 static void dump_read_change_request( const struct read_change_request
*req
)
2022 fprintf( stderr
, " handle=%04x", req
->handle
);
2025 static void dump_read_change_reply( const struct read_change_reply
*req
)
2027 dump_varargs_filesystem_event( " events=", cur_size
);
2030 static void dump_create_mapping_request( const struct create_mapping_request
*req
)
2032 fprintf( stderr
, " access=%08x", req
->access
);
2033 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
2034 fprintf( stderr
, ", protect=%08x", req
->protect
);
2035 dump_uint64( ", size=", &req
->size
);
2036 fprintf( stderr
, ", file_handle=%04x", req
->file_handle
);
2037 dump_varargs_object_attributes( ", objattr=", cur_size
);
2040 static void dump_create_mapping_reply( const struct create_mapping_reply
*req
)
2042 fprintf( stderr
, " handle=%04x", req
->handle
);
2045 static void dump_open_mapping_request( const struct open_mapping_request
*req
)
2047 fprintf( stderr
, " access=%08x", req
->access
);
2048 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
2049 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
2050 dump_varargs_unicode_str( ", name=", cur_size
);
2053 static void dump_open_mapping_reply( const struct open_mapping_reply
*req
)
2055 fprintf( stderr
, " handle=%04x", req
->handle
);
2058 static void dump_get_mapping_info_request( const struct get_mapping_info_request
*req
)
2060 fprintf( stderr
, " handle=%04x", req
->handle
);
2061 fprintf( stderr
, ", access=%08x", req
->access
);
2064 static void dump_get_mapping_info_reply( const struct get_mapping_info_reply
*req
)
2066 dump_uint64( " size=", &req
->size
);
2067 fprintf( stderr
, ", protect=%d", req
->protect
);
2068 fprintf( stderr
, ", header_size=%d", req
->header_size
);
2069 dump_uint64( ", base=", &req
->base
);
2070 fprintf( stderr
, ", mapping=%04x", req
->mapping
);
2071 fprintf( stderr
, ", shared_file=%04x", req
->shared_file
);
2074 static void dump_get_mapping_committed_range_request( const struct get_mapping_committed_range_request
*req
)
2076 fprintf( stderr
, " handle=%04x", req
->handle
);
2077 dump_uint64( ", offset=", &req
->offset
);
2080 static void dump_get_mapping_committed_range_reply( const struct get_mapping_committed_range_reply
*req
)
2082 dump_uint64( " size=", &req
->size
);
2083 fprintf( stderr
, ", committed=%d", req
->committed
);
2086 static void dump_add_mapping_committed_range_request( const struct add_mapping_committed_range_request
*req
)
2088 fprintf( stderr
, " handle=%04x", req
->handle
);
2089 dump_uint64( ", offset=", &req
->offset
);
2090 dump_uint64( ", size=", &req
->size
);
2093 static void dump_create_snapshot_request( const struct create_snapshot_request
*req
)
2095 fprintf( stderr
, " attributes=%08x", req
->attributes
);
2096 fprintf( stderr
, ", flags=%08x", req
->flags
);
2099 static void dump_create_snapshot_reply( const struct create_snapshot_reply
*req
)
2101 fprintf( stderr
, " handle=%04x", req
->handle
);
2104 static void dump_next_process_request( const struct next_process_request
*req
)
2106 fprintf( stderr
, " handle=%04x", req
->handle
);
2107 fprintf( stderr
, ", reset=%d", req
->reset
);
2110 static void dump_next_process_reply( const struct next_process_reply
*req
)
2112 fprintf( stderr
, " count=%d", req
->count
);
2113 fprintf( stderr
, ", pid=%04x", req
->pid
);
2114 fprintf( stderr
, ", ppid=%04x", req
->ppid
);
2115 fprintf( stderr
, ", threads=%d", req
->threads
);
2116 fprintf( stderr
, ", priority=%d", req
->priority
);
2117 fprintf( stderr
, ", handles=%d", req
->handles
);
2118 fprintf( stderr
, ", unix_pid=%d", req
->unix_pid
);
2119 dump_varargs_unicode_str( ", filename=", cur_size
);
2122 static void dump_next_thread_request( const struct next_thread_request
*req
)
2124 fprintf( stderr
, " handle=%04x", req
->handle
);
2125 fprintf( stderr
, ", reset=%d", req
->reset
);
2128 static void dump_next_thread_reply( const struct next_thread_reply
*req
)
2130 fprintf( stderr
, " count=%d", req
->count
);
2131 fprintf( stderr
, ", pid=%04x", req
->pid
);
2132 fprintf( stderr
, ", tid=%04x", req
->tid
);
2133 fprintf( stderr
, ", base_pri=%d", req
->base_pri
);
2134 fprintf( stderr
, ", delta_pri=%d", req
->delta_pri
);
2137 static void dump_wait_debug_event_request( const struct wait_debug_event_request
*req
)
2139 fprintf( stderr
, " get_handle=%d", req
->get_handle
);
2142 static void dump_wait_debug_event_reply( const struct wait_debug_event_reply
*req
)
2144 fprintf( stderr
, " pid=%04x", req
->pid
);
2145 fprintf( stderr
, ", tid=%04x", req
->tid
);
2146 fprintf( stderr
, ", wait=%04x", req
->wait
);
2147 dump_varargs_debug_event( ", event=", cur_size
);
2150 static void dump_queue_exception_event_request( const struct queue_exception_event_request
*req
)
2152 fprintf( stderr
, " first=%d", req
->first
);
2153 fprintf( stderr
, ", code=%08x", req
->code
);
2154 fprintf( stderr
, ", flags=%08x", req
->flags
);
2155 dump_uint64( ", record=", &req
->record
);
2156 dump_uint64( ", address=", &req
->address
);
2157 fprintf( stderr
, ", len=%u", req
->len
);
2158 dump_varargs_uints64( ", params=", min(cur_size
,req
->len
) );
2159 dump_varargs_context( ", context=", cur_size
);
2162 static void dump_queue_exception_event_reply( const struct queue_exception_event_reply
*req
)
2164 fprintf( stderr
, " handle=%04x", req
->handle
);
2167 static void dump_get_exception_status_request( const struct get_exception_status_request
*req
)
2169 fprintf( stderr
, " handle=%04x", req
->handle
);
2172 static void dump_get_exception_status_reply( const struct get_exception_status_reply
*req
)
2174 dump_varargs_context( " context=", cur_size
);
2177 static void dump_continue_debug_event_request( const struct continue_debug_event_request
*req
)
2179 fprintf( stderr
, " pid=%04x", req
->pid
);
2180 fprintf( stderr
, ", tid=%04x", req
->tid
);
2181 fprintf( stderr
, ", status=%d", req
->status
);
2184 static void dump_debug_process_request( const struct debug_process_request
*req
)
2186 fprintf( stderr
, " pid=%04x", req
->pid
);
2187 fprintf( stderr
, ", attach=%d", req
->attach
);
2190 static void dump_debug_break_request( const struct debug_break_request
*req
)
2192 fprintf( stderr
, " handle=%04x", req
->handle
);
2195 static void dump_debug_break_reply( const struct debug_break_reply
*req
)
2197 fprintf( stderr
, " self=%d", req
->self
);
2200 static void dump_set_debugger_kill_on_exit_request( const struct set_debugger_kill_on_exit_request
*req
)
2202 fprintf( stderr
, " kill_on_exit=%d", req
->kill_on_exit
);
2205 static void dump_read_process_memory_request( const struct read_process_memory_request
*req
)
2207 fprintf( stderr
, " handle=%04x", req
->handle
);
2208 dump_uint64( ", addr=", &req
->addr
);
2211 static void dump_read_process_memory_reply( const struct read_process_memory_reply
*req
)
2213 dump_varargs_bytes( " data=", cur_size
);
2216 static void dump_write_process_memory_request( const struct write_process_memory_request
*req
)
2218 fprintf( stderr
, " handle=%04x", req
->handle
);
2219 dump_uint64( ", addr=", &req
->addr
);
2220 dump_varargs_bytes( ", data=", cur_size
);
2223 static void dump_create_key_request( const struct create_key_request
*req
)
2225 fprintf( stderr
, " parent=%04x", req
->parent
);
2226 fprintf( stderr
, ", access=%08x", req
->access
);
2227 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
2228 fprintf( stderr
, ", options=%08x", req
->options
);
2229 fprintf( stderr
, ", namelen=%u", req
->namelen
);
2230 dump_varargs_unicode_str( ", name=", min(cur_size
,req
->namelen
) );
2231 dump_varargs_unicode_str( ", class=", cur_size
);
2234 static void dump_create_key_reply( const struct create_key_reply
*req
)
2236 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2237 fprintf( stderr
, ", created=%d", req
->created
);
2240 static void dump_open_key_request( const struct open_key_request
*req
)
2242 fprintf( stderr
, " parent=%04x", req
->parent
);
2243 fprintf( stderr
, ", access=%08x", req
->access
);
2244 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
2245 dump_varargs_unicode_str( ", name=", cur_size
);
2248 static void dump_open_key_reply( const struct open_key_reply
*req
)
2250 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2253 static void dump_delete_key_request( const struct delete_key_request
*req
)
2255 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2258 static void dump_flush_key_request( const struct flush_key_request
*req
)
2260 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2263 static void dump_enum_key_request( const struct enum_key_request
*req
)
2265 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2266 fprintf( stderr
, ", index=%d", req
->index
);
2267 fprintf( stderr
, ", info_class=%d", req
->info_class
);
2270 static void dump_enum_key_reply( const struct enum_key_reply
*req
)
2272 fprintf( stderr
, " subkeys=%d", req
->subkeys
);
2273 fprintf( stderr
, ", max_subkey=%d", req
->max_subkey
);
2274 fprintf( stderr
, ", max_class=%d", req
->max_class
);
2275 fprintf( stderr
, ", values=%d", req
->values
);
2276 fprintf( stderr
, ", max_value=%d", req
->max_value
);
2277 fprintf( stderr
, ", max_data=%d", req
->max_data
);
2278 dump_timeout( ", modif=", &req
->modif
);
2279 fprintf( stderr
, ", total=%u", req
->total
);
2280 fprintf( stderr
, ", namelen=%u", req
->namelen
);
2281 dump_varargs_unicode_str( ", name=", min(cur_size
,req
->namelen
) );
2282 dump_varargs_unicode_str( ", class=", cur_size
);
2285 static void dump_set_key_value_request( const struct set_key_value_request
*req
)
2287 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2288 fprintf( stderr
, ", type=%d", req
->type
);
2289 fprintf( stderr
, ", namelen=%u", req
->namelen
);
2290 dump_varargs_unicode_str( ", name=", min(cur_size
,req
->namelen
) );
2291 dump_varargs_bytes( ", data=", cur_size
);
2294 static void dump_get_key_value_request( const struct get_key_value_request
*req
)
2296 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2297 dump_varargs_unicode_str( ", name=", cur_size
);
2300 static void dump_get_key_value_reply( const struct get_key_value_reply
*req
)
2302 fprintf( stderr
, " type=%d", req
->type
);
2303 fprintf( stderr
, ", total=%u", req
->total
);
2304 dump_varargs_bytes( ", data=", cur_size
);
2307 static void dump_enum_key_value_request( const struct enum_key_value_request
*req
)
2309 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2310 fprintf( stderr
, ", index=%d", req
->index
);
2311 fprintf( stderr
, ", info_class=%d", req
->info_class
);
2314 static void dump_enum_key_value_reply( const struct enum_key_value_reply
*req
)
2316 fprintf( stderr
, " type=%d", req
->type
);
2317 fprintf( stderr
, ", total=%u", req
->total
);
2318 fprintf( stderr
, ", namelen=%u", req
->namelen
);
2319 dump_varargs_unicode_str( ", name=", min(cur_size
,req
->namelen
) );
2320 dump_varargs_bytes( ", data=", cur_size
);
2323 static void dump_delete_key_value_request( const struct delete_key_value_request
*req
)
2325 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2326 dump_varargs_unicode_str( ", name=", cur_size
);
2329 static void dump_load_registry_request( const struct load_registry_request
*req
)
2331 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2332 fprintf( stderr
, ", file=%04x", req
->file
);
2333 dump_varargs_unicode_str( ", name=", cur_size
);
2336 static void dump_unload_registry_request( const struct unload_registry_request
*req
)
2338 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2341 static void dump_save_registry_request( const struct save_registry_request
*req
)
2343 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2344 fprintf( stderr
, ", file=%04x", req
->file
);
2347 static void dump_set_registry_notification_request( const struct set_registry_notification_request
*req
)
2349 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2350 fprintf( stderr
, ", event=%04x", req
->event
);
2351 fprintf( stderr
, ", subtree=%d", req
->subtree
);
2352 fprintf( stderr
, ", filter=%08x", req
->filter
);
2355 static void dump_create_timer_request( const struct create_timer_request
*req
)
2357 fprintf( stderr
, " access=%08x", req
->access
);
2358 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
2359 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
2360 fprintf( stderr
, ", manual=%d", req
->manual
);
2361 dump_varargs_unicode_str( ", name=", cur_size
);
2364 static void dump_create_timer_reply( const struct create_timer_reply
*req
)
2366 fprintf( stderr
, " handle=%04x", req
->handle
);
2369 static void dump_open_timer_request( const struct open_timer_request
*req
)
2371 fprintf( stderr
, " access=%08x", req
->access
);
2372 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
2373 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
2374 dump_varargs_unicode_str( ", name=", cur_size
);
2377 static void dump_open_timer_reply( const struct open_timer_reply
*req
)
2379 fprintf( stderr
, " handle=%04x", req
->handle
);
2382 static void dump_set_timer_request( const struct set_timer_request
*req
)
2384 fprintf( stderr
, " handle=%04x", req
->handle
);
2385 dump_timeout( ", expire=", &req
->expire
);
2386 dump_uint64( ", callback=", &req
->callback
);
2387 dump_uint64( ", arg=", &req
->arg
);
2388 fprintf( stderr
, ", period=%d", req
->period
);
2391 static void dump_set_timer_reply( const struct set_timer_reply
*req
)
2393 fprintf( stderr
, " signaled=%d", req
->signaled
);
2396 static void dump_cancel_timer_request( const struct cancel_timer_request
*req
)
2398 fprintf( stderr
, " handle=%04x", req
->handle
);
2401 static void dump_cancel_timer_reply( const struct cancel_timer_reply
*req
)
2403 fprintf( stderr
, " signaled=%d", req
->signaled
);
2406 static void dump_get_timer_info_request( const struct get_timer_info_request
*req
)
2408 fprintf( stderr
, " handle=%04x", req
->handle
);
2411 static void dump_get_timer_info_reply( const struct get_timer_info_reply
*req
)
2413 dump_timeout( " when=", &req
->when
);
2414 fprintf( stderr
, ", signaled=%d", req
->signaled
);
2417 static void dump_get_thread_context_request( const struct get_thread_context_request
*req
)
2419 fprintf( stderr
, " handle=%04x", req
->handle
);
2420 fprintf( stderr
, ", flags=%08x", req
->flags
);
2421 fprintf( stderr
, ", suspend=%d", req
->suspend
);
2424 static void dump_get_thread_context_reply( const struct get_thread_context_reply
*req
)
2426 fprintf( stderr
, " self=%d", req
->self
);
2427 dump_varargs_context( ", context=", cur_size
);
2430 static void dump_set_thread_context_request( const struct set_thread_context_request
*req
)
2432 fprintf( stderr
, " handle=%04x", req
->handle
);
2433 fprintf( stderr
, ", suspend=%d", req
->suspend
);
2434 dump_varargs_context( ", context=", cur_size
);
2437 static void dump_set_thread_context_reply( const struct set_thread_context_reply
*req
)
2439 fprintf( stderr
, " self=%d", req
->self
);
2442 static void dump_get_selector_entry_request( const struct get_selector_entry_request
*req
)
2444 fprintf( stderr
, " handle=%04x", req
->handle
);
2445 fprintf( stderr
, ", entry=%d", req
->entry
);
2448 static void dump_get_selector_entry_reply( const struct get_selector_entry_reply
*req
)
2450 fprintf( stderr
, " base=%08x", req
->base
);
2451 fprintf( stderr
, ", limit=%08x", req
->limit
);
2452 fprintf( stderr
, ", flags=%02x", req
->flags
);
2455 static void dump_add_atom_request( const struct add_atom_request
*req
)
2457 fprintf( stderr
, " table=%04x", req
->table
);
2458 dump_varargs_unicode_str( ", name=", cur_size
);
2461 static void dump_add_atom_reply( const struct add_atom_reply
*req
)
2463 fprintf( stderr
, " atom=%04x", req
->atom
);
2466 static void dump_delete_atom_request( const struct delete_atom_request
*req
)
2468 fprintf( stderr
, " table=%04x", req
->table
);
2469 fprintf( stderr
, ", atom=%04x", req
->atom
);
2472 static void dump_find_atom_request( const struct find_atom_request
*req
)
2474 fprintf( stderr
, " table=%04x", req
->table
);
2475 dump_varargs_unicode_str( ", name=", cur_size
);
2478 static void dump_find_atom_reply( const struct find_atom_reply
*req
)
2480 fprintf( stderr
, " atom=%04x", req
->atom
);
2483 static void dump_get_atom_information_request( const struct get_atom_information_request
*req
)
2485 fprintf( stderr
, " table=%04x", req
->table
);
2486 fprintf( stderr
, ", atom=%04x", req
->atom
);
2489 static void dump_get_atom_information_reply( const struct get_atom_information_reply
*req
)
2491 fprintf( stderr
, " count=%d", req
->count
);
2492 fprintf( stderr
, ", pinned=%d", req
->pinned
);
2493 fprintf( stderr
, ", total=%u", req
->total
);
2494 dump_varargs_unicode_str( ", name=", cur_size
);
2497 static void dump_set_atom_information_request( const struct set_atom_information_request
*req
)
2499 fprintf( stderr
, " table=%04x", req
->table
);
2500 fprintf( stderr
, ", atom=%04x", req
->atom
);
2501 fprintf( stderr
, ", pinned=%d", req
->pinned
);
2504 static void dump_empty_atom_table_request( const struct empty_atom_table_request
*req
)
2506 fprintf( stderr
, " table=%04x", req
->table
);
2507 fprintf( stderr
, ", if_pinned=%d", req
->if_pinned
);
2510 static void dump_init_atom_table_request( const struct init_atom_table_request
*req
)
2512 fprintf( stderr
, " entries=%d", req
->entries
);
2515 static void dump_init_atom_table_reply( const struct init_atom_table_reply
*req
)
2517 fprintf( stderr
, " table=%04x", req
->table
);
2520 static void dump_get_msg_queue_request( const struct get_msg_queue_request
*req
)
2524 static void dump_get_msg_queue_reply( const struct get_msg_queue_reply
*req
)
2526 fprintf( stderr
, " handle=%04x", req
->handle
);
2529 static void dump_set_queue_fd_request( const struct set_queue_fd_request
*req
)
2531 fprintf( stderr
, " handle=%04x", req
->handle
);
2534 static void dump_set_queue_mask_request( const struct set_queue_mask_request
*req
)
2536 fprintf( stderr
, " wake_mask=%08x", req
->wake_mask
);
2537 fprintf( stderr
, ", changed_mask=%08x", req
->changed_mask
);
2538 fprintf( stderr
, ", skip_wait=%d", req
->skip_wait
);
2541 static void dump_set_queue_mask_reply( const struct set_queue_mask_reply
*req
)
2543 fprintf( stderr
, " wake_bits=%08x", req
->wake_bits
);
2544 fprintf( stderr
, ", changed_bits=%08x", req
->changed_bits
);
2547 static void dump_get_queue_status_request( const struct get_queue_status_request
*req
)
2549 fprintf( stderr
, " clear_bits=%08x", req
->clear_bits
);
2552 static void dump_get_queue_status_reply( const struct get_queue_status_reply
*req
)
2554 fprintf( stderr
, " wake_bits=%08x", req
->wake_bits
);
2555 fprintf( stderr
, ", changed_bits=%08x", req
->changed_bits
);
2558 static void dump_get_process_idle_event_request( const struct get_process_idle_event_request
*req
)
2560 fprintf( stderr
, " handle=%04x", req
->handle
);
2563 static void dump_get_process_idle_event_reply( const struct get_process_idle_event_reply
*req
)
2565 fprintf( stderr
, " event=%04x", req
->event
);
2568 static void dump_send_message_request( const struct send_message_request
*req
)
2570 fprintf( stderr
, " id=%04x", req
->id
);
2571 fprintf( stderr
, ", type=%d", req
->type
);
2572 fprintf( stderr
, ", flags=%d", req
->flags
);
2573 fprintf( stderr
, ", win=%08x", req
->win
);
2574 fprintf( stderr
, ", msg=%08x", req
->msg
);
2575 dump_uint64( ", wparam=", &req
->wparam
);
2576 dump_uint64( ", lparam=", &req
->lparam
);
2577 dump_timeout( ", timeout=", &req
->timeout
);
2578 dump_varargs_message_data( ", data=", cur_size
);
2581 static void dump_post_quit_message_request( const struct post_quit_message_request
*req
)
2583 fprintf( stderr
, " exit_code=%d", req
->exit_code
);
2586 static void dump_send_hardware_message_request( const struct send_hardware_message_request
*req
)
2588 fprintf( stderr
, " win=%08x", req
->win
);
2589 dump_hw_input( ", input=", &req
->input
);
2590 fprintf( stderr
, ", flags=%08x", req
->flags
);
2593 static void dump_send_hardware_message_reply( const struct send_hardware_message_reply
*req
)
2595 fprintf( stderr
, " wait=%d", req
->wait
);
2596 fprintf( stderr
, ", prev_x=%d", req
->prev_x
);
2597 fprintf( stderr
, ", prev_y=%d", req
->prev_y
);
2598 fprintf( stderr
, ", new_x=%d", req
->new_x
);
2599 fprintf( stderr
, ", new_y=%d", req
->new_y
);
2600 dump_varargs_bytes( ", keystate=", cur_size
);
2603 static void dump_get_message_request( const struct get_message_request
*req
)
2605 fprintf( stderr
, " flags=%08x", req
->flags
);
2606 fprintf( stderr
, ", get_win=%08x", req
->get_win
);
2607 fprintf( stderr
, ", get_first=%08x", req
->get_first
);
2608 fprintf( stderr
, ", get_last=%08x", req
->get_last
);
2609 fprintf( stderr
, ", hw_id=%08x", req
->hw_id
);
2610 fprintf( stderr
, ", wake_mask=%08x", req
->wake_mask
);
2611 fprintf( stderr
, ", changed_mask=%08x", req
->changed_mask
);
2614 static void dump_get_message_reply( const struct get_message_reply
*req
)
2616 fprintf( stderr
, " win=%08x", req
->win
);
2617 fprintf( stderr
, ", msg=%08x", req
->msg
);
2618 dump_uint64( ", wparam=", &req
->wparam
);
2619 dump_uint64( ", lparam=", &req
->lparam
);
2620 fprintf( stderr
, ", type=%d", req
->type
);
2621 fprintf( stderr
, ", x=%d", req
->x
);
2622 fprintf( stderr
, ", y=%d", req
->y
);
2623 fprintf( stderr
, ", time=%08x", req
->time
);
2624 fprintf( stderr
, ", active_hooks=%08x", req
->active_hooks
);
2625 fprintf( stderr
, ", total=%u", req
->total
);
2626 dump_varargs_message_data( ", data=", cur_size
);
2629 static void dump_reply_message_request( const struct reply_message_request
*req
)
2631 fprintf( stderr
, " remove=%d", req
->remove
);
2632 dump_uint64( ", result=", &req
->result
);
2633 dump_varargs_bytes( ", data=", cur_size
);
2636 static void dump_accept_hardware_message_request( const struct accept_hardware_message_request
*req
)
2638 fprintf( stderr
, " hw_id=%08x", req
->hw_id
);
2639 fprintf( stderr
, ", remove=%d", req
->remove
);
2642 static void dump_get_message_reply_request( const struct get_message_reply_request
*req
)
2644 fprintf( stderr
, " cancel=%d", req
->cancel
);
2647 static void dump_get_message_reply_reply( const struct get_message_reply_reply
*req
)
2649 dump_uint64( " result=", &req
->result
);
2650 dump_varargs_bytes( ", data=", cur_size
);
2653 static void dump_set_win_timer_request( const struct set_win_timer_request
*req
)
2655 fprintf( stderr
, " win=%08x", req
->win
);
2656 fprintf( stderr
, ", msg=%08x", req
->msg
);
2657 fprintf( stderr
, ", rate=%08x", req
->rate
);
2658 dump_uint64( ", id=", &req
->id
);
2659 dump_uint64( ", lparam=", &req
->lparam
);
2662 static void dump_set_win_timer_reply( const struct set_win_timer_reply
*req
)
2664 dump_uint64( " id=", &req
->id
);
2667 static void dump_kill_win_timer_request( const struct kill_win_timer_request
*req
)
2669 fprintf( stderr
, " win=%08x", req
->win
);
2670 dump_uint64( ", id=", &req
->id
);
2671 fprintf( stderr
, ", msg=%08x", req
->msg
);
2674 static void dump_is_window_hung_request( const struct is_window_hung_request
*req
)
2676 fprintf( stderr
, " win=%08x", req
->win
);
2679 static void dump_is_window_hung_reply( const struct is_window_hung_reply
*req
)
2681 fprintf( stderr
, " is_hung=%d", req
->is_hung
);
2684 static void dump_get_serial_info_request( const struct get_serial_info_request
*req
)
2686 fprintf( stderr
, " handle=%04x", req
->handle
);
2687 fprintf( stderr
, ", flags=%d", req
->flags
);
2690 static void dump_get_serial_info_reply( const struct get_serial_info_reply
*req
)
2692 fprintf( stderr
, " readinterval=%08x", req
->readinterval
);
2693 fprintf( stderr
, ", readconst=%08x", req
->readconst
);
2694 fprintf( stderr
, ", readmult=%08x", req
->readmult
);
2695 fprintf( stderr
, ", writeconst=%08x", req
->writeconst
);
2696 fprintf( stderr
, ", writemult=%08x", req
->writemult
);
2697 fprintf( stderr
, ", eventmask=%08x", req
->eventmask
);
2698 fprintf( stderr
, ", cookie=%08x", req
->cookie
);
2699 fprintf( stderr
, ", pending_write=%08x", req
->pending_write
);
2702 static void dump_set_serial_info_request( const struct set_serial_info_request
*req
)
2704 fprintf( stderr
, " handle=%04x", req
->handle
);
2705 fprintf( stderr
, ", flags=%d", req
->flags
);
2706 fprintf( stderr
, ", readinterval=%08x", req
->readinterval
);
2707 fprintf( stderr
, ", readconst=%08x", req
->readconst
);
2708 fprintf( stderr
, ", readmult=%08x", req
->readmult
);
2709 fprintf( stderr
, ", writeconst=%08x", req
->writeconst
);
2710 fprintf( stderr
, ", writemult=%08x", req
->writemult
);
2711 fprintf( stderr
, ", eventmask=%08x", req
->eventmask
);
2714 static void dump_register_async_request( const struct register_async_request
*req
)
2716 fprintf( stderr
, " type=%d", req
->type
);
2717 dump_async_data( ", async=", &req
->async
);
2718 fprintf( stderr
, ", count=%d", req
->count
);
2721 static void dump_cancel_async_request( const struct cancel_async_request
*req
)
2723 fprintf( stderr
, " handle=%04x", req
->handle
);
2724 dump_uint64( ", iosb=", &req
->iosb
);
2725 fprintf( stderr
, ", only_thread=%d", req
->only_thread
);
2728 static void dump_ioctl_request( const struct ioctl_request
*req
)
2730 dump_ioctl_code( " code=", &req
->code
);
2731 dump_async_data( ", async=", &req
->async
);
2732 fprintf( stderr
, ", blocking=%d", req
->blocking
);
2733 dump_varargs_bytes( ", in_data=", cur_size
);
2736 static void dump_ioctl_reply( const struct ioctl_reply
*req
)
2738 fprintf( stderr
, " wait=%04x", req
->wait
);
2739 fprintf( stderr
, ", options=%08x", req
->options
);
2740 dump_varargs_bytes( ", out_data=", cur_size
);
2743 static void dump_set_ioctl_result_request( const struct set_ioctl_result_request
*req
)
2745 fprintf( stderr
, " manager=%04x", req
->manager
);
2746 fprintf( stderr
, ", handle=%04x", req
->handle
);
2747 fprintf( stderr
, ", status=%08x", req
->status
);
2748 dump_varargs_bytes( ", data=", cur_size
);
2751 static void dump_get_ioctl_result_request( const struct get_ioctl_result_request
*req
)
2753 fprintf( stderr
, " handle=%04x", req
->handle
);
2754 dump_uint64( ", user_arg=", &req
->user_arg
);
2757 static void dump_get_ioctl_result_reply( const struct get_ioctl_result_reply
*req
)
2759 dump_varargs_bytes( " out_data=", cur_size
);
2762 static void dump_create_named_pipe_request( const struct create_named_pipe_request
*req
)
2764 fprintf( stderr
, " access=%08x", req
->access
);
2765 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
2766 fprintf( stderr
, ", options=%08x", req
->options
);
2767 fprintf( stderr
, ", sharing=%08x", req
->sharing
);
2768 fprintf( stderr
, ", maxinstances=%08x", req
->maxinstances
);
2769 fprintf( stderr
, ", outsize=%08x", req
->outsize
);
2770 fprintf( stderr
, ", insize=%08x", req
->insize
);
2771 dump_timeout( ", timeout=", &req
->timeout
);
2772 fprintf( stderr
, ", flags=%08x", req
->flags
);
2773 dump_varargs_object_attributes( ", objattr=", cur_size
);
2776 static void dump_create_named_pipe_reply( const struct create_named_pipe_reply
*req
)
2778 fprintf( stderr
, " handle=%04x", req
->handle
);
2781 static void dump_get_named_pipe_info_request( const struct get_named_pipe_info_request
*req
)
2783 fprintf( stderr
, " handle=%04x", req
->handle
);
2786 static void dump_get_named_pipe_info_reply( const struct get_named_pipe_info_reply
*req
)
2788 fprintf( stderr
, " flags=%08x", req
->flags
);
2789 fprintf( stderr
, ", sharing=%08x", req
->sharing
);
2790 fprintf( stderr
, ", maxinstances=%08x", req
->maxinstances
);
2791 fprintf( stderr
, ", instances=%08x", req
->instances
);
2792 fprintf( stderr
, ", outsize=%08x", req
->outsize
);
2793 fprintf( stderr
, ", insize=%08x", req
->insize
);
2796 static void dump_set_named_pipe_info_request( const struct set_named_pipe_info_request
*req
)
2798 fprintf( stderr
, " handle=%04x", req
->handle
);
2799 fprintf( stderr
, ", flags=%08x", req
->flags
);
2802 static void dump_create_window_request( const struct create_window_request
*req
)
2804 fprintf( stderr
, " parent=%08x", req
->parent
);
2805 fprintf( stderr
, ", owner=%08x", req
->owner
);
2806 fprintf( stderr
, ", atom=%04x", req
->atom
);
2807 dump_uint64( ", instance=", &req
->instance
);
2808 dump_varargs_unicode_str( ", class=", cur_size
);
2811 static void dump_create_window_reply( const struct create_window_reply
*req
)
2813 fprintf( stderr
, " handle=%08x", req
->handle
);
2814 fprintf( stderr
, ", parent=%08x", req
->parent
);
2815 fprintf( stderr
, ", owner=%08x", req
->owner
);
2816 fprintf( stderr
, ", extra=%d", req
->extra
);
2817 dump_uint64( ", class_ptr=", &req
->class_ptr
);
2820 static void dump_destroy_window_request( const struct destroy_window_request
*req
)
2822 fprintf( stderr
, " handle=%08x", req
->handle
);
2825 static void dump_get_desktop_window_request( const struct get_desktop_window_request
*req
)
2827 fprintf( stderr
, " force=%d", req
->force
);
2830 static void dump_get_desktop_window_reply( const struct get_desktop_window_reply
*req
)
2832 fprintf( stderr
, " top_window=%08x", req
->top_window
);
2833 fprintf( stderr
, ", msg_window=%08x", req
->msg_window
);
2836 static void dump_set_window_owner_request( const struct set_window_owner_request
*req
)
2838 fprintf( stderr
, " handle=%08x", req
->handle
);
2839 fprintf( stderr
, ", owner=%08x", req
->owner
);
2842 static void dump_set_window_owner_reply( const struct set_window_owner_reply
*req
)
2844 fprintf( stderr
, " full_owner=%08x", req
->full_owner
);
2845 fprintf( stderr
, ", prev_owner=%08x", req
->prev_owner
);
2848 static void dump_get_window_info_request( const struct get_window_info_request
*req
)
2850 fprintf( stderr
, " handle=%08x", req
->handle
);
2853 static void dump_get_window_info_reply( const struct get_window_info_reply
*req
)
2855 fprintf( stderr
, " full_handle=%08x", req
->full_handle
);
2856 fprintf( stderr
, ", last_active=%08x", req
->last_active
);
2857 fprintf( stderr
, ", pid=%04x", req
->pid
);
2858 fprintf( stderr
, ", tid=%04x", req
->tid
);
2859 fprintf( stderr
, ", atom=%04x", req
->atom
);
2860 fprintf( stderr
, ", is_unicode=%d", req
->is_unicode
);
2863 static void dump_set_window_info_request( const struct set_window_info_request
*req
)
2865 fprintf( stderr
, " flags=%04x", req
->flags
);
2866 fprintf( stderr
, ", is_unicode=%d", req
->is_unicode
);
2867 fprintf( stderr
, ", handle=%08x", req
->handle
);
2868 fprintf( stderr
, ", style=%08x", req
->style
);
2869 fprintf( stderr
, ", ex_style=%08x", req
->ex_style
);
2870 fprintf( stderr
, ", id=%08x", req
->id
);
2871 dump_uint64( ", instance=", &req
->instance
);
2872 dump_uint64( ", user_data=", &req
->user_data
);
2873 fprintf( stderr
, ", extra_offset=%d", req
->extra_offset
);
2874 fprintf( stderr
, ", extra_size=%u", req
->extra_size
);
2875 dump_uint64( ", extra_value=", &req
->extra_value
);
2878 static void dump_set_window_info_reply( const struct set_window_info_reply
*req
)
2880 fprintf( stderr
, " old_style=%08x", req
->old_style
);
2881 fprintf( stderr
, ", old_ex_style=%08x", req
->old_ex_style
);
2882 dump_uint64( ", old_instance=", &req
->old_instance
);
2883 dump_uint64( ", old_user_data=", &req
->old_user_data
);
2884 dump_uint64( ", old_extra_value=", &req
->old_extra_value
);
2885 fprintf( stderr
, ", old_id=%08x", req
->old_id
);
2888 static void dump_set_parent_request( const struct set_parent_request
*req
)
2890 fprintf( stderr
, " handle=%08x", req
->handle
);
2891 fprintf( stderr
, ", parent=%08x", req
->parent
);
2894 static void dump_set_parent_reply( const struct set_parent_reply
*req
)
2896 fprintf( stderr
, " old_parent=%08x", req
->old_parent
);
2897 fprintf( stderr
, ", full_parent=%08x", req
->full_parent
);
2900 static void dump_get_window_parents_request( const struct get_window_parents_request
*req
)
2902 fprintf( stderr
, " handle=%08x", req
->handle
);
2905 static void dump_get_window_parents_reply( const struct get_window_parents_reply
*req
)
2907 fprintf( stderr
, " count=%d", req
->count
);
2908 dump_varargs_user_handles( ", parents=", cur_size
);
2911 static void dump_get_window_children_request( const struct get_window_children_request
*req
)
2913 fprintf( stderr
, " desktop=%04x", req
->desktop
);
2914 fprintf( stderr
, ", parent=%08x", req
->parent
);
2915 fprintf( stderr
, ", atom=%04x", req
->atom
);
2916 fprintf( stderr
, ", tid=%04x", req
->tid
);
2917 dump_varargs_unicode_str( ", class=", cur_size
);
2920 static void dump_get_window_children_reply( const struct get_window_children_reply
*req
)
2922 fprintf( stderr
, " count=%d", req
->count
);
2923 dump_varargs_user_handles( ", children=", cur_size
);
2926 static void dump_get_window_children_from_point_request( const struct get_window_children_from_point_request
*req
)
2928 fprintf( stderr
, " parent=%08x", req
->parent
);
2929 fprintf( stderr
, ", x=%d", req
->x
);
2930 fprintf( stderr
, ", y=%d", req
->y
);
2933 static void dump_get_window_children_from_point_reply( const struct get_window_children_from_point_reply
*req
)
2935 fprintf( stderr
, " count=%d", req
->count
);
2936 dump_varargs_user_handles( ", children=", cur_size
);
2939 static void dump_get_window_tree_request( const struct get_window_tree_request
*req
)
2941 fprintf( stderr
, " handle=%08x", req
->handle
);
2944 static void dump_get_window_tree_reply( const struct get_window_tree_reply
*req
)
2946 fprintf( stderr
, " parent=%08x", req
->parent
);
2947 fprintf( stderr
, ", owner=%08x", req
->owner
);
2948 fprintf( stderr
, ", next_sibling=%08x", req
->next_sibling
);
2949 fprintf( stderr
, ", prev_sibling=%08x", req
->prev_sibling
);
2950 fprintf( stderr
, ", first_sibling=%08x", req
->first_sibling
);
2951 fprintf( stderr
, ", last_sibling=%08x", req
->last_sibling
);
2952 fprintf( stderr
, ", first_child=%08x", req
->first_child
);
2953 fprintf( stderr
, ", last_child=%08x", req
->last_child
);
2956 static void dump_set_window_pos_request( const struct set_window_pos_request
*req
)
2958 fprintf( stderr
, " swp_flags=%04x", req
->swp_flags
);
2959 fprintf( stderr
, ", paint_flags=%04x", req
->paint_flags
);
2960 fprintf( stderr
, ", handle=%08x", req
->handle
);
2961 fprintf( stderr
, ", previous=%08x", req
->previous
);
2962 dump_rectangle( ", window=", &req
->window
);
2963 dump_rectangle( ", client=", &req
->client
);
2964 dump_varargs_rectangles( ", valid=", cur_size
);
2967 static void dump_set_window_pos_reply( const struct set_window_pos_reply
*req
)
2969 fprintf( stderr
, " new_style=%08x", req
->new_style
);
2970 fprintf( stderr
, ", new_ex_style=%08x", req
->new_ex_style
);
2971 fprintf( stderr
, ", surface_win=%08x", req
->surface_win
);
2974 static void dump_get_window_rectangles_request( const struct get_window_rectangles_request
*req
)
2976 fprintf( stderr
, " handle=%08x", req
->handle
);
2977 fprintf( stderr
, ", relative=%d", req
->relative
);
2980 static void dump_get_window_rectangles_reply( const struct get_window_rectangles_reply
*req
)
2982 dump_rectangle( " window=", &req
->window
);
2983 dump_rectangle( ", visible=", &req
->visible
);
2984 dump_rectangle( ", client=", &req
->client
);
2987 static void dump_get_window_text_request( const struct get_window_text_request
*req
)
2989 fprintf( stderr
, " handle=%08x", req
->handle
);
2992 static void dump_get_window_text_reply( const struct get_window_text_reply
*req
)
2994 dump_varargs_unicode_str( " text=", cur_size
);
2997 static void dump_set_window_text_request( const struct set_window_text_request
*req
)
2999 fprintf( stderr
, " handle=%08x", req
->handle
);
3000 dump_varargs_unicode_str( ", text=", cur_size
);
3003 static void dump_get_windows_offset_request( const struct get_windows_offset_request
*req
)
3005 fprintf( stderr
, " from=%08x", req
->from
);
3006 fprintf( stderr
, ", to=%08x", req
->to
);
3009 static void dump_get_windows_offset_reply( const struct get_windows_offset_reply
*req
)
3011 fprintf( stderr
, " x=%d", req
->x
);
3012 fprintf( stderr
, ", y=%d", req
->y
);
3013 fprintf( stderr
, ", mirror=%d", req
->mirror
);
3016 static void dump_get_visible_region_request( const struct get_visible_region_request
*req
)
3018 fprintf( stderr
, " window=%08x", req
->window
);
3019 fprintf( stderr
, ", flags=%08x", req
->flags
);
3022 static void dump_get_visible_region_reply( const struct get_visible_region_reply
*req
)
3024 fprintf( stderr
, " top_win=%08x", req
->top_win
);
3025 dump_rectangle( ", top_rect=", &req
->top_rect
);
3026 dump_rectangle( ", win_rect=", &req
->win_rect
);
3027 fprintf( stderr
, ", paint_flags=%08x", req
->paint_flags
);
3028 fprintf( stderr
, ", total_size=%u", req
->total_size
);
3029 dump_varargs_rectangles( ", region=", cur_size
);
3032 static void dump_get_surface_region_request( const struct get_surface_region_request
*req
)
3034 fprintf( stderr
, " window=%08x", req
->window
);
3037 static void dump_get_surface_region_reply( const struct get_surface_region_reply
*req
)
3039 dump_rectangle( " visible_rect=", &req
->visible_rect
);
3040 fprintf( stderr
, ", total_size=%u", req
->total_size
);
3041 dump_varargs_rectangles( ", region=", cur_size
);
3044 static void dump_get_window_region_request( const struct get_window_region_request
*req
)
3046 fprintf( stderr
, " window=%08x", req
->window
);
3049 static void dump_get_window_region_reply( const struct get_window_region_reply
*req
)
3051 fprintf( stderr
, " total_size=%u", req
->total_size
);
3052 dump_varargs_rectangles( ", region=", cur_size
);
3055 static void dump_set_window_region_request( const struct set_window_region_request
*req
)
3057 fprintf( stderr
, " window=%08x", req
->window
);
3058 fprintf( stderr
, ", redraw=%d", req
->redraw
);
3059 dump_varargs_rectangles( ", region=", cur_size
);
3062 static void dump_get_update_region_request( const struct get_update_region_request
*req
)
3064 fprintf( stderr
, " window=%08x", req
->window
);
3065 fprintf( stderr
, ", from_child=%08x", req
->from_child
);
3066 fprintf( stderr
, ", flags=%08x", req
->flags
);
3069 static void dump_get_update_region_reply( const struct get_update_region_reply
*req
)
3071 fprintf( stderr
, " child=%08x", req
->child
);
3072 fprintf( stderr
, ", flags=%08x", req
->flags
);
3073 fprintf( stderr
, ", total_size=%u", req
->total_size
);
3074 dump_varargs_rectangles( ", region=", cur_size
);
3077 static void dump_update_window_zorder_request( const struct update_window_zorder_request
*req
)
3079 fprintf( stderr
, " window=%08x", req
->window
);
3080 dump_rectangle( ", rect=", &req
->rect
);
3083 static void dump_redraw_window_request( const struct redraw_window_request
*req
)
3085 fprintf( stderr
, " window=%08x", req
->window
);
3086 fprintf( stderr
, ", flags=%08x", req
->flags
);
3087 dump_varargs_rectangles( ", region=", cur_size
);
3090 static void dump_set_window_property_request( const struct set_window_property_request
*req
)
3092 fprintf( stderr
, " window=%08x", req
->window
);
3093 dump_uint64( ", data=", &req
->data
);
3094 fprintf( stderr
, ", atom=%04x", req
->atom
);
3095 dump_varargs_unicode_str( ", name=", cur_size
);
3098 static void dump_remove_window_property_request( const struct remove_window_property_request
*req
)
3100 fprintf( stderr
, " window=%08x", req
->window
);
3101 fprintf( stderr
, ", atom=%04x", req
->atom
);
3102 dump_varargs_unicode_str( ", name=", cur_size
);
3105 static void dump_remove_window_property_reply( const struct remove_window_property_reply
*req
)
3107 dump_uint64( " data=", &req
->data
);
3110 static void dump_get_window_property_request( const struct get_window_property_request
*req
)
3112 fprintf( stderr
, " window=%08x", req
->window
);
3113 fprintf( stderr
, ", atom=%04x", req
->atom
);
3114 dump_varargs_unicode_str( ", name=", cur_size
);
3117 static void dump_get_window_property_reply( const struct get_window_property_reply
*req
)
3119 dump_uint64( " data=", &req
->data
);
3122 static void dump_get_window_properties_request( const struct get_window_properties_request
*req
)
3124 fprintf( stderr
, " window=%08x", req
->window
);
3127 static void dump_get_window_properties_reply( const struct get_window_properties_reply
*req
)
3129 fprintf( stderr
, " total=%d", req
->total
);
3130 dump_varargs_properties( ", props=", cur_size
);
3133 static void dump_create_winstation_request( const struct create_winstation_request
*req
)
3135 fprintf( stderr
, " flags=%08x", req
->flags
);
3136 fprintf( stderr
, ", access=%08x", req
->access
);
3137 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3138 dump_varargs_unicode_str( ", name=", cur_size
);
3141 static void dump_create_winstation_reply( const struct create_winstation_reply
*req
)
3143 fprintf( stderr
, " handle=%04x", req
->handle
);
3146 static void dump_open_winstation_request( const struct open_winstation_request
*req
)
3148 fprintf( stderr
, " access=%08x", req
->access
);
3149 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3150 dump_varargs_unicode_str( ", name=", cur_size
);
3153 static void dump_open_winstation_reply( const struct open_winstation_reply
*req
)
3155 fprintf( stderr
, " handle=%04x", req
->handle
);
3158 static void dump_close_winstation_request( const struct close_winstation_request
*req
)
3160 fprintf( stderr
, " handle=%04x", req
->handle
);
3163 static void dump_get_process_winstation_request( const struct get_process_winstation_request
*req
)
3167 static void dump_get_process_winstation_reply( const struct get_process_winstation_reply
*req
)
3169 fprintf( stderr
, " handle=%04x", req
->handle
);
3172 static void dump_set_process_winstation_request( const struct set_process_winstation_request
*req
)
3174 fprintf( stderr
, " handle=%04x", req
->handle
);
3177 static void dump_enum_winstation_request( const struct enum_winstation_request
*req
)
3179 fprintf( stderr
, " index=%08x", req
->index
);
3182 static void dump_enum_winstation_reply( const struct enum_winstation_reply
*req
)
3184 fprintf( stderr
, " next=%08x", req
->next
);
3185 dump_varargs_unicode_str( ", name=", cur_size
);
3188 static void dump_create_desktop_request( const struct create_desktop_request
*req
)
3190 fprintf( stderr
, " flags=%08x", req
->flags
);
3191 fprintf( stderr
, ", access=%08x", req
->access
);
3192 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3193 dump_varargs_unicode_str( ", name=", cur_size
);
3196 static void dump_create_desktop_reply( const struct create_desktop_reply
*req
)
3198 fprintf( stderr
, " handle=%04x", req
->handle
);
3201 static void dump_open_desktop_request( const struct open_desktop_request
*req
)
3203 fprintf( stderr
, " winsta=%04x", req
->winsta
);
3204 fprintf( stderr
, ", flags=%08x", req
->flags
);
3205 fprintf( stderr
, ", access=%08x", req
->access
);
3206 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3207 dump_varargs_unicode_str( ", name=", cur_size
);
3210 static void dump_open_desktop_reply( const struct open_desktop_reply
*req
)
3212 fprintf( stderr
, " handle=%04x", req
->handle
);
3215 static void dump_open_input_desktop_request( const struct open_input_desktop_request
*req
)
3217 fprintf( stderr
, " flags=%08x", req
->flags
);
3218 fprintf( stderr
, ", access=%08x", req
->access
);
3219 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3222 static void dump_open_input_desktop_reply( const struct open_input_desktop_reply
*req
)
3224 fprintf( stderr
, " handle=%04x", req
->handle
);
3227 static void dump_close_desktop_request( const struct close_desktop_request
*req
)
3229 fprintf( stderr
, " handle=%04x", req
->handle
);
3232 static void dump_get_thread_desktop_request( const struct get_thread_desktop_request
*req
)
3234 fprintf( stderr
, " tid=%04x", req
->tid
);
3237 static void dump_get_thread_desktop_reply( const struct get_thread_desktop_reply
*req
)
3239 fprintf( stderr
, " handle=%04x", req
->handle
);
3242 static void dump_set_thread_desktop_request( const struct set_thread_desktop_request
*req
)
3244 fprintf( stderr
, " handle=%04x", req
->handle
);
3247 static void dump_enum_desktop_request( const struct enum_desktop_request
*req
)
3249 fprintf( stderr
, " winstation=%04x", req
->winstation
);
3250 fprintf( stderr
, ", index=%08x", req
->index
);
3253 static void dump_enum_desktop_reply( const struct enum_desktop_reply
*req
)
3255 fprintf( stderr
, " next=%08x", req
->next
);
3256 dump_varargs_unicode_str( ", name=", cur_size
);
3259 static void dump_set_user_object_info_request( const struct set_user_object_info_request
*req
)
3261 fprintf( stderr
, " handle=%04x", req
->handle
);
3262 fprintf( stderr
, ", flags=%08x", req
->flags
);
3263 fprintf( stderr
, ", obj_flags=%08x", req
->obj_flags
);
3266 static void dump_set_user_object_info_reply( const struct set_user_object_info_reply
*req
)
3268 fprintf( stderr
, " is_desktop=%d", req
->is_desktop
);
3269 fprintf( stderr
, ", old_obj_flags=%08x", req
->old_obj_flags
);
3270 dump_varargs_unicode_str( ", name=", cur_size
);
3273 static void dump_register_hotkey_request( const struct register_hotkey_request
*req
)
3275 fprintf( stderr
, " window=%08x", req
->window
);
3276 fprintf( stderr
, ", id=%d", req
->id
);
3277 fprintf( stderr
, ", flags=%08x", req
->flags
);
3278 fprintf( stderr
, ", vkey=%08x", req
->vkey
);
3281 static void dump_register_hotkey_reply( const struct register_hotkey_reply
*req
)
3283 fprintf( stderr
, " replaced=%d", req
->replaced
);
3284 fprintf( stderr
, ", flags=%08x", req
->flags
);
3285 fprintf( stderr
, ", vkey=%08x", req
->vkey
);
3288 static void dump_unregister_hotkey_request( const struct unregister_hotkey_request
*req
)
3290 fprintf( stderr
, " window=%08x", req
->window
);
3291 fprintf( stderr
, ", id=%d", req
->id
);
3294 static void dump_unregister_hotkey_reply( const struct unregister_hotkey_reply
*req
)
3296 fprintf( stderr
, " flags=%08x", req
->flags
);
3297 fprintf( stderr
, ", vkey=%08x", req
->vkey
);
3300 static void dump_attach_thread_input_request( const struct attach_thread_input_request
*req
)
3302 fprintf( stderr
, " tid_from=%04x", req
->tid_from
);
3303 fprintf( stderr
, ", tid_to=%04x", req
->tid_to
);
3304 fprintf( stderr
, ", attach=%d", req
->attach
);
3307 static void dump_get_thread_input_request( const struct get_thread_input_request
*req
)
3309 fprintf( stderr
, " tid=%04x", req
->tid
);
3312 static void dump_get_thread_input_reply( const struct get_thread_input_reply
*req
)
3314 fprintf( stderr
, " focus=%08x", req
->focus
);
3315 fprintf( stderr
, ", capture=%08x", req
->capture
);
3316 fprintf( stderr
, ", active=%08x", req
->active
);
3317 fprintf( stderr
, ", foreground=%08x", req
->foreground
);
3318 fprintf( stderr
, ", menu_owner=%08x", req
->menu_owner
);
3319 fprintf( stderr
, ", move_size=%08x", req
->move_size
);
3320 fprintf( stderr
, ", caret=%08x", req
->caret
);
3321 fprintf( stderr
, ", cursor=%08x", req
->cursor
);
3322 fprintf( stderr
, ", show_count=%d", req
->show_count
);
3323 dump_rectangle( ", rect=", &req
->rect
);
3326 static void dump_get_last_input_time_request( const struct get_last_input_time_request
*req
)
3330 static void dump_get_last_input_time_reply( const struct get_last_input_time_reply
*req
)
3332 fprintf( stderr
, " time=%08x", req
->time
);
3335 static void dump_get_key_state_request( const struct get_key_state_request
*req
)
3337 fprintf( stderr
, " tid=%04x", req
->tid
);
3338 fprintf( stderr
, ", key=%d", req
->key
);
3341 static void dump_get_key_state_reply( const struct get_key_state_reply
*req
)
3343 fprintf( stderr
, " state=%02x", req
->state
);
3344 dump_varargs_bytes( ", keystate=", cur_size
);
3347 static void dump_set_key_state_request( const struct set_key_state_request
*req
)
3349 fprintf( stderr
, " tid=%04x", req
->tid
);
3350 fprintf( stderr
, ", async=%d", req
->async
);
3351 dump_varargs_bytes( ", keystate=", cur_size
);
3354 static void dump_set_foreground_window_request( const struct set_foreground_window_request
*req
)
3356 fprintf( stderr
, " handle=%08x", req
->handle
);
3359 static void dump_set_foreground_window_reply( const struct set_foreground_window_reply
*req
)
3361 fprintf( stderr
, " previous=%08x", req
->previous
);
3362 fprintf( stderr
, ", send_msg_old=%d", req
->send_msg_old
);
3363 fprintf( stderr
, ", send_msg_new=%d", req
->send_msg_new
);
3366 static void dump_set_focus_window_request( const struct set_focus_window_request
*req
)
3368 fprintf( stderr
, " handle=%08x", req
->handle
);
3371 static void dump_set_focus_window_reply( const struct set_focus_window_reply
*req
)
3373 fprintf( stderr
, " previous=%08x", req
->previous
);
3376 static void dump_set_active_window_request( const struct set_active_window_request
*req
)
3378 fprintf( stderr
, " handle=%08x", req
->handle
);
3381 static void dump_set_active_window_reply( const struct set_active_window_reply
*req
)
3383 fprintf( stderr
, " previous=%08x", req
->previous
);
3386 static void dump_set_capture_window_request( const struct set_capture_window_request
*req
)
3388 fprintf( stderr
, " handle=%08x", req
->handle
);
3389 fprintf( stderr
, ", flags=%08x", req
->flags
);
3392 static void dump_set_capture_window_reply( const struct set_capture_window_reply
*req
)
3394 fprintf( stderr
, " previous=%08x", req
->previous
);
3395 fprintf( stderr
, ", full_handle=%08x", req
->full_handle
);
3398 static void dump_set_caret_window_request( const struct set_caret_window_request
*req
)
3400 fprintf( stderr
, " handle=%08x", req
->handle
);
3401 fprintf( stderr
, ", width=%d", req
->width
);
3402 fprintf( stderr
, ", height=%d", req
->height
);
3405 static void dump_set_caret_window_reply( const struct set_caret_window_reply
*req
)
3407 fprintf( stderr
, " previous=%08x", req
->previous
);
3408 dump_rectangle( ", old_rect=", &req
->old_rect
);
3409 fprintf( stderr
, ", old_hide=%d", req
->old_hide
);
3410 fprintf( stderr
, ", old_state=%d", req
->old_state
);
3413 static void dump_set_caret_info_request( const struct set_caret_info_request
*req
)
3415 fprintf( stderr
, " flags=%08x", req
->flags
);
3416 fprintf( stderr
, ", handle=%08x", req
->handle
);
3417 fprintf( stderr
, ", x=%d", req
->x
);
3418 fprintf( stderr
, ", y=%d", req
->y
);
3419 fprintf( stderr
, ", hide=%d", req
->hide
);
3420 fprintf( stderr
, ", state=%d", req
->state
);
3423 static void dump_set_caret_info_reply( const struct set_caret_info_reply
*req
)
3425 fprintf( stderr
, " full_handle=%08x", req
->full_handle
);
3426 dump_rectangle( ", old_rect=", &req
->old_rect
);
3427 fprintf( stderr
, ", old_hide=%d", req
->old_hide
);
3428 fprintf( stderr
, ", old_state=%d", req
->old_state
);
3431 static void dump_set_hook_request( const struct set_hook_request
*req
)
3433 fprintf( stderr
, " id=%d", req
->id
);
3434 fprintf( stderr
, ", pid=%04x", req
->pid
);
3435 fprintf( stderr
, ", tid=%04x", req
->tid
);
3436 fprintf( stderr
, ", event_min=%d", req
->event_min
);
3437 fprintf( stderr
, ", event_max=%d", req
->event_max
);
3438 dump_uint64( ", proc=", &req
->proc
);
3439 fprintf( stderr
, ", flags=%d", req
->flags
);
3440 fprintf( stderr
, ", unicode=%d", req
->unicode
);
3441 dump_varargs_unicode_str( ", module=", cur_size
);
3444 static void dump_set_hook_reply( const struct set_hook_reply
*req
)
3446 fprintf( stderr
, " handle=%08x", req
->handle
);
3447 fprintf( stderr
, ", active_hooks=%08x", req
->active_hooks
);
3450 static void dump_remove_hook_request( const struct remove_hook_request
*req
)
3452 fprintf( stderr
, " handle=%08x", req
->handle
);
3453 dump_uint64( ", proc=", &req
->proc
);
3454 fprintf( stderr
, ", id=%d", req
->id
);
3457 static void dump_remove_hook_reply( const struct remove_hook_reply
*req
)
3459 fprintf( stderr
, " active_hooks=%08x", req
->active_hooks
);
3462 static void dump_start_hook_chain_request( const struct start_hook_chain_request
*req
)
3464 fprintf( stderr
, " id=%d", req
->id
);
3465 fprintf( stderr
, ", event=%d", req
->event
);
3466 fprintf( stderr
, ", window=%08x", req
->window
);
3467 fprintf( stderr
, ", object_id=%d", req
->object_id
);
3468 fprintf( stderr
, ", child_id=%d", req
->child_id
);
3471 static void dump_start_hook_chain_reply( const struct start_hook_chain_reply
*req
)
3473 fprintf( stderr
, " handle=%08x", req
->handle
);
3474 fprintf( stderr
, ", pid=%04x", req
->pid
);
3475 fprintf( stderr
, ", tid=%04x", req
->tid
);
3476 fprintf( stderr
, ", unicode=%d", req
->unicode
);
3477 dump_uint64( ", proc=", &req
->proc
);
3478 fprintf( stderr
, ", active_hooks=%08x", req
->active_hooks
);
3479 dump_varargs_unicode_str( ", module=", cur_size
);
3482 static void dump_finish_hook_chain_request( const struct finish_hook_chain_request
*req
)
3484 fprintf( stderr
, " id=%d", req
->id
);
3487 static void dump_get_hook_info_request( const struct get_hook_info_request
*req
)
3489 fprintf( stderr
, " handle=%08x", req
->handle
);
3490 fprintf( stderr
, ", get_next=%d", req
->get_next
);
3491 fprintf( stderr
, ", event=%d", req
->event
);
3492 fprintf( stderr
, ", window=%08x", req
->window
);
3493 fprintf( stderr
, ", object_id=%d", req
->object_id
);
3494 fprintf( stderr
, ", child_id=%d", req
->child_id
);
3497 static void dump_get_hook_info_reply( const struct get_hook_info_reply
*req
)
3499 fprintf( stderr
, " handle=%08x", req
->handle
);
3500 fprintf( stderr
, ", id=%d", req
->id
);
3501 fprintf( stderr
, ", pid=%04x", req
->pid
);
3502 fprintf( stderr
, ", tid=%04x", req
->tid
);
3503 dump_uint64( ", proc=", &req
->proc
);
3504 fprintf( stderr
, ", unicode=%d", req
->unicode
);
3505 dump_varargs_unicode_str( ", module=", cur_size
);
3508 static void dump_create_class_request( const struct create_class_request
*req
)
3510 fprintf( stderr
, " local=%d", req
->local
);
3511 fprintf( stderr
, ", atom=%04x", req
->atom
);
3512 fprintf( stderr
, ", style=%08x", req
->style
);
3513 dump_uint64( ", instance=", &req
->instance
);
3514 fprintf( stderr
, ", extra=%d", req
->extra
);
3515 fprintf( stderr
, ", win_extra=%d", req
->win_extra
);
3516 dump_uint64( ", client_ptr=", &req
->client_ptr
);
3517 dump_varargs_unicode_str( ", name=", cur_size
);
3520 static void dump_create_class_reply( const struct create_class_reply
*req
)
3522 fprintf( stderr
, " atom=%04x", req
->atom
);
3525 static void dump_destroy_class_request( const struct destroy_class_request
*req
)
3527 fprintf( stderr
, " atom=%04x", req
->atom
);
3528 dump_uint64( ", instance=", &req
->instance
);
3529 dump_varargs_unicode_str( ", name=", cur_size
);
3532 static void dump_destroy_class_reply( const struct destroy_class_reply
*req
)
3534 dump_uint64( " client_ptr=", &req
->client_ptr
);
3537 static void dump_set_class_info_request( const struct set_class_info_request
*req
)
3539 fprintf( stderr
, " window=%08x", req
->window
);
3540 fprintf( stderr
, ", flags=%08x", req
->flags
);
3541 fprintf( stderr
, ", atom=%04x", req
->atom
);
3542 fprintf( stderr
, ", style=%08x", req
->style
);
3543 fprintf( stderr
, ", win_extra=%d", req
->win_extra
);
3544 dump_uint64( ", instance=", &req
->instance
);
3545 fprintf( stderr
, ", extra_offset=%d", req
->extra_offset
);
3546 fprintf( stderr
, ", extra_size=%u", req
->extra_size
);
3547 dump_uint64( ", extra_value=", &req
->extra_value
);
3550 static void dump_set_class_info_reply( const struct set_class_info_reply
*req
)
3552 fprintf( stderr
, " old_atom=%04x", req
->old_atom
);
3553 fprintf( stderr
, ", old_style=%08x", req
->old_style
);
3554 fprintf( stderr
, ", old_extra=%d", req
->old_extra
);
3555 fprintf( stderr
, ", old_win_extra=%d", req
->old_win_extra
);
3556 dump_uint64( ", old_instance=", &req
->old_instance
);
3557 dump_uint64( ", old_extra_value=", &req
->old_extra_value
);
3560 static void dump_set_clipboard_info_request( const struct set_clipboard_info_request
*req
)
3562 fprintf( stderr
, " flags=%08x", req
->flags
);
3563 fprintf( stderr
, ", clipboard=%08x", req
->clipboard
);
3564 fprintf( stderr
, ", owner=%08x", req
->owner
);
3565 fprintf( stderr
, ", viewer=%08x", req
->viewer
);
3566 fprintf( stderr
, ", seqno=%08x", req
->seqno
);
3569 static void dump_set_clipboard_info_reply( const struct set_clipboard_info_reply
*req
)
3571 fprintf( stderr
, " flags=%08x", req
->flags
);
3572 fprintf( stderr
, ", old_clipboard=%08x", req
->old_clipboard
);
3573 fprintf( stderr
, ", old_owner=%08x", req
->old_owner
);
3574 fprintf( stderr
, ", old_viewer=%08x", req
->old_viewer
);
3575 fprintf( stderr
, ", seqno=%08x", req
->seqno
);
3578 static void dump_open_token_request( const struct open_token_request
*req
)
3580 fprintf( stderr
, " handle=%04x", req
->handle
);
3581 fprintf( stderr
, ", access=%08x", req
->access
);
3582 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3583 fprintf( stderr
, ", flags=%08x", req
->flags
);
3586 static void dump_open_token_reply( const struct open_token_reply
*req
)
3588 fprintf( stderr
, " token=%04x", req
->token
);
3591 static void dump_set_global_windows_request( const struct set_global_windows_request
*req
)
3593 fprintf( stderr
, " flags=%08x", req
->flags
);
3594 fprintf( stderr
, ", shell_window=%08x", req
->shell_window
);
3595 fprintf( stderr
, ", shell_listview=%08x", req
->shell_listview
);
3596 fprintf( stderr
, ", progman_window=%08x", req
->progman_window
);
3597 fprintf( stderr
, ", taskman_window=%08x", req
->taskman_window
);
3600 static void dump_set_global_windows_reply( const struct set_global_windows_reply
*req
)
3602 fprintf( stderr
, " old_shell_window=%08x", req
->old_shell_window
);
3603 fprintf( stderr
, ", old_shell_listview=%08x", req
->old_shell_listview
);
3604 fprintf( stderr
, ", old_progman_window=%08x", req
->old_progman_window
);
3605 fprintf( stderr
, ", old_taskman_window=%08x", req
->old_taskman_window
);
3608 static void dump_adjust_token_privileges_request( const struct adjust_token_privileges_request
*req
)
3610 fprintf( stderr
, " handle=%04x", req
->handle
);
3611 fprintf( stderr
, ", disable_all=%d", req
->disable_all
);
3612 fprintf( stderr
, ", get_modified_state=%d", req
->get_modified_state
);
3613 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size
);
3616 static void dump_adjust_token_privileges_reply( const struct adjust_token_privileges_reply
*req
)
3618 fprintf( stderr
, " len=%08x", req
->len
);
3619 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size
);
3622 static void dump_get_token_privileges_request( const struct get_token_privileges_request
*req
)
3624 fprintf( stderr
, " handle=%04x", req
->handle
);
3627 static void dump_get_token_privileges_reply( const struct get_token_privileges_reply
*req
)
3629 fprintf( stderr
, " len=%08x", req
->len
);
3630 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size
);
3633 static void dump_check_token_privileges_request( const struct check_token_privileges_request
*req
)
3635 fprintf( stderr
, " handle=%04x", req
->handle
);
3636 fprintf( stderr
, ", all_required=%d", req
->all_required
);
3637 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size
);
3640 static void dump_check_token_privileges_reply( const struct check_token_privileges_reply
*req
)
3642 fprintf( stderr
, " has_privileges=%d", req
->has_privileges
);
3643 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size
);
3646 static void dump_duplicate_token_request( const struct duplicate_token_request
*req
)
3648 fprintf( stderr
, " handle=%04x", req
->handle
);
3649 fprintf( stderr
, ", access=%08x", req
->access
);
3650 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3651 fprintf( stderr
, ", primary=%d", req
->primary
);
3652 fprintf( stderr
, ", impersonation_level=%d", req
->impersonation_level
);
3655 static void dump_duplicate_token_reply( const struct duplicate_token_reply
*req
)
3657 fprintf( stderr
, " new_handle=%04x", req
->new_handle
);
3660 static void dump_access_check_request( const struct access_check_request
*req
)
3662 fprintf( stderr
, " handle=%04x", req
->handle
);
3663 fprintf( stderr
, ", desired_access=%08x", req
->desired_access
);
3664 fprintf( stderr
, ", mapping_read=%08x", req
->mapping_read
);
3665 fprintf( stderr
, ", mapping_write=%08x", req
->mapping_write
);
3666 fprintf( stderr
, ", mapping_execute=%08x", req
->mapping_execute
);
3667 fprintf( stderr
, ", mapping_all=%08x", req
->mapping_all
);
3668 dump_varargs_security_descriptor( ", sd=", cur_size
);
3671 static void dump_access_check_reply( const struct access_check_reply
*req
)
3673 fprintf( stderr
, " access_granted=%08x", req
->access_granted
);
3674 fprintf( stderr
, ", access_status=%08x", req
->access_status
);
3675 fprintf( stderr
, ", privileges_len=%08x", req
->privileges_len
);
3676 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size
);
3679 static void dump_get_token_sid_request( const struct get_token_sid_request
*req
)
3681 fprintf( stderr
, " handle=%04x", req
->handle
);
3682 fprintf( stderr
, ", which_sid=%08x", req
->which_sid
);
3685 static void dump_get_token_sid_reply( const struct get_token_sid_reply
*req
)
3687 fprintf( stderr
, " sid_len=%u", req
->sid_len
);
3688 dump_varargs_SID( ", sid=", cur_size
);
3691 static void dump_get_token_groups_request( const struct get_token_groups_request
*req
)
3693 fprintf( stderr
, " handle=%04x", req
->handle
);
3696 static void dump_get_token_groups_reply( const struct get_token_groups_reply
*req
)
3698 fprintf( stderr
, " user_len=%u", req
->user_len
);
3699 dump_varargs_token_groups( ", user=", cur_size
);
3702 static void dump_get_token_default_dacl_request( const struct get_token_default_dacl_request
*req
)
3704 fprintf( stderr
, " handle=%04x", req
->handle
);
3707 static void dump_get_token_default_dacl_reply( const struct get_token_default_dacl_reply
*req
)
3709 fprintf( stderr
, " acl_len=%u", req
->acl_len
);
3710 dump_varargs_ACL( ", acl=", cur_size
);
3713 static void dump_set_token_default_dacl_request( const struct set_token_default_dacl_request
*req
)
3715 fprintf( stderr
, " handle=%04x", req
->handle
);
3716 dump_varargs_ACL( ", acl=", cur_size
);
3719 static void dump_set_security_object_request( const struct set_security_object_request
*req
)
3721 fprintf( stderr
, " handle=%04x", req
->handle
);
3722 fprintf( stderr
, ", security_info=%08x", req
->security_info
);
3723 dump_varargs_security_descriptor( ", sd=", cur_size
);
3726 static void dump_get_security_object_request( const struct get_security_object_request
*req
)
3728 fprintf( stderr
, " handle=%04x", req
->handle
);
3729 fprintf( stderr
, ", security_info=%08x", req
->security_info
);
3732 static void dump_get_security_object_reply( const struct get_security_object_reply
*req
)
3734 fprintf( stderr
, " sd_len=%08x", req
->sd_len
);
3735 dump_varargs_security_descriptor( ", sd=", cur_size
);
3738 static void dump_create_mailslot_request( const struct create_mailslot_request
*req
)
3740 fprintf( stderr
, " access=%08x", req
->access
);
3741 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3742 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
3743 dump_timeout( ", read_timeout=", &req
->read_timeout
);
3744 fprintf( stderr
, ", max_msgsize=%08x", req
->max_msgsize
);
3745 dump_varargs_unicode_str( ", name=", cur_size
);
3748 static void dump_create_mailslot_reply( const struct create_mailslot_reply
*req
)
3750 fprintf( stderr
, " handle=%04x", req
->handle
);
3753 static void dump_set_mailslot_info_request( const struct set_mailslot_info_request
*req
)
3755 fprintf( stderr
, " handle=%04x", req
->handle
);
3756 dump_timeout( ", read_timeout=", &req
->read_timeout
);
3757 fprintf( stderr
, ", flags=%08x", req
->flags
);
3760 static void dump_set_mailslot_info_reply( const struct set_mailslot_info_reply
*req
)
3762 dump_timeout( " read_timeout=", &req
->read_timeout
);
3763 fprintf( stderr
, ", max_msgsize=%08x", req
->max_msgsize
);
3766 static void dump_create_directory_request( const struct create_directory_request
*req
)
3768 fprintf( stderr
, " access=%08x", req
->access
);
3769 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3770 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
3771 dump_varargs_unicode_str( ", directory_name=", cur_size
);
3774 static void dump_create_directory_reply( const struct create_directory_reply
*req
)
3776 fprintf( stderr
, " handle=%04x", req
->handle
);
3779 static void dump_open_directory_request( const struct open_directory_request
*req
)
3781 fprintf( stderr
, " access=%08x", req
->access
);
3782 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3783 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
3784 dump_varargs_unicode_str( ", directory_name=", cur_size
);
3787 static void dump_open_directory_reply( const struct open_directory_reply
*req
)
3789 fprintf( stderr
, " handle=%04x", req
->handle
);
3792 static void dump_get_directory_entry_request( const struct get_directory_entry_request
*req
)
3794 fprintf( stderr
, " handle=%04x", req
->handle
);
3795 fprintf( stderr
, ", index=%08x", req
->index
);
3798 static void dump_get_directory_entry_reply( const struct get_directory_entry_reply
*req
)
3800 fprintf( stderr
, " name_len=%u", req
->name_len
);
3801 dump_varargs_unicode_str( ", name=", min(cur_size
,req
->name_len
) );
3802 dump_varargs_unicode_str( ", type=", cur_size
);
3805 static void dump_create_symlink_request( const struct create_symlink_request
*req
)
3807 fprintf( stderr
, " access=%08x", req
->access
);
3808 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3809 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
3810 fprintf( stderr
, ", name_len=%u", req
->name_len
);
3811 dump_varargs_unicode_str( ", name=", min(cur_size
,req
->name_len
) );
3812 dump_varargs_unicode_str( ", target_name=", cur_size
);
3815 static void dump_create_symlink_reply( const struct create_symlink_reply
*req
)
3817 fprintf( stderr
, " handle=%04x", req
->handle
);
3820 static void dump_open_symlink_request( const struct open_symlink_request
*req
)
3822 fprintf( stderr
, " access=%08x", req
->access
);
3823 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3824 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
3825 dump_varargs_unicode_str( ", name=", cur_size
);
3828 static void dump_open_symlink_reply( const struct open_symlink_reply
*req
)
3830 fprintf( stderr
, " handle=%04x", req
->handle
);
3833 static void dump_query_symlink_request( const struct query_symlink_request
*req
)
3835 fprintf( stderr
, " handle=%04x", req
->handle
);
3838 static void dump_query_symlink_reply( const struct query_symlink_reply
*req
)
3840 fprintf( stderr
, " total=%u", req
->total
);
3841 dump_varargs_unicode_str( ", target_name=", cur_size
);
3844 static void dump_get_object_info_request( const struct get_object_info_request
*req
)
3846 fprintf( stderr
, " handle=%04x", req
->handle
);
3849 static void dump_get_object_info_reply( const struct get_object_info_reply
*req
)
3851 fprintf( stderr
, " access=%08x", req
->access
);
3852 fprintf( stderr
, ", ref_count=%08x", req
->ref_count
);
3853 fprintf( stderr
, ", handle_count=%08x", req
->handle_count
);
3854 fprintf( stderr
, ", total=%u", req
->total
);
3855 dump_varargs_unicode_str( ", name=", cur_size
);
3858 static void dump_unlink_object_request( const struct unlink_object_request
*req
)
3860 fprintf( stderr
, " handle=%04x", req
->handle
);
3863 static void dump_get_token_impersonation_level_request( const struct get_token_impersonation_level_request
*req
)
3865 fprintf( stderr
, " handle=%04x", req
->handle
);
3868 static void dump_get_token_impersonation_level_reply( const struct get_token_impersonation_level_reply
*req
)
3870 fprintf( stderr
, " impersonation_level=%d", req
->impersonation_level
);
3873 static void dump_allocate_locally_unique_id_request( const struct allocate_locally_unique_id_request
*req
)
3877 static void dump_allocate_locally_unique_id_reply( const struct allocate_locally_unique_id_reply
*req
)
3879 dump_luid( " luid=", &req
->luid
);
3882 static void dump_create_device_manager_request( const struct create_device_manager_request
*req
)
3884 fprintf( stderr
, " access=%08x", req
->access
);
3885 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3888 static void dump_create_device_manager_reply( const struct create_device_manager_reply
*req
)
3890 fprintf( stderr
, " handle=%04x", req
->handle
);
3893 static void dump_create_device_request( const struct create_device_request
*req
)
3895 fprintf( stderr
, " access=%08x", req
->access
);
3896 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3897 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
3898 dump_uint64( ", user_ptr=", &req
->user_ptr
);
3899 fprintf( stderr
, ", manager=%04x", req
->manager
);
3900 dump_varargs_unicode_str( ", name=", cur_size
);
3903 static void dump_create_device_reply( const struct create_device_reply
*req
)
3905 fprintf( stderr
, " handle=%04x", req
->handle
);
3908 static void dump_delete_device_request( const struct delete_device_request
*req
)
3910 fprintf( stderr
, " handle=%04x", req
->handle
);
3913 static void dump_get_next_device_request_request( const struct get_next_device_request_request
*req
)
3915 fprintf( stderr
, " manager=%04x", req
->manager
);
3916 fprintf( stderr
, ", prev=%04x", req
->prev
);
3917 fprintf( stderr
, ", status=%08x", req
->status
);
3918 dump_varargs_bytes( ", prev_data=", cur_size
);
3921 static void dump_get_next_device_request_reply( const struct get_next_device_request_reply
*req
)
3923 fprintf( stderr
, " next=%04x", req
->next
);
3924 dump_ioctl_code( ", code=", &req
->code
);
3925 dump_uint64( ", user_ptr=", &req
->user_ptr
);
3926 fprintf( stderr
, ", client_pid=%04x", req
->client_pid
);
3927 fprintf( stderr
, ", client_tid=%04x", req
->client_tid
);
3928 fprintf( stderr
, ", in_size=%u", req
->in_size
);
3929 fprintf( stderr
, ", out_size=%u", req
->out_size
);
3930 dump_varargs_bytes( ", next_data=", cur_size
);
3933 static void dump_make_process_system_request( const struct make_process_system_request
*req
)
3937 static void dump_make_process_system_reply( const struct make_process_system_reply
*req
)
3939 fprintf( stderr
, " event=%04x", req
->event
);
3942 static void dump_get_token_statistics_request( const struct get_token_statistics_request
*req
)
3944 fprintf( stderr
, " handle=%04x", req
->handle
);
3947 static void dump_get_token_statistics_reply( const struct get_token_statistics_reply
*req
)
3949 dump_luid( " token_id=", &req
->token_id
);
3950 dump_luid( ", modified_id=", &req
->modified_id
);
3951 fprintf( stderr
, ", primary=%d", req
->primary
);
3952 fprintf( stderr
, ", impersonation_level=%d", req
->impersonation_level
);
3953 fprintf( stderr
, ", group_count=%d", req
->group_count
);
3954 fprintf( stderr
, ", privilege_count=%d", req
->privilege_count
);
3957 static void dump_create_completion_request( const struct create_completion_request
*req
)
3959 fprintf( stderr
, " access=%08x", req
->access
);
3960 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3961 fprintf( stderr
, ", concurrent=%08x", req
->concurrent
);
3962 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
3963 dump_varargs_unicode_str( ", filename=", cur_size
);
3966 static void dump_create_completion_reply( const struct create_completion_reply
*req
)
3968 fprintf( stderr
, " handle=%04x", req
->handle
);
3971 static void dump_open_completion_request( const struct open_completion_request
*req
)
3973 fprintf( stderr
, " access=%08x", req
->access
);
3974 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3975 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
3976 dump_varargs_unicode_str( ", filename=", cur_size
);
3979 static void dump_open_completion_reply( const struct open_completion_reply
*req
)
3981 fprintf( stderr
, " handle=%04x", req
->handle
);
3984 static void dump_add_completion_request( const struct add_completion_request
*req
)
3986 fprintf( stderr
, " handle=%04x", req
->handle
);
3987 dump_uint64( ", ckey=", &req
->ckey
);
3988 dump_uint64( ", cvalue=", &req
->cvalue
);
3989 dump_uint64( ", information=", &req
->information
);
3990 fprintf( stderr
, ", status=%08x", req
->status
);
3993 static void dump_remove_completion_request( const struct remove_completion_request
*req
)
3995 fprintf( stderr
, " handle=%04x", req
->handle
);
3998 static void dump_remove_completion_reply( const struct remove_completion_reply
*req
)
4000 dump_uint64( " ckey=", &req
->ckey
);
4001 dump_uint64( ", cvalue=", &req
->cvalue
);
4002 dump_uint64( ", information=", &req
->information
);
4003 fprintf( stderr
, ", status=%08x", req
->status
);
4006 static void dump_query_completion_request( const struct query_completion_request
*req
)
4008 fprintf( stderr
, " handle=%04x", req
->handle
);
4011 static void dump_query_completion_reply( const struct query_completion_reply
*req
)
4013 fprintf( stderr
, " depth=%08x", req
->depth
);
4016 static void dump_set_completion_info_request( const struct set_completion_info_request
*req
)
4018 fprintf( stderr
, " handle=%04x", req
->handle
);
4019 dump_uint64( ", ckey=", &req
->ckey
);
4020 fprintf( stderr
, ", chandle=%04x", req
->chandle
);
4023 static void dump_add_fd_completion_request( const struct add_fd_completion_request
*req
)
4025 fprintf( stderr
, " handle=%04x", req
->handle
);
4026 dump_uint64( ", cvalue=", &req
->cvalue
);
4027 dump_uint64( ", information=", &req
->information
);
4028 fprintf( stderr
, ", status=%08x", req
->status
);
4031 static void dump_get_window_layered_info_request( const struct get_window_layered_info_request
*req
)
4033 fprintf( stderr
, " handle=%08x", req
->handle
);
4036 static void dump_get_window_layered_info_reply( const struct get_window_layered_info_reply
*req
)
4038 fprintf( stderr
, " color_key=%08x", req
->color_key
);
4039 fprintf( stderr
, ", alpha=%08x", req
->alpha
);
4040 fprintf( stderr
, ", flags=%08x", req
->flags
);
4043 static void dump_set_window_layered_info_request( const struct set_window_layered_info_request
*req
)
4045 fprintf( stderr
, " handle=%08x", req
->handle
);
4046 fprintf( stderr
, ", color_key=%08x", req
->color_key
);
4047 fprintf( stderr
, ", alpha=%08x", req
->alpha
);
4048 fprintf( stderr
, ", flags=%08x", req
->flags
);
4051 static void dump_alloc_user_handle_request( const struct alloc_user_handle_request
*req
)
4055 static void dump_alloc_user_handle_reply( const struct alloc_user_handle_reply
*req
)
4057 fprintf( stderr
, " handle=%08x", req
->handle
);
4060 static void dump_free_user_handle_request( const struct free_user_handle_request
*req
)
4062 fprintf( stderr
, " handle=%08x", req
->handle
);
4065 static void dump_set_cursor_request( const struct set_cursor_request
*req
)
4067 fprintf( stderr
, " flags=%08x", req
->flags
);
4068 fprintf( stderr
, ", handle=%08x", req
->handle
);
4069 fprintf( stderr
, ", show_count=%d", req
->show_count
);
4070 fprintf( stderr
, ", x=%d", req
->x
);
4071 fprintf( stderr
, ", y=%d", req
->y
);
4072 dump_rectangle( ", clip=", &req
->clip
);
4073 fprintf( stderr
, ", clip_msg=%08x", req
->clip_msg
);
4076 static void dump_set_cursor_reply( const struct set_cursor_reply
*req
)
4078 fprintf( stderr
, " prev_handle=%08x", req
->prev_handle
);
4079 fprintf( stderr
, ", prev_count=%d", req
->prev_count
);
4080 fprintf( stderr
, ", prev_x=%d", req
->prev_x
);
4081 fprintf( stderr
, ", prev_y=%d", req
->prev_y
);
4082 fprintf( stderr
, ", new_x=%d", req
->new_x
);
4083 fprintf( stderr
, ", new_y=%d", req
->new_y
);
4084 dump_rectangle( ", new_clip=", &req
->new_clip
);
4085 fprintf( stderr
, ", last_change=%08x", req
->last_change
);
4088 static void dump_update_rawinput_devices_request( const struct update_rawinput_devices_request
*req
)
4090 dump_varargs_rawinput_devices( " devices=", cur_size
);
4093 static void dump_get_suspend_context_request( const struct get_suspend_context_request
*req
)
4097 static void dump_get_suspend_context_reply( const struct get_suspend_context_reply
*req
)
4099 dump_varargs_context( " context=", cur_size
);
4102 static void dump_set_suspend_context_request( const struct set_suspend_context_request
*req
)
4104 dump_varargs_context( " context=", cur_size
);
4107 static void dump_create_job_request( const struct create_job_request
*req
)
4109 fprintf( stderr
, " access=%08x", req
->access
);
4110 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
4111 dump_varargs_object_attributes( ", objattr=", cur_size
);
4114 static void dump_create_job_reply( const struct create_job_reply
*req
)
4116 fprintf( stderr
, " handle=%04x", req
->handle
);
4119 static void dump_assign_job_request( const struct assign_job_request
*req
)
4121 fprintf( stderr
, " job=%04x", req
->job
);
4122 fprintf( stderr
, ", process=%04x", req
->process
);
4125 static void dump_process_in_job_request( const struct process_in_job_request
*req
)
4127 fprintf( stderr
, " job=%04x", req
->job
);
4128 fprintf( stderr
, ", process=%04x", req
->process
);
4131 static void dump_set_job_limits_request( const struct set_job_limits_request
*req
)
4133 fprintf( stderr
, " handle=%04x", req
->handle
);
4134 fprintf( stderr
, ", limit_flags=%08x", req
->limit_flags
);
4137 static void dump_set_job_completion_port_request( const struct set_job_completion_port_request
*req
)
4139 fprintf( stderr
, " job=%04x", req
->job
);
4140 fprintf( stderr
, ", port=%04x", req
->port
);
4141 dump_uint64( ", key=", &req
->key
);
4144 static void dump_terminate_job_request( const struct terminate_job_request
*req
)
4146 fprintf( stderr
, " handle=%04x", req
->handle
);
4147 fprintf( stderr
, ", status=%d", req
->status
);
4150 static const dump_func req_dumpers
[REQ_NB_REQUESTS
] = {
4151 (dump_func
)dump_new_process_request
,
4152 (dump_func
)dump_get_new_process_info_request
,
4153 (dump_func
)dump_new_thread_request
,
4154 (dump_func
)dump_get_startup_info_request
,
4155 (dump_func
)dump_init_process_done_request
,
4156 (dump_func
)dump_init_thread_request
,
4157 (dump_func
)dump_terminate_process_request
,
4158 (dump_func
)dump_terminate_thread_request
,
4159 (dump_func
)dump_get_process_info_request
,
4160 (dump_func
)dump_set_process_info_request
,
4161 (dump_func
)dump_get_thread_info_request
,
4162 (dump_func
)dump_set_thread_info_request
,
4163 (dump_func
)dump_get_dll_info_request
,
4164 (dump_func
)dump_suspend_thread_request
,
4165 (dump_func
)dump_resume_thread_request
,
4166 (dump_func
)dump_load_dll_request
,
4167 (dump_func
)dump_unload_dll_request
,
4168 (dump_func
)dump_queue_apc_request
,
4169 (dump_func
)dump_get_apc_result_request
,
4170 (dump_func
)dump_close_handle_request
,
4171 (dump_func
)dump_set_handle_info_request
,
4172 (dump_func
)dump_dup_handle_request
,
4173 (dump_func
)dump_open_process_request
,
4174 (dump_func
)dump_open_thread_request
,
4175 (dump_func
)dump_select_request
,
4176 (dump_func
)dump_create_event_request
,
4177 (dump_func
)dump_event_op_request
,
4178 (dump_func
)dump_query_event_request
,
4179 (dump_func
)dump_open_event_request
,
4180 (dump_func
)dump_create_keyed_event_request
,
4181 (dump_func
)dump_open_keyed_event_request
,
4182 (dump_func
)dump_create_mutex_request
,
4183 (dump_func
)dump_release_mutex_request
,
4184 (dump_func
)dump_open_mutex_request
,
4185 (dump_func
)dump_create_semaphore_request
,
4186 (dump_func
)dump_release_semaphore_request
,
4187 (dump_func
)dump_query_semaphore_request
,
4188 (dump_func
)dump_open_semaphore_request
,
4189 (dump_func
)dump_create_file_request
,
4190 (dump_func
)dump_open_file_object_request
,
4191 (dump_func
)dump_alloc_file_handle_request
,
4192 (dump_func
)dump_get_handle_unix_name_request
,
4193 (dump_func
)dump_get_handle_fd_request
,
4194 (dump_func
)dump_flush_file_request
,
4195 (dump_func
)dump_lock_file_request
,
4196 (dump_func
)dump_unlock_file_request
,
4197 (dump_func
)dump_create_socket_request
,
4198 (dump_func
)dump_accept_socket_request
,
4199 (dump_func
)dump_accept_into_socket_request
,
4200 (dump_func
)dump_set_socket_event_request
,
4201 (dump_func
)dump_get_socket_event_request
,
4202 (dump_func
)dump_get_socket_info_request
,
4203 (dump_func
)dump_enable_socket_event_request
,
4204 (dump_func
)dump_set_socket_deferred_request
,
4205 (dump_func
)dump_alloc_console_request
,
4206 (dump_func
)dump_free_console_request
,
4207 (dump_func
)dump_get_console_renderer_events_request
,
4208 (dump_func
)dump_open_console_request
,
4209 (dump_func
)dump_get_console_wait_event_request
,
4210 (dump_func
)dump_get_console_mode_request
,
4211 (dump_func
)dump_set_console_mode_request
,
4212 (dump_func
)dump_set_console_input_info_request
,
4213 (dump_func
)dump_get_console_input_info_request
,
4214 (dump_func
)dump_append_console_input_history_request
,
4215 (dump_func
)dump_get_console_input_history_request
,
4216 (dump_func
)dump_create_console_output_request
,
4217 (dump_func
)dump_set_console_output_info_request
,
4218 (dump_func
)dump_get_console_output_info_request
,
4219 (dump_func
)dump_write_console_input_request
,
4220 (dump_func
)dump_read_console_input_request
,
4221 (dump_func
)dump_write_console_output_request
,
4222 (dump_func
)dump_fill_console_output_request
,
4223 (dump_func
)dump_read_console_output_request
,
4224 (dump_func
)dump_move_console_output_request
,
4225 (dump_func
)dump_send_console_signal_request
,
4226 (dump_func
)dump_read_directory_changes_request
,
4227 (dump_func
)dump_read_change_request
,
4228 (dump_func
)dump_create_mapping_request
,
4229 (dump_func
)dump_open_mapping_request
,
4230 (dump_func
)dump_get_mapping_info_request
,
4231 (dump_func
)dump_get_mapping_committed_range_request
,
4232 (dump_func
)dump_add_mapping_committed_range_request
,
4233 (dump_func
)dump_create_snapshot_request
,
4234 (dump_func
)dump_next_process_request
,
4235 (dump_func
)dump_next_thread_request
,
4236 (dump_func
)dump_wait_debug_event_request
,
4237 (dump_func
)dump_queue_exception_event_request
,
4238 (dump_func
)dump_get_exception_status_request
,
4239 (dump_func
)dump_continue_debug_event_request
,
4240 (dump_func
)dump_debug_process_request
,
4241 (dump_func
)dump_debug_break_request
,
4242 (dump_func
)dump_set_debugger_kill_on_exit_request
,
4243 (dump_func
)dump_read_process_memory_request
,
4244 (dump_func
)dump_write_process_memory_request
,
4245 (dump_func
)dump_create_key_request
,
4246 (dump_func
)dump_open_key_request
,
4247 (dump_func
)dump_delete_key_request
,
4248 (dump_func
)dump_flush_key_request
,
4249 (dump_func
)dump_enum_key_request
,
4250 (dump_func
)dump_set_key_value_request
,
4251 (dump_func
)dump_get_key_value_request
,
4252 (dump_func
)dump_enum_key_value_request
,
4253 (dump_func
)dump_delete_key_value_request
,
4254 (dump_func
)dump_load_registry_request
,
4255 (dump_func
)dump_unload_registry_request
,
4256 (dump_func
)dump_save_registry_request
,
4257 (dump_func
)dump_set_registry_notification_request
,
4258 (dump_func
)dump_create_timer_request
,
4259 (dump_func
)dump_open_timer_request
,
4260 (dump_func
)dump_set_timer_request
,
4261 (dump_func
)dump_cancel_timer_request
,
4262 (dump_func
)dump_get_timer_info_request
,
4263 (dump_func
)dump_get_thread_context_request
,
4264 (dump_func
)dump_set_thread_context_request
,
4265 (dump_func
)dump_get_selector_entry_request
,
4266 (dump_func
)dump_add_atom_request
,
4267 (dump_func
)dump_delete_atom_request
,
4268 (dump_func
)dump_find_atom_request
,
4269 (dump_func
)dump_get_atom_information_request
,
4270 (dump_func
)dump_set_atom_information_request
,
4271 (dump_func
)dump_empty_atom_table_request
,
4272 (dump_func
)dump_init_atom_table_request
,
4273 (dump_func
)dump_get_msg_queue_request
,
4274 (dump_func
)dump_set_queue_fd_request
,
4275 (dump_func
)dump_set_queue_mask_request
,
4276 (dump_func
)dump_get_queue_status_request
,
4277 (dump_func
)dump_get_process_idle_event_request
,
4278 (dump_func
)dump_send_message_request
,
4279 (dump_func
)dump_post_quit_message_request
,
4280 (dump_func
)dump_send_hardware_message_request
,
4281 (dump_func
)dump_get_message_request
,
4282 (dump_func
)dump_reply_message_request
,
4283 (dump_func
)dump_accept_hardware_message_request
,
4284 (dump_func
)dump_get_message_reply_request
,
4285 (dump_func
)dump_set_win_timer_request
,
4286 (dump_func
)dump_kill_win_timer_request
,
4287 (dump_func
)dump_is_window_hung_request
,
4288 (dump_func
)dump_get_serial_info_request
,
4289 (dump_func
)dump_set_serial_info_request
,
4290 (dump_func
)dump_register_async_request
,
4291 (dump_func
)dump_cancel_async_request
,
4292 (dump_func
)dump_ioctl_request
,
4293 (dump_func
)dump_set_ioctl_result_request
,
4294 (dump_func
)dump_get_ioctl_result_request
,
4295 (dump_func
)dump_create_named_pipe_request
,
4296 (dump_func
)dump_get_named_pipe_info_request
,
4297 (dump_func
)dump_set_named_pipe_info_request
,
4298 (dump_func
)dump_create_window_request
,
4299 (dump_func
)dump_destroy_window_request
,
4300 (dump_func
)dump_get_desktop_window_request
,
4301 (dump_func
)dump_set_window_owner_request
,
4302 (dump_func
)dump_get_window_info_request
,
4303 (dump_func
)dump_set_window_info_request
,
4304 (dump_func
)dump_set_parent_request
,
4305 (dump_func
)dump_get_window_parents_request
,
4306 (dump_func
)dump_get_window_children_request
,
4307 (dump_func
)dump_get_window_children_from_point_request
,
4308 (dump_func
)dump_get_window_tree_request
,
4309 (dump_func
)dump_set_window_pos_request
,
4310 (dump_func
)dump_get_window_rectangles_request
,
4311 (dump_func
)dump_get_window_text_request
,
4312 (dump_func
)dump_set_window_text_request
,
4313 (dump_func
)dump_get_windows_offset_request
,
4314 (dump_func
)dump_get_visible_region_request
,
4315 (dump_func
)dump_get_surface_region_request
,
4316 (dump_func
)dump_get_window_region_request
,
4317 (dump_func
)dump_set_window_region_request
,
4318 (dump_func
)dump_get_update_region_request
,
4319 (dump_func
)dump_update_window_zorder_request
,
4320 (dump_func
)dump_redraw_window_request
,
4321 (dump_func
)dump_set_window_property_request
,
4322 (dump_func
)dump_remove_window_property_request
,
4323 (dump_func
)dump_get_window_property_request
,
4324 (dump_func
)dump_get_window_properties_request
,
4325 (dump_func
)dump_create_winstation_request
,
4326 (dump_func
)dump_open_winstation_request
,
4327 (dump_func
)dump_close_winstation_request
,
4328 (dump_func
)dump_get_process_winstation_request
,
4329 (dump_func
)dump_set_process_winstation_request
,
4330 (dump_func
)dump_enum_winstation_request
,
4331 (dump_func
)dump_create_desktop_request
,
4332 (dump_func
)dump_open_desktop_request
,
4333 (dump_func
)dump_open_input_desktop_request
,
4334 (dump_func
)dump_close_desktop_request
,
4335 (dump_func
)dump_get_thread_desktop_request
,
4336 (dump_func
)dump_set_thread_desktop_request
,
4337 (dump_func
)dump_enum_desktop_request
,
4338 (dump_func
)dump_set_user_object_info_request
,
4339 (dump_func
)dump_register_hotkey_request
,
4340 (dump_func
)dump_unregister_hotkey_request
,
4341 (dump_func
)dump_attach_thread_input_request
,
4342 (dump_func
)dump_get_thread_input_request
,
4343 (dump_func
)dump_get_last_input_time_request
,
4344 (dump_func
)dump_get_key_state_request
,
4345 (dump_func
)dump_set_key_state_request
,
4346 (dump_func
)dump_set_foreground_window_request
,
4347 (dump_func
)dump_set_focus_window_request
,
4348 (dump_func
)dump_set_active_window_request
,
4349 (dump_func
)dump_set_capture_window_request
,
4350 (dump_func
)dump_set_caret_window_request
,
4351 (dump_func
)dump_set_caret_info_request
,
4352 (dump_func
)dump_set_hook_request
,
4353 (dump_func
)dump_remove_hook_request
,
4354 (dump_func
)dump_start_hook_chain_request
,
4355 (dump_func
)dump_finish_hook_chain_request
,
4356 (dump_func
)dump_get_hook_info_request
,
4357 (dump_func
)dump_create_class_request
,
4358 (dump_func
)dump_destroy_class_request
,
4359 (dump_func
)dump_set_class_info_request
,
4360 (dump_func
)dump_set_clipboard_info_request
,
4361 (dump_func
)dump_open_token_request
,
4362 (dump_func
)dump_set_global_windows_request
,
4363 (dump_func
)dump_adjust_token_privileges_request
,
4364 (dump_func
)dump_get_token_privileges_request
,
4365 (dump_func
)dump_check_token_privileges_request
,
4366 (dump_func
)dump_duplicate_token_request
,
4367 (dump_func
)dump_access_check_request
,
4368 (dump_func
)dump_get_token_sid_request
,
4369 (dump_func
)dump_get_token_groups_request
,
4370 (dump_func
)dump_get_token_default_dacl_request
,
4371 (dump_func
)dump_set_token_default_dacl_request
,
4372 (dump_func
)dump_set_security_object_request
,
4373 (dump_func
)dump_get_security_object_request
,
4374 (dump_func
)dump_create_mailslot_request
,
4375 (dump_func
)dump_set_mailslot_info_request
,
4376 (dump_func
)dump_create_directory_request
,
4377 (dump_func
)dump_open_directory_request
,
4378 (dump_func
)dump_get_directory_entry_request
,
4379 (dump_func
)dump_create_symlink_request
,
4380 (dump_func
)dump_open_symlink_request
,
4381 (dump_func
)dump_query_symlink_request
,
4382 (dump_func
)dump_get_object_info_request
,
4383 (dump_func
)dump_unlink_object_request
,
4384 (dump_func
)dump_get_token_impersonation_level_request
,
4385 (dump_func
)dump_allocate_locally_unique_id_request
,
4386 (dump_func
)dump_create_device_manager_request
,
4387 (dump_func
)dump_create_device_request
,
4388 (dump_func
)dump_delete_device_request
,
4389 (dump_func
)dump_get_next_device_request_request
,
4390 (dump_func
)dump_make_process_system_request
,
4391 (dump_func
)dump_get_token_statistics_request
,
4392 (dump_func
)dump_create_completion_request
,
4393 (dump_func
)dump_open_completion_request
,
4394 (dump_func
)dump_add_completion_request
,
4395 (dump_func
)dump_remove_completion_request
,
4396 (dump_func
)dump_query_completion_request
,
4397 (dump_func
)dump_set_completion_info_request
,
4398 (dump_func
)dump_add_fd_completion_request
,
4399 (dump_func
)dump_get_window_layered_info_request
,
4400 (dump_func
)dump_set_window_layered_info_request
,
4401 (dump_func
)dump_alloc_user_handle_request
,
4402 (dump_func
)dump_free_user_handle_request
,
4403 (dump_func
)dump_set_cursor_request
,
4404 (dump_func
)dump_update_rawinput_devices_request
,
4405 (dump_func
)dump_get_suspend_context_request
,
4406 (dump_func
)dump_set_suspend_context_request
,
4407 (dump_func
)dump_create_job_request
,
4408 (dump_func
)dump_assign_job_request
,
4409 (dump_func
)dump_process_in_job_request
,
4410 (dump_func
)dump_set_job_limits_request
,
4411 (dump_func
)dump_set_job_completion_port_request
,
4412 (dump_func
)dump_terminate_job_request
,
4415 static const dump_func reply_dumpers
[REQ_NB_REQUESTS
] = {
4416 (dump_func
)dump_new_process_reply
,
4417 (dump_func
)dump_get_new_process_info_reply
,
4418 (dump_func
)dump_new_thread_reply
,
4419 (dump_func
)dump_get_startup_info_reply
,
4421 (dump_func
)dump_init_thread_reply
,
4422 (dump_func
)dump_terminate_process_reply
,
4423 (dump_func
)dump_terminate_thread_reply
,
4424 (dump_func
)dump_get_process_info_reply
,
4426 (dump_func
)dump_get_thread_info_reply
,
4428 (dump_func
)dump_get_dll_info_reply
,
4429 (dump_func
)dump_suspend_thread_reply
,
4430 (dump_func
)dump_resume_thread_reply
,
4433 (dump_func
)dump_queue_apc_reply
,
4434 (dump_func
)dump_get_apc_result_reply
,
4436 (dump_func
)dump_set_handle_info_reply
,
4437 (dump_func
)dump_dup_handle_reply
,
4438 (dump_func
)dump_open_process_reply
,
4439 (dump_func
)dump_open_thread_reply
,
4440 (dump_func
)dump_select_reply
,
4441 (dump_func
)dump_create_event_reply
,
4443 (dump_func
)dump_query_event_reply
,
4444 (dump_func
)dump_open_event_reply
,
4445 (dump_func
)dump_create_keyed_event_reply
,
4446 (dump_func
)dump_open_keyed_event_reply
,
4447 (dump_func
)dump_create_mutex_reply
,
4448 (dump_func
)dump_release_mutex_reply
,
4449 (dump_func
)dump_open_mutex_reply
,
4450 (dump_func
)dump_create_semaphore_reply
,
4451 (dump_func
)dump_release_semaphore_reply
,
4452 (dump_func
)dump_query_semaphore_reply
,
4453 (dump_func
)dump_open_semaphore_reply
,
4454 (dump_func
)dump_create_file_reply
,
4455 (dump_func
)dump_open_file_object_reply
,
4456 (dump_func
)dump_alloc_file_handle_reply
,
4457 (dump_func
)dump_get_handle_unix_name_reply
,
4458 (dump_func
)dump_get_handle_fd_reply
,
4459 (dump_func
)dump_flush_file_reply
,
4460 (dump_func
)dump_lock_file_reply
,
4462 (dump_func
)dump_create_socket_reply
,
4463 (dump_func
)dump_accept_socket_reply
,
4466 (dump_func
)dump_get_socket_event_reply
,
4467 (dump_func
)dump_get_socket_info_reply
,
4470 (dump_func
)dump_alloc_console_reply
,
4472 (dump_func
)dump_get_console_renderer_events_reply
,
4473 (dump_func
)dump_open_console_reply
,
4474 (dump_func
)dump_get_console_wait_event_reply
,
4475 (dump_func
)dump_get_console_mode_reply
,
4478 (dump_func
)dump_get_console_input_info_reply
,
4480 (dump_func
)dump_get_console_input_history_reply
,
4481 (dump_func
)dump_create_console_output_reply
,
4483 (dump_func
)dump_get_console_output_info_reply
,
4484 (dump_func
)dump_write_console_input_reply
,
4485 (dump_func
)dump_read_console_input_reply
,
4486 (dump_func
)dump_write_console_output_reply
,
4487 (dump_func
)dump_fill_console_output_reply
,
4488 (dump_func
)dump_read_console_output_reply
,
4492 (dump_func
)dump_read_change_reply
,
4493 (dump_func
)dump_create_mapping_reply
,
4494 (dump_func
)dump_open_mapping_reply
,
4495 (dump_func
)dump_get_mapping_info_reply
,
4496 (dump_func
)dump_get_mapping_committed_range_reply
,
4498 (dump_func
)dump_create_snapshot_reply
,
4499 (dump_func
)dump_next_process_reply
,
4500 (dump_func
)dump_next_thread_reply
,
4501 (dump_func
)dump_wait_debug_event_reply
,
4502 (dump_func
)dump_queue_exception_event_reply
,
4503 (dump_func
)dump_get_exception_status_reply
,
4506 (dump_func
)dump_debug_break_reply
,
4508 (dump_func
)dump_read_process_memory_reply
,
4510 (dump_func
)dump_create_key_reply
,
4511 (dump_func
)dump_open_key_reply
,
4514 (dump_func
)dump_enum_key_reply
,
4516 (dump_func
)dump_get_key_value_reply
,
4517 (dump_func
)dump_enum_key_value_reply
,
4523 (dump_func
)dump_create_timer_reply
,
4524 (dump_func
)dump_open_timer_reply
,
4525 (dump_func
)dump_set_timer_reply
,
4526 (dump_func
)dump_cancel_timer_reply
,
4527 (dump_func
)dump_get_timer_info_reply
,
4528 (dump_func
)dump_get_thread_context_reply
,
4529 (dump_func
)dump_set_thread_context_reply
,
4530 (dump_func
)dump_get_selector_entry_reply
,
4531 (dump_func
)dump_add_atom_reply
,
4533 (dump_func
)dump_find_atom_reply
,
4534 (dump_func
)dump_get_atom_information_reply
,
4537 (dump_func
)dump_init_atom_table_reply
,
4538 (dump_func
)dump_get_msg_queue_reply
,
4540 (dump_func
)dump_set_queue_mask_reply
,
4541 (dump_func
)dump_get_queue_status_reply
,
4542 (dump_func
)dump_get_process_idle_event_reply
,
4545 (dump_func
)dump_send_hardware_message_reply
,
4546 (dump_func
)dump_get_message_reply
,
4549 (dump_func
)dump_get_message_reply_reply
,
4550 (dump_func
)dump_set_win_timer_reply
,
4552 (dump_func
)dump_is_window_hung_reply
,
4553 (dump_func
)dump_get_serial_info_reply
,
4557 (dump_func
)dump_ioctl_reply
,
4559 (dump_func
)dump_get_ioctl_result_reply
,
4560 (dump_func
)dump_create_named_pipe_reply
,
4561 (dump_func
)dump_get_named_pipe_info_reply
,
4563 (dump_func
)dump_create_window_reply
,
4565 (dump_func
)dump_get_desktop_window_reply
,
4566 (dump_func
)dump_set_window_owner_reply
,
4567 (dump_func
)dump_get_window_info_reply
,
4568 (dump_func
)dump_set_window_info_reply
,
4569 (dump_func
)dump_set_parent_reply
,
4570 (dump_func
)dump_get_window_parents_reply
,
4571 (dump_func
)dump_get_window_children_reply
,
4572 (dump_func
)dump_get_window_children_from_point_reply
,
4573 (dump_func
)dump_get_window_tree_reply
,
4574 (dump_func
)dump_set_window_pos_reply
,
4575 (dump_func
)dump_get_window_rectangles_reply
,
4576 (dump_func
)dump_get_window_text_reply
,
4578 (dump_func
)dump_get_windows_offset_reply
,
4579 (dump_func
)dump_get_visible_region_reply
,
4580 (dump_func
)dump_get_surface_region_reply
,
4581 (dump_func
)dump_get_window_region_reply
,
4583 (dump_func
)dump_get_update_region_reply
,
4587 (dump_func
)dump_remove_window_property_reply
,
4588 (dump_func
)dump_get_window_property_reply
,
4589 (dump_func
)dump_get_window_properties_reply
,
4590 (dump_func
)dump_create_winstation_reply
,
4591 (dump_func
)dump_open_winstation_reply
,
4593 (dump_func
)dump_get_process_winstation_reply
,
4595 (dump_func
)dump_enum_winstation_reply
,
4596 (dump_func
)dump_create_desktop_reply
,
4597 (dump_func
)dump_open_desktop_reply
,
4598 (dump_func
)dump_open_input_desktop_reply
,
4600 (dump_func
)dump_get_thread_desktop_reply
,
4602 (dump_func
)dump_enum_desktop_reply
,
4603 (dump_func
)dump_set_user_object_info_reply
,
4604 (dump_func
)dump_register_hotkey_reply
,
4605 (dump_func
)dump_unregister_hotkey_reply
,
4607 (dump_func
)dump_get_thread_input_reply
,
4608 (dump_func
)dump_get_last_input_time_reply
,
4609 (dump_func
)dump_get_key_state_reply
,
4611 (dump_func
)dump_set_foreground_window_reply
,
4612 (dump_func
)dump_set_focus_window_reply
,
4613 (dump_func
)dump_set_active_window_reply
,
4614 (dump_func
)dump_set_capture_window_reply
,
4615 (dump_func
)dump_set_caret_window_reply
,
4616 (dump_func
)dump_set_caret_info_reply
,
4617 (dump_func
)dump_set_hook_reply
,
4618 (dump_func
)dump_remove_hook_reply
,
4619 (dump_func
)dump_start_hook_chain_reply
,
4621 (dump_func
)dump_get_hook_info_reply
,
4622 (dump_func
)dump_create_class_reply
,
4623 (dump_func
)dump_destroy_class_reply
,
4624 (dump_func
)dump_set_class_info_reply
,
4625 (dump_func
)dump_set_clipboard_info_reply
,
4626 (dump_func
)dump_open_token_reply
,
4627 (dump_func
)dump_set_global_windows_reply
,
4628 (dump_func
)dump_adjust_token_privileges_reply
,
4629 (dump_func
)dump_get_token_privileges_reply
,
4630 (dump_func
)dump_check_token_privileges_reply
,
4631 (dump_func
)dump_duplicate_token_reply
,
4632 (dump_func
)dump_access_check_reply
,
4633 (dump_func
)dump_get_token_sid_reply
,
4634 (dump_func
)dump_get_token_groups_reply
,
4635 (dump_func
)dump_get_token_default_dacl_reply
,
4638 (dump_func
)dump_get_security_object_reply
,
4639 (dump_func
)dump_create_mailslot_reply
,
4640 (dump_func
)dump_set_mailslot_info_reply
,
4641 (dump_func
)dump_create_directory_reply
,
4642 (dump_func
)dump_open_directory_reply
,
4643 (dump_func
)dump_get_directory_entry_reply
,
4644 (dump_func
)dump_create_symlink_reply
,
4645 (dump_func
)dump_open_symlink_reply
,
4646 (dump_func
)dump_query_symlink_reply
,
4647 (dump_func
)dump_get_object_info_reply
,
4649 (dump_func
)dump_get_token_impersonation_level_reply
,
4650 (dump_func
)dump_allocate_locally_unique_id_reply
,
4651 (dump_func
)dump_create_device_manager_reply
,
4652 (dump_func
)dump_create_device_reply
,
4654 (dump_func
)dump_get_next_device_request_reply
,
4655 (dump_func
)dump_make_process_system_reply
,
4656 (dump_func
)dump_get_token_statistics_reply
,
4657 (dump_func
)dump_create_completion_reply
,
4658 (dump_func
)dump_open_completion_reply
,
4660 (dump_func
)dump_remove_completion_reply
,
4661 (dump_func
)dump_query_completion_reply
,
4664 (dump_func
)dump_get_window_layered_info_reply
,
4666 (dump_func
)dump_alloc_user_handle_reply
,
4668 (dump_func
)dump_set_cursor_reply
,
4670 (dump_func
)dump_get_suspend_context_reply
,
4672 (dump_func
)dump_create_job_reply
,
4680 static const char * const req_names
[REQ_NB_REQUESTS
] = {
4682 "get_new_process_info",
4685 "init_process_done",
4687 "terminate_process",
4710 "create_keyed_event",
4716 "release_semaphore",
4721 "alloc_file_handle",
4722 "get_handle_unix_name",
4729 "accept_into_socket",
4733 "enable_socket_event",
4734 "set_socket_deferred",
4737 "get_console_renderer_events",
4739 "get_console_wait_event",
4742 "set_console_input_info",
4743 "get_console_input_info",
4744 "append_console_input_history",
4745 "get_console_input_history",
4746 "create_console_output",
4747 "set_console_output_info",
4748 "get_console_output_info",
4749 "write_console_input",
4750 "read_console_input",
4751 "write_console_output",
4752 "fill_console_output",
4753 "read_console_output",
4754 "move_console_output",
4755 "send_console_signal",
4756 "read_directory_changes",
4761 "get_mapping_committed_range",
4762 "add_mapping_committed_range",
4767 "queue_exception_event",
4768 "get_exception_status",
4769 "continue_debug_event",
4772 "set_debugger_kill_on_exit",
4773 "read_process_memory",
4774 "write_process_memory",
4787 "set_registry_notification",
4793 "get_thread_context",
4794 "set_thread_context",
4795 "get_selector_entry",
4799 "get_atom_information",
4800 "set_atom_information",
4807 "get_process_idle_event",
4809 "post_quit_message",
4810 "send_hardware_message",
4813 "accept_hardware_message",
4814 "get_message_reply",
4825 "create_named_pipe",
4826 "get_named_pipe_info",
4827 "set_named_pipe_info",
4830 "get_desktop_window",
4835 "get_window_parents",
4836 "get_window_children",
4837 "get_window_children_from_point",
4840 "get_window_rectangles",
4843 "get_windows_offset",
4844 "get_visible_region",
4845 "get_surface_region",
4846 "get_window_region",
4847 "set_window_region",
4848 "get_update_region",
4849 "update_window_zorder",
4851 "set_window_property",
4852 "remove_window_property",
4853 "get_window_property",
4854 "get_window_properties",
4855 "create_winstation",
4858 "get_process_winstation",
4859 "set_process_winstation",
4863 "open_input_desktop",
4865 "get_thread_desktop",
4866 "set_thread_desktop",
4868 "set_user_object_info",
4870 "unregister_hotkey",
4871 "attach_thread_input",
4873 "get_last_input_time",
4876 "set_foreground_window",
4878 "set_active_window",
4879 "set_capture_window",
4885 "finish_hook_chain",
4890 "set_clipboard_info",
4892 "set_global_windows",
4893 "adjust_token_privileges",
4894 "get_token_privileges",
4895 "check_token_privileges",
4900 "get_token_default_dacl",
4901 "set_token_default_dacl",
4902 "set_security_object",
4903 "get_security_object",
4905 "set_mailslot_info",
4908 "get_directory_entry",
4914 "get_token_impersonation_level",
4915 "allocate_locally_unique_id",
4916 "create_device_manager",
4919 "get_next_device_request",
4920 "make_process_system",
4921 "get_token_statistics",
4922 "create_completion",
4925 "remove_completion",
4927 "set_completion_info",
4928 "add_fd_completion",
4929 "get_window_layered_info",
4930 "set_window_layered_info",
4931 "alloc_user_handle",
4934 "update_rawinput_devices",
4935 "get_suspend_context",
4936 "set_suspend_context",
4941 "set_job_completion_port",
4951 { "ABANDONED_WAIT_0", STATUS_ABANDONED_WAIT_0
},
4952 { "ACCESS_DENIED", STATUS_ACCESS_DENIED
},
4953 { "ACCESS_VIOLATION", STATUS_ACCESS_VIOLATION
},
4954 { "ADDRESS_ALREADY_ASSOCIATED", STATUS_ADDRESS_ALREADY_ASSOCIATED
},
4955 { "ALERTED", STATUS_ALERTED
},
4956 { "ALIAS_EXISTS", STATUS_ALIAS_EXISTS
},
4957 { "BAD_DEVICE_TYPE", STATUS_BAD_DEVICE_TYPE
},
4958 { "BAD_IMPERSONATION_LEVEL", STATUS_BAD_IMPERSONATION_LEVEL
},
4959 { "BREAKPOINT", STATUS_BREAKPOINT
},
4960 { "BUFFER_OVERFLOW", STATUS_BUFFER_OVERFLOW
},
4961 { "BUFFER_TOO_SMALL", STATUS_BUFFER_TOO_SMALL
},
4962 { "CANCELLED", STATUS_CANCELLED
},
4963 { "CANNOT_DELETE", STATUS_CANNOT_DELETE
},
4964 { "CANT_OPEN_ANONYMOUS", STATUS_CANT_OPEN_ANONYMOUS
},
4965 { "CANT_WAIT", STATUS_CANT_WAIT
},
4966 { "CHILD_MUST_BE_VOLATILE", STATUS_CHILD_MUST_BE_VOLATILE
},
4967 { "CONNECTION_ABORTED", STATUS_CONNECTION_ABORTED
},
4968 { "CONNECTION_DISCONNECTED", STATUS_CONNECTION_DISCONNECTED
},
4969 { "CONNECTION_REFUSED", STATUS_CONNECTION_REFUSED
},
4970 { "CONNECTION_RESET", STATUS_CONNECTION_RESET
},
4971 { "DEBUGGER_INACTIVE", STATUS_DEBUGGER_INACTIVE
},
4972 { "DEVICE_BUSY", STATUS_DEVICE_BUSY
},
4973 { "DIRECTORY_NOT_EMPTY", STATUS_DIRECTORY_NOT_EMPTY
},
4974 { "DISK_FULL", STATUS_DISK_FULL
},
4975 { "DLL_NOT_FOUND", STATUS_DLL_NOT_FOUND
},
4976 { "ERROR_CLASS_ALREADY_EXISTS", 0xc0010000 | ERROR_CLASS_ALREADY_EXISTS
},
4977 { "ERROR_CLASS_DOES_NOT_EXIST", 0xc0010000 | ERROR_CLASS_DOES_NOT_EXIST
},
4978 { "ERROR_CLASS_HAS_WINDOWS", 0xc0010000 | ERROR_CLASS_HAS_WINDOWS
},
4979 { "ERROR_CLIPBOARD_NOT_OPEN", 0xc0010000 | ERROR_CLIPBOARD_NOT_OPEN
},
4980 { "ERROR_HOTKEY_ALREADY_REGISTERED", 0xc0010000 | ERROR_HOTKEY_ALREADY_REGISTERED
},
4981 { "ERROR_HOTKEY_NOT_REGISTERED", 0xc0010000 | ERROR_HOTKEY_NOT_REGISTERED
},
4982 { "ERROR_INVALID_CURSOR_HANDLE", 0xc0010000 | ERROR_INVALID_CURSOR_HANDLE
},
4983 { "ERROR_INVALID_INDEX", 0xc0010000 | ERROR_INVALID_INDEX
},
4984 { "ERROR_INVALID_WINDOW_HANDLE", 0xc0010000 | ERROR_INVALID_WINDOW_HANDLE
},
4985 { "ERROR_WINDOW_OF_OTHER_THREAD", 0xc0010000 | ERROR_WINDOW_OF_OTHER_THREAD
},
4986 { "FILE_DELETED", STATUS_FILE_DELETED
},
4987 { "FILE_IS_A_DIRECTORY", STATUS_FILE_IS_A_DIRECTORY
},
4988 { "FILE_LOCK_CONFLICT", STATUS_FILE_LOCK_CONFLICT
},
4989 { "GENERIC_NOT_MAPPED", STATUS_GENERIC_NOT_MAPPED
},
4990 { "HANDLES_CLOSED", STATUS_HANDLES_CLOSED
},
4991 { "HANDLE_NOT_CLOSABLE", STATUS_HANDLE_NOT_CLOSABLE
},
4992 { "HOST_UNREACHABLE", STATUS_HOST_UNREACHABLE
},
4993 { "ILLEGAL_FUNCTION", STATUS_ILLEGAL_FUNCTION
},
4994 { "INSTANCE_NOT_AVAILABLE", STATUS_INSTANCE_NOT_AVAILABLE
},
4995 { "INSUFFICIENT_RESOURCES", STATUS_INSUFFICIENT_RESOURCES
},
4996 { "INVALID_CID", STATUS_INVALID_CID
},
4997 { "INVALID_DEVICE_REQUEST", STATUS_INVALID_DEVICE_REQUEST
},
4998 { "INVALID_FILE_FOR_SECTION", STATUS_INVALID_FILE_FOR_SECTION
},
4999 { "INVALID_HANDLE", STATUS_INVALID_HANDLE
},
5000 { "INVALID_IMAGE_FORMAT", STATUS_INVALID_IMAGE_FORMAT
},
5001 { "INVALID_IMAGE_NE_FORMAT", STATUS_INVALID_IMAGE_NE_FORMAT
},
5002 { "INVALID_IMAGE_NOT_MZ", STATUS_INVALID_IMAGE_NOT_MZ
},
5003 { "INVALID_IMAGE_PROTECT", STATUS_INVALID_IMAGE_PROTECT
},
5004 { "INVALID_IMAGE_WIN_64", STATUS_INVALID_IMAGE_WIN_64
},
5005 { "INVALID_PARAMETER", STATUS_INVALID_PARAMETER
},
5006 { "INVALID_SECURITY_DESCR", STATUS_INVALID_SECURITY_DESCR
},
5007 { "IO_TIMEOUT", STATUS_IO_TIMEOUT
},
5008 { "KEY_DELETED", STATUS_KEY_DELETED
},
5009 { "MAPPED_FILE_SIZE_ZERO", STATUS_MAPPED_FILE_SIZE_ZERO
},
5010 { "MORE_PROCESSING_REQUIRED", STATUS_MORE_PROCESSING_REQUIRED
},
5011 { "MUTANT_NOT_OWNED", STATUS_MUTANT_NOT_OWNED
},
5012 { "NAME_TOO_LONG", STATUS_NAME_TOO_LONG
},
5013 { "NETWORK_BUSY", STATUS_NETWORK_BUSY
},
5014 { "NETWORK_UNREACHABLE", STATUS_NETWORK_UNREACHABLE
},
5015 { "NOTIFY_ENUM_DIR", STATUS_NOTIFY_ENUM_DIR
},
5016 { "NOT_ALL_ASSIGNED", STATUS_NOT_ALL_ASSIGNED
},
5017 { "NOT_A_DIRECTORY", STATUS_NOT_A_DIRECTORY
},
5018 { "NOT_FOUND", STATUS_NOT_FOUND
},
5019 { "NOT_IMPLEMENTED", STATUS_NOT_IMPLEMENTED
},
5020 { "NOT_REGISTRY_FILE", STATUS_NOT_REGISTRY_FILE
},
5021 { "NOT_SUPPORTED", STATUS_NOT_SUPPORTED
},
5022 { "NO_DATA_DETECTED", STATUS_NO_DATA_DETECTED
},
5023 { "NO_IMPERSONATION_TOKEN", STATUS_NO_IMPERSONATION_TOKEN
},
5024 { "NO_MEMORY", STATUS_NO_MEMORY
},
5025 { "NO_MORE_ENTRIES", STATUS_NO_MORE_ENTRIES
},
5026 { "NO_MORE_FILES", STATUS_NO_MORE_FILES
},
5027 { "NO_SUCH_DEVICE", STATUS_NO_SUCH_DEVICE
},
5028 { "NO_SUCH_FILE", STATUS_NO_SUCH_FILE
},
5029 { "NO_TOKEN", STATUS_NO_TOKEN
},
5030 { "OBJECT_NAME_COLLISION", STATUS_OBJECT_NAME_COLLISION
},
5031 { "OBJECT_NAME_EXISTS", STATUS_OBJECT_NAME_EXISTS
},
5032 { "OBJECT_NAME_INVALID", STATUS_OBJECT_NAME_INVALID
},
5033 { "OBJECT_NAME_NOT_FOUND", STATUS_OBJECT_NAME_NOT_FOUND
},
5034 { "OBJECT_PATH_INVALID", STATUS_OBJECT_PATH_INVALID
},
5035 { "OBJECT_PATH_NOT_FOUND", STATUS_OBJECT_PATH_NOT_FOUND
},
5036 { "OBJECT_PATH_SYNTAX_BAD", STATUS_OBJECT_PATH_SYNTAX_BAD
},
5037 { "OBJECT_TYPE_MISMATCH", STATUS_OBJECT_TYPE_MISMATCH
},
5038 { "PENDING", STATUS_PENDING
},
5039 { "PIPE_BUSY", STATUS_PIPE_BUSY
},
5040 { "PIPE_CONNECTED", STATUS_PIPE_CONNECTED
},
5041 { "PIPE_DISCONNECTED", STATUS_PIPE_DISCONNECTED
},
5042 { "PIPE_LISTENING", STATUS_PIPE_LISTENING
},
5043 { "PIPE_NOT_AVAILABLE", STATUS_PIPE_NOT_AVAILABLE
},
5044 { "PRIVILEGE_NOT_HELD", STATUS_PRIVILEGE_NOT_HELD
},
5045 { "PROCESS_IN_JOB", STATUS_PROCESS_IN_JOB
},
5046 { "PROCESS_IS_TERMINATING", STATUS_PROCESS_IS_TERMINATING
},
5047 { "SECTION_TOO_BIG", STATUS_SECTION_TOO_BIG
},
5048 { "SEMAPHORE_LIMIT_EXCEEDED", STATUS_SEMAPHORE_LIMIT_EXCEEDED
},
5049 { "SHARING_VIOLATION", STATUS_SHARING_VIOLATION
},
5050 { "SHUTDOWN_IN_PROGRESS", STATUS_SHUTDOWN_IN_PROGRESS
},
5051 { "SUSPEND_COUNT_EXCEEDED", STATUS_SUSPEND_COUNT_EXCEEDED
},
5052 { "THREAD_IS_TERMINATING", STATUS_THREAD_IS_TERMINATING
},
5053 { "TIMEOUT", STATUS_TIMEOUT
},
5054 { "TOO_MANY_OPENED_FILES", STATUS_TOO_MANY_OPENED_FILES
},
5055 { "UNSUCCESSFUL", STATUS_UNSUCCESSFUL
},
5056 { "USER_APC", STATUS_USER_APC
},
5057 { "USER_MAPPED_FILE", STATUS_USER_MAPPED_FILE
},
5058 { "VOLUME_DISMOUNTED", STATUS_VOLUME_DISMOUNTED
},
5059 { "WAS_LOCKED", STATUS_WAS_LOCKED
},
5063 /* ### make_requests end ### */
5064 /* Everything above this line is generated automatically by tools/make_requests */
5066 static const char *get_status_name( unsigned int status
)
5069 static char buffer
[10];
5073 for (i
= 0; status_names
[i
].name
; i
++)
5074 if (status_names
[i
].value
== status
) return status_names
[i
].name
;
5076 sprintf( buffer
, "%x", status
);
5080 void trace_request(void)
5082 enum request req
= current
->req
.request_header
.req
;
5083 if (req
< REQ_NB_REQUESTS
)
5085 fprintf( stderr
, "%04x: %s(", current
->id
, req_names
[req
] );
5086 if (req_dumpers
[req
])
5088 cur_data
= get_req_data();
5089 cur_size
= get_req_data_size();
5090 req_dumpers
[req
]( ¤t
->req
);
5092 fprintf( stderr
, " )\n" );
5094 else fprintf( stderr
, "%04x: %d(?)\n", current
->id
, req
);
5097 void trace_reply( enum request req
, const union generic_reply
*reply
)
5099 if (req
< REQ_NB_REQUESTS
)
5101 fprintf( stderr
, "%04x: %s() = %s",
5102 current
->id
, req_names
[req
], get_status_name(current
->error
) );
5103 if (reply_dumpers
[req
])
5105 fprintf( stderr
, " {" );
5106 cur_data
= current
->reply_data
;
5107 cur_size
= reply
->reply_header
.reply_size
;
5108 reply_dumpers
[req
]( reply
);
5109 fprintf( stderr
, " }" );
5111 fputc( '\n', stderr
);
5113 else fprintf( stderr
, "%04x: %d() = %s\n",
5114 current
->id
, req
, get_status_name(current
->error
) );