2 * Server request tracing
4 * Copyright (C) 1999 Alexandre Julliard
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
22 #include "wine/port.h"
27 #include <sys/types.h>
34 #define WIN32_NO_STATUS
45 static const void *cur_data
;
46 static data_size_t cur_size
;
48 static const char *get_status_name( unsigned int status
);
50 /* utility functions */
52 static inline void remove_data( data_size_t size
)
54 cur_data
= (const char *)cur_data
+ size
;
58 static void dump_uints( const int *ptr
, int len
)
63 fprintf( stderr
, "%08x", *ptr
++ );
64 if (--len
) fputc( ',', stderr
);
69 static void dump_handles( const char *prefix
, const obj_handle_t
*data
, data_size_t size
)
71 data_size_t len
= size
/ sizeof(*data
);
73 fprintf( stderr
,"%s{", prefix
);
76 fprintf( stderr
, "%04x", *data
++ );
77 if (--len
) fputc( ',', stderr
);
82 static void dump_timeout( const char *prefix
, const timeout_t
*time
)
84 fprintf( stderr
, "%s%s", prefix
, get_timeout_str(*time
) );
87 static void dump_uint64( const char *prefix
, const unsigned __int64
*val
)
89 if ((unsigned int)*val
!= *val
)
90 fprintf( stderr
, "%s%x%08x", prefix
, (unsigned int)(*val
>> 32), (unsigned int)*val
);
92 fprintf( stderr
, "%s%08x", prefix
, (unsigned int)*val
);
95 static void dump_rectangle( const char *prefix
, const rectangle_t
*rect
)
97 fprintf( stderr
, "%s{%d,%d;%d,%d}", prefix
,
98 rect
->left
, rect
->top
, rect
->right
, rect
->bottom
);
101 static void dump_char_info( const char *prefix
, const char_info_t
*info
)
103 fprintf( stderr
, "%s{'", prefix
);
104 dump_strW( &info
->ch
, 1, stderr
, "\'\'" );
105 fprintf( stderr
, "',%04x}", info
->attr
);
108 static void dump_ioctl_code( const char *prefix
, const ioctl_code_t
*code
)
112 #define CASE(c) case c: fprintf( stderr, "%s%s", prefix, #c ); break
113 CASE(FSCTL_DISMOUNT_VOLUME
);
114 CASE(FSCTL_PIPE_DISCONNECT
);
115 CASE(FSCTL_PIPE_LISTEN
);
116 CASE(FSCTL_PIPE_WAIT
);
117 default: fprintf( stderr
, "%s%08x", prefix
, *code
); break;
122 static void dump_cpu_type( const char *prefix
, const cpu_type_t
*code
)
126 #define CASE(c) case CPU_##c: fprintf( stderr, "%s%s", prefix, #c ); break
132 default: fprintf( stderr
, "%s%u", prefix
, *code
); break;
137 static void dump_apc_call( const char *prefix
, const apc_call_t
*call
)
139 fprintf( stderr
, "%s{", prefix
);
143 fprintf( stderr
, "APC_NONE" );
146 dump_uint64( "APC_USER,func=", &call
->user
.func
);
147 dump_uint64( ",args={", &call
->user
.args
[0] );
148 dump_uint64( ",", &call
->user
.args
[1] );
149 dump_uint64( ",", &call
->user
.args
[2] );
150 fputc( '}', stderr
);
153 dump_timeout( "APC_TIMER,time=", &call
->timer
.time
);
154 dump_uint64( ",arg=", &call
->timer
.arg
);
157 dump_uint64( "APC_ASYNC_IO,func=", &call
->async_io
.func
);
158 dump_uint64( ",user=", &call
->async_io
.user
);
159 dump_uint64( ",sb=", &call
->async_io
.sb
);
160 fprintf( stderr
, ",status=%s", get_status_name(call
->async_io
.status
) );
162 case APC_VIRTUAL_ALLOC
:
163 dump_uint64( "APC_VIRTUAL_ALLOC,addr==", &call
->virtual_alloc
.addr
);
164 dump_uint64( ",size=", &call
->virtual_alloc
.size
);
165 fprintf( stderr
, ",zero_bits=%u,op_type=%x,prot=%x",
166 call
->virtual_alloc
.zero_bits
, call
->virtual_alloc
.op_type
,
167 call
->virtual_alloc
.prot
);
169 case APC_VIRTUAL_FREE
:
170 dump_uint64( "APC_VIRTUAL_FREE,addr=", &call
->virtual_free
.addr
);
171 dump_uint64( ",size=", &call
->virtual_free
.size
);
172 fprintf( stderr
, ",op_type=%x", call
->virtual_free
.op_type
);
174 case APC_VIRTUAL_QUERY
:
175 dump_uint64( "APC_VIRTUAL_QUERY,addr=", &call
->virtual_query
.addr
);
177 case APC_VIRTUAL_PROTECT
:
178 dump_uint64( "APC_VIRTUAL_PROTECT,addr=", &call
->virtual_protect
.addr
);
179 dump_uint64( ",size=", &call
->virtual_protect
.size
);
180 fprintf( stderr
, ",prot=%x", call
->virtual_protect
.prot
);
182 case APC_VIRTUAL_FLUSH
:
183 dump_uint64( "APC_VIRTUAL_FLUSH,addr=", &call
->virtual_flush
.addr
);
184 dump_uint64( ",size=", &call
->virtual_flush
.size
);
186 case APC_VIRTUAL_LOCK
:
187 dump_uint64( "APC_VIRTUAL_LOCK,addr=", &call
->virtual_lock
.addr
);
188 dump_uint64( ",size=", &call
->virtual_lock
.size
);
190 case APC_VIRTUAL_UNLOCK
:
191 dump_uint64( "APC_VIRTUAL_UNLOCK,addr=", &call
->virtual_unlock
.addr
);
192 dump_uint64( ",size=", &call
->virtual_unlock
.size
);
195 fprintf( stderr
, "APC_MAP_VIEW,handle=%04x", call
->map_view
.handle
);
196 dump_uint64( ",addr=", &call
->map_view
.addr
);
197 dump_uint64( ",size=", &call
->map_view
.size
);
198 dump_uint64( ",offset=", &call
->map_view
.offset
);
199 fprintf( stderr
, ",zero_bits=%u,alloc_type=%x,prot=%x",
200 call
->map_view
.zero_bits
, call
->map_view
.alloc_type
, call
->map_view
.prot
);
203 dump_uint64( "APC_UNMAP_VIEW,addr=", &call
->unmap_view
.addr
);
205 case APC_CREATE_THREAD
:
206 dump_uint64( "APC_CREATE_THREAD,func=", &call
->create_thread
.func
);
207 dump_uint64( ",arg=", &call
->create_thread
.arg
);
208 dump_uint64( ",reserve=", &call
->create_thread
.reserve
);
209 dump_uint64( ",commit=", &call
->create_thread
.commit
);
210 fprintf( stderr
, ",suspend=%u", call
->create_thread
.suspend
);
213 fprintf( stderr
, "type=%u", call
->type
);
216 fputc( '}', stderr
);
219 static void dump_apc_result( const char *prefix
, const apc_result_t
*result
)
221 fprintf( stderr
, "%s{", prefix
);
227 fprintf( stderr
, "APC_ASYNC_IO,status=%s,total=%u",
228 get_status_name( result
->async_io
.status
), result
->async_io
.total
);
229 dump_uint64( ",apc=", &result
->async_io
.apc
);
230 dump_uint64( ",arg=", &result
->async_io
.arg
);
232 case APC_VIRTUAL_ALLOC
:
233 fprintf( stderr
, "APC_VIRTUAL_ALLOC,status=%s",
234 get_status_name( result
->virtual_alloc
.status
));
235 dump_uint64( ",addr=", &result
->virtual_alloc
.addr
);
236 dump_uint64( ",size=", &result
->virtual_alloc
.size
);
238 case APC_VIRTUAL_FREE
:
239 fprintf( stderr
, "APC_VIRTUAL_FREE,status=%s",
240 get_status_name( result
->virtual_free
.status
));
241 dump_uint64( ",addr=", &result
->virtual_free
.addr
);
242 dump_uint64( ",size=", &result
->virtual_free
.size
);
244 case APC_VIRTUAL_QUERY
:
245 fprintf( stderr
, "APC_VIRTUAL_QUERY,status=%s",
246 get_status_name( result
->virtual_query
.status
));
247 dump_uint64( ",base=", &result
->virtual_query
.base
);
248 dump_uint64( ",alloc_base=", &result
->virtual_query
.alloc_base
);
249 dump_uint64( ",size=", &result
->virtual_query
.size
);
250 fprintf( stderr
, ",state=%x,prot=%x,alloc_prot=%x,alloc_type=%x",
251 result
->virtual_query
.state
, result
->virtual_query
.prot
,
252 result
->virtual_query
.alloc_prot
, result
->virtual_query
.alloc_type
);
254 case APC_VIRTUAL_PROTECT
:
255 fprintf( stderr
, "APC_VIRTUAL_PROTECT,status=%s",
256 get_status_name( result
->virtual_protect
.status
));
257 dump_uint64( ",addr=", &result
->virtual_protect
.addr
);
258 dump_uint64( ",size=", &result
->virtual_protect
.size
);
259 fprintf( stderr
, ",prot=%x", result
->virtual_protect
.prot
);
261 case APC_VIRTUAL_FLUSH
:
262 fprintf( stderr
, "APC_VIRTUAL_FLUSH,status=%s",
263 get_status_name( result
->virtual_flush
.status
));
264 dump_uint64( ",addr=", &result
->virtual_flush
.addr
);
265 dump_uint64( ",size=", &result
->virtual_flush
.size
);
267 case APC_VIRTUAL_LOCK
:
268 fprintf( stderr
, "APC_VIRTUAL_LOCK,status=%s",
269 get_status_name( result
->virtual_lock
.status
));
270 dump_uint64( ",addr=", &result
->virtual_lock
.addr
);
271 dump_uint64( ",size=", &result
->virtual_lock
.size
);
273 case APC_VIRTUAL_UNLOCK
:
274 fprintf( stderr
, "APC_VIRTUAL_UNLOCK,status=%s",
275 get_status_name( result
->virtual_unlock
.status
));
276 dump_uint64( ",addr=", &result
->virtual_unlock
.addr
);
277 dump_uint64( ",size=", &result
->virtual_unlock
.size
);
280 fprintf( stderr
, "APC_MAP_VIEW,status=%s",
281 get_status_name( result
->map_view
.status
));
282 dump_uint64( ",addr=", &result
->map_view
.addr
);
283 dump_uint64( ",size=", &result
->map_view
.size
);
286 fprintf( stderr
, "APC_UNMAP_VIEW,status=%s",
287 get_status_name( result
->unmap_view
.status
) );
289 case APC_CREATE_THREAD
:
290 fprintf( stderr
, "APC_CREATE_THREAD,status=%s,tid=%04x,handle=%04x",
291 get_status_name( result
->create_thread
.status
),
292 result
->create_thread
.tid
, result
->create_thread
.handle
);
295 fprintf( stderr
, "type=%u", result
->type
);
298 fputc( '}', stderr
);
301 static void dump_async_data( const char *prefix
, const async_data_t
*data
)
303 fprintf( stderr
, "%s{handle=%04x,event=%04x", prefix
, data
->handle
, data
->event
);
304 dump_uint64( ",callback=", &data
->callback
);
305 dump_uint64( ",iosb=", &data
->iosb
);
306 dump_uint64( ",arg=", &data
->arg
);
307 dump_uint64( ",cvalue=", &data
->cvalue
);
308 fputc( '}', stderr
);
311 static void dump_hw_input( const char *prefix
, const hw_input_t
*input
)
316 fprintf( stderr
, "%s{type=MOUSE,x=%d,y=%d,data=%08x,flags=%08x,time=%u",
317 prefix
, input
->mouse
.x
, input
->mouse
.y
, input
->mouse
.data
, input
->mouse
.flags
,
319 dump_uint64( ",info=", &input
->mouse
.info
);
320 fputc( '}', stderr
);
323 fprintf( stderr
, "%s{type=KEYBOARD,vkey=%04hx,scan=%04hx,flags=%08x,time=%u",
324 prefix
, input
->kbd
.vkey
, input
->kbd
.scan
, input
->kbd
.flags
, input
->kbd
.time
);
325 dump_uint64( ",info=", &input
->kbd
.info
);
326 fputc( '}', stderr
);
329 fprintf( stderr
, "%s{type=HARDWARE,msg=%04x", prefix
, input
->hw
.msg
);
330 dump_uint64( ",lparam=", &input
->hw
.lparam
);
331 fputc( '}', stderr
);
334 fprintf( stderr
, "%s{type=%04x}", prefix
, input
->type
);
339 static void dump_luid( const char *prefix
, const luid_t
*luid
)
341 fprintf( stderr
, "%s%d.%u", prefix
, luid
->high_part
, luid
->low_part
);
344 static void dump_varargs_ints( const char *prefix
, data_size_t size
)
346 const int *data
= cur_data
;
347 data_size_t len
= size
/ sizeof(*data
);
349 fprintf( stderr
,"%s{", prefix
);
352 fprintf( stderr
, "%d", *data
++ );
353 if (--len
) fputc( ',', stderr
);
355 fputc( '}', stderr
);
359 static void dump_varargs_uints64( const char *prefix
, data_size_t size
)
361 const unsigned __int64
*data
= cur_data
;
362 data_size_t len
= size
/ sizeof(*data
);
364 fprintf( stderr
,"%s{", prefix
);
367 dump_uint64( "", data
++ );
368 if (--len
) fputc( ',', stderr
);
370 fputc( '}', stderr
);
374 static void dump_varargs_apc_result( const char *prefix
, data_size_t size
)
376 const apc_result_t
*result
= cur_data
;
378 if (size
>= sizeof(*result
))
380 dump_apc_result( prefix
, result
);
381 size
= sizeof(*result
);
386 static void dump_varargs_select_op( const char *prefix
, data_size_t size
)
392 fprintf( stderr
, "%s{}", prefix
);
395 memset( &data
, 0, sizeof(data
) );
396 memcpy( &data
, cur_data
, min( size
, sizeof(data
) ));
398 fprintf( stderr
, "%s{", prefix
);
402 fprintf( stderr
, "NONE" );
405 case SELECT_WAIT_ALL
:
406 fprintf( stderr
, "%s", data
.op
== SELECT_WAIT
? "WAIT" : "WAIT_ALL" );
407 if (size
> offsetof( select_op_t
, wait
.handles
))
408 dump_handles( ",handles=", data
.wait
.handles
,
409 min( size
, sizeof(data
.wait
) ) - offsetof( select_op_t
, wait
.handles
));
411 case SELECT_SIGNAL_AND_WAIT
:
412 fprintf( stderr
, "SIGNAL_AND_WAIT,signal=%04x,wait=%04x",
413 data
.signal_and_wait
.signal
, data
.signal_and_wait
.wait
);
415 case SELECT_KEYED_EVENT_WAIT
:
416 case SELECT_KEYED_EVENT_RELEASE
:
417 fprintf( stderr
, "KEYED_EVENT_%s,handle=%04x",
418 data
.op
== SELECT_KEYED_EVENT_WAIT
? "WAIT" : "RELEASE",
419 data
.keyed_event
.handle
);
420 dump_uint64( ",key=", &data
.keyed_event
.key
);
423 fprintf( stderr
, "op=%u", data
.op
);
426 fputc( '}', stderr
);
430 static void dump_varargs_user_handles( const char *prefix
, data_size_t size
)
432 const user_handle_t
*data
= cur_data
;
433 data_size_t len
= size
/ sizeof(*data
);
435 fprintf( stderr
,"%s{", prefix
);
438 fprintf( stderr
, "%08x", *data
++ );
439 if (--len
) fputc( ',', stderr
);
441 fputc( '}', stderr
);
445 static void dump_varargs_bytes( const char *prefix
, data_size_t size
)
447 const unsigned char *data
= cur_data
;
448 data_size_t len
= min( 1024, size
);
450 fprintf( stderr
,"%s{", prefix
);
453 fprintf( stderr
, "%02x", *data
++ );
454 if (--len
) fputc( ',', stderr
);
456 if (size
> 1024) fprintf( stderr
, "...(total %u)", size
);
457 fputc( '}', stderr
);
461 static void dump_varargs_string( const char *prefix
, data_size_t size
)
463 fprintf( stderr
, "%s\"%.*s\"", prefix
, (int)size
, (const char *)cur_data
);
467 static void dump_varargs_unicode_str( const char *prefix
, data_size_t size
)
469 fprintf( stderr
, "%sL\"", prefix
);
470 dump_strW( cur_data
, size
/ sizeof(WCHAR
), stderr
, "\"\"" );
471 fputc( '\"', stderr
);
475 static void dump_varargs_context( const char *prefix
, data_size_t size
)
477 const context_t
*context
= cur_data
;
483 fprintf( stderr
, "%s{}", prefix
);
486 size
= min( size
, sizeof(ctx
) );
487 memset( &ctx
, 0, sizeof(ctx
) );
488 memcpy( &ctx
, context
, size
);
490 fprintf( stderr
,"%s{", prefix
);
491 dump_cpu_type( "cpu=", &ctx
.cpu
);
495 if (ctx
.flags
& SERVER_CTX_CONTROL
)
496 fprintf( stderr
, ",eip=%08x,esp=%08x,ebp=%08x,eflags=%08x,cs=%04x,ss=%04x",
497 ctx
.ctl
.i386_regs
.eip
, ctx
.ctl
.i386_regs
.esp
, ctx
.ctl
.i386_regs
.ebp
,
498 ctx
.ctl
.i386_regs
.eflags
, ctx
.ctl
.i386_regs
.cs
, ctx
.ctl
.i386_regs
.ss
);
499 if (ctx
.flags
& SERVER_CTX_SEGMENTS
)
500 fprintf( stderr
, ",ds=%04x,es=%04x,fs=%04x,gs=%04x",
501 ctx
.seg
.i386_regs
.ds
, ctx
.seg
.i386_regs
.es
,
502 ctx
.seg
.i386_regs
.fs
, ctx
.seg
.i386_regs
.gs
);
503 if (ctx
.flags
& SERVER_CTX_INTEGER
)
504 fprintf( stderr
, ",eax=%08x,ebx=%08x,ecx=%08x,edx=%08x,esi=%08x,edi=%08x",
505 ctx
.integer
.i386_regs
.eax
, ctx
.integer
.i386_regs
.ebx
, ctx
.integer
.i386_regs
.ecx
,
506 ctx
.integer
.i386_regs
.edx
, ctx
.integer
.i386_regs
.esi
, ctx
.integer
.i386_regs
.edi
);
507 if (ctx
.flags
& SERVER_CTX_DEBUG_REGISTERS
)
508 fprintf( stderr
, ",dr0=%08x,dr1=%08x,dr2=%08x,dr3=%08x,dr6=%08x,dr7=%08x",
509 ctx
.debug
.i386_regs
.dr0
, ctx
.debug
.i386_regs
.dr1
, ctx
.debug
.i386_regs
.dr2
,
510 ctx
.debug
.i386_regs
.dr3
, ctx
.debug
.i386_regs
.dr6
, ctx
.debug
.i386_regs
.dr7
);
511 if (ctx
.flags
& SERVER_CTX_FLOATING_POINT
)
513 fprintf( stderr
, ",fp.ctrl=%08x,fp.status=%08x,fp.tag=%08x,fp.err_off=%08x,fp.err_sel=%08x",
514 ctx
.fp
.i386_regs
.ctrl
, ctx
.fp
.i386_regs
.status
, ctx
.fp
.i386_regs
.tag
,
515 ctx
.fp
.i386_regs
.err_off
, ctx
.fp
.i386_regs
.err_sel
);
516 fprintf( stderr
, ",fp.data_off=%08x,fp.data_sel=%08x,fp.cr0npx=%08x",
517 ctx
.fp
.i386_regs
.data_off
, ctx
.fp
.i386_regs
.data_sel
, ctx
.fp
.i386_regs
.cr0npx
);
518 for (i
= 0; i
< 8; i
++)
519 fprintf( stderr
, ",fp.reg%u=%Lg", i
, *(long double *)&ctx
.fp
.i386_regs
.regs
[10*i
] );
521 if (ctx
.flags
& SERVER_CTX_EXTENDED_REGISTERS
)
523 fprintf( stderr
, ",extended=" );
524 dump_uints( (const int *)ctx
.ext
.i386_regs
, sizeof(ctx
.ext
.i386_regs
) / sizeof(int) );
528 if (ctx
.flags
& SERVER_CTX_CONTROL
)
530 dump_uint64( ",rip=", &ctx
.ctl
.x86_64_regs
.rip
);
531 dump_uint64( ",rbp=", &ctx
.ctl
.x86_64_regs
.rbp
);
532 dump_uint64( ",rsp=", &ctx
.ctl
.x86_64_regs
.rsp
);
533 fprintf( stderr
, ",cs=%04x,ss=%04x,flags=%08x",
534 ctx
.ctl
.x86_64_regs
.cs
, ctx
.ctl
.x86_64_regs
.ss
, ctx
.ctl
.x86_64_regs
.flags
);
536 if (ctx
.flags
& SERVER_CTX_INTEGER
)
538 dump_uint64( ",rax=", &ctx
.integer
.x86_64_regs
.rax
);
539 dump_uint64( ",rbx=", &ctx
.integer
.x86_64_regs
.rbx
);
540 dump_uint64( ",rcx=", &ctx
.integer
.x86_64_regs
.rcx
);
541 dump_uint64( ",rdx=", &ctx
.integer
.x86_64_regs
.rdx
);
542 dump_uint64( ",rsi=", &ctx
.integer
.x86_64_regs
.rsi
);
543 dump_uint64( ",rdi=", &ctx
.integer
.x86_64_regs
.rdi
);
544 dump_uint64( ",r8=", &ctx
.integer
.x86_64_regs
.r8
);
545 dump_uint64( ",r9=", &ctx
.integer
.x86_64_regs
.r9
);
546 dump_uint64( ",r10=", &ctx
.integer
.x86_64_regs
.r10
);
547 dump_uint64( ",r11=", &ctx
.integer
.x86_64_regs
.r11
);
548 dump_uint64( ",r12=", &ctx
.integer
.x86_64_regs
.r12
);
549 dump_uint64( ",r13=", &ctx
.integer
.x86_64_regs
.r13
);
550 dump_uint64( ",r14=", &ctx
.integer
.x86_64_regs
.r14
);
551 dump_uint64( ",r15=", &ctx
.integer
.x86_64_regs
.r15
);
553 if (ctx
.flags
& SERVER_CTX_SEGMENTS
)
554 fprintf( stderr
, ",ds=%04x,es=%04x,fs=%04x,gs=%04x",
555 ctx
.seg
.x86_64_regs
.ds
, ctx
.seg
.x86_64_regs
.es
,
556 ctx
.seg
.x86_64_regs
.fs
, ctx
.seg
.x86_64_regs
.gs
);
557 if (ctx
.flags
& SERVER_CTX_DEBUG_REGISTERS
)
559 dump_uint64( ",dr0=", &ctx
.debug
.x86_64_regs
.dr0
);
560 dump_uint64( ",dr1=", &ctx
.debug
.x86_64_regs
.dr1
);
561 dump_uint64( ",dr2=", &ctx
.debug
.x86_64_regs
.dr2
);
562 dump_uint64( ",dr3=", &ctx
.debug
.x86_64_regs
.dr3
);
563 dump_uint64( ",dr6=", &ctx
.debug
.x86_64_regs
.dr6
);
564 dump_uint64( ",dr7=", &ctx
.debug
.x86_64_regs
.dr7
);
566 if (ctx
.flags
& SERVER_CTX_FLOATING_POINT
)
568 for (i
= 0; i
< 32; i
++)
569 fprintf( stderr
, ",fp%u=%08x%08x%08x%08x", i
,
570 (unsigned int)(ctx
.fp
.x86_64_regs
.fpregs
[i
].high
>> 32),
571 (unsigned int)ctx
.fp
.x86_64_regs
.fpregs
[i
].high
,
572 (unsigned int)(ctx
.fp
.x86_64_regs
.fpregs
[i
].low
>> 32),
573 (unsigned int)ctx
.fp
.x86_64_regs
.fpregs
[i
].low
);
577 if (ctx
.flags
& SERVER_CTX_CONTROL
)
578 fprintf( stderr
, ",iar=%08x,msr=%08x,ctr=%08x,lr=%08x,dar=%08x,dsisr=%08x,trap=%08x",
579 ctx
.ctl
.powerpc_regs
.iar
, ctx
.ctl
.powerpc_regs
.msr
, ctx
.ctl
.powerpc_regs
.ctr
,
580 ctx
.ctl
.powerpc_regs
.lr
, ctx
.ctl
.powerpc_regs
.dar
, ctx
.ctl
.powerpc_regs
.dsisr
,
581 ctx
.ctl
.powerpc_regs
.trap
);
582 if (ctx
.flags
& SERVER_CTX_INTEGER
)
584 for (i
= 0; i
< 32; i
++) fprintf( stderr
, ",gpr%u=%08x", i
, ctx
.integer
.powerpc_regs
.gpr
[i
] );
585 fprintf( stderr
, ",cr=%08x,xer=%08x",
586 ctx
.integer
.powerpc_regs
.cr
, ctx
.integer
.powerpc_regs
.xer
);
588 if (ctx
.flags
& SERVER_CTX_DEBUG_REGISTERS
)
589 for (i
= 0; i
< 8; i
++) fprintf( stderr
, ",dr%u=%08x", i
, ctx
.debug
.powerpc_regs
.dr
[i
] );
590 if (ctx
.flags
& SERVER_CTX_FLOATING_POINT
)
592 for (i
= 0; i
< 32; i
++) fprintf( stderr
, ",fpr%u=%g", i
, ctx
.fp
.powerpc_regs
.fpr
[i
] );
593 fprintf( stderr
, ",fpscr=%g", ctx
.fp
.powerpc_regs
.fpscr
);
597 if (ctx
.flags
& SERVER_CTX_CONTROL
)
598 fprintf( stderr
, ",sp=%08x,lr=%08x,pc=%08x,cpsr=%08x",
599 ctx
.ctl
.arm_regs
.sp
, ctx
.ctl
.arm_regs
.lr
,
600 ctx
.ctl
.arm_regs
.pc
, ctx
.ctl
.arm_regs
.cpsr
);
601 if (ctx
.flags
& SERVER_CTX_INTEGER
)
602 for (i
= 0; i
< 13; i
++) fprintf( stderr
, ",r%u=%08x", i
, ctx
.integer
.arm_regs
.r
[i
] );
605 if (ctx
.flags
& SERVER_CTX_CONTROL
)
607 dump_uint64( ",sp=", &ctx
.ctl
.arm64_regs
.sp
);
608 dump_uint64( ",pc=", &ctx
.ctl
.arm64_regs
.pc
);
609 dump_uint64( ",pstate=", &ctx
.ctl
.arm64_regs
.pstate
);
611 if (ctx
.flags
& SERVER_CTX_INTEGER
)
613 dump_uint64( ",x0=", &ctx
.integer
.arm64_regs
.x
[0] );
614 dump_uint64( ",x1=", &ctx
.integer
.arm64_regs
.x
[1] );
615 dump_uint64( ",x2=", &ctx
.integer
.arm64_regs
.x
[2] );
616 dump_uint64( ",x3=", &ctx
.integer
.arm64_regs
.x
[3] );
617 dump_uint64( ",x4=", &ctx
.integer
.arm64_regs
.x
[4] );
618 dump_uint64( ",x5=", &ctx
.integer
.arm64_regs
.x
[5] );
619 dump_uint64( ",x6=", &ctx
.integer
.arm64_regs
.x
[6] );
620 dump_uint64( ",x7=", &ctx
.integer
.arm64_regs
.x
[7] );
621 dump_uint64( ",x8=", &ctx
.integer
.arm64_regs
.x
[8] );
622 dump_uint64( ",x9=", &ctx
.integer
.arm64_regs
.x
[9] );
623 dump_uint64( ",x10=", &ctx
.integer
.arm64_regs
.x
[10] );
624 dump_uint64( ",x11=", &ctx
.integer
.arm64_regs
.x
[11] );
625 dump_uint64( ",x12=", &ctx
.integer
.arm64_regs
.x
[12] );
626 dump_uint64( ",x13=", &ctx
.integer
.arm64_regs
.x
[13] );
627 dump_uint64( ",x14=", &ctx
.integer
.arm64_regs
.x
[14] );
628 dump_uint64( ",x15=", &ctx
.integer
.arm64_regs
.x
[15] );
629 dump_uint64( ",x16=", &ctx
.integer
.arm64_regs
.x
[16] );
630 dump_uint64( ",x17=", &ctx
.integer
.arm64_regs
.x
[17] );
631 dump_uint64( ",x18=", &ctx
.integer
.arm64_regs
.x
[18] );
632 dump_uint64( ",x19=", &ctx
.integer
.arm64_regs
.x
[19] );
633 dump_uint64( ",x20=", &ctx
.integer
.arm64_regs
.x
[20] );
634 dump_uint64( ",x21=", &ctx
.integer
.arm64_regs
.x
[21] );
635 dump_uint64( ",x22=", &ctx
.integer
.arm64_regs
.x
[22] );
636 dump_uint64( ",x23=", &ctx
.integer
.arm64_regs
.x
[23] );
637 dump_uint64( ",x24=", &ctx
.integer
.arm64_regs
.x
[24] );
638 dump_uint64( ",x25=", &ctx
.integer
.arm64_regs
.x
[25] );
639 dump_uint64( ",x26=", &ctx
.integer
.arm64_regs
.x
[26] );
640 dump_uint64( ",x27=", &ctx
.integer
.arm64_regs
.x
[27] );
641 dump_uint64( ",x28=", &ctx
.integer
.arm64_regs
.x
[28] );
642 dump_uint64( ",x29=", &ctx
.integer
.arm64_regs
.x
[29] );
643 dump_uint64( ",x30=", &ctx
.integer
.arm64_regs
.x
[30] );
647 fputc( '}', stderr
);
651 static void dump_varargs_debug_event( const char *prefix
, data_size_t size
)
658 fprintf( stderr
, "%s{}", prefix
);
661 size
= min( size
, sizeof(event
) );
662 memset( &event
, 0, sizeof(event
) );
663 memcpy( &event
, cur_data
, size
);
667 case EXCEPTION_DEBUG_EVENT
:
668 fprintf( stderr
, "%s{exception,first=%d,exc_code=%08x,flags=%08x", prefix
,
669 event
.exception
.first
, event
.exception
.exc_code
, event
.exception
.flags
);
670 dump_uint64( ",record=", &event
.exception
.record
);
671 dump_uint64( ",address=", &event
.exception
.address
);
672 fprintf( stderr
, ",params={" );
673 event
.exception
.nb_params
= min( event
.exception
.nb_params
, EXCEPTION_MAXIMUM_PARAMETERS
);
674 for (i
= 0; i
< event
.exception
.nb_params
; i
++)
676 dump_uint64( "", &event
.exception
.params
[i
] );
677 if (i
< event
.exception
.nb_params
) fputc( ',', stderr
);
679 fprintf( stderr
, "}}" );
681 case CREATE_THREAD_DEBUG_EVENT
:
682 fprintf( stderr
, "%s{create_thread,thread=%04x", prefix
, event
.create_thread
.handle
);
683 dump_uint64( ",teb=", &event
.create_thread
.teb
);
684 dump_uint64( ",start=", &event
.create_thread
.start
);
685 fputc( '}', stderr
);
687 case CREATE_PROCESS_DEBUG_EVENT
:
688 fprintf( stderr
, "%s{create_process,file=%04x,process=%04x,thread=%04x", prefix
,
689 event
.create_process
.file
, event
.create_process
.process
,
690 event
.create_process
.thread
);
691 dump_uint64( ",base=", &event
.create_process
.base
);
692 fprintf( stderr
, ",offset=%d,size=%d",
693 event
.create_process
.dbg_offset
, event
.create_process
.dbg_size
);
694 dump_uint64( ",teb=", &event
.create_process
.teb
);
695 dump_uint64( ",start=", &event
.create_process
.start
);
696 dump_uint64( ",name=", &event
.create_process
.name
);
697 fprintf( stderr
, ",unicode=%d}", event
.create_process
.unicode
);
699 case EXIT_THREAD_DEBUG_EVENT
:
700 fprintf( stderr
, "%s{exit_thread,code=%d}", prefix
, event
.exit
.exit_code
);
702 case EXIT_PROCESS_DEBUG_EVENT
:
703 fprintf( stderr
, "%s{exit_process,code=%d}", prefix
, event
.exit
.exit_code
);
705 case LOAD_DLL_DEBUG_EVENT
:
706 fprintf( stderr
, "%s{load_dll,file=%04x", prefix
, event
.load_dll
.handle
);
707 dump_uint64( ",base=", &event
.load_dll
.base
);
708 fprintf( stderr
, ",offset=%d,size=%d",
709 event
.load_dll
.dbg_offset
, event
.load_dll
.dbg_size
);
710 dump_uint64( ",name=", &event
.load_dll
.name
);
711 fprintf( stderr
, ",unicode=%d}", event
.load_dll
.unicode
);
713 case UNLOAD_DLL_DEBUG_EVENT
:
714 fprintf( stderr
, "%s{unload_dll", prefix
);
715 dump_uint64( ",base=", &event
.unload_dll
.base
);
716 fputc( '}', stderr
);
718 case 0: /* zero is the code returned on timeouts */
719 fprintf( stderr
, "%s{}", prefix
);
722 fprintf( stderr
, "%s{code=??? (%d)}", prefix
, event
.code
);
728 /* dump a unicode string contained in a buffer; helper for dump_varargs_startup_info */
729 static data_size_t
dump_inline_unicode_string( const char *prefix
, data_size_t pos
, data_size_t len
, data_size_t total_size
)
731 fputs( prefix
, stderr
);
732 if (pos
>= total_size
) return pos
;
733 if (len
> total_size
- pos
) len
= total_size
- pos
;
734 len
/= sizeof(WCHAR
);
735 dump_strW( (const WCHAR
*)cur_data
+ pos
/sizeof(WCHAR
), len
, stderr
, "\"\"" );
736 return pos
+ len
* sizeof(WCHAR
);
739 static void dump_varargs_startup_info( const char *prefix
, data_size_t size
)
742 data_size_t pos
= sizeof(info
);
744 memset( &info
, 0, sizeof(info
) );
745 memcpy( &info
, cur_data
, min( size
, sizeof(info
) ));
748 "%s{debug_flags=%x,console_flags=%x,console=%04x,hstdin=%04x,hstdout=%04x,hstderr=%04x,"
749 "x=%u,y=%u,xsize=%u,ysize=%u,xchars=%u,ychars=%u,attribute=%02x,flags=%x,show=%u",
750 prefix
, info
.debug_flags
, info
.console_flags
, info
.console
,
751 info
.hstdin
, info
.hstdout
, info
.hstderr
, info
.x
, info
.y
, info
.xsize
, info
.ysize
,
752 info
.xchars
, info
.ychars
, info
.attribute
, info
.flags
, info
.show
);
753 pos
= dump_inline_unicode_string( ",curdir=L\"", pos
, info
.curdir_len
, size
);
754 pos
= dump_inline_unicode_string( "\",dllpath=L\"", pos
, info
.dllpath_len
, size
);
755 pos
= dump_inline_unicode_string( "\",imagepath=L\"", pos
, info
.imagepath_len
, size
);
756 pos
= dump_inline_unicode_string( "\",cmdline=L\"", pos
, info
.cmdline_len
, size
);
757 pos
= dump_inline_unicode_string( "\",title=L\"", pos
, info
.title_len
, size
);
758 pos
= dump_inline_unicode_string( "\",desktop=L\"", pos
, info
.desktop_len
, size
);
759 pos
= dump_inline_unicode_string( "\",shellinfo=L\"", pos
, info
.shellinfo_len
, size
);
760 pos
= dump_inline_unicode_string( "\",runtime=L\"", pos
, info
.runtime_len
, size
);
761 fprintf( stderr
, "\"}" );
765 static void dump_varargs_input_records( const char *prefix
, data_size_t size
)
767 const INPUT_RECORD
*rec
= cur_data
;
768 data_size_t len
= size
/ sizeof(*rec
);
770 fprintf( stderr
,"%s{", prefix
);
773 fprintf( stderr
, "{%04x,...}", rec
->EventType
);
775 if (--len
) fputc( ',', stderr
);
777 fputc( '}', stderr
);
781 static void dump_varargs_rectangles( const char *prefix
, data_size_t size
)
783 const rectangle_t
*rect
= cur_data
;
784 data_size_t len
= size
/ sizeof(*rect
);
786 fprintf( stderr
,"%s{", prefix
);
789 dump_rectangle( "", rect
++ );
790 if (--len
) fputc( ',', stderr
);
792 fputc( '}', stderr
);
796 static void dump_varargs_message_data( const char *prefix
, data_size_t size
)
798 /* FIXME: dump the structured data */
799 dump_varargs_bytes( prefix
, size
);
802 static void dump_varargs_properties( const char *prefix
, data_size_t size
)
804 const property_data_t
*prop
= cur_data
;
805 data_size_t len
= size
/ sizeof(*prop
);
807 fprintf( stderr
,"%s{", prefix
);
810 fprintf( stderr
, "{atom=%04x,str=%d", prop
->atom
, prop
->string
);
811 dump_uint64( ",data=", &prop
->data
);
812 fputc( '}', stderr
);
814 if (--len
) fputc( ',', stderr
);
816 fputc( '}', stderr
);
820 static void dump_varargs_LUID_AND_ATTRIBUTES( const char *prefix
, data_size_t size
)
822 const LUID_AND_ATTRIBUTES
*lat
= cur_data
;
823 data_size_t len
= size
/ sizeof(*lat
);
825 fprintf( stderr
,"%s{", prefix
);
828 fprintf( stderr
, "{luid=%08x%08x,attr=%x}",
829 lat
->Luid
.HighPart
, lat
->Luid
.LowPart
, lat
->Attributes
);
831 if (--len
) fputc( ',', stderr
);
833 fputc( '}', stderr
);
837 static void dump_inline_sid( const char *prefix
, const SID
*sid
, data_size_t size
)
842 if ((FIELD_OFFSET(SID
, SubAuthority
[0]) > size
) ||
843 (FIELD_OFFSET(SID
, SubAuthority
[sid
->SubAuthorityCount
]) > size
))
845 fprintf( stderr
, "<invalid sid>" );
849 fprintf( stderr
,"%s{", prefix
);
850 fprintf( stderr
, "S-%u-%u", sid
->Revision
, MAKELONG(
851 MAKEWORD( sid
->IdentifierAuthority
.Value
[5],
852 sid
->IdentifierAuthority
.Value
[4] ),
853 MAKEWORD( sid
->IdentifierAuthority
.Value
[3],
854 sid
->IdentifierAuthority
.Value
[2] ) ) );
855 for (i
= 0; i
< sid
->SubAuthorityCount
; i
++)
856 fprintf( stderr
, "-%u", sid
->SubAuthority
[i
] );
857 fputc( '}', stderr
);
860 static void dump_varargs_SID( const char *prefix
, data_size_t size
)
862 const SID
*sid
= cur_data
;
863 dump_inline_sid( prefix
, sid
, size
);
867 static void dump_inline_acl( const char *prefix
, const ACL
*acl
, data_size_t size
)
869 const ACE_HEADER
*ace
;
872 fprintf( stderr
,"%s{", prefix
);
875 if (size
< sizeof(ACL
))
877 fprintf( stderr
, "<invalid acl>}" );
881 ace
= (const ACE_HEADER
*)(acl
+ 1);
882 for (i
= 0; i
< acl
->AceCount
; i
++)
884 const SID
*sid
= NULL
;
885 data_size_t sid_size
= 0;
887 if (size
< sizeof(ACE_HEADER
) || size
< ace
->AceSize
) break;
888 size
-= ace
->AceSize
;
889 if (i
!= 0) fputc( ',', stderr
);
890 fprintf( stderr
, "{AceType=" );
891 switch (ace
->AceType
)
893 case ACCESS_DENIED_ACE_TYPE
:
894 sid
= (const SID
*)&((const ACCESS_DENIED_ACE
*)ace
)->SidStart
;
895 sid_size
= ace
->AceSize
- FIELD_OFFSET(ACCESS_DENIED_ACE
, SidStart
);
896 fprintf( stderr
, "ACCESS_DENIED_ACE_TYPE,Mask=%x",
897 ((const ACCESS_DENIED_ACE
*)ace
)->Mask
);
899 case ACCESS_ALLOWED_ACE_TYPE
:
900 sid
= (const SID
*)&((const ACCESS_ALLOWED_ACE
*)ace
)->SidStart
;
901 sid_size
= ace
->AceSize
- FIELD_OFFSET(ACCESS_ALLOWED_ACE
, SidStart
);
902 fprintf( stderr
, "ACCESS_ALLOWED_ACE_TYPE,Mask=%x",
903 ((const ACCESS_ALLOWED_ACE
*)ace
)->Mask
);
905 case SYSTEM_AUDIT_ACE_TYPE
:
906 sid
= (const SID
*)&((const SYSTEM_AUDIT_ACE
*)ace
)->SidStart
;
907 sid_size
= ace
->AceSize
- FIELD_OFFSET(SYSTEM_AUDIT_ACE
, SidStart
);
908 fprintf( stderr
, "SYSTEM_AUDIT_ACE_TYPE,Mask=%x",
909 ((const SYSTEM_AUDIT_ACE
*)ace
)->Mask
);
911 case SYSTEM_ALARM_ACE_TYPE
:
912 sid
= (const SID
*)&((const SYSTEM_ALARM_ACE
*)ace
)->SidStart
;
913 sid_size
= ace
->AceSize
- FIELD_OFFSET(SYSTEM_ALARM_ACE
, SidStart
);
914 fprintf( stderr
, "SYSTEM_ALARM_ACE_TYPE,Mask=%x",
915 ((const SYSTEM_ALARM_ACE
*)ace
)->Mask
);
918 fprintf( stderr
, "unknown<%d>", ace
->AceType
);
921 fprintf( stderr
, ",AceFlags=%x", ace
->AceFlags
);
923 dump_inline_sid( ",Sid=", sid
, sid_size
);
924 ace
= (const ACE_HEADER
*)((const char *)ace
+ ace
->AceSize
);
925 fputc( '}', stderr
);
928 fputc( '}', stderr
);
931 static void dump_varargs_ACL( const char *prefix
, data_size_t size
)
933 const ACL
*acl
= cur_data
;
934 dump_inline_acl( prefix
, acl
, size
);
938 static void dump_inline_security_descriptor( const char *prefix
, const struct security_descriptor
*sd
, data_size_t size
)
940 fprintf( stderr
,"%s{", prefix
);
941 if (size
>= sizeof(struct security_descriptor
))
943 size_t offset
= sizeof(struct security_descriptor
);
944 fprintf( stderr
, "control=%08x", sd
->control
);
945 if ((sd
->owner_len
> FIELD_OFFSET(SID
, SubAuthority
[255])) || (offset
+ sd
->owner_len
> size
))
948 dump_inline_sid( ",owner=", (const SID
*)((const char *)sd
+ offset
), sd
->owner_len
);
950 fprintf( stderr
, ",owner=<not present>" );
951 offset
+= sd
->owner_len
;
952 if ((sd
->group_len
> FIELD_OFFSET(SID
, SubAuthority
[255])) || (offset
+ sd
->group_len
> size
))
955 dump_inline_sid( ",group=", (const SID
*)((const char *)sd
+ offset
), sd
->group_len
);
957 fprintf( stderr
, ",group=<not present>" );
958 offset
+= sd
->group_len
;
959 if ((sd
->sacl_len
>= MAX_ACL_LEN
) || (offset
+ sd
->sacl_len
> size
))
961 dump_inline_acl( ",sacl=", (const ACL
*)((const char *)sd
+ offset
), sd
->sacl_len
);
962 offset
+= sd
->sacl_len
;
963 if ((sd
->dacl_len
>= MAX_ACL_LEN
) || (offset
+ sd
->dacl_len
> size
))
965 dump_inline_acl( ",dacl=", (const ACL
*)((const char *)sd
+ offset
), sd
->dacl_len
);
966 offset
+= sd
->dacl_len
;
968 fputc( '}', stderr
);
971 static void dump_varargs_security_descriptor( const char *prefix
, data_size_t size
)
973 const struct security_descriptor
*sd
= cur_data
;
974 dump_inline_security_descriptor( prefix
, sd
, size
);
978 static void dump_varargs_token_groups( const char *prefix
, data_size_t size
)
980 const struct token_groups
*tg
= cur_data
;
982 fprintf( stderr
,"%s{", prefix
);
983 if (size
>= sizeof(struct token_groups
))
985 size_t offset
= sizeof(*tg
);
986 fprintf( stderr
, "count=%08x,", tg
->count
);
987 if (tg
->count
* sizeof(unsigned int) <= size
)
990 const unsigned int *attr
= (const unsigned int *)(tg
+ 1);
992 offset
+= tg
->count
* sizeof(unsigned int);
994 fputc( '[', stderr
);
995 for (i
= 0; i
< tg
->count
; i
++)
997 const SID
*sid
= (const SID
*)((const char *)cur_data
+ offset
);
999 fputc( ',', stderr
);
1000 fputc( '{', stderr
);
1001 fprintf( stderr
, "attributes=%08x", attr
[i
] );
1002 dump_inline_sid( ",sid=", sid
, size
- offset
);
1003 if ((offset
+ FIELD_OFFSET(SID
, SubAuthority
[0]) > size
) ||
1004 (offset
+ FIELD_OFFSET(SID
, SubAuthority
[sid
->SubAuthorityCount
]) > size
))
1006 offset
+= FIELD_OFFSET(SID
, SubAuthority
[sid
->SubAuthorityCount
]);
1007 fputc( '}', stderr
);
1009 fputc( ']', stderr
);
1012 fputc( '}', stderr
);
1015 static void dump_varargs_object_attributes( const char *prefix
, data_size_t size
)
1017 const struct object_attributes
*objattr
= cur_data
;
1019 fprintf( stderr
,"%s{", prefix
);
1020 if (size
>= sizeof(struct object_attributes
))
1023 fprintf( stderr
, "rootdir=%04x", objattr
->rootdir
);
1024 if (objattr
->sd_len
> size
- sizeof(*objattr
) ||
1025 objattr
->name_len
> size
- sizeof(*objattr
) - objattr
->sd_len
)
1027 dump_inline_security_descriptor( ",sd=", (const struct security_descriptor
*)(objattr
+ 1), objattr
->sd_len
);
1028 str
= (const WCHAR
*)objattr
+ (sizeof(*objattr
) + objattr
->sd_len
) / sizeof(WCHAR
);
1029 fprintf( stderr
, ",name=L\"" );
1030 dump_strW( str
, objattr
->name_len
/ sizeof(WCHAR
), stderr
, "\"\"" );
1031 fputc( '\"', stderr
);
1032 remove_data( ((sizeof(*objattr
) + objattr
->sd_len
) / sizeof(WCHAR
)) * sizeof(WCHAR
) +
1033 objattr
->name_len
);
1035 fputc( '}', stderr
);
1038 static void dump_varargs_filesystem_event( const char *prefix
, data_size_t size
)
1040 static const char * const actions
[] = {
1052 fprintf( stderr
,"%s{", prefix
);
1055 const struct filesystem_event
*event
= cur_data
;
1056 data_size_t len
= (offsetof( struct filesystem_event
, name
[event
->len
] ) + sizeof(int)-1)
1057 / sizeof(int) * sizeof(int);
1058 if (size
< len
) break;
1059 if (event
->action
< sizeof(actions
)/sizeof(actions
[0]) && actions
[event
->action
])
1060 fprintf( stderr
, "{action=%s", actions
[event
->action
] );
1062 fprintf( stderr
, "{action=%u", event
->action
);
1063 fprintf( stderr
, ",name=\"%.*s\"}", event
->len
, event
->name
);
1066 if (size
)fputc( ',', stderr
);
1068 fputc( '}', stderr
);
1071 static void dump_varargs_rawinput_devices(const char *prefix
, data_size_t size
)
1073 const struct rawinput_device
*device
;
1075 fprintf( stderr
, "%s{", prefix
);
1076 while (size
>= sizeof(*device
))
1079 fprintf( stderr
, "{usage_page=%04x,usage=%04x,flags=%08x,target=%08x}",
1080 device
->usage_page
, device
->usage
, device
->flags
, device
->target
);
1081 size
-= sizeof(*device
);
1082 remove_data( sizeof(*device
) );
1083 if (size
) fputc( ',', stderr
);
1085 fputc( '}', stderr
);
1088 typedef void (*dump_func
)( const void *req
);
1090 /* Everything below this line is generated automatically by tools/make_requests */
1091 /* ### make_requests begin ### */
1093 static void dump_new_process_request( const struct new_process_request
*req
)
1095 fprintf( stderr
, " inherit_all=%d", req
->inherit_all
);
1096 fprintf( stderr
, ", create_flags=%08x", req
->create_flags
);
1097 fprintf( stderr
, ", socket_fd=%d", req
->socket_fd
);
1098 fprintf( stderr
, ", exe_file=%04x", req
->exe_file
);
1099 fprintf( stderr
, ", process_access=%08x", req
->process_access
);
1100 fprintf( stderr
, ", process_attr=%08x", req
->process_attr
);
1101 fprintf( stderr
, ", thread_access=%08x", req
->thread_access
);
1102 fprintf( stderr
, ", thread_attr=%08x", req
->thread_attr
);
1103 dump_cpu_type( ", cpu=", &req
->cpu
);
1104 fprintf( stderr
, ", info_size=%u", req
->info_size
);
1105 dump_varargs_startup_info( ", info=", min(cur_size
,req
->info_size
) );
1106 dump_varargs_unicode_str( ", env=", cur_size
);
1109 static void dump_new_process_reply( const struct new_process_reply
*req
)
1111 fprintf( stderr
, " info=%04x", req
->info
);
1112 fprintf( stderr
, ", pid=%04x", req
->pid
);
1113 fprintf( stderr
, ", phandle=%04x", req
->phandle
);
1114 fprintf( stderr
, ", tid=%04x", req
->tid
);
1115 fprintf( stderr
, ", thandle=%04x", req
->thandle
);
1118 static void dump_get_new_process_info_request( const struct get_new_process_info_request
*req
)
1120 fprintf( stderr
, " info=%04x", req
->info
);
1123 static void dump_get_new_process_info_reply( const struct get_new_process_info_reply
*req
)
1125 fprintf( stderr
, " success=%d", req
->success
);
1126 fprintf( stderr
, ", exit_code=%d", req
->exit_code
);
1129 static void dump_new_thread_request( const struct new_thread_request
*req
)
1131 fprintf( stderr
, " access=%08x", req
->access
);
1132 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1133 fprintf( stderr
, ", suspend=%d", req
->suspend
);
1134 fprintf( stderr
, ", request_fd=%d", req
->request_fd
);
1137 static void dump_new_thread_reply( const struct new_thread_reply
*req
)
1139 fprintf( stderr
, " tid=%04x", req
->tid
);
1140 fprintf( stderr
, ", handle=%04x", req
->handle
);
1143 static void dump_get_startup_info_request( const struct get_startup_info_request
*req
)
1147 static void dump_get_startup_info_reply( const struct get_startup_info_reply
*req
)
1149 fprintf( stderr
, " exe_file=%04x", req
->exe_file
);
1150 fprintf( stderr
, ", info_size=%u", req
->info_size
);
1151 dump_varargs_startup_info( ", info=", min(cur_size
,req
->info_size
) );
1152 dump_varargs_unicode_str( ", env=", cur_size
);
1155 static void dump_init_process_done_request( const struct init_process_done_request
*req
)
1157 fprintf( stderr
, " gui=%d", req
->gui
);
1158 dump_uint64( ", module=", &req
->module
);
1159 dump_uint64( ", ldt_copy=", &req
->ldt_copy
);
1160 dump_uint64( ", entry=", &req
->entry
);
1163 static void dump_init_thread_request( const struct init_thread_request
*req
)
1165 fprintf( stderr
, " unix_pid=%d", req
->unix_pid
);
1166 fprintf( stderr
, ", unix_tid=%d", req
->unix_tid
);
1167 fprintf( stderr
, ", debug_level=%d", req
->debug_level
);
1168 dump_uint64( ", teb=", &req
->teb
);
1169 dump_uint64( ", entry=", &req
->entry
);
1170 fprintf( stderr
, ", reply_fd=%d", req
->reply_fd
);
1171 fprintf( stderr
, ", wait_fd=%d", req
->wait_fd
);
1172 dump_cpu_type( ", cpu=", &req
->cpu
);
1175 static void dump_init_thread_reply( const struct init_thread_reply
*req
)
1177 fprintf( stderr
, " pid=%04x", req
->pid
);
1178 fprintf( stderr
, ", tid=%04x", req
->tid
);
1179 dump_timeout( ", server_start=", &req
->server_start
);
1180 fprintf( stderr
, ", info_size=%u", req
->info_size
);
1181 fprintf( stderr
, ", version=%d", req
->version
);
1182 fprintf( stderr
, ", all_cpus=%08x", req
->all_cpus
);
1185 static void dump_terminate_process_request( const struct terminate_process_request
*req
)
1187 fprintf( stderr
, " handle=%04x", req
->handle
);
1188 fprintf( stderr
, ", exit_code=%d", req
->exit_code
);
1191 static void dump_terminate_process_reply( const struct terminate_process_reply
*req
)
1193 fprintf( stderr
, " self=%d", req
->self
);
1196 static void dump_terminate_thread_request( const struct terminate_thread_request
*req
)
1198 fprintf( stderr
, " handle=%04x", req
->handle
);
1199 fprintf( stderr
, ", exit_code=%d", req
->exit_code
);
1202 static void dump_terminate_thread_reply( const struct terminate_thread_reply
*req
)
1204 fprintf( stderr
, " self=%d", req
->self
);
1205 fprintf( stderr
, ", last=%d", req
->last
);
1208 static void dump_get_process_info_request( const struct get_process_info_request
*req
)
1210 fprintf( stderr
, " handle=%04x", req
->handle
);
1213 static void dump_get_process_info_reply( const struct get_process_info_reply
*req
)
1215 fprintf( stderr
, " pid=%04x", req
->pid
);
1216 fprintf( stderr
, ", ppid=%04x", req
->ppid
);
1217 dump_uint64( ", affinity=", &req
->affinity
);
1218 dump_uint64( ", peb=", &req
->peb
);
1219 dump_timeout( ", start_time=", &req
->start_time
);
1220 dump_timeout( ", end_time=", &req
->end_time
);
1221 fprintf( stderr
, ", exit_code=%d", req
->exit_code
);
1222 fprintf( stderr
, ", priority=%d", req
->priority
);
1223 dump_cpu_type( ", cpu=", &req
->cpu
);
1224 fprintf( stderr
, ", debugger_present=%d", req
->debugger_present
);
1227 static void dump_set_process_info_request( const struct set_process_info_request
*req
)
1229 fprintf( stderr
, " handle=%04x", req
->handle
);
1230 fprintf( stderr
, ", mask=%d", req
->mask
);
1231 fprintf( stderr
, ", priority=%d", req
->priority
);
1232 dump_uint64( ", affinity=", &req
->affinity
);
1235 static void dump_get_thread_info_request( const struct get_thread_info_request
*req
)
1237 fprintf( stderr
, " handle=%04x", req
->handle
);
1238 fprintf( stderr
, ", tid_in=%04x", req
->tid_in
);
1241 static void dump_get_thread_info_reply( const struct get_thread_info_reply
*req
)
1243 fprintf( stderr
, " pid=%04x", req
->pid
);
1244 fprintf( stderr
, ", tid=%04x", req
->tid
);
1245 dump_uint64( ", teb=", &req
->teb
);
1246 dump_uint64( ", affinity=", &req
->affinity
);
1247 dump_timeout( ", creation_time=", &req
->creation_time
);
1248 dump_timeout( ", exit_time=", &req
->exit_time
);
1249 fprintf( stderr
, ", exit_code=%d", req
->exit_code
);
1250 fprintf( stderr
, ", priority=%d", req
->priority
);
1251 fprintf( stderr
, ", last=%d", req
->last
);
1254 static void dump_set_thread_info_request( const struct set_thread_info_request
*req
)
1256 fprintf( stderr
, " handle=%04x", req
->handle
);
1257 fprintf( stderr
, ", mask=%d", req
->mask
);
1258 fprintf( stderr
, ", priority=%d", req
->priority
);
1259 dump_uint64( ", affinity=", &req
->affinity
);
1260 fprintf( stderr
, ", token=%04x", req
->token
);
1263 static void dump_get_dll_info_request( const struct get_dll_info_request
*req
)
1265 fprintf( stderr
, " handle=%04x", req
->handle
);
1266 dump_uint64( ", base_address=", &req
->base_address
);
1269 static void dump_get_dll_info_reply( const struct get_dll_info_reply
*req
)
1271 dump_uint64( " entry_point=", &req
->entry_point
);
1272 fprintf( stderr
, ", size=%u", req
->size
);
1273 fprintf( stderr
, ", filename_len=%u", req
->filename_len
);
1274 dump_varargs_unicode_str( ", filename=", cur_size
);
1277 static void dump_suspend_thread_request( const struct suspend_thread_request
*req
)
1279 fprintf( stderr
, " handle=%04x", req
->handle
);
1282 static void dump_suspend_thread_reply( const struct suspend_thread_reply
*req
)
1284 fprintf( stderr
, " count=%d", req
->count
);
1287 static void dump_resume_thread_request( const struct resume_thread_request
*req
)
1289 fprintf( stderr
, " handle=%04x", req
->handle
);
1292 static void dump_resume_thread_reply( const struct resume_thread_reply
*req
)
1294 fprintf( stderr
, " count=%d", req
->count
);
1297 static void dump_load_dll_request( const struct load_dll_request
*req
)
1299 fprintf( stderr
, " mapping=%04x", req
->mapping
);
1300 dump_uint64( ", base=", &req
->base
);
1301 dump_uint64( ", name=", &req
->name
);
1302 fprintf( stderr
, ", size=%u", req
->size
);
1303 fprintf( stderr
, ", dbg_offset=%d", req
->dbg_offset
);
1304 fprintf( stderr
, ", dbg_size=%d", req
->dbg_size
);
1305 dump_varargs_unicode_str( ", filename=", cur_size
);
1308 static void dump_unload_dll_request( const struct unload_dll_request
*req
)
1310 dump_uint64( " base=", &req
->base
);
1313 static void dump_queue_apc_request( const struct queue_apc_request
*req
)
1315 fprintf( stderr
, " handle=%04x", req
->handle
);
1316 dump_apc_call( ", call=", &req
->call
);
1319 static void dump_queue_apc_reply( const struct queue_apc_reply
*req
)
1321 fprintf( stderr
, " handle=%04x", req
->handle
);
1322 fprintf( stderr
, ", self=%d", req
->self
);
1325 static void dump_get_apc_result_request( const struct get_apc_result_request
*req
)
1327 fprintf( stderr
, " handle=%04x", req
->handle
);
1330 static void dump_get_apc_result_reply( const struct get_apc_result_reply
*req
)
1332 dump_apc_result( " result=", &req
->result
);
1335 static void dump_close_handle_request( const struct close_handle_request
*req
)
1337 fprintf( stderr
, " handle=%04x", req
->handle
);
1340 static void dump_set_handle_info_request( const struct set_handle_info_request
*req
)
1342 fprintf( stderr
, " handle=%04x", req
->handle
);
1343 fprintf( stderr
, ", flags=%d", req
->flags
);
1344 fprintf( stderr
, ", mask=%d", req
->mask
);
1347 static void dump_set_handle_info_reply( const struct set_handle_info_reply
*req
)
1349 fprintf( stderr
, " old_flags=%d", req
->old_flags
);
1352 static void dump_dup_handle_request( const struct dup_handle_request
*req
)
1354 fprintf( stderr
, " src_process=%04x", req
->src_process
);
1355 fprintf( stderr
, ", src_handle=%04x", req
->src_handle
);
1356 fprintf( stderr
, ", dst_process=%04x", req
->dst_process
);
1357 fprintf( stderr
, ", access=%08x", req
->access
);
1358 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1359 fprintf( stderr
, ", options=%08x", req
->options
);
1362 static void dump_dup_handle_reply( const struct dup_handle_reply
*req
)
1364 fprintf( stderr
, " handle=%04x", req
->handle
);
1365 fprintf( stderr
, ", self=%d", req
->self
);
1366 fprintf( stderr
, ", closed=%d", req
->closed
);
1369 static void dump_open_process_request( const struct open_process_request
*req
)
1371 fprintf( stderr
, " pid=%04x", req
->pid
);
1372 fprintf( stderr
, ", access=%08x", req
->access
);
1373 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1376 static void dump_open_process_reply( const struct open_process_reply
*req
)
1378 fprintf( stderr
, " handle=%04x", req
->handle
);
1381 static void dump_open_thread_request( const struct open_thread_request
*req
)
1383 fprintf( stderr
, " tid=%04x", req
->tid
);
1384 fprintf( stderr
, ", access=%08x", req
->access
);
1385 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1388 static void dump_open_thread_reply( const struct open_thread_reply
*req
)
1390 fprintf( stderr
, " handle=%04x", req
->handle
);
1393 static void dump_select_request( const struct select_request
*req
)
1395 fprintf( stderr
, " flags=%d", req
->flags
);
1396 dump_uint64( ", cookie=", &req
->cookie
);
1397 dump_timeout( ", timeout=", &req
->timeout
);
1398 fprintf( stderr
, ", prev_apc=%04x", req
->prev_apc
);
1399 dump_varargs_apc_result( ", result=", cur_size
);
1400 dump_varargs_select_op( ", data=", cur_size
);
1403 static void dump_select_reply( const struct select_reply
*req
)
1405 dump_timeout( " timeout=", &req
->timeout
);
1406 dump_apc_call( ", call=", &req
->call
);
1407 fprintf( stderr
, ", apc_handle=%04x", req
->apc_handle
);
1410 static void dump_create_event_request( const struct create_event_request
*req
)
1412 fprintf( stderr
, " access=%08x", req
->access
);
1413 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1414 fprintf( stderr
, ", manual_reset=%d", req
->manual_reset
);
1415 fprintf( stderr
, ", initial_state=%d", req
->initial_state
);
1416 dump_varargs_object_attributes( ", objattr=", cur_size
);
1419 static void dump_create_event_reply( const struct create_event_reply
*req
)
1421 fprintf( stderr
, " handle=%04x", req
->handle
);
1424 static void dump_event_op_request( const struct event_op_request
*req
)
1426 fprintf( stderr
, " handle=%04x", req
->handle
);
1427 fprintf( stderr
, ", op=%d", req
->op
);
1430 static void dump_query_event_request( const struct query_event_request
*req
)
1432 fprintf( stderr
, " handle=%04x", req
->handle
);
1435 static void dump_query_event_reply( const struct query_event_reply
*req
)
1437 fprintf( stderr
, " manual_reset=%d", req
->manual_reset
);
1438 fprintf( stderr
, ", state=%d", req
->state
);
1441 static void dump_open_event_request( const struct open_event_request
*req
)
1443 fprintf( stderr
, " access=%08x", req
->access
);
1444 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1445 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
1446 dump_varargs_unicode_str( ", name=", cur_size
);
1449 static void dump_open_event_reply( const struct open_event_reply
*req
)
1451 fprintf( stderr
, " handle=%04x", req
->handle
);
1454 static void dump_create_keyed_event_request( const struct create_keyed_event_request
*req
)
1456 fprintf( stderr
, " access=%08x", req
->access
);
1457 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1458 dump_varargs_object_attributes( ", objattr=", cur_size
);
1461 static void dump_create_keyed_event_reply( const struct create_keyed_event_reply
*req
)
1463 fprintf( stderr
, " handle=%04x", req
->handle
);
1466 static void dump_open_keyed_event_request( const struct open_keyed_event_request
*req
)
1468 fprintf( stderr
, " access=%08x", req
->access
);
1469 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1470 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
1471 dump_varargs_unicode_str( ", name=", cur_size
);
1474 static void dump_open_keyed_event_reply( const struct open_keyed_event_reply
*req
)
1476 fprintf( stderr
, " handle=%04x", req
->handle
);
1479 static void dump_create_mutex_request( const struct create_mutex_request
*req
)
1481 fprintf( stderr
, " access=%08x", req
->access
);
1482 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1483 fprintf( stderr
, ", owned=%d", req
->owned
);
1484 dump_varargs_object_attributes( ", objattr=", cur_size
);
1487 static void dump_create_mutex_reply( const struct create_mutex_reply
*req
)
1489 fprintf( stderr
, " handle=%04x", req
->handle
);
1492 static void dump_release_mutex_request( const struct release_mutex_request
*req
)
1494 fprintf( stderr
, " handle=%04x", req
->handle
);
1497 static void dump_release_mutex_reply( const struct release_mutex_reply
*req
)
1499 fprintf( stderr
, " prev_count=%08x", req
->prev_count
);
1502 static void dump_open_mutex_request( const struct open_mutex_request
*req
)
1504 fprintf( stderr
, " access=%08x", req
->access
);
1505 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1506 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
1507 dump_varargs_unicode_str( ", name=", cur_size
);
1510 static void dump_open_mutex_reply( const struct open_mutex_reply
*req
)
1512 fprintf( stderr
, " handle=%04x", req
->handle
);
1515 static void dump_create_semaphore_request( const struct create_semaphore_request
*req
)
1517 fprintf( stderr
, " access=%08x", req
->access
);
1518 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1519 fprintf( stderr
, ", initial=%08x", req
->initial
);
1520 fprintf( stderr
, ", max=%08x", req
->max
);
1521 dump_varargs_object_attributes( ", objattr=", cur_size
);
1524 static void dump_create_semaphore_reply( const struct create_semaphore_reply
*req
)
1526 fprintf( stderr
, " handle=%04x", req
->handle
);
1529 static void dump_release_semaphore_request( const struct release_semaphore_request
*req
)
1531 fprintf( stderr
, " handle=%04x", req
->handle
);
1532 fprintf( stderr
, ", count=%08x", req
->count
);
1535 static void dump_release_semaphore_reply( const struct release_semaphore_reply
*req
)
1537 fprintf( stderr
, " prev_count=%08x", req
->prev_count
);
1540 static void dump_query_semaphore_request( const struct query_semaphore_request
*req
)
1542 fprintf( stderr
, " handle=%04x", req
->handle
);
1545 static void dump_query_semaphore_reply( const struct query_semaphore_reply
*req
)
1547 fprintf( stderr
, " current=%08x", req
->current
);
1548 fprintf( stderr
, ", max=%08x", req
->max
);
1551 static void dump_open_semaphore_request( const struct open_semaphore_request
*req
)
1553 fprintf( stderr
, " access=%08x", req
->access
);
1554 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1555 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
1556 dump_varargs_unicode_str( ", name=", cur_size
);
1559 static void dump_open_semaphore_reply( const struct open_semaphore_reply
*req
)
1561 fprintf( stderr
, " handle=%04x", req
->handle
);
1564 static void dump_create_file_request( const struct create_file_request
*req
)
1566 fprintf( stderr
, " access=%08x", req
->access
);
1567 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1568 fprintf( stderr
, ", sharing=%08x", req
->sharing
);
1569 fprintf( stderr
, ", create=%d", req
->create
);
1570 fprintf( stderr
, ", options=%08x", req
->options
);
1571 fprintf( stderr
, ", attrs=%08x", req
->attrs
);
1572 dump_varargs_object_attributes( ", objattr=", cur_size
);
1573 dump_varargs_string( ", filename=", cur_size
);
1576 static void dump_create_file_reply( const struct create_file_reply
*req
)
1578 fprintf( stderr
, " handle=%04x", req
->handle
);
1581 static void dump_open_file_object_request( const struct open_file_object_request
*req
)
1583 fprintf( stderr
, " access=%08x", req
->access
);
1584 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1585 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
1586 fprintf( stderr
, ", sharing=%08x", req
->sharing
);
1587 fprintf( stderr
, ", options=%08x", req
->options
);
1588 dump_varargs_unicode_str( ", filename=", cur_size
);
1591 static void dump_open_file_object_reply( const struct open_file_object_reply
*req
)
1593 fprintf( stderr
, " handle=%04x", req
->handle
);
1596 static void dump_alloc_file_handle_request( const struct alloc_file_handle_request
*req
)
1598 fprintf( stderr
, " access=%08x", req
->access
);
1599 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1600 fprintf( stderr
, ", fd=%d", req
->fd
);
1603 static void dump_alloc_file_handle_reply( const struct alloc_file_handle_reply
*req
)
1605 fprintf( stderr
, " handle=%04x", req
->handle
);
1608 static void dump_get_handle_unix_name_request( const struct get_handle_unix_name_request
*req
)
1610 fprintf( stderr
, " handle=%04x", req
->handle
);
1613 static void dump_get_handle_unix_name_reply( const struct get_handle_unix_name_reply
*req
)
1615 fprintf( stderr
, " name_len=%u", req
->name_len
);
1616 dump_varargs_string( ", name=", cur_size
);
1619 static void dump_get_handle_fd_request( const struct get_handle_fd_request
*req
)
1621 fprintf( stderr
, " handle=%04x", req
->handle
);
1624 static void dump_get_handle_fd_reply( const struct get_handle_fd_reply
*req
)
1626 fprintf( stderr
, " type=%d", req
->type
);
1627 fprintf( stderr
, ", cacheable=%d", req
->cacheable
);
1628 fprintf( stderr
, ", access=%08x", req
->access
);
1629 fprintf( stderr
, ", options=%08x", req
->options
);
1632 static void dump_flush_file_request( const struct flush_file_request
*req
)
1634 fprintf( stderr
, " handle=%04x", req
->handle
);
1637 static void dump_flush_file_reply( const struct flush_file_reply
*req
)
1639 fprintf( stderr
, " event=%04x", req
->event
);
1642 static void dump_lock_file_request( const struct lock_file_request
*req
)
1644 fprintf( stderr
, " handle=%04x", req
->handle
);
1645 dump_uint64( ", offset=", &req
->offset
);
1646 dump_uint64( ", count=", &req
->count
);
1647 fprintf( stderr
, ", shared=%d", req
->shared
);
1648 fprintf( stderr
, ", wait=%d", req
->wait
);
1651 static void dump_lock_file_reply( const struct lock_file_reply
*req
)
1653 fprintf( stderr
, " handle=%04x", req
->handle
);
1654 fprintf( stderr
, ", overlapped=%d", req
->overlapped
);
1657 static void dump_unlock_file_request( const struct unlock_file_request
*req
)
1659 fprintf( stderr
, " handle=%04x", req
->handle
);
1660 dump_uint64( ", offset=", &req
->offset
);
1661 dump_uint64( ", count=", &req
->count
);
1664 static void dump_create_socket_request( const struct create_socket_request
*req
)
1666 fprintf( stderr
, " access=%08x", req
->access
);
1667 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1668 fprintf( stderr
, ", family=%d", req
->family
);
1669 fprintf( stderr
, ", type=%d", req
->type
);
1670 fprintf( stderr
, ", protocol=%d", req
->protocol
);
1671 fprintf( stderr
, ", flags=%08x", req
->flags
);
1674 static void dump_create_socket_reply( const struct create_socket_reply
*req
)
1676 fprintf( stderr
, " handle=%04x", req
->handle
);
1679 static void dump_accept_socket_request( const struct accept_socket_request
*req
)
1681 fprintf( stderr
, " lhandle=%04x", req
->lhandle
);
1682 fprintf( stderr
, ", access=%08x", req
->access
);
1683 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1686 static void dump_accept_socket_reply( const struct accept_socket_reply
*req
)
1688 fprintf( stderr
, " handle=%04x", req
->handle
);
1691 static void dump_accept_into_socket_request( const struct accept_into_socket_request
*req
)
1693 fprintf( stderr
, " lhandle=%04x", req
->lhandle
);
1694 fprintf( stderr
, ", ahandle=%04x", req
->ahandle
);
1697 static void dump_set_socket_event_request( const struct set_socket_event_request
*req
)
1699 fprintf( stderr
, " handle=%04x", req
->handle
);
1700 fprintf( stderr
, ", mask=%08x", req
->mask
);
1701 fprintf( stderr
, ", event=%04x", req
->event
);
1702 fprintf( stderr
, ", window=%08x", req
->window
);
1703 fprintf( stderr
, ", msg=%08x", req
->msg
);
1706 static void dump_get_socket_event_request( const struct get_socket_event_request
*req
)
1708 fprintf( stderr
, " handle=%04x", req
->handle
);
1709 fprintf( stderr
, ", service=%d", req
->service
);
1710 fprintf( stderr
, ", c_event=%04x", req
->c_event
);
1713 static void dump_get_socket_event_reply( const struct get_socket_event_reply
*req
)
1715 fprintf( stderr
, " mask=%08x", req
->mask
);
1716 fprintf( stderr
, ", pmask=%08x", req
->pmask
);
1717 fprintf( stderr
, ", state=%08x", req
->state
);
1718 dump_varargs_ints( ", errors=", cur_size
);
1721 static void dump_get_socket_info_request( const struct get_socket_info_request
*req
)
1723 fprintf( stderr
, " handle=%04x", req
->handle
);
1726 static void dump_get_socket_info_reply( const struct get_socket_info_reply
*req
)
1728 fprintf( stderr
, " family=%d", req
->family
);
1729 fprintf( stderr
, ", type=%d", req
->type
);
1730 fprintf( stderr
, ", protocol=%d", req
->protocol
);
1733 static void dump_enable_socket_event_request( const struct enable_socket_event_request
*req
)
1735 fprintf( stderr
, " handle=%04x", req
->handle
);
1736 fprintf( stderr
, ", mask=%08x", req
->mask
);
1737 fprintf( stderr
, ", sstate=%08x", req
->sstate
);
1738 fprintf( stderr
, ", cstate=%08x", req
->cstate
);
1741 static void dump_set_socket_deferred_request( const struct set_socket_deferred_request
*req
)
1743 fprintf( stderr
, " handle=%04x", req
->handle
);
1744 fprintf( stderr
, ", deferred=%04x", req
->deferred
);
1747 static void dump_alloc_console_request( const struct alloc_console_request
*req
)
1749 fprintf( stderr
, " access=%08x", req
->access
);
1750 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1751 fprintf( stderr
, ", pid=%04x", req
->pid
);
1752 fprintf( stderr
, ", input_fd=%d", req
->input_fd
);
1755 static void dump_alloc_console_reply( const struct alloc_console_reply
*req
)
1757 fprintf( stderr
, " handle_in=%04x", req
->handle_in
);
1758 fprintf( stderr
, ", event=%04x", req
->event
);
1761 static void dump_free_console_request( const struct free_console_request
*req
)
1765 static void dump_get_console_renderer_events_request( const struct get_console_renderer_events_request
*req
)
1767 fprintf( stderr
, " handle=%04x", req
->handle
);
1770 static void dump_get_console_renderer_events_reply( const struct get_console_renderer_events_reply
*req
)
1772 dump_varargs_bytes( " data=", cur_size
);
1775 static void dump_open_console_request( const struct open_console_request
*req
)
1777 fprintf( stderr
, " from=%04x", req
->from
);
1778 fprintf( stderr
, ", access=%08x", req
->access
);
1779 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1780 fprintf( stderr
, ", share=%d", req
->share
);
1783 static void dump_open_console_reply( const struct open_console_reply
*req
)
1785 fprintf( stderr
, " handle=%04x", req
->handle
);
1788 static void dump_get_console_wait_event_request( const struct get_console_wait_event_request
*req
)
1792 static void dump_get_console_wait_event_reply( const struct get_console_wait_event_reply
*req
)
1794 fprintf( stderr
, " handle=%04x", req
->handle
);
1797 static void dump_get_console_mode_request( const struct get_console_mode_request
*req
)
1799 fprintf( stderr
, " handle=%04x", req
->handle
);
1802 static void dump_get_console_mode_reply( const struct get_console_mode_reply
*req
)
1804 fprintf( stderr
, " mode=%d", req
->mode
);
1807 static void dump_set_console_mode_request( const struct set_console_mode_request
*req
)
1809 fprintf( stderr
, " handle=%04x", req
->handle
);
1810 fprintf( stderr
, ", mode=%d", req
->mode
);
1813 static void dump_set_console_input_info_request( const struct set_console_input_info_request
*req
)
1815 fprintf( stderr
, " handle=%04x", req
->handle
);
1816 fprintf( stderr
, ", mask=%d", req
->mask
);
1817 fprintf( stderr
, ", active_sb=%04x", req
->active_sb
);
1818 fprintf( stderr
, ", history_mode=%d", req
->history_mode
);
1819 fprintf( stderr
, ", history_size=%d", req
->history_size
);
1820 fprintf( stderr
, ", edition_mode=%d", req
->edition_mode
);
1821 fprintf( stderr
, ", input_cp=%d", req
->input_cp
);
1822 fprintf( stderr
, ", output_cp=%d", req
->output_cp
);
1823 fprintf( stderr
, ", win=%08x", req
->win
);
1824 dump_varargs_unicode_str( ", title=", cur_size
);
1827 static void dump_get_console_input_info_request( const struct get_console_input_info_request
*req
)
1829 fprintf( stderr
, " handle=%04x", req
->handle
);
1832 static void dump_get_console_input_info_reply( const struct get_console_input_info_reply
*req
)
1834 fprintf( stderr
, " history_mode=%d", req
->history_mode
);
1835 fprintf( stderr
, ", history_size=%d", req
->history_size
);
1836 fprintf( stderr
, ", history_index=%d", req
->history_index
);
1837 fprintf( stderr
, ", edition_mode=%d", req
->edition_mode
);
1838 fprintf( stderr
, ", input_cp=%d", req
->input_cp
);
1839 fprintf( stderr
, ", output_cp=%d", req
->output_cp
);
1840 fprintf( stderr
, ", win=%08x", req
->win
);
1841 dump_varargs_unicode_str( ", title=", cur_size
);
1844 static void dump_append_console_input_history_request( const struct append_console_input_history_request
*req
)
1846 fprintf( stderr
, " handle=%04x", req
->handle
);
1847 dump_varargs_unicode_str( ", line=", cur_size
);
1850 static void dump_get_console_input_history_request( const struct get_console_input_history_request
*req
)
1852 fprintf( stderr
, " handle=%04x", req
->handle
);
1853 fprintf( stderr
, ", index=%d", req
->index
);
1856 static void dump_get_console_input_history_reply( const struct get_console_input_history_reply
*req
)
1858 fprintf( stderr
, " total=%d", req
->total
);
1859 dump_varargs_unicode_str( ", line=", cur_size
);
1862 static void dump_create_console_output_request( const struct create_console_output_request
*req
)
1864 fprintf( stderr
, " handle_in=%04x", req
->handle_in
);
1865 fprintf( stderr
, ", access=%08x", req
->access
);
1866 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1867 fprintf( stderr
, ", share=%08x", req
->share
);
1868 fprintf( stderr
, ", fd=%d", req
->fd
);
1871 static void dump_create_console_output_reply( const struct create_console_output_reply
*req
)
1873 fprintf( stderr
, " handle_out=%04x", req
->handle_out
);
1876 static void dump_set_console_output_info_request( const struct set_console_output_info_request
*req
)
1878 fprintf( stderr
, " handle=%04x", req
->handle
);
1879 fprintf( stderr
, ", mask=%d", req
->mask
);
1880 fprintf( stderr
, ", cursor_size=%d", req
->cursor_size
);
1881 fprintf( stderr
, ", cursor_visible=%d", req
->cursor_visible
);
1882 fprintf( stderr
, ", cursor_x=%d", req
->cursor_x
);
1883 fprintf( stderr
, ", cursor_y=%d", req
->cursor_y
);
1884 fprintf( stderr
, ", width=%d", req
->width
);
1885 fprintf( stderr
, ", height=%d", req
->height
);
1886 fprintf( stderr
, ", attr=%d", req
->attr
);
1887 fprintf( stderr
, ", win_left=%d", req
->win_left
);
1888 fprintf( stderr
, ", win_top=%d", req
->win_top
);
1889 fprintf( stderr
, ", win_right=%d", req
->win_right
);
1890 fprintf( stderr
, ", win_bottom=%d", req
->win_bottom
);
1891 fprintf( stderr
, ", max_width=%d", req
->max_width
);
1892 fprintf( stderr
, ", max_height=%d", req
->max_height
);
1895 static void dump_get_console_output_info_request( const struct get_console_output_info_request
*req
)
1897 fprintf( stderr
, " handle=%04x", req
->handle
);
1900 static void dump_get_console_output_info_reply( const struct get_console_output_info_reply
*req
)
1902 fprintf( stderr
, " cursor_size=%d", req
->cursor_size
);
1903 fprintf( stderr
, ", cursor_visible=%d", req
->cursor_visible
);
1904 fprintf( stderr
, ", cursor_x=%d", req
->cursor_x
);
1905 fprintf( stderr
, ", cursor_y=%d", req
->cursor_y
);
1906 fprintf( stderr
, ", width=%d", req
->width
);
1907 fprintf( stderr
, ", height=%d", req
->height
);
1908 fprintf( stderr
, ", attr=%d", req
->attr
);
1909 fprintf( stderr
, ", win_left=%d", req
->win_left
);
1910 fprintf( stderr
, ", win_top=%d", req
->win_top
);
1911 fprintf( stderr
, ", win_right=%d", req
->win_right
);
1912 fprintf( stderr
, ", win_bottom=%d", req
->win_bottom
);
1913 fprintf( stderr
, ", max_width=%d", req
->max_width
);
1914 fprintf( stderr
, ", max_height=%d", req
->max_height
);
1917 static void dump_write_console_input_request( const struct write_console_input_request
*req
)
1919 fprintf( stderr
, " handle=%04x", req
->handle
);
1920 dump_varargs_input_records( ", rec=", cur_size
);
1923 static void dump_write_console_input_reply( const struct write_console_input_reply
*req
)
1925 fprintf( stderr
, " written=%d", req
->written
);
1928 static void dump_read_console_input_request( const struct read_console_input_request
*req
)
1930 fprintf( stderr
, " handle=%04x", req
->handle
);
1931 fprintf( stderr
, ", flush=%d", req
->flush
);
1934 static void dump_read_console_input_reply( const struct read_console_input_reply
*req
)
1936 fprintf( stderr
, " read=%d", req
->read
);
1937 dump_varargs_input_records( ", rec=", cur_size
);
1940 static void dump_write_console_output_request( const struct write_console_output_request
*req
)
1942 fprintf( stderr
, " handle=%04x", req
->handle
);
1943 fprintf( stderr
, ", x=%d", req
->x
);
1944 fprintf( stderr
, ", y=%d", req
->y
);
1945 fprintf( stderr
, ", mode=%d", req
->mode
);
1946 fprintf( stderr
, ", wrap=%d", req
->wrap
);
1947 dump_varargs_bytes( ", data=", cur_size
);
1950 static void dump_write_console_output_reply( const struct write_console_output_reply
*req
)
1952 fprintf( stderr
, " written=%d", req
->written
);
1953 fprintf( stderr
, ", width=%d", req
->width
);
1954 fprintf( stderr
, ", height=%d", req
->height
);
1957 static void dump_fill_console_output_request( const struct fill_console_output_request
*req
)
1959 fprintf( stderr
, " handle=%04x", req
->handle
);
1960 fprintf( stderr
, ", x=%d", req
->x
);
1961 fprintf( stderr
, ", y=%d", req
->y
);
1962 fprintf( stderr
, ", mode=%d", req
->mode
);
1963 fprintf( stderr
, ", count=%d", req
->count
);
1964 fprintf( stderr
, ", wrap=%d", req
->wrap
);
1965 dump_char_info( ", data=", &req
->data
);
1968 static void dump_fill_console_output_reply( const struct fill_console_output_reply
*req
)
1970 fprintf( stderr
, " written=%d", req
->written
);
1973 static void dump_read_console_output_request( const struct read_console_output_request
*req
)
1975 fprintf( stderr
, " handle=%04x", req
->handle
);
1976 fprintf( stderr
, ", x=%d", req
->x
);
1977 fprintf( stderr
, ", y=%d", req
->y
);
1978 fprintf( stderr
, ", mode=%d", req
->mode
);
1979 fprintf( stderr
, ", wrap=%d", req
->wrap
);
1982 static void dump_read_console_output_reply( const struct read_console_output_reply
*req
)
1984 fprintf( stderr
, " width=%d", req
->width
);
1985 fprintf( stderr
, ", height=%d", req
->height
);
1986 dump_varargs_bytes( ", data=", cur_size
);
1989 static void dump_move_console_output_request( const struct move_console_output_request
*req
)
1991 fprintf( stderr
, " handle=%04x", req
->handle
);
1992 fprintf( stderr
, ", x_src=%d", req
->x_src
);
1993 fprintf( stderr
, ", y_src=%d", req
->y_src
);
1994 fprintf( stderr
, ", x_dst=%d", req
->x_dst
);
1995 fprintf( stderr
, ", y_dst=%d", req
->y_dst
);
1996 fprintf( stderr
, ", w=%d", req
->w
);
1997 fprintf( stderr
, ", h=%d", req
->h
);
2000 static void dump_send_console_signal_request( const struct send_console_signal_request
*req
)
2002 fprintf( stderr
, " signal=%d", req
->signal
);
2003 fprintf( stderr
, ", group_id=%04x", req
->group_id
);
2006 static void dump_read_directory_changes_request( const struct read_directory_changes_request
*req
)
2008 fprintf( stderr
, " filter=%08x", req
->filter
);
2009 fprintf( stderr
, ", subtree=%d", req
->subtree
);
2010 fprintf( stderr
, ", want_data=%d", req
->want_data
);
2011 dump_async_data( ", async=", &req
->async
);
2014 static void dump_read_change_request( const struct read_change_request
*req
)
2016 fprintf( stderr
, " handle=%04x", req
->handle
);
2019 static void dump_read_change_reply( const struct read_change_reply
*req
)
2021 dump_varargs_filesystem_event( " events=", cur_size
);
2024 static void dump_create_mapping_request( const struct create_mapping_request
*req
)
2026 fprintf( stderr
, " access=%08x", req
->access
);
2027 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
2028 fprintf( stderr
, ", protect=%08x", req
->protect
);
2029 dump_uint64( ", size=", &req
->size
);
2030 fprintf( stderr
, ", file_handle=%04x", req
->file_handle
);
2031 dump_varargs_object_attributes( ", objattr=", cur_size
);
2034 static void dump_create_mapping_reply( const struct create_mapping_reply
*req
)
2036 fprintf( stderr
, " handle=%04x", req
->handle
);
2039 static void dump_open_mapping_request( const struct open_mapping_request
*req
)
2041 fprintf( stderr
, " access=%08x", req
->access
);
2042 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
2043 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
2044 dump_varargs_unicode_str( ", name=", cur_size
);
2047 static void dump_open_mapping_reply( const struct open_mapping_reply
*req
)
2049 fprintf( stderr
, " handle=%04x", req
->handle
);
2052 static void dump_get_mapping_info_request( const struct get_mapping_info_request
*req
)
2054 fprintf( stderr
, " handle=%04x", req
->handle
);
2055 fprintf( stderr
, ", access=%08x", req
->access
);
2058 static void dump_get_mapping_info_reply( const struct get_mapping_info_reply
*req
)
2060 dump_uint64( " size=", &req
->size
);
2061 fprintf( stderr
, ", protect=%d", req
->protect
);
2062 fprintf( stderr
, ", header_size=%d", req
->header_size
);
2063 dump_uint64( ", base=", &req
->base
);
2064 fprintf( stderr
, ", mapping=%04x", req
->mapping
);
2065 fprintf( stderr
, ", shared_file=%04x", req
->shared_file
);
2068 static void dump_get_mapping_committed_range_request( const struct get_mapping_committed_range_request
*req
)
2070 fprintf( stderr
, " handle=%04x", req
->handle
);
2071 dump_uint64( ", offset=", &req
->offset
);
2074 static void dump_get_mapping_committed_range_reply( const struct get_mapping_committed_range_reply
*req
)
2076 dump_uint64( " size=", &req
->size
);
2077 fprintf( stderr
, ", committed=%d", req
->committed
);
2080 static void dump_add_mapping_committed_range_request( const struct add_mapping_committed_range_request
*req
)
2082 fprintf( stderr
, " handle=%04x", req
->handle
);
2083 dump_uint64( ", offset=", &req
->offset
);
2084 dump_uint64( ", size=", &req
->size
);
2087 static void dump_create_snapshot_request( const struct create_snapshot_request
*req
)
2089 fprintf( stderr
, " attributes=%08x", req
->attributes
);
2090 fprintf( stderr
, ", flags=%08x", req
->flags
);
2093 static void dump_create_snapshot_reply( const struct create_snapshot_reply
*req
)
2095 fprintf( stderr
, " handle=%04x", req
->handle
);
2098 static void dump_next_process_request( const struct next_process_request
*req
)
2100 fprintf( stderr
, " handle=%04x", req
->handle
);
2101 fprintf( stderr
, ", reset=%d", req
->reset
);
2104 static void dump_next_process_reply( const struct next_process_reply
*req
)
2106 fprintf( stderr
, " count=%d", req
->count
);
2107 fprintf( stderr
, ", pid=%04x", req
->pid
);
2108 fprintf( stderr
, ", ppid=%04x", req
->ppid
);
2109 fprintf( stderr
, ", threads=%d", req
->threads
);
2110 fprintf( stderr
, ", priority=%d", req
->priority
);
2111 fprintf( stderr
, ", handles=%d", req
->handles
);
2112 fprintf( stderr
, ", unix_pid=%d", req
->unix_pid
);
2113 dump_varargs_unicode_str( ", filename=", cur_size
);
2116 static void dump_next_thread_request( const struct next_thread_request
*req
)
2118 fprintf( stderr
, " handle=%04x", req
->handle
);
2119 fprintf( stderr
, ", reset=%d", req
->reset
);
2122 static void dump_next_thread_reply( const struct next_thread_reply
*req
)
2124 fprintf( stderr
, " count=%d", req
->count
);
2125 fprintf( stderr
, ", pid=%04x", req
->pid
);
2126 fprintf( stderr
, ", tid=%04x", req
->tid
);
2127 fprintf( stderr
, ", base_pri=%d", req
->base_pri
);
2128 fprintf( stderr
, ", delta_pri=%d", req
->delta_pri
);
2131 static void dump_wait_debug_event_request( const struct wait_debug_event_request
*req
)
2133 fprintf( stderr
, " get_handle=%d", req
->get_handle
);
2136 static void dump_wait_debug_event_reply( const struct wait_debug_event_reply
*req
)
2138 fprintf( stderr
, " pid=%04x", req
->pid
);
2139 fprintf( stderr
, ", tid=%04x", req
->tid
);
2140 fprintf( stderr
, ", wait=%04x", req
->wait
);
2141 dump_varargs_debug_event( ", event=", cur_size
);
2144 static void dump_queue_exception_event_request( const struct queue_exception_event_request
*req
)
2146 fprintf( stderr
, " first=%d", req
->first
);
2147 fprintf( stderr
, ", code=%08x", req
->code
);
2148 fprintf( stderr
, ", flags=%08x", req
->flags
);
2149 dump_uint64( ", record=", &req
->record
);
2150 dump_uint64( ", address=", &req
->address
);
2151 fprintf( stderr
, ", len=%u", req
->len
);
2152 dump_varargs_uints64( ", params=", min(cur_size
,req
->len
) );
2153 dump_varargs_context( ", context=", cur_size
);
2156 static void dump_queue_exception_event_reply( const struct queue_exception_event_reply
*req
)
2158 fprintf( stderr
, " handle=%04x", req
->handle
);
2161 static void dump_get_exception_status_request( const struct get_exception_status_request
*req
)
2163 fprintf( stderr
, " handle=%04x", req
->handle
);
2166 static void dump_get_exception_status_reply( const struct get_exception_status_reply
*req
)
2168 dump_varargs_context( " context=", cur_size
);
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
);
2634 static void dump_get_message_reply_request( const struct get_message_reply_request
*req
)
2636 fprintf( stderr
, " cancel=%d", req
->cancel
);
2639 static void dump_get_message_reply_reply( const struct get_message_reply_reply
*req
)
2641 dump_uint64( " result=", &req
->result
);
2642 dump_varargs_bytes( ", data=", cur_size
);
2645 static void dump_set_win_timer_request( const struct set_win_timer_request
*req
)
2647 fprintf( stderr
, " win=%08x", req
->win
);
2648 fprintf( stderr
, ", msg=%08x", req
->msg
);
2649 fprintf( stderr
, ", rate=%08x", req
->rate
);
2650 dump_uint64( ", id=", &req
->id
);
2651 dump_uint64( ", lparam=", &req
->lparam
);
2654 static void dump_set_win_timer_reply( const struct set_win_timer_reply
*req
)
2656 dump_uint64( " id=", &req
->id
);
2659 static void dump_kill_win_timer_request( const struct kill_win_timer_request
*req
)
2661 fprintf( stderr
, " win=%08x", req
->win
);
2662 dump_uint64( ", id=", &req
->id
);
2663 fprintf( stderr
, ", msg=%08x", req
->msg
);
2666 static void dump_is_window_hung_request( const struct is_window_hung_request
*req
)
2668 fprintf( stderr
, " win=%08x", req
->win
);
2671 static void dump_is_window_hung_reply( const struct is_window_hung_reply
*req
)
2673 fprintf( stderr
, " is_hung=%d", req
->is_hung
);
2676 static void dump_get_serial_info_request( const struct get_serial_info_request
*req
)
2678 fprintf( stderr
, " handle=%04x", req
->handle
);
2679 fprintf( stderr
, ", flags=%d", req
->flags
);
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
);
2691 fprintf( stderr
, ", pending_write=%08x", req
->pending_write
);
2694 static void dump_set_serial_info_request( const struct set_serial_info_request
*req
)
2696 fprintf( stderr
, " handle=%04x", req
->handle
);
2697 fprintf( stderr
, ", flags=%d", req
->flags
);
2698 fprintf( stderr
, ", readinterval=%08x", req
->readinterval
);
2699 fprintf( stderr
, ", readconst=%08x", req
->readconst
);
2700 fprintf( stderr
, ", readmult=%08x", req
->readmult
);
2701 fprintf( stderr
, ", writeconst=%08x", req
->writeconst
);
2702 fprintf( stderr
, ", writemult=%08x", req
->writemult
);
2703 fprintf( stderr
, ", eventmask=%08x", req
->eventmask
);
2706 static void dump_register_async_request( const struct register_async_request
*req
)
2708 fprintf( stderr
, " type=%d", req
->type
);
2709 dump_async_data( ", async=", &req
->async
);
2710 fprintf( stderr
, ", count=%d", req
->count
);
2713 static void dump_cancel_async_request( const struct cancel_async_request
*req
)
2715 fprintf( stderr
, " handle=%04x", req
->handle
);
2716 dump_uint64( ", iosb=", &req
->iosb
);
2717 fprintf( stderr
, ", only_thread=%d", req
->only_thread
);
2720 static void dump_ioctl_request( const struct ioctl_request
*req
)
2722 dump_ioctl_code( " code=", &req
->code
);
2723 dump_async_data( ", async=", &req
->async
);
2724 fprintf( stderr
, ", blocking=%d", req
->blocking
);
2725 dump_varargs_bytes( ", in_data=", cur_size
);
2728 static void dump_ioctl_reply( const struct ioctl_reply
*req
)
2730 fprintf( stderr
, " wait=%04x", req
->wait
);
2731 fprintf( stderr
, ", options=%08x", req
->options
);
2732 dump_varargs_bytes( ", out_data=", cur_size
);
2735 static void dump_set_ioctl_result_request( const struct set_ioctl_result_request
*req
)
2737 fprintf( stderr
, " manager=%04x", req
->manager
);
2738 fprintf( stderr
, ", handle=%04x", req
->handle
);
2739 fprintf( stderr
, ", status=%08x", req
->status
);
2740 dump_varargs_bytes( ", data=", cur_size
);
2743 static void dump_get_ioctl_result_request( const struct get_ioctl_result_request
*req
)
2745 fprintf( stderr
, " handle=%04x", req
->handle
);
2746 dump_uint64( ", user_arg=", &req
->user_arg
);
2749 static void dump_get_ioctl_result_reply( const struct get_ioctl_result_reply
*req
)
2751 dump_varargs_bytes( " out_data=", cur_size
);
2754 static void dump_create_named_pipe_request( const struct create_named_pipe_request
*req
)
2756 fprintf( stderr
, " access=%08x", req
->access
);
2757 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
2758 fprintf( stderr
, ", options=%08x", req
->options
);
2759 fprintf( stderr
, ", sharing=%08x", req
->sharing
);
2760 fprintf( stderr
, ", maxinstances=%08x", req
->maxinstances
);
2761 fprintf( stderr
, ", outsize=%08x", req
->outsize
);
2762 fprintf( stderr
, ", insize=%08x", req
->insize
);
2763 dump_timeout( ", timeout=", &req
->timeout
);
2764 fprintf( stderr
, ", flags=%08x", req
->flags
);
2765 dump_varargs_object_attributes( ", objattr=", cur_size
);
2768 static void dump_create_named_pipe_reply( const struct create_named_pipe_reply
*req
)
2770 fprintf( stderr
, " handle=%04x", req
->handle
);
2773 static void dump_get_named_pipe_info_request( const struct get_named_pipe_info_request
*req
)
2775 fprintf( stderr
, " handle=%04x", req
->handle
);
2778 static void dump_get_named_pipe_info_reply( const struct get_named_pipe_info_reply
*req
)
2780 fprintf( stderr
, " flags=%08x", req
->flags
);
2781 fprintf( stderr
, ", sharing=%08x", req
->sharing
);
2782 fprintf( stderr
, ", maxinstances=%08x", req
->maxinstances
);
2783 fprintf( stderr
, ", instances=%08x", req
->instances
);
2784 fprintf( stderr
, ", outsize=%08x", req
->outsize
);
2785 fprintf( stderr
, ", insize=%08x", req
->insize
);
2788 static void dump_set_named_pipe_info_request( const struct set_named_pipe_info_request
*req
)
2790 fprintf( stderr
, " handle=%04x", req
->handle
);
2791 fprintf( stderr
, ", flags=%08x", req
->flags
);
2794 static void dump_create_window_request( const struct create_window_request
*req
)
2796 fprintf( stderr
, " parent=%08x", req
->parent
);
2797 fprintf( stderr
, ", owner=%08x", req
->owner
);
2798 fprintf( stderr
, ", atom=%04x", req
->atom
);
2799 dump_uint64( ", instance=", &req
->instance
);
2800 dump_varargs_unicode_str( ", class=", cur_size
);
2803 static void dump_create_window_reply( const struct create_window_reply
*req
)
2805 fprintf( stderr
, " handle=%08x", req
->handle
);
2806 fprintf( stderr
, ", parent=%08x", req
->parent
);
2807 fprintf( stderr
, ", owner=%08x", req
->owner
);
2808 fprintf( stderr
, ", extra=%d", req
->extra
);
2809 dump_uint64( ", class_ptr=", &req
->class_ptr
);
2812 static void dump_destroy_window_request( const struct destroy_window_request
*req
)
2814 fprintf( stderr
, " handle=%08x", req
->handle
);
2817 static void dump_get_desktop_window_request( const struct get_desktop_window_request
*req
)
2819 fprintf( stderr
, " force=%d", req
->force
);
2822 static void dump_get_desktop_window_reply( const struct get_desktop_window_reply
*req
)
2824 fprintf( stderr
, " top_window=%08x", req
->top_window
);
2825 fprintf( stderr
, ", msg_window=%08x", req
->msg_window
);
2828 static void dump_set_window_owner_request( const struct set_window_owner_request
*req
)
2830 fprintf( stderr
, " handle=%08x", req
->handle
);
2831 fprintf( stderr
, ", owner=%08x", req
->owner
);
2834 static void dump_set_window_owner_reply( const struct set_window_owner_reply
*req
)
2836 fprintf( stderr
, " full_owner=%08x", req
->full_owner
);
2837 fprintf( stderr
, ", prev_owner=%08x", req
->prev_owner
);
2840 static void dump_get_window_info_request( const struct get_window_info_request
*req
)
2842 fprintf( stderr
, " handle=%08x", req
->handle
);
2845 static void dump_get_window_info_reply( const struct get_window_info_reply
*req
)
2847 fprintf( stderr
, " full_handle=%08x", req
->full_handle
);
2848 fprintf( stderr
, ", last_active=%08x", req
->last_active
);
2849 fprintf( stderr
, ", pid=%04x", req
->pid
);
2850 fprintf( stderr
, ", tid=%04x", req
->tid
);
2851 fprintf( stderr
, ", atom=%04x", req
->atom
);
2852 fprintf( stderr
, ", is_unicode=%d", req
->is_unicode
);
2855 static void dump_set_window_info_request( const struct set_window_info_request
*req
)
2857 fprintf( stderr
, " flags=%04x", req
->flags
);
2858 fprintf( stderr
, ", is_unicode=%d", req
->is_unicode
);
2859 fprintf( stderr
, ", handle=%08x", req
->handle
);
2860 fprintf( stderr
, ", style=%08x", req
->style
);
2861 fprintf( stderr
, ", ex_style=%08x", req
->ex_style
);
2862 fprintf( stderr
, ", id=%08x", req
->id
);
2863 dump_uint64( ", instance=", &req
->instance
);
2864 dump_uint64( ", user_data=", &req
->user_data
);
2865 fprintf( stderr
, ", extra_offset=%d", req
->extra_offset
);
2866 fprintf( stderr
, ", extra_size=%u", req
->extra_size
);
2867 dump_uint64( ", extra_value=", &req
->extra_value
);
2870 static void dump_set_window_info_reply( const struct set_window_info_reply
*req
)
2872 fprintf( stderr
, " old_style=%08x", req
->old_style
);
2873 fprintf( stderr
, ", old_ex_style=%08x", req
->old_ex_style
);
2874 dump_uint64( ", old_instance=", &req
->old_instance
);
2875 dump_uint64( ", old_user_data=", &req
->old_user_data
);
2876 dump_uint64( ", old_extra_value=", &req
->old_extra_value
);
2877 fprintf( stderr
, ", old_id=%08x", req
->old_id
);
2880 static void dump_set_parent_request( const struct set_parent_request
*req
)
2882 fprintf( stderr
, " handle=%08x", req
->handle
);
2883 fprintf( stderr
, ", parent=%08x", req
->parent
);
2886 static void dump_set_parent_reply( const struct set_parent_reply
*req
)
2888 fprintf( stderr
, " old_parent=%08x", req
->old_parent
);
2889 fprintf( stderr
, ", full_parent=%08x", req
->full_parent
);
2892 static void dump_get_window_parents_request( const struct get_window_parents_request
*req
)
2894 fprintf( stderr
, " handle=%08x", req
->handle
);
2897 static void dump_get_window_parents_reply( const struct get_window_parents_reply
*req
)
2899 fprintf( stderr
, " count=%d", req
->count
);
2900 dump_varargs_user_handles( ", parents=", cur_size
);
2903 static void dump_get_window_children_request( const struct get_window_children_request
*req
)
2905 fprintf( stderr
, " desktop=%04x", req
->desktop
);
2906 fprintf( stderr
, ", parent=%08x", req
->parent
);
2907 fprintf( stderr
, ", atom=%04x", req
->atom
);
2908 fprintf( stderr
, ", tid=%04x", req
->tid
);
2909 dump_varargs_unicode_str( ", class=", cur_size
);
2912 static void dump_get_window_children_reply( const struct get_window_children_reply
*req
)
2914 fprintf( stderr
, " count=%d", req
->count
);
2915 dump_varargs_user_handles( ", children=", cur_size
);
2918 static void dump_get_window_children_from_point_request( const struct get_window_children_from_point_request
*req
)
2920 fprintf( stderr
, " parent=%08x", req
->parent
);
2921 fprintf( stderr
, ", x=%d", req
->x
);
2922 fprintf( stderr
, ", y=%d", req
->y
);
2925 static void dump_get_window_children_from_point_reply( const struct get_window_children_from_point_reply
*req
)
2927 fprintf( stderr
, " count=%d", req
->count
);
2928 dump_varargs_user_handles( ", children=", cur_size
);
2931 static void dump_get_window_tree_request( const struct get_window_tree_request
*req
)
2933 fprintf( stderr
, " handle=%08x", req
->handle
);
2936 static void dump_get_window_tree_reply( const struct get_window_tree_reply
*req
)
2938 fprintf( stderr
, " parent=%08x", req
->parent
);
2939 fprintf( stderr
, ", owner=%08x", req
->owner
);
2940 fprintf( stderr
, ", next_sibling=%08x", req
->next_sibling
);
2941 fprintf( stderr
, ", prev_sibling=%08x", req
->prev_sibling
);
2942 fprintf( stderr
, ", first_sibling=%08x", req
->first_sibling
);
2943 fprintf( stderr
, ", last_sibling=%08x", req
->last_sibling
);
2944 fprintf( stderr
, ", first_child=%08x", req
->first_child
);
2945 fprintf( stderr
, ", last_child=%08x", req
->last_child
);
2948 static void dump_set_window_pos_request( const struct set_window_pos_request
*req
)
2950 fprintf( stderr
, " swp_flags=%04x", req
->swp_flags
);
2951 fprintf( stderr
, ", paint_flags=%04x", req
->paint_flags
);
2952 fprintf( stderr
, ", handle=%08x", req
->handle
);
2953 fprintf( stderr
, ", previous=%08x", req
->previous
);
2954 dump_rectangle( ", window=", &req
->window
);
2955 dump_rectangle( ", client=", &req
->client
);
2956 dump_varargs_rectangles( ", valid=", cur_size
);
2959 static void dump_set_window_pos_reply( const struct set_window_pos_reply
*req
)
2961 fprintf( stderr
, " new_style=%08x", req
->new_style
);
2962 fprintf( stderr
, ", new_ex_style=%08x", req
->new_ex_style
);
2963 fprintf( stderr
, ", surface_win=%08x", req
->surface_win
);
2966 static void dump_get_window_rectangles_request( const struct get_window_rectangles_request
*req
)
2968 fprintf( stderr
, " handle=%08x", req
->handle
);
2969 fprintf( stderr
, ", relative=%d", req
->relative
);
2972 static void dump_get_window_rectangles_reply( const struct get_window_rectangles_reply
*req
)
2974 dump_rectangle( " window=", &req
->window
);
2975 dump_rectangle( ", visible=", &req
->visible
);
2976 dump_rectangle( ", client=", &req
->client
);
2979 static void dump_get_window_text_request( const struct get_window_text_request
*req
)
2981 fprintf( stderr
, " handle=%08x", req
->handle
);
2984 static void dump_get_window_text_reply( const struct get_window_text_reply
*req
)
2986 dump_varargs_unicode_str( " text=", cur_size
);
2989 static void dump_set_window_text_request( const struct set_window_text_request
*req
)
2991 fprintf( stderr
, " handle=%08x", req
->handle
);
2992 dump_varargs_unicode_str( ", text=", cur_size
);
2995 static void dump_get_windows_offset_request( const struct get_windows_offset_request
*req
)
2997 fprintf( stderr
, " from=%08x", req
->from
);
2998 fprintf( stderr
, ", to=%08x", req
->to
);
3001 static void dump_get_windows_offset_reply( const struct get_windows_offset_reply
*req
)
3003 fprintf( stderr
, " x=%d", req
->x
);
3004 fprintf( stderr
, ", y=%d", req
->y
);
3005 fprintf( stderr
, ", mirror=%d", req
->mirror
);
3008 static void dump_get_visible_region_request( const struct get_visible_region_request
*req
)
3010 fprintf( stderr
, " window=%08x", req
->window
);
3011 fprintf( stderr
, ", flags=%08x", req
->flags
);
3014 static void dump_get_visible_region_reply( const struct get_visible_region_reply
*req
)
3016 fprintf( stderr
, " top_win=%08x", req
->top_win
);
3017 dump_rectangle( ", top_rect=", &req
->top_rect
);
3018 dump_rectangle( ", win_rect=", &req
->win_rect
);
3019 fprintf( stderr
, ", paint_flags=%08x", req
->paint_flags
);
3020 fprintf( stderr
, ", total_size=%u", req
->total_size
);
3021 dump_varargs_rectangles( ", region=", cur_size
);
3024 static void dump_get_surface_region_request( const struct get_surface_region_request
*req
)
3026 fprintf( stderr
, " window=%08x", req
->window
);
3029 static void dump_get_surface_region_reply( const struct get_surface_region_reply
*req
)
3031 dump_rectangle( " visible_rect=", &req
->visible_rect
);
3032 fprintf( stderr
, ", total_size=%u", req
->total_size
);
3033 dump_varargs_rectangles( ", region=", cur_size
);
3036 static void dump_get_window_region_request( const struct get_window_region_request
*req
)
3038 fprintf( stderr
, " window=%08x", req
->window
);
3041 static void dump_get_window_region_reply( const struct get_window_region_reply
*req
)
3043 fprintf( stderr
, " total_size=%u", req
->total_size
);
3044 dump_varargs_rectangles( ", region=", cur_size
);
3047 static void dump_set_window_region_request( const struct set_window_region_request
*req
)
3049 fprintf( stderr
, " window=%08x", req
->window
);
3050 fprintf( stderr
, ", redraw=%d", req
->redraw
);
3051 dump_varargs_rectangles( ", region=", cur_size
);
3054 static void dump_get_update_region_request( const struct get_update_region_request
*req
)
3056 fprintf( stderr
, " window=%08x", req
->window
);
3057 fprintf( stderr
, ", from_child=%08x", req
->from_child
);
3058 fprintf( stderr
, ", flags=%08x", req
->flags
);
3061 static void dump_get_update_region_reply( const struct get_update_region_reply
*req
)
3063 fprintf( stderr
, " child=%08x", req
->child
);
3064 fprintf( stderr
, ", flags=%08x", req
->flags
);
3065 fprintf( stderr
, ", total_size=%u", req
->total_size
);
3066 dump_varargs_rectangles( ", region=", cur_size
);
3069 static void dump_update_window_zorder_request( const struct update_window_zorder_request
*req
)
3071 fprintf( stderr
, " window=%08x", req
->window
);
3072 dump_rectangle( ", rect=", &req
->rect
);
3075 static void dump_redraw_window_request( const struct redraw_window_request
*req
)
3077 fprintf( stderr
, " window=%08x", req
->window
);
3078 fprintf( stderr
, ", flags=%08x", req
->flags
);
3079 dump_varargs_rectangles( ", region=", cur_size
);
3082 static void dump_set_window_property_request( const struct set_window_property_request
*req
)
3084 fprintf( stderr
, " window=%08x", req
->window
);
3085 dump_uint64( ", data=", &req
->data
);
3086 fprintf( stderr
, ", atom=%04x", req
->atom
);
3087 dump_varargs_unicode_str( ", name=", cur_size
);
3090 static void dump_remove_window_property_request( const struct remove_window_property_request
*req
)
3092 fprintf( stderr
, " window=%08x", req
->window
);
3093 fprintf( stderr
, ", atom=%04x", req
->atom
);
3094 dump_varargs_unicode_str( ", name=", cur_size
);
3097 static void dump_remove_window_property_reply( const struct remove_window_property_reply
*req
)
3099 dump_uint64( " data=", &req
->data
);
3102 static void dump_get_window_property_request( const struct get_window_property_request
*req
)
3104 fprintf( stderr
, " window=%08x", req
->window
);
3105 fprintf( stderr
, ", atom=%04x", req
->atom
);
3106 dump_varargs_unicode_str( ", name=", cur_size
);
3109 static void dump_get_window_property_reply( const struct get_window_property_reply
*req
)
3111 dump_uint64( " data=", &req
->data
);
3114 static void dump_get_window_properties_request( const struct get_window_properties_request
*req
)
3116 fprintf( stderr
, " window=%08x", req
->window
);
3119 static void dump_get_window_properties_reply( const struct get_window_properties_reply
*req
)
3121 fprintf( stderr
, " total=%d", req
->total
);
3122 dump_varargs_properties( ", props=", cur_size
);
3125 static void dump_create_winstation_request( const struct create_winstation_request
*req
)
3127 fprintf( stderr
, " flags=%08x", req
->flags
);
3128 fprintf( stderr
, ", access=%08x", req
->access
);
3129 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3130 dump_varargs_unicode_str( ", name=", cur_size
);
3133 static void dump_create_winstation_reply( const struct create_winstation_reply
*req
)
3135 fprintf( stderr
, " handle=%04x", req
->handle
);
3138 static void dump_open_winstation_request( const struct open_winstation_request
*req
)
3140 fprintf( stderr
, " access=%08x", req
->access
);
3141 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3142 dump_varargs_unicode_str( ", name=", cur_size
);
3145 static void dump_open_winstation_reply( const struct open_winstation_reply
*req
)
3147 fprintf( stderr
, " handle=%04x", req
->handle
);
3150 static void dump_close_winstation_request( const struct close_winstation_request
*req
)
3152 fprintf( stderr
, " handle=%04x", req
->handle
);
3155 static void dump_get_process_winstation_request( const struct get_process_winstation_request
*req
)
3159 static void dump_get_process_winstation_reply( const struct get_process_winstation_reply
*req
)
3161 fprintf( stderr
, " handle=%04x", req
->handle
);
3164 static void dump_set_process_winstation_request( const struct set_process_winstation_request
*req
)
3166 fprintf( stderr
, " handle=%04x", req
->handle
);
3169 static void dump_enum_winstation_request( const struct enum_winstation_request
*req
)
3171 fprintf( stderr
, " index=%08x", req
->index
);
3174 static void dump_enum_winstation_reply( const struct enum_winstation_reply
*req
)
3176 fprintf( stderr
, " next=%08x", req
->next
);
3177 dump_varargs_unicode_str( ", name=", cur_size
);
3180 static void dump_create_desktop_request( const struct create_desktop_request
*req
)
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_create_desktop_reply( const struct create_desktop_reply
*req
)
3190 fprintf( stderr
, " handle=%04x", req
->handle
);
3193 static void dump_open_desktop_request( const struct open_desktop_request
*req
)
3195 fprintf( stderr
, " winsta=%04x", req
->winsta
);
3196 fprintf( stderr
, ", flags=%08x", req
->flags
);
3197 fprintf( stderr
, ", access=%08x", req
->access
);
3198 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3199 dump_varargs_unicode_str( ", name=", cur_size
);
3202 static void dump_open_desktop_reply( const struct open_desktop_reply
*req
)
3204 fprintf( stderr
, " handle=%04x", req
->handle
);
3207 static void dump_open_input_desktop_request( const struct open_input_desktop_request
*req
)
3209 fprintf( stderr
, " flags=%08x", req
->flags
);
3210 fprintf( stderr
, ", access=%08x", req
->access
);
3211 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3214 static void dump_open_input_desktop_reply( const struct open_input_desktop_reply
*req
)
3216 fprintf( stderr
, " handle=%04x", req
->handle
);
3219 static void dump_close_desktop_request( const struct close_desktop_request
*req
)
3221 fprintf( stderr
, " handle=%04x", req
->handle
);
3224 static void dump_get_thread_desktop_request( const struct get_thread_desktop_request
*req
)
3226 fprintf( stderr
, " tid=%04x", req
->tid
);
3229 static void dump_get_thread_desktop_reply( const struct get_thread_desktop_reply
*req
)
3231 fprintf( stderr
, " handle=%04x", req
->handle
);
3234 static void dump_set_thread_desktop_request( const struct set_thread_desktop_request
*req
)
3236 fprintf( stderr
, " handle=%04x", req
->handle
);
3239 static void dump_enum_desktop_request( const struct enum_desktop_request
*req
)
3241 fprintf( stderr
, " winstation=%04x", req
->winstation
);
3242 fprintf( stderr
, ", index=%08x", req
->index
);
3245 static void dump_enum_desktop_reply( const struct enum_desktop_reply
*req
)
3247 fprintf( stderr
, " next=%08x", req
->next
);
3248 dump_varargs_unicode_str( ", name=", cur_size
);
3251 static void dump_set_user_object_info_request( const struct set_user_object_info_request
*req
)
3253 fprintf( stderr
, " handle=%04x", req
->handle
);
3254 fprintf( stderr
, ", flags=%08x", req
->flags
);
3255 fprintf( stderr
, ", obj_flags=%08x", req
->obj_flags
);
3258 static void dump_set_user_object_info_reply( const struct set_user_object_info_reply
*req
)
3260 fprintf( stderr
, " is_desktop=%d", req
->is_desktop
);
3261 fprintf( stderr
, ", old_obj_flags=%08x", req
->old_obj_flags
);
3262 dump_varargs_unicode_str( ", name=", cur_size
);
3265 static void dump_register_hotkey_request( const struct register_hotkey_request
*req
)
3267 fprintf( stderr
, " window=%08x", req
->window
);
3268 fprintf( stderr
, ", id=%d", req
->id
);
3269 fprintf( stderr
, ", flags=%08x", req
->flags
);
3270 fprintf( stderr
, ", vkey=%08x", req
->vkey
);
3273 static void dump_register_hotkey_reply( const struct register_hotkey_reply
*req
)
3275 fprintf( stderr
, " replaced=%d", req
->replaced
);
3276 fprintf( stderr
, ", flags=%08x", req
->flags
);
3277 fprintf( stderr
, ", vkey=%08x", req
->vkey
);
3280 static void dump_unregister_hotkey_request( const struct unregister_hotkey_request
*req
)
3282 fprintf( stderr
, " window=%08x", req
->window
);
3283 fprintf( stderr
, ", id=%d", req
->id
);
3286 static void dump_unregister_hotkey_reply( const struct unregister_hotkey_reply
*req
)
3288 fprintf( stderr
, " flags=%08x", req
->flags
);
3289 fprintf( stderr
, ", vkey=%08x", req
->vkey
);
3292 static void dump_attach_thread_input_request( const struct attach_thread_input_request
*req
)
3294 fprintf( stderr
, " tid_from=%04x", req
->tid_from
);
3295 fprintf( stderr
, ", tid_to=%04x", req
->tid_to
);
3296 fprintf( stderr
, ", attach=%d", req
->attach
);
3299 static void dump_get_thread_input_request( const struct get_thread_input_request
*req
)
3301 fprintf( stderr
, " tid=%04x", req
->tid
);
3304 static void dump_get_thread_input_reply( const struct get_thread_input_reply
*req
)
3306 fprintf( stderr
, " focus=%08x", req
->focus
);
3307 fprintf( stderr
, ", capture=%08x", req
->capture
);
3308 fprintf( stderr
, ", active=%08x", req
->active
);
3309 fprintf( stderr
, ", foreground=%08x", req
->foreground
);
3310 fprintf( stderr
, ", menu_owner=%08x", req
->menu_owner
);
3311 fprintf( stderr
, ", move_size=%08x", req
->move_size
);
3312 fprintf( stderr
, ", caret=%08x", req
->caret
);
3313 fprintf( stderr
, ", cursor=%08x", req
->cursor
);
3314 fprintf( stderr
, ", show_count=%d", req
->show_count
);
3315 dump_rectangle( ", rect=", &req
->rect
);
3318 static void dump_get_last_input_time_request( const struct get_last_input_time_request
*req
)
3322 static void dump_get_last_input_time_reply( const struct get_last_input_time_reply
*req
)
3324 fprintf( stderr
, " time=%08x", req
->time
);
3327 static void dump_get_key_state_request( const struct get_key_state_request
*req
)
3329 fprintf( stderr
, " tid=%04x", req
->tid
);
3330 fprintf( stderr
, ", key=%d", req
->key
);
3333 static void dump_get_key_state_reply( const struct get_key_state_reply
*req
)
3335 fprintf( stderr
, " state=%02x", req
->state
);
3336 dump_varargs_bytes( ", keystate=", cur_size
);
3339 static void dump_set_key_state_request( const struct set_key_state_request
*req
)
3341 fprintf( stderr
, " tid=%04x", req
->tid
);
3342 fprintf( stderr
, ", async=%d", req
->async
);
3343 dump_varargs_bytes( ", keystate=", cur_size
);
3346 static void dump_set_foreground_window_request( const struct set_foreground_window_request
*req
)
3348 fprintf( stderr
, " handle=%08x", req
->handle
);
3351 static void dump_set_foreground_window_reply( const struct set_foreground_window_reply
*req
)
3353 fprintf( stderr
, " previous=%08x", req
->previous
);
3354 fprintf( stderr
, ", send_msg_old=%d", req
->send_msg_old
);
3355 fprintf( stderr
, ", send_msg_new=%d", req
->send_msg_new
);
3358 static void dump_set_focus_window_request( const struct set_focus_window_request
*req
)
3360 fprintf( stderr
, " handle=%08x", req
->handle
);
3363 static void dump_set_focus_window_reply( const struct set_focus_window_reply
*req
)
3365 fprintf( stderr
, " previous=%08x", req
->previous
);
3368 static void dump_set_active_window_request( const struct set_active_window_request
*req
)
3370 fprintf( stderr
, " handle=%08x", req
->handle
);
3373 static void dump_set_active_window_reply( const struct set_active_window_reply
*req
)
3375 fprintf( stderr
, " previous=%08x", req
->previous
);
3378 static void dump_set_capture_window_request( const struct set_capture_window_request
*req
)
3380 fprintf( stderr
, " handle=%08x", req
->handle
);
3381 fprintf( stderr
, ", flags=%08x", req
->flags
);
3384 static void dump_set_capture_window_reply( const struct set_capture_window_reply
*req
)
3386 fprintf( stderr
, " previous=%08x", req
->previous
);
3387 fprintf( stderr
, ", full_handle=%08x", req
->full_handle
);
3390 static void dump_set_caret_window_request( const struct set_caret_window_request
*req
)
3392 fprintf( stderr
, " handle=%08x", req
->handle
);
3393 fprintf( stderr
, ", width=%d", req
->width
);
3394 fprintf( stderr
, ", height=%d", req
->height
);
3397 static void dump_set_caret_window_reply( const struct set_caret_window_reply
*req
)
3399 fprintf( stderr
, " previous=%08x", req
->previous
);
3400 dump_rectangle( ", old_rect=", &req
->old_rect
);
3401 fprintf( stderr
, ", old_hide=%d", req
->old_hide
);
3402 fprintf( stderr
, ", old_state=%d", req
->old_state
);
3405 static void dump_set_caret_info_request( const struct set_caret_info_request
*req
)
3407 fprintf( stderr
, " flags=%08x", req
->flags
);
3408 fprintf( stderr
, ", handle=%08x", req
->handle
);
3409 fprintf( stderr
, ", x=%d", req
->x
);
3410 fprintf( stderr
, ", y=%d", req
->y
);
3411 fprintf( stderr
, ", hide=%d", req
->hide
);
3412 fprintf( stderr
, ", state=%d", req
->state
);
3415 static void dump_set_caret_info_reply( const struct set_caret_info_reply
*req
)
3417 fprintf( stderr
, " full_handle=%08x", req
->full_handle
);
3418 dump_rectangle( ", old_rect=", &req
->old_rect
);
3419 fprintf( stderr
, ", old_hide=%d", req
->old_hide
);
3420 fprintf( stderr
, ", old_state=%d", req
->old_state
);
3423 static void dump_set_hook_request( const struct set_hook_request
*req
)
3425 fprintf( stderr
, " id=%d", req
->id
);
3426 fprintf( stderr
, ", pid=%04x", req
->pid
);
3427 fprintf( stderr
, ", tid=%04x", req
->tid
);
3428 fprintf( stderr
, ", event_min=%d", req
->event_min
);
3429 fprintf( stderr
, ", event_max=%d", req
->event_max
);
3430 dump_uint64( ", proc=", &req
->proc
);
3431 fprintf( stderr
, ", flags=%d", req
->flags
);
3432 fprintf( stderr
, ", unicode=%d", req
->unicode
);
3433 dump_varargs_unicode_str( ", module=", cur_size
);
3436 static void dump_set_hook_reply( const struct set_hook_reply
*req
)
3438 fprintf( stderr
, " handle=%08x", req
->handle
);
3439 fprintf( stderr
, ", active_hooks=%08x", req
->active_hooks
);
3442 static void dump_remove_hook_request( const struct remove_hook_request
*req
)
3444 fprintf( stderr
, " handle=%08x", req
->handle
);
3445 dump_uint64( ", proc=", &req
->proc
);
3446 fprintf( stderr
, ", id=%d", req
->id
);
3449 static void dump_remove_hook_reply( const struct remove_hook_reply
*req
)
3451 fprintf( stderr
, " active_hooks=%08x", req
->active_hooks
);
3454 static void dump_start_hook_chain_request( const struct start_hook_chain_request
*req
)
3456 fprintf( stderr
, " id=%d", req
->id
);
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_start_hook_chain_reply( const struct start_hook_chain_reply
*req
)
3465 fprintf( stderr
, " handle=%08x", req
->handle
);
3466 fprintf( stderr
, ", pid=%04x", req
->pid
);
3467 fprintf( stderr
, ", tid=%04x", req
->tid
);
3468 fprintf( stderr
, ", unicode=%d", req
->unicode
);
3469 dump_uint64( ", proc=", &req
->proc
);
3470 fprintf( stderr
, ", active_hooks=%08x", req
->active_hooks
);
3471 dump_varargs_unicode_str( ", module=", cur_size
);
3474 static void dump_finish_hook_chain_request( const struct finish_hook_chain_request
*req
)
3476 fprintf( stderr
, " id=%d", req
->id
);
3479 static void dump_get_hook_info_request( const struct get_hook_info_request
*req
)
3481 fprintf( stderr
, " handle=%08x", req
->handle
);
3482 fprintf( stderr
, ", get_next=%d", req
->get_next
);
3483 fprintf( stderr
, ", event=%d", req
->event
);
3484 fprintf( stderr
, ", window=%08x", req
->window
);
3485 fprintf( stderr
, ", object_id=%d", req
->object_id
);
3486 fprintf( stderr
, ", child_id=%d", req
->child_id
);
3489 static void dump_get_hook_info_reply( const struct get_hook_info_reply
*req
)
3491 fprintf( stderr
, " handle=%08x", req
->handle
);
3492 fprintf( stderr
, ", id=%d", req
->id
);
3493 fprintf( stderr
, ", pid=%04x", req
->pid
);
3494 fprintf( stderr
, ", tid=%04x", req
->tid
);
3495 dump_uint64( ", proc=", &req
->proc
);
3496 fprintf( stderr
, ", unicode=%d", req
->unicode
);
3497 dump_varargs_unicode_str( ", module=", cur_size
);
3500 static void dump_create_class_request( const struct create_class_request
*req
)
3502 fprintf( stderr
, " local=%d", req
->local
);
3503 fprintf( stderr
, ", atom=%04x", req
->atom
);
3504 fprintf( stderr
, ", style=%08x", req
->style
);
3505 dump_uint64( ", instance=", &req
->instance
);
3506 fprintf( stderr
, ", extra=%d", req
->extra
);
3507 fprintf( stderr
, ", win_extra=%d", req
->win_extra
);
3508 dump_uint64( ", client_ptr=", &req
->client_ptr
);
3509 dump_varargs_unicode_str( ", name=", cur_size
);
3512 static void dump_create_class_reply( const struct create_class_reply
*req
)
3514 fprintf( stderr
, " atom=%04x", req
->atom
);
3517 static void dump_destroy_class_request( const struct destroy_class_request
*req
)
3519 fprintf( stderr
, " atom=%04x", req
->atom
);
3520 dump_uint64( ", instance=", &req
->instance
);
3521 dump_varargs_unicode_str( ", name=", cur_size
);
3524 static void dump_destroy_class_reply( const struct destroy_class_reply
*req
)
3526 dump_uint64( " client_ptr=", &req
->client_ptr
);
3529 static void dump_set_class_info_request( const struct set_class_info_request
*req
)
3531 fprintf( stderr
, " window=%08x", req
->window
);
3532 fprintf( stderr
, ", flags=%08x", req
->flags
);
3533 fprintf( stderr
, ", atom=%04x", req
->atom
);
3534 fprintf( stderr
, ", style=%08x", req
->style
);
3535 fprintf( stderr
, ", win_extra=%d", req
->win_extra
);
3536 dump_uint64( ", instance=", &req
->instance
);
3537 fprintf( stderr
, ", extra_offset=%d", req
->extra_offset
);
3538 fprintf( stderr
, ", extra_size=%u", req
->extra_size
);
3539 dump_uint64( ", extra_value=", &req
->extra_value
);
3542 static void dump_set_class_info_reply( const struct set_class_info_reply
*req
)
3544 fprintf( stderr
, " old_atom=%04x", req
->old_atom
);
3545 fprintf( stderr
, ", old_style=%08x", req
->old_style
);
3546 fprintf( stderr
, ", old_extra=%d", req
->old_extra
);
3547 fprintf( stderr
, ", old_win_extra=%d", req
->old_win_extra
);
3548 dump_uint64( ", old_instance=", &req
->old_instance
);
3549 dump_uint64( ", old_extra_value=", &req
->old_extra_value
);
3552 static void dump_set_clipboard_info_request( const struct set_clipboard_info_request
*req
)
3554 fprintf( stderr
, " flags=%08x", req
->flags
);
3555 fprintf( stderr
, ", clipboard=%08x", req
->clipboard
);
3556 fprintf( stderr
, ", owner=%08x", req
->owner
);
3557 fprintf( stderr
, ", viewer=%08x", req
->viewer
);
3558 fprintf( stderr
, ", seqno=%08x", req
->seqno
);
3561 static void dump_set_clipboard_info_reply( const struct set_clipboard_info_reply
*req
)
3563 fprintf( stderr
, " flags=%08x", req
->flags
);
3564 fprintf( stderr
, ", old_clipboard=%08x", req
->old_clipboard
);
3565 fprintf( stderr
, ", old_owner=%08x", req
->old_owner
);
3566 fprintf( stderr
, ", old_viewer=%08x", req
->old_viewer
);
3567 fprintf( stderr
, ", seqno=%08x", req
->seqno
);
3570 static void dump_open_token_request( const struct open_token_request
*req
)
3572 fprintf( stderr
, " handle=%04x", req
->handle
);
3573 fprintf( stderr
, ", access=%08x", req
->access
);
3574 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3575 fprintf( stderr
, ", flags=%08x", req
->flags
);
3578 static void dump_open_token_reply( const struct open_token_reply
*req
)
3580 fprintf( stderr
, " token=%04x", req
->token
);
3583 static void dump_set_global_windows_request( const struct set_global_windows_request
*req
)
3585 fprintf( stderr
, " flags=%08x", req
->flags
);
3586 fprintf( stderr
, ", shell_window=%08x", req
->shell_window
);
3587 fprintf( stderr
, ", shell_listview=%08x", req
->shell_listview
);
3588 fprintf( stderr
, ", progman_window=%08x", req
->progman_window
);
3589 fprintf( stderr
, ", taskman_window=%08x", req
->taskman_window
);
3592 static void dump_set_global_windows_reply( const struct set_global_windows_reply
*req
)
3594 fprintf( stderr
, " old_shell_window=%08x", req
->old_shell_window
);
3595 fprintf( stderr
, ", old_shell_listview=%08x", req
->old_shell_listview
);
3596 fprintf( stderr
, ", old_progman_window=%08x", req
->old_progman_window
);
3597 fprintf( stderr
, ", old_taskman_window=%08x", req
->old_taskman_window
);
3600 static void dump_adjust_token_privileges_request( const struct adjust_token_privileges_request
*req
)
3602 fprintf( stderr
, " handle=%04x", req
->handle
);
3603 fprintf( stderr
, ", disable_all=%d", req
->disable_all
);
3604 fprintf( stderr
, ", get_modified_state=%d", req
->get_modified_state
);
3605 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size
);
3608 static void dump_adjust_token_privileges_reply( const struct adjust_token_privileges_reply
*req
)
3610 fprintf( stderr
, " len=%08x", req
->len
);
3611 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size
);
3614 static void dump_get_token_privileges_request( const struct get_token_privileges_request
*req
)
3616 fprintf( stderr
, " handle=%04x", req
->handle
);
3619 static void dump_get_token_privileges_reply( const struct get_token_privileges_reply
*req
)
3621 fprintf( stderr
, " len=%08x", req
->len
);
3622 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size
);
3625 static void dump_check_token_privileges_request( const struct check_token_privileges_request
*req
)
3627 fprintf( stderr
, " handle=%04x", req
->handle
);
3628 fprintf( stderr
, ", all_required=%d", req
->all_required
);
3629 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size
);
3632 static void dump_check_token_privileges_reply( const struct check_token_privileges_reply
*req
)
3634 fprintf( stderr
, " has_privileges=%d", req
->has_privileges
);
3635 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size
);
3638 static void dump_duplicate_token_request( const struct duplicate_token_request
*req
)
3640 fprintf( stderr
, " handle=%04x", req
->handle
);
3641 fprintf( stderr
, ", access=%08x", req
->access
);
3642 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3643 fprintf( stderr
, ", primary=%d", req
->primary
);
3644 fprintf( stderr
, ", impersonation_level=%d", req
->impersonation_level
);
3647 static void dump_duplicate_token_reply( const struct duplicate_token_reply
*req
)
3649 fprintf( stderr
, " new_handle=%04x", req
->new_handle
);
3652 static void dump_access_check_request( const struct access_check_request
*req
)
3654 fprintf( stderr
, " handle=%04x", req
->handle
);
3655 fprintf( stderr
, ", desired_access=%08x", req
->desired_access
);
3656 fprintf( stderr
, ", mapping_read=%08x", req
->mapping_read
);
3657 fprintf( stderr
, ", mapping_write=%08x", req
->mapping_write
);
3658 fprintf( stderr
, ", mapping_execute=%08x", req
->mapping_execute
);
3659 fprintf( stderr
, ", mapping_all=%08x", req
->mapping_all
);
3660 dump_varargs_security_descriptor( ", sd=", cur_size
);
3663 static void dump_access_check_reply( const struct access_check_reply
*req
)
3665 fprintf( stderr
, " access_granted=%08x", req
->access_granted
);
3666 fprintf( stderr
, ", access_status=%08x", req
->access_status
);
3667 fprintf( stderr
, ", privileges_len=%08x", req
->privileges_len
);
3668 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size
);
3671 static void dump_get_token_sid_request( const struct get_token_sid_request
*req
)
3673 fprintf( stderr
, " handle=%04x", req
->handle
);
3674 fprintf( stderr
, ", which_sid=%08x", req
->which_sid
);
3677 static void dump_get_token_sid_reply( const struct get_token_sid_reply
*req
)
3679 fprintf( stderr
, " sid_len=%u", req
->sid_len
);
3680 dump_varargs_SID( ", sid=", cur_size
);
3683 static void dump_get_token_groups_request( const struct get_token_groups_request
*req
)
3685 fprintf( stderr
, " handle=%04x", req
->handle
);
3688 static void dump_get_token_groups_reply( const struct get_token_groups_reply
*req
)
3690 fprintf( stderr
, " user_len=%u", req
->user_len
);
3691 dump_varargs_token_groups( ", user=", cur_size
);
3694 static void dump_get_token_default_dacl_request( const struct get_token_default_dacl_request
*req
)
3696 fprintf( stderr
, " handle=%04x", req
->handle
);
3699 static void dump_get_token_default_dacl_reply( const struct get_token_default_dacl_reply
*req
)
3701 fprintf( stderr
, " acl_len=%u", req
->acl_len
);
3702 dump_varargs_ACL( ", acl=", cur_size
);
3705 static void dump_set_token_default_dacl_request( const struct set_token_default_dacl_request
*req
)
3707 fprintf( stderr
, " handle=%04x", req
->handle
);
3708 dump_varargs_ACL( ", acl=", cur_size
);
3711 static void dump_set_security_object_request( const struct set_security_object_request
*req
)
3713 fprintf( stderr
, " handle=%04x", req
->handle
);
3714 fprintf( stderr
, ", security_info=%08x", req
->security_info
);
3715 dump_varargs_security_descriptor( ", sd=", cur_size
);
3718 static void dump_get_security_object_request( const struct get_security_object_request
*req
)
3720 fprintf( stderr
, " handle=%04x", req
->handle
);
3721 fprintf( stderr
, ", security_info=%08x", req
->security_info
);
3724 static void dump_get_security_object_reply( const struct get_security_object_reply
*req
)
3726 fprintf( stderr
, " sd_len=%08x", req
->sd_len
);
3727 dump_varargs_security_descriptor( ", sd=", cur_size
);
3730 static void dump_create_mailslot_request( const struct create_mailslot_request
*req
)
3732 fprintf( stderr
, " access=%08x", req
->access
);
3733 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3734 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
3735 dump_timeout( ", read_timeout=", &req
->read_timeout
);
3736 fprintf( stderr
, ", max_msgsize=%08x", req
->max_msgsize
);
3737 dump_varargs_unicode_str( ", name=", cur_size
);
3740 static void dump_create_mailslot_reply( const struct create_mailslot_reply
*req
)
3742 fprintf( stderr
, " handle=%04x", req
->handle
);
3745 static void dump_set_mailslot_info_request( const struct set_mailslot_info_request
*req
)
3747 fprintf( stderr
, " handle=%04x", req
->handle
);
3748 dump_timeout( ", read_timeout=", &req
->read_timeout
);
3749 fprintf( stderr
, ", flags=%08x", req
->flags
);
3752 static void dump_set_mailslot_info_reply( const struct set_mailslot_info_reply
*req
)
3754 dump_timeout( " read_timeout=", &req
->read_timeout
);
3755 fprintf( stderr
, ", max_msgsize=%08x", req
->max_msgsize
);
3758 static void dump_create_directory_request( const struct create_directory_request
*req
)
3760 fprintf( stderr
, " access=%08x", req
->access
);
3761 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3762 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
3763 dump_varargs_unicode_str( ", directory_name=", cur_size
);
3766 static void dump_create_directory_reply( const struct create_directory_reply
*req
)
3768 fprintf( stderr
, " handle=%04x", req
->handle
);
3771 static void dump_open_directory_request( const struct open_directory_request
*req
)
3773 fprintf( stderr
, " access=%08x", req
->access
);
3774 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3775 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
3776 dump_varargs_unicode_str( ", directory_name=", cur_size
);
3779 static void dump_open_directory_reply( const struct open_directory_reply
*req
)
3781 fprintf( stderr
, " handle=%04x", req
->handle
);
3784 static void dump_get_directory_entry_request( const struct get_directory_entry_request
*req
)
3786 fprintf( stderr
, " handle=%04x", req
->handle
);
3787 fprintf( stderr
, ", index=%08x", req
->index
);
3790 static void dump_get_directory_entry_reply( const struct get_directory_entry_reply
*req
)
3792 fprintf( stderr
, " name_len=%u", req
->name_len
);
3793 dump_varargs_unicode_str( ", name=", min(cur_size
,req
->name_len
) );
3794 dump_varargs_unicode_str( ", type=", cur_size
);
3797 static void dump_create_symlink_request( const struct create_symlink_request
*req
)
3799 fprintf( stderr
, " access=%08x", req
->access
);
3800 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3801 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
3802 fprintf( stderr
, ", name_len=%u", req
->name_len
);
3803 dump_varargs_unicode_str( ", name=", min(cur_size
,req
->name_len
) );
3804 dump_varargs_unicode_str( ", target_name=", cur_size
);
3807 static void dump_create_symlink_reply( const struct create_symlink_reply
*req
)
3809 fprintf( stderr
, " handle=%04x", req
->handle
);
3812 static void dump_open_symlink_request( const struct open_symlink_request
*req
)
3814 fprintf( stderr
, " access=%08x", req
->access
);
3815 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3816 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
3817 dump_varargs_unicode_str( ", name=", cur_size
);
3820 static void dump_open_symlink_reply( const struct open_symlink_reply
*req
)
3822 fprintf( stderr
, " handle=%04x", req
->handle
);
3825 static void dump_query_symlink_request( const struct query_symlink_request
*req
)
3827 fprintf( stderr
, " handle=%04x", req
->handle
);
3830 static void dump_query_symlink_reply( const struct query_symlink_reply
*req
)
3832 fprintf( stderr
, " total=%u", req
->total
);
3833 dump_varargs_unicode_str( ", target_name=", cur_size
);
3836 static void dump_get_object_info_request( const struct get_object_info_request
*req
)
3838 fprintf( stderr
, " handle=%04x", req
->handle
);
3841 static void dump_get_object_info_reply( const struct get_object_info_reply
*req
)
3843 fprintf( stderr
, " access=%08x", req
->access
);
3844 fprintf( stderr
, ", ref_count=%08x", req
->ref_count
);
3845 fprintf( stderr
, ", total=%u", req
->total
);
3846 dump_varargs_unicode_str( ", name=", cur_size
);
3849 static void dump_unlink_object_request( const struct unlink_object_request
*req
)
3851 fprintf( stderr
, " handle=%04x", req
->handle
);
3854 static void dump_get_token_impersonation_level_request( const struct get_token_impersonation_level_request
*req
)
3856 fprintf( stderr
, " handle=%04x", req
->handle
);
3859 static void dump_get_token_impersonation_level_reply( const struct get_token_impersonation_level_reply
*req
)
3861 fprintf( stderr
, " impersonation_level=%d", req
->impersonation_level
);
3864 static void dump_allocate_locally_unique_id_request( const struct allocate_locally_unique_id_request
*req
)
3868 static void dump_allocate_locally_unique_id_reply( const struct allocate_locally_unique_id_reply
*req
)
3870 dump_luid( " luid=", &req
->luid
);
3873 static void dump_create_device_manager_request( const struct create_device_manager_request
*req
)
3875 fprintf( stderr
, " access=%08x", req
->access
);
3876 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3879 static void dump_create_device_manager_reply( const struct create_device_manager_reply
*req
)
3881 fprintf( stderr
, " handle=%04x", req
->handle
);
3884 static void dump_create_device_request( const struct create_device_request
*req
)
3886 fprintf( stderr
, " access=%08x", req
->access
);
3887 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3888 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
3889 dump_uint64( ", user_ptr=", &req
->user_ptr
);
3890 fprintf( stderr
, ", manager=%04x", req
->manager
);
3891 dump_varargs_unicode_str( ", name=", cur_size
);
3894 static void dump_create_device_reply( const struct create_device_reply
*req
)
3896 fprintf( stderr
, " handle=%04x", req
->handle
);
3899 static void dump_delete_device_request( const struct delete_device_request
*req
)
3901 fprintf( stderr
, " handle=%04x", req
->handle
);
3904 static void dump_get_next_device_request_request( const struct get_next_device_request_request
*req
)
3906 fprintf( stderr
, " manager=%04x", req
->manager
);
3907 fprintf( stderr
, ", prev=%04x", req
->prev
);
3908 fprintf( stderr
, ", status=%08x", req
->status
);
3909 dump_varargs_bytes( ", prev_data=", cur_size
);
3912 static void dump_get_next_device_request_reply( const struct get_next_device_request_reply
*req
)
3914 fprintf( stderr
, " next=%04x", req
->next
);
3915 dump_ioctl_code( ", code=", &req
->code
);
3916 dump_uint64( ", user_ptr=", &req
->user_ptr
);
3917 fprintf( stderr
, ", client_pid=%04x", req
->client_pid
);
3918 fprintf( stderr
, ", client_tid=%04x", req
->client_tid
);
3919 fprintf( stderr
, ", in_size=%u", req
->in_size
);
3920 fprintf( stderr
, ", out_size=%u", req
->out_size
);
3921 dump_varargs_bytes( ", next_data=", cur_size
);
3924 static void dump_make_process_system_request( const struct make_process_system_request
*req
)
3928 static void dump_make_process_system_reply( const struct make_process_system_reply
*req
)
3930 fprintf( stderr
, " event=%04x", req
->event
);
3933 static void dump_get_token_statistics_request( const struct get_token_statistics_request
*req
)
3935 fprintf( stderr
, " handle=%04x", req
->handle
);
3938 static void dump_get_token_statistics_reply( const struct get_token_statistics_reply
*req
)
3940 dump_luid( " token_id=", &req
->token_id
);
3941 dump_luid( ", modified_id=", &req
->modified_id
);
3942 fprintf( stderr
, ", primary=%d", req
->primary
);
3943 fprintf( stderr
, ", impersonation_level=%d", req
->impersonation_level
);
3944 fprintf( stderr
, ", group_count=%d", req
->group_count
);
3945 fprintf( stderr
, ", privilege_count=%d", req
->privilege_count
);
3948 static void dump_create_completion_request( const struct create_completion_request
*req
)
3950 fprintf( stderr
, " access=%08x", req
->access
);
3951 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3952 fprintf( stderr
, ", concurrent=%08x", req
->concurrent
);
3953 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
3954 dump_varargs_string( ", filename=", cur_size
);
3957 static void dump_create_completion_reply( const struct create_completion_reply
*req
)
3959 fprintf( stderr
, " handle=%04x", req
->handle
);
3962 static void dump_open_completion_request( const struct open_completion_request
*req
)
3964 fprintf( stderr
, " access=%08x", req
->access
);
3965 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3966 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
3967 dump_varargs_string( ", filename=", cur_size
);
3970 static void dump_open_completion_reply( const struct open_completion_reply
*req
)
3972 fprintf( stderr
, " handle=%04x", req
->handle
);
3975 static void dump_add_completion_request( const struct add_completion_request
*req
)
3977 fprintf( stderr
, " handle=%04x", req
->handle
);
3978 dump_uint64( ", ckey=", &req
->ckey
);
3979 dump_uint64( ", cvalue=", &req
->cvalue
);
3980 dump_uint64( ", information=", &req
->information
);
3981 fprintf( stderr
, ", status=%08x", req
->status
);
3984 static void dump_remove_completion_request( const struct remove_completion_request
*req
)
3986 fprintf( stderr
, " handle=%04x", req
->handle
);
3989 static void dump_remove_completion_reply( const struct remove_completion_reply
*req
)
3991 dump_uint64( " ckey=", &req
->ckey
);
3992 dump_uint64( ", cvalue=", &req
->cvalue
);
3993 dump_uint64( ", information=", &req
->information
);
3994 fprintf( stderr
, ", status=%08x", req
->status
);
3997 static void dump_query_completion_request( const struct query_completion_request
*req
)
3999 fprintf( stderr
, " handle=%04x", req
->handle
);
4002 static void dump_query_completion_reply( const struct query_completion_reply
*req
)
4004 fprintf( stderr
, " depth=%08x", req
->depth
);
4007 static void dump_set_completion_info_request( const struct set_completion_info_request
*req
)
4009 fprintf( stderr
, " handle=%04x", req
->handle
);
4010 dump_uint64( ", ckey=", &req
->ckey
);
4011 fprintf( stderr
, ", chandle=%04x", req
->chandle
);
4014 static void dump_add_fd_completion_request( const struct add_fd_completion_request
*req
)
4016 fprintf( stderr
, " handle=%04x", req
->handle
);
4017 dump_uint64( ", cvalue=", &req
->cvalue
);
4018 dump_uint64( ", information=", &req
->information
);
4019 fprintf( stderr
, ", status=%08x", req
->status
);
4022 static void dump_get_window_layered_info_request( const struct get_window_layered_info_request
*req
)
4024 fprintf( stderr
, " handle=%08x", req
->handle
);
4027 static void dump_get_window_layered_info_reply( const struct get_window_layered_info_reply
*req
)
4029 fprintf( stderr
, " color_key=%08x", req
->color_key
);
4030 fprintf( stderr
, ", alpha=%08x", req
->alpha
);
4031 fprintf( stderr
, ", flags=%08x", req
->flags
);
4034 static void dump_set_window_layered_info_request( const struct set_window_layered_info_request
*req
)
4036 fprintf( stderr
, " handle=%08x", req
->handle
);
4037 fprintf( stderr
, ", color_key=%08x", req
->color_key
);
4038 fprintf( stderr
, ", alpha=%08x", req
->alpha
);
4039 fprintf( stderr
, ", flags=%08x", req
->flags
);
4042 static void dump_alloc_user_handle_request( const struct alloc_user_handle_request
*req
)
4046 static void dump_alloc_user_handle_reply( const struct alloc_user_handle_reply
*req
)
4048 fprintf( stderr
, " handle=%08x", req
->handle
);
4051 static void dump_free_user_handle_request( const struct free_user_handle_request
*req
)
4053 fprintf( stderr
, " handle=%08x", req
->handle
);
4056 static void dump_set_cursor_request( const struct set_cursor_request
*req
)
4058 fprintf( stderr
, " flags=%08x", req
->flags
);
4059 fprintf( stderr
, ", handle=%08x", req
->handle
);
4060 fprintf( stderr
, ", show_count=%d", req
->show_count
);
4061 fprintf( stderr
, ", x=%d", req
->x
);
4062 fprintf( stderr
, ", y=%d", req
->y
);
4063 dump_rectangle( ", clip=", &req
->clip
);
4064 fprintf( stderr
, ", clip_msg=%08x", req
->clip_msg
);
4067 static void dump_set_cursor_reply( const struct set_cursor_reply
*req
)
4069 fprintf( stderr
, " prev_handle=%08x", req
->prev_handle
);
4070 fprintf( stderr
, ", prev_count=%d", req
->prev_count
);
4071 fprintf( stderr
, ", prev_x=%d", req
->prev_x
);
4072 fprintf( stderr
, ", prev_y=%d", req
->prev_y
);
4073 fprintf( stderr
, ", new_x=%d", req
->new_x
);
4074 fprintf( stderr
, ", new_y=%d", req
->new_y
);
4075 dump_rectangle( ", new_clip=", &req
->new_clip
);
4076 fprintf( stderr
, ", last_change=%08x", req
->last_change
);
4079 static void dump_update_rawinput_devices_request( const struct update_rawinput_devices_request
*req
)
4081 dump_varargs_rawinput_devices( " devices=", cur_size
);
4084 static void dump_get_suspend_context_request( const struct get_suspend_context_request
*req
)
4088 static void dump_get_suspend_context_reply( const struct get_suspend_context_reply
*req
)
4090 dump_varargs_context( " context=", cur_size
);
4093 static void dump_set_suspend_context_request( const struct set_suspend_context_request
*req
)
4095 dump_varargs_context( " context=", cur_size
);
4098 static const dump_func req_dumpers
[REQ_NB_REQUESTS
] = {
4099 (dump_func
)dump_new_process_request
,
4100 (dump_func
)dump_get_new_process_info_request
,
4101 (dump_func
)dump_new_thread_request
,
4102 (dump_func
)dump_get_startup_info_request
,
4103 (dump_func
)dump_init_process_done_request
,
4104 (dump_func
)dump_init_thread_request
,
4105 (dump_func
)dump_terminate_process_request
,
4106 (dump_func
)dump_terminate_thread_request
,
4107 (dump_func
)dump_get_process_info_request
,
4108 (dump_func
)dump_set_process_info_request
,
4109 (dump_func
)dump_get_thread_info_request
,
4110 (dump_func
)dump_set_thread_info_request
,
4111 (dump_func
)dump_get_dll_info_request
,
4112 (dump_func
)dump_suspend_thread_request
,
4113 (dump_func
)dump_resume_thread_request
,
4114 (dump_func
)dump_load_dll_request
,
4115 (dump_func
)dump_unload_dll_request
,
4116 (dump_func
)dump_queue_apc_request
,
4117 (dump_func
)dump_get_apc_result_request
,
4118 (dump_func
)dump_close_handle_request
,
4119 (dump_func
)dump_set_handle_info_request
,
4120 (dump_func
)dump_dup_handle_request
,
4121 (dump_func
)dump_open_process_request
,
4122 (dump_func
)dump_open_thread_request
,
4123 (dump_func
)dump_select_request
,
4124 (dump_func
)dump_create_event_request
,
4125 (dump_func
)dump_event_op_request
,
4126 (dump_func
)dump_query_event_request
,
4127 (dump_func
)dump_open_event_request
,
4128 (dump_func
)dump_create_keyed_event_request
,
4129 (dump_func
)dump_open_keyed_event_request
,
4130 (dump_func
)dump_create_mutex_request
,
4131 (dump_func
)dump_release_mutex_request
,
4132 (dump_func
)dump_open_mutex_request
,
4133 (dump_func
)dump_create_semaphore_request
,
4134 (dump_func
)dump_release_semaphore_request
,
4135 (dump_func
)dump_query_semaphore_request
,
4136 (dump_func
)dump_open_semaphore_request
,
4137 (dump_func
)dump_create_file_request
,
4138 (dump_func
)dump_open_file_object_request
,
4139 (dump_func
)dump_alloc_file_handle_request
,
4140 (dump_func
)dump_get_handle_unix_name_request
,
4141 (dump_func
)dump_get_handle_fd_request
,
4142 (dump_func
)dump_flush_file_request
,
4143 (dump_func
)dump_lock_file_request
,
4144 (dump_func
)dump_unlock_file_request
,
4145 (dump_func
)dump_create_socket_request
,
4146 (dump_func
)dump_accept_socket_request
,
4147 (dump_func
)dump_accept_into_socket_request
,
4148 (dump_func
)dump_set_socket_event_request
,
4149 (dump_func
)dump_get_socket_event_request
,
4150 (dump_func
)dump_get_socket_info_request
,
4151 (dump_func
)dump_enable_socket_event_request
,
4152 (dump_func
)dump_set_socket_deferred_request
,
4153 (dump_func
)dump_alloc_console_request
,
4154 (dump_func
)dump_free_console_request
,
4155 (dump_func
)dump_get_console_renderer_events_request
,
4156 (dump_func
)dump_open_console_request
,
4157 (dump_func
)dump_get_console_wait_event_request
,
4158 (dump_func
)dump_get_console_mode_request
,
4159 (dump_func
)dump_set_console_mode_request
,
4160 (dump_func
)dump_set_console_input_info_request
,
4161 (dump_func
)dump_get_console_input_info_request
,
4162 (dump_func
)dump_append_console_input_history_request
,
4163 (dump_func
)dump_get_console_input_history_request
,
4164 (dump_func
)dump_create_console_output_request
,
4165 (dump_func
)dump_set_console_output_info_request
,
4166 (dump_func
)dump_get_console_output_info_request
,
4167 (dump_func
)dump_write_console_input_request
,
4168 (dump_func
)dump_read_console_input_request
,
4169 (dump_func
)dump_write_console_output_request
,
4170 (dump_func
)dump_fill_console_output_request
,
4171 (dump_func
)dump_read_console_output_request
,
4172 (dump_func
)dump_move_console_output_request
,
4173 (dump_func
)dump_send_console_signal_request
,
4174 (dump_func
)dump_read_directory_changes_request
,
4175 (dump_func
)dump_read_change_request
,
4176 (dump_func
)dump_create_mapping_request
,
4177 (dump_func
)dump_open_mapping_request
,
4178 (dump_func
)dump_get_mapping_info_request
,
4179 (dump_func
)dump_get_mapping_committed_range_request
,
4180 (dump_func
)dump_add_mapping_committed_range_request
,
4181 (dump_func
)dump_create_snapshot_request
,
4182 (dump_func
)dump_next_process_request
,
4183 (dump_func
)dump_next_thread_request
,
4184 (dump_func
)dump_wait_debug_event_request
,
4185 (dump_func
)dump_queue_exception_event_request
,
4186 (dump_func
)dump_get_exception_status_request
,
4187 (dump_func
)dump_continue_debug_event_request
,
4188 (dump_func
)dump_debug_process_request
,
4189 (dump_func
)dump_debug_break_request
,
4190 (dump_func
)dump_set_debugger_kill_on_exit_request
,
4191 (dump_func
)dump_read_process_memory_request
,
4192 (dump_func
)dump_write_process_memory_request
,
4193 (dump_func
)dump_create_key_request
,
4194 (dump_func
)dump_open_key_request
,
4195 (dump_func
)dump_delete_key_request
,
4196 (dump_func
)dump_flush_key_request
,
4197 (dump_func
)dump_enum_key_request
,
4198 (dump_func
)dump_set_key_value_request
,
4199 (dump_func
)dump_get_key_value_request
,
4200 (dump_func
)dump_enum_key_value_request
,
4201 (dump_func
)dump_delete_key_value_request
,
4202 (dump_func
)dump_load_registry_request
,
4203 (dump_func
)dump_unload_registry_request
,
4204 (dump_func
)dump_save_registry_request
,
4205 (dump_func
)dump_set_registry_notification_request
,
4206 (dump_func
)dump_create_timer_request
,
4207 (dump_func
)dump_open_timer_request
,
4208 (dump_func
)dump_set_timer_request
,
4209 (dump_func
)dump_cancel_timer_request
,
4210 (dump_func
)dump_get_timer_info_request
,
4211 (dump_func
)dump_get_thread_context_request
,
4212 (dump_func
)dump_set_thread_context_request
,
4213 (dump_func
)dump_get_selector_entry_request
,
4214 (dump_func
)dump_add_atom_request
,
4215 (dump_func
)dump_delete_atom_request
,
4216 (dump_func
)dump_find_atom_request
,
4217 (dump_func
)dump_get_atom_information_request
,
4218 (dump_func
)dump_set_atom_information_request
,
4219 (dump_func
)dump_empty_atom_table_request
,
4220 (dump_func
)dump_init_atom_table_request
,
4221 (dump_func
)dump_get_msg_queue_request
,
4222 (dump_func
)dump_set_queue_fd_request
,
4223 (dump_func
)dump_set_queue_mask_request
,
4224 (dump_func
)dump_get_queue_status_request
,
4225 (dump_func
)dump_get_process_idle_event_request
,
4226 (dump_func
)dump_send_message_request
,
4227 (dump_func
)dump_post_quit_message_request
,
4228 (dump_func
)dump_send_hardware_message_request
,
4229 (dump_func
)dump_get_message_request
,
4230 (dump_func
)dump_reply_message_request
,
4231 (dump_func
)dump_accept_hardware_message_request
,
4232 (dump_func
)dump_get_message_reply_request
,
4233 (dump_func
)dump_set_win_timer_request
,
4234 (dump_func
)dump_kill_win_timer_request
,
4235 (dump_func
)dump_is_window_hung_request
,
4236 (dump_func
)dump_get_serial_info_request
,
4237 (dump_func
)dump_set_serial_info_request
,
4238 (dump_func
)dump_register_async_request
,
4239 (dump_func
)dump_cancel_async_request
,
4240 (dump_func
)dump_ioctl_request
,
4241 (dump_func
)dump_set_ioctl_result_request
,
4242 (dump_func
)dump_get_ioctl_result_request
,
4243 (dump_func
)dump_create_named_pipe_request
,
4244 (dump_func
)dump_get_named_pipe_info_request
,
4245 (dump_func
)dump_set_named_pipe_info_request
,
4246 (dump_func
)dump_create_window_request
,
4247 (dump_func
)dump_destroy_window_request
,
4248 (dump_func
)dump_get_desktop_window_request
,
4249 (dump_func
)dump_set_window_owner_request
,
4250 (dump_func
)dump_get_window_info_request
,
4251 (dump_func
)dump_set_window_info_request
,
4252 (dump_func
)dump_set_parent_request
,
4253 (dump_func
)dump_get_window_parents_request
,
4254 (dump_func
)dump_get_window_children_request
,
4255 (dump_func
)dump_get_window_children_from_point_request
,
4256 (dump_func
)dump_get_window_tree_request
,
4257 (dump_func
)dump_set_window_pos_request
,
4258 (dump_func
)dump_get_window_rectangles_request
,
4259 (dump_func
)dump_get_window_text_request
,
4260 (dump_func
)dump_set_window_text_request
,
4261 (dump_func
)dump_get_windows_offset_request
,
4262 (dump_func
)dump_get_visible_region_request
,
4263 (dump_func
)dump_get_surface_region_request
,
4264 (dump_func
)dump_get_window_region_request
,
4265 (dump_func
)dump_set_window_region_request
,
4266 (dump_func
)dump_get_update_region_request
,
4267 (dump_func
)dump_update_window_zorder_request
,
4268 (dump_func
)dump_redraw_window_request
,
4269 (dump_func
)dump_set_window_property_request
,
4270 (dump_func
)dump_remove_window_property_request
,
4271 (dump_func
)dump_get_window_property_request
,
4272 (dump_func
)dump_get_window_properties_request
,
4273 (dump_func
)dump_create_winstation_request
,
4274 (dump_func
)dump_open_winstation_request
,
4275 (dump_func
)dump_close_winstation_request
,
4276 (dump_func
)dump_get_process_winstation_request
,
4277 (dump_func
)dump_set_process_winstation_request
,
4278 (dump_func
)dump_enum_winstation_request
,
4279 (dump_func
)dump_create_desktop_request
,
4280 (dump_func
)dump_open_desktop_request
,
4281 (dump_func
)dump_open_input_desktop_request
,
4282 (dump_func
)dump_close_desktop_request
,
4283 (dump_func
)dump_get_thread_desktop_request
,
4284 (dump_func
)dump_set_thread_desktop_request
,
4285 (dump_func
)dump_enum_desktop_request
,
4286 (dump_func
)dump_set_user_object_info_request
,
4287 (dump_func
)dump_register_hotkey_request
,
4288 (dump_func
)dump_unregister_hotkey_request
,
4289 (dump_func
)dump_attach_thread_input_request
,
4290 (dump_func
)dump_get_thread_input_request
,
4291 (dump_func
)dump_get_last_input_time_request
,
4292 (dump_func
)dump_get_key_state_request
,
4293 (dump_func
)dump_set_key_state_request
,
4294 (dump_func
)dump_set_foreground_window_request
,
4295 (dump_func
)dump_set_focus_window_request
,
4296 (dump_func
)dump_set_active_window_request
,
4297 (dump_func
)dump_set_capture_window_request
,
4298 (dump_func
)dump_set_caret_window_request
,
4299 (dump_func
)dump_set_caret_info_request
,
4300 (dump_func
)dump_set_hook_request
,
4301 (dump_func
)dump_remove_hook_request
,
4302 (dump_func
)dump_start_hook_chain_request
,
4303 (dump_func
)dump_finish_hook_chain_request
,
4304 (dump_func
)dump_get_hook_info_request
,
4305 (dump_func
)dump_create_class_request
,
4306 (dump_func
)dump_destroy_class_request
,
4307 (dump_func
)dump_set_class_info_request
,
4308 (dump_func
)dump_set_clipboard_info_request
,
4309 (dump_func
)dump_open_token_request
,
4310 (dump_func
)dump_set_global_windows_request
,
4311 (dump_func
)dump_adjust_token_privileges_request
,
4312 (dump_func
)dump_get_token_privileges_request
,
4313 (dump_func
)dump_check_token_privileges_request
,
4314 (dump_func
)dump_duplicate_token_request
,
4315 (dump_func
)dump_access_check_request
,
4316 (dump_func
)dump_get_token_sid_request
,
4317 (dump_func
)dump_get_token_groups_request
,
4318 (dump_func
)dump_get_token_default_dacl_request
,
4319 (dump_func
)dump_set_token_default_dacl_request
,
4320 (dump_func
)dump_set_security_object_request
,
4321 (dump_func
)dump_get_security_object_request
,
4322 (dump_func
)dump_create_mailslot_request
,
4323 (dump_func
)dump_set_mailslot_info_request
,
4324 (dump_func
)dump_create_directory_request
,
4325 (dump_func
)dump_open_directory_request
,
4326 (dump_func
)dump_get_directory_entry_request
,
4327 (dump_func
)dump_create_symlink_request
,
4328 (dump_func
)dump_open_symlink_request
,
4329 (dump_func
)dump_query_symlink_request
,
4330 (dump_func
)dump_get_object_info_request
,
4331 (dump_func
)dump_unlink_object_request
,
4332 (dump_func
)dump_get_token_impersonation_level_request
,
4333 (dump_func
)dump_allocate_locally_unique_id_request
,
4334 (dump_func
)dump_create_device_manager_request
,
4335 (dump_func
)dump_create_device_request
,
4336 (dump_func
)dump_delete_device_request
,
4337 (dump_func
)dump_get_next_device_request_request
,
4338 (dump_func
)dump_make_process_system_request
,
4339 (dump_func
)dump_get_token_statistics_request
,
4340 (dump_func
)dump_create_completion_request
,
4341 (dump_func
)dump_open_completion_request
,
4342 (dump_func
)dump_add_completion_request
,
4343 (dump_func
)dump_remove_completion_request
,
4344 (dump_func
)dump_query_completion_request
,
4345 (dump_func
)dump_set_completion_info_request
,
4346 (dump_func
)dump_add_fd_completion_request
,
4347 (dump_func
)dump_get_window_layered_info_request
,
4348 (dump_func
)dump_set_window_layered_info_request
,
4349 (dump_func
)dump_alloc_user_handle_request
,
4350 (dump_func
)dump_free_user_handle_request
,
4351 (dump_func
)dump_set_cursor_request
,
4352 (dump_func
)dump_update_rawinput_devices_request
,
4353 (dump_func
)dump_get_suspend_context_request
,
4354 (dump_func
)dump_set_suspend_context_request
,
4357 static const dump_func reply_dumpers
[REQ_NB_REQUESTS
] = {
4358 (dump_func
)dump_new_process_reply
,
4359 (dump_func
)dump_get_new_process_info_reply
,
4360 (dump_func
)dump_new_thread_reply
,
4361 (dump_func
)dump_get_startup_info_reply
,
4363 (dump_func
)dump_init_thread_reply
,
4364 (dump_func
)dump_terminate_process_reply
,
4365 (dump_func
)dump_terminate_thread_reply
,
4366 (dump_func
)dump_get_process_info_reply
,
4368 (dump_func
)dump_get_thread_info_reply
,
4370 (dump_func
)dump_get_dll_info_reply
,
4371 (dump_func
)dump_suspend_thread_reply
,
4372 (dump_func
)dump_resume_thread_reply
,
4375 (dump_func
)dump_queue_apc_reply
,
4376 (dump_func
)dump_get_apc_result_reply
,
4378 (dump_func
)dump_set_handle_info_reply
,
4379 (dump_func
)dump_dup_handle_reply
,
4380 (dump_func
)dump_open_process_reply
,
4381 (dump_func
)dump_open_thread_reply
,
4382 (dump_func
)dump_select_reply
,
4383 (dump_func
)dump_create_event_reply
,
4385 (dump_func
)dump_query_event_reply
,
4386 (dump_func
)dump_open_event_reply
,
4387 (dump_func
)dump_create_keyed_event_reply
,
4388 (dump_func
)dump_open_keyed_event_reply
,
4389 (dump_func
)dump_create_mutex_reply
,
4390 (dump_func
)dump_release_mutex_reply
,
4391 (dump_func
)dump_open_mutex_reply
,
4392 (dump_func
)dump_create_semaphore_reply
,
4393 (dump_func
)dump_release_semaphore_reply
,
4394 (dump_func
)dump_query_semaphore_reply
,
4395 (dump_func
)dump_open_semaphore_reply
,
4396 (dump_func
)dump_create_file_reply
,
4397 (dump_func
)dump_open_file_object_reply
,
4398 (dump_func
)dump_alloc_file_handle_reply
,
4399 (dump_func
)dump_get_handle_unix_name_reply
,
4400 (dump_func
)dump_get_handle_fd_reply
,
4401 (dump_func
)dump_flush_file_reply
,
4402 (dump_func
)dump_lock_file_reply
,
4404 (dump_func
)dump_create_socket_reply
,
4405 (dump_func
)dump_accept_socket_reply
,
4408 (dump_func
)dump_get_socket_event_reply
,
4409 (dump_func
)dump_get_socket_info_reply
,
4412 (dump_func
)dump_alloc_console_reply
,
4414 (dump_func
)dump_get_console_renderer_events_reply
,
4415 (dump_func
)dump_open_console_reply
,
4416 (dump_func
)dump_get_console_wait_event_reply
,
4417 (dump_func
)dump_get_console_mode_reply
,
4420 (dump_func
)dump_get_console_input_info_reply
,
4422 (dump_func
)dump_get_console_input_history_reply
,
4423 (dump_func
)dump_create_console_output_reply
,
4425 (dump_func
)dump_get_console_output_info_reply
,
4426 (dump_func
)dump_write_console_input_reply
,
4427 (dump_func
)dump_read_console_input_reply
,
4428 (dump_func
)dump_write_console_output_reply
,
4429 (dump_func
)dump_fill_console_output_reply
,
4430 (dump_func
)dump_read_console_output_reply
,
4434 (dump_func
)dump_read_change_reply
,
4435 (dump_func
)dump_create_mapping_reply
,
4436 (dump_func
)dump_open_mapping_reply
,
4437 (dump_func
)dump_get_mapping_info_reply
,
4438 (dump_func
)dump_get_mapping_committed_range_reply
,
4440 (dump_func
)dump_create_snapshot_reply
,
4441 (dump_func
)dump_next_process_reply
,
4442 (dump_func
)dump_next_thread_reply
,
4443 (dump_func
)dump_wait_debug_event_reply
,
4444 (dump_func
)dump_queue_exception_event_reply
,
4445 (dump_func
)dump_get_exception_status_reply
,
4448 (dump_func
)dump_debug_break_reply
,
4450 (dump_func
)dump_read_process_memory_reply
,
4452 (dump_func
)dump_create_key_reply
,
4453 (dump_func
)dump_open_key_reply
,
4456 (dump_func
)dump_enum_key_reply
,
4458 (dump_func
)dump_get_key_value_reply
,
4459 (dump_func
)dump_enum_key_value_reply
,
4465 (dump_func
)dump_create_timer_reply
,
4466 (dump_func
)dump_open_timer_reply
,
4467 (dump_func
)dump_set_timer_reply
,
4468 (dump_func
)dump_cancel_timer_reply
,
4469 (dump_func
)dump_get_timer_info_reply
,
4470 (dump_func
)dump_get_thread_context_reply
,
4471 (dump_func
)dump_set_thread_context_reply
,
4472 (dump_func
)dump_get_selector_entry_reply
,
4473 (dump_func
)dump_add_atom_reply
,
4475 (dump_func
)dump_find_atom_reply
,
4476 (dump_func
)dump_get_atom_information_reply
,
4479 (dump_func
)dump_init_atom_table_reply
,
4480 (dump_func
)dump_get_msg_queue_reply
,
4482 (dump_func
)dump_set_queue_mask_reply
,
4483 (dump_func
)dump_get_queue_status_reply
,
4484 (dump_func
)dump_get_process_idle_event_reply
,
4487 (dump_func
)dump_send_hardware_message_reply
,
4488 (dump_func
)dump_get_message_reply
,
4491 (dump_func
)dump_get_message_reply_reply
,
4492 (dump_func
)dump_set_win_timer_reply
,
4494 (dump_func
)dump_is_window_hung_reply
,
4495 (dump_func
)dump_get_serial_info_reply
,
4499 (dump_func
)dump_ioctl_reply
,
4501 (dump_func
)dump_get_ioctl_result_reply
,
4502 (dump_func
)dump_create_named_pipe_reply
,
4503 (dump_func
)dump_get_named_pipe_info_reply
,
4505 (dump_func
)dump_create_window_reply
,
4507 (dump_func
)dump_get_desktop_window_reply
,
4508 (dump_func
)dump_set_window_owner_reply
,
4509 (dump_func
)dump_get_window_info_reply
,
4510 (dump_func
)dump_set_window_info_reply
,
4511 (dump_func
)dump_set_parent_reply
,
4512 (dump_func
)dump_get_window_parents_reply
,
4513 (dump_func
)dump_get_window_children_reply
,
4514 (dump_func
)dump_get_window_children_from_point_reply
,
4515 (dump_func
)dump_get_window_tree_reply
,
4516 (dump_func
)dump_set_window_pos_reply
,
4517 (dump_func
)dump_get_window_rectangles_reply
,
4518 (dump_func
)dump_get_window_text_reply
,
4520 (dump_func
)dump_get_windows_offset_reply
,
4521 (dump_func
)dump_get_visible_region_reply
,
4522 (dump_func
)dump_get_surface_region_reply
,
4523 (dump_func
)dump_get_window_region_reply
,
4525 (dump_func
)dump_get_update_region_reply
,
4529 (dump_func
)dump_remove_window_property_reply
,
4530 (dump_func
)dump_get_window_property_reply
,
4531 (dump_func
)dump_get_window_properties_reply
,
4532 (dump_func
)dump_create_winstation_reply
,
4533 (dump_func
)dump_open_winstation_reply
,
4535 (dump_func
)dump_get_process_winstation_reply
,
4537 (dump_func
)dump_enum_winstation_reply
,
4538 (dump_func
)dump_create_desktop_reply
,
4539 (dump_func
)dump_open_desktop_reply
,
4540 (dump_func
)dump_open_input_desktop_reply
,
4542 (dump_func
)dump_get_thread_desktop_reply
,
4544 (dump_func
)dump_enum_desktop_reply
,
4545 (dump_func
)dump_set_user_object_info_reply
,
4546 (dump_func
)dump_register_hotkey_reply
,
4547 (dump_func
)dump_unregister_hotkey_reply
,
4549 (dump_func
)dump_get_thread_input_reply
,
4550 (dump_func
)dump_get_last_input_time_reply
,
4551 (dump_func
)dump_get_key_state_reply
,
4553 (dump_func
)dump_set_foreground_window_reply
,
4554 (dump_func
)dump_set_focus_window_reply
,
4555 (dump_func
)dump_set_active_window_reply
,
4556 (dump_func
)dump_set_capture_window_reply
,
4557 (dump_func
)dump_set_caret_window_reply
,
4558 (dump_func
)dump_set_caret_info_reply
,
4559 (dump_func
)dump_set_hook_reply
,
4560 (dump_func
)dump_remove_hook_reply
,
4561 (dump_func
)dump_start_hook_chain_reply
,
4563 (dump_func
)dump_get_hook_info_reply
,
4564 (dump_func
)dump_create_class_reply
,
4565 (dump_func
)dump_destroy_class_reply
,
4566 (dump_func
)dump_set_class_info_reply
,
4567 (dump_func
)dump_set_clipboard_info_reply
,
4568 (dump_func
)dump_open_token_reply
,
4569 (dump_func
)dump_set_global_windows_reply
,
4570 (dump_func
)dump_adjust_token_privileges_reply
,
4571 (dump_func
)dump_get_token_privileges_reply
,
4572 (dump_func
)dump_check_token_privileges_reply
,
4573 (dump_func
)dump_duplicate_token_reply
,
4574 (dump_func
)dump_access_check_reply
,
4575 (dump_func
)dump_get_token_sid_reply
,
4576 (dump_func
)dump_get_token_groups_reply
,
4577 (dump_func
)dump_get_token_default_dacl_reply
,
4580 (dump_func
)dump_get_security_object_reply
,
4581 (dump_func
)dump_create_mailslot_reply
,
4582 (dump_func
)dump_set_mailslot_info_reply
,
4583 (dump_func
)dump_create_directory_reply
,
4584 (dump_func
)dump_open_directory_reply
,
4585 (dump_func
)dump_get_directory_entry_reply
,
4586 (dump_func
)dump_create_symlink_reply
,
4587 (dump_func
)dump_open_symlink_reply
,
4588 (dump_func
)dump_query_symlink_reply
,
4589 (dump_func
)dump_get_object_info_reply
,
4591 (dump_func
)dump_get_token_impersonation_level_reply
,
4592 (dump_func
)dump_allocate_locally_unique_id_reply
,
4593 (dump_func
)dump_create_device_manager_reply
,
4594 (dump_func
)dump_create_device_reply
,
4596 (dump_func
)dump_get_next_device_request_reply
,
4597 (dump_func
)dump_make_process_system_reply
,
4598 (dump_func
)dump_get_token_statistics_reply
,
4599 (dump_func
)dump_create_completion_reply
,
4600 (dump_func
)dump_open_completion_reply
,
4602 (dump_func
)dump_remove_completion_reply
,
4603 (dump_func
)dump_query_completion_reply
,
4606 (dump_func
)dump_get_window_layered_info_reply
,
4608 (dump_func
)dump_alloc_user_handle_reply
,
4610 (dump_func
)dump_set_cursor_reply
,
4612 (dump_func
)dump_get_suspend_context_reply
,
4616 static const char * const req_names
[REQ_NB_REQUESTS
] = {
4618 "get_new_process_info",
4621 "init_process_done",
4623 "terminate_process",
4646 "create_keyed_event",
4652 "release_semaphore",
4657 "alloc_file_handle",
4658 "get_handle_unix_name",
4665 "accept_into_socket",
4669 "enable_socket_event",
4670 "set_socket_deferred",
4673 "get_console_renderer_events",
4675 "get_console_wait_event",
4678 "set_console_input_info",
4679 "get_console_input_info",
4680 "append_console_input_history",
4681 "get_console_input_history",
4682 "create_console_output",
4683 "set_console_output_info",
4684 "get_console_output_info",
4685 "write_console_input",
4686 "read_console_input",
4687 "write_console_output",
4688 "fill_console_output",
4689 "read_console_output",
4690 "move_console_output",
4691 "send_console_signal",
4692 "read_directory_changes",
4697 "get_mapping_committed_range",
4698 "add_mapping_committed_range",
4703 "queue_exception_event",
4704 "get_exception_status",
4705 "continue_debug_event",
4708 "set_debugger_kill_on_exit",
4709 "read_process_memory",
4710 "write_process_memory",
4723 "set_registry_notification",
4729 "get_thread_context",
4730 "set_thread_context",
4731 "get_selector_entry",
4735 "get_atom_information",
4736 "set_atom_information",
4743 "get_process_idle_event",
4745 "post_quit_message",
4746 "send_hardware_message",
4749 "accept_hardware_message",
4750 "get_message_reply",
4761 "create_named_pipe",
4762 "get_named_pipe_info",
4763 "set_named_pipe_info",
4766 "get_desktop_window",
4771 "get_window_parents",
4772 "get_window_children",
4773 "get_window_children_from_point",
4776 "get_window_rectangles",
4779 "get_windows_offset",
4780 "get_visible_region",
4781 "get_surface_region",
4782 "get_window_region",
4783 "set_window_region",
4784 "get_update_region",
4785 "update_window_zorder",
4787 "set_window_property",
4788 "remove_window_property",
4789 "get_window_property",
4790 "get_window_properties",
4791 "create_winstation",
4794 "get_process_winstation",
4795 "set_process_winstation",
4799 "open_input_desktop",
4801 "get_thread_desktop",
4802 "set_thread_desktop",
4804 "set_user_object_info",
4806 "unregister_hotkey",
4807 "attach_thread_input",
4809 "get_last_input_time",
4812 "set_foreground_window",
4814 "set_active_window",
4815 "set_capture_window",
4821 "finish_hook_chain",
4826 "set_clipboard_info",
4828 "set_global_windows",
4829 "adjust_token_privileges",
4830 "get_token_privileges",
4831 "check_token_privileges",
4836 "get_token_default_dacl",
4837 "set_token_default_dacl",
4838 "set_security_object",
4839 "get_security_object",
4841 "set_mailslot_info",
4844 "get_directory_entry",
4850 "get_token_impersonation_level",
4851 "allocate_locally_unique_id",
4852 "create_device_manager",
4855 "get_next_device_request",
4856 "make_process_system",
4857 "get_token_statistics",
4858 "create_completion",
4861 "remove_completion",
4863 "set_completion_info",
4864 "add_fd_completion",
4865 "get_window_layered_info",
4866 "set_window_layered_info",
4867 "alloc_user_handle",
4870 "update_rawinput_devices",
4871 "get_suspend_context",
4872 "set_suspend_context",
4881 { "ABANDONED_WAIT_0", STATUS_ABANDONED_WAIT_0
},
4882 { "ACCESS_DENIED", STATUS_ACCESS_DENIED
},
4883 { "ACCESS_VIOLATION", STATUS_ACCESS_VIOLATION
},
4884 { "ADDRESS_ALREADY_ASSOCIATED", STATUS_ADDRESS_ALREADY_ASSOCIATED
},
4885 { "ALERTED", STATUS_ALERTED
},
4886 { "ALIAS_EXISTS", STATUS_ALIAS_EXISTS
},
4887 { "BAD_DEVICE_TYPE", STATUS_BAD_DEVICE_TYPE
},
4888 { "BAD_IMPERSONATION_LEVEL", STATUS_BAD_IMPERSONATION_LEVEL
},
4889 { "BREAKPOINT", STATUS_BREAKPOINT
},
4890 { "BUFFER_OVERFLOW", STATUS_BUFFER_OVERFLOW
},
4891 { "BUFFER_TOO_SMALL", STATUS_BUFFER_TOO_SMALL
},
4892 { "CANCELLED", STATUS_CANCELLED
},
4893 { "CANNOT_DELETE", STATUS_CANNOT_DELETE
},
4894 { "CANT_OPEN_ANONYMOUS", STATUS_CANT_OPEN_ANONYMOUS
},
4895 { "CANT_WAIT", STATUS_CANT_WAIT
},
4896 { "CHILD_MUST_BE_VOLATILE", STATUS_CHILD_MUST_BE_VOLATILE
},
4897 { "CONNECTION_ABORTED", STATUS_CONNECTION_ABORTED
},
4898 { "CONNECTION_DISCONNECTED", STATUS_CONNECTION_DISCONNECTED
},
4899 { "CONNECTION_REFUSED", STATUS_CONNECTION_REFUSED
},
4900 { "CONNECTION_RESET", STATUS_CONNECTION_RESET
},
4901 { "DEBUGGER_INACTIVE", STATUS_DEBUGGER_INACTIVE
},
4902 { "DEVICE_BUSY", STATUS_DEVICE_BUSY
},
4903 { "DIRECTORY_NOT_EMPTY", STATUS_DIRECTORY_NOT_EMPTY
},
4904 { "DISK_FULL", STATUS_DISK_FULL
},
4905 { "DLL_NOT_FOUND", STATUS_DLL_NOT_FOUND
},
4906 { "ERROR_CLASS_ALREADY_EXISTS", 0xc0010000 | ERROR_CLASS_ALREADY_EXISTS
},
4907 { "ERROR_CLASS_DOES_NOT_EXIST", 0xc0010000 | ERROR_CLASS_DOES_NOT_EXIST
},
4908 { "ERROR_CLASS_HAS_WINDOWS", 0xc0010000 | ERROR_CLASS_HAS_WINDOWS
},
4909 { "ERROR_CLIPBOARD_NOT_OPEN", 0xc0010000 | ERROR_CLIPBOARD_NOT_OPEN
},
4910 { "ERROR_HOTKEY_ALREADY_REGISTERED", 0xc0010000 | ERROR_HOTKEY_ALREADY_REGISTERED
},
4911 { "ERROR_HOTKEY_NOT_REGISTERED", 0xc0010000 | ERROR_HOTKEY_NOT_REGISTERED
},
4912 { "ERROR_INVALID_CURSOR_HANDLE", 0xc0010000 | ERROR_INVALID_CURSOR_HANDLE
},
4913 { "ERROR_INVALID_INDEX", 0xc0010000 | ERROR_INVALID_INDEX
},
4914 { "ERROR_INVALID_WINDOW_HANDLE", 0xc0010000 | ERROR_INVALID_WINDOW_HANDLE
},
4915 { "ERROR_WINDOW_OF_OTHER_THREAD", 0xc0010000 | ERROR_WINDOW_OF_OTHER_THREAD
},
4916 { "FILE_DELETED", STATUS_FILE_DELETED
},
4917 { "FILE_IS_A_DIRECTORY", STATUS_FILE_IS_A_DIRECTORY
},
4918 { "FILE_LOCK_CONFLICT", STATUS_FILE_LOCK_CONFLICT
},
4919 { "GENERIC_NOT_MAPPED", STATUS_GENERIC_NOT_MAPPED
},
4920 { "HANDLES_CLOSED", STATUS_HANDLES_CLOSED
},
4921 { "HANDLE_NOT_CLOSABLE", STATUS_HANDLE_NOT_CLOSABLE
},
4922 { "HOST_UNREACHABLE", STATUS_HOST_UNREACHABLE
},
4923 { "ILLEGAL_FUNCTION", STATUS_ILLEGAL_FUNCTION
},
4924 { "INSTANCE_NOT_AVAILABLE", STATUS_INSTANCE_NOT_AVAILABLE
},
4925 { "INSUFFICIENT_RESOURCES", STATUS_INSUFFICIENT_RESOURCES
},
4926 { "INVALID_CID", STATUS_INVALID_CID
},
4927 { "INVALID_DEVICE_REQUEST", STATUS_INVALID_DEVICE_REQUEST
},
4928 { "INVALID_FILE_FOR_SECTION", STATUS_INVALID_FILE_FOR_SECTION
},
4929 { "INVALID_HANDLE", STATUS_INVALID_HANDLE
},
4930 { "INVALID_IMAGE_FORMAT", STATUS_INVALID_IMAGE_FORMAT
},
4931 { "INVALID_IMAGE_NE_FORMAT", STATUS_INVALID_IMAGE_NE_FORMAT
},
4932 { "INVALID_IMAGE_NOT_MZ", STATUS_INVALID_IMAGE_NOT_MZ
},
4933 { "INVALID_IMAGE_PROTECT", STATUS_INVALID_IMAGE_PROTECT
},
4934 { "INVALID_IMAGE_WIN_64", STATUS_INVALID_IMAGE_WIN_64
},
4935 { "INVALID_PARAMETER", STATUS_INVALID_PARAMETER
},
4936 { "INVALID_SECURITY_DESCR", STATUS_INVALID_SECURITY_DESCR
},
4937 { "IO_TIMEOUT", STATUS_IO_TIMEOUT
},
4938 { "KEY_DELETED", STATUS_KEY_DELETED
},
4939 { "MAPPED_FILE_SIZE_ZERO", STATUS_MAPPED_FILE_SIZE_ZERO
},
4940 { "MORE_PROCESSING_REQUIRED", STATUS_MORE_PROCESSING_REQUIRED
},
4941 { "MUTANT_NOT_OWNED", STATUS_MUTANT_NOT_OWNED
},
4942 { "NAME_TOO_LONG", STATUS_NAME_TOO_LONG
},
4943 { "NETWORK_BUSY", STATUS_NETWORK_BUSY
},
4944 { "NETWORK_UNREACHABLE", STATUS_NETWORK_UNREACHABLE
},
4945 { "NOTIFY_ENUM_DIR", STATUS_NOTIFY_ENUM_DIR
},
4946 { "NOT_ALL_ASSIGNED", STATUS_NOT_ALL_ASSIGNED
},
4947 { "NOT_A_DIRECTORY", STATUS_NOT_A_DIRECTORY
},
4948 { "NOT_FOUND", STATUS_NOT_FOUND
},
4949 { "NOT_IMPLEMENTED", STATUS_NOT_IMPLEMENTED
},
4950 { "NOT_REGISTRY_FILE", STATUS_NOT_REGISTRY_FILE
},
4951 { "NOT_SUPPORTED", STATUS_NOT_SUPPORTED
},
4952 { "NO_DATA_DETECTED", STATUS_NO_DATA_DETECTED
},
4953 { "NO_IMPERSONATION_TOKEN", STATUS_NO_IMPERSONATION_TOKEN
},
4954 { "NO_MEMORY", STATUS_NO_MEMORY
},
4955 { "NO_MORE_ENTRIES", STATUS_NO_MORE_ENTRIES
},
4956 { "NO_MORE_FILES", STATUS_NO_MORE_FILES
},
4957 { "NO_SUCH_DEVICE", STATUS_NO_SUCH_DEVICE
},
4958 { "NO_SUCH_FILE", STATUS_NO_SUCH_FILE
},
4959 { "NO_TOKEN", STATUS_NO_TOKEN
},
4960 { "OBJECT_NAME_COLLISION", STATUS_OBJECT_NAME_COLLISION
},
4961 { "OBJECT_NAME_EXISTS", STATUS_OBJECT_NAME_EXISTS
},
4962 { "OBJECT_NAME_INVALID", STATUS_OBJECT_NAME_INVALID
},
4963 { "OBJECT_NAME_NOT_FOUND", STATUS_OBJECT_NAME_NOT_FOUND
},
4964 { "OBJECT_PATH_INVALID", STATUS_OBJECT_PATH_INVALID
},
4965 { "OBJECT_PATH_NOT_FOUND", STATUS_OBJECT_PATH_NOT_FOUND
},
4966 { "OBJECT_PATH_SYNTAX_BAD", STATUS_OBJECT_PATH_SYNTAX_BAD
},
4967 { "OBJECT_TYPE_MISMATCH", STATUS_OBJECT_TYPE_MISMATCH
},
4968 { "PENDING", STATUS_PENDING
},
4969 { "PIPE_BUSY", STATUS_PIPE_BUSY
},
4970 { "PIPE_CONNECTED", STATUS_PIPE_CONNECTED
},
4971 { "PIPE_DISCONNECTED", STATUS_PIPE_DISCONNECTED
},
4972 { "PIPE_LISTENING", STATUS_PIPE_LISTENING
},
4973 { "PIPE_NOT_AVAILABLE", STATUS_PIPE_NOT_AVAILABLE
},
4974 { "PRIVILEGE_NOT_HELD", STATUS_PRIVILEGE_NOT_HELD
},
4975 { "PROCESS_IS_TERMINATING", STATUS_PROCESS_IS_TERMINATING
},
4976 { "SECTION_TOO_BIG", STATUS_SECTION_TOO_BIG
},
4977 { "SEMAPHORE_LIMIT_EXCEEDED", STATUS_SEMAPHORE_LIMIT_EXCEEDED
},
4978 { "SHARING_VIOLATION", STATUS_SHARING_VIOLATION
},
4979 { "SHUTDOWN_IN_PROGRESS", STATUS_SHUTDOWN_IN_PROGRESS
},
4980 { "SUSPEND_COUNT_EXCEEDED", STATUS_SUSPEND_COUNT_EXCEEDED
},
4981 { "THREAD_IS_TERMINATING", STATUS_THREAD_IS_TERMINATING
},
4982 { "TIMEOUT", STATUS_TIMEOUT
},
4983 { "TOO_MANY_OPENED_FILES", STATUS_TOO_MANY_OPENED_FILES
},
4984 { "UNSUCCESSFUL", STATUS_UNSUCCESSFUL
},
4985 { "USER_APC", STATUS_USER_APC
},
4986 { "USER_MAPPED_FILE", STATUS_USER_MAPPED_FILE
},
4987 { "VOLUME_DISMOUNTED", STATUS_VOLUME_DISMOUNTED
},
4988 { "WAS_LOCKED", STATUS_WAS_LOCKED
},
4992 /* ### make_requests end ### */
4993 /* Everything above this line is generated automatically by tools/make_requests */
4995 static const char *get_status_name( unsigned int status
)
4998 static char buffer
[10];
5002 for (i
= 0; status_names
[i
].name
; i
++)
5003 if (status_names
[i
].value
== status
) return status_names
[i
].name
;
5005 sprintf( buffer
, "%x", status
);
5009 void trace_request(void)
5011 enum request req
= current
->req
.request_header
.req
;
5012 if (req
< REQ_NB_REQUESTS
)
5014 fprintf( stderr
, "%04x: %s(", current
->id
, req_names
[req
] );
5015 if (req_dumpers
[req
])
5017 cur_data
= get_req_data();
5018 cur_size
= get_req_data_size();
5019 req_dumpers
[req
]( ¤t
->req
);
5021 fprintf( stderr
, " )\n" );
5023 else fprintf( stderr
, "%04x: %d(?)\n", current
->id
, req
);
5026 void trace_reply( enum request req
, const union generic_reply
*reply
)
5028 if (req
< REQ_NB_REQUESTS
)
5030 fprintf( stderr
, "%04x: %s() = %s",
5031 current
->id
, req_names
[req
], get_status_name(current
->error
) );
5032 if (reply_dumpers
[req
])
5034 fprintf( stderr
, " {" );
5035 cur_data
= current
->reply_data
;
5036 cur_size
= reply
->reply_header
.reply_size
;
5037 reply_dumpers
[req
]( reply
);
5038 fprintf( stderr
, " }" );
5040 fputc( '\n', stderr
);
5042 else fprintf( stderr
, "%04x: %d() = %s\n",
5043 current
->id
, req
, get_status_name(current
->error
) );