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
41 #include "wine/condrv.h"
43 #include "ddk/ntddser.h"
50 static const void *cur_data
;
51 static data_size_t cur_size
;
53 static const char *get_status_name( unsigned int status
);
55 /* utility functions */
57 static inline void remove_data( data_size_t size
)
59 cur_data
= (const char *)cur_data
+ size
;
63 static void dump_uints( const char *prefix
, const unsigned int *ptr
, int len
)
65 fprintf( stderr
, "%s{", prefix
);
68 fprintf( stderr
, "%08x", *ptr
++ );
69 if (--len
) fputc( ',', stderr
);
74 static void dump_handles( const char *prefix
, const obj_handle_t
*data
, data_size_t size
)
76 data_size_t len
= size
/ sizeof(*data
);
78 fprintf( stderr
,"%s{", prefix
);
81 fprintf( stderr
, "%04x", *data
++ );
82 if (--len
) fputc( ',', stderr
);
87 static void dump_timeout( const char *prefix
, const timeout_t
*time
)
89 fprintf( stderr
, "%s%s", prefix
, get_timeout_str(*time
) );
92 static void dump_abstime( const char *prefix
, const abstime_t
*when
)
94 timeout_t timeout
= abstime_to_timeout( *when
);
95 dump_timeout( prefix
, &timeout
);
98 static void dump_uint64( const char *prefix
, const unsigned __int64
*val
)
100 if ((unsigned int)*val
!= *val
)
101 fprintf( stderr
, "%s%x%08x", prefix
, (unsigned int)(*val
>> 32), (unsigned int)*val
);
103 fprintf( stderr
, "%s%08x", prefix
, (unsigned int)*val
);
106 static void dump_rectangle( const char *prefix
, const rectangle_t
*rect
)
108 fprintf( stderr
, "%s{%d,%d;%d,%d}", prefix
,
109 rect
->left
, rect
->top
, rect
->right
, rect
->bottom
);
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(IOCTL_CONDRV_ACTIVATE
);
118 CASE(IOCTL_CONDRV_BIND_PID
);
119 CASE(IOCTL_CONDRV_CTRL_EVENT
);
120 CASE(IOCTL_CONDRV_FILL_OUTPUT
);
121 CASE(IOCTL_CONDRV_GET_INPUT_INFO
);
122 CASE(IOCTL_CONDRV_GET_MODE
);
123 CASE(IOCTL_CONDRV_GET_OUTPUT_INFO
);
124 CASE(IOCTL_CONDRV_GET_TITLE
);
125 CASE(IOCTL_CONDRV_PEEK
);
126 CASE(IOCTL_CONDRV_READ_CONSOLE
);
127 CASE(IOCTL_CONDRV_READ_INPUT
);
128 CASE(IOCTL_CONDRV_READ_OUTPUT
);
129 CASE(IOCTL_CONDRV_SET_MODE
);
130 CASE(IOCTL_CONDRV_SET_OUTPUT_INFO
);
131 CASE(IOCTL_CONDRV_SETUP_INPUT
);
132 CASE(IOCTL_CONDRV_WRITE_CONSOLE
);
133 CASE(IOCTL_CONDRV_WRITE_INPUT
);
134 CASE(IOCTL_CONDRV_WRITE_OUTPUT
);
135 CASE(FSCTL_DISMOUNT_VOLUME
);
136 CASE(FSCTL_PIPE_DISCONNECT
);
137 CASE(FSCTL_PIPE_LISTEN
);
138 CASE(FSCTL_PIPE_PEEK
);
139 CASE(FSCTL_PIPE_WAIT
);
140 CASE(IOCTL_SERIAL_GET_TIMEOUTS
);
141 CASE(IOCTL_SERIAL_GET_WAIT_MASK
);
142 CASE(IOCTL_SERIAL_SET_TIMEOUTS
);
143 CASE(IOCTL_SERIAL_SET_WAIT_MASK
);
144 CASE(WS_SIO_ADDRESS_LIST_CHANGE
);
145 default: fprintf( stderr
, "%s%08x", prefix
, *code
); break;
150 static void dump_client_cpu( const char *prefix
, const client_cpu_t
*code
)
154 #define CASE(c) case CPU_##c: fprintf( stderr, "%s%s", prefix, #c ); break
160 default: fprintf( stderr
, "%s%u", prefix
, *code
); break;
165 static void dump_apc_call( const char *prefix
, const apc_call_t
*call
)
167 fprintf( stderr
, "%s{", prefix
);
171 fprintf( stderr
, "APC_NONE" );
174 dump_uint64( "APC_USER,func=", &call
->user
.user
.func
);
175 dump_uint64( ",args={", &call
->user
.user
.args
[0] );
176 dump_uint64( ",", &call
->user
.user
.args
[1] );
177 dump_uint64( ",", &call
->user
.user
.args
[2] );
178 fputc( '}', stderr
);
181 dump_timeout( "APC_TIMER,time=", &call
->user
.timer
.time
);
182 dump_uint64( ",arg=", &call
->user
.timer
.arg
);
185 dump_uint64( "APC_ASYNC_IO,user=", &call
->async_io
.user
);
186 dump_uint64( ",sb=", &call
->async_io
.sb
);
187 fprintf( stderr
, ",status=%s", get_status_name(call
->async_io
.status
) );
189 case APC_VIRTUAL_ALLOC
:
190 dump_uint64( "APC_VIRTUAL_ALLOC,addr==", &call
->virtual_alloc
.addr
);
191 dump_uint64( ",size=", &call
->virtual_alloc
.size
);
192 dump_uint64( ",zero_bits=", &call
->virtual_alloc
.zero_bits
);
193 fprintf( stderr
, ",op_type=%x,prot=%x", call
->virtual_alloc
.op_type
, call
->virtual_alloc
.prot
);
195 case APC_VIRTUAL_FREE
:
196 dump_uint64( "APC_VIRTUAL_FREE,addr=", &call
->virtual_free
.addr
);
197 dump_uint64( ",size=", &call
->virtual_free
.size
);
198 fprintf( stderr
, ",op_type=%x", call
->virtual_free
.op_type
);
200 case APC_VIRTUAL_QUERY
:
201 dump_uint64( "APC_VIRTUAL_QUERY,addr=", &call
->virtual_query
.addr
);
203 case APC_VIRTUAL_PROTECT
:
204 dump_uint64( "APC_VIRTUAL_PROTECT,addr=", &call
->virtual_protect
.addr
);
205 dump_uint64( ",size=", &call
->virtual_protect
.size
);
206 fprintf( stderr
, ",prot=%x", call
->virtual_protect
.prot
);
208 case APC_VIRTUAL_FLUSH
:
209 dump_uint64( "APC_VIRTUAL_FLUSH,addr=", &call
->virtual_flush
.addr
);
210 dump_uint64( ",size=", &call
->virtual_flush
.size
);
212 case APC_VIRTUAL_LOCK
:
213 dump_uint64( "APC_VIRTUAL_LOCK,addr=", &call
->virtual_lock
.addr
);
214 dump_uint64( ",size=", &call
->virtual_lock
.size
);
216 case APC_VIRTUAL_UNLOCK
:
217 dump_uint64( "APC_VIRTUAL_UNLOCK,addr=", &call
->virtual_unlock
.addr
);
218 dump_uint64( ",size=", &call
->virtual_unlock
.size
);
221 fprintf( stderr
, "APC_MAP_VIEW,handle=%04x", call
->map_view
.handle
);
222 dump_uint64( ",addr=", &call
->map_view
.addr
);
223 dump_uint64( ",size=", &call
->map_view
.size
);
224 dump_uint64( ",offset=", &call
->map_view
.offset
);
225 dump_uint64( ",zero_bits=", &call
->map_view
.zero_bits
);
226 fprintf( stderr
, ",alloc_type=%x,prot=%x", call
->map_view
.alloc_type
, call
->map_view
.prot
);
229 dump_uint64( "APC_UNMAP_VIEW,addr=", &call
->unmap_view
.addr
);
231 case APC_CREATE_THREAD
:
232 dump_uint64( "APC_CREATE_THREAD,func=", &call
->create_thread
.func
);
233 dump_uint64( ",arg=", &call
->create_thread
.arg
);
234 dump_uint64( ",reserve=", &call
->create_thread
.reserve
);
235 dump_uint64( ",commit=", &call
->create_thread
.commit
);
236 fprintf( stderr
, ",flags=%x", call
->create_thread
.flags
);
238 case APC_BREAK_PROCESS
:
239 fprintf( stderr
, "APC_BREAK_PROCESS" );
242 fprintf( stderr
, "type=%u", call
->type
);
245 fputc( '}', stderr
);
248 static void dump_apc_result( const char *prefix
, const apc_result_t
*result
)
250 fprintf( stderr
, "%s{", prefix
);
256 fprintf( stderr
, "APC_ASYNC_IO,status=%s,total=%u",
257 get_status_name( result
->async_io
.status
), result
->async_io
.total
);
259 case APC_VIRTUAL_ALLOC
:
260 fprintf( stderr
, "APC_VIRTUAL_ALLOC,status=%s",
261 get_status_name( result
->virtual_alloc
.status
));
262 dump_uint64( ",addr=", &result
->virtual_alloc
.addr
);
263 dump_uint64( ",size=", &result
->virtual_alloc
.size
);
265 case APC_VIRTUAL_FREE
:
266 fprintf( stderr
, "APC_VIRTUAL_FREE,status=%s",
267 get_status_name( result
->virtual_free
.status
));
268 dump_uint64( ",addr=", &result
->virtual_free
.addr
);
269 dump_uint64( ",size=", &result
->virtual_free
.size
);
271 case APC_VIRTUAL_QUERY
:
272 fprintf( stderr
, "APC_VIRTUAL_QUERY,status=%s",
273 get_status_name( result
->virtual_query
.status
));
274 dump_uint64( ",base=", &result
->virtual_query
.base
);
275 dump_uint64( ",alloc_base=", &result
->virtual_query
.alloc_base
);
276 dump_uint64( ",size=", &result
->virtual_query
.size
);
277 fprintf( stderr
, ",state=%x,prot=%x,alloc_prot=%x,alloc_type=%x",
278 result
->virtual_query
.state
, result
->virtual_query
.prot
,
279 result
->virtual_query
.alloc_prot
, result
->virtual_query
.alloc_type
);
281 case APC_VIRTUAL_PROTECT
:
282 fprintf( stderr
, "APC_VIRTUAL_PROTECT,status=%s",
283 get_status_name( result
->virtual_protect
.status
));
284 dump_uint64( ",addr=", &result
->virtual_protect
.addr
);
285 dump_uint64( ",size=", &result
->virtual_protect
.size
);
286 fprintf( stderr
, ",prot=%x", result
->virtual_protect
.prot
);
288 case APC_VIRTUAL_FLUSH
:
289 fprintf( stderr
, "APC_VIRTUAL_FLUSH,status=%s",
290 get_status_name( result
->virtual_flush
.status
));
291 dump_uint64( ",addr=", &result
->virtual_flush
.addr
);
292 dump_uint64( ",size=", &result
->virtual_flush
.size
);
294 case APC_VIRTUAL_LOCK
:
295 fprintf( stderr
, "APC_VIRTUAL_LOCK,status=%s",
296 get_status_name( result
->virtual_lock
.status
));
297 dump_uint64( ",addr=", &result
->virtual_lock
.addr
);
298 dump_uint64( ",size=", &result
->virtual_lock
.size
);
300 case APC_VIRTUAL_UNLOCK
:
301 fprintf( stderr
, "APC_VIRTUAL_UNLOCK,status=%s",
302 get_status_name( result
->virtual_unlock
.status
));
303 dump_uint64( ",addr=", &result
->virtual_unlock
.addr
);
304 dump_uint64( ",size=", &result
->virtual_unlock
.size
);
307 fprintf( stderr
, "APC_MAP_VIEW,status=%s",
308 get_status_name( result
->map_view
.status
));
309 dump_uint64( ",addr=", &result
->map_view
.addr
);
310 dump_uint64( ",size=", &result
->map_view
.size
);
313 fprintf( stderr
, "APC_UNMAP_VIEW,status=%s",
314 get_status_name( result
->unmap_view
.status
) );
316 case APC_CREATE_THREAD
:
317 fprintf( stderr
, "APC_CREATE_THREAD,status=%s,pid=%04x,tid=%04x,handle=%04x",
318 get_status_name( result
->create_thread
.status
),
319 result
->create_thread
.pid
, result
->create_thread
.tid
, result
->create_thread
.handle
);
321 case APC_BREAK_PROCESS
:
322 fprintf( stderr
, "APC_BREAK_PROCESS,status=%s", get_status_name( result
->break_process
.status
) );
325 fprintf( stderr
, "type=%u", result
->type
);
328 fputc( '}', stderr
);
331 static void dump_async_data( const char *prefix
, const async_data_t
*data
)
333 fprintf( stderr
, "%s{handle=%04x,event=%04x", prefix
, data
->handle
, data
->event
);
334 dump_uint64( ",iosb=", &data
->iosb
);
335 dump_uint64( ",user=", &data
->user
);
336 dump_uint64( ",apc=", &data
->apc
);
337 dump_uint64( ",apc_context=", &data
->apc_context
);
338 fputc( '}', stderr
);
341 static void dump_irp_params( const char *prefix
, const irp_params_t
*data
)
346 fprintf( stderr
, "%s{NONE}", prefix
);
348 case IRP_CALL_CREATE
:
349 fprintf( stderr
, "%s{CREATE,access=%08x,sharing=%08x,options=%08x",
350 prefix
, data
->create
.access
, data
->create
.sharing
, data
->create
.options
);
351 dump_uint64( ",device=", &data
->create
.device
);
352 fprintf( stderr
, ",file=%08x}", data
->create
.file
);
355 fprintf( stderr
, "%s{CLOSE", prefix
);
356 dump_uint64( ",file=", &data
->close
.file
);
357 fputc( '}', stderr
);
360 fprintf( stderr
, "%s{READ,key=%08x,out_size=%u", prefix
, data
->read
.key
,
361 data
->read
.out_size
);
362 dump_uint64( ",pos=", &data
->read
.pos
);
363 dump_uint64( ",file=", &data
->read
.file
);
364 fputc( '}', stderr
);
367 fprintf( stderr
, "%s{WRITE,key=%08x", prefix
, data
->write
.key
);
368 dump_uint64( ",pos=", &data
->write
.pos
);
369 dump_uint64( ",file=", &data
->write
.file
);
370 fputc( '}', stderr
);
373 fprintf( stderr
, "%s{FLUSH", prefix
);
374 dump_uint64( ",file=", &data
->flush
.file
);
375 fputc( '}', stderr
);
378 fprintf( stderr
, "%s{IOCTL", prefix
);
379 dump_ioctl_code( ",code=", &data
->ioctl
.code
);
380 fprintf( stderr
, ",out_size=%u", data
->ioctl
.out_size
);
381 dump_uint64( ",file=", &data
->ioctl
.file
);
382 fputc( '}', stderr
);
385 fprintf( stderr
, "%s{FREE", prefix
);
386 dump_uint64( ",obj=", &data
->free
.obj
);
387 fputc( '}', stderr
);
389 case IRP_CALL_CANCEL
:
390 fprintf( stderr
, "%s{CANCEL", prefix
);
391 dump_uint64( ",irp=", &data
->cancel
.irp
);
392 fputc( '}', stderr
);
397 static void dump_hw_input( const char *prefix
, const hw_input_t
*input
)
402 fprintf( stderr
, "%s{type=MOUSE,x=%d,y=%d,data=%08x,flags=%08x,time=%u",
403 prefix
, input
->mouse
.x
, input
->mouse
.y
, input
->mouse
.data
, input
->mouse
.flags
,
405 dump_uint64( ",info=", &input
->mouse
.info
);
406 fputc( '}', stderr
);
409 fprintf( stderr
, "%s{type=KEYBOARD,vkey=%04hx,scan=%04hx,flags=%08x,time=%u",
410 prefix
, input
->kbd
.vkey
, input
->kbd
.scan
, input
->kbd
.flags
, input
->kbd
.time
);
411 dump_uint64( ",info=", &input
->kbd
.info
);
412 fputc( '}', stderr
);
415 fprintf( stderr
, "%s{type=HARDWARE,msg=%04x", prefix
, input
->hw
.msg
);
416 dump_uint64( ",lparam=", &input
->hw
.lparam
);
417 fputc( '}', stderr
);
420 fprintf( stderr
, "%s{type=%04x}", prefix
, input
->type
);
425 static void dump_luid( const char *prefix
, const luid_t
*luid
)
427 fprintf( stderr
, "%s%d.%u", prefix
, luid
->high_part
, luid
->low_part
);
430 static void dump_generic_map( const char *prefix
, const generic_map_t
*map
)
432 fprintf( stderr
, "%s{r=%08x,w=%08x,x=%08x,a=%08x}",
433 prefix
, map
->read
, map
->write
, map
->exec
, map
->all
);
436 static void dump_varargs_ints( const char *prefix
, data_size_t size
)
438 const int *data
= cur_data
;
439 data_size_t len
= size
/ sizeof(*data
);
441 fprintf( stderr
,"%s{", prefix
);
444 fprintf( stderr
, "%d", *data
++ );
445 if (--len
) fputc( ',', stderr
);
447 fputc( '}', stderr
);
451 static void dump_varargs_uints( const char *prefix
, data_size_t size
)
453 const unsigned int *data
= cur_data
;
455 dump_uints( prefix
, data
, size
/ sizeof(*data
) );
459 static void dump_varargs_uints64( const char *prefix
, data_size_t size
)
461 const unsigned __int64
*data
= cur_data
;
462 data_size_t len
= size
/ sizeof(*data
);
464 fprintf( stderr
,"%s{", prefix
);
467 dump_uint64( "", data
++ );
468 if (--len
) fputc( ',', stderr
);
470 fputc( '}', stderr
);
474 static void dump_varargs_apc_result( const char *prefix
, data_size_t size
)
476 const apc_result_t
*result
= cur_data
;
478 if (size
>= sizeof(*result
))
480 dump_apc_result( prefix
, result
);
481 size
= sizeof(*result
);
486 static void dump_varargs_select_op( const char *prefix
, data_size_t size
)
492 fprintf( stderr
, "%s{}", prefix
);
495 memset( &data
, 0, sizeof(data
) );
496 memcpy( &data
, cur_data
, min( size
, sizeof(data
) ));
498 fprintf( stderr
, "%s{", prefix
);
502 fprintf( stderr
, "NONE" );
505 case SELECT_WAIT_ALL
:
506 fprintf( stderr
, "%s", data
.op
== SELECT_WAIT
? "WAIT" : "WAIT_ALL" );
507 if (size
> offsetof( select_op_t
, wait
.handles
))
508 dump_handles( ",handles=", data
.wait
.handles
,
509 min( size
, sizeof(data
.wait
) ) - offsetof( select_op_t
, wait
.handles
));
511 case SELECT_SIGNAL_AND_WAIT
:
512 fprintf( stderr
, "SIGNAL_AND_WAIT,signal=%04x,wait=%04x",
513 data
.signal_and_wait
.signal
, data
.signal_and_wait
.wait
);
515 case SELECT_KEYED_EVENT_WAIT
:
516 case SELECT_KEYED_EVENT_RELEASE
:
517 fprintf( stderr
, "KEYED_EVENT_%s,handle=%04x",
518 data
.op
== SELECT_KEYED_EVENT_WAIT
? "WAIT" : "RELEASE",
519 data
.keyed_event
.handle
);
520 dump_uint64( ",key=", &data
.keyed_event
.key
);
523 fprintf( stderr
, "op=%u", data
.op
);
526 fputc( '}', stderr
);
530 static void dump_varargs_user_handles( const char *prefix
, data_size_t size
)
532 const user_handle_t
*data
= cur_data
;
533 data_size_t len
= size
/ sizeof(*data
);
535 fprintf( stderr
,"%s{", prefix
);
538 fprintf( stderr
, "%08x", *data
++ );
539 if (--len
) fputc( ',', stderr
);
541 fputc( '}', stderr
);
545 static void dump_varargs_bytes( const char *prefix
, data_size_t size
)
547 const unsigned char *data
= cur_data
;
548 data_size_t len
= min( 1024, size
);
550 fprintf( stderr
,"%s{", prefix
);
553 fprintf( stderr
, "%02x", *data
++ );
554 if (--len
) fputc( ',', stderr
);
556 if (size
> 1024) fprintf( stderr
, "...(total %u)", size
);
557 fputc( '}', stderr
);
561 static void dump_varargs_string( const char *prefix
, data_size_t size
)
563 fprintf( stderr
, "%s\"%.*s\"", prefix
, (int)size
, (const char *)cur_data
);
567 static void dump_varargs_unicode_str( const char *prefix
, data_size_t size
)
569 fprintf( stderr
, "%sL\"", prefix
);
570 dump_strW( cur_data
, size
, stderr
, "\"\"" );
571 fputc( '\"', stderr
);
575 static void dump_varargs_context( const char *prefix
, data_size_t size
)
577 const context_t
*context
= cur_data
;
583 fprintf( stderr
, "%s{}", prefix
);
586 size
= min( size
, sizeof(ctx
) );
587 memset( &ctx
, 0, sizeof(ctx
) );
588 memcpy( &ctx
, context
, size
);
590 fprintf( stderr
,"%s{", prefix
);
591 dump_client_cpu( "cpu=", &ctx
.cpu
);
595 if (ctx
.flags
& SERVER_CTX_CONTROL
)
596 fprintf( stderr
, ",eip=%08x,esp=%08x,ebp=%08x,eflags=%08x,cs=%04x,ss=%04x",
597 ctx
.ctl
.i386_regs
.eip
, ctx
.ctl
.i386_regs
.esp
, ctx
.ctl
.i386_regs
.ebp
,
598 ctx
.ctl
.i386_regs
.eflags
, ctx
.ctl
.i386_regs
.cs
, ctx
.ctl
.i386_regs
.ss
);
599 if (ctx
.flags
& SERVER_CTX_SEGMENTS
)
600 fprintf( stderr
, ",ds=%04x,es=%04x,fs=%04x,gs=%04x",
601 ctx
.seg
.i386_regs
.ds
, ctx
.seg
.i386_regs
.es
,
602 ctx
.seg
.i386_regs
.fs
, ctx
.seg
.i386_regs
.gs
);
603 if (ctx
.flags
& SERVER_CTX_INTEGER
)
604 fprintf( stderr
, ",eax=%08x,ebx=%08x,ecx=%08x,edx=%08x,esi=%08x,edi=%08x",
605 ctx
.integer
.i386_regs
.eax
, ctx
.integer
.i386_regs
.ebx
, ctx
.integer
.i386_regs
.ecx
,
606 ctx
.integer
.i386_regs
.edx
, ctx
.integer
.i386_regs
.esi
, ctx
.integer
.i386_regs
.edi
);
607 if (ctx
.flags
& SERVER_CTX_DEBUG_REGISTERS
)
608 fprintf( stderr
, ",dr0=%08x,dr1=%08x,dr2=%08x,dr3=%08x,dr6=%08x,dr7=%08x",
609 ctx
.debug
.i386_regs
.dr0
, ctx
.debug
.i386_regs
.dr1
, ctx
.debug
.i386_regs
.dr2
,
610 ctx
.debug
.i386_regs
.dr3
, ctx
.debug
.i386_regs
.dr6
, ctx
.debug
.i386_regs
.dr7
);
611 if (ctx
.flags
& SERVER_CTX_FLOATING_POINT
)
613 fprintf( stderr
, ",fp.ctrl=%08x,fp.status=%08x,fp.tag=%08x,fp.err_off=%08x,fp.err_sel=%08x",
614 ctx
.fp
.i386_regs
.ctrl
, ctx
.fp
.i386_regs
.status
, ctx
.fp
.i386_regs
.tag
,
615 ctx
.fp
.i386_regs
.err_off
, ctx
.fp
.i386_regs
.err_sel
);
616 fprintf( stderr
, ",fp.data_off=%08x,fp.data_sel=%08x,fp.cr0npx=%08x",
617 ctx
.fp
.i386_regs
.data_off
, ctx
.fp
.i386_regs
.data_sel
, ctx
.fp
.i386_regs
.cr0npx
);
618 for (i
= 0; i
< 8; i
++)
621 memcpy( ®
, &ctx
.fp
.i386_regs
.regs
[10 * i
], 10 );
622 fprintf( stderr
, ",fp.reg%u=%Lg", i
, reg
);
625 if (ctx
.flags
& SERVER_CTX_EXTENDED_REGISTERS
)
626 dump_uints( ",extended=", (const unsigned int *)ctx
.ext
.i386_regs
,
627 sizeof(ctx
.ext
.i386_regs
) / sizeof(int) );
628 if (ctx
.flags
& SERVER_CTX_YMM_REGISTERS
)
629 dump_uints( ",ymm_high=", (const unsigned int *)ctx
.ymm
.ymm_high_regs
.ymm_high
,
630 sizeof(ctx
.ymm
.ymm_high_regs
) / sizeof(int) );
633 if (ctx
.flags
& SERVER_CTX_CONTROL
)
635 dump_uint64( ",rip=", &ctx
.ctl
.x86_64_regs
.rip
);
636 dump_uint64( ",rbp=", &ctx
.ctl
.x86_64_regs
.rbp
);
637 dump_uint64( ",rsp=", &ctx
.ctl
.x86_64_regs
.rsp
);
638 fprintf( stderr
, ",cs=%04x,ss=%04x,flags=%08x",
639 ctx
.ctl
.x86_64_regs
.cs
, ctx
.ctl
.x86_64_regs
.ss
, ctx
.ctl
.x86_64_regs
.flags
);
641 if (ctx
.flags
& SERVER_CTX_INTEGER
)
643 dump_uint64( ",rax=", &ctx
.integer
.x86_64_regs
.rax
);
644 dump_uint64( ",rbx=", &ctx
.integer
.x86_64_regs
.rbx
);
645 dump_uint64( ",rcx=", &ctx
.integer
.x86_64_regs
.rcx
);
646 dump_uint64( ",rdx=", &ctx
.integer
.x86_64_regs
.rdx
);
647 dump_uint64( ",rsi=", &ctx
.integer
.x86_64_regs
.rsi
);
648 dump_uint64( ",rdi=", &ctx
.integer
.x86_64_regs
.rdi
);
649 dump_uint64( ",r8=", &ctx
.integer
.x86_64_regs
.r8
);
650 dump_uint64( ",r9=", &ctx
.integer
.x86_64_regs
.r9
);
651 dump_uint64( ",r10=", &ctx
.integer
.x86_64_regs
.r10
);
652 dump_uint64( ",r11=", &ctx
.integer
.x86_64_regs
.r11
);
653 dump_uint64( ",r12=", &ctx
.integer
.x86_64_regs
.r12
);
654 dump_uint64( ",r13=", &ctx
.integer
.x86_64_regs
.r13
);
655 dump_uint64( ",r14=", &ctx
.integer
.x86_64_regs
.r14
);
656 dump_uint64( ",r15=", &ctx
.integer
.x86_64_regs
.r15
);
658 if (ctx
.flags
& SERVER_CTX_SEGMENTS
)
659 fprintf( stderr
, ",ds=%04x,es=%04x,fs=%04x,gs=%04x",
660 ctx
.seg
.x86_64_regs
.ds
, ctx
.seg
.x86_64_regs
.es
,
661 ctx
.seg
.x86_64_regs
.fs
, ctx
.seg
.x86_64_regs
.gs
);
662 if (ctx
.flags
& SERVER_CTX_DEBUG_REGISTERS
)
664 dump_uint64( ",dr0=", &ctx
.debug
.x86_64_regs
.dr0
);
665 dump_uint64( ",dr1=", &ctx
.debug
.x86_64_regs
.dr1
);
666 dump_uint64( ",dr2=", &ctx
.debug
.x86_64_regs
.dr2
);
667 dump_uint64( ",dr3=", &ctx
.debug
.x86_64_regs
.dr3
);
668 dump_uint64( ",dr6=", &ctx
.debug
.x86_64_regs
.dr6
);
669 dump_uint64( ",dr7=", &ctx
.debug
.x86_64_regs
.dr7
);
671 if (ctx
.flags
& SERVER_CTX_FLOATING_POINT
)
673 for (i
= 0; i
< 32; i
++)
674 fprintf( stderr
, ",fp%u=%08x%08x%08x%08x", i
,
675 (unsigned int)(ctx
.fp
.x86_64_regs
.fpregs
[i
].high
>> 32),
676 (unsigned int)ctx
.fp
.x86_64_regs
.fpregs
[i
].high
,
677 (unsigned int)(ctx
.fp
.x86_64_regs
.fpregs
[i
].low
>> 32),
678 (unsigned int)ctx
.fp
.x86_64_regs
.fpregs
[i
].low
);
680 if (ctx
.flags
& SERVER_CTX_YMM_REGISTERS
)
681 dump_uints( ",ymm_high=", (const unsigned int *)ctx
.ymm
.ymm_high_regs
.ymm_high
,
682 sizeof(ctx
.ymm
.ymm_high_regs
) / sizeof(int) );
685 if (ctx
.flags
& SERVER_CTX_CONTROL
)
686 fprintf( stderr
, ",iar=%08x,msr=%08x,ctr=%08x,lr=%08x,dar=%08x,dsisr=%08x,trap=%08x",
687 ctx
.ctl
.powerpc_regs
.iar
, ctx
.ctl
.powerpc_regs
.msr
, ctx
.ctl
.powerpc_regs
.ctr
,
688 ctx
.ctl
.powerpc_regs
.lr
, ctx
.ctl
.powerpc_regs
.dar
, ctx
.ctl
.powerpc_regs
.dsisr
,
689 ctx
.ctl
.powerpc_regs
.trap
);
690 if (ctx
.flags
& SERVER_CTX_INTEGER
)
692 for (i
= 0; i
< 32; i
++) fprintf( stderr
, ",gpr%u=%08x", i
, ctx
.integer
.powerpc_regs
.gpr
[i
] );
693 fprintf( stderr
, ",cr=%08x,xer=%08x",
694 ctx
.integer
.powerpc_regs
.cr
, ctx
.integer
.powerpc_regs
.xer
);
696 if (ctx
.flags
& SERVER_CTX_DEBUG_REGISTERS
)
697 for (i
= 0; i
< 8; i
++) fprintf( stderr
, ",dr%u=%08x", i
, ctx
.debug
.powerpc_regs
.dr
[i
] );
698 if (ctx
.flags
& SERVER_CTX_FLOATING_POINT
)
700 for (i
= 0; i
< 32; i
++) fprintf( stderr
, ",fpr%u=%g", i
, ctx
.fp
.powerpc_regs
.fpr
[i
] );
701 fprintf( stderr
, ",fpscr=%g", ctx
.fp
.powerpc_regs
.fpscr
);
705 if (ctx
.flags
& SERVER_CTX_CONTROL
)
706 fprintf( stderr
, ",sp=%08x,lr=%08x,pc=%08x,cpsr=%08x",
707 ctx
.ctl
.arm_regs
.sp
, ctx
.ctl
.arm_regs
.lr
,
708 ctx
.ctl
.arm_regs
.pc
, ctx
.ctl
.arm_regs
.cpsr
);
709 if (ctx
.flags
& SERVER_CTX_INTEGER
)
710 for (i
= 0; i
< 13; i
++) fprintf( stderr
, ",r%u=%08x", i
, ctx
.integer
.arm_regs
.r
[i
] );
711 if (ctx
.flags
& SERVER_CTX_DEBUG_REGISTERS
)
713 for (i
= 0; i
< 8; i
++)
714 fprintf( stderr
, ",bcr%u=%08x,bvr%u=%08x",
715 i
, ctx
.debug
.arm_regs
.bcr
[i
], i
, ctx
.debug
.arm_regs
.bvr
[i
] );
716 fprintf( stderr
, ",wcr0=%08x,wvr0=%08x",
717 ctx
.debug
.arm_regs
.wcr
[0], ctx
.debug
.arm_regs
.wvr
[0] );
719 if (ctx
.flags
& SERVER_CTX_FLOATING_POINT
)
721 for (i
= 0; i
< 32; i
++)
723 fprintf( stderr
, ",d%u=", i
);
724 dump_uint64( "", &ctx
.fp
.arm_regs
.d
[i
] );
726 fprintf( stderr
, ",fpscr=%08x", ctx
.fp
.arm_regs
.fpscr
);
730 if (ctx
.flags
& SERVER_CTX_CONTROL
)
732 dump_uint64( ",sp=", &ctx
.ctl
.arm64_regs
.sp
);
733 dump_uint64( ",pc=", &ctx
.ctl
.arm64_regs
.pc
);
734 dump_uint64( ",pstate=", &ctx
.ctl
.arm64_regs
.pstate
);
736 if (ctx
.flags
& SERVER_CTX_INTEGER
)
738 for (i
= 0; i
< 31; i
++)
740 fprintf( stderr
, ",x%u=", i
);
741 dump_uint64( "", &ctx
.integer
.arm64_regs
.x
[i
] );
744 if (ctx
.flags
& SERVER_CTX_DEBUG_REGISTERS
)
746 for (i
= 0; i
< 8; i
++)
748 fprintf( stderr
, ",bcr%u=%08x,bvr%u=", i
, ctx
.debug
.arm64_regs
.bcr
[i
], i
);
749 dump_uint64( "", &ctx
.debug
.arm64_regs
.bvr
[i
] );
751 for (i
= 0; i
< 2; i
++)
753 fprintf( stderr
, ",wcr%u=%08x,wvr%u=", i
, ctx
.debug
.arm64_regs
.wcr
[i
], i
);
754 dump_uint64( "", &ctx
.debug
.arm64_regs
.wvr
[i
] );
757 if (ctx
.flags
& SERVER_CTX_FLOATING_POINT
)
759 for (i
= 0; i
< 32; i
++)
761 fprintf( stderr
, ",q%u=", i
);
762 dump_uint64( "", &ctx
.fp
.arm64_regs
.q
[i
].high
);
763 dump_uint64( "", &ctx
.fp
.arm64_regs
.q
[i
].low
);
765 fprintf( stderr
, ",fpcr=%08x,fpsr=%08x", ctx
.fp
.arm64_regs
.fpcr
, ctx
.fp
.arm64_regs
.fpsr
);
769 fputc( '}', stderr
);
773 static void dump_varargs_debug_event( const char *prefix
, data_size_t size
)
780 fprintf( stderr
, "%s{}", prefix
);
783 size
= min( size
, sizeof(event
) );
784 memset( &event
, 0, sizeof(event
) );
785 memcpy( &event
, cur_data
, size
);
790 fprintf( stderr
, "%s{idle}", prefix
);
792 case DbgReplyPending
:
793 fprintf( stderr
, "%s{pending}", prefix
);
795 case DbgCreateThreadStateChange
:
796 fprintf( stderr
, "%s{create_thread,thread=%04x", prefix
, event
.create_thread
.handle
);
797 dump_uint64( ",start=", &event
.create_thread
.start
);
798 fputc( '}', stderr
);
800 case DbgCreateProcessStateChange
:
801 fprintf( stderr
, "%s{create_process,file=%04x,process=%04x,thread=%04x", prefix
,
802 event
.create_process
.file
, event
.create_process
.process
,
803 event
.create_process
.thread
);
804 dump_uint64( ",base=", &event
.create_process
.base
);
805 fprintf( stderr
, ",offset=%d,size=%d",
806 event
.create_process
.dbg_offset
, event
.create_process
.dbg_size
);
807 dump_uint64( ",start=", &event
.create_process
.start
);
808 fputc( '}', stderr
);
810 case DbgExitThreadStateChange
:
811 fprintf( stderr
, "%s{exit_thread,code=%d}", prefix
, event
.exit
.exit_code
);
813 case DbgExitProcessStateChange
:
814 fprintf( stderr
, "%s{exit_process,code=%d}", prefix
, event
.exit
.exit_code
);
816 case DbgExceptionStateChange
:
817 case DbgBreakpointStateChange
:
818 case DbgSingleStepStateChange
:
819 fprintf( stderr
, "%s{%s,first=%d,exc_code=%08x,flags=%08x", prefix
,
820 event
.code
== DbgBreakpointStateChange
? "breakpoint" :
821 event
.code
== DbgSingleStepStateChange
? "singlestep" : "exception",
822 event
.exception
.first
, event
.exception
.exc_code
, event
.exception
.flags
);
823 dump_uint64( ",record=", &event
.exception
.record
);
824 dump_uint64( ",address=", &event
.exception
.address
);
825 fprintf( stderr
, ",params={" );
826 event
.exception
.nb_params
= min( event
.exception
.nb_params
, EXCEPTION_MAXIMUM_PARAMETERS
);
827 for (i
= 0; i
< event
.exception
.nb_params
; i
++)
829 dump_uint64( "", &event
.exception
.params
[i
] );
830 if (i
< event
.exception
.nb_params
) fputc( ',', stderr
);
832 fprintf( stderr
, "}}" );
834 case DbgLoadDllStateChange
:
835 fprintf( stderr
, "%s{load_dll,file=%04x", prefix
, event
.load_dll
.handle
);
836 dump_uint64( ",base=", &event
.load_dll
.base
);
837 fprintf( stderr
, ",offset=%d,size=%d",
838 event
.load_dll
.dbg_offset
, event
.load_dll
.dbg_size
);
839 dump_uint64( ",name=", &event
.load_dll
.name
);
840 fputc( '}', stderr
);
842 case DbgUnloadDllStateChange
:
843 fprintf( stderr
, "%s{unload_dll", prefix
);
844 dump_uint64( ",base=", &event
.unload_dll
.base
);
845 fputc( '}', stderr
);
848 fprintf( stderr
, "%s{code=??? (%d)}", prefix
, event
.code
);
854 /* dump a unicode string contained in a buffer; helper for dump_varargs_startup_info */
855 static data_size_t
dump_inline_unicode_string( const char *prefix
, data_size_t pos
, data_size_t len
, data_size_t total_size
)
857 fputs( prefix
, stderr
);
858 if (pos
>= total_size
) return pos
;
859 if (len
> total_size
- pos
) len
= total_size
- pos
;
860 dump_strW( (const WCHAR
*)cur_data
+ pos
/sizeof(WCHAR
), len
, stderr
, "\"\"" );
861 return pos
+ (len
/ sizeof(WCHAR
)) * sizeof(WCHAR
);
864 static void dump_varargs_startup_info( const char *prefix
, data_size_t size
)
867 data_size_t pos
= sizeof(info
);
869 memset( &info
, 0, sizeof(info
) );
870 memcpy( &info
, cur_data
, min( size
, sizeof(info
) ));
873 "%s{debug_flags=%x,console_flags=%x,console=%04x,hstdin=%04x,hstdout=%04x,hstderr=%04x,"
874 "x=%u,y=%u,xsize=%u,ysize=%u,xchars=%u,ychars=%u,attribute=%02x,flags=%x,show=%u",
875 prefix
, info
.debug_flags
, info
.console_flags
, info
.console
,
876 info
.hstdin
, info
.hstdout
, info
.hstderr
, info
.x
, info
.y
, info
.xsize
, info
.ysize
,
877 info
.xchars
, info
.ychars
, info
.attribute
, info
.flags
, info
.show
);
878 pos
= dump_inline_unicode_string( ",curdir=L\"", pos
, info
.curdir_len
, size
);
879 pos
= dump_inline_unicode_string( "\",dllpath=L\"", pos
, info
.dllpath_len
, size
);
880 pos
= dump_inline_unicode_string( "\",imagepath=L\"", pos
, info
.imagepath_len
, size
);
881 pos
= dump_inline_unicode_string( "\",cmdline=L\"", pos
, info
.cmdline_len
, size
);
882 pos
= dump_inline_unicode_string( "\",title=L\"", pos
, info
.title_len
, size
);
883 pos
= dump_inline_unicode_string( "\",desktop=L\"", pos
, info
.desktop_len
, size
);
884 pos
= dump_inline_unicode_string( "\",shellinfo=L\"", pos
, info
.shellinfo_len
, size
);
885 pos
= dump_inline_unicode_string( "\",runtime=L\"", pos
, info
.runtime_len
, size
);
886 fprintf( stderr
, "\"}" );
890 static void dump_varargs_rectangles( const char *prefix
, data_size_t size
)
892 const rectangle_t
*rect
= cur_data
;
893 data_size_t len
= size
/ sizeof(*rect
);
895 fprintf( stderr
,"%s{", prefix
);
898 dump_rectangle( "", rect
++ );
899 if (--len
) fputc( ',', stderr
);
901 fputc( '}', stderr
);
905 static void dump_varargs_cursor_positions( const char *prefix
, data_size_t size
)
907 const cursor_pos_t
*pos
= cur_data
;
908 data_size_t len
= size
/ sizeof(*pos
);
910 fprintf( stderr
, "%s{", prefix
);
913 fprintf( stderr
, "{x=%d,y=%d,time=%u", pos
->x
, pos
->y
, pos
->time
);
914 dump_uint64( ",info=", &pos
->info
);
915 fputc( '}', stderr
);
917 if (--len
) fputc( ',', stderr
);
919 fputc( '}', stderr
);
923 static void dump_varargs_message_data( const char *prefix
, data_size_t size
)
925 /* FIXME: dump the structured data */
926 dump_varargs_bytes( prefix
, size
);
929 static void dump_varargs_properties( const char *prefix
, data_size_t size
)
931 const property_data_t
*prop
= cur_data
;
932 data_size_t len
= size
/ sizeof(*prop
);
934 fprintf( stderr
,"%s{", prefix
);
937 fprintf( stderr
, "{atom=%04x,str=%d", prop
->atom
, prop
->string
);
938 dump_uint64( ",data=", &prop
->data
);
939 fputc( '}', stderr
);
941 if (--len
) fputc( ',', stderr
);
943 fputc( '}', stderr
);
947 static void dump_varargs_LUID_AND_ATTRIBUTES( const char *prefix
, data_size_t size
)
949 const LUID_AND_ATTRIBUTES
*lat
= cur_data
;
950 data_size_t len
= size
/ sizeof(*lat
);
952 fprintf( stderr
,"%s{", prefix
);
955 fprintf( stderr
, "{luid=%08x%08x,attr=%x}",
956 lat
->Luid
.HighPart
, lat
->Luid
.LowPart
, lat
->Attributes
);
958 if (--len
) fputc( ',', stderr
);
960 fputc( '}', stderr
);
964 static void dump_inline_sid( const char *prefix
, const SID
*sid
, data_size_t size
)
969 if ((FIELD_OFFSET(SID
, SubAuthority
[0]) > size
) ||
970 (FIELD_OFFSET(SID
, SubAuthority
[sid
->SubAuthorityCount
]) > size
))
972 fprintf( stderr
, "<invalid sid>" );
976 fprintf( stderr
,"%s{", prefix
);
977 fprintf( stderr
, "S-%u-%u", sid
->Revision
, MAKELONG(
978 MAKEWORD( sid
->IdentifierAuthority
.Value
[5],
979 sid
->IdentifierAuthority
.Value
[4] ),
980 MAKEWORD( sid
->IdentifierAuthority
.Value
[3],
981 sid
->IdentifierAuthority
.Value
[2] ) ) );
982 for (i
= 0; i
< sid
->SubAuthorityCount
; i
++)
983 fprintf( stderr
, "-%u", sid
->SubAuthority
[i
] );
984 fputc( '}', stderr
);
987 static void dump_varargs_SID( const char *prefix
, data_size_t size
)
989 const SID
*sid
= cur_data
;
990 dump_inline_sid( prefix
, sid
, size
);
994 static void dump_inline_acl( const char *prefix
, const ACL
*acl
, data_size_t size
)
996 const ACE_HEADER
*ace
;
999 fprintf( stderr
,"%s{", prefix
);
1002 if (size
< sizeof(ACL
))
1004 fprintf( stderr
, "<invalid acl>}" );
1007 size
-= sizeof(ACL
);
1008 ace
= (const ACE_HEADER
*)(acl
+ 1);
1009 for (i
= 0; i
< acl
->AceCount
; i
++)
1011 const SID
*sid
= NULL
;
1012 data_size_t sid_size
= 0;
1014 if (size
< sizeof(ACE_HEADER
) || size
< ace
->AceSize
) break;
1015 size
-= ace
->AceSize
;
1016 if (i
!= 0) fputc( ',', stderr
);
1017 fprintf( stderr
, "{AceType=" );
1018 switch (ace
->AceType
)
1020 case ACCESS_DENIED_ACE_TYPE
:
1021 sid
= (const SID
*)&((const ACCESS_DENIED_ACE
*)ace
)->SidStart
;
1022 sid_size
= ace
->AceSize
- FIELD_OFFSET(ACCESS_DENIED_ACE
, SidStart
);
1023 fprintf( stderr
, "ACCESS_DENIED_ACE_TYPE,Mask=%x",
1024 ((const ACCESS_DENIED_ACE
*)ace
)->Mask
);
1026 case ACCESS_ALLOWED_ACE_TYPE
:
1027 sid
= (const SID
*)&((const ACCESS_ALLOWED_ACE
*)ace
)->SidStart
;
1028 sid_size
= ace
->AceSize
- FIELD_OFFSET(ACCESS_ALLOWED_ACE
, SidStart
);
1029 fprintf( stderr
, "ACCESS_ALLOWED_ACE_TYPE,Mask=%x",
1030 ((const ACCESS_ALLOWED_ACE
*)ace
)->Mask
);
1032 case SYSTEM_AUDIT_ACE_TYPE
:
1033 sid
= (const SID
*)&((const SYSTEM_AUDIT_ACE
*)ace
)->SidStart
;
1034 sid_size
= ace
->AceSize
- FIELD_OFFSET(SYSTEM_AUDIT_ACE
, SidStart
);
1035 fprintf( stderr
, "SYSTEM_AUDIT_ACE_TYPE,Mask=%x",
1036 ((const SYSTEM_AUDIT_ACE
*)ace
)->Mask
);
1038 case SYSTEM_ALARM_ACE_TYPE
:
1039 sid
= (const SID
*)&((const SYSTEM_ALARM_ACE
*)ace
)->SidStart
;
1040 sid_size
= ace
->AceSize
- FIELD_OFFSET(SYSTEM_ALARM_ACE
, SidStart
);
1041 fprintf( stderr
, "SYSTEM_ALARM_ACE_TYPE,Mask=%x",
1042 ((const SYSTEM_ALARM_ACE
*)ace
)->Mask
);
1044 case SYSTEM_MANDATORY_LABEL_ACE_TYPE
:
1045 sid
= (const SID
*)&((const SYSTEM_MANDATORY_LABEL_ACE
*)ace
)->SidStart
;
1046 sid_size
= ace
->AceSize
- FIELD_OFFSET(SYSTEM_MANDATORY_LABEL_ACE
, SidStart
);
1047 fprintf( stderr
, "SYSTEM_MANDATORY_LABEL_ACE_TYPE,Mask=%x",
1048 ((const SYSTEM_MANDATORY_LABEL_ACE
*)ace
)->Mask
);
1051 fprintf( stderr
, "unknown<%d>", ace
->AceType
);
1054 fprintf( stderr
, ",AceFlags=%x", ace
->AceFlags
);
1056 dump_inline_sid( ",Sid=", sid
, sid_size
);
1057 ace
= (const ACE_HEADER
*)((const char *)ace
+ ace
->AceSize
);
1058 fputc( '}', stderr
);
1061 fputc( '}', stderr
);
1064 static void dump_varargs_ACL( const char *prefix
, data_size_t size
)
1066 const ACL
*acl
= cur_data
;
1067 dump_inline_acl( prefix
, acl
, size
);
1068 remove_data( size
);
1071 static void dump_inline_security_descriptor( const char *prefix
, const struct security_descriptor
*sd
, data_size_t size
)
1073 fprintf( stderr
,"%s{", prefix
);
1074 if (size
>= sizeof(struct security_descriptor
))
1076 size_t offset
= sizeof(struct security_descriptor
);
1077 fprintf( stderr
, "control=%08x", sd
->control
);
1078 if ((sd
->owner_len
> FIELD_OFFSET(SID
, SubAuthority
[255])) || (offset
+ sd
->owner_len
> size
))
1081 dump_inline_sid( ",owner=", (const SID
*)((const char *)sd
+ offset
), sd
->owner_len
);
1083 fprintf( stderr
, ",owner=<not present>" );
1084 offset
+= sd
->owner_len
;
1085 if ((sd
->group_len
> FIELD_OFFSET(SID
, SubAuthority
[255])) || (offset
+ sd
->group_len
> size
))
1088 dump_inline_sid( ",group=", (const SID
*)((const char *)sd
+ offset
), sd
->group_len
);
1090 fprintf( stderr
, ",group=<not present>" );
1091 offset
+= sd
->group_len
;
1092 if ((sd
->sacl_len
>= MAX_ACL_LEN
) || (offset
+ sd
->sacl_len
> size
))
1094 dump_inline_acl( ",sacl=", (const ACL
*)((const char *)sd
+ offset
), sd
->sacl_len
);
1095 offset
+= sd
->sacl_len
;
1096 if ((sd
->dacl_len
>= MAX_ACL_LEN
) || (offset
+ sd
->dacl_len
> size
))
1098 dump_inline_acl( ",dacl=", (const ACL
*)((const char *)sd
+ offset
), sd
->dacl_len
);
1099 offset
+= sd
->dacl_len
;
1101 fputc( '}', stderr
);
1104 static void dump_varargs_security_descriptor( const char *prefix
, data_size_t size
)
1106 const struct security_descriptor
*sd
= cur_data
;
1107 dump_inline_security_descriptor( prefix
, sd
, size
);
1108 remove_data( size
);
1111 static void dump_varargs_token_groups( const char *prefix
, data_size_t size
)
1113 const struct token_groups
*tg
= cur_data
;
1115 fprintf( stderr
,"%s{", prefix
);
1116 if (size
>= sizeof(struct token_groups
))
1118 size_t offset
= sizeof(*tg
);
1119 fprintf( stderr
, "count=%08x,", tg
->count
);
1120 if (tg
->count
* sizeof(unsigned int) <= size
)
1123 const unsigned int *attr
= (const unsigned int *)(tg
+ 1);
1125 offset
+= tg
->count
* sizeof(unsigned int);
1127 fputc( '[', stderr
);
1128 for (i
= 0; i
< tg
->count
; i
++)
1130 const SID
*sid
= (const SID
*)((const char *)cur_data
+ offset
);
1132 fputc( ',', stderr
);
1133 fputc( '{', stderr
);
1134 fprintf( stderr
, "attributes=%08x", attr
[i
] );
1135 dump_inline_sid( ",sid=", sid
, size
- offset
);
1136 if ((offset
+ FIELD_OFFSET(SID
, SubAuthority
[0]) > size
) ||
1137 (offset
+ FIELD_OFFSET(SID
, SubAuthority
[sid
->SubAuthorityCount
]) > size
))
1139 offset
+= FIELD_OFFSET(SID
, SubAuthority
[sid
->SubAuthorityCount
]);
1140 fputc( '}', stderr
);
1142 fputc( ']', stderr
);
1145 fputc( '}', stderr
);
1148 static void dump_varargs_process_info( const char *prefix
, data_size_t size
)
1150 data_size_t pos
= 0;
1153 fprintf( stderr
,"%s{", prefix
);
1155 while (size
- pos
>= sizeof(struct process_info
))
1157 const struct process_info
*process
;
1158 pos
= (pos
+ 7) & ~7;
1159 process
= (const struct process_info
*)((const char *)cur_data
+ pos
);
1160 if (size
- pos
< sizeof(*process
)) break;
1161 if (pos
) fputc( ',', stderr
);
1162 dump_timeout( "{start_time=", &process
->start_time
);
1163 fprintf( stderr
, ",thread_count=%u,priority=%d,pid=%04x,parent_pid=%04x,handle_count=%u,unix_pid=%d,",
1164 process
->thread_count
, process
->priority
, process
->pid
,
1165 process
->parent_pid
, process
->handle_count
, process
->unix_pid
);
1166 pos
+= sizeof(*process
);
1168 pos
= dump_inline_unicode_string( "name=L\"", pos
, process
->name_len
, size
);
1170 pos
= (pos
+ 7) & ~7;
1171 fprintf( stderr
, "\",threads={" );
1172 for (i
= 0; i
< process
->thread_count
; i
++)
1174 const struct thread_info
*thread
= (const struct thread_info
*)((const char *)cur_data
+ pos
);
1175 if (size
- pos
< sizeof(*thread
)) break;
1176 if (i
) fputc( ',', stderr
);
1177 dump_timeout( "{start_time=", &thread
->start_time
);
1178 fprintf( stderr
, ",tid=%04x,base_priority=%d,current_priority=%d,unix_tid=%d}",
1179 thread
->tid
, thread
->base_priority
, thread
->current_priority
, thread
->unix_tid
);
1180 pos
+= sizeof(*thread
);
1182 fprintf( stderr
, "}}" );
1184 fputc( '}', stderr
);
1185 remove_data( size
);
1188 static void dump_varargs_object_attributes( const char *prefix
, data_size_t size
)
1190 const struct object_attributes
*objattr
= cur_data
;
1192 fprintf( stderr
,"%s{", prefix
);
1197 if (size
< sizeof(*objattr
) ||
1198 (size
- sizeof(*objattr
) < objattr
->sd_len
) ||
1199 (size
- sizeof(*objattr
) - objattr
->sd_len
< objattr
->name_len
))
1201 fprintf( stderr
, "***invalid***}" );
1202 remove_data( size
);
1206 fprintf( stderr
, "rootdir=%04x,attributes=%08x", objattr
->rootdir
, objattr
->attributes
);
1207 dump_inline_security_descriptor( ",sd=", (const struct security_descriptor
*)(objattr
+ 1), objattr
->sd_len
);
1208 str
= (const WCHAR
*)objattr
+ (sizeof(*objattr
) + objattr
->sd_len
) / sizeof(WCHAR
);
1209 fprintf( stderr
, ",name=L\"" );
1210 dump_strW( str
, objattr
->name_len
, stderr
, "\"\"" );
1211 fputc( '\"', stderr
);
1212 remove_data( (sizeof(*objattr
) + (objattr
->sd_len
& ~1) + (objattr
->name_len
& ~1) + 3) & ~3 );
1214 fputc( '}', stderr
);
1217 static void dump_varargs_object_type_info( const char *prefix
, data_size_t size
)
1219 const struct object_type_info
*info
= cur_data
;
1221 fprintf( stderr
,"%s{", prefix
);
1224 if (size
< sizeof(*info
) || (size
- sizeof(*info
) < info
->name_len
))
1226 fprintf( stderr
, "***invalid***}" );
1227 remove_data( size
);
1231 fprintf( stderr
, "index=%u,obj_count=%u,handle_count=%u,obj_max=%u,handle_max=%u,valid=%08x",
1232 info
->index
,info
->obj_count
, info
->handle_count
, info
->obj_max
, info
->handle_max
,
1233 info
->valid_access
);
1234 dump_generic_map( ",access=", &info
->mapping
);
1235 fprintf( stderr
, ",name=L\"" );
1236 dump_strW( (const WCHAR
*)(info
+ 1), info
->name_len
, stderr
, "\"\"" );
1237 fputc( '\"', stderr
);
1238 remove_data( min( size
, sizeof(*info
) + ((info
->name_len
+ 2) & ~3 )));
1240 fputc( '}', stderr
);
1243 static void dump_varargs_object_types_info( const char *prefix
, data_size_t size
)
1245 fprintf( stderr
,"%s{", prefix
);
1246 while (cur_size
) dump_varargs_object_type_info( ",", cur_size
);
1247 fputc( '}', stderr
);
1250 static void dump_varargs_filesystem_event( const char *prefix
, data_size_t size
)
1252 static const char * const actions
[] = {
1264 fprintf( stderr
,"%s{", prefix
);
1267 const struct filesystem_event
*event
= cur_data
;
1268 data_size_t len
= (offsetof( struct filesystem_event
, name
[event
->len
] ) + sizeof(int)-1)
1269 / sizeof(int) * sizeof(int);
1270 if (size
< len
) break;
1271 if (event
->action
< ARRAY_SIZE( actions
) && actions
[event
->action
])
1272 fprintf( stderr
, "{action=%s", actions
[event
->action
] );
1274 fprintf( stderr
, "{action=%u", event
->action
);
1275 fprintf( stderr
, ",name=\"%.*s\"}", event
->len
, event
->name
);
1278 if (size
)fputc( ',', stderr
);
1280 fputc( '}', stderr
);
1283 static void dump_varargs_pe_image_info( const char *prefix
, data_size_t size
)
1285 pe_image_info_t info
;
1289 fprintf( stderr
, "%s{}", prefix
);
1292 memset( &info
, 0, sizeof(info
) );
1293 memcpy( &info
, cur_data
, min( size
, sizeof(info
) ));
1295 fprintf( stderr
, "%s{", prefix
);
1296 dump_uint64( "base=", &info
.base
);
1297 dump_uint64( ",entry_point=", &info
.entry_point
);
1298 dump_uint64( ",map_size=", &info
.map_size
);
1299 dump_uint64( ",stack_size=", &info
.stack_size
);
1300 dump_uint64( ",stack_commit=", &info
.stack_commit
);
1301 fprintf( stderr
, ",zerobits=%08x,subsystem=%08x,subsystem_minor=%04x,subsystem_major=%04x"
1302 ",osversion_major=%04x,osversion_minor=%04x,image_charact=%04x,dll_charact=%04x,machine=%04x"
1303 ",contains_code=%u,image_flags=%02x"
1304 ",loader_flags=%08x,header_size=%08x,file_size=%08x,checksum=%08x",
1305 info
.zerobits
, info
.subsystem
, info
.subsystem_minor
, info
.subsystem_major
,
1306 info
.osversion_major
, info
.osversion_minor
, info
.image_charact
, info
.dll_charact
,
1307 info
.machine
, info
.contains_code
, info
.image_flags
, info
.loader_flags
,
1308 info
.header_size
, info
.file_size
, info
.checksum
);
1309 dump_client_cpu( ",cpu=", &info
.cpu
);
1310 fputc( '}', stderr
);
1311 remove_data( size
);
1314 static void dump_varargs_rawinput_devices(const char *prefix
, data_size_t size
)
1316 const struct rawinput_device
*device
;
1318 fprintf( stderr
, "%s{", prefix
);
1319 while (size
>= sizeof(*device
))
1322 fprintf( stderr
, "{usage_page=%04x,usage=%04x,flags=%08x,target=%08x}",
1323 device
->usage_page
, device
->usage
, device
->flags
, device
->target
);
1324 size
-= sizeof(*device
);
1325 remove_data( sizeof(*device
) );
1326 if (size
) fputc( ',', stderr
);
1328 fputc( '}', stderr
);
1331 static void dump_varargs_handle_infos( const char *prefix
, data_size_t size
)
1333 const struct handle_info
*handle
;
1335 fprintf( stderr
, "%s{", prefix
);
1336 while (size
>= sizeof(*handle
))
1339 fprintf( stderr
, "{owner=%04x,handle=%04x,access=%08x}",
1340 handle
->owner
, handle
->handle
, handle
->access
);
1341 size
-= sizeof(*handle
);
1342 remove_data( sizeof(*handle
) );
1343 if (size
) fputc( ',', stderr
);
1345 fputc( '}', stderr
);
1348 typedef void (*dump_func
)( const void *req
);
1350 /* Everything below this line is generated automatically by tools/make_requests */
1351 /* ### make_requests begin ### */
1353 static void dump_new_process_request( const struct new_process_request
*req
)
1355 fprintf( stderr
, " token=%04x", req
->token
);
1356 fprintf( stderr
, ", debug=%04x", req
->debug
);
1357 fprintf( stderr
, ", parent_process=%04x", req
->parent_process
);
1358 fprintf( stderr
, ", inherit_all=%d", req
->inherit_all
);
1359 fprintf( stderr
, ", create_flags=%08x", req
->create_flags
);
1360 fprintf( stderr
, ", socket_fd=%d", req
->socket_fd
);
1361 fprintf( stderr
, ", access=%08x", req
->access
);
1362 dump_client_cpu( ", cpu=", &req
->cpu
);
1363 fprintf( stderr
, ", info_size=%u", req
->info_size
);
1364 fprintf( stderr
, ", handles_size=%u", req
->handles_size
);
1365 dump_varargs_object_attributes( ", objattr=", cur_size
);
1366 dump_varargs_uints( ", handles=", min(cur_size
,req
->handles_size
) );
1367 dump_varargs_startup_info( ", info=", min(cur_size
,req
->info_size
) );
1368 dump_varargs_unicode_str( ", env=", cur_size
);
1371 static void dump_new_process_reply( const struct new_process_reply
*req
)
1373 fprintf( stderr
, " info=%04x", req
->info
);
1374 fprintf( stderr
, ", pid=%04x", req
->pid
);
1375 fprintf( stderr
, ", handle=%04x", req
->handle
);
1378 static void dump_exec_process_request( const struct exec_process_request
*req
)
1380 fprintf( stderr
, " socket_fd=%d", req
->socket_fd
);
1381 dump_client_cpu( ", cpu=", &req
->cpu
);
1384 static void dump_get_new_process_info_request( const struct get_new_process_info_request
*req
)
1386 fprintf( stderr
, " info=%04x", req
->info
);
1389 static void dump_get_new_process_info_reply( const struct get_new_process_info_reply
*req
)
1391 fprintf( stderr
, " success=%d", req
->success
);
1392 fprintf( stderr
, ", exit_code=%d", req
->exit_code
);
1395 static void dump_new_thread_request( const struct new_thread_request
*req
)
1397 fprintf( stderr
, " process=%04x", req
->process
);
1398 fprintf( stderr
, ", access=%08x", req
->access
);
1399 fprintf( stderr
, ", suspend=%d", req
->suspend
);
1400 fprintf( stderr
, ", request_fd=%d", req
->request_fd
);
1401 dump_varargs_object_attributes( ", objattr=", cur_size
);
1404 static void dump_new_thread_reply( const struct new_thread_reply
*req
)
1406 fprintf( stderr
, " tid=%04x", req
->tid
);
1407 fprintf( stderr
, ", handle=%04x", req
->handle
);
1410 static void dump_get_startup_info_request( const struct get_startup_info_request
*req
)
1414 static void dump_get_startup_info_reply( const struct get_startup_info_reply
*req
)
1416 fprintf( stderr
, " info_size=%u", req
->info_size
);
1417 dump_varargs_startup_info( ", info=", min(cur_size
,req
->info_size
) );
1418 dump_varargs_unicode_str( ", env=", cur_size
);
1421 static void dump_init_process_done_request( const struct init_process_done_request
*req
)
1425 static void dump_init_process_done_reply( const struct init_process_done_reply
*req
)
1427 dump_uint64( " entry=", &req
->entry
);
1428 fprintf( stderr
, ", suspend=%d", req
->suspend
);
1431 static void dump_init_first_thread_request( const struct init_first_thread_request
*req
)
1433 fprintf( stderr
, " unix_pid=%d", req
->unix_pid
);
1434 fprintf( stderr
, ", unix_tid=%d", req
->unix_tid
);
1435 fprintf( stderr
, ", debug_level=%d", req
->debug_level
);
1436 dump_uint64( ", teb=", &req
->teb
);
1437 dump_uint64( ", peb=", &req
->peb
);
1438 dump_uint64( ", ldt_copy=", &req
->ldt_copy
);
1439 fprintf( stderr
, ", reply_fd=%d", req
->reply_fd
);
1440 fprintf( stderr
, ", wait_fd=%d", req
->wait_fd
);
1441 dump_client_cpu( ", cpu=", &req
->cpu
);
1444 static void dump_init_first_thread_reply( const struct init_first_thread_reply
*req
)
1446 fprintf( stderr
, " pid=%04x", req
->pid
);
1447 fprintf( stderr
, ", tid=%04x", req
->tid
);
1448 dump_timeout( ", server_start=", &req
->server_start
);
1449 fprintf( stderr
, ", info_size=%u", req
->info_size
);
1450 fprintf( stderr
, ", all_cpus=%08x", req
->all_cpus
);
1453 static void dump_init_thread_request( const struct init_thread_request
*req
)
1455 fprintf( stderr
, " unix_tid=%d", req
->unix_tid
);
1456 fprintf( stderr
, ", reply_fd=%d", req
->reply_fd
);
1457 fprintf( stderr
, ", wait_fd=%d", req
->wait_fd
);
1458 dump_uint64( ", teb=", &req
->teb
);
1459 dump_uint64( ", entry=", &req
->entry
);
1462 static void dump_init_thread_reply( const struct init_thread_reply
*req
)
1464 fprintf( stderr
, " pid=%04x", req
->pid
);
1465 fprintf( stderr
, ", tid=%04x", req
->tid
);
1466 fprintf( stderr
, ", suspend=%d", req
->suspend
);
1469 static void dump_terminate_process_request( const struct terminate_process_request
*req
)
1471 fprintf( stderr
, " handle=%04x", req
->handle
);
1472 fprintf( stderr
, ", exit_code=%d", req
->exit_code
);
1475 static void dump_terminate_process_reply( const struct terminate_process_reply
*req
)
1477 fprintf( stderr
, " self=%d", req
->self
);
1480 static void dump_terminate_thread_request( const struct terminate_thread_request
*req
)
1482 fprintf( stderr
, " handle=%04x", req
->handle
);
1483 fprintf( stderr
, ", exit_code=%d", req
->exit_code
);
1486 static void dump_terminate_thread_reply( const struct terminate_thread_reply
*req
)
1488 fprintf( stderr
, " self=%d", req
->self
);
1491 static void dump_get_process_info_request( const struct get_process_info_request
*req
)
1493 fprintf( stderr
, " handle=%04x", req
->handle
);
1496 static void dump_get_process_info_reply( const struct get_process_info_reply
*req
)
1498 fprintf( stderr
, " pid=%04x", req
->pid
);
1499 fprintf( stderr
, ", ppid=%04x", req
->ppid
);
1500 dump_uint64( ", affinity=", &req
->affinity
);
1501 dump_uint64( ", peb=", &req
->peb
);
1502 dump_timeout( ", start_time=", &req
->start_time
);
1503 dump_timeout( ", end_time=", &req
->end_time
);
1504 fprintf( stderr
, ", exit_code=%d", req
->exit_code
);
1505 fprintf( stderr
, ", priority=%d", req
->priority
);
1506 dump_client_cpu( ", cpu=", &req
->cpu
);
1507 dump_varargs_pe_image_info( ", image=", cur_size
);
1510 static void dump_get_process_debug_info_request( const struct get_process_debug_info_request
*req
)
1512 fprintf( stderr
, " handle=%04x", req
->handle
);
1515 static void dump_get_process_debug_info_reply( const struct get_process_debug_info_reply
*req
)
1517 fprintf( stderr
, " debug=%04x", req
->debug
);
1518 fprintf( stderr
, ", debug_children=%d", req
->debug_children
);
1519 dump_varargs_pe_image_info( ", image=", cur_size
);
1522 static void dump_get_process_vm_counters_request( const struct get_process_vm_counters_request
*req
)
1524 fprintf( stderr
, " handle=%04x", req
->handle
);
1527 static void dump_get_process_vm_counters_reply( const struct get_process_vm_counters_reply
*req
)
1529 dump_uint64( " peak_virtual_size=", &req
->peak_virtual_size
);
1530 dump_uint64( ", virtual_size=", &req
->virtual_size
);
1531 dump_uint64( ", peak_working_set_size=", &req
->peak_working_set_size
);
1532 dump_uint64( ", working_set_size=", &req
->working_set_size
);
1533 dump_uint64( ", pagefile_usage=", &req
->pagefile_usage
);
1534 dump_uint64( ", peak_pagefile_usage=", &req
->peak_pagefile_usage
);
1537 static void dump_set_process_info_request( const struct set_process_info_request
*req
)
1539 fprintf( stderr
, " handle=%04x", req
->handle
);
1540 fprintf( stderr
, ", mask=%d", req
->mask
);
1541 fprintf( stderr
, ", priority=%d", req
->priority
);
1542 dump_uint64( ", affinity=", &req
->affinity
);
1545 static void dump_get_thread_info_request( const struct get_thread_info_request
*req
)
1547 fprintf( stderr
, " handle=%04x", req
->handle
);
1548 fprintf( stderr
, ", access=%08x", req
->access
);
1551 static void dump_get_thread_info_reply( const struct get_thread_info_reply
*req
)
1553 fprintf( stderr
, " pid=%04x", req
->pid
);
1554 fprintf( stderr
, ", tid=%04x", req
->tid
);
1555 dump_uint64( ", teb=", &req
->teb
);
1556 dump_uint64( ", entry_point=", &req
->entry_point
);
1557 dump_uint64( ", affinity=", &req
->affinity
);
1558 fprintf( stderr
, ", exit_code=%d", req
->exit_code
);
1559 fprintf( stderr
, ", priority=%d", req
->priority
);
1560 fprintf( stderr
, ", last=%d", req
->last
);
1561 fprintf( stderr
, ", suspend_count=%d", req
->suspend_count
);
1562 fprintf( stderr
, ", dbg_hidden=%d", req
->dbg_hidden
);
1563 fprintf( stderr
, ", desc_len=%u", req
->desc_len
);
1564 dump_varargs_unicode_str( ", desc=", cur_size
);
1567 static void dump_get_thread_times_request( const struct get_thread_times_request
*req
)
1569 fprintf( stderr
, " handle=%04x", req
->handle
);
1572 static void dump_get_thread_times_reply( const struct get_thread_times_reply
*req
)
1574 dump_timeout( " creation_time=", &req
->creation_time
);
1575 dump_timeout( ", exit_time=", &req
->exit_time
);
1576 fprintf( stderr
, ", unix_pid=%d", req
->unix_pid
);
1577 fprintf( stderr
, ", unix_tid=%d", req
->unix_tid
);
1580 static void dump_set_thread_info_request( const struct set_thread_info_request
*req
)
1582 fprintf( stderr
, " handle=%04x", req
->handle
);
1583 fprintf( stderr
, ", mask=%d", req
->mask
);
1584 fprintf( stderr
, ", priority=%d", req
->priority
);
1585 dump_uint64( ", affinity=", &req
->affinity
);
1586 dump_uint64( ", entry_point=", &req
->entry_point
);
1587 fprintf( stderr
, ", token=%04x", req
->token
);
1588 dump_varargs_unicode_str( ", desc=", cur_size
);
1591 static void dump_get_dll_info_request( const struct get_dll_info_request
*req
)
1593 fprintf( stderr
, " handle=%04x", req
->handle
);
1594 dump_uint64( ", base_address=", &req
->base_address
);
1597 static void dump_get_dll_info_reply( const struct get_dll_info_reply
*req
)
1599 dump_uint64( " entry_point=", &req
->entry_point
);
1600 fprintf( stderr
, ", filename_len=%u", req
->filename_len
);
1601 dump_varargs_unicode_str( ", filename=", cur_size
);
1604 static void dump_suspend_thread_request( const struct suspend_thread_request
*req
)
1606 fprintf( stderr
, " handle=%04x", req
->handle
);
1609 static void dump_suspend_thread_reply( const struct suspend_thread_reply
*req
)
1611 fprintf( stderr
, " count=%d", req
->count
);
1614 static void dump_resume_thread_request( const struct resume_thread_request
*req
)
1616 fprintf( stderr
, " handle=%04x", req
->handle
);
1619 static void dump_resume_thread_reply( const struct resume_thread_reply
*req
)
1621 fprintf( stderr
, " count=%d", req
->count
);
1624 static void dump_load_dll_request( const struct load_dll_request
*req
)
1626 dump_uint64( " base=", &req
->base
);
1627 dump_uint64( ", name=", &req
->name
);
1628 dump_varargs_unicode_str( ", filename=", cur_size
);
1631 static void dump_unload_dll_request( const struct unload_dll_request
*req
)
1633 dump_uint64( " base=", &req
->base
);
1636 static void dump_queue_apc_request( const struct queue_apc_request
*req
)
1638 fprintf( stderr
, " handle=%04x", req
->handle
);
1639 dump_apc_call( ", call=", &req
->call
);
1642 static void dump_queue_apc_reply( const struct queue_apc_reply
*req
)
1644 fprintf( stderr
, " handle=%04x", req
->handle
);
1645 fprintf( stderr
, ", self=%d", req
->self
);
1648 static void dump_get_apc_result_request( const struct get_apc_result_request
*req
)
1650 fprintf( stderr
, " handle=%04x", req
->handle
);
1653 static void dump_get_apc_result_reply( const struct get_apc_result_reply
*req
)
1655 dump_apc_result( " result=", &req
->result
);
1658 static void dump_close_handle_request( const struct close_handle_request
*req
)
1660 fprintf( stderr
, " handle=%04x", req
->handle
);
1663 static void dump_set_handle_info_request( const struct set_handle_info_request
*req
)
1665 fprintf( stderr
, " handle=%04x", req
->handle
);
1666 fprintf( stderr
, ", flags=%d", req
->flags
);
1667 fprintf( stderr
, ", mask=%d", req
->mask
);
1670 static void dump_set_handle_info_reply( const struct set_handle_info_reply
*req
)
1672 fprintf( stderr
, " old_flags=%d", req
->old_flags
);
1675 static void dump_dup_handle_request( const struct dup_handle_request
*req
)
1677 fprintf( stderr
, " src_process=%04x", req
->src_process
);
1678 fprintf( stderr
, ", src_handle=%04x", req
->src_handle
);
1679 fprintf( stderr
, ", dst_process=%04x", req
->dst_process
);
1680 fprintf( stderr
, ", access=%08x", req
->access
);
1681 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1682 fprintf( stderr
, ", options=%08x", req
->options
);
1685 static void dump_dup_handle_reply( const struct dup_handle_reply
*req
)
1687 fprintf( stderr
, " handle=%04x", req
->handle
);
1688 fprintf( stderr
, ", self=%d", req
->self
);
1689 fprintf( stderr
, ", closed=%d", req
->closed
);
1692 static void dump_make_temporary_request( const struct make_temporary_request
*req
)
1694 fprintf( stderr
, " handle=%04x", req
->handle
);
1697 static void dump_open_process_request( const struct open_process_request
*req
)
1699 fprintf( stderr
, " pid=%04x", req
->pid
);
1700 fprintf( stderr
, ", access=%08x", req
->access
);
1701 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1704 static void dump_open_process_reply( const struct open_process_reply
*req
)
1706 fprintf( stderr
, " handle=%04x", req
->handle
);
1709 static void dump_open_thread_request( const struct open_thread_request
*req
)
1711 fprintf( stderr
, " tid=%04x", req
->tid
);
1712 fprintf( stderr
, ", access=%08x", req
->access
);
1713 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1716 static void dump_open_thread_reply( const struct open_thread_reply
*req
)
1718 fprintf( stderr
, " handle=%04x", req
->handle
);
1721 static void dump_select_request( const struct select_request
*req
)
1723 fprintf( stderr
, " flags=%d", req
->flags
);
1724 dump_uint64( ", cookie=", &req
->cookie
);
1725 dump_abstime( ", timeout=", &req
->timeout
);
1726 fprintf( stderr
, ", size=%u", req
->size
);
1727 fprintf( stderr
, ", prev_apc=%04x", req
->prev_apc
);
1728 dump_varargs_apc_result( ", result=", cur_size
);
1729 dump_varargs_select_op( ", data=", min(cur_size
,req
->size
) );
1730 dump_varargs_context( ", context=", cur_size
);
1733 static void dump_select_reply( const struct select_reply
*req
)
1735 dump_apc_call( " call=", &req
->call
);
1736 fprintf( stderr
, ", apc_handle=%04x", req
->apc_handle
);
1737 dump_varargs_context( ", context=", cur_size
);
1740 static void dump_create_event_request( const struct create_event_request
*req
)
1742 fprintf( stderr
, " access=%08x", req
->access
);
1743 fprintf( stderr
, ", manual_reset=%d", req
->manual_reset
);
1744 fprintf( stderr
, ", initial_state=%d", req
->initial_state
);
1745 dump_varargs_object_attributes( ", objattr=", cur_size
);
1748 static void dump_create_event_reply( const struct create_event_reply
*req
)
1750 fprintf( stderr
, " handle=%04x", req
->handle
);
1753 static void dump_event_op_request( const struct event_op_request
*req
)
1755 fprintf( stderr
, " handle=%04x", req
->handle
);
1756 fprintf( stderr
, ", op=%d", req
->op
);
1759 static void dump_event_op_reply( const struct event_op_reply
*req
)
1761 fprintf( stderr
, " state=%d", req
->state
);
1764 static void dump_query_event_request( const struct query_event_request
*req
)
1766 fprintf( stderr
, " handle=%04x", req
->handle
);
1769 static void dump_query_event_reply( const struct query_event_reply
*req
)
1771 fprintf( stderr
, " manual_reset=%d", req
->manual_reset
);
1772 fprintf( stderr
, ", state=%d", req
->state
);
1775 static void dump_open_event_request( const struct open_event_request
*req
)
1777 fprintf( stderr
, " access=%08x", req
->access
);
1778 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1779 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
1780 dump_varargs_unicode_str( ", name=", cur_size
);
1783 static void dump_open_event_reply( const struct open_event_reply
*req
)
1785 fprintf( stderr
, " handle=%04x", req
->handle
);
1788 static void dump_create_keyed_event_request( const struct create_keyed_event_request
*req
)
1790 fprintf( stderr
, " access=%08x", req
->access
);
1791 dump_varargs_object_attributes( ", objattr=", cur_size
);
1794 static void dump_create_keyed_event_reply( const struct create_keyed_event_reply
*req
)
1796 fprintf( stderr
, " handle=%04x", req
->handle
);
1799 static void dump_open_keyed_event_request( const struct open_keyed_event_request
*req
)
1801 fprintf( stderr
, " access=%08x", req
->access
);
1802 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1803 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
1804 dump_varargs_unicode_str( ", name=", cur_size
);
1807 static void dump_open_keyed_event_reply( const struct open_keyed_event_reply
*req
)
1809 fprintf( stderr
, " handle=%04x", req
->handle
);
1812 static void dump_create_mutex_request( const struct create_mutex_request
*req
)
1814 fprintf( stderr
, " access=%08x", req
->access
);
1815 fprintf( stderr
, ", owned=%d", req
->owned
);
1816 dump_varargs_object_attributes( ", objattr=", cur_size
);
1819 static void dump_create_mutex_reply( const struct create_mutex_reply
*req
)
1821 fprintf( stderr
, " handle=%04x", req
->handle
);
1824 static void dump_release_mutex_request( const struct release_mutex_request
*req
)
1826 fprintf( stderr
, " handle=%04x", req
->handle
);
1829 static void dump_release_mutex_reply( const struct release_mutex_reply
*req
)
1831 fprintf( stderr
, " prev_count=%08x", req
->prev_count
);
1834 static void dump_open_mutex_request( const struct open_mutex_request
*req
)
1836 fprintf( stderr
, " access=%08x", req
->access
);
1837 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1838 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
1839 dump_varargs_unicode_str( ", name=", cur_size
);
1842 static void dump_open_mutex_reply( const struct open_mutex_reply
*req
)
1844 fprintf( stderr
, " handle=%04x", req
->handle
);
1847 static void dump_query_mutex_request( const struct query_mutex_request
*req
)
1849 fprintf( stderr
, " handle=%04x", req
->handle
);
1852 static void dump_query_mutex_reply( const struct query_mutex_reply
*req
)
1854 fprintf( stderr
, " count=%08x", req
->count
);
1855 fprintf( stderr
, ", owned=%d", req
->owned
);
1856 fprintf( stderr
, ", abandoned=%d", req
->abandoned
);
1859 static void dump_create_semaphore_request( const struct create_semaphore_request
*req
)
1861 fprintf( stderr
, " access=%08x", req
->access
);
1862 fprintf( stderr
, ", initial=%08x", req
->initial
);
1863 fprintf( stderr
, ", max=%08x", req
->max
);
1864 dump_varargs_object_attributes( ", objattr=", cur_size
);
1867 static void dump_create_semaphore_reply( const struct create_semaphore_reply
*req
)
1869 fprintf( stderr
, " handle=%04x", req
->handle
);
1872 static void dump_release_semaphore_request( const struct release_semaphore_request
*req
)
1874 fprintf( stderr
, " handle=%04x", req
->handle
);
1875 fprintf( stderr
, ", count=%08x", req
->count
);
1878 static void dump_release_semaphore_reply( const struct release_semaphore_reply
*req
)
1880 fprintf( stderr
, " prev_count=%08x", req
->prev_count
);
1883 static void dump_query_semaphore_request( const struct query_semaphore_request
*req
)
1885 fprintf( stderr
, " handle=%04x", req
->handle
);
1888 static void dump_query_semaphore_reply( const struct query_semaphore_reply
*req
)
1890 fprintf( stderr
, " current=%08x", req
->current
);
1891 fprintf( stderr
, ", max=%08x", req
->max
);
1894 static void dump_open_semaphore_request( const struct open_semaphore_request
*req
)
1896 fprintf( stderr
, " access=%08x", req
->access
);
1897 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1898 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
1899 dump_varargs_unicode_str( ", name=", cur_size
);
1902 static void dump_open_semaphore_reply( const struct open_semaphore_reply
*req
)
1904 fprintf( stderr
, " handle=%04x", req
->handle
);
1907 static void dump_create_file_request( const struct create_file_request
*req
)
1909 fprintf( stderr
, " access=%08x", req
->access
);
1910 fprintf( stderr
, ", sharing=%08x", req
->sharing
);
1911 fprintf( stderr
, ", create=%d", req
->create
);
1912 fprintf( stderr
, ", options=%08x", req
->options
);
1913 fprintf( stderr
, ", attrs=%08x", req
->attrs
);
1914 dump_varargs_object_attributes( ", objattr=", cur_size
);
1915 dump_varargs_string( ", filename=", cur_size
);
1918 static void dump_create_file_reply( const struct create_file_reply
*req
)
1920 fprintf( stderr
, " handle=%04x", req
->handle
);
1923 static void dump_open_file_object_request( const struct open_file_object_request
*req
)
1925 fprintf( stderr
, " access=%08x", req
->access
);
1926 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1927 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
1928 fprintf( stderr
, ", sharing=%08x", req
->sharing
);
1929 fprintf( stderr
, ", options=%08x", req
->options
);
1930 dump_varargs_unicode_str( ", filename=", cur_size
);
1933 static void dump_open_file_object_reply( const struct open_file_object_reply
*req
)
1935 fprintf( stderr
, " handle=%04x", req
->handle
);
1938 static void dump_alloc_file_handle_request( const struct alloc_file_handle_request
*req
)
1940 fprintf( stderr
, " access=%08x", req
->access
);
1941 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1942 fprintf( stderr
, ", fd=%d", req
->fd
);
1945 static void dump_alloc_file_handle_reply( const struct alloc_file_handle_reply
*req
)
1947 fprintf( stderr
, " handle=%04x", req
->handle
);
1950 static void dump_get_handle_unix_name_request( const struct get_handle_unix_name_request
*req
)
1952 fprintf( stderr
, " handle=%04x", req
->handle
);
1955 static void dump_get_handle_unix_name_reply( const struct get_handle_unix_name_reply
*req
)
1957 fprintf( stderr
, " name_len=%u", req
->name_len
);
1958 dump_varargs_string( ", name=", cur_size
);
1961 static void dump_get_handle_fd_request( const struct get_handle_fd_request
*req
)
1963 fprintf( stderr
, " handle=%04x", req
->handle
);
1966 static void dump_get_handle_fd_reply( const struct get_handle_fd_reply
*req
)
1968 fprintf( stderr
, " type=%d", req
->type
);
1969 fprintf( stderr
, ", cacheable=%d", req
->cacheable
);
1970 fprintf( stderr
, ", access=%08x", req
->access
);
1971 fprintf( stderr
, ", options=%08x", req
->options
);
1974 static void dump_get_directory_cache_entry_request( const struct get_directory_cache_entry_request
*req
)
1976 fprintf( stderr
, " handle=%04x", req
->handle
);
1979 static void dump_get_directory_cache_entry_reply( const struct get_directory_cache_entry_reply
*req
)
1981 fprintf( stderr
, " entry=%d", req
->entry
);
1982 dump_varargs_ints( ", free=", cur_size
);
1985 static void dump_flush_request( const struct flush_request
*req
)
1987 dump_async_data( " async=", &req
->async
);
1990 static void dump_flush_reply( const struct flush_reply
*req
)
1992 fprintf( stderr
, " event=%04x", req
->event
);
1995 static void dump_get_file_info_request( const struct get_file_info_request
*req
)
1997 fprintf( stderr
, " handle=%04x", req
->handle
);
1998 fprintf( stderr
, ", info_class=%08x", req
->info_class
);
2001 static void dump_get_file_info_reply( const struct get_file_info_reply
*req
)
2003 dump_varargs_bytes( " data=", cur_size
);
2006 static void dump_get_volume_info_request( const struct get_volume_info_request
*req
)
2008 fprintf( stderr
, " handle=%04x", req
->handle
);
2009 fprintf( stderr
, ", info_class=%08x", req
->info_class
);
2012 static void dump_get_volume_info_reply( const struct get_volume_info_reply
*req
)
2014 dump_varargs_bytes( " data=", cur_size
);
2017 static void dump_lock_file_request( const struct lock_file_request
*req
)
2019 fprintf( stderr
, " handle=%04x", req
->handle
);
2020 dump_uint64( ", offset=", &req
->offset
);
2021 dump_uint64( ", count=", &req
->count
);
2022 fprintf( stderr
, ", shared=%d", req
->shared
);
2023 fprintf( stderr
, ", wait=%d", req
->wait
);
2026 static void dump_lock_file_reply( const struct lock_file_reply
*req
)
2028 fprintf( stderr
, " handle=%04x", req
->handle
);
2029 fprintf( stderr
, ", overlapped=%d", req
->overlapped
);
2032 static void dump_unlock_file_request( const struct unlock_file_request
*req
)
2034 fprintf( stderr
, " handle=%04x", req
->handle
);
2035 dump_uint64( ", offset=", &req
->offset
);
2036 dump_uint64( ", count=", &req
->count
);
2039 static void dump_set_socket_event_request( const struct set_socket_event_request
*req
)
2041 fprintf( stderr
, " handle=%04x", req
->handle
);
2042 fprintf( stderr
, ", mask=%08x", req
->mask
);
2043 fprintf( stderr
, ", event=%04x", req
->event
);
2044 fprintf( stderr
, ", window=%08x", req
->window
);
2045 fprintf( stderr
, ", msg=%08x", req
->msg
);
2048 static void dump_get_socket_event_request( const struct get_socket_event_request
*req
)
2050 fprintf( stderr
, " handle=%04x", req
->handle
);
2051 fprintf( stderr
, ", service=%d", req
->service
);
2052 fprintf( stderr
, ", c_event=%04x", req
->c_event
);
2055 static void dump_get_socket_event_reply( const struct get_socket_event_reply
*req
)
2057 fprintf( stderr
, " mask=%08x", req
->mask
);
2058 fprintf( stderr
, ", pmask=%08x", req
->pmask
);
2059 fprintf( stderr
, ", state=%08x", req
->state
);
2060 dump_varargs_ints( ", errors=", cur_size
);
2063 static void dump_get_socket_info_request( const struct get_socket_info_request
*req
)
2065 fprintf( stderr
, " handle=%04x", req
->handle
);
2068 static void dump_get_socket_info_reply( const struct get_socket_info_reply
*req
)
2070 fprintf( stderr
, " family=%d", req
->family
);
2071 fprintf( stderr
, ", type=%d", req
->type
);
2072 fprintf( stderr
, ", protocol=%d", req
->protocol
);
2075 static void dump_enable_socket_event_request( const struct enable_socket_event_request
*req
)
2077 fprintf( stderr
, " handle=%04x", req
->handle
);
2078 fprintf( stderr
, ", mask=%08x", req
->mask
);
2079 fprintf( stderr
, ", sstate=%08x", req
->sstate
);
2080 fprintf( stderr
, ", cstate=%08x", req
->cstate
);
2083 static void dump_set_socket_deferred_request( const struct set_socket_deferred_request
*req
)
2085 fprintf( stderr
, " handle=%04x", req
->handle
);
2086 fprintf( stderr
, ", deferred=%04x", req
->deferred
);
2089 static void dump_get_next_console_request_request( const struct get_next_console_request_request
*req
)
2091 fprintf( stderr
, " handle=%04x", req
->handle
);
2092 fprintf( stderr
, ", signal=%d", req
->signal
);
2093 fprintf( stderr
, ", read=%d", req
->read
);
2094 fprintf( stderr
, ", status=%08x", req
->status
);
2095 dump_varargs_bytes( ", out_data=", cur_size
);
2098 static void dump_get_next_console_request_reply( const struct get_next_console_request_reply
*req
)
2100 fprintf( stderr
, " code=%08x", req
->code
);
2101 fprintf( stderr
, ", output=%08x", req
->output
);
2102 fprintf( stderr
, ", out_size=%u", req
->out_size
);
2103 dump_varargs_bytes( ", in_data=", cur_size
);
2106 static void dump_read_directory_changes_request( const struct read_directory_changes_request
*req
)
2108 fprintf( stderr
, " filter=%08x", req
->filter
);
2109 fprintf( stderr
, ", subtree=%d", req
->subtree
);
2110 fprintf( stderr
, ", want_data=%d", req
->want_data
);
2111 dump_async_data( ", async=", &req
->async
);
2114 static void dump_read_change_request( const struct read_change_request
*req
)
2116 fprintf( stderr
, " handle=%04x", req
->handle
);
2119 static void dump_read_change_reply( const struct read_change_reply
*req
)
2121 dump_varargs_filesystem_event( " events=", cur_size
);
2124 static void dump_create_mapping_request( const struct create_mapping_request
*req
)
2126 fprintf( stderr
, " access=%08x", req
->access
);
2127 fprintf( stderr
, ", flags=%08x", req
->flags
);
2128 fprintf( stderr
, ", file_access=%08x", req
->file_access
);
2129 dump_uint64( ", size=", &req
->size
);
2130 fprintf( stderr
, ", file_handle=%04x", req
->file_handle
);
2131 dump_varargs_object_attributes( ", objattr=", cur_size
);
2134 static void dump_create_mapping_reply( const struct create_mapping_reply
*req
)
2136 fprintf( stderr
, " handle=%04x", req
->handle
);
2139 static void dump_open_mapping_request( const struct open_mapping_request
*req
)
2141 fprintf( stderr
, " access=%08x", req
->access
);
2142 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
2143 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
2144 dump_varargs_unicode_str( ", name=", cur_size
);
2147 static void dump_open_mapping_reply( const struct open_mapping_reply
*req
)
2149 fprintf( stderr
, " handle=%04x", req
->handle
);
2152 static void dump_get_mapping_info_request( const struct get_mapping_info_request
*req
)
2154 fprintf( stderr
, " handle=%04x", req
->handle
);
2155 fprintf( stderr
, ", access=%08x", req
->access
);
2158 static void dump_get_mapping_info_reply( const struct get_mapping_info_reply
*req
)
2160 dump_uint64( " size=", &req
->size
);
2161 fprintf( stderr
, ", flags=%08x", req
->flags
);
2162 fprintf( stderr
, ", shared_file=%04x", req
->shared_file
);
2163 dump_varargs_pe_image_info( ", image=", cur_size
);
2166 static void dump_map_view_request( const struct map_view_request
*req
)
2168 fprintf( stderr
, " mapping=%04x", req
->mapping
);
2169 fprintf( stderr
, ", access=%08x", req
->access
);
2170 dump_uint64( ", base=", &req
->base
);
2171 dump_uint64( ", size=", &req
->size
);
2172 dump_uint64( ", start=", &req
->start
);
2173 dump_varargs_pe_image_info( ", image=", cur_size
);
2176 static void dump_unmap_view_request( const struct unmap_view_request
*req
)
2178 dump_uint64( " base=", &req
->base
);
2181 static void dump_get_mapping_committed_range_request( const struct get_mapping_committed_range_request
*req
)
2183 dump_uint64( " base=", &req
->base
);
2184 dump_uint64( ", offset=", &req
->offset
);
2187 static void dump_get_mapping_committed_range_reply( const struct get_mapping_committed_range_reply
*req
)
2189 dump_uint64( " size=", &req
->size
);
2190 fprintf( stderr
, ", committed=%d", req
->committed
);
2193 static void dump_add_mapping_committed_range_request( const struct add_mapping_committed_range_request
*req
)
2195 dump_uint64( " base=", &req
->base
);
2196 dump_uint64( ", offset=", &req
->offset
);
2197 dump_uint64( ", size=", &req
->size
);
2200 static void dump_is_same_mapping_request( const struct is_same_mapping_request
*req
)
2202 dump_uint64( " base1=", &req
->base1
);
2203 dump_uint64( ", base2=", &req
->base2
);
2206 static void dump_list_processes_request( const struct list_processes_request
*req
)
2210 static void dump_list_processes_reply( const struct list_processes_reply
*req
)
2212 fprintf( stderr
, " info_size=%u", req
->info_size
);
2213 fprintf( stderr
, ", process_count=%d", req
->process_count
);
2214 dump_varargs_process_info( ", data=", min(cur_size
,req
->info_size
) );
2217 static void dump_create_debug_obj_request( const struct create_debug_obj_request
*req
)
2219 fprintf( stderr
, " access=%08x", req
->access
);
2220 fprintf( stderr
, ", flags=%08x", req
->flags
);
2221 dump_varargs_object_attributes( ", objattr=", cur_size
);
2224 static void dump_create_debug_obj_reply( const struct create_debug_obj_reply
*req
)
2226 fprintf( stderr
, " handle=%04x", req
->handle
);
2229 static void dump_wait_debug_event_request( const struct wait_debug_event_request
*req
)
2231 fprintf( stderr
, " debug=%04x", req
->debug
);
2234 static void dump_wait_debug_event_reply( const struct wait_debug_event_reply
*req
)
2236 fprintf( stderr
, " pid=%04x", req
->pid
);
2237 fprintf( stderr
, ", tid=%04x", req
->tid
);
2238 dump_varargs_debug_event( ", event=", cur_size
);
2241 static void dump_queue_exception_event_request( const struct queue_exception_event_request
*req
)
2243 fprintf( stderr
, " first=%d", req
->first
);
2244 fprintf( stderr
, ", code=%08x", req
->code
);
2245 fprintf( stderr
, ", flags=%08x", req
->flags
);
2246 dump_uint64( ", record=", &req
->record
);
2247 dump_uint64( ", address=", &req
->address
);
2248 fprintf( stderr
, ", len=%u", req
->len
);
2249 dump_varargs_uints64( ", params=", min(cur_size
,req
->len
) );
2252 static void dump_queue_exception_event_reply( const struct queue_exception_event_reply
*req
)
2254 fprintf( stderr
, " handle=%04x", req
->handle
);
2257 static void dump_get_exception_status_request( const struct get_exception_status_request
*req
)
2259 fprintf( stderr
, " handle=%04x", req
->handle
);
2262 static void dump_continue_debug_event_request( const struct continue_debug_event_request
*req
)
2264 fprintf( stderr
, " debug=%04x", req
->debug
);
2265 fprintf( stderr
, ", pid=%04x", req
->pid
);
2266 fprintf( stderr
, ", tid=%04x", req
->tid
);
2267 fprintf( stderr
, ", status=%08x", req
->status
);
2270 static void dump_debug_process_request( const struct debug_process_request
*req
)
2272 fprintf( stderr
, " handle=%04x", req
->handle
);
2273 fprintf( stderr
, ", debug=%04x", req
->debug
);
2274 fprintf( stderr
, ", attach=%d", req
->attach
);
2277 static void dump_set_debug_obj_info_request( const struct set_debug_obj_info_request
*req
)
2279 fprintf( stderr
, " debug=%04x", req
->debug
);
2280 fprintf( stderr
, ", flags=%08x", req
->flags
);
2283 static void dump_read_process_memory_request( const struct read_process_memory_request
*req
)
2285 fprintf( stderr
, " handle=%04x", req
->handle
);
2286 dump_uint64( ", addr=", &req
->addr
);
2289 static void dump_read_process_memory_reply( const struct read_process_memory_reply
*req
)
2291 dump_varargs_bytes( " data=", cur_size
);
2294 static void dump_write_process_memory_request( const struct write_process_memory_request
*req
)
2296 fprintf( stderr
, " handle=%04x", req
->handle
);
2297 dump_uint64( ", addr=", &req
->addr
);
2298 dump_varargs_bytes( ", data=", cur_size
);
2301 static void dump_create_key_request( const struct create_key_request
*req
)
2303 fprintf( stderr
, " access=%08x", req
->access
);
2304 fprintf( stderr
, ", options=%08x", req
->options
);
2305 dump_varargs_object_attributes( ", objattr=", cur_size
);
2306 dump_varargs_unicode_str( ", class=", cur_size
);
2309 static void dump_create_key_reply( const struct create_key_reply
*req
)
2311 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2312 fprintf( stderr
, ", created=%d", req
->created
);
2315 static void dump_open_key_request( const struct open_key_request
*req
)
2317 fprintf( stderr
, " parent=%04x", req
->parent
);
2318 fprintf( stderr
, ", access=%08x", req
->access
);
2319 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
2320 dump_varargs_unicode_str( ", name=", cur_size
);
2323 static void dump_open_key_reply( const struct open_key_reply
*req
)
2325 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2328 static void dump_delete_key_request( const struct delete_key_request
*req
)
2330 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2333 static void dump_flush_key_request( const struct flush_key_request
*req
)
2335 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2338 static void dump_enum_key_request( const struct enum_key_request
*req
)
2340 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2341 fprintf( stderr
, ", index=%d", req
->index
);
2342 fprintf( stderr
, ", info_class=%d", req
->info_class
);
2345 static void dump_enum_key_reply( const struct enum_key_reply
*req
)
2347 fprintf( stderr
, " subkeys=%d", req
->subkeys
);
2348 fprintf( stderr
, ", max_subkey=%d", req
->max_subkey
);
2349 fprintf( stderr
, ", max_class=%d", req
->max_class
);
2350 fprintf( stderr
, ", values=%d", req
->values
);
2351 fprintf( stderr
, ", max_value=%d", req
->max_value
);
2352 fprintf( stderr
, ", max_data=%d", req
->max_data
);
2353 dump_timeout( ", modif=", &req
->modif
);
2354 fprintf( stderr
, ", total=%u", req
->total
);
2355 fprintf( stderr
, ", namelen=%u", req
->namelen
);
2356 dump_varargs_unicode_str( ", name=", min(cur_size
,req
->namelen
) );
2357 dump_varargs_unicode_str( ", class=", cur_size
);
2360 static void dump_set_key_value_request( const struct set_key_value_request
*req
)
2362 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2363 fprintf( stderr
, ", type=%d", req
->type
);
2364 fprintf( stderr
, ", namelen=%u", req
->namelen
);
2365 dump_varargs_unicode_str( ", name=", min(cur_size
,req
->namelen
) );
2366 dump_varargs_bytes( ", data=", cur_size
);
2369 static void dump_get_key_value_request( const struct get_key_value_request
*req
)
2371 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2372 dump_varargs_unicode_str( ", name=", cur_size
);
2375 static void dump_get_key_value_reply( const struct get_key_value_reply
*req
)
2377 fprintf( stderr
, " type=%d", req
->type
);
2378 fprintf( stderr
, ", total=%u", req
->total
);
2379 dump_varargs_bytes( ", data=", cur_size
);
2382 static void dump_enum_key_value_request( const struct enum_key_value_request
*req
)
2384 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2385 fprintf( stderr
, ", index=%d", req
->index
);
2386 fprintf( stderr
, ", info_class=%d", req
->info_class
);
2389 static void dump_enum_key_value_reply( const struct enum_key_value_reply
*req
)
2391 fprintf( stderr
, " type=%d", req
->type
);
2392 fprintf( stderr
, ", total=%u", req
->total
);
2393 fprintf( stderr
, ", namelen=%u", req
->namelen
);
2394 dump_varargs_unicode_str( ", name=", min(cur_size
,req
->namelen
) );
2395 dump_varargs_bytes( ", data=", cur_size
);
2398 static void dump_delete_key_value_request( const struct delete_key_value_request
*req
)
2400 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2401 dump_varargs_unicode_str( ", name=", cur_size
);
2404 static void dump_load_registry_request( const struct load_registry_request
*req
)
2406 fprintf( stderr
, " file=%04x", req
->file
);
2407 dump_varargs_object_attributes( ", objattr=", cur_size
);
2410 static void dump_unload_registry_request( const struct unload_registry_request
*req
)
2412 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2415 static void dump_save_registry_request( const struct save_registry_request
*req
)
2417 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2418 fprintf( stderr
, ", file=%04x", req
->file
);
2421 static void dump_set_registry_notification_request( const struct set_registry_notification_request
*req
)
2423 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2424 fprintf( stderr
, ", event=%04x", req
->event
);
2425 fprintf( stderr
, ", subtree=%d", req
->subtree
);
2426 fprintf( stderr
, ", filter=%08x", req
->filter
);
2429 static void dump_create_timer_request( const struct create_timer_request
*req
)
2431 fprintf( stderr
, " access=%08x", req
->access
);
2432 fprintf( stderr
, ", manual=%d", req
->manual
);
2433 dump_varargs_object_attributes( ", objattr=", cur_size
);
2436 static void dump_create_timer_reply( const struct create_timer_reply
*req
)
2438 fprintf( stderr
, " handle=%04x", req
->handle
);
2441 static void dump_open_timer_request( const struct open_timer_request
*req
)
2443 fprintf( stderr
, " access=%08x", req
->access
);
2444 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
2445 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
2446 dump_varargs_unicode_str( ", name=", cur_size
);
2449 static void dump_open_timer_reply( const struct open_timer_reply
*req
)
2451 fprintf( stderr
, " handle=%04x", req
->handle
);
2454 static void dump_set_timer_request( const struct set_timer_request
*req
)
2456 fprintf( stderr
, " handle=%04x", req
->handle
);
2457 dump_timeout( ", expire=", &req
->expire
);
2458 dump_uint64( ", callback=", &req
->callback
);
2459 dump_uint64( ", arg=", &req
->arg
);
2460 fprintf( stderr
, ", period=%d", req
->period
);
2463 static void dump_set_timer_reply( const struct set_timer_reply
*req
)
2465 fprintf( stderr
, " signaled=%d", req
->signaled
);
2468 static void dump_cancel_timer_request( const struct cancel_timer_request
*req
)
2470 fprintf( stderr
, " handle=%04x", req
->handle
);
2473 static void dump_cancel_timer_reply( const struct cancel_timer_reply
*req
)
2475 fprintf( stderr
, " signaled=%d", req
->signaled
);
2478 static void dump_get_timer_info_request( const struct get_timer_info_request
*req
)
2480 fprintf( stderr
, " handle=%04x", req
->handle
);
2483 static void dump_get_timer_info_reply( const struct get_timer_info_reply
*req
)
2485 dump_timeout( " when=", &req
->when
);
2486 fprintf( stderr
, ", signaled=%d", req
->signaled
);
2489 static void dump_get_thread_context_request( const struct get_thread_context_request
*req
)
2491 fprintf( stderr
, " handle=%04x", req
->handle
);
2492 fprintf( stderr
, ", flags=%08x", req
->flags
);
2495 static void dump_get_thread_context_reply( const struct get_thread_context_reply
*req
)
2497 fprintf( stderr
, " self=%d", req
->self
);
2498 fprintf( stderr
, ", handle=%04x", req
->handle
);
2499 dump_varargs_context( ", context=", cur_size
);
2502 static void dump_set_thread_context_request( const struct set_thread_context_request
*req
)
2504 fprintf( stderr
, " handle=%04x", req
->handle
);
2505 dump_varargs_context( ", context=", cur_size
);
2508 static void dump_set_thread_context_reply( const struct set_thread_context_reply
*req
)
2510 fprintf( stderr
, " self=%d", req
->self
);
2513 static void dump_get_selector_entry_request( const struct get_selector_entry_request
*req
)
2515 fprintf( stderr
, " handle=%04x", req
->handle
);
2516 fprintf( stderr
, ", entry=%d", req
->entry
);
2519 static void dump_get_selector_entry_reply( const struct get_selector_entry_reply
*req
)
2521 fprintf( stderr
, " base=%08x", req
->base
);
2522 fprintf( stderr
, ", limit=%08x", req
->limit
);
2523 fprintf( stderr
, ", flags=%02x", req
->flags
);
2526 static void dump_add_atom_request( const struct add_atom_request
*req
)
2528 fprintf( stderr
, " table=%04x", req
->table
);
2529 dump_varargs_unicode_str( ", name=", cur_size
);
2532 static void dump_add_atom_reply( const struct add_atom_reply
*req
)
2534 fprintf( stderr
, " atom=%04x", req
->atom
);
2537 static void dump_delete_atom_request( const struct delete_atom_request
*req
)
2539 fprintf( stderr
, " table=%04x", req
->table
);
2540 fprintf( stderr
, ", atom=%04x", req
->atom
);
2543 static void dump_find_atom_request( const struct find_atom_request
*req
)
2545 fprintf( stderr
, " table=%04x", req
->table
);
2546 dump_varargs_unicode_str( ", name=", cur_size
);
2549 static void dump_find_atom_reply( const struct find_atom_reply
*req
)
2551 fprintf( stderr
, " atom=%04x", req
->atom
);
2554 static void dump_get_atom_information_request( const struct get_atom_information_request
*req
)
2556 fprintf( stderr
, " table=%04x", req
->table
);
2557 fprintf( stderr
, ", atom=%04x", req
->atom
);
2560 static void dump_get_atom_information_reply( const struct get_atom_information_reply
*req
)
2562 fprintf( stderr
, " count=%d", req
->count
);
2563 fprintf( stderr
, ", pinned=%d", req
->pinned
);
2564 fprintf( stderr
, ", total=%u", req
->total
);
2565 dump_varargs_unicode_str( ", name=", cur_size
);
2568 static void dump_set_atom_information_request( const struct set_atom_information_request
*req
)
2570 fprintf( stderr
, " table=%04x", req
->table
);
2571 fprintf( stderr
, ", atom=%04x", req
->atom
);
2572 fprintf( stderr
, ", pinned=%d", req
->pinned
);
2575 static void dump_empty_atom_table_request( const struct empty_atom_table_request
*req
)
2577 fprintf( stderr
, " table=%04x", req
->table
);
2578 fprintf( stderr
, ", if_pinned=%d", req
->if_pinned
);
2581 static void dump_init_atom_table_request( const struct init_atom_table_request
*req
)
2583 fprintf( stderr
, " entries=%d", req
->entries
);
2586 static void dump_init_atom_table_reply( const struct init_atom_table_reply
*req
)
2588 fprintf( stderr
, " table=%04x", req
->table
);
2591 static void dump_get_msg_queue_request( const struct get_msg_queue_request
*req
)
2595 static void dump_get_msg_queue_reply( const struct get_msg_queue_reply
*req
)
2597 fprintf( stderr
, " handle=%04x", req
->handle
);
2600 static void dump_set_queue_fd_request( const struct set_queue_fd_request
*req
)
2602 fprintf( stderr
, " handle=%04x", req
->handle
);
2605 static void dump_set_queue_mask_request( const struct set_queue_mask_request
*req
)
2607 fprintf( stderr
, " wake_mask=%08x", req
->wake_mask
);
2608 fprintf( stderr
, ", changed_mask=%08x", req
->changed_mask
);
2609 fprintf( stderr
, ", skip_wait=%d", req
->skip_wait
);
2612 static void dump_set_queue_mask_reply( const struct set_queue_mask_reply
*req
)
2614 fprintf( stderr
, " wake_bits=%08x", req
->wake_bits
);
2615 fprintf( stderr
, ", changed_bits=%08x", req
->changed_bits
);
2618 static void dump_get_queue_status_request( const struct get_queue_status_request
*req
)
2620 fprintf( stderr
, " clear_bits=%08x", req
->clear_bits
);
2623 static void dump_get_queue_status_reply( const struct get_queue_status_reply
*req
)
2625 fprintf( stderr
, " wake_bits=%08x", req
->wake_bits
);
2626 fprintf( stderr
, ", changed_bits=%08x", req
->changed_bits
);
2629 static void dump_get_process_idle_event_request( const struct get_process_idle_event_request
*req
)
2631 fprintf( stderr
, " handle=%04x", req
->handle
);
2634 static void dump_get_process_idle_event_reply( const struct get_process_idle_event_reply
*req
)
2636 fprintf( stderr
, " event=%04x", req
->event
);
2639 static void dump_send_message_request( const struct send_message_request
*req
)
2641 fprintf( stderr
, " id=%04x", req
->id
);
2642 fprintf( stderr
, ", type=%d", req
->type
);
2643 fprintf( stderr
, ", flags=%d", req
->flags
);
2644 fprintf( stderr
, ", win=%08x", req
->win
);
2645 fprintf( stderr
, ", msg=%08x", req
->msg
);
2646 dump_uint64( ", wparam=", &req
->wparam
);
2647 dump_uint64( ", lparam=", &req
->lparam
);
2648 dump_timeout( ", timeout=", &req
->timeout
);
2649 dump_varargs_message_data( ", data=", cur_size
);
2652 static void dump_post_quit_message_request( const struct post_quit_message_request
*req
)
2654 fprintf( stderr
, " exit_code=%d", req
->exit_code
);
2657 static void dump_send_hardware_message_request( const struct send_hardware_message_request
*req
)
2659 fprintf( stderr
, " win=%08x", req
->win
);
2660 dump_hw_input( ", input=", &req
->input
);
2661 fprintf( stderr
, ", flags=%08x", req
->flags
);
2664 static void dump_send_hardware_message_reply( const struct send_hardware_message_reply
*req
)
2666 fprintf( stderr
, " wait=%d", req
->wait
);
2667 fprintf( stderr
, ", prev_x=%d", req
->prev_x
);
2668 fprintf( stderr
, ", prev_y=%d", req
->prev_y
);
2669 fprintf( stderr
, ", new_x=%d", req
->new_x
);
2670 fprintf( stderr
, ", new_y=%d", req
->new_y
);
2671 dump_varargs_bytes( ", keystate=", cur_size
);
2674 static void dump_get_message_request( const struct get_message_request
*req
)
2676 fprintf( stderr
, " flags=%08x", req
->flags
);
2677 fprintf( stderr
, ", get_win=%08x", req
->get_win
);
2678 fprintf( stderr
, ", get_first=%08x", req
->get_first
);
2679 fprintf( stderr
, ", get_last=%08x", req
->get_last
);
2680 fprintf( stderr
, ", hw_id=%08x", req
->hw_id
);
2681 fprintf( stderr
, ", wake_mask=%08x", req
->wake_mask
);
2682 fprintf( stderr
, ", changed_mask=%08x", req
->changed_mask
);
2685 static void dump_get_message_reply( const struct get_message_reply
*req
)
2687 fprintf( stderr
, " win=%08x", req
->win
);
2688 fprintf( stderr
, ", msg=%08x", req
->msg
);
2689 dump_uint64( ", wparam=", &req
->wparam
);
2690 dump_uint64( ", lparam=", &req
->lparam
);
2691 fprintf( stderr
, ", type=%d", req
->type
);
2692 fprintf( stderr
, ", x=%d", req
->x
);
2693 fprintf( stderr
, ", y=%d", req
->y
);
2694 fprintf( stderr
, ", time=%08x", req
->time
);
2695 fprintf( stderr
, ", active_hooks=%08x", req
->active_hooks
);
2696 fprintf( stderr
, ", total=%u", req
->total
);
2697 dump_varargs_message_data( ", data=", cur_size
);
2700 static void dump_reply_message_request( const struct reply_message_request
*req
)
2702 fprintf( stderr
, " remove=%d", req
->remove
);
2703 dump_uint64( ", result=", &req
->result
);
2704 dump_varargs_bytes( ", data=", cur_size
);
2707 static void dump_accept_hardware_message_request( const struct accept_hardware_message_request
*req
)
2709 fprintf( stderr
, " hw_id=%08x", req
->hw_id
);
2712 static void dump_get_message_reply_request( const struct get_message_reply_request
*req
)
2714 fprintf( stderr
, " cancel=%d", req
->cancel
);
2717 static void dump_get_message_reply_reply( const struct get_message_reply_reply
*req
)
2719 dump_uint64( " result=", &req
->result
);
2720 dump_varargs_bytes( ", data=", cur_size
);
2723 static void dump_set_win_timer_request( const struct set_win_timer_request
*req
)
2725 fprintf( stderr
, " win=%08x", req
->win
);
2726 fprintf( stderr
, ", msg=%08x", req
->msg
);
2727 fprintf( stderr
, ", rate=%08x", req
->rate
);
2728 dump_uint64( ", id=", &req
->id
);
2729 dump_uint64( ", lparam=", &req
->lparam
);
2732 static void dump_set_win_timer_reply( const struct set_win_timer_reply
*req
)
2734 dump_uint64( " id=", &req
->id
);
2737 static void dump_kill_win_timer_request( const struct kill_win_timer_request
*req
)
2739 fprintf( stderr
, " win=%08x", req
->win
);
2740 dump_uint64( ", id=", &req
->id
);
2741 fprintf( stderr
, ", msg=%08x", req
->msg
);
2744 static void dump_is_window_hung_request( const struct is_window_hung_request
*req
)
2746 fprintf( stderr
, " win=%08x", req
->win
);
2749 static void dump_is_window_hung_reply( const struct is_window_hung_reply
*req
)
2751 fprintf( stderr
, " is_hung=%d", req
->is_hung
);
2754 static void dump_get_serial_info_request( const struct get_serial_info_request
*req
)
2756 fprintf( stderr
, " handle=%04x", req
->handle
);
2757 fprintf( stderr
, ", flags=%d", req
->flags
);
2760 static void dump_get_serial_info_reply( const struct get_serial_info_reply
*req
)
2762 fprintf( stderr
, " eventmask=%08x", req
->eventmask
);
2763 fprintf( stderr
, ", cookie=%08x", req
->cookie
);
2764 fprintf( stderr
, ", pending_write=%08x", req
->pending_write
);
2767 static void dump_set_serial_info_request( const struct set_serial_info_request
*req
)
2769 fprintf( stderr
, " handle=%04x", req
->handle
);
2770 fprintf( stderr
, ", flags=%d", req
->flags
);
2773 static void dump_register_async_request( const struct register_async_request
*req
)
2775 fprintf( stderr
, " type=%d", req
->type
);
2776 dump_async_data( ", async=", &req
->async
);
2777 fprintf( stderr
, ", count=%d", req
->count
);
2780 static void dump_cancel_async_request( const struct cancel_async_request
*req
)
2782 fprintf( stderr
, " handle=%04x", req
->handle
);
2783 dump_uint64( ", iosb=", &req
->iosb
);
2784 fprintf( stderr
, ", only_thread=%d", req
->only_thread
);
2787 static void dump_get_async_result_request( const struct get_async_result_request
*req
)
2789 dump_uint64( " user_arg=", &req
->user_arg
);
2792 static void dump_get_async_result_reply( const struct get_async_result_reply
*req
)
2794 fprintf( stderr
, " size=%u", req
->size
);
2795 dump_varargs_bytes( ", out_data=", cur_size
);
2798 static void dump_read_request( const struct read_request
*req
)
2800 dump_async_data( " async=", &req
->async
);
2801 dump_uint64( ", pos=", &req
->pos
);
2804 static void dump_read_reply( const struct read_reply
*req
)
2806 fprintf( stderr
, " wait=%04x", req
->wait
);
2807 fprintf( stderr
, ", options=%08x", req
->options
);
2808 dump_varargs_bytes( ", data=", cur_size
);
2811 static void dump_write_request( const struct write_request
*req
)
2813 dump_async_data( " async=", &req
->async
);
2814 dump_uint64( ", pos=", &req
->pos
);
2815 dump_varargs_bytes( ", data=", cur_size
);
2818 static void dump_write_reply( const struct write_reply
*req
)
2820 fprintf( stderr
, " wait=%04x", req
->wait
);
2821 fprintf( stderr
, ", options=%08x", req
->options
);
2822 fprintf( stderr
, ", size=%u", req
->size
);
2825 static void dump_ioctl_request( const struct ioctl_request
*req
)
2827 dump_ioctl_code( " code=", &req
->code
);
2828 dump_async_data( ", async=", &req
->async
);
2829 dump_varargs_bytes( ", in_data=", cur_size
);
2832 static void dump_ioctl_reply( const struct ioctl_reply
*req
)
2834 fprintf( stderr
, " wait=%04x", req
->wait
);
2835 fprintf( stderr
, ", options=%08x", req
->options
);
2836 dump_varargs_bytes( ", out_data=", cur_size
);
2839 static void dump_set_irp_result_request( const struct set_irp_result_request
*req
)
2841 fprintf( stderr
, " handle=%04x", req
->handle
);
2842 fprintf( stderr
, ", status=%08x", req
->status
);
2843 fprintf( stderr
, ", size=%u", req
->size
);
2844 dump_varargs_bytes( ", data=", cur_size
);
2847 static void dump_create_named_pipe_request( const struct create_named_pipe_request
*req
)
2849 fprintf( stderr
, " access=%08x", req
->access
);
2850 fprintf( stderr
, ", options=%08x", req
->options
);
2851 fprintf( stderr
, ", sharing=%08x", req
->sharing
);
2852 fprintf( stderr
, ", maxinstances=%08x", req
->maxinstances
);
2853 fprintf( stderr
, ", outsize=%08x", req
->outsize
);
2854 fprintf( stderr
, ", insize=%08x", req
->insize
);
2855 dump_timeout( ", timeout=", &req
->timeout
);
2856 fprintf( stderr
, ", flags=%08x", req
->flags
);
2857 dump_varargs_object_attributes( ", objattr=", cur_size
);
2860 static void dump_create_named_pipe_reply( const struct create_named_pipe_reply
*req
)
2862 fprintf( stderr
, " handle=%04x", req
->handle
);
2865 static void dump_set_named_pipe_info_request( const struct set_named_pipe_info_request
*req
)
2867 fprintf( stderr
, " handle=%04x", req
->handle
);
2868 fprintf( stderr
, ", flags=%08x", req
->flags
);
2871 static void dump_create_window_request( const struct create_window_request
*req
)
2873 fprintf( stderr
, " parent=%08x", req
->parent
);
2874 fprintf( stderr
, ", owner=%08x", req
->owner
);
2875 fprintf( stderr
, ", atom=%04x", req
->atom
);
2876 dump_uint64( ", instance=", &req
->instance
);
2877 fprintf( stderr
, ", dpi=%d", req
->dpi
);
2878 fprintf( stderr
, ", awareness=%d", req
->awareness
);
2879 dump_varargs_unicode_str( ", class=", cur_size
);
2882 static void dump_create_window_reply( const struct create_window_reply
*req
)
2884 fprintf( stderr
, " handle=%08x", req
->handle
);
2885 fprintf( stderr
, ", parent=%08x", req
->parent
);
2886 fprintf( stderr
, ", owner=%08x", req
->owner
);
2887 fprintf( stderr
, ", extra=%d", req
->extra
);
2888 dump_uint64( ", class_ptr=", &req
->class_ptr
);
2889 fprintf( stderr
, ", dpi=%d", req
->dpi
);
2890 fprintf( stderr
, ", awareness=%d", req
->awareness
);
2893 static void dump_destroy_window_request( const struct destroy_window_request
*req
)
2895 fprintf( stderr
, " handle=%08x", req
->handle
);
2898 static void dump_get_desktop_window_request( const struct get_desktop_window_request
*req
)
2900 fprintf( stderr
, " force=%d", req
->force
);
2903 static void dump_get_desktop_window_reply( const struct get_desktop_window_reply
*req
)
2905 fprintf( stderr
, " top_window=%08x", req
->top_window
);
2906 fprintf( stderr
, ", msg_window=%08x", req
->msg_window
);
2909 static void dump_set_window_owner_request( const struct set_window_owner_request
*req
)
2911 fprintf( stderr
, " handle=%08x", req
->handle
);
2912 fprintf( stderr
, ", owner=%08x", req
->owner
);
2915 static void dump_set_window_owner_reply( const struct set_window_owner_reply
*req
)
2917 fprintf( stderr
, " full_owner=%08x", req
->full_owner
);
2918 fprintf( stderr
, ", prev_owner=%08x", req
->prev_owner
);
2921 static void dump_get_window_info_request( const struct get_window_info_request
*req
)
2923 fprintf( stderr
, " handle=%08x", req
->handle
);
2926 static void dump_get_window_info_reply( const struct get_window_info_reply
*req
)
2928 fprintf( stderr
, " full_handle=%08x", req
->full_handle
);
2929 fprintf( stderr
, ", last_active=%08x", req
->last_active
);
2930 fprintf( stderr
, ", pid=%04x", req
->pid
);
2931 fprintf( stderr
, ", tid=%04x", req
->tid
);
2932 fprintf( stderr
, ", atom=%04x", req
->atom
);
2933 fprintf( stderr
, ", is_unicode=%d", req
->is_unicode
);
2934 fprintf( stderr
, ", dpi=%d", req
->dpi
);
2935 fprintf( stderr
, ", awareness=%d", req
->awareness
);
2938 static void dump_set_window_info_request( const struct set_window_info_request
*req
)
2940 fprintf( stderr
, " flags=%04x", req
->flags
);
2941 fprintf( stderr
, ", is_unicode=%d", req
->is_unicode
);
2942 fprintf( stderr
, ", handle=%08x", req
->handle
);
2943 fprintf( stderr
, ", style=%08x", req
->style
);
2944 fprintf( stderr
, ", ex_style=%08x", req
->ex_style
);
2945 fprintf( stderr
, ", id=%08x", req
->id
);
2946 dump_uint64( ", instance=", &req
->instance
);
2947 dump_uint64( ", user_data=", &req
->user_data
);
2948 fprintf( stderr
, ", extra_offset=%d", req
->extra_offset
);
2949 fprintf( stderr
, ", extra_size=%u", req
->extra_size
);
2950 dump_uint64( ", extra_value=", &req
->extra_value
);
2953 static void dump_set_window_info_reply( const struct set_window_info_reply
*req
)
2955 fprintf( stderr
, " old_style=%08x", req
->old_style
);
2956 fprintf( stderr
, ", old_ex_style=%08x", req
->old_ex_style
);
2957 dump_uint64( ", old_instance=", &req
->old_instance
);
2958 dump_uint64( ", old_user_data=", &req
->old_user_data
);
2959 dump_uint64( ", old_extra_value=", &req
->old_extra_value
);
2960 fprintf( stderr
, ", old_id=%08x", req
->old_id
);
2963 static void dump_set_parent_request( const struct set_parent_request
*req
)
2965 fprintf( stderr
, " handle=%08x", req
->handle
);
2966 fprintf( stderr
, ", parent=%08x", req
->parent
);
2969 static void dump_set_parent_reply( const struct set_parent_reply
*req
)
2971 fprintf( stderr
, " old_parent=%08x", req
->old_parent
);
2972 fprintf( stderr
, ", full_parent=%08x", req
->full_parent
);
2973 fprintf( stderr
, ", dpi=%d", req
->dpi
);
2974 fprintf( stderr
, ", awareness=%d", req
->awareness
);
2977 static void dump_get_window_parents_request( const struct get_window_parents_request
*req
)
2979 fprintf( stderr
, " handle=%08x", req
->handle
);
2982 static void dump_get_window_parents_reply( const struct get_window_parents_reply
*req
)
2984 fprintf( stderr
, " count=%d", req
->count
);
2985 dump_varargs_user_handles( ", parents=", cur_size
);
2988 static void dump_get_window_children_request( const struct get_window_children_request
*req
)
2990 fprintf( stderr
, " desktop=%04x", req
->desktop
);
2991 fprintf( stderr
, ", parent=%08x", req
->parent
);
2992 fprintf( stderr
, ", atom=%04x", req
->atom
);
2993 fprintf( stderr
, ", tid=%04x", req
->tid
);
2994 dump_varargs_unicode_str( ", class=", cur_size
);
2997 static void dump_get_window_children_reply( const struct get_window_children_reply
*req
)
2999 fprintf( stderr
, " count=%d", req
->count
);
3000 dump_varargs_user_handles( ", children=", cur_size
);
3003 static void dump_get_window_children_from_point_request( const struct get_window_children_from_point_request
*req
)
3005 fprintf( stderr
, " parent=%08x", req
->parent
);
3006 fprintf( stderr
, ", x=%d", req
->x
);
3007 fprintf( stderr
, ", y=%d", req
->y
);
3008 fprintf( stderr
, ", dpi=%d", req
->dpi
);
3011 static void dump_get_window_children_from_point_reply( const struct get_window_children_from_point_reply
*req
)
3013 fprintf( stderr
, " count=%d", req
->count
);
3014 dump_varargs_user_handles( ", children=", cur_size
);
3017 static void dump_get_window_tree_request( const struct get_window_tree_request
*req
)
3019 fprintf( stderr
, " handle=%08x", req
->handle
);
3022 static void dump_get_window_tree_reply( const struct get_window_tree_reply
*req
)
3024 fprintf( stderr
, " parent=%08x", req
->parent
);
3025 fprintf( stderr
, ", owner=%08x", req
->owner
);
3026 fprintf( stderr
, ", next_sibling=%08x", req
->next_sibling
);
3027 fprintf( stderr
, ", prev_sibling=%08x", req
->prev_sibling
);
3028 fprintf( stderr
, ", first_sibling=%08x", req
->first_sibling
);
3029 fprintf( stderr
, ", last_sibling=%08x", req
->last_sibling
);
3030 fprintf( stderr
, ", first_child=%08x", req
->first_child
);
3031 fprintf( stderr
, ", last_child=%08x", req
->last_child
);
3034 static void dump_set_window_pos_request( const struct set_window_pos_request
*req
)
3036 fprintf( stderr
, " swp_flags=%04x", req
->swp_flags
);
3037 fprintf( stderr
, ", paint_flags=%04x", req
->paint_flags
);
3038 fprintf( stderr
, ", handle=%08x", req
->handle
);
3039 fprintf( stderr
, ", previous=%08x", req
->previous
);
3040 dump_rectangle( ", window=", &req
->window
);
3041 dump_rectangle( ", client=", &req
->client
);
3042 dump_varargs_rectangles( ", valid=", cur_size
);
3045 static void dump_set_window_pos_reply( const struct set_window_pos_reply
*req
)
3047 fprintf( stderr
, " new_style=%08x", req
->new_style
);
3048 fprintf( stderr
, ", new_ex_style=%08x", req
->new_ex_style
);
3049 fprintf( stderr
, ", surface_win=%08x", req
->surface_win
);
3050 fprintf( stderr
, ", needs_update=%d", req
->needs_update
);
3053 static void dump_get_window_rectangles_request( const struct get_window_rectangles_request
*req
)
3055 fprintf( stderr
, " handle=%08x", req
->handle
);
3056 fprintf( stderr
, ", relative=%d", req
->relative
);
3057 fprintf( stderr
, ", dpi=%d", req
->dpi
);
3060 static void dump_get_window_rectangles_reply( const struct get_window_rectangles_reply
*req
)
3062 dump_rectangle( " window=", &req
->window
);
3063 dump_rectangle( ", client=", &req
->client
);
3066 static void dump_get_window_text_request( const struct get_window_text_request
*req
)
3068 fprintf( stderr
, " handle=%08x", req
->handle
);
3071 static void dump_get_window_text_reply( const struct get_window_text_reply
*req
)
3073 fprintf( stderr
, " length=%u", req
->length
);
3074 dump_varargs_unicode_str( ", text=", cur_size
);
3077 static void dump_set_window_text_request( const struct set_window_text_request
*req
)
3079 fprintf( stderr
, " handle=%08x", req
->handle
);
3080 dump_varargs_unicode_str( ", text=", cur_size
);
3083 static void dump_get_windows_offset_request( const struct get_windows_offset_request
*req
)
3085 fprintf( stderr
, " from=%08x", req
->from
);
3086 fprintf( stderr
, ", to=%08x", req
->to
);
3087 fprintf( stderr
, ", dpi=%d", req
->dpi
);
3090 static void dump_get_windows_offset_reply( const struct get_windows_offset_reply
*req
)
3092 fprintf( stderr
, " x=%d", req
->x
);
3093 fprintf( stderr
, ", y=%d", req
->y
);
3094 fprintf( stderr
, ", mirror=%d", req
->mirror
);
3097 static void dump_get_visible_region_request( const struct get_visible_region_request
*req
)
3099 fprintf( stderr
, " window=%08x", req
->window
);
3100 fprintf( stderr
, ", flags=%08x", req
->flags
);
3103 static void dump_get_visible_region_reply( const struct get_visible_region_reply
*req
)
3105 fprintf( stderr
, " top_win=%08x", req
->top_win
);
3106 dump_rectangle( ", top_rect=", &req
->top_rect
);
3107 dump_rectangle( ", win_rect=", &req
->win_rect
);
3108 fprintf( stderr
, ", paint_flags=%08x", req
->paint_flags
);
3109 fprintf( stderr
, ", total_size=%u", req
->total_size
);
3110 dump_varargs_rectangles( ", region=", cur_size
);
3113 static void dump_get_surface_region_request( const struct get_surface_region_request
*req
)
3115 fprintf( stderr
, " window=%08x", req
->window
);
3118 static void dump_get_surface_region_reply( const struct get_surface_region_reply
*req
)
3120 dump_rectangle( " visible_rect=", &req
->visible_rect
);
3121 fprintf( stderr
, ", total_size=%u", req
->total_size
);
3122 dump_varargs_rectangles( ", region=", cur_size
);
3125 static void dump_get_window_region_request( const struct get_window_region_request
*req
)
3127 fprintf( stderr
, " window=%08x", req
->window
);
3130 static void dump_get_window_region_reply( const struct get_window_region_reply
*req
)
3132 fprintf( stderr
, " total_size=%u", req
->total_size
);
3133 dump_varargs_rectangles( ", region=", cur_size
);
3136 static void dump_set_window_region_request( const struct set_window_region_request
*req
)
3138 fprintf( stderr
, " window=%08x", req
->window
);
3139 fprintf( stderr
, ", redraw=%d", req
->redraw
);
3140 dump_varargs_rectangles( ", region=", cur_size
);
3143 static void dump_get_update_region_request( const struct get_update_region_request
*req
)
3145 fprintf( stderr
, " window=%08x", req
->window
);
3146 fprintf( stderr
, ", from_child=%08x", req
->from_child
);
3147 fprintf( stderr
, ", flags=%08x", req
->flags
);
3150 static void dump_get_update_region_reply( const struct get_update_region_reply
*req
)
3152 fprintf( stderr
, " child=%08x", req
->child
);
3153 fprintf( stderr
, ", flags=%08x", req
->flags
);
3154 fprintf( stderr
, ", total_size=%u", req
->total_size
);
3155 dump_varargs_rectangles( ", region=", cur_size
);
3158 static void dump_update_window_zorder_request( const struct update_window_zorder_request
*req
)
3160 fprintf( stderr
, " window=%08x", req
->window
);
3161 dump_rectangle( ", rect=", &req
->rect
);
3164 static void dump_redraw_window_request( const struct redraw_window_request
*req
)
3166 fprintf( stderr
, " window=%08x", req
->window
);
3167 fprintf( stderr
, ", flags=%08x", req
->flags
);
3168 dump_varargs_rectangles( ", region=", cur_size
);
3171 static void dump_set_window_property_request( const struct set_window_property_request
*req
)
3173 fprintf( stderr
, " window=%08x", req
->window
);
3174 dump_uint64( ", data=", &req
->data
);
3175 fprintf( stderr
, ", atom=%04x", req
->atom
);
3176 dump_varargs_unicode_str( ", name=", cur_size
);
3179 static void dump_remove_window_property_request( const struct remove_window_property_request
*req
)
3181 fprintf( stderr
, " window=%08x", req
->window
);
3182 fprintf( stderr
, ", atom=%04x", req
->atom
);
3183 dump_varargs_unicode_str( ", name=", cur_size
);
3186 static void dump_remove_window_property_reply( const struct remove_window_property_reply
*req
)
3188 dump_uint64( " data=", &req
->data
);
3191 static void dump_get_window_property_request( const struct get_window_property_request
*req
)
3193 fprintf( stderr
, " window=%08x", req
->window
);
3194 fprintf( stderr
, ", atom=%04x", req
->atom
);
3195 dump_varargs_unicode_str( ", name=", cur_size
);
3198 static void dump_get_window_property_reply( const struct get_window_property_reply
*req
)
3200 dump_uint64( " data=", &req
->data
);
3203 static void dump_get_window_properties_request( const struct get_window_properties_request
*req
)
3205 fprintf( stderr
, " window=%08x", req
->window
);
3208 static void dump_get_window_properties_reply( const struct get_window_properties_reply
*req
)
3210 fprintf( stderr
, " total=%d", req
->total
);
3211 dump_varargs_properties( ", props=", cur_size
);
3214 static void dump_create_winstation_request( const struct create_winstation_request
*req
)
3216 fprintf( stderr
, " flags=%08x", req
->flags
);
3217 fprintf( stderr
, ", access=%08x", req
->access
);
3218 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3219 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
3220 dump_varargs_unicode_str( ", name=", cur_size
);
3223 static void dump_create_winstation_reply( const struct create_winstation_reply
*req
)
3225 fprintf( stderr
, " handle=%04x", req
->handle
);
3228 static void dump_open_winstation_request( const struct open_winstation_request
*req
)
3230 fprintf( stderr
, " access=%08x", req
->access
);
3231 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3232 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
3233 dump_varargs_unicode_str( ", name=", cur_size
);
3236 static void dump_open_winstation_reply( const struct open_winstation_reply
*req
)
3238 fprintf( stderr
, " handle=%04x", req
->handle
);
3241 static void dump_close_winstation_request( const struct close_winstation_request
*req
)
3243 fprintf( stderr
, " handle=%04x", req
->handle
);
3246 static void dump_get_process_winstation_request( const struct get_process_winstation_request
*req
)
3250 static void dump_get_process_winstation_reply( const struct get_process_winstation_reply
*req
)
3252 fprintf( stderr
, " handle=%04x", req
->handle
);
3255 static void dump_set_process_winstation_request( const struct set_process_winstation_request
*req
)
3257 fprintf( stderr
, " handle=%04x", req
->handle
);
3260 static void dump_enum_winstation_request( const struct enum_winstation_request
*req
)
3262 fprintf( stderr
, " index=%08x", req
->index
);
3265 static void dump_enum_winstation_reply( const struct enum_winstation_reply
*req
)
3267 fprintf( stderr
, " next=%08x", req
->next
);
3268 dump_varargs_unicode_str( ", name=", cur_size
);
3271 static void dump_create_desktop_request( const struct create_desktop_request
*req
)
3273 fprintf( stderr
, " flags=%08x", req
->flags
);
3274 fprintf( stderr
, ", access=%08x", req
->access
);
3275 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3276 dump_varargs_unicode_str( ", name=", cur_size
);
3279 static void dump_create_desktop_reply( const struct create_desktop_reply
*req
)
3281 fprintf( stderr
, " handle=%04x", req
->handle
);
3284 static void dump_open_desktop_request( const struct open_desktop_request
*req
)
3286 fprintf( stderr
, " winsta=%04x", req
->winsta
);
3287 fprintf( stderr
, ", flags=%08x", req
->flags
);
3288 fprintf( stderr
, ", access=%08x", req
->access
);
3289 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3290 dump_varargs_unicode_str( ", name=", cur_size
);
3293 static void dump_open_desktop_reply( const struct open_desktop_reply
*req
)
3295 fprintf( stderr
, " handle=%04x", req
->handle
);
3298 static void dump_open_input_desktop_request( const struct open_input_desktop_request
*req
)
3300 fprintf( stderr
, " flags=%08x", req
->flags
);
3301 fprintf( stderr
, ", access=%08x", req
->access
);
3302 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3305 static void dump_open_input_desktop_reply( const struct open_input_desktop_reply
*req
)
3307 fprintf( stderr
, " handle=%04x", req
->handle
);
3310 static void dump_close_desktop_request( const struct close_desktop_request
*req
)
3312 fprintf( stderr
, " handle=%04x", req
->handle
);
3315 static void dump_get_thread_desktop_request( const struct get_thread_desktop_request
*req
)
3317 fprintf( stderr
, " tid=%04x", req
->tid
);
3320 static void dump_get_thread_desktop_reply( const struct get_thread_desktop_reply
*req
)
3322 fprintf( stderr
, " handle=%04x", req
->handle
);
3325 static void dump_set_thread_desktop_request( const struct set_thread_desktop_request
*req
)
3327 fprintf( stderr
, " handle=%04x", req
->handle
);
3330 static void dump_enum_desktop_request( const struct enum_desktop_request
*req
)
3332 fprintf( stderr
, " winstation=%04x", req
->winstation
);
3333 fprintf( stderr
, ", index=%08x", req
->index
);
3336 static void dump_enum_desktop_reply( const struct enum_desktop_reply
*req
)
3338 fprintf( stderr
, " next=%08x", req
->next
);
3339 dump_varargs_unicode_str( ", name=", cur_size
);
3342 static void dump_set_user_object_info_request( const struct set_user_object_info_request
*req
)
3344 fprintf( stderr
, " handle=%04x", req
->handle
);
3345 fprintf( stderr
, ", flags=%08x", req
->flags
);
3346 fprintf( stderr
, ", obj_flags=%08x", req
->obj_flags
);
3349 static void dump_set_user_object_info_reply( const struct set_user_object_info_reply
*req
)
3351 fprintf( stderr
, " is_desktop=%d", req
->is_desktop
);
3352 fprintf( stderr
, ", old_obj_flags=%08x", req
->old_obj_flags
);
3353 dump_varargs_unicode_str( ", name=", cur_size
);
3356 static void dump_register_hotkey_request( const struct register_hotkey_request
*req
)
3358 fprintf( stderr
, " window=%08x", req
->window
);
3359 fprintf( stderr
, ", id=%d", req
->id
);
3360 fprintf( stderr
, ", flags=%08x", req
->flags
);
3361 fprintf( stderr
, ", vkey=%08x", req
->vkey
);
3364 static void dump_register_hotkey_reply( const struct register_hotkey_reply
*req
)
3366 fprintf( stderr
, " replaced=%d", req
->replaced
);
3367 fprintf( stderr
, ", flags=%08x", req
->flags
);
3368 fprintf( stderr
, ", vkey=%08x", req
->vkey
);
3371 static void dump_unregister_hotkey_request( const struct unregister_hotkey_request
*req
)
3373 fprintf( stderr
, " window=%08x", req
->window
);
3374 fprintf( stderr
, ", id=%d", req
->id
);
3377 static void dump_unregister_hotkey_reply( const struct unregister_hotkey_reply
*req
)
3379 fprintf( stderr
, " flags=%08x", req
->flags
);
3380 fprintf( stderr
, ", vkey=%08x", req
->vkey
);
3383 static void dump_attach_thread_input_request( const struct attach_thread_input_request
*req
)
3385 fprintf( stderr
, " tid_from=%04x", req
->tid_from
);
3386 fprintf( stderr
, ", tid_to=%04x", req
->tid_to
);
3387 fprintf( stderr
, ", attach=%d", req
->attach
);
3390 static void dump_get_thread_input_request( const struct get_thread_input_request
*req
)
3392 fprintf( stderr
, " tid=%04x", req
->tid
);
3395 static void dump_get_thread_input_reply( const struct get_thread_input_reply
*req
)
3397 fprintf( stderr
, " focus=%08x", req
->focus
);
3398 fprintf( stderr
, ", capture=%08x", req
->capture
);
3399 fprintf( stderr
, ", active=%08x", req
->active
);
3400 fprintf( stderr
, ", foreground=%08x", req
->foreground
);
3401 fprintf( stderr
, ", menu_owner=%08x", req
->menu_owner
);
3402 fprintf( stderr
, ", move_size=%08x", req
->move_size
);
3403 fprintf( stderr
, ", caret=%08x", req
->caret
);
3404 fprintf( stderr
, ", cursor=%08x", req
->cursor
);
3405 fprintf( stderr
, ", show_count=%d", req
->show_count
);
3406 dump_rectangle( ", rect=", &req
->rect
);
3409 static void dump_get_last_input_time_request( const struct get_last_input_time_request
*req
)
3413 static void dump_get_last_input_time_reply( const struct get_last_input_time_reply
*req
)
3415 fprintf( stderr
, " time=%08x", req
->time
);
3418 static void dump_get_key_state_request( const struct get_key_state_request
*req
)
3420 fprintf( stderr
, " tid=%04x", req
->tid
);
3421 fprintf( stderr
, ", key=%d", req
->key
);
3424 static void dump_get_key_state_reply( const struct get_key_state_reply
*req
)
3426 fprintf( stderr
, " state=%02x", req
->state
);
3427 dump_varargs_bytes( ", keystate=", cur_size
);
3430 static void dump_set_key_state_request( const struct set_key_state_request
*req
)
3432 fprintf( stderr
, " tid=%04x", req
->tid
);
3433 fprintf( stderr
, ", async=%d", req
->async
);
3434 dump_varargs_bytes( ", keystate=", cur_size
);
3437 static void dump_set_foreground_window_request( const struct set_foreground_window_request
*req
)
3439 fprintf( stderr
, " handle=%08x", req
->handle
);
3442 static void dump_set_foreground_window_reply( const struct set_foreground_window_reply
*req
)
3444 fprintf( stderr
, " previous=%08x", req
->previous
);
3445 fprintf( stderr
, ", send_msg_old=%d", req
->send_msg_old
);
3446 fprintf( stderr
, ", send_msg_new=%d", req
->send_msg_new
);
3449 static void dump_set_focus_window_request( const struct set_focus_window_request
*req
)
3451 fprintf( stderr
, " handle=%08x", req
->handle
);
3454 static void dump_set_focus_window_reply( const struct set_focus_window_reply
*req
)
3456 fprintf( stderr
, " previous=%08x", req
->previous
);
3459 static void dump_set_active_window_request( const struct set_active_window_request
*req
)
3461 fprintf( stderr
, " handle=%08x", req
->handle
);
3464 static void dump_set_active_window_reply( const struct set_active_window_reply
*req
)
3466 fprintf( stderr
, " previous=%08x", req
->previous
);
3469 static void dump_set_capture_window_request( const struct set_capture_window_request
*req
)
3471 fprintf( stderr
, " handle=%08x", req
->handle
);
3472 fprintf( stderr
, ", flags=%08x", req
->flags
);
3475 static void dump_set_capture_window_reply( const struct set_capture_window_reply
*req
)
3477 fprintf( stderr
, " previous=%08x", req
->previous
);
3478 fprintf( stderr
, ", full_handle=%08x", req
->full_handle
);
3481 static void dump_set_caret_window_request( const struct set_caret_window_request
*req
)
3483 fprintf( stderr
, " handle=%08x", req
->handle
);
3484 fprintf( stderr
, ", width=%d", req
->width
);
3485 fprintf( stderr
, ", height=%d", req
->height
);
3488 static void dump_set_caret_window_reply( const struct set_caret_window_reply
*req
)
3490 fprintf( stderr
, " previous=%08x", req
->previous
);
3491 dump_rectangle( ", old_rect=", &req
->old_rect
);
3492 fprintf( stderr
, ", old_hide=%d", req
->old_hide
);
3493 fprintf( stderr
, ", old_state=%d", req
->old_state
);
3496 static void dump_set_caret_info_request( const struct set_caret_info_request
*req
)
3498 fprintf( stderr
, " flags=%08x", req
->flags
);
3499 fprintf( stderr
, ", handle=%08x", req
->handle
);
3500 fprintf( stderr
, ", x=%d", req
->x
);
3501 fprintf( stderr
, ", y=%d", req
->y
);
3502 fprintf( stderr
, ", hide=%d", req
->hide
);
3503 fprintf( stderr
, ", state=%d", req
->state
);
3506 static void dump_set_caret_info_reply( const struct set_caret_info_reply
*req
)
3508 fprintf( stderr
, " full_handle=%08x", req
->full_handle
);
3509 dump_rectangle( ", old_rect=", &req
->old_rect
);
3510 fprintf( stderr
, ", old_hide=%d", req
->old_hide
);
3511 fprintf( stderr
, ", old_state=%d", req
->old_state
);
3514 static void dump_set_hook_request( const struct set_hook_request
*req
)
3516 fprintf( stderr
, " id=%d", req
->id
);
3517 fprintf( stderr
, ", pid=%04x", req
->pid
);
3518 fprintf( stderr
, ", tid=%04x", req
->tid
);
3519 fprintf( stderr
, ", event_min=%d", req
->event_min
);
3520 fprintf( stderr
, ", event_max=%d", req
->event_max
);
3521 dump_uint64( ", proc=", &req
->proc
);
3522 fprintf( stderr
, ", flags=%d", req
->flags
);
3523 fprintf( stderr
, ", unicode=%d", req
->unicode
);
3524 dump_varargs_unicode_str( ", module=", cur_size
);
3527 static void dump_set_hook_reply( const struct set_hook_reply
*req
)
3529 fprintf( stderr
, " handle=%08x", req
->handle
);
3530 fprintf( stderr
, ", active_hooks=%08x", req
->active_hooks
);
3533 static void dump_remove_hook_request( const struct remove_hook_request
*req
)
3535 fprintf( stderr
, " handle=%08x", req
->handle
);
3536 dump_uint64( ", proc=", &req
->proc
);
3537 fprintf( stderr
, ", id=%d", req
->id
);
3540 static void dump_remove_hook_reply( const struct remove_hook_reply
*req
)
3542 fprintf( stderr
, " active_hooks=%08x", req
->active_hooks
);
3545 static void dump_start_hook_chain_request( const struct start_hook_chain_request
*req
)
3547 fprintf( stderr
, " id=%d", req
->id
);
3548 fprintf( stderr
, ", event=%d", req
->event
);
3549 fprintf( stderr
, ", window=%08x", req
->window
);
3550 fprintf( stderr
, ", object_id=%d", req
->object_id
);
3551 fprintf( stderr
, ", child_id=%d", req
->child_id
);
3554 static void dump_start_hook_chain_reply( const struct start_hook_chain_reply
*req
)
3556 fprintf( stderr
, " handle=%08x", req
->handle
);
3557 fprintf( stderr
, ", pid=%04x", req
->pid
);
3558 fprintf( stderr
, ", tid=%04x", req
->tid
);
3559 fprintf( stderr
, ", unicode=%d", req
->unicode
);
3560 dump_uint64( ", proc=", &req
->proc
);
3561 fprintf( stderr
, ", active_hooks=%08x", req
->active_hooks
);
3562 dump_varargs_unicode_str( ", module=", cur_size
);
3565 static void dump_finish_hook_chain_request( const struct finish_hook_chain_request
*req
)
3567 fprintf( stderr
, " id=%d", req
->id
);
3570 static void dump_get_hook_info_request( const struct get_hook_info_request
*req
)
3572 fprintf( stderr
, " handle=%08x", req
->handle
);
3573 fprintf( stderr
, ", get_next=%d", req
->get_next
);
3574 fprintf( stderr
, ", event=%d", req
->event
);
3575 fprintf( stderr
, ", window=%08x", req
->window
);
3576 fprintf( stderr
, ", object_id=%d", req
->object_id
);
3577 fprintf( stderr
, ", child_id=%d", req
->child_id
);
3580 static void dump_get_hook_info_reply( const struct get_hook_info_reply
*req
)
3582 fprintf( stderr
, " handle=%08x", req
->handle
);
3583 fprintf( stderr
, ", id=%d", req
->id
);
3584 fprintf( stderr
, ", pid=%04x", req
->pid
);
3585 fprintf( stderr
, ", tid=%04x", req
->tid
);
3586 dump_uint64( ", proc=", &req
->proc
);
3587 fprintf( stderr
, ", unicode=%d", req
->unicode
);
3588 dump_varargs_unicode_str( ", module=", cur_size
);
3591 static void dump_create_class_request( const struct create_class_request
*req
)
3593 fprintf( stderr
, " local=%d", req
->local
);
3594 fprintf( stderr
, ", atom=%04x", req
->atom
);
3595 fprintf( stderr
, ", style=%08x", req
->style
);
3596 dump_uint64( ", instance=", &req
->instance
);
3597 fprintf( stderr
, ", extra=%d", req
->extra
);
3598 fprintf( stderr
, ", win_extra=%d", req
->win_extra
);
3599 dump_uint64( ", client_ptr=", &req
->client_ptr
);
3600 fprintf( stderr
, ", name_offset=%u", req
->name_offset
);
3601 dump_varargs_unicode_str( ", name=", cur_size
);
3604 static void dump_create_class_reply( const struct create_class_reply
*req
)
3606 fprintf( stderr
, " atom=%04x", req
->atom
);
3609 static void dump_destroy_class_request( const struct destroy_class_request
*req
)
3611 fprintf( stderr
, " atom=%04x", req
->atom
);
3612 dump_uint64( ", instance=", &req
->instance
);
3613 dump_varargs_unicode_str( ", name=", cur_size
);
3616 static void dump_destroy_class_reply( const struct destroy_class_reply
*req
)
3618 dump_uint64( " client_ptr=", &req
->client_ptr
);
3621 static void dump_set_class_info_request( const struct set_class_info_request
*req
)
3623 fprintf( stderr
, " window=%08x", req
->window
);
3624 fprintf( stderr
, ", flags=%08x", req
->flags
);
3625 fprintf( stderr
, ", atom=%04x", req
->atom
);
3626 fprintf( stderr
, ", style=%08x", req
->style
);
3627 fprintf( stderr
, ", win_extra=%d", req
->win_extra
);
3628 dump_uint64( ", instance=", &req
->instance
);
3629 fprintf( stderr
, ", extra_offset=%d", req
->extra_offset
);
3630 fprintf( stderr
, ", extra_size=%u", req
->extra_size
);
3631 dump_uint64( ", extra_value=", &req
->extra_value
);
3634 static void dump_set_class_info_reply( const struct set_class_info_reply
*req
)
3636 fprintf( stderr
, " old_atom=%04x", req
->old_atom
);
3637 fprintf( stderr
, ", base_atom=%04x", req
->base_atom
);
3638 dump_uint64( ", old_instance=", &req
->old_instance
);
3639 dump_uint64( ", old_extra_value=", &req
->old_extra_value
);
3640 fprintf( stderr
, ", old_style=%08x", req
->old_style
);
3641 fprintf( stderr
, ", old_extra=%d", req
->old_extra
);
3642 fprintf( stderr
, ", old_win_extra=%d", req
->old_win_extra
);
3645 static void dump_open_clipboard_request( const struct open_clipboard_request
*req
)
3647 fprintf( stderr
, " window=%08x", req
->window
);
3650 static void dump_open_clipboard_reply( const struct open_clipboard_reply
*req
)
3652 fprintf( stderr
, " owner=%08x", req
->owner
);
3655 static void dump_close_clipboard_request( const struct close_clipboard_request
*req
)
3659 static void dump_close_clipboard_reply( const struct close_clipboard_reply
*req
)
3661 fprintf( stderr
, " viewer=%08x", req
->viewer
);
3662 fprintf( stderr
, ", owner=%08x", req
->owner
);
3665 static void dump_empty_clipboard_request( const struct empty_clipboard_request
*req
)
3669 static void dump_set_clipboard_data_request( const struct set_clipboard_data_request
*req
)
3671 fprintf( stderr
, " format=%08x", req
->format
);
3672 fprintf( stderr
, ", lcid=%08x", req
->lcid
);
3673 dump_varargs_bytes( ", data=", cur_size
);
3676 static void dump_set_clipboard_data_reply( const struct set_clipboard_data_reply
*req
)
3678 fprintf( stderr
, " seqno=%08x", req
->seqno
);
3681 static void dump_get_clipboard_data_request( const struct get_clipboard_data_request
*req
)
3683 fprintf( stderr
, " format=%08x", req
->format
);
3684 fprintf( stderr
, ", render=%d", req
->render
);
3685 fprintf( stderr
, ", cached=%d", req
->cached
);
3686 fprintf( stderr
, ", seqno=%08x", req
->seqno
);
3689 static void dump_get_clipboard_data_reply( const struct get_clipboard_data_reply
*req
)
3691 fprintf( stderr
, " from=%08x", req
->from
);
3692 fprintf( stderr
, ", owner=%08x", req
->owner
);
3693 fprintf( stderr
, ", seqno=%08x", req
->seqno
);
3694 fprintf( stderr
, ", total=%u", req
->total
);
3695 dump_varargs_bytes( ", data=", cur_size
);
3698 static void dump_get_clipboard_formats_request( const struct get_clipboard_formats_request
*req
)
3700 fprintf( stderr
, " format=%08x", req
->format
);
3703 static void dump_get_clipboard_formats_reply( const struct get_clipboard_formats_reply
*req
)
3705 fprintf( stderr
, " count=%08x", req
->count
);
3706 dump_varargs_uints( ", formats=", cur_size
);
3709 static void dump_enum_clipboard_formats_request( const struct enum_clipboard_formats_request
*req
)
3711 fprintf( stderr
, " previous=%08x", req
->previous
);
3714 static void dump_enum_clipboard_formats_reply( const struct enum_clipboard_formats_reply
*req
)
3716 fprintf( stderr
, " format=%08x", req
->format
);
3719 static void dump_release_clipboard_request( const struct release_clipboard_request
*req
)
3721 fprintf( stderr
, " owner=%08x", req
->owner
);
3724 static void dump_release_clipboard_reply( const struct release_clipboard_reply
*req
)
3726 fprintf( stderr
, " viewer=%08x", req
->viewer
);
3727 fprintf( stderr
, ", owner=%08x", req
->owner
);
3730 static void dump_get_clipboard_info_request( const struct get_clipboard_info_request
*req
)
3734 static void dump_get_clipboard_info_reply( const struct get_clipboard_info_reply
*req
)
3736 fprintf( stderr
, " window=%08x", req
->window
);
3737 fprintf( stderr
, ", owner=%08x", req
->owner
);
3738 fprintf( stderr
, ", viewer=%08x", req
->viewer
);
3739 fprintf( stderr
, ", seqno=%08x", req
->seqno
);
3742 static void dump_set_clipboard_viewer_request( const struct set_clipboard_viewer_request
*req
)
3744 fprintf( stderr
, " viewer=%08x", req
->viewer
);
3745 fprintf( stderr
, ", previous=%08x", req
->previous
);
3748 static void dump_set_clipboard_viewer_reply( const struct set_clipboard_viewer_reply
*req
)
3750 fprintf( stderr
, " old_viewer=%08x", req
->old_viewer
);
3751 fprintf( stderr
, ", owner=%08x", req
->owner
);
3754 static void dump_add_clipboard_listener_request( const struct add_clipboard_listener_request
*req
)
3756 fprintf( stderr
, " window=%08x", req
->window
);
3759 static void dump_remove_clipboard_listener_request( const struct remove_clipboard_listener_request
*req
)
3761 fprintf( stderr
, " window=%08x", req
->window
);
3764 static void dump_open_token_request( const struct open_token_request
*req
)
3766 fprintf( stderr
, " handle=%04x", req
->handle
);
3767 fprintf( stderr
, ", access=%08x", req
->access
);
3768 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3769 fprintf( stderr
, ", flags=%08x", req
->flags
);
3772 static void dump_open_token_reply( const struct open_token_reply
*req
)
3774 fprintf( stderr
, " token=%04x", req
->token
);
3777 static void dump_set_global_windows_request( const struct set_global_windows_request
*req
)
3779 fprintf( stderr
, " flags=%08x", req
->flags
);
3780 fprintf( stderr
, ", shell_window=%08x", req
->shell_window
);
3781 fprintf( stderr
, ", shell_listview=%08x", req
->shell_listview
);
3782 fprintf( stderr
, ", progman_window=%08x", req
->progman_window
);
3783 fprintf( stderr
, ", taskman_window=%08x", req
->taskman_window
);
3786 static void dump_set_global_windows_reply( const struct set_global_windows_reply
*req
)
3788 fprintf( stderr
, " old_shell_window=%08x", req
->old_shell_window
);
3789 fprintf( stderr
, ", old_shell_listview=%08x", req
->old_shell_listview
);
3790 fprintf( stderr
, ", old_progman_window=%08x", req
->old_progman_window
);
3791 fprintf( stderr
, ", old_taskman_window=%08x", req
->old_taskman_window
);
3794 static void dump_adjust_token_privileges_request( const struct adjust_token_privileges_request
*req
)
3796 fprintf( stderr
, " handle=%04x", req
->handle
);
3797 fprintf( stderr
, ", disable_all=%d", req
->disable_all
);
3798 fprintf( stderr
, ", get_modified_state=%d", req
->get_modified_state
);
3799 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size
);
3802 static void dump_adjust_token_privileges_reply( const struct adjust_token_privileges_reply
*req
)
3804 fprintf( stderr
, " len=%08x", req
->len
);
3805 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size
);
3808 static void dump_get_token_privileges_request( const struct get_token_privileges_request
*req
)
3810 fprintf( stderr
, " handle=%04x", req
->handle
);
3813 static void dump_get_token_privileges_reply( const struct get_token_privileges_reply
*req
)
3815 fprintf( stderr
, " len=%08x", req
->len
);
3816 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size
);
3819 static void dump_check_token_privileges_request( const struct check_token_privileges_request
*req
)
3821 fprintf( stderr
, " handle=%04x", req
->handle
);
3822 fprintf( stderr
, ", all_required=%d", req
->all_required
);
3823 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size
);
3826 static void dump_check_token_privileges_reply( const struct check_token_privileges_reply
*req
)
3828 fprintf( stderr
, " has_privileges=%d", req
->has_privileges
);
3829 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size
);
3832 static void dump_duplicate_token_request( const struct duplicate_token_request
*req
)
3834 fprintf( stderr
, " handle=%04x", req
->handle
);
3835 fprintf( stderr
, ", access=%08x", req
->access
);
3836 fprintf( stderr
, ", primary=%d", req
->primary
);
3837 fprintf( stderr
, ", impersonation_level=%d", req
->impersonation_level
);
3838 dump_varargs_object_attributes( ", objattr=", cur_size
);
3841 static void dump_duplicate_token_reply( const struct duplicate_token_reply
*req
)
3843 fprintf( stderr
, " new_handle=%04x", req
->new_handle
);
3846 static void dump_filter_token_request( const struct filter_token_request
*req
)
3848 fprintf( stderr
, " handle=%04x", req
->handle
);
3849 fprintf( stderr
, ", flags=%08x", req
->flags
);
3850 fprintf( stderr
, ", privileges_size=%u", req
->privileges_size
);
3851 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", min(cur_size
,req
->privileges_size
) );
3852 dump_varargs_SID( ", disable_sids=", cur_size
);
3855 static void dump_filter_token_reply( const struct filter_token_reply
*req
)
3857 fprintf( stderr
, " new_handle=%04x", req
->new_handle
);
3860 static void dump_access_check_request( const struct access_check_request
*req
)
3862 fprintf( stderr
, " handle=%04x", req
->handle
);
3863 fprintf( stderr
, ", desired_access=%08x", req
->desired_access
);
3864 dump_generic_map( ", mapping=", &req
->mapping
);
3865 dump_varargs_security_descriptor( ", sd=", cur_size
);
3868 static void dump_access_check_reply( const struct access_check_reply
*req
)
3870 fprintf( stderr
, " access_granted=%08x", req
->access_granted
);
3871 fprintf( stderr
, ", access_status=%08x", req
->access_status
);
3872 fprintf( stderr
, ", privileges_len=%08x", req
->privileges_len
);
3873 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size
);
3876 static void dump_get_token_sid_request( const struct get_token_sid_request
*req
)
3878 fprintf( stderr
, " handle=%04x", req
->handle
);
3879 fprintf( stderr
, ", which_sid=%08x", req
->which_sid
);
3882 static void dump_get_token_sid_reply( const struct get_token_sid_reply
*req
)
3884 fprintf( stderr
, " sid_len=%u", req
->sid_len
);
3885 dump_varargs_SID( ", sid=", cur_size
);
3888 static void dump_get_token_groups_request( const struct get_token_groups_request
*req
)
3890 fprintf( stderr
, " handle=%04x", req
->handle
);
3893 static void dump_get_token_groups_reply( const struct get_token_groups_reply
*req
)
3895 fprintf( stderr
, " user_len=%u", req
->user_len
);
3896 dump_varargs_token_groups( ", user=", cur_size
);
3899 static void dump_get_token_default_dacl_request( const struct get_token_default_dacl_request
*req
)
3901 fprintf( stderr
, " handle=%04x", req
->handle
);
3904 static void dump_get_token_default_dacl_reply( const struct get_token_default_dacl_reply
*req
)
3906 fprintf( stderr
, " acl_len=%u", req
->acl_len
);
3907 dump_varargs_ACL( ", acl=", cur_size
);
3910 static void dump_set_token_default_dacl_request( const struct set_token_default_dacl_request
*req
)
3912 fprintf( stderr
, " handle=%04x", req
->handle
);
3913 dump_varargs_ACL( ", acl=", cur_size
);
3916 static void dump_set_security_object_request( const struct set_security_object_request
*req
)
3918 fprintf( stderr
, " handle=%04x", req
->handle
);
3919 fprintf( stderr
, ", security_info=%08x", req
->security_info
);
3920 dump_varargs_security_descriptor( ", sd=", cur_size
);
3923 static void dump_get_security_object_request( const struct get_security_object_request
*req
)
3925 fprintf( stderr
, " handle=%04x", req
->handle
);
3926 fprintf( stderr
, ", security_info=%08x", req
->security_info
);
3929 static void dump_get_security_object_reply( const struct get_security_object_reply
*req
)
3931 fprintf( stderr
, " sd_len=%08x", req
->sd_len
);
3932 dump_varargs_security_descriptor( ", sd=", cur_size
);
3935 static void dump_get_system_handles_request( const struct get_system_handles_request
*req
)
3939 static void dump_get_system_handles_reply( const struct get_system_handles_reply
*req
)
3941 fprintf( stderr
, " count=%08x", req
->count
);
3942 dump_varargs_handle_infos( ", data=", cur_size
);
3945 static void dump_create_mailslot_request( const struct create_mailslot_request
*req
)
3947 fprintf( stderr
, " access=%08x", req
->access
);
3948 dump_timeout( ", read_timeout=", &req
->read_timeout
);
3949 fprintf( stderr
, ", max_msgsize=%08x", req
->max_msgsize
);
3950 dump_varargs_object_attributes( ", objattr=", cur_size
);
3953 static void dump_create_mailslot_reply( const struct create_mailslot_reply
*req
)
3955 fprintf( stderr
, " handle=%04x", req
->handle
);
3958 static void dump_set_mailslot_info_request( const struct set_mailslot_info_request
*req
)
3960 fprintf( stderr
, " handle=%04x", req
->handle
);
3961 dump_timeout( ", read_timeout=", &req
->read_timeout
);
3962 fprintf( stderr
, ", flags=%08x", req
->flags
);
3965 static void dump_set_mailslot_info_reply( const struct set_mailslot_info_reply
*req
)
3967 dump_timeout( " read_timeout=", &req
->read_timeout
);
3968 fprintf( stderr
, ", max_msgsize=%08x", req
->max_msgsize
);
3971 static void dump_create_directory_request( const struct create_directory_request
*req
)
3973 fprintf( stderr
, " access=%08x", req
->access
);
3974 dump_varargs_object_attributes( ", objattr=", cur_size
);
3977 static void dump_create_directory_reply( const struct create_directory_reply
*req
)
3979 fprintf( stderr
, " handle=%04x", req
->handle
);
3982 static void dump_open_directory_request( const struct open_directory_request
*req
)
3984 fprintf( stderr
, " access=%08x", req
->access
);
3985 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3986 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
3987 dump_varargs_unicode_str( ", directory_name=", cur_size
);
3990 static void dump_open_directory_reply( const struct open_directory_reply
*req
)
3992 fprintf( stderr
, " handle=%04x", req
->handle
);
3995 static void dump_get_directory_entry_request( const struct get_directory_entry_request
*req
)
3997 fprintf( stderr
, " handle=%04x", req
->handle
);
3998 fprintf( stderr
, ", index=%08x", req
->index
);
4001 static void dump_get_directory_entry_reply( const struct get_directory_entry_reply
*req
)
4003 fprintf( stderr
, " name_len=%u", req
->name_len
);
4004 dump_varargs_unicode_str( ", name=", min(cur_size
,req
->name_len
) );
4005 dump_varargs_unicode_str( ", type=", cur_size
);
4008 static void dump_create_symlink_request( const struct create_symlink_request
*req
)
4010 fprintf( stderr
, " access=%08x", req
->access
);
4011 dump_varargs_object_attributes( ", objattr=", cur_size
);
4012 dump_varargs_unicode_str( ", target_name=", cur_size
);
4015 static void dump_create_symlink_reply( const struct create_symlink_reply
*req
)
4017 fprintf( stderr
, " handle=%04x", req
->handle
);
4020 static void dump_open_symlink_request( const struct open_symlink_request
*req
)
4022 fprintf( stderr
, " access=%08x", req
->access
);
4023 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
4024 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
4025 dump_varargs_unicode_str( ", name=", cur_size
);
4028 static void dump_open_symlink_reply( const struct open_symlink_reply
*req
)
4030 fprintf( stderr
, " handle=%04x", req
->handle
);
4033 static void dump_query_symlink_request( const struct query_symlink_request
*req
)
4035 fprintf( stderr
, " handle=%04x", req
->handle
);
4038 static void dump_query_symlink_reply( const struct query_symlink_reply
*req
)
4040 fprintf( stderr
, " total=%u", req
->total
);
4041 dump_varargs_unicode_str( ", target_name=", cur_size
);
4044 static void dump_get_object_info_request( const struct get_object_info_request
*req
)
4046 fprintf( stderr
, " handle=%04x", req
->handle
);
4049 static void dump_get_object_info_reply( const struct get_object_info_reply
*req
)
4051 fprintf( stderr
, " access=%08x", req
->access
);
4052 fprintf( stderr
, ", ref_count=%08x", req
->ref_count
);
4053 fprintf( stderr
, ", handle_count=%08x", req
->handle_count
);
4054 fprintf( stderr
, ", total=%u", req
->total
);
4055 dump_varargs_unicode_str( ", name=", cur_size
);
4058 static void dump_get_object_type_request( const struct get_object_type_request
*req
)
4060 fprintf( stderr
, " handle=%04x", req
->handle
);
4063 static void dump_get_object_type_reply( const struct get_object_type_reply
*req
)
4065 dump_varargs_object_type_info( " info=", cur_size
);
4068 static void dump_get_object_types_request( const struct get_object_types_request
*req
)
4072 static void dump_get_object_types_reply( const struct get_object_types_reply
*req
)
4074 fprintf( stderr
, " count=%d", req
->count
);
4075 dump_varargs_object_types_info( ", info=", cur_size
);
4078 static void dump_get_token_impersonation_level_request( const struct get_token_impersonation_level_request
*req
)
4080 fprintf( stderr
, " handle=%04x", req
->handle
);
4083 static void dump_get_token_impersonation_level_reply( const struct get_token_impersonation_level_reply
*req
)
4085 fprintf( stderr
, " impersonation_level=%d", req
->impersonation_level
);
4088 static void dump_allocate_locally_unique_id_request( const struct allocate_locally_unique_id_request
*req
)
4092 static void dump_allocate_locally_unique_id_reply( const struct allocate_locally_unique_id_reply
*req
)
4094 dump_luid( " luid=", &req
->luid
);
4097 static void dump_create_device_manager_request( const struct create_device_manager_request
*req
)
4099 fprintf( stderr
, " access=%08x", req
->access
);
4100 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
4103 static void dump_create_device_manager_reply( const struct create_device_manager_reply
*req
)
4105 fprintf( stderr
, " handle=%04x", req
->handle
);
4108 static void dump_create_device_request( const struct create_device_request
*req
)
4110 fprintf( stderr
, " rootdir=%04x", req
->rootdir
);
4111 dump_uint64( ", user_ptr=", &req
->user_ptr
);
4112 fprintf( stderr
, ", manager=%04x", req
->manager
);
4113 dump_varargs_unicode_str( ", name=", cur_size
);
4116 static void dump_delete_device_request( const struct delete_device_request
*req
)
4118 fprintf( stderr
, " manager=%04x", req
->manager
);
4119 dump_uint64( ", device=", &req
->device
);
4122 static void dump_get_next_device_request_request( const struct get_next_device_request_request
*req
)
4124 fprintf( stderr
, " manager=%04x", req
->manager
);
4125 fprintf( stderr
, ", prev=%04x", req
->prev
);
4126 fprintf( stderr
, ", status=%08x", req
->status
);
4127 dump_uint64( ", user_ptr=", &req
->user_ptr
);
4130 static void dump_get_next_device_request_reply( const struct get_next_device_request_reply
*req
)
4132 dump_irp_params( " params=", &req
->params
);
4133 fprintf( stderr
, ", next=%04x", req
->next
);
4134 fprintf( stderr
, ", client_tid=%04x", req
->client_tid
);
4135 dump_uint64( ", client_thread=", &req
->client_thread
);
4136 fprintf( stderr
, ", in_size=%u", req
->in_size
);
4137 dump_varargs_bytes( ", next_data=", cur_size
);
4140 static void dump_get_kernel_object_ptr_request( const struct get_kernel_object_ptr_request
*req
)
4142 fprintf( stderr
, " manager=%04x", req
->manager
);
4143 fprintf( stderr
, ", handle=%04x", req
->handle
);
4146 static void dump_get_kernel_object_ptr_reply( const struct get_kernel_object_ptr_reply
*req
)
4148 dump_uint64( " user_ptr=", &req
->user_ptr
);
4151 static void dump_set_kernel_object_ptr_request( const struct set_kernel_object_ptr_request
*req
)
4153 fprintf( stderr
, " manager=%04x", req
->manager
);
4154 fprintf( stderr
, ", handle=%04x", req
->handle
);
4155 dump_uint64( ", user_ptr=", &req
->user_ptr
);
4158 static void dump_grab_kernel_object_request( const struct grab_kernel_object_request
*req
)
4160 fprintf( stderr
, " manager=%04x", req
->manager
);
4161 dump_uint64( ", user_ptr=", &req
->user_ptr
);
4164 static void dump_release_kernel_object_request( const struct release_kernel_object_request
*req
)
4166 fprintf( stderr
, " manager=%04x", req
->manager
);
4167 dump_uint64( ", user_ptr=", &req
->user_ptr
);
4170 static void dump_get_kernel_object_handle_request( const struct get_kernel_object_handle_request
*req
)
4172 fprintf( stderr
, " manager=%04x", req
->manager
);
4173 dump_uint64( ", user_ptr=", &req
->user_ptr
);
4174 fprintf( stderr
, ", access=%08x", req
->access
);
4177 static void dump_get_kernel_object_handle_reply( const struct get_kernel_object_handle_reply
*req
)
4179 fprintf( stderr
, " handle=%04x", req
->handle
);
4182 static void dump_make_process_system_request( const struct make_process_system_request
*req
)
4186 static void dump_make_process_system_reply( const struct make_process_system_reply
*req
)
4188 fprintf( stderr
, " event=%04x", req
->event
);
4191 static void dump_get_token_statistics_request( const struct get_token_statistics_request
*req
)
4193 fprintf( stderr
, " handle=%04x", req
->handle
);
4196 static void dump_get_token_statistics_reply( const struct get_token_statistics_reply
*req
)
4198 dump_luid( " token_id=", &req
->token_id
);
4199 dump_luid( ", modified_id=", &req
->modified_id
);
4200 fprintf( stderr
, ", primary=%d", req
->primary
);
4201 fprintf( stderr
, ", impersonation_level=%d", req
->impersonation_level
);
4202 fprintf( stderr
, ", group_count=%d", req
->group_count
);
4203 fprintf( stderr
, ", privilege_count=%d", req
->privilege_count
);
4206 static void dump_create_completion_request( const struct create_completion_request
*req
)
4208 fprintf( stderr
, " access=%08x", req
->access
);
4209 fprintf( stderr
, ", concurrent=%08x", req
->concurrent
);
4210 dump_varargs_object_attributes( ", objattr=", cur_size
);
4213 static void dump_create_completion_reply( const struct create_completion_reply
*req
)
4215 fprintf( stderr
, " handle=%04x", req
->handle
);
4218 static void dump_open_completion_request( const struct open_completion_request
*req
)
4220 fprintf( stderr
, " access=%08x", req
->access
);
4221 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
4222 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
4223 dump_varargs_unicode_str( ", filename=", cur_size
);
4226 static void dump_open_completion_reply( const struct open_completion_reply
*req
)
4228 fprintf( stderr
, " handle=%04x", req
->handle
);
4231 static void dump_add_completion_request( const struct add_completion_request
*req
)
4233 fprintf( stderr
, " handle=%04x", req
->handle
);
4234 dump_uint64( ", ckey=", &req
->ckey
);
4235 dump_uint64( ", cvalue=", &req
->cvalue
);
4236 dump_uint64( ", information=", &req
->information
);
4237 fprintf( stderr
, ", status=%08x", req
->status
);
4240 static void dump_remove_completion_request( const struct remove_completion_request
*req
)
4242 fprintf( stderr
, " handle=%04x", req
->handle
);
4245 static void dump_remove_completion_reply( const struct remove_completion_reply
*req
)
4247 dump_uint64( " ckey=", &req
->ckey
);
4248 dump_uint64( ", cvalue=", &req
->cvalue
);
4249 dump_uint64( ", information=", &req
->information
);
4250 fprintf( stderr
, ", status=%08x", req
->status
);
4253 static void dump_query_completion_request( const struct query_completion_request
*req
)
4255 fprintf( stderr
, " handle=%04x", req
->handle
);
4258 static void dump_query_completion_reply( const struct query_completion_reply
*req
)
4260 fprintf( stderr
, " depth=%08x", req
->depth
);
4263 static void dump_set_completion_info_request( const struct set_completion_info_request
*req
)
4265 fprintf( stderr
, " handle=%04x", req
->handle
);
4266 dump_uint64( ", ckey=", &req
->ckey
);
4267 fprintf( stderr
, ", chandle=%04x", req
->chandle
);
4270 static void dump_add_fd_completion_request( const struct add_fd_completion_request
*req
)
4272 fprintf( stderr
, " handle=%04x", req
->handle
);
4273 dump_uint64( ", cvalue=", &req
->cvalue
);
4274 dump_uint64( ", information=", &req
->information
);
4275 fprintf( stderr
, ", status=%08x", req
->status
);
4276 fprintf( stderr
, ", async=%d", req
->async
);
4279 static void dump_set_fd_completion_mode_request( const struct set_fd_completion_mode_request
*req
)
4281 fprintf( stderr
, " handle=%04x", req
->handle
);
4282 fprintf( stderr
, ", flags=%08x", req
->flags
);
4285 static void dump_set_fd_disp_info_request( const struct set_fd_disp_info_request
*req
)
4287 fprintf( stderr
, " handle=%04x", req
->handle
);
4288 fprintf( stderr
, ", unlink=%d", req
->unlink
);
4291 static void dump_set_fd_name_info_request( const struct set_fd_name_info_request
*req
)
4293 fprintf( stderr
, " handle=%04x", req
->handle
);
4294 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
4295 fprintf( stderr
, ", link=%d", req
->link
);
4296 fprintf( stderr
, ", replace=%d", req
->replace
);
4297 dump_varargs_string( ", filename=", cur_size
);
4300 static void dump_get_window_layered_info_request( const struct get_window_layered_info_request
*req
)
4302 fprintf( stderr
, " handle=%08x", req
->handle
);
4305 static void dump_get_window_layered_info_reply( const struct get_window_layered_info_reply
*req
)
4307 fprintf( stderr
, " color_key=%08x", req
->color_key
);
4308 fprintf( stderr
, ", alpha=%08x", req
->alpha
);
4309 fprintf( stderr
, ", flags=%08x", req
->flags
);
4312 static void dump_set_window_layered_info_request( const struct set_window_layered_info_request
*req
)
4314 fprintf( stderr
, " handle=%08x", req
->handle
);
4315 fprintf( stderr
, ", color_key=%08x", req
->color_key
);
4316 fprintf( stderr
, ", alpha=%08x", req
->alpha
);
4317 fprintf( stderr
, ", flags=%08x", req
->flags
);
4320 static void dump_alloc_user_handle_request( const struct alloc_user_handle_request
*req
)
4324 static void dump_alloc_user_handle_reply( const struct alloc_user_handle_reply
*req
)
4326 fprintf( stderr
, " handle=%08x", req
->handle
);
4329 static void dump_free_user_handle_request( const struct free_user_handle_request
*req
)
4331 fprintf( stderr
, " handle=%08x", req
->handle
);
4334 static void dump_set_cursor_request( const struct set_cursor_request
*req
)
4336 fprintf( stderr
, " flags=%08x", req
->flags
);
4337 fprintf( stderr
, ", handle=%08x", req
->handle
);
4338 fprintf( stderr
, ", show_count=%d", req
->show_count
);
4339 fprintf( stderr
, ", x=%d", req
->x
);
4340 fprintf( stderr
, ", y=%d", req
->y
);
4341 dump_rectangle( ", clip=", &req
->clip
);
4342 fprintf( stderr
, ", clip_msg=%08x", req
->clip_msg
);
4345 static void dump_set_cursor_reply( const struct set_cursor_reply
*req
)
4347 fprintf( stderr
, " prev_handle=%08x", req
->prev_handle
);
4348 fprintf( stderr
, ", prev_count=%d", req
->prev_count
);
4349 fprintf( stderr
, ", prev_x=%d", req
->prev_x
);
4350 fprintf( stderr
, ", prev_y=%d", req
->prev_y
);
4351 fprintf( stderr
, ", new_x=%d", req
->new_x
);
4352 fprintf( stderr
, ", new_y=%d", req
->new_y
);
4353 dump_rectangle( ", new_clip=", &req
->new_clip
);
4354 fprintf( stderr
, ", last_change=%08x", req
->last_change
);
4357 static void dump_get_cursor_history_request( const struct get_cursor_history_request
*req
)
4361 static void dump_get_cursor_history_reply( const struct get_cursor_history_reply
*req
)
4363 dump_varargs_cursor_positions( " history=", cur_size
);
4366 static void dump_get_rawinput_buffer_request( const struct get_rawinput_buffer_request
*req
)
4368 fprintf( stderr
, " rawinput_size=%u", req
->rawinput_size
);
4369 fprintf( stderr
, ", buffer_size=%u", req
->buffer_size
);
4372 static void dump_get_rawinput_buffer_reply( const struct get_rawinput_buffer_reply
*req
)
4374 fprintf( stderr
, " next_size=%u", req
->next_size
);
4375 fprintf( stderr
, ", count=%08x", req
->count
);
4376 dump_varargs_bytes( ", data=", cur_size
);
4379 static void dump_update_rawinput_devices_request( const struct update_rawinput_devices_request
*req
)
4381 dump_varargs_rawinput_devices( " devices=", cur_size
);
4384 static void dump_get_rawinput_devices_request( const struct get_rawinput_devices_request
*req
)
4388 static void dump_get_rawinput_devices_reply( const struct get_rawinput_devices_reply
*req
)
4390 fprintf( stderr
, " device_count=%08x", req
->device_count
);
4391 dump_varargs_rawinput_devices( ", devices=", cur_size
);
4394 static void dump_create_job_request( const struct create_job_request
*req
)
4396 fprintf( stderr
, " access=%08x", req
->access
);
4397 dump_varargs_object_attributes( ", objattr=", cur_size
);
4400 static void dump_create_job_reply( const struct create_job_reply
*req
)
4402 fprintf( stderr
, " handle=%04x", req
->handle
);
4405 static void dump_open_job_request( const struct open_job_request
*req
)
4407 fprintf( stderr
, " access=%08x", req
->access
);
4408 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
4409 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
4410 dump_varargs_unicode_str( ", name=", cur_size
);
4413 static void dump_open_job_reply( const struct open_job_reply
*req
)
4415 fprintf( stderr
, " handle=%04x", req
->handle
);
4418 static void dump_assign_job_request( const struct assign_job_request
*req
)
4420 fprintf( stderr
, " job=%04x", req
->job
);
4421 fprintf( stderr
, ", process=%04x", req
->process
);
4424 static void dump_process_in_job_request( const struct process_in_job_request
*req
)
4426 fprintf( stderr
, " job=%04x", req
->job
);
4427 fprintf( stderr
, ", process=%04x", req
->process
);
4430 static void dump_set_job_limits_request( const struct set_job_limits_request
*req
)
4432 fprintf( stderr
, " handle=%04x", req
->handle
);
4433 fprintf( stderr
, ", limit_flags=%08x", req
->limit_flags
);
4436 static void dump_set_job_completion_port_request( const struct set_job_completion_port_request
*req
)
4438 fprintf( stderr
, " job=%04x", req
->job
);
4439 fprintf( stderr
, ", port=%04x", req
->port
);
4440 dump_uint64( ", key=", &req
->key
);
4443 static void dump_get_job_info_request( const struct get_job_info_request
*req
)
4445 fprintf( stderr
, " handle=%04x", req
->handle
);
4448 static void dump_get_job_info_reply( const struct get_job_info_reply
*req
)
4450 fprintf( stderr
, " total_processes=%d", req
->total_processes
);
4451 fprintf( stderr
, ", active_processes=%d", req
->active_processes
);
4454 static void dump_terminate_job_request( const struct terminate_job_request
*req
)
4456 fprintf( stderr
, " handle=%04x", req
->handle
);
4457 fprintf( stderr
, ", status=%d", req
->status
);
4460 static void dump_suspend_process_request( const struct suspend_process_request
*req
)
4462 fprintf( stderr
, " handle=%04x", req
->handle
);
4465 static void dump_resume_process_request( const struct resume_process_request
*req
)
4467 fprintf( stderr
, " handle=%04x", req
->handle
);
4470 static const dump_func req_dumpers
[REQ_NB_REQUESTS
] = {
4471 (dump_func
)dump_new_process_request
,
4472 (dump_func
)dump_exec_process_request
,
4473 (dump_func
)dump_get_new_process_info_request
,
4474 (dump_func
)dump_new_thread_request
,
4475 (dump_func
)dump_get_startup_info_request
,
4476 (dump_func
)dump_init_process_done_request
,
4477 (dump_func
)dump_init_first_thread_request
,
4478 (dump_func
)dump_init_thread_request
,
4479 (dump_func
)dump_terminate_process_request
,
4480 (dump_func
)dump_terminate_thread_request
,
4481 (dump_func
)dump_get_process_info_request
,
4482 (dump_func
)dump_get_process_debug_info_request
,
4483 (dump_func
)dump_get_process_vm_counters_request
,
4484 (dump_func
)dump_set_process_info_request
,
4485 (dump_func
)dump_get_thread_info_request
,
4486 (dump_func
)dump_get_thread_times_request
,
4487 (dump_func
)dump_set_thread_info_request
,
4488 (dump_func
)dump_get_dll_info_request
,
4489 (dump_func
)dump_suspend_thread_request
,
4490 (dump_func
)dump_resume_thread_request
,
4491 (dump_func
)dump_load_dll_request
,
4492 (dump_func
)dump_unload_dll_request
,
4493 (dump_func
)dump_queue_apc_request
,
4494 (dump_func
)dump_get_apc_result_request
,
4495 (dump_func
)dump_close_handle_request
,
4496 (dump_func
)dump_set_handle_info_request
,
4497 (dump_func
)dump_dup_handle_request
,
4498 (dump_func
)dump_make_temporary_request
,
4499 (dump_func
)dump_open_process_request
,
4500 (dump_func
)dump_open_thread_request
,
4501 (dump_func
)dump_select_request
,
4502 (dump_func
)dump_create_event_request
,
4503 (dump_func
)dump_event_op_request
,
4504 (dump_func
)dump_query_event_request
,
4505 (dump_func
)dump_open_event_request
,
4506 (dump_func
)dump_create_keyed_event_request
,
4507 (dump_func
)dump_open_keyed_event_request
,
4508 (dump_func
)dump_create_mutex_request
,
4509 (dump_func
)dump_release_mutex_request
,
4510 (dump_func
)dump_open_mutex_request
,
4511 (dump_func
)dump_query_mutex_request
,
4512 (dump_func
)dump_create_semaphore_request
,
4513 (dump_func
)dump_release_semaphore_request
,
4514 (dump_func
)dump_query_semaphore_request
,
4515 (dump_func
)dump_open_semaphore_request
,
4516 (dump_func
)dump_create_file_request
,
4517 (dump_func
)dump_open_file_object_request
,
4518 (dump_func
)dump_alloc_file_handle_request
,
4519 (dump_func
)dump_get_handle_unix_name_request
,
4520 (dump_func
)dump_get_handle_fd_request
,
4521 (dump_func
)dump_get_directory_cache_entry_request
,
4522 (dump_func
)dump_flush_request
,
4523 (dump_func
)dump_get_file_info_request
,
4524 (dump_func
)dump_get_volume_info_request
,
4525 (dump_func
)dump_lock_file_request
,
4526 (dump_func
)dump_unlock_file_request
,
4527 (dump_func
)dump_set_socket_event_request
,
4528 (dump_func
)dump_get_socket_event_request
,
4529 (dump_func
)dump_get_socket_info_request
,
4530 (dump_func
)dump_enable_socket_event_request
,
4531 (dump_func
)dump_set_socket_deferred_request
,
4532 (dump_func
)dump_get_next_console_request_request
,
4533 (dump_func
)dump_read_directory_changes_request
,
4534 (dump_func
)dump_read_change_request
,
4535 (dump_func
)dump_create_mapping_request
,
4536 (dump_func
)dump_open_mapping_request
,
4537 (dump_func
)dump_get_mapping_info_request
,
4538 (dump_func
)dump_map_view_request
,
4539 (dump_func
)dump_unmap_view_request
,
4540 (dump_func
)dump_get_mapping_committed_range_request
,
4541 (dump_func
)dump_add_mapping_committed_range_request
,
4542 (dump_func
)dump_is_same_mapping_request
,
4543 (dump_func
)dump_list_processes_request
,
4544 (dump_func
)dump_create_debug_obj_request
,
4545 (dump_func
)dump_wait_debug_event_request
,
4546 (dump_func
)dump_queue_exception_event_request
,
4547 (dump_func
)dump_get_exception_status_request
,
4548 (dump_func
)dump_continue_debug_event_request
,
4549 (dump_func
)dump_debug_process_request
,
4550 (dump_func
)dump_set_debug_obj_info_request
,
4551 (dump_func
)dump_read_process_memory_request
,
4552 (dump_func
)dump_write_process_memory_request
,
4553 (dump_func
)dump_create_key_request
,
4554 (dump_func
)dump_open_key_request
,
4555 (dump_func
)dump_delete_key_request
,
4556 (dump_func
)dump_flush_key_request
,
4557 (dump_func
)dump_enum_key_request
,
4558 (dump_func
)dump_set_key_value_request
,
4559 (dump_func
)dump_get_key_value_request
,
4560 (dump_func
)dump_enum_key_value_request
,
4561 (dump_func
)dump_delete_key_value_request
,
4562 (dump_func
)dump_load_registry_request
,
4563 (dump_func
)dump_unload_registry_request
,
4564 (dump_func
)dump_save_registry_request
,
4565 (dump_func
)dump_set_registry_notification_request
,
4566 (dump_func
)dump_create_timer_request
,
4567 (dump_func
)dump_open_timer_request
,
4568 (dump_func
)dump_set_timer_request
,
4569 (dump_func
)dump_cancel_timer_request
,
4570 (dump_func
)dump_get_timer_info_request
,
4571 (dump_func
)dump_get_thread_context_request
,
4572 (dump_func
)dump_set_thread_context_request
,
4573 (dump_func
)dump_get_selector_entry_request
,
4574 (dump_func
)dump_add_atom_request
,
4575 (dump_func
)dump_delete_atom_request
,
4576 (dump_func
)dump_find_atom_request
,
4577 (dump_func
)dump_get_atom_information_request
,
4578 (dump_func
)dump_set_atom_information_request
,
4579 (dump_func
)dump_empty_atom_table_request
,
4580 (dump_func
)dump_init_atom_table_request
,
4581 (dump_func
)dump_get_msg_queue_request
,
4582 (dump_func
)dump_set_queue_fd_request
,
4583 (dump_func
)dump_set_queue_mask_request
,
4584 (dump_func
)dump_get_queue_status_request
,
4585 (dump_func
)dump_get_process_idle_event_request
,
4586 (dump_func
)dump_send_message_request
,
4587 (dump_func
)dump_post_quit_message_request
,
4588 (dump_func
)dump_send_hardware_message_request
,
4589 (dump_func
)dump_get_message_request
,
4590 (dump_func
)dump_reply_message_request
,
4591 (dump_func
)dump_accept_hardware_message_request
,
4592 (dump_func
)dump_get_message_reply_request
,
4593 (dump_func
)dump_set_win_timer_request
,
4594 (dump_func
)dump_kill_win_timer_request
,
4595 (dump_func
)dump_is_window_hung_request
,
4596 (dump_func
)dump_get_serial_info_request
,
4597 (dump_func
)dump_set_serial_info_request
,
4598 (dump_func
)dump_register_async_request
,
4599 (dump_func
)dump_cancel_async_request
,
4600 (dump_func
)dump_get_async_result_request
,
4601 (dump_func
)dump_read_request
,
4602 (dump_func
)dump_write_request
,
4603 (dump_func
)dump_ioctl_request
,
4604 (dump_func
)dump_set_irp_result_request
,
4605 (dump_func
)dump_create_named_pipe_request
,
4606 (dump_func
)dump_set_named_pipe_info_request
,
4607 (dump_func
)dump_create_window_request
,
4608 (dump_func
)dump_destroy_window_request
,
4609 (dump_func
)dump_get_desktop_window_request
,
4610 (dump_func
)dump_set_window_owner_request
,
4611 (dump_func
)dump_get_window_info_request
,
4612 (dump_func
)dump_set_window_info_request
,
4613 (dump_func
)dump_set_parent_request
,
4614 (dump_func
)dump_get_window_parents_request
,
4615 (dump_func
)dump_get_window_children_request
,
4616 (dump_func
)dump_get_window_children_from_point_request
,
4617 (dump_func
)dump_get_window_tree_request
,
4618 (dump_func
)dump_set_window_pos_request
,
4619 (dump_func
)dump_get_window_rectangles_request
,
4620 (dump_func
)dump_get_window_text_request
,
4621 (dump_func
)dump_set_window_text_request
,
4622 (dump_func
)dump_get_windows_offset_request
,
4623 (dump_func
)dump_get_visible_region_request
,
4624 (dump_func
)dump_get_surface_region_request
,
4625 (dump_func
)dump_get_window_region_request
,
4626 (dump_func
)dump_set_window_region_request
,
4627 (dump_func
)dump_get_update_region_request
,
4628 (dump_func
)dump_update_window_zorder_request
,
4629 (dump_func
)dump_redraw_window_request
,
4630 (dump_func
)dump_set_window_property_request
,
4631 (dump_func
)dump_remove_window_property_request
,
4632 (dump_func
)dump_get_window_property_request
,
4633 (dump_func
)dump_get_window_properties_request
,
4634 (dump_func
)dump_create_winstation_request
,
4635 (dump_func
)dump_open_winstation_request
,
4636 (dump_func
)dump_close_winstation_request
,
4637 (dump_func
)dump_get_process_winstation_request
,
4638 (dump_func
)dump_set_process_winstation_request
,
4639 (dump_func
)dump_enum_winstation_request
,
4640 (dump_func
)dump_create_desktop_request
,
4641 (dump_func
)dump_open_desktop_request
,
4642 (dump_func
)dump_open_input_desktop_request
,
4643 (dump_func
)dump_close_desktop_request
,
4644 (dump_func
)dump_get_thread_desktop_request
,
4645 (dump_func
)dump_set_thread_desktop_request
,
4646 (dump_func
)dump_enum_desktop_request
,
4647 (dump_func
)dump_set_user_object_info_request
,
4648 (dump_func
)dump_register_hotkey_request
,
4649 (dump_func
)dump_unregister_hotkey_request
,
4650 (dump_func
)dump_attach_thread_input_request
,
4651 (dump_func
)dump_get_thread_input_request
,
4652 (dump_func
)dump_get_last_input_time_request
,
4653 (dump_func
)dump_get_key_state_request
,
4654 (dump_func
)dump_set_key_state_request
,
4655 (dump_func
)dump_set_foreground_window_request
,
4656 (dump_func
)dump_set_focus_window_request
,
4657 (dump_func
)dump_set_active_window_request
,
4658 (dump_func
)dump_set_capture_window_request
,
4659 (dump_func
)dump_set_caret_window_request
,
4660 (dump_func
)dump_set_caret_info_request
,
4661 (dump_func
)dump_set_hook_request
,
4662 (dump_func
)dump_remove_hook_request
,
4663 (dump_func
)dump_start_hook_chain_request
,
4664 (dump_func
)dump_finish_hook_chain_request
,
4665 (dump_func
)dump_get_hook_info_request
,
4666 (dump_func
)dump_create_class_request
,
4667 (dump_func
)dump_destroy_class_request
,
4668 (dump_func
)dump_set_class_info_request
,
4669 (dump_func
)dump_open_clipboard_request
,
4670 (dump_func
)dump_close_clipboard_request
,
4671 (dump_func
)dump_empty_clipboard_request
,
4672 (dump_func
)dump_set_clipboard_data_request
,
4673 (dump_func
)dump_get_clipboard_data_request
,
4674 (dump_func
)dump_get_clipboard_formats_request
,
4675 (dump_func
)dump_enum_clipboard_formats_request
,
4676 (dump_func
)dump_release_clipboard_request
,
4677 (dump_func
)dump_get_clipboard_info_request
,
4678 (dump_func
)dump_set_clipboard_viewer_request
,
4679 (dump_func
)dump_add_clipboard_listener_request
,
4680 (dump_func
)dump_remove_clipboard_listener_request
,
4681 (dump_func
)dump_open_token_request
,
4682 (dump_func
)dump_set_global_windows_request
,
4683 (dump_func
)dump_adjust_token_privileges_request
,
4684 (dump_func
)dump_get_token_privileges_request
,
4685 (dump_func
)dump_check_token_privileges_request
,
4686 (dump_func
)dump_duplicate_token_request
,
4687 (dump_func
)dump_filter_token_request
,
4688 (dump_func
)dump_access_check_request
,
4689 (dump_func
)dump_get_token_sid_request
,
4690 (dump_func
)dump_get_token_groups_request
,
4691 (dump_func
)dump_get_token_default_dacl_request
,
4692 (dump_func
)dump_set_token_default_dacl_request
,
4693 (dump_func
)dump_set_security_object_request
,
4694 (dump_func
)dump_get_security_object_request
,
4695 (dump_func
)dump_get_system_handles_request
,
4696 (dump_func
)dump_create_mailslot_request
,
4697 (dump_func
)dump_set_mailslot_info_request
,
4698 (dump_func
)dump_create_directory_request
,
4699 (dump_func
)dump_open_directory_request
,
4700 (dump_func
)dump_get_directory_entry_request
,
4701 (dump_func
)dump_create_symlink_request
,
4702 (dump_func
)dump_open_symlink_request
,
4703 (dump_func
)dump_query_symlink_request
,
4704 (dump_func
)dump_get_object_info_request
,
4705 (dump_func
)dump_get_object_type_request
,
4706 (dump_func
)dump_get_object_types_request
,
4707 (dump_func
)dump_get_token_impersonation_level_request
,
4708 (dump_func
)dump_allocate_locally_unique_id_request
,
4709 (dump_func
)dump_create_device_manager_request
,
4710 (dump_func
)dump_create_device_request
,
4711 (dump_func
)dump_delete_device_request
,
4712 (dump_func
)dump_get_next_device_request_request
,
4713 (dump_func
)dump_get_kernel_object_ptr_request
,
4714 (dump_func
)dump_set_kernel_object_ptr_request
,
4715 (dump_func
)dump_grab_kernel_object_request
,
4716 (dump_func
)dump_release_kernel_object_request
,
4717 (dump_func
)dump_get_kernel_object_handle_request
,
4718 (dump_func
)dump_make_process_system_request
,
4719 (dump_func
)dump_get_token_statistics_request
,
4720 (dump_func
)dump_create_completion_request
,
4721 (dump_func
)dump_open_completion_request
,
4722 (dump_func
)dump_add_completion_request
,
4723 (dump_func
)dump_remove_completion_request
,
4724 (dump_func
)dump_query_completion_request
,
4725 (dump_func
)dump_set_completion_info_request
,
4726 (dump_func
)dump_add_fd_completion_request
,
4727 (dump_func
)dump_set_fd_completion_mode_request
,
4728 (dump_func
)dump_set_fd_disp_info_request
,
4729 (dump_func
)dump_set_fd_name_info_request
,
4730 (dump_func
)dump_get_window_layered_info_request
,
4731 (dump_func
)dump_set_window_layered_info_request
,
4732 (dump_func
)dump_alloc_user_handle_request
,
4733 (dump_func
)dump_free_user_handle_request
,
4734 (dump_func
)dump_set_cursor_request
,
4735 (dump_func
)dump_get_cursor_history_request
,
4736 (dump_func
)dump_get_rawinput_buffer_request
,
4737 (dump_func
)dump_update_rawinput_devices_request
,
4738 (dump_func
)dump_get_rawinput_devices_request
,
4739 (dump_func
)dump_create_job_request
,
4740 (dump_func
)dump_open_job_request
,
4741 (dump_func
)dump_assign_job_request
,
4742 (dump_func
)dump_process_in_job_request
,
4743 (dump_func
)dump_set_job_limits_request
,
4744 (dump_func
)dump_set_job_completion_port_request
,
4745 (dump_func
)dump_get_job_info_request
,
4746 (dump_func
)dump_terminate_job_request
,
4747 (dump_func
)dump_suspend_process_request
,
4748 (dump_func
)dump_resume_process_request
,
4751 static const dump_func reply_dumpers
[REQ_NB_REQUESTS
] = {
4752 (dump_func
)dump_new_process_reply
,
4754 (dump_func
)dump_get_new_process_info_reply
,
4755 (dump_func
)dump_new_thread_reply
,
4756 (dump_func
)dump_get_startup_info_reply
,
4757 (dump_func
)dump_init_process_done_reply
,
4758 (dump_func
)dump_init_first_thread_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_debug_info_reply
,
4764 (dump_func
)dump_get_process_vm_counters_reply
,
4766 (dump_func
)dump_get_thread_info_reply
,
4767 (dump_func
)dump_get_thread_times_reply
,
4769 (dump_func
)dump_get_dll_info_reply
,
4770 (dump_func
)dump_suspend_thread_reply
,
4771 (dump_func
)dump_resume_thread_reply
,
4774 (dump_func
)dump_queue_apc_reply
,
4775 (dump_func
)dump_get_apc_result_reply
,
4777 (dump_func
)dump_set_handle_info_reply
,
4778 (dump_func
)dump_dup_handle_reply
,
4780 (dump_func
)dump_open_process_reply
,
4781 (dump_func
)dump_open_thread_reply
,
4782 (dump_func
)dump_select_reply
,
4783 (dump_func
)dump_create_event_reply
,
4784 (dump_func
)dump_event_op_reply
,
4785 (dump_func
)dump_query_event_reply
,
4786 (dump_func
)dump_open_event_reply
,
4787 (dump_func
)dump_create_keyed_event_reply
,
4788 (dump_func
)dump_open_keyed_event_reply
,
4789 (dump_func
)dump_create_mutex_reply
,
4790 (dump_func
)dump_release_mutex_reply
,
4791 (dump_func
)dump_open_mutex_reply
,
4792 (dump_func
)dump_query_mutex_reply
,
4793 (dump_func
)dump_create_semaphore_reply
,
4794 (dump_func
)dump_release_semaphore_reply
,
4795 (dump_func
)dump_query_semaphore_reply
,
4796 (dump_func
)dump_open_semaphore_reply
,
4797 (dump_func
)dump_create_file_reply
,
4798 (dump_func
)dump_open_file_object_reply
,
4799 (dump_func
)dump_alloc_file_handle_reply
,
4800 (dump_func
)dump_get_handle_unix_name_reply
,
4801 (dump_func
)dump_get_handle_fd_reply
,
4802 (dump_func
)dump_get_directory_cache_entry_reply
,
4803 (dump_func
)dump_flush_reply
,
4804 (dump_func
)dump_get_file_info_reply
,
4805 (dump_func
)dump_get_volume_info_reply
,
4806 (dump_func
)dump_lock_file_reply
,
4809 (dump_func
)dump_get_socket_event_reply
,
4810 (dump_func
)dump_get_socket_info_reply
,
4813 (dump_func
)dump_get_next_console_request_reply
,
4815 (dump_func
)dump_read_change_reply
,
4816 (dump_func
)dump_create_mapping_reply
,
4817 (dump_func
)dump_open_mapping_reply
,
4818 (dump_func
)dump_get_mapping_info_reply
,
4821 (dump_func
)dump_get_mapping_committed_range_reply
,
4824 (dump_func
)dump_list_processes_reply
,
4825 (dump_func
)dump_create_debug_obj_reply
,
4826 (dump_func
)dump_wait_debug_event_reply
,
4827 (dump_func
)dump_queue_exception_event_reply
,
4832 (dump_func
)dump_read_process_memory_reply
,
4834 (dump_func
)dump_create_key_reply
,
4835 (dump_func
)dump_open_key_reply
,
4838 (dump_func
)dump_enum_key_reply
,
4840 (dump_func
)dump_get_key_value_reply
,
4841 (dump_func
)dump_enum_key_value_reply
,
4847 (dump_func
)dump_create_timer_reply
,
4848 (dump_func
)dump_open_timer_reply
,
4849 (dump_func
)dump_set_timer_reply
,
4850 (dump_func
)dump_cancel_timer_reply
,
4851 (dump_func
)dump_get_timer_info_reply
,
4852 (dump_func
)dump_get_thread_context_reply
,
4853 (dump_func
)dump_set_thread_context_reply
,
4854 (dump_func
)dump_get_selector_entry_reply
,
4855 (dump_func
)dump_add_atom_reply
,
4857 (dump_func
)dump_find_atom_reply
,
4858 (dump_func
)dump_get_atom_information_reply
,
4861 (dump_func
)dump_init_atom_table_reply
,
4862 (dump_func
)dump_get_msg_queue_reply
,
4864 (dump_func
)dump_set_queue_mask_reply
,
4865 (dump_func
)dump_get_queue_status_reply
,
4866 (dump_func
)dump_get_process_idle_event_reply
,
4869 (dump_func
)dump_send_hardware_message_reply
,
4870 (dump_func
)dump_get_message_reply
,
4873 (dump_func
)dump_get_message_reply_reply
,
4874 (dump_func
)dump_set_win_timer_reply
,
4876 (dump_func
)dump_is_window_hung_reply
,
4877 (dump_func
)dump_get_serial_info_reply
,
4881 (dump_func
)dump_get_async_result_reply
,
4882 (dump_func
)dump_read_reply
,
4883 (dump_func
)dump_write_reply
,
4884 (dump_func
)dump_ioctl_reply
,
4886 (dump_func
)dump_create_named_pipe_reply
,
4888 (dump_func
)dump_create_window_reply
,
4890 (dump_func
)dump_get_desktop_window_reply
,
4891 (dump_func
)dump_set_window_owner_reply
,
4892 (dump_func
)dump_get_window_info_reply
,
4893 (dump_func
)dump_set_window_info_reply
,
4894 (dump_func
)dump_set_parent_reply
,
4895 (dump_func
)dump_get_window_parents_reply
,
4896 (dump_func
)dump_get_window_children_reply
,
4897 (dump_func
)dump_get_window_children_from_point_reply
,
4898 (dump_func
)dump_get_window_tree_reply
,
4899 (dump_func
)dump_set_window_pos_reply
,
4900 (dump_func
)dump_get_window_rectangles_reply
,
4901 (dump_func
)dump_get_window_text_reply
,
4903 (dump_func
)dump_get_windows_offset_reply
,
4904 (dump_func
)dump_get_visible_region_reply
,
4905 (dump_func
)dump_get_surface_region_reply
,
4906 (dump_func
)dump_get_window_region_reply
,
4908 (dump_func
)dump_get_update_region_reply
,
4912 (dump_func
)dump_remove_window_property_reply
,
4913 (dump_func
)dump_get_window_property_reply
,
4914 (dump_func
)dump_get_window_properties_reply
,
4915 (dump_func
)dump_create_winstation_reply
,
4916 (dump_func
)dump_open_winstation_reply
,
4918 (dump_func
)dump_get_process_winstation_reply
,
4920 (dump_func
)dump_enum_winstation_reply
,
4921 (dump_func
)dump_create_desktop_reply
,
4922 (dump_func
)dump_open_desktop_reply
,
4923 (dump_func
)dump_open_input_desktop_reply
,
4925 (dump_func
)dump_get_thread_desktop_reply
,
4927 (dump_func
)dump_enum_desktop_reply
,
4928 (dump_func
)dump_set_user_object_info_reply
,
4929 (dump_func
)dump_register_hotkey_reply
,
4930 (dump_func
)dump_unregister_hotkey_reply
,
4932 (dump_func
)dump_get_thread_input_reply
,
4933 (dump_func
)dump_get_last_input_time_reply
,
4934 (dump_func
)dump_get_key_state_reply
,
4936 (dump_func
)dump_set_foreground_window_reply
,
4937 (dump_func
)dump_set_focus_window_reply
,
4938 (dump_func
)dump_set_active_window_reply
,
4939 (dump_func
)dump_set_capture_window_reply
,
4940 (dump_func
)dump_set_caret_window_reply
,
4941 (dump_func
)dump_set_caret_info_reply
,
4942 (dump_func
)dump_set_hook_reply
,
4943 (dump_func
)dump_remove_hook_reply
,
4944 (dump_func
)dump_start_hook_chain_reply
,
4946 (dump_func
)dump_get_hook_info_reply
,
4947 (dump_func
)dump_create_class_reply
,
4948 (dump_func
)dump_destroy_class_reply
,
4949 (dump_func
)dump_set_class_info_reply
,
4950 (dump_func
)dump_open_clipboard_reply
,
4951 (dump_func
)dump_close_clipboard_reply
,
4953 (dump_func
)dump_set_clipboard_data_reply
,
4954 (dump_func
)dump_get_clipboard_data_reply
,
4955 (dump_func
)dump_get_clipboard_formats_reply
,
4956 (dump_func
)dump_enum_clipboard_formats_reply
,
4957 (dump_func
)dump_release_clipboard_reply
,
4958 (dump_func
)dump_get_clipboard_info_reply
,
4959 (dump_func
)dump_set_clipboard_viewer_reply
,
4962 (dump_func
)dump_open_token_reply
,
4963 (dump_func
)dump_set_global_windows_reply
,
4964 (dump_func
)dump_adjust_token_privileges_reply
,
4965 (dump_func
)dump_get_token_privileges_reply
,
4966 (dump_func
)dump_check_token_privileges_reply
,
4967 (dump_func
)dump_duplicate_token_reply
,
4968 (dump_func
)dump_filter_token_reply
,
4969 (dump_func
)dump_access_check_reply
,
4970 (dump_func
)dump_get_token_sid_reply
,
4971 (dump_func
)dump_get_token_groups_reply
,
4972 (dump_func
)dump_get_token_default_dacl_reply
,
4975 (dump_func
)dump_get_security_object_reply
,
4976 (dump_func
)dump_get_system_handles_reply
,
4977 (dump_func
)dump_create_mailslot_reply
,
4978 (dump_func
)dump_set_mailslot_info_reply
,
4979 (dump_func
)dump_create_directory_reply
,
4980 (dump_func
)dump_open_directory_reply
,
4981 (dump_func
)dump_get_directory_entry_reply
,
4982 (dump_func
)dump_create_symlink_reply
,
4983 (dump_func
)dump_open_symlink_reply
,
4984 (dump_func
)dump_query_symlink_reply
,
4985 (dump_func
)dump_get_object_info_reply
,
4986 (dump_func
)dump_get_object_type_reply
,
4987 (dump_func
)dump_get_object_types_reply
,
4988 (dump_func
)dump_get_token_impersonation_level_reply
,
4989 (dump_func
)dump_allocate_locally_unique_id_reply
,
4990 (dump_func
)dump_create_device_manager_reply
,
4993 (dump_func
)dump_get_next_device_request_reply
,
4994 (dump_func
)dump_get_kernel_object_ptr_reply
,
4998 (dump_func
)dump_get_kernel_object_handle_reply
,
4999 (dump_func
)dump_make_process_system_reply
,
5000 (dump_func
)dump_get_token_statistics_reply
,
5001 (dump_func
)dump_create_completion_reply
,
5002 (dump_func
)dump_open_completion_reply
,
5004 (dump_func
)dump_remove_completion_reply
,
5005 (dump_func
)dump_query_completion_reply
,
5011 (dump_func
)dump_get_window_layered_info_reply
,
5013 (dump_func
)dump_alloc_user_handle_reply
,
5015 (dump_func
)dump_set_cursor_reply
,
5016 (dump_func
)dump_get_cursor_history_reply
,
5017 (dump_func
)dump_get_rawinput_buffer_reply
,
5019 (dump_func
)dump_get_rawinput_devices_reply
,
5020 (dump_func
)dump_create_job_reply
,
5021 (dump_func
)dump_open_job_reply
,
5026 (dump_func
)dump_get_job_info_reply
,
5032 static const char * const req_names
[REQ_NB_REQUESTS
] = {
5035 "get_new_process_info",
5038 "init_process_done",
5039 "init_first_thread",
5041 "terminate_process",
5044 "get_process_debug_info",
5045 "get_process_vm_counters",
5068 "create_keyed_event",
5075 "release_semaphore",
5080 "alloc_file_handle",
5081 "get_handle_unix_name",
5083 "get_directory_cache_entry",
5092 "enable_socket_event",
5093 "set_socket_deferred",
5094 "get_next_console_request",
5095 "read_directory_changes",
5102 "get_mapping_committed_range",
5103 "add_mapping_committed_range",
5108 "queue_exception_event",
5109 "get_exception_status",
5110 "continue_debug_event",
5112 "set_debug_obj_info",
5113 "read_process_memory",
5114 "write_process_memory",
5127 "set_registry_notification",
5133 "get_thread_context",
5134 "set_thread_context",
5135 "get_selector_entry",
5139 "get_atom_information",
5140 "set_atom_information",
5147 "get_process_idle_event",
5149 "post_quit_message",
5150 "send_hardware_message",
5153 "accept_hardware_message",
5154 "get_message_reply",
5167 "create_named_pipe",
5168 "set_named_pipe_info",
5171 "get_desktop_window",
5176 "get_window_parents",
5177 "get_window_children",
5178 "get_window_children_from_point",
5181 "get_window_rectangles",
5184 "get_windows_offset",
5185 "get_visible_region",
5186 "get_surface_region",
5187 "get_window_region",
5188 "set_window_region",
5189 "get_update_region",
5190 "update_window_zorder",
5192 "set_window_property",
5193 "remove_window_property",
5194 "get_window_property",
5195 "get_window_properties",
5196 "create_winstation",
5199 "get_process_winstation",
5200 "set_process_winstation",
5204 "open_input_desktop",
5206 "get_thread_desktop",
5207 "set_thread_desktop",
5209 "set_user_object_info",
5211 "unregister_hotkey",
5212 "attach_thread_input",
5214 "get_last_input_time",
5217 "set_foreground_window",
5219 "set_active_window",
5220 "set_capture_window",
5226 "finish_hook_chain",
5234 "set_clipboard_data",
5235 "get_clipboard_data",
5236 "get_clipboard_formats",
5237 "enum_clipboard_formats",
5238 "release_clipboard",
5239 "get_clipboard_info",
5240 "set_clipboard_viewer",
5241 "add_clipboard_listener",
5242 "remove_clipboard_listener",
5244 "set_global_windows",
5245 "adjust_token_privileges",
5246 "get_token_privileges",
5247 "check_token_privileges",
5253 "get_token_default_dacl",
5254 "set_token_default_dacl",
5255 "set_security_object",
5256 "get_security_object",
5257 "get_system_handles",
5259 "set_mailslot_info",
5262 "get_directory_entry",
5269 "get_token_impersonation_level",
5270 "allocate_locally_unique_id",
5271 "create_device_manager",
5274 "get_next_device_request",
5275 "get_kernel_object_ptr",
5276 "set_kernel_object_ptr",
5277 "grab_kernel_object",
5278 "release_kernel_object",
5279 "get_kernel_object_handle",
5280 "make_process_system",
5281 "get_token_statistics",
5282 "create_completion",
5285 "remove_completion",
5287 "set_completion_info",
5288 "add_fd_completion",
5289 "set_fd_completion_mode",
5292 "get_window_layered_info",
5293 "set_window_layered_info",
5294 "alloc_user_handle",
5297 "get_cursor_history",
5298 "get_rawinput_buffer",
5299 "update_rawinput_devices",
5300 "get_rawinput_devices",
5306 "set_job_completion_port",
5319 { "ABANDONED_WAIT_0", STATUS_ABANDONED_WAIT_0
},
5320 { "ACCESS_DENIED", STATUS_ACCESS_DENIED
},
5321 { "ACCESS_VIOLATION", STATUS_ACCESS_VIOLATION
},
5322 { "ADDRESS_ALREADY_ASSOCIATED", STATUS_ADDRESS_ALREADY_ASSOCIATED
},
5323 { "ALERTED", STATUS_ALERTED
},
5324 { "BAD_DEVICE_TYPE", STATUS_BAD_DEVICE_TYPE
},
5325 { "BAD_IMPERSONATION_LEVEL", STATUS_BAD_IMPERSONATION_LEVEL
},
5326 { "BUFFER_OVERFLOW", STATUS_BUFFER_OVERFLOW
},
5327 { "BUFFER_TOO_SMALL", STATUS_BUFFER_TOO_SMALL
},
5328 { "CANCELLED", STATUS_CANCELLED
},
5329 { "CANNOT_DELETE", STATUS_CANNOT_DELETE
},
5330 { "CANT_OPEN_ANONYMOUS", STATUS_CANT_OPEN_ANONYMOUS
},
5331 { "CANT_WAIT", STATUS_CANT_WAIT
},
5332 { "CHILD_MUST_BE_VOLATILE", STATUS_CHILD_MUST_BE_VOLATILE
},
5333 { "CONNECTION_ABORTED", STATUS_CONNECTION_ABORTED
},
5334 { "CONNECTION_DISCONNECTED", STATUS_CONNECTION_DISCONNECTED
},
5335 { "CONNECTION_REFUSED", STATUS_CONNECTION_REFUSED
},
5336 { "CONNECTION_RESET", STATUS_CONNECTION_RESET
},
5337 { "DEBUGGER_INACTIVE", STATUS_DEBUGGER_INACTIVE
},
5338 { "DEVICE_BUSY", STATUS_DEVICE_BUSY
},
5339 { "DIRECTORY_NOT_EMPTY", STATUS_DIRECTORY_NOT_EMPTY
},
5340 { "DISK_FULL", STATUS_DISK_FULL
},
5341 { "DLL_NOT_FOUND", STATUS_DLL_NOT_FOUND
},
5342 { "ERROR_CLASS_ALREADY_EXISTS", 0xc0010000 | ERROR_CLASS_ALREADY_EXISTS
},
5343 { "ERROR_CLASS_DOES_NOT_EXIST", 0xc0010000 | ERROR_CLASS_DOES_NOT_EXIST
},
5344 { "ERROR_CLASS_HAS_WINDOWS", 0xc0010000 | ERROR_CLASS_HAS_WINDOWS
},
5345 { "ERROR_CLIPBOARD_NOT_OPEN", 0xc0010000 | ERROR_CLIPBOARD_NOT_OPEN
},
5346 { "ERROR_HOTKEY_ALREADY_REGISTERED", 0xc0010000 | ERROR_HOTKEY_ALREADY_REGISTERED
},
5347 { "ERROR_HOTKEY_NOT_REGISTERED", 0xc0010000 | ERROR_HOTKEY_NOT_REGISTERED
},
5348 { "ERROR_INVALID_CURSOR_HANDLE", 0xc0010000 | ERROR_INVALID_CURSOR_HANDLE
},
5349 { "ERROR_INVALID_INDEX", 0xc0010000 | ERROR_INVALID_INDEX
},
5350 { "ERROR_INVALID_WINDOW_HANDLE", 0xc0010000 | ERROR_INVALID_WINDOW_HANDLE
},
5351 { "ERROR_NO_MORE_USER_HANDLES", 0xc0010000 | ERROR_NO_MORE_USER_HANDLES
},
5352 { "ERROR_WINDOW_OF_OTHER_THREAD", 0xc0010000 | ERROR_WINDOW_OF_OTHER_THREAD
},
5353 { "FILE_DELETED", STATUS_FILE_DELETED
},
5354 { "FILE_IS_A_DIRECTORY", STATUS_FILE_IS_A_DIRECTORY
},
5355 { "FILE_LOCK_CONFLICT", STATUS_FILE_LOCK_CONFLICT
},
5356 { "GENERIC_NOT_MAPPED", STATUS_GENERIC_NOT_MAPPED
},
5357 { "HANDLES_CLOSED", STATUS_HANDLES_CLOSED
},
5358 { "HANDLE_NOT_CLOSABLE", STATUS_HANDLE_NOT_CLOSABLE
},
5359 { "HOST_UNREACHABLE", STATUS_HOST_UNREACHABLE
},
5360 { "ILLEGAL_FUNCTION", STATUS_ILLEGAL_FUNCTION
},
5361 { "IMAGE_NOT_AT_BASE", STATUS_IMAGE_NOT_AT_BASE
},
5362 { "INFO_LENGTH_MISMATCH", STATUS_INFO_LENGTH_MISMATCH
},
5363 { "INSTANCE_NOT_AVAILABLE", STATUS_INSTANCE_NOT_AVAILABLE
},
5364 { "INSUFFICIENT_RESOURCES", STATUS_INSUFFICIENT_RESOURCES
},
5365 { "INVALID_CID", STATUS_INVALID_CID
},
5366 { "INVALID_DEVICE_REQUEST", STATUS_INVALID_DEVICE_REQUEST
},
5367 { "INVALID_FILE_FOR_SECTION", STATUS_INVALID_FILE_FOR_SECTION
},
5368 { "INVALID_HANDLE", STATUS_INVALID_HANDLE
},
5369 { "INVALID_IMAGE_FORMAT", STATUS_INVALID_IMAGE_FORMAT
},
5370 { "INVALID_IMAGE_NE_FORMAT", STATUS_INVALID_IMAGE_NE_FORMAT
},
5371 { "INVALID_IMAGE_NOT_MZ", STATUS_INVALID_IMAGE_NOT_MZ
},
5372 { "INVALID_IMAGE_PROTECT", STATUS_INVALID_IMAGE_PROTECT
},
5373 { "INVALID_IMAGE_WIN_16", STATUS_INVALID_IMAGE_WIN_16
},
5374 { "INVALID_IMAGE_WIN_64", STATUS_INVALID_IMAGE_WIN_64
},
5375 { "INVALID_LOCK_SEQUENCE", STATUS_INVALID_LOCK_SEQUENCE
},
5376 { "INVALID_OWNER", STATUS_INVALID_OWNER
},
5377 { "INVALID_PARAMETER", STATUS_INVALID_PARAMETER
},
5378 { "INVALID_PIPE_STATE", STATUS_INVALID_PIPE_STATE
},
5379 { "INVALID_READ_MODE", STATUS_INVALID_READ_MODE
},
5380 { "INVALID_SECURITY_DESCR", STATUS_INVALID_SECURITY_DESCR
},
5381 { "IO_TIMEOUT", STATUS_IO_TIMEOUT
},
5382 { "KERNEL_APC", STATUS_KERNEL_APC
},
5383 { "KEY_DELETED", STATUS_KEY_DELETED
},
5384 { "MAPPED_FILE_SIZE_ZERO", STATUS_MAPPED_FILE_SIZE_ZERO
},
5385 { "MORE_PROCESSING_REQUIRED", STATUS_MORE_PROCESSING_REQUIRED
},
5386 { "MUTANT_NOT_OWNED", STATUS_MUTANT_NOT_OWNED
},
5387 { "NAME_TOO_LONG", STATUS_NAME_TOO_LONG
},
5388 { "NETWORK_BUSY", STATUS_NETWORK_BUSY
},
5389 { "NETWORK_UNREACHABLE", STATUS_NETWORK_UNREACHABLE
},
5390 { "NOT_ALL_ASSIGNED", STATUS_NOT_ALL_ASSIGNED
},
5391 { "NOT_A_DIRECTORY", STATUS_NOT_A_DIRECTORY
},
5392 { "NOT_FOUND", STATUS_NOT_FOUND
},
5393 { "NOT_IMPLEMENTED", STATUS_NOT_IMPLEMENTED
},
5394 { "NOT_MAPPED_VIEW", STATUS_NOT_MAPPED_VIEW
},
5395 { "NOT_REGISTRY_FILE", STATUS_NOT_REGISTRY_FILE
},
5396 { "NOT_SAME_DEVICE", STATUS_NOT_SAME_DEVICE
},
5397 { "NOT_SUPPORTED", STATUS_NOT_SUPPORTED
},
5398 { "NO_DATA_DETECTED", STATUS_NO_DATA_DETECTED
},
5399 { "NO_IMPERSONATION_TOKEN", STATUS_NO_IMPERSONATION_TOKEN
},
5400 { "NO_MEMORY", STATUS_NO_MEMORY
},
5401 { "NO_MORE_ENTRIES", STATUS_NO_MORE_ENTRIES
},
5402 { "NO_SUCH_DEVICE", STATUS_NO_SUCH_DEVICE
},
5403 { "NO_SUCH_FILE", STATUS_NO_SUCH_FILE
},
5404 { "NO_TOKEN", STATUS_NO_TOKEN
},
5405 { "OBJECT_NAME_COLLISION", STATUS_OBJECT_NAME_COLLISION
},
5406 { "OBJECT_NAME_EXISTS", STATUS_OBJECT_NAME_EXISTS
},
5407 { "OBJECT_NAME_INVALID", STATUS_OBJECT_NAME_INVALID
},
5408 { "OBJECT_NAME_NOT_FOUND", STATUS_OBJECT_NAME_NOT_FOUND
},
5409 { "OBJECT_PATH_INVALID", STATUS_OBJECT_PATH_INVALID
},
5410 { "OBJECT_PATH_NOT_FOUND", STATUS_OBJECT_PATH_NOT_FOUND
},
5411 { "OBJECT_PATH_SYNTAX_BAD", STATUS_OBJECT_PATH_SYNTAX_BAD
},
5412 { "OBJECT_TYPE_MISMATCH", STATUS_OBJECT_TYPE_MISMATCH
},
5413 { "PENDING", STATUS_PENDING
},
5414 { "PIPE_BROKEN", STATUS_PIPE_BROKEN
},
5415 { "PIPE_BUSY", STATUS_PIPE_BUSY
},
5416 { "PIPE_CLOSING", STATUS_PIPE_CLOSING
},
5417 { "PIPE_CONNECTED", STATUS_PIPE_CONNECTED
},
5418 { "PIPE_DISCONNECTED", STATUS_PIPE_DISCONNECTED
},
5419 { "PIPE_EMPTY", STATUS_PIPE_EMPTY
},
5420 { "PIPE_LISTENING", STATUS_PIPE_LISTENING
},
5421 { "PIPE_NOT_AVAILABLE", STATUS_PIPE_NOT_AVAILABLE
},
5422 { "PORT_NOT_SET", STATUS_PORT_NOT_SET
},
5423 { "PRIVILEGE_NOT_HELD", STATUS_PRIVILEGE_NOT_HELD
},
5424 { "PROCESS_IN_JOB", STATUS_PROCESS_IN_JOB
},
5425 { "PROCESS_IS_TERMINATING", STATUS_PROCESS_IS_TERMINATING
},
5426 { "PROCESS_NOT_IN_JOB", STATUS_PROCESS_NOT_IN_JOB
},
5427 { "REPARSE_POINT_NOT_RESOLVED", STATUS_REPARSE_POINT_NOT_RESOLVED
},
5428 { "SECTION_TOO_BIG", STATUS_SECTION_TOO_BIG
},
5429 { "SEMAPHORE_LIMIT_EXCEEDED", STATUS_SEMAPHORE_LIMIT_EXCEEDED
},
5430 { "SHARING_VIOLATION", STATUS_SHARING_VIOLATION
},
5431 { "SHUTDOWN_IN_PROGRESS", STATUS_SHUTDOWN_IN_PROGRESS
},
5432 { "SUSPEND_COUNT_EXCEEDED", STATUS_SUSPEND_COUNT_EXCEEDED
},
5433 { "THREAD_IS_TERMINATING", STATUS_THREAD_IS_TERMINATING
},
5434 { "TIMEOUT", STATUS_TIMEOUT
},
5435 { "TOO_MANY_OPENED_FILES", STATUS_TOO_MANY_OPENED_FILES
},
5436 { "UNSUCCESSFUL", STATUS_UNSUCCESSFUL
},
5437 { "USER_APC", STATUS_USER_APC
},
5438 { "USER_MAPPED_FILE", STATUS_USER_MAPPED_FILE
},
5439 { "VOLUME_DISMOUNTED", STATUS_VOLUME_DISMOUNTED
},
5440 { "WAS_LOCKED", STATUS_WAS_LOCKED
},
5441 { "WSAEACCES", 0xc0010000 | WSAEACCES
},
5442 { "WSAEADDRINUSE", 0xc0010000 | WSAEADDRINUSE
},
5443 { "WSAEADDRNOTAVAIL", 0xc0010000 | WSAEADDRNOTAVAIL
},
5444 { "WSAEAFNOSUPPORT", 0xc0010000 | WSAEAFNOSUPPORT
},
5445 { "WSAEALREADY", 0xc0010000 | WSAEALREADY
},
5446 { "WSAEBADF", 0xc0010000 | WSAEBADF
},
5447 { "WSAECONNABORTED", 0xc0010000 | WSAECONNABORTED
},
5448 { "WSAECONNREFUSED", 0xc0010000 | WSAECONNREFUSED
},
5449 { "WSAECONNRESET", 0xc0010000 | WSAECONNRESET
},
5450 { "WSAEDESTADDRREQ", 0xc0010000 | WSAEDESTADDRREQ
},
5451 { "WSAEDQUOT", 0xc0010000 | WSAEDQUOT
},
5452 { "WSAEFAULT", 0xc0010000 | WSAEFAULT
},
5453 { "WSAEHOSTDOWN", 0xc0010000 | WSAEHOSTDOWN
},
5454 { "WSAEHOSTUNREACH", 0xc0010000 | WSAEHOSTUNREACH
},
5455 { "WSAEINPROGRESS", 0xc0010000 | WSAEINPROGRESS
},
5456 { "WSAEINTR", 0xc0010000 | WSAEINTR
},
5457 { "WSAEINVAL", 0xc0010000 | WSAEINVAL
},
5458 { "WSAEISCONN", 0xc0010000 | WSAEISCONN
},
5459 { "WSAELOOP", 0xc0010000 | WSAELOOP
},
5460 { "WSAEMFILE", 0xc0010000 | WSAEMFILE
},
5461 { "WSAEMSGSIZE", 0xc0010000 | WSAEMSGSIZE
},
5462 { "WSAENAMETOOLONG", 0xc0010000 | WSAENAMETOOLONG
},
5463 { "WSAENETDOWN", 0xc0010000 | WSAENETDOWN
},
5464 { "WSAENETRESET", 0xc0010000 | WSAENETRESET
},
5465 { "WSAENETUNREACH", 0xc0010000 | WSAENETUNREACH
},
5466 { "WSAENOBUFS", 0xc0010000 | WSAENOBUFS
},
5467 { "WSAENOPROTOOPT", 0xc0010000 | WSAENOPROTOOPT
},
5468 { "WSAENOTCONN", 0xc0010000 | WSAENOTCONN
},
5469 { "WSAENOTEMPTY", 0xc0010000 | WSAENOTEMPTY
},
5470 { "WSAENOTSOCK", 0xc0010000 | WSAENOTSOCK
},
5471 { "WSAEOPNOTSUPP", 0xc0010000 | WSAEOPNOTSUPP
},
5472 { "WSAEPFNOSUPPORT", 0xc0010000 | WSAEPFNOSUPPORT
},
5473 { "WSAEPROCLIM", 0xc0010000 | WSAEPROCLIM
},
5474 { "WSAEPROTONOSUPPORT", 0xc0010000 | WSAEPROTONOSUPPORT
},
5475 { "WSAEPROTOTYPE", 0xc0010000 | WSAEPROTOTYPE
},
5476 { "WSAEREMOTE", 0xc0010000 | WSAEREMOTE
},
5477 { "WSAESHUTDOWN", 0xc0010000 | WSAESHUTDOWN
},
5478 { "WSAESOCKTNOSUPPORT", 0xc0010000 | WSAESOCKTNOSUPPORT
},
5479 { "WSAESTALE", 0xc0010000 | WSAESTALE
},
5480 { "WSAETIMEDOUT", 0xc0010000 | WSAETIMEDOUT
},
5481 { "WSAETOOMANYREFS", 0xc0010000 | WSAETOOMANYREFS
},
5482 { "WSAEUSERS", 0xc0010000 | WSAEUSERS
},
5483 { "WSAEWOULDBLOCK", 0xc0010000 | WSAEWOULDBLOCK
},
5487 /* ### make_requests end ### */
5488 /* Everything above this line is generated automatically by tools/make_requests */
5490 static const char *get_status_name( unsigned int status
)
5493 static char buffer
[10];
5497 for (i
= 0; status_names
[i
].name
; i
++)
5498 if (status_names
[i
].value
== status
) return status_names
[i
].name
;
5500 sprintf( buffer
, "%x", status
);
5504 void trace_request(void)
5506 enum request req
= current
->req
.request_header
.req
;
5507 if (req
< REQ_NB_REQUESTS
)
5509 fprintf( stderr
, "%04x: %s(", current
->id
, req_names
[req
] );
5510 if (req_dumpers
[req
])
5512 cur_data
= get_req_data();
5513 cur_size
= get_req_data_size();
5514 req_dumpers
[req
]( ¤t
->req
);
5516 fprintf( stderr
, " )\n" );
5518 else fprintf( stderr
, "%04x: %d(?)\n", current
->id
, req
);
5521 void trace_reply( enum request req
, const union generic_reply
*reply
)
5523 if (req
< REQ_NB_REQUESTS
)
5525 fprintf( stderr
, "%04x: %s() = %s",
5526 current
->id
, req_names
[req
], get_status_name(current
->error
) );
5527 if (reply_dumpers
[req
])
5529 fprintf( stderr
, " {" );
5530 cur_data
= current
->reply_data
;
5531 cur_size
= reply
->reply_header
.reply_size
;
5532 reply_dumpers
[req
]( reply
);
5533 fprintf( stderr
, " }" );
5535 fputc( '\n', stderr
);
5537 else fprintf( stderr
, "%04x: %d() = %s\n",
5538 current
->id
, req
, get_status_name(current
->error
) );