2 * Server request tracing
4 * Copyright (C) 1999 Alexandre Julliard
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
22 #include "wine/port.h"
27 #include <sys/types.h>
34 #define WIN32_NO_STATUS
45 static const void *cur_data
;
46 static data_size_t cur_size
;
48 static const char *get_status_name( unsigned int status
);
50 /* utility functions */
52 static inline void remove_data( data_size_t size
)
54 cur_data
= (const char *)cur_data
+ size
;
58 static void dump_uints( const int *ptr
, int len
)
63 fprintf( stderr
, "%08x", *ptr
++ );
64 if (--len
) fputc( ',', stderr
);
69 static void dump_handles( const char *prefix
, const obj_handle_t
*data
, data_size_t size
)
71 data_size_t len
= size
/ sizeof(*data
);
73 fprintf( stderr
,"%s{", prefix
);
76 fprintf( stderr
, "%04x", *data
++ );
77 if (--len
) fputc( ',', stderr
);
82 static void dump_timeout( const char *prefix
, const timeout_t
*time
)
84 fprintf( stderr
, "%s%s", prefix
, get_timeout_str(*time
) );
87 static void dump_uint64( const char *prefix
, const unsigned __int64
*val
)
89 if ((unsigned int)*val
!= *val
)
90 fprintf( stderr
, "%s%x%08x", prefix
, (unsigned int)(*val
>> 32), (unsigned int)*val
);
92 fprintf( stderr
, "%s%08x", prefix
, (unsigned int)*val
);
95 static void dump_rectangle( const char *prefix
, const rectangle_t
*rect
)
97 fprintf( stderr
, "%s{%d,%d;%d,%d}", prefix
,
98 rect
->left
, rect
->top
, rect
->right
, rect
->bottom
);
101 static void dump_char_info( const char *prefix
, const char_info_t
*info
)
103 fprintf( stderr
, "%s{'", prefix
);
104 dump_strW( &info
->ch
, 1, stderr
, "\'\'" );
105 fprintf( stderr
, "',%04x}", info
->attr
);
108 static void dump_ioctl_code( const char *prefix
, const ioctl_code_t
*code
)
112 #define CASE(c) case c: fprintf( stderr, "%s%s", prefix, #c ); break
113 CASE(FSCTL_DISMOUNT_VOLUME
);
114 CASE(FSCTL_PIPE_DISCONNECT
);
115 CASE(FSCTL_PIPE_LISTEN
);
116 CASE(FSCTL_PIPE_WAIT
);
117 default: fprintf( stderr
, "%s%08x", prefix
, *code
); break;
122 static void dump_cpu_type( const char *prefix
, const cpu_type_t
*code
)
126 #define CASE(c) case CPU_##c: fprintf( stderr, "%s%s", prefix, #c ); break
130 default: fprintf( stderr
, "%s%u", prefix
, *code
); break;
135 static void dump_apc_call( const char *prefix
, const apc_call_t
*call
)
137 fprintf( stderr
, "%s{", prefix
);
141 fprintf( stderr
, "APC_NONE" );
144 dump_uint64( "APC_USER,func=", &call
->user
.func
);
145 dump_uint64( ",args={", &call
->user
.args
[0] );
146 dump_uint64( ",", &call
->user
.args
[1] );
147 dump_uint64( ",", &call
->user
.args
[2] );
148 fputc( '}', stderr
);
151 dump_timeout( "APC_TIMER,time=", &call
->timer
.time
);
152 dump_uint64( ",arg=", &call
->timer
.arg
);
155 dump_uint64( "APC_ASYNC_IO,func=", &call
->async_io
.func
);
156 dump_uint64( ",user=", &call
->async_io
.user
);
157 dump_uint64( ",sb=", &call
->async_io
.sb
);
158 fprintf( stderr
, ",status=%s", get_status_name(call
->async_io
.status
) );
160 case APC_VIRTUAL_ALLOC
:
161 dump_uint64( "APC_VIRTUAL_ALLOC,addr==", &call
->virtual_alloc
.addr
);
162 dump_uint64( ",size=", &call
->virtual_alloc
.size
);
163 fprintf( stderr
, ",zero_bits=%u,op_type=%x,prot=%x",
164 call
->virtual_alloc
.zero_bits
, call
->virtual_alloc
.op_type
,
165 call
->virtual_alloc
.prot
);
167 case APC_VIRTUAL_FREE
:
168 dump_uint64( "APC_VIRTUAL_FREE,addr=", &call
->virtual_free
.addr
);
169 dump_uint64( ",size=", &call
->virtual_free
.size
);
170 fprintf( stderr
, ",op_type=%x", call
->virtual_free
.op_type
);
172 case APC_VIRTUAL_QUERY
:
173 dump_uint64( "APC_VIRTUAL_QUERY,addr=", &call
->virtual_query
.addr
);
175 case APC_VIRTUAL_PROTECT
:
176 dump_uint64( "APC_VIRTUAL_PROTECT,addr=", &call
->virtual_protect
.addr
);
177 dump_uint64( ",size=", &call
->virtual_protect
.size
);
178 fprintf( stderr
, ",prot=%x", call
->virtual_protect
.prot
);
180 case APC_VIRTUAL_FLUSH
:
181 dump_uint64( "APC_VIRTUAL_FLUSH,addr=", &call
->virtual_flush
.addr
);
182 dump_uint64( ",size=", &call
->virtual_flush
.size
);
184 case APC_VIRTUAL_LOCK
:
185 dump_uint64( "APC_VIRTUAL_LOCK,addr=", &call
->virtual_lock
.addr
);
186 dump_uint64( ",size=", &call
->virtual_lock
.size
);
188 case APC_VIRTUAL_UNLOCK
:
189 dump_uint64( "APC_VIRTUAL_UNLOCK,addr=", &call
->virtual_unlock
.addr
);
190 dump_uint64( ",size=", &call
->virtual_unlock
.size
);
193 fprintf( stderr
, "APC_MAP_VIEW,handle=%04x", call
->map_view
.handle
);
194 dump_uint64( ",addr=", &call
->map_view
.addr
);
195 dump_uint64( ",size=", &call
->map_view
.size
);
196 dump_uint64( ",offset=", &call
->map_view
.offset
);
197 fprintf( stderr
, ",zero_bits=%u,alloc_type=%x,prot=%x",
198 call
->map_view
.zero_bits
, call
->map_view
.alloc_type
, call
->map_view
.prot
);
201 dump_uint64( "APC_UNMAP_VIEW,addr=", &call
->unmap_view
.addr
);
203 case APC_CREATE_THREAD
:
204 dump_uint64( "APC_CREATE_THREAD,func=", &call
->create_thread
.func
);
205 dump_uint64( ",arg=", &call
->create_thread
.arg
);
206 dump_uint64( ",reserve=", &call
->create_thread
.reserve
);
207 dump_uint64( ",commit=", &call
->create_thread
.commit
);
208 fprintf( stderr
, ",suspend=%u", call
->create_thread
.suspend
);
211 fprintf( stderr
, "type=%u", call
->type
);
214 fputc( '}', stderr
);
217 static void dump_apc_result( const char *prefix
, const apc_result_t
*result
)
219 fprintf( stderr
, "%s{", prefix
);
225 fprintf( stderr
, "APC_ASYNC_IO,status=%s,total=%u",
226 get_status_name( result
->async_io
.status
), result
->async_io
.total
);
227 dump_uint64( ",apc=", &result
->async_io
.apc
);
229 case APC_VIRTUAL_ALLOC
:
230 fprintf( stderr
, "APC_VIRTUAL_ALLOC,status=%s",
231 get_status_name( result
->virtual_alloc
.status
));
232 dump_uint64( ",addr=", &result
->virtual_alloc
.addr
);
233 dump_uint64( ",size=", &result
->virtual_alloc
.size
);
235 case APC_VIRTUAL_FREE
:
236 fprintf( stderr
, "APC_VIRTUAL_FREE,status=%s",
237 get_status_name( result
->virtual_free
.status
));
238 dump_uint64( ",addr=", &result
->virtual_free
.addr
);
239 dump_uint64( ",size=", &result
->virtual_free
.size
);
241 case APC_VIRTUAL_QUERY
:
242 fprintf( stderr
, "APC_VIRTUAL_QUERY,status=%s",
243 get_status_name( result
->virtual_query
.status
));
244 dump_uint64( ",base=", &result
->virtual_query
.base
);
245 dump_uint64( ",alloc_base=", &result
->virtual_query
.alloc_base
);
246 dump_uint64( ",size=", &result
->virtual_query
.size
);
247 fprintf( stderr
, ",state=%x,prot=%x,alloc_prot=%x,alloc_type=%x",
248 result
->virtual_query
.state
, result
->virtual_query
.prot
,
249 result
->virtual_query
.alloc_prot
, result
->virtual_query
.alloc_type
);
251 case APC_VIRTUAL_PROTECT
:
252 fprintf( stderr
, "APC_VIRTUAL_PROTECT,status=%s",
253 get_status_name( result
->virtual_protect
.status
));
254 dump_uint64( ",addr=", &result
->virtual_protect
.addr
);
255 dump_uint64( ",size=", &result
->virtual_protect
.size
);
256 fprintf( stderr
, ",prot=%x", result
->virtual_protect
.prot
);
258 case APC_VIRTUAL_FLUSH
:
259 fprintf( stderr
, "APC_VIRTUAL_FLUSH,status=%s",
260 get_status_name( result
->virtual_flush
.status
));
261 dump_uint64( ",addr=", &result
->virtual_flush
.addr
);
262 dump_uint64( ",size=", &result
->virtual_flush
.size
);
264 case APC_VIRTUAL_LOCK
:
265 fprintf( stderr
, "APC_VIRTUAL_LOCK,status=%s",
266 get_status_name( result
->virtual_lock
.status
));
267 dump_uint64( ",addr=", &result
->virtual_lock
.addr
);
268 dump_uint64( ",size=", &result
->virtual_lock
.size
);
270 case APC_VIRTUAL_UNLOCK
:
271 fprintf( stderr
, "APC_VIRTUAL_UNLOCK,status=%s",
272 get_status_name( result
->virtual_unlock
.status
));
273 dump_uint64( ",addr=", &result
->virtual_unlock
.addr
);
274 dump_uint64( ",size=", &result
->virtual_unlock
.size
);
277 fprintf( stderr
, "APC_MAP_VIEW,status=%s",
278 get_status_name( result
->map_view
.status
));
279 dump_uint64( ",addr=", &result
->map_view
.addr
);
280 dump_uint64( ",size=", &result
->map_view
.size
);
283 fprintf( stderr
, "APC_UNMAP_VIEW,status=%s",
284 get_status_name( result
->unmap_view
.status
) );
286 case APC_CREATE_THREAD
:
287 fprintf( stderr
, "APC_CREATE_THREAD,status=%s,tid=%04x,handle=%04x",
288 get_status_name( result
->create_thread
.status
),
289 result
->create_thread
.tid
, result
->create_thread
.handle
);
292 fprintf( stderr
, "type=%u", result
->type
);
295 fputc( '}', stderr
);
298 static void dump_async_data( const char *prefix
, const async_data_t
*data
)
300 fprintf( stderr
, "%s{handle=%04x,event=%04x", prefix
, data
->handle
, data
->event
);
301 dump_uint64( ",callback=", &data
->callback
);
302 dump_uint64( ",iosb=", &data
->iosb
);
303 dump_uint64( ",arg=", &data
->arg
);
304 dump_uint64( ",cvalue=", &data
->cvalue
);
305 fputc( '}', stderr
);
308 static void dump_hw_input( const char *prefix
, const hw_input_t
*input
)
313 fprintf( stderr
, "%s{type=MOUSE,x=%d,y=%d,data=%08x,flags=%08x,time=%u",
314 prefix
, input
->mouse
.x
, input
->mouse
.y
, input
->mouse
.data
, input
->mouse
.flags
,
316 dump_uint64( ",info=", &input
->mouse
.info
);
317 fputc( '}', stderr
);
320 fprintf( stderr
, "%s{type=KEYBOARD,vkey=%04hx,scan=%04hx,flags=%08x,time=%u",
321 prefix
, input
->kbd
.vkey
, input
->kbd
.scan
, input
->kbd
.flags
, input
->kbd
.time
);
322 dump_uint64( ",info=", &input
->kbd
.info
);
323 fputc( '}', stderr
);
326 fprintf( stderr
, "%s{type=HARDWARE,msg=%04x", prefix
, input
->hw
.msg
);
327 dump_uint64( ",lparam=", &input
->hw
.lparam
);
328 fputc( '}', stderr
);
331 fprintf( stderr
, "%s{type=%04x}", prefix
, input
->type
);
336 static void dump_luid( const char *prefix
, const luid_t
*luid
)
338 fprintf( stderr
, "%s%d.%u", prefix
, luid
->high_part
, luid
->low_part
);
341 static void dump_varargs_ints( const char *prefix
, data_size_t size
)
343 const int *data
= cur_data
;
344 data_size_t len
= size
/ sizeof(*data
);
346 fprintf( stderr
,"%s{", prefix
);
349 fprintf( stderr
, "%d", *data
++ );
350 if (--len
) fputc( ',', stderr
);
352 fputc( '}', stderr
);
356 static void dump_varargs_uints64( const char *prefix
, data_size_t size
)
358 const unsigned __int64
*data
= cur_data
;
359 data_size_t len
= size
/ sizeof(*data
);
361 fprintf( stderr
,"%s{", prefix
);
364 dump_uint64( "", data
++ );
365 if (--len
) fputc( ',', stderr
);
367 fputc( '}', stderr
);
371 static void dump_varargs_apc_result( const char *prefix
, data_size_t size
)
373 const apc_result_t
*result
= cur_data
;
375 if (size
>= sizeof(*result
))
377 dump_apc_result( prefix
, result
);
378 size
= sizeof(*result
);
383 static void dump_varargs_select_op( const char *prefix
, data_size_t size
)
389 fprintf( stderr
, "%s{}", prefix
);
392 memset( &data
, 0, sizeof(data
) );
393 memcpy( &data
, cur_data
, min( size
, sizeof(data
) ));
395 fprintf( stderr
, "%s{", prefix
);
399 fprintf( stderr
, "NONE" );
402 case SELECT_WAIT_ALL
:
403 fprintf( stderr
, "%s", data
.op
== SELECT_WAIT
? "WAIT" : "WAIT_ALL" );
404 if (size
> offsetof( select_op_t
, wait
.handles
))
405 dump_handles( ",handles=", data
.wait
.handles
,
406 min( size
, sizeof(data
.wait
) ) - offsetof( select_op_t
, wait
.handles
));
408 case SELECT_SIGNAL_AND_WAIT
:
409 fprintf( stderr
, "SIGNAL_AND_WAIT,signal=%04x,wait=%04x",
410 data
.signal_and_wait
.signal
, data
.signal_and_wait
.wait
);
412 case SELECT_KEYED_EVENT_WAIT
:
413 case SELECT_KEYED_EVENT_RELEASE
:
414 fprintf( stderr
, "KEYED_EVENT_%s,handle=%04x",
415 data
.op
== SELECT_KEYED_EVENT_WAIT
? "WAIT" : "RELEASE",
416 data
.keyed_event
.handle
);
417 dump_uint64( ",key=", &data
.keyed_event
.key
);
420 fprintf( stderr
, "op=%u", data
.op
);
423 fputc( '}', stderr
);
427 static void dump_varargs_user_handles( const char *prefix
, data_size_t size
)
429 const user_handle_t
*data
= cur_data
;
430 data_size_t len
= size
/ sizeof(*data
);
432 fprintf( stderr
,"%s{", prefix
);
435 fprintf( stderr
, "%08x", *data
++ );
436 if (--len
) fputc( ',', stderr
);
438 fputc( '}', stderr
);
442 static void dump_varargs_bytes( const char *prefix
, data_size_t size
)
444 const unsigned char *data
= cur_data
;
445 data_size_t len
= min( 1024, size
);
447 fprintf( stderr
,"%s{", prefix
);
450 fprintf( stderr
, "%02x", *data
++ );
451 if (--len
) fputc( ',', stderr
);
453 if (size
> 1024) fprintf( stderr
, "...(total %u)", size
);
454 fputc( '}', stderr
);
458 static void dump_varargs_string( const char *prefix
, data_size_t size
)
460 fprintf( stderr
, "%s\"%.*s\"", prefix
, (int)size
, (const char *)cur_data
);
464 static void dump_varargs_unicode_str( const char *prefix
, data_size_t size
)
466 fprintf( stderr
, "%sL\"", prefix
);
467 dump_strW( cur_data
, size
/ sizeof(WCHAR
), stderr
, "\"\"" );
468 fputc( '\"', stderr
);
472 static void dump_varargs_context( const char *prefix
, data_size_t size
)
474 const context_t
*context
= cur_data
;
480 fprintf( stderr
, "%s{}", prefix
);
483 size
= min( size
, sizeof(ctx
) );
484 memset( &ctx
, 0, sizeof(ctx
) );
485 memcpy( &ctx
, context
, size
);
487 fprintf( stderr
,"%s{", prefix
);
488 dump_cpu_type( "cpu=", &ctx
.cpu
);
492 if (ctx
.flags
& SERVER_CTX_CONTROL
)
493 fprintf( stderr
, ",eip=%08x,esp=%08x,ebp=%08x,eflags=%08x,cs=%04x,ss=%04x",
494 ctx
.ctl
.i386_regs
.eip
, ctx
.ctl
.i386_regs
.esp
, ctx
.ctl
.i386_regs
.ebp
,
495 ctx
.ctl
.i386_regs
.eflags
, ctx
.ctl
.i386_regs
.cs
, ctx
.ctl
.i386_regs
.ss
);
496 if (ctx
.flags
& SERVER_CTX_SEGMENTS
)
497 fprintf( stderr
, ",ds=%04x,es=%04x,fs=%04x,gs=%04x",
498 ctx
.seg
.i386_regs
.ds
, ctx
.seg
.i386_regs
.es
,
499 ctx
.seg
.i386_regs
.fs
, ctx
.seg
.i386_regs
.gs
);
500 if (ctx
.flags
& SERVER_CTX_INTEGER
)
501 fprintf( stderr
, ",eax=%08x,ebx=%08x,ecx=%08x,edx=%08x,esi=%08x,edi=%08x",
502 ctx
.integer
.i386_regs
.eax
, ctx
.integer
.i386_regs
.ebx
, ctx
.integer
.i386_regs
.ecx
,
503 ctx
.integer
.i386_regs
.edx
, ctx
.integer
.i386_regs
.esi
, ctx
.integer
.i386_regs
.edi
);
504 if (ctx
.flags
& SERVER_CTX_DEBUG_REGISTERS
)
505 fprintf( stderr
, ",dr0=%08x,dr1=%08x,dr2=%08x,dr3=%08x,dr6=%08x,dr7=%08x",
506 ctx
.debug
.i386_regs
.dr0
, ctx
.debug
.i386_regs
.dr1
, ctx
.debug
.i386_regs
.dr2
,
507 ctx
.debug
.i386_regs
.dr3
, ctx
.debug
.i386_regs
.dr6
, ctx
.debug
.i386_regs
.dr7
);
508 if (ctx
.flags
& SERVER_CTX_FLOATING_POINT
)
510 fprintf( stderr
, ",fp.ctrl=%08x,fp.status=%08x,fp.tag=%08x,fp.err_off=%08x,fp.err_sel=%08x",
511 ctx
.fp
.i386_regs
.ctrl
, ctx
.fp
.i386_regs
.status
, ctx
.fp
.i386_regs
.tag
,
512 ctx
.fp
.i386_regs
.err_off
, ctx
.fp
.i386_regs
.err_sel
);
513 fprintf( stderr
, ",fp.data_off=%08x,fp.data_sel=%08x,fp.cr0npx=%08x",
514 ctx
.fp
.i386_regs
.data_off
, ctx
.fp
.i386_regs
.data_sel
, ctx
.fp
.i386_regs
.cr0npx
);
515 for (i
= 0; i
< 8; i
++)
516 fprintf( stderr
, ",fp.reg%u=%Lg", i
, *(long double *)&ctx
.fp
.i386_regs
.regs
[10*i
] );
518 if (ctx
.flags
& SERVER_CTX_EXTENDED_REGISTERS
)
520 fprintf( stderr
, ",extended=" );
521 dump_uints( (const int *)ctx
.ext
.i386_regs
, sizeof(ctx
.ext
.i386_regs
) / sizeof(int) );
525 if (ctx
.flags
& SERVER_CTX_CONTROL
)
527 dump_uint64( ",rip=", &ctx
.ctl
.x86_64_regs
.rip
);
528 dump_uint64( ",rbp=", &ctx
.ctl
.x86_64_regs
.rbp
);
529 dump_uint64( ",rsp=", &ctx
.ctl
.x86_64_regs
.rsp
);
530 fprintf( stderr
, ",cs=%04x,ss=%04x,flags=%08x",
531 ctx
.ctl
.x86_64_regs
.cs
, ctx
.ctl
.x86_64_regs
.ss
, ctx
.ctl
.x86_64_regs
.flags
);
533 if (ctx
.flags
& SERVER_CTX_INTEGER
)
535 dump_uint64( ",rax=", &ctx
.integer
.x86_64_regs
.rax
);
536 dump_uint64( ",rbx=", &ctx
.integer
.x86_64_regs
.rbx
);
537 dump_uint64( ",rcx=", &ctx
.integer
.x86_64_regs
.rcx
);
538 dump_uint64( ",rdx=", &ctx
.integer
.x86_64_regs
.rdx
);
539 dump_uint64( ",rsi=", &ctx
.integer
.x86_64_regs
.rsi
);
540 dump_uint64( ",rdi=", &ctx
.integer
.x86_64_regs
.rdi
);
541 dump_uint64( ",r8=", &ctx
.integer
.x86_64_regs
.r8
);
542 dump_uint64( ",r9=", &ctx
.integer
.x86_64_regs
.r9
);
543 dump_uint64( ",r10=", &ctx
.integer
.x86_64_regs
.r10
);
544 dump_uint64( ",r11=", &ctx
.integer
.x86_64_regs
.r11
);
545 dump_uint64( ",r12=", &ctx
.integer
.x86_64_regs
.r12
);
546 dump_uint64( ",r13=", &ctx
.integer
.x86_64_regs
.r13
);
547 dump_uint64( ",r14=", &ctx
.integer
.x86_64_regs
.r14
);
548 dump_uint64( ",r15=", &ctx
.integer
.x86_64_regs
.r15
);
550 if (ctx
.flags
& SERVER_CTX_SEGMENTS
)
551 fprintf( stderr
, ",ds=%04x,es=%04x,fs=%04x,gs=%04x",
552 ctx
.seg
.x86_64_regs
.ds
, ctx
.seg
.x86_64_regs
.es
,
553 ctx
.seg
.x86_64_regs
.fs
, ctx
.seg
.x86_64_regs
.gs
);
554 if (ctx
.flags
& SERVER_CTX_DEBUG_REGISTERS
)
556 dump_uint64( ",dr0=", &ctx
.debug
.x86_64_regs
.dr0
);
557 dump_uint64( ",dr1=", &ctx
.debug
.x86_64_regs
.dr1
);
558 dump_uint64( ",dr2=", &ctx
.debug
.x86_64_regs
.dr2
);
559 dump_uint64( ",dr3=", &ctx
.debug
.x86_64_regs
.dr3
);
560 dump_uint64( ",dr6=", &ctx
.debug
.x86_64_regs
.dr6
);
561 dump_uint64( ",dr7=", &ctx
.debug
.x86_64_regs
.dr7
);
563 if (ctx
.flags
& SERVER_CTX_FLOATING_POINT
)
565 for (i
= 0; i
< 32; i
++)
566 fprintf( stderr
, ",fp%u=%08x%08x%08x%08x", i
,
567 (unsigned int)(ctx
.fp
.x86_64_regs
.fpregs
[i
].high
>> 32),
568 (unsigned int)ctx
.fp
.x86_64_regs
.fpregs
[i
].high
,
569 (unsigned int)(ctx
.fp
.x86_64_regs
.fpregs
[i
].low
>> 32),
570 (unsigned int)ctx
.fp
.x86_64_regs
.fpregs
[i
].low
);
574 if (ctx
.flags
& SERVER_CTX_CONTROL
)
575 fprintf( stderr
, ",iar=%08x,msr=%08x,ctr=%08x,lr=%08x,dar=%08x,dsisr=%08x,trap=%08x",
576 ctx
.ctl
.powerpc_regs
.iar
, ctx
.ctl
.powerpc_regs
.msr
, ctx
.ctl
.powerpc_regs
.ctr
,
577 ctx
.ctl
.powerpc_regs
.lr
, ctx
.ctl
.powerpc_regs
.dar
, ctx
.ctl
.powerpc_regs
.dsisr
,
578 ctx
.ctl
.powerpc_regs
.trap
);
579 if (ctx
.flags
& SERVER_CTX_INTEGER
)
581 for (i
= 0; i
< 32; i
++) fprintf( stderr
, ",gpr%u=%08x", i
, ctx
.integer
.powerpc_regs
.gpr
[i
] );
582 fprintf( stderr
, ",cr=%08x,xer=%08x",
583 ctx
.integer
.powerpc_regs
.cr
, ctx
.integer
.powerpc_regs
.xer
);
585 if (ctx
.flags
& SERVER_CTX_DEBUG_REGISTERS
)
586 for (i
= 0; i
< 8; i
++) fprintf( stderr
, ",dr%u=%08x", i
, ctx
.debug
.powerpc_regs
.dr
[i
] );
587 if (ctx
.flags
& SERVER_CTX_FLOATING_POINT
)
589 for (i
= 0; i
< 32; i
++) fprintf( stderr
, ",fpr%u=%g", i
, ctx
.fp
.powerpc_regs
.fpr
[i
] );
590 fprintf( stderr
, ",fpscr=%g", ctx
.fp
.powerpc_regs
.fpscr
);
594 if (ctx
.flags
& SERVER_CTX_CONTROL
)
595 fprintf( stderr
, ",sp=%08x,lr=%08x,pc=%08x,cpsr=%08x",
596 ctx
.ctl
.arm_regs
.sp
, ctx
.ctl
.arm_regs
.lr
,
597 ctx
.ctl
.arm_regs
.pc
, ctx
.ctl
.arm_regs
.cpsr
);
598 if (ctx
.flags
& SERVER_CTX_INTEGER
)
599 for (i
= 0; i
< 13; i
++) fprintf( stderr
, ",r%u=%08x", i
, ctx
.integer
.arm_regs
.r
[i
] );
602 if (ctx
.flags
& SERVER_CTX_CONTROL
)
604 dump_uint64( ",sp=", &ctx
.ctl
.arm64_regs
.sp
);
605 dump_uint64( ",pc=", &ctx
.ctl
.arm64_regs
.pc
);
606 dump_uint64( ",pstate=", &ctx
.ctl
.arm64_regs
.pstate
);
608 if (ctx
.flags
& SERVER_CTX_INTEGER
)
610 dump_uint64( ",x0=", &ctx
.integer
.arm64_regs
.x
[0] );
611 dump_uint64( ",x1=", &ctx
.integer
.arm64_regs
.x
[1] );
612 dump_uint64( ",x2=", &ctx
.integer
.arm64_regs
.x
[2] );
613 dump_uint64( ",x3=", &ctx
.integer
.arm64_regs
.x
[3] );
614 dump_uint64( ",x4=", &ctx
.integer
.arm64_regs
.x
[4] );
615 dump_uint64( ",x5=", &ctx
.integer
.arm64_regs
.x
[5] );
616 dump_uint64( ",x6=", &ctx
.integer
.arm64_regs
.x
[6] );
617 dump_uint64( ",x7=", &ctx
.integer
.arm64_regs
.x
[7] );
618 dump_uint64( ",x8=", &ctx
.integer
.arm64_regs
.x
[8] );
619 dump_uint64( ",x9=", &ctx
.integer
.arm64_regs
.x
[9] );
620 dump_uint64( ",x10=", &ctx
.integer
.arm64_regs
.x
[10] );
621 dump_uint64( ",x11=", &ctx
.integer
.arm64_regs
.x
[11] );
622 dump_uint64( ",x12=", &ctx
.integer
.arm64_regs
.x
[12] );
623 dump_uint64( ",x13=", &ctx
.integer
.arm64_regs
.x
[13] );
624 dump_uint64( ",x14=", &ctx
.integer
.arm64_regs
.x
[14] );
625 dump_uint64( ",x15=", &ctx
.integer
.arm64_regs
.x
[15] );
626 dump_uint64( ",x16=", &ctx
.integer
.arm64_regs
.x
[16] );
627 dump_uint64( ",x17=", &ctx
.integer
.arm64_regs
.x
[17] );
628 dump_uint64( ",x18=", &ctx
.integer
.arm64_regs
.x
[18] );
629 dump_uint64( ",x19=", &ctx
.integer
.arm64_regs
.x
[19] );
630 dump_uint64( ",x20=", &ctx
.integer
.arm64_regs
.x
[20] );
631 dump_uint64( ",x21=", &ctx
.integer
.arm64_regs
.x
[21] );
632 dump_uint64( ",x22=", &ctx
.integer
.arm64_regs
.x
[22] );
633 dump_uint64( ",x23=", &ctx
.integer
.arm64_regs
.x
[23] );
634 dump_uint64( ",x24=", &ctx
.integer
.arm64_regs
.x
[24] );
635 dump_uint64( ",x25=", &ctx
.integer
.arm64_regs
.x
[25] );
636 dump_uint64( ",x26=", &ctx
.integer
.arm64_regs
.x
[26] );
637 dump_uint64( ",x27=", &ctx
.integer
.arm64_regs
.x
[27] );
638 dump_uint64( ",x28=", &ctx
.integer
.arm64_regs
.x
[28] );
639 dump_uint64( ",x29=", &ctx
.integer
.arm64_regs
.x
[29] );
640 dump_uint64( ",x30=", &ctx
.integer
.arm64_regs
.x
[30] );
644 fputc( '}', stderr
);
648 static void dump_varargs_debug_event( const char *prefix
, data_size_t size
)
655 fprintf( stderr
, "%s{}", prefix
);
658 size
= min( size
, sizeof(event
) );
659 memset( &event
, 0, sizeof(event
) );
660 memcpy( &event
, cur_data
, size
);
664 case EXCEPTION_DEBUG_EVENT
:
665 fprintf( stderr
, "%s{exception,first=%d,exc_code=%08x,flags=%08x", prefix
,
666 event
.exception
.first
, event
.exception
.exc_code
, event
.exception
.flags
);
667 dump_uint64( ",record=", &event
.exception
.record
);
668 dump_uint64( ",address=", &event
.exception
.address
);
669 fprintf( stderr
, ",params={" );
670 event
.exception
.nb_params
= min( event
.exception
.nb_params
, EXCEPTION_MAXIMUM_PARAMETERS
);
671 for (i
= 0; i
< event
.exception
.nb_params
; i
++)
673 dump_uint64( "", &event
.exception
.params
[i
] );
674 if (i
< event
.exception
.nb_params
) fputc( ',', stderr
);
676 fprintf( stderr
, "}}" );
678 case CREATE_THREAD_DEBUG_EVENT
:
679 fprintf( stderr
, "%s{create_thread,thread=%04x", prefix
, event
.create_thread
.handle
);
680 dump_uint64( ",teb=", &event
.create_thread
.teb
);
681 dump_uint64( ",start=", &event
.create_thread
.start
);
682 fputc( '}', stderr
);
684 case CREATE_PROCESS_DEBUG_EVENT
:
685 fprintf( stderr
, "%s{create_process,file=%04x,process=%04x,thread=%04x", prefix
,
686 event
.create_process
.file
, event
.create_process
.process
,
687 event
.create_process
.thread
);
688 dump_uint64( ",base=", &event
.create_process
.base
);
689 fprintf( stderr
, ",offset=%d,size=%d",
690 event
.create_process
.dbg_offset
, event
.create_process
.dbg_size
);
691 dump_uint64( ",teb=", &event
.create_process
.teb
);
692 dump_uint64( ",start=", &event
.create_process
.start
);
693 dump_uint64( ",name=", &event
.create_process
.name
);
694 fprintf( stderr
, ",unicode=%d}", event
.create_process
.unicode
);
696 case EXIT_THREAD_DEBUG_EVENT
:
697 fprintf( stderr
, "%s{exit_thread,code=%d}", prefix
, event
.exit
.exit_code
);
699 case EXIT_PROCESS_DEBUG_EVENT
:
700 fprintf( stderr
, "%s{exit_process,code=%d}", prefix
, event
.exit
.exit_code
);
702 case LOAD_DLL_DEBUG_EVENT
:
703 fprintf( stderr
, "%s{load_dll,file=%04x", prefix
, event
.load_dll
.handle
);
704 dump_uint64( ",base=", &event
.load_dll
.base
);
705 fprintf( stderr
, ",offset=%d,size=%d",
706 event
.load_dll
.dbg_offset
, event
.load_dll
.dbg_size
);
707 dump_uint64( ",name=", &event
.load_dll
.name
);
708 fprintf( stderr
, ",unicode=%d}", event
.load_dll
.unicode
);
710 case UNLOAD_DLL_DEBUG_EVENT
:
711 fprintf( stderr
, "%s{unload_dll", prefix
);
712 dump_uint64( ",base=", &event
.unload_dll
.base
);
713 fputc( '}', stderr
);
715 case OUTPUT_DEBUG_STRING_EVENT
:
716 fprintf( stderr
, "%s{output_string", prefix
);
717 dump_uint64( ",string=", &event
.output_string
.string
);
718 fprintf( stderr
, ",len=%u}", event
.output_string
.length
);
721 fprintf( stderr
, "%s{rip,err=%d,type=%d}", prefix
,
722 event
.rip_info
.error
, event
.rip_info
.type
);
724 case 0: /* zero is the code returned on timeouts */
725 fprintf( stderr
, "%s{}", prefix
);
728 fprintf( stderr
, "%s{code=??? (%d)}", prefix
, event
.code
);
734 /* dump a unicode string contained in a buffer; helper for dump_varargs_startup_info */
735 static data_size_t
dump_inline_unicode_string( const char *prefix
, data_size_t pos
, data_size_t len
, data_size_t total_size
)
737 fputs( prefix
, stderr
);
738 if (pos
>= total_size
) return pos
;
739 if (len
> total_size
- pos
) len
= total_size
- pos
;
740 len
/= sizeof(WCHAR
);
741 dump_strW( (const WCHAR
*)cur_data
+ pos
/sizeof(WCHAR
), len
, stderr
, "\"\"" );
742 return pos
+ len
* sizeof(WCHAR
);
745 static void dump_varargs_startup_info( const char *prefix
, data_size_t size
)
748 data_size_t pos
= sizeof(info
);
750 memset( &info
, 0, sizeof(info
) );
751 memcpy( &info
, cur_data
, min( size
, sizeof(info
) ));
754 "%s{debug_flags=%x,console_flags=%x,console=%04x,hstdin=%04x,hstdout=%04x,hstderr=%04x,"
755 "x=%u,y=%u,xsize=%u,ysize=%u,xchars=%u,ychars=%u,attribute=%02x,flags=%x,show=%u",
756 prefix
, info
.debug_flags
, info
.console_flags
, info
.console
,
757 info
.hstdin
, info
.hstdout
, info
.hstderr
, info
.x
, info
.y
, info
.xsize
, info
.ysize
,
758 info
.xchars
, info
.ychars
, info
.attribute
, info
.flags
, info
.show
);
759 pos
= dump_inline_unicode_string( ",curdir=L\"", pos
, info
.curdir_len
, size
);
760 pos
= dump_inline_unicode_string( "\",dllpath=L\"", pos
, info
.dllpath_len
, size
);
761 pos
= dump_inline_unicode_string( "\",imagepath=L\"", pos
, info
.imagepath_len
, size
);
762 pos
= dump_inline_unicode_string( "\",cmdline=L\"", pos
, info
.cmdline_len
, size
);
763 pos
= dump_inline_unicode_string( "\",title=L\"", pos
, info
.title_len
, size
);
764 pos
= dump_inline_unicode_string( "\",desktop=L\"", pos
, info
.desktop_len
, size
);
765 pos
= dump_inline_unicode_string( "\",shellinfo=L\"", pos
, info
.shellinfo_len
, size
);
766 pos
= dump_inline_unicode_string( "\",runtime=L\"", pos
, info
.runtime_len
, size
);
767 fprintf( stderr
, "\"}" );
771 static void dump_varargs_input_records( const char *prefix
, data_size_t size
)
773 const INPUT_RECORD
*rec
= cur_data
;
774 data_size_t len
= size
/ sizeof(*rec
);
776 fprintf( stderr
,"%s{", prefix
);
779 fprintf( stderr
, "{%04x,...}", rec
->EventType
);
781 if (--len
) fputc( ',', stderr
);
783 fputc( '}', stderr
);
787 static void dump_varargs_rectangles( const char *prefix
, data_size_t size
)
789 const rectangle_t
*rect
= cur_data
;
790 data_size_t len
= size
/ sizeof(*rect
);
792 fprintf( stderr
,"%s{", prefix
);
795 dump_rectangle( "", rect
++ );
796 if (--len
) fputc( ',', stderr
);
798 fputc( '}', stderr
);
802 static void dump_varargs_message_data( const char *prefix
, data_size_t size
)
804 /* FIXME: dump the structured data */
805 dump_varargs_bytes( prefix
, size
);
808 static void dump_varargs_properties( const char *prefix
, data_size_t size
)
810 const property_data_t
*prop
= cur_data
;
811 data_size_t len
= size
/ sizeof(*prop
);
813 fprintf( stderr
,"%s{", prefix
);
816 fprintf( stderr
, "{atom=%04x,str=%d", prop
->atom
, prop
->string
);
817 dump_uint64( ",data=", &prop
->data
);
818 fputc( '}', stderr
);
820 if (--len
) fputc( ',', stderr
);
822 fputc( '}', stderr
);
826 static void dump_varargs_LUID_AND_ATTRIBUTES( const char *prefix
, data_size_t size
)
828 const LUID_AND_ATTRIBUTES
*lat
= cur_data
;
829 data_size_t len
= size
/ sizeof(*lat
);
831 fprintf( stderr
,"%s{", prefix
);
834 fprintf( stderr
, "{luid=%08x%08x,attr=%x}",
835 lat
->Luid
.HighPart
, lat
->Luid
.LowPart
, lat
->Attributes
);
837 if (--len
) fputc( ',', stderr
);
839 fputc( '}', stderr
);
843 static void dump_inline_sid( const char *prefix
, const SID
*sid
, data_size_t size
)
848 if ((FIELD_OFFSET(SID
, SubAuthority
[0]) > size
) ||
849 (FIELD_OFFSET(SID
, SubAuthority
[sid
->SubAuthorityCount
]) > size
))
851 fprintf( stderr
, "<invalid sid>" );
855 fprintf( stderr
,"%s{", prefix
);
856 fprintf( stderr
, "S-%u-%u", sid
->Revision
, MAKELONG(
857 MAKEWORD( sid
->IdentifierAuthority
.Value
[5],
858 sid
->IdentifierAuthority
.Value
[4] ),
859 MAKEWORD( sid
->IdentifierAuthority
.Value
[3],
860 sid
->IdentifierAuthority
.Value
[2] ) ) );
861 for (i
= 0; i
< sid
->SubAuthorityCount
; i
++)
862 fprintf( stderr
, "-%u", sid
->SubAuthority
[i
] );
863 fputc( '}', stderr
);
866 static void dump_varargs_SID( const char *prefix
, data_size_t size
)
868 const SID
*sid
= cur_data
;
869 dump_inline_sid( prefix
, sid
, size
);
873 static void dump_inline_acl( const char *prefix
, const ACL
*acl
, data_size_t size
)
875 const ACE_HEADER
*ace
;
878 fprintf( stderr
,"%s{", prefix
);
881 if (size
< sizeof(ACL
))
883 fprintf( stderr
, "<invalid acl>}" );
887 ace
= (const ACE_HEADER
*)(acl
+ 1);
888 for (i
= 0; i
< acl
->AceCount
; i
++)
890 const SID
*sid
= NULL
;
891 data_size_t sid_size
= 0;
893 if (size
< sizeof(ACE_HEADER
) || size
< ace
->AceSize
) break;
894 size
-= ace
->AceSize
;
895 if (i
!= 0) fputc( ',', stderr
);
896 fprintf( stderr
, "{AceType=" );
897 switch (ace
->AceType
)
899 case ACCESS_DENIED_ACE_TYPE
:
900 sid
= (const SID
*)&((const ACCESS_DENIED_ACE
*)ace
)->SidStart
;
901 sid_size
= ace
->AceSize
- FIELD_OFFSET(ACCESS_DENIED_ACE
, SidStart
);
902 fprintf( stderr
, "ACCESS_DENIED_ACE_TYPE,Mask=%x",
903 ((const ACCESS_DENIED_ACE
*)ace
)->Mask
);
905 case ACCESS_ALLOWED_ACE_TYPE
:
906 sid
= (const SID
*)&((const ACCESS_ALLOWED_ACE
*)ace
)->SidStart
;
907 sid_size
= ace
->AceSize
- FIELD_OFFSET(ACCESS_ALLOWED_ACE
, SidStart
);
908 fprintf( stderr
, "ACCESS_ALLOWED_ACE_TYPE,Mask=%x",
909 ((const ACCESS_ALLOWED_ACE
*)ace
)->Mask
);
911 case SYSTEM_AUDIT_ACE_TYPE
:
912 sid
= (const SID
*)&((const SYSTEM_AUDIT_ACE
*)ace
)->SidStart
;
913 sid_size
= ace
->AceSize
- FIELD_OFFSET(SYSTEM_AUDIT_ACE
, SidStart
);
914 fprintf( stderr
, "SYSTEM_AUDIT_ACE_TYPE,Mask=%x",
915 ((const SYSTEM_AUDIT_ACE
*)ace
)->Mask
);
917 case SYSTEM_ALARM_ACE_TYPE
:
918 sid
= (const SID
*)&((const SYSTEM_ALARM_ACE
*)ace
)->SidStart
;
919 sid_size
= ace
->AceSize
- FIELD_OFFSET(SYSTEM_ALARM_ACE
, SidStart
);
920 fprintf( stderr
, "SYSTEM_ALARM_ACE_TYPE,Mask=%x",
921 ((const SYSTEM_ALARM_ACE
*)ace
)->Mask
);
924 fprintf( stderr
, "unknown<%d>", ace
->AceType
);
927 fprintf( stderr
, ",AceFlags=%x", ace
->AceFlags
);
929 dump_inline_sid( ",Sid=", sid
, sid_size
);
930 ace
= (const ACE_HEADER
*)((const char *)ace
+ ace
->AceSize
);
931 fputc( '}', stderr
);
934 fputc( '}', stderr
);
937 static void dump_varargs_ACL( const char *prefix
, data_size_t size
)
939 const ACL
*acl
= cur_data
;
940 dump_inline_acl( prefix
, acl
, size
);
944 static void dump_inline_security_descriptor( const char *prefix
, const struct security_descriptor
*sd
, data_size_t size
)
946 fprintf( stderr
,"%s{", prefix
);
947 if (size
>= sizeof(struct security_descriptor
))
949 size_t offset
= sizeof(struct security_descriptor
);
950 fprintf( stderr
, "control=%08x", sd
->control
);
951 if ((sd
->owner_len
> FIELD_OFFSET(SID
, SubAuthority
[255])) || (offset
+ sd
->owner_len
> size
))
954 dump_inline_sid( ",owner=", (const SID
*)((const char *)sd
+ offset
), sd
->owner_len
);
956 fprintf( stderr
, ",owner=<not present>" );
957 offset
+= sd
->owner_len
;
958 if ((sd
->group_len
> FIELD_OFFSET(SID
, SubAuthority
[255])) || (offset
+ sd
->group_len
> size
))
961 dump_inline_sid( ",group=", (const SID
*)((const char *)sd
+ offset
), sd
->group_len
);
963 fprintf( stderr
, ",group=<not present>" );
964 offset
+= sd
->group_len
;
965 if ((sd
->sacl_len
>= MAX_ACL_LEN
) || (offset
+ sd
->sacl_len
> size
))
967 dump_inline_acl( ",sacl=", (const ACL
*)((const char *)sd
+ offset
), sd
->sacl_len
);
968 offset
+= sd
->sacl_len
;
969 if ((sd
->dacl_len
>= MAX_ACL_LEN
) || (offset
+ sd
->dacl_len
> size
))
971 dump_inline_acl( ",dacl=", (const ACL
*)((const char *)sd
+ offset
), sd
->dacl_len
);
972 offset
+= sd
->dacl_len
;
974 fputc( '}', stderr
);
977 static void dump_varargs_security_descriptor( const char *prefix
, data_size_t size
)
979 const struct security_descriptor
*sd
= cur_data
;
980 dump_inline_security_descriptor( prefix
, sd
, size
);
984 static void dump_varargs_token_groups( const char *prefix
, data_size_t size
)
986 const struct token_groups
*tg
= cur_data
;
988 fprintf( stderr
,"%s{", prefix
);
989 if (size
>= sizeof(struct token_groups
))
991 size_t offset
= sizeof(*tg
);
992 fprintf( stderr
, "count=%08x,", tg
->count
);
993 if (tg
->count
* sizeof(unsigned int) <= size
)
996 const unsigned int *attr
= (const unsigned int *)(tg
+ 1);
998 offset
+= tg
->count
* sizeof(unsigned int);
1000 fputc( '[', stderr
);
1001 for (i
= 0; i
< tg
->count
; i
++)
1003 const SID
*sid
= (const SID
*)((const char *)cur_data
+ offset
);
1005 fputc( ',', stderr
);
1006 fputc( '{', stderr
);
1007 fprintf( stderr
, "attributes=%08x", attr
[i
] );
1008 dump_inline_sid( ",sid=", sid
, size
- offset
);
1009 if ((offset
+ FIELD_OFFSET(SID
, SubAuthority
[0]) > size
) ||
1010 (offset
+ FIELD_OFFSET(SID
, SubAuthority
[sid
->SubAuthorityCount
]) > size
))
1012 offset
+= FIELD_OFFSET(SID
, SubAuthority
[sid
->SubAuthorityCount
]);
1013 fputc( '}', stderr
);
1015 fputc( ']', stderr
);
1018 fputc( '}', stderr
);
1021 static void dump_varargs_object_attributes( const char *prefix
, data_size_t size
)
1023 const struct object_attributes
*objattr
= cur_data
;
1025 fprintf( stderr
,"%s{", prefix
);
1026 if (size
>= sizeof(struct object_attributes
))
1029 fprintf( stderr
, "rootdir=%04x", objattr
->rootdir
);
1030 if (objattr
->sd_len
> size
- sizeof(*objattr
) ||
1031 objattr
->name_len
> size
- sizeof(*objattr
) - objattr
->sd_len
)
1033 dump_inline_security_descriptor( ",sd=", (const struct security_descriptor
*)(objattr
+ 1), objattr
->sd_len
);
1034 str
= (const WCHAR
*)objattr
+ (sizeof(*objattr
) + objattr
->sd_len
) / sizeof(WCHAR
);
1035 fprintf( stderr
, ",name=L\"" );
1036 dump_strW( str
, objattr
->name_len
/ sizeof(WCHAR
), stderr
, "\"\"" );
1037 fputc( '\"', stderr
);
1038 remove_data( ((sizeof(*objattr
) + objattr
->sd_len
) / sizeof(WCHAR
)) * sizeof(WCHAR
) +
1039 objattr
->name_len
);
1041 fputc( '}', stderr
);
1044 static void dump_varargs_filesystem_event( const char *prefix
, data_size_t size
)
1046 static const char * const actions
[] = {
1058 fprintf( stderr
,"%s{", prefix
);
1061 const struct filesystem_event
*event
= cur_data
;
1062 data_size_t len
= (offsetof( struct filesystem_event
, name
[event
->len
] ) + sizeof(int)-1)
1063 / sizeof(int) * sizeof(int);
1064 if (size
< len
) break;
1065 if (event
->action
< sizeof(actions
)/sizeof(actions
[0]) && actions
[event
->action
])
1066 fprintf( stderr
, "{action=%s", actions
[event
->action
] );
1068 fprintf( stderr
, "{action=%u", event
->action
);
1069 fprintf( stderr
, ",name=\"%.*s\"}", event
->len
, event
->name
);
1072 if (size
)fputc( ',', stderr
);
1074 fputc( '}', stderr
);
1077 static void dump_varargs_rawinput_devices(const char *prefix
, data_size_t size
)
1079 const struct rawinput_device
*device
;
1081 fprintf( stderr
, "%s{", prefix
);
1082 while (size
>= sizeof(*device
))
1085 fprintf( stderr
, "{usage_page=%04x,usage=%04x,flags=%08x,target=%08x}",
1086 device
->usage_page
, device
->usage
, device
->flags
, device
->target
);
1087 size
-= sizeof(*device
);
1088 remove_data( sizeof(*device
) );
1089 if (size
) fputc( ',', stderr
);
1091 fputc( '}', stderr
);
1094 typedef void (*dump_func
)( const void *req
);
1096 /* Everything below this line is generated automatically by tools/make_requests */
1097 /* ### make_requests begin ### */
1099 static void dump_new_process_request( const struct new_process_request
*req
)
1101 fprintf( stderr
, " inherit_all=%d", req
->inherit_all
);
1102 fprintf( stderr
, ", create_flags=%08x", req
->create_flags
);
1103 fprintf( stderr
, ", socket_fd=%d", req
->socket_fd
);
1104 fprintf( stderr
, ", exe_file=%04x", req
->exe_file
);
1105 fprintf( stderr
, ", process_access=%08x", req
->process_access
);
1106 fprintf( stderr
, ", process_attr=%08x", req
->process_attr
);
1107 fprintf( stderr
, ", thread_access=%08x", req
->thread_access
);
1108 fprintf( stderr
, ", thread_attr=%08x", req
->thread_attr
);
1109 fprintf( stderr
, ", info_size=%u", req
->info_size
);
1110 dump_varargs_startup_info( ", info=", min(cur_size
,req
->info_size
) );
1111 dump_varargs_unicode_str( ", env=", cur_size
);
1114 static void dump_new_process_reply( const struct new_process_reply
*req
)
1116 fprintf( stderr
, " info=%04x", req
->info
);
1117 fprintf( stderr
, ", pid=%04x", req
->pid
);
1118 fprintf( stderr
, ", phandle=%04x", req
->phandle
);
1119 fprintf( stderr
, ", tid=%04x", req
->tid
);
1120 fprintf( stderr
, ", thandle=%04x", req
->thandle
);
1123 static void dump_get_new_process_info_request( const struct get_new_process_info_request
*req
)
1125 fprintf( stderr
, " info=%04x", req
->info
);
1128 static void dump_get_new_process_info_reply( const struct get_new_process_info_reply
*req
)
1130 fprintf( stderr
, " success=%d", req
->success
);
1131 fprintf( stderr
, ", exit_code=%d", req
->exit_code
);
1134 static void dump_new_thread_request( const struct new_thread_request
*req
)
1136 fprintf( stderr
, " access=%08x", req
->access
);
1137 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1138 fprintf( stderr
, ", suspend=%d", req
->suspend
);
1139 fprintf( stderr
, ", request_fd=%d", req
->request_fd
);
1142 static void dump_new_thread_reply( const struct new_thread_reply
*req
)
1144 fprintf( stderr
, " tid=%04x", req
->tid
);
1145 fprintf( stderr
, ", handle=%04x", req
->handle
);
1148 static void dump_get_startup_info_request( const struct get_startup_info_request
*req
)
1152 static void dump_get_startup_info_reply( const struct get_startup_info_reply
*req
)
1154 fprintf( stderr
, " exe_file=%04x", req
->exe_file
);
1155 fprintf( stderr
, ", info_size=%u", req
->info_size
);
1156 dump_varargs_startup_info( ", info=", min(cur_size
,req
->info_size
) );
1157 dump_varargs_unicode_str( ", env=", cur_size
);
1160 static void dump_init_process_done_request( const struct init_process_done_request
*req
)
1162 fprintf( stderr
, " gui=%d", req
->gui
);
1163 dump_uint64( ", module=", &req
->module
);
1164 dump_uint64( ", ldt_copy=", &req
->ldt_copy
);
1165 dump_uint64( ", entry=", &req
->entry
);
1168 static void dump_init_thread_request( const struct init_thread_request
*req
)
1170 fprintf( stderr
, " unix_pid=%d", req
->unix_pid
);
1171 fprintf( stderr
, ", unix_tid=%d", req
->unix_tid
);
1172 fprintf( stderr
, ", debug_level=%d", req
->debug_level
);
1173 dump_uint64( ", teb=", &req
->teb
);
1174 dump_uint64( ", entry=", &req
->entry
);
1175 fprintf( stderr
, ", reply_fd=%d", req
->reply_fd
);
1176 fprintf( stderr
, ", wait_fd=%d", req
->wait_fd
);
1177 dump_cpu_type( ", cpu=", &req
->cpu
);
1180 static void dump_init_thread_reply( const struct init_thread_reply
*req
)
1182 fprintf( stderr
, " pid=%04x", req
->pid
);
1183 fprintf( stderr
, ", tid=%04x", req
->tid
);
1184 dump_timeout( ", server_start=", &req
->server_start
);
1185 fprintf( stderr
, ", info_size=%u", req
->info_size
);
1186 fprintf( stderr
, ", version=%d", req
->version
);
1187 fprintf( stderr
, ", all_cpus=%08x", req
->all_cpus
);
1190 static void dump_terminate_process_request( const struct terminate_process_request
*req
)
1192 fprintf( stderr
, " handle=%04x", req
->handle
);
1193 fprintf( stderr
, ", exit_code=%d", req
->exit_code
);
1196 static void dump_terminate_process_reply( const struct terminate_process_reply
*req
)
1198 fprintf( stderr
, " self=%d", req
->self
);
1201 static void dump_terminate_thread_request( const struct terminate_thread_request
*req
)
1203 fprintf( stderr
, " handle=%04x", req
->handle
);
1204 fprintf( stderr
, ", exit_code=%d", req
->exit_code
);
1207 static void dump_terminate_thread_reply( const struct terminate_thread_reply
*req
)
1209 fprintf( stderr
, " self=%d", req
->self
);
1210 fprintf( stderr
, ", last=%d", req
->last
);
1213 static void dump_get_process_info_request( const struct get_process_info_request
*req
)
1215 fprintf( stderr
, " handle=%04x", req
->handle
);
1218 static void dump_get_process_info_reply( const struct get_process_info_reply
*req
)
1220 fprintf( stderr
, " pid=%04x", req
->pid
);
1221 fprintf( stderr
, ", ppid=%04x", req
->ppid
);
1222 dump_uint64( ", affinity=", &req
->affinity
);
1223 dump_uint64( ", peb=", &req
->peb
);
1224 dump_timeout( ", start_time=", &req
->start_time
);
1225 dump_timeout( ", end_time=", &req
->end_time
);
1226 fprintf( stderr
, ", exit_code=%d", req
->exit_code
);
1227 fprintf( stderr
, ", priority=%d", req
->priority
);
1228 dump_cpu_type( ", cpu=", &req
->cpu
);
1229 fprintf( stderr
, ", debugger_present=%d", req
->debugger_present
);
1232 static void dump_set_process_info_request( const struct set_process_info_request
*req
)
1234 fprintf( stderr
, " handle=%04x", req
->handle
);
1235 fprintf( stderr
, ", mask=%d", req
->mask
);
1236 fprintf( stderr
, ", priority=%d", req
->priority
);
1237 dump_uint64( ", affinity=", &req
->affinity
);
1240 static void dump_get_thread_info_request( const struct get_thread_info_request
*req
)
1242 fprintf( stderr
, " handle=%04x", req
->handle
);
1243 fprintf( stderr
, ", tid_in=%04x", req
->tid_in
);
1246 static void dump_get_thread_info_reply( const struct get_thread_info_reply
*req
)
1248 fprintf( stderr
, " pid=%04x", req
->pid
);
1249 fprintf( stderr
, ", tid=%04x", req
->tid
);
1250 dump_uint64( ", teb=", &req
->teb
);
1251 dump_uint64( ", affinity=", &req
->affinity
);
1252 dump_timeout( ", creation_time=", &req
->creation_time
);
1253 dump_timeout( ", exit_time=", &req
->exit_time
);
1254 fprintf( stderr
, ", exit_code=%d", req
->exit_code
);
1255 fprintf( stderr
, ", priority=%d", req
->priority
);
1256 fprintf( stderr
, ", last=%d", req
->last
);
1259 static void dump_set_thread_info_request( const struct set_thread_info_request
*req
)
1261 fprintf( stderr
, " handle=%04x", req
->handle
);
1262 fprintf( stderr
, ", mask=%d", req
->mask
);
1263 fprintf( stderr
, ", priority=%d", req
->priority
);
1264 dump_uint64( ", affinity=", &req
->affinity
);
1265 fprintf( stderr
, ", token=%04x", req
->token
);
1268 static void dump_get_dll_info_request( const struct get_dll_info_request
*req
)
1270 fprintf( stderr
, " handle=%04x", req
->handle
);
1271 dump_uint64( ", base_address=", &req
->base_address
);
1274 static void dump_get_dll_info_reply( const struct get_dll_info_reply
*req
)
1276 dump_uint64( " entry_point=", &req
->entry_point
);
1277 fprintf( stderr
, ", size=%u", req
->size
);
1278 fprintf( stderr
, ", filename_len=%u", req
->filename_len
);
1279 dump_varargs_unicode_str( ", filename=", cur_size
);
1282 static void dump_suspend_thread_request( const struct suspend_thread_request
*req
)
1284 fprintf( stderr
, " handle=%04x", req
->handle
);
1287 static void dump_suspend_thread_reply( const struct suspend_thread_reply
*req
)
1289 fprintf( stderr
, " count=%d", req
->count
);
1292 static void dump_resume_thread_request( const struct resume_thread_request
*req
)
1294 fprintf( stderr
, " handle=%04x", req
->handle
);
1297 static void dump_resume_thread_reply( const struct resume_thread_reply
*req
)
1299 fprintf( stderr
, " count=%d", req
->count
);
1302 static void dump_load_dll_request( const struct load_dll_request
*req
)
1304 fprintf( stderr
, " mapping=%04x", req
->mapping
);
1305 dump_uint64( ", base=", &req
->base
);
1306 dump_uint64( ", name=", &req
->name
);
1307 fprintf( stderr
, ", size=%u", req
->size
);
1308 fprintf( stderr
, ", dbg_offset=%d", req
->dbg_offset
);
1309 fprintf( stderr
, ", dbg_size=%d", req
->dbg_size
);
1310 dump_varargs_unicode_str( ", filename=", cur_size
);
1313 static void dump_unload_dll_request( const struct unload_dll_request
*req
)
1315 dump_uint64( " base=", &req
->base
);
1318 static void dump_queue_apc_request( const struct queue_apc_request
*req
)
1320 fprintf( stderr
, " handle=%04x", req
->handle
);
1321 dump_apc_call( ", call=", &req
->call
);
1324 static void dump_queue_apc_reply( const struct queue_apc_reply
*req
)
1326 fprintf( stderr
, " handle=%04x", req
->handle
);
1327 fprintf( stderr
, ", self=%d", req
->self
);
1330 static void dump_get_apc_result_request( const struct get_apc_result_request
*req
)
1332 fprintf( stderr
, " handle=%04x", req
->handle
);
1335 static void dump_get_apc_result_reply( const struct get_apc_result_reply
*req
)
1337 dump_apc_result( " result=", &req
->result
);
1340 static void dump_close_handle_request( const struct close_handle_request
*req
)
1342 fprintf( stderr
, " handle=%04x", req
->handle
);
1345 static void dump_set_handle_info_request( const struct set_handle_info_request
*req
)
1347 fprintf( stderr
, " handle=%04x", req
->handle
);
1348 fprintf( stderr
, ", flags=%d", req
->flags
);
1349 fprintf( stderr
, ", mask=%d", req
->mask
);
1352 static void dump_set_handle_info_reply( const struct set_handle_info_reply
*req
)
1354 fprintf( stderr
, " old_flags=%d", req
->old_flags
);
1357 static void dump_dup_handle_request( const struct dup_handle_request
*req
)
1359 fprintf( stderr
, " src_process=%04x", req
->src_process
);
1360 fprintf( stderr
, ", src_handle=%04x", req
->src_handle
);
1361 fprintf( stderr
, ", dst_process=%04x", req
->dst_process
);
1362 fprintf( stderr
, ", access=%08x", req
->access
);
1363 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1364 fprintf( stderr
, ", options=%08x", req
->options
);
1367 static void dump_dup_handle_reply( const struct dup_handle_reply
*req
)
1369 fprintf( stderr
, " handle=%04x", req
->handle
);
1370 fprintf( stderr
, ", self=%d", req
->self
);
1371 fprintf( stderr
, ", closed=%d", req
->closed
);
1374 static void dump_open_process_request( const struct open_process_request
*req
)
1376 fprintf( stderr
, " pid=%04x", req
->pid
);
1377 fprintf( stderr
, ", access=%08x", req
->access
);
1378 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1381 static void dump_open_process_reply( const struct open_process_reply
*req
)
1383 fprintf( stderr
, " handle=%04x", req
->handle
);
1386 static void dump_open_thread_request( const struct open_thread_request
*req
)
1388 fprintf( stderr
, " tid=%04x", req
->tid
);
1389 fprintf( stderr
, ", access=%08x", req
->access
);
1390 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1393 static void dump_open_thread_reply( const struct open_thread_reply
*req
)
1395 fprintf( stderr
, " handle=%04x", req
->handle
);
1398 static void dump_select_request( const struct select_request
*req
)
1400 fprintf( stderr
, " flags=%d", req
->flags
);
1401 dump_uint64( ", cookie=", &req
->cookie
);
1402 dump_timeout( ", timeout=", &req
->timeout
);
1403 fprintf( stderr
, ", prev_apc=%04x", req
->prev_apc
);
1404 dump_varargs_apc_result( ", result=", cur_size
);
1405 dump_varargs_select_op( ", data=", cur_size
);
1408 static void dump_select_reply( const struct select_reply
*req
)
1410 dump_timeout( " timeout=", &req
->timeout
);
1411 dump_apc_call( ", call=", &req
->call
);
1412 fprintf( stderr
, ", apc_handle=%04x", req
->apc_handle
);
1415 static void dump_create_event_request( const struct create_event_request
*req
)
1417 fprintf( stderr
, " access=%08x", req
->access
);
1418 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1419 fprintf( stderr
, ", manual_reset=%d", req
->manual_reset
);
1420 fprintf( stderr
, ", initial_state=%d", req
->initial_state
);
1421 dump_varargs_object_attributes( ", objattr=", cur_size
);
1424 static void dump_create_event_reply( const struct create_event_reply
*req
)
1426 fprintf( stderr
, " handle=%04x", req
->handle
);
1429 static void dump_event_op_request( const struct event_op_request
*req
)
1431 fprintf( stderr
, " handle=%04x", req
->handle
);
1432 fprintf( stderr
, ", op=%d", req
->op
);
1435 static void dump_query_event_request( const struct query_event_request
*req
)
1437 fprintf( stderr
, " handle=%04x", req
->handle
);
1440 static void dump_query_event_reply( const struct query_event_reply
*req
)
1442 fprintf( stderr
, " manual_reset=%d", req
->manual_reset
);
1443 fprintf( stderr
, ", state=%d", req
->state
);
1446 static void dump_open_event_request( const struct open_event_request
*req
)
1448 fprintf( stderr
, " access=%08x", req
->access
);
1449 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1450 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
1451 dump_varargs_unicode_str( ", name=", cur_size
);
1454 static void dump_open_event_reply( const struct open_event_reply
*req
)
1456 fprintf( stderr
, " handle=%04x", req
->handle
);
1459 static void dump_create_keyed_event_request( const struct create_keyed_event_request
*req
)
1461 fprintf( stderr
, " access=%08x", req
->access
);
1462 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1463 dump_varargs_object_attributes( ", objattr=", cur_size
);
1466 static void dump_create_keyed_event_reply( const struct create_keyed_event_reply
*req
)
1468 fprintf( stderr
, " handle=%04x", req
->handle
);
1471 static void dump_open_keyed_event_request( const struct open_keyed_event_request
*req
)
1473 fprintf( stderr
, " access=%08x", req
->access
);
1474 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1475 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
1476 dump_varargs_unicode_str( ", name=", cur_size
);
1479 static void dump_open_keyed_event_reply( const struct open_keyed_event_reply
*req
)
1481 fprintf( stderr
, " handle=%04x", req
->handle
);
1484 static void dump_create_mutex_request( const struct create_mutex_request
*req
)
1486 fprintf( stderr
, " access=%08x", req
->access
);
1487 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1488 fprintf( stderr
, ", owned=%d", req
->owned
);
1489 dump_varargs_object_attributes( ", objattr=", cur_size
);
1492 static void dump_create_mutex_reply( const struct create_mutex_reply
*req
)
1494 fprintf( stderr
, " handle=%04x", req
->handle
);
1497 static void dump_release_mutex_request( const struct release_mutex_request
*req
)
1499 fprintf( stderr
, " handle=%04x", req
->handle
);
1502 static void dump_release_mutex_reply( const struct release_mutex_reply
*req
)
1504 fprintf( stderr
, " prev_count=%08x", req
->prev_count
);
1507 static void dump_open_mutex_request( const struct open_mutex_request
*req
)
1509 fprintf( stderr
, " access=%08x", req
->access
);
1510 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1511 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
1512 dump_varargs_unicode_str( ", name=", cur_size
);
1515 static void dump_open_mutex_reply( const struct open_mutex_reply
*req
)
1517 fprintf( stderr
, " handle=%04x", req
->handle
);
1520 static void dump_create_semaphore_request( const struct create_semaphore_request
*req
)
1522 fprintf( stderr
, " access=%08x", req
->access
);
1523 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1524 fprintf( stderr
, ", initial=%08x", req
->initial
);
1525 fprintf( stderr
, ", max=%08x", req
->max
);
1526 dump_varargs_object_attributes( ", objattr=", cur_size
);
1529 static void dump_create_semaphore_reply( const struct create_semaphore_reply
*req
)
1531 fprintf( stderr
, " handle=%04x", req
->handle
);
1534 static void dump_release_semaphore_request( const struct release_semaphore_request
*req
)
1536 fprintf( stderr
, " handle=%04x", req
->handle
);
1537 fprintf( stderr
, ", count=%08x", req
->count
);
1540 static void dump_release_semaphore_reply( const struct release_semaphore_reply
*req
)
1542 fprintf( stderr
, " prev_count=%08x", req
->prev_count
);
1545 static void dump_open_semaphore_request( const struct open_semaphore_request
*req
)
1547 fprintf( stderr
, " access=%08x", req
->access
);
1548 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1549 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
1550 dump_varargs_unicode_str( ", name=", cur_size
);
1553 static void dump_open_semaphore_reply( const struct open_semaphore_reply
*req
)
1555 fprintf( stderr
, " handle=%04x", req
->handle
);
1558 static void dump_create_file_request( const struct create_file_request
*req
)
1560 fprintf( stderr
, " access=%08x", req
->access
);
1561 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1562 fprintf( stderr
, ", sharing=%08x", req
->sharing
);
1563 fprintf( stderr
, ", create=%d", req
->create
);
1564 fprintf( stderr
, ", options=%08x", req
->options
);
1565 fprintf( stderr
, ", attrs=%08x", req
->attrs
);
1566 dump_varargs_object_attributes( ", objattr=", cur_size
);
1567 dump_varargs_string( ", filename=", cur_size
);
1570 static void dump_create_file_reply( const struct create_file_reply
*req
)
1572 fprintf( stderr
, " handle=%04x", req
->handle
);
1575 static void dump_open_file_object_request( const struct open_file_object_request
*req
)
1577 fprintf( stderr
, " access=%08x", req
->access
);
1578 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1579 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
1580 fprintf( stderr
, ", sharing=%08x", req
->sharing
);
1581 fprintf( stderr
, ", options=%08x", req
->options
);
1582 dump_varargs_unicode_str( ", filename=", cur_size
);
1585 static void dump_open_file_object_reply( const struct open_file_object_reply
*req
)
1587 fprintf( stderr
, " handle=%04x", req
->handle
);
1590 static void dump_alloc_file_handle_request( const struct alloc_file_handle_request
*req
)
1592 fprintf( stderr
, " access=%08x", req
->access
);
1593 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1594 fprintf( stderr
, ", fd=%d", req
->fd
);
1597 static void dump_alloc_file_handle_reply( const struct alloc_file_handle_reply
*req
)
1599 fprintf( stderr
, " handle=%04x", req
->handle
);
1602 static void dump_get_handle_unix_name_request( const struct get_handle_unix_name_request
*req
)
1604 fprintf( stderr
, " handle=%04x", req
->handle
);
1607 static void dump_get_handle_unix_name_reply( const struct get_handle_unix_name_reply
*req
)
1609 fprintf( stderr
, " name_len=%u", req
->name_len
);
1610 dump_varargs_string( ", name=", cur_size
);
1613 static void dump_get_handle_fd_request( const struct get_handle_fd_request
*req
)
1615 fprintf( stderr
, " handle=%04x", req
->handle
);
1618 static void dump_get_handle_fd_reply( const struct get_handle_fd_reply
*req
)
1620 fprintf( stderr
, " type=%d", req
->type
);
1621 fprintf( stderr
, ", cacheable=%d", req
->cacheable
);
1622 fprintf( stderr
, ", access=%08x", req
->access
);
1623 fprintf( stderr
, ", options=%08x", req
->options
);
1626 static void dump_flush_file_request( const struct flush_file_request
*req
)
1628 fprintf( stderr
, " handle=%04x", req
->handle
);
1631 static void dump_flush_file_reply( const struct flush_file_reply
*req
)
1633 fprintf( stderr
, " event=%04x", req
->event
);
1636 static void dump_lock_file_request( const struct lock_file_request
*req
)
1638 fprintf( stderr
, " handle=%04x", req
->handle
);
1639 dump_uint64( ", offset=", &req
->offset
);
1640 dump_uint64( ", count=", &req
->count
);
1641 fprintf( stderr
, ", shared=%d", req
->shared
);
1642 fprintf( stderr
, ", wait=%d", req
->wait
);
1645 static void dump_lock_file_reply( const struct lock_file_reply
*req
)
1647 fprintf( stderr
, " handle=%04x", req
->handle
);
1648 fprintf( stderr
, ", overlapped=%d", req
->overlapped
);
1651 static void dump_unlock_file_request( const struct unlock_file_request
*req
)
1653 fprintf( stderr
, " handle=%04x", req
->handle
);
1654 dump_uint64( ", offset=", &req
->offset
);
1655 dump_uint64( ", count=", &req
->count
);
1658 static void dump_create_socket_request( const struct create_socket_request
*req
)
1660 fprintf( stderr
, " access=%08x", req
->access
);
1661 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1662 fprintf( stderr
, ", family=%d", req
->family
);
1663 fprintf( stderr
, ", type=%d", req
->type
);
1664 fprintf( stderr
, ", protocol=%d", req
->protocol
);
1665 fprintf( stderr
, ", flags=%08x", req
->flags
);
1668 static void dump_create_socket_reply( const struct create_socket_reply
*req
)
1670 fprintf( stderr
, " handle=%04x", req
->handle
);
1673 static void dump_accept_socket_request( const struct accept_socket_request
*req
)
1675 fprintf( stderr
, " lhandle=%04x", req
->lhandle
);
1676 fprintf( stderr
, ", access=%08x", req
->access
);
1677 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1680 static void dump_accept_socket_reply( const struct accept_socket_reply
*req
)
1682 fprintf( stderr
, " handle=%04x", req
->handle
);
1685 static void dump_accept_into_socket_request( const struct accept_into_socket_request
*req
)
1687 fprintf( stderr
, " lhandle=%04x", req
->lhandle
);
1688 fprintf( stderr
, ", ahandle=%04x", req
->ahandle
);
1691 static void dump_set_socket_event_request( const struct set_socket_event_request
*req
)
1693 fprintf( stderr
, " handle=%04x", req
->handle
);
1694 fprintf( stderr
, ", mask=%08x", req
->mask
);
1695 fprintf( stderr
, ", event=%04x", req
->event
);
1696 fprintf( stderr
, ", window=%08x", req
->window
);
1697 fprintf( stderr
, ", msg=%08x", req
->msg
);
1700 static void dump_get_socket_event_request( const struct get_socket_event_request
*req
)
1702 fprintf( stderr
, " handle=%04x", req
->handle
);
1703 fprintf( stderr
, ", service=%d", req
->service
);
1704 fprintf( stderr
, ", c_event=%04x", req
->c_event
);
1707 static void dump_get_socket_event_reply( const struct get_socket_event_reply
*req
)
1709 fprintf( stderr
, " mask=%08x", req
->mask
);
1710 fprintf( stderr
, ", pmask=%08x", req
->pmask
);
1711 fprintf( stderr
, ", state=%08x", req
->state
);
1712 dump_varargs_ints( ", errors=", cur_size
);
1715 static void dump_get_socket_info_request( const struct get_socket_info_request
*req
)
1717 fprintf( stderr
, " handle=%04x", req
->handle
);
1720 static void dump_get_socket_info_reply( const struct get_socket_info_reply
*req
)
1722 fprintf( stderr
, " family=%d", req
->family
);
1723 fprintf( stderr
, ", type=%d", req
->type
);
1724 fprintf( stderr
, ", protocol=%d", req
->protocol
);
1727 static void dump_enable_socket_event_request( const struct enable_socket_event_request
*req
)
1729 fprintf( stderr
, " handle=%04x", req
->handle
);
1730 fprintf( stderr
, ", mask=%08x", req
->mask
);
1731 fprintf( stderr
, ", sstate=%08x", req
->sstate
);
1732 fprintf( stderr
, ", cstate=%08x", req
->cstate
);
1735 static void dump_set_socket_deferred_request( const struct set_socket_deferred_request
*req
)
1737 fprintf( stderr
, " handle=%04x", req
->handle
);
1738 fprintf( stderr
, ", deferred=%04x", req
->deferred
);
1741 static void dump_alloc_console_request( const struct alloc_console_request
*req
)
1743 fprintf( stderr
, " access=%08x", req
->access
);
1744 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1745 fprintf( stderr
, ", pid=%04x", req
->pid
);
1746 fprintf( stderr
, ", input_fd=%d", req
->input_fd
);
1749 static void dump_alloc_console_reply( const struct alloc_console_reply
*req
)
1751 fprintf( stderr
, " handle_in=%04x", req
->handle_in
);
1752 fprintf( stderr
, ", event=%04x", req
->event
);
1755 static void dump_free_console_request( const struct free_console_request
*req
)
1759 static void dump_get_console_renderer_events_request( const struct get_console_renderer_events_request
*req
)
1761 fprintf( stderr
, " handle=%04x", req
->handle
);
1764 static void dump_get_console_renderer_events_reply( const struct get_console_renderer_events_reply
*req
)
1766 dump_varargs_bytes( " data=", cur_size
);
1769 static void dump_open_console_request( const struct open_console_request
*req
)
1771 fprintf( stderr
, " from=%04x", req
->from
);
1772 fprintf( stderr
, ", access=%08x", req
->access
);
1773 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1774 fprintf( stderr
, ", share=%d", req
->share
);
1777 static void dump_open_console_reply( const struct open_console_reply
*req
)
1779 fprintf( stderr
, " handle=%04x", req
->handle
);
1782 static void dump_get_console_wait_event_request( const struct get_console_wait_event_request
*req
)
1786 static void dump_get_console_wait_event_reply( const struct get_console_wait_event_reply
*req
)
1788 fprintf( stderr
, " handle=%04x", req
->handle
);
1791 static void dump_get_console_mode_request( const struct get_console_mode_request
*req
)
1793 fprintf( stderr
, " handle=%04x", req
->handle
);
1796 static void dump_get_console_mode_reply( const struct get_console_mode_reply
*req
)
1798 fprintf( stderr
, " mode=%d", req
->mode
);
1801 static void dump_set_console_mode_request( const struct set_console_mode_request
*req
)
1803 fprintf( stderr
, " handle=%04x", req
->handle
);
1804 fprintf( stderr
, ", mode=%d", req
->mode
);
1807 static void dump_set_console_input_info_request( const struct set_console_input_info_request
*req
)
1809 fprintf( stderr
, " handle=%04x", req
->handle
);
1810 fprintf( stderr
, ", mask=%d", req
->mask
);
1811 fprintf( stderr
, ", active_sb=%04x", req
->active_sb
);
1812 fprintf( stderr
, ", history_mode=%d", req
->history_mode
);
1813 fprintf( stderr
, ", history_size=%d", req
->history_size
);
1814 fprintf( stderr
, ", edition_mode=%d", req
->edition_mode
);
1815 fprintf( stderr
, ", input_cp=%d", req
->input_cp
);
1816 fprintf( stderr
, ", output_cp=%d", req
->output_cp
);
1817 fprintf( stderr
, ", win=%08x", req
->win
);
1818 dump_varargs_unicode_str( ", title=", cur_size
);
1821 static void dump_get_console_input_info_request( const struct get_console_input_info_request
*req
)
1823 fprintf( stderr
, " handle=%04x", req
->handle
);
1826 static void dump_get_console_input_info_reply( const struct get_console_input_info_reply
*req
)
1828 fprintf( stderr
, " history_mode=%d", req
->history_mode
);
1829 fprintf( stderr
, ", history_size=%d", req
->history_size
);
1830 fprintf( stderr
, ", history_index=%d", req
->history_index
);
1831 fprintf( stderr
, ", edition_mode=%d", req
->edition_mode
);
1832 fprintf( stderr
, ", input_cp=%d", req
->input_cp
);
1833 fprintf( stderr
, ", output_cp=%d", req
->output_cp
);
1834 fprintf( stderr
, ", win=%08x", req
->win
);
1835 dump_varargs_unicode_str( ", title=", cur_size
);
1838 static void dump_append_console_input_history_request( const struct append_console_input_history_request
*req
)
1840 fprintf( stderr
, " handle=%04x", req
->handle
);
1841 dump_varargs_unicode_str( ", line=", cur_size
);
1844 static void dump_get_console_input_history_request( const struct get_console_input_history_request
*req
)
1846 fprintf( stderr
, " handle=%04x", req
->handle
);
1847 fprintf( stderr
, ", index=%d", req
->index
);
1850 static void dump_get_console_input_history_reply( const struct get_console_input_history_reply
*req
)
1852 fprintf( stderr
, " total=%d", req
->total
);
1853 dump_varargs_unicode_str( ", line=", cur_size
);
1856 static void dump_create_console_output_request( const struct create_console_output_request
*req
)
1858 fprintf( stderr
, " handle_in=%04x", req
->handle_in
);
1859 fprintf( stderr
, ", access=%08x", req
->access
);
1860 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1861 fprintf( stderr
, ", share=%08x", req
->share
);
1862 fprintf( stderr
, ", fd=%d", req
->fd
);
1865 static void dump_create_console_output_reply( const struct create_console_output_reply
*req
)
1867 fprintf( stderr
, " handle_out=%04x", req
->handle_out
);
1870 static void dump_set_console_output_info_request( const struct set_console_output_info_request
*req
)
1872 fprintf( stderr
, " handle=%04x", req
->handle
);
1873 fprintf( stderr
, ", mask=%d", req
->mask
);
1874 fprintf( stderr
, ", cursor_size=%d", req
->cursor_size
);
1875 fprintf( stderr
, ", cursor_visible=%d", req
->cursor_visible
);
1876 fprintf( stderr
, ", cursor_x=%d", req
->cursor_x
);
1877 fprintf( stderr
, ", cursor_y=%d", req
->cursor_y
);
1878 fprintf( stderr
, ", width=%d", req
->width
);
1879 fprintf( stderr
, ", height=%d", req
->height
);
1880 fprintf( stderr
, ", attr=%d", req
->attr
);
1881 fprintf( stderr
, ", win_left=%d", req
->win_left
);
1882 fprintf( stderr
, ", win_top=%d", req
->win_top
);
1883 fprintf( stderr
, ", win_right=%d", req
->win_right
);
1884 fprintf( stderr
, ", win_bottom=%d", req
->win_bottom
);
1885 fprintf( stderr
, ", max_width=%d", req
->max_width
);
1886 fprintf( stderr
, ", max_height=%d", req
->max_height
);
1889 static void dump_get_console_output_info_request( const struct get_console_output_info_request
*req
)
1891 fprintf( stderr
, " handle=%04x", req
->handle
);
1894 static void dump_get_console_output_info_reply( const struct get_console_output_info_reply
*req
)
1896 fprintf( stderr
, " cursor_size=%d", req
->cursor_size
);
1897 fprintf( stderr
, ", cursor_visible=%d", req
->cursor_visible
);
1898 fprintf( stderr
, ", cursor_x=%d", req
->cursor_x
);
1899 fprintf( stderr
, ", cursor_y=%d", req
->cursor_y
);
1900 fprintf( stderr
, ", width=%d", req
->width
);
1901 fprintf( stderr
, ", height=%d", req
->height
);
1902 fprintf( stderr
, ", attr=%d", req
->attr
);
1903 fprintf( stderr
, ", win_left=%d", req
->win_left
);
1904 fprintf( stderr
, ", win_top=%d", req
->win_top
);
1905 fprintf( stderr
, ", win_right=%d", req
->win_right
);
1906 fprintf( stderr
, ", win_bottom=%d", req
->win_bottom
);
1907 fprintf( stderr
, ", max_width=%d", req
->max_width
);
1908 fprintf( stderr
, ", max_height=%d", req
->max_height
);
1911 static void dump_write_console_input_request( const struct write_console_input_request
*req
)
1913 fprintf( stderr
, " handle=%04x", req
->handle
);
1914 dump_varargs_input_records( ", rec=", cur_size
);
1917 static void dump_write_console_input_reply( const struct write_console_input_reply
*req
)
1919 fprintf( stderr
, " written=%d", req
->written
);
1922 static void dump_read_console_input_request( const struct read_console_input_request
*req
)
1924 fprintf( stderr
, " handle=%04x", req
->handle
);
1925 fprintf( stderr
, ", flush=%d", req
->flush
);
1928 static void dump_read_console_input_reply( const struct read_console_input_reply
*req
)
1930 fprintf( stderr
, " read=%d", req
->read
);
1931 dump_varargs_input_records( ", rec=", cur_size
);
1934 static void dump_write_console_output_request( const struct write_console_output_request
*req
)
1936 fprintf( stderr
, " handle=%04x", req
->handle
);
1937 fprintf( stderr
, ", x=%d", req
->x
);
1938 fprintf( stderr
, ", y=%d", req
->y
);
1939 fprintf( stderr
, ", mode=%d", req
->mode
);
1940 fprintf( stderr
, ", wrap=%d", req
->wrap
);
1941 dump_varargs_bytes( ", data=", cur_size
);
1944 static void dump_write_console_output_reply( const struct write_console_output_reply
*req
)
1946 fprintf( stderr
, " written=%d", req
->written
);
1947 fprintf( stderr
, ", width=%d", req
->width
);
1948 fprintf( stderr
, ", height=%d", req
->height
);
1951 static void dump_fill_console_output_request( const struct fill_console_output_request
*req
)
1953 fprintf( stderr
, " handle=%04x", req
->handle
);
1954 fprintf( stderr
, ", x=%d", req
->x
);
1955 fprintf( stderr
, ", y=%d", req
->y
);
1956 fprintf( stderr
, ", mode=%d", req
->mode
);
1957 fprintf( stderr
, ", count=%d", req
->count
);
1958 fprintf( stderr
, ", wrap=%d", req
->wrap
);
1959 dump_char_info( ", data=", &req
->data
);
1962 static void dump_fill_console_output_reply( const struct fill_console_output_reply
*req
)
1964 fprintf( stderr
, " written=%d", req
->written
);
1967 static void dump_read_console_output_request( const struct read_console_output_request
*req
)
1969 fprintf( stderr
, " handle=%04x", req
->handle
);
1970 fprintf( stderr
, ", x=%d", req
->x
);
1971 fprintf( stderr
, ", y=%d", req
->y
);
1972 fprintf( stderr
, ", mode=%d", req
->mode
);
1973 fprintf( stderr
, ", wrap=%d", req
->wrap
);
1976 static void dump_read_console_output_reply( const struct read_console_output_reply
*req
)
1978 fprintf( stderr
, " width=%d", req
->width
);
1979 fprintf( stderr
, ", height=%d", req
->height
);
1980 dump_varargs_bytes( ", data=", cur_size
);
1983 static void dump_move_console_output_request( const struct move_console_output_request
*req
)
1985 fprintf( stderr
, " handle=%04x", req
->handle
);
1986 fprintf( stderr
, ", x_src=%d", req
->x_src
);
1987 fprintf( stderr
, ", y_src=%d", req
->y_src
);
1988 fprintf( stderr
, ", x_dst=%d", req
->x_dst
);
1989 fprintf( stderr
, ", y_dst=%d", req
->y_dst
);
1990 fprintf( stderr
, ", w=%d", req
->w
);
1991 fprintf( stderr
, ", h=%d", req
->h
);
1994 static void dump_send_console_signal_request( const struct send_console_signal_request
*req
)
1996 fprintf( stderr
, " signal=%d", req
->signal
);
1997 fprintf( stderr
, ", group_id=%04x", req
->group_id
);
2000 static void dump_read_directory_changes_request( const struct read_directory_changes_request
*req
)
2002 fprintf( stderr
, " filter=%08x", req
->filter
);
2003 fprintf( stderr
, ", subtree=%d", req
->subtree
);
2004 fprintf( stderr
, ", want_data=%d", req
->want_data
);
2005 dump_async_data( ", async=", &req
->async
);
2008 static void dump_read_change_request( const struct read_change_request
*req
)
2010 fprintf( stderr
, " handle=%04x", req
->handle
);
2013 static void dump_read_change_reply( const struct read_change_reply
*req
)
2015 dump_varargs_filesystem_event( " events=", cur_size
);
2018 static void dump_create_mapping_request( const struct create_mapping_request
*req
)
2020 fprintf( stderr
, " access=%08x", req
->access
);
2021 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
2022 fprintf( stderr
, ", protect=%08x", req
->protect
);
2023 dump_uint64( ", size=", &req
->size
);
2024 fprintf( stderr
, ", file_handle=%04x", req
->file_handle
);
2025 dump_varargs_object_attributes( ", objattr=", cur_size
);
2028 static void dump_create_mapping_reply( const struct create_mapping_reply
*req
)
2030 fprintf( stderr
, " handle=%04x", req
->handle
);
2033 static void dump_open_mapping_request( const struct open_mapping_request
*req
)
2035 fprintf( stderr
, " access=%08x", req
->access
);
2036 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
2037 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
2038 dump_varargs_unicode_str( ", name=", cur_size
);
2041 static void dump_open_mapping_reply( const struct open_mapping_reply
*req
)
2043 fprintf( stderr
, " handle=%04x", req
->handle
);
2046 static void dump_get_mapping_info_request( const struct get_mapping_info_request
*req
)
2048 fprintf( stderr
, " handle=%04x", req
->handle
);
2049 fprintf( stderr
, ", access=%08x", req
->access
);
2052 static void dump_get_mapping_info_reply( const struct get_mapping_info_reply
*req
)
2054 dump_uint64( " size=", &req
->size
);
2055 fprintf( stderr
, ", protect=%d", req
->protect
);
2056 fprintf( stderr
, ", header_size=%d", req
->header_size
);
2057 dump_uint64( ", base=", &req
->base
);
2058 fprintf( stderr
, ", mapping=%04x", req
->mapping
);
2059 fprintf( stderr
, ", shared_file=%04x", req
->shared_file
);
2062 static void dump_get_mapping_committed_range_request( const struct get_mapping_committed_range_request
*req
)
2064 fprintf( stderr
, " handle=%04x", req
->handle
);
2065 dump_uint64( ", offset=", &req
->offset
);
2068 static void dump_get_mapping_committed_range_reply( const struct get_mapping_committed_range_reply
*req
)
2070 dump_uint64( " size=", &req
->size
);
2071 fprintf( stderr
, ", committed=%d", req
->committed
);
2074 static void dump_add_mapping_committed_range_request( const struct add_mapping_committed_range_request
*req
)
2076 fprintf( stderr
, " handle=%04x", req
->handle
);
2077 dump_uint64( ", offset=", &req
->offset
);
2078 dump_uint64( ", size=", &req
->size
);
2081 static void dump_create_snapshot_request( const struct create_snapshot_request
*req
)
2083 fprintf( stderr
, " attributes=%08x", req
->attributes
);
2084 fprintf( stderr
, ", flags=%08x", req
->flags
);
2087 static void dump_create_snapshot_reply( const struct create_snapshot_reply
*req
)
2089 fprintf( stderr
, " handle=%04x", req
->handle
);
2092 static void dump_next_process_request( const struct next_process_request
*req
)
2094 fprintf( stderr
, " handle=%04x", req
->handle
);
2095 fprintf( stderr
, ", reset=%d", req
->reset
);
2098 static void dump_next_process_reply( const struct next_process_reply
*req
)
2100 fprintf( stderr
, " count=%d", req
->count
);
2101 fprintf( stderr
, ", pid=%04x", req
->pid
);
2102 fprintf( stderr
, ", ppid=%04x", req
->ppid
);
2103 fprintf( stderr
, ", threads=%d", req
->threads
);
2104 fprintf( stderr
, ", priority=%d", req
->priority
);
2105 fprintf( stderr
, ", handles=%d", req
->handles
);
2106 fprintf( stderr
, ", unix_pid=%d", req
->unix_pid
);
2107 dump_varargs_unicode_str( ", filename=", cur_size
);
2110 static void dump_next_thread_request( const struct next_thread_request
*req
)
2112 fprintf( stderr
, " handle=%04x", req
->handle
);
2113 fprintf( stderr
, ", reset=%d", req
->reset
);
2116 static void dump_next_thread_reply( const struct next_thread_reply
*req
)
2118 fprintf( stderr
, " count=%d", req
->count
);
2119 fprintf( stderr
, ", pid=%04x", req
->pid
);
2120 fprintf( stderr
, ", tid=%04x", req
->tid
);
2121 fprintf( stderr
, ", base_pri=%d", req
->base_pri
);
2122 fprintf( stderr
, ", delta_pri=%d", req
->delta_pri
);
2125 static void dump_wait_debug_event_request( const struct wait_debug_event_request
*req
)
2127 fprintf( stderr
, " get_handle=%d", req
->get_handle
);
2130 static void dump_wait_debug_event_reply( const struct wait_debug_event_reply
*req
)
2132 fprintf( stderr
, " pid=%04x", req
->pid
);
2133 fprintf( stderr
, ", tid=%04x", req
->tid
);
2134 fprintf( stderr
, ", wait=%04x", req
->wait
);
2135 dump_varargs_debug_event( ", event=", cur_size
);
2138 static void dump_queue_exception_event_request( const struct queue_exception_event_request
*req
)
2140 fprintf( stderr
, " first=%d", req
->first
);
2141 fprintf( stderr
, ", code=%08x", req
->code
);
2142 fprintf( stderr
, ", flags=%08x", req
->flags
);
2143 dump_uint64( ", record=", &req
->record
);
2144 dump_uint64( ", address=", &req
->address
);
2145 fprintf( stderr
, ", len=%u", req
->len
);
2146 dump_varargs_uints64( ", params=", min(cur_size
,req
->len
) );
2147 dump_varargs_context( ", context=", cur_size
);
2150 static void dump_queue_exception_event_reply( const struct queue_exception_event_reply
*req
)
2152 fprintf( stderr
, " handle=%04x", req
->handle
);
2155 static void dump_get_exception_status_request( const struct get_exception_status_request
*req
)
2157 fprintf( stderr
, " handle=%04x", req
->handle
);
2160 static void dump_get_exception_status_reply( const struct get_exception_status_reply
*req
)
2162 dump_varargs_context( " context=", cur_size
);
2165 static void dump_output_debug_string_request( const struct output_debug_string_request
*req
)
2167 fprintf( stderr
, " length=%u", req
->length
);
2168 dump_uint64( ", string=", &req
->string
);
2171 static void dump_continue_debug_event_request( const struct continue_debug_event_request
*req
)
2173 fprintf( stderr
, " pid=%04x", req
->pid
);
2174 fprintf( stderr
, ", tid=%04x", req
->tid
);
2175 fprintf( stderr
, ", status=%d", req
->status
);
2178 static void dump_debug_process_request( const struct debug_process_request
*req
)
2180 fprintf( stderr
, " pid=%04x", req
->pid
);
2181 fprintf( stderr
, ", attach=%d", req
->attach
);
2184 static void dump_debug_break_request( const struct debug_break_request
*req
)
2186 fprintf( stderr
, " handle=%04x", req
->handle
);
2189 static void dump_debug_break_reply( const struct debug_break_reply
*req
)
2191 fprintf( stderr
, " self=%d", req
->self
);
2194 static void dump_set_debugger_kill_on_exit_request( const struct set_debugger_kill_on_exit_request
*req
)
2196 fprintf( stderr
, " kill_on_exit=%d", req
->kill_on_exit
);
2199 static void dump_read_process_memory_request( const struct read_process_memory_request
*req
)
2201 fprintf( stderr
, " handle=%04x", req
->handle
);
2202 dump_uint64( ", addr=", &req
->addr
);
2205 static void dump_read_process_memory_reply( const struct read_process_memory_reply
*req
)
2207 dump_varargs_bytes( " data=", cur_size
);
2210 static void dump_write_process_memory_request( const struct write_process_memory_request
*req
)
2212 fprintf( stderr
, " handle=%04x", req
->handle
);
2213 dump_uint64( ", addr=", &req
->addr
);
2214 dump_varargs_bytes( ", data=", cur_size
);
2217 static void dump_create_key_request( const struct create_key_request
*req
)
2219 fprintf( stderr
, " parent=%04x", req
->parent
);
2220 fprintf( stderr
, ", access=%08x", req
->access
);
2221 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
2222 fprintf( stderr
, ", options=%08x", req
->options
);
2223 fprintf( stderr
, ", namelen=%u", req
->namelen
);
2224 dump_varargs_unicode_str( ", name=", min(cur_size
,req
->namelen
) );
2225 dump_varargs_unicode_str( ", class=", cur_size
);
2228 static void dump_create_key_reply( const struct create_key_reply
*req
)
2230 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2231 fprintf( stderr
, ", created=%d", req
->created
);
2234 static void dump_open_key_request( const struct open_key_request
*req
)
2236 fprintf( stderr
, " parent=%04x", req
->parent
);
2237 fprintf( stderr
, ", access=%08x", req
->access
);
2238 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
2239 dump_varargs_unicode_str( ", name=", cur_size
);
2242 static void dump_open_key_reply( const struct open_key_reply
*req
)
2244 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2247 static void dump_delete_key_request( const struct delete_key_request
*req
)
2249 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2252 static void dump_flush_key_request( const struct flush_key_request
*req
)
2254 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2257 static void dump_enum_key_request( const struct enum_key_request
*req
)
2259 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2260 fprintf( stderr
, ", index=%d", req
->index
);
2261 fprintf( stderr
, ", info_class=%d", req
->info_class
);
2264 static void dump_enum_key_reply( const struct enum_key_reply
*req
)
2266 fprintf( stderr
, " subkeys=%d", req
->subkeys
);
2267 fprintf( stderr
, ", max_subkey=%d", req
->max_subkey
);
2268 fprintf( stderr
, ", max_class=%d", req
->max_class
);
2269 fprintf( stderr
, ", values=%d", req
->values
);
2270 fprintf( stderr
, ", max_value=%d", req
->max_value
);
2271 fprintf( stderr
, ", max_data=%d", req
->max_data
);
2272 dump_timeout( ", modif=", &req
->modif
);
2273 fprintf( stderr
, ", total=%u", req
->total
);
2274 fprintf( stderr
, ", namelen=%u", req
->namelen
);
2275 dump_varargs_unicode_str( ", name=", min(cur_size
,req
->namelen
) );
2276 dump_varargs_unicode_str( ", class=", cur_size
);
2279 static void dump_set_key_value_request( const struct set_key_value_request
*req
)
2281 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2282 fprintf( stderr
, ", type=%d", req
->type
);
2283 fprintf( stderr
, ", namelen=%u", req
->namelen
);
2284 dump_varargs_unicode_str( ", name=", min(cur_size
,req
->namelen
) );
2285 dump_varargs_bytes( ", data=", cur_size
);
2288 static void dump_get_key_value_request( const struct get_key_value_request
*req
)
2290 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2291 dump_varargs_unicode_str( ", name=", cur_size
);
2294 static void dump_get_key_value_reply( const struct get_key_value_reply
*req
)
2296 fprintf( stderr
, " type=%d", req
->type
);
2297 fprintf( stderr
, ", total=%u", req
->total
);
2298 dump_varargs_bytes( ", data=", cur_size
);
2301 static void dump_enum_key_value_request( const struct enum_key_value_request
*req
)
2303 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2304 fprintf( stderr
, ", index=%d", req
->index
);
2305 fprintf( stderr
, ", info_class=%d", req
->info_class
);
2308 static void dump_enum_key_value_reply( const struct enum_key_value_reply
*req
)
2310 fprintf( stderr
, " type=%d", req
->type
);
2311 fprintf( stderr
, ", total=%u", req
->total
);
2312 fprintf( stderr
, ", namelen=%u", req
->namelen
);
2313 dump_varargs_unicode_str( ", name=", min(cur_size
,req
->namelen
) );
2314 dump_varargs_bytes( ", data=", cur_size
);
2317 static void dump_delete_key_value_request( const struct delete_key_value_request
*req
)
2319 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2320 dump_varargs_unicode_str( ", name=", cur_size
);
2323 static void dump_load_registry_request( const struct load_registry_request
*req
)
2325 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2326 fprintf( stderr
, ", file=%04x", req
->file
);
2327 dump_varargs_unicode_str( ", name=", cur_size
);
2330 static void dump_unload_registry_request( const struct unload_registry_request
*req
)
2332 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2335 static void dump_save_registry_request( const struct save_registry_request
*req
)
2337 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2338 fprintf( stderr
, ", file=%04x", req
->file
);
2341 static void dump_set_registry_notification_request( const struct set_registry_notification_request
*req
)
2343 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2344 fprintf( stderr
, ", event=%04x", req
->event
);
2345 fprintf( stderr
, ", subtree=%d", req
->subtree
);
2346 fprintf( stderr
, ", filter=%08x", req
->filter
);
2349 static void dump_create_timer_request( const struct create_timer_request
*req
)
2351 fprintf( stderr
, " access=%08x", req
->access
);
2352 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
2353 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
2354 fprintf( stderr
, ", manual=%d", req
->manual
);
2355 dump_varargs_unicode_str( ", name=", cur_size
);
2358 static void dump_create_timer_reply( const struct create_timer_reply
*req
)
2360 fprintf( stderr
, " handle=%04x", req
->handle
);
2363 static void dump_open_timer_request( const struct open_timer_request
*req
)
2365 fprintf( stderr
, " access=%08x", req
->access
);
2366 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
2367 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
2368 dump_varargs_unicode_str( ", name=", cur_size
);
2371 static void dump_open_timer_reply( const struct open_timer_reply
*req
)
2373 fprintf( stderr
, " handle=%04x", req
->handle
);
2376 static void dump_set_timer_request( const struct set_timer_request
*req
)
2378 fprintf( stderr
, " handle=%04x", req
->handle
);
2379 dump_timeout( ", expire=", &req
->expire
);
2380 dump_uint64( ", callback=", &req
->callback
);
2381 dump_uint64( ", arg=", &req
->arg
);
2382 fprintf( stderr
, ", period=%d", req
->period
);
2385 static void dump_set_timer_reply( const struct set_timer_reply
*req
)
2387 fprintf( stderr
, " signaled=%d", req
->signaled
);
2390 static void dump_cancel_timer_request( const struct cancel_timer_request
*req
)
2392 fprintf( stderr
, " handle=%04x", req
->handle
);
2395 static void dump_cancel_timer_reply( const struct cancel_timer_reply
*req
)
2397 fprintf( stderr
, " signaled=%d", req
->signaled
);
2400 static void dump_get_timer_info_request( const struct get_timer_info_request
*req
)
2402 fprintf( stderr
, " handle=%04x", req
->handle
);
2405 static void dump_get_timer_info_reply( const struct get_timer_info_reply
*req
)
2407 dump_timeout( " when=", &req
->when
);
2408 fprintf( stderr
, ", signaled=%d", req
->signaled
);
2411 static void dump_get_thread_context_request( const struct get_thread_context_request
*req
)
2413 fprintf( stderr
, " handle=%04x", req
->handle
);
2414 fprintf( stderr
, ", flags=%08x", req
->flags
);
2415 fprintf( stderr
, ", suspend=%d", req
->suspend
);
2418 static void dump_get_thread_context_reply( const struct get_thread_context_reply
*req
)
2420 fprintf( stderr
, " self=%d", req
->self
);
2421 dump_varargs_context( ", context=", cur_size
);
2424 static void dump_set_thread_context_request( const struct set_thread_context_request
*req
)
2426 fprintf( stderr
, " handle=%04x", req
->handle
);
2427 fprintf( stderr
, ", suspend=%d", req
->suspend
);
2428 dump_varargs_context( ", context=", cur_size
);
2431 static void dump_set_thread_context_reply( const struct set_thread_context_reply
*req
)
2433 fprintf( stderr
, " self=%d", req
->self
);
2436 static void dump_get_selector_entry_request( const struct get_selector_entry_request
*req
)
2438 fprintf( stderr
, " handle=%04x", req
->handle
);
2439 fprintf( stderr
, ", entry=%d", req
->entry
);
2442 static void dump_get_selector_entry_reply( const struct get_selector_entry_reply
*req
)
2444 fprintf( stderr
, " base=%08x", req
->base
);
2445 fprintf( stderr
, ", limit=%08x", req
->limit
);
2446 fprintf( stderr
, ", flags=%02x", req
->flags
);
2449 static void dump_add_atom_request( const struct add_atom_request
*req
)
2451 fprintf( stderr
, " table=%04x", req
->table
);
2452 dump_varargs_unicode_str( ", name=", cur_size
);
2455 static void dump_add_atom_reply( const struct add_atom_reply
*req
)
2457 fprintf( stderr
, " atom=%04x", req
->atom
);
2460 static void dump_delete_atom_request( const struct delete_atom_request
*req
)
2462 fprintf( stderr
, " table=%04x", req
->table
);
2463 fprintf( stderr
, ", atom=%04x", req
->atom
);
2466 static void dump_find_atom_request( const struct find_atom_request
*req
)
2468 fprintf( stderr
, " table=%04x", req
->table
);
2469 dump_varargs_unicode_str( ", name=", cur_size
);
2472 static void dump_find_atom_reply( const struct find_atom_reply
*req
)
2474 fprintf( stderr
, " atom=%04x", req
->atom
);
2477 static void dump_get_atom_information_request( const struct get_atom_information_request
*req
)
2479 fprintf( stderr
, " table=%04x", req
->table
);
2480 fprintf( stderr
, ", atom=%04x", req
->atom
);
2483 static void dump_get_atom_information_reply( const struct get_atom_information_reply
*req
)
2485 fprintf( stderr
, " count=%d", req
->count
);
2486 fprintf( stderr
, ", pinned=%d", req
->pinned
);
2487 fprintf( stderr
, ", total=%u", req
->total
);
2488 dump_varargs_unicode_str( ", name=", cur_size
);
2491 static void dump_set_atom_information_request( const struct set_atom_information_request
*req
)
2493 fprintf( stderr
, " table=%04x", req
->table
);
2494 fprintf( stderr
, ", atom=%04x", req
->atom
);
2495 fprintf( stderr
, ", pinned=%d", req
->pinned
);
2498 static void dump_empty_atom_table_request( const struct empty_atom_table_request
*req
)
2500 fprintf( stderr
, " table=%04x", req
->table
);
2501 fprintf( stderr
, ", if_pinned=%d", req
->if_pinned
);
2504 static void dump_init_atom_table_request( const struct init_atom_table_request
*req
)
2506 fprintf( stderr
, " entries=%d", req
->entries
);
2509 static void dump_init_atom_table_reply( const struct init_atom_table_reply
*req
)
2511 fprintf( stderr
, " table=%04x", req
->table
);
2514 static void dump_get_msg_queue_request( const struct get_msg_queue_request
*req
)
2518 static void dump_get_msg_queue_reply( const struct get_msg_queue_reply
*req
)
2520 fprintf( stderr
, " handle=%04x", req
->handle
);
2523 static void dump_set_queue_fd_request( const struct set_queue_fd_request
*req
)
2525 fprintf( stderr
, " handle=%04x", req
->handle
);
2528 static void dump_set_queue_mask_request( const struct set_queue_mask_request
*req
)
2530 fprintf( stderr
, " wake_mask=%08x", req
->wake_mask
);
2531 fprintf( stderr
, ", changed_mask=%08x", req
->changed_mask
);
2532 fprintf( stderr
, ", skip_wait=%d", req
->skip_wait
);
2535 static void dump_set_queue_mask_reply( const struct set_queue_mask_reply
*req
)
2537 fprintf( stderr
, " wake_bits=%08x", req
->wake_bits
);
2538 fprintf( stderr
, ", changed_bits=%08x", req
->changed_bits
);
2541 static void dump_get_queue_status_request( const struct get_queue_status_request
*req
)
2543 fprintf( stderr
, " clear=%d", req
->clear
);
2546 static void dump_get_queue_status_reply( const struct get_queue_status_reply
*req
)
2548 fprintf( stderr
, " wake_bits=%08x", req
->wake_bits
);
2549 fprintf( stderr
, ", changed_bits=%08x", req
->changed_bits
);
2552 static void dump_get_process_idle_event_request( const struct get_process_idle_event_request
*req
)
2554 fprintf( stderr
, " handle=%04x", req
->handle
);
2557 static void dump_get_process_idle_event_reply( const struct get_process_idle_event_reply
*req
)
2559 fprintf( stderr
, " event=%04x", req
->event
);
2562 static void dump_send_message_request( const struct send_message_request
*req
)
2564 fprintf( stderr
, " id=%04x", req
->id
);
2565 fprintf( stderr
, ", type=%d", req
->type
);
2566 fprintf( stderr
, ", flags=%d", req
->flags
);
2567 fprintf( stderr
, ", win=%08x", req
->win
);
2568 fprintf( stderr
, ", msg=%08x", req
->msg
);
2569 dump_uint64( ", wparam=", &req
->wparam
);
2570 dump_uint64( ", lparam=", &req
->lparam
);
2571 dump_timeout( ", timeout=", &req
->timeout
);
2572 dump_varargs_message_data( ", data=", cur_size
);
2575 static void dump_post_quit_message_request( const struct post_quit_message_request
*req
)
2577 fprintf( stderr
, " exit_code=%d", req
->exit_code
);
2580 static void dump_send_hardware_message_request( const struct send_hardware_message_request
*req
)
2582 fprintf( stderr
, " win=%08x", req
->win
);
2583 dump_hw_input( ", input=", &req
->input
);
2584 fprintf( stderr
, ", flags=%08x", req
->flags
);
2587 static void dump_send_hardware_message_reply( const struct send_hardware_message_reply
*req
)
2589 fprintf( stderr
, " wait=%d", req
->wait
);
2590 fprintf( stderr
, ", prev_x=%d", req
->prev_x
);
2591 fprintf( stderr
, ", prev_y=%d", req
->prev_y
);
2592 fprintf( stderr
, ", new_x=%d", req
->new_x
);
2593 fprintf( stderr
, ", new_y=%d", req
->new_y
);
2594 dump_varargs_bytes( ", keystate=", cur_size
);
2597 static void dump_get_message_request( const struct get_message_request
*req
)
2599 fprintf( stderr
, " flags=%08x", req
->flags
);
2600 fprintf( stderr
, ", get_win=%08x", req
->get_win
);
2601 fprintf( stderr
, ", get_first=%08x", req
->get_first
);
2602 fprintf( stderr
, ", get_last=%08x", req
->get_last
);
2603 fprintf( stderr
, ", hw_id=%08x", req
->hw_id
);
2604 fprintf( stderr
, ", wake_mask=%08x", req
->wake_mask
);
2605 fprintf( stderr
, ", changed_mask=%08x", req
->changed_mask
);
2608 static void dump_get_message_reply( const struct get_message_reply
*req
)
2610 fprintf( stderr
, " win=%08x", req
->win
);
2611 fprintf( stderr
, ", msg=%08x", req
->msg
);
2612 dump_uint64( ", wparam=", &req
->wparam
);
2613 dump_uint64( ", lparam=", &req
->lparam
);
2614 fprintf( stderr
, ", type=%d", req
->type
);
2615 fprintf( stderr
, ", time=%08x", req
->time
);
2616 fprintf( stderr
, ", active_hooks=%08x", req
->active_hooks
);
2617 fprintf( stderr
, ", total=%u", req
->total
);
2618 dump_varargs_message_data( ", data=", cur_size
);
2621 static void dump_reply_message_request( const struct reply_message_request
*req
)
2623 fprintf( stderr
, " remove=%d", req
->remove
);
2624 dump_uint64( ", result=", &req
->result
);
2625 dump_varargs_bytes( ", data=", cur_size
);
2628 static void dump_accept_hardware_message_request( const struct accept_hardware_message_request
*req
)
2630 fprintf( stderr
, " hw_id=%08x", req
->hw_id
);
2631 fprintf( stderr
, ", remove=%d", req
->remove
);
2632 fprintf( stderr
, ", new_win=%08x", req
->new_win
);
2635 static void dump_get_message_reply_request( const struct get_message_reply_request
*req
)
2637 fprintf( stderr
, " cancel=%d", req
->cancel
);
2640 static void dump_get_message_reply_reply( const struct get_message_reply_reply
*req
)
2642 dump_uint64( " result=", &req
->result
);
2643 dump_varargs_bytes( ", data=", cur_size
);
2646 static void dump_set_win_timer_request( const struct set_win_timer_request
*req
)
2648 fprintf( stderr
, " win=%08x", req
->win
);
2649 fprintf( stderr
, ", msg=%08x", req
->msg
);
2650 fprintf( stderr
, ", rate=%08x", req
->rate
);
2651 dump_uint64( ", id=", &req
->id
);
2652 dump_uint64( ", lparam=", &req
->lparam
);
2655 static void dump_set_win_timer_reply( const struct set_win_timer_reply
*req
)
2657 dump_uint64( " id=", &req
->id
);
2660 static void dump_kill_win_timer_request( const struct kill_win_timer_request
*req
)
2662 fprintf( stderr
, " win=%08x", req
->win
);
2663 dump_uint64( ", id=", &req
->id
);
2664 fprintf( stderr
, ", msg=%08x", req
->msg
);
2667 static void dump_is_window_hung_request( const struct is_window_hung_request
*req
)
2669 fprintf( stderr
, " win=%08x", req
->win
);
2672 static void dump_is_window_hung_reply( const struct is_window_hung_reply
*req
)
2674 fprintf( stderr
, " is_hung=%d", req
->is_hung
);
2677 static void dump_get_serial_info_request( const struct get_serial_info_request
*req
)
2679 fprintf( stderr
, " handle=%04x", req
->handle
);
2682 static void dump_get_serial_info_reply( const struct get_serial_info_reply
*req
)
2684 fprintf( stderr
, " readinterval=%08x", req
->readinterval
);
2685 fprintf( stderr
, ", readconst=%08x", req
->readconst
);
2686 fprintf( stderr
, ", readmult=%08x", req
->readmult
);
2687 fprintf( stderr
, ", writeconst=%08x", req
->writeconst
);
2688 fprintf( stderr
, ", writemult=%08x", req
->writemult
);
2689 fprintf( stderr
, ", eventmask=%08x", req
->eventmask
);
2690 fprintf( stderr
, ", cookie=%08x", req
->cookie
);
2693 static void dump_set_serial_info_request( const struct set_serial_info_request
*req
)
2695 fprintf( stderr
, " handle=%04x", req
->handle
);
2696 fprintf( stderr
, ", flags=%d", req
->flags
);
2697 fprintf( stderr
, ", readinterval=%08x", req
->readinterval
);
2698 fprintf( stderr
, ", readconst=%08x", req
->readconst
);
2699 fprintf( stderr
, ", readmult=%08x", req
->readmult
);
2700 fprintf( stderr
, ", writeconst=%08x", req
->writeconst
);
2701 fprintf( stderr
, ", writemult=%08x", req
->writemult
);
2702 fprintf( stderr
, ", eventmask=%08x", req
->eventmask
);
2705 static void dump_register_async_request( const struct register_async_request
*req
)
2707 fprintf( stderr
, " type=%d", req
->type
);
2708 dump_async_data( ", async=", &req
->async
);
2709 fprintf( stderr
, ", count=%d", req
->count
);
2712 static void dump_cancel_async_request( const struct cancel_async_request
*req
)
2714 fprintf( stderr
, " handle=%04x", req
->handle
);
2715 dump_uint64( ", iosb=", &req
->iosb
);
2716 fprintf( stderr
, ", only_thread=%d", req
->only_thread
);
2719 static void dump_ioctl_request( const struct ioctl_request
*req
)
2721 dump_ioctl_code( " code=", &req
->code
);
2722 dump_async_data( ", async=", &req
->async
);
2723 fprintf( stderr
, ", blocking=%d", req
->blocking
);
2724 dump_varargs_bytes( ", in_data=", cur_size
);
2727 static void dump_ioctl_reply( const struct ioctl_reply
*req
)
2729 fprintf( stderr
, " wait=%04x", req
->wait
);
2730 fprintf( stderr
, ", options=%08x", req
->options
);
2731 dump_varargs_bytes( ", out_data=", cur_size
);
2734 static void dump_get_ioctl_result_request( const struct get_ioctl_result_request
*req
)
2736 fprintf( stderr
, " handle=%04x", req
->handle
);
2737 dump_uint64( ", user_arg=", &req
->user_arg
);
2740 static void dump_get_ioctl_result_reply( const struct get_ioctl_result_reply
*req
)
2742 dump_varargs_bytes( " out_data=", cur_size
);
2745 static void dump_create_named_pipe_request( const struct create_named_pipe_request
*req
)
2747 fprintf( stderr
, " access=%08x", req
->access
);
2748 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
2749 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
2750 fprintf( stderr
, ", options=%08x", req
->options
);
2751 fprintf( stderr
, ", sharing=%08x", req
->sharing
);
2752 fprintf( stderr
, ", maxinstances=%08x", req
->maxinstances
);
2753 fprintf( stderr
, ", outsize=%08x", req
->outsize
);
2754 fprintf( stderr
, ", insize=%08x", req
->insize
);
2755 dump_timeout( ", timeout=", &req
->timeout
);
2756 fprintf( stderr
, ", flags=%08x", req
->flags
);
2757 dump_varargs_unicode_str( ", name=", cur_size
);
2760 static void dump_create_named_pipe_reply( const struct create_named_pipe_reply
*req
)
2762 fprintf( stderr
, " handle=%04x", req
->handle
);
2765 static void dump_get_named_pipe_info_request( const struct get_named_pipe_info_request
*req
)
2767 fprintf( stderr
, " handle=%04x", req
->handle
);
2770 static void dump_get_named_pipe_info_reply( const struct get_named_pipe_info_reply
*req
)
2772 fprintf( stderr
, " flags=%08x", req
->flags
);
2773 fprintf( stderr
, ", sharing=%08x", req
->sharing
);
2774 fprintf( stderr
, ", maxinstances=%08x", req
->maxinstances
);
2775 fprintf( stderr
, ", instances=%08x", req
->instances
);
2776 fprintf( stderr
, ", outsize=%08x", req
->outsize
);
2777 fprintf( stderr
, ", insize=%08x", req
->insize
);
2780 static void dump_create_window_request( const struct create_window_request
*req
)
2782 fprintf( stderr
, " parent=%08x", req
->parent
);
2783 fprintf( stderr
, ", owner=%08x", req
->owner
);
2784 fprintf( stderr
, ", atom=%04x", req
->atom
);
2785 dump_uint64( ", instance=", &req
->instance
);
2786 dump_varargs_unicode_str( ", class=", cur_size
);
2789 static void dump_create_window_reply( const struct create_window_reply
*req
)
2791 fprintf( stderr
, " handle=%08x", req
->handle
);
2792 fprintf( stderr
, ", parent=%08x", req
->parent
);
2793 fprintf( stderr
, ", owner=%08x", req
->owner
);
2794 fprintf( stderr
, ", extra=%d", req
->extra
);
2795 dump_uint64( ", class_ptr=", &req
->class_ptr
);
2798 static void dump_destroy_window_request( const struct destroy_window_request
*req
)
2800 fprintf( stderr
, " handle=%08x", req
->handle
);
2803 static void dump_get_desktop_window_request( const struct get_desktop_window_request
*req
)
2805 fprintf( stderr
, " force=%d", req
->force
);
2808 static void dump_get_desktop_window_reply( const struct get_desktop_window_reply
*req
)
2810 fprintf( stderr
, " top_window=%08x", req
->top_window
);
2811 fprintf( stderr
, ", msg_window=%08x", req
->msg_window
);
2814 static void dump_set_window_owner_request( const struct set_window_owner_request
*req
)
2816 fprintf( stderr
, " handle=%08x", req
->handle
);
2817 fprintf( stderr
, ", owner=%08x", req
->owner
);
2820 static void dump_set_window_owner_reply( const struct set_window_owner_reply
*req
)
2822 fprintf( stderr
, " full_owner=%08x", req
->full_owner
);
2823 fprintf( stderr
, ", prev_owner=%08x", req
->prev_owner
);
2826 static void dump_get_window_info_request( const struct get_window_info_request
*req
)
2828 fprintf( stderr
, " handle=%08x", req
->handle
);
2831 static void dump_get_window_info_reply( const struct get_window_info_reply
*req
)
2833 fprintf( stderr
, " full_handle=%08x", req
->full_handle
);
2834 fprintf( stderr
, ", last_active=%08x", req
->last_active
);
2835 fprintf( stderr
, ", pid=%04x", req
->pid
);
2836 fprintf( stderr
, ", tid=%04x", req
->tid
);
2837 fprintf( stderr
, ", atom=%04x", req
->atom
);
2838 fprintf( stderr
, ", is_unicode=%d", req
->is_unicode
);
2841 static void dump_set_window_info_request( const struct set_window_info_request
*req
)
2843 fprintf( stderr
, " flags=%04x", req
->flags
);
2844 fprintf( stderr
, ", is_unicode=%d", req
->is_unicode
);
2845 fprintf( stderr
, ", handle=%08x", req
->handle
);
2846 fprintf( stderr
, ", style=%08x", req
->style
);
2847 fprintf( stderr
, ", ex_style=%08x", req
->ex_style
);
2848 fprintf( stderr
, ", id=%08x", req
->id
);
2849 dump_uint64( ", instance=", &req
->instance
);
2850 dump_uint64( ", user_data=", &req
->user_data
);
2851 fprintf( stderr
, ", extra_offset=%d", req
->extra_offset
);
2852 fprintf( stderr
, ", extra_size=%u", req
->extra_size
);
2853 dump_uint64( ", extra_value=", &req
->extra_value
);
2856 static void dump_set_window_info_reply( const struct set_window_info_reply
*req
)
2858 fprintf( stderr
, " old_style=%08x", req
->old_style
);
2859 fprintf( stderr
, ", old_ex_style=%08x", req
->old_ex_style
);
2860 dump_uint64( ", old_instance=", &req
->old_instance
);
2861 dump_uint64( ", old_user_data=", &req
->old_user_data
);
2862 dump_uint64( ", old_extra_value=", &req
->old_extra_value
);
2863 fprintf( stderr
, ", old_id=%08x", req
->old_id
);
2866 static void dump_set_parent_request( const struct set_parent_request
*req
)
2868 fprintf( stderr
, " handle=%08x", req
->handle
);
2869 fprintf( stderr
, ", parent=%08x", req
->parent
);
2872 static void dump_set_parent_reply( const struct set_parent_reply
*req
)
2874 fprintf( stderr
, " old_parent=%08x", req
->old_parent
);
2875 fprintf( stderr
, ", full_parent=%08x", req
->full_parent
);
2878 static void dump_get_window_parents_request( const struct get_window_parents_request
*req
)
2880 fprintf( stderr
, " handle=%08x", req
->handle
);
2883 static void dump_get_window_parents_reply( const struct get_window_parents_reply
*req
)
2885 fprintf( stderr
, " count=%d", req
->count
);
2886 dump_varargs_user_handles( ", parents=", cur_size
);
2889 static void dump_get_window_children_request( const struct get_window_children_request
*req
)
2891 fprintf( stderr
, " desktop=%04x", req
->desktop
);
2892 fprintf( stderr
, ", parent=%08x", req
->parent
);
2893 fprintf( stderr
, ", atom=%04x", req
->atom
);
2894 fprintf( stderr
, ", tid=%04x", req
->tid
);
2895 dump_varargs_unicode_str( ", class=", cur_size
);
2898 static void dump_get_window_children_reply( const struct get_window_children_reply
*req
)
2900 fprintf( stderr
, " count=%d", req
->count
);
2901 dump_varargs_user_handles( ", children=", cur_size
);
2904 static void dump_get_window_children_from_point_request( const struct get_window_children_from_point_request
*req
)
2906 fprintf( stderr
, " parent=%08x", req
->parent
);
2907 fprintf( stderr
, ", x=%d", req
->x
);
2908 fprintf( stderr
, ", y=%d", req
->y
);
2911 static void dump_get_window_children_from_point_reply( const struct get_window_children_from_point_reply
*req
)
2913 fprintf( stderr
, " count=%d", req
->count
);
2914 dump_varargs_user_handles( ", children=", cur_size
);
2917 static void dump_get_window_tree_request( const struct get_window_tree_request
*req
)
2919 fprintf( stderr
, " handle=%08x", req
->handle
);
2922 static void dump_get_window_tree_reply( const struct get_window_tree_reply
*req
)
2924 fprintf( stderr
, " parent=%08x", req
->parent
);
2925 fprintf( stderr
, ", owner=%08x", req
->owner
);
2926 fprintf( stderr
, ", next_sibling=%08x", req
->next_sibling
);
2927 fprintf( stderr
, ", prev_sibling=%08x", req
->prev_sibling
);
2928 fprintf( stderr
, ", first_sibling=%08x", req
->first_sibling
);
2929 fprintf( stderr
, ", last_sibling=%08x", req
->last_sibling
);
2930 fprintf( stderr
, ", first_child=%08x", req
->first_child
);
2931 fprintf( stderr
, ", last_child=%08x", req
->last_child
);
2934 static void dump_set_window_pos_request( const struct set_window_pos_request
*req
)
2936 fprintf( stderr
, " swp_flags=%04x", req
->swp_flags
);
2937 fprintf( stderr
, ", paint_flags=%04x", req
->paint_flags
);
2938 fprintf( stderr
, ", handle=%08x", req
->handle
);
2939 fprintf( stderr
, ", previous=%08x", req
->previous
);
2940 dump_rectangle( ", window=", &req
->window
);
2941 dump_rectangle( ", client=", &req
->client
);
2942 dump_varargs_rectangles( ", valid=", cur_size
);
2945 static void dump_set_window_pos_reply( const struct set_window_pos_reply
*req
)
2947 fprintf( stderr
, " new_style=%08x", req
->new_style
);
2948 fprintf( stderr
, ", new_ex_style=%08x", req
->new_ex_style
);
2949 fprintf( stderr
, ", surface_win=%08x", req
->surface_win
);
2952 static void dump_get_window_rectangles_request( const struct get_window_rectangles_request
*req
)
2954 fprintf( stderr
, " handle=%08x", req
->handle
);
2955 fprintf( stderr
, ", relative=%d", req
->relative
);
2958 static void dump_get_window_rectangles_reply( const struct get_window_rectangles_reply
*req
)
2960 dump_rectangle( " window=", &req
->window
);
2961 dump_rectangle( ", visible=", &req
->visible
);
2962 dump_rectangle( ", client=", &req
->client
);
2965 static void dump_get_window_text_request( const struct get_window_text_request
*req
)
2967 fprintf( stderr
, " handle=%08x", req
->handle
);
2970 static void dump_get_window_text_reply( const struct get_window_text_reply
*req
)
2972 dump_varargs_unicode_str( " text=", cur_size
);
2975 static void dump_set_window_text_request( const struct set_window_text_request
*req
)
2977 fprintf( stderr
, " handle=%08x", req
->handle
);
2978 dump_varargs_unicode_str( ", text=", cur_size
);
2981 static void dump_get_windows_offset_request( const struct get_windows_offset_request
*req
)
2983 fprintf( stderr
, " from=%08x", req
->from
);
2984 fprintf( stderr
, ", to=%08x", req
->to
);
2987 static void dump_get_windows_offset_reply( const struct get_windows_offset_reply
*req
)
2989 fprintf( stderr
, " x=%d", req
->x
);
2990 fprintf( stderr
, ", y=%d", req
->y
);
2991 fprintf( stderr
, ", mirror=%d", req
->mirror
);
2994 static void dump_get_visible_region_request( const struct get_visible_region_request
*req
)
2996 fprintf( stderr
, " window=%08x", req
->window
);
2997 fprintf( stderr
, ", flags=%08x", req
->flags
);
3000 static void dump_get_visible_region_reply( const struct get_visible_region_reply
*req
)
3002 fprintf( stderr
, " top_win=%08x", req
->top_win
);
3003 dump_rectangle( ", top_rect=", &req
->top_rect
);
3004 dump_rectangle( ", win_rect=", &req
->win_rect
);
3005 fprintf( stderr
, ", paint_flags=%08x", req
->paint_flags
);
3006 fprintf( stderr
, ", total_size=%u", req
->total_size
);
3007 dump_varargs_rectangles( ", region=", cur_size
);
3010 static void dump_get_surface_region_request( const struct get_surface_region_request
*req
)
3012 fprintf( stderr
, " window=%08x", req
->window
);
3015 static void dump_get_surface_region_reply( const struct get_surface_region_reply
*req
)
3017 dump_rectangle( " visible_rect=", &req
->visible_rect
);
3018 fprintf( stderr
, ", total_size=%u", req
->total_size
);
3019 dump_varargs_rectangles( ", region=", cur_size
);
3022 static void dump_get_window_region_request( const struct get_window_region_request
*req
)
3024 fprintf( stderr
, " window=%08x", req
->window
);
3027 static void dump_get_window_region_reply( const struct get_window_region_reply
*req
)
3029 fprintf( stderr
, " total_size=%u", req
->total_size
);
3030 dump_varargs_rectangles( ", region=", cur_size
);
3033 static void dump_set_window_region_request( const struct set_window_region_request
*req
)
3035 fprintf( stderr
, " window=%08x", req
->window
);
3036 fprintf( stderr
, ", redraw=%d", req
->redraw
);
3037 dump_varargs_rectangles( ", region=", cur_size
);
3040 static void dump_get_update_region_request( const struct get_update_region_request
*req
)
3042 fprintf( stderr
, " window=%08x", req
->window
);
3043 fprintf( stderr
, ", from_child=%08x", req
->from_child
);
3044 fprintf( stderr
, ", flags=%08x", req
->flags
);
3047 static void dump_get_update_region_reply( const struct get_update_region_reply
*req
)
3049 fprintf( stderr
, " child=%08x", req
->child
);
3050 fprintf( stderr
, ", flags=%08x", req
->flags
);
3051 fprintf( stderr
, ", total_size=%u", req
->total_size
);
3052 dump_varargs_rectangles( ", region=", cur_size
);
3055 static void dump_update_window_zorder_request( const struct update_window_zorder_request
*req
)
3057 fprintf( stderr
, " window=%08x", req
->window
);
3058 dump_rectangle( ", rect=", &req
->rect
);
3061 static void dump_redraw_window_request( const struct redraw_window_request
*req
)
3063 fprintf( stderr
, " window=%08x", req
->window
);
3064 fprintf( stderr
, ", flags=%08x", req
->flags
);
3065 dump_varargs_rectangles( ", region=", cur_size
);
3068 static void dump_set_window_property_request( const struct set_window_property_request
*req
)
3070 fprintf( stderr
, " window=%08x", req
->window
);
3071 dump_uint64( ", data=", &req
->data
);
3072 fprintf( stderr
, ", atom=%04x", req
->atom
);
3073 dump_varargs_unicode_str( ", name=", cur_size
);
3076 static void dump_remove_window_property_request( const struct remove_window_property_request
*req
)
3078 fprintf( stderr
, " window=%08x", req
->window
);
3079 fprintf( stderr
, ", atom=%04x", req
->atom
);
3080 dump_varargs_unicode_str( ", name=", cur_size
);
3083 static void dump_remove_window_property_reply( const struct remove_window_property_reply
*req
)
3085 dump_uint64( " data=", &req
->data
);
3088 static void dump_get_window_property_request( const struct get_window_property_request
*req
)
3090 fprintf( stderr
, " window=%08x", req
->window
);
3091 fprintf( stderr
, ", atom=%04x", req
->atom
);
3092 dump_varargs_unicode_str( ", name=", cur_size
);
3095 static void dump_get_window_property_reply( const struct get_window_property_reply
*req
)
3097 dump_uint64( " data=", &req
->data
);
3100 static void dump_get_window_properties_request( const struct get_window_properties_request
*req
)
3102 fprintf( stderr
, " window=%08x", req
->window
);
3105 static void dump_get_window_properties_reply( const struct get_window_properties_reply
*req
)
3107 fprintf( stderr
, " total=%d", req
->total
);
3108 dump_varargs_properties( ", props=", cur_size
);
3111 static void dump_create_winstation_request( const struct create_winstation_request
*req
)
3113 fprintf( stderr
, " flags=%08x", req
->flags
);
3114 fprintf( stderr
, ", access=%08x", req
->access
);
3115 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3116 dump_varargs_unicode_str( ", name=", cur_size
);
3119 static void dump_create_winstation_reply( const struct create_winstation_reply
*req
)
3121 fprintf( stderr
, " handle=%04x", req
->handle
);
3124 static void dump_open_winstation_request( const struct open_winstation_request
*req
)
3126 fprintf( stderr
, " access=%08x", req
->access
);
3127 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3128 dump_varargs_unicode_str( ", name=", cur_size
);
3131 static void dump_open_winstation_reply( const struct open_winstation_reply
*req
)
3133 fprintf( stderr
, " handle=%04x", req
->handle
);
3136 static void dump_close_winstation_request( const struct close_winstation_request
*req
)
3138 fprintf( stderr
, " handle=%04x", req
->handle
);
3141 static void dump_get_process_winstation_request( const struct get_process_winstation_request
*req
)
3145 static void dump_get_process_winstation_reply( const struct get_process_winstation_reply
*req
)
3147 fprintf( stderr
, " handle=%04x", req
->handle
);
3150 static void dump_set_process_winstation_request( const struct set_process_winstation_request
*req
)
3152 fprintf( stderr
, " handle=%04x", req
->handle
);
3155 static void dump_enum_winstation_request( const struct enum_winstation_request
*req
)
3157 fprintf( stderr
, " index=%08x", req
->index
);
3160 static void dump_enum_winstation_reply( const struct enum_winstation_reply
*req
)
3162 fprintf( stderr
, " next=%08x", req
->next
);
3163 dump_varargs_unicode_str( ", name=", cur_size
);
3166 static void dump_create_desktop_request( const struct create_desktop_request
*req
)
3168 fprintf( stderr
, " flags=%08x", req
->flags
);
3169 fprintf( stderr
, ", access=%08x", req
->access
);
3170 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3171 dump_varargs_unicode_str( ", name=", cur_size
);
3174 static void dump_create_desktop_reply( const struct create_desktop_reply
*req
)
3176 fprintf( stderr
, " handle=%04x", req
->handle
);
3179 static void dump_open_desktop_request( const struct open_desktop_request
*req
)
3181 fprintf( stderr
, " winsta=%04x", req
->winsta
);
3182 fprintf( stderr
, ", flags=%08x", req
->flags
);
3183 fprintf( stderr
, ", access=%08x", req
->access
);
3184 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3185 dump_varargs_unicode_str( ", name=", cur_size
);
3188 static void dump_open_desktop_reply( const struct open_desktop_reply
*req
)
3190 fprintf( stderr
, " handle=%04x", req
->handle
);
3193 static void dump_close_desktop_request( const struct close_desktop_request
*req
)
3195 fprintf( stderr
, " handle=%04x", req
->handle
);
3198 static void dump_get_thread_desktop_request( const struct get_thread_desktop_request
*req
)
3200 fprintf( stderr
, " tid=%04x", req
->tid
);
3203 static void dump_get_thread_desktop_reply( const struct get_thread_desktop_reply
*req
)
3205 fprintf( stderr
, " handle=%04x", req
->handle
);
3208 static void dump_set_thread_desktop_request( const struct set_thread_desktop_request
*req
)
3210 fprintf( stderr
, " handle=%04x", req
->handle
);
3213 static void dump_enum_desktop_request( const struct enum_desktop_request
*req
)
3215 fprintf( stderr
, " winstation=%04x", req
->winstation
);
3216 fprintf( stderr
, ", index=%08x", req
->index
);
3219 static void dump_enum_desktop_reply( const struct enum_desktop_reply
*req
)
3221 fprintf( stderr
, " next=%08x", req
->next
);
3222 dump_varargs_unicode_str( ", name=", cur_size
);
3225 static void dump_set_user_object_info_request( const struct set_user_object_info_request
*req
)
3227 fprintf( stderr
, " handle=%04x", req
->handle
);
3228 fprintf( stderr
, ", flags=%08x", req
->flags
);
3229 fprintf( stderr
, ", obj_flags=%08x", req
->obj_flags
);
3232 static void dump_set_user_object_info_reply( const struct set_user_object_info_reply
*req
)
3234 fprintf( stderr
, " is_desktop=%d", req
->is_desktop
);
3235 fprintf( stderr
, ", old_obj_flags=%08x", req
->old_obj_flags
);
3236 dump_varargs_unicode_str( ", name=", cur_size
);
3239 static void dump_register_hotkey_request( const struct register_hotkey_request
*req
)
3241 fprintf( stderr
, " window=%08x", req
->window
);
3242 fprintf( stderr
, ", id=%d", req
->id
);
3243 fprintf( stderr
, ", flags=%08x", req
->flags
);
3244 fprintf( stderr
, ", vkey=%08x", req
->vkey
);
3247 static void dump_register_hotkey_reply( const struct register_hotkey_reply
*req
)
3249 fprintf( stderr
, " replaced=%d", req
->replaced
);
3250 fprintf( stderr
, ", flags=%08x", req
->flags
);
3251 fprintf( stderr
, ", vkey=%08x", req
->vkey
);
3254 static void dump_unregister_hotkey_request( const struct unregister_hotkey_request
*req
)
3256 fprintf( stderr
, " window=%08x", req
->window
);
3257 fprintf( stderr
, ", id=%d", req
->id
);
3260 static void dump_unregister_hotkey_reply( const struct unregister_hotkey_reply
*req
)
3262 fprintf( stderr
, " flags=%08x", req
->flags
);
3263 fprintf( stderr
, ", vkey=%08x", req
->vkey
);
3266 static void dump_attach_thread_input_request( const struct attach_thread_input_request
*req
)
3268 fprintf( stderr
, " tid_from=%04x", req
->tid_from
);
3269 fprintf( stderr
, ", tid_to=%04x", req
->tid_to
);
3270 fprintf( stderr
, ", attach=%d", req
->attach
);
3273 static void dump_get_thread_input_request( const struct get_thread_input_request
*req
)
3275 fprintf( stderr
, " tid=%04x", req
->tid
);
3278 static void dump_get_thread_input_reply( const struct get_thread_input_reply
*req
)
3280 fprintf( stderr
, " focus=%08x", req
->focus
);
3281 fprintf( stderr
, ", capture=%08x", req
->capture
);
3282 fprintf( stderr
, ", active=%08x", req
->active
);
3283 fprintf( stderr
, ", foreground=%08x", req
->foreground
);
3284 fprintf( stderr
, ", menu_owner=%08x", req
->menu_owner
);
3285 fprintf( stderr
, ", move_size=%08x", req
->move_size
);
3286 fprintf( stderr
, ", caret=%08x", req
->caret
);
3287 fprintf( stderr
, ", cursor=%08x", req
->cursor
);
3288 fprintf( stderr
, ", show_count=%d", req
->show_count
);
3289 dump_rectangle( ", rect=", &req
->rect
);
3292 static void dump_get_last_input_time_request( const struct get_last_input_time_request
*req
)
3296 static void dump_get_last_input_time_reply( const struct get_last_input_time_reply
*req
)
3298 fprintf( stderr
, " time=%08x", req
->time
);
3301 static void dump_get_key_state_request( const struct get_key_state_request
*req
)
3303 fprintf( stderr
, " tid=%04x", req
->tid
);
3304 fprintf( stderr
, ", key=%d", req
->key
);
3307 static void dump_get_key_state_reply( const struct get_key_state_reply
*req
)
3309 fprintf( stderr
, " state=%02x", req
->state
);
3310 dump_varargs_bytes( ", keystate=", cur_size
);
3313 static void dump_set_key_state_request( const struct set_key_state_request
*req
)
3315 fprintf( stderr
, " tid=%04x", req
->tid
);
3316 fprintf( stderr
, ", async=%d", req
->async
);
3317 dump_varargs_bytes( ", keystate=", cur_size
);
3320 static void dump_set_foreground_window_request( const struct set_foreground_window_request
*req
)
3322 fprintf( stderr
, " handle=%08x", req
->handle
);
3325 static void dump_set_foreground_window_reply( const struct set_foreground_window_reply
*req
)
3327 fprintf( stderr
, " previous=%08x", req
->previous
);
3328 fprintf( stderr
, ", send_msg_old=%d", req
->send_msg_old
);
3329 fprintf( stderr
, ", send_msg_new=%d", req
->send_msg_new
);
3332 static void dump_set_focus_window_request( const struct set_focus_window_request
*req
)
3334 fprintf( stderr
, " handle=%08x", req
->handle
);
3337 static void dump_set_focus_window_reply( const struct set_focus_window_reply
*req
)
3339 fprintf( stderr
, " previous=%08x", req
->previous
);
3342 static void dump_set_active_window_request( const struct set_active_window_request
*req
)
3344 fprintf( stderr
, " handle=%08x", req
->handle
);
3347 static void dump_set_active_window_reply( const struct set_active_window_reply
*req
)
3349 fprintf( stderr
, " previous=%08x", req
->previous
);
3352 static void dump_set_capture_window_request( const struct set_capture_window_request
*req
)
3354 fprintf( stderr
, " handle=%08x", req
->handle
);
3355 fprintf( stderr
, ", flags=%08x", req
->flags
);
3358 static void dump_set_capture_window_reply( const struct set_capture_window_reply
*req
)
3360 fprintf( stderr
, " previous=%08x", req
->previous
);
3361 fprintf( stderr
, ", full_handle=%08x", req
->full_handle
);
3364 static void dump_set_caret_window_request( const struct set_caret_window_request
*req
)
3366 fprintf( stderr
, " handle=%08x", req
->handle
);
3367 fprintf( stderr
, ", width=%d", req
->width
);
3368 fprintf( stderr
, ", height=%d", req
->height
);
3371 static void dump_set_caret_window_reply( const struct set_caret_window_reply
*req
)
3373 fprintf( stderr
, " previous=%08x", req
->previous
);
3374 dump_rectangle( ", old_rect=", &req
->old_rect
);
3375 fprintf( stderr
, ", old_hide=%d", req
->old_hide
);
3376 fprintf( stderr
, ", old_state=%d", req
->old_state
);
3379 static void dump_set_caret_info_request( const struct set_caret_info_request
*req
)
3381 fprintf( stderr
, " flags=%08x", req
->flags
);
3382 fprintf( stderr
, ", handle=%08x", req
->handle
);
3383 fprintf( stderr
, ", x=%d", req
->x
);
3384 fprintf( stderr
, ", y=%d", req
->y
);
3385 fprintf( stderr
, ", hide=%d", req
->hide
);
3386 fprintf( stderr
, ", state=%d", req
->state
);
3389 static void dump_set_caret_info_reply( const struct set_caret_info_reply
*req
)
3391 fprintf( stderr
, " full_handle=%08x", req
->full_handle
);
3392 dump_rectangle( ", old_rect=", &req
->old_rect
);
3393 fprintf( stderr
, ", old_hide=%d", req
->old_hide
);
3394 fprintf( stderr
, ", old_state=%d", req
->old_state
);
3397 static void dump_set_hook_request( const struct set_hook_request
*req
)
3399 fprintf( stderr
, " id=%d", req
->id
);
3400 fprintf( stderr
, ", pid=%04x", req
->pid
);
3401 fprintf( stderr
, ", tid=%04x", req
->tid
);
3402 fprintf( stderr
, ", event_min=%d", req
->event_min
);
3403 fprintf( stderr
, ", event_max=%d", req
->event_max
);
3404 dump_uint64( ", proc=", &req
->proc
);
3405 fprintf( stderr
, ", flags=%d", req
->flags
);
3406 fprintf( stderr
, ", unicode=%d", req
->unicode
);
3407 dump_varargs_unicode_str( ", module=", cur_size
);
3410 static void dump_set_hook_reply( const struct set_hook_reply
*req
)
3412 fprintf( stderr
, " handle=%08x", req
->handle
);
3413 fprintf( stderr
, ", active_hooks=%08x", req
->active_hooks
);
3416 static void dump_remove_hook_request( const struct remove_hook_request
*req
)
3418 fprintf( stderr
, " handle=%08x", req
->handle
);
3419 dump_uint64( ", proc=", &req
->proc
);
3420 fprintf( stderr
, ", id=%d", req
->id
);
3423 static void dump_remove_hook_reply( const struct remove_hook_reply
*req
)
3425 fprintf( stderr
, " active_hooks=%08x", req
->active_hooks
);
3428 static void dump_start_hook_chain_request( const struct start_hook_chain_request
*req
)
3430 fprintf( stderr
, " id=%d", req
->id
);
3431 fprintf( stderr
, ", event=%d", req
->event
);
3432 fprintf( stderr
, ", window=%08x", req
->window
);
3433 fprintf( stderr
, ", object_id=%d", req
->object_id
);
3434 fprintf( stderr
, ", child_id=%d", req
->child_id
);
3437 static void dump_start_hook_chain_reply( const struct start_hook_chain_reply
*req
)
3439 fprintf( stderr
, " handle=%08x", req
->handle
);
3440 fprintf( stderr
, ", pid=%04x", req
->pid
);
3441 fprintf( stderr
, ", tid=%04x", req
->tid
);
3442 fprintf( stderr
, ", unicode=%d", req
->unicode
);
3443 dump_uint64( ", proc=", &req
->proc
);
3444 fprintf( stderr
, ", active_hooks=%08x", req
->active_hooks
);
3445 dump_varargs_unicode_str( ", module=", cur_size
);
3448 static void dump_finish_hook_chain_request( const struct finish_hook_chain_request
*req
)
3450 fprintf( stderr
, " id=%d", req
->id
);
3453 static void dump_get_hook_info_request( const struct get_hook_info_request
*req
)
3455 fprintf( stderr
, " handle=%08x", req
->handle
);
3456 fprintf( stderr
, ", get_next=%d", req
->get_next
);
3457 fprintf( stderr
, ", event=%d", req
->event
);
3458 fprintf( stderr
, ", window=%08x", req
->window
);
3459 fprintf( stderr
, ", object_id=%d", req
->object_id
);
3460 fprintf( stderr
, ", child_id=%d", req
->child_id
);
3463 static void dump_get_hook_info_reply( const struct get_hook_info_reply
*req
)
3465 fprintf( stderr
, " handle=%08x", req
->handle
);
3466 fprintf( stderr
, ", id=%d", req
->id
);
3467 fprintf( stderr
, ", pid=%04x", req
->pid
);
3468 fprintf( stderr
, ", tid=%04x", req
->tid
);
3469 dump_uint64( ", proc=", &req
->proc
);
3470 fprintf( stderr
, ", unicode=%d", req
->unicode
);
3471 dump_varargs_unicode_str( ", module=", cur_size
);
3474 static void dump_create_class_request( const struct create_class_request
*req
)
3476 fprintf( stderr
, " local=%d", req
->local
);
3477 fprintf( stderr
, ", atom=%04x", req
->atom
);
3478 fprintf( stderr
, ", style=%08x", req
->style
);
3479 dump_uint64( ", instance=", &req
->instance
);
3480 fprintf( stderr
, ", extra=%d", req
->extra
);
3481 fprintf( stderr
, ", win_extra=%d", req
->win_extra
);
3482 dump_uint64( ", client_ptr=", &req
->client_ptr
);
3483 dump_varargs_unicode_str( ", name=", cur_size
);
3486 static void dump_create_class_reply( const struct create_class_reply
*req
)
3488 fprintf( stderr
, " atom=%04x", req
->atom
);
3491 static void dump_destroy_class_request( const struct destroy_class_request
*req
)
3493 fprintf( stderr
, " atom=%04x", req
->atom
);
3494 dump_uint64( ", instance=", &req
->instance
);
3495 dump_varargs_unicode_str( ", name=", cur_size
);
3498 static void dump_destroy_class_reply( const struct destroy_class_reply
*req
)
3500 dump_uint64( " client_ptr=", &req
->client_ptr
);
3503 static void dump_set_class_info_request( const struct set_class_info_request
*req
)
3505 fprintf( stderr
, " window=%08x", req
->window
);
3506 fprintf( stderr
, ", flags=%08x", req
->flags
);
3507 fprintf( stderr
, ", atom=%04x", req
->atom
);
3508 fprintf( stderr
, ", style=%08x", req
->style
);
3509 fprintf( stderr
, ", win_extra=%d", req
->win_extra
);
3510 dump_uint64( ", instance=", &req
->instance
);
3511 fprintf( stderr
, ", extra_offset=%d", req
->extra_offset
);
3512 fprintf( stderr
, ", extra_size=%u", req
->extra_size
);
3513 dump_uint64( ", extra_value=", &req
->extra_value
);
3516 static void dump_set_class_info_reply( const struct set_class_info_reply
*req
)
3518 fprintf( stderr
, " old_atom=%04x", req
->old_atom
);
3519 fprintf( stderr
, ", old_style=%08x", req
->old_style
);
3520 fprintf( stderr
, ", old_extra=%d", req
->old_extra
);
3521 fprintf( stderr
, ", old_win_extra=%d", req
->old_win_extra
);
3522 dump_uint64( ", old_instance=", &req
->old_instance
);
3523 dump_uint64( ", old_extra_value=", &req
->old_extra_value
);
3526 static void dump_set_clipboard_info_request( const struct set_clipboard_info_request
*req
)
3528 fprintf( stderr
, " flags=%08x", req
->flags
);
3529 fprintf( stderr
, ", clipboard=%08x", req
->clipboard
);
3530 fprintf( stderr
, ", owner=%08x", req
->owner
);
3531 fprintf( stderr
, ", viewer=%08x", req
->viewer
);
3532 fprintf( stderr
, ", seqno=%08x", req
->seqno
);
3535 static void dump_set_clipboard_info_reply( const struct set_clipboard_info_reply
*req
)
3537 fprintf( stderr
, " flags=%08x", req
->flags
);
3538 fprintf( stderr
, ", old_clipboard=%08x", req
->old_clipboard
);
3539 fprintf( stderr
, ", old_owner=%08x", req
->old_owner
);
3540 fprintf( stderr
, ", old_viewer=%08x", req
->old_viewer
);
3541 fprintf( stderr
, ", seqno=%08x", req
->seqno
);
3544 static void dump_open_token_request( const struct open_token_request
*req
)
3546 fprintf( stderr
, " handle=%04x", req
->handle
);
3547 fprintf( stderr
, ", access=%08x", req
->access
);
3548 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3549 fprintf( stderr
, ", flags=%08x", req
->flags
);
3552 static void dump_open_token_reply( const struct open_token_reply
*req
)
3554 fprintf( stderr
, " token=%04x", req
->token
);
3557 static void dump_set_global_windows_request( const struct set_global_windows_request
*req
)
3559 fprintf( stderr
, " flags=%08x", req
->flags
);
3560 fprintf( stderr
, ", shell_window=%08x", req
->shell_window
);
3561 fprintf( stderr
, ", shell_listview=%08x", req
->shell_listview
);
3562 fprintf( stderr
, ", progman_window=%08x", req
->progman_window
);
3563 fprintf( stderr
, ", taskman_window=%08x", req
->taskman_window
);
3566 static void dump_set_global_windows_reply( const struct set_global_windows_reply
*req
)
3568 fprintf( stderr
, " old_shell_window=%08x", req
->old_shell_window
);
3569 fprintf( stderr
, ", old_shell_listview=%08x", req
->old_shell_listview
);
3570 fprintf( stderr
, ", old_progman_window=%08x", req
->old_progman_window
);
3571 fprintf( stderr
, ", old_taskman_window=%08x", req
->old_taskman_window
);
3574 static void dump_adjust_token_privileges_request( const struct adjust_token_privileges_request
*req
)
3576 fprintf( stderr
, " handle=%04x", req
->handle
);
3577 fprintf( stderr
, ", disable_all=%d", req
->disable_all
);
3578 fprintf( stderr
, ", get_modified_state=%d", req
->get_modified_state
);
3579 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size
);
3582 static void dump_adjust_token_privileges_reply( const struct adjust_token_privileges_reply
*req
)
3584 fprintf( stderr
, " len=%08x", req
->len
);
3585 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size
);
3588 static void dump_get_token_privileges_request( const struct get_token_privileges_request
*req
)
3590 fprintf( stderr
, " handle=%04x", req
->handle
);
3593 static void dump_get_token_privileges_reply( const struct get_token_privileges_reply
*req
)
3595 fprintf( stderr
, " len=%08x", req
->len
);
3596 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size
);
3599 static void dump_check_token_privileges_request( const struct check_token_privileges_request
*req
)
3601 fprintf( stderr
, " handle=%04x", req
->handle
);
3602 fprintf( stderr
, ", all_required=%d", req
->all_required
);
3603 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size
);
3606 static void dump_check_token_privileges_reply( const struct check_token_privileges_reply
*req
)
3608 fprintf( stderr
, " has_privileges=%d", req
->has_privileges
);
3609 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size
);
3612 static void dump_duplicate_token_request( const struct duplicate_token_request
*req
)
3614 fprintf( stderr
, " handle=%04x", req
->handle
);
3615 fprintf( stderr
, ", access=%08x", req
->access
);
3616 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3617 fprintf( stderr
, ", primary=%d", req
->primary
);
3618 fprintf( stderr
, ", impersonation_level=%d", req
->impersonation_level
);
3621 static void dump_duplicate_token_reply( const struct duplicate_token_reply
*req
)
3623 fprintf( stderr
, " new_handle=%04x", req
->new_handle
);
3626 static void dump_access_check_request( const struct access_check_request
*req
)
3628 fprintf( stderr
, " handle=%04x", req
->handle
);
3629 fprintf( stderr
, ", desired_access=%08x", req
->desired_access
);
3630 fprintf( stderr
, ", mapping_read=%08x", req
->mapping_read
);
3631 fprintf( stderr
, ", mapping_write=%08x", req
->mapping_write
);
3632 fprintf( stderr
, ", mapping_execute=%08x", req
->mapping_execute
);
3633 fprintf( stderr
, ", mapping_all=%08x", req
->mapping_all
);
3634 dump_varargs_security_descriptor( ", sd=", cur_size
);
3637 static void dump_access_check_reply( const struct access_check_reply
*req
)
3639 fprintf( stderr
, " access_granted=%08x", req
->access_granted
);
3640 fprintf( stderr
, ", access_status=%08x", req
->access_status
);
3641 fprintf( stderr
, ", privileges_len=%08x", req
->privileges_len
);
3642 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size
);
3645 static void dump_get_token_sid_request( const struct get_token_sid_request
*req
)
3647 fprintf( stderr
, " handle=%04x", req
->handle
);
3648 fprintf( stderr
, ", which_sid=%08x", req
->which_sid
);
3651 static void dump_get_token_sid_reply( const struct get_token_sid_reply
*req
)
3653 fprintf( stderr
, " sid_len=%u", req
->sid_len
);
3654 dump_varargs_SID( ", sid=", cur_size
);
3657 static void dump_get_token_groups_request( const struct get_token_groups_request
*req
)
3659 fprintf( stderr
, " handle=%04x", req
->handle
);
3662 static void dump_get_token_groups_reply( const struct get_token_groups_reply
*req
)
3664 fprintf( stderr
, " user_len=%u", req
->user_len
);
3665 dump_varargs_token_groups( ", user=", cur_size
);
3668 static void dump_get_token_default_dacl_request( const struct get_token_default_dacl_request
*req
)
3670 fprintf( stderr
, " handle=%04x", req
->handle
);
3673 static void dump_get_token_default_dacl_reply( const struct get_token_default_dacl_reply
*req
)
3675 fprintf( stderr
, " acl_len=%u", req
->acl_len
);
3676 dump_varargs_ACL( ", acl=", cur_size
);
3679 static void dump_set_token_default_dacl_request( const struct set_token_default_dacl_request
*req
)
3681 fprintf( stderr
, " handle=%04x", req
->handle
);
3682 dump_varargs_ACL( ", acl=", cur_size
);
3685 static void dump_set_security_object_request( const struct set_security_object_request
*req
)
3687 fprintf( stderr
, " handle=%04x", req
->handle
);
3688 fprintf( stderr
, ", security_info=%08x", req
->security_info
);
3689 dump_varargs_security_descriptor( ", sd=", cur_size
);
3692 static void dump_get_security_object_request( const struct get_security_object_request
*req
)
3694 fprintf( stderr
, " handle=%04x", req
->handle
);
3695 fprintf( stderr
, ", security_info=%08x", req
->security_info
);
3698 static void dump_get_security_object_reply( const struct get_security_object_reply
*req
)
3700 fprintf( stderr
, " sd_len=%08x", req
->sd_len
);
3701 dump_varargs_security_descriptor( ", sd=", cur_size
);
3704 static void dump_create_mailslot_request( const struct create_mailslot_request
*req
)
3706 fprintf( stderr
, " access=%08x", req
->access
);
3707 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3708 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
3709 dump_timeout( ", read_timeout=", &req
->read_timeout
);
3710 fprintf( stderr
, ", max_msgsize=%08x", req
->max_msgsize
);
3711 dump_varargs_unicode_str( ", name=", cur_size
);
3714 static void dump_create_mailslot_reply( const struct create_mailslot_reply
*req
)
3716 fprintf( stderr
, " handle=%04x", req
->handle
);
3719 static void dump_set_mailslot_info_request( const struct set_mailslot_info_request
*req
)
3721 fprintf( stderr
, " handle=%04x", req
->handle
);
3722 dump_timeout( ", read_timeout=", &req
->read_timeout
);
3723 fprintf( stderr
, ", flags=%08x", req
->flags
);
3726 static void dump_set_mailslot_info_reply( const struct set_mailslot_info_reply
*req
)
3728 dump_timeout( " read_timeout=", &req
->read_timeout
);
3729 fprintf( stderr
, ", max_msgsize=%08x", req
->max_msgsize
);
3732 static void dump_create_directory_request( const struct create_directory_request
*req
)
3734 fprintf( stderr
, " access=%08x", req
->access
);
3735 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3736 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
3737 dump_varargs_unicode_str( ", directory_name=", cur_size
);
3740 static void dump_create_directory_reply( const struct create_directory_reply
*req
)
3742 fprintf( stderr
, " handle=%04x", req
->handle
);
3745 static void dump_open_directory_request( const struct open_directory_request
*req
)
3747 fprintf( stderr
, " access=%08x", req
->access
);
3748 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3749 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
3750 dump_varargs_unicode_str( ", directory_name=", cur_size
);
3753 static void dump_open_directory_reply( const struct open_directory_reply
*req
)
3755 fprintf( stderr
, " handle=%04x", req
->handle
);
3758 static void dump_get_directory_entry_request( const struct get_directory_entry_request
*req
)
3760 fprintf( stderr
, " handle=%04x", req
->handle
);
3761 fprintf( stderr
, ", index=%08x", req
->index
);
3764 static void dump_get_directory_entry_reply( const struct get_directory_entry_reply
*req
)
3766 fprintf( stderr
, " name_len=%u", req
->name_len
);
3767 dump_varargs_unicode_str( ", name=", min(cur_size
,req
->name_len
) );
3768 dump_varargs_unicode_str( ", type=", cur_size
);
3771 static void dump_create_symlink_request( const struct create_symlink_request
*req
)
3773 fprintf( stderr
, " access=%08x", req
->access
);
3774 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3775 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
3776 fprintf( stderr
, ", name_len=%u", req
->name_len
);
3777 dump_varargs_unicode_str( ", name=", min(cur_size
,req
->name_len
) );
3778 dump_varargs_unicode_str( ", target_name=", cur_size
);
3781 static void dump_create_symlink_reply( const struct create_symlink_reply
*req
)
3783 fprintf( stderr
, " handle=%04x", req
->handle
);
3786 static void dump_open_symlink_request( const struct open_symlink_request
*req
)
3788 fprintf( stderr
, " access=%08x", req
->access
);
3789 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3790 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
3791 dump_varargs_unicode_str( ", name=", cur_size
);
3794 static void dump_open_symlink_reply( const struct open_symlink_reply
*req
)
3796 fprintf( stderr
, " handle=%04x", req
->handle
);
3799 static void dump_query_symlink_request( const struct query_symlink_request
*req
)
3801 fprintf( stderr
, " handle=%04x", req
->handle
);
3804 static void dump_query_symlink_reply( const struct query_symlink_reply
*req
)
3806 fprintf( stderr
, " total=%u", req
->total
);
3807 dump_varargs_unicode_str( ", target_name=", cur_size
);
3810 static void dump_get_object_info_request( const struct get_object_info_request
*req
)
3812 fprintf( stderr
, " handle=%04x", req
->handle
);
3815 static void dump_get_object_info_reply( const struct get_object_info_reply
*req
)
3817 fprintf( stderr
, " access=%08x", req
->access
);
3818 fprintf( stderr
, ", ref_count=%08x", req
->ref_count
);
3819 fprintf( stderr
, ", total=%u", req
->total
);
3820 dump_varargs_unicode_str( ", name=", cur_size
);
3823 static void dump_unlink_object_request( const struct unlink_object_request
*req
)
3825 fprintf( stderr
, " handle=%04x", req
->handle
);
3828 static void dump_get_token_impersonation_level_request( const struct get_token_impersonation_level_request
*req
)
3830 fprintf( stderr
, " handle=%04x", req
->handle
);
3833 static void dump_get_token_impersonation_level_reply( const struct get_token_impersonation_level_reply
*req
)
3835 fprintf( stderr
, " impersonation_level=%d", req
->impersonation_level
);
3838 static void dump_allocate_locally_unique_id_request( const struct allocate_locally_unique_id_request
*req
)
3842 static void dump_allocate_locally_unique_id_reply( const struct allocate_locally_unique_id_reply
*req
)
3844 dump_luid( " luid=", &req
->luid
);
3847 static void dump_create_device_manager_request( const struct create_device_manager_request
*req
)
3849 fprintf( stderr
, " access=%08x", req
->access
);
3850 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3853 static void dump_create_device_manager_reply( const struct create_device_manager_reply
*req
)
3855 fprintf( stderr
, " handle=%04x", req
->handle
);
3858 static void dump_create_device_request( const struct create_device_request
*req
)
3860 fprintf( stderr
, " access=%08x", req
->access
);
3861 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3862 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
3863 dump_uint64( ", user_ptr=", &req
->user_ptr
);
3864 fprintf( stderr
, ", manager=%04x", req
->manager
);
3865 dump_varargs_unicode_str( ", name=", cur_size
);
3868 static void dump_create_device_reply( const struct create_device_reply
*req
)
3870 fprintf( stderr
, " handle=%04x", req
->handle
);
3873 static void dump_delete_device_request( const struct delete_device_request
*req
)
3875 fprintf( stderr
, " handle=%04x", req
->handle
);
3878 static void dump_get_next_device_request_request( const struct get_next_device_request_request
*req
)
3880 fprintf( stderr
, " manager=%04x", req
->manager
);
3881 fprintf( stderr
, ", prev=%04x", req
->prev
);
3882 fprintf( stderr
, ", status=%08x", req
->status
);
3883 dump_varargs_bytes( ", prev_data=", cur_size
);
3886 static void dump_get_next_device_request_reply( const struct get_next_device_request_reply
*req
)
3888 fprintf( stderr
, " next=%04x", req
->next
);
3889 dump_ioctl_code( ", code=", &req
->code
);
3890 dump_uint64( ", user_ptr=", &req
->user_ptr
);
3891 fprintf( stderr
, ", client_pid=%04x", req
->client_pid
);
3892 fprintf( stderr
, ", client_tid=%04x", req
->client_tid
);
3893 fprintf( stderr
, ", in_size=%u", req
->in_size
);
3894 fprintf( stderr
, ", out_size=%u", req
->out_size
);
3895 dump_varargs_bytes( ", next_data=", cur_size
);
3898 static void dump_make_process_system_request( const struct make_process_system_request
*req
)
3902 static void dump_make_process_system_reply( const struct make_process_system_reply
*req
)
3904 fprintf( stderr
, " event=%04x", req
->event
);
3907 static void dump_get_token_statistics_request( const struct get_token_statistics_request
*req
)
3909 fprintf( stderr
, " handle=%04x", req
->handle
);
3912 static void dump_get_token_statistics_reply( const struct get_token_statistics_reply
*req
)
3914 dump_luid( " token_id=", &req
->token_id
);
3915 dump_luid( ", modified_id=", &req
->modified_id
);
3916 fprintf( stderr
, ", primary=%d", req
->primary
);
3917 fprintf( stderr
, ", impersonation_level=%d", req
->impersonation_level
);
3918 fprintf( stderr
, ", group_count=%d", req
->group_count
);
3919 fprintf( stderr
, ", privilege_count=%d", req
->privilege_count
);
3922 static void dump_create_completion_request( const struct create_completion_request
*req
)
3924 fprintf( stderr
, " access=%08x", req
->access
);
3925 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3926 fprintf( stderr
, ", concurrent=%08x", req
->concurrent
);
3927 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
3928 dump_varargs_string( ", filename=", cur_size
);
3931 static void dump_create_completion_reply( const struct create_completion_reply
*req
)
3933 fprintf( stderr
, " handle=%04x", req
->handle
);
3936 static void dump_open_completion_request( const struct open_completion_request
*req
)
3938 fprintf( stderr
, " access=%08x", req
->access
);
3939 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3940 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
3941 dump_varargs_string( ", filename=", cur_size
);
3944 static void dump_open_completion_reply( const struct open_completion_reply
*req
)
3946 fprintf( stderr
, " handle=%04x", req
->handle
);
3949 static void dump_add_completion_request( const struct add_completion_request
*req
)
3951 fprintf( stderr
, " handle=%04x", req
->handle
);
3952 dump_uint64( ", ckey=", &req
->ckey
);
3953 dump_uint64( ", cvalue=", &req
->cvalue
);
3954 dump_uint64( ", information=", &req
->information
);
3955 fprintf( stderr
, ", status=%08x", req
->status
);
3958 static void dump_remove_completion_request( const struct remove_completion_request
*req
)
3960 fprintf( stderr
, " handle=%04x", req
->handle
);
3963 static void dump_remove_completion_reply( const struct remove_completion_reply
*req
)
3965 dump_uint64( " ckey=", &req
->ckey
);
3966 dump_uint64( ", cvalue=", &req
->cvalue
);
3967 dump_uint64( ", information=", &req
->information
);
3968 fprintf( stderr
, ", status=%08x", req
->status
);
3971 static void dump_query_completion_request( const struct query_completion_request
*req
)
3973 fprintf( stderr
, " handle=%04x", req
->handle
);
3976 static void dump_query_completion_reply( const struct query_completion_reply
*req
)
3978 fprintf( stderr
, " depth=%08x", req
->depth
);
3981 static void dump_set_completion_info_request( const struct set_completion_info_request
*req
)
3983 fprintf( stderr
, " handle=%04x", req
->handle
);
3984 dump_uint64( ", ckey=", &req
->ckey
);
3985 fprintf( stderr
, ", chandle=%04x", req
->chandle
);
3988 static void dump_add_fd_completion_request( const struct add_fd_completion_request
*req
)
3990 fprintf( stderr
, " handle=%04x", req
->handle
);
3991 dump_uint64( ", cvalue=", &req
->cvalue
);
3992 dump_uint64( ", information=", &req
->information
);
3993 fprintf( stderr
, ", status=%08x", req
->status
);
3996 static void dump_get_window_layered_info_request( const struct get_window_layered_info_request
*req
)
3998 fprintf( stderr
, " handle=%08x", req
->handle
);
4001 static void dump_get_window_layered_info_reply( const struct get_window_layered_info_reply
*req
)
4003 fprintf( stderr
, " color_key=%08x", req
->color_key
);
4004 fprintf( stderr
, ", alpha=%08x", req
->alpha
);
4005 fprintf( stderr
, ", flags=%08x", req
->flags
);
4008 static void dump_set_window_layered_info_request( const struct set_window_layered_info_request
*req
)
4010 fprintf( stderr
, " handle=%08x", req
->handle
);
4011 fprintf( stderr
, ", color_key=%08x", req
->color_key
);
4012 fprintf( stderr
, ", alpha=%08x", req
->alpha
);
4013 fprintf( stderr
, ", flags=%08x", req
->flags
);
4016 static void dump_alloc_user_handle_request( const struct alloc_user_handle_request
*req
)
4020 static void dump_alloc_user_handle_reply( const struct alloc_user_handle_reply
*req
)
4022 fprintf( stderr
, " handle=%08x", req
->handle
);
4025 static void dump_free_user_handle_request( const struct free_user_handle_request
*req
)
4027 fprintf( stderr
, " handle=%08x", req
->handle
);
4030 static void dump_set_cursor_request( const struct set_cursor_request
*req
)
4032 fprintf( stderr
, " flags=%08x", req
->flags
);
4033 fprintf( stderr
, ", handle=%08x", req
->handle
);
4034 fprintf( stderr
, ", show_count=%d", req
->show_count
);
4035 fprintf( stderr
, ", x=%d", req
->x
);
4036 fprintf( stderr
, ", y=%d", req
->y
);
4037 dump_rectangle( ", clip=", &req
->clip
);
4038 fprintf( stderr
, ", clip_msg=%08x", req
->clip_msg
);
4041 static void dump_set_cursor_reply( const struct set_cursor_reply
*req
)
4043 fprintf( stderr
, " prev_handle=%08x", req
->prev_handle
);
4044 fprintf( stderr
, ", prev_count=%d", req
->prev_count
);
4045 fprintf( stderr
, ", prev_x=%d", req
->prev_x
);
4046 fprintf( stderr
, ", prev_y=%d", req
->prev_y
);
4047 fprintf( stderr
, ", new_x=%d", req
->new_x
);
4048 fprintf( stderr
, ", new_y=%d", req
->new_y
);
4049 dump_rectangle( ", new_clip=", &req
->new_clip
);
4050 fprintf( stderr
, ", last_change=%08x", req
->last_change
);
4053 static void dump_update_rawinput_devices_request( const struct update_rawinput_devices_request
*req
)
4055 dump_varargs_rawinput_devices( " devices=", cur_size
);
4058 static void dump_get_suspend_context_request( const struct get_suspend_context_request
*req
)
4062 static void dump_get_suspend_context_reply( const struct get_suspend_context_reply
*req
)
4064 dump_varargs_context( " context=", cur_size
);
4067 static void dump_set_suspend_context_request( const struct set_suspend_context_request
*req
)
4069 dump_varargs_context( " context=", cur_size
);
4072 static const dump_func req_dumpers
[REQ_NB_REQUESTS
] = {
4073 (dump_func
)dump_new_process_request
,
4074 (dump_func
)dump_get_new_process_info_request
,
4075 (dump_func
)dump_new_thread_request
,
4076 (dump_func
)dump_get_startup_info_request
,
4077 (dump_func
)dump_init_process_done_request
,
4078 (dump_func
)dump_init_thread_request
,
4079 (dump_func
)dump_terminate_process_request
,
4080 (dump_func
)dump_terminate_thread_request
,
4081 (dump_func
)dump_get_process_info_request
,
4082 (dump_func
)dump_set_process_info_request
,
4083 (dump_func
)dump_get_thread_info_request
,
4084 (dump_func
)dump_set_thread_info_request
,
4085 (dump_func
)dump_get_dll_info_request
,
4086 (dump_func
)dump_suspend_thread_request
,
4087 (dump_func
)dump_resume_thread_request
,
4088 (dump_func
)dump_load_dll_request
,
4089 (dump_func
)dump_unload_dll_request
,
4090 (dump_func
)dump_queue_apc_request
,
4091 (dump_func
)dump_get_apc_result_request
,
4092 (dump_func
)dump_close_handle_request
,
4093 (dump_func
)dump_set_handle_info_request
,
4094 (dump_func
)dump_dup_handle_request
,
4095 (dump_func
)dump_open_process_request
,
4096 (dump_func
)dump_open_thread_request
,
4097 (dump_func
)dump_select_request
,
4098 (dump_func
)dump_create_event_request
,
4099 (dump_func
)dump_event_op_request
,
4100 (dump_func
)dump_query_event_request
,
4101 (dump_func
)dump_open_event_request
,
4102 (dump_func
)dump_create_keyed_event_request
,
4103 (dump_func
)dump_open_keyed_event_request
,
4104 (dump_func
)dump_create_mutex_request
,
4105 (dump_func
)dump_release_mutex_request
,
4106 (dump_func
)dump_open_mutex_request
,
4107 (dump_func
)dump_create_semaphore_request
,
4108 (dump_func
)dump_release_semaphore_request
,
4109 (dump_func
)dump_open_semaphore_request
,
4110 (dump_func
)dump_create_file_request
,
4111 (dump_func
)dump_open_file_object_request
,
4112 (dump_func
)dump_alloc_file_handle_request
,
4113 (dump_func
)dump_get_handle_unix_name_request
,
4114 (dump_func
)dump_get_handle_fd_request
,
4115 (dump_func
)dump_flush_file_request
,
4116 (dump_func
)dump_lock_file_request
,
4117 (dump_func
)dump_unlock_file_request
,
4118 (dump_func
)dump_create_socket_request
,
4119 (dump_func
)dump_accept_socket_request
,
4120 (dump_func
)dump_accept_into_socket_request
,
4121 (dump_func
)dump_set_socket_event_request
,
4122 (dump_func
)dump_get_socket_event_request
,
4123 (dump_func
)dump_get_socket_info_request
,
4124 (dump_func
)dump_enable_socket_event_request
,
4125 (dump_func
)dump_set_socket_deferred_request
,
4126 (dump_func
)dump_alloc_console_request
,
4127 (dump_func
)dump_free_console_request
,
4128 (dump_func
)dump_get_console_renderer_events_request
,
4129 (dump_func
)dump_open_console_request
,
4130 (dump_func
)dump_get_console_wait_event_request
,
4131 (dump_func
)dump_get_console_mode_request
,
4132 (dump_func
)dump_set_console_mode_request
,
4133 (dump_func
)dump_set_console_input_info_request
,
4134 (dump_func
)dump_get_console_input_info_request
,
4135 (dump_func
)dump_append_console_input_history_request
,
4136 (dump_func
)dump_get_console_input_history_request
,
4137 (dump_func
)dump_create_console_output_request
,
4138 (dump_func
)dump_set_console_output_info_request
,
4139 (dump_func
)dump_get_console_output_info_request
,
4140 (dump_func
)dump_write_console_input_request
,
4141 (dump_func
)dump_read_console_input_request
,
4142 (dump_func
)dump_write_console_output_request
,
4143 (dump_func
)dump_fill_console_output_request
,
4144 (dump_func
)dump_read_console_output_request
,
4145 (dump_func
)dump_move_console_output_request
,
4146 (dump_func
)dump_send_console_signal_request
,
4147 (dump_func
)dump_read_directory_changes_request
,
4148 (dump_func
)dump_read_change_request
,
4149 (dump_func
)dump_create_mapping_request
,
4150 (dump_func
)dump_open_mapping_request
,
4151 (dump_func
)dump_get_mapping_info_request
,
4152 (dump_func
)dump_get_mapping_committed_range_request
,
4153 (dump_func
)dump_add_mapping_committed_range_request
,
4154 (dump_func
)dump_create_snapshot_request
,
4155 (dump_func
)dump_next_process_request
,
4156 (dump_func
)dump_next_thread_request
,
4157 (dump_func
)dump_wait_debug_event_request
,
4158 (dump_func
)dump_queue_exception_event_request
,
4159 (dump_func
)dump_get_exception_status_request
,
4160 (dump_func
)dump_output_debug_string_request
,
4161 (dump_func
)dump_continue_debug_event_request
,
4162 (dump_func
)dump_debug_process_request
,
4163 (dump_func
)dump_debug_break_request
,
4164 (dump_func
)dump_set_debugger_kill_on_exit_request
,
4165 (dump_func
)dump_read_process_memory_request
,
4166 (dump_func
)dump_write_process_memory_request
,
4167 (dump_func
)dump_create_key_request
,
4168 (dump_func
)dump_open_key_request
,
4169 (dump_func
)dump_delete_key_request
,
4170 (dump_func
)dump_flush_key_request
,
4171 (dump_func
)dump_enum_key_request
,
4172 (dump_func
)dump_set_key_value_request
,
4173 (dump_func
)dump_get_key_value_request
,
4174 (dump_func
)dump_enum_key_value_request
,
4175 (dump_func
)dump_delete_key_value_request
,
4176 (dump_func
)dump_load_registry_request
,
4177 (dump_func
)dump_unload_registry_request
,
4178 (dump_func
)dump_save_registry_request
,
4179 (dump_func
)dump_set_registry_notification_request
,
4180 (dump_func
)dump_create_timer_request
,
4181 (dump_func
)dump_open_timer_request
,
4182 (dump_func
)dump_set_timer_request
,
4183 (dump_func
)dump_cancel_timer_request
,
4184 (dump_func
)dump_get_timer_info_request
,
4185 (dump_func
)dump_get_thread_context_request
,
4186 (dump_func
)dump_set_thread_context_request
,
4187 (dump_func
)dump_get_selector_entry_request
,
4188 (dump_func
)dump_add_atom_request
,
4189 (dump_func
)dump_delete_atom_request
,
4190 (dump_func
)dump_find_atom_request
,
4191 (dump_func
)dump_get_atom_information_request
,
4192 (dump_func
)dump_set_atom_information_request
,
4193 (dump_func
)dump_empty_atom_table_request
,
4194 (dump_func
)dump_init_atom_table_request
,
4195 (dump_func
)dump_get_msg_queue_request
,
4196 (dump_func
)dump_set_queue_fd_request
,
4197 (dump_func
)dump_set_queue_mask_request
,
4198 (dump_func
)dump_get_queue_status_request
,
4199 (dump_func
)dump_get_process_idle_event_request
,
4200 (dump_func
)dump_send_message_request
,
4201 (dump_func
)dump_post_quit_message_request
,
4202 (dump_func
)dump_send_hardware_message_request
,
4203 (dump_func
)dump_get_message_request
,
4204 (dump_func
)dump_reply_message_request
,
4205 (dump_func
)dump_accept_hardware_message_request
,
4206 (dump_func
)dump_get_message_reply_request
,
4207 (dump_func
)dump_set_win_timer_request
,
4208 (dump_func
)dump_kill_win_timer_request
,
4209 (dump_func
)dump_is_window_hung_request
,
4210 (dump_func
)dump_get_serial_info_request
,
4211 (dump_func
)dump_set_serial_info_request
,
4212 (dump_func
)dump_register_async_request
,
4213 (dump_func
)dump_cancel_async_request
,
4214 (dump_func
)dump_ioctl_request
,
4215 (dump_func
)dump_get_ioctl_result_request
,
4216 (dump_func
)dump_create_named_pipe_request
,
4217 (dump_func
)dump_get_named_pipe_info_request
,
4218 (dump_func
)dump_create_window_request
,
4219 (dump_func
)dump_destroy_window_request
,
4220 (dump_func
)dump_get_desktop_window_request
,
4221 (dump_func
)dump_set_window_owner_request
,
4222 (dump_func
)dump_get_window_info_request
,
4223 (dump_func
)dump_set_window_info_request
,
4224 (dump_func
)dump_set_parent_request
,
4225 (dump_func
)dump_get_window_parents_request
,
4226 (dump_func
)dump_get_window_children_request
,
4227 (dump_func
)dump_get_window_children_from_point_request
,
4228 (dump_func
)dump_get_window_tree_request
,
4229 (dump_func
)dump_set_window_pos_request
,
4230 (dump_func
)dump_get_window_rectangles_request
,
4231 (dump_func
)dump_get_window_text_request
,
4232 (dump_func
)dump_set_window_text_request
,
4233 (dump_func
)dump_get_windows_offset_request
,
4234 (dump_func
)dump_get_visible_region_request
,
4235 (dump_func
)dump_get_surface_region_request
,
4236 (dump_func
)dump_get_window_region_request
,
4237 (dump_func
)dump_set_window_region_request
,
4238 (dump_func
)dump_get_update_region_request
,
4239 (dump_func
)dump_update_window_zorder_request
,
4240 (dump_func
)dump_redraw_window_request
,
4241 (dump_func
)dump_set_window_property_request
,
4242 (dump_func
)dump_remove_window_property_request
,
4243 (dump_func
)dump_get_window_property_request
,
4244 (dump_func
)dump_get_window_properties_request
,
4245 (dump_func
)dump_create_winstation_request
,
4246 (dump_func
)dump_open_winstation_request
,
4247 (dump_func
)dump_close_winstation_request
,
4248 (dump_func
)dump_get_process_winstation_request
,
4249 (dump_func
)dump_set_process_winstation_request
,
4250 (dump_func
)dump_enum_winstation_request
,
4251 (dump_func
)dump_create_desktop_request
,
4252 (dump_func
)dump_open_desktop_request
,
4253 (dump_func
)dump_close_desktop_request
,
4254 (dump_func
)dump_get_thread_desktop_request
,
4255 (dump_func
)dump_set_thread_desktop_request
,
4256 (dump_func
)dump_enum_desktop_request
,
4257 (dump_func
)dump_set_user_object_info_request
,
4258 (dump_func
)dump_register_hotkey_request
,
4259 (dump_func
)dump_unregister_hotkey_request
,
4260 (dump_func
)dump_attach_thread_input_request
,
4261 (dump_func
)dump_get_thread_input_request
,
4262 (dump_func
)dump_get_last_input_time_request
,
4263 (dump_func
)dump_get_key_state_request
,
4264 (dump_func
)dump_set_key_state_request
,
4265 (dump_func
)dump_set_foreground_window_request
,
4266 (dump_func
)dump_set_focus_window_request
,
4267 (dump_func
)dump_set_active_window_request
,
4268 (dump_func
)dump_set_capture_window_request
,
4269 (dump_func
)dump_set_caret_window_request
,
4270 (dump_func
)dump_set_caret_info_request
,
4271 (dump_func
)dump_set_hook_request
,
4272 (dump_func
)dump_remove_hook_request
,
4273 (dump_func
)dump_start_hook_chain_request
,
4274 (dump_func
)dump_finish_hook_chain_request
,
4275 (dump_func
)dump_get_hook_info_request
,
4276 (dump_func
)dump_create_class_request
,
4277 (dump_func
)dump_destroy_class_request
,
4278 (dump_func
)dump_set_class_info_request
,
4279 (dump_func
)dump_set_clipboard_info_request
,
4280 (dump_func
)dump_open_token_request
,
4281 (dump_func
)dump_set_global_windows_request
,
4282 (dump_func
)dump_adjust_token_privileges_request
,
4283 (dump_func
)dump_get_token_privileges_request
,
4284 (dump_func
)dump_check_token_privileges_request
,
4285 (dump_func
)dump_duplicate_token_request
,
4286 (dump_func
)dump_access_check_request
,
4287 (dump_func
)dump_get_token_sid_request
,
4288 (dump_func
)dump_get_token_groups_request
,
4289 (dump_func
)dump_get_token_default_dacl_request
,
4290 (dump_func
)dump_set_token_default_dacl_request
,
4291 (dump_func
)dump_set_security_object_request
,
4292 (dump_func
)dump_get_security_object_request
,
4293 (dump_func
)dump_create_mailslot_request
,
4294 (dump_func
)dump_set_mailslot_info_request
,
4295 (dump_func
)dump_create_directory_request
,
4296 (dump_func
)dump_open_directory_request
,
4297 (dump_func
)dump_get_directory_entry_request
,
4298 (dump_func
)dump_create_symlink_request
,
4299 (dump_func
)dump_open_symlink_request
,
4300 (dump_func
)dump_query_symlink_request
,
4301 (dump_func
)dump_get_object_info_request
,
4302 (dump_func
)dump_unlink_object_request
,
4303 (dump_func
)dump_get_token_impersonation_level_request
,
4304 (dump_func
)dump_allocate_locally_unique_id_request
,
4305 (dump_func
)dump_create_device_manager_request
,
4306 (dump_func
)dump_create_device_request
,
4307 (dump_func
)dump_delete_device_request
,
4308 (dump_func
)dump_get_next_device_request_request
,
4309 (dump_func
)dump_make_process_system_request
,
4310 (dump_func
)dump_get_token_statistics_request
,
4311 (dump_func
)dump_create_completion_request
,
4312 (dump_func
)dump_open_completion_request
,
4313 (dump_func
)dump_add_completion_request
,
4314 (dump_func
)dump_remove_completion_request
,
4315 (dump_func
)dump_query_completion_request
,
4316 (dump_func
)dump_set_completion_info_request
,
4317 (dump_func
)dump_add_fd_completion_request
,
4318 (dump_func
)dump_get_window_layered_info_request
,
4319 (dump_func
)dump_set_window_layered_info_request
,
4320 (dump_func
)dump_alloc_user_handle_request
,
4321 (dump_func
)dump_free_user_handle_request
,
4322 (dump_func
)dump_set_cursor_request
,
4323 (dump_func
)dump_update_rawinput_devices_request
,
4324 (dump_func
)dump_get_suspend_context_request
,
4325 (dump_func
)dump_set_suspend_context_request
,
4328 static const dump_func reply_dumpers
[REQ_NB_REQUESTS
] = {
4329 (dump_func
)dump_new_process_reply
,
4330 (dump_func
)dump_get_new_process_info_reply
,
4331 (dump_func
)dump_new_thread_reply
,
4332 (dump_func
)dump_get_startup_info_reply
,
4334 (dump_func
)dump_init_thread_reply
,
4335 (dump_func
)dump_terminate_process_reply
,
4336 (dump_func
)dump_terminate_thread_reply
,
4337 (dump_func
)dump_get_process_info_reply
,
4339 (dump_func
)dump_get_thread_info_reply
,
4341 (dump_func
)dump_get_dll_info_reply
,
4342 (dump_func
)dump_suspend_thread_reply
,
4343 (dump_func
)dump_resume_thread_reply
,
4346 (dump_func
)dump_queue_apc_reply
,
4347 (dump_func
)dump_get_apc_result_reply
,
4349 (dump_func
)dump_set_handle_info_reply
,
4350 (dump_func
)dump_dup_handle_reply
,
4351 (dump_func
)dump_open_process_reply
,
4352 (dump_func
)dump_open_thread_reply
,
4353 (dump_func
)dump_select_reply
,
4354 (dump_func
)dump_create_event_reply
,
4356 (dump_func
)dump_query_event_reply
,
4357 (dump_func
)dump_open_event_reply
,
4358 (dump_func
)dump_create_keyed_event_reply
,
4359 (dump_func
)dump_open_keyed_event_reply
,
4360 (dump_func
)dump_create_mutex_reply
,
4361 (dump_func
)dump_release_mutex_reply
,
4362 (dump_func
)dump_open_mutex_reply
,
4363 (dump_func
)dump_create_semaphore_reply
,
4364 (dump_func
)dump_release_semaphore_reply
,
4365 (dump_func
)dump_open_semaphore_reply
,
4366 (dump_func
)dump_create_file_reply
,
4367 (dump_func
)dump_open_file_object_reply
,
4368 (dump_func
)dump_alloc_file_handle_reply
,
4369 (dump_func
)dump_get_handle_unix_name_reply
,
4370 (dump_func
)dump_get_handle_fd_reply
,
4371 (dump_func
)dump_flush_file_reply
,
4372 (dump_func
)dump_lock_file_reply
,
4374 (dump_func
)dump_create_socket_reply
,
4375 (dump_func
)dump_accept_socket_reply
,
4378 (dump_func
)dump_get_socket_event_reply
,
4379 (dump_func
)dump_get_socket_info_reply
,
4382 (dump_func
)dump_alloc_console_reply
,
4384 (dump_func
)dump_get_console_renderer_events_reply
,
4385 (dump_func
)dump_open_console_reply
,
4386 (dump_func
)dump_get_console_wait_event_reply
,
4387 (dump_func
)dump_get_console_mode_reply
,
4390 (dump_func
)dump_get_console_input_info_reply
,
4392 (dump_func
)dump_get_console_input_history_reply
,
4393 (dump_func
)dump_create_console_output_reply
,
4395 (dump_func
)dump_get_console_output_info_reply
,
4396 (dump_func
)dump_write_console_input_reply
,
4397 (dump_func
)dump_read_console_input_reply
,
4398 (dump_func
)dump_write_console_output_reply
,
4399 (dump_func
)dump_fill_console_output_reply
,
4400 (dump_func
)dump_read_console_output_reply
,
4404 (dump_func
)dump_read_change_reply
,
4405 (dump_func
)dump_create_mapping_reply
,
4406 (dump_func
)dump_open_mapping_reply
,
4407 (dump_func
)dump_get_mapping_info_reply
,
4408 (dump_func
)dump_get_mapping_committed_range_reply
,
4410 (dump_func
)dump_create_snapshot_reply
,
4411 (dump_func
)dump_next_process_reply
,
4412 (dump_func
)dump_next_thread_reply
,
4413 (dump_func
)dump_wait_debug_event_reply
,
4414 (dump_func
)dump_queue_exception_event_reply
,
4415 (dump_func
)dump_get_exception_status_reply
,
4419 (dump_func
)dump_debug_break_reply
,
4421 (dump_func
)dump_read_process_memory_reply
,
4423 (dump_func
)dump_create_key_reply
,
4424 (dump_func
)dump_open_key_reply
,
4427 (dump_func
)dump_enum_key_reply
,
4429 (dump_func
)dump_get_key_value_reply
,
4430 (dump_func
)dump_enum_key_value_reply
,
4436 (dump_func
)dump_create_timer_reply
,
4437 (dump_func
)dump_open_timer_reply
,
4438 (dump_func
)dump_set_timer_reply
,
4439 (dump_func
)dump_cancel_timer_reply
,
4440 (dump_func
)dump_get_timer_info_reply
,
4441 (dump_func
)dump_get_thread_context_reply
,
4442 (dump_func
)dump_set_thread_context_reply
,
4443 (dump_func
)dump_get_selector_entry_reply
,
4444 (dump_func
)dump_add_atom_reply
,
4446 (dump_func
)dump_find_atom_reply
,
4447 (dump_func
)dump_get_atom_information_reply
,
4450 (dump_func
)dump_init_atom_table_reply
,
4451 (dump_func
)dump_get_msg_queue_reply
,
4453 (dump_func
)dump_set_queue_mask_reply
,
4454 (dump_func
)dump_get_queue_status_reply
,
4455 (dump_func
)dump_get_process_idle_event_reply
,
4458 (dump_func
)dump_send_hardware_message_reply
,
4459 (dump_func
)dump_get_message_reply
,
4462 (dump_func
)dump_get_message_reply_reply
,
4463 (dump_func
)dump_set_win_timer_reply
,
4465 (dump_func
)dump_is_window_hung_reply
,
4466 (dump_func
)dump_get_serial_info_reply
,
4470 (dump_func
)dump_ioctl_reply
,
4471 (dump_func
)dump_get_ioctl_result_reply
,
4472 (dump_func
)dump_create_named_pipe_reply
,
4473 (dump_func
)dump_get_named_pipe_info_reply
,
4474 (dump_func
)dump_create_window_reply
,
4476 (dump_func
)dump_get_desktop_window_reply
,
4477 (dump_func
)dump_set_window_owner_reply
,
4478 (dump_func
)dump_get_window_info_reply
,
4479 (dump_func
)dump_set_window_info_reply
,
4480 (dump_func
)dump_set_parent_reply
,
4481 (dump_func
)dump_get_window_parents_reply
,
4482 (dump_func
)dump_get_window_children_reply
,
4483 (dump_func
)dump_get_window_children_from_point_reply
,
4484 (dump_func
)dump_get_window_tree_reply
,
4485 (dump_func
)dump_set_window_pos_reply
,
4486 (dump_func
)dump_get_window_rectangles_reply
,
4487 (dump_func
)dump_get_window_text_reply
,
4489 (dump_func
)dump_get_windows_offset_reply
,
4490 (dump_func
)dump_get_visible_region_reply
,
4491 (dump_func
)dump_get_surface_region_reply
,
4492 (dump_func
)dump_get_window_region_reply
,
4494 (dump_func
)dump_get_update_region_reply
,
4498 (dump_func
)dump_remove_window_property_reply
,
4499 (dump_func
)dump_get_window_property_reply
,
4500 (dump_func
)dump_get_window_properties_reply
,
4501 (dump_func
)dump_create_winstation_reply
,
4502 (dump_func
)dump_open_winstation_reply
,
4504 (dump_func
)dump_get_process_winstation_reply
,
4506 (dump_func
)dump_enum_winstation_reply
,
4507 (dump_func
)dump_create_desktop_reply
,
4508 (dump_func
)dump_open_desktop_reply
,
4510 (dump_func
)dump_get_thread_desktop_reply
,
4512 (dump_func
)dump_enum_desktop_reply
,
4513 (dump_func
)dump_set_user_object_info_reply
,
4514 (dump_func
)dump_register_hotkey_reply
,
4515 (dump_func
)dump_unregister_hotkey_reply
,
4517 (dump_func
)dump_get_thread_input_reply
,
4518 (dump_func
)dump_get_last_input_time_reply
,
4519 (dump_func
)dump_get_key_state_reply
,
4521 (dump_func
)dump_set_foreground_window_reply
,
4522 (dump_func
)dump_set_focus_window_reply
,
4523 (dump_func
)dump_set_active_window_reply
,
4524 (dump_func
)dump_set_capture_window_reply
,
4525 (dump_func
)dump_set_caret_window_reply
,
4526 (dump_func
)dump_set_caret_info_reply
,
4527 (dump_func
)dump_set_hook_reply
,
4528 (dump_func
)dump_remove_hook_reply
,
4529 (dump_func
)dump_start_hook_chain_reply
,
4531 (dump_func
)dump_get_hook_info_reply
,
4532 (dump_func
)dump_create_class_reply
,
4533 (dump_func
)dump_destroy_class_reply
,
4534 (dump_func
)dump_set_class_info_reply
,
4535 (dump_func
)dump_set_clipboard_info_reply
,
4536 (dump_func
)dump_open_token_reply
,
4537 (dump_func
)dump_set_global_windows_reply
,
4538 (dump_func
)dump_adjust_token_privileges_reply
,
4539 (dump_func
)dump_get_token_privileges_reply
,
4540 (dump_func
)dump_check_token_privileges_reply
,
4541 (dump_func
)dump_duplicate_token_reply
,
4542 (dump_func
)dump_access_check_reply
,
4543 (dump_func
)dump_get_token_sid_reply
,
4544 (dump_func
)dump_get_token_groups_reply
,
4545 (dump_func
)dump_get_token_default_dacl_reply
,
4548 (dump_func
)dump_get_security_object_reply
,
4549 (dump_func
)dump_create_mailslot_reply
,
4550 (dump_func
)dump_set_mailslot_info_reply
,
4551 (dump_func
)dump_create_directory_reply
,
4552 (dump_func
)dump_open_directory_reply
,
4553 (dump_func
)dump_get_directory_entry_reply
,
4554 (dump_func
)dump_create_symlink_reply
,
4555 (dump_func
)dump_open_symlink_reply
,
4556 (dump_func
)dump_query_symlink_reply
,
4557 (dump_func
)dump_get_object_info_reply
,
4559 (dump_func
)dump_get_token_impersonation_level_reply
,
4560 (dump_func
)dump_allocate_locally_unique_id_reply
,
4561 (dump_func
)dump_create_device_manager_reply
,
4562 (dump_func
)dump_create_device_reply
,
4564 (dump_func
)dump_get_next_device_request_reply
,
4565 (dump_func
)dump_make_process_system_reply
,
4566 (dump_func
)dump_get_token_statistics_reply
,
4567 (dump_func
)dump_create_completion_reply
,
4568 (dump_func
)dump_open_completion_reply
,
4570 (dump_func
)dump_remove_completion_reply
,
4571 (dump_func
)dump_query_completion_reply
,
4574 (dump_func
)dump_get_window_layered_info_reply
,
4576 (dump_func
)dump_alloc_user_handle_reply
,
4578 (dump_func
)dump_set_cursor_reply
,
4580 (dump_func
)dump_get_suspend_context_reply
,
4584 static const char * const req_names
[REQ_NB_REQUESTS
] = {
4586 "get_new_process_info",
4589 "init_process_done",
4591 "terminate_process",
4614 "create_keyed_event",
4620 "release_semaphore",
4624 "alloc_file_handle",
4625 "get_handle_unix_name",
4632 "accept_into_socket",
4636 "enable_socket_event",
4637 "set_socket_deferred",
4640 "get_console_renderer_events",
4642 "get_console_wait_event",
4645 "set_console_input_info",
4646 "get_console_input_info",
4647 "append_console_input_history",
4648 "get_console_input_history",
4649 "create_console_output",
4650 "set_console_output_info",
4651 "get_console_output_info",
4652 "write_console_input",
4653 "read_console_input",
4654 "write_console_output",
4655 "fill_console_output",
4656 "read_console_output",
4657 "move_console_output",
4658 "send_console_signal",
4659 "read_directory_changes",
4664 "get_mapping_committed_range",
4665 "add_mapping_committed_range",
4670 "queue_exception_event",
4671 "get_exception_status",
4672 "output_debug_string",
4673 "continue_debug_event",
4676 "set_debugger_kill_on_exit",
4677 "read_process_memory",
4678 "write_process_memory",
4691 "set_registry_notification",
4697 "get_thread_context",
4698 "set_thread_context",
4699 "get_selector_entry",
4703 "get_atom_information",
4704 "set_atom_information",
4711 "get_process_idle_event",
4713 "post_quit_message",
4714 "send_hardware_message",
4717 "accept_hardware_message",
4718 "get_message_reply",
4728 "create_named_pipe",
4729 "get_named_pipe_info",
4732 "get_desktop_window",
4737 "get_window_parents",
4738 "get_window_children",
4739 "get_window_children_from_point",
4742 "get_window_rectangles",
4745 "get_windows_offset",
4746 "get_visible_region",
4747 "get_surface_region",
4748 "get_window_region",
4749 "set_window_region",
4750 "get_update_region",
4751 "update_window_zorder",
4753 "set_window_property",
4754 "remove_window_property",
4755 "get_window_property",
4756 "get_window_properties",
4757 "create_winstation",
4760 "get_process_winstation",
4761 "set_process_winstation",
4766 "get_thread_desktop",
4767 "set_thread_desktop",
4769 "set_user_object_info",
4771 "unregister_hotkey",
4772 "attach_thread_input",
4774 "get_last_input_time",
4777 "set_foreground_window",
4779 "set_active_window",
4780 "set_capture_window",
4786 "finish_hook_chain",
4791 "set_clipboard_info",
4793 "set_global_windows",
4794 "adjust_token_privileges",
4795 "get_token_privileges",
4796 "check_token_privileges",
4801 "get_token_default_dacl",
4802 "set_token_default_dacl",
4803 "set_security_object",
4804 "get_security_object",
4806 "set_mailslot_info",
4809 "get_directory_entry",
4815 "get_token_impersonation_level",
4816 "allocate_locally_unique_id",
4817 "create_device_manager",
4820 "get_next_device_request",
4821 "make_process_system",
4822 "get_token_statistics",
4823 "create_completion",
4826 "remove_completion",
4828 "set_completion_info",
4829 "add_fd_completion",
4830 "get_window_layered_info",
4831 "set_window_layered_info",
4832 "alloc_user_handle",
4835 "update_rawinput_devices",
4836 "get_suspend_context",
4837 "set_suspend_context",
4846 { "ABANDONED_WAIT_0", STATUS_ABANDONED_WAIT_0
},
4847 { "ACCESS_DENIED", STATUS_ACCESS_DENIED
},
4848 { "ACCESS_VIOLATION", STATUS_ACCESS_VIOLATION
},
4849 { "ADDRESS_ALREADY_ASSOCIATED", STATUS_ADDRESS_ALREADY_ASSOCIATED
},
4850 { "ALERTED", STATUS_ALERTED
},
4851 { "ALIAS_EXISTS", STATUS_ALIAS_EXISTS
},
4852 { "BAD_DEVICE_TYPE", STATUS_BAD_DEVICE_TYPE
},
4853 { "BAD_IMPERSONATION_LEVEL", STATUS_BAD_IMPERSONATION_LEVEL
},
4854 { "BREAKPOINT", STATUS_BREAKPOINT
},
4855 { "BUFFER_OVERFLOW", STATUS_BUFFER_OVERFLOW
},
4856 { "BUFFER_TOO_SMALL", STATUS_BUFFER_TOO_SMALL
},
4857 { "CANCELLED", STATUS_CANCELLED
},
4858 { "CANNOT_DELETE", STATUS_CANNOT_DELETE
},
4859 { "CANT_OPEN_ANONYMOUS", STATUS_CANT_OPEN_ANONYMOUS
},
4860 { "CANT_WAIT", STATUS_CANT_WAIT
},
4861 { "CHILD_MUST_BE_VOLATILE", STATUS_CHILD_MUST_BE_VOLATILE
},
4862 { "CONNECTION_ABORTED", STATUS_CONNECTION_ABORTED
},
4863 { "CONNECTION_DISCONNECTED", STATUS_CONNECTION_DISCONNECTED
},
4864 { "CONNECTION_REFUSED", STATUS_CONNECTION_REFUSED
},
4865 { "CONNECTION_RESET", STATUS_CONNECTION_RESET
},
4866 { "DEBUGGER_INACTIVE", STATUS_DEBUGGER_INACTIVE
},
4867 { "DEVICE_BUSY", STATUS_DEVICE_BUSY
},
4868 { "DIRECTORY_NOT_EMPTY", STATUS_DIRECTORY_NOT_EMPTY
},
4869 { "DISK_FULL", STATUS_DISK_FULL
},
4870 { "DLL_NOT_FOUND", STATUS_DLL_NOT_FOUND
},
4871 { "ERROR_CLASS_ALREADY_EXISTS", 0xc0010000 | ERROR_CLASS_ALREADY_EXISTS
},
4872 { "ERROR_CLASS_DOES_NOT_EXIST", 0xc0010000 | ERROR_CLASS_DOES_NOT_EXIST
},
4873 { "ERROR_CLASS_HAS_WINDOWS", 0xc0010000 | ERROR_CLASS_HAS_WINDOWS
},
4874 { "ERROR_CLIPBOARD_NOT_OPEN", 0xc0010000 | ERROR_CLIPBOARD_NOT_OPEN
},
4875 { "ERROR_HOTKEY_ALREADY_REGISTERED", 0xc0010000 | ERROR_HOTKEY_ALREADY_REGISTERED
},
4876 { "ERROR_HOTKEY_NOT_REGISTERED", 0xc0010000 | ERROR_HOTKEY_NOT_REGISTERED
},
4877 { "ERROR_INVALID_CURSOR_HANDLE", 0xc0010000 | ERROR_INVALID_CURSOR_HANDLE
},
4878 { "ERROR_INVALID_INDEX", 0xc0010000 | ERROR_INVALID_INDEX
},
4879 { "ERROR_INVALID_WINDOW_HANDLE", 0xc0010000 | ERROR_INVALID_WINDOW_HANDLE
},
4880 { "ERROR_WINDOW_OF_OTHER_THREAD", 0xc0010000 | ERROR_WINDOW_OF_OTHER_THREAD
},
4881 { "FILE_DELETED", STATUS_FILE_DELETED
},
4882 { "FILE_IS_A_DIRECTORY", STATUS_FILE_IS_A_DIRECTORY
},
4883 { "FILE_LOCK_CONFLICT", STATUS_FILE_LOCK_CONFLICT
},
4884 { "GENERIC_NOT_MAPPED", STATUS_GENERIC_NOT_MAPPED
},
4885 { "HANDLES_CLOSED", STATUS_HANDLES_CLOSED
},
4886 { "HANDLE_NOT_CLOSABLE", STATUS_HANDLE_NOT_CLOSABLE
},
4887 { "HOST_UNREACHABLE", STATUS_HOST_UNREACHABLE
},
4888 { "ILLEGAL_FUNCTION", STATUS_ILLEGAL_FUNCTION
},
4889 { "INSTANCE_NOT_AVAILABLE", STATUS_INSTANCE_NOT_AVAILABLE
},
4890 { "INSUFFICIENT_RESOURCES", STATUS_INSUFFICIENT_RESOURCES
},
4891 { "INVALID_CID", STATUS_INVALID_CID
},
4892 { "INVALID_DEVICE_REQUEST", STATUS_INVALID_DEVICE_REQUEST
},
4893 { "INVALID_FILE_FOR_SECTION", STATUS_INVALID_FILE_FOR_SECTION
},
4894 { "INVALID_HANDLE", STATUS_INVALID_HANDLE
},
4895 { "INVALID_PARAMETER", STATUS_INVALID_PARAMETER
},
4896 { "INVALID_SECURITY_DESCR", STATUS_INVALID_SECURITY_DESCR
},
4897 { "IO_TIMEOUT", STATUS_IO_TIMEOUT
},
4898 { "KEY_DELETED", STATUS_KEY_DELETED
},
4899 { "MAPPED_FILE_SIZE_ZERO", STATUS_MAPPED_FILE_SIZE_ZERO
},
4900 { "MORE_PROCESSING_REQUIRED", STATUS_MORE_PROCESSING_REQUIRED
},
4901 { "MUTANT_NOT_OWNED", STATUS_MUTANT_NOT_OWNED
},
4902 { "NAME_TOO_LONG", STATUS_NAME_TOO_LONG
},
4903 { "NETWORK_BUSY", STATUS_NETWORK_BUSY
},
4904 { "NETWORK_UNREACHABLE", STATUS_NETWORK_UNREACHABLE
},
4905 { "NOTIFY_ENUM_DIR", STATUS_NOTIFY_ENUM_DIR
},
4906 { "NOT_ALL_ASSIGNED", STATUS_NOT_ALL_ASSIGNED
},
4907 { "NOT_A_DIRECTORY", STATUS_NOT_A_DIRECTORY
},
4908 { "NOT_FOUND", STATUS_NOT_FOUND
},
4909 { "NOT_IMPLEMENTED", STATUS_NOT_IMPLEMENTED
},
4910 { "NOT_REGISTRY_FILE", STATUS_NOT_REGISTRY_FILE
},
4911 { "NOT_SUPPORTED", STATUS_NOT_SUPPORTED
},
4912 { "NO_DATA_DETECTED", STATUS_NO_DATA_DETECTED
},
4913 { "NO_IMPERSONATION_TOKEN", STATUS_NO_IMPERSONATION_TOKEN
},
4914 { "NO_MEMORY", STATUS_NO_MEMORY
},
4915 { "NO_MORE_ENTRIES", STATUS_NO_MORE_ENTRIES
},
4916 { "NO_MORE_FILES", STATUS_NO_MORE_FILES
},
4917 { "NO_SUCH_DEVICE", STATUS_NO_SUCH_DEVICE
},
4918 { "NO_SUCH_FILE", STATUS_NO_SUCH_FILE
},
4919 { "NO_TOKEN", STATUS_NO_TOKEN
},
4920 { "OBJECT_NAME_COLLISION", STATUS_OBJECT_NAME_COLLISION
},
4921 { "OBJECT_NAME_EXISTS", STATUS_OBJECT_NAME_EXISTS
},
4922 { "OBJECT_NAME_INVALID", STATUS_OBJECT_NAME_INVALID
},
4923 { "OBJECT_NAME_NOT_FOUND", STATUS_OBJECT_NAME_NOT_FOUND
},
4924 { "OBJECT_PATH_INVALID", STATUS_OBJECT_PATH_INVALID
},
4925 { "OBJECT_PATH_NOT_FOUND", STATUS_OBJECT_PATH_NOT_FOUND
},
4926 { "OBJECT_PATH_SYNTAX_BAD", STATUS_OBJECT_PATH_SYNTAX_BAD
},
4927 { "OBJECT_TYPE_MISMATCH", STATUS_OBJECT_TYPE_MISMATCH
},
4928 { "PENDING", STATUS_PENDING
},
4929 { "PIPE_BUSY", STATUS_PIPE_BUSY
},
4930 { "PIPE_CONNECTED", STATUS_PIPE_CONNECTED
},
4931 { "PIPE_DISCONNECTED", STATUS_PIPE_DISCONNECTED
},
4932 { "PIPE_LISTENING", STATUS_PIPE_LISTENING
},
4933 { "PIPE_NOT_AVAILABLE", STATUS_PIPE_NOT_AVAILABLE
},
4934 { "PRIVILEGE_NOT_HELD", STATUS_PRIVILEGE_NOT_HELD
},
4935 { "PROCESS_IS_TERMINATING", STATUS_PROCESS_IS_TERMINATING
},
4936 { "SECTION_TOO_BIG", STATUS_SECTION_TOO_BIG
},
4937 { "SEMAPHORE_LIMIT_EXCEEDED", STATUS_SEMAPHORE_LIMIT_EXCEEDED
},
4938 { "SHARING_VIOLATION", STATUS_SHARING_VIOLATION
},
4939 { "SHUTDOWN_IN_PROGRESS", STATUS_SHUTDOWN_IN_PROGRESS
},
4940 { "SUSPEND_COUNT_EXCEEDED", STATUS_SUSPEND_COUNT_EXCEEDED
},
4941 { "THREAD_IS_TERMINATING", STATUS_THREAD_IS_TERMINATING
},
4942 { "TIMEOUT", STATUS_TIMEOUT
},
4943 { "TOO_MANY_OPENED_FILES", STATUS_TOO_MANY_OPENED_FILES
},
4944 { "UNSUCCESSFUL", STATUS_UNSUCCESSFUL
},
4945 { "USER_APC", STATUS_USER_APC
},
4946 { "USER_MAPPED_FILE", STATUS_USER_MAPPED_FILE
},
4947 { "VOLUME_DISMOUNTED", STATUS_VOLUME_DISMOUNTED
},
4948 { "WAS_LOCKED", STATUS_WAS_LOCKED
},
4952 /* ### make_requests end ### */
4953 /* Everything above this line is generated automatically by tools/make_requests */
4955 static const char *get_status_name( unsigned int status
)
4958 static char buffer
[10];
4962 for (i
= 0; status_names
[i
].name
; i
++)
4963 if (status_names
[i
].value
== status
) return status_names
[i
].name
;
4965 sprintf( buffer
, "%x", status
);
4969 void trace_request(void)
4971 enum request req
= current
->req
.request_header
.req
;
4972 if (req
< REQ_NB_REQUESTS
)
4974 fprintf( stderr
, "%04x: %s(", current
->id
, req_names
[req
] );
4975 if (req_dumpers
[req
])
4977 cur_data
= get_req_data();
4978 cur_size
= get_req_data_size();
4979 req_dumpers
[req
]( ¤t
->req
);
4981 fprintf( stderr
, " )\n" );
4983 else fprintf( stderr
, "%04x: %d(?)\n", current
->id
, req
);
4986 void trace_reply( enum request req
, const union generic_reply
*reply
)
4988 if (req
< REQ_NB_REQUESTS
)
4990 fprintf( stderr
, "%04x: %s() = %s",
4991 current
->id
, req_names
[req
], get_status_name(current
->error
) );
4992 if (reply_dumpers
[req
])
4994 fprintf( stderr
, " {" );
4995 cur_data
= current
->reply_data
;
4996 cur_size
= reply
->reply_header
.reply_size
;
4997 reply_dumpers
[req
]( reply
);
4998 fprintf( stderr
, " }" );
5000 fputc( '\n', stderr
);
5002 else fprintf( stderr
, "%04x: %d() = %s\n",
5003 current
->id
, req
, get_status_name(current
->error
) );