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
= min( 1024, size
);
378 fprintf( stderr
,"%s{", prefix
);
381 fprintf( stderr
, "%02x", *data
++ );
382 if (--len
) fputc( ',', stderr
);
384 if (size
> 1024) fprintf( stderr
, "...(total %u)", size
);
385 fputc( '}', stderr
);
389 static void dump_varargs_string( const char *prefix
, data_size_t size
)
391 fprintf( stderr
, "%s\"%.*s\"", prefix
, (int)size
, (const char *)cur_data
);
395 static void dump_varargs_unicode_str( const char *prefix
, data_size_t size
)
397 fprintf( stderr
, "%sL\"", prefix
);
398 dump_strW( cur_data
, size
/ sizeof(WCHAR
), stderr
, "\"\"" );
399 fputc( '\"', stderr
);
403 static void dump_varargs_context( const char *prefix
, data_size_t size
)
405 const context_t
*context
= cur_data
;
411 fprintf( stderr
, "%s{}", prefix
);
414 size
= min( size
, sizeof(ctx
) );
415 memset( &ctx
, 0, sizeof(ctx
) );
416 memcpy( &ctx
, context
, size
);
418 fprintf( stderr
,"%s{", prefix
);
419 dump_cpu_type( "cpu=", &ctx
.cpu
);
423 if (ctx
.flags
& SERVER_CTX_CONTROL
)
424 fprintf( stderr
, ",eip=%08x,esp=%08x,ebp=%08x,eflags=%08x,cs=%04x,ss=%04x",
425 ctx
.ctl
.i386_regs
.eip
, ctx
.ctl
.i386_regs
.esp
, ctx
.ctl
.i386_regs
.ebp
,
426 ctx
.ctl
.i386_regs
.eflags
, ctx
.ctl
.i386_regs
.cs
, ctx
.ctl
.i386_regs
.ss
);
427 if (ctx
.flags
& SERVER_CTX_SEGMENTS
)
428 fprintf( stderr
, ",ds=%04x,es=%04x,fs=%04x,gs=%04x",
429 ctx
.seg
.i386_regs
.ds
, ctx
.seg
.i386_regs
.es
,
430 ctx
.seg
.i386_regs
.fs
, ctx
.seg
.i386_regs
.gs
);
431 if (ctx
.flags
& SERVER_CTX_INTEGER
)
432 fprintf( stderr
, ",eax=%08x,ebx=%08x,ecx=%08x,edx=%08x,esi=%08x,edi=%08x",
433 ctx
.integer
.i386_regs
.eax
, ctx
.integer
.i386_regs
.ebx
, ctx
.integer
.i386_regs
.ecx
,
434 ctx
.integer
.i386_regs
.edx
, ctx
.integer
.i386_regs
.esi
, ctx
.integer
.i386_regs
.edi
);
435 if (ctx
.flags
& SERVER_CTX_DEBUG_REGISTERS
)
436 fprintf( stderr
, ",dr0=%08x,dr1=%08x,dr2=%08x,dr3=%08x,dr6=%08x,dr7=%08x",
437 ctx
.debug
.i386_regs
.dr0
, ctx
.debug
.i386_regs
.dr1
, ctx
.debug
.i386_regs
.dr2
,
438 ctx
.debug
.i386_regs
.dr3
, ctx
.debug
.i386_regs
.dr6
, ctx
.debug
.i386_regs
.dr7
);
439 if (ctx
.flags
& SERVER_CTX_FLOATING_POINT
)
441 fprintf( stderr
, ",fp.ctrl=%08x,fp.status=%08x,fp.tag=%08x,fp.err_off=%08x,fp.err_sel=%08x",
442 ctx
.fp
.i386_regs
.ctrl
, ctx
.fp
.i386_regs
.status
, ctx
.fp
.i386_regs
.tag
,
443 ctx
.fp
.i386_regs
.err_off
, ctx
.fp
.i386_regs
.err_sel
);
444 fprintf( stderr
, ",fp.data_off=%08x,fp.data_sel=%08x,fp.cr0npx=%08x",
445 ctx
.fp
.i386_regs
.data_off
, ctx
.fp
.i386_regs
.data_sel
, ctx
.fp
.i386_regs
.cr0npx
);
446 for (i
= 0; i
< 8; i
++)
447 fprintf( stderr
, ",fp.reg%u=%Lg", i
, *(long double *)&ctx
.fp
.i386_regs
.regs
[10*i
] );
449 if (ctx
.flags
& SERVER_CTX_EXTENDED_REGISTERS
)
451 fprintf( stderr
, ",extended=" );
452 dump_uints( (const int *)ctx
.ext
.i386_regs
, sizeof(ctx
.ext
.i386_regs
) / sizeof(int) );
456 if (ctx
.flags
& SERVER_CTX_CONTROL
)
458 dump_uint64( ",rip=", &ctx
.ctl
.x86_64_regs
.rip
);
459 dump_uint64( ",rbp=", &ctx
.ctl
.x86_64_regs
.rbp
);
460 dump_uint64( ",rsp=", &ctx
.ctl
.x86_64_regs
.rsp
);
461 fprintf( stderr
, ",cs=%04x,ss=%04x,flags=%08x",
462 ctx
.ctl
.x86_64_regs
.cs
, ctx
.ctl
.x86_64_regs
.ss
, ctx
.ctl
.x86_64_regs
.flags
);
464 if (ctx
.flags
& SERVER_CTX_INTEGER
)
466 dump_uint64( ",rax=", &ctx
.integer
.x86_64_regs
.rax
);
467 dump_uint64( ",rbx=", &ctx
.integer
.x86_64_regs
.rbx
);
468 dump_uint64( ",rcx=", &ctx
.integer
.x86_64_regs
.rcx
);
469 dump_uint64( ",rdx=", &ctx
.integer
.x86_64_regs
.rdx
);
470 dump_uint64( ",rsi=", &ctx
.integer
.x86_64_regs
.rsi
);
471 dump_uint64( ",rdi=", &ctx
.integer
.x86_64_regs
.rdi
);
472 dump_uint64( ",r8=", &ctx
.integer
.x86_64_regs
.r8
);
473 dump_uint64( ",r9=", &ctx
.integer
.x86_64_regs
.r9
);
474 dump_uint64( ",r10=", &ctx
.integer
.x86_64_regs
.r10
);
475 dump_uint64( ",r11=", &ctx
.integer
.x86_64_regs
.r11
);
476 dump_uint64( ",r12=", &ctx
.integer
.x86_64_regs
.r12
);
477 dump_uint64( ",r13=", &ctx
.integer
.x86_64_regs
.r13
);
478 dump_uint64( ",r14=", &ctx
.integer
.x86_64_regs
.r14
);
479 dump_uint64( ",r15=", &ctx
.integer
.x86_64_regs
.r15
);
481 if (ctx
.flags
& SERVER_CTX_SEGMENTS
)
482 fprintf( stderr
, ",ds=%04x,es=%04x,fs=%04x,gs=%04x",
483 ctx
.seg
.x86_64_regs
.ds
, ctx
.seg
.x86_64_regs
.es
,
484 ctx
.seg
.x86_64_regs
.fs
, ctx
.seg
.x86_64_regs
.gs
);
485 if (ctx
.flags
& SERVER_CTX_DEBUG_REGISTERS
)
487 dump_uint64( ",dr0=", &ctx
.debug
.x86_64_regs
.dr0
);
488 dump_uint64( ",dr1=", &ctx
.debug
.x86_64_regs
.dr1
);
489 dump_uint64( ",dr2=", &ctx
.debug
.x86_64_regs
.dr2
);
490 dump_uint64( ",dr3=", &ctx
.debug
.x86_64_regs
.dr3
);
491 dump_uint64( ",dr6=", &ctx
.debug
.x86_64_regs
.dr6
);
492 dump_uint64( ",dr7=", &ctx
.debug
.x86_64_regs
.dr7
);
494 if (ctx
.flags
& SERVER_CTX_FLOATING_POINT
)
496 for (i
= 0; i
< 32; i
++)
497 fprintf( stderr
, ",fp%u=%08x%08x%08x%08x", i
,
498 (unsigned int)(ctx
.fp
.x86_64_regs
.fpregs
[i
].high
>> 32),
499 (unsigned int)ctx
.fp
.x86_64_regs
.fpregs
[i
].high
,
500 (unsigned int)(ctx
.fp
.x86_64_regs
.fpregs
[i
].low
>> 32),
501 (unsigned int)ctx
.fp
.x86_64_regs
.fpregs
[i
].low
);
505 if (ctx
.flags
& SERVER_CTX_CONTROL
)
507 dump_uint64( ",fir=", &ctx
.ctl
.alpha_regs
.fir
);
508 fprintf( stderr
, ",psr=%08x", ctx
.ctl
.alpha_regs
.psr
);
510 if (ctx
.flags
& SERVER_CTX_INTEGER
)
512 dump_uint64( ",v0=", &ctx
.integer
.alpha_regs
.v0
);
513 dump_uint64( ",t0=", &ctx
.integer
.alpha_regs
.t0
);
514 dump_uint64( ",t1=", &ctx
.integer
.alpha_regs
.t1
);
515 dump_uint64( ",t2=", &ctx
.integer
.alpha_regs
.t2
);
516 dump_uint64( ",t3=", &ctx
.integer
.alpha_regs
.t3
);
517 dump_uint64( ",t4=", &ctx
.integer
.alpha_regs
.t4
);
518 dump_uint64( ",t5=", &ctx
.integer
.alpha_regs
.t5
);
519 dump_uint64( ",t6=", &ctx
.integer
.alpha_regs
.t6
);
520 dump_uint64( ",t7=", &ctx
.integer
.alpha_regs
.t7
);
521 dump_uint64( ",t8=", &ctx
.integer
.alpha_regs
.t8
);
522 dump_uint64( ",t9=", &ctx
.integer
.alpha_regs
.t9
);
523 dump_uint64( ",t10=", &ctx
.integer
.alpha_regs
.t10
);
524 dump_uint64( ",t11=", &ctx
.integer
.alpha_regs
.t11
);
525 dump_uint64( ",t12=", &ctx
.integer
.alpha_regs
.t12
);
526 dump_uint64( ",s0=", &ctx
.integer
.alpha_regs
.s0
);
527 dump_uint64( ",s1=", &ctx
.integer
.alpha_regs
.s1
);
528 dump_uint64( ",s2=", &ctx
.integer
.alpha_regs
.s2
);
529 dump_uint64( ",s3=", &ctx
.integer
.alpha_regs
.s3
);
530 dump_uint64( ",s4=", &ctx
.integer
.alpha_regs
.s4
);
531 dump_uint64( ",s5=", &ctx
.integer
.alpha_regs
.s5
);
532 dump_uint64( ",s6=", &ctx
.integer
.alpha_regs
.s6
);
533 dump_uint64( ",a0=", &ctx
.integer
.alpha_regs
.a0
);
534 dump_uint64( ",a1=", &ctx
.integer
.alpha_regs
.a1
);
535 dump_uint64( ",a2=", &ctx
.integer
.alpha_regs
.a2
);
536 dump_uint64( ",a3=", &ctx
.integer
.alpha_regs
.a3
);
537 dump_uint64( ",a4=", &ctx
.integer
.alpha_regs
.a4
);
538 dump_uint64( ",a5=", &ctx
.integer
.alpha_regs
.a5
);
539 dump_uint64( ",at=", &ctx
.integer
.alpha_regs
.at
);
541 if (ctx
.flags
& SERVER_CTX_FLOATING_POINT
)
543 for (i
= 0; i
< 32; i
++)
545 fprintf( stderr
, ",f%u", i
);
546 dump_uint64( "=", &ctx
.fp
.alpha_regs
.f
[i
] );
548 dump_uint64( ",fpcr=", &ctx
.fp
.alpha_regs
.fpcr
);
549 dump_uint64( ",softfpcr=", &ctx
.fp
.alpha_regs
.softfpcr
);
553 if (ctx
.flags
& SERVER_CTX_CONTROL
)
554 fprintf( stderr
, ",iar=%08x,msr=%08x,ctr=%08x,lr=%08x,dar=%08x,dsisr=%08x,trap=%08x",
555 ctx
.ctl
.powerpc_regs
.iar
, ctx
.ctl
.powerpc_regs
.msr
, ctx
.ctl
.powerpc_regs
.ctr
,
556 ctx
.ctl
.powerpc_regs
.lr
, ctx
.ctl
.powerpc_regs
.dar
, ctx
.ctl
.powerpc_regs
.dsisr
,
557 ctx
.ctl
.powerpc_regs
.trap
);
558 if (ctx
.flags
& SERVER_CTX_INTEGER
)
560 for (i
= 0; i
< 32; i
++) fprintf( stderr
, ",gpr%u=%08x", i
, ctx
.integer
.powerpc_regs
.gpr
[i
] );
561 fprintf( stderr
, ",cr=%08x,xer=%08x",
562 ctx
.integer
.powerpc_regs
.cr
, ctx
.integer
.powerpc_regs
.xer
);
564 if (ctx
.flags
& SERVER_CTX_DEBUG_REGISTERS
)
565 for (i
= 0; i
< 8; i
++) fprintf( stderr
, ",dr%u=%08x", i
, ctx
.debug
.powerpc_regs
.dr
[i
] );
566 if (ctx
.flags
& SERVER_CTX_FLOATING_POINT
)
568 for (i
= 0; i
< 32; i
++) fprintf( stderr
, ",fpr%u=%g", i
, ctx
.fp
.powerpc_regs
.fpr
[i
] );
569 fprintf( stderr
, ",fpscr=%g", ctx
.fp
.powerpc_regs
.fpscr
);
573 if (ctx
.flags
& SERVER_CTX_CONTROL
)
574 fprintf( stderr
, ",psr=%08x,pc=%08x,npc=%08x,y=%08x,wim=%08x,tbr=%08x",
575 ctx
.ctl
.sparc_regs
.psr
, ctx
.ctl
.sparc_regs
.pc
, ctx
.ctl
.sparc_regs
.npc
,
576 ctx
.ctl
.sparc_regs
.y
, ctx
.ctl
.sparc_regs
.wim
, ctx
.ctl
.sparc_regs
.tbr
);
577 if (ctx
.flags
& SERVER_CTX_INTEGER
)
579 for (i
= 0; i
< 8; i
++) fprintf( stderr
, ",g%u=%08x", i
, ctx
.integer
.sparc_regs
.g
[i
] );
580 for (i
= 0; i
< 8; i
++) fprintf( stderr
, ",o%u=%08x", i
, ctx
.integer
.sparc_regs
.o
[i
] );
581 for (i
= 0; i
< 8; i
++) fprintf( stderr
, ",l%u=%08x", i
, ctx
.integer
.sparc_regs
.l
[i
] );
582 for (i
= 0; i
< 8; i
++) fprintf( stderr
, ",i%u=%08x", i
, ctx
.integer
.sparc_regs
.i
[i
] );
586 fputc( '}', stderr
);
590 static void dump_varargs_debug_event( const char *prefix
, data_size_t size
)
597 fprintf( stderr
, "%s{}", prefix
);
600 size
= min( size
, sizeof(event
) );
601 memset( &event
, 0, sizeof(event
) );
602 memcpy( &event
, cur_data
, size
);
606 case EXCEPTION_DEBUG_EVENT
:
607 fprintf( stderr
, "%s{exception,first=%d,exc_code=%08x,flags=%08x", prefix
,
608 event
.exception
.first
, event
.exception
.exc_code
, event
.exception
.flags
);
609 dump_uint64( ",record=", &event
.exception
.record
);
610 dump_uint64( ",address=", &event
.exception
.address
);
611 fprintf( stderr
, ",params={" );
612 event
.exception
.nb_params
= min( event
.exception
.nb_params
, EXCEPTION_MAXIMUM_PARAMETERS
);
613 for (i
= 0; i
< event
.exception
.nb_params
; i
++)
615 dump_uint64( "", &event
.exception
.params
[i
] );
616 if (i
< event
.exception
.nb_params
) fputc( ',', stderr
);
618 fprintf( stderr
, "}}" );
620 case CREATE_THREAD_DEBUG_EVENT
:
621 fprintf( stderr
, "%s{create_thread,thread=%04x", prefix
, event
.create_thread
.handle
);
622 dump_uint64( ",teb=", &event
.create_thread
.teb
);
623 dump_uint64( ",start=", &event
.create_thread
.start
);
624 fputc( '}', stderr
);
626 case CREATE_PROCESS_DEBUG_EVENT
:
627 fprintf( stderr
, "%s{create_process,file=%04x,process=%04x,thread=%04x", prefix
,
628 event
.create_process
.file
, event
.create_process
.process
,
629 event
.create_process
.thread
);
630 dump_uint64( ",base=", &event
.create_process
.base
);
631 fprintf( stderr
, ",offset=%d,size=%d",
632 event
.create_process
.dbg_offset
, event
.create_process
.dbg_size
);
633 dump_uint64( ",teb=", &event
.create_process
.teb
);
634 dump_uint64( ",start=", &event
.create_process
.start
);
635 dump_uint64( ",name=", &event
.create_process
.name
);
636 fprintf( stderr
, ",unicode=%d}", event
.create_process
.unicode
);
638 case EXIT_THREAD_DEBUG_EVENT
:
639 fprintf( stderr
, "%s{exit_thread,code=%d}", prefix
, event
.exit
.exit_code
);
641 case EXIT_PROCESS_DEBUG_EVENT
:
642 fprintf( stderr
, "%s{exit_process,code=%d}", prefix
, event
.exit
.exit_code
);
644 case LOAD_DLL_DEBUG_EVENT
:
645 fprintf( stderr
, "%s{load_dll,file=%04x", prefix
, event
.load_dll
.handle
);
646 dump_uint64( ",base=", &event
.load_dll
.base
);
647 fprintf( stderr
, ",offset=%d,size=%d",
648 event
.load_dll
.dbg_offset
, event
.load_dll
.dbg_size
);
649 dump_uint64( ",name=", &event
.load_dll
.name
);
650 fprintf( stderr
, ",unicode=%d}", event
.load_dll
.unicode
);
652 case UNLOAD_DLL_DEBUG_EVENT
:
653 fprintf( stderr
, "%s{unload_dll", prefix
);
654 dump_uint64( ",base=", &event
.unload_dll
.base
);
655 fputc( '}', stderr
);
657 case OUTPUT_DEBUG_STRING_EVENT
:
658 fprintf( stderr
, "%s{output_string", prefix
);
659 dump_uint64( ",string=", &event
.output_string
.string
);
660 fprintf( stderr
, ",len=%u}", event
.output_string
.length
);
663 fprintf( stderr
, "%s{rip,err=%d,type=%d}", prefix
,
664 event
.rip_info
.error
, event
.rip_info
.type
);
666 case 0: /* zero is the code returned on timeouts */
667 fprintf( stderr
, "%s{}", prefix
);
670 fprintf( stderr
, "%s{code=??? (%d)}", prefix
, event
.code
);
676 /* dump a unicode string contained in a buffer; helper for dump_varargs_startup_info */
677 static data_size_t
dump_inline_unicode_string( const char *prefix
, data_size_t pos
, data_size_t len
, data_size_t total_size
)
679 fputs( prefix
, stderr
);
680 if (pos
>= total_size
) return pos
;
681 if (len
> total_size
- pos
) len
= total_size
- pos
;
682 len
/= sizeof(WCHAR
);
683 dump_strW( (const WCHAR
*)cur_data
+ pos
/sizeof(WCHAR
), len
, stderr
, "\"\"" );
684 return pos
+ len
* sizeof(WCHAR
);
687 static void dump_varargs_startup_info( const char *prefix
, data_size_t size
)
690 data_size_t pos
= sizeof(info
);
692 memset( &info
, 0, sizeof(info
) );
693 memcpy( &info
, cur_data
, min( size
, sizeof(info
) ));
696 "%s{debug_flags=%x,console_flags=%x,console=%04x,hstdin=%04x,hstdout=%04x,hstderr=%04x,"
697 "x=%u,y=%u,xsize=%u,ysize=%u,xchars=%u,ychars=%u,attribute=%02x,flags=%x,show=%u",
698 prefix
, info
.debug_flags
, info
.console_flags
, info
.console
,
699 info
.hstdin
, info
.hstdout
, info
.hstderr
, info
.x
, info
.y
, info
.xsize
, info
.ysize
,
700 info
.xchars
, info
.ychars
, info
.attribute
, info
.flags
, info
.show
);
701 pos
= dump_inline_unicode_string( ",curdir=L\"", pos
, info
.curdir_len
, size
);
702 pos
= dump_inline_unicode_string( "\",dllpath=L\"", pos
, info
.dllpath_len
, size
);
703 pos
= dump_inline_unicode_string( "\",imagepath=L\"", pos
, info
.imagepath_len
, size
);
704 pos
= dump_inline_unicode_string( "\",cmdline=L\"", pos
, info
.cmdline_len
, size
);
705 pos
= dump_inline_unicode_string( "\",title=L\"", pos
, info
.title_len
, size
);
706 pos
= dump_inline_unicode_string( "\",desktop=L\"", pos
, info
.desktop_len
, size
);
707 pos
= dump_inline_unicode_string( "\",shellinfo=L\"", pos
, info
.shellinfo_len
, size
);
708 pos
= dump_inline_unicode_string( "\",runtime=L\"", pos
, info
.runtime_len
, size
);
709 fprintf( stderr
, "\"}" );
713 static void dump_varargs_input_records( const char *prefix
, data_size_t size
)
715 const INPUT_RECORD
*rec
= cur_data
;
716 data_size_t len
= size
/ sizeof(*rec
);
718 fprintf( stderr
,"%s{", prefix
);
721 fprintf( stderr
, "{%04x,...}", rec
->EventType
);
723 if (--len
) fputc( ',', stderr
);
725 fputc( '}', stderr
);
729 static void dump_varargs_rectangles( const char *prefix
, data_size_t size
)
731 const rectangle_t
*rect
= cur_data
;
732 data_size_t len
= size
/ sizeof(*rect
);
734 fprintf( stderr
,"%s{", prefix
);
737 dump_rectangle( "", rect
++ );
738 if (--len
) fputc( ',', stderr
);
740 fputc( '}', stderr
);
744 static void dump_varargs_message_data( const char *prefix
, data_size_t size
)
746 /* FIXME: dump the structured data */
747 dump_varargs_bytes( prefix
, size
);
750 static void dump_varargs_properties( const char *prefix
, data_size_t size
)
752 const property_data_t
*prop
= cur_data
;
753 data_size_t len
= size
/ sizeof(*prop
);
755 fprintf( stderr
,"%s{", prefix
);
758 fprintf( stderr
, "{atom=%04x,str=%d", prop
->atom
, prop
->string
);
759 dump_uint64( ",data=", &prop
->data
);
760 fputc( '}', stderr
);
762 if (--len
) fputc( ',', stderr
);
764 fputc( '}', stderr
);
768 static void dump_varargs_LUID_AND_ATTRIBUTES( const char *prefix
, data_size_t size
)
770 const LUID_AND_ATTRIBUTES
*lat
= cur_data
;
771 data_size_t len
= size
/ sizeof(*lat
);
773 fprintf( stderr
,"%s{", prefix
);
776 fprintf( stderr
, "{luid=%08x%08x,attr=%x}",
777 lat
->Luid
.HighPart
, lat
->Luid
.LowPart
, lat
->Attributes
);
779 if (--len
) fputc( ',', stderr
);
781 fputc( '}', stderr
);
785 static void dump_inline_sid( const char *prefix
, const SID
*sid
, data_size_t size
)
790 if ((FIELD_OFFSET(SID
, SubAuthority
[0]) > size
) ||
791 (FIELD_OFFSET(SID
, SubAuthority
[sid
->SubAuthorityCount
]) > size
))
793 fprintf( stderr
, "<invalid sid>" );
797 fprintf( stderr
,"%s{", prefix
);
798 fprintf( stderr
, "S-%u-%u", sid
->Revision
, MAKELONG(
799 MAKEWORD( sid
->IdentifierAuthority
.Value
[5],
800 sid
->IdentifierAuthority
.Value
[4] ),
801 MAKEWORD( sid
->IdentifierAuthority
.Value
[3],
802 sid
->IdentifierAuthority
.Value
[2] ) ) );
803 for (i
= 0; i
< sid
->SubAuthorityCount
; i
++)
804 fprintf( stderr
, "-%u", sid
->SubAuthority
[i
] );
805 fputc( '}', stderr
);
808 static void dump_varargs_SID( const char *prefix
, data_size_t size
)
810 const SID
*sid
= cur_data
;
811 dump_inline_sid( prefix
, sid
, size
);
815 static void dump_inline_acl( const char *prefix
, const ACL
*acl
, data_size_t size
)
817 const ACE_HEADER
*ace
;
820 fprintf( stderr
,"%s{", prefix
);
823 if (size
< sizeof(ACL
))
825 fprintf( stderr
, "<invalid acl>}" );
829 ace
= (const ACE_HEADER
*)(acl
+ 1);
830 for (i
= 0; i
< acl
->AceCount
; i
++)
832 const SID
*sid
= NULL
;
833 data_size_t sid_size
= 0;
835 if (size
< sizeof(ACE_HEADER
) || size
< ace
->AceSize
) break;
836 size
-= ace
->AceSize
;
837 if (i
!= 0) fputc( ',', stderr
);
838 fprintf( stderr
, "{AceType=" );
839 switch (ace
->AceType
)
841 case ACCESS_DENIED_ACE_TYPE
:
842 sid
= (const SID
*)&((const ACCESS_DENIED_ACE
*)ace
)->SidStart
;
843 sid_size
= ace
->AceSize
- FIELD_OFFSET(ACCESS_DENIED_ACE
, SidStart
);
844 fprintf( stderr
, "ACCESS_DENIED_ACE_TYPE,Mask=%x",
845 ((const ACCESS_DENIED_ACE
*)ace
)->Mask
);
847 case ACCESS_ALLOWED_ACE_TYPE
:
848 sid
= (const SID
*)&((const ACCESS_ALLOWED_ACE
*)ace
)->SidStart
;
849 sid_size
= ace
->AceSize
- FIELD_OFFSET(ACCESS_ALLOWED_ACE
, SidStart
);
850 fprintf( stderr
, "ACCESS_ALLOWED_ACE_TYPE,Mask=%x",
851 ((const ACCESS_ALLOWED_ACE
*)ace
)->Mask
);
853 case SYSTEM_AUDIT_ACE_TYPE
:
854 sid
= (const SID
*)&((const SYSTEM_AUDIT_ACE
*)ace
)->SidStart
;
855 sid_size
= ace
->AceSize
- FIELD_OFFSET(SYSTEM_AUDIT_ACE
, SidStart
);
856 fprintf( stderr
, "SYSTEM_AUDIT_ACE_TYPE,Mask=%x",
857 ((const SYSTEM_AUDIT_ACE
*)ace
)->Mask
);
859 case SYSTEM_ALARM_ACE_TYPE
:
860 sid
= (const SID
*)&((const SYSTEM_ALARM_ACE
*)ace
)->SidStart
;
861 sid_size
= ace
->AceSize
- FIELD_OFFSET(SYSTEM_ALARM_ACE
, SidStart
);
862 fprintf( stderr
, "SYSTEM_ALARM_ACE_TYPE,Mask=%x",
863 ((const SYSTEM_ALARM_ACE
*)ace
)->Mask
);
866 fprintf( stderr
, "unknown<%d>", ace
->AceType
);
869 fprintf( stderr
, ",AceFlags=%x", ace
->AceFlags
);
871 dump_inline_sid( ",Sid=", sid
, sid_size
);
872 ace
= (const ACE_HEADER
*)((const char *)ace
+ ace
->AceSize
);
873 fputc( '}', stderr
);
876 fputc( '}', stderr
);
879 static void dump_varargs_ACL( const char *prefix
, data_size_t size
)
881 const ACL
*acl
= cur_data
;
882 dump_inline_acl( prefix
, acl
, size
);
886 static void dump_inline_security_descriptor( const char *prefix
, const struct security_descriptor
*sd
, data_size_t size
)
888 fprintf( stderr
,"%s{", prefix
);
889 if (size
>= sizeof(struct security_descriptor
))
891 size_t offset
= sizeof(struct security_descriptor
);
892 fprintf( stderr
, "control=%08x", sd
->control
);
893 if ((sd
->owner_len
> FIELD_OFFSET(SID
, SubAuthority
[255])) || (offset
+ sd
->owner_len
> size
))
896 dump_inline_sid( ",owner=", (const SID
*)((const char *)sd
+ offset
), sd
->owner_len
);
898 fprintf( stderr
, ",owner=<not present>" );
899 offset
+= sd
->owner_len
;
900 if ((sd
->group_len
> FIELD_OFFSET(SID
, SubAuthority
[255])) || (offset
+ sd
->group_len
> size
))
903 dump_inline_sid( ",group=", (const SID
*)((const char *)sd
+ offset
), sd
->group_len
);
905 fprintf( stderr
, ",group=<not present>" );
906 offset
+= sd
->group_len
;
907 if ((sd
->sacl_len
>= MAX_ACL_LEN
) || (offset
+ sd
->sacl_len
> size
))
909 dump_inline_acl( ",sacl=", (const ACL
*)((const char *)sd
+ offset
), sd
->sacl_len
);
910 offset
+= sd
->sacl_len
;
911 if ((sd
->dacl_len
>= MAX_ACL_LEN
) || (offset
+ sd
->dacl_len
> size
))
913 dump_inline_acl( ",dacl=", (const ACL
*)((const char *)sd
+ offset
), sd
->dacl_len
);
914 offset
+= sd
->dacl_len
;
916 fputc( '}', stderr
);
919 static void dump_varargs_security_descriptor( const char *prefix
, data_size_t size
)
921 const struct security_descriptor
*sd
= cur_data
;
922 dump_inline_security_descriptor( prefix
, sd
, size
);
926 static void dump_varargs_token_groups( const char *prefix
, data_size_t size
)
928 const struct token_groups
*tg
= cur_data
;
930 fprintf( stderr
,"%s{", prefix
);
931 if (size
>= sizeof(struct token_groups
))
933 size_t offset
= sizeof(*tg
);
934 fprintf( stderr
, "count=%08x,", tg
->count
);
935 if (tg
->count
* sizeof(unsigned int) <= size
)
938 const unsigned int *attr
= (const unsigned int *)(tg
+ 1);
940 offset
+= tg
->count
* sizeof(unsigned int);
942 fputc( '[', stderr
);
943 for (i
= 0; i
< tg
->count
; i
++)
945 const SID
*sid
= (const SID
*)((const char *)cur_data
+ offset
);
947 fputc( ',', stderr
);
948 fputc( '{', stderr
);
949 fprintf( stderr
, "attributes=%08x", attr
[i
] );
950 dump_inline_sid( ",sid=", sid
, size
- offset
);
951 if ((offset
+ FIELD_OFFSET(SID
, SubAuthority
[0]) > size
) ||
952 (offset
+ FIELD_OFFSET(SID
, SubAuthority
[sid
->SubAuthorityCount
]) > size
))
954 offset
+= FIELD_OFFSET(SID
, SubAuthority
[sid
->SubAuthorityCount
]);
955 fputc( '}', stderr
);
957 fputc( ']', stderr
);
960 fputc( '}', stderr
);
963 static void dump_varargs_object_attributes( const char *prefix
, data_size_t size
)
965 const struct object_attributes
*objattr
= cur_data
;
967 fprintf( stderr
,"%s{", prefix
);
968 if (size
>= sizeof(struct object_attributes
))
971 fprintf( stderr
, "rootdir=%04x", objattr
->rootdir
);
972 if (objattr
->sd_len
> size
- sizeof(*objattr
) ||
973 objattr
->name_len
> size
- sizeof(*objattr
) - objattr
->sd_len
)
975 dump_inline_security_descriptor( ",sd=", (const struct security_descriptor
*)(objattr
+ 1), objattr
->sd_len
);
976 str
= (const WCHAR
*)objattr
+ (sizeof(*objattr
) + objattr
->sd_len
) / sizeof(WCHAR
);
977 fprintf( stderr
, ",name=L\"" );
978 dump_strW( str
, objattr
->name_len
/ sizeof(WCHAR
), stderr
, "\"\"" );
979 fputc( '\"', stderr
);
980 remove_data( ((sizeof(*objattr
) + objattr
->sd_len
) / sizeof(WCHAR
)) * sizeof(WCHAR
) +
983 fputc( '}', stderr
);
986 typedef void (*dump_func
)( const void *req
);
988 /* Everything below this line is generated automatically by tools/make_requests */
989 /* ### make_requests begin ### */
991 static void dump_new_process_request( const struct new_process_request
*req
)
993 fprintf( stderr
, " inherit_all=%d", req
->inherit_all
);
994 fprintf( stderr
, ", create_flags=%08x", req
->create_flags
);
995 fprintf( stderr
, ", socket_fd=%d", req
->socket_fd
);
996 fprintf( stderr
, ", exe_file=%04x", req
->exe_file
);
997 fprintf( stderr
, ", process_access=%08x", req
->process_access
);
998 fprintf( stderr
, ", process_attr=%08x", req
->process_attr
);
999 fprintf( stderr
, ", thread_access=%08x", req
->thread_access
);
1000 fprintf( stderr
, ", thread_attr=%08x", req
->thread_attr
);
1001 fprintf( stderr
, ", info_size=%u", req
->info_size
);
1002 dump_varargs_startup_info( ", info=", min(cur_size
,req
->info_size
) );
1003 dump_varargs_unicode_str( ", env=", cur_size
);
1006 static void dump_new_process_reply( const struct new_process_reply
*req
)
1008 fprintf( stderr
, " info=%04x", req
->info
);
1009 fprintf( stderr
, ", pid=%04x", req
->pid
);
1010 fprintf( stderr
, ", phandle=%04x", req
->phandle
);
1011 fprintf( stderr
, ", tid=%04x", req
->tid
);
1012 fprintf( stderr
, ", thandle=%04x", req
->thandle
);
1015 static void dump_get_new_process_info_request( const struct get_new_process_info_request
*req
)
1017 fprintf( stderr
, " info=%04x", req
->info
);
1020 static void dump_get_new_process_info_reply( const struct get_new_process_info_reply
*req
)
1022 fprintf( stderr
, " success=%d", req
->success
);
1023 fprintf( stderr
, ", exit_code=%d", req
->exit_code
);
1026 static void dump_new_thread_request( const struct new_thread_request
*req
)
1028 fprintf( stderr
, " access=%08x", req
->access
);
1029 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1030 fprintf( stderr
, ", suspend=%d", req
->suspend
);
1031 fprintf( stderr
, ", request_fd=%d", req
->request_fd
);
1034 static void dump_new_thread_reply( const struct new_thread_reply
*req
)
1036 fprintf( stderr
, " tid=%04x", req
->tid
);
1037 fprintf( stderr
, ", handle=%04x", req
->handle
);
1040 static void dump_get_startup_info_request( const struct get_startup_info_request
*req
)
1044 static void dump_get_startup_info_reply( const struct get_startup_info_reply
*req
)
1046 fprintf( stderr
, " exe_file=%04x", req
->exe_file
);
1047 fprintf( stderr
, ", info_size=%u", req
->info_size
);
1048 dump_varargs_startup_info( ", info=", min(cur_size
,req
->info_size
) );
1049 dump_varargs_unicode_str( ", env=", cur_size
);
1052 static void dump_init_process_done_request( const struct init_process_done_request
*req
)
1054 fprintf( stderr
, " gui=%d", req
->gui
);
1055 dump_uint64( ", module=", &req
->module
);
1056 dump_uint64( ", ldt_copy=", &req
->ldt_copy
);
1057 dump_uint64( ", entry=", &req
->entry
);
1060 static void dump_init_thread_request( const struct init_thread_request
*req
)
1062 fprintf( stderr
, " unix_pid=%d", req
->unix_pid
);
1063 fprintf( stderr
, ", unix_tid=%d", req
->unix_tid
);
1064 fprintf( stderr
, ", debug_level=%d", req
->debug_level
);
1065 dump_uint64( ", teb=", &req
->teb
);
1066 dump_uint64( ", entry=", &req
->entry
);
1067 fprintf( stderr
, ", reply_fd=%d", req
->reply_fd
);
1068 fprintf( stderr
, ", wait_fd=%d", req
->wait_fd
);
1069 dump_cpu_type( ", cpu=", &req
->cpu
);
1072 static void dump_init_thread_reply( const struct init_thread_reply
*req
)
1074 fprintf( stderr
, " pid=%04x", req
->pid
);
1075 fprintf( stderr
, ", tid=%04x", req
->tid
);
1076 dump_timeout( ", server_start=", &req
->server_start
);
1077 fprintf( stderr
, ", info_size=%u", req
->info_size
);
1078 fprintf( stderr
, ", version=%d", req
->version
);
1079 fprintf( stderr
, ", all_cpus=%08x", req
->all_cpus
);
1082 static void dump_terminate_process_request( const struct terminate_process_request
*req
)
1084 fprintf( stderr
, " handle=%04x", req
->handle
);
1085 fprintf( stderr
, ", exit_code=%d", req
->exit_code
);
1088 static void dump_terminate_process_reply( const struct terminate_process_reply
*req
)
1090 fprintf( stderr
, " self=%d", req
->self
);
1093 static void dump_terminate_thread_request( const struct terminate_thread_request
*req
)
1095 fprintf( stderr
, " handle=%04x", req
->handle
);
1096 fprintf( stderr
, ", exit_code=%d", req
->exit_code
);
1099 static void dump_terminate_thread_reply( const struct terminate_thread_reply
*req
)
1101 fprintf( stderr
, " self=%d", req
->self
);
1102 fprintf( stderr
, ", last=%d", req
->last
);
1105 static void dump_get_process_info_request( const struct get_process_info_request
*req
)
1107 fprintf( stderr
, " handle=%04x", req
->handle
);
1110 static void dump_get_process_info_reply( const struct get_process_info_reply
*req
)
1112 fprintf( stderr
, " pid=%04x", req
->pid
);
1113 fprintf( stderr
, ", ppid=%04x", req
->ppid
);
1114 dump_uint64( ", affinity=", &req
->affinity
);
1115 dump_uint64( ", peb=", &req
->peb
);
1116 dump_timeout( ", start_time=", &req
->start_time
);
1117 dump_timeout( ", end_time=", &req
->end_time
);
1118 fprintf( stderr
, ", exit_code=%d", req
->exit_code
);
1119 fprintf( stderr
, ", priority=%d", req
->priority
);
1120 dump_cpu_type( ", cpu=", &req
->cpu
);
1121 fprintf( stderr
, ", debugger_present=%d", req
->debugger_present
);
1124 static void dump_set_process_info_request( const struct set_process_info_request
*req
)
1126 fprintf( stderr
, " handle=%04x", req
->handle
);
1127 fprintf( stderr
, ", mask=%d", req
->mask
);
1128 fprintf( stderr
, ", priority=%d", req
->priority
);
1129 dump_uint64( ", affinity=", &req
->affinity
);
1132 static void dump_get_thread_info_request( const struct get_thread_info_request
*req
)
1134 fprintf( stderr
, " handle=%04x", req
->handle
);
1135 fprintf( stderr
, ", tid_in=%04x", req
->tid_in
);
1138 static void dump_get_thread_info_reply( const struct get_thread_info_reply
*req
)
1140 fprintf( stderr
, " pid=%04x", req
->pid
);
1141 fprintf( stderr
, ", tid=%04x", req
->tid
);
1142 dump_uint64( ", teb=", &req
->teb
);
1143 dump_uint64( ", affinity=", &req
->affinity
);
1144 dump_timeout( ", creation_time=", &req
->creation_time
);
1145 dump_timeout( ", exit_time=", &req
->exit_time
);
1146 fprintf( stderr
, ", exit_code=%d", req
->exit_code
);
1147 fprintf( stderr
, ", priority=%d", req
->priority
);
1148 fprintf( stderr
, ", last=%d", req
->last
);
1151 static void dump_set_thread_info_request( const struct set_thread_info_request
*req
)
1153 fprintf( stderr
, " handle=%04x", req
->handle
);
1154 fprintf( stderr
, ", mask=%d", req
->mask
);
1155 fprintf( stderr
, ", priority=%d", req
->priority
);
1156 dump_uint64( ", affinity=", &req
->affinity
);
1157 fprintf( stderr
, ", token=%04x", req
->token
);
1160 static void dump_get_dll_info_request( const struct get_dll_info_request
*req
)
1162 fprintf( stderr
, " handle=%04x", req
->handle
);
1163 dump_uint64( ", base_address=", &req
->base_address
);
1166 static void dump_get_dll_info_reply( const struct get_dll_info_reply
*req
)
1168 dump_uint64( " entry_point=", &req
->entry_point
);
1169 fprintf( stderr
, ", size=%u", req
->size
);
1170 fprintf( stderr
, ", filename_len=%u", req
->filename_len
);
1171 dump_varargs_unicode_str( ", filename=", cur_size
);
1174 static void dump_suspend_thread_request( const struct suspend_thread_request
*req
)
1176 fprintf( stderr
, " handle=%04x", req
->handle
);
1179 static void dump_suspend_thread_reply( const struct suspend_thread_reply
*req
)
1181 fprintf( stderr
, " count=%d", req
->count
);
1184 static void dump_resume_thread_request( const struct resume_thread_request
*req
)
1186 fprintf( stderr
, " handle=%04x", req
->handle
);
1189 static void dump_resume_thread_reply( const struct resume_thread_reply
*req
)
1191 fprintf( stderr
, " count=%d", req
->count
);
1194 static void dump_load_dll_request( const struct load_dll_request
*req
)
1196 fprintf( stderr
, " handle=%04x", req
->handle
);
1197 dump_uint64( ", base=", &req
->base
);
1198 dump_uint64( ", name=", &req
->name
);
1199 fprintf( stderr
, ", size=%u", req
->size
);
1200 fprintf( stderr
, ", dbg_offset=%d", req
->dbg_offset
);
1201 fprintf( stderr
, ", dbg_size=%d", req
->dbg_size
);
1202 dump_varargs_unicode_str( ", filename=", cur_size
);
1205 static void dump_unload_dll_request( const struct unload_dll_request
*req
)
1207 dump_uint64( " base=", &req
->base
);
1210 static void dump_queue_apc_request( const struct queue_apc_request
*req
)
1212 fprintf( stderr
, " handle=%04x", req
->handle
);
1213 dump_apc_call( ", call=", &req
->call
);
1216 static void dump_queue_apc_reply( const struct queue_apc_reply
*req
)
1218 fprintf( stderr
, " handle=%04x", req
->handle
);
1219 fprintf( stderr
, ", self=%d", req
->self
);
1222 static void dump_get_apc_result_request( const struct get_apc_result_request
*req
)
1224 fprintf( stderr
, " handle=%04x", req
->handle
);
1227 static void dump_get_apc_result_reply( const struct get_apc_result_reply
*req
)
1229 dump_apc_result( " result=", &req
->result
);
1232 static void dump_close_handle_request( const struct close_handle_request
*req
)
1234 fprintf( stderr
, " handle=%04x", req
->handle
);
1237 static void dump_set_handle_info_request( const struct set_handle_info_request
*req
)
1239 fprintf( stderr
, " handle=%04x", req
->handle
);
1240 fprintf( stderr
, ", flags=%d", req
->flags
);
1241 fprintf( stderr
, ", mask=%d", req
->mask
);
1244 static void dump_set_handle_info_reply( const struct set_handle_info_reply
*req
)
1246 fprintf( stderr
, " old_flags=%d", req
->old_flags
);
1249 static void dump_dup_handle_request( const struct dup_handle_request
*req
)
1251 fprintf( stderr
, " src_process=%04x", req
->src_process
);
1252 fprintf( stderr
, ", src_handle=%04x", req
->src_handle
);
1253 fprintf( stderr
, ", dst_process=%04x", req
->dst_process
);
1254 fprintf( stderr
, ", access=%08x", req
->access
);
1255 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1256 fprintf( stderr
, ", options=%08x", req
->options
);
1259 static void dump_dup_handle_reply( const struct dup_handle_reply
*req
)
1261 fprintf( stderr
, " handle=%04x", req
->handle
);
1262 fprintf( stderr
, ", self=%d", req
->self
);
1263 fprintf( stderr
, ", closed=%d", req
->closed
);
1266 static void dump_open_process_request( const struct open_process_request
*req
)
1268 fprintf( stderr
, " pid=%04x", req
->pid
);
1269 fprintf( stderr
, ", access=%08x", req
->access
);
1270 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1273 static void dump_open_process_reply( const struct open_process_reply
*req
)
1275 fprintf( stderr
, " handle=%04x", req
->handle
);
1278 static void dump_open_thread_request( const struct open_thread_request
*req
)
1280 fprintf( stderr
, " tid=%04x", req
->tid
);
1281 fprintf( stderr
, ", access=%08x", req
->access
);
1282 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1285 static void dump_open_thread_reply( const struct open_thread_reply
*req
)
1287 fprintf( stderr
, " handle=%04x", req
->handle
);
1290 static void dump_select_request( const struct select_request
*req
)
1292 fprintf( stderr
, " flags=%d", req
->flags
);
1293 dump_uint64( ", cookie=", &req
->cookie
);
1294 fprintf( stderr
, ", signal=%04x", req
->signal
);
1295 fprintf( stderr
, ", prev_apc=%04x", req
->prev_apc
);
1296 dump_timeout( ", timeout=", &req
->timeout
);
1297 dump_varargs_apc_result( ", result=", cur_size
);
1298 dump_varargs_handles( ", handles=", cur_size
);
1301 static void dump_select_reply( const struct select_reply
*req
)
1303 dump_timeout( " timeout=", &req
->timeout
);
1304 dump_apc_call( ", call=", &req
->call
);
1305 fprintf( stderr
, ", apc_handle=%04x", req
->apc_handle
);
1308 static void dump_create_event_request( const struct create_event_request
*req
)
1310 fprintf( stderr
, " access=%08x", req
->access
);
1311 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1312 fprintf( stderr
, ", manual_reset=%d", req
->manual_reset
);
1313 fprintf( stderr
, ", initial_state=%d", req
->initial_state
);
1314 dump_varargs_object_attributes( ", objattr=", cur_size
);
1317 static void dump_create_event_reply( const struct create_event_reply
*req
)
1319 fprintf( stderr
, " handle=%04x", req
->handle
);
1322 static void dump_event_op_request( const struct event_op_request
*req
)
1324 fprintf( stderr
, " handle=%04x", req
->handle
);
1325 fprintf( stderr
, ", op=%d", req
->op
);
1328 static void dump_open_event_request( const struct open_event_request
*req
)
1330 fprintf( stderr
, " access=%08x", req
->access
);
1331 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1332 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
1333 dump_varargs_unicode_str( ", name=", cur_size
);
1336 static void dump_open_event_reply( const struct open_event_reply
*req
)
1338 fprintf( stderr
, " handle=%04x", req
->handle
);
1341 static void dump_create_mutex_request( const struct create_mutex_request
*req
)
1343 fprintf( stderr
, " access=%08x", req
->access
);
1344 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1345 fprintf( stderr
, ", owned=%d", req
->owned
);
1346 dump_varargs_object_attributes( ", objattr=", cur_size
);
1349 static void dump_create_mutex_reply( const struct create_mutex_reply
*req
)
1351 fprintf( stderr
, " handle=%04x", req
->handle
);
1354 static void dump_release_mutex_request( const struct release_mutex_request
*req
)
1356 fprintf( stderr
, " handle=%04x", req
->handle
);
1359 static void dump_release_mutex_reply( const struct release_mutex_reply
*req
)
1361 fprintf( stderr
, " prev_count=%08x", req
->prev_count
);
1364 static void dump_open_mutex_request( const struct open_mutex_request
*req
)
1366 fprintf( stderr
, " access=%08x", req
->access
);
1367 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1368 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
1369 dump_varargs_unicode_str( ", name=", cur_size
);
1372 static void dump_open_mutex_reply( const struct open_mutex_reply
*req
)
1374 fprintf( stderr
, " handle=%04x", req
->handle
);
1377 static void dump_create_semaphore_request( const struct create_semaphore_request
*req
)
1379 fprintf( stderr
, " access=%08x", req
->access
);
1380 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1381 fprintf( stderr
, ", initial=%08x", req
->initial
);
1382 fprintf( stderr
, ", max=%08x", req
->max
);
1383 dump_varargs_object_attributes( ", objattr=", cur_size
);
1386 static void dump_create_semaphore_reply( const struct create_semaphore_reply
*req
)
1388 fprintf( stderr
, " handle=%04x", req
->handle
);
1391 static void dump_release_semaphore_request( const struct release_semaphore_request
*req
)
1393 fprintf( stderr
, " handle=%04x", req
->handle
);
1394 fprintf( stderr
, ", count=%08x", req
->count
);
1397 static void dump_release_semaphore_reply( const struct release_semaphore_reply
*req
)
1399 fprintf( stderr
, " prev_count=%08x", req
->prev_count
);
1402 static void dump_open_semaphore_request( const struct open_semaphore_request
*req
)
1404 fprintf( stderr
, " access=%08x", req
->access
);
1405 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1406 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
1407 dump_varargs_unicode_str( ", name=", cur_size
);
1410 static void dump_open_semaphore_reply( const struct open_semaphore_reply
*req
)
1412 fprintf( stderr
, " handle=%04x", req
->handle
);
1415 static void dump_create_file_request( const struct create_file_request
*req
)
1417 fprintf( stderr
, " access=%08x", req
->access
);
1418 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1419 fprintf( stderr
, ", sharing=%08x", req
->sharing
);
1420 fprintf( stderr
, ", create=%d", req
->create
);
1421 fprintf( stderr
, ", options=%08x", req
->options
);
1422 fprintf( stderr
, ", attrs=%08x", req
->attrs
);
1423 dump_varargs_object_attributes( ", objattr=", cur_size
);
1424 dump_varargs_string( ", filename=", cur_size
);
1427 static void dump_create_file_reply( const struct create_file_reply
*req
)
1429 fprintf( stderr
, " handle=%04x", req
->handle
);
1432 static void dump_open_file_object_request( const struct open_file_object_request
*req
)
1434 fprintf( stderr
, " access=%08x", req
->access
);
1435 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1436 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
1437 fprintf( stderr
, ", sharing=%08x", req
->sharing
);
1438 fprintf( stderr
, ", options=%08x", req
->options
);
1439 dump_varargs_unicode_str( ", filename=", cur_size
);
1442 static void dump_open_file_object_reply( const struct open_file_object_reply
*req
)
1444 fprintf( stderr
, " handle=%04x", req
->handle
);
1447 static void dump_alloc_file_handle_request( const struct alloc_file_handle_request
*req
)
1449 fprintf( stderr
, " access=%08x", req
->access
);
1450 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1451 fprintf( stderr
, ", fd=%d", req
->fd
);
1454 static void dump_alloc_file_handle_reply( const struct alloc_file_handle_reply
*req
)
1456 fprintf( stderr
, " handle=%04x", req
->handle
);
1459 static void dump_get_handle_unix_name_request( const struct get_handle_unix_name_request
*req
)
1461 fprintf( stderr
, " handle=%04x", req
->handle
);
1464 static void dump_get_handle_unix_name_reply( const struct get_handle_unix_name_reply
*req
)
1466 fprintf( stderr
, " name_len=%u", req
->name_len
);
1467 dump_varargs_string( ", name=", cur_size
);
1470 static void dump_get_handle_fd_request( const struct get_handle_fd_request
*req
)
1472 fprintf( stderr
, " handle=%04x", req
->handle
);
1475 static void dump_get_handle_fd_reply( const struct get_handle_fd_reply
*req
)
1477 fprintf( stderr
, " type=%d", req
->type
);
1478 fprintf( stderr
, ", cacheable=%d", req
->cacheable
);
1479 fprintf( stderr
, ", access=%08x", req
->access
);
1480 fprintf( stderr
, ", options=%08x", req
->options
);
1483 static void dump_flush_file_request( const struct flush_file_request
*req
)
1485 fprintf( stderr
, " handle=%04x", req
->handle
);
1488 static void dump_flush_file_reply( const struct flush_file_reply
*req
)
1490 fprintf( stderr
, " event=%04x", req
->event
);
1493 static void dump_lock_file_request( const struct lock_file_request
*req
)
1495 fprintf( stderr
, " handle=%04x", req
->handle
);
1496 dump_uint64( ", offset=", &req
->offset
);
1497 dump_uint64( ", count=", &req
->count
);
1498 fprintf( stderr
, ", shared=%d", req
->shared
);
1499 fprintf( stderr
, ", wait=%d", req
->wait
);
1502 static void dump_lock_file_reply( const struct lock_file_reply
*req
)
1504 fprintf( stderr
, " handle=%04x", req
->handle
);
1505 fprintf( stderr
, ", overlapped=%d", req
->overlapped
);
1508 static void dump_unlock_file_request( const struct unlock_file_request
*req
)
1510 fprintf( stderr
, " handle=%04x", req
->handle
);
1511 dump_uint64( ", offset=", &req
->offset
);
1512 dump_uint64( ", count=", &req
->count
);
1515 static void dump_create_socket_request( const struct create_socket_request
*req
)
1517 fprintf( stderr
, " access=%08x", req
->access
);
1518 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1519 fprintf( stderr
, ", family=%d", req
->family
);
1520 fprintf( stderr
, ", type=%d", req
->type
);
1521 fprintf( stderr
, ", protocol=%d", req
->protocol
);
1522 fprintf( stderr
, ", flags=%08x", req
->flags
);
1525 static void dump_create_socket_reply( const struct create_socket_reply
*req
)
1527 fprintf( stderr
, " handle=%04x", req
->handle
);
1530 static void dump_accept_socket_request( const struct accept_socket_request
*req
)
1532 fprintf( stderr
, " lhandle=%04x", req
->lhandle
);
1533 fprintf( stderr
, ", access=%08x", req
->access
);
1534 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1537 static void dump_accept_socket_reply( const struct accept_socket_reply
*req
)
1539 fprintf( stderr
, " handle=%04x", req
->handle
);
1542 static void dump_accept_into_socket_request( const struct accept_into_socket_request
*req
)
1544 fprintf( stderr
, " lhandle=%04x", req
->lhandle
);
1545 fprintf( stderr
, ", ahandle=%04x", req
->ahandle
);
1548 static void dump_set_socket_event_request( const struct set_socket_event_request
*req
)
1550 fprintf( stderr
, " handle=%04x", req
->handle
);
1551 fprintf( stderr
, ", mask=%08x", req
->mask
);
1552 fprintf( stderr
, ", event=%04x", req
->event
);
1553 fprintf( stderr
, ", window=%08x", req
->window
);
1554 fprintf( stderr
, ", msg=%08x", req
->msg
);
1557 static void dump_get_socket_event_request( const struct get_socket_event_request
*req
)
1559 fprintf( stderr
, " handle=%04x", req
->handle
);
1560 fprintf( stderr
, ", service=%d", req
->service
);
1561 fprintf( stderr
, ", c_event=%04x", req
->c_event
);
1564 static void dump_get_socket_event_reply( const struct get_socket_event_reply
*req
)
1566 fprintf( stderr
, " mask=%08x", req
->mask
);
1567 fprintf( stderr
, ", pmask=%08x", req
->pmask
);
1568 fprintf( stderr
, ", state=%08x", req
->state
);
1569 dump_varargs_ints( ", errors=", cur_size
);
1572 static void dump_enable_socket_event_request( const struct enable_socket_event_request
*req
)
1574 fprintf( stderr
, " handle=%04x", req
->handle
);
1575 fprintf( stderr
, ", mask=%08x", req
->mask
);
1576 fprintf( stderr
, ", sstate=%08x", req
->sstate
);
1577 fprintf( stderr
, ", cstate=%08x", req
->cstate
);
1580 static void dump_set_socket_deferred_request( const struct set_socket_deferred_request
*req
)
1582 fprintf( stderr
, " handle=%04x", req
->handle
);
1583 fprintf( stderr
, ", deferred=%04x", req
->deferred
);
1586 static void dump_alloc_console_request( const struct alloc_console_request
*req
)
1588 fprintf( stderr
, " access=%08x", req
->access
);
1589 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1590 fprintf( stderr
, ", pid=%04x", req
->pid
);
1591 fprintf( stderr
, ", input_fd=%d", req
->input_fd
);
1594 static void dump_alloc_console_reply( const struct alloc_console_reply
*req
)
1596 fprintf( stderr
, " handle_in=%04x", req
->handle_in
);
1597 fprintf( stderr
, ", event=%04x", req
->event
);
1600 static void dump_free_console_request( const struct free_console_request
*req
)
1604 static void dump_get_console_renderer_events_request( const struct get_console_renderer_events_request
*req
)
1606 fprintf( stderr
, " handle=%04x", req
->handle
);
1609 static void dump_get_console_renderer_events_reply( const struct get_console_renderer_events_reply
*req
)
1611 dump_varargs_bytes( " data=", cur_size
);
1614 static void dump_open_console_request( const struct open_console_request
*req
)
1616 fprintf( stderr
, " from=%04x", req
->from
);
1617 fprintf( stderr
, ", access=%08x", req
->access
);
1618 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1619 fprintf( stderr
, ", share=%d", req
->share
);
1622 static void dump_open_console_reply( const struct open_console_reply
*req
)
1624 fprintf( stderr
, " handle=%04x", req
->handle
);
1627 static void dump_get_console_wait_event_request( const struct get_console_wait_event_request
*req
)
1631 static void dump_get_console_wait_event_reply( const struct get_console_wait_event_reply
*req
)
1633 fprintf( stderr
, " handle=%04x", req
->handle
);
1636 static void dump_get_console_mode_request( const struct get_console_mode_request
*req
)
1638 fprintf( stderr
, " handle=%04x", req
->handle
);
1641 static void dump_get_console_mode_reply( const struct get_console_mode_reply
*req
)
1643 fprintf( stderr
, " mode=%d", req
->mode
);
1644 fprintf( stderr
, ", is_bare=%d", req
->is_bare
);
1647 static void dump_set_console_mode_request( const struct set_console_mode_request
*req
)
1649 fprintf( stderr
, " handle=%04x", req
->handle
);
1650 fprintf( stderr
, ", mode=%d", req
->mode
);
1653 static void dump_set_console_input_info_request( const struct set_console_input_info_request
*req
)
1655 fprintf( stderr
, " handle=%04x", req
->handle
);
1656 fprintf( stderr
, ", mask=%d", req
->mask
);
1657 fprintf( stderr
, ", active_sb=%04x", req
->active_sb
);
1658 fprintf( stderr
, ", history_mode=%d", req
->history_mode
);
1659 fprintf( stderr
, ", history_size=%d", req
->history_size
);
1660 fprintf( stderr
, ", edition_mode=%d", req
->edition_mode
);
1661 fprintf( stderr
, ", input_cp=%d", req
->input_cp
);
1662 fprintf( stderr
, ", output_cp=%d", req
->output_cp
);
1663 fprintf( stderr
, ", win=%08x", req
->win
);
1664 dump_varargs_unicode_str( ", title=", cur_size
);
1667 static void dump_get_console_input_info_request( const struct get_console_input_info_request
*req
)
1669 fprintf( stderr
, " handle=%04x", req
->handle
);
1672 static void dump_get_console_input_info_reply( const struct get_console_input_info_reply
*req
)
1674 fprintf( stderr
, " history_mode=%d", req
->history_mode
);
1675 fprintf( stderr
, ", history_size=%d", req
->history_size
);
1676 fprintf( stderr
, ", history_index=%d", req
->history_index
);
1677 fprintf( stderr
, ", edition_mode=%d", req
->edition_mode
);
1678 fprintf( stderr
, ", input_cp=%d", req
->input_cp
);
1679 fprintf( stderr
, ", output_cp=%d", req
->output_cp
);
1680 fprintf( stderr
, ", win=%08x", req
->win
);
1681 dump_varargs_unicode_str( ", title=", cur_size
);
1684 static void dump_append_console_input_history_request( const struct append_console_input_history_request
*req
)
1686 fprintf( stderr
, " handle=%04x", req
->handle
);
1687 dump_varargs_unicode_str( ", line=", cur_size
);
1690 static void dump_get_console_input_history_request( const struct get_console_input_history_request
*req
)
1692 fprintf( stderr
, " handle=%04x", req
->handle
);
1693 fprintf( stderr
, ", index=%d", req
->index
);
1696 static void dump_get_console_input_history_reply( const struct get_console_input_history_reply
*req
)
1698 fprintf( stderr
, " total=%d", req
->total
);
1699 dump_varargs_unicode_str( ", line=", cur_size
);
1702 static void dump_create_console_output_request( const struct create_console_output_request
*req
)
1704 fprintf( stderr
, " handle_in=%04x", req
->handle_in
);
1705 fprintf( stderr
, ", access=%08x", req
->access
);
1706 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1707 fprintf( stderr
, ", share=%08x", req
->share
);
1708 fprintf( stderr
, ", fd=%d", req
->fd
);
1711 static void dump_create_console_output_reply( const struct create_console_output_reply
*req
)
1713 fprintf( stderr
, " handle_out=%04x", req
->handle_out
);
1716 static void dump_set_console_output_info_request( const struct set_console_output_info_request
*req
)
1718 fprintf( stderr
, " handle=%04x", req
->handle
);
1719 fprintf( stderr
, ", mask=%d", req
->mask
);
1720 fprintf( stderr
, ", cursor_size=%d", req
->cursor_size
);
1721 fprintf( stderr
, ", cursor_visible=%d", req
->cursor_visible
);
1722 fprintf( stderr
, ", cursor_x=%d", req
->cursor_x
);
1723 fprintf( stderr
, ", cursor_y=%d", req
->cursor_y
);
1724 fprintf( stderr
, ", width=%d", req
->width
);
1725 fprintf( stderr
, ", height=%d", req
->height
);
1726 fprintf( stderr
, ", attr=%d", req
->attr
);
1727 fprintf( stderr
, ", win_left=%d", req
->win_left
);
1728 fprintf( stderr
, ", win_top=%d", req
->win_top
);
1729 fprintf( stderr
, ", win_right=%d", req
->win_right
);
1730 fprintf( stderr
, ", win_bottom=%d", req
->win_bottom
);
1731 fprintf( stderr
, ", max_width=%d", req
->max_width
);
1732 fprintf( stderr
, ", max_height=%d", req
->max_height
);
1735 static void dump_get_console_output_info_request( const struct get_console_output_info_request
*req
)
1737 fprintf( stderr
, " handle=%04x", req
->handle
);
1740 static void dump_get_console_output_info_reply( const struct get_console_output_info_reply
*req
)
1742 fprintf( stderr
, " cursor_size=%d", req
->cursor_size
);
1743 fprintf( stderr
, ", cursor_visible=%d", req
->cursor_visible
);
1744 fprintf( stderr
, ", cursor_x=%d", req
->cursor_x
);
1745 fprintf( stderr
, ", cursor_y=%d", req
->cursor_y
);
1746 fprintf( stderr
, ", width=%d", req
->width
);
1747 fprintf( stderr
, ", height=%d", req
->height
);
1748 fprintf( stderr
, ", attr=%d", req
->attr
);
1749 fprintf( stderr
, ", win_left=%d", req
->win_left
);
1750 fprintf( stderr
, ", win_top=%d", req
->win_top
);
1751 fprintf( stderr
, ", win_right=%d", req
->win_right
);
1752 fprintf( stderr
, ", win_bottom=%d", req
->win_bottom
);
1753 fprintf( stderr
, ", max_width=%d", req
->max_width
);
1754 fprintf( stderr
, ", max_height=%d", req
->max_height
);
1757 static void dump_write_console_input_request( const struct write_console_input_request
*req
)
1759 fprintf( stderr
, " handle=%04x", req
->handle
);
1760 dump_varargs_input_records( ", rec=", cur_size
);
1763 static void dump_write_console_input_reply( const struct write_console_input_reply
*req
)
1765 fprintf( stderr
, " written=%d", req
->written
);
1768 static void dump_read_console_input_request( const struct read_console_input_request
*req
)
1770 fprintf( stderr
, " handle=%04x", req
->handle
);
1771 fprintf( stderr
, ", flush=%d", req
->flush
);
1774 static void dump_read_console_input_reply( const struct read_console_input_reply
*req
)
1776 fprintf( stderr
, " read=%d", req
->read
);
1777 dump_varargs_input_records( ", rec=", cur_size
);
1780 static void dump_write_console_output_request( const struct write_console_output_request
*req
)
1782 fprintf( stderr
, " handle=%04x", req
->handle
);
1783 fprintf( stderr
, ", x=%d", req
->x
);
1784 fprintf( stderr
, ", y=%d", req
->y
);
1785 fprintf( stderr
, ", mode=%d", req
->mode
);
1786 fprintf( stderr
, ", wrap=%d", req
->wrap
);
1787 dump_varargs_bytes( ", data=", cur_size
);
1790 static void dump_write_console_output_reply( const struct write_console_output_reply
*req
)
1792 fprintf( stderr
, " written=%d", req
->written
);
1793 fprintf( stderr
, ", width=%d", req
->width
);
1794 fprintf( stderr
, ", height=%d", req
->height
);
1797 static void dump_fill_console_output_request( const struct fill_console_output_request
*req
)
1799 fprintf( stderr
, " handle=%04x", req
->handle
);
1800 fprintf( stderr
, ", x=%d", req
->x
);
1801 fprintf( stderr
, ", y=%d", req
->y
);
1802 fprintf( stderr
, ", mode=%d", req
->mode
);
1803 fprintf( stderr
, ", count=%d", req
->count
);
1804 fprintf( stderr
, ", wrap=%d", req
->wrap
);
1805 dump_char_info( ", data=", &req
->data
);
1808 static void dump_fill_console_output_reply( const struct fill_console_output_reply
*req
)
1810 fprintf( stderr
, " written=%d", req
->written
);
1813 static void dump_read_console_output_request( const struct read_console_output_request
*req
)
1815 fprintf( stderr
, " handle=%04x", req
->handle
);
1816 fprintf( stderr
, ", x=%d", req
->x
);
1817 fprintf( stderr
, ", y=%d", req
->y
);
1818 fprintf( stderr
, ", mode=%d", req
->mode
);
1819 fprintf( stderr
, ", wrap=%d", req
->wrap
);
1822 static void dump_read_console_output_reply( const struct read_console_output_reply
*req
)
1824 fprintf( stderr
, " width=%d", req
->width
);
1825 fprintf( stderr
, ", height=%d", req
->height
);
1826 dump_varargs_bytes( ", data=", cur_size
);
1829 static void dump_move_console_output_request( const struct move_console_output_request
*req
)
1831 fprintf( stderr
, " handle=%04x", req
->handle
);
1832 fprintf( stderr
, ", x_src=%d", req
->x_src
);
1833 fprintf( stderr
, ", y_src=%d", req
->y_src
);
1834 fprintf( stderr
, ", x_dst=%d", req
->x_dst
);
1835 fprintf( stderr
, ", y_dst=%d", req
->y_dst
);
1836 fprintf( stderr
, ", w=%d", req
->w
);
1837 fprintf( stderr
, ", h=%d", req
->h
);
1840 static void dump_send_console_signal_request( const struct send_console_signal_request
*req
)
1842 fprintf( stderr
, " signal=%d", req
->signal
);
1843 fprintf( stderr
, ", group_id=%04x", req
->group_id
);
1846 static void dump_read_directory_changes_request( const struct read_directory_changes_request
*req
)
1848 fprintf( stderr
, " filter=%08x", req
->filter
);
1849 fprintf( stderr
, ", subtree=%d", req
->subtree
);
1850 fprintf( stderr
, ", want_data=%d", req
->want_data
);
1851 dump_async_data( ", async=", &req
->async
);
1854 static void dump_read_change_request( const struct read_change_request
*req
)
1856 fprintf( stderr
, " handle=%04x", req
->handle
);
1859 static void dump_read_change_reply( const struct read_change_reply
*req
)
1861 fprintf( stderr
, " action=%d", req
->action
);
1862 dump_varargs_string( ", name=", cur_size
);
1865 static void dump_create_mapping_request( const struct create_mapping_request
*req
)
1867 fprintf( stderr
, " access=%08x", req
->access
);
1868 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1869 fprintf( stderr
, ", protect=%08x", req
->protect
);
1870 dump_uint64( ", size=", &req
->size
);
1871 fprintf( stderr
, ", file_handle=%04x", req
->file_handle
);
1872 dump_varargs_object_attributes( ", objattr=", cur_size
);
1875 static void dump_create_mapping_reply( const struct create_mapping_reply
*req
)
1877 fprintf( stderr
, " handle=%04x", req
->handle
);
1880 static void dump_open_mapping_request( const struct open_mapping_request
*req
)
1882 fprintf( stderr
, " access=%08x", req
->access
);
1883 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1884 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
1885 dump_varargs_unicode_str( ", name=", cur_size
);
1888 static void dump_open_mapping_reply( const struct open_mapping_reply
*req
)
1890 fprintf( stderr
, " handle=%04x", req
->handle
);
1893 static void dump_get_mapping_info_request( const struct get_mapping_info_request
*req
)
1895 fprintf( stderr
, " handle=%04x", req
->handle
);
1896 fprintf( stderr
, ", access=%08x", req
->access
);
1899 static void dump_get_mapping_info_reply( const struct get_mapping_info_reply
*req
)
1901 dump_uint64( " size=", &req
->size
);
1902 fprintf( stderr
, ", protect=%d", req
->protect
);
1903 fprintf( stderr
, ", header_size=%d", req
->header_size
);
1904 dump_uint64( ", base=", &req
->base
);
1905 fprintf( stderr
, ", mapping=%04x", req
->mapping
);
1906 fprintf( stderr
, ", shared_file=%04x", req
->shared_file
);
1909 static void dump_get_mapping_committed_range_request( const struct get_mapping_committed_range_request
*req
)
1911 fprintf( stderr
, " handle=%04x", req
->handle
);
1912 dump_uint64( ", offset=", &req
->offset
);
1915 static void dump_get_mapping_committed_range_reply( const struct get_mapping_committed_range_reply
*req
)
1917 dump_uint64( " size=", &req
->size
);
1918 fprintf( stderr
, ", committed=%d", req
->committed
);
1921 static void dump_add_mapping_committed_range_request( const struct add_mapping_committed_range_request
*req
)
1923 fprintf( stderr
, " handle=%04x", req
->handle
);
1924 dump_uint64( ", offset=", &req
->offset
);
1925 dump_uint64( ", size=", &req
->size
);
1928 static void dump_create_snapshot_request( const struct create_snapshot_request
*req
)
1930 fprintf( stderr
, " attributes=%08x", req
->attributes
);
1931 fprintf( stderr
, ", flags=%08x", req
->flags
);
1934 static void dump_create_snapshot_reply( const struct create_snapshot_reply
*req
)
1936 fprintf( stderr
, " handle=%04x", req
->handle
);
1939 static void dump_next_process_request( const struct next_process_request
*req
)
1941 fprintf( stderr
, " handle=%04x", req
->handle
);
1942 fprintf( stderr
, ", reset=%d", req
->reset
);
1945 static void dump_next_process_reply( const struct next_process_reply
*req
)
1947 fprintf( stderr
, " count=%d", req
->count
);
1948 fprintf( stderr
, ", pid=%04x", req
->pid
);
1949 fprintf( stderr
, ", ppid=%04x", req
->ppid
);
1950 fprintf( stderr
, ", threads=%d", req
->threads
);
1951 fprintf( stderr
, ", priority=%d", req
->priority
);
1952 fprintf( stderr
, ", handles=%d", req
->handles
);
1953 dump_varargs_unicode_str( ", filename=", cur_size
);
1956 static void dump_next_thread_request( const struct next_thread_request
*req
)
1958 fprintf( stderr
, " handle=%04x", req
->handle
);
1959 fprintf( stderr
, ", reset=%d", req
->reset
);
1962 static void dump_next_thread_reply( const struct next_thread_reply
*req
)
1964 fprintf( stderr
, " count=%d", req
->count
);
1965 fprintf( stderr
, ", pid=%04x", req
->pid
);
1966 fprintf( stderr
, ", tid=%04x", req
->tid
);
1967 fprintf( stderr
, ", base_pri=%d", req
->base_pri
);
1968 fprintf( stderr
, ", delta_pri=%d", req
->delta_pri
);
1971 static void dump_wait_debug_event_request( const struct wait_debug_event_request
*req
)
1973 fprintf( stderr
, " get_handle=%d", req
->get_handle
);
1976 static void dump_wait_debug_event_reply( const struct wait_debug_event_reply
*req
)
1978 fprintf( stderr
, " pid=%04x", req
->pid
);
1979 fprintf( stderr
, ", tid=%04x", req
->tid
);
1980 fprintf( stderr
, ", wait=%04x", req
->wait
);
1981 dump_varargs_debug_event( ", event=", cur_size
);
1984 static void dump_queue_exception_event_request( const struct queue_exception_event_request
*req
)
1986 fprintf( stderr
, " first=%d", req
->first
);
1987 fprintf( stderr
, ", code=%08x", req
->code
);
1988 fprintf( stderr
, ", flags=%08x", req
->flags
);
1989 dump_uint64( ", record=", &req
->record
);
1990 dump_uint64( ", address=", &req
->address
);
1991 fprintf( stderr
, ", len=%u", req
->len
);
1992 dump_varargs_uints64( ", params=", min(cur_size
,req
->len
) );
1993 dump_varargs_context( ", context=", cur_size
);
1996 static void dump_queue_exception_event_reply( const struct queue_exception_event_reply
*req
)
1998 fprintf( stderr
, " handle=%04x", req
->handle
);
2001 static void dump_get_exception_status_request( const struct get_exception_status_request
*req
)
2003 fprintf( stderr
, " handle=%04x", req
->handle
);
2006 static void dump_get_exception_status_reply( const struct get_exception_status_reply
*req
)
2008 dump_varargs_context( " context=", cur_size
);
2011 static void dump_output_debug_string_request( const struct output_debug_string_request
*req
)
2013 fprintf( stderr
, " length=%u", req
->length
);
2014 dump_uint64( ", string=", &req
->string
);
2017 static void dump_continue_debug_event_request( const struct continue_debug_event_request
*req
)
2019 fprintf( stderr
, " pid=%04x", req
->pid
);
2020 fprintf( stderr
, ", tid=%04x", req
->tid
);
2021 fprintf( stderr
, ", status=%d", req
->status
);
2024 static void dump_debug_process_request( const struct debug_process_request
*req
)
2026 fprintf( stderr
, " pid=%04x", req
->pid
);
2027 fprintf( stderr
, ", attach=%d", req
->attach
);
2030 static void dump_debug_break_request( const struct debug_break_request
*req
)
2032 fprintf( stderr
, " handle=%04x", req
->handle
);
2035 static void dump_debug_break_reply( const struct debug_break_reply
*req
)
2037 fprintf( stderr
, " self=%d", req
->self
);
2040 static void dump_set_debugger_kill_on_exit_request( const struct set_debugger_kill_on_exit_request
*req
)
2042 fprintf( stderr
, " kill_on_exit=%d", req
->kill_on_exit
);
2045 static void dump_read_process_memory_request( const struct read_process_memory_request
*req
)
2047 fprintf( stderr
, " handle=%04x", req
->handle
);
2048 dump_uint64( ", addr=", &req
->addr
);
2051 static void dump_read_process_memory_reply( const struct read_process_memory_reply
*req
)
2053 dump_varargs_bytes( " data=", cur_size
);
2056 static void dump_write_process_memory_request( const struct write_process_memory_request
*req
)
2058 fprintf( stderr
, " handle=%04x", req
->handle
);
2059 dump_uint64( ", addr=", &req
->addr
);
2060 dump_varargs_bytes( ", data=", cur_size
);
2063 static void dump_create_key_request( const struct create_key_request
*req
)
2065 fprintf( stderr
, " parent=%04x", req
->parent
);
2066 fprintf( stderr
, ", access=%08x", req
->access
);
2067 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
2068 fprintf( stderr
, ", options=%08x", req
->options
);
2069 fprintf( stderr
, ", namelen=%u", req
->namelen
);
2070 dump_varargs_unicode_str( ", name=", min(cur_size
,req
->namelen
) );
2071 dump_varargs_unicode_str( ", class=", cur_size
);
2074 static void dump_create_key_reply( const struct create_key_reply
*req
)
2076 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2077 fprintf( stderr
, ", created=%d", req
->created
);
2080 static void dump_open_key_request( const struct open_key_request
*req
)
2082 fprintf( stderr
, " parent=%04x", req
->parent
);
2083 fprintf( stderr
, ", access=%08x", req
->access
);
2084 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
2085 dump_varargs_unicode_str( ", name=", cur_size
);
2088 static void dump_open_key_reply( const struct open_key_reply
*req
)
2090 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2093 static void dump_delete_key_request( const struct delete_key_request
*req
)
2095 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2098 static void dump_flush_key_request( const struct flush_key_request
*req
)
2100 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2103 static void dump_enum_key_request( const struct enum_key_request
*req
)
2105 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2106 fprintf( stderr
, ", index=%d", req
->index
);
2107 fprintf( stderr
, ", info_class=%d", req
->info_class
);
2110 static void dump_enum_key_reply( const struct enum_key_reply
*req
)
2112 fprintf( stderr
, " subkeys=%d", req
->subkeys
);
2113 fprintf( stderr
, ", max_subkey=%d", req
->max_subkey
);
2114 fprintf( stderr
, ", max_class=%d", req
->max_class
);
2115 fprintf( stderr
, ", values=%d", req
->values
);
2116 fprintf( stderr
, ", max_value=%d", req
->max_value
);
2117 fprintf( stderr
, ", max_data=%d", req
->max_data
);
2118 dump_timeout( ", modif=", &req
->modif
);
2119 fprintf( stderr
, ", total=%u", req
->total
);
2120 fprintf( stderr
, ", namelen=%u", req
->namelen
);
2121 dump_varargs_unicode_str( ", name=", min(cur_size
,req
->namelen
) );
2122 dump_varargs_unicode_str( ", class=", cur_size
);
2125 static void dump_set_key_value_request( const struct set_key_value_request
*req
)
2127 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2128 fprintf( stderr
, ", type=%d", req
->type
);
2129 fprintf( stderr
, ", namelen=%u", req
->namelen
);
2130 dump_varargs_unicode_str( ", name=", min(cur_size
,req
->namelen
) );
2131 dump_varargs_bytes( ", data=", cur_size
);
2134 static void dump_get_key_value_request( const struct get_key_value_request
*req
)
2136 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2137 dump_varargs_unicode_str( ", name=", cur_size
);
2140 static void dump_get_key_value_reply( const struct get_key_value_reply
*req
)
2142 fprintf( stderr
, " type=%d", req
->type
);
2143 fprintf( stderr
, ", total=%u", req
->total
);
2144 dump_varargs_bytes( ", data=", cur_size
);
2147 static void dump_enum_key_value_request( const struct enum_key_value_request
*req
)
2149 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2150 fprintf( stderr
, ", index=%d", req
->index
);
2151 fprintf( stderr
, ", info_class=%d", req
->info_class
);
2154 static void dump_enum_key_value_reply( const struct enum_key_value_reply
*req
)
2156 fprintf( stderr
, " type=%d", req
->type
);
2157 fprintf( stderr
, ", total=%u", req
->total
);
2158 fprintf( stderr
, ", namelen=%u", req
->namelen
);
2159 dump_varargs_unicode_str( ", name=", min(cur_size
,req
->namelen
) );
2160 dump_varargs_bytes( ", data=", cur_size
);
2163 static void dump_delete_key_value_request( const struct delete_key_value_request
*req
)
2165 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2166 dump_varargs_unicode_str( ", name=", cur_size
);
2169 static void dump_load_registry_request( const struct load_registry_request
*req
)
2171 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2172 fprintf( stderr
, ", file=%04x", req
->file
);
2173 dump_varargs_unicode_str( ", name=", cur_size
);
2176 static void dump_unload_registry_request( const struct unload_registry_request
*req
)
2178 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2181 static void dump_save_registry_request( const struct save_registry_request
*req
)
2183 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2184 fprintf( stderr
, ", file=%04x", req
->file
);
2187 static void dump_set_registry_notification_request( const struct set_registry_notification_request
*req
)
2189 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2190 fprintf( stderr
, ", event=%04x", req
->event
);
2191 fprintf( stderr
, ", subtree=%d", req
->subtree
);
2192 fprintf( stderr
, ", filter=%08x", req
->filter
);
2195 static void dump_create_timer_request( const struct create_timer_request
*req
)
2197 fprintf( stderr
, " access=%08x", req
->access
);
2198 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
2199 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
2200 fprintf( stderr
, ", manual=%d", req
->manual
);
2201 dump_varargs_unicode_str( ", name=", cur_size
);
2204 static void dump_create_timer_reply( const struct create_timer_reply
*req
)
2206 fprintf( stderr
, " handle=%04x", req
->handle
);
2209 static void dump_open_timer_request( const struct open_timer_request
*req
)
2211 fprintf( stderr
, " access=%08x", req
->access
);
2212 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
2213 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
2214 dump_varargs_unicode_str( ", name=", cur_size
);
2217 static void dump_open_timer_reply( const struct open_timer_reply
*req
)
2219 fprintf( stderr
, " handle=%04x", req
->handle
);
2222 static void dump_set_timer_request( const struct set_timer_request
*req
)
2224 fprintf( stderr
, " handle=%04x", req
->handle
);
2225 dump_timeout( ", expire=", &req
->expire
);
2226 dump_uint64( ", callback=", &req
->callback
);
2227 dump_uint64( ", arg=", &req
->arg
);
2228 fprintf( stderr
, ", period=%d", req
->period
);
2231 static void dump_set_timer_reply( const struct set_timer_reply
*req
)
2233 fprintf( stderr
, " signaled=%d", req
->signaled
);
2236 static void dump_cancel_timer_request( const struct cancel_timer_request
*req
)
2238 fprintf( stderr
, " handle=%04x", req
->handle
);
2241 static void dump_cancel_timer_reply( const struct cancel_timer_reply
*req
)
2243 fprintf( stderr
, " signaled=%d", req
->signaled
);
2246 static void dump_get_timer_info_request( const struct get_timer_info_request
*req
)
2248 fprintf( stderr
, " handle=%04x", req
->handle
);
2251 static void dump_get_timer_info_reply( const struct get_timer_info_reply
*req
)
2253 dump_timeout( " when=", &req
->when
);
2254 fprintf( stderr
, ", signaled=%d", req
->signaled
);
2257 static void dump_get_thread_context_request( const struct get_thread_context_request
*req
)
2259 fprintf( stderr
, " handle=%04x", req
->handle
);
2260 fprintf( stderr
, ", flags=%08x", req
->flags
);
2261 fprintf( stderr
, ", suspend=%d", req
->suspend
);
2264 static void dump_get_thread_context_reply( const struct get_thread_context_reply
*req
)
2266 fprintf( stderr
, " self=%d", req
->self
);
2267 dump_varargs_context( ", context=", cur_size
);
2270 static void dump_set_thread_context_request( const struct set_thread_context_request
*req
)
2272 fprintf( stderr
, " handle=%04x", req
->handle
);
2273 fprintf( stderr
, ", suspend=%d", req
->suspend
);
2274 dump_varargs_context( ", context=", cur_size
);
2277 static void dump_set_thread_context_reply( const struct set_thread_context_reply
*req
)
2279 fprintf( stderr
, " self=%d", req
->self
);
2282 static void dump_get_selector_entry_request( const struct get_selector_entry_request
*req
)
2284 fprintf( stderr
, " handle=%04x", req
->handle
);
2285 fprintf( stderr
, ", entry=%d", req
->entry
);
2288 static void dump_get_selector_entry_reply( const struct get_selector_entry_reply
*req
)
2290 fprintf( stderr
, " base=%08x", req
->base
);
2291 fprintf( stderr
, ", limit=%08x", req
->limit
);
2292 fprintf( stderr
, ", flags=%02x", req
->flags
);
2295 static void dump_add_atom_request( const struct add_atom_request
*req
)
2297 fprintf( stderr
, " table=%04x", req
->table
);
2298 dump_varargs_unicode_str( ", name=", cur_size
);
2301 static void dump_add_atom_reply( const struct add_atom_reply
*req
)
2303 fprintf( stderr
, " atom=%04x", req
->atom
);
2306 static void dump_delete_atom_request( const struct delete_atom_request
*req
)
2308 fprintf( stderr
, " table=%04x", req
->table
);
2309 fprintf( stderr
, ", atom=%04x", req
->atom
);
2312 static void dump_find_atom_request( const struct find_atom_request
*req
)
2314 fprintf( stderr
, " table=%04x", req
->table
);
2315 dump_varargs_unicode_str( ", name=", cur_size
);
2318 static void dump_find_atom_reply( const struct find_atom_reply
*req
)
2320 fprintf( stderr
, " atom=%04x", req
->atom
);
2323 static void dump_get_atom_information_request( const struct get_atom_information_request
*req
)
2325 fprintf( stderr
, " table=%04x", req
->table
);
2326 fprintf( stderr
, ", atom=%04x", req
->atom
);
2329 static void dump_get_atom_information_reply( const struct get_atom_information_reply
*req
)
2331 fprintf( stderr
, " count=%d", req
->count
);
2332 fprintf( stderr
, ", pinned=%d", req
->pinned
);
2333 fprintf( stderr
, ", total=%u", req
->total
);
2334 dump_varargs_unicode_str( ", name=", cur_size
);
2337 static void dump_set_atom_information_request( const struct set_atom_information_request
*req
)
2339 fprintf( stderr
, " table=%04x", req
->table
);
2340 fprintf( stderr
, ", atom=%04x", req
->atom
);
2341 fprintf( stderr
, ", pinned=%d", req
->pinned
);
2344 static void dump_empty_atom_table_request( const struct empty_atom_table_request
*req
)
2346 fprintf( stderr
, " table=%04x", req
->table
);
2347 fprintf( stderr
, ", if_pinned=%d", req
->if_pinned
);
2350 static void dump_init_atom_table_request( const struct init_atom_table_request
*req
)
2352 fprintf( stderr
, " entries=%d", req
->entries
);
2355 static void dump_init_atom_table_reply( const struct init_atom_table_reply
*req
)
2357 fprintf( stderr
, " table=%04x", req
->table
);
2360 static void dump_get_msg_queue_request( const struct get_msg_queue_request
*req
)
2364 static void dump_get_msg_queue_reply( const struct get_msg_queue_reply
*req
)
2366 fprintf( stderr
, " handle=%04x", req
->handle
);
2369 static void dump_set_queue_fd_request( const struct set_queue_fd_request
*req
)
2371 fprintf( stderr
, " handle=%04x", req
->handle
);
2374 static void dump_set_queue_mask_request( const struct set_queue_mask_request
*req
)
2376 fprintf( stderr
, " wake_mask=%08x", req
->wake_mask
);
2377 fprintf( stderr
, ", changed_mask=%08x", req
->changed_mask
);
2378 fprintf( stderr
, ", skip_wait=%d", req
->skip_wait
);
2381 static void dump_set_queue_mask_reply( const struct set_queue_mask_reply
*req
)
2383 fprintf( stderr
, " wake_bits=%08x", req
->wake_bits
);
2384 fprintf( stderr
, ", changed_bits=%08x", req
->changed_bits
);
2387 static void dump_get_queue_status_request( const struct get_queue_status_request
*req
)
2389 fprintf( stderr
, " clear=%d", req
->clear
);
2392 static void dump_get_queue_status_reply( const struct get_queue_status_reply
*req
)
2394 fprintf( stderr
, " wake_bits=%08x", req
->wake_bits
);
2395 fprintf( stderr
, ", changed_bits=%08x", req
->changed_bits
);
2398 static void dump_get_process_idle_event_request( const struct get_process_idle_event_request
*req
)
2400 fprintf( stderr
, " handle=%04x", req
->handle
);
2403 static void dump_get_process_idle_event_reply( const struct get_process_idle_event_reply
*req
)
2405 fprintf( stderr
, " event=%04x", req
->event
);
2408 static void dump_send_message_request( const struct send_message_request
*req
)
2410 fprintf( stderr
, " id=%04x", req
->id
);
2411 fprintf( stderr
, ", type=%d", req
->type
);
2412 fprintf( stderr
, ", flags=%d", req
->flags
);
2413 fprintf( stderr
, ", win=%08x", req
->win
);
2414 fprintf( stderr
, ", msg=%08x", req
->msg
);
2415 dump_uint64( ", wparam=", &req
->wparam
);
2416 dump_uint64( ", lparam=", &req
->lparam
);
2417 dump_timeout( ", timeout=", &req
->timeout
);
2418 dump_varargs_message_data( ", data=", cur_size
);
2421 static void dump_post_quit_message_request( const struct post_quit_message_request
*req
)
2423 fprintf( stderr
, " exit_code=%d", req
->exit_code
);
2426 static void dump_send_hardware_message_request( const struct send_hardware_message_request
*req
)
2428 fprintf( stderr
, " id=%04x", req
->id
);
2429 fprintf( stderr
, ", win=%08x", req
->win
);
2430 fprintf( stderr
, ", msg=%08x", req
->msg
);
2431 dump_uint64( ", wparam=", &req
->wparam
);
2432 dump_uint64( ", lparam=", &req
->lparam
);
2433 dump_uint64( ", info=", &req
->info
);
2434 fprintf( stderr
, ", x=%d", req
->x
);
2435 fprintf( stderr
, ", y=%d", req
->y
);
2436 fprintf( stderr
, ", time=%08x", req
->time
);
2439 static void dump_send_hardware_message_reply( const struct send_hardware_message_reply
*req
)
2441 fprintf( stderr
, " cursor=%08x", req
->cursor
);
2442 fprintf( stderr
, ", count=%d", req
->count
);
2445 static void dump_get_message_request( const struct get_message_request
*req
)
2447 fprintf( stderr
, " flags=%08x", req
->flags
);
2448 fprintf( stderr
, ", get_win=%08x", req
->get_win
);
2449 fprintf( stderr
, ", get_first=%08x", req
->get_first
);
2450 fprintf( stderr
, ", get_last=%08x", req
->get_last
);
2451 fprintf( stderr
, ", hw_id=%08x", req
->hw_id
);
2452 fprintf( stderr
, ", wake_mask=%08x", req
->wake_mask
);
2453 fprintf( stderr
, ", changed_mask=%08x", req
->changed_mask
);
2456 static void dump_get_message_reply( const struct get_message_reply
*req
)
2458 fprintf( stderr
, " win=%08x", req
->win
);
2459 fprintf( stderr
, ", msg=%08x", req
->msg
);
2460 dump_uint64( ", wparam=", &req
->wparam
);
2461 dump_uint64( ", lparam=", &req
->lparam
);
2462 fprintf( stderr
, ", type=%d", req
->type
);
2463 fprintf( stderr
, ", time=%08x", req
->time
);
2464 fprintf( stderr
, ", active_hooks=%08x", req
->active_hooks
);
2465 fprintf( stderr
, ", total=%u", req
->total
);
2466 dump_varargs_message_data( ", data=", cur_size
);
2469 static void dump_reply_message_request( const struct reply_message_request
*req
)
2471 fprintf( stderr
, " remove=%d", req
->remove
);
2472 dump_uint64( ", result=", &req
->result
);
2473 dump_varargs_bytes( ", data=", cur_size
);
2476 static void dump_accept_hardware_message_request( const struct accept_hardware_message_request
*req
)
2478 fprintf( stderr
, " hw_id=%08x", req
->hw_id
);
2479 fprintf( stderr
, ", remove=%d", req
->remove
);
2480 fprintf( stderr
, ", new_win=%08x", req
->new_win
);
2483 static void dump_get_message_reply_request( const struct get_message_reply_request
*req
)
2485 fprintf( stderr
, " cancel=%d", req
->cancel
);
2488 static void dump_get_message_reply_reply( const struct get_message_reply_reply
*req
)
2490 dump_uint64( " result=", &req
->result
);
2491 dump_varargs_bytes( ", data=", cur_size
);
2494 static void dump_set_win_timer_request( const struct set_win_timer_request
*req
)
2496 fprintf( stderr
, " win=%08x", req
->win
);
2497 fprintf( stderr
, ", msg=%08x", req
->msg
);
2498 fprintf( stderr
, ", rate=%08x", req
->rate
);
2499 dump_uint64( ", id=", &req
->id
);
2500 dump_uint64( ", lparam=", &req
->lparam
);
2503 static void dump_set_win_timer_reply( const struct set_win_timer_reply
*req
)
2505 dump_uint64( " id=", &req
->id
);
2508 static void dump_kill_win_timer_request( const struct kill_win_timer_request
*req
)
2510 fprintf( stderr
, " win=%08x", req
->win
);
2511 dump_uint64( ", id=", &req
->id
);
2512 fprintf( stderr
, ", msg=%08x", req
->msg
);
2515 static void dump_is_window_hung_request( const struct is_window_hung_request
*req
)
2517 fprintf( stderr
, " win=%08x", req
->win
);
2520 static void dump_is_window_hung_reply( const struct is_window_hung_reply
*req
)
2522 fprintf( stderr
, " is_hung=%d", req
->is_hung
);
2525 static void dump_get_serial_info_request( const struct get_serial_info_request
*req
)
2527 fprintf( stderr
, " handle=%04x", req
->handle
);
2530 static void dump_get_serial_info_reply( const struct get_serial_info_reply
*req
)
2532 fprintf( stderr
, " readinterval=%08x", req
->readinterval
);
2533 fprintf( stderr
, ", readconst=%08x", req
->readconst
);
2534 fprintf( stderr
, ", readmult=%08x", req
->readmult
);
2535 fprintf( stderr
, ", writeconst=%08x", req
->writeconst
);
2536 fprintf( stderr
, ", writemult=%08x", req
->writemult
);
2537 fprintf( stderr
, ", eventmask=%08x", req
->eventmask
);
2540 static void dump_set_serial_info_request( const struct set_serial_info_request
*req
)
2542 fprintf( stderr
, " handle=%04x", req
->handle
);
2543 fprintf( stderr
, ", flags=%d", req
->flags
);
2544 fprintf( stderr
, ", readinterval=%08x", req
->readinterval
);
2545 fprintf( stderr
, ", readconst=%08x", req
->readconst
);
2546 fprintf( stderr
, ", readmult=%08x", req
->readmult
);
2547 fprintf( stderr
, ", writeconst=%08x", req
->writeconst
);
2548 fprintf( stderr
, ", writemult=%08x", req
->writemult
);
2549 fprintf( stderr
, ", eventmask=%08x", req
->eventmask
);
2552 static void dump_register_async_request( const struct register_async_request
*req
)
2554 fprintf( stderr
, " type=%d", req
->type
);
2555 dump_async_data( ", async=", &req
->async
);
2556 fprintf( stderr
, ", count=%d", req
->count
);
2559 static void dump_cancel_async_request( const struct cancel_async_request
*req
)
2561 fprintf( stderr
, " handle=%04x", req
->handle
);
2562 dump_uint64( ", iosb=", &req
->iosb
);
2563 fprintf( stderr
, ", only_thread=%d", req
->only_thread
);
2566 static void dump_ioctl_request( const struct ioctl_request
*req
)
2568 dump_ioctl_code( " code=", &req
->code
);
2569 dump_async_data( ", async=", &req
->async
);
2570 fprintf( stderr
, ", blocking=%d", req
->blocking
);
2571 dump_varargs_bytes( ", in_data=", cur_size
);
2574 static void dump_ioctl_reply( const struct ioctl_reply
*req
)
2576 fprintf( stderr
, " wait=%04x", req
->wait
);
2577 fprintf( stderr
, ", options=%08x", req
->options
);
2578 dump_varargs_bytes( ", out_data=", cur_size
);
2581 static void dump_get_ioctl_result_request( const struct get_ioctl_result_request
*req
)
2583 fprintf( stderr
, " handle=%04x", req
->handle
);
2584 dump_uint64( ", user_arg=", &req
->user_arg
);
2587 static void dump_get_ioctl_result_reply( const struct get_ioctl_result_reply
*req
)
2589 dump_varargs_bytes( " out_data=", cur_size
);
2592 static void dump_create_named_pipe_request( const struct create_named_pipe_request
*req
)
2594 fprintf( stderr
, " access=%08x", req
->access
);
2595 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
2596 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
2597 fprintf( stderr
, ", options=%08x", req
->options
);
2598 fprintf( stderr
, ", maxinstances=%08x", req
->maxinstances
);
2599 fprintf( stderr
, ", outsize=%08x", req
->outsize
);
2600 fprintf( stderr
, ", insize=%08x", req
->insize
);
2601 dump_timeout( ", timeout=", &req
->timeout
);
2602 fprintf( stderr
, ", flags=%08x", req
->flags
);
2603 dump_varargs_unicode_str( ", name=", cur_size
);
2606 static void dump_create_named_pipe_reply( const struct create_named_pipe_reply
*req
)
2608 fprintf( stderr
, " handle=%04x", req
->handle
);
2611 static void dump_get_named_pipe_info_request( const struct get_named_pipe_info_request
*req
)
2613 fprintf( stderr
, " handle=%04x", req
->handle
);
2616 static void dump_get_named_pipe_info_reply( const struct get_named_pipe_info_reply
*req
)
2618 fprintf( stderr
, " flags=%08x", req
->flags
);
2619 fprintf( stderr
, ", maxinstances=%08x", req
->maxinstances
);
2620 fprintf( stderr
, ", instances=%08x", req
->instances
);
2621 fprintf( stderr
, ", outsize=%08x", req
->outsize
);
2622 fprintf( stderr
, ", insize=%08x", req
->insize
);
2625 static void dump_create_window_request( const struct create_window_request
*req
)
2627 fprintf( stderr
, " parent=%08x", req
->parent
);
2628 fprintf( stderr
, ", owner=%08x", req
->owner
);
2629 fprintf( stderr
, ", atom=%04x", req
->atom
);
2630 dump_uint64( ", instance=", &req
->instance
);
2631 dump_varargs_unicode_str( ", class=", cur_size
);
2634 static void dump_create_window_reply( const struct create_window_reply
*req
)
2636 fprintf( stderr
, " handle=%08x", req
->handle
);
2637 fprintf( stderr
, ", parent=%08x", req
->parent
);
2638 fprintf( stderr
, ", owner=%08x", req
->owner
);
2639 fprintf( stderr
, ", extra=%d", req
->extra
);
2640 dump_uint64( ", class_ptr=", &req
->class_ptr
);
2643 static void dump_destroy_window_request( const struct destroy_window_request
*req
)
2645 fprintf( stderr
, " handle=%08x", req
->handle
);
2648 static void dump_get_desktop_window_request( const struct get_desktop_window_request
*req
)
2650 fprintf( stderr
, " force=%d", req
->force
);
2653 static void dump_get_desktop_window_reply( const struct get_desktop_window_reply
*req
)
2655 fprintf( stderr
, " top_window=%08x", req
->top_window
);
2656 fprintf( stderr
, ", msg_window=%08x", req
->msg_window
);
2659 static void dump_set_window_owner_request( const struct set_window_owner_request
*req
)
2661 fprintf( stderr
, " handle=%08x", req
->handle
);
2662 fprintf( stderr
, ", owner=%08x", req
->owner
);
2665 static void dump_set_window_owner_reply( const struct set_window_owner_reply
*req
)
2667 fprintf( stderr
, " full_owner=%08x", req
->full_owner
);
2668 fprintf( stderr
, ", prev_owner=%08x", req
->prev_owner
);
2671 static void dump_get_window_info_request( const struct get_window_info_request
*req
)
2673 fprintf( stderr
, " handle=%08x", req
->handle
);
2676 static void dump_get_window_info_reply( const struct get_window_info_reply
*req
)
2678 fprintf( stderr
, " full_handle=%08x", req
->full_handle
);
2679 fprintf( stderr
, ", last_active=%08x", req
->last_active
);
2680 fprintf( stderr
, ", pid=%04x", req
->pid
);
2681 fprintf( stderr
, ", tid=%04x", req
->tid
);
2682 fprintf( stderr
, ", atom=%04x", req
->atom
);
2683 fprintf( stderr
, ", is_unicode=%d", req
->is_unicode
);
2686 static void dump_set_window_info_request( const struct set_window_info_request
*req
)
2688 fprintf( stderr
, " flags=%04x", req
->flags
);
2689 fprintf( stderr
, ", is_unicode=%d", req
->is_unicode
);
2690 fprintf( stderr
, ", handle=%08x", req
->handle
);
2691 fprintf( stderr
, ", style=%08x", req
->style
);
2692 fprintf( stderr
, ", ex_style=%08x", req
->ex_style
);
2693 fprintf( stderr
, ", id=%08x", req
->id
);
2694 dump_uint64( ", instance=", &req
->instance
);
2695 dump_uint64( ", user_data=", &req
->user_data
);
2696 fprintf( stderr
, ", extra_offset=%d", req
->extra_offset
);
2697 fprintf( stderr
, ", extra_size=%u", req
->extra_size
);
2698 dump_uint64( ", extra_value=", &req
->extra_value
);
2701 static void dump_set_window_info_reply( const struct set_window_info_reply
*req
)
2703 fprintf( stderr
, " old_style=%08x", req
->old_style
);
2704 fprintf( stderr
, ", old_ex_style=%08x", req
->old_ex_style
);
2705 dump_uint64( ", old_instance=", &req
->old_instance
);
2706 dump_uint64( ", old_user_data=", &req
->old_user_data
);
2707 dump_uint64( ", old_extra_value=", &req
->old_extra_value
);
2708 fprintf( stderr
, ", old_id=%08x", req
->old_id
);
2711 static void dump_set_parent_request( const struct set_parent_request
*req
)
2713 fprintf( stderr
, " handle=%08x", req
->handle
);
2714 fprintf( stderr
, ", parent=%08x", req
->parent
);
2717 static void dump_set_parent_reply( const struct set_parent_reply
*req
)
2719 fprintf( stderr
, " old_parent=%08x", req
->old_parent
);
2720 fprintf( stderr
, ", full_parent=%08x", req
->full_parent
);
2723 static void dump_get_window_parents_request( const struct get_window_parents_request
*req
)
2725 fprintf( stderr
, " handle=%08x", req
->handle
);
2728 static void dump_get_window_parents_reply( const struct get_window_parents_reply
*req
)
2730 fprintf( stderr
, " count=%d", req
->count
);
2731 dump_varargs_user_handles( ", parents=", cur_size
);
2734 static void dump_get_window_children_request( const struct get_window_children_request
*req
)
2736 fprintf( stderr
, " desktop=%04x", req
->desktop
);
2737 fprintf( stderr
, ", parent=%08x", req
->parent
);
2738 fprintf( stderr
, ", atom=%04x", req
->atom
);
2739 fprintf( stderr
, ", tid=%04x", req
->tid
);
2740 dump_varargs_unicode_str( ", class=", cur_size
);
2743 static void dump_get_window_children_reply( const struct get_window_children_reply
*req
)
2745 fprintf( stderr
, " count=%d", req
->count
);
2746 dump_varargs_user_handles( ", children=", cur_size
);
2749 static void dump_get_window_children_from_point_request( const struct get_window_children_from_point_request
*req
)
2751 fprintf( stderr
, " parent=%08x", req
->parent
);
2752 fprintf( stderr
, ", x=%d", req
->x
);
2753 fprintf( stderr
, ", y=%d", req
->y
);
2756 static void dump_get_window_children_from_point_reply( const struct get_window_children_from_point_reply
*req
)
2758 fprintf( stderr
, " count=%d", req
->count
);
2759 dump_varargs_user_handles( ", children=", cur_size
);
2762 static void dump_get_window_tree_request( const struct get_window_tree_request
*req
)
2764 fprintf( stderr
, " handle=%08x", req
->handle
);
2767 static void dump_get_window_tree_reply( const struct get_window_tree_reply
*req
)
2769 fprintf( stderr
, " parent=%08x", req
->parent
);
2770 fprintf( stderr
, ", owner=%08x", req
->owner
);
2771 fprintf( stderr
, ", next_sibling=%08x", req
->next_sibling
);
2772 fprintf( stderr
, ", prev_sibling=%08x", req
->prev_sibling
);
2773 fprintf( stderr
, ", first_sibling=%08x", req
->first_sibling
);
2774 fprintf( stderr
, ", last_sibling=%08x", req
->last_sibling
);
2775 fprintf( stderr
, ", first_child=%08x", req
->first_child
);
2776 fprintf( stderr
, ", last_child=%08x", req
->last_child
);
2779 static void dump_set_window_pos_request( const struct set_window_pos_request
*req
)
2781 fprintf( stderr
, " flags=%08x", req
->flags
);
2782 fprintf( stderr
, ", handle=%08x", req
->handle
);
2783 fprintf( stderr
, ", previous=%08x", req
->previous
);
2784 dump_rectangle( ", window=", &req
->window
);
2785 dump_rectangle( ", client=", &req
->client
);
2786 dump_varargs_rectangles( ", valid=", cur_size
);
2789 static void dump_set_window_pos_reply( const struct set_window_pos_reply
*req
)
2791 fprintf( stderr
, " new_style=%08x", req
->new_style
);
2792 fprintf( stderr
, ", new_ex_style=%08x", req
->new_ex_style
);
2795 static void dump_get_window_rectangles_request( const struct get_window_rectangles_request
*req
)
2797 fprintf( stderr
, " handle=%08x", req
->handle
);
2798 fprintf( stderr
, ", relative=%d", req
->relative
);
2801 static void dump_get_window_rectangles_reply( const struct get_window_rectangles_reply
*req
)
2803 dump_rectangle( " window=", &req
->window
);
2804 dump_rectangle( ", visible=", &req
->visible
);
2805 dump_rectangle( ", client=", &req
->client
);
2808 static void dump_get_window_text_request( const struct get_window_text_request
*req
)
2810 fprintf( stderr
, " handle=%08x", req
->handle
);
2813 static void dump_get_window_text_reply( const struct get_window_text_reply
*req
)
2815 dump_varargs_unicode_str( " text=", cur_size
);
2818 static void dump_set_window_text_request( const struct set_window_text_request
*req
)
2820 fprintf( stderr
, " handle=%08x", req
->handle
);
2821 dump_varargs_unicode_str( ", text=", cur_size
);
2824 static void dump_get_windows_offset_request( const struct get_windows_offset_request
*req
)
2826 fprintf( stderr
, " from=%08x", req
->from
);
2827 fprintf( stderr
, ", to=%08x", req
->to
);
2830 static void dump_get_windows_offset_reply( const struct get_windows_offset_reply
*req
)
2832 fprintf( stderr
, " x=%d", req
->x
);
2833 fprintf( stderr
, ", y=%d", req
->y
);
2836 static void dump_get_visible_region_request( const struct get_visible_region_request
*req
)
2838 fprintf( stderr
, " window=%08x", req
->window
);
2839 fprintf( stderr
, ", flags=%08x", req
->flags
);
2842 static void dump_get_visible_region_reply( const struct get_visible_region_reply
*req
)
2844 fprintf( stderr
, " top_win=%08x", req
->top_win
);
2845 dump_rectangle( ", top_rect=", &req
->top_rect
);
2846 dump_rectangle( ", win_rect=", &req
->win_rect
);
2847 fprintf( stderr
, ", total_size=%u", req
->total_size
);
2848 dump_varargs_rectangles( ", region=", cur_size
);
2851 static void dump_get_window_region_request( const struct get_window_region_request
*req
)
2853 fprintf( stderr
, " window=%08x", req
->window
);
2856 static void dump_get_window_region_reply( const struct get_window_region_reply
*req
)
2858 fprintf( stderr
, " total_size=%u", req
->total_size
);
2859 dump_varargs_rectangles( ", region=", cur_size
);
2862 static void dump_set_window_region_request( const struct set_window_region_request
*req
)
2864 fprintf( stderr
, " window=%08x", req
->window
);
2865 fprintf( stderr
, ", redraw=%d", req
->redraw
);
2866 dump_varargs_rectangles( ", region=", cur_size
);
2869 static void dump_get_update_region_request( const struct get_update_region_request
*req
)
2871 fprintf( stderr
, " window=%08x", req
->window
);
2872 fprintf( stderr
, ", from_child=%08x", req
->from_child
);
2873 fprintf( stderr
, ", flags=%08x", req
->flags
);
2876 static void dump_get_update_region_reply( const struct get_update_region_reply
*req
)
2878 fprintf( stderr
, " child=%08x", req
->child
);
2879 fprintf( stderr
, ", flags=%08x", req
->flags
);
2880 fprintf( stderr
, ", total_size=%u", req
->total_size
);
2881 dump_varargs_rectangles( ", region=", cur_size
);
2884 static void dump_update_window_zorder_request( const struct update_window_zorder_request
*req
)
2886 fprintf( stderr
, " window=%08x", req
->window
);
2887 dump_rectangle( ", rect=", &req
->rect
);
2890 static void dump_redraw_window_request( const struct redraw_window_request
*req
)
2892 fprintf( stderr
, " window=%08x", req
->window
);
2893 fprintf( stderr
, ", flags=%08x", req
->flags
);
2894 dump_varargs_rectangles( ", region=", cur_size
);
2897 static void dump_set_window_property_request( const struct set_window_property_request
*req
)
2899 fprintf( stderr
, " window=%08x", req
->window
);
2900 dump_uint64( ", data=", &req
->data
);
2901 fprintf( stderr
, ", atom=%04x", req
->atom
);
2902 dump_varargs_unicode_str( ", name=", cur_size
);
2905 static void dump_remove_window_property_request( const struct remove_window_property_request
*req
)
2907 fprintf( stderr
, " window=%08x", req
->window
);
2908 fprintf( stderr
, ", atom=%04x", req
->atom
);
2909 dump_varargs_unicode_str( ", name=", cur_size
);
2912 static void dump_remove_window_property_reply( const struct remove_window_property_reply
*req
)
2914 dump_uint64( " data=", &req
->data
);
2917 static void dump_get_window_property_request( const struct get_window_property_request
*req
)
2919 fprintf( stderr
, " window=%08x", req
->window
);
2920 fprintf( stderr
, ", atom=%04x", req
->atom
);
2921 dump_varargs_unicode_str( ", name=", cur_size
);
2924 static void dump_get_window_property_reply( const struct get_window_property_reply
*req
)
2926 dump_uint64( " data=", &req
->data
);
2929 static void dump_get_window_properties_request( const struct get_window_properties_request
*req
)
2931 fprintf( stderr
, " window=%08x", req
->window
);
2934 static void dump_get_window_properties_reply( const struct get_window_properties_reply
*req
)
2936 fprintf( stderr
, " total=%d", req
->total
);
2937 dump_varargs_properties( ", props=", cur_size
);
2940 static void dump_create_winstation_request( const struct create_winstation_request
*req
)
2942 fprintf( stderr
, " flags=%08x", req
->flags
);
2943 fprintf( stderr
, ", access=%08x", req
->access
);
2944 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
2945 dump_varargs_unicode_str( ", name=", cur_size
);
2948 static void dump_create_winstation_reply( const struct create_winstation_reply
*req
)
2950 fprintf( stderr
, " handle=%04x", req
->handle
);
2953 static void dump_open_winstation_request( const struct open_winstation_request
*req
)
2955 fprintf( stderr
, " access=%08x", req
->access
);
2956 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
2957 dump_varargs_unicode_str( ", name=", cur_size
);
2960 static void dump_open_winstation_reply( const struct open_winstation_reply
*req
)
2962 fprintf( stderr
, " handle=%04x", req
->handle
);
2965 static void dump_close_winstation_request( const struct close_winstation_request
*req
)
2967 fprintf( stderr
, " handle=%04x", req
->handle
);
2970 static void dump_get_process_winstation_request( const struct get_process_winstation_request
*req
)
2974 static void dump_get_process_winstation_reply( const struct get_process_winstation_reply
*req
)
2976 fprintf( stderr
, " handle=%04x", req
->handle
);
2979 static void dump_set_process_winstation_request( const struct set_process_winstation_request
*req
)
2981 fprintf( stderr
, " handle=%04x", req
->handle
);
2984 static void dump_enum_winstation_request( const struct enum_winstation_request
*req
)
2986 fprintf( stderr
, " index=%08x", req
->index
);
2989 static void dump_enum_winstation_reply( const struct enum_winstation_reply
*req
)
2991 fprintf( stderr
, " next=%08x", req
->next
);
2992 dump_varargs_unicode_str( ", name=", cur_size
);
2995 static void dump_create_desktop_request( const struct create_desktop_request
*req
)
2997 fprintf( stderr
, " flags=%08x", req
->flags
);
2998 fprintf( stderr
, ", access=%08x", req
->access
);
2999 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3000 dump_varargs_unicode_str( ", name=", cur_size
);
3003 static void dump_create_desktop_reply( const struct create_desktop_reply
*req
)
3005 fprintf( stderr
, " handle=%04x", req
->handle
);
3008 static void dump_open_desktop_request( const struct open_desktop_request
*req
)
3010 fprintf( stderr
, " winsta=%04x", req
->winsta
);
3011 fprintf( stderr
, ", flags=%08x", req
->flags
);
3012 fprintf( stderr
, ", access=%08x", req
->access
);
3013 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3014 dump_varargs_unicode_str( ", name=", cur_size
);
3017 static void dump_open_desktop_reply( const struct open_desktop_reply
*req
)
3019 fprintf( stderr
, " handle=%04x", req
->handle
);
3022 static void dump_close_desktop_request( const struct close_desktop_request
*req
)
3024 fprintf( stderr
, " handle=%04x", req
->handle
);
3027 static void dump_get_thread_desktop_request( const struct get_thread_desktop_request
*req
)
3029 fprintf( stderr
, " tid=%04x", req
->tid
);
3032 static void dump_get_thread_desktop_reply( const struct get_thread_desktop_reply
*req
)
3034 fprintf( stderr
, " handle=%04x", req
->handle
);
3037 static void dump_set_thread_desktop_request( const struct set_thread_desktop_request
*req
)
3039 fprintf( stderr
, " handle=%04x", req
->handle
);
3042 static void dump_enum_desktop_request( const struct enum_desktop_request
*req
)
3044 fprintf( stderr
, " winstation=%04x", req
->winstation
);
3045 fprintf( stderr
, ", index=%08x", req
->index
);
3048 static void dump_enum_desktop_reply( const struct enum_desktop_reply
*req
)
3050 fprintf( stderr
, " next=%08x", req
->next
);
3051 dump_varargs_unicode_str( ", name=", cur_size
);
3054 static void dump_set_user_object_info_request( const struct set_user_object_info_request
*req
)
3056 fprintf( stderr
, " handle=%04x", req
->handle
);
3057 fprintf( stderr
, ", flags=%08x", req
->flags
);
3058 fprintf( stderr
, ", obj_flags=%08x", req
->obj_flags
);
3061 static void dump_set_user_object_info_reply( const struct set_user_object_info_reply
*req
)
3063 fprintf( stderr
, " is_desktop=%d", req
->is_desktop
);
3064 fprintf( stderr
, ", old_obj_flags=%08x", req
->old_obj_flags
);
3065 dump_varargs_unicode_str( ", name=", cur_size
);
3068 static void dump_attach_thread_input_request( const struct attach_thread_input_request
*req
)
3070 fprintf( stderr
, " tid_from=%04x", req
->tid_from
);
3071 fprintf( stderr
, ", tid_to=%04x", req
->tid_to
);
3072 fprintf( stderr
, ", attach=%d", req
->attach
);
3075 static void dump_get_thread_input_request( const struct get_thread_input_request
*req
)
3077 fprintf( stderr
, " tid=%04x", req
->tid
);
3080 static void dump_get_thread_input_reply( const struct get_thread_input_reply
*req
)
3082 fprintf( stderr
, " focus=%08x", req
->focus
);
3083 fprintf( stderr
, ", capture=%08x", req
->capture
);
3084 fprintf( stderr
, ", active=%08x", req
->active
);
3085 fprintf( stderr
, ", foreground=%08x", req
->foreground
);
3086 fprintf( stderr
, ", menu_owner=%08x", req
->menu_owner
);
3087 fprintf( stderr
, ", move_size=%08x", req
->move_size
);
3088 fprintf( stderr
, ", caret=%08x", req
->caret
);
3089 fprintf( stderr
, ", cursor=%08x", req
->cursor
);
3090 fprintf( stderr
, ", show_count=%d", req
->show_count
);
3091 dump_rectangle( ", rect=", &req
->rect
);
3094 static void dump_get_last_input_time_request( const struct get_last_input_time_request
*req
)
3098 static void dump_get_last_input_time_reply( const struct get_last_input_time_reply
*req
)
3100 fprintf( stderr
, " time=%08x", req
->time
);
3103 static void dump_get_key_state_request( const struct get_key_state_request
*req
)
3105 fprintf( stderr
, " tid=%04x", req
->tid
);
3106 fprintf( stderr
, ", key=%d", req
->key
);
3109 static void dump_get_key_state_reply( const struct get_key_state_reply
*req
)
3111 fprintf( stderr
, " state=%02x", req
->state
);
3112 dump_varargs_bytes( ", keystate=", cur_size
);
3115 static void dump_set_key_state_request( const struct set_key_state_request
*req
)
3117 fprintf( stderr
, " tid=%04x", req
->tid
);
3118 dump_varargs_bytes( ", keystate=", cur_size
);
3121 static void dump_set_foreground_window_request( const struct set_foreground_window_request
*req
)
3123 fprintf( stderr
, " handle=%08x", req
->handle
);
3126 static void dump_set_foreground_window_reply( const struct set_foreground_window_reply
*req
)
3128 fprintf( stderr
, " previous=%08x", req
->previous
);
3129 fprintf( stderr
, ", send_msg_old=%d", req
->send_msg_old
);
3130 fprintf( stderr
, ", send_msg_new=%d", req
->send_msg_new
);
3133 static void dump_set_focus_window_request( const struct set_focus_window_request
*req
)
3135 fprintf( stderr
, " handle=%08x", req
->handle
);
3138 static void dump_set_focus_window_reply( const struct set_focus_window_reply
*req
)
3140 fprintf( stderr
, " previous=%08x", req
->previous
);
3143 static void dump_set_active_window_request( const struct set_active_window_request
*req
)
3145 fprintf( stderr
, " handle=%08x", req
->handle
);
3148 static void dump_set_active_window_reply( const struct set_active_window_reply
*req
)
3150 fprintf( stderr
, " previous=%08x", req
->previous
);
3153 static void dump_set_capture_window_request( const struct set_capture_window_request
*req
)
3155 fprintf( stderr
, " handle=%08x", req
->handle
);
3156 fprintf( stderr
, ", flags=%08x", req
->flags
);
3159 static void dump_set_capture_window_reply( const struct set_capture_window_reply
*req
)
3161 fprintf( stderr
, " previous=%08x", req
->previous
);
3162 fprintf( stderr
, ", full_handle=%08x", req
->full_handle
);
3165 static void dump_set_caret_window_request( const struct set_caret_window_request
*req
)
3167 fprintf( stderr
, " handle=%08x", req
->handle
);
3168 fprintf( stderr
, ", width=%d", req
->width
);
3169 fprintf( stderr
, ", height=%d", req
->height
);
3172 static void dump_set_caret_window_reply( const struct set_caret_window_reply
*req
)
3174 fprintf( stderr
, " previous=%08x", req
->previous
);
3175 dump_rectangle( ", old_rect=", &req
->old_rect
);
3176 fprintf( stderr
, ", old_hide=%d", req
->old_hide
);
3177 fprintf( stderr
, ", old_state=%d", req
->old_state
);
3180 static void dump_set_caret_info_request( const struct set_caret_info_request
*req
)
3182 fprintf( stderr
, " flags=%08x", req
->flags
);
3183 fprintf( stderr
, ", handle=%08x", req
->handle
);
3184 fprintf( stderr
, ", x=%d", req
->x
);
3185 fprintf( stderr
, ", y=%d", req
->y
);
3186 fprintf( stderr
, ", hide=%d", req
->hide
);
3187 fprintf( stderr
, ", state=%d", req
->state
);
3190 static void dump_set_caret_info_reply( const struct set_caret_info_reply
*req
)
3192 fprintf( stderr
, " full_handle=%08x", req
->full_handle
);
3193 dump_rectangle( ", old_rect=", &req
->old_rect
);
3194 fprintf( stderr
, ", old_hide=%d", req
->old_hide
);
3195 fprintf( stderr
, ", old_state=%d", req
->old_state
);
3198 static void dump_set_hook_request( const struct set_hook_request
*req
)
3200 fprintf( stderr
, " id=%d", req
->id
);
3201 fprintf( stderr
, ", pid=%04x", req
->pid
);
3202 fprintf( stderr
, ", tid=%04x", req
->tid
);
3203 fprintf( stderr
, ", event_min=%d", req
->event_min
);
3204 fprintf( stderr
, ", event_max=%d", req
->event_max
);
3205 dump_uint64( ", proc=", &req
->proc
);
3206 fprintf( stderr
, ", flags=%d", req
->flags
);
3207 fprintf( stderr
, ", unicode=%d", req
->unicode
);
3208 dump_varargs_unicode_str( ", module=", cur_size
);
3211 static void dump_set_hook_reply( const struct set_hook_reply
*req
)
3213 fprintf( stderr
, " handle=%08x", req
->handle
);
3214 fprintf( stderr
, ", active_hooks=%08x", req
->active_hooks
);
3217 static void dump_remove_hook_request( const struct remove_hook_request
*req
)
3219 fprintf( stderr
, " handle=%08x", req
->handle
);
3220 dump_uint64( ", proc=", &req
->proc
);
3221 fprintf( stderr
, ", id=%d", req
->id
);
3224 static void dump_remove_hook_reply( const struct remove_hook_reply
*req
)
3226 fprintf( stderr
, " active_hooks=%08x", req
->active_hooks
);
3229 static void dump_start_hook_chain_request( const struct start_hook_chain_request
*req
)
3231 fprintf( stderr
, " id=%d", req
->id
);
3232 fprintf( stderr
, ", event=%d", req
->event
);
3233 fprintf( stderr
, ", window=%08x", req
->window
);
3234 fprintf( stderr
, ", object_id=%d", req
->object_id
);
3235 fprintf( stderr
, ", child_id=%d", req
->child_id
);
3238 static void dump_start_hook_chain_reply( const struct start_hook_chain_reply
*req
)
3240 fprintf( stderr
, " handle=%08x", req
->handle
);
3241 fprintf( stderr
, ", pid=%04x", req
->pid
);
3242 fprintf( stderr
, ", tid=%04x", req
->tid
);
3243 fprintf( stderr
, ", unicode=%d", req
->unicode
);
3244 dump_uint64( ", proc=", &req
->proc
);
3245 fprintf( stderr
, ", active_hooks=%08x", req
->active_hooks
);
3246 dump_varargs_unicode_str( ", module=", cur_size
);
3249 static void dump_finish_hook_chain_request( const struct finish_hook_chain_request
*req
)
3251 fprintf( stderr
, " id=%d", req
->id
);
3254 static void dump_get_hook_info_request( const struct get_hook_info_request
*req
)
3256 fprintf( stderr
, " handle=%08x", req
->handle
);
3257 fprintf( stderr
, ", get_next=%d", req
->get_next
);
3258 fprintf( stderr
, ", event=%d", req
->event
);
3259 fprintf( stderr
, ", window=%08x", req
->window
);
3260 fprintf( stderr
, ", object_id=%d", req
->object_id
);
3261 fprintf( stderr
, ", child_id=%d", req
->child_id
);
3264 static void dump_get_hook_info_reply( const struct get_hook_info_reply
*req
)
3266 fprintf( stderr
, " handle=%08x", req
->handle
);
3267 fprintf( stderr
, ", id=%d", req
->id
);
3268 fprintf( stderr
, ", pid=%04x", req
->pid
);
3269 fprintf( stderr
, ", tid=%04x", req
->tid
);
3270 dump_uint64( ", proc=", &req
->proc
);
3271 fprintf( stderr
, ", unicode=%d", req
->unicode
);
3272 dump_varargs_unicode_str( ", module=", cur_size
);
3275 static void dump_create_class_request( const struct create_class_request
*req
)
3277 fprintf( stderr
, " local=%d", req
->local
);
3278 fprintf( stderr
, ", atom=%04x", req
->atom
);
3279 fprintf( stderr
, ", style=%08x", req
->style
);
3280 dump_uint64( ", instance=", &req
->instance
);
3281 fprintf( stderr
, ", extra=%d", req
->extra
);
3282 fprintf( stderr
, ", win_extra=%d", req
->win_extra
);
3283 dump_uint64( ", client_ptr=", &req
->client_ptr
);
3284 dump_varargs_unicode_str( ", name=", cur_size
);
3287 static void dump_create_class_reply( const struct create_class_reply
*req
)
3289 fprintf( stderr
, " atom=%04x", req
->atom
);
3292 static void dump_destroy_class_request( const struct destroy_class_request
*req
)
3294 fprintf( stderr
, " atom=%04x", req
->atom
);
3295 dump_uint64( ", instance=", &req
->instance
);
3296 dump_varargs_unicode_str( ", name=", cur_size
);
3299 static void dump_destroy_class_reply( const struct destroy_class_reply
*req
)
3301 dump_uint64( " client_ptr=", &req
->client_ptr
);
3304 static void dump_set_class_info_request( const struct set_class_info_request
*req
)
3306 fprintf( stderr
, " window=%08x", req
->window
);
3307 fprintf( stderr
, ", flags=%08x", req
->flags
);
3308 fprintf( stderr
, ", atom=%04x", req
->atom
);
3309 fprintf( stderr
, ", style=%08x", req
->style
);
3310 fprintf( stderr
, ", win_extra=%d", req
->win_extra
);
3311 dump_uint64( ", instance=", &req
->instance
);
3312 fprintf( stderr
, ", extra_offset=%d", req
->extra_offset
);
3313 fprintf( stderr
, ", extra_size=%u", req
->extra_size
);
3314 dump_uint64( ", extra_value=", &req
->extra_value
);
3317 static void dump_set_class_info_reply( const struct set_class_info_reply
*req
)
3319 fprintf( stderr
, " old_atom=%04x", req
->old_atom
);
3320 fprintf( stderr
, ", old_style=%08x", req
->old_style
);
3321 fprintf( stderr
, ", old_extra=%d", req
->old_extra
);
3322 fprintf( stderr
, ", old_win_extra=%d", req
->old_win_extra
);
3323 dump_uint64( ", old_instance=", &req
->old_instance
);
3324 dump_uint64( ", old_extra_value=", &req
->old_extra_value
);
3327 static void dump_set_clipboard_info_request( const struct set_clipboard_info_request
*req
)
3329 fprintf( stderr
, " flags=%08x", req
->flags
);
3330 fprintf( stderr
, ", clipboard=%08x", req
->clipboard
);
3331 fprintf( stderr
, ", owner=%08x", req
->owner
);
3332 fprintf( stderr
, ", viewer=%08x", req
->viewer
);
3333 fprintf( stderr
, ", seqno=%08x", req
->seqno
);
3336 static void dump_set_clipboard_info_reply( const struct set_clipboard_info_reply
*req
)
3338 fprintf( stderr
, " flags=%08x", req
->flags
);
3339 fprintf( stderr
, ", old_clipboard=%08x", req
->old_clipboard
);
3340 fprintf( stderr
, ", old_owner=%08x", req
->old_owner
);
3341 fprintf( stderr
, ", old_viewer=%08x", req
->old_viewer
);
3342 fprintf( stderr
, ", seqno=%08x", req
->seqno
);
3345 static void dump_open_token_request( const struct open_token_request
*req
)
3347 fprintf( stderr
, " handle=%04x", req
->handle
);
3348 fprintf( stderr
, ", access=%08x", req
->access
);
3349 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3350 fprintf( stderr
, ", flags=%08x", req
->flags
);
3353 static void dump_open_token_reply( const struct open_token_reply
*req
)
3355 fprintf( stderr
, " token=%04x", req
->token
);
3358 static void dump_set_global_windows_request( const struct set_global_windows_request
*req
)
3360 fprintf( stderr
, " flags=%08x", req
->flags
);
3361 fprintf( stderr
, ", shell_window=%08x", req
->shell_window
);
3362 fprintf( stderr
, ", shell_listview=%08x", req
->shell_listview
);
3363 fprintf( stderr
, ", progman_window=%08x", req
->progman_window
);
3364 fprintf( stderr
, ", taskman_window=%08x", req
->taskman_window
);
3367 static void dump_set_global_windows_reply( const struct set_global_windows_reply
*req
)
3369 fprintf( stderr
, " old_shell_window=%08x", req
->old_shell_window
);
3370 fprintf( stderr
, ", old_shell_listview=%08x", req
->old_shell_listview
);
3371 fprintf( stderr
, ", old_progman_window=%08x", req
->old_progman_window
);
3372 fprintf( stderr
, ", old_taskman_window=%08x", req
->old_taskman_window
);
3375 static void dump_adjust_token_privileges_request( const struct adjust_token_privileges_request
*req
)
3377 fprintf( stderr
, " handle=%04x", req
->handle
);
3378 fprintf( stderr
, ", disable_all=%d", req
->disable_all
);
3379 fprintf( stderr
, ", get_modified_state=%d", req
->get_modified_state
);
3380 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size
);
3383 static void dump_adjust_token_privileges_reply( const struct adjust_token_privileges_reply
*req
)
3385 fprintf( stderr
, " len=%08x", req
->len
);
3386 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size
);
3389 static void dump_get_token_privileges_request( const struct get_token_privileges_request
*req
)
3391 fprintf( stderr
, " handle=%04x", req
->handle
);
3394 static void dump_get_token_privileges_reply( const struct get_token_privileges_reply
*req
)
3396 fprintf( stderr
, " len=%08x", req
->len
);
3397 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size
);
3400 static void dump_check_token_privileges_request( const struct check_token_privileges_request
*req
)
3402 fprintf( stderr
, " handle=%04x", req
->handle
);
3403 fprintf( stderr
, ", all_required=%d", req
->all_required
);
3404 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size
);
3407 static void dump_check_token_privileges_reply( const struct check_token_privileges_reply
*req
)
3409 fprintf( stderr
, " has_privileges=%d", req
->has_privileges
);
3410 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size
);
3413 static void dump_duplicate_token_request( const struct duplicate_token_request
*req
)
3415 fprintf( stderr
, " handle=%04x", req
->handle
);
3416 fprintf( stderr
, ", access=%08x", req
->access
);
3417 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3418 fprintf( stderr
, ", primary=%d", req
->primary
);
3419 fprintf( stderr
, ", impersonation_level=%d", req
->impersonation_level
);
3422 static void dump_duplicate_token_reply( const struct duplicate_token_reply
*req
)
3424 fprintf( stderr
, " new_handle=%04x", req
->new_handle
);
3427 static void dump_access_check_request( const struct access_check_request
*req
)
3429 fprintf( stderr
, " handle=%04x", req
->handle
);
3430 fprintf( stderr
, ", desired_access=%08x", req
->desired_access
);
3431 fprintf( stderr
, ", mapping_read=%08x", req
->mapping_read
);
3432 fprintf( stderr
, ", mapping_write=%08x", req
->mapping_write
);
3433 fprintf( stderr
, ", mapping_execute=%08x", req
->mapping_execute
);
3434 fprintf( stderr
, ", mapping_all=%08x", req
->mapping_all
);
3435 dump_varargs_security_descriptor( ", sd=", cur_size
);
3438 static void dump_access_check_reply( const struct access_check_reply
*req
)
3440 fprintf( stderr
, " access_granted=%08x", req
->access_granted
);
3441 fprintf( stderr
, ", access_status=%08x", req
->access_status
);
3442 fprintf( stderr
, ", privileges_len=%08x", req
->privileges_len
);
3443 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size
);
3446 static void dump_get_token_sid_request( const struct get_token_sid_request
*req
)
3448 fprintf( stderr
, " handle=%04x", req
->handle
);
3449 fprintf( stderr
, ", which_sid=%08x", req
->which_sid
);
3452 static void dump_get_token_sid_reply( const struct get_token_sid_reply
*req
)
3454 fprintf( stderr
, " sid_len=%u", req
->sid_len
);
3455 dump_varargs_SID( ", sid=", cur_size
);
3458 static void dump_get_token_groups_request( const struct get_token_groups_request
*req
)
3460 fprintf( stderr
, " handle=%04x", req
->handle
);
3463 static void dump_get_token_groups_reply( const struct get_token_groups_reply
*req
)
3465 fprintf( stderr
, " user_len=%u", req
->user_len
);
3466 dump_varargs_token_groups( ", user=", cur_size
);
3469 static void dump_get_token_default_dacl_request( const struct get_token_default_dacl_request
*req
)
3471 fprintf( stderr
, " handle=%04x", req
->handle
);
3474 static void dump_get_token_default_dacl_reply( const struct get_token_default_dacl_reply
*req
)
3476 fprintf( stderr
, " acl_len=%u", req
->acl_len
);
3477 dump_varargs_ACL( ", acl=", cur_size
);
3480 static void dump_set_token_default_dacl_request( const struct set_token_default_dacl_request
*req
)
3482 fprintf( stderr
, " handle=%04x", req
->handle
);
3483 dump_varargs_ACL( ", acl=", cur_size
);
3486 static void dump_set_security_object_request( const struct set_security_object_request
*req
)
3488 fprintf( stderr
, " handle=%04x", req
->handle
);
3489 fprintf( stderr
, ", security_info=%08x", req
->security_info
);
3490 dump_varargs_security_descriptor( ", sd=", cur_size
);
3493 static void dump_get_security_object_request( const struct get_security_object_request
*req
)
3495 fprintf( stderr
, " handle=%04x", req
->handle
);
3496 fprintf( stderr
, ", security_info=%08x", req
->security_info
);
3499 static void dump_get_security_object_reply( const struct get_security_object_reply
*req
)
3501 fprintf( stderr
, " sd_len=%08x", req
->sd_len
);
3502 dump_varargs_security_descriptor( ", sd=", cur_size
);
3505 static void dump_create_mailslot_request( const struct create_mailslot_request
*req
)
3507 fprintf( stderr
, " access=%08x", req
->access
);
3508 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3509 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
3510 dump_timeout( ", read_timeout=", &req
->read_timeout
);
3511 fprintf( stderr
, ", max_msgsize=%08x", req
->max_msgsize
);
3512 dump_varargs_unicode_str( ", name=", cur_size
);
3515 static void dump_create_mailslot_reply( const struct create_mailslot_reply
*req
)
3517 fprintf( stderr
, " handle=%04x", req
->handle
);
3520 static void dump_set_mailslot_info_request( const struct set_mailslot_info_request
*req
)
3522 fprintf( stderr
, " handle=%04x", req
->handle
);
3523 dump_timeout( ", read_timeout=", &req
->read_timeout
);
3524 fprintf( stderr
, ", flags=%08x", req
->flags
);
3527 static void dump_set_mailslot_info_reply( const struct set_mailslot_info_reply
*req
)
3529 dump_timeout( " read_timeout=", &req
->read_timeout
);
3530 fprintf( stderr
, ", max_msgsize=%08x", req
->max_msgsize
);
3533 static void dump_create_directory_request( const struct create_directory_request
*req
)
3535 fprintf( stderr
, " access=%08x", req
->access
);
3536 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3537 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
3538 dump_varargs_unicode_str( ", directory_name=", cur_size
);
3541 static void dump_create_directory_reply( const struct create_directory_reply
*req
)
3543 fprintf( stderr
, " handle=%04x", req
->handle
);
3546 static void dump_open_directory_request( const struct open_directory_request
*req
)
3548 fprintf( stderr
, " access=%08x", req
->access
);
3549 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3550 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
3551 dump_varargs_unicode_str( ", directory_name=", cur_size
);
3554 static void dump_open_directory_reply( const struct open_directory_reply
*req
)
3556 fprintf( stderr
, " handle=%04x", req
->handle
);
3559 static void dump_get_directory_entry_request( const struct get_directory_entry_request
*req
)
3561 fprintf( stderr
, " handle=%04x", req
->handle
);
3562 fprintf( stderr
, ", index=%08x", req
->index
);
3565 static void dump_get_directory_entry_reply( const struct get_directory_entry_reply
*req
)
3567 fprintf( stderr
, " name_len=%u", req
->name_len
);
3568 dump_varargs_unicode_str( ", name=", min(cur_size
,req
->name_len
) );
3569 dump_varargs_unicode_str( ", type=", cur_size
);
3572 static void dump_create_symlink_request( const struct create_symlink_request
*req
)
3574 fprintf( stderr
, " access=%08x", req
->access
);
3575 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3576 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
3577 fprintf( stderr
, ", name_len=%u", req
->name_len
);
3578 dump_varargs_unicode_str( ", name=", min(cur_size
,req
->name_len
) );
3579 dump_varargs_unicode_str( ", target_name=", cur_size
);
3582 static void dump_create_symlink_reply( const struct create_symlink_reply
*req
)
3584 fprintf( stderr
, " handle=%04x", req
->handle
);
3587 static void dump_open_symlink_request( const struct open_symlink_request
*req
)
3589 fprintf( stderr
, " access=%08x", req
->access
);
3590 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3591 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
3592 dump_varargs_unicode_str( ", name=", cur_size
);
3595 static void dump_open_symlink_reply( const struct open_symlink_reply
*req
)
3597 fprintf( stderr
, " handle=%04x", req
->handle
);
3600 static void dump_query_symlink_request( const struct query_symlink_request
*req
)
3602 fprintf( stderr
, " handle=%04x", req
->handle
);
3605 static void dump_query_symlink_reply( const struct query_symlink_reply
*req
)
3607 fprintf( stderr
, " total=%u", req
->total
);
3608 dump_varargs_unicode_str( ", target_name=", cur_size
);
3611 static void dump_get_object_info_request( const struct get_object_info_request
*req
)
3613 fprintf( stderr
, " handle=%04x", req
->handle
);
3616 static void dump_get_object_info_reply( const struct get_object_info_reply
*req
)
3618 fprintf( stderr
, " access=%08x", req
->access
);
3619 fprintf( stderr
, ", ref_count=%08x", req
->ref_count
);
3620 fprintf( stderr
, ", total=%u", req
->total
);
3621 dump_varargs_unicode_str( ", name=", cur_size
);
3624 static void dump_unlink_object_request( const struct unlink_object_request
*req
)
3626 fprintf( stderr
, " handle=%04x", req
->handle
);
3629 static void dump_get_token_impersonation_level_request( const struct get_token_impersonation_level_request
*req
)
3631 fprintf( stderr
, " handle=%04x", req
->handle
);
3634 static void dump_get_token_impersonation_level_reply( const struct get_token_impersonation_level_reply
*req
)
3636 fprintf( stderr
, " impersonation_level=%d", req
->impersonation_level
);
3639 static void dump_allocate_locally_unique_id_request( const struct allocate_locally_unique_id_request
*req
)
3643 static void dump_allocate_locally_unique_id_reply( const struct allocate_locally_unique_id_reply
*req
)
3645 dump_luid( " luid=", &req
->luid
);
3648 static void dump_create_device_manager_request( const struct create_device_manager_request
*req
)
3650 fprintf( stderr
, " access=%08x", req
->access
);
3651 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3654 static void dump_create_device_manager_reply( const struct create_device_manager_reply
*req
)
3656 fprintf( stderr
, " handle=%04x", req
->handle
);
3659 static void dump_create_device_request( const struct create_device_request
*req
)
3661 fprintf( stderr
, " access=%08x", req
->access
);
3662 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3663 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
3664 dump_uint64( ", user_ptr=", &req
->user_ptr
);
3665 fprintf( stderr
, ", manager=%04x", req
->manager
);
3666 dump_varargs_unicode_str( ", name=", cur_size
);
3669 static void dump_create_device_reply( const struct create_device_reply
*req
)
3671 fprintf( stderr
, " handle=%04x", req
->handle
);
3674 static void dump_delete_device_request( const struct delete_device_request
*req
)
3676 fprintf( stderr
, " handle=%04x", req
->handle
);
3679 static void dump_get_next_device_request_request( const struct get_next_device_request_request
*req
)
3681 fprintf( stderr
, " manager=%04x", req
->manager
);
3682 fprintf( stderr
, ", prev=%04x", req
->prev
);
3683 fprintf( stderr
, ", status=%08x", req
->status
);
3684 dump_varargs_bytes( ", prev_data=", cur_size
);
3687 static void dump_get_next_device_request_reply( const struct get_next_device_request_reply
*req
)
3689 fprintf( stderr
, " next=%04x", req
->next
);
3690 dump_ioctl_code( ", code=", &req
->code
);
3691 dump_uint64( ", user_ptr=", &req
->user_ptr
);
3692 fprintf( stderr
, ", in_size=%u", req
->in_size
);
3693 fprintf( stderr
, ", out_size=%u", req
->out_size
);
3694 dump_varargs_bytes( ", next_data=", cur_size
);
3697 static void dump_make_process_system_request( const struct make_process_system_request
*req
)
3701 static void dump_make_process_system_reply( const struct make_process_system_reply
*req
)
3703 fprintf( stderr
, " event=%04x", req
->event
);
3706 static void dump_get_token_statistics_request( const struct get_token_statistics_request
*req
)
3708 fprintf( stderr
, " handle=%04x", req
->handle
);
3711 static void dump_get_token_statistics_reply( const struct get_token_statistics_reply
*req
)
3713 dump_luid( " token_id=", &req
->token_id
);
3714 dump_luid( ", modified_id=", &req
->modified_id
);
3715 fprintf( stderr
, ", primary=%d", req
->primary
);
3716 fprintf( stderr
, ", impersonation_level=%d", req
->impersonation_level
);
3717 fprintf( stderr
, ", group_count=%d", req
->group_count
);
3718 fprintf( stderr
, ", privilege_count=%d", req
->privilege_count
);
3721 static void dump_create_completion_request( const struct create_completion_request
*req
)
3723 fprintf( stderr
, " access=%08x", req
->access
);
3724 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3725 fprintf( stderr
, ", concurrent=%08x", req
->concurrent
);
3726 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
3727 dump_varargs_string( ", filename=", cur_size
);
3730 static void dump_create_completion_reply( const struct create_completion_reply
*req
)
3732 fprintf( stderr
, " handle=%04x", req
->handle
);
3735 static void dump_open_completion_request( const struct open_completion_request
*req
)
3737 fprintf( stderr
, " access=%08x", req
->access
);
3738 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3739 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
3740 dump_varargs_string( ", filename=", cur_size
);
3743 static void dump_open_completion_reply( const struct open_completion_reply
*req
)
3745 fprintf( stderr
, " handle=%04x", req
->handle
);
3748 static void dump_add_completion_request( const struct add_completion_request
*req
)
3750 fprintf( stderr
, " handle=%04x", req
->handle
);
3751 dump_uint64( ", ckey=", &req
->ckey
);
3752 dump_uint64( ", cvalue=", &req
->cvalue
);
3753 fprintf( stderr
, ", information=%08x", req
->information
);
3754 fprintf( stderr
, ", status=%08x", req
->status
);
3757 static void dump_remove_completion_request( const struct remove_completion_request
*req
)
3759 fprintf( stderr
, " handle=%04x", req
->handle
);
3762 static void dump_remove_completion_reply( const struct remove_completion_reply
*req
)
3764 dump_uint64( " ckey=", &req
->ckey
);
3765 dump_uint64( ", cvalue=", &req
->cvalue
);
3766 fprintf( stderr
, ", information=%08x", req
->information
);
3767 fprintf( stderr
, ", status=%08x", req
->status
);
3770 static void dump_query_completion_request( const struct query_completion_request
*req
)
3772 fprintf( stderr
, " handle=%04x", req
->handle
);
3775 static void dump_query_completion_reply( const struct query_completion_reply
*req
)
3777 fprintf( stderr
, " depth=%08x", req
->depth
);
3780 static void dump_set_completion_info_request( const struct set_completion_info_request
*req
)
3782 fprintf( stderr
, " handle=%04x", req
->handle
);
3783 dump_uint64( ", ckey=", &req
->ckey
);
3784 fprintf( stderr
, ", chandle=%04x", req
->chandle
);
3787 static void dump_add_fd_completion_request( const struct add_fd_completion_request
*req
)
3789 fprintf( stderr
, " handle=%04x", req
->handle
);
3790 dump_uint64( ", cvalue=", &req
->cvalue
);
3791 fprintf( stderr
, ", status=%08x", req
->status
);
3792 fprintf( stderr
, ", information=%08x", req
->information
);
3795 static void dump_get_window_layered_info_request( const struct get_window_layered_info_request
*req
)
3797 fprintf( stderr
, " handle=%08x", req
->handle
);
3800 static void dump_get_window_layered_info_reply( const struct get_window_layered_info_reply
*req
)
3802 fprintf( stderr
, " color_key=%08x", req
->color_key
);
3803 fprintf( stderr
, ", alpha=%08x", req
->alpha
);
3804 fprintf( stderr
, ", flags=%08x", req
->flags
);
3807 static void dump_set_window_layered_info_request( const struct set_window_layered_info_request
*req
)
3809 fprintf( stderr
, " handle=%08x", req
->handle
);
3810 fprintf( stderr
, ", color_key=%08x", req
->color_key
);
3811 fprintf( stderr
, ", alpha=%08x", req
->alpha
);
3812 fprintf( stderr
, ", flags=%08x", req
->flags
);
3815 static void dump_alloc_user_handle_request( const struct alloc_user_handle_request
*req
)
3819 static void dump_alloc_user_handle_reply( const struct alloc_user_handle_reply
*req
)
3821 fprintf( stderr
, " handle=%08x", req
->handle
);
3824 static void dump_free_user_handle_request( const struct free_user_handle_request
*req
)
3826 fprintf( stderr
, " handle=%08x", req
->handle
);
3829 static void dump_set_cursor_request( const struct set_cursor_request
*req
)
3831 fprintf( stderr
, " flags=%08x", req
->flags
);
3832 fprintf( stderr
, ", handle=%08x", req
->handle
);
3833 fprintf( stderr
, ", show_count=%d", req
->show_count
);
3836 static void dump_set_cursor_reply( const struct set_cursor_reply
*req
)
3838 fprintf( stderr
, " prev_handle=%08x", req
->prev_handle
);
3839 fprintf( stderr
, ", prev_count=%d", req
->prev_count
);
3842 static const dump_func req_dumpers
[REQ_NB_REQUESTS
] = {
3843 (dump_func
)dump_new_process_request
,
3844 (dump_func
)dump_get_new_process_info_request
,
3845 (dump_func
)dump_new_thread_request
,
3846 (dump_func
)dump_get_startup_info_request
,
3847 (dump_func
)dump_init_process_done_request
,
3848 (dump_func
)dump_init_thread_request
,
3849 (dump_func
)dump_terminate_process_request
,
3850 (dump_func
)dump_terminate_thread_request
,
3851 (dump_func
)dump_get_process_info_request
,
3852 (dump_func
)dump_set_process_info_request
,
3853 (dump_func
)dump_get_thread_info_request
,
3854 (dump_func
)dump_set_thread_info_request
,
3855 (dump_func
)dump_get_dll_info_request
,
3856 (dump_func
)dump_suspend_thread_request
,
3857 (dump_func
)dump_resume_thread_request
,
3858 (dump_func
)dump_load_dll_request
,
3859 (dump_func
)dump_unload_dll_request
,
3860 (dump_func
)dump_queue_apc_request
,
3861 (dump_func
)dump_get_apc_result_request
,
3862 (dump_func
)dump_close_handle_request
,
3863 (dump_func
)dump_set_handle_info_request
,
3864 (dump_func
)dump_dup_handle_request
,
3865 (dump_func
)dump_open_process_request
,
3866 (dump_func
)dump_open_thread_request
,
3867 (dump_func
)dump_select_request
,
3868 (dump_func
)dump_create_event_request
,
3869 (dump_func
)dump_event_op_request
,
3870 (dump_func
)dump_open_event_request
,
3871 (dump_func
)dump_create_mutex_request
,
3872 (dump_func
)dump_release_mutex_request
,
3873 (dump_func
)dump_open_mutex_request
,
3874 (dump_func
)dump_create_semaphore_request
,
3875 (dump_func
)dump_release_semaphore_request
,
3876 (dump_func
)dump_open_semaphore_request
,
3877 (dump_func
)dump_create_file_request
,
3878 (dump_func
)dump_open_file_object_request
,
3879 (dump_func
)dump_alloc_file_handle_request
,
3880 (dump_func
)dump_get_handle_unix_name_request
,
3881 (dump_func
)dump_get_handle_fd_request
,
3882 (dump_func
)dump_flush_file_request
,
3883 (dump_func
)dump_lock_file_request
,
3884 (dump_func
)dump_unlock_file_request
,
3885 (dump_func
)dump_create_socket_request
,
3886 (dump_func
)dump_accept_socket_request
,
3887 (dump_func
)dump_accept_into_socket_request
,
3888 (dump_func
)dump_set_socket_event_request
,
3889 (dump_func
)dump_get_socket_event_request
,
3890 (dump_func
)dump_enable_socket_event_request
,
3891 (dump_func
)dump_set_socket_deferred_request
,
3892 (dump_func
)dump_alloc_console_request
,
3893 (dump_func
)dump_free_console_request
,
3894 (dump_func
)dump_get_console_renderer_events_request
,
3895 (dump_func
)dump_open_console_request
,
3896 (dump_func
)dump_get_console_wait_event_request
,
3897 (dump_func
)dump_get_console_mode_request
,
3898 (dump_func
)dump_set_console_mode_request
,
3899 (dump_func
)dump_set_console_input_info_request
,
3900 (dump_func
)dump_get_console_input_info_request
,
3901 (dump_func
)dump_append_console_input_history_request
,
3902 (dump_func
)dump_get_console_input_history_request
,
3903 (dump_func
)dump_create_console_output_request
,
3904 (dump_func
)dump_set_console_output_info_request
,
3905 (dump_func
)dump_get_console_output_info_request
,
3906 (dump_func
)dump_write_console_input_request
,
3907 (dump_func
)dump_read_console_input_request
,
3908 (dump_func
)dump_write_console_output_request
,
3909 (dump_func
)dump_fill_console_output_request
,
3910 (dump_func
)dump_read_console_output_request
,
3911 (dump_func
)dump_move_console_output_request
,
3912 (dump_func
)dump_send_console_signal_request
,
3913 (dump_func
)dump_read_directory_changes_request
,
3914 (dump_func
)dump_read_change_request
,
3915 (dump_func
)dump_create_mapping_request
,
3916 (dump_func
)dump_open_mapping_request
,
3917 (dump_func
)dump_get_mapping_info_request
,
3918 (dump_func
)dump_get_mapping_committed_range_request
,
3919 (dump_func
)dump_add_mapping_committed_range_request
,
3920 (dump_func
)dump_create_snapshot_request
,
3921 (dump_func
)dump_next_process_request
,
3922 (dump_func
)dump_next_thread_request
,
3923 (dump_func
)dump_wait_debug_event_request
,
3924 (dump_func
)dump_queue_exception_event_request
,
3925 (dump_func
)dump_get_exception_status_request
,
3926 (dump_func
)dump_output_debug_string_request
,
3927 (dump_func
)dump_continue_debug_event_request
,
3928 (dump_func
)dump_debug_process_request
,
3929 (dump_func
)dump_debug_break_request
,
3930 (dump_func
)dump_set_debugger_kill_on_exit_request
,
3931 (dump_func
)dump_read_process_memory_request
,
3932 (dump_func
)dump_write_process_memory_request
,
3933 (dump_func
)dump_create_key_request
,
3934 (dump_func
)dump_open_key_request
,
3935 (dump_func
)dump_delete_key_request
,
3936 (dump_func
)dump_flush_key_request
,
3937 (dump_func
)dump_enum_key_request
,
3938 (dump_func
)dump_set_key_value_request
,
3939 (dump_func
)dump_get_key_value_request
,
3940 (dump_func
)dump_enum_key_value_request
,
3941 (dump_func
)dump_delete_key_value_request
,
3942 (dump_func
)dump_load_registry_request
,
3943 (dump_func
)dump_unload_registry_request
,
3944 (dump_func
)dump_save_registry_request
,
3945 (dump_func
)dump_set_registry_notification_request
,
3946 (dump_func
)dump_create_timer_request
,
3947 (dump_func
)dump_open_timer_request
,
3948 (dump_func
)dump_set_timer_request
,
3949 (dump_func
)dump_cancel_timer_request
,
3950 (dump_func
)dump_get_timer_info_request
,
3951 (dump_func
)dump_get_thread_context_request
,
3952 (dump_func
)dump_set_thread_context_request
,
3953 (dump_func
)dump_get_selector_entry_request
,
3954 (dump_func
)dump_add_atom_request
,
3955 (dump_func
)dump_delete_atom_request
,
3956 (dump_func
)dump_find_atom_request
,
3957 (dump_func
)dump_get_atom_information_request
,
3958 (dump_func
)dump_set_atom_information_request
,
3959 (dump_func
)dump_empty_atom_table_request
,
3960 (dump_func
)dump_init_atom_table_request
,
3961 (dump_func
)dump_get_msg_queue_request
,
3962 (dump_func
)dump_set_queue_fd_request
,
3963 (dump_func
)dump_set_queue_mask_request
,
3964 (dump_func
)dump_get_queue_status_request
,
3965 (dump_func
)dump_get_process_idle_event_request
,
3966 (dump_func
)dump_send_message_request
,
3967 (dump_func
)dump_post_quit_message_request
,
3968 (dump_func
)dump_send_hardware_message_request
,
3969 (dump_func
)dump_get_message_request
,
3970 (dump_func
)dump_reply_message_request
,
3971 (dump_func
)dump_accept_hardware_message_request
,
3972 (dump_func
)dump_get_message_reply_request
,
3973 (dump_func
)dump_set_win_timer_request
,
3974 (dump_func
)dump_kill_win_timer_request
,
3975 (dump_func
)dump_is_window_hung_request
,
3976 (dump_func
)dump_get_serial_info_request
,
3977 (dump_func
)dump_set_serial_info_request
,
3978 (dump_func
)dump_register_async_request
,
3979 (dump_func
)dump_cancel_async_request
,
3980 (dump_func
)dump_ioctl_request
,
3981 (dump_func
)dump_get_ioctl_result_request
,
3982 (dump_func
)dump_create_named_pipe_request
,
3983 (dump_func
)dump_get_named_pipe_info_request
,
3984 (dump_func
)dump_create_window_request
,
3985 (dump_func
)dump_destroy_window_request
,
3986 (dump_func
)dump_get_desktop_window_request
,
3987 (dump_func
)dump_set_window_owner_request
,
3988 (dump_func
)dump_get_window_info_request
,
3989 (dump_func
)dump_set_window_info_request
,
3990 (dump_func
)dump_set_parent_request
,
3991 (dump_func
)dump_get_window_parents_request
,
3992 (dump_func
)dump_get_window_children_request
,
3993 (dump_func
)dump_get_window_children_from_point_request
,
3994 (dump_func
)dump_get_window_tree_request
,
3995 (dump_func
)dump_set_window_pos_request
,
3996 (dump_func
)dump_get_window_rectangles_request
,
3997 (dump_func
)dump_get_window_text_request
,
3998 (dump_func
)dump_set_window_text_request
,
3999 (dump_func
)dump_get_windows_offset_request
,
4000 (dump_func
)dump_get_visible_region_request
,
4001 (dump_func
)dump_get_window_region_request
,
4002 (dump_func
)dump_set_window_region_request
,
4003 (dump_func
)dump_get_update_region_request
,
4004 (dump_func
)dump_update_window_zorder_request
,
4005 (dump_func
)dump_redraw_window_request
,
4006 (dump_func
)dump_set_window_property_request
,
4007 (dump_func
)dump_remove_window_property_request
,
4008 (dump_func
)dump_get_window_property_request
,
4009 (dump_func
)dump_get_window_properties_request
,
4010 (dump_func
)dump_create_winstation_request
,
4011 (dump_func
)dump_open_winstation_request
,
4012 (dump_func
)dump_close_winstation_request
,
4013 (dump_func
)dump_get_process_winstation_request
,
4014 (dump_func
)dump_set_process_winstation_request
,
4015 (dump_func
)dump_enum_winstation_request
,
4016 (dump_func
)dump_create_desktop_request
,
4017 (dump_func
)dump_open_desktop_request
,
4018 (dump_func
)dump_close_desktop_request
,
4019 (dump_func
)dump_get_thread_desktop_request
,
4020 (dump_func
)dump_set_thread_desktop_request
,
4021 (dump_func
)dump_enum_desktop_request
,
4022 (dump_func
)dump_set_user_object_info_request
,
4023 (dump_func
)dump_attach_thread_input_request
,
4024 (dump_func
)dump_get_thread_input_request
,
4025 (dump_func
)dump_get_last_input_time_request
,
4026 (dump_func
)dump_get_key_state_request
,
4027 (dump_func
)dump_set_key_state_request
,
4028 (dump_func
)dump_set_foreground_window_request
,
4029 (dump_func
)dump_set_focus_window_request
,
4030 (dump_func
)dump_set_active_window_request
,
4031 (dump_func
)dump_set_capture_window_request
,
4032 (dump_func
)dump_set_caret_window_request
,
4033 (dump_func
)dump_set_caret_info_request
,
4034 (dump_func
)dump_set_hook_request
,
4035 (dump_func
)dump_remove_hook_request
,
4036 (dump_func
)dump_start_hook_chain_request
,
4037 (dump_func
)dump_finish_hook_chain_request
,
4038 (dump_func
)dump_get_hook_info_request
,
4039 (dump_func
)dump_create_class_request
,
4040 (dump_func
)dump_destroy_class_request
,
4041 (dump_func
)dump_set_class_info_request
,
4042 (dump_func
)dump_set_clipboard_info_request
,
4043 (dump_func
)dump_open_token_request
,
4044 (dump_func
)dump_set_global_windows_request
,
4045 (dump_func
)dump_adjust_token_privileges_request
,
4046 (dump_func
)dump_get_token_privileges_request
,
4047 (dump_func
)dump_check_token_privileges_request
,
4048 (dump_func
)dump_duplicate_token_request
,
4049 (dump_func
)dump_access_check_request
,
4050 (dump_func
)dump_get_token_sid_request
,
4051 (dump_func
)dump_get_token_groups_request
,
4052 (dump_func
)dump_get_token_default_dacl_request
,
4053 (dump_func
)dump_set_token_default_dacl_request
,
4054 (dump_func
)dump_set_security_object_request
,
4055 (dump_func
)dump_get_security_object_request
,
4056 (dump_func
)dump_create_mailslot_request
,
4057 (dump_func
)dump_set_mailslot_info_request
,
4058 (dump_func
)dump_create_directory_request
,
4059 (dump_func
)dump_open_directory_request
,
4060 (dump_func
)dump_get_directory_entry_request
,
4061 (dump_func
)dump_create_symlink_request
,
4062 (dump_func
)dump_open_symlink_request
,
4063 (dump_func
)dump_query_symlink_request
,
4064 (dump_func
)dump_get_object_info_request
,
4065 (dump_func
)dump_unlink_object_request
,
4066 (dump_func
)dump_get_token_impersonation_level_request
,
4067 (dump_func
)dump_allocate_locally_unique_id_request
,
4068 (dump_func
)dump_create_device_manager_request
,
4069 (dump_func
)dump_create_device_request
,
4070 (dump_func
)dump_delete_device_request
,
4071 (dump_func
)dump_get_next_device_request_request
,
4072 (dump_func
)dump_make_process_system_request
,
4073 (dump_func
)dump_get_token_statistics_request
,
4074 (dump_func
)dump_create_completion_request
,
4075 (dump_func
)dump_open_completion_request
,
4076 (dump_func
)dump_add_completion_request
,
4077 (dump_func
)dump_remove_completion_request
,
4078 (dump_func
)dump_query_completion_request
,
4079 (dump_func
)dump_set_completion_info_request
,
4080 (dump_func
)dump_add_fd_completion_request
,
4081 (dump_func
)dump_get_window_layered_info_request
,
4082 (dump_func
)dump_set_window_layered_info_request
,
4083 (dump_func
)dump_alloc_user_handle_request
,
4084 (dump_func
)dump_free_user_handle_request
,
4085 (dump_func
)dump_set_cursor_request
,
4088 static const dump_func reply_dumpers
[REQ_NB_REQUESTS
] = {
4089 (dump_func
)dump_new_process_reply
,
4090 (dump_func
)dump_get_new_process_info_reply
,
4091 (dump_func
)dump_new_thread_reply
,
4092 (dump_func
)dump_get_startup_info_reply
,
4094 (dump_func
)dump_init_thread_reply
,
4095 (dump_func
)dump_terminate_process_reply
,
4096 (dump_func
)dump_terminate_thread_reply
,
4097 (dump_func
)dump_get_process_info_reply
,
4099 (dump_func
)dump_get_thread_info_reply
,
4101 (dump_func
)dump_get_dll_info_reply
,
4102 (dump_func
)dump_suspend_thread_reply
,
4103 (dump_func
)dump_resume_thread_reply
,
4106 (dump_func
)dump_queue_apc_reply
,
4107 (dump_func
)dump_get_apc_result_reply
,
4109 (dump_func
)dump_set_handle_info_reply
,
4110 (dump_func
)dump_dup_handle_reply
,
4111 (dump_func
)dump_open_process_reply
,
4112 (dump_func
)dump_open_thread_reply
,
4113 (dump_func
)dump_select_reply
,
4114 (dump_func
)dump_create_event_reply
,
4116 (dump_func
)dump_open_event_reply
,
4117 (dump_func
)dump_create_mutex_reply
,
4118 (dump_func
)dump_release_mutex_reply
,
4119 (dump_func
)dump_open_mutex_reply
,
4120 (dump_func
)dump_create_semaphore_reply
,
4121 (dump_func
)dump_release_semaphore_reply
,
4122 (dump_func
)dump_open_semaphore_reply
,
4123 (dump_func
)dump_create_file_reply
,
4124 (dump_func
)dump_open_file_object_reply
,
4125 (dump_func
)dump_alloc_file_handle_reply
,
4126 (dump_func
)dump_get_handle_unix_name_reply
,
4127 (dump_func
)dump_get_handle_fd_reply
,
4128 (dump_func
)dump_flush_file_reply
,
4129 (dump_func
)dump_lock_file_reply
,
4131 (dump_func
)dump_create_socket_reply
,
4132 (dump_func
)dump_accept_socket_reply
,
4135 (dump_func
)dump_get_socket_event_reply
,
4138 (dump_func
)dump_alloc_console_reply
,
4140 (dump_func
)dump_get_console_renderer_events_reply
,
4141 (dump_func
)dump_open_console_reply
,
4142 (dump_func
)dump_get_console_wait_event_reply
,
4143 (dump_func
)dump_get_console_mode_reply
,
4146 (dump_func
)dump_get_console_input_info_reply
,
4148 (dump_func
)dump_get_console_input_history_reply
,
4149 (dump_func
)dump_create_console_output_reply
,
4151 (dump_func
)dump_get_console_output_info_reply
,
4152 (dump_func
)dump_write_console_input_reply
,
4153 (dump_func
)dump_read_console_input_reply
,
4154 (dump_func
)dump_write_console_output_reply
,
4155 (dump_func
)dump_fill_console_output_reply
,
4156 (dump_func
)dump_read_console_output_reply
,
4160 (dump_func
)dump_read_change_reply
,
4161 (dump_func
)dump_create_mapping_reply
,
4162 (dump_func
)dump_open_mapping_reply
,
4163 (dump_func
)dump_get_mapping_info_reply
,
4164 (dump_func
)dump_get_mapping_committed_range_reply
,
4166 (dump_func
)dump_create_snapshot_reply
,
4167 (dump_func
)dump_next_process_reply
,
4168 (dump_func
)dump_next_thread_reply
,
4169 (dump_func
)dump_wait_debug_event_reply
,
4170 (dump_func
)dump_queue_exception_event_reply
,
4171 (dump_func
)dump_get_exception_status_reply
,
4175 (dump_func
)dump_debug_break_reply
,
4177 (dump_func
)dump_read_process_memory_reply
,
4179 (dump_func
)dump_create_key_reply
,
4180 (dump_func
)dump_open_key_reply
,
4183 (dump_func
)dump_enum_key_reply
,
4185 (dump_func
)dump_get_key_value_reply
,
4186 (dump_func
)dump_enum_key_value_reply
,
4192 (dump_func
)dump_create_timer_reply
,
4193 (dump_func
)dump_open_timer_reply
,
4194 (dump_func
)dump_set_timer_reply
,
4195 (dump_func
)dump_cancel_timer_reply
,
4196 (dump_func
)dump_get_timer_info_reply
,
4197 (dump_func
)dump_get_thread_context_reply
,
4198 (dump_func
)dump_set_thread_context_reply
,
4199 (dump_func
)dump_get_selector_entry_reply
,
4200 (dump_func
)dump_add_atom_reply
,
4202 (dump_func
)dump_find_atom_reply
,
4203 (dump_func
)dump_get_atom_information_reply
,
4206 (dump_func
)dump_init_atom_table_reply
,
4207 (dump_func
)dump_get_msg_queue_reply
,
4209 (dump_func
)dump_set_queue_mask_reply
,
4210 (dump_func
)dump_get_queue_status_reply
,
4211 (dump_func
)dump_get_process_idle_event_reply
,
4214 (dump_func
)dump_send_hardware_message_reply
,
4215 (dump_func
)dump_get_message_reply
,
4218 (dump_func
)dump_get_message_reply_reply
,
4219 (dump_func
)dump_set_win_timer_reply
,
4221 (dump_func
)dump_is_window_hung_reply
,
4222 (dump_func
)dump_get_serial_info_reply
,
4226 (dump_func
)dump_ioctl_reply
,
4227 (dump_func
)dump_get_ioctl_result_reply
,
4228 (dump_func
)dump_create_named_pipe_reply
,
4229 (dump_func
)dump_get_named_pipe_info_reply
,
4230 (dump_func
)dump_create_window_reply
,
4232 (dump_func
)dump_get_desktop_window_reply
,
4233 (dump_func
)dump_set_window_owner_reply
,
4234 (dump_func
)dump_get_window_info_reply
,
4235 (dump_func
)dump_set_window_info_reply
,
4236 (dump_func
)dump_set_parent_reply
,
4237 (dump_func
)dump_get_window_parents_reply
,
4238 (dump_func
)dump_get_window_children_reply
,
4239 (dump_func
)dump_get_window_children_from_point_reply
,
4240 (dump_func
)dump_get_window_tree_reply
,
4241 (dump_func
)dump_set_window_pos_reply
,
4242 (dump_func
)dump_get_window_rectangles_reply
,
4243 (dump_func
)dump_get_window_text_reply
,
4245 (dump_func
)dump_get_windows_offset_reply
,
4246 (dump_func
)dump_get_visible_region_reply
,
4247 (dump_func
)dump_get_window_region_reply
,
4249 (dump_func
)dump_get_update_region_reply
,
4253 (dump_func
)dump_remove_window_property_reply
,
4254 (dump_func
)dump_get_window_property_reply
,
4255 (dump_func
)dump_get_window_properties_reply
,
4256 (dump_func
)dump_create_winstation_reply
,
4257 (dump_func
)dump_open_winstation_reply
,
4259 (dump_func
)dump_get_process_winstation_reply
,
4261 (dump_func
)dump_enum_winstation_reply
,
4262 (dump_func
)dump_create_desktop_reply
,
4263 (dump_func
)dump_open_desktop_reply
,
4265 (dump_func
)dump_get_thread_desktop_reply
,
4267 (dump_func
)dump_enum_desktop_reply
,
4268 (dump_func
)dump_set_user_object_info_reply
,
4270 (dump_func
)dump_get_thread_input_reply
,
4271 (dump_func
)dump_get_last_input_time_reply
,
4272 (dump_func
)dump_get_key_state_reply
,
4274 (dump_func
)dump_set_foreground_window_reply
,
4275 (dump_func
)dump_set_focus_window_reply
,
4276 (dump_func
)dump_set_active_window_reply
,
4277 (dump_func
)dump_set_capture_window_reply
,
4278 (dump_func
)dump_set_caret_window_reply
,
4279 (dump_func
)dump_set_caret_info_reply
,
4280 (dump_func
)dump_set_hook_reply
,
4281 (dump_func
)dump_remove_hook_reply
,
4282 (dump_func
)dump_start_hook_chain_reply
,
4284 (dump_func
)dump_get_hook_info_reply
,
4285 (dump_func
)dump_create_class_reply
,
4286 (dump_func
)dump_destroy_class_reply
,
4287 (dump_func
)dump_set_class_info_reply
,
4288 (dump_func
)dump_set_clipboard_info_reply
,
4289 (dump_func
)dump_open_token_reply
,
4290 (dump_func
)dump_set_global_windows_reply
,
4291 (dump_func
)dump_adjust_token_privileges_reply
,
4292 (dump_func
)dump_get_token_privileges_reply
,
4293 (dump_func
)dump_check_token_privileges_reply
,
4294 (dump_func
)dump_duplicate_token_reply
,
4295 (dump_func
)dump_access_check_reply
,
4296 (dump_func
)dump_get_token_sid_reply
,
4297 (dump_func
)dump_get_token_groups_reply
,
4298 (dump_func
)dump_get_token_default_dacl_reply
,
4301 (dump_func
)dump_get_security_object_reply
,
4302 (dump_func
)dump_create_mailslot_reply
,
4303 (dump_func
)dump_set_mailslot_info_reply
,
4304 (dump_func
)dump_create_directory_reply
,
4305 (dump_func
)dump_open_directory_reply
,
4306 (dump_func
)dump_get_directory_entry_reply
,
4307 (dump_func
)dump_create_symlink_reply
,
4308 (dump_func
)dump_open_symlink_reply
,
4309 (dump_func
)dump_query_symlink_reply
,
4310 (dump_func
)dump_get_object_info_reply
,
4312 (dump_func
)dump_get_token_impersonation_level_reply
,
4313 (dump_func
)dump_allocate_locally_unique_id_reply
,
4314 (dump_func
)dump_create_device_manager_reply
,
4315 (dump_func
)dump_create_device_reply
,
4317 (dump_func
)dump_get_next_device_request_reply
,
4318 (dump_func
)dump_make_process_system_reply
,
4319 (dump_func
)dump_get_token_statistics_reply
,
4320 (dump_func
)dump_create_completion_reply
,
4321 (dump_func
)dump_open_completion_reply
,
4323 (dump_func
)dump_remove_completion_reply
,
4324 (dump_func
)dump_query_completion_reply
,
4327 (dump_func
)dump_get_window_layered_info_reply
,
4329 (dump_func
)dump_alloc_user_handle_reply
,
4331 (dump_func
)dump_set_cursor_reply
,
4334 static const char * const req_names
[REQ_NB_REQUESTS
] = {
4336 "get_new_process_info",
4339 "init_process_done",
4341 "terminate_process",
4367 "release_semaphore",
4371 "alloc_file_handle",
4372 "get_handle_unix_name",
4379 "accept_into_socket",
4382 "enable_socket_event",
4383 "set_socket_deferred",
4386 "get_console_renderer_events",
4388 "get_console_wait_event",
4391 "set_console_input_info",
4392 "get_console_input_info",
4393 "append_console_input_history",
4394 "get_console_input_history",
4395 "create_console_output",
4396 "set_console_output_info",
4397 "get_console_output_info",
4398 "write_console_input",
4399 "read_console_input",
4400 "write_console_output",
4401 "fill_console_output",
4402 "read_console_output",
4403 "move_console_output",
4404 "send_console_signal",
4405 "read_directory_changes",
4410 "get_mapping_committed_range",
4411 "add_mapping_committed_range",
4416 "queue_exception_event",
4417 "get_exception_status",
4418 "output_debug_string",
4419 "continue_debug_event",
4422 "set_debugger_kill_on_exit",
4423 "read_process_memory",
4424 "write_process_memory",
4437 "set_registry_notification",
4443 "get_thread_context",
4444 "set_thread_context",
4445 "get_selector_entry",
4449 "get_atom_information",
4450 "set_atom_information",
4457 "get_process_idle_event",
4459 "post_quit_message",
4460 "send_hardware_message",
4463 "accept_hardware_message",
4464 "get_message_reply",
4474 "create_named_pipe",
4475 "get_named_pipe_info",
4478 "get_desktop_window",
4483 "get_window_parents",
4484 "get_window_children",
4485 "get_window_children_from_point",
4488 "get_window_rectangles",
4491 "get_windows_offset",
4492 "get_visible_region",
4493 "get_window_region",
4494 "set_window_region",
4495 "get_update_region",
4496 "update_window_zorder",
4498 "set_window_property",
4499 "remove_window_property",
4500 "get_window_property",
4501 "get_window_properties",
4502 "create_winstation",
4505 "get_process_winstation",
4506 "set_process_winstation",
4511 "get_thread_desktop",
4512 "set_thread_desktop",
4514 "set_user_object_info",
4515 "attach_thread_input",
4517 "get_last_input_time",
4520 "set_foreground_window",
4522 "set_active_window",
4523 "set_capture_window",
4529 "finish_hook_chain",
4534 "set_clipboard_info",
4536 "set_global_windows",
4537 "adjust_token_privileges",
4538 "get_token_privileges",
4539 "check_token_privileges",
4544 "get_token_default_dacl",
4545 "set_token_default_dacl",
4546 "set_security_object",
4547 "get_security_object",
4549 "set_mailslot_info",
4552 "get_directory_entry",
4558 "get_token_impersonation_level",
4559 "allocate_locally_unique_id",
4560 "create_device_manager",
4563 "get_next_device_request",
4564 "make_process_system",
4565 "get_token_statistics",
4566 "create_completion",
4569 "remove_completion",
4571 "set_completion_info",
4572 "add_fd_completion",
4573 "get_window_layered_info",
4574 "set_window_layered_info",
4575 "alloc_user_handle",
4586 { "ABANDONED_WAIT_0", STATUS_ABANDONED_WAIT_0
},
4587 { "ACCESS_DENIED", STATUS_ACCESS_DENIED
},
4588 { "ACCESS_VIOLATION", STATUS_ACCESS_VIOLATION
},
4589 { "ADDRESS_ALREADY_ASSOCIATED", STATUS_ADDRESS_ALREADY_ASSOCIATED
},
4590 { "ALERTED", STATUS_ALERTED
},
4591 { "ALIAS_EXISTS", STATUS_ALIAS_EXISTS
},
4592 { "BAD_DEVICE_TYPE", STATUS_BAD_DEVICE_TYPE
},
4593 { "BAD_IMPERSONATION_LEVEL", STATUS_BAD_IMPERSONATION_LEVEL
},
4594 { "BREAKPOINT", STATUS_BREAKPOINT
},
4595 { "BUFFER_OVERFLOW", STATUS_BUFFER_OVERFLOW
},
4596 { "BUFFER_TOO_SMALL", STATUS_BUFFER_TOO_SMALL
},
4597 { "CANCELLED", STATUS_CANCELLED
},
4598 { "CANNOT_DELETE", STATUS_CANNOT_DELETE
},
4599 { "CANT_OPEN_ANONYMOUS", STATUS_CANT_OPEN_ANONYMOUS
},
4600 { "CANT_WAIT", STATUS_CANT_WAIT
},
4601 { "CHILD_MUST_BE_VOLATILE", STATUS_CHILD_MUST_BE_VOLATILE
},
4602 { "CONNECTION_ABORTED", STATUS_CONNECTION_ABORTED
},
4603 { "CONNECTION_DISCONNECTED", STATUS_CONNECTION_DISCONNECTED
},
4604 { "CONNECTION_REFUSED", STATUS_CONNECTION_REFUSED
},
4605 { "CONNECTION_RESET", STATUS_CONNECTION_RESET
},
4606 { "DEBUGGER_INACTIVE", STATUS_DEBUGGER_INACTIVE
},
4607 { "DEVICE_BUSY", STATUS_DEVICE_BUSY
},
4608 { "DIRECTORY_NOT_EMPTY", STATUS_DIRECTORY_NOT_EMPTY
},
4609 { "DISK_FULL", STATUS_DISK_FULL
},
4610 { "DLL_NOT_FOUND", STATUS_DLL_NOT_FOUND
},
4611 { "ERROR_CLASS_ALREADY_EXISTS", 0xc0010000 | ERROR_CLASS_ALREADY_EXISTS
},
4612 { "ERROR_CLASS_DOES_NOT_EXIST", 0xc0010000 | ERROR_CLASS_DOES_NOT_EXIST
},
4613 { "ERROR_CLASS_HAS_WINDOWS", 0xc0010000 | ERROR_CLASS_HAS_WINDOWS
},
4614 { "ERROR_CLIPBOARD_NOT_OPEN", 0xc0010000 | ERROR_CLIPBOARD_NOT_OPEN
},
4615 { "ERROR_INVALID_CURSOR_HANDLE", 0xc0010000 | ERROR_INVALID_CURSOR_HANDLE
},
4616 { "ERROR_INVALID_INDEX", 0xc0010000 | ERROR_INVALID_INDEX
},
4617 { "ERROR_INVALID_WINDOW_HANDLE", 0xc0010000 | ERROR_INVALID_WINDOW_HANDLE
},
4618 { "FILE_DELETED", STATUS_FILE_DELETED
},
4619 { "FILE_IS_A_DIRECTORY", STATUS_FILE_IS_A_DIRECTORY
},
4620 { "FILE_LOCK_CONFLICT", STATUS_FILE_LOCK_CONFLICT
},
4621 { "GENERIC_NOT_MAPPED", STATUS_GENERIC_NOT_MAPPED
},
4622 { "HANDLES_CLOSED", STATUS_HANDLES_CLOSED
},
4623 { "HANDLE_NOT_CLOSABLE", STATUS_HANDLE_NOT_CLOSABLE
},
4624 { "HOST_UNREACHABLE", STATUS_HOST_UNREACHABLE
},
4625 { "ILLEGAL_FUNCTION", STATUS_ILLEGAL_FUNCTION
},
4626 { "INSTANCE_NOT_AVAILABLE", STATUS_INSTANCE_NOT_AVAILABLE
},
4627 { "INSUFFICIENT_RESOURCES", STATUS_INSUFFICIENT_RESOURCES
},
4628 { "INVALID_CID", STATUS_INVALID_CID
},
4629 { "INVALID_DEVICE_REQUEST", STATUS_INVALID_DEVICE_REQUEST
},
4630 { "INVALID_FILE_FOR_SECTION", STATUS_INVALID_FILE_FOR_SECTION
},
4631 { "INVALID_HANDLE", STATUS_INVALID_HANDLE
},
4632 { "INVALID_PARAMETER", STATUS_INVALID_PARAMETER
},
4633 { "INVALID_SECURITY_DESCR", STATUS_INVALID_SECURITY_DESCR
},
4634 { "IO_TIMEOUT", STATUS_IO_TIMEOUT
},
4635 { "KEY_DELETED", STATUS_KEY_DELETED
},
4636 { "MAPPED_FILE_SIZE_ZERO", STATUS_MAPPED_FILE_SIZE_ZERO
},
4637 { "MUTANT_NOT_OWNED", STATUS_MUTANT_NOT_OWNED
},
4638 { "NAME_TOO_LONG", STATUS_NAME_TOO_LONG
},
4639 { "NETWORK_BUSY", STATUS_NETWORK_BUSY
},
4640 { "NETWORK_UNREACHABLE", STATUS_NETWORK_UNREACHABLE
},
4641 { "NOTIFY_ENUM_DIR", STATUS_NOTIFY_ENUM_DIR
},
4642 { "NOT_ALL_ASSIGNED", STATUS_NOT_ALL_ASSIGNED
},
4643 { "NOT_A_DIRECTORY", STATUS_NOT_A_DIRECTORY
},
4644 { "NOT_FOUND", STATUS_NOT_FOUND
},
4645 { "NOT_IMPLEMENTED", STATUS_NOT_IMPLEMENTED
},
4646 { "NOT_REGISTRY_FILE", STATUS_NOT_REGISTRY_FILE
},
4647 { "NOT_SUPPORTED", STATUS_NOT_SUPPORTED
},
4648 { "NO_DATA_DETECTED", STATUS_NO_DATA_DETECTED
},
4649 { "NO_IMPERSONATION_TOKEN", STATUS_NO_IMPERSONATION_TOKEN
},
4650 { "NO_MEMORY", STATUS_NO_MEMORY
},
4651 { "NO_MORE_ENTRIES", STATUS_NO_MORE_ENTRIES
},
4652 { "NO_MORE_FILES", STATUS_NO_MORE_FILES
},
4653 { "NO_SUCH_DEVICE", STATUS_NO_SUCH_DEVICE
},
4654 { "NO_SUCH_FILE", STATUS_NO_SUCH_FILE
},
4655 { "NO_TOKEN", STATUS_NO_TOKEN
},
4656 { "OBJECT_NAME_COLLISION", STATUS_OBJECT_NAME_COLLISION
},
4657 { "OBJECT_NAME_EXISTS", STATUS_OBJECT_NAME_EXISTS
},
4658 { "OBJECT_NAME_INVALID", STATUS_OBJECT_NAME_INVALID
},
4659 { "OBJECT_NAME_NOT_FOUND", STATUS_OBJECT_NAME_NOT_FOUND
},
4660 { "OBJECT_PATH_INVALID", STATUS_OBJECT_PATH_INVALID
},
4661 { "OBJECT_PATH_NOT_FOUND", STATUS_OBJECT_PATH_NOT_FOUND
},
4662 { "OBJECT_PATH_SYNTAX_BAD", STATUS_OBJECT_PATH_SYNTAX_BAD
},
4663 { "OBJECT_TYPE_MISMATCH", STATUS_OBJECT_TYPE_MISMATCH
},
4664 { "PENDING", STATUS_PENDING
},
4665 { "PIPE_BUSY", STATUS_PIPE_BUSY
},
4666 { "PIPE_CONNECTED", STATUS_PIPE_CONNECTED
},
4667 { "PIPE_DISCONNECTED", STATUS_PIPE_DISCONNECTED
},
4668 { "PIPE_LISTENING", STATUS_PIPE_LISTENING
},
4669 { "PIPE_NOT_AVAILABLE", STATUS_PIPE_NOT_AVAILABLE
},
4670 { "PRIVILEGE_NOT_HELD", STATUS_PRIVILEGE_NOT_HELD
},
4671 { "PROCESS_IS_TERMINATING", STATUS_PROCESS_IS_TERMINATING
},
4672 { "SECTION_TOO_BIG", STATUS_SECTION_TOO_BIG
},
4673 { "SEMAPHORE_LIMIT_EXCEEDED", STATUS_SEMAPHORE_LIMIT_EXCEEDED
},
4674 { "SHARING_VIOLATION", STATUS_SHARING_VIOLATION
},
4675 { "SHUTDOWN_IN_PROGRESS", STATUS_SHUTDOWN_IN_PROGRESS
},
4676 { "SUSPEND_COUNT_EXCEEDED", STATUS_SUSPEND_COUNT_EXCEEDED
},
4677 { "THREAD_IS_TERMINATING", STATUS_THREAD_IS_TERMINATING
},
4678 { "TIMEOUT", STATUS_TIMEOUT
},
4679 { "TOO_MANY_OPENED_FILES", STATUS_TOO_MANY_OPENED_FILES
},
4680 { "UNSUCCESSFUL", STATUS_UNSUCCESSFUL
},
4681 { "USER_APC", STATUS_USER_APC
},
4682 { "USER_MAPPED_FILE", STATUS_USER_MAPPED_FILE
},
4683 { "VOLUME_DISMOUNTED", STATUS_VOLUME_DISMOUNTED
},
4684 { "WAS_LOCKED", STATUS_WAS_LOCKED
},
4688 /* ### make_requests end ### */
4689 /* Everything above this line is generated automatically by tools/make_requests */
4691 static const char *get_status_name( unsigned int status
)
4694 static char buffer
[10];
4698 for (i
= 0; status_names
[i
].name
; i
++)
4699 if (status_names
[i
].value
== status
) return status_names
[i
].name
;
4701 sprintf( buffer
, "%x", status
);
4705 void trace_request(void)
4707 enum request req
= current
->req
.request_header
.req
;
4708 if (req
< REQ_NB_REQUESTS
)
4710 fprintf( stderr
, "%04x: %s(", current
->id
, req_names
[req
] );
4711 if (req_dumpers
[req
])
4713 cur_data
= get_req_data();
4714 cur_size
= get_req_data_size();
4715 req_dumpers
[req
]( ¤t
->req
);
4717 fprintf( stderr
, " )\n" );
4719 else fprintf( stderr
, "%04x: %d(?)\n", current
->id
, req
);
4722 void trace_reply( enum request req
, const union generic_reply
*reply
)
4724 if (req
< REQ_NB_REQUESTS
)
4726 fprintf( stderr
, "%04x: %s() = %s",
4727 current
->id
, req_names
[req
], get_status_name(current
->error
) );
4728 if (reply_dumpers
[req
])
4730 fprintf( stderr
, " {" );
4731 cur_data
= current
->reply_data
;
4732 cur_size
= reply
->reply_header
.reply_size
;
4733 reply_dumpers
[req
]( reply
);
4734 fprintf( stderr
, " }" );
4736 fputc( '\n', stderr
);
4738 else fprintf( stderr
, "%04x: %d() = %s\n",
4739 current
->id
, req
, get_status_name(current
->error
) );