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_debug_event( const char *prefix
, data_size_t size
)
825 fprintf( stderr
, "%s{}", prefix
);
828 size
= min( size
, sizeof(event
) );
829 memset( &event
, 0, sizeof(event
) );
830 memcpy( &event
, cur_data
, size
);
835 fprintf( stderr
, "%s{idle}", prefix
);
837 case DbgReplyPending
:
838 fprintf( stderr
, "%s{pending}", prefix
);
840 case DbgCreateThreadStateChange
:
841 fprintf( stderr
, "%s{create_thread,thread=%04x", prefix
, event
.create_thread
.handle
);
842 dump_uint64( ",start=", &event
.create_thread
.start
);
843 fputc( '}', stderr
);
845 case DbgCreateProcessStateChange
:
846 fprintf( stderr
, "%s{create_process,file=%04x,process=%04x,thread=%04x", prefix
,
847 event
.create_process
.file
, event
.create_process
.process
,
848 event
.create_process
.thread
);
849 dump_uint64( ",base=", &event
.create_process
.base
);
850 fprintf( stderr
, ",offset=%d,size=%d",
851 event
.create_process
.dbg_offset
, event
.create_process
.dbg_size
);
852 dump_uint64( ",start=", &event
.create_process
.start
);
853 fputc( '}', stderr
);
855 case DbgExitThreadStateChange
:
856 fprintf( stderr
, "%s{exit_thread,code=%d}", prefix
, event
.exit
.exit_code
);
858 case DbgExitProcessStateChange
:
859 fprintf( stderr
, "%s{exit_process,code=%d}", prefix
, event
.exit
.exit_code
);
861 case DbgExceptionStateChange
:
862 case DbgBreakpointStateChange
:
863 case DbgSingleStepStateChange
:
864 fprintf( stderr
, "%s{%s,first=%d,exc_code=%08x,flags=%08x", prefix
,
865 event
.code
== DbgBreakpointStateChange
? "breakpoint" :
866 event
.code
== DbgSingleStepStateChange
? "singlestep" : "exception",
867 event
.exception
.first
, event
.exception
.exc_code
, event
.exception
.flags
);
868 dump_uint64( ",record=", &event
.exception
.record
);
869 dump_uint64( ",address=", &event
.exception
.address
);
870 fprintf( stderr
, ",params={" );
871 event
.exception
.nb_params
= min( event
.exception
.nb_params
, EXCEPTION_MAXIMUM_PARAMETERS
);
872 for (i
= 0; i
< event
.exception
.nb_params
; i
++)
874 dump_uint64( "", &event
.exception
.params
[i
] );
875 if (i
< event
.exception
.nb_params
) fputc( ',', stderr
);
877 fprintf( stderr
, "}}" );
879 case DbgLoadDllStateChange
:
880 fprintf( stderr
, "%s{load_dll,file=%04x", prefix
, event
.load_dll
.handle
);
881 dump_uint64( ",base=", &event
.load_dll
.base
);
882 fprintf( stderr
, ",offset=%d,size=%d",
883 event
.load_dll
.dbg_offset
, event
.load_dll
.dbg_size
);
884 dump_uint64( ",name=", &event
.load_dll
.name
);
885 fputc( '}', stderr
);
887 case DbgUnloadDllStateChange
:
888 fprintf( stderr
, "%s{unload_dll", prefix
);
889 dump_uint64( ",base=", &event
.unload_dll
.base
);
890 fputc( '}', stderr
);
893 fprintf( stderr
, "%s{code=??? (%d)}", prefix
, event
.code
);
899 /* dump a unicode string contained in a buffer; helper for dump_varargs_startup_info */
900 static data_size_t
dump_inline_unicode_string( const char *prefix
, data_size_t pos
, data_size_t len
, data_size_t total_size
)
902 fputs( prefix
, stderr
);
903 if (pos
>= total_size
) return pos
;
904 if (len
> total_size
- pos
) len
= total_size
- pos
;
905 dump_strW( (const WCHAR
*)cur_data
+ pos
/sizeof(WCHAR
), len
, stderr
, "\"\"" );
906 return pos
+ (len
/ sizeof(WCHAR
)) * sizeof(WCHAR
);
909 static void dump_varargs_startup_info( const char *prefix
, data_size_t size
)
912 data_size_t pos
= sizeof(info
);
914 memset( &info
, 0, sizeof(info
) );
915 memcpy( &info
, cur_data
, min( size
, sizeof(info
) ));
918 "%s{debug_flags=%x,console_flags=%x,console=%04x,hstdin=%04x,hstdout=%04x,hstderr=%04x,"
919 "x=%u,y=%u,xsize=%u,ysize=%u,xchars=%u,ychars=%u,attribute=%02x,flags=%x,show=%u",
920 prefix
, info
.debug_flags
, info
.console_flags
, info
.console
,
921 info
.hstdin
, info
.hstdout
, info
.hstderr
, info
.x
, info
.y
, info
.xsize
, info
.ysize
,
922 info
.xchars
, info
.ychars
, info
.attribute
, info
.flags
, info
.show
);
923 pos
= dump_inline_unicode_string( ",curdir=L\"", pos
, info
.curdir_len
, size
);
924 pos
= dump_inline_unicode_string( "\",dllpath=L\"", pos
, info
.dllpath_len
, size
);
925 pos
= dump_inline_unicode_string( "\",imagepath=L\"", pos
, info
.imagepath_len
, size
);
926 pos
= dump_inline_unicode_string( "\",cmdline=L\"", pos
, info
.cmdline_len
, size
);
927 pos
= dump_inline_unicode_string( "\",title=L\"", pos
, info
.title_len
, size
);
928 pos
= dump_inline_unicode_string( "\",desktop=L\"", pos
, info
.desktop_len
, size
);
929 pos
= dump_inline_unicode_string( "\",shellinfo=L\"", pos
, info
.shellinfo_len
, size
);
930 pos
= dump_inline_unicode_string( "\",runtime=L\"", pos
, info
.runtime_len
, size
);
931 fprintf( stderr
, "\"}" );
935 static void dump_varargs_rectangles( const char *prefix
, data_size_t size
)
937 const rectangle_t
*rect
= cur_data
;
938 data_size_t len
= size
/ sizeof(*rect
);
940 fprintf( stderr
,"%s{", prefix
);
943 dump_rectangle( "", rect
++ );
944 if (--len
) fputc( ',', stderr
);
946 fputc( '}', stderr
);
950 static void dump_varargs_cursor_positions( const char *prefix
, data_size_t size
)
952 const cursor_pos_t
*pos
= cur_data
;
953 data_size_t len
= size
/ sizeof(*pos
);
955 fprintf( stderr
, "%s{", prefix
);
958 fprintf( stderr
, "{x=%d,y=%d,time=%u", pos
->x
, pos
->y
, pos
->time
);
959 dump_uint64( ",info=", &pos
->info
);
960 fputc( '}', stderr
);
962 if (--len
) fputc( ',', stderr
);
964 fputc( '}', stderr
);
968 static void dump_varargs_message_data( const char *prefix
, data_size_t size
)
970 /* FIXME: dump the structured data */
971 dump_varargs_bytes( prefix
, size
);
974 static void dump_varargs_properties( const char *prefix
, data_size_t size
)
976 const property_data_t
*prop
= cur_data
;
977 data_size_t len
= size
/ sizeof(*prop
);
979 fprintf( stderr
,"%s{", prefix
);
982 fprintf( stderr
, "{atom=%04x,str=%d", prop
->atom
, prop
->string
);
983 dump_uint64( ",data=", &prop
->data
);
984 fputc( '}', stderr
);
986 if (--len
) fputc( ',', stderr
);
988 fputc( '}', stderr
);
992 static void dump_varargs_LUID_AND_ATTRIBUTES( const char *prefix
, data_size_t size
)
994 const LUID_AND_ATTRIBUTES
*lat
= cur_data
;
995 data_size_t len
= size
/ sizeof(*lat
);
997 fprintf( stderr
,"%s{", prefix
);
1000 fprintf( stderr
, "{luid=%08x%08x,attr=%x}",
1001 lat
->Luid
.HighPart
, lat
->Luid
.LowPart
, lat
->Attributes
);
1003 if (--len
) fputc( ',', stderr
);
1005 fputc( '}', stderr
);
1006 remove_data( size
);
1009 static void dump_inline_sid( const char *prefix
, const SID
*sid
, data_size_t size
)
1013 /* security check */
1014 if ((FIELD_OFFSET(SID
, SubAuthority
[0]) > size
) ||
1015 (FIELD_OFFSET(SID
, SubAuthority
[sid
->SubAuthorityCount
]) > size
))
1017 fprintf( stderr
, "<invalid sid>" );
1021 fprintf( stderr
,"%s{", prefix
);
1022 fprintf( stderr
, "S-%u-%u", sid
->Revision
, MAKELONG(
1023 MAKEWORD( sid
->IdentifierAuthority
.Value
[5],
1024 sid
->IdentifierAuthority
.Value
[4] ),
1025 MAKEWORD( sid
->IdentifierAuthority
.Value
[3],
1026 sid
->IdentifierAuthority
.Value
[2] ) ) );
1027 for (i
= 0; i
< sid
->SubAuthorityCount
; i
++)
1028 fprintf( stderr
, "-%u", sid
->SubAuthority
[i
] );
1029 fputc( '}', stderr
);
1032 static void dump_varargs_SID( const char *prefix
, data_size_t size
)
1034 const SID
*sid
= cur_data
;
1035 dump_inline_sid( prefix
, sid
, size
);
1036 remove_data( size
);
1039 static void dump_inline_acl( const char *prefix
, const ACL
*acl
, data_size_t size
)
1041 const ACE_HEADER
*ace
;
1044 fprintf( stderr
,"%s{", prefix
);
1047 if (size
< sizeof(ACL
))
1049 fprintf( stderr
, "<invalid acl>}" );
1052 size
-= sizeof(ACL
);
1053 ace
= (const ACE_HEADER
*)(acl
+ 1);
1054 for (i
= 0; i
< acl
->AceCount
; i
++)
1056 const SID
*sid
= NULL
;
1057 data_size_t sid_size
= 0;
1059 if (size
< sizeof(ACE_HEADER
) || size
< ace
->AceSize
) break;
1060 size
-= ace
->AceSize
;
1061 if (i
!= 0) fputc( ',', stderr
);
1062 fprintf( stderr
, "{AceType=" );
1063 switch (ace
->AceType
)
1065 case ACCESS_DENIED_ACE_TYPE
:
1066 sid
= (const SID
*)&((const ACCESS_DENIED_ACE
*)ace
)->SidStart
;
1067 sid_size
= ace
->AceSize
- FIELD_OFFSET(ACCESS_DENIED_ACE
, SidStart
);
1068 fprintf( stderr
, "ACCESS_DENIED_ACE_TYPE,Mask=%x",
1069 ((const ACCESS_DENIED_ACE
*)ace
)->Mask
);
1071 case ACCESS_ALLOWED_ACE_TYPE
:
1072 sid
= (const SID
*)&((const ACCESS_ALLOWED_ACE
*)ace
)->SidStart
;
1073 sid_size
= ace
->AceSize
- FIELD_OFFSET(ACCESS_ALLOWED_ACE
, SidStart
);
1074 fprintf( stderr
, "ACCESS_ALLOWED_ACE_TYPE,Mask=%x",
1075 ((const ACCESS_ALLOWED_ACE
*)ace
)->Mask
);
1077 case SYSTEM_AUDIT_ACE_TYPE
:
1078 sid
= (const SID
*)&((const SYSTEM_AUDIT_ACE
*)ace
)->SidStart
;
1079 sid_size
= ace
->AceSize
- FIELD_OFFSET(SYSTEM_AUDIT_ACE
, SidStart
);
1080 fprintf( stderr
, "SYSTEM_AUDIT_ACE_TYPE,Mask=%x",
1081 ((const SYSTEM_AUDIT_ACE
*)ace
)->Mask
);
1083 case SYSTEM_ALARM_ACE_TYPE
:
1084 sid
= (const SID
*)&((const SYSTEM_ALARM_ACE
*)ace
)->SidStart
;
1085 sid_size
= ace
->AceSize
- FIELD_OFFSET(SYSTEM_ALARM_ACE
, SidStart
);
1086 fprintf( stderr
, "SYSTEM_ALARM_ACE_TYPE,Mask=%x",
1087 ((const SYSTEM_ALARM_ACE
*)ace
)->Mask
);
1089 case SYSTEM_MANDATORY_LABEL_ACE_TYPE
:
1090 sid
= (const SID
*)&((const SYSTEM_MANDATORY_LABEL_ACE
*)ace
)->SidStart
;
1091 sid_size
= ace
->AceSize
- FIELD_OFFSET(SYSTEM_MANDATORY_LABEL_ACE
, SidStart
);
1092 fprintf( stderr
, "SYSTEM_MANDATORY_LABEL_ACE_TYPE,Mask=%x",
1093 ((const SYSTEM_MANDATORY_LABEL_ACE
*)ace
)->Mask
);
1096 fprintf( stderr
, "unknown<%d>", ace
->AceType
);
1099 fprintf( stderr
, ",AceFlags=%x", ace
->AceFlags
);
1101 dump_inline_sid( ",Sid=", sid
, sid_size
);
1102 ace
= (const ACE_HEADER
*)((const char *)ace
+ ace
->AceSize
);
1103 fputc( '}', stderr
);
1106 fputc( '}', stderr
);
1109 static void dump_varargs_ACL( const char *prefix
, data_size_t size
)
1111 const ACL
*acl
= cur_data
;
1112 dump_inline_acl( prefix
, acl
, size
);
1113 remove_data( size
);
1116 static void dump_inline_security_descriptor( const char *prefix
, const struct security_descriptor
*sd
, data_size_t size
)
1118 fprintf( stderr
,"%s{", prefix
);
1119 if (size
>= sizeof(struct security_descriptor
))
1121 size_t offset
= sizeof(struct security_descriptor
);
1122 fprintf( stderr
, "control=%08x", sd
->control
);
1123 if ((sd
->owner_len
> FIELD_OFFSET(SID
, SubAuthority
[255])) || (offset
+ sd
->owner_len
> size
))
1126 dump_inline_sid( ",owner=", (const SID
*)((const char *)sd
+ offset
), sd
->owner_len
);
1128 fprintf( stderr
, ",owner=<not present>" );
1129 offset
+= sd
->owner_len
;
1130 if ((sd
->group_len
> FIELD_OFFSET(SID
, SubAuthority
[255])) || (offset
+ sd
->group_len
> size
))
1133 dump_inline_sid( ",group=", (const SID
*)((const char *)sd
+ offset
), sd
->group_len
);
1135 fprintf( stderr
, ",group=<not present>" );
1136 offset
+= sd
->group_len
;
1137 if ((sd
->sacl_len
>= MAX_ACL_LEN
) || (offset
+ sd
->sacl_len
> size
))
1139 dump_inline_acl( ",sacl=", (const ACL
*)((const char *)sd
+ offset
), sd
->sacl_len
);
1140 offset
+= sd
->sacl_len
;
1141 if ((sd
->dacl_len
>= MAX_ACL_LEN
) || (offset
+ sd
->dacl_len
> size
))
1143 dump_inline_acl( ",dacl=", (const ACL
*)((const char *)sd
+ offset
), sd
->dacl_len
);
1144 offset
+= sd
->dacl_len
;
1146 fputc( '}', stderr
);
1149 static void dump_varargs_security_descriptor( const char *prefix
, data_size_t size
)
1151 const struct security_descriptor
*sd
= cur_data
;
1152 dump_inline_security_descriptor( prefix
, sd
, size
);
1153 remove_data( size
);
1156 static void dump_varargs_token_groups( const char *prefix
, data_size_t size
)
1158 const struct token_groups
*tg
= cur_data
;
1160 fprintf( stderr
,"%s{", prefix
);
1161 if (size
>= sizeof(struct token_groups
))
1163 size_t offset
= sizeof(*tg
);
1164 fprintf( stderr
, "count=%08x,", tg
->count
);
1165 if (tg
->count
* sizeof(unsigned int) <= size
)
1168 const unsigned int *attr
= (const unsigned int *)(tg
+ 1);
1170 offset
+= tg
->count
* sizeof(unsigned int);
1172 fputc( '[', stderr
);
1173 for (i
= 0; i
< tg
->count
; i
++)
1175 const SID
*sid
= (const SID
*)((const char *)cur_data
+ offset
);
1177 fputc( ',', stderr
);
1178 fputc( '{', stderr
);
1179 fprintf( stderr
, "attributes=%08x", attr
[i
] );
1180 dump_inline_sid( ",sid=", sid
, size
- offset
);
1181 if ((offset
+ FIELD_OFFSET(SID
, SubAuthority
[0]) > size
) ||
1182 (offset
+ FIELD_OFFSET(SID
, SubAuthority
[sid
->SubAuthorityCount
]) > size
))
1184 offset
+= FIELD_OFFSET(SID
, SubAuthority
[sid
->SubAuthorityCount
]);
1185 fputc( '}', stderr
);
1187 fputc( ']', stderr
);
1190 fputc( '}', stderr
);
1193 static void dump_varargs_process_info( const char *prefix
, data_size_t size
)
1195 data_size_t pos
= 0;
1198 fprintf( stderr
,"%s{", prefix
);
1200 while (size
- pos
>= sizeof(struct process_info
))
1202 const struct process_info
*process
;
1203 pos
= (pos
+ 7) & ~7;
1204 process
= (const struct process_info
*)((const char *)cur_data
+ pos
);
1205 if (size
- pos
< sizeof(*process
)) break;
1206 if (pos
) fputc( ',', stderr
);
1207 dump_timeout( "{start_time=", &process
->start_time
);
1208 fprintf( stderr
, ",thread_count=%u,priority=%d,pid=%04x,parent_pid=%04x,handle_count=%u,unix_pid=%d,",
1209 process
->thread_count
, process
->priority
, process
->pid
,
1210 process
->parent_pid
, process
->handle_count
, process
->unix_pid
);
1211 pos
+= sizeof(*process
);
1213 pos
= dump_inline_unicode_string( "name=L\"", pos
, process
->name_len
, size
);
1215 pos
= (pos
+ 7) & ~7;
1216 fprintf( stderr
, "\",threads={" );
1217 for (i
= 0; i
< process
->thread_count
; i
++)
1219 const struct thread_info
*thread
= (const struct thread_info
*)((const char *)cur_data
+ pos
);
1220 if (size
- pos
< sizeof(*thread
)) break;
1221 if (i
) fputc( ',', stderr
);
1222 dump_timeout( "{start_time=", &thread
->start_time
);
1223 fprintf( stderr
, ",tid=%04x,base_priority=%d,current_priority=%d,unix_tid=%d}",
1224 thread
->tid
, thread
->base_priority
, thread
->current_priority
, thread
->unix_tid
);
1225 pos
+= sizeof(*thread
);
1227 fprintf( stderr
, "}}" );
1229 fputc( '}', stderr
);
1230 remove_data( size
);
1233 static void dump_varargs_object_attributes( const char *prefix
, data_size_t size
)
1235 const struct object_attributes
*objattr
= cur_data
;
1237 fprintf( stderr
,"%s{", prefix
);
1242 if (size
< sizeof(*objattr
) ||
1243 (size
- sizeof(*objattr
) < objattr
->sd_len
) ||
1244 (size
- sizeof(*objattr
) - objattr
->sd_len
< objattr
->name_len
))
1246 fprintf( stderr
, "***invalid***}" );
1247 remove_data( size
);
1251 fprintf( stderr
, "rootdir=%04x,attributes=%08x", objattr
->rootdir
, objattr
->attributes
);
1252 dump_inline_security_descriptor( ",sd=", (const struct security_descriptor
*)(objattr
+ 1), objattr
->sd_len
);
1253 str
= (const WCHAR
*)objattr
+ (sizeof(*objattr
) + objattr
->sd_len
) / sizeof(WCHAR
);
1254 fprintf( stderr
, ",name=L\"" );
1255 dump_strW( str
, objattr
->name_len
, stderr
, "\"\"" );
1256 fputc( '\"', stderr
);
1257 remove_data( (sizeof(*objattr
) + (objattr
->sd_len
& ~1) + (objattr
->name_len
& ~1) + 3) & ~3 );
1259 fputc( '}', stderr
);
1262 static void dump_varargs_object_type_info( const char *prefix
, data_size_t size
)
1264 const struct object_type_info
*info
= cur_data
;
1266 fprintf( stderr
,"%s{", prefix
);
1269 if (size
< sizeof(*info
) || (size
- sizeof(*info
) < info
->name_len
))
1271 fprintf( stderr
, "***invalid***}" );
1272 remove_data( size
);
1276 fprintf( stderr
, "index=%u,obj_count=%u,handle_count=%u,obj_max=%u,handle_max=%u,valid=%08x",
1277 info
->index
,info
->obj_count
, info
->handle_count
, info
->obj_max
, info
->handle_max
,
1278 info
->valid_access
);
1279 dump_generic_map( ",access=", &info
->mapping
);
1280 fprintf( stderr
, ",name=L\"" );
1281 dump_strW( (const WCHAR
*)(info
+ 1), info
->name_len
, stderr
, "\"\"" );
1282 fputc( '\"', stderr
);
1283 remove_data( min( size
, sizeof(*info
) + ((info
->name_len
+ 2) & ~3 )));
1285 fputc( '}', stderr
);
1288 static void dump_varargs_object_types_info( const char *prefix
, data_size_t size
)
1290 fprintf( stderr
,"%s{", prefix
);
1291 while (cur_size
) dump_varargs_object_type_info( ",", cur_size
);
1292 fputc( '}', stderr
);
1295 static void dump_varargs_filesystem_event( const char *prefix
, data_size_t size
)
1297 static const char * const actions
[] = {
1309 fprintf( stderr
,"%s{", prefix
);
1312 const struct filesystem_event
*event
= cur_data
;
1313 data_size_t len
= (offsetof( struct filesystem_event
, name
[event
->len
] ) + sizeof(int)-1)
1314 / sizeof(int) * sizeof(int);
1315 if (size
< len
) break;
1316 if (event
->action
< ARRAY_SIZE( actions
) && actions
[event
->action
])
1317 fprintf( stderr
, "{action=%s", actions
[event
->action
] );
1319 fprintf( stderr
, "{action=%u", event
->action
);
1320 fprintf( stderr
, ",name=\"%.*s\"}", event
->len
, event
->name
);
1323 if (size
)fputc( ',', stderr
);
1325 fputc( '}', stderr
);
1328 static void dump_varargs_pe_image_info( const char *prefix
, data_size_t size
)
1330 pe_image_info_t info
;
1334 fprintf( stderr
, "%s{}", prefix
);
1337 memset( &info
, 0, sizeof(info
) );
1338 memcpy( &info
, cur_data
, min( size
, sizeof(info
) ));
1340 fprintf( stderr
, "%s{", prefix
);
1341 dump_uint64( "base=", &info
.base
);
1342 dump_uint64( ",entry_point=", &info
.entry_point
);
1343 dump_uint64( ",map_size=", &info
.map_size
);
1344 dump_uint64( ",stack_size=", &info
.stack_size
);
1345 dump_uint64( ",stack_commit=", &info
.stack_commit
);
1346 fprintf( stderr
, ",zerobits=%08x,subsystem=%08x,subsystem_minor=%04x,subsystem_major=%04x"
1347 ",osversion_major=%04x,osversion_minor=%04x,image_charact=%04x,dll_charact=%04x,machine=%04x"
1348 ",contains_code=%u,image_flags=%02x"
1349 ",loader_flags=%08x,header_size=%08x,file_size=%08x,checksum=%08x}",
1350 info
.zerobits
, info
.subsystem
, info
.subsystem_minor
, info
.subsystem_major
,
1351 info
.osversion_major
, info
.osversion_minor
, info
.image_charact
, info
.dll_charact
,
1352 info
.machine
, info
.contains_code
, info
.image_flags
, info
.loader_flags
,
1353 info
.header_size
, info
.file_size
, info
.checksum
);
1354 remove_data( min( size
, sizeof(info
) ));
1357 static void dump_varargs_rawinput_devices(const char *prefix
, data_size_t size
)
1359 const struct rawinput_device
*device
;
1361 fprintf( stderr
, "%s{", prefix
);
1362 while (size
>= sizeof(*device
))
1365 fprintf( stderr
, "{usage_page=%04x,usage=%04x,flags=%08x,target=%08x}",
1366 device
->usage_page
, device
->usage
, device
->flags
, device
->target
);
1367 size
-= sizeof(*device
);
1368 remove_data( sizeof(*device
) );
1369 if (size
) fputc( ',', stderr
);
1371 fputc( '}', stderr
);
1374 static void dump_varargs_handle_infos( const char *prefix
, data_size_t size
)
1376 const struct handle_info
*handle
;
1378 fprintf( stderr
, "%s{", prefix
);
1379 while (size
>= sizeof(*handle
))
1382 fprintf( stderr
, "{owner=%04x,handle=%04x,access=%08x,attributes=%08x,type=%u}",
1383 handle
->owner
, handle
->handle
, handle
->access
, handle
->attributes
, handle
->type
);
1384 size
-= sizeof(*handle
);
1385 remove_data( sizeof(*handle
) );
1386 if (size
) fputc( ',', stderr
);
1388 fputc( '}', stderr
);
1391 static void dump_varargs_poll_socket_input( const char *prefix
, data_size_t size
)
1393 const struct poll_socket_input
*input
;
1395 fprintf( stderr
, "%s{", prefix
);
1396 while (size
>= sizeof(*input
))
1399 fprintf( stderr
, "{socket=%04x,flags=%08x}", input
->socket
, input
->flags
);
1400 size
-= sizeof(*input
);
1401 remove_data( sizeof(*input
) );
1402 if (size
) fputc( ',', stderr
);
1404 fputc( '}', stderr
);
1407 static void dump_varargs_poll_socket_output( const char *prefix
, data_size_t size
)
1409 const struct poll_socket_output
*output
;
1411 fprintf( stderr
, "%s{", prefix
);
1412 while (size
>= sizeof(*output
))
1415 fprintf( stderr
, "{flags=%08x,status=%s}", output
->flags
, get_status_name( output
->status
) );
1416 size
-= sizeof(*output
);
1417 remove_data( sizeof(*output
) );
1418 if (size
) fputc( ',', stderr
);
1420 fputc( '}', stderr
);
1423 typedef void (*dump_func
)( const void *req
);
1425 /* Everything below this line is generated automatically by tools/make_requests */
1426 /* ### make_requests begin ### */
1428 static void dump_new_process_request( const struct new_process_request
*req
)
1430 fprintf( stderr
, " token=%04x", req
->token
);
1431 fprintf( stderr
, ", debug=%04x", req
->debug
);
1432 fprintf( stderr
, ", parent_process=%04x", req
->parent_process
);
1433 fprintf( stderr
, ", flags=%08x", req
->flags
);
1434 fprintf( stderr
, ", socket_fd=%d", req
->socket_fd
);
1435 fprintf( stderr
, ", access=%08x", req
->access
);
1436 fprintf( stderr
, ", machine=%04x", req
->machine
);
1437 fprintf( stderr
, ", info_size=%u", req
->info_size
);
1438 fprintf( stderr
, ", handles_size=%u", req
->handles_size
);
1439 fprintf( stderr
, ", jobs_size=%u", req
->jobs_size
);
1440 dump_varargs_object_attributes( ", objattr=", cur_size
);
1441 dump_varargs_uints( ", handles=", min(cur_size
,req
->handles_size
) );
1442 dump_varargs_uints( ", jobs=", min(cur_size
,req
->jobs_size
) );
1443 dump_varargs_startup_info( ", info=", min(cur_size
,req
->info_size
) );
1444 dump_varargs_unicode_str( ", env=", cur_size
);
1447 static void dump_new_process_reply( const struct new_process_reply
*req
)
1449 fprintf( stderr
, " info=%04x", req
->info
);
1450 fprintf( stderr
, ", pid=%04x", req
->pid
);
1451 fprintf( stderr
, ", handle=%04x", req
->handle
);
1454 static void dump_get_new_process_info_request( const struct get_new_process_info_request
*req
)
1456 fprintf( stderr
, " info=%04x", req
->info
);
1459 static void dump_get_new_process_info_reply( const struct get_new_process_info_reply
*req
)
1461 fprintf( stderr
, " success=%d", req
->success
);
1462 fprintf( stderr
, ", exit_code=%d", req
->exit_code
);
1465 static void dump_new_thread_request( const struct new_thread_request
*req
)
1467 fprintf( stderr
, " process=%04x", req
->process
);
1468 fprintf( stderr
, ", access=%08x", req
->access
);
1469 fprintf( stderr
, ", suspend=%d", req
->suspend
);
1470 fprintf( stderr
, ", request_fd=%d", req
->request_fd
);
1471 dump_varargs_object_attributes( ", objattr=", cur_size
);
1474 static void dump_new_thread_reply( const struct new_thread_reply
*req
)
1476 fprintf( stderr
, " tid=%04x", req
->tid
);
1477 fprintf( stderr
, ", handle=%04x", req
->handle
);
1480 static void dump_get_startup_info_request( const struct get_startup_info_request
*req
)
1484 static void dump_get_startup_info_reply( const struct get_startup_info_reply
*req
)
1486 fprintf( stderr
, " info_size=%u", req
->info_size
);
1487 dump_varargs_startup_info( ", info=", min(cur_size
,req
->info_size
) );
1488 dump_varargs_unicode_str( ", env=", cur_size
);
1491 static void dump_init_process_done_request( const struct init_process_done_request
*req
)
1493 dump_uint64( " teb=", &req
->teb
);
1494 dump_uint64( ", peb=", &req
->peb
);
1495 dump_uint64( ", ldt_copy=", &req
->ldt_copy
);
1498 static void dump_init_process_done_reply( const struct init_process_done_reply
*req
)
1500 dump_uint64( " entry=", &req
->entry
);
1501 fprintf( stderr
, ", suspend=%d", req
->suspend
);
1504 static void dump_init_first_thread_request( const struct init_first_thread_request
*req
)
1506 fprintf( stderr
, " unix_pid=%d", req
->unix_pid
);
1507 fprintf( stderr
, ", unix_tid=%d", req
->unix_tid
);
1508 fprintf( stderr
, ", debug_level=%d", req
->debug_level
);
1509 fprintf( stderr
, ", reply_fd=%d", req
->reply_fd
);
1510 fprintf( stderr
, ", wait_fd=%d", req
->wait_fd
);
1513 static void dump_init_first_thread_reply( const struct init_first_thread_reply
*req
)
1515 fprintf( stderr
, " pid=%04x", req
->pid
);
1516 fprintf( stderr
, ", tid=%04x", req
->tid
);
1517 dump_timeout( ", server_start=", &req
->server_start
);
1518 fprintf( stderr
, ", info_size=%u", req
->info_size
);
1519 dump_varargs_ushorts( ", machines=", cur_size
);
1522 static void dump_init_thread_request( const struct init_thread_request
*req
)
1524 fprintf( stderr
, " unix_tid=%d", req
->unix_tid
);
1525 fprintf( stderr
, ", reply_fd=%d", req
->reply_fd
);
1526 fprintf( stderr
, ", wait_fd=%d", req
->wait_fd
);
1527 dump_uint64( ", teb=", &req
->teb
);
1528 dump_uint64( ", entry=", &req
->entry
);
1531 static void dump_init_thread_reply( const struct init_thread_reply
*req
)
1533 fprintf( stderr
, " pid=%04x", req
->pid
);
1534 fprintf( stderr
, ", tid=%04x", req
->tid
);
1535 fprintf( stderr
, ", suspend=%d", req
->suspend
);
1538 static void dump_terminate_process_request( const struct terminate_process_request
*req
)
1540 fprintf( stderr
, " handle=%04x", req
->handle
);
1541 fprintf( stderr
, ", exit_code=%d", req
->exit_code
);
1544 static void dump_terminate_process_reply( const struct terminate_process_reply
*req
)
1546 fprintf( stderr
, " self=%d", req
->self
);
1549 static void dump_terminate_thread_request( const struct terminate_thread_request
*req
)
1551 fprintf( stderr
, " handle=%04x", req
->handle
);
1552 fprintf( stderr
, ", exit_code=%d", req
->exit_code
);
1555 static void dump_terminate_thread_reply( const struct terminate_thread_reply
*req
)
1557 fprintf( stderr
, " self=%d", req
->self
);
1560 static void dump_get_process_info_request( const struct get_process_info_request
*req
)
1562 fprintf( stderr
, " handle=%04x", req
->handle
);
1565 static void dump_get_process_info_reply( const struct get_process_info_reply
*req
)
1567 fprintf( stderr
, " pid=%04x", req
->pid
);
1568 fprintf( stderr
, ", ppid=%04x", req
->ppid
);
1569 dump_uint64( ", affinity=", &req
->affinity
);
1570 dump_uint64( ", peb=", &req
->peb
);
1571 dump_timeout( ", start_time=", &req
->start_time
);
1572 dump_timeout( ", end_time=", &req
->end_time
);
1573 fprintf( stderr
, ", exit_code=%d", req
->exit_code
);
1574 fprintf( stderr
, ", priority=%d", req
->priority
);
1575 fprintf( stderr
, ", machine=%04x", req
->machine
);
1576 dump_varargs_pe_image_info( ", image=", cur_size
);
1579 static void dump_get_process_debug_info_request( const struct get_process_debug_info_request
*req
)
1581 fprintf( stderr
, " handle=%04x", req
->handle
);
1584 static void dump_get_process_debug_info_reply( const struct get_process_debug_info_reply
*req
)
1586 fprintf( stderr
, " debug=%04x", req
->debug
);
1587 fprintf( stderr
, ", debug_children=%d", req
->debug_children
);
1588 dump_varargs_pe_image_info( ", image=", cur_size
);
1591 static void dump_get_process_image_name_request( const struct get_process_image_name_request
*req
)
1593 fprintf( stderr
, " handle=%04x", req
->handle
);
1594 fprintf( stderr
, ", win32=%d", req
->win32
);
1597 static void dump_get_process_image_name_reply( const struct get_process_image_name_reply
*req
)
1599 fprintf( stderr
, " len=%u", req
->len
);
1600 dump_varargs_unicode_str( ", name=", cur_size
);
1603 static void dump_get_process_vm_counters_request( const struct get_process_vm_counters_request
*req
)
1605 fprintf( stderr
, " handle=%04x", req
->handle
);
1608 static void dump_get_process_vm_counters_reply( const struct get_process_vm_counters_reply
*req
)
1610 dump_uint64( " peak_virtual_size=", &req
->peak_virtual_size
);
1611 dump_uint64( ", virtual_size=", &req
->virtual_size
);
1612 dump_uint64( ", peak_working_set_size=", &req
->peak_working_set_size
);
1613 dump_uint64( ", working_set_size=", &req
->working_set_size
);
1614 dump_uint64( ", pagefile_usage=", &req
->pagefile_usage
);
1615 dump_uint64( ", peak_pagefile_usage=", &req
->peak_pagefile_usage
);
1618 static void dump_set_process_info_request( const struct set_process_info_request
*req
)
1620 fprintf( stderr
, " handle=%04x", req
->handle
);
1621 fprintf( stderr
, ", mask=%d", req
->mask
);
1622 fprintf( stderr
, ", priority=%d", req
->priority
);
1623 dump_uint64( ", affinity=", &req
->affinity
);
1626 static void dump_get_thread_info_request( const struct get_thread_info_request
*req
)
1628 fprintf( stderr
, " handle=%04x", req
->handle
);
1629 fprintf( stderr
, ", access=%08x", req
->access
);
1632 static void dump_get_thread_info_reply( const struct get_thread_info_reply
*req
)
1634 fprintf( stderr
, " pid=%04x", req
->pid
);
1635 fprintf( stderr
, ", tid=%04x", req
->tid
);
1636 dump_uint64( ", teb=", &req
->teb
);
1637 dump_uint64( ", entry_point=", &req
->entry_point
);
1638 dump_uint64( ", affinity=", &req
->affinity
);
1639 fprintf( stderr
, ", exit_code=%d", req
->exit_code
);
1640 fprintf( stderr
, ", priority=%d", req
->priority
);
1641 fprintf( stderr
, ", last=%d", req
->last
);
1642 fprintf( stderr
, ", suspend_count=%d", req
->suspend_count
);
1643 fprintf( stderr
, ", dbg_hidden=%d", req
->dbg_hidden
);
1644 fprintf( stderr
, ", desc_len=%u", req
->desc_len
);
1645 dump_varargs_unicode_str( ", desc=", cur_size
);
1648 static void dump_get_thread_times_request( const struct get_thread_times_request
*req
)
1650 fprintf( stderr
, " handle=%04x", req
->handle
);
1653 static void dump_get_thread_times_reply( const struct get_thread_times_reply
*req
)
1655 dump_timeout( " creation_time=", &req
->creation_time
);
1656 dump_timeout( ", exit_time=", &req
->exit_time
);
1657 fprintf( stderr
, ", unix_pid=%d", req
->unix_pid
);
1658 fprintf( stderr
, ", unix_tid=%d", req
->unix_tid
);
1661 static void dump_set_thread_info_request( const struct set_thread_info_request
*req
)
1663 fprintf( stderr
, " handle=%04x", req
->handle
);
1664 fprintf( stderr
, ", mask=%d", req
->mask
);
1665 fprintf( stderr
, ", priority=%d", req
->priority
);
1666 dump_uint64( ", affinity=", &req
->affinity
);
1667 dump_uint64( ", entry_point=", &req
->entry_point
);
1668 fprintf( stderr
, ", token=%04x", req
->token
);
1669 dump_varargs_unicode_str( ", desc=", cur_size
);
1672 static void dump_suspend_thread_request( const struct suspend_thread_request
*req
)
1674 fprintf( stderr
, " handle=%04x", req
->handle
);
1677 static void dump_suspend_thread_reply( const struct suspend_thread_reply
*req
)
1679 fprintf( stderr
, " count=%d", req
->count
);
1682 static void dump_resume_thread_request( const struct resume_thread_request
*req
)
1684 fprintf( stderr
, " handle=%04x", req
->handle
);
1687 static void dump_resume_thread_reply( const struct resume_thread_reply
*req
)
1689 fprintf( stderr
, " count=%d", req
->count
);
1692 static void dump_queue_apc_request( const struct queue_apc_request
*req
)
1694 fprintf( stderr
, " handle=%04x", req
->handle
);
1695 dump_apc_call( ", call=", &req
->call
);
1698 static void dump_queue_apc_reply( const struct queue_apc_reply
*req
)
1700 fprintf( stderr
, " handle=%04x", req
->handle
);
1701 fprintf( stderr
, ", self=%d", req
->self
);
1704 static void dump_get_apc_result_request( const struct get_apc_result_request
*req
)
1706 fprintf( stderr
, " handle=%04x", req
->handle
);
1709 static void dump_get_apc_result_reply( const struct get_apc_result_reply
*req
)
1711 dump_apc_result( " result=", &req
->result
);
1714 static void dump_close_handle_request( const struct close_handle_request
*req
)
1716 fprintf( stderr
, " handle=%04x", req
->handle
);
1719 static void dump_set_handle_info_request( const struct set_handle_info_request
*req
)
1721 fprintf( stderr
, " handle=%04x", req
->handle
);
1722 fprintf( stderr
, ", flags=%d", req
->flags
);
1723 fprintf( stderr
, ", mask=%d", req
->mask
);
1726 static void dump_set_handle_info_reply( const struct set_handle_info_reply
*req
)
1728 fprintf( stderr
, " old_flags=%d", req
->old_flags
);
1731 static void dump_dup_handle_request( const struct dup_handle_request
*req
)
1733 fprintf( stderr
, " src_process=%04x", req
->src_process
);
1734 fprintf( stderr
, ", src_handle=%04x", req
->src_handle
);
1735 fprintf( stderr
, ", dst_process=%04x", req
->dst_process
);
1736 fprintf( stderr
, ", access=%08x", req
->access
);
1737 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1738 fprintf( stderr
, ", options=%08x", req
->options
);
1741 static void dump_dup_handle_reply( const struct dup_handle_reply
*req
)
1743 fprintf( stderr
, " handle=%04x", req
->handle
);
1746 static void dump_make_temporary_request( const struct make_temporary_request
*req
)
1748 fprintf( stderr
, " handle=%04x", req
->handle
);
1751 static void dump_open_process_request( const struct open_process_request
*req
)
1753 fprintf( stderr
, " pid=%04x", req
->pid
);
1754 fprintf( stderr
, ", access=%08x", req
->access
);
1755 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1758 static void dump_open_process_reply( const struct open_process_reply
*req
)
1760 fprintf( stderr
, " handle=%04x", req
->handle
);
1763 static void dump_open_thread_request( const struct open_thread_request
*req
)
1765 fprintf( stderr
, " tid=%04x", req
->tid
);
1766 fprintf( stderr
, ", access=%08x", req
->access
);
1767 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1770 static void dump_open_thread_reply( const struct open_thread_reply
*req
)
1772 fprintf( stderr
, " handle=%04x", req
->handle
);
1775 static void dump_select_request( const struct select_request
*req
)
1777 fprintf( stderr
, " flags=%d", req
->flags
);
1778 dump_uint64( ", cookie=", &req
->cookie
);
1779 dump_abstime( ", timeout=", &req
->timeout
);
1780 fprintf( stderr
, ", size=%u", req
->size
);
1781 fprintf( stderr
, ", prev_apc=%04x", req
->prev_apc
);
1782 dump_varargs_apc_result( ", result=", cur_size
);
1783 dump_varargs_select_op( ", data=", min(cur_size
,req
->size
) );
1784 dump_varargs_context( ", context=", cur_size
);
1787 static void dump_select_reply( const struct select_reply
*req
)
1789 dump_apc_call( " call=", &req
->call
);
1790 fprintf( stderr
, ", apc_handle=%04x", req
->apc_handle
);
1791 dump_varargs_context( ", context=", cur_size
);
1794 static void dump_create_event_request( const struct create_event_request
*req
)
1796 fprintf( stderr
, " access=%08x", req
->access
);
1797 fprintf( stderr
, ", manual_reset=%d", req
->manual_reset
);
1798 fprintf( stderr
, ", initial_state=%d", req
->initial_state
);
1799 dump_varargs_object_attributes( ", objattr=", cur_size
);
1802 static void dump_create_event_reply( const struct create_event_reply
*req
)
1804 fprintf( stderr
, " handle=%04x", req
->handle
);
1807 static void dump_event_op_request( const struct event_op_request
*req
)
1809 fprintf( stderr
, " handle=%04x", req
->handle
);
1810 fprintf( stderr
, ", op=%d", req
->op
);
1813 static void dump_event_op_reply( const struct event_op_reply
*req
)
1815 fprintf( stderr
, " state=%d", req
->state
);
1818 static void dump_query_event_request( const struct query_event_request
*req
)
1820 fprintf( stderr
, " handle=%04x", req
->handle
);
1823 static void dump_query_event_reply( const struct query_event_reply
*req
)
1825 fprintf( stderr
, " manual_reset=%d", req
->manual_reset
);
1826 fprintf( stderr
, ", state=%d", req
->state
);
1829 static void dump_open_event_request( const struct open_event_request
*req
)
1831 fprintf( stderr
, " access=%08x", req
->access
);
1832 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1833 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
1834 dump_varargs_unicode_str( ", name=", cur_size
);
1837 static void dump_open_event_reply( const struct open_event_reply
*req
)
1839 fprintf( stderr
, " handle=%04x", req
->handle
);
1842 static void dump_create_keyed_event_request( const struct create_keyed_event_request
*req
)
1844 fprintf( stderr
, " access=%08x", req
->access
);
1845 dump_varargs_object_attributes( ", objattr=", cur_size
);
1848 static void dump_create_keyed_event_reply( const struct create_keyed_event_reply
*req
)
1850 fprintf( stderr
, " handle=%04x", req
->handle
);
1853 static void dump_open_keyed_event_request( const struct open_keyed_event_request
*req
)
1855 fprintf( stderr
, " access=%08x", req
->access
);
1856 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1857 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
1858 dump_varargs_unicode_str( ", name=", cur_size
);
1861 static void dump_open_keyed_event_reply( const struct open_keyed_event_reply
*req
)
1863 fprintf( stderr
, " handle=%04x", req
->handle
);
1866 static void dump_create_mutex_request( const struct create_mutex_request
*req
)
1868 fprintf( stderr
, " access=%08x", req
->access
);
1869 fprintf( stderr
, ", owned=%d", req
->owned
);
1870 dump_varargs_object_attributes( ", objattr=", cur_size
);
1873 static void dump_create_mutex_reply( const struct create_mutex_reply
*req
)
1875 fprintf( stderr
, " handle=%04x", req
->handle
);
1878 static void dump_release_mutex_request( const struct release_mutex_request
*req
)
1880 fprintf( stderr
, " handle=%04x", req
->handle
);
1883 static void dump_release_mutex_reply( const struct release_mutex_reply
*req
)
1885 fprintf( stderr
, " prev_count=%08x", req
->prev_count
);
1888 static void dump_open_mutex_request( const struct open_mutex_request
*req
)
1890 fprintf( stderr
, " access=%08x", req
->access
);
1891 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1892 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
1893 dump_varargs_unicode_str( ", name=", cur_size
);
1896 static void dump_open_mutex_reply( const struct open_mutex_reply
*req
)
1898 fprintf( stderr
, " handle=%04x", req
->handle
);
1901 static void dump_query_mutex_request( const struct query_mutex_request
*req
)
1903 fprintf( stderr
, " handle=%04x", req
->handle
);
1906 static void dump_query_mutex_reply( const struct query_mutex_reply
*req
)
1908 fprintf( stderr
, " count=%08x", req
->count
);
1909 fprintf( stderr
, ", owned=%d", req
->owned
);
1910 fprintf( stderr
, ", abandoned=%d", req
->abandoned
);
1913 static void dump_create_semaphore_request( const struct create_semaphore_request
*req
)
1915 fprintf( stderr
, " access=%08x", req
->access
);
1916 fprintf( stderr
, ", initial=%08x", req
->initial
);
1917 fprintf( stderr
, ", max=%08x", req
->max
);
1918 dump_varargs_object_attributes( ", objattr=", cur_size
);
1921 static void dump_create_semaphore_reply( const struct create_semaphore_reply
*req
)
1923 fprintf( stderr
, " handle=%04x", req
->handle
);
1926 static void dump_release_semaphore_request( const struct release_semaphore_request
*req
)
1928 fprintf( stderr
, " handle=%04x", req
->handle
);
1929 fprintf( stderr
, ", count=%08x", req
->count
);
1932 static void dump_release_semaphore_reply( const struct release_semaphore_reply
*req
)
1934 fprintf( stderr
, " prev_count=%08x", req
->prev_count
);
1937 static void dump_query_semaphore_request( const struct query_semaphore_request
*req
)
1939 fprintf( stderr
, " handle=%04x", req
->handle
);
1942 static void dump_query_semaphore_reply( const struct query_semaphore_reply
*req
)
1944 fprintf( stderr
, " current=%08x", req
->current
);
1945 fprintf( stderr
, ", max=%08x", req
->max
);
1948 static void dump_open_semaphore_request( const struct open_semaphore_request
*req
)
1950 fprintf( stderr
, " access=%08x", req
->access
);
1951 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1952 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
1953 dump_varargs_unicode_str( ", name=", cur_size
);
1956 static void dump_open_semaphore_reply( const struct open_semaphore_reply
*req
)
1958 fprintf( stderr
, " handle=%04x", req
->handle
);
1961 static void dump_create_file_request( const struct create_file_request
*req
)
1963 fprintf( stderr
, " access=%08x", req
->access
);
1964 fprintf( stderr
, ", sharing=%08x", req
->sharing
);
1965 fprintf( stderr
, ", create=%d", req
->create
);
1966 fprintf( stderr
, ", options=%08x", req
->options
);
1967 fprintf( stderr
, ", attrs=%08x", req
->attrs
);
1968 dump_varargs_object_attributes( ", objattr=", cur_size
);
1969 dump_varargs_string( ", filename=", cur_size
);
1972 static void dump_create_file_reply( const struct create_file_reply
*req
)
1974 fprintf( stderr
, " handle=%04x", req
->handle
);
1977 static void dump_open_file_object_request( const struct open_file_object_request
*req
)
1979 fprintf( stderr
, " access=%08x", req
->access
);
1980 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1981 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
1982 fprintf( stderr
, ", sharing=%08x", req
->sharing
);
1983 fprintf( stderr
, ", options=%08x", req
->options
);
1984 dump_varargs_unicode_str( ", filename=", cur_size
);
1987 static void dump_open_file_object_reply( const struct open_file_object_reply
*req
)
1989 fprintf( stderr
, " handle=%04x", req
->handle
);
1992 static void dump_alloc_file_handle_request( const struct alloc_file_handle_request
*req
)
1994 fprintf( stderr
, " access=%08x", req
->access
);
1995 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1996 fprintf( stderr
, ", fd=%d", req
->fd
);
1999 static void dump_alloc_file_handle_reply( const struct alloc_file_handle_reply
*req
)
2001 fprintf( stderr
, " handle=%04x", req
->handle
);
2004 static void dump_get_handle_unix_name_request( const struct get_handle_unix_name_request
*req
)
2006 fprintf( stderr
, " handle=%04x", req
->handle
);
2009 static void dump_get_handle_unix_name_reply( const struct get_handle_unix_name_reply
*req
)
2011 fprintf( stderr
, " name_len=%u", req
->name_len
);
2012 dump_varargs_string( ", name=", cur_size
);
2015 static void dump_get_handle_fd_request( const struct get_handle_fd_request
*req
)
2017 fprintf( stderr
, " handle=%04x", req
->handle
);
2020 static void dump_get_handle_fd_reply( const struct get_handle_fd_reply
*req
)
2022 fprintf( stderr
, " type=%d", req
->type
);
2023 fprintf( stderr
, ", cacheable=%d", req
->cacheable
);
2024 fprintf( stderr
, ", access=%08x", req
->access
);
2025 fprintf( stderr
, ", options=%08x", req
->options
);
2028 static void dump_get_directory_cache_entry_request( const struct get_directory_cache_entry_request
*req
)
2030 fprintf( stderr
, " handle=%04x", req
->handle
);
2033 static void dump_get_directory_cache_entry_reply( const struct get_directory_cache_entry_reply
*req
)
2035 fprintf( stderr
, " entry=%d", req
->entry
);
2036 dump_varargs_ints( ", free=", cur_size
);
2039 static void dump_flush_request( const struct flush_request
*req
)
2041 dump_async_data( " async=", &req
->async
);
2044 static void dump_flush_reply( const struct flush_reply
*req
)
2046 fprintf( stderr
, " event=%04x", req
->event
);
2049 static void dump_get_file_info_request( const struct get_file_info_request
*req
)
2051 fprintf( stderr
, " handle=%04x", req
->handle
);
2052 fprintf( stderr
, ", info_class=%08x", req
->info_class
);
2055 static void dump_get_file_info_reply( const struct get_file_info_reply
*req
)
2057 dump_varargs_bytes( " data=", cur_size
);
2060 static void dump_get_volume_info_request( const struct get_volume_info_request
*req
)
2062 fprintf( stderr
, " handle=%04x", req
->handle
);
2063 dump_async_data( ", async=", &req
->async
);
2064 fprintf( stderr
, ", info_class=%08x", req
->info_class
);
2067 static void dump_get_volume_info_reply( const struct get_volume_info_reply
*req
)
2069 fprintf( stderr
, " wait=%04x", req
->wait
);
2070 dump_varargs_bytes( ", data=", cur_size
);
2073 static void dump_lock_file_request( const struct lock_file_request
*req
)
2075 fprintf( stderr
, " handle=%04x", req
->handle
);
2076 dump_uint64( ", offset=", &req
->offset
);
2077 dump_uint64( ", count=", &req
->count
);
2078 fprintf( stderr
, ", shared=%d", req
->shared
);
2079 fprintf( stderr
, ", wait=%d", req
->wait
);
2082 static void dump_lock_file_reply( const struct lock_file_reply
*req
)
2084 fprintf( stderr
, " handle=%04x", req
->handle
);
2085 fprintf( stderr
, ", overlapped=%d", req
->overlapped
);
2088 static void dump_unlock_file_request( const struct unlock_file_request
*req
)
2090 fprintf( stderr
, " handle=%04x", req
->handle
);
2091 dump_uint64( ", offset=", &req
->offset
);
2092 dump_uint64( ", count=", &req
->count
);
2095 static void dump_recv_socket_request( const struct recv_socket_request
*req
)
2097 fprintf( stderr
, " oob=%d", req
->oob
);
2098 dump_async_data( ", async=", &req
->async
);
2099 fprintf( stderr
, ", status=%08x", req
->status
);
2100 fprintf( stderr
, ", total=%08x", req
->total
);
2103 static void dump_recv_socket_reply( const struct recv_socket_reply
*req
)
2105 fprintf( stderr
, " wait=%04x", req
->wait
);
2106 fprintf( stderr
, ", options=%08x", req
->options
);
2109 static void dump_poll_socket_request( const struct poll_socket_request
*req
)
2111 dump_async_data( " async=", &req
->async
);
2112 dump_timeout( ", timeout=", &req
->timeout
);
2113 dump_varargs_poll_socket_input( ", sockets=", cur_size
);
2116 static void dump_poll_socket_reply( const struct poll_socket_reply
*req
)
2118 fprintf( stderr
, " wait=%04x", req
->wait
);
2119 fprintf( stderr
, ", options=%08x", req
->options
);
2120 dump_varargs_poll_socket_output( ", sockets=", cur_size
);
2123 static void dump_send_socket_request( const struct send_socket_request
*req
)
2125 dump_async_data( " async=", &req
->async
);
2126 fprintf( stderr
, ", status=%08x", req
->status
);
2127 fprintf( stderr
, ", total=%08x", req
->total
);
2130 static void dump_send_socket_reply( const struct send_socket_reply
*req
)
2132 fprintf( stderr
, " wait=%04x", req
->wait
);
2133 fprintf( stderr
, ", options=%08x", req
->options
);
2136 static void dump_get_next_console_request_request( const struct get_next_console_request_request
*req
)
2138 fprintf( stderr
, " handle=%04x", req
->handle
);
2139 fprintf( stderr
, ", signal=%d", req
->signal
);
2140 fprintf( stderr
, ", read=%d", req
->read
);
2141 fprintf( stderr
, ", status=%08x", req
->status
);
2142 dump_varargs_bytes( ", out_data=", cur_size
);
2145 static void dump_get_next_console_request_reply( const struct get_next_console_request_reply
*req
)
2147 fprintf( stderr
, " code=%08x", req
->code
);
2148 fprintf( stderr
, ", output=%08x", req
->output
);
2149 fprintf( stderr
, ", out_size=%u", req
->out_size
);
2150 dump_varargs_bytes( ", in_data=", cur_size
);
2153 static void dump_read_directory_changes_request( const struct read_directory_changes_request
*req
)
2155 fprintf( stderr
, " filter=%08x", req
->filter
);
2156 fprintf( stderr
, ", subtree=%d", req
->subtree
);
2157 fprintf( stderr
, ", want_data=%d", req
->want_data
);
2158 dump_async_data( ", async=", &req
->async
);
2161 static void dump_read_change_request( const struct read_change_request
*req
)
2163 fprintf( stderr
, " handle=%04x", req
->handle
);
2166 static void dump_read_change_reply( const struct read_change_reply
*req
)
2168 dump_varargs_filesystem_event( " events=", cur_size
);
2171 static void dump_create_mapping_request( const struct create_mapping_request
*req
)
2173 fprintf( stderr
, " access=%08x", req
->access
);
2174 fprintf( stderr
, ", flags=%08x", req
->flags
);
2175 fprintf( stderr
, ", file_access=%08x", req
->file_access
);
2176 dump_uint64( ", size=", &req
->size
);
2177 fprintf( stderr
, ", file_handle=%04x", req
->file_handle
);
2178 dump_varargs_object_attributes( ", objattr=", cur_size
);
2181 static void dump_create_mapping_reply( const struct create_mapping_reply
*req
)
2183 fprintf( stderr
, " handle=%04x", req
->handle
);
2186 static void dump_open_mapping_request( const struct open_mapping_request
*req
)
2188 fprintf( stderr
, " access=%08x", req
->access
);
2189 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
2190 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
2191 dump_varargs_unicode_str( ", name=", cur_size
);
2194 static void dump_open_mapping_reply( const struct open_mapping_reply
*req
)
2196 fprintf( stderr
, " handle=%04x", req
->handle
);
2199 static void dump_get_mapping_info_request( const struct get_mapping_info_request
*req
)
2201 fprintf( stderr
, " handle=%04x", req
->handle
);
2202 fprintf( stderr
, ", access=%08x", req
->access
);
2205 static void dump_get_mapping_info_reply( const struct get_mapping_info_reply
*req
)
2207 dump_uint64( " size=", &req
->size
);
2208 fprintf( stderr
, ", flags=%08x", req
->flags
);
2209 fprintf( stderr
, ", shared_file=%04x", req
->shared_file
);
2210 fprintf( stderr
, ", total=%u", req
->total
);
2211 dump_varargs_pe_image_info( ", image=", cur_size
);
2212 dump_varargs_unicode_str( ", name=", cur_size
);
2215 static void dump_map_view_request( const struct map_view_request
*req
)
2217 fprintf( stderr
, " mapping=%04x", req
->mapping
);
2218 fprintf( stderr
, ", access=%08x", req
->access
);
2219 dump_uint64( ", base=", &req
->base
);
2220 dump_uint64( ", size=", &req
->size
);
2221 dump_uint64( ", start=", &req
->start
);
2222 dump_varargs_pe_image_info( ", image=", cur_size
);
2223 dump_varargs_unicode_str( ", name=", cur_size
);
2226 static void dump_unmap_view_request( const struct unmap_view_request
*req
)
2228 dump_uint64( " base=", &req
->base
);
2231 static void dump_get_mapping_committed_range_request( const struct get_mapping_committed_range_request
*req
)
2233 dump_uint64( " base=", &req
->base
);
2234 dump_uint64( ", offset=", &req
->offset
);
2237 static void dump_get_mapping_committed_range_reply( const struct get_mapping_committed_range_reply
*req
)
2239 dump_uint64( " size=", &req
->size
);
2240 fprintf( stderr
, ", committed=%d", req
->committed
);
2243 static void dump_add_mapping_committed_range_request( const struct add_mapping_committed_range_request
*req
)
2245 dump_uint64( " base=", &req
->base
);
2246 dump_uint64( ", offset=", &req
->offset
);
2247 dump_uint64( ", size=", &req
->size
);
2250 static void dump_is_same_mapping_request( const struct is_same_mapping_request
*req
)
2252 dump_uint64( " base1=", &req
->base1
);
2253 dump_uint64( ", base2=", &req
->base2
);
2256 static void dump_get_mapping_filename_request( const struct get_mapping_filename_request
*req
)
2258 fprintf( stderr
, " process=%04x", req
->process
);
2259 dump_uint64( ", addr=", &req
->addr
);
2262 static void dump_get_mapping_filename_reply( const struct get_mapping_filename_reply
*req
)
2264 fprintf( stderr
, " len=%u", req
->len
);
2265 dump_varargs_unicode_str( ", filename=", cur_size
);
2268 static void dump_list_processes_request( const struct list_processes_request
*req
)
2272 static void dump_list_processes_reply( const struct list_processes_reply
*req
)
2274 fprintf( stderr
, " info_size=%u", req
->info_size
);
2275 fprintf( stderr
, ", process_count=%d", req
->process_count
);
2276 dump_varargs_process_info( ", data=", min(cur_size
,req
->info_size
) );
2279 static void dump_create_debug_obj_request( const struct create_debug_obj_request
*req
)
2281 fprintf( stderr
, " access=%08x", req
->access
);
2282 fprintf( stderr
, ", flags=%08x", req
->flags
);
2283 dump_varargs_object_attributes( ", objattr=", cur_size
);
2286 static void dump_create_debug_obj_reply( const struct create_debug_obj_reply
*req
)
2288 fprintf( stderr
, " handle=%04x", req
->handle
);
2291 static void dump_wait_debug_event_request( const struct wait_debug_event_request
*req
)
2293 fprintf( stderr
, " debug=%04x", req
->debug
);
2296 static void dump_wait_debug_event_reply( const struct wait_debug_event_reply
*req
)
2298 fprintf( stderr
, " pid=%04x", req
->pid
);
2299 fprintf( stderr
, ", tid=%04x", req
->tid
);
2300 dump_varargs_debug_event( ", event=", cur_size
);
2303 static void dump_queue_exception_event_request( const struct queue_exception_event_request
*req
)
2305 fprintf( stderr
, " first=%d", req
->first
);
2306 fprintf( stderr
, ", code=%08x", req
->code
);
2307 fprintf( stderr
, ", flags=%08x", req
->flags
);
2308 dump_uint64( ", record=", &req
->record
);
2309 dump_uint64( ", address=", &req
->address
);
2310 fprintf( stderr
, ", len=%u", req
->len
);
2311 dump_varargs_uints64( ", params=", min(cur_size
,req
->len
) );
2314 static void dump_queue_exception_event_reply( const struct queue_exception_event_reply
*req
)
2316 fprintf( stderr
, " handle=%04x", req
->handle
);
2319 static void dump_get_exception_status_request( const struct get_exception_status_request
*req
)
2321 fprintf( stderr
, " handle=%04x", req
->handle
);
2324 static void dump_continue_debug_event_request( const struct continue_debug_event_request
*req
)
2326 fprintf( stderr
, " debug=%04x", req
->debug
);
2327 fprintf( stderr
, ", pid=%04x", req
->pid
);
2328 fprintf( stderr
, ", tid=%04x", req
->tid
);
2329 fprintf( stderr
, ", status=%08x", req
->status
);
2332 static void dump_debug_process_request( const struct debug_process_request
*req
)
2334 fprintf( stderr
, " handle=%04x", req
->handle
);
2335 fprintf( stderr
, ", debug=%04x", req
->debug
);
2336 fprintf( stderr
, ", attach=%d", req
->attach
);
2339 static void dump_set_debug_obj_info_request( const struct set_debug_obj_info_request
*req
)
2341 fprintf( stderr
, " debug=%04x", req
->debug
);
2342 fprintf( stderr
, ", flags=%08x", req
->flags
);
2345 static void dump_read_process_memory_request( const struct read_process_memory_request
*req
)
2347 fprintf( stderr
, " handle=%04x", req
->handle
);
2348 dump_uint64( ", addr=", &req
->addr
);
2351 static void dump_read_process_memory_reply( const struct read_process_memory_reply
*req
)
2353 dump_varargs_bytes( " data=", cur_size
);
2356 static void dump_write_process_memory_request( const struct write_process_memory_request
*req
)
2358 fprintf( stderr
, " handle=%04x", req
->handle
);
2359 dump_uint64( ", addr=", &req
->addr
);
2360 dump_varargs_bytes( ", data=", cur_size
);
2363 static void dump_create_key_request( const struct create_key_request
*req
)
2365 fprintf( stderr
, " access=%08x", req
->access
);
2366 fprintf( stderr
, ", options=%08x", req
->options
);
2367 dump_varargs_object_attributes( ", objattr=", cur_size
);
2368 dump_varargs_unicode_str( ", class=", cur_size
);
2371 static void dump_create_key_reply( const struct create_key_reply
*req
)
2373 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2374 fprintf( stderr
, ", created=%d", req
->created
);
2377 static void dump_open_key_request( const struct open_key_request
*req
)
2379 fprintf( stderr
, " parent=%04x", req
->parent
);
2380 fprintf( stderr
, ", access=%08x", req
->access
);
2381 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
2382 dump_varargs_unicode_str( ", name=", cur_size
);
2385 static void dump_open_key_reply( const struct open_key_reply
*req
)
2387 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2390 static void dump_delete_key_request( const struct delete_key_request
*req
)
2392 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2395 static void dump_flush_key_request( const struct flush_key_request
*req
)
2397 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2400 static void dump_enum_key_request( const struct enum_key_request
*req
)
2402 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2403 fprintf( stderr
, ", index=%d", req
->index
);
2404 fprintf( stderr
, ", info_class=%d", req
->info_class
);
2407 static void dump_enum_key_reply( const struct enum_key_reply
*req
)
2409 fprintf( stderr
, " subkeys=%d", req
->subkeys
);
2410 fprintf( stderr
, ", max_subkey=%d", req
->max_subkey
);
2411 fprintf( stderr
, ", max_class=%d", req
->max_class
);
2412 fprintf( stderr
, ", values=%d", req
->values
);
2413 fprintf( stderr
, ", max_value=%d", req
->max_value
);
2414 fprintf( stderr
, ", max_data=%d", req
->max_data
);
2415 dump_timeout( ", modif=", &req
->modif
);
2416 fprintf( stderr
, ", total=%u", req
->total
);
2417 fprintf( stderr
, ", namelen=%u", req
->namelen
);
2418 dump_varargs_unicode_str( ", name=", min(cur_size
,req
->namelen
) );
2419 dump_varargs_unicode_str( ", class=", cur_size
);
2422 static void dump_set_key_value_request( const struct set_key_value_request
*req
)
2424 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2425 fprintf( stderr
, ", type=%d", req
->type
);
2426 fprintf( stderr
, ", namelen=%u", req
->namelen
);
2427 dump_varargs_unicode_str( ", name=", min(cur_size
,req
->namelen
) );
2428 dump_varargs_bytes( ", data=", cur_size
);
2431 static void dump_get_key_value_request( const struct get_key_value_request
*req
)
2433 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2434 dump_varargs_unicode_str( ", name=", cur_size
);
2437 static void dump_get_key_value_reply( const struct get_key_value_reply
*req
)
2439 fprintf( stderr
, " type=%d", req
->type
);
2440 fprintf( stderr
, ", total=%u", req
->total
);
2441 dump_varargs_bytes( ", data=", cur_size
);
2444 static void dump_enum_key_value_request( const struct enum_key_value_request
*req
)
2446 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2447 fprintf( stderr
, ", index=%d", req
->index
);
2448 fprintf( stderr
, ", info_class=%d", req
->info_class
);
2451 static void dump_enum_key_value_reply( const struct enum_key_value_reply
*req
)
2453 fprintf( stderr
, " type=%d", req
->type
);
2454 fprintf( stderr
, ", total=%u", req
->total
);
2455 fprintf( stderr
, ", namelen=%u", req
->namelen
);
2456 dump_varargs_unicode_str( ", name=", min(cur_size
,req
->namelen
) );
2457 dump_varargs_bytes( ", data=", cur_size
);
2460 static void dump_delete_key_value_request( const struct delete_key_value_request
*req
)
2462 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2463 dump_varargs_unicode_str( ", name=", cur_size
);
2466 static void dump_load_registry_request( const struct load_registry_request
*req
)
2468 fprintf( stderr
, " file=%04x", req
->file
);
2469 dump_varargs_object_attributes( ", objattr=", cur_size
);
2472 static void dump_unload_registry_request( const struct unload_registry_request
*req
)
2474 fprintf( stderr
, " parent=%04x", req
->parent
);
2475 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
2476 dump_varargs_unicode_str( ", name=", cur_size
);
2479 static void dump_save_registry_request( const struct save_registry_request
*req
)
2481 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2482 fprintf( stderr
, ", file=%04x", req
->file
);
2485 static void dump_set_registry_notification_request( const struct set_registry_notification_request
*req
)
2487 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2488 fprintf( stderr
, ", event=%04x", req
->event
);
2489 fprintf( stderr
, ", subtree=%d", req
->subtree
);
2490 fprintf( stderr
, ", filter=%08x", req
->filter
);
2493 static void dump_create_timer_request( const struct create_timer_request
*req
)
2495 fprintf( stderr
, " access=%08x", req
->access
);
2496 fprintf( stderr
, ", manual=%d", req
->manual
);
2497 dump_varargs_object_attributes( ", objattr=", cur_size
);
2500 static void dump_create_timer_reply( const struct create_timer_reply
*req
)
2502 fprintf( stderr
, " handle=%04x", req
->handle
);
2505 static void dump_open_timer_request( const struct open_timer_request
*req
)
2507 fprintf( stderr
, " access=%08x", req
->access
);
2508 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
2509 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
2510 dump_varargs_unicode_str( ", name=", cur_size
);
2513 static void dump_open_timer_reply( const struct open_timer_reply
*req
)
2515 fprintf( stderr
, " handle=%04x", req
->handle
);
2518 static void dump_set_timer_request( const struct set_timer_request
*req
)
2520 fprintf( stderr
, " handle=%04x", req
->handle
);
2521 dump_timeout( ", expire=", &req
->expire
);
2522 dump_uint64( ", callback=", &req
->callback
);
2523 dump_uint64( ", arg=", &req
->arg
);
2524 fprintf( stderr
, ", period=%d", req
->period
);
2527 static void dump_set_timer_reply( const struct set_timer_reply
*req
)
2529 fprintf( stderr
, " signaled=%d", req
->signaled
);
2532 static void dump_cancel_timer_request( const struct cancel_timer_request
*req
)
2534 fprintf( stderr
, " handle=%04x", req
->handle
);
2537 static void dump_cancel_timer_reply( const struct cancel_timer_reply
*req
)
2539 fprintf( stderr
, " signaled=%d", req
->signaled
);
2542 static void dump_get_timer_info_request( const struct get_timer_info_request
*req
)
2544 fprintf( stderr
, " handle=%04x", req
->handle
);
2547 static void dump_get_timer_info_reply( const struct get_timer_info_reply
*req
)
2549 dump_timeout( " when=", &req
->when
);
2550 fprintf( stderr
, ", signaled=%d", req
->signaled
);
2553 static void dump_get_thread_context_request( const struct get_thread_context_request
*req
)
2555 fprintf( stderr
, " handle=%04x", req
->handle
);
2556 fprintf( stderr
, ", context=%04x", req
->context
);
2557 fprintf( stderr
, ", flags=%08x", req
->flags
);
2560 static void dump_get_thread_context_reply( const struct get_thread_context_reply
*req
)
2562 fprintf( stderr
, " self=%d", req
->self
);
2563 fprintf( stderr
, ", handle=%04x", req
->handle
);
2564 dump_varargs_context( ", context=", cur_size
);
2567 static void dump_set_thread_context_request( const struct set_thread_context_request
*req
)
2569 fprintf( stderr
, " handle=%04x", req
->handle
);
2570 dump_varargs_context( ", context=", cur_size
);
2573 static void dump_set_thread_context_reply( const struct set_thread_context_reply
*req
)
2575 fprintf( stderr
, " self=%d", req
->self
);
2578 static void dump_get_selector_entry_request( const struct get_selector_entry_request
*req
)
2580 fprintf( stderr
, " handle=%04x", req
->handle
);
2581 fprintf( stderr
, ", entry=%d", req
->entry
);
2584 static void dump_get_selector_entry_reply( const struct get_selector_entry_reply
*req
)
2586 fprintf( stderr
, " base=%08x", req
->base
);
2587 fprintf( stderr
, ", limit=%08x", req
->limit
);
2588 fprintf( stderr
, ", flags=%02x", req
->flags
);
2591 static void dump_add_atom_request( const struct add_atom_request
*req
)
2593 dump_varargs_unicode_str( " name=", cur_size
);
2596 static void dump_add_atom_reply( const struct add_atom_reply
*req
)
2598 fprintf( stderr
, " atom=%04x", req
->atom
);
2601 static void dump_delete_atom_request( const struct delete_atom_request
*req
)
2603 fprintf( stderr
, " atom=%04x", req
->atom
);
2606 static void dump_find_atom_request( const struct find_atom_request
*req
)
2608 dump_varargs_unicode_str( " name=", cur_size
);
2611 static void dump_find_atom_reply( const struct find_atom_reply
*req
)
2613 fprintf( stderr
, " atom=%04x", req
->atom
);
2616 static void dump_get_atom_information_request( const struct get_atom_information_request
*req
)
2618 fprintf( stderr
, " atom=%04x", req
->atom
);
2621 static void dump_get_atom_information_reply( const struct get_atom_information_reply
*req
)
2623 fprintf( stderr
, " count=%d", req
->count
);
2624 fprintf( stderr
, ", pinned=%d", req
->pinned
);
2625 fprintf( stderr
, ", total=%u", req
->total
);
2626 dump_varargs_unicode_str( ", name=", cur_size
);
2629 static void dump_get_msg_queue_request( const struct get_msg_queue_request
*req
)
2633 static void dump_get_msg_queue_reply( const struct get_msg_queue_reply
*req
)
2635 fprintf( stderr
, " handle=%04x", req
->handle
);
2638 static void dump_set_queue_fd_request( const struct set_queue_fd_request
*req
)
2640 fprintf( stderr
, " handle=%04x", req
->handle
);
2643 static void dump_set_queue_mask_request( const struct set_queue_mask_request
*req
)
2645 fprintf( stderr
, " wake_mask=%08x", req
->wake_mask
);
2646 fprintf( stderr
, ", changed_mask=%08x", req
->changed_mask
);
2647 fprintf( stderr
, ", skip_wait=%d", req
->skip_wait
);
2650 static void dump_set_queue_mask_reply( const struct set_queue_mask_reply
*req
)
2652 fprintf( stderr
, " wake_bits=%08x", req
->wake_bits
);
2653 fprintf( stderr
, ", changed_bits=%08x", req
->changed_bits
);
2656 static void dump_get_queue_status_request( const struct get_queue_status_request
*req
)
2658 fprintf( stderr
, " clear_bits=%08x", req
->clear_bits
);
2661 static void dump_get_queue_status_reply( const struct get_queue_status_reply
*req
)
2663 fprintf( stderr
, " wake_bits=%08x", req
->wake_bits
);
2664 fprintf( stderr
, ", changed_bits=%08x", req
->changed_bits
);
2667 static void dump_get_process_idle_event_request( const struct get_process_idle_event_request
*req
)
2669 fprintf( stderr
, " handle=%04x", req
->handle
);
2672 static void dump_get_process_idle_event_reply( const struct get_process_idle_event_reply
*req
)
2674 fprintf( stderr
, " event=%04x", req
->event
);
2677 static void dump_send_message_request( const struct send_message_request
*req
)
2679 fprintf( stderr
, " id=%04x", req
->id
);
2680 fprintf( stderr
, ", type=%d", req
->type
);
2681 fprintf( stderr
, ", flags=%d", req
->flags
);
2682 fprintf( stderr
, ", win=%08x", req
->win
);
2683 fprintf( stderr
, ", msg=%08x", req
->msg
);
2684 dump_uint64( ", wparam=", &req
->wparam
);
2685 dump_uint64( ", lparam=", &req
->lparam
);
2686 dump_timeout( ", timeout=", &req
->timeout
);
2687 dump_varargs_message_data( ", data=", cur_size
);
2690 static void dump_post_quit_message_request( const struct post_quit_message_request
*req
)
2692 fprintf( stderr
, " exit_code=%d", req
->exit_code
);
2695 static void dump_send_hardware_message_request( const struct send_hardware_message_request
*req
)
2697 fprintf( stderr
, " win=%08x", req
->win
);
2698 dump_hw_input( ", input=", &req
->input
);
2699 fprintf( stderr
, ", flags=%08x", req
->flags
);
2700 dump_varargs_bytes( ", report=", cur_size
);
2703 static void dump_send_hardware_message_reply( const struct send_hardware_message_reply
*req
)
2705 fprintf( stderr
, " wait=%d", req
->wait
);
2706 fprintf( stderr
, ", prev_x=%d", req
->prev_x
);
2707 fprintf( stderr
, ", prev_y=%d", req
->prev_y
);
2708 fprintf( stderr
, ", new_x=%d", req
->new_x
);
2709 fprintf( stderr
, ", new_y=%d", req
->new_y
);
2710 dump_varargs_bytes( ", keystate=", cur_size
);
2713 static void dump_get_message_request( const struct get_message_request
*req
)
2715 fprintf( stderr
, " flags=%08x", req
->flags
);
2716 fprintf( stderr
, ", get_win=%08x", req
->get_win
);
2717 fprintf( stderr
, ", get_first=%08x", req
->get_first
);
2718 fprintf( stderr
, ", get_last=%08x", req
->get_last
);
2719 fprintf( stderr
, ", hw_id=%08x", req
->hw_id
);
2720 fprintf( stderr
, ", wake_mask=%08x", req
->wake_mask
);
2721 fprintf( stderr
, ", changed_mask=%08x", req
->changed_mask
);
2724 static void dump_get_message_reply( const struct get_message_reply
*req
)
2726 fprintf( stderr
, " win=%08x", req
->win
);
2727 fprintf( stderr
, ", msg=%08x", req
->msg
);
2728 dump_uint64( ", wparam=", &req
->wparam
);
2729 dump_uint64( ", lparam=", &req
->lparam
);
2730 fprintf( stderr
, ", type=%d", req
->type
);
2731 fprintf( stderr
, ", x=%d", req
->x
);
2732 fprintf( stderr
, ", y=%d", req
->y
);
2733 fprintf( stderr
, ", time=%08x", req
->time
);
2734 fprintf( stderr
, ", active_hooks=%08x", req
->active_hooks
);
2735 fprintf( stderr
, ", total=%u", req
->total
);
2736 dump_varargs_message_data( ", data=", cur_size
);
2739 static void dump_reply_message_request( const struct reply_message_request
*req
)
2741 fprintf( stderr
, " remove=%d", req
->remove
);
2742 dump_uint64( ", result=", &req
->result
);
2743 dump_varargs_bytes( ", data=", cur_size
);
2746 static void dump_accept_hardware_message_request( const struct accept_hardware_message_request
*req
)
2748 fprintf( stderr
, " hw_id=%08x", req
->hw_id
);
2751 static void dump_get_message_reply_request( const struct get_message_reply_request
*req
)
2753 fprintf( stderr
, " cancel=%d", req
->cancel
);
2756 static void dump_get_message_reply_reply( const struct get_message_reply_reply
*req
)
2758 dump_uint64( " result=", &req
->result
);
2759 dump_varargs_bytes( ", data=", cur_size
);
2762 static void dump_set_win_timer_request( const struct set_win_timer_request
*req
)
2764 fprintf( stderr
, " win=%08x", req
->win
);
2765 fprintf( stderr
, ", msg=%08x", req
->msg
);
2766 fprintf( stderr
, ", rate=%08x", req
->rate
);
2767 dump_uint64( ", id=", &req
->id
);
2768 dump_uint64( ", lparam=", &req
->lparam
);
2771 static void dump_set_win_timer_reply( const struct set_win_timer_reply
*req
)
2773 dump_uint64( " id=", &req
->id
);
2776 static void dump_kill_win_timer_request( const struct kill_win_timer_request
*req
)
2778 fprintf( stderr
, " win=%08x", req
->win
);
2779 dump_uint64( ", id=", &req
->id
);
2780 fprintf( stderr
, ", msg=%08x", req
->msg
);
2783 static void dump_is_window_hung_request( const struct is_window_hung_request
*req
)
2785 fprintf( stderr
, " win=%08x", req
->win
);
2788 static void dump_is_window_hung_reply( const struct is_window_hung_reply
*req
)
2790 fprintf( stderr
, " is_hung=%d", req
->is_hung
);
2793 static void dump_get_serial_info_request( const struct get_serial_info_request
*req
)
2795 fprintf( stderr
, " handle=%04x", req
->handle
);
2796 fprintf( stderr
, ", flags=%d", req
->flags
);
2799 static void dump_get_serial_info_reply( const struct get_serial_info_reply
*req
)
2801 fprintf( stderr
, " eventmask=%08x", req
->eventmask
);
2802 fprintf( stderr
, ", cookie=%08x", req
->cookie
);
2803 fprintf( stderr
, ", pending_write=%08x", req
->pending_write
);
2806 static void dump_set_serial_info_request( const struct set_serial_info_request
*req
)
2808 fprintf( stderr
, " handle=%04x", req
->handle
);
2809 fprintf( stderr
, ", flags=%d", req
->flags
);
2812 static void dump_register_async_request( const struct register_async_request
*req
)
2814 fprintf( stderr
, " type=%d", req
->type
);
2815 dump_async_data( ", async=", &req
->async
);
2816 fprintf( stderr
, ", count=%d", req
->count
);
2819 static void dump_cancel_async_request( const struct cancel_async_request
*req
)
2821 fprintf( stderr
, " handle=%04x", req
->handle
);
2822 dump_uint64( ", iosb=", &req
->iosb
);
2823 fprintf( stderr
, ", only_thread=%d", req
->only_thread
);
2826 static void dump_get_async_result_request( const struct get_async_result_request
*req
)
2828 dump_uint64( " user_arg=", &req
->user_arg
);
2831 static void dump_get_async_result_reply( const struct get_async_result_reply
*req
)
2833 fprintf( stderr
, " size=%u", req
->size
);
2834 dump_varargs_bytes( ", out_data=", cur_size
);
2837 static void dump_read_request( const struct read_request
*req
)
2839 dump_async_data( " async=", &req
->async
);
2840 dump_uint64( ", pos=", &req
->pos
);
2843 static void dump_read_reply( const struct read_reply
*req
)
2845 fprintf( stderr
, " wait=%04x", req
->wait
);
2846 fprintf( stderr
, ", options=%08x", req
->options
);
2847 dump_varargs_bytes( ", data=", cur_size
);
2850 static void dump_write_request( const struct write_request
*req
)
2852 dump_async_data( " async=", &req
->async
);
2853 dump_uint64( ", pos=", &req
->pos
);
2854 dump_varargs_bytes( ", data=", cur_size
);
2857 static void dump_write_reply( const struct write_reply
*req
)
2859 fprintf( stderr
, " wait=%04x", req
->wait
);
2860 fprintf( stderr
, ", options=%08x", req
->options
);
2861 fprintf( stderr
, ", size=%u", req
->size
);
2864 static void dump_ioctl_request( const struct ioctl_request
*req
)
2866 dump_ioctl_code( " code=", &req
->code
);
2867 dump_async_data( ", async=", &req
->async
);
2868 dump_varargs_bytes( ", in_data=", cur_size
);
2871 static void dump_ioctl_reply( const struct ioctl_reply
*req
)
2873 fprintf( stderr
, " wait=%04x", req
->wait
);
2874 fprintf( stderr
, ", options=%08x", req
->options
);
2875 dump_varargs_bytes( ", out_data=", cur_size
);
2878 static void dump_set_irp_result_request( const struct set_irp_result_request
*req
)
2880 fprintf( stderr
, " handle=%04x", req
->handle
);
2881 fprintf( stderr
, ", status=%08x", req
->status
);
2882 fprintf( stderr
, ", size=%u", req
->size
);
2883 dump_varargs_bytes( ", data=", cur_size
);
2886 static void dump_create_named_pipe_request( const struct create_named_pipe_request
*req
)
2888 fprintf( stderr
, " access=%08x", req
->access
);
2889 fprintf( stderr
, ", options=%08x", req
->options
);
2890 fprintf( stderr
, ", sharing=%08x", req
->sharing
);
2891 fprintf( stderr
, ", maxinstances=%08x", req
->maxinstances
);
2892 fprintf( stderr
, ", outsize=%08x", req
->outsize
);
2893 fprintf( stderr
, ", insize=%08x", req
->insize
);
2894 dump_timeout( ", timeout=", &req
->timeout
);
2895 fprintf( stderr
, ", flags=%08x", req
->flags
);
2896 dump_varargs_object_attributes( ", objattr=", cur_size
);
2899 static void dump_create_named_pipe_reply( const struct create_named_pipe_reply
*req
)
2901 fprintf( stderr
, " handle=%04x", req
->handle
);
2904 static void dump_set_named_pipe_info_request( const struct set_named_pipe_info_request
*req
)
2906 fprintf( stderr
, " handle=%04x", req
->handle
);
2907 fprintf( stderr
, ", flags=%08x", req
->flags
);
2910 static void dump_create_window_request( const struct create_window_request
*req
)
2912 fprintf( stderr
, " parent=%08x", req
->parent
);
2913 fprintf( stderr
, ", owner=%08x", req
->owner
);
2914 fprintf( stderr
, ", atom=%04x", req
->atom
);
2915 dump_uint64( ", instance=", &req
->instance
);
2916 fprintf( stderr
, ", dpi=%d", req
->dpi
);
2917 fprintf( stderr
, ", awareness=%d", req
->awareness
);
2918 dump_varargs_unicode_str( ", class=", cur_size
);
2921 static void dump_create_window_reply( const struct create_window_reply
*req
)
2923 fprintf( stderr
, " handle=%08x", req
->handle
);
2924 fprintf( stderr
, ", parent=%08x", req
->parent
);
2925 fprintf( stderr
, ", owner=%08x", req
->owner
);
2926 fprintf( stderr
, ", extra=%d", req
->extra
);
2927 dump_uint64( ", class_ptr=", &req
->class_ptr
);
2928 fprintf( stderr
, ", dpi=%d", req
->dpi
);
2929 fprintf( stderr
, ", awareness=%d", req
->awareness
);
2932 static void dump_destroy_window_request( const struct destroy_window_request
*req
)
2934 fprintf( stderr
, " handle=%08x", req
->handle
);
2937 static void dump_get_desktop_window_request( const struct get_desktop_window_request
*req
)
2939 fprintf( stderr
, " force=%d", req
->force
);
2942 static void dump_get_desktop_window_reply( const struct get_desktop_window_reply
*req
)
2944 fprintf( stderr
, " top_window=%08x", req
->top_window
);
2945 fprintf( stderr
, ", msg_window=%08x", req
->msg_window
);
2948 static void dump_set_window_owner_request( const struct set_window_owner_request
*req
)
2950 fprintf( stderr
, " handle=%08x", req
->handle
);
2951 fprintf( stderr
, ", owner=%08x", req
->owner
);
2954 static void dump_set_window_owner_reply( const struct set_window_owner_reply
*req
)
2956 fprintf( stderr
, " full_owner=%08x", req
->full_owner
);
2957 fprintf( stderr
, ", prev_owner=%08x", req
->prev_owner
);
2960 static void dump_get_window_info_request( const struct get_window_info_request
*req
)
2962 fprintf( stderr
, " handle=%08x", req
->handle
);
2965 static void dump_get_window_info_reply( const struct get_window_info_reply
*req
)
2967 fprintf( stderr
, " full_handle=%08x", req
->full_handle
);
2968 fprintf( stderr
, ", last_active=%08x", req
->last_active
);
2969 fprintf( stderr
, ", pid=%04x", req
->pid
);
2970 fprintf( stderr
, ", tid=%04x", req
->tid
);
2971 fprintf( stderr
, ", atom=%04x", req
->atom
);
2972 fprintf( stderr
, ", is_unicode=%d", req
->is_unicode
);
2973 fprintf( stderr
, ", dpi=%d", req
->dpi
);
2974 fprintf( stderr
, ", awareness=%d", req
->awareness
);
2977 static void dump_set_window_info_request( const struct set_window_info_request
*req
)
2979 fprintf( stderr
, " flags=%04x", req
->flags
);
2980 fprintf( stderr
, ", is_unicode=%d", req
->is_unicode
);
2981 fprintf( stderr
, ", handle=%08x", req
->handle
);
2982 fprintf( stderr
, ", style=%08x", req
->style
);
2983 fprintf( stderr
, ", ex_style=%08x", req
->ex_style
);
2984 fprintf( stderr
, ", id=%08x", req
->id
);
2985 dump_uint64( ", instance=", &req
->instance
);
2986 dump_uint64( ", user_data=", &req
->user_data
);
2987 fprintf( stderr
, ", extra_offset=%d", req
->extra_offset
);
2988 fprintf( stderr
, ", extra_size=%u", req
->extra_size
);
2989 dump_uint64( ", extra_value=", &req
->extra_value
);
2992 static void dump_set_window_info_reply( const struct set_window_info_reply
*req
)
2994 fprintf( stderr
, " old_style=%08x", req
->old_style
);
2995 fprintf( stderr
, ", old_ex_style=%08x", req
->old_ex_style
);
2996 dump_uint64( ", old_instance=", &req
->old_instance
);
2997 dump_uint64( ", old_user_data=", &req
->old_user_data
);
2998 dump_uint64( ", old_extra_value=", &req
->old_extra_value
);
2999 fprintf( stderr
, ", old_id=%08x", req
->old_id
);
3002 static void dump_set_parent_request( const struct set_parent_request
*req
)
3004 fprintf( stderr
, " handle=%08x", req
->handle
);
3005 fprintf( stderr
, ", parent=%08x", req
->parent
);
3008 static void dump_set_parent_reply( const struct set_parent_reply
*req
)
3010 fprintf( stderr
, " old_parent=%08x", req
->old_parent
);
3011 fprintf( stderr
, ", full_parent=%08x", req
->full_parent
);
3012 fprintf( stderr
, ", dpi=%d", req
->dpi
);
3013 fprintf( stderr
, ", awareness=%d", req
->awareness
);
3016 static void dump_get_window_parents_request( const struct get_window_parents_request
*req
)
3018 fprintf( stderr
, " handle=%08x", req
->handle
);
3021 static void dump_get_window_parents_reply( const struct get_window_parents_reply
*req
)
3023 fprintf( stderr
, " count=%d", req
->count
);
3024 dump_varargs_user_handles( ", parents=", cur_size
);
3027 static void dump_get_window_children_request( const struct get_window_children_request
*req
)
3029 fprintf( stderr
, " desktop=%04x", req
->desktop
);
3030 fprintf( stderr
, ", parent=%08x", req
->parent
);
3031 fprintf( stderr
, ", atom=%04x", req
->atom
);
3032 fprintf( stderr
, ", tid=%04x", req
->tid
);
3033 dump_varargs_unicode_str( ", class=", cur_size
);
3036 static void dump_get_window_children_reply( const struct get_window_children_reply
*req
)
3038 fprintf( stderr
, " count=%d", req
->count
);
3039 dump_varargs_user_handles( ", children=", cur_size
);
3042 static void dump_get_window_children_from_point_request( const struct get_window_children_from_point_request
*req
)
3044 fprintf( stderr
, " parent=%08x", req
->parent
);
3045 fprintf( stderr
, ", x=%d", req
->x
);
3046 fprintf( stderr
, ", y=%d", req
->y
);
3047 fprintf( stderr
, ", dpi=%d", req
->dpi
);
3050 static void dump_get_window_children_from_point_reply( const struct get_window_children_from_point_reply
*req
)
3052 fprintf( stderr
, " count=%d", req
->count
);
3053 dump_varargs_user_handles( ", children=", cur_size
);
3056 static void dump_get_window_tree_request( const struct get_window_tree_request
*req
)
3058 fprintf( stderr
, " handle=%08x", req
->handle
);
3061 static void dump_get_window_tree_reply( const struct get_window_tree_reply
*req
)
3063 fprintf( stderr
, " parent=%08x", req
->parent
);
3064 fprintf( stderr
, ", owner=%08x", req
->owner
);
3065 fprintf( stderr
, ", next_sibling=%08x", req
->next_sibling
);
3066 fprintf( stderr
, ", prev_sibling=%08x", req
->prev_sibling
);
3067 fprintf( stderr
, ", first_sibling=%08x", req
->first_sibling
);
3068 fprintf( stderr
, ", last_sibling=%08x", req
->last_sibling
);
3069 fprintf( stderr
, ", first_child=%08x", req
->first_child
);
3070 fprintf( stderr
, ", last_child=%08x", req
->last_child
);
3073 static void dump_set_window_pos_request( const struct set_window_pos_request
*req
)
3075 fprintf( stderr
, " swp_flags=%04x", req
->swp_flags
);
3076 fprintf( stderr
, ", paint_flags=%04x", req
->paint_flags
);
3077 fprintf( stderr
, ", handle=%08x", req
->handle
);
3078 fprintf( stderr
, ", previous=%08x", req
->previous
);
3079 dump_rectangle( ", window=", &req
->window
);
3080 dump_rectangle( ", client=", &req
->client
);
3081 dump_varargs_rectangles( ", valid=", cur_size
);
3084 static void dump_set_window_pos_reply( const struct set_window_pos_reply
*req
)
3086 fprintf( stderr
, " new_style=%08x", req
->new_style
);
3087 fprintf( stderr
, ", new_ex_style=%08x", req
->new_ex_style
);
3088 fprintf( stderr
, ", surface_win=%08x", req
->surface_win
);
3089 fprintf( stderr
, ", needs_update=%d", req
->needs_update
);
3092 static void dump_get_window_rectangles_request( const struct get_window_rectangles_request
*req
)
3094 fprintf( stderr
, " handle=%08x", req
->handle
);
3095 fprintf( stderr
, ", relative=%d", req
->relative
);
3096 fprintf( stderr
, ", dpi=%d", req
->dpi
);
3099 static void dump_get_window_rectangles_reply( const struct get_window_rectangles_reply
*req
)
3101 dump_rectangle( " window=", &req
->window
);
3102 dump_rectangle( ", client=", &req
->client
);
3105 static void dump_get_window_text_request( const struct get_window_text_request
*req
)
3107 fprintf( stderr
, " handle=%08x", req
->handle
);
3110 static void dump_get_window_text_reply( const struct get_window_text_reply
*req
)
3112 fprintf( stderr
, " length=%u", req
->length
);
3113 dump_varargs_unicode_str( ", text=", cur_size
);
3116 static void dump_set_window_text_request( const struct set_window_text_request
*req
)
3118 fprintf( stderr
, " handle=%08x", req
->handle
);
3119 dump_varargs_unicode_str( ", text=", cur_size
);
3122 static void dump_get_windows_offset_request( const struct get_windows_offset_request
*req
)
3124 fprintf( stderr
, " from=%08x", req
->from
);
3125 fprintf( stderr
, ", to=%08x", req
->to
);
3126 fprintf( stderr
, ", dpi=%d", req
->dpi
);
3129 static void dump_get_windows_offset_reply( const struct get_windows_offset_reply
*req
)
3131 fprintf( stderr
, " x=%d", req
->x
);
3132 fprintf( stderr
, ", y=%d", req
->y
);
3133 fprintf( stderr
, ", mirror=%d", req
->mirror
);
3136 static void dump_get_visible_region_request( const struct get_visible_region_request
*req
)
3138 fprintf( stderr
, " window=%08x", req
->window
);
3139 fprintf( stderr
, ", flags=%08x", req
->flags
);
3142 static void dump_get_visible_region_reply( const struct get_visible_region_reply
*req
)
3144 fprintf( stderr
, " top_win=%08x", req
->top_win
);
3145 dump_rectangle( ", top_rect=", &req
->top_rect
);
3146 dump_rectangle( ", win_rect=", &req
->win_rect
);
3147 fprintf( stderr
, ", paint_flags=%08x", req
->paint_flags
);
3148 fprintf( stderr
, ", total_size=%u", req
->total_size
);
3149 dump_varargs_rectangles( ", region=", cur_size
);
3152 static void dump_get_surface_region_request( const struct get_surface_region_request
*req
)
3154 fprintf( stderr
, " window=%08x", req
->window
);
3157 static void dump_get_surface_region_reply( const struct get_surface_region_reply
*req
)
3159 dump_rectangle( " visible_rect=", &req
->visible_rect
);
3160 fprintf( stderr
, ", total_size=%u", req
->total_size
);
3161 dump_varargs_rectangles( ", region=", cur_size
);
3164 static void dump_get_window_region_request( const struct get_window_region_request
*req
)
3166 fprintf( stderr
, " window=%08x", req
->window
);
3169 static void dump_get_window_region_reply( const struct get_window_region_reply
*req
)
3171 fprintf( stderr
, " total_size=%u", req
->total_size
);
3172 dump_varargs_rectangles( ", region=", cur_size
);
3175 static void dump_set_window_region_request( const struct set_window_region_request
*req
)
3177 fprintf( stderr
, " window=%08x", req
->window
);
3178 fprintf( stderr
, ", redraw=%d", req
->redraw
);
3179 dump_varargs_rectangles( ", region=", cur_size
);
3182 static void dump_get_update_region_request( const struct get_update_region_request
*req
)
3184 fprintf( stderr
, " window=%08x", req
->window
);
3185 fprintf( stderr
, ", from_child=%08x", req
->from_child
);
3186 fprintf( stderr
, ", flags=%08x", req
->flags
);
3189 static void dump_get_update_region_reply( const struct get_update_region_reply
*req
)
3191 fprintf( stderr
, " child=%08x", req
->child
);
3192 fprintf( stderr
, ", flags=%08x", req
->flags
);
3193 fprintf( stderr
, ", total_size=%u", req
->total_size
);
3194 dump_varargs_rectangles( ", region=", cur_size
);
3197 static void dump_update_window_zorder_request( const struct update_window_zorder_request
*req
)
3199 fprintf( stderr
, " window=%08x", req
->window
);
3200 dump_rectangle( ", rect=", &req
->rect
);
3203 static void dump_redraw_window_request( const struct redraw_window_request
*req
)
3205 fprintf( stderr
, " window=%08x", req
->window
);
3206 fprintf( stderr
, ", flags=%08x", req
->flags
);
3207 dump_varargs_rectangles( ", region=", cur_size
);
3210 static void dump_set_window_property_request( const struct set_window_property_request
*req
)
3212 fprintf( stderr
, " window=%08x", req
->window
);
3213 dump_uint64( ", data=", &req
->data
);
3214 fprintf( stderr
, ", atom=%04x", req
->atom
);
3215 dump_varargs_unicode_str( ", name=", cur_size
);
3218 static void dump_remove_window_property_request( const struct remove_window_property_request
*req
)
3220 fprintf( stderr
, " window=%08x", req
->window
);
3221 fprintf( stderr
, ", atom=%04x", req
->atom
);
3222 dump_varargs_unicode_str( ", name=", cur_size
);
3225 static void dump_remove_window_property_reply( const struct remove_window_property_reply
*req
)
3227 dump_uint64( " data=", &req
->data
);
3230 static void dump_get_window_property_request( const struct get_window_property_request
*req
)
3232 fprintf( stderr
, " window=%08x", req
->window
);
3233 fprintf( stderr
, ", atom=%04x", req
->atom
);
3234 dump_varargs_unicode_str( ", name=", cur_size
);
3237 static void dump_get_window_property_reply( const struct get_window_property_reply
*req
)
3239 dump_uint64( " data=", &req
->data
);
3242 static void dump_get_window_properties_request( const struct get_window_properties_request
*req
)
3244 fprintf( stderr
, " window=%08x", req
->window
);
3247 static void dump_get_window_properties_reply( const struct get_window_properties_reply
*req
)
3249 fprintf( stderr
, " total=%d", req
->total
);
3250 dump_varargs_properties( ", props=", cur_size
);
3253 static void dump_create_winstation_request( const struct create_winstation_request
*req
)
3255 fprintf( stderr
, " flags=%08x", req
->flags
);
3256 fprintf( stderr
, ", access=%08x", req
->access
);
3257 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3258 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
3259 dump_varargs_unicode_str( ", name=", cur_size
);
3262 static void dump_create_winstation_reply( const struct create_winstation_reply
*req
)
3264 fprintf( stderr
, " handle=%04x", req
->handle
);
3267 static void dump_open_winstation_request( const struct open_winstation_request
*req
)
3269 fprintf( stderr
, " access=%08x", req
->access
);
3270 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3271 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
3272 dump_varargs_unicode_str( ", name=", cur_size
);
3275 static void dump_open_winstation_reply( const struct open_winstation_reply
*req
)
3277 fprintf( stderr
, " handle=%04x", req
->handle
);
3280 static void dump_close_winstation_request( const struct close_winstation_request
*req
)
3282 fprintf( stderr
, " handle=%04x", req
->handle
);
3285 static void dump_get_process_winstation_request( const struct get_process_winstation_request
*req
)
3289 static void dump_get_process_winstation_reply( const struct get_process_winstation_reply
*req
)
3291 fprintf( stderr
, " handle=%04x", req
->handle
);
3294 static void dump_set_process_winstation_request( const struct set_process_winstation_request
*req
)
3296 fprintf( stderr
, " handle=%04x", req
->handle
);
3299 static void dump_enum_winstation_request( const struct enum_winstation_request
*req
)
3301 fprintf( stderr
, " index=%08x", req
->index
);
3304 static void dump_enum_winstation_reply( const struct enum_winstation_reply
*req
)
3306 fprintf( stderr
, " next=%08x", req
->next
);
3307 dump_varargs_unicode_str( ", name=", cur_size
);
3310 static void dump_create_desktop_request( const struct create_desktop_request
*req
)
3312 fprintf( stderr
, " flags=%08x", req
->flags
);
3313 fprintf( stderr
, ", access=%08x", req
->access
);
3314 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3315 dump_varargs_unicode_str( ", name=", cur_size
);
3318 static void dump_create_desktop_reply( const struct create_desktop_reply
*req
)
3320 fprintf( stderr
, " handle=%04x", req
->handle
);
3323 static void dump_open_desktop_request( const struct open_desktop_request
*req
)
3325 fprintf( stderr
, " winsta=%04x", req
->winsta
);
3326 fprintf( stderr
, ", flags=%08x", req
->flags
);
3327 fprintf( stderr
, ", access=%08x", req
->access
);
3328 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3329 dump_varargs_unicode_str( ", name=", cur_size
);
3332 static void dump_open_desktop_reply( const struct open_desktop_reply
*req
)
3334 fprintf( stderr
, " handle=%04x", req
->handle
);
3337 static void dump_open_input_desktop_request( const struct open_input_desktop_request
*req
)
3339 fprintf( stderr
, " flags=%08x", req
->flags
);
3340 fprintf( stderr
, ", access=%08x", req
->access
);
3341 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3344 static void dump_open_input_desktop_reply( const struct open_input_desktop_reply
*req
)
3346 fprintf( stderr
, " handle=%04x", req
->handle
);
3349 static void dump_close_desktop_request( const struct close_desktop_request
*req
)
3351 fprintf( stderr
, " handle=%04x", req
->handle
);
3354 static void dump_get_thread_desktop_request( const struct get_thread_desktop_request
*req
)
3356 fprintf( stderr
, " tid=%04x", req
->tid
);
3359 static void dump_get_thread_desktop_reply( const struct get_thread_desktop_reply
*req
)
3361 fprintf( stderr
, " handle=%04x", req
->handle
);
3364 static void dump_set_thread_desktop_request( const struct set_thread_desktop_request
*req
)
3366 fprintf( stderr
, " handle=%04x", req
->handle
);
3369 static void dump_enum_desktop_request( const struct enum_desktop_request
*req
)
3371 fprintf( stderr
, " winstation=%04x", req
->winstation
);
3372 fprintf( stderr
, ", index=%08x", req
->index
);
3375 static void dump_enum_desktop_reply( const struct enum_desktop_reply
*req
)
3377 fprintf( stderr
, " next=%08x", req
->next
);
3378 dump_varargs_unicode_str( ", name=", cur_size
);
3381 static void dump_set_user_object_info_request( const struct set_user_object_info_request
*req
)
3383 fprintf( stderr
, " handle=%04x", req
->handle
);
3384 fprintf( stderr
, ", flags=%08x", req
->flags
);
3385 fprintf( stderr
, ", obj_flags=%08x", req
->obj_flags
);
3388 static void dump_set_user_object_info_reply( const struct set_user_object_info_reply
*req
)
3390 fprintf( stderr
, " is_desktop=%d", req
->is_desktop
);
3391 fprintf( stderr
, ", old_obj_flags=%08x", req
->old_obj_flags
);
3392 dump_varargs_unicode_str( ", name=", cur_size
);
3395 static void dump_register_hotkey_request( const struct register_hotkey_request
*req
)
3397 fprintf( stderr
, " window=%08x", req
->window
);
3398 fprintf( stderr
, ", id=%d", req
->id
);
3399 fprintf( stderr
, ", flags=%08x", req
->flags
);
3400 fprintf( stderr
, ", vkey=%08x", req
->vkey
);
3403 static void dump_register_hotkey_reply( const struct register_hotkey_reply
*req
)
3405 fprintf( stderr
, " replaced=%d", req
->replaced
);
3406 fprintf( stderr
, ", flags=%08x", req
->flags
);
3407 fprintf( stderr
, ", vkey=%08x", req
->vkey
);
3410 static void dump_unregister_hotkey_request( const struct unregister_hotkey_request
*req
)
3412 fprintf( stderr
, " window=%08x", req
->window
);
3413 fprintf( stderr
, ", id=%d", req
->id
);
3416 static void dump_unregister_hotkey_reply( const struct unregister_hotkey_reply
*req
)
3418 fprintf( stderr
, " flags=%08x", req
->flags
);
3419 fprintf( stderr
, ", vkey=%08x", req
->vkey
);
3422 static void dump_attach_thread_input_request( const struct attach_thread_input_request
*req
)
3424 fprintf( stderr
, " tid_from=%04x", req
->tid_from
);
3425 fprintf( stderr
, ", tid_to=%04x", req
->tid_to
);
3426 fprintf( stderr
, ", attach=%d", req
->attach
);
3429 static void dump_get_thread_input_request( const struct get_thread_input_request
*req
)
3431 fprintf( stderr
, " tid=%04x", req
->tid
);
3434 static void dump_get_thread_input_reply( const struct get_thread_input_reply
*req
)
3436 fprintf( stderr
, " focus=%08x", req
->focus
);
3437 fprintf( stderr
, ", capture=%08x", req
->capture
);
3438 fprintf( stderr
, ", active=%08x", req
->active
);
3439 fprintf( stderr
, ", foreground=%08x", req
->foreground
);
3440 fprintf( stderr
, ", menu_owner=%08x", req
->menu_owner
);
3441 fprintf( stderr
, ", move_size=%08x", req
->move_size
);
3442 fprintf( stderr
, ", caret=%08x", req
->caret
);
3443 fprintf( stderr
, ", cursor=%08x", req
->cursor
);
3444 fprintf( stderr
, ", show_count=%d", req
->show_count
);
3445 dump_rectangle( ", rect=", &req
->rect
);
3448 static void dump_get_last_input_time_request( const struct get_last_input_time_request
*req
)
3452 static void dump_get_last_input_time_reply( const struct get_last_input_time_reply
*req
)
3454 fprintf( stderr
, " time=%08x", req
->time
);
3457 static void dump_get_key_state_request( const struct get_key_state_request
*req
)
3459 fprintf( stderr
, " async=%d", req
->async
);
3460 fprintf( stderr
, ", key=%d", req
->key
);
3463 static void dump_get_key_state_reply( const struct get_key_state_reply
*req
)
3465 fprintf( stderr
, " state=%02x", req
->state
);
3466 dump_varargs_bytes( ", keystate=", cur_size
);
3469 static void dump_set_key_state_request( const struct set_key_state_request
*req
)
3471 fprintf( stderr
, " async=%d", req
->async
);
3472 dump_varargs_bytes( ", keystate=", cur_size
);
3475 static void dump_set_foreground_window_request( const struct set_foreground_window_request
*req
)
3477 fprintf( stderr
, " handle=%08x", req
->handle
);
3480 static void dump_set_foreground_window_reply( const struct set_foreground_window_reply
*req
)
3482 fprintf( stderr
, " previous=%08x", req
->previous
);
3483 fprintf( stderr
, ", send_msg_old=%d", req
->send_msg_old
);
3484 fprintf( stderr
, ", send_msg_new=%d", req
->send_msg_new
);
3487 static void dump_set_focus_window_request( const struct set_focus_window_request
*req
)
3489 fprintf( stderr
, " handle=%08x", req
->handle
);
3492 static void dump_set_focus_window_reply( const struct set_focus_window_reply
*req
)
3494 fprintf( stderr
, " previous=%08x", req
->previous
);
3497 static void dump_set_active_window_request( const struct set_active_window_request
*req
)
3499 fprintf( stderr
, " handle=%08x", req
->handle
);
3502 static void dump_set_active_window_reply( const struct set_active_window_reply
*req
)
3504 fprintf( stderr
, " previous=%08x", req
->previous
);
3507 static void dump_set_capture_window_request( const struct set_capture_window_request
*req
)
3509 fprintf( stderr
, " handle=%08x", req
->handle
);
3510 fprintf( stderr
, ", flags=%08x", req
->flags
);
3513 static void dump_set_capture_window_reply( const struct set_capture_window_reply
*req
)
3515 fprintf( stderr
, " previous=%08x", req
->previous
);
3516 fprintf( stderr
, ", full_handle=%08x", req
->full_handle
);
3519 static void dump_set_caret_window_request( const struct set_caret_window_request
*req
)
3521 fprintf( stderr
, " handle=%08x", req
->handle
);
3522 fprintf( stderr
, ", width=%d", req
->width
);
3523 fprintf( stderr
, ", height=%d", req
->height
);
3526 static void dump_set_caret_window_reply( const struct set_caret_window_reply
*req
)
3528 fprintf( stderr
, " previous=%08x", req
->previous
);
3529 dump_rectangle( ", old_rect=", &req
->old_rect
);
3530 fprintf( stderr
, ", old_hide=%d", req
->old_hide
);
3531 fprintf( stderr
, ", old_state=%d", req
->old_state
);
3534 static void dump_set_caret_info_request( const struct set_caret_info_request
*req
)
3536 fprintf( stderr
, " flags=%08x", req
->flags
);
3537 fprintf( stderr
, ", handle=%08x", req
->handle
);
3538 fprintf( stderr
, ", x=%d", req
->x
);
3539 fprintf( stderr
, ", y=%d", req
->y
);
3540 fprintf( stderr
, ", hide=%d", req
->hide
);
3541 fprintf( stderr
, ", state=%d", req
->state
);
3544 static void dump_set_caret_info_reply( const struct set_caret_info_reply
*req
)
3546 fprintf( stderr
, " full_handle=%08x", req
->full_handle
);
3547 dump_rectangle( ", old_rect=", &req
->old_rect
);
3548 fprintf( stderr
, ", old_hide=%d", req
->old_hide
);
3549 fprintf( stderr
, ", old_state=%d", req
->old_state
);
3552 static void dump_set_hook_request( const struct set_hook_request
*req
)
3554 fprintf( stderr
, " id=%d", req
->id
);
3555 fprintf( stderr
, ", pid=%04x", req
->pid
);
3556 fprintf( stderr
, ", tid=%04x", req
->tid
);
3557 fprintf( stderr
, ", event_min=%d", req
->event_min
);
3558 fprintf( stderr
, ", event_max=%d", req
->event_max
);
3559 dump_uint64( ", proc=", &req
->proc
);
3560 fprintf( stderr
, ", flags=%d", req
->flags
);
3561 fprintf( stderr
, ", unicode=%d", req
->unicode
);
3562 dump_varargs_unicode_str( ", module=", cur_size
);
3565 static void dump_set_hook_reply( const struct set_hook_reply
*req
)
3567 fprintf( stderr
, " handle=%08x", req
->handle
);
3568 fprintf( stderr
, ", active_hooks=%08x", req
->active_hooks
);
3571 static void dump_remove_hook_request( const struct remove_hook_request
*req
)
3573 fprintf( stderr
, " handle=%08x", req
->handle
);
3574 dump_uint64( ", proc=", &req
->proc
);
3575 fprintf( stderr
, ", id=%d", req
->id
);
3578 static void dump_remove_hook_reply( const struct remove_hook_reply
*req
)
3580 fprintf( stderr
, " active_hooks=%08x", req
->active_hooks
);
3583 static void dump_start_hook_chain_request( const struct start_hook_chain_request
*req
)
3585 fprintf( stderr
, " id=%d", req
->id
);
3586 fprintf( stderr
, ", event=%d", req
->event
);
3587 fprintf( stderr
, ", window=%08x", req
->window
);
3588 fprintf( stderr
, ", object_id=%d", req
->object_id
);
3589 fprintf( stderr
, ", child_id=%d", req
->child_id
);
3592 static void dump_start_hook_chain_reply( const struct start_hook_chain_reply
*req
)
3594 fprintf( stderr
, " handle=%08x", req
->handle
);
3595 fprintf( stderr
, ", pid=%04x", req
->pid
);
3596 fprintf( stderr
, ", tid=%04x", req
->tid
);
3597 fprintf( stderr
, ", unicode=%d", req
->unicode
);
3598 dump_uint64( ", proc=", &req
->proc
);
3599 fprintf( stderr
, ", active_hooks=%08x", req
->active_hooks
);
3600 dump_varargs_unicode_str( ", module=", cur_size
);
3603 static void dump_finish_hook_chain_request( const struct finish_hook_chain_request
*req
)
3605 fprintf( stderr
, " id=%d", req
->id
);
3608 static void dump_get_hook_info_request( const struct get_hook_info_request
*req
)
3610 fprintf( stderr
, " handle=%08x", req
->handle
);
3611 fprintf( stderr
, ", get_next=%d", req
->get_next
);
3612 fprintf( stderr
, ", event=%d", req
->event
);
3613 fprintf( stderr
, ", window=%08x", req
->window
);
3614 fprintf( stderr
, ", object_id=%d", req
->object_id
);
3615 fprintf( stderr
, ", child_id=%d", req
->child_id
);
3618 static void dump_get_hook_info_reply( const struct get_hook_info_reply
*req
)
3620 fprintf( stderr
, " handle=%08x", req
->handle
);
3621 fprintf( stderr
, ", id=%d", req
->id
);
3622 fprintf( stderr
, ", pid=%04x", req
->pid
);
3623 fprintf( stderr
, ", tid=%04x", req
->tid
);
3624 dump_uint64( ", proc=", &req
->proc
);
3625 fprintf( stderr
, ", unicode=%d", req
->unicode
);
3626 dump_varargs_unicode_str( ", module=", cur_size
);
3629 static void dump_create_class_request( const struct create_class_request
*req
)
3631 fprintf( stderr
, " local=%d", req
->local
);
3632 fprintf( stderr
, ", atom=%04x", req
->atom
);
3633 fprintf( stderr
, ", style=%08x", req
->style
);
3634 dump_uint64( ", instance=", &req
->instance
);
3635 fprintf( stderr
, ", extra=%d", req
->extra
);
3636 fprintf( stderr
, ", win_extra=%d", req
->win_extra
);
3637 dump_uint64( ", client_ptr=", &req
->client_ptr
);
3638 fprintf( stderr
, ", name_offset=%u", req
->name_offset
);
3639 dump_varargs_unicode_str( ", name=", cur_size
);
3642 static void dump_create_class_reply( const struct create_class_reply
*req
)
3644 fprintf( stderr
, " atom=%04x", req
->atom
);
3647 static void dump_destroy_class_request( const struct destroy_class_request
*req
)
3649 fprintf( stderr
, " atom=%04x", req
->atom
);
3650 dump_uint64( ", instance=", &req
->instance
);
3651 dump_varargs_unicode_str( ", name=", cur_size
);
3654 static void dump_destroy_class_reply( const struct destroy_class_reply
*req
)
3656 dump_uint64( " client_ptr=", &req
->client_ptr
);
3659 static void dump_set_class_info_request( const struct set_class_info_request
*req
)
3661 fprintf( stderr
, " window=%08x", req
->window
);
3662 fprintf( stderr
, ", flags=%08x", req
->flags
);
3663 fprintf( stderr
, ", atom=%04x", req
->atom
);
3664 fprintf( stderr
, ", style=%08x", req
->style
);
3665 fprintf( stderr
, ", win_extra=%d", req
->win_extra
);
3666 dump_uint64( ", instance=", &req
->instance
);
3667 fprintf( stderr
, ", extra_offset=%d", req
->extra_offset
);
3668 fprintf( stderr
, ", extra_size=%u", req
->extra_size
);
3669 dump_uint64( ", extra_value=", &req
->extra_value
);
3672 static void dump_set_class_info_reply( const struct set_class_info_reply
*req
)
3674 fprintf( stderr
, " old_atom=%04x", req
->old_atom
);
3675 fprintf( stderr
, ", base_atom=%04x", req
->base_atom
);
3676 dump_uint64( ", old_instance=", &req
->old_instance
);
3677 dump_uint64( ", old_extra_value=", &req
->old_extra_value
);
3678 fprintf( stderr
, ", old_style=%08x", req
->old_style
);
3679 fprintf( stderr
, ", old_extra=%d", req
->old_extra
);
3680 fprintf( stderr
, ", old_win_extra=%d", req
->old_win_extra
);
3683 static void dump_open_clipboard_request( const struct open_clipboard_request
*req
)
3685 fprintf( stderr
, " window=%08x", req
->window
);
3688 static void dump_open_clipboard_reply( const struct open_clipboard_reply
*req
)
3690 fprintf( stderr
, " owner=%08x", req
->owner
);
3693 static void dump_close_clipboard_request( const struct close_clipboard_request
*req
)
3697 static void dump_close_clipboard_reply( const struct close_clipboard_reply
*req
)
3699 fprintf( stderr
, " viewer=%08x", req
->viewer
);
3700 fprintf( stderr
, ", owner=%08x", req
->owner
);
3703 static void dump_empty_clipboard_request( const struct empty_clipboard_request
*req
)
3707 static void dump_set_clipboard_data_request( const struct set_clipboard_data_request
*req
)
3709 fprintf( stderr
, " format=%08x", req
->format
);
3710 fprintf( stderr
, ", lcid=%08x", req
->lcid
);
3711 dump_varargs_bytes( ", data=", cur_size
);
3714 static void dump_set_clipboard_data_reply( const struct set_clipboard_data_reply
*req
)
3716 fprintf( stderr
, " seqno=%08x", req
->seqno
);
3719 static void dump_get_clipboard_data_request( const struct get_clipboard_data_request
*req
)
3721 fprintf( stderr
, " format=%08x", req
->format
);
3722 fprintf( stderr
, ", render=%d", req
->render
);
3723 fprintf( stderr
, ", cached=%d", req
->cached
);
3724 fprintf( stderr
, ", seqno=%08x", req
->seqno
);
3727 static void dump_get_clipboard_data_reply( const struct get_clipboard_data_reply
*req
)
3729 fprintf( stderr
, " from=%08x", req
->from
);
3730 fprintf( stderr
, ", owner=%08x", req
->owner
);
3731 fprintf( stderr
, ", seqno=%08x", req
->seqno
);
3732 fprintf( stderr
, ", total=%u", req
->total
);
3733 dump_varargs_bytes( ", data=", cur_size
);
3736 static void dump_get_clipboard_formats_request( const struct get_clipboard_formats_request
*req
)
3738 fprintf( stderr
, " format=%08x", req
->format
);
3741 static void dump_get_clipboard_formats_reply( const struct get_clipboard_formats_reply
*req
)
3743 fprintf( stderr
, " count=%08x", req
->count
);
3744 dump_varargs_uints( ", formats=", cur_size
);
3747 static void dump_enum_clipboard_formats_request( const struct enum_clipboard_formats_request
*req
)
3749 fprintf( stderr
, " previous=%08x", req
->previous
);
3752 static void dump_enum_clipboard_formats_reply( const struct enum_clipboard_formats_reply
*req
)
3754 fprintf( stderr
, " format=%08x", req
->format
);
3757 static void dump_release_clipboard_request( const struct release_clipboard_request
*req
)
3759 fprintf( stderr
, " owner=%08x", req
->owner
);
3762 static void dump_release_clipboard_reply( const struct release_clipboard_reply
*req
)
3764 fprintf( stderr
, " viewer=%08x", req
->viewer
);
3765 fprintf( stderr
, ", owner=%08x", req
->owner
);
3768 static void dump_get_clipboard_info_request( const struct get_clipboard_info_request
*req
)
3772 static void dump_get_clipboard_info_reply( const struct get_clipboard_info_reply
*req
)
3774 fprintf( stderr
, " window=%08x", req
->window
);
3775 fprintf( stderr
, ", owner=%08x", req
->owner
);
3776 fprintf( stderr
, ", viewer=%08x", req
->viewer
);
3777 fprintf( stderr
, ", seqno=%08x", req
->seqno
);
3780 static void dump_set_clipboard_viewer_request( const struct set_clipboard_viewer_request
*req
)
3782 fprintf( stderr
, " viewer=%08x", req
->viewer
);
3783 fprintf( stderr
, ", previous=%08x", req
->previous
);
3786 static void dump_set_clipboard_viewer_reply( const struct set_clipboard_viewer_reply
*req
)
3788 fprintf( stderr
, " old_viewer=%08x", req
->old_viewer
);
3789 fprintf( stderr
, ", owner=%08x", req
->owner
);
3792 static void dump_add_clipboard_listener_request( const struct add_clipboard_listener_request
*req
)
3794 fprintf( stderr
, " window=%08x", req
->window
);
3797 static void dump_remove_clipboard_listener_request( const struct remove_clipboard_listener_request
*req
)
3799 fprintf( stderr
, " window=%08x", req
->window
);
3802 static void dump_open_token_request( const struct open_token_request
*req
)
3804 fprintf( stderr
, " handle=%04x", req
->handle
);
3805 fprintf( stderr
, ", access=%08x", req
->access
);
3806 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3807 fprintf( stderr
, ", flags=%08x", req
->flags
);
3810 static void dump_open_token_reply( const struct open_token_reply
*req
)
3812 fprintf( stderr
, " token=%04x", req
->token
);
3815 static void dump_set_global_windows_request( const struct set_global_windows_request
*req
)
3817 fprintf( stderr
, " flags=%08x", req
->flags
);
3818 fprintf( stderr
, ", shell_window=%08x", req
->shell_window
);
3819 fprintf( stderr
, ", shell_listview=%08x", req
->shell_listview
);
3820 fprintf( stderr
, ", progman_window=%08x", req
->progman_window
);
3821 fprintf( stderr
, ", taskman_window=%08x", req
->taskman_window
);
3824 static void dump_set_global_windows_reply( const struct set_global_windows_reply
*req
)
3826 fprintf( stderr
, " old_shell_window=%08x", req
->old_shell_window
);
3827 fprintf( stderr
, ", old_shell_listview=%08x", req
->old_shell_listview
);
3828 fprintf( stderr
, ", old_progman_window=%08x", req
->old_progman_window
);
3829 fprintf( stderr
, ", old_taskman_window=%08x", req
->old_taskman_window
);
3832 static void dump_adjust_token_privileges_request( const struct adjust_token_privileges_request
*req
)
3834 fprintf( stderr
, " handle=%04x", req
->handle
);
3835 fprintf( stderr
, ", disable_all=%d", req
->disable_all
);
3836 fprintf( stderr
, ", get_modified_state=%d", req
->get_modified_state
);
3837 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size
);
3840 static void dump_adjust_token_privileges_reply( const struct adjust_token_privileges_reply
*req
)
3842 fprintf( stderr
, " len=%08x", req
->len
);
3843 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size
);
3846 static void dump_get_token_privileges_request( const struct get_token_privileges_request
*req
)
3848 fprintf( stderr
, " handle=%04x", req
->handle
);
3851 static void dump_get_token_privileges_reply( const struct get_token_privileges_reply
*req
)
3853 fprintf( stderr
, " len=%08x", req
->len
);
3854 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size
);
3857 static void dump_check_token_privileges_request( const struct check_token_privileges_request
*req
)
3859 fprintf( stderr
, " handle=%04x", req
->handle
);
3860 fprintf( stderr
, ", all_required=%d", req
->all_required
);
3861 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size
);
3864 static void dump_check_token_privileges_reply( const struct check_token_privileges_reply
*req
)
3866 fprintf( stderr
, " has_privileges=%d", req
->has_privileges
);
3867 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size
);
3870 static void dump_duplicate_token_request( const struct duplicate_token_request
*req
)
3872 fprintf( stderr
, " handle=%04x", req
->handle
);
3873 fprintf( stderr
, ", access=%08x", req
->access
);
3874 fprintf( stderr
, ", primary=%d", req
->primary
);
3875 fprintf( stderr
, ", impersonation_level=%d", req
->impersonation_level
);
3876 dump_varargs_object_attributes( ", objattr=", cur_size
);
3879 static void dump_duplicate_token_reply( const struct duplicate_token_reply
*req
)
3881 fprintf( stderr
, " new_handle=%04x", req
->new_handle
);
3884 static void dump_filter_token_request( const struct filter_token_request
*req
)
3886 fprintf( stderr
, " handle=%04x", req
->handle
);
3887 fprintf( stderr
, ", flags=%08x", req
->flags
);
3888 fprintf( stderr
, ", privileges_size=%u", req
->privileges_size
);
3889 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", min(cur_size
,req
->privileges_size
) );
3890 dump_varargs_SID( ", disable_sids=", cur_size
);
3893 static void dump_filter_token_reply( const struct filter_token_reply
*req
)
3895 fprintf( stderr
, " new_handle=%04x", req
->new_handle
);
3898 static void dump_access_check_request( const struct access_check_request
*req
)
3900 fprintf( stderr
, " handle=%04x", req
->handle
);
3901 fprintf( stderr
, ", desired_access=%08x", req
->desired_access
);
3902 dump_generic_map( ", mapping=", &req
->mapping
);
3903 dump_varargs_security_descriptor( ", sd=", cur_size
);
3906 static void dump_access_check_reply( const struct access_check_reply
*req
)
3908 fprintf( stderr
, " access_granted=%08x", req
->access_granted
);
3909 fprintf( stderr
, ", access_status=%08x", req
->access_status
);
3910 fprintf( stderr
, ", privileges_len=%08x", req
->privileges_len
);
3911 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size
);
3914 static void dump_get_token_sid_request( const struct get_token_sid_request
*req
)
3916 fprintf( stderr
, " handle=%04x", req
->handle
);
3917 fprintf( stderr
, ", which_sid=%08x", req
->which_sid
);
3920 static void dump_get_token_sid_reply( const struct get_token_sid_reply
*req
)
3922 fprintf( stderr
, " sid_len=%u", req
->sid_len
);
3923 dump_varargs_SID( ", sid=", cur_size
);
3926 static void dump_get_token_groups_request( const struct get_token_groups_request
*req
)
3928 fprintf( stderr
, " handle=%04x", req
->handle
);
3931 static void dump_get_token_groups_reply( const struct get_token_groups_reply
*req
)
3933 fprintf( stderr
, " user_len=%u", req
->user_len
);
3934 dump_varargs_token_groups( ", user=", cur_size
);
3937 static void dump_get_token_default_dacl_request( const struct get_token_default_dacl_request
*req
)
3939 fprintf( stderr
, " handle=%04x", req
->handle
);
3942 static void dump_get_token_default_dacl_reply( const struct get_token_default_dacl_reply
*req
)
3944 fprintf( stderr
, " acl_len=%u", req
->acl_len
);
3945 dump_varargs_ACL( ", acl=", cur_size
);
3948 static void dump_set_token_default_dacl_request( const struct set_token_default_dacl_request
*req
)
3950 fprintf( stderr
, " handle=%04x", req
->handle
);
3951 dump_varargs_ACL( ", acl=", cur_size
);
3954 static void dump_set_security_object_request( const struct set_security_object_request
*req
)
3956 fprintf( stderr
, " handle=%04x", req
->handle
);
3957 fprintf( stderr
, ", security_info=%08x", req
->security_info
);
3958 dump_varargs_security_descriptor( ", sd=", cur_size
);
3961 static void dump_get_security_object_request( const struct get_security_object_request
*req
)
3963 fprintf( stderr
, " handle=%04x", req
->handle
);
3964 fprintf( stderr
, ", security_info=%08x", req
->security_info
);
3967 static void dump_get_security_object_reply( const struct get_security_object_reply
*req
)
3969 fprintf( stderr
, " sd_len=%08x", req
->sd_len
);
3970 dump_varargs_security_descriptor( ", sd=", cur_size
);
3973 static void dump_get_system_handles_request( const struct get_system_handles_request
*req
)
3977 static void dump_get_system_handles_reply( const struct get_system_handles_reply
*req
)
3979 fprintf( stderr
, " count=%08x", req
->count
);
3980 dump_varargs_handle_infos( ", data=", cur_size
);
3983 static void dump_create_mailslot_request( const struct create_mailslot_request
*req
)
3985 fprintf( stderr
, " access=%08x", req
->access
);
3986 dump_timeout( ", read_timeout=", &req
->read_timeout
);
3987 fprintf( stderr
, ", max_msgsize=%08x", req
->max_msgsize
);
3988 dump_varargs_object_attributes( ", objattr=", cur_size
);
3991 static void dump_create_mailslot_reply( const struct create_mailslot_reply
*req
)
3993 fprintf( stderr
, " handle=%04x", req
->handle
);
3996 static void dump_set_mailslot_info_request( const struct set_mailslot_info_request
*req
)
3998 fprintf( stderr
, " handle=%04x", req
->handle
);
3999 dump_timeout( ", read_timeout=", &req
->read_timeout
);
4000 fprintf( stderr
, ", flags=%08x", req
->flags
);
4003 static void dump_set_mailslot_info_reply( const struct set_mailslot_info_reply
*req
)
4005 dump_timeout( " read_timeout=", &req
->read_timeout
);
4006 fprintf( stderr
, ", max_msgsize=%08x", req
->max_msgsize
);
4009 static void dump_create_directory_request( const struct create_directory_request
*req
)
4011 fprintf( stderr
, " access=%08x", req
->access
);
4012 dump_varargs_object_attributes( ", objattr=", cur_size
);
4015 static void dump_create_directory_reply( const struct create_directory_reply
*req
)
4017 fprintf( stderr
, " handle=%04x", req
->handle
);
4020 static void dump_open_directory_request( const struct open_directory_request
*req
)
4022 fprintf( stderr
, " access=%08x", req
->access
);
4023 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
4024 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
4025 dump_varargs_unicode_str( ", directory_name=", cur_size
);
4028 static void dump_open_directory_reply( const struct open_directory_reply
*req
)
4030 fprintf( stderr
, " handle=%04x", req
->handle
);
4033 static void dump_get_directory_entry_request( const struct get_directory_entry_request
*req
)
4035 fprintf( stderr
, " handle=%04x", req
->handle
);
4036 fprintf( stderr
, ", index=%08x", req
->index
);
4039 static void dump_get_directory_entry_reply( const struct get_directory_entry_reply
*req
)
4041 fprintf( stderr
, " name_len=%u", req
->name_len
);
4042 dump_varargs_unicode_str( ", name=", min(cur_size
,req
->name_len
) );
4043 dump_varargs_unicode_str( ", type=", cur_size
);
4046 static void dump_create_symlink_request( const struct create_symlink_request
*req
)
4048 fprintf( stderr
, " access=%08x", req
->access
);
4049 dump_varargs_object_attributes( ", objattr=", cur_size
);
4050 dump_varargs_unicode_str( ", target_name=", cur_size
);
4053 static void dump_create_symlink_reply( const struct create_symlink_reply
*req
)
4055 fprintf( stderr
, " handle=%04x", req
->handle
);
4058 static void dump_open_symlink_request( const struct open_symlink_request
*req
)
4060 fprintf( stderr
, " access=%08x", req
->access
);
4061 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
4062 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
4063 dump_varargs_unicode_str( ", name=", cur_size
);
4066 static void dump_open_symlink_reply( const struct open_symlink_reply
*req
)
4068 fprintf( stderr
, " handle=%04x", req
->handle
);
4071 static void dump_query_symlink_request( const struct query_symlink_request
*req
)
4073 fprintf( stderr
, " handle=%04x", req
->handle
);
4076 static void dump_query_symlink_reply( const struct query_symlink_reply
*req
)
4078 fprintf( stderr
, " total=%u", req
->total
);
4079 dump_varargs_unicode_str( ", target_name=", cur_size
);
4082 static void dump_get_object_info_request( const struct get_object_info_request
*req
)
4084 fprintf( stderr
, " handle=%04x", req
->handle
);
4087 static void dump_get_object_info_reply( const struct get_object_info_reply
*req
)
4089 fprintf( stderr
, " access=%08x", req
->access
);
4090 fprintf( stderr
, ", ref_count=%08x", req
->ref_count
);
4091 fprintf( stderr
, ", handle_count=%08x", req
->handle_count
);
4092 fprintf( stderr
, ", total=%u", req
->total
);
4093 dump_varargs_unicode_str( ", name=", cur_size
);
4096 static void dump_get_object_type_request( const struct get_object_type_request
*req
)
4098 fprintf( stderr
, " handle=%04x", req
->handle
);
4101 static void dump_get_object_type_reply( const struct get_object_type_reply
*req
)
4103 dump_varargs_object_type_info( " info=", cur_size
);
4106 static void dump_get_object_types_request( const struct get_object_types_request
*req
)
4110 static void dump_get_object_types_reply( const struct get_object_types_reply
*req
)
4112 fprintf( stderr
, " count=%d", req
->count
);
4113 dump_varargs_object_types_info( ", info=", cur_size
);
4116 static void dump_allocate_locally_unique_id_request( const struct allocate_locally_unique_id_request
*req
)
4120 static void dump_allocate_locally_unique_id_reply( const struct allocate_locally_unique_id_reply
*req
)
4122 dump_luid( " luid=", &req
->luid
);
4125 static void dump_create_device_manager_request( const struct create_device_manager_request
*req
)
4127 fprintf( stderr
, " access=%08x", req
->access
);
4128 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
4131 static void dump_create_device_manager_reply( const struct create_device_manager_reply
*req
)
4133 fprintf( stderr
, " handle=%04x", req
->handle
);
4136 static void dump_create_device_request( const struct create_device_request
*req
)
4138 fprintf( stderr
, " rootdir=%04x", req
->rootdir
);
4139 dump_uint64( ", user_ptr=", &req
->user_ptr
);
4140 fprintf( stderr
, ", manager=%04x", req
->manager
);
4141 dump_varargs_unicode_str( ", name=", cur_size
);
4144 static void dump_delete_device_request( const struct delete_device_request
*req
)
4146 fprintf( stderr
, " manager=%04x", req
->manager
);
4147 dump_uint64( ", device=", &req
->device
);
4150 static void dump_get_next_device_request_request( const struct get_next_device_request_request
*req
)
4152 fprintf( stderr
, " manager=%04x", req
->manager
);
4153 fprintf( stderr
, ", prev=%04x", req
->prev
);
4154 fprintf( stderr
, ", status=%08x", req
->status
);
4155 dump_uint64( ", user_ptr=", &req
->user_ptr
);
4158 static void dump_get_next_device_request_reply( const struct get_next_device_request_reply
*req
)
4160 dump_irp_params( " params=", &req
->params
);
4161 fprintf( stderr
, ", next=%04x", req
->next
);
4162 fprintf( stderr
, ", client_tid=%04x", req
->client_tid
);
4163 dump_uint64( ", client_thread=", &req
->client_thread
);
4164 fprintf( stderr
, ", in_size=%u", req
->in_size
);
4165 dump_varargs_bytes( ", next_data=", cur_size
);
4168 static void dump_get_kernel_object_ptr_request( const struct get_kernel_object_ptr_request
*req
)
4170 fprintf( stderr
, " manager=%04x", req
->manager
);
4171 fprintf( stderr
, ", handle=%04x", req
->handle
);
4174 static void dump_get_kernel_object_ptr_reply( const struct get_kernel_object_ptr_reply
*req
)
4176 dump_uint64( " user_ptr=", &req
->user_ptr
);
4179 static void dump_set_kernel_object_ptr_request( const struct set_kernel_object_ptr_request
*req
)
4181 fprintf( stderr
, " manager=%04x", req
->manager
);
4182 fprintf( stderr
, ", handle=%04x", req
->handle
);
4183 dump_uint64( ", user_ptr=", &req
->user_ptr
);
4186 static void dump_grab_kernel_object_request( const struct grab_kernel_object_request
*req
)
4188 fprintf( stderr
, " manager=%04x", req
->manager
);
4189 dump_uint64( ", user_ptr=", &req
->user_ptr
);
4192 static void dump_release_kernel_object_request( const struct release_kernel_object_request
*req
)
4194 fprintf( stderr
, " manager=%04x", req
->manager
);
4195 dump_uint64( ", user_ptr=", &req
->user_ptr
);
4198 static void dump_get_kernel_object_handle_request( const struct get_kernel_object_handle_request
*req
)
4200 fprintf( stderr
, " manager=%04x", req
->manager
);
4201 dump_uint64( ", user_ptr=", &req
->user_ptr
);
4202 fprintf( stderr
, ", access=%08x", req
->access
);
4205 static void dump_get_kernel_object_handle_reply( const struct get_kernel_object_handle_reply
*req
)
4207 fprintf( stderr
, " handle=%04x", req
->handle
);
4210 static void dump_make_process_system_request( const struct make_process_system_request
*req
)
4212 fprintf( stderr
, " handle=%04x", req
->handle
);
4215 static void dump_make_process_system_reply( const struct make_process_system_reply
*req
)
4217 fprintf( stderr
, " event=%04x", req
->event
);
4220 static void dump_get_token_info_request( const struct get_token_info_request
*req
)
4222 fprintf( stderr
, " handle=%04x", req
->handle
);
4225 static void dump_get_token_info_reply( const struct get_token_info_reply
*req
)
4227 dump_luid( " token_id=", &req
->token_id
);
4228 dump_luid( ", modified_id=", &req
->modified_id
);
4229 fprintf( stderr
, ", primary=%d", req
->primary
);
4230 fprintf( stderr
, ", impersonation_level=%d", req
->impersonation_level
);
4231 fprintf( stderr
, ", elevation=%d", req
->elevation
);
4232 fprintf( stderr
, ", group_count=%d", req
->group_count
);
4233 fprintf( stderr
, ", privilege_count=%d", req
->privilege_count
);
4236 static void dump_create_linked_token_request( const struct create_linked_token_request
*req
)
4238 fprintf( stderr
, " handle=%04x", req
->handle
);
4241 static void dump_create_linked_token_reply( const struct create_linked_token_reply
*req
)
4243 fprintf( stderr
, " linked=%04x", req
->linked
);
4246 static void dump_create_completion_request( const struct create_completion_request
*req
)
4248 fprintf( stderr
, " access=%08x", req
->access
);
4249 fprintf( stderr
, ", concurrent=%08x", req
->concurrent
);
4250 dump_varargs_object_attributes( ", objattr=", cur_size
);
4253 static void dump_create_completion_reply( const struct create_completion_reply
*req
)
4255 fprintf( stderr
, " handle=%04x", req
->handle
);
4258 static void dump_open_completion_request( const struct open_completion_request
*req
)
4260 fprintf( stderr
, " access=%08x", req
->access
);
4261 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
4262 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
4263 dump_varargs_unicode_str( ", filename=", cur_size
);
4266 static void dump_open_completion_reply( const struct open_completion_reply
*req
)
4268 fprintf( stderr
, " handle=%04x", req
->handle
);
4271 static void dump_add_completion_request( const struct add_completion_request
*req
)
4273 fprintf( stderr
, " handle=%04x", req
->handle
);
4274 dump_uint64( ", ckey=", &req
->ckey
);
4275 dump_uint64( ", cvalue=", &req
->cvalue
);
4276 dump_uint64( ", information=", &req
->information
);
4277 fprintf( stderr
, ", status=%08x", req
->status
);
4280 static void dump_remove_completion_request( const struct remove_completion_request
*req
)
4282 fprintf( stderr
, " handle=%04x", req
->handle
);
4285 static void dump_remove_completion_reply( const struct remove_completion_reply
*req
)
4287 dump_uint64( " ckey=", &req
->ckey
);
4288 dump_uint64( ", cvalue=", &req
->cvalue
);
4289 dump_uint64( ", information=", &req
->information
);
4290 fprintf( stderr
, ", status=%08x", req
->status
);
4293 static void dump_query_completion_request( const struct query_completion_request
*req
)
4295 fprintf( stderr
, " handle=%04x", req
->handle
);
4298 static void dump_query_completion_reply( const struct query_completion_reply
*req
)
4300 fprintf( stderr
, " depth=%08x", req
->depth
);
4303 static void dump_set_completion_info_request( const struct set_completion_info_request
*req
)
4305 fprintf( stderr
, " handle=%04x", req
->handle
);
4306 dump_uint64( ", ckey=", &req
->ckey
);
4307 fprintf( stderr
, ", chandle=%04x", req
->chandle
);
4310 static void dump_add_fd_completion_request( const struct add_fd_completion_request
*req
)
4312 fprintf( stderr
, " handle=%04x", req
->handle
);
4313 dump_uint64( ", cvalue=", &req
->cvalue
);
4314 dump_uint64( ", information=", &req
->information
);
4315 fprintf( stderr
, ", status=%08x", req
->status
);
4316 fprintf( stderr
, ", async=%d", req
->async
);
4319 static void dump_set_fd_completion_mode_request( const struct set_fd_completion_mode_request
*req
)
4321 fprintf( stderr
, " handle=%04x", req
->handle
);
4322 fprintf( stderr
, ", flags=%08x", req
->flags
);
4325 static void dump_set_fd_disp_info_request( const struct set_fd_disp_info_request
*req
)
4327 fprintf( stderr
, " handle=%04x", req
->handle
);
4328 fprintf( stderr
, ", unlink=%d", req
->unlink
);
4331 static void dump_set_fd_name_info_request( const struct set_fd_name_info_request
*req
)
4333 fprintf( stderr
, " handle=%04x", req
->handle
);
4334 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
4335 fprintf( stderr
, ", namelen=%u", req
->namelen
);
4336 fprintf( stderr
, ", link=%d", req
->link
);
4337 fprintf( stderr
, ", replace=%d", req
->replace
);
4338 dump_varargs_unicode_str( ", name=", min(cur_size
,req
->namelen
) );
4339 dump_varargs_string( ", filename=", cur_size
);
4342 static void dump_get_window_layered_info_request( const struct get_window_layered_info_request
*req
)
4344 fprintf( stderr
, " handle=%08x", req
->handle
);
4347 static void dump_get_window_layered_info_reply( const struct get_window_layered_info_reply
*req
)
4349 fprintf( stderr
, " color_key=%08x", req
->color_key
);
4350 fprintf( stderr
, ", alpha=%08x", req
->alpha
);
4351 fprintf( stderr
, ", flags=%08x", req
->flags
);
4354 static void dump_set_window_layered_info_request( const struct set_window_layered_info_request
*req
)
4356 fprintf( stderr
, " handle=%08x", req
->handle
);
4357 fprintf( stderr
, ", color_key=%08x", req
->color_key
);
4358 fprintf( stderr
, ", alpha=%08x", req
->alpha
);
4359 fprintf( stderr
, ", flags=%08x", req
->flags
);
4362 static void dump_alloc_user_handle_request( const struct alloc_user_handle_request
*req
)
4366 static void dump_alloc_user_handle_reply( const struct alloc_user_handle_reply
*req
)
4368 fprintf( stderr
, " handle=%08x", req
->handle
);
4371 static void dump_free_user_handle_request( const struct free_user_handle_request
*req
)
4373 fprintf( stderr
, " handle=%08x", req
->handle
);
4376 static void dump_set_cursor_request( const struct set_cursor_request
*req
)
4378 fprintf( stderr
, " flags=%08x", req
->flags
);
4379 fprintf( stderr
, ", handle=%08x", req
->handle
);
4380 fprintf( stderr
, ", show_count=%d", req
->show_count
);
4381 fprintf( stderr
, ", x=%d", req
->x
);
4382 fprintf( stderr
, ", y=%d", req
->y
);
4383 dump_rectangle( ", clip=", &req
->clip
);
4384 fprintf( stderr
, ", clip_msg=%08x", req
->clip_msg
);
4387 static void dump_set_cursor_reply( const struct set_cursor_reply
*req
)
4389 fprintf( stderr
, " prev_handle=%08x", req
->prev_handle
);
4390 fprintf( stderr
, ", prev_count=%d", req
->prev_count
);
4391 fprintf( stderr
, ", prev_x=%d", req
->prev_x
);
4392 fprintf( stderr
, ", prev_y=%d", req
->prev_y
);
4393 fprintf( stderr
, ", new_x=%d", req
->new_x
);
4394 fprintf( stderr
, ", new_y=%d", req
->new_y
);
4395 dump_rectangle( ", new_clip=", &req
->new_clip
);
4396 fprintf( stderr
, ", last_change=%08x", req
->last_change
);
4399 static void dump_get_cursor_history_request( const struct get_cursor_history_request
*req
)
4403 static void dump_get_cursor_history_reply( const struct get_cursor_history_reply
*req
)
4405 dump_varargs_cursor_positions( " history=", cur_size
);
4408 static void dump_get_rawinput_buffer_request( const struct get_rawinput_buffer_request
*req
)
4410 fprintf( stderr
, " rawinput_size=%u", req
->rawinput_size
);
4411 fprintf( stderr
, ", buffer_size=%u", req
->buffer_size
);
4414 static void dump_get_rawinput_buffer_reply( const struct get_rawinput_buffer_reply
*req
)
4416 fprintf( stderr
, " next_size=%u", req
->next_size
);
4417 fprintf( stderr
, ", count=%08x", req
->count
);
4418 dump_varargs_bytes( ", data=", cur_size
);
4421 static void dump_update_rawinput_devices_request( const struct update_rawinput_devices_request
*req
)
4423 dump_varargs_rawinput_devices( " devices=", cur_size
);
4426 static void dump_get_rawinput_devices_request( const struct get_rawinput_devices_request
*req
)
4430 static void dump_get_rawinput_devices_reply( const struct get_rawinput_devices_reply
*req
)
4432 fprintf( stderr
, " device_count=%08x", req
->device_count
);
4433 dump_varargs_rawinput_devices( ", devices=", cur_size
);
4436 static void dump_create_job_request( const struct create_job_request
*req
)
4438 fprintf( stderr
, " access=%08x", req
->access
);
4439 dump_varargs_object_attributes( ", objattr=", cur_size
);
4442 static void dump_create_job_reply( const struct create_job_reply
*req
)
4444 fprintf( stderr
, " handle=%04x", req
->handle
);
4447 static void dump_open_job_request( const struct open_job_request
*req
)
4449 fprintf( stderr
, " access=%08x", req
->access
);
4450 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
4451 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
4452 dump_varargs_unicode_str( ", name=", cur_size
);
4455 static void dump_open_job_reply( const struct open_job_reply
*req
)
4457 fprintf( stderr
, " handle=%04x", req
->handle
);
4460 static void dump_assign_job_request( const struct assign_job_request
*req
)
4462 fprintf( stderr
, " job=%04x", req
->job
);
4463 fprintf( stderr
, ", process=%04x", req
->process
);
4466 static void dump_process_in_job_request( const struct process_in_job_request
*req
)
4468 fprintf( stderr
, " job=%04x", req
->job
);
4469 fprintf( stderr
, ", process=%04x", req
->process
);
4472 static void dump_set_job_limits_request( const struct set_job_limits_request
*req
)
4474 fprintf( stderr
, " handle=%04x", req
->handle
);
4475 fprintf( stderr
, ", limit_flags=%08x", req
->limit_flags
);
4478 static void dump_set_job_completion_port_request( const struct set_job_completion_port_request
*req
)
4480 fprintf( stderr
, " job=%04x", req
->job
);
4481 fprintf( stderr
, ", port=%04x", req
->port
);
4482 dump_uint64( ", key=", &req
->key
);
4485 static void dump_get_job_info_request( const struct get_job_info_request
*req
)
4487 fprintf( stderr
, " handle=%04x", req
->handle
);
4490 static void dump_get_job_info_reply( const struct get_job_info_reply
*req
)
4492 fprintf( stderr
, " total_processes=%d", req
->total_processes
);
4493 fprintf( stderr
, ", active_processes=%d", req
->active_processes
);
4496 static void dump_terminate_job_request( const struct terminate_job_request
*req
)
4498 fprintf( stderr
, " handle=%04x", req
->handle
);
4499 fprintf( stderr
, ", status=%d", req
->status
);
4502 static void dump_suspend_process_request( const struct suspend_process_request
*req
)
4504 fprintf( stderr
, " handle=%04x", req
->handle
);
4507 static void dump_resume_process_request( const struct resume_process_request
*req
)
4509 fprintf( stderr
, " handle=%04x", req
->handle
);
4512 static void dump_get_next_thread_request( const struct get_next_thread_request
*req
)
4514 fprintf( stderr
, " process=%04x", req
->process
);
4515 fprintf( stderr
, ", last=%04x", req
->last
);
4516 fprintf( stderr
, ", access=%08x", req
->access
);
4517 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
4518 fprintf( stderr
, ", flags=%08x", req
->flags
);
4521 static void dump_get_next_thread_reply( const struct get_next_thread_reply
*req
)
4523 fprintf( stderr
, " handle=%04x", req
->handle
);
4526 static const dump_func req_dumpers
[REQ_NB_REQUESTS
] = {
4527 (dump_func
)dump_new_process_request
,
4528 (dump_func
)dump_get_new_process_info_request
,
4529 (dump_func
)dump_new_thread_request
,
4530 (dump_func
)dump_get_startup_info_request
,
4531 (dump_func
)dump_init_process_done_request
,
4532 (dump_func
)dump_init_first_thread_request
,
4533 (dump_func
)dump_init_thread_request
,
4534 (dump_func
)dump_terminate_process_request
,
4535 (dump_func
)dump_terminate_thread_request
,
4536 (dump_func
)dump_get_process_info_request
,
4537 (dump_func
)dump_get_process_debug_info_request
,
4538 (dump_func
)dump_get_process_image_name_request
,
4539 (dump_func
)dump_get_process_vm_counters_request
,
4540 (dump_func
)dump_set_process_info_request
,
4541 (dump_func
)dump_get_thread_info_request
,
4542 (dump_func
)dump_get_thread_times_request
,
4543 (dump_func
)dump_set_thread_info_request
,
4544 (dump_func
)dump_suspend_thread_request
,
4545 (dump_func
)dump_resume_thread_request
,
4546 (dump_func
)dump_queue_apc_request
,
4547 (dump_func
)dump_get_apc_result_request
,
4548 (dump_func
)dump_close_handle_request
,
4549 (dump_func
)dump_set_handle_info_request
,
4550 (dump_func
)dump_dup_handle_request
,
4551 (dump_func
)dump_make_temporary_request
,
4552 (dump_func
)dump_open_process_request
,
4553 (dump_func
)dump_open_thread_request
,
4554 (dump_func
)dump_select_request
,
4555 (dump_func
)dump_create_event_request
,
4556 (dump_func
)dump_event_op_request
,
4557 (dump_func
)dump_query_event_request
,
4558 (dump_func
)dump_open_event_request
,
4559 (dump_func
)dump_create_keyed_event_request
,
4560 (dump_func
)dump_open_keyed_event_request
,
4561 (dump_func
)dump_create_mutex_request
,
4562 (dump_func
)dump_release_mutex_request
,
4563 (dump_func
)dump_open_mutex_request
,
4564 (dump_func
)dump_query_mutex_request
,
4565 (dump_func
)dump_create_semaphore_request
,
4566 (dump_func
)dump_release_semaphore_request
,
4567 (dump_func
)dump_query_semaphore_request
,
4568 (dump_func
)dump_open_semaphore_request
,
4569 (dump_func
)dump_create_file_request
,
4570 (dump_func
)dump_open_file_object_request
,
4571 (dump_func
)dump_alloc_file_handle_request
,
4572 (dump_func
)dump_get_handle_unix_name_request
,
4573 (dump_func
)dump_get_handle_fd_request
,
4574 (dump_func
)dump_get_directory_cache_entry_request
,
4575 (dump_func
)dump_flush_request
,
4576 (dump_func
)dump_get_file_info_request
,
4577 (dump_func
)dump_get_volume_info_request
,
4578 (dump_func
)dump_lock_file_request
,
4579 (dump_func
)dump_unlock_file_request
,
4580 (dump_func
)dump_recv_socket_request
,
4581 (dump_func
)dump_poll_socket_request
,
4582 (dump_func
)dump_send_socket_request
,
4583 (dump_func
)dump_get_next_console_request_request
,
4584 (dump_func
)dump_read_directory_changes_request
,
4585 (dump_func
)dump_read_change_request
,
4586 (dump_func
)dump_create_mapping_request
,
4587 (dump_func
)dump_open_mapping_request
,
4588 (dump_func
)dump_get_mapping_info_request
,
4589 (dump_func
)dump_map_view_request
,
4590 (dump_func
)dump_unmap_view_request
,
4591 (dump_func
)dump_get_mapping_committed_range_request
,
4592 (dump_func
)dump_add_mapping_committed_range_request
,
4593 (dump_func
)dump_is_same_mapping_request
,
4594 (dump_func
)dump_get_mapping_filename_request
,
4595 (dump_func
)dump_list_processes_request
,
4596 (dump_func
)dump_create_debug_obj_request
,
4597 (dump_func
)dump_wait_debug_event_request
,
4598 (dump_func
)dump_queue_exception_event_request
,
4599 (dump_func
)dump_get_exception_status_request
,
4600 (dump_func
)dump_continue_debug_event_request
,
4601 (dump_func
)dump_debug_process_request
,
4602 (dump_func
)dump_set_debug_obj_info_request
,
4603 (dump_func
)dump_read_process_memory_request
,
4604 (dump_func
)dump_write_process_memory_request
,
4605 (dump_func
)dump_create_key_request
,
4606 (dump_func
)dump_open_key_request
,
4607 (dump_func
)dump_delete_key_request
,
4608 (dump_func
)dump_flush_key_request
,
4609 (dump_func
)dump_enum_key_request
,
4610 (dump_func
)dump_set_key_value_request
,
4611 (dump_func
)dump_get_key_value_request
,
4612 (dump_func
)dump_enum_key_value_request
,
4613 (dump_func
)dump_delete_key_value_request
,
4614 (dump_func
)dump_load_registry_request
,
4615 (dump_func
)dump_unload_registry_request
,
4616 (dump_func
)dump_save_registry_request
,
4617 (dump_func
)dump_set_registry_notification_request
,
4618 (dump_func
)dump_create_timer_request
,
4619 (dump_func
)dump_open_timer_request
,
4620 (dump_func
)dump_set_timer_request
,
4621 (dump_func
)dump_cancel_timer_request
,
4622 (dump_func
)dump_get_timer_info_request
,
4623 (dump_func
)dump_get_thread_context_request
,
4624 (dump_func
)dump_set_thread_context_request
,
4625 (dump_func
)dump_get_selector_entry_request
,
4626 (dump_func
)dump_add_atom_request
,
4627 (dump_func
)dump_delete_atom_request
,
4628 (dump_func
)dump_find_atom_request
,
4629 (dump_func
)dump_get_atom_information_request
,
4630 (dump_func
)dump_get_msg_queue_request
,
4631 (dump_func
)dump_set_queue_fd_request
,
4632 (dump_func
)dump_set_queue_mask_request
,
4633 (dump_func
)dump_get_queue_status_request
,
4634 (dump_func
)dump_get_process_idle_event_request
,
4635 (dump_func
)dump_send_message_request
,
4636 (dump_func
)dump_post_quit_message_request
,
4637 (dump_func
)dump_send_hardware_message_request
,
4638 (dump_func
)dump_get_message_request
,
4639 (dump_func
)dump_reply_message_request
,
4640 (dump_func
)dump_accept_hardware_message_request
,
4641 (dump_func
)dump_get_message_reply_request
,
4642 (dump_func
)dump_set_win_timer_request
,
4643 (dump_func
)dump_kill_win_timer_request
,
4644 (dump_func
)dump_is_window_hung_request
,
4645 (dump_func
)dump_get_serial_info_request
,
4646 (dump_func
)dump_set_serial_info_request
,
4647 (dump_func
)dump_register_async_request
,
4648 (dump_func
)dump_cancel_async_request
,
4649 (dump_func
)dump_get_async_result_request
,
4650 (dump_func
)dump_read_request
,
4651 (dump_func
)dump_write_request
,
4652 (dump_func
)dump_ioctl_request
,
4653 (dump_func
)dump_set_irp_result_request
,
4654 (dump_func
)dump_create_named_pipe_request
,
4655 (dump_func
)dump_set_named_pipe_info_request
,
4656 (dump_func
)dump_create_window_request
,
4657 (dump_func
)dump_destroy_window_request
,
4658 (dump_func
)dump_get_desktop_window_request
,
4659 (dump_func
)dump_set_window_owner_request
,
4660 (dump_func
)dump_get_window_info_request
,
4661 (dump_func
)dump_set_window_info_request
,
4662 (dump_func
)dump_set_parent_request
,
4663 (dump_func
)dump_get_window_parents_request
,
4664 (dump_func
)dump_get_window_children_request
,
4665 (dump_func
)dump_get_window_children_from_point_request
,
4666 (dump_func
)dump_get_window_tree_request
,
4667 (dump_func
)dump_set_window_pos_request
,
4668 (dump_func
)dump_get_window_rectangles_request
,
4669 (dump_func
)dump_get_window_text_request
,
4670 (dump_func
)dump_set_window_text_request
,
4671 (dump_func
)dump_get_windows_offset_request
,
4672 (dump_func
)dump_get_visible_region_request
,
4673 (dump_func
)dump_get_surface_region_request
,
4674 (dump_func
)dump_get_window_region_request
,
4675 (dump_func
)dump_set_window_region_request
,
4676 (dump_func
)dump_get_update_region_request
,
4677 (dump_func
)dump_update_window_zorder_request
,
4678 (dump_func
)dump_redraw_window_request
,
4679 (dump_func
)dump_set_window_property_request
,
4680 (dump_func
)dump_remove_window_property_request
,
4681 (dump_func
)dump_get_window_property_request
,
4682 (dump_func
)dump_get_window_properties_request
,
4683 (dump_func
)dump_create_winstation_request
,
4684 (dump_func
)dump_open_winstation_request
,
4685 (dump_func
)dump_close_winstation_request
,
4686 (dump_func
)dump_get_process_winstation_request
,
4687 (dump_func
)dump_set_process_winstation_request
,
4688 (dump_func
)dump_enum_winstation_request
,
4689 (dump_func
)dump_create_desktop_request
,
4690 (dump_func
)dump_open_desktop_request
,
4691 (dump_func
)dump_open_input_desktop_request
,
4692 (dump_func
)dump_close_desktop_request
,
4693 (dump_func
)dump_get_thread_desktop_request
,
4694 (dump_func
)dump_set_thread_desktop_request
,
4695 (dump_func
)dump_enum_desktop_request
,
4696 (dump_func
)dump_set_user_object_info_request
,
4697 (dump_func
)dump_register_hotkey_request
,
4698 (dump_func
)dump_unregister_hotkey_request
,
4699 (dump_func
)dump_attach_thread_input_request
,
4700 (dump_func
)dump_get_thread_input_request
,
4701 (dump_func
)dump_get_last_input_time_request
,
4702 (dump_func
)dump_get_key_state_request
,
4703 (dump_func
)dump_set_key_state_request
,
4704 (dump_func
)dump_set_foreground_window_request
,
4705 (dump_func
)dump_set_focus_window_request
,
4706 (dump_func
)dump_set_active_window_request
,
4707 (dump_func
)dump_set_capture_window_request
,
4708 (dump_func
)dump_set_caret_window_request
,
4709 (dump_func
)dump_set_caret_info_request
,
4710 (dump_func
)dump_set_hook_request
,
4711 (dump_func
)dump_remove_hook_request
,
4712 (dump_func
)dump_start_hook_chain_request
,
4713 (dump_func
)dump_finish_hook_chain_request
,
4714 (dump_func
)dump_get_hook_info_request
,
4715 (dump_func
)dump_create_class_request
,
4716 (dump_func
)dump_destroy_class_request
,
4717 (dump_func
)dump_set_class_info_request
,
4718 (dump_func
)dump_open_clipboard_request
,
4719 (dump_func
)dump_close_clipboard_request
,
4720 (dump_func
)dump_empty_clipboard_request
,
4721 (dump_func
)dump_set_clipboard_data_request
,
4722 (dump_func
)dump_get_clipboard_data_request
,
4723 (dump_func
)dump_get_clipboard_formats_request
,
4724 (dump_func
)dump_enum_clipboard_formats_request
,
4725 (dump_func
)dump_release_clipboard_request
,
4726 (dump_func
)dump_get_clipboard_info_request
,
4727 (dump_func
)dump_set_clipboard_viewer_request
,
4728 (dump_func
)dump_add_clipboard_listener_request
,
4729 (dump_func
)dump_remove_clipboard_listener_request
,
4730 (dump_func
)dump_open_token_request
,
4731 (dump_func
)dump_set_global_windows_request
,
4732 (dump_func
)dump_adjust_token_privileges_request
,
4733 (dump_func
)dump_get_token_privileges_request
,
4734 (dump_func
)dump_check_token_privileges_request
,
4735 (dump_func
)dump_duplicate_token_request
,
4736 (dump_func
)dump_filter_token_request
,
4737 (dump_func
)dump_access_check_request
,
4738 (dump_func
)dump_get_token_sid_request
,
4739 (dump_func
)dump_get_token_groups_request
,
4740 (dump_func
)dump_get_token_default_dacl_request
,
4741 (dump_func
)dump_set_token_default_dacl_request
,
4742 (dump_func
)dump_set_security_object_request
,
4743 (dump_func
)dump_get_security_object_request
,
4744 (dump_func
)dump_get_system_handles_request
,
4745 (dump_func
)dump_create_mailslot_request
,
4746 (dump_func
)dump_set_mailslot_info_request
,
4747 (dump_func
)dump_create_directory_request
,
4748 (dump_func
)dump_open_directory_request
,
4749 (dump_func
)dump_get_directory_entry_request
,
4750 (dump_func
)dump_create_symlink_request
,
4751 (dump_func
)dump_open_symlink_request
,
4752 (dump_func
)dump_query_symlink_request
,
4753 (dump_func
)dump_get_object_info_request
,
4754 (dump_func
)dump_get_object_type_request
,
4755 (dump_func
)dump_get_object_types_request
,
4756 (dump_func
)dump_allocate_locally_unique_id_request
,
4757 (dump_func
)dump_create_device_manager_request
,
4758 (dump_func
)dump_create_device_request
,
4759 (dump_func
)dump_delete_device_request
,
4760 (dump_func
)dump_get_next_device_request_request
,
4761 (dump_func
)dump_get_kernel_object_ptr_request
,
4762 (dump_func
)dump_set_kernel_object_ptr_request
,
4763 (dump_func
)dump_grab_kernel_object_request
,
4764 (dump_func
)dump_release_kernel_object_request
,
4765 (dump_func
)dump_get_kernel_object_handle_request
,
4766 (dump_func
)dump_make_process_system_request
,
4767 (dump_func
)dump_get_token_info_request
,
4768 (dump_func
)dump_create_linked_token_request
,
4769 (dump_func
)dump_create_completion_request
,
4770 (dump_func
)dump_open_completion_request
,
4771 (dump_func
)dump_add_completion_request
,
4772 (dump_func
)dump_remove_completion_request
,
4773 (dump_func
)dump_query_completion_request
,
4774 (dump_func
)dump_set_completion_info_request
,
4775 (dump_func
)dump_add_fd_completion_request
,
4776 (dump_func
)dump_set_fd_completion_mode_request
,
4777 (dump_func
)dump_set_fd_disp_info_request
,
4778 (dump_func
)dump_set_fd_name_info_request
,
4779 (dump_func
)dump_get_window_layered_info_request
,
4780 (dump_func
)dump_set_window_layered_info_request
,
4781 (dump_func
)dump_alloc_user_handle_request
,
4782 (dump_func
)dump_free_user_handle_request
,
4783 (dump_func
)dump_set_cursor_request
,
4784 (dump_func
)dump_get_cursor_history_request
,
4785 (dump_func
)dump_get_rawinput_buffer_request
,
4786 (dump_func
)dump_update_rawinput_devices_request
,
4787 (dump_func
)dump_get_rawinput_devices_request
,
4788 (dump_func
)dump_create_job_request
,
4789 (dump_func
)dump_open_job_request
,
4790 (dump_func
)dump_assign_job_request
,
4791 (dump_func
)dump_process_in_job_request
,
4792 (dump_func
)dump_set_job_limits_request
,
4793 (dump_func
)dump_set_job_completion_port_request
,
4794 (dump_func
)dump_get_job_info_request
,
4795 (dump_func
)dump_terminate_job_request
,
4796 (dump_func
)dump_suspend_process_request
,
4797 (dump_func
)dump_resume_process_request
,
4798 (dump_func
)dump_get_next_thread_request
,
4801 static const dump_func reply_dumpers
[REQ_NB_REQUESTS
] = {
4802 (dump_func
)dump_new_process_reply
,
4803 (dump_func
)dump_get_new_process_info_reply
,
4804 (dump_func
)dump_new_thread_reply
,
4805 (dump_func
)dump_get_startup_info_reply
,
4806 (dump_func
)dump_init_process_done_reply
,
4807 (dump_func
)dump_init_first_thread_reply
,
4808 (dump_func
)dump_init_thread_reply
,
4809 (dump_func
)dump_terminate_process_reply
,
4810 (dump_func
)dump_terminate_thread_reply
,
4811 (dump_func
)dump_get_process_info_reply
,
4812 (dump_func
)dump_get_process_debug_info_reply
,
4813 (dump_func
)dump_get_process_image_name_reply
,
4814 (dump_func
)dump_get_process_vm_counters_reply
,
4816 (dump_func
)dump_get_thread_info_reply
,
4817 (dump_func
)dump_get_thread_times_reply
,
4819 (dump_func
)dump_suspend_thread_reply
,
4820 (dump_func
)dump_resume_thread_reply
,
4821 (dump_func
)dump_queue_apc_reply
,
4822 (dump_func
)dump_get_apc_result_reply
,
4824 (dump_func
)dump_set_handle_info_reply
,
4825 (dump_func
)dump_dup_handle_reply
,
4827 (dump_func
)dump_open_process_reply
,
4828 (dump_func
)dump_open_thread_reply
,
4829 (dump_func
)dump_select_reply
,
4830 (dump_func
)dump_create_event_reply
,
4831 (dump_func
)dump_event_op_reply
,
4832 (dump_func
)dump_query_event_reply
,
4833 (dump_func
)dump_open_event_reply
,
4834 (dump_func
)dump_create_keyed_event_reply
,
4835 (dump_func
)dump_open_keyed_event_reply
,
4836 (dump_func
)dump_create_mutex_reply
,
4837 (dump_func
)dump_release_mutex_reply
,
4838 (dump_func
)dump_open_mutex_reply
,
4839 (dump_func
)dump_query_mutex_reply
,
4840 (dump_func
)dump_create_semaphore_reply
,
4841 (dump_func
)dump_release_semaphore_reply
,
4842 (dump_func
)dump_query_semaphore_reply
,
4843 (dump_func
)dump_open_semaphore_reply
,
4844 (dump_func
)dump_create_file_reply
,
4845 (dump_func
)dump_open_file_object_reply
,
4846 (dump_func
)dump_alloc_file_handle_reply
,
4847 (dump_func
)dump_get_handle_unix_name_reply
,
4848 (dump_func
)dump_get_handle_fd_reply
,
4849 (dump_func
)dump_get_directory_cache_entry_reply
,
4850 (dump_func
)dump_flush_reply
,
4851 (dump_func
)dump_get_file_info_reply
,
4852 (dump_func
)dump_get_volume_info_reply
,
4853 (dump_func
)dump_lock_file_reply
,
4855 (dump_func
)dump_recv_socket_reply
,
4856 (dump_func
)dump_poll_socket_reply
,
4857 (dump_func
)dump_send_socket_reply
,
4858 (dump_func
)dump_get_next_console_request_reply
,
4860 (dump_func
)dump_read_change_reply
,
4861 (dump_func
)dump_create_mapping_reply
,
4862 (dump_func
)dump_open_mapping_reply
,
4863 (dump_func
)dump_get_mapping_info_reply
,
4866 (dump_func
)dump_get_mapping_committed_range_reply
,
4869 (dump_func
)dump_get_mapping_filename_reply
,
4870 (dump_func
)dump_list_processes_reply
,
4871 (dump_func
)dump_create_debug_obj_reply
,
4872 (dump_func
)dump_wait_debug_event_reply
,
4873 (dump_func
)dump_queue_exception_event_reply
,
4878 (dump_func
)dump_read_process_memory_reply
,
4880 (dump_func
)dump_create_key_reply
,
4881 (dump_func
)dump_open_key_reply
,
4884 (dump_func
)dump_enum_key_reply
,
4886 (dump_func
)dump_get_key_value_reply
,
4887 (dump_func
)dump_enum_key_value_reply
,
4893 (dump_func
)dump_create_timer_reply
,
4894 (dump_func
)dump_open_timer_reply
,
4895 (dump_func
)dump_set_timer_reply
,
4896 (dump_func
)dump_cancel_timer_reply
,
4897 (dump_func
)dump_get_timer_info_reply
,
4898 (dump_func
)dump_get_thread_context_reply
,
4899 (dump_func
)dump_set_thread_context_reply
,
4900 (dump_func
)dump_get_selector_entry_reply
,
4901 (dump_func
)dump_add_atom_reply
,
4903 (dump_func
)dump_find_atom_reply
,
4904 (dump_func
)dump_get_atom_information_reply
,
4905 (dump_func
)dump_get_msg_queue_reply
,
4907 (dump_func
)dump_set_queue_mask_reply
,
4908 (dump_func
)dump_get_queue_status_reply
,
4909 (dump_func
)dump_get_process_idle_event_reply
,
4912 (dump_func
)dump_send_hardware_message_reply
,
4913 (dump_func
)dump_get_message_reply
,
4916 (dump_func
)dump_get_message_reply_reply
,
4917 (dump_func
)dump_set_win_timer_reply
,
4919 (dump_func
)dump_is_window_hung_reply
,
4920 (dump_func
)dump_get_serial_info_reply
,
4924 (dump_func
)dump_get_async_result_reply
,
4925 (dump_func
)dump_read_reply
,
4926 (dump_func
)dump_write_reply
,
4927 (dump_func
)dump_ioctl_reply
,
4929 (dump_func
)dump_create_named_pipe_reply
,
4931 (dump_func
)dump_create_window_reply
,
4933 (dump_func
)dump_get_desktop_window_reply
,
4934 (dump_func
)dump_set_window_owner_reply
,
4935 (dump_func
)dump_get_window_info_reply
,
4936 (dump_func
)dump_set_window_info_reply
,
4937 (dump_func
)dump_set_parent_reply
,
4938 (dump_func
)dump_get_window_parents_reply
,
4939 (dump_func
)dump_get_window_children_reply
,
4940 (dump_func
)dump_get_window_children_from_point_reply
,
4941 (dump_func
)dump_get_window_tree_reply
,
4942 (dump_func
)dump_set_window_pos_reply
,
4943 (dump_func
)dump_get_window_rectangles_reply
,
4944 (dump_func
)dump_get_window_text_reply
,
4946 (dump_func
)dump_get_windows_offset_reply
,
4947 (dump_func
)dump_get_visible_region_reply
,
4948 (dump_func
)dump_get_surface_region_reply
,
4949 (dump_func
)dump_get_window_region_reply
,
4951 (dump_func
)dump_get_update_region_reply
,
4955 (dump_func
)dump_remove_window_property_reply
,
4956 (dump_func
)dump_get_window_property_reply
,
4957 (dump_func
)dump_get_window_properties_reply
,
4958 (dump_func
)dump_create_winstation_reply
,
4959 (dump_func
)dump_open_winstation_reply
,
4961 (dump_func
)dump_get_process_winstation_reply
,
4963 (dump_func
)dump_enum_winstation_reply
,
4964 (dump_func
)dump_create_desktop_reply
,
4965 (dump_func
)dump_open_desktop_reply
,
4966 (dump_func
)dump_open_input_desktop_reply
,
4968 (dump_func
)dump_get_thread_desktop_reply
,
4970 (dump_func
)dump_enum_desktop_reply
,
4971 (dump_func
)dump_set_user_object_info_reply
,
4972 (dump_func
)dump_register_hotkey_reply
,
4973 (dump_func
)dump_unregister_hotkey_reply
,
4975 (dump_func
)dump_get_thread_input_reply
,
4976 (dump_func
)dump_get_last_input_time_reply
,
4977 (dump_func
)dump_get_key_state_reply
,
4979 (dump_func
)dump_set_foreground_window_reply
,
4980 (dump_func
)dump_set_focus_window_reply
,
4981 (dump_func
)dump_set_active_window_reply
,
4982 (dump_func
)dump_set_capture_window_reply
,
4983 (dump_func
)dump_set_caret_window_reply
,
4984 (dump_func
)dump_set_caret_info_reply
,
4985 (dump_func
)dump_set_hook_reply
,
4986 (dump_func
)dump_remove_hook_reply
,
4987 (dump_func
)dump_start_hook_chain_reply
,
4989 (dump_func
)dump_get_hook_info_reply
,
4990 (dump_func
)dump_create_class_reply
,
4991 (dump_func
)dump_destroy_class_reply
,
4992 (dump_func
)dump_set_class_info_reply
,
4993 (dump_func
)dump_open_clipboard_reply
,
4994 (dump_func
)dump_close_clipboard_reply
,
4996 (dump_func
)dump_set_clipboard_data_reply
,
4997 (dump_func
)dump_get_clipboard_data_reply
,
4998 (dump_func
)dump_get_clipboard_formats_reply
,
4999 (dump_func
)dump_enum_clipboard_formats_reply
,
5000 (dump_func
)dump_release_clipboard_reply
,
5001 (dump_func
)dump_get_clipboard_info_reply
,
5002 (dump_func
)dump_set_clipboard_viewer_reply
,
5005 (dump_func
)dump_open_token_reply
,
5006 (dump_func
)dump_set_global_windows_reply
,
5007 (dump_func
)dump_adjust_token_privileges_reply
,
5008 (dump_func
)dump_get_token_privileges_reply
,
5009 (dump_func
)dump_check_token_privileges_reply
,
5010 (dump_func
)dump_duplicate_token_reply
,
5011 (dump_func
)dump_filter_token_reply
,
5012 (dump_func
)dump_access_check_reply
,
5013 (dump_func
)dump_get_token_sid_reply
,
5014 (dump_func
)dump_get_token_groups_reply
,
5015 (dump_func
)dump_get_token_default_dacl_reply
,
5018 (dump_func
)dump_get_security_object_reply
,
5019 (dump_func
)dump_get_system_handles_reply
,
5020 (dump_func
)dump_create_mailslot_reply
,
5021 (dump_func
)dump_set_mailslot_info_reply
,
5022 (dump_func
)dump_create_directory_reply
,
5023 (dump_func
)dump_open_directory_reply
,
5024 (dump_func
)dump_get_directory_entry_reply
,
5025 (dump_func
)dump_create_symlink_reply
,
5026 (dump_func
)dump_open_symlink_reply
,
5027 (dump_func
)dump_query_symlink_reply
,
5028 (dump_func
)dump_get_object_info_reply
,
5029 (dump_func
)dump_get_object_type_reply
,
5030 (dump_func
)dump_get_object_types_reply
,
5031 (dump_func
)dump_allocate_locally_unique_id_reply
,
5032 (dump_func
)dump_create_device_manager_reply
,
5035 (dump_func
)dump_get_next_device_request_reply
,
5036 (dump_func
)dump_get_kernel_object_ptr_reply
,
5040 (dump_func
)dump_get_kernel_object_handle_reply
,
5041 (dump_func
)dump_make_process_system_reply
,
5042 (dump_func
)dump_get_token_info_reply
,
5043 (dump_func
)dump_create_linked_token_reply
,
5044 (dump_func
)dump_create_completion_reply
,
5045 (dump_func
)dump_open_completion_reply
,
5047 (dump_func
)dump_remove_completion_reply
,
5048 (dump_func
)dump_query_completion_reply
,
5054 (dump_func
)dump_get_window_layered_info_reply
,
5056 (dump_func
)dump_alloc_user_handle_reply
,
5058 (dump_func
)dump_set_cursor_reply
,
5059 (dump_func
)dump_get_cursor_history_reply
,
5060 (dump_func
)dump_get_rawinput_buffer_reply
,
5062 (dump_func
)dump_get_rawinput_devices_reply
,
5063 (dump_func
)dump_create_job_reply
,
5064 (dump_func
)dump_open_job_reply
,
5069 (dump_func
)dump_get_job_info_reply
,
5073 (dump_func
)dump_get_next_thread_reply
,
5076 static const char * const req_names
[REQ_NB_REQUESTS
] = {
5078 "get_new_process_info",
5081 "init_process_done",
5082 "init_first_thread",
5084 "terminate_process",
5087 "get_process_debug_info",
5088 "get_process_image_name",
5089 "get_process_vm_counters",
5109 "create_keyed_event",
5116 "release_semaphore",
5121 "alloc_file_handle",
5122 "get_handle_unix_name",
5124 "get_directory_cache_entry",
5133 "get_next_console_request",
5134 "read_directory_changes",
5141 "get_mapping_committed_range",
5142 "add_mapping_committed_range",
5144 "get_mapping_filename",
5148 "queue_exception_event",
5149 "get_exception_status",
5150 "continue_debug_event",
5152 "set_debug_obj_info",
5153 "read_process_memory",
5154 "write_process_memory",
5167 "set_registry_notification",
5173 "get_thread_context",
5174 "set_thread_context",
5175 "get_selector_entry",
5179 "get_atom_information",
5184 "get_process_idle_event",
5186 "post_quit_message",
5187 "send_hardware_message",
5190 "accept_hardware_message",
5191 "get_message_reply",
5204 "create_named_pipe",
5205 "set_named_pipe_info",
5208 "get_desktop_window",
5213 "get_window_parents",
5214 "get_window_children",
5215 "get_window_children_from_point",
5218 "get_window_rectangles",
5221 "get_windows_offset",
5222 "get_visible_region",
5223 "get_surface_region",
5224 "get_window_region",
5225 "set_window_region",
5226 "get_update_region",
5227 "update_window_zorder",
5229 "set_window_property",
5230 "remove_window_property",
5231 "get_window_property",
5232 "get_window_properties",
5233 "create_winstation",
5236 "get_process_winstation",
5237 "set_process_winstation",
5241 "open_input_desktop",
5243 "get_thread_desktop",
5244 "set_thread_desktop",
5246 "set_user_object_info",
5248 "unregister_hotkey",
5249 "attach_thread_input",
5251 "get_last_input_time",
5254 "set_foreground_window",
5256 "set_active_window",
5257 "set_capture_window",
5263 "finish_hook_chain",
5271 "set_clipboard_data",
5272 "get_clipboard_data",
5273 "get_clipboard_formats",
5274 "enum_clipboard_formats",
5275 "release_clipboard",
5276 "get_clipboard_info",
5277 "set_clipboard_viewer",
5278 "add_clipboard_listener",
5279 "remove_clipboard_listener",
5281 "set_global_windows",
5282 "adjust_token_privileges",
5283 "get_token_privileges",
5284 "check_token_privileges",
5290 "get_token_default_dacl",
5291 "set_token_default_dacl",
5292 "set_security_object",
5293 "get_security_object",
5294 "get_system_handles",
5296 "set_mailslot_info",
5299 "get_directory_entry",
5306 "allocate_locally_unique_id",
5307 "create_device_manager",
5310 "get_next_device_request",
5311 "get_kernel_object_ptr",
5312 "set_kernel_object_ptr",
5313 "grab_kernel_object",
5314 "release_kernel_object",
5315 "get_kernel_object_handle",
5316 "make_process_system",
5318 "create_linked_token",
5319 "create_completion",
5322 "remove_completion",
5324 "set_completion_info",
5325 "add_fd_completion",
5326 "set_fd_completion_mode",
5329 "get_window_layered_info",
5330 "set_window_layered_info",
5331 "alloc_user_handle",
5334 "get_cursor_history",
5335 "get_rawinput_buffer",
5336 "update_rawinput_devices",
5337 "get_rawinput_devices",
5343 "set_job_completion_port",
5357 { "ABANDONED_WAIT_0", STATUS_ABANDONED_WAIT_0
},
5358 { "ACCESS_DENIED", STATUS_ACCESS_DENIED
},
5359 { "ACCESS_VIOLATION", STATUS_ACCESS_VIOLATION
},
5360 { "ADDRESS_ALREADY_ASSOCIATED", STATUS_ADDRESS_ALREADY_ASSOCIATED
},
5361 { "ALERTED", STATUS_ALERTED
},
5362 { "BAD_DEVICE_TYPE", STATUS_BAD_DEVICE_TYPE
},
5363 { "BAD_IMPERSONATION_LEVEL", STATUS_BAD_IMPERSONATION_LEVEL
},
5364 { "BUFFER_OVERFLOW", STATUS_BUFFER_OVERFLOW
},
5365 { "BUFFER_TOO_SMALL", STATUS_BUFFER_TOO_SMALL
},
5366 { "CANCELLED", STATUS_CANCELLED
},
5367 { "CANNOT_DELETE", STATUS_CANNOT_DELETE
},
5368 { "CANT_OPEN_ANONYMOUS", STATUS_CANT_OPEN_ANONYMOUS
},
5369 { "CHILD_MUST_BE_VOLATILE", STATUS_CHILD_MUST_BE_VOLATILE
},
5370 { "CONNECTION_ABORTED", STATUS_CONNECTION_ABORTED
},
5371 { "CONNECTION_ACTIVE", STATUS_CONNECTION_ACTIVE
},
5372 { "CONNECTION_REFUSED", STATUS_CONNECTION_REFUSED
},
5373 { "CONNECTION_RESET", STATUS_CONNECTION_RESET
},
5374 { "DEBUGGER_INACTIVE", STATUS_DEBUGGER_INACTIVE
},
5375 { "DEVICE_BUSY", STATUS_DEVICE_BUSY
},
5376 { "DEVICE_NOT_READY", STATUS_DEVICE_NOT_READY
},
5377 { "DIRECTORY_NOT_EMPTY", STATUS_DIRECTORY_NOT_EMPTY
},
5378 { "DISK_FULL", STATUS_DISK_FULL
},
5379 { "DLL_NOT_FOUND", STATUS_DLL_NOT_FOUND
},
5380 { "ERROR_CLASS_ALREADY_EXISTS", 0xc0010000 | ERROR_CLASS_ALREADY_EXISTS
},
5381 { "ERROR_CLASS_DOES_NOT_EXIST", 0xc0010000 | ERROR_CLASS_DOES_NOT_EXIST
},
5382 { "ERROR_CLASS_HAS_WINDOWS", 0xc0010000 | ERROR_CLASS_HAS_WINDOWS
},
5383 { "ERROR_CLIPBOARD_NOT_OPEN", 0xc0010000 | ERROR_CLIPBOARD_NOT_OPEN
},
5384 { "ERROR_HOTKEY_ALREADY_REGISTERED", 0xc0010000 | ERROR_HOTKEY_ALREADY_REGISTERED
},
5385 { "ERROR_HOTKEY_NOT_REGISTERED", 0xc0010000 | ERROR_HOTKEY_NOT_REGISTERED
},
5386 { "ERROR_INVALID_CURSOR_HANDLE", 0xc0010000 | ERROR_INVALID_CURSOR_HANDLE
},
5387 { "ERROR_INVALID_INDEX", 0xc0010000 | ERROR_INVALID_INDEX
},
5388 { "ERROR_INVALID_WINDOW_HANDLE", 0xc0010000 | ERROR_INVALID_WINDOW_HANDLE
},
5389 { "ERROR_NO_MORE_USER_HANDLES", 0xc0010000 | ERROR_NO_MORE_USER_HANDLES
},
5390 { "ERROR_WINDOW_OF_OTHER_THREAD", 0xc0010000 | ERROR_WINDOW_OF_OTHER_THREAD
},
5391 { "FILE_DELETED", STATUS_FILE_DELETED
},
5392 { "FILE_INVALID", STATUS_FILE_INVALID
},
5393 { "FILE_IS_A_DIRECTORY", STATUS_FILE_IS_A_DIRECTORY
},
5394 { "FILE_LOCK_CONFLICT", STATUS_FILE_LOCK_CONFLICT
},
5395 { "GENERIC_NOT_MAPPED", STATUS_GENERIC_NOT_MAPPED
},
5396 { "HANDLES_CLOSED", STATUS_HANDLES_CLOSED
},
5397 { "HANDLE_NOT_CLOSABLE", STATUS_HANDLE_NOT_CLOSABLE
},
5398 { "HOST_UNREACHABLE", STATUS_HOST_UNREACHABLE
},
5399 { "ILLEGAL_FUNCTION", STATUS_ILLEGAL_FUNCTION
},
5400 { "IMAGE_NOT_AT_BASE", STATUS_IMAGE_NOT_AT_BASE
},
5401 { "INFO_LENGTH_MISMATCH", STATUS_INFO_LENGTH_MISMATCH
},
5402 { "INSTANCE_NOT_AVAILABLE", STATUS_INSTANCE_NOT_AVAILABLE
},
5403 { "INSUFFICIENT_RESOURCES", STATUS_INSUFFICIENT_RESOURCES
},
5404 { "INVALID_ADDRESS", STATUS_INVALID_ADDRESS
},
5405 { "INVALID_ADDRESS_COMPONENT", STATUS_INVALID_ADDRESS_COMPONENT
},
5406 { "INVALID_CID", STATUS_INVALID_CID
},
5407 { "INVALID_CONNECTION", STATUS_INVALID_CONNECTION
},
5408 { "INVALID_DEVICE_REQUEST", STATUS_INVALID_DEVICE_REQUEST
},
5409 { "INVALID_FILE_FOR_SECTION", STATUS_INVALID_FILE_FOR_SECTION
},
5410 { "INVALID_HANDLE", STATUS_INVALID_HANDLE
},
5411 { "INVALID_IMAGE_FORMAT", STATUS_INVALID_IMAGE_FORMAT
},
5412 { "INVALID_IMAGE_NE_FORMAT", STATUS_INVALID_IMAGE_NE_FORMAT
},
5413 { "INVALID_IMAGE_NOT_MZ", STATUS_INVALID_IMAGE_NOT_MZ
},
5414 { "INVALID_IMAGE_PROTECT", STATUS_INVALID_IMAGE_PROTECT
},
5415 { "INVALID_IMAGE_WIN_16", STATUS_INVALID_IMAGE_WIN_16
},
5416 { "INVALID_IMAGE_WIN_64", STATUS_INVALID_IMAGE_WIN_64
},
5417 { "INVALID_LOCK_SEQUENCE", STATUS_INVALID_LOCK_SEQUENCE
},
5418 { "INVALID_OWNER", STATUS_INVALID_OWNER
},
5419 { "INVALID_PARAMETER", STATUS_INVALID_PARAMETER
},
5420 { "INVALID_PIPE_STATE", STATUS_INVALID_PIPE_STATE
},
5421 { "INVALID_READ_MODE", STATUS_INVALID_READ_MODE
},
5422 { "INVALID_SECURITY_DESCR", STATUS_INVALID_SECURITY_DESCR
},
5423 { "IO_TIMEOUT", STATUS_IO_TIMEOUT
},
5424 { "KERNEL_APC", STATUS_KERNEL_APC
},
5425 { "KEY_DELETED", STATUS_KEY_DELETED
},
5426 { "MAPPED_FILE_SIZE_ZERO", STATUS_MAPPED_FILE_SIZE_ZERO
},
5427 { "MORE_PROCESSING_REQUIRED", STATUS_MORE_PROCESSING_REQUIRED
},
5428 { "MUTANT_NOT_OWNED", STATUS_MUTANT_NOT_OWNED
},
5429 { "NAME_TOO_LONG", STATUS_NAME_TOO_LONG
},
5430 { "NETWORK_BUSY", STATUS_NETWORK_BUSY
},
5431 { "NETWORK_UNREACHABLE", STATUS_NETWORK_UNREACHABLE
},
5432 { "NOT_ALL_ASSIGNED", STATUS_NOT_ALL_ASSIGNED
},
5433 { "NOT_A_DIRECTORY", STATUS_NOT_A_DIRECTORY
},
5434 { "NOT_FOUND", STATUS_NOT_FOUND
},
5435 { "NOT_IMPLEMENTED", STATUS_NOT_IMPLEMENTED
},
5436 { "NOT_MAPPED_VIEW", STATUS_NOT_MAPPED_VIEW
},
5437 { "NOT_REGISTRY_FILE", STATUS_NOT_REGISTRY_FILE
},
5438 { "NOT_SAME_DEVICE", STATUS_NOT_SAME_DEVICE
},
5439 { "NOT_SUPPORTED", STATUS_NOT_SUPPORTED
},
5440 { "NO_DATA_DETECTED", STATUS_NO_DATA_DETECTED
},
5441 { "NO_IMPERSONATION_TOKEN", STATUS_NO_IMPERSONATION_TOKEN
},
5442 { "NO_MEMORY", STATUS_NO_MEMORY
},
5443 { "NO_MORE_ENTRIES", STATUS_NO_MORE_ENTRIES
},
5444 { "NO_SUCH_DEVICE", STATUS_NO_SUCH_DEVICE
},
5445 { "NO_SUCH_FILE", STATUS_NO_SUCH_FILE
},
5446 { "NO_TOKEN", STATUS_NO_TOKEN
},
5447 { "OBJECT_NAME_COLLISION", STATUS_OBJECT_NAME_COLLISION
},
5448 { "OBJECT_NAME_EXISTS", STATUS_OBJECT_NAME_EXISTS
},
5449 { "OBJECT_NAME_INVALID", STATUS_OBJECT_NAME_INVALID
},
5450 { "OBJECT_NAME_NOT_FOUND", STATUS_OBJECT_NAME_NOT_FOUND
},
5451 { "OBJECT_PATH_INVALID", STATUS_OBJECT_PATH_INVALID
},
5452 { "OBJECT_PATH_NOT_FOUND", STATUS_OBJECT_PATH_NOT_FOUND
},
5453 { "OBJECT_PATH_SYNTAX_BAD", STATUS_OBJECT_PATH_SYNTAX_BAD
},
5454 { "OBJECT_TYPE_MISMATCH", STATUS_OBJECT_TYPE_MISMATCH
},
5455 { "PENDING", STATUS_PENDING
},
5456 { "PIPE_BROKEN", STATUS_PIPE_BROKEN
},
5457 { "PIPE_BUSY", STATUS_PIPE_BUSY
},
5458 { "PIPE_CLOSING", STATUS_PIPE_CLOSING
},
5459 { "PIPE_CONNECTED", STATUS_PIPE_CONNECTED
},
5460 { "PIPE_DISCONNECTED", STATUS_PIPE_DISCONNECTED
},
5461 { "PIPE_EMPTY", STATUS_PIPE_EMPTY
},
5462 { "PIPE_LISTENING", STATUS_PIPE_LISTENING
},
5463 { "PIPE_NOT_AVAILABLE", STATUS_PIPE_NOT_AVAILABLE
},
5464 { "PORT_NOT_SET", STATUS_PORT_NOT_SET
},
5465 { "PRIVILEGE_NOT_HELD", STATUS_PRIVILEGE_NOT_HELD
},
5466 { "PROCESS_IN_JOB", STATUS_PROCESS_IN_JOB
},
5467 { "PROCESS_IS_TERMINATING", STATUS_PROCESS_IS_TERMINATING
},
5468 { "PROCESS_NOT_IN_JOB", STATUS_PROCESS_NOT_IN_JOB
},
5469 { "REPARSE_POINT_NOT_RESOLVED", STATUS_REPARSE_POINT_NOT_RESOLVED
},
5470 { "SECTION_TOO_BIG", STATUS_SECTION_TOO_BIG
},
5471 { "SEMAPHORE_LIMIT_EXCEEDED", STATUS_SEMAPHORE_LIMIT_EXCEEDED
},
5472 { "SHARING_VIOLATION", STATUS_SHARING_VIOLATION
},
5473 { "SHUTDOWN_IN_PROGRESS", STATUS_SHUTDOWN_IN_PROGRESS
},
5474 { "SUSPEND_COUNT_EXCEEDED", STATUS_SUSPEND_COUNT_EXCEEDED
},
5475 { "THREAD_IS_TERMINATING", STATUS_THREAD_IS_TERMINATING
},
5476 { "TIMEOUT", STATUS_TIMEOUT
},
5477 { "TOO_MANY_OPENED_FILES", STATUS_TOO_MANY_OPENED_FILES
},
5478 { "UNSUCCESSFUL", STATUS_UNSUCCESSFUL
},
5479 { "USER_APC", STATUS_USER_APC
},
5480 { "USER_MAPPED_FILE", STATUS_USER_MAPPED_FILE
},
5481 { "VOLUME_DISMOUNTED", STATUS_VOLUME_DISMOUNTED
},
5482 { "WAS_LOCKED", STATUS_WAS_LOCKED
},
5483 { "WSAEACCES", 0xc0010000 | WSAEACCES
},
5484 { "WSAEADDRINUSE", 0xc0010000 | WSAEADDRINUSE
},
5485 { "WSAEADDRNOTAVAIL", 0xc0010000 | WSAEADDRNOTAVAIL
},
5486 { "WSAEAFNOSUPPORT", 0xc0010000 | WSAEAFNOSUPPORT
},
5487 { "WSAEALREADY", 0xc0010000 | WSAEALREADY
},
5488 { "WSAEBADF", 0xc0010000 | WSAEBADF
},
5489 { "WSAECONNABORTED", 0xc0010000 | WSAECONNABORTED
},
5490 { "WSAECONNREFUSED", 0xc0010000 | WSAECONNREFUSED
},
5491 { "WSAECONNRESET", 0xc0010000 | WSAECONNRESET
},
5492 { "WSAEDESTADDRREQ", 0xc0010000 | WSAEDESTADDRREQ
},
5493 { "WSAEDQUOT", 0xc0010000 | WSAEDQUOT
},
5494 { "WSAEFAULT", 0xc0010000 | WSAEFAULT
},
5495 { "WSAEHOSTDOWN", 0xc0010000 | WSAEHOSTDOWN
},
5496 { "WSAEHOSTUNREACH", 0xc0010000 | WSAEHOSTUNREACH
},
5497 { "WSAEINTR", 0xc0010000 | WSAEINTR
},
5498 { "WSAEINVAL", 0xc0010000 | WSAEINVAL
},
5499 { "WSAEISCONN", 0xc0010000 | WSAEISCONN
},
5500 { "WSAELOOP", 0xc0010000 | WSAELOOP
},
5501 { "WSAEMFILE", 0xc0010000 | WSAEMFILE
},
5502 { "WSAEMSGSIZE", 0xc0010000 | WSAEMSGSIZE
},
5503 { "WSAENAMETOOLONG", 0xc0010000 | WSAENAMETOOLONG
},
5504 { "WSAENETDOWN", 0xc0010000 | WSAENETDOWN
},
5505 { "WSAENETRESET", 0xc0010000 | WSAENETRESET
},
5506 { "WSAENETUNREACH", 0xc0010000 | WSAENETUNREACH
},
5507 { "WSAENOBUFS", 0xc0010000 | WSAENOBUFS
},
5508 { "WSAENOPROTOOPT", 0xc0010000 | WSAENOPROTOOPT
},
5509 { "WSAENOTCONN", 0xc0010000 | WSAENOTCONN
},
5510 { "WSAENOTEMPTY", 0xc0010000 | WSAENOTEMPTY
},
5511 { "WSAENOTSOCK", 0xc0010000 | WSAENOTSOCK
},
5512 { "WSAEOPNOTSUPP", 0xc0010000 | WSAEOPNOTSUPP
},
5513 { "WSAEPFNOSUPPORT", 0xc0010000 | WSAEPFNOSUPPORT
},
5514 { "WSAEPROCLIM", 0xc0010000 | WSAEPROCLIM
},
5515 { "WSAEPROTONOSUPPORT", 0xc0010000 | WSAEPROTONOSUPPORT
},
5516 { "WSAEPROTOTYPE", 0xc0010000 | WSAEPROTOTYPE
},
5517 { "WSAEREMOTE", 0xc0010000 | WSAEREMOTE
},
5518 { "WSAESHUTDOWN", 0xc0010000 | WSAESHUTDOWN
},
5519 { "WSAESOCKTNOSUPPORT", 0xc0010000 | WSAESOCKTNOSUPPORT
},
5520 { "WSAESTALE", 0xc0010000 | WSAESTALE
},
5521 { "WSAETIMEDOUT", 0xc0010000 | WSAETIMEDOUT
},
5522 { "WSAETOOMANYREFS", 0xc0010000 | WSAETOOMANYREFS
},
5523 { "WSAEUSERS", 0xc0010000 | WSAEUSERS
},
5524 { "WSAEWOULDBLOCK", 0xc0010000 | WSAEWOULDBLOCK
},
5528 /* ### make_requests end ### */
5529 /* Everything above this line is generated automatically by tools/make_requests */
5531 static const char *get_status_name( unsigned int status
)
5534 static char buffer
[10];
5538 for (i
= 0; status_names
[i
].name
; i
++)
5539 if (status_names
[i
].value
== status
) return status_names
[i
].name
;
5541 sprintf( buffer
, "%x", status
);
5545 void trace_request(void)
5547 enum request req
= current
->req
.request_header
.req
;
5548 if (req
< REQ_NB_REQUESTS
)
5550 fprintf( stderr
, "%04x: %s(", current
->id
, req_names
[req
] );
5551 if (req_dumpers
[req
])
5553 cur_data
= get_req_data();
5554 cur_size
= get_req_data_size();
5555 req_dumpers
[req
]( ¤t
->req
);
5557 fprintf( stderr
, " )\n" );
5559 else fprintf( stderr
, "%04x: %d(?)\n", current
->id
, req
);
5562 void trace_reply( enum request req
, const union generic_reply
*reply
)
5564 if (req
< REQ_NB_REQUESTS
)
5566 fprintf( stderr
, "%04x: %s() = %s",
5567 current
->id
, req_names
[req
], get_status_name(current
->error
) );
5568 if (reply_dumpers
[req
])
5570 fprintf( stderr
, " {" );
5571 cur_data
= current
->reply_data
;
5572 cur_size
= reply
->reply_header
.reply_size
;
5573 reply_dumpers
[req
]( reply
);
5574 fprintf( stderr
, " }" );
5576 fputc( '\n', stderr
);
5578 else fprintf( stderr
, "%04x: %d() = %s\n",
5579 current
->id
, req
, get_status_name(current
->error
) );