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
);
231 case APC_VIRTUAL_ALLOC
:
232 fprintf( stderr
, "APC_VIRTUAL_ALLOC,status=%s",
233 get_status_name( result
->virtual_alloc
.status
));
234 dump_uint64( ",addr=", &result
->virtual_alloc
.addr
);
235 dump_uint64( ",size=", &result
->virtual_alloc
.size
);
237 case APC_VIRTUAL_FREE
:
238 fprintf( stderr
, "APC_VIRTUAL_FREE,status=%s",
239 get_status_name( result
->virtual_free
.status
));
240 dump_uint64( ",addr=", &result
->virtual_free
.addr
);
241 dump_uint64( ",size=", &result
->virtual_free
.size
);
243 case APC_VIRTUAL_QUERY
:
244 fprintf( stderr
, "APC_VIRTUAL_QUERY,status=%s",
245 get_status_name( result
->virtual_query
.status
));
246 dump_uint64( ",base=", &result
->virtual_query
.base
);
247 dump_uint64( ",alloc_base=", &result
->virtual_query
.alloc_base
);
248 dump_uint64( ",size=", &result
->virtual_query
.size
);
249 fprintf( stderr
, ",state=%x,prot=%x,alloc_prot=%x,alloc_type=%x",
250 result
->virtual_query
.state
, result
->virtual_query
.prot
,
251 result
->virtual_query
.alloc_prot
, result
->virtual_query
.alloc_type
);
253 case APC_VIRTUAL_PROTECT
:
254 fprintf( stderr
, "APC_VIRTUAL_PROTECT,status=%s",
255 get_status_name( result
->virtual_protect
.status
));
256 dump_uint64( ",addr=", &result
->virtual_protect
.addr
);
257 dump_uint64( ",size=", &result
->virtual_protect
.size
);
258 fprintf( stderr
, ",prot=%x", result
->virtual_protect
.prot
);
260 case APC_VIRTUAL_FLUSH
:
261 fprintf( stderr
, "APC_VIRTUAL_FLUSH,status=%s",
262 get_status_name( result
->virtual_flush
.status
));
263 dump_uint64( ",addr=", &result
->virtual_flush
.addr
);
264 dump_uint64( ",size=", &result
->virtual_flush
.size
);
266 case APC_VIRTUAL_LOCK
:
267 fprintf( stderr
, "APC_VIRTUAL_LOCK,status=%s",
268 get_status_name( result
->virtual_lock
.status
));
269 dump_uint64( ",addr=", &result
->virtual_lock
.addr
);
270 dump_uint64( ",size=", &result
->virtual_lock
.size
);
272 case APC_VIRTUAL_UNLOCK
:
273 fprintf( stderr
, "APC_VIRTUAL_UNLOCK,status=%s",
274 get_status_name( result
->virtual_unlock
.status
));
275 dump_uint64( ",addr=", &result
->virtual_unlock
.addr
);
276 dump_uint64( ",size=", &result
->virtual_unlock
.size
);
279 fprintf( stderr
, "APC_MAP_VIEW,status=%s",
280 get_status_name( result
->map_view
.status
));
281 dump_uint64( ",addr=", &result
->map_view
.addr
);
282 dump_uint64( ",size=", &result
->map_view
.size
);
285 fprintf( stderr
, "APC_UNMAP_VIEW,status=%s",
286 get_status_name( result
->unmap_view
.status
) );
288 case APC_CREATE_THREAD
:
289 fprintf( stderr
, "APC_CREATE_THREAD,status=%s,tid=%04x,handle=%04x",
290 get_status_name( result
->create_thread
.status
),
291 result
->create_thread
.tid
, result
->create_thread
.handle
);
294 fprintf( stderr
, "type=%u", result
->type
);
297 fputc( '}', stderr
);
300 static void dump_async_data( const char *prefix
, const async_data_t
*data
)
302 fprintf( stderr
, "%s{handle=%04x,event=%04x", prefix
, data
->handle
, data
->event
);
303 dump_uint64( ",callback=", &data
->callback
);
304 dump_uint64( ",iosb=", &data
->iosb
);
305 dump_uint64( ",arg=", &data
->arg
);
306 dump_uint64( ",cvalue=", &data
->cvalue
);
307 fputc( '}', stderr
);
310 static void dump_hw_input( const char *prefix
, const hw_input_t
*input
)
315 fprintf( stderr
, "%s{type=MOUSE,x=%d,y=%d,data=%08x,flags=%08x,time=%u",
316 prefix
, input
->mouse
.x
, input
->mouse
.y
, input
->mouse
.data
, input
->mouse
.flags
,
318 dump_uint64( ",info=", &input
->mouse
.info
);
319 fputc( '}', stderr
);
322 fprintf( stderr
, "%s{type=KEYBOARD,vkey=%04hx,scan=%04hx,flags=%08x,time=%u",
323 prefix
, input
->kbd
.vkey
, input
->kbd
.scan
, input
->kbd
.flags
, input
->kbd
.time
);
324 dump_uint64( ",info=", &input
->kbd
.info
);
325 fputc( '}', stderr
);
328 fprintf( stderr
, "%s{type=HARDWARE,msg=%04x", prefix
, input
->hw
.msg
);
329 dump_uint64( ",lparam=", &input
->hw
.lparam
);
330 fputc( '}', stderr
);
333 fprintf( stderr
, "%s{type=%04x}", prefix
, input
->type
);
338 static void dump_luid( const char *prefix
, const luid_t
*luid
)
340 fprintf( stderr
, "%s%d.%u", prefix
, luid
->high_part
, luid
->low_part
);
343 static void dump_varargs_ints( const char *prefix
, data_size_t size
)
345 const int *data
= cur_data
;
346 data_size_t len
= size
/ sizeof(*data
);
348 fprintf( stderr
,"%s{", prefix
);
351 fprintf( stderr
, "%d", *data
++ );
352 if (--len
) fputc( ',', stderr
);
354 fputc( '}', stderr
);
358 static void dump_varargs_uints64( const char *prefix
, data_size_t size
)
360 const unsigned __int64
*data
= cur_data
;
361 data_size_t len
= size
/ sizeof(*data
);
363 fprintf( stderr
,"%s{", prefix
);
366 dump_uint64( "", data
++ );
367 if (--len
) fputc( ',', stderr
);
369 fputc( '}', stderr
);
373 static void dump_varargs_apc_result( const char *prefix
, data_size_t size
)
375 const apc_result_t
*result
= cur_data
;
377 if (size
>= sizeof(*result
))
379 dump_apc_result( prefix
, result
);
380 size
= sizeof(*result
);
385 static void dump_varargs_select_op( const char *prefix
, data_size_t size
)
391 fprintf( stderr
, "%s{}", prefix
);
394 memset( &data
, 0, sizeof(data
) );
395 memcpy( &data
, cur_data
, min( size
, sizeof(data
) ));
397 fprintf( stderr
, "%s{", prefix
);
401 fprintf( stderr
, "NONE" );
404 case SELECT_WAIT_ALL
:
405 fprintf( stderr
, "%s", data
.op
== SELECT_WAIT
? "WAIT" : "WAIT_ALL" );
406 if (size
> offsetof( select_op_t
, wait
.handles
))
407 dump_handles( ",handles=", data
.wait
.handles
,
408 min( size
, sizeof(data
.wait
) ) - offsetof( select_op_t
, wait
.handles
));
410 case SELECT_SIGNAL_AND_WAIT
:
411 fprintf( stderr
, "SIGNAL_AND_WAIT,signal=%04x,wait=%04x",
412 data
.signal_and_wait
.signal
, data
.signal_and_wait
.wait
);
414 case SELECT_KEYED_EVENT_WAIT
:
415 case SELECT_KEYED_EVENT_RELEASE
:
416 fprintf( stderr
, "KEYED_EVENT_%s,handle=%04x",
417 data
.op
== SELECT_KEYED_EVENT_WAIT
? "WAIT" : "RELEASE",
418 data
.keyed_event
.handle
);
419 dump_uint64( ",key=", &data
.keyed_event
.key
);
422 fprintf( stderr
, "op=%u", data
.op
);
425 fputc( '}', stderr
);
429 static void dump_varargs_user_handles( const char *prefix
, data_size_t size
)
431 const user_handle_t
*data
= cur_data
;
432 data_size_t len
= size
/ sizeof(*data
);
434 fprintf( stderr
,"%s{", prefix
);
437 fprintf( stderr
, "%08x", *data
++ );
438 if (--len
) fputc( ',', stderr
);
440 fputc( '}', stderr
);
444 static void dump_varargs_bytes( const char *prefix
, data_size_t size
)
446 const unsigned char *data
= cur_data
;
447 data_size_t len
= min( 1024, size
);
449 fprintf( stderr
,"%s{", prefix
);
452 fprintf( stderr
, "%02x", *data
++ );
453 if (--len
) fputc( ',', stderr
);
455 if (size
> 1024) fprintf( stderr
, "...(total %u)", size
);
456 fputc( '}', stderr
);
460 static void dump_varargs_string( const char *prefix
, data_size_t size
)
462 fprintf( stderr
, "%s\"%.*s\"", prefix
, (int)size
, (const char *)cur_data
);
466 static void dump_varargs_unicode_str( const char *prefix
, data_size_t size
)
468 fprintf( stderr
, "%sL\"", prefix
);
469 dump_strW( cur_data
, size
/ sizeof(WCHAR
), stderr
, "\"\"" );
470 fputc( '\"', stderr
);
474 static void dump_varargs_context( const char *prefix
, data_size_t size
)
476 const context_t
*context
= cur_data
;
482 fprintf( stderr
, "%s{}", prefix
);
485 size
= min( size
, sizeof(ctx
) );
486 memset( &ctx
, 0, sizeof(ctx
) );
487 memcpy( &ctx
, context
, size
);
489 fprintf( stderr
,"%s{", prefix
);
490 dump_cpu_type( "cpu=", &ctx
.cpu
);
494 if (ctx
.flags
& SERVER_CTX_CONTROL
)
495 fprintf( stderr
, ",eip=%08x,esp=%08x,ebp=%08x,eflags=%08x,cs=%04x,ss=%04x",
496 ctx
.ctl
.i386_regs
.eip
, ctx
.ctl
.i386_regs
.esp
, ctx
.ctl
.i386_regs
.ebp
,
497 ctx
.ctl
.i386_regs
.eflags
, ctx
.ctl
.i386_regs
.cs
, ctx
.ctl
.i386_regs
.ss
);
498 if (ctx
.flags
& SERVER_CTX_SEGMENTS
)
499 fprintf( stderr
, ",ds=%04x,es=%04x,fs=%04x,gs=%04x",
500 ctx
.seg
.i386_regs
.ds
, ctx
.seg
.i386_regs
.es
,
501 ctx
.seg
.i386_regs
.fs
, ctx
.seg
.i386_regs
.gs
);
502 if (ctx
.flags
& SERVER_CTX_INTEGER
)
503 fprintf( stderr
, ",eax=%08x,ebx=%08x,ecx=%08x,edx=%08x,esi=%08x,edi=%08x",
504 ctx
.integer
.i386_regs
.eax
, ctx
.integer
.i386_regs
.ebx
, ctx
.integer
.i386_regs
.ecx
,
505 ctx
.integer
.i386_regs
.edx
, ctx
.integer
.i386_regs
.esi
, ctx
.integer
.i386_regs
.edi
);
506 if (ctx
.flags
& SERVER_CTX_DEBUG_REGISTERS
)
507 fprintf( stderr
, ",dr0=%08x,dr1=%08x,dr2=%08x,dr3=%08x,dr6=%08x,dr7=%08x",
508 ctx
.debug
.i386_regs
.dr0
, ctx
.debug
.i386_regs
.dr1
, ctx
.debug
.i386_regs
.dr2
,
509 ctx
.debug
.i386_regs
.dr3
, ctx
.debug
.i386_regs
.dr6
, ctx
.debug
.i386_regs
.dr7
);
510 if (ctx
.flags
& SERVER_CTX_FLOATING_POINT
)
512 fprintf( stderr
, ",fp.ctrl=%08x,fp.status=%08x,fp.tag=%08x,fp.err_off=%08x,fp.err_sel=%08x",
513 ctx
.fp
.i386_regs
.ctrl
, ctx
.fp
.i386_regs
.status
, ctx
.fp
.i386_regs
.tag
,
514 ctx
.fp
.i386_regs
.err_off
, ctx
.fp
.i386_regs
.err_sel
);
515 fprintf( stderr
, ",fp.data_off=%08x,fp.data_sel=%08x,fp.cr0npx=%08x",
516 ctx
.fp
.i386_regs
.data_off
, ctx
.fp
.i386_regs
.data_sel
, ctx
.fp
.i386_regs
.cr0npx
);
517 for (i
= 0; i
< 8; i
++)
518 fprintf( stderr
, ",fp.reg%u=%Lg", i
, *(long double *)&ctx
.fp
.i386_regs
.regs
[10*i
] );
520 if (ctx
.flags
& SERVER_CTX_EXTENDED_REGISTERS
)
522 fprintf( stderr
, ",extended=" );
523 dump_uints( (const int *)ctx
.ext
.i386_regs
, sizeof(ctx
.ext
.i386_regs
) / sizeof(int) );
527 if (ctx
.flags
& SERVER_CTX_CONTROL
)
529 dump_uint64( ",rip=", &ctx
.ctl
.x86_64_regs
.rip
);
530 dump_uint64( ",rbp=", &ctx
.ctl
.x86_64_regs
.rbp
);
531 dump_uint64( ",rsp=", &ctx
.ctl
.x86_64_regs
.rsp
);
532 fprintf( stderr
, ",cs=%04x,ss=%04x,flags=%08x",
533 ctx
.ctl
.x86_64_regs
.cs
, ctx
.ctl
.x86_64_regs
.ss
, ctx
.ctl
.x86_64_regs
.flags
);
535 if (ctx
.flags
& SERVER_CTX_INTEGER
)
537 dump_uint64( ",rax=", &ctx
.integer
.x86_64_regs
.rax
);
538 dump_uint64( ",rbx=", &ctx
.integer
.x86_64_regs
.rbx
);
539 dump_uint64( ",rcx=", &ctx
.integer
.x86_64_regs
.rcx
);
540 dump_uint64( ",rdx=", &ctx
.integer
.x86_64_regs
.rdx
);
541 dump_uint64( ",rsi=", &ctx
.integer
.x86_64_regs
.rsi
);
542 dump_uint64( ",rdi=", &ctx
.integer
.x86_64_regs
.rdi
);
543 dump_uint64( ",r8=", &ctx
.integer
.x86_64_regs
.r8
);
544 dump_uint64( ",r9=", &ctx
.integer
.x86_64_regs
.r9
);
545 dump_uint64( ",r10=", &ctx
.integer
.x86_64_regs
.r10
);
546 dump_uint64( ",r11=", &ctx
.integer
.x86_64_regs
.r11
);
547 dump_uint64( ",r12=", &ctx
.integer
.x86_64_regs
.r12
);
548 dump_uint64( ",r13=", &ctx
.integer
.x86_64_regs
.r13
);
549 dump_uint64( ",r14=", &ctx
.integer
.x86_64_regs
.r14
);
550 dump_uint64( ",r15=", &ctx
.integer
.x86_64_regs
.r15
);
552 if (ctx
.flags
& SERVER_CTX_SEGMENTS
)
553 fprintf( stderr
, ",ds=%04x,es=%04x,fs=%04x,gs=%04x",
554 ctx
.seg
.x86_64_regs
.ds
, ctx
.seg
.x86_64_regs
.es
,
555 ctx
.seg
.x86_64_regs
.fs
, ctx
.seg
.x86_64_regs
.gs
);
556 if (ctx
.flags
& SERVER_CTX_DEBUG_REGISTERS
)
558 dump_uint64( ",dr0=", &ctx
.debug
.x86_64_regs
.dr0
);
559 dump_uint64( ",dr1=", &ctx
.debug
.x86_64_regs
.dr1
);
560 dump_uint64( ",dr2=", &ctx
.debug
.x86_64_regs
.dr2
);
561 dump_uint64( ",dr3=", &ctx
.debug
.x86_64_regs
.dr3
);
562 dump_uint64( ",dr6=", &ctx
.debug
.x86_64_regs
.dr6
);
563 dump_uint64( ",dr7=", &ctx
.debug
.x86_64_regs
.dr7
);
565 if (ctx
.flags
& SERVER_CTX_FLOATING_POINT
)
567 for (i
= 0; i
< 32; i
++)
568 fprintf( stderr
, ",fp%u=%08x%08x%08x%08x", i
,
569 (unsigned int)(ctx
.fp
.x86_64_regs
.fpregs
[i
].high
>> 32),
570 (unsigned int)ctx
.fp
.x86_64_regs
.fpregs
[i
].high
,
571 (unsigned int)(ctx
.fp
.x86_64_regs
.fpregs
[i
].low
>> 32),
572 (unsigned int)ctx
.fp
.x86_64_regs
.fpregs
[i
].low
);
576 if (ctx
.flags
& SERVER_CTX_CONTROL
)
577 fprintf( stderr
, ",iar=%08x,msr=%08x,ctr=%08x,lr=%08x,dar=%08x,dsisr=%08x,trap=%08x",
578 ctx
.ctl
.powerpc_regs
.iar
, ctx
.ctl
.powerpc_regs
.msr
, ctx
.ctl
.powerpc_regs
.ctr
,
579 ctx
.ctl
.powerpc_regs
.lr
, ctx
.ctl
.powerpc_regs
.dar
, ctx
.ctl
.powerpc_regs
.dsisr
,
580 ctx
.ctl
.powerpc_regs
.trap
);
581 if (ctx
.flags
& SERVER_CTX_INTEGER
)
583 for (i
= 0; i
< 32; i
++) fprintf( stderr
, ",gpr%u=%08x", i
, ctx
.integer
.powerpc_regs
.gpr
[i
] );
584 fprintf( stderr
, ",cr=%08x,xer=%08x",
585 ctx
.integer
.powerpc_regs
.cr
, ctx
.integer
.powerpc_regs
.xer
);
587 if (ctx
.flags
& SERVER_CTX_DEBUG_REGISTERS
)
588 for (i
= 0; i
< 8; i
++) fprintf( stderr
, ",dr%u=%08x", i
, ctx
.debug
.powerpc_regs
.dr
[i
] );
589 if (ctx
.flags
& SERVER_CTX_FLOATING_POINT
)
591 for (i
= 0; i
< 32; i
++) fprintf( stderr
, ",fpr%u=%g", i
, ctx
.fp
.powerpc_regs
.fpr
[i
] );
592 fprintf( stderr
, ",fpscr=%g", ctx
.fp
.powerpc_regs
.fpscr
);
596 if (ctx
.flags
& SERVER_CTX_CONTROL
)
597 fprintf( stderr
, ",sp=%08x,lr=%08x,pc=%08x,cpsr=%08x",
598 ctx
.ctl
.arm_regs
.sp
, ctx
.ctl
.arm_regs
.lr
,
599 ctx
.ctl
.arm_regs
.pc
, ctx
.ctl
.arm_regs
.cpsr
);
600 if (ctx
.flags
& SERVER_CTX_INTEGER
)
601 for (i
= 0; i
< 13; i
++) fprintf( stderr
, ",r%u=%08x", i
, ctx
.integer
.arm_regs
.r
[i
] );
604 if (ctx
.flags
& SERVER_CTX_CONTROL
)
606 dump_uint64( ",sp=", &ctx
.ctl
.arm64_regs
.sp
);
607 dump_uint64( ",pc=", &ctx
.ctl
.arm64_regs
.pc
);
608 dump_uint64( ",pstate=", &ctx
.ctl
.arm64_regs
.pstate
);
610 if (ctx
.flags
& SERVER_CTX_INTEGER
)
612 dump_uint64( ",x0=", &ctx
.integer
.arm64_regs
.x
[0] );
613 dump_uint64( ",x1=", &ctx
.integer
.arm64_regs
.x
[1] );
614 dump_uint64( ",x2=", &ctx
.integer
.arm64_regs
.x
[2] );
615 dump_uint64( ",x3=", &ctx
.integer
.arm64_regs
.x
[3] );
616 dump_uint64( ",x4=", &ctx
.integer
.arm64_regs
.x
[4] );
617 dump_uint64( ",x5=", &ctx
.integer
.arm64_regs
.x
[5] );
618 dump_uint64( ",x6=", &ctx
.integer
.arm64_regs
.x
[6] );
619 dump_uint64( ",x7=", &ctx
.integer
.arm64_regs
.x
[7] );
620 dump_uint64( ",x8=", &ctx
.integer
.arm64_regs
.x
[8] );
621 dump_uint64( ",x9=", &ctx
.integer
.arm64_regs
.x
[9] );
622 dump_uint64( ",x10=", &ctx
.integer
.arm64_regs
.x
[10] );
623 dump_uint64( ",x11=", &ctx
.integer
.arm64_regs
.x
[11] );
624 dump_uint64( ",x12=", &ctx
.integer
.arm64_regs
.x
[12] );
625 dump_uint64( ",x13=", &ctx
.integer
.arm64_regs
.x
[13] );
626 dump_uint64( ",x14=", &ctx
.integer
.arm64_regs
.x
[14] );
627 dump_uint64( ",x15=", &ctx
.integer
.arm64_regs
.x
[15] );
628 dump_uint64( ",x16=", &ctx
.integer
.arm64_regs
.x
[16] );
629 dump_uint64( ",x17=", &ctx
.integer
.arm64_regs
.x
[17] );
630 dump_uint64( ",x18=", &ctx
.integer
.arm64_regs
.x
[18] );
631 dump_uint64( ",x19=", &ctx
.integer
.arm64_regs
.x
[19] );
632 dump_uint64( ",x20=", &ctx
.integer
.arm64_regs
.x
[20] );
633 dump_uint64( ",x21=", &ctx
.integer
.arm64_regs
.x
[21] );
634 dump_uint64( ",x22=", &ctx
.integer
.arm64_regs
.x
[22] );
635 dump_uint64( ",x23=", &ctx
.integer
.arm64_regs
.x
[23] );
636 dump_uint64( ",x24=", &ctx
.integer
.arm64_regs
.x
[24] );
637 dump_uint64( ",x25=", &ctx
.integer
.arm64_regs
.x
[25] );
638 dump_uint64( ",x26=", &ctx
.integer
.arm64_regs
.x
[26] );
639 dump_uint64( ",x27=", &ctx
.integer
.arm64_regs
.x
[27] );
640 dump_uint64( ",x28=", &ctx
.integer
.arm64_regs
.x
[28] );
641 dump_uint64( ",x29=", &ctx
.integer
.arm64_regs
.x
[29] );
642 dump_uint64( ",x30=", &ctx
.integer
.arm64_regs
.x
[30] );
646 fputc( '}', stderr
);
650 static void dump_varargs_debug_event( const char *prefix
, data_size_t size
)
657 fprintf( stderr
, "%s{}", prefix
);
660 size
= min( size
, sizeof(event
) );
661 memset( &event
, 0, sizeof(event
) );
662 memcpy( &event
, cur_data
, size
);
666 case EXCEPTION_DEBUG_EVENT
:
667 fprintf( stderr
, "%s{exception,first=%d,exc_code=%08x,flags=%08x", prefix
,
668 event
.exception
.first
, event
.exception
.exc_code
, event
.exception
.flags
);
669 dump_uint64( ",record=", &event
.exception
.record
);
670 dump_uint64( ",address=", &event
.exception
.address
);
671 fprintf( stderr
, ",params={" );
672 event
.exception
.nb_params
= min( event
.exception
.nb_params
, EXCEPTION_MAXIMUM_PARAMETERS
);
673 for (i
= 0; i
< event
.exception
.nb_params
; i
++)
675 dump_uint64( "", &event
.exception
.params
[i
] );
676 if (i
< event
.exception
.nb_params
) fputc( ',', stderr
);
678 fprintf( stderr
, "}}" );
680 case CREATE_THREAD_DEBUG_EVENT
:
681 fprintf( stderr
, "%s{create_thread,thread=%04x", prefix
, event
.create_thread
.handle
);
682 dump_uint64( ",teb=", &event
.create_thread
.teb
);
683 dump_uint64( ",start=", &event
.create_thread
.start
);
684 fputc( '}', stderr
);
686 case CREATE_PROCESS_DEBUG_EVENT
:
687 fprintf( stderr
, "%s{create_process,file=%04x,process=%04x,thread=%04x", prefix
,
688 event
.create_process
.file
, event
.create_process
.process
,
689 event
.create_process
.thread
);
690 dump_uint64( ",base=", &event
.create_process
.base
);
691 fprintf( stderr
, ",offset=%d,size=%d",
692 event
.create_process
.dbg_offset
, event
.create_process
.dbg_size
);
693 dump_uint64( ",teb=", &event
.create_process
.teb
);
694 dump_uint64( ",start=", &event
.create_process
.start
);
695 dump_uint64( ",name=", &event
.create_process
.name
);
696 fprintf( stderr
, ",unicode=%d}", event
.create_process
.unicode
);
698 case EXIT_THREAD_DEBUG_EVENT
:
699 fprintf( stderr
, "%s{exit_thread,code=%d}", prefix
, event
.exit
.exit_code
);
701 case EXIT_PROCESS_DEBUG_EVENT
:
702 fprintf( stderr
, "%s{exit_process,code=%d}", prefix
, event
.exit
.exit_code
);
704 case LOAD_DLL_DEBUG_EVENT
:
705 fprintf( stderr
, "%s{load_dll,file=%04x", prefix
, event
.load_dll
.handle
);
706 dump_uint64( ",base=", &event
.load_dll
.base
);
707 fprintf( stderr
, ",offset=%d,size=%d",
708 event
.load_dll
.dbg_offset
, event
.load_dll
.dbg_size
);
709 dump_uint64( ",name=", &event
.load_dll
.name
);
710 fprintf( stderr
, ",unicode=%d}", event
.load_dll
.unicode
);
712 case UNLOAD_DLL_DEBUG_EVENT
:
713 fprintf( stderr
, "%s{unload_dll", prefix
);
714 dump_uint64( ",base=", &event
.unload_dll
.base
);
715 fputc( '}', stderr
);
717 case 0: /* zero is the code returned on timeouts */
718 fprintf( stderr
, "%s{}", prefix
);
721 fprintf( stderr
, "%s{code=??? (%d)}", prefix
, event
.code
);
727 /* dump a unicode string contained in a buffer; helper for dump_varargs_startup_info */
728 static data_size_t
dump_inline_unicode_string( const char *prefix
, data_size_t pos
, data_size_t len
, data_size_t total_size
)
730 fputs( prefix
, stderr
);
731 if (pos
>= total_size
) return pos
;
732 if (len
> total_size
- pos
) len
= total_size
- pos
;
733 len
/= sizeof(WCHAR
);
734 dump_strW( (const WCHAR
*)cur_data
+ pos
/sizeof(WCHAR
), len
, stderr
, "\"\"" );
735 return pos
+ len
* sizeof(WCHAR
);
738 static void dump_varargs_startup_info( const char *prefix
, data_size_t size
)
741 data_size_t pos
= sizeof(info
);
743 memset( &info
, 0, sizeof(info
) );
744 memcpy( &info
, cur_data
, min( size
, sizeof(info
) ));
747 "%s{debug_flags=%x,console_flags=%x,console=%04x,hstdin=%04x,hstdout=%04x,hstderr=%04x,"
748 "x=%u,y=%u,xsize=%u,ysize=%u,xchars=%u,ychars=%u,attribute=%02x,flags=%x,show=%u",
749 prefix
, info
.debug_flags
, info
.console_flags
, info
.console
,
750 info
.hstdin
, info
.hstdout
, info
.hstderr
, info
.x
, info
.y
, info
.xsize
, info
.ysize
,
751 info
.xchars
, info
.ychars
, info
.attribute
, info
.flags
, info
.show
);
752 pos
= dump_inline_unicode_string( ",curdir=L\"", pos
, info
.curdir_len
, size
);
753 pos
= dump_inline_unicode_string( "\",dllpath=L\"", pos
, info
.dllpath_len
, size
);
754 pos
= dump_inline_unicode_string( "\",imagepath=L\"", pos
, info
.imagepath_len
, size
);
755 pos
= dump_inline_unicode_string( "\",cmdline=L\"", pos
, info
.cmdline_len
, size
);
756 pos
= dump_inline_unicode_string( "\",title=L\"", pos
, info
.title_len
, size
);
757 pos
= dump_inline_unicode_string( "\",desktop=L\"", pos
, info
.desktop_len
, size
);
758 pos
= dump_inline_unicode_string( "\",shellinfo=L\"", pos
, info
.shellinfo_len
, size
);
759 pos
= dump_inline_unicode_string( "\",runtime=L\"", pos
, info
.runtime_len
, size
);
760 fprintf( stderr
, "\"}" );
764 static void dump_varargs_input_records( const char *prefix
, data_size_t size
)
766 const INPUT_RECORD
*rec
= cur_data
;
767 data_size_t len
= size
/ sizeof(*rec
);
769 fprintf( stderr
,"%s{", prefix
);
772 fprintf( stderr
, "{%04x,...}", rec
->EventType
);
774 if (--len
) fputc( ',', stderr
);
776 fputc( '}', stderr
);
780 static void dump_varargs_rectangles( const char *prefix
, data_size_t size
)
782 const rectangle_t
*rect
= cur_data
;
783 data_size_t len
= size
/ sizeof(*rect
);
785 fprintf( stderr
,"%s{", prefix
);
788 dump_rectangle( "", rect
++ );
789 if (--len
) fputc( ',', stderr
);
791 fputc( '}', stderr
);
795 static void dump_varargs_message_data( const char *prefix
, data_size_t size
)
797 /* FIXME: dump the structured data */
798 dump_varargs_bytes( prefix
, size
);
801 static void dump_varargs_properties( const char *prefix
, data_size_t size
)
803 const property_data_t
*prop
= cur_data
;
804 data_size_t len
= size
/ sizeof(*prop
);
806 fprintf( stderr
,"%s{", prefix
);
809 fprintf( stderr
, "{atom=%04x,str=%d", prop
->atom
, prop
->string
);
810 dump_uint64( ",data=", &prop
->data
);
811 fputc( '}', stderr
);
813 if (--len
) fputc( ',', stderr
);
815 fputc( '}', stderr
);
819 static void dump_varargs_LUID_AND_ATTRIBUTES( const char *prefix
, data_size_t size
)
821 const LUID_AND_ATTRIBUTES
*lat
= cur_data
;
822 data_size_t len
= size
/ sizeof(*lat
);
824 fprintf( stderr
,"%s{", prefix
);
827 fprintf( stderr
, "{luid=%08x%08x,attr=%x}",
828 lat
->Luid
.HighPart
, lat
->Luid
.LowPart
, lat
->Attributes
);
830 if (--len
) fputc( ',', stderr
);
832 fputc( '}', stderr
);
836 static void dump_inline_sid( const char *prefix
, const SID
*sid
, data_size_t size
)
841 if ((FIELD_OFFSET(SID
, SubAuthority
[0]) > size
) ||
842 (FIELD_OFFSET(SID
, SubAuthority
[sid
->SubAuthorityCount
]) > size
))
844 fprintf( stderr
, "<invalid sid>" );
848 fprintf( stderr
,"%s{", prefix
);
849 fprintf( stderr
, "S-%u-%u", sid
->Revision
, MAKELONG(
850 MAKEWORD( sid
->IdentifierAuthority
.Value
[5],
851 sid
->IdentifierAuthority
.Value
[4] ),
852 MAKEWORD( sid
->IdentifierAuthority
.Value
[3],
853 sid
->IdentifierAuthority
.Value
[2] ) ) );
854 for (i
= 0; i
< sid
->SubAuthorityCount
; i
++)
855 fprintf( stderr
, "-%u", sid
->SubAuthority
[i
] );
856 fputc( '}', stderr
);
859 static void dump_varargs_SID( const char *prefix
, data_size_t size
)
861 const SID
*sid
= cur_data
;
862 dump_inline_sid( prefix
, sid
, size
);
866 static void dump_inline_acl( const char *prefix
, const ACL
*acl
, data_size_t size
)
868 const ACE_HEADER
*ace
;
871 fprintf( stderr
,"%s{", prefix
);
874 if (size
< sizeof(ACL
))
876 fprintf( stderr
, "<invalid acl>}" );
880 ace
= (const ACE_HEADER
*)(acl
+ 1);
881 for (i
= 0; i
< acl
->AceCount
; i
++)
883 const SID
*sid
= NULL
;
884 data_size_t sid_size
= 0;
886 if (size
< sizeof(ACE_HEADER
) || size
< ace
->AceSize
) break;
887 size
-= ace
->AceSize
;
888 if (i
!= 0) fputc( ',', stderr
);
889 fprintf( stderr
, "{AceType=" );
890 switch (ace
->AceType
)
892 case ACCESS_DENIED_ACE_TYPE
:
893 sid
= (const SID
*)&((const ACCESS_DENIED_ACE
*)ace
)->SidStart
;
894 sid_size
= ace
->AceSize
- FIELD_OFFSET(ACCESS_DENIED_ACE
, SidStart
);
895 fprintf( stderr
, "ACCESS_DENIED_ACE_TYPE,Mask=%x",
896 ((const ACCESS_DENIED_ACE
*)ace
)->Mask
);
898 case ACCESS_ALLOWED_ACE_TYPE
:
899 sid
= (const SID
*)&((const ACCESS_ALLOWED_ACE
*)ace
)->SidStart
;
900 sid_size
= ace
->AceSize
- FIELD_OFFSET(ACCESS_ALLOWED_ACE
, SidStart
);
901 fprintf( stderr
, "ACCESS_ALLOWED_ACE_TYPE,Mask=%x",
902 ((const ACCESS_ALLOWED_ACE
*)ace
)->Mask
);
904 case SYSTEM_AUDIT_ACE_TYPE
:
905 sid
= (const SID
*)&((const SYSTEM_AUDIT_ACE
*)ace
)->SidStart
;
906 sid_size
= ace
->AceSize
- FIELD_OFFSET(SYSTEM_AUDIT_ACE
, SidStart
);
907 fprintf( stderr
, "SYSTEM_AUDIT_ACE_TYPE,Mask=%x",
908 ((const SYSTEM_AUDIT_ACE
*)ace
)->Mask
);
910 case SYSTEM_ALARM_ACE_TYPE
:
911 sid
= (const SID
*)&((const SYSTEM_ALARM_ACE
*)ace
)->SidStart
;
912 sid_size
= ace
->AceSize
- FIELD_OFFSET(SYSTEM_ALARM_ACE
, SidStart
);
913 fprintf( stderr
, "SYSTEM_ALARM_ACE_TYPE,Mask=%x",
914 ((const SYSTEM_ALARM_ACE
*)ace
)->Mask
);
917 fprintf( stderr
, "unknown<%d>", ace
->AceType
);
920 fprintf( stderr
, ",AceFlags=%x", ace
->AceFlags
);
922 dump_inline_sid( ",Sid=", sid
, sid_size
);
923 ace
= (const ACE_HEADER
*)((const char *)ace
+ ace
->AceSize
);
924 fputc( '}', stderr
);
927 fputc( '}', stderr
);
930 static void dump_varargs_ACL( const char *prefix
, data_size_t size
)
932 const ACL
*acl
= cur_data
;
933 dump_inline_acl( prefix
, acl
, size
);
937 static void dump_inline_security_descriptor( const char *prefix
, const struct security_descriptor
*sd
, data_size_t size
)
939 fprintf( stderr
,"%s{", prefix
);
940 if (size
>= sizeof(struct security_descriptor
))
942 size_t offset
= sizeof(struct security_descriptor
);
943 fprintf( stderr
, "control=%08x", sd
->control
);
944 if ((sd
->owner_len
> FIELD_OFFSET(SID
, SubAuthority
[255])) || (offset
+ sd
->owner_len
> size
))
947 dump_inline_sid( ",owner=", (const SID
*)((const char *)sd
+ offset
), sd
->owner_len
);
949 fprintf( stderr
, ",owner=<not present>" );
950 offset
+= sd
->owner_len
;
951 if ((sd
->group_len
> FIELD_OFFSET(SID
, SubAuthority
[255])) || (offset
+ sd
->group_len
> size
))
954 dump_inline_sid( ",group=", (const SID
*)((const char *)sd
+ offset
), sd
->group_len
);
956 fprintf( stderr
, ",group=<not present>" );
957 offset
+= sd
->group_len
;
958 if ((sd
->sacl_len
>= MAX_ACL_LEN
) || (offset
+ sd
->sacl_len
> size
))
960 dump_inline_acl( ",sacl=", (const ACL
*)((const char *)sd
+ offset
), sd
->sacl_len
);
961 offset
+= sd
->sacl_len
;
962 if ((sd
->dacl_len
>= MAX_ACL_LEN
) || (offset
+ sd
->dacl_len
> size
))
964 dump_inline_acl( ",dacl=", (const ACL
*)((const char *)sd
+ offset
), sd
->dacl_len
);
965 offset
+= sd
->dacl_len
;
967 fputc( '}', stderr
);
970 static void dump_varargs_security_descriptor( const char *prefix
, data_size_t size
)
972 const struct security_descriptor
*sd
= cur_data
;
973 dump_inline_security_descriptor( prefix
, sd
, size
);
977 static void dump_varargs_token_groups( const char *prefix
, data_size_t size
)
979 const struct token_groups
*tg
= cur_data
;
981 fprintf( stderr
,"%s{", prefix
);
982 if (size
>= sizeof(struct token_groups
))
984 size_t offset
= sizeof(*tg
);
985 fprintf( stderr
, "count=%08x,", tg
->count
);
986 if (tg
->count
* sizeof(unsigned int) <= size
)
989 const unsigned int *attr
= (const unsigned int *)(tg
+ 1);
991 offset
+= tg
->count
* sizeof(unsigned int);
993 fputc( '[', stderr
);
994 for (i
= 0; i
< tg
->count
; i
++)
996 const SID
*sid
= (const SID
*)((const char *)cur_data
+ offset
);
998 fputc( ',', stderr
);
999 fputc( '{', stderr
);
1000 fprintf( stderr
, "attributes=%08x", attr
[i
] );
1001 dump_inline_sid( ",sid=", sid
, size
- offset
);
1002 if ((offset
+ FIELD_OFFSET(SID
, SubAuthority
[0]) > size
) ||
1003 (offset
+ FIELD_OFFSET(SID
, SubAuthority
[sid
->SubAuthorityCount
]) > size
))
1005 offset
+= FIELD_OFFSET(SID
, SubAuthority
[sid
->SubAuthorityCount
]);
1006 fputc( '}', stderr
);
1008 fputc( ']', stderr
);
1011 fputc( '}', stderr
);
1014 static void dump_varargs_object_attributes( const char *prefix
, data_size_t size
)
1016 const struct object_attributes
*objattr
= cur_data
;
1018 fprintf( stderr
,"%s{", prefix
);
1019 if (size
>= sizeof(struct object_attributes
))
1022 fprintf( stderr
, "rootdir=%04x", objattr
->rootdir
);
1023 if (objattr
->sd_len
> size
- sizeof(*objattr
) ||
1024 objattr
->name_len
> size
- sizeof(*objattr
) - objattr
->sd_len
)
1026 dump_inline_security_descriptor( ",sd=", (const struct security_descriptor
*)(objattr
+ 1), objattr
->sd_len
);
1027 str
= (const WCHAR
*)objattr
+ (sizeof(*objattr
) + objattr
->sd_len
) / sizeof(WCHAR
);
1028 fprintf( stderr
, ",name=L\"" );
1029 dump_strW( str
, objattr
->name_len
/ sizeof(WCHAR
), stderr
, "\"\"" );
1030 fputc( '\"', stderr
);
1031 remove_data( ((sizeof(*objattr
) + objattr
->sd_len
) / sizeof(WCHAR
)) * sizeof(WCHAR
) +
1032 objattr
->name_len
);
1034 fputc( '}', stderr
);
1037 static void dump_varargs_filesystem_event( const char *prefix
, data_size_t size
)
1039 static const char * const actions
[] = {
1051 fprintf( stderr
,"%s{", prefix
);
1054 const struct filesystem_event
*event
= cur_data
;
1055 data_size_t len
= (offsetof( struct filesystem_event
, name
[event
->len
] ) + sizeof(int)-1)
1056 / sizeof(int) * sizeof(int);
1057 if (size
< len
) break;
1058 if (event
->action
< sizeof(actions
)/sizeof(actions
[0]) && actions
[event
->action
])
1059 fprintf( stderr
, "{action=%s", actions
[event
->action
] );
1061 fprintf( stderr
, "{action=%u", event
->action
);
1062 fprintf( stderr
, ",name=\"%.*s\"}", event
->len
, event
->name
);
1065 if (size
)fputc( ',', stderr
);
1067 fputc( '}', stderr
);
1070 static void dump_varargs_rawinput_devices(const char *prefix
, data_size_t size
)
1072 const struct rawinput_device
*device
;
1074 fprintf( stderr
, "%s{", prefix
);
1075 while (size
>= sizeof(*device
))
1078 fprintf( stderr
, "{usage_page=%04x,usage=%04x,flags=%08x,target=%08x}",
1079 device
->usage_page
, device
->usage
, device
->flags
, device
->target
);
1080 size
-= sizeof(*device
);
1081 remove_data( sizeof(*device
) );
1082 if (size
) fputc( ',', stderr
);
1084 fputc( '}', stderr
);
1087 typedef void (*dump_func
)( const void *req
);
1089 /* Everything below this line is generated automatically by tools/make_requests */
1090 /* ### make_requests begin ### */
1092 static void dump_new_process_request( const struct new_process_request
*req
)
1094 fprintf( stderr
, " inherit_all=%d", req
->inherit_all
);
1095 fprintf( stderr
, ", create_flags=%08x", req
->create_flags
);
1096 fprintf( stderr
, ", socket_fd=%d", req
->socket_fd
);
1097 fprintf( stderr
, ", exe_file=%04x", req
->exe_file
);
1098 fprintf( stderr
, ", process_access=%08x", req
->process_access
);
1099 fprintf( stderr
, ", process_attr=%08x", req
->process_attr
);
1100 fprintf( stderr
, ", thread_access=%08x", req
->thread_access
);
1101 fprintf( stderr
, ", thread_attr=%08x", req
->thread_attr
);
1102 dump_cpu_type( ", cpu=", &req
->cpu
);
1103 fprintf( stderr
, ", info_size=%u", req
->info_size
);
1104 dump_varargs_startup_info( ", info=", min(cur_size
,req
->info_size
) );
1105 dump_varargs_unicode_str( ", env=", cur_size
);
1108 static void dump_new_process_reply( const struct new_process_reply
*req
)
1110 fprintf( stderr
, " info=%04x", req
->info
);
1111 fprintf( stderr
, ", pid=%04x", req
->pid
);
1112 fprintf( stderr
, ", phandle=%04x", req
->phandle
);
1113 fprintf( stderr
, ", tid=%04x", req
->tid
);
1114 fprintf( stderr
, ", thandle=%04x", req
->thandle
);
1117 static void dump_get_new_process_info_request( const struct get_new_process_info_request
*req
)
1119 fprintf( stderr
, " info=%04x", req
->info
);
1122 static void dump_get_new_process_info_reply( const struct get_new_process_info_reply
*req
)
1124 fprintf( stderr
, " success=%d", req
->success
);
1125 fprintf( stderr
, ", exit_code=%d", req
->exit_code
);
1128 static void dump_new_thread_request( const struct new_thread_request
*req
)
1130 fprintf( stderr
, " access=%08x", req
->access
);
1131 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1132 fprintf( stderr
, ", suspend=%d", req
->suspend
);
1133 fprintf( stderr
, ", request_fd=%d", req
->request_fd
);
1136 static void dump_new_thread_reply( const struct new_thread_reply
*req
)
1138 fprintf( stderr
, " tid=%04x", req
->tid
);
1139 fprintf( stderr
, ", handle=%04x", req
->handle
);
1142 static void dump_get_startup_info_request( const struct get_startup_info_request
*req
)
1146 static void dump_get_startup_info_reply( const struct get_startup_info_reply
*req
)
1148 fprintf( stderr
, " exe_file=%04x", req
->exe_file
);
1149 fprintf( stderr
, ", info_size=%u", req
->info_size
);
1150 dump_varargs_startup_info( ", info=", min(cur_size
,req
->info_size
) );
1151 dump_varargs_unicode_str( ", env=", cur_size
);
1154 static void dump_init_process_done_request( const struct init_process_done_request
*req
)
1156 fprintf( stderr
, " gui=%d", req
->gui
);
1157 dump_uint64( ", module=", &req
->module
);
1158 dump_uint64( ", ldt_copy=", &req
->ldt_copy
);
1159 dump_uint64( ", entry=", &req
->entry
);
1162 static void dump_init_thread_request( const struct init_thread_request
*req
)
1164 fprintf( stderr
, " unix_pid=%d", req
->unix_pid
);
1165 fprintf( stderr
, ", unix_tid=%d", req
->unix_tid
);
1166 fprintf( stderr
, ", debug_level=%d", req
->debug_level
);
1167 dump_uint64( ", teb=", &req
->teb
);
1168 dump_uint64( ", entry=", &req
->entry
);
1169 fprintf( stderr
, ", reply_fd=%d", req
->reply_fd
);
1170 fprintf( stderr
, ", wait_fd=%d", req
->wait_fd
);
1171 dump_cpu_type( ", cpu=", &req
->cpu
);
1174 static void dump_init_thread_reply( const struct init_thread_reply
*req
)
1176 fprintf( stderr
, " pid=%04x", req
->pid
);
1177 fprintf( stderr
, ", tid=%04x", req
->tid
);
1178 dump_timeout( ", server_start=", &req
->server_start
);
1179 fprintf( stderr
, ", info_size=%u", req
->info_size
);
1180 fprintf( stderr
, ", version=%d", req
->version
);
1181 fprintf( stderr
, ", all_cpus=%08x", req
->all_cpus
);
1184 static void dump_terminate_process_request( const struct terminate_process_request
*req
)
1186 fprintf( stderr
, " handle=%04x", req
->handle
);
1187 fprintf( stderr
, ", exit_code=%d", req
->exit_code
);
1190 static void dump_terminate_process_reply( const struct terminate_process_reply
*req
)
1192 fprintf( stderr
, " self=%d", req
->self
);
1195 static void dump_terminate_thread_request( const struct terminate_thread_request
*req
)
1197 fprintf( stderr
, " handle=%04x", req
->handle
);
1198 fprintf( stderr
, ", exit_code=%d", req
->exit_code
);
1201 static void dump_terminate_thread_reply( const struct terminate_thread_reply
*req
)
1203 fprintf( stderr
, " self=%d", req
->self
);
1204 fprintf( stderr
, ", last=%d", req
->last
);
1207 static void dump_get_process_info_request( const struct get_process_info_request
*req
)
1209 fprintf( stderr
, " handle=%04x", req
->handle
);
1212 static void dump_get_process_info_reply( const struct get_process_info_reply
*req
)
1214 fprintf( stderr
, " pid=%04x", req
->pid
);
1215 fprintf( stderr
, ", ppid=%04x", req
->ppid
);
1216 dump_uint64( ", affinity=", &req
->affinity
);
1217 dump_uint64( ", peb=", &req
->peb
);
1218 dump_timeout( ", start_time=", &req
->start_time
);
1219 dump_timeout( ", end_time=", &req
->end_time
);
1220 fprintf( stderr
, ", exit_code=%d", req
->exit_code
);
1221 fprintf( stderr
, ", priority=%d", req
->priority
);
1222 dump_cpu_type( ", cpu=", &req
->cpu
);
1223 fprintf( stderr
, ", debugger_present=%d", req
->debugger_present
);
1226 static void dump_set_process_info_request( const struct set_process_info_request
*req
)
1228 fprintf( stderr
, " handle=%04x", req
->handle
);
1229 fprintf( stderr
, ", mask=%d", req
->mask
);
1230 fprintf( stderr
, ", priority=%d", req
->priority
);
1231 dump_uint64( ", affinity=", &req
->affinity
);
1234 static void dump_get_thread_info_request( const struct get_thread_info_request
*req
)
1236 fprintf( stderr
, " handle=%04x", req
->handle
);
1237 fprintf( stderr
, ", tid_in=%04x", req
->tid_in
);
1240 static void dump_get_thread_info_reply( const struct get_thread_info_reply
*req
)
1242 fprintf( stderr
, " pid=%04x", req
->pid
);
1243 fprintf( stderr
, ", tid=%04x", req
->tid
);
1244 dump_uint64( ", teb=", &req
->teb
);
1245 dump_uint64( ", affinity=", &req
->affinity
);
1246 dump_timeout( ", creation_time=", &req
->creation_time
);
1247 dump_timeout( ", exit_time=", &req
->exit_time
);
1248 fprintf( stderr
, ", exit_code=%d", req
->exit_code
);
1249 fprintf( stderr
, ", priority=%d", req
->priority
);
1250 fprintf( stderr
, ", last=%d", req
->last
);
1253 static void dump_set_thread_info_request( const struct set_thread_info_request
*req
)
1255 fprintf( stderr
, " handle=%04x", req
->handle
);
1256 fprintf( stderr
, ", mask=%d", req
->mask
);
1257 fprintf( stderr
, ", priority=%d", req
->priority
);
1258 dump_uint64( ", affinity=", &req
->affinity
);
1259 fprintf( stderr
, ", token=%04x", req
->token
);
1262 static void dump_get_dll_info_request( const struct get_dll_info_request
*req
)
1264 fprintf( stderr
, " handle=%04x", req
->handle
);
1265 dump_uint64( ", base_address=", &req
->base_address
);
1268 static void dump_get_dll_info_reply( const struct get_dll_info_reply
*req
)
1270 dump_uint64( " entry_point=", &req
->entry_point
);
1271 fprintf( stderr
, ", size=%u", req
->size
);
1272 fprintf( stderr
, ", filename_len=%u", req
->filename_len
);
1273 dump_varargs_unicode_str( ", filename=", cur_size
);
1276 static void dump_suspend_thread_request( const struct suspend_thread_request
*req
)
1278 fprintf( stderr
, " handle=%04x", req
->handle
);
1281 static void dump_suspend_thread_reply( const struct suspend_thread_reply
*req
)
1283 fprintf( stderr
, " count=%d", req
->count
);
1286 static void dump_resume_thread_request( const struct resume_thread_request
*req
)
1288 fprintf( stderr
, " handle=%04x", req
->handle
);
1291 static void dump_resume_thread_reply( const struct resume_thread_reply
*req
)
1293 fprintf( stderr
, " count=%d", req
->count
);
1296 static void dump_load_dll_request( const struct load_dll_request
*req
)
1298 fprintf( stderr
, " mapping=%04x", req
->mapping
);
1299 dump_uint64( ", base=", &req
->base
);
1300 dump_uint64( ", name=", &req
->name
);
1301 fprintf( stderr
, ", size=%u", req
->size
);
1302 fprintf( stderr
, ", dbg_offset=%d", req
->dbg_offset
);
1303 fprintf( stderr
, ", dbg_size=%d", req
->dbg_size
);
1304 dump_varargs_unicode_str( ", filename=", cur_size
);
1307 static void dump_unload_dll_request( const struct unload_dll_request
*req
)
1309 dump_uint64( " base=", &req
->base
);
1312 static void dump_queue_apc_request( const struct queue_apc_request
*req
)
1314 fprintf( stderr
, " handle=%04x", req
->handle
);
1315 dump_apc_call( ", call=", &req
->call
);
1318 static void dump_queue_apc_reply( const struct queue_apc_reply
*req
)
1320 fprintf( stderr
, " handle=%04x", req
->handle
);
1321 fprintf( stderr
, ", self=%d", req
->self
);
1324 static void dump_get_apc_result_request( const struct get_apc_result_request
*req
)
1326 fprintf( stderr
, " handle=%04x", req
->handle
);
1329 static void dump_get_apc_result_reply( const struct get_apc_result_reply
*req
)
1331 dump_apc_result( " result=", &req
->result
);
1334 static void dump_close_handle_request( const struct close_handle_request
*req
)
1336 fprintf( stderr
, " handle=%04x", req
->handle
);
1339 static void dump_set_handle_info_request( const struct set_handle_info_request
*req
)
1341 fprintf( stderr
, " handle=%04x", req
->handle
);
1342 fprintf( stderr
, ", flags=%d", req
->flags
);
1343 fprintf( stderr
, ", mask=%d", req
->mask
);
1346 static void dump_set_handle_info_reply( const struct set_handle_info_reply
*req
)
1348 fprintf( stderr
, " old_flags=%d", req
->old_flags
);
1351 static void dump_dup_handle_request( const struct dup_handle_request
*req
)
1353 fprintf( stderr
, " src_process=%04x", req
->src_process
);
1354 fprintf( stderr
, ", src_handle=%04x", req
->src_handle
);
1355 fprintf( stderr
, ", dst_process=%04x", req
->dst_process
);
1356 fprintf( stderr
, ", access=%08x", req
->access
);
1357 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1358 fprintf( stderr
, ", options=%08x", req
->options
);
1361 static void dump_dup_handle_reply( const struct dup_handle_reply
*req
)
1363 fprintf( stderr
, " handle=%04x", req
->handle
);
1364 fprintf( stderr
, ", self=%d", req
->self
);
1365 fprintf( stderr
, ", closed=%d", req
->closed
);
1368 static void dump_open_process_request( const struct open_process_request
*req
)
1370 fprintf( stderr
, " pid=%04x", req
->pid
);
1371 fprintf( stderr
, ", access=%08x", req
->access
);
1372 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1375 static void dump_open_process_reply( const struct open_process_reply
*req
)
1377 fprintf( stderr
, " handle=%04x", req
->handle
);
1380 static void dump_open_thread_request( const struct open_thread_request
*req
)
1382 fprintf( stderr
, " tid=%04x", req
->tid
);
1383 fprintf( stderr
, ", access=%08x", req
->access
);
1384 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1387 static void dump_open_thread_reply( const struct open_thread_reply
*req
)
1389 fprintf( stderr
, " handle=%04x", req
->handle
);
1392 static void dump_select_request( const struct select_request
*req
)
1394 fprintf( stderr
, " flags=%d", req
->flags
);
1395 dump_uint64( ", cookie=", &req
->cookie
);
1396 dump_timeout( ", timeout=", &req
->timeout
);
1397 fprintf( stderr
, ", prev_apc=%04x", req
->prev_apc
);
1398 dump_varargs_apc_result( ", result=", cur_size
);
1399 dump_varargs_select_op( ", data=", cur_size
);
1402 static void dump_select_reply( const struct select_reply
*req
)
1404 dump_timeout( " timeout=", &req
->timeout
);
1405 dump_apc_call( ", call=", &req
->call
);
1406 fprintf( stderr
, ", apc_handle=%04x", req
->apc_handle
);
1409 static void dump_create_event_request( const struct create_event_request
*req
)
1411 fprintf( stderr
, " access=%08x", req
->access
);
1412 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1413 fprintf( stderr
, ", manual_reset=%d", req
->manual_reset
);
1414 fprintf( stderr
, ", initial_state=%d", req
->initial_state
);
1415 dump_varargs_object_attributes( ", objattr=", cur_size
);
1418 static void dump_create_event_reply( const struct create_event_reply
*req
)
1420 fprintf( stderr
, " handle=%04x", req
->handle
);
1423 static void dump_event_op_request( const struct event_op_request
*req
)
1425 fprintf( stderr
, " handle=%04x", req
->handle
);
1426 fprintf( stderr
, ", op=%d", req
->op
);
1429 static void dump_query_event_request( const struct query_event_request
*req
)
1431 fprintf( stderr
, " handle=%04x", req
->handle
);
1434 static void dump_query_event_reply( const struct query_event_reply
*req
)
1436 fprintf( stderr
, " manual_reset=%d", req
->manual_reset
);
1437 fprintf( stderr
, ", state=%d", req
->state
);
1440 static void dump_open_event_request( const struct open_event_request
*req
)
1442 fprintf( stderr
, " access=%08x", req
->access
);
1443 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1444 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
1445 dump_varargs_unicode_str( ", name=", cur_size
);
1448 static void dump_open_event_reply( const struct open_event_reply
*req
)
1450 fprintf( stderr
, " handle=%04x", req
->handle
);
1453 static void dump_create_keyed_event_request( const struct create_keyed_event_request
*req
)
1455 fprintf( stderr
, " access=%08x", req
->access
);
1456 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1457 dump_varargs_object_attributes( ", objattr=", cur_size
);
1460 static void dump_create_keyed_event_reply( const struct create_keyed_event_reply
*req
)
1462 fprintf( stderr
, " handle=%04x", req
->handle
);
1465 static void dump_open_keyed_event_request( const struct open_keyed_event_request
*req
)
1467 fprintf( stderr
, " access=%08x", req
->access
);
1468 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1469 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
1470 dump_varargs_unicode_str( ", name=", cur_size
);
1473 static void dump_open_keyed_event_reply( const struct open_keyed_event_reply
*req
)
1475 fprintf( stderr
, " handle=%04x", req
->handle
);
1478 static void dump_create_mutex_request( const struct create_mutex_request
*req
)
1480 fprintf( stderr
, " access=%08x", req
->access
);
1481 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1482 fprintf( stderr
, ", owned=%d", req
->owned
);
1483 dump_varargs_object_attributes( ", objattr=", cur_size
);
1486 static void dump_create_mutex_reply( const struct create_mutex_reply
*req
)
1488 fprintf( stderr
, " handle=%04x", req
->handle
);
1491 static void dump_release_mutex_request( const struct release_mutex_request
*req
)
1493 fprintf( stderr
, " handle=%04x", req
->handle
);
1496 static void dump_release_mutex_reply( const struct release_mutex_reply
*req
)
1498 fprintf( stderr
, " prev_count=%08x", req
->prev_count
);
1501 static void dump_open_mutex_request( const struct open_mutex_request
*req
)
1503 fprintf( stderr
, " access=%08x", req
->access
);
1504 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1505 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
1506 dump_varargs_unicode_str( ", name=", cur_size
);
1509 static void dump_open_mutex_reply( const struct open_mutex_reply
*req
)
1511 fprintf( stderr
, " handle=%04x", req
->handle
);
1514 static void dump_create_semaphore_request( const struct create_semaphore_request
*req
)
1516 fprintf( stderr
, " access=%08x", req
->access
);
1517 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1518 fprintf( stderr
, ", initial=%08x", req
->initial
);
1519 fprintf( stderr
, ", max=%08x", req
->max
);
1520 dump_varargs_object_attributes( ", objattr=", cur_size
);
1523 static void dump_create_semaphore_reply( const struct create_semaphore_reply
*req
)
1525 fprintf( stderr
, " handle=%04x", req
->handle
);
1528 static void dump_release_semaphore_request( const struct release_semaphore_request
*req
)
1530 fprintf( stderr
, " handle=%04x", req
->handle
);
1531 fprintf( stderr
, ", count=%08x", req
->count
);
1534 static void dump_release_semaphore_reply( const struct release_semaphore_reply
*req
)
1536 fprintf( stderr
, " prev_count=%08x", req
->prev_count
);
1539 static void dump_query_semaphore_request( const struct query_semaphore_request
*req
)
1541 fprintf( stderr
, " handle=%04x", req
->handle
);
1544 static void dump_query_semaphore_reply( const struct query_semaphore_reply
*req
)
1546 fprintf( stderr
, " current=%08x", req
->current
);
1547 fprintf( stderr
, ", max=%08x", req
->max
);
1550 static void dump_open_semaphore_request( const struct open_semaphore_request
*req
)
1552 fprintf( stderr
, " access=%08x", req
->access
);
1553 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1554 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
1555 dump_varargs_unicode_str( ", name=", cur_size
);
1558 static void dump_open_semaphore_reply( const struct open_semaphore_reply
*req
)
1560 fprintf( stderr
, " handle=%04x", req
->handle
);
1563 static void dump_create_file_request( const struct create_file_request
*req
)
1565 fprintf( stderr
, " access=%08x", req
->access
);
1566 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1567 fprintf( stderr
, ", sharing=%08x", req
->sharing
);
1568 fprintf( stderr
, ", create=%d", req
->create
);
1569 fprintf( stderr
, ", options=%08x", req
->options
);
1570 fprintf( stderr
, ", attrs=%08x", req
->attrs
);
1571 dump_varargs_object_attributes( ", objattr=", cur_size
);
1572 dump_varargs_string( ", filename=", cur_size
);
1575 static void dump_create_file_reply( const struct create_file_reply
*req
)
1577 fprintf( stderr
, " handle=%04x", req
->handle
);
1580 static void dump_open_file_object_request( const struct open_file_object_request
*req
)
1582 fprintf( stderr
, " access=%08x", req
->access
);
1583 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1584 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
1585 fprintf( stderr
, ", sharing=%08x", req
->sharing
);
1586 fprintf( stderr
, ", options=%08x", req
->options
);
1587 dump_varargs_unicode_str( ", filename=", cur_size
);
1590 static void dump_open_file_object_reply( const struct open_file_object_reply
*req
)
1592 fprintf( stderr
, " handle=%04x", req
->handle
);
1595 static void dump_alloc_file_handle_request( const struct alloc_file_handle_request
*req
)
1597 fprintf( stderr
, " access=%08x", req
->access
);
1598 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1599 fprintf( stderr
, ", fd=%d", req
->fd
);
1602 static void dump_alloc_file_handle_reply( const struct alloc_file_handle_reply
*req
)
1604 fprintf( stderr
, " handle=%04x", req
->handle
);
1607 static void dump_get_handle_unix_name_request( const struct get_handle_unix_name_request
*req
)
1609 fprintf( stderr
, " handle=%04x", req
->handle
);
1612 static void dump_get_handle_unix_name_reply( const struct get_handle_unix_name_reply
*req
)
1614 fprintf( stderr
, " name_len=%u", req
->name_len
);
1615 dump_varargs_string( ", name=", cur_size
);
1618 static void dump_get_handle_fd_request( const struct get_handle_fd_request
*req
)
1620 fprintf( stderr
, " handle=%04x", req
->handle
);
1623 static void dump_get_handle_fd_reply( const struct get_handle_fd_reply
*req
)
1625 fprintf( stderr
, " type=%d", req
->type
);
1626 fprintf( stderr
, ", cacheable=%d", req
->cacheable
);
1627 fprintf( stderr
, ", access=%08x", req
->access
);
1628 fprintf( stderr
, ", options=%08x", req
->options
);
1631 static void dump_flush_file_request( const struct flush_file_request
*req
)
1633 fprintf( stderr
, " handle=%04x", req
->handle
);
1636 static void dump_flush_file_reply( const struct flush_file_reply
*req
)
1638 fprintf( stderr
, " event=%04x", req
->event
);
1641 static void dump_lock_file_request( const struct lock_file_request
*req
)
1643 fprintf( stderr
, " handle=%04x", req
->handle
);
1644 dump_uint64( ", offset=", &req
->offset
);
1645 dump_uint64( ", count=", &req
->count
);
1646 fprintf( stderr
, ", shared=%d", req
->shared
);
1647 fprintf( stderr
, ", wait=%d", req
->wait
);
1650 static void dump_lock_file_reply( const struct lock_file_reply
*req
)
1652 fprintf( stderr
, " handle=%04x", req
->handle
);
1653 fprintf( stderr
, ", overlapped=%d", req
->overlapped
);
1656 static void dump_unlock_file_request( const struct unlock_file_request
*req
)
1658 fprintf( stderr
, " handle=%04x", req
->handle
);
1659 dump_uint64( ", offset=", &req
->offset
);
1660 dump_uint64( ", count=", &req
->count
);
1663 static void dump_create_socket_request( const struct create_socket_request
*req
)
1665 fprintf( stderr
, " access=%08x", req
->access
);
1666 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1667 fprintf( stderr
, ", family=%d", req
->family
);
1668 fprintf( stderr
, ", type=%d", req
->type
);
1669 fprintf( stderr
, ", protocol=%d", req
->protocol
);
1670 fprintf( stderr
, ", flags=%08x", req
->flags
);
1673 static void dump_create_socket_reply( const struct create_socket_reply
*req
)
1675 fprintf( stderr
, " handle=%04x", req
->handle
);
1678 static void dump_accept_socket_request( const struct accept_socket_request
*req
)
1680 fprintf( stderr
, " lhandle=%04x", req
->lhandle
);
1681 fprintf( stderr
, ", access=%08x", req
->access
);
1682 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1685 static void dump_accept_socket_reply( const struct accept_socket_reply
*req
)
1687 fprintf( stderr
, " handle=%04x", req
->handle
);
1690 static void dump_accept_into_socket_request( const struct accept_into_socket_request
*req
)
1692 fprintf( stderr
, " lhandle=%04x", req
->lhandle
);
1693 fprintf( stderr
, ", ahandle=%04x", req
->ahandle
);
1696 static void dump_set_socket_event_request( const struct set_socket_event_request
*req
)
1698 fprintf( stderr
, " handle=%04x", req
->handle
);
1699 fprintf( stderr
, ", mask=%08x", req
->mask
);
1700 fprintf( stderr
, ", event=%04x", req
->event
);
1701 fprintf( stderr
, ", window=%08x", req
->window
);
1702 fprintf( stderr
, ", msg=%08x", req
->msg
);
1705 static void dump_get_socket_event_request( const struct get_socket_event_request
*req
)
1707 fprintf( stderr
, " handle=%04x", req
->handle
);
1708 fprintf( stderr
, ", service=%d", req
->service
);
1709 fprintf( stderr
, ", c_event=%04x", req
->c_event
);
1712 static void dump_get_socket_event_reply( const struct get_socket_event_reply
*req
)
1714 fprintf( stderr
, " mask=%08x", req
->mask
);
1715 fprintf( stderr
, ", pmask=%08x", req
->pmask
);
1716 fprintf( stderr
, ", state=%08x", req
->state
);
1717 dump_varargs_ints( ", errors=", cur_size
);
1720 static void dump_get_socket_info_request( const struct get_socket_info_request
*req
)
1722 fprintf( stderr
, " handle=%04x", req
->handle
);
1725 static void dump_get_socket_info_reply( const struct get_socket_info_reply
*req
)
1727 fprintf( stderr
, " family=%d", req
->family
);
1728 fprintf( stderr
, ", type=%d", req
->type
);
1729 fprintf( stderr
, ", protocol=%d", req
->protocol
);
1732 static void dump_enable_socket_event_request( const struct enable_socket_event_request
*req
)
1734 fprintf( stderr
, " handle=%04x", req
->handle
);
1735 fprintf( stderr
, ", mask=%08x", req
->mask
);
1736 fprintf( stderr
, ", sstate=%08x", req
->sstate
);
1737 fprintf( stderr
, ", cstate=%08x", req
->cstate
);
1740 static void dump_set_socket_deferred_request( const struct set_socket_deferred_request
*req
)
1742 fprintf( stderr
, " handle=%04x", req
->handle
);
1743 fprintf( stderr
, ", deferred=%04x", req
->deferred
);
1746 static void dump_alloc_console_request( const struct alloc_console_request
*req
)
1748 fprintf( stderr
, " access=%08x", req
->access
);
1749 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1750 fprintf( stderr
, ", pid=%04x", req
->pid
);
1751 fprintf( stderr
, ", input_fd=%d", req
->input_fd
);
1754 static void dump_alloc_console_reply( const struct alloc_console_reply
*req
)
1756 fprintf( stderr
, " handle_in=%04x", req
->handle_in
);
1757 fprintf( stderr
, ", event=%04x", req
->event
);
1760 static void dump_free_console_request( const struct free_console_request
*req
)
1764 static void dump_get_console_renderer_events_request( const struct get_console_renderer_events_request
*req
)
1766 fprintf( stderr
, " handle=%04x", req
->handle
);
1769 static void dump_get_console_renderer_events_reply( const struct get_console_renderer_events_reply
*req
)
1771 dump_varargs_bytes( " data=", cur_size
);
1774 static void dump_open_console_request( const struct open_console_request
*req
)
1776 fprintf( stderr
, " from=%04x", req
->from
);
1777 fprintf( stderr
, ", access=%08x", req
->access
);
1778 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1779 fprintf( stderr
, ", share=%d", req
->share
);
1782 static void dump_open_console_reply( const struct open_console_reply
*req
)
1784 fprintf( stderr
, " handle=%04x", req
->handle
);
1787 static void dump_get_console_wait_event_request( const struct get_console_wait_event_request
*req
)
1791 static void dump_get_console_wait_event_reply( const struct get_console_wait_event_reply
*req
)
1793 fprintf( stderr
, " handle=%04x", req
->handle
);
1796 static void dump_get_console_mode_request( const struct get_console_mode_request
*req
)
1798 fprintf( stderr
, " handle=%04x", req
->handle
);
1801 static void dump_get_console_mode_reply( const struct get_console_mode_reply
*req
)
1803 fprintf( stderr
, " mode=%d", req
->mode
);
1806 static void dump_set_console_mode_request( const struct set_console_mode_request
*req
)
1808 fprintf( stderr
, " handle=%04x", req
->handle
);
1809 fprintf( stderr
, ", mode=%d", req
->mode
);
1812 static void dump_set_console_input_info_request( const struct set_console_input_info_request
*req
)
1814 fprintf( stderr
, " handle=%04x", req
->handle
);
1815 fprintf( stderr
, ", mask=%d", req
->mask
);
1816 fprintf( stderr
, ", active_sb=%04x", req
->active_sb
);
1817 fprintf( stderr
, ", history_mode=%d", req
->history_mode
);
1818 fprintf( stderr
, ", history_size=%d", req
->history_size
);
1819 fprintf( stderr
, ", edition_mode=%d", req
->edition_mode
);
1820 fprintf( stderr
, ", input_cp=%d", req
->input_cp
);
1821 fprintf( stderr
, ", output_cp=%d", req
->output_cp
);
1822 fprintf( stderr
, ", win=%08x", req
->win
);
1823 dump_varargs_unicode_str( ", title=", cur_size
);
1826 static void dump_get_console_input_info_request( const struct get_console_input_info_request
*req
)
1828 fprintf( stderr
, " handle=%04x", req
->handle
);
1831 static void dump_get_console_input_info_reply( const struct get_console_input_info_reply
*req
)
1833 fprintf( stderr
, " history_mode=%d", req
->history_mode
);
1834 fprintf( stderr
, ", history_size=%d", req
->history_size
);
1835 fprintf( stderr
, ", history_index=%d", req
->history_index
);
1836 fprintf( stderr
, ", edition_mode=%d", req
->edition_mode
);
1837 fprintf( stderr
, ", input_cp=%d", req
->input_cp
);
1838 fprintf( stderr
, ", output_cp=%d", req
->output_cp
);
1839 fprintf( stderr
, ", win=%08x", req
->win
);
1840 dump_varargs_unicode_str( ", title=", cur_size
);
1843 static void dump_append_console_input_history_request( const struct append_console_input_history_request
*req
)
1845 fprintf( stderr
, " handle=%04x", req
->handle
);
1846 dump_varargs_unicode_str( ", line=", cur_size
);
1849 static void dump_get_console_input_history_request( const struct get_console_input_history_request
*req
)
1851 fprintf( stderr
, " handle=%04x", req
->handle
);
1852 fprintf( stderr
, ", index=%d", req
->index
);
1855 static void dump_get_console_input_history_reply( const struct get_console_input_history_reply
*req
)
1857 fprintf( stderr
, " total=%d", req
->total
);
1858 dump_varargs_unicode_str( ", line=", cur_size
);
1861 static void dump_create_console_output_request( const struct create_console_output_request
*req
)
1863 fprintf( stderr
, " handle_in=%04x", req
->handle_in
);
1864 fprintf( stderr
, ", access=%08x", req
->access
);
1865 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1866 fprintf( stderr
, ", share=%08x", req
->share
);
1867 fprintf( stderr
, ", fd=%d", req
->fd
);
1870 static void dump_create_console_output_reply( const struct create_console_output_reply
*req
)
1872 fprintf( stderr
, " handle_out=%04x", req
->handle_out
);
1875 static void dump_set_console_output_info_request( const struct set_console_output_info_request
*req
)
1877 fprintf( stderr
, " handle=%04x", req
->handle
);
1878 fprintf( stderr
, ", mask=%d", req
->mask
);
1879 fprintf( stderr
, ", cursor_size=%d", req
->cursor_size
);
1880 fprintf( stderr
, ", cursor_visible=%d", req
->cursor_visible
);
1881 fprintf( stderr
, ", cursor_x=%d", req
->cursor_x
);
1882 fprintf( stderr
, ", cursor_y=%d", req
->cursor_y
);
1883 fprintf( stderr
, ", width=%d", req
->width
);
1884 fprintf( stderr
, ", height=%d", req
->height
);
1885 fprintf( stderr
, ", attr=%d", req
->attr
);
1886 fprintf( stderr
, ", win_left=%d", req
->win_left
);
1887 fprintf( stderr
, ", win_top=%d", req
->win_top
);
1888 fprintf( stderr
, ", win_right=%d", req
->win_right
);
1889 fprintf( stderr
, ", win_bottom=%d", req
->win_bottom
);
1890 fprintf( stderr
, ", max_width=%d", req
->max_width
);
1891 fprintf( stderr
, ", max_height=%d", req
->max_height
);
1894 static void dump_get_console_output_info_request( const struct get_console_output_info_request
*req
)
1896 fprintf( stderr
, " handle=%04x", req
->handle
);
1899 static void dump_get_console_output_info_reply( const struct get_console_output_info_reply
*req
)
1901 fprintf( stderr
, " cursor_size=%d", req
->cursor_size
);
1902 fprintf( stderr
, ", cursor_visible=%d", req
->cursor_visible
);
1903 fprintf( stderr
, ", cursor_x=%d", req
->cursor_x
);
1904 fprintf( stderr
, ", cursor_y=%d", req
->cursor_y
);
1905 fprintf( stderr
, ", width=%d", req
->width
);
1906 fprintf( stderr
, ", height=%d", req
->height
);
1907 fprintf( stderr
, ", attr=%d", req
->attr
);
1908 fprintf( stderr
, ", win_left=%d", req
->win_left
);
1909 fprintf( stderr
, ", win_top=%d", req
->win_top
);
1910 fprintf( stderr
, ", win_right=%d", req
->win_right
);
1911 fprintf( stderr
, ", win_bottom=%d", req
->win_bottom
);
1912 fprintf( stderr
, ", max_width=%d", req
->max_width
);
1913 fprintf( stderr
, ", max_height=%d", req
->max_height
);
1916 static void dump_write_console_input_request( const struct write_console_input_request
*req
)
1918 fprintf( stderr
, " handle=%04x", req
->handle
);
1919 dump_varargs_input_records( ", rec=", cur_size
);
1922 static void dump_write_console_input_reply( const struct write_console_input_reply
*req
)
1924 fprintf( stderr
, " written=%d", req
->written
);
1927 static void dump_read_console_input_request( const struct read_console_input_request
*req
)
1929 fprintf( stderr
, " handle=%04x", req
->handle
);
1930 fprintf( stderr
, ", flush=%d", req
->flush
);
1933 static void dump_read_console_input_reply( const struct read_console_input_reply
*req
)
1935 fprintf( stderr
, " read=%d", req
->read
);
1936 dump_varargs_input_records( ", rec=", cur_size
);
1939 static void dump_write_console_output_request( const struct write_console_output_request
*req
)
1941 fprintf( stderr
, " handle=%04x", req
->handle
);
1942 fprintf( stderr
, ", x=%d", req
->x
);
1943 fprintf( stderr
, ", y=%d", req
->y
);
1944 fprintf( stderr
, ", mode=%d", req
->mode
);
1945 fprintf( stderr
, ", wrap=%d", req
->wrap
);
1946 dump_varargs_bytes( ", data=", cur_size
);
1949 static void dump_write_console_output_reply( const struct write_console_output_reply
*req
)
1951 fprintf( stderr
, " written=%d", req
->written
);
1952 fprintf( stderr
, ", width=%d", req
->width
);
1953 fprintf( stderr
, ", height=%d", req
->height
);
1956 static void dump_fill_console_output_request( const struct fill_console_output_request
*req
)
1958 fprintf( stderr
, " handle=%04x", req
->handle
);
1959 fprintf( stderr
, ", x=%d", req
->x
);
1960 fprintf( stderr
, ", y=%d", req
->y
);
1961 fprintf( stderr
, ", mode=%d", req
->mode
);
1962 fprintf( stderr
, ", count=%d", req
->count
);
1963 fprintf( stderr
, ", wrap=%d", req
->wrap
);
1964 dump_char_info( ", data=", &req
->data
);
1967 static void dump_fill_console_output_reply( const struct fill_console_output_reply
*req
)
1969 fprintf( stderr
, " written=%d", req
->written
);
1972 static void dump_read_console_output_request( const struct read_console_output_request
*req
)
1974 fprintf( stderr
, " handle=%04x", req
->handle
);
1975 fprintf( stderr
, ", x=%d", req
->x
);
1976 fprintf( stderr
, ", y=%d", req
->y
);
1977 fprintf( stderr
, ", mode=%d", req
->mode
);
1978 fprintf( stderr
, ", wrap=%d", req
->wrap
);
1981 static void dump_read_console_output_reply( const struct read_console_output_reply
*req
)
1983 fprintf( stderr
, " width=%d", req
->width
);
1984 fprintf( stderr
, ", height=%d", req
->height
);
1985 dump_varargs_bytes( ", data=", cur_size
);
1988 static void dump_move_console_output_request( const struct move_console_output_request
*req
)
1990 fprintf( stderr
, " handle=%04x", req
->handle
);
1991 fprintf( stderr
, ", x_src=%d", req
->x_src
);
1992 fprintf( stderr
, ", y_src=%d", req
->y_src
);
1993 fprintf( stderr
, ", x_dst=%d", req
->x_dst
);
1994 fprintf( stderr
, ", y_dst=%d", req
->y_dst
);
1995 fprintf( stderr
, ", w=%d", req
->w
);
1996 fprintf( stderr
, ", h=%d", req
->h
);
1999 static void dump_send_console_signal_request( const struct send_console_signal_request
*req
)
2001 fprintf( stderr
, " signal=%d", req
->signal
);
2002 fprintf( stderr
, ", group_id=%04x", req
->group_id
);
2005 static void dump_read_directory_changes_request( const struct read_directory_changes_request
*req
)
2007 fprintf( stderr
, " filter=%08x", req
->filter
);
2008 fprintf( stderr
, ", subtree=%d", req
->subtree
);
2009 fprintf( stderr
, ", want_data=%d", req
->want_data
);
2010 dump_async_data( ", async=", &req
->async
);
2013 static void dump_read_change_request( const struct read_change_request
*req
)
2015 fprintf( stderr
, " handle=%04x", req
->handle
);
2018 static void dump_read_change_reply( const struct read_change_reply
*req
)
2020 dump_varargs_filesystem_event( " events=", cur_size
);
2023 static void dump_create_mapping_request( const struct create_mapping_request
*req
)
2025 fprintf( stderr
, " access=%08x", req
->access
);
2026 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
2027 fprintf( stderr
, ", protect=%08x", req
->protect
);
2028 dump_uint64( ", size=", &req
->size
);
2029 fprintf( stderr
, ", file_handle=%04x", req
->file_handle
);
2030 dump_varargs_object_attributes( ", objattr=", cur_size
);
2033 static void dump_create_mapping_reply( const struct create_mapping_reply
*req
)
2035 fprintf( stderr
, " handle=%04x", req
->handle
);
2038 static void dump_open_mapping_request( const struct open_mapping_request
*req
)
2040 fprintf( stderr
, " access=%08x", req
->access
);
2041 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
2042 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
2043 dump_varargs_unicode_str( ", name=", cur_size
);
2046 static void dump_open_mapping_reply( const struct open_mapping_reply
*req
)
2048 fprintf( stderr
, " handle=%04x", req
->handle
);
2051 static void dump_get_mapping_info_request( const struct get_mapping_info_request
*req
)
2053 fprintf( stderr
, " handle=%04x", req
->handle
);
2054 fprintf( stderr
, ", access=%08x", req
->access
);
2057 static void dump_get_mapping_info_reply( const struct get_mapping_info_reply
*req
)
2059 dump_uint64( " size=", &req
->size
);
2060 fprintf( stderr
, ", protect=%d", req
->protect
);
2061 fprintf( stderr
, ", header_size=%d", req
->header_size
);
2062 dump_uint64( ", base=", &req
->base
);
2063 fprintf( stderr
, ", mapping=%04x", req
->mapping
);
2064 fprintf( stderr
, ", shared_file=%04x", req
->shared_file
);
2067 static void dump_get_mapping_committed_range_request( const struct get_mapping_committed_range_request
*req
)
2069 fprintf( stderr
, " handle=%04x", req
->handle
);
2070 dump_uint64( ", offset=", &req
->offset
);
2073 static void dump_get_mapping_committed_range_reply( const struct get_mapping_committed_range_reply
*req
)
2075 dump_uint64( " size=", &req
->size
);
2076 fprintf( stderr
, ", committed=%d", req
->committed
);
2079 static void dump_add_mapping_committed_range_request( const struct add_mapping_committed_range_request
*req
)
2081 fprintf( stderr
, " handle=%04x", req
->handle
);
2082 dump_uint64( ", offset=", &req
->offset
);
2083 dump_uint64( ", size=", &req
->size
);
2086 static void dump_create_snapshot_request( const struct create_snapshot_request
*req
)
2088 fprintf( stderr
, " attributes=%08x", req
->attributes
);
2089 fprintf( stderr
, ", flags=%08x", req
->flags
);
2092 static void dump_create_snapshot_reply( const struct create_snapshot_reply
*req
)
2094 fprintf( stderr
, " handle=%04x", req
->handle
);
2097 static void dump_next_process_request( const struct next_process_request
*req
)
2099 fprintf( stderr
, " handle=%04x", req
->handle
);
2100 fprintf( stderr
, ", reset=%d", req
->reset
);
2103 static void dump_next_process_reply( const struct next_process_reply
*req
)
2105 fprintf( stderr
, " count=%d", req
->count
);
2106 fprintf( stderr
, ", pid=%04x", req
->pid
);
2107 fprintf( stderr
, ", ppid=%04x", req
->ppid
);
2108 fprintf( stderr
, ", threads=%d", req
->threads
);
2109 fprintf( stderr
, ", priority=%d", req
->priority
);
2110 fprintf( stderr
, ", handles=%d", req
->handles
);
2111 fprintf( stderr
, ", unix_pid=%d", req
->unix_pid
);
2112 dump_varargs_unicode_str( ", filename=", cur_size
);
2115 static void dump_next_thread_request( const struct next_thread_request
*req
)
2117 fprintf( stderr
, " handle=%04x", req
->handle
);
2118 fprintf( stderr
, ", reset=%d", req
->reset
);
2121 static void dump_next_thread_reply( const struct next_thread_reply
*req
)
2123 fprintf( stderr
, " count=%d", req
->count
);
2124 fprintf( stderr
, ", pid=%04x", req
->pid
);
2125 fprintf( stderr
, ", tid=%04x", req
->tid
);
2126 fprintf( stderr
, ", base_pri=%d", req
->base_pri
);
2127 fprintf( stderr
, ", delta_pri=%d", req
->delta_pri
);
2130 static void dump_wait_debug_event_request( const struct wait_debug_event_request
*req
)
2132 fprintf( stderr
, " get_handle=%d", req
->get_handle
);
2135 static void dump_wait_debug_event_reply( const struct wait_debug_event_reply
*req
)
2137 fprintf( stderr
, " pid=%04x", req
->pid
);
2138 fprintf( stderr
, ", tid=%04x", req
->tid
);
2139 fprintf( stderr
, ", wait=%04x", req
->wait
);
2140 dump_varargs_debug_event( ", event=", cur_size
);
2143 static void dump_queue_exception_event_request( const struct queue_exception_event_request
*req
)
2145 fprintf( stderr
, " first=%d", req
->first
);
2146 fprintf( stderr
, ", code=%08x", req
->code
);
2147 fprintf( stderr
, ", flags=%08x", req
->flags
);
2148 dump_uint64( ", record=", &req
->record
);
2149 dump_uint64( ", address=", &req
->address
);
2150 fprintf( stderr
, ", len=%u", req
->len
);
2151 dump_varargs_uints64( ", params=", min(cur_size
,req
->len
) );
2152 dump_varargs_context( ", context=", cur_size
);
2155 static void dump_queue_exception_event_reply( const struct queue_exception_event_reply
*req
)
2157 fprintf( stderr
, " handle=%04x", req
->handle
);
2160 static void dump_get_exception_status_request( const struct get_exception_status_request
*req
)
2162 fprintf( stderr
, " handle=%04x", req
->handle
);
2165 static void dump_get_exception_status_reply( const struct get_exception_status_reply
*req
)
2167 dump_varargs_context( " context=", cur_size
);
2170 static void dump_continue_debug_event_request( const struct continue_debug_event_request
*req
)
2172 fprintf( stderr
, " pid=%04x", req
->pid
);
2173 fprintf( stderr
, ", tid=%04x", req
->tid
);
2174 fprintf( stderr
, ", status=%d", req
->status
);
2177 static void dump_debug_process_request( const struct debug_process_request
*req
)
2179 fprintf( stderr
, " pid=%04x", req
->pid
);
2180 fprintf( stderr
, ", attach=%d", req
->attach
);
2183 static void dump_debug_break_request( const struct debug_break_request
*req
)
2185 fprintf( stderr
, " handle=%04x", req
->handle
);
2188 static void dump_debug_break_reply( const struct debug_break_reply
*req
)
2190 fprintf( stderr
, " self=%d", req
->self
);
2193 static void dump_set_debugger_kill_on_exit_request( const struct set_debugger_kill_on_exit_request
*req
)
2195 fprintf( stderr
, " kill_on_exit=%d", req
->kill_on_exit
);
2198 static void dump_read_process_memory_request( const struct read_process_memory_request
*req
)
2200 fprintf( stderr
, " handle=%04x", req
->handle
);
2201 dump_uint64( ", addr=", &req
->addr
);
2204 static void dump_read_process_memory_reply( const struct read_process_memory_reply
*req
)
2206 dump_varargs_bytes( " data=", cur_size
);
2209 static void dump_write_process_memory_request( const struct write_process_memory_request
*req
)
2211 fprintf( stderr
, " handle=%04x", req
->handle
);
2212 dump_uint64( ", addr=", &req
->addr
);
2213 dump_varargs_bytes( ", data=", cur_size
);
2216 static void dump_create_key_request( const struct create_key_request
*req
)
2218 fprintf( stderr
, " parent=%04x", req
->parent
);
2219 fprintf( stderr
, ", access=%08x", req
->access
);
2220 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
2221 fprintf( stderr
, ", options=%08x", req
->options
);
2222 fprintf( stderr
, ", namelen=%u", req
->namelen
);
2223 dump_varargs_unicode_str( ", name=", min(cur_size
,req
->namelen
) );
2224 dump_varargs_unicode_str( ", class=", cur_size
);
2227 static void dump_create_key_reply( const struct create_key_reply
*req
)
2229 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2230 fprintf( stderr
, ", created=%d", req
->created
);
2233 static void dump_open_key_request( const struct open_key_request
*req
)
2235 fprintf( stderr
, " parent=%04x", req
->parent
);
2236 fprintf( stderr
, ", access=%08x", req
->access
);
2237 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
2238 dump_varargs_unicode_str( ", name=", cur_size
);
2241 static void dump_open_key_reply( const struct open_key_reply
*req
)
2243 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2246 static void dump_delete_key_request( const struct delete_key_request
*req
)
2248 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2251 static void dump_flush_key_request( const struct flush_key_request
*req
)
2253 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2256 static void dump_enum_key_request( const struct enum_key_request
*req
)
2258 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2259 fprintf( stderr
, ", index=%d", req
->index
);
2260 fprintf( stderr
, ", info_class=%d", req
->info_class
);
2263 static void dump_enum_key_reply( const struct enum_key_reply
*req
)
2265 fprintf( stderr
, " subkeys=%d", req
->subkeys
);
2266 fprintf( stderr
, ", max_subkey=%d", req
->max_subkey
);
2267 fprintf( stderr
, ", max_class=%d", req
->max_class
);
2268 fprintf( stderr
, ", values=%d", req
->values
);
2269 fprintf( stderr
, ", max_value=%d", req
->max_value
);
2270 fprintf( stderr
, ", max_data=%d", req
->max_data
);
2271 dump_timeout( ", modif=", &req
->modif
);
2272 fprintf( stderr
, ", total=%u", req
->total
);
2273 fprintf( stderr
, ", namelen=%u", req
->namelen
);
2274 dump_varargs_unicode_str( ", name=", min(cur_size
,req
->namelen
) );
2275 dump_varargs_unicode_str( ", class=", cur_size
);
2278 static void dump_set_key_value_request( const struct set_key_value_request
*req
)
2280 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2281 fprintf( stderr
, ", type=%d", req
->type
);
2282 fprintf( stderr
, ", namelen=%u", req
->namelen
);
2283 dump_varargs_unicode_str( ", name=", min(cur_size
,req
->namelen
) );
2284 dump_varargs_bytes( ", data=", cur_size
);
2287 static void dump_get_key_value_request( const struct get_key_value_request
*req
)
2289 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2290 dump_varargs_unicode_str( ", name=", cur_size
);
2293 static void dump_get_key_value_reply( const struct get_key_value_reply
*req
)
2295 fprintf( stderr
, " type=%d", req
->type
);
2296 fprintf( stderr
, ", total=%u", req
->total
);
2297 dump_varargs_bytes( ", data=", cur_size
);
2300 static void dump_enum_key_value_request( const struct enum_key_value_request
*req
)
2302 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2303 fprintf( stderr
, ", index=%d", req
->index
);
2304 fprintf( stderr
, ", info_class=%d", req
->info_class
);
2307 static void dump_enum_key_value_reply( const struct enum_key_value_reply
*req
)
2309 fprintf( stderr
, " type=%d", req
->type
);
2310 fprintf( stderr
, ", total=%u", req
->total
);
2311 fprintf( stderr
, ", namelen=%u", req
->namelen
);
2312 dump_varargs_unicode_str( ", name=", min(cur_size
,req
->namelen
) );
2313 dump_varargs_bytes( ", data=", cur_size
);
2316 static void dump_delete_key_value_request( const struct delete_key_value_request
*req
)
2318 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2319 dump_varargs_unicode_str( ", name=", cur_size
);
2322 static void dump_load_registry_request( const struct load_registry_request
*req
)
2324 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2325 fprintf( stderr
, ", file=%04x", req
->file
);
2326 dump_varargs_unicode_str( ", name=", cur_size
);
2329 static void dump_unload_registry_request( const struct unload_registry_request
*req
)
2331 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2334 static void dump_save_registry_request( const struct save_registry_request
*req
)
2336 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2337 fprintf( stderr
, ", file=%04x", req
->file
);
2340 static void dump_set_registry_notification_request( const struct set_registry_notification_request
*req
)
2342 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2343 fprintf( stderr
, ", event=%04x", req
->event
);
2344 fprintf( stderr
, ", subtree=%d", req
->subtree
);
2345 fprintf( stderr
, ", filter=%08x", req
->filter
);
2348 static void dump_create_timer_request( const struct create_timer_request
*req
)
2350 fprintf( stderr
, " access=%08x", req
->access
);
2351 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
2352 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
2353 fprintf( stderr
, ", manual=%d", req
->manual
);
2354 dump_varargs_unicode_str( ", name=", cur_size
);
2357 static void dump_create_timer_reply( const struct create_timer_reply
*req
)
2359 fprintf( stderr
, " handle=%04x", req
->handle
);
2362 static void dump_open_timer_request( const struct open_timer_request
*req
)
2364 fprintf( stderr
, " access=%08x", req
->access
);
2365 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
2366 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
2367 dump_varargs_unicode_str( ", name=", cur_size
);
2370 static void dump_open_timer_reply( const struct open_timer_reply
*req
)
2372 fprintf( stderr
, " handle=%04x", req
->handle
);
2375 static void dump_set_timer_request( const struct set_timer_request
*req
)
2377 fprintf( stderr
, " handle=%04x", req
->handle
);
2378 dump_timeout( ", expire=", &req
->expire
);
2379 dump_uint64( ", callback=", &req
->callback
);
2380 dump_uint64( ", arg=", &req
->arg
);
2381 fprintf( stderr
, ", period=%d", req
->period
);
2384 static void dump_set_timer_reply( const struct set_timer_reply
*req
)
2386 fprintf( stderr
, " signaled=%d", req
->signaled
);
2389 static void dump_cancel_timer_request( const struct cancel_timer_request
*req
)
2391 fprintf( stderr
, " handle=%04x", req
->handle
);
2394 static void dump_cancel_timer_reply( const struct cancel_timer_reply
*req
)
2396 fprintf( stderr
, " signaled=%d", req
->signaled
);
2399 static void dump_get_timer_info_request( const struct get_timer_info_request
*req
)
2401 fprintf( stderr
, " handle=%04x", req
->handle
);
2404 static void dump_get_timer_info_reply( const struct get_timer_info_reply
*req
)
2406 dump_timeout( " when=", &req
->when
);
2407 fprintf( stderr
, ", signaled=%d", req
->signaled
);
2410 static void dump_get_thread_context_request( const struct get_thread_context_request
*req
)
2412 fprintf( stderr
, " handle=%04x", req
->handle
);
2413 fprintf( stderr
, ", flags=%08x", req
->flags
);
2414 fprintf( stderr
, ", suspend=%d", req
->suspend
);
2417 static void dump_get_thread_context_reply( const struct get_thread_context_reply
*req
)
2419 fprintf( stderr
, " self=%d", req
->self
);
2420 dump_varargs_context( ", context=", cur_size
);
2423 static void dump_set_thread_context_request( const struct set_thread_context_request
*req
)
2425 fprintf( stderr
, " handle=%04x", req
->handle
);
2426 fprintf( stderr
, ", suspend=%d", req
->suspend
);
2427 dump_varargs_context( ", context=", cur_size
);
2430 static void dump_set_thread_context_reply( const struct set_thread_context_reply
*req
)
2432 fprintf( stderr
, " self=%d", req
->self
);
2435 static void dump_get_selector_entry_request( const struct get_selector_entry_request
*req
)
2437 fprintf( stderr
, " handle=%04x", req
->handle
);
2438 fprintf( stderr
, ", entry=%d", req
->entry
);
2441 static void dump_get_selector_entry_reply( const struct get_selector_entry_reply
*req
)
2443 fprintf( stderr
, " base=%08x", req
->base
);
2444 fprintf( stderr
, ", limit=%08x", req
->limit
);
2445 fprintf( stderr
, ", flags=%02x", req
->flags
);
2448 static void dump_add_atom_request( const struct add_atom_request
*req
)
2450 fprintf( stderr
, " table=%04x", req
->table
);
2451 dump_varargs_unicode_str( ", name=", cur_size
);
2454 static void dump_add_atom_reply( const struct add_atom_reply
*req
)
2456 fprintf( stderr
, " atom=%04x", req
->atom
);
2459 static void dump_delete_atom_request( const struct delete_atom_request
*req
)
2461 fprintf( stderr
, " table=%04x", req
->table
);
2462 fprintf( stderr
, ", atom=%04x", req
->atom
);
2465 static void dump_find_atom_request( const struct find_atom_request
*req
)
2467 fprintf( stderr
, " table=%04x", req
->table
);
2468 dump_varargs_unicode_str( ", name=", cur_size
);
2471 static void dump_find_atom_reply( const struct find_atom_reply
*req
)
2473 fprintf( stderr
, " atom=%04x", req
->atom
);
2476 static void dump_get_atom_information_request( const struct get_atom_information_request
*req
)
2478 fprintf( stderr
, " table=%04x", req
->table
);
2479 fprintf( stderr
, ", atom=%04x", req
->atom
);
2482 static void dump_get_atom_information_reply( const struct get_atom_information_reply
*req
)
2484 fprintf( stderr
, " count=%d", req
->count
);
2485 fprintf( stderr
, ", pinned=%d", req
->pinned
);
2486 fprintf( stderr
, ", total=%u", req
->total
);
2487 dump_varargs_unicode_str( ", name=", cur_size
);
2490 static void dump_set_atom_information_request( const struct set_atom_information_request
*req
)
2492 fprintf( stderr
, " table=%04x", req
->table
);
2493 fprintf( stderr
, ", atom=%04x", req
->atom
);
2494 fprintf( stderr
, ", pinned=%d", req
->pinned
);
2497 static void dump_empty_atom_table_request( const struct empty_atom_table_request
*req
)
2499 fprintf( stderr
, " table=%04x", req
->table
);
2500 fprintf( stderr
, ", if_pinned=%d", req
->if_pinned
);
2503 static void dump_init_atom_table_request( const struct init_atom_table_request
*req
)
2505 fprintf( stderr
, " entries=%d", req
->entries
);
2508 static void dump_init_atom_table_reply( const struct init_atom_table_reply
*req
)
2510 fprintf( stderr
, " table=%04x", req
->table
);
2513 static void dump_get_msg_queue_request( const struct get_msg_queue_request
*req
)
2517 static void dump_get_msg_queue_reply( const struct get_msg_queue_reply
*req
)
2519 fprintf( stderr
, " handle=%04x", req
->handle
);
2522 static void dump_set_queue_fd_request( const struct set_queue_fd_request
*req
)
2524 fprintf( stderr
, " handle=%04x", req
->handle
);
2527 static void dump_set_queue_mask_request( const struct set_queue_mask_request
*req
)
2529 fprintf( stderr
, " wake_mask=%08x", req
->wake_mask
);
2530 fprintf( stderr
, ", changed_mask=%08x", req
->changed_mask
);
2531 fprintf( stderr
, ", skip_wait=%d", req
->skip_wait
);
2534 static void dump_set_queue_mask_reply( const struct set_queue_mask_reply
*req
)
2536 fprintf( stderr
, " wake_bits=%08x", req
->wake_bits
);
2537 fprintf( stderr
, ", changed_bits=%08x", req
->changed_bits
);
2540 static void dump_get_queue_status_request( const struct get_queue_status_request
*req
)
2542 fprintf( stderr
, " clear=%d", req
->clear
);
2545 static void dump_get_queue_status_reply( const struct get_queue_status_reply
*req
)
2547 fprintf( stderr
, " wake_bits=%08x", req
->wake_bits
);
2548 fprintf( stderr
, ", changed_bits=%08x", req
->changed_bits
);
2551 static void dump_get_process_idle_event_request( const struct get_process_idle_event_request
*req
)
2553 fprintf( stderr
, " handle=%04x", req
->handle
);
2556 static void dump_get_process_idle_event_reply( const struct get_process_idle_event_reply
*req
)
2558 fprintf( stderr
, " event=%04x", req
->event
);
2561 static void dump_send_message_request( const struct send_message_request
*req
)
2563 fprintf( stderr
, " id=%04x", req
->id
);
2564 fprintf( stderr
, ", type=%d", req
->type
);
2565 fprintf( stderr
, ", flags=%d", req
->flags
);
2566 fprintf( stderr
, ", win=%08x", req
->win
);
2567 fprintf( stderr
, ", msg=%08x", req
->msg
);
2568 dump_uint64( ", wparam=", &req
->wparam
);
2569 dump_uint64( ", lparam=", &req
->lparam
);
2570 dump_timeout( ", timeout=", &req
->timeout
);
2571 dump_varargs_message_data( ", data=", cur_size
);
2574 static void dump_post_quit_message_request( const struct post_quit_message_request
*req
)
2576 fprintf( stderr
, " exit_code=%d", req
->exit_code
);
2579 static void dump_send_hardware_message_request( const struct send_hardware_message_request
*req
)
2581 fprintf( stderr
, " win=%08x", req
->win
);
2582 dump_hw_input( ", input=", &req
->input
);
2583 fprintf( stderr
, ", flags=%08x", req
->flags
);
2586 static void dump_send_hardware_message_reply( const struct send_hardware_message_reply
*req
)
2588 fprintf( stderr
, " wait=%d", req
->wait
);
2589 fprintf( stderr
, ", prev_x=%d", req
->prev_x
);
2590 fprintf( stderr
, ", prev_y=%d", req
->prev_y
);
2591 fprintf( stderr
, ", new_x=%d", req
->new_x
);
2592 fprintf( stderr
, ", new_y=%d", req
->new_y
);
2593 dump_varargs_bytes( ", keystate=", cur_size
);
2596 static void dump_get_message_request( const struct get_message_request
*req
)
2598 fprintf( stderr
, " flags=%08x", req
->flags
);
2599 fprintf( stderr
, ", get_win=%08x", req
->get_win
);
2600 fprintf( stderr
, ", get_first=%08x", req
->get_first
);
2601 fprintf( stderr
, ", get_last=%08x", req
->get_last
);
2602 fprintf( stderr
, ", hw_id=%08x", req
->hw_id
);
2603 fprintf( stderr
, ", wake_mask=%08x", req
->wake_mask
);
2604 fprintf( stderr
, ", changed_mask=%08x", req
->changed_mask
);
2607 static void dump_get_message_reply( const struct get_message_reply
*req
)
2609 fprintf( stderr
, " win=%08x", req
->win
);
2610 fprintf( stderr
, ", msg=%08x", req
->msg
);
2611 dump_uint64( ", wparam=", &req
->wparam
);
2612 dump_uint64( ", lparam=", &req
->lparam
);
2613 fprintf( stderr
, ", type=%d", req
->type
);
2614 fprintf( stderr
, ", time=%08x", req
->time
);
2615 fprintf( stderr
, ", active_hooks=%08x", req
->active_hooks
);
2616 fprintf( stderr
, ", total=%u", req
->total
);
2617 dump_varargs_message_data( ", data=", cur_size
);
2620 static void dump_reply_message_request( const struct reply_message_request
*req
)
2622 fprintf( stderr
, " remove=%d", req
->remove
);
2623 dump_uint64( ", result=", &req
->result
);
2624 dump_varargs_bytes( ", data=", cur_size
);
2627 static void dump_accept_hardware_message_request( const struct accept_hardware_message_request
*req
)
2629 fprintf( stderr
, " hw_id=%08x", req
->hw_id
);
2630 fprintf( stderr
, ", remove=%d", req
->remove
);
2631 fprintf( stderr
, ", new_win=%08x", req
->new_win
);
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_get_ioctl_result_request( const struct get_ioctl_result_request
*req
)
2737 fprintf( stderr
, " handle=%04x", req
->handle
);
2738 dump_uint64( ", user_arg=", &req
->user_arg
);
2741 static void dump_get_ioctl_result_reply( const struct get_ioctl_result_reply
*req
)
2743 dump_varargs_bytes( " out_data=", cur_size
);
2746 static void dump_create_named_pipe_request( const struct create_named_pipe_request
*req
)
2748 fprintf( stderr
, " access=%08x", req
->access
);
2749 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
2750 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
2751 fprintf( stderr
, ", options=%08x", req
->options
);
2752 fprintf( stderr
, ", sharing=%08x", req
->sharing
);
2753 fprintf( stderr
, ", maxinstances=%08x", req
->maxinstances
);
2754 fprintf( stderr
, ", outsize=%08x", req
->outsize
);
2755 fprintf( stderr
, ", insize=%08x", req
->insize
);
2756 dump_timeout( ", timeout=", &req
->timeout
);
2757 fprintf( stderr
, ", flags=%08x", req
->flags
);
2758 dump_varargs_unicode_str( ", name=", cur_size
);
2761 static void dump_create_named_pipe_reply( const struct create_named_pipe_reply
*req
)
2763 fprintf( stderr
, " handle=%04x", req
->handle
);
2766 static void dump_get_named_pipe_info_request( const struct get_named_pipe_info_request
*req
)
2768 fprintf( stderr
, " handle=%04x", req
->handle
);
2771 static void dump_get_named_pipe_info_reply( const struct get_named_pipe_info_reply
*req
)
2773 fprintf( stderr
, " flags=%08x", req
->flags
);
2774 fprintf( stderr
, ", sharing=%08x", req
->sharing
);
2775 fprintf( stderr
, ", maxinstances=%08x", req
->maxinstances
);
2776 fprintf( stderr
, ", instances=%08x", req
->instances
);
2777 fprintf( stderr
, ", outsize=%08x", req
->outsize
);
2778 fprintf( stderr
, ", insize=%08x", req
->insize
);
2781 static void dump_set_named_pipe_info_request( const struct set_named_pipe_info_request
*req
)
2783 fprintf( stderr
, " handle=%04x", req
->handle
);
2784 fprintf( stderr
, ", flags=%08x", req
->flags
);
2787 static void dump_create_window_request( const struct create_window_request
*req
)
2789 fprintf( stderr
, " parent=%08x", req
->parent
);
2790 fprintf( stderr
, ", owner=%08x", req
->owner
);
2791 fprintf( stderr
, ", atom=%04x", req
->atom
);
2792 dump_uint64( ", instance=", &req
->instance
);
2793 dump_varargs_unicode_str( ", class=", cur_size
);
2796 static void dump_create_window_reply( const struct create_window_reply
*req
)
2798 fprintf( stderr
, " handle=%08x", req
->handle
);
2799 fprintf( stderr
, ", parent=%08x", req
->parent
);
2800 fprintf( stderr
, ", owner=%08x", req
->owner
);
2801 fprintf( stderr
, ", extra=%d", req
->extra
);
2802 dump_uint64( ", class_ptr=", &req
->class_ptr
);
2805 static void dump_destroy_window_request( const struct destroy_window_request
*req
)
2807 fprintf( stderr
, " handle=%08x", req
->handle
);
2810 static void dump_get_desktop_window_request( const struct get_desktop_window_request
*req
)
2812 fprintf( stderr
, " force=%d", req
->force
);
2815 static void dump_get_desktop_window_reply( const struct get_desktop_window_reply
*req
)
2817 fprintf( stderr
, " top_window=%08x", req
->top_window
);
2818 fprintf( stderr
, ", msg_window=%08x", req
->msg_window
);
2821 static void dump_set_window_owner_request( const struct set_window_owner_request
*req
)
2823 fprintf( stderr
, " handle=%08x", req
->handle
);
2824 fprintf( stderr
, ", owner=%08x", req
->owner
);
2827 static void dump_set_window_owner_reply( const struct set_window_owner_reply
*req
)
2829 fprintf( stderr
, " full_owner=%08x", req
->full_owner
);
2830 fprintf( stderr
, ", prev_owner=%08x", req
->prev_owner
);
2833 static void dump_get_window_info_request( const struct get_window_info_request
*req
)
2835 fprintf( stderr
, " handle=%08x", req
->handle
);
2838 static void dump_get_window_info_reply( const struct get_window_info_reply
*req
)
2840 fprintf( stderr
, " full_handle=%08x", req
->full_handle
);
2841 fprintf( stderr
, ", last_active=%08x", req
->last_active
);
2842 fprintf( stderr
, ", pid=%04x", req
->pid
);
2843 fprintf( stderr
, ", tid=%04x", req
->tid
);
2844 fprintf( stderr
, ", atom=%04x", req
->atom
);
2845 fprintf( stderr
, ", is_unicode=%d", req
->is_unicode
);
2848 static void dump_set_window_info_request( const struct set_window_info_request
*req
)
2850 fprintf( stderr
, " flags=%04x", req
->flags
);
2851 fprintf( stderr
, ", is_unicode=%d", req
->is_unicode
);
2852 fprintf( stderr
, ", handle=%08x", req
->handle
);
2853 fprintf( stderr
, ", style=%08x", req
->style
);
2854 fprintf( stderr
, ", ex_style=%08x", req
->ex_style
);
2855 fprintf( stderr
, ", id=%08x", req
->id
);
2856 dump_uint64( ", instance=", &req
->instance
);
2857 dump_uint64( ", user_data=", &req
->user_data
);
2858 fprintf( stderr
, ", extra_offset=%d", req
->extra_offset
);
2859 fprintf( stderr
, ", extra_size=%u", req
->extra_size
);
2860 dump_uint64( ", extra_value=", &req
->extra_value
);
2863 static void dump_set_window_info_reply( const struct set_window_info_reply
*req
)
2865 fprintf( stderr
, " old_style=%08x", req
->old_style
);
2866 fprintf( stderr
, ", old_ex_style=%08x", req
->old_ex_style
);
2867 dump_uint64( ", old_instance=", &req
->old_instance
);
2868 dump_uint64( ", old_user_data=", &req
->old_user_data
);
2869 dump_uint64( ", old_extra_value=", &req
->old_extra_value
);
2870 fprintf( stderr
, ", old_id=%08x", req
->old_id
);
2873 static void dump_set_parent_request( const struct set_parent_request
*req
)
2875 fprintf( stderr
, " handle=%08x", req
->handle
);
2876 fprintf( stderr
, ", parent=%08x", req
->parent
);
2879 static void dump_set_parent_reply( const struct set_parent_reply
*req
)
2881 fprintf( stderr
, " old_parent=%08x", req
->old_parent
);
2882 fprintf( stderr
, ", full_parent=%08x", req
->full_parent
);
2885 static void dump_get_window_parents_request( const struct get_window_parents_request
*req
)
2887 fprintf( stderr
, " handle=%08x", req
->handle
);
2890 static void dump_get_window_parents_reply( const struct get_window_parents_reply
*req
)
2892 fprintf( stderr
, " count=%d", req
->count
);
2893 dump_varargs_user_handles( ", parents=", cur_size
);
2896 static void dump_get_window_children_request( const struct get_window_children_request
*req
)
2898 fprintf( stderr
, " desktop=%04x", req
->desktop
);
2899 fprintf( stderr
, ", parent=%08x", req
->parent
);
2900 fprintf( stderr
, ", atom=%04x", req
->atom
);
2901 fprintf( stderr
, ", tid=%04x", req
->tid
);
2902 dump_varargs_unicode_str( ", class=", cur_size
);
2905 static void dump_get_window_children_reply( const struct get_window_children_reply
*req
)
2907 fprintf( stderr
, " count=%d", req
->count
);
2908 dump_varargs_user_handles( ", children=", cur_size
);
2911 static void dump_get_window_children_from_point_request( const struct get_window_children_from_point_request
*req
)
2913 fprintf( stderr
, " parent=%08x", req
->parent
);
2914 fprintf( stderr
, ", x=%d", req
->x
);
2915 fprintf( stderr
, ", y=%d", req
->y
);
2918 static void dump_get_window_children_from_point_reply( const struct get_window_children_from_point_reply
*req
)
2920 fprintf( stderr
, " count=%d", req
->count
);
2921 dump_varargs_user_handles( ", children=", cur_size
);
2924 static void dump_get_window_tree_request( const struct get_window_tree_request
*req
)
2926 fprintf( stderr
, " handle=%08x", req
->handle
);
2929 static void dump_get_window_tree_reply( const struct get_window_tree_reply
*req
)
2931 fprintf( stderr
, " parent=%08x", req
->parent
);
2932 fprintf( stderr
, ", owner=%08x", req
->owner
);
2933 fprintf( stderr
, ", next_sibling=%08x", req
->next_sibling
);
2934 fprintf( stderr
, ", prev_sibling=%08x", req
->prev_sibling
);
2935 fprintf( stderr
, ", first_sibling=%08x", req
->first_sibling
);
2936 fprintf( stderr
, ", last_sibling=%08x", req
->last_sibling
);
2937 fprintf( stderr
, ", first_child=%08x", req
->first_child
);
2938 fprintf( stderr
, ", last_child=%08x", req
->last_child
);
2941 static void dump_set_window_pos_request( const struct set_window_pos_request
*req
)
2943 fprintf( stderr
, " swp_flags=%04x", req
->swp_flags
);
2944 fprintf( stderr
, ", paint_flags=%04x", req
->paint_flags
);
2945 fprintf( stderr
, ", handle=%08x", req
->handle
);
2946 fprintf( stderr
, ", previous=%08x", req
->previous
);
2947 dump_rectangle( ", window=", &req
->window
);
2948 dump_rectangle( ", client=", &req
->client
);
2949 dump_varargs_rectangles( ", valid=", cur_size
);
2952 static void dump_set_window_pos_reply( const struct set_window_pos_reply
*req
)
2954 fprintf( stderr
, " new_style=%08x", req
->new_style
);
2955 fprintf( stderr
, ", new_ex_style=%08x", req
->new_ex_style
);
2956 fprintf( stderr
, ", surface_win=%08x", req
->surface_win
);
2959 static void dump_get_window_rectangles_request( const struct get_window_rectangles_request
*req
)
2961 fprintf( stderr
, " handle=%08x", req
->handle
);
2962 fprintf( stderr
, ", relative=%d", req
->relative
);
2965 static void dump_get_window_rectangles_reply( const struct get_window_rectangles_reply
*req
)
2967 dump_rectangle( " window=", &req
->window
);
2968 dump_rectangle( ", visible=", &req
->visible
);
2969 dump_rectangle( ", client=", &req
->client
);
2972 static void dump_get_window_text_request( const struct get_window_text_request
*req
)
2974 fprintf( stderr
, " handle=%08x", req
->handle
);
2977 static void dump_get_window_text_reply( const struct get_window_text_reply
*req
)
2979 dump_varargs_unicode_str( " text=", cur_size
);
2982 static void dump_set_window_text_request( const struct set_window_text_request
*req
)
2984 fprintf( stderr
, " handle=%08x", req
->handle
);
2985 dump_varargs_unicode_str( ", text=", cur_size
);
2988 static void dump_get_windows_offset_request( const struct get_windows_offset_request
*req
)
2990 fprintf( stderr
, " from=%08x", req
->from
);
2991 fprintf( stderr
, ", to=%08x", req
->to
);
2994 static void dump_get_windows_offset_reply( const struct get_windows_offset_reply
*req
)
2996 fprintf( stderr
, " x=%d", req
->x
);
2997 fprintf( stderr
, ", y=%d", req
->y
);
2998 fprintf( stderr
, ", mirror=%d", req
->mirror
);
3001 static void dump_get_visible_region_request( const struct get_visible_region_request
*req
)
3003 fprintf( stderr
, " window=%08x", req
->window
);
3004 fprintf( stderr
, ", flags=%08x", req
->flags
);
3007 static void dump_get_visible_region_reply( const struct get_visible_region_reply
*req
)
3009 fprintf( stderr
, " top_win=%08x", req
->top_win
);
3010 dump_rectangle( ", top_rect=", &req
->top_rect
);
3011 dump_rectangle( ", win_rect=", &req
->win_rect
);
3012 fprintf( stderr
, ", paint_flags=%08x", req
->paint_flags
);
3013 fprintf( stderr
, ", total_size=%u", req
->total_size
);
3014 dump_varargs_rectangles( ", region=", cur_size
);
3017 static void dump_get_surface_region_request( const struct get_surface_region_request
*req
)
3019 fprintf( stderr
, " window=%08x", req
->window
);
3022 static void dump_get_surface_region_reply( const struct get_surface_region_reply
*req
)
3024 dump_rectangle( " visible_rect=", &req
->visible_rect
);
3025 fprintf( stderr
, ", total_size=%u", req
->total_size
);
3026 dump_varargs_rectangles( ", region=", cur_size
);
3029 static void dump_get_window_region_request( const struct get_window_region_request
*req
)
3031 fprintf( stderr
, " window=%08x", req
->window
);
3034 static void dump_get_window_region_reply( const struct get_window_region_reply
*req
)
3036 fprintf( stderr
, " total_size=%u", req
->total_size
);
3037 dump_varargs_rectangles( ", region=", cur_size
);
3040 static void dump_set_window_region_request( const struct set_window_region_request
*req
)
3042 fprintf( stderr
, " window=%08x", req
->window
);
3043 fprintf( stderr
, ", redraw=%d", req
->redraw
);
3044 dump_varargs_rectangles( ", region=", cur_size
);
3047 static void dump_get_update_region_request( const struct get_update_region_request
*req
)
3049 fprintf( stderr
, " window=%08x", req
->window
);
3050 fprintf( stderr
, ", from_child=%08x", req
->from_child
);
3051 fprintf( stderr
, ", flags=%08x", req
->flags
);
3054 static void dump_get_update_region_reply( const struct get_update_region_reply
*req
)
3056 fprintf( stderr
, " child=%08x", req
->child
);
3057 fprintf( stderr
, ", flags=%08x", req
->flags
);
3058 fprintf( stderr
, ", total_size=%u", req
->total_size
);
3059 dump_varargs_rectangles( ", region=", cur_size
);
3062 static void dump_update_window_zorder_request( const struct update_window_zorder_request
*req
)
3064 fprintf( stderr
, " window=%08x", req
->window
);
3065 dump_rectangle( ", rect=", &req
->rect
);
3068 static void dump_redraw_window_request( const struct redraw_window_request
*req
)
3070 fprintf( stderr
, " window=%08x", req
->window
);
3071 fprintf( stderr
, ", flags=%08x", req
->flags
);
3072 dump_varargs_rectangles( ", region=", cur_size
);
3075 static void dump_set_window_property_request( const struct set_window_property_request
*req
)
3077 fprintf( stderr
, " window=%08x", req
->window
);
3078 dump_uint64( ", data=", &req
->data
);
3079 fprintf( stderr
, ", atom=%04x", req
->atom
);
3080 dump_varargs_unicode_str( ", name=", cur_size
);
3083 static void dump_remove_window_property_request( const struct remove_window_property_request
*req
)
3085 fprintf( stderr
, " window=%08x", req
->window
);
3086 fprintf( stderr
, ", atom=%04x", req
->atom
);
3087 dump_varargs_unicode_str( ", name=", cur_size
);
3090 static void dump_remove_window_property_reply( const struct remove_window_property_reply
*req
)
3092 dump_uint64( " data=", &req
->data
);
3095 static void dump_get_window_property_request( const struct get_window_property_request
*req
)
3097 fprintf( stderr
, " window=%08x", req
->window
);
3098 fprintf( stderr
, ", atom=%04x", req
->atom
);
3099 dump_varargs_unicode_str( ", name=", cur_size
);
3102 static void dump_get_window_property_reply( const struct get_window_property_reply
*req
)
3104 dump_uint64( " data=", &req
->data
);
3107 static void dump_get_window_properties_request( const struct get_window_properties_request
*req
)
3109 fprintf( stderr
, " window=%08x", req
->window
);
3112 static void dump_get_window_properties_reply( const struct get_window_properties_reply
*req
)
3114 fprintf( stderr
, " total=%d", req
->total
);
3115 dump_varargs_properties( ", props=", cur_size
);
3118 static void dump_create_winstation_request( const struct create_winstation_request
*req
)
3120 fprintf( stderr
, " flags=%08x", req
->flags
);
3121 fprintf( stderr
, ", access=%08x", req
->access
);
3122 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3123 dump_varargs_unicode_str( ", name=", cur_size
);
3126 static void dump_create_winstation_reply( const struct create_winstation_reply
*req
)
3128 fprintf( stderr
, " handle=%04x", req
->handle
);
3131 static void dump_open_winstation_request( const struct open_winstation_request
*req
)
3133 fprintf( stderr
, " access=%08x", req
->access
);
3134 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3135 dump_varargs_unicode_str( ", name=", cur_size
);
3138 static void dump_open_winstation_reply( const struct open_winstation_reply
*req
)
3140 fprintf( stderr
, " handle=%04x", req
->handle
);
3143 static void dump_close_winstation_request( const struct close_winstation_request
*req
)
3145 fprintf( stderr
, " handle=%04x", req
->handle
);
3148 static void dump_get_process_winstation_request( const struct get_process_winstation_request
*req
)
3152 static void dump_get_process_winstation_reply( const struct get_process_winstation_reply
*req
)
3154 fprintf( stderr
, " handle=%04x", req
->handle
);
3157 static void dump_set_process_winstation_request( const struct set_process_winstation_request
*req
)
3159 fprintf( stderr
, " handle=%04x", req
->handle
);
3162 static void dump_enum_winstation_request( const struct enum_winstation_request
*req
)
3164 fprintf( stderr
, " index=%08x", req
->index
);
3167 static void dump_enum_winstation_reply( const struct enum_winstation_reply
*req
)
3169 fprintf( stderr
, " next=%08x", req
->next
);
3170 dump_varargs_unicode_str( ", name=", cur_size
);
3173 static void dump_create_desktop_request( const struct create_desktop_request
*req
)
3175 fprintf( stderr
, " flags=%08x", req
->flags
);
3176 fprintf( stderr
, ", access=%08x", req
->access
);
3177 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3178 dump_varargs_unicode_str( ", name=", cur_size
);
3181 static void dump_create_desktop_reply( const struct create_desktop_reply
*req
)
3183 fprintf( stderr
, " handle=%04x", req
->handle
);
3186 static void dump_open_desktop_request( const struct open_desktop_request
*req
)
3188 fprintf( stderr
, " winsta=%04x", req
->winsta
);
3189 fprintf( stderr
, ", flags=%08x", req
->flags
);
3190 fprintf( stderr
, ", access=%08x", req
->access
);
3191 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3192 dump_varargs_unicode_str( ", name=", cur_size
);
3195 static void dump_open_desktop_reply( const struct open_desktop_reply
*req
)
3197 fprintf( stderr
, " handle=%04x", req
->handle
);
3200 static void dump_open_input_desktop_request( const struct open_input_desktop_request
*req
)
3202 fprintf( stderr
, " flags=%08x", req
->flags
);
3203 fprintf( stderr
, ", access=%08x", req
->access
);
3204 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3207 static void dump_open_input_desktop_reply( const struct open_input_desktop_reply
*req
)
3209 fprintf( stderr
, " handle=%04x", req
->handle
);
3212 static void dump_close_desktop_request( const struct close_desktop_request
*req
)
3214 fprintf( stderr
, " handle=%04x", req
->handle
);
3217 static void dump_get_thread_desktop_request( const struct get_thread_desktop_request
*req
)
3219 fprintf( stderr
, " tid=%04x", req
->tid
);
3222 static void dump_get_thread_desktop_reply( const struct get_thread_desktop_reply
*req
)
3224 fprintf( stderr
, " handle=%04x", req
->handle
);
3227 static void dump_set_thread_desktop_request( const struct set_thread_desktop_request
*req
)
3229 fprintf( stderr
, " handle=%04x", req
->handle
);
3232 static void dump_enum_desktop_request( const struct enum_desktop_request
*req
)
3234 fprintf( stderr
, " winstation=%04x", req
->winstation
);
3235 fprintf( stderr
, ", index=%08x", req
->index
);
3238 static void dump_enum_desktop_reply( const struct enum_desktop_reply
*req
)
3240 fprintf( stderr
, " next=%08x", req
->next
);
3241 dump_varargs_unicode_str( ", name=", cur_size
);
3244 static void dump_set_user_object_info_request( const struct set_user_object_info_request
*req
)
3246 fprintf( stderr
, " handle=%04x", req
->handle
);
3247 fprintf( stderr
, ", flags=%08x", req
->flags
);
3248 fprintf( stderr
, ", obj_flags=%08x", req
->obj_flags
);
3251 static void dump_set_user_object_info_reply( const struct set_user_object_info_reply
*req
)
3253 fprintf( stderr
, " is_desktop=%d", req
->is_desktop
);
3254 fprintf( stderr
, ", old_obj_flags=%08x", req
->old_obj_flags
);
3255 dump_varargs_unicode_str( ", name=", cur_size
);
3258 static void dump_register_hotkey_request( const struct register_hotkey_request
*req
)
3260 fprintf( stderr
, " window=%08x", req
->window
);
3261 fprintf( stderr
, ", id=%d", req
->id
);
3262 fprintf( stderr
, ", flags=%08x", req
->flags
);
3263 fprintf( stderr
, ", vkey=%08x", req
->vkey
);
3266 static void dump_register_hotkey_reply( const struct register_hotkey_reply
*req
)
3268 fprintf( stderr
, " replaced=%d", req
->replaced
);
3269 fprintf( stderr
, ", flags=%08x", req
->flags
);
3270 fprintf( stderr
, ", vkey=%08x", req
->vkey
);
3273 static void dump_unregister_hotkey_request( const struct unregister_hotkey_request
*req
)
3275 fprintf( stderr
, " window=%08x", req
->window
);
3276 fprintf( stderr
, ", id=%d", req
->id
);
3279 static void dump_unregister_hotkey_reply( const struct unregister_hotkey_reply
*req
)
3281 fprintf( stderr
, " flags=%08x", req
->flags
);
3282 fprintf( stderr
, ", vkey=%08x", req
->vkey
);
3285 static void dump_attach_thread_input_request( const struct attach_thread_input_request
*req
)
3287 fprintf( stderr
, " tid_from=%04x", req
->tid_from
);
3288 fprintf( stderr
, ", tid_to=%04x", req
->tid_to
);
3289 fprintf( stderr
, ", attach=%d", req
->attach
);
3292 static void dump_get_thread_input_request( const struct get_thread_input_request
*req
)
3294 fprintf( stderr
, " tid=%04x", req
->tid
);
3297 static void dump_get_thread_input_reply( const struct get_thread_input_reply
*req
)
3299 fprintf( stderr
, " focus=%08x", req
->focus
);
3300 fprintf( stderr
, ", capture=%08x", req
->capture
);
3301 fprintf( stderr
, ", active=%08x", req
->active
);
3302 fprintf( stderr
, ", foreground=%08x", req
->foreground
);
3303 fprintf( stderr
, ", menu_owner=%08x", req
->menu_owner
);
3304 fprintf( stderr
, ", move_size=%08x", req
->move_size
);
3305 fprintf( stderr
, ", caret=%08x", req
->caret
);
3306 fprintf( stderr
, ", cursor=%08x", req
->cursor
);
3307 fprintf( stderr
, ", show_count=%d", req
->show_count
);
3308 dump_rectangle( ", rect=", &req
->rect
);
3311 static void dump_get_last_input_time_request( const struct get_last_input_time_request
*req
)
3315 static void dump_get_last_input_time_reply( const struct get_last_input_time_reply
*req
)
3317 fprintf( stderr
, " time=%08x", req
->time
);
3320 static void dump_get_key_state_request( const struct get_key_state_request
*req
)
3322 fprintf( stderr
, " tid=%04x", req
->tid
);
3323 fprintf( stderr
, ", key=%d", req
->key
);
3326 static void dump_get_key_state_reply( const struct get_key_state_reply
*req
)
3328 fprintf( stderr
, " state=%02x", req
->state
);
3329 dump_varargs_bytes( ", keystate=", cur_size
);
3332 static void dump_set_key_state_request( const struct set_key_state_request
*req
)
3334 fprintf( stderr
, " tid=%04x", req
->tid
);
3335 fprintf( stderr
, ", async=%d", req
->async
);
3336 dump_varargs_bytes( ", keystate=", cur_size
);
3339 static void dump_set_foreground_window_request( const struct set_foreground_window_request
*req
)
3341 fprintf( stderr
, " handle=%08x", req
->handle
);
3344 static void dump_set_foreground_window_reply( const struct set_foreground_window_reply
*req
)
3346 fprintf( stderr
, " previous=%08x", req
->previous
);
3347 fprintf( stderr
, ", send_msg_old=%d", req
->send_msg_old
);
3348 fprintf( stderr
, ", send_msg_new=%d", req
->send_msg_new
);
3351 static void dump_set_focus_window_request( const struct set_focus_window_request
*req
)
3353 fprintf( stderr
, " handle=%08x", req
->handle
);
3356 static void dump_set_focus_window_reply( const struct set_focus_window_reply
*req
)
3358 fprintf( stderr
, " previous=%08x", req
->previous
);
3361 static void dump_set_active_window_request( const struct set_active_window_request
*req
)
3363 fprintf( stderr
, " handle=%08x", req
->handle
);
3366 static void dump_set_active_window_reply( const struct set_active_window_reply
*req
)
3368 fprintf( stderr
, " previous=%08x", req
->previous
);
3371 static void dump_set_capture_window_request( const struct set_capture_window_request
*req
)
3373 fprintf( stderr
, " handle=%08x", req
->handle
);
3374 fprintf( stderr
, ", flags=%08x", req
->flags
);
3377 static void dump_set_capture_window_reply( const struct set_capture_window_reply
*req
)
3379 fprintf( stderr
, " previous=%08x", req
->previous
);
3380 fprintf( stderr
, ", full_handle=%08x", req
->full_handle
);
3383 static void dump_set_caret_window_request( const struct set_caret_window_request
*req
)
3385 fprintf( stderr
, " handle=%08x", req
->handle
);
3386 fprintf( stderr
, ", width=%d", req
->width
);
3387 fprintf( stderr
, ", height=%d", req
->height
);
3390 static void dump_set_caret_window_reply( const struct set_caret_window_reply
*req
)
3392 fprintf( stderr
, " previous=%08x", req
->previous
);
3393 dump_rectangle( ", old_rect=", &req
->old_rect
);
3394 fprintf( stderr
, ", old_hide=%d", req
->old_hide
);
3395 fprintf( stderr
, ", old_state=%d", req
->old_state
);
3398 static void dump_set_caret_info_request( const struct set_caret_info_request
*req
)
3400 fprintf( stderr
, " flags=%08x", req
->flags
);
3401 fprintf( stderr
, ", handle=%08x", req
->handle
);
3402 fprintf( stderr
, ", x=%d", req
->x
);
3403 fprintf( stderr
, ", y=%d", req
->y
);
3404 fprintf( stderr
, ", hide=%d", req
->hide
);
3405 fprintf( stderr
, ", state=%d", req
->state
);
3408 static void dump_set_caret_info_reply( const struct set_caret_info_reply
*req
)
3410 fprintf( stderr
, " full_handle=%08x", req
->full_handle
);
3411 dump_rectangle( ", old_rect=", &req
->old_rect
);
3412 fprintf( stderr
, ", old_hide=%d", req
->old_hide
);
3413 fprintf( stderr
, ", old_state=%d", req
->old_state
);
3416 static void dump_set_hook_request( const struct set_hook_request
*req
)
3418 fprintf( stderr
, " id=%d", req
->id
);
3419 fprintf( stderr
, ", pid=%04x", req
->pid
);
3420 fprintf( stderr
, ", tid=%04x", req
->tid
);
3421 fprintf( stderr
, ", event_min=%d", req
->event_min
);
3422 fprintf( stderr
, ", event_max=%d", req
->event_max
);
3423 dump_uint64( ", proc=", &req
->proc
);
3424 fprintf( stderr
, ", flags=%d", req
->flags
);
3425 fprintf( stderr
, ", unicode=%d", req
->unicode
);
3426 dump_varargs_unicode_str( ", module=", cur_size
);
3429 static void dump_set_hook_reply( const struct set_hook_reply
*req
)
3431 fprintf( stderr
, " handle=%08x", req
->handle
);
3432 fprintf( stderr
, ", active_hooks=%08x", req
->active_hooks
);
3435 static void dump_remove_hook_request( const struct remove_hook_request
*req
)
3437 fprintf( stderr
, " handle=%08x", req
->handle
);
3438 dump_uint64( ", proc=", &req
->proc
);
3439 fprintf( stderr
, ", id=%d", req
->id
);
3442 static void dump_remove_hook_reply( const struct remove_hook_reply
*req
)
3444 fprintf( stderr
, " active_hooks=%08x", req
->active_hooks
);
3447 static void dump_start_hook_chain_request( const struct start_hook_chain_request
*req
)
3449 fprintf( stderr
, " id=%d", req
->id
);
3450 fprintf( stderr
, ", event=%d", req
->event
);
3451 fprintf( stderr
, ", window=%08x", req
->window
);
3452 fprintf( stderr
, ", object_id=%d", req
->object_id
);
3453 fprintf( stderr
, ", child_id=%d", req
->child_id
);
3456 static void dump_start_hook_chain_reply( const struct start_hook_chain_reply
*req
)
3458 fprintf( stderr
, " handle=%08x", req
->handle
);
3459 fprintf( stderr
, ", pid=%04x", req
->pid
);
3460 fprintf( stderr
, ", tid=%04x", req
->tid
);
3461 fprintf( stderr
, ", unicode=%d", req
->unicode
);
3462 dump_uint64( ", proc=", &req
->proc
);
3463 fprintf( stderr
, ", active_hooks=%08x", req
->active_hooks
);
3464 dump_varargs_unicode_str( ", module=", cur_size
);
3467 static void dump_finish_hook_chain_request( const struct finish_hook_chain_request
*req
)
3469 fprintf( stderr
, " id=%d", req
->id
);
3472 static void dump_get_hook_info_request( const struct get_hook_info_request
*req
)
3474 fprintf( stderr
, " handle=%08x", req
->handle
);
3475 fprintf( stderr
, ", get_next=%d", req
->get_next
);
3476 fprintf( stderr
, ", event=%d", req
->event
);
3477 fprintf( stderr
, ", window=%08x", req
->window
);
3478 fprintf( stderr
, ", object_id=%d", req
->object_id
);
3479 fprintf( stderr
, ", child_id=%d", req
->child_id
);
3482 static void dump_get_hook_info_reply( const struct get_hook_info_reply
*req
)
3484 fprintf( stderr
, " handle=%08x", req
->handle
);
3485 fprintf( stderr
, ", id=%d", req
->id
);
3486 fprintf( stderr
, ", pid=%04x", req
->pid
);
3487 fprintf( stderr
, ", tid=%04x", req
->tid
);
3488 dump_uint64( ", proc=", &req
->proc
);
3489 fprintf( stderr
, ", unicode=%d", req
->unicode
);
3490 dump_varargs_unicode_str( ", module=", cur_size
);
3493 static void dump_create_class_request( const struct create_class_request
*req
)
3495 fprintf( stderr
, " local=%d", req
->local
);
3496 fprintf( stderr
, ", atom=%04x", req
->atom
);
3497 fprintf( stderr
, ", style=%08x", req
->style
);
3498 dump_uint64( ", instance=", &req
->instance
);
3499 fprintf( stderr
, ", extra=%d", req
->extra
);
3500 fprintf( stderr
, ", win_extra=%d", req
->win_extra
);
3501 dump_uint64( ", client_ptr=", &req
->client_ptr
);
3502 dump_varargs_unicode_str( ", name=", cur_size
);
3505 static void dump_create_class_reply( const struct create_class_reply
*req
)
3507 fprintf( stderr
, " atom=%04x", req
->atom
);
3510 static void dump_destroy_class_request( const struct destroy_class_request
*req
)
3512 fprintf( stderr
, " atom=%04x", req
->atom
);
3513 dump_uint64( ", instance=", &req
->instance
);
3514 dump_varargs_unicode_str( ", name=", cur_size
);
3517 static void dump_destroy_class_reply( const struct destroy_class_reply
*req
)
3519 dump_uint64( " client_ptr=", &req
->client_ptr
);
3522 static void dump_set_class_info_request( const struct set_class_info_request
*req
)
3524 fprintf( stderr
, " window=%08x", req
->window
);
3525 fprintf( stderr
, ", flags=%08x", req
->flags
);
3526 fprintf( stderr
, ", atom=%04x", req
->atom
);
3527 fprintf( stderr
, ", style=%08x", req
->style
);
3528 fprintf( stderr
, ", win_extra=%d", req
->win_extra
);
3529 dump_uint64( ", instance=", &req
->instance
);
3530 fprintf( stderr
, ", extra_offset=%d", req
->extra_offset
);
3531 fprintf( stderr
, ", extra_size=%u", req
->extra_size
);
3532 dump_uint64( ", extra_value=", &req
->extra_value
);
3535 static void dump_set_class_info_reply( const struct set_class_info_reply
*req
)
3537 fprintf( stderr
, " old_atom=%04x", req
->old_atom
);
3538 fprintf( stderr
, ", old_style=%08x", req
->old_style
);
3539 fprintf( stderr
, ", old_extra=%d", req
->old_extra
);
3540 fprintf( stderr
, ", old_win_extra=%d", req
->old_win_extra
);
3541 dump_uint64( ", old_instance=", &req
->old_instance
);
3542 dump_uint64( ", old_extra_value=", &req
->old_extra_value
);
3545 static void dump_set_clipboard_info_request( const struct set_clipboard_info_request
*req
)
3547 fprintf( stderr
, " flags=%08x", req
->flags
);
3548 fprintf( stderr
, ", clipboard=%08x", req
->clipboard
);
3549 fprintf( stderr
, ", owner=%08x", req
->owner
);
3550 fprintf( stderr
, ", viewer=%08x", req
->viewer
);
3551 fprintf( stderr
, ", seqno=%08x", req
->seqno
);
3554 static void dump_set_clipboard_info_reply( const struct set_clipboard_info_reply
*req
)
3556 fprintf( stderr
, " flags=%08x", req
->flags
);
3557 fprintf( stderr
, ", old_clipboard=%08x", req
->old_clipboard
);
3558 fprintf( stderr
, ", old_owner=%08x", req
->old_owner
);
3559 fprintf( stderr
, ", old_viewer=%08x", req
->old_viewer
);
3560 fprintf( stderr
, ", seqno=%08x", req
->seqno
);
3563 static void dump_open_token_request( const struct open_token_request
*req
)
3565 fprintf( stderr
, " handle=%04x", req
->handle
);
3566 fprintf( stderr
, ", access=%08x", req
->access
);
3567 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3568 fprintf( stderr
, ", flags=%08x", req
->flags
);
3571 static void dump_open_token_reply( const struct open_token_reply
*req
)
3573 fprintf( stderr
, " token=%04x", req
->token
);
3576 static void dump_set_global_windows_request( const struct set_global_windows_request
*req
)
3578 fprintf( stderr
, " flags=%08x", req
->flags
);
3579 fprintf( stderr
, ", shell_window=%08x", req
->shell_window
);
3580 fprintf( stderr
, ", shell_listview=%08x", req
->shell_listview
);
3581 fprintf( stderr
, ", progman_window=%08x", req
->progman_window
);
3582 fprintf( stderr
, ", taskman_window=%08x", req
->taskman_window
);
3585 static void dump_set_global_windows_reply( const struct set_global_windows_reply
*req
)
3587 fprintf( stderr
, " old_shell_window=%08x", req
->old_shell_window
);
3588 fprintf( stderr
, ", old_shell_listview=%08x", req
->old_shell_listview
);
3589 fprintf( stderr
, ", old_progman_window=%08x", req
->old_progman_window
);
3590 fprintf( stderr
, ", old_taskman_window=%08x", req
->old_taskman_window
);
3593 static void dump_adjust_token_privileges_request( const struct adjust_token_privileges_request
*req
)
3595 fprintf( stderr
, " handle=%04x", req
->handle
);
3596 fprintf( stderr
, ", disable_all=%d", req
->disable_all
);
3597 fprintf( stderr
, ", get_modified_state=%d", req
->get_modified_state
);
3598 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size
);
3601 static void dump_adjust_token_privileges_reply( const struct adjust_token_privileges_reply
*req
)
3603 fprintf( stderr
, " len=%08x", req
->len
);
3604 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size
);
3607 static void dump_get_token_privileges_request( const struct get_token_privileges_request
*req
)
3609 fprintf( stderr
, " handle=%04x", req
->handle
);
3612 static void dump_get_token_privileges_reply( const struct get_token_privileges_reply
*req
)
3614 fprintf( stderr
, " len=%08x", req
->len
);
3615 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size
);
3618 static void dump_check_token_privileges_request( const struct check_token_privileges_request
*req
)
3620 fprintf( stderr
, " handle=%04x", req
->handle
);
3621 fprintf( stderr
, ", all_required=%d", req
->all_required
);
3622 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size
);
3625 static void dump_check_token_privileges_reply( const struct check_token_privileges_reply
*req
)
3627 fprintf( stderr
, " has_privileges=%d", req
->has_privileges
);
3628 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size
);
3631 static void dump_duplicate_token_request( const struct duplicate_token_request
*req
)
3633 fprintf( stderr
, " handle=%04x", req
->handle
);
3634 fprintf( stderr
, ", access=%08x", req
->access
);
3635 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3636 fprintf( stderr
, ", primary=%d", req
->primary
);
3637 fprintf( stderr
, ", impersonation_level=%d", req
->impersonation_level
);
3640 static void dump_duplicate_token_reply( const struct duplicate_token_reply
*req
)
3642 fprintf( stderr
, " new_handle=%04x", req
->new_handle
);
3645 static void dump_access_check_request( const struct access_check_request
*req
)
3647 fprintf( stderr
, " handle=%04x", req
->handle
);
3648 fprintf( stderr
, ", desired_access=%08x", req
->desired_access
);
3649 fprintf( stderr
, ", mapping_read=%08x", req
->mapping_read
);
3650 fprintf( stderr
, ", mapping_write=%08x", req
->mapping_write
);
3651 fprintf( stderr
, ", mapping_execute=%08x", req
->mapping_execute
);
3652 fprintf( stderr
, ", mapping_all=%08x", req
->mapping_all
);
3653 dump_varargs_security_descriptor( ", sd=", cur_size
);
3656 static void dump_access_check_reply( const struct access_check_reply
*req
)
3658 fprintf( stderr
, " access_granted=%08x", req
->access_granted
);
3659 fprintf( stderr
, ", access_status=%08x", req
->access_status
);
3660 fprintf( stderr
, ", privileges_len=%08x", req
->privileges_len
);
3661 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size
);
3664 static void dump_get_token_sid_request( const struct get_token_sid_request
*req
)
3666 fprintf( stderr
, " handle=%04x", req
->handle
);
3667 fprintf( stderr
, ", which_sid=%08x", req
->which_sid
);
3670 static void dump_get_token_sid_reply( const struct get_token_sid_reply
*req
)
3672 fprintf( stderr
, " sid_len=%u", req
->sid_len
);
3673 dump_varargs_SID( ", sid=", cur_size
);
3676 static void dump_get_token_groups_request( const struct get_token_groups_request
*req
)
3678 fprintf( stderr
, " handle=%04x", req
->handle
);
3681 static void dump_get_token_groups_reply( const struct get_token_groups_reply
*req
)
3683 fprintf( stderr
, " user_len=%u", req
->user_len
);
3684 dump_varargs_token_groups( ", user=", cur_size
);
3687 static void dump_get_token_default_dacl_request( const struct get_token_default_dacl_request
*req
)
3689 fprintf( stderr
, " handle=%04x", req
->handle
);
3692 static void dump_get_token_default_dacl_reply( const struct get_token_default_dacl_reply
*req
)
3694 fprintf( stderr
, " acl_len=%u", req
->acl_len
);
3695 dump_varargs_ACL( ", acl=", cur_size
);
3698 static void dump_set_token_default_dacl_request( const struct set_token_default_dacl_request
*req
)
3700 fprintf( stderr
, " handle=%04x", req
->handle
);
3701 dump_varargs_ACL( ", acl=", cur_size
);
3704 static void dump_set_security_object_request( const struct set_security_object_request
*req
)
3706 fprintf( stderr
, " handle=%04x", req
->handle
);
3707 fprintf( stderr
, ", security_info=%08x", req
->security_info
);
3708 dump_varargs_security_descriptor( ", sd=", cur_size
);
3711 static void dump_get_security_object_request( const struct get_security_object_request
*req
)
3713 fprintf( stderr
, " handle=%04x", req
->handle
);
3714 fprintf( stderr
, ", security_info=%08x", req
->security_info
);
3717 static void dump_get_security_object_reply( const struct get_security_object_reply
*req
)
3719 fprintf( stderr
, " sd_len=%08x", req
->sd_len
);
3720 dump_varargs_security_descriptor( ", sd=", cur_size
);
3723 static void dump_create_mailslot_request( const struct create_mailslot_request
*req
)
3725 fprintf( stderr
, " access=%08x", req
->access
);
3726 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3727 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
3728 dump_timeout( ", read_timeout=", &req
->read_timeout
);
3729 fprintf( stderr
, ", max_msgsize=%08x", req
->max_msgsize
);
3730 dump_varargs_unicode_str( ", name=", cur_size
);
3733 static void dump_create_mailslot_reply( const struct create_mailslot_reply
*req
)
3735 fprintf( stderr
, " handle=%04x", req
->handle
);
3738 static void dump_set_mailslot_info_request( const struct set_mailslot_info_request
*req
)
3740 fprintf( stderr
, " handle=%04x", req
->handle
);
3741 dump_timeout( ", read_timeout=", &req
->read_timeout
);
3742 fprintf( stderr
, ", flags=%08x", req
->flags
);
3745 static void dump_set_mailslot_info_reply( const struct set_mailslot_info_reply
*req
)
3747 dump_timeout( " read_timeout=", &req
->read_timeout
);
3748 fprintf( stderr
, ", max_msgsize=%08x", req
->max_msgsize
);
3751 static void dump_create_directory_request( const struct create_directory_request
*req
)
3753 fprintf( stderr
, " access=%08x", req
->access
);
3754 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3755 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
3756 dump_varargs_unicode_str( ", directory_name=", cur_size
);
3759 static void dump_create_directory_reply( const struct create_directory_reply
*req
)
3761 fprintf( stderr
, " handle=%04x", req
->handle
);
3764 static void dump_open_directory_request( const struct open_directory_request
*req
)
3766 fprintf( stderr
, " access=%08x", req
->access
);
3767 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3768 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
3769 dump_varargs_unicode_str( ", directory_name=", cur_size
);
3772 static void dump_open_directory_reply( const struct open_directory_reply
*req
)
3774 fprintf( stderr
, " handle=%04x", req
->handle
);
3777 static void dump_get_directory_entry_request( const struct get_directory_entry_request
*req
)
3779 fprintf( stderr
, " handle=%04x", req
->handle
);
3780 fprintf( stderr
, ", index=%08x", req
->index
);
3783 static void dump_get_directory_entry_reply( const struct get_directory_entry_reply
*req
)
3785 fprintf( stderr
, " name_len=%u", req
->name_len
);
3786 dump_varargs_unicode_str( ", name=", min(cur_size
,req
->name_len
) );
3787 dump_varargs_unicode_str( ", type=", cur_size
);
3790 static void dump_create_symlink_request( const struct create_symlink_request
*req
)
3792 fprintf( stderr
, " access=%08x", req
->access
);
3793 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3794 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
3795 fprintf( stderr
, ", name_len=%u", req
->name_len
);
3796 dump_varargs_unicode_str( ", name=", min(cur_size
,req
->name_len
) );
3797 dump_varargs_unicode_str( ", target_name=", cur_size
);
3800 static void dump_create_symlink_reply( const struct create_symlink_reply
*req
)
3802 fprintf( stderr
, " handle=%04x", req
->handle
);
3805 static void dump_open_symlink_request( const struct open_symlink_request
*req
)
3807 fprintf( stderr
, " access=%08x", req
->access
);
3808 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3809 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
3810 dump_varargs_unicode_str( ", name=", cur_size
);
3813 static void dump_open_symlink_reply( const struct open_symlink_reply
*req
)
3815 fprintf( stderr
, " handle=%04x", req
->handle
);
3818 static void dump_query_symlink_request( const struct query_symlink_request
*req
)
3820 fprintf( stderr
, " handle=%04x", req
->handle
);
3823 static void dump_query_symlink_reply( const struct query_symlink_reply
*req
)
3825 fprintf( stderr
, " total=%u", req
->total
);
3826 dump_varargs_unicode_str( ", target_name=", cur_size
);
3829 static void dump_get_object_info_request( const struct get_object_info_request
*req
)
3831 fprintf( stderr
, " handle=%04x", req
->handle
);
3834 static void dump_get_object_info_reply( const struct get_object_info_reply
*req
)
3836 fprintf( stderr
, " access=%08x", req
->access
);
3837 fprintf( stderr
, ", ref_count=%08x", req
->ref_count
);
3838 fprintf( stderr
, ", total=%u", req
->total
);
3839 dump_varargs_unicode_str( ", name=", cur_size
);
3842 static void dump_unlink_object_request( const struct unlink_object_request
*req
)
3844 fprintf( stderr
, " handle=%04x", req
->handle
);
3847 static void dump_get_token_impersonation_level_request( const struct get_token_impersonation_level_request
*req
)
3849 fprintf( stderr
, " handle=%04x", req
->handle
);
3852 static void dump_get_token_impersonation_level_reply( const struct get_token_impersonation_level_reply
*req
)
3854 fprintf( stderr
, " impersonation_level=%d", req
->impersonation_level
);
3857 static void dump_allocate_locally_unique_id_request( const struct allocate_locally_unique_id_request
*req
)
3861 static void dump_allocate_locally_unique_id_reply( const struct allocate_locally_unique_id_reply
*req
)
3863 dump_luid( " luid=", &req
->luid
);
3866 static void dump_create_device_manager_request( const struct create_device_manager_request
*req
)
3868 fprintf( stderr
, " access=%08x", req
->access
);
3869 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3872 static void dump_create_device_manager_reply( const struct create_device_manager_reply
*req
)
3874 fprintf( stderr
, " handle=%04x", req
->handle
);
3877 static void dump_create_device_request( const struct create_device_request
*req
)
3879 fprintf( stderr
, " access=%08x", req
->access
);
3880 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3881 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
3882 dump_uint64( ", user_ptr=", &req
->user_ptr
);
3883 fprintf( stderr
, ", manager=%04x", req
->manager
);
3884 dump_varargs_unicode_str( ", name=", cur_size
);
3887 static void dump_create_device_reply( const struct create_device_reply
*req
)
3889 fprintf( stderr
, " handle=%04x", req
->handle
);
3892 static void dump_delete_device_request( const struct delete_device_request
*req
)
3894 fprintf( stderr
, " handle=%04x", req
->handle
);
3897 static void dump_get_next_device_request_request( const struct get_next_device_request_request
*req
)
3899 fprintf( stderr
, " manager=%04x", req
->manager
);
3900 fprintf( stderr
, ", prev=%04x", req
->prev
);
3901 fprintf( stderr
, ", status=%08x", req
->status
);
3902 dump_varargs_bytes( ", prev_data=", cur_size
);
3905 static void dump_get_next_device_request_reply( const struct get_next_device_request_reply
*req
)
3907 fprintf( stderr
, " next=%04x", req
->next
);
3908 dump_ioctl_code( ", code=", &req
->code
);
3909 dump_uint64( ", user_ptr=", &req
->user_ptr
);
3910 fprintf( stderr
, ", client_pid=%04x", req
->client_pid
);
3911 fprintf( stderr
, ", client_tid=%04x", req
->client_tid
);
3912 fprintf( stderr
, ", in_size=%u", req
->in_size
);
3913 fprintf( stderr
, ", out_size=%u", req
->out_size
);
3914 dump_varargs_bytes( ", next_data=", cur_size
);
3917 static void dump_make_process_system_request( const struct make_process_system_request
*req
)
3921 static void dump_make_process_system_reply( const struct make_process_system_reply
*req
)
3923 fprintf( stderr
, " event=%04x", req
->event
);
3926 static void dump_get_token_statistics_request( const struct get_token_statistics_request
*req
)
3928 fprintf( stderr
, " handle=%04x", req
->handle
);
3931 static void dump_get_token_statistics_reply( const struct get_token_statistics_reply
*req
)
3933 dump_luid( " token_id=", &req
->token_id
);
3934 dump_luid( ", modified_id=", &req
->modified_id
);
3935 fprintf( stderr
, ", primary=%d", req
->primary
);
3936 fprintf( stderr
, ", impersonation_level=%d", req
->impersonation_level
);
3937 fprintf( stderr
, ", group_count=%d", req
->group_count
);
3938 fprintf( stderr
, ", privilege_count=%d", req
->privilege_count
);
3941 static void dump_create_completion_request( const struct create_completion_request
*req
)
3943 fprintf( stderr
, " access=%08x", req
->access
);
3944 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3945 fprintf( stderr
, ", concurrent=%08x", req
->concurrent
);
3946 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
3947 dump_varargs_string( ", filename=", cur_size
);
3950 static void dump_create_completion_reply( const struct create_completion_reply
*req
)
3952 fprintf( stderr
, " handle=%04x", req
->handle
);
3955 static void dump_open_completion_request( const struct open_completion_request
*req
)
3957 fprintf( stderr
, " access=%08x", req
->access
);
3958 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3959 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
3960 dump_varargs_string( ", filename=", cur_size
);
3963 static void dump_open_completion_reply( const struct open_completion_reply
*req
)
3965 fprintf( stderr
, " handle=%04x", req
->handle
);
3968 static void dump_add_completion_request( const struct add_completion_request
*req
)
3970 fprintf( stderr
, " handle=%04x", req
->handle
);
3971 dump_uint64( ", ckey=", &req
->ckey
);
3972 dump_uint64( ", cvalue=", &req
->cvalue
);
3973 dump_uint64( ", information=", &req
->information
);
3974 fprintf( stderr
, ", status=%08x", req
->status
);
3977 static void dump_remove_completion_request( const struct remove_completion_request
*req
)
3979 fprintf( stderr
, " handle=%04x", req
->handle
);
3982 static void dump_remove_completion_reply( const struct remove_completion_reply
*req
)
3984 dump_uint64( " ckey=", &req
->ckey
);
3985 dump_uint64( ", cvalue=", &req
->cvalue
);
3986 dump_uint64( ", information=", &req
->information
);
3987 fprintf( stderr
, ", status=%08x", req
->status
);
3990 static void dump_query_completion_request( const struct query_completion_request
*req
)
3992 fprintf( stderr
, " handle=%04x", req
->handle
);
3995 static void dump_query_completion_reply( const struct query_completion_reply
*req
)
3997 fprintf( stderr
, " depth=%08x", req
->depth
);
4000 static void dump_set_completion_info_request( const struct set_completion_info_request
*req
)
4002 fprintf( stderr
, " handle=%04x", req
->handle
);
4003 dump_uint64( ", ckey=", &req
->ckey
);
4004 fprintf( stderr
, ", chandle=%04x", req
->chandle
);
4007 static void dump_add_fd_completion_request( const struct add_fd_completion_request
*req
)
4009 fprintf( stderr
, " handle=%04x", req
->handle
);
4010 dump_uint64( ", cvalue=", &req
->cvalue
);
4011 dump_uint64( ", information=", &req
->information
);
4012 fprintf( stderr
, ", status=%08x", req
->status
);
4015 static void dump_get_window_layered_info_request( const struct get_window_layered_info_request
*req
)
4017 fprintf( stderr
, " handle=%08x", req
->handle
);
4020 static void dump_get_window_layered_info_reply( const struct get_window_layered_info_reply
*req
)
4022 fprintf( stderr
, " color_key=%08x", req
->color_key
);
4023 fprintf( stderr
, ", alpha=%08x", req
->alpha
);
4024 fprintf( stderr
, ", flags=%08x", req
->flags
);
4027 static void dump_set_window_layered_info_request( const struct set_window_layered_info_request
*req
)
4029 fprintf( stderr
, " handle=%08x", req
->handle
);
4030 fprintf( stderr
, ", color_key=%08x", req
->color_key
);
4031 fprintf( stderr
, ", alpha=%08x", req
->alpha
);
4032 fprintf( stderr
, ", flags=%08x", req
->flags
);
4035 static void dump_alloc_user_handle_request( const struct alloc_user_handle_request
*req
)
4039 static void dump_alloc_user_handle_reply( const struct alloc_user_handle_reply
*req
)
4041 fprintf( stderr
, " handle=%08x", req
->handle
);
4044 static void dump_free_user_handle_request( const struct free_user_handle_request
*req
)
4046 fprintf( stderr
, " handle=%08x", req
->handle
);
4049 static void dump_set_cursor_request( const struct set_cursor_request
*req
)
4051 fprintf( stderr
, " flags=%08x", req
->flags
);
4052 fprintf( stderr
, ", handle=%08x", req
->handle
);
4053 fprintf( stderr
, ", show_count=%d", req
->show_count
);
4054 fprintf( stderr
, ", x=%d", req
->x
);
4055 fprintf( stderr
, ", y=%d", req
->y
);
4056 dump_rectangle( ", clip=", &req
->clip
);
4057 fprintf( stderr
, ", clip_msg=%08x", req
->clip_msg
);
4060 static void dump_set_cursor_reply( const struct set_cursor_reply
*req
)
4062 fprintf( stderr
, " prev_handle=%08x", req
->prev_handle
);
4063 fprintf( stderr
, ", prev_count=%d", req
->prev_count
);
4064 fprintf( stderr
, ", prev_x=%d", req
->prev_x
);
4065 fprintf( stderr
, ", prev_y=%d", req
->prev_y
);
4066 fprintf( stderr
, ", new_x=%d", req
->new_x
);
4067 fprintf( stderr
, ", new_y=%d", req
->new_y
);
4068 dump_rectangle( ", new_clip=", &req
->new_clip
);
4069 fprintf( stderr
, ", last_change=%08x", req
->last_change
);
4072 static void dump_update_rawinput_devices_request( const struct update_rawinput_devices_request
*req
)
4074 dump_varargs_rawinput_devices( " devices=", cur_size
);
4077 static void dump_get_suspend_context_request( const struct get_suspend_context_request
*req
)
4081 static void dump_get_suspend_context_reply( const struct get_suspend_context_reply
*req
)
4083 dump_varargs_context( " context=", cur_size
);
4086 static void dump_set_suspend_context_request( const struct set_suspend_context_request
*req
)
4088 dump_varargs_context( " context=", cur_size
);
4091 static const dump_func req_dumpers
[REQ_NB_REQUESTS
] = {
4092 (dump_func
)dump_new_process_request
,
4093 (dump_func
)dump_get_new_process_info_request
,
4094 (dump_func
)dump_new_thread_request
,
4095 (dump_func
)dump_get_startup_info_request
,
4096 (dump_func
)dump_init_process_done_request
,
4097 (dump_func
)dump_init_thread_request
,
4098 (dump_func
)dump_terminate_process_request
,
4099 (dump_func
)dump_terminate_thread_request
,
4100 (dump_func
)dump_get_process_info_request
,
4101 (dump_func
)dump_set_process_info_request
,
4102 (dump_func
)dump_get_thread_info_request
,
4103 (dump_func
)dump_set_thread_info_request
,
4104 (dump_func
)dump_get_dll_info_request
,
4105 (dump_func
)dump_suspend_thread_request
,
4106 (dump_func
)dump_resume_thread_request
,
4107 (dump_func
)dump_load_dll_request
,
4108 (dump_func
)dump_unload_dll_request
,
4109 (dump_func
)dump_queue_apc_request
,
4110 (dump_func
)dump_get_apc_result_request
,
4111 (dump_func
)dump_close_handle_request
,
4112 (dump_func
)dump_set_handle_info_request
,
4113 (dump_func
)dump_dup_handle_request
,
4114 (dump_func
)dump_open_process_request
,
4115 (dump_func
)dump_open_thread_request
,
4116 (dump_func
)dump_select_request
,
4117 (dump_func
)dump_create_event_request
,
4118 (dump_func
)dump_event_op_request
,
4119 (dump_func
)dump_query_event_request
,
4120 (dump_func
)dump_open_event_request
,
4121 (dump_func
)dump_create_keyed_event_request
,
4122 (dump_func
)dump_open_keyed_event_request
,
4123 (dump_func
)dump_create_mutex_request
,
4124 (dump_func
)dump_release_mutex_request
,
4125 (dump_func
)dump_open_mutex_request
,
4126 (dump_func
)dump_create_semaphore_request
,
4127 (dump_func
)dump_release_semaphore_request
,
4128 (dump_func
)dump_query_semaphore_request
,
4129 (dump_func
)dump_open_semaphore_request
,
4130 (dump_func
)dump_create_file_request
,
4131 (dump_func
)dump_open_file_object_request
,
4132 (dump_func
)dump_alloc_file_handle_request
,
4133 (dump_func
)dump_get_handle_unix_name_request
,
4134 (dump_func
)dump_get_handle_fd_request
,
4135 (dump_func
)dump_flush_file_request
,
4136 (dump_func
)dump_lock_file_request
,
4137 (dump_func
)dump_unlock_file_request
,
4138 (dump_func
)dump_create_socket_request
,
4139 (dump_func
)dump_accept_socket_request
,
4140 (dump_func
)dump_accept_into_socket_request
,
4141 (dump_func
)dump_set_socket_event_request
,
4142 (dump_func
)dump_get_socket_event_request
,
4143 (dump_func
)dump_get_socket_info_request
,
4144 (dump_func
)dump_enable_socket_event_request
,
4145 (dump_func
)dump_set_socket_deferred_request
,
4146 (dump_func
)dump_alloc_console_request
,
4147 (dump_func
)dump_free_console_request
,
4148 (dump_func
)dump_get_console_renderer_events_request
,
4149 (dump_func
)dump_open_console_request
,
4150 (dump_func
)dump_get_console_wait_event_request
,
4151 (dump_func
)dump_get_console_mode_request
,
4152 (dump_func
)dump_set_console_mode_request
,
4153 (dump_func
)dump_set_console_input_info_request
,
4154 (dump_func
)dump_get_console_input_info_request
,
4155 (dump_func
)dump_append_console_input_history_request
,
4156 (dump_func
)dump_get_console_input_history_request
,
4157 (dump_func
)dump_create_console_output_request
,
4158 (dump_func
)dump_set_console_output_info_request
,
4159 (dump_func
)dump_get_console_output_info_request
,
4160 (dump_func
)dump_write_console_input_request
,
4161 (dump_func
)dump_read_console_input_request
,
4162 (dump_func
)dump_write_console_output_request
,
4163 (dump_func
)dump_fill_console_output_request
,
4164 (dump_func
)dump_read_console_output_request
,
4165 (dump_func
)dump_move_console_output_request
,
4166 (dump_func
)dump_send_console_signal_request
,
4167 (dump_func
)dump_read_directory_changes_request
,
4168 (dump_func
)dump_read_change_request
,
4169 (dump_func
)dump_create_mapping_request
,
4170 (dump_func
)dump_open_mapping_request
,
4171 (dump_func
)dump_get_mapping_info_request
,
4172 (dump_func
)dump_get_mapping_committed_range_request
,
4173 (dump_func
)dump_add_mapping_committed_range_request
,
4174 (dump_func
)dump_create_snapshot_request
,
4175 (dump_func
)dump_next_process_request
,
4176 (dump_func
)dump_next_thread_request
,
4177 (dump_func
)dump_wait_debug_event_request
,
4178 (dump_func
)dump_queue_exception_event_request
,
4179 (dump_func
)dump_get_exception_status_request
,
4180 (dump_func
)dump_continue_debug_event_request
,
4181 (dump_func
)dump_debug_process_request
,
4182 (dump_func
)dump_debug_break_request
,
4183 (dump_func
)dump_set_debugger_kill_on_exit_request
,
4184 (dump_func
)dump_read_process_memory_request
,
4185 (dump_func
)dump_write_process_memory_request
,
4186 (dump_func
)dump_create_key_request
,
4187 (dump_func
)dump_open_key_request
,
4188 (dump_func
)dump_delete_key_request
,
4189 (dump_func
)dump_flush_key_request
,
4190 (dump_func
)dump_enum_key_request
,
4191 (dump_func
)dump_set_key_value_request
,
4192 (dump_func
)dump_get_key_value_request
,
4193 (dump_func
)dump_enum_key_value_request
,
4194 (dump_func
)dump_delete_key_value_request
,
4195 (dump_func
)dump_load_registry_request
,
4196 (dump_func
)dump_unload_registry_request
,
4197 (dump_func
)dump_save_registry_request
,
4198 (dump_func
)dump_set_registry_notification_request
,
4199 (dump_func
)dump_create_timer_request
,
4200 (dump_func
)dump_open_timer_request
,
4201 (dump_func
)dump_set_timer_request
,
4202 (dump_func
)dump_cancel_timer_request
,
4203 (dump_func
)dump_get_timer_info_request
,
4204 (dump_func
)dump_get_thread_context_request
,
4205 (dump_func
)dump_set_thread_context_request
,
4206 (dump_func
)dump_get_selector_entry_request
,
4207 (dump_func
)dump_add_atom_request
,
4208 (dump_func
)dump_delete_atom_request
,
4209 (dump_func
)dump_find_atom_request
,
4210 (dump_func
)dump_get_atom_information_request
,
4211 (dump_func
)dump_set_atom_information_request
,
4212 (dump_func
)dump_empty_atom_table_request
,
4213 (dump_func
)dump_init_atom_table_request
,
4214 (dump_func
)dump_get_msg_queue_request
,
4215 (dump_func
)dump_set_queue_fd_request
,
4216 (dump_func
)dump_set_queue_mask_request
,
4217 (dump_func
)dump_get_queue_status_request
,
4218 (dump_func
)dump_get_process_idle_event_request
,
4219 (dump_func
)dump_send_message_request
,
4220 (dump_func
)dump_post_quit_message_request
,
4221 (dump_func
)dump_send_hardware_message_request
,
4222 (dump_func
)dump_get_message_request
,
4223 (dump_func
)dump_reply_message_request
,
4224 (dump_func
)dump_accept_hardware_message_request
,
4225 (dump_func
)dump_get_message_reply_request
,
4226 (dump_func
)dump_set_win_timer_request
,
4227 (dump_func
)dump_kill_win_timer_request
,
4228 (dump_func
)dump_is_window_hung_request
,
4229 (dump_func
)dump_get_serial_info_request
,
4230 (dump_func
)dump_set_serial_info_request
,
4231 (dump_func
)dump_register_async_request
,
4232 (dump_func
)dump_cancel_async_request
,
4233 (dump_func
)dump_ioctl_request
,
4234 (dump_func
)dump_get_ioctl_result_request
,
4235 (dump_func
)dump_create_named_pipe_request
,
4236 (dump_func
)dump_get_named_pipe_info_request
,
4237 (dump_func
)dump_set_named_pipe_info_request
,
4238 (dump_func
)dump_create_window_request
,
4239 (dump_func
)dump_destroy_window_request
,
4240 (dump_func
)dump_get_desktop_window_request
,
4241 (dump_func
)dump_set_window_owner_request
,
4242 (dump_func
)dump_get_window_info_request
,
4243 (dump_func
)dump_set_window_info_request
,
4244 (dump_func
)dump_set_parent_request
,
4245 (dump_func
)dump_get_window_parents_request
,
4246 (dump_func
)dump_get_window_children_request
,
4247 (dump_func
)dump_get_window_children_from_point_request
,
4248 (dump_func
)dump_get_window_tree_request
,
4249 (dump_func
)dump_set_window_pos_request
,
4250 (dump_func
)dump_get_window_rectangles_request
,
4251 (dump_func
)dump_get_window_text_request
,
4252 (dump_func
)dump_set_window_text_request
,
4253 (dump_func
)dump_get_windows_offset_request
,
4254 (dump_func
)dump_get_visible_region_request
,
4255 (dump_func
)dump_get_surface_region_request
,
4256 (dump_func
)dump_get_window_region_request
,
4257 (dump_func
)dump_set_window_region_request
,
4258 (dump_func
)dump_get_update_region_request
,
4259 (dump_func
)dump_update_window_zorder_request
,
4260 (dump_func
)dump_redraw_window_request
,
4261 (dump_func
)dump_set_window_property_request
,
4262 (dump_func
)dump_remove_window_property_request
,
4263 (dump_func
)dump_get_window_property_request
,
4264 (dump_func
)dump_get_window_properties_request
,
4265 (dump_func
)dump_create_winstation_request
,
4266 (dump_func
)dump_open_winstation_request
,
4267 (dump_func
)dump_close_winstation_request
,
4268 (dump_func
)dump_get_process_winstation_request
,
4269 (dump_func
)dump_set_process_winstation_request
,
4270 (dump_func
)dump_enum_winstation_request
,
4271 (dump_func
)dump_create_desktop_request
,
4272 (dump_func
)dump_open_desktop_request
,
4273 (dump_func
)dump_open_input_desktop_request
,
4274 (dump_func
)dump_close_desktop_request
,
4275 (dump_func
)dump_get_thread_desktop_request
,
4276 (dump_func
)dump_set_thread_desktop_request
,
4277 (dump_func
)dump_enum_desktop_request
,
4278 (dump_func
)dump_set_user_object_info_request
,
4279 (dump_func
)dump_register_hotkey_request
,
4280 (dump_func
)dump_unregister_hotkey_request
,
4281 (dump_func
)dump_attach_thread_input_request
,
4282 (dump_func
)dump_get_thread_input_request
,
4283 (dump_func
)dump_get_last_input_time_request
,
4284 (dump_func
)dump_get_key_state_request
,
4285 (dump_func
)dump_set_key_state_request
,
4286 (dump_func
)dump_set_foreground_window_request
,
4287 (dump_func
)dump_set_focus_window_request
,
4288 (dump_func
)dump_set_active_window_request
,
4289 (dump_func
)dump_set_capture_window_request
,
4290 (dump_func
)dump_set_caret_window_request
,
4291 (dump_func
)dump_set_caret_info_request
,
4292 (dump_func
)dump_set_hook_request
,
4293 (dump_func
)dump_remove_hook_request
,
4294 (dump_func
)dump_start_hook_chain_request
,
4295 (dump_func
)dump_finish_hook_chain_request
,
4296 (dump_func
)dump_get_hook_info_request
,
4297 (dump_func
)dump_create_class_request
,
4298 (dump_func
)dump_destroy_class_request
,
4299 (dump_func
)dump_set_class_info_request
,
4300 (dump_func
)dump_set_clipboard_info_request
,
4301 (dump_func
)dump_open_token_request
,
4302 (dump_func
)dump_set_global_windows_request
,
4303 (dump_func
)dump_adjust_token_privileges_request
,
4304 (dump_func
)dump_get_token_privileges_request
,
4305 (dump_func
)dump_check_token_privileges_request
,
4306 (dump_func
)dump_duplicate_token_request
,
4307 (dump_func
)dump_access_check_request
,
4308 (dump_func
)dump_get_token_sid_request
,
4309 (dump_func
)dump_get_token_groups_request
,
4310 (dump_func
)dump_get_token_default_dacl_request
,
4311 (dump_func
)dump_set_token_default_dacl_request
,
4312 (dump_func
)dump_set_security_object_request
,
4313 (dump_func
)dump_get_security_object_request
,
4314 (dump_func
)dump_create_mailslot_request
,
4315 (dump_func
)dump_set_mailslot_info_request
,
4316 (dump_func
)dump_create_directory_request
,
4317 (dump_func
)dump_open_directory_request
,
4318 (dump_func
)dump_get_directory_entry_request
,
4319 (dump_func
)dump_create_symlink_request
,
4320 (dump_func
)dump_open_symlink_request
,
4321 (dump_func
)dump_query_symlink_request
,
4322 (dump_func
)dump_get_object_info_request
,
4323 (dump_func
)dump_unlink_object_request
,
4324 (dump_func
)dump_get_token_impersonation_level_request
,
4325 (dump_func
)dump_allocate_locally_unique_id_request
,
4326 (dump_func
)dump_create_device_manager_request
,
4327 (dump_func
)dump_create_device_request
,
4328 (dump_func
)dump_delete_device_request
,
4329 (dump_func
)dump_get_next_device_request_request
,
4330 (dump_func
)dump_make_process_system_request
,
4331 (dump_func
)dump_get_token_statistics_request
,
4332 (dump_func
)dump_create_completion_request
,
4333 (dump_func
)dump_open_completion_request
,
4334 (dump_func
)dump_add_completion_request
,
4335 (dump_func
)dump_remove_completion_request
,
4336 (dump_func
)dump_query_completion_request
,
4337 (dump_func
)dump_set_completion_info_request
,
4338 (dump_func
)dump_add_fd_completion_request
,
4339 (dump_func
)dump_get_window_layered_info_request
,
4340 (dump_func
)dump_set_window_layered_info_request
,
4341 (dump_func
)dump_alloc_user_handle_request
,
4342 (dump_func
)dump_free_user_handle_request
,
4343 (dump_func
)dump_set_cursor_request
,
4344 (dump_func
)dump_update_rawinput_devices_request
,
4345 (dump_func
)dump_get_suspend_context_request
,
4346 (dump_func
)dump_set_suspend_context_request
,
4349 static const dump_func reply_dumpers
[REQ_NB_REQUESTS
] = {
4350 (dump_func
)dump_new_process_reply
,
4351 (dump_func
)dump_get_new_process_info_reply
,
4352 (dump_func
)dump_new_thread_reply
,
4353 (dump_func
)dump_get_startup_info_reply
,
4355 (dump_func
)dump_init_thread_reply
,
4356 (dump_func
)dump_terminate_process_reply
,
4357 (dump_func
)dump_terminate_thread_reply
,
4358 (dump_func
)dump_get_process_info_reply
,
4360 (dump_func
)dump_get_thread_info_reply
,
4362 (dump_func
)dump_get_dll_info_reply
,
4363 (dump_func
)dump_suspend_thread_reply
,
4364 (dump_func
)dump_resume_thread_reply
,
4367 (dump_func
)dump_queue_apc_reply
,
4368 (dump_func
)dump_get_apc_result_reply
,
4370 (dump_func
)dump_set_handle_info_reply
,
4371 (dump_func
)dump_dup_handle_reply
,
4372 (dump_func
)dump_open_process_reply
,
4373 (dump_func
)dump_open_thread_reply
,
4374 (dump_func
)dump_select_reply
,
4375 (dump_func
)dump_create_event_reply
,
4377 (dump_func
)dump_query_event_reply
,
4378 (dump_func
)dump_open_event_reply
,
4379 (dump_func
)dump_create_keyed_event_reply
,
4380 (dump_func
)dump_open_keyed_event_reply
,
4381 (dump_func
)dump_create_mutex_reply
,
4382 (dump_func
)dump_release_mutex_reply
,
4383 (dump_func
)dump_open_mutex_reply
,
4384 (dump_func
)dump_create_semaphore_reply
,
4385 (dump_func
)dump_release_semaphore_reply
,
4386 (dump_func
)dump_query_semaphore_reply
,
4387 (dump_func
)dump_open_semaphore_reply
,
4388 (dump_func
)dump_create_file_reply
,
4389 (dump_func
)dump_open_file_object_reply
,
4390 (dump_func
)dump_alloc_file_handle_reply
,
4391 (dump_func
)dump_get_handle_unix_name_reply
,
4392 (dump_func
)dump_get_handle_fd_reply
,
4393 (dump_func
)dump_flush_file_reply
,
4394 (dump_func
)dump_lock_file_reply
,
4396 (dump_func
)dump_create_socket_reply
,
4397 (dump_func
)dump_accept_socket_reply
,
4400 (dump_func
)dump_get_socket_event_reply
,
4401 (dump_func
)dump_get_socket_info_reply
,
4404 (dump_func
)dump_alloc_console_reply
,
4406 (dump_func
)dump_get_console_renderer_events_reply
,
4407 (dump_func
)dump_open_console_reply
,
4408 (dump_func
)dump_get_console_wait_event_reply
,
4409 (dump_func
)dump_get_console_mode_reply
,
4412 (dump_func
)dump_get_console_input_info_reply
,
4414 (dump_func
)dump_get_console_input_history_reply
,
4415 (dump_func
)dump_create_console_output_reply
,
4417 (dump_func
)dump_get_console_output_info_reply
,
4418 (dump_func
)dump_write_console_input_reply
,
4419 (dump_func
)dump_read_console_input_reply
,
4420 (dump_func
)dump_write_console_output_reply
,
4421 (dump_func
)dump_fill_console_output_reply
,
4422 (dump_func
)dump_read_console_output_reply
,
4426 (dump_func
)dump_read_change_reply
,
4427 (dump_func
)dump_create_mapping_reply
,
4428 (dump_func
)dump_open_mapping_reply
,
4429 (dump_func
)dump_get_mapping_info_reply
,
4430 (dump_func
)dump_get_mapping_committed_range_reply
,
4432 (dump_func
)dump_create_snapshot_reply
,
4433 (dump_func
)dump_next_process_reply
,
4434 (dump_func
)dump_next_thread_reply
,
4435 (dump_func
)dump_wait_debug_event_reply
,
4436 (dump_func
)dump_queue_exception_event_reply
,
4437 (dump_func
)dump_get_exception_status_reply
,
4440 (dump_func
)dump_debug_break_reply
,
4442 (dump_func
)dump_read_process_memory_reply
,
4444 (dump_func
)dump_create_key_reply
,
4445 (dump_func
)dump_open_key_reply
,
4448 (dump_func
)dump_enum_key_reply
,
4450 (dump_func
)dump_get_key_value_reply
,
4451 (dump_func
)dump_enum_key_value_reply
,
4457 (dump_func
)dump_create_timer_reply
,
4458 (dump_func
)dump_open_timer_reply
,
4459 (dump_func
)dump_set_timer_reply
,
4460 (dump_func
)dump_cancel_timer_reply
,
4461 (dump_func
)dump_get_timer_info_reply
,
4462 (dump_func
)dump_get_thread_context_reply
,
4463 (dump_func
)dump_set_thread_context_reply
,
4464 (dump_func
)dump_get_selector_entry_reply
,
4465 (dump_func
)dump_add_atom_reply
,
4467 (dump_func
)dump_find_atom_reply
,
4468 (dump_func
)dump_get_atom_information_reply
,
4471 (dump_func
)dump_init_atom_table_reply
,
4472 (dump_func
)dump_get_msg_queue_reply
,
4474 (dump_func
)dump_set_queue_mask_reply
,
4475 (dump_func
)dump_get_queue_status_reply
,
4476 (dump_func
)dump_get_process_idle_event_reply
,
4479 (dump_func
)dump_send_hardware_message_reply
,
4480 (dump_func
)dump_get_message_reply
,
4483 (dump_func
)dump_get_message_reply_reply
,
4484 (dump_func
)dump_set_win_timer_reply
,
4486 (dump_func
)dump_is_window_hung_reply
,
4487 (dump_func
)dump_get_serial_info_reply
,
4491 (dump_func
)dump_ioctl_reply
,
4492 (dump_func
)dump_get_ioctl_result_reply
,
4493 (dump_func
)dump_create_named_pipe_reply
,
4494 (dump_func
)dump_get_named_pipe_info_reply
,
4496 (dump_func
)dump_create_window_reply
,
4498 (dump_func
)dump_get_desktop_window_reply
,
4499 (dump_func
)dump_set_window_owner_reply
,
4500 (dump_func
)dump_get_window_info_reply
,
4501 (dump_func
)dump_set_window_info_reply
,
4502 (dump_func
)dump_set_parent_reply
,
4503 (dump_func
)dump_get_window_parents_reply
,
4504 (dump_func
)dump_get_window_children_reply
,
4505 (dump_func
)dump_get_window_children_from_point_reply
,
4506 (dump_func
)dump_get_window_tree_reply
,
4507 (dump_func
)dump_set_window_pos_reply
,
4508 (dump_func
)dump_get_window_rectangles_reply
,
4509 (dump_func
)dump_get_window_text_reply
,
4511 (dump_func
)dump_get_windows_offset_reply
,
4512 (dump_func
)dump_get_visible_region_reply
,
4513 (dump_func
)dump_get_surface_region_reply
,
4514 (dump_func
)dump_get_window_region_reply
,
4516 (dump_func
)dump_get_update_region_reply
,
4520 (dump_func
)dump_remove_window_property_reply
,
4521 (dump_func
)dump_get_window_property_reply
,
4522 (dump_func
)dump_get_window_properties_reply
,
4523 (dump_func
)dump_create_winstation_reply
,
4524 (dump_func
)dump_open_winstation_reply
,
4526 (dump_func
)dump_get_process_winstation_reply
,
4528 (dump_func
)dump_enum_winstation_reply
,
4529 (dump_func
)dump_create_desktop_reply
,
4530 (dump_func
)dump_open_desktop_reply
,
4531 (dump_func
)dump_open_input_desktop_reply
,
4533 (dump_func
)dump_get_thread_desktop_reply
,
4535 (dump_func
)dump_enum_desktop_reply
,
4536 (dump_func
)dump_set_user_object_info_reply
,
4537 (dump_func
)dump_register_hotkey_reply
,
4538 (dump_func
)dump_unregister_hotkey_reply
,
4540 (dump_func
)dump_get_thread_input_reply
,
4541 (dump_func
)dump_get_last_input_time_reply
,
4542 (dump_func
)dump_get_key_state_reply
,
4544 (dump_func
)dump_set_foreground_window_reply
,
4545 (dump_func
)dump_set_focus_window_reply
,
4546 (dump_func
)dump_set_active_window_reply
,
4547 (dump_func
)dump_set_capture_window_reply
,
4548 (dump_func
)dump_set_caret_window_reply
,
4549 (dump_func
)dump_set_caret_info_reply
,
4550 (dump_func
)dump_set_hook_reply
,
4551 (dump_func
)dump_remove_hook_reply
,
4552 (dump_func
)dump_start_hook_chain_reply
,
4554 (dump_func
)dump_get_hook_info_reply
,
4555 (dump_func
)dump_create_class_reply
,
4556 (dump_func
)dump_destroy_class_reply
,
4557 (dump_func
)dump_set_class_info_reply
,
4558 (dump_func
)dump_set_clipboard_info_reply
,
4559 (dump_func
)dump_open_token_reply
,
4560 (dump_func
)dump_set_global_windows_reply
,
4561 (dump_func
)dump_adjust_token_privileges_reply
,
4562 (dump_func
)dump_get_token_privileges_reply
,
4563 (dump_func
)dump_check_token_privileges_reply
,
4564 (dump_func
)dump_duplicate_token_reply
,
4565 (dump_func
)dump_access_check_reply
,
4566 (dump_func
)dump_get_token_sid_reply
,
4567 (dump_func
)dump_get_token_groups_reply
,
4568 (dump_func
)dump_get_token_default_dacl_reply
,
4571 (dump_func
)dump_get_security_object_reply
,
4572 (dump_func
)dump_create_mailslot_reply
,
4573 (dump_func
)dump_set_mailslot_info_reply
,
4574 (dump_func
)dump_create_directory_reply
,
4575 (dump_func
)dump_open_directory_reply
,
4576 (dump_func
)dump_get_directory_entry_reply
,
4577 (dump_func
)dump_create_symlink_reply
,
4578 (dump_func
)dump_open_symlink_reply
,
4579 (dump_func
)dump_query_symlink_reply
,
4580 (dump_func
)dump_get_object_info_reply
,
4582 (dump_func
)dump_get_token_impersonation_level_reply
,
4583 (dump_func
)dump_allocate_locally_unique_id_reply
,
4584 (dump_func
)dump_create_device_manager_reply
,
4585 (dump_func
)dump_create_device_reply
,
4587 (dump_func
)dump_get_next_device_request_reply
,
4588 (dump_func
)dump_make_process_system_reply
,
4589 (dump_func
)dump_get_token_statistics_reply
,
4590 (dump_func
)dump_create_completion_reply
,
4591 (dump_func
)dump_open_completion_reply
,
4593 (dump_func
)dump_remove_completion_reply
,
4594 (dump_func
)dump_query_completion_reply
,
4597 (dump_func
)dump_get_window_layered_info_reply
,
4599 (dump_func
)dump_alloc_user_handle_reply
,
4601 (dump_func
)dump_set_cursor_reply
,
4603 (dump_func
)dump_get_suspend_context_reply
,
4607 static const char * const req_names
[REQ_NB_REQUESTS
] = {
4609 "get_new_process_info",
4612 "init_process_done",
4614 "terminate_process",
4637 "create_keyed_event",
4643 "release_semaphore",
4648 "alloc_file_handle",
4649 "get_handle_unix_name",
4656 "accept_into_socket",
4660 "enable_socket_event",
4661 "set_socket_deferred",
4664 "get_console_renderer_events",
4666 "get_console_wait_event",
4669 "set_console_input_info",
4670 "get_console_input_info",
4671 "append_console_input_history",
4672 "get_console_input_history",
4673 "create_console_output",
4674 "set_console_output_info",
4675 "get_console_output_info",
4676 "write_console_input",
4677 "read_console_input",
4678 "write_console_output",
4679 "fill_console_output",
4680 "read_console_output",
4681 "move_console_output",
4682 "send_console_signal",
4683 "read_directory_changes",
4688 "get_mapping_committed_range",
4689 "add_mapping_committed_range",
4694 "queue_exception_event",
4695 "get_exception_status",
4696 "continue_debug_event",
4699 "set_debugger_kill_on_exit",
4700 "read_process_memory",
4701 "write_process_memory",
4714 "set_registry_notification",
4720 "get_thread_context",
4721 "set_thread_context",
4722 "get_selector_entry",
4726 "get_atom_information",
4727 "set_atom_information",
4734 "get_process_idle_event",
4736 "post_quit_message",
4737 "send_hardware_message",
4740 "accept_hardware_message",
4741 "get_message_reply",
4751 "create_named_pipe",
4752 "get_named_pipe_info",
4753 "set_named_pipe_info",
4756 "get_desktop_window",
4761 "get_window_parents",
4762 "get_window_children",
4763 "get_window_children_from_point",
4766 "get_window_rectangles",
4769 "get_windows_offset",
4770 "get_visible_region",
4771 "get_surface_region",
4772 "get_window_region",
4773 "set_window_region",
4774 "get_update_region",
4775 "update_window_zorder",
4777 "set_window_property",
4778 "remove_window_property",
4779 "get_window_property",
4780 "get_window_properties",
4781 "create_winstation",
4784 "get_process_winstation",
4785 "set_process_winstation",
4789 "open_input_desktop",
4791 "get_thread_desktop",
4792 "set_thread_desktop",
4794 "set_user_object_info",
4796 "unregister_hotkey",
4797 "attach_thread_input",
4799 "get_last_input_time",
4802 "set_foreground_window",
4804 "set_active_window",
4805 "set_capture_window",
4811 "finish_hook_chain",
4816 "set_clipboard_info",
4818 "set_global_windows",
4819 "adjust_token_privileges",
4820 "get_token_privileges",
4821 "check_token_privileges",
4826 "get_token_default_dacl",
4827 "set_token_default_dacl",
4828 "set_security_object",
4829 "get_security_object",
4831 "set_mailslot_info",
4834 "get_directory_entry",
4840 "get_token_impersonation_level",
4841 "allocate_locally_unique_id",
4842 "create_device_manager",
4845 "get_next_device_request",
4846 "make_process_system",
4847 "get_token_statistics",
4848 "create_completion",
4851 "remove_completion",
4853 "set_completion_info",
4854 "add_fd_completion",
4855 "get_window_layered_info",
4856 "set_window_layered_info",
4857 "alloc_user_handle",
4860 "update_rawinput_devices",
4861 "get_suspend_context",
4862 "set_suspend_context",
4871 { "ABANDONED_WAIT_0", STATUS_ABANDONED_WAIT_0
},
4872 { "ACCESS_DENIED", STATUS_ACCESS_DENIED
},
4873 { "ACCESS_VIOLATION", STATUS_ACCESS_VIOLATION
},
4874 { "ADDRESS_ALREADY_ASSOCIATED", STATUS_ADDRESS_ALREADY_ASSOCIATED
},
4875 { "ALERTED", STATUS_ALERTED
},
4876 { "ALIAS_EXISTS", STATUS_ALIAS_EXISTS
},
4877 { "BAD_DEVICE_TYPE", STATUS_BAD_DEVICE_TYPE
},
4878 { "BAD_IMPERSONATION_LEVEL", STATUS_BAD_IMPERSONATION_LEVEL
},
4879 { "BREAKPOINT", STATUS_BREAKPOINT
},
4880 { "BUFFER_OVERFLOW", STATUS_BUFFER_OVERFLOW
},
4881 { "BUFFER_TOO_SMALL", STATUS_BUFFER_TOO_SMALL
},
4882 { "CANCELLED", STATUS_CANCELLED
},
4883 { "CANNOT_DELETE", STATUS_CANNOT_DELETE
},
4884 { "CANT_OPEN_ANONYMOUS", STATUS_CANT_OPEN_ANONYMOUS
},
4885 { "CANT_WAIT", STATUS_CANT_WAIT
},
4886 { "CHILD_MUST_BE_VOLATILE", STATUS_CHILD_MUST_BE_VOLATILE
},
4887 { "CONNECTION_ABORTED", STATUS_CONNECTION_ABORTED
},
4888 { "CONNECTION_DISCONNECTED", STATUS_CONNECTION_DISCONNECTED
},
4889 { "CONNECTION_REFUSED", STATUS_CONNECTION_REFUSED
},
4890 { "CONNECTION_RESET", STATUS_CONNECTION_RESET
},
4891 { "DEBUGGER_INACTIVE", STATUS_DEBUGGER_INACTIVE
},
4892 { "DEVICE_BUSY", STATUS_DEVICE_BUSY
},
4893 { "DIRECTORY_NOT_EMPTY", STATUS_DIRECTORY_NOT_EMPTY
},
4894 { "DISK_FULL", STATUS_DISK_FULL
},
4895 { "DLL_NOT_FOUND", STATUS_DLL_NOT_FOUND
},
4896 { "ERROR_CLASS_ALREADY_EXISTS", 0xc0010000 | ERROR_CLASS_ALREADY_EXISTS
},
4897 { "ERROR_CLASS_DOES_NOT_EXIST", 0xc0010000 | ERROR_CLASS_DOES_NOT_EXIST
},
4898 { "ERROR_CLASS_HAS_WINDOWS", 0xc0010000 | ERROR_CLASS_HAS_WINDOWS
},
4899 { "ERROR_CLIPBOARD_NOT_OPEN", 0xc0010000 | ERROR_CLIPBOARD_NOT_OPEN
},
4900 { "ERROR_HOTKEY_ALREADY_REGISTERED", 0xc0010000 | ERROR_HOTKEY_ALREADY_REGISTERED
},
4901 { "ERROR_HOTKEY_NOT_REGISTERED", 0xc0010000 | ERROR_HOTKEY_NOT_REGISTERED
},
4902 { "ERROR_INVALID_CURSOR_HANDLE", 0xc0010000 | ERROR_INVALID_CURSOR_HANDLE
},
4903 { "ERROR_INVALID_INDEX", 0xc0010000 | ERROR_INVALID_INDEX
},
4904 { "ERROR_INVALID_WINDOW_HANDLE", 0xc0010000 | ERROR_INVALID_WINDOW_HANDLE
},
4905 { "ERROR_WINDOW_OF_OTHER_THREAD", 0xc0010000 | ERROR_WINDOW_OF_OTHER_THREAD
},
4906 { "FILE_DELETED", STATUS_FILE_DELETED
},
4907 { "FILE_IS_A_DIRECTORY", STATUS_FILE_IS_A_DIRECTORY
},
4908 { "FILE_LOCK_CONFLICT", STATUS_FILE_LOCK_CONFLICT
},
4909 { "GENERIC_NOT_MAPPED", STATUS_GENERIC_NOT_MAPPED
},
4910 { "HANDLES_CLOSED", STATUS_HANDLES_CLOSED
},
4911 { "HANDLE_NOT_CLOSABLE", STATUS_HANDLE_NOT_CLOSABLE
},
4912 { "HOST_UNREACHABLE", STATUS_HOST_UNREACHABLE
},
4913 { "ILLEGAL_FUNCTION", STATUS_ILLEGAL_FUNCTION
},
4914 { "INSTANCE_NOT_AVAILABLE", STATUS_INSTANCE_NOT_AVAILABLE
},
4915 { "INSUFFICIENT_RESOURCES", STATUS_INSUFFICIENT_RESOURCES
},
4916 { "INVALID_CID", STATUS_INVALID_CID
},
4917 { "INVALID_DEVICE_REQUEST", STATUS_INVALID_DEVICE_REQUEST
},
4918 { "INVALID_FILE_FOR_SECTION", STATUS_INVALID_FILE_FOR_SECTION
},
4919 { "INVALID_HANDLE", STATUS_INVALID_HANDLE
},
4920 { "INVALID_IMAGE_FORMAT", STATUS_INVALID_IMAGE_FORMAT
},
4921 { "INVALID_IMAGE_NE_FORMAT", STATUS_INVALID_IMAGE_NE_FORMAT
},
4922 { "INVALID_IMAGE_NOT_MZ", STATUS_INVALID_IMAGE_NOT_MZ
},
4923 { "INVALID_IMAGE_PROTECT", STATUS_INVALID_IMAGE_PROTECT
},
4924 { "INVALID_IMAGE_WIN_64", STATUS_INVALID_IMAGE_WIN_64
},
4925 { "INVALID_PARAMETER", STATUS_INVALID_PARAMETER
},
4926 { "INVALID_SECURITY_DESCR", STATUS_INVALID_SECURITY_DESCR
},
4927 { "IO_TIMEOUT", STATUS_IO_TIMEOUT
},
4928 { "KEY_DELETED", STATUS_KEY_DELETED
},
4929 { "MAPPED_FILE_SIZE_ZERO", STATUS_MAPPED_FILE_SIZE_ZERO
},
4930 { "MORE_PROCESSING_REQUIRED", STATUS_MORE_PROCESSING_REQUIRED
},
4931 { "MUTANT_NOT_OWNED", STATUS_MUTANT_NOT_OWNED
},
4932 { "NAME_TOO_LONG", STATUS_NAME_TOO_LONG
},
4933 { "NETWORK_BUSY", STATUS_NETWORK_BUSY
},
4934 { "NETWORK_UNREACHABLE", STATUS_NETWORK_UNREACHABLE
},
4935 { "NOTIFY_ENUM_DIR", STATUS_NOTIFY_ENUM_DIR
},
4936 { "NOT_ALL_ASSIGNED", STATUS_NOT_ALL_ASSIGNED
},
4937 { "NOT_A_DIRECTORY", STATUS_NOT_A_DIRECTORY
},
4938 { "NOT_FOUND", STATUS_NOT_FOUND
},
4939 { "NOT_IMPLEMENTED", STATUS_NOT_IMPLEMENTED
},
4940 { "NOT_REGISTRY_FILE", STATUS_NOT_REGISTRY_FILE
},
4941 { "NOT_SUPPORTED", STATUS_NOT_SUPPORTED
},
4942 { "NO_DATA_DETECTED", STATUS_NO_DATA_DETECTED
},
4943 { "NO_IMPERSONATION_TOKEN", STATUS_NO_IMPERSONATION_TOKEN
},
4944 { "NO_MEMORY", STATUS_NO_MEMORY
},
4945 { "NO_MORE_ENTRIES", STATUS_NO_MORE_ENTRIES
},
4946 { "NO_MORE_FILES", STATUS_NO_MORE_FILES
},
4947 { "NO_SUCH_DEVICE", STATUS_NO_SUCH_DEVICE
},
4948 { "NO_SUCH_FILE", STATUS_NO_SUCH_FILE
},
4949 { "NO_TOKEN", STATUS_NO_TOKEN
},
4950 { "OBJECT_NAME_COLLISION", STATUS_OBJECT_NAME_COLLISION
},
4951 { "OBJECT_NAME_EXISTS", STATUS_OBJECT_NAME_EXISTS
},
4952 { "OBJECT_NAME_INVALID", STATUS_OBJECT_NAME_INVALID
},
4953 { "OBJECT_NAME_NOT_FOUND", STATUS_OBJECT_NAME_NOT_FOUND
},
4954 { "OBJECT_PATH_INVALID", STATUS_OBJECT_PATH_INVALID
},
4955 { "OBJECT_PATH_NOT_FOUND", STATUS_OBJECT_PATH_NOT_FOUND
},
4956 { "OBJECT_PATH_SYNTAX_BAD", STATUS_OBJECT_PATH_SYNTAX_BAD
},
4957 { "OBJECT_TYPE_MISMATCH", STATUS_OBJECT_TYPE_MISMATCH
},
4958 { "PENDING", STATUS_PENDING
},
4959 { "PIPE_BUSY", STATUS_PIPE_BUSY
},
4960 { "PIPE_CONNECTED", STATUS_PIPE_CONNECTED
},
4961 { "PIPE_DISCONNECTED", STATUS_PIPE_DISCONNECTED
},
4962 { "PIPE_LISTENING", STATUS_PIPE_LISTENING
},
4963 { "PIPE_NOT_AVAILABLE", STATUS_PIPE_NOT_AVAILABLE
},
4964 { "PRIVILEGE_NOT_HELD", STATUS_PRIVILEGE_NOT_HELD
},
4965 { "PROCESS_IS_TERMINATING", STATUS_PROCESS_IS_TERMINATING
},
4966 { "SECTION_TOO_BIG", STATUS_SECTION_TOO_BIG
},
4967 { "SEMAPHORE_LIMIT_EXCEEDED", STATUS_SEMAPHORE_LIMIT_EXCEEDED
},
4968 { "SHARING_VIOLATION", STATUS_SHARING_VIOLATION
},
4969 { "SHUTDOWN_IN_PROGRESS", STATUS_SHUTDOWN_IN_PROGRESS
},
4970 { "SUSPEND_COUNT_EXCEEDED", STATUS_SUSPEND_COUNT_EXCEEDED
},
4971 { "THREAD_IS_TERMINATING", STATUS_THREAD_IS_TERMINATING
},
4972 { "TIMEOUT", STATUS_TIMEOUT
},
4973 { "TOO_MANY_OPENED_FILES", STATUS_TOO_MANY_OPENED_FILES
},
4974 { "UNSUCCESSFUL", STATUS_UNSUCCESSFUL
},
4975 { "USER_APC", STATUS_USER_APC
},
4976 { "USER_MAPPED_FILE", STATUS_USER_MAPPED_FILE
},
4977 { "VOLUME_DISMOUNTED", STATUS_VOLUME_DISMOUNTED
},
4978 { "WAS_LOCKED", STATUS_WAS_LOCKED
},
4982 /* ### make_requests end ### */
4983 /* Everything above this line is generated automatically by tools/make_requests */
4985 static const char *get_status_name( unsigned int status
)
4988 static char buffer
[10];
4992 for (i
= 0; status_names
[i
].name
; i
++)
4993 if (status_names
[i
].value
== status
) return status_names
[i
].name
;
4995 sprintf( buffer
, "%x", status
);
4999 void trace_request(void)
5001 enum request req
= current
->req
.request_header
.req
;
5002 if (req
< REQ_NB_REQUESTS
)
5004 fprintf( stderr
, "%04x: %s(", current
->id
, req_names
[req
] );
5005 if (req_dumpers
[req
])
5007 cur_data
= get_req_data();
5008 cur_size
= get_req_data_size();
5009 req_dumpers
[req
]( ¤t
->req
);
5011 fprintf( stderr
, " )\n" );
5013 else fprintf( stderr
, "%04x: %d(?)\n", current
->id
, req
);
5016 void trace_reply( enum request req
, const union generic_reply
*reply
)
5018 if (req
< REQ_NB_REQUESTS
)
5020 fprintf( stderr
, "%04x: %s() = %s",
5021 current
->id
, req_names
[req
], get_status_name(current
->error
) );
5022 if (reply_dumpers
[req
])
5024 fprintf( stderr
, " {" );
5025 cur_data
= current
->reply_data
;
5026 cur_size
= reply
->reply_header
.reply_size
;
5027 reply_dumpers
[req
]( reply
);
5028 fprintf( stderr
, " }" );
5030 fputc( '\n', stderr
);
5032 else fprintf( stderr
, "%04x: %d() = %s\n",
5033 current
->id
, req
, get_status_name(current
->error
) );