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
44 static const void *cur_data
;
45 static data_size_t cur_size
;
47 static const char *get_status_name( unsigned int status
);
49 /* utility functions */
51 static inline void remove_data( data_size_t size
)
53 cur_data
= (const char *)cur_data
+ size
;
57 static void dump_uints( const int *ptr
, int len
)
62 fprintf( stderr
, "%08x", *ptr
++ );
63 if (--len
) fputc( ',', stderr
);
68 static void dump_timeout( const char *prefix
, const timeout_t
*time
)
70 fprintf( stderr
, "%s%s", prefix
, get_timeout_str(*time
) );
73 static void dump_uint64( const char *prefix
, const unsigned __int64
*val
)
75 if ((unsigned int)*val
!= *val
)
76 fprintf( stderr
, "%s%x%08x", prefix
, (unsigned int)(*val
>> 32), (unsigned int)*val
);
78 fprintf( stderr
, "%s%08x", prefix
, (unsigned int)*val
);
81 static void dump_rectangle( const char *prefix
, const rectangle_t
*rect
)
83 fprintf( stderr
, "%s{%d,%d;%d,%d}", prefix
,
84 rect
->left
, rect
->top
, rect
->right
, rect
->bottom
);
87 static void dump_char_info( const char *prefix
, const char_info_t
*info
)
89 fprintf( stderr
, "%s{'", prefix
);
90 dump_strW( &info
->ch
, 1, stderr
, "\'\'" );
91 fprintf( stderr
, "',%04x}", info
->attr
);
94 static void dump_ioctl_code( const char *prefix
, const ioctl_code_t
*code
)
98 #define CASE(c) case c: fprintf( stderr, "%s%s", prefix, #c ); break
99 CASE(FSCTL_DISMOUNT_VOLUME
);
100 CASE(FSCTL_PIPE_DISCONNECT
);
101 CASE(FSCTL_PIPE_LISTEN
);
102 CASE(FSCTL_PIPE_WAIT
);
103 default: fprintf( stderr
, "%s%08x", prefix
, *code
); break;
108 static void dump_cpu_type( const char *prefix
, const cpu_type_t
*code
)
112 #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_luid( const char *prefix
, const luid_t
*luid
)
298 fprintf( stderr
, "%s%d.%u", prefix
, luid
->high_part
, luid
->low_part
);
301 static void dump_varargs_ints( const char *prefix
, data_size_t size
)
303 const int *data
= cur_data
;
304 data_size_t len
= size
/ sizeof(*data
);
306 fprintf( stderr
,"%s{", prefix
);
309 fprintf( stderr
, "%d", *data
++ );
310 if (--len
) fputc( ',', stderr
);
312 fputc( '}', stderr
);
316 static void dump_varargs_uints64( const char *prefix
, data_size_t size
)
318 const unsigned __int64
*data
= cur_data
;
319 data_size_t len
= size
/ sizeof(*data
);
321 fprintf( stderr
,"%s{", prefix
);
324 dump_uint64( "", data
++ );
325 if (--len
) fputc( ',', stderr
);
327 fputc( '}', stderr
);
331 static void dump_varargs_apc_result( const char *prefix
, data_size_t size
)
333 const apc_result_t
*result
= cur_data
;
335 if (size
>= sizeof(*result
))
337 dump_apc_result( prefix
, result
);
338 size
= sizeof(*result
);
343 static void dump_varargs_handles( const char *prefix
, data_size_t size
)
345 const obj_handle_t
*data
= cur_data
;
346 data_size_t len
= size
/ sizeof(*data
);
348 fprintf( stderr
,"%s{", prefix
);
351 fprintf( stderr
, "%04x", *data
++ );
352 if (--len
) fputc( ',', stderr
);
354 fputc( '}', stderr
);
358 static void dump_varargs_user_handles( const char *prefix
, data_size_t size
)
360 const user_handle_t
*data
= cur_data
;
361 data_size_t len
= size
/ sizeof(*data
);
363 fprintf( stderr
,"%s{", prefix
);
366 fprintf( stderr
, "%08x", *data
++ );
367 if (--len
) fputc( ',', stderr
);
369 fputc( '}', stderr
);
373 static void dump_varargs_bytes( const char *prefix
, data_size_t size
)
375 const unsigned char *data
= cur_data
;
376 data_size_t len
= size
;
378 fprintf( stderr
,"%s{", prefix
);
381 fprintf( stderr
, "%02x", *data
++ );
382 if (--len
) fputc( ',', stderr
);
384 fputc( '}', stderr
);
388 static void dump_varargs_string( const char *prefix
, data_size_t size
)
390 fprintf( stderr
, "%s\"%.*s\"", prefix
, (int)size
, (const char *)cur_data
);
394 static void dump_varargs_unicode_str( const char *prefix
, data_size_t size
)
396 fprintf( stderr
, "%sL\"", prefix
);
397 dump_strW( cur_data
, size
/ sizeof(WCHAR
), stderr
, "\"\"" );
398 fputc( '\"', stderr
);
402 static void dump_varargs_context( const char *prefix
, data_size_t size
)
404 const context_t
*context
= cur_data
;
410 fprintf( stderr
, "%s{}", prefix
);
413 size
= min( size
, sizeof(ctx
) );
414 memset( &ctx
, 0, sizeof(ctx
) );
415 memcpy( &ctx
, context
, size
);
417 fprintf( stderr
,"%s{", prefix
);
418 dump_cpu_type( "cpu=", &ctx
.cpu
);
422 if (ctx
.flags
& SERVER_CTX_CONTROL
)
423 fprintf( stderr
, ",eip=%08x,esp=%08x,ebp=%08x,eflags=%08x,cs=%04x,ss=%04x",
424 ctx
.ctl
.i386_regs
.eip
, ctx
.ctl
.i386_regs
.esp
, ctx
.ctl
.i386_regs
.ebp
,
425 ctx
.ctl
.i386_regs
.eflags
, ctx
.ctl
.i386_regs
.cs
, ctx
.ctl
.i386_regs
.ss
);
426 if (ctx
.flags
& SERVER_CTX_SEGMENTS
)
427 fprintf( stderr
, ",ds=%04x,es=%04x,fs=%04x,gs=%04x",
428 ctx
.seg
.i386_regs
.ds
, ctx
.seg
.i386_regs
.es
,
429 ctx
.seg
.i386_regs
.fs
, ctx
.seg
.i386_regs
.gs
);
430 if (ctx
.flags
& SERVER_CTX_INTEGER
)
431 fprintf( stderr
, ",eax=%08x,ebx=%08x,ecx=%08x,edx=%08x,esi=%08x,edi=%08x",
432 ctx
.integer
.i386_regs
.eax
, ctx
.integer
.i386_regs
.ebx
, ctx
.integer
.i386_regs
.ecx
,
433 ctx
.integer
.i386_regs
.edx
, ctx
.integer
.i386_regs
.esi
, ctx
.integer
.i386_regs
.edi
);
434 if (ctx
.flags
& SERVER_CTX_DEBUG_REGISTERS
)
435 fprintf( stderr
, ",dr0=%08x,dr1=%08x,dr2=%08x,dr3=%08x,dr6=%08x,dr7=%08x",
436 ctx
.debug
.i386_regs
.dr0
, ctx
.debug
.i386_regs
.dr1
, ctx
.debug
.i386_regs
.dr2
,
437 ctx
.debug
.i386_regs
.dr3
, ctx
.debug
.i386_regs
.dr6
, ctx
.debug
.i386_regs
.dr7
);
438 if (ctx
.flags
& SERVER_CTX_FLOATING_POINT
)
440 fprintf( stderr
, "fp.ctrl=%08x,fp.status=%08x,fp.tag=%08x,fp.err_off=%08x,fp.err_sel=%08x",
441 ctx
.fp
.i386_regs
.ctrl
, ctx
.fp
.i386_regs
.status
, ctx
.fp
.i386_regs
.tag
,
442 ctx
.fp
.i386_regs
.err_off
, ctx
.fp
.i386_regs
.err_sel
);
443 fprintf( stderr
, ",fp.data_off=%08x,fp.data_sel=%08x,fp.cr0npx=%08x",
444 ctx
.fp
.i386_regs
.data_off
, ctx
.fp
.i386_regs
.data_sel
, ctx
.fp
.i386_regs
.cr0npx
);
445 for (i
= 0; i
< 8; i
++)
446 fprintf( stderr
, ",fp.reg%u=%Lg", i
, *(long double *)&ctx
.fp
.i386_regs
.regs
[10*i
] );
448 if (ctx
.flags
& SERVER_CTX_EXTENDED_REGISTERS
)
450 fprintf( stderr
, ",extended=" );
451 dump_uints( (const int *)ctx
.ext
.i386_regs
, sizeof(ctx
.ext
.i386_regs
) / sizeof(int) );
455 if (ctx
.flags
& SERVER_CTX_CONTROL
)
457 dump_uint64( ",rip=", &ctx
.ctl
.x86_64_regs
.rip
);
458 dump_uint64( ",rbp=", &ctx
.ctl
.x86_64_regs
.rbp
);
459 dump_uint64( ",rsp=", &ctx
.ctl
.x86_64_regs
.rsp
);
460 fprintf( stderr
, ",cs=%04x,ss=%04x,flags=%08x",
461 ctx
.ctl
.x86_64_regs
.cs
, ctx
.ctl
.x86_64_regs
.ss
, ctx
.ctl
.x86_64_regs
.flags
);
463 if (ctx
.flags
& SERVER_CTX_INTEGER
)
465 dump_uint64( ",rax=", &ctx
.integer
.x86_64_regs
.rax
);
466 dump_uint64( ",rbx=", &ctx
.integer
.x86_64_regs
.rbx
);
467 dump_uint64( ",rcx=", &ctx
.integer
.x86_64_regs
.rcx
);
468 dump_uint64( ",rdx=", &ctx
.integer
.x86_64_regs
.rdx
);
469 dump_uint64( ",rsi=", &ctx
.integer
.x86_64_regs
.rsi
);
470 dump_uint64( ",rdi=", &ctx
.integer
.x86_64_regs
.rdi
);
471 dump_uint64( ",r8=", &ctx
.integer
.x86_64_regs
.r8
);
472 dump_uint64( ",r9=", &ctx
.integer
.x86_64_regs
.r9
);
473 dump_uint64( ",r10=", &ctx
.integer
.x86_64_regs
.r10
);
474 dump_uint64( ",r11=", &ctx
.integer
.x86_64_regs
.r11
);
475 dump_uint64( ",r12=", &ctx
.integer
.x86_64_regs
.r12
);
476 dump_uint64( ",r13=", &ctx
.integer
.x86_64_regs
.r13
);
477 dump_uint64( ",r14=", &ctx
.integer
.x86_64_regs
.r14
);
478 dump_uint64( ",r15=", &ctx
.integer
.x86_64_regs
.r15
);
480 if (ctx
.flags
& SERVER_CTX_SEGMENTS
)
481 fprintf( stderr
, ",ds=%04x,es=%04x,fs=%04x,gs=%04x",
482 ctx
.seg
.x86_64_regs
.ds
, ctx
.seg
.x86_64_regs
.es
,
483 ctx
.seg
.x86_64_regs
.fs
, ctx
.seg
.x86_64_regs
.gs
);
484 if (ctx
.flags
& SERVER_CTX_DEBUG_REGISTERS
)
486 dump_uint64( ",dr0=", &ctx
.debug
.x86_64_regs
.dr0
);
487 dump_uint64( ",dr1=", &ctx
.debug
.x86_64_regs
.dr1
);
488 dump_uint64( ",dr2=", &ctx
.debug
.x86_64_regs
.dr2
);
489 dump_uint64( ",dr3=", &ctx
.debug
.x86_64_regs
.dr3
);
490 dump_uint64( ",dr6=", &ctx
.debug
.x86_64_regs
.dr6
);
491 dump_uint64( ",dr7=", &ctx
.debug
.x86_64_regs
.dr7
);
493 if (ctx
.flags
& SERVER_CTX_FLOATING_POINT
)
495 for (i
= 0; i
< 32; i
++)
496 fprintf( stderr
, ",fp%u=%08x%08x%08x%08x", i
,
497 (unsigned int)(ctx
.fp
.x86_64_regs
.fpregs
[i
].high
>> 32),
498 (unsigned int)ctx
.fp
.x86_64_regs
.fpregs
[i
].high
,
499 (unsigned int)(ctx
.fp
.x86_64_regs
.fpregs
[i
].low
>> 32),
500 (unsigned int)ctx
.fp
.x86_64_regs
.fpregs
[i
].low
);
504 if (ctx
.flags
& SERVER_CTX_CONTROL
)
506 dump_uint64( ",fir=", &ctx
.ctl
.alpha_regs
.fir
);
507 fprintf( stderr
, ",psr=%08x", ctx
.ctl
.alpha_regs
.psr
);
509 if (ctx
.flags
& SERVER_CTX_INTEGER
)
511 dump_uint64( ",v0=", &ctx
.integer
.alpha_regs
.v0
);
512 dump_uint64( ",t0=", &ctx
.integer
.alpha_regs
.t0
);
513 dump_uint64( ",t1=", &ctx
.integer
.alpha_regs
.t1
);
514 dump_uint64( ",t2=", &ctx
.integer
.alpha_regs
.t2
);
515 dump_uint64( ",t3=", &ctx
.integer
.alpha_regs
.t3
);
516 dump_uint64( ",t4=", &ctx
.integer
.alpha_regs
.t4
);
517 dump_uint64( ",t5=", &ctx
.integer
.alpha_regs
.t5
);
518 dump_uint64( ",t6=", &ctx
.integer
.alpha_regs
.t6
);
519 dump_uint64( ",t7=", &ctx
.integer
.alpha_regs
.t7
);
520 dump_uint64( ",t8=", &ctx
.integer
.alpha_regs
.t8
);
521 dump_uint64( ",t9=", &ctx
.integer
.alpha_regs
.t9
);
522 dump_uint64( ",t10=", &ctx
.integer
.alpha_regs
.t10
);
523 dump_uint64( ",t11=", &ctx
.integer
.alpha_regs
.t11
);
524 dump_uint64( ",t12=", &ctx
.integer
.alpha_regs
.t12
);
525 dump_uint64( ",s0=", &ctx
.integer
.alpha_regs
.s0
);
526 dump_uint64( ",s1=", &ctx
.integer
.alpha_regs
.s1
);
527 dump_uint64( ",s2=", &ctx
.integer
.alpha_regs
.s2
);
528 dump_uint64( ",s3=", &ctx
.integer
.alpha_regs
.s3
);
529 dump_uint64( ",s4=", &ctx
.integer
.alpha_regs
.s4
);
530 dump_uint64( ",s5=", &ctx
.integer
.alpha_regs
.s5
);
531 dump_uint64( ",s6=", &ctx
.integer
.alpha_regs
.s6
);
532 dump_uint64( ",a0=", &ctx
.integer
.alpha_regs
.a0
);
533 dump_uint64( ",a1=", &ctx
.integer
.alpha_regs
.a1
);
534 dump_uint64( ",a2=", &ctx
.integer
.alpha_regs
.a2
);
535 dump_uint64( ",a3=", &ctx
.integer
.alpha_regs
.a3
);
536 dump_uint64( ",a4=", &ctx
.integer
.alpha_regs
.a4
);
537 dump_uint64( ",a5=", &ctx
.integer
.alpha_regs
.a5
);
538 dump_uint64( ",at=", &ctx
.integer
.alpha_regs
.at
);
540 if (ctx
.flags
& SERVER_CTX_FLOATING_POINT
)
542 for (i
= 0; i
< 32; i
++)
544 fprintf( stderr
, ",f%u", i
);
545 dump_uint64( "=", &ctx
.fp
.alpha_regs
.f
[i
] );
547 dump_uint64( ",fpcr=", &ctx
.fp
.alpha_regs
.fpcr
);
548 dump_uint64( ",softfpcr=", &ctx
.fp
.alpha_regs
.softfpcr
);
552 if (ctx
.flags
& SERVER_CTX_CONTROL
)
553 fprintf( stderr
, ",iar=%08x,msr=%08x,ctr=%08x,lr=%08x,dar=%08x,dsisr=%08x,trap=%08x",
554 ctx
.ctl
.powerpc_regs
.iar
, ctx
.ctl
.powerpc_regs
.msr
, ctx
.ctl
.powerpc_regs
.ctr
,
555 ctx
.ctl
.powerpc_regs
.lr
, ctx
.ctl
.powerpc_regs
.dar
, ctx
.ctl
.powerpc_regs
.dsisr
,
556 ctx
.ctl
.powerpc_regs
.trap
);
557 if (ctx
.flags
& SERVER_CTX_INTEGER
)
559 for (i
= 0; i
< 32; i
++) fprintf( stderr
, ",gpr%u=%08x", i
, ctx
.integer
.powerpc_regs
.gpr
[i
] );
560 fprintf( stderr
, ",cr=%08x,xer=%08x",
561 ctx
.integer
.powerpc_regs
.cr
, ctx
.integer
.powerpc_regs
.xer
);
563 if (ctx
.flags
& SERVER_CTX_DEBUG_REGISTERS
)
564 for (i
= 0; i
< 8; i
++) fprintf( stderr
, ",dr%u=%08x", i
, ctx
.debug
.powerpc_regs
.dr
[i
] );
565 if (ctx
.flags
& SERVER_CTX_FLOATING_POINT
)
567 for (i
= 0; i
< 32; i
++) fprintf( stderr
, ",fpr%u=%g", i
, ctx
.fp
.powerpc_regs
.fpr
[i
] );
568 fprintf( stderr
, ",fpscr=%g", ctx
.fp
.powerpc_regs
.fpscr
);
572 if (ctx
.flags
& SERVER_CTX_CONTROL
)
573 fprintf( stderr
, ",psr=%08x,pc=%08x,npc=%08x,y=%08x,wim=%08x,tbr=%08x",
574 ctx
.ctl
.sparc_regs
.psr
, ctx
.ctl
.sparc_regs
.pc
, ctx
.ctl
.sparc_regs
.npc
,
575 ctx
.ctl
.sparc_regs
.y
, ctx
.ctl
.sparc_regs
.wim
, ctx
.ctl
.sparc_regs
.tbr
);
576 if (ctx
.flags
& SERVER_CTX_INTEGER
)
578 for (i
= 0; i
< 8; i
++) fprintf( stderr
, ",g%u=%08x", i
, ctx
.integer
.sparc_regs
.g
[i
] );
579 for (i
= 0; i
< 8; i
++) fprintf( stderr
, ",o%u=%08x", i
, ctx
.integer
.sparc_regs
.o
[i
] );
580 for (i
= 0; i
< 8; i
++) fprintf( stderr
, ",l%u=%08x", i
, ctx
.integer
.sparc_regs
.l
[i
] );
581 for (i
= 0; i
< 8; i
++) fprintf( stderr
, ",i%u=%08x", i
, ctx
.integer
.sparc_regs
.i
[i
] );
585 fputc( '}', stderr
);
589 static void dump_varargs_debug_event( const char *prefix
, data_size_t size
)
596 fprintf( stderr
, "%s{}", prefix
);
599 size
= min( size
, sizeof(event
) );
600 memset( &event
, 0, sizeof(event
) );
601 memcpy( &event
, cur_data
, size
);
605 case EXCEPTION_DEBUG_EVENT
:
606 fprintf( stderr
, "%s{exception,first=%d,exc_code=%08x,flags=%08x", prefix
,
607 event
.exception
.first
, event
.exception
.exc_code
, event
.exception
.flags
);
608 dump_uint64( ",record=", &event
.exception
.record
);
609 dump_uint64( ",address=", &event
.exception
.address
);
610 fprintf( stderr
, ",params={" );
611 event
.exception
.nb_params
= min( event
.exception
.nb_params
, EXCEPTION_MAXIMUM_PARAMETERS
);
612 for (i
= 0; i
< event
.exception
.nb_params
; i
++)
614 dump_uint64( "", &event
.exception
.params
[i
] );
615 if (i
< event
.exception
.nb_params
) fputc( ',', stderr
);
617 fprintf( stderr
, "}}" );
619 case CREATE_THREAD_DEBUG_EVENT
:
620 fprintf( stderr
, "%s{create_thread,thread=%04x", prefix
, event
.create_thread
.handle
);
621 dump_uint64( ",teb=", &event
.create_thread
.teb
);
622 dump_uint64( ",start=", &event
.create_thread
.start
);
623 fputc( '}', stderr
);
625 case CREATE_PROCESS_DEBUG_EVENT
:
626 fprintf( stderr
, "%s{create_process,file=%04x,process=%04x,thread=%04x", prefix
,
627 event
.create_process
.file
, event
.create_process
.process
,
628 event
.create_process
.thread
);
629 dump_uint64( ",base=", &event
.create_process
.base
);
630 fprintf( stderr
, ",offset=%d,size=%d",
631 event
.create_process
.dbg_offset
, event
.create_process
.dbg_size
);
632 dump_uint64( ",teb=", &event
.create_process
.teb
);
633 dump_uint64( ",start=", &event
.create_process
.start
);
634 dump_uint64( ",name=", &event
.create_process
.name
);
635 fprintf( stderr
, ",unicode=%d}", event
.create_process
.unicode
);
637 case EXIT_THREAD_DEBUG_EVENT
:
638 fprintf( stderr
, "%s{exit_thread,code=%d}", prefix
, event
.exit
.exit_code
);
640 case EXIT_PROCESS_DEBUG_EVENT
:
641 fprintf( stderr
, "%s{exit_process,code=%d}", prefix
, event
.exit
.exit_code
);
643 case LOAD_DLL_DEBUG_EVENT
:
644 fprintf( stderr
, "%s{load_dll,file=%04x", prefix
, event
.load_dll
.handle
);
645 dump_uint64( ",base=", &event
.load_dll
.base
);
646 fprintf( stderr
, ",offset=%d,size=%d",
647 event
.load_dll
.dbg_offset
, event
.load_dll
.dbg_size
);
648 dump_uint64( ",name=", &event
.load_dll
.name
);
649 fprintf( stderr
, ",unicode=%d}", event
.load_dll
.unicode
);
651 case UNLOAD_DLL_DEBUG_EVENT
:
652 fprintf( stderr
, "%s{unload_dll", prefix
);
653 dump_uint64( ",base=", &event
.unload_dll
.base
);
654 fputc( '}', stderr
);
656 case OUTPUT_DEBUG_STRING_EVENT
:
657 fprintf( stderr
, "%s{output_string", prefix
);
658 dump_uint64( ",string=", &event
.output_string
.string
);
659 fprintf( stderr
, ",len=%u}", event
.output_string
.length
);
662 fprintf( stderr
, "%s{rip,err=%d,type=%d}", prefix
,
663 event
.rip_info
.error
, event
.rip_info
.type
);
665 case 0: /* zero is the code returned on timeouts */
666 fprintf( stderr
, "%s{}", prefix
);
669 fprintf( stderr
, "%s{code=??? (%d)}", prefix
, event
.code
);
675 /* dump a unicode string contained in a buffer; helper for dump_varargs_startup_info */
676 static data_size_t
dump_inline_unicode_string( const char *prefix
, data_size_t pos
, data_size_t len
, data_size_t total_size
)
678 fputs( prefix
, stderr
);
679 if (pos
>= total_size
) return pos
;
680 if (len
> total_size
- pos
) len
= total_size
- pos
;
681 len
/= sizeof(WCHAR
);
682 dump_strW( (const WCHAR
*)cur_data
+ pos
/sizeof(WCHAR
), len
, stderr
, "\"\"" );
683 return pos
+ len
* sizeof(WCHAR
);
686 static void dump_varargs_startup_info( const char *prefix
, data_size_t size
)
689 data_size_t pos
= sizeof(info
);
691 memset( &info
, 0, sizeof(info
) );
692 memcpy( &info
, cur_data
, min( size
, sizeof(info
) ));
695 "%s{debug_flags=%x,console_flags=%x,console=%04x,hstdin=%04x,hstdout=%04x,hstderr=%04x,"
696 "x=%u,y=%u,xsize=%u,ysize=%u,xchars=%u,ychars=%u,attribute=%02x,flags=%x,show=%u",
697 prefix
, info
.debug_flags
, info
.console_flags
, info
.console
,
698 info
.hstdin
, info
.hstdout
, info
.hstderr
, info
.x
, info
.y
, info
.xsize
, info
.ysize
,
699 info
.xchars
, info
.ychars
, info
.attribute
, info
.flags
, info
.show
);
700 pos
= dump_inline_unicode_string( ",curdir=L\"", pos
, info
.curdir_len
, size
);
701 pos
= dump_inline_unicode_string( "\",dllpath=L\"", pos
, info
.dllpath_len
, size
);
702 pos
= dump_inline_unicode_string( "\",imagepath=L\"", pos
, info
.imagepath_len
, size
);
703 pos
= dump_inline_unicode_string( "\",cmdline=L\"", pos
, info
.cmdline_len
, size
);
704 pos
= dump_inline_unicode_string( "\",title=L\"", pos
, info
.title_len
, size
);
705 pos
= dump_inline_unicode_string( "\",desktop=L\"", pos
, info
.desktop_len
, size
);
706 pos
= dump_inline_unicode_string( "\",shellinfo=L\"", pos
, info
.shellinfo_len
, size
);
707 pos
= dump_inline_unicode_string( "\",runtime=L\"", pos
, info
.runtime_len
, size
);
708 fprintf( stderr
, "\"}" );
712 static void dump_varargs_input_records( const char *prefix
, data_size_t size
)
714 const INPUT_RECORD
*rec
= cur_data
;
715 data_size_t len
= size
/ sizeof(*rec
);
717 fprintf( stderr
,"%s{", prefix
);
720 fprintf( stderr
, "{%04x,...}", rec
->EventType
);
722 if (--len
) fputc( ',', stderr
);
724 fputc( '}', stderr
);
728 static void dump_varargs_rectangles( const char *prefix
, data_size_t size
)
730 const rectangle_t
*rect
= cur_data
;
731 data_size_t len
= size
/ sizeof(*rect
);
733 fprintf( stderr
,"%s{", prefix
);
736 dump_rectangle( "", rect
++ );
737 if (--len
) fputc( ',', stderr
);
739 fputc( '}', stderr
);
743 static void dump_varargs_message_data( const char *prefix
, data_size_t size
)
745 /* FIXME: dump the structured data */
746 dump_varargs_bytes( prefix
, size
);
749 static void dump_varargs_properties( const char *prefix
, data_size_t size
)
751 const property_data_t
*prop
= cur_data
;
752 data_size_t len
= size
/ sizeof(*prop
);
754 fprintf( stderr
,"%s{", prefix
);
757 fprintf( stderr
, "{atom=%04x,str=%d", prop
->atom
, prop
->string
);
758 dump_uint64( ",data=", &prop
->data
);
759 fputc( '}', stderr
);
761 if (--len
) fputc( ',', stderr
);
763 fputc( '}', stderr
);
767 static void dump_varargs_LUID_AND_ATTRIBUTES( const char *prefix
, data_size_t size
)
769 const LUID_AND_ATTRIBUTES
*lat
= cur_data
;
770 data_size_t len
= size
/ sizeof(*lat
);
772 fprintf( stderr
,"%s{", prefix
);
775 fprintf( stderr
, "{luid=%08x%08x,attr=%x}",
776 lat
->Luid
.HighPart
, lat
->Luid
.LowPart
, lat
->Attributes
);
778 if (--len
) fputc( ',', stderr
);
780 fputc( '}', stderr
);
784 static void dump_inline_sid( const char *prefix
, const SID
*sid
, data_size_t size
)
789 if ((FIELD_OFFSET(SID
, SubAuthority
[0]) > size
) ||
790 (FIELD_OFFSET(SID
, SubAuthority
[sid
->SubAuthorityCount
]) > size
))
792 fprintf( stderr
, "<invalid sid>" );
796 fprintf( stderr
,"%s{", prefix
);
797 fprintf( stderr
, "S-%u-%u", sid
->Revision
, MAKELONG(
798 MAKEWORD( sid
->IdentifierAuthority
.Value
[5],
799 sid
->IdentifierAuthority
.Value
[4] ),
800 MAKEWORD( sid
->IdentifierAuthority
.Value
[3],
801 sid
->IdentifierAuthority
.Value
[2] ) ) );
802 for (i
= 0; i
< sid
->SubAuthorityCount
; i
++)
803 fprintf( stderr
, "-%u", sid
->SubAuthority
[i
] );
804 fputc( '}', stderr
);
807 static void dump_varargs_SID( const char *prefix
, data_size_t size
)
809 const SID
*sid
= cur_data
;
810 dump_inline_sid( prefix
, sid
, size
);
814 static void dump_inline_acl( const char *prefix
, const ACL
*acl
, data_size_t size
)
816 const ACE_HEADER
*ace
;
819 fprintf( stderr
,"%s{", prefix
);
822 if (size
< sizeof(ACL
))
824 fprintf( stderr
, "<invalid acl>}\n" );
828 ace
= (const ACE_HEADER
*)(acl
+ 1);
829 for (i
= 0; i
< acl
->AceCount
; i
++)
831 const SID
*sid
= NULL
;
832 data_size_t sid_size
= 0;
834 if (size
< sizeof(ACE_HEADER
))
836 if (size
< ace
->AceSize
)
838 size
-= ace
->AceSize
;
839 if (i
!= 0) fputc( ',', stderr
);
840 fprintf( stderr
, "{AceType=" );
841 switch (ace
->AceType
)
843 case ACCESS_DENIED_ACE_TYPE
:
844 sid
= (const SID
*)&((const ACCESS_DENIED_ACE
*)ace
)->SidStart
;
845 sid_size
= ace
->AceSize
- FIELD_OFFSET(ACCESS_DENIED_ACE
, SidStart
);
846 fprintf( stderr
, "ACCESS_DENIED_ACE_TYPE,Mask=%x",
847 ((const ACCESS_DENIED_ACE
*)ace
)->Mask
);
849 case ACCESS_ALLOWED_ACE_TYPE
:
850 sid
= (const SID
*)&((const ACCESS_ALLOWED_ACE
*)ace
)->SidStart
;
851 sid_size
= ace
->AceSize
- FIELD_OFFSET(ACCESS_ALLOWED_ACE
, SidStart
);
852 fprintf( stderr
, "ACCESS_ALLOWED_ACE_TYPE,Mask=%x",
853 ((const ACCESS_ALLOWED_ACE
*)ace
)->Mask
);
855 case SYSTEM_AUDIT_ACE_TYPE
:
856 sid
= (const SID
*)&((const SYSTEM_AUDIT_ACE
*)ace
)->SidStart
;
857 sid_size
= ace
->AceSize
- FIELD_OFFSET(SYSTEM_AUDIT_ACE
, SidStart
);
858 fprintf( stderr
, "SYSTEM_AUDIT_ACE_TYPE,Mask=%x",
859 ((const SYSTEM_AUDIT_ACE
*)ace
)->Mask
);
861 case SYSTEM_ALARM_ACE_TYPE
:
862 sid
= (const SID
*)&((const SYSTEM_ALARM_ACE
*)ace
)->SidStart
;
863 sid_size
= ace
->AceSize
- FIELD_OFFSET(SYSTEM_ALARM_ACE
, SidStart
);
864 fprintf( stderr
, "SYSTEM_ALARM_ACE_TYPE,Mask=%x",
865 ((const SYSTEM_ALARM_ACE
*)ace
)->Mask
);
868 fprintf( stderr
, "unknown<%d>", ace
->AceType
);
871 fprintf( stderr
, ",AceFlags=%x", ace
->AceFlags
);
873 dump_inline_sid( ",Sid=", sid
, sid_size
);
874 ace
= (const ACE_HEADER
*)((const char *)ace
+ ace
->AceSize
);
875 fputc( '}', stderr
);
878 fputc( '}', stderr
);
881 static void dump_varargs_ACL( const char *prefix
, data_size_t size
)
883 const ACL
*acl
= cur_data
;
884 dump_inline_acl( prefix
, acl
, size
);
888 static void dump_inline_security_descriptor( const char *prefix
, const struct security_descriptor
*sd
, data_size_t size
)
890 fprintf( stderr
,"%s{", prefix
);
891 if (size
>= sizeof(struct security_descriptor
))
893 size_t offset
= sizeof(struct security_descriptor
);
894 fprintf( stderr
, "control=%08x", sd
->control
);
895 if ((sd
->owner_len
> FIELD_OFFSET(SID
, SubAuthority
[255])) || (offset
+ sd
->owner_len
> size
))
898 dump_inline_sid( ",owner=", (const SID
*)((const char *)sd
+ offset
), sd
->owner_len
);
900 fprintf( stderr
, ",owner=<not present>" );
901 offset
+= sd
->owner_len
;
902 if ((sd
->group_len
> FIELD_OFFSET(SID
, SubAuthority
[255])) || (offset
+ sd
->group_len
> size
))
905 dump_inline_sid( ",group=", (const SID
*)((const char *)sd
+ offset
), sd
->group_len
);
907 fprintf( stderr
, ",group=<not present>" );
908 offset
+= sd
->group_len
;
909 if ((sd
->sacl_len
>= MAX_ACL_LEN
) || (offset
+ sd
->sacl_len
> size
))
911 dump_inline_acl( ",sacl=", (const ACL
*)((const char *)sd
+ offset
), sd
->sacl_len
);
912 offset
+= sd
->sacl_len
;
913 if ((sd
->dacl_len
>= MAX_ACL_LEN
) || (offset
+ sd
->dacl_len
> size
))
915 dump_inline_acl( ",dacl=", (const ACL
*)((const char *)sd
+ offset
), sd
->dacl_len
);
916 offset
+= sd
->dacl_len
;
918 fputc( '}', stderr
);
921 static void dump_varargs_security_descriptor( const char *prefix
, data_size_t size
)
923 const struct security_descriptor
*sd
= cur_data
;
924 dump_inline_security_descriptor( prefix
, sd
, size
);
928 static void dump_varargs_token_groups( const char *prefix
, data_size_t size
)
930 const struct token_groups
*tg
= cur_data
;
932 fprintf( stderr
,"%s{", prefix
);
933 if (size
>= sizeof(struct token_groups
))
935 size_t offset
= sizeof(*tg
);
936 fprintf( stderr
, "count=%08x,", tg
->count
);
937 if (tg
->count
* sizeof(unsigned int) <= size
)
940 const unsigned int *attr
= (const unsigned int *)(tg
+ 1);
942 offset
+= tg
->count
* sizeof(unsigned int);
944 fputc( '[', stderr
);
945 for (i
= 0; i
< tg
->count
; i
++)
947 const SID
*sid
= (const SID
*)((const char *)cur_data
+ offset
);
949 fputc( ',', stderr
);
950 fputc( '{', stderr
);
951 fprintf( stderr
, "attributes=%08x", attr
[i
] );
952 dump_inline_sid( ",sid=", sid
, size
- offset
);
953 if ((offset
+ FIELD_OFFSET(SID
, SubAuthority
[0]) > size
) ||
954 (offset
+ FIELD_OFFSET(SID
, SubAuthority
[sid
->SubAuthorityCount
]) > size
))
956 offset
+= FIELD_OFFSET(SID
, SubAuthority
[sid
->SubAuthorityCount
]);
957 fputc( '}', stderr
);
959 fputc( ']', stderr
);
962 fputc( '}', stderr
);
965 static void dump_varargs_object_attributes( const char *prefix
, data_size_t size
)
967 const struct object_attributes
*objattr
= cur_data
;
969 fprintf( stderr
,"%s{", prefix
);
970 if (size
>= sizeof(struct object_attributes
))
973 fprintf( stderr
, "rootdir=%04x", objattr
->rootdir
);
974 if (objattr
->sd_len
> size
- sizeof(*objattr
) ||
975 objattr
->name_len
> size
- sizeof(*objattr
) - objattr
->sd_len
)
977 dump_inline_security_descriptor( ",sd=", (const struct security_descriptor
*)(objattr
+ 1), objattr
->sd_len
);
978 str
= (const WCHAR
*)objattr
+ (sizeof(*objattr
) + objattr
->sd_len
) / sizeof(WCHAR
);
979 fprintf( stderr
, ",name=L\"" );
980 dump_strW( str
, objattr
->name_len
/ sizeof(WCHAR
), stderr
, "\"\"" );
981 fputc( '\"', stderr
);
982 remove_data( ((sizeof(*objattr
) + objattr
->sd_len
) / sizeof(WCHAR
)) * sizeof(WCHAR
) +
985 fputc( '}', stderr
);
988 typedef void (*dump_func
)( const void *req
);
990 /* Everything below this line is generated automatically by tools/make_requests */
991 /* ### make_requests begin ### */
993 static void dump_new_process_request( const struct new_process_request
*req
)
995 fprintf( stderr
, " inherit_all=%d", req
->inherit_all
);
996 fprintf( stderr
, ", create_flags=%08x", req
->create_flags
);
997 fprintf( stderr
, ", socket_fd=%d", req
->socket_fd
);
998 fprintf( stderr
, ", exe_file=%04x", req
->exe_file
);
999 fprintf( stderr
, ", process_access=%08x", req
->process_access
);
1000 fprintf( stderr
, ", process_attr=%08x", req
->process_attr
);
1001 fprintf( stderr
, ", thread_access=%08x", req
->thread_access
);
1002 fprintf( stderr
, ", thread_attr=%08x", req
->thread_attr
);
1003 fprintf( stderr
, ", info_size=%u", req
->info_size
);
1004 dump_varargs_startup_info( ", info=", min(cur_size
,req
->info_size
) );
1005 dump_varargs_unicode_str( ", env=", cur_size
);
1008 static void dump_new_process_reply( const struct new_process_reply
*req
)
1010 fprintf( stderr
, " info=%04x", req
->info
);
1011 fprintf( stderr
, ", pid=%04x", req
->pid
);
1012 fprintf( stderr
, ", phandle=%04x", req
->phandle
);
1013 fprintf( stderr
, ", tid=%04x", req
->tid
);
1014 fprintf( stderr
, ", thandle=%04x", req
->thandle
);
1017 static void dump_get_new_process_info_request( const struct get_new_process_info_request
*req
)
1019 fprintf( stderr
, " info=%04x", req
->info
);
1022 static void dump_get_new_process_info_reply( const struct get_new_process_info_reply
*req
)
1024 fprintf( stderr
, " success=%d", req
->success
);
1025 fprintf( stderr
, ", exit_code=%d", req
->exit_code
);
1028 static void dump_new_thread_request( const struct new_thread_request
*req
)
1030 fprintf( stderr
, " access=%08x", req
->access
);
1031 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1032 fprintf( stderr
, ", suspend=%d", req
->suspend
);
1033 fprintf( stderr
, ", request_fd=%d", req
->request_fd
);
1036 static void dump_new_thread_reply( const struct new_thread_reply
*req
)
1038 fprintf( stderr
, " tid=%04x", req
->tid
);
1039 fprintf( stderr
, ", handle=%04x", req
->handle
);
1042 static void dump_get_startup_info_request( const struct get_startup_info_request
*req
)
1046 static void dump_get_startup_info_reply( const struct get_startup_info_reply
*req
)
1048 fprintf( stderr
, " exe_file=%04x", req
->exe_file
);
1049 fprintf( stderr
, ", info_size=%u", req
->info_size
);
1050 dump_varargs_startup_info( ", info=", min(cur_size
,req
->info_size
) );
1051 dump_varargs_unicode_str( ", env=", cur_size
);
1054 static void dump_init_process_done_request( const struct init_process_done_request
*req
)
1056 fprintf( stderr
, " gui=%d", req
->gui
);
1057 dump_uint64( ", module=", &req
->module
);
1058 dump_uint64( ", ldt_copy=", &req
->ldt_copy
);
1059 dump_uint64( ", entry=", &req
->entry
);
1062 static void dump_init_thread_request( const struct init_thread_request
*req
)
1064 fprintf( stderr
, " unix_pid=%d", req
->unix_pid
);
1065 fprintf( stderr
, ", unix_tid=%d", req
->unix_tid
);
1066 fprintf( stderr
, ", debug_level=%d", req
->debug_level
);
1067 dump_uint64( ", teb=", &req
->teb
);
1068 dump_uint64( ", entry=", &req
->entry
);
1069 fprintf( stderr
, ", reply_fd=%d", req
->reply_fd
);
1070 fprintf( stderr
, ", wait_fd=%d", req
->wait_fd
);
1071 dump_cpu_type( ", cpu=", &req
->cpu
);
1074 static void dump_init_thread_reply( const struct init_thread_reply
*req
)
1076 fprintf( stderr
, " pid=%04x", req
->pid
);
1077 fprintf( stderr
, ", tid=%04x", req
->tid
);
1078 dump_timeout( ", server_start=", &req
->server_start
);
1079 fprintf( stderr
, ", info_size=%u", req
->info_size
);
1080 fprintf( stderr
, ", version=%d", req
->version
);
1081 fprintf( stderr
, ", all_cpus=%08x", req
->all_cpus
);
1084 static void dump_terminate_process_request( const struct terminate_process_request
*req
)
1086 fprintf( stderr
, " handle=%04x", req
->handle
);
1087 fprintf( stderr
, ", exit_code=%d", req
->exit_code
);
1090 static void dump_terminate_process_reply( const struct terminate_process_reply
*req
)
1092 fprintf( stderr
, " self=%d", req
->self
);
1095 static void dump_terminate_thread_request( const struct terminate_thread_request
*req
)
1097 fprintf( stderr
, " handle=%04x", req
->handle
);
1098 fprintf( stderr
, ", exit_code=%d", req
->exit_code
);
1101 static void dump_terminate_thread_reply( const struct terminate_thread_reply
*req
)
1103 fprintf( stderr
, " self=%d", req
->self
);
1104 fprintf( stderr
, ", last=%d", req
->last
);
1107 static void dump_get_process_info_request( const struct get_process_info_request
*req
)
1109 fprintf( stderr
, " handle=%04x", req
->handle
);
1112 static void dump_get_process_info_reply( const struct get_process_info_reply
*req
)
1114 fprintf( stderr
, " pid=%04x", req
->pid
);
1115 fprintf( stderr
, ", ppid=%04x", req
->ppid
);
1116 dump_uint64( ", affinity=", &req
->affinity
);
1117 dump_uint64( ", peb=", &req
->peb
);
1118 dump_timeout( ", start_time=", &req
->start_time
);
1119 dump_timeout( ", end_time=", &req
->end_time
);
1120 fprintf( stderr
, ", exit_code=%d", req
->exit_code
);
1121 fprintf( stderr
, ", priority=%d", req
->priority
);
1122 dump_cpu_type( ", cpu=", &req
->cpu
);
1125 static void dump_set_process_info_request( const struct set_process_info_request
*req
)
1127 fprintf( stderr
, " handle=%04x", req
->handle
);
1128 fprintf( stderr
, ", mask=%d", req
->mask
);
1129 fprintf( stderr
, ", priority=%d", req
->priority
);
1130 dump_uint64( ", affinity=", &req
->affinity
);
1133 static void dump_get_thread_info_request( const struct get_thread_info_request
*req
)
1135 fprintf( stderr
, " handle=%04x", req
->handle
);
1136 fprintf( stderr
, ", tid_in=%04x", req
->tid_in
);
1139 static void dump_get_thread_info_reply( const struct get_thread_info_reply
*req
)
1141 fprintf( stderr
, " pid=%04x", req
->pid
);
1142 fprintf( stderr
, ", tid=%04x", req
->tid
);
1143 dump_uint64( ", teb=", &req
->teb
);
1144 dump_uint64( ", affinity=", &req
->affinity
);
1145 dump_timeout( ", creation_time=", &req
->creation_time
);
1146 dump_timeout( ", exit_time=", &req
->exit_time
);
1147 fprintf( stderr
, ", exit_code=%d", req
->exit_code
);
1148 fprintf( stderr
, ", priority=%d", req
->priority
);
1149 fprintf( stderr
, ", last=%d", req
->last
);
1152 static void dump_set_thread_info_request( const struct set_thread_info_request
*req
)
1154 fprintf( stderr
, " handle=%04x", req
->handle
);
1155 fprintf( stderr
, ", mask=%d", req
->mask
);
1156 fprintf( stderr
, ", priority=%d", req
->priority
);
1157 dump_uint64( ", affinity=", &req
->affinity
);
1158 fprintf( stderr
, ", token=%04x", req
->token
);
1161 static void dump_get_dll_info_request( const struct get_dll_info_request
*req
)
1163 fprintf( stderr
, " handle=%04x", req
->handle
);
1164 dump_uint64( ", base_address=", &req
->base_address
);
1167 static void dump_get_dll_info_reply( const struct get_dll_info_reply
*req
)
1169 dump_uint64( " entry_point=", &req
->entry_point
);
1170 fprintf( stderr
, ", size=%u", req
->size
);
1171 fprintf( stderr
, ", filename_len=%u", req
->filename_len
);
1172 dump_varargs_unicode_str( ", filename=", cur_size
);
1175 static void dump_suspend_thread_request( const struct suspend_thread_request
*req
)
1177 fprintf( stderr
, " handle=%04x", req
->handle
);
1180 static void dump_suspend_thread_reply( const struct suspend_thread_reply
*req
)
1182 fprintf( stderr
, " count=%d", req
->count
);
1185 static void dump_resume_thread_request( const struct resume_thread_request
*req
)
1187 fprintf( stderr
, " handle=%04x", req
->handle
);
1190 static void dump_resume_thread_reply( const struct resume_thread_reply
*req
)
1192 fprintf( stderr
, " count=%d", req
->count
);
1195 static void dump_load_dll_request( const struct load_dll_request
*req
)
1197 fprintf( stderr
, " handle=%04x", req
->handle
);
1198 dump_uint64( ", base=", &req
->base
);
1199 dump_uint64( ", name=", &req
->name
);
1200 fprintf( stderr
, ", size=%u", req
->size
);
1201 fprintf( stderr
, ", dbg_offset=%d", req
->dbg_offset
);
1202 fprintf( stderr
, ", dbg_size=%d", req
->dbg_size
);
1203 dump_varargs_unicode_str( ", filename=", cur_size
);
1206 static void dump_unload_dll_request( const struct unload_dll_request
*req
)
1208 dump_uint64( " base=", &req
->base
);
1211 static void dump_queue_apc_request( const struct queue_apc_request
*req
)
1213 fprintf( stderr
, " handle=%04x", req
->handle
);
1214 dump_apc_call( ", call=", &req
->call
);
1217 static void dump_queue_apc_reply( const struct queue_apc_reply
*req
)
1219 fprintf( stderr
, " handle=%04x", req
->handle
);
1220 fprintf( stderr
, ", self=%d", req
->self
);
1223 static void dump_get_apc_result_request( const struct get_apc_result_request
*req
)
1225 fprintf( stderr
, " handle=%04x", req
->handle
);
1228 static void dump_get_apc_result_reply( const struct get_apc_result_reply
*req
)
1230 dump_apc_result( " result=", &req
->result
);
1233 static void dump_close_handle_request( const struct close_handle_request
*req
)
1235 fprintf( stderr
, " handle=%04x", req
->handle
);
1238 static void dump_set_handle_info_request( const struct set_handle_info_request
*req
)
1240 fprintf( stderr
, " handle=%04x", req
->handle
);
1241 fprintf( stderr
, ", flags=%d", req
->flags
);
1242 fprintf( stderr
, ", mask=%d", req
->mask
);
1245 static void dump_set_handle_info_reply( const struct set_handle_info_reply
*req
)
1247 fprintf( stderr
, " old_flags=%d", req
->old_flags
);
1250 static void dump_dup_handle_request( const struct dup_handle_request
*req
)
1252 fprintf( stderr
, " src_process=%04x", req
->src_process
);
1253 fprintf( stderr
, ", src_handle=%04x", req
->src_handle
);
1254 fprintf( stderr
, ", dst_process=%04x", req
->dst_process
);
1255 fprintf( stderr
, ", access=%08x", req
->access
);
1256 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1257 fprintf( stderr
, ", options=%08x", req
->options
);
1260 static void dump_dup_handle_reply( const struct dup_handle_reply
*req
)
1262 fprintf( stderr
, " handle=%04x", req
->handle
);
1263 fprintf( stderr
, ", self=%d", req
->self
);
1264 fprintf( stderr
, ", closed=%d", req
->closed
);
1267 static void dump_open_process_request( const struct open_process_request
*req
)
1269 fprintf( stderr
, " pid=%04x", req
->pid
);
1270 fprintf( stderr
, ", access=%08x", req
->access
);
1271 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1274 static void dump_open_process_reply( const struct open_process_reply
*req
)
1276 fprintf( stderr
, " handle=%04x", req
->handle
);
1279 static void dump_open_thread_request( const struct open_thread_request
*req
)
1281 fprintf( stderr
, " tid=%04x", req
->tid
);
1282 fprintf( stderr
, ", access=%08x", req
->access
);
1283 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1286 static void dump_open_thread_reply( const struct open_thread_reply
*req
)
1288 fprintf( stderr
, " handle=%04x", req
->handle
);
1291 static void dump_select_request( const struct select_request
*req
)
1293 fprintf( stderr
, " flags=%d", req
->flags
);
1294 dump_uint64( ", cookie=", &req
->cookie
);
1295 fprintf( stderr
, ", signal=%04x", req
->signal
);
1296 fprintf( stderr
, ", prev_apc=%04x", req
->prev_apc
);
1297 dump_timeout( ", timeout=", &req
->timeout
);
1298 dump_varargs_apc_result( ", result=", cur_size
);
1299 dump_varargs_handles( ", handles=", cur_size
);
1302 static void dump_select_reply( const struct select_reply
*req
)
1304 dump_timeout( " timeout=", &req
->timeout
);
1305 dump_apc_call( ", call=", &req
->call
);
1306 fprintf( stderr
, ", apc_handle=%04x", req
->apc_handle
);
1309 static void dump_create_event_request( const struct create_event_request
*req
)
1311 fprintf( stderr
, " access=%08x", req
->access
);
1312 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1313 fprintf( stderr
, ", manual_reset=%d", req
->manual_reset
);
1314 fprintf( stderr
, ", initial_state=%d", req
->initial_state
);
1315 dump_varargs_object_attributes( ", objattr=", cur_size
);
1318 static void dump_create_event_reply( const struct create_event_reply
*req
)
1320 fprintf( stderr
, " handle=%04x", req
->handle
);
1323 static void dump_event_op_request( const struct event_op_request
*req
)
1325 fprintf( stderr
, " handle=%04x", req
->handle
);
1326 fprintf( stderr
, ", op=%d", req
->op
);
1329 static void dump_open_event_request( const struct open_event_request
*req
)
1331 fprintf( stderr
, " access=%08x", req
->access
);
1332 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1333 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
1334 dump_varargs_unicode_str( ", name=", cur_size
);
1337 static void dump_open_event_reply( const struct open_event_reply
*req
)
1339 fprintf( stderr
, " handle=%04x", req
->handle
);
1342 static void dump_create_mutex_request( const struct create_mutex_request
*req
)
1344 fprintf( stderr
, " access=%08x", req
->access
);
1345 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1346 fprintf( stderr
, ", owned=%d", req
->owned
);
1347 dump_varargs_object_attributes( ", objattr=", cur_size
);
1350 static void dump_create_mutex_reply( const struct create_mutex_reply
*req
)
1352 fprintf( stderr
, " handle=%04x", req
->handle
);
1355 static void dump_release_mutex_request( const struct release_mutex_request
*req
)
1357 fprintf( stderr
, " handle=%04x", req
->handle
);
1360 static void dump_release_mutex_reply( const struct release_mutex_reply
*req
)
1362 fprintf( stderr
, " prev_count=%08x", req
->prev_count
);
1365 static void dump_open_mutex_request( const struct open_mutex_request
*req
)
1367 fprintf( stderr
, " access=%08x", req
->access
);
1368 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1369 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
1370 dump_varargs_unicode_str( ", name=", cur_size
);
1373 static void dump_open_mutex_reply( const struct open_mutex_reply
*req
)
1375 fprintf( stderr
, " handle=%04x", req
->handle
);
1378 static void dump_create_semaphore_request( const struct create_semaphore_request
*req
)
1380 fprintf( stderr
, " access=%08x", req
->access
);
1381 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1382 fprintf( stderr
, ", initial=%08x", req
->initial
);
1383 fprintf( stderr
, ", max=%08x", req
->max
);
1384 dump_varargs_object_attributes( ", objattr=", cur_size
);
1387 static void dump_create_semaphore_reply( const struct create_semaphore_reply
*req
)
1389 fprintf( stderr
, " handle=%04x", req
->handle
);
1392 static void dump_release_semaphore_request( const struct release_semaphore_request
*req
)
1394 fprintf( stderr
, " handle=%04x", req
->handle
);
1395 fprintf( stderr
, ", count=%08x", req
->count
);
1398 static void dump_release_semaphore_reply( const struct release_semaphore_reply
*req
)
1400 fprintf( stderr
, " prev_count=%08x", req
->prev_count
);
1403 static void dump_open_semaphore_request( const struct open_semaphore_request
*req
)
1405 fprintf( stderr
, " access=%08x", req
->access
);
1406 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1407 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
1408 dump_varargs_unicode_str( ", name=", cur_size
);
1411 static void dump_open_semaphore_reply( const struct open_semaphore_reply
*req
)
1413 fprintf( stderr
, " handle=%04x", req
->handle
);
1416 static void dump_create_file_request( const struct create_file_request
*req
)
1418 fprintf( stderr
, " access=%08x", req
->access
);
1419 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1420 fprintf( stderr
, ", sharing=%08x", req
->sharing
);
1421 fprintf( stderr
, ", create=%d", req
->create
);
1422 fprintf( stderr
, ", options=%08x", req
->options
);
1423 fprintf( stderr
, ", attrs=%08x", req
->attrs
);
1424 dump_varargs_object_attributes( ", objattr=", cur_size
);
1425 dump_varargs_string( ", filename=", cur_size
);
1428 static void dump_create_file_reply( const struct create_file_reply
*req
)
1430 fprintf( stderr
, " handle=%04x", req
->handle
);
1433 static void dump_open_file_object_request( const struct open_file_object_request
*req
)
1435 fprintf( stderr
, " access=%08x", req
->access
);
1436 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1437 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
1438 fprintf( stderr
, ", sharing=%08x", req
->sharing
);
1439 fprintf( stderr
, ", options=%08x", req
->options
);
1440 dump_varargs_unicode_str( ", filename=", cur_size
);
1443 static void dump_open_file_object_reply( const struct open_file_object_reply
*req
)
1445 fprintf( stderr
, " handle=%04x", req
->handle
);
1448 static void dump_alloc_file_handle_request( const struct alloc_file_handle_request
*req
)
1450 fprintf( stderr
, " access=%08x", req
->access
);
1451 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1452 fprintf( stderr
, ", fd=%d", req
->fd
);
1455 static void dump_alloc_file_handle_reply( const struct alloc_file_handle_reply
*req
)
1457 fprintf( stderr
, " handle=%04x", req
->handle
);
1460 static void dump_get_handle_fd_request( const struct get_handle_fd_request
*req
)
1462 fprintf( stderr
, " handle=%04x", req
->handle
);
1465 static void dump_get_handle_fd_reply( const struct get_handle_fd_reply
*req
)
1467 fprintf( stderr
, " type=%d", req
->type
);
1468 fprintf( stderr
, ", removable=%d", req
->removable
);
1469 fprintf( stderr
, ", access=%08x", req
->access
);
1470 fprintf( stderr
, ", options=%08x", req
->options
);
1473 static void dump_flush_file_request( const struct flush_file_request
*req
)
1475 fprintf( stderr
, " handle=%04x", req
->handle
);
1478 static void dump_flush_file_reply( const struct flush_file_reply
*req
)
1480 fprintf( stderr
, " event=%04x", req
->event
);
1483 static void dump_lock_file_request( const struct lock_file_request
*req
)
1485 fprintf( stderr
, " handle=%04x", req
->handle
);
1486 dump_uint64( ", offset=", &req
->offset
);
1487 dump_uint64( ", count=", &req
->count
);
1488 fprintf( stderr
, ", shared=%d", req
->shared
);
1489 fprintf( stderr
, ", wait=%d", req
->wait
);
1492 static void dump_lock_file_reply( const struct lock_file_reply
*req
)
1494 fprintf( stderr
, " handle=%04x", req
->handle
);
1495 fprintf( stderr
, ", overlapped=%d", req
->overlapped
);
1498 static void dump_unlock_file_request( const struct unlock_file_request
*req
)
1500 fprintf( stderr
, " handle=%04x", req
->handle
);
1501 dump_uint64( ", offset=", &req
->offset
);
1502 dump_uint64( ", count=", &req
->count
);
1505 static void dump_create_socket_request( const struct create_socket_request
*req
)
1507 fprintf( stderr
, " access=%08x", req
->access
);
1508 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1509 fprintf( stderr
, ", family=%d", req
->family
);
1510 fprintf( stderr
, ", type=%d", req
->type
);
1511 fprintf( stderr
, ", protocol=%d", req
->protocol
);
1512 fprintf( stderr
, ", flags=%08x", req
->flags
);
1515 static void dump_create_socket_reply( const struct create_socket_reply
*req
)
1517 fprintf( stderr
, " handle=%04x", req
->handle
);
1520 static void dump_accept_socket_request( const struct accept_socket_request
*req
)
1522 fprintf( stderr
, " lhandle=%04x", req
->lhandle
);
1523 fprintf( stderr
, ", access=%08x", req
->access
);
1524 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1527 static void dump_accept_socket_reply( const struct accept_socket_reply
*req
)
1529 fprintf( stderr
, " handle=%04x", req
->handle
);
1532 static void dump_set_socket_event_request( const struct set_socket_event_request
*req
)
1534 fprintf( stderr
, " handle=%04x", req
->handle
);
1535 fprintf( stderr
, ", mask=%08x", req
->mask
);
1536 fprintf( stderr
, ", event=%04x", req
->event
);
1537 fprintf( stderr
, ", window=%08x", req
->window
);
1538 fprintf( stderr
, ", msg=%08x", req
->msg
);
1541 static void dump_get_socket_event_request( const struct get_socket_event_request
*req
)
1543 fprintf( stderr
, " handle=%04x", req
->handle
);
1544 fprintf( stderr
, ", service=%d", req
->service
);
1545 fprintf( stderr
, ", c_event=%04x", req
->c_event
);
1548 static void dump_get_socket_event_reply( const struct get_socket_event_reply
*req
)
1550 fprintf( stderr
, " mask=%08x", req
->mask
);
1551 fprintf( stderr
, ", pmask=%08x", req
->pmask
);
1552 fprintf( stderr
, ", state=%08x", req
->state
);
1553 dump_varargs_ints( ", errors=", cur_size
);
1556 static void dump_enable_socket_event_request( const struct enable_socket_event_request
*req
)
1558 fprintf( stderr
, " handle=%04x", req
->handle
);
1559 fprintf( stderr
, ", mask=%08x", req
->mask
);
1560 fprintf( stderr
, ", sstate=%08x", req
->sstate
);
1561 fprintf( stderr
, ", cstate=%08x", req
->cstate
);
1564 static void dump_set_socket_deferred_request( const struct set_socket_deferred_request
*req
)
1566 fprintf( stderr
, " handle=%04x", req
->handle
);
1567 fprintf( stderr
, ", deferred=%04x", req
->deferred
);
1570 static void dump_alloc_console_request( const struct alloc_console_request
*req
)
1572 fprintf( stderr
, " access=%08x", req
->access
);
1573 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1574 fprintf( stderr
, ", pid=%04x", req
->pid
);
1577 static void dump_alloc_console_reply( const struct alloc_console_reply
*req
)
1579 fprintf( stderr
, " handle_in=%04x", req
->handle_in
);
1580 fprintf( stderr
, ", event=%04x", req
->event
);
1583 static void dump_free_console_request( const struct free_console_request
*req
)
1587 static void dump_get_console_renderer_events_request( const struct get_console_renderer_events_request
*req
)
1589 fprintf( stderr
, " handle=%04x", req
->handle
);
1592 static void dump_get_console_renderer_events_reply( const struct get_console_renderer_events_reply
*req
)
1594 dump_varargs_bytes( " data=", cur_size
);
1597 static void dump_open_console_request( const struct open_console_request
*req
)
1599 fprintf( stderr
, " from=%04x", req
->from
);
1600 fprintf( stderr
, ", access=%08x", req
->access
);
1601 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1602 fprintf( stderr
, ", share=%d", req
->share
);
1605 static void dump_open_console_reply( const struct open_console_reply
*req
)
1607 fprintf( stderr
, " handle=%04x", req
->handle
);
1610 static void dump_get_console_wait_event_request( const struct get_console_wait_event_request
*req
)
1614 static void dump_get_console_wait_event_reply( const struct get_console_wait_event_reply
*req
)
1616 fprintf( stderr
, " handle=%04x", req
->handle
);
1619 static void dump_get_console_mode_request( const struct get_console_mode_request
*req
)
1621 fprintf( stderr
, " handle=%04x", req
->handle
);
1624 static void dump_get_console_mode_reply( const struct get_console_mode_reply
*req
)
1626 fprintf( stderr
, " mode=%d", req
->mode
);
1629 static void dump_set_console_mode_request( const struct set_console_mode_request
*req
)
1631 fprintf( stderr
, " handle=%04x", req
->handle
);
1632 fprintf( stderr
, ", mode=%d", req
->mode
);
1635 static void dump_set_console_input_info_request( const struct set_console_input_info_request
*req
)
1637 fprintf( stderr
, " handle=%04x", req
->handle
);
1638 fprintf( stderr
, ", mask=%d", req
->mask
);
1639 fprintf( stderr
, ", active_sb=%04x", req
->active_sb
);
1640 fprintf( stderr
, ", history_mode=%d", req
->history_mode
);
1641 fprintf( stderr
, ", history_size=%d", req
->history_size
);
1642 fprintf( stderr
, ", edition_mode=%d", req
->edition_mode
);
1643 fprintf( stderr
, ", input_cp=%d", req
->input_cp
);
1644 fprintf( stderr
, ", output_cp=%d", req
->output_cp
);
1645 fprintf( stderr
, ", win=%08x", req
->win
);
1646 dump_varargs_unicode_str( ", title=", cur_size
);
1649 static void dump_get_console_input_info_request( const struct get_console_input_info_request
*req
)
1651 fprintf( stderr
, " handle=%04x", req
->handle
);
1654 static void dump_get_console_input_info_reply( const struct get_console_input_info_reply
*req
)
1656 fprintf( stderr
, " history_mode=%d", req
->history_mode
);
1657 fprintf( stderr
, ", history_size=%d", req
->history_size
);
1658 fprintf( stderr
, ", history_index=%d", req
->history_index
);
1659 fprintf( stderr
, ", edition_mode=%d", req
->edition_mode
);
1660 fprintf( stderr
, ", input_cp=%d", req
->input_cp
);
1661 fprintf( stderr
, ", output_cp=%d", req
->output_cp
);
1662 fprintf( stderr
, ", win=%08x", req
->win
);
1663 dump_varargs_unicode_str( ", title=", cur_size
);
1666 static void dump_append_console_input_history_request( const struct append_console_input_history_request
*req
)
1668 fprintf( stderr
, " handle=%04x", req
->handle
);
1669 dump_varargs_unicode_str( ", line=", cur_size
);
1672 static void dump_get_console_input_history_request( const struct get_console_input_history_request
*req
)
1674 fprintf( stderr
, " handle=%04x", req
->handle
);
1675 fprintf( stderr
, ", index=%d", req
->index
);
1678 static void dump_get_console_input_history_reply( const struct get_console_input_history_reply
*req
)
1680 fprintf( stderr
, " total=%d", req
->total
);
1681 dump_varargs_unicode_str( ", line=", cur_size
);
1684 static void dump_create_console_output_request( const struct create_console_output_request
*req
)
1686 fprintf( stderr
, " handle_in=%04x", req
->handle_in
);
1687 fprintf( stderr
, ", access=%08x", req
->access
);
1688 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1689 fprintf( stderr
, ", share=%08x", req
->share
);
1692 static void dump_create_console_output_reply( const struct create_console_output_reply
*req
)
1694 fprintf( stderr
, " handle_out=%04x", req
->handle_out
);
1697 static void dump_set_console_output_info_request( const struct set_console_output_info_request
*req
)
1699 fprintf( stderr
, " handle=%04x", req
->handle
);
1700 fprintf( stderr
, ", mask=%d", req
->mask
);
1701 fprintf( stderr
, ", cursor_size=%d", req
->cursor_size
);
1702 fprintf( stderr
, ", cursor_visible=%d", req
->cursor_visible
);
1703 fprintf( stderr
, ", cursor_x=%d", req
->cursor_x
);
1704 fprintf( stderr
, ", cursor_y=%d", req
->cursor_y
);
1705 fprintf( stderr
, ", width=%d", req
->width
);
1706 fprintf( stderr
, ", height=%d", req
->height
);
1707 fprintf( stderr
, ", attr=%d", req
->attr
);
1708 fprintf( stderr
, ", win_left=%d", req
->win_left
);
1709 fprintf( stderr
, ", win_top=%d", req
->win_top
);
1710 fprintf( stderr
, ", win_right=%d", req
->win_right
);
1711 fprintf( stderr
, ", win_bottom=%d", req
->win_bottom
);
1712 fprintf( stderr
, ", max_width=%d", req
->max_width
);
1713 fprintf( stderr
, ", max_height=%d", req
->max_height
);
1716 static void dump_get_console_output_info_request( const struct get_console_output_info_request
*req
)
1718 fprintf( stderr
, " handle=%04x", req
->handle
);
1721 static void dump_get_console_output_info_reply( const struct get_console_output_info_reply
*req
)
1723 fprintf( stderr
, " cursor_size=%d", req
->cursor_size
);
1724 fprintf( stderr
, ", cursor_visible=%d", req
->cursor_visible
);
1725 fprintf( stderr
, ", cursor_x=%d", req
->cursor_x
);
1726 fprintf( stderr
, ", cursor_y=%d", req
->cursor_y
);
1727 fprintf( stderr
, ", width=%d", req
->width
);
1728 fprintf( stderr
, ", height=%d", req
->height
);
1729 fprintf( stderr
, ", attr=%d", req
->attr
);
1730 fprintf( stderr
, ", win_left=%d", req
->win_left
);
1731 fprintf( stderr
, ", win_top=%d", req
->win_top
);
1732 fprintf( stderr
, ", win_right=%d", req
->win_right
);
1733 fprintf( stderr
, ", win_bottom=%d", req
->win_bottom
);
1734 fprintf( stderr
, ", max_width=%d", req
->max_width
);
1735 fprintf( stderr
, ", max_height=%d", req
->max_height
);
1738 static void dump_write_console_input_request( const struct write_console_input_request
*req
)
1740 fprintf( stderr
, " handle=%04x", req
->handle
);
1741 dump_varargs_input_records( ", rec=", cur_size
);
1744 static void dump_write_console_input_reply( const struct write_console_input_reply
*req
)
1746 fprintf( stderr
, " written=%d", req
->written
);
1749 static void dump_read_console_input_request( const struct read_console_input_request
*req
)
1751 fprintf( stderr
, " handle=%04x", req
->handle
);
1752 fprintf( stderr
, ", flush=%d", req
->flush
);
1755 static void dump_read_console_input_reply( const struct read_console_input_reply
*req
)
1757 fprintf( stderr
, " read=%d", req
->read
);
1758 dump_varargs_input_records( ", rec=", cur_size
);
1761 static void dump_write_console_output_request( const struct write_console_output_request
*req
)
1763 fprintf( stderr
, " handle=%04x", req
->handle
);
1764 fprintf( stderr
, ", x=%d", req
->x
);
1765 fprintf( stderr
, ", y=%d", req
->y
);
1766 fprintf( stderr
, ", mode=%d", req
->mode
);
1767 fprintf( stderr
, ", wrap=%d", req
->wrap
);
1768 dump_varargs_bytes( ", data=", cur_size
);
1771 static void dump_write_console_output_reply( const struct write_console_output_reply
*req
)
1773 fprintf( stderr
, " written=%d", req
->written
);
1774 fprintf( stderr
, ", width=%d", req
->width
);
1775 fprintf( stderr
, ", height=%d", req
->height
);
1778 static void dump_fill_console_output_request( const struct fill_console_output_request
*req
)
1780 fprintf( stderr
, " handle=%04x", req
->handle
);
1781 fprintf( stderr
, ", x=%d", req
->x
);
1782 fprintf( stderr
, ", y=%d", req
->y
);
1783 fprintf( stderr
, ", mode=%d", req
->mode
);
1784 fprintf( stderr
, ", count=%d", req
->count
);
1785 fprintf( stderr
, ", wrap=%d", req
->wrap
);
1786 dump_char_info( ", data=", &req
->data
);
1789 static void dump_fill_console_output_reply( const struct fill_console_output_reply
*req
)
1791 fprintf( stderr
, " written=%d", req
->written
);
1794 static void dump_read_console_output_request( const struct read_console_output_request
*req
)
1796 fprintf( stderr
, " handle=%04x", req
->handle
);
1797 fprintf( stderr
, ", x=%d", req
->x
);
1798 fprintf( stderr
, ", y=%d", req
->y
);
1799 fprintf( stderr
, ", mode=%d", req
->mode
);
1800 fprintf( stderr
, ", wrap=%d", req
->wrap
);
1803 static void dump_read_console_output_reply( const struct read_console_output_reply
*req
)
1805 fprintf( stderr
, " width=%d", req
->width
);
1806 fprintf( stderr
, ", height=%d", req
->height
);
1807 dump_varargs_bytes( ", data=", cur_size
);
1810 static void dump_move_console_output_request( const struct move_console_output_request
*req
)
1812 fprintf( stderr
, " handle=%04x", req
->handle
);
1813 fprintf( stderr
, ", x_src=%d", req
->x_src
);
1814 fprintf( stderr
, ", y_src=%d", req
->y_src
);
1815 fprintf( stderr
, ", x_dst=%d", req
->x_dst
);
1816 fprintf( stderr
, ", y_dst=%d", req
->y_dst
);
1817 fprintf( stderr
, ", w=%d", req
->w
);
1818 fprintf( stderr
, ", h=%d", req
->h
);
1821 static void dump_send_console_signal_request( const struct send_console_signal_request
*req
)
1823 fprintf( stderr
, " signal=%d", req
->signal
);
1824 fprintf( stderr
, ", group_id=%04x", req
->group_id
);
1827 static void dump_read_directory_changes_request( const struct read_directory_changes_request
*req
)
1829 fprintf( stderr
, " filter=%08x", req
->filter
);
1830 fprintf( stderr
, ", subtree=%d", req
->subtree
);
1831 fprintf( stderr
, ", want_data=%d", req
->want_data
);
1832 dump_async_data( ", async=", &req
->async
);
1835 static void dump_read_change_request( const struct read_change_request
*req
)
1837 fprintf( stderr
, " handle=%04x", req
->handle
);
1840 static void dump_read_change_reply( const struct read_change_reply
*req
)
1842 fprintf( stderr
, " action=%d", req
->action
);
1843 dump_varargs_string( ", name=", cur_size
);
1846 static void dump_create_mapping_request( const struct create_mapping_request
*req
)
1848 fprintf( stderr
, " access=%08x", req
->access
);
1849 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1850 fprintf( stderr
, ", protect=%08x", req
->protect
);
1851 dump_uint64( ", size=", &req
->size
);
1852 fprintf( stderr
, ", file_handle=%04x", req
->file_handle
);
1853 dump_varargs_object_attributes( ", objattr=", cur_size
);
1856 static void dump_create_mapping_reply( const struct create_mapping_reply
*req
)
1858 fprintf( stderr
, " handle=%04x", req
->handle
);
1861 static void dump_open_mapping_request( const struct open_mapping_request
*req
)
1863 fprintf( stderr
, " access=%08x", req
->access
);
1864 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1865 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
1866 dump_varargs_unicode_str( ", name=", cur_size
);
1869 static void dump_open_mapping_reply( const struct open_mapping_reply
*req
)
1871 fprintf( stderr
, " handle=%04x", req
->handle
);
1874 static void dump_get_mapping_info_request( const struct get_mapping_info_request
*req
)
1876 fprintf( stderr
, " handle=%04x", req
->handle
);
1877 fprintf( stderr
, ", access=%08x", req
->access
);
1880 static void dump_get_mapping_info_reply( const struct get_mapping_info_reply
*req
)
1882 dump_uint64( " size=", &req
->size
);
1883 fprintf( stderr
, ", protect=%d", req
->protect
);
1884 fprintf( stderr
, ", header_size=%d", req
->header_size
);
1885 dump_uint64( ", base=", &req
->base
);
1886 fprintf( stderr
, ", mapping=%04x", req
->mapping
);
1887 fprintf( stderr
, ", shared_file=%04x", req
->shared_file
);
1890 static void dump_get_mapping_committed_range_request( const struct get_mapping_committed_range_request
*req
)
1892 fprintf( stderr
, " handle=%04x", req
->handle
);
1893 dump_uint64( ", offset=", &req
->offset
);
1896 static void dump_get_mapping_committed_range_reply( const struct get_mapping_committed_range_reply
*req
)
1898 dump_uint64( " size=", &req
->size
);
1899 fprintf( stderr
, ", committed=%d", req
->committed
);
1902 static void dump_add_mapping_committed_range_request( const struct add_mapping_committed_range_request
*req
)
1904 fprintf( stderr
, " handle=%04x", req
->handle
);
1905 dump_uint64( ", offset=", &req
->offset
);
1906 dump_uint64( ", size=", &req
->size
);
1909 static void dump_create_snapshot_request( const struct create_snapshot_request
*req
)
1911 fprintf( stderr
, " attributes=%08x", req
->attributes
);
1912 fprintf( stderr
, ", flags=%08x", req
->flags
);
1915 static void dump_create_snapshot_reply( const struct create_snapshot_reply
*req
)
1917 fprintf( stderr
, " handle=%04x", req
->handle
);
1920 static void dump_next_process_request( const struct next_process_request
*req
)
1922 fprintf( stderr
, " handle=%04x", req
->handle
);
1923 fprintf( stderr
, ", reset=%d", req
->reset
);
1926 static void dump_next_process_reply( const struct next_process_reply
*req
)
1928 fprintf( stderr
, " count=%d", req
->count
);
1929 fprintf( stderr
, ", pid=%04x", req
->pid
);
1930 fprintf( stderr
, ", ppid=%04x", req
->ppid
);
1931 fprintf( stderr
, ", threads=%d", req
->threads
);
1932 fprintf( stderr
, ", priority=%d", req
->priority
);
1933 fprintf( stderr
, ", handles=%d", req
->handles
);
1934 dump_varargs_unicode_str( ", filename=", cur_size
);
1937 static void dump_next_thread_request( const struct next_thread_request
*req
)
1939 fprintf( stderr
, " handle=%04x", req
->handle
);
1940 fprintf( stderr
, ", reset=%d", req
->reset
);
1943 static void dump_next_thread_reply( const struct next_thread_reply
*req
)
1945 fprintf( stderr
, " count=%d", req
->count
);
1946 fprintf( stderr
, ", pid=%04x", req
->pid
);
1947 fprintf( stderr
, ", tid=%04x", req
->tid
);
1948 fprintf( stderr
, ", base_pri=%d", req
->base_pri
);
1949 fprintf( stderr
, ", delta_pri=%d", req
->delta_pri
);
1952 static void dump_wait_debug_event_request( const struct wait_debug_event_request
*req
)
1954 fprintf( stderr
, " get_handle=%d", req
->get_handle
);
1957 static void dump_wait_debug_event_reply( const struct wait_debug_event_reply
*req
)
1959 fprintf( stderr
, " pid=%04x", req
->pid
);
1960 fprintf( stderr
, ", tid=%04x", req
->tid
);
1961 fprintf( stderr
, ", wait=%04x", req
->wait
);
1962 dump_varargs_debug_event( ", event=", cur_size
);
1965 static void dump_queue_exception_event_request( const struct queue_exception_event_request
*req
)
1967 fprintf( stderr
, " first=%d", req
->first
);
1968 fprintf( stderr
, ", code=%08x", req
->code
);
1969 fprintf( stderr
, ", flags=%08x", req
->flags
);
1970 dump_uint64( ", record=", &req
->record
);
1971 dump_uint64( ", address=", &req
->address
);
1972 fprintf( stderr
, ", len=%u", req
->len
);
1973 dump_varargs_uints64( ", params=", min(cur_size
,req
->len
) );
1974 dump_varargs_context( ", context=", cur_size
);
1977 static void dump_queue_exception_event_reply( const struct queue_exception_event_reply
*req
)
1979 fprintf( stderr
, " handle=%04x", req
->handle
);
1982 static void dump_get_exception_status_request( const struct get_exception_status_request
*req
)
1984 fprintf( stderr
, " handle=%04x", req
->handle
);
1987 static void dump_get_exception_status_reply( const struct get_exception_status_reply
*req
)
1989 dump_varargs_context( " context=", cur_size
);
1992 static void dump_output_debug_string_request( const struct output_debug_string_request
*req
)
1994 fprintf( stderr
, " length=%u", req
->length
);
1995 dump_uint64( ", string=", &req
->string
);
1998 static void dump_continue_debug_event_request( const struct continue_debug_event_request
*req
)
2000 fprintf( stderr
, " pid=%04x", req
->pid
);
2001 fprintf( stderr
, ", tid=%04x", req
->tid
);
2002 fprintf( stderr
, ", status=%d", req
->status
);
2005 static void dump_debug_process_request( const struct debug_process_request
*req
)
2007 fprintf( stderr
, " pid=%04x", req
->pid
);
2008 fprintf( stderr
, ", attach=%d", req
->attach
);
2011 static void dump_debug_break_request( const struct debug_break_request
*req
)
2013 fprintf( stderr
, " handle=%04x", req
->handle
);
2016 static void dump_debug_break_reply( const struct debug_break_reply
*req
)
2018 fprintf( stderr
, " self=%d", req
->self
);
2021 static void dump_set_debugger_kill_on_exit_request( const struct set_debugger_kill_on_exit_request
*req
)
2023 fprintf( stderr
, " kill_on_exit=%d", req
->kill_on_exit
);
2026 static void dump_read_process_memory_request( const struct read_process_memory_request
*req
)
2028 fprintf( stderr
, " handle=%04x", req
->handle
);
2029 dump_uint64( ", addr=", &req
->addr
);
2032 static void dump_read_process_memory_reply( const struct read_process_memory_reply
*req
)
2034 dump_varargs_bytes( " data=", cur_size
);
2037 static void dump_write_process_memory_request( const struct write_process_memory_request
*req
)
2039 fprintf( stderr
, " handle=%04x", req
->handle
);
2040 dump_uint64( ", addr=", &req
->addr
);
2041 dump_varargs_bytes( ", data=", cur_size
);
2044 static void dump_create_key_request( const struct create_key_request
*req
)
2046 fprintf( stderr
, " parent=%04x", req
->parent
);
2047 fprintf( stderr
, ", access=%08x", req
->access
);
2048 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
2049 fprintf( stderr
, ", options=%08x", req
->options
);
2050 fprintf( stderr
, ", namelen=%u", req
->namelen
);
2051 dump_varargs_unicode_str( ", name=", min(cur_size
,req
->namelen
) );
2052 dump_varargs_unicode_str( ", class=", cur_size
);
2055 static void dump_create_key_reply( const struct create_key_reply
*req
)
2057 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2058 fprintf( stderr
, ", created=%d", req
->created
);
2061 static void dump_open_key_request( const struct open_key_request
*req
)
2063 fprintf( stderr
, " parent=%04x", req
->parent
);
2064 fprintf( stderr
, ", access=%08x", req
->access
);
2065 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
2066 dump_varargs_unicode_str( ", name=", cur_size
);
2069 static void dump_open_key_reply( const struct open_key_reply
*req
)
2071 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2074 static void dump_delete_key_request( const struct delete_key_request
*req
)
2076 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2079 static void dump_flush_key_request( const struct flush_key_request
*req
)
2081 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2084 static void dump_enum_key_request( const struct enum_key_request
*req
)
2086 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2087 fprintf( stderr
, ", index=%d", req
->index
);
2088 fprintf( stderr
, ", info_class=%d", req
->info_class
);
2091 static void dump_enum_key_reply( const struct enum_key_reply
*req
)
2093 fprintf( stderr
, " subkeys=%d", req
->subkeys
);
2094 fprintf( stderr
, ", max_subkey=%d", req
->max_subkey
);
2095 fprintf( stderr
, ", max_class=%d", req
->max_class
);
2096 fprintf( stderr
, ", values=%d", req
->values
);
2097 fprintf( stderr
, ", max_value=%d", req
->max_value
);
2098 fprintf( stderr
, ", max_data=%d", req
->max_data
);
2099 dump_timeout( ", modif=", &req
->modif
);
2100 fprintf( stderr
, ", total=%u", req
->total
);
2101 fprintf( stderr
, ", namelen=%u", req
->namelen
);
2102 dump_varargs_unicode_str( ", name=", min(cur_size
,req
->namelen
) );
2103 dump_varargs_unicode_str( ", class=", cur_size
);
2106 static void dump_set_key_value_request( const struct set_key_value_request
*req
)
2108 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2109 fprintf( stderr
, ", type=%d", req
->type
);
2110 fprintf( stderr
, ", namelen=%u", req
->namelen
);
2111 dump_varargs_unicode_str( ", name=", min(cur_size
,req
->namelen
) );
2112 dump_varargs_bytes( ", data=", cur_size
);
2115 static void dump_get_key_value_request( const struct get_key_value_request
*req
)
2117 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2118 dump_varargs_unicode_str( ", name=", cur_size
);
2121 static void dump_get_key_value_reply( const struct get_key_value_reply
*req
)
2123 fprintf( stderr
, " type=%d", req
->type
);
2124 fprintf( stderr
, ", total=%u", req
->total
);
2125 dump_varargs_bytes( ", data=", cur_size
);
2128 static void dump_enum_key_value_request( const struct enum_key_value_request
*req
)
2130 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2131 fprintf( stderr
, ", index=%d", req
->index
);
2132 fprintf( stderr
, ", info_class=%d", req
->info_class
);
2135 static void dump_enum_key_value_reply( const struct enum_key_value_reply
*req
)
2137 fprintf( stderr
, " type=%d", req
->type
);
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_bytes( ", data=", cur_size
);
2144 static void dump_delete_key_value_request( const struct delete_key_value_request
*req
)
2146 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2147 dump_varargs_unicode_str( ", name=", cur_size
);
2150 static void dump_load_registry_request( const struct load_registry_request
*req
)
2152 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2153 fprintf( stderr
, ", file=%04x", req
->file
);
2154 dump_varargs_unicode_str( ", name=", cur_size
);
2157 static void dump_unload_registry_request( const struct unload_registry_request
*req
)
2159 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2162 static void dump_save_registry_request( const struct save_registry_request
*req
)
2164 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2165 fprintf( stderr
, ", file=%04x", req
->file
);
2168 static void dump_set_registry_notification_request( const struct set_registry_notification_request
*req
)
2170 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2171 fprintf( stderr
, ", event=%04x", req
->event
);
2172 fprintf( stderr
, ", subtree=%d", req
->subtree
);
2173 fprintf( stderr
, ", filter=%08x", req
->filter
);
2176 static void dump_create_timer_request( const struct create_timer_request
*req
)
2178 fprintf( stderr
, " access=%08x", req
->access
);
2179 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
2180 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
2181 fprintf( stderr
, ", manual=%d", req
->manual
);
2182 dump_varargs_unicode_str( ", name=", cur_size
);
2185 static void dump_create_timer_reply( const struct create_timer_reply
*req
)
2187 fprintf( stderr
, " handle=%04x", req
->handle
);
2190 static void dump_open_timer_request( const struct open_timer_request
*req
)
2192 fprintf( stderr
, " access=%08x", req
->access
);
2193 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
2194 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
2195 dump_varargs_unicode_str( ", name=", cur_size
);
2198 static void dump_open_timer_reply( const struct open_timer_reply
*req
)
2200 fprintf( stderr
, " handle=%04x", req
->handle
);
2203 static void dump_set_timer_request( const struct set_timer_request
*req
)
2205 fprintf( stderr
, " handle=%04x", req
->handle
);
2206 dump_timeout( ", expire=", &req
->expire
);
2207 dump_uint64( ", callback=", &req
->callback
);
2208 dump_uint64( ", arg=", &req
->arg
);
2209 fprintf( stderr
, ", period=%d", req
->period
);
2212 static void dump_set_timer_reply( const struct set_timer_reply
*req
)
2214 fprintf( stderr
, " signaled=%d", req
->signaled
);
2217 static void dump_cancel_timer_request( const struct cancel_timer_request
*req
)
2219 fprintf( stderr
, " handle=%04x", req
->handle
);
2222 static void dump_cancel_timer_reply( const struct cancel_timer_reply
*req
)
2224 fprintf( stderr
, " signaled=%d", req
->signaled
);
2227 static void dump_get_timer_info_request( const struct get_timer_info_request
*req
)
2229 fprintf( stderr
, " handle=%04x", req
->handle
);
2232 static void dump_get_timer_info_reply( const struct get_timer_info_reply
*req
)
2234 dump_timeout( " when=", &req
->when
);
2235 fprintf( stderr
, ", signaled=%d", req
->signaled
);
2238 static void dump_get_thread_context_request( const struct get_thread_context_request
*req
)
2240 fprintf( stderr
, " handle=%04x", req
->handle
);
2241 fprintf( stderr
, ", flags=%08x", req
->flags
);
2242 fprintf( stderr
, ", suspend=%d", req
->suspend
);
2245 static void dump_get_thread_context_reply( const struct get_thread_context_reply
*req
)
2247 fprintf( stderr
, " self=%d", req
->self
);
2248 dump_varargs_context( ", context=", cur_size
);
2251 static void dump_set_thread_context_request( const struct set_thread_context_request
*req
)
2253 fprintf( stderr
, " handle=%04x", req
->handle
);
2254 fprintf( stderr
, ", suspend=%d", req
->suspend
);
2255 dump_varargs_context( ", context=", cur_size
);
2258 static void dump_set_thread_context_reply( const struct set_thread_context_reply
*req
)
2260 fprintf( stderr
, " self=%d", req
->self
);
2263 static void dump_get_selector_entry_request( const struct get_selector_entry_request
*req
)
2265 fprintf( stderr
, " handle=%04x", req
->handle
);
2266 fprintf( stderr
, ", entry=%d", req
->entry
);
2269 static void dump_get_selector_entry_reply( const struct get_selector_entry_reply
*req
)
2271 fprintf( stderr
, " base=%08x", req
->base
);
2272 fprintf( stderr
, ", limit=%08x", req
->limit
);
2273 fprintf( stderr
, ", flags=%02x", req
->flags
);
2276 static void dump_add_atom_request( const struct add_atom_request
*req
)
2278 fprintf( stderr
, " table=%04x", req
->table
);
2279 dump_varargs_unicode_str( ", name=", cur_size
);
2282 static void dump_add_atom_reply( const struct add_atom_reply
*req
)
2284 fprintf( stderr
, " atom=%04x", req
->atom
);
2287 static void dump_delete_atom_request( const struct delete_atom_request
*req
)
2289 fprintf( stderr
, " table=%04x", req
->table
);
2290 fprintf( stderr
, ", atom=%04x", req
->atom
);
2293 static void dump_find_atom_request( const struct find_atom_request
*req
)
2295 fprintf( stderr
, " table=%04x", req
->table
);
2296 dump_varargs_unicode_str( ", name=", cur_size
);
2299 static void dump_find_atom_reply( const struct find_atom_reply
*req
)
2301 fprintf( stderr
, " atom=%04x", req
->atom
);
2304 static void dump_get_atom_information_request( const struct get_atom_information_request
*req
)
2306 fprintf( stderr
, " table=%04x", req
->table
);
2307 fprintf( stderr
, ", atom=%04x", req
->atom
);
2310 static void dump_get_atom_information_reply( const struct get_atom_information_reply
*req
)
2312 fprintf( stderr
, " count=%d", req
->count
);
2313 fprintf( stderr
, ", pinned=%d", req
->pinned
);
2314 fprintf( stderr
, ", total=%u", req
->total
);
2315 dump_varargs_unicode_str( ", name=", cur_size
);
2318 static void dump_set_atom_information_request( const struct set_atom_information_request
*req
)
2320 fprintf( stderr
, " table=%04x", req
->table
);
2321 fprintf( stderr
, ", atom=%04x", req
->atom
);
2322 fprintf( stderr
, ", pinned=%d", req
->pinned
);
2325 static void dump_empty_atom_table_request( const struct empty_atom_table_request
*req
)
2327 fprintf( stderr
, " table=%04x", req
->table
);
2328 fprintf( stderr
, ", if_pinned=%d", req
->if_pinned
);
2331 static void dump_init_atom_table_request( const struct init_atom_table_request
*req
)
2333 fprintf( stderr
, " entries=%d", req
->entries
);
2336 static void dump_init_atom_table_reply( const struct init_atom_table_reply
*req
)
2338 fprintf( stderr
, " table=%04x", req
->table
);
2341 static void dump_get_msg_queue_request( const struct get_msg_queue_request
*req
)
2345 static void dump_get_msg_queue_reply( const struct get_msg_queue_reply
*req
)
2347 fprintf( stderr
, " handle=%04x", req
->handle
);
2350 static void dump_set_queue_fd_request( const struct set_queue_fd_request
*req
)
2352 fprintf( stderr
, " handle=%04x", req
->handle
);
2355 static void dump_set_queue_mask_request( const struct set_queue_mask_request
*req
)
2357 fprintf( stderr
, " wake_mask=%08x", req
->wake_mask
);
2358 fprintf( stderr
, ", changed_mask=%08x", req
->changed_mask
);
2359 fprintf( stderr
, ", skip_wait=%d", req
->skip_wait
);
2362 static void dump_set_queue_mask_reply( const struct set_queue_mask_reply
*req
)
2364 fprintf( stderr
, " wake_bits=%08x", req
->wake_bits
);
2365 fprintf( stderr
, ", changed_bits=%08x", req
->changed_bits
);
2368 static void dump_get_queue_status_request( const struct get_queue_status_request
*req
)
2370 fprintf( stderr
, " clear=%d", req
->clear
);
2373 static void dump_get_queue_status_reply( const struct get_queue_status_reply
*req
)
2375 fprintf( stderr
, " wake_bits=%08x", req
->wake_bits
);
2376 fprintf( stderr
, ", changed_bits=%08x", req
->changed_bits
);
2379 static void dump_get_process_idle_event_request( const struct get_process_idle_event_request
*req
)
2381 fprintf( stderr
, " handle=%04x", req
->handle
);
2384 static void dump_get_process_idle_event_reply( const struct get_process_idle_event_reply
*req
)
2386 fprintf( stderr
, " event=%04x", req
->event
);
2389 static void dump_send_message_request( const struct send_message_request
*req
)
2391 fprintf( stderr
, " id=%04x", req
->id
);
2392 fprintf( stderr
, ", type=%d", req
->type
);
2393 fprintf( stderr
, ", flags=%d", req
->flags
);
2394 fprintf( stderr
, ", win=%08x", req
->win
);
2395 fprintf( stderr
, ", msg=%08x", req
->msg
);
2396 dump_uint64( ", wparam=", &req
->wparam
);
2397 dump_uint64( ", lparam=", &req
->lparam
);
2398 dump_timeout( ", timeout=", &req
->timeout
);
2399 dump_varargs_message_data( ", data=", cur_size
);
2402 static void dump_post_quit_message_request( const struct post_quit_message_request
*req
)
2404 fprintf( stderr
, " exit_code=%d", req
->exit_code
);
2407 static void dump_send_hardware_message_request( const struct send_hardware_message_request
*req
)
2409 fprintf( stderr
, " id=%04x", req
->id
);
2410 fprintf( stderr
, ", win=%08x", req
->win
);
2411 fprintf( stderr
, ", msg=%08x", req
->msg
);
2412 dump_uint64( ", wparam=", &req
->wparam
);
2413 dump_uint64( ", lparam=", &req
->lparam
);
2414 dump_uint64( ", info=", &req
->info
);
2415 fprintf( stderr
, ", x=%d", req
->x
);
2416 fprintf( stderr
, ", y=%d", req
->y
);
2417 fprintf( stderr
, ", time=%08x", req
->time
);
2420 static void dump_get_message_request( const struct get_message_request
*req
)
2422 fprintf( stderr
, " flags=%08x", req
->flags
);
2423 fprintf( stderr
, ", get_win=%08x", req
->get_win
);
2424 fprintf( stderr
, ", get_first=%08x", req
->get_first
);
2425 fprintf( stderr
, ", get_last=%08x", req
->get_last
);
2426 fprintf( stderr
, ", hw_id=%08x", req
->hw_id
);
2427 fprintf( stderr
, ", wake_mask=%08x", req
->wake_mask
);
2428 fprintf( stderr
, ", changed_mask=%08x", req
->changed_mask
);
2431 static void dump_get_message_reply( const struct get_message_reply
*req
)
2433 fprintf( stderr
, " win=%08x", req
->win
);
2434 fprintf( stderr
, ", msg=%08x", req
->msg
);
2435 dump_uint64( ", wparam=", &req
->wparam
);
2436 dump_uint64( ", lparam=", &req
->lparam
);
2437 fprintf( stderr
, ", type=%d", req
->type
);
2438 fprintf( stderr
, ", time=%08x", req
->time
);
2439 fprintf( stderr
, ", active_hooks=%08x", req
->active_hooks
);
2440 fprintf( stderr
, ", total=%u", req
->total
);
2441 dump_varargs_message_data( ", data=", cur_size
);
2444 static void dump_reply_message_request( const struct reply_message_request
*req
)
2446 fprintf( stderr
, " remove=%d", req
->remove
);
2447 dump_uint64( ", result=", &req
->result
);
2448 dump_varargs_bytes( ", data=", cur_size
);
2451 static void dump_accept_hardware_message_request( const struct accept_hardware_message_request
*req
)
2453 fprintf( stderr
, " hw_id=%08x", req
->hw_id
);
2454 fprintf( stderr
, ", remove=%d", req
->remove
);
2455 fprintf( stderr
, ", new_win=%08x", req
->new_win
);
2458 static void dump_get_message_reply_request( const struct get_message_reply_request
*req
)
2460 fprintf( stderr
, " cancel=%d", req
->cancel
);
2463 static void dump_get_message_reply_reply( const struct get_message_reply_reply
*req
)
2465 dump_uint64( " result=", &req
->result
);
2466 dump_varargs_bytes( ", data=", cur_size
);
2469 static void dump_set_win_timer_request( const struct set_win_timer_request
*req
)
2471 fprintf( stderr
, " win=%08x", req
->win
);
2472 fprintf( stderr
, ", msg=%08x", req
->msg
);
2473 fprintf( stderr
, ", rate=%08x", req
->rate
);
2474 dump_uint64( ", id=", &req
->id
);
2475 dump_uint64( ", lparam=", &req
->lparam
);
2478 static void dump_set_win_timer_reply( const struct set_win_timer_reply
*req
)
2480 dump_uint64( " id=", &req
->id
);
2483 static void dump_kill_win_timer_request( const struct kill_win_timer_request
*req
)
2485 fprintf( stderr
, " win=%08x", req
->win
);
2486 dump_uint64( ", id=", &req
->id
);
2487 fprintf( stderr
, ", msg=%08x", req
->msg
);
2490 static void dump_is_window_hung_request( const struct is_window_hung_request
*req
)
2492 fprintf( stderr
, " win=%08x", req
->win
);
2495 static void dump_is_window_hung_reply( const struct is_window_hung_reply
*req
)
2497 fprintf( stderr
, " is_hung=%d", req
->is_hung
);
2500 static void dump_get_serial_info_request( const struct get_serial_info_request
*req
)
2502 fprintf( stderr
, " handle=%04x", req
->handle
);
2505 static void dump_get_serial_info_reply( const struct get_serial_info_reply
*req
)
2507 fprintf( stderr
, " readinterval=%08x", req
->readinterval
);
2508 fprintf( stderr
, ", readconst=%08x", req
->readconst
);
2509 fprintf( stderr
, ", readmult=%08x", req
->readmult
);
2510 fprintf( stderr
, ", writeconst=%08x", req
->writeconst
);
2511 fprintf( stderr
, ", writemult=%08x", req
->writemult
);
2512 fprintf( stderr
, ", eventmask=%08x", req
->eventmask
);
2515 static void dump_set_serial_info_request( const struct set_serial_info_request
*req
)
2517 fprintf( stderr
, " handle=%04x", req
->handle
);
2518 fprintf( stderr
, ", flags=%d", req
->flags
);
2519 fprintf( stderr
, ", readinterval=%08x", req
->readinterval
);
2520 fprintf( stderr
, ", readconst=%08x", req
->readconst
);
2521 fprintf( stderr
, ", readmult=%08x", req
->readmult
);
2522 fprintf( stderr
, ", writeconst=%08x", req
->writeconst
);
2523 fprintf( stderr
, ", writemult=%08x", req
->writemult
);
2524 fprintf( stderr
, ", eventmask=%08x", req
->eventmask
);
2527 static void dump_register_async_request( const struct register_async_request
*req
)
2529 fprintf( stderr
, " type=%d", req
->type
);
2530 dump_async_data( ", async=", &req
->async
);
2531 fprintf( stderr
, ", count=%d", req
->count
);
2534 static void dump_cancel_async_request( const struct cancel_async_request
*req
)
2536 fprintf( stderr
, " handle=%04x", req
->handle
);
2537 dump_uint64( ", iosb=", &req
->iosb
);
2538 fprintf( stderr
, ", only_thread=%d", req
->only_thread
);
2541 static void dump_ioctl_request( const struct ioctl_request
*req
)
2543 dump_ioctl_code( " code=", &req
->code
);
2544 dump_async_data( ", async=", &req
->async
);
2545 fprintf( stderr
, ", blocking=%d", req
->blocking
);
2546 dump_varargs_bytes( ", in_data=", cur_size
);
2549 static void dump_ioctl_reply( const struct ioctl_reply
*req
)
2551 fprintf( stderr
, " wait=%04x", req
->wait
);
2552 fprintf( stderr
, ", options=%08x", req
->options
);
2553 dump_varargs_bytes( ", out_data=", cur_size
);
2556 static void dump_get_ioctl_result_request( const struct get_ioctl_result_request
*req
)
2558 fprintf( stderr
, " handle=%04x", req
->handle
);
2559 dump_uint64( ", user_arg=", &req
->user_arg
);
2562 static void dump_get_ioctl_result_reply( const struct get_ioctl_result_reply
*req
)
2564 dump_varargs_bytes( " out_data=", cur_size
);
2567 static void dump_create_named_pipe_request( const struct create_named_pipe_request
*req
)
2569 fprintf( stderr
, " access=%08x", req
->access
);
2570 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
2571 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
2572 fprintf( stderr
, ", options=%08x", req
->options
);
2573 fprintf( stderr
, ", maxinstances=%08x", req
->maxinstances
);
2574 fprintf( stderr
, ", outsize=%08x", req
->outsize
);
2575 fprintf( stderr
, ", insize=%08x", req
->insize
);
2576 dump_timeout( ", timeout=", &req
->timeout
);
2577 fprintf( stderr
, ", flags=%08x", req
->flags
);
2578 dump_varargs_unicode_str( ", name=", cur_size
);
2581 static void dump_create_named_pipe_reply( const struct create_named_pipe_reply
*req
)
2583 fprintf( stderr
, " handle=%04x", req
->handle
);
2586 static void dump_get_named_pipe_info_request( const struct get_named_pipe_info_request
*req
)
2588 fprintf( stderr
, " handle=%04x", req
->handle
);
2591 static void dump_get_named_pipe_info_reply( const struct get_named_pipe_info_reply
*req
)
2593 fprintf( stderr
, " flags=%08x", req
->flags
);
2594 fprintf( stderr
, ", maxinstances=%08x", req
->maxinstances
);
2595 fprintf( stderr
, ", instances=%08x", req
->instances
);
2596 fprintf( stderr
, ", outsize=%08x", req
->outsize
);
2597 fprintf( stderr
, ", insize=%08x", req
->insize
);
2600 static void dump_create_window_request( const struct create_window_request
*req
)
2602 fprintf( stderr
, " parent=%08x", req
->parent
);
2603 fprintf( stderr
, ", owner=%08x", req
->owner
);
2604 fprintf( stderr
, ", atom=%04x", req
->atom
);
2605 dump_uint64( ", instance=", &req
->instance
);
2606 dump_varargs_unicode_str( ", class=", cur_size
);
2609 static void dump_create_window_reply( const struct create_window_reply
*req
)
2611 fprintf( stderr
, " handle=%08x", req
->handle
);
2612 fprintf( stderr
, ", parent=%08x", req
->parent
);
2613 fprintf( stderr
, ", owner=%08x", req
->owner
);
2614 fprintf( stderr
, ", extra=%d", req
->extra
);
2615 dump_uint64( ", class_ptr=", &req
->class_ptr
);
2618 static void dump_destroy_window_request( const struct destroy_window_request
*req
)
2620 fprintf( stderr
, " handle=%08x", req
->handle
);
2623 static void dump_get_desktop_window_request( const struct get_desktop_window_request
*req
)
2625 fprintf( stderr
, " force=%d", req
->force
);
2628 static void dump_get_desktop_window_reply( const struct get_desktop_window_reply
*req
)
2630 fprintf( stderr
, " top_window=%08x", req
->top_window
);
2631 fprintf( stderr
, ", msg_window=%08x", req
->msg_window
);
2634 static void dump_set_window_owner_request( const struct set_window_owner_request
*req
)
2636 fprintf( stderr
, " handle=%08x", req
->handle
);
2637 fprintf( stderr
, ", owner=%08x", req
->owner
);
2640 static void dump_set_window_owner_reply( const struct set_window_owner_reply
*req
)
2642 fprintf( stderr
, " full_owner=%08x", req
->full_owner
);
2643 fprintf( stderr
, ", prev_owner=%08x", req
->prev_owner
);
2646 static void dump_get_window_info_request( const struct get_window_info_request
*req
)
2648 fprintf( stderr
, " handle=%08x", req
->handle
);
2651 static void dump_get_window_info_reply( const struct get_window_info_reply
*req
)
2653 fprintf( stderr
, " full_handle=%08x", req
->full_handle
);
2654 fprintf( stderr
, ", last_active=%08x", req
->last_active
);
2655 fprintf( stderr
, ", pid=%04x", req
->pid
);
2656 fprintf( stderr
, ", tid=%04x", req
->tid
);
2657 fprintf( stderr
, ", atom=%04x", req
->atom
);
2658 fprintf( stderr
, ", is_unicode=%d", req
->is_unicode
);
2661 static void dump_set_window_info_request( const struct set_window_info_request
*req
)
2663 fprintf( stderr
, " flags=%04x", req
->flags
);
2664 fprintf( stderr
, ", is_unicode=%d", req
->is_unicode
);
2665 fprintf( stderr
, ", handle=%08x", req
->handle
);
2666 fprintf( stderr
, ", style=%08x", req
->style
);
2667 fprintf( stderr
, ", ex_style=%08x", req
->ex_style
);
2668 fprintf( stderr
, ", id=%08x", req
->id
);
2669 dump_uint64( ", instance=", &req
->instance
);
2670 dump_uint64( ", user_data=", &req
->user_data
);
2671 fprintf( stderr
, ", extra_offset=%d", req
->extra_offset
);
2672 fprintf( stderr
, ", extra_size=%u", req
->extra_size
);
2673 dump_uint64( ", extra_value=", &req
->extra_value
);
2676 static void dump_set_window_info_reply( const struct set_window_info_reply
*req
)
2678 fprintf( stderr
, " old_style=%08x", req
->old_style
);
2679 fprintf( stderr
, ", old_ex_style=%08x", req
->old_ex_style
);
2680 dump_uint64( ", old_instance=", &req
->old_instance
);
2681 dump_uint64( ", old_user_data=", &req
->old_user_data
);
2682 dump_uint64( ", old_extra_value=", &req
->old_extra_value
);
2683 fprintf( stderr
, ", old_id=%08x", req
->old_id
);
2686 static void dump_set_parent_request( const struct set_parent_request
*req
)
2688 fprintf( stderr
, " handle=%08x", req
->handle
);
2689 fprintf( stderr
, ", parent=%08x", req
->parent
);
2692 static void dump_set_parent_reply( const struct set_parent_reply
*req
)
2694 fprintf( stderr
, " old_parent=%08x", req
->old_parent
);
2695 fprintf( stderr
, ", full_parent=%08x", req
->full_parent
);
2698 static void dump_get_window_parents_request( const struct get_window_parents_request
*req
)
2700 fprintf( stderr
, " handle=%08x", req
->handle
);
2703 static void dump_get_window_parents_reply( const struct get_window_parents_reply
*req
)
2705 fprintf( stderr
, " count=%d", req
->count
);
2706 dump_varargs_user_handles( ", parents=", cur_size
);
2709 static void dump_get_window_children_request( const struct get_window_children_request
*req
)
2711 fprintf( stderr
, " desktop=%04x", req
->desktop
);
2712 fprintf( stderr
, ", parent=%08x", req
->parent
);
2713 fprintf( stderr
, ", atom=%04x", req
->atom
);
2714 fprintf( stderr
, ", tid=%04x", req
->tid
);
2715 dump_varargs_unicode_str( ", class=", cur_size
);
2718 static void dump_get_window_children_reply( const struct get_window_children_reply
*req
)
2720 fprintf( stderr
, " count=%d", req
->count
);
2721 dump_varargs_user_handles( ", children=", cur_size
);
2724 static void dump_get_window_children_from_point_request( const struct get_window_children_from_point_request
*req
)
2726 fprintf( stderr
, " parent=%08x", req
->parent
);
2727 fprintf( stderr
, ", x=%d", req
->x
);
2728 fprintf( stderr
, ", y=%d", req
->y
);
2731 static void dump_get_window_children_from_point_reply( const struct get_window_children_from_point_reply
*req
)
2733 fprintf( stderr
, " count=%d", req
->count
);
2734 dump_varargs_user_handles( ", children=", cur_size
);
2737 static void dump_get_window_tree_request( const struct get_window_tree_request
*req
)
2739 fprintf( stderr
, " handle=%08x", req
->handle
);
2742 static void dump_get_window_tree_reply( const struct get_window_tree_reply
*req
)
2744 fprintf( stderr
, " parent=%08x", req
->parent
);
2745 fprintf( stderr
, ", owner=%08x", req
->owner
);
2746 fprintf( stderr
, ", next_sibling=%08x", req
->next_sibling
);
2747 fprintf( stderr
, ", prev_sibling=%08x", req
->prev_sibling
);
2748 fprintf( stderr
, ", first_sibling=%08x", req
->first_sibling
);
2749 fprintf( stderr
, ", last_sibling=%08x", req
->last_sibling
);
2750 fprintf( stderr
, ", first_child=%08x", req
->first_child
);
2751 fprintf( stderr
, ", last_child=%08x", req
->last_child
);
2754 static void dump_set_window_pos_request( const struct set_window_pos_request
*req
)
2756 fprintf( stderr
, " flags=%08x", req
->flags
);
2757 fprintf( stderr
, ", handle=%08x", req
->handle
);
2758 fprintf( stderr
, ", previous=%08x", req
->previous
);
2759 dump_rectangle( ", window=", &req
->window
);
2760 dump_rectangle( ", client=", &req
->client
);
2761 dump_varargs_rectangles( ", valid=", cur_size
);
2764 static void dump_set_window_pos_reply( const struct set_window_pos_reply
*req
)
2766 fprintf( stderr
, " new_style=%08x", req
->new_style
);
2767 fprintf( stderr
, ", new_ex_style=%08x", req
->new_ex_style
);
2770 static void dump_get_window_rectangles_request( const struct get_window_rectangles_request
*req
)
2772 fprintf( stderr
, " handle=%08x", req
->handle
);
2775 static void dump_get_window_rectangles_reply( const struct get_window_rectangles_reply
*req
)
2777 dump_rectangle( " window=", &req
->window
);
2778 dump_rectangle( ", visible=", &req
->visible
);
2779 dump_rectangle( ", client=", &req
->client
);
2782 static void dump_get_window_text_request( const struct get_window_text_request
*req
)
2784 fprintf( stderr
, " handle=%08x", req
->handle
);
2787 static void dump_get_window_text_reply( const struct get_window_text_reply
*req
)
2789 dump_varargs_unicode_str( " text=", cur_size
);
2792 static void dump_set_window_text_request( const struct set_window_text_request
*req
)
2794 fprintf( stderr
, " handle=%08x", req
->handle
);
2795 dump_varargs_unicode_str( ", text=", cur_size
);
2798 static void dump_get_windows_offset_request( const struct get_windows_offset_request
*req
)
2800 fprintf( stderr
, " from=%08x", req
->from
);
2801 fprintf( stderr
, ", to=%08x", req
->to
);
2804 static void dump_get_windows_offset_reply( const struct get_windows_offset_reply
*req
)
2806 fprintf( stderr
, " x=%d", req
->x
);
2807 fprintf( stderr
, ", y=%d", req
->y
);
2810 static void dump_get_visible_region_request( const struct get_visible_region_request
*req
)
2812 fprintf( stderr
, " window=%08x", req
->window
);
2813 fprintf( stderr
, ", flags=%08x", req
->flags
);
2816 static void dump_get_visible_region_reply( const struct get_visible_region_reply
*req
)
2818 fprintf( stderr
, " top_win=%08x", req
->top_win
);
2819 dump_rectangle( ", top_rect=", &req
->top_rect
);
2820 dump_rectangle( ", win_rect=", &req
->win_rect
);
2821 fprintf( stderr
, ", total_size=%u", req
->total_size
);
2822 dump_varargs_rectangles( ", region=", cur_size
);
2825 static void dump_get_window_region_request( const struct get_window_region_request
*req
)
2827 fprintf( stderr
, " window=%08x", req
->window
);
2830 static void dump_get_window_region_reply( const struct get_window_region_reply
*req
)
2832 fprintf( stderr
, " total_size=%u", req
->total_size
);
2833 dump_varargs_rectangles( ", region=", cur_size
);
2836 static void dump_set_window_region_request( const struct set_window_region_request
*req
)
2838 fprintf( stderr
, " window=%08x", req
->window
);
2839 fprintf( stderr
, ", redraw=%d", req
->redraw
);
2840 dump_varargs_rectangles( ", region=", cur_size
);
2843 static void dump_get_update_region_request( const struct get_update_region_request
*req
)
2845 fprintf( stderr
, " window=%08x", req
->window
);
2846 fprintf( stderr
, ", from_child=%08x", req
->from_child
);
2847 fprintf( stderr
, ", flags=%08x", req
->flags
);
2850 static void dump_get_update_region_reply( const struct get_update_region_reply
*req
)
2852 fprintf( stderr
, " child=%08x", req
->child
);
2853 fprintf( stderr
, ", flags=%08x", req
->flags
);
2854 fprintf( stderr
, ", total_size=%u", req
->total_size
);
2855 dump_varargs_rectangles( ", region=", cur_size
);
2858 static void dump_update_window_zorder_request( const struct update_window_zorder_request
*req
)
2860 fprintf( stderr
, " window=%08x", req
->window
);
2861 dump_rectangle( ", rect=", &req
->rect
);
2864 static void dump_redraw_window_request( const struct redraw_window_request
*req
)
2866 fprintf( stderr
, " window=%08x", req
->window
);
2867 fprintf( stderr
, ", flags=%08x", req
->flags
);
2868 dump_varargs_rectangles( ", region=", cur_size
);
2871 static void dump_set_window_property_request( const struct set_window_property_request
*req
)
2873 fprintf( stderr
, " window=%08x", req
->window
);
2874 dump_uint64( ", data=", &req
->data
);
2875 fprintf( stderr
, ", atom=%04x", req
->atom
);
2876 dump_varargs_unicode_str( ", name=", cur_size
);
2879 static void dump_remove_window_property_request( const struct remove_window_property_request
*req
)
2881 fprintf( stderr
, " window=%08x", req
->window
);
2882 fprintf( stderr
, ", atom=%04x", req
->atom
);
2883 dump_varargs_unicode_str( ", name=", cur_size
);
2886 static void dump_remove_window_property_reply( const struct remove_window_property_reply
*req
)
2888 dump_uint64( " data=", &req
->data
);
2891 static void dump_get_window_property_request( const struct get_window_property_request
*req
)
2893 fprintf( stderr
, " window=%08x", req
->window
);
2894 fprintf( stderr
, ", atom=%04x", req
->atom
);
2895 dump_varargs_unicode_str( ", name=", cur_size
);
2898 static void dump_get_window_property_reply( const struct get_window_property_reply
*req
)
2900 dump_uint64( " data=", &req
->data
);
2903 static void dump_get_window_properties_request( const struct get_window_properties_request
*req
)
2905 fprintf( stderr
, " window=%08x", req
->window
);
2908 static void dump_get_window_properties_reply( const struct get_window_properties_reply
*req
)
2910 fprintf( stderr
, " total=%d", req
->total
);
2911 dump_varargs_properties( ", props=", cur_size
);
2914 static void dump_create_winstation_request( const struct create_winstation_request
*req
)
2916 fprintf( stderr
, " flags=%08x", req
->flags
);
2917 fprintf( stderr
, ", access=%08x", req
->access
);
2918 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
2919 dump_varargs_unicode_str( ", name=", cur_size
);
2922 static void dump_create_winstation_reply( const struct create_winstation_reply
*req
)
2924 fprintf( stderr
, " handle=%04x", req
->handle
);
2927 static void dump_open_winstation_request( const struct open_winstation_request
*req
)
2929 fprintf( stderr
, " access=%08x", req
->access
);
2930 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
2931 dump_varargs_unicode_str( ", name=", cur_size
);
2934 static void dump_open_winstation_reply( const struct open_winstation_reply
*req
)
2936 fprintf( stderr
, " handle=%04x", req
->handle
);
2939 static void dump_close_winstation_request( const struct close_winstation_request
*req
)
2941 fprintf( stderr
, " handle=%04x", req
->handle
);
2944 static void dump_get_process_winstation_request( const struct get_process_winstation_request
*req
)
2948 static void dump_get_process_winstation_reply( const struct get_process_winstation_reply
*req
)
2950 fprintf( stderr
, " handle=%04x", req
->handle
);
2953 static void dump_set_process_winstation_request( const struct set_process_winstation_request
*req
)
2955 fprintf( stderr
, " handle=%04x", req
->handle
);
2958 static void dump_enum_winstation_request( const struct enum_winstation_request
*req
)
2960 fprintf( stderr
, " index=%08x", req
->index
);
2963 static void dump_enum_winstation_reply( const struct enum_winstation_reply
*req
)
2965 fprintf( stderr
, " next=%08x", req
->next
);
2966 dump_varargs_unicode_str( ", name=", cur_size
);
2969 static void dump_create_desktop_request( const struct create_desktop_request
*req
)
2971 fprintf( stderr
, " flags=%08x", req
->flags
);
2972 fprintf( stderr
, ", access=%08x", req
->access
);
2973 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
2974 dump_varargs_unicode_str( ", name=", cur_size
);
2977 static void dump_create_desktop_reply( const struct create_desktop_reply
*req
)
2979 fprintf( stderr
, " handle=%04x", req
->handle
);
2982 static void dump_open_desktop_request( const struct open_desktop_request
*req
)
2984 fprintf( stderr
, " winsta=%04x", req
->winsta
);
2985 fprintf( stderr
, ", flags=%08x", req
->flags
);
2986 fprintf( stderr
, ", access=%08x", req
->access
);
2987 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
2988 dump_varargs_unicode_str( ", name=", cur_size
);
2991 static void dump_open_desktop_reply( const struct open_desktop_reply
*req
)
2993 fprintf( stderr
, " handle=%04x", req
->handle
);
2996 static void dump_close_desktop_request( const struct close_desktop_request
*req
)
2998 fprintf( stderr
, " handle=%04x", req
->handle
);
3001 static void dump_get_thread_desktop_request( const struct get_thread_desktop_request
*req
)
3003 fprintf( stderr
, " tid=%04x", req
->tid
);
3006 static void dump_get_thread_desktop_reply( const struct get_thread_desktop_reply
*req
)
3008 fprintf( stderr
, " handle=%04x", req
->handle
);
3011 static void dump_set_thread_desktop_request( const struct set_thread_desktop_request
*req
)
3013 fprintf( stderr
, " handle=%04x", req
->handle
);
3016 static void dump_enum_desktop_request( const struct enum_desktop_request
*req
)
3018 fprintf( stderr
, " winstation=%04x", req
->winstation
);
3019 fprintf( stderr
, ", index=%08x", req
->index
);
3022 static void dump_enum_desktop_reply( const struct enum_desktop_reply
*req
)
3024 fprintf( stderr
, " next=%08x", req
->next
);
3025 dump_varargs_unicode_str( ", name=", cur_size
);
3028 static void dump_set_user_object_info_request( const struct set_user_object_info_request
*req
)
3030 fprintf( stderr
, " handle=%04x", req
->handle
);
3031 fprintf( stderr
, ", flags=%08x", req
->flags
);
3032 fprintf( stderr
, ", obj_flags=%08x", req
->obj_flags
);
3035 static void dump_set_user_object_info_reply( const struct set_user_object_info_reply
*req
)
3037 fprintf( stderr
, " is_desktop=%d", req
->is_desktop
);
3038 fprintf( stderr
, ", old_obj_flags=%08x", req
->old_obj_flags
);
3039 dump_varargs_unicode_str( ", name=", cur_size
);
3042 static void dump_attach_thread_input_request( const struct attach_thread_input_request
*req
)
3044 fprintf( stderr
, " tid_from=%04x", req
->tid_from
);
3045 fprintf( stderr
, ", tid_to=%04x", req
->tid_to
);
3046 fprintf( stderr
, ", attach=%d", req
->attach
);
3049 static void dump_get_thread_input_request( const struct get_thread_input_request
*req
)
3051 fprintf( stderr
, " tid=%04x", req
->tid
);
3054 static void dump_get_thread_input_reply( const struct get_thread_input_reply
*req
)
3056 fprintf( stderr
, " focus=%08x", req
->focus
);
3057 fprintf( stderr
, ", capture=%08x", req
->capture
);
3058 fprintf( stderr
, ", active=%08x", req
->active
);
3059 fprintf( stderr
, ", foreground=%08x", req
->foreground
);
3060 fprintf( stderr
, ", menu_owner=%08x", req
->menu_owner
);
3061 fprintf( stderr
, ", move_size=%08x", req
->move_size
);
3062 fprintf( stderr
, ", caret=%08x", req
->caret
);
3063 dump_rectangle( ", rect=", &req
->rect
);
3066 static void dump_get_last_input_time_request( const struct get_last_input_time_request
*req
)
3070 static void dump_get_last_input_time_reply( const struct get_last_input_time_reply
*req
)
3072 fprintf( stderr
, " time=%08x", req
->time
);
3075 static void dump_get_key_state_request( const struct get_key_state_request
*req
)
3077 fprintf( stderr
, " tid=%04x", req
->tid
);
3078 fprintf( stderr
, ", key=%d", req
->key
);
3081 static void dump_get_key_state_reply( const struct get_key_state_reply
*req
)
3083 fprintf( stderr
, " state=%02x", req
->state
);
3084 dump_varargs_bytes( ", keystate=", cur_size
);
3087 static void dump_set_key_state_request( const struct set_key_state_request
*req
)
3089 fprintf( stderr
, " tid=%04x", req
->tid
);
3090 dump_varargs_bytes( ", keystate=", cur_size
);
3093 static void dump_set_foreground_window_request( const struct set_foreground_window_request
*req
)
3095 fprintf( stderr
, " handle=%08x", req
->handle
);
3098 static void dump_set_foreground_window_reply( const struct set_foreground_window_reply
*req
)
3100 fprintf( stderr
, " previous=%08x", req
->previous
);
3101 fprintf( stderr
, ", send_msg_old=%d", req
->send_msg_old
);
3102 fprintf( stderr
, ", send_msg_new=%d", req
->send_msg_new
);
3105 static void dump_set_focus_window_request( const struct set_focus_window_request
*req
)
3107 fprintf( stderr
, " handle=%08x", req
->handle
);
3110 static void dump_set_focus_window_reply( const struct set_focus_window_reply
*req
)
3112 fprintf( stderr
, " previous=%08x", req
->previous
);
3115 static void dump_set_active_window_request( const struct set_active_window_request
*req
)
3117 fprintf( stderr
, " handle=%08x", req
->handle
);
3120 static void dump_set_active_window_reply( const struct set_active_window_reply
*req
)
3122 fprintf( stderr
, " previous=%08x", req
->previous
);
3125 static void dump_set_capture_window_request( const struct set_capture_window_request
*req
)
3127 fprintf( stderr
, " handle=%08x", req
->handle
);
3128 fprintf( stderr
, ", flags=%08x", req
->flags
);
3131 static void dump_set_capture_window_reply( const struct set_capture_window_reply
*req
)
3133 fprintf( stderr
, " previous=%08x", req
->previous
);
3134 fprintf( stderr
, ", full_handle=%08x", req
->full_handle
);
3137 static void dump_set_caret_window_request( const struct set_caret_window_request
*req
)
3139 fprintf( stderr
, " handle=%08x", req
->handle
);
3140 fprintf( stderr
, ", width=%d", req
->width
);
3141 fprintf( stderr
, ", height=%d", req
->height
);
3144 static void dump_set_caret_window_reply( const struct set_caret_window_reply
*req
)
3146 fprintf( stderr
, " previous=%08x", req
->previous
);
3147 dump_rectangle( ", old_rect=", &req
->old_rect
);
3148 fprintf( stderr
, ", old_hide=%d", req
->old_hide
);
3149 fprintf( stderr
, ", old_state=%d", req
->old_state
);
3152 static void dump_set_caret_info_request( const struct set_caret_info_request
*req
)
3154 fprintf( stderr
, " flags=%08x", req
->flags
);
3155 fprintf( stderr
, ", handle=%08x", req
->handle
);
3156 fprintf( stderr
, ", x=%d", req
->x
);
3157 fprintf( stderr
, ", y=%d", req
->y
);
3158 fprintf( stderr
, ", hide=%d", req
->hide
);
3159 fprintf( stderr
, ", state=%d", req
->state
);
3162 static void dump_set_caret_info_reply( const struct set_caret_info_reply
*req
)
3164 fprintf( stderr
, " full_handle=%08x", req
->full_handle
);
3165 dump_rectangle( ", old_rect=", &req
->old_rect
);
3166 fprintf( stderr
, ", old_hide=%d", req
->old_hide
);
3167 fprintf( stderr
, ", old_state=%d", req
->old_state
);
3170 static void dump_set_hook_request( const struct set_hook_request
*req
)
3172 fprintf( stderr
, " id=%d", req
->id
);
3173 fprintf( stderr
, ", pid=%04x", req
->pid
);
3174 fprintf( stderr
, ", tid=%04x", req
->tid
);
3175 fprintf( stderr
, ", event_min=%d", req
->event_min
);
3176 fprintf( stderr
, ", event_max=%d", req
->event_max
);
3177 dump_uint64( ", proc=", &req
->proc
);
3178 fprintf( stderr
, ", flags=%d", req
->flags
);
3179 fprintf( stderr
, ", unicode=%d", req
->unicode
);
3180 dump_varargs_unicode_str( ", module=", cur_size
);
3183 static void dump_set_hook_reply( const struct set_hook_reply
*req
)
3185 fprintf( stderr
, " handle=%08x", req
->handle
);
3186 fprintf( stderr
, ", active_hooks=%08x", req
->active_hooks
);
3189 static void dump_remove_hook_request( const struct remove_hook_request
*req
)
3191 fprintf( stderr
, " handle=%08x", req
->handle
);
3192 dump_uint64( ", proc=", &req
->proc
);
3193 fprintf( stderr
, ", id=%d", req
->id
);
3196 static void dump_remove_hook_reply( const struct remove_hook_reply
*req
)
3198 fprintf( stderr
, " active_hooks=%08x", req
->active_hooks
);
3201 static void dump_start_hook_chain_request( const struct start_hook_chain_request
*req
)
3203 fprintf( stderr
, " id=%d", req
->id
);
3204 fprintf( stderr
, ", event=%d", req
->event
);
3205 fprintf( stderr
, ", window=%08x", req
->window
);
3206 fprintf( stderr
, ", object_id=%d", req
->object_id
);
3207 fprintf( stderr
, ", child_id=%d", req
->child_id
);
3210 static void dump_start_hook_chain_reply( const struct start_hook_chain_reply
*req
)
3212 fprintf( stderr
, " handle=%08x", req
->handle
);
3213 fprintf( stderr
, ", pid=%04x", req
->pid
);
3214 fprintf( stderr
, ", tid=%04x", req
->tid
);
3215 fprintf( stderr
, ", unicode=%d", req
->unicode
);
3216 dump_uint64( ", proc=", &req
->proc
);
3217 fprintf( stderr
, ", active_hooks=%08x", req
->active_hooks
);
3218 dump_varargs_unicode_str( ", module=", cur_size
);
3221 static void dump_finish_hook_chain_request( const struct finish_hook_chain_request
*req
)
3223 fprintf( stderr
, " id=%d", req
->id
);
3226 static void dump_get_hook_info_request( const struct get_hook_info_request
*req
)
3228 fprintf( stderr
, " handle=%08x", req
->handle
);
3229 fprintf( stderr
, ", get_next=%d", req
->get_next
);
3230 fprintf( stderr
, ", event=%d", req
->event
);
3231 fprintf( stderr
, ", window=%08x", req
->window
);
3232 fprintf( stderr
, ", object_id=%d", req
->object_id
);
3233 fprintf( stderr
, ", child_id=%d", req
->child_id
);
3236 static void dump_get_hook_info_reply( const struct get_hook_info_reply
*req
)
3238 fprintf( stderr
, " handle=%08x", req
->handle
);
3239 fprintf( stderr
, ", id=%d", req
->id
);
3240 fprintf( stderr
, ", pid=%04x", req
->pid
);
3241 fprintf( stderr
, ", tid=%04x", req
->tid
);
3242 dump_uint64( ", proc=", &req
->proc
);
3243 fprintf( stderr
, ", unicode=%d", req
->unicode
);
3244 dump_varargs_unicode_str( ", module=", cur_size
);
3247 static void dump_create_class_request( const struct create_class_request
*req
)
3249 fprintf( stderr
, " local=%d", req
->local
);
3250 fprintf( stderr
, ", atom=%04x", req
->atom
);
3251 fprintf( stderr
, ", style=%08x", req
->style
);
3252 dump_uint64( ", instance=", &req
->instance
);
3253 fprintf( stderr
, ", extra=%d", req
->extra
);
3254 fprintf( stderr
, ", win_extra=%d", req
->win_extra
);
3255 dump_uint64( ", client_ptr=", &req
->client_ptr
);
3256 dump_varargs_unicode_str( ", name=", cur_size
);
3259 static void dump_create_class_reply( const struct create_class_reply
*req
)
3261 fprintf( stderr
, " atom=%04x", req
->atom
);
3264 static void dump_destroy_class_request( const struct destroy_class_request
*req
)
3266 fprintf( stderr
, " atom=%04x", req
->atom
);
3267 dump_uint64( ", instance=", &req
->instance
);
3268 dump_varargs_unicode_str( ", name=", cur_size
);
3271 static void dump_destroy_class_reply( const struct destroy_class_reply
*req
)
3273 dump_uint64( " client_ptr=", &req
->client_ptr
);
3276 static void dump_set_class_info_request( const struct set_class_info_request
*req
)
3278 fprintf( stderr
, " window=%08x", req
->window
);
3279 fprintf( stderr
, ", flags=%08x", req
->flags
);
3280 fprintf( stderr
, ", atom=%04x", req
->atom
);
3281 fprintf( stderr
, ", style=%08x", req
->style
);
3282 fprintf( stderr
, ", win_extra=%d", req
->win_extra
);
3283 dump_uint64( ", instance=", &req
->instance
);
3284 fprintf( stderr
, ", extra_offset=%d", req
->extra_offset
);
3285 fprintf( stderr
, ", extra_size=%u", req
->extra_size
);
3286 dump_uint64( ", extra_value=", &req
->extra_value
);
3289 static void dump_set_class_info_reply( const struct set_class_info_reply
*req
)
3291 fprintf( stderr
, " old_atom=%04x", req
->old_atom
);
3292 fprintf( stderr
, ", old_style=%08x", req
->old_style
);
3293 fprintf( stderr
, ", old_extra=%d", req
->old_extra
);
3294 fprintf( stderr
, ", old_win_extra=%d", req
->old_win_extra
);
3295 dump_uint64( ", old_instance=", &req
->old_instance
);
3296 dump_uint64( ", old_extra_value=", &req
->old_extra_value
);
3299 static void dump_set_clipboard_info_request( const struct set_clipboard_info_request
*req
)
3301 fprintf( stderr
, " flags=%08x", req
->flags
);
3302 fprintf( stderr
, ", clipboard=%08x", req
->clipboard
);
3303 fprintf( stderr
, ", owner=%08x", req
->owner
);
3304 fprintf( stderr
, ", viewer=%08x", req
->viewer
);
3305 fprintf( stderr
, ", seqno=%08x", req
->seqno
);
3308 static void dump_set_clipboard_info_reply( const struct set_clipboard_info_reply
*req
)
3310 fprintf( stderr
, " flags=%08x", req
->flags
);
3311 fprintf( stderr
, ", old_clipboard=%08x", req
->old_clipboard
);
3312 fprintf( stderr
, ", old_owner=%08x", req
->old_owner
);
3313 fprintf( stderr
, ", old_viewer=%08x", req
->old_viewer
);
3314 fprintf( stderr
, ", seqno=%08x", req
->seqno
);
3317 static void dump_open_token_request( const struct open_token_request
*req
)
3319 fprintf( stderr
, " handle=%04x", req
->handle
);
3320 fprintf( stderr
, ", access=%08x", req
->access
);
3321 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3322 fprintf( stderr
, ", flags=%08x", req
->flags
);
3325 static void dump_open_token_reply( const struct open_token_reply
*req
)
3327 fprintf( stderr
, " token=%04x", req
->token
);
3330 static void dump_set_global_windows_request( const struct set_global_windows_request
*req
)
3332 fprintf( stderr
, " flags=%08x", req
->flags
);
3333 fprintf( stderr
, ", shell_window=%08x", req
->shell_window
);
3334 fprintf( stderr
, ", shell_listview=%08x", req
->shell_listview
);
3335 fprintf( stderr
, ", progman_window=%08x", req
->progman_window
);
3336 fprintf( stderr
, ", taskman_window=%08x", req
->taskman_window
);
3339 static void dump_set_global_windows_reply( const struct set_global_windows_reply
*req
)
3341 fprintf( stderr
, " old_shell_window=%08x", req
->old_shell_window
);
3342 fprintf( stderr
, ", old_shell_listview=%08x", req
->old_shell_listview
);
3343 fprintf( stderr
, ", old_progman_window=%08x", req
->old_progman_window
);
3344 fprintf( stderr
, ", old_taskman_window=%08x", req
->old_taskman_window
);
3347 static void dump_adjust_token_privileges_request( const struct adjust_token_privileges_request
*req
)
3349 fprintf( stderr
, " handle=%04x", req
->handle
);
3350 fprintf( stderr
, ", disable_all=%d", req
->disable_all
);
3351 fprintf( stderr
, ", get_modified_state=%d", req
->get_modified_state
);
3352 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size
);
3355 static void dump_adjust_token_privileges_reply( const struct adjust_token_privileges_reply
*req
)
3357 fprintf( stderr
, " len=%08x", req
->len
);
3358 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size
);
3361 static void dump_get_token_privileges_request( const struct get_token_privileges_request
*req
)
3363 fprintf( stderr
, " handle=%04x", req
->handle
);
3366 static void dump_get_token_privileges_reply( const struct get_token_privileges_reply
*req
)
3368 fprintf( stderr
, " len=%08x", req
->len
);
3369 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size
);
3372 static void dump_check_token_privileges_request( const struct check_token_privileges_request
*req
)
3374 fprintf( stderr
, " handle=%04x", req
->handle
);
3375 fprintf( stderr
, ", all_required=%d", req
->all_required
);
3376 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size
);
3379 static void dump_check_token_privileges_reply( const struct check_token_privileges_reply
*req
)
3381 fprintf( stderr
, " has_privileges=%d", req
->has_privileges
);
3382 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size
);
3385 static void dump_duplicate_token_request( const struct duplicate_token_request
*req
)
3387 fprintf( stderr
, " handle=%04x", req
->handle
);
3388 fprintf( stderr
, ", access=%08x", req
->access
);
3389 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3390 fprintf( stderr
, ", primary=%d", req
->primary
);
3391 fprintf( stderr
, ", impersonation_level=%d", req
->impersonation_level
);
3394 static void dump_duplicate_token_reply( const struct duplicate_token_reply
*req
)
3396 fprintf( stderr
, " new_handle=%04x", req
->new_handle
);
3399 static void dump_access_check_request( const struct access_check_request
*req
)
3401 fprintf( stderr
, " handle=%04x", req
->handle
);
3402 fprintf( stderr
, ", desired_access=%08x", req
->desired_access
);
3403 fprintf( stderr
, ", mapping_read=%08x", req
->mapping_read
);
3404 fprintf( stderr
, ", mapping_write=%08x", req
->mapping_write
);
3405 fprintf( stderr
, ", mapping_execute=%08x", req
->mapping_execute
);
3406 fprintf( stderr
, ", mapping_all=%08x", req
->mapping_all
);
3407 dump_varargs_security_descriptor( ", sd=", cur_size
);
3410 static void dump_access_check_reply( const struct access_check_reply
*req
)
3412 fprintf( stderr
, " access_granted=%08x", req
->access_granted
);
3413 fprintf( stderr
, ", access_status=%08x", req
->access_status
);
3414 fprintf( stderr
, ", privileges_len=%08x", req
->privileges_len
);
3415 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size
);
3418 static void dump_get_token_user_request( const struct get_token_user_request
*req
)
3420 fprintf( stderr
, " handle=%04x", req
->handle
);
3423 static void dump_get_token_user_reply( const struct get_token_user_reply
*req
)
3425 fprintf( stderr
, " user_len=%u", req
->user_len
);
3426 dump_varargs_SID( ", user=", cur_size
);
3429 static void dump_get_token_groups_request( const struct get_token_groups_request
*req
)
3431 fprintf( stderr
, " handle=%04x", req
->handle
);
3434 static void dump_get_token_groups_reply( const struct get_token_groups_reply
*req
)
3436 fprintf( stderr
, " user_len=%u", req
->user_len
);
3437 dump_varargs_token_groups( ", user=", cur_size
);
3440 static void dump_get_token_default_dacl_request( const struct get_token_default_dacl_request
*req
)
3442 fprintf( stderr
, " handle=%04x", req
->handle
);
3445 static void dump_get_token_default_dacl_reply( const struct get_token_default_dacl_reply
*req
)
3447 fprintf( stderr
, " acl_len=%u", req
->acl_len
);
3448 dump_varargs_ACL( ", acl=", cur_size
);
3451 static void dump_set_token_default_dacl_request( const struct set_token_default_dacl_request
*req
)
3453 fprintf( stderr
, " handle=%04x", req
->handle
);
3454 dump_varargs_ACL( ", acl=", cur_size
);
3457 static void dump_set_security_object_request( const struct set_security_object_request
*req
)
3459 fprintf( stderr
, " handle=%04x", req
->handle
);
3460 fprintf( stderr
, ", security_info=%08x", req
->security_info
);
3461 dump_varargs_security_descriptor( ", sd=", cur_size
);
3464 static void dump_get_security_object_request( const struct get_security_object_request
*req
)
3466 fprintf( stderr
, " handle=%04x", req
->handle
);
3467 fprintf( stderr
, ", security_info=%08x", req
->security_info
);
3470 static void dump_get_security_object_reply( const struct get_security_object_reply
*req
)
3472 fprintf( stderr
, " sd_len=%08x", req
->sd_len
);
3473 dump_varargs_security_descriptor( ", sd=", cur_size
);
3476 static void dump_create_mailslot_request( const struct create_mailslot_request
*req
)
3478 fprintf( stderr
, " access=%08x", req
->access
);
3479 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3480 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
3481 dump_timeout( ", read_timeout=", &req
->read_timeout
);
3482 fprintf( stderr
, ", max_msgsize=%08x", req
->max_msgsize
);
3483 dump_varargs_unicode_str( ", name=", cur_size
);
3486 static void dump_create_mailslot_reply( const struct create_mailslot_reply
*req
)
3488 fprintf( stderr
, " handle=%04x", req
->handle
);
3491 static void dump_set_mailslot_info_request( const struct set_mailslot_info_request
*req
)
3493 fprintf( stderr
, " handle=%04x", req
->handle
);
3494 dump_timeout( ", read_timeout=", &req
->read_timeout
);
3495 fprintf( stderr
, ", flags=%08x", req
->flags
);
3498 static void dump_set_mailslot_info_reply( const struct set_mailslot_info_reply
*req
)
3500 dump_timeout( " read_timeout=", &req
->read_timeout
);
3501 fprintf( stderr
, ", max_msgsize=%08x", req
->max_msgsize
);
3504 static void dump_create_directory_request( const struct create_directory_request
*req
)
3506 fprintf( stderr
, " access=%08x", req
->access
);
3507 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3508 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
3509 dump_varargs_unicode_str( ", directory_name=", cur_size
);
3512 static void dump_create_directory_reply( const struct create_directory_reply
*req
)
3514 fprintf( stderr
, " handle=%04x", req
->handle
);
3517 static void dump_open_directory_request( const struct open_directory_request
*req
)
3519 fprintf( stderr
, " access=%08x", req
->access
);
3520 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3521 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
3522 dump_varargs_unicode_str( ", directory_name=", cur_size
);
3525 static void dump_open_directory_reply( const struct open_directory_reply
*req
)
3527 fprintf( stderr
, " handle=%04x", req
->handle
);
3530 static void dump_get_directory_entry_request( const struct get_directory_entry_request
*req
)
3532 fprintf( stderr
, " handle=%04x", req
->handle
);
3533 fprintf( stderr
, ", index=%08x", req
->index
);
3536 static void dump_get_directory_entry_reply( const struct get_directory_entry_reply
*req
)
3538 fprintf( stderr
, " name_len=%u", req
->name_len
);
3539 dump_varargs_unicode_str( ", name=", min(cur_size
,req
->name_len
) );
3540 dump_varargs_unicode_str( ", type=", cur_size
);
3543 static void dump_create_symlink_request( const struct create_symlink_request
*req
)
3545 fprintf( stderr
, " access=%08x", req
->access
);
3546 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3547 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
3548 fprintf( stderr
, ", name_len=%u", req
->name_len
);
3549 dump_varargs_unicode_str( ", name=", min(cur_size
,req
->name_len
) );
3550 dump_varargs_unicode_str( ", target_name=", cur_size
);
3553 static void dump_create_symlink_reply( const struct create_symlink_reply
*req
)
3555 fprintf( stderr
, " handle=%04x", req
->handle
);
3558 static void dump_open_symlink_request( const struct open_symlink_request
*req
)
3560 fprintf( stderr
, " access=%08x", req
->access
);
3561 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3562 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
3563 dump_varargs_unicode_str( ", name=", cur_size
);
3566 static void dump_open_symlink_reply( const struct open_symlink_reply
*req
)
3568 fprintf( stderr
, " handle=%04x", req
->handle
);
3571 static void dump_query_symlink_request( const struct query_symlink_request
*req
)
3573 fprintf( stderr
, " handle=%04x", req
->handle
);
3576 static void dump_query_symlink_reply( const struct query_symlink_reply
*req
)
3578 dump_varargs_unicode_str( " target_name=", cur_size
);
3581 static void dump_get_object_info_request( const struct get_object_info_request
*req
)
3583 fprintf( stderr
, " handle=%04x", req
->handle
);
3586 static void dump_get_object_info_reply( const struct get_object_info_reply
*req
)
3588 fprintf( stderr
, " access=%08x", req
->access
);
3589 fprintf( stderr
, ", ref_count=%08x", req
->ref_count
);
3592 static void dump_unlink_object_request( const struct unlink_object_request
*req
)
3594 fprintf( stderr
, " handle=%04x", req
->handle
);
3597 static void dump_get_token_impersonation_level_request( const struct get_token_impersonation_level_request
*req
)
3599 fprintf( stderr
, " handle=%04x", req
->handle
);
3602 static void dump_get_token_impersonation_level_reply( const struct get_token_impersonation_level_reply
*req
)
3604 fprintf( stderr
, " impersonation_level=%d", req
->impersonation_level
);
3607 static void dump_allocate_locally_unique_id_request( const struct allocate_locally_unique_id_request
*req
)
3611 static void dump_allocate_locally_unique_id_reply( const struct allocate_locally_unique_id_reply
*req
)
3613 dump_luid( " luid=", &req
->luid
);
3616 static void dump_create_device_manager_request( const struct create_device_manager_request
*req
)
3618 fprintf( stderr
, " access=%08x", req
->access
);
3619 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3622 static void dump_create_device_manager_reply( const struct create_device_manager_reply
*req
)
3624 fprintf( stderr
, " handle=%04x", req
->handle
);
3627 static void dump_create_device_request( const struct create_device_request
*req
)
3629 fprintf( stderr
, " access=%08x", req
->access
);
3630 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3631 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
3632 dump_uint64( ", user_ptr=", &req
->user_ptr
);
3633 fprintf( stderr
, ", manager=%04x", req
->manager
);
3634 dump_varargs_unicode_str( ", name=", cur_size
);
3637 static void dump_create_device_reply( const struct create_device_reply
*req
)
3639 fprintf( stderr
, " handle=%04x", req
->handle
);
3642 static void dump_delete_device_request( const struct delete_device_request
*req
)
3644 fprintf( stderr
, " handle=%04x", req
->handle
);
3647 static void dump_get_next_device_request_request( const struct get_next_device_request_request
*req
)
3649 fprintf( stderr
, " manager=%04x", req
->manager
);
3650 fprintf( stderr
, ", prev=%04x", req
->prev
);
3651 fprintf( stderr
, ", status=%08x", req
->status
);
3652 dump_varargs_bytes( ", prev_data=", cur_size
);
3655 static void dump_get_next_device_request_reply( const struct get_next_device_request_reply
*req
)
3657 fprintf( stderr
, " next=%04x", req
->next
);
3658 dump_ioctl_code( ", code=", &req
->code
);
3659 dump_uint64( ", user_ptr=", &req
->user_ptr
);
3660 fprintf( stderr
, ", in_size=%u", req
->in_size
);
3661 fprintf( stderr
, ", out_size=%u", req
->out_size
);
3662 dump_varargs_bytes( ", next_data=", cur_size
);
3665 static void dump_make_process_system_request( const struct make_process_system_request
*req
)
3669 static void dump_make_process_system_reply( const struct make_process_system_reply
*req
)
3671 fprintf( stderr
, " event=%04x", req
->event
);
3674 static void dump_get_token_statistics_request( const struct get_token_statistics_request
*req
)
3676 fprintf( stderr
, " handle=%04x", req
->handle
);
3679 static void dump_get_token_statistics_reply( const struct get_token_statistics_reply
*req
)
3681 dump_luid( " token_id=", &req
->token_id
);
3682 dump_luid( ", modified_id=", &req
->modified_id
);
3683 fprintf( stderr
, ", primary=%d", req
->primary
);
3684 fprintf( stderr
, ", impersonation_level=%d", req
->impersonation_level
);
3685 fprintf( stderr
, ", group_count=%d", req
->group_count
);
3686 fprintf( stderr
, ", privilege_count=%d", req
->privilege_count
);
3689 static void dump_create_completion_request( const struct create_completion_request
*req
)
3691 fprintf( stderr
, " access=%08x", req
->access
);
3692 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3693 fprintf( stderr
, ", concurrent=%08x", req
->concurrent
);
3694 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
3695 dump_varargs_string( ", filename=", cur_size
);
3698 static void dump_create_completion_reply( const struct create_completion_reply
*req
)
3700 fprintf( stderr
, " handle=%04x", req
->handle
);
3703 static void dump_open_completion_request( const struct open_completion_request
*req
)
3705 fprintf( stderr
, " access=%08x", req
->access
);
3706 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3707 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
3708 dump_varargs_string( ", filename=", cur_size
);
3711 static void dump_open_completion_reply( const struct open_completion_reply
*req
)
3713 fprintf( stderr
, " handle=%04x", req
->handle
);
3716 static void dump_add_completion_request( const struct add_completion_request
*req
)
3718 fprintf( stderr
, " handle=%04x", req
->handle
);
3719 dump_uint64( ", ckey=", &req
->ckey
);
3720 dump_uint64( ", cvalue=", &req
->cvalue
);
3721 fprintf( stderr
, ", information=%08x", req
->information
);
3722 fprintf( stderr
, ", status=%08x", req
->status
);
3725 static void dump_remove_completion_request( const struct remove_completion_request
*req
)
3727 fprintf( stderr
, " handle=%04x", req
->handle
);
3730 static void dump_remove_completion_reply( const struct remove_completion_reply
*req
)
3732 dump_uint64( " ckey=", &req
->ckey
);
3733 dump_uint64( ", cvalue=", &req
->cvalue
);
3734 fprintf( stderr
, ", information=%08x", req
->information
);
3735 fprintf( stderr
, ", status=%08x", req
->status
);
3738 static void dump_query_completion_request( const struct query_completion_request
*req
)
3740 fprintf( stderr
, " handle=%04x", req
->handle
);
3743 static void dump_query_completion_reply( const struct query_completion_reply
*req
)
3745 fprintf( stderr
, " depth=%08x", req
->depth
);
3748 static void dump_set_completion_info_request( const struct set_completion_info_request
*req
)
3750 fprintf( stderr
, " handle=%04x", req
->handle
);
3751 dump_uint64( ", ckey=", &req
->ckey
);
3752 fprintf( stderr
, ", chandle=%04x", req
->chandle
);
3755 static void dump_add_fd_completion_request( const struct add_fd_completion_request
*req
)
3757 fprintf( stderr
, " handle=%04x", req
->handle
);
3758 dump_uint64( ", cvalue=", &req
->cvalue
);
3759 fprintf( stderr
, ", status=%08x", req
->status
);
3760 fprintf( stderr
, ", information=%08x", req
->information
);
3763 static void dump_get_window_layered_info_request( const struct get_window_layered_info_request
*req
)
3765 fprintf( stderr
, " handle=%08x", req
->handle
);
3768 static void dump_get_window_layered_info_reply( const struct get_window_layered_info_reply
*req
)
3770 fprintf( stderr
, " color_key=%08x", req
->color_key
);
3771 fprintf( stderr
, ", alpha=%08x", req
->alpha
);
3772 fprintf( stderr
, ", flags=%08x", req
->flags
);
3775 static void dump_set_window_layered_info_request( const struct set_window_layered_info_request
*req
)
3777 fprintf( stderr
, " handle=%08x", req
->handle
);
3778 fprintf( stderr
, ", color_key=%08x", req
->color_key
);
3779 fprintf( stderr
, ", alpha=%08x", req
->alpha
);
3780 fprintf( stderr
, ", flags=%08x", req
->flags
);
3783 static void dump_alloc_user_handle_request( const struct alloc_user_handle_request
*req
)
3787 static void dump_alloc_user_handle_reply( const struct alloc_user_handle_reply
*req
)
3789 fprintf( stderr
, " handle=%08x", req
->handle
);
3792 static void dump_free_user_handle_request( const struct free_user_handle_request
*req
)
3794 fprintf( stderr
, " handle=%08x", req
->handle
);
3797 static const dump_func req_dumpers
[REQ_NB_REQUESTS
] = {
3798 (dump_func
)dump_new_process_request
,
3799 (dump_func
)dump_get_new_process_info_request
,
3800 (dump_func
)dump_new_thread_request
,
3801 (dump_func
)dump_get_startup_info_request
,
3802 (dump_func
)dump_init_process_done_request
,
3803 (dump_func
)dump_init_thread_request
,
3804 (dump_func
)dump_terminate_process_request
,
3805 (dump_func
)dump_terminate_thread_request
,
3806 (dump_func
)dump_get_process_info_request
,
3807 (dump_func
)dump_set_process_info_request
,
3808 (dump_func
)dump_get_thread_info_request
,
3809 (dump_func
)dump_set_thread_info_request
,
3810 (dump_func
)dump_get_dll_info_request
,
3811 (dump_func
)dump_suspend_thread_request
,
3812 (dump_func
)dump_resume_thread_request
,
3813 (dump_func
)dump_load_dll_request
,
3814 (dump_func
)dump_unload_dll_request
,
3815 (dump_func
)dump_queue_apc_request
,
3816 (dump_func
)dump_get_apc_result_request
,
3817 (dump_func
)dump_close_handle_request
,
3818 (dump_func
)dump_set_handle_info_request
,
3819 (dump_func
)dump_dup_handle_request
,
3820 (dump_func
)dump_open_process_request
,
3821 (dump_func
)dump_open_thread_request
,
3822 (dump_func
)dump_select_request
,
3823 (dump_func
)dump_create_event_request
,
3824 (dump_func
)dump_event_op_request
,
3825 (dump_func
)dump_open_event_request
,
3826 (dump_func
)dump_create_mutex_request
,
3827 (dump_func
)dump_release_mutex_request
,
3828 (dump_func
)dump_open_mutex_request
,
3829 (dump_func
)dump_create_semaphore_request
,
3830 (dump_func
)dump_release_semaphore_request
,
3831 (dump_func
)dump_open_semaphore_request
,
3832 (dump_func
)dump_create_file_request
,
3833 (dump_func
)dump_open_file_object_request
,
3834 (dump_func
)dump_alloc_file_handle_request
,
3835 (dump_func
)dump_get_handle_fd_request
,
3836 (dump_func
)dump_flush_file_request
,
3837 (dump_func
)dump_lock_file_request
,
3838 (dump_func
)dump_unlock_file_request
,
3839 (dump_func
)dump_create_socket_request
,
3840 (dump_func
)dump_accept_socket_request
,
3841 (dump_func
)dump_set_socket_event_request
,
3842 (dump_func
)dump_get_socket_event_request
,
3843 (dump_func
)dump_enable_socket_event_request
,
3844 (dump_func
)dump_set_socket_deferred_request
,
3845 (dump_func
)dump_alloc_console_request
,
3846 (dump_func
)dump_free_console_request
,
3847 (dump_func
)dump_get_console_renderer_events_request
,
3848 (dump_func
)dump_open_console_request
,
3849 (dump_func
)dump_get_console_wait_event_request
,
3850 (dump_func
)dump_get_console_mode_request
,
3851 (dump_func
)dump_set_console_mode_request
,
3852 (dump_func
)dump_set_console_input_info_request
,
3853 (dump_func
)dump_get_console_input_info_request
,
3854 (dump_func
)dump_append_console_input_history_request
,
3855 (dump_func
)dump_get_console_input_history_request
,
3856 (dump_func
)dump_create_console_output_request
,
3857 (dump_func
)dump_set_console_output_info_request
,
3858 (dump_func
)dump_get_console_output_info_request
,
3859 (dump_func
)dump_write_console_input_request
,
3860 (dump_func
)dump_read_console_input_request
,
3861 (dump_func
)dump_write_console_output_request
,
3862 (dump_func
)dump_fill_console_output_request
,
3863 (dump_func
)dump_read_console_output_request
,
3864 (dump_func
)dump_move_console_output_request
,
3865 (dump_func
)dump_send_console_signal_request
,
3866 (dump_func
)dump_read_directory_changes_request
,
3867 (dump_func
)dump_read_change_request
,
3868 (dump_func
)dump_create_mapping_request
,
3869 (dump_func
)dump_open_mapping_request
,
3870 (dump_func
)dump_get_mapping_info_request
,
3871 (dump_func
)dump_get_mapping_committed_range_request
,
3872 (dump_func
)dump_add_mapping_committed_range_request
,
3873 (dump_func
)dump_create_snapshot_request
,
3874 (dump_func
)dump_next_process_request
,
3875 (dump_func
)dump_next_thread_request
,
3876 (dump_func
)dump_wait_debug_event_request
,
3877 (dump_func
)dump_queue_exception_event_request
,
3878 (dump_func
)dump_get_exception_status_request
,
3879 (dump_func
)dump_output_debug_string_request
,
3880 (dump_func
)dump_continue_debug_event_request
,
3881 (dump_func
)dump_debug_process_request
,
3882 (dump_func
)dump_debug_break_request
,
3883 (dump_func
)dump_set_debugger_kill_on_exit_request
,
3884 (dump_func
)dump_read_process_memory_request
,
3885 (dump_func
)dump_write_process_memory_request
,
3886 (dump_func
)dump_create_key_request
,
3887 (dump_func
)dump_open_key_request
,
3888 (dump_func
)dump_delete_key_request
,
3889 (dump_func
)dump_flush_key_request
,
3890 (dump_func
)dump_enum_key_request
,
3891 (dump_func
)dump_set_key_value_request
,
3892 (dump_func
)dump_get_key_value_request
,
3893 (dump_func
)dump_enum_key_value_request
,
3894 (dump_func
)dump_delete_key_value_request
,
3895 (dump_func
)dump_load_registry_request
,
3896 (dump_func
)dump_unload_registry_request
,
3897 (dump_func
)dump_save_registry_request
,
3898 (dump_func
)dump_set_registry_notification_request
,
3899 (dump_func
)dump_create_timer_request
,
3900 (dump_func
)dump_open_timer_request
,
3901 (dump_func
)dump_set_timer_request
,
3902 (dump_func
)dump_cancel_timer_request
,
3903 (dump_func
)dump_get_timer_info_request
,
3904 (dump_func
)dump_get_thread_context_request
,
3905 (dump_func
)dump_set_thread_context_request
,
3906 (dump_func
)dump_get_selector_entry_request
,
3907 (dump_func
)dump_add_atom_request
,
3908 (dump_func
)dump_delete_atom_request
,
3909 (dump_func
)dump_find_atom_request
,
3910 (dump_func
)dump_get_atom_information_request
,
3911 (dump_func
)dump_set_atom_information_request
,
3912 (dump_func
)dump_empty_atom_table_request
,
3913 (dump_func
)dump_init_atom_table_request
,
3914 (dump_func
)dump_get_msg_queue_request
,
3915 (dump_func
)dump_set_queue_fd_request
,
3916 (dump_func
)dump_set_queue_mask_request
,
3917 (dump_func
)dump_get_queue_status_request
,
3918 (dump_func
)dump_get_process_idle_event_request
,
3919 (dump_func
)dump_send_message_request
,
3920 (dump_func
)dump_post_quit_message_request
,
3921 (dump_func
)dump_send_hardware_message_request
,
3922 (dump_func
)dump_get_message_request
,
3923 (dump_func
)dump_reply_message_request
,
3924 (dump_func
)dump_accept_hardware_message_request
,
3925 (dump_func
)dump_get_message_reply_request
,
3926 (dump_func
)dump_set_win_timer_request
,
3927 (dump_func
)dump_kill_win_timer_request
,
3928 (dump_func
)dump_is_window_hung_request
,
3929 (dump_func
)dump_get_serial_info_request
,
3930 (dump_func
)dump_set_serial_info_request
,
3931 (dump_func
)dump_register_async_request
,
3932 (dump_func
)dump_cancel_async_request
,
3933 (dump_func
)dump_ioctl_request
,
3934 (dump_func
)dump_get_ioctl_result_request
,
3935 (dump_func
)dump_create_named_pipe_request
,
3936 (dump_func
)dump_get_named_pipe_info_request
,
3937 (dump_func
)dump_create_window_request
,
3938 (dump_func
)dump_destroy_window_request
,
3939 (dump_func
)dump_get_desktop_window_request
,
3940 (dump_func
)dump_set_window_owner_request
,
3941 (dump_func
)dump_get_window_info_request
,
3942 (dump_func
)dump_set_window_info_request
,
3943 (dump_func
)dump_set_parent_request
,
3944 (dump_func
)dump_get_window_parents_request
,
3945 (dump_func
)dump_get_window_children_request
,
3946 (dump_func
)dump_get_window_children_from_point_request
,
3947 (dump_func
)dump_get_window_tree_request
,
3948 (dump_func
)dump_set_window_pos_request
,
3949 (dump_func
)dump_get_window_rectangles_request
,
3950 (dump_func
)dump_get_window_text_request
,
3951 (dump_func
)dump_set_window_text_request
,
3952 (dump_func
)dump_get_windows_offset_request
,
3953 (dump_func
)dump_get_visible_region_request
,
3954 (dump_func
)dump_get_window_region_request
,
3955 (dump_func
)dump_set_window_region_request
,
3956 (dump_func
)dump_get_update_region_request
,
3957 (dump_func
)dump_update_window_zorder_request
,
3958 (dump_func
)dump_redraw_window_request
,
3959 (dump_func
)dump_set_window_property_request
,
3960 (dump_func
)dump_remove_window_property_request
,
3961 (dump_func
)dump_get_window_property_request
,
3962 (dump_func
)dump_get_window_properties_request
,
3963 (dump_func
)dump_create_winstation_request
,
3964 (dump_func
)dump_open_winstation_request
,
3965 (dump_func
)dump_close_winstation_request
,
3966 (dump_func
)dump_get_process_winstation_request
,
3967 (dump_func
)dump_set_process_winstation_request
,
3968 (dump_func
)dump_enum_winstation_request
,
3969 (dump_func
)dump_create_desktop_request
,
3970 (dump_func
)dump_open_desktop_request
,
3971 (dump_func
)dump_close_desktop_request
,
3972 (dump_func
)dump_get_thread_desktop_request
,
3973 (dump_func
)dump_set_thread_desktop_request
,
3974 (dump_func
)dump_enum_desktop_request
,
3975 (dump_func
)dump_set_user_object_info_request
,
3976 (dump_func
)dump_attach_thread_input_request
,
3977 (dump_func
)dump_get_thread_input_request
,
3978 (dump_func
)dump_get_last_input_time_request
,
3979 (dump_func
)dump_get_key_state_request
,
3980 (dump_func
)dump_set_key_state_request
,
3981 (dump_func
)dump_set_foreground_window_request
,
3982 (dump_func
)dump_set_focus_window_request
,
3983 (dump_func
)dump_set_active_window_request
,
3984 (dump_func
)dump_set_capture_window_request
,
3985 (dump_func
)dump_set_caret_window_request
,
3986 (dump_func
)dump_set_caret_info_request
,
3987 (dump_func
)dump_set_hook_request
,
3988 (dump_func
)dump_remove_hook_request
,
3989 (dump_func
)dump_start_hook_chain_request
,
3990 (dump_func
)dump_finish_hook_chain_request
,
3991 (dump_func
)dump_get_hook_info_request
,
3992 (dump_func
)dump_create_class_request
,
3993 (dump_func
)dump_destroy_class_request
,
3994 (dump_func
)dump_set_class_info_request
,
3995 (dump_func
)dump_set_clipboard_info_request
,
3996 (dump_func
)dump_open_token_request
,
3997 (dump_func
)dump_set_global_windows_request
,
3998 (dump_func
)dump_adjust_token_privileges_request
,
3999 (dump_func
)dump_get_token_privileges_request
,
4000 (dump_func
)dump_check_token_privileges_request
,
4001 (dump_func
)dump_duplicate_token_request
,
4002 (dump_func
)dump_access_check_request
,
4003 (dump_func
)dump_get_token_user_request
,
4004 (dump_func
)dump_get_token_groups_request
,
4005 (dump_func
)dump_get_token_default_dacl_request
,
4006 (dump_func
)dump_set_token_default_dacl_request
,
4007 (dump_func
)dump_set_security_object_request
,
4008 (dump_func
)dump_get_security_object_request
,
4009 (dump_func
)dump_create_mailslot_request
,
4010 (dump_func
)dump_set_mailslot_info_request
,
4011 (dump_func
)dump_create_directory_request
,
4012 (dump_func
)dump_open_directory_request
,
4013 (dump_func
)dump_get_directory_entry_request
,
4014 (dump_func
)dump_create_symlink_request
,
4015 (dump_func
)dump_open_symlink_request
,
4016 (dump_func
)dump_query_symlink_request
,
4017 (dump_func
)dump_get_object_info_request
,
4018 (dump_func
)dump_unlink_object_request
,
4019 (dump_func
)dump_get_token_impersonation_level_request
,
4020 (dump_func
)dump_allocate_locally_unique_id_request
,
4021 (dump_func
)dump_create_device_manager_request
,
4022 (dump_func
)dump_create_device_request
,
4023 (dump_func
)dump_delete_device_request
,
4024 (dump_func
)dump_get_next_device_request_request
,
4025 (dump_func
)dump_make_process_system_request
,
4026 (dump_func
)dump_get_token_statistics_request
,
4027 (dump_func
)dump_create_completion_request
,
4028 (dump_func
)dump_open_completion_request
,
4029 (dump_func
)dump_add_completion_request
,
4030 (dump_func
)dump_remove_completion_request
,
4031 (dump_func
)dump_query_completion_request
,
4032 (dump_func
)dump_set_completion_info_request
,
4033 (dump_func
)dump_add_fd_completion_request
,
4034 (dump_func
)dump_get_window_layered_info_request
,
4035 (dump_func
)dump_set_window_layered_info_request
,
4036 (dump_func
)dump_alloc_user_handle_request
,
4037 (dump_func
)dump_free_user_handle_request
,
4040 static const dump_func reply_dumpers
[REQ_NB_REQUESTS
] = {
4041 (dump_func
)dump_new_process_reply
,
4042 (dump_func
)dump_get_new_process_info_reply
,
4043 (dump_func
)dump_new_thread_reply
,
4044 (dump_func
)dump_get_startup_info_reply
,
4046 (dump_func
)dump_init_thread_reply
,
4047 (dump_func
)dump_terminate_process_reply
,
4048 (dump_func
)dump_terminate_thread_reply
,
4049 (dump_func
)dump_get_process_info_reply
,
4051 (dump_func
)dump_get_thread_info_reply
,
4053 (dump_func
)dump_get_dll_info_reply
,
4054 (dump_func
)dump_suspend_thread_reply
,
4055 (dump_func
)dump_resume_thread_reply
,
4058 (dump_func
)dump_queue_apc_reply
,
4059 (dump_func
)dump_get_apc_result_reply
,
4061 (dump_func
)dump_set_handle_info_reply
,
4062 (dump_func
)dump_dup_handle_reply
,
4063 (dump_func
)dump_open_process_reply
,
4064 (dump_func
)dump_open_thread_reply
,
4065 (dump_func
)dump_select_reply
,
4066 (dump_func
)dump_create_event_reply
,
4068 (dump_func
)dump_open_event_reply
,
4069 (dump_func
)dump_create_mutex_reply
,
4070 (dump_func
)dump_release_mutex_reply
,
4071 (dump_func
)dump_open_mutex_reply
,
4072 (dump_func
)dump_create_semaphore_reply
,
4073 (dump_func
)dump_release_semaphore_reply
,
4074 (dump_func
)dump_open_semaphore_reply
,
4075 (dump_func
)dump_create_file_reply
,
4076 (dump_func
)dump_open_file_object_reply
,
4077 (dump_func
)dump_alloc_file_handle_reply
,
4078 (dump_func
)dump_get_handle_fd_reply
,
4079 (dump_func
)dump_flush_file_reply
,
4080 (dump_func
)dump_lock_file_reply
,
4082 (dump_func
)dump_create_socket_reply
,
4083 (dump_func
)dump_accept_socket_reply
,
4085 (dump_func
)dump_get_socket_event_reply
,
4088 (dump_func
)dump_alloc_console_reply
,
4090 (dump_func
)dump_get_console_renderer_events_reply
,
4091 (dump_func
)dump_open_console_reply
,
4092 (dump_func
)dump_get_console_wait_event_reply
,
4093 (dump_func
)dump_get_console_mode_reply
,
4096 (dump_func
)dump_get_console_input_info_reply
,
4098 (dump_func
)dump_get_console_input_history_reply
,
4099 (dump_func
)dump_create_console_output_reply
,
4101 (dump_func
)dump_get_console_output_info_reply
,
4102 (dump_func
)dump_write_console_input_reply
,
4103 (dump_func
)dump_read_console_input_reply
,
4104 (dump_func
)dump_write_console_output_reply
,
4105 (dump_func
)dump_fill_console_output_reply
,
4106 (dump_func
)dump_read_console_output_reply
,
4110 (dump_func
)dump_read_change_reply
,
4111 (dump_func
)dump_create_mapping_reply
,
4112 (dump_func
)dump_open_mapping_reply
,
4113 (dump_func
)dump_get_mapping_info_reply
,
4114 (dump_func
)dump_get_mapping_committed_range_reply
,
4116 (dump_func
)dump_create_snapshot_reply
,
4117 (dump_func
)dump_next_process_reply
,
4118 (dump_func
)dump_next_thread_reply
,
4119 (dump_func
)dump_wait_debug_event_reply
,
4120 (dump_func
)dump_queue_exception_event_reply
,
4121 (dump_func
)dump_get_exception_status_reply
,
4125 (dump_func
)dump_debug_break_reply
,
4127 (dump_func
)dump_read_process_memory_reply
,
4129 (dump_func
)dump_create_key_reply
,
4130 (dump_func
)dump_open_key_reply
,
4133 (dump_func
)dump_enum_key_reply
,
4135 (dump_func
)dump_get_key_value_reply
,
4136 (dump_func
)dump_enum_key_value_reply
,
4142 (dump_func
)dump_create_timer_reply
,
4143 (dump_func
)dump_open_timer_reply
,
4144 (dump_func
)dump_set_timer_reply
,
4145 (dump_func
)dump_cancel_timer_reply
,
4146 (dump_func
)dump_get_timer_info_reply
,
4147 (dump_func
)dump_get_thread_context_reply
,
4148 (dump_func
)dump_set_thread_context_reply
,
4149 (dump_func
)dump_get_selector_entry_reply
,
4150 (dump_func
)dump_add_atom_reply
,
4152 (dump_func
)dump_find_atom_reply
,
4153 (dump_func
)dump_get_atom_information_reply
,
4156 (dump_func
)dump_init_atom_table_reply
,
4157 (dump_func
)dump_get_msg_queue_reply
,
4159 (dump_func
)dump_set_queue_mask_reply
,
4160 (dump_func
)dump_get_queue_status_reply
,
4161 (dump_func
)dump_get_process_idle_event_reply
,
4165 (dump_func
)dump_get_message_reply
,
4168 (dump_func
)dump_get_message_reply_reply
,
4169 (dump_func
)dump_set_win_timer_reply
,
4171 (dump_func
)dump_is_window_hung_reply
,
4172 (dump_func
)dump_get_serial_info_reply
,
4176 (dump_func
)dump_ioctl_reply
,
4177 (dump_func
)dump_get_ioctl_result_reply
,
4178 (dump_func
)dump_create_named_pipe_reply
,
4179 (dump_func
)dump_get_named_pipe_info_reply
,
4180 (dump_func
)dump_create_window_reply
,
4182 (dump_func
)dump_get_desktop_window_reply
,
4183 (dump_func
)dump_set_window_owner_reply
,
4184 (dump_func
)dump_get_window_info_reply
,
4185 (dump_func
)dump_set_window_info_reply
,
4186 (dump_func
)dump_set_parent_reply
,
4187 (dump_func
)dump_get_window_parents_reply
,
4188 (dump_func
)dump_get_window_children_reply
,
4189 (dump_func
)dump_get_window_children_from_point_reply
,
4190 (dump_func
)dump_get_window_tree_reply
,
4191 (dump_func
)dump_set_window_pos_reply
,
4192 (dump_func
)dump_get_window_rectangles_reply
,
4193 (dump_func
)dump_get_window_text_reply
,
4195 (dump_func
)dump_get_windows_offset_reply
,
4196 (dump_func
)dump_get_visible_region_reply
,
4197 (dump_func
)dump_get_window_region_reply
,
4199 (dump_func
)dump_get_update_region_reply
,
4203 (dump_func
)dump_remove_window_property_reply
,
4204 (dump_func
)dump_get_window_property_reply
,
4205 (dump_func
)dump_get_window_properties_reply
,
4206 (dump_func
)dump_create_winstation_reply
,
4207 (dump_func
)dump_open_winstation_reply
,
4209 (dump_func
)dump_get_process_winstation_reply
,
4211 (dump_func
)dump_enum_winstation_reply
,
4212 (dump_func
)dump_create_desktop_reply
,
4213 (dump_func
)dump_open_desktop_reply
,
4215 (dump_func
)dump_get_thread_desktop_reply
,
4217 (dump_func
)dump_enum_desktop_reply
,
4218 (dump_func
)dump_set_user_object_info_reply
,
4220 (dump_func
)dump_get_thread_input_reply
,
4221 (dump_func
)dump_get_last_input_time_reply
,
4222 (dump_func
)dump_get_key_state_reply
,
4224 (dump_func
)dump_set_foreground_window_reply
,
4225 (dump_func
)dump_set_focus_window_reply
,
4226 (dump_func
)dump_set_active_window_reply
,
4227 (dump_func
)dump_set_capture_window_reply
,
4228 (dump_func
)dump_set_caret_window_reply
,
4229 (dump_func
)dump_set_caret_info_reply
,
4230 (dump_func
)dump_set_hook_reply
,
4231 (dump_func
)dump_remove_hook_reply
,
4232 (dump_func
)dump_start_hook_chain_reply
,
4234 (dump_func
)dump_get_hook_info_reply
,
4235 (dump_func
)dump_create_class_reply
,
4236 (dump_func
)dump_destroy_class_reply
,
4237 (dump_func
)dump_set_class_info_reply
,
4238 (dump_func
)dump_set_clipboard_info_reply
,
4239 (dump_func
)dump_open_token_reply
,
4240 (dump_func
)dump_set_global_windows_reply
,
4241 (dump_func
)dump_adjust_token_privileges_reply
,
4242 (dump_func
)dump_get_token_privileges_reply
,
4243 (dump_func
)dump_check_token_privileges_reply
,
4244 (dump_func
)dump_duplicate_token_reply
,
4245 (dump_func
)dump_access_check_reply
,
4246 (dump_func
)dump_get_token_user_reply
,
4247 (dump_func
)dump_get_token_groups_reply
,
4248 (dump_func
)dump_get_token_default_dacl_reply
,
4251 (dump_func
)dump_get_security_object_reply
,
4252 (dump_func
)dump_create_mailslot_reply
,
4253 (dump_func
)dump_set_mailslot_info_reply
,
4254 (dump_func
)dump_create_directory_reply
,
4255 (dump_func
)dump_open_directory_reply
,
4256 (dump_func
)dump_get_directory_entry_reply
,
4257 (dump_func
)dump_create_symlink_reply
,
4258 (dump_func
)dump_open_symlink_reply
,
4259 (dump_func
)dump_query_symlink_reply
,
4260 (dump_func
)dump_get_object_info_reply
,
4262 (dump_func
)dump_get_token_impersonation_level_reply
,
4263 (dump_func
)dump_allocate_locally_unique_id_reply
,
4264 (dump_func
)dump_create_device_manager_reply
,
4265 (dump_func
)dump_create_device_reply
,
4267 (dump_func
)dump_get_next_device_request_reply
,
4268 (dump_func
)dump_make_process_system_reply
,
4269 (dump_func
)dump_get_token_statistics_reply
,
4270 (dump_func
)dump_create_completion_reply
,
4271 (dump_func
)dump_open_completion_reply
,
4273 (dump_func
)dump_remove_completion_reply
,
4274 (dump_func
)dump_query_completion_reply
,
4277 (dump_func
)dump_get_window_layered_info_reply
,
4279 (dump_func
)dump_alloc_user_handle_reply
,
4283 static const char * const req_names
[REQ_NB_REQUESTS
] = {
4285 "get_new_process_info",
4288 "init_process_done",
4290 "terminate_process",
4316 "release_semaphore",
4320 "alloc_file_handle",
4329 "enable_socket_event",
4330 "set_socket_deferred",
4333 "get_console_renderer_events",
4335 "get_console_wait_event",
4338 "set_console_input_info",
4339 "get_console_input_info",
4340 "append_console_input_history",
4341 "get_console_input_history",
4342 "create_console_output",
4343 "set_console_output_info",
4344 "get_console_output_info",
4345 "write_console_input",
4346 "read_console_input",
4347 "write_console_output",
4348 "fill_console_output",
4349 "read_console_output",
4350 "move_console_output",
4351 "send_console_signal",
4352 "read_directory_changes",
4357 "get_mapping_committed_range",
4358 "add_mapping_committed_range",
4363 "queue_exception_event",
4364 "get_exception_status",
4365 "output_debug_string",
4366 "continue_debug_event",
4369 "set_debugger_kill_on_exit",
4370 "read_process_memory",
4371 "write_process_memory",
4384 "set_registry_notification",
4390 "get_thread_context",
4391 "set_thread_context",
4392 "get_selector_entry",
4396 "get_atom_information",
4397 "set_atom_information",
4404 "get_process_idle_event",
4406 "post_quit_message",
4407 "send_hardware_message",
4410 "accept_hardware_message",
4411 "get_message_reply",
4421 "create_named_pipe",
4422 "get_named_pipe_info",
4425 "get_desktop_window",
4430 "get_window_parents",
4431 "get_window_children",
4432 "get_window_children_from_point",
4435 "get_window_rectangles",
4438 "get_windows_offset",
4439 "get_visible_region",
4440 "get_window_region",
4441 "set_window_region",
4442 "get_update_region",
4443 "update_window_zorder",
4445 "set_window_property",
4446 "remove_window_property",
4447 "get_window_property",
4448 "get_window_properties",
4449 "create_winstation",
4452 "get_process_winstation",
4453 "set_process_winstation",
4458 "get_thread_desktop",
4459 "set_thread_desktop",
4461 "set_user_object_info",
4462 "attach_thread_input",
4464 "get_last_input_time",
4467 "set_foreground_window",
4469 "set_active_window",
4470 "set_capture_window",
4476 "finish_hook_chain",
4481 "set_clipboard_info",
4483 "set_global_windows",
4484 "adjust_token_privileges",
4485 "get_token_privileges",
4486 "check_token_privileges",
4491 "get_token_default_dacl",
4492 "set_token_default_dacl",
4493 "set_security_object",
4494 "get_security_object",
4496 "set_mailslot_info",
4499 "get_directory_entry",
4505 "get_token_impersonation_level",
4506 "allocate_locally_unique_id",
4507 "create_device_manager",
4510 "get_next_device_request",
4511 "make_process_system",
4512 "get_token_statistics",
4513 "create_completion",
4516 "remove_completion",
4518 "set_completion_info",
4519 "add_fd_completion",
4520 "get_window_layered_info",
4521 "set_window_layered_info",
4522 "alloc_user_handle",
4532 { "ABANDONED_WAIT_0", STATUS_ABANDONED_WAIT_0
},
4533 { "ACCESS_DENIED", STATUS_ACCESS_DENIED
},
4534 { "ACCESS_VIOLATION", STATUS_ACCESS_VIOLATION
},
4535 { "ALERTED", STATUS_ALERTED
},
4536 { "ALIAS_EXISTS", STATUS_ALIAS_EXISTS
},
4537 { "BAD_DEVICE_TYPE", STATUS_BAD_DEVICE_TYPE
},
4538 { "BAD_IMPERSONATION_LEVEL", STATUS_BAD_IMPERSONATION_LEVEL
},
4539 { "BREAKPOINT", STATUS_BREAKPOINT
},
4540 { "BUFFER_OVERFLOW", STATUS_BUFFER_OVERFLOW
},
4541 { "BUFFER_TOO_SMALL", STATUS_BUFFER_TOO_SMALL
},
4542 { "CANCELLED", STATUS_CANCELLED
},
4543 { "CANT_OPEN_ANONYMOUS", STATUS_CANT_OPEN_ANONYMOUS
},
4544 { "CHILD_MUST_BE_VOLATILE", STATUS_CHILD_MUST_BE_VOLATILE
},
4545 { "DEBUGGER_INACTIVE", STATUS_DEBUGGER_INACTIVE
},
4546 { "DEVICE_BUSY", STATUS_DEVICE_BUSY
},
4547 { "DIRECTORY_NOT_EMPTY", STATUS_DIRECTORY_NOT_EMPTY
},
4548 { "DISK_FULL", STATUS_DISK_FULL
},
4549 { "DLL_NOT_FOUND", STATUS_DLL_NOT_FOUND
},
4550 { "ERROR_CLASS_ALREADY_EXISTS", 0xc0010000 | ERROR_CLASS_ALREADY_EXISTS
},
4551 { "ERROR_CLASS_DOES_NOT_EXIST", 0xc0010000 | ERROR_CLASS_DOES_NOT_EXIST
},
4552 { "ERROR_CLASS_HAS_WINDOWS", 0xc0010000 | ERROR_CLASS_HAS_WINDOWS
},
4553 { "ERROR_CLIPBOARD_NOT_OPEN", 0xc0010000 | ERROR_CLIPBOARD_NOT_OPEN
},
4554 { "ERROR_INVALID_INDEX", 0xc0010000 | ERROR_INVALID_INDEX
},
4555 { "ERROR_INVALID_WINDOW_HANDLE", 0xc0010000 | ERROR_INVALID_WINDOW_HANDLE
},
4556 { "FILE_DELETED", STATUS_FILE_DELETED
},
4557 { "FILE_IS_A_DIRECTORY", STATUS_FILE_IS_A_DIRECTORY
},
4558 { "FILE_LOCK_CONFLICT", STATUS_FILE_LOCK_CONFLICT
},
4559 { "GENERIC_NOT_MAPPED", STATUS_GENERIC_NOT_MAPPED
},
4560 { "HANDLES_CLOSED", STATUS_HANDLES_CLOSED
},
4561 { "HANDLE_NOT_CLOSABLE", STATUS_HANDLE_NOT_CLOSABLE
},
4562 { "ILLEGAL_FUNCTION", STATUS_ILLEGAL_FUNCTION
},
4563 { "INSTANCE_NOT_AVAILABLE", STATUS_INSTANCE_NOT_AVAILABLE
},
4564 { "INSUFFICIENT_RESOURCES", STATUS_INSUFFICIENT_RESOURCES
},
4565 { "INVALID_CID", STATUS_INVALID_CID
},
4566 { "INVALID_DEVICE_REQUEST", STATUS_INVALID_DEVICE_REQUEST
},
4567 { "INVALID_FILE_FOR_SECTION", STATUS_INVALID_FILE_FOR_SECTION
},
4568 { "INVALID_HANDLE", STATUS_INVALID_HANDLE
},
4569 { "INVALID_PARAMETER", STATUS_INVALID_PARAMETER
},
4570 { "INVALID_SECURITY_DESCR", STATUS_INVALID_SECURITY_DESCR
},
4571 { "IO_TIMEOUT", STATUS_IO_TIMEOUT
},
4572 { "KEY_DELETED", STATUS_KEY_DELETED
},
4573 { "MAPPED_FILE_SIZE_ZERO", STATUS_MAPPED_FILE_SIZE_ZERO
},
4574 { "MUTANT_NOT_OWNED", STATUS_MUTANT_NOT_OWNED
},
4575 { "NAME_TOO_LONG", STATUS_NAME_TOO_LONG
},
4576 { "NOTIFY_ENUM_DIR", STATUS_NOTIFY_ENUM_DIR
},
4577 { "NOT_ALL_ASSIGNED", STATUS_NOT_ALL_ASSIGNED
},
4578 { "NOT_A_DIRECTORY", STATUS_NOT_A_DIRECTORY
},
4579 { "NOT_FOUND", STATUS_NOT_FOUND
},
4580 { "NOT_IMPLEMENTED", STATUS_NOT_IMPLEMENTED
},
4581 { "NOT_REGISTRY_FILE", STATUS_NOT_REGISTRY_FILE
},
4582 { "NOT_SUPPORTED", STATUS_NOT_SUPPORTED
},
4583 { "NO_DATA_DETECTED", STATUS_NO_DATA_DETECTED
},
4584 { "NO_IMPERSONATION_TOKEN", STATUS_NO_IMPERSONATION_TOKEN
},
4585 { "NO_MEMORY", STATUS_NO_MEMORY
},
4586 { "NO_MORE_ENTRIES", STATUS_NO_MORE_ENTRIES
},
4587 { "NO_MORE_FILES", STATUS_NO_MORE_FILES
},
4588 { "NO_SUCH_DEVICE", STATUS_NO_SUCH_DEVICE
},
4589 { "NO_SUCH_FILE", STATUS_NO_SUCH_FILE
},
4590 { "NO_TOKEN", STATUS_NO_TOKEN
},
4591 { "OBJECT_NAME_COLLISION", STATUS_OBJECT_NAME_COLLISION
},
4592 { "OBJECT_NAME_EXISTS", STATUS_OBJECT_NAME_EXISTS
},
4593 { "OBJECT_NAME_INVALID", STATUS_OBJECT_NAME_INVALID
},
4594 { "OBJECT_NAME_NOT_FOUND", STATUS_OBJECT_NAME_NOT_FOUND
},
4595 { "OBJECT_PATH_INVALID", STATUS_OBJECT_PATH_INVALID
},
4596 { "OBJECT_PATH_NOT_FOUND", STATUS_OBJECT_PATH_NOT_FOUND
},
4597 { "OBJECT_PATH_SYNTAX_BAD", STATUS_OBJECT_PATH_SYNTAX_BAD
},
4598 { "OBJECT_TYPE_MISMATCH", STATUS_OBJECT_TYPE_MISMATCH
},
4599 { "PENDING", STATUS_PENDING
},
4600 { "PIPE_BUSY", STATUS_PIPE_BUSY
},
4601 { "PIPE_CONNECTED", STATUS_PIPE_CONNECTED
},
4602 { "PIPE_DISCONNECTED", STATUS_PIPE_DISCONNECTED
},
4603 { "PIPE_LISTENING", STATUS_PIPE_LISTENING
},
4604 { "PIPE_NOT_AVAILABLE", STATUS_PIPE_NOT_AVAILABLE
},
4605 { "PRIVILEGE_NOT_HELD", STATUS_PRIVILEGE_NOT_HELD
},
4606 { "PROCESS_IS_TERMINATING", STATUS_PROCESS_IS_TERMINATING
},
4607 { "SECTION_TOO_BIG", STATUS_SECTION_TOO_BIG
},
4608 { "SEMAPHORE_LIMIT_EXCEEDED", STATUS_SEMAPHORE_LIMIT_EXCEEDED
},
4609 { "SHARING_VIOLATION", STATUS_SHARING_VIOLATION
},
4610 { "SHUTDOWN_IN_PROGRESS", STATUS_SHUTDOWN_IN_PROGRESS
},
4611 { "SUSPEND_COUNT_EXCEEDED", STATUS_SUSPEND_COUNT_EXCEEDED
},
4612 { "THREAD_IS_TERMINATING", STATUS_THREAD_IS_TERMINATING
},
4613 { "TIMEOUT", STATUS_TIMEOUT
},
4614 { "TOO_MANY_OPENED_FILES", STATUS_TOO_MANY_OPENED_FILES
},
4615 { "UNSUCCESSFUL", STATUS_UNSUCCESSFUL
},
4616 { "USER_APC", STATUS_USER_APC
},
4617 { "VOLUME_DISMOUNTED", STATUS_VOLUME_DISMOUNTED
},
4618 { "WAS_LOCKED", STATUS_WAS_LOCKED
},
4622 /* ### make_requests end ### */
4623 /* Everything above this line is generated automatically by tools/make_requests */
4625 static const char *get_status_name( unsigned int status
)
4628 static char buffer
[10];
4632 for (i
= 0; status_names
[i
].name
; i
++)
4633 if (status_names
[i
].value
== status
) return status_names
[i
].name
;
4635 sprintf( buffer
, "%x", status
);
4639 void trace_request(void)
4641 enum request req
= current
->req
.request_header
.req
;
4642 if (req
< REQ_NB_REQUESTS
)
4644 fprintf( stderr
, "%04x: %s(", current
->id
, req_names
[req
] );
4645 if (req_dumpers
[req
])
4647 cur_data
= get_req_data();
4648 cur_size
= get_req_data_size();
4649 req_dumpers
[req
]( ¤t
->req
);
4651 fprintf( stderr
, " )\n" );
4653 else fprintf( stderr
, "%04x: %d(?)\n", current
->id
, req
);
4656 void trace_reply( enum request req
, const union generic_reply
*reply
)
4658 if (req
< REQ_NB_REQUESTS
)
4660 fprintf( stderr
, "%04x: %s() = %s",
4661 current
->id
, req_names
[req
], get_status_name(current
->error
) );
4662 if (reply_dumpers
[req
])
4664 fprintf( stderr
, " {" );
4665 cur_data
= current
->reply_data
;
4666 cur_size
= reply
->reply_header
.reply_size
;
4667 reply_dumpers
[req
]( reply
);
4668 fprintf( stderr
, " }" );
4670 fputc( '\n', stderr
);
4672 else fprintf( stderr
, "%04x: %d() = %s\n",
4673 current
->id
, req
, get_status_name(current
->error
) );