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_timeout( const char *prefix
, const timeout_t
*time
)
71 fprintf( stderr
, "%s%s", prefix
, get_timeout_str(*time
) );
74 static void dump_uint64( const char *prefix
, const unsigned __int64
*val
)
76 if ((unsigned int)*val
!= *val
)
77 fprintf( stderr
, "%s%x%08x", prefix
, (unsigned int)(*val
>> 32), (unsigned int)*val
);
79 fprintf( stderr
, "%s%08x", prefix
, (unsigned int)*val
);
82 static void dump_rectangle( const char *prefix
, const rectangle_t
*rect
)
84 fprintf( stderr
, "%s{%d,%d;%d,%d}", prefix
,
85 rect
->left
, rect
->top
, rect
->right
, rect
->bottom
);
88 static void dump_char_info( const char *prefix
, const char_info_t
*info
)
90 fprintf( stderr
, "%s{'", prefix
);
91 dump_strW( &info
->ch
, 1, stderr
, "\'\'" );
92 fprintf( stderr
, "',%04x}", info
->attr
);
95 static void dump_ioctl_code( const char *prefix
, const ioctl_code_t
*code
)
99 #define CASE(c) case c: fprintf( stderr, "%s%s", prefix, #c ); break
100 CASE(FSCTL_DISMOUNT_VOLUME
);
101 CASE(FSCTL_PIPE_DISCONNECT
);
102 CASE(FSCTL_PIPE_LISTEN
);
103 CASE(FSCTL_PIPE_WAIT
);
104 default: fprintf( stderr
, "%s%08x", prefix
, *code
); break;
109 static void dump_cpu_type( const char *prefix
, const cpu_type_t
*code
)
113 #define CASE(c) case CPU_##c: fprintf( stderr, "%s%s", prefix, #c ); break
118 default: fprintf( stderr
, "%s%u", prefix
, *code
); break;
123 static void dump_apc_call( const char *prefix
, const apc_call_t
*call
)
125 fprintf( stderr
, "%s{", prefix
);
129 fprintf( stderr
, "APC_NONE" );
132 dump_uint64( "APC_USER,func=", &call
->user
.func
);
133 dump_uint64( ",args={", &call
->user
.args
[0] );
134 dump_uint64( ",", &call
->user
.args
[1] );
135 dump_uint64( ",", &call
->user
.args
[2] );
136 fputc( '}', stderr
);
139 dump_timeout( "APC_TIMER,time=", &call
->timer
.time
);
140 dump_uint64( ",arg=", &call
->timer
.arg
);
143 dump_uint64( "APC_ASYNC_IO,func=", &call
->async_io
.func
);
144 dump_uint64( ",user=", &call
->async_io
.user
);
145 dump_uint64( ",sb=", &call
->async_io
.sb
);
146 fprintf( stderr
, ",status=%s", get_status_name(call
->async_io
.status
) );
148 case APC_VIRTUAL_ALLOC
:
149 dump_uint64( "APC_VIRTUAL_ALLOC,addr==", &call
->virtual_alloc
.addr
);
150 dump_uint64( ",size=", &call
->virtual_alloc
.size
);
151 fprintf( stderr
, ",zero_bits=%u,op_type=%x,prot=%x",
152 call
->virtual_alloc
.zero_bits
, call
->virtual_alloc
.op_type
,
153 call
->virtual_alloc
.prot
);
155 case APC_VIRTUAL_FREE
:
156 dump_uint64( "APC_VIRTUAL_FREE,addr=", &call
->virtual_free
.addr
);
157 dump_uint64( ",size=", &call
->virtual_free
.size
);
158 fprintf( stderr
, ",op_type=%x", call
->virtual_free
.op_type
);
160 case APC_VIRTUAL_QUERY
:
161 dump_uint64( "APC_VIRTUAL_QUERY,addr=", &call
->virtual_query
.addr
);
163 case APC_VIRTUAL_PROTECT
:
164 dump_uint64( "APC_VIRTUAL_PROTECT,addr=", &call
->virtual_protect
.addr
);
165 dump_uint64( ",size=", &call
->virtual_protect
.size
);
166 fprintf( stderr
, ",prot=%x", call
->virtual_protect
.prot
);
168 case APC_VIRTUAL_FLUSH
:
169 dump_uint64( "APC_VIRTUAL_FLUSH,addr=", &call
->virtual_flush
.addr
);
170 dump_uint64( ",size=", &call
->virtual_flush
.size
);
172 case APC_VIRTUAL_LOCK
:
173 dump_uint64( "APC_VIRTUAL_LOCK,addr=", &call
->virtual_lock
.addr
);
174 dump_uint64( ",size=", &call
->virtual_lock
.size
);
176 case APC_VIRTUAL_UNLOCK
:
177 dump_uint64( "APC_VIRTUAL_UNLOCK,addr=", &call
->virtual_unlock
.addr
);
178 dump_uint64( ",size=", &call
->virtual_unlock
.size
);
181 fprintf( stderr
, "APC_MAP_VIEW,handle=%04x", call
->map_view
.handle
);
182 dump_uint64( ",addr=", &call
->map_view
.addr
);
183 dump_uint64( ",size=", &call
->map_view
.size
);
184 dump_uint64( ",offset=", &call
->map_view
.offset
);
185 fprintf( stderr
, ",zero_bits=%u,alloc_type=%x,prot=%x",
186 call
->map_view
.zero_bits
, call
->map_view
.alloc_type
, call
->map_view
.prot
);
189 dump_uint64( "APC_UNMAP_VIEW,addr=", &call
->unmap_view
.addr
);
191 case APC_CREATE_THREAD
:
192 dump_uint64( "APC_CREATE_THREAD,func=", &call
->create_thread
.func
);
193 dump_uint64( ",arg=", &call
->create_thread
.arg
);
194 dump_uint64( ",reserve=", &call
->create_thread
.reserve
);
195 dump_uint64( ",commit=", &call
->create_thread
.commit
);
196 fprintf( stderr
, ",suspend=%u", call
->create_thread
.suspend
);
199 fprintf( stderr
, "type=%u", call
->type
);
202 fputc( '}', stderr
);
205 static void dump_apc_result( const char *prefix
, const apc_result_t
*result
)
207 fprintf( stderr
, "%s{", prefix
);
213 fprintf( stderr
, "APC_ASYNC_IO,status=%s,total=%u",
214 get_status_name( result
->async_io
.status
), result
->async_io
.total
);
215 dump_uint64( ",apc=", &result
->async_io
.apc
);
217 case APC_VIRTUAL_ALLOC
:
218 fprintf( stderr
, "APC_VIRTUAL_ALLOC,status=%s",
219 get_status_name( result
->virtual_alloc
.status
));
220 dump_uint64( ",addr=", &result
->virtual_alloc
.addr
);
221 dump_uint64( ",size=", &result
->virtual_alloc
.size
);
223 case APC_VIRTUAL_FREE
:
224 fprintf( stderr
, "APC_VIRTUAL_FREE,status=%s",
225 get_status_name( result
->virtual_free
.status
));
226 dump_uint64( ",addr=", &result
->virtual_free
.addr
);
227 dump_uint64( ",size=", &result
->virtual_free
.size
);
229 case APC_VIRTUAL_QUERY
:
230 fprintf( stderr
, "APC_VIRTUAL_QUERY,status=%s",
231 get_status_name( result
->virtual_query
.status
));
232 dump_uint64( ",base=", &result
->virtual_query
.base
);
233 dump_uint64( ",alloc_base=", &result
->virtual_query
.alloc_base
);
234 dump_uint64( ",size=", &result
->virtual_query
.size
);
235 fprintf( stderr
, ",state=%x,prot=%x,alloc_prot=%x,alloc_type=%x",
236 result
->virtual_query
.state
, result
->virtual_query
.prot
,
237 result
->virtual_query
.alloc_prot
, result
->virtual_query
.alloc_type
);
239 case APC_VIRTUAL_PROTECT
:
240 fprintf( stderr
, "APC_VIRTUAL_PROTECT,status=%s",
241 get_status_name( result
->virtual_protect
.status
));
242 dump_uint64( ",addr=", &result
->virtual_protect
.addr
);
243 dump_uint64( ",size=", &result
->virtual_protect
.size
);
244 fprintf( stderr
, ",prot=%x", result
->virtual_protect
.prot
);
246 case APC_VIRTUAL_FLUSH
:
247 fprintf( stderr
, "APC_VIRTUAL_FLUSH,status=%s",
248 get_status_name( result
->virtual_flush
.status
));
249 dump_uint64( ",addr=", &result
->virtual_flush
.addr
);
250 dump_uint64( ",size=", &result
->virtual_flush
.size
);
252 case APC_VIRTUAL_LOCK
:
253 fprintf( stderr
, "APC_VIRTUAL_LOCK,status=%s",
254 get_status_name( result
->virtual_lock
.status
));
255 dump_uint64( ",addr=", &result
->virtual_lock
.addr
);
256 dump_uint64( ",size=", &result
->virtual_lock
.size
);
258 case APC_VIRTUAL_UNLOCK
:
259 fprintf( stderr
, "APC_VIRTUAL_UNLOCK,status=%s",
260 get_status_name( result
->virtual_unlock
.status
));
261 dump_uint64( ",addr=", &result
->virtual_unlock
.addr
);
262 dump_uint64( ",size=", &result
->virtual_unlock
.size
);
265 fprintf( stderr
, "APC_MAP_VIEW,status=%s",
266 get_status_name( result
->map_view
.status
));
267 dump_uint64( ",addr=", &result
->map_view
.addr
);
268 dump_uint64( ",size=", &result
->map_view
.size
);
271 fprintf( stderr
, "APC_UNMAP_VIEW,status=%s",
272 get_status_name( result
->unmap_view
.status
) );
274 case APC_CREATE_THREAD
:
275 fprintf( stderr
, "APC_CREATE_THREAD,status=%s,tid=%04x,handle=%04x",
276 get_status_name( result
->create_thread
.status
),
277 result
->create_thread
.tid
, result
->create_thread
.handle
);
280 fprintf( stderr
, "type=%u", result
->type
);
283 fputc( '}', stderr
);
286 static void dump_async_data( const char *prefix
, const async_data_t
*data
)
288 fprintf( stderr
, "%s{handle=%04x,event=%04x", prefix
, data
->handle
, data
->event
);
289 dump_uint64( ",callback=", &data
->callback
);
290 dump_uint64( ",iosb=", &data
->iosb
);
291 dump_uint64( ",arg=", &data
->arg
);
292 dump_uint64( ",cvalue=", &data
->cvalue
);
293 fputc( '}', stderr
);
296 static void dump_hw_input( const char *prefix
, const hw_input_t
*input
)
301 fprintf( stderr
, "%s{type=MOUSE,x=%d,y=%d,data=%08x,flags=%08x,time=%u",
302 prefix
, input
->mouse
.x
, input
->mouse
.y
, input
->mouse
.data
, input
->mouse
.flags
,
304 dump_uint64( ",info=", &input
->mouse
.info
);
305 fputc( '}', stderr
);
308 fprintf( stderr
, "%s{type=KEYBOARD,vkey=%04hx,scan=%04hx,flags=%08x,time=%u",
309 prefix
, input
->kbd
.vkey
, input
->kbd
.scan
, input
->kbd
.flags
, input
->kbd
.time
);
310 dump_uint64( ",info=", &input
->kbd
.info
);
311 fputc( '}', stderr
);
314 fprintf( stderr
, "%s{type=HARDWARE,msg=%04x", prefix
, input
->hw
.msg
);
315 dump_uint64( ",lparam=", &input
->hw
.lparam
);
316 fputc( '}', stderr
);
319 fprintf( stderr
, "%s{type=%04x}", prefix
, input
->type
);
324 static void dump_luid( const char *prefix
, const luid_t
*luid
)
326 fprintf( stderr
, "%s%d.%u", prefix
, luid
->high_part
, luid
->low_part
);
329 static void dump_varargs_ints( const char *prefix
, data_size_t size
)
331 const int *data
= cur_data
;
332 data_size_t len
= size
/ sizeof(*data
);
334 fprintf( stderr
,"%s{", prefix
);
337 fprintf( stderr
, "%d", *data
++ );
338 if (--len
) fputc( ',', stderr
);
340 fputc( '}', stderr
);
344 static void dump_varargs_uints64( const char *prefix
, data_size_t size
)
346 const unsigned __int64
*data
= cur_data
;
347 data_size_t len
= size
/ sizeof(*data
);
349 fprintf( stderr
,"%s{", prefix
);
352 dump_uint64( "", data
++ );
353 if (--len
) fputc( ',', stderr
);
355 fputc( '}', stderr
);
359 static void dump_varargs_apc_result( const char *prefix
, data_size_t size
)
361 const apc_result_t
*result
= cur_data
;
363 if (size
>= sizeof(*result
))
365 dump_apc_result( prefix
, result
);
366 size
= sizeof(*result
);
371 static void dump_varargs_handles( const char *prefix
, data_size_t size
)
373 const obj_handle_t
*data
= cur_data
;
374 data_size_t len
= size
/ sizeof(*data
);
376 fprintf( stderr
,"%s{", prefix
);
379 fprintf( stderr
, "%04x", *data
++ );
380 if (--len
) fputc( ',', stderr
);
382 fputc( '}', stderr
);
386 static void dump_varargs_user_handles( const char *prefix
, data_size_t size
)
388 const user_handle_t
*data
= cur_data
;
389 data_size_t len
= size
/ sizeof(*data
);
391 fprintf( stderr
,"%s{", prefix
);
394 fprintf( stderr
, "%08x", *data
++ );
395 if (--len
) fputc( ',', stderr
);
397 fputc( '}', stderr
);
401 static void dump_varargs_bytes( const char *prefix
, data_size_t size
)
403 const unsigned char *data
= cur_data
;
404 data_size_t len
= min( 1024, size
);
406 fprintf( stderr
,"%s{", prefix
);
409 fprintf( stderr
, "%02x", *data
++ );
410 if (--len
) fputc( ',', stderr
);
412 if (size
> 1024) fprintf( stderr
, "...(total %u)", size
);
413 fputc( '}', stderr
);
417 static void dump_varargs_string( const char *prefix
, data_size_t size
)
419 fprintf( stderr
, "%s\"%.*s\"", prefix
, (int)size
, (const char *)cur_data
);
423 static void dump_varargs_unicode_str( const char *prefix
, data_size_t size
)
425 fprintf( stderr
, "%sL\"", prefix
);
426 dump_strW( cur_data
, size
/ sizeof(WCHAR
), stderr
, "\"\"" );
427 fputc( '\"', stderr
);
431 static void dump_varargs_context( const char *prefix
, data_size_t size
)
433 const context_t
*context
= cur_data
;
439 fprintf( stderr
, "%s{}", prefix
);
442 size
= min( size
, sizeof(ctx
) );
443 memset( &ctx
, 0, sizeof(ctx
) );
444 memcpy( &ctx
, context
, size
);
446 fprintf( stderr
,"%s{", prefix
);
447 dump_cpu_type( "cpu=", &ctx
.cpu
);
451 if (ctx
.flags
& SERVER_CTX_CONTROL
)
452 fprintf( stderr
, ",eip=%08x,esp=%08x,ebp=%08x,eflags=%08x,cs=%04x,ss=%04x",
453 ctx
.ctl
.i386_regs
.eip
, ctx
.ctl
.i386_regs
.esp
, ctx
.ctl
.i386_regs
.ebp
,
454 ctx
.ctl
.i386_regs
.eflags
, ctx
.ctl
.i386_regs
.cs
, ctx
.ctl
.i386_regs
.ss
);
455 if (ctx
.flags
& SERVER_CTX_SEGMENTS
)
456 fprintf( stderr
, ",ds=%04x,es=%04x,fs=%04x,gs=%04x",
457 ctx
.seg
.i386_regs
.ds
, ctx
.seg
.i386_regs
.es
,
458 ctx
.seg
.i386_regs
.fs
, ctx
.seg
.i386_regs
.gs
);
459 if (ctx
.flags
& SERVER_CTX_INTEGER
)
460 fprintf( stderr
, ",eax=%08x,ebx=%08x,ecx=%08x,edx=%08x,esi=%08x,edi=%08x",
461 ctx
.integer
.i386_regs
.eax
, ctx
.integer
.i386_regs
.ebx
, ctx
.integer
.i386_regs
.ecx
,
462 ctx
.integer
.i386_regs
.edx
, ctx
.integer
.i386_regs
.esi
, ctx
.integer
.i386_regs
.edi
);
463 if (ctx
.flags
& SERVER_CTX_DEBUG_REGISTERS
)
464 fprintf( stderr
, ",dr0=%08x,dr1=%08x,dr2=%08x,dr3=%08x,dr6=%08x,dr7=%08x",
465 ctx
.debug
.i386_regs
.dr0
, ctx
.debug
.i386_regs
.dr1
, ctx
.debug
.i386_regs
.dr2
,
466 ctx
.debug
.i386_regs
.dr3
, ctx
.debug
.i386_regs
.dr6
, ctx
.debug
.i386_regs
.dr7
);
467 if (ctx
.flags
& SERVER_CTX_FLOATING_POINT
)
469 fprintf( stderr
, ",fp.ctrl=%08x,fp.status=%08x,fp.tag=%08x,fp.err_off=%08x,fp.err_sel=%08x",
470 ctx
.fp
.i386_regs
.ctrl
, ctx
.fp
.i386_regs
.status
, ctx
.fp
.i386_regs
.tag
,
471 ctx
.fp
.i386_regs
.err_off
, ctx
.fp
.i386_regs
.err_sel
);
472 fprintf( stderr
, ",fp.data_off=%08x,fp.data_sel=%08x,fp.cr0npx=%08x",
473 ctx
.fp
.i386_regs
.data_off
, ctx
.fp
.i386_regs
.data_sel
, ctx
.fp
.i386_regs
.cr0npx
);
474 for (i
= 0; i
< 8; i
++)
475 fprintf( stderr
, ",fp.reg%u=%Lg", i
, *(long double *)&ctx
.fp
.i386_regs
.regs
[10*i
] );
477 if (ctx
.flags
& SERVER_CTX_EXTENDED_REGISTERS
)
479 fprintf( stderr
, ",extended=" );
480 dump_uints( (const int *)ctx
.ext
.i386_regs
, sizeof(ctx
.ext
.i386_regs
) / sizeof(int) );
484 if (ctx
.flags
& SERVER_CTX_CONTROL
)
486 dump_uint64( ",rip=", &ctx
.ctl
.x86_64_regs
.rip
);
487 dump_uint64( ",rbp=", &ctx
.ctl
.x86_64_regs
.rbp
);
488 dump_uint64( ",rsp=", &ctx
.ctl
.x86_64_regs
.rsp
);
489 fprintf( stderr
, ",cs=%04x,ss=%04x,flags=%08x",
490 ctx
.ctl
.x86_64_regs
.cs
, ctx
.ctl
.x86_64_regs
.ss
, ctx
.ctl
.x86_64_regs
.flags
);
492 if (ctx
.flags
& SERVER_CTX_INTEGER
)
494 dump_uint64( ",rax=", &ctx
.integer
.x86_64_regs
.rax
);
495 dump_uint64( ",rbx=", &ctx
.integer
.x86_64_regs
.rbx
);
496 dump_uint64( ",rcx=", &ctx
.integer
.x86_64_regs
.rcx
);
497 dump_uint64( ",rdx=", &ctx
.integer
.x86_64_regs
.rdx
);
498 dump_uint64( ",rsi=", &ctx
.integer
.x86_64_regs
.rsi
);
499 dump_uint64( ",rdi=", &ctx
.integer
.x86_64_regs
.rdi
);
500 dump_uint64( ",r8=", &ctx
.integer
.x86_64_regs
.r8
);
501 dump_uint64( ",r9=", &ctx
.integer
.x86_64_regs
.r9
);
502 dump_uint64( ",r10=", &ctx
.integer
.x86_64_regs
.r10
);
503 dump_uint64( ",r11=", &ctx
.integer
.x86_64_regs
.r11
);
504 dump_uint64( ",r12=", &ctx
.integer
.x86_64_regs
.r12
);
505 dump_uint64( ",r13=", &ctx
.integer
.x86_64_regs
.r13
);
506 dump_uint64( ",r14=", &ctx
.integer
.x86_64_regs
.r14
);
507 dump_uint64( ",r15=", &ctx
.integer
.x86_64_regs
.r15
);
509 if (ctx
.flags
& SERVER_CTX_SEGMENTS
)
510 fprintf( stderr
, ",ds=%04x,es=%04x,fs=%04x,gs=%04x",
511 ctx
.seg
.x86_64_regs
.ds
, ctx
.seg
.x86_64_regs
.es
,
512 ctx
.seg
.x86_64_regs
.fs
, ctx
.seg
.x86_64_regs
.gs
);
513 if (ctx
.flags
& SERVER_CTX_DEBUG_REGISTERS
)
515 dump_uint64( ",dr0=", &ctx
.debug
.x86_64_regs
.dr0
);
516 dump_uint64( ",dr1=", &ctx
.debug
.x86_64_regs
.dr1
);
517 dump_uint64( ",dr2=", &ctx
.debug
.x86_64_regs
.dr2
);
518 dump_uint64( ",dr3=", &ctx
.debug
.x86_64_regs
.dr3
);
519 dump_uint64( ",dr6=", &ctx
.debug
.x86_64_regs
.dr6
);
520 dump_uint64( ",dr7=", &ctx
.debug
.x86_64_regs
.dr7
);
522 if (ctx
.flags
& SERVER_CTX_FLOATING_POINT
)
524 for (i
= 0; i
< 32; i
++)
525 fprintf( stderr
, ",fp%u=%08x%08x%08x%08x", i
,
526 (unsigned int)(ctx
.fp
.x86_64_regs
.fpregs
[i
].high
>> 32),
527 (unsigned int)ctx
.fp
.x86_64_regs
.fpregs
[i
].high
,
528 (unsigned int)(ctx
.fp
.x86_64_regs
.fpregs
[i
].low
>> 32),
529 (unsigned int)ctx
.fp
.x86_64_regs
.fpregs
[i
].low
);
533 if (ctx
.flags
& SERVER_CTX_CONTROL
)
534 fprintf( stderr
, ",iar=%08x,msr=%08x,ctr=%08x,lr=%08x,dar=%08x,dsisr=%08x,trap=%08x",
535 ctx
.ctl
.powerpc_regs
.iar
, ctx
.ctl
.powerpc_regs
.msr
, ctx
.ctl
.powerpc_regs
.ctr
,
536 ctx
.ctl
.powerpc_regs
.lr
, ctx
.ctl
.powerpc_regs
.dar
, ctx
.ctl
.powerpc_regs
.dsisr
,
537 ctx
.ctl
.powerpc_regs
.trap
);
538 if (ctx
.flags
& SERVER_CTX_INTEGER
)
540 for (i
= 0; i
< 32; i
++) fprintf( stderr
, ",gpr%u=%08x", i
, ctx
.integer
.powerpc_regs
.gpr
[i
] );
541 fprintf( stderr
, ",cr=%08x,xer=%08x",
542 ctx
.integer
.powerpc_regs
.cr
, ctx
.integer
.powerpc_regs
.xer
);
544 if (ctx
.flags
& SERVER_CTX_DEBUG_REGISTERS
)
545 for (i
= 0; i
< 8; i
++) fprintf( stderr
, ",dr%u=%08x", i
, ctx
.debug
.powerpc_regs
.dr
[i
] );
546 if (ctx
.flags
& SERVER_CTX_FLOATING_POINT
)
548 for (i
= 0; i
< 32; i
++) fprintf( stderr
, ",fpr%u=%g", i
, ctx
.fp
.powerpc_regs
.fpr
[i
] );
549 fprintf( stderr
, ",fpscr=%g", ctx
.fp
.powerpc_regs
.fpscr
);
553 if (ctx
.flags
& SERVER_CTX_CONTROL
)
554 fprintf( stderr
, ",sp=%08x,lr=%08x,pc=%08x,cpsr=%08x",
555 ctx
.ctl
.arm_regs
.sp
, ctx
.ctl
.arm_regs
.lr
,
556 ctx
.ctl
.arm_regs
.pc
, ctx
.ctl
.arm_regs
.cpsr
);
557 if (ctx
.flags
& SERVER_CTX_INTEGER
)
558 for (i
= 0; i
< 13; i
++) fprintf( stderr
, ",r%u=%08x", i
, ctx
.integer
.arm_regs
.r
[i
] );
561 if (ctx
.flags
& SERVER_CTX_CONTROL
)
562 fprintf( stderr
, ",psr=%08x,pc=%08x,npc=%08x,y=%08x,wim=%08x,tbr=%08x",
563 ctx
.ctl
.sparc_regs
.psr
, ctx
.ctl
.sparc_regs
.pc
, ctx
.ctl
.sparc_regs
.npc
,
564 ctx
.ctl
.sparc_regs
.y
, ctx
.ctl
.sparc_regs
.wim
, ctx
.ctl
.sparc_regs
.tbr
);
565 if (ctx
.flags
& SERVER_CTX_INTEGER
)
567 for (i
= 0; i
< 8; i
++) fprintf( stderr
, ",g%u=%08x", i
, ctx
.integer
.sparc_regs
.g
[i
] );
568 for (i
= 0; i
< 8; i
++) fprintf( stderr
, ",o%u=%08x", i
, ctx
.integer
.sparc_regs
.o
[i
] );
569 for (i
= 0; i
< 8; i
++) fprintf( stderr
, ",l%u=%08x", i
, ctx
.integer
.sparc_regs
.l
[i
] );
570 for (i
= 0; i
< 8; i
++) fprintf( stderr
, ",i%u=%08x", i
, ctx
.integer
.sparc_regs
.i
[i
] );
574 fputc( '}', stderr
);
578 static void dump_varargs_debug_event( const char *prefix
, data_size_t size
)
585 fprintf( stderr
, "%s{}", prefix
);
588 size
= min( size
, sizeof(event
) );
589 memset( &event
, 0, sizeof(event
) );
590 memcpy( &event
, cur_data
, size
);
594 case EXCEPTION_DEBUG_EVENT
:
595 fprintf( stderr
, "%s{exception,first=%d,exc_code=%08x,flags=%08x", prefix
,
596 event
.exception
.first
, event
.exception
.exc_code
, event
.exception
.flags
);
597 dump_uint64( ",record=", &event
.exception
.record
);
598 dump_uint64( ",address=", &event
.exception
.address
);
599 fprintf( stderr
, ",params={" );
600 event
.exception
.nb_params
= min( event
.exception
.nb_params
, EXCEPTION_MAXIMUM_PARAMETERS
);
601 for (i
= 0; i
< event
.exception
.nb_params
; i
++)
603 dump_uint64( "", &event
.exception
.params
[i
] );
604 if (i
< event
.exception
.nb_params
) fputc( ',', stderr
);
606 fprintf( stderr
, "}}" );
608 case CREATE_THREAD_DEBUG_EVENT
:
609 fprintf( stderr
, "%s{create_thread,thread=%04x", prefix
, event
.create_thread
.handle
);
610 dump_uint64( ",teb=", &event
.create_thread
.teb
);
611 dump_uint64( ",start=", &event
.create_thread
.start
);
612 fputc( '}', stderr
);
614 case CREATE_PROCESS_DEBUG_EVENT
:
615 fprintf( stderr
, "%s{create_process,file=%04x,process=%04x,thread=%04x", prefix
,
616 event
.create_process
.file
, event
.create_process
.process
,
617 event
.create_process
.thread
);
618 dump_uint64( ",base=", &event
.create_process
.base
);
619 fprintf( stderr
, ",offset=%d,size=%d",
620 event
.create_process
.dbg_offset
, event
.create_process
.dbg_size
);
621 dump_uint64( ",teb=", &event
.create_process
.teb
);
622 dump_uint64( ",start=", &event
.create_process
.start
);
623 dump_uint64( ",name=", &event
.create_process
.name
);
624 fprintf( stderr
, ",unicode=%d}", event
.create_process
.unicode
);
626 case EXIT_THREAD_DEBUG_EVENT
:
627 fprintf( stderr
, "%s{exit_thread,code=%d}", prefix
, event
.exit
.exit_code
);
629 case EXIT_PROCESS_DEBUG_EVENT
:
630 fprintf( stderr
, "%s{exit_process,code=%d}", prefix
, event
.exit
.exit_code
);
632 case LOAD_DLL_DEBUG_EVENT
:
633 fprintf( stderr
, "%s{load_dll,file=%04x", prefix
, event
.load_dll
.handle
);
634 dump_uint64( ",base=", &event
.load_dll
.base
);
635 fprintf( stderr
, ",offset=%d,size=%d",
636 event
.load_dll
.dbg_offset
, event
.load_dll
.dbg_size
);
637 dump_uint64( ",name=", &event
.load_dll
.name
);
638 fprintf( stderr
, ",unicode=%d}", event
.load_dll
.unicode
);
640 case UNLOAD_DLL_DEBUG_EVENT
:
641 fprintf( stderr
, "%s{unload_dll", prefix
);
642 dump_uint64( ",base=", &event
.unload_dll
.base
);
643 fputc( '}', stderr
);
645 case OUTPUT_DEBUG_STRING_EVENT
:
646 fprintf( stderr
, "%s{output_string", prefix
);
647 dump_uint64( ",string=", &event
.output_string
.string
);
648 fprintf( stderr
, ",len=%u}", event
.output_string
.length
);
651 fprintf( stderr
, "%s{rip,err=%d,type=%d}", prefix
,
652 event
.rip_info
.error
, event
.rip_info
.type
);
654 case 0: /* zero is the code returned on timeouts */
655 fprintf( stderr
, "%s{}", prefix
);
658 fprintf( stderr
, "%s{code=??? (%d)}", prefix
, event
.code
);
664 /* dump a unicode string contained in a buffer; helper for dump_varargs_startup_info */
665 static data_size_t
dump_inline_unicode_string( const char *prefix
, data_size_t pos
, data_size_t len
, data_size_t total_size
)
667 fputs( prefix
, stderr
);
668 if (pos
>= total_size
) return pos
;
669 if (len
> total_size
- pos
) len
= total_size
- pos
;
670 len
/= sizeof(WCHAR
);
671 dump_strW( (const WCHAR
*)cur_data
+ pos
/sizeof(WCHAR
), len
, stderr
, "\"\"" );
672 return pos
+ len
* sizeof(WCHAR
);
675 static void dump_varargs_startup_info( const char *prefix
, data_size_t size
)
678 data_size_t pos
= sizeof(info
);
680 memset( &info
, 0, sizeof(info
) );
681 memcpy( &info
, cur_data
, min( size
, sizeof(info
) ));
684 "%s{debug_flags=%x,console_flags=%x,console=%04x,hstdin=%04x,hstdout=%04x,hstderr=%04x,"
685 "x=%u,y=%u,xsize=%u,ysize=%u,xchars=%u,ychars=%u,attribute=%02x,flags=%x,show=%u",
686 prefix
, info
.debug_flags
, info
.console_flags
, info
.console
,
687 info
.hstdin
, info
.hstdout
, info
.hstderr
, info
.x
, info
.y
, info
.xsize
, info
.ysize
,
688 info
.xchars
, info
.ychars
, info
.attribute
, info
.flags
, info
.show
);
689 pos
= dump_inline_unicode_string( ",curdir=L\"", pos
, info
.curdir_len
, size
);
690 pos
= dump_inline_unicode_string( "\",dllpath=L\"", pos
, info
.dllpath_len
, size
);
691 pos
= dump_inline_unicode_string( "\",imagepath=L\"", pos
, info
.imagepath_len
, size
);
692 pos
= dump_inline_unicode_string( "\",cmdline=L\"", pos
, info
.cmdline_len
, size
);
693 pos
= dump_inline_unicode_string( "\",title=L\"", pos
, info
.title_len
, size
);
694 pos
= dump_inline_unicode_string( "\",desktop=L\"", pos
, info
.desktop_len
, size
);
695 pos
= dump_inline_unicode_string( "\",shellinfo=L\"", pos
, info
.shellinfo_len
, size
);
696 pos
= dump_inline_unicode_string( "\",runtime=L\"", pos
, info
.runtime_len
, size
);
697 fprintf( stderr
, "\"}" );
701 static void dump_varargs_input_records( const char *prefix
, data_size_t size
)
703 const INPUT_RECORD
*rec
= cur_data
;
704 data_size_t len
= size
/ sizeof(*rec
);
706 fprintf( stderr
,"%s{", prefix
);
709 fprintf( stderr
, "{%04x,...}", rec
->EventType
);
711 if (--len
) fputc( ',', stderr
);
713 fputc( '}', stderr
);
717 static void dump_varargs_rectangles( const char *prefix
, data_size_t size
)
719 const rectangle_t
*rect
= cur_data
;
720 data_size_t len
= size
/ sizeof(*rect
);
722 fprintf( stderr
,"%s{", prefix
);
725 dump_rectangle( "", rect
++ );
726 if (--len
) fputc( ',', stderr
);
728 fputc( '}', stderr
);
732 static void dump_varargs_message_data( const char *prefix
, data_size_t size
)
734 /* FIXME: dump the structured data */
735 dump_varargs_bytes( prefix
, size
);
738 static void dump_varargs_properties( const char *prefix
, data_size_t size
)
740 const property_data_t
*prop
= cur_data
;
741 data_size_t len
= size
/ sizeof(*prop
);
743 fprintf( stderr
,"%s{", prefix
);
746 fprintf( stderr
, "{atom=%04x,str=%d", prop
->atom
, prop
->string
);
747 dump_uint64( ",data=", &prop
->data
);
748 fputc( '}', stderr
);
750 if (--len
) fputc( ',', stderr
);
752 fputc( '}', stderr
);
756 static void dump_varargs_LUID_AND_ATTRIBUTES( const char *prefix
, data_size_t size
)
758 const LUID_AND_ATTRIBUTES
*lat
= cur_data
;
759 data_size_t len
= size
/ sizeof(*lat
);
761 fprintf( stderr
,"%s{", prefix
);
764 fprintf( stderr
, "{luid=%08x%08x,attr=%x}",
765 lat
->Luid
.HighPart
, lat
->Luid
.LowPart
, lat
->Attributes
);
767 if (--len
) fputc( ',', stderr
);
769 fputc( '}', stderr
);
773 static void dump_inline_sid( const char *prefix
, const SID
*sid
, data_size_t size
)
778 if ((FIELD_OFFSET(SID
, SubAuthority
[0]) > size
) ||
779 (FIELD_OFFSET(SID
, SubAuthority
[sid
->SubAuthorityCount
]) > size
))
781 fprintf( stderr
, "<invalid sid>" );
785 fprintf( stderr
,"%s{", prefix
);
786 fprintf( stderr
, "S-%u-%u", sid
->Revision
, MAKELONG(
787 MAKEWORD( sid
->IdentifierAuthority
.Value
[5],
788 sid
->IdentifierAuthority
.Value
[4] ),
789 MAKEWORD( sid
->IdentifierAuthority
.Value
[3],
790 sid
->IdentifierAuthority
.Value
[2] ) ) );
791 for (i
= 0; i
< sid
->SubAuthorityCount
; i
++)
792 fprintf( stderr
, "-%u", sid
->SubAuthority
[i
] );
793 fputc( '}', stderr
);
796 static void dump_varargs_SID( const char *prefix
, data_size_t size
)
798 const SID
*sid
= cur_data
;
799 dump_inline_sid( prefix
, sid
, size
);
803 static void dump_inline_acl( const char *prefix
, const ACL
*acl
, data_size_t size
)
805 const ACE_HEADER
*ace
;
808 fprintf( stderr
,"%s{", prefix
);
811 if (size
< sizeof(ACL
))
813 fprintf( stderr
, "<invalid acl>}" );
817 ace
= (const ACE_HEADER
*)(acl
+ 1);
818 for (i
= 0; i
< acl
->AceCount
; i
++)
820 const SID
*sid
= NULL
;
821 data_size_t sid_size
= 0;
823 if (size
< sizeof(ACE_HEADER
) || size
< ace
->AceSize
) break;
824 size
-= ace
->AceSize
;
825 if (i
!= 0) fputc( ',', stderr
);
826 fprintf( stderr
, "{AceType=" );
827 switch (ace
->AceType
)
829 case ACCESS_DENIED_ACE_TYPE
:
830 sid
= (const SID
*)&((const ACCESS_DENIED_ACE
*)ace
)->SidStart
;
831 sid_size
= ace
->AceSize
- FIELD_OFFSET(ACCESS_DENIED_ACE
, SidStart
);
832 fprintf( stderr
, "ACCESS_DENIED_ACE_TYPE,Mask=%x",
833 ((const ACCESS_DENIED_ACE
*)ace
)->Mask
);
835 case ACCESS_ALLOWED_ACE_TYPE
:
836 sid
= (const SID
*)&((const ACCESS_ALLOWED_ACE
*)ace
)->SidStart
;
837 sid_size
= ace
->AceSize
- FIELD_OFFSET(ACCESS_ALLOWED_ACE
, SidStart
);
838 fprintf( stderr
, "ACCESS_ALLOWED_ACE_TYPE,Mask=%x",
839 ((const ACCESS_ALLOWED_ACE
*)ace
)->Mask
);
841 case SYSTEM_AUDIT_ACE_TYPE
:
842 sid
= (const SID
*)&((const SYSTEM_AUDIT_ACE
*)ace
)->SidStart
;
843 sid_size
= ace
->AceSize
- FIELD_OFFSET(SYSTEM_AUDIT_ACE
, SidStart
);
844 fprintf( stderr
, "SYSTEM_AUDIT_ACE_TYPE,Mask=%x",
845 ((const SYSTEM_AUDIT_ACE
*)ace
)->Mask
);
847 case SYSTEM_ALARM_ACE_TYPE
:
848 sid
= (const SID
*)&((const SYSTEM_ALARM_ACE
*)ace
)->SidStart
;
849 sid_size
= ace
->AceSize
- FIELD_OFFSET(SYSTEM_ALARM_ACE
, SidStart
);
850 fprintf( stderr
, "SYSTEM_ALARM_ACE_TYPE,Mask=%x",
851 ((const SYSTEM_ALARM_ACE
*)ace
)->Mask
);
854 fprintf( stderr
, "unknown<%d>", ace
->AceType
);
857 fprintf( stderr
, ",AceFlags=%x", ace
->AceFlags
);
859 dump_inline_sid( ",Sid=", sid
, sid_size
);
860 ace
= (const ACE_HEADER
*)((const char *)ace
+ ace
->AceSize
);
861 fputc( '}', stderr
);
864 fputc( '}', stderr
);
867 static void dump_varargs_ACL( const char *prefix
, data_size_t size
)
869 const ACL
*acl
= cur_data
;
870 dump_inline_acl( prefix
, acl
, size
);
874 static void dump_inline_security_descriptor( const char *prefix
, const struct security_descriptor
*sd
, data_size_t size
)
876 fprintf( stderr
,"%s{", prefix
);
877 if (size
>= sizeof(struct security_descriptor
))
879 size_t offset
= sizeof(struct security_descriptor
);
880 fprintf( stderr
, "control=%08x", sd
->control
);
881 if ((sd
->owner_len
> FIELD_OFFSET(SID
, SubAuthority
[255])) || (offset
+ sd
->owner_len
> size
))
884 dump_inline_sid( ",owner=", (const SID
*)((const char *)sd
+ offset
), sd
->owner_len
);
886 fprintf( stderr
, ",owner=<not present>" );
887 offset
+= sd
->owner_len
;
888 if ((sd
->group_len
> FIELD_OFFSET(SID
, SubAuthority
[255])) || (offset
+ sd
->group_len
> size
))
891 dump_inline_sid( ",group=", (const SID
*)((const char *)sd
+ offset
), sd
->group_len
);
893 fprintf( stderr
, ",group=<not present>" );
894 offset
+= sd
->group_len
;
895 if ((sd
->sacl_len
>= MAX_ACL_LEN
) || (offset
+ sd
->sacl_len
> size
))
897 dump_inline_acl( ",sacl=", (const ACL
*)((const char *)sd
+ offset
), sd
->sacl_len
);
898 offset
+= sd
->sacl_len
;
899 if ((sd
->dacl_len
>= MAX_ACL_LEN
) || (offset
+ sd
->dacl_len
> size
))
901 dump_inline_acl( ",dacl=", (const ACL
*)((const char *)sd
+ offset
), sd
->dacl_len
);
902 offset
+= sd
->dacl_len
;
904 fputc( '}', stderr
);
907 static void dump_varargs_security_descriptor( const char *prefix
, data_size_t size
)
909 const struct security_descriptor
*sd
= cur_data
;
910 dump_inline_security_descriptor( prefix
, sd
, size
);
914 static void dump_varargs_token_groups( const char *prefix
, data_size_t size
)
916 const struct token_groups
*tg
= cur_data
;
918 fprintf( stderr
,"%s{", prefix
);
919 if (size
>= sizeof(struct token_groups
))
921 size_t offset
= sizeof(*tg
);
922 fprintf( stderr
, "count=%08x,", tg
->count
);
923 if (tg
->count
* sizeof(unsigned int) <= size
)
926 const unsigned int *attr
= (const unsigned int *)(tg
+ 1);
928 offset
+= tg
->count
* sizeof(unsigned int);
930 fputc( '[', stderr
);
931 for (i
= 0; i
< tg
->count
; i
++)
933 const SID
*sid
= (const SID
*)((const char *)cur_data
+ offset
);
935 fputc( ',', stderr
);
936 fputc( '{', stderr
);
937 fprintf( stderr
, "attributes=%08x", attr
[i
] );
938 dump_inline_sid( ",sid=", sid
, size
- offset
);
939 if ((offset
+ FIELD_OFFSET(SID
, SubAuthority
[0]) > size
) ||
940 (offset
+ FIELD_OFFSET(SID
, SubAuthority
[sid
->SubAuthorityCount
]) > size
))
942 offset
+= FIELD_OFFSET(SID
, SubAuthority
[sid
->SubAuthorityCount
]);
943 fputc( '}', stderr
);
945 fputc( ']', stderr
);
948 fputc( '}', stderr
);
951 static void dump_varargs_object_attributes( const char *prefix
, data_size_t size
)
953 const struct object_attributes
*objattr
= cur_data
;
955 fprintf( stderr
,"%s{", prefix
);
956 if (size
>= sizeof(struct object_attributes
))
959 fprintf( stderr
, "rootdir=%04x", objattr
->rootdir
);
960 if (objattr
->sd_len
> size
- sizeof(*objattr
) ||
961 objattr
->name_len
> size
- sizeof(*objattr
) - objattr
->sd_len
)
963 dump_inline_security_descriptor( ",sd=", (const struct security_descriptor
*)(objattr
+ 1), objattr
->sd_len
);
964 str
= (const WCHAR
*)objattr
+ (sizeof(*objattr
) + objattr
->sd_len
) / sizeof(WCHAR
);
965 fprintf( stderr
, ",name=L\"" );
966 dump_strW( str
, objattr
->name_len
/ sizeof(WCHAR
), stderr
, "\"\"" );
967 fputc( '\"', stderr
);
968 remove_data( ((sizeof(*objattr
) + objattr
->sd_len
) / sizeof(WCHAR
)) * sizeof(WCHAR
) +
971 fputc( '}', stderr
);
974 static void dump_varargs_filesystem_event( const char *prefix
, data_size_t size
)
976 static const char * const actions
[] = {
988 fprintf( stderr
,"%s{", prefix
);
991 const struct filesystem_event
*event
= cur_data
;
992 data_size_t len
= (offsetof( struct filesystem_event
, name
[event
->len
] ) + sizeof(int)-1)
993 / sizeof(int) * sizeof(int);
994 if (size
< len
) break;
995 if (event
->action
< sizeof(actions
)/sizeof(actions
[0]) && actions
[event
->action
])
996 fprintf( stderr
, "{action=%s", actions
[event
->action
] );
998 fprintf( stderr
, "{action=%u", event
->action
);
999 fprintf( stderr
, ",name=\"%.*s\"}", event
->len
, event
->name
);
1002 if (size
)fputc( ',', stderr
);
1004 fputc( '}', stderr
);
1007 static void dump_varargs_rawinput_devices(const char *prefix
, data_size_t size
)
1009 const struct rawinput_device
*device
;
1011 fprintf( stderr
, "%s{", prefix
);
1012 while (size
>= sizeof(*device
))
1015 fprintf( stderr
, "{usage_page=%04x,usage=%04x,flags=%08x,target=%08x}",
1016 device
->usage_page
, device
->usage
, device
->flags
, device
->target
);
1017 size
-= sizeof(*device
);
1018 remove_data( sizeof(*device
) );
1019 if (size
) fputc( ',', stderr
);
1021 fputc( '}', stderr
);
1024 typedef void (*dump_func
)( const void *req
);
1026 /* Everything below this line is generated automatically by tools/make_requests */
1027 /* ### make_requests begin ### */
1029 static void dump_new_process_request( const struct new_process_request
*req
)
1031 fprintf( stderr
, " inherit_all=%d", req
->inherit_all
);
1032 fprintf( stderr
, ", create_flags=%08x", req
->create_flags
);
1033 fprintf( stderr
, ", socket_fd=%d", req
->socket_fd
);
1034 fprintf( stderr
, ", exe_file=%04x", req
->exe_file
);
1035 fprintf( stderr
, ", process_access=%08x", req
->process_access
);
1036 fprintf( stderr
, ", process_attr=%08x", req
->process_attr
);
1037 fprintf( stderr
, ", thread_access=%08x", req
->thread_access
);
1038 fprintf( stderr
, ", thread_attr=%08x", req
->thread_attr
);
1039 fprintf( stderr
, ", info_size=%u", req
->info_size
);
1040 dump_varargs_startup_info( ", info=", min(cur_size
,req
->info_size
) );
1041 dump_varargs_unicode_str( ", env=", cur_size
);
1044 static void dump_new_process_reply( const struct new_process_reply
*req
)
1046 fprintf( stderr
, " info=%04x", req
->info
);
1047 fprintf( stderr
, ", pid=%04x", req
->pid
);
1048 fprintf( stderr
, ", phandle=%04x", req
->phandle
);
1049 fprintf( stderr
, ", tid=%04x", req
->tid
);
1050 fprintf( stderr
, ", thandle=%04x", req
->thandle
);
1053 static void dump_get_new_process_info_request( const struct get_new_process_info_request
*req
)
1055 fprintf( stderr
, " info=%04x", req
->info
);
1058 static void dump_get_new_process_info_reply( const struct get_new_process_info_reply
*req
)
1060 fprintf( stderr
, " success=%d", req
->success
);
1061 fprintf( stderr
, ", exit_code=%d", req
->exit_code
);
1064 static void dump_new_thread_request( const struct new_thread_request
*req
)
1066 fprintf( stderr
, " access=%08x", req
->access
);
1067 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1068 fprintf( stderr
, ", suspend=%d", req
->suspend
);
1069 fprintf( stderr
, ", request_fd=%d", req
->request_fd
);
1072 static void dump_new_thread_reply( const struct new_thread_reply
*req
)
1074 fprintf( stderr
, " tid=%04x", req
->tid
);
1075 fprintf( stderr
, ", handle=%04x", req
->handle
);
1078 static void dump_get_startup_info_request( const struct get_startup_info_request
*req
)
1082 static void dump_get_startup_info_reply( const struct get_startup_info_reply
*req
)
1084 fprintf( stderr
, " exe_file=%04x", req
->exe_file
);
1085 fprintf( stderr
, ", info_size=%u", req
->info_size
);
1086 dump_varargs_startup_info( ", info=", min(cur_size
,req
->info_size
) );
1087 dump_varargs_unicode_str( ", env=", cur_size
);
1090 static void dump_init_process_done_request( const struct init_process_done_request
*req
)
1092 fprintf( stderr
, " gui=%d", req
->gui
);
1093 dump_uint64( ", module=", &req
->module
);
1094 dump_uint64( ", ldt_copy=", &req
->ldt_copy
);
1095 dump_uint64( ", entry=", &req
->entry
);
1098 static void dump_init_thread_request( const struct init_thread_request
*req
)
1100 fprintf( stderr
, " unix_pid=%d", req
->unix_pid
);
1101 fprintf( stderr
, ", unix_tid=%d", req
->unix_tid
);
1102 fprintf( stderr
, ", debug_level=%d", req
->debug_level
);
1103 dump_uint64( ", teb=", &req
->teb
);
1104 dump_uint64( ", entry=", &req
->entry
);
1105 fprintf( stderr
, ", reply_fd=%d", req
->reply_fd
);
1106 fprintf( stderr
, ", wait_fd=%d", req
->wait_fd
);
1107 dump_cpu_type( ", cpu=", &req
->cpu
);
1110 static void dump_init_thread_reply( const struct init_thread_reply
*req
)
1112 fprintf( stderr
, " pid=%04x", req
->pid
);
1113 fprintf( stderr
, ", tid=%04x", req
->tid
);
1114 dump_timeout( ", server_start=", &req
->server_start
);
1115 fprintf( stderr
, ", info_size=%u", req
->info_size
);
1116 fprintf( stderr
, ", version=%d", req
->version
);
1117 fprintf( stderr
, ", all_cpus=%08x", req
->all_cpus
);
1120 static void dump_terminate_process_request( const struct terminate_process_request
*req
)
1122 fprintf( stderr
, " handle=%04x", req
->handle
);
1123 fprintf( stderr
, ", exit_code=%d", req
->exit_code
);
1126 static void dump_terminate_process_reply( const struct terminate_process_reply
*req
)
1128 fprintf( stderr
, " self=%d", req
->self
);
1131 static void dump_terminate_thread_request( const struct terminate_thread_request
*req
)
1133 fprintf( stderr
, " handle=%04x", req
->handle
);
1134 fprintf( stderr
, ", exit_code=%d", req
->exit_code
);
1137 static void dump_terminate_thread_reply( const struct terminate_thread_reply
*req
)
1139 fprintf( stderr
, " self=%d", req
->self
);
1140 fprintf( stderr
, ", last=%d", req
->last
);
1143 static void dump_get_process_info_request( const struct get_process_info_request
*req
)
1145 fprintf( stderr
, " handle=%04x", req
->handle
);
1148 static void dump_get_process_info_reply( const struct get_process_info_reply
*req
)
1150 fprintf( stderr
, " pid=%04x", req
->pid
);
1151 fprintf( stderr
, ", ppid=%04x", req
->ppid
);
1152 dump_uint64( ", affinity=", &req
->affinity
);
1153 dump_uint64( ", peb=", &req
->peb
);
1154 dump_timeout( ", start_time=", &req
->start_time
);
1155 dump_timeout( ", end_time=", &req
->end_time
);
1156 fprintf( stderr
, ", exit_code=%d", req
->exit_code
);
1157 fprintf( stderr
, ", priority=%d", req
->priority
);
1158 dump_cpu_type( ", cpu=", &req
->cpu
);
1159 fprintf( stderr
, ", debugger_present=%d", req
->debugger_present
);
1162 static void dump_set_process_info_request( const struct set_process_info_request
*req
)
1164 fprintf( stderr
, " handle=%04x", req
->handle
);
1165 fprintf( stderr
, ", mask=%d", req
->mask
);
1166 fprintf( stderr
, ", priority=%d", req
->priority
);
1167 dump_uint64( ", affinity=", &req
->affinity
);
1170 static void dump_get_thread_info_request( const struct get_thread_info_request
*req
)
1172 fprintf( stderr
, " handle=%04x", req
->handle
);
1173 fprintf( stderr
, ", tid_in=%04x", req
->tid_in
);
1176 static void dump_get_thread_info_reply( const struct get_thread_info_reply
*req
)
1178 fprintf( stderr
, " pid=%04x", req
->pid
);
1179 fprintf( stderr
, ", tid=%04x", req
->tid
);
1180 dump_uint64( ", teb=", &req
->teb
);
1181 dump_uint64( ", affinity=", &req
->affinity
);
1182 dump_timeout( ", creation_time=", &req
->creation_time
);
1183 dump_timeout( ", exit_time=", &req
->exit_time
);
1184 fprintf( stderr
, ", exit_code=%d", req
->exit_code
);
1185 fprintf( stderr
, ", priority=%d", req
->priority
);
1186 fprintf( stderr
, ", last=%d", req
->last
);
1189 static void dump_set_thread_info_request( const struct set_thread_info_request
*req
)
1191 fprintf( stderr
, " handle=%04x", req
->handle
);
1192 fprintf( stderr
, ", mask=%d", req
->mask
);
1193 fprintf( stderr
, ", priority=%d", req
->priority
);
1194 dump_uint64( ", affinity=", &req
->affinity
);
1195 fprintf( stderr
, ", token=%04x", req
->token
);
1198 static void dump_get_dll_info_request( const struct get_dll_info_request
*req
)
1200 fprintf( stderr
, " handle=%04x", req
->handle
);
1201 dump_uint64( ", base_address=", &req
->base_address
);
1204 static void dump_get_dll_info_reply( const struct get_dll_info_reply
*req
)
1206 dump_uint64( " entry_point=", &req
->entry_point
);
1207 fprintf( stderr
, ", size=%u", req
->size
);
1208 fprintf( stderr
, ", filename_len=%u", req
->filename_len
);
1209 dump_varargs_unicode_str( ", filename=", cur_size
);
1212 static void dump_suspend_thread_request( const struct suspend_thread_request
*req
)
1214 fprintf( stderr
, " handle=%04x", req
->handle
);
1217 static void dump_suspend_thread_reply( const struct suspend_thread_reply
*req
)
1219 fprintf( stderr
, " count=%d", req
->count
);
1222 static void dump_resume_thread_request( const struct resume_thread_request
*req
)
1224 fprintf( stderr
, " handle=%04x", req
->handle
);
1227 static void dump_resume_thread_reply( const struct resume_thread_reply
*req
)
1229 fprintf( stderr
, " count=%d", req
->count
);
1232 static void dump_load_dll_request( const struct load_dll_request
*req
)
1234 fprintf( stderr
, " mapping=%04x", req
->mapping
);
1235 dump_uint64( ", base=", &req
->base
);
1236 dump_uint64( ", name=", &req
->name
);
1237 fprintf( stderr
, ", size=%u", req
->size
);
1238 fprintf( stderr
, ", dbg_offset=%d", req
->dbg_offset
);
1239 fprintf( stderr
, ", dbg_size=%d", req
->dbg_size
);
1240 dump_varargs_unicode_str( ", filename=", cur_size
);
1243 static void dump_unload_dll_request( const struct unload_dll_request
*req
)
1245 dump_uint64( " base=", &req
->base
);
1248 static void dump_queue_apc_request( const struct queue_apc_request
*req
)
1250 fprintf( stderr
, " handle=%04x", req
->handle
);
1251 dump_apc_call( ", call=", &req
->call
);
1254 static void dump_queue_apc_reply( const struct queue_apc_reply
*req
)
1256 fprintf( stderr
, " handle=%04x", req
->handle
);
1257 fprintf( stderr
, ", self=%d", req
->self
);
1260 static void dump_get_apc_result_request( const struct get_apc_result_request
*req
)
1262 fprintf( stderr
, " handle=%04x", req
->handle
);
1265 static void dump_get_apc_result_reply( const struct get_apc_result_reply
*req
)
1267 dump_apc_result( " result=", &req
->result
);
1270 static void dump_close_handle_request( const struct close_handle_request
*req
)
1272 fprintf( stderr
, " handle=%04x", req
->handle
);
1275 static void dump_set_handle_info_request( const struct set_handle_info_request
*req
)
1277 fprintf( stderr
, " handle=%04x", req
->handle
);
1278 fprintf( stderr
, ", flags=%d", req
->flags
);
1279 fprintf( stderr
, ", mask=%d", req
->mask
);
1282 static void dump_set_handle_info_reply( const struct set_handle_info_reply
*req
)
1284 fprintf( stderr
, " old_flags=%d", req
->old_flags
);
1287 static void dump_dup_handle_request( const struct dup_handle_request
*req
)
1289 fprintf( stderr
, " src_process=%04x", req
->src_process
);
1290 fprintf( stderr
, ", src_handle=%04x", req
->src_handle
);
1291 fprintf( stderr
, ", dst_process=%04x", req
->dst_process
);
1292 fprintf( stderr
, ", access=%08x", req
->access
);
1293 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1294 fprintf( stderr
, ", options=%08x", req
->options
);
1297 static void dump_dup_handle_reply( const struct dup_handle_reply
*req
)
1299 fprintf( stderr
, " handle=%04x", req
->handle
);
1300 fprintf( stderr
, ", self=%d", req
->self
);
1301 fprintf( stderr
, ", closed=%d", req
->closed
);
1304 static void dump_open_process_request( const struct open_process_request
*req
)
1306 fprintf( stderr
, " pid=%04x", req
->pid
);
1307 fprintf( stderr
, ", access=%08x", req
->access
);
1308 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1311 static void dump_open_process_reply( const struct open_process_reply
*req
)
1313 fprintf( stderr
, " handle=%04x", req
->handle
);
1316 static void dump_open_thread_request( const struct open_thread_request
*req
)
1318 fprintf( stderr
, " tid=%04x", req
->tid
);
1319 fprintf( stderr
, ", access=%08x", req
->access
);
1320 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1323 static void dump_open_thread_reply( const struct open_thread_reply
*req
)
1325 fprintf( stderr
, " handle=%04x", req
->handle
);
1328 static void dump_select_request( const struct select_request
*req
)
1330 fprintf( stderr
, " flags=%d", req
->flags
);
1331 dump_uint64( ", cookie=", &req
->cookie
);
1332 fprintf( stderr
, ", signal=%04x", req
->signal
);
1333 fprintf( stderr
, ", prev_apc=%04x", req
->prev_apc
);
1334 dump_timeout( ", timeout=", &req
->timeout
);
1335 dump_varargs_apc_result( ", result=", cur_size
);
1336 dump_varargs_handles( ", handles=", cur_size
);
1339 static void dump_select_reply( const struct select_reply
*req
)
1341 dump_timeout( " timeout=", &req
->timeout
);
1342 dump_apc_call( ", call=", &req
->call
);
1343 fprintf( stderr
, ", apc_handle=%04x", req
->apc_handle
);
1346 static void dump_create_event_request( const struct create_event_request
*req
)
1348 fprintf( stderr
, " access=%08x", req
->access
);
1349 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1350 fprintf( stderr
, ", manual_reset=%d", req
->manual_reset
);
1351 fprintf( stderr
, ", initial_state=%d", req
->initial_state
);
1352 dump_varargs_object_attributes( ", objattr=", cur_size
);
1355 static void dump_create_event_reply( const struct create_event_reply
*req
)
1357 fprintf( stderr
, " handle=%04x", req
->handle
);
1360 static void dump_event_op_request( const struct event_op_request
*req
)
1362 fprintf( stderr
, " handle=%04x", req
->handle
);
1363 fprintf( stderr
, ", op=%d", req
->op
);
1366 static void dump_open_event_request( const struct open_event_request
*req
)
1368 fprintf( stderr
, " access=%08x", req
->access
);
1369 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1370 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
1371 dump_varargs_unicode_str( ", name=", cur_size
);
1374 static void dump_open_event_reply( const struct open_event_reply
*req
)
1376 fprintf( stderr
, " handle=%04x", req
->handle
);
1379 static void dump_create_mutex_request( const struct create_mutex_request
*req
)
1381 fprintf( stderr
, " access=%08x", req
->access
);
1382 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1383 fprintf( stderr
, ", owned=%d", req
->owned
);
1384 dump_varargs_object_attributes( ", objattr=", cur_size
);
1387 static void dump_create_mutex_reply( const struct create_mutex_reply
*req
)
1389 fprintf( stderr
, " handle=%04x", req
->handle
);
1392 static void dump_release_mutex_request( const struct release_mutex_request
*req
)
1394 fprintf( stderr
, " handle=%04x", req
->handle
);
1397 static void dump_release_mutex_reply( const struct release_mutex_reply
*req
)
1399 fprintf( stderr
, " prev_count=%08x", req
->prev_count
);
1402 static void dump_open_mutex_request( const struct open_mutex_request
*req
)
1404 fprintf( stderr
, " access=%08x", req
->access
);
1405 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1406 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
1407 dump_varargs_unicode_str( ", name=", cur_size
);
1410 static void dump_open_mutex_reply( const struct open_mutex_reply
*req
)
1412 fprintf( stderr
, " handle=%04x", req
->handle
);
1415 static void dump_create_semaphore_request( const struct create_semaphore_request
*req
)
1417 fprintf( stderr
, " access=%08x", req
->access
);
1418 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1419 fprintf( stderr
, ", initial=%08x", req
->initial
);
1420 fprintf( stderr
, ", max=%08x", req
->max
);
1421 dump_varargs_object_attributes( ", objattr=", cur_size
);
1424 static void dump_create_semaphore_reply( const struct create_semaphore_reply
*req
)
1426 fprintf( stderr
, " handle=%04x", req
->handle
);
1429 static void dump_release_semaphore_request( const struct release_semaphore_request
*req
)
1431 fprintf( stderr
, " handle=%04x", req
->handle
);
1432 fprintf( stderr
, ", count=%08x", req
->count
);
1435 static void dump_release_semaphore_reply( const struct release_semaphore_reply
*req
)
1437 fprintf( stderr
, " prev_count=%08x", req
->prev_count
);
1440 static void dump_open_semaphore_request( const struct open_semaphore_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_semaphore_reply( const struct open_semaphore_reply
*req
)
1450 fprintf( stderr
, " handle=%04x", req
->handle
);
1453 static void dump_create_file_request( const struct create_file_request
*req
)
1455 fprintf( stderr
, " access=%08x", req
->access
);
1456 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1457 fprintf( stderr
, ", sharing=%08x", req
->sharing
);
1458 fprintf( stderr
, ", create=%d", req
->create
);
1459 fprintf( stderr
, ", options=%08x", req
->options
);
1460 fprintf( stderr
, ", attrs=%08x", req
->attrs
);
1461 dump_varargs_object_attributes( ", objattr=", cur_size
);
1462 dump_varargs_string( ", filename=", cur_size
);
1465 static void dump_create_file_reply( const struct create_file_reply
*req
)
1467 fprintf( stderr
, " handle=%04x", req
->handle
);
1470 static void dump_open_file_object_request( const struct open_file_object_request
*req
)
1472 fprintf( stderr
, " access=%08x", req
->access
);
1473 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1474 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
1475 fprintf( stderr
, ", sharing=%08x", req
->sharing
);
1476 fprintf( stderr
, ", options=%08x", req
->options
);
1477 dump_varargs_unicode_str( ", filename=", cur_size
);
1480 static void dump_open_file_object_reply( const struct open_file_object_reply
*req
)
1482 fprintf( stderr
, " handle=%04x", req
->handle
);
1485 static void dump_alloc_file_handle_request( const struct alloc_file_handle_request
*req
)
1487 fprintf( stderr
, " access=%08x", req
->access
);
1488 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1489 fprintf( stderr
, ", fd=%d", req
->fd
);
1492 static void dump_alloc_file_handle_reply( const struct alloc_file_handle_reply
*req
)
1494 fprintf( stderr
, " handle=%04x", req
->handle
);
1497 static void dump_get_handle_unix_name_request( const struct get_handle_unix_name_request
*req
)
1499 fprintf( stderr
, " handle=%04x", req
->handle
);
1502 static void dump_get_handle_unix_name_reply( const struct get_handle_unix_name_reply
*req
)
1504 fprintf( stderr
, " name_len=%u", req
->name_len
);
1505 dump_varargs_string( ", name=", cur_size
);
1508 static void dump_get_handle_fd_request( const struct get_handle_fd_request
*req
)
1510 fprintf( stderr
, " handle=%04x", req
->handle
);
1513 static void dump_get_handle_fd_reply( const struct get_handle_fd_reply
*req
)
1515 fprintf( stderr
, " type=%d", req
->type
);
1516 fprintf( stderr
, ", cacheable=%d", req
->cacheable
);
1517 fprintf( stderr
, ", access=%08x", req
->access
);
1518 fprintf( stderr
, ", options=%08x", req
->options
);
1521 static void dump_flush_file_request( const struct flush_file_request
*req
)
1523 fprintf( stderr
, " handle=%04x", req
->handle
);
1526 static void dump_flush_file_reply( const struct flush_file_reply
*req
)
1528 fprintf( stderr
, " event=%04x", req
->event
);
1531 static void dump_lock_file_request( const struct lock_file_request
*req
)
1533 fprintf( stderr
, " handle=%04x", req
->handle
);
1534 dump_uint64( ", offset=", &req
->offset
);
1535 dump_uint64( ", count=", &req
->count
);
1536 fprintf( stderr
, ", shared=%d", req
->shared
);
1537 fprintf( stderr
, ", wait=%d", req
->wait
);
1540 static void dump_lock_file_reply( const struct lock_file_reply
*req
)
1542 fprintf( stderr
, " handle=%04x", req
->handle
);
1543 fprintf( stderr
, ", overlapped=%d", req
->overlapped
);
1546 static void dump_unlock_file_request( const struct unlock_file_request
*req
)
1548 fprintf( stderr
, " handle=%04x", req
->handle
);
1549 dump_uint64( ", offset=", &req
->offset
);
1550 dump_uint64( ", count=", &req
->count
);
1553 static void dump_create_socket_request( const struct create_socket_request
*req
)
1555 fprintf( stderr
, " access=%08x", req
->access
);
1556 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1557 fprintf( stderr
, ", family=%d", req
->family
);
1558 fprintf( stderr
, ", type=%d", req
->type
);
1559 fprintf( stderr
, ", protocol=%d", req
->protocol
);
1560 fprintf( stderr
, ", flags=%08x", req
->flags
);
1563 static void dump_create_socket_reply( const struct create_socket_reply
*req
)
1565 fprintf( stderr
, " handle=%04x", req
->handle
);
1568 static void dump_accept_socket_request( const struct accept_socket_request
*req
)
1570 fprintf( stderr
, " lhandle=%04x", req
->lhandle
);
1571 fprintf( stderr
, ", access=%08x", req
->access
);
1572 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1575 static void dump_accept_socket_reply( const struct accept_socket_reply
*req
)
1577 fprintf( stderr
, " handle=%04x", req
->handle
);
1580 static void dump_accept_into_socket_request( const struct accept_into_socket_request
*req
)
1582 fprintf( stderr
, " lhandle=%04x", req
->lhandle
);
1583 fprintf( stderr
, ", ahandle=%04x", req
->ahandle
);
1586 static void dump_set_socket_event_request( const struct set_socket_event_request
*req
)
1588 fprintf( stderr
, " handle=%04x", req
->handle
);
1589 fprintf( stderr
, ", mask=%08x", req
->mask
);
1590 fprintf( stderr
, ", event=%04x", req
->event
);
1591 fprintf( stderr
, ", window=%08x", req
->window
);
1592 fprintf( stderr
, ", msg=%08x", req
->msg
);
1595 static void dump_get_socket_event_request( const struct get_socket_event_request
*req
)
1597 fprintf( stderr
, " handle=%04x", req
->handle
);
1598 fprintf( stderr
, ", service=%d", req
->service
);
1599 fprintf( stderr
, ", c_event=%04x", req
->c_event
);
1602 static void dump_get_socket_event_reply( const struct get_socket_event_reply
*req
)
1604 fprintf( stderr
, " mask=%08x", req
->mask
);
1605 fprintf( stderr
, ", pmask=%08x", req
->pmask
);
1606 fprintf( stderr
, ", state=%08x", req
->state
);
1607 dump_varargs_ints( ", errors=", cur_size
);
1610 static void dump_enable_socket_event_request( const struct enable_socket_event_request
*req
)
1612 fprintf( stderr
, " handle=%04x", req
->handle
);
1613 fprintf( stderr
, ", mask=%08x", req
->mask
);
1614 fprintf( stderr
, ", sstate=%08x", req
->sstate
);
1615 fprintf( stderr
, ", cstate=%08x", req
->cstate
);
1618 static void dump_set_socket_deferred_request( const struct set_socket_deferred_request
*req
)
1620 fprintf( stderr
, " handle=%04x", req
->handle
);
1621 fprintf( stderr
, ", deferred=%04x", req
->deferred
);
1624 static void dump_alloc_console_request( const struct alloc_console_request
*req
)
1626 fprintf( stderr
, " access=%08x", req
->access
);
1627 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1628 fprintf( stderr
, ", pid=%04x", req
->pid
);
1629 fprintf( stderr
, ", input_fd=%d", req
->input_fd
);
1632 static void dump_alloc_console_reply( const struct alloc_console_reply
*req
)
1634 fprintf( stderr
, " handle_in=%04x", req
->handle_in
);
1635 fprintf( stderr
, ", event=%04x", req
->event
);
1638 static void dump_free_console_request( const struct free_console_request
*req
)
1642 static void dump_get_console_renderer_events_request( const struct get_console_renderer_events_request
*req
)
1644 fprintf( stderr
, " handle=%04x", req
->handle
);
1647 static void dump_get_console_renderer_events_reply( const struct get_console_renderer_events_reply
*req
)
1649 dump_varargs_bytes( " data=", cur_size
);
1652 static void dump_open_console_request( const struct open_console_request
*req
)
1654 fprintf( stderr
, " from=%04x", req
->from
);
1655 fprintf( stderr
, ", access=%08x", req
->access
);
1656 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1657 fprintf( stderr
, ", share=%d", req
->share
);
1660 static void dump_open_console_reply( const struct open_console_reply
*req
)
1662 fprintf( stderr
, " handle=%04x", req
->handle
);
1665 static void dump_get_console_wait_event_request( const struct get_console_wait_event_request
*req
)
1669 static void dump_get_console_wait_event_reply( const struct get_console_wait_event_reply
*req
)
1671 fprintf( stderr
, " handle=%04x", req
->handle
);
1674 static void dump_get_console_mode_request( const struct get_console_mode_request
*req
)
1676 fprintf( stderr
, " handle=%04x", req
->handle
);
1679 static void dump_get_console_mode_reply( const struct get_console_mode_reply
*req
)
1681 fprintf( stderr
, " mode=%d", req
->mode
);
1684 static void dump_set_console_mode_request( const struct set_console_mode_request
*req
)
1686 fprintf( stderr
, " handle=%04x", req
->handle
);
1687 fprintf( stderr
, ", mode=%d", req
->mode
);
1690 static void dump_set_console_input_info_request( const struct set_console_input_info_request
*req
)
1692 fprintf( stderr
, " handle=%04x", req
->handle
);
1693 fprintf( stderr
, ", mask=%d", req
->mask
);
1694 fprintf( stderr
, ", active_sb=%04x", req
->active_sb
);
1695 fprintf( stderr
, ", history_mode=%d", req
->history_mode
);
1696 fprintf( stderr
, ", history_size=%d", req
->history_size
);
1697 fprintf( stderr
, ", edition_mode=%d", req
->edition_mode
);
1698 fprintf( stderr
, ", input_cp=%d", req
->input_cp
);
1699 fprintf( stderr
, ", output_cp=%d", req
->output_cp
);
1700 fprintf( stderr
, ", win=%08x", req
->win
);
1701 dump_varargs_unicode_str( ", title=", cur_size
);
1704 static void dump_get_console_input_info_request( const struct get_console_input_info_request
*req
)
1706 fprintf( stderr
, " handle=%04x", req
->handle
);
1709 static void dump_get_console_input_info_reply( const struct get_console_input_info_reply
*req
)
1711 fprintf( stderr
, " history_mode=%d", req
->history_mode
);
1712 fprintf( stderr
, ", history_size=%d", req
->history_size
);
1713 fprintf( stderr
, ", history_index=%d", req
->history_index
);
1714 fprintf( stderr
, ", edition_mode=%d", req
->edition_mode
);
1715 fprintf( stderr
, ", input_cp=%d", req
->input_cp
);
1716 fprintf( stderr
, ", output_cp=%d", req
->output_cp
);
1717 fprintf( stderr
, ", win=%08x", req
->win
);
1718 dump_varargs_unicode_str( ", title=", cur_size
);
1721 static void dump_append_console_input_history_request( const struct append_console_input_history_request
*req
)
1723 fprintf( stderr
, " handle=%04x", req
->handle
);
1724 dump_varargs_unicode_str( ", line=", cur_size
);
1727 static void dump_get_console_input_history_request( const struct get_console_input_history_request
*req
)
1729 fprintf( stderr
, " handle=%04x", req
->handle
);
1730 fprintf( stderr
, ", index=%d", req
->index
);
1733 static void dump_get_console_input_history_reply( const struct get_console_input_history_reply
*req
)
1735 fprintf( stderr
, " total=%d", req
->total
);
1736 dump_varargs_unicode_str( ", line=", cur_size
);
1739 static void dump_create_console_output_request( const struct create_console_output_request
*req
)
1741 fprintf( stderr
, " handle_in=%04x", req
->handle_in
);
1742 fprintf( stderr
, ", access=%08x", req
->access
);
1743 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1744 fprintf( stderr
, ", share=%08x", req
->share
);
1745 fprintf( stderr
, ", fd=%d", req
->fd
);
1748 static void dump_create_console_output_reply( const struct create_console_output_reply
*req
)
1750 fprintf( stderr
, " handle_out=%04x", req
->handle_out
);
1753 static void dump_set_console_output_info_request( const struct set_console_output_info_request
*req
)
1755 fprintf( stderr
, " handle=%04x", req
->handle
);
1756 fprintf( stderr
, ", mask=%d", req
->mask
);
1757 fprintf( stderr
, ", cursor_size=%d", req
->cursor_size
);
1758 fprintf( stderr
, ", cursor_visible=%d", req
->cursor_visible
);
1759 fprintf( stderr
, ", cursor_x=%d", req
->cursor_x
);
1760 fprintf( stderr
, ", cursor_y=%d", req
->cursor_y
);
1761 fprintf( stderr
, ", width=%d", req
->width
);
1762 fprintf( stderr
, ", height=%d", req
->height
);
1763 fprintf( stderr
, ", attr=%d", req
->attr
);
1764 fprintf( stderr
, ", win_left=%d", req
->win_left
);
1765 fprintf( stderr
, ", win_top=%d", req
->win_top
);
1766 fprintf( stderr
, ", win_right=%d", req
->win_right
);
1767 fprintf( stderr
, ", win_bottom=%d", req
->win_bottom
);
1768 fprintf( stderr
, ", max_width=%d", req
->max_width
);
1769 fprintf( stderr
, ", max_height=%d", req
->max_height
);
1772 static void dump_get_console_output_info_request( const struct get_console_output_info_request
*req
)
1774 fprintf( stderr
, " handle=%04x", req
->handle
);
1777 static void dump_get_console_output_info_reply( const struct get_console_output_info_reply
*req
)
1779 fprintf( stderr
, " cursor_size=%d", req
->cursor_size
);
1780 fprintf( stderr
, ", cursor_visible=%d", req
->cursor_visible
);
1781 fprintf( stderr
, ", cursor_x=%d", req
->cursor_x
);
1782 fprintf( stderr
, ", cursor_y=%d", req
->cursor_y
);
1783 fprintf( stderr
, ", width=%d", req
->width
);
1784 fprintf( stderr
, ", height=%d", req
->height
);
1785 fprintf( stderr
, ", attr=%d", req
->attr
);
1786 fprintf( stderr
, ", win_left=%d", req
->win_left
);
1787 fprintf( stderr
, ", win_top=%d", req
->win_top
);
1788 fprintf( stderr
, ", win_right=%d", req
->win_right
);
1789 fprintf( stderr
, ", win_bottom=%d", req
->win_bottom
);
1790 fprintf( stderr
, ", max_width=%d", req
->max_width
);
1791 fprintf( stderr
, ", max_height=%d", req
->max_height
);
1794 static void dump_write_console_input_request( const struct write_console_input_request
*req
)
1796 fprintf( stderr
, " handle=%04x", req
->handle
);
1797 dump_varargs_input_records( ", rec=", cur_size
);
1800 static void dump_write_console_input_reply( const struct write_console_input_reply
*req
)
1802 fprintf( stderr
, " written=%d", req
->written
);
1805 static void dump_read_console_input_request( const struct read_console_input_request
*req
)
1807 fprintf( stderr
, " handle=%04x", req
->handle
);
1808 fprintf( stderr
, ", flush=%d", req
->flush
);
1811 static void dump_read_console_input_reply( const struct read_console_input_reply
*req
)
1813 fprintf( stderr
, " read=%d", req
->read
);
1814 dump_varargs_input_records( ", rec=", cur_size
);
1817 static void dump_write_console_output_request( const struct write_console_output_request
*req
)
1819 fprintf( stderr
, " handle=%04x", req
->handle
);
1820 fprintf( stderr
, ", x=%d", req
->x
);
1821 fprintf( stderr
, ", y=%d", req
->y
);
1822 fprintf( stderr
, ", mode=%d", req
->mode
);
1823 fprintf( stderr
, ", wrap=%d", req
->wrap
);
1824 dump_varargs_bytes( ", data=", cur_size
);
1827 static void dump_write_console_output_reply( const struct write_console_output_reply
*req
)
1829 fprintf( stderr
, " written=%d", req
->written
);
1830 fprintf( stderr
, ", width=%d", req
->width
);
1831 fprintf( stderr
, ", height=%d", req
->height
);
1834 static void dump_fill_console_output_request( const struct fill_console_output_request
*req
)
1836 fprintf( stderr
, " handle=%04x", req
->handle
);
1837 fprintf( stderr
, ", x=%d", req
->x
);
1838 fprintf( stderr
, ", y=%d", req
->y
);
1839 fprintf( stderr
, ", mode=%d", req
->mode
);
1840 fprintf( stderr
, ", count=%d", req
->count
);
1841 fprintf( stderr
, ", wrap=%d", req
->wrap
);
1842 dump_char_info( ", data=", &req
->data
);
1845 static void dump_fill_console_output_reply( const struct fill_console_output_reply
*req
)
1847 fprintf( stderr
, " written=%d", req
->written
);
1850 static void dump_read_console_output_request( const struct read_console_output_request
*req
)
1852 fprintf( stderr
, " handle=%04x", req
->handle
);
1853 fprintf( stderr
, ", x=%d", req
->x
);
1854 fprintf( stderr
, ", y=%d", req
->y
);
1855 fprintf( stderr
, ", mode=%d", req
->mode
);
1856 fprintf( stderr
, ", wrap=%d", req
->wrap
);
1859 static void dump_read_console_output_reply( const struct read_console_output_reply
*req
)
1861 fprintf( stderr
, " width=%d", req
->width
);
1862 fprintf( stderr
, ", height=%d", req
->height
);
1863 dump_varargs_bytes( ", data=", cur_size
);
1866 static void dump_move_console_output_request( const struct move_console_output_request
*req
)
1868 fprintf( stderr
, " handle=%04x", req
->handle
);
1869 fprintf( stderr
, ", x_src=%d", req
->x_src
);
1870 fprintf( stderr
, ", y_src=%d", req
->y_src
);
1871 fprintf( stderr
, ", x_dst=%d", req
->x_dst
);
1872 fprintf( stderr
, ", y_dst=%d", req
->y_dst
);
1873 fprintf( stderr
, ", w=%d", req
->w
);
1874 fprintf( stderr
, ", h=%d", req
->h
);
1877 static void dump_send_console_signal_request( const struct send_console_signal_request
*req
)
1879 fprintf( stderr
, " signal=%d", req
->signal
);
1880 fprintf( stderr
, ", group_id=%04x", req
->group_id
);
1883 static void dump_read_directory_changes_request( const struct read_directory_changes_request
*req
)
1885 fprintf( stderr
, " filter=%08x", req
->filter
);
1886 fprintf( stderr
, ", subtree=%d", req
->subtree
);
1887 fprintf( stderr
, ", want_data=%d", req
->want_data
);
1888 dump_async_data( ", async=", &req
->async
);
1891 static void dump_read_change_request( const struct read_change_request
*req
)
1893 fprintf( stderr
, " handle=%04x", req
->handle
);
1896 static void dump_read_change_reply( const struct read_change_reply
*req
)
1898 dump_varargs_filesystem_event( " events=", cur_size
);
1901 static void dump_create_mapping_request( const struct create_mapping_request
*req
)
1903 fprintf( stderr
, " access=%08x", req
->access
);
1904 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1905 fprintf( stderr
, ", protect=%08x", req
->protect
);
1906 dump_uint64( ", size=", &req
->size
);
1907 fprintf( stderr
, ", file_handle=%04x", req
->file_handle
);
1908 dump_varargs_object_attributes( ", objattr=", cur_size
);
1911 static void dump_create_mapping_reply( const struct create_mapping_reply
*req
)
1913 fprintf( stderr
, " handle=%04x", req
->handle
);
1916 static void dump_open_mapping_request( const struct open_mapping_request
*req
)
1918 fprintf( stderr
, " access=%08x", req
->access
);
1919 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1920 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
1921 dump_varargs_unicode_str( ", name=", cur_size
);
1924 static void dump_open_mapping_reply( const struct open_mapping_reply
*req
)
1926 fprintf( stderr
, " handle=%04x", req
->handle
);
1929 static void dump_get_mapping_info_request( const struct get_mapping_info_request
*req
)
1931 fprintf( stderr
, " handle=%04x", req
->handle
);
1932 fprintf( stderr
, ", access=%08x", req
->access
);
1935 static void dump_get_mapping_info_reply( const struct get_mapping_info_reply
*req
)
1937 dump_uint64( " size=", &req
->size
);
1938 fprintf( stderr
, ", protect=%d", req
->protect
);
1939 fprintf( stderr
, ", header_size=%d", req
->header_size
);
1940 dump_uint64( ", base=", &req
->base
);
1941 fprintf( stderr
, ", mapping=%04x", req
->mapping
);
1942 fprintf( stderr
, ", shared_file=%04x", req
->shared_file
);
1945 static void dump_get_mapping_committed_range_request( const struct get_mapping_committed_range_request
*req
)
1947 fprintf( stderr
, " handle=%04x", req
->handle
);
1948 dump_uint64( ", offset=", &req
->offset
);
1951 static void dump_get_mapping_committed_range_reply( const struct get_mapping_committed_range_reply
*req
)
1953 dump_uint64( " size=", &req
->size
);
1954 fprintf( stderr
, ", committed=%d", req
->committed
);
1957 static void dump_add_mapping_committed_range_request( const struct add_mapping_committed_range_request
*req
)
1959 fprintf( stderr
, " handle=%04x", req
->handle
);
1960 dump_uint64( ", offset=", &req
->offset
);
1961 dump_uint64( ", size=", &req
->size
);
1964 static void dump_create_snapshot_request( const struct create_snapshot_request
*req
)
1966 fprintf( stderr
, " attributes=%08x", req
->attributes
);
1967 fprintf( stderr
, ", flags=%08x", req
->flags
);
1970 static void dump_create_snapshot_reply( const struct create_snapshot_reply
*req
)
1972 fprintf( stderr
, " handle=%04x", req
->handle
);
1975 static void dump_next_process_request( const struct next_process_request
*req
)
1977 fprintf( stderr
, " handle=%04x", req
->handle
);
1978 fprintf( stderr
, ", reset=%d", req
->reset
);
1981 static void dump_next_process_reply( const struct next_process_reply
*req
)
1983 fprintf( stderr
, " count=%d", req
->count
);
1984 fprintf( stderr
, ", pid=%04x", req
->pid
);
1985 fprintf( stderr
, ", ppid=%04x", req
->ppid
);
1986 fprintf( stderr
, ", threads=%d", req
->threads
);
1987 fprintf( stderr
, ", priority=%d", req
->priority
);
1988 fprintf( stderr
, ", handles=%d", req
->handles
);
1989 fprintf( stderr
, ", unix_pid=%d", req
->unix_pid
);
1990 dump_varargs_unicode_str( ", filename=", cur_size
);
1993 static void dump_next_thread_request( const struct next_thread_request
*req
)
1995 fprintf( stderr
, " handle=%04x", req
->handle
);
1996 fprintf( stderr
, ", reset=%d", req
->reset
);
1999 static void dump_next_thread_reply( const struct next_thread_reply
*req
)
2001 fprintf( stderr
, " count=%d", req
->count
);
2002 fprintf( stderr
, ", pid=%04x", req
->pid
);
2003 fprintf( stderr
, ", tid=%04x", req
->tid
);
2004 fprintf( stderr
, ", base_pri=%d", req
->base_pri
);
2005 fprintf( stderr
, ", delta_pri=%d", req
->delta_pri
);
2008 static void dump_wait_debug_event_request( const struct wait_debug_event_request
*req
)
2010 fprintf( stderr
, " get_handle=%d", req
->get_handle
);
2013 static void dump_wait_debug_event_reply( const struct wait_debug_event_reply
*req
)
2015 fprintf( stderr
, " pid=%04x", req
->pid
);
2016 fprintf( stderr
, ", tid=%04x", req
->tid
);
2017 fprintf( stderr
, ", wait=%04x", req
->wait
);
2018 dump_varargs_debug_event( ", event=", cur_size
);
2021 static void dump_queue_exception_event_request( const struct queue_exception_event_request
*req
)
2023 fprintf( stderr
, " first=%d", req
->first
);
2024 fprintf( stderr
, ", code=%08x", req
->code
);
2025 fprintf( stderr
, ", flags=%08x", req
->flags
);
2026 dump_uint64( ", record=", &req
->record
);
2027 dump_uint64( ", address=", &req
->address
);
2028 fprintf( stderr
, ", len=%u", req
->len
);
2029 dump_varargs_uints64( ", params=", min(cur_size
,req
->len
) );
2030 dump_varargs_context( ", context=", cur_size
);
2033 static void dump_queue_exception_event_reply( const struct queue_exception_event_reply
*req
)
2035 fprintf( stderr
, " handle=%04x", req
->handle
);
2038 static void dump_get_exception_status_request( const struct get_exception_status_request
*req
)
2040 fprintf( stderr
, " handle=%04x", req
->handle
);
2043 static void dump_get_exception_status_reply( const struct get_exception_status_reply
*req
)
2045 dump_varargs_context( " context=", cur_size
);
2048 static void dump_output_debug_string_request( const struct output_debug_string_request
*req
)
2050 fprintf( stderr
, " length=%u", req
->length
);
2051 dump_uint64( ", string=", &req
->string
);
2054 static void dump_continue_debug_event_request( const struct continue_debug_event_request
*req
)
2056 fprintf( stderr
, " pid=%04x", req
->pid
);
2057 fprintf( stderr
, ", tid=%04x", req
->tid
);
2058 fprintf( stderr
, ", status=%d", req
->status
);
2061 static void dump_debug_process_request( const struct debug_process_request
*req
)
2063 fprintf( stderr
, " pid=%04x", req
->pid
);
2064 fprintf( stderr
, ", attach=%d", req
->attach
);
2067 static void dump_debug_break_request( const struct debug_break_request
*req
)
2069 fprintf( stderr
, " handle=%04x", req
->handle
);
2072 static void dump_debug_break_reply( const struct debug_break_reply
*req
)
2074 fprintf( stderr
, " self=%d", req
->self
);
2077 static void dump_set_debugger_kill_on_exit_request( const struct set_debugger_kill_on_exit_request
*req
)
2079 fprintf( stderr
, " kill_on_exit=%d", req
->kill_on_exit
);
2082 static void dump_read_process_memory_request( const struct read_process_memory_request
*req
)
2084 fprintf( stderr
, " handle=%04x", req
->handle
);
2085 dump_uint64( ", addr=", &req
->addr
);
2088 static void dump_read_process_memory_reply( const struct read_process_memory_reply
*req
)
2090 dump_varargs_bytes( " data=", cur_size
);
2093 static void dump_write_process_memory_request( const struct write_process_memory_request
*req
)
2095 fprintf( stderr
, " handle=%04x", req
->handle
);
2096 dump_uint64( ", addr=", &req
->addr
);
2097 dump_varargs_bytes( ", data=", cur_size
);
2100 static void dump_create_key_request( const struct create_key_request
*req
)
2102 fprintf( stderr
, " parent=%04x", req
->parent
);
2103 fprintf( stderr
, ", access=%08x", req
->access
);
2104 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
2105 fprintf( stderr
, ", options=%08x", req
->options
);
2106 fprintf( stderr
, ", namelen=%u", req
->namelen
);
2107 dump_varargs_unicode_str( ", name=", min(cur_size
,req
->namelen
) );
2108 dump_varargs_unicode_str( ", class=", cur_size
);
2111 static void dump_create_key_reply( const struct create_key_reply
*req
)
2113 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2114 fprintf( stderr
, ", created=%d", req
->created
);
2117 static void dump_open_key_request( const struct open_key_request
*req
)
2119 fprintf( stderr
, " parent=%04x", req
->parent
);
2120 fprintf( stderr
, ", access=%08x", req
->access
);
2121 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
2122 dump_varargs_unicode_str( ", name=", cur_size
);
2125 static void dump_open_key_reply( const struct open_key_reply
*req
)
2127 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2130 static void dump_delete_key_request( const struct delete_key_request
*req
)
2132 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2135 static void dump_flush_key_request( const struct flush_key_request
*req
)
2137 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2140 static void dump_enum_key_request( const struct enum_key_request
*req
)
2142 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2143 fprintf( stderr
, ", index=%d", req
->index
);
2144 fprintf( stderr
, ", info_class=%d", req
->info_class
);
2147 static void dump_enum_key_reply( const struct enum_key_reply
*req
)
2149 fprintf( stderr
, " subkeys=%d", req
->subkeys
);
2150 fprintf( stderr
, ", max_subkey=%d", req
->max_subkey
);
2151 fprintf( stderr
, ", max_class=%d", req
->max_class
);
2152 fprintf( stderr
, ", values=%d", req
->values
);
2153 fprintf( stderr
, ", max_value=%d", req
->max_value
);
2154 fprintf( stderr
, ", max_data=%d", req
->max_data
);
2155 dump_timeout( ", modif=", &req
->modif
);
2156 fprintf( stderr
, ", total=%u", req
->total
);
2157 fprintf( stderr
, ", namelen=%u", req
->namelen
);
2158 dump_varargs_unicode_str( ", name=", min(cur_size
,req
->namelen
) );
2159 dump_varargs_unicode_str( ", class=", cur_size
);
2162 static void dump_set_key_value_request( const struct set_key_value_request
*req
)
2164 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2165 fprintf( stderr
, ", type=%d", req
->type
);
2166 fprintf( stderr
, ", namelen=%u", req
->namelen
);
2167 dump_varargs_unicode_str( ", name=", min(cur_size
,req
->namelen
) );
2168 dump_varargs_bytes( ", data=", cur_size
);
2171 static void dump_get_key_value_request( const struct get_key_value_request
*req
)
2173 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2174 dump_varargs_unicode_str( ", name=", cur_size
);
2177 static void dump_get_key_value_reply( const struct get_key_value_reply
*req
)
2179 fprintf( stderr
, " type=%d", req
->type
);
2180 fprintf( stderr
, ", total=%u", req
->total
);
2181 dump_varargs_bytes( ", data=", cur_size
);
2184 static void dump_enum_key_value_request( const struct enum_key_value_request
*req
)
2186 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2187 fprintf( stderr
, ", index=%d", req
->index
);
2188 fprintf( stderr
, ", info_class=%d", req
->info_class
);
2191 static void dump_enum_key_value_reply( const struct enum_key_value_reply
*req
)
2193 fprintf( stderr
, " type=%d", req
->type
);
2194 fprintf( stderr
, ", total=%u", req
->total
);
2195 fprintf( stderr
, ", namelen=%u", req
->namelen
);
2196 dump_varargs_unicode_str( ", name=", min(cur_size
,req
->namelen
) );
2197 dump_varargs_bytes( ", data=", cur_size
);
2200 static void dump_delete_key_value_request( const struct delete_key_value_request
*req
)
2202 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2203 dump_varargs_unicode_str( ", name=", cur_size
);
2206 static void dump_load_registry_request( const struct load_registry_request
*req
)
2208 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2209 fprintf( stderr
, ", file=%04x", req
->file
);
2210 dump_varargs_unicode_str( ", name=", cur_size
);
2213 static void dump_unload_registry_request( const struct unload_registry_request
*req
)
2215 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2218 static void dump_save_registry_request( const struct save_registry_request
*req
)
2220 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2221 fprintf( stderr
, ", file=%04x", req
->file
);
2224 static void dump_set_registry_notification_request( const struct set_registry_notification_request
*req
)
2226 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2227 fprintf( stderr
, ", event=%04x", req
->event
);
2228 fprintf( stderr
, ", subtree=%d", req
->subtree
);
2229 fprintf( stderr
, ", filter=%08x", req
->filter
);
2232 static void dump_create_timer_request( const struct create_timer_request
*req
)
2234 fprintf( stderr
, " access=%08x", req
->access
);
2235 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
2236 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
2237 fprintf( stderr
, ", manual=%d", req
->manual
);
2238 dump_varargs_unicode_str( ", name=", cur_size
);
2241 static void dump_create_timer_reply( const struct create_timer_reply
*req
)
2243 fprintf( stderr
, " handle=%04x", req
->handle
);
2246 static void dump_open_timer_request( const struct open_timer_request
*req
)
2248 fprintf( stderr
, " access=%08x", req
->access
);
2249 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
2250 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
2251 dump_varargs_unicode_str( ", name=", cur_size
);
2254 static void dump_open_timer_reply( const struct open_timer_reply
*req
)
2256 fprintf( stderr
, " handle=%04x", req
->handle
);
2259 static void dump_set_timer_request( const struct set_timer_request
*req
)
2261 fprintf( stderr
, " handle=%04x", req
->handle
);
2262 dump_timeout( ", expire=", &req
->expire
);
2263 dump_uint64( ", callback=", &req
->callback
);
2264 dump_uint64( ", arg=", &req
->arg
);
2265 fprintf( stderr
, ", period=%d", req
->period
);
2268 static void dump_set_timer_reply( const struct set_timer_reply
*req
)
2270 fprintf( stderr
, " signaled=%d", req
->signaled
);
2273 static void dump_cancel_timer_request( const struct cancel_timer_request
*req
)
2275 fprintf( stderr
, " handle=%04x", req
->handle
);
2278 static void dump_cancel_timer_reply( const struct cancel_timer_reply
*req
)
2280 fprintf( stderr
, " signaled=%d", req
->signaled
);
2283 static void dump_get_timer_info_request( const struct get_timer_info_request
*req
)
2285 fprintf( stderr
, " handle=%04x", req
->handle
);
2288 static void dump_get_timer_info_reply( const struct get_timer_info_reply
*req
)
2290 dump_timeout( " when=", &req
->when
);
2291 fprintf( stderr
, ", signaled=%d", req
->signaled
);
2294 static void dump_get_thread_context_request( const struct get_thread_context_request
*req
)
2296 fprintf( stderr
, " handle=%04x", req
->handle
);
2297 fprintf( stderr
, ", flags=%08x", req
->flags
);
2298 fprintf( stderr
, ", suspend=%d", req
->suspend
);
2301 static void dump_get_thread_context_reply( const struct get_thread_context_reply
*req
)
2303 fprintf( stderr
, " self=%d", req
->self
);
2304 dump_varargs_context( ", context=", cur_size
);
2307 static void dump_set_thread_context_request( const struct set_thread_context_request
*req
)
2309 fprintf( stderr
, " handle=%04x", req
->handle
);
2310 fprintf( stderr
, ", suspend=%d", req
->suspend
);
2311 dump_varargs_context( ", context=", cur_size
);
2314 static void dump_set_thread_context_reply( const struct set_thread_context_reply
*req
)
2316 fprintf( stderr
, " self=%d", req
->self
);
2319 static void dump_get_selector_entry_request( const struct get_selector_entry_request
*req
)
2321 fprintf( stderr
, " handle=%04x", req
->handle
);
2322 fprintf( stderr
, ", entry=%d", req
->entry
);
2325 static void dump_get_selector_entry_reply( const struct get_selector_entry_reply
*req
)
2327 fprintf( stderr
, " base=%08x", req
->base
);
2328 fprintf( stderr
, ", limit=%08x", req
->limit
);
2329 fprintf( stderr
, ", flags=%02x", req
->flags
);
2332 static void dump_add_atom_request( const struct add_atom_request
*req
)
2334 fprintf( stderr
, " table=%04x", req
->table
);
2335 dump_varargs_unicode_str( ", name=", cur_size
);
2338 static void dump_add_atom_reply( const struct add_atom_reply
*req
)
2340 fprintf( stderr
, " atom=%04x", req
->atom
);
2343 static void dump_delete_atom_request( const struct delete_atom_request
*req
)
2345 fprintf( stderr
, " table=%04x", req
->table
);
2346 fprintf( stderr
, ", atom=%04x", req
->atom
);
2349 static void dump_find_atom_request( const struct find_atom_request
*req
)
2351 fprintf( stderr
, " table=%04x", req
->table
);
2352 dump_varargs_unicode_str( ", name=", cur_size
);
2355 static void dump_find_atom_reply( const struct find_atom_reply
*req
)
2357 fprintf( stderr
, " atom=%04x", req
->atom
);
2360 static void dump_get_atom_information_request( const struct get_atom_information_request
*req
)
2362 fprintf( stderr
, " table=%04x", req
->table
);
2363 fprintf( stderr
, ", atom=%04x", req
->atom
);
2366 static void dump_get_atom_information_reply( const struct get_atom_information_reply
*req
)
2368 fprintf( stderr
, " count=%d", req
->count
);
2369 fprintf( stderr
, ", pinned=%d", req
->pinned
);
2370 fprintf( stderr
, ", total=%u", req
->total
);
2371 dump_varargs_unicode_str( ", name=", cur_size
);
2374 static void dump_set_atom_information_request( const struct set_atom_information_request
*req
)
2376 fprintf( stderr
, " table=%04x", req
->table
);
2377 fprintf( stderr
, ", atom=%04x", req
->atom
);
2378 fprintf( stderr
, ", pinned=%d", req
->pinned
);
2381 static void dump_empty_atom_table_request( const struct empty_atom_table_request
*req
)
2383 fprintf( stderr
, " table=%04x", req
->table
);
2384 fprintf( stderr
, ", if_pinned=%d", req
->if_pinned
);
2387 static void dump_init_atom_table_request( const struct init_atom_table_request
*req
)
2389 fprintf( stderr
, " entries=%d", req
->entries
);
2392 static void dump_init_atom_table_reply( const struct init_atom_table_reply
*req
)
2394 fprintf( stderr
, " table=%04x", req
->table
);
2397 static void dump_get_msg_queue_request( const struct get_msg_queue_request
*req
)
2401 static void dump_get_msg_queue_reply( const struct get_msg_queue_reply
*req
)
2403 fprintf( stderr
, " handle=%04x", req
->handle
);
2406 static void dump_set_queue_fd_request( const struct set_queue_fd_request
*req
)
2408 fprintf( stderr
, " handle=%04x", req
->handle
);
2411 static void dump_set_queue_mask_request( const struct set_queue_mask_request
*req
)
2413 fprintf( stderr
, " wake_mask=%08x", req
->wake_mask
);
2414 fprintf( stderr
, ", changed_mask=%08x", req
->changed_mask
);
2415 fprintf( stderr
, ", skip_wait=%d", req
->skip_wait
);
2418 static void dump_set_queue_mask_reply( const struct set_queue_mask_reply
*req
)
2420 fprintf( stderr
, " wake_bits=%08x", req
->wake_bits
);
2421 fprintf( stderr
, ", changed_bits=%08x", req
->changed_bits
);
2424 static void dump_get_queue_status_request( const struct get_queue_status_request
*req
)
2426 fprintf( stderr
, " clear=%d", req
->clear
);
2429 static void dump_get_queue_status_reply( const struct get_queue_status_reply
*req
)
2431 fprintf( stderr
, " wake_bits=%08x", req
->wake_bits
);
2432 fprintf( stderr
, ", changed_bits=%08x", req
->changed_bits
);
2435 static void dump_get_process_idle_event_request( const struct get_process_idle_event_request
*req
)
2437 fprintf( stderr
, " handle=%04x", req
->handle
);
2440 static void dump_get_process_idle_event_reply( const struct get_process_idle_event_reply
*req
)
2442 fprintf( stderr
, " event=%04x", req
->event
);
2445 static void dump_send_message_request( const struct send_message_request
*req
)
2447 fprintf( stderr
, " id=%04x", req
->id
);
2448 fprintf( stderr
, ", type=%d", req
->type
);
2449 fprintf( stderr
, ", flags=%d", req
->flags
);
2450 fprintf( stderr
, ", win=%08x", req
->win
);
2451 fprintf( stderr
, ", msg=%08x", req
->msg
);
2452 dump_uint64( ", wparam=", &req
->wparam
);
2453 dump_uint64( ", lparam=", &req
->lparam
);
2454 dump_timeout( ", timeout=", &req
->timeout
);
2455 dump_varargs_message_data( ", data=", cur_size
);
2458 static void dump_post_quit_message_request( const struct post_quit_message_request
*req
)
2460 fprintf( stderr
, " exit_code=%d", req
->exit_code
);
2463 static void dump_send_hardware_message_request( const struct send_hardware_message_request
*req
)
2465 fprintf( stderr
, " win=%08x", req
->win
);
2466 dump_hw_input( ", input=", &req
->input
);
2467 fprintf( stderr
, ", flags=%08x", req
->flags
);
2470 static void dump_send_hardware_message_reply( const struct send_hardware_message_reply
*req
)
2472 fprintf( stderr
, " wait=%d", req
->wait
);
2473 fprintf( stderr
, ", prev_x=%d", req
->prev_x
);
2474 fprintf( stderr
, ", prev_y=%d", req
->prev_y
);
2475 fprintf( stderr
, ", new_x=%d", req
->new_x
);
2476 fprintf( stderr
, ", new_y=%d", req
->new_y
);
2477 dump_varargs_bytes( ", keystate=", cur_size
);
2480 static void dump_get_message_request( const struct get_message_request
*req
)
2482 fprintf( stderr
, " flags=%08x", req
->flags
);
2483 fprintf( stderr
, ", get_win=%08x", req
->get_win
);
2484 fprintf( stderr
, ", get_first=%08x", req
->get_first
);
2485 fprintf( stderr
, ", get_last=%08x", req
->get_last
);
2486 fprintf( stderr
, ", hw_id=%08x", req
->hw_id
);
2487 fprintf( stderr
, ", wake_mask=%08x", req
->wake_mask
);
2488 fprintf( stderr
, ", changed_mask=%08x", req
->changed_mask
);
2491 static void dump_get_message_reply( const struct get_message_reply
*req
)
2493 fprintf( stderr
, " win=%08x", req
->win
);
2494 fprintf( stderr
, ", msg=%08x", req
->msg
);
2495 dump_uint64( ", wparam=", &req
->wparam
);
2496 dump_uint64( ", lparam=", &req
->lparam
);
2497 fprintf( stderr
, ", type=%d", req
->type
);
2498 fprintf( stderr
, ", time=%08x", req
->time
);
2499 fprintf( stderr
, ", active_hooks=%08x", req
->active_hooks
);
2500 fprintf( stderr
, ", total=%u", req
->total
);
2501 dump_varargs_message_data( ", data=", cur_size
);
2504 static void dump_reply_message_request( const struct reply_message_request
*req
)
2506 fprintf( stderr
, " remove=%d", req
->remove
);
2507 dump_uint64( ", result=", &req
->result
);
2508 dump_varargs_bytes( ", data=", cur_size
);
2511 static void dump_accept_hardware_message_request( const struct accept_hardware_message_request
*req
)
2513 fprintf( stderr
, " hw_id=%08x", req
->hw_id
);
2514 fprintf( stderr
, ", remove=%d", req
->remove
);
2515 fprintf( stderr
, ", new_win=%08x", req
->new_win
);
2518 static void dump_get_message_reply_request( const struct get_message_reply_request
*req
)
2520 fprintf( stderr
, " cancel=%d", req
->cancel
);
2523 static void dump_get_message_reply_reply( const struct get_message_reply_reply
*req
)
2525 dump_uint64( " result=", &req
->result
);
2526 dump_varargs_bytes( ", data=", cur_size
);
2529 static void dump_set_win_timer_request( const struct set_win_timer_request
*req
)
2531 fprintf( stderr
, " win=%08x", req
->win
);
2532 fprintf( stderr
, ", msg=%08x", req
->msg
);
2533 fprintf( stderr
, ", rate=%08x", req
->rate
);
2534 dump_uint64( ", id=", &req
->id
);
2535 dump_uint64( ", lparam=", &req
->lparam
);
2538 static void dump_set_win_timer_reply( const struct set_win_timer_reply
*req
)
2540 dump_uint64( " id=", &req
->id
);
2543 static void dump_kill_win_timer_request( const struct kill_win_timer_request
*req
)
2545 fprintf( stderr
, " win=%08x", req
->win
);
2546 dump_uint64( ", id=", &req
->id
);
2547 fprintf( stderr
, ", msg=%08x", req
->msg
);
2550 static void dump_is_window_hung_request( const struct is_window_hung_request
*req
)
2552 fprintf( stderr
, " win=%08x", req
->win
);
2555 static void dump_is_window_hung_reply( const struct is_window_hung_reply
*req
)
2557 fprintf( stderr
, " is_hung=%d", req
->is_hung
);
2560 static void dump_get_serial_info_request( const struct get_serial_info_request
*req
)
2562 fprintf( stderr
, " handle=%04x", req
->handle
);
2565 static void dump_get_serial_info_reply( const struct get_serial_info_reply
*req
)
2567 fprintf( stderr
, " readinterval=%08x", req
->readinterval
);
2568 fprintf( stderr
, ", readconst=%08x", req
->readconst
);
2569 fprintf( stderr
, ", readmult=%08x", req
->readmult
);
2570 fprintf( stderr
, ", writeconst=%08x", req
->writeconst
);
2571 fprintf( stderr
, ", writemult=%08x", req
->writemult
);
2572 fprintf( stderr
, ", eventmask=%08x", req
->eventmask
);
2575 static void dump_set_serial_info_request( const struct set_serial_info_request
*req
)
2577 fprintf( stderr
, " handle=%04x", req
->handle
);
2578 fprintf( stderr
, ", flags=%d", req
->flags
);
2579 fprintf( stderr
, ", readinterval=%08x", req
->readinterval
);
2580 fprintf( stderr
, ", readconst=%08x", req
->readconst
);
2581 fprintf( stderr
, ", readmult=%08x", req
->readmult
);
2582 fprintf( stderr
, ", writeconst=%08x", req
->writeconst
);
2583 fprintf( stderr
, ", writemult=%08x", req
->writemult
);
2584 fprintf( stderr
, ", eventmask=%08x", req
->eventmask
);
2587 static void dump_register_async_request( const struct register_async_request
*req
)
2589 fprintf( stderr
, " type=%d", req
->type
);
2590 dump_async_data( ", async=", &req
->async
);
2591 fprintf( stderr
, ", count=%d", req
->count
);
2594 static void dump_cancel_async_request( const struct cancel_async_request
*req
)
2596 fprintf( stderr
, " handle=%04x", req
->handle
);
2597 dump_uint64( ", iosb=", &req
->iosb
);
2598 fprintf( stderr
, ", only_thread=%d", req
->only_thread
);
2601 static void dump_ioctl_request( const struct ioctl_request
*req
)
2603 dump_ioctl_code( " code=", &req
->code
);
2604 dump_async_data( ", async=", &req
->async
);
2605 fprintf( stderr
, ", blocking=%d", req
->blocking
);
2606 dump_varargs_bytes( ", in_data=", cur_size
);
2609 static void dump_ioctl_reply( const struct ioctl_reply
*req
)
2611 fprintf( stderr
, " wait=%04x", req
->wait
);
2612 fprintf( stderr
, ", options=%08x", req
->options
);
2613 dump_varargs_bytes( ", out_data=", cur_size
);
2616 static void dump_get_ioctl_result_request( const struct get_ioctl_result_request
*req
)
2618 fprintf( stderr
, " handle=%04x", req
->handle
);
2619 dump_uint64( ", user_arg=", &req
->user_arg
);
2622 static void dump_get_ioctl_result_reply( const struct get_ioctl_result_reply
*req
)
2624 dump_varargs_bytes( " out_data=", cur_size
);
2627 static void dump_create_named_pipe_request( const struct create_named_pipe_request
*req
)
2629 fprintf( stderr
, " access=%08x", req
->access
);
2630 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
2631 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
2632 fprintf( stderr
, ", options=%08x", req
->options
);
2633 fprintf( stderr
, ", sharing=%08x", req
->sharing
);
2634 fprintf( stderr
, ", maxinstances=%08x", req
->maxinstances
);
2635 fprintf( stderr
, ", outsize=%08x", req
->outsize
);
2636 fprintf( stderr
, ", insize=%08x", req
->insize
);
2637 dump_timeout( ", timeout=", &req
->timeout
);
2638 fprintf( stderr
, ", flags=%08x", req
->flags
);
2639 dump_varargs_unicode_str( ", name=", cur_size
);
2642 static void dump_create_named_pipe_reply( const struct create_named_pipe_reply
*req
)
2644 fprintf( stderr
, " handle=%04x", req
->handle
);
2647 static void dump_get_named_pipe_info_request( const struct get_named_pipe_info_request
*req
)
2649 fprintf( stderr
, " handle=%04x", req
->handle
);
2652 static void dump_get_named_pipe_info_reply( const struct get_named_pipe_info_reply
*req
)
2654 fprintf( stderr
, " flags=%08x", req
->flags
);
2655 fprintf( stderr
, ", sharing=%08x", req
->sharing
);
2656 fprintf( stderr
, ", maxinstances=%08x", req
->maxinstances
);
2657 fprintf( stderr
, ", instances=%08x", req
->instances
);
2658 fprintf( stderr
, ", outsize=%08x", req
->outsize
);
2659 fprintf( stderr
, ", insize=%08x", req
->insize
);
2662 static void dump_create_window_request( const struct create_window_request
*req
)
2664 fprintf( stderr
, " parent=%08x", req
->parent
);
2665 fprintf( stderr
, ", owner=%08x", req
->owner
);
2666 fprintf( stderr
, ", atom=%04x", req
->atom
);
2667 dump_uint64( ", instance=", &req
->instance
);
2668 dump_varargs_unicode_str( ", class=", cur_size
);
2671 static void dump_create_window_reply( const struct create_window_reply
*req
)
2673 fprintf( stderr
, " handle=%08x", req
->handle
);
2674 fprintf( stderr
, ", parent=%08x", req
->parent
);
2675 fprintf( stderr
, ", owner=%08x", req
->owner
);
2676 fprintf( stderr
, ", extra=%d", req
->extra
);
2677 dump_uint64( ", class_ptr=", &req
->class_ptr
);
2680 static void dump_destroy_window_request( const struct destroy_window_request
*req
)
2682 fprintf( stderr
, " handle=%08x", req
->handle
);
2685 static void dump_get_desktop_window_request( const struct get_desktop_window_request
*req
)
2687 fprintf( stderr
, " force=%d", req
->force
);
2690 static void dump_get_desktop_window_reply( const struct get_desktop_window_reply
*req
)
2692 fprintf( stderr
, " top_window=%08x", req
->top_window
);
2693 fprintf( stderr
, ", msg_window=%08x", req
->msg_window
);
2696 static void dump_set_window_owner_request( const struct set_window_owner_request
*req
)
2698 fprintf( stderr
, " handle=%08x", req
->handle
);
2699 fprintf( stderr
, ", owner=%08x", req
->owner
);
2702 static void dump_set_window_owner_reply( const struct set_window_owner_reply
*req
)
2704 fprintf( stderr
, " full_owner=%08x", req
->full_owner
);
2705 fprintf( stderr
, ", prev_owner=%08x", req
->prev_owner
);
2708 static void dump_get_window_info_request( const struct get_window_info_request
*req
)
2710 fprintf( stderr
, " handle=%08x", req
->handle
);
2713 static void dump_get_window_info_reply( const struct get_window_info_reply
*req
)
2715 fprintf( stderr
, " full_handle=%08x", req
->full_handle
);
2716 fprintf( stderr
, ", last_active=%08x", req
->last_active
);
2717 fprintf( stderr
, ", pid=%04x", req
->pid
);
2718 fprintf( stderr
, ", tid=%04x", req
->tid
);
2719 fprintf( stderr
, ", atom=%04x", req
->atom
);
2720 fprintf( stderr
, ", is_unicode=%d", req
->is_unicode
);
2723 static void dump_set_window_info_request( const struct set_window_info_request
*req
)
2725 fprintf( stderr
, " flags=%04x", req
->flags
);
2726 fprintf( stderr
, ", is_unicode=%d", req
->is_unicode
);
2727 fprintf( stderr
, ", handle=%08x", req
->handle
);
2728 fprintf( stderr
, ", style=%08x", req
->style
);
2729 fprintf( stderr
, ", ex_style=%08x", req
->ex_style
);
2730 fprintf( stderr
, ", id=%08x", req
->id
);
2731 dump_uint64( ", instance=", &req
->instance
);
2732 dump_uint64( ", user_data=", &req
->user_data
);
2733 fprintf( stderr
, ", extra_offset=%d", req
->extra_offset
);
2734 fprintf( stderr
, ", extra_size=%u", req
->extra_size
);
2735 dump_uint64( ", extra_value=", &req
->extra_value
);
2738 static void dump_set_window_info_reply( const struct set_window_info_reply
*req
)
2740 fprintf( stderr
, " old_style=%08x", req
->old_style
);
2741 fprintf( stderr
, ", old_ex_style=%08x", req
->old_ex_style
);
2742 dump_uint64( ", old_instance=", &req
->old_instance
);
2743 dump_uint64( ", old_user_data=", &req
->old_user_data
);
2744 dump_uint64( ", old_extra_value=", &req
->old_extra_value
);
2745 fprintf( stderr
, ", old_id=%08x", req
->old_id
);
2748 static void dump_set_parent_request( const struct set_parent_request
*req
)
2750 fprintf( stderr
, " handle=%08x", req
->handle
);
2751 fprintf( stderr
, ", parent=%08x", req
->parent
);
2754 static void dump_set_parent_reply( const struct set_parent_reply
*req
)
2756 fprintf( stderr
, " old_parent=%08x", req
->old_parent
);
2757 fprintf( stderr
, ", full_parent=%08x", req
->full_parent
);
2760 static void dump_get_window_parents_request( const struct get_window_parents_request
*req
)
2762 fprintf( stderr
, " handle=%08x", req
->handle
);
2765 static void dump_get_window_parents_reply( const struct get_window_parents_reply
*req
)
2767 fprintf( stderr
, " count=%d", req
->count
);
2768 dump_varargs_user_handles( ", parents=", cur_size
);
2771 static void dump_get_window_children_request( const struct get_window_children_request
*req
)
2773 fprintf( stderr
, " desktop=%04x", req
->desktop
);
2774 fprintf( stderr
, ", parent=%08x", req
->parent
);
2775 fprintf( stderr
, ", atom=%04x", req
->atom
);
2776 fprintf( stderr
, ", tid=%04x", req
->tid
);
2777 dump_varargs_unicode_str( ", class=", cur_size
);
2780 static void dump_get_window_children_reply( const struct get_window_children_reply
*req
)
2782 fprintf( stderr
, " count=%d", req
->count
);
2783 dump_varargs_user_handles( ", children=", cur_size
);
2786 static void dump_get_window_children_from_point_request( const struct get_window_children_from_point_request
*req
)
2788 fprintf( stderr
, " parent=%08x", req
->parent
);
2789 fprintf( stderr
, ", x=%d", req
->x
);
2790 fprintf( stderr
, ", y=%d", req
->y
);
2793 static void dump_get_window_children_from_point_reply( const struct get_window_children_from_point_reply
*req
)
2795 fprintf( stderr
, " count=%d", req
->count
);
2796 dump_varargs_user_handles( ", children=", cur_size
);
2799 static void dump_get_window_tree_request( const struct get_window_tree_request
*req
)
2801 fprintf( stderr
, " handle=%08x", req
->handle
);
2804 static void dump_get_window_tree_reply( const struct get_window_tree_reply
*req
)
2806 fprintf( stderr
, " parent=%08x", req
->parent
);
2807 fprintf( stderr
, ", owner=%08x", req
->owner
);
2808 fprintf( stderr
, ", next_sibling=%08x", req
->next_sibling
);
2809 fprintf( stderr
, ", prev_sibling=%08x", req
->prev_sibling
);
2810 fprintf( stderr
, ", first_sibling=%08x", req
->first_sibling
);
2811 fprintf( stderr
, ", last_sibling=%08x", req
->last_sibling
);
2812 fprintf( stderr
, ", first_child=%08x", req
->first_child
);
2813 fprintf( stderr
, ", last_child=%08x", req
->last_child
);
2816 static void dump_set_window_pos_request( const struct set_window_pos_request
*req
)
2818 fprintf( stderr
, " swp_flags=%04x", req
->swp_flags
);
2819 fprintf( stderr
, ", paint_flags=%04x", req
->paint_flags
);
2820 fprintf( stderr
, ", handle=%08x", req
->handle
);
2821 fprintf( stderr
, ", previous=%08x", req
->previous
);
2822 dump_rectangle( ", window=", &req
->window
);
2823 dump_rectangle( ", client=", &req
->client
);
2824 dump_varargs_rectangles( ", valid=", cur_size
);
2827 static void dump_set_window_pos_reply( const struct set_window_pos_reply
*req
)
2829 fprintf( stderr
, " new_style=%08x", req
->new_style
);
2830 fprintf( stderr
, ", new_ex_style=%08x", req
->new_ex_style
);
2831 fprintf( stderr
, ", surface_win=%08x", req
->surface_win
);
2834 static void dump_get_window_rectangles_request( const struct get_window_rectangles_request
*req
)
2836 fprintf( stderr
, " handle=%08x", req
->handle
);
2837 fprintf( stderr
, ", relative=%d", req
->relative
);
2840 static void dump_get_window_rectangles_reply( const struct get_window_rectangles_reply
*req
)
2842 dump_rectangle( " window=", &req
->window
);
2843 dump_rectangle( ", visible=", &req
->visible
);
2844 dump_rectangle( ", client=", &req
->client
);
2847 static void dump_get_window_text_request( const struct get_window_text_request
*req
)
2849 fprintf( stderr
, " handle=%08x", req
->handle
);
2852 static void dump_get_window_text_reply( const struct get_window_text_reply
*req
)
2854 dump_varargs_unicode_str( " text=", cur_size
);
2857 static void dump_set_window_text_request( const struct set_window_text_request
*req
)
2859 fprintf( stderr
, " handle=%08x", req
->handle
);
2860 dump_varargs_unicode_str( ", text=", cur_size
);
2863 static void dump_get_windows_offset_request( const struct get_windows_offset_request
*req
)
2865 fprintf( stderr
, " from=%08x", req
->from
);
2866 fprintf( stderr
, ", to=%08x", req
->to
);
2869 static void dump_get_windows_offset_reply( const struct get_windows_offset_reply
*req
)
2871 fprintf( stderr
, " x=%d", req
->x
);
2872 fprintf( stderr
, ", y=%d", req
->y
);
2873 fprintf( stderr
, ", mirror=%d", req
->mirror
);
2876 static void dump_get_visible_region_request( const struct get_visible_region_request
*req
)
2878 fprintf( stderr
, " window=%08x", req
->window
);
2879 fprintf( stderr
, ", flags=%08x", req
->flags
);
2882 static void dump_get_visible_region_reply( const struct get_visible_region_reply
*req
)
2884 fprintf( stderr
, " top_win=%08x", req
->top_win
);
2885 dump_rectangle( ", top_rect=", &req
->top_rect
);
2886 dump_rectangle( ", win_rect=", &req
->win_rect
);
2887 fprintf( stderr
, ", total_size=%u", req
->total_size
);
2888 dump_varargs_rectangles( ", region=", cur_size
);
2891 static void dump_get_surface_region_request( const struct get_surface_region_request
*req
)
2893 fprintf( stderr
, " window=%08x", req
->window
);
2896 static void dump_get_surface_region_reply( const struct get_surface_region_reply
*req
)
2898 dump_rectangle( " visible_rect=", &req
->visible_rect
);
2899 fprintf( stderr
, ", total_size=%u", req
->total_size
);
2900 dump_varargs_rectangles( ", region=", cur_size
);
2903 static void dump_get_window_region_request( const struct get_window_region_request
*req
)
2905 fprintf( stderr
, " window=%08x", req
->window
);
2908 static void dump_get_window_region_reply( const struct get_window_region_reply
*req
)
2910 fprintf( stderr
, " total_size=%u", req
->total_size
);
2911 dump_varargs_rectangles( ", region=", cur_size
);
2914 static void dump_set_window_region_request( const struct set_window_region_request
*req
)
2916 fprintf( stderr
, " window=%08x", req
->window
);
2917 fprintf( stderr
, ", redraw=%d", req
->redraw
);
2918 dump_varargs_rectangles( ", region=", cur_size
);
2921 static void dump_get_update_region_request( const struct get_update_region_request
*req
)
2923 fprintf( stderr
, " window=%08x", req
->window
);
2924 fprintf( stderr
, ", from_child=%08x", req
->from_child
);
2925 fprintf( stderr
, ", flags=%08x", req
->flags
);
2928 static void dump_get_update_region_reply( const struct get_update_region_reply
*req
)
2930 fprintf( stderr
, " child=%08x", req
->child
);
2931 fprintf( stderr
, ", flags=%08x", req
->flags
);
2932 fprintf( stderr
, ", total_size=%u", req
->total_size
);
2933 dump_varargs_rectangles( ", region=", cur_size
);
2936 static void dump_update_window_zorder_request( const struct update_window_zorder_request
*req
)
2938 fprintf( stderr
, " window=%08x", req
->window
);
2939 dump_rectangle( ", rect=", &req
->rect
);
2942 static void dump_redraw_window_request( const struct redraw_window_request
*req
)
2944 fprintf( stderr
, " window=%08x", req
->window
);
2945 fprintf( stderr
, ", flags=%08x", req
->flags
);
2946 dump_varargs_rectangles( ", region=", cur_size
);
2949 static void dump_set_window_property_request( const struct set_window_property_request
*req
)
2951 fprintf( stderr
, " window=%08x", req
->window
);
2952 dump_uint64( ", data=", &req
->data
);
2953 fprintf( stderr
, ", atom=%04x", req
->atom
);
2954 dump_varargs_unicode_str( ", name=", cur_size
);
2957 static void dump_remove_window_property_request( const struct remove_window_property_request
*req
)
2959 fprintf( stderr
, " window=%08x", req
->window
);
2960 fprintf( stderr
, ", atom=%04x", req
->atom
);
2961 dump_varargs_unicode_str( ", name=", cur_size
);
2964 static void dump_remove_window_property_reply( const struct remove_window_property_reply
*req
)
2966 dump_uint64( " data=", &req
->data
);
2969 static void dump_get_window_property_request( const struct get_window_property_request
*req
)
2971 fprintf( stderr
, " window=%08x", req
->window
);
2972 fprintf( stderr
, ", atom=%04x", req
->atom
);
2973 dump_varargs_unicode_str( ", name=", cur_size
);
2976 static void dump_get_window_property_reply( const struct get_window_property_reply
*req
)
2978 dump_uint64( " data=", &req
->data
);
2981 static void dump_get_window_properties_request( const struct get_window_properties_request
*req
)
2983 fprintf( stderr
, " window=%08x", req
->window
);
2986 static void dump_get_window_properties_reply( const struct get_window_properties_reply
*req
)
2988 fprintf( stderr
, " total=%d", req
->total
);
2989 dump_varargs_properties( ", props=", cur_size
);
2992 static void dump_create_winstation_request( const struct create_winstation_request
*req
)
2994 fprintf( stderr
, " flags=%08x", req
->flags
);
2995 fprintf( stderr
, ", access=%08x", req
->access
);
2996 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
2997 dump_varargs_unicode_str( ", name=", cur_size
);
3000 static void dump_create_winstation_reply( const struct create_winstation_reply
*req
)
3002 fprintf( stderr
, " handle=%04x", req
->handle
);
3005 static void dump_open_winstation_request( const struct open_winstation_request
*req
)
3007 fprintf( stderr
, " access=%08x", req
->access
);
3008 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3009 dump_varargs_unicode_str( ", name=", cur_size
);
3012 static void dump_open_winstation_reply( const struct open_winstation_reply
*req
)
3014 fprintf( stderr
, " handle=%04x", req
->handle
);
3017 static void dump_close_winstation_request( const struct close_winstation_request
*req
)
3019 fprintf( stderr
, " handle=%04x", req
->handle
);
3022 static void dump_get_process_winstation_request( const struct get_process_winstation_request
*req
)
3026 static void dump_get_process_winstation_reply( const struct get_process_winstation_reply
*req
)
3028 fprintf( stderr
, " handle=%04x", req
->handle
);
3031 static void dump_set_process_winstation_request( const struct set_process_winstation_request
*req
)
3033 fprintf( stderr
, " handle=%04x", req
->handle
);
3036 static void dump_enum_winstation_request( const struct enum_winstation_request
*req
)
3038 fprintf( stderr
, " index=%08x", req
->index
);
3041 static void dump_enum_winstation_reply( const struct enum_winstation_reply
*req
)
3043 fprintf( stderr
, " next=%08x", req
->next
);
3044 dump_varargs_unicode_str( ", name=", cur_size
);
3047 static void dump_create_desktop_request( const struct create_desktop_request
*req
)
3049 fprintf( stderr
, " flags=%08x", req
->flags
);
3050 fprintf( stderr
, ", access=%08x", req
->access
);
3051 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3052 dump_varargs_unicode_str( ", name=", cur_size
);
3055 static void dump_create_desktop_reply( const struct create_desktop_reply
*req
)
3057 fprintf( stderr
, " handle=%04x", req
->handle
);
3060 static void dump_open_desktop_request( const struct open_desktop_request
*req
)
3062 fprintf( stderr
, " winsta=%04x", req
->winsta
);
3063 fprintf( stderr
, ", flags=%08x", req
->flags
);
3064 fprintf( stderr
, ", access=%08x", req
->access
);
3065 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3066 dump_varargs_unicode_str( ", name=", cur_size
);
3069 static void dump_open_desktop_reply( const struct open_desktop_reply
*req
)
3071 fprintf( stderr
, " handle=%04x", req
->handle
);
3074 static void dump_close_desktop_request( const struct close_desktop_request
*req
)
3076 fprintf( stderr
, " handle=%04x", req
->handle
);
3079 static void dump_get_thread_desktop_request( const struct get_thread_desktop_request
*req
)
3081 fprintf( stderr
, " tid=%04x", req
->tid
);
3084 static void dump_get_thread_desktop_reply( const struct get_thread_desktop_reply
*req
)
3086 fprintf( stderr
, " handle=%04x", req
->handle
);
3089 static void dump_set_thread_desktop_request( const struct set_thread_desktop_request
*req
)
3091 fprintf( stderr
, " handle=%04x", req
->handle
);
3094 static void dump_enum_desktop_request( const struct enum_desktop_request
*req
)
3096 fprintf( stderr
, " winstation=%04x", req
->winstation
);
3097 fprintf( stderr
, ", index=%08x", req
->index
);
3100 static void dump_enum_desktop_reply( const struct enum_desktop_reply
*req
)
3102 fprintf( stderr
, " next=%08x", req
->next
);
3103 dump_varargs_unicode_str( ", name=", cur_size
);
3106 static void dump_set_user_object_info_request( const struct set_user_object_info_request
*req
)
3108 fprintf( stderr
, " handle=%04x", req
->handle
);
3109 fprintf( stderr
, ", flags=%08x", req
->flags
);
3110 fprintf( stderr
, ", obj_flags=%08x", req
->obj_flags
);
3113 static void dump_set_user_object_info_reply( const struct set_user_object_info_reply
*req
)
3115 fprintf( stderr
, " is_desktop=%d", req
->is_desktop
);
3116 fprintf( stderr
, ", old_obj_flags=%08x", req
->old_obj_flags
);
3117 dump_varargs_unicode_str( ", name=", cur_size
);
3120 static void dump_register_hotkey_request( const struct register_hotkey_request
*req
)
3122 fprintf( stderr
, " window=%08x", req
->window
);
3123 fprintf( stderr
, ", id=%d", req
->id
);
3124 fprintf( stderr
, ", flags=%08x", req
->flags
);
3125 fprintf( stderr
, ", vkey=%08x", req
->vkey
);
3128 static void dump_register_hotkey_reply( const struct register_hotkey_reply
*req
)
3130 fprintf( stderr
, " replaced=%d", req
->replaced
);
3131 fprintf( stderr
, ", flags=%08x", req
->flags
);
3132 fprintf( stderr
, ", vkey=%08x", req
->vkey
);
3135 static void dump_unregister_hotkey_request( const struct unregister_hotkey_request
*req
)
3137 fprintf( stderr
, " window=%08x", req
->window
);
3138 fprintf( stderr
, ", id=%d", req
->id
);
3141 static void dump_unregister_hotkey_reply( const struct unregister_hotkey_reply
*req
)
3143 fprintf( stderr
, " flags=%08x", req
->flags
);
3144 fprintf( stderr
, ", vkey=%08x", req
->vkey
);
3147 static void dump_attach_thread_input_request( const struct attach_thread_input_request
*req
)
3149 fprintf( stderr
, " tid_from=%04x", req
->tid_from
);
3150 fprintf( stderr
, ", tid_to=%04x", req
->tid_to
);
3151 fprintf( stderr
, ", attach=%d", req
->attach
);
3154 static void dump_get_thread_input_request( const struct get_thread_input_request
*req
)
3156 fprintf( stderr
, " tid=%04x", req
->tid
);
3159 static void dump_get_thread_input_reply( const struct get_thread_input_reply
*req
)
3161 fprintf( stderr
, " focus=%08x", req
->focus
);
3162 fprintf( stderr
, ", capture=%08x", req
->capture
);
3163 fprintf( stderr
, ", active=%08x", req
->active
);
3164 fprintf( stderr
, ", foreground=%08x", req
->foreground
);
3165 fprintf( stderr
, ", menu_owner=%08x", req
->menu_owner
);
3166 fprintf( stderr
, ", move_size=%08x", req
->move_size
);
3167 fprintf( stderr
, ", caret=%08x", req
->caret
);
3168 fprintf( stderr
, ", cursor=%08x", req
->cursor
);
3169 fprintf( stderr
, ", show_count=%d", req
->show_count
);
3170 dump_rectangle( ", rect=", &req
->rect
);
3173 static void dump_get_last_input_time_request( const struct get_last_input_time_request
*req
)
3177 static void dump_get_last_input_time_reply( const struct get_last_input_time_reply
*req
)
3179 fprintf( stderr
, " time=%08x", req
->time
);
3182 static void dump_get_key_state_request( const struct get_key_state_request
*req
)
3184 fprintf( stderr
, " tid=%04x", req
->tid
);
3185 fprintf( stderr
, ", key=%d", req
->key
);
3188 static void dump_get_key_state_reply( const struct get_key_state_reply
*req
)
3190 fprintf( stderr
, " state=%02x", req
->state
);
3191 dump_varargs_bytes( ", keystate=", cur_size
);
3194 static void dump_set_key_state_request( const struct set_key_state_request
*req
)
3196 fprintf( stderr
, " tid=%04x", req
->tid
);
3197 fprintf( stderr
, ", async=%d", req
->async
);
3198 dump_varargs_bytes( ", keystate=", cur_size
);
3201 static void dump_set_foreground_window_request( const struct set_foreground_window_request
*req
)
3203 fprintf( stderr
, " handle=%08x", req
->handle
);
3206 static void dump_set_foreground_window_reply( const struct set_foreground_window_reply
*req
)
3208 fprintf( stderr
, " previous=%08x", req
->previous
);
3209 fprintf( stderr
, ", send_msg_old=%d", req
->send_msg_old
);
3210 fprintf( stderr
, ", send_msg_new=%d", req
->send_msg_new
);
3213 static void dump_set_focus_window_request( const struct set_focus_window_request
*req
)
3215 fprintf( stderr
, " handle=%08x", req
->handle
);
3218 static void dump_set_focus_window_reply( const struct set_focus_window_reply
*req
)
3220 fprintf( stderr
, " previous=%08x", req
->previous
);
3223 static void dump_set_active_window_request( const struct set_active_window_request
*req
)
3225 fprintf( stderr
, " handle=%08x", req
->handle
);
3228 static void dump_set_active_window_reply( const struct set_active_window_reply
*req
)
3230 fprintf( stderr
, " previous=%08x", req
->previous
);
3233 static void dump_set_capture_window_request( const struct set_capture_window_request
*req
)
3235 fprintf( stderr
, " handle=%08x", req
->handle
);
3236 fprintf( stderr
, ", flags=%08x", req
->flags
);
3239 static void dump_set_capture_window_reply( const struct set_capture_window_reply
*req
)
3241 fprintf( stderr
, " previous=%08x", req
->previous
);
3242 fprintf( stderr
, ", full_handle=%08x", req
->full_handle
);
3245 static void dump_set_caret_window_request( const struct set_caret_window_request
*req
)
3247 fprintf( stderr
, " handle=%08x", req
->handle
);
3248 fprintf( stderr
, ", width=%d", req
->width
);
3249 fprintf( stderr
, ", height=%d", req
->height
);
3252 static void dump_set_caret_window_reply( const struct set_caret_window_reply
*req
)
3254 fprintf( stderr
, " previous=%08x", req
->previous
);
3255 dump_rectangle( ", old_rect=", &req
->old_rect
);
3256 fprintf( stderr
, ", old_hide=%d", req
->old_hide
);
3257 fprintf( stderr
, ", old_state=%d", req
->old_state
);
3260 static void dump_set_caret_info_request( const struct set_caret_info_request
*req
)
3262 fprintf( stderr
, " flags=%08x", req
->flags
);
3263 fprintf( stderr
, ", handle=%08x", req
->handle
);
3264 fprintf( stderr
, ", x=%d", req
->x
);
3265 fprintf( stderr
, ", y=%d", req
->y
);
3266 fprintf( stderr
, ", hide=%d", req
->hide
);
3267 fprintf( stderr
, ", state=%d", req
->state
);
3270 static void dump_set_caret_info_reply( const struct set_caret_info_reply
*req
)
3272 fprintf( stderr
, " full_handle=%08x", req
->full_handle
);
3273 dump_rectangle( ", old_rect=", &req
->old_rect
);
3274 fprintf( stderr
, ", old_hide=%d", req
->old_hide
);
3275 fprintf( stderr
, ", old_state=%d", req
->old_state
);
3278 static void dump_set_hook_request( const struct set_hook_request
*req
)
3280 fprintf( stderr
, " id=%d", req
->id
);
3281 fprintf( stderr
, ", pid=%04x", req
->pid
);
3282 fprintf( stderr
, ", tid=%04x", req
->tid
);
3283 fprintf( stderr
, ", event_min=%d", req
->event_min
);
3284 fprintf( stderr
, ", event_max=%d", req
->event_max
);
3285 dump_uint64( ", proc=", &req
->proc
);
3286 fprintf( stderr
, ", flags=%d", req
->flags
);
3287 fprintf( stderr
, ", unicode=%d", req
->unicode
);
3288 dump_varargs_unicode_str( ", module=", cur_size
);
3291 static void dump_set_hook_reply( const struct set_hook_reply
*req
)
3293 fprintf( stderr
, " handle=%08x", req
->handle
);
3294 fprintf( stderr
, ", active_hooks=%08x", req
->active_hooks
);
3297 static void dump_remove_hook_request( const struct remove_hook_request
*req
)
3299 fprintf( stderr
, " handle=%08x", req
->handle
);
3300 dump_uint64( ", proc=", &req
->proc
);
3301 fprintf( stderr
, ", id=%d", req
->id
);
3304 static void dump_remove_hook_reply( const struct remove_hook_reply
*req
)
3306 fprintf( stderr
, " active_hooks=%08x", req
->active_hooks
);
3309 static void dump_start_hook_chain_request( const struct start_hook_chain_request
*req
)
3311 fprintf( stderr
, " id=%d", req
->id
);
3312 fprintf( stderr
, ", event=%d", req
->event
);
3313 fprintf( stderr
, ", window=%08x", req
->window
);
3314 fprintf( stderr
, ", object_id=%d", req
->object_id
);
3315 fprintf( stderr
, ", child_id=%d", req
->child_id
);
3318 static void dump_start_hook_chain_reply( const struct start_hook_chain_reply
*req
)
3320 fprintf( stderr
, " handle=%08x", req
->handle
);
3321 fprintf( stderr
, ", pid=%04x", req
->pid
);
3322 fprintf( stderr
, ", tid=%04x", req
->tid
);
3323 fprintf( stderr
, ", unicode=%d", req
->unicode
);
3324 dump_uint64( ", proc=", &req
->proc
);
3325 fprintf( stderr
, ", active_hooks=%08x", req
->active_hooks
);
3326 dump_varargs_unicode_str( ", module=", cur_size
);
3329 static void dump_finish_hook_chain_request( const struct finish_hook_chain_request
*req
)
3331 fprintf( stderr
, " id=%d", req
->id
);
3334 static void dump_get_hook_info_request( const struct get_hook_info_request
*req
)
3336 fprintf( stderr
, " handle=%08x", req
->handle
);
3337 fprintf( stderr
, ", get_next=%d", req
->get_next
);
3338 fprintf( stderr
, ", event=%d", req
->event
);
3339 fprintf( stderr
, ", window=%08x", req
->window
);
3340 fprintf( stderr
, ", object_id=%d", req
->object_id
);
3341 fprintf( stderr
, ", child_id=%d", req
->child_id
);
3344 static void dump_get_hook_info_reply( const struct get_hook_info_reply
*req
)
3346 fprintf( stderr
, " handle=%08x", req
->handle
);
3347 fprintf( stderr
, ", id=%d", req
->id
);
3348 fprintf( stderr
, ", pid=%04x", req
->pid
);
3349 fprintf( stderr
, ", tid=%04x", req
->tid
);
3350 dump_uint64( ", proc=", &req
->proc
);
3351 fprintf( stderr
, ", unicode=%d", req
->unicode
);
3352 dump_varargs_unicode_str( ", module=", cur_size
);
3355 static void dump_create_class_request( const struct create_class_request
*req
)
3357 fprintf( stderr
, " local=%d", req
->local
);
3358 fprintf( stderr
, ", atom=%04x", req
->atom
);
3359 fprintf( stderr
, ", style=%08x", req
->style
);
3360 dump_uint64( ", instance=", &req
->instance
);
3361 fprintf( stderr
, ", extra=%d", req
->extra
);
3362 fprintf( stderr
, ", win_extra=%d", req
->win_extra
);
3363 dump_uint64( ", client_ptr=", &req
->client_ptr
);
3364 dump_varargs_unicode_str( ", name=", cur_size
);
3367 static void dump_create_class_reply( const struct create_class_reply
*req
)
3369 fprintf( stderr
, " atom=%04x", req
->atom
);
3372 static void dump_destroy_class_request( const struct destroy_class_request
*req
)
3374 fprintf( stderr
, " atom=%04x", req
->atom
);
3375 dump_uint64( ", instance=", &req
->instance
);
3376 dump_varargs_unicode_str( ", name=", cur_size
);
3379 static void dump_destroy_class_reply( const struct destroy_class_reply
*req
)
3381 dump_uint64( " client_ptr=", &req
->client_ptr
);
3384 static void dump_set_class_info_request( const struct set_class_info_request
*req
)
3386 fprintf( stderr
, " window=%08x", req
->window
);
3387 fprintf( stderr
, ", flags=%08x", req
->flags
);
3388 fprintf( stderr
, ", atom=%04x", req
->atom
);
3389 fprintf( stderr
, ", style=%08x", req
->style
);
3390 fprintf( stderr
, ", win_extra=%d", req
->win_extra
);
3391 dump_uint64( ", instance=", &req
->instance
);
3392 fprintf( stderr
, ", extra_offset=%d", req
->extra_offset
);
3393 fprintf( stderr
, ", extra_size=%u", req
->extra_size
);
3394 dump_uint64( ", extra_value=", &req
->extra_value
);
3397 static void dump_set_class_info_reply( const struct set_class_info_reply
*req
)
3399 fprintf( stderr
, " old_atom=%04x", req
->old_atom
);
3400 fprintf( stderr
, ", old_style=%08x", req
->old_style
);
3401 fprintf( stderr
, ", old_extra=%d", req
->old_extra
);
3402 fprintf( stderr
, ", old_win_extra=%d", req
->old_win_extra
);
3403 dump_uint64( ", old_instance=", &req
->old_instance
);
3404 dump_uint64( ", old_extra_value=", &req
->old_extra_value
);
3407 static void dump_set_clipboard_info_request( const struct set_clipboard_info_request
*req
)
3409 fprintf( stderr
, " flags=%08x", req
->flags
);
3410 fprintf( stderr
, ", clipboard=%08x", req
->clipboard
);
3411 fprintf( stderr
, ", owner=%08x", req
->owner
);
3412 fprintf( stderr
, ", viewer=%08x", req
->viewer
);
3413 fprintf( stderr
, ", seqno=%08x", req
->seqno
);
3416 static void dump_set_clipboard_info_reply( const struct set_clipboard_info_reply
*req
)
3418 fprintf( stderr
, " flags=%08x", req
->flags
);
3419 fprintf( stderr
, ", old_clipboard=%08x", req
->old_clipboard
);
3420 fprintf( stderr
, ", old_owner=%08x", req
->old_owner
);
3421 fprintf( stderr
, ", old_viewer=%08x", req
->old_viewer
);
3422 fprintf( stderr
, ", seqno=%08x", req
->seqno
);
3425 static void dump_open_token_request( const struct open_token_request
*req
)
3427 fprintf( stderr
, " handle=%04x", req
->handle
);
3428 fprintf( stderr
, ", access=%08x", req
->access
);
3429 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3430 fprintf( stderr
, ", flags=%08x", req
->flags
);
3433 static void dump_open_token_reply( const struct open_token_reply
*req
)
3435 fprintf( stderr
, " token=%04x", req
->token
);
3438 static void dump_set_global_windows_request( const struct set_global_windows_request
*req
)
3440 fprintf( stderr
, " flags=%08x", req
->flags
);
3441 fprintf( stderr
, ", shell_window=%08x", req
->shell_window
);
3442 fprintf( stderr
, ", shell_listview=%08x", req
->shell_listview
);
3443 fprintf( stderr
, ", progman_window=%08x", req
->progman_window
);
3444 fprintf( stderr
, ", taskman_window=%08x", req
->taskman_window
);
3447 static void dump_set_global_windows_reply( const struct set_global_windows_reply
*req
)
3449 fprintf( stderr
, " old_shell_window=%08x", req
->old_shell_window
);
3450 fprintf( stderr
, ", old_shell_listview=%08x", req
->old_shell_listview
);
3451 fprintf( stderr
, ", old_progman_window=%08x", req
->old_progman_window
);
3452 fprintf( stderr
, ", old_taskman_window=%08x", req
->old_taskman_window
);
3455 static void dump_adjust_token_privileges_request( const struct adjust_token_privileges_request
*req
)
3457 fprintf( stderr
, " handle=%04x", req
->handle
);
3458 fprintf( stderr
, ", disable_all=%d", req
->disable_all
);
3459 fprintf( stderr
, ", get_modified_state=%d", req
->get_modified_state
);
3460 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size
);
3463 static void dump_adjust_token_privileges_reply( const struct adjust_token_privileges_reply
*req
)
3465 fprintf( stderr
, " len=%08x", req
->len
);
3466 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size
);
3469 static void dump_get_token_privileges_request( const struct get_token_privileges_request
*req
)
3471 fprintf( stderr
, " handle=%04x", req
->handle
);
3474 static void dump_get_token_privileges_reply( const struct get_token_privileges_reply
*req
)
3476 fprintf( stderr
, " len=%08x", req
->len
);
3477 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size
);
3480 static void dump_check_token_privileges_request( const struct check_token_privileges_request
*req
)
3482 fprintf( stderr
, " handle=%04x", req
->handle
);
3483 fprintf( stderr
, ", all_required=%d", req
->all_required
);
3484 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size
);
3487 static void dump_check_token_privileges_reply( const struct check_token_privileges_reply
*req
)
3489 fprintf( stderr
, " has_privileges=%d", req
->has_privileges
);
3490 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size
);
3493 static void dump_duplicate_token_request( const struct duplicate_token_request
*req
)
3495 fprintf( stderr
, " handle=%04x", req
->handle
);
3496 fprintf( stderr
, ", access=%08x", req
->access
);
3497 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3498 fprintf( stderr
, ", primary=%d", req
->primary
);
3499 fprintf( stderr
, ", impersonation_level=%d", req
->impersonation_level
);
3502 static void dump_duplicate_token_reply( const struct duplicate_token_reply
*req
)
3504 fprintf( stderr
, " new_handle=%04x", req
->new_handle
);
3507 static void dump_access_check_request( const struct access_check_request
*req
)
3509 fprintf( stderr
, " handle=%04x", req
->handle
);
3510 fprintf( stderr
, ", desired_access=%08x", req
->desired_access
);
3511 fprintf( stderr
, ", mapping_read=%08x", req
->mapping_read
);
3512 fprintf( stderr
, ", mapping_write=%08x", req
->mapping_write
);
3513 fprintf( stderr
, ", mapping_execute=%08x", req
->mapping_execute
);
3514 fprintf( stderr
, ", mapping_all=%08x", req
->mapping_all
);
3515 dump_varargs_security_descriptor( ", sd=", cur_size
);
3518 static void dump_access_check_reply( const struct access_check_reply
*req
)
3520 fprintf( stderr
, " access_granted=%08x", req
->access_granted
);
3521 fprintf( stderr
, ", access_status=%08x", req
->access_status
);
3522 fprintf( stderr
, ", privileges_len=%08x", req
->privileges_len
);
3523 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size
);
3526 static void dump_get_token_sid_request( const struct get_token_sid_request
*req
)
3528 fprintf( stderr
, " handle=%04x", req
->handle
);
3529 fprintf( stderr
, ", which_sid=%08x", req
->which_sid
);
3532 static void dump_get_token_sid_reply( const struct get_token_sid_reply
*req
)
3534 fprintf( stderr
, " sid_len=%u", req
->sid_len
);
3535 dump_varargs_SID( ", sid=", cur_size
);
3538 static void dump_get_token_groups_request( const struct get_token_groups_request
*req
)
3540 fprintf( stderr
, " handle=%04x", req
->handle
);
3543 static void dump_get_token_groups_reply( const struct get_token_groups_reply
*req
)
3545 fprintf( stderr
, " user_len=%u", req
->user_len
);
3546 dump_varargs_token_groups( ", user=", cur_size
);
3549 static void dump_get_token_default_dacl_request( const struct get_token_default_dacl_request
*req
)
3551 fprintf( stderr
, " handle=%04x", req
->handle
);
3554 static void dump_get_token_default_dacl_reply( const struct get_token_default_dacl_reply
*req
)
3556 fprintf( stderr
, " acl_len=%u", req
->acl_len
);
3557 dump_varargs_ACL( ", acl=", cur_size
);
3560 static void dump_set_token_default_dacl_request( const struct set_token_default_dacl_request
*req
)
3562 fprintf( stderr
, " handle=%04x", req
->handle
);
3563 dump_varargs_ACL( ", acl=", cur_size
);
3566 static void dump_set_security_object_request( const struct set_security_object_request
*req
)
3568 fprintf( stderr
, " handle=%04x", req
->handle
);
3569 fprintf( stderr
, ", security_info=%08x", req
->security_info
);
3570 dump_varargs_security_descriptor( ", sd=", cur_size
);
3573 static void dump_get_security_object_request( const struct get_security_object_request
*req
)
3575 fprintf( stderr
, " handle=%04x", req
->handle
);
3576 fprintf( stderr
, ", security_info=%08x", req
->security_info
);
3579 static void dump_get_security_object_reply( const struct get_security_object_reply
*req
)
3581 fprintf( stderr
, " sd_len=%08x", req
->sd_len
);
3582 dump_varargs_security_descriptor( ", sd=", cur_size
);
3585 static void dump_create_mailslot_request( const struct create_mailslot_request
*req
)
3587 fprintf( stderr
, " access=%08x", req
->access
);
3588 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3589 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
3590 dump_timeout( ", read_timeout=", &req
->read_timeout
);
3591 fprintf( stderr
, ", max_msgsize=%08x", req
->max_msgsize
);
3592 dump_varargs_unicode_str( ", name=", cur_size
);
3595 static void dump_create_mailslot_reply( const struct create_mailslot_reply
*req
)
3597 fprintf( stderr
, " handle=%04x", req
->handle
);
3600 static void dump_set_mailslot_info_request( const struct set_mailslot_info_request
*req
)
3602 fprintf( stderr
, " handle=%04x", req
->handle
);
3603 dump_timeout( ", read_timeout=", &req
->read_timeout
);
3604 fprintf( stderr
, ", flags=%08x", req
->flags
);
3607 static void dump_set_mailslot_info_reply( const struct set_mailslot_info_reply
*req
)
3609 dump_timeout( " read_timeout=", &req
->read_timeout
);
3610 fprintf( stderr
, ", max_msgsize=%08x", req
->max_msgsize
);
3613 static void dump_create_directory_request( const struct create_directory_request
*req
)
3615 fprintf( stderr
, " access=%08x", req
->access
);
3616 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3617 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
3618 dump_varargs_unicode_str( ", directory_name=", cur_size
);
3621 static void dump_create_directory_reply( const struct create_directory_reply
*req
)
3623 fprintf( stderr
, " handle=%04x", req
->handle
);
3626 static void dump_open_directory_request( const struct open_directory_request
*req
)
3628 fprintf( stderr
, " access=%08x", req
->access
);
3629 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3630 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
3631 dump_varargs_unicode_str( ", directory_name=", cur_size
);
3634 static void dump_open_directory_reply( const struct open_directory_reply
*req
)
3636 fprintf( stderr
, " handle=%04x", req
->handle
);
3639 static void dump_get_directory_entry_request( const struct get_directory_entry_request
*req
)
3641 fprintf( stderr
, " handle=%04x", req
->handle
);
3642 fprintf( stderr
, ", index=%08x", req
->index
);
3645 static void dump_get_directory_entry_reply( const struct get_directory_entry_reply
*req
)
3647 fprintf( stderr
, " name_len=%u", req
->name_len
);
3648 dump_varargs_unicode_str( ", name=", min(cur_size
,req
->name_len
) );
3649 dump_varargs_unicode_str( ", type=", cur_size
);
3652 static void dump_create_symlink_request( const struct create_symlink_request
*req
)
3654 fprintf( stderr
, " access=%08x", req
->access
);
3655 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3656 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
3657 fprintf( stderr
, ", name_len=%u", req
->name_len
);
3658 dump_varargs_unicode_str( ", name=", min(cur_size
,req
->name_len
) );
3659 dump_varargs_unicode_str( ", target_name=", cur_size
);
3662 static void dump_create_symlink_reply( const struct create_symlink_reply
*req
)
3664 fprintf( stderr
, " handle=%04x", req
->handle
);
3667 static void dump_open_symlink_request( const struct open_symlink_request
*req
)
3669 fprintf( stderr
, " access=%08x", req
->access
);
3670 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3671 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
3672 dump_varargs_unicode_str( ", name=", cur_size
);
3675 static void dump_open_symlink_reply( const struct open_symlink_reply
*req
)
3677 fprintf( stderr
, " handle=%04x", req
->handle
);
3680 static void dump_query_symlink_request( const struct query_symlink_request
*req
)
3682 fprintf( stderr
, " handle=%04x", req
->handle
);
3685 static void dump_query_symlink_reply( const struct query_symlink_reply
*req
)
3687 fprintf( stderr
, " total=%u", req
->total
);
3688 dump_varargs_unicode_str( ", target_name=", cur_size
);
3691 static void dump_get_object_info_request( const struct get_object_info_request
*req
)
3693 fprintf( stderr
, " handle=%04x", req
->handle
);
3696 static void dump_get_object_info_reply( const struct get_object_info_reply
*req
)
3698 fprintf( stderr
, " access=%08x", req
->access
);
3699 fprintf( stderr
, ", ref_count=%08x", req
->ref_count
);
3700 fprintf( stderr
, ", total=%u", req
->total
);
3701 dump_varargs_unicode_str( ", name=", cur_size
);
3704 static void dump_unlink_object_request( const struct unlink_object_request
*req
)
3706 fprintf( stderr
, " handle=%04x", req
->handle
);
3709 static void dump_get_token_impersonation_level_request( const struct get_token_impersonation_level_request
*req
)
3711 fprintf( stderr
, " handle=%04x", req
->handle
);
3714 static void dump_get_token_impersonation_level_reply( const struct get_token_impersonation_level_reply
*req
)
3716 fprintf( stderr
, " impersonation_level=%d", req
->impersonation_level
);
3719 static void dump_allocate_locally_unique_id_request( const struct allocate_locally_unique_id_request
*req
)
3723 static void dump_allocate_locally_unique_id_reply( const struct allocate_locally_unique_id_reply
*req
)
3725 dump_luid( " luid=", &req
->luid
);
3728 static void dump_create_device_manager_request( const struct create_device_manager_request
*req
)
3730 fprintf( stderr
, " access=%08x", req
->access
);
3731 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3734 static void dump_create_device_manager_reply( const struct create_device_manager_reply
*req
)
3736 fprintf( stderr
, " handle=%04x", req
->handle
);
3739 static void dump_create_device_request( const struct create_device_request
*req
)
3741 fprintf( stderr
, " access=%08x", req
->access
);
3742 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3743 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
3744 dump_uint64( ", user_ptr=", &req
->user_ptr
);
3745 fprintf( stderr
, ", manager=%04x", req
->manager
);
3746 dump_varargs_unicode_str( ", name=", cur_size
);
3749 static void dump_create_device_reply( const struct create_device_reply
*req
)
3751 fprintf( stderr
, " handle=%04x", req
->handle
);
3754 static void dump_delete_device_request( const struct delete_device_request
*req
)
3756 fprintf( stderr
, " handle=%04x", req
->handle
);
3759 static void dump_get_next_device_request_request( const struct get_next_device_request_request
*req
)
3761 fprintf( stderr
, " manager=%04x", req
->manager
);
3762 fprintf( stderr
, ", prev=%04x", req
->prev
);
3763 fprintf( stderr
, ", status=%08x", req
->status
);
3764 dump_varargs_bytes( ", prev_data=", cur_size
);
3767 static void dump_get_next_device_request_reply( const struct get_next_device_request_reply
*req
)
3769 fprintf( stderr
, " next=%04x", req
->next
);
3770 dump_ioctl_code( ", code=", &req
->code
);
3771 dump_uint64( ", user_ptr=", &req
->user_ptr
);
3772 fprintf( stderr
, ", client_pid=%04x", req
->client_pid
);
3773 fprintf( stderr
, ", client_tid=%04x", req
->client_tid
);
3774 fprintf( stderr
, ", in_size=%u", req
->in_size
);
3775 fprintf( stderr
, ", out_size=%u", req
->out_size
);
3776 dump_varargs_bytes( ", next_data=", cur_size
);
3779 static void dump_make_process_system_request( const struct make_process_system_request
*req
)
3783 static void dump_make_process_system_reply( const struct make_process_system_reply
*req
)
3785 fprintf( stderr
, " event=%04x", req
->event
);
3788 static void dump_get_token_statistics_request( const struct get_token_statistics_request
*req
)
3790 fprintf( stderr
, " handle=%04x", req
->handle
);
3793 static void dump_get_token_statistics_reply( const struct get_token_statistics_reply
*req
)
3795 dump_luid( " token_id=", &req
->token_id
);
3796 dump_luid( ", modified_id=", &req
->modified_id
);
3797 fprintf( stderr
, ", primary=%d", req
->primary
);
3798 fprintf( stderr
, ", impersonation_level=%d", req
->impersonation_level
);
3799 fprintf( stderr
, ", group_count=%d", req
->group_count
);
3800 fprintf( stderr
, ", privilege_count=%d", req
->privilege_count
);
3803 static void dump_create_completion_request( const struct create_completion_request
*req
)
3805 fprintf( stderr
, " access=%08x", req
->access
);
3806 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3807 fprintf( stderr
, ", concurrent=%08x", req
->concurrent
);
3808 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
3809 dump_varargs_string( ", filename=", cur_size
);
3812 static void dump_create_completion_reply( const struct create_completion_reply
*req
)
3814 fprintf( stderr
, " handle=%04x", req
->handle
);
3817 static void dump_open_completion_request( const struct open_completion_request
*req
)
3819 fprintf( stderr
, " access=%08x", req
->access
);
3820 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3821 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
3822 dump_varargs_string( ", filename=", cur_size
);
3825 static void dump_open_completion_reply( const struct open_completion_reply
*req
)
3827 fprintf( stderr
, " handle=%04x", req
->handle
);
3830 static void dump_add_completion_request( const struct add_completion_request
*req
)
3832 fprintf( stderr
, " handle=%04x", req
->handle
);
3833 dump_uint64( ", ckey=", &req
->ckey
);
3834 dump_uint64( ", cvalue=", &req
->cvalue
);
3835 fprintf( stderr
, ", information=%08x", req
->information
);
3836 fprintf( stderr
, ", status=%08x", req
->status
);
3839 static void dump_remove_completion_request( const struct remove_completion_request
*req
)
3841 fprintf( stderr
, " handle=%04x", req
->handle
);
3844 static void dump_remove_completion_reply( const struct remove_completion_reply
*req
)
3846 dump_uint64( " ckey=", &req
->ckey
);
3847 dump_uint64( ", cvalue=", &req
->cvalue
);
3848 fprintf( stderr
, ", information=%08x", req
->information
);
3849 fprintf( stderr
, ", status=%08x", req
->status
);
3852 static void dump_query_completion_request( const struct query_completion_request
*req
)
3854 fprintf( stderr
, " handle=%04x", req
->handle
);
3857 static void dump_query_completion_reply( const struct query_completion_reply
*req
)
3859 fprintf( stderr
, " depth=%08x", req
->depth
);
3862 static void dump_set_completion_info_request( const struct set_completion_info_request
*req
)
3864 fprintf( stderr
, " handle=%04x", req
->handle
);
3865 dump_uint64( ", ckey=", &req
->ckey
);
3866 fprintf( stderr
, ", chandle=%04x", req
->chandle
);
3869 static void dump_add_fd_completion_request( const struct add_fd_completion_request
*req
)
3871 fprintf( stderr
, " handle=%04x", req
->handle
);
3872 dump_uint64( ", cvalue=", &req
->cvalue
);
3873 fprintf( stderr
, ", status=%08x", req
->status
);
3874 fprintf( stderr
, ", information=%08x", req
->information
);
3877 static void dump_get_window_layered_info_request( const struct get_window_layered_info_request
*req
)
3879 fprintf( stderr
, " handle=%08x", req
->handle
);
3882 static void dump_get_window_layered_info_reply( const struct get_window_layered_info_reply
*req
)
3884 fprintf( stderr
, " color_key=%08x", req
->color_key
);
3885 fprintf( stderr
, ", alpha=%08x", req
->alpha
);
3886 fprintf( stderr
, ", flags=%08x", req
->flags
);
3889 static void dump_set_window_layered_info_request( const struct set_window_layered_info_request
*req
)
3891 fprintf( stderr
, " handle=%08x", req
->handle
);
3892 fprintf( stderr
, ", color_key=%08x", req
->color_key
);
3893 fprintf( stderr
, ", alpha=%08x", req
->alpha
);
3894 fprintf( stderr
, ", flags=%08x", req
->flags
);
3897 static void dump_alloc_user_handle_request( const struct alloc_user_handle_request
*req
)
3901 static void dump_alloc_user_handle_reply( const struct alloc_user_handle_reply
*req
)
3903 fprintf( stderr
, " handle=%08x", req
->handle
);
3906 static void dump_free_user_handle_request( const struct free_user_handle_request
*req
)
3908 fprintf( stderr
, " handle=%08x", req
->handle
);
3911 static void dump_set_cursor_request( const struct set_cursor_request
*req
)
3913 fprintf( stderr
, " flags=%08x", req
->flags
);
3914 fprintf( stderr
, ", handle=%08x", req
->handle
);
3915 fprintf( stderr
, ", show_count=%d", req
->show_count
);
3916 fprintf( stderr
, ", x=%d", req
->x
);
3917 fprintf( stderr
, ", y=%d", req
->y
);
3918 dump_rectangle( ", clip=", &req
->clip
);
3919 fprintf( stderr
, ", clip_msg=%08x", req
->clip_msg
);
3922 static void dump_set_cursor_reply( const struct set_cursor_reply
*req
)
3924 fprintf( stderr
, " prev_handle=%08x", req
->prev_handle
);
3925 fprintf( stderr
, ", prev_count=%d", req
->prev_count
);
3926 fprintf( stderr
, ", prev_x=%d", req
->prev_x
);
3927 fprintf( stderr
, ", prev_y=%d", req
->prev_y
);
3928 fprintf( stderr
, ", new_x=%d", req
->new_x
);
3929 fprintf( stderr
, ", new_y=%d", req
->new_y
);
3930 dump_rectangle( ", new_clip=", &req
->new_clip
);
3931 fprintf( stderr
, ", last_change=%08x", req
->last_change
);
3934 static void dump_update_rawinput_devices_request( const struct update_rawinput_devices_request
*req
)
3936 dump_varargs_rawinput_devices( " devices=", cur_size
);
3939 static void dump_get_suspend_context_request( const struct get_suspend_context_request
*req
)
3943 static void dump_get_suspend_context_reply( const struct get_suspend_context_reply
*req
)
3945 dump_varargs_context( " context=", cur_size
);
3948 static void dump_set_suspend_context_request( const struct set_suspend_context_request
*req
)
3950 dump_varargs_context( " context=", cur_size
);
3953 static const dump_func req_dumpers
[REQ_NB_REQUESTS
] = {
3954 (dump_func
)dump_new_process_request
,
3955 (dump_func
)dump_get_new_process_info_request
,
3956 (dump_func
)dump_new_thread_request
,
3957 (dump_func
)dump_get_startup_info_request
,
3958 (dump_func
)dump_init_process_done_request
,
3959 (dump_func
)dump_init_thread_request
,
3960 (dump_func
)dump_terminate_process_request
,
3961 (dump_func
)dump_terminate_thread_request
,
3962 (dump_func
)dump_get_process_info_request
,
3963 (dump_func
)dump_set_process_info_request
,
3964 (dump_func
)dump_get_thread_info_request
,
3965 (dump_func
)dump_set_thread_info_request
,
3966 (dump_func
)dump_get_dll_info_request
,
3967 (dump_func
)dump_suspend_thread_request
,
3968 (dump_func
)dump_resume_thread_request
,
3969 (dump_func
)dump_load_dll_request
,
3970 (dump_func
)dump_unload_dll_request
,
3971 (dump_func
)dump_queue_apc_request
,
3972 (dump_func
)dump_get_apc_result_request
,
3973 (dump_func
)dump_close_handle_request
,
3974 (dump_func
)dump_set_handle_info_request
,
3975 (dump_func
)dump_dup_handle_request
,
3976 (dump_func
)dump_open_process_request
,
3977 (dump_func
)dump_open_thread_request
,
3978 (dump_func
)dump_select_request
,
3979 (dump_func
)dump_create_event_request
,
3980 (dump_func
)dump_event_op_request
,
3981 (dump_func
)dump_open_event_request
,
3982 (dump_func
)dump_create_mutex_request
,
3983 (dump_func
)dump_release_mutex_request
,
3984 (dump_func
)dump_open_mutex_request
,
3985 (dump_func
)dump_create_semaphore_request
,
3986 (dump_func
)dump_release_semaphore_request
,
3987 (dump_func
)dump_open_semaphore_request
,
3988 (dump_func
)dump_create_file_request
,
3989 (dump_func
)dump_open_file_object_request
,
3990 (dump_func
)dump_alloc_file_handle_request
,
3991 (dump_func
)dump_get_handle_unix_name_request
,
3992 (dump_func
)dump_get_handle_fd_request
,
3993 (dump_func
)dump_flush_file_request
,
3994 (dump_func
)dump_lock_file_request
,
3995 (dump_func
)dump_unlock_file_request
,
3996 (dump_func
)dump_create_socket_request
,
3997 (dump_func
)dump_accept_socket_request
,
3998 (dump_func
)dump_accept_into_socket_request
,
3999 (dump_func
)dump_set_socket_event_request
,
4000 (dump_func
)dump_get_socket_event_request
,
4001 (dump_func
)dump_enable_socket_event_request
,
4002 (dump_func
)dump_set_socket_deferred_request
,
4003 (dump_func
)dump_alloc_console_request
,
4004 (dump_func
)dump_free_console_request
,
4005 (dump_func
)dump_get_console_renderer_events_request
,
4006 (dump_func
)dump_open_console_request
,
4007 (dump_func
)dump_get_console_wait_event_request
,
4008 (dump_func
)dump_get_console_mode_request
,
4009 (dump_func
)dump_set_console_mode_request
,
4010 (dump_func
)dump_set_console_input_info_request
,
4011 (dump_func
)dump_get_console_input_info_request
,
4012 (dump_func
)dump_append_console_input_history_request
,
4013 (dump_func
)dump_get_console_input_history_request
,
4014 (dump_func
)dump_create_console_output_request
,
4015 (dump_func
)dump_set_console_output_info_request
,
4016 (dump_func
)dump_get_console_output_info_request
,
4017 (dump_func
)dump_write_console_input_request
,
4018 (dump_func
)dump_read_console_input_request
,
4019 (dump_func
)dump_write_console_output_request
,
4020 (dump_func
)dump_fill_console_output_request
,
4021 (dump_func
)dump_read_console_output_request
,
4022 (dump_func
)dump_move_console_output_request
,
4023 (dump_func
)dump_send_console_signal_request
,
4024 (dump_func
)dump_read_directory_changes_request
,
4025 (dump_func
)dump_read_change_request
,
4026 (dump_func
)dump_create_mapping_request
,
4027 (dump_func
)dump_open_mapping_request
,
4028 (dump_func
)dump_get_mapping_info_request
,
4029 (dump_func
)dump_get_mapping_committed_range_request
,
4030 (dump_func
)dump_add_mapping_committed_range_request
,
4031 (dump_func
)dump_create_snapshot_request
,
4032 (dump_func
)dump_next_process_request
,
4033 (dump_func
)dump_next_thread_request
,
4034 (dump_func
)dump_wait_debug_event_request
,
4035 (dump_func
)dump_queue_exception_event_request
,
4036 (dump_func
)dump_get_exception_status_request
,
4037 (dump_func
)dump_output_debug_string_request
,
4038 (dump_func
)dump_continue_debug_event_request
,
4039 (dump_func
)dump_debug_process_request
,
4040 (dump_func
)dump_debug_break_request
,
4041 (dump_func
)dump_set_debugger_kill_on_exit_request
,
4042 (dump_func
)dump_read_process_memory_request
,
4043 (dump_func
)dump_write_process_memory_request
,
4044 (dump_func
)dump_create_key_request
,
4045 (dump_func
)dump_open_key_request
,
4046 (dump_func
)dump_delete_key_request
,
4047 (dump_func
)dump_flush_key_request
,
4048 (dump_func
)dump_enum_key_request
,
4049 (dump_func
)dump_set_key_value_request
,
4050 (dump_func
)dump_get_key_value_request
,
4051 (dump_func
)dump_enum_key_value_request
,
4052 (dump_func
)dump_delete_key_value_request
,
4053 (dump_func
)dump_load_registry_request
,
4054 (dump_func
)dump_unload_registry_request
,
4055 (dump_func
)dump_save_registry_request
,
4056 (dump_func
)dump_set_registry_notification_request
,
4057 (dump_func
)dump_create_timer_request
,
4058 (dump_func
)dump_open_timer_request
,
4059 (dump_func
)dump_set_timer_request
,
4060 (dump_func
)dump_cancel_timer_request
,
4061 (dump_func
)dump_get_timer_info_request
,
4062 (dump_func
)dump_get_thread_context_request
,
4063 (dump_func
)dump_set_thread_context_request
,
4064 (dump_func
)dump_get_selector_entry_request
,
4065 (dump_func
)dump_add_atom_request
,
4066 (dump_func
)dump_delete_atom_request
,
4067 (dump_func
)dump_find_atom_request
,
4068 (dump_func
)dump_get_atom_information_request
,
4069 (dump_func
)dump_set_atom_information_request
,
4070 (dump_func
)dump_empty_atom_table_request
,
4071 (dump_func
)dump_init_atom_table_request
,
4072 (dump_func
)dump_get_msg_queue_request
,
4073 (dump_func
)dump_set_queue_fd_request
,
4074 (dump_func
)dump_set_queue_mask_request
,
4075 (dump_func
)dump_get_queue_status_request
,
4076 (dump_func
)dump_get_process_idle_event_request
,
4077 (dump_func
)dump_send_message_request
,
4078 (dump_func
)dump_post_quit_message_request
,
4079 (dump_func
)dump_send_hardware_message_request
,
4080 (dump_func
)dump_get_message_request
,
4081 (dump_func
)dump_reply_message_request
,
4082 (dump_func
)dump_accept_hardware_message_request
,
4083 (dump_func
)dump_get_message_reply_request
,
4084 (dump_func
)dump_set_win_timer_request
,
4085 (dump_func
)dump_kill_win_timer_request
,
4086 (dump_func
)dump_is_window_hung_request
,
4087 (dump_func
)dump_get_serial_info_request
,
4088 (dump_func
)dump_set_serial_info_request
,
4089 (dump_func
)dump_register_async_request
,
4090 (dump_func
)dump_cancel_async_request
,
4091 (dump_func
)dump_ioctl_request
,
4092 (dump_func
)dump_get_ioctl_result_request
,
4093 (dump_func
)dump_create_named_pipe_request
,
4094 (dump_func
)dump_get_named_pipe_info_request
,
4095 (dump_func
)dump_create_window_request
,
4096 (dump_func
)dump_destroy_window_request
,
4097 (dump_func
)dump_get_desktop_window_request
,
4098 (dump_func
)dump_set_window_owner_request
,
4099 (dump_func
)dump_get_window_info_request
,
4100 (dump_func
)dump_set_window_info_request
,
4101 (dump_func
)dump_set_parent_request
,
4102 (dump_func
)dump_get_window_parents_request
,
4103 (dump_func
)dump_get_window_children_request
,
4104 (dump_func
)dump_get_window_children_from_point_request
,
4105 (dump_func
)dump_get_window_tree_request
,
4106 (dump_func
)dump_set_window_pos_request
,
4107 (dump_func
)dump_get_window_rectangles_request
,
4108 (dump_func
)dump_get_window_text_request
,
4109 (dump_func
)dump_set_window_text_request
,
4110 (dump_func
)dump_get_windows_offset_request
,
4111 (dump_func
)dump_get_visible_region_request
,
4112 (dump_func
)dump_get_surface_region_request
,
4113 (dump_func
)dump_get_window_region_request
,
4114 (dump_func
)dump_set_window_region_request
,
4115 (dump_func
)dump_get_update_region_request
,
4116 (dump_func
)dump_update_window_zorder_request
,
4117 (dump_func
)dump_redraw_window_request
,
4118 (dump_func
)dump_set_window_property_request
,
4119 (dump_func
)dump_remove_window_property_request
,
4120 (dump_func
)dump_get_window_property_request
,
4121 (dump_func
)dump_get_window_properties_request
,
4122 (dump_func
)dump_create_winstation_request
,
4123 (dump_func
)dump_open_winstation_request
,
4124 (dump_func
)dump_close_winstation_request
,
4125 (dump_func
)dump_get_process_winstation_request
,
4126 (dump_func
)dump_set_process_winstation_request
,
4127 (dump_func
)dump_enum_winstation_request
,
4128 (dump_func
)dump_create_desktop_request
,
4129 (dump_func
)dump_open_desktop_request
,
4130 (dump_func
)dump_close_desktop_request
,
4131 (dump_func
)dump_get_thread_desktop_request
,
4132 (dump_func
)dump_set_thread_desktop_request
,
4133 (dump_func
)dump_enum_desktop_request
,
4134 (dump_func
)dump_set_user_object_info_request
,
4135 (dump_func
)dump_register_hotkey_request
,
4136 (dump_func
)dump_unregister_hotkey_request
,
4137 (dump_func
)dump_attach_thread_input_request
,
4138 (dump_func
)dump_get_thread_input_request
,
4139 (dump_func
)dump_get_last_input_time_request
,
4140 (dump_func
)dump_get_key_state_request
,
4141 (dump_func
)dump_set_key_state_request
,
4142 (dump_func
)dump_set_foreground_window_request
,
4143 (dump_func
)dump_set_focus_window_request
,
4144 (dump_func
)dump_set_active_window_request
,
4145 (dump_func
)dump_set_capture_window_request
,
4146 (dump_func
)dump_set_caret_window_request
,
4147 (dump_func
)dump_set_caret_info_request
,
4148 (dump_func
)dump_set_hook_request
,
4149 (dump_func
)dump_remove_hook_request
,
4150 (dump_func
)dump_start_hook_chain_request
,
4151 (dump_func
)dump_finish_hook_chain_request
,
4152 (dump_func
)dump_get_hook_info_request
,
4153 (dump_func
)dump_create_class_request
,
4154 (dump_func
)dump_destroy_class_request
,
4155 (dump_func
)dump_set_class_info_request
,
4156 (dump_func
)dump_set_clipboard_info_request
,
4157 (dump_func
)dump_open_token_request
,
4158 (dump_func
)dump_set_global_windows_request
,
4159 (dump_func
)dump_adjust_token_privileges_request
,
4160 (dump_func
)dump_get_token_privileges_request
,
4161 (dump_func
)dump_check_token_privileges_request
,
4162 (dump_func
)dump_duplicate_token_request
,
4163 (dump_func
)dump_access_check_request
,
4164 (dump_func
)dump_get_token_sid_request
,
4165 (dump_func
)dump_get_token_groups_request
,
4166 (dump_func
)dump_get_token_default_dacl_request
,
4167 (dump_func
)dump_set_token_default_dacl_request
,
4168 (dump_func
)dump_set_security_object_request
,
4169 (dump_func
)dump_get_security_object_request
,
4170 (dump_func
)dump_create_mailslot_request
,
4171 (dump_func
)dump_set_mailslot_info_request
,
4172 (dump_func
)dump_create_directory_request
,
4173 (dump_func
)dump_open_directory_request
,
4174 (dump_func
)dump_get_directory_entry_request
,
4175 (dump_func
)dump_create_symlink_request
,
4176 (dump_func
)dump_open_symlink_request
,
4177 (dump_func
)dump_query_symlink_request
,
4178 (dump_func
)dump_get_object_info_request
,
4179 (dump_func
)dump_unlink_object_request
,
4180 (dump_func
)dump_get_token_impersonation_level_request
,
4181 (dump_func
)dump_allocate_locally_unique_id_request
,
4182 (dump_func
)dump_create_device_manager_request
,
4183 (dump_func
)dump_create_device_request
,
4184 (dump_func
)dump_delete_device_request
,
4185 (dump_func
)dump_get_next_device_request_request
,
4186 (dump_func
)dump_make_process_system_request
,
4187 (dump_func
)dump_get_token_statistics_request
,
4188 (dump_func
)dump_create_completion_request
,
4189 (dump_func
)dump_open_completion_request
,
4190 (dump_func
)dump_add_completion_request
,
4191 (dump_func
)dump_remove_completion_request
,
4192 (dump_func
)dump_query_completion_request
,
4193 (dump_func
)dump_set_completion_info_request
,
4194 (dump_func
)dump_add_fd_completion_request
,
4195 (dump_func
)dump_get_window_layered_info_request
,
4196 (dump_func
)dump_set_window_layered_info_request
,
4197 (dump_func
)dump_alloc_user_handle_request
,
4198 (dump_func
)dump_free_user_handle_request
,
4199 (dump_func
)dump_set_cursor_request
,
4200 (dump_func
)dump_update_rawinput_devices_request
,
4201 (dump_func
)dump_get_suspend_context_request
,
4202 (dump_func
)dump_set_suspend_context_request
,
4205 static const dump_func reply_dumpers
[REQ_NB_REQUESTS
] = {
4206 (dump_func
)dump_new_process_reply
,
4207 (dump_func
)dump_get_new_process_info_reply
,
4208 (dump_func
)dump_new_thread_reply
,
4209 (dump_func
)dump_get_startup_info_reply
,
4211 (dump_func
)dump_init_thread_reply
,
4212 (dump_func
)dump_terminate_process_reply
,
4213 (dump_func
)dump_terminate_thread_reply
,
4214 (dump_func
)dump_get_process_info_reply
,
4216 (dump_func
)dump_get_thread_info_reply
,
4218 (dump_func
)dump_get_dll_info_reply
,
4219 (dump_func
)dump_suspend_thread_reply
,
4220 (dump_func
)dump_resume_thread_reply
,
4223 (dump_func
)dump_queue_apc_reply
,
4224 (dump_func
)dump_get_apc_result_reply
,
4226 (dump_func
)dump_set_handle_info_reply
,
4227 (dump_func
)dump_dup_handle_reply
,
4228 (dump_func
)dump_open_process_reply
,
4229 (dump_func
)dump_open_thread_reply
,
4230 (dump_func
)dump_select_reply
,
4231 (dump_func
)dump_create_event_reply
,
4233 (dump_func
)dump_open_event_reply
,
4234 (dump_func
)dump_create_mutex_reply
,
4235 (dump_func
)dump_release_mutex_reply
,
4236 (dump_func
)dump_open_mutex_reply
,
4237 (dump_func
)dump_create_semaphore_reply
,
4238 (dump_func
)dump_release_semaphore_reply
,
4239 (dump_func
)dump_open_semaphore_reply
,
4240 (dump_func
)dump_create_file_reply
,
4241 (dump_func
)dump_open_file_object_reply
,
4242 (dump_func
)dump_alloc_file_handle_reply
,
4243 (dump_func
)dump_get_handle_unix_name_reply
,
4244 (dump_func
)dump_get_handle_fd_reply
,
4245 (dump_func
)dump_flush_file_reply
,
4246 (dump_func
)dump_lock_file_reply
,
4248 (dump_func
)dump_create_socket_reply
,
4249 (dump_func
)dump_accept_socket_reply
,
4252 (dump_func
)dump_get_socket_event_reply
,
4255 (dump_func
)dump_alloc_console_reply
,
4257 (dump_func
)dump_get_console_renderer_events_reply
,
4258 (dump_func
)dump_open_console_reply
,
4259 (dump_func
)dump_get_console_wait_event_reply
,
4260 (dump_func
)dump_get_console_mode_reply
,
4263 (dump_func
)dump_get_console_input_info_reply
,
4265 (dump_func
)dump_get_console_input_history_reply
,
4266 (dump_func
)dump_create_console_output_reply
,
4268 (dump_func
)dump_get_console_output_info_reply
,
4269 (dump_func
)dump_write_console_input_reply
,
4270 (dump_func
)dump_read_console_input_reply
,
4271 (dump_func
)dump_write_console_output_reply
,
4272 (dump_func
)dump_fill_console_output_reply
,
4273 (dump_func
)dump_read_console_output_reply
,
4277 (dump_func
)dump_read_change_reply
,
4278 (dump_func
)dump_create_mapping_reply
,
4279 (dump_func
)dump_open_mapping_reply
,
4280 (dump_func
)dump_get_mapping_info_reply
,
4281 (dump_func
)dump_get_mapping_committed_range_reply
,
4283 (dump_func
)dump_create_snapshot_reply
,
4284 (dump_func
)dump_next_process_reply
,
4285 (dump_func
)dump_next_thread_reply
,
4286 (dump_func
)dump_wait_debug_event_reply
,
4287 (dump_func
)dump_queue_exception_event_reply
,
4288 (dump_func
)dump_get_exception_status_reply
,
4292 (dump_func
)dump_debug_break_reply
,
4294 (dump_func
)dump_read_process_memory_reply
,
4296 (dump_func
)dump_create_key_reply
,
4297 (dump_func
)dump_open_key_reply
,
4300 (dump_func
)dump_enum_key_reply
,
4302 (dump_func
)dump_get_key_value_reply
,
4303 (dump_func
)dump_enum_key_value_reply
,
4309 (dump_func
)dump_create_timer_reply
,
4310 (dump_func
)dump_open_timer_reply
,
4311 (dump_func
)dump_set_timer_reply
,
4312 (dump_func
)dump_cancel_timer_reply
,
4313 (dump_func
)dump_get_timer_info_reply
,
4314 (dump_func
)dump_get_thread_context_reply
,
4315 (dump_func
)dump_set_thread_context_reply
,
4316 (dump_func
)dump_get_selector_entry_reply
,
4317 (dump_func
)dump_add_atom_reply
,
4319 (dump_func
)dump_find_atom_reply
,
4320 (dump_func
)dump_get_atom_information_reply
,
4323 (dump_func
)dump_init_atom_table_reply
,
4324 (dump_func
)dump_get_msg_queue_reply
,
4326 (dump_func
)dump_set_queue_mask_reply
,
4327 (dump_func
)dump_get_queue_status_reply
,
4328 (dump_func
)dump_get_process_idle_event_reply
,
4331 (dump_func
)dump_send_hardware_message_reply
,
4332 (dump_func
)dump_get_message_reply
,
4335 (dump_func
)dump_get_message_reply_reply
,
4336 (dump_func
)dump_set_win_timer_reply
,
4338 (dump_func
)dump_is_window_hung_reply
,
4339 (dump_func
)dump_get_serial_info_reply
,
4343 (dump_func
)dump_ioctl_reply
,
4344 (dump_func
)dump_get_ioctl_result_reply
,
4345 (dump_func
)dump_create_named_pipe_reply
,
4346 (dump_func
)dump_get_named_pipe_info_reply
,
4347 (dump_func
)dump_create_window_reply
,
4349 (dump_func
)dump_get_desktop_window_reply
,
4350 (dump_func
)dump_set_window_owner_reply
,
4351 (dump_func
)dump_get_window_info_reply
,
4352 (dump_func
)dump_set_window_info_reply
,
4353 (dump_func
)dump_set_parent_reply
,
4354 (dump_func
)dump_get_window_parents_reply
,
4355 (dump_func
)dump_get_window_children_reply
,
4356 (dump_func
)dump_get_window_children_from_point_reply
,
4357 (dump_func
)dump_get_window_tree_reply
,
4358 (dump_func
)dump_set_window_pos_reply
,
4359 (dump_func
)dump_get_window_rectangles_reply
,
4360 (dump_func
)dump_get_window_text_reply
,
4362 (dump_func
)dump_get_windows_offset_reply
,
4363 (dump_func
)dump_get_visible_region_reply
,
4364 (dump_func
)dump_get_surface_region_reply
,
4365 (dump_func
)dump_get_window_region_reply
,
4367 (dump_func
)dump_get_update_region_reply
,
4371 (dump_func
)dump_remove_window_property_reply
,
4372 (dump_func
)dump_get_window_property_reply
,
4373 (dump_func
)dump_get_window_properties_reply
,
4374 (dump_func
)dump_create_winstation_reply
,
4375 (dump_func
)dump_open_winstation_reply
,
4377 (dump_func
)dump_get_process_winstation_reply
,
4379 (dump_func
)dump_enum_winstation_reply
,
4380 (dump_func
)dump_create_desktop_reply
,
4381 (dump_func
)dump_open_desktop_reply
,
4383 (dump_func
)dump_get_thread_desktop_reply
,
4385 (dump_func
)dump_enum_desktop_reply
,
4386 (dump_func
)dump_set_user_object_info_reply
,
4387 (dump_func
)dump_register_hotkey_reply
,
4388 (dump_func
)dump_unregister_hotkey_reply
,
4390 (dump_func
)dump_get_thread_input_reply
,
4391 (dump_func
)dump_get_last_input_time_reply
,
4392 (dump_func
)dump_get_key_state_reply
,
4394 (dump_func
)dump_set_foreground_window_reply
,
4395 (dump_func
)dump_set_focus_window_reply
,
4396 (dump_func
)dump_set_active_window_reply
,
4397 (dump_func
)dump_set_capture_window_reply
,
4398 (dump_func
)dump_set_caret_window_reply
,
4399 (dump_func
)dump_set_caret_info_reply
,
4400 (dump_func
)dump_set_hook_reply
,
4401 (dump_func
)dump_remove_hook_reply
,
4402 (dump_func
)dump_start_hook_chain_reply
,
4404 (dump_func
)dump_get_hook_info_reply
,
4405 (dump_func
)dump_create_class_reply
,
4406 (dump_func
)dump_destroy_class_reply
,
4407 (dump_func
)dump_set_class_info_reply
,
4408 (dump_func
)dump_set_clipboard_info_reply
,
4409 (dump_func
)dump_open_token_reply
,
4410 (dump_func
)dump_set_global_windows_reply
,
4411 (dump_func
)dump_adjust_token_privileges_reply
,
4412 (dump_func
)dump_get_token_privileges_reply
,
4413 (dump_func
)dump_check_token_privileges_reply
,
4414 (dump_func
)dump_duplicate_token_reply
,
4415 (dump_func
)dump_access_check_reply
,
4416 (dump_func
)dump_get_token_sid_reply
,
4417 (dump_func
)dump_get_token_groups_reply
,
4418 (dump_func
)dump_get_token_default_dacl_reply
,
4421 (dump_func
)dump_get_security_object_reply
,
4422 (dump_func
)dump_create_mailslot_reply
,
4423 (dump_func
)dump_set_mailslot_info_reply
,
4424 (dump_func
)dump_create_directory_reply
,
4425 (dump_func
)dump_open_directory_reply
,
4426 (dump_func
)dump_get_directory_entry_reply
,
4427 (dump_func
)dump_create_symlink_reply
,
4428 (dump_func
)dump_open_symlink_reply
,
4429 (dump_func
)dump_query_symlink_reply
,
4430 (dump_func
)dump_get_object_info_reply
,
4432 (dump_func
)dump_get_token_impersonation_level_reply
,
4433 (dump_func
)dump_allocate_locally_unique_id_reply
,
4434 (dump_func
)dump_create_device_manager_reply
,
4435 (dump_func
)dump_create_device_reply
,
4437 (dump_func
)dump_get_next_device_request_reply
,
4438 (dump_func
)dump_make_process_system_reply
,
4439 (dump_func
)dump_get_token_statistics_reply
,
4440 (dump_func
)dump_create_completion_reply
,
4441 (dump_func
)dump_open_completion_reply
,
4443 (dump_func
)dump_remove_completion_reply
,
4444 (dump_func
)dump_query_completion_reply
,
4447 (dump_func
)dump_get_window_layered_info_reply
,
4449 (dump_func
)dump_alloc_user_handle_reply
,
4451 (dump_func
)dump_set_cursor_reply
,
4453 (dump_func
)dump_get_suspend_context_reply
,
4457 static const char * const req_names
[REQ_NB_REQUESTS
] = {
4459 "get_new_process_info",
4462 "init_process_done",
4464 "terminate_process",
4490 "release_semaphore",
4494 "alloc_file_handle",
4495 "get_handle_unix_name",
4502 "accept_into_socket",
4505 "enable_socket_event",
4506 "set_socket_deferred",
4509 "get_console_renderer_events",
4511 "get_console_wait_event",
4514 "set_console_input_info",
4515 "get_console_input_info",
4516 "append_console_input_history",
4517 "get_console_input_history",
4518 "create_console_output",
4519 "set_console_output_info",
4520 "get_console_output_info",
4521 "write_console_input",
4522 "read_console_input",
4523 "write_console_output",
4524 "fill_console_output",
4525 "read_console_output",
4526 "move_console_output",
4527 "send_console_signal",
4528 "read_directory_changes",
4533 "get_mapping_committed_range",
4534 "add_mapping_committed_range",
4539 "queue_exception_event",
4540 "get_exception_status",
4541 "output_debug_string",
4542 "continue_debug_event",
4545 "set_debugger_kill_on_exit",
4546 "read_process_memory",
4547 "write_process_memory",
4560 "set_registry_notification",
4566 "get_thread_context",
4567 "set_thread_context",
4568 "get_selector_entry",
4572 "get_atom_information",
4573 "set_atom_information",
4580 "get_process_idle_event",
4582 "post_quit_message",
4583 "send_hardware_message",
4586 "accept_hardware_message",
4587 "get_message_reply",
4597 "create_named_pipe",
4598 "get_named_pipe_info",
4601 "get_desktop_window",
4606 "get_window_parents",
4607 "get_window_children",
4608 "get_window_children_from_point",
4611 "get_window_rectangles",
4614 "get_windows_offset",
4615 "get_visible_region",
4616 "get_surface_region",
4617 "get_window_region",
4618 "set_window_region",
4619 "get_update_region",
4620 "update_window_zorder",
4622 "set_window_property",
4623 "remove_window_property",
4624 "get_window_property",
4625 "get_window_properties",
4626 "create_winstation",
4629 "get_process_winstation",
4630 "set_process_winstation",
4635 "get_thread_desktop",
4636 "set_thread_desktop",
4638 "set_user_object_info",
4640 "unregister_hotkey",
4641 "attach_thread_input",
4643 "get_last_input_time",
4646 "set_foreground_window",
4648 "set_active_window",
4649 "set_capture_window",
4655 "finish_hook_chain",
4660 "set_clipboard_info",
4662 "set_global_windows",
4663 "adjust_token_privileges",
4664 "get_token_privileges",
4665 "check_token_privileges",
4670 "get_token_default_dacl",
4671 "set_token_default_dacl",
4672 "set_security_object",
4673 "get_security_object",
4675 "set_mailslot_info",
4678 "get_directory_entry",
4684 "get_token_impersonation_level",
4685 "allocate_locally_unique_id",
4686 "create_device_manager",
4689 "get_next_device_request",
4690 "make_process_system",
4691 "get_token_statistics",
4692 "create_completion",
4695 "remove_completion",
4697 "set_completion_info",
4698 "add_fd_completion",
4699 "get_window_layered_info",
4700 "set_window_layered_info",
4701 "alloc_user_handle",
4704 "update_rawinput_devices",
4705 "get_suspend_context",
4706 "set_suspend_context",
4715 { "ABANDONED_WAIT_0", STATUS_ABANDONED_WAIT_0
},
4716 { "ACCESS_DENIED", STATUS_ACCESS_DENIED
},
4717 { "ACCESS_VIOLATION", STATUS_ACCESS_VIOLATION
},
4718 { "ADDRESS_ALREADY_ASSOCIATED", STATUS_ADDRESS_ALREADY_ASSOCIATED
},
4719 { "ALERTED", STATUS_ALERTED
},
4720 { "ALIAS_EXISTS", STATUS_ALIAS_EXISTS
},
4721 { "BAD_DEVICE_TYPE", STATUS_BAD_DEVICE_TYPE
},
4722 { "BAD_IMPERSONATION_LEVEL", STATUS_BAD_IMPERSONATION_LEVEL
},
4723 { "BREAKPOINT", STATUS_BREAKPOINT
},
4724 { "BUFFER_OVERFLOW", STATUS_BUFFER_OVERFLOW
},
4725 { "BUFFER_TOO_SMALL", STATUS_BUFFER_TOO_SMALL
},
4726 { "CANCELLED", STATUS_CANCELLED
},
4727 { "CANNOT_DELETE", STATUS_CANNOT_DELETE
},
4728 { "CANT_OPEN_ANONYMOUS", STATUS_CANT_OPEN_ANONYMOUS
},
4729 { "CANT_WAIT", STATUS_CANT_WAIT
},
4730 { "CHILD_MUST_BE_VOLATILE", STATUS_CHILD_MUST_BE_VOLATILE
},
4731 { "CONNECTION_ABORTED", STATUS_CONNECTION_ABORTED
},
4732 { "CONNECTION_DISCONNECTED", STATUS_CONNECTION_DISCONNECTED
},
4733 { "CONNECTION_REFUSED", STATUS_CONNECTION_REFUSED
},
4734 { "CONNECTION_RESET", STATUS_CONNECTION_RESET
},
4735 { "DEBUGGER_INACTIVE", STATUS_DEBUGGER_INACTIVE
},
4736 { "DEVICE_BUSY", STATUS_DEVICE_BUSY
},
4737 { "DIRECTORY_NOT_EMPTY", STATUS_DIRECTORY_NOT_EMPTY
},
4738 { "DISK_FULL", STATUS_DISK_FULL
},
4739 { "DLL_NOT_FOUND", STATUS_DLL_NOT_FOUND
},
4740 { "ERROR_CLASS_ALREADY_EXISTS", 0xc0010000 | ERROR_CLASS_ALREADY_EXISTS
},
4741 { "ERROR_CLASS_DOES_NOT_EXIST", 0xc0010000 | ERROR_CLASS_DOES_NOT_EXIST
},
4742 { "ERROR_CLASS_HAS_WINDOWS", 0xc0010000 | ERROR_CLASS_HAS_WINDOWS
},
4743 { "ERROR_CLIPBOARD_NOT_OPEN", 0xc0010000 | ERROR_CLIPBOARD_NOT_OPEN
},
4744 { "ERROR_HOTKEY_ALREADY_REGISTERED", 0xc0010000 | ERROR_HOTKEY_ALREADY_REGISTERED
},
4745 { "ERROR_HOTKEY_NOT_REGISTERED", 0xc0010000 | ERROR_HOTKEY_NOT_REGISTERED
},
4746 { "ERROR_INVALID_CURSOR_HANDLE", 0xc0010000 | ERROR_INVALID_CURSOR_HANDLE
},
4747 { "ERROR_INVALID_INDEX", 0xc0010000 | ERROR_INVALID_INDEX
},
4748 { "ERROR_INVALID_WINDOW_HANDLE", 0xc0010000 | ERROR_INVALID_WINDOW_HANDLE
},
4749 { "ERROR_WINDOW_OF_OTHER_THREAD", 0xc0010000 | ERROR_WINDOW_OF_OTHER_THREAD
},
4750 { "FILE_DELETED", STATUS_FILE_DELETED
},
4751 { "FILE_IS_A_DIRECTORY", STATUS_FILE_IS_A_DIRECTORY
},
4752 { "FILE_LOCK_CONFLICT", STATUS_FILE_LOCK_CONFLICT
},
4753 { "GENERIC_NOT_MAPPED", STATUS_GENERIC_NOT_MAPPED
},
4754 { "HANDLES_CLOSED", STATUS_HANDLES_CLOSED
},
4755 { "HANDLE_NOT_CLOSABLE", STATUS_HANDLE_NOT_CLOSABLE
},
4756 { "HOST_UNREACHABLE", STATUS_HOST_UNREACHABLE
},
4757 { "ILLEGAL_FUNCTION", STATUS_ILLEGAL_FUNCTION
},
4758 { "INSTANCE_NOT_AVAILABLE", STATUS_INSTANCE_NOT_AVAILABLE
},
4759 { "INSUFFICIENT_RESOURCES", STATUS_INSUFFICIENT_RESOURCES
},
4760 { "INVALID_CID", STATUS_INVALID_CID
},
4761 { "INVALID_DEVICE_REQUEST", STATUS_INVALID_DEVICE_REQUEST
},
4762 { "INVALID_FILE_FOR_SECTION", STATUS_INVALID_FILE_FOR_SECTION
},
4763 { "INVALID_HANDLE", STATUS_INVALID_HANDLE
},
4764 { "INVALID_PARAMETER", STATUS_INVALID_PARAMETER
},
4765 { "INVALID_SECURITY_DESCR", STATUS_INVALID_SECURITY_DESCR
},
4766 { "IO_TIMEOUT", STATUS_IO_TIMEOUT
},
4767 { "KEY_DELETED", STATUS_KEY_DELETED
},
4768 { "MAPPED_FILE_SIZE_ZERO", STATUS_MAPPED_FILE_SIZE_ZERO
},
4769 { "MORE_PROCESSING_REQUIRED", STATUS_MORE_PROCESSING_REQUIRED
},
4770 { "MUTANT_NOT_OWNED", STATUS_MUTANT_NOT_OWNED
},
4771 { "NAME_TOO_LONG", STATUS_NAME_TOO_LONG
},
4772 { "NETWORK_BUSY", STATUS_NETWORK_BUSY
},
4773 { "NETWORK_UNREACHABLE", STATUS_NETWORK_UNREACHABLE
},
4774 { "NOTIFY_ENUM_DIR", STATUS_NOTIFY_ENUM_DIR
},
4775 { "NOT_ALL_ASSIGNED", STATUS_NOT_ALL_ASSIGNED
},
4776 { "NOT_A_DIRECTORY", STATUS_NOT_A_DIRECTORY
},
4777 { "NOT_FOUND", STATUS_NOT_FOUND
},
4778 { "NOT_IMPLEMENTED", STATUS_NOT_IMPLEMENTED
},
4779 { "NOT_REGISTRY_FILE", STATUS_NOT_REGISTRY_FILE
},
4780 { "NOT_SUPPORTED", STATUS_NOT_SUPPORTED
},
4781 { "NO_DATA_DETECTED", STATUS_NO_DATA_DETECTED
},
4782 { "NO_IMPERSONATION_TOKEN", STATUS_NO_IMPERSONATION_TOKEN
},
4783 { "NO_MEMORY", STATUS_NO_MEMORY
},
4784 { "NO_MORE_ENTRIES", STATUS_NO_MORE_ENTRIES
},
4785 { "NO_MORE_FILES", STATUS_NO_MORE_FILES
},
4786 { "NO_SUCH_DEVICE", STATUS_NO_SUCH_DEVICE
},
4787 { "NO_SUCH_FILE", STATUS_NO_SUCH_FILE
},
4788 { "NO_TOKEN", STATUS_NO_TOKEN
},
4789 { "OBJECT_NAME_COLLISION", STATUS_OBJECT_NAME_COLLISION
},
4790 { "OBJECT_NAME_EXISTS", STATUS_OBJECT_NAME_EXISTS
},
4791 { "OBJECT_NAME_INVALID", STATUS_OBJECT_NAME_INVALID
},
4792 { "OBJECT_NAME_NOT_FOUND", STATUS_OBJECT_NAME_NOT_FOUND
},
4793 { "OBJECT_PATH_INVALID", STATUS_OBJECT_PATH_INVALID
},
4794 { "OBJECT_PATH_NOT_FOUND", STATUS_OBJECT_PATH_NOT_FOUND
},
4795 { "OBJECT_PATH_SYNTAX_BAD", STATUS_OBJECT_PATH_SYNTAX_BAD
},
4796 { "OBJECT_TYPE_MISMATCH", STATUS_OBJECT_TYPE_MISMATCH
},
4797 { "PENDING", STATUS_PENDING
},
4798 { "PIPE_BUSY", STATUS_PIPE_BUSY
},
4799 { "PIPE_CONNECTED", STATUS_PIPE_CONNECTED
},
4800 { "PIPE_DISCONNECTED", STATUS_PIPE_DISCONNECTED
},
4801 { "PIPE_LISTENING", STATUS_PIPE_LISTENING
},
4802 { "PIPE_NOT_AVAILABLE", STATUS_PIPE_NOT_AVAILABLE
},
4803 { "PRIVILEGE_NOT_HELD", STATUS_PRIVILEGE_NOT_HELD
},
4804 { "PROCESS_IS_TERMINATING", STATUS_PROCESS_IS_TERMINATING
},
4805 { "SECTION_TOO_BIG", STATUS_SECTION_TOO_BIG
},
4806 { "SEMAPHORE_LIMIT_EXCEEDED", STATUS_SEMAPHORE_LIMIT_EXCEEDED
},
4807 { "SHARING_VIOLATION", STATUS_SHARING_VIOLATION
},
4808 { "SHUTDOWN_IN_PROGRESS", STATUS_SHUTDOWN_IN_PROGRESS
},
4809 { "SUSPEND_COUNT_EXCEEDED", STATUS_SUSPEND_COUNT_EXCEEDED
},
4810 { "THREAD_IS_TERMINATING", STATUS_THREAD_IS_TERMINATING
},
4811 { "TIMEOUT", STATUS_TIMEOUT
},
4812 { "TOO_MANY_OPENED_FILES", STATUS_TOO_MANY_OPENED_FILES
},
4813 { "UNSUCCESSFUL", STATUS_UNSUCCESSFUL
},
4814 { "USER_APC", STATUS_USER_APC
},
4815 { "USER_MAPPED_FILE", STATUS_USER_MAPPED_FILE
},
4816 { "VOLUME_DISMOUNTED", STATUS_VOLUME_DISMOUNTED
},
4817 { "WAS_LOCKED", STATUS_WAS_LOCKED
},
4821 /* ### make_requests end ### */
4822 /* Everything above this line is generated automatically by tools/make_requests */
4824 static const char *get_status_name( unsigned int status
)
4827 static char buffer
[10];
4831 for (i
= 0; status_names
[i
].name
; i
++)
4832 if (status_names
[i
].value
== status
) return status_names
[i
].name
;
4834 sprintf( buffer
, "%x", status
);
4838 void trace_request(void)
4840 enum request req
= current
->req
.request_header
.req
;
4841 if (req
< REQ_NB_REQUESTS
)
4843 fprintf( stderr
, "%04x: %s(", current
->id
, req_names
[req
] );
4844 if (req_dumpers
[req
])
4846 cur_data
= get_req_data();
4847 cur_size
= get_req_data_size();
4848 req_dumpers
[req
]( ¤t
->req
);
4850 fprintf( stderr
, " )\n" );
4852 else fprintf( stderr
, "%04x: %d(?)\n", current
->id
, req
);
4855 void trace_reply( enum request req
, const union generic_reply
*reply
)
4857 if (req
< REQ_NB_REQUESTS
)
4859 fprintf( stderr
, "%04x: %s() = %s",
4860 current
->id
, req_names
[req
], get_status_name(current
->error
) );
4861 if (reply_dumpers
[req
])
4863 fprintf( stderr
, " {" );
4864 cur_data
= current
->reply_data
;
4865 cur_size
= reply
->reply_header
.reply_size
;
4866 reply_dumpers
[req
]( reply
);
4867 fprintf( stderr
, " }" );
4869 fputc( '\n', stderr
);
4871 else fprintf( stderr
, "%04x: %d() = %s\n",
4872 current
->id
, req
, get_status_name(current
->error
) );