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_uint128( const char *prefix
, const unsigned __int64 val
[2] )
108 unsigned __int64 low
= val
[0], high
= val
[1];
110 if ((unsigned int)high
!= high
)
111 fprintf( stderr
, "%s%x%08x%08x%08x", prefix
, (unsigned int)(high
>> 32), (unsigned int)high
,
112 (unsigned int)(low
>> 32), (unsigned int)low
);
114 fprintf( stderr
, "%s%x%08x%08x", prefix
, (unsigned int)high
,
115 (unsigned int)(low
>> 32), (unsigned int)low
);
116 else if ((unsigned int)low
!= low
)
117 fprintf( stderr
, "%s%x%08x", prefix
, (unsigned int)(low
>> 32), (unsigned int)low
);
119 fprintf( stderr
, "%s%x", prefix
, (unsigned int)low
);
122 static void dump_rectangle( const char *prefix
, const rectangle_t
*rect
)
124 fprintf( stderr
, "%s{%d,%d;%d,%d}", prefix
,
125 rect
->left
, rect
->top
, rect
->right
, rect
->bottom
);
128 static void dump_ioctl_code( const char *prefix
, const ioctl_code_t
*code
)
132 #define CASE(c) case c: fprintf( stderr, "%s%s", prefix, #c ); break
133 CASE(IOCTL_CONDRV_ACTIVATE
);
134 CASE(IOCTL_CONDRV_BIND_PID
);
135 CASE(IOCTL_CONDRV_CTRL_EVENT
);
136 CASE(IOCTL_CONDRV_FILL_OUTPUT
);
137 CASE(IOCTL_CONDRV_GET_INPUT_INFO
);
138 CASE(IOCTL_CONDRV_GET_MODE
);
139 CASE(IOCTL_CONDRV_GET_OUTPUT_INFO
);
140 CASE(IOCTL_CONDRV_GET_TITLE
);
141 CASE(IOCTL_CONDRV_PEEK
);
142 CASE(IOCTL_CONDRV_READ_CONSOLE
);
143 CASE(IOCTL_CONDRV_READ_INPUT
);
144 CASE(IOCTL_CONDRV_READ_OUTPUT
);
145 CASE(IOCTL_CONDRV_SET_MODE
);
146 CASE(IOCTL_CONDRV_SET_OUTPUT_INFO
);
147 CASE(IOCTL_CONDRV_SETUP_INPUT
);
148 CASE(IOCTL_CONDRV_WRITE_CONSOLE
);
149 CASE(IOCTL_CONDRV_WRITE_INPUT
);
150 CASE(IOCTL_CONDRV_WRITE_OUTPUT
);
151 CASE(FSCTL_DISMOUNT_VOLUME
);
152 CASE(FSCTL_PIPE_DISCONNECT
);
153 CASE(FSCTL_PIPE_LISTEN
);
154 CASE(FSCTL_PIPE_PEEK
);
155 CASE(FSCTL_PIPE_WAIT
);
156 CASE(IOCTL_SERIAL_GET_TIMEOUTS
);
157 CASE(IOCTL_SERIAL_GET_WAIT_MASK
);
158 CASE(IOCTL_SERIAL_SET_TIMEOUTS
);
159 CASE(IOCTL_SERIAL_SET_WAIT_MASK
);
160 CASE(WS_SIO_ADDRESS_LIST_CHANGE
);
161 default: fprintf( stderr
, "%s%08x", prefix
, *code
); break;
166 static void dump_apc_call( const char *prefix
, const apc_call_t
*call
)
168 fprintf( stderr
, "%s{", prefix
);
172 fprintf( stderr
, "APC_NONE" );
175 dump_uint64( "APC_USER,func=", &call
->user
.func
);
176 dump_uint64( ",args={", &call
->user
.args
[0] );
177 dump_uint64( ",", &call
->user
.args
[1] );
178 dump_uint64( ",", &call
->user
.args
[2] );
179 fputc( '}', stderr
);
182 dump_uint64( "APC_ASYNC_IO,user=", &call
->async_io
.user
);
183 dump_uint64( ",sb=", &call
->async_io
.sb
);
184 fprintf( stderr
, ",status=%s", get_status_name(call
->async_io
.status
) );
186 case APC_VIRTUAL_ALLOC
:
187 dump_uint64( "APC_VIRTUAL_ALLOC,addr==", &call
->virtual_alloc
.addr
);
188 dump_uint64( ",size=", &call
->virtual_alloc
.size
);
189 dump_uint64( ",zero_bits=", &call
->virtual_alloc
.zero_bits
);
190 fprintf( stderr
, ",op_type=%x,prot=%x", call
->virtual_alloc
.op_type
, call
->virtual_alloc
.prot
);
192 case APC_VIRTUAL_FREE
:
193 dump_uint64( "APC_VIRTUAL_FREE,addr=", &call
->virtual_free
.addr
);
194 dump_uint64( ",size=", &call
->virtual_free
.size
);
195 fprintf( stderr
, ",op_type=%x", call
->virtual_free
.op_type
);
197 case APC_VIRTUAL_QUERY
:
198 dump_uint64( "APC_VIRTUAL_QUERY,addr=", &call
->virtual_query
.addr
);
200 case APC_VIRTUAL_PROTECT
:
201 dump_uint64( "APC_VIRTUAL_PROTECT,addr=", &call
->virtual_protect
.addr
);
202 dump_uint64( ",size=", &call
->virtual_protect
.size
);
203 fprintf( stderr
, ",prot=%x", call
->virtual_protect
.prot
);
205 case APC_VIRTUAL_FLUSH
:
206 dump_uint64( "APC_VIRTUAL_FLUSH,addr=", &call
->virtual_flush
.addr
);
207 dump_uint64( ",size=", &call
->virtual_flush
.size
);
209 case APC_VIRTUAL_LOCK
:
210 dump_uint64( "APC_VIRTUAL_LOCK,addr=", &call
->virtual_lock
.addr
);
211 dump_uint64( ",size=", &call
->virtual_lock
.size
);
213 case APC_VIRTUAL_UNLOCK
:
214 dump_uint64( "APC_VIRTUAL_UNLOCK,addr=", &call
->virtual_unlock
.addr
);
215 dump_uint64( ",size=", &call
->virtual_unlock
.size
);
218 fprintf( stderr
, "APC_MAP_VIEW,handle=%04x", call
->map_view
.handle
);
219 dump_uint64( ",addr=", &call
->map_view
.addr
);
220 dump_uint64( ",size=", &call
->map_view
.size
);
221 dump_uint64( ",offset=", &call
->map_view
.offset
);
222 dump_uint64( ",zero_bits=", &call
->map_view
.zero_bits
);
223 fprintf( stderr
, ",alloc_type=%x,prot=%x", call
->map_view
.alloc_type
, call
->map_view
.prot
);
226 dump_uint64( "APC_UNMAP_VIEW,addr=", &call
->unmap_view
.addr
);
228 case APC_CREATE_THREAD
:
229 dump_uint64( "APC_CREATE_THREAD,func=", &call
->create_thread
.func
);
230 dump_uint64( ",arg=", &call
->create_thread
.arg
);
231 dump_uint64( ",zero_bits=", &call
->create_thread
.zero_bits
);
232 dump_uint64( ",reserve=", &call
->create_thread
.reserve
);
233 dump_uint64( ",commit=", &call
->create_thread
.commit
);
234 fprintf( stderr
, ",flags=%x", call
->create_thread
.flags
);
237 fprintf( stderr
, "APC_DUP_HANDLE,src_handle=%04x,dst_process=%04x,access=%x,attributes=%x,options=%x",
238 call
->dup_handle
.src_handle
, call
->dup_handle
.dst_process
, call
->dup_handle
.access
,
239 call
->dup_handle
.attributes
, call
->dup_handle
.options
);
241 case APC_BREAK_PROCESS
:
242 fprintf( stderr
, "APC_BREAK_PROCESS" );
245 fprintf( stderr
, "type=%u", call
->type
);
248 fputc( '}', stderr
);
251 static void dump_apc_result( const char *prefix
, const apc_result_t
*result
)
253 fprintf( stderr
, "%s{", prefix
);
259 fprintf( stderr
, "APC_ASYNC_IO,status=%s,total=%u",
260 get_status_name( result
->async_io
.status
), result
->async_io
.total
);
262 case APC_VIRTUAL_ALLOC
:
263 fprintf( stderr
, "APC_VIRTUAL_ALLOC,status=%s",
264 get_status_name( result
->virtual_alloc
.status
));
265 dump_uint64( ",addr=", &result
->virtual_alloc
.addr
);
266 dump_uint64( ",size=", &result
->virtual_alloc
.size
);
268 case APC_VIRTUAL_FREE
:
269 fprintf( stderr
, "APC_VIRTUAL_FREE,status=%s",
270 get_status_name( result
->virtual_free
.status
));
271 dump_uint64( ",addr=", &result
->virtual_free
.addr
);
272 dump_uint64( ",size=", &result
->virtual_free
.size
);
274 case APC_VIRTUAL_QUERY
:
275 fprintf( stderr
, "APC_VIRTUAL_QUERY,status=%s",
276 get_status_name( result
->virtual_query
.status
));
277 dump_uint64( ",base=", &result
->virtual_query
.base
);
278 dump_uint64( ",alloc_base=", &result
->virtual_query
.alloc_base
);
279 dump_uint64( ",size=", &result
->virtual_query
.size
);
280 fprintf( stderr
, ",state=%x,prot=%x,alloc_prot=%x,alloc_type=%x",
281 result
->virtual_query
.state
, result
->virtual_query
.prot
,
282 result
->virtual_query
.alloc_prot
, result
->virtual_query
.alloc_type
);
284 case APC_VIRTUAL_PROTECT
:
285 fprintf( stderr
, "APC_VIRTUAL_PROTECT,status=%s",
286 get_status_name( result
->virtual_protect
.status
));
287 dump_uint64( ",addr=", &result
->virtual_protect
.addr
);
288 dump_uint64( ",size=", &result
->virtual_protect
.size
);
289 fprintf( stderr
, ",prot=%x", result
->virtual_protect
.prot
);
291 case APC_VIRTUAL_FLUSH
:
292 fprintf( stderr
, "APC_VIRTUAL_FLUSH,status=%s",
293 get_status_name( result
->virtual_flush
.status
));
294 dump_uint64( ",addr=", &result
->virtual_flush
.addr
);
295 dump_uint64( ",size=", &result
->virtual_flush
.size
);
297 case APC_VIRTUAL_LOCK
:
298 fprintf( stderr
, "APC_VIRTUAL_LOCK,status=%s",
299 get_status_name( result
->virtual_lock
.status
));
300 dump_uint64( ",addr=", &result
->virtual_lock
.addr
);
301 dump_uint64( ",size=", &result
->virtual_lock
.size
);
303 case APC_VIRTUAL_UNLOCK
:
304 fprintf( stderr
, "APC_VIRTUAL_UNLOCK,status=%s",
305 get_status_name( result
->virtual_unlock
.status
));
306 dump_uint64( ",addr=", &result
->virtual_unlock
.addr
);
307 dump_uint64( ",size=", &result
->virtual_unlock
.size
);
310 fprintf( stderr
, "APC_MAP_VIEW,status=%s",
311 get_status_name( result
->map_view
.status
));
312 dump_uint64( ",addr=", &result
->map_view
.addr
);
313 dump_uint64( ",size=", &result
->map_view
.size
);
316 fprintf( stderr
, "APC_UNMAP_VIEW,status=%s",
317 get_status_name( result
->unmap_view
.status
) );
319 case APC_CREATE_THREAD
:
320 fprintf( stderr
, "APC_CREATE_THREAD,status=%s,pid=%04x,tid=%04x,handle=%04x",
321 get_status_name( result
->create_thread
.status
),
322 result
->create_thread
.pid
, result
->create_thread
.tid
, result
->create_thread
.handle
);
325 fprintf( stderr
, "APC_DUP_HANDLE,status=%s,handle=%04x",
326 get_status_name( result
->dup_handle
.status
), result
->dup_handle
.handle
);
328 case APC_BREAK_PROCESS
:
329 fprintf( stderr
, "APC_BREAK_PROCESS,status=%s", get_status_name( result
->break_process
.status
) );
332 fprintf( stderr
, "type=%u", result
->type
);
335 fputc( '}', stderr
);
338 static void dump_async_data( const char *prefix
, const async_data_t
*data
)
340 fprintf( stderr
, "%s{handle=%04x,event=%04x", prefix
, data
->handle
, data
->event
);
341 dump_uint64( ",iosb=", &data
->iosb
);
342 dump_uint64( ",user=", &data
->user
);
343 dump_uint64( ",apc=", &data
->apc
);
344 dump_uint64( ",apc_context=", &data
->apc_context
);
345 fputc( '}', stderr
);
348 static void dump_irp_params( const char *prefix
, const irp_params_t
*data
)
353 fprintf( stderr
, "%s{NONE}", prefix
);
355 case IRP_CALL_CREATE
:
356 fprintf( stderr
, "%s{CREATE,access=%08x,sharing=%08x,options=%08x",
357 prefix
, data
->create
.access
, data
->create
.sharing
, data
->create
.options
);
358 dump_uint64( ",device=", &data
->create
.device
);
359 fprintf( stderr
, ",file=%08x}", data
->create
.file
);
362 fprintf( stderr
, "%s{CLOSE", prefix
);
363 dump_uint64( ",file=", &data
->close
.file
);
364 fputc( '}', stderr
);
367 fprintf( stderr
, "%s{READ,key=%08x,out_size=%u", prefix
, data
->read
.key
,
368 data
->read
.out_size
);
369 dump_uint64( ",pos=", &data
->read
.pos
);
370 dump_uint64( ",file=", &data
->read
.file
);
371 fputc( '}', stderr
);
374 fprintf( stderr
, "%s{WRITE,key=%08x", prefix
, data
->write
.key
);
375 dump_uint64( ",pos=", &data
->write
.pos
);
376 dump_uint64( ",file=", &data
->write
.file
);
377 fputc( '}', stderr
);
380 fprintf( stderr
, "%s{FLUSH", prefix
);
381 dump_uint64( ",file=", &data
->flush
.file
);
382 fputc( '}', stderr
);
385 fprintf( stderr
, "%s{IOCTL", prefix
);
386 dump_ioctl_code( ",code=", &data
->ioctl
.code
);
387 fprintf( stderr
, ",out_size=%u", data
->ioctl
.out_size
);
388 dump_uint64( ",file=", &data
->ioctl
.file
);
389 fputc( '}', stderr
);
391 case IRP_CALL_VOLUME
:
392 fprintf( stderr
, "%s{VOLUME,class=%u,out_size=%u", prefix
,
393 data
->volume
.info_class
, data
->volume
.out_size
);
394 dump_uint64( ",file=", &data
->volume
.file
);
395 fputc( '}', stderr
);
398 fprintf( stderr
, "%s{FREE", prefix
);
399 dump_uint64( ",obj=", &data
->free
.obj
);
400 fputc( '}', stderr
);
402 case IRP_CALL_CANCEL
:
403 fprintf( stderr
, "%s{CANCEL", prefix
);
404 dump_uint64( ",irp=", &data
->cancel
.irp
);
405 fputc( '}', stderr
);
410 static void dump_rawinput( const char *prefix
, const union rawinput
*rawinput
)
412 switch (rawinput
->type
)
415 fprintf( stderr
, "%s{type=MOUSE,x=%d,y=%d,data=%08x}", prefix
, rawinput
->mouse
.x
,
416 rawinput
->mouse
.y
, rawinput
->mouse
.data
);
418 case RIM_TYPEKEYBOARD
:
419 fprintf( stderr
, "%s{type=KEYBOARD,message=%04x,vkey=%04hx,scan=%04hx}", prefix
,
420 rawinput
->kbd
.message
, rawinput
->kbd
.vkey
, rawinput
->kbd
.scan
);
423 fprintf( stderr
, "%s{type=HID,device=%04x,param=%04x,page=%04hx,usage=%04hx,count=%u,length=%u}",
424 prefix
, rawinput
->hid
.device
, rawinput
->hid
.param
, rawinput
->hid
.usage_page
,
425 rawinput
->hid
.usage
, rawinput
->hid
.count
, rawinput
->hid
.length
);
428 fprintf( stderr
, "%s{type=%04x}", prefix
, rawinput
->type
);
433 static void dump_hw_input( const char *prefix
, const hw_input_t
*input
)
438 fprintf( stderr
, "%s{type=MOUSE,x=%d,y=%d,data=%08x,flags=%08x,time=%u",
439 prefix
, input
->mouse
.x
, input
->mouse
.y
, input
->mouse
.data
, input
->mouse
.flags
,
441 dump_uint64( ",info=", &input
->mouse
.info
);
442 fputc( '}', stderr
);
445 fprintf( stderr
, "%s{type=KEYBOARD,vkey=%04hx,scan=%04hx,flags=%08x,time=%u",
446 prefix
, input
->kbd
.vkey
, input
->kbd
.scan
, input
->kbd
.flags
, input
->kbd
.time
);
447 dump_uint64( ",info=", &input
->kbd
.info
);
448 fputc( '}', stderr
);
451 fprintf( stderr
, "%s{type=HARDWARE,msg=%04x", prefix
, input
->hw
.msg
);
452 dump_uint64( ",lparam=", &input
->hw
.lparam
);
453 switch (input
->hw
.msg
)
456 case WM_INPUT_DEVICE_CHANGE
:
457 dump_rawinput( ",rawinput=", &input
->hw
.rawinput
);
459 fputc( '}', stderr
);
462 fprintf( stderr
, "%s{type=%04x}", prefix
, input
->type
);
467 static void dump_luid( const char *prefix
, const luid_t
*luid
)
469 fprintf( stderr
, "%s%d.%u", prefix
, luid
->high_part
, luid
->low_part
);
472 static void dump_generic_map( const char *prefix
, const generic_map_t
*map
)
474 fprintf( stderr
, "%s{r=%08x,w=%08x,x=%08x,a=%08x}",
475 prefix
, map
->read
, map
->write
, map
->exec
, map
->all
);
478 static void dump_varargs_ints( const char *prefix
, data_size_t size
)
480 const int *data
= cur_data
;
481 data_size_t len
= size
/ sizeof(*data
);
483 fprintf( stderr
,"%s{", prefix
);
486 fprintf( stderr
, "%d", *data
++ );
487 if (--len
) fputc( ',', stderr
);
489 fputc( '}', stderr
);
493 static void dump_varargs_uints( const char *prefix
, data_size_t size
)
495 const unsigned int *data
= cur_data
;
497 dump_uints( prefix
, data
, size
/ sizeof(*data
) );
501 static void dump_varargs_uints64( const char *prefix
, data_size_t size
)
503 const unsigned __int64
*data
= cur_data
;
504 data_size_t len
= size
/ sizeof(*data
);
506 fprintf( stderr
,"%s{", prefix
);
509 dump_uint64( "", data
++ );
510 if (--len
) fputc( ',', stderr
);
512 fputc( '}', stderr
);
516 static void dump_varargs_ushorts( const char *prefix
, data_size_t size
)
518 const unsigned short *data
= cur_data
;
519 data_size_t len
= size
/ sizeof(*data
);
521 fprintf( stderr
, "%s{", prefix
);
524 fprintf( stderr
, "%04x", *data
++ );
525 if (--len
) fputc( ',', stderr
);
527 fputc( '}', stderr
);
531 static void dump_varargs_apc_result( const char *prefix
, data_size_t size
)
533 const apc_result_t
*result
= cur_data
;
535 if (size
>= sizeof(*result
))
537 dump_apc_result( prefix
, result
);
538 size
= sizeof(*result
);
543 static void dump_varargs_select_op( const char *prefix
, data_size_t size
)
549 fprintf( stderr
, "%s{}", prefix
);
552 memset( &data
, 0, sizeof(data
) );
553 memcpy( &data
, cur_data
, min( size
, sizeof(data
) ));
555 fprintf( stderr
, "%s{", prefix
);
559 fprintf( stderr
, "NONE" );
562 case SELECT_WAIT_ALL
:
563 fprintf( stderr
, "%s", data
.op
== SELECT_WAIT
? "WAIT" : "WAIT_ALL" );
564 if (size
> offsetof( select_op_t
, wait
.handles
))
565 dump_handles( ",handles=", data
.wait
.handles
,
566 min( size
, sizeof(data
.wait
) ) - offsetof( select_op_t
, wait
.handles
));
568 case SELECT_SIGNAL_AND_WAIT
:
569 fprintf( stderr
, "SIGNAL_AND_WAIT,signal=%04x,wait=%04x",
570 data
.signal_and_wait
.signal
, data
.signal_and_wait
.wait
);
572 case SELECT_KEYED_EVENT_WAIT
:
573 case SELECT_KEYED_EVENT_RELEASE
:
574 fprintf( stderr
, "KEYED_EVENT_%s,handle=%04x",
575 data
.op
== SELECT_KEYED_EVENT_WAIT
? "WAIT" : "RELEASE",
576 data
.keyed_event
.handle
);
577 dump_uint64( ",key=", &data
.keyed_event
.key
);
580 fprintf( stderr
, "op=%u", data
.op
);
583 fputc( '}', stderr
);
587 static void dump_varargs_user_handles( const char *prefix
, data_size_t size
)
589 const user_handle_t
*data
= cur_data
;
590 data_size_t len
= size
/ sizeof(*data
);
592 fprintf( stderr
,"%s{", prefix
);
595 fprintf( stderr
, "%08x", *data
++ );
596 if (--len
) fputc( ',', stderr
);
598 fputc( '}', stderr
);
602 static void dump_varargs_bytes( const char *prefix
, data_size_t size
)
604 const unsigned char *data
= cur_data
;
605 data_size_t len
= min( 1024, size
);
607 fprintf( stderr
,"%s{", prefix
);
610 fprintf( stderr
, "%02x", *data
++ );
611 if (--len
) fputc( ',', stderr
);
613 if (size
> 1024) fprintf( stderr
, "...(total %u)", size
);
614 fputc( '}', stderr
);
618 static void dump_varargs_string( const char *prefix
, data_size_t size
)
620 fprintf( stderr
, "%s\"%.*s\"", prefix
, (int)size
, (const char *)cur_data
);
624 static void dump_varargs_unicode_str( const char *prefix
, data_size_t size
)
626 fprintf( stderr
, "%sL\"", prefix
);
627 dump_strW( cur_data
, size
, stderr
, "\"\"" );
628 fputc( '\"', stderr
);
632 static void dump_varargs_context( const char *prefix
, data_size_t size
)
634 const context_t
*context
= cur_data
;
640 fprintf( stderr
, "%s{}", prefix
);
643 size
= min( size
, sizeof(ctx
) );
644 memset( &ctx
, 0, sizeof(ctx
) );
645 memcpy( &ctx
, context
, size
);
649 case IMAGE_FILE_MACHINE_I386
:
650 fprintf( stderr
, "%s{machine=i386", prefix
);
651 if (ctx
.flags
& SERVER_CTX_CONTROL
)
652 fprintf( stderr
, ",eip=%08x,esp=%08x,ebp=%08x,eflags=%08x,cs=%04x,ss=%04x",
653 ctx
.ctl
.i386_regs
.eip
, ctx
.ctl
.i386_regs
.esp
, ctx
.ctl
.i386_regs
.ebp
,
654 ctx
.ctl
.i386_regs
.eflags
, ctx
.ctl
.i386_regs
.cs
, ctx
.ctl
.i386_regs
.ss
);
655 if (ctx
.flags
& SERVER_CTX_SEGMENTS
)
656 fprintf( stderr
, ",ds=%04x,es=%04x,fs=%04x,gs=%04x",
657 ctx
.seg
.i386_regs
.ds
, ctx
.seg
.i386_regs
.es
,
658 ctx
.seg
.i386_regs
.fs
, ctx
.seg
.i386_regs
.gs
);
659 if (ctx
.flags
& SERVER_CTX_INTEGER
)
660 fprintf( stderr
, ",eax=%08x,ebx=%08x,ecx=%08x,edx=%08x,esi=%08x,edi=%08x",
661 ctx
.integer
.i386_regs
.eax
, ctx
.integer
.i386_regs
.ebx
, ctx
.integer
.i386_regs
.ecx
,
662 ctx
.integer
.i386_regs
.edx
, ctx
.integer
.i386_regs
.esi
, ctx
.integer
.i386_regs
.edi
);
663 if (ctx
.flags
& SERVER_CTX_DEBUG_REGISTERS
)
664 fprintf( stderr
, ",dr0=%08x,dr1=%08x,dr2=%08x,dr3=%08x,dr6=%08x,dr7=%08x",
665 ctx
.debug
.i386_regs
.dr0
, ctx
.debug
.i386_regs
.dr1
, ctx
.debug
.i386_regs
.dr2
,
666 ctx
.debug
.i386_regs
.dr3
, ctx
.debug
.i386_regs
.dr6
, ctx
.debug
.i386_regs
.dr7
);
667 if (ctx
.flags
& SERVER_CTX_FLOATING_POINT
)
669 fprintf( stderr
, ",fp.ctrl=%08x,fp.status=%08x,fp.tag=%08x,fp.err_off=%08x,fp.err_sel=%08x",
670 ctx
.fp
.i386_regs
.ctrl
, ctx
.fp
.i386_regs
.status
, ctx
.fp
.i386_regs
.tag
,
671 ctx
.fp
.i386_regs
.err_off
, ctx
.fp
.i386_regs
.err_sel
);
672 fprintf( stderr
, ",fp.data_off=%08x,fp.data_sel=%08x,fp.cr0npx=%08x",
673 ctx
.fp
.i386_regs
.data_off
, ctx
.fp
.i386_regs
.data_sel
, ctx
.fp
.i386_regs
.cr0npx
);
674 for (i
= 0; i
< 8; i
++)
677 memcpy( ®
, &ctx
.fp
.i386_regs
.regs
[10 * i
], 10 );
678 fprintf( stderr
, ",fp.reg%u=%Lg", i
, reg
);
681 if (ctx
.flags
& SERVER_CTX_EXTENDED_REGISTERS
)
682 dump_uints( ",extended=", (const unsigned int *)ctx
.ext
.i386_regs
,
683 sizeof(ctx
.ext
.i386_regs
) / sizeof(int) );
684 if (ctx
.flags
& SERVER_CTX_YMM_REGISTERS
)
685 for (i
= 0; i
< 16; i
++)
687 fprintf( stderr
, ",ymm%u=", i
);
688 dump_uint128( "", (const unsigned __int64
*)&ctx
.ymm
.regs
.ymm_high
[i
] );
691 case IMAGE_FILE_MACHINE_AMD64
:
692 fprintf( stderr
, "%s{machine=x86_64", prefix
);
693 if (ctx
.flags
& SERVER_CTX_CONTROL
)
695 dump_uint64( ",rip=", &ctx
.ctl
.x86_64_regs
.rip
);
696 dump_uint64( ",rbp=", &ctx
.ctl
.x86_64_regs
.rbp
);
697 dump_uint64( ",rsp=", &ctx
.ctl
.x86_64_regs
.rsp
);
698 fprintf( stderr
, ",cs=%04x,ss=%04x,flags=%08x",
699 ctx
.ctl
.x86_64_regs
.cs
, ctx
.ctl
.x86_64_regs
.ss
, ctx
.ctl
.x86_64_regs
.flags
);
701 if (ctx
.flags
& SERVER_CTX_INTEGER
)
703 dump_uint64( ",rax=", &ctx
.integer
.x86_64_regs
.rax
);
704 dump_uint64( ",rbx=", &ctx
.integer
.x86_64_regs
.rbx
);
705 dump_uint64( ",rcx=", &ctx
.integer
.x86_64_regs
.rcx
);
706 dump_uint64( ",rdx=", &ctx
.integer
.x86_64_regs
.rdx
);
707 dump_uint64( ",rsi=", &ctx
.integer
.x86_64_regs
.rsi
);
708 dump_uint64( ",rdi=", &ctx
.integer
.x86_64_regs
.rdi
);
709 dump_uint64( ",r8=", &ctx
.integer
.x86_64_regs
.r8
);
710 dump_uint64( ",r9=", &ctx
.integer
.x86_64_regs
.r9
);
711 dump_uint64( ",r10=", &ctx
.integer
.x86_64_regs
.r10
);
712 dump_uint64( ",r11=", &ctx
.integer
.x86_64_regs
.r11
);
713 dump_uint64( ",r12=", &ctx
.integer
.x86_64_regs
.r12
);
714 dump_uint64( ",r13=", &ctx
.integer
.x86_64_regs
.r13
);
715 dump_uint64( ",r14=", &ctx
.integer
.x86_64_regs
.r14
);
716 dump_uint64( ",r15=", &ctx
.integer
.x86_64_regs
.r15
);
718 if (ctx
.flags
& SERVER_CTX_SEGMENTS
)
719 fprintf( stderr
, ",ds=%04x,es=%04x,fs=%04x,gs=%04x",
720 ctx
.seg
.x86_64_regs
.ds
, ctx
.seg
.x86_64_regs
.es
,
721 ctx
.seg
.x86_64_regs
.fs
, ctx
.seg
.x86_64_regs
.gs
);
722 if (ctx
.flags
& SERVER_CTX_DEBUG_REGISTERS
)
724 dump_uint64( ",dr0=", &ctx
.debug
.x86_64_regs
.dr0
);
725 dump_uint64( ",dr1=", &ctx
.debug
.x86_64_regs
.dr1
);
726 dump_uint64( ",dr2=", &ctx
.debug
.x86_64_regs
.dr2
);
727 dump_uint64( ",dr3=", &ctx
.debug
.x86_64_regs
.dr3
);
728 dump_uint64( ",dr6=", &ctx
.debug
.x86_64_regs
.dr6
);
729 dump_uint64( ",dr7=", &ctx
.debug
.x86_64_regs
.dr7
);
731 if (ctx
.flags
& SERVER_CTX_FLOATING_POINT
)
732 for (i
= 0; i
< 32; i
++)
734 fprintf( stderr
, ",fp%u=", i
);
735 dump_uint128( "", (const unsigned __int64
*)&ctx
.fp
.x86_64_regs
.fpregs
[i
] );
737 if (ctx
.flags
& SERVER_CTX_YMM_REGISTERS
)
738 for (i
= 0; i
< 16; i
++)
740 fprintf( stderr
, ",ymm%u=", i
);
741 dump_uint128( "", (const unsigned __int64
*)&ctx
.ymm
.regs
.ymm_high
[i
] );
744 case IMAGE_FILE_MACHINE_ARMNT
:
745 fprintf( stderr
, "%s{machine=arm", prefix
);
746 if (ctx
.flags
& SERVER_CTX_CONTROL
)
747 fprintf( stderr
, ",sp=%08x,lr=%08x,pc=%08x,cpsr=%08x",
748 ctx
.ctl
.arm_regs
.sp
, ctx
.ctl
.arm_regs
.lr
,
749 ctx
.ctl
.arm_regs
.pc
, ctx
.ctl
.arm_regs
.cpsr
);
750 if (ctx
.flags
& SERVER_CTX_INTEGER
)
751 for (i
= 0; i
< 13; i
++) fprintf( stderr
, ",r%u=%08x", i
, ctx
.integer
.arm_regs
.r
[i
] );
752 if (ctx
.flags
& SERVER_CTX_DEBUG_REGISTERS
)
754 for (i
= 0; i
< 8; i
++)
755 fprintf( stderr
, ",bcr%u=%08x,bvr%u=%08x",
756 i
, ctx
.debug
.arm_regs
.bcr
[i
], i
, ctx
.debug
.arm_regs
.bvr
[i
] );
757 fprintf( stderr
, ",wcr0=%08x,wvr0=%08x",
758 ctx
.debug
.arm_regs
.wcr
[0], ctx
.debug
.arm_regs
.wvr
[0] );
760 if (ctx
.flags
& SERVER_CTX_FLOATING_POINT
)
762 for (i
= 0; i
< 32; i
++)
764 fprintf( stderr
, ",d%u=", i
);
765 dump_uint64( "", &ctx
.fp
.arm_regs
.d
[i
] );
767 fprintf( stderr
, ",fpscr=%08x", ctx
.fp
.arm_regs
.fpscr
);
770 case IMAGE_FILE_MACHINE_ARM64
:
771 fprintf( stderr
, "%s{machine=arm64", prefix
);
772 if (ctx
.flags
& SERVER_CTX_CONTROL
)
774 dump_uint64( ",sp=", &ctx
.ctl
.arm64_regs
.sp
);
775 dump_uint64( ",pc=", &ctx
.ctl
.arm64_regs
.pc
);
776 dump_uint64( ",pstate=", &ctx
.ctl
.arm64_regs
.pstate
);
778 if (ctx
.flags
& SERVER_CTX_INTEGER
)
780 for (i
= 0; i
< 31; i
++)
782 fprintf( stderr
, ",x%u=", i
);
783 dump_uint64( "", &ctx
.integer
.arm64_regs
.x
[i
] );
786 if (ctx
.flags
& SERVER_CTX_DEBUG_REGISTERS
)
788 for (i
= 0; i
< 8; i
++)
790 fprintf( stderr
, ",bcr%u=%08x,bvr%u=", i
, ctx
.debug
.arm64_regs
.bcr
[i
], i
);
791 dump_uint64( "", &ctx
.debug
.arm64_regs
.bvr
[i
] );
793 for (i
= 0; i
< 2; i
++)
795 fprintf( stderr
, ",wcr%u=%08x,wvr%u=", i
, ctx
.debug
.arm64_regs
.wcr
[i
], i
);
796 dump_uint64( "", &ctx
.debug
.arm64_regs
.wvr
[i
] );
799 if (ctx
.flags
& SERVER_CTX_FLOATING_POINT
)
801 for (i
= 0; i
< 32; i
++)
803 fprintf( stderr
, ",q%u=", i
);
804 dump_uint64( "", &ctx
.fp
.arm64_regs
.q
[i
].high
);
805 dump_uint64( "", &ctx
.fp
.arm64_regs
.q
[i
].low
);
807 fprintf( stderr
, ",fpcr=%08x,fpsr=%08x", ctx
.fp
.arm64_regs
.fpcr
, ctx
.fp
.arm64_regs
.fpsr
);
811 fprintf( stderr
, "%s{machine=%04x", prefix
, ctx
.machine
);
814 fputc( '}', stderr
);
818 static void dump_varargs_contexts( const char *prefix
, data_size_t size
)
822 fprintf( stderr
, "%s{}", prefix
);
825 fprintf( stderr
, "%s{", prefix
);
828 dump_varargs_context( "", cur_size
);
829 fputc( cur_size
? ',' : '}', stderr
);
833 static void dump_varargs_debug_event( const char *prefix
, data_size_t size
)
840 fprintf( stderr
, "%s{}", prefix
);
843 size
= min( size
, sizeof(event
) );
844 memset( &event
, 0, sizeof(event
) );
845 memcpy( &event
, cur_data
, size
);
850 fprintf( stderr
, "%s{idle}", prefix
);
852 case DbgReplyPending
:
853 fprintf( stderr
, "%s{pending}", prefix
);
855 case DbgCreateThreadStateChange
:
856 fprintf( stderr
, "%s{create_thread,thread=%04x", prefix
, event
.create_thread
.handle
);
857 dump_uint64( ",start=", &event
.create_thread
.start
);
858 fputc( '}', stderr
);
860 case DbgCreateProcessStateChange
:
861 fprintf( stderr
, "%s{create_process,file=%04x,process=%04x,thread=%04x", prefix
,
862 event
.create_process
.file
, event
.create_process
.process
,
863 event
.create_process
.thread
);
864 dump_uint64( ",base=", &event
.create_process
.base
);
865 fprintf( stderr
, ",offset=%d,size=%d",
866 event
.create_process
.dbg_offset
, event
.create_process
.dbg_size
);
867 dump_uint64( ",start=", &event
.create_process
.start
);
868 fputc( '}', stderr
);
870 case DbgExitThreadStateChange
:
871 fprintf( stderr
, "%s{exit_thread,code=%d}", prefix
, event
.exit
.exit_code
);
873 case DbgExitProcessStateChange
:
874 fprintf( stderr
, "%s{exit_process,code=%d}", prefix
, event
.exit
.exit_code
);
876 case DbgExceptionStateChange
:
877 case DbgBreakpointStateChange
:
878 case DbgSingleStepStateChange
:
879 fprintf( stderr
, "%s{%s,first=%d,exc_code=%08x,flags=%08x", prefix
,
880 event
.code
== DbgBreakpointStateChange
? "breakpoint" :
881 event
.code
== DbgSingleStepStateChange
? "singlestep" : "exception",
882 event
.exception
.first
, event
.exception
.exc_code
, event
.exception
.flags
);
883 dump_uint64( ",record=", &event
.exception
.record
);
884 dump_uint64( ",address=", &event
.exception
.address
);
885 fprintf( stderr
, ",params={" );
886 event
.exception
.nb_params
= min( event
.exception
.nb_params
, EXCEPTION_MAXIMUM_PARAMETERS
);
887 for (i
= 0; i
< event
.exception
.nb_params
; i
++)
889 dump_uint64( "", &event
.exception
.params
[i
] );
890 if (i
< event
.exception
.nb_params
) fputc( ',', stderr
);
892 fprintf( stderr
, "}}" );
894 case DbgLoadDllStateChange
:
895 fprintf( stderr
, "%s{load_dll,file=%04x", prefix
, event
.load_dll
.handle
);
896 dump_uint64( ",base=", &event
.load_dll
.base
);
897 fprintf( stderr
, ",offset=%d,size=%d",
898 event
.load_dll
.dbg_offset
, event
.load_dll
.dbg_size
);
899 dump_uint64( ",name=", &event
.load_dll
.name
);
900 fputc( '}', stderr
);
902 case DbgUnloadDllStateChange
:
903 fprintf( stderr
, "%s{unload_dll", prefix
);
904 dump_uint64( ",base=", &event
.unload_dll
.base
);
905 fputc( '}', stderr
);
908 fprintf( stderr
, "%s{code=??? (%d)}", prefix
, event
.code
);
914 /* dump a unicode string contained in a buffer; helper for dump_varargs_startup_info */
915 static data_size_t
dump_inline_unicode_string( const char *prefix
, data_size_t pos
, data_size_t len
, data_size_t total_size
)
917 fputs( prefix
, stderr
);
918 if (pos
>= total_size
) return pos
;
919 if (len
> total_size
- pos
) len
= total_size
- pos
;
920 dump_strW( (const WCHAR
*)cur_data
+ pos
/sizeof(WCHAR
), len
, stderr
, "\"\"" );
921 return pos
+ (len
/ sizeof(WCHAR
)) * sizeof(WCHAR
);
924 static void dump_varargs_startup_info( const char *prefix
, data_size_t size
)
927 data_size_t pos
= sizeof(info
);
929 memset( &info
, 0, sizeof(info
) );
930 memcpy( &info
, cur_data
, min( size
, sizeof(info
) ));
933 "%s{debug_flags=%x,console_flags=%x,console=%04x,hstdin=%04x,hstdout=%04x,hstderr=%04x,"
934 "x=%u,y=%u,xsize=%u,ysize=%u,xchars=%u,ychars=%u,attribute=%02x,flags=%x,show=%u",
935 prefix
, info
.debug_flags
, info
.console_flags
, info
.console
,
936 info
.hstdin
, info
.hstdout
, info
.hstderr
, info
.x
, info
.y
, info
.xsize
, info
.ysize
,
937 info
.xchars
, info
.ychars
, info
.attribute
, info
.flags
, info
.show
);
938 pos
= dump_inline_unicode_string( ",curdir=L\"", pos
, info
.curdir_len
, size
);
939 pos
= dump_inline_unicode_string( "\",dllpath=L\"", pos
, info
.dllpath_len
, size
);
940 pos
= dump_inline_unicode_string( "\",imagepath=L\"", pos
, info
.imagepath_len
, size
);
941 pos
= dump_inline_unicode_string( "\",cmdline=L\"", pos
, info
.cmdline_len
, size
);
942 pos
= dump_inline_unicode_string( "\",title=L\"", pos
, info
.title_len
, size
);
943 pos
= dump_inline_unicode_string( "\",desktop=L\"", pos
, info
.desktop_len
, size
);
944 pos
= dump_inline_unicode_string( "\",shellinfo=L\"", pos
, info
.shellinfo_len
, size
);
945 pos
= dump_inline_unicode_string( "\",runtime=L\"", pos
, info
.runtime_len
, size
);
946 fprintf( stderr
, "\"}" );
950 static void dump_varargs_rectangles( const char *prefix
, data_size_t size
)
952 const rectangle_t
*rect
= cur_data
;
953 data_size_t len
= size
/ sizeof(*rect
);
955 fprintf( stderr
,"%s{", prefix
);
958 dump_rectangle( "", rect
++ );
959 if (--len
) fputc( ',', stderr
);
961 fputc( '}', stderr
);
965 static void dump_varargs_cursor_positions( const char *prefix
, data_size_t size
)
967 const cursor_pos_t
*pos
= cur_data
;
968 data_size_t len
= size
/ sizeof(*pos
);
970 fprintf( stderr
, "%s{", prefix
);
973 fprintf( stderr
, "{x=%d,y=%d,time=%u", pos
->x
, pos
->y
, pos
->time
);
974 dump_uint64( ",info=", &pos
->info
);
975 fputc( '}', stderr
);
977 if (--len
) fputc( ',', stderr
);
979 fputc( '}', stderr
);
983 static void dump_varargs_message_data( const char *prefix
, data_size_t size
)
985 /* FIXME: dump the structured data */
986 dump_varargs_bytes( prefix
, size
);
989 static void dump_varargs_properties( const char *prefix
, data_size_t size
)
991 const property_data_t
*prop
= cur_data
;
992 data_size_t len
= size
/ sizeof(*prop
);
994 fprintf( stderr
,"%s{", prefix
);
997 fprintf( stderr
, "{atom=%04x,str=%d", prop
->atom
, prop
->string
);
998 dump_uint64( ",data=", &prop
->data
);
999 fputc( '}', stderr
);
1001 if (--len
) fputc( ',', stderr
);
1003 fputc( '}', stderr
);
1004 remove_data( size
);
1007 static void dump_varargs_LUID_AND_ATTRIBUTES( const char *prefix
, data_size_t size
)
1009 const LUID_AND_ATTRIBUTES
*lat
= cur_data
;
1010 data_size_t len
= size
/ sizeof(*lat
);
1012 fprintf( stderr
,"%s{", prefix
);
1015 fprintf( stderr
, "{luid=%08x%08x,attr=%x}",
1016 lat
->Luid
.HighPart
, lat
->Luid
.LowPart
, lat
->Attributes
);
1018 if (--len
) fputc( ',', stderr
);
1020 fputc( '}', stderr
);
1021 remove_data( size
);
1024 static void dump_inline_sid( const char *prefix
, const SID
*sid
, data_size_t size
)
1028 /* security check */
1029 if ((FIELD_OFFSET(SID
, SubAuthority
[0]) > size
) ||
1030 (FIELD_OFFSET(SID
, SubAuthority
[sid
->SubAuthorityCount
]) > size
))
1032 fprintf( stderr
, "<invalid sid>" );
1036 fprintf( stderr
,"%s{", prefix
);
1037 fprintf( stderr
, "S-%u-%u", sid
->Revision
, MAKELONG(
1038 MAKEWORD( sid
->IdentifierAuthority
.Value
[5],
1039 sid
->IdentifierAuthority
.Value
[4] ),
1040 MAKEWORD( sid
->IdentifierAuthority
.Value
[3],
1041 sid
->IdentifierAuthority
.Value
[2] ) ) );
1042 for (i
= 0; i
< sid
->SubAuthorityCount
; i
++)
1043 fprintf( stderr
, "-%u", sid
->SubAuthority
[i
] );
1044 fputc( '}', stderr
);
1047 static void dump_varargs_SID( const char *prefix
, data_size_t size
)
1049 const SID
*sid
= cur_data
;
1050 dump_inline_sid( prefix
, sid
, size
);
1051 remove_data( size
);
1054 static void dump_inline_acl( const char *prefix
, const ACL
*acl
, data_size_t size
)
1056 const ACE_HEADER
*ace
;
1059 fprintf( stderr
,"%s{", prefix
);
1062 if (size
< sizeof(ACL
))
1064 fprintf( stderr
, "<invalid acl>}" );
1067 size
-= sizeof(ACL
);
1068 ace
= (const ACE_HEADER
*)(acl
+ 1);
1069 for (i
= 0; i
< acl
->AceCount
; i
++)
1071 const SID
*sid
= NULL
;
1072 data_size_t sid_size
= 0;
1074 if (size
< sizeof(ACE_HEADER
) || size
< ace
->AceSize
) break;
1075 size
-= ace
->AceSize
;
1076 if (i
!= 0) fputc( ',', stderr
);
1077 fprintf( stderr
, "{AceType=" );
1078 switch (ace
->AceType
)
1080 case ACCESS_DENIED_ACE_TYPE
:
1081 sid
= (const SID
*)&((const ACCESS_DENIED_ACE
*)ace
)->SidStart
;
1082 sid_size
= ace
->AceSize
- FIELD_OFFSET(ACCESS_DENIED_ACE
, SidStart
);
1083 fprintf( stderr
, "ACCESS_DENIED_ACE_TYPE,Mask=%x",
1084 ((const ACCESS_DENIED_ACE
*)ace
)->Mask
);
1086 case ACCESS_ALLOWED_ACE_TYPE
:
1087 sid
= (const SID
*)&((const ACCESS_ALLOWED_ACE
*)ace
)->SidStart
;
1088 sid_size
= ace
->AceSize
- FIELD_OFFSET(ACCESS_ALLOWED_ACE
, SidStart
);
1089 fprintf( stderr
, "ACCESS_ALLOWED_ACE_TYPE,Mask=%x",
1090 ((const ACCESS_ALLOWED_ACE
*)ace
)->Mask
);
1092 case SYSTEM_AUDIT_ACE_TYPE
:
1093 sid
= (const SID
*)&((const SYSTEM_AUDIT_ACE
*)ace
)->SidStart
;
1094 sid_size
= ace
->AceSize
- FIELD_OFFSET(SYSTEM_AUDIT_ACE
, SidStart
);
1095 fprintf( stderr
, "SYSTEM_AUDIT_ACE_TYPE,Mask=%x",
1096 ((const SYSTEM_AUDIT_ACE
*)ace
)->Mask
);
1098 case SYSTEM_ALARM_ACE_TYPE
:
1099 sid
= (const SID
*)&((const SYSTEM_ALARM_ACE
*)ace
)->SidStart
;
1100 sid_size
= ace
->AceSize
- FIELD_OFFSET(SYSTEM_ALARM_ACE
, SidStart
);
1101 fprintf( stderr
, "SYSTEM_ALARM_ACE_TYPE,Mask=%x",
1102 ((const SYSTEM_ALARM_ACE
*)ace
)->Mask
);
1104 case SYSTEM_MANDATORY_LABEL_ACE_TYPE
:
1105 sid
= (const SID
*)&((const SYSTEM_MANDATORY_LABEL_ACE
*)ace
)->SidStart
;
1106 sid_size
= ace
->AceSize
- FIELD_OFFSET(SYSTEM_MANDATORY_LABEL_ACE
, SidStart
);
1107 fprintf( stderr
, "SYSTEM_MANDATORY_LABEL_ACE_TYPE,Mask=%x",
1108 ((const SYSTEM_MANDATORY_LABEL_ACE
*)ace
)->Mask
);
1111 fprintf( stderr
, "unknown<%d>", ace
->AceType
);
1114 fprintf( stderr
, ",AceFlags=%x", ace
->AceFlags
);
1116 dump_inline_sid( ",Sid=", sid
, sid_size
);
1117 ace
= (const ACE_HEADER
*)((const char *)ace
+ ace
->AceSize
);
1118 fputc( '}', stderr
);
1121 fputc( '}', stderr
);
1124 static void dump_varargs_ACL( const char *prefix
, data_size_t size
)
1126 const ACL
*acl
= cur_data
;
1127 dump_inline_acl( prefix
, acl
, size
);
1128 remove_data( size
);
1131 static void dump_inline_security_descriptor( const char *prefix
, const struct security_descriptor
*sd
, data_size_t size
)
1133 fprintf( stderr
,"%s{", prefix
);
1134 if (size
>= sizeof(struct security_descriptor
))
1136 size_t offset
= sizeof(struct security_descriptor
);
1137 fprintf( stderr
, "control=%08x", sd
->control
);
1138 if ((sd
->owner_len
> FIELD_OFFSET(SID
, SubAuthority
[255])) || (offset
+ sd
->owner_len
> size
))
1141 dump_inline_sid( ",owner=", (const SID
*)((const char *)sd
+ offset
), sd
->owner_len
);
1143 fprintf( stderr
, ",owner=<not present>" );
1144 offset
+= sd
->owner_len
;
1145 if ((sd
->group_len
> FIELD_OFFSET(SID
, SubAuthority
[255])) || (offset
+ sd
->group_len
> size
))
1148 dump_inline_sid( ",group=", (const SID
*)((const char *)sd
+ offset
), sd
->group_len
);
1150 fprintf( stderr
, ",group=<not present>" );
1151 offset
+= sd
->group_len
;
1152 if ((sd
->sacl_len
>= MAX_ACL_LEN
) || (offset
+ sd
->sacl_len
> size
))
1154 dump_inline_acl( ",sacl=", (const ACL
*)((const char *)sd
+ offset
), sd
->sacl_len
);
1155 offset
+= sd
->sacl_len
;
1156 if ((sd
->dacl_len
>= MAX_ACL_LEN
) || (offset
+ sd
->dacl_len
> size
))
1158 dump_inline_acl( ",dacl=", (const ACL
*)((const char *)sd
+ offset
), sd
->dacl_len
);
1159 offset
+= sd
->dacl_len
;
1161 fputc( '}', stderr
);
1164 static void dump_varargs_security_descriptor( const char *prefix
, data_size_t size
)
1166 const struct security_descriptor
*sd
= cur_data
;
1167 dump_inline_security_descriptor( prefix
, sd
, size
);
1168 remove_data( size
);
1171 static void dump_varargs_token_groups( const char *prefix
, data_size_t size
)
1173 const struct token_groups
*tg
= cur_data
;
1175 fprintf( stderr
,"%s{", prefix
);
1176 if (size
>= sizeof(struct token_groups
))
1178 size_t offset
= sizeof(*tg
);
1179 fprintf( stderr
, "count=%08x,", tg
->count
);
1180 if (tg
->count
* sizeof(unsigned int) <= size
)
1183 const unsigned int *attr
= (const unsigned int *)(tg
+ 1);
1185 offset
+= tg
->count
* sizeof(unsigned int);
1187 fputc( '[', stderr
);
1188 for (i
= 0; i
< tg
->count
; i
++)
1190 const SID
*sid
= (const SID
*)((const char *)cur_data
+ offset
);
1192 fputc( ',', stderr
);
1193 fputc( '{', stderr
);
1194 fprintf( stderr
, "attributes=%08x", attr
[i
] );
1195 dump_inline_sid( ",sid=", sid
, size
- offset
);
1196 if ((offset
+ FIELD_OFFSET(SID
, SubAuthority
[0]) > size
) ||
1197 (offset
+ FIELD_OFFSET(SID
, SubAuthority
[sid
->SubAuthorityCount
]) > size
))
1199 offset
+= FIELD_OFFSET(SID
, SubAuthority
[sid
->SubAuthorityCount
]);
1200 fputc( '}', stderr
);
1202 fputc( ']', stderr
);
1205 fputc( '}', stderr
);
1208 static void dump_varargs_process_info( const char *prefix
, data_size_t size
)
1210 data_size_t pos
= 0;
1213 fprintf( stderr
,"%s{", prefix
);
1215 while (size
- pos
>= sizeof(struct process_info
))
1217 const struct process_info
*process
;
1218 pos
= (pos
+ 7) & ~7;
1219 process
= (const struct process_info
*)((const char *)cur_data
+ pos
);
1220 if (size
- pos
< sizeof(*process
)) break;
1221 if (pos
) fputc( ',', stderr
);
1222 dump_timeout( "{start_time=", &process
->start_time
);
1223 fprintf( stderr
, ",thread_count=%u,priority=%d,pid=%04x,parent_pid=%04x,session_id=%08x,handle_count=%u,unix_pid=%d,",
1224 process
->thread_count
, process
->priority
, process
->pid
,
1225 process
->parent_pid
, process
->session_id
, process
->handle_count
, process
->unix_pid
);
1226 pos
+= sizeof(*process
);
1228 pos
= dump_inline_unicode_string( "name=L\"", pos
, process
->name_len
, size
);
1230 pos
= (pos
+ 7) & ~7;
1231 fprintf( stderr
, "\",threads={" );
1232 for (i
= 0; i
< process
->thread_count
; i
++)
1234 const struct thread_info
*thread
= (const struct thread_info
*)((const char *)cur_data
+ pos
);
1235 if (size
- pos
< sizeof(*thread
)) break;
1236 if (i
) fputc( ',', stderr
);
1237 dump_timeout( "{start_time=", &thread
->start_time
);
1238 fprintf( stderr
, ",tid=%04x,base_priority=%d,current_priority=%d,unix_tid=%d}",
1239 thread
->tid
, thread
->base_priority
, thread
->current_priority
, thread
->unix_tid
);
1240 pos
+= sizeof(*thread
);
1242 fprintf( stderr
, "}}" );
1244 fputc( '}', stderr
);
1245 remove_data( size
);
1248 static void dump_varargs_object_attributes( const char *prefix
, data_size_t size
)
1250 const struct object_attributes
*objattr
= cur_data
;
1252 fprintf( stderr
,"%s{", prefix
);
1257 if (size
< sizeof(*objattr
) ||
1258 (size
- sizeof(*objattr
) < objattr
->sd_len
) ||
1259 (size
- sizeof(*objattr
) - objattr
->sd_len
< objattr
->name_len
))
1261 fprintf( stderr
, "***invalid***}" );
1262 remove_data( size
);
1266 fprintf( stderr
, "rootdir=%04x,attributes=%08x", objattr
->rootdir
, objattr
->attributes
);
1267 dump_inline_security_descriptor( ",sd=", (const struct security_descriptor
*)(objattr
+ 1), objattr
->sd_len
);
1268 str
= (const WCHAR
*)objattr
+ (sizeof(*objattr
) + objattr
->sd_len
) / sizeof(WCHAR
);
1269 fprintf( stderr
, ",name=L\"" );
1270 dump_strW( str
, objattr
->name_len
, stderr
, "\"\"" );
1271 fputc( '\"', stderr
);
1272 remove_data( (sizeof(*objattr
) + (objattr
->sd_len
& ~1) + (objattr
->name_len
& ~1) + 3) & ~3 );
1274 fputc( '}', stderr
);
1277 static void dump_varargs_object_type_info( const char *prefix
, data_size_t size
)
1279 const struct object_type_info
*info
= cur_data
;
1281 fprintf( stderr
,"%s{", prefix
);
1284 if (size
< sizeof(*info
) || (size
- sizeof(*info
) < info
->name_len
))
1286 fprintf( stderr
, "***invalid***}" );
1287 remove_data( size
);
1291 fprintf( stderr
, "index=%u,obj_count=%u,handle_count=%u,obj_max=%u,handle_max=%u,valid=%08x",
1292 info
->index
,info
->obj_count
, info
->handle_count
, info
->obj_max
, info
->handle_max
,
1293 info
->valid_access
);
1294 dump_generic_map( ",access=", &info
->mapping
);
1295 fprintf( stderr
, ",name=L\"" );
1296 dump_strW( (const WCHAR
*)(info
+ 1), info
->name_len
, stderr
, "\"\"" );
1297 fputc( '\"', stderr
);
1298 remove_data( min( size
, sizeof(*info
) + ((info
->name_len
+ 2) & ~3 )));
1300 fputc( '}', stderr
);
1303 static void dump_varargs_object_types_info( const char *prefix
, data_size_t size
)
1305 fprintf( stderr
,"%s{", prefix
);
1306 while (cur_size
) dump_varargs_object_type_info( ",", cur_size
);
1307 fputc( '}', stderr
);
1310 static void dump_varargs_filesystem_event( const char *prefix
, data_size_t size
)
1312 static const char * const actions
[] = {
1324 fprintf( stderr
,"%s{", prefix
);
1327 const struct filesystem_event
*event
= cur_data
;
1328 data_size_t len
= (offsetof( struct filesystem_event
, name
[event
->len
] ) + sizeof(int)-1)
1329 / sizeof(int) * sizeof(int);
1330 if (size
< len
) break;
1331 if (event
->action
< ARRAY_SIZE( actions
) && actions
[event
->action
])
1332 fprintf( stderr
, "{action=%s", actions
[event
->action
] );
1334 fprintf( stderr
, "{action=%u", event
->action
);
1335 fprintf( stderr
, ",name=\"%.*s\"}", event
->len
, event
->name
);
1338 if (size
)fputc( ',', stderr
);
1340 fputc( '}', stderr
);
1343 static void dump_varargs_pe_image_info( const char *prefix
, data_size_t size
)
1345 pe_image_info_t info
;
1349 fprintf( stderr
, "%s{}", prefix
);
1352 memset( &info
, 0, sizeof(info
) );
1353 memcpy( &info
, cur_data
, min( size
, sizeof(info
) ));
1355 fprintf( stderr
, "%s{", prefix
);
1356 dump_uint64( "base=", &info
.base
);
1357 dump_uint64( ",entry_point=", &info
.entry_point
);
1358 dump_uint64( ",map_size=", &info
.map_size
);
1359 dump_uint64( ",stack_size=", &info
.stack_size
);
1360 dump_uint64( ",stack_commit=", &info
.stack_commit
);
1361 fprintf( stderr
, ",zerobits=%08x,subsystem=%08x,subsystem_minor=%04x,subsystem_major=%04x"
1362 ",osversion_major=%04x,osversion_minor=%04x,image_charact=%04x,dll_charact=%04x,machine=%04x"
1363 ",contains_code=%u,image_flags=%02x"
1364 ",loader_flags=%08x,header_size=%08x,file_size=%08x,checksum=%08x}",
1365 info
.zerobits
, info
.subsystem
, info
.subsystem_minor
, info
.subsystem_major
,
1366 info
.osversion_major
, info
.osversion_minor
, info
.image_charact
, info
.dll_charact
,
1367 info
.machine
, info
.contains_code
, info
.image_flags
, info
.loader_flags
,
1368 info
.header_size
, info
.file_size
, info
.checksum
);
1369 remove_data( min( size
, sizeof(info
) ));
1372 static void dump_varargs_rawinput_devices(const char *prefix
, data_size_t size
)
1374 const struct rawinput_device
*device
;
1376 fprintf( stderr
, "%s{", prefix
);
1377 while (size
>= sizeof(*device
))
1380 fprintf( stderr
, "{usage_page=%04x,usage=%04x,flags=%08x,target=%08x}",
1381 device
->usage_page
, device
->usage
, device
->flags
, device
->target
);
1382 size
-= sizeof(*device
);
1383 remove_data( sizeof(*device
) );
1384 if (size
) fputc( ',', stderr
);
1386 fputc( '}', stderr
);
1389 static void dump_varargs_handle_infos( const char *prefix
, data_size_t size
)
1391 const struct handle_info
*handle
;
1393 fprintf( stderr
, "%s{", prefix
);
1394 while (size
>= sizeof(*handle
))
1397 fprintf( stderr
, "{owner=%04x,handle=%04x,access=%08x,attributes=%08x,type=%u}",
1398 handle
->owner
, handle
->handle
, handle
->access
, handle
->attributes
, handle
->type
);
1399 size
-= sizeof(*handle
);
1400 remove_data( sizeof(*handle
) );
1401 if (size
) fputc( ',', stderr
);
1403 fputc( '}', stderr
);
1406 static void dump_varargs_poll_socket_input( const char *prefix
, data_size_t size
)
1408 const struct poll_socket_input
*input
;
1410 fprintf( stderr
, "%s{", prefix
);
1411 while (size
>= sizeof(*input
))
1414 fprintf( stderr
, "{socket=%04x,flags=%08x}", input
->socket
, input
->flags
);
1415 size
-= sizeof(*input
);
1416 remove_data( sizeof(*input
) );
1417 if (size
) fputc( ',', stderr
);
1419 fputc( '}', stderr
);
1422 static void dump_varargs_poll_socket_output( const char *prefix
, data_size_t size
)
1424 const struct poll_socket_output
*output
;
1426 fprintf( stderr
, "%s{", prefix
);
1427 while (size
>= sizeof(*output
))
1430 fprintf( stderr
, "{flags=%08x,status=%s}", output
->flags
, get_status_name( output
->status
) );
1431 size
-= sizeof(*output
);
1432 remove_data( sizeof(*output
) );
1433 if (size
) fputc( ',', stderr
);
1435 fputc( '}', stderr
);
1438 typedef void (*dump_func
)( const void *req
);
1440 /* Everything below this line is generated automatically by tools/make_requests */
1441 /* ### make_requests begin ### */
1443 static void dump_new_process_request( const struct new_process_request
*req
)
1445 fprintf( stderr
, " token=%04x", req
->token
);
1446 fprintf( stderr
, ", debug=%04x", req
->debug
);
1447 fprintf( stderr
, ", parent_process=%04x", req
->parent_process
);
1448 fprintf( stderr
, ", flags=%08x", req
->flags
);
1449 fprintf( stderr
, ", socket_fd=%d", req
->socket_fd
);
1450 fprintf( stderr
, ", access=%08x", req
->access
);
1451 fprintf( stderr
, ", machine=%04x", req
->machine
);
1452 fprintf( stderr
, ", info_size=%u", req
->info_size
);
1453 fprintf( stderr
, ", handles_size=%u", req
->handles_size
);
1454 fprintf( stderr
, ", jobs_size=%u", req
->jobs_size
);
1455 dump_varargs_object_attributes( ", objattr=", cur_size
);
1456 dump_varargs_uints( ", handles=", min(cur_size
,req
->handles_size
) );
1457 dump_varargs_uints( ", jobs=", min(cur_size
,req
->jobs_size
) );
1458 dump_varargs_startup_info( ", info=", min(cur_size
,req
->info_size
) );
1459 dump_varargs_unicode_str( ", env=", cur_size
);
1462 static void dump_new_process_reply( const struct new_process_reply
*req
)
1464 fprintf( stderr
, " info=%04x", req
->info
);
1465 fprintf( stderr
, ", pid=%04x", req
->pid
);
1466 fprintf( stderr
, ", handle=%04x", req
->handle
);
1469 static void dump_get_new_process_info_request( const struct get_new_process_info_request
*req
)
1471 fprintf( stderr
, " info=%04x", req
->info
);
1474 static void dump_get_new_process_info_reply( const struct get_new_process_info_reply
*req
)
1476 fprintf( stderr
, " success=%d", req
->success
);
1477 fprintf( stderr
, ", exit_code=%d", req
->exit_code
);
1480 static void dump_new_thread_request( const struct new_thread_request
*req
)
1482 fprintf( stderr
, " process=%04x", req
->process
);
1483 fprintf( stderr
, ", access=%08x", req
->access
);
1484 fprintf( stderr
, ", suspend=%d", req
->suspend
);
1485 fprintf( stderr
, ", request_fd=%d", req
->request_fd
);
1486 dump_varargs_object_attributes( ", objattr=", cur_size
);
1489 static void dump_new_thread_reply( const struct new_thread_reply
*req
)
1491 fprintf( stderr
, " tid=%04x", req
->tid
);
1492 fprintf( stderr
, ", handle=%04x", req
->handle
);
1495 static void dump_get_startup_info_request( const struct get_startup_info_request
*req
)
1499 static void dump_get_startup_info_reply( const struct get_startup_info_reply
*req
)
1501 fprintf( stderr
, " info_size=%u", req
->info_size
);
1502 dump_varargs_startup_info( ", info=", min(cur_size
,req
->info_size
) );
1503 dump_varargs_unicode_str( ", env=", cur_size
);
1506 static void dump_init_process_done_request( const struct init_process_done_request
*req
)
1508 dump_uint64( " teb=", &req
->teb
);
1509 dump_uint64( ", peb=", &req
->peb
);
1510 dump_uint64( ", ldt_copy=", &req
->ldt_copy
);
1513 static void dump_init_process_done_reply( const struct init_process_done_reply
*req
)
1515 dump_uint64( " entry=", &req
->entry
);
1516 fprintf( stderr
, ", suspend=%d", req
->suspend
);
1519 static void dump_init_first_thread_request( const struct init_first_thread_request
*req
)
1521 fprintf( stderr
, " unix_pid=%d", req
->unix_pid
);
1522 fprintf( stderr
, ", unix_tid=%d", req
->unix_tid
);
1523 fprintf( stderr
, ", debug_level=%d", req
->debug_level
);
1524 fprintf( stderr
, ", reply_fd=%d", req
->reply_fd
);
1525 fprintf( stderr
, ", wait_fd=%d", req
->wait_fd
);
1528 static void dump_init_first_thread_reply( const struct init_first_thread_reply
*req
)
1530 fprintf( stderr
, " pid=%04x", req
->pid
);
1531 fprintf( stderr
, ", tid=%04x", req
->tid
);
1532 dump_timeout( ", server_start=", &req
->server_start
);
1533 fprintf( stderr
, ", session_id=%08x", req
->session_id
);
1534 fprintf( stderr
, ", info_size=%u", req
->info_size
);
1535 dump_varargs_ushorts( ", machines=", cur_size
);
1538 static void dump_init_thread_request( const struct init_thread_request
*req
)
1540 fprintf( stderr
, " unix_tid=%d", req
->unix_tid
);
1541 fprintf( stderr
, ", reply_fd=%d", req
->reply_fd
);
1542 fprintf( stderr
, ", wait_fd=%d", req
->wait_fd
);
1543 dump_uint64( ", teb=", &req
->teb
);
1544 dump_uint64( ", entry=", &req
->entry
);
1547 static void dump_init_thread_reply( const struct init_thread_reply
*req
)
1549 fprintf( stderr
, " suspend=%d", req
->suspend
);
1552 static void dump_terminate_process_request( const struct terminate_process_request
*req
)
1554 fprintf( stderr
, " handle=%04x", req
->handle
);
1555 fprintf( stderr
, ", exit_code=%d", req
->exit_code
);
1558 static void dump_terminate_process_reply( const struct terminate_process_reply
*req
)
1560 fprintf( stderr
, " self=%d", req
->self
);
1563 static void dump_terminate_thread_request( const struct terminate_thread_request
*req
)
1565 fprintf( stderr
, " handle=%04x", req
->handle
);
1566 fprintf( stderr
, ", exit_code=%d", req
->exit_code
);
1569 static void dump_terminate_thread_reply( const struct terminate_thread_reply
*req
)
1571 fprintf( stderr
, " self=%d", req
->self
);
1574 static void dump_get_process_info_request( const struct get_process_info_request
*req
)
1576 fprintf( stderr
, " handle=%04x", req
->handle
);
1579 static void dump_get_process_info_reply( const struct get_process_info_reply
*req
)
1581 fprintf( stderr
, " pid=%04x", req
->pid
);
1582 fprintf( stderr
, ", ppid=%04x", req
->ppid
);
1583 dump_uint64( ", affinity=", &req
->affinity
);
1584 dump_uint64( ", peb=", &req
->peb
);
1585 dump_timeout( ", start_time=", &req
->start_time
);
1586 dump_timeout( ", end_time=", &req
->end_time
);
1587 fprintf( stderr
, ", session_id=%08x", req
->session_id
);
1588 fprintf( stderr
, ", exit_code=%d", req
->exit_code
);
1589 fprintf( stderr
, ", priority=%d", req
->priority
);
1590 fprintf( stderr
, ", machine=%04x", req
->machine
);
1591 dump_varargs_pe_image_info( ", image=", cur_size
);
1594 static void dump_get_process_debug_info_request( const struct get_process_debug_info_request
*req
)
1596 fprintf( stderr
, " handle=%04x", req
->handle
);
1599 static void dump_get_process_debug_info_reply( const struct get_process_debug_info_reply
*req
)
1601 fprintf( stderr
, " debug=%04x", req
->debug
);
1602 fprintf( stderr
, ", debug_children=%d", req
->debug_children
);
1603 dump_varargs_pe_image_info( ", image=", cur_size
);
1606 static void dump_get_process_image_name_request( const struct get_process_image_name_request
*req
)
1608 fprintf( stderr
, " handle=%04x", req
->handle
);
1609 fprintf( stderr
, ", win32=%d", req
->win32
);
1612 static void dump_get_process_image_name_reply( const struct get_process_image_name_reply
*req
)
1614 fprintf( stderr
, " len=%u", req
->len
);
1615 dump_varargs_unicode_str( ", name=", cur_size
);
1618 static void dump_get_process_vm_counters_request( const struct get_process_vm_counters_request
*req
)
1620 fprintf( stderr
, " handle=%04x", req
->handle
);
1623 static void dump_get_process_vm_counters_reply( const struct get_process_vm_counters_reply
*req
)
1625 dump_uint64( " peak_virtual_size=", &req
->peak_virtual_size
);
1626 dump_uint64( ", virtual_size=", &req
->virtual_size
);
1627 dump_uint64( ", peak_working_set_size=", &req
->peak_working_set_size
);
1628 dump_uint64( ", working_set_size=", &req
->working_set_size
);
1629 dump_uint64( ", pagefile_usage=", &req
->pagefile_usage
);
1630 dump_uint64( ", peak_pagefile_usage=", &req
->peak_pagefile_usage
);
1633 static void dump_set_process_info_request( const struct set_process_info_request
*req
)
1635 fprintf( stderr
, " handle=%04x", req
->handle
);
1636 fprintf( stderr
, ", mask=%d", req
->mask
);
1637 fprintf( stderr
, ", priority=%d", req
->priority
);
1638 dump_uint64( ", affinity=", &req
->affinity
);
1641 static void dump_get_thread_info_request( const struct get_thread_info_request
*req
)
1643 fprintf( stderr
, " handle=%04x", req
->handle
);
1644 fprintf( stderr
, ", access=%08x", req
->access
);
1647 static void dump_get_thread_info_reply( const struct get_thread_info_reply
*req
)
1649 fprintf( stderr
, " pid=%04x", req
->pid
);
1650 fprintf( stderr
, ", tid=%04x", req
->tid
);
1651 dump_uint64( ", teb=", &req
->teb
);
1652 dump_uint64( ", entry_point=", &req
->entry_point
);
1653 dump_uint64( ", affinity=", &req
->affinity
);
1654 fprintf( stderr
, ", exit_code=%d", req
->exit_code
);
1655 fprintf( stderr
, ", priority=%d", req
->priority
);
1656 fprintf( stderr
, ", last=%d", req
->last
);
1657 fprintf( stderr
, ", suspend_count=%d", req
->suspend_count
);
1658 fprintf( stderr
, ", dbg_hidden=%d", req
->dbg_hidden
);
1659 fprintf( stderr
, ", desc_len=%u", req
->desc_len
);
1660 dump_varargs_unicode_str( ", desc=", cur_size
);
1663 static void dump_get_thread_times_request( const struct get_thread_times_request
*req
)
1665 fprintf( stderr
, " handle=%04x", req
->handle
);
1668 static void dump_get_thread_times_reply( const struct get_thread_times_reply
*req
)
1670 dump_timeout( " creation_time=", &req
->creation_time
);
1671 dump_timeout( ", exit_time=", &req
->exit_time
);
1672 fprintf( stderr
, ", unix_pid=%d", req
->unix_pid
);
1673 fprintf( stderr
, ", unix_tid=%d", req
->unix_tid
);
1676 static void dump_set_thread_info_request( const struct set_thread_info_request
*req
)
1678 fprintf( stderr
, " handle=%04x", req
->handle
);
1679 fprintf( stderr
, ", mask=%d", req
->mask
);
1680 fprintf( stderr
, ", priority=%d", req
->priority
);
1681 dump_uint64( ", affinity=", &req
->affinity
);
1682 dump_uint64( ", entry_point=", &req
->entry_point
);
1683 fprintf( stderr
, ", token=%04x", req
->token
);
1684 dump_varargs_unicode_str( ", desc=", cur_size
);
1687 static void dump_suspend_thread_request( const struct suspend_thread_request
*req
)
1689 fprintf( stderr
, " handle=%04x", req
->handle
);
1692 static void dump_suspend_thread_reply( const struct suspend_thread_reply
*req
)
1694 fprintf( stderr
, " count=%d", req
->count
);
1697 static void dump_resume_thread_request( const struct resume_thread_request
*req
)
1699 fprintf( stderr
, " handle=%04x", req
->handle
);
1702 static void dump_resume_thread_reply( const struct resume_thread_reply
*req
)
1704 fprintf( stderr
, " count=%d", req
->count
);
1707 static void dump_queue_apc_request( const struct queue_apc_request
*req
)
1709 fprintf( stderr
, " handle=%04x", req
->handle
);
1710 dump_apc_call( ", call=", &req
->call
);
1713 static void dump_queue_apc_reply( const struct queue_apc_reply
*req
)
1715 fprintf( stderr
, " handle=%04x", req
->handle
);
1716 fprintf( stderr
, ", self=%d", req
->self
);
1719 static void dump_get_apc_result_request( const struct get_apc_result_request
*req
)
1721 fprintf( stderr
, " handle=%04x", req
->handle
);
1724 static void dump_get_apc_result_reply( const struct get_apc_result_reply
*req
)
1726 dump_apc_result( " result=", &req
->result
);
1729 static void dump_close_handle_request( const struct close_handle_request
*req
)
1731 fprintf( stderr
, " handle=%04x", req
->handle
);
1734 static void dump_set_handle_info_request( const struct set_handle_info_request
*req
)
1736 fprintf( stderr
, " handle=%04x", req
->handle
);
1737 fprintf( stderr
, ", flags=%d", req
->flags
);
1738 fprintf( stderr
, ", mask=%d", req
->mask
);
1741 static void dump_set_handle_info_reply( const struct set_handle_info_reply
*req
)
1743 fprintf( stderr
, " old_flags=%d", req
->old_flags
);
1746 static void dump_dup_handle_request( const struct dup_handle_request
*req
)
1748 fprintf( stderr
, " src_process=%04x", req
->src_process
);
1749 fprintf( stderr
, ", src_handle=%04x", req
->src_handle
);
1750 fprintf( stderr
, ", dst_process=%04x", req
->dst_process
);
1751 fprintf( stderr
, ", access=%08x", req
->access
);
1752 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1753 fprintf( stderr
, ", options=%08x", req
->options
);
1756 static void dump_dup_handle_reply( const struct dup_handle_reply
*req
)
1758 fprintf( stderr
, " handle=%04x", req
->handle
);
1761 static void dump_make_temporary_request( const struct make_temporary_request
*req
)
1763 fprintf( stderr
, " handle=%04x", req
->handle
);
1766 static void dump_open_process_request( const struct open_process_request
*req
)
1768 fprintf( stderr
, " pid=%04x", req
->pid
);
1769 fprintf( stderr
, ", access=%08x", req
->access
);
1770 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1773 static void dump_open_process_reply( const struct open_process_reply
*req
)
1775 fprintf( stderr
, " handle=%04x", req
->handle
);
1778 static void dump_open_thread_request( const struct open_thread_request
*req
)
1780 fprintf( stderr
, " tid=%04x", req
->tid
);
1781 fprintf( stderr
, ", access=%08x", req
->access
);
1782 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1785 static void dump_open_thread_reply( const struct open_thread_reply
*req
)
1787 fprintf( stderr
, " handle=%04x", req
->handle
);
1790 static void dump_select_request( const struct select_request
*req
)
1792 fprintf( stderr
, " flags=%d", req
->flags
);
1793 dump_uint64( ", cookie=", &req
->cookie
);
1794 dump_abstime( ", timeout=", &req
->timeout
);
1795 fprintf( stderr
, ", size=%u", req
->size
);
1796 fprintf( stderr
, ", prev_apc=%04x", req
->prev_apc
);
1797 dump_varargs_apc_result( ", result=", cur_size
);
1798 dump_varargs_select_op( ", data=", min(cur_size
,req
->size
) );
1799 dump_varargs_contexts( ", contexts=", cur_size
);
1802 static void dump_select_reply( const struct select_reply
*req
)
1804 dump_apc_call( " call=", &req
->call
);
1805 fprintf( stderr
, ", apc_handle=%04x", req
->apc_handle
);
1806 dump_varargs_contexts( ", contexts=", cur_size
);
1809 static void dump_create_event_request( const struct create_event_request
*req
)
1811 fprintf( stderr
, " access=%08x", req
->access
);
1812 fprintf( stderr
, ", manual_reset=%d", req
->manual_reset
);
1813 fprintf( stderr
, ", initial_state=%d", req
->initial_state
);
1814 dump_varargs_object_attributes( ", objattr=", cur_size
);
1817 static void dump_create_event_reply( const struct create_event_reply
*req
)
1819 fprintf( stderr
, " handle=%04x", req
->handle
);
1822 static void dump_event_op_request( const struct event_op_request
*req
)
1824 fprintf( stderr
, " handle=%04x", req
->handle
);
1825 fprintf( stderr
, ", op=%d", req
->op
);
1828 static void dump_event_op_reply( const struct event_op_reply
*req
)
1830 fprintf( stderr
, " state=%d", req
->state
);
1833 static void dump_query_event_request( const struct query_event_request
*req
)
1835 fprintf( stderr
, " handle=%04x", req
->handle
);
1838 static void dump_query_event_reply( const struct query_event_reply
*req
)
1840 fprintf( stderr
, " manual_reset=%d", req
->manual_reset
);
1841 fprintf( stderr
, ", state=%d", req
->state
);
1844 static void dump_open_event_request( const struct open_event_request
*req
)
1846 fprintf( stderr
, " access=%08x", req
->access
);
1847 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1848 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
1849 dump_varargs_unicode_str( ", name=", cur_size
);
1852 static void dump_open_event_reply( const struct open_event_reply
*req
)
1854 fprintf( stderr
, " handle=%04x", req
->handle
);
1857 static void dump_create_keyed_event_request( const struct create_keyed_event_request
*req
)
1859 fprintf( stderr
, " access=%08x", req
->access
);
1860 dump_varargs_object_attributes( ", objattr=", cur_size
);
1863 static void dump_create_keyed_event_reply( const struct create_keyed_event_reply
*req
)
1865 fprintf( stderr
, " handle=%04x", req
->handle
);
1868 static void dump_open_keyed_event_request( const struct open_keyed_event_request
*req
)
1870 fprintf( stderr
, " access=%08x", req
->access
);
1871 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1872 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
1873 dump_varargs_unicode_str( ", name=", cur_size
);
1876 static void dump_open_keyed_event_reply( const struct open_keyed_event_reply
*req
)
1878 fprintf( stderr
, " handle=%04x", req
->handle
);
1881 static void dump_create_mutex_request( const struct create_mutex_request
*req
)
1883 fprintf( stderr
, " access=%08x", req
->access
);
1884 fprintf( stderr
, ", owned=%d", req
->owned
);
1885 dump_varargs_object_attributes( ", objattr=", cur_size
);
1888 static void dump_create_mutex_reply( const struct create_mutex_reply
*req
)
1890 fprintf( stderr
, " handle=%04x", req
->handle
);
1893 static void dump_release_mutex_request( const struct release_mutex_request
*req
)
1895 fprintf( stderr
, " handle=%04x", req
->handle
);
1898 static void dump_release_mutex_reply( const struct release_mutex_reply
*req
)
1900 fprintf( stderr
, " prev_count=%08x", req
->prev_count
);
1903 static void dump_open_mutex_request( const struct open_mutex_request
*req
)
1905 fprintf( stderr
, " access=%08x", req
->access
);
1906 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1907 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
1908 dump_varargs_unicode_str( ", name=", cur_size
);
1911 static void dump_open_mutex_reply( const struct open_mutex_reply
*req
)
1913 fprintf( stderr
, " handle=%04x", req
->handle
);
1916 static void dump_query_mutex_request( const struct query_mutex_request
*req
)
1918 fprintf( stderr
, " handle=%04x", req
->handle
);
1921 static void dump_query_mutex_reply( const struct query_mutex_reply
*req
)
1923 fprintf( stderr
, " count=%08x", req
->count
);
1924 fprintf( stderr
, ", owned=%d", req
->owned
);
1925 fprintf( stderr
, ", abandoned=%d", req
->abandoned
);
1928 static void dump_create_semaphore_request( const struct create_semaphore_request
*req
)
1930 fprintf( stderr
, " access=%08x", req
->access
);
1931 fprintf( stderr
, ", initial=%08x", req
->initial
);
1932 fprintf( stderr
, ", max=%08x", req
->max
);
1933 dump_varargs_object_attributes( ", objattr=", cur_size
);
1936 static void dump_create_semaphore_reply( const struct create_semaphore_reply
*req
)
1938 fprintf( stderr
, " handle=%04x", req
->handle
);
1941 static void dump_release_semaphore_request( const struct release_semaphore_request
*req
)
1943 fprintf( stderr
, " handle=%04x", req
->handle
);
1944 fprintf( stderr
, ", count=%08x", req
->count
);
1947 static void dump_release_semaphore_reply( const struct release_semaphore_reply
*req
)
1949 fprintf( stderr
, " prev_count=%08x", req
->prev_count
);
1952 static void dump_query_semaphore_request( const struct query_semaphore_request
*req
)
1954 fprintf( stderr
, " handle=%04x", req
->handle
);
1957 static void dump_query_semaphore_reply( const struct query_semaphore_reply
*req
)
1959 fprintf( stderr
, " current=%08x", req
->current
);
1960 fprintf( stderr
, ", max=%08x", req
->max
);
1963 static void dump_open_semaphore_request( const struct open_semaphore_request
*req
)
1965 fprintf( stderr
, " access=%08x", req
->access
);
1966 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1967 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
1968 dump_varargs_unicode_str( ", name=", cur_size
);
1971 static void dump_open_semaphore_reply( const struct open_semaphore_reply
*req
)
1973 fprintf( stderr
, " handle=%04x", req
->handle
);
1976 static void dump_create_file_request( const struct create_file_request
*req
)
1978 fprintf( stderr
, " access=%08x", req
->access
);
1979 fprintf( stderr
, ", sharing=%08x", req
->sharing
);
1980 fprintf( stderr
, ", create=%d", req
->create
);
1981 fprintf( stderr
, ", options=%08x", req
->options
);
1982 fprintf( stderr
, ", attrs=%08x", req
->attrs
);
1983 dump_varargs_object_attributes( ", objattr=", cur_size
);
1984 dump_varargs_string( ", filename=", cur_size
);
1987 static void dump_create_file_reply( const struct create_file_reply
*req
)
1989 fprintf( stderr
, " handle=%04x", req
->handle
);
1992 static void dump_open_file_object_request( const struct open_file_object_request
*req
)
1994 fprintf( stderr
, " access=%08x", req
->access
);
1995 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1996 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
1997 fprintf( stderr
, ", sharing=%08x", req
->sharing
);
1998 fprintf( stderr
, ", options=%08x", req
->options
);
1999 dump_varargs_unicode_str( ", filename=", cur_size
);
2002 static void dump_open_file_object_reply( const struct open_file_object_reply
*req
)
2004 fprintf( stderr
, " handle=%04x", req
->handle
);
2007 static void dump_alloc_file_handle_request( const struct alloc_file_handle_request
*req
)
2009 fprintf( stderr
, " access=%08x", req
->access
);
2010 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
2011 fprintf( stderr
, ", fd=%d", req
->fd
);
2014 static void dump_alloc_file_handle_reply( const struct alloc_file_handle_reply
*req
)
2016 fprintf( stderr
, " handle=%04x", req
->handle
);
2019 static void dump_get_handle_unix_name_request( const struct get_handle_unix_name_request
*req
)
2021 fprintf( stderr
, " handle=%04x", req
->handle
);
2024 static void dump_get_handle_unix_name_reply( const struct get_handle_unix_name_reply
*req
)
2026 fprintf( stderr
, " name_len=%u", req
->name_len
);
2027 dump_varargs_string( ", name=", cur_size
);
2030 static void dump_get_handle_fd_request( const struct get_handle_fd_request
*req
)
2032 fprintf( stderr
, " handle=%04x", req
->handle
);
2035 static void dump_get_handle_fd_reply( const struct get_handle_fd_reply
*req
)
2037 fprintf( stderr
, " type=%d", req
->type
);
2038 fprintf( stderr
, ", cacheable=%d", req
->cacheable
);
2039 fprintf( stderr
, ", access=%08x", req
->access
);
2040 fprintf( stderr
, ", options=%08x", req
->options
);
2043 static void dump_get_directory_cache_entry_request( const struct get_directory_cache_entry_request
*req
)
2045 fprintf( stderr
, " handle=%04x", req
->handle
);
2048 static void dump_get_directory_cache_entry_reply( const struct get_directory_cache_entry_reply
*req
)
2050 fprintf( stderr
, " entry=%d", req
->entry
);
2051 dump_varargs_ints( ", free=", cur_size
);
2054 static void dump_flush_request( const struct flush_request
*req
)
2056 dump_async_data( " async=", &req
->async
);
2059 static void dump_flush_reply( const struct flush_reply
*req
)
2061 fprintf( stderr
, " event=%04x", req
->event
);
2064 static void dump_get_file_info_request( const struct get_file_info_request
*req
)
2066 fprintf( stderr
, " handle=%04x", req
->handle
);
2067 fprintf( stderr
, ", info_class=%08x", req
->info_class
);
2070 static void dump_get_file_info_reply( const struct get_file_info_reply
*req
)
2072 dump_varargs_bytes( " data=", cur_size
);
2075 static void dump_get_volume_info_request( const struct get_volume_info_request
*req
)
2077 fprintf( stderr
, " handle=%04x", req
->handle
);
2078 dump_async_data( ", async=", &req
->async
);
2079 fprintf( stderr
, ", info_class=%08x", req
->info_class
);
2082 static void dump_get_volume_info_reply( const struct get_volume_info_reply
*req
)
2084 fprintf( stderr
, " wait=%04x", req
->wait
);
2085 dump_varargs_bytes( ", data=", cur_size
);
2088 static void dump_lock_file_request( const struct lock_file_request
*req
)
2090 fprintf( stderr
, " handle=%04x", req
->handle
);
2091 dump_uint64( ", offset=", &req
->offset
);
2092 dump_uint64( ", count=", &req
->count
);
2093 fprintf( stderr
, ", shared=%d", req
->shared
);
2094 fprintf( stderr
, ", wait=%d", req
->wait
);
2097 static void dump_lock_file_reply( const struct lock_file_reply
*req
)
2099 fprintf( stderr
, " handle=%04x", req
->handle
);
2100 fprintf( stderr
, ", overlapped=%d", req
->overlapped
);
2103 static void dump_unlock_file_request( const struct unlock_file_request
*req
)
2105 fprintf( stderr
, " handle=%04x", req
->handle
);
2106 dump_uint64( ", offset=", &req
->offset
);
2107 dump_uint64( ", count=", &req
->count
);
2110 static void dump_recv_socket_request( const struct recv_socket_request
*req
)
2112 fprintf( stderr
, " oob=%d", req
->oob
);
2113 dump_async_data( ", async=", &req
->async
);
2114 fprintf( stderr
, ", status=%08x", req
->status
);
2115 fprintf( stderr
, ", total=%08x", req
->total
);
2118 static void dump_recv_socket_reply( const struct recv_socket_reply
*req
)
2120 fprintf( stderr
, " wait=%04x", req
->wait
);
2121 fprintf( stderr
, ", options=%08x", req
->options
);
2124 static void dump_poll_socket_request( const struct poll_socket_request
*req
)
2126 dump_async_data( " async=", &req
->async
);
2127 dump_timeout( ", timeout=", &req
->timeout
);
2128 dump_varargs_poll_socket_input( ", sockets=", cur_size
);
2131 static void dump_poll_socket_reply( const struct poll_socket_reply
*req
)
2133 fprintf( stderr
, " wait=%04x", req
->wait
);
2134 fprintf( stderr
, ", options=%08x", req
->options
);
2135 dump_varargs_poll_socket_output( ", sockets=", cur_size
);
2138 static void dump_send_socket_request( const struct send_socket_request
*req
)
2140 dump_async_data( " async=", &req
->async
);
2141 fprintf( stderr
, ", status=%08x", req
->status
);
2142 fprintf( stderr
, ", total=%08x", req
->total
);
2145 static void dump_send_socket_reply( const struct send_socket_reply
*req
)
2147 fprintf( stderr
, " wait=%04x", req
->wait
);
2148 fprintf( stderr
, ", options=%08x", req
->options
);
2151 static void dump_get_next_console_request_request( const struct get_next_console_request_request
*req
)
2153 fprintf( stderr
, " handle=%04x", req
->handle
);
2154 fprintf( stderr
, ", signal=%d", req
->signal
);
2155 fprintf( stderr
, ", read=%d", req
->read
);
2156 fprintf( stderr
, ", status=%08x", req
->status
);
2157 dump_varargs_bytes( ", out_data=", cur_size
);
2160 static void dump_get_next_console_request_reply( const struct get_next_console_request_reply
*req
)
2162 fprintf( stderr
, " code=%08x", req
->code
);
2163 fprintf( stderr
, ", output=%08x", req
->output
);
2164 fprintf( stderr
, ", out_size=%u", req
->out_size
);
2165 dump_varargs_bytes( ", in_data=", cur_size
);
2168 static void dump_read_directory_changes_request( const struct read_directory_changes_request
*req
)
2170 fprintf( stderr
, " filter=%08x", req
->filter
);
2171 fprintf( stderr
, ", subtree=%d", req
->subtree
);
2172 fprintf( stderr
, ", want_data=%d", req
->want_data
);
2173 dump_async_data( ", async=", &req
->async
);
2176 static void dump_read_change_request( const struct read_change_request
*req
)
2178 fprintf( stderr
, " handle=%04x", req
->handle
);
2181 static void dump_read_change_reply( const struct read_change_reply
*req
)
2183 dump_varargs_filesystem_event( " events=", cur_size
);
2186 static void dump_create_mapping_request( const struct create_mapping_request
*req
)
2188 fprintf( stderr
, " access=%08x", req
->access
);
2189 fprintf( stderr
, ", flags=%08x", req
->flags
);
2190 fprintf( stderr
, ", file_access=%08x", req
->file_access
);
2191 dump_uint64( ", size=", &req
->size
);
2192 fprintf( stderr
, ", file_handle=%04x", req
->file_handle
);
2193 dump_varargs_object_attributes( ", objattr=", cur_size
);
2196 static void dump_create_mapping_reply( const struct create_mapping_reply
*req
)
2198 fprintf( stderr
, " handle=%04x", req
->handle
);
2201 static void dump_open_mapping_request( const struct open_mapping_request
*req
)
2203 fprintf( stderr
, " access=%08x", req
->access
);
2204 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
2205 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
2206 dump_varargs_unicode_str( ", name=", cur_size
);
2209 static void dump_open_mapping_reply( const struct open_mapping_reply
*req
)
2211 fprintf( stderr
, " handle=%04x", req
->handle
);
2214 static void dump_get_mapping_info_request( const struct get_mapping_info_request
*req
)
2216 fprintf( stderr
, " handle=%04x", req
->handle
);
2217 fprintf( stderr
, ", access=%08x", req
->access
);
2220 static void dump_get_mapping_info_reply( const struct get_mapping_info_reply
*req
)
2222 dump_uint64( " size=", &req
->size
);
2223 fprintf( stderr
, ", flags=%08x", req
->flags
);
2224 fprintf( stderr
, ", shared_file=%04x", req
->shared_file
);
2225 fprintf( stderr
, ", total=%u", req
->total
);
2226 dump_varargs_pe_image_info( ", image=", cur_size
);
2227 dump_varargs_unicode_str( ", name=", cur_size
);
2230 static void dump_map_view_request( const struct map_view_request
*req
)
2232 fprintf( stderr
, " mapping=%04x", req
->mapping
);
2233 fprintf( stderr
, ", access=%08x", req
->access
);
2234 dump_uint64( ", base=", &req
->base
);
2235 dump_uint64( ", size=", &req
->size
);
2236 dump_uint64( ", start=", &req
->start
);
2237 dump_varargs_pe_image_info( ", image=", cur_size
);
2238 dump_varargs_unicode_str( ", name=", cur_size
);
2241 static void dump_unmap_view_request( const struct unmap_view_request
*req
)
2243 dump_uint64( " base=", &req
->base
);
2246 static void dump_get_mapping_committed_range_request( const struct get_mapping_committed_range_request
*req
)
2248 dump_uint64( " base=", &req
->base
);
2249 dump_uint64( ", offset=", &req
->offset
);
2252 static void dump_get_mapping_committed_range_reply( const struct get_mapping_committed_range_reply
*req
)
2254 dump_uint64( " size=", &req
->size
);
2255 fprintf( stderr
, ", committed=%d", req
->committed
);
2258 static void dump_add_mapping_committed_range_request( const struct add_mapping_committed_range_request
*req
)
2260 dump_uint64( " base=", &req
->base
);
2261 dump_uint64( ", offset=", &req
->offset
);
2262 dump_uint64( ", size=", &req
->size
);
2265 static void dump_is_same_mapping_request( const struct is_same_mapping_request
*req
)
2267 dump_uint64( " base1=", &req
->base1
);
2268 dump_uint64( ", base2=", &req
->base2
);
2271 static void dump_get_mapping_filename_request( const struct get_mapping_filename_request
*req
)
2273 fprintf( stderr
, " process=%04x", req
->process
);
2274 dump_uint64( ", addr=", &req
->addr
);
2277 static void dump_get_mapping_filename_reply( const struct get_mapping_filename_reply
*req
)
2279 fprintf( stderr
, " len=%u", req
->len
);
2280 dump_varargs_unicode_str( ", filename=", cur_size
);
2283 static void dump_list_processes_request( const struct list_processes_request
*req
)
2287 static void dump_list_processes_reply( const struct list_processes_reply
*req
)
2289 fprintf( stderr
, " info_size=%u", req
->info_size
);
2290 fprintf( stderr
, ", process_count=%d", req
->process_count
);
2291 dump_varargs_process_info( ", data=", min(cur_size
,req
->info_size
) );
2294 static void dump_create_debug_obj_request( const struct create_debug_obj_request
*req
)
2296 fprintf( stderr
, " access=%08x", req
->access
);
2297 fprintf( stderr
, ", flags=%08x", req
->flags
);
2298 dump_varargs_object_attributes( ", objattr=", cur_size
);
2301 static void dump_create_debug_obj_reply( const struct create_debug_obj_reply
*req
)
2303 fprintf( stderr
, " handle=%04x", req
->handle
);
2306 static void dump_wait_debug_event_request( const struct wait_debug_event_request
*req
)
2308 fprintf( stderr
, " debug=%04x", req
->debug
);
2311 static void dump_wait_debug_event_reply( const struct wait_debug_event_reply
*req
)
2313 fprintf( stderr
, " pid=%04x", req
->pid
);
2314 fprintf( stderr
, ", tid=%04x", req
->tid
);
2315 dump_varargs_debug_event( ", event=", cur_size
);
2318 static void dump_queue_exception_event_request( const struct queue_exception_event_request
*req
)
2320 fprintf( stderr
, " first=%d", req
->first
);
2321 fprintf( stderr
, ", code=%08x", req
->code
);
2322 fprintf( stderr
, ", flags=%08x", req
->flags
);
2323 dump_uint64( ", record=", &req
->record
);
2324 dump_uint64( ", address=", &req
->address
);
2325 fprintf( stderr
, ", len=%u", req
->len
);
2326 dump_varargs_uints64( ", params=", min(cur_size
,req
->len
) );
2329 static void dump_queue_exception_event_reply( const struct queue_exception_event_reply
*req
)
2331 fprintf( stderr
, " handle=%04x", req
->handle
);
2334 static void dump_get_exception_status_request( const struct get_exception_status_request
*req
)
2336 fprintf( stderr
, " handle=%04x", req
->handle
);
2339 static void dump_continue_debug_event_request( const struct continue_debug_event_request
*req
)
2341 fprintf( stderr
, " debug=%04x", req
->debug
);
2342 fprintf( stderr
, ", pid=%04x", req
->pid
);
2343 fprintf( stderr
, ", tid=%04x", req
->tid
);
2344 fprintf( stderr
, ", status=%08x", req
->status
);
2347 static void dump_debug_process_request( const struct debug_process_request
*req
)
2349 fprintf( stderr
, " handle=%04x", req
->handle
);
2350 fprintf( stderr
, ", debug=%04x", req
->debug
);
2351 fprintf( stderr
, ", attach=%d", req
->attach
);
2354 static void dump_set_debug_obj_info_request( const struct set_debug_obj_info_request
*req
)
2356 fprintf( stderr
, " debug=%04x", req
->debug
);
2357 fprintf( stderr
, ", flags=%08x", req
->flags
);
2360 static void dump_read_process_memory_request( const struct read_process_memory_request
*req
)
2362 fprintf( stderr
, " handle=%04x", req
->handle
);
2363 dump_uint64( ", addr=", &req
->addr
);
2366 static void dump_read_process_memory_reply( const struct read_process_memory_reply
*req
)
2368 dump_varargs_bytes( " data=", cur_size
);
2371 static void dump_write_process_memory_request( const struct write_process_memory_request
*req
)
2373 fprintf( stderr
, " handle=%04x", req
->handle
);
2374 dump_uint64( ", addr=", &req
->addr
);
2375 dump_varargs_bytes( ", data=", cur_size
);
2378 static void dump_create_key_request( const struct create_key_request
*req
)
2380 fprintf( stderr
, " access=%08x", req
->access
);
2381 fprintf( stderr
, ", options=%08x", req
->options
);
2382 dump_varargs_object_attributes( ", objattr=", cur_size
);
2383 dump_varargs_unicode_str( ", class=", cur_size
);
2386 static void dump_create_key_reply( const struct create_key_reply
*req
)
2388 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2389 fprintf( stderr
, ", created=%d", req
->created
);
2392 static void dump_open_key_request( const struct open_key_request
*req
)
2394 fprintf( stderr
, " parent=%04x", req
->parent
);
2395 fprintf( stderr
, ", access=%08x", req
->access
);
2396 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
2397 dump_varargs_unicode_str( ", name=", cur_size
);
2400 static void dump_open_key_reply( const struct open_key_reply
*req
)
2402 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2405 static void dump_delete_key_request( const struct delete_key_request
*req
)
2407 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2410 static void dump_flush_key_request( const struct flush_key_request
*req
)
2412 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2415 static void dump_enum_key_request( const struct enum_key_request
*req
)
2417 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2418 fprintf( stderr
, ", index=%d", req
->index
);
2419 fprintf( stderr
, ", info_class=%d", req
->info_class
);
2422 static void dump_enum_key_reply( const struct enum_key_reply
*req
)
2424 fprintf( stderr
, " subkeys=%d", req
->subkeys
);
2425 fprintf( stderr
, ", max_subkey=%d", req
->max_subkey
);
2426 fprintf( stderr
, ", max_class=%d", req
->max_class
);
2427 fprintf( stderr
, ", values=%d", req
->values
);
2428 fprintf( stderr
, ", max_value=%d", req
->max_value
);
2429 fprintf( stderr
, ", max_data=%d", req
->max_data
);
2430 dump_timeout( ", modif=", &req
->modif
);
2431 fprintf( stderr
, ", total=%u", req
->total
);
2432 fprintf( stderr
, ", namelen=%u", req
->namelen
);
2433 dump_varargs_unicode_str( ", name=", min(cur_size
,req
->namelen
) );
2434 dump_varargs_unicode_str( ", class=", cur_size
);
2437 static void dump_set_key_value_request( const struct set_key_value_request
*req
)
2439 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2440 fprintf( stderr
, ", type=%d", req
->type
);
2441 fprintf( stderr
, ", namelen=%u", req
->namelen
);
2442 dump_varargs_unicode_str( ", name=", min(cur_size
,req
->namelen
) );
2443 dump_varargs_bytes( ", data=", cur_size
);
2446 static void dump_get_key_value_request( const struct get_key_value_request
*req
)
2448 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2449 dump_varargs_unicode_str( ", name=", cur_size
);
2452 static void dump_get_key_value_reply( const struct get_key_value_reply
*req
)
2454 fprintf( stderr
, " type=%d", req
->type
);
2455 fprintf( stderr
, ", total=%u", req
->total
);
2456 dump_varargs_bytes( ", data=", cur_size
);
2459 static void dump_enum_key_value_request( const struct enum_key_value_request
*req
)
2461 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2462 fprintf( stderr
, ", index=%d", req
->index
);
2463 fprintf( stderr
, ", info_class=%d", req
->info_class
);
2466 static void dump_enum_key_value_reply( const struct enum_key_value_reply
*req
)
2468 fprintf( stderr
, " type=%d", req
->type
);
2469 fprintf( stderr
, ", total=%u", req
->total
);
2470 fprintf( stderr
, ", namelen=%u", req
->namelen
);
2471 dump_varargs_unicode_str( ", name=", min(cur_size
,req
->namelen
) );
2472 dump_varargs_bytes( ", data=", cur_size
);
2475 static void dump_delete_key_value_request( const struct delete_key_value_request
*req
)
2477 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2478 dump_varargs_unicode_str( ", name=", cur_size
);
2481 static void dump_load_registry_request( const struct load_registry_request
*req
)
2483 fprintf( stderr
, " file=%04x", req
->file
);
2484 dump_varargs_object_attributes( ", objattr=", cur_size
);
2487 static void dump_unload_registry_request( const struct unload_registry_request
*req
)
2489 fprintf( stderr
, " parent=%04x", req
->parent
);
2490 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
2491 dump_varargs_unicode_str( ", name=", cur_size
);
2494 static void dump_save_registry_request( const struct save_registry_request
*req
)
2496 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2497 fprintf( stderr
, ", file=%04x", req
->file
);
2500 static void dump_set_registry_notification_request( const struct set_registry_notification_request
*req
)
2502 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2503 fprintf( stderr
, ", event=%04x", req
->event
);
2504 fprintf( stderr
, ", subtree=%d", req
->subtree
);
2505 fprintf( stderr
, ", filter=%08x", req
->filter
);
2508 static void dump_create_timer_request( const struct create_timer_request
*req
)
2510 fprintf( stderr
, " access=%08x", req
->access
);
2511 fprintf( stderr
, ", manual=%d", req
->manual
);
2512 dump_varargs_object_attributes( ", objattr=", cur_size
);
2515 static void dump_create_timer_reply( const struct create_timer_reply
*req
)
2517 fprintf( stderr
, " handle=%04x", req
->handle
);
2520 static void dump_open_timer_request( const struct open_timer_request
*req
)
2522 fprintf( stderr
, " access=%08x", req
->access
);
2523 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
2524 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
2525 dump_varargs_unicode_str( ", name=", cur_size
);
2528 static void dump_open_timer_reply( const struct open_timer_reply
*req
)
2530 fprintf( stderr
, " handle=%04x", req
->handle
);
2533 static void dump_set_timer_request( const struct set_timer_request
*req
)
2535 fprintf( stderr
, " handle=%04x", req
->handle
);
2536 dump_timeout( ", expire=", &req
->expire
);
2537 dump_uint64( ", callback=", &req
->callback
);
2538 dump_uint64( ", arg=", &req
->arg
);
2539 fprintf( stderr
, ", period=%d", req
->period
);
2542 static void dump_set_timer_reply( const struct set_timer_reply
*req
)
2544 fprintf( stderr
, " signaled=%d", req
->signaled
);
2547 static void dump_cancel_timer_request( const struct cancel_timer_request
*req
)
2549 fprintf( stderr
, " handle=%04x", req
->handle
);
2552 static void dump_cancel_timer_reply( const struct cancel_timer_reply
*req
)
2554 fprintf( stderr
, " signaled=%d", req
->signaled
);
2557 static void dump_get_timer_info_request( const struct get_timer_info_request
*req
)
2559 fprintf( stderr
, " handle=%04x", req
->handle
);
2562 static void dump_get_timer_info_reply( const struct get_timer_info_reply
*req
)
2564 dump_timeout( " when=", &req
->when
);
2565 fprintf( stderr
, ", signaled=%d", req
->signaled
);
2568 static void dump_get_thread_context_request( const struct get_thread_context_request
*req
)
2570 fprintf( stderr
, " handle=%04x", req
->handle
);
2571 fprintf( stderr
, ", context=%04x", req
->context
);
2572 fprintf( stderr
, ", flags=%08x", req
->flags
);
2573 fprintf( stderr
, ", machine=%04x", req
->machine
);
2576 static void dump_get_thread_context_reply( const struct get_thread_context_reply
*req
)
2578 fprintf( stderr
, " self=%d", req
->self
);
2579 fprintf( stderr
, ", handle=%04x", req
->handle
);
2580 dump_varargs_contexts( ", contexts=", cur_size
);
2583 static void dump_set_thread_context_request( const struct set_thread_context_request
*req
)
2585 fprintf( stderr
, " handle=%04x", req
->handle
);
2586 dump_varargs_contexts( ", contexts=", cur_size
);
2589 static void dump_set_thread_context_reply( const struct set_thread_context_reply
*req
)
2591 fprintf( stderr
, " self=%d", req
->self
);
2594 static void dump_get_selector_entry_request( const struct get_selector_entry_request
*req
)
2596 fprintf( stderr
, " handle=%04x", req
->handle
);
2597 fprintf( stderr
, ", entry=%d", req
->entry
);
2600 static void dump_get_selector_entry_reply( const struct get_selector_entry_reply
*req
)
2602 fprintf( stderr
, " base=%08x", req
->base
);
2603 fprintf( stderr
, ", limit=%08x", req
->limit
);
2604 fprintf( stderr
, ", flags=%02x", req
->flags
);
2607 static void dump_add_atom_request( const struct add_atom_request
*req
)
2609 dump_varargs_unicode_str( " name=", cur_size
);
2612 static void dump_add_atom_reply( const struct add_atom_reply
*req
)
2614 fprintf( stderr
, " atom=%04x", req
->atom
);
2617 static void dump_delete_atom_request( const struct delete_atom_request
*req
)
2619 fprintf( stderr
, " atom=%04x", req
->atom
);
2622 static void dump_find_atom_request( const struct find_atom_request
*req
)
2624 dump_varargs_unicode_str( " name=", cur_size
);
2627 static void dump_find_atom_reply( const struct find_atom_reply
*req
)
2629 fprintf( stderr
, " atom=%04x", req
->atom
);
2632 static void dump_get_atom_information_request( const struct get_atom_information_request
*req
)
2634 fprintf( stderr
, " atom=%04x", req
->atom
);
2637 static void dump_get_atom_information_reply( const struct get_atom_information_reply
*req
)
2639 fprintf( stderr
, " count=%d", req
->count
);
2640 fprintf( stderr
, ", pinned=%d", req
->pinned
);
2641 fprintf( stderr
, ", total=%u", req
->total
);
2642 dump_varargs_unicode_str( ", name=", cur_size
);
2645 static void dump_get_msg_queue_request( const struct get_msg_queue_request
*req
)
2649 static void dump_get_msg_queue_reply( const struct get_msg_queue_reply
*req
)
2651 fprintf( stderr
, " handle=%04x", req
->handle
);
2654 static void dump_set_queue_fd_request( const struct set_queue_fd_request
*req
)
2656 fprintf( stderr
, " handle=%04x", req
->handle
);
2659 static void dump_set_queue_mask_request( const struct set_queue_mask_request
*req
)
2661 fprintf( stderr
, " wake_mask=%08x", req
->wake_mask
);
2662 fprintf( stderr
, ", changed_mask=%08x", req
->changed_mask
);
2663 fprintf( stderr
, ", skip_wait=%d", req
->skip_wait
);
2666 static void dump_set_queue_mask_reply( const struct set_queue_mask_reply
*req
)
2668 fprintf( stderr
, " wake_bits=%08x", req
->wake_bits
);
2669 fprintf( stderr
, ", changed_bits=%08x", req
->changed_bits
);
2672 static void dump_get_queue_status_request( const struct get_queue_status_request
*req
)
2674 fprintf( stderr
, " clear_bits=%08x", req
->clear_bits
);
2677 static void dump_get_queue_status_reply( const struct get_queue_status_reply
*req
)
2679 fprintf( stderr
, " wake_bits=%08x", req
->wake_bits
);
2680 fprintf( stderr
, ", changed_bits=%08x", req
->changed_bits
);
2683 static void dump_get_process_idle_event_request( const struct get_process_idle_event_request
*req
)
2685 fprintf( stderr
, " handle=%04x", req
->handle
);
2688 static void dump_get_process_idle_event_reply( const struct get_process_idle_event_reply
*req
)
2690 fprintf( stderr
, " event=%04x", req
->event
);
2693 static void dump_send_message_request( const struct send_message_request
*req
)
2695 fprintf( stderr
, " id=%04x", req
->id
);
2696 fprintf( stderr
, ", type=%d", req
->type
);
2697 fprintf( stderr
, ", flags=%d", req
->flags
);
2698 fprintf( stderr
, ", win=%08x", req
->win
);
2699 fprintf( stderr
, ", msg=%08x", req
->msg
);
2700 dump_uint64( ", wparam=", &req
->wparam
);
2701 dump_uint64( ", lparam=", &req
->lparam
);
2702 dump_timeout( ", timeout=", &req
->timeout
);
2703 dump_varargs_message_data( ", data=", cur_size
);
2706 static void dump_post_quit_message_request( const struct post_quit_message_request
*req
)
2708 fprintf( stderr
, " exit_code=%d", req
->exit_code
);
2711 static void dump_send_hardware_message_request( const struct send_hardware_message_request
*req
)
2713 fprintf( stderr
, " win=%08x", req
->win
);
2714 dump_hw_input( ", input=", &req
->input
);
2715 fprintf( stderr
, ", flags=%08x", req
->flags
);
2716 dump_varargs_bytes( ", report=", cur_size
);
2719 static void dump_send_hardware_message_reply( const struct send_hardware_message_reply
*req
)
2721 fprintf( stderr
, " wait=%d", req
->wait
);
2722 fprintf( stderr
, ", prev_x=%d", req
->prev_x
);
2723 fprintf( stderr
, ", prev_y=%d", req
->prev_y
);
2724 fprintf( stderr
, ", new_x=%d", req
->new_x
);
2725 fprintf( stderr
, ", new_y=%d", req
->new_y
);
2726 dump_varargs_bytes( ", keystate=", cur_size
);
2729 static void dump_get_message_request( const struct get_message_request
*req
)
2731 fprintf( stderr
, " flags=%08x", req
->flags
);
2732 fprintf( stderr
, ", get_win=%08x", req
->get_win
);
2733 fprintf( stderr
, ", get_first=%08x", req
->get_first
);
2734 fprintf( stderr
, ", get_last=%08x", req
->get_last
);
2735 fprintf( stderr
, ", hw_id=%08x", req
->hw_id
);
2736 fprintf( stderr
, ", wake_mask=%08x", req
->wake_mask
);
2737 fprintf( stderr
, ", changed_mask=%08x", req
->changed_mask
);
2740 static void dump_get_message_reply( const struct get_message_reply
*req
)
2742 fprintf( stderr
, " win=%08x", req
->win
);
2743 fprintf( stderr
, ", msg=%08x", req
->msg
);
2744 dump_uint64( ", wparam=", &req
->wparam
);
2745 dump_uint64( ", lparam=", &req
->lparam
);
2746 fprintf( stderr
, ", type=%d", req
->type
);
2747 fprintf( stderr
, ", x=%d", req
->x
);
2748 fprintf( stderr
, ", y=%d", req
->y
);
2749 fprintf( stderr
, ", time=%08x", req
->time
);
2750 fprintf( stderr
, ", active_hooks=%08x", req
->active_hooks
);
2751 fprintf( stderr
, ", total=%u", req
->total
);
2752 dump_varargs_message_data( ", data=", cur_size
);
2755 static void dump_reply_message_request( const struct reply_message_request
*req
)
2757 fprintf( stderr
, " remove=%d", req
->remove
);
2758 dump_uint64( ", result=", &req
->result
);
2759 dump_varargs_bytes( ", data=", cur_size
);
2762 static void dump_accept_hardware_message_request( const struct accept_hardware_message_request
*req
)
2764 fprintf( stderr
, " hw_id=%08x", req
->hw_id
);
2767 static void dump_get_message_reply_request( const struct get_message_reply_request
*req
)
2769 fprintf( stderr
, " cancel=%d", req
->cancel
);
2772 static void dump_get_message_reply_reply( const struct get_message_reply_reply
*req
)
2774 dump_uint64( " result=", &req
->result
);
2775 dump_varargs_bytes( ", data=", cur_size
);
2778 static void dump_set_win_timer_request( const struct set_win_timer_request
*req
)
2780 fprintf( stderr
, " win=%08x", req
->win
);
2781 fprintf( stderr
, ", msg=%08x", req
->msg
);
2782 fprintf( stderr
, ", rate=%08x", req
->rate
);
2783 dump_uint64( ", id=", &req
->id
);
2784 dump_uint64( ", lparam=", &req
->lparam
);
2787 static void dump_set_win_timer_reply( const struct set_win_timer_reply
*req
)
2789 dump_uint64( " id=", &req
->id
);
2792 static void dump_kill_win_timer_request( const struct kill_win_timer_request
*req
)
2794 fprintf( stderr
, " win=%08x", req
->win
);
2795 dump_uint64( ", id=", &req
->id
);
2796 fprintf( stderr
, ", msg=%08x", req
->msg
);
2799 static void dump_is_window_hung_request( const struct is_window_hung_request
*req
)
2801 fprintf( stderr
, " win=%08x", req
->win
);
2804 static void dump_is_window_hung_reply( const struct is_window_hung_reply
*req
)
2806 fprintf( stderr
, " is_hung=%d", req
->is_hung
);
2809 static void dump_get_serial_info_request( const struct get_serial_info_request
*req
)
2811 fprintf( stderr
, " handle=%04x", req
->handle
);
2812 fprintf( stderr
, ", flags=%d", req
->flags
);
2815 static void dump_get_serial_info_reply( const struct get_serial_info_reply
*req
)
2817 fprintf( stderr
, " eventmask=%08x", req
->eventmask
);
2818 fprintf( stderr
, ", cookie=%08x", req
->cookie
);
2819 fprintf( stderr
, ", pending_write=%08x", req
->pending_write
);
2822 static void dump_set_serial_info_request( const struct set_serial_info_request
*req
)
2824 fprintf( stderr
, " handle=%04x", req
->handle
);
2825 fprintf( stderr
, ", flags=%d", req
->flags
);
2828 static void dump_register_async_request( const struct register_async_request
*req
)
2830 fprintf( stderr
, " type=%d", req
->type
);
2831 dump_async_data( ", async=", &req
->async
);
2832 fprintf( stderr
, ", count=%d", req
->count
);
2835 static void dump_cancel_async_request( const struct cancel_async_request
*req
)
2837 fprintf( stderr
, " handle=%04x", req
->handle
);
2838 dump_uint64( ", iosb=", &req
->iosb
);
2839 fprintf( stderr
, ", only_thread=%d", req
->only_thread
);
2842 static void dump_get_async_result_request( const struct get_async_result_request
*req
)
2844 dump_uint64( " user_arg=", &req
->user_arg
);
2847 static void dump_get_async_result_reply( const struct get_async_result_reply
*req
)
2849 fprintf( stderr
, " size=%u", req
->size
);
2850 dump_varargs_bytes( ", out_data=", cur_size
);
2853 static void dump_read_request( const struct read_request
*req
)
2855 dump_async_data( " async=", &req
->async
);
2856 dump_uint64( ", pos=", &req
->pos
);
2859 static void dump_read_reply( const struct read_reply
*req
)
2861 fprintf( stderr
, " wait=%04x", req
->wait
);
2862 fprintf( stderr
, ", options=%08x", req
->options
);
2863 dump_varargs_bytes( ", data=", cur_size
);
2866 static void dump_write_request( const struct write_request
*req
)
2868 dump_async_data( " async=", &req
->async
);
2869 dump_uint64( ", pos=", &req
->pos
);
2870 dump_varargs_bytes( ", data=", cur_size
);
2873 static void dump_write_reply( const struct write_reply
*req
)
2875 fprintf( stderr
, " wait=%04x", req
->wait
);
2876 fprintf( stderr
, ", options=%08x", req
->options
);
2877 fprintf( stderr
, ", size=%u", req
->size
);
2880 static void dump_ioctl_request( const struct ioctl_request
*req
)
2882 dump_ioctl_code( " code=", &req
->code
);
2883 dump_async_data( ", async=", &req
->async
);
2884 dump_varargs_bytes( ", in_data=", cur_size
);
2887 static void dump_ioctl_reply( const struct ioctl_reply
*req
)
2889 fprintf( stderr
, " wait=%04x", req
->wait
);
2890 fprintf( stderr
, ", options=%08x", req
->options
);
2891 dump_varargs_bytes( ", out_data=", cur_size
);
2894 static void dump_set_irp_result_request( const struct set_irp_result_request
*req
)
2896 fprintf( stderr
, " handle=%04x", req
->handle
);
2897 fprintf( stderr
, ", status=%08x", req
->status
);
2898 fprintf( stderr
, ", size=%u", req
->size
);
2899 dump_varargs_bytes( ", data=", cur_size
);
2902 static void dump_create_named_pipe_request( const struct create_named_pipe_request
*req
)
2904 fprintf( stderr
, " access=%08x", req
->access
);
2905 fprintf( stderr
, ", options=%08x", req
->options
);
2906 fprintf( stderr
, ", sharing=%08x", req
->sharing
);
2907 fprintf( stderr
, ", maxinstances=%08x", req
->maxinstances
);
2908 fprintf( stderr
, ", outsize=%08x", req
->outsize
);
2909 fprintf( stderr
, ", insize=%08x", req
->insize
);
2910 dump_timeout( ", timeout=", &req
->timeout
);
2911 fprintf( stderr
, ", flags=%08x", req
->flags
);
2912 dump_varargs_object_attributes( ", objattr=", cur_size
);
2915 static void dump_create_named_pipe_reply( const struct create_named_pipe_reply
*req
)
2917 fprintf( stderr
, " handle=%04x", req
->handle
);
2920 static void dump_set_named_pipe_info_request( const struct set_named_pipe_info_request
*req
)
2922 fprintf( stderr
, " handle=%04x", req
->handle
);
2923 fprintf( stderr
, ", flags=%08x", req
->flags
);
2926 static void dump_create_window_request( const struct create_window_request
*req
)
2928 fprintf( stderr
, " parent=%08x", req
->parent
);
2929 fprintf( stderr
, ", owner=%08x", req
->owner
);
2930 fprintf( stderr
, ", atom=%04x", req
->atom
);
2931 dump_uint64( ", instance=", &req
->instance
);
2932 fprintf( stderr
, ", dpi=%d", req
->dpi
);
2933 fprintf( stderr
, ", awareness=%d", req
->awareness
);
2934 dump_varargs_unicode_str( ", class=", cur_size
);
2937 static void dump_create_window_reply( const struct create_window_reply
*req
)
2939 fprintf( stderr
, " handle=%08x", req
->handle
);
2940 fprintf( stderr
, ", parent=%08x", req
->parent
);
2941 fprintf( stderr
, ", owner=%08x", req
->owner
);
2942 fprintf( stderr
, ", extra=%d", req
->extra
);
2943 dump_uint64( ", class_ptr=", &req
->class_ptr
);
2944 fprintf( stderr
, ", dpi=%d", req
->dpi
);
2945 fprintf( stderr
, ", awareness=%d", req
->awareness
);
2948 static void dump_destroy_window_request( const struct destroy_window_request
*req
)
2950 fprintf( stderr
, " handle=%08x", req
->handle
);
2953 static void dump_get_desktop_window_request( const struct get_desktop_window_request
*req
)
2955 fprintf( stderr
, " force=%d", req
->force
);
2958 static void dump_get_desktop_window_reply( const struct get_desktop_window_reply
*req
)
2960 fprintf( stderr
, " top_window=%08x", req
->top_window
);
2961 fprintf( stderr
, ", msg_window=%08x", req
->msg_window
);
2964 static void dump_set_window_owner_request( const struct set_window_owner_request
*req
)
2966 fprintf( stderr
, " handle=%08x", req
->handle
);
2967 fprintf( stderr
, ", owner=%08x", req
->owner
);
2970 static void dump_set_window_owner_reply( const struct set_window_owner_reply
*req
)
2972 fprintf( stderr
, " full_owner=%08x", req
->full_owner
);
2973 fprintf( stderr
, ", prev_owner=%08x", req
->prev_owner
);
2976 static void dump_get_window_info_request( const struct get_window_info_request
*req
)
2978 fprintf( stderr
, " handle=%08x", req
->handle
);
2981 static void dump_get_window_info_reply( const struct get_window_info_reply
*req
)
2983 fprintf( stderr
, " full_handle=%08x", req
->full_handle
);
2984 fprintf( stderr
, ", last_active=%08x", req
->last_active
);
2985 fprintf( stderr
, ", pid=%04x", req
->pid
);
2986 fprintf( stderr
, ", tid=%04x", req
->tid
);
2987 fprintf( stderr
, ", atom=%04x", req
->atom
);
2988 fprintf( stderr
, ", is_unicode=%d", req
->is_unicode
);
2989 fprintf( stderr
, ", dpi=%d", req
->dpi
);
2990 fprintf( stderr
, ", awareness=%d", req
->awareness
);
2993 static void dump_set_window_info_request( const struct set_window_info_request
*req
)
2995 fprintf( stderr
, " flags=%04x", req
->flags
);
2996 fprintf( stderr
, ", is_unicode=%d", req
->is_unicode
);
2997 fprintf( stderr
, ", handle=%08x", req
->handle
);
2998 fprintf( stderr
, ", style=%08x", req
->style
);
2999 fprintf( stderr
, ", ex_style=%08x", req
->ex_style
);
3000 fprintf( stderr
, ", id=%08x", req
->id
);
3001 dump_uint64( ", instance=", &req
->instance
);
3002 dump_uint64( ", user_data=", &req
->user_data
);
3003 fprintf( stderr
, ", extra_offset=%d", req
->extra_offset
);
3004 fprintf( stderr
, ", extra_size=%u", req
->extra_size
);
3005 dump_uint64( ", extra_value=", &req
->extra_value
);
3008 static void dump_set_window_info_reply( const struct set_window_info_reply
*req
)
3010 fprintf( stderr
, " old_style=%08x", req
->old_style
);
3011 fprintf( stderr
, ", old_ex_style=%08x", req
->old_ex_style
);
3012 dump_uint64( ", old_instance=", &req
->old_instance
);
3013 dump_uint64( ", old_user_data=", &req
->old_user_data
);
3014 dump_uint64( ", old_extra_value=", &req
->old_extra_value
);
3015 fprintf( stderr
, ", old_id=%08x", req
->old_id
);
3018 static void dump_set_parent_request( const struct set_parent_request
*req
)
3020 fprintf( stderr
, " handle=%08x", req
->handle
);
3021 fprintf( stderr
, ", parent=%08x", req
->parent
);
3024 static void dump_set_parent_reply( const struct set_parent_reply
*req
)
3026 fprintf( stderr
, " old_parent=%08x", req
->old_parent
);
3027 fprintf( stderr
, ", full_parent=%08x", req
->full_parent
);
3028 fprintf( stderr
, ", dpi=%d", req
->dpi
);
3029 fprintf( stderr
, ", awareness=%d", req
->awareness
);
3032 static void dump_get_window_parents_request( const struct get_window_parents_request
*req
)
3034 fprintf( stderr
, " handle=%08x", req
->handle
);
3037 static void dump_get_window_parents_reply( const struct get_window_parents_reply
*req
)
3039 fprintf( stderr
, " count=%d", req
->count
);
3040 dump_varargs_user_handles( ", parents=", cur_size
);
3043 static void dump_get_window_children_request( const struct get_window_children_request
*req
)
3045 fprintf( stderr
, " desktop=%04x", req
->desktop
);
3046 fprintf( stderr
, ", parent=%08x", req
->parent
);
3047 fprintf( stderr
, ", atom=%04x", req
->atom
);
3048 fprintf( stderr
, ", tid=%04x", req
->tid
);
3049 dump_varargs_unicode_str( ", class=", cur_size
);
3052 static void dump_get_window_children_reply( const struct get_window_children_reply
*req
)
3054 fprintf( stderr
, " count=%d", req
->count
);
3055 dump_varargs_user_handles( ", children=", cur_size
);
3058 static void dump_get_window_children_from_point_request( const struct get_window_children_from_point_request
*req
)
3060 fprintf( stderr
, " parent=%08x", req
->parent
);
3061 fprintf( stderr
, ", x=%d", req
->x
);
3062 fprintf( stderr
, ", y=%d", req
->y
);
3063 fprintf( stderr
, ", dpi=%d", req
->dpi
);
3066 static void dump_get_window_children_from_point_reply( const struct get_window_children_from_point_reply
*req
)
3068 fprintf( stderr
, " count=%d", req
->count
);
3069 dump_varargs_user_handles( ", children=", cur_size
);
3072 static void dump_get_window_tree_request( const struct get_window_tree_request
*req
)
3074 fprintf( stderr
, " handle=%08x", req
->handle
);
3077 static void dump_get_window_tree_reply( const struct get_window_tree_reply
*req
)
3079 fprintf( stderr
, " parent=%08x", req
->parent
);
3080 fprintf( stderr
, ", owner=%08x", req
->owner
);
3081 fprintf( stderr
, ", next_sibling=%08x", req
->next_sibling
);
3082 fprintf( stderr
, ", prev_sibling=%08x", req
->prev_sibling
);
3083 fprintf( stderr
, ", first_sibling=%08x", req
->first_sibling
);
3084 fprintf( stderr
, ", last_sibling=%08x", req
->last_sibling
);
3085 fprintf( stderr
, ", first_child=%08x", req
->first_child
);
3086 fprintf( stderr
, ", last_child=%08x", req
->last_child
);
3089 static void dump_set_window_pos_request( const struct set_window_pos_request
*req
)
3091 fprintf( stderr
, " swp_flags=%04x", req
->swp_flags
);
3092 fprintf( stderr
, ", paint_flags=%04x", req
->paint_flags
);
3093 fprintf( stderr
, ", handle=%08x", req
->handle
);
3094 fprintf( stderr
, ", previous=%08x", req
->previous
);
3095 dump_rectangle( ", window=", &req
->window
);
3096 dump_rectangle( ", client=", &req
->client
);
3097 dump_varargs_rectangles( ", valid=", cur_size
);
3100 static void dump_set_window_pos_reply( const struct set_window_pos_reply
*req
)
3102 fprintf( stderr
, " new_style=%08x", req
->new_style
);
3103 fprintf( stderr
, ", new_ex_style=%08x", req
->new_ex_style
);
3104 fprintf( stderr
, ", surface_win=%08x", req
->surface_win
);
3105 fprintf( stderr
, ", needs_update=%d", req
->needs_update
);
3108 static void dump_get_window_rectangles_request( const struct get_window_rectangles_request
*req
)
3110 fprintf( stderr
, " handle=%08x", req
->handle
);
3111 fprintf( stderr
, ", relative=%d", req
->relative
);
3112 fprintf( stderr
, ", dpi=%d", req
->dpi
);
3115 static void dump_get_window_rectangles_reply( const struct get_window_rectangles_reply
*req
)
3117 dump_rectangle( " window=", &req
->window
);
3118 dump_rectangle( ", client=", &req
->client
);
3121 static void dump_get_window_text_request( const struct get_window_text_request
*req
)
3123 fprintf( stderr
, " handle=%08x", req
->handle
);
3126 static void dump_get_window_text_reply( const struct get_window_text_reply
*req
)
3128 fprintf( stderr
, " length=%u", req
->length
);
3129 dump_varargs_unicode_str( ", text=", cur_size
);
3132 static void dump_set_window_text_request( const struct set_window_text_request
*req
)
3134 fprintf( stderr
, " handle=%08x", req
->handle
);
3135 dump_varargs_unicode_str( ", text=", cur_size
);
3138 static void dump_get_windows_offset_request( const struct get_windows_offset_request
*req
)
3140 fprintf( stderr
, " from=%08x", req
->from
);
3141 fprintf( stderr
, ", to=%08x", req
->to
);
3142 fprintf( stderr
, ", dpi=%d", req
->dpi
);
3145 static void dump_get_windows_offset_reply( const struct get_windows_offset_reply
*req
)
3147 fprintf( stderr
, " x=%d", req
->x
);
3148 fprintf( stderr
, ", y=%d", req
->y
);
3149 fprintf( stderr
, ", mirror=%d", req
->mirror
);
3152 static void dump_get_visible_region_request( const struct get_visible_region_request
*req
)
3154 fprintf( stderr
, " window=%08x", req
->window
);
3155 fprintf( stderr
, ", flags=%08x", req
->flags
);
3158 static void dump_get_visible_region_reply( const struct get_visible_region_reply
*req
)
3160 fprintf( stderr
, " top_win=%08x", req
->top_win
);
3161 dump_rectangle( ", top_rect=", &req
->top_rect
);
3162 dump_rectangle( ", win_rect=", &req
->win_rect
);
3163 fprintf( stderr
, ", paint_flags=%08x", req
->paint_flags
);
3164 fprintf( stderr
, ", total_size=%u", req
->total_size
);
3165 dump_varargs_rectangles( ", region=", cur_size
);
3168 static void dump_get_surface_region_request( const struct get_surface_region_request
*req
)
3170 fprintf( stderr
, " window=%08x", req
->window
);
3173 static void dump_get_surface_region_reply( const struct get_surface_region_reply
*req
)
3175 dump_rectangle( " visible_rect=", &req
->visible_rect
);
3176 fprintf( stderr
, ", total_size=%u", req
->total_size
);
3177 dump_varargs_rectangles( ", region=", cur_size
);
3180 static void dump_get_window_region_request( const struct get_window_region_request
*req
)
3182 fprintf( stderr
, " window=%08x", req
->window
);
3185 static void dump_get_window_region_reply( const struct get_window_region_reply
*req
)
3187 fprintf( stderr
, " total_size=%u", req
->total_size
);
3188 dump_varargs_rectangles( ", region=", cur_size
);
3191 static void dump_set_window_region_request( const struct set_window_region_request
*req
)
3193 fprintf( stderr
, " window=%08x", req
->window
);
3194 fprintf( stderr
, ", redraw=%d", req
->redraw
);
3195 dump_varargs_rectangles( ", region=", cur_size
);
3198 static void dump_get_update_region_request( const struct get_update_region_request
*req
)
3200 fprintf( stderr
, " window=%08x", req
->window
);
3201 fprintf( stderr
, ", from_child=%08x", req
->from_child
);
3202 fprintf( stderr
, ", flags=%08x", req
->flags
);
3205 static void dump_get_update_region_reply( const struct get_update_region_reply
*req
)
3207 fprintf( stderr
, " child=%08x", req
->child
);
3208 fprintf( stderr
, ", flags=%08x", req
->flags
);
3209 fprintf( stderr
, ", total_size=%u", req
->total_size
);
3210 dump_varargs_rectangles( ", region=", cur_size
);
3213 static void dump_update_window_zorder_request( const struct update_window_zorder_request
*req
)
3215 fprintf( stderr
, " window=%08x", req
->window
);
3216 dump_rectangle( ", rect=", &req
->rect
);
3219 static void dump_redraw_window_request( const struct redraw_window_request
*req
)
3221 fprintf( stderr
, " window=%08x", req
->window
);
3222 fprintf( stderr
, ", flags=%08x", req
->flags
);
3223 dump_varargs_rectangles( ", region=", cur_size
);
3226 static void dump_set_window_property_request( const struct set_window_property_request
*req
)
3228 fprintf( stderr
, " window=%08x", req
->window
);
3229 dump_uint64( ", data=", &req
->data
);
3230 fprintf( stderr
, ", atom=%04x", req
->atom
);
3231 dump_varargs_unicode_str( ", name=", cur_size
);
3234 static void dump_remove_window_property_request( const struct remove_window_property_request
*req
)
3236 fprintf( stderr
, " window=%08x", req
->window
);
3237 fprintf( stderr
, ", atom=%04x", req
->atom
);
3238 dump_varargs_unicode_str( ", name=", cur_size
);
3241 static void dump_remove_window_property_reply( const struct remove_window_property_reply
*req
)
3243 dump_uint64( " data=", &req
->data
);
3246 static void dump_get_window_property_request( const struct get_window_property_request
*req
)
3248 fprintf( stderr
, " window=%08x", req
->window
);
3249 fprintf( stderr
, ", atom=%04x", req
->atom
);
3250 dump_varargs_unicode_str( ", name=", cur_size
);
3253 static void dump_get_window_property_reply( const struct get_window_property_reply
*req
)
3255 dump_uint64( " data=", &req
->data
);
3258 static void dump_get_window_properties_request( const struct get_window_properties_request
*req
)
3260 fprintf( stderr
, " window=%08x", req
->window
);
3263 static void dump_get_window_properties_reply( const struct get_window_properties_reply
*req
)
3265 fprintf( stderr
, " total=%d", req
->total
);
3266 dump_varargs_properties( ", props=", cur_size
);
3269 static void dump_create_winstation_request( const struct create_winstation_request
*req
)
3271 fprintf( stderr
, " flags=%08x", req
->flags
);
3272 fprintf( stderr
, ", access=%08x", req
->access
);
3273 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3274 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
3275 dump_varargs_unicode_str( ", name=", cur_size
);
3278 static void dump_create_winstation_reply( const struct create_winstation_reply
*req
)
3280 fprintf( stderr
, " handle=%04x", req
->handle
);
3283 static void dump_open_winstation_request( const struct open_winstation_request
*req
)
3285 fprintf( stderr
, " access=%08x", req
->access
);
3286 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3287 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
3288 dump_varargs_unicode_str( ", name=", cur_size
);
3291 static void dump_open_winstation_reply( const struct open_winstation_reply
*req
)
3293 fprintf( stderr
, " handle=%04x", req
->handle
);
3296 static void dump_close_winstation_request( const struct close_winstation_request
*req
)
3298 fprintf( stderr
, " handle=%04x", req
->handle
);
3301 static void dump_get_process_winstation_request( const struct get_process_winstation_request
*req
)
3305 static void dump_get_process_winstation_reply( const struct get_process_winstation_reply
*req
)
3307 fprintf( stderr
, " handle=%04x", req
->handle
);
3310 static void dump_set_process_winstation_request( const struct set_process_winstation_request
*req
)
3312 fprintf( stderr
, " handle=%04x", req
->handle
);
3315 static void dump_enum_winstation_request( const struct enum_winstation_request
*req
)
3317 fprintf( stderr
, " index=%08x", req
->index
);
3320 static void dump_enum_winstation_reply( const struct enum_winstation_reply
*req
)
3322 fprintf( stderr
, " next=%08x", req
->next
);
3323 dump_varargs_unicode_str( ", name=", cur_size
);
3326 static void dump_create_desktop_request( const struct create_desktop_request
*req
)
3328 fprintf( stderr
, " flags=%08x", req
->flags
);
3329 fprintf( stderr
, ", access=%08x", req
->access
);
3330 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3331 dump_varargs_unicode_str( ", name=", cur_size
);
3334 static void dump_create_desktop_reply( const struct create_desktop_reply
*req
)
3336 fprintf( stderr
, " handle=%04x", req
->handle
);
3339 static void dump_open_desktop_request( const struct open_desktop_request
*req
)
3341 fprintf( stderr
, " winsta=%04x", req
->winsta
);
3342 fprintf( stderr
, ", flags=%08x", req
->flags
);
3343 fprintf( stderr
, ", access=%08x", req
->access
);
3344 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3345 dump_varargs_unicode_str( ", name=", cur_size
);
3348 static void dump_open_desktop_reply( const struct open_desktop_reply
*req
)
3350 fprintf( stderr
, " handle=%04x", req
->handle
);
3353 static void dump_open_input_desktop_request( const struct open_input_desktop_request
*req
)
3355 fprintf( stderr
, " flags=%08x", req
->flags
);
3356 fprintf( stderr
, ", access=%08x", req
->access
);
3357 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3360 static void dump_open_input_desktop_reply( const struct open_input_desktop_reply
*req
)
3362 fprintf( stderr
, " handle=%04x", req
->handle
);
3365 static void dump_close_desktop_request( const struct close_desktop_request
*req
)
3367 fprintf( stderr
, " handle=%04x", req
->handle
);
3370 static void dump_get_thread_desktop_request( const struct get_thread_desktop_request
*req
)
3372 fprintf( stderr
, " tid=%04x", req
->tid
);
3375 static void dump_get_thread_desktop_reply( const struct get_thread_desktop_reply
*req
)
3377 fprintf( stderr
, " handle=%04x", req
->handle
);
3380 static void dump_set_thread_desktop_request( const struct set_thread_desktop_request
*req
)
3382 fprintf( stderr
, " handle=%04x", req
->handle
);
3385 static void dump_enum_desktop_request( const struct enum_desktop_request
*req
)
3387 fprintf( stderr
, " winstation=%04x", req
->winstation
);
3388 fprintf( stderr
, ", index=%08x", req
->index
);
3391 static void dump_enum_desktop_reply( const struct enum_desktop_reply
*req
)
3393 fprintf( stderr
, " next=%08x", req
->next
);
3394 dump_varargs_unicode_str( ", name=", cur_size
);
3397 static void dump_set_user_object_info_request( const struct set_user_object_info_request
*req
)
3399 fprintf( stderr
, " handle=%04x", req
->handle
);
3400 fprintf( stderr
, ", flags=%08x", req
->flags
);
3401 fprintf( stderr
, ", obj_flags=%08x", req
->obj_flags
);
3404 static void dump_set_user_object_info_reply( const struct set_user_object_info_reply
*req
)
3406 fprintf( stderr
, " is_desktop=%d", req
->is_desktop
);
3407 fprintf( stderr
, ", old_obj_flags=%08x", req
->old_obj_flags
);
3408 dump_varargs_unicode_str( ", name=", cur_size
);
3411 static void dump_register_hotkey_request( const struct register_hotkey_request
*req
)
3413 fprintf( stderr
, " window=%08x", req
->window
);
3414 fprintf( stderr
, ", id=%d", req
->id
);
3415 fprintf( stderr
, ", flags=%08x", req
->flags
);
3416 fprintf( stderr
, ", vkey=%08x", req
->vkey
);
3419 static void dump_register_hotkey_reply( const struct register_hotkey_reply
*req
)
3421 fprintf( stderr
, " replaced=%d", req
->replaced
);
3422 fprintf( stderr
, ", flags=%08x", req
->flags
);
3423 fprintf( stderr
, ", vkey=%08x", req
->vkey
);
3426 static void dump_unregister_hotkey_request( const struct unregister_hotkey_request
*req
)
3428 fprintf( stderr
, " window=%08x", req
->window
);
3429 fprintf( stderr
, ", id=%d", req
->id
);
3432 static void dump_unregister_hotkey_reply( const struct unregister_hotkey_reply
*req
)
3434 fprintf( stderr
, " flags=%08x", req
->flags
);
3435 fprintf( stderr
, ", vkey=%08x", req
->vkey
);
3438 static void dump_attach_thread_input_request( const struct attach_thread_input_request
*req
)
3440 fprintf( stderr
, " tid_from=%04x", req
->tid_from
);
3441 fprintf( stderr
, ", tid_to=%04x", req
->tid_to
);
3442 fprintf( stderr
, ", attach=%d", req
->attach
);
3445 static void dump_get_thread_input_request( const struct get_thread_input_request
*req
)
3447 fprintf( stderr
, " tid=%04x", req
->tid
);
3450 static void dump_get_thread_input_reply( const struct get_thread_input_reply
*req
)
3452 fprintf( stderr
, " focus=%08x", req
->focus
);
3453 fprintf( stderr
, ", capture=%08x", req
->capture
);
3454 fprintf( stderr
, ", active=%08x", req
->active
);
3455 fprintf( stderr
, ", foreground=%08x", req
->foreground
);
3456 fprintf( stderr
, ", menu_owner=%08x", req
->menu_owner
);
3457 fprintf( stderr
, ", move_size=%08x", req
->move_size
);
3458 fprintf( stderr
, ", caret=%08x", req
->caret
);
3459 fprintf( stderr
, ", cursor=%08x", req
->cursor
);
3460 fprintf( stderr
, ", show_count=%d", req
->show_count
);
3461 dump_rectangle( ", rect=", &req
->rect
);
3464 static void dump_get_last_input_time_request( const struct get_last_input_time_request
*req
)
3468 static void dump_get_last_input_time_reply( const struct get_last_input_time_reply
*req
)
3470 fprintf( stderr
, " time=%08x", req
->time
);
3473 static void dump_get_key_state_request( const struct get_key_state_request
*req
)
3475 fprintf( stderr
, " async=%d", req
->async
);
3476 fprintf( stderr
, ", key=%d", req
->key
);
3479 static void dump_get_key_state_reply( const struct get_key_state_reply
*req
)
3481 fprintf( stderr
, " state=%02x", req
->state
);
3482 dump_varargs_bytes( ", keystate=", cur_size
);
3485 static void dump_set_key_state_request( const struct set_key_state_request
*req
)
3487 fprintf( stderr
, " async=%d", req
->async
);
3488 dump_varargs_bytes( ", keystate=", cur_size
);
3491 static void dump_set_foreground_window_request( const struct set_foreground_window_request
*req
)
3493 fprintf( stderr
, " handle=%08x", req
->handle
);
3496 static void dump_set_foreground_window_reply( const struct set_foreground_window_reply
*req
)
3498 fprintf( stderr
, " previous=%08x", req
->previous
);
3499 fprintf( stderr
, ", send_msg_old=%d", req
->send_msg_old
);
3500 fprintf( stderr
, ", send_msg_new=%d", req
->send_msg_new
);
3503 static void dump_set_focus_window_request( const struct set_focus_window_request
*req
)
3505 fprintf( stderr
, " handle=%08x", req
->handle
);
3508 static void dump_set_focus_window_reply( const struct set_focus_window_reply
*req
)
3510 fprintf( stderr
, " previous=%08x", req
->previous
);
3513 static void dump_set_active_window_request( const struct set_active_window_request
*req
)
3515 fprintf( stderr
, " handle=%08x", req
->handle
);
3518 static void dump_set_active_window_reply( const struct set_active_window_reply
*req
)
3520 fprintf( stderr
, " previous=%08x", req
->previous
);
3523 static void dump_set_capture_window_request( const struct set_capture_window_request
*req
)
3525 fprintf( stderr
, " handle=%08x", req
->handle
);
3526 fprintf( stderr
, ", flags=%08x", req
->flags
);
3529 static void dump_set_capture_window_reply( const struct set_capture_window_reply
*req
)
3531 fprintf( stderr
, " previous=%08x", req
->previous
);
3532 fprintf( stderr
, ", full_handle=%08x", req
->full_handle
);
3535 static void dump_set_caret_window_request( const struct set_caret_window_request
*req
)
3537 fprintf( stderr
, " handle=%08x", req
->handle
);
3538 fprintf( stderr
, ", width=%d", req
->width
);
3539 fprintf( stderr
, ", height=%d", req
->height
);
3542 static void dump_set_caret_window_reply( const struct set_caret_window_reply
*req
)
3544 fprintf( stderr
, " previous=%08x", req
->previous
);
3545 dump_rectangle( ", old_rect=", &req
->old_rect
);
3546 fprintf( stderr
, ", old_hide=%d", req
->old_hide
);
3547 fprintf( stderr
, ", old_state=%d", req
->old_state
);
3550 static void dump_set_caret_info_request( const struct set_caret_info_request
*req
)
3552 fprintf( stderr
, " flags=%08x", req
->flags
);
3553 fprintf( stderr
, ", handle=%08x", req
->handle
);
3554 fprintf( stderr
, ", x=%d", req
->x
);
3555 fprintf( stderr
, ", y=%d", req
->y
);
3556 fprintf( stderr
, ", hide=%d", req
->hide
);
3557 fprintf( stderr
, ", state=%d", req
->state
);
3560 static void dump_set_caret_info_reply( const struct set_caret_info_reply
*req
)
3562 fprintf( stderr
, " full_handle=%08x", req
->full_handle
);
3563 dump_rectangle( ", old_rect=", &req
->old_rect
);
3564 fprintf( stderr
, ", old_hide=%d", req
->old_hide
);
3565 fprintf( stderr
, ", old_state=%d", req
->old_state
);
3568 static void dump_set_hook_request( const struct set_hook_request
*req
)
3570 fprintf( stderr
, " id=%d", req
->id
);
3571 fprintf( stderr
, ", pid=%04x", req
->pid
);
3572 fprintf( stderr
, ", tid=%04x", req
->tid
);
3573 fprintf( stderr
, ", event_min=%d", req
->event_min
);
3574 fprintf( stderr
, ", event_max=%d", req
->event_max
);
3575 dump_uint64( ", proc=", &req
->proc
);
3576 fprintf( stderr
, ", flags=%d", req
->flags
);
3577 fprintf( stderr
, ", unicode=%d", req
->unicode
);
3578 dump_varargs_unicode_str( ", module=", cur_size
);
3581 static void dump_set_hook_reply( const struct set_hook_reply
*req
)
3583 fprintf( stderr
, " handle=%08x", req
->handle
);
3584 fprintf( stderr
, ", active_hooks=%08x", req
->active_hooks
);
3587 static void dump_remove_hook_request( const struct remove_hook_request
*req
)
3589 fprintf( stderr
, " handle=%08x", req
->handle
);
3590 dump_uint64( ", proc=", &req
->proc
);
3591 fprintf( stderr
, ", id=%d", req
->id
);
3594 static void dump_remove_hook_reply( const struct remove_hook_reply
*req
)
3596 fprintf( stderr
, " active_hooks=%08x", req
->active_hooks
);
3599 static void dump_start_hook_chain_request( const struct start_hook_chain_request
*req
)
3601 fprintf( stderr
, " id=%d", req
->id
);
3602 fprintf( stderr
, ", event=%d", req
->event
);
3603 fprintf( stderr
, ", window=%08x", req
->window
);
3604 fprintf( stderr
, ", object_id=%d", req
->object_id
);
3605 fprintf( stderr
, ", child_id=%d", req
->child_id
);
3608 static void dump_start_hook_chain_reply( const struct start_hook_chain_reply
*req
)
3610 fprintf( stderr
, " handle=%08x", req
->handle
);
3611 fprintf( stderr
, ", pid=%04x", req
->pid
);
3612 fprintf( stderr
, ", tid=%04x", req
->tid
);
3613 fprintf( stderr
, ", unicode=%d", req
->unicode
);
3614 dump_uint64( ", proc=", &req
->proc
);
3615 fprintf( stderr
, ", active_hooks=%08x", req
->active_hooks
);
3616 dump_varargs_unicode_str( ", module=", cur_size
);
3619 static void dump_finish_hook_chain_request( const struct finish_hook_chain_request
*req
)
3621 fprintf( stderr
, " id=%d", req
->id
);
3624 static void dump_get_hook_info_request( const struct get_hook_info_request
*req
)
3626 fprintf( stderr
, " handle=%08x", req
->handle
);
3627 fprintf( stderr
, ", get_next=%d", req
->get_next
);
3628 fprintf( stderr
, ", event=%d", req
->event
);
3629 fprintf( stderr
, ", window=%08x", req
->window
);
3630 fprintf( stderr
, ", object_id=%d", req
->object_id
);
3631 fprintf( stderr
, ", child_id=%d", req
->child_id
);
3634 static void dump_get_hook_info_reply( const struct get_hook_info_reply
*req
)
3636 fprintf( stderr
, " handle=%08x", req
->handle
);
3637 fprintf( stderr
, ", id=%d", req
->id
);
3638 fprintf( stderr
, ", pid=%04x", req
->pid
);
3639 fprintf( stderr
, ", tid=%04x", req
->tid
);
3640 dump_uint64( ", proc=", &req
->proc
);
3641 fprintf( stderr
, ", unicode=%d", req
->unicode
);
3642 dump_varargs_unicode_str( ", module=", cur_size
);
3645 static void dump_create_class_request( const struct create_class_request
*req
)
3647 fprintf( stderr
, " local=%d", req
->local
);
3648 fprintf( stderr
, ", atom=%04x", req
->atom
);
3649 fprintf( stderr
, ", style=%08x", req
->style
);
3650 dump_uint64( ", instance=", &req
->instance
);
3651 fprintf( stderr
, ", extra=%d", req
->extra
);
3652 fprintf( stderr
, ", win_extra=%d", req
->win_extra
);
3653 dump_uint64( ", client_ptr=", &req
->client_ptr
);
3654 fprintf( stderr
, ", name_offset=%u", req
->name_offset
);
3655 dump_varargs_unicode_str( ", name=", cur_size
);
3658 static void dump_create_class_reply( const struct create_class_reply
*req
)
3660 fprintf( stderr
, " atom=%04x", req
->atom
);
3663 static void dump_destroy_class_request( const struct destroy_class_request
*req
)
3665 fprintf( stderr
, " atom=%04x", req
->atom
);
3666 dump_uint64( ", instance=", &req
->instance
);
3667 dump_varargs_unicode_str( ", name=", cur_size
);
3670 static void dump_destroy_class_reply( const struct destroy_class_reply
*req
)
3672 dump_uint64( " client_ptr=", &req
->client_ptr
);
3675 static void dump_set_class_info_request( const struct set_class_info_request
*req
)
3677 fprintf( stderr
, " window=%08x", req
->window
);
3678 fprintf( stderr
, ", flags=%08x", req
->flags
);
3679 fprintf( stderr
, ", atom=%04x", req
->atom
);
3680 fprintf( stderr
, ", style=%08x", req
->style
);
3681 fprintf( stderr
, ", win_extra=%d", req
->win_extra
);
3682 dump_uint64( ", instance=", &req
->instance
);
3683 fprintf( stderr
, ", extra_offset=%d", req
->extra_offset
);
3684 fprintf( stderr
, ", extra_size=%u", req
->extra_size
);
3685 dump_uint64( ", extra_value=", &req
->extra_value
);
3688 static void dump_set_class_info_reply( const struct set_class_info_reply
*req
)
3690 fprintf( stderr
, " old_atom=%04x", req
->old_atom
);
3691 fprintf( stderr
, ", base_atom=%04x", req
->base_atom
);
3692 dump_uint64( ", old_instance=", &req
->old_instance
);
3693 dump_uint64( ", old_extra_value=", &req
->old_extra_value
);
3694 fprintf( stderr
, ", old_style=%08x", req
->old_style
);
3695 fprintf( stderr
, ", old_extra=%d", req
->old_extra
);
3696 fprintf( stderr
, ", old_win_extra=%d", req
->old_win_extra
);
3699 static void dump_open_clipboard_request( const struct open_clipboard_request
*req
)
3701 fprintf( stderr
, " window=%08x", req
->window
);
3704 static void dump_open_clipboard_reply( const struct open_clipboard_reply
*req
)
3706 fprintf( stderr
, " owner=%08x", req
->owner
);
3709 static void dump_close_clipboard_request( const struct close_clipboard_request
*req
)
3713 static void dump_close_clipboard_reply( const struct close_clipboard_reply
*req
)
3715 fprintf( stderr
, " viewer=%08x", req
->viewer
);
3716 fprintf( stderr
, ", owner=%08x", req
->owner
);
3719 static void dump_empty_clipboard_request( const struct empty_clipboard_request
*req
)
3723 static void dump_set_clipboard_data_request( const struct set_clipboard_data_request
*req
)
3725 fprintf( stderr
, " format=%08x", req
->format
);
3726 fprintf( stderr
, ", lcid=%08x", req
->lcid
);
3727 dump_varargs_bytes( ", data=", cur_size
);
3730 static void dump_set_clipboard_data_reply( const struct set_clipboard_data_reply
*req
)
3732 fprintf( stderr
, " seqno=%08x", req
->seqno
);
3735 static void dump_get_clipboard_data_request( const struct get_clipboard_data_request
*req
)
3737 fprintf( stderr
, " format=%08x", req
->format
);
3738 fprintf( stderr
, ", render=%d", req
->render
);
3739 fprintf( stderr
, ", cached=%d", req
->cached
);
3740 fprintf( stderr
, ", seqno=%08x", req
->seqno
);
3743 static void dump_get_clipboard_data_reply( const struct get_clipboard_data_reply
*req
)
3745 fprintf( stderr
, " from=%08x", req
->from
);
3746 fprintf( stderr
, ", owner=%08x", req
->owner
);
3747 fprintf( stderr
, ", seqno=%08x", req
->seqno
);
3748 fprintf( stderr
, ", total=%u", req
->total
);
3749 dump_varargs_bytes( ", data=", cur_size
);
3752 static void dump_get_clipboard_formats_request( const struct get_clipboard_formats_request
*req
)
3754 fprintf( stderr
, " format=%08x", req
->format
);
3757 static void dump_get_clipboard_formats_reply( const struct get_clipboard_formats_reply
*req
)
3759 fprintf( stderr
, " count=%08x", req
->count
);
3760 dump_varargs_uints( ", formats=", cur_size
);
3763 static void dump_enum_clipboard_formats_request( const struct enum_clipboard_formats_request
*req
)
3765 fprintf( stderr
, " previous=%08x", req
->previous
);
3768 static void dump_enum_clipboard_formats_reply( const struct enum_clipboard_formats_reply
*req
)
3770 fprintf( stderr
, " format=%08x", req
->format
);
3773 static void dump_release_clipboard_request( const struct release_clipboard_request
*req
)
3775 fprintf( stderr
, " owner=%08x", req
->owner
);
3778 static void dump_release_clipboard_reply( const struct release_clipboard_reply
*req
)
3780 fprintf( stderr
, " viewer=%08x", req
->viewer
);
3781 fprintf( stderr
, ", owner=%08x", req
->owner
);
3784 static void dump_get_clipboard_info_request( const struct get_clipboard_info_request
*req
)
3788 static void dump_get_clipboard_info_reply( const struct get_clipboard_info_reply
*req
)
3790 fprintf( stderr
, " window=%08x", req
->window
);
3791 fprintf( stderr
, ", owner=%08x", req
->owner
);
3792 fprintf( stderr
, ", viewer=%08x", req
->viewer
);
3793 fprintf( stderr
, ", seqno=%08x", req
->seqno
);
3796 static void dump_set_clipboard_viewer_request( const struct set_clipboard_viewer_request
*req
)
3798 fprintf( stderr
, " viewer=%08x", req
->viewer
);
3799 fprintf( stderr
, ", previous=%08x", req
->previous
);
3802 static void dump_set_clipboard_viewer_reply( const struct set_clipboard_viewer_reply
*req
)
3804 fprintf( stderr
, " old_viewer=%08x", req
->old_viewer
);
3805 fprintf( stderr
, ", owner=%08x", req
->owner
);
3808 static void dump_add_clipboard_listener_request( const struct add_clipboard_listener_request
*req
)
3810 fprintf( stderr
, " window=%08x", req
->window
);
3813 static void dump_remove_clipboard_listener_request( const struct remove_clipboard_listener_request
*req
)
3815 fprintf( stderr
, " window=%08x", req
->window
);
3818 static void dump_open_token_request( const struct open_token_request
*req
)
3820 fprintf( stderr
, " handle=%04x", req
->handle
);
3821 fprintf( stderr
, ", access=%08x", req
->access
);
3822 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3823 fprintf( stderr
, ", flags=%08x", req
->flags
);
3826 static void dump_open_token_reply( const struct open_token_reply
*req
)
3828 fprintf( stderr
, " token=%04x", req
->token
);
3831 static void dump_set_global_windows_request( const struct set_global_windows_request
*req
)
3833 fprintf( stderr
, " flags=%08x", req
->flags
);
3834 fprintf( stderr
, ", shell_window=%08x", req
->shell_window
);
3835 fprintf( stderr
, ", shell_listview=%08x", req
->shell_listview
);
3836 fprintf( stderr
, ", progman_window=%08x", req
->progman_window
);
3837 fprintf( stderr
, ", taskman_window=%08x", req
->taskman_window
);
3840 static void dump_set_global_windows_reply( const struct set_global_windows_reply
*req
)
3842 fprintf( stderr
, " old_shell_window=%08x", req
->old_shell_window
);
3843 fprintf( stderr
, ", old_shell_listview=%08x", req
->old_shell_listview
);
3844 fprintf( stderr
, ", old_progman_window=%08x", req
->old_progman_window
);
3845 fprintf( stderr
, ", old_taskman_window=%08x", req
->old_taskman_window
);
3848 static void dump_adjust_token_privileges_request( const struct adjust_token_privileges_request
*req
)
3850 fprintf( stderr
, " handle=%04x", req
->handle
);
3851 fprintf( stderr
, ", disable_all=%d", req
->disable_all
);
3852 fprintf( stderr
, ", get_modified_state=%d", req
->get_modified_state
);
3853 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size
);
3856 static void dump_adjust_token_privileges_reply( const struct adjust_token_privileges_reply
*req
)
3858 fprintf( stderr
, " len=%08x", req
->len
);
3859 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size
);
3862 static void dump_get_token_privileges_request( const struct get_token_privileges_request
*req
)
3864 fprintf( stderr
, " handle=%04x", req
->handle
);
3867 static void dump_get_token_privileges_reply( const struct get_token_privileges_reply
*req
)
3869 fprintf( stderr
, " len=%08x", req
->len
);
3870 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size
);
3873 static void dump_check_token_privileges_request( const struct check_token_privileges_request
*req
)
3875 fprintf( stderr
, " handle=%04x", req
->handle
);
3876 fprintf( stderr
, ", all_required=%d", req
->all_required
);
3877 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size
);
3880 static void dump_check_token_privileges_reply( const struct check_token_privileges_reply
*req
)
3882 fprintf( stderr
, " has_privileges=%d", req
->has_privileges
);
3883 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size
);
3886 static void dump_duplicate_token_request( const struct duplicate_token_request
*req
)
3888 fprintf( stderr
, " handle=%04x", req
->handle
);
3889 fprintf( stderr
, ", access=%08x", req
->access
);
3890 fprintf( stderr
, ", primary=%d", req
->primary
);
3891 fprintf( stderr
, ", impersonation_level=%d", req
->impersonation_level
);
3892 dump_varargs_object_attributes( ", objattr=", cur_size
);
3895 static void dump_duplicate_token_reply( const struct duplicate_token_reply
*req
)
3897 fprintf( stderr
, " new_handle=%04x", req
->new_handle
);
3900 static void dump_filter_token_request( const struct filter_token_request
*req
)
3902 fprintf( stderr
, " handle=%04x", req
->handle
);
3903 fprintf( stderr
, ", flags=%08x", req
->flags
);
3904 fprintf( stderr
, ", privileges_size=%u", req
->privileges_size
);
3905 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", min(cur_size
,req
->privileges_size
) );
3906 dump_varargs_SID( ", disable_sids=", cur_size
);
3909 static void dump_filter_token_reply( const struct filter_token_reply
*req
)
3911 fprintf( stderr
, " new_handle=%04x", req
->new_handle
);
3914 static void dump_access_check_request( const struct access_check_request
*req
)
3916 fprintf( stderr
, " handle=%04x", req
->handle
);
3917 fprintf( stderr
, ", desired_access=%08x", req
->desired_access
);
3918 dump_generic_map( ", mapping=", &req
->mapping
);
3919 dump_varargs_security_descriptor( ", sd=", cur_size
);
3922 static void dump_access_check_reply( const struct access_check_reply
*req
)
3924 fprintf( stderr
, " access_granted=%08x", req
->access_granted
);
3925 fprintf( stderr
, ", access_status=%08x", req
->access_status
);
3926 fprintf( stderr
, ", privileges_len=%08x", req
->privileges_len
);
3927 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size
);
3930 static void dump_get_token_sid_request( const struct get_token_sid_request
*req
)
3932 fprintf( stderr
, " handle=%04x", req
->handle
);
3933 fprintf( stderr
, ", which_sid=%08x", req
->which_sid
);
3936 static void dump_get_token_sid_reply( const struct get_token_sid_reply
*req
)
3938 fprintf( stderr
, " sid_len=%u", req
->sid_len
);
3939 dump_varargs_SID( ", sid=", cur_size
);
3942 static void dump_get_token_groups_request( const struct get_token_groups_request
*req
)
3944 fprintf( stderr
, " handle=%04x", req
->handle
);
3947 static void dump_get_token_groups_reply( const struct get_token_groups_reply
*req
)
3949 fprintf( stderr
, " user_len=%u", req
->user_len
);
3950 dump_varargs_token_groups( ", user=", cur_size
);
3953 static void dump_get_token_default_dacl_request( const struct get_token_default_dacl_request
*req
)
3955 fprintf( stderr
, " handle=%04x", req
->handle
);
3958 static void dump_get_token_default_dacl_reply( const struct get_token_default_dacl_reply
*req
)
3960 fprintf( stderr
, " acl_len=%u", req
->acl_len
);
3961 dump_varargs_ACL( ", acl=", cur_size
);
3964 static void dump_set_token_default_dacl_request( const struct set_token_default_dacl_request
*req
)
3966 fprintf( stderr
, " handle=%04x", req
->handle
);
3967 dump_varargs_ACL( ", acl=", cur_size
);
3970 static void dump_set_security_object_request( const struct set_security_object_request
*req
)
3972 fprintf( stderr
, " handle=%04x", req
->handle
);
3973 fprintf( stderr
, ", security_info=%08x", req
->security_info
);
3974 dump_varargs_security_descriptor( ", sd=", cur_size
);
3977 static void dump_get_security_object_request( const struct get_security_object_request
*req
)
3979 fprintf( stderr
, " handle=%04x", req
->handle
);
3980 fprintf( stderr
, ", security_info=%08x", req
->security_info
);
3983 static void dump_get_security_object_reply( const struct get_security_object_reply
*req
)
3985 fprintf( stderr
, " sd_len=%08x", req
->sd_len
);
3986 dump_varargs_security_descriptor( ", sd=", cur_size
);
3989 static void dump_get_system_handles_request( const struct get_system_handles_request
*req
)
3993 static void dump_get_system_handles_reply( const struct get_system_handles_reply
*req
)
3995 fprintf( stderr
, " count=%08x", req
->count
);
3996 dump_varargs_handle_infos( ", data=", cur_size
);
3999 static void dump_create_mailslot_request( const struct create_mailslot_request
*req
)
4001 fprintf( stderr
, " access=%08x", req
->access
);
4002 dump_timeout( ", read_timeout=", &req
->read_timeout
);
4003 fprintf( stderr
, ", max_msgsize=%08x", req
->max_msgsize
);
4004 dump_varargs_object_attributes( ", objattr=", cur_size
);
4007 static void dump_create_mailslot_reply( const struct create_mailslot_reply
*req
)
4009 fprintf( stderr
, " handle=%04x", req
->handle
);
4012 static void dump_set_mailslot_info_request( const struct set_mailslot_info_request
*req
)
4014 fprintf( stderr
, " handle=%04x", req
->handle
);
4015 dump_timeout( ", read_timeout=", &req
->read_timeout
);
4016 fprintf( stderr
, ", flags=%08x", req
->flags
);
4019 static void dump_set_mailslot_info_reply( const struct set_mailslot_info_reply
*req
)
4021 dump_timeout( " read_timeout=", &req
->read_timeout
);
4022 fprintf( stderr
, ", max_msgsize=%08x", req
->max_msgsize
);
4025 static void dump_create_directory_request( const struct create_directory_request
*req
)
4027 fprintf( stderr
, " access=%08x", req
->access
);
4028 dump_varargs_object_attributes( ", objattr=", cur_size
);
4031 static void dump_create_directory_reply( const struct create_directory_reply
*req
)
4033 fprintf( stderr
, " handle=%04x", req
->handle
);
4036 static void dump_open_directory_request( const struct open_directory_request
*req
)
4038 fprintf( stderr
, " access=%08x", req
->access
);
4039 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
4040 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
4041 dump_varargs_unicode_str( ", directory_name=", cur_size
);
4044 static void dump_open_directory_reply( const struct open_directory_reply
*req
)
4046 fprintf( stderr
, " handle=%04x", req
->handle
);
4049 static void dump_get_directory_entry_request( const struct get_directory_entry_request
*req
)
4051 fprintf( stderr
, " handle=%04x", req
->handle
);
4052 fprintf( stderr
, ", index=%08x", req
->index
);
4055 static void dump_get_directory_entry_reply( const struct get_directory_entry_reply
*req
)
4057 fprintf( stderr
, " name_len=%u", req
->name_len
);
4058 dump_varargs_unicode_str( ", name=", min(cur_size
,req
->name_len
) );
4059 dump_varargs_unicode_str( ", type=", cur_size
);
4062 static void dump_create_symlink_request( const struct create_symlink_request
*req
)
4064 fprintf( stderr
, " access=%08x", req
->access
);
4065 dump_varargs_object_attributes( ", objattr=", cur_size
);
4066 dump_varargs_unicode_str( ", target_name=", cur_size
);
4069 static void dump_create_symlink_reply( const struct create_symlink_reply
*req
)
4071 fprintf( stderr
, " handle=%04x", req
->handle
);
4074 static void dump_open_symlink_request( const struct open_symlink_request
*req
)
4076 fprintf( stderr
, " access=%08x", req
->access
);
4077 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
4078 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
4079 dump_varargs_unicode_str( ", name=", cur_size
);
4082 static void dump_open_symlink_reply( const struct open_symlink_reply
*req
)
4084 fprintf( stderr
, " handle=%04x", req
->handle
);
4087 static void dump_query_symlink_request( const struct query_symlink_request
*req
)
4089 fprintf( stderr
, " handle=%04x", req
->handle
);
4092 static void dump_query_symlink_reply( const struct query_symlink_reply
*req
)
4094 fprintf( stderr
, " total=%u", req
->total
);
4095 dump_varargs_unicode_str( ", target_name=", cur_size
);
4098 static void dump_get_object_info_request( const struct get_object_info_request
*req
)
4100 fprintf( stderr
, " handle=%04x", req
->handle
);
4103 static void dump_get_object_info_reply( const struct get_object_info_reply
*req
)
4105 fprintf( stderr
, " access=%08x", req
->access
);
4106 fprintf( stderr
, ", ref_count=%08x", req
->ref_count
);
4107 fprintf( stderr
, ", handle_count=%08x", req
->handle_count
);
4110 static void dump_get_object_name_request( const struct get_object_name_request
*req
)
4112 fprintf( stderr
, " handle=%04x", req
->handle
);
4115 static void dump_get_object_name_reply( const struct get_object_name_reply
*req
)
4117 fprintf( stderr
, " total=%u", req
->total
);
4118 dump_varargs_unicode_str( ", name=", cur_size
);
4121 static void dump_get_object_type_request( const struct get_object_type_request
*req
)
4123 fprintf( stderr
, " handle=%04x", req
->handle
);
4126 static void dump_get_object_type_reply( const struct get_object_type_reply
*req
)
4128 dump_varargs_object_type_info( " info=", cur_size
);
4131 static void dump_get_object_types_request( const struct get_object_types_request
*req
)
4135 static void dump_get_object_types_reply( const struct get_object_types_reply
*req
)
4137 fprintf( stderr
, " count=%d", req
->count
);
4138 dump_varargs_object_types_info( ", info=", cur_size
);
4141 static void dump_allocate_locally_unique_id_request( const struct allocate_locally_unique_id_request
*req
)
4145 static void dump_allocate_locally_unique_id_reply( const struct allocate_locally_unique_id_reply
*req
)
4147 dump_luid( " luid=", &req
->luid
);
4150 static void dump_create_device_manager_request( const struct create_device_manager_request
*req
)
4152 fprintf( stderr
, " access=%08x", req
->access
);
4153 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
4156 static void dump_create_device_manager_reply( const struct create_device_manager_reply
*req
)
4158 fprintf( stderr
, " handle=%04x", req
->handle
);
4161 static void dump_create_device_request( const struct create_device_request
*req
)
4163 fprintf( stderr
, " rootdir=%04x", req
->rootdir
);
4164 dump_uint64( ", user_ptr=", &req
->user_ptr
);
4165 fprintf( stderr
, ", manager=%04x", req
->manager
);
4166 dump_varargs_unicode_str( ", name=", cur_size
);
4169 static void dump_delete_device_request( const struct delete_device_request
*req
)
4171 fprintf( stderr
, " manager=%04x", req
->manager
);
4172 dump_uint64( ", device=", &req
->device
);
4175 static void dump_get_next_device_request_request( const struct get_next_device_request_request
*req
)
4177 fprintf( stderr
, " manager=%04x", req
->manager
);
4178 fprintf( stderr
, ", prev=%04x", req
->prev
);
4179 fprintf( stderr
, ", status=%08x", req
->status
);
4180 dump_uint64( ", user_ptr=", &req
->user_ptr
);
4183 static void dump_get_next_device_request_reply( const struct get_next_device_request_reply
*req
)
4185 dump_irp_params( " params=", &req
->params
);
4186 fprintf( stderr
, ", next=%04x", req
->next
);
4187 fprintf( stderr
, ", client_tid=%04x", req
->client_tid
);
4188 dump_uint64( ", client_thread=", &req
->client_thread
);
4189 fprintf( stderr
, ", in_size=%u", req
->in_size
);
4190 dump_varargs_bytes( ", next_data=", cur_size
);
4193 static void dump_get_kernel_object_ptr_request( const struct get_kernel_object_ptr_request
*req
)
4195 fprintf( stderr
, " manager=%04x", req
->manager
);
4196 fprintf( stderr
, ", handle=%04x", req
->handle
);
4199 static void dump_get_kernel_object_ptr_reply( const struct get_kernel_object_ptr_reply
*req
)
4201 dump_uint64( " user_ptr=", &req
->user_ptr
);
4204 static void dump_set_kernel_object_ptr_request( const struct set_kernel_object_ptr_request
*req
)
4206 fprintf( stderr
, " manager=%04x", req
->manager
);
4207 fprintf( stderr
, ", handle=%04x", req
->handle
);
4208 dump_uint64( ", user_ptr=", &req
->user_ptr
);
4211 static void dump_grab_kernel_object_request( const struct grab_kernel_object_request
*req
)
4213 fprintf( stderr
, " manager=%04x", req
->manager
);
4214 dump_uint64( ", user_ptr=", &req
->user_ptr
);
4217 static void dump_release_kernel_object_request( const struct release_kernel_object_request
*req
)
4219 fprintf( stderr
, " manager=%04x", req
->manager
);
4220 dump_uint64( ", user_ptr=", &req
->user_ptr
);
4223 static void dump_get_kernel_object_handle_request( const struct get_kernel_object_handle_request
*req
)
4225 fprintf( stderr
, " manager=%04x", req
->manager
);
4226 dump_uint64( ", user_ptr=", &req
->user_ptr
);
4227 fprintf( stderr
, ", access=%08x", req
->access
);
4230 static void dump_get_kernel_object_handle_reply( const struct get_kernel_object_handle_reply
*req
)
4232 fprintf( stderr
, " handle=%04x", req
->handle
);
4235 static void dump_make_process_system_request( const struct make_process_system_request
*req
)
4237 fprintf( stderr
, " handle=%04x", req
->handle
);
4240 static void dump_make_process_system_reply( const struct make_process_system_reply
*req
)
4242 fprintf( stderr
, " event=%04x", req
->event
);
4245 static void dump_get_token_info_request( const struct get_token_info_request
*req
)
4247 fprintf( stderr
, " handle=%04x", req
->handle
);
4250 static void dump_get_token_info_reply( const struct get_token_info_reply
*req
)
4252 dump_luid( " token_id=", &req
->token_id
);
4253 dump_luid( ", modified_id=", &req
->modified_id
);
4254 fprintf( stderr
, ", session_id=%08x", req
->session_id
);
4255 fprintf( stderr
, ", primary=%d", req
->primary
);
4256 fprintf( stderr
, ", impersonation_level=%d", req
->impersonation_level
);
4257 fprintf( stderr
, ", elevation=%d", req
->elevation
);
4258 fprintf( stderr
, ", group_count=%d", req
->group_count
);
4259 fprintf( stderr
, ", privilege_count=%d", req
->privilege_count
);
4262 static void dump_create_linked_token_request( const struct create_linked_token_request
*req
)
4264 fprintf( stderr
, " handle=%04x", req
->handle
);
4267 static void dump_create_linked_token_reply( const struct create_linked_token_reply
*req
)
4269 fprintf( stderr
, " linked=%04x", req
->linked
);
4272 static void dump_create_completion_request( const struct create_completion_request
*req
)
4274 fprintf( stderr
, " access=%08x", req
->access
);
4275 fprintf( stderr
, ", concurrent=%08x", req
->concurrent
);
4276 dump_varargs_object_attributes( ", objattr=", cur_size
);
4279 static void dump_create_completion_reply( const struct create_completion_reply
*req
)
4281 fprintf( stderr
, " handle=%04x", req
->handle
);
4284 static void dump_open_completion_request( const struct open_completion_request
*req
)
4286 fprintf( stderr
, " access=%08x", req
->access
);
4287 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
4288 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
4289 dump_varargs_unicode_str( ", filename=", cur_size
);
4292 static void dump_open_completion_reply( const struct open_completion_reply
*req
)
4294 fprintf( stderr
, " handle=%04x", req
->handle
);
4297 static void dump_add_completion_request( const struct add_completion_request
*req
)
4299 fprintf( stderr
, " handle=%04x", req
->handle
);
4300 dump_uint64( ", ckey=", &req
->ckey
);
4301 dump_uint64( ", cvalue=", &req
->cvalue
);
4302 dump_uint64( ", information=", &req
->information
);
4303 fprintf( stderr
, ", status=%08x", req
->status
);
4306 static void dump_remove_completion_request( const struct remove_completion_request
*req
)
4308 fprintf( stderr
, " handle=%04x", req
->handle
);
4311 static void dump_remove_completion_reply( const struct remove_completion_reply
*req
)
4313 dump_uint64( " ckey=", &req
->ckey
);
4314 dump_uint64( ", cvalue=", &req
->cvalue
);
4315 dump_uint64( ", information=", &req
->information
);
4316 fprintf( stderr
, ", status=%08x", req
->status
);
4319 static void dump_query_completion_request( const struct query_completion_request
*req
)
4321 fprintf( stderr
, " handle=%04x", req
->handle
);
4324 static void dump_query_completion_reply( const struct query_completion_reply
*req
)
4326 fprintf( stderr
, " depth=%08x", req
->depth
);
4329 static void dump_set_completion_info_request( const struct set_completion_info_request
*req
)
4331 fprintf( stderr
, " handle=%04x", req
->handle
);
4332 dump_uint64( ", ckey=", &req
->ckey
);
4333 fprintf( stderr
, ", chandle=%04x", req
->chandle
);
4336 static void dump_add_fd_completion_request( const struct add_fd_completion_request
*req
)
4338 fprintf( stderr
, " handle=%04x", req
->handle
);
4339 dump_uint64( ", cvalue=", &req
->cvalue
);
4340 dump_uint64( ", information=", &req
->information
);
4341 fprintf( stderr
, ", status=%08x", req
->status
);
4342 fprintf( stderr
, ", async=%d", req
->async
);
4345 static void dump_set_fd_completion_mode_request( const struct set_fd_completion_mode_request
*req
)
4347 fprintf( stderr
, " handle=%04x", req
->handle
);
4348 fprintf( stderr
, ", flags=%08x", req
->flags
);
4351 static void dump_set_fd_disp_info_request( const struct set_fd_disp_info_request
*req
)
4353 fprintf( stderr
, " handle=%04x", req
->handle
);
4354 fprintf( stderr
, ", unlink=%d", req
->unlink
);
4357 static void dump_set_fd_name_info_request( const struct set_fd_name_info_request
*req
)
4359 fprintf( stderr
, " handle=%04x", req
->handle
);
4360 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
4361 fprintf( stderr
, ", namelen=%u", req
->namelen
);
4362 fprintf( stderr
, ", link=%d", req
->link
);
4363 fprintf( stderr
, ", replace=%d", req
->replace
);
4364 dump_varargs_unicode_str( ", name=", min(cur_size
,req
->namelen
) );
4365 dump_varargs_string( ", filename=", cur_size
);
4368 static void dump_set_fd_eof_info_request( const struct set_fd_eof_info_request
*req
)
4370 fprintf( stderr
, " handle=%04x", req
->handle
);
4371 dump_uint64( ", eof=", &req
->eof
);
4374 static void dump_get_window_layered_info_request( const struct get_window_layered_info_request
*req
)
4376 fprintf( stderr
, " handle=%08x", req
->handle
);
4379 static void dump_get_window_layered_info_reply( const struct get_window_layered_info_reply
*req
)
4381 fprintf( stderr
, " color_key=%08x", req
->color_key
);
4382 fprintf( stderr
, ", alpha=%08x", req
->alpha
);
4383 fprintf( stderr
, ", flags=%08x", req
->flags
);
4386 static void dump_set_window_layered_info_request( const struct set_window_layered_info_request
*req
)
4388 fprintf( stderr
, " handle=%08x", req
->handle
);
4389 fprintf( stderr
, ", color_key=%08x", req
->color_key
);
4390 fprintf( stderr
, ", alpha=%08x", req
->alpha
);
4391 fprintf( stderr
, ", flags=%08x", req
->flags
);
4394 static void dump_alloc_user_handle_request( const struct alloc_user_handle_request
*req
)
4398 static void dump_alloc_user_handle_reply( const struct alloc_user_handle_reply
*req
)
4400 fprintf( stderr
, " handle=%08x", req
->handle
);
4403 static void dump_free_user_handle_request( const struct free_user_handle_request
*req
)
4405 fprintf( stderr
, " handle=%08x", req
->handle
);
4408 static void dump_set_cursor_request( const struct set_cursor_request
*req
)
4410 fprintf( stderr
, " flags=%08x", req
->flags
);
4411 fprintf( stderr
, ", handle=%08x", req
->handle
);
4412 fprintf( stderr
, ", show_count=%d", req
->show_count
);
4413 fprintf( stderr
, ", x=%d", req
->x
);
4414 fprintf( stderr
, ", y=%d", req
->y
);
4415 dump_rectangle( ", clip=", &req
->clip
);
4416 fprintf( stderr
, ", clip_msg=%08x", req
->clip_msg
);
4419 static void dump_set_cursor_reply( const struct set_cursor_reply
*req
)
4421 fprintf( stderr
, " prev_handle=%08x", req
->prev_handle
);
4422 fprintf( stderr
, ", prev_count=%d", req
->prev_count
);
4423 fprintf( stderr
, ", prev_x=%d", req
->prev_x
);
4424 fprintf( stderr
, ", prev_y=%d", req
->prev_y
);
4425 fprintf( stderr
, ", new_x=%d", req
->new_x
);
4426 fprintf( stderr
, ", new_y=%d", req
->new_y
);
4427 dump_rectangle( ", new_clip=", &req
->new_clip
);
4428 fprintf( stderr
, ", last_change=%08x", req
->last_change
);
4431 static void dump_get_cursor_history_request( const struct get_cursor_history_request
*req
)
4435 static void dump_get_cursor_history_reply( const struct get_cursor_history_reply
*req
)
4437 dump_varargs_cursor_positions( " history=", cur_size
);
4440 static void dump_get_rawinput_buffer_request( const struct get_rawinput_buffer_request
*req
)
4442 fprintf( stderr
, " rawinput_size=%u", req
->rawinput_size
);
4443 fprintf( stderr
, ", buffer_size=%u", req
->buffer_size
);
4446 static void dump_get_rawinput_buffer_reply( const struct get_rawinput_buffer_reply
*req
)
4448 fprintf( stderr
, " next_size=%u", req
->next_size
);
4449 fprintf( stderr
, ", count=%08x", req
->count
);
4450 dump_varargs_bytes( ", data=", cur_size
);
4453 static void dump_update_rawinput_devices_request( const struct update_rawinput_devices_request
*req
)
4455 dump_varargs_rawinput_devices( " devices=", cur_size
);
4458 static void dump_get_rawinput_devices_request( const struct get_rawinput_devices_request
*req
)
4462 static void dump_get_rawinput_devices_reply( const struct get_rawinput_devices_reply
*req
)
4464 fprintf( stderr
, " device_count=%08x", req
->device_count
);
4465 dump_varargs_rawinput_devices( ", devices=", cur_size
);
4468 static void dump_create_job_request( const struct create_job_request
*req
)
4470 fprintf( stderr
, " access=%08x", req
->access
);
4471 dump_varargs_object_attributes( ", objattr=", cur_size
);
4474 static void dump_create_job_reply( const struct create_job_reply
*req
)
4476 fprintf( stderr
, " handle=%04x", req
->handle
);
4479 static void dump_open_job_request( const struct open_job_request
*req
)
4481 fprintf( stderr
, " access=%08x", req
->access
);
4482 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
4483 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
4484 dump_varargs_unicode_str( ", name=", cur_size
);
4487 static void dump_open_job_reply( const struct open_job_reply
*req
)
4489 fprintf( stderr
, " handle=%04x", req
->handle
);
4492 static void dump_assign_job_request( const struct assign_job_request
*req
)
4494 fprintf( stderr
, " job=%04x", req
->job
);
4495 fprintf( stderr
, ", process=%04x", req
->process
);
4498 static void dump_process_in_job_request( const struct process_in_job_request
*req
)
4500 fprintf( stderr
, " job=%04x", req
->job
);
4501 fprintf( stderr
, ", process=%04x", req
->process
);
4504 static void dump_set_job_limits_request( const struct set_job_limits_request
*req
)
4506 fprintf( stderr
, " handle=%04x", req
->handle
);
4507 fprintf( stderr
, ", limit_flags=%08x", req
->limit_flags
);
4510 static void dump_set_job_completion_port_request( const struct set_job_completion_port_request
*req
)
4512 fprintf( stderr
, " job=%04x", req
->job
);
4513 fprintf( stderr
, ", port=%04x", req
->port
);
4514 dump_uint64( ", key=", &req
->key
);
4517 static void dump_get_job_info_request( const struct get_job_info_request
*req
)
4519 fprintf( stderr
, " handle=%04x", req
->handle
);
4522 static void dump_get_job_info_reply( const struct get_job_info_reply
*req
)
4524 fprintf( stderr
, " total_processes=%d", req
->total_processes
);
4525 fprintf( stderr
, ", active_processes=%d", req
->active_processes
);
4528 static void dump_terminate_job_request( const struct terminate_job_request
*req
)
4530 fprintf( stderr
, " handle=%04x", req
->handle
);
4531 fprintf( stderr
, ", status=%d", req
->status
);
4534 static void dump_suspend_process_request( const struct suspend_process_request
*req
)
4536 fprintf( stderr
, " handle=%04x", req
->handle
);
4539 static void dump_resume_process_request( const struct resume_process_request
*req
)
4541 fprintf( stderr
, " handle=%04x", req
->handle
);
4544 static void dump_get_next_thread_request( const struct get_next_thread_request
*req
)
4546 fprintf( stderr
, " process=%04x", req
->process
);
4547 fprintf( stderr
, ", last=%04x", req
->last
);
4548 fprintf( stderr
, ", access=%08x", req
->access
);
4549 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
4550 fprintf( stderr
, ", flags=%08x", req
->flags
);
4553 static void dump_get_next_thread_reply( const struct get_next_thread_reply
*req
)
4555 fprintf( stderr
, " handle=%04x", req
->handle
);
4558 static const dump_func req_dumpers
[REQ_NB_REQUESTS
] = {
4559 (dump_func
)dump_new_process_request
,
4560 (dump_func
)dump_get_new_process_info_request
,
4561 (dump_func
)dump_new_thread_request
,
4562 (dump_func
)dump_get_startup_info_request
,
4563 (dump_func
)dump_init_process_done_request
,
4564 (dump_func
)dump_init_first_thread_request
,
4565 (dump_func
)dump_init_thread_request
,
4566 (dump_func
)dump_terminate_process_request
,
4567 (dump_func
)dump_terminate_thread_request
,
4568 (dump_func
)dump_get_process_info_request
,
4569 (dump_func
)dump_get_process_debug_info_request
,
4570 (dump_func
)dump_get_process_image_name_request
,
4571 (dump_func
)dump_get_process_vm_counters_request
,
4572 (dump_func
)dump_set_process_info_request
,
4573 (dump_func
)dump_get_thread_info_request
,
4574 (dump_func
)dump_get_thread_times_request
,
4575 (dump_func
)dump_set_thread_info_request
,
4576 (dump_func
)dump_suspend_thread_request
,
4577 (dump_func
)dump_resume_thread_request
,
4578 (dump_func
)dump_queue_apc_request
,
4579 (dump_func
)dump_get_apc_result_request
,
4580 (dump_func
)dump_close_handle_request
,
4581 (dump_func
)dump_set_handle_info_request
,
4582 (dump_func
)dump_dup_handle_request
,
4583 (dump_func
)dump_make_temporary_request
,
4584 (dump_func
)dump_open_process_request
,
4585 (dump_func
)dump_open_thread_request
,
4586 (dump_func
)dump_select_request
,
4587 (dump_func
)dump_create_event_request
,
4588 (dump_func
)dump_event_op_request
,
4589 (dump_func
)dump_query_event_request
,
4590 (dump_func
)dump_open_event_request
,
4591 (dump_func
)dump_create_keyed_event_request
,
4592 (dump_func
)dump_open_keyed_event_request
,
4593 (dump_func
)dump_create_mutex_request
,
4594 (dump_func
)dump_release_mutex_request
,
4595 (dump_func
)dump_open_mutex_request
,
4596 (dump_func
)dump_query_mutex_request
,
4597 (dump_func
)dump_create_semaphore_request
,
4598 (dump_func
)dump_release_semaphore_request
,
4599 (dump_func
)dump_query_semaphore_request
,
4600 (dump_func
)dump_open_semaphore_request
,
4601 (dump_func
)dump_create_file_request
,
4602 (dump_func
)dump_open_file_object_request
,
4603 (dump_func
)dump_alloc_file_handle_request
,
4604 (dump_func
)dump_get_handle_unix_name_request
,
4605 (dump_func
)dump_get_handle_fd_request
,
4606 (dump_func
)dump_get_directory_cache_entry_request
,
4607 (dump_func
)dump_flush_request
,
4608 (dump_func
)dump_get_file_info_request
,
4609 (dump_func
)dump_get_volume_info_request
,
4610 (dump_func
)dump_lock_file_request
,
4611 (dump_func
)dump_unlock_file_request
,
4612 (dump_func
)dump_recv_socket_request
,
4613 (dump_func
)dump_poll_socket_request
,
4614 (dump_func
)dump_send_socket_request
,
4615 (dump_func
)dump_get_next_console_request_request
,
4616 (dump_func
)dump_read_directory_changes_request
,
4617 (dump_func
)dump_read_change_request
,
4618 (dump_func
)dump_create_mapping_request
,
4619 (dump_func
)dump_open_mapping_request
,
4620 (dump_func
)dump_get_mapping_info_request
,
4621 (dump_func
)dump_map_view_request
,
4622 (dump_func
)dump_unmap_view_request
,
4623 (dump_func
)dump_get_mapping_committed_range_request
,
4624 (dump_func
)dump_add_mapping_committed_range_request
,
4625 (dump_func
)dump_is_same_mapping_request
,
4626 (dump_func
)dump_get_mapping_filename_request
,
4627 (dump_func
)dump_list_processes_request
,
4628 (dump_func
)dump_create_debug_obj_request
,
4629 (dump_func
)dump_wait_debug_event_request
,
4630 (dump_func
)dump_queue_exception_event_request
,
4631 (dump_func
)dump_get_exception_status_request
,
4632 (dump_func
)dump_continue_debug_event_request
,
4633 (dump_func
)dump_debug_process_request
,
4634 (dump_func
)dump_set_debug_obj_info_request
,
4635 (dump_func
)dump_read_process_memory_request
,
4636 (dump_func
)dump_write_process_memory_request
,
4637 (dump_func
)dump_create_key_request
,
4638 (dump_func
)dump_open_key_request
,
4639 (dump_func
)dump_delete_key_request
,
4640 (dump_func
)dump_flush_key_request
,
4641 (dump_func
)dump_enum_key_request
,
4642 (dump_func
)dump_set_key_value_request
,
4643 (dump_func
)dump_get_key_value_request
,
4644 (dump_func
)dump_enum_key_value_request
,
4645 (dump_func
)dump_delete_key_value_request
,
4646 (dump_func
)dump_load_registry_request
,
4647 (dump_func
)dump_unload_registry_request
,
4648 (dump_func
)dump_save_registry_request
,
4649 (dump_func
)dump_set_registry_notification_request
,
4650 (dump_func
)dump_create_timer_request
,
4651 (dump_func
)dump_open_timer_request
,
4652 (dump_func
)dump_set_timer_request
,
4653 (dump_func
)dump_cancel_timer_request
,
4654 (dump_func
)dump_get_timer_info_request
,
4655 (dump_func
)dump_get_thread_context_request
,
4656 (dump_func
)dump_set_thread_context_request
,
4657 (dump_func
)dump_get_selector_entry_request
,
4658 (dump_func
)dump_add_atom_request
,
4659 (dump_func
)dump_delete_atom_request
,
4660 (dump_func
)dump_find_atom_request
,
4661 (dump_func
)dump_get_atom_information_request
,
4662 (dump_func
)dump_get_msg_queue_request
,
4663 (dump_func
)dump_set_queue_fd_request
,
4664 (dump_func
)dump_set_queue_mask_request
,
4665 (dump_func
)dump_get_queue_status_request
,
4666 (dump_func
)dump_get_process_idle_event_request
,
4667 (dump_func
)dump_send_message_request
,
4668 (dump_func
)dump_post_quit_message_request
,
4669 (dump_func
)dump_send_hardware_message_request
,
4670 (dump_func
)dump_get_message_request
,
4671 (dump_func
)dump_reply_message_request
,
4672 (dump_func
)dump_accept_hardware_message_request
,
4673 (dump_func
)dump_get_message_reply_request
,
4674 (dump_func
)dump_set_win_timer_request
,
4675 (dump_func
)dump_kill_win_timer_request
,
4676 (dump_func
)dump_is_window_hung_request
,
4677 (dump_func
)dump_get_serial_info_request
,
4678 (dump_func
)dump_set_serial_info_request
,
4679 (dump_func
)dump_register_async_request
,
4680 (dump_func
)dump_cancel_async_request
,
4681 (dump_func
)dump_get_async_result_request
,
4682 (dump_func
)dump_read_request
,
4683 (dump_func
)dump_write_request
,
4684 (dump_func
)dump_ioctl_request
,
4685 (dump_func
)dump_set_irp_result_request
,
4686 (dump_func
)dump_create_named_pipe_request
,
4687 (dump_func
)dump_set_named_pipe_info_request
,
4688 (dump_func
)dump_create_window_request
,
4689 (dump_func
)dump_destroy_window_request
,
4690 (dump_func
)dump_get_desktop_window_request
,
4691 (dump_func
)dump_set_window_owner_request
,
4692 (dump_func
)dump_get_window_info_request
,
4693 (dump_func
)dump_set_window_info_request
,
4694 (dump_func
)dump_set_parent_request
,
4695 (dump_func
)dump_get_window_parents_request
,
4696 (dump_func
)dump_get_window_children_request
,
4697 (dump_func
)dump_get_window_children_from_point_request
,
4698 (dump_func
)dump_get_window_tree_request
,
4699 (dump_func
)dump_set_window_pos_request
,
4700 (dump_func
)dump_get_window_rectangles_request
,
4701 (dump_func
)dump_get_window_text_request
,
4702 (dump_func
)dump_set_window_text_request
,
4703 (dump_func
)dump_get_windows_offset_request
,
4704 (dump_func
)dump_get_visible_region_request
,
4705 (dump_func
)dump_get_surface_region_request
,
4706 (dump_func
)dump_get_window_region_request
,
4707 (dump_func
)dump_set_window_region_request
,
4708 (dump_func
)dump_get_update_region_request
,
4709 (dump_func
)dump_update_window_zorder_request
,
4710 (dump_func
)dump_redraw_window_request
,
4711 (dump_func
)dump_set_window_property_request
,
4712 (dump_func
)dump_remove_window_property_request
,
4713 (dump_func
)dump_get_window_property_request
,
4714 (dump_func
)dump_get_window_properties_request
,
4715 (dump_func
)dump_create_winstation_request
,
4716 (dump_func
)dump_open_winstation_request
,
4717 (dump_func
)dump_close_winstation_request
,
4718 (dump_func
)dump_get_process_winstation_request
,
4719 (dump_func
)dump_set_process_winstation_request
,
4720 (dump_func
)dump_enum_winstation_request
,
4721 (dump_func
)dump_create_desktop_request
,
4722 (dump_func
)dump_open_desktop_request
,
4723 (dump_func
)dump_open_input_desktop_request
,
4724 (dump_func
)dump_close_desktop_request
,
4725 (dump_func
)dump_get_thread_desktop_request
,
4726 (dump_func
)dump_set_thread_desktop_request
,
4727 (dump_func
)dump_enum_desktop_request
,
4728 (dump_func
)dump_set_user_object_info_request
,
4729 (dump_func
)dump_register_hotkey_request
,
4730 (dump_func
)dump_unregister_hotkey_request
,
4731 (dump_func
)dump_attach_thread_input_request
,
4732 (dump_func
)dump_get_thread_input_request
,
4733 (dump_func
)dump_get_last_input_time_request
,
4734 (dump_func
)dump_get_key_state_request
,
4735 (dump_func
)dump_set_key_state_request
,
4736 (dump_func
)dump_set_foreground_window_request
,
4737 (dump_func
)dump_set_focus_window_request
,
4738 (dump_func
)dump_set_active_window_request
,
4739 (dump_func
)dump_set_capture_window_request
,
4740 (dump_func
)dump_set_caret_window_request
,
4741 (dump_func
)dump_set_caret_info_request
,
4742 (dump_func
)dump_set_hook_request
,
4743 (dump_func
)dump_remove_hook_request
,
4744 (dump_func
)dump_start_hook_chain_request
,
4745 (dump_func
)dump_finish_hook_chain_request
,
4746 (dump_func
)dump_get_hook_info_request
,
4747 (dump_func
)dump_create_class_request
,
4748 (dump_func
)dump_destroy_class_request
,
4749 (dump_func
)dump_set_class_info_request
,
4750 (dump_func
)dump_open_clipboard_request
,
4751 (dump_func
)dump_close_clipboard_request
,
4752 (dump_func
)dump_empty_clipboard_request
,
4753 (dump_func
)dump_set_clipboard_data_request
,
4754 (dump_func
)dump_get_clipboard_data_request
,
4755 (dump_func
)dump_get_clipboard_formats_request
,
4756 (dump_func
)dump_enum_clipboard_formats_request
,
4757 (dump_func
)dump_release_clipboard_request
,
4758 (dump_func
)dump_get_clipboard_info_request
,
4759 (dump_func
)dump_set_clipboard_viewer_request
,
4760 (dump_func
)dump_add_clipboard_listener_request
,
4761 (dump_func
)dump_remove_clipboard_listener_request
,
4762 (dump_func
)dump_open_token_request
,
4763 (dump_func
)dump_set_global_windows_request
,
4764 (dump_func
)dump_adjust_token_privileges_request
,
4765 (dump_func
)dump_get_token_privileges_request
,
4766 (dump_func
)dump_check_token_privileges_request
,
4767 (dump_func
)dump_duplicate_token_request
,
4768 (dump_func
)dump_filter_token_request
,
4769 (dump_func
)dump_access_check_request
,
4770 (dump_func
)dump_get_token_sid_request
,
4771 (dump_func
)dump_get_token_groups_request
,
4772 (dump_func
)dump_get_token_default_dacl_request
,
4773 (dump_func
)dump_set_token_default_dacl_request
,
4774 (dump_func
)dump_set_security_object_request
,
4775 (dump_func
)dump_get_security_object_request
,
4776 (dump_func
)dump_get_system_handles_request
,
4777 (dump_func
)dump_create_mailslot_request
,
4778 (dump_func
)dump_set_mailslot_info_request
,
4779 (dump_func
)dump_create_directory_request
,
4780 (dump_func
)dump_open_directory_request
,
4781 (dump_func
)dump_get_directory_entry_request
,
4782 (dump_func
)dump_create_symlink_request
,
4783 (dump_func
)dump_open_symlink_request
,
4784 (dump_func
)dump_query_symlink_request
,
4785 (dump_func
)dump_get_object_info_request
,
4786 (dump_func
)dump_get_object_name_request
,
4787 (dump_func
)dump_get_object_type_request
,
4788 (dump_func
)dump_get_object_types_request
,
4789 (dump_func
)dump_allocate_locally_unique_id_request
,
4790 (dump_func
)dump_create_device_manager_request
,
4791 (dump_func
)dump_create_device_request
,
4792 (dump_func
)dump_delete_device_request
,
4793 (dump_func
)dump_get_next_device_request_request
,
4794 (dump_func
)dump_get_kernel_object_ptr_request
,
4795 (dump_func
)dump_set_kernel_object_ptr_request
,
4796 (dump_func
)dump_grab_kernel_object_request
,
4797 (dump_func
)dump_release_kernel_object_request
,
4798 (dump_func
)dump_get_kernel_object_handle_request
,
4799 (dump_func
)dump_make_process_system_request
,
4800 (dump_func
)dump_get_token_info_request
,
4801 (dump_func
)dump_create_linked_token_request
,
4802 (dump_func
)dump_create_completion_request
,
4803 (dump_func
)dump_open_completion_request
,
4804 (dump_func
)dump_add_completion_request
,
4805 (dump_func
)dump_remove_completion_request
,
4806 (dump_func
)dump_query_completion_request
,
4807 (dump_func
)dump_set_completion_info_request
,
4808 (dump_func
)dump_add_fd_completion_request
,
4809 (dump_func
)dump_set_fd_completion_mode_request
,
4810 (dump_func
)dump_set_fd_disp_info_request
,
4811 (dump_func
)dump_set_fd_name_info_request
,
4812 (dump_func
)dump_set_fd_eof_info_request
,
4813 (dump_func
)dump_get_window_layered_info_request
,
4814 (dump_func
)dump_set_window_layered_info_request
,
4815 (dump_func
)dump_alloc_user_handle_request
,
4816 (dump_func
)dump_free_user_handle_request
,
4817 (dump_func
)dump_set_cursor_request
,
4818 (dump_func
)dump_get_cursor_history_request
,
4819 (dump_func
)dump_get_rawinput_buffer_request
,
4820 (dump_func
)dump_update_rawinput_devices_request
,
4821 (dump_func
)dump_get_rawinput_devices_request
,
4822 (dump_func
)dump_create_job_request
,
4823 (dump_func
)dump_open_job_request
,
4824 (dump_func
)dump_assign_job_request
,
4825 (dump_func
)dump_process_in_job_request
,
4826 (dump_func
)dump_set_job_limits_request
,
4827 (dump_func
)dump_set_job_completion_port_request
,
4828 (dump_func
)dump_get_job_info_request
,
4829 (dump_func
)dump_terminate_job_request
,
4830 (dump_func
)dump_suspend_process_request
,
4831 (dump_func
)dump_resume_process_request
,
4832 (dump_func
)dump_get_next_thread_request
,
4835 static const dump_func reply_dumpers
[REQ_NB_REQUESTS
] = {
4836 (dump_func
)dump_new_process_reply
,
4837 (dump_func
)dump_get_new_process_info_reply
,
4838 (dump_func
)dump_new_thread_reply
,
4839 (dump_func
)dump_get_startup_info_reply
,
4840 (dump_func
)dump_init_process_done_reply
,
4841 (dump_func
)dump_init_first_thread_reply
,
4842 (dump_func
)dump_init_thread_reply
,
4843 (dump_func
)dump_terminate_process_reply
,
4844 (dump_func
)dump_terminate_thread_reply
,
4845 (dump_func
)dump_get_process_info_reply
,
4846 (dump_func
)dump_get_process_debug_info_reply
,
4847 (dump_func
)dump_get_process_image_name_reply
,
4848 (dump_func
)dump_get_process_vm_counters_reply
,
4850 (dump_func
)dump_get_thread_info_reply
,
4851 (dump_func
)dump_get_thread_times_reply
,
4853 (dump_func
)dump_suspend_thread_reply
,
4854 (dump_func
)dump_resume_thread_reply
,
4855 (dump_func
)dump_queue_apc_reply
,
4856 (dump_func
)dump_get_apc_result_reply
,
4858 (dump_func
)dump_set_handle_info_reply
,
4859 (dump_func
)dump_dup_handle_reply
,
4861 (dump_func
)dump_open_process_reply
,
4862 (dump_func
)dump_open_thread_reply
,
4863 (dump_func
)dump_select_reply
,
4864 (dump_func
)dump_create_event_reply
,
4865 (dump_func
)dump_event_op_reply
,
4866 (dump_func
)dump_query_event_reply
,
4867 (dump_func
)dump_open_event_reply
,
4868 (dump_func
)dump_create_keyed_event_reply
,
4869 (dump_func
)dump_open_keyed_event_reply
,
4870 (dump_func
)dump_create_mutex_reply
,
4871 (dump_func
)dump_release_mutex_reply
,
4872 (dump_func
)dump_open_mutex_reply
,
4873 (dump_func
)dump_query_mutex_reply
,
4874 (dump_func
)dump_create_semaphore_reply
,
4875 (dump_func
)dump_release_semaphore_reply
,
4876 (dump_func
)dump_query_semaphore_reply
,
4877 (dump_func
)dump_open_semaphore_reply
,
4878 (dump_func
)dump_create_file_reply
,
4879 (dump_func
)dump_open_file_object_reply
,
4880 (dump_func
)dump_alloc_file_handle_reply
,
4881 (dump_func
)dump_get_handle_unix_name_reply
,
4882 (dump_func
)dump_get_handle_fd_reply
,
4883 (dump_func
)dump_get_directory_cache_entry_reply
,
4884 (dump_func
)dump_flush_reply
,
4885 (dump_func
)dump_get_file_info_reply
,
4886 (dump_func
)dump_get_volume_info_reply
,
4887 (dump_func
)dump_lock_file_reply
,
4889 (dump_func
)dump_recv_socket_reply
,
4890 (dump_func
)dump_poll_socket_reply
,
4891 (dump_func
)dump_send_socket_reply
,
4892 (dump_func
)dump_get_next_console_request_reply
,
4894 (dump_func
)dump_read_change_reply
,
4895 (dump_func
)dump_create_mapping_reply
,
4896 (dump_func
)dump_open_mapping_reply
,
4897 (dump_func
)dump_get_mapping_info_reply
,
4900 (dump_func
)dump_get_mapping_committed_range_reply
,
4903 (dump_func
)dump_get_mapping_filename_reply
,
4904 (dump_func
)dump_list_processes_reply
,
4905 (dump_func
)dump_create_debug_obj_reply
,
4906 (dump_func
)dump_wait_debug_event_reply
,
4907 (dump_func
)dump_queue_exception_event_reply
,
4912 (dump_func
)dump_read_process_memory_reply
,
4914 (dump_func
)dump_create_key_reply
,
4915 (dump_func
)dump_open_key_reply
,
4918 (dump_func
)dump_enum_key_reply
,
4920 (dump_func
)dump_get_key_value_reply
,
4921 (dump_func
)dump_enum_key_value_reply
,
4927 (dump_func
)dump_create_timer_reply
,
4928 (dump_func
)dump_open_timer_reply
,
4929 (dump_func
)dump_set_timer_reply
,
4930 (dump_func
)dump_cancel_timer_reply
,
4931 (dump_func
)dump_get_timer_info_reply
,
4932 (dump_func
)dump_get_thread_context_reply
,
4933 (dump_func
)dump_set_thread_context_reply
,
4934 (dump_func
)dump_get_selector_entry_reply
,
4935 (dump_func
)dump_add_atom_reply
,
4937 (dump_func
)dump_find_atom_reply
,
4938 (dump_func
)dump_get_atom_information_reply
,
4939 (dump_func
)dump_get_msg_queue_reply
,
4941 (dump_func
)dump_set_queue_mask_reply
,
4942 (dump_func
)dump_get_queue_status_reply
,
4943 (dump_func
)dump_get_process_idle_event_reply
,
4946 (dump_func
)dump_send_hardware_message_reply
,
4947 (dump_func
)dump_get_message_reply
,
4950 (dump_func
)dump_get_message_reply_reply
,
4951 (dump_func
)dump_set_win_timer_reply
,
4953 (dump_func
)dump_is_window_hung_reply
,
4954 (dump_func
)dump_get_serial_info_reply
,
4958 (dump_func
)dump_get_async_result_reply
,
4959 (dump_func
)dump_read_reply
,
4960 (dump_func
)dump_write_reply
,
4961 (dump_func
)dump_ioctl_reply
,
4963 (dump_func
)dump_create_named_pipe_reply
,
4965 (dump_func
)dump_create_window_reply
,
4967 (dump_func
)dump_get_desktop_window_reply
,
4968 (dump_func
)dump_set_window_owner_reply
,
4969 (dump_func
)dump_get_window_info_reply
,
4970 (dump_func
)dump_set_window_info_reply
,
4971 (dump_func
)dump_set_parent_reply
,
4972 (dump_func
)dump_get_window_parents_reply
,
4973 (dump_func
)dump_get_window_children_reply
,
4974 (dump_func
)dump_get_window_children_from_point_reply
,
4975 (dump_func
)dump_get_window_tree_reply
,
4976 (dump_func
)dump_set_window_pos_reply
,
4977 (dump_func
)dump_get_window_rectangles_reply
,
4978 (dump_func
)dump_get_window_text_reply
,
4980 (dump_func
)dump_get_windows_offset_reply
,
4981 (dump_func
)dump_get_visible_region_reply
,
4982 (dump_func
)dump_get_surface_region_reply
,
4983 (dump_func
)dump_get_window_region_reply
,
4985 (dump_func
)dump_get_update_region_reply
,
4989 (dump_func
)dump_remove_window_property_reply
,
4990 (dump_func
)dump_get_window_property_reply
,
4991 (dump_func
)dump_get_window_properties_reply
,
4992 (dump_func
)dump_create_winstation_reply
,
4993 (dump_func
)dump_open_winstation_reply
,
4995 (dump_func
)dump_get_process_winstation_reply
,
4997 (dump_func
)dump_enum_winstation_reply
,
4998 (dump_func
)dump_create_desktop_reply
,
4999 (dump_func
)dump_open_desktop_reply
,
5000 (dump_func
)dump_open_input_desktop_reply
,
5002 (dump_func
)dump_get_thread_desktop_reply
,
5004 (dump_func
)dump_enum_desktop_reply
,
5005 (dump_func
)dump_set_user_object_info_reply
,
5006 (dump_func
)dump_register_hotkey_reply
,
5007 (dump_func
)dump_unregister_hotkey_reply
,
5009 (dump_func
)dump_get_thread_input_reply
,
5010 (dump_func
)dump_get_last_input_time_reply
,
5011 (dump_func
)dump_get_key_state_reply
,
5013 (dump_func
)dump_set_foreground_window_reply
,
5014 (dump_func
)dump_set_focus_window_reply
,
5015 (dump_func
)dump_set_active_window_reply
,
5016 (dump_func
)dump_set_capture_window_reply
,
5017 (dump_func
)dump_set_caret_window_reply
,
5018 (dump_func
)dump_set_caret_info_reply
,
5019 (dump_func
)dump_set_hook_reply
,
5020 (dump_func
)dump_remove_hook_reply
,
5021 (dump_func
)dump_start_hook_chain_reply
,
5023 (dump_func
)dump_get_hook_info_reply
,
5024 (dump_func
)dump_create_class_reply
,
5025 (dump_func
)dump_destroy_class_reply
,
5026 (dump_func
)dump_set_class_info_reply
,
5027 (dump_func
)dump_open_clipboard_reply
,
5028 (dump_func
)dump_close_clipboard_reply
,
5030 (dump_func
)dump_set_clipboard_data_reply
,
5031 (dump_func
)dump_get_clipboard_data_reply
,
5032 (dump_func
)dump_get_clipboard_formats_reply
,
5033 (dump_func
)dump_enum_clipboard_formats_reply
,
5034 (dump_func
)dump_release_clipboard_reply
,
5035 (dump_func
)dump_get_clipboard_info_reply
,
5036 (dump_func
)dump_set_clipboard_viewer_reply
,
5039 (dump_func
)dump_open_token_reply
,
5040 (dump_func
)dump_set_global_windows_reply
,
5041 (dump_func
)dump_adjust_token_privileges_reply
,
5042 (dump_func
)dump_get_token_privileges_reply
,
5043 (dump_func
)dump_check_token_privileges_reply
,
5044 (dump_func
)dump_duplicate_token_reply
,
5045 (dump_func
)dump_filter_token_reply
,
5046 (dump_func
)dump_access_check_reply
,
5047 (dump_func
)dump_get_token_sid_reply
,
5048 (dump_func
)dump_get_token_groups_reply
,
5049 (dump_func
)dump_get_token_default_dacl_reply
,
5052 (dump_func
)dump_get_security_object_reply
,
5053 (dump_func
)dump_get_system_handles_reply
,
5054 (dump_func
)dump_create_mailslot_reply
,
5055 (dump_func
)dump_set_mailslot_info_reply
,
5056 (dump_func
)dump_create_directory_reply
,
5057 (dump_func
)dump_open_directory_reply
,
5058 (dump_func
)dump_get_directory_entry_reply
,
5059 (dump_func
)dump_create_symlink_reply
,
5060 (dump_func
)dump_open_symlink_reply
,
5061 (dump_func
)dump_query_symlink_reply
,
5062 (dump_func
)dump_get_object_info_reply
,
5063 (dump_func
)dump_get_object_name_reply
,
5064 (dump_func
)dump_get_object_type_reply
,
5065 (dump_func
)dump_get_object_types_reply
,
5066 (dump_func
)dump_allocate_locally_unique_id_reply
,
5067 (dump_func
)dump_create_device_manager_reply
,
5070 (dump_func
)dump_get_next_device_request_reply
,
5071 (dump_func
)dump_get_kernel_object_ptr_reply
,
5075 (dump_func
)dump_get_kernel_object_handle_reply
,
5076 (dump_func
)dump_make_process_system_reply
,
5077 (dump_func
)dump_get_token_info_reply
,
5078 (dump_func
)dump_create_linked_token_reply
,
5079 (dump_func
)dump_create_completion_reply
,
5080 (dump_func
)dump_open_completion_reply
,
5082 (dump_func
)dump_remove_completion_reply
,
5083 (dump_func
)dump_query_completion_reply
,
5090 (dump_func
)dump_get_window_layered_info_reply
,
5092 (dump_func
)dump_alloc_user_handle_reply
,
5094 (dump_func
)dump_set_cursor_reply
,
5095 (dump_func
)dump_get_cursor_history_reply
,
5096 (dump_func
)dump_get_rawinput_buffer_reply
,
5098 (dump_func
)dump_get_rawinput_devices_reply
,
5099 (dump_func
)dump_create_job_reply
,
5100 (dump_func
)dump_open_job_reply
,
5105 (dump_func
)dump_get_job_info_reply
,
5109 (dump_func
)dump_get_next_thread_reply
,
5112 static const char * const req_names
[REQ_NB_REQUESTS
] = {
5114 "get_new_process_info",
5117 "init_process_done",
5118 "init_first_thread",
5120 "terminate_process",
5123 "get_process_debug_info",
5124 "get_process_image_name",
5125 "get_process_vm_counters",
5145 "create_keyed_event",
5152 "release_semaphore",
5157 "alloc_file_handle",
5158 "get_handle_unix_name",
5160 "get_directory_cache_entry",
5169 "get_next_console_request",
5170 "read_directory_changes",
5177 "get_mapping_committed_range",
5178 "add_mapping_committed_range",
5180 "get_mapping_filename",
5184 "queue_exception_event",
5185 "get_exception_status",
5186 "continue_debug_event",
5188 "set_debug_obj_info",
5189 "read_process_memory",
5190 "write_process_memory",
5203 "set_registry_notification",
5209 "get_thread_context",
5210 "set_thread_context",
5211 "get_selector_entry",
5215 "get_atom_information",
5220 "get_process_idle_event",
5222 "post_quit_message",
5223 "send_hardware_message",
5226 "accept_hardware_message",
5227 "get_message_reply",
5240 "create_named_pipe",
5241 "set_named_pipe_info",
5244 "get_desktop_window",
5249 "get_window_parents",
5250 "get_window_children",
5251 "get_window_children_from_point",
5254 "get_window_rectangles",
5257 "get_windows_offset",
5258 "get_visible_region",
5259 "get_surface_region",
5260 "get_window_region",
5261 "set_window_region",
5262 "get_update_region",
5263 "update_window_zorder",
5265 "set_window_property",
5266 "remove_window_property",
5267 "get_window_property",
5268 "get_window_properties",
5269 "create_winstation",
5272 "get_process_winstation",
5273 "set_process_winstation",
5277 "open_input_desktop",
5279 "get_thread_desktop",
5280 "set_thread_desktop",
5282 "set_user_object_info",
5284 "unregister_hotkey",
5285 "attach_thread_input",
5287 "get_last_input_time",
5290 "set_foreground_window",
5292 "set_active_window",
5293 "set_capture_window",
5299 "finish_hook_chain",
5307 "set_clipboard_data",
5308 "get_clipboard_data",
5309 "get_clipboard_formats",
5310 "enum_clipboard_formats",
5311 "release_clipboard",
5312 "get_clipboard_info",
5313 "set_clipboard_viewer",
5314 "add_clipboard_listener",
5315 "remove_clipboard_listener",
5317 "set_global_windows",
5318 "adjust_token_privileges",
5319 "get_token_privileges",
5320 "check_token_privileges",
5326 "get_token_default_dacl",
5327 "set_token_default_dacl",
5328 "set_security_object",
5329 "get_security_object",
5330 "get_system_handles",
5332 "set_mailslot_info",
5335 "get_directory_entry",
5343 "allocate_locally_unique_id",
5344 "create_device_manager",
5347 "get_next_device_request",
5348 "get_kernel_object_ptr",
5349 "set_kernel_object_ptr",
5350 "grab_kernel_object",
5351 "release_kernel_object",
5352 "get_kernel_object_handle",
5353 "make_process_system",
5355 "create_linked_token",
5356 "create_completion",
5359 "remove_completion",
5361 "set_completion_info",
5362 "add_fd_completion",
5363 "set_fd_completion_mode",
5367 "get_window_layered_info",
5368 "set_window_layered_info",
5369 "alloc_user_handle",
5372 "get_cursor_history",
5373 "get_rawinput_buffer",
5374 "update_rawinput_devices",
5375 "get_rawinput_devices",
5381 "set_job_completion_port",
5395 { "ABANDONED_WAIT_0", STATUS_ABANDONED_WAIT_0
},
5396 { "ACCESS_DENIED", STATUS_ACCESS_DENIED
},
5397 { "ACCESS_VIOLATION", STATUS_ACCESS_VIOLATION
},
5398 { "ADDRESS_ALREADY_ASSOCIATED", STATUS_ADDRESS_ALREADY_ASSOCIATED
},
5399 { "ALERTED", STATUS_ALERTED
},
5400 { "BAD_DEVICE_TYPE", STATUS_BAD_DEVICE_TYPE
},
5401 { "BAD_IMPERSONATION_LEVEL", STATUS_BAD_IMPERSONATION_LEVEL
},
5402 { "BUFFER_OVERFLOW", STATUS_BUFFER_OVERFLOW
},
5403 { "BUFFER_TOO_SMALL", STATUS_BUFFER_TOO_SMALL
},
5404 { "CANCELLED", STATUS_CANCELLED
},
5405 { "CANNOT_DELETE", STATUS_CANNOT_DELETE
},
5406 { "CANT_OPEN_ANONYMOUS", STATUS_CANT_OPEN_ANONYMOUS
},
5407 { "CHILD_MUST_BE_VOLATILE", STATUS_CHILD_MUST_BE_VOLATILE
},
5408 { "CONNECTION_ABORTED", STATUS_CONNECTION_ABORTED
},
5409 { "CONNECTION_ACTIVE", STATUS_CONNECTION_ACTIVE
},
5410 { "CONNECTION_REFUSED", STATUS_CONNECTION_REFUSED
},
5411 { "CONNECTION_RESET", STATUS_CONNECTION_RESET
},
5412 { "DEBUGGER_INACTIVE", STATUS_DEBUGGER_INACTIVE
},
5413 { "DEVICE_BUSY", STATUS_DEVICE_BUSY
},
5414 { "DEVICE_NOT_READY", STATUS_DEVICE_NOT_READY
},
5415 { "DIRECTORY_NOT_EMPTY", STATUS_DIRECTORY_NOT_EMPTY
},
5416 { "DISK_FULL", STATUS_DISK_FULL
},
5417 { "DLL_NOT_FOUND", STATUS_DLL_NOT_FOUND
},
5418 { "ERROR_CLASS_ALREADY_EXISTS", 0xc0010000 | ERROR_CLASS_ALREADY_EXISTS
},
5419 { "ERROR_CLASS_DOES_NOT_EXIST", 0xc0010000 | ERROR_CLASS_DOES_NOT_EXIST
},
5420 { "ERROR_CLASS_HAS_WINDOWS", 0xc0010000 | ERROR_CLASS_HAS_WINDOWS
},
5421 { "ERROR_CLIPBOARD_NOT_OPEN", 0xc0010000 | ERROR_CLIPBOARD_NOT_OPEN
},
5422 { "ERROR_HOTKEY_ALREADY_REGISTERED", 0xc0010000 | ERROR_HOTKEY_ALREADY_REGISTERED
},
5423 { "ERROR_HOTKEY_NOT_REGISTERED", 0xc0010000 | ERROR_HOTKEY_NOT_REGISTERED
},
5424 { "ERROR_INVALID_CURSOR_HANDLE", 0xc0010000 | ERROR_INVALID_CURSOR_HANDLE
},
5425 { "ERROR_INVALID_INDEX", 0xc0010000 | ERROR_INVALID_INDEX
},
5426 { "ERROR_INVALID_WINDOW_HANDLE", 0xc0010000 | ERROR_INVALID_WINDOW_HANDLE
},
5427 { "ERROR_NO_MORE_USER_HANDLES", 0xc0010000 | ERROR_NO_MORE_USER_HANDLES
},
5428 { "ERROR_WINDOW_OF_OTHER_THREAD", 0xc0010000 | ERROR_WINDOW_OF_OTHER_THREAD
},
5429 { "FILE_DELETED", STATUS_FILE_DELETED
},
5430 { "FILE_INVALID", STATUS_FILE_INVALID
},
5431 { "FILE_IS_A_DIRECTORY", STATUS_FILE_IS_A_DIRECTORY
},
5432 { "FILE_LOCK_CONFLICT", STATUS_FILE_LOCK_CONFLICT
},
5433 { "GENERIC_NOT_MAPPED", STATUS_GENERIC_NOT_MAPPED
},
5434 { "HANDLES_CLOSED", STATUS_HANDLES_CLOSED
},
5435 { "HANDLE_NOT_CLOSABLE", STATUS_HANDLE_NOT_CLOSABLE
},
5436 { "HOST_UNREACHABLE", STATUS_HOST_UNREACHABLE
},
5437 { "ILLEGAL_FUNCTION", STATUS_ILLEGAL_FUNCTION
},
5438 { "IMAGE_NOT_AT_BASE", STATUS_IMAGE_NOT_AT_BASE
},
5439 { "INFO_LENGTH_MISMATCH", STATUS_INFO_LENGTH_MISMATCH
},
5440 { "INSTANCE_NOT_AVAILABLE", STATUS_INSTANCE_NOT_AVAILABLE
},
5441 { "INSUFFICIENT_RESOURCES", STATUS_INSUFFICIENT_RESOURCES
},
5442 { "INVALID_ADDRESS", STATUS_INVALID_ADDRESS
},
5443 { "INVALID_ADDRESS_COMPONENT", STATUS_INVALID_ADDRESS_COMPONENT
},
5444 { "INVALID_CID", STATUS_INVALID_CID
},
5445 { "INVALID_CONNECTION", STATUS_INVALID_CONNECTION
},
5446 { "INVALID_DEVICE_REQUEST", STATUS_INVALID_DEVICE_REQUEST
},
5447 { "INVALID_FILE_FOR_SECTION", STATUS_INVALID_FILE_FOR_SECTION
},
5448 { "INVALID_HANDLE", STATUS_INVALID_HANDLE
},
5449 { "INVALID_IMAGE_FORMAT", STATUS_INVALID_IMAGE_FORMAT
},
5450 { "INVALID_IMAGE_NE_FORMAT", STATUS_INVALID_IMAGE_NE_FORMAT
},
5451 { "INVALID_IMAGE_NOT_MZ", STATUS_INVALID_IMAGE_NOT_MZ
},
5452 { "INVALID_IMAGE_PROTECT", STATUS_INVALID_IMAGE_PROTECT
},
5453 { "INVALID_IMAGE_WIN_16", STATUS_INVALID_IMAGE_WIN_16
},
5454 { "INVALID_IMAGE_WIN_64", STATUS_INVALID_IMAGE_WIN_64
},
5455 { "INVALID_LOCK_SEQUENCE", STATUS_INVALID_LOCK_SEQUENCE
},
5456 { "INVALID_OWNER", STATUS_INVALID_OWNER
},
5457 { "INVALID_PARAMETER", STATUS_INVALID_PARAMETER
},
5458 { "INVALID_PIPE_STATE", STATUS_INVALID_PIPE_STATE
},
5459 { "INVALID_READ_MODE", STATUS_INVALID_READ_MODE
},
5460 { "INVALID_SECURITY_DESCR", STATUS_INVALID_SECURITY_DESCR
},
5461 { "IO_TIMEOUT", STATUS_IO_TIMEOUT
},
5462 { "KERNEL_APC", STATUS_KERNEL_APC
},
5463 { "KEY_DELETED", STATUS_KEY_DELETED
},
5464 { "MAPPED_FILE_SIZE_ZERO", STATUS_MAPPED_FILE_SIZE_ZERO
},
5465 { "MORE_PROCESSING_REQUIRED", STATUS_MORE_PROCESSING_REQUIRED
},
5466 { "MUTANT_NOT_OWNED", STATUS_MUTANT_NOT_OWNED
},
5467 { "NAME_TOO_LONG", STATUS_NAME_TOO_LONG
},
5468 { "NETWORK_BUSY", STATUS_NETWORK_BUSY
},
5469 { "NETWORK_UNREACHABLE", STATUS_NETWORK_UNREACHABLE
},
5470 { "NOT_ALL_ASSIGNED", STATUS_NOT_ALL_ASSIGNED
},
5471 { "NOT_A_DIRECTORY", STATUS_NOT_A_DIRECTORY
},
5472 { "NOT_FOUND", STATUS_NOT_FOUND
},
5473 { "NOT_IMPLEMENTED", STATUS_NOT_IMPLEMENTED
},
5474 { "NOT_MAPPED_VIEW", STATUS_NOT_MAPPED_VIEW
},
5475 { "NOT_REGISTRY_FILE", STATUS_NOT_REGISTRY_FILE
},
5476 { "NOT_SAME_DEVICE", STATUS_NOT_SAME_DEVICE
},
5477 { "NOT_SUPPORTED", STATUS_NOT_SUPPORTED
},
5478 { "NO_DATA_DETECTED", STATUS_NO_DATA_DETECTED
},
5479 { "NO_IMPERSONATION_TOKEN", STATUS_NO_IMPERSONATION_TOKEN
},
5480 { "NO_MEMORY", STATUS_NO_MEMORY
},
5481 { "NO_MORE_ENTRIES", STATUS_NO_MORE_ENTRIES
},
5482 { "NO_SUCH_DEVICE", STATUS_NO_SUCH_DEVICE
},
5483 { "NO_SUCH_FILE", STATUS_NO_SUCH_FILE
},
5484 { "NO_TOKEN", STATUS_NO_TOKEN
},
5485 { "OBJECT_NAME_COLLISION", STATUS_OBJECT_NAME_COLLISION
},
5486 { "OBJECT_NAME_EXISTS", STATUS_OBJECT_NAME_EXISTS
},
5487 { "OBJECT_NAME_INVALID", STATUS_OBJECT_NAME_INVALID
},
5488 { "OBJECT_NAME_NOT_FOUND", STATUS_OBJECT_NAME_NOT_FOUND
},
5489 { "OBJECT_PATH_INVALID", STATUS_OBJECT_PATH_INVALID
},
5490 { "OBJECT_PATH_NOT_FOUND", STATUS_OBJECT_PATH_NOT_FOUND
},
5491 { "OBJECT_PATH_SYNTAX_BAD", STATUS_OBJECT_PATH_SYNTAX_BAD
},
5492 { "OBJECT_TYPE_MISMATCH", STATUS_OBJECT_TYPE_MISMATCH
},
5493 { "PENDING", STATUS_PENDING
},
5494 { "PIPE_BROKEN", STATUS_PIPE_BROKEN
},
5495 { "PIPE_BUSY", STATUS_PIPE_BUSY
},
5496 { "PIPE_CLOSING", STATUS_PIPE_CLOSING
},
5497 { "PIPE_CONNECTED", STATUS_PIPE_CONNECTED
},
5498 { "PIPE_DISCONNECTED", STATUS_PIPE_DISCONNECTED
},
5499 { "PIPE_EMPTY", STATUS_PIPE_EMPTY
},
5500 { "PIPE_LISTENING", STATUS_PIPE_LISTENING
},
5501 { "PIPE_NOT_AVAILABLE", STATUS_PIPE_NOT_AVAILABLE
},
5502 { "PORT_NOT_SET", STATUS_PORT_NOT_SET
},
5503 { "PRIVILEGE_NOT_HELD", STATUS_PRIVILEGE_NOT_HELD
},
5504 { "PROCESS_IN_JOB", STATUS_PROCESS_IN_JOB
},
5505 { "PROCESS_IS_TERMINATING", STATUS_PROCESS_IS_TERMINATING
},
5506 { "PROCESS_NOT_IN_JOB", STATUS_PROCESS_NOT_IN_JOB
},
5507 { "REPARSE_POINT_NOT_RESOLVED", STATUS_REPARSE_POINT_NOT_RESOLVED
},
5508 { "SECTION_TOO_BIG", STATUS_SECTION_TOO_BIG
},
5509 { "SEMAPHORE_LIMIT_EXCEEDED", STATUS_SEMAPHORE_LIMIT_EXCEEDED
},
5510 { "SHARING_VIOLATION", STATUS_SHARING_VIOLATION
},
5511 { "SHUTDOWN_IN_PROGRESS", STATUS_SHUTDOWN_IN_PROGRESS
},
5512 { "SUSPEND_COUNT_EXCEEDED", STATUS_SUSPEND_COUNT_EXCEEDED
},
5513 { "THREAD_IS_TERMINATING", STATUS_THREAD_IS_TERMINATING
},
5514 { "TIMEOUT", STATUS_TIMEOUT
},
5515 { "TOO_MANY_OPENED_FILES", STATUS_TOO_MANY_OPENED_FILES
},
5516 { "UNSUCCESSFUL", STATUS_UNSUCCESSFUL
},
5517 { "USER_APC", STATUS_USER_APC
},
5518 { "USER_MAPPED_FILE", STATUS_USER_MAPPED_FILE
},
5519 { "VOLUME_DISMOUNTED", STATUS_VOLUME_DISMOUNTED
},
5520 { "WAS_LOCKED", STATUS_WAS_LOCKED
},
5521 { "WSAEACCES", 0xc0010000 | WSAEACCES
},
5522 { "WSAEADDRINUSE", 0xc0010000 | WSAEADDRINUSE
},
5523 { "WSAEADDRNOTAVAIL", 0xc0010000 | WSAEADDRNOTAVAIL
},
5524 { "WSAEAFNOSUPPORT", 0xc0010000 | WSAEAFNOSUPPORT
},
5525 { "WSAEALREADY", 0xc0010000 | WSAEALREADY
},
5526 { "WSAEBADF", 0xc0010000 | WSAEBADF
},
5527 { "WSAECONNABORTED", 0xc0010000 | WSAECONNABORTED
},
5528 { "WSAECONNREFUSED", 0xc0010000 | WSAECONNREFUSED
},
5529 { "WSAECONNRESET", 0xc0010000 | WSAECONNRESET
},
5530 { "WSAEDESTADDRREQ", 0xc0010000 | WSAEDESTADDRREQ
},
5531 { "WSAEDQUOT", 0xc0010000 | WSAEDQUOT
},
5532 { "WSAEFAULT", 0xc0010000 | WSAEFAULT
},
5533 { "WSAEHOSTDOWN", 0xc0010000 | WSAEHOSTDOWN
},
5534 { "WSAEHOSTUNREACH", 0xc0010000 | WSAEHOSTUNREACH
},
5535 { "WSAEINTR", 0xc0010000 | WSAEINTR
},
5536 { "WSAEINVAL", 0xc0010000 | WSAEINVAL
},
5537 { "WSAEISCONN", 0xc0010000 | WSAEISCONN
},
5538 { "WSAELOOP", 0xc0010000 | WSAELOOP
},
5539 { "WSAEMFILE", 0xc0010000 | WSAEMFILE
},
5540 { "WSAEMSGSIZE", 0xc0010000 | WSAEMSGSIZE
},
5541 { "WSAENAMETOOLONG", 0xc0010000 | WSAENAMETOOLONG
},
5542 { "WSAENETDOWN", 0xc0010000 | WSAENETDOWN
},
5543 { "WSAENETRESET", 0xc0010000 | WSAENETRESET
},
5544 { "WSAENETUNREACH", 0xc0010000 | WSAENETUNREACH
},
5545 { "WSAENOBUFS", 0xc0010000 | WSAENOBUFS
},
5546 { "WSAENOPROTOOPT", 0xc0010000 | WSAENOPROTOOPT
},
5547 { "WSAENOTCONN", 0xc0010000 | WSAENOTCONN
},
5548 { "WSAENOTEMPTY", 0xc0010000 | WSAENOTEMPTY
},
5549 { "WSAENOTSOCK", 0xc0010000 | WSAENOTSOCK
},
5550 { "WSAEOPNOTSUPP", 0xc0010000 | WSAEOPNOTSUPP
},
5551 { "WSAEPFNOSUPPORT", 0xc0010000 | WSAEPFNOSUPPORT
},
5552 { "WSAEPROCLIM", 0xc0010000 | WSAEPROCLIM
},
5553 { "WSAEPROTONOSUPPORT", 0xc0010000 | WSAEPROTONOSUPPORT
},
5554 { "WSAEPROTOTYPE", 0xc0010000 | WSAEPROTOTYPE
},
5555 { "WSAEREMOTE", 0xc0010000 | WSAEREMOTE
},
5556 { "WSAESHUTDOWN", 0xc0010000 | WSAESHUTDOWN
},
5557 { "WSAESOCKTNOSUPPORT", 0xc0010000 | WSAESOCKTNOSUPPORT
},
5558 { "WSAESTALE", 0xc0010000 | WSAESTALE
},
5559 { "WSAETIMEDOUT", 0xc0010000 | WSAETIMEDOUT
},
5560 { "WSAETOOMANYREFS", 0xc0010000 | WSAETOOMANYREFS
},
5561 { "WSAEUSERS", 0xc0010000 | WSAEUSERS
},
5562 { "WSAEWOULDBLOCK", 0xc0010000 | WSAEWOULDBLOCK
},
5566 /* ### make_requests end ### */
5567 /* Everything above this line is generated automatically by tools/make_requests */
5569 static const char *get_status_name( unsigned int status
)
5572 static char buffer
[10];
5576 for (i
= 0; status_names
[i
].name
; i
++)
5577 if (status_names
[i
].value
== status
) return status_names
[i
].name
;
5579 sprintf( buffer
, "%x", status
);
5583 void trace_request(void)
5585 enum request req
= current
->req
.request_header
.req
;
5586 if (req
< REQ_NB_REQUESTS
)
5588 fprintf( stderr
, "%04x: %s(", current
->id
, req_names
[req
] );
5589 if (req_dumpers
[req
])
5591 cur_data
= get_req_data();
5592 cur_size
= get_req_data_size();
5593 req_dumpers
[req
]( ¤t
->req
);
5595 fprintf( stderr
, " )\n" );
5597 else fprintf( stderr
, "%04x: %d(?)\n", current
->id
, req
);
5600 void trace_reply( enum request req
, const union generic_reply
*reply
)
5602 if (req
< REQ_NB_REQUESTS
)
5604 fprintf( stderr
, "%04x: %s() = %s",
5605 current
->id
, req_names
[req
], get_status_name(current
->error
) );
5606 if (reply_dumpers
[req
])
5608 fprintf( stderr
, " {" );
5609 cur_data
= current
->reply_data
;
5610 cur_size
= reply
->reply_header
.reply_size
;
5611 reply_dumpers
[req
]( reply
);
5612 fprintf( stderr
, " }" );
5614 fputc( '\n', stderr
);
5616 else fprintf( stderr
, "%04x: %d() = %s\n",
5617 current
->id
, req
, get_status_name(current
->error
) );