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 typedef void (*dump_func
)( const void *req
);
1009 /* Everything below this line is generated automatically by tools/make_requests */
1010 /* ### make_requests begin ### */
1012 static void dump_new_process_request( const struct new_process_request
*req
)
1014 fprintf( stderr
, " inherit_all=%d", req
->inherit_all
);
1015 fprintf( stderr
, ", create_flags=%08x", req
->create_flags
);
1016 fprintf( stderr
, ", socket_fd=%d", req
->socket_fd
);
1017 fprintf( stderr
, ", exe_file=%04x", req
->exe_file
);
1018 fprintf( stderr
, ", process_access=%08x", req
->process_access
);
1019 fprintf( stderr
, ", process_attr=%08x", req
->process_attr
);
1020 fprintf( stderr
, ", thread_access=%08x", req
->thread_access
);
1021 fprintf( stderr
, ", thread_attr=%08x", req
->thread_attr
);
1022 fprintf( stderr
, ", info_size=%u", req
->info_size
);
1023 dump_varargs_startup_info( ", info=", min(cur_size
,req
->info_size
) );
1024 dump_varargs_unicode_str( ", env=", cur_size
);
1027 static void dump_new_process_reply( const struct new_process_reply
*req
)
1029 fprintf( stderr
, " info=%04x", req
->info
);
1030 fprintf( stderr
, ", pid=%04x", req
->pid
);
1031 fprintf( stderr
, ", phandle=%04x", req
->phandle
);
1032 fprintf( stderr
, ", tid=%04x", req
->tid
);
1033 fprintf( stderr
, ", thandle=%04x", req
->thandle
);
1036 static void dump_get_new_process_info_request( const struct get_new_process_info_request
*req
)
1038 fprintf( stderr
, " info=%04x", req
->info
);
1041 static void dump_get_new_process_info_reply( const struct get_new_process_info_reply
*req
)
1043 fprintf( stderr
, " success=%d", req
->success
);
1044 fprintf( stderr
, ", exit_code=%d", req
->exit_code
);
1047 static void dump_new_thread_request( const struct new_thread_request
*req
)
1049 fprintf( stderr
, " access=%08x", req
->access
);
1050 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1051 fprintf( stderr
, ", suspend=%d", req
->suspend
);
1052 fprintf( stderr
, ", request_fd=%d", req
->request_fd
);
1055 static void dump_new_thread_reply( const struct new_thread_reply
*req
)
1057 fprintf( stderr
, " tid=%04x", req
->tid
);
1058 fprintf( stderr
, ", handle=%04x", req
->handle
);
1061 static void dump_get_startup_info_request( const struct get_startup_info_request
*req
)
1065 static void dump_get_startup_info_reply( const struct get_startup_info_reply
*req
)
1067 fprintf( stderr
, " exe_file=%04x", req
->exe_file
);
1068 fprintf( stderr
, ", info_size=%u", req
->info_size
);
1069 dump_varargs_startup_info( ", info=", min(cur_size
,req
->info_size
) );
1070 dump_varargs_unicode_str( ", env=", cur_size
);
1073 static void dump_init_process_done_request( const struct init_process_done_request
*req
)
1075 fprintf( stderr
, " gui=%d", req
->gui
);
1076 dump_uint64( ", module=", &req
->module
);
1077 dump_uint64( ", ldt_copy=", &req
->ldt_copy
);
1078 dump_uint64( ", entry=", &req
->entry
);
1081 static void dump_init_thread_request( const struct init_thread_request
*req
)
1083 fprintf( stderr
, " unix_pid=%d", req
->unix_pid
);
1084 fprintf( stderr
, ", unix_tid=%d", req
->unix_tid
);
1085 fprintf( stderr
, ", debug_level=%d", req
->debug_level
);
1086 dump_uint64( ", teb=", &req
->teb
);
1087 dump_uint64( ", entry=", &req
->entry
);
1088 fprintf( stderr
, ", reply_fd=%d", req
->reply_fd
);
1089 fprintf( stderr
, ", wait_fd=%d", req
->wait_fd
);
1090 dump_cpu_type( ", cpu=", &req
->cpu
);
1093 static void dump_init_thread_reply( const struct init_thread_reply
*req
)
1095 fprintf( stderr
, " pid=%04x", req
->pid
);
1096 fprintf( stderr
, ", tid=%04x", req
->tid
);
1097 dump_timeout( ", server_start=", &req
->server_start
);
1098 fprintf( stderr
, ", info_size=%u", req
->info_size
);
1099 fprintf( stderr
, ", version=%d", req
->version
);
1100 fprintf( stderr
, ", all_cpus=%08x", req
->all_cpus
);
1103 static void dump_terminate_process_request( const struct terminate_process_request
*req
)
1105 fprintf( stderr
, " handle=%04x", req
->handle
);
1106 fprintf( stderr
, ", exit_code=%d", req
->exit_code
);
1109 static void dump_terminate_process_reply( const struct terminate_process_reply
*req
)
1111 fprintf( stderr
, " self=%d", req
->self
);
1114 static void dump_terminate_thread_request( const struct terminate_thread_request
*req
)
1116 fprintf( stderr
, " handle=%04x", req
->handle
);
1117 fprintf( stderr
, ", exit_code=%d", req
->exit_code
);
1120 static void dump_terminate_thread_reply( const struct terminate_thread_reply
*req
)
1122 fprintf( stderr
, " self=%d", req
->self
);
1123 fprintf( stderr
, ", last=%d", req
->last
);
1126 static void dump_get_process_info_request( const struct get_process_info_request
*req
)
1128 fprintf( stderr
, " handle=%04x", req
->handle
);
1131 static void dump_get_process_info_reply( const struct get_process_info_reply
*req
)
1133 fprintf( stderr
, " pid=%04x", req
->pid
);
1134 fprintf( stderr
, ", ppid=%04x", req
->ppid
);
1135 dump_uint64( ", affinity=", &req
->affinity
);
1136 dump_uint64( ", peb=", &req
->peb
);
1137 dump_timeout( ", start_time=", &req
->start_time
);
1138 dump_timeout( ", end_time=", &req
->end_time
);
1139 fprintf( stderr
, ", exit_code=%d", req
->exit_code
);
1140 fprintf( stderr
, ", priority=%d", req
->priority
);
1141 dump_cpu_type( ", cpu=", &req
->cpu
);
1142 fprintf( stderr
, ", debugger_present=%d", req
->debugger_present
);
1145 static void dump_set_process_info_request( const struct set_process_info_request
*req
)
1147 fprintf( stderr
, " handle=%04x", req
->handle
);
1148 fprintf( stderr
, ", mask=%d", req
->mask
);
1149 fprintf( stderr
, ", priority=%d", req
->priority
);
1150 dump_uint64( ", affinity=", &req
->affinity
);
1153 static void dump_get_thread_info_request( const struct get_thread_info_request
*req
)
1155 fprintf( stderr
, " handle=%04x", req
->handle
);
1156 fprintf( stderr
, ", tid_in=%04x", req
->tid_in
);
1159 static void dump_get_thread_info_reply( const struct get_thread_info_reply
*req
)
1161 fprintf( stderr
, " pid=%04x", req
->pid
);
1162 fprintf( stderr
, ", tid=%04x", req
->tid
);
1163 dump_uint64( ", teb=", &req
->teb
);
1164 dump_uint64( ", affinity=", &req
->affinity
);
1165 dump_timeout( ", creation_time=", &req
->creation_time
);
1166 dump_timeout( ", exit_time=", &req
->exit_time
);
1167 fprintf( stderr
, ", exit_code=%d", req
->exit_code
);
1168 fprintf( stderr
, ", priority=%d", req
->priority
);
1169 fprintf( stderr
, ", last=%d", req
->last
);
1172 static void dump_set_thread_info_request( const struct set_thread_info_request
*req
)
1174 fprintf( stderr
, " handle=%04x", req
->handle
);
1175 fprintf( stderr
, ", mask=%d", req
->mask
);
1176 fprintf( stderr
, ", priority=%d", req
->priority
);
1177 dump_uint64( ", affinity=", &req
->affinity
);
1178 fprintf( stderr
, ", token=%04x", req
->token
);
1181 static void dump_get_dll_info_request( const struct get_dll_info_request
*req
)
1183 fprintf( stderr
, " handle=%04x", req
->handle
);
1184 dump_uint64( ", base_address=", &req
->base_address
);
1187 static void dump_get_dll_info_reply( const struct get_dll_info_reply
*req
)
1189 dump_uint64( " entry_point=", &req
->entry_point
);
1190 fprintf( stderr
, ", size=%u", req
->size
);
1191 fprintf( stderr
, ", filename_len=%u", req
->filename_len
);
1192 dump_varargs_unicode_str( ", filename=", cur_size
);
1195 static void dump_suspend_thread_request( const struct suspend_thread_request
*req
)
1197 fprintf( stderr
, " handle=%04x", req
->handle
);
1200 static void dump_suspend_thread_reply( const struct suspend_thread_reply
*req
)
1202 fprintf( stderr
, " count=%d", req
->count
);
1205 static void dump_resume_thread_request( const struct resume_thread_request
*req
)
1207 fprintf( stderr
, " handle=%04x", req
->handle
);
1210 static void dump_resume_thread_reply( const struct resume_thread_reply
*req
)
1212 fprintf( stderr
, " count=%d", req
->count
);
1215 static void dump_load_dll_request( const struct load_dll_request
*req
)
1217 fprintf( stderr
, " mapping=%04x", req
->mapping
);
1218 dump_uint64( ", base=", &req
->base
);
1219 dump_uint64( ", name=", &req
->name
);
1220 fprintf( stderr
, ", size=%u", req
->size
);
1221 fprintf( stderr
, ", dbg_offset=%d", req
->dbg_offset
);
1222 fprintf( stderr
, ", dbg_size=%d", req
->dbg_size
);
1223 dump_varargs_unicode_str( ", filename=", cur_size
);
1226 static void dump_unload_dll_request( const struct unload_dll_request
*req
)
1228 dump_uint64( " base=", &req
->base
);
1231 static void dump_queue_apc_request( const struct queue_apc_request
*req
)
1233 fprintf( stderr
, " handle=%04x", req
->handle
);
1234 dump_apc_call( ", call=", &req
->call
);
1237 static void dump_queue_apc_reply( const struct queue_apc_reply
*req
)
1239 fprintf( stderr
, " handle=%04x", req
->handle
);
1240 fprintf( stderr
, ", self=%d", req
->self
);
1243 static void dump_get_apc_result_request( const struct get_apc_result_request
*req
)
1245 fprintf( stderr
, " handle=%04x", req
->handle
);
1248 static void dump_get_apc_result_reply( const struct get_apc_result_reply
*req
)
1250 dump_apc_result( " result=", &req
->result
);
1253 static void dump_close_handle_request( const struct close_handle_request
*req
)
1255 fprintf( stderr
, " handle=%04x", req
->handle
);
1258 static void dump_set_handle_info_request( const struct set_handle_info_request
*req
)
1260 fprintf( stderr
, " handle=%04x", req
->handle
);
1261 fprintf( stderr
, ", flags=%d", req
->flags
);
1262 fprintf( stderr
, ", mask=%d", req
->mask
);
1265 static void dump_set_handle_info_reply( const struct set_handle_info_reply
*req
)
1267 fprintf( stderr
, " old_flags=%d", req
->old_flags
);
1270 static void dump_dup_handle_request( const struct dup_handle_request
*req
)
1272 fprintf( stderr
, " src_process=%04x", req
->src_process
);
1273 fprintf( stderr
, ", src_handle=%04x", req
->src_handle
);
1274 fprintf( stderr
, ", dst_process=%04x", req
->dst_process
);
1275 fprintf( stderr
, ", access=%08x", req
->access
);
1276 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1277 fprintf( stderr
, ", options=%08x", req
->options
);
1280 static void dump_dup_handle_reply( const struct dup_handle_reply
*req
)
1282 fprintf( stderr
, " handle=%04x", req
->handle
);
1283 fprintf( stderr
, ", self=%d", req
->self
);
1284 fprintf( stderr
, ", closed=%d", req
->closed
);
1287 static void dump_open_process_request( const struct open_process_request
*req
)
1289 fprintf( stderr
, " pid=%04x", req
->pid
);
1290 fprintf( stderr
, ", access=%08x", req
->access
);
1291 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1294 static void dump_open_process_reply( const struct open_process_reply
*req
)
1296 fprintf( stderr
, " handle=%04x", req
->handle
);
1299 static void dump_open_thread_request( const struct open_thread_request
*req
)
1301 fprintf( stderr
, " tid=%04x", req
->tid
);
1302 fprintf( stderr
, ", access=%08x", req
->access
);
1303 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1306 static void dump_open_thread_reply( const struct open_thread_reply
*req
)
1308 fprintf( stderr
, " handle=%04x", req
->handle
);
1311 static void dump_select_request( const struct select_request
*req
)
1313 fprintf( stderr
, " flags=%d", req
->flags
);
1314 dump_uint64( ", cookie=", &req
->cookie
);
1315 fprintf( stderr
, ", signal=%04x", req
->signal
);
1316 fprintf( stderr
, ", prev_apc=%04x", req
->prev_apc
);
1317 dump_timeout( ", timeout=", &req
->timeout
);
1318 dump_varargs_apc_result( ", result=", cur_size
);
1319 dump_varargs_handles( ", handles=", cur_size
);
1322 static void dump_select_reply( const struct select_reply
*req
)
1324 dump_timeout( " timeout=", &req
->timeout
);
1325 dump_apc_call( ", call=", &req
->call
);
1326 fprintf( stderr
, ", apc_handle=%04x", req
->apc_handle
);
1329 static void dump_create_event_request( const struct create_event_request
*req
)
1331 fprintf( stderr
, " access=%08x", req
->access
);
1332 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1333 fprintf( stderr
, ", manual_reset=%d", req
->manual_reset
);
1334 fprintf( stderr
, ", initial_state=%d", req
->initial_state
);
1335 dump_varargs_object_attributes( ", objattr=", cur_size
);
1338 static void dump_create_event_reply( const struct create_event_reply
*req
)
1340 fprintf( stderr
, " handle=%04x", req
->handle
);
1343 static void dump_event_op_request( const struct event_op_request
*req
)
1345 fprintf( stderr
, " handle=%04x", req
->handle
);
1346 fprintf( stderr
, ", op=%d", req
->op
);
1349 static void dump_open_event_request( const struct open_event_request
*req
)
1351 fprintf( stderr
, " access=%08x", req
->access
);
1352 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1353 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
1354 dump_varargs_unicode_str( ", name=", cur_size
);
1357 static void dump_open_event_reply( const struct open_event_reply
*req
)
1359 fprintf( stderr
, " handle=%04x", req
->handle
);
1362 static void dump_create_mutex_request( const struct create_mutex_request
*req
)
1364 fprintf( stderr
, " access=%08x", req
->access
);
1365 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1366 fprintf( stderr
, ", owned=%d", req
->owned
);
1367 dump_varargs_object_attributes( ", objattr=", cur_size
);
1370 static void dump_create_mutex_reply( const struct create_mutex_reply
*req
)
1372 fprintf( stderr
, " handle=%04x", req
->handle
);
1375 static void dump_release_mutex_request( const struct release_mutex_request
*req
)
1377 fprintf( stderr
, " handle=%04x", req
->handle
);
1380 static void dump_release_mutex_reply( const struct release_mutex_reply
*req
)
1382 fprintf( stderr
, " prev_count=%08x", req
->prev_count
);
1385 static void dump_open_mutex_request( const struct open_mutex_request
*req
)
1387 fprintf( stderr
, " access=%08x", req
->access
);
1388 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1389 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
1390 dump_varargs_unicode_str( ", name=", cur_size
);
1393 static void dump_open_mutex_reply( const struct open_mutex_reply
*req
)
1395 fprintf( stderr
, " handle=%04x", req
->handle
);
1398 static void dump_create_semaphore_request( const struct create_semaphore_request
*req
)
1400 fprintf( stderr
, " access=%08x", req
->access
);
1401 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1402 fprintf( stderr
, ", initial=%08x", req
->initial
);
1403 fprintf( stderr
, ", max=%08x", req
->max
);
1404 dump_varargs_object_attributes( ", objattr=", cur_size
);
1407 static void dump_create_semaphore_reply( const struct create_semaphore_reply
*req
)
1409 fprintf( stderr
, " handle=%04x", req
->handle
);
1412 static void dump_release_semaphore_request( const struct release_semaphore_request
*req
)
1414 fprintf( stderr
, " handle=%04x", req
->handle
);
1415 fprintf( stderr
, ", count=%08x", req
->count
);
1418 static void dump_release_semaphore_reply( const struct release_semaphore_reply
*req
)
1420 fprintf( stderr
, " prev_count=%08x", req
->prev_count
);
1423 static void dump_open_semaphore_request( const struct open_semaphore_request
*req
)
1425 fprintf( stderr
, " access=%08x", req
->access
);
1426 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1427 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
1428 dump_varargs_unicode_str( ", name=", cur_size
);
1431 static void dump_open_semaphore_reply( const struct open_semaphore_reply
*req
)
1433 fprintf( stderr
, " handle=%04x", req
->handle
);
1436 static void dump_create_file_request( const struct create_file_request
*req
)
1438 fprintf( stderr
, " access=%08x", req
->access
);
1439 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1440 fprintf( stderr
, ", sharing=%08x", req
->sharing
);
1441 fprintf( stderr
, ", create=%d", req
->create
);
1442 fprintf( stderr
, ", options=%08x", req
->options
);
1443 fprintf( stderr
, ", attrs=%08x", req
->attrs
);
1444 dump_varargs_object_attributes( ", objattr=", cur_size
);
1445 dump_varargs_string( ", filename=", cur_size
);
1448 static void dump_create_file_reply( const struct create_file_reply
*req
)
1450 fprintf( stderr
, " handle=%04x", req
->handle
);
1453 static void dump_open_file_object_request( const struct open_file_object_request
*req
)
1455 fprintf( stderr
, " access=%08x", req
->access
);
1456 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1457 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
1458 fprintf( stderr
, ", sharing=%08x", req
->sharing
);
1459 fprintf( stderr
, ", options=%08x", req
->options
);
1460 dump_varargs_unicode_str( ", filename=", cur_size
);
1463 static void dump_open_file_object_reply( const struct open_file_object_reply
*req
)
1465 fprintf( stderr
, " handle=%04x", req
->handle
);
1468 static void dump_alloc_file_handle_request( const struct alloc_file_handle_request
*req
)
1470 fprintf( stderr
, " access=%08x", req
->access
);
1471 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1472 fprintf( stderr
, ", fd=%d", req
->fd
);
1475 static void dump_alloc_file_handle_reply( const struct alloc_file_handle_reply
*req
)
1477 fprintf( stderr
, " handle=%04x", req
->handle
);
1480 static void dump_get_handle_unix_name_request( const struct get_handle_unix_name_request
*req
)
1482 fprintf( stderr
, " handle=%04x", req
->handle
);
1485 static void dump_get_handle_unix_name_reply( const struct get_handle_unix_name_reply
*req
)
1487 fprintf( stderr
, " name_len=%u", req
->name_len
);
1488 dump_varargs_string( ", name=", cur_size
);
1491 static void dump_get_handle_fd_request( const struct get_handle_fd_request
*req
)
1493 fprintf( stderr
, " handle=%04x", req
->handle
);
1496 static void dump_get_handle_fd_reply( const struct get_handle_fd_reply
*req
)
1498 fprintf( stderr
, " type=%d", req
->type
);
1499 fprintf( stderr
, ", cacheable=%d", req
->cacheable
);
1500 fprintf( stderr
, ", access=%08x", req
->access
);
1501 fprintf( stderr
, ", options=%08x", req
->options
);
1504 static void dump_flush_file_request( const struct flush_file_request
*req
)
1506 fprintf( stderr
, " handle=%04x", req
->handle
);
1509 static void dump_flush_file_reply( const struct flush_file_reply
*req
)
1511 fprintf( stderr
, " event=%04x", req
->event
);
1514 static void dump_lock_file_request( const struct lock_file_request
*req
)
1516 fprintf( stderr
, " handle=%04x", req
->handle
);
1517 dump_uint64( ", offset=", &req
->offset
);
1518 dump_uint64( ", count=", &req
->count
);
1519 fprintf( stderr
, ", shared=%d", req
->shared
);
1520 fprintf( stderr
, ", wait=%d", req
->wait
);
1523 static void dump_lock_file_reply( const struct lock_file_reply
*req
)
1525 fprintf( stderr
, " handle=%04x", req
->handle
);
1526 fprintf( stderr
, ", overlapped=%d", req
->overlapped
);
1529 static void dump_unlock_file_request( const struct unlock_file_request
*req
)
1531 fprintf( stderr
, " handle=%04x", req
->handle
);
1532 dump_uint64( ", offset=", &req
->offset
);
1533 dump_uint64( ", count=", &req
->count
);
1536 static void dump_create_socket_request( const struct create_socket_request
*req
)
1538 fprintf( stderr
, " access=%08x", req
->access
);
1539 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1540 fprintf( stderr
, ", family=%d", req
->family
);
1541 fprintf( stderr
, ", type=%d", req
->type
);
1542 fprintf( stderr
, ", protocol=%d", req
->protocol
);
1543 fprintf( stderr
, ", flags=%08x", req
->flags
);
1546 static void dump_create_socket_reply( const struct create_socket_reply
*req
)
1548 fprintf( stderr
, " handle=%04x", req
->handle
);
1551 static void dump_accept_socket_request( const struct accept_socket_request
*req
)
1553 fprintf( stderr
, " lhandle=%04x", req
->lhandle
);
1554 fprintf( stderr
, ", access=%08x", req
->access
);
1555 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1558 static void dump_accept_socket_reply( const struct accept_socket_reply
*req
)
1560 fprintf( stderr
, " handle=%04x", req
->handle
);
1563 static void dump_accept_into_socket_request( const struct accept_into_socket_request
*req
)
1565 fprintf( stderr
, " lhandle=%04x", req
->lhandle
);
1566 fprintf( stderr
, ", ahandle=%04x", req
->ahandle
);
1569 static void dump_set_socket_event_request( const struct set_socket_event_request
*req
)
1571 fprintf( stderr
, " handle=%04x", req
->handle
);
1572 fprintf( stderr
, ", mask=%08x", req
->mask
);
1573 fprintf( stderr
, ", event=%04x", req
->event
);
1574 fprintf( stderr
, ", window=%08x", req
->window
);
1575 fprintf( stderr
, ", msg=%08x", req
->msg
);
1578 static void dump_get_socket_event_request( const struct get_socket_event_request
*req
)
1580 fprintf( stderr
, " handle=%04x", req
->handle
);
1581 fprintf( stderr
, ", service=%d", req
->service
);
1582 fprintf( stderr
, ", c_event=%04x", req
->c_event
);
1585 static void dump_get_socket_event_reply( const struct get_socket_event_reply
*req
)
1587 fprintf( stderr
, " mask=%08x", req
->mask
);
1588 fprintf( stderr
, ", pmask=%08x", req
->pmask
);
1589 fprintf( stderr
, ", state=%08x", req
->state
);
1590 dump_varargs_ints( ", errors=", cur_size
);
1593 static void dump_enable_socket_event_request( const struct enable_socket_event_request
*req
)
1595 fprintf( stderr
, " handle=%04x", req
->handle
);
1596 fprintf( stderr
, ", mask=%08x", req
->mask
);
1597 fprintf( stderr
, ", sstate=%08x", req
->sstate
);
1598 fprintf( stderr
, ", cstate=%08x", req
->cstate
);
1601 static void dump_set_socket_deferred_request( const struct set_socket_deferred_request
*req
)
1603 fprintf( stderr
, " handle=%04x", req
->handle
);
1604 fprintf( stderr
, ", deferred=%04x", req
->deferred
);
1607 static void dump_alloc_console_request( const struct alloc_console_request
*req
)
1609 fprintf( stderr
, " access=%08x", req
->access
);
1610 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1611 fprintf( stderr
, ", pid=%04x", req
->pid
);
1612 fprintf( stderr
, ", input_fd=%d", req
->input_fd
);
1615 static void dump_alloc_console_reply( const struct alloc_console_reply
*req
)
1617 fprintf( stderr
, " handle_in=%04x", req
->handle_in
);
1618 fprintf( stderr
, ", event=%04x", req
->event
);
1621 static void dump_free_console_request( const struct free_console_request
*req
)
1625 static void dump_get_console_renderer_events_request( const struct get_console_renderer_events_request
*req
)
1627 fprintf( stderr
, " handle=%04x", req
->handle
);
1630 static void dump_get_console_renderer_events_reply( const struct get_console_renderer_events_reply
*req
)
1632 dump_varargs_bytes( " data=", cur_size
);
1635 static void dump_open_console_request( const struct open_console_request
*req
)
1637 fprintf( stderr
, " from=%04x", req
->from
);
1638 fprintf( stderr
, ", access=%08x", req
->access
);
1639 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1640 fprintf( stderr
, ", share=%d", req
->share
);
1643 static void dump_open_console_reply( const struct open_console_reply
*req
)
1645 fprintf( stderr
, " handle=%04x", req
->handle
);
1648 static void dump_get_console_wait_event_request( const struct get_console_wait_event_request
*req
)
1652 static void dump_get_console_wait_event_reply( const struct get_console_wait_event_reply
*req
)
1654 fprintf( stderr
, " handle=%04x", req
->handle
);
1657 static void dump_get_console_mode_request( const struct get_console_mode_request
*req
)
1659 fprintf( stderr
, " handle=%04x", req
->handle
);
1662 static void dump_get_console_mode_reply( const struct get_console_mode_reply
*req
)
1664 fprintf( stderr
, " mode=%d", req
->mode
);
1667 static void dump_set_console_mode_request( const struct set_console_mode_request
*req
)
1669 fprintf( stderr
, " handle=%04x", req
->handle
);
1670 fprintf( stderr
, ", mode=%d", req
->mode
);
1673 static void dump_set_console_input_info_request( const struct set_console_input_info_request
*req
)
1675 fprintf( stderr
, " handle=%04x", req
->handle
);
1676 fprintf( stderr
, ", mask=%d", req
->mask
);
1677 fprintf( stderr
, ", active_sb=%04x", req
->active_sb
);
1678 fprintf( stderr
, ", history_mode=%d", req
->history_mode
);
1679 fprintf( stderr
, ", history_size=%d", req
->history_size
);
1680 fprintf( stderr
, ", edition_mode=%d", req
->edition_mode
);
1681 fprintf( stderr
, ", input_cp=%d", req
->input_cp
);
1682 fprintf( stderr
, ", output_cp=%d", req
->output_cp
);
1683 fprintf( stderr
, ", win=%08x", req
->win
);
1684 dump_varargs_unicode_str( ", title=", cur_size
);
1687 static void dump_get_console_input_info_request( const struct get_console_input_info_request
*req
)
1689 fprintf( stderr
, " handle=%04x", req
->handle
);
1692 static void dump_get_console_input_info_reply( const struct get_console_input_info_reply
*req
)
1694 fprintf( stderr
, " history_mode=%d", req
->history_mode
);
1695 fprintf( stderr
, ", history_size=%d", req
->history_size
);
1696 fprintf( stderr
, ", history_index=%d", req
->history_index
);
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_append_console_input_history_request( const struct append_console_input_history_request
*req
)
1706 fprintf( stderr
, " handle=%04x", req
->handle
);
1707 dump_varargs_unicode_str( ", line=", cur_size
);
1710 static void dump_get_console_input_history_request( const struct get_console_input_history_request
*req
)
1712 fprintf( stderr
, " handle=%04x", req
->handle
);
1713 fprintf( stderr
, ", index=%d", req
->index
);
1716 static void dump_get_console_input_history_reply( const struct get_console_input_history_reply
*req
)
1718 fprintf( stderr
, " total=%d", req
->total
);
1719 dump_varargs_unicode_str( ", line=", cur_size
);
1722 static void dump_create_console_output_request( const struct create_console_output_request
*req
)
1724 fprintf( stderr
, " handle_in=%04x", req
->handle_in
);
1725 fprintf( stderr
, ", access=%08x", req
->access
);
1726 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1727 fprintf( stderr
, ", share=%08x", req
->share
);
1728 fprintf( stderr
, ", fd=%d", req
->fd
);
1731 static void dump_create_console_output_reply( const struct create_console_output_reply
*req
)
1733 fprintf( stderr
, " handle_out=%04x", req
->handle_out
);
1736 static void dump_set_console_output_info_request( const struct set_console_output_info_request
*req
)
1738 fprintf( stderr
, " handle=%04x", req
->handle
);
1739 fprintf( stderr
, ", mask=%d", req
->mask
);
1740 fprintf( stderr
, ", cursor_size=%d", req
->cursor_size
);
1741 fprintf( stderr
, ", cursor_visible=%d", req
->cursor_visible
);
1742 fprintf( stderr
, ", cursor_x=%d", req
->cursor_x
);
1743 fprintf( stderr
, ", cursor_y=%d", req
->cursor_y
);
1744 fprintf( stderr
, ", width=%d", req
->width
);
1745 fprintf( stderr
, ", height=%d", req
->height
);
1746 fprintf( stderr
, ", attr=%d", req
->attr
);
1747 fprintf( stderr
, ", win_left=%d", req
->win_left
);
1748 fprintf( stderr
, ", win_top=%d", req
->win_top
);
1749 fprintf( stderr
, ", win_right=%d", req
->win_right
);
1750 fprintf( stderr
, ", win_bottom=%d", req
->win_bottom
);
1751 fprintf( stderr
, ", max_width=%d", req
->max_width
);
1752 fprintf( stderr
, ", max_height=%d", req
->max_height
);
1755 static void dump_get_console_output_info_request( const struct get_console_output_info_request
*req
)
1757 fprintf( stderr
, " handle=%04x", req
->handle
);
1760 static void dump_get_console_output_info_reply( const struct get_console_output_info_reply
*req
)
1762 fprintf( stderr
, " cursor_size=%d", req
->cursor_size
);
1763 fprintf( stderr
, ", cursor_visible=%d", req
->cursor_visible
);
1764 fprintf( stderr
, ", cursor_x=%d", req
->cursor_x
);
1765 fprintf( stderr
, ", cursor_y=%d", req
->cursor_y
);
1766 fprintf( stderr
, ", width=%d", req
->width
);
1767 fprintf( stderr
, ", height=%d", req
->height
);
1768 fprintf( stderr
, ", attr=%d", req
->attr
);
1769 fprintf( stderr
, ", win_left=%d", req
->win_left
);
1770 fprintf( stderr
, ", win_top=%d", req
->win_top
);
1771 fprintf( stderr
, ", win_right=%d", req
->win_right
);
1772 fprintf( stderr
, ", win_bottom=%d", req
->win_bottom
);
1773 fprintf( stderr
, ", max_width=%d", req
->max_width
);
1774 fprintf( stderr
, ", max_height=%d", req
->max_height
);
1777 static void dump_write_console_input_request( const struct write_console_input_request
*req
)
1779 fprintf( stderr
, " handle=%04x", req
->handle
);
1780 dump_varargs_input_records( ", rec=", cur_size
);
1783 static void dump_write_console_input_reply( const struct write_console_input_reply
*req
)
1785 fprintf( stderr
, " written=%d", req
->written
);
1788 static void dump_read_console_input_request( const struct read_console_input_request
*req
)
1790 fprintf( stderr
, " handle=%04x", req
->handle
);
1791 fprintf( stderr
, ", flush=%d", req
->flush
);
1794 static void dump_read_console_input_reply( const struct read_console_input_reply
*req
)
1796 fprintf( stderr
, " read=%d", req
->read
);
1797 dump_varargs_input_records( ", rec=", cur_size
);
1800 static void dump_write_console_output_request( const struct write_console_output_request
*req
)
1802 fprintf( stderr
, " handle=%04x", req
->handle
);
1803 fprintf( stderr
, ", x=%d", req
->x
);
1804 fprintf( stderr
, ", y=%d", req
->y
);
1805 fprintf( stderr
, ", mode=%d", req
->mode
);
1806 fprintf( stderr
, ", wrap=%d", req
->wrap
);
1807 dump_varargs_bytes( ", data=", cur_size
);
1810 static void dump_write_console_output_reply( const struct write_console_output_reply
*req
)
1812 fprintf( stderr
, " written=%d", req
->written
);
1813 fprintf( stderr
, ", width=%d", req
->width
);
1814 fprintf( stderr
, ", height=%d", req
->height
);
1817 static void dump_fill_console_output_request( const struct fill_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
, ", count=%d", req
->count
);
1824 fprintf( stderr
, ", wrap=%d", req
->wrap
);
1825 dump_char_info( ", data=", &req
->data
);
1828 static void dump_fill_console_output_reply( const struct fill_console_output_reply
*req
)
1830 fprintf( stderr
, " written=%d", req
->written
);
1833 static void dump_read_console_output_request( const struct read_console_output_request
*req
)
1835 fprintf( stderr
, " handle=%04x", req
->handle
);
1836 fprintf( stderr
, ", x=%d", req
->x
);
1837 fprintf( stderr
, ", y=%d", req
->y
);
1838 fprintf( stderr
, ", mode=%d", req
->mode
);
1839 fprintf( stderr
, ", wrap=%d", req
->wrap
);
1842 static void dump_read_console_output_reply( const struct read_console_output_reply
*req
)
1844 fprintf( stderr
, " width=%d", req
->width
);
1845 fprintf( stderr
, ", height=%d", req
->height
);
1846 dump_varargs_bytes( ", data=", cur_size
);
1849 static void dump_move_console_output_request( const struct move_console_output_request
*req
)
1851 fprintf( stderr
, " handle=%04x", req
->handle
);
1852 fprintf( stderr
, ", x_src=%d", req
->x_src
);
1853 fprintf( stderr
, ", y_src=%d", req
->y_src
);
1854 fprintf( stderr
, ", x_dst=%d", req
->x_dst
);
1855 fprintf( stderr
, ", y_dst=%d", req
->y_dst
);
1856 fprintf( stderr
, ", w=%d", req
->w
);
1857 fprintf( stderr
, ", h=%d", req
->h
);
1860 static void dump_send_console_signal_request( const struct send_console_signal_request
*req
)
1862 fprintf( stderr
, " signal=%d", req
->signal
);
1863 fprintf( stderr
, ", group_id=%04x", req
->group_id
);
1866 static void dump_read_directory_changes_request( const struct read_directory_changes_request
*req
)
1868 fprintf( stderr
, " filter=%08x", req
->filter
);
1869 fprintf( stderr
, ", subtree=%d", req
->subtree
);
1870 fprintf( stderr
, ", want_data=%d", req
->want_data
);
1871 dump_async_data( ", async=", &req
->async
);
1874 static void dump_read_change_request( const struct read_change_request
*req
)
1876 fprintf( stderr
, " handle=%04x", req
->handle
);
1879 static void dump_read_change_reply( const struct read_change_reply
*req
)
1881 dump_varargs_filesystem_event( " events=", cur_size
);
1884 static void dump_create_mapping_request( const struct create_mapping_request
*req
)
1886 fprintf( stderr
, " access=%08x", req
->access
);
1887 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1888 fprintf( stderr
, ", protect=%08x", req
->protect
);
1889 dump_uint64( ", size=", &req
->size
);
1890 fprintf( stderr
, ", file_handle=%04x", req
->file_handle
);
1891 dump_varargs_object_attributes( ", objattr=", cur_size
);
1894 static void dump_create_mapping_reply( const struct create_mapping_reply
*req
)
1896 fprintf( stderr
, " handle=%04x", req
->handle
);
1899 static void dump_open_mapping_request( const struct open_mapping_request
*req
)
1901 fprintf( stderr
, " access=%08x", req
->access
);
1902 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1903 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
1904 dump_varargs_unicode_str( ", name=", cur_size
);
1907 static void dump_open_mapping_reply( const struct open_mapping_reply
*req
)
1909 fprintf( stderr
, " handle=%04x", req
->handle
);
1912 static void dump_get_mapping_info_request( const struct get_mapping_info_request
*req
)
1914 fprintf( stderr
, " handle=%04x", req
->handle
);
1915 fprintf( stderr
, ", access=%08x", req
->access
);
1918 static void dump_get_mapping_info_reply( const struct get_mapping_info_reply
*req
)
1920 dump_uint64( " size=", &req
->size
);
1921 fprintf( stderr
, ", protect=%d", req
->protect
);
1922 fprintf( stderr
, ", header_size=%d", req
->header_size
);
1923 dump_uint64( ", base=", &req
->base
);
1924 fprintf( stderr
, ", mapping=%04x", req
->mapping
);
1925 fprintf( stderr
, ", shared_file=%04x", req
->shared_file
);
1928 static void dump_get_mapping_committed_range_request( const struct get_mapping_committed_range_request
*req
)
1930 fprintf( stderr
, " handle=%04x", req
->handle
);
1931 dump_uint64( ", offset=", &req
->offset
);
1934 static void dump_get_mapping_committed_range_reply( const struct get_mapping_committed_range_reply
*req
)
1936 dump_uint64( " size=", &req
->size
);
1937 fprintf( stderr
, ", committed=%d", req
->committed
);
1940 static void dump_add_mapping_committed_range_request( const struct add_mapping_committed_range_request
*req
)
1942 fprintf( stderr
, " handle=%04x", req
->handle
);
1943 dump_uint64( ", offset=", &req
->offset
);
1944 dump_uint64( ", size=", &req
->size
);
1947 static void dump_create_snapshot_request( const struct create_snapshot_request
*req
)
1949 fprintf( stderr
, " attributes=%08x", req
->attributes
);
1950 fprintf( stderr
, ", flags=%08x", req
->flags
);
1953 static void dump_create_snapshot_reply( const struct create_snapshot_reply
*req
)
1955 fprintf( stderr
, " handle=%04x", req
->handle
);
1958 static void dump_next_process_request( const struct next_process_request
*req
)
1960 fprintf( stderr
, " handle=%04x", req
->handle
);
1961 fprintf( stderr
, ", reset=%d", req
->reset
);
1964 static void dump_next_process_reply( const struct next_process_reply
*req
)
1966 fprintf( stderr
, " count=%d", req
->count
);
1967 fprintf( stderr
, ", pid=%04x", req
->pid
);
1968 fprintf( stderr
, ", ppid=%04x", req
->ppid
);
1969 fprintf( stderr
, ", threads=%d", req
->threads
);
1970 fprintf( stderr
, ", priority=%d", req
->priority
);
1971 fprintf( stderr
, ", handles=%d", req
->handles
);
1972 dump_varargs_unicode_str( ", filename=", cur_size
);
1975 static void dump_next_thread_request( const struct next_thread_request
*req
)
1977 fprintf( stderr
, " handle=%04x", req
->handle
);
1978 fprintf( stderr
, ", reset=%d", req
->reset
);
1981 static void dump_next_thread_reply( const struct next_thread_reply
*req
)
1983 fprintf( stderr
, " count=%d", req
->count
);
1984 fprintf( stderr
, ", pid=%04x", req
->pid
);
1985 fprintf( stderr
, ", tid=%04x", req
->tid
);
1986 fprintf( stderr
, ", base_pri=%d", req
->base_pri
);
1987 fprintf( stderr
, ", delta_pri=%d", req
->delta_pri
);
1990 static void dump_wait_debug_event_request( const struct wait_debug_event_request
*req
)
1992 fprintf( stderr
, " get_handle=%d", req
->get_handle
);
1995 static void dump_wait_debug_event_reply( const struct wait_debug_event_reply
*req
)
1997 fprintf( stderr
, " pid=%04x", req
->pid
);
1998 fprintf( stderr
, ", tid=%04x", req
->tid
);
1999 fprintf( stderr
, ", wait=%04x", req
->wait
);
2000 dump_varargs_debug_event( ", event=", cur_size
);
2003 static void dump_queue_exception_event_request( const struct queue_exception_event_request
*req
)
2005 fprintf( stderr
, " first=%d", req
->first
);
2006 fprintf( stderr
, ", code=%08x", req
->code
);
2007 fprintf( stderr
, ", flags=%08x", req
->flags
);
2008 dump_uint64( ", record=", &req
->record
);
2009 dump_uint64( ", address=", &req
->address
);
2010 fprintf( stderr
, ", len=%u", req
->len
);
2011 dump_varargs_uints64( ", params=", min(cur_size
,req
->len
) );
2012 dump_varargs_context( ", context=", cur_size
);
2015 static void dump_queue_exception_event_reply( const struct queue_exception_event_reply
*req
)
2017 fprintf( stderr
, " handle=%04x", req
->handle
);
2020 static void dump_get_exception_status_request( const struct get_exception_status_request
*req
)
2022 fprintf( stderr
, " handle=%04x", req
->handle
);
2025 static void dump_get_exception_status_reply( const struct get_exception_status_reply
*req
)
2027 dump_varargs_context( " context=", cur_size
);
2030 static void dump_output_debug_string_request( const struct output_debug_string_request
*req
)
2032 fprintf( stderr
, " length=%u", req
->length
);
2033 dump_uint64( ", string=", &req
->string
);
2036 static void dump_continue_debug_event_request( const struct continue_debug_event_request
*req
)
2038 fprintf( stderr
, " pid=%04x", req
->pid
);
2039 fprintf( stderr
, ", tid=%04x", req
->tid
);
2040 fprintf( stderr
, ", status=%d", req
->status
);
2043 static void dump_debug_process_request( const struct debug_process_request
*req
)
2045 fprintf( stderr
, " pid=%04x", req
->pid
);
2046 fprintf( stderr
, ", attach=%d", req
->attach
);
2049 static void dump_debug_break_request( const struct debug_break_request
*req
)
2051 fprintf( stderr
, " handle=%04x", req
->handle
);
2054 static void dump_debug_break_reply( const struct debug_break_reply
*req
)
2056 fprintf( stderr
, " self=%d", req
->self
);
2059 static void dump_set_debugger_kill_on_exit_request( const struct set_debugger_kill_on_exit_request
*req
)
2061 fprintf( stderr
, " kill_on_exit=%d", req
->kill_on_exit
);
2064 static void dump_read_process_memory_request( const struct read_process_memory_request
*req
)
2066 fprintf( stderr
, " handle=%04x", req
->handle
);
2067 dump_uint64( ", addr=", &req
->addr
);
2070 static void dump_read_process_memory_reply( const struct read_process_memory_reply
*req
)
2072 dump_varargs_bytes( " data=", cur_size
);
2075 static void dump_write_process_memory_request( const struct write_process_memory_request
*req
)
2077 fprintf( stderr
, " handle=%04x", req
->handle
);
2078 dump_uint64( ", addr=", &req
->addr
);
2079 dump_varargs_bytes( ", data=", cur_size
);
2082 static void dump_create_key_request( const struct create_key_request
*req
)
2084 fprintf( stderr
, " parent=%04x", req
->parent
);
2085 fprintf( stderr
, ", access=%08x", req
->access
);
2086 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
2087 fprintf( stderr
, ", options=%08x", req
->options
);
2088 fprintf( stderr
, ", namelen=%u", req
->namelen
);
2089 dump_varargs_unicode_str( ", name=", min(cur_size
,req
->namelen
) );
2090 dump_varargs_unicode_str( ", class=", cur_size
);
2093 static void dump_create_key_reply( const struct create_key_reply
*req
)
2095 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2096 fprintf( stderr
, ", created=%d", req
->created
);
2099 static void dump_open_key_request( const struct open_key_request
*req
)
2101 fprintf( stderr
, " parent=%04x", req
->parent
);
2102 fprintf( stderr
, ", access=%08x", req
->access
);
2103 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
2104 dump_varargs_unicode_str( ", name=", cur_size
);
2107 static void dump_open_key_reply( const struct open_key_reply
*req
)
2109 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2112 static void dump_delete_key_request( const struct delete_key_request
*req
)
2114 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2117 static void dump_flush_key_request( const struct flush_key_request
*req
)
2119 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2122 static void dump_enum_key_request( const struct enum_key_request
*req
)
2124 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2125 fprintf( stderr
, ", index=%d", req
->index
);
2126 fprintf( stderr
, ", info_class=%d", req
->info_class
);
2129 static void dump_enum_key_reply( const struct enum_key_reply
*req
)
2131 fprintf( stderr
, " subkeys=%d", req
->subkeys
);
2132 fprintf( stderr
, ", max_subkey=%d", req
->max_subkey
);
2133 fprintf( stderr
, ", max_class=%d", req
->max_class
);
2134 fprintf( stderr
, ", values=%d", req
->values
);
2135 fprintf( stderr
, ", max_value=%d", req
->max_value
);
2136 fprintf( stderr
, ", max_data=%d", req
->max_data
);
2137 dump_timeout( ", modif=", &req
->modif
);
2138 fprintf( stderr
, ", total=%u", req
->total
);
2139 fprintf( stderr
, ", namelen=%u", req
->namelen
);
2140 dump_varargs_unicode_str( ", name=", min(cur_size
,req
->namelen
) );
2141 dump_varargs_unicode_str( ", class=", cur_size
);
2144 static void dump_set_key_value_request( const struct set_key_value_request
*req
)
2146 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2147 fprintf( stderr
, ", type=%d", req
->type
);
2148 fprintf( stderr
, ", namelen=%u", req
->namelen
);
2149 dump_varargs_unicode_str( ", name=", min(cur_size
,req
->namelen
) );
2150 dump_varargs_bytes( ", data=", cur_size
);
2153 static void dump_get_key_value_request( const struct get_key_value_request
*req
)
2155 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2156 dump_varargs_unicode_str( ", name=", cur_size
);
2159 static void dump_get_key_value_reply( const struct get_key_value_reply
*req
)
2161 fprintf( stderr
, " type=%d", req
->type
);
2162 fprintf( stderr
, ", total=%u", req
->total
);
2163 dump_varargs_bytes( ", data=", cur_size
);
2166 static void dump_enum_key_value_request( const struct enum_key_value_request
*req
)
2168 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2169 fprintf( stderr
, ", index=%d", req
->index
);
2170 fprintf( stderr
, ", info_class=%d", req
->info_class
);
2173 static void dump_enum_key_value_reply( const struct enum_key_value_reply
*req
)
2175 fprintf( stderr
, " type=%d", req
->type
);
2176 fprintf( stderr
, ", total=%u", req
->total
);
2177 fprintf( stderr
, ", namelen=%u", req
->namelen
);
2178 dump_varargs_unicode_str( ", name=", min(cur_size
,req
->namelen
) );
2179 dump_varargs_bytes( ", data=", cur_size
);
2182 static void dump_delete_key_value_request( const struct delete_key_value_request
*req
)
2184 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2185 dump_varargs_unicode_str( ", name=", cur_size
);
2188 static void dump_load_registry_request( const struct load_registry_request
*req
)
2190 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2191 fprintf( stderr
, ", file=%04x", req
->file
);
2192 dump_varargs_unicode_str( ", name=", cur_size
);
2195 static void dump_unload_registry_request( const struct unload_registry_request
*req
)
2197 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2200 static void dump_save_registry_request( const struct save_registry_request
*req
)
2202 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2203 fprintf( stderr
, ", file=%04x", req
->file
);
2206 static void dump_set_registry_notification_request( const struct set_registry_notification_request
*req
)
2208 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2209 fprintf( stderr
, ", event=%04x", req
->event
);
2210 fprintf( stderr
, ", subtree=%d", req
->subtree
);
2211 fprintf( stderr
, ", filter=%08x", req
->filter
);
2214 static void dump_create_timer_request( const struct create_timer_request
*req
)
2216 fprintf( stderr
, " access=%08x", req
->access
);
2217 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
2218 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
2219 fprintf( stderr
, ", manual=%d", req
->manual
);
2220 dump_varargs_unicode_str( ", name=", cur_size
);
2223 static void dump_create_timer_reply( const struct create_timer_reply
*req
)
2225 fprintf( stderr
, " handle=%04x", req
->handle
);
2228 static void dump_open_timer_request( const struct open_timer_request
*req
)
2230 fprintf( stderr
, " access=%08x", req
->access
);
2231 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
2232 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
2233 dump_varargs_unicode_str( ", name=", cur_size
);
2236 static void dump_open_timer_reply( const struct open_timer_reply
*req
)
2238 fprintf( stderr
, " handle=%04x", req
->handle
);
2241 static void dump_set_timer_request( const struct set_timer_request
*req
)
2243 fprintf( stderr
, " handle=%04x", req
->handle
);
2244 dump_timeout( ", expire=", &req
->expire
);
2245 dump_uint64( ", callback=", &req
->callback
);
2246 dump_uint64( ", arg=", &req
->arg
);
2247 fprintf( stderr
, ", period=%d", req
->period
);
2250 static void dump_set_timer_reply( const struct set_timer_reply
*req
)
2252 fprintf( stderr
, " signaled=%d", req
->signaled
);
2255 static void dump_cancel_timer_request( const struct cancel_timer_request
*req
)
2257 fprintf( stderr
, " handle=%04x", req
->handle
);
2260 static void dump_cancel_timer_reply( const struct cancel_timer_reply
*req
)
2262 fprintf( stderr
, " signaled=%d", req
->signaled
);
2265 static void dump_get_timer_info_request( const struct get_timer_info_request
*req
)
2267 fprintf( stderr
, " handle=%04x", req
->handle
);
2270 static void dump_get_timer_info_reply( const struct get_timer_info_reply
*req
)
2272 dump_timeout( " when=", &req
->when
);
2273 fprintf( stderr
, ", signaled=%d", req
->signaled
);
2276 static void dump_get_thread_context_request( const struct get_thread_context_request
*req
)
2278 fprintf( stderr
, " handle=%04x", req
->handle
);
2279 fprintf( stderr
, ", flags=%08x", req
->flags
);
2280 fprintf( stderr
, ", suspend=%d", req
->suspend
);
2283 static void dump_get_thread_context_reply( const struct get_thread_context_reply
*req
)
2285 fprintf( stderr
, " self=%d", req
->self
);
2286 dump_varargs_context( ", context=", cur_size
);
2289 static void dump_set_thread_context_request( const struct set_thread_context_request
*req
)
2291 fprintf( stderr
, " handle=%04x", req
->handle
);
2292 fprintf( stderr
, ", suspend=%d", req
->suspend
);
2293 dump_varargs_context( ", context=", cur_size
);
2296 static void dump_set_thread_context_reply( const struct set_thread_context_reply
*req
)
2298 fprintf( stderr
, " self=%d", req
->self
);
2301 static void dump_get_selector_entry_request( const struct get_selector_entry_request
*req
)
2303 fprintf( stderr
, " handle=%04x", req
->handle
);
2304 fprintf( stderr
, ", entry=%d", req
->entry
);
2307 static void dump_get_selector_entry_reply( const struct get_selector_entry_reply
*req
)
2309 fprintf( stderr
, " base=%08x", req
->base
);
2310 fprintf( stderr
, ", limit=%08x", req
->limit
);
2311 fprintf( stderr
, ", flags=%02x", req
->flags
);
2314 static void dump_add_atom_request( const struct add_atom_request
*req
)
2316 fprintf( stderr
, " table=%04x", req
->table
);
2317 dump_varargs_unicode_str( ", name=", cur_size
);
2320 static void dump_add_atom_reply( const struct add_atom_reply
*req
)
2322 fprintf( stderr
, " atom=%04x", req
->atom
);
2325 static void dump_delete_atom_request( const struct delete_atom_request
*req
)
2327 fprintf( stderr
, " table=%04x", req
->table
);
2328 fprintf( stderr
, ", atom=%04x", req
->atom
);
2331 static void dump_find_atom_request( const struct find_atom_request
*req
)
2333 fprintf( stderr
, " table=%04x", req
->table
);
2334 dump_varargs_unicode_str( ", name=", cur_size
);
2337 static void dump_find_atom_reply( const struct find_atom_reply
*req
)
2339 fprintf( stderr
, " atom=%04x", req
->atom
);
2342 static void dump_get_atom_information_request( const struct get_atom_information_request
*req
)
2344 fprintf( stderr
, " table=%04x", req
->table
);
2345 fprintf( stderr
, ", atom=%04x", req
->atom
);
2348 static void dump_get_atom_information_reply( const struct get_atom_information_reply
*req
)
2350 fprintf( stderr
, " count=%d", req
->count
);
2351 fprintf( stderr
, ", pinned=%d", req
->pinned
);
2352 fprintf( stderr
, ", total=%u", req
->total
);
2353 dump_varargs_unicode_str( ", name=", cur_size
);
2356 static void dump_set_atom_information_request( const struct set_atom_information_request
*req
)
2358 fprintf( stderr
, " table=%04x", req
->table
);
2359 fprintf( stderr
, ", atom=%04x", req
->atom
);
2360 fprintf( stderr
, ", pinned=%d", req
->pinned
);
2363 static void dump_empty_atom_table_request( const struct empty_atom_table_request
*req
)
2365 fprintf( stderr
, " table=%04x", req
->table
);
2366 fprintf( stderr
, ", if_pinned=%d", req
->if_pinned
);
2369 static void dump_init_atom_table_request( const struct init_atom_table_request
*req
)
2371 fprintf( stderr
, " entries=%d", req
->entries
);
2374 static void dump_init_atom_table_reply( const struct init_atom_table_reply
*req
)
2376 fprintf( stderr
, " table=%04x", req
->table
);
2379 static void dump_get_msg_queue_request( const struct get_msg_queue_request
*req
)
2383 static void dump_get_msg_queue_reply( const struct get_msg_queue_reply
*req
)
2385 fprintf( stderr
, " handle=%04x", req
->handle
);
2388 static void dump_set_queue_fd_request( const struct set_queue_fd_request
*req
)
2390 fprintf( stderr
, " handle=%04x", req
->handle
);
2393 static void dump_set_queue_mask_request( const struct set_queue_mask_request
*req
)
2395 fprintf( stderr
, " wake_mask=%08x", req
->wake_mask
);
2396 fprintf( stderr
, ", changed_mask=%08x", req
->changed_mask
);
2397 fprintf( stderr
, ", skip_wait=%d", req
->skip_wait
);
2400 static void dump_set_queue_mask_reply( const struct set_queue_mask_reply
*req
)
2402 fprintf( stderr
, " wake_bits=%08x", req
->wake_bits
);
2403 fprintf( stderr
, ", changed_bits=%08x", req
->changed_bits
);
2406 static void dump_get_queue_status_request( const struct get_queue_status_request
*req
)
2408 fprintf( stderr
, " clear=%d", req
->clear
);
2411 static void dump_get_queue_status_reply( const struct get_queue_status_reply
*req
)
2413 fprintf( stderr
, " wake_bits=%08x", req
->wake_bits
);
2414 fprintf( stderr
, ", changed_bits=%08x", req
->changed_bits
);
2417 static void dump_get_process_idle_event_request( const struct get_process_idle_event_request
*req
)
2419 fprintf( stderr
, " handle=%04x", req
->handle
);
2422 static void dump_get_process_idle_event_reply( const struct get_process_idle_event_reply
*req
)
2424 fprintf( stderr
, " event=%04x", req
->event
);
2427 static void dump_send_message_request( const struct send_message_request
*req
)
2429 fprintf( stderr
, " id=%04x", req
->id
);
2430 fprintf( stderr
, ", type=%d", req
->type
);
2431 fprintf( stderr
, ", flags=%d", req
->flags
);
2432 fprintf( stderr
, ", win=%08x", req
->win
);
2433 fprintf( stderr
, ", msg=%08x", req
->msg
);
2434 dump_uint64( ", wparam=", &req
->wparam
);
2435 dump_uint64( ", lparam=", &req
->lparam
);
2436 dump_timeout( ", timeout=", &req
->timeout
);
2437 dump_varargs_message_data( ", data=", cur_size
);
2440 static void dump_post_quit_message_request( const struct post_quit_message_request
*req
)
2442 fprintf( stderr
, " exit_code=%d", req
->exit_code
);
2445 static void dump_send_hardware_message_request( const struct send_hardware_message_request
*req
)
2447 fprintf( stderr
, " win=%08x", req
->win
);
2448 dump_hw_input( ", input=", &req
->input
);
2449 fprintf( stderr
, ", flags=%08x", req
->flags
);
2452 static void dump_send_hardware_message_reply( const struct send_hardware_message_reply
*req
)
2454 fprintf( stderr
, " wait=%d", req
->wait
);
2457 static void dump_get_message_request( const struct get_message_request
*req
)
2459 fprintf( stderr
, " flags=%08x", req
->flags
);
2460 fprintf( stderr
, ", get_win=%08x", req
->get_win
);
2461 fprintf( stderr
, ", get_first=%08x", req
->get_first
);
2462 fprintf( stderr
, ", get_last=%08x", req
->get_last
);
2463 fprintf( stderr
, ", hw_id=%08x", req
->hw_id
);
2464 fprintf( stderr
, ", wake_mask=%08x", req
->wake_mask
);
2465 fprintf( stderr
, ", changed_mask=%08x", req
->changed_mask
);
2468 static void dump_get_message_reply( const struct get_message_reply
*req
)
2470 fprintf( stderr
, " win=%08x", req
->win
);
2471 fprintf( stderr
, ", msg=%08x", req
->msg
);
2472 dump_uint64( ", wparam=", &req
->wparam
);
2473 dump_uint64( ", lparam=", &req
->lparam
);
2474 fprintf( stderr
, ", type=%d", req
->type
);
2475 fprintf( stderr
, ", time=%08x", req
->time
);
2476 fprintf( stderr
, ", active_hooks=%08x", req
->active_hooks
);
2477 fprintf( stderr
, ", total=%u", req
->total
);
2478 dump_varargs_message_data( ", data=", cur_size
);
2481 static void dump_reply_message_request( const struct reply_message_request
*req
)
2483 fprintf( stderr
, " remove=%d", req
->remove
);
2484 dump_uint64( ", result=", &req
->result
);
2485 dump_varargs_bytes( ", data=", cur_size
);
2488 static void dump_accept_hardware_message_request( const struct accept_hardware_message_request
*req
)
2490 fprintf( stderr
, " hw_id=%08x", req
->hw_id
);
2491 fprintf( stderr
, ", remove=%d", req
->remove
);
2492 fprintf( stderr
, ", new_win=%08x", req
->new_win
);
2495 static void dump_get_message_reply_request( const struct get_message_reply_request
*req
)
2497 fprintf( stderr
, " cancel=%d", req
->cancel
);
2500 static void dump_get_message_reply_reply( const struct get_message_reply_reply
*req
)
2502 dump_uint64( " result=", &req
->result
);
2503 dump_varargs_bytes( ", data=", cur_size
);
2506 static void dump_set_win_timer_request( const struct set_win_timer_request
*req
)
2508 fprintf( stderr
, " win=%08x", req
->win
);
2509 fprintf( stderr
, ", msg=%08x", req
->msg
);
2510 fprintf( stderr
, ", rate=%08x", req
->rate
);
2511 dump_uint64( ", id=", &req
->id
);
2512 dump_uint64( ", lparam=", &req
->lparam
);
2515 static void dump_set_win_timer_reply( const struct set_win_timer_reply
*req
)
2517 dump_uint64( " id=", &req
->id
);
2520 static void dump_kill_win_timer_request( const struct kill_win_timer_request
*req
)
2522 fprintf( stderr
, " win=%08x", req
->win
);
2523 dump_uint64( ", id=", &req
->id
);
2524 fprintf( stderr
, ", msg=%08x", req
->msg
);
2527 static void dump_is_window_hung_request( const struct is_window_hung_request
*req
)
2529 fprintf( stderr
, " win=%08x", req
->win
);
2532 static void dump_is_window_hung_reply( const struct is_window_hung_reply
*req
)
2534 fprintf( stderr
, " is_hung=%d", req
->is_hung
);
2537 static void dump_get_serial_info_request( const struct get_serial_info_request
*req
)
2539 fprintf( stderr
, " handle=%04x", req
->handle
);
2542 static void dump_get_serial_info_reply( const struct get_serial_info_reply
*req
)
2544 fprintf( stderr
, " readinterval=%08x", req
->readinterval
);
2545 fprintf( stderr
, ", readconst=%08x", req
->readconst
);
2546 fprintf( stderr
, ", readmult=%08x", req
->readmult
);
2547 fprintf( stderr
, ", writeconst=%08x", req
->writeconst
);
2548 fprintf( stderr
, ", writemult=%08x", req
->writemult
);
2549 fprintf( stderr
, ", eventmask=%08x", req
->eventmask
);
2552 static void dump_set_serial_info_request( const struct set_serial_info_request
*req
)
2554 fprintf( stderr
, " handle=%04x", req
->handle
);
2555 fprintf( stderr
, ", flags=%d", req
->flags
);
2556 fprintf( stderr
, ", readinterval=%08x", req
->readinterval
);
2557 fprintf( stderr
, ", readconst=%08x", req
->readconst
);
2558 fprintf( stderr
, ", readmult=%08x", req
->readmult
);
2559 fprintf( stderr
, ", writeconst=%08x", req
->writeconst
);
2560 fprintf( stderr
, ", writemult=%08x", req
->writemult
);
2561 fprintf( stderr
, ", eventmask=%08x", req
->eventmask
);
2564 static void dump_register_async_request( const struct register_async_request
*req
)
2566 fprintf( stderr
, " type=%d", req
->type
);
2567 dump_async_data( ", async=", &req
->async
);
2568 fprintf( stderr
, ", count=%d", req
->count
);
2571 static void dump_cancel_async_request( const struct cancel_async_request
*req
)
2573 fprintf( stderr
, " handle=%04x", req
->handle
);
2574 dump_uint64( ", iosb=", &req
->iosb
);
2575 fprintf( stderr
, ", only_thread=%d", req
->only_thread
);
2578 static void dump_ioctl_request( const struct ioctl_request
*req
)
2580 dump_ioctl_code( " code=", &req
->code
);
2581 dump_async_data( ", async=", &req
->async
);
2582 fprintf( stderr
, ", blocking=%d", req
->blocking
);
2583 dump_varargs_bytes( ", in_data=", cur_size
);
2586 static void dump_ioctl_reply( const struct ioctl_reply
*req
)
2588 fprintf( stderr
, " wait=%04x", req
->wait
);
2589 fprintf( stderr
, ", options=%08x", req
->options
);
2590 dump_varargs_bytes( ", out_data=", cur_size
);
2593 static void dump_get_ioctl_result_request( const struct get_ioctl_result_request
*req
)
2595 fprintf( stderr
, " handle=%04x", req
->handle
);
2596 dump_uint64( ", user_arg=", &req
->user_arg
);
2599 static void dump_get_ioctl_result_reply( const struct get_ioctl_result_reply
*req
)
2601 dump_varargs_bytes( " out_data=", cur_size
);
2604 static void dump_create_named_pipe_request( const struct create_named_pipe_request
*req
)
2606 fprintf( stderr
, " access=%08x", req
->access
);
2607 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
2608 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
2609 fprintf( stderr
, ", options=%08x", req
->options
);
2610 fprintf( stderr
, ", maxinstances=%08x", req
->maxinstances
);
2611 fprintf( stderr
, ", outsize=%08x", req
->outsize
);
2612 fprintf( stderr
, ", insize=%08x", req
->insize
);
2613 dump_timeout( ", timeout=", &req
->timeout
);
2614 fprintf( stderr
, ", flags=%08x", req
->flags
);
2615 dump_varargs_unicode_str( ", name=", cur_size
);
2618 static void dump_create_named_pipe_reply( const struct create_named_pipe_reply
*req
)
2620 fprintf( stderr
, " handle=%04x", req
->handle
);
2623 static void dump_get_named_pipe_info_request( const struct get_named_pipe_info_request
*req
)
2625 fprintf( stderr
, " handle=%04x", req
->handle
);
2628 static void dump_get_named_pipe_info_reply( const struct get_named_pipe_info_reply
*req
)
2630 fprintf( stderr
, " flags=%08x", req
->flags
);
2631 fprintf( stderr
, ", maxinstances=%08x", req
->maxinstances
);
2632 fprintf( stderr
, ", instances=%08x", req
->instances
);
2633 fprintf( stderr
, ", outsize=%08x", req
->outsize
);
2634 fprintf( stderr
, ", insize=%08x", req
->insize
);
2637 static void dump_create_window_request( const struct create_window_request
*req
)
2639 fprintf( stderr
, " parent=%08x", req
->parent
);
2640 fprintf( stderr
, ", owner=%08x", req
->owner
);
2641 fprintf( stderr
, ", atom=%04x", req
->atom
);
2642 dump_uint64( ", instance=", &req
->instance
);
2643 dump_varargs_unicode_str( ", class=", cur_size
);
2646 static void dump_create_window_reply( const struct create_window_reply
*req
)
2648 fprintf( stderr
, " handle=%08x", req
->handle
);
2649 fprintf( stderr
, ", parent=%08x", req
->parent
);
2650 fprintf( stderr
, ", owner=%08x", req
->owner
);
2651 fprintf( stderr
, ", extra=%d", req
->extra
);
2652 dump_uint64( ", class_ptr=", &req
->class_ptr
);
2655 static void dump_destroy_window_request( const struct destroy_window_request
*req
)
2657 fprintf( stderr
, " handle=%08x", req
->handle
);
2660 static void dump_get_desktop_window_request( const struct get_desktop_window_request
*req
)
2662 fprintf( stderr
, " force=%d", req
->force
);
2665 static void dump_get_desktop_window_reply( const struct get_desktop_window_reply
*req
)
2667 fprintf( stderr
, " top_window=%08x", req
->top_window
);
2668 fprintf( stderr
, ", msg_window=%08x", req
->msg_window
);
2671 static void dump_set_window_owner_request( const struct set_window_owner_request
*req
)
2673 fprintf( stderr
, " handle=%08x", req
->handle
);
2674 fprintf( stderr
, ", owner=%08x", req
->owner
);
2677 static void dump_set_window_owner_reply( const struct set_window_owner_reply
*req
)
2679 fprintf( stderr
, " full_owner=%08x", req
->full_owner
);
2680 fprintf( stderr
, ", prev_owner=%08x", req
->prev_owner
);
2683 static void dump_get_window_info_request( const struct get_window_info_request
*req
)
2685 fprintf( stderr
, " handle=%08x", req
->handle
);
2688 static void dump_get_window_info_reply( const struct get_window_info_reply
*req
)
2690 fprintf( stderr
, " full_handle=%08x", req
->full_handle
);
2691 fprintf( stderr
, ", last_active=%08x", req
->last_active
);
2692 fprintf( stderr
, ", pid=%04x", req
->pid
);
2693 fprintf( stderr
, ", tid=%04x", req
->tid
);
2694 fprintf( stderr
, ", atom=%04x", req
->atom
);
2695 fprintf( stderr
, ", is_unicode=%d", req
->is_unicode
);
2698 static void dump_set_window_info_request( const struct set_window_info_request
*req
)
2700 fprintf( stderr
, " flags=%04x", req
->flags
);
2701 fprintf( stderr
, ", is_unicode=%d", req
->is_unicode
);
2702 fprintf( stderr
, ", handle=%08x", req
->handle
);
2703 fprintf( stderr
, ", style=%08x", req
->style
);
2704 fprintf( stderr
, ", ex_style=%08x", req
->ex_style
);
2705 fprintf( stderr
, ", id=%08x", req
->id
);
2706 dump_uint64( ", instance=", &req
->instance
);
2707 dump_uint64( ", user_data=", &req
->user_data
);
2708 fprintf( stderr
, ", extra_offset=%d", req
->extra_offset
);
2709 fprintf( stderr
, ", extra_size=%u", req
->extra_size
);
2710 dump_uint64( ", extra_value=", &req
->extra_value
);
2713 static void dump_set_window_info_reply( const struct set_window_info_reply
*req
)
2715 fprintf( stderr
, " old_style=%08x", req
->old_style
);
2716 fprintf( stderr
, ", old_ex_style=%08x", req
->old_ex_style
);
2717 dump_uint64( ", old_instance=", &req
->old_instance
);
2718 dump_uint64( ", old_user_data=", &req
->old_user_data
);
2719 dump_uint64( ", old_extra_value=", &req
->old_extra_value
);
2720 fprintf( stderr
, ", old_id=%08x", req
->old_id
);
2723 static void dump_set_parent_request( const struct set_parent_request
*req
)
2725 fprintf( stderr
, " handle=%08x", req
->handle
);
2726 fprintf( stderr
, ", parent=%08x", req
->parent
);
2729 static void dump_set_parent_reply( const struct set_parent_reply
*req
)
2731 fprintf( stderr
, " old_parent=%08x", req
->old_parent
);
2732 fprintf( stderr
, ", full_parent=%08x", req
->full_parent
);
2735 static void dump_get_window_parents_request( const struct get_window_parents_request
*req
)
2737 fprintf( stderr
, " handle=%08x", req
->handle
);
2740 static void dump_get_window_parents_reply( const struct get_window_parents_reply
*req
)
2742 fprintf( stderr
, " count=%d", req
->count
);
2743 dump_varargs_user_handles( ", parents=", cur_size
);
2746 static void dump_get_window_children_request( const struct get_window_children_request
*req
)
2748 fprintf( stderr
, " desktop=%04x", req
->desktop
);
2749 fprintf( stderr
, ", parent=%08x", req
->parent
);
2750 fprintf( stderr
, ", atom=%04x", req
->atom
);
2751 fprintf( stderr
, ", tid=%04x", req
->tid
);
2752 dump_varargs_unicode_str( ", class=", cur_size
);
2755 static void dump_get_window_children_reply( const struct get_window_children_reply
*req
)
2757 fprintf( stderr
, " count=%d", req
->count
);
2758 dump_varargs_user_handles( ", children=", cur_size
);
2761 static void dump_get_window_children_from_point_request( const struct get_window_children_from_point_request
*req
)
2763 fprintf( stderr
, " parent=%08x", req
->parent
);
2764 fprintf( stderr
, ", x=%d", req
->x
);
2765 fprintf( stderr
, ", y=%d", req
->y
);
2768 static void dump_get_window_children_from_point_reply( const struct get_window_children_from_point_reply
*req
)
2770 fprintf( stderr
, " count=%d", req
->count
);
2771 dump_varargs_user_handles( ", children=", cur_size
);
2774 static void dump_get_window_tree_request( const struct get_window_tree_request
*req
)
2776 fprintf( stderr
, " handle=%08x", req
->handle
);
2779 static void dump_get_window_tree_reply( const struct get_window_tree_reply
*req
)
2781 fprintf( stderr
, " parent=%08x", req
->parent
);
2782 fprintf( stderr
, ", owner=%08x", req
->owner
);
2783 fprintf( stderr
, ", next_sibling=%08x", req
->next_sibling
);
2784 fprintf( stderr
, ", prev_sibling=%08x", req
->prev_sibling
);
2785 fprintf( stderr
, ", first_sibling=%08x", req
->first_sibling
);
2786 fprintf( stderr
, ", last_sibling=%08x", req
->last_sibling
);
2787 fprintf( stderr
, ", first_child=%08x", req
->first_child
);
2788 fprintf( stderr
, ", last_child=%08x", req
->last_child
);
2791 static void dump_set_window_pos_request( const struct set_window_pos_request
*req
)
2793 fprintf( stderr
, " flags=%08x", req
->flags
);
2794 fprintf( stderr
, ", handle=%08x", req
->handle
);
2795 fprintf( stderr
, ", previous=%08x", req
->previous
);
2796 dump_rectangle( ", window=", &req
->window
);
2797 dump_rectangle( ", client=", &req
->client
);
2798 dump_varargs_rectangles( ", valid=", cur_size
);
2801 static void dump_set_window_pos_reply( const struct set_window_pos_reply
*req
)
2803 fprintf( stderr
, " new_style=%08x", req
->new_style
);
2804 fprintf( stderr
, ", new_ex_style=%08x", req
->new_ex_style
);
2807 static void dump_get_window_rectangles_request( const struct get_window_rectangles_request
*req
)
2809 fprintf( stderr
, " handle=%08x", req
->handle
);
2810 fprintf( stderr
, ", relative=%d", req
->relative
);
2813 static void dump_get_window_rectangles_reply( const struct get_window_rectangles_reply
*req
)
2815 dump_rectangle( " window=", &req
->window
);
2816 dump_rectangle( ", visible=", &req
->visible
);
2817 dump_rectangle( ", client=", &req
->client
);
2820 static void dump_get_window_text_request( const struct get_window_text_request
*req
)
2822 fprintf( stderr
, " handle=%08x", req
->handle
);
2825 static void dump_get_window_text_reply( const struct get_window_text_reply
*req
)
2827 dump_varargs_unicode_str( " text=", cur_size
);
2830 static void dump_set_window_text_request( const struct set_window_text_request
*req
)
2832 fprintf( stderr
, " handle=%08x", req
->handle
);
2833 dump_varargs_unicode_str( ", text=", cur_size
);
2836 static void dump_get_windows_offset_request( const struct get_windows_offset_request
*req
)
2838 fprintf( stderr
, " from=%08x", req
->from
);
2839 fprintf( stderr
, ", to=%08x", req
->to
);
2842 static void dump_get_windows_offset_reply( const struct get_windows_offset_reply
*req
)
2844 fprintf( stderr
, " x=%d", req
->x
);
2845 fprintf( stderr
, ", y=%d", req
->y
);
2846 fprintf( stderr
, ", mirror=%d", req
->mirror
);
2849 static void dump_get_visible_region_request( const struct get_visible_region_request
*req
)
2851 fprintf( stderr
, " window=%08x", req
->window
);
2852 fprintf( stderr
, ", flags=%08x", req
->flags
);
2855 static void dump_get_visible_region_reply( const struct get_visible_region_reply
*req
)
2857 fprintf( stderr
, " top_win=%08x", req
->top_win
);
2858 dump_rectangle( ", top_rect=", &req
->top_rect
);
2859 dump_rectangle( ", win_rect=", &req
->win_rect
);
2860 fprintf( stderr
, ", total_size=%u", req
->total_size
);
2861 dump_varargs_rectangles( ", region=", cur_size
);
2864 static void dump_get_window_region_request( const struct get_window_region_request
*req
)
2866 fprintf( stderr
, " window=%08x", req
->window
);
2869 static void dump_get_window_region_reply( const struct get_window_region_reply
*req
)
2871 fprintf( stderr
, " total_size=%u", req
->total_size
);
2872 dump_varargs_rectangles( ", region=", cur_size
);
2875 static void dump_set_window_region_request( const struct set_window_region_request
*req
)
2877 fprintf( stderr
, " window=%08x", req
->window
);
2878 fprintf( stderr
, ", redraw=%d", req
->redraw
);
2879 dump_varargs_rectangles( ", region=", cur_size
);
2882 static void dump_get_update_region_request( const struct get_update_region_request
*req
)
2884 fprintf( stderr
, " window=%08x", req
->window
);
2885 fprintf( stderr
, ", from_child=%08x", req
->from_child
);
2886 fprintf( stderr
, ", flags=%08x", req
->flags
);
2889 static void dump_get_update_region_reply( const struct get_update_region_reply
*req
)
2891 fprintf( stderr
, " child=%08x", req
->child
);
2892 fprintf( stderr
, ", flags=%08x", req
->flags
);
2893 fprintf( stderr
, ", total_size=%u", req
->total_size
);
2894 dump_varargs_rectangles( ", region=", cur_size
);
2897 static void dump_update_window_zorder_request( const struct update_window_zorder_request
*req
)
2899 fprintf( stderr
, " window=%08x", req
->window
);
2900 dump_rectangle( ", rect=", &req
->rect
);
2903 static void dump_redraw_window_request( const struct redraw_window_request
*req
)
2905 fprintf( stderr
, " window=%08x", req
->window
);
2906 fprintf( stderr
, ", flags=%08x", req
->flags
);
2907 dump_varargs_rectangles( ", region=", cur_size
);
2910 static void dump_set_window_property_request( const struct set_window_property_request
*req
)
2912 fprintf( stderr
, " window=%08x", req
->window
);
2913 dump_uint64( ", data=", &req
->data
);
2914 fprintf( stderr
, ", atom=%04x", req
->atom
);
2915 dump_varargs_unicode_str( ", name=", cur_size
);
2918 static void dump_remove_window_property_request( const struct remove_window_property_request
*req
)
2920 fprintf( stderr
, " window=%08x", req
->window
);
2921 fprintf( stderr
, ", atom=%04x", req
->atom
);
2922 dump_varargs_unicode_str( ", name=", cur_size
);
2925 static void dump_remove_window_property_reply( const struct remove_window_property_reply
*req
)
2927 dump_uint64( " data=", &req
->data
);
2930 static void dump_get_window_property_request( const struct get_window_property_request
*req
)
2932 fprintf( stderr
, " window=%08x", req
->window
);
2933 fprintf( stderr
, ", atom=%04x", req
->atom
);
2934 dump_varargs_unicode_str( ", name=", cur_size
);
2937 static void dump_get_window_property_reply( const struct get_window_property_reply
*req
)
2939 dump_uint64( " data=", &req
->data
);
2942 static void dump_get_window_properties_request( const struct get_window_properties_request
*req
)
2944 fprintf( stderr
, " window=%08x", req
->window
);
2947 static void dump_get_window_properties_reply( const struct get_window_properties_reply
*req
)
2949 fprintf( stderr
, " total=%d", req
->total
);
2950 dump_varargs_properties( ", props=", cur_size
);
2953 static void dump_create_winstation_request( const struct create_winstation_request
*req
)
2955 fprintf( stderr
, " flags=%08x", req
->flags
);
2956 fprintf( stderr
, ", access=%08x", req
->access
);
2957 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
2958 dump_varargs_unicode_str( ", name=", cur_size
);
2961 static void dump_create_winstation_reply( const struct create_winstation_reply
*req
)
2963 fprintf( stderr
, " handle=%04x", req
->handle
);
2966 static void dump_open_winstation_request( const struct open_winstation_request
*req
)
2968 fprintf( stderr
, " access=%08x", req
->access
);
2969 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
2970 dump_varargs_unicode_str( ", name=", cur_size
);
2973 static void dump_open_winstation_reply( const struct open_winstation_reply
*req
)
2975 fprintf( stderr
, " handle=%04x", req
->handle
);
2978 static void dump_close_winstation_request( const struct close_winstation_request
*req
)
2980 fprintf( stderr
, " handle=%04x", req
->handle
);
2983 static void dump_get_process_winstation_request( const struct get_process_winstation_request
*req
)
2987 static void dump_get_process_winstation_reply( const struct get_process_winstation_reply
*req
)
2989 fprintf( stderr
, " handle=%04x", req
->handle
);
2992 static void dump_set_process_winstation_request( const struct set_process_winstation_request
*req
)
2994 fprintf( stderr
, " handle=%04x", req
->handle
);
2997 static void dump_enum_winstation_request( const struct enum_winstation_request
*req
)
2999 fprintf( stderr
, " index=%08x", req
->index
);
3002 static void dump_enum_winstation_reply( const struct enum_winstation_reply
*req
)
3004 fprintf( stderr
, " next=%08x", req
->next
);
3005 dump_varargs_unicode_str( ", name=", cur_size
);
3008 static void dump_create_desktop_request( const struct create_desktop_request
*req
)
3010 fprintf( stderr
, " flags=%08x", req
->flags
);
3011 fprintf( stderr
, ", access=%08x", req
->access
);
3012 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3013 dump_varargs_unicode_str( ", name=", cur_size
);
3016 static void dump_create_desktop_reply( const struct create_desktop_reply
*req
)
3018 fprintf( stderr
, " handle=%04x", req
->handle
);
3021 static void dump_open_desktop_request( const struct open_desktop_request
*req
)
3023 fprintf( stderr
, " winsta=%04x", req
->winsta
);
3024 fprintf( stderr
, ", flags=%08x", req
->flags
);
3025 fprintf( stderr
, ", access=%08x", req
->access
);
3026 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3027 dump_varargs_unicode_str( ", name=", cur_size
);
3030 static void dump_open_desktop_reply( const struct open_desktop_reply
*req
)
3032 fprintf( stderr
, " handle=%04x", req
->handle
);
3035 static void dump_close_desktop_request( const struct close_desktop_request
*req
)
3037 fprintf( stderr
, " handle=%04x", req
->handle
);
3040 static void dump_get_thread_desktop_request( const struct get_thread_desktop_request
*req
)
3042 fprintf( stderr
, " tid=%04x", req
->tid
);
3045 static void dump_get_thread_desktop_reply( const struct get_thread_desktop_reply
*req
)
3047 fprintf( stderr
, " handle=%04x", req
->handle
);
3050 static void dump_set_thread_desktop_request( const struct set_thread_desktop_request
*req
)
3052 fprintf( stderr
, " handle=%04x", req
->handle
);
3055 static void dump_enum_desktop_request( const struct enum_desktop_request
*req
)
3057 fprintf( stderr
, " winstation=%04x", req
->winstation
);
3058 fprintf( stderr
, ", index=%08x", req
->index
);
3061 static void dump_enum_desktop_reply( const struct enum_desktop_reply
*req
)
3063 fprintf( stderr
, " next=%08x", req
->next
);
3064 dump_varargs_unicode_str( ", name=", cur_size
);
3067 static void dump_set_user_object_info_request( const struct set_user_object_info_request
*req
)
3069 fprintf( stderr
, " handle=%04x", req
->handle
);
3070 fprintf( stderr
, ", flags=%08x", req
->flags
);
3071 fprintf( stderr
, ", obj_flags=%08x", req
->obj_flags
);
3074 static void dump_set_user_object_info_reply( const struct set_user_object_info_reply
*req
)
3076 fprintf( stderr
, " is_desktop=%d", req
->is_desktop
);
3077 fprintf( stderr
, ", old_obj_flags=%08x", req
->old_obj_flags
);
3078 dump_varargs_unicode_str( ", name=", cur_size
);
3081 static void dump_attach_thread_input_request( const struct attach_thread_input_request
*req
)
3083 fprintf( stderr
, " tid_from=%04x", req
->tid_from
);
3084 fprintf( stderr
, ", tid_to=%04x", req
->tid_to
);
3085 fprintf( stderr
, ", attach=%d", req
->attach
);
3088 static void dump_get_thread_input_request( const struct get_thread_input_request
*req
)
3090 fprintf( stderr
, " tid=%04x", req
->tid
);
3093 static void dump_get_thread_input_reply( const struct get_thread_input_reply
*req
)
3095 fprintf( stderr
, " focus=%08x", req
->focus
);
3096 fprintf( stderr
, ", capture=%08x", req
->capture
);
3097 fprintf( stderr
, ", active=%08x", req
->active
);
3098 fprintf( stderr
, ", foreground=%08x", req
->foreground
);
3099 fprintf( stderr
, ", menu_owner=%08x", req
->menu_owner
);
3100 fprintf( stderr
, ", move_size=%08x", req
->move_size
);
3101 fprintf( stderr
, ", caret=%08x", req
->caret
);
3102 fprintf( stderr
, ", cursor=%08x", req
->cursor
);
3103 fprintf( stderr
, ", show_count=%d", req
->show_count
);
3104 dump_rectangle( ", rect=", &req
->rect
);
3107 static void dump_get_last_input_time_request( const struct get_last_input_time_request
*req
)
3111 static void dump_get_last_input_time_reply( const struct get_last_input_time_reply
*req
)
3113 fprintf( stderr
, " time=%08x", req
->time
);
3116 static void dump_get_key_state_request( const struct get_key_state_request
*req
)
3118 fprintf( stderr
, " tid=%04x", req
->tid
);
3119 fprintf( stderr
, ", key=%d", req
->key
);
3122 static void dump_get_key_state_reply( const struct get_key_state_reply
*req
)
3124 fprintf( stderr
, " state=%02x", req
->state
);
3125 dump_varargs_bytes( ", keystate=", cur_size
);
3128 static void dump_set_key_state_request( const struct set_key_state_request
*req
)
3130 fprintf( stderr
, " tid=%04x", req
->tid
);
3131 dump_varargs_bytes( ", keystate=", cur_size
);
3134 static void dump_set_foreground_window_request( const struct set_foreground_window_request
*req
)
3136 fprintf( stderr
, " handle=%08x", req
->handle
);
3139 static void dump_set_foreground_window_reply( const struct set_foreground_window_reply
*req
)
3141 fprintf( stderr
, " previous=%08x", req
->previous
);
3142 fprintf( stderr
, ", send_msg_old=%d", req
->send_msg_old
);
3143 fprintf( stderr
, ", send_msg_new=%d", req
->send_msg_new
);
3146 static void dump_set_focus_window_request( const struct set_focus_window_request
*req
)
3148 fprintf( stderr
, " handle=%08x", req
->handle
);
3151 static void dump_set_focus_window_reply( const struct set_focus_window_reply
*req
)
3153 fprintf( stderr
, " previous=%08x", req
->previous
);
3156 static void dump_set_active_window_request( const struct set_active_window_request
*req
)
3158 fprintf( stderr
, " handle=%08x", req
->handle
);
3161 static void dump_set_active_window_reply( const struct set_active_window_reply
*req
)
3163 fprintf( stderr
, " previous=%08x", req
->previous
);
3166 static void dump_set_capture_window_request( const struct set_capture_window_request
*req
)
3168 fprintf( stderr
, " handle=%08x", req
->handle
);
3169 fprintf( stderr
, ", flags=%08x", req
->flags
);
3172 static void dump_set_capture_window_reply( const struct set_capture_window_reply
*req
)
3174 fprintf( stderr
, " previous=%08x", req
->previous
);
3175 fprintf( stderr
, ", full_handle=%08x", req
->full_handle
);
3178 static void dump_set_caret_window_request( const struct set_caret_window_request
*req
)
3180 fprintf( stderr
, " handle=%08x", req
->handle
);
3181 fprintf( stderr
, ", width=%d", req
->width
);
3182 fprintf( stderr
, ", height=%d", req
->height
);
3185 static void dump_set_caret_window_reply( const struct set_caret_window_reply
*req
)
3187 fprintf( stderr
, " previous=%08x", req
->previous
);
3188 dump_rectangle( ", old_rect=", &req
->old_rect
);
3189 fprintf( stderr
, ", old_hide=%d", req
->old_hide
);
3190 fprintf( stderr
, ", old_state=%d", req
->old_state
);
3193 static void dump_set_caret_info_request( const struct set_caret_info_request
*req
)
3195 fprintf( stderr
, " flags=%08x", req
->flags
);
3196 fprintf( stderr
, ", handle=%08x", req
->handle
);
3197 fprintf( stderr
, ", x=%d", req
->x
);
3198 fprintf( stderr
, ", y=%d", req
->y
);
3199 fprintf( stderr
, ", hide=%d", req
->hide
);
3200 fprintf( stderr
, ", state=%d", req
->state
);
3203 static void dump_set_caret_info_reply( const struct set_caret_info_reply
*req
)
3205 fprintf( stderr
, " full_handle=%08x", req
->full_handle
);
3206 dump_rectangle( ", old_rect=", &req
->old_rect
);
3207 fprintf( stderr
, ", old_hide=%d", req
->old_hide
);
3208 fprintf( stderr
, ", old_state=%d", req
->old_state
);
3211 static void dump_set_hook_request( const struct set_hook_request
*req
)
3213 fprintf( stderr
, " id=%d", req
->id
);
3214 fprintf( stderr
, ", pid=%04x", req
->pid
);
3215 fprintf( stderr
, ", tid=%04x", req
->tid
);
3216 fprintf( stderr
, ", event_min=%d", req
->event_min
);
3217 fprintf( stderr
, ", event_max=%d", req
->event_max
);
3218 dump_uint64( ", proc=", &req
->proc
);
3219 fprintf( stderr
, ", flags=%d", req
->flags
);
3220 fprintf( stderr
, ", unicode=%d", req
->unicode
);
3221 dump_varargs_unicode_str( ", module=", cur_size
);
3224 static void dump_set_hook_reply( const struct set_hook_reply
*req
)
3226 fprintf( stderr
, " handle=%08x", req
->handle
);
3227 fprintf( stderr
, ", active_hooks=%08x", req
->active_hooks
);
3230 static void dump_remove_hook_request( const struct remove_hook_request
*req
)
3232 fprintf( stderr
, " handle=%08x", req
->handle
);
3233 dump_uint64( ", proc=", &req
->proc
);
3234 fprintf( stderr
, ", id=%d", req
->id
);
3237 static void dump_remove_hook_reply( const struct remove_hook_reply
*req
)
3239 fprintf( stderr
, " active_hooks=%08x", req
->active_hooks
);
3242 static void dump_start_hook_chain_request( const struct start_hook_chain_request
*req
)
3244 fprintf( stderr
, " id=%d", req
->id
);
3245 fprintf( stderr
, ", event=%d", req
->event
);
3246 fprintf( stderr
, ", window=%08x", req
->window
);
3247 fprintf( stderr
, ", object_id=%d", req
->object_id
);
3248 fprintf( stderr
, ", child_id=%d", req
->child_id
);
3251 static void dump_start_hook_chain_reply( const struct start_hook_chain_reply
*req
)
3253 fprintf( stderr
, " handle=%08x", req
->handle
);
3254 fprintf( stderr
, ", pid=%04x", req
->pid
);
3255 fprintf( stderr
, ", tid=%04x", req
->tid
);
3256 fprintf( stderr
, ", unicode=%d", req
->unicode
);
3257 dump_uint64( ", proc=", &req
->proc
);
3258 fprintf( stderr
, ", active_hooks=%08x", req
->active_hooks
);
3259 dump_varargs_unicode_str( ", module=", cur_size
);
3262 static void dump_finish_hook_chain_request( const struct finish_hook_chain_request
*req
)
3264 fprintf( stderr
, " id=%d", req
->id
);
3267 static void dump_get_hook_info_request( const struct get_hook_info_request
*req
)
3269 fprintf( stderr
, " handle=%08x", req
->handle
);
3270 fprintf( stderr
, ", get_next=%d", req
->get_next
);
3271 fprintf( stderr
, ", event=%d", req
->event
);
3272 fprintf( stderr
, ", window=%08x", req
->window
);
3273 fprintf( stderr
, ", object_id=%d", req
->object_id
);
3274 fprintf( stderr
, ", child_id=%d", req
->child_id
);
3277 static void dump_get_hook_info_reply( const struct get_hook_info_reply
*req
)
3279 fprintf( stderr
, " handle=%08x", req
->handle
);
3280 fprintf( stderr
, ", id=%d", req
->id
);
3281 fprintf( stderr
, ", pid=%04x", req
->pid
);
3282 fprintf( stderr
, ", tid=%04x", req
->tid
);
3283 dump_uint64( ", proc=", &req
->proc
);
3284 fprintf( stderr
, ", unicode=%d", req
->unicode
);
3285 dump_varargs_unicode_str( ", module=", cur_size
);
3288 static void dump_create_class_request( const struct create_class_request
*req
)
3290 fprintf( stderr
, " local=%d", req
->local
);
3291 fprintf( stderr
, ", atom=%04x", req
->atom
);
3292 fprintf( stderr
, ", style=%08x", req
->style
);
3293 dump_uint64( ", instance=", &req
->instance
);
3294 fprintf( stderr
, ", extra=%d", req
->extra
);
3295 fprintf( stderr
, ", win_extra=%d", req
->win_extra
);
3296 dump_uint64( ", client_ptr=", &req
->client_ptr
);
3297 dump_varargs_unicode_str( ", name=", cur_size
);
3300 static void dump_create_class_reply( const struct create_class_reply
*req
)
3302 fprintf( stderr
, " atom=%04x", req
->atom
);
3305 static void dump_destroy_class_request( const struct destroy_class_request
*req
)
3307 fprintf( stderr
, " atom=%04x", req
->atom
);
3308 dump_uint64( ", instance=", &req
->instance
);
3309 dump_varargs_unicode_str( ", name=", cur_size
);
3312 static void dump_destroy_class_reply( const struct destroy_class_reply
*req
)
3314 dump_uint64( " client_ptr=", &req
->client_ptr
);
3317 static void dump_set_class_info_request( const struct set_class_info_request
*req
)
3319 fprintf( stderr
, " window=%08x", req
->window
);
3320 fprintf( stderr
, ", flags=%08x", req
->flags
);
3321 fprintf( stderr
, ", atom=%04x", req
->atom
);
3322 fprintf( stderr
, ", style=%08x", req
->style
);
3323 fprintf( stderr
, ", win_extra=%d", req
->win_extra
);
3324 dump_uint64( ", instance=", &req
->instance
);
3325 fprintf( stderr
, ", extra_offset=%d", req
->extra_offset
);
3326 fprintf( stderr
, ", extra_size=%u", req
->extra_size
);
3327 dump_uint64( ", extra_value=", &req
->extra_value
);
3330 static void dump_set_class_info_reply( const struct set_class_info_reply
*req
)
3332 fprintf( stderr
, " old_atom=%04x", req
->old_atom
);
3333 fprintf( stderr
, ", old_style=%08x", req
->old_style
);
3334 fprintf( stderr
, ", old_extra=%d", req
->old_extra
);
3335 fprintf( stderr
, ", old_win_extra=%d", req
->old_win_extra
);
3336 dump_uint64( ", old_instance=", &req
->old_instance
);
3337 dump_uint64( ", old_extra_value=", &req
->old_extra_value
);
3340 static void dump_set_clipboard_info_request( const struct set_clipboard_info_request
*req
)
3342 fprintf( stderr
, " flags=%08x", req
->flags
);
3343 fprintf( stderr
, ", clipboard=%08x", req
->clipboard
);
3344 fprintf( stderr
, ", owner=%08x", req
->owner
);
3345 fprintf( stderr
, ", viewer=%08x", req
->viewer
);
3346 fprintf( stderr
, ", seqno=%08x", req
->seqno
);
3349 static void dump_set_clipboard_info_reply( const struct set_clipboard_info_reply
*req
)
3351 fprintf( stderr
, " flags=%08x", req
->flags
);
3352 fprintf( stderr
, ", old_clipboard=%08x", req
->old_clipboard
);
3353 fprintf( stderr
, ", old_owner=%08x", req
->old_owner
);
3354 fprintf( stderr
, ", old_viewer=%08x", req
->old_viewer
);
3355 fprintf( stderr
, ", seqno=%08x", req
->seqno
);
3358 static void dump_open_token_request( const struct open_token_request
*req
)
3360 fprintf( stderr
, " handle=%04x", req
->handle
);
3361 fprintf( stderr
, ", access=%08x", req
->access
);
3362 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3363 fprintf( stderr
, ", flags=%08x", req
->flags
);
3366 static void dump_open_token_reply( const struct open_token_reply
*req
)
3368 fprintf( stderr
, " token=%04x", req
->token
);
3371 static void dump_set_global_windows_request( const struct set_global_windows_request
*req
)
3373 fprintf( stderr
, " flags=%08x", req
->flags
);
3374 fprintf( stderr
, ", shell_window=%08x", req
->shell_window
);
3375 fprintf( stderr
, ", shell_listview=%08x", req
->shell_listview
);
3376 fprintf( stderr
, ", progman_window=%08x", req
->progman_window
);
3377 fprintf( stderr
, ", taskman_window=%08x", req
->taskman_window
);
3380 static void dump_set_global_windows_reply( const struct set_global_windows_reply
*req
)
3382 fprintf( stderr
, " old_shell_window=%08x", req
->old_shell_window
);
3383 fprintf( stderr
, ", old_shell_listview=%08x", req
->old_shell_listview
);
3384 fprintf( stderr
, ", old_progman_window=%08x", req
->old_progman_window
);
3385 fprintf( stderr
, ", old_taskman_window=%08x", req
->old_taskman_window
);
3388 static void dump_adjust_token_privileges_request( const struct adjust_token_privileges_request
*req
)
3390 fprintf( stderr
, " handle=%04x", req
->handle
);
3391 fprintf( stderr
, ", disable_all=%d", req
->disable_all
);
3392 fprintf( stderr
, ", get_modified_state=%d", req
->get_modified_state
);
3393 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size
);
3396 static void dump_adjust_token_privileges_reply( const struct adjust_token_privileges_reply
*req
)
3398 fprintf( stderr
, " len=%08x", req
->len
);
3399 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size
);
3402 static void dump_get_token_privileges_request( const struct get_token_privileges_request
*req
)
3404 fprintf( stderr
, " handle=%04x", req
->handle
);
3407 static void dump_get_token_privileges_reply( const struct get_token_privileges_reply
*req
)
3409 fprintf( stderr
, " len=%08x", req
->len
);
3410 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size
);
3413 static void dump_check_token_privileges_request( const struct check_token_privileges_request
*req
)
3415 fprintf( stderr
, " handle=%04x", req
->handle
);
3416 fprintf( stderr
, ", all_required=%d", req
->all_required
);
3417 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size
);
3420 static void dump_check_token_privileges_reply( const struct check_token_privileges_reply
*req
)
3422 fprintf( stderr
, " has_privileges=%d", req
->has_privileges
);
3423 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size
);
3426 static void dump_duplicate_token_request( const struct duplicate_token_request
*req
)
3428 fprintf( stderr
, " handle=%04x", req
->handle
);
3429 fprintf( stderr
, ", access=%08x", req
->access
);
3430 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3431 fprintf( stderr
, ", primary=%d", req
->primary
);
3432 fprintf( stderr
, ", impersonation_level=%d", req
->impersonation_level
);
3435 static void dump_duplicate_token_reply( const struct duplicate_token_reply
*req
)
3437 fprintf( stderr
, " new_handle=%04x", req
->new_handle
);
3440 static void dump_access_check_request( const struct access_check_request
*req
)
3442 fprintf( stderr
, " handle=%04x", req
->handle
);
3443 fprintf( stderr
, ", desired_access=%08x", req
->desired_access
);
3444 fprintf( stderr
, ", mapping_read=%08x", req
->mapping_read
);
3445 fprintf( stderr
, ", mapping_write=%08x", req
->mapping_write
);
3446 fprintf( stderr
, ", mapping_execute=%08x", req
->mapping_execute
);
3447 fprintf( stderr
, ", mapping_all=%08x", req
->mapping_all
);
3448 dump_varargs_security_descriptor( ", sd=", cur_size
);
3451 static void dump_access_check_reply( const struct access_check_reply
*req
)
3453 fprintf( stderr
, " access_granted=%08x", req
->access_granted
);
3454 fprintf( stderr
, ", access_status=%08x", req
->access_status
);
3455 fprintf( stderr
, ", privileges_len=%08x", req
->privileges_len
);
3456 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size
);
3459 static void dump_get_token_sid_request( const struct get_token_sid_request
*req
)
3461 fprintf( stderr
, " handle=%04x", req
->handle
);
3462 fprintf( stderr
, ", which_sid=%08x", req
->which_sid
);
3465 static void dump_get_token_sid_reply( const struct get_token_sid_reply
*req
)
3467 fprintf( stderr
, " sid_len=%u", req
->sid_len
);
3468 dump_varargs_SID( ", sid=", cur_size
);
3471 static void dump_get_token_groups_request( const struct get_token_groups_request
*req
)
3473 fprintf( stderr
, " handle=%04x", req
->handle
);
3476 static void dump_get_token_groups_reply( const struct get_token_groups_reply
*req
)
3478 fprintf( stderr
, " user_len=%u", req
->user_len
);
3479 dump_varargs_token_groups( ", user=", cur_size
);
3482 static void dump_get_token_default_dacl_request( const struct get_token_default_dacl_request
*req
)
3484 fprintf( stderr
, " handle=%04x", req
->handle
);
3487 static void dump_get_token_default_dacl_reply( const struct get_token_default_dacl_reply
*req
)
3489 fprintf( stderr
, " acl_len=%u", req
->acl_len
);
3490 dump_varargs_ACL( ", acl=", cur_size
);
3493 static void dump_set_token_default_dacl_request( const struct set_token_default_dacl_request
*req
)
3495 fprintf( stderr
, " handle=%04x", req
->handle
);
3496 dump_varargs_ACL( ", acl=", cur_size
);
3499 static void dump_set_security_object_request( const struct set_security_object_request
*req
)
3501 fprintf( stderr
, " handle=%04x", req
->handle
);
3502 fprintf( stderr
, ", security_info=%08x", req
->security_info
);
3503 dump_varargs_security_descriptor( ", sd=", cur_size
);
3506 static void dump_get_security_object_request( const struct get_security_object_request
*req
)
3508 fprintf( stderr
, " handle=%04x", req
->handle
);
3509 fprintf( stderr
, ", security_info=%08x", req
->security_info
);
3512 static void dump_get_security_object_reply( const struct get_security_object_reply
*req
)
3514 fprintf( stderr
, " sd_len=%08x", req
->sd_len
);
3515 dump_varargs_security_descriptor( ", sd=", cur_size
);
3518 static void dump_create_mailslot_request( const struct create_mailslot_request
*req
)
3520 fprintf( stderr
, " access=%08x", req
->access
);
3521 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3522 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
3523 dump_timeout( ", read_timeout=", &req
->read_timeout
);
3524 fprintf( stderr
, ", max_msgsize=%08x", req
->max_msgsize
);
3525 dump_varargs_unicode_str( ", name=", cur_size
);
3528 static void dump_create_mailslot_reply( const struct create_mailslot_reply
*req
)
3530 fprintf( stderr
, " handle=%04x", req
->handle
);
3533 static void dump_set_mailslot_info_request( const struct set_mailslot_info_request
*req
)
3535 fprintf( stderr
, " handle=%04x", req
->handle
);
3536 dump_timeout( ", read_timeout=", &req
->read_timeout
);
3537 fprintf( stderr
, ", flags=%08x", req
->flags
);
3540 static void dump_set_mailslot_info_reply( const struct set_mailslot_info_reply
*req
)
3542 dump_timeout( " read_timeout=", &req
->read_timeout
);
3543 fprintf( stderr
, ", max_msgsize=%08x", req
->max_msgsize
);
3546 static void dump_create_directory_request( const struct create_directory_request
*req
)
3548 fprintf( stderr
, " access=%08x", req
->access
);
3549 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3550 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
3551 dump_varargs_unicode_str( ", directory_name=", cur_size
);
3554 static void dump_create_directory_reply( const struct create_directory_reply
*req
)
3556 fprintf( stderr
, " handle=%04x", req
->handle
);
3559 static void dump_open_directory_request( const struct open_directory_request
*req
)
3561 fprintf( stderr
, " access=%08x", req
->access
);
3562 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3563 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
3564 dump_varargs_unicode_str( ", directory_name=", cur_size
);
3567 static void dump_open_directory_reply( const struct open_directory_reply
*req
)
3569 fprintf( stderr
, " handle=%04x", req
->handle
);
3572 static void dump_get_directory_entry_request( const struct get_directory_entry_request
*req
)
3574 fprintf( stderr
, " handle=%04x", req
->handle
);
3575 fprintf( stderr
, ", index=%08x", req
->index
);
3578 static void dump_get_directory_entry_reply( const struct get_directory_entry_reply
*req
)
3580 fprintf( stderr
, " name_len=%u", req
->name_len
);
3581 dump_varargs_unicode_str( ", name=", min(cur_size
,req
->name_len
) );
3582 dump_varargs_unicode_str( ", type=", cur_size
);
3585 static void dump_create_symlink_request( const struct create_symlink_request
*req
)
3587 fprintf( stderr
, " access=%08x", req
->access
);
3588 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3589 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
3590 fprintf( stderr
, ", name_len=%u", req
->name_len
);
3591 dump_varargs_unicode_str( ", name=", min(cur_size
,req
->name_len
) );
3592 dump_varargs_unicode_str( ", target_name=", cur_size
);
3595 static void dump_create_symlink_reply( const struct create_symlink_reply
*req
)
3597 fprintf( stderr
, " handle=%04x", req
->handle
);
3600 static void dump_open_symlink_request( const struct open_symlink_request
*req
)
3602 fprintf( stderr
, " access=%08x", req
->access
);
3603 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3604 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
3605 dump_varargs_unicode_str( ", name=", cur_size
);
3608 static void dump_open_symlink_reply( const struct open_symlink_reply
*req
)
3610 fprintf( stderr
, " handle=%04x", req
->handle
);
3613 static void dump_query_symlink_request( const struct query_symlink_request
*req
)
3615 fprintf( stderr
, " handle=%04x", req
->handle
);
3618 static void dump_query_symlink_reply( const struct query_symlink_reply
*req
)
3620 fprintf( stderr
, " total=%u", req
->total
);
3621 dump_varargs_unicode_str( ", target_name=", cur_size
);
3624 static void dump_get_object_info_request( const struct get_object_info_request
*req
)
3626 fprintf( stderr
, " handle=%04x", req
->handle
);
3629 static void dump_get_object_info_reply( const struct get_object_info_reply
*req
)
3631 fprintf( stderr
, " access=%08x", req
->access
);
3632 fprintf( stderr
, ", ref_count=%08x", req
->ref_count
);
3633 fprintf( stderr
, ", total=%u", req
->total
);
3634 dump_varargs_unicode_str( ", name=", cur_size
);
3637 static void dump_unlink_object_request( const struct unlink_object_request
*req
)
3639 fprintf( stderr
, " handle=%04x", req
->handle
);
3642 static void dump_get_token_impersonation_level_request( const struct get_token_impersonation_level_request
*req
)
3644 fprintf( stderr
, " handle=%04x", req
->handle
);
3647 static void dump_get_token_impersonation_level_reply( const struct get_token_impersonation_level_reply
*req
)
3649 fprintf( stderr
, " impersonation_level=%d", req
->impersonation_level
);
3652 static void dump_allocate_locally_unique_id_request( const struct allocate_locally_unique_id_request
*req
)
3656 static void dump_allocate_locally_unique_id_reply( const struct allocate_locally_unique_id_reply
*req
)
3658 dump_luid( " luid=", &req
->luid
);
3661 static void dump_create_device_manager_request( const struct create_device_manager_request
*req
)
3663 fprintf( stderr
, " access=%08x", req
->access
);
3664 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3667 static void dump_create_device_manager_reply( const struct create_device_manager_reply
*req
)
3669 fprintf( stderr
, " handle=%04x", req
->handle
);
3672 static void dump_create_device_request( const struct create_device_request
*req
)
3674 fprintf( stderr
, " access=%08x", req
->access
);
3675 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3676 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
3677 dump_uint64( ", user_ptr=", &req
->user_ptr
);
3678 fprintf( stderr
, ", manager=%04x", req
->manager
);
3679 dump_varargs_unicode_str( ", name=", cur_size
);
3682 static void dump_create_device_reply( const struct create_device_reply
*req
)
3684 fprintf( stderr
, " handle=%04x", req
->handle
);
3687 static void dump_delete_device_request( const struct delete_device_request
*req
)
3689 fprintf( stderr
, " handle=%04x", req
->handle
);
3692 static void dump_get_next_device_request_request( const struct get_next_device_request_request
*req
)
3694 fprintf( stderr
, " manager=%04x", req
->manager
);
3695 fprintf( stderr
, ", prev=%04x", req
->prev
);
3696 fprintf( stderr
, ", status=%08x", req
->status
);
3697 dump_varargs_bytes( ", prev_data=", cur_size
);
3700 static void dump_get_next_device_request_reply( const struct get_next_device_request_reply
*req
)
3702 fprintf( stderr
, " next=%04x", req
->next
);
3703 dump_ioctl_code( ", code=", &req
->code
);
3704 dump_uint64( ", user_ptr=", &req
->user_ptr
);
3705 fprintf( stderr
, ", in_size=%u", req
->in_size
);
3706 fprintf( stderr
, ", out_size=%u", req
->out_size
);
3707 dump_varargs_bytes( ", next_data=", cur_size
);
3710 static void dump_make_process_system_request( const struct make_process_system_request
*req
)
3714 static void dump_make_process_system_reply( const struct make_process_system_reply
*req
)
3716 fprintf( stderr
, " event=%04x", req
->event
);
3719 static void dump_get_token_statistics_request( const struct get_token_statistics_request
*req
)
3721 fprintf( stderr
, " handle=%04x", req
->handle
);
3724 static void dump_get_token_statistics_reply( const struct get_token_statistics_reply
*req
)
3726 dump_luid( " token_id=", &req
->token_id
);
3727 dump_luid( ", modified_id=", &req
->modified_id
);
3728 fprintf( stderr
, ", primary=%d", req
->primary
);
3729 fprintf( stderr
, ", impersonation_level=%d", req
->impersonation_level
);
3730 fprintf( stderr
, ", group_count=%d", req
->group_count
);
3731 fprintf( stderr
, ", privilege_count=%d", req
->privilege_count
);
3734 static void dump_create_completion_request( const struct create_completion_request
*req
)
3736 fprintf( stderr
, " access=%08x", req
->access
);
3737 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3738 fprintf( stderr
, ", concurrent=%08x", req
->concurrent
);
3739 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
3740 dump_varargs_string( ", filename=", cur_size
);
3743 static void dump_create_completion_reply( const struct create_completion_reply
*req
)
3745 fprintf( stderr
, " handle=%04x", req
->handle
);
3748 static void dump_open_completion_request( const struct open_completion_request
*req
)
3750 fprintf( stderr
, " access=%08x", req
->access
);
3751 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3752 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
3753 dump_varargs_string( ", filename=", cur_size
);
3756 static void dump_open_completion_reply( const struct open_completion_reply
*req
)
3758 fprintf( stderr
, " handle=%04x", req
->handle
);
3761 static void dump_add_completion_request( const struct add_completion_request
*req
)
3763 fprintf( stderr
, " handle=%04x", req
->handle
);
3764 dump_uint64( ", ckey=", &req
->ckey
);
3765 dump_uint64( ", cvalue=", &req
->cvalue
);
3766 fprintf( stderr
, ", information=%08x", req
->information
);
3767 fprintf( stderr
, ", status=%08x", req
->status
);
3770 static void dump_remove_completion_request( const struct remove_completion_request
*req
)
3772 fprintf( stderr
, " handle=%04x", req
->handle
);
3775 static void dump_remove_completion_reply( const struct remove_completion_reply
*req
)
3777 dump_uint64( " ckey=", &req
->ckey
);
3778 dump_uint64( ", cvalue=", &req
->cvalue
);
3779 fprintf( stderr
, ", information=%08x", req
->information
);
3780 fprintf( stderr
, ", status=%08x", req
->status
);
3783 static void dump_query_completion_request( const struct query_completion_request
*req
)
3785 fprintf( stderr
, " handle=%04x", req
->handle
);
3788 static void dump_query_completion_reply( const struct query_completion_reply
*req
)
3790 fprintf( stderr
, " depth=%08x", req
->depth
);
3793 static void dump_set_completion_info_request( const struct set_completion_info_request
*req
)
3795 fprintf( stderr
, " handle=%04x", req
->handle
);
3796 dump_uint64( ", ckey=", &req
->ckey
);
3797 fprintf( stderr
, ", chandle=%04x", req
->chandle
);
3800 static void dump_add_fd_completion_request( const struct add_fd_completion_request
*req
)
3802 fprintf( stderr
, " handle=%04x", req
->handle
);
3803 dump_uint64( ", cvalue=", &req
->cvalue
);
3804 fprintf( stderr
, ", status=%08x", req
->status
);
3805 fprintf( stderr
, ", information=%08x", req
->information
);
3808 static void dump_get_window_layered_info_request( const struct get_window_layered_info_request
*req
)
3810 fprintf( stderr
, " handle=%08x", req
->handle
);
3813 static void dump_get_window_layered_info_reply( const struct get_window_layered_info_reply
*req
)
3815 fprintf( stderr
, " color_key=%08x", req
->color_key
);
3816 fprintf( stderr
, ", alpha=%08x", req
->alpha
);
3817 fprintf( stderr
, ", flags=%08x", req
->flags
);
3820 static void dump_set_window_layered_info_request( const struct set_window_layered_info_request
*req
)
3822 fprintf( stderr
, " handle=%08x", req
->handle
);
3823 fprintf( stderr
, ", color_key=%08x", req
->color_key
);
3824 fprintf( stderr
, ", alpha=%08x", req
->alpha
);
3825 fprintf( stderr
, ", flags=%08x", req
->flags
);
3828 static void dump_alloc_user_handle_request( const struct alloc_user_handle_request
*req
)
3832 static void dump_alloc_user_handle_reply( const struct alloc_user_handle_reply
*req
)
3834 fprintf( stderr
, " handle=%08x", req
->handle
);
3837 static void dump_free_user_handle_request( const struct free_user_handle_request
*req
)
3839 fprintf( stderr
, " handle=%08x", req
->handle
);
3842 static void dump_set_cursor_request( const struct set_cursor_request
*req
)
3844 fprintf( stderr
, " flags=%08x", req
->flags
);
3845 fprintf( stderr
, ", handle=%08x", req
->handle
);
3846 fprintf( stderr
, ", show_count=%d", req
->show_count
);
3847 fprintf( stderr
, ", x=%d", req
->x
);
3848 fprintf( stderr
, ", y=%d", req
->y
);
3849 dump_rectangle( ", clip=", &req
->clip
);
3850 fprintf( stderr
, ", clip_msg=%08x", req
->clip_msg
);
3853 static void dump_set_cursor_reply( const struct set_cursor_reply
*req
)
3855 fprintf( stderr
, " prev_handle=%08x", req
->prev_handle
);
3856 fprintf( stderr
, ", prev_count=%d", req
->prev_count
);
3857 fprintf( stderr
, ", prev_x=%d", req
->prev_x
);
3858 fprintf( stderr
, ", prev_y=%d", req
->prev_y
);
3859 fprintf( stderr
, ", new_x=%d", req
->new_x
);
3860 fprintf( stderr
, ", new_y=%d", req
->new_y
);
3861 dump_rectangle( ", new_clip=", &req
->new_clip
);
3862 fprintf( stderr
, ", last_change=%08x", req
->last_change
);
3865 static void dump_get_suspend_context_request( const struct get_suspend_context_request
*req
)
3869 static void dump_get_suspend_context_reply( const struct get_suspend_context_reply
*req
)
3871 dump_varargs_context( " context=", cur_size
);
3874 static void dump_set_suspend_context_request( const struct set_suspend_context_request
*req
)
3876 dump_varargs_context( " context=", cur_size
);
3879 static const dump_func req_dumpers
[REQ_NB_REQUESTS
] = {
3880 (dump_func
)dump_new_process_request
,
3881 (dump_func
)dump_get_new_process_info_request
,
3882 (dump_func
)dump_new_thread_request
,
3883 (dump_func
)dump_get_startup_info_request
,
3884 (dump_func
)dump_init_process_done_request
,
3885 (dump_func
)dump_init_thread_request
,
3886 (dump_func
)dump_terminate_process_request
,
3887 (dump_func
)dump_terminate_thread_request
,
3888 (dump_func
)dump_get_process_info_request
,
3889 (dump_func
)dump_set_process_info_request
,
3890 (dump_func
)dump_get_thread_info_request
,
3891 (dump_func
)dump_set_thread_info_request
,
3892 (dump_func
)dump_get_dll_info_request
,
3893 (dump_func
)dump_suspend_thread_request
,
3894 (dump_func
)dump_resume_thread_request
,
3895 (dump_func
)dump_load_dll_request
,
3896 (dump_func
)dump_unload_dll_request
,
3897 (dump_func
)dump_queue_apc_request
,
3898 (dump_func
)dump_get_apc_result_request
,
3899 (dump_func
)dump_close_handle_request
,
3900 (dump_func
)dump_set_handle_info_request
,
3901 (dump_func
)dump_dup_handle_request
,
3902 (dump_func
)dump_open_process_request
,
3903 (dump_func
)dump_open_thread_request
,
3904 (dump_func
)dump_select_request
,
3905 (dump_func
)dump_create_event_request
,
3906 (dump_func
)dump_event_op_request
,
3907 (dump_func
)dump_open_event_request
,
3908 (dump_func
)dump_create_mutex_request
,
3909 (dump_func
)dump_release_mutex_request
,
3910 (dump_func
)dump_open_mutex_request
,
3911 (dump_func
)dump_create_semaphore_request
,
3912 (dump_func
)dump_release_semaphore_request
,
3913 (dump_func
)dump_open_semaphore_request
,
3914 (dump_func
)dump_create_file_request
,
3915 (dump_func
)dump_open_file_object_request
,
3916 (dump_func
)dump_alloc_file_handle_request
,
3917 (dump_func
)dump_get_handle_unix_name_request
,
3918 (dump_func
)dump_get_handle_fd_request
,
3919 (dump_func
)dump_flush_file_request
,
3920 (dump_func
)dump_lock_file_request
,
3921 (dump_func
)dump_unlock_file_request
,
3922 (dump_func
)dump_create_socket_request
,
3923 (dump_func
)dump_accept_socket_request
,
3924 (dump_func
)dump_accept_into_socket_request
,
3925 (dump_func
)dump_set_socket_event_request
,
3926 (dump_func
)dump_get_socket_event_request
,
3927 (dump_func
)dump_enable_socket_event_request
,
3928 (dump_func
)dump_set_socket_deferred_request
,
3929 (dump_func
)dump_alloc_console_request
,
3930 (dump_func
)dump_free_console_request
,
3931 (dump_func
)dump_get_console_renderer_events_request
,
3932 (dump_func
)dump_open_console_request
,
3933 (dump_func
)dump_get_console_wait_event_request
,
3934 (dump_func
)dump_get_console_mode_request
,
3935 (dump_func
)dump_set_console_mode_request
,
3936 (dump_func
)dump_set_console_input_info_request
,
3937 (dump_func
)dump_get_console_input_info_request
,
3938 (dump_func
)dump_append_console_input_history_request
,
3939 (dump_func
)dump_get_console_input_history_request
,
3940 (dump_func
)dump_create_console_output_request
,
3941 (dump_func
)dump_set_console_output_info_request
,
3942 (dump_func
)dump_get_console_output_info_request
,
3943 (dump_func
)dump_write_console_input_request
,
3944 (dump_func
)dump_read_console_input_request
,
3945 (dump_func
)dump_write_console_output_request
,
3946 (dump_func
)dump_fill_console_output_request
,
3947 (dump_func
)dump_read_console_output_request
,
3948 (dump_func
)dump_move_console_output_request
,
3949 (dump_func
)dump_send_console_signal_request
,
3950 (dump_func
)dump_read_directory_changes_request
,
3951 (dump_func
)dump_read_change_request
,
3952 (dump_func
)dump_create_mapping_request
,
3953 (dump_func
)dump_open_mapping_request
,
3954 (dump_func
)dump_get_mapping_info_request
,
3955 (dump_func
)dump_get_mapping_committed_range_request
,
3956 (dump_func
)dump_add_mapping_committed_range_request
,
3957 (dump_func
)dump_create_snapshot_request
,
3958 (dump_func
)dump_next_process_request
,
3959 (dump_func
)dump_next_thread_request
,
3960 (dump_func
)dump_wait_debug_event_request
,
3961 (dump_func
)dump_queue_exception_event_request
,
3962 (dump_func
)dump_get_exception_status_request
,
3963 (dump_func
)dump_output_debug_string_request
,
3964 (dump_func
)dump_continue_debug_event_request
,
3965 (dump_func
)dump_debug_process_request
,
3966 (dump_func
)dump_debug_break_request
,
3967 (dump_func
)dump_set_debugger_kill_on_exit_request
,
3968 (dump_func
)dump_read_process_memory_request
,
3969 (dump_func
)dump_write_process_memory_request
,
3970 (dump_func
)dump_create_key_request
,
3971 (dump_func
)dump_open_key_request
,
3972 (dump_func
)dump_delete_key_request
,
3973 (dump_func
)dump_flush_key_request
,
3974 (dump_func
)dump_enum_key_request
,
3975 (dump_func
)dump_set_key_value_request
,
3976 (dump_func
)dump_get_key_value_request
,
3977 (dump_func
)dump_enum_key_value_request
,
3978 (dump_func
)dump_delete_key_value_request
,
3979 (dump_func
)dump_load_registry_request
,
3980 (dump_func
)dump_unload_registry_request
,
3981 (dump_func
)dump_save_registry_request
,
3982 (dump_func
)dump_set_registry_notification_request
,
3983 (dump_func
)dump_create_timer_request
,
3984 (dump_func
)dump_open_timer_request
,
3985 (dump_func
)dump_set_timer_request
,
3986 (dump_func
)dump_cancel_timer_request
,
3987 (dump_func
)dump_get_timer_info_request
,
3988 (dump_func
)dump_get_thread_context_request
,
3989 (dump_func
)dump_set_thread_context_request
,
3990 (dump_func
)dump_get_selector_entry_request
,
3991 (dump_func
)dump_add_atom_request
,
3992 (dump_func
)dump_delete_atom_request
,
3993 (dump_func
)dump_find_atom_request
,
3994 (dump_func
)dump_get_atom_information_request
,
3995 (dump_func
)dump_set_atom_information_request
,
3996 (dump_func
)dump_empty_atom_table_request
,
3997 (dump_func
)dump_init_atom_table_request
,
3998 (dump_func
)dump_get_msg_queue_request
,
3999 (dump_func
)dump_set_queue_fd_request
,
4000 (dump_func
)dump_set_queue_mask_request
,
4001 (dump_func
)dump_get_queue_status_request
,
4002 (dump_func
)dump_get_process_idle_event_request
,
4003 (dump_func
)dump_send_message_request
,
4004 (dump_func
)dump_post_quit_message_request
,
4005 (dump_func
)dump_send_hardware_message_request
,
4006 (dump_func
)dump_get_message_request
,
4007 (dump_func
)dump_reply_message_request
,
4008 (dump_func
)dump_accept_hardware_message_request
,
4009 (dump_func
)dump_get_message_reply_request
,
4010 (dump_func
)dump_set_win_timer_request
,
4011 (dump_func
)dump_kill_win_timer_request
,
4012 (dump_func
)dump_is_window_hung_request
,
4013 (dump_func
)dump_get_serial_info_request
,
4014 (dump_func
)dump_set_serial_info_request
,
4015 (dump_func
)dump_register_async_request
,
4016 (dump_func
)dump_cancel_async_request
,
4017 (dump_func
)dump_ioctl_request
,
4018 (dump_func
)dump_get_ioctl_result_request
,
4019 (dump_func
)dump_create_named_pipe_request
,
4020 (dump_func
)dump_get_named_pipe_info_request
,
4021 (dump_func
)dump_create_window_request
,
4022 (dump_func
)dump_destroy_window_request
,
4023 (dump_func
)dump_get_desktop_window_request
,
4024 (dump_func
)dump_set_window_owner_request
,
4025 (dump_func
)dump_get_window_info_request
,
4026 (dump_func
)dump_set_window_info_request
,
4027 (dump_func
)dump_set_parent_request
,
4028 (dump_func
)dump_get_window_parents_request
,
4029 (dump_func
)dump_get_window_children_request
,
4030 (dump_func
)dump_get_window_children_from_point_request
,
4031 (dump_func
)dump_get_window_tree_request
,
4032 (dump_func
)dump_set_window_pos_request
,
4033 (dump_func
)dump_get_window_rectangles_request
,
4034 (dump_func
)dump_get_window_text_request
,
4035 (dump_func
)dump_set_window_text_request
,
4036 (dump_func
)dump_get_windows_offset_request
,
4037 (dump_func
)dump_get_visible_region_request
,
4038 (dump_func
)dump_get_window_region_request
,
4039 (dump_func
)dump_set_window_region_request
,
4040 (dump_func
)dump_get_update_region_request
,
4041 (dump_func
)dump_update_window_zorder_request
,
4042 (dump_func
)dump_redraw_window_request
,
4043 (dump_func
)dump_set_window_property_request
,
4044 (dump_func
)dump_remove_window_property_request
,
4045 (dump_func
)dump_get_window_property_request
,
4046 (dump_func
)dump_get_window_properties_request
,
4047 (dump_func
)dump_create_winstation_request
,
4048 (dump_func
)dump_open_winstation_request
,
4049 (dump_func
)dump_close_winstation_request
,
4050 (dump_func
)dump_get_process_winstation_request
,
4051 (dump_func
)dump_set_process_winstation_request
,
4052 (dump_func
)dump_enum_winstation_request
,
4053 (dump_func
)dump_create_desktop_request
,
4054 (dump_func
)dump_open_desktop_request
,
4055 (dump_func
)dump_close_desktop_request
,
4056 (dump_func
)dump_get_thread_desktop_request
,
4057 (dump_func
)dump_set_thread_desktop_request
,
4058 (dump_func
)dump_enum_desktop_request
,
4059 (dump_func
)dump_set_user_object_info_request
,
4060 (dump_func
)dump_attach_thread_input_request
,
4061 (dump_func
)dump_get_thread_input_request
,
4062 (dump_func
)dump_get_last_input_time_request
,
4063 (dump_func
)dump_get_key_state_request
,
4064 (dump_func
)dump_set_key_state_request
,
4065 (dump_func
)dump_set_foreground_window_request
,
4066 (dump_func
)dump_set_focus_window_request
,
4067 (dump_func
)dump_set_active_window_request
,
4068 (dump_func
)dump_set_capture_window_request
,
4069 (dump_func
)dump_set_caret_window_request
,
4070 (dump_func
)dump_set_caret_info_request
,
4071 (dump_func
)dump_set_hook_request
,
4072 (dump_func
)dump_remove_hook_request
,
4073 (dump_func
)dump_start_hook_chain_request
,
4074 (dump_func
)dump_finish_hook_chain_request
,
4075 (dump_func
)dump_get_hook_info_request
,
4076 (dump_func
)dump_create_class_request
,
4077 (dump_func
)dump_destroy_class_request
,
4078 (dump_func
)dump_set_class_info_request
,
4079 (dump_func
)dump_set_clipboard_info_request
,
4080 (dump_func
)dump_open_token_request
,
4081 (dump_func
)dump_set_global_windows_request
,
4082 (dump_func
)dump_adjust_token_privileges_request
,
4083 (dump_func
)dump_get_token_privileges_request
,
4084 (dump_func
)dump_check_token_privileges_request
,
4085 (dump_func
)dump_duplicate_token_request
,
4086 (dump_func
)dump_access_check_request
,
4087 (dump_func
)dump_get_token_sid_request
,
4088 (dump_func
)dump_get_token_groups_request
,
4089 (dump_func
)dump_get_token_default_dacl_request
,
4090 (dump_func
)dump_set_token_default_dacl_request
,
4091 (dump_func
)dump_set_security_object_request
,
4092 (dump_func
)dump_get_security_object_request
,
4093 (dump_func
)dump_create_mailslot_request
,
4094 (dump_func
)dump_set_mailslot_info_request
,
4095 (dump_func
)dump_create_directory_request
,
4096 (dump_func
)dump_open_directory_request
,
4097 (dump_func
)dump_get_directory_entry_request
,
4098 (dump_func
)dump_create_symlink_request
,
4099 (dump_func
)dump_open_symlink_request
,
4100 (dump_func
)dump_query_symlink_request
,
4101 (dump_func
)dump_get_object_info_request
,
4102 (dump_func
)dump_unlink_object_request
,
4103 (dump_func
)dump_get_token_impersonation_level_request
,
4104 (dump_func
)dump_allocate_locally_unique_id_request
,
4105 (dump_func
)dump_create_device_manager_request
,
4106 (dump_func
)dump_create_device_request
,
4107 (dump_func
)dump_delete_device_request
,
4108 (dump_func
)dump_get_next_device_request_request
,
4109 (dump_func
)dump_make_process_system_request
,
4110 (dump_func
)dump_get_token_statistics_request
,
4111 (dump_func
)dump_create_completion_request
,
4112 (dump_func
)dump_open_completion_request
,
4113 (dump_func
)dump_add_completion_request
,
4114 (dump_func
)dump_remove_completion_request
,
4115 (dump_func
)dump_query_completion_request
,
4116 (dump_func
)dump_set_completion_info_request
,
4117 (dump_func
)dump_add_fd_completion_request
,
4118 (dump_func
)dump_get_window_layered_info_request
,
4119 (dump_func
)dump_set_window_layered_info_request
,
4120 (dump_func
)dump_alloc_user_handle_request
,
4121 (dump_func
)dump_free_user_handle_request
,
4122 (dump_func
)dump_set_cursor_request
,
4123 (dump_func
)dump_get_suspend_context_request
,
4124 (dump_func
)dump_set_suspend_context_request
,
4127 static const dump_func reply_dumpers
[REQ_NB_REQUESTS
] = {
4128 (dump_func
)dump_new_process_reply
,
4129 (dump_func
)dump_get_new_process_info_reply
,
4130 (dump_func
)dump_new_thread_reply
,
4131 (dump_func
)dump_get_startup_info_reply
,
4133 (dump_func
)dump_init_thread_reply
,
4134 (dump_func
)dump_terminate_process_reply
,
4135 (dump_func
)dump_terminate_thread_reply
,
4136 (dump_func
)dump_get_process_info_reply
,
4138 (dump_func
)dump_get_thread_info_reply
,
4140 (dump_func
)dump_get_dll_info_reply
,
4141 (dump_func
)dump_suspend_thread_reply
,
4142 (dump_func
)dump_resume_thread_reply
,
4145 (dump_func
)dump_queue_apc_reply
,
4146 (dump_func
)dump_get_apc_result_reply
,
4148 (dump_func
)dump_set_handle_info_reply
,
4149 (dump_func
)dump_dup_handle_reply
,
4150 (dump_func
)dump_open_process_reply
,
4151 (dump_func
)dump_open_thread_reply
,
4152 (dump_func
)dump_select_reply
,
4153 (dump_func
)dump_create_event_reply
,
4155 (dump_func
)dump_open_event_reply
,
4156 (dump_func
)dump_create_mutex_reply
,
4157 (dump_func
)dump_release_mutex_reply
,
4158 (dump_func
)dump_open_mutex_reply
,
4159 (dump_func
)dump_create_semaphore_reply
,
4160 (dump_func
)dump_release_semaphore_reply
,
4161 (dump_func
)dump_open_semaphore_reply
,
4162 (dump_func
)dump_create_file_reply
,
4163 (dump_func
)dump_open_file_object_reply
,
4164 (dump_func
)dump_alloc_file_handle_reply
,
4165 (dump_func
)dump_get_handle_unix_name_reply
,
4166 (dump_func
)dump_get_handle_fd_reply
,
4167 (dump_func
)dump_flush_file_reply
,
4168 (dump_func
)dump_lock_file_reply
,
4170 (dump_func
)dump_create_socket_reply
,
4171 (dump_func
)dump_accept_socket_reply
,
4174 (dump_func
)dump_get_socket_event_reply
,
4177 (dump_func
)dump_alloc_console_reply
,
4179 (dump_func
)dump_get_console_renderer_events_reply
,
4180 (dump_func
)dump_open_console_reply
,
4181 (dump_func
)dump_get_console_wait_event_reply
,
4182 (dump_func
)dump_get_console_mode_reply
,
4185 (dump_func
)dump_get_console_input_info_reply
,
4187 (dump_func
)dump_get_console_input_history_reply
,
4188 (dump_func
)dump_create_console_output_reply
,
4190 (dump_func
)dump_get_console_output_info_reply
,
4191 (dump_func
)dump_write_console_input_reply
,
4192 (dump_func
)dump_read_console_input_reply
,
4193 (dump_func
)dump_write_console_output_reply
,
4194 (dump_func
)dump_fill_console_output_reply
,
4195 (dump_func
)dump_read_console_output_reply
,
4199 (dump_func
)dump_read_change_reply
,
4200 (dump_func
)dump_create_mapping_reply
,
4201 (dump_func
)dump_open_mapping_reply
,
4202 (dump_func
)dump_get_mapping_info_reply
,
4203 (dump_func
)dump_get_mapping_committed_range_reply
,
4205 (dump_func
)dump_create_snapshot_reply
,
4206 (dump_func
)dump_next_process_reply
,
4207 (dump_func
)dump_next_thread_reply
,
4208 (dump_func
)dump_wait_debug_event_reply
,
4209 (dump_func
)dump_queue_exception_event_reply
,
4210 (dump_func
)dump_get_exception_status_reply
,
4214 (dump_func
)dump_debug_break_reply
,
4216 (dump_func
)dump_read_process_memory_reply
,
4218 (dump_func
)dump_create_key_reply
,
4219 (dump_func
)dump_open_key_reply
,
4222 (dump_func
)dump_enum_key_reply
,
4224 (dump_func
)dump_get_key_value_reply
,
4225 (dump_func
)dump_enum_key_value_reply
,
4231 (dump_func
)dump_create_timer_reply
,
4232 (dump_func
)dump_open_timer_reply
,
4233 (dump_func
)dump_set_timer_reply
,
4234 (dump_func
)dump_cancel_timer_reply
,
4235 (dump_func
)dump_get_timer_info_reply
,
4236 (dump_func
)dump_get_thread_context_reply
,
4237 (dump_func
)dump_set_thread_context_reply
,
4238 (dump_func
)dump_get_selector_entry_reply
,
4239 (dump_func
)dump_add_atom_reply
,
4241 (dump_func
)dump_find_atom_reply
,
4242 (dump_func
)dump_get_atom_information_reply
,
4245 (dump_func
)dump_init_atom_table_reply
,
4246 (dump_func
)dump_get_msg_queue_reply
,
4248 (dump_func
)dump_set_queue_mask_reply
,
4249 (dump_func
)dump_get_queue_status_reply
,
4250 (dump_func
)dump_get_process_idle_event_reply
,
4253 (dump_func
)dump_send_hardware_message_reply
,
4254 (dump_func
)dump_get_message_reply
,
4257 (dump_func
)dump_get_message_reply_reply
,
4258 (dump_func
)dump_set_win_timer_reply
,
4260 (dump_func
)dump_is_window_hung_reply
,
4261 (dump_func
)dump_get_serial_info_reply
,
4265 (dump_func
)dump_ioctl_reply
,
4266 (dump_func
)dump_get_ioctl_result_reply
,
4267 (dump_func
)dump_create_named_pipe_reply
,
4268 (dump_func
)dump_get_named_pipe_info_reply
,
4269 (dump_func
)dump_create_window_reply
,
4271 (dump_func
)dump_get_desktop_window_reply
,
4272 (dump_func
)dump_set_window_owner_reply
,
4273 (dump_func
)dump_get_window_info_reply
,
4274 (dump_func
)dump_set_window_info_reply
,
4275 (dump_func
)dump_set_parent_reply
,
4276 (dump_func
)dump_get_window_parents_reply
,
4277 (dump_func
)dump_get_window_children_reply
,
4278 (dump_func
)dump_get_window_children_from_point_reply
,
4279 (dump_func
)dump_get_window_tree_reply
,
4280 (dump_func
)dump_set_window_pos_reply
,
4281 (dump_func
)dump_get_window_rectangles_reply
,
4282 (dump_func
)dump_get_window_text_reply
,
4284 (dump_func
)dump_get_windows_offset_reply
,
4285 (dump_func
)dump_get_visible_region_reply
,
4286 (dump_func
)dump_get_window_region_reply
,
4288 (dump_func
)dump_get_update_region_reply
,
4292 (dump_func
)dump_remove_window_property_reply
,
4293 (dump_func
)dump_get_window_property_reply
,
4294 (dump_func
)dump_get_window_properties_reply
,
4295 (dump_func
)dump_create_winstation_reply
,
4296 (dump_func
)dump_open_winstation_reply
,
4298 (dump_func
)dump_get_process_winstation_reply
,
4300 (dump_func
)dump_enum_winstation_reply
,
4301 (dump_func
)dump_create_desktop_reply
,
4302 (dump_func
)dump_open_desktop_reply
,
4304 (dump_func
)dump_get_thread_desktop_reply
,
4306 (dump_func
)dump_enum_desktop_reply
,
4307 (dump_func
)dump_set_user_object_info_reply
,
4309 (dump_func
)dump_get_thread_input_reply
,
4310 (dump_func
)dump_get_last_input_time_reply
,
4311 (dump_func
)dump_get_key_state_reply
,
4313 (dump_func
)dump_set_foreground_window_reply
,
4314 (dump_func
)dump_set_focus_window_reply
,
4315 (dump_func
)dump_set_active_window_reply
,
4316 (dump_func
)dump_set_capture_window_reply
,
4317 (dump_func
)dump_set_caret_window_reply
,
4318 (dump_func
)dump_set_caret_info_reply
,
4319 (dump_func
)dump_set_hook_reply
,
4320 (dump_func
)dump_remove_hook_reply
,
4321 (dump_func
)dump_start_hook_chain_reply
,
4323 (dump_func
)dump_get_hook_info_reply
,
4324 (dump_func
)dump_create_class_reply
,
4325 (dump_func
)dump_destroy_class_reply
,
4326 (dump_func
)dump_set_class_info_reply
,
4327 (dump_func
)dump_set_clipboard_info_reply
,
4328 (dump_func
)dump_open_token_reply
,
4329 (dump_func
)dump_set_global_windows_reply
,
4330 (dump_func
)dump_adjust_token_privileges_reply
,
4331 (dump_func
)dump_get_token_privileges_reply
,
4332 (dump_func
)dump_check_token_privileges_reply
,
4333 (dump_func
)dump_duplicate_token_reply
,
4334 (dump_func
)dump_access_check_reply
,
4335 (dump_func
)dump_get_token_sid_reply
,
4336 (dump_func
)dump_get_token_groups_reply
,
4337 (dump_func
)dump_get_token_default_dacl_reply
,
4340 (dump_func
)dump_get_security_object_reply
,
4341 (dump_func
)dump_create_mailslot_reply
,
4342 (dump_func
)dump_set_mailslot_info_reply
,
4343 (dump_func
)dump_create_directory_reply
,
4344 (dump_func
)dump_open_directory_reply
,
4345 (dump_func
)dump_get_directory_entry_reply
,
4346 (dump_func
)dump_create_symlink_reply
,
4347 (dump_func
)dump_open_symlink_reply
,
4348 (dump_func
)dump_query_symlink_reply
,
4349 (dump_func
)dump_get_object_info_reply
,
4351 (dump_func
)dump_get_token_impersonation_level_reply
,
4352 (dump_func
)dump_allocate_locally_unique_id_reply
,
4353 (dump_func
)dump_create_device_manager_reply
,
4354 (dump_func
)dump_create_device_reply
,
4356 (dump_func
)dump_get_next_device_request_reply
,
4357 (dump_func
)dump_make_process_system_reply
,
4358 (dump_func
)dump_get_token_statistics_reply
,
4359 (dump_func
)dump_create_completion_reply
,
4360 (dump_func
)dump_open_completion_reply
,
4362 (dump_func
)dump_remove_completion_reply
,
4363 (dump_func
)dump_query_completion_reply
,
4366 (dump_func
)dump_get_window_layered_info_reply
,
4368 (dump_func
)dump_alloc_user_handle_reply
,
4370 (dump_func
)dump_set_cursor_reply
,
4371 (dump_func
)dump_get_suspend_context_reply
,
4375 static const char * const req_names
[REQ_NB_REQUESTS
] = {
4377 "get_new_process_info",
4380 "init_process_done",
4382 "terminate_process",
4408 "release_semaphore",
4412 "alloc_file_handle",
4413 "get_handle_unix_name",
4420 "accept_into_socket",
4423 "enable_socket_event",
4424 "set_socket_deferred",
4427 "get_console_renderer_events",
4429 "get_console_wait_event",
4432 "set_console_input_info",
4433 "get_console_input_info",
4434 "append_console_input_history",
4435 "get_console_input_history",
4436 "create_console_output",
4437 "set_console_output_info",
4438 "get_console_output_info",
4439 "write_console_input",
4440 "read_console_input",
4441 "write_console_output",
4442 "fill_console_output",
4443 "read_console_output",
4444 "move_console_output",
4445 "send_console_signal",
4446 "read_directory_changes",
4451 "get_mapping_committed_range",
4452 "add_mapping_committed_range",
4457 "queue_exception_event",
4458 "get_exception_status",
4459 "output_debug_string",
4460 "continue_debug_event",
4463 "set_debugger_kill_on_exit",
4464 "read_process_memory",
4465 "write_process_memory",
4478 "set_registry_notification",
4484 "get_thread_context",
4485 "set_thread_context",
4486 "get_selector_entry",
4490 "get_atom_information",
4491 "set_atom_information",
4498 "get_process_idle_event",
4500 "post_quit_message",
4501 "send_hardware_message",
4504 "accept_hardware_message",
4505 "get_message_reply",
4515 "create_named_pipe",
4516 "get_named_pipe_info",
4519 "get_desktop_window",
4524 "get_window_parents",
4525 "get_window_children",
4526 "get_window_children_from_point",
4529 "get_window_rectangles",
4532 "get_windows_offset",
4533 "get_visible_region",
4534 "get_window_region",
4535 "set_window_region",
4536 "get_update_region",
4537 "update_window_zorder",
4539 "set_window_property",
4540 "remove_window_property",
4541 "get_window_property",
4542 "get_window_properties",
4543 "create_winstation",
4546 "get_process_winstation",
4547 "set_process_winstation",
4552 "get_thread_desktop",
4553 "set_thread_desktop",
4555 "set_user_object_info",
4556 "attach_thread_input",
4558 "get_last_input_time",
4561 "set_foreground_window",
4563 "set_active_window",
4564 "set_capture_window",
4570 "finish_hook_chain",
4575 "set_clipboard_info",
4577 "set_global_windows",
4578 "adjust_token_privileges",
4579 "get_token_privileges",
4580 "check_token_privileges",
4585 "get_token_default_dacl",
4586 "set_token_default_dacl",
4587 "set_security_object",
4588 "get_security_object",
4590 "set_mailslot_info",
4593 "get_directory_entry",
4599 "get_token_impersonation_level",
4600 "allocate_locally_unique_id",
4601 "create_device_manager",
4604 "get_next_device_request",
4605 "make_process_system",
4606 "get_token_statistics",
4607 "create_completion",
4610 "remove_completion",
4612 "set_completion_info",
4613 "add_fd_completion",
4614 "get_window_layered_info",
4615 "set_window_layered_info",
4616 "alloc_user_handle",
4619 "get_suspend_context",
4620 "set_suspend_context",
4629 { "ABANDONED_WAIT_0", STATUS_ABANDONED_WAIT_0
},
4630 { "ACCESS_DENIED", STATUS_ACCESS_DENIED
},
4631 { "ACCESS_VIOLATION", STATUS_ACCESS_VIOLATION
},
4632 { "ADDRESS_ALREADY_ASSOCIATED", STATUS_ADDRESS_ALREADY_ASSOCIATED
},
4633 { "ALERTED", STATUS_ALERTED
},
4634 { "ALIAS_EXISTS", STATUS_ALIAS_EXISTS
},
4635 { "BAD_DEVICE_TYPE", STATUS_BAD_DEVICE_TYPE
},
4636 { "BAD_IMPERSONATION_LEVEL", STATUS_BAD_IMPERSONATION_LEVEL
},
4637 { "BREAKPOINT", STATUS_BREAKPOINT
},
4638 { "BUFFER_OVERFLOW", STATUS_BUFFER_OVERFLOW
},
4639 { "BUFFER_TOO_SMALL", STATUS_BUFFER_TOO_SMALL
},
4640 { "CANCELLED", STATUS_CANCELLED
},
4641 { "CANNOT_DELETE", STATUS_CANNOT_DELETE
},
4642 { "CANT_OPEN_ANONYMOUS", STATUS_CANT_OPEN_ANONYMOUS
},
4643 { "CANT_WAIT", STATUS_CANT_WAIT
},
4644 { "CHILD_MUST_BE_VOLATILE", STATUS_CHILD_MUST_BE_VOLATILE
},
4645 { "CONNECTION_ABORTED", STATUS_CONNECTION_ABORTED
},
4646 { "CONNECTION_DISCONNECTED", STATUS_CONNECTION_DISCONNECTED
},
4647 { "CONNECTION_REFUSED", STATUS_CONNECTION_REFUSED
},
4648 { "CONNECTION_RESET", STATUS_CONNECTION_RESET
},
4649 { "DEBUGGER_INACTIVE", STATUS_DEBUGGER_INACTIVE
},
4650 { "DEVICE_BUSY", STATUS_DEVICE_BUSY
},
4651 { "DIRECTORY_NOT_EMPTY", STATUS_DIRECTORY_NOT_EMPTY
},
4652 { "DISK_FULL", STATUS_DISK_FULL
},
4653 { "DLL_NOT_FOUND", STATUS_DLL_NOT_FOUND
},
4654 { "ERROR_CLASS_ALREADY_EXISTS", 0xc0010000 | ERROR_CLASS_ALREADY_EXISTS
},
4655 { "ERROR_CLASS_DOES_NOT_EXIST", 0xc0010000 | ERROR_CLASS_DOES_NOT_EXIST
},
4656 { "ERROR_CLASS_HAS_WINDOWS", 0xc0010000 | ERROR_CLASS_HAS_WINDOWS
},
4657 { "ERROR_CLIPBOARD_NOT_OPEN", 0xc0010000 | ERROR_CLIPBOARD_NOT_OPEN
},
4658 { "ERROR_INVALID_CURSOR_HANDLE", 0xc0010000 | ERROR_INVALID_CURSOR_HANDLE
},
4659 { "ERROR_INVALID_INDEX", 0xc0010000 | ERROR_INVALID_INDEX
},
4660 { "ERROR_INVALID_WINDOW_HANDLE", 0xc0010000 | ERROR_INVALID_WINDOW_HANDLE
},
4661 { "FILE_DELETED", STATUS_FILE_DELETED
},
4662 { "FILE_IS_A_DIRECTORY", STATUS_FILE_IS_A_DIRECTORY
},
4663 { "FILE_LOCK_CONFLICT", STATUS_FILE_LOCK_CONFLICT
},
4664 { "GENERIC_NOT_MAPPED", STATUS_GENERIC_NOT_MAPPED
},
4665 { "HANDLES_CLOSED", STATUS_HANDLES_CLOSED
},
4666 { "HANDLE_NOT_CLOSABLE", STATUS_HANDLE_NOT_CLOSABLE
},
4667 { "HOST_UNREACHABLE", STATUS_HOST_UNREACHABLE
},
4668 { "ILLEGAL_FUNCTION", STATUS_ILLEGAL_FUNCTION
},
4669 { "INSTANCE_NOT_AVAILABLE", STATUS_INSTANCE_NOT_AVAILABLE
},
4670 { "INSUFFICIENT_RESOURCES", STATUS_INSUFFICIENT_RESOURCES
},
4671 { "INVALID_CID", STATUS_INVALID_CID
},
4672 { "INVALID_DEVICE_REQUEST", STATUS_INVALID_DEVICE_REQUEST
},
4673 { "INVALID_FILE_FOR_SECTION", STATUS_INVALID_FILE_FOR_SECTION
},
4674 { "INVALID_HANDLE", STATUS_INVALID_HANDLE
},
4675 { "INVALID_PARAMETER", STATUS_INVALID_PARAMETER
},
4676 { "INVALID_SECURITY_DESCR", STATUS_INVALID_SECURITY_DESCR
},
4677 { "IO_TIMEOUT", STATUS_IO_TIMEOUT
},
4678 { "KEY_DELETED", STATUS_KEY_DELETED
},
4679 { "MAPPED_FILE_SIZE_ZERO", STATUS_MAPPED_FILE_SIZE_ZERO
},
4680 { "MUTANT_NOT_OWNED", STATUS_MUTANT_NOT_OWNED
},
4681 { "NAME_TOO_LONG", STATUS_NAME_TOO_LONG
},
4682 { "NETWORK_BUSY", STATUS_NETWORK_BUSY
},
4683 { "NETWORK_UNREACHABLE", STATUS_NETWORK_UNREACHABLE
},
4684 { "NOTIFY_ENUM_DIR", STATUS_NOTIFY_ENUM_DIR
},
4685 { "NOT_ALL_ASSIGNED", STATUS_NOT_ALL_ASSIGNED
},
4686 { "NOT_A_DIRECTORY", STATUS_NOT_A_DIRECTORY
},
4687 { "NOT_FOUND", STATUS_NOT_FOUND
},
4688 { "NOT_IMPLEMENTED", STATUS_NOT_IMPLEMENTED
},
4689 { "NOT_REGISTRY_FILE", STATUS_NOT_REGISTRY_FILE
},
4690 { "NOT_SUPPORTED", STATUS_NOT_SUPPORTED
},
4691 { "NO_DATA_DETECTED", STATUS_NO_DATA_DETECTED
},
4692 { "NO_IMPERSONATION_TOKEN", STATUS_NO_IMPERSONATION_TOKEN
},
4693 { "NO_MEMORY", STATUS_NO_MEMORY
},
4694 { "NO_MORE_ENTRIES", STATUS_NO_MORE_ENTRIES
},
4695 { "NO_MORE_FILES", STATUS_NO_MORE_FILES
},
4696 { "NO_SUCH_DEVICE", STATUS_NO_SUCH_DEVICE
},
4697 { "NO_SUCH_FILE", STATUS_NO_SUCH_FILE
},
4698 { "NO_TOKEN", STATUS_NO_TOKEN
},
4699 { "OBJECT_NAME_COLLISION", STATUS_OBJECT_NAME_COLLISION
},
4700 { "OBJECT_NAME_EXISTS", STATUS_OBJECT_NAME_EXISTS
},
4701 { "OBJECT_NAME_INVALID", STATUS_OBJECT_NAME_INVALID
},
4702 { "OBJECT_NAME_NOT_FOUND", STATUS_OBJECT_NAME_NOT_FOUND
},
4703 { "OBJECT_PATH_INVALID", STATUS_OBJECT_PATH_INVALID
},
4704 { "OBJECT_PATH_NOT_FOUND", STATUS_OBJECT_PATH_NOT_FOUND
},
4705 { "OBJECT_PATH_SYNTAX_BAD", STATUS_OBJECT_PATH_SYNTAX_BAD
},
4706 { "OBJECT_TYPE_MISMATCH", STATUS_OBJECT_TYPE_MISMATCH
},
4707 { "PENDING", STATUS_PENDING
},
4708 { "PIPE_BUSY", STATUS_PIPE_BUSY
},
4709 { "PIPE_CONNECTED", STATUS_PIPE_CONNECTED
},
4710 { "PIPE_DISCONNECTED", STATUS_PIPE_DISCONNECTED
},
4711 { "PIPE_LISTENING", STATUS_PIPE_LISTENING
},
4712 { "PIPE_NOT_AVAILABLE", STATUS_PIPE_NOT_AVAILABLE
},
4713 { "PRIVILEGE_NOT_HELD", STATUS_PRIVILEGE_NOT_HELD
},
4714 { "PROCESS_IS_TERMINATING", STATUS_PROCESS_IS_TERMINATING
},
4715 { "SECTION_TOO_BIG", STATUS_SECTION_TOO_BIG
},
4716 { "SEMAPHORE_LIMIT_EXCEEDED", STATUS_SEMAPHORE_LIMIT_EXCEEDED
},
4717 { "SHARING_VIOLATION", STATUS_SHARING_VIOLATION
},
4718 { "SHUTDOWN_IN_PROGRESS", STATUS_SHUTDOWN_IN_PROGRESS
},
4719 { "SUSPEND_COUNT_EXCEEDED", STATUS_SUSPEND_COUNT_EXCEEDED
},
4720 { "THREAD_IS_TERMINATING", STATUS_THREAD_IS_TERMINATING
},
4721 { "TIMEOUT", STATUS_TIMEOUT
},
4722 { "TOO_MANY_OPENED_FILES", STATUS_TOO_MANY_OPENED_FILES
},
4723 { "UNSUCCESSFUL", STATUS_UNSUCCESSFUL
},
4724 { "USER_APC", STATUS_USER_APC
},
4725 { "USER_MAPPED_FILE", STATUS_USER_MAPPED_FILE
},
4726 { "VOLUME_DISMOUNTED", STATUS_VOLUME_DISMOUNTED
},
4727 { "WAS_LOCKED", STATUS_WAS_LOCKED
},
4731 /* ### make_requests end ### */
4732 /* Everything above this line is generated automatically by tools/make_requests */
4734 static const char *get_status_name( unsigned int status
)
4737 static char buffer
[10];
4741 for (i
= 0; status_names
[i
].name
; i
++)
4742 if (status_names
[i
].value
== status
) return status_names
[i
].name
;
4744 sprintf( buffer
, "%x", status
);
4748 void trace_request(void)
4750 enum request req
= current
->req
.request_header
.req
;
4751 if (req
< REQ_NB_REQUESTS
)
4753 fprintf( stderr
, "%04x: %s(", current
->id
, req_names
[req
] );
4754 if (req_dumpers
[req
])
4756 cur_data
= get_req_data();
4757 cur_size
= get_req_data_size();
4758 req_dumpers
[req
]( ¤t
->req
);
4760 fprintf( stderr
, " )\n" );
4762 else fprintf( stderr
, "%04x: %d(?)\n", current
->id
, req
);
4765 void trace_reply( enum request req
, const union generic_reply
*reply
)
4767 if (req
< REQ_NB_REQUESTS
)
4769 fprintf( stderr
, "%04x: %s() = %s",
4770 current
->id
, req_names
[req
], get_status_name(current
->error
) );
4771 if (reply_dumpers
[req
])
4773 fprintf( stderr
, " {" );
4774 cur_data
= current
->reply_data
;
4775 cur_size
= reply
->reply_header
.reply_size
;
4776 reply_dumpers
[req
]( reply
);
4777 fprintf( stderr
, " }" );
4779 fputc( '\n', stderr
);
4781 else fprintf( stderr
, "%04x: %d() = %s\n",
4782 current
->id
, req
, get_status_name(current
->error
) );