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
48 static const void *cur_data
;
49 static data_size_t cur_size
;
51 static const char *get_status_name( unsigned int status
);
53 /* utility functions */
55 static inline void remove_data( data_size_t size
)
57 cur_data
= (const char *)cur_data
+ size
;
61 static void dump_uints( const char *prefix
, const unsigned int *ptr
, int len
)
63 fprintf( stderr
, "%s{", prefix
);
66 fprintf( stderr
, "%08x", *ptr
++ );
67 if (--len
) fputc( ',', stderr
);
72 static void dump_handles( const char *prefix
, const obj_handle_t
*data
, data_size_t size
)
74 data_size_t len
= size
/ sizeof(*data
);
76 fprintf( stderr
,"%s{", prefix
);
79 fprintf( stderr
, "%04x", *data
++ );
80 if (--len
) fputc( ',', stderr
);
85 static void dump_timeout( const char *prefix
, const timeout_t
*time
)
87 fprintf( stderr
, "%s%s", prefix
, get_timeout_str(*time
) );
90 static void dump_uint64( const char *prefix
, const unsigned __int64
*val
)
92 if ((unsigned int)*val
!= *val
)
93 fprintf( stderr
, "%s%x%08x", prefix
, (unsigned int)(*val
>> 32), (unsigned int)*val
);
95 fprintf( stderr
, "%s%08x", prefix
, (unsigned int)*val
);
98 static void dump_rectangle( const char *prefix
, const rectangle_t
*rect
)
100 fprintf( stderr
, "%s{%d,%d;%d,%d}", prefix
,
101 rect
->left
, rect
->top
, rect
->right
, rect
->bottom
);
104 static void dump_char_info( const char *prefix
, const char_info_t
*info
)
106 fprintf( stderr
, "%s{'", prefix
);
107 dump_strW( &info
->ch
, 1, stderr
, "\'\'" );
108 fprintf( stderr
, "',%04x}", info
->attr
);
111 static void dump_ioctl_code( const char *prefix
, const ioctl_code_t
*code
)
115 #define CASE(c) case c: fprintf( stderr, "%s%s", prefix, #c ); break
116 CASE(FSCTL_DISMOUNT_VOLUME
);
117 CASE(FSCTL_PIPE_DISCONNECT
);
118 CASE(FSCTL_PIPE_LISTEN
);
119 CASE(FSCTL_PIPE_WAIT
);
120 CASE(WS_SIO_ADDRESS_LIST_CHANGE
);
121 default: fprintf( stderr
, "%s%08x", prefix
, *code
); break;
126 static void dump_cpu_type( const char *prefix
, const cpu_type_t
*code
)
130 #define CASE(c) case CPU_##c: fprintf( stderr, "%s%s", prefix, #c ); break
136 default: fprintf( stderr
, "%s%u", prefix
, *code
); break;
141 static void dump_apc_call( const char *prefix
, const apc_call_t
*call
)
143 fprintf( stderr
, "%s{", prefix
);
147 fprintf( stderr
, "APC_NONE" );
150 dump_uint64( "APC_USER,func=", &call
->user
.func
);
151 dump_uint64( ",args={", &call
->user
.args
[0] );
152 dump_uint64( ",", &call
->user
.args
[1] );
153 dump_uint64( ",", &call
->user
.args
[2] );
154 fputc( '}', stderr
);
157 dump_timeout( "APC_TIMER,time=", &call
->timer
.time
);
158 dump_uint64( ",arg=", &call
->timer
.arg
);
161 dump_uint64( "APC_ASYNC_IO,func=", &call
->async_io
.func
);
162 dump_uint64( ",user=", &call
->async_io
.user
);
163 dump_uint64( ",sb=", &call
->async_io
.sb
);
164 fprintf( stderr
, ",status=%s", get_status_name(call
->async_io
.status
) );
166 case APC_VIRTUAL_ALLOC
:
167 dump_uint64( "APC_VIRTUAL_ALLOC,addr==", &call
->virtual_alloc
.addr
);
168 dump_uint64( ",size=", &call
->virtual_alloc
.size
);
169 fprintf( stderr
, ",zero_bits=%u,op_type=%x,prot=%x",
170 call
->virtual_alloc
.zero_bits
, call
->virtual_alloc
.op_type
,
171 call
->virtual_alloc
.prot
);
173 case APC_VIRTUAL_FREE
:
174 dump_uint64( "APC_VIRTUAL_FREE,addr=", &call
->virtual_free
.addr
);
175 dump_uint64( ",size=", &call
->virtual_free
.size
);
176 fprintf( stderr
, ",op_type=%x", call
->virtual_free
.op_type
);
178 case APC_VIRTUAL_QUERY
:
179 dump_uint64( "APC_VIRTUAL_QUERY,addr=", &call
->virtual_query
.addr
);
181 case APC_VIRTUAL_PROTECT
:
182 dump_uint64( "APC_VIRTUAL_PROTECT,addr=", &call
->virtual_protect
.addr
);
183 dump_uint64( ",size=", &call
->virtual_protect
.size
);
184 fprintf( stderr
, ",prot=%x", call
->virtual_protect
.prot
);
186 case APC_VIRTUAL_FLUSH
:
187 dump_uint64( "APC_VIRTUAL_FLUSH,addr=", &call
->virtual_flush
.addr
);
188 dump_uint64( ",size=", &call
->virtual_flush
.size
);
190 case APC_VIRTUAL_LOCK
:
191 dump_uint64( "APC_VIRTUAL_LOCK,addr=", &call
->virtual_lock
.addr
);
192 dump_uint64( ",size=", &call
->virtual_lock
.size
);
194 case APC_VIRTUAL_UNLOCK
:
195 dump_uint64( "APC_VIRTUAL_UNLOCK,addr=", &call
->virtual_unlock
.addr
);
196 dump_uint64( ",size=", &call
->virtual_unlock
.size
);
199 fprintf( stderr
, "APC_MAP_VIEW,handle=%04x", call
->map_view
.handle
);
200 dump_uint64( ",addr=", &call
->map_view
.addr
);
201 dump_uint64( ",size=", &call
->map_view
.size
);
202 dump_uint64( ",offset=", &call
->map_view
.offset
);
203 fprintf( stderr
, ",zero_bits=%u,alloc_type=%x,prot=%x",
204 call
->map_view
.zero_bits
, call
->map_view
.alloc_type
, call
->map_view
.prot
);
207 dump_uint64( "APC_UNMAP_VIEW,addr=", &call
->unmap_view
.addr
);
209 case APC_CREATE_THREAD
:
210 dump_uint64( "APC_CREATE_THREAD,func=", &call
->create_thread
.func
);
211 dump_uint64( ",arg=", &call
->create_thread
.arg
);
212 dump_uint64( ",reserve=", &call
->create_thread
.reserve
);
213 dump_uint64( ",commit=", &call
->create_thread
.commit
);
214 fprintf( stderr
, ",suspend=%u", call
->create_thread
.suspend
);
217 fprintf( stderr
, "type=%u", call
->type
);
220 fputc( '}', stderr
);
223 static void dump_apc_result( const char *prefix
, const apc_result_t
*result
)
225 fprintf( stderr
, "%s{", prefix
);
231 fprintf( stderr
, "APC_ASYNC_IO,status=%s,total=%u",
232 get_status_name( result
->async_io
.status
), result
->async_io
.total
);
233 dump_uint64( ",apc=", &result
->async_io
.apc
);
234 dump_uint64( ",arg=", &result
->async_io
.arg
);
236 case APC_VIRTUAL_ALLOC
:
237 fprintf( stderr
, "APC_VIRTUAL_ALLOC,status=%s",
238 get_status_name( result
->virtual_alloc
.status
));
239 dump_uint64( ",addr=", &result
->virtual_alloc
.addr
);
240 dump_uint64( ",size=", &result
->virtual_alloc
.size
);
242 case APC_VIRTUAL_FREE
:
243 fprintf( stderr
, "APC_VIRTUAL_FREE,status=%s",
244 get_status_name( result
->virtual_free
.status
));
245 dump_uint64( ",addr=", &result
->virtual_free
.addr
);
246 dump_uint64( ",size=", &result
->virtual_free
.size
);
248 case APC_VIRTUAL_QUERY
:
249 fprintf( stderr
, "APC_VIRTUAL_QUERY,status=%s",
250 get_status_name( result
->virtual_query
.status
));
251 dump_uint64( ",base=", &result
->virtual_query
.base
);
252 dump_uint64( ",alloc_base=", &result
->virtual_query
.alloc_base
);
253 dump_uint64( ",size=", &result
->virtual_query
.size
);
254 fprintf( stderr
, ",state=%x,prot=%x,alloc_prot=%x,alloc_type=%x",
255 result
->virtual_query
.state
, result
->virtual_query
.prot
,
256 result
->virtual_query
.alloc_prot
, result
->virtual_query
.alloc_type
);
258 case APC_VIRTUAL_PROTECT
:
259 fprintf( stderr
, "APC_VIRTUAL_PROTECT,status=%s",
260 get_status_name( result
->virtual_protect
.status
));
261 dump_uint64( ",addr=", &result
->virtual_protect
.addr
);
262 dump_uint64( ",size=", &result
->virtual_protect
.size
);
263 fprintf( stderr
, ",prot=%x", result
->virtual_protect
.prot
);
265 case APC_VIRTUAL_FLUSH
:
266 fprintf( stderr
, "APC_VIRTUAL_FLUSH,status=%s",
267 get_status_name( result
->virtual_flush
.status
));
268 dump_uint64( ",addr=", &result
->virtual_flush
.addr
);
269 dump_uint64( ",size=", &result
->virtual_flush
.size
);
271 case APC_VIRTUAL_LOCK
:
272 fprintf( stderr
, "APC_VIRTUAL_LOCK,status=%s",
273 get_status_name( result
->virtual_lock
.status
));
274 dump_uint64( ",addr=", &result
->virtual_lock
.addr
);
275 dump_uint64( ",size=", &result
->virtual_lock
.size
);
277 case APC_VIRTUAL_UNLOCK
:
278 fprintf( stderr
, "APC_VIRTUAL_UNLOCK,status=%s",
279 get_status_name( result
->virtual_unlock
.status
));
280 dump_uint64( ",addr=", &result
->virtual_unlock
.addr
);
281 dump_uint64( ",size=", &result
->virtual_unlock
.size
);
284 fprintf( stderr
, "APC_MAP_VIEW,status=%s",
285 get_status_name( result
->map_view
.status
));
286 dump_uint64( ",addr=", &result
->map_view
.addr
);
287 dump_uint64( ",size=", &result
->map_view
.size
);
290 fprintf( stderr
, "APC_UNMAP_VIEW,status=%s",
291 get_status_name( result
->unmap_view
.status
) );
293 case APC_CREATE_THREAD
:
294 fprintf( stderr
, "APC_CREATE_THREAD,status=%s,tid=%04x,handle=%04x",
295 get_status_name( result
->create_thread
.status
),
296 result
->create_thread
.tid
, result
->create_thread
.handle
);
299 fprintf( stderr
, "type=%u", result
->type
);
302 fputc( '}', stderr
);
305 static void dump_async_data( const char *prefix
, const async_data_t
*data
)
307 fprintf( stderr
, "%s{handle=%04x,event=%04x", prefix
, data
->handle
, data
->event
);
308 dump_uint64( ",callback=", &data
->callback
);
309 dump_uint64( ",iosb=", &data
->iosb
);
310 dump_uint64( ",arg=", &data
->arg
);
311 dump_uint64( ",cvalue=", &data
->cvalue
);
312 fputc( '}', stderr
);
315 static void dump_irp_params( const char *prefix
, const irp_params_t
*data
)
320 fprintf( stderr
, "%s{major=CREATE,access=%08x,sharing=%08x,options=%08x",
321 prefix
, data
->create
.access
, data
->create
.sharing
, data
->create
.options
);
322 dump_uint64( ",device=", &data
->create
.device
);
323 fputc( '}', stderr
);
326 fprintf( stderr
, "%s{major=CLOSE", prefix
);
327 dump_uint64( ",file=", &data
->close
.file
);
328 fputc( '}', stderr
);
331 fprintf( stderr
, "%s{major=READ,key=%08x", prefix
, data
->read
.key
);
332 dump_uint64( ",pos=", &data
->read
.pos
);
333 dump_uint64( ",file=", &data
->read
.file
);
334 fputc( '}', stderr
);
337 fprintf( stderr
, "%s{major=WRITE,key=%08x", prefix
, data
->write
.key
);
338 dump_uint64( ",pos=", &data
->write
.pos
);
339 dump_uint64( ",file=", &data
->write
.file
);
340 fputc( '}', stderr
);
342 case IRP_MJ_FLUSH_BUFFERS
:
343 fprintf( stderr
, "%s{major=FLUSH_BUFFERS", prefix
);
344 dump_uint64( ",file=", &data
->flush
.file
);
345 fputc( '}', stderr
);
347 case IRP_MJ_DEVICE_CONTROL
:
348 fprintf( stderr
, "%s{major=DEVICE_CONTROL", prefix
);
349 dump_ioctl_code( ",code=", &data
->ioctl
.code
);
350 dump_uint64( ",file=", &data
->ioctl
.file
);
351 fputc( '}', stderr
);
353 case IRP_MJ_MAXIMUM_FUNCTION
+ 1: /* invalid */
354 fprintf( stderr
, "%s{}", prefix
);
357 fprintf( stderr
, "%s{major=%u}", prefix
, data
->major
);
362 static void dump_hw_input( const char *prefix
, const hw_input_t
*input
)
367 fprintf( stderr
, "%s{type=MOUSE,x=%d,y=%d,data=%08x,flags=%08x,time=%u",
368 prefix
, input
->mouse
.x
, input
->mouse
.y
, input
->mouse
.data
, input
->mouse
.flags
,
370 dump_uint64( ",info=", &input
->mouse
.info
);
371 fputc( '}', stderr
);
374 fprintf( stderr
, "%s{type=KEYBOARD,vkey=%04hx,scan=%04hx,flags=%08x,time=%u",
375 prefix
, input
->kbd
.vkey
, input
->kbd
.scan
, input
->kbd
.flags
, input
->kbd
.time
);
376 dump_uint64( ",info=", &input
->kbd
.info
);
377 fputc( '}', stderr
);
380 fprintf( stderr
, "%s{type=HARDWARE,msg=%04x", prefix
, input
->hw
.msg
);
381 dump_uint64( ",lparam=", &input
->hw
.lparam
);
382 fputc( '}', stderr
);
385 fprintf( stderr
, "%s{type=%04x}", prefix
, input
->type
);
390 static void dump_luid( const char *prefix
, const luid_t
*luid
)
392 fprintf( stderr
, "%s%d.%u", prefix
, luid
->high_part
, luid
->low_part
);
395 static void dump_varargs_ints( const char *prefix
, data_size_t size
)
397 const int *data
= cur_data
;
398 data_size_t len
= size
/ sizeof(*data
);
400 fprintf( stderr
,"%s{", prefix
);
403 fprintf( stderr
, "%d", *data
++ );
404 if (--len
) fputc( ',', stderr
);
406 fputc( '}', stderr
);
410 static void dump_varargs_uints( const char *prefix
, data_size_t size
)
412 const unsigned int *data
= cur_data
;
414 dump_uints( prefix
, data
, size
/ sizeof(*data
) );
418 static void dump_varargs_uints64( const char *prefix
, data_size_t size
)
420 const unsigned __int64
*data
= cur_data
;
421 data_size_t len
= size
/ sizeof(*data
);
423 fprintf( stderr
,"%s{", prefix
);
426 dump_uint64( "", data
++ );
427 if (--len
) fputc( ',', stderr
);
429 fputc( '}', stderr
);
433 static void dump_varargs_apc_result( const char *prefix
, data_size_t size
)
435 const apc_result_t
*result
= cur_data
;
437 if (size
>= sizeof(*result
))
439 dump_apc_result( prefix
, result
);
440 size
= sizeof(*result
);
445 static void dump_varargs_select_op( const char *prefix
, data_size_t size
)
451 fprintf( stderr
, "%s{}", prefix
);
454 memset( &data
, 0, sizeof(data
) );
455 memcpy( &data
, cur_data
, min( size
, sizeof(data
) ));
457 fprintf( stderr
, "%s{", prefix
);
461 fprintf( stderr
, "NONE" );
464 case SELECT_WAIT_ALL
:
465 fprintf( stderr
, "%s", data
.op
== SELECT_WAIT
? "WAIT" : "WAIT_ALL" );
466 if (size
> offsetof( select_op_t
, wait
.handles
))
467 dump_handles( ",handles=", data
.wait
.handles
,
468 min( size
, sizeof(data
.wait
) ) - offsetof( select_op_t
, wait
.handles
));
470 case SELECT_SIGNAL_AND_WAIT
:
471 fprintf( stderr
, "SIGNAL_AND_WAIT,signal=%04x,wait=%04x",
472 data
.signal_and_wait
.signal
, data
.signal_and_wait
.wait
);
474 case SELECT_KEYED_EVENT_WAIT
:
475 case SELECT_KEYED_EVENT_RELEASE
:
476 fprintf( stderr
, "KEYED_EVENT_%s,handle=%04x",
477 data
.op
== SELECT_KEYED_EVENT_WAIT
? "WAIT" : "RELEASE",
478 data
.keyed_event
.handle
);
479 dump_uint64( ",key=", &data
.keyed_event
.key
);
482 fprintf( stderr
, "op=%u", data
.op
);
485 fputc( '}', stderr
);
489 static void dump_varargs_user_handles( const char *prefix
, data_size_t size
)
491 const user_handle_t
*data
= cur_data
;
492 data_size_t len
= size
/ sizeof(*data
);
494 fprintf( stderr
,"%s{", prefix
);
497 fprintf( stderr
, "%08x", *data
++ );
498 if (--len
) fputc( ',', stderr
);
500 fputc( '}', stderr
);
504 static void dump_varargs_bytes( const char *prefix
, data_size_t size
)
506 const unsigned char *data
= cur_data
;
507 data_size_t len
= min( 1024, size
);
509 fprintf( stderr
,"%s{", prefix
);
512 fprintf( stderr
, "%02x", *data
++ );
513 if (--len
) fputc( ',', stderr
);
515 if (size
> 1024) fprintf( stderr
, "...(total %u)", size
);
516 fputc( '}', stderr
);
520 static void dump_varargs_string( const char *prefix
, data_size_t size
)
522 fprintf( stderr
, "%s\"%.*s\"", prefix
, (int)size
, (const char *)cur_data
);
526 static void dump_varargs_unicode_str( const char *prefix
, data_size_t size
)
528 fprintf( stderr
, "%sL\"", prefix
);
529 dump_strW( cur_data
, size
/ sizeof(WCHAR
), stderr
, "\"\"" );
530 fputc( '\"', stderr
);
534 static void dump_varargs_context( const char *prefix
, data_size_t size
)
536 const context_t
*context
= cur_data
;
542 fprintf( stderr
, "%s{}", prefix
);
545 size
= min( size
, sizeof(ctx
) );
546 memset( &ctx
, 0, sizeof(ctx
) );
547 memcpy( &ctx
, context
, size
);
549 fprintf( stderr
,"%s{", prefix
);
550 dump_cpu_type( "cpu=", &ctx
.cpu
);
554 if (ctx
.flags
& SERVER_CTX_CONTROL
)
555 fprintf( stderr
, ",eip=%08x,esp=%08x,ebp=%08x,eflags=%08x,cs=%04x,ss=%04x",
556 ctx
.ctl
.i386_regs
.eip
, ctx
.ctl
.i386_regs
.esp
, ctx
.ctl
.i386_regs
.ebp
,
557 ctx
.ctl
.i386_regs
.eflags
, ctx
.ctl
.i386_regs
.cs
, ctx
.ctl
.i386_regs
.ss
);
558 if (ctx
.flags
& SERVER_CTX_SEGMENTS
)
559 fprintf( stderr
, ",ds=%04x,es=%04x,fs=%04x,gs=%04x",
560 ctx
.seg
.i386_regs
.ds
, ctx
.seg
.i386_regs
.es
,
561 ctx
.seg
.i386_regs
.fs
, ctx
.seg
.i386_regs
.gs
);
562 if (ctx
.flags
& SERVER_CTX_INTEGER
)
563 fprintf( stderr
, ",eax=%08x,ebx=%08x,ecx=%08x,edx=%08x,esi=%08x,edi=%08x",
564 ctx
.integer
.i386_regs
.eax
, ctx
.integer
.i386_regs
.ebx
, ctx
.integer
.i386_regs
.ecx
,
565 ctx
.integer
.i386_regs
.edx
, ctx
.integer
.i386_regs
.esi
, ctx
.integer
.i386_regs
.edi
);
566 if (ctx
.flags
& SERVER_CTX_DEBUG_REGISTERS
)
567 fprintf( stderr
, ",dr0=%08x,dr1=%08x,dr2=%08x,dr3=%08x,dr6=%08x,dr7=%08x",
568 ctx
.debug
.i386_regs
.dr0
, ctx
.debug
.i386_regs
.dr1
, ctx
.debug
.i386_regs
.dr2
,
569 ctx
.debug
.i386_regs
.dr3
, ctx
.debug
.i386_regs
.dr6
, ctx
.debug
.i386_regs
.dr7
);
570 if (ctx
.flags
& SERVER_CTX_FLOATING_POINT
)
572 fprintf( stderr
, ",fp.ctrl=%08x,fp.status=%08x,fp.tag=%08x,fp.err_off=%08x,fp.err_sel=%08x",
573 ctx
.fp
.i386_regs
.ctrl
, ctx
.fp
.i386_regs
.status
, ctx
.fp
.i386_regs
.tag
,
574 ctx
.fp
.i386_regs
.err_off
, ctx
.fp
.i386_regs
.err_sel
);
575 fprintf( stderr
, ",fp.data_off=%08x,fp.data_sel=%08x,fp.cr0npx=%08x",
576 ctx
.fp
.i386_regs
.data_off
, ctx
.fp
.i386_regs
.data_sel
, ctx
.fp
.i386_regs
.cr0npx
);
577 for (i
= 0; i
< 8; i
++)
580 memcpy( ®
, &ctx
.fp
.i386_regs
.regs
[10 * i
], 10 );
581 fprintf( stderr
, ",fp.reg%u=%Lg", i
, reg
);
584 if (ctx
.flags
& SERVER_CTX_EXTENDED_REGISTERS
)
585 dump_uints( ",extended=", (const unsigned int *)ctx
.ext
.i386_regs
,
586 sizeof(ctx
.ext
.i386_regs
) / sizeof(int) );
589 if (ctx
.flags
& SERVER_CTX_CONTROL
)
591 dump_uint64( ",rip=", &ctx
.ctl
.x86_64_regs
.rip
);
592 dump_uint64( ",rbp=", &ctx
.ctl
.x86_64_regs
.rbp
);
593 dump_uint64( ",rsp=", &ctx
.ctl
.x86_64_regs
.rsp
);
594 fprintf( stderr
, ",cs=%04x,ss=%04x,flags=%08x",
595 ctx
.ctl
.x86_64_regs
.cs
, ctx
.ctl
.x86_64_regs
.ss
, ctx
.ctl
.x86_64_regs
.flags
);
597 if (ctx
.flags
& SERVER_CTX_INTEGER
)
599 dump_uint64( ",rax=", &ctx
.integer
.x86_64_regs
.rax
);
600 dump_uint64( ",rbx=", &ctx
.integer
.x86_64_regs
.rbx
);
601 dump_uint64( ",rcx=", &ctx
.integer
.x86_64_regs
.rcx
);
602 dump_uint64( ",rdx=", &ctx
.integer
.x86_64_regs
.rdx
);
603 dump_uint64( ",rsi=", &ctx
.integer
.x86_64_regs
.rsi
);
604 dump_uint64( ",rdi=", &ctx
.integer
.x86_64_regs
.rdi
);
605 dump_uint64( ",r8=", &ctx
.integer
.x86_64_regs
.r8
);
606 dump_uint64( ",r9=", &ctx
.integer
.x86_64_regs
.r9
);
607 dump_uint64( ",r10=", &ctx
.integer
.x86_64_regs
.r10
);
608 dump_uint64( ",r11=", &ctx
.integer
.x86_64_regs
.r11
);
609 dump_uint64( ",r12=", &ctx
.integer
.x86_64_regs
.r12
);
610 dump_uint64( ",r13=", &ctx
.integer
.x86_64_regs
.r13
);
611 dump_uint64( ",r14=", &ctx
.integer
.x86_64_regs
.r14
);
612 dump_uint64( ",r15=", &ctx
.integer
.x86_64_regs
.r15
);
614 if (ctx
.flags
& SERVER_CTX_SEGMENTS
)
615 fprintf( stderr
, ",ds=%04x,es=%04x,fs=%04x,gs=%04x",
616 ctx
.seg
.x86_64_regs
.ds
, ctx
.seg
.x86_64_regs
.es
,
617 ctx
.seg
.x86_64_regs
.fs
, ctx
.seg
.x86_64_regs
.gs
);
618 if (ctx
.flags
& SERVER_CTX_DEBUG_REGISTERS
)
620 dump_uint64( ",dr0=", &ctx
.debug
.x86_64_regs
.dr0
);
621 dump_uint64( ",dr1=", &ctx
.debug
.x86_64_regs
.dr1
);
622 dump_uint64( ",dr2=", &ctx
.debug
.x86_64_regs
.dr2
);
623 dump_uint64( ",dr3=", &ctx
.debug
.x86_64_regs
.dr3
);
624 dump_uint64( ",dr6=", &ctx
.debug
.x86_64_regs
.dr6
);
625 dump_uint64( ",dr7=", &ctx
.debug
.x86_64_regs
.dr7
);
627 if (ctx
.flags
& SERVER_CTX_FLOATING_POINT
)
629 for (i
= 0; i
< 32; i
++)
630 fprintf( stderr
, ",fp%u=%08x%08x%08x%08x", i
,
631 (unsigned int)(ctx
.fp
.x86_64_regs
.fpregs
[i
].high
>> 32),
632 (unsigned int)ctx
.fp
.x86_64_regs
.fpregs
[i
].high
,
633 (unsigned int)(ctx
.fp
.x86_64_regs
.fpregs
[i
].low
>> 32),
634 (unsigned int)ctx
.fp
.x86_64_regs
.fpregs
[i
].low
);
638 if (ctx
.flags
& SERVER_CTX_CONTROL
)
639 fprintf( stderr
, ",iar=%08x,msr=%08x,ctr=%08x,lr=%08x,dar=%08x,dsisr=%08x,trap=%08x",
640 ctx
.ctl
.powerpc_regs
.iar
, ctx
.ctl
.powerpc_regs
.msr
, ctx
.ctl
.powerpc_regs
.ctr
,
641 ctx
.ctl
.powerpc_regs
.lr
, ctx
.ctl
.powerpc_regs
.dar
, ctx
.ctl
.powerpc_regs
.dsisr
,
642 ctx
.ctl
.powerpc_regs
.trap
);
643 if (ctx
.flags
& SERVER_CTX_INTEGER
)
645 for (i
= 0; i
< 32; i
++) fprintf( stderr
, ",gpr%u=%08x", i
, ctx
.integer
.powerpc_regs
.gpr
[i
] );
646 fprintf( stderr
, ",cr=%08x,xer=%08x",
647 ctx
.integer
.powerpc_regs
.cr
, ctx
.integer
.powerpc_regs
.xer
);
649 if (ctx
.flags
& SERVER_CTX_DEBUG_REGISTERS
)
650 for (i
= 0; i
< 8; i
++) fprintf( stderr
, ",dr%u=%08x", i
, ctx
.debug
.powerpc_regs
.dr
[i
] );
651 if (ctx
.flags
& SERVER_CTX_FLOATING_POINT
)
653 for (i
= 0; i
< 32; i
++) fprintf( stderr
, ",fpr%u=%g", i
, ctx
.fp
.powerpc_regs
.fpr
[i
] );
654 fprintf( stderr
, ",fpscr=%g", ctx
.fp
.powerpc_regs
.fpscr
);
658 if (ctx
.flags
& SERVER_CTX_CONTROL
)
659 fprintf( stderr
, ",sp=%08x,lr=%08x,pc=%08x,cpsr=%08x",
660 ctx
.ctl
.arm_regs
.sp
, ctx
.ctl
.arm_regs
.lr
,
661 ctx
.ctl
.arm_regs
.pc
, ctx
.ctl
.arm_regs
.cpsr
);
662 if (ctx
.flags
& SERVER_CTX_INTEGER
)
663 for (i
= 0; i
< 13; i
++) fprintf( stderr
, ",r%u=%08x", i
, ctx
.integer
.arm_regs
.r
[i
] );
666 if (ctx
.flags
& SERVER_CTX_CONTROL
)
668 dump_uint64( ",sp=", &ctx
.ctl
.arm64_regs
.sp
);
669 dump_uint64( ",pc=", &ctx
.ctl
.arm64_regs
.pc
);
670 dump_uint64( ",pstate=", &ctx
.ctl
.arm64_regs
.pstate
);
672 if (ctx
.flags
& SERVER_CTX_INTEGER
)
674 dump_uint64( ",x0=", &ctx
.integer
.arm64_regs
.x
[0] );
675 dump_uint64( ",x1=", &ctx
.integer
.arm64_regs
.x
[1] );
676 dump_uint64( ",x2=", &ctx
.integer
.arm64_regs
.x
[2] );
677 dump_uint64( ",x3=", &ctx
.integer
.arm64_regs
.x
[3] );
678 dump_uint64( ",x4=", &ctx
.integer
.arm64_regs
.x
[4] );
679 dump_uint64( ",x5=", &ctx
.integer
.arm64_regs
.x
[5] );
680 dump_uint64( ",x6=", &ctx
.integer
.arm64_regs
.x
[6] );
681 dump_uint64( ",x7=", &ctx
.integer
.arm64_regs
.x
[7] );
682 dump_uint64( ",x8=", &ctx
.integer
.arm64_regs
.x
[8] );
683 dump_uint64( ",x9=", &ctx
.integer
.arm64_regs
.x
[9] );
684 dump_uint64( ",x10=", &ctx
.integer
.arm64_regs
.x
[10] );
685 dump_uint64( ",x11=", &ctx
.integer
.arm64_regs
.x
[11] );
686 dump_uint64( ",x12=", &ctx
.integer
.arm64_regs
.x
[12] );
687 dump_uint64( ",x13=", &ctx
.integer
.arm64_regs
.x
[13] );
688 dump_uint64( ",x14=", &ctx
.integer
.arm64_regs
.x
[14] );
689 dump_uint64( ",x15=", &ctx
.integer
.arm64_regs
.x
[15] );
690 dump_uint64( ",x16=", &ctx
.integer
.arm64_regs
.x
[16] );
691 dump_uint64( ",x17=", &ctx
.integer
.arm64_regs
.x
[17] );
692 dump_uint64( ",x18=", &ctx
.integer
.arm64_regs
.x
[18] );
693 dump_uint64( ",x19=", &ctx
.integer
.arm64_regs
.x
[19] );
694 dump_uint64( ",x20=", &ctx
.integer
.arm64_regs
.x
[20] );
695 dump_uint64( ",x21=", &ctx
.integer
.arm64_regs
.x
[21] );
696 dump_uint64( ",x22=", &ctx
.integer
.arm64_regs
.x
[22] );
697 dump_uint64( ",x23=", &ctx
.integer
.arm64_regs
.x
[23] );
698 dump_uint64( ",x24=", &ctx
.integer
.arm64_regs
.x
[24] );
699 dump_uint64( ",x25=", &ctx
.integer
.arm64_regs
.x
[25] );
700 dump_uint64( ",x26=", &ctx
.integer
.arm64_regs
.x
[26] );
701 dump_uint64( ",x27=", &ctx
.integer
.arm64_regs
.x
[27] );
702 dump_uint64( ",x28=", &ctx
.integer
.arm64_regs
.x
[28] );
703 dump_uint64( ",x29=", &ctx
.integer
.arm64_regs
.x
[29] );
704 dump_uint64( ",x30=", &ctx
.integer
.arm64_regs
.x
[30] );
708 fputc( '}', stderr
);
712 static void dump_varargs_debug_event( const char *prefix
, data_size_t size
)
719 fprintf( stderr
, "%s{}", prefix
);
722 size
= min( size
, sizeof(event
) );
723 memset( &event
, 0, sizeof(event
) );
724 memcpy( &event
, cur_data
, size
);
728 case EXCEPTION_DEBUG_EVENT
:
729 fprintf( stderr
, "%s{exception,first=%d,exc_code=%08x,flags=%08x", prefix
,
730 event
.exception
.first
, event
.exception
.exc_code
, event
.exception
.flags
);
731 dump_uint64( ",record=", &event
.exception
.record
);
732 dump_uint64( ",address=", &event
.exception
.address
);
733 fprintf( stderr
, ",params={" );
734 event
.exception
.nb_params
= min( event
.exception
.nb_params
, EXCEPTION_MAXIMUM_PARAMETERS
);
735 for (i
= 0; i
< event
.exception
.nb_params
; i
++)
737 dump_uint64( "", &event
.exception
.params
[i
] );
738 if (i
< event
.exception
.nb_params
) fputc( ',', stderr
);
740 fprintf( stderr
, "}}" );
742 case CREATE_THREAD_DEBUG_EVENT
:
743 fprintf( stderr
, "%s{create_thread,thread=%04x", prefix
, event
.create_thread
.handle
);
744 dump_uint64( ",teb=", &event
.create_thread
.teb
);
745 dump_uint64( ",start=", &event
.create_thread
.start
);
746 fputc( '}', stderr
);
748 case CREATE_PROCESS_DEBUG_EVENT
:
749 fprintf( stderr
, "%s{create_process,file=%04x,process=%04x,thread=%04x", prefix
,
750 event
.create_process
.file
, event
.create_process
.process
,
751 event
.create_process
.thread
);
752 dump_uint64( ",base=", &event
.create_process
.base
);
753 fprintf( stderr
, ",offset=%d,size=%d",
754 event
.create_process
.dbg_offset
, event
.create_process
.dbg_size
);
755 dump_uint64( ",teb=", &event
.create_process
.teb
);
756 dump_uint64( ",start=", &event
.create_process
.start
);
757 dump_uint64( ",name=", &event
.create_process
.name
);
758 fprintf( stderr
, ",unicode=%d}", event
.create_process
.unicode
);
760 case EXIT_THREAD_DEBUG_EVENT
:
761 fprintf( stderr
, "%s{exit_thread,code=%d}", prefix
, event
.exit
.exit_code
);
763 case EXIT_PROCESS_DEBUG_EVENT
:
764 fprintf( stderr
, "%s{exit_process,code=%d}", prefix
, event
.exit
.exit_code
);
766 case LOAD_DLL_DEBUG_EVENT
:
767 fprintf( stderr
, "%s{load_dll,file=%04x", prefix
, event
.load_dll
.handle
);
768 dump_uint64( ",base=", &event
.load_dll
.base
);
769 fprintf( stderr
, ",offset=%d,size=%d",
770 event
.load_dll
.dbg_offset
, event
.load_dll
.dbg_size
);
771 dump_uint64( ",name=", &event
.load_dll
.name
);
772 fprintf( stderr
, ",unicode=%d}", event
.load_dll
.unicode
);
774 case UNLOAD_DLL_DEBUG_EVENT
:
775 fprintf( stderr
, "%s{unload_dll", prefix
);
776 dump_uint64( ",base=", &event
.unload_dll
.base
);
777 fputc( '}', stderr
);
779 case 0: /* zero is the code returned on timeouts */
780 fprintf( stderr
, "%s{}", prefix
);
783 fprintf( stderr
, "%s{code=??? (%d)}", prefix
, event
.code
);
789 /* dump a unicode string contained in a buffer; helper for dump_varargs_startup_info */
790 static data_size_t
dump_inline_unicode_string( const char *prefix
, data_size_t pos
, data_size_t len
, data_size_t total_size
)
792 fputs( prefix
, stderr
);
793 if (pos
>= total_size
) return pos
;
794 if (len
> total_size
- pos
) len
= total_size
- pos
;
795 len
/= sizeof(WCHAR
);
796 dump_strW( (const WCHAR
*)cur_data
+ pos
/sizeof(WCHAR
), len
, stderr
, "\"\"" );
797 return pos
+ len
* sizeof(WCHAR
);
800 static void dump_varargs_startup_info( const char *prefix
, data_size_t size
)
803 data_size_t pos
= sizeof(info
);
805 memset( &info
, 0, sizeof(info
) );
806 memcpy( &info
, cur_data
, min( size
, sizeof(info
) ));
809 "%s{debug_flags=%x,console_flags=%x,console=%04x,hstdin=%04x,hstdout=%04x,hstderr=%04x,"
810 "x=%u,y=%u,xsize=%u,ysize=%u,xchars=%u,ychars=%u,attribute=%02x,flags=%x,show=%u",
811 prefix
, info
.debug_flags
, info
.console_flags
, info
.console
,
812 info
.hstdin
, info
.hstdout
, info
.hstderr
, info
.x
, info
.y
, info
.xsize
, info
.ysize
,
813 info
.xchars
, info
.ychars
, info
.attribute
, info
.flags
, info
.show
);
814 pos
= dump_inline_unicode_string( ",curdir=L\"", pos
, info
.curdir_len
, size
);
815 pos
= dump_inline_unicode_string( "\",dllpath=L\"", pos
, info
.dllpath_len
, size
);
816 pos
= dump_inline_unicode_string( "\",imagepath=L\"", pos
, info
.imagepath_len
, size
);
817 pos
= dump_inline_unicode_string( "\",cmdline=L\"", pos
, info
.cmdline_len
, size
);
818 pos
= dump_inline_unicode_string( "\",title=L\"", pos
, info
.title_len
, size
);
819 pos
= dump_inline_unicode_string( "\",desktop=L\"", pos
, info
.desktop_len
, size
);
820 pos
= dump_inline_unicode_string( "\",shellinfo=L\"", pos
, info
.shellinfo_len
, size
);
821 pos
= dump_inline_unicode_string( "\",runtime=L\"", pos
, info
.runtime_len
, size
);
822 fprintf( stderr
, "\"}" );
826 static void dump_varargs_input_records( const char *prefix
, data_size_t size
)
828 const INPUT_RECORD
*rec
= cur_data
;
829 data_size_t len
= size
/ sizeof(*rec
);
831 fprintf( stderr
,"%s{", prefix
);
834 fprintf( stderr
, "{%04x,...}", rec
->EventType
);
836 if (--len
) fputc( ',', stderr
);
838 fputc( '}', stderr
);
842 static void dump_varargs_rectangles( const char *prefix
, data_size_t size
)
844 const rectangle_t
*rect
= cur_data
;
845 data_size_t len
= size
/ sizeof(*rect
);
847 fprintf( stderr
,"%s{", prefix
);
850 dump_rectangle( "", rect
++ );
851 if (--len
) fputc( ',', stderr
);
853 fputc( '}', stderr
);
857 static void dump_varargs_message_data( const char *prefix
, data_size_t size
)
859 /* FIXME: dump the structured data */
860 dump_varargs_bytes( prefix
, size
);
863 static void dump_varargs_properties( const char *prefix
, data_size_t size
)
865 const property_data_t
*prop
= cur_data
;
866 data_size_t len
= size
/ sizeof(*prop
);
868 fprintf( stderr
,"%s{", prefix
);
871 fprintf( stderr
, "{atom=%04x,str=%d", prop
->atom
, prop
->string
);
872 dump_uint64( ",data=", &prop
->data
);
873 fputc( '}', stderr
);
875 if (--len
) fputc( ',', stderr
);
877 fputc( '}', stderr
);
881 static void dump_varargs_LUID_AND_ATTRIBUTES( const char *prefix
, data_size_t size
)
883 const LUID_AND_ATTRIBUTES
*lat
= cur_data
;
884 data_size_t len
= size
/ sizeof(*lat
);
886 fprintf( stderr
,"%s{", prefix
);
889 fprintf( stderr
, "{luid=%08x%08x,attr=%x}",
890 lat
->Luid
.HighPart
, lat
->Luid
.LowPart
, lat
->Attributes
);
892 if (--len
) fputc( ',', stderr
);
894 fputc( '}', stderr
);
898 static void dump_inline_sid( const char *prefix
, const SID
*sid
, data_size_t size
)
903 if ((FIELD_OFFSET(SID
, SubAuthority
[0]) > size
) ||
904 (FIELD_OFFSET(SID
, SubAuthority
[sid
->SubAuthorityCount
]) > size
))
906 fprintf( stderr
, "<invalid sid>" );
910 fprintf( stderr
,"%s{", prefix
);
911 fprintf( stderr
, "S-%u-%u", sid
->Revision
, MAKELONG(
912 MAKEWORD( sid
->IdentifierAuthority
.Value
[5],
913 sid
->IdentifierAuthority
.Value
[4] ),
914 MAKEWORD( sid
->IdentifierAuthority
.Value
[3],
915 sid
->IdentifierAuthority
.Value
[2] ) ) );
916 for (i
= 0; i
< sid
->SubAuthorityCount
; i
++)
917 fprintf( stderr
, "-%u", sid
->SubAuthority
[i
] );
918 fputc( '}', stderr
);
921 static void dump_varargs_SID( const char *prefix
, data_size_t size
)
923 const SID
*sid
= cur_data
;
924 dump_inline_sid( prefix
, sid
, size
);
928 static void dump_inline_acl( const char *prefix
, const ACL
*acl
, data_size_t size
)
930 const ACE_HEADER
*ace
;
933 fprintf( stderr
,"%s{", prefix
);
936 if (size
< sizeof(ACL
))
938 fprintf( stderr
, "<invalid acl>}" );
942 ace
= (const ACE_HEADER
*)(acl
+ 1);
943 for (i
= 0; i
< acl
->AceCount
; i
++)
945 const SID
*sid
= NULL
;
946 data_size_t sid_size
= 0;
948 if (size
< sizeof(ACE_HEADER
) || size
< ace
->AceSize
) break;
949 size
-= ace
->AceSize
;
950 if (i
!= 0) fputc( ',', stderr
);
951 fprintf( stderr
, "{AceType=" );
952 switch (ace
->AceType
)
954 case ACCESS_DENIED_ACE_TYPE
:
955 sid
= (const SID
*)&((const ACCESS_DENIED_ACE
*)ace
)->SidStart
;
956 sid_size
= ace
->AceSize
- FIELD_OFFSET(ACCESS_DENIED_ACE
, SidStart
);
957 fprintf( stderr
, "ACCESS_DENIED_ACE_TYPE,Mask=%x",
958 ((const ACCESS_DENIED_ACE
*)ace
)->Mask
);
960 case ACCESS_ALLOWED_ACE_TYPE
:
961 sid
= (const SID
*)&((const ACCESS_ALLOWED_ACE
*)ace
)->SidStart
;
962 sid_size
= ace
->AceSize
- FIELD_OFFSET(ACCESS_ALLOWED_ACE
, SidStart
);
963 fprintf( stderr
, "ACCESS_ALLOWED_ACE_TYPE,Mask=%x",
964 ((const ACCESS_ALLOWED_ACE
*)ace
)->Mask
);
966 case SYSTEM_AUDIT_ACE_TYPE
:
967 sid
= (const SID
*)&((const SYSTEM_AUDIT_ACE
*)ace
)->SidStart
;
968 sid_size
= ace
->AceSize
- FIELD_OFFSET(SYSTEM_AUDIT_ACE
, SidStart
);
969 fprintf( stderr
, "SYSTEM_AUDIT_ACE_TYPE,Mask=%x",
970 ((const SYSTEM_AUDIT_ACE
*)ace
)->Mask
);
972 case SYSTEM_ALARM_ACE_TYPE
:
973 sid
= (const SID
*)&((const SYSTEM_ALARM_ACE
*)ace
)->SidStart
;
974 sid_size
= ace
->AceSize
- FIELD_OFFSET(SYSTEM_ALARM_ACE
, SidStart
);
975 fprintf( stderr
, "SYSTEM_ALARM_ACE_TYPE,Mask=%x",
976 ((const SYSTEM_ALARM_ACE
*)ace
)->Mask
);
978 case SYSTEM_MANDATORY_LABEL_ACE_TYPE
:
979 sid
= (const SID
*)&((const SYSTEM_MANDATORY_LABEL_ACE
*)ace
)->SidStart
;
980 sid_size
= ace
->AceSize
- FIELD_OFFSET(SYSTEM_MANDATORY_LABEL_ACE
, SidStart
);
981 fprintf( stderr
, "SYSTEM_MANDATORY_LABEL_ACE_TYPE,Mask=%x",
982 ((const SYSTEM_MANDATORY_LABEL_ACE
*)ace
)->Mask
);
985 fprintf( stderr
, "unknown<%d>", ace
->AceType
);
988 fprintf( stderr
, ",AceFlags=%x", ace
->AceFlags
);
990 dump_inline_sid( ",Sid=", sid
, sid_size
);
991 ace
= (const ACE_HEADER
*)((const char *)ace
+ ace
->AceSize
);
992 fputc( '}', stderr
);
995 fputc( '}', stderr
);
998 static void dump_varargs_ACL( const char *prefix
, data_size_t size
)
1000 const ACL
*acl
= cur_data
;
1001 dump_inline_acl( prefix
, acl
, size
);
1002 remove_data( size
);
1005 static void dump_inline_security_descriptor( const char *prefix
, const struct security_descriptor
*sd
, data_size_t size
)
1007 fprintf( stderr
,"%s{", prefix
);
1008 if (size
>= sizeof(struct security_descriptor
))
1010 size_t offset
= sizeof(struct security_descriptor
);
1011 fprintf( stderr
, "control=%08x", sd
->control
);
1012 if ((sd
->owner_len
> FIELD_OFFSET(SID
, SubAuthority
[255])) || (offset
+ sd
->owner_len
> size
))
1015 dump_inline_sid( ",owner=", (const SID
*)((const char *)sd
+ offset
), sd
->owner_len
);
1017 fprintf( stderr
, ",owner=<not present>" );
1018 offset
+= sd
->owner_len
;
1019 if ((sd
->group_len
> FIELD_OFFSET(SID
, SubAuthority
[255])) || (offset
+ sd
->group_len
> size
))
1022 dump_inline_sid( ",group=", (const SID
*)((const char *)sd
+ offset
), sd
->group_len
);
1024 fprintf( stderr
, ",group=<not present>" );
1025 offset
+= sd
->group_len
;
1026 if ((sd
->sacl_len
>= MAX_ACL_LEN
) || (offset
+ sd
->sacl_len
> size
))
1028 dump_inline_acl( ",sacl=", (const ACL
*)((const char *)sd
+ offset
), sd
->sacl_len
);
1029 offset
+= sd
->sacl_len
;
1030 if ((sd
->dacl_len
>= MAX_ACL_LEN
) || (offset
+ sd
->dacl_len
> size
))
1032 dump_inline_acl( ",dacl=", (const ACL
*)((const char *)sd
+ offset
), sd
->dacl_len
);
1033 offset
+= sd
->dacl_len
;
1035 fputc( '}', stderr
);
1038 static void dump_varargs_security_descriptor( const char *prefix
, data_size_t size
)
1040 const struct security_descriptor
*sd
= cur_data
;
1041 dump_inline_security_descriptor( prefix
, sd
, size
);
1042 remove_data( size
);
1045 static void dump_varargs_token_groups( const char *prefix
, data_size_t size
)
1047 const struct token_groups
*tg
= cur_data
;
1049 fprintf( stderr
,"%s{", prefix
);
1050 if (size
>= sizeof(struct token_groups
))
1052 size_t offset
= sizeof(*tg
);
1053 fprintf( stderr
, "count=%08x,", tg
->count
);
1054 if (tg
->count
* sizeof(unsigned int) <= size
)
1057 const unsigned int *attr
= (const unsigned int *)(tg
+ 1);
1059 offset
+= tg
->count
* sizeof(unsigned int);
1061 fputc( '[', stderr
);
1062 for (i
= 0; i
< tg
->count
; i
++)
1064 const SID
*sid
= (const SID
*)((const char *)cur_data
+ offset
);
1066 fputc( ',', stderr
);
1067 fputc( '{', stderr
);
1068 fprintf( stderr
, "attributes=%08x", attr
[i
] );
1069 dump_inline_sid( ",sid=", sid
, size
- offset
);
1070 if ((offset
+ FIELD_OFFSET(SID
, SubAuthority
[0]) > size
) ||
1071 (offset
+ FIELD_OFFSET(SID
, SubAuthority
[sid
->SubAuthorityCount
]) > size
))
1073 offset
+= FIELD_OFFSET(SID
, SubAuthority
[sid
->SubAuthorityCount
]);
1074 fputc( '}', stderr
);
1076 fputc( ']', stderr
);
1079 fputc( '}', stderr
);
1082 static void dump_varargs_object_attributes( const char *prefix
, data_size_t size
)
1084 const struct object_attributes
*objattr
= cur_data
;
1086 fprintf( stderr
,"%s{", prefix
);
1091 if (size
< sizeof(*objattr
) ||
1092 (size
- sizeof(*objattr
) < objattr
->sd_len
) ||
1093 (size
- sizeof(*objattr
) - objattr
->sd_len
< objattr
->name_len
))
1095 fprintf( stderr
, "***invalid***}" );
1096 remove_data( size
);
1100 fprintf( stderr
, "rootdir=%04x,attributes=%08x", objattr
->rootdir
, objattr
->attributes
);
1101 dump_inline_security_descriptor( ",sd=", (const struct security_descriptor
*)(objattr
+ 1), objattr
->sd_len
);
1102 str
= (const WCHAR
*)objattr
+ (sizeof(*objattr
) + objattr
->sd_len
) / sizeof(WCHAR
);
1103 fprintf( stderr
, ",name=L\"" );
1104 dump_strW( str
, objattr
->name_len
/ sizeof(WCHAR
), stderr
, "\"\"" );
1105 fputc( '\"', stderr
);
1106 remove_data( ((sizeof(*objattr
) + objattr
->sd_len
) / sizeof(WCHAR
)) * sizeof(WCHAR
) +
1107 (objattr
->name_len
/ sizeof(WCHAR
)) * sizeof(WCHAR
) );
1109 fputc( '}', stderr
);
1112 static void dump_varargs_filesystem_event( const char *prefix
, data_size_t size
)
1114 static const char * const actions
[] = {
1126 fprintf( stderr
,"%s{", prefix
);
1129 const struct filesystem_event
*event
= cur_data
;
1130 data_size_t len
= (offsetof( struct filesystem_event
, name
[event
->len
] ) + sizeof(int)-1)
1131 / sizeof(int) * sizeof(int);
1132 if (size
< len
) break;
1133 if (event
->action
< sizeof(actions
)/sizeof(actions
[0]) && actions
[event
->action
])
1134 fprintf( stderr
, "{action=%s", actions
[event
->action
] );
1136 fprintf( stderr
, "{action=%u", event
->action
);
1137 fprintf( stderr
, ",name=\"%.*s\"}", event
->len
, event
->name
);
1140 if (size
)fputc( ',', stderr
);
1142 fputc( '}', stderr
);
1145 static void dump_varargs_pe_image_info( const char *prefix
, data_size_t size
)
1147 pe_image_info_t info
;
1151 fprintf( stderr
, "%s{}", prefix
);
1154 memset( &info
, 0, sizeof(info
) );
1155 memcpy( &info
, cur_data
, min( size
, sizeof(info
) ));
1157 fprintf( stderr
, "%s{", prefix
);
1158 dump_uint64( "base=", &info
.base
);
1159 dump_uint64( ",entry_point=", &info
.entry_point
);
1160 dump_uint64( ",map_size=", &info
.map_size
);
1161 dump_uint64( ",stack_size=", &info
.stack_size
);
1162 dump_uint64( ",stack_commit=", &info
.stack_commit
);
1163 fprintf( stderr
, ",zerobits=%08x,subsystem=%08x,subsystem_low=%04x,subsystem_high=%04x,gp=%08x"
1164 ",image_charact=%04x,dll_charact=%04x,machine=%04x,contains_code=%u,image_flags=%02x"
1165 ",loader_flags=%08x,header_size=%08x,file_size=%08x,checksum=%08x}",
1166 info
.zerobits
, info
.subsystem
, info
.subsystem_low
, info
.subsystem_high
, info
.gp
,
1167 info
.image_charact
, info
.dll_charact
, info
.machine
, info
.contains_code
, info
.image_flags
,
1168 info
.loader_flags
, info
.header_size
, info
.file_size
, info
.checksum
);
1169 remove_data( size
);
1172 static void dump_varargs_rawinput_devices(const char *prefix
, data_size_t size
)
1174 const struct rawinput_device
*device
;
1176 fprintf( stderr
, "%s{", prefix
);
1177 while (size
>= sizeof(*device
))
1180 fprintf( stderr
, "{usage_page=%04x,usage=%04x,flags=%08x,target=%08x}",
1181 device
->usage_page
, device
->usage
, device
->flags
, device
->target
);
1182 size
-= sizeof(*device
);
1183 remove_data( sizeof(*device
) );
1184 if (size
) fputc( ',', stderr
);
1186 fputc( '}', stderr
);
1189 static void dump_varargs_handle_infos( const char *prefix
, data_size_t size
)
1191 const struct handle_info
*handle
;
1193 fprintf( stderr
, "%s{", prefix
);
1194 while (size
>= sizeof(*handle
))
1197 fprintf( stderr
, "{owner=%04x,handle=%04x,access=%08x}",
1198 handle
->owner
, handle
->handle
, handle
->access
);
1199 size
-= sizeof(*handle
);
1200 remove_data( sizeof(*handle
) );
1201 if (size
) fputc( ',', stderr
);
1203 fputc( '}', stderr
);
1206 typedef void (*dump_func
)( const void *req
);
1208 /* Everything below this line is generated automatically by tools/make_requests */
1209 /* ### make_requests begin ### */
1211 static void dump_new_process_request( const struct new_process_request
*req
)
1213 fprintf( stderr
, " inherit_all=%d", req
->inherit_all
);
1214 fprintf( stderr
, ", create_flags=%08x", req
->create_flags
);
1215 fprintf( stderr
, ", socket_fd=%d", req
->socket_fd
);
1216 fprintf( stderr
, ", exe_file=%04x", req
->exe_file
);
1217 fprintf( stderr
, ", process_access=%08x", req
->process_access
);
1218 fprintf( stderr
, ", process_attr=%08x", req
->process_attr
);
1219 fprintf( stderr
, ", thread_access=%08x", req
->thread_access
);
1220 fprintf( stderr
, ", thread_attr=%08x", req
->thread_attr
);
1221 dump_cpu_type( ", cpu=", &req
->cpu
);
1222 fprintf( stderr
, ", info_size=%u", req
->info_size
);
1223 dump_varargs_startup_info( ", info=", min(cur_size
,req
->info_size
) );
1224 dump_varargs_unicode_str( ", env=", cur_size
);
1227 static void dump_new_process_reply( const struct new_process_reply
*req
)
1229 fprintf( stderr
, " info=%04x", req
->info
);
1230 fprintf( stderr
, ", pid=%04x", req
->pid
);
1231 fprintf( stderr
, ", phandle=%04x", req
->phandle
);
1232 fprintf( stderr
, ", tid=%04x", req
->tid
);
1233 fprintf( stderr
, ", thandle=%04x", req
->thandle
);
1236 static void dump_get_new_process_info_request( const struct get_new_process_info_request
*req
)
1238 fprintf( stderr
, " info=%04x", req
->info
);
1241 static void dump_get_new_process_info_reply( const struct get_new_process_info_reply
*req
)
1243 fprintf( stderr
, " success=%d", req
->success
);
1244 fprintf( stderr
, ", exit_code=%d", req
->exit_code
);
1247 static void dump_new_thread_request( const struct new_thread_request
*req
)
1249 fprintf( stderr
, " access=%08x", req
->access
);
1250 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1251 fprintf( stderr
, ", suspend=%d", req
->suspend
);
1252 fprintf( stderr
, ", request_fd=%d", req
->request_fd
);
1255 static void dump_new_thread_reply( const struct new_thread_reply
*req
)
1257 fprintf( stderr
, " tid=%04x", req
->tid
);
1258 fprintf( stderr
, ", handle=%04x", req
->handle
);
1261 static void dump_get_startup_info_request( const struct get_startup_info_request
*req
)
1265 static void dump_get_startup_info_reply( const struct get_startup_info_reply
*req
)
1267 fprintf( stderr
, " exe_file=%04x", req
->exe_file
);
1268 fprintf( stderr
, ", info_size=%u", req
->info_size
);
1269 dump_varargs_startup_info( ", info=", min(cur_size
,req
->info_size
) );
1270 dump_varargs_unicode_str( ", env=", cur_size
);
1273 static void dump_init_process_done_request( const struct init_process_done_request
*req
)
1275 fprintf( stderr
, " gui=%d", req
->gui
);
1276 dump_uint64( ", module=", &req
->module
);
1277 dump_uint64( ", ldt_copy=", &req
->ldt_copy
);
1278 dump_uint64( ", entry=", &req
->entry
);
1281 static void dump_init_thread_request( const struct init_thread_request
*req
)
1283 fprintf( stderr
, " unix_pid=%d", req
->unix_pid
);
1284 fprintf( stderr
, ", unix_tid=%d", req
->unix_tid
);
1285 fprintf( stderr
, ", debug_level=%d", req
->debug_level
);
1286 dump_uint64( ", teb=", &req
->teb
);
1287 dump_uint64( ", entry=", &req
->entry
);
1288 fprintf( stderr
, ", reply_fd=%d", req
->reply_fd
);
1289 fprintf( stderr
, ", wait_fd=%d", req
->wait_fd
);
1290 dump_cpu_type( ", cpu=", &req
->cpu
);
1293 static void dump_init_thread_reply( const struct init_thread_reply
*req
)
1295 fprintf( stderr
, " pid=%04x", req
->pid
);
1296 fprintf( stderr
, ", tid=%04x", req
->tid
);
1297 dump_timeout( ", server_start=", &req
->server_start
);
1298 fprintf( stderr
, ", info_size=%u", req
->info_size
);
1299 fprintf( stderr
, ", version=%d", req
->version
);
1300 fprintf( stderr
, ", all_cpus=%08x", req
->all_cpus
);
1303 static void dump_terminate_process_request( const struct terminate_process_request
*req
)
1305 fprintf( stderr
, " handle=%04x", req
->handle
);
1306 fprintf( stderr
, ", exit_code=%d", req
->exit_code
);
1309 static void dump_terminate_process_reply( const struct terminate_process_reply
*req
)
1311 fprintf( stderr
, " self=%d", req
->self
);
1314 static void dump_terminate_thread_request( const struct terminate_thread_request
*req
)
1316 fprintf( stderr
, " handle=%04x", req
->handle
);
1317 fprintf( stderr
, ", exit_code=%d", req
->exit_code
);
1320 static void dump_terminate_thread_reply( const struct terminate_thread_reply
*req
)
1322 fprintf( stderr
, " self=%d", req
->self
);
1323 fprintf( stderr
, ", last=%d", req
->last
);
1326 static void dump_get_process_info_request( const struct get_process_info_request
*req
)
1328 fprintf( stderr
, " handle=%04x", req
->handle
);
1331 static void dump_get_process_info_reply( const struct get_process_info_reply
*req
)
1333 fprintf( stderr
, " pid=%04x", req
->pid
);
1334 fprintf( stderr
, ", ppid=%04x", req
->ppid
);
1335 dump_uint64( ", affinity=", &req
->affinity
);
1336 dump_uint64( ", peb=", &req
->peb
);
1337 dump_timeout( ", start_time=", &req
->start_time
);
1338 dump_timeout( ", end_time=", &req
->end_time
);
1339 fprintf( stderr
, ", exit_code=%d", req
->exit_code
);
1340 fprintf( stderr
, ", priority=%d", req
->priority
);
1341 dump_cpu_type( ", cpu=", &req
->cpu
);
1342 fprintf( stderr
, ", debugger_present=%d", req
->debugger_present
);
1343 fprintf( stderr
, ", debug_children=%d", req
->debug_children
);
1346 static void dump_set_process_info_request( const struct set_process_info_request
*req
)
1348 fprintf( stderr
, " handle=%04x", req
->handle
);
1349 fprintf( stderr
, ", mask=%d", req
->mask
);
1350 fprintf( stderr
, ", priority=%d", req
->priority
);
1351 dump_uint64( ", affinity=", &req
->affinity
);
1354 static void dump_get_thread_info_request( const struct get_thread_info_request
*req
)
1356 fprintf( stderr
, " handle=%04x", req
->handle
);
1357 fprintf( stderr
, ", tid_in=%04x", req
->tid_in
);
1360 static void dump_get_thread_info_reply( const struct get_thread_info_reply
*req
)
1362 fprintf( stderr
, " pid=%04x", req
->pid
);
1363 fprintf( stderr
, ", tid=%04x", req
->tid
);
1364 dump_uint64( ", teb=", &req
->teb
);
1365 dump_uint64( ", entry_point=", &req
->entry_point
);
1366 dump_uint64( ", affinity=", &req
->affinity
);
1367 fprintf( stderr
, ", exit_code=%d", req
->exit_code
);
1368 fprintf( stderr
, ", priority=%d", req
->priority
);
1369 fprintf( stderr
, ", last=%d", req
->last
);
1372 static void dump_get_thread_times_request( const struct get_thread_times_request
*req
)
1374 fprintf( stderr
, " handle=%04x", req
->handle
);
1377 static void dump_get_thread_times_reply( const struct get_thread_times_reply
*req
)
1379 dump_timeout( " creation_time=", &req
->creation_time
);
1380 dump_timeout( ", exit_time=", &req
->exit_time
);
1383 static void dump_set_thread_info_request( const struct set_thread_info_request
*req
)
1385 fprintf( stderr
, " handle=%04x", req
->handle
);
1386 fprintf( stderr
, ", mask=%d", req
->mask
);
1387 fprintf( stderr
, ", priority=%d", req
->priority
);
1388 dump_uint64( ", affinity=", &req
->affinity
);
1389 dump_uint64( ", entry_point=", &req
->entry_point
);
1390 fprintf( stderr
, ", token=%04x", req
->token
);
1393 static void dump_get_dll_info_request( const struct get_dll_info_request
*req
)
1395 fprintf( stderr
, " handle=%04x", req
->handle
);
1396 dump_uint64( ", base_address=", &req
->base_address
);
1399 static void dump_get_dll_info_reply( const struct get_dll_info_reply
*req
)
1401 dump_uint64( " entry_point=", &req
->entry_point
);
1402 fprintf( stderr
, ", size=%u", req
->size
);
1403 fprintf( stderr
, ", filename_len=%u", req
->filename_len
);
1404 dump_varargs_unicode_str( ", filename=", cur_size
);
1407 static void dump_suspend_thread_request( const struct suspend_thread_request
*req
)
1409 fprintf( stderr
, " handle=%04x", req
->handle
);
1412 static void dump_suspend_thread_reply( const struct suspend_thread_reply
*req
)
1414 fprintf( stderr
, " count=%d", req
->count
);
1417 static void dump_resume_thread_request( const struct resume_thread_request
*req
)
1419 fprintf( stderr
, " handle=%04x", req
->handle
);
1422 static void dump_resume_thread_reply( const struct resume_thread_reply
*req
)
1424 fprintf( stderr
, " count=%d", req
->count
);
1427 static void dump_load_dll_request( const struct load_dll_request
*req
)
1429 fprintf( stderr
, " mapping=%04x", req
->mapping
);
1430 dump_uint64( ", base=", &req
->base
);
1431 dump_uint64( ", name=", &req
->name
);
1432 fprintf( stderr
, ", size=%u", req
->size
);
1433 fprintf( stderr
, ", dbg_offset=%d", req
->dbg_offset
);
1434 fprintf( stderr
, ", dbg_size=%d", req
->dbg_size
);
1435 dump_varargs_unicode_str( ", filename=", cur_size
);
1438 static void dump_unload_dll_request( const struct unload_dll_request
*req
)
1440 dump_uint64( " base=", &req
->base
);
1443 static void dump_queue_apc_request( const struct queue_apc_request
*req
)
1445 fprintf( stderr
, " handle=%04x", req
->handle
);
1446 dump_apc_call( ", call=", &req
->call
);
1449 static void dump_queue_apc_reply( const struct queue_apc_reply
*req
)
1451 fprintf( stderr
, " handle=%04x", req
->handle
);
1452 fprintf( stderr
, ", self=%d", req
->self
);
1455 static void dump_get_apc_result_request( const struct get_apc_result_request
*req
)
1457 fprintf( stderr
, " handle=%04x", req
->handle
);
1460 static void dump_get_apc_result_reply( const struct get_apc_result_reply
*req
)
1462 dump_apc_result( " result=", &req
->result
);
1465 static void dump_close_handle_request( const struct close_handle_request
*req
)
1467 fprintf( stderr
, " handle=%04x", req
->handle
);
1470 static void dump_set_handle_info_request( const struct set_handle_info_request
*req
)
1472 fprintf( stderr
, " handle=%04x", req
->handle
);
1473 fprintf( stderr
, ", flags=%d", req
->flags
);
1474 fprintf( stderr
, ", mask=%d", req
->mask
);
1477 static void dump_set_handle_info_reply( const struct set_handle_info_reply
*req
)
1479 fprintf( stderr
, " old_flags=%d", req
->old_flags
);
1482 static void dump_dup_handle_request( const struct dup_handle_request
*req
)
1484 fprintf( stderr
, " src_process=%04x", req
->src_process
);
1485 fprintf( stderr
, ", src_handle=%04x", req
->src_handle
);
1486 fprintf( stderr
, ", dst_process=%04x", req
->dst_process
);
1487 fprintf( stderr
, ", access=%08x", req
->access
);
1488 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1489 fprintf( stderr
, ", options=%08x", req
->options
);
1492 static void dump_dup_handle_reply( const struct dup_handle_reply
*req
)
1494 fprintf( stderr
, " handle=%04x", req
->handle
);
1495 fprintf( stderr
, ", self=%d", req
->self
);
1496 fprintf( stderr
, ", closed=%d", req
->closed
);
1499 static void dump_open_process_request( const struct open_process_request
*req
)
1501 fprintf( stderr
, " pid=%04x", req
->pid
);
1502 fprintf( stderr
, ", access=%08x", req
->access
);
1503 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1506 static void dump_open_process_reply( const struct open_process_reply
*req
)
1508 fprintf( stderr
, " handle=%04x", req
->handle
);
1511 static void dump_open_thread_request( const struct open_thread_request
*req
)
1513 fprintf( stderr
, " tid=%04x", req
->tid
);
1514 fprintf( stderr
, ", access=%08x", req
->access
);
1515 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1518 static void dump_open_thread_reply( const struct open_thread_reply
*req
)
1520 fprintf( stderr
, " handle=%04x", req
->handle
);
1523 static void dump_select_request( const struct select_request
*req
)
1525 fprintf( stderr
, " flags=%d", req
->flags
);
1526 dump_uint64( ", cookie=", &req
->cookie
);
1527 dump_timeout( ", timeout=", &req
->timeout
);
1528 fprintf( stderr
, ", prev_apc=%04x", req
->prev_apc
);
1529 dump_varargs_apc_result( ", result=", cur_size
);
1530 dump_varargs_select_op( ", data=", cur_size
);
1533 static void dump_select_reply( const struct select_reply
*req
)
1535 dump_timeout( " timeout=", &req
->timeout
);
1536 dump_apc_call( ", call=", &req
->call
);
1537 fprintf( stderr
, ", apc_handle=%04x", req
->apc_handle
);
1540 static void dump_create_event_request( const struct create_event_request
*req
)
1542 fprintf( stderr
, " access=%08x", req
->access
);
1543 fprintf( stderr
, ", manual_reset=%d", req
->manual_reset
);
1544 fprintf( stderr
, ", initial_state=%d", req
->initial_state
);
1545 dump_varargs_object_attributes( ", objattr=", cur_size
);
1548 static void dump_create_event_reply( const struct create_event_reply
*req
)
1550 fprintf( stderr
, " handle=%04x", req
->handle
);
1553 static void dump_event_op_request( const struct event_op_request
*req
)
1555 fprintf( stderr
, " handle=%04x", req
->handle
);
1556 fprintf( stderr
, ", op=%d", req
->op
);
1559 static void dump_query_event_request( const struct query_event_request
*req
)
1561 fprintf( stderr
, " handle=%04x", req
->handle
);
1564 static void dump_query_event_reply( const struct query_event_reply
*req
)
1566 fprintf( stderr
, " manual_reset=%d", req
->manual_reset
);
1567 fprintf( stderr
, ", state=%d", req
->state
);
1570 static void dump_open_event_request( const struct open_event_request
*req
)
1572 fprintf( stderr
, " access=%08x", req
->access
);
1573 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1574 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
1575 dump_varargs_unicode_str( ", name=", cur_size
);
1578 static void dump_open_event_reply( const struct open_event_reply
*req
)
1580 fprintf( stderr
, " handle=%04x", req
->handle
);
1583 static void dump_create_keyed_event_request( const struct create_keyed_event_request
*req
)
1585 fprintf( stderr
, " access=%08x", req
->access
);
1586 dump_varargs_object_attributes( ", objattr=", cur_size
);
1589 static void dump_create_keyed_event_reply( const struct create_keyed_event_reply
*req
)
1591 fprintf( stderr
, " handle=%04x", req
->handle
);
1594 static void dump_open_keyed_event_request( const struct open_keyed_event_request
*req
)
1596 fprintf( stderr
, " access=%08x", req
->access
);
1597 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1598 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
1599 dump_varargs_unicode_str( ", name=", cur_size
);
1602 static void dump_open_keyed_event_reply( const struct open_keyed_event_reply
*req
)
1604 fprintf( stderr
, " handle=%04x", req
->handle
);
1607 static void dump_create_mutex_request( const struct create_mutex_request
*req
)
1609 fprintf( stderr
, " access=%08x", req
->access
);
1610 fprintf( stderr
, ", owned=%d", req
->owned
);
1611 dump_varargs_object_attributes( ", objattr=", cur_size
);
1614 static void dump_create_mutex_reply( const struct create_mutex_reply
*req
)
1616 fprintf( stderr
, " handle=%04x", req
->handle
);
1619 static void dump_release_mutex_request( const struct release_mutex_request
*req
)
1621 fprintf( stderr
, " handle=%04x", req
->handle
);
1624 static void dump_release_mutex_reply( const struct release_mutex_reply
*req
)
1626 fprintf( stderr
, " prev_count=%08x", req
->prev_count
);
1629 static void dump_open_mutex_request( const struct open_mutex_request
*req
)
1631 fprintf( stderr
, " access=%08x", req
->access
);
1632 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1633 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
1634 dump_varargs_unicode_str( ", name=", cur_size
);
1637 static void dump_open_mutex_reply( const struct open_mutex_reply
*req
)
1639 fprintf( stderr
, " handle=%04x", req
->handle
);
1642 static void dump_query_mutex_request( const struct query_mutex_request
*req
)
1644 fprintf( stderr
, " handle=%04x", req
->handle
);
1647 static void dump_query_mutex_reply( const struct query_mutex_reply
*req
)
1649 fprintf( stderr
, " count=%08x", req
->count
);
1650 fprintf( stderr
, ", owned=%d", req
->owned
);
1651 fprintf( stderr
, ", abandoned=%d", req
->abandoned
);
1654 static void dump_create_semaphore_request( const struct create_semaphore_request
*req
)
1656 fprintf( stderr
, " access=%08x", req
->access
);
1657 fprintf( stderr
, ", initial=%08x", req
->initial
);
1658 fprintf( stderr
, ", max=%08x", req
->max
);
1659 dump_varargs_object_attributes( ", objattr=", cur_size
);
1662 static void dump_create_semaphore_reply( const struct create_semaphore_reply
*req
)
1664 fprintf( stderr
, " handle=%04x", req
->handle
);
1667 static void dump_release_semaphore_request( const struct release_semaphore_request
*req
)
1669 fprintf( stderr
, " handle=%04x", req
->handle
);
1670 fprintf( stderr
, ", count=%08x", req
->count
);
1673 static void dump_release_semaphore_reply( const struct release_semaphore_reply
*req
)
1675 fprintf( stderr
, " prev_count=%08x", req
->prev_count
);
1678 static void dump_query_semaphore_request( const struct query_semaphore_request
*req
)
1680 fprintf( stderr
, " handle=%04x", req
->handle
);
1683 static void dump_query_semaphore_reply( const struct query_semaphore_reply
*req
)
1685 fprintf( stderr
, " current=%08x", req
->current
);
1686 fprintf( stderr
, ", max=%08x", req
->max
);
1689 static void dump_open_semaphore_request( const struct open_semaphore_request
*req
)
1691 fprintf( stderr
, " access=%08x", req
->access
);
1692 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1693 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
1694 dump_varargs_unicode_str( ", name=", cur_size
);
1697 static void dump_open_semaphore_reply( const struct open_semaphore_reply
*req
)
1699 fprintf( stderr
, " handle=%04x", req
->handle
);
1702 static void dump_create_file_request( const struct create_file_request
*req
)
1704 fprintf( stderr
, " access=%08x", req
->access
);
1705 fprintf( stderr
, ", sharing=%08x", req
->sharing
);
1706 fprintf( stderr
, ", create=%d", req
->create
);
1707 fprintf( stderr
, ", options=%08x", req
->options
);
1708 fprintf( stderr
, ", attrs=%08x", req
->attrs
);
1709 dump_varargs_object_attributes( ", objattr=", cur_size
);
1710 dump_varargs_string( ", filename=", cur_size
);
1713 static void dump_create_file_reply( const struct create_file_reply
*req
)
1715 fprintf( stderr
, " handle=%04x", req
->handle
);
1718 static void dump_open_file_object_request( const struct open_file_object_request
*req
)
1720 fprintf( stderr
, " access=%08x", req
->access
);
1721 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1722 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
1723 fprintf( stderr
, ", sharing=%08x", req
->sharing
);
1724 fprintf( stderr
, ", options=%08x", req
->options
);
1725 dump_varargs_unicode_str( ", filename=", cur_size
);
1728 static void dump_open_file_object_reply( const struct open_file_object_reply
*req
)
1730 fprintf( stderr
, " handle=%04x", req
->handle
);
1733 static void dump_alloc_file_handle_request( const struct alloc_file_handle_request
*req
)
1735 fprintf( stderr
, " access=%08x", req
->access
);
1736 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1737 fprintf( stderr
, ", fd=%d", req
->fd
);
1740 static void dump_alloc_file_handle_reply( const struct alloc_file_handle_reply
*req
)
1742 fprintf( stderr
, " handle=%04x", req
->handle
);
1745 static void dump_get_handle_unix_name_request( const struct get_handle_unix_name_request
*req
)
1747 fprintf( stderr
, " handle=%04x", req
->handle
);
1750 static void dump_get_handle_unix_name_reply( const struct get_handle_unix_name_reply
*req
)
1752 fprintf( stderr
, " name_len=%u", req
->name_len
);
1753 dump_varargs_string( ", name=", cur_size
);
1756 static void dump_get_handle_fd_request( const struct get_handle_fd_request
*req
)
1758 fprintf( stderr
, " handle=%04x", req
->handle
);
1761 static void dump_get_handle_fd_reply( const struct get_handle_fd_reply
*req
)
1763 fprintf( stderr
, " type=%d", req
->type
);
1764 fprintf( stderr
, ", cacheable=%d", req
->cacheable
);
1765 fprintf( stderr
, ", access=%08x", req
->access
);
1766 fprintf( stderr
, ", options=%08x", req
->options
);
1769 static void dump_get_directory_cache_entry_request( const struct get_directory_cache_entry_request
*req
)
1771 fprintf( stderr
, " handle=%04x", req
->handle
);
1774 static void dump_get_directory_cache_entry_reply( const struct get_directory_cache_entry_reply
*req
)
1776 fprintf( stderr
, " entry=%d", req
->entry
);
1777 dump_varargs_ints( ", free=", cur_size
);
1780 static void dump_flush_request( const struct flush_request
*req
)
1782 fprintf( stderr
, " blocking=%d", req
->blocking
);
1783 dump_async_data( ", async=", &req
->async
);
1786 static void dump_flush_reply( const struct flush_reply
*req
)
1788 fprintf( stderr
, " event=%04x", req
->event
);
1791 static void dump_lock_file_request( const struct lock_file_request
*req
)
1793 fprintf( stderr
, " handle=%04x", req
->handle
);
1794 dump_uint64( ", offset=", &req
->offset
);
1795 dump_uint64( ", count=", &req
->count
);
1796 fprintf( stderr
, ", shared=%d", req
->shared
);
1797 fprintf( stderr
, ", wait=%d", req
->wait
);
1800 static void dump_lock_file_reply( const struct lock_file_reply
*req
)
1802 fprintf( stderr
, " handle=%04x", req
->handle
);
1803 fprintf( stderr
, ", overlapped=%d", req
->overlapped
);
1806 static void dump_unlock_file_request( const struct unlock_file_request
*req
)
1808 fprintf( stderr
, " handle=%04x", req
->handle
);
1809 dump_uint64( ", offset=", &req
->offset
);
1810 dump_uint64( ", count=", &req
->count
);
1813 static void dump_create_socket_request( const struct create_socket_request
*req
)
1815 fprintf( stderr
, " access=%08x", req
->access
);
1816 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1817 fprintf( stderr
, ", family=%d", req
->family
);
1818 fprintf( stderr
, ", type=%d", req
->type
);
1819 fprintf( stderr
, ", protocol=%d", req
->protocol
);
1820 fprintf( stderr
, ", flags=%08x", req
->flags
);
1823 static void dump_create_socket_reply( const struct create_socket_reply
*req
)
1825 fprintf( stderr
, " handle=%04x", req
->handle
);
1828 static void dump_accept_socket_request( const struct accept_socket_request
*req
)
1830 fprintf( stderr
, " lhandle=%04x", req
->lhandle
);
1831 fprintf( stderr
, ", access=%08x", req
->access
);
1832 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1835 static void dump_accept_socket_reply( const struct accept_socket_reply
*req
)
1837 fprintf( stderr
, " handle=%04x", req
->handle
);
1840 static void dump_accept_into_socket_request( const struct accept_into_socket_request
*req
)
1842 fprintf( stderr
, " lhandle=%04x", req
->lhandle
);
1843 fprintf( stderr
, ", ahandle=%04x", req
->ahandle
);
1846 static void dump_set_socket_event_request( const struct set_socket_event_request
*req
)
1848 fprintf( stderr
, " handle=%04x", req
->handle
);
1849 fprintf( stderr
, ", mask=%08x", req
->mask
);
1850 fprintf( stderr
, ", event=%04x", req
->event
);
1851 fprintf( stderr
, ", window=%08x", req
->window
);
1852 fprintf( stderr
, ", msg=%08x", req
->msg
);
1855 static void dump_get_socket_event_request( const struct get_socket_event_request
*req
)
1857 fprintf( stderr
, " handle=%04x", req
->handle
);
1858 fprintf( stderr
, ", service=%d", req
->service
);
1859 fprintf( stderr
, ", c_event=%04x", req
->c_event
);
1862 static void dump_get_socket_event_reply( const struct get_socket_event_reply
*req
)
1864 fprintf( stderr
, " mask=%08x", req
->mask
);
1865 fprintf( stderr
, ", pmask=%08x", req
->pmask
);
1866 fprintf( stderr
, ", state=%08x", req
->state
);
1867 dump_varargs_ints( ", errors=", cur_size
);
1870 static void dump_get_socket_info_request( const struct get_socket_info_request
*req
)
1872 fprintf( stderr
, " handle=%04x", req
->handle
);
1875 static void dump_get_socket_info_reply( const struct get_socket_info_reply
*req
)
1877 fprintf( stderr
, " family=%d", req
->family
);
1878 fprintf( stderr
, ", type=%d", req
->type
);
1879 fprintf( stderr
, ", protocol=%d", req
->protocol
);
1882 static void dump_enable_socket_event_request( const struct enable_socket_event_request
*req
)
1884 fprintf( stderr
, " handle=%04x", req
->handle
);
1885 fprintf( stderr
, ", mask=%08x", req
->mask
);
1886 fprintf( stderr
, ", sstate=%08x", req
->sstate
);
1887 fprintf( stderr
, ", cstate=%08x", req
->cstate
);
1890 static void dump_set_socket_deferred_request( const struct set_socket_deferred_request
*req
)
1892 fprintf( stderr
, " handle=%04x", req
->handle
);
1893 fprintf( stderr
, ", deferred=%04x", req
->deferred
);
1896 static void dump_alloc_console_request( const struct alloc_console_request
*req
)
1898 fprintf( stderr
, " access=%08x", req
->access
);
1899 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1900 fprintf( stderr
, ", pid=%04x", req
->pid
);
1901 fprintf( stderr
, ", input_fd=%d", req
->input_fd
);
1904 static void dump_alloc_console_reply( const struct alloc_console_reply
*req
)
1906 fprintf( stderr
, " handle_in=%04x", req
->handle_in
);
1907 fprintf( stderr
, ", event=%04x", req
->event
);
1910 static void dump_free_console_request( const struct free_console_request
*req
)
1914 static void dump_get_console_renderer_events_request( const struct get_console_renderer_events_request
*req
)
1916 fprintf( stderr
, " handle=%04x", req
->handle
);
1919 static void dump_get_console_renderer_events_reply( const struct get_console_renderer_events_reply
*req
)
1921 dump_varargs_bytes( " data=", cur_size
);
1924 static void dump_open_console_request( const struct open_console_request
*req
)
1926 fprintf( stderr
, " from=%04x", req
->from
);
1927 fprintf( stderr
, ", access=%08x", req
->access
);
1928 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1929 fprintf( stderr
, ", share=%d", req
->share
);
1932 static void dump_open_console_reply( const struct open_console_reply
*req
)
1934 fprintf( stderr
, " handle=%04x", req
->handle
);
1937 static void dump_get_console_wait_event_request( const struct get_console_wait_event_request
*req
)
1941 static void dump_get_console_wait_event_reply( const struct get_console_wait_event_reply
*req
)
1943 fprintf( stderr
, " handle=%04x", req
->handle
);
1946 static void dump_get_console_mode_request( const struct get_console_mode_request
*req
)
1948 fprintf( stderr
, " handle=%04x", req
->handle
);
1951 static void dump_get_console_mode_reply( const struct get_console_mode_reply
*req
)
1953 fprintf( stderr
, " mode=%d", req
->mode
);
1956 static void dump_set_console_mode_request( const struct set_console_mode_request
*req
)
1958 fprintf( stderr
, " handle=%04x", req
->handle
);
1959 fprintf( stderr
, ", mode=%d", req
->mode
);
1962 static void dump_set_console_input_info_request( const struct set_console_input_info_request
*req
)
1964 fprintf( stderr
, " handle=%04x", req
->handle
);
1965 fprintf( stderr
, ", mask=%d", req
->mask
);
1966 fprintf( stderr
, ", active_sb=%04x", req
->active_sb
);
1967 fprintf( stderr
, ", history_mode=%d", req
->history_mode
);
1968 fprintf( stderr
, ", history_size=%d", req
->history_size
);
1969 fprintf( stderr
, ", edition_mode=%d", req
->edition_mode
);
1970 fprintf( stderr
, ", input_cp=%d", req
->input_cp
);
1971 fprintf( stderr
, ", output_cp=%d", req
->output_cp
);
1972 fprintf( stderr
, ", win=%08x", req
->win
);
1973 dump_varargs_unicode_str( ", title=", cur_size
);
1976 static void dump_get_console_input_info_request( const struct get_console_input_info_request
*req
)
1978 fprintf( stderr
, " handle=%04x", req
->handle
);
1981 static void dump_get_console_input_info_reply( const struct get_console_input_info_reply
*req
)
1983 fprintf( stderr
, " history_mode=%d", req
->history_mode
);
1984 fprintf( stderr
, ", history_size=%d", req
->history_size
);
1985 fprintf( stderr
, ", history_index=%d", req
->history_index
);
1986 fprintf( stderr
, ", edition_mode=%d", req
->edition_mode
);
1987 fprintf( stderr
, ", input_cp=%d", req
->input_cp
);
1988 fprintf( stderr
, ", output_cp=%d", req
->output_cp
);
1989 fprintf( stderr
, ", win=%08x", req
->win
);
1990 dump_varargs_unicode_str( ", title=", cur_size
);
1993 static void dump_append_console_input_history_request( const struct append_console_input_history_request
*req
)
1995 fprintf( stderr
, " handle=%04x", req
->handle
);
1996 dump_varargs_unicode_str( ", line=", cur_size
);
1999 static void dump_get_console_input_history_request( const struct get_console_input_history_request
*req
)
2001 fprintf( stderr
, " handle=%04x", req
->handle
);
2002 fprintf( stderr
, ", index=%d", req
->index
);
2005 static void dump_get_console_input_history_reply( const struct get_console_input_history_reply
*req
)
2007 fprintf( stderr
, " total=%d", req
->total
);
2008 dump_varargs_unicode_str( ", line=", cur_size
);
2011 static void dump_create_console_output_request( const struct create_console_output_request
*req
)
2013 fprintf( stderr
, " handle_in=%04x", req
->handle_in
);
2014 fprintf( stderr
, ", access=%08x", req
->access
);
2015 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
2016 fprintf( stderr
, ", share=%08x", req
->share
);
2017 fprintf( stderr
, ", fd=%d", req
->fd
);
2020 static void dump_create_console_output_reply( const struct create_console_output_reply
*req
)
2022 fprintf( stderr
, " handle_out=%04x", req
->handle_out
);
2025 static void dump_set_console_output_info_request( const struct set_console_output_info_request
*req
)
2027 fprintf( stderr
, " handle=%04x", req
->handle
);
2028 fprintf( stderr
, ", mask=%d", req
->mask
);
2029 fprintf( stderr
, ", cursor_size=%d", req
->cursor_size
);
2030 fprintf( stderr
, ", cursor_visible=%d", req
->cursor_visible
);
2031 fprintf( stderr
, ", cursor_x=%d", req
->cursor_x
);
2032 fprintf( stderr
, ", cursor_y=%d", req
->cursor_y
);
2033 fprintf( stderr
, ", width=%d", req
->width
);
2034 fprintf( stderr
, ", height=%d", req
->height
);
2035 fprintf( stderr
, ", attr=%d", req
->attr
);
2036 fprintf( stderr
, ", popup_attr=%d", req
->popup_attr
);
2037 fprintf( stderr
, ", win_left=%d", req
->win_left
);
2038 fprintf( stderr
, ", win_top=%d", req
->win_top
);
2039 fprintf( stderr
, ", win_right=%d", req
->win_right
);
2040 fprintf( stderr
, ", win_bottom=%d", req
->win_bottom
);
2041 fprintf( stderr
, ", max_width=%d", req
->max_width
);
2042 fprintf( stderr
, ", max_height=%d", req
->max_height
);
2043 fprintf( stderr
, ", font_width=%d", req
->font_width
);
2044 fprintf( stderr
, ", font_height=%d", req
->font_height
);
2045 dump_varargs_uints( ", colors=", cur_size
);
2048 static void dump_get_console_output_info_request( const struct get_console_output_info_request
*req
)
2050 fprintf( stderr
, " handle=%04x", req
->handle
);
2053 static void dump_get_console_output_info_reply( const struct get_console_output_info_reply
*req
)
2055 fprintf( stderr
, " cursor_size=%d", req
->cursor_size
);
2056 fprintf( stderr
, ", cursor_visible=%d", req
->cursor_visible
);
2057 fprintf( stderr
, ", cursor_x=%d", req
->cursor_x
);
2058 fprintf( stderr
, ", cursor_y=%d", req
->cursor_y
);
2059 fprintf( stderr
, ", width=%d", req
->width
);
2060 fprintf( stderr
, ", height=%d", req
->height
);
2061 fprintf( stderr
, ", attr=%d", req
->attr
);
2062 fprintf( stderr
, ", popup_attr=%d", req
->popup_attr
);
2063 fprintf( stderr
, ", win_left=%d", req
->win_left
);
2064 fprintf( stderr
, ", win_top=%d", req
->win_top
);
2065 fprintf( stderr
, ", win_right=%d", req
->win_right
);
2066 fprintf( stderr
, ", win_bottom=%d", req
->win_bottom
);
2067 fprintf( stderr
, ", max_width=%d", req
->max_width
);
2068 fprintf( stderr
, ", max_height=%d", req
->max_height
);
2069 fprintf( stderr
, ", font_width=%d", req
->font_width
);
2070 fprintf( stderr
, ", font_height=%d", req
->font_height
);
2071 dump_varargs_uints( ", colors=", cur_size
);
2074 static void dump_write_console_input_request( const struct write_console_input_request
*req
)
2076 fprintf( stderr
, " handle=%04x", req
->handle
);
2077 dump_varargs_input_records( ", rec=", cur_size
);
2080 static void dump_write_console_input_reply( const struct write_console_input_reply
*req
)
2082 fprintf( stderr
, " written=%d", req
->written
);
2085 static void dump_read_console_input_request( const struct read_console_input_request
*req
)
2087 fprintf( stderr
, " handle=%04x", req
->handle
);
2088 fprintf( stderr
, ", flush=%d", req
->flush
);
2091 static void dump_read_console_input_reply( const struct read_console_input_reply
*req
)
2093 fprintf( stderr
, " read=%d", req
->read
);
2094 dump_varargs_input_records( ", rec=", cur_size
);
2097 static void dump_write_console_output_request( const struct write_console_output_request
*req
)
2099 fprintf( stderr
, " handle=%04x", req
->handle
);
2100 fprintf( stderr
, ", x=%d", req
->x
);
2101 fprintf( stderr
, ", y=%d", req
->y
);
2102 fprintf( stderr
, ", mode=%d", req
->mode
);
2103 fprintf( stderr
, ", wrap=%d", req
->wrap
);
2104 dump_varargs_bytes( ", data=", cur_size
);
2107 static void dump_write_console_output_reply( const struct write_console_output_reply
*req
)
2109 fprintf( stderr
, " written=%d", req
->written
);
2110 fprintf( stderr
, ", width=%d", req
->width
);
2111 fprintf( stderr
, ", height=%d", req
->height
);
2114 static void dump_fill_console_output_request( const struct fill_console_output_request
*req
)
2116 fprintf( stderr
, " handle=%04x", req
->handle
);
2117 fprintf( stderr
, ", x=%d", req
->x
);
2118 fprintf( stderr
, ", y=%d", req
->y
);
2119 fprintf( stderr
, ", mode=%d", req
->mode
);
2120 fprintf( stderr
, ", count=%d", req
->count
);
2121 fprintf( stderr
, ", wrap=%d", req
->wrap
);
2122 dump_char_info( ", data=", &req
->data
);
2125 static void dump_fill_console_output_reply( const struct fill_console_output_reply
*req
)
2127 fprintf( stderr
, " written=%d", req
->written
);
2130 static void dump_read_console_output_request( const struct read_console_output_request
*req
)
2132 fprintf( stderr
, " handle=%04x", req
->handle
);
2133 fprintf( stderr
, ", x=%d", req
->x
);
2134 fprintf( stderr
, ", y=%d", req
->y
);
2135 fprintf( stderr
, ", mode=%d", req
->mode
);
2136 fprintf( stderr
, ", wrap=%d", req
->wrap
);
2139 static void dump_read_console_output_reply( const struct read_console_output_reply
*req
)
2141 fprintf( stderr
, " width=%d", req
->width
);
2142 fprintf( stderr
, ", height=%d", req
->height
);
2143 dump_varargs_bytes( ", data=", cur_size
);
2146 static void dump_move_console_output_request( const struct move_console_output_request
*req
)
2148 fprintf( stderr
, " handle=%04x", req
->handle
);
2149 fprintf( stderr
, ", x_src=%d", req
->x_src
);
2150 fprintf( stderr
, ", y_src=%d", req
->y_src
);
2151 fprintf( stderr
, ", x_dst=%d", req
->x_dst
);
2152 fprintf( stderr
, ", y_dst=%d", req
->y_dst
);
2153 fprintf( stderr
, ", w=%d", req
->w
);
2154 fprintf( stderr
, ", h=%d", req
->h
);
2157 static void dump_send_console_signal_request( const struct send_console_signal_request
*req
)
2159 fprintf( stderr
, " signal=%d", req
->signal
);
2160 fprintf( stderr
, ", group_id=%04x", req
->group_id
);
2163 static void dump_read_directory_changes_request( const struct read_directory_changes_request
*req
)
2165 fprintf( stderr
, " filter=%08x", req
->filter
);
2166 fprintf( stderr
, ", subtree=%d", req
->subtree
);
2167 fprintf( stderr
, ", want_data=%d", req
->want_data
);
2168 dump_async_data( ", async=", &req
->async
);
2171 static void dump_read_change_request( const struct read_change_request
*req
)
2173 fprintf( stderr
, " handle=%04x", req
->handle
);
2176 static void dump_read_change_reply( const struct read_change_reply
*req
)
2178 dump_varargs_filesystem_event( " events=", cur_size
);
2181 static void dump_create_mapping_request( const struct create_mapping_request
*req
)
2183 fprintf( stderr
, " access=%08x", req
->access
);
2184 fprintf( stderr
, ", flags=%08x", req
->flags
);
2185 fprintf( stderr
, ", protect=%08x", req
->protect
);
2186 dump_uint64( ", size=", &req
->size
);
2187 fprintf( stderr
, ", file_handle=%04x", req
->file_handle
);
2188 dump_varargs_object_attributes( ", objattr=", cur_size
);
2191 static void dump_create_mapping_reply( const struct create_mapping_reply
*req
)
2193 fprintf( stderr
, " handle=%04x", req
->handle
);
2196 static void dump_open_mapping_request( const struct open_mapping_request
*req
)
2198 fprintf( stderr
, " access=%08x", req
->access
);
2199 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
2200 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
2201 dump_varargs_unicode_str( ", name=", cur_size
);
2204 static void dump_open_mapping_reply( const struct open_mapping_reply
*req
)
2206 fprintf( stderr
, " handle=%04x", req
->handle
);
2209 static void dump_get_mapping_info_request( const struct get_mapping_info_request
*req
)
2211 fprintf( stderr
, " handle=%04x", req
->handle
);
2212 fprintf( stderr
, ", access=%08x", req
->access
);
2215 static void dump_get_mapping_info_reply( const struct get_mapping_info_reply
*req
)
2217 dump_uint64( " size=", &req
->size
);
2218 fprintf( stderr
, ", flags=%08x", req
->flags
);
2219 fprintf( stderr
, ", protect=%d", req
->protect
);
2220 fprintf( stderr
, ", mapping=%04x", req
->mapping
);
2221 fprintf( stderr
, ", shared_file=%04x", req
->shared_file
);
2222 dump_varargs_pe_image_info( ", image=", cur_size
);
2225 static void dump_get_mapping_committed_range_request( const struct get_mapping_committed_range_request
*req
)
2227 fprintf( stderr
, " handle=%04x", req
->handle
);
2228 dump_uint64( ", offset=", &req
->offset
);
2231 static void dump_get_mapping_committed_range_reply( const struct get_mapping_committed_range_reply
*req
)
2233 dump_uint64( " size=", &req
->size
);
2234 fprintf( stderr
, ", committed=%d", req
->committed
);
2237 static void dump_add_mapping_committed_range_request( const struct add_mapping_committed_range_request
*req
)
2239 fprintf( stderr
, " handle=%04x", req
->handle
);
2240 dump_uint64( ", offset=", &req
->offset
);
2241 dump_uint64( ", size=", &req
->size
);
2244 static void dump_create_snapshot_request( const struct create_snapshot_request
*req
)
2246 fprintf( stderr
, " attributes=%08x", req
->attributes
);
2247 fprintf( stderr
, ", flags=%08x", req
->flags
);
2250 static void dump_create_snapshot_reply( const struct create_snapshot_reply
*req
)
2252 fprintf( stderr
, " handle=%04x", req
->handle
);
2255 static void dump_next_process_request( const struct next_process_request
*req
)
2257 fprintf( stderr
, " handle=%04x", req
->handle
);
2258 fprintf( stderr
, ", reset=%d", req
->reset
);
2261 static void dump_next_process_reply( const struct next_process_reply
*req
)
2263 fprintf( stderr
, " count=%d", req
->count
);
2264 fprintf( stderr
, ", pid=%04x", req
->pid
);
2265 fprintf( stderr
, ", ppid=%04x", req
->ppid
);
2266 fprintf( stderr
, ", threads=%d", req
->threads
);
2267 fprintf( stderr
, ", priority=%d", req
->priority
);
2268 fprintf( stderr
, ", handles=%d", req
->handles
);
2269 fprintf( stderr
, ", unix_pid=%d", req
->unix_pid
);
2270 dump_varargs_unicode_str( ", filename=", cur_size
);
2273 static void dump_next_thread_request( const struct next_thread_request
*req
)
2275 fprintf( stderr
, " handle=%04x", req
->handle
);
2276 fprintf( stderr
, ", reset=%d", req
->reset
);
2279 static void dump_next_thread_reply( const struct next_thread_reply
*req
)
2281 fprintf( stderr
, " count=%d", req
->count
);
2282 fprintf( stderr
, ", pid=%04x", req
->pid
);
2283 fprintf( stderr
, ", tid=%04x", req
->tid
);
2284 fprintf( stderr
, ", base_pri=%d", req
->base_pri
);
2285 fprintf( stderr
, ", delta_pri=%d", req
->delta_pri
);
2288 static void dump_wait_debug_event_request( const struct wait_debug_event_request
*req
)
2290 fprintf( stderr
, " get_handle=%d", req
->get_handle
);
2293 static void dump_wait_debug_event_reply( const struct wait_debug_event_reply
*req
)
2295 fprintf( stderr
, " pid=%04x", req
->pid
);
2296 fprintf( stderr
, ", tid=%04x", req
->tid
);
2297 fprintf( stderr
, ", wait=%04x", req
->wait
);
2298 dump_varargs_debug_event( ", event=", cur_size
);
2301 static void dump_queue_exception_event_request( const struct queue_exception_event_request
*req
)
2303 fprintf( stderr
, " first=%d", req
->first
);
2304 fprintf( stderr
, ", code=%08x", req
->code
);
2305 fprintf( stderr
, ", flags=%08x", req
->flags
);
2306 dump_uint64( ", record=", &req
->record
);
2307 dump_uint64( ", address=", &req
->address
);
2308 fprintf( stderr
, ", len=%u", req
->len
);
2309 dump_varargs_uints64( ", params=", min(cur_size
,req
->len
) );
2310 dump_varargs_context( ", context=", cur_size
);
2313 static void dump_queue_exception_event_reply( const struct queue_exception_event_reply
*req
)
2315 fprintf( stderr
, " handle=%04x", req
->handle
);
2318 static void dump_get_exception_status_request( const struct get_exception_status_request
*req
)
2320 fprintf( stderr
, " handle=%04x", req
->handle
);
2323 static void dump_get_exception_status_reply( const struct get_exception_status_reply
*req
)
2325 dump_varargs_context( " context=", cur_size
);
2328 static void dump_continue_debug_event_request( const struct continue_debug_event_request
*req
)
2330 fprintf( stderr
, " pid=%04x", req
->pid
);
2331 fprintf( stderr
, ", tid=%04x", req
->tid
);
2332 fprintf( stderr
, ", status=%d", req
->status
);
2335 static void dump_debug_process_request( const struct debug_process_request
*req
)
2337 fprintf( stderr
, " pid=%04x", req
->pid
);
2338 fprintf( stderr
, ", attach=%d", req
->attach
);
2341 static void dump_debug_break_request( const struct debug_break_request
*req
)
2343 fprintf( stderr
, " handle=%04x", req
->handle
);
2346 static void dump_debug_break_reply( const struct debug_break_reply
*req
)
2348 fprintf( stderr
, " self=%d", req
->self
);
2351 static void dump_set_debugger_kill_on_exit_request( const struct set_debugger_kill_on_exit_request
*req
)
2353 fprintf( stderr
, " kill_on_exit=%d", req
->kill_on_exit
);
2356 static void dump_read_process_memory_request( const struct read_process_memory_request
*req
)
2358 fprintf( stderr
, " handle=%04x", req
->handle
);
2359 dump_uint64( ", addr=", &req
->addr
);
2362 static void dump_read_process_memory_reply( const struct read_process_memory_reply
*req
)
2364 dump_varargs_bytes( " data=", cur_size
);
2367 static void dump_write_process_memory_request( const struct write_process_memory_request
*req
)
2369 fprintf( stderr
, " handle=%04x", req
->handle
);
2370 dump_uint64( ", addr=", &req
->addr
);
2371 dump_varargs_bytes( ", data=", cur_size
);
2374 static void dump_create_key_request( const struct create_key_request
*req
)
2376 fprintf( stderr
, " access=%08x", req
->access
);
2377 fprintf( stderr
, ", options=%08x", req
->options
);
2378 dump_varargs_object_attributes( ", objattr=", cur_size
);
2379 dump_varargs_unicode_str( ", class=", cur_size
);
2382 static void dump_create_key_reply( const struct create_key_reply
*req
)
2384 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2385 fprintf( stderr
, ", created=%d", req
->created
);
2388 static void dump_open_key_request( const struct open_key_request
*req
)
2390 fprintf( stderr
, " parent=%04x", req
->parent
);
2391 fprintf( stderr
, ", access=%08x", req
->access
);
2392 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
2393 dump_varargs_unicode_str( ", name=", cur_size
);
2396 static void dump_open_key_reply( const struct open_key_reply
*req
)
2398 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2401 static void dump_delete_key_request( const struct delete_key_request
*req
)
2403 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2406 static void dump_flush_key_request( const struct flush_key_request
*req
)
2408 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2411 static void dump_enum_key_request( const struct enum_key_request
*req
)
2413 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2414 fprintf( stderr
, ", index=%d", req
->index
);
2415 fprintf( stderr
, ", info_class=%d", req
->info_class
);
2418 static void dump_enum_key_reply( const struct enum_key_reply
*req
)
2420 fprintf( stderr
, " subkeys=%d", req
->subkeys
);
2421 fprintf( stderr
, ", max_subkey=%d", req
->max_subkey
);
2422 fprintf( stderr
, ", max_class=%d", req
->max_class
);
2423 fprintf( stderr
, ", values=%d", req
->values
);
2424 fprintf( stderr
, ", max_value=%d", req
->max_value
);
2425 fprintf( stderr
, ", max_data=%d", req
->max_data
);
2426 dump_timeout( ", modif=", &req
->modif
);
2427 fprintf( stderr
, ", total=%u", req
->total
);
2428 fprintf( stderr
, ", namelen=%u", req
->namelen
);
2429 dump_varargs_unicode_str( ", name=", min(cur_size
,req
->namelen
) );
2430 dump_varargs_unicode_str( ", class=", cur_size
);
2433 static void dump_set_key_value_request( const struct set_key_value_request
*req
)
2435 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2436 fprintf( stderr
, ", type=%d", req
->type
);
2437 fprintf( stderr
, ", namelen=%u", req
->namelen
);
2438 dump_varargs_unicode_str( ", name=", min(cur_size
,req
->namelen
) );
2439 dump_varargs_bytes( ", data=", cur_size
);
2442 static void dump_get_key_value_request( const struct get_key_value_request
*req
)
2444 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2445 dump_varargs_unicode_str( ", name=", cur_size
);
2448 static void dump_get_key_value_reply( const struct get_key_value_reply
*req
)
2450 fprintf( stderr
, " type=%d", req
->type
);
2451 fprintf( stderr
, ", total=%u", req
->total
);
2452 dump_varargs_bytes( ", data=", cur_size
);
2455 static void dump_enum_key_value_request( const struct enum_key_value_request
*req
)
2457 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2458 fprintf( stderr
, ", index=%d", req
->index
);
2459 fprintf( stderr
, ", info_class=%d", req
->info_class
);
2462 static void dump_enum_key_value_reply( const struct enum_key_value_reply
*req
)
2464 fprintf( stderr
, " type=%d", req
->type
);
2465 fprintf( stderr
, ", total=%u", req
->total
);
2466 fprintf( stderr
, ", namelen=%u", req
->namelen
);
2467 dump_varargs_unicode_str( ", name=", min(cur_size
,req
->namelen
) );
2468 dump_varargs_bytes( ", data=", cur_size
);
2471 static void dump_delete_key_value_request( const struct delete_key_value_request
*req
)
2473 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2474 dump_varargs_unicode_str( ", name=", cur_size
);
2477 static void dump_load_registry_request( const struct load_registry_request
*req
)
2479 fprintf( stderr
, " file=%04x", req
->file
);
2480 dump_varargs_object_attributes( ", objattr=", cur_size
);
2483 static void dump_unload_registry_request( const struct unload_registry_request
*req
)
2485 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2488 static void dump_save_registry_request( const struct save_registry_request
*req
)
2490 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2491 fprintf( stderr
, ", file=%04x", req
->file
);
2494 static void dump_set_registry_notification_request( const struct set_registry_notification_request
*req
)
2496 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2497 fprintf( stderr
, ", event=%04x", req
->event
);
2498 fprintf( stderr
, ", subtree=%d", req
->subtree
);
2499 fprintf( stderr
, ", filter=%08x", req
->filter
);
2502 static void dump_create_timer_request( const struct create_timer_request
*req
)
2504 fprintf( stderr
, " access=%08x", req
->access
);
2505 fprintf( stderr
, ", manual=%d", req
->manual
);
2506 dump_varargs_object_attributes( ", objattr=", cur_size
);
2509 static void dump_create_timer_reply( const struct create_timer_reply
*req
)
2511 fprintf( stderr
, " handle=%04x", req
->handle
);
2514 static void dump_open_timer_request( const struct open_timer_request
*req
)
2516 fprintf( stderr
, " access=%08x", req
->access
);
2517 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
2518 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
2519 dump_varargs_unicode_str( ", name=", cur_size
);
2522 static void dump_open_timer_reply( const struct open_timer_reply
*req
)
2524 fprintf( stderr
, " handle=%04x", req
->handle
);
2527 static void dump_set_timer_request( const struct set_timer_request
*req
)
2529 fprintf( stderr
, " handle=%04x", req
->handle
);
2530 dump_timeout( ", expire=", &req
->expire
);
2531 dump_uint64( ", callback=", &req
->callback
);
2532 dump_uint64( ", arg=", &req
->arg
);
2533 fprintf( stderr
, ", period=%d", req
->period
);
2536 static void dump_set_timer_reply( const struct set_timer_reply
*req
)
2538 fprintf( stderr
, " signaled=%d", req
->signaled
);
2541 static void dump_cancel_timer_request( const struct cancel_timer_request
*req
)
2543 fprintf( stderr
, " handle=%04x", req
->handle
);
2546 static void dump_cancel_timer_reply( const struct cancel_timer_reply
*req
)
2548 fprintf( stderr
, " signaled=%d", req
->signaled
);
2551 static void dump_get_timer_info_request( const struct get_timer_info_request
*req
)
2553 fprintf( stderr
, " handle=%04x", req
->handle
);
2556 static void dump_get_timer_info_reply( const struct get_timer_info_reply
*req
)
2558 dump_timeout( " when=", &req
->when
);
2559 fprintf( stderr
, ", signaled=%d", req
->signaled
);
2562 static void dump_get_thread_context_request( const struct get_thread_context_request
*req
)
2564 fprintf( stderr
, " handle=%04x", req
->handle
);
2565 fprintf( stderr
, ", flags=%08x", req
->flags
);
2566 fprintf( stderr
, ", suspend=%d", req
->suspend
);
2569 static void dump_get_thread_context_reply( const struct get_thread_context_reply
*req
)
2571 fprintf( stderr
, " self=%d", req
->self
);
2572 dump_varargs_context( ", context=", cur_size
);
2575 static void dump_set_thread_context_request( const struct set_thread_context_request
*req
)
2577 fprintf( stderr
, " handle=%04x", req
->handle
);
2578 fprintf( stderr
, ", suspend=%d", req
->suspend
);
2579 dump_varargs_context( ", context=", cur_size
);
2582 static void dump_set_thread_context_reply( const struct set_thread_context_reply
*req
)
2584 fprintf( stderr
, " self=%d", req
->self
);
2587 static void dump_get_selector_entry_request( const struct get_selector_entry_request
*req
)
2589 fprintf( stderr
, " handle=%04x", req
->handle
);
2590 fprintf( stderr
, ", entry=%d", req
->entry
);
2593 static void dump_get_selector_entry_reply( const struct get_selector_entry_reply
*req
)
2595 fprintf( stderr
, " base=%08x", req
->base
);
2596 fprintf( stderr
, ", limit=%08x", req
->limit
);
2597 fprintf( stderr
, ", flags=%02x", req
->flags
);
2600 static void dump_add_atom_request( const struct add_atom_request
*req
)
2602 fprintf( stderr
, " table=%04x", req
->table
);
2603 dump_varargs_unicode_str( ", name=", cur_size
);
2606 static void dump_add_atom_reply( const struct add_atom_reply
*req
)
2608 fprintf( stderr
, " atom=%04x", req
->atom
);
2611 static void dump_delete_atom_request( const struct delete_atom_request
*req
)
2613 fprintf( stderr
, " table=%04x", req
->table
);
2614 fprintf( stderr
, ", atom=%04x", req
->atom
);
2617 static void dump_find_atom_request( const struct find_atom_request
*req
)
2619 fprintf( stderr
, " table=%04x", req
->table
);
2620 dump_varargs_unicode_str( ", name=", cur_size
);
2623 static void dump_find_atom_reply( const struct find_atom_reply
*req
)
2625 fprintf( stderr
, " atom=%04x", req
->atom
);
2628 static void dump_get_atom_information_request( const struct get_atom_information_request
*req
)
2630 fprintf( stderr
, " table=%04x", req
->table
);
2631 fprintf( stderr
, ", atom=%04x", req
->atom
);
2634 static void dump_get_atom_information_reply( const struct get_atom_information_reply
*req
)
2636 fprintf( stderr
, " count=%d", req
->count
);
2637 fprintf( stderr
, ", pinned=%d", req
->pinned
);
2638 fprintf( stderr
, ", total=%u", req
->total
);
2639 dump_varargs_unicode_str( ", name=", cur_size
);
2642 static void dump_set_atom_information_request( const struct set_atom_information_request
*req
)
2644 fprintf( stderr
, " table=%04x", req
->table
);
2645 fprintf( stderr
, ", atom=%04x", req
->atom
);
2646 fprintf( stderr
, ", pinned=%d", req
->pinned
);
2649 static void dump_empty_atom_table_request( const struct empty_atom_table_request
*req
)
2651 fprintf( stderr
, " table=%04x", req
->table
);
2652 fprintf( stderr
, ", if_pinned=%d", req
->if_pinned
);
2655 static void dump_init_atom_table_request( const struct init_atom_table_request
*req
)
2657 fprintf( stderr
, " entries=%d", req
->entries
);
2660 static void dump_init_atom_table_reply( const struct init_atom_table_reply
*req
)
2662 fprintf( stderr
, " table=%04x", req
->table
);
2665 static void dump_get_msg_queue_request( const struct get_msg_queue_request
*req
)
2669 static void dump_get_msg_queue_reply( const struct get_msg_queue_reply
*req
)
2671 fprintf( stderr
, " handle=%04x", req
->handle
);
2674 static void dump_set_queue_fd_request( const struct set_queue_fd_request
*req
)
2676 fprintf( stderr
, " handle=%04x", req
->handle
);
2679 static void dump_set_queue_mask_request( const struct set_queue_mask_request
*req
)
2681 fprintf( stderr
, " wake_mask=%08x", req
->wake_mask
);
2682 fprintf( stderr
, ", changed_mask=%08x", req
->changed_mask
);
2683 fprintf( stderr
, ", skip_wait=%d", req
->skip_wait
);
2686 static void dump_set_queue_mask_reply( const struct set_queue_mask_reply
*req
)
2688 fprintf( stderr
, " wake_bits=%08x", req
->wake_bits
);
2689 fprintf( stderr
, ", changed_bits=%08x", req
->changed_bits
);
2692 static void dump_get_queue_status_request( const struct get_queue_status_request
*req
)
2694 fprintf( stderr
, " clear_bits=%08x", req
->clear_bits
);
2697 static void dump_get_queue_status_reply( const struct get_queue_status_reply
*req
)
2699 fprintf( stderr
, " wake_bits=%08x", req
->wake_bits
);
2700 fprintf( stderr
, ", changed_bits=%08x", req
->changed_bits
);
2703 static void dump_get_process_idle_event_request( const struct get_process_idle_event_request
*req
)
2705 fprintf( stderr
, " handle=%04x", req
->handle
);
2708 static void dump_get_process_idle_event_reply( const struct get_process_idle_event_reply
*req
)
2710 fprintf( stderr
, " event=%04x", req
->event
);
2713 static void dump_send_message_request( const struct send_message_request
*req
)
2715 fprintf( stderr
, " id=%04x", req
->id
);
2716 fprintf( stderr
, ", type=%d", req
->type
);
2717 fprintf( stderr
, ", flags=%d", req
->flags
);
2718 fprintf( stderr
, ", win=%08x", req
->win
);
2719 fprintf( stderr
, ", msg=%08x", req
->msg
);
2720 dump_uint64( ", wparam=", &req
->wparam
);
2721 dump_uint64( ", lparam=", &req
->lparam
);
2722 dump_timeout( ", timeout=", &req
->timeout
);
2723 dump_varargs_message_data( ", data=", cur_size
);
2726 static void dump_post_quit_message_request( const struct post_quit_message_request
*req
)
2728 fprintf( stderr
, " exit_code=%d", req
->exit_code
);
2731 static void dump_send_hardware_message_request( const struct send_hardware_message_request
*req
)
2733 fprintf( stderr
, " win=%08x", req
->win
);
2734 dump_hw_input( ", input=", &req
->input
);
2735 fprintf( stderr
, ", flags=%08x", req
->flags
);
2738 static void dump_send_hardware_message_reply( const struct send_hardware_message_reply
*req
)
2740 fprintf( stderr
, " wait=%d", req
->wait
);
2741 fprintf( stderr
, ", prev_x=%d", req
->prev_x
);
2742 fprintf( stderr
, ", prev_y=%d", req
->prev_y
);
2743 fprintf( stderr
, ", new_x=%d", req
->new_x
);
2744 fprintf( stderr
, ", new_y=%d", req
->new_y
);
2745 dump_varargs_bytes( ", keystate=", cur_size
);
2748 static void dump_get_message_request( const struct get_message_request
*req
)
2750 fprintf( stderr
, " flags=%08x", req
->flags
);
2751 fprintf( stderr
, ", get_win=%08x", req
->get_win
);
2752 fprintf( stderr
, ", get_first=%08x", req
->get_first
);
2753 fprintf( stderr
, ", get_last=%08x", req
->get_last
);
2754 fprintf( stderr
, ", hw_id=%08x", req
->hw_id
);
2755 fprintf( stderr
, ", wake_mask=%08x", req
->wake_mask
);
2756 fprintf( stderr
, ", changed_mask=%08x", req
->changed_mask
);
2759 static void dump_get_message_reply( const struct get_message_reply
*req
)
2761 fprintf( stderr
, " win=%08x", req
->win
);
2762 fprintf( stderr
, ", msg=%08x", req
->msg
);
2763 dump_uint64( ", wparam=", &req
->wparam
);
2764 dump_uint64( ", lparam=", &req
->lparam
);
2765 fprintf( stderr
, ", type=%d", req
->type
);
2766 fprintf( stderr
, ", x=%d", req
->x
);
2767 fprintf( stderr
, ", y=%d", req
->y
);
2768 fprintf( stderr
, ", time=%08x", req
->time
);
2769 fprintf( stderr
, ", active_hooks=%08x", req
->active_hooks
);
2770 fprintf( stderr
, ", total=%u", req
->total
);
2771 dump_varargs_message_data( ", data=", cur_size
);
2774 static void dump_reply_message_request( const struct reply_message_request
*req
)
2776 fprintf( stderr
, " remove=%d", req
->remove
);
2777 dump_uint64( ", result=", &req
->result
);
2778 dump_varargs_bytes( ", data=", cur_size
);
2781 static void dump_accept_hardware_message_request( const struct accept_hardware_message_request
*req
)
2783 fprintf( stderr
, " hw_id=%08x", req
->hw_id
);
2784 fprintf( stderr
, ", remove=%d", req
->remove
);
2787 static void dump_get_message_reply_request( const struct get_message_reply_request
*req
)
2789 fprintf( stderr
, " cancel=%d", req
->cancel
);
2792 static void dump_get_message_reply_reply( const struct get_message_reply_reply
*req
)
2794 dump_uint64( " result=", &req
->result
);
2795 dump_varargs_bytes( ", data=", cur_size
);
2798 static void dump_set_win_timer_request( const struct set_win_timer_request
*req
)
2800 fprintf( stderr
, " win=%08x", req
->win
);
2801 fprintf( stderr
, ", msg=%08x", req
->msg
);
2802 fprintf( stderr
, ", rate=%08x", req
->rate
);
2803 dump_uint64( ", id=", &req
->id
);
2804 dump_uint64( ", lparam=", &req
->lparam
);
2807 static void dump_set_win_timer_reply( const struct set_win_timer_reply
*req
)
2809 dump_uint64( " id=", &req
->id
);
2812 static void dump_kill_win_timer_request( const struct kill_win_timer_request
*req
)
2814 fprintf( stderr
, " win=%08x", req
->win
);
2815 dump_uint64( ", id=", &req
->id
);
2816 fprintf( stderr
, ", msg=%08x", req
->msg
);
2819 static void dump_is_window_hung_request( const struct is_window_hung_request
*req
)
2821 fprintf( stderr
, " win=%08x", req
->win
);
2824 static void dump_is_window_hung_reply( const struct is_window_hung_reply
*req
)
2826 fprintf( stderr
, " is_hung=%d", req
->is_hung
);
2829 static void dump_get_serial_info_request( const struct get_serial_info_request
*req
)
2831 fprintf( stderr
, " handle=%04x", req
->handle
);
2832 fprintf( stderr
, ", flags=%d", req
->flags
);
2835 static void dump_get_serial_info_reply( const struct get_serial_info_reply
*req
)
2837 fprintf( stderr
, " readinterval=%08x", req
->readinterval
);
2838 fprintf( stderr
, ", readconst=%08x", req
->readconst
);
2839 fprintf( stderr
, ", readmult=%08x", req
->readmult
);
2840 fprintf( stderr
, ", writeconst=%08x", req
->writeconst
);
2841 fprintf( stderr
, ", writemult=%08x", req
->writemult
);
2842 fprintf( stderr
, ", eventmask=%08x", req
->eventmask
);
2843 fprintf( stderr
, ", cookie=%08x", req
->cookie
);
2844 fprintf( stderr
, ", pending_write=%08x", req
->pending_write
);
2847 static void dump_set_serial_info_request( const struct set_serial_info_request
*req
)
2849 fprintf( stderr
, " handle=%04x", req
->handle
);
2850 fprintf( stderr
, ", flags=%d", req
->flags
);
2851 fprintf( stderr
, ", readinterval=%08x", req
->readinterval
);
2852 fprintf( stderr
, ", readconst=%08x", req
->readconst
);
2853 fprintf( stderr
, ", readmult=%08x", req
->readmult
);
2854 fprintf( stderr
, ", writeconst=%08x", req
->writeconst
);
2855 fprintf( stderr
, ", writemult=%08x", req
->writemult
);
2856 fprintf( stderr
, ", eventmask=%08x", req
->eventmask
);
2859 static void dump_register_async_request( const struct register_async_request
*req
)
2861 fprintf( stderr
, " type=%d", req
->type
);
2862 dump_async_data( ", async=", &req
->async
);
2863 fprintf( stderr
, ", count=%d", req
->count
);
2866 static void dump_cancel_async_request( const struct cancel_async_request
*req
)
2868 fprintf( stderr
, " handle=%04x", req
->handle
);
2869 dump_uint64( ", iosb=", &req
->iosb
);
2870 fprintf( stderr
, ", only_thread=%d", req
->only_thread
);
2873 static void dump_read_request( const struct read_request
*req
)
2875 fprintf( stderr
, " blocking=%d", req
->blocking
);
2876 dump_async_data( ", async=", &req
->async
);
2877 dump_uint64( ", pos=", &req
->pos
);
2880 static void dump_read_reply( const struct read_reply
*req
)
2882 fprintf( stderr
, " wait=%04x", req
->wait
);
2883 fprintf( stderr
, ", options=%08x", req
->options
);
2884 dump_varargs_bytes( ", data=", cur_size
);
2887 static void dump_write_request( const struct write_request
*req
)
2889 fprintf( stderr
, " blocking=%d", req
->blocking
);
2890 dump_async_data( ", async=", &req
->async
);
2891 dump_uint64( ", pos=", &req
->pos
);
2892 dump_varargs_bytes( ", data=", cur_size
);
2895 static void dump_write_reply( const struct write_reply
*req
)
2897 fprintf( stderr
, " wait=%04x", req
->wait
);
2898 fprintf( stderr
, ", options=%08x", req
->options
);
2899 fprintf( stderr
, ", size=%u", req
->size
);
2902 static void dump_ioctl_request( const struct ioctl_request
*req
)
2904 dump_ioctl_code( " code=", &req
->code
);
2905 dump_async_data( ", async=", &req
->async
);
2906 fprintf( stderr
, ", blocking=%d", req
->blocking
);
2907 dump_varargs_bytes( ", in_data=", cur_size
);
2910 static void dump_ioctl_reply( const struct ioctl_reply
*req
)
2912 fprintf( stderr
, " wait=%04x", req
->wait
);
2913 fprintf( stderr
, ", options=%08x", req
->options
);
2914 dump_varargs_bytes( ", out_data=", cur_size
);
2917 static void dump_set_irp_result_request( const struct set_irp_result_request
*req
)
2919 fprintf( stderr
, " handle=%04x", req
->handle
);
2920 fprintf( stderr
, ", status=%08x", req
->status
);
2921 fprintf( stderr
, ", size=%u", req
->size
);
2922 dump_uint64( ", file_ptr=", &req
->file_ptr
);
2923 dump_varargs_bytes( ", data=", cur_size
);
2926 static void dump_get_irp_result_request( const struct get_irp_result_request
*req
)
2928 fprintf( stderr
, " handle=%04x", req
->handle
);
2929 dump_uint64( ", user_arg=", &req
->user_arg
);
2932 static void dump_get_irp_result_reply( const struct get_irp_result_reply
*req
)
2934 fprintf( stderr
, " size=%u", req
->size
);
2935 dump_varargs_bytes( ", out_data=", cur_size
);
2938 static void dump_create_named_pipe_request( const struct create_named_pipe_request
*req
)
2940 fprintf( stderr
, " access=%08x", req
->access
);
2941 fprintf( stderr
, ", options=%08x", req
->options
);
2942 fprintf( stderr
, ", sharing=%08x", req
->sharing
);
2943 fprintf( stderr
, ", maxinstances=%08x", req
->maxinstances
);
2944 fprintf( stderr
, ", outsize=%08x", req
->outsize
);
2945 fprintf( stderr
, ", insize=%08x", req
->insize
);
2946 dump_timeout( ", timeout=", &req
->timeout
);
2947 fprintf( stderr
, ", flags=%08x", req
->flags
);
2948 dump_varargs_object_attributes( ", objattr=", cur_size
);
2951 static void dump_create_named_pipe_reply( const struct create_named_pipe_reply
*req
)
2953 fprintf( stderr
, " handle=%04x", req
->handle
);
2956 static void dump_get_named_pipe_info_request( const struct get_named_pipe_info_request
*req
)
2958 fprintf( stderr
, " handle=%04x", req
->handle
);
2961 static void dump_get_named_pipe_info_reply( const struct get_named_pipe_info_reply
*req
)
2963 fprintf( stderr
, " flags=%08x", req
->flags
);
2964 fprintf( stderr
, ", sharing=%08x", req
->sharing
);
2965 fprintf( stderr
, ", maxinstances=%08x", req
->maxinstances
);
2966 fprintf( stderr
, ", instances=%08x", req
->instances
);
2967 fprintf( stderr
, ", outsize=%08x", req
->outsize
);
2968 fprintf( stderr
, ", insize=%08x", req
->insize
);
2971 static void dump_set_named_pipe_info_request( const struct set_named_pipe_info_request
*req
)
2973 fprintf( stderr
, " handle=%04x", req
->handle
);
2974 fprintf( stderr
, ", flags=%08x", req
->flags
);
2977 static void dump_create_window_request( const struct create_window_request
*req
)
2979 fprintf( stderr
, " parent=%08x", req
->parent
);
2980 fprintf( stderr
, ", owner=%08x", req
->owner
);
2981 fprintf( stderr
, ", atom=%04x", req
->atom
);
2982 dump_uint64( ", instance=", &req
->instance
);
2983 dump_varargs_unicode_str( ", class=", cur_size
);
2986 static void dump_create_window_reply( const struct create_window_reply
*req
)
2988 fprintf( stderr
, " handle=%08x", req
->handle
);
2989 fprintf( stderr
, ", parent=%08x", req
->parent
);
2990 fprintf( stderr
, ", owner=%08x", req
->owner
);
2991 fprintf( stderr
, ", extra=%d", req
->extra
);
2992 dump_uint64( ", class_ptr=", &req
->class_ptr
);
2995 static void dump_destroy_window_request( const struct destroy_window_request
*req
)
2997 fprintf( stderr
, " handle=%08x", req
->handle
);
3000 static void dump_get_desktop_window_request( const struct get_desktop_window_request
*req
)
3002 fprintf( stderr
, " force=%d", req
->force
);
3005 static void dump_get_desktop_window_reply( const struct get_desktop_window_reply
*req
)
3007 fprintf( stderr
, " top_window=%08x", req
->top_window
);
3008 fprintf( stderr
, ", msg_window=%08x", req
->msg_window
);
3011 static void dump_set_window_owner_request( const struct set_window_owner_request
*req
)
3013 fprintf( stderr
, " handle=%08x", req
->handle
);
3014 fprintf( stderr
, ", owner=%08x", req
->owner
);
3017 static void dump_set_window_owner_reply( const struct set_window_owner_reply
*req
)
3019 fprintf( stderr
, " full_owner=%08x", req
->full_owner
);
3020 fprintf( stderr
, ", prev_owner=%08x", req
->prev_owner
);
3023 static void dump_get_window_info_request( const struct get_window_info_request
*req
)
3025 fprintf( stderr
, " handle=%08x", req
->handle
);
3028 static void dump_get_window_info_reply( const struct get_window_info_reply
*req
)
3030 fprintf( stderr
, " full_handle=%08x", req
->full_handle
);
3031 fprintf( stderr
, ", last_active=%08x", req
->last_active
);
3032 fprintf( stderr
, ", pid=%04x", req
->pid
);
3033 fprintf( stderr
, ", tid=%04x", req
->tid
);
3034 fprintf( stderr
, ", atom=%04x", req
->atom
);
3035 fprintf( stderr
, ", is_unicode=%d", req
->is_unicode
);
3038 static void dump_set_window_info_request( const struct set_window_info_request
*req
)
3040 fprintf( stderr
, " flags=%04x", req
->flags
);
3041 fprintf( stderr
, ", is_unicode=%d", req
->is_unicode
);
3042 fprintf( stderr
, ", handle=%08x", req
->handle
);
3043 fprintf( stderr
, ", style=%08x", req
->style
);
3044 fprintf( stderr
, ", ex_style=%08x", req
->ex_style
);
3045 fprintf( stderr
, ", id=%08x", req
->id
);
3046 dump_uint64( ", instance=", &req
->instance
);
3047 dump_uint64( ", user_data=", &req
->user_data
);
3048 fprintf( stderr
, ", extra_offset=%d", req
->extra_offset
);
3049 fprintf( stderr
, ", extra_size=%u", req
->extra_size
);
3050 dump_uint64( ", extra_value=", &req
->extra_value
);
3053 static void dump_set_window_info_reply( const struct set_window_info_reply
*req
)
3055 fprintf( stderr
, " old_style=%08x", req
->old_style
);
3056 fprintf( stderr
, ", old_ex_style=%08x", req
->old_ex_style
);
3057 dump_uint64( ", old_instance=", &req
->old_instance
);
3058 dump_uint64( ", old_user_data=", &req
->old_user_data
);
3059 dump_uint64( ", old_extra_value=", &req
->old_extra_value
);
3060 fprintf( stderr
, ", old_id=%08x", req
->old_id
);
3063 static void dump_set_parent_request( const struct set_parent_request
*req
)
3065 fprintf( stderr
, " handle=%08x", req
->handle
);
3066 fprintf( stderr
, ", parent=%08x", req
->parent
);
3069 static void dump_set_parent_reply( const struct set_parent_reply
*req
)
3071 fprintf( stderr
, " old_parent=%08x", req
->old_parent
);
3072 fprintf( stderr
, ", full_parent=%08x", req
->full_parent
);
3075 static void dump_get_window_parents_request( const struct get_window_parents_request
*req
)
3077 fprintf( stderr
, " handle=%08x", req
->handle
);
3080 static void dump_get_window_parents_reply( const struct get_window_parents_reply
*req
)
3082 fprintf( stderr
, " count=%d", req
->count
);
3083 dump_varargs_user_handles( ", parents=", cur_size
);
3086 static void dump_get_window_children_request( const struct get_window_children_request
*req
)
3088 fprintf( stderr
, " desktop=%04x", req
->desktop
);
3089 fprintf( stderr
, ", parent=%08x", req
->parent
);
3090 fprintf( stderr
, ", atom=%04x", req
->atom
);
3091 fprintf( stderr
, ", tid=%04x", req
->tid
);
3092 dump_varargs_unicode_str( ", class=", cur_size
);
3095 static void dump_get_window_children_reply( const struct get_window_children_reply
*req
)
3097 fprintf( stderr
, " count=%d", req
->count
);
3098 dump_varargs_user_handles( ", children=", cur_size
);
3101 static void dump_get_window_children_from_point_request( const struct get_window_children_from_point_request
*req
)
3103 fprintf( stderr
, " parent=%08x", req
->parent
);
3104 fprintf( stderr
, ", x=%d", req
->x
);
3105 fprintf( stderr
, ", y=%d", req
->y
);
3108 static void dump_get_window_children_from_point_reply( const struct get_window_children_from_point_reply
*req
)
3110 fprintf( stderr
, " count=%d", req
->count
);
3111 dump_varargs_user_handles( ", children=", cur_size
);
3114 static void dump_get_window_tree_request( const struct get_window_tree_request
*req
)
3116 fprintf( stderr
, " handle=%08x", req
->handle
);
3119 static void dump_get_window_tree_reply( const struct get_window_tree_reply
*req
)
3121 fprintf( stderr
, " parent=%08x", req
->parent
);
3122 fprintf( stderr
, ", owner=%08x", req
->owner
);
3123 fprintf( stderr
, ", next_sibling=%08x", req
->next_sibling
);
3124 fprintf( stderr
, ", prev_sibling=%08x", req
->prev_sibling
);
3125 fprintf( stderr
, ", first_sibling=%08x", req
->first_sibling
);
3126 fprintf( stderr
, ", last_sibling=%08x", req
->last_sibling
);
3127 fprintf( stderr
, ", first_child=%08x", req
->first_child
);
3128 fprintf( stderr
, ", last_child=%08x", req
->last_child
);
3131 static void dump_set_window_pos_request( const struct set_window_pos_request
*req
)
3133 fprintf( stderr
, " swp_flags=%04x", req
->swp_flags
);
3134 fprintf( stderr
, ", paint_flags=%04x", req
->paint_flags
);
3135 fprintf( stderr
, ", handle=%08x", req
->handle
);
3136 fprintf( stderr
, ", previous=%08x", req
->previous
);
3137 dump_rectangle( ", window=", &req
->window
);
3138 dump_rectangle( ", client=", &req
->client
);
3139 dump_varargs_rectangles( ", valid=", cur_size
);
3142 static void dump_set_window_pos_reply( const struct set_window_pos_reply
*req
)
3144 fprintf( stderr
, " new_style=%08x", req
->new_style
);
3145 fprintf( stderr
, ", new_ex_style=%08x", req
->new_ex_style
);
3146 fprintf( stderr
, ", surface_win=%08x", req
->surface_win
);
3149 static void dump_get_window_rectangles_request( const struct get_window_rectangles_request
*req
)
3151 fprintf( stderr
, " handle=%08x", req
->handle
);
3152 fprintf( stderr
, ", relative=%d", req
->relative
);
3155 static void dump_get_window_rectangles_reply( const struct get_window_rectangles_reply
*req
)
3157 dump_rectangle( " window=", &req
->window
);
3158 dump_rectangle( ", visible=", &req
->visible
);
3159 dump_rectangle( ", client=", &req
->client
);
3162 static void dump_get_window_text_request( const struct get_window_text_request
*req
)
3164 fprintf( stderr
, " handle=%08x", req
->handle
);
3167 static void dump_get_window_text_reply( const struct get_window_text_reply
*req
)
3169 dump_varargs_unicode_str( " text=", cur_size
);
3172 static void dump_set_window_text_request( const struct set_window_text_request
*req
)
3174 fprintf( stderr
, " handle=%08x", req
->handle
);
3175 dump_varargs_unicode_str( ", text=", cur_size
);
3178 static void dump_get_windows_offset_request( const struct get_windows_offset_request
*req
)
3180 fprintf( stderr
, " from=%08x", req
->from
);
3181 fprintf( stderr
, ", to=%08x", req
->to
);
3184 static void dump_get_windows_offset_reply( const struct get_windows_offset_reply
*req
)
3186 fprintf( stderr
, " x=%d", req
->x
);
3187 fprintf( stderr
, ", y=%d", req
->y
);
3188 fprintf( stderr
, ", mirror=%d", req
->mirror
);
3191 static void dump_get_visible_region_request( const struct get_visible_region_request
*req
)
3193 fprintf( stderr
, " window=%08x", req
->window
);
3194 fprintf( stderr
, ", flags=%08x", req
->flags
);
3197 static void dump_get_visible_region_reply( const struct get_visible_region_reply
*req
)
3199 fprintf( stderr
, " top_win=%08x", req
->top_win
);
3200 dump_rectangle( ", top_rect=", &req
->top_rect
);
3201 dump_rectangle( ", win_rect=", &req
->win_rect
);
3202 fprintf( stderr
, ", paint_flags=%08x", req
->paint_flags
);
3203 fprintf( stderr
, ", total_size=%u", req
->total_size
);
3204 dump_varargs_rectangles( ", region=", cur_size
);
3207 static void dump_get_surface_region_request( const struct get_surface_region_request
*req
)
3209 fprintf( stderr
, " window=%08x", req
->window
);
3212 static void dump_get_surface_region_reply( const struct get_surface_region_reply
*req
)
3214 dump_rectangle( " visible_rect=", &req
->visible_rect
);
3215 fprintf( stderr
, ", total_size=%u", req
->total_size
);
3216 dump_varargs_rectangles( ", region=", cur_size
);
3219 static void dump_get_window_region_request( const struct get_window_region_request
*req
)
3221 fprintf( stderr
, " window=%08x", req
->window
);
3224 static void dump_get_window_region_reply( const struct get_window_region_reply
*req
)
3226 fprintf( stderr
, " total_size=%u", req
->total_size
);
3227 dump_varargs_rectangles( ", region=", cur_size
);
3230 static void dump_set_window_region_request( const struct set_window_region_request
*req
)
3232 fprintf( stderr
, " window=%08x", req
->window
);
3233 fprintf( stderr
, ", redraw=%d", req
->redraw
);
3234 dump_varargs_rectangles( ", region=", cur_size
);
3237 static void dump_get_update_region_request( const struct get_update_region_request
*req
)
3239 fprintf( stderr
, " window=%08x", req
->window
);
3240 fprintf( stderr
, ", from_child=%08x", req
->from_child
);
3241 fprintf( stderr
, ", flags=%08x", req
->flags
);
3244 static void dump_get_update_region_reply( const struct get_update_region_reply
*req
)
3246 fprintf( stderr
, " child=%08x", req
->child
);
3247 fprintf( stderr
, ", flags=%08x", req
->flags
);
3248 fprintf( stderr
, ", total_size=%u", req
->total_size
);
3249 dump_varargs_rectangles( ", region=", cur_size
);
3252 static void dump_update_window_zorder_request( const struct update_window_zorder_request
*req
)
3254 fprintf( stderr
, " window=%08x", req
->window
);
3255 dump_rectangle( ", rect=", &req
->rect
);
3258 static void dump_redraw_window_request( const struct redraw_window_request
*req
)
3260 fprintf( stderr
, " window=%08x", req
->window
);
3261 fprintf( stderr
, ", flags=%08x", req
->flags
);
3262 dump_varargs_rectangles( ", region=", cur_size
);
3265 static void dump_set_window_property_request( const struct set_window_property_request
*req
)
3267 fprintf( stderr
, " window=%08x", req
->window
);
3268 dump_uint64( ", data=", &req
->data
);
3269 fprintf( stderr
, ", atom=%04x", req
->atom
);
3270 dump_varargs_unicode_str( ", name=", cur_size
);
3273 static void dump_remove_window_property_request( const struct remove_window_property_request
*req
)
3275 fprintf( stderr
, " window=%08x", req
->window
);
3276 fprintf( stderr
, ", atom=%04x", req
->atom
);
3277 dump_varargs_unicode_str( ", name=", cur_size
);
3280 static void dump_remove_window_property_reply( const struct remove_window_property_reply
*req
)
3282 dump_uint64( " data=", &req
->data
);
3285 static void dump_get_window_property_request( const struct get_window_property_request
*req
)
3287 fprintf( stderr
, " window=%08x", req
->window
);
3288 fprintf( stderr
, ", atom=%04x", req
->atom
);
3289 dump_varargs_unicode_str( ", name=", cur_size
);
3292 static void dump_get_window_property_reply( const struct get_window_property_reply
*req
)
3294 dump_uint64( " data=", &req
->data
);
3297 static void dump_get_window_properties_request( const struct get_window_properties_request
*req
)
3299 fprintf( stderr
, " window=%08x", req
->window
);
3302 static void dump_get_window_properties_reply( const struct get_window_properties_reply
*req
)
3304 fprintf( stderr
, " total=%d", req
->total
);
3305 dump_varargs_properties( ", props=", cur_size
);
3308 static void dump_create_winstation_request( const struct create_winstation_request
*req
)
3310 fprintf( stderr
, " flags=%08x", req
->flags
);
3311 fprintf( stderr
, ", access=%08x", req
->access
);
3312 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3313 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
3314 dump_varargs_unicode_str( ", name=", cur_size
);
3317 static void dump_create_winstation_reply( const struct create_winstation_reply
*req
)
3319 fprintf( stderr
, " handle=%04x", req
->handle
);
3322 static void dump_open_winstation_request( const struct open_winstation_request
*req
)
3324 fprintf( stderr
, " access=%08x", req
->access
);
3325 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3326 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
3327 dump_varargs_unicode_str( ", name=", cur_size
);
3330 static void dump_open_winstation_reply( const struct open_winstation_reply
*req
)
3332 fprintf( stderr
, " handle=%04x", req
->handle
);
3335 static void dump_close_winstation_request( const struct close_winstation_request
*req
)
3337 fprintf( stderr
, " handle=%04x", req
->handle
);
3340 static void dump_get_process_winstation_request( const struct get_process_winstation_request
*req
)
3344 static void dump_get_process_winstation_reply( const struct get_process_winstation_reply
*req
)
3346 fprintf( stderr
, " handle=%04x", req
->handle
);
3349 static void dump_set_process_winstation_request( const struct set_process_winstation_request
*req
)
3351 fprintf( stderr
, " handle=%04x", req
->handle
);
3354 static void dump_enum_winstation_request( const struct enum_winstation_request
*req
)
3356 fprintf( stderr
, " index=%08x", req
->index
);
3359 static void dump_enum_winstation_reply( const struct enum_winstation_reply
*req
)
3361 fprintf( stderr
, " next=%08x", req
->next
);
3362 dump_varargs_unicode_str( ", name=", cur_size
);
3365 static void dump_create_desktop_request( const struct create_desktop_request
*req
)
3367 fprintf( stderr
, " flags=%08x", req
->flags
);
3368 fprintf( stderr
, ", access=%08x", req
->access
);
3369 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3370 dump_varargs_unicode_str( ", name=", cur_size
);
3373 static void dump_create_desktop_reply( const struct create_desktop_reply
*req
)
3375 fprintf( stderr
, " handle=%04x", req
->handle
);
3378 static void dump_open_desktop_request( const struct open_desktop_request
*req
)
3380 fprintf( stderr
, " winsta=%04x", req
->winsta
);
3381 fprintf( stderr
, ", flags=%08x", req
->flags
);
3382 fprintf( stderr
, ", access=%08x", req
->access
);
3383 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3384 dump_varargs_unicode_str( ", name=", cur_size
);
3387 static void dump_open_desktop_reply( const struct open_desktop_reply
*req
)
3389 fprintf( stderr
, " handle=%04x", req
->handle
);
3392 static void dump_open_input_desktop_request( const struct open_input_desktop_request
*req
)
3394 fprintf( stderr
, " flags=%08x", req
->flags
);
3395 fprintf( stderr
, ", access=%08x", req
->access
);
3396 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3399 static void dump_open_input_desktop_reply( const struct open_input_desktop_reply
*req
)
3401 fprintf( stderr
, " handle=%04x", req
->handle
);
3404 static void dump_close_desktop_request( const struct close_desktop_request
*req
)
3406 fprintf( stderr
, " handle=%04x", req
->handle
);
3409 static void dump_get_thread_desktop_request( const struct get_thread_desktop_request
*req
)
3411 fprintf( stderr
, " tid=%04x", req
->tid
);
3414 static void dump_get_thread_desktop_reply( const struct get_thread_desktop_reply
*req
)
3416 fprintf( stderr
, " handle=%04x", req
->handle
);
3419 static void dump_set_thread_desktop_request( const struct set_thread_desktop_request
*req
)
3421 fprintf( stderr
, " handle=%04x", req
->handle
);
3424 static void dump_enum_desktop_request( const struct enum_desktop_request
*req
)
3426 fprintf( stderr
, " winstation=%04x", req
->winstation
);
3427 fprintf( stderr
, ", index=%08x", req
->index
);
3430 static void dump_enum_desktop_reply( const struct enum_desktop_reply
*req
)
3432 fprintf( stderr
, " next=%08x", req
->next
);
3433 dump_varargs_unicode_str( ", name=", cur_size
);
3436 static void dump_set_user_object_info_request( const struct set_user_object_info_request
*req
)
3438 fprintf( stderr
, " handle=%04x", req
->handle
);
3439 fprintf( stderr
, ", flags=%08x", req
->flags
);
3440 fprintf( stderr
, ", obj_flags=%08x", req
->obj_flags
);
3443 static void dump_set_user_object_info_reply( const struct set_user_object_info_reply
*req
)
3445 fprintf( stderr
, " is_desktop=%d", req
->is_desktop
);
3446 fprintf( stderr
, ", old_obj_flags=%08x", req
->old_obj_flags
);
3447 dump_varargs_unicode_str( ", name=", cur_size
);
3450 static void dump_register_hotkey_request( const struct register_hotkey_request
*req
)
3452 fprintf( stderr
, " window=%08x", req
->window
);
3453 fprintf( stderr
, ", id=%d", req
->id
);
3454 fprintf( stderr
, ", flags=%08x", req
->flags
);
3455 fprintf( stderr
, ", vkey=%08x", req
->vkey
);
3458 static void dump_register_hotkey_reply( const struct register_hotkey_reply
*req
)
3460 fprintf( stderr
, " replaced=%d", req
->replaced
);
3461 fprintf( stderr
, ", flags=%08x", req
->flags
);
3462 fprintf( stderr
, ", vkey=%08x", req
->vkey
);
3465 static void dump_unregister_hotkey_request( const struct unregister_hotkey_request
*req
)
3467 fprintf( stderr
, " window=%08x", req
->window
);
3468 fprintf( stderr
, ", id=%d", req
->id
);
3471 static void dump_unregister_hotkey_reply( const struct unregister_hotkey_reply
*req
)
3473 fprintf( stderr
, " flags=%08x", req
->flags
);
3474 fprintf( stderr
, ", vkey=%08x", req
->vkey
);
3477 static void dump_attach_thread_input_request( const struct attach_thread_input_request
*req
)
3479 fprintf( stderr
, " tid_from=%04x", req
->tid_from
);
3480 fprintf( stderr
, ", tid_to=%04x", req
->tid_to
);
3481 fprintf( stderr
, ", attach=%d", req
->attach
);
3484 static void dump_get_thread_input_request( const struct get_thread_input_request
*req
)
3486 fprintf( stderr
, " tid=%04x", req
->tid
);
3489 static void dump_get_thread_input_reply( const struct get_thread_input_reply
*req
)
3491 fprintf( stderr
, " focus=%08x", req
->focus
);
3492 fprintf( stderr
, ", capture=%08x", req
->capture
);
3493 fprintf( stderr
, ", active=%08x", req
->active
);
3494 fprintf( stderr
, ", foreground=%08x", req
->foreground
);
3495 fprintf( stderr
, ", menu_owner=%08x", req
->menu_owner
);
3496 fprintf( stderr
, ", move_size=%08x", req
->move_size
);
3497 fprintf( stderr
, ", caret=%08x", req
->caret
);
3498 fprintf( stderr
, ", cursor=%08x", req
->cursor
);
3499 fprintf( stderr
, ", show_count=%d", req
->show_count
);
3500 dump_rectangle( ", rect=", &req
->rect
);
3503 static void dump_get_last_input_time_request( const struct get_last_input_time_request
*req
)
3507 static void dump_get_last_input_time_reply( const struct get_last_input_time_reply
*req
)
3509 fprintf( stderr
, " time=%08x", req
->time
);
3512 static void dump_get_key_state_request( const struct get_key_state_request
*req
)
3514 fprintf( stderr
, " tid=%04x", req
->tid
);
3515 fprintf( stderr
, ", key=%d", req
->key
);
3518 static void dump_get_key_state_reply( const struct get_key_state_reply
*req
)
3520 fprintf( stderr
, " state=%02x", req
->state
);
3521 dump_varargs_bytes( ", keystate=", cur_size
);
3524 static void dump_set_key_state_request( const struct set_key_state_request
*req
)
3526 fprintf( stderr
, " tid=%04x", req
->tid
);
3527 fprintf( stderr
, ", async=%d", req
->async
);
3528 dump_varargs_bytes( ", keystate=", cur_size
);
3531 static void dump_set_foreground_window_request( const struct set_foreground_window_request
*req
)
3533 fprintf( stderr
, " handle=%08x", req
->handle
);
3536 static void dump_set_foreground_window_reply( const struct set_foreground_window_reply
*req
)
3538 fprintf( stderr
, " previous=%08x", req
->previous
);
3539 fprintf( stderr
, ", send_msg_old=%d", req
->send_msg_old
);
3540 fprintf( stderr
, ", send_msg_new=%d", req
->send_msg_new
);
3543 static void dump_set_focus_window_request( const struct set_focus_window_request
*req
)
3545 fprintf( stderr
, " handle=%08x", req
->handle
);
3548 static void dump_set_focus_window_reply( const struct set_focus_window_reply
*req
)
3550 fprintf( stderr
, " previous=%08x", req
->previous
);
3553 static void dump_set_active_window_request( const struct set_active_window_request
*req
)
3555 fprintf( stderr
, " handle=%08x", req
->handle
);
3558 static void dump_set_active_window_reply( const struct set_active_window_reply
*req
)
3560 fprintf( stderr
, " previous=%08x", req
->previous
);
3563 static void dump_set_capture_window_request( const struct set_capture_window_request
*req
)
3565 fprintf( stderr
, " handle=%08x", req
->handle
);
3566 fprintf( stderr
, ", flags=%08x", req
->flags
);
3569 static void dump_set_capture_window_reply( const struct set_capture_window_reply
*req
)
3571 fprintf( stderr
, " previous=%08x", req
->previous
);
3572 fprintf( stderr
, ", full_handle=%08x", req
->full_handle
);
3575 static void dump_set_caret_window_request( const struct set_caret_window_request
*req
)
3577 fprintf( stderr
, " handle=%08x", req
->handle
);
3578 fprintf( stderr
, ", width=%d", req
->width
);
3579 fprintf( stderr
, ", height=%d", req
->height
);
3582 static void dump_set_caret_window_reply( const struct set_caret_window_reply
*req
)
3584 fprintf( stderr
, " previous=%08x", req
->previous
);
3585 dump_rectangle( ", old_rect=", &req
->old_rect
);
3586 fprintf( stderr
, ", old_hide=%d", req
->old_hide
);
3587 fprintf( stderr
, ", old_state=%d", req
->old_state
);
3590 static void dump_set_caret_info_request( const struct set_caret_info_request
*req
)
3592 fprintf( stderr
, " flags=%08x", req
->flags
);
3593 fprintf( stderr
, ", handle=%08x", req
->handle
);
3594 fprintf( stderr
, ", x=%d", req
->x
);
3595 fprintf( stderr
, ", y=%d", req
->y
);
3596 fprintf( stderr
, ", hide=%d", req
->hide
);
3597 fprintf( stderr
, ", state=%d", req
->state
);
3600 static void dump_set_caret_info_reply( const struct set_caret_info_reply
*req
)
3602 fprintf( stderr
, " full_handle=%08x", req
->full_handle
);
3603 dump_rectangle( ", old_rect=", &req
->old_rect
);
3604 fprintf( stderr
, ", old_hide=%d", req
->old_hide
);
3605 fprintf( stderr
, ", old_state=%d", req
->old_state
);
3608 static void dump_set_hook_request( const struct set_hook_request
*req
)
3610 fprintf( stderr
, " id=%d", req
->id
);
3611 fprintf( stderr
, ", pid=%04x", req
->pid
);
3612 fprintf( stderr
, ", tid=%04x", req
->tid
);
3613 fprintf( stderr
, ", event_min=%d", req
->event_min
);
3614 fprintf( stderr
, ", event_max=%d", req
->event_max
);
3615 dump_uint64( ", proc=", &req
->proc
);
3616 fprintf( stderr
, ", flags=%d", req
->flags
);
3617 fprintf( stderr
, ", unicode=%d", req
->unicode
);
3618 dump_varargs_unicode_str( ", module=", cur_size
);
3621 static void dump_set_hook_reply( const struct set_hook_reply
*req
)
3623 fprintf( stderr
, " handle=%08x", req
->handle
);
3624 fprintf( stderr
, ", active_hooks=%08x", req
->active_hooks
);
3627 static void dump_remove_hook_request( const struct remove_hook_request
*req
)
3629 fprintf( stderr
, " handle=%08x", req
->handle
);
3630 dump_uint64( ", proc=", &req
->proc
);
3631 fprintf( stderr
, ", id=%d", req
->id
);
3634 static void dump_remove_hook_reply( const struct remove_hook_reply
*req
)
3636 fprintf( stderr
, " active_hooks=%08x", req
->active_hooks
);
3639 static void dump_start_hook_chain_request( const struct start_hook_chain_request
*req
)
3641 fprintf( stderr
, " id=%d", req
->id
);
3642 fprintf( stderr
, ", event=%d", req
->event
);
3643 fprintf( stderr
, ", window=%08x", req
->window
);
3644 fprintf( stderr
, ", object_id=%d", req
->object_id
);
3645 fprintf( stderr
, ", child_id=%d", req
->child_id
);
3648 static void dump_start_hook_chain_reply( const struct start_hook_chain_reply
*req
)
3650 fprintf( stderr
, " handle=%08x", req
->handle
);
3651 fprintf( stderr
, ", pid=%04x", req
->pid
);
3652 fprintf( stderr
, ", tid=%04x", req
->tid
);
3653 fprintf( stderr
, ", unicode=%d", req
->unicode
);
3654 dump_uint64( ", proc=", &req
->proc
);
3655 fprintf( stderr
, ", active_hooks=%08x", req
->active_hooks
);
3656 dump_varargs_unicode_str( ", module=", cur_size
);
3659 static void dump_finish_hook_chain_request( const struct finish_hook_chain_request
*req
)
3661 fprintf( stderr
, " id=%d", req
->id
);
3664 static void dump_get_hook_info_request( const struct get_hook_info_request
*req
)
3666 fprintf( stderr
, " handle=%08x", req
->handle
);
3667 fprintf( stderr
, ", get_next=%d", req
->get_next
);
3668 fprintf( stderr
, ", event=%d", req
->event
);
3669 fprintf( stderr
, ", window=%08x", req
->window
);
3670 fprintf( stderr
, ", object_id=%d", req
->object_id
);
3671 fprintf( stderr
, ", child_id=%d", req
->child_id
);
3674 static void dump_get_hook_info_reply( const struct get_hook_info_reply
*req
)
3676 fprintf( stderr
, " handle=%08x", req
->handle
);
3677 fprintf( stderr
, ", id=%d", req
->id
);
3678 fprintf( stderr
, ", pid=%04x", req
->pid
);
3679 fprintf( stderr
, ", tid=%04x", req
->tid
);
3680 dump_uint64( ", proc=", &req
->proc
);
3681 fprintf( stderr
, ", unicode=%d", req
->unicode
);
3682 dump_varargs_unicode_str( ", module=", cur_size
);
3685 static void dump_create_class_request( const struct create_class_request
*req
)
3687 fprintf( stderr
, " local=%d", req
->local
);
3688 fprintf( stderr
, ", atom=%04x", req
->atom
);
3689 fprintf( stderr
, ", style=%08x", req
->style
);
3690 dump_uint64( ", instance=", &req
->instance
);
3691 fprintf( stderr
, ", extra=%d", req
->extra
);
3692 fprintf( stderr
, ", win_extra=%d", req
->win_extra
);
3693 dump_uint64( ", client_ptr=", &req
->client_ptr
);
3694 dump_varargs_unicode_str( ", name=", cur_size
);
3697 static void dump_create_class_reply( const struct create_class_reply
*req
)
3699 fprintf( stderr
, " atom=%04x", req
->atom
);
3702 static void dump_destroy_class_request( const struct destroy_class_request
*req
)
3704 fprintf( stderr
, " atom=%04x", req
->atom
);
3705 dump_uint64( ", instance=", &req
->instance
);
3706 dump_varargs_unicode_str( ", name=", cur_size
);
3709 static void dump_destroy_class_reply( const struct destroy_class_reply
*req
)
3711 dump_uint64( " client_ptr=", &req
->client_ptr
);
3714 static void dump_set_class_info_request( const struct set_class_info_request
*req
)
3716 fprintf( stderr
, " window=%08x", req
->window
);
3717 fprintf( stderr
, ", flags=%08x", req
->flags
);
3718 fprintf( stderr
, ", atom=%04x", req
->atom
);
3719 fprintf( stderr
, ", style=%08x", req
->style
);
3720 fprintf( stderr
, ", win_extra=%d", req
->win_extra
);
3721 dump_uint64( ", instance=", &req
->instance
);
3722 fprintf( stderr
, ", extra_offset=%d", req
->extra_offset
);
3723 fprintf( stderr
, ", extra_size=%u", req
->extra_size
);
3724 dump_uint64( ", extra_value=", &req
->extra_value
);
3727 static void dump_set_class_info_reply( const struct set_class_info_reply
*req
)
3729 fprintf( stderr
, " old_atom=%04x", req
->old_atom
);
3730 fprintf( stderr
, ", old_style=%08x", req
->old_style
);
3731 fprintf( stderr
, ", old_extra=%d", req
->old_extra
);
3732 fprintf( stderr
, ", old_win_extra=%d", req
->old_win_extra
);
3733 dump_uint64( ", old_instance=", &req
->old_instance
);
3734 dump_uint64( ", old_extra_value=", &req
->old_extra_value
);
3737 static void dump_open_clipboard_request( const struct open_clipboard_request
*req
)
3739 fprintf( stderr
, " window=%08x", req
->window
);
3742 static void dump_open_clipboard_reply( const struct open_clipboard_reply
*req
)
3744 fprintf( stderr
, " owner=%08x", req
->owner
);
3747 static void dump_close_clipboard_request( const struct close_clipboard_request
*req
)
3751 static void dump_close_clipboard_reply( const struct close_clipboard_reply
*req
)
3753 fprintf( stderr
, " viewer=%08x", req
->viewer
);
3754 fprintf( stderr
, ", owner=%08x", req
->owner
);
3757 static void dump_set_clipboard_info_request( const struct set_clipboard_info_request
*req
)
3759 fprintf( stderr
, " flags=%08x", req
->flags
);
3760 fprintf( stderr
, ", owner=%08x", req
->owner
);
3763 static void dump_set_clipboard_info_reply( const struct set_clipboard_info_reply
*req
)
3765 fprintf( stderr
, " flags=%08x", req
->flags
);
3766 fprintf( stderr
, ", old_clipboard=%08x", req
->old_clipboard
);
3767 fprintf( stderr
, ", old_owner=%08x", req
->old_owner
);
3768 fprintf( stderr
, ", old_viewer=%08x", req
->old_viewer
);
3769 fprintf( stderr
, ", seqno=%08x", req
->seqno
);
3772 static void dump_empty_clipboard_request( const struct empty_clipboard_request
*req
)
3776 static void dump_set_clipboard_data_request( const struct set_clipboard_data_request
*req
)
3778 fprintf( stderr
, " format=%08x", req
->format
);
3779 fprintf( stderr
, ", lcid=%08x", req
->lcid
);
3780 dump_varargs_bytes( ", data=", cur_size
);
3783 static void dump_set_clipboard_data_reply( const struct set_clipboard_data_reply
*req
)
3785 fprintf( stderr
, " seqno=%08x", req
->seqno
);
3788 static void dump_get_clipboard_data_request( const struct get_clipboard_data_request
*req
)
3790 fprintf( stderr
, " format=%08x", req
->format
);
3791 fprintf( stderr
, ", cached=%d", req
->cached
);
3792 fprintf( stderr
, ", seqno=%08x", req
->seqno
);
3795 static void dump_get_clipboard_data_reply( const struct get_clipboard_data_reply
*req
)
3797 fprintf( stderr
, " from=%08x", req
->from
);
3798 fprintf( stderr
, ", owner=%08x", req
->owner
);
3799 fprintf( stderr
, ", seqno=%08x", req
->seqno
);
3800 fprintf( stderr
, ", total=%u", req
->total
);
3801 dump_varargs_bytes( ", data=", cur_size
);
3804 static void dump_get_clipboard_formats_request( const struct get_clipboard_formats_request
*req
)
3806 fprintf( stderr
, " format=%08x", req
->format
);
3809 static void dump_get_clipboard_formats_reply( const struct get_clipboard_formats_reply
*req
)
3811 fprintf( stderr
, " count=%08x", req
->count
);
3812 dump_varargs_uints( ", formats=", cur_size
);
3815 static void dump_enum_clipboard_formats_request( const struct enum_clipboard_formats_request
*req
)
3817 fprintf( stderr
, " previous=%08x", req
->previous
);
3820 static void dump_enum_clipboard_formats_reply( const struct enum_clipboard_formats_reply
*req
)
3822 fprintf( stderr
, " format=%08x", req
->format
);
3825 static void dump_release_clipboard_request( const struct release_clipboard_request
*req
)
3827 fprintf( stderr
, " owner=%08x", req
->owner
);
3830 static void dump_release_clipboard_reply( const struct release_clipboard_reply
*req
)
3832 fprintf( stderr
, " viewer=%08x", req
->viewer
);
3833 fprintf( stderr
, ", owner=%08x", req
->owner
);
3836 static void dump_get_clipboard_info_request( const struct get_clipboard_info_request
*req
)
3840 static void dump_get_clipboard_info_reply( const struct get_clipboard_info_reply
*req
)
3842 fprintf( stderr
, " window=%08x", req
->window
);
3843 fprintf( stderr
, ", owner=%08x", req
->owner
);
3844 fprintf( stderr
, ", viewer=%08x", req
->viewer
);
3845 fprintf( stderr
, ", seqno=%08x", req
->seqno
);
3848 static void dump_set_clipboard_viewer_request( const struct set_clipboard_viewer_request
*req
)
3850 fprintf( stderr
, " viewer=%08x", req
->viewer
);
3851 fprintf( stderr
, ", previous=%08x", req
->previous
);
3854 static void dump_set_clipboard_viewer_reply( const struct set_clipboard_viewer_reply
*req
)
3856 fprintf( stderr
, " old_viewer=%08x", req
->old_viewer
);
3857 fprintf( stderr
, ", owner=%08x", req
->owner
);
3860 static void dump_add_clipboard_listener_request( const struct add_clipboard_listener_request
*req
)
3862 fprintf( stderr
, " window=%08x", req
->window
);
3865 static void dump_remove_clipboard_listener_request( const struct remove_clipboard_listener_request
*req
)
3867 fprintf( stderr
, " window=%08x", req
->window
);
3870 static void dump_open_token_request( const struct open_token_request
*req
)
3872 fprintf( stderr
, " handle=%04x", req
->handle
);
3873 fprintf( stderr
, ", access=%08x", req
->access
);
3874 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3875 fprintf( stderr
, ", flags=%08x", req
->flags
);
3878 static void dump_open_token_reply( const struct open_token_reply
*req
)
3880 fprintf( stderr
, " token=%04x", req
->token
);
3883 static void dump_set_global_windows_request( const struct set_global_windows_request
*req
)
3885 fprintf( stderr
, " flags=%08x", req
->flags
);
3886 fprintf( stderr
, ", shell_window=%08x", req
->shell_window
);
3887 fprintf( stderr
, ", shell_listview=%08x", req
->shell_listview
);
3888 fprintf( stderr
, ", progman_window=%08x", req
->progman_window
);
3889 fprintf( stderr
, ", taskman_window=%08x", req
->taskman_window
);
3892 static void dump_set_global_windows_reply( const struct set_global_windows_reply
*req
)
3894 fprintf( stderr
, " old_shell_window=%08x", req
->old_shell_window
);
3895 fprintf( stderr
, ", old_shell_listview=%08x", req
->old_shell_listview
);
3896 fprintf( stderr
, ", old_progman_window=%08x", req
->old_progman_window
);
3897 fprintf( stderr
, ", old_taskman_window=%08x", req
->old_taskman_window
);
3900 static void dump_adjust_token_privileges_request( const struct adjust_token_privileges_request
*req
)
3902 fprintf( stderr
, " handle=%04x", req
->handle
);
3903 fprintf( stderr
, ", disable_all=%d", req
->disable_all
);
3904 fprintf( stderr
, ", get_modified_state=%d", req
->get_modified_state
);
3905 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size
);
3908 static void dump_adjust_token_privileges_reply( const struct adjust_token_privileges_reply
*req
)
3910 fprintf( stderr
, " len=%08x", req
->len
);
3911 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size
);
3914 static void dump_get_token_privileges_request( const struct get_token_privileges_request
*req
)
3916 fprintf( stderr
, " handle=%04x", req
->handle
);
3919 static void dump_get_token_privileges_reply( const struct get_token_privileges_reply
*req
)
3921 fprintf( stderr
, " len=%08x", req
->len
);
3922 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size
);
3925 static void dump_check_token_privileges_request( const struct check_token_privileges_request
*req
)
3927 fprintf( stderr
, " handle=%04x", req
->handle
);
3928 fprintf( stderr
, ", all_required=%d", req
->all_required
);
3929 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size
);
3932 static void dump_check_token_privileges_reply( const struct check_token_privileges_reply
*req
)
3934 fprintf( stderr
, " has_privileges=%d", req
->has_privileges
);
3935 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size
);
3938 static void dump_duplicate_token_request( const struct duplicate_token_request
*req
)
3940 fprintf( stderr
, " handle=%04x", req
->handle
);
3941 fprintf( stderr
, ", access=%08x", req
->access
);
3942 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3943 fprintf( stderr
, ", primary=%d", req
->primary
);
3944 fprintf( stderr
, ", impersonation_level=%d", req
->impersonation_level
);
3947 static void dump_duplicate_token_reply( const struct duplicate_token_reply
*req
)
3949 fprintf( stderr
, " new_handle=%04x", req
->new_handle
);
3952 static void dump_access_check_request( const struct access_check_request
*req
)
3954 fprintf( stderr
, " handle=%04x", req
->handle
);
3955 fprintf( stderr
, ", desired_access=%08x", req
->desired_access
);
3956 fprintf( stderr
, ", mapping_read=%08x", req
->mapping_read
);
3957 fprintf( stderr
, ", mapping_write=%08x", req
->mapping_write
);
3958 fprintf( stderr
, ", mapping_execute=%08x", req
->mapping_execute
);
3959 fprintf( stderr
, ", mapping_all=%08x", req
->mapping_all
);
3960 dump_varargs_security_descriptor( ", sd=", cur_size
);
3963 static void dump_access_check_reply( const struct access_check_reply
*req
)
3965 fprintf( stderr
, " access_granted=%08x", req
->access_granted
);
3966 fprintf( stderr
, ", access_status=%08x", req
->access_status
);
3967 fprintf( stderr
, ", privileges_len=%08x", req
->privileges_len
);
3968 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size
);
3971 static void dump_get_token_sid_request( const struct get_token_sid_request
*req
)
3973 fprintf( stderr
, " handle=%04x", req
->handle
);
3974 fprintf( stderr
, ", which_sid=%08x", req
->which_sid
);
3977 static void dump_get_token_sid_reply( const struct get_token_sid_reply
*req
)
3979 fprintf( stderr
, " sid_len=%u", req
->sid_len
);
3980 dump_varargs_SID( ", sid=", cur_size
);
3983 static void dump_get_token_groups_request( const struct get_token_groups_request
*req
)
3985 fprintf( stderr
, " handle=%04x", req
->handle
);
3988 static void dump_get_token_groups_reply( const struct get_token_groups_reply
*req
)
3990 fprintf( stderr
, " user_len=%u", req
->user_len
);
3991 dump_varargs_token_groups( ", user=", cur_size
);
3994 static void dump_get_token_default_dacl_request( const struct get_token_default_dacl_request
*req
)
3996 fprintf( stderr
, " handle=%04x", req
->handle
);
3999 static void dump_get_token_default_dacl_reply( const struct get_token_default_dacl_reply
*req
)
4001 fprintf( stderr
, " acl_len=%u", req
->acl_len
);
4002 dump_varargs_ACL( ", acl=", cur_size
);
4005 static void dump_set_token_default_dacl_request( const struct set_token_default_dacl_request
*req
)
4007 fprintf( stderr
, " handle=%04x", req
->handle
);
4008 dump_varargs_ACL( ", acl=", cur_size
);
4011 static void dump_set_security_object_request( const struct set_security_object_request
*req
)
4013 fprintf( stderr
, " handle=%04x", req
->handle
);
4014 fprintf( stderr
, ", security_info=%08x", req
->security_info
);
4015 dump_varargs_security_descriptor( ", sd=", cur_size
);
4018 static void dump_get_security_object_request( const struct get_security_object_request
*req
)
4020 fprintf( stderr
, " handle=%04x", req
->handle
);
4021 fprintf( stderr
, ", security_info=%08x", req
->security_info
);
4024 static void dump_get_security_object_reply( const struct get_security_object_reply
*req
)
4026 fprintf( stderr
, " sd_len=%08x", req
->sd_len
);
4027 dump_varargs_security_descriptor( ", sd=", cur_size
);
4030 static void dump_get_system_handles_request( const struct get_system_handles_request
*req
)
4034 static void dump_get_system_handles_reply( const struct get_system_handles_reply
*req
)
4036 fprintf( stderr
, " count=%08x", req
->count
);
4037 dump_varargs_handle_infos( ", data=", cur_size
);
4040 static void dump_create_mailslot_request( const struct create_mailslot_request
*req
)
4042 fprintf( stderr
, " access=%08x", req
->access
);
4043 dump_timeout( ", read_timeout=", &req
->read_timeout
);
4044 fprintf( stderr
, ", max_msgsize=%08x", req
->max_msgsize
);
4045 dump_varargs_object_attributes( ", objattr=", cur_size
);
4048 static void dump_create_mailslot_reply( const struct create_mailslot_reply
*req
)
4050 fprintf( stderr
, " handle=%04x", req
->handle
);
4053 static void dump_set_mailslot_info_request( const struct set_mailslot_info_request
*req
)
4055 fprintf( stderr
, " handle=%04x", req
->handle
);
4056 dump_timeout( ", read_timeout=", &req
->read_timeout
);
4057 fprintf( stderr
, ", flags=%08x", req
->flags
);
4060 static void dump_set_mailslot_info_reply( const struct set_mailslot_info_reply
*req
)
4062 dump_timeout( " read_timeout=", &req
->read_timeout
);
4063 fprintf( stderr
, ", max_msgsize=%08x", req
->max_msgsize
);
4066 static void dump_create_directory_request( const struct create_directory_request
*req
)
4068 fprintf( stderr
, " access=%08x", req
->access
);
4069 dump_varargs_object_attributes( ", objattr=", cur_size
);
4072 static void dump_create_directory_reply( const struct create_directory_reply
*req
)
4074 fprintf( stderr
, " handle=%04x", req
->handle
);
4077 static void dump_open_directory_request( const struct open_directory_request
*req
)
4079 fprintf( stderr
, " access=%08x", req
->access
);
4080 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
4081 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
4082 dump_varargs_unicode_str( ", directory_name=", cur_size
);
4085 static void dump_open_directory_reply( const struct open_directory_reply
*req
)
4087 fprintf( stderr
, " handle=%04x", req
->handle
);
4090 static void dump_get_directory_entry_request( const struct get_directory_entry_request
*req
)
4092 fprintf( stderr
, " handle=%04x", req
->handle
);
4093 fprintf( stderr
, ", index=%08x", req
->index
);
4096 static void dump_get_directory_entry_reply( const struct get_directory_entry_reply
*req
)
4098 fprintf( stderr
, " name_len=%u", req
->name_len
);
4099 dump_varargs_unicode_str( ", name=", min(cur_size
,req
->name_len
) );
4100 dump_varargs_unicode_str( ", type=", cur_size
);
4103 static void dump_create_symlink_request( const struct create_symlink_request
*req
)
4105 fprintf( stderr
, " access=%08x", req
->access
);
4106 dump_varargs_object_attributes( ", objattr=", cur_size
);
4107 dump_varargs_unicode_str( ", target_name=", cur_size
);
4110 static void dump_create_symlink_reply( const struct create_symlink_reply
*req
)
4112 fprintf( stderr
, " handle=%04x", req
->handle
);
4115 static void dump_open_symlink_request( const struct open_symlink_request
*req
)
4117 fprintf( stderr
, " access=%08x", req
->access
);
4118 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
4119 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
4120 dump_varargs_unicode_str( ", name=", cur_size
);
4123 static void dump_open_symlink_reply( const struct open_symlink_reply
*req
)
4125 fprintf( stderr
, " handle=%04x", req
->handle
);
4128 static void dump_query_symlink_request( const struct query_symlink_request
*req
)
4130 fprintf( stderr
, " handle=%04x", req
->handle
);
4133 static void dump_query_symlink_reply( const struct query_symlink_reply
*req
)
4135 fprintf( stderr
, " total=%u", req
->total
);
4136 dump_varargs_unicode_str( ", target_name=", cur_size
);
4139 static void dump_get_object_info_request( const struct get_object_info_request
*req
)
4141 fprintf( stderr
, " handle=%04x", req
->handle
);
4144 static void dump_get_object_info_reply( const struct get_object_info_reply
*req
)
4146 fprintf( stderr
, " access=%08x", req
->access
);
4147 fprintf( stderr
, ", ref_count=%08x", req
->ref_count
);
4148 fprintf( stderr
, ", handle_count=%08x", req
->handle_count
);
4149 fprintf( stderr
, ", total=%u", req
->total
);
4150 dump_varargs_unicode_str( ", name=", cur_size
);
4153 static void dump_get_object_type_request( const struct get_object_type_request
*req
)
4155 fprintf( stderr
, " handle=%04x", req
->handle
);
4158 static void dump_get_object_type_reply( const struct get_object_type_reply
*req
)
4160 fprintf( stderr
, " total=%u", req
->total
);
4161 dump_varargs_unicode_str( ", type=", cur_size
);
4164 static void dump_unlink_object_request( const struct unlink_object_request
*req
)
4166 fprintf( stderr
, " handle=%04x", req
->handle
);
4169 static void dump_get_token_impersonation_level_request( const struct get_token_impersonation_level_request
*req
)
4171 fprintf( stderr
, " handle=%04x", req
->handle
);
4174 static void dump_get_token_impersonation_level_reply( const struct get_token_impersonation_level_reply
*req
)
4176 fprintf( stderr
, " impersonation_level=%d", req
->impersonation_level
);
4179 static void dump_allocate_locally_unique_id_request( const struct allocate_locally_unique_id_request
*req
)
4183 static void dump_allocate_locally_unique_id_reply( const struct allocate_locally_unique_id_reply
*req
)
4185 dump_luid( " luid=", &req
->luid
);
4188 static void dump_create_device_manager_request( const struct create_device_manager_request
*req
)
4190 fprintf( stderr
, " access=%08x", req
->access
);
4191 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
4194 static void dump_create_device_manager_reply( const struct create_device_manager_reply
*req
)
4196 fprintf( stderr
, " handle=%04x", req
->handle
);
4199 static void dump_create_device_request( const struct create_device_request
*req
)
4201 fprintf( stderr
, " access=%08x", req
->access
);
4202 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
4203 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
4204 dump_uint64( ", user_ptr=", &req
->user_ptr
);
4205 fprintf( stderr
, ", manager=%04x", req
->manager
);
4206 dump_varargs_unicode_str( ", name=", cur_size
);
4209 static void dump_create_device_reply( const struct create_device_reply
*req
)
4211 fprintf( stderr
, " handle=%04x", req
->handle
);
4214 static void dump_delete_device_request( const struct delete_device_request
*req
)
4216 fprintf( stderr
, " handle=%04x", req
->handle
);
4219 static void dump_get_next_device_request_request( const struct get_next_device_request_request
*req
)
4221 fprintf( stderr
, " manager=%04x", req
->manager
);
4222 fprintf( stderr
, ", prev=%04x", req
->prev
);
4223 fprintf( stderr
, ", status=%08x", req
->status
);
4226 static void dump_get_next_device_request_reply( const struct get_next_device_request_reply
*req
)
4228 dump_irp_params( " params=", &req
->params
);
4229 fprintf( stderr
, ", next=%04x", req
->next
);
4230 fprintf( stderr
, ", client_pid=%04x", req
->client_pid
);
4231 fprintf( stderr
, ", client_tid=%04x", req
->client_tid
);
4232 fprintf( stderr
, ", in_size=%u", req
->in_size
);
4233 fprintf( stderr
, ", out_size=%u", req
->out_size
);
4234 dump_varargs_bytes( ", next_data=", cur_size
);
4237 static void dump_make_process_system_request( const struct make_process_system_request
*req
)
4241 static void dump_make_process_system_reply( const struct make_process_system_reply
*req
)
4243 fprintf( stderr
, " event=%04x", req
->event
);
4246 static void dump_get_token_statistics_request( const struct get_token_statistics_request
*req
)
4248 fprintf( stderr
, " handle=%04x", req
->handle
);
4251 static void dump_get_token_statistics_reply( const struct get_token_statistics_reply
*req
)
4253 dump_luid( " token_id=", &req
->token_id
);
4254 dump_luid( ", modified_id=", &req
->modified_id
);
4255 fprintf( stderr
, ", primary=%d", req
->primary
);
4256 fprintf( stderr
, ", impersonation_level=%d", req
->impersonation_level
);
4257 fprintf( stderr
, ", group_count=%d", req
->group_count
);
4258 fprintf( stderr
, ", privilege_count=%d", req
->privilege_count
);
4261 static void dump_create_completion_request( const struct create_completion_request
*req
)
4263 fprintf( stderr
, " access=%08x", req
->access
);
4264 fprintf( stderr
, ", concurrent=%08x", req
->concurrent
);
4265 dump_varargs_object_attributes( ", objattr=", cur_size
);
4268 static void dump_create_completion_reply( const struct create_completion_reply
*req
)
4270 fprintf( stderr
, " handle=%04x", req
->handle
);
4273 static void dump_open_completion_request( const struct open_completion_request
*req
)
4275 fprintf( stderr
, " access=%08x", req
->access
);
4276 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
4277 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
4278 dump_varargs_unicode_str( ", filename=", cur_size
);
4281 static void dump_open_completion_reply( const struct open_completion_reply
*req
)
4283 fprintf( stderr
, " handle=%04x", req
->handle
);
4286 static void dump_add_completion_request( const struct add_completion_request
*req
)
4288 fprintf( stderr
, " handle=%04x", req
->handle
);
4289 dump_uint64( ", ckey=", &req
->ckey
);
4290 dump_uint64( ", cvalue=", &req
->cvalue
);
4291 dump_uint64( ", information=", &req
->information
);
4292 fprintf( stderr
, ", status=%08x", req
->status
);
4295 static void dump_remove_completion_request( const struct remove_completion_request
*req
)
4297 fprintf( stderr
, " handle=%04x", req
->handle
);
4300 static void dump_remove_completion_reply( const struct remove_completion_reply
*req
)
4302 dump_uint64( " ckey=", &req
->ckey
);
4303 dump_uint64( ", cvalue=", &req
->cvalue
);
4304 dump_uint64( ", information=", &req
->information
);
4305 fprintf( stderr
, ", status=%08x", req
->status
);
4308 static void dump_query_completion_request( const struct query_completion_request
*req
)
4310 fprintf( stderr
, " handle=%04x", req
->handle
);
4313 static void dump_query_completion_reply( const struct query_completion_reply
*req
)
4315 fprintf( stderr
, " depth=%08x", req
->depth
);
4318 static void dump_set_completion_info_request( const struct set_completion_info_request
*req
)
4320 fprintf( stderr
, " handle=%04x", req
->handle
);
4321 dump_uint64( ", ckey=", &req
->ckey
);
4322 fprintf( stderr
, ", chandle=%04x", req
->chandle
);
4325 static void dump_add_fd_completion_request( const struct add_fd_completion_request
*req
)
4327 fprintf( stderr
, " handle=%04x", req
->handle
);
4328 dump_uint64( ", cvalue=", &req
->cvalue
);
4329 dump_uint64( ", information=", &req
->information
);
4330 fprintf( stderr
, ", status=%08x", req
->status
);
4333 static void dump_set_fd_disp_info_request( const struct set_fd_disp_info_request
*req
)
4335 fprintf( stderr
, " handle=%04x", req
->handle
);
4336 fprintf( stderr
, ", unlink=%d", req
->unlink
);
4339 static void dump_set_fd_name_info_request( const struct set_fd_name_info_request
*req
)
4341 fprintf( stderr
, " handle=%04x", req
->handle
);
4342 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
4343 fprintf( stderr
, ", link=%d", req
->link
);
4344 dump_varargs_string( ", filename=", cur_size
);
4347 static void dump_get_window_layered_info_request( const struct get_window_layered_info_request
*req
)
4349 fprintf( stderr
, " handle=%08x", req
->handle
);
4352 static void dump_get_window_layered_info_reply( const struct get_window_layered_info_reply
*req
)
4354 fprintf( stderr
, " color_key=%08x", req
->color_key
);
4355 fprintf( stderr
, ", alpha=%08x", req
->alpha
);
4356 fprintf( stderr
, ", flags=%08x", req
->flags
);
4359 static void dump_set_window_layered_info_request( const struct set_window_layered_info_request
*req
)
4361 fprintf( stderr
, " handle=%08x", req
->handle
);
4362 fprintf( stderr
, ", color_key=%08x", req
->color_key
);
4363 fprintf( stderr
, ", alpha=%08x", req
->alpha
);
4364 fprintf( stderr
, ", flags=%08x", req
->flags
);
4367 static void dump_alloc_user_handle_request( const struct alloc_user_handle_request
*req
)
4371 static void dump_alloc_user_handle_reply( const struct alloc_user_handle_reply
*req
)
4373 fprintf( stderr
, " handle=%08x", req
->handle
);
4376 static void dump_free_user_handle_request( const struct free_user_handle_request
*req
)
4378 fprintf( stderr
, " handle=%08x", req
->handle
);
4381 static void dump_set_cursor_request( const struct set_cursor_request
*req
)
4383 fprintf( stderr
, " flags=%08x", req
->flags
);
4384 fprintf( stderr
, ", handle=%08x", req
->handle
);
4385 fprintf( stderr
, ", show_count=%d", req
->show_count
);
4386 fprintf( stderr
, ", x=%d", req
->x
);
4387 fprintf( stderr
, ", y=%d", req
->y
);
4388 dump_rectangle( ", clip=", &req
->clip
);
4389 fprintf( stderr
, ", clip_msg=%08x", req
->clip_msg
);
4392 static void dump_set_cursor_reply( const struct set_cursor_reply
*req
)
4394 fprintf( stderr
, " prev_handle=%08x", req
->prev_handle
);
4395 fprintf( stderr
, ", prev_count=%d", req
->prev_count
);
4396 fprintf( stderr
, ", prev_x=%d", req
->prev_x
);
4397 fprintf( stderr
, ", prev_y=%d", req
->prev_y
);
4398 fprintf( stderr
, ", new_x=%d", req
->new_x
);
4399 fprintf( stderr
, ", new_y=%d", req
->new_y
);
4400 dump_rectangle( ", new_clip=", &req
->new_clip
);
4401 fprintf( stderr
, ", last_change=%08x", req
->last_change
);
4404 static void dump_update_rawinput_devices_request( const struct update_rawinput_devices_request
*req
)
4406 dump_varargs_rawinput_devices( " devices=", cur_size
);
4409 static void dump_get_suspend_context_request( const struct get_suspend_context_request
*req
)
4413 static void dump_get_suspend_context_reply( const struct get_suspend_context_reply
*req
)
4415 dump_varargs_context( " context=", cur_size
);
4418 static void dump_set_suspend_context_request( const struct set_suspend_context_request
*req
)
4420 dump_varargs_context( " context=", cur_size
);
4423 static void dump_create_job_request( const struct create_job_request
*req
)
4425 fprintf( stderr
, " access=%08x", req
->access
);
4426 dump_varargs_object_attributes( ", objattr=", cur_size
);
4429 static void dump_create_job_reply( const struct create_job_reply
*req
)
4431 fprintf( stderr
, " handle=%04x", req
->handle
);
4434 static void dump_open_job_request( const struct open_job_request
*req
)
4436 fprintf( stderr
, " access=%08x", req
->access
);
4437 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
4438 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
4439 dump_varargs_unicode_str( ", name=", cur_size
);
4442 static void dump_open_job_reply( const struct open_job_reply
*req
)
4444 fprintf( stderr
, " handle=%04x", req
->handle
);
4447 static void dump_assign_job_request( const struct assign_job_request
*req
)
4449 fprintf( stderr
, " job=%04x", req
->job
);
4450 fprintf( stderr
, ", process=%04x", req
->process
);
4453 static void dump_process_in_job_request( const struct process_in_job_request
*req
)
4455 fprintf( stderr
, " job=%04x", req
->job
);
4456 fprintf( stderr
, ", process=%04x", req
->process
);
4459 static void dump_set_job_limits_request( const struct set_job_limits_request
*req
)
4461 fprintf( stderr
, " handle=%04x", req
->handle
);
4462 fprintf( stderr
, ", limit_flags=%08x", req
->limit_flags
);
4465 static void dump_set_job_completion_port_request( const struct set_job_completion_port_request
*req
)
4467 fprintf( stderr
, " job=%04x", req
->job
);
4468 fprintf( stderr
, ", port=%04x", req
->port
);
4469 dump_uint64( ", key=", &req
->key
);
4472 static void dump_terminate_job_request( const struct terminate_job_request
*req
)
4474 fprintf( stderr
, " handle=%04x", req
->handle
);
4475 fprintf( stderr
, ", status=%d", req
->status
);
4478 static const dump_func req_dumpers
[REQ_NB_REQUESTS
] = {
4479 (dump_func
)dump_new_process_request
,
4480 (dump_func
)dump_get_new_process_info_request
,
4481 (dump_func
)dump_new_thread_request
,
4482 (dump_func
)dump_get_startup_info_request
,
4483 (dump_func
)dump_init_process_done_request
,
4484 (dump_func
)dump_init_thread_request
,
4485 (dump_func
)dump_terminate_process_request
,
4486 (dump_func
)dump_terminate_thread_request
,
4487 (dump_func
)dump_get_process_info_request
,
4488 (dump_func
)dump_set_process_info_request
,
4489 (dump_func
)dump_get_thread_info_request
,
4490 (dump_func
)dump_get_thread_times_request
,
4491 (dump_func
)dump_set_thread_info_request
,
4492 (dump_func
)dump_get_dll_info_request
,
4493 (dump_func
)dump_suspend_thread_request
,
4494 (dump_func
)dump_resume_thread_request
,
4495 (dump_func
)dump_load_dll_request
,
4496 (dump_func
)dump_unload_dll_request
,
4497 (dump_func
)dump_queue_apc_request
,
4498 (dump_func
)dump_get_apc_result_request
,
4499 (dump_func
)dump_close_handle_request
,
4500 (dump_func
)dump_set_handle_info_request
,
4501 (dump_func
)dump_dup_handle_request
,
4502 (dump_func
)dump_open_process_request
,
4503 (dump_func
)dump_open_thread_request
,
4504 (dump_func
)dump_select_request
,
4505 (dump_func
)dump_create_event_request
,
4506 (dump_func
)dump_event_op_request
,
4507 (dump_func
)dump_query_event_request
,
4508 (dump_func
)dump_open_event_request
,
4509 (dump_func
)dump_create_keyed_event_request
,
4510 (dump_func
)dump_open_keyed_event_request
,
4511 (dump_func
)dump_create_mutex_request
,
4512 (dump_func
)dump_release_mutex_request
,
4513 (dump_func
)dump_open_mutex_request
,
4514 (dump_func
)dump_query_mutex_request
,
4515 (dump_func
)dump_create_semaphore_request
,
4516 (dump_func
)dump_release_semaphore_request
,
4517 (dump_func
)dump_query_semaphore_request
,
4518 (dump_func
)dump_open_semaphore_request
,
4519 (dump_func
)dump_create_file_request
,
4520 (dump_func
)dump_open_file_object_request
,
4521 (dump_func
)dump_alloc_file_handle_request
,
4522 (dump_func
)dump_get_handle_unix_name_request
,
4523 (dump_func
)dump_get_handle_fd_request
,
4524 (dump_func
)dump_get_directory_cache_entry_request
,
4525 (dump_func
)dump_flush_request
,
4526 (dump_func
)dump_lock_file_request
,
4527 (dump_func
)dump_unlock_file_request
,
4528 (dump_func
)dump_create_socket_request
,
4529 (dump_func
)dump_accept_socket_request
,
4530 (dump_func
)dump_accept_into_socket_request
,
4531 (dump_func
)dump_set_socket_event_request
,
4532 (dump_func
)dump_get_socket_event_request
,
4533 (dump_func
)dump_get_socket_info_request
,
4534 (dump_func
)dump_enable_socket_event_request
,
4535 (dump_func
)dump_set_socket_deferred_request
,
4536 (dump_func
)dump_alloc_console_request
,
4537 (dump_func
)dump_free_console_request
,
4538 (dump_func
)dump_get_console_renderer_events_request
,
4539 (dump_func
)dump_open_console_request
,
4540 (dump_func
)dump_get_console_wait_event_request
,
4541 (dump_func
)dump_get_console_mode_request
,
4542 (dump_func
)dump_set_console_mode_request
,
4543 (dump_func
)dump_set_console_input_info_request
,
4544 (dump_func
)dump_get_console_input_info_request
,
4545 (dump_func
)dump_append_console_input_history_request
,
4546 (dump_func
)dump_get_console_input_history_request
,
4547 (dump_func
)dump_create_console_output_request
,
4548 (dump_func
)dump_set_console_output_info_request
,
4549 (dump_func
)dump_get_console_output_info_request
,
4550 (dump_func
)dump_write_console_input_request
,
4551 (dump_func
)dump_read_console_input_request
,
4552 (dump_func
)dump_write_console_output_request
,
4553 (dump_func
)dump_fill_console_output_request
,
4554 (dump_func
)dump_read_console_output_request
,
4555 (dump_func
)dump_move_console_output_request
,
4556 (dump_func
)dump_send_console_signal_request
,
4557 (dump_func
)dump_read_directory_changes_request
,
4558 (dump_func
)dump_read_change_request
,
4559 (dump_func
)dump_create_mapping_request
,
4560 (dump_func
)dump_open_mapping_request
,
4561 (dump_func
)dump_get_mapping_info_request
,
4562 (dump_func
)dump_get_mapping_committed_range_request
,
4563 (dump_func
)dump_add_mapping_committed_range_request
,
4564 (dump_func
)dump_create_snapshot_request
,
4565 (dump_func
)dump_next_process_request
,
4566 (dump_func
)dump_next_thread_request
,
4567 (dump_func
)dump_wait_debug_event_request
,
4568 (dump_func
)dump_queue_exception_event_request
,
4569 (dump_func
)dump_get_exception_status_request
,
4570 (dump_func
)dump_continue_debug_event_request
,
4571 (dump_func
)dump_debug_process_request
,
4572 (dump_func
)dump_debug_break_request
,
4573 (dump_func
)dump_set_debugger_kill_on_exit_request
,
4574 (dump_func
)dump_read_process_memory_request
,
4575 (dump_func
)dump_write_process_memory_request
,
4576 (dump_func
)dump_create_key_request
,
4577 (dump_func
)dump_open_key_request
,
4578 (dump_func
)dump_delete_key_request
,
4579 (dump_func
)dump_flush_key_request
,
4580 (dump_func
)dump_enum_key_request
,
4581 (dump_func
)dump_set_key_value_request
,
4582 (dump_func
)dump_get_key_value_request
,
4583 (dump_func
)dump_enum_key_value_request
,
4584 (dump_func
)dump_delete_key_value_request
,
4585 (dump_func
)dump_load_registry_request
,
4586 (dump_func
)dump_unload_registry_request
,
4587 (dump_func
)dump_save_registry_request
,
4588 (dump_func
)dump_set_registry_notification_request
,
4589 (dump_func
)dump_create_timer_request
,
4590 (dump_func
)dump_open_timer_request
,
4591 (dump_func
)dump_set_timer_request
,
4592 (dump_func
)dump_cancel_timer_request
,
4593 (dump_func
)dump_get_timer_info_request
,
4594 (dump_func
)dump_get_thread_context_request
,
4595 (dump_func
)dump_set_thread_context_request
,
4596 (dump_func
)dump_get_selector_entry_request
,
4597 (dump_func
)dump_add_atom_request
,
4598 (dump_func
)dump_delete_atom_request
,
4599 (dump_func
)dump_find_atom_request
,
4600 (dump_func
)dump_get_atom_information_request
,
4601 (dump_func
)dump_set_atom_information_request
,
4602 (dump_func
)dump_empty_atom_table_request
,
4603 (dump_func
)dump_init_atom_table_request
,
4604 (dump_func
)dump_get_msg_queue_request
,
4605 (dump_func
)dump_set_queue_fd_request
,
4606 (dump_func
)dump_set_queue_mask_request
,
4607 (dump_func
)dump_get_queue_status_request
,
4608 (dump_func
)dump_get_process_idle_event_request
,
4609 (dump_func
)dump_send_message_request
,
4610 (dump_func
)dump_post_quit_message_request
,
4611 (dump_func
)dump_send_hardware_message_request
,
4612 (dump_func
)dump_get_message_request
,
4613 (dump_func
)dump_reply_message_request
,
4614 (dump_func
)dump_accept_hardware_message_request
,
4615 (dump_func
)dump_get_message_reply_request
,
4616 (dump_func
)dump_set_win_timer_request
,
4617 (dump_func
)dump_kill_win_timer_request
,
4618 (dump_func
)dump_is_window_hung_request
,
4619 (dump_func
)dump_get_serial_info_request
,
4620 (dump_func
)dump_set_serial_info_request
,
4621 (dump_func
)dump_register_async_request
,
4622 (dump_func
)dump_cancel_async_request
,
4623 (dump_func
)dump_read_request
,
4624 (dump_func
)dump_write_request
,
4625 (dump_func
)dump_ioctl_request
,
4626 (dump_func
)dump_set_irp_result_request
,
4627 (dump_func
)dump_get_irp_result_request
,
4628 (dump_func
)dump_create_named_pipe_request
,
4629 (dump_func
)dump_get_named_pipe_info_request
,
4630 (dump_func
)dump_set_named_pipe_info_request
,
4631 (dump_func
)dump_create_window_request
,
4632 (dump_func
)dump_destroy_window_request
,
4633 (dump_func
)dump_get_desktop_window_request
,
4634 (dump_func
)dump_set_window_owner_request
,
4635 (dump_func
)dump_get_window_info_request
,
4636 (dump_func
)dump_set_window_info_request
,
4637 (dump_func
)dump_set_parent_request
,
4638 (dump_func
)dump_get_window_parents_request
,
4639 (dump_func
)dump_get_window_children_request
,
4640 (dump_func
)dump_get_window_children_from_point_request
,
4641 (dump_func
)dump_get_window_tree_request
,
4642 (dump_func
)dump_set_window_pos_request
,
4643 (dump_func
)dump_get_window_rectangles_request
,
4644 (dump_func
)dump_get_window_text_request
,
4645 (dump_func
)dump_set_window_text_request
,
4646 (dump_func
)dump_get_windows_offset_request
,
4647 (dump_func
)dump_get_visible_region_request
,
4648 (dump_func
)dump_get_surface_region_request
,
4649 (dump_func
)dump_get_window_region_request
,
4650 (dump_func
)dump_set_window_region_request
,
4651 (dump_func
)dump_get_update_region_request
,
4652 (dump_func
)dump_update_window_zorder_request
,
4653 (dump_func
)dump_redraw_window_request
,
4654 (dump_func
)dump_set_window_property_request
,
4655 (dump_func
)dump_remove_window_property_request
,
4656 (dump_func
)dump_get_window_property_request
,
4657 (dump_func
)dump_get_window_properties_request
,
4658 (dump_func
)dump_create_winstation_request
,
4659 (dump_func
)dump_open_winstation_request
,
4660 (dump_func
)dump_close_winstation_request
,
4661 (dump_func
)dump_get_process_winstation_request
,
4662 (dump_func
)dump_set_process_winstation_request
,
4663 (dump_func
)dump_enum_winstation_request
,
4664 (dump_func
)dump_create_desktop_request
,
4665 (dump_func
)dump_open_desktop_request
,
4666 (dump_func
)dump_open_input_desktop_request
,
4667 (dump_func
)dump_close_desktop_request
,
4668 (dump_func
)dump_get_thread_desktop_request
,
4669 (dump_func
)dump_set_thread_desktop_request
,
4670 (dump_func
)dump_enum_desktop_request
,
4671 (dump_func
)dump_set_user_object_info_request
,
4672 (dump_func
)dump_register_hotkey_request
,
4673 (dump_func
)dump_unregister_hotkey_request
,
4674 (dump_func
)dump_attach_thread_input_request
,
4675 (dump_func
)dump_get_thread_input_request
,
4676 (dump_func
)dump_get_last_input_time_request
,
4677 (dump_func
)dump_get_key_state_request
,
4678 (dump_func
)dump_set_key_state_request
,
4679 (dump_func
)dump_set_foreground_window_request
,
4680 (dump_func
)dump_set_focus_window_request
,
4681 (dump_func
)dump_set_active_window_request
,
4682 (dump_func
)dump_set_capture_window_request
,
4683 (dump_func
)dump_set_caret_window_request
,
4684 (dump_func
)dump_set_caret_info_request
,
4685 (dump_func
)dump_set_hook_request
,
4686 (dump_func
)dump_remove_hook_request
,
4687 (dump_func
)dump_start_hook_chain_request
,
4688 (dump_func
)dump_finish_hook_chain_request
,
4689 (dump_func
)dump_get_hook_info_request
,
4690 (dump_func
)dump_create_class_request
,
4691 (dump_func
)dump_destroy_class_request
,
4692 (dump_func
)dump_set_class_info_request
,
4693 (dump_func
)dump_open_clipboard_request
,
4694 (dump_func
)dump_close_clipboard_request
,
4695 (dump_func
)dump_set_clipboard_info_request
,
4696 (dump_func
)dump_empty_clipboard_request
,
4697 (dump_func
)dump_set_clipboard_data_request
,
4698 (dump_func
)dump_get_clipboard_data_request
,
4699 (dump_func
)dump_get_clipboard_formats_request
,
4700 (dump_func
)dump_enum_clipboard_formats_request
,
4701 (dump_func
)dump_release_clipboard_request
,
4702 (dump_func
)dump_get_clipboard_info_request
,
4703 (dump_func
)dump_set_clipboard_viewer_request
,
4704 (dump_func
)dump_add_clipboard_listener_request
,
4705 (dump_func
)dump_remove_clipboard_listener_request
,
4706 (dump_func
)dump_open_token_request
,
4707 (dump_func
)dump_set_global_windows_request
,
4708 (dump_func
)dump_adjust_token_privileges_request
,
4709 (dump_func
)dump_get_token_privileges_request
,
4710 (dump_func
)dump_check_token_privileges_request
,
4711 (dump_func
)dump_duplicate_token_request
,
4712 (dump_func
)dump_access_check_request
,
4713 (dump_func
)dump_get_token_sid_request
,
4714 (dump_func
)dump_get_token_groups_request
,
4715 (dump_func
)dump_get_token_default_dacl_request
,
4716 (dump_func
)dump_set_token_default_dacl_request
,
4717 (dump_func
)dump_set_security_object_request
,
4718 (dump_func
)dump_get_security_object_request
,
4719 (dump_func
)dump_get_system_handles_request
,
4720 (dump_func
)dump_create_mailslot_request
,
4721 (dump_func
)dump_set_mailslot_info_request
,
4722 (dump_func
)dump_create_directory_request
,
4723 (dump_func
)dump_open_directory_request
,
4724 (dump_func
)dump_get_directory_entry_request
,
4725 (dump_func
)dump_create_symlink_request
,
4726 (dump_func
)dump_open_symlink_request
,
4727 (dump_func
)dump_query_symlink_request
,
4728 (dump_func
)dump_get_object_info_request
,
4729 (dump_func
)dump_get_object_type_request
,
4730 (dump_func
)dump_unlink_object_request
,
4731 (dump_func
)dump_get_token_impersonation_level_request
,
4732 (dump_func
)dump_allocate_locally_unique_id_request
,
4733 (dump_func
)dump_create_device_manager_request
,
4734 (dump_func
)dump_create_device_request
,
4735 (dump_func
)dump_delete_device_request
,
4736 (dump_func
)dump_get_next_device_request_request
,
4737 (dump_func
)dump_make_process_system_request
,
4738 (dump_func
)dump_get_token_statistics_request
,
4739 (dump_func
)dump_create_completion_request
,
4740 (dump_func
)dump_open_completion_request
,
4741 (dump_func
)dump_add_completion_request
,
4742 (dump_func
)dump_remove_completion_request
,
4743 (dump_func
)dump_query_completion_request
,
4744 (dump_func
)dump_set_completion_info_request
,
4745 (dump_func
)dump_add_fd_completion_request
,
4746 (dump_func
)dump_set_fd_disp_info_request
,
4747 (dump_func
)dump_set_fd_name_info_request
,
4748 (dump_func
)dump_get_window_layered_info_request
,
4749 (dump_func
)dump_set_window_layered_info_request
,
4750 (dump_func
)dump_alloc_user_handle_request
,
4751 (dump_func
)dump_free_user_handle_request
,
4752 (dump_func
)dump_set_cursor_request
,
4753 (dump_func
)dump_update_rawinput_devices_request
,
4754 (dump_func
)dump_get_suspend_context_request
,
4755 (dump_func
)dump_set_suspend_context_request
,
4756 (dump_func
)dump_create_job_request
,
4757 (dump_func
)dump_open_job_request
,
4758 (dump_func
)dump_assign_job_request
,
4759 (dump_func
)dump_process_in_job_request
,
4760 (dump_func
)dump_set_job_limits_request
,
4761 (dump_func
)dump_set_job_completion_port_request
,
4762 (dump_func
)dump_terminate_job_request
,
4765 static const dump_func reply_dumpers
[REQ_NB_REQUESTS
] = {
4766 (dump_func
)dump_new_process_reply
,
4767 (dump_func
)dump_get_new_process_info_reply
,
4768 (dump_func
)dump_new_thread_reply
,
4769 (dump_func
)dump_get_startup_info_reply
,
4771 (dump_func
)dump_init_thread_reply
,
4772 (dump_func
)dump_terminate_process_reply
,
4773 (dump_func
)dump_terminate_thread_reply
,
4774 (dump_func
)dump_get_process_info_reply
,
4776 (dump_func
)dump_get_thread_info_reply
,
4777 (dump_func
)dump_get_thread_times_reply
,
4779 (dump_func
)dump_get_dll_info_reply
,
4780 (dump_func
)dump_suspend_thread_reply
,
4781 (dump_func
)dump_resume_thread_reply
,
4784 (dump_func
)dump_queue_apc_reply
,
4785 (dump_func
)dump_get_apc_result_reply
,
4787 (dump_func
)dump_set_handle_info_reply
,
4788 (dump_func
)dump_dup_handle_reply
,
4789 (dump_func
)dump_open_process_reply
,
4790 (dump_func
)dump_open_thread_reply
,
4791 (dump_func
)dump_select_reply
,
4792 (dump_func
)dump_create_event_reply
,
4794 (dump_func
)dump_query_event_reply
,
4795 (dump_func
)dump_open_event_reply
,
4796 (dump_func
)dump_create_keyed_event_reply
,
4797 (dump_func
)dump_open_keyed_event_reply
,
4798 (dump_func
)dump_create_mutex_reply
,
4799 (dump_func
)dump_release_mutex_reply
,
4800 (dump_func
)dump_open_mutex_reply
,
4801 (dump_func
)dump_query_mutex_reply
,
4802 (dump_func
)dump_create_semaphore_reply
,
4803 (dump_func
)dump_release_semaphore_reply
,
4804 (dump_func
)dump_query_semaphore_reply
,
4805 (dump_func
)dump_open_semaphore_reply
,
4806 (dump_func
)dump_create_file_reply
,
4807 (dump_func
)dump_open_file_object_reply
,
4808 (dump_func
)dump_alloc_file_handle_reply
,
4809 (dump_func
)dump_get_handle_unix_name_reply
,
4810 (dump_func
)dump_get_handle_fd_reply
,
4811 (dump_func
)dump_get_directory_cache_entry_reply
,
4812 (dump_func
)dump_flush_reply
,
4813 (dump_func
)dump_lock_file_reply
,
4815 (dump_func
)dump_create_socket_reply
,
4816 (dump_func
)dump_accept_socket_reply
,
4819 (dump_func
)dump_get_socket_event_reply
,
4820 (dump_func
)dump_get_socket_info_reply
,
4823 (dump_func
)dump_alloc_console_reply
,
4825 (dump_func
)dump_get_console_renderer_events_reply
,
4826 (dump_func
)dump_open_console_reply
,
4827 (dump_func
)dump_get_console_wait_event_reply
,
4828 (dump_func
)dump_get_console_mode_reply
,
4831 (dump_func
)dump_get_console_input_info_reply
,
4833 (dump_func
)dump_get_console_input_history_reply
,
4834 (dump_func
)dump_create_console_output_reply
,
4836 (dump_func
)dump_get_console_output_info_reply
,
4837 (dump_func
)dump_write_console_input_reply
,
4838 (dump_func
)dump_read_console_input_reply
,
4839 (dump_func
)dump_write_console_output_reply
,
4840 (dump_func
)dump_fill_console_output_reply
,
4841 (dump_func
)dump_read_console_output_reply
,
4845 (dump_func
)dump_read_change_reply
,
4846 (dump_func
)dump_create_mapping_reply
,
4847 (dump_func
)dump_open_mapping_reply
,
4848 (dump_func
)dump_get_mapping_info_reply
,
4849 (dump_func
)dump_get_mapping_committed_range_reply
,
4851 (dump_func
)dump_create_snapshot_reply
,
4852 (dump_func
)dump_next_process_reply
,
4853 (dump_func
)dump_next_thread_reply
,
4854 (dump_func
)dump_wait_debug_event_reply
,
4855 (dump_func
)dump_queue_exception_event_reply
,
4856 (dump_func
)dump_get_exception_status_reply
,
4859 (dump_func
)dump_debug_break_reply
,
4861 (dump_func
)dump_read_process_memory_reply
,
4863 (dump_func
)dump_create_key_reply
,
4864 (dump_func
)dump_open_key_reply
,
4867 (dump_func
)dump_enum_key_reply
,
4869 (dump_func
)dump_get_key_value_reply
,
4870 (dump_func
)dump_enum_key_value_reply
,
4876 (dump_func
)dump_create_timer_reply
,
4877 (dump_func
)dump_open_timer_reply
,
4878 (dump_func
)dump_set_timer_reply
,
4879 (dump_func
)dump_cancel_timer_reply
,
4880 (dump_func
)dump_get_timer_info_reply
,
4881 (dump_func
)dump_get_thread_context_reply
,
4882 (dump_func
)dump_set_thread_context_reply
,
4883 (dump_func
)dump_get_selector_entry_reply
,
4884 (dump_func
)dump_add_atom_reply
,
4886 (dump_func
)dump_find_atom_reply
,
4887 (dump_func
)dump_get_atom_information_reply
,
4890 (dump_func
)dump_init_atom_table_reply
,
4891 (dump_func
)dump_get_msg_queue_reply
,
4893 (dump_func
)dump_set_queue_mask_reply
,
4894 (dump_func
)dump_get_queue_status_reply
,
4895 (dump_func
)dump_get_process_idle_event_reply
,
4898 (dump_func
)dump_send_hardware_message_reply
,
4899 (dump_func
)dump_get_message_reply
,
4902 (dump_func
)dump_get_message_reply_reply
,
4903 (dump_func
)dump_set_win_timer_reply
,
4905 (dump_func
)dump_is_window_hung_reply
,
4906 (dump_func
)dump_get_serial_info_reply
,
4910 (dump_func
)dump_read_reply
,
4911 (dump_func
)dump_write_reply
,
4912 (dump_func
)dump_ioctl_reply
,
4914 (dump_func
)dump_get_irp_result_reply
,
4915 (dump_func
)dump_create_named_pipe_reply
,
4916 (dump_func
)dump_get_named_pipe_info_reply
,
4918 (dump_func
)dump_create_window_reply
,
4920 (dump_func
)dump_get_desktop_window_reply
,
4921 (dump_func
)dump_set_window_owner_reply
,
4922 (dump_func
)dump_get_window_info_reply
,
4923 (dump_func
)dump_set_window_info_reply
,
4924 (dump_func
)dump_set_parent_reply
,
4925 (dump_func
)dump_get_window_parents_reply
,
4926 (dump_func
)dump_get_window_children_reply
,
4927 (dump_func
)dump_get_window_children_from_point_reply
,
4928 (dump_func
)dump_get_window_tree_reply
,
4929 (dump_func
)dump_set_window_pos_reply
,
4930 (dump_func
)dump_get_window_rectangles_reply
,
4931 (dump_func
)dump_get_window_text_reply
,
4933 (dump_func
)dump_get_windows_offset_reply
,
4934 (dump_func
)dump_get_visible_region_reply
,
4935 (dump_func
)dump_get_surface_region_reply
,
4936 (dump_func
)dump_get_window_region_reply
,
4938 (dump_func
)dump_get_update_region_reply
,
4942 (dump_func
)dump_remove_window_property_reply
,
4943 (dump_func
)dump_get_window_property_reply
,
4944 (dump_func
)dump_get_window_properties_reply
,
4945 (dump_func
)dump_create_winstation_reply
,
4946 (dump_func
)dump_open_winstation_reply
,
4948 (dump_func
)dump_get_process_winstation_reply
,
4950 (dump_func
)dump_enum_winstation_reply
,
4951 (dump_func
)dump_create_desktop_reply
,
4952 (dump_func
)dump_open_desktop_reply
,
4953 (dump_func
)dump_open_input_desktop_reply
,
4955 (dump_func
)dump_get_thread_desktop_reply
,
4957 (dump_func
)dump_enum_desktop_reply
,
4958 (dump_func
)dump_set_user_object_info_reply
,
4959 (dump_func
)dump_register_hotkey_reply
,
4960 (dump_func
)dump_unregister_hotkey_reply
,
4962 (dump_func
)dump_get_thread_input_reply
,
4963 (dump_func
)dump_get_last_input_time_reply
,
4964 (dump_func
)dump_get_key_state_reply
,
4966 (dump_func
)dump_set_foreground_window_reply
,
4967 (dump_func
)dump_set_focus_window_reply
,
4968 (dump_func
)dump_set_active_window_reply
,
4969 (dump_func
)dump_set_capture_window_reply
,
4970 (dump_func
)dump_set_caret_window_reply
,
4971 (dump_func
)dump_set_caret_info_reply
,
4972 (dump_func
)dump_set_hook_reply
,
4973 (dump_func
)dump_remove_hook_reply
,
4974 (dump_func
)dump_start_hook_chain_reply
,
4976 (dump_func
)dump_get_hook_info_reply
,
4977 (dump_func
)dump_create_class_reply
,
4978 (dump_func
)dump_destroy_class_reply
,
4979 (dump_func
)dump_set_class_info_reply
,
4980 (dump_func
)dump_open_clipboard_reply
,
4981 (dump_func
)dump_close_clipboard_reply
,
4982 (dump_func
)dump_set_clipboard_info_reply
,
4984 (dump_func
)dump_set_clipboard_data_reply
,
4985 (dump_func
)dump_get_clipboard_data_reply
,
4986 (dump_func
)dump_get_clipboard_formats_reply
,
4987 (dump_func
)dump_enum_clipboard_formats_reply
,
4988 (dump_func
)dump_release_clipboard_reply
,
4989 (dump_func
)dump_get_clipboard_info_reply
,
4990 (dump_func
)dump_set_clipboard_viewer_reply
,
4993 (dump_func
)dump_open_token_reply
,
4994 (dump_func
)dump_set_global_windows_reply
,
4995 (dump_func
)dump_adjust_token_privileges_reply
,
4996 (dump_func
)dump_get_token_privileges_reply
,
4997 (dump_func
)dump_check_token_privileges_reply
,
4998 (dump_func
)dump_duplicate_token_reply
,
4999 (dump_func
)dump_access_check_reply
,
5000 (dump_func
)dump_get_token_sid_reply
,
5001 (dump_func
)dump_get_token_groups_reply
,
5002 (dump_func
)dump_get_token_default_dacl_reply
,
5005 (dump_func
)dump_get_security_object_reply
,
5006 (dump_func
)dump_get_system_handles_reply
,
5007 (dump_func
)dump_create_mailslot_reply
,
5008 (dump_func
)dump_set_mailslot_info_reply
,
5009 (dump_func
)dump_create_directory_reply
,
5010 (dump_func
)dump_open_directory_reply
,
5011 (dump_func
)dump_get_directory_entry_reply
,
5012 (dump_func
)dump_create_symlink_reply
,
5013 (dump_func
)dump_open_symlink_reply
,
5014 (dump_func
)dump_query_symlink_reply
,
5015 (dump_func
)dump_get_object_info_reply
,
5016 (dump_func
)dump_get_object_type_reply
,
5018 (dump_func
)dump_get_token_impersonation_level_reply
,
5019 (dump_func
)dump_allocate_locally_unique_id_reply
,
5020 (dump_func
)dump_create_device_manager_reply
,
5021 (dump_func
)dump_create_device_reply
,
5023 (dump_func
)dump_get_next_device_request_reply
,
5024 (dump_func
)dump_make_process_system_reply
,
5025 (dump_func
)dump_get_token_statistics_reply
,
5026 (dump_func
)dump_create_completion_reply
,
5027 (dump_func
)dump_open_completion_reply
,
5029 (dump_func
)dump_remove_completion_reply
,
5030 (dump_func
)dump_query_completion_reply
,
5035 (dump_func
)dump_get_window_layered_info_reply
,
5037 (dump_func
)dump_alloc_user_handle_reply
,
5039 (dump_func
)dump_set_cursor_reply
,
5041 (dump_func
)dump_get_suspend_context_reply
,
5043 (dump_func
)dump_create_job_reply
,
5044 (dump_func
)dump_open_job_reply
,
5052 static const char * const req_names
[REQ_NB_REQUESTS
] = {
5054 "get_new_process_info",
5057 "init_process_done",
5059 "terminate_process",
5083 "create_keyed_event",
5090 "release_semaphore",
5095 "alloc_file_handle",
5096 "get_handle_unix_name",
5098 "get_directory_cache_entry",
5104 "accept_into_socket",
5108 "enable_socket_event",
5109 "set_socket_deferred",
5112 "get_console_renderer_events",
5114 "get_console_wait_event",
5117 "set_console_input_info",
5118 "get_console_input_info",
5119 "append_console_input_history",
5120 "get_console_input_history",
5121 "create_console_output",
5122 "set_console_output_info",
5123 "get_console_output_info",
5124 "write_console_input",
5125 "read_console_input",
5126 "write_console_output",
5127 "fill_console_output",
5128 "read_console_output",
5129 "move_console_output",
5130 "send_console_signal",
5131 "read_directory_changes",
5136 "get_mapping_committed_range",
5137 "add_mapping_committed_range",
5142 "queue_exception_event",
5143 "get_exception_status",
5144 "continue_debug_event",
5147 "set_debugger_kill_on_exit",
5148 "read_process_memory",
5149 "write_process_memory",
5162 "set_registry_notification",
5168 "get_thread_context",
5169 "set_thread_context",
5170 "get_selector_entry",
5174 "get_atom_information",
5175 "set_atom_information",
5182 "get_process_idle_event",
5184 "post_quit_message",
5185 "send_hardware_message",
5188 "accept_hardware_message",
5189 "get_message_reply",
5202 "create_named_pipe",
5203 "get_named_pipe_info",
5204 "set_named_pipe_info",
5207 "get_desktop_window",
5212 "get_window_parents",
5213 "get_window_children",
5214 "get_window_children_from_point",
5217 "get_window_rectangles",
5220 "get_windows_offset",
5221 "get_visible_region",
5222 "get_surface_region",
5223 "get_window_region",
5224 "set_window_region",
5225 "get_update_region",
5226 "update_window_zorder",
5228 "set_window_property",
5229 "remove_window_property",
5230 "get_window_property",
5231 "get_window_properties",
5232 "create_winstation",
5235 "get_process_winstation",
5236 "set_process_winstation",
5240 "open_input_desktop",
5242 "get_thread_desktop",
5243 "set_thread_desktop",
5245 "set_user_object_info",
5247 "unregister_hotkey",
5248 "attach_thread_input",
5250 "get_last_input_time",
5253 "set_foreground_window",
5255 "set_active_window",
5256 "set_capture_window",
5262 "finish_hook_chain",
5269 "set_clipboard_info",
5271 "set_clipboard_data",
5272 "get_clipboard_data",
5273 "get_clipboard_formats",
5274 "enum_clipboard_formats",
5275 "release_clipboard",
5276 "get_clipboard_info",
5277 "set_clipboard_viewer",
5278 "add_clipboard_listener",
5279 "remove_clipboard_listener",
5281 "set_global_windows",
5282 "adjust_token_privileges",
5283 "get_token_privileges",
5284 "check_token_privileges",
5289 "get_token_default_dacl",
5290 "set_token_default_dacl",
5291 "set_security_object",
5292 "get_security_object",
5293 "get_system_handles",
5295 "set_mailslot_info",
5298 "get_directory_entry",
5305 "get_token_impersonation_level",
5306 "allocate_locally_unique_id",
5307 "create_device_manager",
5310 "get_next_device_request",
5311 "make_process_system",
5312 "get_token_statistics",
5313 "create_completion",
5316 "remove_completion",
5318 "set_completion_info",
5319 "add_fd_completion",
5322 "get_window_layered_info",
5323 "set_window_layered_info",
5324 "alloc_user_handle",
5327 "update_rawinput_devices",
5328 "get_suspend_context",
5329 "set_suspend_context",
5335 "set_job_completion_port",
5345 { "ABANDONED_WAIT_0", STATUS_ABANDONED_WAIT_0
},
5346 { "ACCESS_DENIED", STATUS_ACCESS_DENIED
},
5347 { "ACCESS_VIOLATION", STATUS_ACCESS_VIOLATION
},
5348 { "ADDRESS_ALREADY_ASSOCIATED", STATUS_ADDRESS_ALREADY_ASSOCIATED
},
5349 { "ALERTED", STATUS_ALERTED
},
5350 { "ALIAS_EXISTS", STATUS_ALIAS_EXISTS
},
5351 { "BAD_DEVICE_TYPE", STATUS_BAD_DEVICE_TYPE
},
5352 { "BAD_IMPERSONATION_LEVEL", STATUS_BAD_IMPERSONATION_LEVEL
},
5353 { "BREAKPOINT", STATUS_BREAKPOINT
},
5354 { "BUFFER_OVERFLOW", STATUS_BUFFER_OVERFLOW
},
5355 { "BUFFER_TOO_SMALL", STATUS_BUFFER_TOO_SMALL
},
5356 { "CANCELLED", STATUS_CANCELLED
},
5357 { "CANNOT_DELETE", STATUS_CANNOT_DELETE
},
5358 { "CANT_OPEN_ANONYMOUS", STATUS_CANT_OPEN_ANONYMOUS
},
5359 { "CANT_WAIT", STATUS_CANT_WAIT
},
5360 { "CHILD_MUST_BE_VOLATILE", STATUS_CHILD_MUST_BE_VOLATILE
},
5361 { "CONNECTION_ABORTED", STATUS_CONNECTION_ABORTED
},
5362 { "CONNECTION_DISCONNECTED", STATUS_CONNECTION_DISCONNECTED
},
5363 { "CONNECTION_REFUSED", STATUS_CONNECTION_REFUSED
},
5364 { "CONNECTION_RESET", STATUS_CONNECTION_RESET
},
5365 { "DEBUGGER_INACTIVE", STATUS_DEBUGGER_INACTIVE
},
5366 { "DEVICE_BUSY", STATUS_DEVICE_BUSY
},
5367 { "DIRECTORY_NOT_EMPTY", STATUS_DIRECTORY_NOT_EMPTY
},
5368 { "DISK_FULL", STATUS_DISK_FULL
},
5369 { "DLL_NOT_FOUND", STATUS_DLL_NOT_FOUND
},
5370 { "ERROR_CLASS_ALREADY_EXISTS", 0xc0010000 | ERROR_CLASS_ALREADY_EXISTS
},
5371 { "ERROR_CLASS_DOES_NOT_EXIST", 0xc0010000 | ERROR_CLASS_DOES_NOT_EXIST
},
5372 { "ERROR_CLASS_HAS_WINDOWS", 0xc0010000 | ERROR_CLASS_HAS_WINDOWS
},
5373 { "ERROR_CLIPBOARD_NOT_OPEN", 0xc0010000 | ERROR_CLIPBOARD_NOT_OPEN
},
5374 { "ERROR_HOTKEY_ALREADY_REGISTERED", 0xc0010000 | ERROR_HOTKEY_ALREADY_REGISTERED
},
5375 { "ERROR_HOTKEY_NOT_REGISTERED", 0xc0010000 | ERROR_HOTKEY_NOT_REGISTERED
},
5376 { "ERROR_INVALID_CURSOR_HANDLE", 0xc0010000 | ERROR_INVALID_CURSOR_HANDLE
},
5377 { "ERROR_INVALID_INDEX", 0xc0010000 | ERROR_INVALID_INDEX
},
5378 { "ERROR_INVALID_WINDOW_HANDLE", 0xc0010000 | ERROR_INVALID_WINDOW_HANDLE
},
5379 { "ERROR_NO_MORE_USER_HANDLES", 0xc0010000 | ERROR_NO_MORE_USER_HANDLES
},
5380 { "ERROR_WINDOW_OF_OTHER_THREAD", 0xc0010000 | ERROR_WINDOW_OF_OTHER_THREAD
},
5381 { "FILE_DELETED", STATUS_FILE_DELETED
},
5382 { "FILE_IS_A_DIRECTORY", STATUS_FILE_IS_A_DIRECTORY
},
5383 { "FILE_LOCK_CONFLICT", STATUS_FILE_LOCK_CONFLICT
},
5384 { "GENERIC_NOT_MAPPED", STATUS_GENERIC_NOT_MAPPED
},
5385 { "HANDLES_CLOSED", STATUS_HANDLES_CLOSED
},
5386 { "HANDLE_NOT_CLOSABLE", STATUS_HANDLE_NOT_CLOSABLE
},
5387 { "HOST_UNREACHABLE", STATUS_HOST_UNREACHABLE
},
5388 { "ILLEGAL_FUNCTION", STATUS_ILLEGAL_FUNCTION
},
5389 { "INSTANCE_NOT_AVAILABLE", STATUS_INSTANCE_NOT_AVAILABLE
},
5390 { "INSUFFICIENT_RESOURCES", STATUS_INSUFFICIENT_RESOURCES
},
5391 { "INVALID_CID", STATUS_INVALID_CID
},
5392 { "INVALID_DEVICE_REQUEST", STATUS_INVALID_DEVICE_REQUEST
},
5393 { "INVALID_FILE_FOR_SECTION", STATUS_INVALID_FILE_FOR_SECTION
},
5394 { "INVALID_HANDLE", STATUS_INVALID_HANDLE
},
5395 { "INVALID_IMAGE_FORMAT", STATUS_INVALID_IMAGE_FORMAT
},
5396 { "INVALID_IMAGE_NE_FORMAT", STATUS_INVALID_IMAGE_NE_FORMAT
},
5397 { "INVALID_IMAGE_NOT_MZ", STATUS_INVALID_IMAGE_NOT_MZ
},
5398 { "INVALID_IMAGE_PROTECT", STATUS_INVALID_IMAGE_PROTECT
},
5399 { "INVALID_IMAGE_WIN_64", STATUS_INVALID_IMAGE_WIN_64
},
5400 { "INVALID_LOCK_SEQUENCE", STATUS_INVALID_LOCK_SEQUENCE
},
5401 { "INVALID_OWNER", STATUS_INVALID_OWNER
},
5402 { "INVALID_PARAMETER", STATUS_INVALID_PARAMETER
},
5403 { "INVALID_SECURITY_DESCR", STATUS_INVALID_SECURITY_DESCR
},
5404 { "IO_TIMEOUT", STATUS_IO_TIMEOUT
},
5405 { "KEY_DELETED", STATUS_KEY_DELETED
},
5406 { "MAPPED_FILE_SIZE_ZERO", STATUS_MAPPED_FILE_SIZE_ZERO
},
5407 { "MORE_PROCESSING_REQUIRED", STATUS_MORE_PROCESSING_REQUIRED
},
5408 { "MUTANT_NOT_OWNED", STATUS_MUTANT_NOT_OWNED
},
5409 { "NAME_TOO_LONG", STATUS_NAME_TOO_LONG
},
5410 { "NETWORK_BUSY", STATUS_NETWORK_BUSY
},
5411 { "NETWORK_UNREACHABLE", STATUS_NETWORK_UNREACHABLE
},
5412 { "NOT_ALL_ASSIGNED", STATUS_NOT_ALL_ASSIGNED
},
5413 { "NOT_A_DIRECTORY", STATUS_NOT_A_DIRECTORY
},
5414 { "NOT_FOUND", STATUS_NOT_FOUND
},
5415 { "NOT_IMPLEMENTED", STATUS_NOT_IMPLEMENTED
},
5416 { "NOT_REGISTRY_FILE", STATUS_NOT_REGISTRY_FILE
},
5417 { "NOT_SUPPORTED", STATUS_NOT_SUPPORTED
},
5418 { "NO_DATA_DETECTED", STATUS_NO_DATA_DETECTED
},
5419 { "NO_IMPERSONATION_TOKEN", STATUS_NO_IMPERSONATION_TOKEN
},
5420 { "NO_MEMORY", STATUS_NO_MEMORY
},
5421 { "NO_MORE_ENTRIES", STATUS_NO_MORE_ENTRIES
},
5422 { "NO_MORE_FILES", STATUS_NO_MORE_FILES
},
5423 { "NO_SUCH_DEVICE", STATUS_NO_SUCH_DEVICE
},
5424 { "NO_SUCH_FILE", STATUS_NO_SUCH_FILE
},
5425 { "NO_TOKEN", STATUS_NO_TOKEN
},
5426 { "OBJECT_NAME_COLLISION", STATUS_OBJECT_NAME_COLLISION
},
5427 { "OBJECT_NAME_EXISTS", STATUS_OBJECT_NAME_EXISTS
},
5428 { "OBJECT_NAME_INVALID", STATUS_OBJECT_NAME_INVALID
},
5429 { "OBJECT_NAME_NOT_FOUND", STATUS_OBJECT_NAME_NOT_FOUND
},
5430 { "OBJECT_PATH_INVALID", STATUS_OBJECT_PATH_INVALID
},
5431 { "OBJECT_PATH_NOT_FOUND", STATUS_OBJECT_PATH_NOT_FOUND
},
5432 { "OBJECT_PATH_SYNTAX_BAD", STATUS_OBJECT_PATH_SYNTAX_BAD
},
5433 { "OBJECT_TYPE_MISMATCH", STATUS_OBJECT_TYPE_MISMATCH
},
5434 { "PENDING", STATUS_PENDING
},
5435 { "PIPE_BUSY", STATUS_PIPE_BUSY
},
5436 { "PIPE_CONNECTED", STATUS_PIPE_CONNECTED
},
5437 { "PIPE_DISCONNECTED", STATUS_PIPE_DISCONNECTED
},
5438 { "PIPE_LISTENING", STATUS_PIPE_LISTENING
},
5439 { "PIPE_NOT_AVAILABLE", STATUS_PIPE_NOT_AVAILABLE
},
5440 { "PRIVILEGE_NOT_HELD", STATUS_PRIVILEGE_NOT_HELD
},
5441 { "PROCESS_IN_JOB", STATUS_PROCESS_IN_JOB
},
5442 { "PROCESS_IS_TERMINATING", STATUS_PROCESS_IS_TERMINATING
},
5443 { "SECTION_TOO_BIG", STATUS_SECTION_TOO_BIG
},
5444 { "SEMAPHORE_LIMIT_EXCEEDED", STATUS_SEMAPHORE_LIMIT_EXCEEDED
},
5445 { "SHARING_VIOLATION", STATUS_SHARING_VIOLATION
},
5446 { "SHUTDOWN_IN_PROGRESS", STATUS_SHUTDOWN_IN_PROGRESS
},
5447 { "SUSPEND_COUNT_EXCEEDED", STATUS_SUSPEND_COUNT_EXCEEDED
},
5448 { "THREAD_IS_TERMINATING", STATUS_THREAD_IS_TERMINATING
},
5449 { "TIMEOUT", STATUS_TIMEOUT
},
5450 { "TOO_MANY_OPENED_FILES", STATUS_TOO_MANY_OPENED_FILES
},
5451 { "UNSUCCESSFUL", STATUS_UNSUCCESSFUL
},
5452 { "USER_APC", STATUS_USER_APC
},
5453 { "USER_MAPPED_FILE", STATUS_USER_MAPPED_FILE
},
5454 { "VOLUME_DISMOUNTED", STATUS_VOLUME_DISMOUNTED
},
5455 { "WAS_LOCKED", STATUS_WAS_LOCKED
},
5459 /* ### make_requests end ### */
5460 /* Everything above this line is generated automatically by tools/make_requests */
5462 static const char *get_status_name( unsigned int status
)
5465 static char buffer
[10];
5469 for (i
= 0; status_names
[i
].name
; i
++)
5470 if (status_names
[i
].value
== status
) return status_names
[i
].name
;
5472 sprintf( buffer
, "%x", status
);
5476 void trace_request(void)
5478 enum request req
= current
->req
.request_header
.req
;
5479 if (req
< REQ_NB_REQUESTS
)
5481 fprintf( stderr
, "%04x: %s(", current
->id
, req_names
[req
] );
5482 if (req_dumpers
[req
])
5484 cur_data
= get_req_data();
5485 cur_size
= get_req_data_size();
5486 req_dumpers
[req
]( ¤t
->req
);
5488 fprintf( stderr
, " )\n" );
5490 else fprintf( stderr
, "%04x: %d(?)\n", current
->id
, req
);
5493 void trace_reply( enum request req
, const union generic_reply
*reply
)
5495 if (req
< REQ_NB_REQUESTS
)
5497 fprintf( stderr
, "%04x: %s() = %s",
5498 current
->id
, req_names
[req
], get_status_name(current
->error
) );
5499 if (reply_dumpers
[req
])
5501 fprintf( stderr
, " {" );
5502 cur_data
= current
->reply_data
;
5503 cur_size
= reply
->reply_header
.reply_size
;
5504 reply_dumpers
[req
]( reply
);
5505 fprintf( stderr
, " }" );
5507 fputc( '\n', stderr
);
5509 else fprintf( stderr
, "%04x: %d() = %s\n",
5510 current
->id
, req
, get_status_name(current
->error
) );