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
42 #include "ddk/ntddser.h"
49 static const void *cur_data
;
50 static data_size_t cur_size
;
52 static const char *get_status_name( unsigned int status
);
54 /* utility functions */
56 static inline void remove_data( data_size_t size
)
58 cur_data
= (const char *)cur_data
+ size
;
62 static void dump_uints( const char *prefix
, const unsigned int *ptr
, int len
)
64 fprintf( stderr
, "%s{", prefix
);
67 fprintf( stderr
, "%08x", *ptr
++ );
68 if (--len
) fputc( ',', stderr
);
73 static void dump_handles( const char *prefix
, const obj_handle_t
*data
, data_size_t size
)
75 data_size_t len
= size
/ sizeof(*data
);
77 fprintf( stderr
,"%s{", prefix
);
80 fprintf( stderr
, "%04x", *data
++ );
81 if (--len
) fputc( ',', stderr
);
86 static void dump_timeout( const char *prefix
, const timeout_t
*time
)
88 fprintf( stderr
, "%s%s", prefix
, get_timeout_str(*time
) );
91 static void dump_uint64( const char *prefix
, const unsigned __int64
*val
)
93 if ((unsigned int)*val
!= *val
)
94 fprintf( stderr
, "%s%x%08x", prefix
, (unsigned int)(*val
>> 32), (unsigned int)*val
);
96 fprintf( stderr
, "%s%08x", prefix
, (unsigned int)*val
);
99 static void dump_rectangle( const char *prefix
, const rectangle_t
*rect
)
101 fprintf( stderr
, "%s{%d,%d;%d,%d}", prefix
,
102 rect
->left
, rect
->top
, rect
->right
, rect
->bottom
);
105 static void dump_char_info( const char *prefix
, const char_info_t
*info
)
107 fprintf( stderr
, "%s{'", prefix
);
108 dump_strW( &info
->ch
, 1, stderr
, "\'\'" );
109 fprintf( stderr
, "',%04x}", info
->attr
);
112 static void dump_ioctl_code( const char *prefix
, const ioctl_code_t
*code
)
116 #define CASE(c) case c: fprintf( stderr, "%s%s", prefix, #c ); break
117 CASE(FSCTL_DISMOUNT_VOLUME
);
118 CASE(FSCTL_PIPE_DISCONNECT
);
119 CASE(FSCTL_PIPE_LISTEN
);
120 CASE(FSCTL_PIPE_PEEK
);
121 CASE(FSCTL_PIPE_WAIT
);
122 CASE(IOCTL_SERIAL_GET_TIMEOUTS
);
123 CASE(IOCTL_SERIAL_GET_WAIT_MASK
);
124 CASE(IOCTL_SERIAL_SET_TIMEOUTS
);
125 CASE(IOCTL_SERIAL_SET_WAIT_MASK
);
126 CASE(WS_SIO_ADDRESS_LIST_CHANGE
);
127 default: fprintf( stderr
, "%s%08x", prefix
, *code
); break;
132 static void dump_client_cpu( const char *prefix
, const client_cpu_t
*code
)
136 #define CASE(c) case CPU_##c: fprintf( stderr, "%s%s", prefix, #c ); break
142 default: fprintf( stderr
, "%s%u", prefix
, *code
); break;
147 static void dump_apc_call( const char *prefix
, const apc_call_t
*call
)
149 fprintf( stderr
, "%s{", prefix
);
153 fprintf( stderr
, "APC_NONE" );
156 dump_uint64( "APC_USER,func=", &call
->user
.func
);
157 dump_uint64( ",args={", &call
->user
.args
[0] );
158 dump_uint64( ",", &call
->user
.args
[1] );
159 dump_uint64( ",", &call
->user
.args
[2] );
160 fputc( '}', stderr
);
163 dump_timeout( "APC_TIMER,time=", &call
->timer
.time
);
164 dump_uint64( ",arg=", &call
->timer
.arg
);
167 dump_uint64( "APC_ASYNC_IO,user=", &call
->async_io
.user
);
168 dump_uint64( ",sb=", &call
->async_io
.sb
);
169 fprintf( stderr
, ",status=%s", get_status_name(call
->async_io
.status
) );
171 case APC_VIRTUAL_ALLOC
:
172 dump_uint64( "APC_VIRTUAL_ALLOC,addr==", &call
->virtual_alloc
.addr
);
173 dump_uint64( ",size=", &call
->virtual_alloc
.size
);
174 fprintf( stderr
, ",zero_bits_64=%u,op_type=%x,prot=%x",
175 call
->virtual_alloc
.zero_bits_64
, call
->virtual_alloc
.op_type
,
176 call
->virtual_alloc
.prot
);
178 case APC_VIRTUAL_FREE
:
179 dump_uint64( "APC_VIRTUAL_FREE,addr=", &call
->virtual_free
.addr
);
180 dump_uint64( ",size=", &call
->virtual_free
.size
);
181 fprintf( stderr
, ",op_type=%x", call
->virtual_free
.op_type
);
183 case APC_VIRTUAL_QUERY
:
184 dump_uint64( "APC_VIRTUAL_QUERY,addr=", &call
->virtual_query
.addr
);
186 case APC_VIRTUAL_PROTECT
:
187 dump_uint64( "APC_VIRTUAL_PROTECT,addr=", &call
->virtual_protect
.addr
);
188 dump_uint64( ",size=", &call
->virtual_protect
.size
);
189 fprintf( stderr
, ",prot=%x", call
->virtual_protect
.prot
);
191 case APC_VIRTUAL_FLUSH
:
192 dump_uint64( "APC_VIRTUAL_FLUSH,addr=", &call
->virtual_flush
.addr
);
193 dump_uint64( ",size=", &call
->virtual_flush
.size
);
195 case APC_VIRTUAL_LOCK
:
196 dump_uint64( "APC_VIRTUAL_LOCK,addr=", &call
->virtual_lock
.addr
);
197 dump_uint64( ",size=", &call
->virtual_lock
.size
);
199 case APC_VIRTUAL_UNLOCK
:
200 dump_uint64( "APC_VIRTUAL_UNLOCK,addr=", &call
->virtual_unlock
.addr
);
201 dump_uint64( ",size=", &call
->virtual_unlock
.size
);
204 fprintf( stderr
, "APC_MAP_VIEW,handle=%04x", call
->map_view
.handle
);
205 dump_uint64( ",addr=", &call
->map_view
.addr
);
206 dump_uint64( ",size=", &call
->map_view
.size
);
207 dump_uint64( ",offset=", &call
->map_view
.offset
);
208 fprintf( stderr
, ",zero_bits_64=%u,alloc_type=%x,prot=%x",
209 call
->map_view
.zero_bits_64
, call
->map_view
.alloc_type
, call
->map_view
.prot
);
212 dump_uint64( "APC_UNMAP_VIEW,addr=", &call
->unmap_view
.addr
);
214 case APC_CREATE_THREAD
:
215 dump_uint64( "APC_CREATE_THREAD,func=", &call
->create_thread
.func
);
216 dump_uint64( ",arg=", &call
->create_thread
.arg
);
217 dump_uint64( ",reserve=", &call
->create_thread
.reserve
);
218 dump_uint64( ",commit=", &call
->create_thread
.commit
);
219 fprintf( stderr
, ",suspend=%u", call
->create_thread
.suspend
);
221 case APC_BREAK_PROCESS
:
222 fprintf( stderr
, "APC_BREAK_PROCESS" );
225 fprintf( stderr
, "type=%u", call
->type
);
228 fputc( '}', stderr
);
231 static void dump_apc_result( const char *prefix
, const apc_result_t
*result
)
233 fprintf( stderr
, "%s{", prefix
);
239 fprintf( stderr
, "APC_ASYNC_IO,status=%s,total=%u",
240 get_status_name( result
->async_io
.status
), result
->async_io
.total
);
242 case APC_VIRTUAL_ALLOC
:
243 fprintf( stderr
, "APC_VIRTUAL_ALLOC,status=%s",
244 get_status_name( result
->virtual_alloc
.status
));
245 dump_uint64( ",addr=", &result
->virtual_alloc
.addr
);
246 dump_uint64( ",size=", &result
->virtual_alloc
.size
);
248 case APC_VIRTUAL_FREE
:
249 fprintf( stderr
, "APC_VIRTUAL_FREE,status=%s",
250 get_status_name( result
->virtual_free
.status
));
251 dump_uint64( ",addr=", &result
->virtual_free
.addr
);
252 dump_uint64( ",size=", &result
->virtual_free
.size
);
254 case APC_VIRTUAL_QUERY
:
255 fprintf( stderr
, "APC_VIRTUAL_QUERY,status=%s",
256 get_status_name( result
->virtual_query
.status
));
257 dump_uint64( ",base=", &result
->virtual_query
.base
);
258 dump_uint64( ",alloc_base=", &result
->virtual_query
.alloc_base
);
259 dump_uint64( ",size=", &result
->virtual_query
.size
);
260 fprintf( stderr
, ",state=%x,prot=%x,alloc_prot=%x,alloc_type=%x",
261 result
->virtual_query
.state
, result
->virtual_query
.prot
,
262 result
->virtual_query
.alloc_prot
, result
->virtual_query
.alloc_type
);
264 case APC_VIRTUAL_PROTECT
:
265 fprintf( stderr
, "APC_VIRTUAL_PROTECT,status=%s",
266 get_status_name( result
->virtual_protect
.status
));
267 dump_uint64( ",addr=", &result
->virtual_protect
.addr
);
268 dump_uint64( ",size=", &result
->virtual_protect
.size
);
269 fprintf( stderr
, ",prot=%x", result
->virtual_protect
.prot
);
271 case APC_VIRTUAL_FLUSH
:
272 fprintf( stderr
, "APC_VIRTUAL_FLUSH,status=%s",
273 get_status_name( result
->virtual_flush
.status
));
274 dump_uint64( ",addr=", &result
->virtual_flush
.addr
);
275 dump_uint64( ",size=", &result
->virtual_flush
.size
);
277 case APC_VIRTUAL_LOCK
:
278 fprintf( stderr
, "APC_VIRTUAL_LOCK,status=%s",
279 get_status_name( result
->virtual_lock
.status
));
280 dump_uint64( ",addr=", &result
->virtual_lock
.addr
);
281 dump_uint64( ",size=", &result
->virtual_lock
.size
);
283 case APC_VIRTUAL_UNLOCK
:
284 fprintf( stderr
, "APC_VIRTUAL_UNLOCK,status=%s",
285 get_status_name( result
->virtual_unlock
.status
));
286 dump_uint64( ",addr=", &result
->virtual_unlock
.addr
);
287 dump_uint64( ",size=", &result
->virtual_unlock
.size
);
290 fprintf( stderr
, "APC_MAP_VIEW,status=%s",
291 get_status_name( result
->map_view
.status
));
292 dump_uint64( ",addr=", &result
->map_view
.addr
);
293 dump_uint64( ",size=", &result
->map_view
.size
);
296 fprintf( stderr
, "APC_UNMAP_VIEW,status=%s",
297 get_status_name( result
->unmap_view
.status
) );
299 case APC_CREATE_THREAD
:
300 fprintf( stderr
, "APC_CREATE_THREAD,status=%s,tid=%04x,handle=%04x",
301 get_status_name( result
->create_thread
.status
),
302 result
->create_thread
.tid
, result
->create_thread
.handle
);
304 case APC_BREAK_PROCESS
:
305 fprintf( stderr
, "APC_BREAK_PROCESS,status=%s", get_status_name( result
->break_process
.status
) );
308 fprintf( stderr
, "type=%u", result
->type
);
311 fputc( '}', stderr
);
314 static void dump_async_data( const char *prefix
, const async_data_t
*data
)
316 fprintf( stderr
, "%s{handle=%04x,event=%04x", prefix
, data
->handle
, data
->event
);
317 dump_uint64( ",iosb=", &data
->iosb
);
318 dump_uint64( ",user=", &data
->user
);
319 dump_uint64( ",apc=", &data
->apc
);
320 dump_uint64( ",apc_context=", &data
->apc_context
);
321 fputc( '}', stderr
);
324 static void dump_irp_params( const char *prefix
, const irp_params_t
*data
)
329 fprintf( stderr
, "%s{NONE}", prefix
);
331 case IRP_CALL_CREATE
:
332 fprintf( stderr
, "%s{CREATE,access=%08x,sharing=%08x,options=%08x",
333 prefix
, data
->create
.access
, data
->create
.sharing
, data
->create
.options
);
334 dump_uint64( ",device=", &data
->create
.device
);
335 fprintf( stderr
, ",file=%08x}", data
->create
.file
);
338 fprintf( stderr
, "%s{CLOSE", prefix
);
339 dump_uint64( ",file=", &data
->close
.file
);
340 fputc( '}', stderr
);
343 fprintf( stderr
, "%s{READ,key=%08x,out_size=%u", prefix
, data
->read
.key
,
344 data
->read
.out_size
);
345 dump_uint64( ",pos=", &data
->read
.pos
);
346 dump_uint64( ",file=", &data
->read
.file
);
347 fputc( '}', stderr
);
350 fprintf( stderr
, "%s{WRITE,key=%08x", prefix
, data
->write
.key
);
351 dump_uint64( ",pos=", &data
->write
.pos
);
352 dump_uint64( ",file=", &data
->write
.file
);
353 fputc( '}', stderr
);
356 fprintf( stderr
, "%s{FLUSH", prefix
);
357 dump_uint64( ",file=", &data
->flush
.file
);
358 fputc( '}', stderr
);
361 fprintf( stderr
, "%s{IOCTL", prefix
);
362 dump_ioctl_code( ",code=", &data
->ioctl
.code
);
363 fprintf( stderr
, ",out_size=%u", data
->ioctl
.out_size
);
364 dump_uint64( ",file=", &data
->ioctl
.file
);
365 fputc( '}', stderr
);
368 fprintf( stderr
, "%s{FREE", prefix
);
369 dump_uint64( ",obj=", &data
->free
.obj
);
370 fputc( '}', stderr
);
372 case IRP_CALL_CANCEL
:
373 fprintf( stderr
, "%s{CANCEL", prefix
);
374 dump_uint64( ",irp=", &data
->cancel
.irp
);
375 fputc( '}', stderr
);
380 static void dump_hw_input( const char *prefix
, const hw_input_t
*input
)
385 fprintf( stderr
, "%s{type=MOUSE,x=%d,y=%d,data=%08x,flags=%08x,time=%u",
386 prefix
, input
->mouse
.x
, input
->mouse
.y
, input
->mouse
.data
, input
->mouse
.flags
,
388 dump_uint64( ",info=", &input
->mouse
.info
);
389 fputc( '}', stderr
);
392 fprintf( stderr
, "%s{type=KEYBOARD,vkey=%04hx,scan=%04hx,flags=%08x,time=%u",
393 prefix
, input
->kbd
.vkey
, input
->kbd
.scan
, input
->kbd
.flags
, input
->kbd
.time
);
394 dump_uint64( ",info=", &input
->kbd
.info
);
395 fputc( '}', stderr
);
398 fprintf( stderr
, "%s{type=HARDWARE,msg=%04x", prefix
, input
->hw
.msg
);
399 dump_uint64( ",lparam=", &input
->hw
.lparam
);
400 fputc( '}', stderr
);
403 fprintf( stderr
, "%s{type=%04x}", prefix
, input
->type
);
408 static void dump_luid( const char *prefix
, const luid_t
*luid
)
410 fprintf( stderr
, "%s%d.%u", prefix
, luid
->high_part
, luid
->low_part
);
413 static void dump_varargs_ints( const char *prefix
, data_size_t size
)
415 const int *data
= cur_data
;
416 data_size_t len
= size
/ sizeof(*data
);
418 fprintf( stderr
,"%s{", prefix
);
421 fprintf( stderr
, "%d", *data
++ );
422 if (--len
) fputc( ',', stderr
);
424 fputc( '}', stderr
);
428 static void dump_varargs_uints( const char *prefix
, data_size_t size
)
430 const unsigned int *data
= cur_data
;
432 dump_uints( prefix
, data
, size
/ sizeof(*data
) );
436 static void dump_varargs_uints64( const char *prefix
, data_size_t size
)
438 const unsigned __int64
*data
= cur_data
;
439 data_size_t len
= size
/ sizeof(*data
);
441 fprintf( stderr
,"%s{", prefix
);
444 dump_uint64( "", data
++ );
445 if (--len
) fputc( ',', stderr
);
447 fputc( '}', stderr
);
451 static void dump_varargs_apc_result( const char *prefix
, data_size_t size
)
453 const apc_result_t
*result
= cur_data
;
455 if (size
>= sizeof(*result
))
457 dump_apc_result( prefix
, result
);
458 size
= sizeof(*result
);
463 static void dump_varargs_select_op( const char *prefix
, data_size_t size
)
469 fprintf( stderr
, "%s{}", prefix
);
472 memset( &data
, 0, sizeof(data
) );
473 memcpy( &data
, cur_data
, min( size
, sizeof(data
) ));
475 fprintf( stderr
, "%s{", prefix
);
479 fprintf( stderr
, "NONE" );
482 case SELECT_WAIT_ALL
:
483 fprintf( stderr
, "%s", data
.op
== SELECT_WAIT
? "WAIT" : "WAIT_ALL" );
484 if (size
> offsetof( select_op_t
, wait
.handles
))
485 dump_handles( ",handles=", data
.wait
.handles
,
486 min( size
, sizeof(data
.wait
) ) - offsetof( select_op_t
, wait
.handles
));
488 case SELECT_SIGNAL_AND_WAIT
:
489 fprintf( stderr
, "SIGNAL_AND_WAIT,signal=%04x,wait=%04x",
490 data
.signal_and_wait
.signal
, data
.signal_and_wait
.wait
);
492 case SELECT_KEYED_EVENT_WAIT
:
493 case SELECT_KEYED_EVENT_RELEASE
:
494 fprintf( stderr
, "KEYED_EVENT_%s,handle=%04x",
495 data
.op
== SELECT_KEYED_EVENT_WAIT
? "WAIT" : "RELEASE",
496 data
.keyed_event
.handle
);
497 dump_uint64( ",key=", &data
.keyed_event
.key
);
500 fprintf( stderr
, "op=%u", data
.op
);
503 fputc( '}', stderr
);
507 static void dump_varargs_user_handles( const char *prefix
, data_size_t size
)
509 const user_handle_t
*data
= cur_data
;
510 data_size_t len
= size
/ sizeof(*data
);
512 fprintf( stderr
,"%s{", prefix
);
515 fprintf( stderr
, "%08x", *data
++ );
516 if (--len
) fputc( ',', stderr
);
518 fputc( '}', stderr
);
522 static void dump_varargs_bytes( const char *prefix
, data_size_t size
)
524 const unsigned char *data
= cur_data
;
525 data_size_t len
= min( 1024, size
);
527 fprintf( stderr
,"%s{", prefix
);
530 fprintf( stderr
, "%02x", *data
++ );
531 if (--len
) fputc( ',', stderr
);
533 if (size
> 1024) fprintf( stderr
, "...(total %u)", size
);
534 fputc( '}', stderr
);
538 static void dump_varargs_string( const char *prefix
, data_size_t size
)
540 fprintf( stderr
, "%s\"%.*s\"", prefix
, (int)size
, (const char *)cur_data
);
544 static void dump_varargs_unicode_str( const char *prefix
, data_size_t size
)
546 fprintf( stderr
, "%sL\"", prefix
);
547 dump_strW( cur_data
, size
/ sizeof(WCHAR
), stderr
, "\"\"" );
548 fputc( '\"', stderr
);
552 static void dump_varargs_context( const char *prefix
, data_size_t size
)
554 const context_t
*context
= cur_data
;
560 fprintf( stderr
, "%s{}", prefix
);
563 size
= min( size
, sizeof(ctx
) );
564 memset( &ctx
, 0, sizeof(ctx
) );
565 memcpy( &ctx
, context
, size
);
567 fprintf( stderr
,"%s{", prefix
);
568 dump_client_cpu( "cpu=", &ctx
.cpu
);
572 if (ctx
.flags
& SERVER_CTX_CONTROL
)
573 fprintf( stderr
, ",eip=%08x,esp=%08x,ebp=%08x,eflags=%08x,cs=%04x,ss=%04x",
574 ctx
.ctl
.i386_regs
.eip
, ctx
.ctl
.i386_regs
.esp
, ctx
.ctl
.i386_regs
.ebp
,
575 ctx
.ctl
.i386_regs
.eflags
, ctx
.ctl
.i386_regs
.cs
, ctx
.ctl
.i386_regs
.ss
);
576 if (ctx
.flags
& SERVER_CTX_SEGMENTS
)
577 fprintf( stderr
, ",ds=%04x,es=%04x,fs=%04x,gs=%04x",
578 ctx
.seg
.i386_regs
.ds
, ctx
.seg
.i386_regs
.es
,
579 ctx
.seg
.i386_regs
.fs
, ctx
.seg
.i386_regs
.gs
);
580 if (ctx
.flags
& SERVER_CTX_INTEGER
)
581 fprintf( stderr
, ",eax=%08x,ebx=%08x,ecx=%08x,edx=%08x,esi=%08x,edi=%08x",
582 ctx
.integer
.i386_regs
.eax
, ctx
.integer
.i386_regs
.ebx
, ctx
.integer
.i386_regs
.ecx
,
583 ctx
.integer
.i386_regs
.edx
, ctx
.integer
.i386_regs
.esi
, ctx
.integer
.i386_regs
.edi
);
584 if (ctx
.flags
& SERVER_CTX_DEBUG_REGISTERS
)
585 fprintf( stderr
, ",dr0=%08x,dr1=%08x,dr2=%08x,dr3=%08x,dr6=%08x,dr7=%08x",
586 ctx
.debug
.i386_regs
.dr0
, ctx
.debug
.i386_regs
.dr1
, ctx
.debug
.i386_regs
.dr2
,
587 ctx
.debug
.i386_regs
.dr3
, ctx
.debug
.i386_regs
.dr6
, ctx
.debug
.i386_regs
.dr7
);
588 if (ctx
.flags
& SERVER_CTX_FLOATING_POINT
)
590 fprintf( stderr
, ",fp.ctrl=%08x,fp.status=%08x,fp.tag=%08x,fp.err_off=%08x,fp.err_sel=%08x",
591 ctx
.fp
.i386_regs
.ctrl
, ctx
.fp
.i386_regs
.status
, ctx
.fp
.i386_regs
.tag
,
592 ctx
.fp
.i386_regs
.err_off
, ctx
.fp
.i386_regs
.err_sel
);
593 fprintf( stderr
, ",fp.data_off=%08x,fp.data_sel=%08x,fp.cr0npx=%08x",
594 ctx
.fp
.i386_regs
.data_off
, ctx
.fp
.i386_regs
.data_sel
, ctx
.fp
.i386_regs
.cr0npx
);
595 for (i
= 0; i
< 8; i
++)
598 memcpy( ®
, &ctx
.fp
.i386_regs
.regs
[10 * i
], 10 );
599 fprintf( stderr
, ",fp.reg%u=%Lg", i
, reg
);
602 if (ctx
.flags
& SERVER_CTX_EXTENDED_REGISTERS
)
603 dump_uints( ",extended=", (const unsigned int *)ctx
.ext
.i386_regs
,
604 sizeof(ctx
.ext
.i386_regs
) / sizeof(int) );
607 if (ctx
.flags
& SERVER_CTX_CONTROL
)
609 dump_uint64( ",rip=", &ctx
.ctl
.x86_64_regs
.rip
);
610 dump_uint64( ",rbp=", &ctx
.ctl
.x86_64_regs
.rbp
);
611 dump_uint64( ",rsp=", &ctx
.ctl
.x86_64_regs
.rsp
);
612 fprintf( stderr
, ",cs=%04x,ss=%04x,flags=%08x",
613 ctx
.ctl
.x86_64_regs
.cs
, ctx
.ctl
.x86_64_regs
.ss
, ctx
.ctl
.x86_64_regs
.flags
);
615 if (ctx
.flags
& SERVER_CTX_INTEGER
)
617 dump_uint64( ",rax=", &ctx
.integer
.x86_64_regs
.rax
);
618 dump_uint64( ",rbx=", &ctx
.integer
.x86_64_regs
.rbx
);
619 dump_uint64( ",rcx=", &ctx
.integer
.x86_64_regs
.rcx
);
620 dump_uint64( ",rdx=", &ctx
.integer
.x86_64_regs
.rdx
);
621 dump_uint64( ",rsi=", &ctx
.integer
.x86_64_regs
.rsi
);
622 dump_uint64( ",rdi=", &ctx
.integer
.x86_64_regs
.rdi
);
623 dump_uint64( ",r8=", &ctx
.integer
.x86_64_regs
.r8
);
624 dump_uint64( ",r9=", &ctx
.integer
.x86_64_regs
.r9
);
625 dump_uint64( ",r10=", &ctx
.integer
.x86_64_regs
.r10
);
626 dump_uint64( ",r11=", &ctx
.integer
.x86_64_regs
.r11
);
627 dump_uint64( ",r12=", &ctx
.integer
.x86_64_regs
.r12
);
628 dump_uint64( ",r13=", &ctx
.integer
.x86_64_regs
.r13
);
629 dump_uint64( ",r14=", &ctx
.integer
.x86_64_regs
.r14
);
630 dump_uint64( ",r15=", &ctx
.integer
.x86_64_regs
.r15
);
632 if (ctx
.flags
& SERVER_CTX_SEGMENTS
)
633 fprintf( stderr
, ",ds=%04x,es=%04x,fs=%04x,gs=%04x",
634 ctx
.seg
.x86_64_regs
.ds
, ctx
.seg
.x86_64_regs
.es
,
635 ctx
.seg
.x86_64_regs
.fs
, ctx
.seg
.x86_64_regs
.gs
);
636 if (ctx
.flags
& SERVER_CTX_DEBUG_REGISTERS
)
638 dump_uint64( ",dr0=", &ctx
.debug
.x86_64_regs
.dr0
);
639 dump_uint64( ",dr1=", &ctx
.debug
.x86_64_regs
.dr1
);
640 dump_uint64( ",dr2=", &ctx
.debug
.x86_64_regs
.dr2
);
641 dump_uint64( ",dr3=", &ctx
.debug
.x86_64_regs
.dr3
);
642 dump_uint64( ",dr6=", &ctx
.debug
.x86_64_regs
.dr6
);
643 dump_uint64( ",dr7=", &ctx
.debug
.x86_64_regs
.dr7
);
645 if (ctx
.flags
& SERVER_CTX_FLOATING_POINT
)
647 for (i
= 0; i
< 32; i
++)
648 fprintf( stderr
, ",fp%u=%08x%08x%08x%08x", i
,
649 (unsigned int)(ctx
.fp
.x86_64_regs
.fpregs
[i
].high
>> 32),
650 (unsigned int)ctx
.fp
.x86_64_regs
.fpregs
[i
].high
,
651 (unsigned int)(ctx
.fp
.x86_64_regs
.fpregs
[i
].low
>> 32),
652 (unsigned int)ctx
.fp
.x86_64_regs
.fpregs
[i
].low
);
656 if (ctx
.flags
& SERVER_CTX_CONTROL
)
657 fprintf( stderr
, ",iar=%08x,msr=%08x,ctr=%08x,lr=%08x,dar=%08x,dsisr=%08x,trap=%08x",
658 ctx
.ctl
.powerpc_regs
.iar
, ctx
.ctl
.powerpc_regs
.msr
, ctx
.ctl
.powerpc_regs
.ctr
,
659 ctx
.ctl
.powerpc_regs
.lr
, ctx
.ctl
.powerpc_regs
.dar
, ctx
.ctl
.powerpc_regs
.dsisr
,
660 ctx
.ctl
.powerpc_regs
.trap
);
661 if (ctx
.flags
& SERVER_CTX_INTEGER
)
663 for (i
= 0; i
< 32; i
++) fprintf( stderr
, ",gpr%u=%08x", i
, ctx
.integer
.powerpc_regs
.gpr
[i
] );
664 fprintf( stderr
, ",cr=%08x,xer=%08x",
665 ctx
.integer
.powerpc_regs
.cr
, ctx
.integer
.powerpc_regs
.xer
);
667 if (ctx
.flags
& SERVER_CTX_DEBUG_REGISTERS
)
668 for (i
= 0; i
< 8; i
++) fprintf( stderr
, ",dr%u=%08x", i
, ctx
.debug
.powerpc_regs
.dr
[i
] );
669 if (ctx
.flags
& SERVER_CTX_FLOATING_POINT
)
671 for (i
= 0; i
< 32; i
++) fprintf( stderr
, ",fpr%u=%g", i
, ctx
.fp
.powerpc_regs
.fpr
[i
] );
672 fprintf( stderr
, ",fpscr=%g", ctx
.fp
.powerpc_regs
.fpscr
);
676 if (ctx
.flags
& SERVER_CTX_CONTROL
)
677 fprintf( stderr
, ",sp=%08x,lr=%08x,pc=%08x,cpsr=%08x",
678 ctx
.ctl
.arm_regs
.sp
, ctx
.ctl
.arm_regs
.lr
,
679 ctx
.ctl
.arm_regs
.pc
, ctx
.ctl
.arm_regs
.cpsr
);
680 if (ctx
.flags
& SERVER_CTX_INTEGER
)
681 for (i
= 0; i
< 13; i
++) fprintf( stderr
, ",r%u=%08x", i
, ctx
.integer
.arm_regs
.r
[i
] );
682 if (ctx
.flags
& SERVER_CTX_DEBUG_REGISTERS
)
684 for (i
= 0; i
< 8; i
++)
685 fprintf( stderr
, ",bcr%u=%08x,bvr%u=%08x",
686 i
, ctx
.debug
.arm_regs
.bcr
[i
], i
, ctx
.debug
.arm_regs
.bvr
[i
] );
687 fprintf( stderr
, ",wcr0=%08x,wvr0=%08x",
688 ctx
.debug
.arm_regs
.wcr
[0], ctx
.debug
.arm_regs
.wvr
[0] );
690 if (ctx
.flags
& SERVER_CTX_FLOATING_POINT
)
692 for (i
= 0; i
< 32; i
++)
694 fprintf( stderr
, ",d%u=", i
);
695 dump_uint64( "", &ctx
.fp
.arm_regs
.d
[i
] );
697 fprintf( stderr
, ",fpscr=%08x", ctx
.fp
.arm_regs
.fpscr
);
701 if (ctx
.flags
& SERVER_CTX_CONTROL
)
703 dump_uint64( ",sp=", &ctx
.ctl
.arm64_regs
.sp
);
704 dump_uint64( ",pc=", &ctx
.ctl
.arm64_regs
.pc
);
705 dump_uint64( ",pstate=", &ctx
.ctl
.arm64_regs
.pstate
);
707 if (ctx
.flags
& SERVER_CTX_INTEGER
)
709 for (i
= 0; i
< 31; i
++)
711 fprintf( stderr
, ",x%u=", i
);
712 dump_uint64( "", &ctx
.integer
.arm64_regs
.x
[i
] );
715 if (ctx
.flags
& SERVER_CTX_DEBUG_REGISTERS
)
717 for (i
= 0; i
< 8; i
++)
719 fprintf( stderr
, ",bcr%u=%08x,bvr%u=", i
, ctx
.debug
.arm64_regs
.bcr
[i
], i
);
720 dump_uint64( "", &ctx
.debug
.arm64_regs
.bvr
[i
] );
722 for (i
= 0; i
< 2; i
++)
724 fprintf( stderr
, ",wcr%u=%08x,wvr%u=", i
, ctx
.debug
.arm64_regs
.wcr
[i
], i
);
725 dump_uint64( "", &ctx
.debug
.arm64_regs
.wvr
[i
] );
728 if (ctx
.flags
& SERVER_CTX_FLOATING_POINT
)
730 for (i
= 0; i
< 32; i
++)
732 fprintf( stderr
, ",q%u=", i
);
733 dump_uint64( "", &ctx
.fp
.arm64_regs
.q
[i
].high
);
734 dump_uint64( "", &ctx
.fp
.arm64_regs
.q
[i
].low
);
736 fprintf( stderr
, ",fpcr=%08x,fpsr=%08x", ctx
.fp
.arm64_regs
.fpcr
, ctx
.fp
.arm64_regs
.fpsr
);
740 fputc( '}', stderr
);
744 static void dump_varargs_debug_event( const char *prefix
, data_size_t size
)
751 fprintf( stderr
, "%s{}", prefix
);
754 size
= min( size
, sizeof(event
) );
755 memset( &event
, 0, sizeof(event
) );
756 memcpy( &event
, cur_data
, size
);
760 case EXCEPTION_DEBUG_EVENT
:
761 fprintf( stderr
, "%s{exception,first=%d,exc_code=%08x,flags=%08x", prefix
,
762 event
.exception
.first
, event
.exception
.exc_code
, event
.exception
.flags
);
763 dump_uint64( ",record=", &event
.exception
.record
);
764 dump_uint64( ",address=", &event
.exception
.address
);
765 fprintf( stderr
, ",params={" );
766 event
.exception
.nb_params
= min( event
.exception
.nb_params
, EXCEPTION_MAXIMUM_PARAMETERS
);
767 for (i
= 0; i
< event
.exception
.nb_params
; i
++)
769 dump_uint64( "", &event
.exception
.params
[i
] );
770 if (i
< event
.exception
.nb_params
) fputc( ',', stderr
);
772 fprintf( stderr
, "}}" );
774 case CREATE_THREAD_DEBUG_EVENT
:
775 fprintf( stderr
, "%s{create_thread,thread=%04x", prefix
, event
.create_thread
.handle
);
776 dump_uint64( ",teb=", &event
.create_thread
.teb
);
777 dump_uint64( ",start=", &event
.create_thread
.start
);
778 fputc( '}', stderr
);
780 case CREATE_PROCESS_DEBUG_EVENT
:
781 fprintf( stderr
, "%s{create_process,file=%04x,process=%04x,thread=%04x", prefix
,
782 event
.create_process
.file
, event
.create_process
.process
,
783 event
.create_process
.thread
);
784 dump_uint64( ",base=", &event
.create_process
.base
);
785 fprintf( stderr
, ",offset=%d,size=%d",
786 event
.create_process
.dbg_offset
, event
.create_process
.dbg_size
);
787 dump_uint64( ",teb=", &event
.create_process
.teb
);
788 dump_uint64( ",start=", &event
.create_process
.start
);
789 dump_uint64( ",name=", &event
.create_process
.name
);
790 fprintf( stderr
, ",unicode=%d}", event
.create_process
.unicode
);
792 case EXIT_THREAD_DEBUG_EVENT
:
793 fprintf( stderr
, "%s{exit_thread,code=%d}", prefix
, event
.exit
.exit_code
);
795 case EXIT_PROCESS_DEBUG_EVENT
:
796 fprintf( stderr
, "%s{exit_process,code=%d}", prefix
, event
.exit
.exit_code
);
798 case LOAD_DLL_DEBUG_EVENT
:
799 fprintf( stderr
, "%s{load_dll,file=%04x", prefix
, event
.load_dll
.handle
);
800 dump_uint64( ",base=", &event
.load_dll
.base
);
801 fprintf( stderr
, ",offset=%d,size=%d",
802 event
.load_dll
.dbg_offset
, event
.load_dll
.dbg_size
);
803 dump_uint64( ",name=", &event
.load_dll
.name
);
804 fprintf( stderr
, ",unicode=%d}", event
.load_dll
.unicode
);
806 case UNLOAD_DLL_DEBUG_EVENT
:
807 fprintf( stderr
, "%s{unload_dll", prefix
);
808 dump_uint64( ",base=", &event
.unload_dll
.base
);
809 fputc( '}', stderr
);
811 case 0: /* zero is the code returned on timeouts */
812 fprintf( stderr
, "%s{}", prefix
);
815 fprintf( stderr
, "%s{code=??? (%d)}", prefix
, event
.code
);
821 /* dump a unicode string contained in a buffer; helper for dump_varargs_startup_info */
822 static data_size_t
dump_inline_unicode_string( const char *prefix
, data_size_t pos
, data_size_t len
, data_size_t total_size
)
824 fputs( prefix
, stderr
);
825 if (pos
>= total_size
) return pos
;
826 if (len
> total_size
- pos
) len
= total_size
- pos
;
827 len
/= sizeof(WCHAR
);
828 dump_strW( (const WCHAR
*)cur_data
+ pos
/sizeof(WCHAR
), len
, stderr
, "\"\"" );
829 return pos
+ len
* sizeof(WCHAR
);
832 static void dump_varargs_startup_info( const char *prefix
, data_size_t size
)
835 data_size_t pos
= sizeof(info
);
837 memset( &info
, 0, sizeof(info
) );
838 memcpy( &info
, cur_data
, min( size
, sizeof(info
) ));
841 "%s{debug_flags=%x,console_flags=%x,console=%04x,hstdin=%04x,hstdout=%04x,hstderr=%04x,"
842 "x=%u,y=%u,xsize=%u,ysize=%u,xchars=%u,ychars=%u,attribute=%02x,flags=%x,show=%u",
843 prefix
, info
.debug_flags
, info
.console_flags
, info
.console
,
844 info
.hstdin
, info
.hstdout
, info
.hstderr
, info
.x
, info
.y
, info
.xsize
, info
.ysize
,
845 info
.xchars
, info
.ychars
, info
.attribute
, info
.flags
, info
.show
);
846 pos
= dump_inline_unicode_string( ",curdir=L\"", pos
, info
.curdir_len
, size
);
847 pos
= dump_inline_unicode_string( "\",dllpath=L\"", pos
, info
.dllpath_len
, size
);
848 pos
= dump_inline_unicode_string( "\",imagepath=L\"", pos
, info
.imagepath_len
, size
);
849 pos
= dump_inline_unicode_string( "\",cmdline=L\"", pos
, info
.cmdline_len
, size
);
850 pos
= dump_inline_unicode_string( "\",title=L\"", pos
, info
.title_len
, size
);
851 pos
= dump_inline_unicode_string( "\",desktop=L\"", pos
, info
.desktop_len
, size
);
852 pos
= dump_inline_unicode_string( "\",shellinfo=L\"", pos
, info
.shellinfo_len
, size
);
853 pos
= dump_inline_unicode_string( "\",runtime=L\"", pos
, info
.runtime_len
, size
);
854 fprintf( stderr
, "\"}" );
858 static void dump_varargs_input_records( const char *prefix
, data_size_t size
)
860 const INPUT_RECORD
*rec
= cur_data
;
861 data_size_t len
= size
/ sizeof(*rec
);
863 fprintf( stderr
,"%s{", prefix
);
866 fprintf( stderr
, "{%04x,...}", rec
->EventType
);
868 if (--len
) fputc( ',', stderr
);
870 fputc( '}', stderr
);
874 static void dump_varargs_rectangles( const char *prefix
, data_size_t size
)
876 const rectangle_t
*rect
= cur_data
;
877 data_size_t len
= size
/ sizeof(*rect
);
879 fprintf( stderr
,"%s{", prefix
);
882 dump_rectangle( "", rect
++ );
883 if (--len
) fputc( ',', stderr
);
885 fputc( '}', stderr
);
889 static void dump_varargs_message_data( const char *prefix
, data_size_t size
)
891 /* FIXME: dump the structured data */
892 dump_varargs_bytes( prefix
, size
);
895 static void dump_varargs_properties( const char *prefix
, data_size_t size
)
897 const property_data_t
*prop
= cur_data
;
898 data_size_t len
= size
/ sizeof(*prop
);
900 fprintf( stderr
,"%s{", prefix
);
903 fprintf( stderr
, "{atom=%04x,str=%d", prop
->atom
, prop
->string
);
904 dump_uint64( ",data=", &prop
->data
);
905 fputc( '}', stderr
);
907 if (--len
) fputc( ',', stderr
);
909 fputc( '}', stderr
);
913 static void dump_varargs_LUID_AND_ATTRIBUTES( const char *prefix
, data_size_t size
)
915 const LUID_AND_ATTRIBUTES
*lat
= cur_data
;
916 data_size_t len
= size
/ sizeof(*lat
);
918 fprintf( stderr
,"%s{", prefix
);
921 fprintf( stderr
, "{luid=%08x%08x,attr=%x}",
922 lat
->Luid
.HighPart
, lat
->Luid
.LowPart
, lat
->Attributes
);
924 if (--len
) fputc( ',', stderr
);
926 fputc( '}', stderr
);
930 static void dump_inline_sid( const char *prefix
, const SID
*sid
, data_size_t size
)
935 if ((FIELD_OFFSET(SID
, SubAuthority
[0]) > size
) ||
936 (FIELD_OFFSET(SID
, SubAuthority
[sid
->SubAuthorityCount
]) > size
))
938 fprintf( stderr
, "<invalid sid>" );
942 fprintf( stderr
,"%s{", prefix
);
943 fprintf( stderr
, "S-%u-%u", sid
->Revision
, MAKELONG(
944 MAKEWORD( sid
->IdentifierAuthority
.Value
[5],
945 sid
->IdentifierAuthority
.Value
[4] ),
946 MAKEWORD( sid
->IdentifierAuthority
.Value
[3],
947 sid
->IdentifierAuthority
.Value
[2] ) ) );
948 for (i
= 0; i
< sid
->SubAuthorityCount
; i
++)
949 fprintf( stderr
, "-%u", sid
->SubAuthority
[i
] );
950 fputc( '}', stderr
);
953 static void dump_varargs_SID( const char *prefix
, data_size_t size
)
955 const SID
*sid
= cur_data
;
956 dump_inline_sid( prefix
, sid
, size
);
960 static void dump_inline_acl( const char *prefix
, const ACL
*acl
, data_size_t size
)
962 const ACE_HEADER
*ace
;
965 fprintf( stderr
,"%s{", prefix
);
968 if (size
< sizeof(ACL
))
970 fprintf( stderr
, "<invalid acl>}" );
974 ace
= (const ACE_HEADER
*)(acl
+ 1);
975 for (i
= 0; i
< acl
->AceCount
; i
++)
977 const SID
*sid
= NULL
;
978 data_size_t sid_size
= 0;
980 if (size
< sizeof(ACE_HEADER
) || size
< ace
->AceSize
) break;
981 size
-= ace
->AceSize
;
982 if (i
!= 0) fputc( ',', stderr
);
983 fprintf( stderr
, "{AceType=" );
984 switch (ace
->AceType
)
986 case ACCESS_DENIED_ACE_TYPE
:
987 sid
= (const SID
*)&((const ACCESS_DENIED_ACE
*)ace
)->SidStart
;
988 sid_size
= ace
->AceSize
- FIELD_OFFSET(ACCESS_DENIED_ACE
, SidStart
);
989 fprintf( stderr
, "ACCESS_DENIED_ACE_TYPE,Mask=%x",
990 ((const ACCESS_DENIED_ACE
*)ace
)->Mask
);
992 case ACCESS_ALLOWED_ACE_TYPE
:
993 sid
= (const SID
*)&((const ACCESS_ALLOWED_ACE
*)ace
)->SidStart
;
994 sid_size
= ace
->AceSize
- FIELD_OFFSET(ACCESS_ALLOWED_ACE
, SidStart
);
995 fprintf( stderr
, "ACCESS_ALLOWED_ACE_TYPE,Mask=%x",
996 ((const ACCESS_ALLOWED_ACE
*)ace
)->Mask
);
998 case SYSTEM_AUDIT_ACE_TYPE
:
999 sid
= (const SID
*)&((const SYSTEM_AUDIT_ACE
*)ace
)->SidStart
;
1000 sid_size
= ace
->AceSize
- FIELD_OFFSET(SYSTEM_AUDIT_ACE
, SidStart
);
1001 fprintf( stderr
, "SYSTEM_AUDIT_ACE_TYPE,Mask=%x",
1002 ((const SYSTEM_AUDIT_ACE
*)ace
)->Mask
);
1004 case SYSTEM_ALARM_ACE_TYPE
:
1005 sid
= (const SID
*)&((const SYSTEM_ALARM_ACE
*)ace
)->SidStart
;
1006 sid_size
= ace
->AceSize
- FIELD_OFFSET(SYSTEM_ALARM_ACE
, SidStart
);
1007 fprintf( stderr
, "SYSTEM_ALARM_ACE_TYPE,Mask=%x",
1008 ((const SYSTEM_ALARM_ACE
*)ace
)->Mask
);
1010 case SYSTEM_MANDATORY_LABEL_ACE_TYPE
:
1011 sid
= (const SID
*)&((const SYSTEM_MANDATORY_LABEL_ACE
*)ace
)->SidStart
;
1012 sid_size
= ace
->AceSize
- FIELD_OFFSET(SYSTEM_MANDATORY_LABEL_ACE
, SidStart
);
1013 fprintf( stderr
, "SYSTEM_MANDATORY_LABEL_ACE_TYPE,Mask=%x",
1014 ((const SYSTEM_MANDATORY_LABEL_ACE
*)ace
)->Mask
);
1017 fprintf( stderr
, "unknown<%d>", ace
->AceType
);
1020 fprintf( stderr
, ",AceFlags=%x", ace
->AceFlags
);
1022 dump_inline_sid( ",Sid=", sid
, sid_size
);
1023 ace
= (const ACE_HEADER
*)((const char *)ace
+ ace
->AceSize
);
1024 fputc( '}', stderr
);
1027 fputc( '}', stderr
);
1030 static void dump_varargs_ACL( const char *prefix
, data_size_t size
)
1032 const ACL
*acl
= cur_data
;
1033 dump_inline_acl( prefix
, acl
, size
);
1034 remove_data( size
);
1037 static void dump_inline_security_descriptor( const char *prefix
, const struct security_descriptor
*sd
, data_size_t size
)
1039 fprintf( stderr
,"%s{", prefix
);
1040 if (size
>= sizeof(struct security_descriptor
))
1042 size_t offset
= sizeof(struct security_descriptor
);
1043 fprintf( stderr
, "control=%08x", sd
->control
);
1044 if ((sd
->owner_len
> FIELD_OFFSET(SID
, SubAuthority
[255])) || (offset
+ sd
->owner_len
> size
))
1047 dump_inline_sid( ",owner=", (const SID
*)((const char *)sd
+ offset
), sd
->owner_len
);
1049 fprintf( stderr
, ",owner=<not present>" );
1050 offset
+= sd
->owner_len
;
1051 if ((sd
->group_len
> FIELD_OFFSET(SID
, SubAuthority
[255])) || (offset
+ sd
->group_len
> size
))
1054 dump_inline_sid( ",group=", (const SID
*)((const char *)sd
+ offset
), sd
->group_len
);
1056 fprintf( stderr
, ",group=<not present>" );
1057 offset
+= sd
->group_len
;
1058 if ((sd
->sacl_len
>= MAX_ACL_LEN
) || (offset
+ sd
->sacl_len
> size
))
1060 dump_inline_acl( ",sacl=", (const ACL
*)((const char *)sd
+ offset
), sd
->sacl_len
);
1061 offset
+= sd
->sacl_len
;
1062 if ((sd
->dacl_len
>= MAX_ACL_LEN
) || (offset
+ sd
->dacl_len
> size
))
1064 dump_inline_acl( ",dacl=", (const ACL
*)((const char *)sd
+ offset
), sd
->dacl_len
);
1065 offset
+= sd
->dacl_len
;
1067 fputc( '}', stderr
);
1070 static void dump_varargs_security_descriptor( const char *prefix
, data_size_t size
)
1072 const struct security_descriptor
*sd
= cur_data
;
1073 dump_inline_security_descriptor( prefix
, sd
, size
);
1074 remove_data( size
);
1077 static void dump_varargs_token_groups( const char *prefix
, data_size_t size
)
1079 const struct token_groups
*tg
= cur_data
;
1081 fprintf( stderr
,"%s{", prefix
);
1082 if (size
>= sizeof(struct token_groups
))
1084 size_t offset
= sizeof(*tg
);
1085 fprintf( stderr
, "count=%08x,", tg
->count
);
1086 if (tg
->count
* sizeof(unsigned int) <= size
)
1089 const unsigned int *attr
= (const unsigned int *)(tg
+ 1);
1091 offset
+= tg
->count
* sizeof(unsigned int);
1093 fputc( '[', stderr
);
1094 for (i
= 0; i
< tg
->count
; i
++)
1096 const SID
*sid
= (const SID
*)((const char *)cur_data
+ offset
);
1098 fputc( ',', stderr
);
1099 fputc( '{', stderr
);
1100 fprintf( stderr
, "attributes=%08x", attr
[i
] );
1101 dump_inline_sid( ",sid=", sid
, size
- offset
);
1102 if ((offset
+ FIELD_OFFSET(SID
, SubAuthority
[0]) > size
) ||
1103 (offset
+ FIELD_OFFSET(SID
, SubAuthority
[sid
->SubAuthorityCount
]) > size
))
1105 offset
+= FIELD_OFFSET(SID
, SubAuthority
[sid
->SubAuthorityCount
]);
1106 fputc( '}', stderr
);
1108 fputc( ']', stderr
);
1111 fputc( '}', stderr
);
1114 static void dump_varargs_object_attributes( const char *prefix
, data_size_t size
)
1116 const struct object_attributes
*objattr
= cur_data
;
1118 fprintf( stderr
,"%s{", prefix
);
1123 if (size
< sizeof(*objattr
) ||
1124 (size
- sizeof(*objattr
) < objattr
->sd_len
) ||
1125 (size
- sizeof(*objattr
) - objattr
->sd_len
< objattr
->name_len
))
1127 fprintf( stderr
, "***invalid***}" );
1128 remove_data( size
);
1132 fprintf( stderr
, "rootdir=%04x,attributes=%08x", objattr
->rootdir
, objattr
->attributes
);
1133 dump_inline_security_descriptor( ",sd=", (const struct security_descriptor
*)(objattr
+ 1), objattr
->sd_len
);
1134 str
= (const WCHAR
*)objattr
+ (sizeof(*objattr
) + objattr
->sd_len
) / sizeof(WCHAR
);
1135 fprintf( stderr
, ",name=L\"" );
1136 dump_strW( str
, objattr
->name_len
/ sizeof(WCHAR
), stderr
, "\"\"" );
1137 fputc( '\"', stderr
);
1138 remove_data( (sizeof(*objattr
) + (objattr
->sd_len
& ~1) + (objattr
->name_len
& ~1) + 3) & ~3 );
1140 fputc( '}', stderr
);
1143 static void dump_varargs_filesystem_event( const char *prefix
, data_size_t size
)
1145 static const char * const actions
[] = {
1157 fprintf( stderr
,"%s{", prefix
);
1160 const struct filesystem_event
*event
= cur_data
;
1161 data_size_t len
= (offsetof( struct filesystem_event
, name
[event
->len
] ) + sizeof(int)-1)
1162 / sizeof(int) * sizeof(int);
1163 if (size
< len
) break;
1164 if (event
->action
< ARRAY_SIZE( actions
) && actions
[event
->action
])
1165 fprintf( stderr
, "{action=%s", actions
[event
->action
] );
1167 fprintf( stderr
, "{action=%u", event
->action
);
1168 fprintf( stderr
, ",name=\"%.*s\"}", event
->len
, event
->name
);
1171 if (size
)fputc( ',', stderr
);
1173 fputc( '}', stderr
);
1176 static void dump_varargs_pe_image_info( const char *prefix
, data_size_t size
)
1178 pe_image_info_t info
;
1182 fprintf( stderr
, "%s{}", prefix
);
1185 memset( &info
, 0, sizeof(info
) );
1186 memcpy( &info
, cur_data
, min( size
, sizeof(info
) ));
1188 fprintf( stderr
, "%s{", prefix
);
1189 dump_uint64( "base=", &info
.base
);
1190 dump_uint64( ",entry_point=", &info
.entry_point
);
1191 dump_uint64( ",map_size=", &info
.map_size
);
1192 dump_uint64( ",stack_size=", &info
.stack_size
);
1193 dump_uint64( ",stack_commit=", &info
.stack_commit
);
1194 fprintf( stderr
, ",zerobits=%08x,subsystem=%08x,subsystem_low=%04x,subsystem_high=%04x,gp=%08x"
1195 ",image_charact=%04x,dll_charact=%04x,machine=%04x,contains_code=%u,image_flags=%02x"
1196 ",loader_flags=%08x,header_size=%08x,file_size=%08x,checksum=%08x",
1197 info
.zerobits
, info
.subsystem
, info
.subsystem_low
, info
.subsystem_high
, info
.gp
,
1198 info
.image_charact
, info
.dll_charact
, info
.machine
, info
.contains_code
, info
.image_flags
,
1199 info
.loader_flags
, info
.header_size
, info
.file_size
, info
.checksum
);
1200 dump_client_cpu( ",cpu=", &info
.cpu
);
1201 fputc( '}', stderr
);
1202 remove_data( size
);
1205 static void dump_varargs_rawinput_devices(const char *prefix
, data_size_t size
)
1207 const struct rawinput_device
*device
;
1209 fprintf( stderr
, "%s{", prefix
);
1210 while (size
>= sizeof(*device
))
1213 fprintf( stderr
, "{usage_page=%04x,usage=%04x,flags=%08x,target=%08x}",
1214 device
->usage_page
, device
->usage
, device
->flags
, device
->target
);
1215 size
-= sizeof(*device
);
1216 remove_data( sizeof(*device
) );
1217 if (size
) fputc( ',', stderr
);
1219 fputc( '}', stderr
);
1222 static void dump_varargs_handle_infos( const char *prefix
, data_size_t size
)
1224 const struct handle_info
*handle
;
1226 fprintf( stderr
, "%s{", prefix
);
1227 while (size
>= sizeof(*handle
))
1230 fprintf( stderr
, "{owner=%04x,handle=%04x,access=%08x}",
1231 handle
->owner
, handle
->handle
, handle
->access
);
1232 size
-= sizeof(*handle
);
1233 remove_data( sizeof(*handle
) );
1234 if (size
) fputc( ',', stderr
);
1236 fputc( '}', stderr
);
1239 typedef void (*dump_func
)( const void *req
);
1241 /* Everything below this line is generated automatically by tools/make_requests */
1242 /* ### make_requests begin ### */
1244 static void dump_new_process_request( const struct new_process_request
*req
)
1246 fprintf( stderr
, " parent_process=%04x", req
->parent_process
);
1247 fprintf( stderr
, ", inherit_all=%d", req
->inherit_all
);
1248 fprintf( stderr
, ", create_flags=%08x", req
->create_flags
);
1249 fprintf( stderr
, ", socket_fd=%d", req
->socket_fd
);
1250 fprintf( stderr
, ", exe_file=%04x", req
->exe_file
);
1251 fprintf( stderr
, ", access=%08x", req
->access
);
1252 dump_client_cpu( ", cpu=", &req
->cpu
);
1253 fprintf( stderr
, ", info_size=%u", req
->info_size
);
1254 dump_varargs_object_attributes( ", objattr=", cur_size
);
1255 dump_varargs_startup_info( ", info=", min(cur_size
,req
->info_size
) );
1256 dump_varargs_unicode_str( ", env=", cur_size
);
1259 static void dump_new_process_reply( const struct new_process_reply
*req
)
1261 fprintf( stderr
, " info=%04x", req
->info
);
1262 fprintf( stderr
, ", pid=%04x", req
->pid
);
1263 fprintf( stderr
, ", handle=%04x", req
->handle
);
1266 static void dump_exec_process_request( const struct exec_process_request
*req
)
1268 fprintf( stderr
, " socket_fd=%d", req
->socket_fd
);
1269 dump_client_cpu( ", cpu=", &req
->cpu
);
1272 static void dump_get_new_process_info_request( const struct get_new_process_info_request
*req
)
1274 fprintf( stderr
, " info=%04x", req
->info
);
1277 static void dump_get_new_process_info_reply( const struct get_new_process_info_reply
*req
)
1279 fprintf( stderr
, " success=%d", req
->success
);
1280 fprintf( stderr
, ", exit_code=%d", req
->exit_code
);
1283 static void dump_new_thread_request( const struct new_thread_request
*req
)
1285 fprintf( stderr
, " process=%04x", req
->process
);
1286 fprintf( stderr
, ", access=%08x", req
->access
);
1287 fprintf( stderr
, ", suspend=%d", req
->suspend
);
1288 fprintf( stderr
, ", request_fd=%d", req
->request_fd
);
1289 dump_varargs_object_attributes( ", objattr=", cur_size
);
1292 static void dump_new_thread_reply( const struct new_thread_reply
*req
)
1294 fprintf( stderr
, " tid=%04x", req
->tid
);
1295 fprintf( stderr
, ", handle=%04x", req
->handle
);
1298 static void dump_get_startup_info_request( const struct get_startup_info_request
*req
)
1302 static void dump_get_startup_info_reply( const struct get_startup_info_reply
*req
)
1304 fprintf( stderr
, " info_size=%u", req
->info_size
);
1305 dump_varargs_startup_info( ", info=", min(cur_size
,req
->info_size
) );
1306 dump_varargs_unicode_str( ", env=", cur_size
);
1309 static void dump_init_process_done_request( const struct init_process_done_request
*req
)
1311 fprintf( stderr
, " gui=%d", req
->gui
);
1312 dump_uint64( ", module=", &req
->module
);
1313 dump_uint64( ", ldt_copy=", &req
->ldt_copy
);
1314 dump_uint64( ", entry=", &req
->entry
);
1317 static void dump_init_process_done_reply( const struct init_process_done_reply
*req
)
1319 fprintf( stderr
, " suspend=%d", req
->suspend
);
1322 static void dump_init_thread_request( const struct init_thread_request
*req
)
1324 fprintf( stderr
, " unix_pid=%d", req
->unix_pid
);
1325 fprintf( stderr
, ", unix_tid=%d", req
->unix_tid
);
1326 fprintf( stderr
, ", debug_level=%d", req
->debug_level
);
1327 dump_uint64( ", teb=", &req
->teb
);
1328 dump_uint64( ", entry=", &req
->entry
);
1329 fprintf( stderr
, ", reply_fd=%d", req
->reply_fd
);
1330 fprintf( stderr
, ", wait_fd=%d", req
->wait_fd
);
1331 dump_client_cpu( ", cpu=", &req
->cpu
);
1334 static void dump_init_thread_reply( const struct init_thread_reply
*req
)
1336 fprintf( stderr
, " pid=%04x", req
->pid
);
1337 fprintf( stderr
, ", tid=%04x", req
->tid
);
1338 dump_timeout( ", server_start=", &req
->server_start
);
1339 fprintf( stderr
, ", info_size=%u", req
->info_size
);
1340 fprintf( stderr
, ", version=%d", req
->version
);
1341 fprintf( stderr
, ", all_cpus=%08x", req
->all_cpus
);
1342 fprintf( stderr
, ", suspend=%d", req
->suspend
);
1345 static void dump_terminate_process_request( const struct terminate_process_request
*req
)
1347 fprintf( stderr
, " handle=%04x", req
->handle
);
1348 fprintf( stderr
, ", exit_code=%d", req
->exit_code
);
1351 static void dump_terminate_process_reply( const struct terminate_process_reply
*req
)
1353 fprintf( stderr
, " self=%d", req
->self
);
1356 static void dump_terminate_thread_request( const struct terminate_thread_request
*req
)
1358 fprintf( stderr
, " handle=%04x", req
->handle
);
1359 fprintf( stderr
, ", exit_code=%d", req
->exit_code
);
1362 static void dump_terminate_thread_reply( const struct terminate_thread_reply
*req
)
1364 fprintf( stderr
, " self=%d", req
->self
);
1365 fprintf( stderr
, ", last=%d", req
->last
);
1368 static void dump_get_process_info_request( const struct get_process_info_request
*req
)
1370 fprintf( stderr
, " handle=%04x", req
->handle
);
1373 static void dump_get_process_info_reply( const struct get_process_info_reply
*req
)
1375 fprintf( stderr
, " pid=%04x", req
->pid
);
1376 fprintf( stderr
, ", ppid=%04x", req
->ppid
);
1377 dump_uint64( ", affinity=", &req
->affinity
);
1378 dump_uint64( ", peb=", &req
->peb
);
1379 dump_timeout( ", start_time=", &req
->start_time
);
1380 dump_timeout( ", end_time=", &req
->end_time
);
1381 fprintf( stderr
, ", exit_code=%d", req
->exit_code
);
1382 fprintf( stderr
, ", priority=%d", req
->priority
);
1383 dump_client_cpu( ", cpu=", &req
->cpu
);
1384 fprintf( stderr
, ", debugger_present=%d", req
->debugger_present
);
1385 fprintf( stderr
, ", debug_children=%d", req
->debug_children
);
1388 static void dump_get_process_vm_counters_request( const struct get_process_vm_counters_request
*req
)
1390 fprintf( stderr
, " handle=%04x", req
->handle
);
1393 static void dump_get_process_vm_counters_reply( const struct get_process_vm_counters_reply
*req
)
1395 dump_uint64( " peak_virtual_size=", &req
->peak_virtual_size
);
1396 dump_uint64( ", virtual_size=", &req
->virtual_size
);
1397 dump_uint64( ", peak_working_set_size=", &req
->peak_working_set_size
);
1398 dump_uint64( ", working_set_size=", &req
->working_set_size
);
1399 dump_uint64( ", pagefile_usage=", &req
->pagefile_usage
);
1400 dump_uint64( ", peak_pagefile_usage=", &req
->peak_pagefile_usage
);
1403 static void dump_set_process_info_request( const struct set_process_info_request
*req
)
1405 fprintf( stderr
, " handle=%04x", req
->handle
);
1406 fprintf( stderr
, ", mask=%d", req
->mask
);
1407 fprintf( stderr
, ", priority=%d", req
->priority
);
1408 dump_uint64( ", affinity=", &req
->affinity
);
1411 static void dump_get_thread_info_request( const struct get_thread_info_request
*req
)
1413 fprintf( stderr
, " handle=%04x", req
->handle
);
1414 fprintf( stderr
, ", tid_in=%04x", req
->tid_in
);
1417 static void dump_get_thread_info_reply( const struct get_thread_info_reply
*req
)
1419 fprintf( stderr
, " pid=%04x", req
->pid
);
1420 fprintf( stderr
, ", tid=%04x", req
->tid
);
1421 dump_uint64( ", teb=", &req
->teb
);
1422 dump_uint64( ", entry_point=", &req
->entry_point
);
1423 dump_uint64( ", affinity=", &req
->affinity
);
1424 fprintf( stderr
, ", exit_code=%d", req
->exit_code
);
1425 fprintf( stderr
, ", priority=%d", req
->priority
);
1426 fprintf( stderr
, ", last=%d", req
->last
);
1427 fprintf( stderr
, ", suspend_count=%d", req
->suspend_count
);
1428 fprintf( stderr
, ", desc_len=%u", req
->desc_len
);
1429 dump_varargs_unicode_str( ", desc=", cur_size
);
1432 static void dump_get_thread_times_request( const struct get_thread_times_request
*req
)
1434 fprintf( stderr
, " handle=%04x", req
->handle
);
1437 static void dump_get_thread_times_reply( const struct get_thread_times_reply
*req
)
1439 dump_timeout( " creation_time=", &req
->creation_time
);
1440 dump_timeout( ", exit_time=", &req
->exit_time
);
1443 static void dump_set_thread_info_request( const struct set_thread_info_request
*req
)
1445 fprintf( stderr
, " handle=%04x", req
->handle
);
1446 fprintf( stderr
, ", mask=%d", req
->mask
);
1447 fprintf( stderr
, ", priority=%d", req
->priority
);
1448 dump_uint64( ", affinity=", &req
->affinity
);
1449 dump_uint64( ", entry_point=", &req
->entry_point
);
1450 fprintf( stderr
, ", token=%04x", req
->token
);
1451 dump_varargs_unicode_str( ", desc=", cur_size
);
1454 static void dump_get_dll_info_request( const struct get_dll_info_request
*req
)
1456 fprintf( stderr
, " handle=%04x", req
->handle
);
1457 dump_uint64( ", base_address=", &req
->base_address
);
1460 static void dump_get_dll_info_reply( const struct get_dll_info_reply
*req
)
1462 dump_uint64( " entry_point=", &req
->entry_point
);
1463 fprintf( stderr
, ", filename_len=%u", req
->filename_len
);
1464 dump_varargs_unicode_str( ", filename=", cur_size
);
1467 static void dump_suspend_thread_request( const struct suspend_thread_request
*req
)
1469 fprintf( stderr
, " handle=%04x", req
->handle
);
1472 static void dump_suspend_thread_reply( const struct suspend_thread_reply
*req
)
1474 fprintf( stderr
, " count=%d", req
->count
);
1477 static void dump_resume_thread_request( const struct resume_thread_request
*req
)
1479 fprintf( stderr
, " handle=%04x", req
->handle
);
1482 static void dump_resume_thread_reply( const struct resume_thread_reply
*req
)
1484 fprintf( stderr
, " count=%d", req
->count
);
1487 static void dump_load_dll_request( const struct load_dll_request
*req
)
1489 fprintf( stderr
, " dbg_offset=%u", req
->dbg_offset
);
1490 dump_uint64( ", base=", &req
->base
);
1491 dump_uint64( ", name=", &req
->name
);
1492 fprintf( stderr
, ", dbg_size=%u", req
->dbg_size
);
1493 dump_varargs_unicode_str( ", filename=", cur_size
);
1496 static void dump_unload_dll_request( const struct unload_dll_request
*req
)
1498 dump_uint64( " base=", &req
->base
);
1501 static void dump_queue_apc_request( const struct queue_apc_request
*req
)
1503 fprintf( stderr
, " handle=%04x", req
->handle
);
1504 dump_apc_call( ", call=", &req
->call
);
1507 static void dump_queue_apc_reply( const struct queue_apc_reply
*req
)
1509 fprintf( stderr
, " handle=%04x", req
->handle
);
1510 fprintf( stderr
, ", self=%d", req
->self
);
1513 static void dump_get_apc_result_request( const struct get_apc_result_request
*req
)
1515 fprintf( stderr
, " handle=%04x", req
->handle
);
1518 static void dump_get_apc_result_reply( const struct get_apc_result_reply
*req
)
1520 dump_apc_result( " result=", &req
->result
);
1523 static void dump_close_handle_request( const struct close_handle_request
*req
)
1525 fprintf( stderr
, " handle=%04x", req
->handle
);
1528 static void dump_set_handle_info_request( const struct set_handle_info_request
*req
)
1530 fprintf( stderr
, " handle=%04x", req
->handle
);
1531 fprintf( stderr
, ", flags=%d", req
->flags
);
1532 fprintf( stderr
, ", mask=%d", req
->mask
);
1535 static void dump_set_handle_info_reply( const struct set_handle_info_reply
*req
)
1537 fprintf( stderr
, " old_flags=%d", req
->old_flags
);
1540 static void dump_dup_handle_request( const struct dup_handle_request
*req
)
1542 fprintf( stderr
, " src_process=%04x", req
->src_process
);
1543 fprintf( stderr
, ", src_handle=%04x", req
->src_handle
);
1544 fprintf( stderr
, ", dst_process=%04x", req
->dst_process
);
1545 fprintf( stderr
, ", access=%08x", req
->access
);
1546 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1547 fprintf( stderr
, ", options=%08x", req
->options
);
1550 static void dump_dup_handle_reply( const struct dup_handle_reply
*req
)
1552 fprintf( stderr
, " handle=%04x", req
->handle
);
1553 fprintf( stderr
, ", self=%d", req
->self
);
1554 fprintf( stderr
, ", closed=%d", req
->closed
);
1557 static void dump_open_process_request( const struct open_process_request
*req
)
1559 fprintf( stderr
, " pid=%04x", req
->pid
);
1560 fprintf( stderr
, ", access=%08x", req
->access
);
1561 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1564 static void dump_open_process_reply( const struct open_process_reply
*req
)
1566 fprintf( stderr
, " handle=%04x", req
->handle
);
1569 static void dump_open_thread_request( const struct open_thread_request
*req
)
1571 fprintf( stderr
, " tid=%04x", req
->tid
);
1572 fprintf( stderr
, ", access=%08x", req
->access
);
1573 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1576 static void dump_open_thread_reply( const struct open_thread_reply
*req
)
1578 fprintf( stderr
, " handle=%04x", req
->handle
);
1581 static void dump_select_request( const struct select_request
*req
)
1583 fprintf( stderr
, " flags=%d", req
->flags
);
1584 dump_uint64( ", cookie=", &req
->cookie
);
1585 dump_timeout( ", timeout=", &req
->timeout
);
1586 fprintf( stderr
, ", prev_apc=%04x", req
->prev_apc
);
1587 dump_varargs_apc_result( ", result=", cur_size
);
1588 dump_varargs_select_op( ", data=", cur_size
);
1591 static void dump_select_reply( const struct select_reply
*req
)
1593 dump_timeout( " timeout=", &req
->timeout
);
1594 dump_apc_call( ", call=", &req
->call
);
1595 fprintf( stderr
, ", apc_handle=%04x", req
->apc_handle
);
1598 static void dump_create_event_request( const struct create_event_request
*req
)
1600 fprintf( stderr
, " access=%08x", req
->access
);
1601 fprintf( stderr
, ", manual_reset=%d", req
->manual_reset
);
1602 fprintf( stderr
, ", initial_state=%d", req
->initial_state
);
1603 dump_varargs_object_attributes( ", objattr=", cur_size
);
1606 static void dump_create_event_reply( const struct create_event_reply
*req
)
1608 fprintf( stderr
, " handle=%04x", req
->handle
);
1611 static void dump_event_op_request( const struct event_op_request
*req
)
1613 fprintf( stderr
, " handle=%04x", req
->handle
);
1614 fprintf( stderr
, ", op=%d", req
->op
);
1617 static void dump_event_op_reply( const struct event_op_reply
*req
)
1619 fprintf( stderr
, " state=%d", req
->state
);
1622 static void dump_query_event_request( const struct query_event_request
*req
)
1624 fprintf( stderr
, " handle=%04x", req
->handle
);
1627 static void dump_query_event_reply( const struct query_event_reply
*req
)
1629 fprintf( stderr
, " manual_reset=%d", req
->manual_reset
);
1630 fprintf( stderr
, ", state=%d", req
->state
);
1633 static void dump_open_event_request( const struct open_event_request
*req
)
1635 fprintf( stderr
, " access=%08x", req
->access
);
1636 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1637 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
1638 dump_varargs_unicode_str( ", name=", cur_size
);
1641 static void dump_open_event_reply( const struct open_event_reply
*req
)
1643 fprintf( stderr
, " handle=%04x", req
->handle
);
1646 static void dump_create_keyed_event_request( const struct create_keyed_event_request
*req
)
1648 fprintf( stderr
, " access=%08x", req
->access
);
1649 dump_varargs_object_attributes( ", objattr=", cur_size
);
1652 static void dump_create_keyed_event_reply( const struct create_keyed_event_reply
*req
)
1654 fprintf( stderr
, " handle=%04x", req
->handle
);
1657 static void dump_open_keyed_event_request( const struct open_keyed_event_request
*req
)
1659 fprintf( stderr
, " access=%08x", req
->access
);
1660 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1661 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
1662 dump_varargs_unicode_str( ", name=", cur_size
);
1665 static void dump_open_keyed_event_reply( const struct open_keyed_event_reply
*req
)
1667 fprintf( stderr
, " handle=%04x", req
->handle
);
1670 static void dump_create_mutex_request( const struct create_mutex_request
*req
)
1672 fprintf( stderr
, " access=%08x", req
->access
);
1673 fprintf( stderr
, ", owned=%d", req
->owned
);
1674 dump_varargs_object_attributes( ", objattr=", cur_size
);
1677 static void dump_create_mutex_reply( const struct create_mutex_reply
*req
)
1679 fprintf( stderr
, " handle=%04x", req
->handle
);
1682 static void dump_release_mutex_request( const struct release_mutex_request
*req
)
1684 fprintf( stderr
, " handle=%04x", req
->handle
);
1687 static void dump_release_mutex_reply( const struct release_mutex_reply
*req
)
1689 fprintf( stderr
, " prev_count=%08x", req
->prev_count
);
1692 static void dump_open_mutex_request( const struct open_mutex_request
*req
)
1694 fprintf( stderr
, " access=%08x", req
->access
);
1695 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1696 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
1697 dump_varargs_unicode_str( ", name=", cur_size
);
1700 static void dump_open_mutex_reply( const struct open_mutex_reply
*req
)
1702 fprintf( stderr
, " handle=%04x", req
->handle
);
1705 static void dump_query_mutex_request( const struct query_mutex_request
*req
)
1707 fprintf( stderr
, " handle=%04x", req
->handle
);
1710 static void dump_query_mutex_reply( const struct query_mutex_reply
*req
)
1712 fprintf( stderr
, " count=%08x", req
->count
);
1713 fprintf( stderr
, ", owned=%d", req
->owned
);
1714 fprintf( stderr
, ", abandoned=%d", req
->abandoned
);
1717 static void dump_create_semaphore_request( const struct create_semaphore_request
*req
)
1719 fprintf( stderr
, " access=%08x", req
->access
);
1720 fprintf( stderr
, ", initial=%08x", req
->initial
);
1721 fprintf( stderr
, ", max=%08x", req
->max
);
1722 dump_varargs_object_attributes( ", objattr=", cur_size
);
1725 static void dump_create_semaphore_reply( const struct create_semaphore_reply
*req
)
1727 fprintf( stderr
, " handle=%04x", req
->handle
);
1730 static void dump_release_semaphore_request( const struct release_semaphore_request
*req
)
1732 fprintf( stderr
, " handle=%04x", req
->handle
);
1733 fprintf( stderr
, ", count=%08x", req
->count
);
1736 static void dump_release_semaphore_reply( const struct release_semaphore_reply
*req
)
1738 fprintf( stderr
, " prev_count=%08x", req
->prev_count
);
1741 static void dump_query_semaphore_request( const struct query_semaphore_request
*req
)
1743 fprintf( stderr
, " handle=%04x", req
->handle
);
1746 static void dump_query_semaphore_reply( const struct query_semaphore_reply
*req
)
1748 fprintf( stderr
, " current=%08x", req
->current
);
1749 fprintf( stderr
, ", max=%08x", req
->max
);
1752 static void dump_open_semaphore_request( const struct open_semaphore_request
*req
)
1754 fprintf( stderr
, " access=%08x", req
->access
);
1755 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1756 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
1757 dump_varargs_unicode_str( ", name=", cur_size
);
1760 static void dump_open_semaphore_reply( const struct open_semaphore_reply
*req
)
1762 fprintf( stderr
, " handle=%04x", req
->handle
);
1765 static void dump_create_file_request( const struct create_file_request
*req
)
1767 fprintf( stderr
, " access=%08x", req
->access
);
1768 fprintf( stderr
, ", sharing=%08x", req
->sharing
);
1769 fprintf( stderr
, ", create=%d", req
->create
);
1770 fprintf( stderr
, ", options=%08x", req
->options
);
1771 fprintf( stderr
, ", attrs=%08x", req
->attrs
);
1772 dump_varargs_object_attributes( ", objattr=", cur_size
);
1773 dump_varargs_string( ", filename=", cur_size
);
1776 static void dump_create_file_reply( const struct create_file_reply
*req
)
1778 fprintf( stderr
, " handle=%04x", req
->handle
);
1781 static void dump_open_file_object_request( const struct open_file_object_request
*req
)
1783 fprintf( stderr
, " access=%08x", req
->access
);
1784 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1785 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
1786 fprintf( stderr
, ", sharing=%08x", req
->sharing
);
1787 fprintf( stderr
, ", options=%08x", req
->options
);
1788 dump_varargs_unicode_str( ", filename=", cur_size
);
1791 static void dump_open_file_object_reply( const struct open_file_object_reply
*req
)
1793 fprintf( stderr
, " handle=%04x", req
->handle
);
1796 static void dump_alloc_file_handle_request( const struct alloc_file_handle_request
*req
)
1798 fprintf( stderr
, " access=%08x", req
->access
);
1799 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1800 fprintf( stderr
, ", fd=%d", req
->fd
);
1803 static void dump_alloc_file_handle_reply( const struct alloc_file_handle_reply
*req
)
1805 fprintf( stderr
, " handle=%04x", req
->handle
);
1808 static void dump_get_handle_unix_name_request( const struct get_handle_unix_name_request
*req
)
1810 fprintf( stderr
, " handle=%04x", req
->handle
);
1813 static void dump_get_handle_unix_name_reply( const struct get_handle_unix_name_reply
*req
)
1815 fprintf( stderr
, " name_len=%u", req
->name_len
);
1816 dump_varargs_string( ", name=", cur_size
);
1819 static void dump_get_handle_fd_request( const struct get_handle_fd_request
*req
)
1821 fprintf( stderr
, " handle=%04x", req
->handle
);
1824 static void dump_get_handle_fd_reply( const struct get_handle_fd_reply
*req
)
1826 fprintf( stderr
, " type=%d", req
->type
);
1827 fprintf( stderr
, ", cacheable=%d", req
->cacheable
);
1828 fprintf( stderr
, ", access=%08x", req
->access
);
1829 fprintf( stderr
, ", options=%08x", req
->options
);
1832 static void dump_get_directory_cache_entry_request( const struct get_directory_cache_entry_request
*req
)
1834 fprintf( stderr
, " handle=%04x", req
->handle
);
1837 static void dump_get_directory_cache_entry_reply( const struct get_directory_cache_entry_reply
*req
)
1839 fprintf( stderr
, " entry=%d", req
->entry
);
1840 dump_varargs_ints( ", free=", cur_size
);
1843 static void dump_flush_request( const struct flush_request
*req
)
1845 dump_async_data( " async=", &req
->async
);
1848 static void dump_flush_reply( const struct flush_reply
*req
)
1850 fprintf( stderr
, " event=%04x", req
->event
);
1853 static void dump_get_file_info_request( const struct get_file_info_request
*req
)
1855 fprintf( stderr
, " handle=%04x", req
->handle
);
1856 fprintf( stderr
, ", info_class=%08x", req
->info_class
);
1859 static void dump_get_file_info_reply( const struct get_file_info_reply
*req
)
1861 dump_varargs_bytes( " data=", cur_size
);
1864 static void dump_get_volume_info_request( const struct get_volume_info_request
*req
)
1866 fprintf( stderr
, " handle=%04x", req
->handle
);
1867 fprintf( stderr
, ", info_class=%08x", req
->info_class
);
1870 static void dump_get_volume_info_reply( const struct get_volume_info_reply
*req
)
1872 dump_varargs_bytes( " data=", cur_size
);
1875 static void dump_lock_file_request( const struct lock_file_request
*req
)
1877 fprintf( stderr
, " handle=%04x", req
->handle
);
1878 dump_uint64( ", offset=", &req
->offset
);
1879 dump_uint64( ", count=", &req
->count
);
1880 fprintf( stderr
, ", shared=%d", req
->shared
);
1881 fprintf( stderr
, ", wait=%d", req
->wait
);
1884 static void dump_lock_file_reply( const struct lock_file_reply
*req
)
1886 fprintf( stderr
, " handle=%04x", req
->handle
);
1887 fprintf( stderr
, ", overlapped=%d", req
->overlapped
);
1890 static void dump_unlock_file_request( const struct unlock_file_request
*req
)
1892 fprintf( stderr
, " handle=%04x", req
->handle
);
1893 dump_uint64( ", offset=", &req
->offset
);
1894 dump_uint64( ", count=", &req
->count
);
1897 static void dump_create_socket_request( const struct create_socket_request
*req
)
1899 fprintf( stderr
, " access=%08x", req
->access
);
1900 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1901 fprintf( stderr
, ", family=%d", req
->family
);
1902 fprintf( stderr
, ", type=%d", req
->type
);
1903 fprintf( stderr
, ", protocol=%d", req
->protocol
);
1904 fprintf( stderr
, ", flags=%08x", req
->flags
);
1907 static void dump_create_socket_reply( const struct create_socket_reply
*req
)
1909 fprintf( stderr
, " handle=%04x", req
->handle
);
1912 static void dump_accept_socket_request( const struct accept_socket_request
*req
)
1914 fprintf( stderr
, " lhandle=%04x", req
->lhandle
);
1915 fprintf( stderr
, ", access=%08x", req
->access
);
1916 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1919 static void dump_accept_socket_reply( const struct accept_socket_reply
*req
)
1921 fprintf( stderr
, " handle=%04x", req
->handle
);
1924 static void dump_accept_into_socket_request( const struct accept_into_socket_request
*req
)
1926 fprintf( stderr
, " lhandle=%04x", req
->lhandle
);
1927 fprintf( stderr
, ", ahandle=%04x", req
->ahandle
);
1930 static void dump_set_socket_event_request( const struct set_socket_event_request
*req
)
1932 fprintf( stderr
, " handle=%04x", req
->handle
);
1933 fprintf( stderr
, ", mask=%08x", req
->mask
);
1934 fprintf( stderr
, ", event=%04x", req
->event
);
1935 fprintf( stderr
, ", window=%08x", req
->window
);
1936 fprintf( stderr
, ", msg=%08x", req
->msg
);
1939 static void dump_get_socket_event_request( const struct get_socket_event_request
*req
)
1941 fprintf( stderr
, " handle=%04x", req
->handle
);
1942 fprintf( stderr
, ", service=%d", req
->service
);
1943 fprintf( stderr
, ", c_event=%04x", req
->c_event
);
1946 static void dump_get_socket_event_reply( const struct get_socket_event_reply
*req
)
1948 fprintf( stderr
, " mask=%08x", req
->mask
);
1949 fprintf( stderr
, ", pmask=%08x", req
->pmask
);
1950 fprintf( stderr
, ", state=%08x", req
->state
);
1951 dump_varargs_ints( ", errors=", cur_size
);
1954 static void dump_get_socket_info_request( const struct get_socket_info_request
*req
)
1956 fprintf( stderr
, " handle=%04x", req
->handle
);
1959 static void dump_get_socket_info_reply( const struct get_socket_info_reply
*req
)
1961 fprintf( stderr
, " family=%d", req
->family
);
1962 fprintf( stderr
, ", type=%d", req
->type
);
1963 fprintf( stderr
, ", protocol=%d", req
->protocol
);
1966 static void dump_enable_socket_event_request( const struct enable_socket_event_request
*req
)
1968 fprintf( stderr
, " handle=%04x", req
->handle
);
1969 fprintf( stderr
, ", mask=%08x", req
->mask
);
1970 fprintf( stderr
, ", sstate=%08x", req
->sstate
);
1971 fprintf( stderr
, ", cstate=%08x", req
->cstate
);
1974 static void dump_set_socket_deferred_request( const struct set_socket_deferred_request
*req
)
1976 fprintf( stderr
, " handle=%04x", req
->handle
);
1977 fprintf( stderr
, ", deferred=%04x", req
->deferred
);
1980 static void dump_alloc_console_request( const struct alloc_console_request
*req
)
1982 fprintf( stderr
, " access=%08x", req
->access
);
1983 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1984 fprintf( stderr
, ", pid=%04x", req
->pid
);
1985 fprintf( stderr
, ", input_fd=%d", req
->input_fd
);
1988 static void dump_alloc_console_reply( const struct alloc_console_reply
*req
)
1990 fprintf( stderr
, " handle_in=%04x", req
->handle_in
);
1991 fprintf( stderr
, ", event=%04x", req
->event
);
1994 static void dump_free_console_request( const struct free_console_request
*req
)
1998 static void dump_get_console_renderer_events_request( const struct get_console_renderer_events_request
*req
)
2000 fprintf( stderr
, " handle=%04x", req
->handle
);
2003 static void dump_get_console_renderer_events_reply( const struct get_console_renderer_events_reply
*req
)
2005 dump_varargs_bytes( " data=", cur_size
);
2008 static void dump_open_console_request( const struct open_console_request
*req
)
2010 fprintf( stderr
, " from=%04x", req
->from
);
2011 fprintf( stderr
, ", access=%08x", req
->access
);
2012 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
2013 fprintf( stderr
, ", share=%d", req
->share
);
2016 static void dump_open_console_reply( const struct open_console_reply
*req
)
2018 fprintf( stderr
, " handle=%04x", req
->handle
);
2021 static void dump_attach_console_request( const struct attach_console_request
*req
)
2023 fprintf( stderr
, " pid=%04x", req
->pid
);
2026 static void dump_attach_console_reply( const struct attach_console_reply
*req
)
2028 fprintf( stderr
, " std_in=%04x", req
->std_in
);
2029 fprintf( stderr
, ", std_out=%04x", req
->std_out
);
2030 fprintf( stderr
, ", std_err=%04x", req
->std_err
);
2033 static void dump_get_console_wait_event_request( const struct get_console_wait_event_request
*req
)
2035 fprintf( stderr
, " handle=%04x", req
->handle
);
2038 static void dump_get_console_wait_event_reply( const struct get_console_wait_event_reply
*req
)
2040 fprintf( stderr
, " event=%04x", req
->event
);
2043 static void dump_get_console_mode_request( const struct get_console_mode_request
*req
)
2045 fprintf( stderr
, " handle=%04x", req
->handle
);
2048 static void dump_get_console_mode_reply( const struct get_console_mode_reply
*req
)
2050 fprintf( stderr
, " mode=%d", req
->mode
);
2053 static void dump_set_console_mode_request( const struct set_console_mode_request
*req
)
2055 fprintf( stderr
, " handle=%04x", req
->handle
);
2056 fprintf( stderr
, ", mode=%d", req
->mode
);
2059 static void dump_set_console_input_info_request( const struct set_console_input_info_request
*req
)
2061 fprintf( stderr
, " handle=%04x", req
->handle
);
2062 fprintf( stderr
, ", mask=%d", req
->mask
);
2063 fprintf( stderr
, ", active_sb=%04x", req
->active_sb
);
2064 fprintf( stderr
, ", history_mode=%d", req
->history_mode
);
2065 fprintf( stderr
, ", history_size=%d", req
->history_size
);
2066 fprintf( stderr
, ", edition_mode=%d", req
->edition_mode
);
2067 fprintf( stderr
, ", input_cp=%d", req
->input_cp
);
2068 fprintf( stderr
, ", output_cp=%d", req
->output_cp
);
2069 fprintf( stderr
, ", win=%08x", req
->win
);
2070 dump_varargs_unicode_str( ", title=", cur_size
);
2073 static void dump_get_console_input_info_request( const struct get_console_input_info_request
*req
)
2075 fprintf( stderr
, " handle=%04x", req
->handle
);
2078 static void dump_get_console_input_info_reply( const struct get_console_input_info_reply
*req
)
2080 fprintf( stderr
, " history_mode=%d", req
->history_mode
);
2081 fprintf( stderr
, ", history_size=%d", req
->history_size
);
2082 fprintf( stderr
, ", history_index=%d", req
->history_index
);
2083 fprintf( stderr
, ", edition_mode=%d", req
->edition_mode
);
2084 fprintf( stderr
, ", input_cp=%d", req
->input_cp
);
2085 fprintf( stderr
, ", output_cp=%d", req
->output_cp
);
2086 fprintf( stderr
, ", win=%08x", req
->win
);
2087 dump_varargs_unicode_str( ", title=", cur_size
);
2090 static void dump_append_console_input_history_request( const struct append_console_input_history_request
*req
)
2092 fprintf( stderr
, " handle=%04x", req
->handle
);
2093 dump_varargs_unicode_str( ", line=", cur_size
);
2096 static void dump_get_console_input_history_request( const struct get_console_input_history_request
*req
)
2098 fprintf( stderr
, " handle=%04x", req
->handle
);
2099 fprintf( stderr
, ", index=%d", req
->index
);
2102 static void dump_get_console_input_history_reply( const struct get_console_input_history_reply
*req
)
2104 fprintf( stderr
, " total=%d", req
->total
);
2105 dump_varargs_unicode_str( ", line=", cur_size
);
2108 static void dump_create_console_output_request( const struct create_console_output_request
*req
)
2110 fprintf( stderr
, " handle_in=%04x", req
->handle_in
);
2111 fprintf( stderr
, ", access=%08x", req
->access
);
2112 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
2113 fprintf( stderr
, ", share=%08x", req
->share
);
2114 fprintf( stderr
, ", fd=%d", req
->fd
);
2117 static void dump_create_console_output_reply( const struct create_console_output_reply
*req
)
2119 fprintf( stderr
, " handle_out=%04x", req
->handle_out
);
2122 static void dump_set_console_output_info_request( const struct set_console_output_info_request
*req
)
2124 fprintf( stderr
, " handle=%04x", req
->handle
);
2125 fprintf( stderr
, ", mask=%d", req
->mask
);
2126 fprintf( stderr
, ", cursor_size=%d", req
->cursor_size
);
2127 fprintf( stderr
, ", cursor_visible=%d", req
->cursor_visible
);
2128 fprintf( stderr
, ", cursor_x=%d", req
->cursor_x
);
2129 fprintf( stderr
, ", cursor_y=%d", req
->cursor_y
);
2130 fprintf( stderr
, ", width=%d", req
->width
);
2131 fprintf( stderr
, ", height=%d", req
->height
);
2132 fprintf( stderr
, ", attr=%d", req
->attr
);
2133 fprintf( stderr
, ", popup_attr=%d", req
->popup_attr
);
2134 fprintf( stderr
, ", win_left=%d", req
->win_left
);
2135 fprintf( stderr
, ", win_top=%d", req
->win_top
);
2136 fprintf( stderr
, ", win_right=%d", req
->win_right
);
2137 fprintf( stderr
, ", win_bottom=%d", req
->win_bottom
);
2138 fprintf( stderr
, ", max_width=%d", req
->max_width
);
2139 fprintf( stderr
, ", max_height=%d", req
->max_height
);
2140 fprintf( stderr
, ", font_width=%d", req
->font_width
);
2141 fprintf( stderr
, ", font_height=%d", req
->font_height
);
2142 fprintf( stderr
, ", font_weight=%d", req
->font_weight
);
2143 fprintf( stderr
, ", font_pitch_family=%d", req
->font_pitch_family
);
2144 dump_varargs_uints( ", colors=", min(cur_size
,64) );
2145 dump_varargs_unicode_str( ", face_name=", cur_size
);
2148 static void dump_get_console_output_info_request( const struct get_console_output_info_request
*req
)
2150 fprintf( stderr
, " handle=%04x", req
->handle
);
2153 static void dump_get_console_output_info_reply( const struct get_console_output_info_reply
*req
)
2155 fprintf( stderr
, " cursor_size=%d", req
->cursor_size
);
2156 fprintf( stderr
, ", cursor_visible=%d", req
->cursor_visible
);
2157 fprintf( stderr
, ", cursor_x=%d", req
->cursor_x
);
2158 fprintf( stderr
, ", cursor_y=%d", req
->cursor_y
);
2159 fprintf( stderr
, ", width=%d", req
->width
);
2160 fprintf( stderr
, ", height=%d", req
->height
);
2161 fprintf( stderr
, ", attr=%d", req
->attr
);
2162 fprintf( stderr
, ", popup_attr=%d", req
->popup_attr
);
2163 fprintf( stderr
, ", win_left=%d", req
->win_left
);
2164 fprintf( stderr
, ", win_top=%d", req
->win_top
);
2165 fprintf( stderr
, ", win_right=%d", req
->win_right
);
2166 fprintf( stderr
, ", win_bottom=%d", req
->win_bottom
);
2167 fprintf( stderr
, ", max_width=%d", req
->max_width
);
2168 fprintf( stderr
, ", max_height=%d", req
->max_height
);
2169 fprintf( stderr
, ", font_width=%d", req
->font_width
);
2170 fprintf( stderr
, ", font_height=%d", req
->font_height
);
2171 fprintf( stderr
, ", font_weight=%d", req
->font_weight
);
2172 fprintf( stderr
, ", font_pitch_family=%d", req
->font_pitch_family
);
2173 dump_varargs_uints( ", colors=", min(cur_size
,64) );
2174 dump_varargs_unicode_str( ", face_name=", cur_size
);
2177 static void dump_write_console_input_request( const struct write_console_input_request
*req
)
2179 fprintf( stderr
, " handle=%04x", req
->handle
);
2180 dump_varargs_input_records( ", rec=", cur_size
);
2183 static void dump_write_console_input_reply( const struct write_console_input_reply
*req
)
2185 fprintf( stderr
, " written=%d", req
->written
);
2188 static void dump_read_console_input_request( const struct read_console_input_request
*req
)
2190 fprintf( stderr
, " handle=%04x", req
->handle
);
2191 fprintf( stderr
, ", flush=%d", req
->flush
);
2194 static void dump_read_console_input_reply( const struct read_console_input_reply
*req
)
2196 fprintf( stderr
, " read=%d", req
->read
);
2197 dump_varargs_input_records( ", rec=", cur_size
);
2200 static void dump_write_console_output_request( const struct write_console_output_request
*req
)
2202 fprintf( stderr
, " handle=%04x", req
->handle
);
2203 fprintf( stderr
, ", x=%d", req
->x
);
2204 fprintf( stderr
, ", y=%d", req
->y
);
2205 fprintf( stderr
, ", mode=%d", req
->mode
);
2206 fprintf( stderr
, ", wrap=%d", req
->wrap
);
2207 dump_varargs_bytes( ", data=", cur_size
);
2210 static void dump_write_console_output_reply( const struct write_console_output_reply
*req
)
2212 fprintf( stderr
, " written=%d", req
->written
);
2213 fprintf( stderr
, ", width=%d", req
->width
);
2214 fprintf( stderr
, ", height=%d", req
->height
);
2217 static void dump_fill_console_output_request( const struct fill_console_output_request
*req
)
2219 fprintf( stderr
, " handle=%04x", req
->handle
);
2220 fprintf( stderr
, ", x=%d", req
->x
);
2221 fprintf( stderr
, ", y=%d", req
->y
);
2222 fprintf( stderr
, ", mode=%d", req
->mode
);
2223 fprintf( stderr
, ", count=%d", req
->count
);
2224 fprintf( stderr
, ", wrap=%d", req
->wrap
);
2225 dump_char_info( ", data=", &req
->data
);
2228 static void dump_fill_console_output_reply( const struct fill_console_output_reply
*req
)
2230 fprintf( stderr
, " written=%d", req
->written
);
2233 static void dump_read_console_output_request( const struct read_console_output_request
*req
)
2235 fprintf( stderr
, " handle=%04x", req
->handle
);
2236 fprintf( stderr
, ", x=%d", req
->x
);
2237 fprintf( stderr
, ", y=%d", req
->y
);
2238 fprintf( stderr
, ", mode=%d", req
->mode
);
2239 fprintf( stderr
, ", wrap=%d", req
->wrap
);
2242 static void dump_read_console_output_reply( const struct read_console_output_reply
*req
)
2244 fprintf( stderr
, " width=%d", req
->width
);
2245 fprintf( stderr
, ", height=%d", req
->height
);
2246 dump_varargs_bytes( ", data=", cur_size
);
2249 static void dump_move_console_output_request( const struct move_console_output_request
*req
)
2251 fprintf( stderr
, " handle=%04x", req
->handle
);
2252 fprintf( stderr
, ", x_src=%d", req
->x_src
);
2253 fprintf( stderr
, ", y_src=%d", req
->y_src
);
2254 fprintf( stderr
, ", x_dst=%d", req
->x_dst
);
2255 fprintf( stderr
, ", y_dst=%d", req
->y_dst
);
2256 fprintf( stderr
, ", w=%d", req
->w
);
2257 fprintf( stderr
, ", h=%d", req
->h
);
2260 static void dump_send_console_signal_request( const struct send_console_signal_request
*req
)
2262 fprintf( stderr
, " signal=%d", req
->signal
);
2263 fprintf( stderr
, ", group_id=%04x", req
->group_id
);
2266 static void dump_read_directory_changes_request( const struct read_directory_changes_request
*req
)
2268 fprintf( stderr
, " filter=%08x", req
->filter
);
2269 fprintf( stderr
, ", subtree=%d", req
->subtree
);
2270 fprintf( stderr
, ", want_data=%d", req
->want_data
);
2271 dump_async_data( ", async=", &req
->async
);
2274 static void dump_read_change_request( const struct read_change_request
*req
)
2276 fprintf( stderr
, " handle=%04x", req
->handle
);
2279 static void dump_read_change_reply( const struct read_change_reply
*req
)
2281 dump_varargs_filesystem_event( " events=", cur_size
);
2284 static void dump_create_mapping_request( const struct create_mapping_request
*req
)
2286 fprintf( stderr
, " access=%08x", req
->access
);
2287 fprintf( stderr
, ", flags=%08x", req
->flags
);
2288 fprintf( stderr
, ", file_access=%08x", req
->file_access
);
2289 dump_uint64( ", size=", &req
->size
);
2290 fprintf( stderr
, ", file_handle=%04x", req
->file_handle
);
2291 dump_varargs_object_attributes( ", objattr=", cur_size
);
2294 static void dump_create_mapping_reply( const struct create_mapping_reply
*req
)
2296 fprintf( stderr
, " handle=%04x", req
->handle
);
2299 static void dump_open_mapping_request( const struct open_mapping_request
*req
)
2301 fprintf( stderr
, " access=%08x", req
->access
);
2302 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
2303 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
2304 dump_varargs_unicode_str( ", name=", cur_size
);
2307 static void dump_open_mapping_reply( const struct open_mapping_reply
*req
)
2309 fprintf( stderr
, " handle=%04x", req
->handle
);
2312 static void dump_get_mapping_info_request( const struct get_mapping_info_request
*req
)
2314 fprintf( stderr
, " handle=%04x", req
->handle
);
2315 fprintf( stderr
, ", access=%08x", req
->access
);
2318 static void dump_get_mapping_info_reply( const struct get_mapping_info_reply
*req
)
2320 dump_uint64( " size=", &req
->size
);
2321 fprintf( stderr
, ", flags=%08x", req
->flags
);
2322 fprintf( stderr
, ", shared_file=%04x", req
->shared_file
);
2323 dump_varargs_pe_image_info( ", image=", cur_size
);
2326 static void dump_map_view_request( const struct map_view_request
*req
)
2328 fprintf( stderr
, " mapping=%04x", req
->mapping
);
2329 fprintf( stderr
, ", access=%08x", req
->access
);
2330 dump_uint64( ", base=", &req
->base
);
2331 dump_uint64( ", size=", &req
->size
);
2332 dump_uint64( ", start=", &req
->start
);
2335 static void dump_unmap_view_request( const struct unmap_view_request
*req
)
2337 dump_uint64( " base=", &req
->base
);
2340 static void dump_get_mapping_committed_range_request( const struct get_mapping_committed_range_request
*req
)
2342 dump_uint64( " base=", &req
->base
);
2343 dump_uint64( ", offset=", &req
->offset
);
2346 static void dump_get_mapping_committed_range_reply( const struct get_mapping_committed_range_reply
*req
)
2348 dump_uint64( " size=", &req
->size
);
2349 fprintf( stderr
, ", committed=%d", req
->committed
);
2352 static void dump_add_mapping_committed_range_request( const struct add_mapping_committed_range_request
*req
)
2354 dump_uint64( " base=", &req
->base
);
2355 dump_uint64( ", offset=", &req
->offset
);
2356 dump_uint64( ", size=", &req
->size
);
2359 static void dump_is_same_mapping_request( const struct is_same_mapping_request
*req
)
2361 dump_uint64( " base1=", &req
->base1
);
2362 dump_uint64( ", base2=", &req
->base2
);
2365 static void dump_create_snapshot_request( const struct create_snapshot_request
*req
)
2367 fprintf( stderr
, " attributes=%08x", req
->attributes
);
2368 fprintf( stderr
, ", flags=%08x", req
->flags
);
2371 static void dump_create_snapshot_reply( const struct create_snapshot_reply
*req
)
2373 fprintf( stderr
, " handle=%04x", req
->handle
);
2376 static void dump_next_process_request( const struct next_process_request
*req
)
2378 fprintf( stderr
, " handle=%04x", req
->handle
);
2379 fprintf( stderr
, ", reset=%d", req
->reset
);
2382 static void dump_next_process_reply( const struct next_process_reply
*req
)
2384 fprintf( stderr
, " count=%d", req
->count
);
2385 fprintf( stderr
, ", pid=%04x", req
->pid
);
2386 fprintf( stderr
, ", ppid=%04x", req
->ppid
);
2387 fprintf( stderr
, ", threads=%d", req
->threads
);
2388 fprintf( stderr
, ", priority=%d", req
->priority
);
2389 fprintf( stderr
, ", handles=%d", req
->handles
);
2390 fprintf( stderr
, ", unix_pid=%d", req
->unix_pid
);
2391 dump_varargs_unicode_str( ", filename=", cur_size
);
2394 static void dump_next_thread_request( const struct next_thread_request
*req
)
2396 fprintf( stderr
, " handle=%04x", req
->handle
);
2397 fprintf( stderr
, ", reset=%d", req
->reset
);
2400 static void dump_next_thread_reply( const struct next_thread_reply
*req
)
2402 fprintf( stderr
, " count=%d", req
->count
);
2403 fprintf( stderr
, ", pid=%04x", req
->pid
);
2404 fprintf( stderr
, ", tid=%04x", req
->tid
);
2405 fprintf( stderr
, ", base_pri=%d", req
->base_pri
);
2406 fprintf( stderr
, ", delta_pri=%d", req
->delta_pri
);
2409 static void dump_wait_debug_event_request( const struct wait_debug_event_request
*req
)
2411 fprintf( stderr
, " get_handle=%d", req
->get_handle
);
2414 static void dump_wait_debug_event_reply( const struct wait_debug_event_reply
*req
)
2416 fprintf( stderr
, " pid=%04x", req
->pid
);
2417 fprintf( stderr
, ", tid=%04x", req
->tid
);
2418 fprintf( stderr
, ", wait=%04x", req
->wait
);
2419 dump_varargs_debug_event( ", event=", cur_size
);
2422 static void dump_queue_exception_event_request( const struct queue_exception_event_request
*req
)
2424 fprintf( stderr
, " first=%d", req
->first
);
2425 fprintf( stderr
, ", code=%08x", req
->code
);
2426 fprintf( stderr
, ", flags=%08x", req
->flags
);
2427 dump_uint64( ", record=", &req
->record
);
2428 dump_uint64( ", address=", &req
->address
);
2429 fprintf( stderr
, ", len=%u", req
->len
);
2430 dump_varargs_uints64( ", params=", min(cur_size
,req
->len
) );
2431 dump_varargs_context( ", context=", cur_size
);
2434 static void dump_queue_exception_event_reply( const struct queue_exception_event_reply
*req
)
2436 fprintf( stderr
, " handle=%04x", req
->handle
);
2439 static void dump_get_exception_status_request( const struct get_exception_status_request
*req
)
2441 fprintf( stderr
, " handle=%04x", req
->handle
);
2444 static void dump_get_exception_status_reply( const struct get_exception_status_reply
*req
)
2446 dump_varargs_context( " context=", cur_size
);
2449 static void dump_continue_debug_event_request( const struct continue_debug_event_request
*req
)
2451 fprintf( stderr
, " pid=%04x", req
->pid
);
2452 fprintf( stderr
, ", tid=%04x", req
->tid
);
2453 fprintf( stderr
, ", status=%d", req
->status
);
2456 static void dump_debug_process_request( const struct debug_process_request
*req
)
2458 fprintf( stderr
, " pid=%04x", req
->pid
);
2459 fprintf( stderr
, ", attach=%d", req
->attach
);
2462 static void dump_set_debugger_kill_on_exit_request( const struct set_debugger_kill_on_exit_request
*req
)
2464 fprintf( stderr
, " kill_on_exit=%d", req
->kill_on_exit
);
2467 static void dump_read_process_memory_request( const struct read_process_memory_request
*req
)
2469 fprintf( stderr
, " handle=%04x", req
->handle
);
2470 dump_uint64( ", addr=", &req
->addr
);
2473 static void dump_read_process_memory_reply( const struct read_process_memory_reply
*req
)
2475 dump_varargs_bytes( " data=", cur_size
);
2478 static void dump_write_process_memory_request( const struct write_process_memory_request
*req
)
2480 fprintf( stderr
, " handle=%04x", req
->handle
);
2481 dump_uint64( ", addr=", &req
->addr
);
2482 dump_varargs_bytes( ", data=", cur_size
);
2485 static void dump_create_key_request( const struct create_key_request
*req
)
2487 fprintf( stderr
, " access=%08x", req
->access
);
2488 fprintf( stderr
, ", options=%08x", req
->options
);
2489 dump_varargs_object_attributes( ", objattr=", cur_size
);
2490 dump_varargs_unicode_str( ", class=", cur_size
);
2493 static void dump_create_key_reply( const struct create_key_reply
*req
)
2495 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2496 fprintf( stderr
, ", created=%d", req
->created
);
2499 static void dump_open_key_request( const struct open_key_request
*req
)
2501 fprintf( stderr
, " parent=%04x", req
->parent
);
2502 fprintf( stderr
, ", access=%08x", req
->access
);
2503 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
2504 dump_varargs_unicode_str( ", name=", cur_size
);
2507 static void dump_open_key_reply( const struct open_key_reply
*req
)
2509 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2512 static void dump_delete_key_request( const struct delete_key_request
*req
)
2514 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2517 static void dump_flush_key_request( const struct flush_key_request
*req
)
2519 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2522 static void dump_enum_key_request( const struct enum_key_request
*req
)
2524 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2525 fprintf( stderr
, ", index=%d", req
->index
);
2526 fprintf( stderr
, ", info_class=%d", req
->info_class
);
2529 static void dump_enum_key_reply( const struct enum_key_reply
*req
)
2531 fprintf( stderr
, " subkeys=%d", req
->subkeys
);
2532 fprintf( stderr
, ", max_subkey=%d", req
->max_subkey
);
2533 fprintf( stderr
, ", max_class=%d", req
->max_class
);
2534 fprintf( stderr
, ", values=%d", req
->values
);
2535 fprintf( stderr
, ", max_value=%d", req
->max_value
);
2536 fprintf( stderr
, ", max_data=%d", req
->max_data
);
2537 dump_timeout( ", modif=", &req
->modif
);
2538 fprintf( stderr
, ", total=%u", req
->total
);
2539 fprintf( stderr
, ", namelen=%u", req
->namelen
);
2540 dump_varargs_unicode_str( ", name=", min(cur_size
,req
->namelen
) );
2541 dump_varargs_unicode_str( ", class=", cur_size
);
2544 static void dump_set_key_value_request( const struct set_key_value_request
*req
)
2546 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2547 fprintf( stderr
, ", type=%d", req
->type
);
2548 fprintf( stderr
, ", namelen=%u", req
->namelen
);
2549 dump_varargs_unicode_str( ", name=", min(cur_size
,req
->namelen
) );
2550 dump_varargs_bytes( ", data=", cur_size
);
2553 static void dump_get_key_value_request( const struct get_key_value_request
*req
)
2555 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2556 dump_varargs_unicode_str( ", name=", cur_size
);
2559 static void dump_get_key_value_reply( const struct get_key_value_reply
*req
)
2561 fprintf( stderr
, " type=%d", req
->type
);
2562 fprintf( stderr
, ", total=%u", req
->total
);
2563 dump_varargs_bytes( ", data=", cur_size
);
2566 static void dump_enum_key_value_request( const struct enum_key_value_request
*req
)
2568 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2569 fprintf( stderr
, ", index=%d", req
->index
);
2570 fprintf( stderr
, ", info_class=%d", req
->info_class
);
2573 static void dump_enum_key_value_reply( const struct enum_key_value_reply
*req
)
2575 fprintf( stderr
, " type=%d", req
->type
);
2576 fprintf( stderr
, ", total=%u", req
->total
);
2577 fprintf( stderr
, ", namelen=%u", req
->namelen
);
2578 dump_varargs_unicode_str( ", name=", min(cur_size
,req
->namelen
) );
2579 dump_varargs_bytes( ", data=", cur_size
);
2582 static void dump_delete_key_value_request( const struct delete_key_value_request
*req
)
2584 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2585 dump_varargs_unicode_str( ", name=", cur_size
);
2588 static void dump_load_registry_request( const struct load_registry_request
*req
)
2590 fprintf( stderr
, " file=%04x", req
->file
);
2591 dump_varargs_object_attributes( ", objattr=", cur_size
);
2594 static void dump_unload_registry_request( const struct unload_registry_request
*req
)
2596 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2599 static void dump_save_registry_request( const struct save_registry_request
*req
)
2601 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2602 fprintf( stderr
, ", file=%04x", req
->file
);
2605 static void dump_set_registry_notification_request( const struct set_registry_notification_request
*req
)
2607 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2608 fprintf( stderr
, ", event=%04x", req
->event
);
2609 fprintf( stderr
, ", subtree=%d", req
->subtree
);
2610 fprintf( stderr
, ", filter=%08x", req
->filter
);
2613 static void dump_create_timer_request( const struct create_timer_request
*req
)
2615 fprintf( stderr
, " access=%08x", req
->access
);
2616 fprintf( stderr
, ", manual=%d", req
->manual
);
2617 dump_varargs_object_attributes( ", objattr=", cur_size
);
2620 static void dump_create_timer_reply( const struct create_timer_reply
*req
)
2622 fprintf( stderr
, " handle=%04x", req
->handle
);
2625 static void dump_open_timer_request( const struct open_timer_request
*req
)
2627 fprintf( stderr
, " access=%08x", req
->access
);
2628 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
2629 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
2630 dump_varargs_unicode_str( ", name=", cur_size
);
2633 static void dump_open_timer_reply( const struct open_timer_reply
*req
)
2635 fprintf( stderr
, " handle=%04x", req
->handle
);
2638 static void dump_set_timer_request( const struct set_timer_request
*req
)
2640 fprintf( stderr
, " handle=%04x", req
->handle
);
2641 dump_timeout( ", expire=", &req
->expire
);
2642 dump_uint64( ", callback=", &req
->callback
);
2643 dump_uint64( ", arg=", &req
->arg
);
2644 fprintf( stderr
, ", period=%d", req
->period
);
2647 static void dump_set_timer_reply( const struct set_timer_reply
*req
)
2649 fprintf( stderr
, " signaled=%d", req
->signaled
);
2652 static void dump_cancel_timer_request( const struct cancel_timer_request
*req
)
2654 fprintf( stderr
, " handle=%04x", req
->handle
);
2657 static void dump_cancel_timer_reply( const struct cancel_timer_reply
*req
)
2659 fprintf( stderr
, " signaled=%d", req
->signaled
);
2662 static void dump_get_timer_info_request( const struct get_timer_info_request
*req
)
2664 fprintf( stderr
, " handle=%04x", req
->handle
);
2667 static void dump_get_timer_info_reply( const struct get_timer_info_reply
*req
)
2669 dump_timeout( " when=", &req
->when
);
2670 fprintf( stderr
, ", signaled=%d", req
->signaled
);
2673 static void dump_get_thread_context_request( const struct get_thread_context_request
*req
)
2675 fprintf( stderr
, " handle=%04x", req
->handle
);
2676 fprintf( stderr
, ", flags=%08x", req
->flags
);
2677 fprintf( stderr
, ", suspend=%d", req
->suspend
);
2680 static void dump_get_thread_context_reply( const struct get_thread_context_reply
*req
)
2682 fprintf( stderr
, " self=%d", req
->self
);
2683 dump_varargs_context( ", context=", cur_size
);
2686 static void dump_set_thread_context_request( const struct set_thread_context_request
*req
)
2688 fprintf( stderr
, " handle=%04x", req
->handle
);
2689 fprintf( stderr
, ", suspend=%d", req
->suspend
);
2690 dump_varargs_context( ", context=", cur_size
);
2693 static void dump_set_thread_context_reply( const struct set_thread_context_reply
*req
)
2695 fprintf( stderr
, " self=%d", req
->self
);
2698 static void dump_get_selector_entry_request( const struct get_selector_entry_request
*req
)
2700 fprintf( stderr
, " handle=%04x", req
->handle
);
2701 fprintf( stderr
, ", entry=%d", req
->entry
);
2704 static void dump_get_selector_entry_reply( const struct get_selector_entry_reply
*req
)
2706 fprintf( stderr
, " base=%08x", req
->base
);
2707 fprintf( stderr
, ", limit=%08x", req
->limit
);
2708 fprintf( stderr
, ", flags=%02x", req
->flags
);
2711 static void dump_add_atom_request( const struct add_atom_request
*req
)
2713 fprintf( stderr
, " table=%04x", req
->table
);
2714 dump_varargs_unicode_str( ", name=", cur_size
);
2717 static void dump_add_atom_reply( const struct add_atom_reply
*req
)
2719 fprintf( stderr
, " atom=%04x", req
->atom
);
2722 static void dump_delete_atom_request( const struct delete_atom_request
*req
)
2724 fprintf( stderr
, " table=%04x", req
->table
);
2725 fprintf( stderr
, ", atom=%04x", req
->atom
);
2728 static void dump_find_atom_request( const struct find_atom_request
*req
)
2730 fprintf( stderr
, " table=%04x", req
->table
);
2731 dump_varargs_unicode_str( ", name=", cur_size
);
2734 static void dump_find_atom_reply( const struct find_atom_reply
*req
)
2736 fprintf( stderr
, " atom=%04x", req
->atom
);
2739 static void dump_get_atom_information_request( const struct get_atom_information_request
*req
)
2741 fprintf( stderr
, " table=%04x", req
->table
);
2742 fprintf( stderr
, ", atom=%04x", req
->atom
);
2745 static void dump_get_atom_information_reply( const struct get_atom_information_reply
*req
)
2747 fprintf( stderr
, " count=%d", req
->count
);
2748 fprintf( stderr
, ", pinned=%d", req
->pinned
);
2749 fprintf( stderr
, ", total=%u", req
->total
);
2750 dump_varargs_unicode_str( ", name=", cur_size
);
2753 static void dump_set_atom_information_request( const struct set_atom_information_request
*req
)
2755 fprintf( stderr
, " table=%04x", req
->table
);
2756 fprintf( stderr
, ", atom=%04x", req
->atom
);
2757 fprintf( stderr
, ", pinned=%d", req
->pinned
);
2760 static void dump_empty_atom_table_request( const struct empty_atom_table_request
*req
)
2762 fprintf( stderr
, " table=%04x", req
->table
);
2763 fprintf( stderr
, ", if_pinned=%d", req
->if_pinned
);
2766 static void dump_init_atom_table_request( const struct init_atom_table_request
*req
)
2768 fprintf( stderr
, " entries=%d", req
->entries
);
2771 static void dump_init_atom_table_reply( const struct init_atom_table_reply
*req
)
2773 fprintf( stderr
, " table=%04x", req
->table
);
2776 static void dump_get_msg_queue_request( const struct get_msg_queue_request
*req
)
2780 static void dump_get_msg_queue_reply( const struct get_msg_queue_reply
*req
)
2782 fprintf( stderr
, " handle=%04x", req
->handle
);
2785 static void dump_set_queue_fd_request( const struct set_queue_fd_request
*req
)
2787 fprintf( stderr
, " handle=%04x", req
->handle
);
2790 static void dump_set_queue_mask_request( const struct set_queue_mask_request
*req
)
2792 fprintf( stderr
, " wake_mask=%08x", req
->wake_mask
);
2793 fprintf( stderr
, ", changed_mask=%08x", req
->changed_mask
);
2794 fprintf( stderr
, ", skip_wait=%d", req
->skip_wait
);
2797 static void dump_set_queue_mask_reply( const struct set_queue_mask_reply
*req
)
2799 fprintf( stderr
, " wake_bits=%08x", req
->wake_bits
);
2800 fprintf( stderr
, ", changed_bits=%08x", req
->changed_bits
);
2803 static void dump_get_queue_status_request( const struct get_queue_status_request
*req
)
2805 fprintf( stderr
, " clear_bits=%08x", req
->clear_bits
);
2808 static void dump_get_queue_status_reply( const struct get_queue_status_reply
*req
)
2810 fprintf( stderr
, " wake_bits=%08x", req
->wake_bits
);
2811 fprintf( stderr
, ", changed_bits=%08x", req
->changed_bits
);
2814 static void dump_get_process_idle_event_request( const struct get_process_idle_event_request
*req
)
2816 fprintf( stderr
, " handle=%04x", req
->handle
);
2819 static void dump_get_process_idle_event_reply( const struct get_process_idle_event_reply
*req
)
2821 fprintf( stderr
, " event=%04x", req
->event
);
2824 static void dump_send_message_request( const struct send_message_request
*req
)
2826 fprintf( stderr
, " id=%04x", req
->id
);
2827 fprintf( stderr
, ", type=%d", req
->type
);
2828 fprintf( stderr
, ", flags=%d", req
->flags
);
2829 fprintf( stderr
, ", win=%08x", req
->win
);
2830 fprintf( stderr
, ", msg=%08x", req
->msg
);
2831 dump_uint64( ", wparam=", &req
->wparam
);
2832 dump_uint64( ", lparam=", &req
->lparam
);
2833 dump_timeout( ", timeout=", &req
->timeout
);
2834 dump_varargs_message_data( ", data=", cur_size
);
2837 static void dump_post_quit_message_request( const struct post_quit_message_request
*req
)
2839 fprintf( stderr
, " exit_code=%d", req
->exit_code
);
2842 static void dump_send_hardware_message_request( const struct send_hardware_message_request
*req
)
2844 fprintf( stderr
, " win=%08x", req
->win
);
2845 dump_hw_input( ", input=", &req
->input
);
2846 fprintf( stderr
, ", flags=%08x", req
->flags
);
2849 static void dump_send_hardware_message_reply( const struct send_hardware_message_reply
*req
)
2851 fprintf( stderr
, " wait=%d", req
->wait
);
2852 fprintf( stderr
, ", prev_x=%d", req
->prev_x
);
2853 fprintf( stderr
, ", prev_y=%d", req
->prev_y
);
2854 fprintf( stderr
, ", new_x=%d", req
->new_x
);
2855 fprintf( stderr
, ", new_y=%d", req
->new_y
);
2856 dump_varargs_bytes( ", keystate=", cur_size
);
2859 static void dump_get_message_request( const struct get_message_request
*req
)
2861 fprintf( stderr
, " flags=%08x", req
->flags
);
2862 fprintf( stderr
, ", get_win=%08x", req
->get_win
);
2863 fprintf( stderr
, ", get_first=%08x", req
->get_first
);
2864 fprintf( stderr
, ", get_last=%08x", req
->get_last
);
2865 fprintf( stderr
, ", hw_id=%08x", req
->hw_id
);
2866 fprintf( stderr
, ", wake_mask=%08x", req
->wake_mask
);
2867 fprintf( stderr
, ", changed_mask=%08x", req
->changed_mask
);
2870 static void dump_get_message_reply( const struct get_message_reply
*req
)
2872 fprintf( stderr
, " win=%08x", req
->win
);
2873 fprintf( stderr
, ", msg=%08x", req
->msg
);
2874 dump_uint64( ", wparam=", &req
->wparam
);
2875 dump_uint64( ", lparam=", &req
->lparam
);
2876 fprintf( stderr
, ", type=%d", req
->type
);
2877 fprintf( stderr
, ", x=%d", req
->x
);
2878 fprintf( stderr
, ", y=%d", req
->y
);
2879 fprintf( stderr
, ", time=%08x", req
->time
);
2880 fprintf( stderr
, ", active_hooks=%08x", req
->active_hooks
);
2881 fprintf( stderr
, ", total=%u", req
->total
);
2882 dump_varargs_message_data( ", data=", cur_size
);
2885 static void dump_reply_message_request( const struct reply_message_request
*req
)
2887 fprintf( stderr
, " remove=%d", req
->remove
);
2888 dump_uint64( ", result=", &req
->result
);
2889 dump_varargs_bytes( ", data=", cur_size
);
2892 static void dump_accept_hardware_message_request( const struct accept_hardware_message_request
*req
)
2894 fprintf( stderr
, " hw_id=%08x", req
->hw_id
);
2895 fprintf( stderr
, ", remove=%d", req
->remove
);
2898 static void dump_get_message_reply_request( const struct get_message_reply_request
*req
)
2900 fprintf( stderr
, " cancel=%d", req
->cancel
);
2903 static void dump_get_message_reply_reply( const struct get_message_reply_reply
*req
)
2905 dump_uint64( " result=", &req
->result
);
2906 dump_varargs_bytes( ", data=", cur_size
);
2909 static void dump_set_win_timer_request( const struct set_win_timer_request
*req
)
2911 fprintf( stderr
, " win=%08x", req
->win
);
2912 fprintf( stderr
, ", msg=%08x", req
->msg
);
2913 fprintf( stderr
, ", rate=%08x", req
->rate
);
2914 dump_uint64( ", id=", &req
->id
);
2915 dump_uint64( ", lparam=", &req
->lparam
);
2918 static void dump_set_win_timer_reply( const struct set_win_timer_reply
*req
)
2920 dump_uint64( " id=", &req
->id
);
2923 static void dump_kill_win_timer_request( const struct kill_win_timer_request
*req
)
2925 fprintf( stderr
, " win=%08x", req
->win
);
2926 dump_uint64( ", id=", &req
->id
);
2927 fprintf( stderr
, ", msg=%08x", req
->msg
);
2930 static void dump_is_window_hung_request( const struct is_window_hung_request
*req
)
2932 fprintf( stderr
, " win=%08x", req
->win
);
2935 static void dump_is_window_hung_reply( const struct is_window_hung_reply
*req
)
2937 fprintf( stderr
, " is_hung=%d", req
->is_hung
);
2940 static void dump_get_serial_info_request( const struct get_serial_info_request
*req
)
2942 fprintf( stderr
, " handle=%04x", req
->handle
);
2943 fprintf( stderr
, ", flags=%d", req
->flags
);
2946 static void dump_get_serial_info_reply( const struct get_serial_info_reply
*req
)
2948 fprintf( stderr
, " eventmask=%08x", req
->eventmask
);
2949 fprintf( stderr
, ", cookie=%08x", req
->cookie
);
2950 fprintf( stderr
, ", pending_write=%08x", req
->pending_write
);
2953 static void dump_set_serial_info_request( const struct set_serial_info_request
*req
)
2955 fprintf( stderr
, " handle=%04x", req
->handle
);
2956 fprintf( stderr
, ", flags=%d", req
->flags
);
2959 static void dump_register_async_request( const struct register_async_request
*req
)
2961 fprintf( stderr
, " type=%d", req
->type
);
2962 dump_async_data( ", async=", &req
->async
);
2963 fprintf( stderr
, ", count=%d", req
->count
);
2966 static void dump_cancel_async_request( const struct cancel_async_request
*req
)
2968 fprintf( stderr
, " handle=%04x", req
->handle
);
2969 dump_uint64( ", iosb=", &req
->iosb
);
2970 fprintf( stderr
, ", only_thread=%d", req
->only_thread
);
2973 static void dump_get_async_result_request( const struct get_async_result_request
*req
)
2975 dump_uint64( " user_arg=", &req
->user_arg
);
2978 static void dump_get_async_result_reply( const struct get_async_result_reply
*req
)
2980 fprintf( stderr
, " size=%u", req
->size
);
2981 dump_varargs_bytes( ", out_data=", cur_size
);
2984 static void dump_read_request( const struct read_request
*req
)
2986 dump_async_data( " async=", &req
->async
);
2987 dump_uint64( ", pos=", &req
->pos
);
2990 static void dump_read_reply( const struct read_reply
*req
)
2992 fprintf( stderr
, " wait=%04x", req
->wait
);
2993 fprintf( stderr
, ", options=%08x", req
->options
);
2994 dump_varargs_bytes( ", data=", cur_size
);
2997 static void dump_write_request( const struct write_request
*req
)
2999 dump_async_data( " async=", &req
->async
);
3000 dump_uint64( ", pos=", &req
->pos
);
3001 dump_varargs_bytes( ", data=", cur_size
);
3004 static void dump_write_reply( const struct write_reply
*req
)
3006 fprintf( stderr
, " wait=%04x", req
->wait
);
3007 fprintf( stderr
, ", options=%08x", req
->options
);
3008 fprintf( stderr
, ", size=%u", req
->size
);
3011 static void dump_ioctl_request( const struct ioctl_request
*req
)
3013 dump_ioctl_code( " code=", &req
->code
);
3014 dump_async_data( ", async=", &req
->async
);
3015 dump_varargs_bytes( ", in_data=", cur_size
);
3018 static void dump_ioctl_reply( const struct ioctl_reply
*req
)
3020 fprintf( stderr
, " wait=%04x", req
->wait
);
3021 fprintf( stderr
, ", options=%08x", req
->options
);
3022 dump_varargs_bytes( ", out_data=", cur_size
);
3025 static void dump_set_irp_result_request( const struct set_irp_result_request
*req
)
3027 fprintf( stderr
, " handle=%04x", req
->handle
);
3028 fprintf( stderr
, ", status=%08x", req
->status
);
3029 fprintf( stderr
, ", size=%u", req
->size
);
3030 dump_varargs_bytes( ", data=", cur_size
);
3033 static void dump_create_named_pipe_request( const struct create_named_pipe_request
*req
)
3035 fprintf( stderr
, " access=%08x", req
->access
);
3036 fprintf( stderr
, ", options=%08x", req
->options
);
3037 fprintf( stderr
, ", sharing=%08x", req
->sharing
);
3038 fprintf( stderr
, ", maxinstances=%08x", req
->maxinstances
);
3039 fprintf( stderr
, ", outsize=%08x", req
->outsize
);
3040 fprintf( stderr
, ", insize=%08x", req
->insize
);
3041 dump_timeout( ", timeout=", &req
->timeout
);
3042 fprintf( stderr
, ", flags=%08x", req
->flags
);
3043 dump_varargs_object_attributes( ", objattr=", cur_size
);
3046 static void dump_create_named_pipe_reply( const struct create_named_pipe_reply
*req
)
3048 fprintf( stderr
, " handle=%04x", req
->handle
);
3051 static void dump_set_named_pipe_info_request( const struct set_named_pipe_info_request
*req
)
3053 fprintf( stderr
, " handle=%04x", req
->handle
);
3054 fprintf( stderr
, ", flags=%08x", req
->flags
);
3057 static void dump_create_window_request( const struct create_window_request
*req
)
3059 fprintf( stderr
, " parent=%08x", req
->parent
);
3060 fprintf( stderr
, ", owner=%08x", req
->owner
);
3061 fprintf( stderr
, ", atom=%04x", req
->atom
);
3062 dump_uint64( ", instance=", &req
->instance
);
3063 fprintf( stderr
, ", dpi=%d", req
->dpi
);
3064 fprintf( stderr
, ", awareness=%d", req
->awareness
);
3065 dump_varargs_unicode_str( ", class=", cur_size
);
3068 static void dump_create_window_reply( const struct create_window_reply
*req
)
3070 fprintf( stderr
, " handle=%08x", req
->handle
);
3071 fprintf( stderr
, ", parent=%08x", req
->parent
);
3072 fprintf( stderr
, ", owner=%08x", req
->owner
);
3073 fprintf( stderr
, ", extra=%d", req
->extra
);
3074 dump_uint64( ", class_ptr=", &req
->class_ptr
);
3075 fprintf( stderr
, ", dpi=%d", req
->dpi
);
3076 fprintf( stderr
, ", awareness=%d", req
->awareness
);
3079 static void dump_destroy_window_request( const struct destroy_window_request
*req
)
3081 fprintf( stderr
, " handle=%08x", req
->handle
);
3084 static void dump_get_desktop_window_request( const struct get_desktop_window_request
*req
)
3086 fprintf( stderr
, " force=%d", req
->force
);
3089 static void dump_get_desktop_window_reply( const struct get_desktop_window_reply
*req
)
3091 fprintf( stderr
, " top_window=%08x", req
->top_window
);
3092 fprintf( stderr
, ", msg_window=%08x", req
->msg_window
);
3095 static void dump_set_window_owner_request( const struct set_window_owner_request
*req
)
3097 fprintf( stderr
, " handle=%08x", req
->handle
);
3098 fprintf( stderr
, ", owner=%08x", req
->owner
);
3101 static void dump_set_window_owner_reply( const struct set_window_owner_reply
*req
)
3103 fprintf( stderr
, " full_owner=%08x", req
->full_owner
);
3104 fprintf( stderr
, ", prev_owner=%08x", req
->prev_owner
);
3107 static void dump_get_window_info_request( const struct get_window_info_request
*req
)
3109 fprintf( stderr
, " handle=%08x", req
->handle
);
3112 static void dump_get_window_info_reply( const struct get_window_info_reply
*req
)
3114 fprintf( stderr
, " full_handle=%08x", req
->full_handle
);
3115 fprintf( stderr
, ", last_active=%08x", req
->last_active
);
3116 fprintf( stderr
, ", pid=%04x", req
->pid
);
3117 fprintf( stderr
, ", tid=%04x", req
->tid
);
3118 fprintf( stderr
, ", atom=%04x", req
->atom
);
3119 fprintf( stderr
, ", is_unicode=%d", req
->is_unicode
);
3120 fprintf( stderr
, ", dpi=%d", req
->dpi
);
3121 fprintf( stderr
, ", awareness=%d", req
->awareness
);
3124 static void dump_set_window_info_request( const struct set_window_info_request
*req
)
3126 fprintf( stderr
, " flags=%04x", req
->flags
);
3127 fprintf( stderr
, ", is_unicode=%d", req
->is_unicode
);
3128 fprintf( stderr
, ", handle=%08x", req
->handle
);
3129 fprintf( stderr
, ", style=%08x", req
->style
);
3130 fprintf( stderr
, ", ex_style=%08x", req
->ex_style
);
3131 fprintf( stderr
, ", id=%08x", req
->id
);
3132 dump_uint64( ", instance=", &req
->instance
);
3133 dump_uint64( ", user_data=", &req
->user_data
);
3134 fprintf( stderr
, ", extra_offset=%d", req
->extra_offset
);
3135 fprintf( stderr
, ", extra_size=%u", req
->extra_size
);
3136 dump_uint64( ", extra_value=", &req
->extra_value
);
3139 static void dump_set_window_info_reply( const struct set_window_info_reply
*req
)
3141 fprintf( stderr
, " old_style=%08x", req
->old_style
);
3142 fprintf( stderr
, ", old_ex_style=%08x", req
->old_ex_style
);
3143 dump_uint64( ", old_instance=", &req
->old_instance
);
3144 dump_uint64( ", old_user_data=", &req
->old_user_data
);
3145 dump_uint64( ", old_extra_value=", &req
->old_extra_value
);
3146 fprintf( stderr
, ", old_id=%08x", req
->old_id
);
3149 static void dump_set_parent_request( const struct set_parent_request
*req
)
3151 fprintf( stderr
, " handle=%08x", req
->handle
);
3152 fprintf( stderr
, ", parent=%08x", req
->parent
);
3155 static void dump_set_parent_reply( const struct set_parent_reply
*req
)
3157 fprintf( stderr
, " old_parent=%08x", req
->old_parent
);
3158 fprintf( stderr
, ", full_parent=%08x", req
->full_parent
);
3159 fprintf( stderr
, ", dpi=%d", req
->dpi
);
3160 fprintf( stderr
, ", awareness=%d", req
->awareness
);
3163 static void dump_get_window_parents_request( const struct get_window_parents_request
*req
)
3165 fprintf( stderr
, " handle=%08x", req
->handle
);
3168 static void dump_get_window_parents_reply( const struct get_window_parents_reply
*req
)
3170 fprintf( stderr
, " count=%d", req
->count
);
3171 dump_varargs_user_handles( ", parents=", cur_size
);
3174 static void dump_get_window_children_request( const struct get_window_children_request
*req
)
3176 fprintf( stderr
, " desktop=%04x", req
->desktop
);
3177 fprintf( stderr
, ", parent=%08x", req
->parent
);
3178 fprintf( stderr
, ", atom=%04x", req
->atom
);
3179 fprintf( stderr
, ", tid=%04x", req
->tid
);
3180 dump_varargs_unicode_str( ", class=", cur_size
);
3183 static void dump_get_window_children_reply( const struct get_window_children_reply
*req
)
3185 fprintf( stderr
, " count=%d", req
->count
);
3186 dump_varargs_user_handles( ", children=", cur_size
);
3189 static void dump_get_window_children_from_point_request( const struct get_window_children_from_point_request
*req
)
3191 fprintf( stderr
, " parent=%08x", req
->parent
);
3192 fprintf( stderr
, ", x=%d", req
->x
);
3193 fprintf( stderr
, ", y=%d", req
->y
);
3194 fprintf( stderr
, ", dpi=%d", req
->dpi
);
3197 static void dump_get_window_children_from_point_reply( const struct get_window_children_from_point_reply
*req
)
3199 fprintf( stderr
, " count=%d", req
->count
);
3200 dump_varargs_user_handles( ", children=", cur_size
);
3203 static void dump_get_window_tree_request( const struct get_window_tree_request
*req
)
3205 fprintf( stderr
, " handle=%08x", req
->handle
);
3208 static void dump_get_window_tree_reply( const struct get_window_tree_reply
*req
)
3210 fprintf( stderr
, " parent=%08x", req
->parent
);
3211 fprintf( stderr
, ", owner=%08x", req
->owner
);
3212 fprintf( stderr
, ", next_sibling=%08x", req
->next_sibling
);
3213 fprintf( stderr
, ", prev_sibling=%08x", req
->prev_sibling
);
3214 fprintf( stderr
, ", first_sibling=%08x", req
->first_sibling
);
3215 fprintf( stderr
, ", last_sibling=%08x", req
->last_sibling
);
3216 fprintf( stderr
, ", first_child=%08x", req
->first_child
);
3217 fprintf( stderr
, ", last_child=%08x", req
->last_child
);
3220 static void dump_set_window_pos_request( const struct set_window_pos_request
*req
)
3222 fprintf( stderr
, " swp_flags=%04x", req
->swp_flags
);
3223 fprintf( stderr
, ", paint_flags=%04x", req
->paint_flags
);
3224 fprintf( stderr
, ", handle=%08x", req
->handle
);
3225 fprintf( stderr
, ", previous=%08x", req
->previous
);
3226 dump_rectangle( ", window=", &req
->window
);
3227 dump_rectangle( ", client=", &req
->client
);
3228 dump_varargs_rectangles( ", valid=", cur_size
);
3231 static void dump_set_window_pos_reply( const struct set_window_pos_reply
*req
)
3233 fprintf( stderr
, " new_style=%08x", req
->new_style
);
3234 fprintf( stderr
, ", new_ex_style=%08x", req
->new_ex_style
);
3235 fprintf( stderr
, ", surface_win=%08x", req
->surface_win
);
3236 fprintf( stderr
, ", needs_update=%d", req
->needs_update
);
3239 static void dump_get_window_rectangles_request( const struct get_window_rectangles_request
*req
)
3241 fprintf( stderr
, " handle=%08x", req
->handle
);
3242 fprintf( stderr
, ", relative=%d", req
->relative
);
3243 fprintf( stderr
, ", dpi=%d", req
->dpi
);
3246 static void dump_get_window_rectangles_reply( const struct get_window_rectangles_reply
*req
)
3248 dump_rectangle( " window=", &req
->window
);
3249 dump_rectangle( ", client=", &req
->client
);
3252 static void dump_get_window_text_request( const struct get_window_text_request
*req
)
3254 fprintf( stderr
, " handle=%08x", req
->handle
);
3257 static void dump_get_window_text_reply( const struct get_window_text_reply
*req
)
3259 fprintf( stderr
, " length=%u", req
->length
);
3260 dump_varargs_unicode_str( ", text=", cur_size
);
3263 static void dump_set_window_text_request( const struct set_window_text_request
*req
)
3265 fprintf( stderr
, " handle=%08x", req
->handle
);
3266 dump_varargs_unicode_str( ", text=", cur_size
);
3269 static void dump_get_windows_offset_request( const struct get_windows_offset_request
*req
)
3271 fprintf( stderr
, " from=%08x", req
->from
);
3272 fprintf( stderr
, ", to=%08x", req
->to
);
3273 fprintf( stderr
, ", dpi=%d", req
->dpi
);
3276 static void dump_get_windows_offset_reply( const struct get_windows_offset_reply
*req
)
3278 fprintf( stderr
, " x=%d", req
->x
);
3279 fprintf( stderr
, ", y=%d", req
->y
);
3280 fprintf( stderr
, ", mirror=%d", req
->mirror
);
3283 static void dump_get_visible_region_request( const struct get_visible_region_request
*req
)
3285 fprintf( stderr
, " window=%08x", req
->window
);
3286 fprintf( stderr
, ", flags=%08x", req
->flags
);
3289 static void dump_get_visible_region_reply( const struct get_visible_region_reply
*req
)
3291 fprintf( stderr
, " top_win=%08x", req
->top_win
);
3292 dump_rectangle( ", top_rect=", &req
->top_rect
);
3293 dump_rectangle( ", win_rect=", &req
->win_rect
);
3294 fprintf( stderr
, ", paint_flags=%08x", req
->paint_flags
);
3295 fprintf( stderr
, ", total_size=%u", req
->total_size
);
3296 dump_varargs_rectangles( ", region=", cur_size
);
3299 static void dump_get_surface_region_request( const struct get_surface_region_request
*req
)
3301 fprintf( stderr
, " window=%08x", req
->window
);
3304 static void dump_get_surface_region_reply( const struct get_surface_region_reply
*req
)
3306 dump_rectangle( " visible_rect=", &req
->visible_rect
);
3307 fprintf( stderr
, ", total_size=%u", req
->total_size
);
3308 dump_varargs_rectangles( ", region=", cur_size
);
3311 static void dump_get_window_region_request( const struct get_window_region_request
*req
)
3313 fprintf( stderr
, " window=%08x", req
->window
);
3316 static void dump_get_window_region_reply( const struct get_window_region_reply
*req
)
3318 fprintf( stderr
, " total_size=%u", req
->total_size
);
3319 dump_varargs_rectangles( ", region=", cur_size
);
3322 static void dump_set_window_region_request( const struct set_window_region_request
*req
)
3324 fprintf( stderr
, " window=%08x", req
->window
);
3325 fprintf( stderr
, ", redraw=%d", req
->redraw
);
3326 dump_varargs_rectangles( ", region=", cur_size
);
3329 static void dump_get_update_region_request( const struct get_update_region_request
*req
)
3331 fprintf( stderr
, " window=%08x", req
->window
);
3332 fprintf( stderr
, ", from_child=%08x", req
->from_child
);
3333 fprintf( stderr
, ", flags=%08x", req
->flags
);
3336 static void dump_get_update_region_reply( const struct get_update_region_reply
*req
)
3338 fprintf( stderr
, " child=%08x", req
->child
);
3339 fprintf( stderr
, ", flags=%08x", req
->flags
);
3340 fprintf( stderr
, ", total_size=%u", req
->total_size
);
3341 dump_varargs_rectangles( ", region=", cur_size
);
3344 static void dump_update_window_zorder_request( const struct update_window_zorder_request
*req
)
3346 fprintf( stderr
, " window=%08x", req
->window
);
3347 dump_rectangle( ", rect=", &req
->rect
);
3350 static void dump_redraw_window_request( const struct redraw_window_request
*req
)
3352 fprintf( stderr
, " window=%08x", req
->window
);
3353 fprintf( stderr
, ", flags=%08x", req
->flags
);
3354 dump_varargs_rectangles( ", region=", cur_size
);
3357 static void dump_set_window_property_request( const struct set_window_property_request
*req
)
3359 fprintf( stderr
, " window=%08x", req
->window
);
3360 dump_uint64( ", data=", &req
->data
);
3361 fprintf( stderr
, ", atom=%04x", req
->atom
);
3362 dump_varargs_unicode_str( ", name=", cur_size
);
3365 static void dump_remove_window_property_request( const struct remove_window_property_request
*req
)
3367 fprintf( stderr
, " window=%08x", req
->window
);
3368 fprintf( stderr
, ", atom=%04x", req
->atom
);
3369 dump_varargs_unicode_str( ", name=", cur_size
);
3372 static void dump_remove_window_property_reply( const struct remove_window_property_reply
*req
)
3374 dump_uint64( " data=", &req
->data
);
3377 static void dump_get_window_property_request( const struct get_window_property_request
*req
)
3379 fprintf( stderr
, " window=%08x", req
->window
);
3380 fprintf( stderr
, ", atom=%04x", req
->atom
);
3381 dump_varargs_unicode_str( ", name=", cur_size
);
3384 static void dump_get_window_property_reply( const struct get_window_property_reply
*req
)
3386 dump_uint64( " data=", &req
->data
);
3389 static void dump_get_window_properties_request( const struct get_window_properties_request
*req
)
3391 fprintf( stderr
, " window=%08x", req
->window
);
3394 static void dump_get_window_properties_reply( const struct get_window_properties_reply
*req
)
3396 fprintf( stderr
, " total=%d", req
->total
);
3397 dump_varargs_properties( ", props=", cur_size
);
3400 static void dump_create_winstation_request( const struct create_winstation_request
*req
)
3402 fprintf( stderr
, " flags=%08x", req
->flags
);
3403 fprintf( stderr
, ", access=%08x", req
->access
);
3404 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3405 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
3406 dump_varargs_unicode_str( ", name=", cur_size
);
3409 static void dump_create_winstation_reply( const struct create_winstation_reply
*req
)
3411 fprintf( stderr
, " handle=%04x", req
->handle
);
3414 static void dump_open_winstation_request( const struct open_winstation_request
*req
)
3416 fprintf( stderr
, " access=%08x", req
->access
);
3417 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3418 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
3419 dump_varargs_unicode_str( ", name=", cur_size
);
3422 static void dump_open_winstation_reply( const struct open_winstation_reply
*req
)
3424 fprintf( stderr
, " handle=%04x", req
->handle
);
3427 static void dump_close_winstation_request( const struct close_winstation_request
*req
)
3429 fprintf( stderr
, " handle=%04x", req
->handle
);
3432 static void dump_get_process_winstation_request( const struct get_process_winstation_request
*req
)
3436 static void dump_get_process_winstation_reply( const struct get_process_winstation_reply
*req
)
3438 fprintf( stderr
, " handle=%04x", req
->handle
);
3441 static void dump_set_process_winstation_request( const struct set_process_winstation_request
*req
)
3443 fprintf( stderr
, " handle=%04x", req
->handle
);
3446 static void dump_enum_winstation_request( const struct enum_winstation_request
*req
)
3448 fprintf( stderr
, " index=%08x", req
->index
);
3451 static void dump_enum_winstation_reply( const struct enum_winstation_reply
*req
)
3453 fprintf( stderr
, " next=%08x", req
->next
);
3454 dump_varargs_unicode_str( ", name=", cur_size
);
3457 static void dump_create_desktop_request( const struct create_desktop_request
*req
)
3459 fprintf( stderr
, " flags=%08x", req
->flags
);
3460 fprintf( stderr
, ", access=%08x", req
->access
);
3461 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3462 dump_varargs_unicode_str( ", name=", cur_size
);
3465 static void dump_create_desktop_reply( const struct create_desktop_reply
*req
)
3467 fprintf( stderr
, " handle=%04x", req
->handle
);
3470 static void dump_open_desktop_request( const struct open_desktop_request
*req
)
3472 fprintf( stderr
, " winsta=%04x", req
->winsta
);
3473 fprintf( stderr
, ", flags=%08x", req
->flags
);
3474 fprintf( stderr
, ", access=%08x", req
->access
);
3475 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3476 dump_varargs_unicode_str( ", name=", cur_size
);
3479 static void dump_open_desktop_reply( const struct open_desktop_reply
*req
)
3481 fprintf( stderr
, " handle=%04x", req
->handle
);
3484 static void dump_open_input_desktop_request( const struct open_input_desktop_request
*req
)
3486 fprintf( stderr
, " flags=%08x", req
->flags
);
3487 fprintf( stderr
, ", access=%08x", req
->access
);
3488 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3491 static void dump_open_input_desktop_reply( const struct open_input_desktop_reply
*req
)
3493 fprintf( stderr
, " handle=%04x", req
->handle
);
3496 static void dump_close_desktop_request( const struct close_desktop_request
*req
)
3498 fprintf( stderr
, " handle=%04x", req
->handle
);
3501 static void dump_get_thread_desktop_request( const struct get_thread_desktop_request
*req
)
3503 fprintf( stderr
, " tid=%04x", req
->tid
);
3506 static void dump_get_thread_desktop_reply( const struct get_thread_desktop_reply
*req
)
3508 fprintf( stderr
, " handle=%04x", req
->handle
);
3511 static void dump_set_thread_desktop_request( const struct set_thread_desktop_request
*req
)
3513 fprintf( stderr
, " handle=%04x", req
->handle
);
3516 static void dump_enum_desktop_request( const struct enum_desktop_request
*req
)
3518 fprintf( stderr
, " winstation=%04x", req
->winstation
);
3519 fprintf( stderr
, ", index=%08x", req
->index
);
3522 static void dump_enum_desktop_reply( const struct enum_desktop_reply
*req
)
3524 fprintf( stderr
, " next=%08x", req
->next
);
3525 dump_varargs_unicode_str( ", name=", cur_size
);
3528 static void dump_set_user_object_info_request( const struct set_user_object_info_request
*req
)
3530 fprintf( stderr
, " handle=%04x", req
->handle
);
3531 fprintf( stderr
, ", flags=%08x", req
->flags
);
3532 fprintf( stderr
, ", obj_flags=%08x", req
->obj_flags
);
3535 static void dump_set_user_object_info_reply( const struct set_user_object_info_reply
*req
)
3537 fprintf( stderr
, " is_desktop=%d", req
->is_desktop
);
3538 fprintf( stderr
, ", old_obj_flags=%08x", req
->old_obj_flags
);
3539 dump_varargs_unicode_str( ", name=", cur_size
);
3542 static void dump_register_hotkey_request( const struct register_hotkey_request
*req
)
3544 fprintf( stderr
, " window=%08x", req
->window
);
3545 fprintf( stderr
, ", id=%d", req
->id
);
3546 fprintf( stderr
, ", flags=%08x", req
->flags
);
3547 fprintf( stderr
, ", vkey=%08x", req
->vkey
);
3550 static void dump_register_hotkey_reply( const struct register_hotkey_reply
*req
)
3552 fprintf( stderr
, " replaced=%d", req
->replaced
);
3553 fprintf( stderr
, ", flags=%08x", req
->flags
);
3554 fprintf( stderr
, ", vkey=%08x", req
->vkey
);
3557 static void dump_unregister_hotkey_request( const struct unregister_hotkey_request
*req
)
3559 fprintf( stderr
, " window=%08x", req
->window
);
3560 fprintf( stderr
, ", id=%d", req
->id
);
3563 static void dump_unregister_hotkey_reply( const struct unregister_hotkey_reply
*req
)
3565 fprintf( stderr
, " flags=%08x", req
->flags
);
3566 fprintf( stderr
, ", vkey=%08x", req
->vkey
);
3569 static void dump_attach_thread_input_request( const struct attach_thread_input_request
*req
)
3571 fprintf( stderr
, " tid_from=%04x", req
->tid_from
);
3572 fprintf( stderr
, ", tid_to=%04x", req
->tid_to
);
3573 fprintf( stderr
, ", attach=%d", req
->attach
);
3576 static void dump_get_thread_input_request( const struct get_thread_input_request
*req
)
3578 fprintf( stderr
, " tid=%04x", req
->tid
);
3581 static void dump_get_thread_input_reply( const struct get_thread_input_reply
*req
)
3583 fprintf( stderr
, " focus=%08x", req
->focus
);
3584 fprintf( stderr
, ", capture=%08x", req
->capture
);
3585 fprintf( stderr
, ", active=%08x", req
->active
);
3586 fprintf( stderr
, ", foreground=%08x", req
->foreground
);
3587 fprintf( stderr
, ", menu_owner=%08x", req
->menu_owner
);
3588 fprintf( stderr
, ", move_size=%08x", req
->move_size
);
3589 fprintf( stderr
, ", caret=%08x", req
->caret
);
3590 fprintf( stderr
, ", cursor=%08x", req
->cursor
);
3591 fprintf( stderr
, ", show_count=%d", req
->show_count
);
3592 dump_rectangle( ", rect=", &req
->rect
);
3595 static void dump_get_last_input_time_request( const struct get_last_input_time_request
*req
)
3599 static void dump_get_last_input_time_reply( const struct get_last_input_time_reply
*req
)
3601 fprintf( stderr
, " time=%08x", req
->time
);
3604 static void dump_get_key_state_request( const struct get_key_state_request
*req
)
3606 fprintf( stderr
, " tid=%04x", req
->tid
);
3607 fprintf( stderr
, ", key=%d", req
->key
);
3610 static void dump_get_key_state_reply( const struct get_key_state_reply
*req
)
3612 fprintf( stderr
, " state=%02x", req
->state
);
3613 dump_varargs_bytes( ", keystate=", cur_size
);
3616 static void dump_set_key_state_request( const struct set_key_state_request
*req
)
3618 fprintf( stderr
, " tid=%04x", req
->tid
);
3619 fprintf( stderr
, ", async=%d", req
->async
);
3620 dump_varargs_bytes( ", keystate=", cur_size
);
3623 static void dump_set_foreground_window_request( const struct set_foreground_window_request
*req
)
3625 fprintf( stderr
, " handle=%08x", req
->handle
);
3628 static void dump_set_foreground_window_reply( const struct set_foreground_window_reply
*req
)
3630 fprintf( stderr
, " previous=%08x", req
->previous
);
3631 fprintf( stderr
, ", send_msg_old=%d", req
->send_msg_old
);
3632 fprintf( stderr
, ", send_msg_new=%d", req
->send_msg_new
);
3635 static void dump_set_focus_window_request( const struct set_focus_window_request
*req
)
3637 fprintf( stderr
, " handle=%08x", req
->handle
);
3640 static void dump_set_focus_window_reply( const struct set_focus_window_reply
*req
)
3642 fprintf( stderr
, " previous=%08x", req
->previous
);
3645 static void dump_set_active_window_request( const struct set_active_window_request
*req
)
3647 fprintf( stderr
, " handle=%08x", req
->handle
);
3650 static void dump_set_active_window_reply( const struct set_active_window_reply
*req
)
3652 fprintf( stderr
, " previous=%08x", req
->previous
);
3655 static void dump_set_capture_window_request( const struct set_capture_window_request
*req
)
3657 fprintf( stderr
, " handle=%08x", req
->handle
);
3658 fprintf( stderr
, ", flags=%08x", req
->flags
);
3661 static void dump_set_capture_window_reply( const struct set_capture_window_reply
*req
)
3663 fprintf( stderr
, " previous=%08x", req
->previous
);
3664 fprintf( stderr
, ", full_handle=%08x", req
->full_handle
);
3667 static void dump_set_caret_window_request( const struct set_caret_window_request
*req
)
3669 fprintf( stderr
, " handle=%08x", req
->handle
);
3670 fprintf( stderr
, ", width=%d", req
->width
);
3671 fprintf( stderr
, ", height=%d", req
->height
);
3674 static void dump_set_caret_window_reply( const struct set_caret_window_reply
*req
)
3676 fprintf( stderr
, " previous=%08x", req
->previous
);
3677 dump_rectangle( ", old_rect=", &req
->old_rect
);
3678 fprintf( stderr
, ", old_hide=%d", req
->old_hide
);
3679 fprintf( stderr
, ", old_state=%d", req
->old_state
);
3682 static void dump_set_caret_info_request( const struct set_caret_info_request
*req
)
3684 fprintf( stderr
, " flags=%08x", req
->flags
);
3685 fprintf( stderr
, ", handle=%08x", req
->handle
);
3686 fprintf( stderr
, ", x=%d", req
->x
);
3687 fprintf( stderr
, ", y=%d", req
->y
);
3688 fprintf( stderr
, ", hide=%d", req
->hide
);
3689 fprintf( stderr
, ", state=%d", req
->state
);
3692 static void dump_set_caret_info_reply( const struct set_caret_info_reply
*req
)
3694 fprintf( stderr
, " full_handle=%08x", req
->full_handle
);
3695 dump_rectangle( ", old_rect=", &req
->old_rect
);
3696 fprintf( stderr
, ", old_hide=%d", req
->old_hide
);
3697 fprintf( stderr
, ", old_state=%d", req
->old_state
);
3700 static void dump_set_hook_request( const struct set_hook_request
*req
)
3702 fprintf( stderr
, " id=%d", req
->id
);
3703 fprintf( stderr
, ", pid=%04x", req
->pid
);
3704 fprintf( stderr
, ", tid=%04x", req
->tid
);
3705 fprintf( stderr
, ", event_min=%d", req
->event_min
);
3706 fprintf( stderr
, ", event_max=%d", req
->event_max
);
3707 dump_uint64( ", proc=", &req
->proc
);
3708 fprintf( stderr
, ", flags=%d", req
->flags
);
3709 fprintf( stderr
, ", unicode=%d", req
->unicode
);
3710 dump_varargs_unicode_str( ", module=", cur_size
);
3713 static void dump_set_hook_reply( const struct set_hook_reply
*req
)
3715 fprintf( stderr
, " handle=%08x", req
->handle
);
3716 fprintf( stderr
, ", active_hooks=%08x", req
->active_hooks
);
3719 static void dump_remove_hook_request( const struct remove_hook_request
*req
)
3721 fprintf( stderr
, " handle=%08x", req
->handle
);
3722 dump_uint64( ", proc=", &req
->proc
);
3723 fprintf( stderr
, ", id=%d", req
->id
);
3726 static void dump_remove_hook_reply( const struct remove_hook_reply
*req
)
3728 fprintf( stderr
, " active_hooks=%08x", req
->active_hooks
);
3731 static void dump_start_hook_chain_request( const struct start_hook_chain_request
*req
)
3733 fprintf( stderr
, " id=%d", req
->id
);
3734 fprintf( stderr
, ", event=%d", req
->event
);
3735 fprintf( stderr
, ", window=%08x", req
->window
);
3736 fprintf( stderr
, ", object_id=%d", req
->object_id
);
3737 fprintf( stderr
, ", child_id=%d", req
->child_id
);
3740 static void dump_start_hook_chain_reply( const struct start_hook_chain_reply
*req
)
3742 fprintf( stderr
, " handle=%08x", req
->handle
);
3743 fprintf( stderr
, ", pid=%04x", req
->pid
);
3744 fprintf( stderr
, ", tid=%04x", req
->tid
);
3745 fprintf( stderr
, ", unicode=%d", req
->unicode
);
3746 dump_uint64( ", proc=", &req
->proc
);
3747 fprintf( stderr
, ", active_hooks=%08x", req
->active_hooks
);
3748 dump_varargs_unicode_str( ", module=", cur_size
);
3751 static void dump_finish_hook_chain_request( const struct finish_hook_chain_request
*req
)
3753 fprintf( stderr
, " id=%d", req
->id
);
3756 static void dump_get_hook_info_request( const struct get_hook_info_request
*req
)
3758 fprintf( stderr
, " handle=%08x", req
->handle
);
3759 fprintf( stderr
, ", get_next=%d", req
->get_next
);
3760 fprintf( stderr
, ", event=%d", req
->event
);
3761 fprintf( stderr
, ", window=%08x", req
->window
);
3762 fprintf( stderr
, ", object_id=%d", req
->object_id
);
3763 fprintf( stderr
, ", child_id=%d", req
->child_id
);
3766 static void dump_get_hook_info_reply( const struct get_hook_info_reply
*req
)
3768 fprintf( stderr
, " handle=%08x", req
->handle
);
3769 fprintf( stderr
, ", id=%d", req
->id
);
3770 fprintf( stderr
, ", pid=%04x", req
->pid
);
3771 fprintf( stderr
, ", tid=%04x", req
->tid
);
3772 dump_uint64( ", proc=", &req
->proc
);
3773 fprintf( stderr
, ", unicode=%d", req
->unicode
);
3774 dump_varargs_unicode_str( ", module=", cur_size
);
3777 static void dump_create_class_request( const struct create_class_request
*req
)
3779 fprintf( stderr
, " local=%d", req
->local
);
3780 fprintf( stderr
, ", atom=%04x", req
->atom
);
3781 fprintf( stderr
, ", style=%08x", req
->style
);
3782 dump_uint64( ", instance=", &req
->instance
);
3783 fprintf( stderr
, ", extra=%d", req
->extra
);
3784 fprintf( stderr
, ", win_extra=%d", req
->win_extra
);
3785 dump_uint64( ", client_ptr=", &req
->client_ptr
);
3786 fprintf( stderr
, ", name_offset=%u", req
->name_offset
);
3787 dump_varargs_unicode_str( ", name=", cur_size
);
3790 static void dump_create_class_reply( const struct create_class_reply
*req
)
3792 fprintf( stderr
, " atom=%04x", req
->atom
);
3795 static void dump_destroy_class_request( const struct destroy_class_request
*req
)
3797 fprintf( stderr
, " atom=%04x", req
->atom
);
3798 dump_uint64( ", instance=", &req
->instance
);
3799 dump_varargs_unicode_str( ", name=", cur_size
);
3802 static void dump_destroy_class_reply( const struct destroy_class_reply
*req
)
3804 dump_uint64( " client_ptr=", &req
->client_ptr
);
3807 static void dump_set_class_info_request( const struct set_class_info_request
*req
)
3809 fprintf( stderr
, " window=%08x", req
->window
);
3810 fprintf( stderr
, ", flags=%08x", req
->flags
);
3811 fprintf( stderr
, ", atom=%04x", req
->atom
);
3812 fprintf( stderr
, ", style=%08x", req
->style
);
3813 fprintf( stderr
, ", win_extra=%d", req
->win_extra
);
3814 dump_uint64( ", instance=", &req
->instance
);
3815 fprintf( stderr
, ", extra_offset=%d", req
->extra_offset
);
3816 fprintf( stderr
, ", extra_size=%u", req
->extra_size
);
3817 dump_uint64( ", extra_value=", &req
->extra_value
);
3820 static void dump_set_class_info_reply( const struct set_class_info_reply
*req
)
3822 fprintf( stderr
, " old_atom=%04x", req
->old_atom
);
3823 fprintf( stderr
, ", base_atom=%04x", req
->base_atom
);
3824 dump_uint64( ", old_instance=", &req
->old_instance
);
3825 dump_uint64( ", old_extra_value=", &req
->old_extra_value
);
3826 fprintf( stderr
, ", old_style=%08x", req
->old_style
);
3827 fprintf( stderr
, ", old_extra=%d", req
->old_extra
);
3828 fprintf( stderr
, ", old_win_extra=%d", req
->old_win_extra
);
3831 static void dump_open_clipboard_request( const struct open_clipboard_request
*req
)
3833 fprintf( stderr
, " window=%08x", req
->window
);
3836 static void dump_open_clipboard_reply( const struct open_clipboard_reply
*req
)
3838 fprintf( stderr
, " owner=%08x", req
->owner
);
3841 static void dump_close_clipboard_request( const struct close_clipboard_request
*req
)
3845 static void dump_close_clipboard_reply( const struct close_clipboard_reply
*req
)
3847 fprintf( stderr
, " viewer=%08x", req
->viewer
);
3848 fprintf( stderr
, ", owner=%08x", req
->owner
);
3851 static void dump_empty_clipboard_request( const struct empty_clipboard_request
*req
)
3855 static void dump_set_clipboard_data_request( const struct set_clipboard_data_request
*req
)
3857 fprintf( stderr
, " format=%08x", req
->format
);
3858 fprintf( stderr
, ", lcid=%08x", req
->lcid
);
3859 dump_varargs_bytes( ", data=", cur_size
);
3862 static void dump_set_clipboard_data_reply( const struct set_clipboard_data_reply
*req
)
3864 fprintf( stderr
, " seqno=%08x", req
->seqno
);
3867 static void dump_get_clipboard_data_request( const struct get_clipboard_data_request
*req
)
3869 fprintf( stderr
, " format=%08x", req
->format
);
3870 fprintf( stderr
, ", render=%d", req
->render
);
3871 fprintf( stderr
, ", cached=%d", req
->cached
);
3872 fprintf( stderr
, ", seqno=%08x", req
->seqno
);
3875 static void dump_get_clipboard_data_reply( const struct get_clipboard_data_reply
*req
)
3877 fprintf( stderr
, " from=%08x", req
->from
);
3878 fprintf( stderr
, ", owner=%08x", req
->owner
);
3879 fprintf( stderr
, ", seqno=%08x", req
->seqno
);
3880 fprintf( stderr
, ", total=%u", req
->total
);
3881 dump_varargs_bytes( ", data=", cur_size
);
3884 static void dump_get_clipboard_formats_request( const struct get_clipboard_formats_request
*req
)
3886 fprintf( stderr
, " format=%08x", req
->format
);
3889 static void dump_get_clipboard_formats_reply( const struct get_clipboard_formats_reply
*req
)
3891 fprintf( stderr
, " count=%08x", req
->count
);
3892 dump_varargs_uints( ", formats=", cur_size
);
3895 static void dump_enum_clipboard_formats_request( const struct enum_clipboard_formats_request
*req
)
3897 fprintf( stderr
, " previous=%08x", req
->previous
);
3900 static void dump_enum_clipboard_formats_reply( const struct enum_clipboard_formats_reply
*req
)
3902 fprintf( stderr
, " format=%08x", req
->format
);
3905 static void dump_release_clipboard_request( const struct release_clipboard_request
*req
)
3907 fprintf( stderr
, " owner=%08x", req
->owner
);
3910 static void dump_release_clipboard_reply( const struct release_clipboard_reply
*req
)
3912 fprintf( stderr
, " viewer=%08x", req
->viewer
);
3913 fprintf( stderr
, ", owner=%08x", req
->owner
);
3916 static void dump_get_clipboard_info_request( const struct get_clipboard_info_request
*req
)
3920 static void dump_get_clipboard_info_reply( const struct get_clipboard_info_reply
*req
)
3922 fprintf( stderr
, " window=%08x", req
->window
);
3923 fprintf( stderr
, ", owner=%08x", req
->owner
);
3924 fprintf( stderr
, ", viewer=%08x", req
->viewer
);
3925 fprintf( stderr
, ", seqno=%08x", req
->seqno
);
3928 static void dump_set_clipboard_viewer_request( const struct set_clipboard_viewer_request
*req
)
3930 fprintf( stderr
, " viewer=%08x", req
->viewer
);
3931 fprintf( stderr
, ", previous=%08x", req
->previous
);
3934 static void dump_set_clipboard_viewer_reply( const struct set_clipboard_viewer_reply
*req
)
3936 fprintf( stderr
, " old_viewer=%08x", req
->old_viewer
);
3937 fprintf( stderr
, ", owner=%08x", req
->owner
);
3940 static void dump_add_clipboard_listener_request( const struct add_clipboard_listener_request
*req
)
3942 fprintf( stderr
, " window=%08x", req
->window
);
3945 static void dump_remove_clipboard_listener_request( const struct remove_clipboard_listener_request
*req
)
3947 fprintf( stderr
, " window=%08x", req
->window
);
3950 static void dump_open_token_request( const struct open_token_request
*req
)
3952 fprintf( stderr
, " handle=%04x", req
->handle
);
3953 fprintf( stderr
, ", access=%08x", req
->access
);
3954 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3955 fprintf( stderr
, ", flags=%08x", req
->flags
);
3958 static void dump_open_token_reply( const struct open_token_reply
*req
)
3960 fprintf( stderr
, " token=%04x", req
->token
);
3963 static void dump_set_global_windows_request( const struct set_global_windows_request
*req
)
3965 fprintf( stderr
, " flags=%08x", req
->flags
);
3966 fprintf( stderr
, ", shell_window=%08x", req
->shell_window
);
3967 fprintf( stderr
, ", shell_listview=%08x", req
->shell_listview
);
3968 fprintf( stderr
, ", progman_window=%08x", req
->progman_window
);
3969 fprintf( stderr
, ", taskman_window=%08x", req
->taskman_window
);
3972 static void dump_set_global_windows_reply( const struct set_global_windows_reply
*req
)
3974 fprintf( stderr
, " old_shell_window=%08x", req
->old_shell_window
);
3975 fprintf( stderr
, ", old_shell_listview=%08x", req
->old_shell_listview
);
3976 fprintf( stderr
, ", old_progman_window=%08x", req
->old_progman_window
);
3977 fprintf( stderr
, ", old_taskman_window=%08x", req
->old_taskman_window
);
3980 static void dump_adjust_token_privileges_request( const struct adjust_token_privileges_request
*req
)
3982 fprintf( stderr
, " handle=%04x", req
->handle
);
3983 fprintf( stderr
, ", disable_all=%d", req
->disable_all
);
3984 fprintf( stderr
, ", get_modified_state=%d", req
->get_modified_state
);
3985 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size
);
3988 static void dump_adjust_token_privileges_reply( const struct adjust_token_privileges_reply
*req
)
3990 fprintf( stderr
, " len=%08x", req
->len
);
3991 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size
);
3994 static void dump_get_token_privileges_request( const struct get_token_privileges_request
*req
)
3996 fprintf( stderr
, " handle=%04x", req
->handle
);
3999 static void dump_get_token_privileges_reply( const struct get_token_privileges_reply
*req
)
4001 fprintf( stderr
, " len=%08x", req
->len
);
4002 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size
);
4005 static void dump_check_token_privileges_request( const struct check_token_privileges_request
*req
)
4007 fprintf( stderr
, " handle=%04x", req
->handle
);
4008 fprintf( stderr
, ", all_required=%d", req
->all_required
);
4009 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size
);
4012 static void dump_check_token_privileges_reply( const struct check_token_privileges_reply
*req
)
4014 fprintf( stderr
, " has_privileges=%d", req
->has_privileges
);
4015 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size
);
4018 static void dump_duplicate_token_request( const struct duplicate_token_request
*req
)
4020 fprintf( stderr
, " handle=%04x", req
->handle
);
4021 fprintf( stderr
, ", access=%08x", req
->access
);
4022 fprintf( stderr
, ", primary=%d", req
->primary
);
4023 fprintf( stderr
, ", impersonation_level=%d", req
->impersonation_level
);
4024 dump_varargs_object_attributes( ", objattr=", cur_size
);
4027 static void dump_duplicate_token_reply( const struct duplicate_token_reply
*req
)
4029 fprintf( stderr
, " new_handle=%04x", req
->new_handle
);
4032 static void dump_access_check_request( const struct access_check_request
*req
)
4034 fprintf( stderr
, " handle=%04x", req
->handle
);
4035 fprintf( stderr
, ", desired_access=%08x", req
->desired_access
);
4036 fprintf( stderr
, ", mapping_read=%08x", req
->mapping_read
);
4037 fprintf( stderr
, ", mapping_write=%08x", req
->mapping_write
);
4038 fprintf( stderr
, ", mapping_execute=%08x", req
->mapping_execute
);
4039 fprintf( stderr
, ", mapping_all=%08x", req
->mapping_all
);
4040 dump_varargs_security_descriptor( ", sd=", cur_size
);
4043 static void dump_access_check_reply( const struct access_check_reply
*req
)
4045 fprintf( stderr
, " access_granted=%08x", req
->access_granted
);
4046 fprintf( stderr
, ", access_status=%08x", req
->access_status
);
4047 fprintf( stderr
, ", privileges_len=%08x", req
->privileges_len
);
4048 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size
);
4051 static void dump_get_token_sid_request( const struct get_token_sid_request
*req
)
4053 fprintf( stderr
, " handle=%04x", req
->handle
);
4054 fprintf( stderr
, ", which_sid=%08x", req
->which_sid
);
4057 static void dump_get_token_sid_reply( const struct get_token_sid_reply
*req
)
4059 fprintf( stderr
, " sid_len=%u", req
->sid_len
);
4060 dump_varargs_SID( ", sid=", cur_size
);
4063 static void dump_get_token_groups_request( const struct get_token_groups_request
*req
)
4065 fprintf( stderr
, " handle=%04x", req
->handle
);
4068 static void dump_get_token_groups_reply( const struct get_token_groups_reply
*req
)
4070 fprintf( stderr
, " user_len=%u", req
->user_len
);
4071 dump_varargs_token_groups( ", user=", cur_size
);
4074 static void dump_get_token_default_dacl_request( const struct get_token_default_dacl_request
*req
)
4076 fprintf( stderr
, " handle=%04x", req
->handle
);
4079 static void dump_get_token_default_dacl_reply( const struct get_token_default_dacl_reply
*req
)
4081 fprintf( stderr
, " acl_len=%u", req
->acl_len
);
4082 dump_varargs_ACL( ", acl=", cur_size
);
4085 static void dump_set_token_default_dacl_request( const struct set_token_default_dacl_request
*req
)
4087 fprintf( stderr
, " handle=%04x", req
->handle
);
4088 dump_varargs_ACL( ", acl=", cur_size
);
4091 static void dump_set_security_object_request( const struct set_security_object_request
*req
)
4093 fprintf( stderr
, " handle=%04x", req
->handle
);
4094 fprintf( stderr
, ", security_info=%08x", req
->security_info
);
4095 dump_varargs_security_descriptor( ", sd=", cur_size
);
4098 static void dump_get_security_object_request( const struct get_security_object_request
*req
)
4100 fprintf( stderr
, " handle=%04x", req
->handle
);
4101 fprintf( stderr
, ", security_info=%08x", req
->security_info
);
4104 static void dump_get_security_object_reply( const struct get_security_object_reply
*req
)
4106 fprintf( stderr
, " sd_len=%08x", req
->sd_len
);
4107 dump_varargs_security_descriptor( ", sd=", cur_size
);
4110 static void dump_get_system_handles_request( const struct get_system_handles_request
*req
)
4114 static void dump_get_system_handles_reply( const struct get_system_handles_reply
*req
)
4116 fprintf( stderr
, " count=%08x", req
->count
);
4117 dump_varargs_handle_infos( ", data=", cur_size
);
4120 static void dump_create_mailslot_request( const struct create_mailslot_request
*req
)
4122 fprintf( stderr
, " access=%08x", req
->access
);
4123 dump_timeout( ", read_timeout=", &req
->read_timeout
);
4124 fprintf( stderr
, ", max_msgsize=%08x", req
->max_msgsize
);
4125 dump_varargs_object_attributes( ", objattr=", cur_size
);
4128 static void dump_create_mailslot_reply( const struct create_mailslot_reply
*req
)
4130 fprintf( stderr
, " handle=%04x", req
->handle
);
4133 static void dump_set_mailslot_info_request( const struct set_mailslot_info_request
*req
)
4135 fprintf( stderr
, " handle=%04x", req
->handle
);
4136 dump_timeout( ", read_timeout=", &req
->read_timeout
);
4137 fprintf( stderr
, ", flags=%08x", req
->flags
);
4140 static void dump_set_mailslot_info_reply( const struct set_mailslot_info_reply
*req
)
4142 dump_timeout( " read_timeout=", &req
->read_timeout
);
4143 fprintf( stderr
, ", max_msgsize=%08x", req
->max_msgsize
);
4146 static void dump_create_directory_request( const struct create_directory_request
*req
)
4148 fprintf( stderr
, " access=%08x", req
->access
);
4149 dump_varargs_object_attributes( ", objattr=", cur_size
);
4152 static void dump_create_directory_reply( const struct create_directory_reply
*req
)
4154 fprintf( stderr
, " handle=%04x", req
->handle
);
4157 static void dump_open_directory_request( const struct open_directory_request
*req
)
4159 fprintf( stderr
, " access=%08x", req
->access
);
4160 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
4161 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
4162 dump_varargs_unicode_str( ", directory_name=", cur_size
);
4165 static void dump_open_directory_reply( const struct open_directory_reply
*req
)
4167 fprintf( stderr
, " handle=%04x", req
->handle
);
4170 static void dump_get_directory_entry_request( const struct get_directory_entry_request
*req
)
4172 fprintf( stderr
, " handle=%04x", req
->handle
);
4173 fprintf( stderr
, ", index=%08x", req
->index
);
4176 static void dump_get_directory_entry_reply( const struct get_directory_entry_reply
*req
)
4178 fprintf( stderr
, " name_len=%u", req
->name_len
);
4179 dump_varargs_unicode_str( ", name=", min(cur_size
,req
->name_len
) );
4180 dump_varargs_unicode_str( ", type=", cur_size
);
4183 static void dump_create_symlink_request( const struct create_symlink_request
*req
)
4185 fprintf( stderr
, " access=%08x", req
->access
);
4186 dump_varargs_object_attributes( ", objattr=", cur_size
);
4187 dump_varargs_unicode_str( ", target_name=", cur_size
);
4190 static void dump_create_symlink_reply( const struct create_symlink_reply
*req
)
4192 fprintf( stderr
, " handle=%04x", req
->handle
);
4195 static void dump_open_symlink_request( const struct open_symlink_request
*req
)
4197 fprintf( stderr
, " access=%08x", req
->access
);
4198 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
4199 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
4200 dump_varargs_unicode_str( ", name=", cur_size
);
4203 static void dump_open_symlink_reply( const struct open_symlink_reply
*req
)
4205 fprintf( stderr
, " handle=%04x", req
->handle
);
4208 static void dump_query_symlink_request( const struct query_symlink_request
*req
)
4210 fprintf( stderr
, " handle=%04x", req
->handle
);
4213 static void dump_query_symlink_reply( const struct query_symlink_reply
*req
)
4215 fprintf( stderr
, " total=%u", req
->total
);
4216 dump_varargs_unicode_str( ", target_name=", cur_size
);
4219 static void dump_get_object_info_request( const struct get_object_info_request
*req
)
4221 fprintf( stderr
, " handle=%04x", req
->handle
);
4224 static void dump_get_object_info_reply( const struct get_object_info_reply
*req
)
4226 fprintf( stderr
, " access=%08x", req
->access
);
4227 fprintf( stderr
, ", ref_count=%08x", req
->ref_count
);
4228 fprintf( stderr
, ", handle_count=%08x", req
->handle_count
);
4229 fprintf( stderr
, ", total=%u", req
->total
);
4230 dump_varargs_unicode_str( ", name=", cur_size
);
4233 static void dump_get_object_type_request( const struct get_object_type_request
*req
)
4235 fprintf( stderr
, " handle=%04x", req
->handle
);
4238 static void dump_get_object_type_reply( const struct get_object_type_reply
*req
)
4240 fprintf( stderr
, " total=%u", req
->total
);
4241 dump_varargs_unicode_str( ", type=", cur_size
);
4244 static void dump_unlink_object_request( const struct unlink_object_request
*req
)
4246 fprintf( stderr
, " handle=%04x", req
->handle
);
4249 static void dump_get_token_impersonation_level_request( const struct get_token_impersonation_level_request
*req
)
4251 fprintf( stderr
, " handle=%04x", req
->handle
);
4254 static void dump_get_token_impersonation_level_reply( const struct get_token_impersonation_level_reply
*req
)
4256 fprintf( stderr
, " impersonation_level=%d", req
->impersonation_level
);
4259 static void dump_allocate_locally_unique_id_request( const struct allocate_locally_unique_id_request
*req
)
4263 static void dump_allocate_locally_unique_id_reply( const struct allocate_locally_unique_id_reply
*req
)
4265 dump_luid( " luid=", &req
->luid
);
4268 static void dump_create_device_manager_request( const struct create_device_manager_request
*req
)
4270 fprintf( stderr
, " access=%08x", req
->access
);
4271 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
4274 static void dump_create_device_manager_reply( const struct create_device_manager_reply
*req
)
4276 fprintf( stderr
, " handle=%04x", req
->handle
);
4279 static void dump_create_device_request( const struct create_device_request
*req
)
4281 fprintf( stderr
, " rootdir=%04x", req
->rootdir
);
4282 dump_uint64( ", user_ptr=", &req
->user_ptr
);
4283 fprintf( stderr
, ", manager=%04x", req
->manager
);
4284 dump_varargs_unicode_str( ", name=", cur_size
);
4287 static void dump_delete_device_request( const struct delete_device_request
*req
)
4289 fprintf( stderr
, " manager=%04x", req
->manager
);
4290 dump_uint64( ", device=", &req
->device
);
4293 static void dump_get_next_device_request_request( const struct get_next_device_request_request
*req
)
4295 fprintf( stderr
, " manager=%04x", req
->manager
);
4296 fprintf( stderr
, ", prev=%04x", req
->prev
);
4297 fprintf( stderr
, ", status=%08x", req
->status
);
4298 dump_uint64( ", user_ptr=", &req
->user_ptr
);
4301 static void dump_get_next_device_request_reply( const struct get_next_device_request_reply
*req
)
4303 dump_irp_params( " params=", &req
->params
);
4304 fprintf( stderr
, ", next=%04x", req
->next
);
4305 fprintf( stderr
, ", client_tid=%04x", req
->client_tid
);
4306 dump_uint64( ", client_thread=", &req
->client_thread
);
4307 fprintf( stderr
, ", in_size=%u", req
->in_size
);
4308 dump_varargs_bytes( ", next_data=", cur_size
);
4311 static void dump_get_kernel_object_ptr_request( const struct get_kernel_object_ptr_request
*req
)
4313 fprintf( stderr
, " manager=%04x", req
->manager
);
4314 fprintf( stderr
, ", handle=%04x", req
->handle
);
4317 static void dump_get_kernel_object_ptr_reply( const struct get_kernel_object_ptr_reply
*req
)
4319 dump_uint64( " user_ptr=", &req
->user_ptr
);
4322 static void dump_set_kernel_object_ptr_request( const struct set_kernel_object_ptr_request
*req
)
4324 fprintf( stderr
, " manager=%04x", req
->manager
);
4325 fprintf( stderr
, ", handle=%04x", req
->handle
);
4326 dump_uint64( ", user_ptr=", &req
->user_ptr
);
4329 static void dump_grab_kernel_object_request( const struct grab_kernel_object_request
*req
)
4331 fprintf( stderr
, " manager=%04x", req
->manager
);
4332 dump_uint64( ", user_ptr=", &req
->user_ptr
);
4335 static void dump_release_kernel_object_request( const struct release_kernel_object_request
*req
)
4337 fprintf( stderr
, " manager=%04x", req
->manager
);
4338 dump_uint64( ", user_ptr=", &req
->user_ptr
);
4341 static void dump_get_kernel_object_handle_request( const struct get_kernel_object_handle_request
*req
)
4343 fprintf( stderr
, " manager=%04x", req
->manager
);
4344 dump_uint64( ", user_ptr=", &req
->user_ptr
);
4345 fprintf( stderr
, ", access=%08x", req
->access
);
4348 static void dump_get_kernel_object_handle_reply( const struct get_kernel_object_handle_reply
*req
)
4350 fprintf( stderr
, " handle=%04x", req
->handle
);
4353 static void dump_make_process_system_request( const struct make_process_system_request
*req
)
4357 static void dump_make_process_system_reply( const struct make_process_system_reply
*req
)
4359 fprintf( stderr
, " event=%04x", req
->event
);
4362 static void dump_get_token_statistics_request( const struct get_token_statistics_request
*req
)
4364 fprintf( stderr
, " handle=%04x", req
->handle
);
4367 static void dump_get_token_statistics_reply( const struct get_token_statistics_reply
*req
)
4369 dump_luid( " token_id=", &req
->token_id
);
4370 dump_luid( ", modified_id=", &req
->modified_id
);
4371 fprintf( stderr
, ", primary=%d", req
->primary
);
4372 fprintf( stderr
, ", impersonation_level=%d", req
->impersonation_level
);
4373 fprintf( stderr
, ", group_count=%d", req
->group_count
);
4374 fprintf( stderr
, ", privilege_count=%d", req
->privilege_count
);
4377 static void dump_create_completion_request( const struct create_completion_request
*req
)
4379 fprintf( stderr
, " access=%08x", req
->access
);
4380 fprintf( stderr
, ", concurrent=%08x", req
->concurrent
);
4381 dump_varargs_object_attributes( ", objattr=", cur_size
);
4384 static void dump_create_completion_reply( const struct create_completion_reply
*req
)
4386 fprintf( stderr
, " handle=%04x", req
->handle
);
4389 static void dump_open_completion_request( const struct open_completion_request
*req
)
4391 fprintf( stderr
, " access=%08x", req
->access
);
4392 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
4393 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
4394 dump_varargs_unicode_str( ", filename=", cur_size
);
4397 static void dump_open_completion_reply( const struct open_completion_reply
*req
)
4399 fprintf( stderr
, " handle=%04x", req
->handle
);
4402 static void dump_add_completion_request( const struct add_completion_request
*req
)
4404 fprintf( stderr
, " handle=%04x", req
->handle
);
4405 dump_uint64( ", ckey=", &req
->ckey
);
4406 dump_uint64( ", cvalue=", &req
->cvalue
);
4407 dump_uint64( ", information=", &req
->information
);
4408 fprintf( stderr
, ", status=%08x", req
->status
);
4411 static void dump_remove_completion_request( const struct remove_completion_request
*req
)
4413 fprintf( stderr
, " handle=%04x", req
->handle
);
4416 static void dump_remove_completion_reply( const struct remove_completion_reply
*req
)
4418 dump_uint64( " ckey=", &req
->ckey
);
4419 dump_uint64( ", cvalue=", &req
->cvalue
);
4420 dump_uint64( ", information=", &req
->information
);
4421 fprintf( stderr
, ", status=%08x", req
->status
);
4424 static void dump_query_completion_request( const struct query_completion_request
*req
)
4426 fprintf( stderr
, " handle=%04x", req
->handle
);
4429 static void dump_query_completion_reply( const struct query_completion_reply
*req
)
4431 fprintf( stderr
, " depth=%08x", req
->depth
);
4434 static void dump_set_completion_info_request( const struct set_completion_info_request
*req
)
4436 fprintf( stderr
, " handle=%04x", req
->handle
);
4437 dump_uint64( ", ckey=", &req
->ckey
);
4438 fprintf( stderr
, ", chandle=%04x", req
->chandle
);
4441 static void dump_add_fd_completion_request( const struct add_fd_completion_request
*req
)
4443 fprintf( stderr
, " handle=%04x", req
->handle
);
4444 dump_uint64( ", cvalue=", &req
->cvalue
);
4445 dump_uint64( ", information=", &req
->information
);
4446 fprintf( stderr
, ", status=%08x", req
->status
);
4447 fprintf( stderr
, ", async=%d", req
->async
);
4450 static void dump_set_fd_completion_mode_request( const struct set_fd_completion_mode_request
*req
)
4452 fprintf( stderr
, " handle=%04x", req
->handle
);
4453 fprintf( stderr
, ", flags=%08x", req
->flags
);
4456 static void dump_set_fd_disp_info_request( const struct set_fd_disp_info_request
*req
)
4458 fprintf( stderr
, " handle=%04x", req
->handle
);
4459 fprintf( stderr
, ", unlink=%d", req
->unlink
);
4462 static void dump_set_fd_name_info_request( const struct set_fd_name_info_request
*req
)
4464 fprintf( stderr
, " handle=%04x", req
->handle
);
4465 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
4466 fprintf( stderr
, ", link=%d", req
->link
);
4467 dump_varargs_string( ", filename=", cur_size
);
4470 static void dump_get_window_layered_info_request( const struct get_window_layered_info_request
*req
)
4472 fprintf( stderr
, " handle=%08x", req
->handle
);
4475 static void dump_get_window_layered_info_reply( const struct get_window_layered_info_reply
*req
)
4477 fprintf( stderr
, " color_key=%08x", req
->color_key
);
4478 fprintf( stderr
, ", alpha=%08x", req
->alpha
);
4479 fprintf( stderr
, ", flags=%08x", req
->flags
);
4482 static void dump_set_window_layered_info_request( const struct set_window_layered_info_request
*req
)
4484 fprintf( stderr
, " handle=%08x", req
->handle
);
4485 fprintf( stderr
, ", color_key=%08x", req
->color_key
);
4486 fprintf( stderr
, ", alpha=%08x", req
->alpha
);
4487 fprintf( stderr
, ", flags=%08x", req
->flags
);
4490 static void dump_alloc_user_handle_request( const struct alloc_user_handle_request
*req
)
4494 static void dump_alloc_user_handle_reply( const struct alloc_user_handle_reply
*req
)
4496 fprintf( stderr
, " handle=%08x", req
->handle
);
4499 static void dump_free_user_handle_request( const struct free_user_handle_request
*req
)
4501 fprintf( stderr
, " handle=%08x", req
->handle
);
4504 static void dump_set_cursor_request( const struct set_cursor_request
*req
)
4506 fprintf( stderr
, " flags=%08x", req
->flags
);
4507 fprintf( stderr
, ", handle=%08x", req
->handle
);
4508 fprintf( stderr
, ", show_count=%d", req
->show_count
);
4509 fprintf( stderr
, ", x=%d", req
->x
);
4510 fprintf( stderr
, ", y=%d", req
->y
);
4511 dump_rectangle( ", clip=", &req
->clip
);
4512 fprintf( stderr
, ", clip_msg=%08x", req
->clip_msg
);
4515 static void dump_set_cursor_reply( const struct set_cursor_reply
*req
)
4517 fprintf( stderr
, " prev_handle=%08x", req
->prev_handle
);
4518 fprintf( stderr
, ", prev_count=%d", req
->prev_count
);
4519 fprintf( stderr
, ", prev_x=%d", req
->prev_x
);
4520 fprintf( stderr
, ", prev_y=%d", req
->prev_y
);
4521 fprintf( stderr
, ", new_x=%d", req
->new_x
);
4522 fprintf( stderr
, ", new_y=%d", req
->new_y
);
4523 dump_rectangle( ", new_clip=", &req
->new_clip
);
4524 fprintf( stderr
, ", last_change=%08x", req
->last_change
);
4527 static void dump_update_rawinput_devices_request( const struct update_rawinput_devices_request
*req
)
4529 dump_varargs_rawinput_devices( " devices=", cur_size
);
4532 static void dump_get_suspend_context_request( const struct get_suspend_context_request
*req
)
4536 static void dump_get_suspend_context_reply( const struct get_suspend_context_reply
*req
)
4538 dump_varargs_context( " context=", cur_size
);
4541 static void dump_set_suspend_context_request( const struct set_suspend_context_request
*req
)
4543 dump_varargs_context( " context=", cur_size
);
4546 static void dump_create_job_request( const struct create_job_request
*req
)
4548 fprintf( stderr
, " access=%08x", req
->access
);
4549 dump_varargs_object_attributes( ", objattr=", cur_size
);
4552 static void dump_create_job_reply( const struct create_job_reply
*req
)
4554 fprintf( stderr
, " handle=%04x", req
->handle
);
4557 static void dump_open_job_request( const struct open_job_request
*req
)
4559 fprintf( stderr
, " access=%08x", req
->access
);
4560 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
4561 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
4562 dump_varargs_unicode_str( ", name=", cur_size
);
4565 static void dump_open_job_reply( const struct open_job_reply
*req
)
4567 fprintf( stderr
, " handle=%04x", req
->handle
);
4570 static void dump_assign_job_request( const struct assign_job_request
*req
)
4572 fprintf( stderr
, " job=%04x", req
->job
);
4573 fprintf( stderr
, ", process=%04x", req
->process
);
4576 static void dump_process_in_job_request( const struct process_in_job_request
*req
)
4578 fprintf( stderr
, " job=%04x", req
->job
);
4579 fprintf( stderr
, ", process=%04x", req
->process
);
4582 static void dump_set_job_limits_request( const struct set_job_limits_request
*req
)
4584 fprintf( stderr
, " handle=%04x", req
->handle
);
4585 fprintf( stderr
, ", limit_flags=%08x", req
->limit_flags
);
4588 static void dump_set_job_completion_port_request( const struct set_job_completion_port_request
*req
)
4590 fprintf( stderr
, " job=%04x", req
->job
);
4591 fprintf( stderr
, ", port=%04x", req
->port
);
4592 dump_uint64( ", key=", &req
->key
);
4595 static void dump_terminate_job_request( const struct terminate_job_request
*req
)
4597 fprintf( stderr
, " handle=%04x", req
->handle
);
4598 fprintf( stderr
, ", status=%d", req
->status
);
4601 static void dump_suspend_process_request( const struct suspend_process_request
*req
)
4603 fprintf( stderr
, " handle=%04x", req
->handle
);
4606 static void dump_resume_process_request( const struct resume_process_request
*req
)
4608 fprintf( stderr
, " handle=%04x", req
->handle
);
4611 static const dump_func req_dumpers
[REQ_NB_REQUESTS
] = {
4612 (dump_func
)dump_new_process_request
,
4613 (dump_func
)dump_exec_process_request
,
4614 (dump_func
)dump_get_new_process_info_request
,
4615 (dump_func
)dump_new_thread_request
,
4616 (dump_func
)dump_get_startup_info_request
,
4617 (dump_func
)dump_init_process_done_request
,
4618 (dump_func
)dump_init_thread_request
,
4619 (dump_func
)dump_terminate_process_request
,
4620 (dump_func
)dump_terminate_thread_request
,
4621 (dump_func
)dump_get_process_info_request
,
4622 (dump_func
)dump_get_process_vm_counters_request
,
4623 (dump_func
)dump_set_process_info_request
,
4624 (dump_func
)dump_get_thread_info_request
,
4625 (dump_func
)dump_get_thread_times_request
,
4626 (dump_func
)dump_set_thread_info_request
,
4627 (dump_func
)dump_get_dll_info_request
,
4628 (dump_func
)dump_suspend_thread_request
,
4629 (dump_func
)dump_resume_thread_request
,
4630 (dump_func
)dump_load_dll_request
,
4631 (dump_func
)dump_unload_dll_request
,
4632 (dump_func
)dump_queue_apc_request
,
4633 (dump_func
)dump_get_apc_result_request
,
4634 (dump_func
)dump_close_handle_request
,
4635 (dump_func
)dump_set_handle_info_request
,
4636 (dump_func
)dump_dup_handle_request
,
4637 (dump_func
)dump_open_process_request
,
4638 (dump_func
)dump_open_thread_request
,
4639 (dump_func
)dump_select_request
,
4640 (dump_func
)dump_create_event_request
,
4641 (dump_func
)dump_event_op_request
,
4642 (dump_func
)dump_query_event_request
,
4643 (dump_func
)dump_open_event_request
,
4644 (dump_func
)dump_create_keyed_event_request
,
4645 (dump_func
)dump_open_keyed_event_request
,
4646 (dump_func
)dump_create_mutex_request
,
4647 (dump_func
)dump_release_mutex_request
,
4648 (dump_func
)dump_open_mutex_request
,
4649 (dump_func
)dump_query_mutex_request
,
4650 (dump_func
)dump_create_semaphore_request
,
4651 (dump_func
)dump_release_semaphore_request
,
4652 (dump_func
)dump_query_semaphore_request
,
4653 (dump_func
)dump_open_semaphore_request
,
4654 (dump_func
)dump_create_file_request
,
4655 (dump_func
)dump_open_file_object_request
,
4656 (dump_func
)dump_alloc_file_handle_request
,
4657 (dump_func
)dump_get_handle_unix_name_request
,
4658 (dump_func
)dump_get_handle_fd_request
,
4659 (dump_func
)dump_get_directory_cache_entry_request
,
4660 (dump_func
)dump_flush_request
,
4661 (dump_func
)dump_get_file_info_request
,
4662 (dump_func
)dump_get_volume_info_request
,
4663 (dump_func
)dump_lock_file_request
,
4664 (dump_func
)dump_unlock_file_request
,
4665 (dump_func
)dump_create_socket_request
,
4666 (dump_func
)dump_accept_socket_request
,
4667 (dump_func
)dump_accept_into_socket_request
,
4668 (dump_func
)dump_set_socket_event_request
,
4669 (dump_func
)dump_get_socket_event_request
,
4670 (dump_func
)dump_get_socket_info_request
,
4671 (dump_func
)dump_enable_socket_event_request
,
4672 (dump_func
)dump_set_socket_deferred_request
,
4673 (dump_func
)dump_alloc_console_request
,
4674 (dump_func
)dump_free_console_request
,
4675 (dump_func
)dump_get_console_renderer_events_request
,
4676 (dump_func
)dump_open_console_request
,
4677 (dump_func
)dump_attach_console_request
,
4678 (dump_func
)dump_get_console_wait_event_request
,
4679 (dump_func
)dump_get_console_mode_request
,
4680 (dump_func
)dump_set_console_mode_request
,
4681 (dump_func
)dump_set_console_input_info_request
,
4682 (dump_func
)dump_get_console_input_info_request
,
4683 (dump_func
)dump_append_console_input_history_request
,
4684 (dump_func
)dump_get_console_input_history_request
,
4685 (dump_func
)dump_create_console_output_request
,
4686 (dump_func
)dump_set_console_output_info_request
,
4687 (dump_func
)dump_get_console_output_info_request
,
4688 (dump_func
)dump_write_console_input_request
,
4689 (dump_func
)dump_read_console_input_request
,
4690 (dump_func
)dump_write_console_output_request
,
4691 (dump_func
)dump_fill_console_output_request
,
4692 (dump_func
)dump_read_console_output_request
,
4693 (dump_func
)dump_move_console_output_request
,
4694 (dump_func
)dump_send_console_signal_request
,
4695 (dump_func
)dump_read_directory_changes_request
,
4696 (dump_func
)dump_read_change_request
,
4697 (dump_func
)dump_create_mapping_request
,
4698 (dump_func
)dump_open_mapping_request
,
4699 (dump_func
)dump_get_mapping_info_request
,
4700 (dump_func
)dump_map_view_request
,
4701 (dump_func
)dump_unmap_view_request
,
4702 (dump_func
)dump_get_mapping_committed_range_request
,
4703 (dump_func
)dump_add_mapping_committed_range_request
,
4704 (dump_func
)dump_is_same_mapping_request
,
4705 (dump_func
)dump_create_snapshot_request
,
4706 (dump_func
)dump_next_process_request
,
4707 (dump_func
)dump_next_thread_request
,
4708 (dump_func
)dump_wait_debug_event_request
,
4709 (dump_func
)dump_queue_exception_event_request
,
4710 (dump_func
)dump_get_exception_status_request
,
4711 (dump_func
)dump_continue_debug_event_request
,
4712 (dump_func
)dump_debug_process_request
,
4713 (dump_func
)dump_set_debugger_kill_on_exit_request
,
4714 (dump_func
)dump_read_process_memory_request
,
4715 (dump_func
)dump_write_process_memory_request
,
4716 (dump_func
)dump_create_key_request
,
4717 (dump_func
)dump_open_key_request
,
4718 (dump_func
)dump_delete_key_request
,
4719 (dump_func
)dump_flush_key_request
,
4720 (dump_func
)dump_enum_key_request
,
4721 (dump_func
)dump_set_key_value_request
,
4722 (dump_func
)dump_get_key_value_request
,
4723 (dump_func
)dump_enum_key_value_request
,
4724 (dump_func
)dump_delete_key_value_request
,
4725 (dump_func
)dump_load_registry_request
,
4726 (dump_func
)dump_unload_registry_request
,
4727 (dump_func
)dump_save_registry_request
,
4728 (dump_func
)dump_set_registry_notification_request
,
4729 (dump_func
)dump_create_timer_request
,
4730 (dump_func
)dump_open_timer_request
,
4731 (dump_func
)dump_set_timer_request
,
4732 (dump_func
)dump_cancel_timer_request
,
4733 (dump_func
)dump_get_timer_info_request
,
4734 (dump_func
)dump_get_thread_context_request
,
4735 (dump_func
)dump_set_thread_context_request
,
4736 (dump_func
)dump_get_selector_entry_request
,
4737 (dump_func
)dump_add_atom_request
,
4738 (dump_func
)dump_delete_atom_request
,
4739 (dump_func
)dump_find_atom_request
,
4740 (dump_func
)dump_get_atom_information_request
,
4741 (dump_func
)dump_set_atom_information_request
,
4742 (dump_func
)dump_empty_atom_table_request
,
4743 (dump_func
)dump_init_atom_table_request
,
4744 (dump_func
)dump_get_msg_queue_request
,
4745 (dump_func
)dump_set_queue_fd_request
,
4746 (dump_func
)dump_set_queue_mask_request
,
4747 (dump_func
)dump_get_queue_status_request
,
4748 (dump_func
)dump_get_process_idle_event_request
,
4749 (dump_func
)dump_send_message_request
,
4750 (dump_func
)dump_post_quit_message_request
,
4751 (dump_func
)dump_send_hardware_message_request
,
4752 (dump_func
)dump_get_message_request
,
4753 (dump_func
)dump_reply_message_request
,
4754 (dump_func
)dump_accept_hardware_message_request
,
4755 (dump_func
)dump_get_message_reply_request
,
4756 (dump_func
)dump_set_win_timer_request
,
4757 (dump_func
)dump_kill_win_timer_request
,
4758 (dump_func
)dump_is_window_hung_request
,
4759 (dump_func
)dump_get_serial_info_request
,
4760 (dump_func
)dump_set_serial_info_request
,
4761 (dump_func
)dump_register_async_request
,
4762 (dump_func
)dump_cancel_async_request
,
4763 (dump_func
)dump_get_async_result_request
,
4764 (dump_func
)dump_read_request
,
4765 (dump_func
)dump_write_request
,
4766 (dump_func
)dump_ioctl_request
,
4767 (dump_func
)dump_set_irp_result_request
,
4768 (dump_func
)dump_create_named_pipe_request
,
4769 (dump_func
)dump_set_named_pipe_info_request
,
4770 (dump_func
)dump_create_window_request
,
4771 (dump_func
)dump_destroy_window_request
,
4772 (dump_func
)dump_get_desktop_window_request
,
4773 (dump_func
)dump_set_window_owner_request
,
4774 (dump_func
)dump_get_window_info_request
,
4775 (dump_func
)dump_set_window_info_request
,
4776 (dump_func
)dump_set_parent_request
,
4777 (dump_func
)dump_get_window_parents_request
,
4778 (dump_func
)dump_get_window_children_request
,
4779 (dump_func
)dump_get_window_children_from_point_request
,
4780 (dump_func
)dump_get_window_tree_request
,
4781 (dump_func
)dump_set_window_pos_request
,
4782 (dump_func
)dump_get_window_rectangles_request
,
4783 (dump_func
)dump_get_window_text_request
,
4784 (dump_func
)dump_set_window_text_request
,
4785 (dump_func
)dump_get_windows_offset_request
,
4786 (dump_func
)dump_get_visible_region_request
,
4787 (dump_func
)dump_get_surface_region_request
,
4788 (dump_func
)dump_get_window_region_request
,
4789 (dump_func
)dump_set_window_region_request
,
4790 (dump_func
)dump_get_update_region_request
,
4791 (dump_func
)dump_update_window_zorder_request
,
4792 (dump_func
)dump_redraw_window_request
,
4793 (dump_func
)dump_set_window_property_request
,
4794 (dump_func
)dump_remove_window_property_request
,
4795 (dump_func
)dump_get_window_property_request
,
4796 (dump_func
)dump_get_window_properties_request
,
4797 (dump_func
)dump_create_winstation_request
,
4798 (dump_func
)dump_open_winstation_request
,
4799 (dump_func
)dump_close_winstation_request
,
4800 (dump_func
)dump_get_process_winstation_request
,
4801 (dump_func
)dump_set_process_winstation_request
,
4802 (dump_func
)dump_enum_winstation_request
,
4803 (dump_func
)dump_create_desktop_request
,
4804 (dump_func
)dump_open_desktop_request
,
4805 (dump_func
)dump_open_input_desktop_request
,
4806 (dump_func
)dump_close_desktop_request
,
4807 (dump_func
)dump_get_thread_desktop_request
,
4808 (dump_func
)dump_set_thread_desktop_request
,
4809 (dump_func
)dump_enum_desktop_request
,
4810 (dump_func
)dump_set_user_object_info_request
,
4811 (dump_func
)dump_register_hotkey_request
,
4812 (dump_func
)dump_unregister_hotkey_request
,
4813 (dump_func
)dump_attach_thread_input_request
,
4814 (dump_func
)dump_get_thread_input_request
,
4815 (dump_func
)dump_get_last_input_time_request
,
4816 (dump_func
)dump_get_key_state_request
,
4817 (dump_func
)dump_set_key_state_request
,
4818 (dump_func
)dump_set_foreground_window_request
,
4819 (dump_func
)dump_set_focus_window_request
,
4820 (dump_func
)dump_set_active_window_request
,
4821 (dump_func
)dump_set_capture_window_request
,
4822 (dump_func
)dump_set_caret_window_request
,
4823 (dump_func
)dump_set_caret_info_request
,
4824 (dump_func
)dump_set_hook_request
,
4825 (dump_func
)dump_remove_hook_request
,
4826 (dump_func
)dump_start_hook_chain_request
,
4827 (dump_func
)dump_finish_hook_chain_request
,
4828 (dump_func
)dump_get_hook_info_request
,
4829 (dump_func
)dump_create_class_request
,
4830 (dump_func
)dump_destroy_class_request
,
4831 (dump_func
)dump_set_class_info_request
,
4832 (dump_func
)dump_open_clipboard_request
,
4833 (dump_func
)dump_close_clipboard_request
,
4834 (dump_func
)dump_empty_clipboard_request
,
4835 (dump_func
)dump_set_clipboard_data_request
,
4836 (dump_func
)dump_get_clipboard_data_request
,
4837 (dump_func
)dump_get_clipboard_formats_request
,
4838 (dump_func
)dump_enum_clipboard_formats_request
,
4839 (dump_func
)dump_release_clipboard_request
,
4840 (dump_func
)dump_get_clipboard_info_request
,
4841 (dump_func
)dump_set_clipboard_viewer_request
,
4842 (dump_func
)dump_add_clipboard_listener_request
,
4843 (dump_func
)dump_remove_clipboard_listener_request
,
4844 (dump_func
)dump_open_token_request
,
4845 (dump_func
)dump_set_global_windows_request
,
4846 (dump_func
)dump_adjust_token_privileges_request
,
4847 (dump_func
)dump_get_token_privileges_request
,
4848 (dump_func
)dump_check_token_privileges_request
,
4849 (dump_func
)dump_duplicate_token_request
,
4850 (dump_func
)dump_access_check_request
,
4851 (dump_func
)dump_get_token_sid_request
,
4852 (dump_func
)dump_get_token_groups_request
,
4853 (dump_func
)dump_get_token_default_dacl_request
,
4854 (dump_func
)dump_set_token_default_dacl_request
,
4855 (dump_func
)dump_set_security_object_request
,
4856 (dump_func
)dump_get_security_object_request
,
4857 (dump_func
)dump_get_system_handles_request
,
4858 (dump_func
)dump_create_mailslot_request
,
4859 (dump_func
)dump_set_mailslot_info_request
,
4860 (dump_func
)dump_create_directory_request
,
4861 (dump_func
)dump_open_directory_request
,
4862 (dump_func
)dump_get_directory_entry_request
,
4863 (dump_func
)dump_create_symlink_request
,
4864 (dump_func
)dump_open_symlink_request
,
4865 (dump_func
)dump_query_symlink_request
,
4866 (dump_func
)dump_get_object_info_request
,
4867 (dump_func
)dump_get_object_type_request
,
4868 (dump_func
)dump_unlink_object_request
,
4869 (dump_func
)dump_get_token_impersonation_level_request
,
4870 (dump_func
)dump_allocate_locally_unique_id_request
,
4871 (dump_func
)dump_create_device_manager_request
,
4872 (dump_func
)dump_create_device_request
,
4873 (dump_func
)dump_delete_device_request
,
4874 (dump_func
)dump_get_next_device_request_request
,
4875 (dump_func
)dump_get_kernel_object_ptr_request
,
4876 (dump_func
)dump_set_kernel_object_ptr_request
,
4877 (dump_func
)dump_grab_kernel_object_request
,
4878 (dump_func
)dump_release_kernel_object_request
,
4879 (dump_func
)dump_get_kernel_object_handle_request
,
4880 (dump_func
)dump_make_process_system_request
,
4881 (dump_func
)dump_get_token_statistics_request
,
4882 (dump_func
)dump_create_completion_request
,
4883 (dump_func
)dump_open_completion_request
,
4884 (dump_func
)dump_add_completion_request
,
4885 (dump_func
)dump_remove_completion_request
,
4886 (dump_func
)dump_query_completion_request
,
4887 (dump_func
)dump_set_completion_info_request
,
4888 (dump_func
)dump_add_fd_completion_request
,
4889 (dump_func
)dump_set_fd_completion_mode_request
,
4890 (dump_func
)dump_set_fd_disp_info_request
,
4891 (dump_func
)dump_set_fd_name_info_request
,
4892 (dump_func
)dump_get_window_layered_info_request
,
4893 (dump_func
)dump_set_window_layered_info_request
,
4894 (dump_func
)dump_alloc_user_handle_request
,
4895 (dump_func
)dump_free_user_handle_request
,
4896 (dump_func
)dump_set_cursor_request
,
4897 (dump_func
)dump_update_rawinput_devices_request
,
4898 (dump_func
)dump_get_suspend_context_request
,
4899 (dump_func
)dump_set_suspend_context_request
,
4900 (dump_func
)dump_create_job_request
,
4901 (dump_func
)dump_open_job_request
,
4902 (dump_func
)dump_assign_job_request
,
4903 (dump_func
)dump_process_in_job_request
,
4904 (dump_func
)dump_set_job_limits_request
,
4905 (dump_func
)dump_set_job_completion_port_request
,
4906 (dump_func
)dump_terminate_job_request
,
4907 (dump_func
)dump_suspend_process_request
,
4908 (dump_func
)dump_resume_process_request
,
4911 static const dump_func reply_dumpers
[REQ_NB_REQUESTS
] = {
4912 (dump_func
)dump_new_process_reply
,
4914 (dump_func
)dump_get_new_process_info_reply
,
4915 (dump_func
)dump_new_thread_reply
,
4916 (dump_func
)dump_get_startup_info_reply
,
4917 (dump_func
)dump_init_process_done_reply
,
4918 (dump_func
)dump_init_thread_reply
,
4919 (dump_func
)dump_terminate_process_reply
,
4920 (dump_func
)dump_terminate_thread_reply
,
4921 (dump_func
)dump_get_process_info_reply
,
4922 (dump_func
)dump_get_process_vm_counters_reply
,
4924 (dump_func
)dump_get_thread_info_reply
,
4925 (dump_func
)dump_get_thread_times_reply
,
4927 (dump_func
)dump_get_dll_info_reply
,
4928 (dump_func
)dump_suspend_thread_reply
,
4929 (dump_func
)dump_resume_thread_reply
,
4932 (dump_func
)dump_queue_apc_reply
,
4933 (dump_func
)dump_get_apc_result_reply
,
4935 (dump_func
)dump_set_handle_info_reply
,
4936 (dump_func
)dump_dup_handle_reply
,
4937 (dump_func
)dump_open_process_reply
,
4938 (dump_func
)dump_open_thread_reply
,
4939 (dump_func
)dump_select_reply
,
4940 (dump_func
)dump_create_event_reply
,
4941 (dump_func
)dump_event_op_reply
,
4942 (dump_func
)dump_query_event_reply
,
4943 (dump_func
)dump_open_event_reply
,
4944 (dump_func
)dump_create_keyed_event_reply
,
4945 (dump_func
)dump_open_keyed_event_reply
,
4946 (dump_func
)dump_create_mutex_reply
,
4947 (dump_func
)dump_release_mutex_reply
,
4948 (dump_func
)dump_open_mutex_reply
,
4949 (dump_func
)dump_query_mutex_reply
,
4950 (dump_func
)dump_create_semaphore_reply
,
4951 (dump_func
)dump_release_semaphore_reply
,
4952 (dump_func
)dump_query_semaphore_reply
,
4953 (dump_func
)dump_open_semaphore_reply
,
4954 (dump_func
)dump_create_file_reply
,
4955 (dump_func
)dump_open_file_object_reply
,
4956 (dump_func
)dump_alloc_file_handle_reply
,
4957 (dump_func
)dump_get_handle_unix_name_reply
,
4958 (dump_func
)dump_get_handle_fd_reply
,
4959 (dump_func
)dump_get_directory_cache_entry_reply
,
4960 (dump_func
)dump_flush_reply
,
4961 (dump_func
)dump_get_file_info_reply
,
4962 (dump_func
)dump_get_volume_info_reply
,
4963 (dump_func
)dump_lock_file_reply
,
4965 (dump_func
)dump_create_socket_reply
,
4966 (dump_func
)dump_accept_socket_reply
,
4969 (dump_func
)dump_get_socket_event_reply
,
4970 (dump_func
)dump_get_socket_info_reply
,
4973 (dump_func
)dump_alloc_console_reply
,
4975 (dump_func
)dump_get_console_renderer_events_reply
,
4976 (dump_func
)dump_open_console_reply
,
4977 (dump_func
)dump_attach_console_reply
,
4978 (dump_func
)dump_get_console_wait_event_reply
,
4979 (dump_func
)dump_get_console_mode_reply
,
4982 (dump_func
)dump_get_console_input_info_reply
,
4984 (dump_func
)dump_get_console_input_history_reply
,
4985 (dump_func
)dump_create_console_output_reply
,
4987 (dump_func
)dump_get_console_output_info_reply
,
4988 (dump_func
)dump_write_console_input_reply
,
4989 (dump_func
)dump_read_console_input_reply
,
4990 (dump_func
)dump_write_console_output_reply
,
4991 (dump_func
)dump_fill_console_output_reply
,
4992 (dump_func
)dump_read_console_output_reply
,
4996 (dump_func
)dump_read_change_reply
,
4997 (dump_func
)dump_create_mapping_reply
,
4998 (dump_func
)dump_open_mapping_reply
,
4999 (dump_func
)dump_get_mapping_info_reply
,
5002 (dump_func
)dump_get_mapping_committed_range_reply
,
5005 (dump_func
)dump_create_snapshot_reply
,
5006 (dump_func
)dump_next_process_reply
,
5007 (dump_func
)dump_next_thread_reply
,
5008 (dump_func
)dump_wait_debug_event_reply
,
5009 (dump_func
)dump_queue_exception_event_reply
,
5010 (dump_func
)dump_get_exception_status_reply
,
5014 (dump_func
)dump_read_process_memory_reply
,
5016 (dump_func
)dump_create_key_reply
,
5017 (dump_func
)dump_open_key_reply
,
5020 (dump_func
)dump_enum_key_reply
,
5022 (dump_func
)dump_get_key_value_reply
,
5023 (dump_func
)dump_enum_key_value_reply
,
5029 (dump_func
)dump_create_timer_reply
,
5030 (dump_func
)dump_open_timer_reply
,
5031 (dump_func
)dump_set_timer_reply
,
5032 (dump_func
)dump_cancel_timer_reply
,
5033 (dump_func
)dump_get_timer_info_reply
,
5034 (dump_func
)dump_get_thread_context_reply
,
5035 (dump_func
)dump_set_thread_context_reply
,
5036 (dump_func
)dump_get_selector_entry_reply
,
5037 (dump_func
)dump_add_atom_reply
,
5039 (dump_func
)dump_find_atom_reply
,
5040 (dump_func
)dump_get_atom_information_reply
,
5043 (dump_func
)dump_init_atom_table_reply
,
5044 (dump_func
)dump_get_msg_queue_reply
,
5046 (dump_func
)dump_set_queue_mask_reply
,
5047 (dump_func
)dump_get_queue_status_reply
,
5048 (dump_func
)dump_get_process_idle_event_reply
,
5051 (dump_func
)dump_send_hardware_message_reply
,
5052 (dump_func
)dump_get_message_reply
,
5055 (dump_func
)dump_get_message_reply_reply
,
5056 (dump_func
)dump_set_win_timer_reply
,
5058 (dump_func
)dump_is_window_hung_reply
,
5059 (dump_func
)dump_get_serial_info_reply
,
5063 (dump_func
)dump_get_async_result_reply
,
5064 (dump_func
)dump_read_reply
,
5065 (dump_func
)dump_write_reply
,
5066 (dump_func
)dump_ioctl_reply
,
5068 (dump_func
)dump_create_named_pipe_reply
,
5070 (dump_func
)dump_create_window_reply
,
5072 (dump_func
)dump_get_desktop_window_reply
,
5073 (dump_func
)dump_set_window_owner_reply
,
5074 (dump_func
)dump_get_window_info_reply
,
5075 (dump_func
)dump_set_window_info_reply
,
5076 (dump_func
)dump_set_parent_reply
,
5077 (dump_func
)dump_get_window_parents_reply
,
5078 (dump_func
)dump_get_window_children_reply
,
5079 (dump_func
)dump_get_window_children_from_point_reply
,
5080 (dump_func
)dump_get_window_tree_reply
,
5081 (dump_func
)dump_set_window_pos_reply
,
5082 (dump_func
)dump_get_window_rectangles_reply
,
5083 (dump_func
)dump_get_window_text_reply
,
5085 (dump_func
)dump_get_windows_offset_reply
,
5086 (dump_func
)dump_get_visible_region_reply
,
5087 (dump_func
)dump_get_surface_region_reply
,
5088 (dump_func
)dump_get_window_region_reply
,
5090 (dump_func
)dump_get_update_region_reply
,
5094 (dump_func
)dump_remove_window_property_reply
,
5095 (dump_func
)dump_get_window_property_reply
,
5096 (dump_func
)dump_get_window_properties_reply
,
5097 (dump_func
)dump_create_winstation_reply
,
5098 (dump_func
)dump_open_winstation_reply
,
5100 (dump_func
)dump_get_process_winstation_reply
,
5102 (dump_func
)dump_enum_winstation_reply
,
5103 (dump_func
)dump_create_desktop_reply
,
5104 (dump_func
)dump_open_desktop_reply
,
5105 (dump_func
)dump_open_input_desktop_reply
,
5107 (dump_func
)dump_get_thread_desktop_reply
,
5109 (dump_func
)dump_enum_desktop_reply
,
5110 (dump_func
)dump_set_user_object_info_reply
,
5111 (dump_func
)dump_register_hotkey_reply
,
5112 (dump_func
)dump_unregister_hotkey_reply
,
5114 (dump_func
)dump_get_thread_input_reply
,
5115 (dump_func
)dump_get_last_input_time_reply
,
5116 (dump_func
)dump_get_key_state_reply
,
5118 (dump_func
)dump_set_foreground_window_reply
,
5119 (dump_func
)dump_set_focus_window_reply
,
5120 (dump_func
)dump_set_active_window_reply
,
5121 (dump_func
)dump_set_capture_window_reply
,
5122 (dump_func
)dump_set_caret_window_reply
,
5123 (dump_func
)dump_set_caret_info_reply
,
5124 (dump_func
)dump_set_hook_reply
,
5125 (dump_func
)dump_remove_hook_reply
,
5126 (dump_func
)dump_start_hook_chain_reply
,
5128 (dump_func
)dump_get_hook_info_reply
,
5129 (dump_func
)dump_create_class_reply
,
5130 (dump_func
)dump_destroy_class_reply
,
5131 (dump_func
)dump_set_class_info_reply
,
5132 (dump_func
)dump_open_clipboard_reply
,
5133 (dump_func
)dump_close_clipboard_reply
,
5135 (dump_func
)dump_set_clipboard_data_reply
,
5136 (dump_func
)dump_get_clipboard_data_reply
,
5137 (dump_func
)dump_get_clipboard_formats_reply
,
5138 (dump_func
)dump_enum_clipboard_formats_reply
,
5139 (dump_func
)dump_release_clipboard_reply
,
5140 (dump_func
)dump_get_clipboard_info_reply
,
5141 (dump_func
)dump_set_clipboard_viewer_reply
,
5144 (dump_func
)dump_open_token_reply
,
5145 (dump_func
)dump_set_global_windows_reply
,
5146 (dump_func
)dump_adjust_token_privileges_reply
,
5147 (dump_func
)dump_get_token_privileges_reply
,
5148 (dump_func
)dump_check_token_privileges_reply
,
5149 (dump_func
)dump_duplicate_token_reply
,
5150 (dump_func
)dump_access_check_reply
,
5151 (dump_func
)dump_get_token_sid_reply
,
5152 (dump_func
)dump_get_token_groups_reply
,
5153 (dump_func
)dump_get_token_default_dacl_reply
,
5156 (dump_func
)dump_get_security_object_reply
,
5157 (dump_func
)dump_get_system_handles_reply
,
5158 (dump_func
)dump_create_mailslot_reply
,
5159 (dump_func
)dump_set_mailslot_info_reply
,
5160 (dump_func
)dump_create_directory_reply
,
5161 (dump_func
)dump_open_directory_reply
,
5162 (dump_func
)dump_get_directory_entry_reply
,
5163 (dump_func
)dump_create_symlink_reply
,
5164 (dump_func
)dump_open_symlink_reply
,
5165 (dump_func
)dump_query_symlink_reply
,
5166 (dump_func
)dump_get_object_info_reply
,
5167 (dump_func
)dump_get_object_type_reply
,
5169 (dump_func
)dump_get_token_impersonation_level_reply
,
5170 (dump_func
)dump_allocate_locally_unique_id_reply
,
5171 (dump_func
)dump_create_device_manager_reply
,
5174 (dump_func
)dump_get_next_device_request_reply
,
5175 (dump_func
)dump_get_kernel_object_ptr_reply
,
5179 (dump_func
)dump_get_kernel_object_handle_reply
,
5180 (dump_func
)dump_make_process_system_reply
,
5181 (dump_func
)dump_get_token_statistics_reply
,
5182 (dump_func
)dump_create_completion_reply
,
5183 (dump_func
)dump_open_completion_reply
,
5185 (dump_func
)dump_remove_completion_reply
,
5186 (dump_func
)dump_query_completion_reply
,
5192 (dump_func
)dump_get_window_layered_info_reply
,
5194 (dump_func
)dump_alloc_user_handle_reply
,
5196 (dump_func
)dump_set_cursor_reply
,
5198 (dump_func
)dump_get_suspend_context_reply
,
5200 (dump_func
)dump_create_job_reply
,
5201 (dump_func
)dump_open_job_reply
,
5211 static const char * const req_names
[REQ_NB_REQUESTS
] = {
5214 "get_new_process_info",
5217 "init_process_done",
5219 "terminate_process",
5222 "get_process_vm_counters",
5244 "create_keyed_event",
5251 "release_semaphore",
5256 "alloc_file_handle",
5257 "get_handle_unix_name",
5259 "get_directory_cache_entry",
5267 "accept_into_socket",
5271 "enable_socket_event",
5272 "set_socket_deferred",
5275 "get_console_renderer_events",
5278 "get_console_wait_event",
5281 "set_console_input_info",
5282 "get_console_input_info",
5283 "append_console_input_history",
5284 "get_console_input_history",
5285 "create_console_output",
5286 "set_console_output_info",
5287 "get_console_output_info",
5288 "write_console_input",
5289 "read_console_input",
5290 "write_console_output",
5291 "fill_console_output",
5292 "read_console_output",
5293 "move_console_output",
5294 "send_console_signal",
5295 "read_directory_changes",
5302 "get_mapping_committed_range",
5303 "add_mapping_committed_range",
5309 "queue_exception_event",
5310 "get_exception_status",
5311 "continue_debug_event",
5313 "set_debugger_kill_on_exit",
5314 "read_process_memory",
5315 "write_process_memory",
5328 "set_registry_notification",
5334 "get_thread_context",
5335 "set_thread_context",
5336 "get_selector_entry",
5340 "get_atom_information",
5341 "set_atom_information",
5348 "get_process_idle_event",
5350 "post_quit_message",
5351 "send_hardware_message",
5354 "accept_hardware_message",
5355 "get_message_reply",
5368 "create_named_pipe",
5369 "set_named_pipe_info",
5372 "get_desktop_window",
5377 "get_window_parents",
5378 "get_window_children",
5379 "get_window_children_from_point",
5382 "get_window_rectangles",
5385 "get_windows_offset",
5386 "get_visible_region",
5387 "get_surface_region",
5388 "get_window_region",
5389 "set_window_region",
5390 "get_update_region",
5391 "update_window_zorder",
5393 "set_window_property",
5394 "remove_window_property",
5395 "get_window_property",
5396 "get_window_properties",
5397 "create_winstation",
5400 "get_process_winstation",
5401 "set_process_winstation",
5405 "open_input_desktop",
5407 "get_thread_desktop",
5408 "set_thread_desktop",
5410 "set_user_object_info",
5412 "unregister_hotkey",
5413 "attach_thread_input",
5415 "get_last_input_time",
5418 "set_foreground_window",
5420 "set_active_window",
5421 "set_capture_window",
5427 "finish_hook_chain",
5435 "set_clipboard_data",
5436 "get_clipboard_data",
5437 "get_clipboard_formats",
5438 "enum_clipboard_formats",
5439 "release_clipboard",
5440 "get_clipboard_info",
5441 "set_clipboard_viewer",
5442 "add_clipboard_listener",
5443 "remove_clipboard_listener",
5445 "set_global_windows",
5446 "adjust_token_privileges",
5447 "get_token_privileges",
5448 "check_token_privileges",
5453 "get_token_default_dacl",
5454 "set_token_default_dacl",
5455 "set_security_object",
5456 "get_security_object",
5457 "get_system_handles",
5459 "set_mailslot_info",
5462 "get_directory_entry",
5469 "get_token_impersonation_level",
5470 "allocate_locally_unique_id",
5471 "create_device_manager",
5474 "get_next_device_request",
5475 "get_kernel_object_ptr",
5476 "set_kernel_object_ptr",
5477 "grab_kernel_object",
5478 "release_kernel_object",
5479 "get_kernel_object_handle",
5480 "make_process_system",
5481 "get_token_statistics",
5482 "create_completion",
5485 "remove_completion",
5487 "set_completion_info",
5488 "add_fd_completion",
5489 "set_fd_completion_mode",
5492 "get_window_layered_info",
5493 "set_window_layered_info",
5494 "alloc_user_handle",
5497 "update_rawinput_devices",
5498 "get_suspend_context",
5499 "set_suspend_context",
5505 "set_job_completion_port",
5517 { "ABANDONED_WAIT_0", STATUS_ABANDONED_WAIT_0
},
5518 { "ACCESS_DENIED", STATUS_ACCESS_DENIED
},
5519 { "ACCESS_VIOLATION", STATUS_ACCESS_VIOLATION
},
5520 { "ADDRESS_ALREADY_ASSOCIATED", STATUS_ADDRESS_ALREADY_ASSOCIATED
},
5521 { "ALERTED", STATUS_ALERTED
},
5522 { "ALIAS_EXISTS", STATUS_ALIAS_EXISTS
},
5523 { "BAD_DEVICE_TYPE", STATUS_BAD_DEVICE_TYPE
},
5524 { "BAD_IMPERSONATION_LEVEL", STATUS_BAD_IMPERSONATION_LEVEL
},
5525 { "BUFFER_OVERFLOW", STATUS_BUFFER_OVERFLOW
},
5526 { "BUFFER_TOO_SMALL", STATUS_BUFFER_TOO_SMALL
},
5527 { "CANCELLED", STATUS_CANCELLED
},
5528 { "CANNOT_DELETE", STATUS_CANNOT_DELETE
},
5529 { "CANT_OPEN_ANONYMOUS", STATUS_CANT_OPEN_ANONYMOUS
},
5530 { "CANT_WAIT", STATUS_CANT_WAIT
},
5531 { "CHILD_MUST_BE_VOLATILE", STATUS_CHILD_MUST_BE_VOLATILE
},
5532 { "CONNECTION_ABORTED", STATUS_CONNECTION_ABORTED
},
5533 { "CONNECTION_DISCONNECTED", STATUS_CONNECTION_DISCONNECTED
},
5534 { "CONNECTION_REFUSED", STATUS_CONNECTION_REFUSED
},
5535 { "CONNECTION_RESET", STATUS_CONNECTION_RESET
},
5536 { "DEBUGGER_INACTIVE", STATUS_DEBUGGER_INACTIVE
},
5537 { "DEVICE_BUSY", STATUS_DEVICE_BUSY
},
5538 { "DIRECTORY_NOT_EMPTY", STATUS_DIRECTORY_NOT_EMPTY
},
5539 { "DISK_FULL", STATUS_DISK_FULL
},
5540 { "DLL_NOT_FOUND", STATUS_DLL_NOT_FOUND
},
5541 { "ERROR_CLASS_ALREADY_EXISTS", 0xc0010000 | ERROR_CLASS_ALREADY_EXISTS
},
5542 { "ERROR_CLASS_DOES_NOT_EXIST", 0xc0010000 | ERROR_CLASS_DOES_NOT_EXIST
},
5543 { "ERROR_CLASS_HAS_WINDOWS", 0xc0010000 | ERROR_CLASS_HAS_WINDOWS
},
5544 { "ERROR_CLIPBOARD_NOT_OPEN", 0xc0010000 | ERROR_CLIPBOARD_NOT_OPEN
},
5545 { "ERROR_HOTKEY_ALREADY_REGISTERED", 0xc0010000 | ERROR_HOTKEY_ALREADY_REGISTERED
},
5546 { "ERROR_HOTKEY_NOT_REGISTERED", 0xc0010000 | ERROR_HOTKEY_NOT_REGISTERED
},
5547 { "ERROR_INVALID_CURSOR_HANDLE", 0xc0010000 | ERROR_INVALID_CURSOR_HANDLE
},
5548 { "ERROR_INVALID_INDEX", 0xc0010000 | ERROR_INVALID_INDEX
},
5549 { "ERROR_INVALID_WINDOW_HANDLE", 0xc0010000 | ERROR_INVALID_WINDOW_HANDLE
},
5550 { "ERROR_NO_MORE_USER_HANDLES", 0xc0010000 | ERROR_NO_MORE_USER_HANDLES
},
5551 { "ERROR_WINDOW_OF_OTHER_THREAD", 0xc0010000 | ERROR_WINDOW_OF_OTHER_THREAD
},
5552 { "FILE_DELETED", STATUS_FILE_DELETED
},
5553 { "FILE_IS_A_DIRECTORY", STATUS_FILE_IS_A_DIRECTORY
},
5554 { "FILE_LOCK_CONFLICT", STATUS_FILE_LOCK_CONFLICT
},
5555 { "GENERIC_NOT_MAPPED", STATUS_GENERIC_NOT_MAPPED
},
5556 { "HANDLES_CLOSED", STATUS_HANDLES_CLOSED
},
5557 { "HANDLE_NOT_CLOSABLE", STATUS_HANDLE_NOT_CLOSABLE
},
5558 { "HOST_UNREACHABLE", STATUS_HOST_UNREACHABLE
},
5559 { "ILLEGAL_FUNCTION", STATUS_ILLEGAL_FUNCTION
},
5560 { "INFO_LENGTH_MISMATCH", STATUS_INFO_LENGTH_MISMATCH
},
5561 { "INSTANCE_NOT_AVAILABLE", STATUS_INSTANCE_NOT_AVAILABLE
},
5562 { "INSUFFICIENT_RESOURCES", STATUS_INSUFFICIENT_RESOURCES
},
5563 { "INVALID_CID", STATUS_INVALID_CID
},
5564 { "INVALID_DEVICE_REQUEST", STATUS_INVALID_DEVICE_REQUEST
},
5565 { "INVALID_FILE_FOR_SECTION", STATUS_INVALID_FILE_FOR_SECTION
},
5566 { "INVALID_HANDLE", STATUS_INVALID_HANDLE
},
5567 { "INVALID_IMAGE_FORMAT", STATUS_INVALID_IMAGE_FORMAT
},
5568 { "INVALID_IMAGE_NE_FORMAT", STATUS_INVALID_IMAGE_NE_FORMAT
},
5569 { "INVALID_IMAGE_NOT_MZ", STATUS_INVALID_IMAGE_NOT_MZ
},
5570 { "INVALID_IMAGE_PROTECT", STATUS_INVALID_IMAGE_PROTECT
},
5571 { "INVALID_IMAGE_WIN_16", STATUS_INVALID_IMAGE_WIN_16
},
5572 { "INVALID_IMAGE_WIN_64", STATUS_INVALID_IMAGE_WIN_64
},
5573 { "INVALID_LOCK_SEQUENCE", STATUS_INVALID_LOCK_SEQUENCE
},
5574 { "INVALID_OWNER", STATUS_INVALID_OWNER
},
5575 { "INVALID_PARAMETER", STATUS_INVALID_PARAMETER
},
5576 { "INVALID_PIPE_STATE", STATUS_INVALID_PIPE_STATE
},
5577 { "INVALID_READ_MODE", STATUS_INVALID_READ_MODE
},
5578 { "INVALID_SECURITY_DESCR", STATUS_INVALID_SECURITY_DESCR
},
5579 { "IO_TIMEOUT", STATUS_IO_TIMEOUT
},
5580 { "KEY_DELETED", STATUS_KEY_DELETED
},
5581 { "MAPPED_FILE_SIZE_ZERO", STATUS_MAPPED_FILE_SIZE_ZERO
},
5582 { "MORE_PROCESSING_REQUIRED", STATUS_MORE_PROCESSING_REQUIRED
},
5583 { "MUTANT_NOT_OWNED", STATUS_MUTANT_NOT_OWNED
},
5584 { "NAME_TOO_LONG", STATUS_NAME_TOO_LONG
},
5585 { "NETWORK_BUSY", STATUS_NETWORK_BUSY
},
5586 { "NETWORK_UNREACHABLE", STATUS_NETWORK_UNREACHABLE
},
5587 { "NOT_ALL_ASSIGNED", STATUS_NOT_ALL_ASSIGNED
},
5588 { "NOT_A_DIRECTORY", STATUS_NOT_A_DIRECTORY
},
5589 { "NOT_FOUND", STATUS_NOT_FOUND
},
5590 { "NOT_IMPLEMENTED", STATUS_NOT_IMPLEMENTED
},
5591 { "NOT_MAPPED_VIEW", STATUS_NOT_MAPPED_VIEW
},
5592 { "NOT_REGISTRY_FILE", STATUS_NOT_REGISTRY_FILE
},
5593 { "NOT_SAME_DEVICE", STATUS_NOT_SAME_DEVICE
},
5594 { "NOT_SUPPORTED", STATUS_NOT_SUPPORTED
},
5595 { "NO_DATA_DETECTED", STATUS_NO_DATA_DETECTED
},
5596 { "NO_IMPERSONATION_TOKEN", STATUS_NO_IMPERSONATION_TOKEN
},
5597 { "NO_MEMORY", STATUS_NO_MEMORY
},
5598 { "NO_MORE_ENTRIES", STATUS_NO_MORE_ENTRIES
},
5599 { "NO_MORE_FILES", STATUS_NO_MORE_FILES
},
5600 { "NO_SUCH_DEVICE", STATUS_NO_SUCH_DEVICE
},
5601 { "NO_SUCH_FILE", STATUS_NO_SUCH_FILE
},
5602 { "NO_TOKEN", STATUS_NO_TOKEN
},
5603 { "OBJECT_NAME_COLLISION", STATUS_OBJECT_NAME_COLLISION
},
5604 { "OBJECT_NAME_EXISTS", STATUS_OBJECT_NAME_EXISTS
},
5605 { "OBJECT_NAME_INVALID", STATUS_OBJECT_NAME_INVALID
},
5606 { "OBJECT_NAME_NOT_FOUND", STATUS_OBJECT_NAME_NOT_FOUND
},
5607 { "OBJECT_PATH_INVALID", STATUS_OBJECT_PATH_INVALID
},
5608 { "OBJECT_PATH_NOT_FOUND", STATUS_OBJECT_PATH_NOT_FOUND
},
5609 { "OBJECT_PATH_SYNTAX_BAD", STATUS_OBJECT_PATH_SYNTAX_BAD
},
5610 { "OBJECT_TYPE_MISMATCH", STATUS_OBJECT_TYPE_MISMATCH
},
5611 { "PENDING", STATUS_PENDING
},
5612 { "PIPE_BROKEN", STATUS_PIPE_BROKEN
},
5613 { "PIPE_BUSY", STATUS_PIPE_BUSY
},
5614 { "PIPE_CLOSING", STATUS_PIPE_CLOSING
},
5615 { "PIPE_CONNECTED", STATUS_PIPE_CONNECTED
},
5616 { "PIPE_DISCONNECTED", STATUS_PIPE_DISCONNECTED
},
5617 { "PIPE_EMPTY", STATUS_PIPE_EMPTY
},
5618 { "PIPE_LISTENING", STATUS_PIPE_LISTENING
},
5619 { "PIPE_NOT_AVAILABLE", STATUS_PIPE_NOT_AVAILABLE
},
5620 { "PRIVILEGE_NOT_HELD", STATUS_PRIVILEGE_NOT_HELD
},
5621 { "PROCESS_IN_JOB", STATUS_PROCESS_IN_JOB
},
5622 { "PROCESS_IS_TERMINATING", STATUS_PROCESS_IS_TERMINATING
},
5623 { "PROCESS_NOT_IN_JOB", STATUS_PROCESS_NOT_IN_JOB
},
5624 { "REPARSE_POINT_NOT_RESOLVED", STATUS_REPARSE_POINT_NOT_RESOLVED
},
5625 { "SECTION_TOO_BIG", STATUS_SECTION_TOO_BIG
},
5626 { "SEMAPHORE_LIMIT_EXCEEDED", STATUS_SEMAPHORE_LIMIT_EXCEEDED
},
5627 { "SHARING_VIOLATION", STATUS_SHARING_VIOLATION
},
5628 { "SHUTDOWN_IN_PROGRESS", STATUS_SHUTDOWN_IN_PROGRESS
},
5629 { "SUSPEND_COUNT_EXCEEDED", STATUS_SUSPEND_COUNT_EXCEEDED
},
5630 { "THREAD_IS_TERMINATING", STATUS_THREAD_IS_TERMINATING
},
5631 { "TIMEOUT", STATUS_TIMEOUT
},
5632 { "TOO_MANY_OPENED_FILES", STATUS_TOO_MANY_OPENED_FILES
},
5633 { "UNSUCCESSFUL", STATUS_UNSUCCESSFUL
},
5634 { "USER_APC", STATUS_USER_APC
},
5635 { "USER_MAPPED_FILE", STATUS_USER_MAPPED_FILE
},
5636 { "VOLUME_DISMOUNTED", STATUS_VOLUME_DISMOUNTED
},
5637 { "WAS_LOCKED", STATUS_WAS_LOCKED
},
5638 { "WSAEACCES", 0xc0010000 | WSAEACCES
},
5639 { "WSAEADDRINUSE", 0xc0010000 | WSAEADDRINUSE
},
5640 { "WSAEADDRNOTAVAIL", 0xc0010000 | WSAEADDRNOTAVAIL
},
5641 { "WSAEAFNOSUPPORT", 0xc0010000 | WSAEAFNOSUPPORT
},
5642 { "WSAEALREADY", 0xc0010000 | WSAEALREADY
},
5643 { "WSAEBADF", 0xc0010000 | WSAEBADF
},
5644 { "WSAECONNABORTED", 0xc0010000 | WSAECONNABORTED
},
5645 { "WSAECONNREFUSED", 0xc0010000 | WSAECONNREFUSED
},
5646 { "WSAECONNRESET", 0xc0010000 | WSAECONNRESET
},
5647 { "WSAEDESTADDRREQ", 0xc0010000 | WSAEDESTADDRREQ
},
5648 { "WSAEDQUOT", 0xc0010000 | WSAEDQUOT
},
5649 { "WSAEFAULT", 0xc0010000 | WSAEFAULT
},
5650 { "WSAEHOSTDOWN", 0xc0010000 | WSAEHOSTDOWN
},
5651 { "WSAEHOSTUNREACH", 0xc0010000 | WSAEHOSTUNREACH
},
5652 { "WSAEINPROGRESS", 0xc0010000 | WSAEINPROGRESS
},
5653 { "WSAEINTR", 0xc0010000 | WSAEINTR
},
5654 { "WSAEINVAL", 0xc0010000 | WSAEINVAL
},
5655 { "WSAEISCONN", 0xc0010000 | WSAEISCONN
},
5656 { "WSAELOOP", 0xc0010000 | WSAELOOP
},
5657 { "WSAEMFILE", 0xc0010000 | WSAEMFILE
},
5658 { "WSAEMSGSIZE", 0xc0010000 | WSAEMSGSIZE
},
5659 { "WSAENAMETOOLONG", 0xc0010000 | WSAENAMETOOLONG
},
5660 { "WSAENETDOWN", 0xc0010000 | WSAENETDOWN
},
5661 { "WSAENETRESET", 0xc0010000 | WSAENETRESET
},
5662 { "WSAENETUNREACH", 0xc0010000 | WSAENETUNREACH
},
5663 { "WSAENOBUFS", 0xc0010000 | WSAENOBUFS
},
5664 { "WSAENOPROTOOPT", 0xc0010000 | WSAENOPROTOOPT
},
5665 { "WSAENOTCONN", 0xc0010000 | WSAENOTCONN
},
5666 { "WSAENOTEMPTY", 0xc0010000 | WSAENOTEMPTY
},
5667 { "WSAENOTSOCK", 0xc0010000 | WSAENOTSOCK
},
5668 { "WSAEOPNOTSUPP", 0xc0010000 | WSAEOPNOTSUPP
},
5669 { "WSAEPFNOSUPPORT", 0xc0010000 | WSAEPFNOSUPPORT
},
5670 { "WSAEPROCLIM", 0xc0010000 | WSAEPROCLIM
},
5671 { "WSAEPROTONOSUPPORT", 0xc0010000 | WSAEPROTONOSUPPORT
},
5672 { "WSAEPROTOTYPE", 0xc0010000 | WSAEPROTOTYPE
},
5673 { "WSAEREMOTE", 0xc0010000 | WSAEREMOTE
},
5674 { "WSAESHUTDOWN", 0xc0010000 | WSAESHUTDOWN
},
5675 { "WSAESOCKTNOSUPPORT", 0xc0010000 | WSAESOCKTNOSUPPORT
},
5676 { "WSAESTALE", 0xc0010000 | WSAESTALE
},
5677 { "WSAETIMEDOUT", 0xc0010000 | WSAETIMEDOUT
},
5678 { "WSAETOOMANYREFS", 0xc0010000 | WSAETOOMANYREFS
},
5679 { "WSAEUSERS", 0xc0010000 | WSAEUSERS
},
5680 { "WSAEWOULDBLOCK", 0xc0010000 | WSAEWOULDBLOCK
},
5684 /* ### make_requests end ### */
5685 /* Everything above this line is generated automatically by tools/make_requests */
5687 static const char *get_status_name( unsigned int status
)
5690 static char buffer
[10];
5694 for (i
= 0; status_names
[i
].name
; i
++)
5695 if (status_names
[i
].value
== status
) return status_names
[i
].name
;
5697 sprintf( buffer
, "%x", status
);
5701 void trace_request(void)
5703 enum request req
= current
->req
.request_header
.req
;
5704 if (req
< REQ_NB_REQUESTS
)
5706 fprintf( stderr
, "%04x: %s(", current
->id
, req_names
[req
] );
5707 if (req_dumpers
[req
])
5709 cur_data
= get_req_data();
5710 cur_size
= get_req_data_size();
5711 req_dumpers
[req
]( ¤t
->req
);
5713 fprintf( stderr
, " )\n" );
5715 else fprintf( stderr
, "%04x: %d(?)\n", current
->id
, req
);
5718 void trace_reply( enum request req
, const union generic_reply
*reply
)
5720 if (req
< REQ_NB_REQUESTS
)
5722 fprintf( stderr
, "%04x: %s() = %s",
5723 current
->id
, req_names
[req
], get_status_name(current
->error
) );
5724 if (reply_dumpers
[req
])
5726 fprintf( stderr
, " {" );
5727 cur_data
= current
->reply_data
;
5728 cur_size
= reply
->reply_header
.reply_size
;
5729 reply_dumpers
[req
]( reply
);
5730 fprintf( stderr
, " }" );
5732 fputc( '\n', stderr
);
5734 else fprintf( stderr
, "%04x: %d() = %s\n",
5735 current
->id
, req
, get_status_name(current
->error
) );