2 * Server request tracing
4 * Copyright (C) 1999 Alexandre Julliard
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
22 #include "wine/port.h"
27 #include <sys/types.h>
34 #define WIN32_NO_STATUS
42 #include "ddk/ntddser.h"
49 static const void *cur_data
;
50 static data_size_t cur_size
;
52 static const char *get_status_name( unsigned int status
);
54 /* utility functions */
56 static inline void remove_data( data_size_t size
)
58 cur_data
= (const char *)cur_data
+ size
;
62 static void dump_uints( const char *prefix
, const unsigned int *ptr
, int len
)
64 fprintf( stderr
, "%s{", prefix
);
67 fprintf( stderr
, "%08x", *ptr
++ );
68 if (--len
) fputc( ',', stderr
);
73 static void dump_handles( const char *prefix
, const obj_handle_t
*data
, data_size_t size
)
75 data_size_t len
= size
/ sizeof(*data
);
77 fprintf( stderr
,"%s{", prefix
);
80 fprintf( stderr
, "%04x", *data
++ );
81 if (--len
) fputc( ',', stderr
);
86 static void dump_timeout( const char *prefix
, const timeout_t
*time
)
88 fprintf( stderr
, "%s%s", prefix
, get_timeout_str(*time
) );
91 static void dump_uint64( const char *prefix
, const unsigned __int64
*val
)
93 if ((unsigned int)*val
!= *val
)
94 fprintf( stderr
, "%s%x%08x", prefix
, (unsigned int)(*val
>> 32), (unsigned int)*val
);
96 fprintf( stderr
, "%s%08x", prefix
, (unsigned int)*val
);
99 static void dump_rectangle( const char *prefix
, const rectangle_t
*rect
)
101 fprintf( stderr
, "%s{%d,%d;%d,%d}", prefix
,
102 rect
->left
, rect
->top
, rect
->right
, rect
->bottom
);
105 static void dump_char_info( const char *prefix
, const char_info_t
*info
)
107 fprintf( stderr
, "%s{'", prefix
);
108 dump_strW( &info
->ch
, 1, stderr
, "\'\'" );
109 fprintf( stderr
, "',%04x}", info
->attr
);
112 static void dump_ioctl_code( const char *prefix
, const ioctl_code_t
*code
)
116 #define CASE(c) case c: fprintf( stderr, "%s%s", prefix, #c ); break
117 CASE(FSCTL_DISMOUNT_VOLUME
);
118 CASE(FSCTL_PIPE_DISCONNECT
);
119 CASE(FSCTL_PIPE_LISTEN
);
120 CASE(FSCTL_PIPE_PEEK
);
121 CASE(FSCTL_PIPE_WAIT
);
122 CASE(IOCTL_SERIAL_GET_TIMEOUTS
);
123 CASE(IOCTL_SERIAL_GET_WAIT_MASK
);
124 CASE(IOCTL_SERIAL_SET_TIMEOUTS
);
125 CASE(IOCTL_SERIAL_SET_WAIT_MASK
);
126 CASE(WS_SIO_ADDRESS_LIST_CHANGE
);
127 default: fprintf( stderr
, "%s%08x", prefix
, *code
); break;
132 static void dump_cpu_type( const char *prefix
, const cpu_type_t
*code
)
136 #define CASE(c) case CPU_##c: fprintf( stderr, "%s%s", prefix, #c ); break
142 default: fprintf( stderr
, "%s%u", prefix
, *code
); break;
147 static void dump_apc_call( const char *prefix
, const apc_call_t
*call
)
149 fprintf( stderr
, "%s{", prefix
);
153 fprintf( stderr
, "APC_NONE" );
156 dump_uint64( "APC_USER,func=", &call
->user
.func
);
157 dump_uint64( ",args={", &call
->user
.args
[0] );
158 dump_uint64( ",", &call
->user
.args
[1] );
159 dump_uint64( ",", &call
->user
.args
[2] );
160 fputc( '}', stderr
);
163 dump_timeout( "APC_TIMER,time=", &call
->timer
.time
);
164 dump_uint64( ",arg=", &call
->timer
.arg
);
167 dump_uint64( "APC_ASYNC_IO,user=", &call
->async_io
.user
);
168 dump_uint64( ",sb=", &call
->async_io
.sb
);
169 fprintf( stderr
, ",status=%s", get_status_name(call
->async_io
.status
) );
171 case APC_VIRTUAL_ALLOC
:
172 dump_uint64( "APC_VIRTUAL_ALLOC,addr==", &call
->virtual_alloc
.addr
);
173 dump_uint64( ",size=", &call
->virtual_alloc
.size
);
174 fprintf( stderr
, ",zero_bits=%u,op_type=%x,prot=%x",
175 call
->virtual_alloc
.zero_bits
, call
->virtual_alloc
.op_type
,
176 call
->virtual_alloc
.prot
);
178 case APC_VIRTUAL_FREE
:
179 dump_uint64( "APC_VIRTUAL_FREE,addr=", &call
->virtual_free
.addr
);
180 dump_uint64( ",size=", &call
->virtual_free
.size
);
181 fprintf( stderr
, ",op_type=%x", call
->virtual_free
.op_type
);
183 case APC_VIRTUAL_QUERY
:
184 dump_uint64( "APC_VIRTUAL_QUERY,addr=", &call
->virtual_query
.addr
);
186 case APC_VIRTUAL_PROTECT
:
187 dump_uint64( "APC_VIRTUAL_PROTECT,addr=", &call
->virtual_protect
.addr
);
188 dump_uint64( ",size=", &call
->virtual_protect
.size
);
189 fprintf( stderr
, ",prot=%x", call
->virtual_protect
.prot
);
191 case APC_VIRTUAL_FLUSH
:
192 dump_uint64( "APC_VIRTUAL_FLUSH,addr=", &call
->virtual_flush
.addr
);
193 dump_uint64( ",size=", &call
->virtual_flush
.size
);
195 case APC_VIRTUAL_LOCK
:
196 dump_uint64( "APC_VIRTUAL_LOCK,addr=", &call
->virtual_lock
.addr
);
197 dump_uint64( ",size=", &call
->virtual_lock
.size
);
199 case APC_VIRTUAL_UNLOCK
:
200 dump_uint64( "APC_VIRTUAL_UNLOCK,addr=", &call
->virtual_unlock
.addr
);
201 dump_uint64( ",size=", &call
->virtual_unlock
.size
);
204 fprintf( stderr
, "APC_MAP_VIEW,handle=%04x", call
->map_view
.handle
);
205 dump_uint64( ",addr=", &call
->map_view
.addr
);
206 dump_uint64( ",size=", &call
->map_view
.size
);
207 dump_uint64( ",offset=", &call
->map_view
.offset
);
208 fprintf( stderr
, ",zero_bits=%u,alloc_type=%x,prot=%x",
209 call
->map_view
.zero_bits
, call
->map_view
.alloc_type
, call
->map_view
.prot
);
212 dump_uint64( "APC_UNMAP_VIEW,addr=", &call
->unmap_view
.addr
);
214 case APC_CREATE_THREAD
:
215 dump_uint64( "APC_CREATE_THREAD,func=", &call
->create_thread
.func
);
216 dump_uint64( ",arg=", &call
->create_thread
.arg
);
217 dump_uint64( ",reserve=", &call
->create_thread
.reserve
);
218 dump_uint64( ",commit=", &call
->create_thread
.commit
);
219 fprintf( stderr
, ",suspend=%u", call
->create_thread
.suspend
);
222 fprintf( stderr
, "type=%u", call
->type
);
225 fputc( '}', stderr
);
228 static void dump_apc_result( const char *prefix
, const apc_result_t
*result
)
230 fprintf( stderr
, "%s{", prefix
);
236 fprintf( stderr
, "APC_ASYNC_IO,status=%s,total=%u",
237 get_status_name( result
->async_io
.status
), result
->async_io
.total
);
239 case APC_VIRTUAL_ALLOC
:
240 fprintf( stderr
, "APC_VIRTUAL_ALLOC,status=%s",
241 get_status_name( result
->virtual_alloc
.status
));
242 dump_uint64( ",addr=", &result
->virtual_alloc
.addr
);
243 dump_uint64( ",size=", &result
->virtual_alloc
.size
);
245 case APC_VIRTUAL_FREE
:
246 fprintf( stderr
, "APC_VIRTUAL_FREE,status=%s",
247 get_status_name( result
->virtual_free
.status
));
248 dump_uint64( ",addr=", &result
->virtual_free
.addr
);
249 dump_uint64( ",size=", &result
->virtual_free
.size
);
251 case APC_VIRTUAL_QUERY
:
252 fprintf( stderr
, "APC_VIRTUAL_QUERY,status=%s",
253 get_status_name( result
->virtual_query
.status
));
254 dump_uint64( ",base=", &result
->virtual_query
.base
);
255 dump_uint64( ",alloc_base=", &result
->virtual_query
.alloc_base
);
256 dump_uint64( ",size=", &result
->virtual_query
.size
);
257 fprintf( stderr
, ",state=%x,prot=%x,alloc_prot=%x,alloc_type=%x",
258 result
->virtual_query
.state
, result
->virtual_query
.prot
,
259 result
->virtual_query
.alloc_prot
, result
->virtual_query
.alloc_type
);
261 case APC_VIRTUAL_PROTECT
:
262 fprintf( stderr
, "APC_VIRTUAL_PROTECT,status=%s",
263 get_status_name( result
->virtual_protect
.status
));
264 dump_uint64( ",addr=", &result
->virtual_protect
.addr
);
265 dump_uint64( ",size=", &result
->virtual_protect
.size
);
266 fprintf( stderr
, ",prot=%x", result
->virtual_protect
.prot
);
268 case APC_VIRTUAL_FLUSH
:
269 fprintf( stderr
, "APC_VIRTUAL_FLUSH,status=%s",
270 get_status_name( result
->virtual_flush
.status
));
271 dump_uint64( ",addr=", &result
->virtual_flush
.addr
);
272 dump_uint64( ",size=", &result
->virtual_flush
.size
);
274 case APC_VIRTUAL_LOCK
:
275 fprintf( stderr
, "APC_VIRTUAL_LOCK,status=%s",
276 get_status_name( result
->virtual_lock
.status
));
277 dump_uint64( ",addr=", &result
->virtual_lock
.addr
);
278 dump_uint64( ",size=", &result
->virtual_lock
.size
);
280 case APC_VIRTUAL_UNLOCK
:
281 fprintf( stderr
, "APC_VIRTUAL_UNLOCK,status=%s",
282 get_status_name( result
->virtual_unlock
.status
));
283 dump_uint64( ",addr=", &result
->virtual_unlock
.addr
);
284 dump_uint64( ",size=", &result
->virtual_unlock
.size
);
287 fprintf( stderr
, "APC_MAP_VIEW,status=%s",
288 get_status_name( result
->map_view
.status
));
289 dump_uint64( ",addr=", &result
->map_view
.addr
);
290 dump_uint64( ",size=", &result
->map_view
.size
);
293 fprintf( stderr
, "APC_UNMAP_VIEW,status=%s",
294 get_status_name( result
->unmap_view
.status
) );
296 case APC_CREATE_THREAD
:
297 fprintf( stderr
, "APC_CREATE_THREAD,status=%s,tid=%04x,handle=%04x",
298 get_status_name( result
->create_thread
.status
),
299 result
->create_thread
.tid
, result
->create_thread
.handle
);
302 fprintf( stderr
, "type=%u", result
->type
);
305 fputc( '}', stderr
);
308 static void dump_async_data( const char *prefix
, const async_data_t
*data
)
310 fprintf( stderr
, "%s{handle=%04x,event=%04x", prefix
, data
->handle
, data
->event
);
311 dump_uint64( ",iosb=", &data
->iosb
);
312 dump_uint64( ",user=", &data
->user
);
313 dump_uint64( ",apc=", &data
->apc
);
314 dump_uint64( ",apc_context=", &data
->apc_context
);
315 fputc( '}', stderr
);
318 static void dump_irp_params( const char *prefix
, const irp_params_t
*data
)
323 fprintf( stderr
, "%s{major=CREATE,access=%08x,sharing=%08x,options=%08x",
324 prefix
, data
->create
.access
, data
->create
.sharing
, data
->create
.options
);
325 dump_uint64( ",device=", &data
->create
.device
);
326 fputc( '}', stderr
);
329 fprintf( stderr
, "%s{major=CLOSE", prefix
);
330 dump_uint64( ",file=", &data
->close
.file
);
331 fputc( '}', stderr
);
334 fprintf( stderr
, "%s{major=READ,key=%08x", prefix
, data
->read
.key
);
335 dump_uint64( ",pos=", &data
->read
.pos
);
336 dump_uint64( ",file=", &data
->read
.file
);
337 fputc( '}', stderr
);
340 fprintf( stderr
, "%s{major=WRITE,key=%08x", prefix
, data
->write
.key
);
341 dump_uint64( ",pos=", &data
->write
.pos
);
342 dump_uint64( ",file=", &data
->write
.file
);
343 fputc( '}', stderr
);
345 case IRP_MJ_FLUSH_BUFFERS
:
346 fprintf( stderr
, "%s{major=FLUSH_BUFFERS", prefix
);
347 dump_uint64( ",file=", &data
->flush
.file
);
348 fputc( '}', stderr
);
350 case IRP_MJ_DEVICE_CONTROL
:
351 fprintf( stderr
, "%s{major=DEVICE_CONTROL", prefix
);
352 dump_ioctl_code( ",code=", &data
->ioctl
.code
);
353 dump_uint64( ",file=", &data
->ioctl
.file
);
354 fputc( '}', stderr
);
356 case IRP_MJ_MAXIMUM_FUNCTION
+ 1: /* invalid */
357 fprintf( stderr
, "%s{}", prefix
);
360 fprintf( stderr
, "%s{major=%u}", prefix
, data
->major
);
365 static void dump_hw_input( const char *prefix
, const hw_input_t
*input
)
370 fprintf( stderr
, "%s{type=MOUSE,x=%d,y=%d,data=%08x,flags=%08x,time=%u",
371 prefix
, input
->mouse
.x
, input
->mouse
.y
, input
->mouse
.data
, input
->mouse
.flags
,
373 dump_uint64( ",info=", &input
->mouse
.info
);
374 fputc( '}', stderr
);
377 fprintf( stderr
, "%s{type=KEYBOARD,vkey=%04hx,scan=%04hx,flags=%08x,time=%u",
378 prefix
, input
->kbd
.vkey
, input
->kbd
.scan
, input
->kbd
.flags
, input
->kbd
.time
);
379 dump_uint64( ",info=", &input
->kbd
.info
);
380 fputc( '}', stderr
);
383 fprintf( stderr
, "%s{type=HARDWARE,msg=%04x", prefix
, input
->hw
.msg
);
384 dump_uint64( ",lparam=", &input
->hw
.lparam
);
385 fputc( '}', stderr
);
388 fprintf( stderr
, "%s{type=%04x}", prefix
, input
->type
);
393 static void dump_luid( const char *prefix
, const luid_t
*luid
)
395 fprintf( stderr
, "%s%d.%u", prefix
, luid
->high_part
, luid
->low_part
);
398 static void dump_varargs_ints( const char *prefix
, data_size_t size
)
400 const int *data
= cur_data
;
401 data_size_t len
= size
/ sizeof(*data
);
403 fprintf( stderr
,"%s{", prefix
);
406 fprintf( stderr
, "%d", *data
++ );
407 if (--len
) fputc( ',', stderr
);
409 fputc( '}', stderr
);
413 static void dump_varargs_uints( const char *prefix
, data_size_t size
)
415 const unsigned int *data
= cur_data
;
417 dump_uints( prefix
, data
, size
/ sizeof(*data
) );
421 static void dump_varargs_uints64( const char *prefix
, data_size_t size
)
423 const unsigned __int64
*data
= cur_data
;
424 data_size_t len
= size
/ sizeof(*data
);
426 fprintf( stderr
,"%s{", prefix
);
429 dump_uint64( "", data
++ );
430 if (--len
) fputc( ',', stderr
);
432 fputc( '}', stderr
);
436 static void dump_varargs_apc_result( const char *prefix
, data_size_t size
)
438 const apc_result_t
*result
= cur_data
;
440 if (size
>= sizeof(*result
))
442 dump_apc_result( prefix
, result
);
443 size
= sizeof(*result
);
448 static void dump_varargs_select_op( const char *prefix
, data_size_t size
)
454 fprintf( stderr
, "%s{}", prefix
);
457 memset( &data
, 0, sizeof(data
) );
458 memcpy( &data
, cur_data
, min( size
, sizeof(data
) ));
460 fprintf( stderr
, "%s{", prefix
);
464 fprintf( stderr
, "NONE" );
467 case SELECT_WAIT_ALL
:
468 fprintf( stderr
, "%s", data
.op
== SELECT_WAIT
? "WAIT" : "WAIT_ALL" );
469 if (size
> offsetof( select_op_t
, wait
.handles
))
470 dump_handles( ",handles=", data
.wait
.handles
,
471 min( size
, sizeof(data
.wait
) ) - offsetof( select_op_t
, wait
.handles
));
473 case SELECT_SIGNAL_AND_WAIT
:
474 fprintf( stderr
, "SIGNAL_AND_WAIT,signal=%04x,wait=%04x",
475 data
.signal_and_wait
.signal
, data
.signal_and_wait
.wait
);
477 case SELECT_KEYED_EVENT_WAIT
:
478 case SELECT_KEYED_EVENT_RELEASE
:
479 fprintf( stderr
, "KEYED_EVENT_%s,handle=%04x",
480 data
.op
== SELECT_KEYED_EVENT_WAIT
? "WAIT" : "RELEASE",
481 data
.keyed_event
.handle
);
482 dump_uint64( ",key=", &data
.keyed_event
.key
);
485 fprintf( stderr
, "op=%u", data
.op
);
488 fputc( '}', stderr
);
492 static void dump_varargs_user_handles( const char *prefix
, data_size_t size
)
494 const user_handle_t
*data
= cur_data
;
495 data_size_t len
= size
/ sizeof(*data
);
497 fprintf( stderr
,"%s{", prefix
);
500 fprintf( stderr
, "%08x", *data
++ );
501 if (--len
) fputc( ',', stderr
);
503 fputc( '}', stderr
);
507 static void dump_varargs_bytes( const char *prefix
, data_size_t size
)
509 const unsigned char *data
= cur_data
;
510 data_size_t len
= min( 1024, size
);
512 fprintf( stderr
,"%s{", prefix
);
515 fprintf( stderr
, "%02x", *data
++ );
516 if (--len
) fputc( ',', stderr
);
518 if (size
> 1024) fprintf( stderr
, "...(total %u)", size
);
519 fputc( '}', stderr
);
523 static void dump_varargs_string( const char *prefix
, data_size_t size
)
525 fprintf( stderr
, "%s\"%.*s\"", prefix
, (int)size
, (const char *)cur_data
);
529 static void dump_varargs_unicode_str( const char *prefix
, data_size_t size
)
531 fprintf( stderr
, "%sL\"", prefix
);
532 dump_strW( cur_data
, size
/ sizeof(WCHAR
), stderr
, "\"\"" );
533 fputc( '\"', stderr
);
537 static void dump_varargs_context( const char *prefix
, data_size_t size
)
539 const context_t
*context
= cur_data
;
545 fprintf( stderr
, "%s{}", prefix
);
548 size
= min( size
, sizeof(ctx
) );
549 memset( &ctx
, 0, sizeof(ctx
) );
550 memcpy( &ctx
, context
, size
);
552 fprintf( stderr
,"%s{", prefix
);
553 dump_cpu_type( "cpu=", &ctx
.cpu
);
557 if (ctx
.flags
& SERVER_CTX_CONTROL
)
558 fprintf( stderr
, ",eip=%08x,esp=%08x,ebp=%08x,eflags=%08x,cs=%04x,ss=%04x",
559 ctx
.ctl
.i386_regs
.eip
, ctx
.ctl
.i386_regs
.esp
, ctx
.ctl
.i386_regs
.ebp
,
560 ctx
.ctl
.i386_regs
.eflags
, ctx
.ctl
.i386_regs
.cs
, ctx
.ctl
.i386_regs
.ss
);
561 if (ctx
.flags
& SERVER_CTX_SEGMENTS
)
562 fprintf( stderr
, ",ds=%04x,es=%04x,fs=%04x,gs=%04x",
563 ctx
.seg
.i386_regs
.ds
, ctx
.seg
.i386_regs
.es
,
564 ctx
.seg
.i386_regs
.fs
, ctx
.seg
.i386_regs
.gs
);
565 if (ctx
.flags
& SERVER_CTX_INTEGER
)
566 fprintf( stderr
, ",eax=%08x,ebx=%08x,ecx=%08x,edx=%08x,esi=%08x,edi=%08x",
567 ctx
.integer
.i386_regs
.eax
, ctx
.integer
.i386_regs
.ebx
, ctx
.integer
.i386_regs
.ecx
,
568 ctx
.integer
.i386_regs
.edx
, ctx
.integer
.i386_regs
.esi
, ctx
.integer
.i386_regs
.edi
);
569 if (ctx
.flags
& SERVER_CTX_DEBUG_REGISTERS
)
570 fprintf( stderr
, ",dr0=%08x,dr1=%08x,dr2=%08x,dr3=%08x,dr6=%08x,dr7=%08x",
571 ctx
.debug
.i386_regs
.dr0
, ctx
.debug
.i386_regs
.dr1
, ctx
.debug
.i386_regs
.dr2
,
572 ctx
.debug
.i386_regs
.dr3
, ctx
.debug
.i386_regs
.dr6
, ctx
.debug
.i386_regs
.dr7
);
573 if (ctx
.flags
& SERVER_CTX_FLOATING_POINT
)
575 fprintf( stderr
, ",fp.ctrl=%08x,fp.status=%08x,fp.tag=%08x,fp.err_off=%08x,fp.err_sel=%08x",
576 ctx
.fp
.i386_regs
.ctrl
, ctx
.fp
.i386_regs
.status
, ctx
.fp
.i386_regs
.tag
,
577 ctx
.fp
.i386_regs
.err_off
, ctx
.fp
.i386_regs
.err_sel
);
578 fprintf( stderr
, ",fp.data_off=%08x,fp.data_sel=%08x,fp.cr0npx=%08x",
579 ctx
.fp
.i386_regs
.data_off
, ctx
.fp
.i386_regs
.data_sel
, ctx
.fp
.i386_regs
.cr0npx
);
580 for (i
= 0; i
< 8; i
++)
583 memcpy( ®
, &ctx
.fp
.i386_regs
.regs
[10 * i
], 10 );
584 fprintf( stderr
, ",fp.reg%u=%Lg", i
, reg
);
587 if (ctx
.flags
& SERVER_CTX_EXTENDED_REGISTERS
)
588 dump_uints( ",extended=", (const unsigned int *)ctx
.ext
.i386_regs
,
589 sizeof(ctx
.ext
.i386_regs
) / sizeof(int) );
592 if (ctx
.flags
& SERVER_CTX_CONTROL
)
594 dump_uint64( ",rip=", &ctx
.ctl
.x86_64_regs
.rip
);
595 dump_uint64( ",rbp=", &ctx
.ctl
.x86_64_regs
.rbp
);
596 dump_uint64( ",rsp=", &ctx
.ctl
.x86_64_regs
.rsp
);
597 fprintf( stderr
, ",cs=%04x,ss=%04x,flags=%08x",
598 ctx
.ctl
.x86_64_regs
.cs
, ctx
.ctl
.x86_64_regs
.ss
, ctx
.ctl
.x86_64_regs
.flags
);
600 if (ctx
.flags
& SERVER_CTX_INTEGER
)
602 dump_uint64( ",rax=", &ctx
.integer
.x86_64_regs
.rax
);
603 dump_uint64( ",rbx=", &ctx
.integer
.x86_64_regs
.rbx
);
604 dump_uint64( ",rcx=", &ctx
.integer
.x86_64_regs
.rcx
);
605 dump_uint64( ",rdx=", &ctx
.integer
.x86_64_regs
.rdx
);
606 dump_uint64( ",rsi=", &ctx
.integer
.x86_64_regs
.rsi
);
607 dump_uint64( ",rdi=", &ctx
.integer
.x86_64_regs
.rdi
);
608 dump_uint64( ",r8=", &ctx
.integer
.x86_64_regs
.r8
);
609 dump_uint64( ",r9=", &ctx
.integer
.x86_64_regs
.r9
);
610 dump_uint64( ",r10=", &ctx
.integer
.x86_64_regs
.r10
);
611 dump_uint64( ",r11=", &ctx
.integer
.x86_64_regs
.r11
);
612 dump_uint64( ",r12=", &ctx
.integer
.x86_64_regs
.r12
);
613 dump_uint64( ",r13=", &ctx
.integer
.x86_64_regs
.r13
);
614 dump_uint64( ",r14=", &ctx
.integer
.x86_64_regs
.r14
);
615 dump_uint64( ",r15=", &ctx
.integer
.x86_64_regs
.r15
);
617 if (ctx
.flags
& SERVER_CTX_SEGMENTS
)
618 fprintf( stderr
, ",ds=%04x,es=%04x,fs=%04x,gs=%04x",
619 ctx
.seg
.x86_64_regs
.ds
, ctx
.seg
.x86_64_regs
.es
,
620 ctx
.seg
.x86_64_regs
.fs
, ctx
.seg
.x86_64_regs
.gs
);
621 if (ctx
.flags
& SERVER_CTX_DEBUG_REGISTERS
)
623 dump_uint64( ",dr0=", &ctx
.debug
.x86_64_regs
.dr0
);
624 dump_uint64( ",dr1=", &ctx
.debug
.x86_64_regs
.dr1
);
625 dump_uint64( ",dr2=", &ctx
.debug
.x86_64_regs
.dr2
);
626 dump_uint64( ",dr3=", &ctx
.debug
.x86_64_regs
.dr3
);
627 dump_uint64( ",dr6=", &ctx
.debug
.x86_64_regs
.dr6
);
628 dump_uint64( ",dr7=", &ctx
.debug
.x86_64_regs
.dr7
);
630 if (ctx
.flags
& SERVER_CTX_FLOATING_POINT
)
632 for (i
= 0; i
< 32; i
++)
633 fprintf( stderr
, ",fp%u=%08x%08x%08x%08x", i
,
634 (unsigned int)(ctx
.fp
.x86_64_regs
.fpregs
[i
].high
>> 32),
635 (unsigned int)ctx
.fp
.x86_64_regs
.fpregs
[i
].high
,
636 (unsigned int)(ctx
.fp
.x86_64_regs
.fpregs
[i
].low
>> 32),
637 (unsigned int)ctx
.fp
.x86_64_regs
.fpregs
[i
].low
);
641 if (ctx
.flags
& SERVER_CTX_CONTROL
)
642 fprintf( stderr
, ",iar=%08x,msr=%08x,ctr=%08x,lr=%08x,dar=%08x,dsisr=%08x,trap=%08x",
643 ctx
.ctl
.powerpc_regs
.iar
, ctx
.ctl
.powerpc_regs
.msr
, ctx
.ctl
.powerpc_regs
.ctr
,
644 ctx
.ctl
.powerpc_regs
.lr
, ctx
.ctl
.powerpc_regs
.dar
, ctx
.ctl
.powerpc_regs
.dsisr
,
645 ctx
.ctl
.powerpc_regs
.trap
);
646 if (ctx
.flags
& SERVER_CTX_INTEGER
)
648 for (i
= 0; i
< 32; i
++) fprintf( stderr
, ",gpr%u=%08x", i
, ctx
.integer
.powerpc_regs
.gpr
[i
] );
649 fprintf( stderr
, ",cr=%08x,xer=%08x",
650 ctx
.integer
.powerpc_regs
.cr
, ctx
.integer
.powerpc_regs
.xer
);
652 if (ctx
.flags
& SERVER_CTX_DEBUG_REGISTERS
)
653 for (i
= 0; i
< 8; i
++) fprintf( stderr
, ",dr%u=%08x", i
, ctx
.debug
.powerpc_regs
.dr
[i
] );
654 if (ctx
.flags
& SERVER_CTX_FLOATING_POINT
)
656 for (i
= 0; i
< 32; i
++) fprintf( stderr
, ",fpr%u=%g", i
, ctx
.fp
.powerpc_regs
.fpr
[i
] );
657 fprintf( stderr
, ",fpscr=%g", ctx
.fp
.powerpc_regs
.fpscr
);
661 if (ctx
.flags
& SERVER_CTX_CONTROL
)
662 fprintf( stderr
, ",sp=%08x,lr=%08x,pc=%08x,cpsr=%08x",
663 ctx
.ctl
.arm_regs
.sp
, ctx
.ctl
.arm_regs
.lr
,
664 ctx
.ctl
.arm_regs
.pc
, ctx
.ctl
.arm_regs
.cpsr
);
665 if (ctx
.flags
& SERVER_CTX_INTEGER
)
666 for (i
= 0; i
< 13; i
++) fprintf( stderr
, ",r%u=%08x", i
, ctx
.integer
.arm_regs
.r
[i
] );
669 if (ctx
.flags
& SERVER_CTX_CONTROL
)
671 dump_uint64( ",sp=", &ctx
.ctl
.arm64_regs
.sp
);
672 dump_uint64( ",pc=", &ctx
.ctl
.arm64_regs
.pc
);
673 dump_uint64( ",pstate=", &ctx
.ctl
.arm64_regs
.pstate
);
675 if (ctx
.flags
& SERVER_CTX_INTEGER
)
677 dump_uint64( ",x0=", &ctx
.integer
.arm64_regs
.x
[0] );
678 dump_uint64( ",x1=", &ctx
.integer
.arm64_regs
.x
[1] );
679 dump_uint64( ",x2=", &ctx
.integer
.arm64_regs
.x
[2] );
680 dump_uint64( ",x3=", &ctx
.integer
.arm64_regs
.x
[3] );
681 dump_uint64( ",x4=", &ctx
.integer
.arm64_regs
.x
[4] );
682 dump_uint64( ",x5=", &ctx
.integer
.arm64_regs
.x
[5] );
683 dump_uint64( ",x6=", &ctx
.integer
.arm64_regs
.x
[6] );
684 dump_uint64( ",x7=", &ctx
.integer
.arm64_regs
.x
[7] );
685 dump_uint64( ",x8=", &ctx
.integer
.arm64_regs
.x
[8] );
686 dump_uint64( ",x9=", &ctx
.integer
.arm64_regs
.x
[9] );
687 dump_uint64( ",x10=", &ctx
.integer
.arm64_regs
.x
[10] );
688 dump_uint64( ",x11=", &ctx
.integer
.arm64_regs
.x
[11] );
689 dump_uint64( ",x12=", &ctx
.integer
.arm64_regs
.x
[12] );
690 dump_uint64( ",x13=", &ctx
.integer
.arm64_regs
.x
[13] );
691 dump_uint64( ",x14=", &ctx
.integer
.arm64_regs
.x
[14] );
692 dump_uint64( ",x15=", &ctx
.integer
.arm64_regs
.x
[15] );
693 dump_uint64( ",x16=", &ctx
.integer
.arm64_regs
.x
[16] );
694 dump_uint64( ",x17=", &ctx
.integer
.arm64_regs
.x
[17] );
695 dump_uint64( ",x18=", &ctx
.integer
.arm64_regs
.x
[18] );
696 dump_uint64( ",x19=", &ctx
.integer
.arm64_regs
.x
[19] );
697 dump_uint64( ",x20=", &ctx
.integer
.arm64_regs
.x
[20] );
698 dump_uint64( ",x21=", &ctx
.integer
.arm64_regs
.x
[21] );
699 dump_uint64( ",x22=", &ctx
.integer
.arm64_regs
.x
[22] );
700 dump_uint64( ",x23=", &ctx
.integer
.arm64_regs
.x
[23] );
701 dump_uint64( ",x24=", &ctx
.integer
.arm64_regs
.x
[24] );
702 dump_uint64( ",x25=", &ctx
.integer
.arm64_regs
.x
[25] );
703 dump_uint64( ",x26=", &ctx
.integer
.arm64_regs
.x
[26] );
704 dump_uint64( ",x27=", &ctx
.integer
.arm64_regs
.x
[27] );
705 dump_uint64( ",x28=", &ctx
.integer
.arm64_regs
.x
[28] );
706 dump_uint64( ",x29=", &ctx
.integer
.arm64_regs
.x
[29] );
707 dump_uint64( ",x30=", &ctx
.integer
.arm64_regs
.x
[30] );
711 fputc( '}', stderr
);
715 static void dump_varargs_debug_event( const char *prefix
, data_size_t size
)
722 fprintf( stderr
, "%s{}", prefix
);
725 size
= min( size
, sizeof(event
) );
726 memset( &event
, 0, sizeof(event
) );
727 memcpy( &event
, cur_data
, size
);
731 case EXCEPTION_DEBUG_EVENT
:
732 fprintf( stderr
, "%s{exception,first=%d,exc_code=%08x,flags=%08x", prefix
,
733 event
.exception
.first
, event
.exception
.exc_code
, event
.exception
.flags
);
734 dump_uint64( ",record=", &event
.exception
.record
);
735 dump_uint64( ",address=", &event
.exception
.address
);
736 fprintf( stderr
, ",params={" );
737 event
.exception
.nb_params
= min( event
.exception
.nb_params
, EXCEPTION_MAXIMUM_PARAMETERS
);
738 for (i
= 0; i
< event
.exception
.nb_params
; i
++)
740 dump_uint64( "", &event
.exception
.params
[i
] );
741 if (i
< event
.exception
.nb_params
) fputc( ',', stderr
);
743 fprintf( stderr
, "}}" );
745 case CREATE_THREAD_DEBUG_EVENT
:
746 fprintf( stderr
, "%s{create_thread,thread=%04x", prefix
, event
.create_thread
.handle
);
747 dump_uint64( ",teb=", &event
.create_thread
.teb
);
748 dump_uint64( ",start=", &event
.create_thread
.start
);
749 fputc( '}', stderr
);
751 case CREATE_PROCESS_DEBUG_EVENT
:
752 fprintf( stderr
, "%s{create_process,file=%04x,process=%04x,thread=%04x", prefix
,
753 event
.create_process
.file
, event
.create_process
.process
,
754 event
.create_process
.thread
);
755 dump_uint64( ",base=", &event
.create_process
.base
);
756 fprintf( stderr
, ",offset=%d,size=%d",
757 event
.create_process
.dbg_offset
, event
.create_process
.dbg_size
);
758 dump_uint64( ",teb=", &event
.create_process
.teb
);
759 dump_uint64( ",start=", &event
.create_process
.start
);
760 dump_uint64( ",name=", &event
.create_process
.name
);
761 fprintf( stderr
, ",unicode=%d}", event
.create_process
.unicode
);
763 case EXIT_THREAD_DEBUG_EVENT
:
764 fprintf( stderr
, "%s{exit_thread,code=%d}", prefix
, event
.exit
.exit_code
);
766 case EXIT_PROCESS_DEBUG_EVENT
:
767 fprintf( stderr
, "%s{exit_process,code=%d}", prefix
, event
.exit
.exit_code
);
769 case LOAD_DLL_DEBUG_EVENT
:
770 fprintf( stderr
, "%s{load_dll,file=%04x", prefix
, event
.load_dll
.handle
);
771 dump_uint64( ",base=", &event
.load_dll
.base
);
772 fprintf( stderr
, ",offset=%d,size=%d",
773 event
.load_dll
.dbg_offset
, event
.load_dll
.dbg_size
);
774 dump_uint64( ",name=", &event
.load_dll
.name
);
775 fprintf( stderr
, ",unicode=%d}", event
.load_dll
.unicode
);
777 case UNLOAD_DLL_DEBUG_EVENT
:
778 fprintf( stderr
, "%s{unload_dll", prefix
);
779 dump_uint64( ",base=", &event
.unload_dll
.base
);
780 fputc( '}', stderr
);
782 case 0: /* zero is the code returned on timeouts */
783 fprintf( stderr
, "%s{}", prefix
);
786 fprintf( stderr
, "%s{code=??? (%d)}", prefix
, event
.code
);
792 /* dump a unicode string contained in a buffer; helper for dump_varargs_startup_info */
793 static data_size_t
dump_inline_unicode_string( const char *prefix
, data_size_t pos
, data_size_t len
, data_size_t total_size
)
795 fputs( prefix
, stderr
);
796 if (pos
>= total_size
) return pos
;
797 if (len
> total_size
- pos
) len
= total_size
- pos
;
798 len
/= sizeof(WCHAR
);
799 dump_strW( (const WCHAR
*)cur_data
+ pos
/sizeof(WCHAR
), len
, stderr
, "\"\"" );
800 return pos
+ len
* sizeof(WCHAR
);
803 static void dump_varargs_startup_info( const char *prefix
, data_size_t size
)
806 data_size_t pos
= sizeof(info
);
808 memset( &info
, 0, sizeof(info
) );
809 memcpy( &info
, cur_data
, min( size
, sizeof(info
) ));
812 "%s{debug_flags=%x,console_flags=%x,console=%04x,hstdin=%04x,hstdout=%04x,hstderr=%04x,"
813 "x=%u,y=%u,xsize=%u,ysize=%u,xchars=%u,ychars=%u,attribute=%02x,flags=%x,show=%u",
814 prefix
, info
.debug_flags
, info
.console_flags
, info
.console
,
815 info
.hstdin
, info
.hstdout
, info
.hstderr
, info
.x
, info
.y
, info
.xsize
, info
.ysize
,
816 info
.xchars
, info
.ychars
, info
.attribute
, info
.flags
, info
.show
);
817 pos
= dump_inline_unicode_string( ",curdir=L\"", pos
, info
.curdir_len
, size
);
818 pos
= dump_inline_unicode_string( "\",dllpath=L\"", pos
, info
.dllpath_len
, size
);
819 pos
= dump_inline_unicode_string( "\",imagepath=L\"", pos
, info
.imagepath_len
, size
);
820 pos
= dump_inline_unicode_string( "\",cmdline=L\"", pos
, info
.cmdline_len
, size
);
821 pos
= dump_inline_unicode_string( "\",title=L\"", pos
, info
.title_len
, size
);
822 pos
= dump_inline_unicode_string( "\",desktop=L\"", pos
, info
.desktop_len
, size
);
823 pos
= dump_inline_unicode_string( "\",shellinfo=L\"", pos
, info
.shellinfo_len
, size
);
824 pos
= dump_inline_unicode_string( "\",runtime=L\"", pos
, info
.runtime_len
, size
);
825 fprintf( stderr
, "\"}" );
829 static void dump_varargs_input_records( const char *prefix
, data_size_t size
)
831 const INPUT_RECORD
*rec
= cur_data
;
832 data_size_t len
= size
/ sizeof(*rec
);
834 fprintf( stderr
,"%s{", prefix
);
837 fprintf( stderr
, "{%04x,...}", rec
->EventType
);
839 if (--len
) fputc( ',', stderr
);
841 fputc( '}', stderr
);
845 static void dump_varargs_rectangles( const char *prefix
, data_size_t size
)
847 const rectangle_t
*rect
= cur_data
;
848 data_size_t len
= size
/ sizeof(*rect
);
850 fprintf( stderr
,"%s{", prefix
);
853 dump_rectangle( "", rect
++ );
854 if (--len
) fputc( ',', stderr
);
856 fputc( '}', stderr
);
860 static void dump_varargs_message_data( const char *prefix
, data_size_t size
)
862 /* FIXME: dump the structured data */
863 dump_varargs_bytes( prefix
, size
);
866 static void dump_varargs_properties( const char *prefix
, data_size_t size
)
868 const property_data_t
*prop
= cur_data
;
869 data_size_t len
= size
/ sizeof(*prop
);
871 fprintf( stderr
,"%s{", prefix
);
874 fprintf( stderr
, "{atom=%04x,str=%d", prop
->atom
, prop
->string
);
875 dump_uint64( ",data=", &prop
->data
);
876 fputc( '}', stderr
);
878 if (--len
) fputc( ',', stderr
);
880 fputc( '}', stderr
);
884 static void dump_varargs_LUID_AND_ATTRIBUTES( const char *prefix
, data_size_t size
)
886 const LUID_AND_ATTRIBUTES
*lat
= cur_data
;
887 data_size_t len
= size
/ sizeof(*lat
);
889 fprintf( stderr
,"%s{", prefix
);
892 fprintf( stderr
, "{luid=%08x%08x,attr=%x}",
893 lat
->Luid
.HighPart
, lat
->Luid
.LowPart
, lat
->Attributes
);
895 if (--len
) fputc( ',', stderr
);
897 fputc( '}', stderr
);
901 static void dump_inline_sid( const char *prefix
, const SID
*sid
, data_size_t size
)
906 if ((FIELD_OFFSET(SID
, SubAuthority
[0]) > size
) ||
907 (FIELD_OFFSET(SID
, SubAuthority
[sid
->SubAuthorityCount
]) > size
))
909 fprintf( stderr
, "<invalid sid>" );
913 fprintf( stderr
,"%s{", prefix
);
914 fprintf( stderr
, "S-%u-%u", sid
->Revision
, MAKELONG(
915 MAKEWORD( sid
->IdentifierAuthority
.Value
[5],
916 sid
->IdentifierAuthority
.Value
[4] ),
917 MAKEWORD( sid
->IdentifierAuthority
.Value
[3],
918 sid
->IdentifierAuthority
.Value
[2] ) ) );
919 for (i
= 0; i
< sid
->SubAuthorityCount
; i
++)
920 fprintf( stderr
, "-%u", sid
->SubAuthority
[i
] );
921 fputc( '}', stderr
);
924 static void dump_varargs_SID( const char *prefix
, data_size_t size
)
926 const SID
*sid
= cur_data
;
927 dump_inline_sid( prefix
, sid
, size
);
931 static void dump_inline_acl( const char *prefix
, const ACL
*acl
, data_size_t size
)
933 const ACE_HEADER
*ace
;
936 fprintf( stderr
,"%s{", prefix
);
939 if (size
< sizeof(ACL
))
941 fprintf( stderr
, "<invalid acl>}" );
945 ace
= (const ACE_HEADER
*)(acl
+ 1);
946 for (i
= 0; i
< acl
->AceCount
; i
++)
948 const SID
*sid
= NULL
;
949 data_size_t sid_size
= 0;
951 if (size
< sizeof(ACE_HEADER
) || size
< ace
->AceSize
) break;
952 size
-= ace
->AceSize
;
953 if (i
!= 0) fputc( ',', stderr
);
954 fprintf( stderr
, "{AceType=" );
955 switch (ace
->AceType
)
957 case ACCESS_DENIED_ACE_TYPE
:
958 sid
= (const SID
*)&((const ACCESS_DENIED_ACE
*)ace
)->SidStart
;
959 sid_size
= ace
->AceSize
- FIELD_OFFSET(ACCESS_DENIED_ACE
, SidStart
);
960 fprintf( stderr
, "ACCESS_DENIED_ACE_TYPE,Mask=%x",
961 ((const ACCESS_DENIED_ACE
*)ace
)->Mask
);
963 case ACCESS_ALLOWED_ACE_TYPE
:
964 sid
= (const SID
*)&((const ACCESS_ALLOWED_ACE
*)ace
)->SidStart
;
965 sid_size
= ace
->AceSize
- FIELD_OFFSET(ACCESS_ALLOWED_ACE
, SidStart
);
966 fprintf( stderr
, "ACCESS_ALLOWED_ACE_TYPE,Mask=%x",
967 ((const ACCESS_ALLOWED_ACE
*)ace
)->Mask
);
969 case SYSTEM_AUDIT_ACE_TYPE
:
970 sid
= (const SID
*)&((const SYSTEM_AUDIT_ACE
*)ace
)->SidStart
;
971 sid_size
= ace
->AceSize
- FIELD_OFFSET(SYSTEM_AUDIT_ACE
, SidStart
);
972 fprintf( stderr
, "SYSTEM_AUDIT_ACE_TYPE,Mask=%x",
973 ((const SYSTEM_AUDIT_ACE
*)ace
)->Mask
);
975 case SYSTEM_ALARM_ACE_TYPE
:
976 sid
= (const SID
*)&((const SYSTEM_ALARM_ACE
*)ace
)->SidStart
;
977 sid_size
= ace
->AceSize
- FIELD_OFFSET(SYSTEM_ALARM_ACE
, SidStart
);
978 fprintf( stderr
, "SYSTEM_ALARM_ACE_TYPE,Mask=%x",
979 ((const SYSTEM_ALARM_ACE
*)ace
)->Mask
);
981 case SYSTEM_MANDATORY_LABEL_ACE_TYPE
:
982 sid
= (const SID
*)&((const SYSTEM_MANDATORY_LABEL_ACE
*)ace
)->SidStart
;
983 sid_size
= ace
->AceSize
- FIELD_OFFSET(SYSTEM_MANDATORY_LABEL_ACE
, SidStart
);
984 fprintf( stderr
, "SYSTEM_MANDATORY_LABEL_ACE_TYPE,Mask=%x",
985 ((const SYSTEM_MANDATORY_LABEL_ACE
*)ace
)->Mask
);
988 fprintf( stderr
, "unknown<%d>", ace
->AceType
);
991 fprintf( stderr
, ",AceFlags=%x", ace
->AceFlags
);
993 dump_inline_sid( ",Sid=", sid
, sid_size
);
994 ace
= (const ACE_HEADER
*)((const char *)ace
+ ace
->AceSize
);
995 fputc( '}', stderr
);
998 fputc( '}', stderr
);
1001 static void dump_varargs_ACL( const char *prefix
, data_size_t size
)
1003 const ACL
*acl
= cur_data
;
1004 dump_inline_acl( prefix
, acl
, size
);
1005 remove_data( size
);
1008 static void dump_inline_security_descriptor( const char *prefix
, const struct security_descriptor
*sd
, data_size_t size
)
1010 fprintf( stderr
,"%s{", prefix
);
1011 if (size
>= sizeof(struct security_descriptor
))
1013 size_t offset
= sizeof(struct security_descriptor
);
1014 fprintf( stderr
, "control=%08x", sd
->control
);
1015 if ((sd
->owner_len
> FIELD_OFFSET(SID
, SubAuthority
[255])) || (offset
+ sd
->owner_len
> size
))
1018 dump_inline_sid( ",owner=", (const SID
*)((const char *)sd
+ offset
), sd
->owner_len
);
1020 fprintf( stderr
, ",owner=<not present>" );
1021 offset
+= sd
->owner_len
;
1022 if ((sd
->group_len
> FIELD_OFFSET(SID
, SubAuthority
[255])) || (offset
+ sd
->group_len
> size
))
1025 dump_inline_sid( ",group=", (const SID
*)((const char *)sd
+ offset
), sd
->group_len
);
1027 fprintf( stderr
, ",group=<not present>" );
1028 offset
+= sd
->group_len
;
1029 if ((sd
->sacl_len
>= MAX_ACL_LEN
) || (offset
+ sd
->sacl_len
> size
))
1031 dump_inline_acl( ",sacl=", (const ACL
*)((const char *)sd
+ offset
), sd
->sacl_len
);
1032 offset
+= sd
->sacl_len
;
1033 if ((sd
->dacl_len
>= MAX_ACL_LEN
) || (offset
+ sd
->dacl_len
> size
))
1035 dump_inline_acl( ",dacl=", (const ACL
*)((const char *)sd
+ offset
), sd
->dacl_len
);
1036 offset
+= sd
->dacl_len
;
1038 fputc( '}', stderr
);
1041 static void dump_varargs_security_descriptor( const char *prefix
, data_size_t size
)
1043 const struct security_descriptor
*sd
= cur_data
;
1044 dump_inline_security_descriptor( prefix
, sd
, size
);
1045 remove_data( size
);
1048 static void dump_varargs_token_groups( const char *prefix
, data_size_t size
)
1050 const struct token_groups
*tg
= cur_data
;
1052 fprintf( stderr
,"%s{", prefix
);
1053 if (size
>= sizeof(struct token_groups
))
1055 size_t offset
= sizeof(*tg
);
1056 fprintf( stderr
, "count=%08x,", tg
->count
);
1057 if (tg
->count
* sizeof(unsigned int) <= size
)
1060 const unsigned int *attr
= (const unsigned int *)(tg
+ 1);
1062 offset
+= tg
->count
* sizeof(unsigned int);
1064 fputc( '[', stderr
);
1065 for (i
= 0; i
< tg
->count
; i
++)
1067 const SID
*sid
= (const SID
*)((const char *)cur_data
+ offset
);
1069 fputc( ',', stderr
);
1070 fputc( '{', stderr
);
1071 fprintf( stderr
, "attributes=%08x", attr
[i
] );
1072 dump_inline_sid( ",sid=", sid
, size
- offset
);
1073 if ((offset
+ FIELD_OFFSET(SID
, SubAuthority
[0]) > size
) ||
1074 (offset
+ FIELD_OFFSET(SID
, SubAuthority
[sid
->SubAuthorityCount
]) > size
))
1076 offset
+= FIELD_OFFSET(SID
, SubAuthority
[sid
->SubAuthorityCount
]);
1077 fputc( '}', stderr
);
1079 fputc( ']', stderr
);
1082 fputc( '}', stderr
);
1085 static void dump_varargs_object_attributes( const char *prefix
, data_size_t size
)
1087 const struct object_attributes
*objattr
= cur_data
;
1089 fprintf( stderr
,"%s{", prefix
);
1094 if (size
< sizeof(*objattr
) ||
1095 (size
- sizeof(*objattr
) < objattr
->sd_len
) ||
1096 (size
- sizeof(*objattr
) - objattr
->sd_len
< objattr
->name_len
))
1098 fprintf( stderr
, "***invalid***}" );
1099 remove_data( size
);
1103 fprintf( stderr
, "rootdir=%04x,attributes=%08x", objattr
->rootdir
, objattr
->attributes
);
1104 dump_inline_security_descriptor( ",sd=", (const struct security_descriptor
*)(objattr
+ 1), objattr
->sd_len
);
1105 str
= (const WCHAR
*)objattr
+ (sizeof(*objattr
) + objattr
->sd_len
) / sizeof(WCHAR
);
1106 fprintf( stderr
, ",name=L\"" );
1107 dump_strW( str
, objattr
->name_len
/ sizeof(WCHAR
), stderr
, "\"\"" );
1108 fputc( '\"', stderr
);
1109 remove_data( ((sizeof(*objattr
) + objattr
->sd_len
) / sizeof(WCHAR
)) * sizeof(WCHAR
) +
1110 (objattr
->name_len
/ sizeof(WCHAR
)) * sizeof(WCHAR
) );
1112 fputc( '}', stderr
);
1115 static void dump_varargs_filesystem_event( const char *prefix
, data_size_t size
)
1117 static const char * const actions
[] = {
1129 fprintf( stderr
,"%s{", prefix
);
1132 const struct filesystem_event
*event
= cur_data
;
1133 data_size_t len
= (offsetof( struct filesystem_event
, name
[event
->len
] ) + sizeof(int)-1)
1134 / sizeof(int) * sizeof(int);
1135 if (size
< len
) break;
1136 if (event
->action
< sizeof(actions
)/sizeof(actions
[0]) && actions
[event
->action
])
1137 fprintf( stderr
, "{action=%s", actions
[event
->action
] );
1139 fprintf( stderr
, "{action=%u", event
->action
);
1140 fprintf( stderr
, ",name=\"%.*s\"}", event
->len
, event
->name
);
1143 if (size
)fputc( ',', stderr
);
1145 fputc( '}', stderr
);
1148 static void dump_varargs_pe_image_info( const char *prefix
, data_size_t size
)
1150 pe_image_info_t info
;
1154 fprintf( stderr
, "%s{}", prefix
);
1157 memset( &info
, 0, sizeof(info
) );
1158 memcpy( &info
, cur_data
, min( size
, sizeof(info
) ));
1160 fprintf( stderr
, "%s{", prefix
);
1161 dump_uint64( "base=", &info
.base
);
1162 dump_uint64( ",entry_point=", &info
.entry_point
);
1163 dump_uint64( ",map_size=", &info
.map_size
);
1164 dump_uint64( ",stack_size=", &info
.stack_size
);
1165 dump_uint64( ",stack_commit=", &info
.stack_commit
);
1166 fprintf( stderr
, ",zerobits=%08x,subsystem=%08x,subsystem_low=%04x,subsystem_high=%04x,gp=%08x"
1167 ",image_charact=%04x,dll_charact=%04x,machine=%04x,contains_code=%u,image_flags=%02x"
1168 ",loader_flags=%08x,header_size=%08x,file_size=%08x,checksum=%08x}",
1169 info
.zerobits
, info
.subsystem
, info
.subsystem_low
, info
.subsystem_high
, info
.gp
,
1170 info
.image_charact
, info
.dll_charact
, info
.machine
, info
.contains_code
, info
.image_flags
,
1171 info
.loader_flags
, info
.header_size
, info
.file_size
, info
.checksum
);
1172 remove_data( size
);
1175 static void dump_varargs_rawinput_devices(const char *prefix
, data_size_t size
)
1177 const struct rawinput_device
*device
;
1179 fprintf( stderr
, "%s{", prefix
);
1180 while (size
>= sizeof(*device
))
1183 fprintf( stderr
, "{usage_page=%04x,usage=%04x,flags=%08x,target=%08x}",
1184 device
->usage_page
, device
->usage
, device
->flags
, device
->target
);
1185 size
-= sizeof(*device
);
1186 remove_data( sizeof(*device
) );
1187 if (size
) fputc( ',', stderr
);
1189 fputc( '}', stderr
);
1192 static void dump_varargs_handle_infos( const char *prefix
, data_size_t size
)
1194 const struct handle_info
*handle
;
1196 fprintf( stderr
, "%s{", prefix
);
1197 while (size
>= sizeof(*handle
))
1200 fprintf( stderr
, "{owner=%04x,handle=%04x,access=%08x}",
1201 handle
->owner
, handle
->handle
, handle
->access
);
1202 size
-= sizeof(*handle
);
1203 remove_data( sizeof(*handle
) );
1204 if (size
) fputc( ',', stderr
);
1206 fputc( '}', stderr
);
1209 typedef void (*dump_func
)( const void *req
);
1211 /* Everything below this line is generated automatically by tools/make_requests */
1212 /* ### make_requests begin ### */
1214 static void dump_new_process_request( const struct new_process_request
*req
)
1216 fprintf( stderr
, " inherit_all=%d", req
->inherit_all
);
1217 fprintf( stderr
, ", create_flags=%08x", req
->create_flags
);
1218 fprintf( stderr
, ", socket_fd=%d", req
->socket_fd
);
1219 fprintf( stderr
, ", exe_file=%04x", req
->exe_file
);
1220 fprintf( stderr
, ", process_access=%08x", req
->process_access
);
1221 fprintf( stderr
, ", process_attr=%08x", req
->process_attr
);
1222 fprintf( stderr
, ", thread_access=%08x", req
->thread_access
);
1223 fprintf( stderr
, ", thread_attr=%08x", req
->thread_attr
);
1224 dump_cpu_type( ", cpu=", &req
->cpu
);
1225 fprintf( stderr
, ", info_size=%u", req
->info_size
);
1226 dump_varargs_startup_info( ", info=", min(cur_size
,req
->info_size
) );
1227 dump_varargs_unicode_str( ", env=", cur_size
);
1230 static void dump_new_process_reply( const struct new_process_reply
*req
)
1232 fprintf( stderr
, " info=%04x", req
->info
);
1233 fprintf( stderr
, ", pid=%04x", req
->pid
);
1234 fprintf( stderr
, ", phandle=%04x", req
->phandle
);
1235 fprintf( stderr
, ", tid=%04x", req
->tid
);
1236 fprintf( stderr
, ", thandle=%04x", req
->thandle
);
1239 static void dump_get_new_process_info_request( const struct get_new_process_info_request
*req
)
1241 fprintf( stderr
, " info=%04x", req
->info
);
1244 static void dump_get_new_process_info_reply( const struct get_new_process_info_reply
*req
)
1246 fprintf( stderr
, " success=%d", req
->success
);
1247 fprintf( stderr
, ", exit_code=%d", req
->exit_code
);
1250 static void dump_new_thread_request( const struct new_thread_request
*req
)
1252 fprintf( stderr
, " access=%08x", req
->access
);
1253 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1254 fprintf( stderr
, ", suspend=%d", req
->suspend
);
1255 fprintf( stderr
, ", request_fd=%d", req
->request_fd
);
1258 static void dump_new_thread_reply( const struct new_thread_reply
*req
)
1260 fprintf( stderr
, " tid=%04x", req
->tid
);
1261 fprintf( stderr
, ", handle=%04x", req
->handle
);
1264 static void dump_get_startup_info_request( const struct get_startup_info_request
*req
)
1268 static void dump_get_startup_info_reply( const struct get_startup_info_reply
*req
)
1270 fprintf( stderr
, " exe_file=%04x", req
->exe_file
);
1271 fprintf( stderr
, ", info_size=%u", req
->info_size
);
1272 dump_varargs_startup_info( ", info=", min(cur_size
,req
->info_size
) );
1273 dump_varargs_unicode_str( ", env=", cur_size
);
1276 static void dump_init_process_done_request( const struct init_process_done_request
*req
)
1278 fprintf( stderr
, " gui=%d", req
->gui
);
1279 dump_uint64( ", module=", &req
->module
);
1280 dump_uint64( ", ldt_copy=", &req
->ldt_copy
);
1281 dump_uint64( ", entry=", &req
->entry
);
1284 static void dump_init_thread_request( const struct init_thread_request
*req
)
1286 fprintf( stderr
, " unix_pid=%d", req
->unix_pid
);
1287 fprintf( stderr
, ", unix_tid=%d", req
->unix_tid
);
1288 fprintf( stderr
, ", debug_level=%d", req
->debug_level
);
1289 dump_uint64( ", teb=", &req
->teb
);
1290 dump_uint64( ", entry=", &req
->entry
);
1291 fprintf( stderr
, ", reply_fd=%d", req
->reply_fd
);
1292 fprintf( stderr
, ", wait_fd=%d", req
->wait_fd
);
1293 dump_cpu_type( ", cpu=", &req
->cpu
);
1296 static void dump_init_thread_reply( const struct init_thread_reply
*req
)
1298 fprintf( stderr
, " pid=%04x", req
->pid
);
1299 fprintf( stderr
, ", tid=%04x", req
->tid
);
1300 dump_timeout( ", server_start=", &req
->server_start
);
1301 fprintf( stderr
, ", info_size=%u", req
->info_size
);
1302 fprintf( stderr
, ", version=%d", req
->version
);
1303 fprintf( stderr
, ", all_cpus=%08x", req
->all_cpus
);
1306 static void dump_terminate_process_request( const struct terminate_process_request
*req
)
1308 fprintf( stderr
, " handle=%04x", req
->handle
);
1309 fprintf( stderr
, ", exit_code=%d", req
->exit_code
);
1312 static void dump_terminate_process_reply( const struct terminate_process_reply
*req
)
1314 fprintf( stderr
, " self=%d", req
->self
);
1317 static void dump_terminate_thread_request( const struct terminate_thread_request
*req
)
1319 fprintf( stderr
, " handle=%04x", req
->handle
);
1320 fprintf( stderr
, ", exit_code=%d", req
->exit_code
);
1323 static void dump_terminate_thread_reply( const struct terminate_thread_reply
*req
)
1325 fprintf( stderr
, " self=%d", req
->self
);
1326 fprintf( stderr
, ", last=%d", req
->last
);
1329 static void dump_get_process_info_request( const struct get_process_info_request
*req
)
1331 fprintf( stderr
, " handle=%04x", req
->handle
);
1334 static void dump_get_process_info_reply( const struct get_process_info_reply
*req
)
1336 fprintf( stderr
, " pid=%04x", req
->pid
);
1337 fprintf( stderr
, ", ppid=%04x", req
->ppid
);
1338 dump_uint64( ", affinity=", &req
->affinity
);
1339 dump_uint64( ", peb=", &req
->peb
);
1340 dump_timeout( ", start_time=", &req
->start_time
);
1341 dump_timeout( ", end_time=", &req
->end_time
);
1342 fprintf( stderr
, ", exit_code=%d", req
->exit_code
);
1343 fprintf( stderr
, ", priority=%d", req
->priority
);
1344 dump_cpu_type( ", cpu=", &req
->cpu
);
1345 fprintf( stderr
, ", debugger_present=%d", req
->debugger_present
);
1346 fprintf( stderr
, ", debug_children=%d", req
->debug_children
);
1349 static void dump_get_process_vm_counters_request( const struct get_process_vm_counters_request
*req
)
1351 fprintf( stderr
, " handle=%04x", req
->handle
);
1354 static void dump_get_process_vm_counters_reply( const struct get_process_vm_counters_reply
*req
)
1356 dump_uint64( " peak_virtual_size=", &req
->peak_virtual_size
);
1357 dump_uint64( ", virtual_size=", &req
->virtual_size
);
1358 dump_uint64( ", peak_working_set_size=", &req
->peak_working_set_size
);
1359 dump_uint64( ", working_set_size=", &req
->working_set_size
);
1360 dump_uint64( ", pagefile_usage=", &req
->pagefile_usage
);
1361 dump_uint64( ", peak_pagefile_usage=", &req
->peak_pagefile_usage
);
1364 static void dump_set_process_info_request( const struct set_process_info_request
*req
)
1366 fprintf( stderr
, " handle=%04x", req
->handle
);
1367 fprintf( stderr
, ", mask=%d", req
->mask
);
1368 fprintf( stderr
, ", priority=%d", req
->priority
);
1369 dump_uint64( ", affinity=", &req
->affinity
);
1372 static void dump_get_thread_info_request( const struct get_thread_info_request
*req
)
1374 fprintf( stderr
, " handle=%04x", req
->handle
);
1375 fprintf( stderr
, ", tid_in=%04x", req
->tid_in
);
1378 static void dump_get_thread_info_reply( const struct get_thread_info_reply
*req
)
1380 fprintf( stderr
, " pid=%04x", req
->pid
);
1381 fprintf( stderr
, ", tid=%04x", req
->tid
);
1382 dump_uint64( ", teb=", &req
->teb
);
1383 dump_uint64( ", entry_point=", &req
->entry_point
);
1384 dump_uint64( ", affinity=", &req
->affinity
);
1385 fprintf( stderr
, ", exit_code=%d", req
->exit_code
);
1386 fprintf( stderr
, ", priority=%d", req
->priority
);
1387 fprintf( stderr
, ", last=%d", req
->last
);
1390 static void dump_get_thread_times_request( const struct get_thread_times_request
*req
)
1392 fprintf( stderr
, " handle=%04x", req
->handle
);
1395 static void dump_get_thread_times_reply( const struct get_thread_times_reply
*req
)
1397 dump_timeout( " creation_time=", &req
->creation_time
);
1398 dump_timeout( ", exit_time=", &req
->exit_time
);
1401 static void dump_set_thread_info_request( const struct set_thread_info_request
*req
)
1403 fprintf( stderr
, " handle=%04x", req
->handle
);
1404 fprintf( stderr
, ", mask=%d", req
->mask
);
1405 fprintf( stderr
, ", priority=%d", req
->priority
);
1406 dump_uint64( ", affinity=", &req
->affinity
);
1407 dump_uint64( ", entry_point=", &req
->entry_point
);
1408 fprintf( stderr
, ", token=%04x", req
->token
);
1411 static void dump_get_dll_info_request( const struct get_dll_info_request
*req
)
1413 fprintf( stderr
, " handle=%04x", req
->handle
);
1414 dump_uint64( ", base_address=", &req
->base_address
);
1417 static void dump_get_dll_info_reply( const struct get_dll_info_reply
*req
)
1419 dump_uint64( " entry_point=", &req
->entry_point
);
1420 fprintf( stderr
, ", size=%u", req
->size
);
1421 fprintf( stderr
, ", filename_len=%u", req
->filename_len
);
1422 dump_varargs_unicode_str( ", filename=", cur_size
);
1425 static void dump_suspend_thread_request( const struct suspend_thread_request
*req
)
1427 fprintf( stderr
, " handle=%04x", req
->handle
);
1430 static void dump_suspend_thread_reply( const struct suspend_thread_reply
*req
)
1432 fprintf( stderr
, " count=%d", req
->count
);
1435 static void dump_resume_thread_request( const struct resume_thread_request
*req
)
1437 fprintf( stderr
, " handle=%04x", req
->handle
);
1440 static void dump_resume_thread_reply( const struct resume_thread_reply
*req
)
1442 fprintf( stderr
, " count=%d", req
->count
);
1445 static void dump_load_dll_request( const struct load_dll_request
*req
)
1447 fprintf( stderr
, " mapping=%04x", req
->mapping
);
1448 dump_uint64( ", base=", &req
->base
);
1449 dump_uint64( ", name=", &req
->name
);
1450 fprintf( stderr
, ", size=%u", req
->size
);
1451 fprintf( stderr
, ", dbg_offset=%d", req
->dbg_offset
);
1452 fprintf( stderr
, ", dbg_size=%d", req
->dbg_size
);
1453 dump_varargs_unicode_str( ", filename=", cur_size
);
1456 static void dump_unload_dll_request( const struct unload_dll_request
*req
)
1458 dump_uint64( " base=", &req
->base
);
1461 static void dump_queue_apc_request( const struct queue_apc_request
*req
)
1463 fprintf( stderr
, " handle=%04x", req
->handle
);
1464 dump_apc_call( ", call=", &req
->call
);
1467 static void dump_queue_apc_reply( const struct queue_apc_reply
*req
)
1469 fprintf( stderr
, " handle=%04x", req
->handle
);
1470 fprintf( stderr
, ", self=%d", req
->self
);
1473 static void dump_get_apc_result_request( const struct get_apc_result_request
*req
)
1475 fprintf( stderr
, " handle=%04x", req
->handle
);
1478 static void dump_get_apc_result_reply( const struct get_apc_result_reply
*req
)
1480 dump_apc_result( " result=", &req
->result
);
1483 static void dump_close_handle_request( const struct close_handle_request
*req
)
1485 fprintf( stderr
, " handle=%04x", req
->handle
);
1488 static void dump_set_handle_info_request( const struct set_handle_info_request
*req
)
1490 fprintf( stderr
, " handle=%04x", req
->handle
);
1491 fprintf( stderr
, ", flags=%d", req
->flags
);
1492 fprintf( stderr
, ", mask=%d", req
->mask
);
1495 static void dump_set_handle_info_reply( const struct set_handle_info_reply
*req
)
1497 fprintf( stderr
, " old_flags=%d", req
->old_flags
);
1500 static void dump_dup_handle_request( const struct dup_handle_request
*req
)
1502 fprintf( stderr
, " src_process=%04x", req
->src_process
);
1503 fprintf( stderr
, ", src_handle=%04x", req
->src_handle
);
1504 fprintf( stderr
, ", dst_process=%04x", req
->dst_process
);
1505 fprintf( stderr
, ", access=%08x", req
->access
);
1506 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1507 fprintf( stderr
, ", options=%08x", req
->options
);
1510 static void dump_dup_handle_reply( const struct dup_handle_reply
*req
)
1512 fprintf( stderr
, " handle=%04x", req
->handle
);
1513 fprintf( stderr
, ", self=%d", req
->self
);
1514 fprintf( stderr
, ", closed=%d", req
->closed
);
1517 static void dump_open_process_request( const struct open_process_request
*req
)
1519 fprintf( stderr
, " pid=%04x", req
->pid
);
1520 fprintf( stderr
, ", access=%08x", req
->access
);
1521 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1524 static void dump_open_process_reply( const struct open_process_reply
*req
)
1526 fprintf( stderr
, " handle=%04x", req
->handle
);
1529 static void dump_open_thread_request( const struct open_thread_request
*req
)
1531 fprintf( stderr
, " tid=%04x", req
->tid
);
1532 fprintf( stderr
, ", access=%08x", req
->access
);
1533 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1536 static void dump_open_thread_reply( const struct open_thread_reply
*req
)
1538 fprintf( stderr
, " handle=%04x", req
->handle
);
1541 static void dump_select_request( const struct select_request
*req
)
1543 fprintf( stderr
, " flags=%d", req
->flags
);
1544 dump_uint64( ", cookie=", &req
->cookie
);
1545 dump_timeout( ", timeout=", &req
->timeout
);
1546 fprintf( stderr
, ", prev_apc=%04x", req
->prev_apc
);
1547 dump_varargs_apc_result( ", result=", cur_size
);
1548 dump_varargs_select_op( ", data=", cur_size
);
1551 static void dump_select_reply( const struct select_reply
*req
)
1553 dump_timeout( " timeout=", &req
->timeout
);
1554 dump_apc_call( ", call=", &req
->call
);
1555 fprintf( stderr
, ", apc_handle=%04x", req
->apc_handle
);
1558 static void dump_create_event_request( const struct create_event_request
*req
)
1560 fprintf( stderr
, " access=%08x", req
->access
);
1561 fprintf( stderr
, ", manual_reset=%d", req
->manual_reset
);
1562 fprintf( stderr
, ", initial_state=%d", req
->initial_state
);
1563 dump_varargs_object_attributes( ", objattr=", cur_size
);
1566 static void dump_create_event_reply( const struct create_event_reply
*req
)
1568 fprintf( stderr
, " handle=%04x", req
->handle
);
1571 static void dump_event_op_request( const struct event_op_request
*req
)
1573 fprintf( stderr
, " handle=%04x", req
->handle
);
1574 fprintf( stderr
, ", op=%d", req
->op
);
1577 static void dump_query_event_request( const struct query_event_request
*req
)
1579 fprintf( stderr
, " handle=%04x", req
->handle
);
1582 static void dump_query_event_reply( const struct query_event_reply
*req
)
1584 fprintf( stderr
, " manual_reset=%d", req
->manual_reset
);
1585 fprintf( stderr
, ", state=%d", req
->state
);
1588 static void dump_open_event_request( const struct open_event_request
*req
)
1590 fprintf( stderr
, " access=%08x", req
->access
);
1591 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1592 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
1593 dump_varargs_unicode_str( ", name=", cur_size
);
1596 static void dump_open_event_reply( const struct open_event_reply
*req
)
1598 fprintf( stderr
, " handle=%04x", req
->handle
);
1601 static void dump_create_keyed_event_request( const struct create_keyed_event_request
*req
)
1603 fprintf( stderr
, " access=%08x", req
->access
);
1604 dump_varargs_object_attributes( ", objattr=", cur_size
);
1607 static void dump_create_keyed_event_reply( const struct create_keyed_event_reply
*req
)
1609 fprintf( stderr
, " handle=%04x", req
->handle
);
1612 static void dump_open_keyed_event_request( const struct open_keyed_event_request
*req
)
1614 fprintf( stderr
, " access=%08x", req
->access
);
1615 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1616 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
1617 dump_varargs_unicode_str( ", name=", cur_size
);
1620 static void dump_open_keyed_event_reply( const struct open_keyed_event_reply
*req
)
1622 fprintf( stderr
, " handle=%04x", req
->handle
);
1625 static void dump_create_mutex_request( const struct create_mutex_request
*req
)
1627 fprintf( stderr
, " access=%08x", req
->access
);
1628 fprintf( stderr
, ", owned=%d", req
->owned
);
1629 dump_varargs_object_attributes( ", objattr=", cur_size
);
1632 static void dump_create_mutex_reply( const struct create_mutex_reply
*req
)
1634 fprintf( stderr
, " handle=%04x", req
->handle
);
1637 static void dump_release_mutex_request( const struct release_mutex_request
*req
)
1639 fprintf( stderr
, " handle=%04x", req
->handle
);
1642 static void dump_release_mutex_reply( const struct release_mutex_reply
*req
)
1644 fprintf( stderr
, " prev_count=%08x", req
->prev_count
);
1647 static void dump_open_mutex_request( const struct open_mutex_request
*req
)
1649 fprintf( stderr
, " access=%08x", req
->access
);
1650 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1651 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
1652 dump_varargs_unicode_str( ", name=", cur_size
);
1655 static void dump_open_mutex_reply( const struct open_mutex_reply
*req
)
1657 fprintf( stderr
, " handle=%04x", req
->handle
);
1660 static void dump_query_mutex_request( const struct query_mutex_request
*req
)
1662 fprintf( stderr
, " handle=%04x", req
->handle
);
1665 static void dump_query_mutex_reply( const struct query_mutex_reply
*req
)
1667 fprintf( stderr
, " count=%08x", req
->count
);
1668 fprintf( stderr
, ", owned=%d", req
->owned
);
1669 fprintf( stderr
, ", abandoned=%d", req
->abandoned
);
1672 static void dump_create_semaphore_request( const struct create_semaphore_request
*req
)
1674 fprintf( stderr
, " access=%08x", req
->access
);
1675 fprintf( stderr
, ", initial=%08x", req
->initial
);
1676 fprintf( stderr
, ", max=%08x", req
->max
);
1677 dump_varargs_object_attributes( ", objattr=", cur_size
);
1680 static void dump_create_semaphore_reply( const struct create_semaphore_reply
*req
)
1682 fprintf( stderr
, " handle=%04x", req
->handle
);
1685 static void dump_release_semaphore_request( const struct release_semaphore_request
*req
)
1687 fprintf( stderr
, " handle=%04x", req
->handle
);
1688 fprintf( stderr
, ", count=%08x", req
->count
);
1691 static void dump_release_semaphore_reply( const struct release_semaphore_reply
*req
)
1693 fprintf( stderr
, " prev_count=%08x", req
->prev_count
);
1696 static void dump_query_semaphore_request( const struct query_semaphore_request
*req
)
1698 fprintf( stderr
, " handle=%04x", req
->handle
);
1701 static void dump_query_semaphore_reply( const struct query_semaphore_reply
*req
)
1703 fprintf( stderr
, " current=%08x", req
->current
);
1704 fprintf( stderr
, ", max=%08x", req
->max
);
1707 static void dump_open_semaphore_request( const struct open_semaphore_request
*req
)
1709 fprintf( stderr
, " access=%08x", req
->access
);
1710 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1711 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
1712 dump_varargs_unicode_str( ", name=", cur_size
);
1715 static void dump_open_semaphore_reply( const struct open_semaphore_reply
*req
)
1717 fprintf( stderr
, " handle=%04x", req
->handle
);
1720 static void dump_create_file_request( const struct create_file_request
*req
)
1722 fprintf( stderr
, " access=%08x", req
->access
);
1723 fprintf( stderr
, ", sharing=%08x", req
->sharing
);
1724 fprintf( stderr
, ", create=%d", req
->create
);
1725 fprintf( stderr
, ", options=%08x", req
->options
);
1726 fprintf( stderr
, ", attrs=%08x", req
->attrs
);
1727 dump_varargs_object_attributes( ", objattr=", cur_size
);
1728 dump_varargs_string( ", filename=", cur_size
);
1731 static void dump_create_file_reply( const struct create_file_reply
*req
)
1733 fprintf( stderr
, " handle=%04x", req
->handle
);
1736 static void dump_open_file_object_request( const struct open_file_object_request
*req
)
1738 fprintf( stderr
, " access=%08x", req
->access
);
1739 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1740 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
1741 fprintf( stderr
, ", sharing=%08x", req
->sharing
);
1742 fprintf( stderr
, ", options=%08x", req
->options
);
1743 dump_varargs_unicode_str( ", filename=", cur_size
);
1746 static void dump_open_file_object_reply( const struct open_file_object_reply
*req
)
1748 fprintf( stderr
, " handle=%04x", req
->handle
);
1751 static void dump_alloc_file_handle_request( const struct alloc_file_handle_request
*req
)
1753 fprintf( stderr
, " access=%08x", req
->access
);
1754 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1755 fprintf( stderr
, ", fd=%d", req
->fd
);
1758 static void dump_alloc_file_handle_reply( const struct alloc_file_handle_reply
*req
)
1760 fprintf( stderr
, " handle=%04x", req
->handle
);
1763 static void dump_get_handle_unix_name_request( const struct get_handle_unix_name_request
*req
)
1765 fprintf( stderr
, " handle=%04x", req
->handle
);
1768 static void dump_get_handle_unix_name_reply( const struct get_handle_unix_name_reply
*req
)
1770 fprintf( stderr
, " name_len=%u", req
->name_len
);
1771 dump_varargs_string( ", name=", cur_size
);
1774 static void dump_get_handle_fd_request( const struct get_handle_fd_request
*req
)
1776 fprintf( stderr
, " handle=%04x", req
->handle
);
1779 static void dump_get_handle_fd_reply( const struct get_handle_fd_reply
*req
)
1781 fprintf( stderr
, " type=%d", req
->type
);
1782 fprintf( stderr
, ", cacheable=%d", req
->cacheable
);
1783 fprintf( stderr
, ", access=%08x", req
->access
);
1784 fprintf( stderr
, ", options=%08x", req
->options
);
1787 static void dump_get_directory_cache_entry_request( const struct get_directory_cache_entry_request
*req
)
1789 fprintf( stderr
, " handle=%04x", req
->handle
);
1792 static void dump_get_directory_cache_entry_reply( const struct get_directory_cache_entry_reply
*req
)
1794 fprintf( stderr
, " entry=%d", req
->entry
);
1795 dump_varargs_ints( ", free=", cur_size
);
1798 static void dump_flush_request( const struct flush_request
*req
)
1800 dump_async_data( " async=", &req
->async
);
1803 static void dump_flush_reply( const struct flush_reply
*req
)
1805 fprintf( stderr
, " event=%04x", req
->event
);
1808 static void dump_lock_file_request( const struct lock_file_request
*req
)
1810 fprintf( stderr
, " handle=%04x", req
->handle
);
1811 dump_uint64( ", offset=", &req
->offset
);
1812 dump_uint64( ", count=", &req
->count
);
1813 fprintf( stderr
, ", shared=%d", req
->shared
);
1814 fprintf( stderr
, ", wait=%d", req
->wait
);
1817 static void dump_lock_file_reply( const struct lock_file_reply
*req
)
1819 fprintf( stderr
, " handle=%04x", req
->handle
);
1820 fprintf( stderr
, ", overlapped=%d", req
->overlapped
);
1823 static void dump_unlock_file_request( const struct unlock_file_request
*req
)
1825 fprintf( stderr
, " handle=%04x", req
->handle
);
1826 dump_uint64( ", offset=", &req
->offset
);
1827 dump_uint64( ", count=", &req
->count
);
1830 static void dump_create_socket_request( const struct create_socket_request
*req
)
1832 fprintf( stderr
, " access=%08x", req
->access
);
1833 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1834 fprintf( stderr
, ", family=%d", req
->family
);
1835 fprintf( stderr
, ", type=%d", req
->type
);
1836 fprintf( stderr
, ", protocol=%d", req
->protocol
);
1837 fprintf( stderr
, ", flags=%08x", req
->flags
);
1840 static void dump_create_socket_reply( const struct create_socket_reply
*req
)
1842 fprintf( stderr
, " handle=%04x", req
->handle
);
1845 static void dump_accept_socket_request( const struct accept_socket_request
*req
)
1847 fprintf( stderr
, " lhandle=%04x", req
->lhandle
);
1848 fprintf( stderr
, ", access=%08x", req
->access
);
1849 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1852 static void dump_accept_socket_reply( const struct accept_socket_reply
*req
)
1854 fprintf( stderr
, " handle=%04x", req
->handle
);
1857 static void dump_accept_into_socket_request( const struct accept_into_socket_request
*req
)
1859 fprintf( stderr
, " lhandle=%04x", req
->lhandle
);
1860 fprintf( stderr
, ", ahandle=%04x", req
->ahandle
);
1863 static void dump_set_socket_event_request( const struct set_socket_event_request
*req
)
1865 fprintf( stderr
, " handle=%04x", req
->handle
);
1866 fprintf( stderr
, ", mask=%08x", req
->mask
);
1867 fprintf( stderr
, ", event=%04x", req
->event
);
1868 fprintf( stderr
, ", window=%08x", req
->window
);
1869 fprintf( stderr
, ", msg=%08x", req
->msg
);
1872 static void dump_get_socket_event_request( const struct get_socket_event_request
*req
)
1874 fprintf( stderr
, " handle=%04x", req
->handle
);
1875 fprintf( stderr
, ", service=%d", req
->service
);
1876 fprintf( stderr
, ", c_event=%04x", req
->c_event
);
1879 static void dump_get_socket_event_reply( const struct get_socket_event_reply
*req
)
1881 fprintf( stderr
, " mask=%08x", req
->mask
);
1882 fprintf( stderr
, ", pmask=%08x", req
->pmask
);
1883 fprintf( stderr
, ", state=%08x", req
->state
);
1884 dump_varargs_ints( ", errors=", cur_size
);
1887 static void dump_get_socket_info_request( const struct get_socket_info_request
*req
)
1889 fprintf( stderr
, " handle=%04x", req
->handle
);
1892 static void dump_get_socket_info_reply( const struct get_socket_info_reply
*req
)
1894 fprintf( stderr
, " family=%d", req
->family
);
1895 fprintf( stderr
, ", type=%d", req
->type
);
1896 fprintf( stderr
, ", protocol=%d", req
->protocol
);
1899 static void dump_enable_socket_event_request( const struct enable_socket_event_request
*req
)
1901 fprintf( stderr
, " handle=%04x", req
->handle
);
1902 fprintf( stderr
, ", mask=%08x", req
->mask
);
1903 fprintf( stderr
, ", sstate=%08x", req
->sstate
);
1904 fprintf( stderr
, ", cstate=%08x", req
->cstate
);
1907 static void dump_set_socket_deferred_request( const struct set_socket_deferred_request
*req
)
1909 fprintf( stderr
, " handle=%04x", req
->handle
);
1910 fprintf( stderr
, ", deferred=%04x", req
->deferred
);
1913 static void dump_alloc_console_request( const struct alloc_console_request
*req
)
1915 fprintf( stderr
, " access=%08x", req
->access
);
1916 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1917 fprintf( stderr
, ", pid=%04x", req
->pid
);
1918 fprintf( stderr
, ", input_fd=%d", req
->input_fd
);
1921 static void dump_alloc_console_reply( const struct alloc_console_reply
*req
)
1923 fprintf( stderr
, " handle_in=%04x", req
->handle_in
);
1924 fprintf( stderr
, ", event=%04x", req
->event
);
1927 static void dump_free_console_request( const struct free_console_request
*req
)
1931 static void dump_get_console_renderer_events_request( const struct get_console_renderer_events_request
*req
)
1933 fprintf( stderr
, " handle=%04x", req
->handle
);
1936 static void dump_get_console_renderer_events_reply( const struct get_console_renderer_events_reply
*req
)
1938 dump_varargs_bytes( " data=", cur_size
);
1941 static void dump_open_console_request( const struct open_console_request
*req
)
1943 fprintf( stderr
, " from=%04x", req
->from
);
1944 fprintf( stderr
, ", access=%08x", req
->access
);
1945 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1946 fprintf( stderr
, ", share=%d", req
->share
);
1949 static void dump_open_console_reply( const struct open_console_reply
*req
)
1951 fprintf( stderr
, " handle=%04x", req
->handle
);
1954 static void dump_get_console_wait_event_request( const struct get_console_wait_event_request
*req
)
1958 static void dump_get_console_wait_event_reply( const struct get_console_wait_event_reply
*req
)
1960 fprintf( stderr
, " handle=%04x", req
->handle
);
1963 static void dump_get_console_mode_request( const struct get_console_mode_request
*req
)
1965 fprintf( stderr
, " handle=%04x", req
->handle
);
1968 static void dump_get_console_mode_reply( const struct get_console_mode_reply
*req
)
1970 fprintf( stderr
, " mode=%d", req
->mode
);
1973 static void dump_set_console_mode_request( const struct set_console_mode_request
*req
)
1975 fprintf( stderr
, " handle=%04x", req
->handle
);
1976 fprintf( stderr
, ", mode=%d", req
->mode
);
1979 static void dump_set_console_input_info_request( const struct set_console_input_info_request
*req
)
1981 fprintf( stderr
, " handle=%04x", req
->handle
);
1982 fprintf( stderr
, ", mask=%d", req
->mask
);
1983 fprintf( stderr
, ", active_sb=%04x", req
->active_sb
);
1984 fprintf( stderr
, ", history_mode=%d", req
->history_mode
);
1985 fprintf( stderr
, ", history_size=%d", req
->history_size
);
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_get_console_input_info_request( const struct get_console_input_info_request
*req
)
1995 fprintf( stderr
, " handle=%04x", req
->handle
);
1998 static void dump_get_console_input_info_reply( const struct get_console_input_info_reply
*req
)
2000 fprintf( stderr
, " history_mode=%d", req
->history_mode
);
2001 fprintf( stderr
, ", history_size=%d", req
->history_size
);
2002 fprintf( stderr
, ", history_index=%d", req
->history_index
);
2003 fprintf( stderr
, ", edition_mode=%d", req
->edition_mode
);
2004 fprintf( stderr
, ", input_cp=%d", req
->input_cp
);
2005 fprintf( stderr
, ", output_cp=%d", req
->output_cp
);
2006 fprintf( stderr
, ", win=%08x", req
->win
);
2007 dump_varargs_unicode_str( ", title=", cur_size
);
2010 static void dump_append_console_input_history_request( const struct append_console_input_history_request
*req
)
2012 fprintf( stderr
, " handle=%04x", req
->handle
);
2013 dump_varargs_unicode_str( ", line=", cur_size
);
2016 static void dump_get_console_input_history_request( const struct get_console_input_history_request
*req
)
2018 fprintf( stderr
, " handle=%04x", req
->handle
);
2019 fprintf( stderr
, ", index=%d", req
->index
);
2022 static void dump_get_console_input_history_reply( const struct get_console_input_history_reply
*req
)
2024 fprintf( stderr
, " total=%d", req
->total
);
2025 dump_varargs_unicode_str( ", line=", cur_size
);
2028 static void dump_create_console_output_request( const struct create_console_output_request
*req
)
2030 fprintf( stderr
, " handle_in=%04x", req
->handle_in
);
2031 fprintf( stderr
, ", access=%08x", req
->access
);
2032 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
2033 fprintf( stderr
, ", share=%08x", req
->share
);
2034 fprintf( stderr
, ", fd=%d", req
->fd
);
2037 static void dump_create_console_output_reply( const struct create_console_output_reply
*req
)
2039 fprintf( stderr
, " handle_out=%04x", req
->handle_out
);
2042 static void dump_set_console_output_info_request( const struct set_console_output_info_request
*req
)
2044 fprintf( stderr
, " handle=%04x", req
->handle
);
2045 fprintf( stderr
, ", mask=%d", req
->mask
);
2046 fprintf( stderr
, ", cursor_size=%d", req
->cursor_size
);
2047 fprintf( stderr
, ", cursor_visible=%d", req
->cursor_visible
);
2048 fprintf( stderr
, ", cursor_x=%d", req
->cursor_x
);
2049 fprintf( stderr
, ", cursor_y=%d", req
->cursor_y
);
2050 fprintf( stderr
, ", width=%d", req
->width
);
2051 fprintf( stderr
, ", height=%d", req
->height
);
2052 fprintf( stderr
, ", attr=%d", req
->attr
);
2053 fprintf( stderr
, ", popup_attr=%d", req
->popup_attr
);
2054 fprintf( stderr
, ", win_left=%d", req
->win_left
);
2055 fprintf( stderr
, ", win_top=%d", req
->win_top
);
2056 fprintf( stderr
, ", win_right=%d", req
->win_right
);
2057 fprintf( stderr
, ", win_bottom=%d", req
->win_bottom
);
2058 fprintf( stderr
, ", max_width=%d", req
->max_width
);
2059 fprintf( stderr
, ", max_height=%d", req
->max_height
);
2060 fprintf( stderr
, ", font_width=%d", req
->font_width
);
2061 fprintf( stderr
, ", font_height=%d", req
->font_height
);
2062 dump_varargs_uints( ", colors=", cur_size
);
2065 static void dump_get_console_output_info_request( const struct get_console_output_info_request
*req
)
2067 fprintf( stderr
, " handle=%04x", req
->handle
);
2070 static void dump_get_console_output_info_reply( const struct get_console_output_info_reply
*req
)
2072 fprintf( stderr
, " cursor_size=%d", req
->cursor_size
);
2073 fprintf( stderr
, ", cursor_visible=%d", req
->cursor_visible
);
2074 fprintf( stderr
, ", cursor_x=%d", req
->cursor_x
);
2075 fprintf( stderr
, ", cursor_y=%d", req
->cursor_y
);
2076 fprintf( stderr
, ", width=%d", req
->width
);
2077 fprintf( stderr
, ", height=%d", req
->height
);
2078 fprintf( stderr
, ", attr=%d", req
->attr
);
2079 fprintf( stderr
, ", popup_attr=%d", req
->popup_attr
);
2080 fprintf( stderr
, ", win_left=%d", req
->win_left
);
2081 fprintf( stderr
, ", win_top=%d", req
->win_top
);
2082 fprintf( stderr
, ", win_right=%d", req
->win_right
);
2083 fprintf( stderr
, ", win_bottom=%d", req
->win_bottom
);
2084 fprintf( stderr
, ", max_width=%d", req
->max_width
);
2085 fprintf( stderr
, ", max_height=%d", req
->max_height
);
2086 fprintf( stderr
, ", font_width=%d", req
->font_width
);
2087 fprintf( stderr
, ", font_height=%d", req
->font_height
);
2088 dump_varargs_uints( ", colors=", cur_size
);
2091 static void dump_write_console_input_request( const struct write_console_input_request
*req
)
2093 fprintf( stderr
, " handle=%04x", req
->handle
);
2094 dump_varargs_input_records( ", rec=", cur_size
);
2097 static void dump_write_console_input_reply( const struct write_console_input_reply
*req
)
2099 fprintf( stderr
, " written=%d", req
->written
);
2102 static void dump_read_console_input_request( const struct read_console_input_request
*req
)
2104 fprintf( stderr
, " handle=%04x", req
->handle
);
2105 fprintf( stderr
, ", flush=%d", req
->flush
);
2108 static void dump_read_console_input_reply( const struct read_console_input_reply
*req
)
2110 fprintf( stderr
, " read=%d", req
->read
);
2111 dump_varargs_input_records( ", rec=", cur_size
);
2114 static void dump_write_console_output_request( const struct write_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
, ", wrap=%d", req
->wrap
);
2121 dump_varargs_bytes( ", data=", cur_size
);
2124 static void dump_write_console_output_reply( const struct write_console_output_reply
*req
)
2126 fprintf( stderr
, " written=%d", req
->written
);
2127 fprintf( stderr
, ", width=%d", req
->width
);
2128 fprintf( stderr
, ", height=%d", req
->height
);
2131 static void dump_fill_console_output_request( const struct fill_console_output_request
*req
)
2133 fprintf( stderr
, " handle=%04x", req
->handle
);
2134 fprintf( stderr
, ", x=%d", req
->x
);
2135 fprintf( stderr
, ", y=%d", req
->y
);
2136 fprintf( stderr
, ", mode=%d", req
->mode
);
2137 fprintf( stderr
, ", count=%d", req
->count
);
2138 fprintf( stderr
, ", wrap=%d", req
->wrap
);
2139 dump_char_info( ", data=", &req
->data
);
2142 static void dump_fill_console_output_reply( const struct fill_console_output_reply
*req
)
2144 fprintf( stderr
, " written=%d", req
->written
);
2147 static void dump_read_console_output_request( const struct read_console_output_request
*req
)
2149 fprintf( stderr
, " handle=%04x", req
->handle
);
2150 fprintf( stderr
, ", x=%d", req
->x
);
2151 fprintf( stderr
, ", y=%d", req
->y
);
2152 fprintf( stderr
, ", mode=%d", req
->mode
);
2153 fprintf( stderr
, ", wrap=%d", req
->wrap
);
2156 static void dump_read_console_output_reply( const struct read_console_output_reply
*req
)
2158 fprintf( stderr
, " width=%d", req
->width
);
2159 fprintf( stderr
, ", height=%d", req
->height
);
2160 dump_varargs_bytes( ", data=", cur_size
);
2163 static void dump_move_console_output_request( const struct move_console_output_request
*req
)
2165 fprintf( stderr
, " handle=%04x", req
->handle
);
2166 fprintf( stderr
, ", x_src=%d", req
->x_src
);
2167 fprintf( stderr
, ", y_src=%d", req
->y_src
);
2168 fprintf( stderr
, ", x_dst=%d", req
->x_dst
);
2169 fprintf( stderr
, ", y_dst=%d", req
->y_dst
);
2170 fprintf( stderr
, ", w=%d", req
->w
);
2171 fprintf( stderr
, ", h=%d", req
->h
);
2174 static void dump_send_console_signal_request( const struct send_console_signal_request
*req
)
2176 fprintf( stderr
, " signal=%d", req
->signal
);
2177 fprintf( stderr
, ", group_id=%04x", req
->group_id
);
2180 static void dump_read_directory_changes_request( const struct read_directory_changes_request
*req
)
2182 fprintf( stderr
, " filter=%08x", req
->filter
);
2183 fprintf( stderr
, ", subtree=%d", req
->subtree
);
2184 fprintf( stderr
, ", want_data=%d", req
->want_data
);
2185 dump_async_data( ", async=", &req
->async
);
2188 static void dump_read_change_request( const struct read_change_request
*req
)
2190 fprintf( stderr
, " handle=%04x", req
->handle
);
2193 static void dump_read_change_reply( const struct read_change_reply
*req
)
2195 dump_varargs_filesystem_event( " events=", cur_size
);
2198 static void dump_create_mapping_request( const struct create_mapping_request
*req
)
2200 fprintf( stderr
, " access=%08x", req
->access
);
2201 fprintf( stderr
, ", flags=%08x", req
->flags
);
2202 fprintf( stderr
, ", protect=%08x", req
->protect
);
2203 dump_uint64( ", size=", &req
->size
);
2204 fprintf( stderr
, ", file_handle=%04x", req
->file_handle
);
2205 dump_varargs_object_attributes( ", objattr=", cur_size
);
2208 static void dump_create_mapping_reply( const struct create_mapping_reply
*req
)
2210 fprintf( stderr
, " handle=%04x", req
->handle
);
2213 static void dump_open_mapping_request( const struct open_mapping_request
*req
)
2215 fprintf( stderr
, " access=%08x", req
->access
);
2216 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
2217 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
2218 dump_varargs_unicode_str( ", name=", cur_size
);
2221 static void dump_open_mapping_reply( const struct open_mapping_reply
*req
)
2223 fprintf( stderr
, " handle=%04x", req
->handle
);
2226 static void dump_get_mapping_info_request( const struct get_mapping_info_request
*req
)
2228 fprintf( stderr
, " handle=%04x", req
->handle
);
2229 fprintf( stderr
, ", access=%08x", req
->access
);
2232 static void dump_get_mapping_info_reply( const struct get_mapping_info_reply
*req
)
2234 dump_uint64( " size=", &req
->size
);
2235 fprintf( stderr
, ", flags=%08x", req
->flags
);
2236 fprintf( stderr
, ", protect=%d", req
->protect
);
2237 fprintf( stderr
, ", mapping=%04x", req
->mapping
);
2238 fprintf( stderr
, ", shared_file=%04x", req
->shared_file
);
2239 dump_varargs_pe_image_info( ", image=", cur_size
);
2242 static void dump_get_mapping_committed_range_request( const struct get_mapping_committed_range_request
*req
)
2244 fprintf( stderr
, " handle=%04x", req
->handle
);
2245 dump_uint64( ", offset=", &req
->offset
);
2248 static void dump_get_mapping_committed_range_reply( const struct get_mapping_committed_range_reply
*req
)
2250 dump_uint64( " size=", &req
->size
);
2251 fprintf( stderr
, ", committed=%d", req
->committed
);
2254 static void dump_add_mapping_committed_range_request( const struct add_mapping_committed_range_request
*req
)
2256 fprintf( stderr
, " handle=%04x", req
->handle
);
2257 dump_uint64( ", offset=", &req
->offset
);
2258 dump_uint64( ", size=", &req
->size
);
2261 static void dump_create_snapshot_request( const struct create_snapshot_request
*req
)
2263 fprintf( stderr
, " attributes=%08x", req
->attributes
);
2264 fprintf( stderr
, ", flags=%08x", req
->flags
);
2267 static void dump_create_snapshot_reply( const struct create_snapshot_reply
*req
)
2269 fprintf( stderr
, " handle=%04x", req
->handle
);
2272 static void dump_next_process_request( const struct next_process_request
*req
)
2274 fprintf( stderr
, " handle=%04x", req
->handle
);
2275 fprintf( stderr
, ", reset=%d", req
->reset
);
2278 static void dump_next_process_reply( const struct next_process_reply
*req
)
2280 fprintf( stderr
, " count=%d", req
->count
);
2281 fprintf( stderr
, ", pid=%04x", req
->pid
);
2282 fprintf( stderr
, ", ppid=%04x", req
->ppid
);
2283 fprintf( stderr
, ", threads=%d", req
->threads
);
2284 fprintf( stderr
, ", priority=%d", req
->priority
);
2285 fprintf( stderr
, ", handles=%d", req
->handles
);
2286 fprintf( stderr
, ", unix_pid=%d", req
->unix_pid
);
2287 dump_varargs_unicode_str( ", filename=", cur_size
);
2290 static void dump_next_thread_request( const struct next_thread_request
*req
)
2292 fprintf( stderr
, " handle=%04x", req
->handle
);
2293 fprintf( stderr
, ", reset=%d", req
->reset
);
2296 static void dump_next_thread_reply( const struct next_thread_reply
*req
)
2298 fprintf( stderr
, " count=%d", req
->count
);
2299 fprintf( stderr
, ", pid=%04x", req
->pid
);
2300 fprintf( stderr
, ", tid=%04x", req
->tid
);
2301 fprintf( stderr
, ", base_pri=%d", req
->base_pri
);
2302 fprintf( stderr
, ", delta_pri=%d", req
->delta_pri
);
2305 static void dump_wait_debug_event_request( const struct wait_debug_event_request
*req
)
2307 fprintf( stderr
, " get_handle=%d", req
->get_handle
);
2310 static void dump_wait_debug_event_reply( const struct wait_debug_event_reply
*req
)
2312 fprintf( stderr
, " pid=%04x", req
->pid
);
2313 fprintf( stderr
, ", tid=%04x", req
->tid
);
2314 fprintf( stderr
, ", wait=%04x", req
->wait
);
2315 dump_varargs_debug_event( ", event=", cur_size
);
2318 static void dump_queue_exception_event_request( const struct queue_exception_event_request
*req
)
2320 fprintf( stderr
, " first=%d", req
->first
);
2321 fprintf( stderr
, ", code=%08x", req
->code
);
2322 fprintf( stderr
, ", flags=%08x", req
->flags
);
2323 dump_uint64( ", record=", &req
->record
);
2324 dump_uint64( ", address=", &req
->address
);
2325 fprintf( stderr
, ", len=%u", req
->len
);
2326 dump_varargs_uints64( ", params=", min(cur_size
,req
->len
) );
2327 dump_varargs_context( ", context=", cur_size
);
2330 static void dump_queue_exception_event_reply( const struct queue_exception_event_reply
*req
)
2332 fprintf( stderr
, " handle=%04x", req
->handle
);
2335 static void dump_get_exception_status_request( const struct get_exception_status_request
*req
)
2337 fprintf( stderr
, " handle=%04x", req
->handle
);
2340 static void dump_get_exception_status_reply( const struct get_exception_status_reply
*req
)
2342 dump_varargs_context( " context=", cur_size
);
2345 static void dump_continue_debug_event_request( const struct continue_debug_event_request
*req
)
2347 fprintf( stderr
, " pid=%04x", req
->pid
);
2348 fprintf( stderr
, ", tid=%04x", req
->tid
);
2349 fprintf( stderr
, ", status=%d", req
->status
);
2352 static void dump_debug_process_request( const struct debug_process_request
*req
)
2354 fprintf( stderr
, " pid=%04x", req
->pid
);
2355 fprintf( stderr
, ", attach=%d", req
->attach
);
2358 static void dump_debug_break_request( const struct debug_break_request
*req
)
2360 fprintf( stderr
, " handle=%04x", req
->handle
);
2363 static void dump_debug_break_reply( const struct debug_break_reply
*req
)
2365 fprintf( stderr
, " self=%d", req
->self
);
2368 static void dump_set_debugger_kill_on_exit_request( const struct set_debugger_kill_on_exit_request
*req
)
2370 fprintf( stderr
, " kill_on_exit=%d", req
->kill_on_exit
);
2373 static void dump_read_process_memory_request( const struct read_process_memory_request
*req
)
2375 fprintf( stderr
, " handle=%04x", req
->handle
);
2376 dump_uint64( ", addr=", &req
->addr
);
2379 static void dump_read_process_memory_reply( const struct read_process_memory_reply
*req
)
2381 dump_varargs_bytes( " data=", cur_size
);
2384 static void dump_write_process_memory_request( const struct write_process_memory_request
*req
)
2386 fprintf( stderr
, " handle=%04x", req
->handle
);
2387 dump_uint64( ", addr=", &req
->addr
);
2388 dump_varargs_bytes( ", data=", cur_size
);
2391 static void dump_create_key_request( const struct create_key_request
*req
)
2393 fprintf( stderr
, " access=%08x", req
->access
);
2394 fprintf( stderr
, ", options=%08x", req
->options
);
2395 dump_varargs_object_attributes( ", objattr=", cur_size
);
2396 dump_varargs_unicode_str( ", class=", cur_size
);
2399 static void dump_create_key_reply( const struct create_key_reply
*req
)
2401 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2402 fprintf( stderr
, ", created=%d", req
->created
);
2405 static void dump_open_key_request( const struct open_key_request
*req
)
2407 fprintf( stderr
, " parent=%04x", req
->parent
);
2408 fprintf( stderr
, ", access=%08x", req
->access
);
2409 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
2410 dump_varargs_unicode_str( ", name=", cur_size
);
2413 static void dump_open_key_reply( const struct open_key_reply
*req
)
2415 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2418 static void dump_delete_key_request( const struct delete_key_request
*req
)
2420 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2423 static void dump_flush_key_request( const struct flush_key_request
*req
)
2425 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2428 static void dump_enum_key_request( const struct enum_key_request
*req
)
2430 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2431 fprintf( stderr
, ", index=%d", req
->index
);
2432 fprintf( stderr
, ", info_class=%d", req
->info_class
);
2435 static void dump_enum_key_reply( const struct enum_key_reply
*req
)
2437 fprintf( stderr
, " subkeys=%d", req
->subkeys
);
2438 fprintf( stderr
, ", max_subkey=%d", req
->max_subkey
);
2439 fprintf( stderr
, ", max_class=%d", req
->max_class
);
2440 fprintf( stderr
, ", values=%d", req
->values
);
2441 fprintf( stderr
, ", max_value=%d", req
->max_value
);
2442 fprintf( stderr
, ", max_data=%d", req
->max_data
);
2443 dump_timeout( ", modif=", &req
->modif
);
2444 fprintf( stderr
, ", total=%u", req
->total
);
2445 fprintf( stderr
, ", namelen=%u", req
->namelen
);
2446 dump_varargs_unicode_str( ", name=", min(cur_size
,req
->namelen
) );
2447 dump_varargs_unicode_str( ", class=", cur_size
);
2450 static void dump_set_key_value_request( const struct set_key_value_request
*req
)
2452 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2453 fprintf( stderr
, ", type=%d", req
->type
);
2454 fprintf( stderr
, ", namelen=%u", req
->namelen
);
2455 dump_varargs_unicode_str( ", name=", min(cur_size
,req
->namelen
) );
2456 dump_varargs_bytes( ", data=", cur_size
);
2459 static void dump_get_key_value_request( const struct get_key_value_request
*req
)
2461 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2462 dump_varargs_unicode_str( ", name=", cur_size
);
2465 static void dump_get_key_value_reply( const struct get_key_value_reply
*req
)
2467 fprintf( stderr
, " type=%d", req
->type
);
2468 fprintf( stderr
, ", total=%u", req
->total
);
2469 dump_varargs_bytes( ", data=", cur_size
);
2472 static void dump_enum_key_value_request( const struct enum_key_value_request
*req
)
2474 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2475 fprintf( stderr
, ", index=%d", req
->index
);
2476 fprintf( stderr
, ", info_class=%d", req
->info_class
);
2479 static void dump_enum_key_value_reply( const struct enum_key_value_reply
*req
)
2481 fprintf( stderr
, " type=%d", req
->type
);
2482 fprintf( stderr
, ", total=%u", req
->total
);
2483 fprintf( stderr
, ", namelen=%u", req
->namelen
);
2484 dump_varargs_unicode_str( ", name=", min(cur_size
,req
->namelen
) );
2485 dump_varargs_bytes( ", data=", cur_size
);
2488 static void dump_delete_key_value_request( const struct delete_key_value_request
*req
)
2490 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2491 dump_varargs_unicode_str( ", name=", cur_size
);
2494 static void dump_load_registry_request( const struct load_registry_request
*req
)
2496 fprintf( stderr
, " file=%04x", req
->file
);
2497 dump_varargs_object_attributes( ", objattr=", cur_size
);
2500 static void dump_unload_registry_request( const struct unload_registry_request
*req
)
2502 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2505 static void dump_save_registry_request( const struct save_registry_request
*req
)
2507 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2508 fprintf( stderr
, ", file=%04x", req
->file
);
2511 static void dump_set_registry_notification_request( const struct set_registry_notification_request
*req
)
2513 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2514 fprintf( stderr
, ", event=%04x", req
->event
);
2515 fprintf( stderr
, ", subtree=%d", req
->subtree
);
2516 fprintf( stderr
, ", filter=%08x", req
->filter
);
2519 static void dump_create_timer_request( const struct create_timer_request
*req
)
2521 fprintf( stderr
, " access=%08x", req
->access
);
2522 fprintf( stderr
, ", manual=%d", req
->manual
);
2523 dump_varargs_object_attributes( ", objattr=", cur_size
);
2526 static void dump_create_timer_reply( const struct create_timer_reply
*req
)
2528 fprintf( stderr
, " handle=%04x", req
->handle
);
2531 static void dump_open_timer_request( const struct open_timer_request
*req
)
2533 fprintf( stderr
, " access=%08x", req
->access
);
2534 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
2535 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
2536 dump_varargs_unicode_str( ", name=", cur_size
);
2539 static void dump_open_timer_reply( const struct open_timer_reply
*req
)
2541 fprintf( stderr
, " handle=%04x", req
->handle
);
2544 static void dump_set_timer_request( const struct set_timer_request
*req
)
2546 fprintf( stderr
, " handle=%04x", req
->handle
);
2547 dump_timeout( ", expire=", &req
->expire
);
2548 dump_uint64( ", callback=", &req
->callback
);
2549 dump_uint64( ", arg=", &req
->arg
);
2550 fprintf( stderr
, ", period=%d", req
->period
);
2553 static void dump_set_timer_reply( const struct set_timer_reply
*req
)
2555 fprintf( stderr
, " signaled=%d", req
->signaled
);
2558 static void dump_cancel_timer_request( const struct cancel_timer_request
*req
)
2560 fprintf( stderr
, " handle=%04x", req
->handle
);
2563 static void dump_cancel_timer_reply( const struct cancel_timer_reply
*req
)
2565 fprintf( stderr
, " signaled=%d", req
->signaled
);
2568 static void dump_get_timer_info_request( const struct get_timer_info_request
*req
)
2570 fprintf( stderr
, " handle=%04x", req
->handle
);
2573 static void dump_get_timer_info_reply( const struct get_timer_info_reply
*req
)
2575 dump_timeout( " when=", &req
->when
);
2576 fprintf( stderr
, ", signaled=%d", req
->signaled
);
2579 static void dump_get_thread_context_request( const struct get_thread_context_request
*req
)
2581 fprintf( stderr
, " handle=%04x", req
->handle
);
2582 fprintf( stderr
, ", flags=%08x", req
->flags
);
2583 fprintf( stderr
, ", suspend=%d", req
->suspend
);
2586 static void dump_get_thread_context_reply( const struct get_thread_context_reply
*req
)
2588 fprintf( stderr
, " self=%d", req
->self
);
2589 dump_varargs_context( ", context=", cur_size
);
2592 static void dump_set_thread_context_request( const struct set_thread_context_request
*req
)
2594 fprintf( stderr
, " handle=%04x", req
->handle
);
2595 fprintf( stderr
, ", suspend=%d", req
->suspend
);
2596 dump_varargs_context( ", context=", cur_size
);
2599 static void dump_set_thread_context_reply( const struct set_thread_context_reply
*req
)
2601 fprintf( stderr
, " self=%d", req
->self
);
2604 static void dump_get_selector_entry_request( const struct get_selector_entry_request
*req
)
2606 fprintf( stderr
, " handle=%04x", req
->handle
);
2607 fprintf( stderr
, ", entry=%d", req
->entry
);
2610 static void dump_get_selector_entry_reply( const struct get_selector_entry_reply
*req
)
2612 fprintf( stderr
, " base=%08x", req
->base
);
2613 fprintf( stderr
, ", limit=%08x", req
->limit
);
2614 fprintf( stderr
, ", flags=%02x", req
->flags
);
2617 static void dump_add_atom_request( const struct add_atom_request
*req
)
2619 fprintf( stderr
, " table=%04x", req
->table
);
2620 dump_varargs_unicode_str( ", name=", cur_size
);
2623 static void dump_add_atom_reply( const struct add_atom_reply
*req
)
2625 fprintf( stderr
, " atom=%04x", req
->atom
);
2628 static void dump_delete_atom_request( const struct delete_atom_request
*req
)
2630 fprintf( stderr
, " table=%04x", req
->table
);
2631 fprintf( stderr
, ", atom=%04x", req
->atom
);
2634 static void dump_find_atom_request( const struct find_atom_request
*req
)
2636 fprintf( stderr
, " table=%04x", req
->table
);
2637 dump_varargs_unicode_str( ", name=", cur_size
);
2640 static void dump_find_atom_reply( const struct find_atom_reply
*req
)
2642 fprintf( stderr
, " atom=%04x", req
->atom
);
2645 static void dump_get_atom_information_request( const struct get_atom_information_request
*req
)
2647 fprintf( stderr
, " table=%04x", req
->table
);
2648 fprintf( stderr
, ", atom=%04x", req
->atom
);
2651 static void dump_get_atom_information_reply( const struct get_atom_information_reply
*req
)
2653 fprintf( stderr
, " count=%d", req
->count
);
2654 fprintf( stderr
, ", pinned=%d", req
->pinned
);
2655 fprintf( stderr
, ", total=%u", req
->total
);
2656 dump_varargs_unicode_str( ", name=", cur_size
);
2659 static void dump_set_atom_information_request( const struct set_atom_information_request
*req
)
2661 fprintf( stderr
, " table=%04x", req
->table
);
2662 fprintf( stderr
, ", atom=%04x", req
->atom
);
2663 fprintf( stderr
, ", pinned=%d", req
->pinned
);
2666 static void dump_empty_atom_table_request( const struct empty_atom_table_request
*req
)
2668 fprintf( stderr
, " table=%04x", req
->table
);
2669 fprintf( stderr
, ", if_pinned=%d", req
->if_pinned
);
2672 static void dump_init_atom_table_request( const struct init_atom_table_request
*req
)
2674 fprintf( stderr
, " entries=%d", req
->entries
);
2677 static void dump_init_atom_table_reply( const struct init_atom_table_reply
*req
)
2679 fprintf( stderr
, " table=%04x", req
->table
);
2682 static void dump_get_msg_queue_request( const struct get_msg_queue_request
*req
)
2686 static void dump_get_msg_queue_reply( const struct get_msg_queue_reply
*req
)
2688 fprintf( stderr
, " handle=%04x", req
->handle
);
2691 static void dump_set_queue_fd_request( const struct set_queue_fd_request
*req
)
2693 fprintf( stderr
, " handle=%04x", req
->handle
);
2696 static void dump_set_queue_mask_request( const struct set_queue_mask_request
*req
)
2698 fprintf( stderr
, " wake_mask=%08x", req
->wake_mask
);
2699 fprintf( stderr
, ", changed_mask=%08x", req
->changed_mask
);
2700 fprintf( stderr
, ", skip_wait=%d", req
->skip_wait
);
2703 static void dump_set_queue_mask_reply( const struct set_queue_mask_reply
*req
)
2705 fprintf( stderr
, " wake_bits=%08x", req
->wake_bits
);
2706 fprintf( stderr
, ", changed_bits=%08x", req
->changed_bits
);
2709 static void dump_get_queue_status_request( const struct get_queue_status_request
*req
)
2711 fprintf( stderr
, " clear_bits=%08x", req
->clear_bits
);
2714 static void dump_get_queue_status_reply( const struct get_queue_status_reply
*req
)
2716 fprintf( stderr
, " wake_bits=%08x", req
->wake_bits
);
2717 fprintf( stderr
, ", changed_bits=%08x", req
->changed_bits
);
2720 static void dump_get_process_idle_event_request( const struct get_process_idle_event_request
*req
)
2722 fprintf( stderr
, " handle=%04x", req
->handle
);
2725 static void dump_get_process_idle_event_reply( const struct get_process_idle_event_reply
*req
)
2727 fprintf( stderr
, " event=%04x", req
->event
);
2730 static void dump_send_message_request( const struct send_message_request
*req
)
2732 fprintf( stderr
, " id=%04x", req
->id
);
2733 fprintf( stderr
, ", type=%d", req
->type
);
2734 fprintf( stderr
, ", flags=%d", req
->flags
);
2735 fprintf( stderr
, ", win=%08x", req
->win
);
2736 fprintf( stderr
, ", msg=%08x", req
->msg
);
2737 dump_uint64( ", wparam=", &req
->wparam
);
2738 dump_uint64( ", lparam=", &req
->lparam
);
2739 dump_timeout( ", timeout=", &req
->timeout
);
2740 dump_varargs_message_data( ", data=", cur_size
);
2743 static void dump_post_quit_message_request( const struct post_quit_message_request
*req
)
2745 fprintf( stderr
, " exit_code=%d", req
->exit_code
);
2748 static void dump_send_hardware_message_request( const struct send_hardware_message_request
*req
)
2750 fprintf( stderr
, " win=%08x", req
->win
);
2751 dump_hw_input( ", input=", &req
->input
);
2752 fprintf( stderr
, ", flags=%08x", req
->flags
);
2755 static void dump_send_hardware_message_reply( const struct send_hardware_message_reply
*req
)
2757 fprintf( stderr
, " wait=%d", req
->wait
);
2758 fprintf( stderr
, ", prev_x=%d", req
->prev_x
);
2759 fprintf( stderr
, ", prev_y=%d", req
->prev_y
);
2760 fprintf( stderr
, ", new_x=%d", req
->new_x
);
2761 fprintf( stderr
, ", new_y=%d", req
->new_y
);
2762 dump_varargs_bytes( ", keystate=", cur_size
);
2765 static void dump_get_message_request( const struct get_message_request
*req
)
2767 fprintf( stderr
, " flags=%08x", req
->flags
);
2768 fprintf( stderr
, ", get_win=%08x", req
->get_win
);
2769 fprintf( stderr
, ", get_first=%08x", req
->get_first
);
2770 fprintf( stderr
, ", get_last=%08x", req
->get_last
);
2771 fprintf( stderr
, ", hw_id=%08x", req
->hw_id
);
2772 fprintf( stderr
, ", wake_mask=%08x", req
->wake_mask
);
2773 fprintf( stderr
, ", changed_mask=%08x", req
->changed_mask
);
2776 static void dump_get_message_reply( const struct get_message_reply
*req
)
2778 fprintf( stderr
, " win=%08x", req
->win
);
2779 fprintf( stderr
, ", msg=%08x", req
->msg
);
2780 dump_uint64( ", wparam=", &req
->wparam
);
2781 dump_uint64( ", lparam=", &req
->lparam
);
2782 fprintf( stderr
, ", type=%d", req
->type
);
2783 fprintf( stderr
, ", x=%d", req
->x
);
2784 fprintf( stderr
, ", y=%d", req
->y
);
2785 fprintf( stderr
, ", time=%08x", req
->time
);
2786 fprintf( stderr
, ", active_hooks=%08x", req
->active_hooks
);
2787 fprintf( stderr
, ", total=%u", req
->total
);
2788 dump_varargs_message_data( ", data=", cur_size
);
2791 static void dump_reply_message_request( const struct reply_message_request
*req
)
2793 fprintf( stderr
, " remove=%d", req
->remove
);
2794 dump_uint64( ", result=", &req
->result
);
2795 dump_varargs_bytes( ", data=", cur_size
);
2798 static void dump_accept_hardware_message_request( const struct accept_hardware_message_request
*req
)
2800 fprintf( stderr
, " hw_id=%08x", req
->hw_id
);
2801 fprintf( stderr
, ", remove=%d", req
->remove
);
2804 static void dump_get_message_reply_request( const struct get_message_reply_request
*req
)
2806 fprintf( stderr
, " cancel=%d", req
->cancel
);
2809 static void dump_get_message_reply_reply( const struct get_message_reply_reply
*req
)
2811 dump_uint64( " result=", &req
->result
);
2812 dump_varargs_bytes( ", data=", cur_size
);
2815 static void dump_set_win_timer_request( const struct set_win_timer_request
*req
)
2817 fprintf( stderr
, " win=%08x", req
->win
);
2818 fprintf( stderr
, ", msg=%08x", req
->msg
);
2819 fprintf( stderr
, ", rate=%08x", req
->rate
);
2820 dump_uint64( ", id=", &req
->id
);
2821 dump_uint64( ", lparam=", &req
->lparam
);
2824 static void dump_set_win_timer_reply( const struct set_win_timer_reply
*req
)
2826 dump_uint64( " id=", &req
->id
);
2829 static void dump_kill_win_timer_request( const struct kill_win_timer_request
*req
)
2831 fprintf( stderr
, " win=%08x", req
->win
);
2832 dump_uint64( ", id=", &req
->id
);
2833 fprintf( stderr
, ", msg=%08x", req
->msg
);
2836 static void dump_is_window_hung_request( const struct is_window_hung_request
*req
)
2838 fprintf( stderr
, " win=%08x", req
->win
);
2841 static void dump_is_window_hung_reply( const struct is_window_hung_reply
*req
)
2843 fprintf( stderr
, " is_hung=%d", req
->is_hung
);
2846 static void dump_get_serial_info_request( const struct get_serial_info_request
*req
)
2848 fprintf( stderr
, " handle=%04x", req
->handle
);
2849 fprintf( stderr
, ", flags=%d", req
->flags
);
2852 static void dump_get_serial_info_reply( const struct get_serial_info_reply
*req
)
2854 fprintf( stderr
, " eventmask=%08x", req
->eventmask
);
2855 fprintf( stderr
, ", cookie=%08x", req
->cookie
);
2856 fprintf( stderr
, ", pending_write=%08x", req
->pending_write
);
2859 static void dump_set_serial_info_request( const struct set_serial_info_request
*req
)
2861 fprintf( stderr
, " handle=%04x", req
->handle
);
2862 fprintf( stderr
, ", flags=%d", req
->flags
);
2865 static void dump_register_async_request( const struct register_async_request
*req
)
2867 fprintf( stderr
, " type=%d", req
->type
);
2868 dump_async_data( ", async=", &req
->async
);
2869 fprintf( stderr
, ", count=%d", req
->count
);
2872 static void dump_cancel_async_request( const struct cancel_async_request
*req
)
2874 fprintf( stderr
, " handle=%04x", req
->handle
);
2875 dump_uint64( ", iosb=", &req
->iosb
);
2876 fprintf( stderr
, ", only_thread=%d", req
->only_thread
);
2879 static void dump_get_async_result_request( const struct get_async_result_request
*req
)
2881 dump_uint64( " user_arg=", &req
->user_arg
);
2884 static void dump_get_async_result_reply( const struct get_async_result_reply
*req
)
2886 fprintf( stderr
, " size=%u", req
->size
);
2887 dump_varargs_bytes( ", out_data=", cur_size
);
2890 static void dump_read_request( const struct read_request
*req
)
2892 dump_async_data( " async=", &req
->async
);
2893 dump_uint64( ", pos=", &req
->pos
);
2896 static void dump_read_reply( const struct read_reply
*req
)
2898 fprintf( stderr
, " wait=%04x", req
->wait
);
2899 fprintf( stderr
, ", options=%08x", req
->options
);
2900 dump_varargs_bytes( ", data=", cur_size
);
2903 static void dump_write_request( const struct write_request
*req
)
2905 dump_async_data( " async=", &req
->async
);
2906 dump_uint64( ", pos=", &req
->pos
);
2907 dump_varargs_bytes( ", data=", cur_size
);
2910 static void dump_write_reply( const struct write_reply
*req
)
2912 fprintf( stderr
, " wait=%04x", req
->wait
);
2913 fprintf( stderr
, ", options=%08x", req
->options
);
2914 fprintf( stderr
, ", size=%u", req
->size
);
2917 static void dump_ioctl_request( const struct ioctl_request
*req
)
2919 dump_ioctl_code( " code=", &req
->code
);
2920 dump_async_data( ", async=", &req
->async
);
2921 dump_varargs_bytes( ", in_data=", cur_size
);
2924 static void dump_ioctl_reply( const struct ioctl_reply
*req
)
2926 fprintf( stderr
, " wait=%04x", req
->wait
);
2927 fprintf( stderr
, ", options=%08x", req
->options
);
2928 dump_varargs_bytes( ", out_data=", cur_size
);
2931 static void dump_set_irp_result_request( const struct set_irp_result_request
*req
)
2933 fprintf( stderr
, " handle=%04x", req
->handle
);
2934 fprintf( stderr
, ", status=%08x", req
->status
);
2935 fprintf( stderr
, ", size=%u", req
->size
);
2936 dump_uint64( ", file_ptr=", &req
->file_ptr
);
2937 dump_varargs_bytes( ", data=", cur_size
);
2940 static void dump_create_named_pipe_request( const struct create_named_pipe_request
*req
)
2942 fprintf( stderr
, " access=%08x", req
->access
);
2943 fprintf( stderr
, ", options=%08x", req
->options
);
2944 fprintf( stderr
, ", sharing=%08x", req
->sharing
);
2945 fprintf( stderr
, ", maxinstances=%08x", req
->maxinstances
);
2946 fprintf( stderr
, ", outsize=%08x", req
->outsize
);
2947 fprintf( stderr
, ", insize=%08x", req
->insize
);
2948 dump_timeout( ", timeout=", &req
->timeout
);
2949 fprintf( stderr
, ", flags=%08x", req
->flags
);
2950 dump_varargs_object_attributes( ", objattr=", cur_size
);
2953 static void dump_create_named_pipe_reply( const struct create_named_pipe_reply
*req
)
2955 fprintf( stderr
, " handle=%04x", req
->handle
);
2958 static void dump_get_named_pipe_info_request( const struct get_named_pipe_info_request
*req
)
2960 fprintf( stderr
, " handle=%04x", req
->handle
);
2963 static void dump_get_named_pipe_info_reply( const struct get_named_pipe_info_reply
*req
)
2965 fprintf( stderr
, " flags=%08x", req
->flags
);
2966 fprintf( stderr
, ", sharing=%08x", req
->sharing
);
2967 fprintf( stderr
, ", maxinstances=%08x", req
->maxinstances
);
2968 fprintf( stderr
, ", instances=%08x", req
->instances
);
2969 fprintf( stderr
, ", outsize=%08x", req
->outsize
);
2970 fprintf( stderr
, ", insize=%08x", req
->insize
);
2973 static void dump_set_named_pipe_info_request( const struct set_named_pipe_info_request
*req
)
2975 fprintf( stderr
, " handle=%04x", req
->handle
);
2976 fprintf( stderr
, ", flags=%08x", req
->flags
);
2979 static void dump_create_window_request( const struct create_window_request
*req
)
2981 fprintf( stderr
, " parent=%08x", req
->parent
);
2982 fprintf( stderr
, ", owner=%08x", req
->owner
);
2983 fprintf( stderr
, ", atom=%04x", req
->atom
);
2984 dump_uint64( ", instance=", &req
->instance
);
2985 dump_varargs_unicode_str( ", class=", cur_size
);
2988 static void dump_create_window_reply( const struct create_window_reply
*req
)
2990 fprintf( stderr
, " handle=%08x", req
->handle
);
2991 fprintf( stderr
, ", parent=%08x", req
->parent
);
2992 fprintf( stderr
, ", owner=%08x", req
->owner
);
2993 fprintf( stderr
, ", extra=%d", req
->extra
);
2994 dump_uint64( ", class_ptr=", &req
->class_ptr
);
2997 static void dump_destroy_window_request( const struct destroy_window_request
*req
)
2999 fprintf( stderr
, " handle=%08x", req
->handle
);
3002 static void dump_get_desktop_window_request( const struct get_desktop_window_request
*req
)
3004 fprintf( stderr
, " force=%d", req
->force
);
3007 static void dump_get_desktop_window_reply( const struct get_desktop_window_reply
*req
)
3009 fprintf( stderr
, " top_window=%08x", req
->top_window
);
3010 fprintf( stderr
, ", msg_window=%08x", req
->msg_window
);
3013 static void dump_set_window_owner_request( const struct set_window_owner_request
*req
)
3015 fprintf( stderr
, " handle=%08x", req
->handle
);
3016 fprintf( stderr
, ", owner=%08x", req
->owner
);
3019 static void dump_set_window_owner_reply( const struct set_window_owner_reply
*req
)
3021 fprintf( stderr
, " full_owner=%08x", req
->full_owner
);
3022 fprintf( stderr
, ", prev_owner=%08x", req
->prev_owner
);
3025 static void dump_get_window_info_request( const struct get_window_info_request
*req
)
3027 fprintf( stderr
, " handle=%08x", req
->handle
);
3030 static void dump_get_window_info_reply( const struct get_window_info_reply
*req
)
3032 fprintf( stderr
, " full_handle=%08x", req
->full_handle
);
3033 fprintf( stderr
, ", last_active=%08x", req
->last_active
);
3034 fprintf( stderr
, ", pid=%04x", req
->pid
);
3035 fprintf( stderr
, ", tid=%04x", req
->tid
);
3036 fprintf( stderr
, ", atom=%04x", req
->atom
);
3037 fprintf( stderr
, ", is_unicode=%d", req
->is_unicode
);
3040 static void dump_set_window_info_request( const struct set_window_info_request
*req
)
3042 fprintf( stderr
, " flags=%04x", req
->flags
);
3043 fprintf( stderr
, ", is_unicode=%d", req
->is_unicode
);
3044 fprintf( stderr
, ", handle=%08x", req
->handle
);
3045 fprintf( stderr
, ", style=%08x", req
->style
);
3046 fprintf( stderr
, ", ex_style=%08x", req
->ex_style
);
3047 fprintf( stderr
, ", id=%08x", req
->id
);
3048 dump_uint64( ", instance=", &req
->instance
);
3049 dump_uint64( ", user_data=", &req
->user_data
);
3050 fprintf( stderr
, ", extra_offset=%d", req
->extra_offset
);
3051 fprintf( stderr
, ", extra_size=%u", req
->extra_size
);
3052 dump_uint64( ", extra_value=", &req
->extra_value
);
3055 static void dump_set_window_info_reply( const struct set_window_info_reply
*req
)
3057 fprintf( stderr
, " old_style=%08x", req
->old_style
);
3058 fprintf( stderr
, ", old_ex_style=%08x", req
->old_ex_style
);
3059 dump_uint64( ", old_instance=", &req
->old_instance
);
3060 dump_uint64( ", old_user_data=", &req
->old_user_data
);
3061 dump_uint64( ", old_extra_value=", &req
->old_extra_value
);
3062 fprintf( stderr
, ", old_id=%08x", req
->old_id
);
3065 static void dump_set_parent_request( const struct set_parent_request
*req
)
3067 fprintf( stderr
, " handle=%08x", req
->handle
);
3068 fprintf( stderr
, ", parent=%08x", req
->parent
);
3071 static void dump_set_parent_reply( const struct set_parent_reply
*req
)
3073 fprintf( stderr
, " old_parent=%08x", req
->old_parent
);
3074 fprintf( stderr
, ", full_parent=%08x", req
->full_parent
);
3077 static void dump_get_window_parents_request( const struct get_window_parents_request
*req
)
3079 fprintf( stderr
, " handle=%08x", req
->handle
);
3082 static void dump_get_window_parents_reply( const struct get_window_parents_reply
*req
)
3084 fprintf( stderr
, " count=%d", req
->count
);
3085 dump_varargs_user_handles( ", parents=", cur_size
);
3088 static void dump_get_window_children_request( const struct get_window_children_request
*req
)
3090 fprintf( stderr
, " desktop=%04x", req
->desktop
);
3091 fprintf( stderr
, ", parent=%08x", req
->parent
);
3092 fprintf( stderr
, ", atom=%04x", req
->atom
);
3093 fprintf( stderr
, ", tid=%04x", req
->tid
);
3094 dump_varargs_unicode_str( ", class=", cur_size
);
3097 static void dump_get_window_children_reply( const struct get_window_children_reply
*req
)
3099 fprintf( stderr
, " count=%d", req
->count
);
3100 dump_varargs_user_handles( ", children=", cur_size
);
3103 static void dump_get_window_children_from_point_request( const struct get_window_children_from_point_request
*req
)
3105 fprintf( stderr
, " parent=%08x", req
->parent
);
3106 fprintf( stderr
, ", x=%d", req
->x
);
3107 fprintf( stderr
, ", y=%d", req
->y
);
3110 static void dump_get_window_children_from_point_reply( const struct get_window_children_from_point_reply
*req
)
3112 fprintf( stderr
, " count=%d", req
->count
);
3113 dump_varargs_user_handles( ", children=", cur_size
);
3116 static void dump_get_window_tree_request( const struct get_window_tree_request
*req
)
3118 fprintf( stderr
, " handle=%08x", req
->handle
);
3121 static void dump_get_window_tree_reply( const struct get_window_tree_reply
*req
)
3123 fprintf( stderr
, " parent=%08x", req
->parent
);
3124 fprintf( stderr
, ", owner=%08x", req
->owner
);
3125 fprintf( stderr
, ", next_sibling=%08x", req
->next_sibling
);
3126 fprintf( stderr
, ", prev_sibling=%08x", req
->prev_sibling
);
3127 fprintf( stderr
, ", first_sibling=%08x", req
->first_sibling
);
3128 fprintf( stderr
, ", last_sibling=%08x", req
->last_sibling
);
3129 fprintf( stderr
, ", first_child=%08x", req
->first_child
);
3130 fprintf( stderr
, ", last_child=%08x", req
->last_child
);
3133 static void dump_set_window_pos_request( const struct set_window_pos_request
*req
)
3135 fprintf( stderr
, " swp_flags=%04x", req
->swp_flags
);
3136 fprintf( stderr
, ", paint_flags=%04x", req
->paint_flags
);
3137 fprintf( stderr
, ", handle=%08x", req
->handle
);
3138 fprintf( stderr
, ", previous=%08x", req
->previous
);
3139 dump_rectangle( ", window=", &req
->window
);
3140 dump_rectangle( ", client=", &req
->client
);
3141 dump_varargs_rectangles( ", valid=", cur_size
);
3144 static void dump_set_window_pos_reply( const struct set_window_pos_reply
*req
)
3146 fprintf( stderr
, " new_style=%08x", req
->new_style
);
3147 fprintf( stderr
, ", new_ex_style=%08x", req
->new_ex_style
);
3148 fprintf( stderr
, ", surface_win=%08x", req
->surface_win
);
3151 static void dump_get_window_rectangles_request( const struct get_window_rectangles_request
*req
)
3153 fprintf( stderr
, " handle=%08x", req
->handle
);
3154 fprintf( stderr
, ", relative=%d", req
->relative
);
3157 static void dump_get_window_rectangles_reply( const struct get_window_rectangles_reply
*req
)
3159 dump_rectangle( " window=", &req
->window
);
3160 dump_rectangle( ", visible=", &req
->visible
);
3161 dump_rectangle( ", client=", &req
->client
);
3164 static void dump_get_window_text_request( const struct get_window_text_request
*req
)
3166 fprintf( stderr
, " handle=%08x", req
->handle
);
3169 static void dump_get_window_text_reply( const struct get_window_text_reply
*req
)
3171 dump_varargs_unicode_str( " text=", cur_size
);
3174 static void dump_set_window_text_request( const struct set_window_text_request
*req
)
3176 fprintf( stderr
, " handle=%08x", req
->handle
);
3177 dump_varargs_unicode_str( ", text=", cur_size
);
3180 static void dump_get_windows_offset_request( const struct get_windows_offset_request
*req
)
3182 fprintf( stderr
, " from=%08x", req
->from
);
3183 fprintf( stderr
, ", to=%08x", req
->to
);
3186 static void dump_get_windows_offset_reply( const struct get_windows_offset_reply
*req
)
3188 fprintf( stderr
, " x=%d", req
->x
);
3189 fprintf( stderr
, ", y=%d", req
->y
);
3190 fprintf( stderr
, ", mirror=%d", req
->mirror
);
3193 static void dump_get_visible_region_request( const struct get_visible_region_request
*req
)
3195 fprintf( stderr
, " window=%08x", req
->window
);
3196 fprintf( stderr
, ", flags=%08x", req
->flags
);
3199 static void dump_get_visible_region_reply( const struct get_visible_region_reply
*req
)
3201 fprintf( stderr
, " top_win=%08x", req
->top_win
);
3202 dump_rectangle( ", top_rect=", &req
->top_rect
);
3203 dump_rectangle( ", win_rect=", &req
->win_rect
);
3204 fprintf( stderr
, ", paint_flags=%08x", req
->paint_flags
);
3205 fprintf( stderr
, ", total_size=%u", req
->total_size
);
3206 dump_varargs_rectangles( ", region=", cur_size
);
3209 static void dump_get_surface_region_request( const struct get_surface_region_request
*req
)
3211 fprintf( stderr
, " window=%08x", req
->window
);
3214 static void dump_get_surface_region_reply( const struct get_surface_region_reply
*req
)
3216 dump_rectangle( " visible_rect=", &req
->visible_rect
);
3217 fprintf( stderr
, ", total_size=%u", req
->total_size
);
3218 dump_varargs_rectangles( ", region=", cur_size
);
3221 static void dump_get_window_region_request( const struct get_window_region_request
*req
)
3223 fprintf( stderr
, " window=%08x", req
->window
);
3226 static void dump_get_window_region_reply( const struct get_window_region_reply
*req
)
3228 fprintf( stderr
, " total_size=%u", req
->total_size
);
3229 dump_varargs_rectangles( ", region=", cur_size
);
3232 static void dump_set_window_region_request( const struct set_window_region_request
*req
)
3234 fprintf( stderr
, " window=%08x", req
->window
);
3235 fprintf( stderr
, ", redraw=%d", req
->redraw
);
3236 dump_varargs_rectangles( ", region=", cur_size
);
3239 static void dump_get_update_region_request( const struct get_update_region_request
*req
)
3241 fprintf( stderr
, " window=%08x", req
->window
);
3242 fprintf( stderr
, ", from_child=%08x", req
->from_child
);
3243 fprintf( stderr
, ", flags=%08x", req
->flags
);
3246 static void dump_get_update_region_reply( const struct get_update_region_reply
*req
)
3248 fprintf( stderr
, " child=%08x", req
->child
);
3249 fprintf( stderr
, ", flags=%08x", req
->flags
);
3250 fprintf( stderr
, ", total_size=%u", req
->total_size
);
3251 dump_varargs_rectangles( ", region=", cur_size
);
3254 static void dump_update_window_zorder_request( const struct update_window_zorder_request
*req
)
3256 fprintf( stderr
, " window=%08x", req
->window
);
3257 dump_rectangle( ", rect=", &req
->rect
);
3260 static void dump_redraw_window_request( const struct redraw_window_request
*req
)
3262 fprintf( stderr
, " window=%08x", req
->window
);
3263 fprintf( stderr
, ", flags=%08x", req
->flags
);
3264 dump_varargs_rectangles( ", region=", cur_size
);
3267 static void dump_set_window_property_request( const struct set_window_property_request
*req
)
3269 fprintf( stderr
, " window=%08x", req
->window
);
3270 dump_uint64( ", data=", &req
->data
);
3271 fprintf( stderr
, ", atom=%04x", req
->atom
);
3272 dump_varargs_unicode_str( ", name=", cur_size
);
3275 static void dump_remove_window_property_request( const struct remove_window_property_request
*req
)
3277 fprintf( stderr
, " window=%08x", req
->window
);
3278 fprintf( stderr
, ", atom=%04x", req
->atom
);
3279 dump_varargs_unicode_str( ", name=", cur_size
);
3282 static void dump_remove_window_property_reply( const struct remove_window_property_reply
*req
)
3284 dump_uint64( " data=", &req
->data
);
3287 static void dump_get_window_property_request( const struct get_window_property_request
*req
)
3289 fprintf( stderr
, " window=%08x", req
->window
);
3290 fprintf( stderr
, ", atom=%04x", req
->atom
);
3291 dump_varargs_unicode_str( ", name=", cur_size
);
3294 static void dump_get_window_property_reply( const struct get_window_property_reply
*req
)
3296 dump_uint64( " data=", &req
->data
);
3299 static void dump_get_window_properties_request( const struct get_window_properties_request
*req
)
3301 fprintf( stderr
, " window=%08x", req
->window
);
3304 static void dump_get_window_properties_reply( const struct get_window_properties_reply
*req
)
3306 fprintf( stderr
, " total=%d", req
->total
);
3307 dump_varargs_properties( ", props=", cur_size
);
3310 static void dump_create_winstation_request( const struct create_winstation_request
*req
)
3312 fprintf( stderr
, " flags=%08x", req
->flags
);
3313 fprintf( stderr
, ", access=%08x", req
->access
);
3314 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3315 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
3316 dump_varargs_unicode_str( ", name=", cur_size
);
3319 static void dump_create_winstation_reply( const struct create_winstation_reply
*req
)
3321 fprintf( stderr
, " handle=%04x", req
->handle
);
3324 static void dump_open_winstation_request( const struct open_winstation_request
*req
)
3326 fprintf( stderr
, " access=%08x", req
->access
);
3327 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3328 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
3329 dump_varargs_unicode_str( ", name=", cur_size
);
3332 static void dump_open_winstation_reply( const struct open_winstation_reply
*req
)
3334 fprintf( stderr
, " handle=%04x", req
->handle
);
3337 static void dump_close_winstation_request( const struct close_winstation_request
*req
)
3339 fprintf( stderr
, " handle=%04x", req
->handle
);
3342 static void dump_get_process_winstation_request( const struct get_process_winstation_request
*req
)
3346 static void dump_get_process_winstation_reply( const struct get_process_winstation_reply
*req
)
3348 fprintf( stderr
, " handle=%04x", req
->handle
);
3351 static void dump_set_process_winstation_request( const struct set_process_winstation_request
*req
)
3353 fprintf( stderr
, " handle=%04x", req
->handle
);
3356 static void dump_enum_winstation_request( const struct enum_winstation_request
*req
)
3358 fprintf( stderr
, " index=%08x", req
->index
);
3361 static void dump_enum_winstation_reply( const struct enum_winstation_reply
*req
)
3363 fprintf( stderr
, " next=%08x", req
->next
);
3364 dump_varargs_unicode_str( ", name=", cur_size
);
3367 static void dump_create_desktop_request( const struct create_desktop_request
*req
)
3369 fprintf( stderr
, " flags=%08x", req
->flags
);
3370 fprintf( stderr
, ", access=%08x", req
->access
);
3371 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3372 dump_varargs_unicode_str( ", name=", cur_size
);
3375 static void dump_create_desktop_reply( const struct create_desktop_reply
*req
)
3377 fprintf( stderr
, " handle=%04x", req
->handle
);
3380 static void dump_open_desktop_request( const struct open_desktop_request
*req
)
3382 fprintf( stderr
, " winsta=%04x", req
->winsta
);
3383 fprintf( stderr
, ", flags=%08x", req
->flags
);
3384 fprintf( stderr
, ", access=%08x", req
->access
);
3385 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3386 dump_varargs_unicode_str( ", name=", cur_size
);
3389 static void dump_open_desktop_reply( const struct open_desktop_reply
*req
)
3391 fprintf( stderr
, " handle=%04x", req
->handle
);
3394 static void dump_open_input_desktop_request( const struct open_input_desktop_request
*req
)
3396 fprintf( stderr
, " flags=%08x", req
->flags
);
3397 fprintf( stderr
, ", access=%08x", req
->access
);
3398 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3401 static void dump_open_input_desktop_reply( const struct open_input_desktop_reply
*req
)
3403 fprintf( stderr
, " handle=%04x", req
->handle
);
3406 static void dump_close_desktop_request( const struct close_desktop_request
*req
)
3408 fprintf( stderr
, " handle=%04x", req
->handle
);
3411 static void dump_get_thread_desktop_request( const struct get_thread_desktop_request
*req
)
3413 fprintf( stderr
, " tid=%04x", req
->tid
);
3416 static void dump_get_thread_desktop_reply( const struct get_thread_desktop_reply
*req
)
3418 fprintf( stderr
, " handle=%04x", req
->handle
);
3421 static void dump_set_thread_desktop_request( const struct set_thread_desktop_request
*req
)
3423 fprintf( stderr
, " handle=%04x", req
->handle
);
3426 static void dump_enum_desktop_request( const struct enum_desktop_request
*req
)
3428 fprintf( stderr
, " winstation=%04x", req
->winstation
);
3429 fprintf( stderr
, ", index=%08x", req
->index
);
3432 static void dump_enum_desktop_reply( const struct enum_desktop_reply
*req
)
3434 fprintf( stderr
, " next=%08x", req
->next
);
3435 dump_varargs_unicode_str( ", name=", cur_size
);
3438 static void dump_set_user_object_info_request( const struct set_user_object_info_request
*req
)
3440 fprintf( stderr
, " handle=%04x", req
->handle
);
3441 fprintf( stderr
, ", flags=%08x", req
->flags
);
3442 fprintf( stderr
, ", obj_flags=%08x", req
->obj_flags
);
3445 static void dump_set_user_object_info_reply( const struct set_user_object_info_reply
*req
)
3447 fprintf( stderr
, " is_desktop=%d", req
->is_desktop
);
3448 fprintf( stderr
, ", old_obj_flags=%08x", req
->old_obj_flags
);
3449 dump_varargs_unicode_str( ", name=", cur_size
);
3452 static void dump_register_hotkey_request( const struct register_hotkey_request
*req
)
3454 fprintf( stderr
, " window=%08x", req
->window
);
3455 fprintf( stderr
, ", id=%d", req
->id
);
3456 fprintf( stderr
, ", flags=%08x", req
->flags
);
3457 fprintf( stderr
, ", vkey=%08x", req
->vkey
);
3460 static void dump_register_hotkey_reply( const struct register_hotkey_reply
*req
)
3462 fprintf( stderr
, " replaced=%d", req
->replaced
);
3463 fprintf( stderr
, ", flags=%08x", req
->flags
);
3464 fprintf( stderr
, ", vkey=%08x", req
->vkey
);
3467 static void dump_unregister_hotkey_request( const struct unregister_hotkey_request
*req
)
3469 fprintf( stderr
, " window=%08x", req
->window
);
3470 fprintf( stderr
, ", id=%d", req
->id
);
3473 static void dump_unregister_hotkey_reply( const struct unregister_hotkey_reply
*req
)
3475 fprintf( stderr
, " flags=%08x", req
->flags
);
3476 fprintf( stderr
, ", vkey=%08x", req
->vkey
);
3479 static void dump_attach_thread_input_request( const struct attach_thread_input_request
*req
)
3481 fprintf( stderr
, " tid_from=%04x", req
->tid_from
);
3482 fprintf( stderr
, ", tid_to=%04x", req
->tid_to
);
3483 fprintf( stderr
, ", attach=%d", req
->attach
);
3486 static void dump_get_thread_input_request( const struct get_thread_input_request
*req
)
3488 fprintf( stderr
, " tid=%04x", req
->tid
);
3491 static void dump_get_thread_input_reply( const struct get_thread_input_reply
*req
)
3493 fprintf( stderr
, " focus=%08x", req
->focus
);
3494 fprintf( stderr
, ", capture=%08x", req
->capture
);
3495 fprintf( stderr
, ", active=%08x", req
->active
);
3496 fprintf( stderr
, ", foreground=%08x", req
->foreground
);
3497 fprintf( stderr
, ", menu_owner=%08x", req
->menu_owner
);
3498 fprintf( stderr
, ", move_size=%08x", req
->move_size
);
3499 fprintf( stderr
, ", caret=%08x", req
->caret
);
3500 fprintf( stderr
, ", cursor=%08x", req
->cursor
);
3501 fprintf( stderr
, ", show_count=%d", req
->show_count
);
3502 dump_rectangle( ", rect=", &req
->rect
);
3505 static void dump_get_last_input_time_request( const struct get_last_input_time_request
*req
)
3509 static void dump_get_last_input_time_reply( const struct get_last_input_time_reply
*req
)
3511 fprintf( stderr
, " time=%08x", req
->time
);
3514 static void dump_get_key_state_request( const struct get_key_state_request
*req
)
3516 fprintf( stderr
, " tid=%04x", req
->tid
);
3517 fprintf( stderr
, ", key=%d", req
->key
);
3520 static void dump_get_key_state_reply( const struct get_key_state_reply
*req
)
3522 fprintf( stderr
, " state=%02x", req
->state
);
3523 dump_varargs_bytes( ", keystate=", cur_size
);
3526 static void dump_set_key_state_request( const struct set_key_state_request
*req
)
3528 fprintf( stderr
, " tid=%04x", req
->tid
);
3529 fprintf( stderr
, ", async=%d", req
->async
);
3530 dump_varargs_bytes( ", keystate=", cur_size
);
3533 static void dump_set_foreground_window_request( const struct set_foreground_window_request
*req
)
3535 fprintf( stderr
, " handle=%08x", req
->handle
);
3538 static void dump_set_foreground_window_reply( const struct set_foreground_window_reply
*req
)
3540 fprintf( stderr
, " previous=%08x", req
->previous
);
3541 fprintf( stderr
, ", send_msg_old=%d", req
->send_msg_old
);
3542 fprintf( stderr
, ", send_msg_new=%d", req
->send_msg_new
);
3545 static void dump_set_focus_window_request( const struct set_focus_window_request
*req
)
3547 fprintf( stderr
, " handle=%08x", req
->handle
);
3550 static void dump_set_focus_window_reply( const struct set_focus_window_reply
*req
)
3552 fprintf( stderr
, " previous=%08x", req
->previous
);
3555 static void dump_set_active_window_request( const struct set_active_window_request
*req
)
3557 fprintf( stderr
, " handle=%08x", req
->handle
);
3560 static void dump_set_active_window_reply( const struct set_active_window_reply
*req
)
3562 fprintf( stderr
, " previous=%08x", req
->previous
);
3565 static void dump_set_capture_window_request( const struct set_capture_window_request
*req
)
3567 fprintf( stderr
, " handle=%08x", req
->handle
);
3568 fprintf( stderr
, ", flags=%08x", req
->flags
);
3571 static void dump_set_capture_window_reply( const struct set_capture_window_reply
*req
)
3573 fprintf( stderr
, " previous=%08x", req
->previous
);
3574 fprintf( stderr
, ", full_handle=%08x", req
->full_handle
);
3577 static void dump_set_caret_window_request( const struct set_caret_window_request
*req
)
3579 fprintf( stderr
, " handle=%08x", req
->handle
);
3580 fprintf( stderr
, ", width=%d", req
->width
);
3581 fprintf( stderr
, ", height=%d", req
->height
);
3584 static void dump_set_caret_window_reply( const struct set_caret_window_reply
*req
)
3586 fprintf( stderr
, " previous=%08x", req
->previous
);
3587 dump_rectangle( ", old_rect=", &req
->old_rect
);
3588 fprintf( stderr
, ", old_hide=%d", req
->old_hide
);
3589 fprintf( stderr
, ", old_state=%d", req
->old_state
);
3592 static void dump_set_caret_info_request( const struct set_caret_info_request
*req
)
3594 fprintf( stderr
, " flags=%08x", req
->flags
);
3595 fprintf( stderr
, ", handle=%08x", req
->handle
);
3596 fprintf( stderr
, ", x=%d", req
->x
);
3597 fprintf( stderr
, ", y=%d", req
->y
);
3598 fprintf( stderr
, ", hide=%d", req
->hide
);
3599 fprintf( stderr
, ", state=%d", req
->state
);
3602 static void dump_set_caret_info_reply( const struct set_caret_info_reply
*req
)
3604 fprintf( stderr
, " full_handle=%08x", req
->full_handle
);
3605 dump_rectangle( ", old_rect=", &req
->old_rect
);
3606 fprintf( stderr
, ", old_hide=%d", req
->old_hide
);
3607 fprintf( stderr
, ", old_state=%d", req
->old_state
);
3610 static void dump_set_hook_request( const struct set_hook_request
*req
)
3612 fprintf( stderr
, " id=%d", req
->id
);
3613 fprintf( stderr
, ", pid=%04x", req
->pid
);
3614 fprintf( stderr
, ", tid=%04x", req
->tid
);
3615 fprintf( stderr
, ", event_min=%d", req
->event_min
);
3616 fprintf( stderr
, ", event_max=%d", req
->event_max
);
3617 dump_uint64( ", proc=", &req
->proc
);
3618 fprintf( stderr
, ", flags=%d", req
->flags
);
3619 fprintf( stderr
, ", unicode=%d", req
->unicode
);
3620 dump_varargs_unicode_str( ", module=", cur_size
);
3623 static void dump_set_hook_reply( const struct set_hook_reply
*req
)
3625 fprintf( stderr
, " handle=%08x", req
->handle
);
3626 fprintf( stderr
, ", active_hooks=%08x", req
->active_hooks
);
3629 static void dump_remove_hook_request( const struct remove_hook_request
*req
)
3631 fprintf( stderr
, " handle=%08x", req
->handle
);
3632 dump_uint64( ", proc=", &req
->proc
);
3633 fprintf( stderr
, ", id=%d", req
->id
);
3636 static void dump_remove_hook_reply( const struct remove_hook_reply
*req
)
3638 fprintf( stderr
, " active_hooks=%08x", req
->active_hooks
);
3641 static void dump_start_hook_chain_request( const struct start_hook_chain_request
*req
)
3643 fprintf( stderr
, " id=%d", req
->id
);
3644 fprintf( stderr
, ", event=%d", req
->event
);
3645 fprintf( stderr
, ", window=%08x", req
->window
);
3646 fprintf( stderr
, ", object_id=%d", req
->object_id
);
3647 fprintf( stderr
, ", child_id=%d", req
->child_id
);
3650 static void dump_start_hook_chain_reply( const struct start_hook_chain_reply
*req
)
3652 fprintf( stderr
, " handle=%08x", req
->handle
);
3653 fprintf( stderr
, ", pid=%04x", req
->pid
);
3654 fprintf( stderr
, ", tid=%04x", req
->tid
);
3655 fprintf( stderr
, ", unicode=%d", req
->unicode
);
3656 dump_uint64( ", proc=", &req
->proc
);
3657 fprintf( stderr
, ", active_hooks=%08x", req
->active_hooks
);
3658 dump_varargs_unicode_str( ", module=", cur_size
);
3661 static void dump_finish_hook_chain_request( const struct finish_hook_chain_request
*req
)
3663 fprintf( stderr
, " id=%d", req
->id
);
3666 static void dump_get_hook_info_request( const struct get_hook_info_request
*req
)
3668 fprintf( stderr
, " handle=%08x", req
->handle
);
3669 fprintf( stderr
, ", get_next=%d", req
->get_next
);
3670 fprintf( stderr
, ", event=%d", req
->event
);
3671 fprintf( stderr
, ", window=%08x", req
->window
);
3672 fprintf( stderr
, ", object_id=%d", req
->object_id
);
3673 fprintf( stderr
, ", child_id=%d", req
->child_id
);
3676 static void dump_get_hook_info_reply( const struct get_hook_info_reply
*req
)
3678 fprintf( stderr
, " handle=%08x", req
->handle
);
3679 fprintf( stderr
, ", id=%d", req
->id
);
3680 fprintf( stderr
, ", pid=%04x", req
->pid
);
3681 fprintf( stderr
, ", tid=%04x", req
->tid
);
3682 dump_uint64( ", proc=", &req
->proc
);
3683 fprintf( stderr
, ", unicode=%d", req
->unicode
);
3684 dump_varargs_unicode_str( ", module=", cur_size
);
3687 static void dump_create_class_request( const struct create_class_request
*req
)
3689 fprintf( stderr
, " local=%d", req
->local
);
3690 fprintf( stderr
, ", atom=%04x", req
->atom
);
3691 fprintf( stderr
, ", style=%08x", req
->style
);
3692 dump_uint64( ", instance=", &req
->instance
);
3693 fprintf( stderr
, ", extra=%d", req
->extra
);
3694 fprintf( stderr
, ", win_extra=%d", req
->win_extra
);
3695 dump_uint64( ", client_ptr=", &req
->client_ptr
);
3696 dump_varargs_unicode_str( ", name=", cur_size
);
3699 static void dump_create_class_reply( const struct create_class_reply
*req
)
3701 fprintf( stderr
, " atom=%04x", req
->atom
);
3704 static void dump_destroy_class_request( const struct destroy_class_request
*req
)
3706 fprintf( stderr
, " atom=%04x", req
->atom
);
3707 dump_uint64( ", instance=", &req
->instance
);
3708 dump_varargs_unicode_str( ", name=", cur_size
);
3711 static void dump_destroy_class_reply( const struct destroy_class_reply
*req
)
3713 dump_uint64( " client_ptr=", &req
->client_ptr
);
3716 static void dump_set_class_info_request( const struct set_class_info_request
*req
)
3718 fprintf( stderr
, " window=%08x", req
->window
);
3719 fprintf( stderr
, ", flags=%08x", req
->flags
);
3720 fprintf( stderr
, ", atom=%04x", req
->atom
);
3721 fprintf( stderr
, ", style=%08x", req
->style
);
3722 fprintf( stderr
, ", win_extra=%d", req
->win_extra
);
3723 dump_uint64( ", instance=", &req
->instance
);
3724 fprintf( stderr
, ", extra_offset=%d", req
->extra_offset
);
3725 fprintf( stderr
, ", extra_size=%u", req
->extra_size
);
3726 dump_uint64( ", extra_value=", &req
->extra_value
);
3729 static void dump_set_class_info_reply( const struct set_class_info_reply
*req
)
3731 fprintf( stderr
, " old_atom=%04x", req
->old_atom
);
3732 fprintf( stderr
, ", old_style=%08x", req
->old_style
);
3733 fprintf( stderr
, ", old_extra=%d", req
->old_extra
);
3734 fprintf( stderr
, ", old_win_extra=%d", req
->old_win_extra
);
3735 dump_uint64( ", old_instance=", &req
->old_instance
);
3736 dump_uint64( ", old_extra_value=", &req
->old_extra_value
);
3739 static void dump_open_clipboard_request( const struct open_clipboard_request
*req
)
3741 fprintf( stderr
, " window=%08x", req
->window
);
3744 static void dump_open_clipboard_reply( const struct open_clipboard_reply
*req
)
3746 fprintf( stderr
, " owner=%08x", req
->owner
);
3749 static void dump_close_clipboard_request( const struct close_clipboard_request
*req
)
3753 static void dump_close_clipboard_reply( const struct close_clipboard_reply
*req
)
3755 fprintf( stderr
, " viewer=%08x", req
->viewer
);
3756 fprintf( stderr
, ", owner=%08x", req
->owner
);
3759 static void dump_empty_clipboard_request( const struct empty_clipboard_request
*req
)
3763 static void dump_set_clipboard_data_request( const struct set_clipboard_data_request
*req
)
3765 fprintf( stderr
, " format=%08x", req
->format
);
3766 fprintf( stderr
, ", lcid=%08x", req
->lcid
);
3767 dump_varargs_bytes( ", data=", cur_size
);
3770 static void dump_set_clipboard_data_reply( const struct set_clipboard_data_reply
*req
)
3772 fprintf( stderr
, " seqno=%08x", req
->seqno
);
3775 static void dump_get_clipboard_data_request( const struct get_clipboard_data_request
*req
)
3777 fprintf( stderr
, " format=%08x", req
->format
);
3778 fprintf( stderr
, ", render=%d", req
->render
);
3779 fprintf( stderr
, ", cached=%d", req
->cached
);
3780 fprintf( stderr
, ", seqno=%08x", req
->seqno
);
3783 static void dump_get_clipboard_data_reply( const struct get_clipboard_data_reply
*req
)
3785 fprintf( stderr
, " from=%08x", req
->from
);
3786 fprintf( stderr
, ", owner=%08x", req
->owner
);
3787 fprintf( stderr
, ", seqno=%08x", req
->seqno
);
3788 fprintf( stderr
, ", total=%u", req
->total
);
3789 dump_varargs_bytes( ", data=", cur_size
);
3792 static void dump_get_clipboard_formats_request( const struct get_clipboard_formats_request
*req
)
3794 fprintf( stderr
, " format=%08x", req
->format
);
3797 static void dump_get_clipboard_formats_reply( const struct get_clipboard_formats_reply
*req
)
3799 fprintf( stderr
, " count=%08x", req
->count
);
3800 dump_varargs_uints( ", formats=", cur_size
);
3803 static void dump_enum_clipboard_formats_request( const struct enum_clipboard_formats_request
*req
)
3805 fprintf( stderr
, " previous=%08x", req
->previous
);
3808 static void dump_enum_clipboard_formats_reply( const struct enum_clipboard_formats_reply
*req
)
3810 fprintf( stderr
, " format=%08x", req
->format
);
3813 static void dump_release_clipboard_request( const struct release_clipboard_request
*req
)
3815 fprintf( stderr
, " owner=%08x", req
->owner
);
3818 static void dump_release_clipboard_reply( const struct release_clipboard_reply
*req
)
3820 fprintf( stderr
, " viewer=%08x", req
->viewer
);
3821 fprintf( stderr
, ", owner=%08x", req
->owner
);
3824 static void dump_get_clipboard_info_request( const struct get_clipboard_info_request
*req
)
3828 static void dump_get_clipboard_info_reply( const struct get_clipboard_info_reply
*req
)
3830 fprintf( stderr
, " window=%08x", req
->window
);
3831 fprintf( stderr
, ", owner=%08x", req
->owner
);
3832 fprintf( stderr
, ", viewer=%08x", req
->viewer
);
3833 fprintf( stderr
, ", seqno=%08x", req
->seqno
);
3836 static void dump_set_clipboard_viewer_request( const struct set_clipboard_viewer_request
*req
)
3838 fprintf( stderr
, " viewer=%08x", req
->viewer
);
3839 fprintf( stderr
, ", previous=%08x", req
->previous
);
3842 static void dump_set_clipboard_viewer_reply( const struct set_clipboard_viewer_reply
*req
)
3844 fprintf( stderr
, " old_viewer=%08x", req
->old_viewer
);
3845 fprintf( stderr
, ", owner=%08x", req
->owner
);
3848 static void dump_add_clipboard_listener_request( const struct add_clipboard_listener_request
*req
)
3850 fprintf( stderr
, " window=%08x", req
->window
);
3853 static void dump_remove_clipboard_listener_request( const struct remove_clipboard_listener_request
*req
)
3855 fprintf( stderr
, " window=%08x", req
->window
);
3858 static void dump_open_token_request( const struct open_token_request
*req
)
3860 fprintf( stderr
, " handle=%04x", req
->handle
);
3861 fprintf( stderr
, ", access=%08x", req
->access
);
3862 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3863 fprintf( stderr
, ", flags=%08x", req
->flags
);
3866 static void dump_open_token_reply( const struct open_token_reply
*req
)
3868 fprintf( stderr
, " token=%04x", req
->token
);
3871 static void dump_set_global_windows_request( const struct set_global_windows_request
*req
)
3873 fprintf( stderr
, " flags=%08x", req
->flags
);
3874 fprintf( stderr
, ", shell_window=%08x", req
->shell_window
);
3875 fprintf( stderr
, ", shell_listview=%08x", req
->shell_listview
);
3876 fprintf( stderr
, ", progman_window=%08x", req
->progman_window
);
3877 fprintf( stderr
, ", taskman_window=%08x", req
->taskman_window
);
3880 static void dump_set_global_windows_reply( const struct set_global_windows_reply
*req
)
3882 fprintf( stderr
, " old_shell_window=%08x", req
->old_shell_window
);
3883 fprintf( stderr
, ", old_shell_listview=%08x", req
->old_shell_listview
);
3884 fprintf( stderr
, ", old_progman_window=%08x", req
->old_progman_window
);
3885 fprintf( stderr
, ", old_taskman_window=%08x", req
->old_taskman_window
);
3888 static void dump_adjust_token_privileges_request( const struct adjust_token_privileges_request
*req
)
3890 fprintf( stderr
, " handle=%04x", req
->handle
);
3891 fprintf( stderr
, ", disable_all=%d", req
->disable_all
);
3892 fprintf( stderr
, ", get_modified_state=%d", req
->get_modified_state
);
3893 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size
);
3896 static void dump_adjust_token_privileges_reply( const struct adjust_token_privileges_reply
*req
)
3898 fprintf( stderr
, " len=%08x", req
->len
);
3899 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size
);
3902 static void dump_get_token_privileges_request( const struct get_token_privileges_request
*req
)
3904 fprintf( stderr
, " handle=%04x", req
->handle
);
3907 static void dump_get_token_privileges_reply( const struct get_token_privileges_reply
*req
)
3909 fprintf( stderr
, " len=%08x", req
->len
);
3910 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size
);
3913 static void dump_check_token_privileges_request( const struct check_token_privileges_request
*req
)
3915 fprintf( stderr
, " handle=%04x", req
->handle
);
3916 fprintf( stderr
, ", all_required=%d", req
->all_required
);
3917 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size
);
3920 static void dump_check_token_privileges_reply( const struct check_token_privileges_reply
*req
)
3922 fprintf( stderr
, " has_privileges=%d", req
->has_privileges
);
3923 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size
);
3926 static void dump_duplicate_token_request( const struct duplicate_token_request
*req
)
3928 fprintf( stderr
, " handle=%04x", req
->handle
);
3929 fprintf( stderr
, ", access=%08x", req
->access
);
3930 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3931 fprintf( stderr
, ", primary=%d", req
->primary
);
3932 fprintf( stderr
, ", impersonation_level=%d", req
->impersonation_level
);
3935 static void dump_duplicate_token_reply( const struct duplicate_token_reply
*req
)
3937 fprintf( stderr
, " new_handle=%04x", req
->new_handle
);
3940 static void dump_access_check_request( const struct access_check_request
*req
)
3942 fprintf( stderr
, " handle=%04x", req
->handle
);
3943 fprintf( stderr
, ", desired_access=%08x", req
->desired_access
);
3944 fprintf( stderr
, ", mapping_read=%08x", req
->mapping_read
);
3945 fprintf( stderr
, ", mapping_write=%08x", req
->mapping_write
);
3946 fprintf( stderr
, ", mapping_execute=%08x", req
->mapping_execute
);
3947 fprintf( stderr
, ", mapping_all=%08x", req
->mapping_all
);
3948 dump_varargs_security_descriptor( ", sd=", cur_size
);
3951 static void dump_access_check_reply( const struct access_check_reply
*req
)
3953 fprintf( stderr
, " access_granted=%08x", req
->access_granted
);
3954 fprintf( stderr
, ", access_status=%08x", req
->access_status
);
3955 fprintf( stderr
, ", privileges_len=%08x", req
->privileges_len
);
3956 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size
);
3959 static void dump_get_token_sid_request( const struct get_token_sid_request
*req
)
3961 fprintf( stderr
, " handle=%04x", req
->handle
);
3962 fprintf( stderr
, ", which_sid=%08x", req
->which_sid
);
3965 static void dump_get_token_sid_reply( const struct get_token_sid_reply
*req
)
3967 fprintf( stderr
, " sid_len=%u", req
->sid_len
);
3968 dump_varargs_SID( ", sid=", cur_size
);
3971 static void dump_get_token_groups_request( const struct get_token_groups_request
*req
)
3973 fprintf( stderr
, " handle=%04x", req
->handle
);
3976 static void dump_get_token_groups_reply( const struct get_token_groups_reply
*req
)
3978 fprintf( stderr
, " user_len=%u", req
->user_len
);
3979 dump_varargs_token_groups( ", user=", cur_size
);
3982 static void dump_get_token_default_dacl_request( const struct get_token_default_dacl_request
*req
)
3984 fprintf( stderr
, " handle=%04x", req
->handle
);
3987 static void dump_get_token_default_dacl_reply( const struct get_token_default_dacl_reply
*req
)
3989 fprintf( stderr
, " acl_len=%u", req
->acl_len
);
3990 dump_varargs_ACL( ", acl=", cur_size
);
3993 static void dump_set_token_default_dacl_request( const struct set_token_default_dacl_request
*req
)
3995 fprintf( stderr
, " handle=%04x", req
->handle
);
3996 dump_varargs_ACL( ", acl=", cur_size
);
3999 static void dump_set_security_object_request( const struct set_security_object_request
*req
)
4001 fprintf( stderr
, " handle=%04x", req
->handle
);
4002 fprintf( stderr
, ", security_info=%08x", req
->security_info
);
4003 dump_varargs_security_descriptor( ", sd=", cur_size
);
4006 static void dump_get_security_object_request( const struct get_security_object_request
*req
)
4008 fprintf( stderr
, " handle=%04x", req
->handle
);
4009 fprintf( stderr
, ", security_info=%08x", req
->security_info
);
4012 static void dump_get_security_object_reply( const struct get_security_object_reply
*req
)
4014 fprintf( stderr
, " sd_len=%08x", req
->sd_len
);
4015 dump_varargs_security_descriptor( ", sd=", cur_size
);
4018 static void dump_get_system_handles_request( const struct get_system_handles_request
*req
)
4022 static void dump_get_system_handles_reply( const struct get_system_handles_reply
*req
)
4024 fprintf( stderr
, " count=%08x", req
->count
);
4025 dump_varargs_handle_infos( ", data=", cur_size
);
4028 static void dump_create_mailslot_request( const struct create_mailslot_request
*req
)
4030 fprintf( stderr
, " access=%08x", req
->access
);
4031 dump_timeout( ", read_timeout=", &req
->read_timeout
);
4032 fprintf( stderr
, ", max_msgsize=%08x", req
->max_msgsize
);
4033 dump_varargs_object_attributes( ", objattr=", cur_size
);
4036 static void dump_create_mailslot_reply( const struct create_mailslot_reply
*req
)
4038 fprintf( stderr
, " handle=%04x", req
->handle
);
4041 static void dump_set_mailslot_info_request( const struct set_mailslot_info_request
*req
)
4043 fprintf( stderr
, " handle=%04x", req
->handle
);
4044 dump_timeout( ", read_timeout=", &req
->read_timeout
);
4045 fprintf( stderr
, ", flags=%08x", req
->flags
);
4048 static void dump_set_mailslot_info_reply( const struct set_mailslot_info_reply
*req
)
4050 dump_timeout( " read_timeout=", &req
->read_timeout
);
4051 fprintf( stderr
, ", max_msgsize=%08x", req
->max_msgsize
);
4054 static void dump_create_directory_request( const struct create_directory_request
*req
)
4056 fprintf( stderr
, " access=%08x", req
->access
);
4057 dump_varargs_object_attributes( ", objattr=", cur_size
);
4060 static void dump_create_directory_reply( const struct create_directory_reply
*req
)
4062 fprintf( stderr
, " handle=%04x", req
->handle
);
4065 static void dump_open_directory_request( const struct open_directory_request
*req
)
4067 fprintf( stderr
, " access=%08x", req
->access
);
4068 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
4069 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
4070 dump_varargs_unicode_str( ", directory_name=", cur_size
);
4073 static void dump_open_directory_reply( const struct open_directory_reply
*req
)
4075 fprintf( stderr
, " handle=%04x", req
->handle
);
4078 static void dump_get_directory_entry_request( const struct get_directory_entry_request
*req
)
4080 fprintf( stderr
, " handle=%04x", req
->handle
);
4081 fprintf( stderr
, ", index=%08x", req
->index
);
4084 static void dump_get_directory_entry_reply( const struct get_directory_entry_reply
*req
)
4086 fprintf( stderr
, " name_len=%u", req
->name_len
);
4087 dump_varargs_unicode_str( ", name=", min(cur_size
,req
->name_len
) );
4088 dump_varargs_unicode_str( ", type=", cur_size
);
4091 static void dump_create_symlink_request( const struct create_symlink_request
*req
)
4093 fprintf( stderr
, " access=%08x", req
->access
);
4094 dump_varargs_object_attributes( ", objattr=", cur_size
);
4095 dump_varargs_unicode_str( ", target_name=", cur_size
);
4098 static void dump_create_symlink_reply( const struct create_symlink_reply
*req
)
4100 fprintf( stderr
, " handle=%04x", req
->handle
);
4103 static void dump_open_symlink_request( const struct open_symlink_request
*req
)
4105 fprintf( stderr
, " access=%08x", req
->access
);
4106 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
4107 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
4108 dump_varargs_unicode_str( ", name=", cur_size
);
4111 static void dump_open_symlink_reply( const struct open_symlink_reply
*req
)
4113 fprintf( stderr
, " handle=%04x", req
->handle
);
4116 static void dump_query_symlink_request( const struct query_symlink_request
*req
)
4118 fprintf( stderr
, " handle=%04x", req
->handle
);
4121 static void dump_query_symlink_reply( const struct query_symlink_reply
*req
)
4123 fprintf( stderr
, " total=%u", req
->total
);
4124 dump_varargs_unicode_str( ", target_name=", cur_size
);
4127 static void dump_get_object_info_request( const struct get_object_info_request
*req
)
4129 fprintf( stderr
, " handle=%04x", req
->handle
);
4132 static void dump_get_object_info_reply( const struct get_object_info_reply
*req
)
4134 fprintf( stderr
, " access=%08x", req
->access
);
4135 fprintf( stderr
, ", ref_count=%08x", req
->ref_count
);
4136 fprintf( stderr
, ", handle_count=%08x", req
->handle_count
);
4137 fprintf( stderr
, ", total=%u", req
->total
);
4138 dump_varargs_unicode_str( ", name=", cur_size
);
4141 static void dump_get_object_type_request( const struct get_object_type_request
*req
)
4143 fprintf( stderr
, " handle=%04x", req
->handle
);
4146 static void dump_get_object_type_reply( const struct get_object_type_reply
*req
)
4148 fprintf( stderr
, " total=%u", req
->total
);
4149 dump_varargs_unicode_str( ", type=", cur_size
);
4152 static void dump_unlink_object_request( const struct unlink_object_request
*req
)
4154 fprintf( stderr
, " handle=%04x", req
->handle
);
4157 static void dump_get_token_impersonation_level_request( const struct get_token_impersonation_level_request
*req
)
4159 fprintf( stderr
, " handle=%04x", req
->handle
);
4162 static void dump_get_token_impersonation_level_reply( const struct get_token_impersonation_level_reply
*req
)
4164 fprintf( stderr
, " impersonation_level=%d", req
->impersonation_level
);
4167 static void dump_allocate_locally_unique_id_request( const struct allocate_locally_unique_id_request
*req
)
4171 static void dump_allocate_locally_unique_id_reply( const struct allocate_locally_unique_id_reply
*req
)
4173 dump_luid( " luid=", &req
->luid
);
4176 static void dump_create_device_manager_request( const struct create_device_manager_request
*req
)
4178 fprintf( stderr
, " access=%08x", req
->access
);
4179 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
4182 static void dump_create_device_manager_reply( const struct create_device_manager_reply
*req
)
4184 fprintf( stderr
, " handle=%04x", req
->handle
);
4187 static void dump_create_device_request( const struct create_device_request
*req
)
4189 fprintf( stderr
, " access=%08x", req
->access
);
4190 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
4191 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
4192 dump_uint64( ", user_ptr=", &req
->user_ptr
);
4193 fprintf( stderr
, ", manager=%04x", req
->manager
);
4194 dump_varargs_unicode_str( ", name=", cur_size
);
4197 static void dump_create_device_reply( const struct create_device_reply
*req
)
4199 fprintf( stderr
, " handle=%04x", req
->handle
);
4202 static void dump_delete_device_request( const struct delete_device_request
*req
)
4204 fprintf( stderr
, " handle=%04x", req
->handle
);
4207 static void dump_get_next_device_request_request( const struct get_next_device_request_request
*req
)
4209 fprintf( stderr
, " manager=%04x", req
->manager
);
4210 fprintf( stderr
, ", prev=%04x", req
->prev
);
4211 fprintf( stderr
, ", status=%08x", req
->status
);
4214 static void dump_get_next_device_request_reply( const struct get_next_device_request_reply
*req
)
4216 dump_irp_params( " params=", &req
->params
);
4217 fprintf( stderr
, ", next=%04x", req
->next
);
4218 fprintf( stderr
, ", client_pid=%04x", req
->client_pid
);
4219 fprintf( stderr
, ", client_tid=%04x", req
->client_tid
);
4220 fprintf( stderr
, ", in_size=%u", req
->in_size
);
4221 fprintf( stderr
, ", out_size=%u", req
->out_size
);
4222 dump_varargs_bytes( ", next_data=", cur_size
);
4225 static void dump_make_process_system_request( const struct make_process_system_request
*req
)
4229 static void dump_make_process_system_reply( const struct make_process_system_reply
*req
)
4231 fprintf( stderr
, " event=%04x", req
->event
);
4234 static void dump_get_token_statistics_request( const struct get_token_statistics_request
*req
)
4236 fprintf( stderr
, " handle=%04x", req
->handle
);
4239 static void dump_get_token_statistics_reply( const struct get_token_statistics_reply
*req
)
4241 dump_luid( " token_id=", &req
->token_id
);
4242 dump_luid( ", modified_id=", &req
->modified_id
);
4243 fprintf( stderr
, ", primary=%d", req
->primary
);
4244 fprintf( stderr
, ", impersonation_level=%d", req
->impersonation_level
);
4245 fprintf( stderr
, ", group_count=%d", req
->group_count
);
4246 fprintf( stderr
, ", privilege_count=%d", req
->privilege_count
);
4249 static void dump_create_completion_request( const struct create_completion_request
*req
)
4251 fprintf( stderr
, " access=%08x", req
->access
);
4252 fprintf( stderr
, ", concurrent=%08x", req
->concurrent
);
4253 dump_varargs_object_attributes( ", objattr=", cur_size
);
4256 static void dump_create_completion_reply( const struct create_completion_reply
*req
)
4258 fprintf( stderr
, " handle=%04x", req
->handle
);
4261 static void dump_open_completion_request( const struct open_completion_request
*req
)
4263 fprintf( stderr
, " access=%08x", req
->access
);
4264 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
4265 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
4266 dump_varargs_unicode_str( ", filename=", cur_size
);
4269 static void dump_open_completion_reply( const struct open_completion_reply
*req
)
4271 fprintf( stderr
, " handle=%04x", req
->handle
);
4274 static void dump_add_completion_request( const struct add_completion_request
*req
)
4276 fprintf( stderr
, " handle=%04x", req
->handle
);
4277 dump_uint64( ", ckey=", &req
->ckey
);
4278 dump_uint64( ", cvalue=", &req
->cvalue
);
4279 dump_uint64( ", information=", &req
->information
);
4280 fprintf( stderr
, ", status=%08x", req
->status
);
4283 static void dump_remove_completion_request( const struct remove_completion_request
*req
)
4285 fprintf( stderr
, " handle=%04x", req
->handle
);
4288 static void dump_remove_completion_reply( const struct remove_completion_reply
*req
)
4290 dump_uint64( " ckey=", &req
->ckey
);
4291 dump_uint64( ", cvalue=", &req
->cvalue
);
4292 dump_uint64( ", information=", &req
->information
);
4293 fprintf( stderr
, ", status=%08x", req
->status
);
4296 static void dump_query_completion_request( const struct query_completion_request
*req
)
4298 fprintf( stderr
, " handle=%04x", req
->handle
);
4301 static void dump_query_completion_reply( const struct query_completion_reply
*req
)
4303 fprintf( stderr
, " depth=%08x", req
->depth
);
4306 static void dump_set_completion_info_request( const struct set_completion_info_request
*req
)
4308 fprintf( stderr
, " handle=%04x", req
->handle
);
4309 dump_uint64( ", ckey=", &req
->ckey
);
4310 fprintf( stderr
, ", chandle=%04x", req
->chandle
);
4313 static void dump_add_fd_completion_request( const struct add_fd_completion_request
*req
)
4315 fprintf( stderr
, " handle=%04x", req
->handle
);
4316 dump_uint64( ", cvalue=", &req
->cvalue
);
4317 dump_uint64( ", information=", &req
->information
);
4318 fprintf( stderr
, ", status=%08x", req
->status
);
4321 static void dump_set_fd_disp_info_request( const struct set_fd_disp_info_request
*req
)
4323 fprintf( stderr
, " handle=%04x", req
->handle
);
4324 fprintf( stderr
, ", unlink=%d", req
->unlink
);
4327 static void dump_set_fd_name_info_request( const struct set_fd_name_info_request
*req
)
4329 fprintf( stderr
, " handle=%04x", req
->handle
);
4330 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
4331 fprintf( stderr
, ", link=%d", req
->link
);
4332 dump_varargs_string( ", filename=", cur_size
);
4335 static void dump_get_window_layered_info_request( const struct get_window_layered_info_request
*req
)
4337 fprintf( stderr
, " handle=%08x", req
->handle
);
4340 static void dump_get_window_layered_info_reply( const struct get_window_layered_info_reply
*req
)
4342 fprintf( stderr
, " color_key=%08x", req
->color_key
);
4343 fprintf( stderr
, ", alpha=%08x", req
->alpha
);
4344 fprintf( stderr
, ", flags=%08x", req
->flags
);
4347 static void dump_set_window_layered_info_request( const struct set_window_layered_info_request
*req
)
4349 fprintf( stderr
, " handle=%08x", req
->handle
);
4350 fprintf( stderr
, ", color_key=%08x", req
->color_key
);
4351 fprintf( stderr
, ", alpha=%08x", req
->alpha
);
4352 fprintf( stderr
, ", flags=%08x", req
->flags
);
4355 static void dump_alloc_user_handle_request( const struct alloc_user_handle_request
*req
)
4359 static void dump_alloc_user_handle_reply( const struct alloc_user_handle_reply
*req
)
4361 fprintf( stderr
, " handle=%08x", req
->handle
);
4364 static void dump_free_user_handle_request( const struct free_user_handle_request
*req
)
4366 fprintf( stderr
, " handle=%08x", req
->handle
);
4369 static void dump_set_cursor_request( const struct set_cursor_request
*req
)
4371 fprintf( stderr
, " flags=%08x", req
->flags
);
4372 fprintf( stderr
, ", handle=%08x", req
->handle
);
4373 fprintf( stderr
, ", show_count=%d", req
->show_count
);
4374 fprintf( stderr
, ", x=%d", req
->x
);
4375 fprintf( stderr
, ", y=%d", req
->y
);
4376 dump_rectangle( ", clip=", &req
->clip
);
4377 fprintf( stderr
, ", clip_msg=%08x", req
->clip_msg
);
4380 static void dump_set_cursor_reply( const struct set_cursor_reply
*req
)
4382 fprintf( stderr
, " prev_handle=%08x", req
->prev_handle
);
4383 fprintf( stderr
, ", prev_count=%d", req
->prev_count
);
4384 fprintf( stderr
, ", prev_x=%d", req
->prev_x
);
4385 fprintf( stderr
, ", prev_y=%d", req
->prev_y
);
4386 fprintf( stderr
, ", new_x=%d", req
->new_x
);
4387 fprintf( stderr
, ", new_y=%d", req
->new_y
);
4388 dump_rectangle( ", new_clip=", &req
->new_clip
);
4389 fprintf( stderr
, ", last_change=%08x", req
->last_change
);
4392 static void dump_update_rawinput_devices_request( const struct update_rawinput_devices_request
*req
)
4394 dump_varargs_rawinput_devices( " devices=", cur_size
);
4397 static void dump_get_suspend_context_request( const struct get_suspend_context_request
*req
)
4401 static void dump_get_suspend_context_reply( const struct get_suspend_context_reply
*req
)
4403 dump_varargs_context( " context=", cur_size
);
4406 static void dump_set_suspend_context_request( const struct set_suspend_context_request
*req
)
4408 dump_varargs_context( " context=", cur_size
);
4411 static void dump_create_job_request( const struct create_job_request
*req
)
4413 fprintf( stderr
, " access=%08x", req
->access
);
4414 dump_varargs_object_attributes( ", objattr=", cur_size
);
4417 static void dump_create_job_reply( const struct create_job_reply
*req
)
4419 fprintf( stderr
, " handle=%04x", req
->handle
);
4422 static void dump_open_job_request( const struct open_job_request
*req
)
4424 fprintf( stderr
, " access=%08x", req
->access
);
4425 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
4426 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
4427 dump_varargs_unicode_str( ", name=", cur_size
);
4430 static void dump_open_job_reply( const struct open_job_reply
*req
)
4432 fprintf( stderr
, " handle=%04x", req
->handle
);
4435 static void dump_assign_job_request( const struct assign_job_request
*req
)
4437 fprintf( stderr
, " job=%04x", req
->job
);
4438 fprintf( stderr
, ", process=%04x", req
->process
);
4441 static void dump_process_in_job_request( const struct process_in_job_request
*req
)
4443 fprintf( stderr
, " job=%04x", req
->job
);
4444 fprintf( stderr
, ", process=%04x", req
->process
);
4447 static void dump_set_job_limits_request( const struct set_job_limits_request
*req
)
4449 fprintf( stderr
, " handle=%04x", req
->handle
);
4450 fprintf( stderr
, ", limit_flags=%08x", req
->limit_flags
);
4453 static void dump_set_job_completion_port_request( const struct set_job_completion_port_request
*req
)
4455 fprintf( stderr
, " job=%04x", req
->job
);
4456 fprintf( stderr
, ", port=%04x", req
->port
);
4457 dump_uint64( ", key=", &req
->key
);
4460 static void dump_terminate_job_request( const struct terminate_job_request
*req
)
4462 fprintf( stderr
, " handle=%04x", req
->handle
);
4463 fprintf( stderr
, ", status=%d", req
->status
);
4466 static const dump_func req_dumpers
[REQ_NB_REQUESTS
] = {
4467 (dump_func
)dump_new_process_request
,
4468 (dump_func
)dump_get_new_process_info_request
,
4469 (dump_func
)dump_new_thread_request
,
4470 (dump_func
)dump_get_startup_info_request
,
4471 (dump_func
)dump_init_process_done_request
,
4472 (dump_func
)dump_init_thread_request
,
4473 (dump_func
)dump_terminate_process_request
,
4474 (dump_func
)dump_terminate_thread_request
,
4475 (dump_func
)dump_get_process_info_request
,
4476 (dump_func
)dump_get_process_vm_counters_request
,
4477 (dump_func
)dump_set_process_info_request
,
4478 (dump_func
)dump_get_thread_info_request
,
4479 (dump_func
)dump_get_thread_times_request
,
4480 (dump_func
)dump_set_thread_info_request
,
4481 (dump_func
)dump_get_dll_info_request
,
4482 (dump_func
)dump_suspend_thread_request
,
4483 (dump_func
)dump_resume_thread_request
,
4484 (dump_func
)dump_load_dll_request
,
4485 (dump_func
)dump_unload_dll_request
,
4486 (dump_func
)dump_queue_apc_request
,
4487 (dump_func
)dump_get_apc_result_request
,
4488 (dump_func
)dump_close_handle_request
,
4489 (dump_func
)dump_set_handle_info_request
,
4490 (dump_func
)dump_dup_handle_request
,
4491 (dump_func
)dump_open_process_request
,
4492 (dump_func
)dump_open_thread_request
,
4493 (dump_func
)dump_select_request
,
4494 (dump_func
)dump_create_event_request
,
4495 (dump_func
)dump_event_op_request
,
4496 (dump_func
)dump_query_event_request
,
4497 (dump_func
)dump_open_event_request
,
4498 (dump_func
)dump_create_keyed_event_request
,
4499 (dump_func
)dump_open_keyed_event_request
,
4500 (dump_func
)dump_create_mutex_request
,
4501 (dump_func
)dump_release_mutex_request
,
4502 (dump_func
)dump_open_mutex_request
,
4503 (dump_func
)dump_query_mutex_request
,
4504 (dump_func
)dump_create_semaphore_request
,
4505 (dump_func
)dump_release_semaphore_request
,
4506 (dump_func
)dump_query_semaphore_request
,
4507 (dump_func
)dump_open_semaphore_request
,
4508 (dump_func
)dump_create_file_request
,
4509 (dump_func
)dump_open_file_object_request
,
4510 (dump_func
)dump_alloc_file_handle_request
,
4511 (dump_func
)dump_get_handle_unix_name_request
,
4512 (dump_func
)dump_get_handle_fd_request
,
4513 (dump_func
)dump_get_directory_cache_entry_request
,
4514 (dump_func
)dump_flush_request
,
4515 (dump_func
)dump_lock_file_request
,
4516 (dump_func
)dump_unlock_file_request
,
4517 (dump_func
)dump_create_socket_request
,
4518 (dump_func
)dump_accept_socket_request
,
4519 (dump_func
)dump_accept_into_socket_request
,
4520 (dump_func
)dump_set_socket_event_request
,
4521 (dump_func
)dump_get_socket_event_request
,
4522 (dump_func
)dump_get_socket_info_request
,
4523 (dump_func
)dump_enable_socket_event_request
,
4524 (dump_func
)dump_set_socket_deferred_request
,
4525 (dump_func
)dump_alloc_console_request
,
4526 (dump_func
)dump_free_console_request
,
4527 (dump_func
)dump_get_console_renderer_events_request
,
4528 (dump_func
)dump_open_console_request
,
4529 (dump_func
)dump_get_console_wait_event_request
,
4530 (dump_func
)dump_get_console_mode_request
,
4531 (dump_func
)dump_set_console_mode_request
,
4532 (dump_func
)dump_set_console_input_info_request
,
4533 (dump_func
)dump_get_console_input_info_request
,
4534 (dump_func
)dump_append_console_input_history_request
,
4535 (dump_func
)dump_get_console_input_history_request
,
4536 (dump_func
)dump_create_console_output_request
,
4537 (dump_func
)dump_set_console_output_info_request
,
4538 (dump_func
)dump_get_console_output_info_request
,
4539 (dump_func
)dump_write_console_input_request
,
4540 (dump_func
)dump_read_console_input_request
,
4541 (dump_func
)dump_write_console_output_request
,
4542 (dump_func
)dump_fill_console_output_request
,
4543 (dump_func
)dump_read_console_output_request
,
4544 (dump_func
)dump_move_console_output_request
,
4545 (dump_func
)dump_send_console_signal_request
,
4546 (dump_func
)dump_read_directory_changes_request
,
4547 (dump_func
)dump_read_change_request
,
4548 (dump_func
)dump_create_mapping_request
,
4549 (dump_func
)dump_open_mapping_request
,
4550 (dump_func
)dump_get_mapping_info_request
,
4551 (dump_func
)dump_get_mapping_committed_range_request
,
4552 (dump_func
)dump_add_mapping_committed_range_request
,
4553 (dump_func
)dump_create_snapshot_request
,
4554 (dump_func
)dump_next_process_request
,
4555 (dump_func
)dump_next_thread_request
,
4556 (dump_func
)dump_wait_debug_event_request
,
4557 (dump_func
)dump_queue_exception_event_request
,
4558 (dump_func
)dump_get_exception_status_request
,
4559 (dump_func
)dump_continue_debug_event_request
,
4560 (dump_func
)dump_debug_process_request
,
4561 (dump_func
)dump_debug_break_request
,
4562 (dump_func
)dump_set_debugger_kill_on_exit_request
,
4563 (dump_func
)dump_read_process_memory_request
,
4564 (dump_func
)dump_write_process_memory_request
,
4565 (dump_func
)dump_create_key_request
,
4566 (dump_func
)dump_open_key_request
,
4567 (dump_func
)dump_delete_key_request
,
4568 (dump_func
)dump_flush_key_request
,
4569 (dump_func
)dump_enum_key_request
,
4570 (dump_func
)dump_set_key_value_request
,
4571 (dump_func
)dump_get_key_value_request
,
4572 (dump_func
)dump_enum_key_value_request
,
4573 (dump_func
)dump_delete_key_value_request
,
4574 (dump_func
)dump_load_registry_request
,
4575 (dump_func
)dump_unload_registry_request
,
4576 (dump_func
)dump_save_registry_request
,
4577 (dump_func
)dump_set_registry_notification_request
,
4578 (dump_func
)dump_create_timer_request
,
4579 (dump_func
)dump_open_timer_request
,
4580 (dump_func
)dump_set_timer_request
,
4581 (dump_func
)dump_cancel_timer_request
,
4582 (dump_func
)dump_get_timer_info_request
,
4583 (dump_func
)dump_get_thread_context_request
,
4584 (dump_func
)dump_set_thread_context_request
,
4585 (dump_func
)dump_get_selector_entry_request
,
4586 (dump_func
)dump_add_atom_request
,
4587 (dump_func
)dump_delete_atom_request
,
4588 (dump_func
)dump_find_atom_request
,
4589 (dump_func
)dump_get_atom_information_request
,
4590 (dump_func
)dump_set_atom_information_request
,
4591 (dump_func
)dump_empty_atom_table_request
,
4592 (dump_func
)dump_init_atom_table_request
,
4593 (dump_func
)dump_get_msg_queue_request
,
4594 (dump_func
)dump_set_queue_fd_request
,
4595 (dump_func
)dump_set_queue_mask_request
,
4596 (dump_func
)dump_get_queue_status_request
,
4597 (dump_func
)dump_get_process_idle_event_request
,
4598 (dump_func
)dump_send_message_request
,
4599 (dump_func
)dump_post_quit_message_request
,
4600 (dump_func
)dump_send_hardware_message_request
,
4601 (dump_func
)dump_get_message_request
,
4602 (dump_func
)dump_reply_message_request
,
4603 (dump_func
)dump_accept_hardware_message_request
,
4604 (dump_func
)dump_get_message_reply_request
,
4605 (dump_func
)dump_set_win_timer_request
,
4606 (dump_func
)dump_kill_win_timer_request
,
4607 (dump_func
)dump_is_window_hung_request
,
4608 (dump_func
)dump_get_serial_info_request
,
4609 (dump_func
)dump_set_serial_info_request
,
4610 (dump_func
)dump_register_async_request
,
4611 (dump_func
)dump_cancel_async_request
,
4612 (dump_func
)dump_get_async_result_request
,
4613 (dump_func
)dump_read_request
,
4614 (dump_func
)dump_write_request
,
4615 (dump_func
)dump_ioctl_request
,
4616 (dump_func
)dump_set_irp_result_request
,
4617 (dump_func
)dump_create_named_pipe_request
,
4618 (dump_func
)dump_get_named_pipe_info_request
,
4619 (dump_func
)dump_set_named_pipe_info_request
,
4620 (dump_func
)dump_create_window_request
,
4621 (dump_func
)dump_destroy_window_request
,
4622 (dump_func
)dump_get_desktop_window_request
,
4623 (dump_func
)dump_set_window_owner_request
,
4624 (dump_func
)dump_get_window_info_request
,
4625 (dump_func
)dump_set_window_info_request
,
4626 (dump_func
)dump_set_parent_request
,
4627 (dump_func
)dump_get_window_parents_request
,
4628 (dump_func
)dump_get_window_children_request
,
4629 (dump_func
)dump_get_window_children_from_point_request
,
4630 (dump_func
)dump_get_window_tree_request
,
4631 (dump_func
)dump_set_window_pos_request
,
4632 (dump_func
)dump_get_window_rectangles_request
,
4633 (dump_func
)dump_get_window_text_request
,
4634 (dump_func
)dump_set_window_text_request
,
4635 (dump_func
)dump_get_windows_offset_request
,
4636 (dump_func
)dump_get_visible_region_request
,
4637 (dump_func
)dump_get_surface_region_request
,
4638 (dump_func
)dump_get_window_region_request
,
4639 (dump_func
)dump_set_window_region_request
,
4640 (dump_func
)dump_get_update_region_request
,
4641 (dump_func
)dump_update_window_zorder_request
,
4642 (dump_func
)dump_redraw_window_request
,
4643 (dump_func
)dump_set_window_property_request
,
4644 (dump_func
)dump_remove_window_property_request
,
4645 (dump_func
)dump_get_window_property_request
,
4646 (dump_func
)dump_get_window_properties_request
,
4647 (dump_func
)dump_create_winstation_request
,
4648 (dump_func
)dump_open_winstation_request
,
4649 (dump_func
)dump_close_winstation_request
,
4650 (dump_func
)dump_get_process_winstation_request
,
4651 (dump_func
)dump_set_process_winstation_request
,
4652 (dump_func
)dump_enum_winstation_request
,
4653 (dump_func
)dump_create_desktop_request
,
4654 (dump_func
)dump_open_desktop_request
,
4655 (dump_func
)dump_open_input_desktop_request
,
4656 (dump_func
)dump_close_desktop_request
,
4657 (dump_func
)dump_get_thread_desktop_request
,
4658 (dump_func
)dump_set_thread_desktop_request
,
4659 (dump_func
)dump_enum_desktop_request
,
4660 (dump_func
)dump_set_user_object_info_request
,
4661 (dump_func
)dump_register_hotkey_request
,
4662 (dump_func
)dump_unregister_hotkey_request
,
4663 (dump_func
)dump_attach_thread_input_request
,
4664 (dump_func
)dump_get_thread_input_request
,
4665 (dump_func
)dump_get_last_input_time_request
,
4666 (dump_func
)dump_get_key_state_request
,
4667 (dump_func
)dump_set_key_state_request
,
4668 (dump_func
)dump_set_foreground_window_request
,
4669 (dump_func
)dump_set_focus_window_request
,
4670 (dump_func
)dump_set_active_window_request
,
4671 (dump_func
)dump_set_capture_window_request
,
4672 (dump_func
)dump_set_caret_window_request
,
4673 (dump_func
)dump_set_caret_info_request
,
4674 (dump_func
)dump_set_hook_request
,
4675 (dump_func
)dump_remove_hook_request
,
4676 (dump_func
)dump_start_hook_chain_request
,
4677 (dump_func
)dump_finish_hook_chain_request
,
4678 (dump_func
)dump_get_hook_info_request
,
4679 (dump_func
)dump_create_class_request
,
4680 (dump_func
)dump_destroy_class_request
,
4681 (dump_func
)dump_set_class_info_request
,
4682 (dump_func
)dump_open_clipboard_request
,
4683 (dump_func
)dump_close_clipboard_request
,
4684 (dump_func
)dump_empty_clipboard_request
,
4685 (dump_func
)dump_set_clipboard_data_request
,
4686 (dump_func
)dump_get_clipboard_data_request
,
4687 (dump_func
)dump_get_clipboard_formats_request
,
4688 (dump_func
)dump_enum_clipboard_formats_request
,
4689 (dump_func
)dump_release_clipboard_request
,
4690 (dump_func
)dump_get_clipboard_info_request
,
4691 (dump_func
)dump_set_clipboard_viewer_request
,
4692 (dump_func
)dump_add_clipboard_listener_request
,
4693 (dump_func
)dump_remove_clipboard_listener_request
,
4694 (dump_func
)dump_open_token_request
,
4695 (dump_func
)dump_set_global_windows_request
,
4696 (dump_func
)dump_adjust_token_privileges_request
,
4697 (dump_func
)dump_get_token_privileges_request
,
4698 (dump_func
)dump_check_token_privileges_request
,
4699 (dump_func
)dump_duplicate_token_request
,
4700 (dump_func
)dump_access_check_request
,
4701 (dump_func
)dump_get_token_sid_request
,
4702 (dump_func
)dump_get_token_groups_request
,
4703 (dump_func
)dump_get_token_default_dacl_request
,
4704 (dump_func
)dump_set_token_default_dacl_request
,
4705 (dump_func
)dump_set_security_object_request
,
4706 (dump_func
)dump_get_security_object_request
,
4707 (dump_func
)dump_get_system_handles_request
,
4708 (dump_func
)dump_create_mailslot_request
,
4709 (dump_func
)dump_set_mailslot_info_request
,
4710 (dump_func
)dump_create_directory_request
,
4711 (dump_func
)dump_open_directory_request
,
4712 (dump_func
)dump_get_directory_entry_request
,
4713 (dump_func
)dump_create_symlink_request
,
4714 (dump_func
)dump_open_symlink_request
,
4715 (dump_func
)dump_query_symlink_request
,
4716 (dump_func
)dump_get_object_info_request
,
4717 (dump_func
)dump_get_object_type_request
,
4718 (dump_func
)dump_unlink_object_request
,
4719 (dump_func
)dump_get_token_impersonation_level_request
,
4720 (dump_func
)dump_allocate_locally_unique_id_request
,
4721 (dump_func
)dump_create_device_manager_request
,
4722 (dump_func
)dump_create_device_request
,
4723 (dump_func
)dump_delete_device_request
,
4724 (dump_func
)dump_get_next_device_request_request
,
4725 (dump_func
)dump_make_process_system_request
,
4726 (dump_func
)dump_get_token_statistics_request
,
4727 (dump_func
)dump_create_completion_request
,
4728 (dump_func
)dump_open_completion_request
,
4729 (dump_func
)dump_add_completion_request
,
4730 (dump_func
)dump_remove_completion_request
,
4731 (dump_func
)dump_query_completion_request
,
4732 (dump_func
)dump_set_completion_info_request
,
4733 (dump_func
)dump_add_fd_completion_request
,
4734 (dump_func
)dump_set_fd_disp_info_request
,
4735 (dump_func
)dump_set_fd_name_info_request
,
4736 (dump_func
)dump_get_window_layered_info_request
,
4737 (dump_func
)dump_set_window_layered_info_request
,
4738 (dump_func
)dump_alloc_user_handle_request
,
4739 (dump_func
)dump_free_user_handle_request
,
4740 (dump_func
)dump_set_cursor_request
,
4741 (dump_func
)dump_update_rawinput_devices_request
,
4742 (dump_func
)dump_get_suspend_context_request
,
4743 (dump_func
)dump_set_suspend_context_request
,
4744 (dump_func
)dump_create_job_request
,
4745 (dump_func
)dump_open_job_request
,
4746 (dump_func
)dump_assign_job_request
,
4747 (dump_func
)dump_process_in_job_request
,
4748 (dump_func
)dump_set_job_limits_request
,
4749 (dump_func
)dump_set_job_completion_port_request
,
4750 (dump_func
)dump_terminate_job_request
,
4753 static const dump_func reply_dumpers
[REQ_NB_REQUESTS
] = {
4754 (dump_func
)dump_new_process_reply
,
4755 (dump_func
)dump_get_new_process_info_reply
,
4756 (dump_func
)dump_new_thread_reply
,
4757 (dump_func
)dump_get_startup_info_reply
,
4759 (dump_func
)dump_init_thread_reply
,
4760 (dump_func
)dump_terminate_process_reply
,
4761 (dump_func
)dump_terminate_thread_reply
,
4762 (dump_func
)dump_get_process_info_reply
,
4763 (dump_func
)dump_get_process_vm_counters_reply
,
4765 (dump_func
)dump_get_thread_info_reply
,
4766 (dump_func
)dump_get_thread_times_reply
,
4768 (dump_func
)dump_get_dll_info_reply
,
4769 (dump_func
)dump_suspend_thread_reply
,
4770 (dump_func
)dump_resume_thread_reply
,
4773 (dump_func
)dump_queue_apc_reply
,
4774 (dump_func
)dump_get_apc_result_reply
,
4776 (dump_func
)dump_set_handle_info_reply
,
4777 (dump_func
)dump_dup_handle_reply
,
4778 (dump_func
)dump_open_process_reply
,
4779 (dump_func
)dump_open_thread_reply
,
4780 (dump_func
)dump_select_reply
,
4781 (dump_func
)dump_create_event_reply
,
4783 (dump_func
)dump_query_event_reply
,
4784 (dump_func
)dump_open_event_reply
,
4785 (dump_func
)dump_create_keyed_event_reply
,
4786 (dump_func
)dump_open_keyed_event_reply
,
4787 (dump_func
)dump_create_mutex_reply
,
4788 (dump_func
)dump_release_mutex_reply
,
4789 (dump_func
)dump_open_mutex_reply
,
4790 (dump_func
)dump_query_mutex_reply
,
4791 (dump_func
)dump_create_semaphore_reply
,
4792 (dump_func
)dump_release_semaphore_reply
,
4793 (dump_func
)dump_query_semaphore_reply
,
4794 (dump_func
)dump_open_semaphore_reply
,
4795 (dump_func
)dump_create_file_reply
,
4796 (dump_func
)dump_open_file_object_reply
,
4797 (dump_func
)dump_alloc_file_handle_reply
,
4798 (dump_func
)dump_get_handle_unix_name_reply
,
4799 (dump_func
)dump_get_handle_fd_reply
,
4800 (dump_func
)dump_get_directory_cache_entry_reply
,
4801 (dump_func
)dump_flush_reply
,
4802 (dump_func
)dump_lock_file_reply
,
4804 (dump_func
)dump_create_socket_reply
,
4805 (dump_func
)dump_accept_socket_reply
,
4808 (dump_func
)dump_get_socket_event_reply
,
4809 (dump_func
)dump_get_socket_info_reply
,
4812 (dump_func
)dump_alloc_console_reply
,
4814 (dump_func
)dump_get_console_renderer_events_reply
,
4815 (dump_func
)dump_open_console_reply
,
4816 (dump_func
)dump_get_console_wait_event_reply
,
4817 (dump_func
)dump_get_console_mode_reply
,
4820 (dump_func
)dump_get_console_input_info_reply
,
4822 (dump_func
)dump_get_console_input_history_reply
,
4823 (dump_func
)dump_create_console_output_reply
,
4825 (dump_func
)dump_get_console_output_info_reply
,
4826 (dump_func
)dump_write_console_input_reply
,
4827 (dump_func
)dump_read_console_input_reply
,
4828 (dump_func
)dump_write_console_output_reply
,
4829 (dump_func
)dump_fill_console_output_reply
,
4830 (dump_func
)dump_read_console_output_reply
,
4834 (dump_func
)dump_read_change_reply
,
4835 (dump_func
)dump_create_mapping_reply
,
4836 (dump_func
)dump_open_mapping_reply
,
4837 (dump_func
)dump_get_mapping_info_reply
,
4838 (dump_func
)dump_get_mapping_committed_range_reply
,
4840 (dump_func
)dump_create_snapshot_reply
,
4841 (dump_func
)dump_next_process_reply
,
4842 (dump_func
)dump_next_thread_reply
,
4843 (dump_func
)dump_wait_debug_event_reply
,
4844 (dump_func
)dump_queue_exception_event_reply
,
4845 (dump_func
)dump_get_exception_status_reply
,
4848 (dump_func
)dump_debug_break_reply
,
4850 (dump_func
)dump_read_process_memory_reply
,
4852 (dump_func
)dump_create_key_reply
,
4853 (dump_func
)dump_open_key_reply
,
4856 (dump_func
)dump_enum_key_reply
,
4858 (dump_func
)dump_get_key_value_reply
,
4859 (dump_func
)dump_enum_key_value_reply
,
4865 (dump_func
)dump_create_timer_reply
,
4866 (dump_func
)dump_open_timer_reply
,
4867 (dump_func
)dump_set_timer_reply
,
4868 (dump_func
)dump_cancel_timer_reply
,
4869 (dump_func
)dump_get_timer_info_reply
,
4870 (dump_func
)dump_get_thread_context_reply
,
4871 (dump_func
)dump_set_thread_context_reply
,
4872 (dump_func
)dump_get_selector_entry_reply
,
4873 (dump_func
)dump_add_atom_reply
,
4875 (dump_func
)dump_find_atom_reply
,
4876 (dump_func
)dump_get_atom_information_reply
,
4879 (dump_func
)dump_init_atom_table_reply
,
4880 (dump_func
)dump_get_msg_queue_reply
,
4882 (dump_func
)dump_set_queue_mask_reply
,
4883 (dump_func
)dump_get_queue_status_reply
,
4884 (dump_func
)dump_get_process_idle_event_reply
,
4887 (dump_func
)dump_send_hardware_message_reply
,
4888 (dump_func
)dump_get_message_reply
,
4891 (dump_func
)dump_get_message_reply_reply
,
4892 (dump_func
)dump_set_win_timer_reply
,
4894 (dump_func
)dump_is_window_hung_reply
,
4895 (dump_func
)dump_get_serial_info_reply
,
4899 (dump_func
)dump_get_async_result_reply
,
4900 (dump_func
)dump_read_reply
,
4901 (dump_func
)dump_write_reply
,
4902 (dump_func
)dump_ioctl_reply
,
4904 (dump_func
)dump_create_named_pipe_reply
,
4905 (dump_func
)dump_get_named_pipe_info_reply
,
4907 (dump_func
)dump_create_window_reply
,
4909 (dump_func
)dump_get_desktop_window_reply
,
4910 (dump_func
)dump_set_window_owner_reply
,
4911 (dump_func
)dump_get_window_info_reply
,
4912 (dump_func
)dump_set_window_info_reply
,
4913 (dump_func
)dump_set_parent_reply
,
4914 (dump_func
)dump_get_window_parents_reply
,
4915 (dump_func
)dump_get_window_children_reply
,
4916 (dump_func
)dump_get_window_children_from_point_reply
,
4917 (dump_func
)dump_get_window_tree_reply
,
4918 (dump_func
)dump_set_window_pos_reply
,
4919 (dump_func
)dump_get_window_rectangles_reply
,
4920 (dump_func
)dump_get_window_text_reply
,
4922 (dump_func
)dump_get_windows_offset_reply
,
4923 (dump_func
)dump_get_visible_region_reply
,
4924 (dump_func
)dump_get_surface_region_reply
,
4925 (dump_func
)dump_get_window_region_reply
,
4927 (dump_func
)dump_get_update_region_reply
,
4931 (dump_func
)dump_remove_window_property_reply
,
4932 (dump_func
)dump_get_window_property_reply
,
4933 (dump_func
)dump_get_window_properties_reply
,
4934 (dump_func
)dump_create_winstation_reply
,
4935 (dump_func
)dump_open_winstation_reply
,
4937 (dump_func
)dump_get_process_winstation_reply
,
4939 (dump_func
)dump_enum_winstation_reply
,
4940 (dump_func
)dump_create_desktop_reply
,
4941 (dump_func
)dump_open_desktop_reply
,
4942 (dump_func
)dump_open_input_desktop_reply
,
4944 (dump_func
)dump_get_thread_desktop_reply
,
4946 (dump_func
)dump_enum_desktop_reply
,
4947 (dump_func
)dump_set_user_object_info_reply
,
4948 (dump_func
)dump_register_hotkey_reply
,
4949 (dump_func
)dump_unregister_hotkey_reply
,
4951 (dump_func
)dump_get_thread_input_reply
,
4952 (dump_func
)dump_get_last_input_time_reply
,
4953 (dump_func
)dump_get_key_state_reply
,
4955 (dump_func
)dump_set_foreground_window_reply
,
4956 (dump_func
)dump_set_focus_window_reply
,
4957 (dump_func
)dump_set_active_window_reply
,
4958 (dump_func
)dump_set_capture_window_reply
,
4959 (dump_func
)dump_set_caret_window_reply
,
4960 (dump_func
)dump_set_caret_info_reply
,
4961 (dump_func
)dump_set_hook_reply
,
4962 (dump_func
)dump_remove_hook_reply
,
4963 (dump_func
)dump_start_hook_chain_reply
,
4965 (dump_func
)dump_get_hook_info_reply
,
4966 (dump_func
)dump_create_class_reply
,
4967 (dump_func
)dump_destroy_class_reply
,
4968 (dump_func
)dump_set_class_info_reply
,
4969 (dump_func
)dump_open_clipboard_reply
,
4970 (dump_func
)dump_close_clipboard_reply
,
4972 (dump_func
)dump_set_clipboard_data_reply
,
4973 (dump_func
)dump_get_clipboard_data_reply
,
4974 (dump_func
)dump_get_clipboard_formats_reply
,
4975 (dump_func
)dump_enum_clipboard_formats_reply
,
4976 (dump_func
)dump_release_clipboard_reply
,
4977 (dump_func
)dump_get_clipboard_info_reply
,
4978 (dump_func
)dump_set_clipboard_viewer_reply
,
4981 (dump_func
)dump_open_token_reply
,
4982 (dump_func
)dump_set_global_windows_reply
,
4983 (dump_func
)dump_adjust_token_privileges_reply
,
4984 (dump_func
)dump_get_token_privileges_reply
,
4985 (dump_func
)dump_check_token_privileges_reply
,
4986 (dump_func
)dump_duplicate_token_reply
,
4987 (dump_func
)dump_access_check_reply
,
4988 (dump_func
)dump_get_token_sid_reply
,
4989 (dump_func
)dump_get_token_groups_reply
,
4990 (dump_func
)dump_get_token_default_dacl_reply
,
4993 (dump_func
)dump_get_security_object_reply
,
4994 (dump_func
)dump_get_system_handles_reply
,
4995 (dump_func
)dump_create_mailslot_reply
,
4996 (dump_func
)dump_set_mailslot_info_reply
,
4997 (dump_func
)dump_create_directory_reply
,
4998 (dump_func
)dump_open_directory_reply
,
4999 (dump_func
)dump_get_directory_entry_reply
,
5000 (dump_func
)dump_create_symlink_reply
,
5001 (dump_func
)dump_open_symlink_reply
,
5002 (dump_func
)dump_query_symlink_reply
,
5003 (dump_func
)dump_get_object_info_reply
,
5004 (dump_func
)dump_get_object_type_reply
,
5006 (dump_func
)dump_get_token_impersonation_level_reply
,
5007 (dump_func
)dump_allocate_locally_unique_id_reply
,
5008 (dump_func
)dump_create_device_manager_reply
,
5009 (dump_func
)dump_create_device_reply
,
5011 (dump_func
)dump_get_next_device_request_reply
,
5012 (dump_func
)dump_make_process_system_reply
,
5013 (dump_func
)dump_get_token_statistics_reply
,
5014 (dump_func
)dump_create_completion_reply
,
5015 (dump_func
)dump_open_completion_reply
,
5017 (dump_func
)dump_remove_completion_reply
,
5018 (dump_func
)dump_query_completion_reply
,
5023 (dump_func
)dump_get_window_layered_info_reply
,
5025 (dump_func
)dump_alloc_user_handle_reply
,
5027 (dump_func
)dump_set_cursor_reply
,
5029 (dump_func
)dump_get_suspend_context_reply
,
5031 (dump_func
)dump_create_job_reply
,
5032 (dump_func
)dump_open_job_reply
,
5040 static const char * const req_names
[REQ_NB_REQUESTS
] = {
5042 "get_new_process_info",
5045 "init_process_done",
5047 "terminate_process",
5050 "get_process_vm_counters",
5072 "create_keyed_event",
5079 "release_semaphore",
5084 "alloc_file_handle",
5085 "get_handle_unix_name",
5087 "get_directory_cache_entry",
5093 "accept_into_socket",
5097 "enable_socket_event",
5098 "set_socket_deferred",
5101 "get_console_renderer_events",
5103 "get_console_wait_event",
5106 "set_console_input_info",
5107 "get_console_input_info",
5108 "append_console_input_history",
5109 "get_console_input_history",
5110 "create_console_output",
5111 "set_console_output_info",
5112 "get_console_output_info",
5113 "write_console_input",
5114 "read_console_input",
5115 "write_console_output",
5116 "fill_console_output",
5117 "read_console_output",
5118 "move_console_output",
5119 "send_console_signal",
5120 "read_directory_changes",
5125 "get_mapping_committed_range",
5126 "add_mapping_committed_range",
5131 "queue_exception_event",
5132 "get_exception_status",
5133 "continue_debug_event",
5136 "set_debugger_kill_on_exit",
5137 "read_process_memory",
5138 "write_process_memory",
5151 "set_registry_notification",
5157 "get_thread_context",
5158 "set_thread_context",
5159 "get_selector_entry",
5163 "get_atom_information",
5164 "set_atom_information",
5171 "get_process_idle_event",
5173 "post_quit_message",
5174 "send_hardware_message",
5177 "accept_hardware_message",
5178 "get_message_reply",
5191 "create_named_pipe",
5192 "get_named_pipe_info",
5193 "set_named_pipe_info",
5196 "get_desktop_window",
5201 "get_window_parents",
5202 "get_window_children",
5203 "get_window_children_from_point",
5206 "get_window_rectangles",
5209 "get_windows_offset",
5210 "get_visible_region",
5211 "get_surface_region",
5212 "get_window_region",
5213 "set_window_region",
5214 "get_update_region",
5215 "update_window_zorder",
5217 "set_window_property",
5218 "remove_window_property",
5219 "get_window_property",
5220 "get_window_properties",
5221 "create_winstation",
5224 "get_process_winstation",
5225 "set_process_winstation",
5229 "open_input_desktop",
5231 "get_thread_desktop",
5232 "set_thread_desktop",
5234 "set_user_object_info",
5236 "unregister_hotkey",
5237 "attach_thread_input",
5239 "get_last_input_time",
5242 "set_foreground_window",
5244 "set_active_window",
5245 "set_capture_window",
5251 "finish_hook_chain",
5259 "set_clipboard_data",
5260 "get_clipboard_data",
5261 "get_clipboard_formats",
5262 "enum_clipboard_formats",
5263 "release_clipboard",
5264 "get_clipboard_info",
5265 "set_clipboard_viewer",
5266 "add_clipboard_listener",
5267 "remove_clipboard_listener",
5269 "set_global_windows",
5270 "adjust_token_privileges",
5271 "get_token_privileges",
5272 "check_token_privileges",
5277 "get_token_default_dacl",
5278 "set_token_default_dacl",
5279 "set_security_object",
5280 "get_security_object",
5281 "get_system_handles",
5283 "set_mailslot_info",
5286 "get_directory_entry",
5293 "get_token_impersonation_level",
5294 "allocate_locally_unique_id",
5295 "create_device_manager",
5298 "get_next_device_request",
5299 "make_process_system",
5300 "get_token_statistics",
5301 "create_completion",
5304 "remove_completion",
5306 "set_completion_info",
5307 "add_fd_completion",
5310 "get_window_layered_info",
5311 "set_window_layered_info",
5312 "alloc_user_handle",
5315 "update_rawinput_devices",
5316 "get_suspend_context",
5317 "set_suspend_context",
5323 "set_job_completion_port",
5333 { "ABANDONED_WAIT_0", STATUS_ABANDONED_WAIT_0
},
5334 { "ACCESS_DENIED", STATUS_ACCESS_DENIED
},
5335 { "ACCESS_VIOLATION", STATUS_ACCESS_VIOLATION
},
5336 { "ADDRESS_ALREADY_ASSOCIATED", STATUS_ADDRESS_ALREADY_ASSOCIATED
},
5337 { "ALERTED", STATUS_ALERTED
},
5338 { "ALIAS_EXISTS", STATUS_ALIAS_EXISTS
},
5339 { "BAD_DEVICE_TYPE", STATUS_BAD_DEVICE_TYPE
},
5340 { "BAD_IMPERSONATION_LEVEL", STATUS_BAD_IMPERSONATION_LEVEL
},
5341 { "BREAKPOINT", STATUS_BREAKPOINT
},
5342 { "BUFFER_OVERFLOW", STATUS_BUFFER_OVERFLOW
},
5343 { "BUFFER_TOO_SMALL", STATUS_BUFFER_TOO_SMALL
},
5344 { "CANCELLED", STATUS_CANCELLED
},
5345 { "CANNOT_DELETE", STATUS_CANNOT_DELETE
},
5346 { "CANT_OPEN_ANONYMOUS", STATUS_CANT_OPEN_ANONYMOUS
},
5347 { "CANT_WAIT", STATUS_CANT_WAIT
},
5348 { "CHILD_MUST_BE_VOLATILE", STATUS_CHILD_MUST_BE_VOLATILE
},
5349 { "CONNECTION_ABORTED", STATUS_CONNECTION_ABORTED
},
5350 { "CONNECTION_DISCONNECTED", STATUS_CONNECTION_DISCONNECTED
},
5351 { "CONNECTION_REFUSED", STATUS_CONNECTION_REFUSED
},
5352 { "CONNECTION_RESET", STATUS_CONNECTION_RESET
},
5353 { "DEBUGGER_INACTIVE", STATUS_DEBUGGER_INACTIVE
},
5354 { "DEVICE_BUSY", STATUS_DEVICE_BUSY
},
5355 { "DIRECTORY_NOT_EMPTY", STATUS_DIRECTORY_NOT_EMPTY
},
5356 { "DISK_FULL", STATUS_DISK_FULL
},
5357 { "DLL_NOT_FOUND", STATUS_DLL_NOT_FOUND
},
5358 { "ERROR_CLASS_ALREADY_EXISTS", 0xc0010000 | ERROR_CLASS_ALREADY_EXISTS
},
5359 { "ERROR_CLASS_DOES_NOT_EXIST", 0xc0010000 | ERROR_CLASS_DOES_NOT_EXIST
},
5360 { "ERROR_CLASS_HAS_WINDOWS", 0xc0010000 | ERROR_CLASS_HAS_WINDOWS
},
5361 { "ERROR_CLIPBOARD_NOT_OPEN", 0xc0010000 | ERROR_CLIPBOARD_NOT_OPEN
},
5362 { "ERROR_HOTKEY_ALREADY_REGISTERED", 0xc0010000 | ERROR_HOTKEY_ALREADY_REGISTERED
},
5363 { "ERROR_HOTKEY_NOT_REGISTERED", 0xc0010000 | ERROR_HOTKEY_NOT_REGISTERED
},
5364 { "ERROR_INVALID_CURSOR_HANDLE", 0xc0010000 | ERROR_INVALID_CURSOR_HANDLE
},
5365 { "ERROR_INVALID_INDEX", 0xc0010000 | ERROR_INVALID_INDEX
},
5366 { "ERROR_INVALID_WINDOW_HANDLE", 0xc0010000 | ERROR_INVALID_WINDOW_HANDLE
},
5367 { "ERROR_NO_MORE_USER_HANDLES", 0xc0010000 | ERROR_NO_MORE_USER_HANDLES
},
5368 { "ERROR_WINDOW_OF_OTHER_THREAD", 0xc0010000 | ERROR_WINDOW_OF_OTHER_THREAD
},
5369 { "FILE_DELETED", STATUS_FILE_DELETED
},
5370 { "FILE_IS_A_DIRECTORY", STATUS_FILE_IS_A_DIRECTORY
},
5371 { "FILE_LOCK_CONFLICT", STATUS_FILE_LOCK_CONFLICT
},
5372 { "GENERIC_NOT_MAPPED", STATUS_GENERIC_NOT_MAPPED
},
5373 { "HANDLES_CLOSED", STATUS_HANDLES_CLOSED
},
5374 { "HANDLE_NOT_CLOSABLE", STATUS_HANDLE_NOT_CLOSABLE
},
5375 { "HOST_UNREACHABLE", STATUS_HOST_UNREACHABLE
},
5376 { "ILLEGAL_FUNCTION", STATUS_ILLEGAL_FUNCTION
},
5377 { "INFO_LENGTH_MISMATCH", STATUS_INFO_LENGTH_MISMATCH
},
5378 { "INSTANCE_NOT_AVAILABLE", STATUS_INSTANCE_NOT_AVAILABLE
},
5379 { "INSUFFICIENT_RESOURCES", STATUS_INSUFFICIENT_RESOURCES
},
5380 { "INVALID_CID", STATUS_INVALID_CID
},
5381 { "INVALID_DEVICE_REQUEST", STATUS_INVALID_DEVICE_REQUEST
},
5382 { "INVALID_FILE_FOR_SECTION", STATUS_INVALID_FILE_FOR_SECTION
},
5383 { "INVALID_HANDLE", STATUS_INVALID_HANDLE
},
5384 { "INVALID_IMAGE_FORMAT", STATUS_INVALID_IMAGE_FORMAT
},
5385 { "INVALID_IMAGE_NE_FORMAT", STATUS_INVALID_IMAGE_NE_FORMAT
},
5386 { "INVALID_IMAGE_NOT_MZ", STATUS_INVALID_IMAGE_NOT_MZ
},
5387 { "INVALID_IMAGE_PROTECT", STATUS_INVALID_IMAGE_PROTECT
},
5388 { "INVALID_IMAGE_WIN_64", STATUS_INVALID_IMAGE_WIN_64
},
5389 { "INVALID_LOCK_SEQUENCE", STATUS_INVALID_LOCK_SEQUENCE
},
5390 { "INVALID_OWNER", STATUS_INVALID_OWNER
},
5391 { "INVALID_PARAMETER", STATUS_INVALID_PARAMETER
},
5392 { "INVALID_SECURITY_DESCR", STATUS_INVALID_SECURITY_DESCR
},
5393 { "IO_TIMEOUT", STATUS_IO_TIMEOUT
},
5394 { "KEY_DELETED", STATUS_KEY_DELETED
},
5395 { "MAPPED_FILE_SIZE_ZERO", STATUS_MAPPED_FILE_SIZE_ZERO
},
5396 { "MORE_PROCESSING_REQUIRED", STATUS_MORE_PROCESSING_REQUIRED
},
5397 { "MUTANT_NOT_OWNED", STATUS_MUTANT_NOT_OWNED
},
5398 { "NAME_TOO_LONG", STATUS_NAME_TOO_LONG
},
5399 { "NETWORK_BUSY", STATUS_NETWORK_BUSY
},
5400 { "NETWORK_UNREACHABLE", STATUS_NETWORK_UNREACHABLE
},
5401 { "NOT_ALL_ASSIGNED", STATUS_NOT_ALL_ASSIGNED
},
5402 { "NOT_A_DIRECTORY", STATUS_NOT_A_DIRECTORY
},
5403 { "NOT_FOUND", STATUS_NOT_FOUND
},
5404 { "NOT_IMPLEMENTED", STATUS_NOT_IMPLEMENTED
},
5405 { "NOT_REGISTRY_FILE", STATUS_NOT_REGISTRY_FILE
},
5406 { "NOT_SUPPORTED", STATUS_NOT_SUPPORTED
},
5407 { "NO_DATA_DETECTED", STATUS_NO_DATA_DETECTED
},
5408 { "NO_IMPERSONATION_TOKEN", STATUS_NO_IMPERSONATION_TOKEN
},
5409 { "NO_MEMORY", STATUS_NO_MEMORY
},
5410 { "NO_MORE_ENTRIES", STATUS_NO_MORE_ENTRIES
},
5411 { "NO_MORE_FILES", STATUS_NO_MORE_FILES
},
5412 { "NO_SUCH_DEVICE", STATUS_NO_SUCH_DEVICE
},
5413 { "NO_SUCH_FILE", STATUS_NO_SUCH_FILE
},
5414 { "NO_TOKEN", STATUS_NO_TOKEN
},
5415 { "OBJECT_NAME_COLLISION", STATUS_OBJECT_NAME_COLLISION
},
5416 { "OBJECT_NAME_EXISTS", STATUS_OBJECT_NAME_EXISTS
},
5417 { "OBJECT_NAME_INVALID", STATUS_OBJECT_NAME_INVALID
},
5418 { "OBJECT_NAME_NOT_FOUND", STATUS_OBJECT_NAME_NOT_FOUND
},
5419 { "OBJECT_PATH_INVALID", STATUS_OBJECT_PATH_INVALID
},
5420 { "OBJECT_PATH_NOT_FOUND", STATUS_OBJECT_PATH_NOT_FOUND
},
5421 { "OBJECT_PATH_SYNTAX_BAD", STATUS_OBJECT_PATH_SYNTAX_BAD
},
5422 { "OBJECT_TYPE_MISMATCH", STATUS_OBJECT_TYPE_MISMATCH
},
5423 { "PENDING", STATUS_PENDING
},
5424 { "PIPE_BROKEN", STATUS_PIPE_BROKEN
},
5425 { "PIPE_CONNECTED", STATUS_PIPE_CONNECTED
},
5426 { "PIPE_DISCONNECTED", STATUS_PIPE_DISCONNECTED
},
5427 { "PIPE_LISTENING", STATUS_PIPE_LISTENING
},
5428 { "PIPE_NOT_AVAILABLE", STATUS_PIPE_NOT_AVAILABLE
},
5429 { "PRIVILEGE_NOT_HELD", STATUS_PRIVILEGE_NOT_HELD
},
5430 { "PROCESS_IN_JOB", STATUS_PROCESS_IN_JOB
},
5431 { "PROCESS_IS_TERMINATING", STATUS_PROCESS_IS_TERMINATING
},
5432 { "SECTION_TOO_BIG", STATUS_SECTION_TOO_BIG
},
5433 { "SEMAPHORE_LIMIT_EXCEEDED", STATUS_SEMAPHORE_LIMIT_EXCEEDED
},
5434 { "SHARING_VIOLATION", STATUS_SHARING_VIOLATION
},
5435 { "SHUTDOWN_IN_PROGRESS", STATUS_SHUTDOWN_IN_PROGRESS
},
5436 { "SUSPEND_COUNT_EXCEEDED", STATUS_SUSPEND_COUNT_EXCEEDED
},
5437 { "THREAD_IS_TERMINATING", STATUS_THREAD_IS_TERMINATING
},
5438 { "TIMEOUT", STATUS_TIMEOUT
},
5439 { "TOO_MANY_OPENED_FILES", STATUS_TOO_MANY_OPENED_FILES
},
5440 { "UNSUCCESSFUL", STATUS_UNSUCCESSFUL
},
5441 { "USER_APC", STATUS_USER_APC
},
5442 { "USER_MAPPED_FILE", STATUS_USER_MAPPED_FILE
},
5443 { "VOLUME_DISMOUNTED", STATUS_VOLUME_DISMOUNTED
},
5444 { "WAS_LOCKED", STATUS_WAS_LOCKED
},
5448 /* ### make_requests end ### */
5449 /* Everything above this line is generated automatically by tools/make_requests */
5451 static const char *get_status_name( unsigned int status
)
5454 static char buffer
[10];
5458 for (i
= 0; status_names
[i
].name
; i
++)
5459 if (status_names
[i
].value
== status
) return status_names
[i
].name
;
5461 sprintf( buffer
, "%x", status
);
5465 void trace_request(void)
5467 enum request req
= current
->req
.request_header
.req
;
5468 if (req
< REQ_NB_REQUESTS
)
5470 fprintf( stderr
, "%04x: %s(", current
->id
, req_names
[req
] );
5471 if (req_dumpers
[req
])
5473 cur_data
= get_req_data();
5474 cur_size
= get_req_data_size();
5475 req_dumpers
[req
]( ¤t
->req
);
5477 fprintf( stderr
, " )\n" );
5479 else fprintf( stderr
, "%04x: %d(?)\n", current
->id
, req
);
5482 void trace_reply( enum request req
, const union generic_reply
*reply
)
5484 if (req
< REQ_NB_REQUESTS
)
5486 fprintf( stderr
, "%04x: %s() = %s",
5487 current
->id
, req_names
[req
], get_status_name(current
->error
) );
5488 if (reply_dumpers
[req
])
5490 fprintf( stderr
, " {" );
5491 cur_data
= current
->reply_data
;
5492 cur_size
= reply
->reply_header
.reply_size
;
5493 reply_dumpers
[req
]( reply
);
5494 fprintf( stderr
, " }" );
5496 fputc( '\n', stderr
);
5498 else fprintf( stderr
, "%04x: %d() = %s\n",
5499 current
->id
, req
, get_status_name(current
->error
) );