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
26 #include <sys/types.h>
33 #define WIN32_NO_STATUS
40 #include "wine/condrv.h"
42 #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_uints64( const char *prefix
, const unsigned __int64
*ptr
, int len
)
124 fprintf( stderr
, "%s{", prefix
);
125 if (len
-- > 0) dump_uint64( "", ptr
++ );
126 while (len
-- > 0) dump_uint64( ",", ptr
++ );
127 fputc( '}', stderr
);
130 static void dump_rectangle( const char *prefix
, const rectangle_t
*rect
)
132 fprintf( stderr
, "%s{%d,%d;%d,%d}", prefix
,
133 rect
->left
, rect
->top
, rect
->right
, rect
->bottom
);
136 static void dump_ioctl_code( const char *prefix
, const ioctl_code_t
*code
)
140 #define CASE(c) case c: fprintf( stderr, "%s%s", prefix, #c ); break
141 CASE(IOCTL_CONDRV_ACTIVATE
);
142 CASE(IOCTL_CONDRV_BIND_PID
);
143 CASE(IOCTL_CONDRV_CTRL_EVENT
);
144 CASE(IOCTL_CONDRV_FILL_OUTPUT
);
145 CASE(IOCTL_CONDRV_GET_INPUT_INFO
);
146 CASE(IOCTL_CONDRV_GET_MODE
);
147 CASE(IOCTL_CONDRV_GET_OUTPUT_INFO
);
148 CASE(IOCTL_CONDRV_GET_TITLE
);
149 CASE(IOCTL_CONDRV_PEEK
);
150 CASE(IOCTL_CONDRV_READ_CONSOLE
);
151 CASE(IOCTL_CONDRV_READ_INPUT
);
152 CASE(IOCTL_CONDRV_READ_OUTPUT
);
153 CASE(IOCTL_CONDRV_SET_MODE
);
154 CASE(IOCTL_CONDRV_SET_OUTPUT_INFO
);
155 CASE(IOCTL_CONDRV_SETUP_INPUT
);
156 CASE(IOCTL_CONDRV_WRITE_CONSOLE
);
157 CASE(IOCTL_CONDRV_WRITE_INPUT
);
158 CASE(IOCTL_CONDRV_WRITE_OUTPUT
);
159 CASE(FSCTL_DISMOUNT_VOLUME
);
160 CASE(FSCTL_PIPE_DISCONNECT
);
161 CASE(FSCTL_PIPE_LISTEN
);
162 CASE(FSCTL_PIPE_PEEK
);
163 CASE(FSCTL_PIPE_WAIT
);
164 CASE(IOCTL_SERIAL_GET_TIMEOUTS
);
165 CASE(IOCTL_SERIAL_GET_WAIT_MASK
);
166 CASE(IOCTL_SERIAL_SET_TIMEOUTS
);
167 CASE(IOCTL_SERIAL_SET_WAIT_MASK
);
168 CASE(WS_SIO_ADDRESS_LIST_CHANGE
);
169 default: fprintf( stderr
, "%s%08x", prefix
, *code
); break;
174 static void dump_apc_call( const char *prefix
, const apc_call_t
*call
)
176 fprintf( stderr
, "%s{", prefix
);
180 fprintf( stderr
, "APC_NONE" );
183 dump_uint64( "APC_USER,func=", &call
->user
.func
);
184 dump_uints64( ",args=", call
->user
.args
, 3 );
187 dump_uint64( "APC_ASYNC_IO,user=", &call
->async_io
.user
);
188 dump_uint64( ",sb=", &call
->async_io
.sb
);
189 fprintf( stderr
, ",status=%s,result=%u", get_status_name(call
->async_io
.status
), call
->async_io
.result
);
191 case APC_VIRTUAL_ALLOC
:
192 dump_uint64( "APC_VIRTUAL_ALLOC,addr=", &call
->virtual_alloc
.addr
);
193 dump_uint64( ",size=", &call
->virtual_alloc
.size
);
194 dump_uint64( ",zero_bits=", &call
->virtual_alloc
.zero_bits
);
195 fprintf( stderr
, ",op_type=%x,prot=%x", call
->virtual_alloc
.op_type
, call
->virtual_alloc
.prot
);
197 case APC_VIRTUAL_ALLOC_EX
:
198 dump_uint64( "APC_VIRTUAL_ALLOC_EX,addr=", &call
->virtual_alloc_ex
.addr
);
199 dump_uint64( ",size=", &call
->virtual_alloc_ex
.size
);
200 dump_uint64( ",limit_low=", &call
->virtual_alloc_ex
.limit_low
);
201 dump_uint64( ",limit_high=", &call
->virtual_alloc_ex
.limit_high
);
202 dump_uint64( ",align=", &call
->virtual_alloc_ex
.align
);
203 fprintf( stderr
, ",op_type=%x,prot=%x,attributes=%x",
204 call
->virtual_alloc_ex
.op_type
, call
->virtual_alloc_ex
.prot
,
205 call
->virtual_alloc_ex
.attributes
);
207 case APC_VIRTUAL_FREE
:
208 dump_uint64( "APC_VIRTUAL_FREE,addr=", &call
->virtual_free
.addr
);
209 dump_uint64( ",size=", &call
->virtual_free
.size
);
210 fprintf( stderr
, ",op_type=%x", call
->virtual_free
.op_type
);
212 case APC_VIRTUAL_QUERY
:
213 dump_uint64( "APC_VIRTUAL_QUERY,addr=", &call
->virtual_query
.addr
);
215 case APC_VIRTUAL_PROTECT
:
216 dump_uint64( "APC_VIRTUAL_PROTECT,addr=", &call
->virtual_protect
.addr
);
217 dump_uint64( ",size=", &call
->virtual_protect
.size
);
218 fprintf( stderr
, ",prot=%x", call
->virtual_protect
.prot
);
220 case APC_VIRTUAL_FLUSH
:
221 dump_uint64( "APC_VIRTUAL_FLUSH,addr=", &call
->virtual_flush
.addr
);
222 dump_uint64( ",size=", &call
->virtual_flush
.size
);
224 case APC_VIRTUAL_LOCK
:
225 dump_uint64( "APC_VIRTUAL_LOCK,addr=", &call
->virtual_lock
.addr
);
226 dump_uint64( ",size=", &call
->virtual_lock
.size
);
228 case APC_VIRTUAL_UNLOCK
:
229 dump_uint64( "APC_VIRTUAL_UNLOCK,addr=", &call
->virtual_unlock
.addr
);
230 dump_uint64( ",size=", &call
->virtual_unlock
.size
);
233 fprintf( stderr
, "APC_MAP_VIEW,handle=%04x", call
->map_view
.handle
);
234 dump_uint64( ",addr=", &call
->map_view
.addr
);
235 dump_uint64( ",size=", &call
->map_view
.size
);
236 dump_uint64( ",offset=", &call
->map_view
.offset
);
237 dump_uint64( ",zero_bits=", &call
->map_view
.zero_bits
);
238 fprintf( stderr
, ",alloc_type=%x,prot=%x", call
->map_view
.alloc_type
, call
->map_view
.prot
);
240 case APC_MAP_VIEW_EX
:
241 fprintf( stderr
, "APC_MAP_VIEW_EX,handle=%04x", call
->map_view_ex
.handle
);
242 dump_uint64( ",addr=", &call
->map_view_ex
.addr
);
243 dump_uint64( ",size=", &call
->map_view_ex
.size
);
244 dump_uint64( ",offset=", &call
->map_view_ex
.offset
);
245 dump_uint64( ",limit_low=", &call
->map_view_ex
.limit_low
);
246 dump_uint64( ",limit_high=", &call
->map_view_ex
.limit_high
);
247 fprintf( stderr
, ",alloc_type=%x,prot=%x,machine=%04x",
248 call
->map_view_ex
.alloc_type
, call
->map_view_ex
.prot
, call
->map_view_ex
.machine
);
251 dump_uint64( "APC_UNMAP_VIEW,addr=", &call
->unmap_view
.addr
);
253 case APC_CREATE_THREAD
:
254 dump_uint64( "APC_CREATE_THREAD,func=", &call
->create_thread
.func
);
255 dump_uint64( ",arg=", &call
->create_thread
.arg
);
256 dump_uint64( ",zero_bits=", &call
->create_thread
.zero_bits
);
257 dump_uint64( ",reserve=", &call
->create_thread
.reserve
);
258 dump_uint64( ",commit=", &call
->create_thread
.commit
);
259 fprintf( stderr
, ",flags=%x", call
->create_thread
.flags
);
262 fprintf( stderr
, "APC_DUP_HANDLE,src_handle=%04x,dst_process=%04x,access=%x,attributes=%x,options=%x",
263 call
->dup_handle
.src_handle
, call
->dup_handle
.dst_process
, call
->dup_handle
.access
,
264 call
->dup_handle
.attributes
, call
->dup_handle
.options
);
267 fprintf( stderr
, "type=%u", call
->type
);
270 fputc( '}', stderr
);
273 static void dump_apc_result( const char *prefix
, const apc_result_t
*result
)
275 fprintf( stderr
, "%s{", prefix
);
281 fprintf( stderr
, "APC_ASYNC_IO,status=%s,total=%u",
282 get_status_name( result
->async_io
.status
), result
->async_io
.total
);
284 case APC_VIRTUAL_ALLOC
:
285 fprintf( stderr
, "APC_VIRTUAL_ALLOC,status=%s",
286 get_status_name( result
->virtual_alloc
.status
));
287 dump_uint64( ",addr=", &result
->virtual_alloc
.addr
);
288 dump_uint64( ",size=", &result
->virtual_alloc
.size
);
290 case APC_VIRTUAL_FREE
:
291 fprintf( stderr
, "APC_VIRTUAL_FREE,status=%s",
292 get_status_name( result
->virtual_free
.status
));
293 dump_uint64( ",addr=", &result
->virtual_free
.addr
);
294 dump_uint64( ",size=", &result
->virtual_free
.size
);
296 case APC_VIRTUAL_QUERY
:
297 fprintf( stderr
, "APC_VIRTUAL_QUERY,status=%s",
298 get_status_name( result
->virtual_query
.status
));
299 dump_uint64( ",base=", &result
->virtual_query
.base
);
300 dump_uint64( ",alloc_base=", &result
->virtual_query
.alloc_base
);
301 dump_uint64( ",size=", &result
->virtual_query
.size
);
302 fprintf( stderr
, ",state=%x,prot=%x,alloc_prot=%x,alloc_type=%x",
303 result
->virtual_query
.state
, result
->virtual_query
.prot
,
304 result
->virtual_query
.alloc_prot
, result
->virtual_query
.alloc_type
);
306 case APC_VIRTUAL_PROTECT
:
307 fprintf( stderr
, "APC_VIRTUAL_PROTECT,status=%s",
308 get_status_name( result
->virtual_protect
.status
));
309 dump_uint64( ",addr=", &result
->virtual_protect
.addr
);
310 dump_uint64( ",size=", &result
->virtual_protect
.size
);
311 fprintf( stderr
, ",prot=%x", result
->virtual_protect
.prot
);
313 case APC_VIRTUAL_FLUSH
:
314 fprintf( stderr
, "APC_VIRTUAL_FLUSH,status=%s",
315 get_status_name( result
->virtual_flush
.status
));
316 dump_uint64( ",addr=", &result
->virtual_flush
.addr
);
317 dump_uint64( ",size=", &result
->virtual_flush
.size
);
319 case APC_VIRTUAL_LOCK
:
320 fprintf( stderr
, "APC_VIRTUAL_LOCK,status=%s",
321 get_status_name( result
->virtual_lock
.status
));
322 dump_uint64( ",addr=", &result
->virtual_lock
.addr
);
323 dump_uint64( ",size=", &result
->virtual_lock
.size
);
325 case APC_VIRTUAL_UNLOCK
:
326 fprintf( stderr
, "APC_VIRTUAL_UNLOCK,status=%s",
327 get_status_name( result
->virtual_unlock
.status
));
328 dump_uint64( ",addr=", &result
->virtual_unlock
.addr
);
329 dump_uint64( ",size=", &result
->virtual_unlock
.size
);
332 fprintf( stderr
, "APC_MAP_VIEW,status=%s",
333 get_status_name( result
->map_view
.status
));
334 dump_uint64( ",addr=", &result
->map_view
.addr
);
335 dump_uint64( ",size=", &result
->map_view
.size
);
338 fprintf( stderr
, "APC_UNMAP_VIEW,status=%s",
339 get_status_name( result
->unmap_view
.status
) );
341 case APC_CREATE_THREAD
:
342 fprintf( stderr
, "APC_CREATE_THREAD,status=%s,pid=%04x,tid=%04x,handle=%04x",
343 get_status_name( result
->create_thread
.status
),
344 result
->create_thread
.pid
, result
->create_thread
.tid
, result
->create_thread
.handle
);
347 fprintf( stderr
, "APC_DUP_HANDLE,status=%s,handle=%04x",
348 get_status_name( result
->dup_handle
.status
), result
->dup_handle
.handle
);
351 fprintf( stderr
, "type=%u", result
->type
);
354 fputc( '}', stderr
);
357 static void dump_async_data( const char *prefix
, const async_data_t
*data
)
359 fprintf( stderr
, "%s{handle=%04x,event=%04x", prefix
, data
->handle
, data
->event
);
360 dump_uint64( ",iosb=", &data
->iosb
);
361 dump_uint64( ",user=", &data
->user
);
362 dump_uint64( ",apc=", &data
->apc
);
363 dump_uint64( ",apc_context=", &data
->apc_context
);
364 fputc( '}', stderr
);
367 static void dump_irp_params( const char *prefix
, const irp_params_t
*data
)
372 fprintf( stderr
, "%s{NONE}", prefix
);
374 case IRP_CALL_CREATE
:
375 fprintf( stderr
, "%s{CREATE,access=%08x,sharing=%08x,options=%08x",
376 prefix
, data
->create
.access
, data
->create
.sharing
, data
->create
.options
);
377 dump_uint64( ",device=", &data
->create
.device
);
378 fprintf( stderr
, ",file=%08x}", data
->create
.file
);
381 fprintf( stderr
, "%s{CLOSE", prefix
);
382 dump_uint64( ",file=", &data
->close
.file
);
383 fputc( '}', stderr
);
386 fprintf( stderr
, "%s{READ,key=%08x,out_size=%u", prefix
, data
->read
.key
,
387 data
->read
.out_size
);
388 dump_uint64( ",pos=", &data
->read
.pos
);
389 dump_uint64( ",file=", &data
->read
.file
);
390 fputc( '}', stderr
);
393 fprintf( stderr
, "%s{WRITE,key=%08x", prefix
, data
->write
.key
);
394 dump_uint64( ",pos=", &data
->write
.pos
);
395 dump_uint64( ",file=", &data
->write
.file
);
396 fputc( '}', stderr
);
399 fprintf( stderr
, "%s{FLUSH", prefix
);
400 dump_uint64( ",file=", &data
->flush
.file
);
401 fputc( '}', stderr
);
404 fprintf( stderr
, "%s{IOCTL", prefix
);
405 dump_ioctl_code( ",code=", &data
->ioctl
.code
);
406 fprintf( stderr
, ",out_size=%u", data
->ioctl
.out_size
);
407 dump_uint64( ",file=", &data
->ioctl
.file
);
408 fputc( '}', stderr
);
410 case IRP_CALL_VOLUME
:
411 fprintf( stderr
, "%s{VOLUME,class=%u,out_size=%u", prefix
,
412 data
->volume
.info_class
, data
->volume
.out_size
);
413 dump_uint64( ",file=", &data
->volume
.file
);
414 fputc( '}', stderr
);
417 fprintf( stderr
, "%s{FREE", prefix
);
418 dump_uint64( ",obj=", &data
->free
.obj
);
419 fputc( '}', stderr
);
421 case IRP_CALL_CANCEL
:
422 fprintf( stderr
, "%s{CANCEL", prefix
);
423 dump_uint64( ",irp=", &data
->cancel
.irp
);
424 fputc( '}', stderr
);
429 static void dump_hw_input( const char *prefix
, const hw_input_t
*input
)
434 fprintf( stderr
, "%s{type=MOUSE,x=%d,y=%d,data=%08x,flags=%08x,time=%u",
435 prefix
, input
->mouse
.x
, input
->mouse
.y
, input
->mouse
.data
, input
->mouse
.flags
,
437 dump_uint64( ",info=", &input
->mouse
.info
);
438 fputc( '}', stderr
);
441 fprintf( stderr
, "%s{type=KEYBOARD,vkey=%04hx,scan=%04hx,flags=%08x,time=%u",
442 prefix
, input
->kbd
.vkey
, input
->kbd
.scan
, input
->kbd
.flags
, input
->kbd
.time
);
443 dump_uint64( ",info=", &input
->kbd
.info
);
444 fputc( '}', stderr
);
447 fprintf( stderr
, "%s{type=HARDWARE,msg=%04x", prefix
, input
->hw
.msg
);
448 dump_uint64( ",wparam=", &input
->hw
.wparam
);
449 dump_uint64( ",lparam=", &input
->hw
.lparam
);
450 switch (input
->hw
.msg
)
453 fprintf( stderr
, "%s{type=HID,device=%04x,usage=%04x:%04x,count=%u,length=%u}",
454 prefix
, input
->hw
.hid
.device
, HIWORD(input
->hw
.hid
.usage
), LOWORD(input
->hw
.hid
.usage
),
455 input
->hw
.hid
.count
, input
->hw
.hid
.length
);
457 case WM_INPUT_DEVICE_CHANGE
:
458 fprintf( stderr
, "%s{type=HID,device=%04x,usage=%04x:%04x}",
459 prefix
, input
->hw
.hid
.device
, HIWORD(input
->hw
.hid
.usage
), LOWORD(input
->hw
.hid
.usage
) );
462 fputc( '}', stderr
);
465 fprintf( stderr
, "%s{type=%04x}", prefix
, input
->type
);
470 static void dump_luid( const char *prefix
, const struct luid
*luid
)
472 fprintf( stderr
, "%s%d.%u", prefix
, luid
->high_part
, luid
->low_part
);
475 static void dump_generic_map( const char *prefix
, const generic_map_t
*map
)
477 fprintf( stderr
, "%s{r=%08x,w=%08x,x=%08x,a=%08x}",
478 prefix
, map
->read
, map
->write
, map
->exec
, map
->all
);
481 static void dump_varargs_ints( const char *prefix
, data_size_t size
)
483 const int *data
= cur_data
;
484 data_size_t len
= size
/ sizeof(*data
);
486 fprintf( stderr
,"%s{", prefix
);
489 fprintf( stderr
, "%d", *data
++ );
490 if (--len
) fputc( ',', stderr
);
492 fputc( '}', stderr
);
496 static void dump_varargs_uints( const char *prefix
, data_size_t size
)
498 const unsigned int *data
= cur_data
;
500 dump_uints( prefix
, data
, size
/ sizeof(*data
) );
504 static void dump_varargs_uints64( const char *prefix
, data_size_t size
)
506 const unsigned __int64
*data
= cur_data
;
508 dump_uints64( prefix
, data
, size
/ sizeof(*data
) );
512 static void dump_varargs_ushorts( const char *prefix
, data_size_t size
)
514 const unsigned short *data
= cur_data
;
515 data_size_t len
= size
/ sizeof(*data
);
517 fprintf( stderr
, "%s{", prefix
);
520 fprintf( stderr
, "%04x", *data
++ );
521 if (--len
) fputc( ',', stderr
);
523 fputc( '}', stderr
);
527 static void dump_varargs_apc_call( const char *prefix
, data_size_t size
)
529 const apc_call_t
*call
= cur_data
;
531 if (size
>= sizeof(*call
))
533 dump_apc_call( prefix
, call
);
534 size
= sizeof(*call
);
536 else fprintf( stderr
, "%s{}", prefix
);
540 static void dump_varargs_apc_result( const char *prefix
, data_size_t size
)
542 const apc_result_t
*result
= cur_data
;
544 if (size
>= sizeof(*result
))
546 dump_apc_result( prefix
, result
);
547 size
= sizeof(*result
);
552 static void dump_varargs_select_op( const char *prefix
, data_size_t size
)
558 fprintf( stderr
, "%s{}", prefix
);
561 memset( &data
, 0, sizeof(data
) );
562 memcpy( &data
, cur_data
, min( size
, sizeof(data
) ));
564 fprintf( stderr
, "%s{", prefix
);
568 fprintf( stderr
, "NONE" );
571 case SELECT_WAIT_ALL
:
572 fprintf( stderr
, "%s", data
.op
== SELECT_WAIT
? "WAIT" : "WAIT_ALL" );
573 if (size
> offsetof( select_op_t
, wait
.handles
))
574 dump_handles( ",handles=", data
.wait
.handles
,
575 min( size
, sizeof(data
.wait
) ) - offsetof( select_op_t
, wait
.handles
));
577 case SELECT_SIGNAL_AND_WAIT
:
578 fprintf( stderr
, "SIGNAL_AND_WAIT,signal=%04x,wait=%04x",
579 data
.signal_and_wait
.signal
, data
.signal_and_wait
.wait
);
581 case SELECT_KEYED_EVENT_WAIT
:
582 case SELECT_KEYED_EVENT_RELEASE
:
583 fprintf( stderr
, "KEYED_EVENT_%s,handle=%04x",
584 data
.op
== SELECT_KEYED_EVENT_WAIT
? "WAIT" : "RELEASE",
585 data
.keyed_event
.handle
);
586 dump_uint64( ",key=", &data
.keyed_event
.key
);
589 fprintf( stderr
, "op=%u", data
.op
);
592 fputc( '}', stderr
);
596 static void dump_varargs_user_handles( const char *prefix
, data_size_t size
)
598 const user_handle_t
*data
= cur_data
;
599 data_size_t len
= size
/ sizeof(*data
);
601 fprintf( stderr
,"%s{", prefix
);
604 fprintf( stderr
, "%08x", *data
++ );
605 if (--len
) fputc( ',', stderr
);
607 fputc( '}', stderr
);
611 static void dump_varargs_bytes( const char *prefix
, data_size_t size
)
613 const unsigned char *data
= cur_data
;
614 data_size_t len
= min( 1024, size
);
616 fprintf( stderr
,"%s{", prefix
);
619 fprintf( stderr
, "%02x", *data
++ );
620 if (--len
) fputc( ',', stderr
);
622 if (size
> 1024) fprintf( stderr
, "...(total %u)", size
);
623 fputc( '}', stderr
);
627 static void dump_varargs_string( const char *prefix
, data_size_t size
)
629 fprintf( stderr
, "%s\"%.*s\"", prefix
, (int)size
, (const char *)cur_data
);
633 static void dump_varargs_unicode_str( const char *prefix
, data_size_t size
)
635 fprintf( stderr
, "%sL\"", prefix
);
636 dump_strW( cur_data
, size
, stderr
, "\"\"" );
637 fputc( '\"', stderr
);
641 static void dump_varargs_context( const char *prefix
, data_size_t size
)
643 const context_t
*context
= cur_data
;
649 fprintf( stderr
, "%s{}", prefix
);
652 size
= min( size
, sizeof(ctx
) );
653 memset( &ctx
, 0, sizeof(ctx
) );
654 memcpy( &ctx
, context
, size
);
658 case IMAGE_FILE_MACHINE_I386
:
659 fprintf( stderr
, "%s{machine=i386", prefix
);
660 if (ctx
.flags
& SERVER_CTX_CONTROL
)
661 fprintf( stderr
, ",eip=%08x,esp=%08x,ebp=%08x,eflags=%08x,cs=%04x,ss=%04x",
662 ctx
.ctl
.i386_regs
.eip
, ctx
.ctl
.i386_regs
.esp
, ctx
.ctl
.i386_regs
.ebp
,
663 ctx
.ctl
.i386_regs
.eflags
, ctx
.ctl
.i386_regs
.cs
, ctx
.ctl
.i386_regs
.ss
);
664 if (ctx
.flags
& SERVER_CTX_SEGMENTS
)
665 fprintf( stderr
, ",ds=%04x,es=%04x,fs=%04x,gs=%04x",
666 ctx
.seg
.i386_regs
.ds
, ctx
.seg
.i386_regs
.es
,
667 ctx
.seg
.i386_regs
.fs
, ctx
.seg
.i386_regs
.gs
);
668 if (ctx
.flags
& SERVER_CTX_INTEGER
)
669 fprintf( stderr
, ",eax=%08x,ebx=%08x,ecx=%08x,edx=%08x,esi=%08x,edi=%08x",
670 ctx
.integer
.i386_regs
.eax
, ctx
.integer
.i386_regs
.ebx
, ctx
.integer
.i386_regs
.ecx
,
671 ctx
.integer
.i386_regs
.edx
, ctx
.integer
.i386_regs
.esi
, ctx
.integer
.i386_regs
.edi
);
672 if (ctx
.flags
& SERVER_CTX_DEBUG_REGISTERS
)
673 fprintf( stderr
, ",dr0=%08x,dr1=%08x,dr2=%08x,dr3=%08x,dr6=%08x,dr7=%08x",
674 ctx
.debug
.i386_regs
.dr0
, ctx
.debug
.i386_regs
.dr1
, ctx
.debug
.i386_regs
.dr2
,
675 ctx
.debug
.i386_regs
.dr3
, ctx
.debug
.i386_regs
.dr6
, ctx
.debug
.i386_regs
.dr7
);
676 if (ctx
.flags
& SERVER_CTX_FLOATING_POINT
)
678 fprintf( stderr
, ",fp.ctrl=%08x,fp.status=%08x,fp.tag=%08x,fp.err_off=%08x,fp.err_sel=%08x",
679 ctx
.fp
.i386_regs
.ctrl
, ctx
.fp
.i386_regs
.status
, ctx
.fp
.i386_regs
.tag
,
680 ctx
.fp
.i386_regs
.err_off
, ctx
.fp
.i386_regs
.err_sel
);
681 fprintf( stderr
, ",fp.data_off=%08x,fp.data_sel=%08x,fp.cr0npx=%08x",
682 ctx
.fp
.i386_regs
.data_off
, ctx
.fp
.i386_regs
.data_sel
, ctx
.fp
.i386_regs
.cr0npx
);
683 for (i
= 0; i
< 8; i
++)
685 unsigned __int64 reg
[2];
686 memset( reg
, 0, sizeof(reg
) );
687 memcpy( reg
, &ctx
.fp
.i386_regs
.regs
[10 * i
], 10 );
688 fprintf( stderr
, ",fp.reg%u=", i
);
689 dump_uint128( "", reg
);
692 if (ctx
.flags
& SERVER_CTX_EXTENDED_REGISTERS
)
693 dump_uints( ",extended=", (const unsigned int *)ctx
.ext
.i386_regs
,
694 sizeof(ctx
.ext
.i386_regs
) / sizeof(int) );
695 if (ctx
.flags
& SERVER_CTX_YMM_REGISTERS
)
696 for (i
= 0; i
< 16; i
++)
698 fprintf( stderr
, ",ymm%u=", i
);
699 dump_uint128( "", (const unsigned __int64
*)&ctx
.ymm
.regs
.ymm_high
[i
] );
702 case IMAGE_FILE_MACHINE_AMD64
:
703 fprintf( stderr
, "%s{machine=x86_64", prefix
);
704 if (ctx
.flags
& SERVER_CTX_CONTROL
)
706 dump_uint64( ",rip=", &ctx
.ctl
.x86_64_regs
.rip
);
707 dump_uint64( ",rbp=", &ctx
.ctl
.x86_64_regs
.rbp
);
708 dump_uint64( ",rsp=", &ctx
.ctl
.x86_64_regs
.rsp
);
709 fprintf( stderr
, ",cs=%04x,ss=%04x,flags=%08x",
710 ctx
.ctl
.x86_64_regs
.cs
, ctx
.ctl
.x86_64_regs
.ss
, ctx
.ctl
.x86_64_regs
.flags
);
712 if (ctx
.flags
& SERVER_CTX_INTEGER
)
714 dump_uint64( ",rax=", &ctx
.integer
.x86_64_regs
.rax
);
715 dump_uint64( ",rbx=", &ctx
.integer
.x86_64_regs
.rbx
);
716 dump_uint64( ",rcx=", &ctx
.integer
.x86_64_regs
.rcx
);
717 dump_uint64( ",rdx=", &ctx
.integer
.x86_64_regs
.rdx
);
718 dump_uint64( ",rsi=", &ctx
.integer
.x86_64_regs
.rsi
);
719 dump_uint64( ",rdi=", &ctx
.integer
.x86_64_regs
.rdi
);
720 dump_uint64( ",r8=", &ctx
.integer
.x86_64_regs
.r8
);
721 dump_uint64( ",r9=", &ctx
.integer
.x86_64_regs
.r9
);
722 dump_uint64( ",r10=", &ctx
.integer
.x86_64_regs
.r10
);
723 dump_uint64( ",r11=", &ctx
.integer
.x86_64_regs
.r11
);
724 dump_uint64( ",r12=", &ctx
.integer
.x86_64_regs
.r12
);
725 dump_uint64( ",r13=", &ctx
.integer
.x86_64_regs
.r13
);
726 dump_uint64( ",r14=", &ctx
.integer
.x86_64_regs
.r14
);
727 dump_uint64( ",r15=", &ctx
.integer
.x86_64_regs
.r15
);
729 if (ctx
.flags
& SERVER_CTX_SEGMENTS
)
730 fprintf( stderr
, ",ds=%04x,es=%04x,fs=%04x,gs=%04x",
731 ctx
.seg
.x86_64_regs
.ds
, ctx
.seg
.x86_64_regs
.es
,
732 ctx
.seg
.x86_64_regs
.fs
, ctx
.seg
.x86_64_regs
.gs
);
733 if (ctx
.flags
& SERVER_CTX_DEBUG_REGISTERS
)
735 dump_uint64( ",dr0=", &ctx
.debug
.x86_64_regs
.dr0
);
736 dump_uint64( ",dr1=", &ctx
.debug
.x86_64_regs
.dr1
);
737 dump_uint64( ",dr2=", &ctx
.debug
.x86_64_regs
.dr2
);
738 dump_uint64( ",dr3=", &ctx
.debug
.x86_64_regs
.dr3
);
739 dump_uint64( ",dr6=", &ctx
.debug
.x86_64_regs
.dr6
);
740 dump_uint64( ",dr7=", &ctx
.debug
.x86_64_regs
.dr7
);
742 if (ctx
.flags
& SERVER_CTX_FLOATING_POINT
)
743 for (i
= 0; i
< 32; i
++)
745 fprintf( stderr
, ",fp%u=", i
);
746 dump_uint128( "", (const unsigned __int64
*)&ctx
.fp
.x86_64_regs
.fpregs
[i
] );
748 if (ctx
.flags
& SERVER_CTX_YMM_REGISTERS
)
749 for (i
= 0; i
< 16; i
++)
751 fprintf( stderr
, ",ymm%u=", i
);
752 dump_uint128( "", (const unsigned __int64
*)&ctx
.ymm
.regs
.ymm_high
[i
] );
755 case IMAGE_FILE_MACHINE_ARMNT
:
756 fprintf( stderr
, "%s{machine=arm", prefix
);
757 if (ctx
.flags
& SERVER_CTX_CONTROL
)
758 fprintf( stderr
, ",sp=%08x,lr=%08x,pc=%08x,cpsr=%08x",
759 ctx
.ctl
.arm_regs
.sp
, ctx
.ctl
.arm_regs
.lr
,
760 ctx
.ctl
.arm_regs
.pc
, ctx
.ctl
.arm_regs
.cpsr
);
761 if (ctx
.flags
& SERVER_CTX_INTEGER
)
762 for (i
= 0; i
< 13; i
++) fprintf( stderr
, ",r%u=%08x", i
, ctx
.integer
.arm_regs
.r
[i
] );
763 if (ctx
.flags
& SERVER_CTX_DEBUG_REGISTERS
)
765 for (i
= 0; i
< 8; i
++)
766 fprintf( stderr
, ",bcr%u=%08x,bvr%u=%08x",
767 i
, ctx
.debug
.arm_regs
.bcr
[i
], i
, ctx
.debug
.arm_regs
.bvr
[i
] );
768 fprintf( stderr
, ",wcr0=%08x,wvr0=%08x",
769 ctx
.debug
.arm_regs
.wcr
[0], ctx
.debug
.arm_regs
.wvr
[0] );
771 if (ctx
.flags
& SERVER_CTX_FLOATING_POINT
)
773 for (i
= 0; i
< 32; i
++)
775 fprintf( stderr
, ",d%u=", i
);
776 dump_uint64( "", &ctx
.fp
.arm_regs
.d
[i
] );
778 fprintf( stderr
, ",fpscr=%08x", ctx
.fp
.arm_regs
.fpscr
);
781 case IMAGE_FILE_MACHINE_ARM64
:
782 fprintf( stderr
, "%s{machine=arm64", prefix
);
783 if (ctx
.flags
& SERVER_CTX_CONTROL
)
785 dump_uint64( ",sp=", &ctx
.ctl
.arm64_regs
.sp
);
786 dump_uint64( ",pc=", &ctx
.ctl
.arm64_regs
.pc
);
787 dump_uint64( ",pstate=", &ctx
.ctl
.arm64_regs
.pstate
);
789 if (ctx
.flags
& SERVER_CTX_INTEGER
)
791 for (i
= 0; i
< 31; i
++)
793 fprintf( stderr
, ",x%u=", i
);
794 dump_uint64( "", &ctx
.integer
.arm64_regs
.x
[i
] );
797 if (ctx
.flags
& SERVER_CTX_DEBUG_REGISTERS
)
799 for (i
= 0; i
< 8; i
++)
801 fprintf( stderr
, ",bcr%u=%08x,bvr%u=", i
, ctx
.debug
.arm64_regs
.bcr
[i
], i
);
802 dump_uint64( "", &ctx
.debug
.arm64_regs
.bvr
[i
] );
804 for (i
= 0; i
< 2; i
++)
806 fprintf( stderr
, ",wcr%u=%08x,wvr%u=", i
, ctx
.debug
.arm64_regs
.wcr
[i
], i
);
807 dump_uint64( "", &ctx
.debug
.arm64_regs
.wvr
[i
] );
810 if (ctx
.flags
& SERVER_CTX_FLOATING_POINT
)
812 for (i
= 0; i
< 32; i
++)
814 fprintf( stderr
, ",q%u=", i
);
815 dump_uint64( "", &ctx
.fp
.arm64_regs
.q
[i
].high
);
816 dump_uint64( "", &ctx
.fp
.arm64_regs
.q
[i
].low
);
818 fprintf( stderr
, ",fpcr=%08x,fpsr=%08x", ctx
.fp
.arm64_regs
.fpcr
, ctx
.fp
.arm64_regs
.fpsr
);
822 fprintf( stderr
, "%s{machine=%04x", prefix
, ctx
.machine
);
825 if (ctx
.flags
& SERVER_CTX_EXEC_SPACE
)
829 switch (ctx
.exec_space
.space
.space
)
831 case EXEC_SPACE_USERMODE
: space
= "user"; break;
832 case EXEC_SPACE_SYSCALL
: space
= "syscall"; break;
833 case EXEC_SPACE_EXCEPTION
: space
= "exception"; break;
834 default: space
= "invalid"; break;
836 fprintf( stderr
, ",exec_space=%s", space
);
838 fputc( '}', stderr
);
842 static void dump_varargs_contexts( const char *prefix
, data_size_t size
)
846 fprintf( stderr
, "%s{}", prefix
);
849 fprintf( stderr
, "%s{", prefix
);
852 dump_varargs_context( "", cur_size
);
853 fputc( cur_size
? ',' : '}', stderr
);
857 static void dump_varargs_debug_event( const char *prefix
, data_size_t size
)
863 fprintf( stderr
, "%s{}", prefix
);
866 size
= min( size
, sizeof(event
) );
867 memset( &event
, 0, sizeof(event
) );
868 memcpy( &event
, cur_data
, size
);
873 fprintf( stderr
, "%s{idle}", prefix
);
875 case DbgReplyPending
:
876 fprintf( stderr
, "%s{pending}", prefix
);
878 case DbgCreateThreadStateChange
:
879 fprintf( stderr
, "%s{create_thread,thread=%04x", prefix
, event
.create_thread
.handle
);
880 dump_uint64( ",start=", &event
.create_thread
.start
);
881 fputc( '}', stderr
);
883 case DbgCreateProcessStateChange
:
884 fprintf( stderr
, "%s{create_process,file=%04x,process=%04x,thread=%04x", prefix
,
885 event
.create_process
.file
, event
.create_process
.process
,
886 event
.create_process
.thread
);
887 dump_uint64( ",base=", &event
.create_process
.base
);
888 fprintf( stderr
, ",offset=%d,size=%d",
889 event
.create_process
.dbg_offset
, event
.create_process
.dbg_size
);
890 dump_uint64( ",start=", &event
.create_process
.start
);
891 fputc( '}', stderr
);
893 case DbgExitThreadStateChange
:
894 fprintf( stderr
, "%s{exit_thread,code=%d}", prefix
, event
.exit
.exit_code
);
896 case DbgExitProcessStateChange
:
897 fprintf( stderr
, "%s{exit_process,code=%d}", prefix
, event
.exit
.exit_code
);
899 case DbgExceptionStateChange
:
900 case DbgBreakpointStateChange
:
901 case DbgSingleStepStateChange
:
902 fprintf( stderr
, "%s{%s,first=%d,exc_code=%08x,flags=%08x", prefix
,
903 event
.code
== DbgBreakpointStateChange
? "breakpoint" :
904 event
.code
== DbgSingleStepStateChange
? "singlestep" : "exception",
905 event
.exception
.first
, event
.exception
.exc_code
, event
.exception
.flags
);
906 dump_uint64( ",record=", &event
.exception
.record
);
907 dump_uint64( ",address=", &event
.exception
.address
);
908 event
.exception
.nb_params
= min( event
.exception
.nb_params
, EXCEPTION_MAXIMUM_PARAMETERS
);
909 dump_uints64( ",params=", event
.exception
.params
, event
.exception
.nb_params
);
910 fputc( '}', stderr
);
912 case DbgLoadDllStateChange
:
913 fprintf( stderr
, "%s{load_dll,file=%04x", prefix
, event
.load_dll
.handle
);
914 dump_uint64( ",base=", &event
.load_dll
.base
);
915 fprintf( stderr
, ",offset=%d,size=%d",
916 event
.load_dll
.dbg_offset
, event
.load_dll
.dbg_size
);
917 dump_uint64( ",name=", &event
.load_dll
.name
);
918 fputc( '}', stderr
);
920 case DbgUnloadDllStateChange
:
921 fprintf( stderr
, "%s{unload_dll", prefix
);
922 dump_uint64( ",base=", &event
.unload_dll
.base
);
923 fputc( '}', stderr
);
926 fprintf( stderr
, "%s{code=??? (%d)}", prefix
, event
.code
);
932 /* dump a unicode string contained in a buffer; helper for dump_varargs_startup_info */
933 static data_size_t
dump_inline_unicode_string( const char *prefix
, data_size_t pos
, data_size_t len
, data_size_t total_size
)
935 fputs( prefix
, stderr
);
936 if (pos
>= total_size
) return pos
;
937 if (len
> total_size
- pos
) len
= total_size
- pos
;
938 dump_strW( (const WCHAR
*)cur_data
+ pos
/sizeof(WCHAR
), len
, stderr
, "\"\"" );
939 return pos
+ (len
/ sizeof(WCHAR
)) * sizeof(WCHAR
);
942 static void dump_varargs_startup_info( const char *prefix
, data_size_t size
)
945 data_size_t pos
= sizeof(info
);
947 memset( &info
, 0, sizeof(info
) );
948 memcpy( &info
, cur_data
, min( size
, sizeof(info
) ));
951 "%s{debug_flags=%x,console_flags=%x,console=%04x,hstdin=%04x,hstdout=%04x,hstderr=%04x,"
952 "x=%u,y=%u,xsize=%u,ysize=%u,xchars=%u,ychars=%u,attribute=%02x,flags=%x,show=%u,"
953 "process_group_id=%u",
954 prefix
, info
.debug_flags
, info
.console_flags
, info
.console
,
955 info
.hstdin
, info
.hstdout
, info
.hstderr
, info
.x
, info
.y
, info
.xsize
, info
.ysize
,
956 info
.xchars
, info
.ychars
, info
.attribute
, info
.flags
, info
.show
, info
.process_group_id
);
957 pos
= dump_inline_unicode_string( ",curdir=L\"", pos
, info
.curdir_len
, size
);
958 pos
= dump_inline_unicode_string( "\",dllpath=L\"", pos
, info
.dllpath_len
, size
);
959 pos
= dump_inline_unicode_string( "\",imagepath=L\"", pos
, info
.imagepath_len
, size
);
960 pos
= dump_inline_unicode_string( "\",cmdline=L\"", pos
, info
.cmdline_len
, size
);
961 pos
= dump_inline_unicode_string( "\",title=L\"", pos
, info
.title_len
, size
);
962 pos
= dump_inline_unicode_string( "\",desktop=L\"", pos
, info
.desktop_len
, size
);
963 pos
= dump_inline_unicode_string( "\",shellinfo=L\"", pos
, info
.shellinfo_len
, size
);
964 pos
= dump_inline_unicode_string( "\",runtime=L\"", pos
, info
.runtime_len
, size
);
965 fprintf( stderr
, "\"}" );
969 static void dump_varargs_rectangles( const char *prefix
, data_size_t size
)
971 const rectangle_t
*rect
= cur_data
;
972 data_size_t len
= size
/ sizeof(*rect
);
974 fprintf( stderr
,"%s{", prefix
);
977 dump_rectangle( "", rect
++ );
978 if (--len
) fputc( ',', stderr
);
980 fputc( '}', stderr
);
984 static void dump_varargs_cursor_positions( const char *prefix
, data_size_t size
)
986 const cursor_pos_t
*pos
= cur_data
;
987 data_size_t len
= size
/ sizeof(*pos
);
989 fprintf( stderr
, "%s{", prefix
);
992 fprintf( stderr
, "{x=%d,y=%d,time=%u", pos
->x
, pos
->y
, pos
->time
);
993 dump_uint64( ",info=", &pos
->info
);
994 fputc( '}', stderr
);
996 if (--len
) fputc( ',', stderr
);
998 fputc( '}', stderr
);
1002 static void dump_varargs_message_data( const char *prefix
, data_size_t size
)
1004 /* FIXME: dump the structured data */
1005 dump_varargs_bytes( prefix
, size
);
1008 static void dump_varargs_properties( const char *prefix
, data_size_t size
)
1010 const property_data_t
*prop
= cur_data
;
1011 data_size_t len
= size
/ sizeof(*prop
);
1013 fprintf( stderr
,"%s{", prefix
);
1016 fprintf( stderr
, "{atom=%04x,str=%d", prop
->atom
, prop
->string
);
1017 dump_uint64( ",data=", &prop
->data
);
1018 fputc( '}', stderr
);
1020 if (--len
) fputc( ',', stderr
);
1022 fputc( '}', stderr
);
1023 remove_data( size
);
1026 static void dump_varargs_luid_attr( const char *prefix
, data_size_t size
)
1028 const struct luid_attr
*lat
= cur_data
;
1029 data_size_t len
= size
/ sizeof(*lat
);
1031 fprintf( stderr
,"%s{", prefix
);
1034 fprintf( stderr
, "{luid=%08x%08x,attrs=%x}", lat
->luid
.high_part
, lat
->luid
.low_part
, lat
->attrs
);
1036 if (--len
) fputc( ',', stderr
);
1038 fputc( '}', stderr
);
1039 remove_data( size
);
1042 static void dump_inline_sid( const char *prefix
, const struct sid
*sid
, data_size_t size
)
1046 fprintf( stderr
,"%s", prefix
);
1047 if (sid_valid_size( sid
, size
))
1049 fprintf( stderr
, "S-%u-%u", sid
->revision
,
1050 ((unsigned int)sid
->id_auth
[2] << 24) |
1051 ((unsigned int)sid
->id_auth
[3] << 16) |
1052 ((unsigned int)sid
->id_auth
[4] << 8) |
1053 ((unsigned int)sid
->id_auth
[5]) );
1054 for (i
= 0; i
< sid
->sub_count
; i
++) fprintf( stderr
, "-%u", sid
->sub_auth
[i
] );
1056 else fprintf( stderr
, "<invalid>" );
1059 static void dump_varargs_sid( const char *prefix
, data_size_t size
)
1061 const struct sid
*sid
= cur_data
;
1062 if (size
) dump_inline_sid( prefix
, sid
, size
);
1063 remove_data( size
);
1066 static void dump_varargs_sids( const char *prefix
, data_size_t size
)
1068 const struct sid
*sid
= cur_data
;
1069 data_size_t len
= size
;
1071 fprintf( stderr
,"%s{", prefix
);
1074 if (!sid_valid_size( sid
, len
))
1076 fprintf( stderr
, "bad len %u", len
);
1079 dump_inline_sid( "", sid
, size
);
1080 len
-= sid_len( sid
);
1081 sid
= (const struct sid
*)((const char *)sid
+ sid_len( sid
));
1082 if (len
) fputc( ',', stderr
);
1084 fputc( '}', stderr
);
1085 remove_data( size
);
1088 static void dump_inline_acl( const char *prefix
, const struct acl
*acl
, data_size_t size
)
1090 const struct ace
*ace
;
1093 fprintf( stderr
,"%s{", prefix
);
1096 if (size
< sizeof(*acl
))
1098 fprintf( stderr
, "<invalid acl>}" );
1101 size
-= sizeof(*acl
);
1102 for (i
= 0, ace
= ace_first( acl
); i
< acl
->count
; i
++, ace
= ace_next( ace
))
1104 const struct sid
*sid
= (const struct sid
*)(ace
+ 1);
1105 data_size_t sid_size
;
1107 if (size
< sizeof(*ace
) || size
< ace
->size
) break;
1109 sid_size
= ace
->size
- sizeof(*ace
);
1110 if (i
!= 0) fputc( ',', stderr
);
1111 fprintf( stderr
, "{type=" );
1114 case ACCESS_DENIED_ACE_TYPE
: fprintf( stderr
, "ACCESS_DENIED" ); break;
1115 case ACCESS_ALLOWED_ACE_TYPE
: fprintf( stderr
, "ACCESS_ALLOWED" ); break;
1116 case SYSTEM_AUDIT_ACE_TYPE
: fprintf( stderr
, "SYSTEM_AUDIT" ); break;
1117 case SYSTEM_ALARM_ACE_TYPE
: fprintf( stderr
, "SYSTEM_ALARM" ); break;
1118 case SYSTEM_MANDATORY_LABEL_ACE_TYPE
: fprintf( stderr
, "SYSTEM_MANDATORY_LABEL" ); break;
1120 fprintf( stderr
, "%02x", ace
->type
);
1124 fprintf( stderr
, ",flags=%x,mask=%x", ace
->flags
, ace
->mask
);
1125 if (sid
) dump_inline_sid( ",sid=", sid
, sid_size
);
1126 fputc( '}', stderr
);
1129 fputc( '}', stderr
);
1132 static void dump_varargs_acl( const char *prefix
, data_size_t size
)
1134 const struct acl
*acl
= cur_data
;
1135 dump_inline_acl( prefix
, acl
, size
);
1136 remove_data( size
);
1139 static void dump_inline_security_descriptor( const char *prefix
, const struct security_descriptor
*sd
, data_size_t size
)
1141 fprintf( stderr
,"%s{", prefix
);
1142 if (size
>= sizeof(struct security_descriptor
))
1144 size_t offset
= sizeof(struct security_descriptor
);
1145 fprintf( stderr
, "control=%08x", sd
->control
);
1146 if ((sd
->owner_len
> offsetof(struct sid
, sub_auth
[255])) || (offset
+ sd
->owner_len
> size
))
1149 dump_inline_sid( ",owner=", (const struct sid
*)((const char *)sd
+ offset
), sd
->owner_len
);
1151 fprintf( stderr
, ",owner=<not present>" );
1152 offset
+= sd
->owner_len
;
1153 if ((sd
->group_len
> offsetof(struct sid
, sub_auth
[255])) || (offset
+ sd
->group_len
> size
))
1156 dump_inline_sid( ",group=", (const struct sid
*)((const char *)sd
+ offset
), sd
->group_len
);
1158 fprintf( stderr
, ",group=<not present>" );
1159 offset
+= sd
->group_len
;
1160 if ((sd
->sacl_len
>= MAX_ACL_LEN
) || (offset
+ sd
->sacl_len
> size
))
1162 dump_inline_acl( ",sacl=", (const struct acl
*)((const char *)sd
+ offset
), sd
->sacl_len
);
1163 offset
+= sd
->sacl_len
;
1164 if ((sd
->dacl_len
>= MAX_ACL_LEN
) || (offset
+ sd
->dacl_len
> size
))
1166 dump_inline_acl( ",dacl=", (const struct acl
*)((const char *)sd
+ offset
), sd
->dacl_len
);
1167 offset
+= sd
->dacl_len
;
1169 fputc( '}', stderr
);
1172 static void dump_varargs_security_descriptor( const char *prefix
, data_size_t size
)
1174 const struct security_descriptor
*sd
= cur_data
;
1175 dump_inline_security_descriptor( prefix
, sd
, size
);
1176 remove_data( size
);
1179 static void dump_varargs_process_info( const char *prefix
, data_size_t size
)
1181 data_size_t pos
= 0;
1184 fprintf( stderr
,"%s{", prefix
);
1186 while (size
- pos
>= sizeof(struct process_info
))
1188 const struct process_info
*process
;
1189 pos
= (pos
+ 7) & ~7;
1190 process
= (const struct process_info
*)((const char *)cur_data
+ pos
);
1191 if (size
- pos
< sizeof(*process
)) break;
1192 if (pos
) fputc( ',', stderr
);
1193 dump_timeout( "{start_time=", &process
->start_time
);
1194 fprintf( stderr
, ",thread_count=%u,priority=%d,pid=%04x,parent_pid=%04x,session_id=%08x,handle_count=%u,unix_pid=%d,",
1195 process
->thread_count
, process
->priority
, process
->pid
,
1196 process
->parent_pid
, process
->session_id
, process
->handle_count
, process
->unix_pid
);
1197 pos
+= sizeof(*process
);
1199 pos
= dump_inline_unicode_string( "name=L\"", pos
, process
->name_len
, size
);
1201 pos
= (pos
+ 7) & ~7;
1202 fprintf( stderr
, "\",threads={" );
1203 for (i
= 0; i
< process
->thread_count
; i
++)
1205 const struct thread_info
*thread
= (const struct thread_info
*)((const char *)cur_data
+ pos
);
1206 if (size
- pos
< sizeof(*thread
)) break;
1207 if (i
) fputc( ',', stderr
);
1208 dump_timeout( "{start_time=", &thread
->start_time
);
1209 fprintf( stderr
, ",tid=%04x,base_priority=%d,current_priority=%d,unix_tid=%d}",
1210 thread
->tid
, thread
->base_priority
, thread
->current_priority
, thread
->unix_tid
);
1211 pos
+= sizeof(*thread
);
1213 fprintf( stderr
, "}}" );
1215 fputc( '}', stderr
);
1216 remove_data( size
);
1219 static void dump_varargs_object_attributes( const char *prefix
, data_size_t size
)
1221 const struct object_attributes
*objattr
= cur_data
;
1223 fprintf( stderr
,"%s{", prefix
);
1228 if (size
< sizeof(*objattr
) ||
1229 (size
- sizeof(*objattr
) < objattr
->sd_len
) ||
1230 (size
- sizeof(*objattr
) - objattr
->sd_len
< objattr
->name_len
))
1232 fprintf( stderr
, "***invalid***}" );
1233 remove_data( size
);
1237 fprintf( stderr
, "rootdir=%04x,attributes=%08x", objattr
->rootdir
, objattr
->attributes
);
1238 dump_inline_security_descriptor( ",sd=", (const struct security_descriptor
*)(objattr
+ 1), objattr
->sd_len
);
1239 str
= (const WCHAR
*)objattr
+ (sizeof(*objattr
) + objattr
->sd_len
) / sizeof(WCHAR
);
1240 fprintf( stderr
, ",name=L\"" );
1241 dump_strW( str
, objattr
->name_len
, stderr
, "\"\"" );
1242 fputc( '\"', stderr
);
1243 remove_data( (sizeof(*objattr
) + (objattr
->sd_len
& ~1) + (objattr
->name_len
& ~1) + 3) & ~3 );
1245 fputc( '}', stderr
);
1248 static void dump_varargs_object_type_info( const char *prefix
, data_size_t size
)
1250 const struct object_type_info
*info
= cur_data
;
1252 fprintf( stderr
,"%s{", prefix
);
1255 if (size
< sizeof(*info
) || (size
- sizeof(*info
) < info
->name_len
))
1257 fprintf( stderr
, "***invalid***}" );
1258 remove_data( size
);
1262 fprintf( stderr
, "index=%u,obj_count=%u,handle_count=%u,obj_max=%u,handle_max=%u,valid=%08x",
1263 info
->index
,info
->obj_count
, info
->handle_count
, info
->obj_max
, info
->handle_max
,
1264 info
->valid_access
);
1265 dump_generic_map( ",access=", &info
->mapping
);
1266 fprintf( stderr
, ",name=L\"" );
1267 dump_strW( (const WCHAR
*)(info
+ 1), info
->name_len
, stderr
, "\"\"" );
1268 fputc( '\"', stderr
);
1269 remove_data( min( size
, sizeof(*info
) + ((info
->name_len
+ 2) & ~3 )));
1271 fputc( '}', stderr
);
1274 static void dump_varargs_object_types_info( const char *prefix
, data_size_t size
)
1276 fprintf( stderr
,"%s{", prefix
);
1277 while (cur_size
) dump_varargs_object_type_info( ",", cur_size
);
1278 fputc( '}', stderr
);
1281 static void dump_varargs_filesystem_event( const char *prefix
, data_size_t size
)
1283 static const char * const actions
[] = {
1295 fprintf( stderr
,"%s{", prefix
);
1298 const struct filesystem_event
*event
= cur_data
;
1299 data_size_t len
= (offsetof( struct filesystem_event
, name
[event
->len
] ) + sizeof(int)-1)
1300 / sizeof(int) * sizeof(int);
1301 if (size
< len
) break;
1302 if (event
->action
< ARRAY_SIZE( actions
) && actions
[event
->action
])
1303 fprintf( stderr
, "{action=%s", actions
[event
->action
] );
1305 fprintf( stderr
, "{action=%u", event
->action
);
1306 fprintf( stderr
, ",name=\"%.*s\"}", event
->len
, event
->name
);
1309 if (size
)fputc( ',', stderr
);
1311 fputc( '}', stderr
);
1314 static void dump_varargs_pe_image_info( const char *prefix
, data_size_t size
)
1316 pe_image_info_t info
;
1320 fprintf( stderr
, "%s{}", prefix
);
1323 memset( &info
, 0, sizeof(info
) );
1324 memcpy( &info
, cur_data
, min( size
, sizeof(info
) ));
1326 fprintf( stderr
, "%s{", prefix
);
1327 dump_uint64( "base=", &info
.base
);
1328 dump_uint64( ",stack_size=", &info
.stack_size
);
1329 dump_uint64( ",stack_commit=", &info
.stack_commit
);
1330 fprintf( stderr
, ",entry_point=%08x,map_size=%08x,zerobits=%08x,subsystem=%08x,subsystem_minor=%04x,subsystem_major=%04x"
1331 ",osversion_major=%04x,osversion_minor=%04x,image_charact=%04x,dll_charact=%04x,machine=%04x"
1332 ",contains_code=%u,image_flags=%02x"
1333 ",loader_flags=%08x,header_size=%08x,file_size=%08x,checksum=%08x}",
1334 info
.entry_point
, info
.map_size
, info
.zerobits
, info
.subsystem
, info
.subsystem_minor
,
1335 info
.subsystem_major
, info
.osversion_major
, info
.osversion_minor
, info
.image_charact
,
1336 info
.dll_charact
, info
.machine
, info
.contains_code
, info
.image_flags
, info
.loader_flags
,
1337 info
.header_size
, info
.file_size
, info
.checksum
);
1338 remove_data( min( size
, sizeof(info
) ));
1341 static void dump_varargs_rawinput_devices(const char *prefix
, data_size_t size
)
1343 const struct rawinput_device
*device
;
1345 fprintf( stderr
, "%s{", prefix
);
1346 while (size
>= sizeof(*device
))
1349 fprintf( stderr
, "{usage=%08x,flags=%08x,target=%08x}",
1350 device
->usage
, device
->flags
, device
->target
);
1351 size
-= sizeof(*device
);
1352 remove_data( sizeof(*device
) );
1353 if (size
) fputc( ',', stderr
);
1355 fputc( '}', stderr
);
1358 static void dump_varargs_handle_infos( const char *prefix
, data_size_t size
)
1360 const struct handle_info
*handle
;
1362 fprintf( stderr
, "%s{", prefix
);
1363 while (size
>= sizeof(*handle
))
1366 fprintf( stderr
, "{owner=%04x,handle=%04x,access=%08x,attributes=%08x,type=%u}",
1367 handle
->owner
, handle
->handle
, handle
->access
, handle
->attributes
, handle
->type
);
1368 size
-= sizeof(*handle
);
1369 remove_data( sizeof(*handle
) );
1370 if (size
) fputc( ',', stderr
);
1372 fputc( '}', stderr
);
1375 typedef void (*dump_func
)( const void *req
);
1377 /* Everything below this line is generated automatically by tools/make_requests */
1378 /* ### make_requests begin ### */
1380 static void dump_new_process_request( const struct new_process_request
*req
)
1382 fprintf( stderr
, " token=%04x", req
->token
);
1383 fprintf( stderr
, ", debug=%04x", req
->debug
);
1384 fprintf( stderr
, ", parent_process=%04x", req
->parent_process
);
1385 fprintf( stderr
, ", flags=%08x", req
->flags
);
1386 fprintf( stderr
, ", socket_fd=%d", req
->socket_fd
);
1387 fprintf( stderr
, ", access=%08x", req
->access
);
1388 fprintf( stderr
, ", machine=%04x", req
->machine
);
1389 fprintf( stderr
, ", info_size=%u", req
->info_size
);
1390 fprintf( stderr
, ", handles_size=%u", req
->handles_size
);
1391 fprintf( stderr
, ", jobs_size=%u", req
->jobs_size
);
1392 dump_varargs_object_attributes( ", objattr=", cur_size
);
1393 dump_varargs_uints( ", handles=", min(cur_size
,req
->handles_size
) );
1394 dump_varargs_uints( ", jobs=", min(cur_size
,req
->jobs_size
) );
1395 dump_varargs_startup_info( ", info=", min(cur_size
,req
->info_size
) );
1396 dump_varargs_unicode_str( ", env=", cur_size
);
1399 static void dump_new_process_reply( const struct new_process_reply
*req
)
1401 fprintf( stderr
, " info=%04x", req
->info
);
1402 fprintf( stderr
, ", pid=%04x", req
->pid
);
1403 fprintf( stderr
, ", handle=%04x", req
->handle
);
1406 static void dump_get_new_process_info_request( const struct get_new_process_info_request
*req
)
1408 fprintf( stderr
, " info=%04x", req
->info
);
1411 static void dump_get_new_process_info_reply( const struct get_new_process_info_reply
*req
)
1413 fprintf( stderr
, " success=%d", req
->success
);
1414 fprintf( stderr
, ", exit_code=%d", req
->exit_code
);
1417 static void dump_new_thread_request( const struct new_thread_request
*req
)
1419 fprintf( stderr
, " process=%04x", req
->process
);
1420 fprintf( stderr
, ", access=%08x", req
->access
);
1421 fprintf( stderr
, ", flags=%08x", req
->flags
);
1422 fprintf( stderr
, ", request_fd=%d", req
->request_fd
);
1423 dump_varargs_object_attributes( ", objattr=", cur_size
);
1426 static void dump_new_thread_reply( const struct new_thread_reply
*req
)
1428 fprintf( stderr
, " tid=%04x", req
->tid
);
1429 fprintf( stderr
, ", handle=%04x", req
->handle
);
1432 static void dump_get_startup_info_request( const struct get_startup_info_request
*req
)
1436 static void dump_get_startup_info_reply( const struct get_startup_info_reply
*req
)
1438 fprintf( stderr
, " info_size=%u", req
->info_size
);
1439 fprintf( stderr
, ", machine=%04x", req
->machine
);
1440 dump_varargs_startup_info( ", info=", min(cur_size
,req
->info_size
) );
1441 dump_varargs_unicode_str( ", env=", cur_size
);
1444 static void dump_init_process_done_request( const struct init_process_done_request
*req
)
1446 dump_uint64( " teb=", &req
->teb
);
1447 dump_uint64( ", peb=", &req
->peb
);
1448 dump_uint64( ", ldt_copy=", &req
->ldt_copy
);
1451 static void dump_init_process_done_reply( const struct init_process_done_reply
*req
)
1453 fprintf( stderr
, " suspend=%d", req
->suspend
);
1456 static void dump_init_first_thread_request( const struct init_first_thread_request
*req
)
1458 fprintf( stderr
, " unix_pid=%d", req
->unix_pid
);
1459 fprintf( stderr
, ", unix_tid=%d", req
->unix_tid
);
1460 fprintf( stderr
, ", debug_level=%d", req
->debug_level
);
1461 fprintf( stderr
, ", reply_fd=%d", req
->reply_fd
);
1462 fprintf( stderr
, ", wait_fd=%d", req
->wait_fd
);
1465 static void dump_init_first_thread_reply( const struct init_first_thread_reply
*req
)
1467 fprintf( stderr
, " pid=%04x", req
->pid
);
1468 fprintf( stderr
, ", tid=%04x", req
->tid
);
1469 dump_timeout( ", server_start=", &req
->server_start
);
1470 fprintf( stderr
, ", session_id=%08x", req
->session_id
);
1471 fprintf( stderr
, ", info_size=%u", req
->info_size
);
1472 dump_varargs_ushorts( ", machines=", cur_size
);
1475 static void dump_init_thread_request( const struct init_thread_request
*req
)
1477 fprintf( stderr
, " unix_tid=%d", req
->unix_tid
);
1478 fprintf( stderr
, ", reply_fd=%d", req
->reply_fd
);
1479 fprintf( stderr
, ", wait_fd=%d", req
->wait_fd
);
1480 dump_uint64( ", teb=", &req
->teb
);
1481 dump_uint64( ", entry=", &req
->entry
);
1484 static void dump_init_thread_reply( const struct init_thread_reply
*req
)
1486 fprintf( stderr
, " suspend=%d", req
->suspend
);
1489 static void dump_terminate_process_request( const struct terminate_process_request
*req
)
1491 fprintf( stderr
, " handle=%04x", req
->handle
);
1492 fprintf( stderr
, ", exit_code=%d", req
->exit_code
);
1495 static void dump_terminate_process_reply( const struct terminate_process_reply
*req
)
1497 fprintf( stderr
, " self=%d", req
->self
);
1500 static void dump_terminate_thread_request( const struct terminate_thread_request
*req
)
1502 fprintf( stderr
, " handle=%04x", req
->handle
);
1503 fprintf( stderr
, ", exit_code=%d", req
->exit_code
);
1506 static void dump_terminate_thread_reply( const struct terminate_thread_reply
*req
)
1508 fprintf( stderr
, " self=%d", req
->self
);
1511 static void dump_get_process_info_request( const struct get_process_info_request
*req
)
1513 fprintf( stderr
, " handle=%04x", req
->handle
);
1516 static void dump_get_process_info_reply( const struct get_process_info_reply
*req
)
1518 fprintf( stderr
, " pid=%04x", req
->pid
);
1519 fprintf( stderr
, ", ppid=%04x", req
->ppid
);
1520 dump_uint64( ", affinity=", &req
->affinity
);
1521 dump_uint64( ", peb=", &req
->peb
);
1522 dump_timeout( ", start_time=", &req
->start_time
);
1523 dump_timeout( ", end_time=", &req
->end_time
);
1524 fprintf( stderr
, ", session_id=%08x", req
->session_id
);
1525 fprintf( stderr
, ", exit_code=%d", req
->exit_code
);
1526 fprintf( stderr
, ", priority=%d", req
->priority
);
1527 fprintf( stderr
, ", machine=%04x", req
->machine
);
1528 dump_varargs_pe_image_info( ", image=", cur_size
);
1531 static void dump_get_process_debug_info_request( const struct get_process_debug_info_request
*req
)
1533 fprintf( stderr
, " handle=%04x", req
->handle
);
1536 static void dump_get_process_debug_info_reply( const struct get_process_debug_info_reply
*req
)
1538 fprintf( stderr
, " debug=%04x", req
->debug
);
1539 fprintf( stderr
, ", debug_children=%d", req
->debug_children
);
1540 dump_varargs_pe_image_info( ", image=", cur_size
);
1543 static void dump_get_process_image_name_request( const struct get_process_image_name_request
*req
)
1545 fprintf( stderr
, " handle=%04x", req
->handle
);
1546 fprintf( stderr
, ", pid=%04x", req
->pid
);
1547 fprintf( stderr
, ", win32=%d", req
->win32
);
1550 static void dump_get_process_image_name_reply( const struct get_process_image_name_reply
*req
)
1552 fprintf( stderr
, " len=%u", req
->len
);
1553 dump_varargs_unicode_str( ", name=", cur_size
);
1556 static void dump_get_process_vm_counters_request( const struct get_process_vm_counters_request
*req
)
1558 fprintf( stderr
, " handle=%04x", req
->handle
);
1561 static void dump_get_process_vm_counters_reply( const struct get_process_vm_counters_reply
*req
)
1563 dump_uint64( " peak_virtual_size=", &req
->peak_virtual_size
);
1564 dump_uint64( ", virtual_size=", &req
->virtual_size
);
1565 dump_uint64( ", peak_working_set_size=", &req
->peak_working_set_size
);
1566 dump_uint64( ", working_set_size=", &req
->working_set_size
);
1567 dump_uint64( ", pagefile_usage=", &req
->pagefile_usage
);
1568 dump_uint64( ", peak_pagefile_usage=", &req
->peak_pagefile_usage
);
1571 static void dump_set_process_info_request( const struct set_process_info_request
*req
)
1573 fprintf( stderr
, " handle=%04x", req
->handle
);
1574 fprintf( stderr
, ", mask=%d", req
->mask
);
1575 fprintf( stderr
, ", priority=%d", req
->priority
);
1576 dump_uint64( ", affinity=", &req
->affinity
);
1577 fprintf( stderr
, ", token=%04x", req
->token
);
1580 static void dump_get_thread_info_request( const struct get_thread_info_request
*req
)
1582 fprintf( stderr
, " handle=%04x", req
->handle
);
1583 fprintf( stderr
, ", access=%08x", req
->access
);
1586 static void dump_get_thread_info_reply( const struct get_thread_info_reply
*req
)
1588 fprintf( stderr
, " pid=%04x", req
->pid
);
1589 fprintf( stderr
, ", tid=%04x", req
->tid
);
1590 dump_uint64( ", teb=", &req
->teb
);
1591 dump_uint64( ", entry_point=", &req
->entry_point
);
1592 dump_uint64( ", affinity=", &req
->affinity
);
1593 fprintf( stderr
, ", exit_code=%d", req
->exit_code
);
1594 fprintf( stderr
, ", priority=%d", req
->priority
);
1595 fprintf( stderr
, ", last=%d", req
->last
);
1596 fprintf( stderr
, ", suspend_count=%d", req
->suspend_count
);
1597 fprintf( stderr
, ", flags=%08x", req
->flags
);
1598 fprintf( stderr
, ", desc_len=%u", req
->desc_len
);
1599 dump_varargs_unicode_str( ", desc=", cur_size
);
1602 static void dump_get_thread_times_request( const struct get_thread_times_request
*req
)
1604 fprintf( stderr
, " handle=%04x", req
->handle
);
1607 static void dump_get_thread_times_reply( const struct get_thread_times_reply
*req
)
1609 dump_timeout( " creation_time=", &req
->creation_time
);
1610 dump_timeout( ", exit_time=", &req
->exit_time
);
1611 fprintf( stderr
, ", unix_pid=%d", req
->unix_pid
);
1612 fprintf( stderr
, ", unix_tid=%d", req
->unix_tid
);
1615 static void dump_set_thread_info_request( const struct set_thread_info_request
*req
)
1617 fprintf( stderr
, " handle=%04x", req
->handle
);
1618 fprintf( stderr
, ", mask=%d", req
->mask
);
1619 fprintf( stderr
, ", priority=%d", req
->priority
);
1620 dump_uint64( ", affinity=", &req
->affinity
);
1621 dump_uint64( ", entry_point=", &req
->entry_point
);
1622 fprintf( stderr
, ", token=%04x", req
->token
);
1623 dump_varargs_unicode_str( ", desc=", cur_size
);
1626 static void dump_suspend_thread_request( const struct suspend_thread_request
*req
)
1628 fprintf( stderr
, " handle=%04x", req
->handle
);
1631 static void dump_suspend_thread_reply( const struct suspend_thread_reply
*req
)
1633 fprintf( stderr
, " count=%d", req
->count
);
1636 static void dump_resume_thread_request( const struct resume_thread_request
*req
)
1638 fprintf( stderr
, " handle=%04x", req
->handle
);
1641 static void dump_resume_thread_reply( const struct resume_thread_reply
*req
)
1643 fprintf( stderr
, " count=%d", req
->count
);
1646 static void dump_queue_apc_request( const struct queue_apc_request
*req
)
1648 fprintf( stderr
, " handle=%04x", req
->handle
);
1649 dump_varargs_apc_call( ", call=", cur_size
);
1652 static void dump_queue_apc_reply( const struct queue_apc_reply
*req
)
1654 fprintf( stderr
, " handle=%04x", req
->handle
);
1655 fprintf( stderr
, ", self=%d", req
->self
);
1658 static void dump_get_apc_result_request( const struct get_apc_result_request
*req
)
1660 fprintf( stderr
, " handle=%04x", req
->handle
);
1663 static void dump_get_apc_result_reply( const struct get_apc_result_reply
*req
)
1665 dump_apc_result( " result=", &req
->result
);
1668 static void dump_close_handle_request( const struct close_handle_request
*req
)
1670 fprintf( stderr
, " handle=%04x", req
->handle
);
1673 static void dump_set_handle_info_request( const struct set_handle_info_request
*req
)
1675 fprintf( stderr
, " handle=%04x", req
->handle
);
1676 fprintf( stderr
, ", flags=%d", req
->flags
);
1677 fprintf( stderr
, ", mask=%d", req
->mask
);
1680 static void dump_set_handle_info_reply( const struct set_handle_info_reply
*req
)
1682 fprintf( stderr
, " old_flags=%d", req
->old_flags
);
1685 static void dump_dup_handle_request( const struct dup_handle_request
*req
)
1687 fprintf( stderr
, " src_process=%04x", req
->src_process
);
1688 fprintf( stderr
, ", src_handle=%04x", req
->src_handle
);
1689 fprintf( stderr
, ", dst_process=%04x", req
->dst_process
);
1690 fprintf( stderr
, ", access=%08x", req
->access
);
1691 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1692 fprintf( stderr
, ", options=%08x", req
->options
);
1695 static void dump_dup_handle_reply( const struct dup_handle_reply
*req
)
1697 fprintf( stderr
, " handle=%04x", req
->handle
);
1700 static void dump_compare_objects_request( const struct compare_objects_request
*req
)
1702 fprintf( stderr
, " first=%04x", req
->first
);
1703 fprintf( stderr
, ", second=%04x", req
->second
);
1706 static void dump_set_object_permanence_request( const struct set_object_permanence_request
*req
)
1708 fprintf( stderr
, " handle=%04x", req
->handle
);
1709 fprintf( stderr
, ", permanent=%d", req
->permanent
);
1712 static void dump_open_process_request( const struct open_process_request
*req
)
1714 fprintf( stderr
, " pid=%04x", req
->pid
);
1715 fprintf( stderr
, ", access=%08x", req
->access
);
1716 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1719 static void dump_open_process_reply( const struct open_process_reply
*req
)
1721 fprintf( stderr
, " handle=%04x", req
->handle
);
1724 static void dump_open_thread_request( const struct open_thread_request
*req
)
1726 fprintf( stderr
, " tid=%04x", req
->tid
);
1727 fprintf( stderr
, ", access=%08x", req
->access
);
1728 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1731 static void dump_open_thread_reply( const struct open_thread_reply
*req
)
1733 fprintf( stderr
, " handle=%04x", req
->handle
);
1736 static void dump_select_request( const struct select_request
*req
)
1738 fprintf( stderr
, " flags=%d", req
->flags
);
1739 dump_uint64( ", cookie=", &req
->cookie
);
1740 dump_abstime( ", timeout=", &req
->timeout
);
1741 fprintf( stderr
, ", size=%u", req
->size
);
1742 fprintf( stderr
, ", prev_apc=%04x", req
->prev_apc
);
1743 dump_varargs_apc_result( ", result=", cur_size
);
1744 dump_varargs_select_op( ", data=", min(cur_size
,req
->size
) );
1745 dump_varargs_contexts( ", contexts=", cur_size
);
1748 static void dump_select_reply( const struct select_reply
*req
)
1750 fprintf( stderr
, " apc_handle=%04x", req
->apc_handle
);
1751 fprintf( stderr
, ", signaled=%d", req
->signaled
);
1752 dump_varargs_apc_call( ", call=", cur_size
);
1753 dump_varargs_contexts( ", contexts=", cur_size
);
1756 static void dump_create_event_request( const struct create_event_request
*req
)
1758 fprintf( stderr
, " access=%08x", req
->access
);
1759 fprintf( stderr
, ", manual_reset=%d", req
->manual_reset
);
1760 fprintf( stderr
, ", initial_state=%d", req
->initial_state
);
1761 dump_varargs_object_attributes( ", objattr=", cur_size
);
1764 static void dump_create_event_reply( const struct create_event_reply
*req
)
1766 fprintf( stderr
, " handle=%04x", req
->handle
);
1769 static void dump_event_op_request( const struct event_op_request
*req
)
1771 fprintf( stderr
, " handle=%04x", req
->handle
);
1772 fprintf( stderr
, ", op=%d", req
->op
);
1775 static void dump_event_op_reply( const struct event_op_reply
*req
)
1777 fprintf( stderr
, " state=%d", req
->state
);
1780 static void dump_query_event_request( const struct query_event_request
*req
)
1782 fprintf( stderr
, " handle=%04x", req
->handle
);
1785 static void dump_query_event_reply( const struct query_event_reply
*req
)
1787 fprintf( stderr
, " manual_reset=%d", req
->manual_reset
);
1788 fprintf( stderr
, ", state=%d", req
->state
);
1791 static void dump_open_event_request( const struct open_event_request
*req
)
1793 fprintf( stderr
, " access=%08x", req
->access
);
1794 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1795 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
1796 dump_varargs_unicode_str( ", name=", cur_size
);
1799 static void dump_open_event_reply( const struct open_event_reply
*req
)
1801 fprintf( stderr
, " handle=%04x", req
->handle
);
1804 static void dump_create_keyed_event_request( const struct create_keyed_event_request
*req
)
1806 fprintf( stderr
, " access=%08x", req
->access
);
1807 dump_varargs_object_attributes( ", objattr=", cur_size
);
1810 static void dump_create_keyed_event_reply( const struct create_keyed_event_reply
*req
)
1812 fprintf( stderr
, " handle=%04x", req
->handle
);
1815 static void dump_open_keyed_event_request( const struct open_keyed_event_request
*req
)
1817 fprintf( stderr
, " access=%08x", req
->access
);
1818 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1819 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
1820 dump_varargs_unicode_str( ", name=", cur_size
);
1823 static void dump_open_keyed_event_reply( const struct open_keyed_event_reply
*req
)
1825 fprintf( stderr
, " handle=%04x", req
->handle
);
1828 static void dump_create_mutex_request( const struct create_mutex_request
*req
)
1830 fprintf( stderr
, " access=%08x", req
->access
);
1831 fprintf( stderr
, ", owned=%d", req
->owned
);
1832 dump_varargs_object_attributes( ", objattr=", cur_size
);
1835 static void dump_create_mutex_reply( const struct create_mutex_reply
*req
)
1837 fprintf( stderr
, " handle=%04x", req
->handle
);
1840 static void dump_release_mutex_request( const struct release_mutex_request
*req
)
1842 fprintf( stderr
, " handle=%04x", req
->handle
);
1845 static void dump_release_mutex_reply( const struct release_mutex_reply
*req
)
1847 fprintf( stderr
, " prev_count=%08x", req
->prev_count
);
1850 static void dump_open_mutex_request( const struct open_mutex_request
*req
)
1852 fprintf( stderr
, " access=%08x", req
->access
);
1853 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1854 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
1855 dump_varargs_unicode_str( ", name=", cur_size
);
1858 static void dump_open_mutex_reply( const struct open_mutex_reply
*req
)
1860 fprintf( stderr
, " handle=%04x", req
->handle
);
1863 static void dump_query_mutex_request( const struct query_mutex_request
*req
)
1865 fprintf( stderr
, " handle=%04x", req
->handle
);
1868 static void dump_query_mutex_reply( const struct query_mutex_reply
*req
)
1870 fprintf( stderr
, " count=%08x", req
->count
);
1871 fprintf( stderr
, ", owned=%d", req
->owned
);
1872 fprintf( stderr
, ", abandoned=%d", req
->abandoned
);
1875 static void dump_create_semaphore_request( const struct create_semaphore_request
*req
)
1877 fprintf( stderr
, " access=%08x", req
->access
);
1878 fprintf( stderr
, ", initial=%08x", req
->initial
);
1879 fprintf( stderr
, ", max=%08x", req
->max
);
1880 dump_varargs_object_attributes( ", objattr=", cur_size
);
1883 static void dump_create_semaphore_reply( const struct create_semaphore_reply
*req
)
1885 fprintf( stderr
, " handle=%04x", req
->handle
);
1888 static void dump_release_semaphore_request( const struct release_semaphore_request
*req
)
1890 fprintf( stderr
, " handle=%04x", req
->handle
);
1891 fprintf( stderr
, ", count=%08x", req
->count
);
1894 static void dump_release_semaphore_reply( const struct release_semaphore_reply
*req
)
1896 fprintf( stderr
, " prev_count=%08x", req
->prev_count
);
1899 static void dump_query_semaphore_request( const struct query_semaphore_request
*req
)
1901 fprintf( stderr
, " handle=%04x", req
->handle
);
1904 static void dump_query_semaphore_reply( const struct query_semaphore_reply
*req
)
1906 fprintf( stderr
, " current=%08x", req
->current
);
1907 fprintf( stderr
, ", max=%08x", req
->max
);
1910 static void dump_open_semaphore_request( const struct open_semaphore_request
*req
)
1912 fprintf( stderr
, " access=%08x", req
->access
);
1913 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1914 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
1915 dump_varargs_unicode_str( ", name=", cur_size
);
1918 static void dump_open_semaphore_reply( const struct open_semaphore_reply
*req
)
1920 fprintf( stderr
, " handle=%04x", req
->handle
);
1923 static void dump_create_file_request( const struct create_file_request
*req
)
1925 fprintf( stderr
, " access=%08x", req
->access
);
1926 fprintf( stderr
, ", sharing=%08x", req
->sharing
);
1927 fprintf( stderr
, ", create=%d", req
->create
);
1928 fprintf( stderr
, ", options=%08x", req
->options
);
1929 fprintf( stderr
, ", attrs=%08x", req
->attrs
);
1930 dump_varargs_object_attributes( ", objattr=", cur_size
);
1931 dump_varargs_string( ", filename=", cur_size
);
1934 static void dump_create_file_reply( const struct create_file_reply
*req
)
1936 fprintf( stderr
, " handle=%04x", req
->handle
);
1939 static void dump_open_file_object_request( const struct open_file_object_request
*req
)
1941 fprintf( stderr
, " access=%08x", req
->access
);
1942 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1943 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
1944 fprintf( stderr
, ", sharing=%08x", req
->sharing
);
1945 fprintf( stderr
, ", options=%08x", req
->options
);
1946 dump_varargs_unicode_str( ", filename=", cur_size
);
1949 static void dump_open_file_object_reply( const struct open_file_object_reply
*req
)
1951 fprintf( stderr
, " handle=%04x", req
->handle
);
1954 static void dump_alloc_file_handle_request( const struct alloc_file_handle_request
*req
)
1956 fprintf( stderr
, " access=%08x", req
->access
);
1957 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1958 fprintf( stderr
, ", fd=%d", req
->fd
);
1961 static void dump_alloc_file_handle_reply( const struct alloc_file_handle_reply
*req
)
1963 fprintf( stderr
, " handle=%04x", req
->handle
);
1966 static void dump_get_handle_unix_name_request( const struct get_handle_unix_name_request
*req
)
1968 fprintf( stderr
, " handle=%04x", req
->handle
);
1971 static void dump_get_handle_unix_name_reply( const struct get_handle_unix_name_reply
*req
)
1973 fprintf( stderr
, " name_len=%u", req
->name_len
);
1974 dump_varargs_string( ", name=", cur_size
);
1977 static void dump_get_handle_fd_request( const struct get_handle_fd_request
*req
)
1979 fprintf( stderr
, " handle=%04x", req
->handle
);
1982 static void dump_get_handle_fd_reply( const struct get_handle_fd_reply
*req
)
1984 fprintf( stderr
, " type=%d", req
->type
);
1985 fprintf( stderr
, ", cacheable=%d", req
->cacheable
);
1986 fprintf( stderr
, ", access=%08x", req
->access
);
1987 fprintf( stderr
, ", options=%08x", req
->options
);
1990 static void dump_get_directory_cache_entry_request( const struct get_directory_cache_entry_request
*req
)
1992 fprintf( stderr
, " handle=%04x", req
->handle
);
1995 static void dump_get_directory_cache_entry_reply( const struct get_directory_cache_entry_reply
*req
)
1997 fprintf( stderr
, " entry=%d", req
->entry
);
1998 dump_varargs_ints( ", free=", cur_size
);
2001 static void dump_flush_request( const struct flush_request
*req
)
2003 dump_async_data( " async=", &req
->async
);
2006 static void dump_flush_reply( const struct flush_reply
*req
)
2008 fprintf( stderr
, " event=%04x", req
->event
);
2011 static void dump_get_file_info_request( const struct get_file_info_request
*req
)
2013 fprintf( stderr
, " handle=%04x", req
->handle
);
2014 fprintf( stderr
, ", info_class=%08x", req
->info_class
);
2017 static void dump_get_file_info_reply( const struct get_file_info_reply
*req
)
2019 dump_varargs_bytes( " data=", cur_size
);
2022 static void dump_get_volume_info_request( const struct get_volume_info_request
*req
)
2024 fprintf( stderr
, " handle=%04x", req
->handle
);
2025 dump_async_data( ", async=", &req
->async
);
2026 fprintf( stderr
, ", info_class=%08x", req
->info_class
);
2029 static void dump_get_volume_info_reply( const struct get_volume_info_reply
*req
)
2031 fprintf( stderr
, " wait=%04x", req
->wait
);
2032 dump_varargs_bytes( ", data=", cur_size
);
2035 static void dump_lock_file_request( const struct lock_file_request
*req
)
2037 fprintf( stderr
, " handle=%04x", req
->handle
);
2038 dump_uint64( ", offset=", &req
->offset
);
2039 dump_uint64( ", count=", &req
->count
);
2040 fprintf( stderr
, ", shared=%d", req
->shared
);
2041 fprintf( stderr
, ", wait=%d", req
->wait
);
2044 static void dump_lock_file_reply( const struct lock_file_reply
*req
)
2046 fprintf( stderr
, " handle=%04x", req
->handle
);
2047 fprintf( stderr
, ", overlapped=%d", req
->overlapped
);
2050 static void dump_unlock_file_request( const struct unlock_file_request
*req
)
2052 fprintf( stderr
, " handle=%04x", req
->handle
);
2053 dump_uint64( ", offset=", &req
->offset
);
2054 dump_uint64( ", count=", &req
->count
);
2057 static void dump_recv_socket_request( const struct recv_socket_request
*req
)
2059 fprintf( stderr
, " oob=%d", req
->oob
);
2060 dump_async_data( ", async=", &req
->async
);
2061 fprintf( stderr
, ", force_async=%d", req
->force_async
);
2064 static void dump_recv_socket_reply( const struct recv_socket_reply
*req
)
2066 fprintf( stderr
, " wait=%04x", req
->wait
);
2067 fprintf( stderr
, ", options=%08x", req
->options
);
2068 fprintf( stderr
, ", nonblocking=%d", req
->nonblocking
);
2071 static void dump_send_socket_request( const struct send_socket_request
*req
)
2073 dump_async_data( " async=", &req
->async
);
2074 fprintf( stderr
, ", force_async=%d", req
->force_async
);
2077 static void dump_send_socket_reply( const struct send_socket_reply
*req
)
2079 fprintf( stderr
, " wait=%04x", req
->wait
);
2080 fprintf( stderr
, ", options=%08x", req
->options
);
2081 fprintf( stderr
, ", nonblocking=%d", req
->nonblocking
);
2084 static void dump_socket_get_events_request( const struct socket_get_events_request
*req
)
2086 fprintf( stderr
, " handle=%04x", req
->handle
);
2087 fprintf( stderr
, ", event=%04x", req
->event
);
2090 static void dump_socket_get_events_reply( const struct socket_get_events_reply
*req
)
2092 fprintf( stderr
, " flags=%08x", req
->flags
);
2093 dump_varargs_uints( ", status=", cur_size
);
2096 static void dump_socket_send_icmp_id_request( const struct socket_send_icmp_id_request
*req
)
2098 fprintf( stderr
, " handle=%04x", req
->handle
);
2099 fprintf( stderr
, ", icmp_id=%04x", req
->icmp_id
);
2100 fprintf( stderr
, ", icmp_seq=%04x", req
->icmp_seq
);
2103 static void dump_socket_get_icmp_id_request( const struct socket_get_icmp_id_request
*req
)
2105 fprintf( stderr
, " handle=%04x", req
->handle
);
2106 fprintf( stderr
, ", icmp_seq=%04x", req
->icmp_seq
);
2109 static void dump_socket_get_icmp_id_reply( const struct socket_get_icmp_id_reply
*req
)
2111 fprintf( stderr
, " icmp_id=%04x", req
->icmp_id
);
2114 static void dump_get_next_console_request_request( const struct get_next_console_request_request
*req
)
2116 fprintf( stderr
, " handle=%04x", req
->handle
);
2117 fprintf( stderr
, ", signal=%d", req
->signal
);
2118 fprintf( stderr
, ", read=%d", req
->read
);
2119 fprintf( stderr
, ", status=%08x", req
->status
);
2120 dump_varargs_bytes( ", out_data=", cur_size
);
2123 static void dump_get_next_console_request_reply( const struct get_next_console_request_reply
*req
)
2125 fprintf( stderr
, " code=%08x", req
->code
);
2126 fprintf( stderr
, ", output=%08x", req
->output
);
2127 fprintf( stderr
, ", out_size=%u", req
->out_size
);
2128 dump_varargs_bytes( ", in_data=", cur_size
);
2131 static void dump_read_directory_changes_request( const struct read_directory_changes_request
*req
)
2133 fprintf( stderr
, " filter=%08x", req
->filter
);
2134 fprintf( stderr
, ", subtree=%d", req
->subtree
);
2135 fprintf( stderr
, ", want_data=%d", req
->want_data
);
2136 dump_async_data( ", async=", &req
->async
);
2139 static void dump_read_change_request( const struct read_change_request
*req
)
2141 fprintf( stderr
, " handle=%04x", req
->handle
);
2144 static void dump_read_change_reply( const struct read_change_reply
*req
)
2146 dump_varargs_filesystem_event( " events=", cur_size
);
2149 static void dump_create_mapping_request( const struct create_mapping_request
*req
)
2151 fprintf( stderr
, " access=%08x", req
->access
);
2152 fprintf( stderr
, ", flags=%08x", req
->flags
);
2153 fprintf( stderr
, ", file_access=%08x", req
->file_access
);
2154 dump_uint64( ", size=", &req
->size
);
2155 fprintf( stderr
, ", file_handle=%04x", req
->file_handle
);
2156 dump_varargs_object_attributes( ", objattr=", cur_size
);
2159 static void dump_create_mapping_reply( const struct create_mapping_reply
*req
)
2161 fprintf( stderr
, " handle=%04x", req
->handle
);
2164 static void dump_open_mapping_request( const struct open_mapping_request
*req
)
2166 fprintf( stderr
, " access=%08x", req
->access
);
2167 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
2168 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
2169 dump_varargs_unicode_str( ", name=", cur_size
);
2172 static void dump_open_mapping_reply( const struct open_mapping_reply
*req
)
2174 fprintf( stderr
, " handle=%04x", req
->handle
);
2177 static void dump_get_mapping_info_request( const struct get_mapping_info_request
*req
)
2179 fprintf( stderr
, " handle=%04x", req
->handle
);
2180 fprintf( stderr
, ", access=%08x", req
->access
);
2183 static void dump_get_mapping_info_reply( const struct get_mapping_info_reply
*req
)
2185 dump_uint64( " size=", &req
->size
);
2186 fprintf( stderr
, ", flags=%08x", req
->flags
);
2187 fprintf( stderr
, ", shared_file=%04x", req
->shared_file
);
2188 fprintf( stderr
, ", total=%u", req
->total
);
2189 dump_varargs_pe_image_info( ", image=", cur_size
);
2190 dump_varargs_unicode_str( ", name=", cur_size
);
2193 static void dump_get_image_map_address_request( const struct get_image_map_address_request
*req
)
2195 fprintf( stderr
, " handle=%04x", req
->handle
);
2198 static void dump_get_image_map_address_reply( const struct get_image_map_address_reply
*req
)
2200 dump_uint64( " addr=", &req
->addr
);
2203 static void dump_map_view_request( const struct map_view_request
*req
)
2205 fprintf( stderr
, " mapping=%04x", req
->mapping
);
2206 fprintf( stderr
, ", access=%08x", req
->access
);
2207 dump_uint64( ", base=", &req
->base
);
2208 dump_uint64( ", size=", &req
->size
);
2209 dump_uint64( ", start=", &req
->start
);
2212 static void dump_map_image_view_request( const struct map_image_view_request
*req
)
2214 fprintf( stderr
, " mapping=%04x", req
->mapping
);
2215 dump_uint64( ", base=", &req
->base
);
2216 dump_uint64( ", size=", &req
->size
);
2217 fprintf( stderr
, ", entry=%08x", req
->entry
);
2218 fprintf( stderr
, ", machine=%04x", req
->machine
);
2221 static void dump_map_builtin_view_request( const struct map_builtin_view_request
*req
)
2223 dump_varargs_pe_image_info( " image=", cur_size
);
2224 dump_varargs_unicode_str( ", name=", cur_size
);
2227 static void dump_get_image_view_info_request( const struct get_image_view_info_request
*req
)
2229 fprintf( stderr
, " process=%04x", req
->process
);
2230 dump_uint64( ", addr=", &req
->addr
);
2233 static void dump_get_image_view_info_reply( const struct get_image_view_info_reply
*req
)
2235 dump_uint64( " base=", &req
->base
);
2236 dump_uint64( ", size=", &req
->size
);
2239 static void dump_unmap_view_request( const struct unmap_view_request
*req
)
2241 dump_uint64( " base=", &req
->base
);
2244 static void dump_get_mapping_committed_range_request( const struct get_mapping_committed_range_request
*req
)
2246 dump_uint64( " base=", &req
->base
);
2247 dump_uint64( ", offset=", &req
->offset
);
2250 static void dump_get_mapping_committed_range_reply( const struct get_mapping_committed_range_reply
*req
)
2252 dump_uint64( " size=", &req
->size
);
2253 fprintf( stderr
, ", committed=%d", req
->committed
);
2256 static void dump_add_mapping_committed_range_request( const struct add_mapping_committed_range_request
*req
)
2258 dump_uint64( " base=", &req
->base
);
2259 dump_uint64( ", offset=", &req
->offset
);
2260 dump_uint64( ", size=", &req
->size
);
2263 static void dump_is_same_mapping_request( const struct is_same_mapping_request
*req
)
2265 dump_uint64( " base1=", &req
->base1
);
2266 dump_uint64( ", base2=", &req
->base2
);
2269 static void dump_get_mapping_filename_request( const struct get_mapping_filename_request
*req
)
2271 fprintf( stderr
, " process=%04x", req
->process
);
2272 dump_uint64( ", addr=", &req
->addr
);
2275 static void dump_get_mapping_filename_reply( const struct get_mapping_filename_reply
*req
)
2277 fprintf( stderr
, " len=%u", req
->len
);
2278 dump_varargs_unicode_str( ", filename=", cur_size
);
2281 static void dump_list_processes_request( const struct list_processes_request
*req
)
2285 static void dump_list_processes_reply( const struct list_processes_reply
*req
)
2287 fprintf( stderr
, " info_size=%u", req
->info_size
);
2288 fprintf( stderr
, ", process_count=%d", req
->process_count
);
2289 fprintf( stderr
, ", total_thread_count=%d", req
->total_thread_count
);
2290 fprintf( stderr
, ", total_name_len=%u", req
->total_name_len
);
2291 dump_varargs_process_info( ", data=", min(cur_size
,req
->info_size
) );
2294 static void dump_create_debug_obj_request( const struct create_debug_obj_request
*req
)
2296 fprintf( stderr
, " access=%08x", req
->access
);
2297 fprintf( stderr
, ", flags=%08x", req
->flags
);
2298 dump_varargs_object_attributes( ", objattr=", cur_size
);
2301 static void dump_create_debug_obj_reply( const struct create_debug_obj_reply
*req
)
2303 fprintf( stderr
, " handle=%04x", req
->handle
);
2306 static void dump_wait_debug_event_request( const struct wait_debug_event_request
*req
)
2308 fprintf( stderr
, " debug=%04x", req
->debug
);
2311 static void dump_wait_debug_event_reply( const struct wait_debug_event_reply
*req
)
2313 fprintf( stderr
, " pid=%04x", req
->pid
);
2314 fprintf( stderr
, ", tid=%04x", req
->tid
);
2315 dump_varargs_debug_event( ", event=", cur_size
);
2318 static void dump_queue_exception_event_request( const struct queue_exception_event_request
*req
)
2320 fprintf( stderr
, " first=%d", req
->first
);
2321 fprintf( stderr
, ", code=%08x", req
->code
);
2322 fprintf( stderr
, ", flags=%08x", req
->flags
);
2323 dump_uint64( ", record=", &req
->record
);
2324 dump_uint64( ", address=", &req
->address
);
2325 fprintf( stderr
, ", len=%u", req
->len
);
2326 dump_varargs_uints64( ", params=", min(cur_size
,req
->len
) );
2329 static void dump_queue_exception_event_reply( const struct queue_exception_event_reply
*req
)
2331 fprintf( stderr
, " handle=%04x", req
->handle
);
2334 static void dump_get_exception_status_request( const struct get_exception_status_request
*req
)
2336 fprintf( stderr
, " handle=%04x", req
->handle
);
2339 static void dump_continue_debug_event_request( const struct continue_debug_event_request
*req
)
2341 fprintf( stderr
, " debug=%04x", req
->debug
);
2342 fprintf( stderr
, ", pid=%04x", req
->pid
);
2343 fprintf( stderr
, ", tid=%04x", req
->tid
);
2344 fprintf( stderr
, ", status=%08x", req
->status
);
2347 static void dump_debug_process_request( const struct debug_process_request
*req
)
2349 fprintf( stderr
, " handle=%04x", req
->handle
);
2350 fprintf( stderr
, ", debug=%04x", req
->debug
);
2351 fprintf( stderr
, ", attach=%d", req
->attach
);
2354 static void dump_set_debug_obj_info_request( const struct set_debug_obj_info_request
*req
)
2356 fprintf( stderr
, " debug=%04x", req
->debug
);
2357 fprintf( stderr
, ", flags=%08x", req
->flags
);
2360 static void dump_read_process_memory_request( const struct read_process_memory_request
*req
)
2362 fprintf( stderr
, " handle=%04x", req
->handle
);
2363 dump_uint64( ", addr=", &req
->addr
);
2366 static void dump_read_process_memory_reply( const struct read_process_memory_reply
*req
)
2368 dump_varargs_bytes( " data=", cur_size
);
2371 static void dump_write_process_memory_request( const struct write_process_memory_request
*req
)
2373 fprintf( stderr
, " handle=%04x", req
->handle
);
2374 dump_uint64( ", addr=", &req
->addr
);
2375 dump_varargs_bytes( ", data=", cur_size
);
2378 static void dump_create_key_request( const struct create_key_request
*req
)
2380 fprintf( stderr
, " access=%08x", req
->access
);
2381 fprintf( stderr
, ", options=%08x", req
->options
);
2382 dump_varargs_object_attributes( ", objattr=", cur_size
);
2383 dump_varargs_unicode_str( ", class=", cur_size
);
2386 static void dump_create_key_reply( const struct create_key_reply
*req
)
2388 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2391 static void dump_open_key_request( const struct open_key_request
*req
)
2393 fprintf( stderr
, " parent=%04x", req
->parent
);
2394 fprintf( stderr
, ", access=%08x", req
->access
);
2395 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
2396 dump_varargs_unicode_str( ", name=", cur_size
);
2399 static void dump_open_key_reply( const struct open_key_reply
*req
)
2401 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2404 static void dump_delete_key_request( const struct delete_key_request
*req
)
2406 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2409 static void dump_flush_key_request( const struct flush_key_request
*req
)
2411 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2414 static void dump_enum_key_request( const struct enum_key_request
*req
)
2416 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2417 fprintf( stderr
, ", index=%d", req
->index
);
2418 fprintf( stderr
, ", info_class=%d", req
->info_class
);
2421 static void dump_enum_key_reply( const struct enum_key_reply
*req
)
2423 fprintf( stderr
, " subkeys=%d", req
->subkeys
);
2424 fprintf( stderr
, ", max_subkey=%d", req
->max_subkey
);
2425 fprintf( stderr
, ", max_class=%d", req
->max_class
);
2426 fprintf( stderr
, ", values=%d", req
->values
);
2427 fprintf( stderr
, ", max_value=%d", req
->max_value
);
2428 fprintf( stderr
, ", max_data=%d", req
->max_data
);
2429 dump_timeout( ", modif=", &req
->modif
);
2430 fprintf( stderr
, ", total=%u", req
->total
);
2431 fprintf( stderr
, ", namelen=%u", req
->namelen
);
2432 dump_varargs_unicode_str( ", name=", min(cur_size
,req
->namelen
) );
2433 dump_varargs_unicode_str( ", class=", cur_size
);
2436 static void dump_set_key_value_request( const struct set_key_value_request
*req
)
2438 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2439 fprintf( stderr
, ", type=%d", req
->type
);
2440 fprintf( stderr
, ", namelen=%u", req
->namelen
);
2441 dump_varargs_unicode_str( ", name=", min(cur_size
,req
->namelen
) );
2442 dump_varargs_bytes( ", data=", cur_size
);
2445 static void dump_get_key_value_request( const struct get_key_value_request
*req
)
2447 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2448 dump_varargs_unicode_str( ", name=", cur_size
);
2451 static void dump_get_key_value_reply( const struct get_key_value_reply
*req
)
2453 fprintf( stderr
, " type=%d", req
->type
);
2454 fprintf( stderr
, ", total=%u", req
->total
);
2455 dump_varargs_bytes( ", data=", cur_size
);
2458 static void dump_enum_key_value_request( const struct enum_key_value_request
*req
)
2460 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2461 fprintf( stderr
, ", index=%d", req
->index
);
2462 fprintf( stderr
, ", info_class=%d", req
->info_class
);
2465 static void dump_enum_key_value_reply( const struct enum_key_value_reply
*req
)
2467 fprintf( stderr
, " type=%d", req
->type
);
2468 fprintf( stderr
, ", total=%u", req
->total
);
2469 fprintf( stderr
, ", namelen=%u", req
->namelen
);
2470 dump_varargs_unicode_str( ", name=", min(cur_size
,req
->namelen
) );
2471 dump_varargs_bytes( ", data=", cur_size
);
2474 static void dump_delete_key_value_request( const struct delete_key_value_request
*req
)
2476 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2477 dump_varargs_unicode_str( ", name=", cur_size
);
2480 static void dump_load_registry_request( const struct load_registry_request
*req
)
2482 fprintf( stderr
, " file=%04x", req
->file
);
2483 dump_varargs_object_attributes( ", objattr=", cur_size
);
2486 static void dump_unload_registry_request( const struct unload_registry_request
*req
)
2488 fprintf( stderr
, " parent=%04x", req
->parent
);
2489 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
2490 dump_varargs_unicode_str( ", name=", cur_size
);
2493 static void dump_save_registry_request( const struct save_registry_request
*req
)
2495 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2496 fprintf( stderr
, ", file=%04x", req
->file
);
2499 static void dump_set_registry_notification_request( const struct set_registry_notification_request
*req
)
2501 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2502 fprintf( stderr
, ", event=%04x", req
->event
);
2503 fprintf( stderr
, ", subtree=%d", req
->subtree
);
2504 fprintf( stderr
, ", filter=%08x", req
->filter
);
2507 static void dump_rename_key_request( const struct rename_key_request
*req
)
2509 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2510 dump_varargs_unicode_str( ", name=", cur_size
);
2513 static void dump_create_timer_request( const struct create_timer_request
*req
)
2515 fprintf( stderr
, " access=%08x", req
->access
);
2516 fprintf( stderr
, ", manual=%d", req
->manual
);
2517 dump_varargs_object_attributes( ", objattr=", cur_size
);
2520 static void dump_create_timer_reply( const struct create_timer_reply
*req
)
2522 fprintf( stderr
, " handle=%04x", req
->handle
);
2525 static void dump_open_timer_request( const struct open_timer_request
*req
)
2527 fprintf( stderr
, " access=%08x", req
->access
);
2528 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
2529 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
2530 dump_varargs_unicode_str( ", name=", cur_size
);
2533 static void dump_open_timer_reply( const struct open_timer_reply
*req
)
2535 fprintf( stderr
, " handle=%04x", req
->handle
);
2538 static void dump_set_timer_request( const struct set_timer_request
*req
)
2540 fprintf( stderr
, " handle=%04x", req
->handle
);
2541 dump_timeout( ", expire=", &req
->expire
);
2542 dump_uint64( ", callback=", &req
->callback
);
2543 dump_uint64( ", arg=", &req
->arg
);
2544 fprintf( stderr
, ", period=%d", req
->period
);
2547 static void dump_set_timer_reply( const struct set_timer_reply
*req
)
2549 fprintf( stderr
, " signaled=%d", req
->signaled
);
2552 static void dump_cancel_timer_request( const struct cancel_timer_request
*req
)
2554 fprintf( stderr
, " handle=%04x", req
->handle
);
2557 static void dump_cancel_timer_reply( const struct cancel_timer_reply
*req
)
2559 fprintf( stderr
, " signaled=%d", req
->signaled
);
2562 static void dump_get_timer_info_request( const struct get_timer_info_request
*req
)
2564 fprintf( stderr
, " handle=%04x", req
->handle
);
2567 static void dump_get_timer_info_reply( const struct get_timer_info_reply
*req
)
2569 dump_timeout( " when=", &req
->when
);
2570 fprintf( stderr
, ", signaled=%d", req
->signaled
);
2573 static void dump_get_thread_context_request( const struct get_thread_context_request
*req
)
2575 fprintf( stderr
, " handle=%04x", req
->handle
);
2576 fprintf( stderr
, ", context=%04x", req
->context
);
2577 fprintf( stderr
, ", flags=%08x", req
->flags
);
2578 fprintf( stderr
, ", native_flags=%08x", req
->native_flags
);
2579 fprintf( stderr
, ", machine=%04x", req
->machine
);
2582 static void dump_get_thread_context_reply( const struct get_thread_context_reply
*req
)
2584 fprintf( stderr
, " self=%d", req
->self
);
2585 fprintf( stderr
, ", handle=%04x", req
->handle
);
2586 dump_varargs_contexts( ", contexts=", cur_size
);
2589 static void dump_set_thread_context_request( const struct set_thread_context_request
*req
)
2591 fprintf( stderr
, " handle=%04x", req
->handle
);
2592 fprintf( stderr
, ", native_flags=%08x", req
->native_flags
);
2593 dump_varargs_contexts( ", contexts=", cur_size
);
2596 static void dump_set_thread_context_reply( const struct set_thread_context_reply
*req
)
2598 fprintf( stderr
, " self=%d", req
->self
);
2601 static void dump_get_selector_entry_request( const struct get_selector_entry_request
*req
)
2603 fprintf( stderr
, " handle=%04x", req
->handle
);
2604 fprintf( stderr
, ", entry=%d", req
->entry
);
2607 static void dump_get_selector_entry_reply( const struct get_selector_entry_reply
*req
)
2609 fprintf( stderr
, " base=%08x", req
->base
);
2610 fprintf( stderr
, ", limit=%08x", req
->limit
);
2611 fprintf( stderr
, ", flags=%02x", req
->flags
);
2614 static void dump_add_atom_request( const struct add_atom_request
*req
)
2616 dump_varargs_unicode_str( " name=", cur_size
);
2619 static void dump_add_atom_reply( const struct add_atom_reply
*req
)
2621 fprintf( stderr
, " atom=%04x", req
->atom
);
2624 static void dump_delete_atom_request( const struct delete_atom_request
*req
)
2626 fprintf( stderr
, " atom=%04x", req
->atom
);
2629 static void dump_find_atom_request( const struct find_atom_request
*req
)
2631 dump_varargs_unicode_str( " name=", cur_size
);
2634 static void dump_find_atom_reply( const struct find_atom_reply
*req
)
2636 fprintf( stderr
, " atom=%04x", req
->atom
);
2639 static void dump_get_atom_information_request( const struct get_atom_information_request
*req
)
2641 fprintf( stderr
, " atom=%04x", req
->atom
);
2644 static void dump_get_atom_information_reply( const struct get_atom_information_reply
*req
)
2646 fprintf( stderr
, " count=%d", req
->count
);
2647 fprintf( stderr
, ", pinned=%d", req
->pinned
);
2648 fprintf( stderr
, ", total=%u", req
->total
);
2649 dump_varargs_unicode_str( ", name=", cur_size
);
2652 static void dump_get_msg_queue_request( const struct get_msg_queue_request
*req
)
2656 static void dump_get_msg_queue_reply( const struct get_msg_queue_reply
*req
)
2658 fprintf( stderr
, " handle=%04x", req
->handle
);
2661 static void dump_set_queue_fd_request( const struct set_queue_fd_request
*req
)
2663 fprintf( stderr
, " handle=%04x", req
->handle
);
2666 static void dump_set_queue_mask_request( const struct set_queue_mask_request
*req
)
2668 fprintf( stderr
, " wake_mask=%08x", req
->wake_mask
);
2669 fprintf( stderr
, ", changed_mask=%08x", req
->changed_mask
);
2670 fprintf( stderr
, ", skip_wait=%d", req
->skip_wait
);
2673 static void dump_set_queue_mask_reply( const struct set_queue_mask_reply
*req
)
2675 fprintf( stderr
, " wake_bits=%08x", req
->wake_bits
);
2676 fprintf( stderr
, ", changed_bits=%08x", req
->changed_bits
);
2679 static void dump_get_queue_status_request( const struct get_queue_status_request
*req
)
2681 fprintf( stderr
, " clear_bits=%08x", req
->clear_bits
);
2684 static void dump_get_queue_status_reply( const struct get_queue_status_reply
*req
)
2686 fprintf( stderr
, " wake_bits=%08x", req
->wake_bits
);
2687 fprintf( stderr
, ", changed_bits=%08x", req
->changed_bits
);
2690 static void dump_get_process_idle_event_request( const struct get_process_idle_event_request
*req
)
2692 fprintf( stderr
, " handle=%04x", req
->handle
);
2695 static void dump_get_process_idle_event_reply( const struct get_process_idle_event_reply
*req
)
2697 fprintf( stderr
, " event=%04x", req
->event
);
2700 static void dump_send_message_request( const struct send_message_request
*req
)
2702 fprintf( stderr
, " id=%04x", req
->id
);
2703 fprintf( stderr
, ", type=%d", req
->type
);
2704 fprintf( stderr
, ", flags=%d", req
->flags
);
2705 fprintf( stderr
, ", win=%08x", req
->win
);
2706 fprintf( stderr
, ", msg=%08x", req
->msg
);
2707 dump_uint64( ", wparam=", &req
->wparam
);
2708 dump_uint64( ", lparam=", &req
->lparam
);
2709 dump_timeout( ", timeout=", &req
->timeout
);
2710 dump_varargs_message_data( ", data=", cur_size
);
2713 static void dump_post_quit_message_request( const struct post_quit_message_request
*req
)
2715 fprintf( stderr
, " exit_code=%d", req
->exit_code
);
2718 static void dump_send_hardware_message_request( const struct send_hardware_message_request
*req
)
2720 fprintf( stderr
, " win=%08x", req
->win
);
2721 dump_hw_input( ", input=", &req
->input
);
2722 fprintf( stderr
, ", flags=%08x", req
->flags
);
2723 dump_varargs_bytes( ", report=", cur_size
);
2726 static void dump_send_hardware_message_reply( const struct send_hardware_message_reply
*req
)
2728 fprintf( stderr
, " wait=%d", req
->wait
);
2729 fprintf( stderr
, ", prev_x=%d", req
->prev_x
);
2730 fprintf( stderr
, ", prev_y=%d", req
->prev_y
);
2731 fprintf( stderr
, ", new_x=%d", req
->new_x
);
2732 fprintf( stderr
, ", new_y=%d", req
->new_y
);
2735 static void dump_get_message_request( const struct get_message_request
*req
)
2737 fprintf( stderr
, " flags=%08x", req
->flags
);
2738 fprintf( stderr
, ", get_win=%08x", req
->get_win
);
2739 fprintf( stderr
, ", get_first=%08x", req
->get_first
);
2740 fprintf( stderr
, ", get_last=%08x", req
->get_last
);
2741 fprintf( stderr
, ", hw_id=%08x", req
->hw_id
);
2742 fprintf( stderr
, ", wake_mask=%08x", req
->wake_mask
);
2743 fprintf( stderr
, ", changed_mask=%08x", req
->changed_mask
);
2744 fprintf( stderr
, ", internal=%08x", req
->internal
);
2747 static void dump_get_message_reply( const struct get_message_reply
*req
)
2749 fprintf( stderr
, " win=%08x", req
->win
);
2750 fprintf( stderr
, ", msg=%08x", req
->msg
);
2751 dump_uint64( ", wparam=", &req
->wparam
);
2752 dump_uint64( ", lparam=", &req
->lparam
);
2753 fprintf( stderr
, ", type=%d", req
->type
);
2754 fprintf( stderr
, ", x=%d", req
->x
);
2755 fprintf( stderr
, ", y=%d", req
->y
);
2756 fprintf( stderr
, ", time=%08x", req
->time
);
2757 fprintf( stderr
, ", active_hooks=%08x", req
->active_hooks
);
2758 fprintf( stderr
, ", total=%u", req
->total
);
2759 dump_varargs_message_data( ", data=", cur_size
);
2762 static void dump_reply_message_request( const struct reply_message_request
*req
)
2764 fprintf( stderr
, " remove=%d", req
->remove
);
2765 dump_uint64( ", result=", &req
->result
);
2766 dump_varargs_bytes( ", data=", cur_size
);
2769 static void dump_accept_hardware_message_request( const struct accept_hardware_message_request
*req
)
2771 fprintf( stderr
, " hw_id=%08x", req
->hw_id
);
2774 static void dump_get_message_reply_request( const struct get_message_reply_request
*req
)
2776 fprintf( stderr
, " cancel=%d", req
->cancel
);
2779 static void dump_get_message_reply_reply( const struct get_message_reply_reply
*req
)
2781 dump_uint64( " result=", &req
->result
);
2782 dump_varargs_bytes( ", data=", cur_size
);
2785 static void dump_set_win_timer_request( const struct set_win_timer_request
*req
)
2787 fprintf( stderr
, " win=%08x", req
->win
);
2788 fprintf( stderr
, ", msg=%08x", req
->msg
);
2789 fprintf( stderr
, ", rate=%08x", req
->rate
);
2790 dump_uint64( ", id=", &req
->id
);
2791 dump_uint64( ", lparam=", &req
->lparam
);
2794 static void dump_set_win_timer_reply( const struct set_win_timer_reply
*req
)
2796 dump_uint64( " id=", &req
->id
);
2799 static void dump_kill_win_timer_request( const struct kill_win_timer_request
*req
)
2801 fprintf( stderr
, " win=%08x", req
->win
);
2802 dump_uint64( ", id=", &req
->id
);
2803 fprintf( stderr
, ", msg=%08x", req
->msg
);
2806 static void dump_is_window_hung_request( const struct is_window_hung_request
*req
)
2808 fprintf( stderr
, " win=%08x", req
->win
);
2811 static void dump_is_window_hung_reply( const struct is_window_hung_reply
*req
)
2813 fprintf( stderr
, " is_hung=%d", req
->is_hung
);
2816 static void dump_get_serial_info_request( const struct get_serial_info_request
*req
)
2818 fprintf( stderr
, " handle=%04x", req
->handle
);
2819 fprintf( stderr
, ", flags=%d", req
->flags
);
2822 static void dump_get_serial_info_reply( const struct get_serial_info_reply
*req
)
2824 fprintf( stderr
, " eventmask=%08x", req
->eventmask
);
2825 fprintf( stderr
, ", cookie=%08x", req
->cookie
);
2826 fprintf( stderr
, ", pending_write=%08x", req
->pending_write
);
2829 static void dump_set_serial_info_request( const struct set_serial_info_request
*req
)
2831 fprintf( stderr
, " handle=%04x", req
->handle
);
2832 fprintf( stderr
, ", flags=%d", req
->flags
);
2835 static void dump_cancel_sync_request( const struct cancel_sync_request
*req
)
2837 fprintf( stderr
, " handle=%04x", req
->handle
);
2838 dump_uint64( ", iosb=", &req
->iosb
);
2841 static void dump_register_async_request( const struct register_async_request
*req
)
2843 fprintf( stderr
, " type=%d", req
->type
);
2844 dump_async_data( ", async=", &req
->async
);
2845 fprintf( stderr
, ", count=%d", req
->count
);
2848 static void dump_cancel_async_request( const struct cancel_async_request
*req
)
2850 fprintf( stderr
, " handle=%04x", req
->handle
);
2851 dump_uint64( ", iosb=", &req
->iosb
);
2852 fprintf( stderr
, ", only_thread=%d", req
->only_thread
);
2855 static void dump_get_async_result_request( const struct get_async_result_request
*req
)
2857 dump_uint64( " user_arg=", &req
->user_arg
);
2860 static void dump_get_async_result_reply( const struct get_async_result_reply
*req
)
2862 dump_varargs_bytes( " out_data=", cur_size
);
2865 static void dump_set_async_direct_result_request( const struct set_async_direct_result_request
*req
)
2867 fprintf( stderr
, " handle=%04x", req
->handle
);
2868 dump_uint64( ", information=", &req
->information
);
2869 fprintf( stderr
, ", status=%08x", req
->status
);
2870 fprintf( stderr
, ", mark_pending=%d", req
->mark_pending
);
2873 static void dump_set_async_direct_result_reply( const struct set_async_direct_result_reply
*req
)
2875 fprintf( stderr
, " handle=%04x", req
->handle
);
2878 static void dump_read_request( const struct read_request
*req
)
2880 dump_async_data( " async=", &req
->async
);
2881 dump_uint64( ", pos=", &req
->pos
);
2884 static void dump_read_reply( const struct read_reply
*req
)
2886 fprintf( stderr
, " wait=%04x", req
->wait
);
2887 fprintf( stderr
, ", options=%08x", req
->options
);
2888 dump_varargs_bytes( ", data=", cur_size
);
2891 static void dump_write_request( const struct write_request
*req
)
2893 dump_async_data( " async=", &req
->async
);
2894 dump_uint64( ", pos=", &req
->pos
);
2895 dump_varargs_bytes( ", data=", cur_size
);
2898 static void dump_write_reply( const struct write_reply
*req
)
2900 fprintf( stderr
, " wait=%04x", req
->wait
);
2901 fprintf( stderr
, ", options=%08x", req
->options
);
2902 fprintf( stderr
, ", size=%u", req
->size
);
2905 static void dump_ioctl_request( const struct ioctl_request
*req
)
2907 dump_ioctl_code( " code=", &req
->code
);
2908 dump_async_data( ", async=", &req
->async
);
2909 dump_varargs_bytes( ", in_data=", cur_size
);
2912 static void dump_ioctl_reply( const struct ioctl_reply
*req
)
2914 fprintf( stderr
, " wait=%04x", req
->wait
);
2915 fprintf( stderr
, ", options=%08x", req
->options
);
2916 dump_varargs_bytes( ", out_data=", cur_size
);
2919 static void dump_set_irp_result_request( const struct set_irp_result_request
*req
)
2921 fprintf( stderr
, " handle=%04x", req
->handle
);
2922 fprintf( stderr
, ", status=%08x", req
->status
);
2923 fprintf( stderr
, ", size=%u", req
->size
);
2924 dump_varargs_bytes( ", data=", cur_size
);
2927 static void dump_create_named_pipe_request( const struct create_named_pipe_request
*req
)
2929 fprintf( stderr
, " access=%08x", req
->access
);
2930 fprintf( stderr
, ", options=%08x", req
->options
);
2931 fprintf( stderr
, ", sharing=%08x", req
->sharing
);
2932 fprintf( stderr
, ", disposition=%08x", req
->disposition
);
2933 fprintf( stderr
, ", maxinstances=%08x", req
->maxinstances
);
2934 fprintf( stderr
, ", outsize=%08x", req
->outsize
);
2935 fprintf( stderr
, ", insize=%08x", req
->insize
);
2936 dump_timeout( ", timeout=", &req
->timeout
);
2937 fprintf( stderr
, ", flags=%08x", req
->flags
);
2938 dump_varargs_object_attributes( ", objattr=", cur_size
);
2941 static void dump_create_named_pipe_reply( const struct create_named_pipe_reply
*req
)
2943 fprintf( stderr
, " handle=%04x", req
->handle
);
2944 fprintf( stderr
, ", created=%d", req
->created
);
2947 static void dump_set_named_pipe_info_request( const struct set_named_pipe_info_request
*req
)
2949 fprintf( stderr
, " handle=%04x", req
->handle
);
2950 fprintf( stderr
, ", flags=%08x", req
->flags
);
2953 static void dump_create_window_request( const struct create_window_request
*req
)
2955 fprintf( stderr
, " parent=%08x", req
->parent
);
2956 fprintf( stderr
, ", owner=%08x", req
->owner
);
2957 fprintf( stderr
, ", atom=%04x", req
->atom
);
2958 dump_uint64( ", instance=", &req
->instance
);
2959 fprintf( stderr
, ", dpi_context=%08x", req
->dpi_context
);
2960 fprintf( stderr
, ", style=%08x", req
->style
);
2961 fprintf( stderr
, ", ex_style=%08x", req
->ex_style
);
2962 dump_varargs_unicode_str( ", class=", cur_size
);
2965 static void dump_create_window_reply( const struct create_window_reply
*req
)
2967 fprintf( stderr
, " handle=%08x", req
->handle
);
2968 fprintf( stderr
, ", parent=%08x", req
->parent
);
2969 fprintf( stderr
, ", owner=%08x", req
->owner
);
2970 fprintf( stderr
, ", extra=%d", req
->extra
);
2971 dump_uint64( ", class_ptr=", &req
->class_ptr
);
2972 fprintf( stderr
, ", dpi_context=%08x", req
->dpi_context
);
2975 static void dump_destroy_window_request( const struct destroy_window_request
*req
)
2977 fprintf( stderr
, " handle=%08x", req
->handle
);
2980 static void dump_get_desktop_window_request( const struct get_desktop_window_request
*req
)
2982 fprintf( stderr
, " force=%d", req
->force
);
2985 static void dump_get_desktop_window_reply( const struct get_desktop_window_reply
*req
)
2987 fprintf( stderr
, " top_window=%08x", req
->top_window
);
2988 fprintf( stderr
, ", msg_window=%08x", req
->msg_window
);
2991 static void dump_set_window_owner_request( const struct set_window_owner_request
*req
)
2993 fprintf( stderr
, " handle=%08x", req
->handle
);
2994 fprintf( stderr
, ", owner=%08x", req
->owner
);
2997 static void dump_set_window_owner_reply( const struct set_window_owner_reply
*req
)
2999 fprintf( stderr
, " full_owner=%08x", req
->full_owner
);
3000 fprintf( stderr
, ", prev_owner=%08x", req
->prev_owner
);
3003 static void dump_get_window_info_request( const struct get_window_info_request
*req
)
3005 fprintf( stderr
, " handle=%08x", req
->handle
);
3008 static void dump_get_window_info_reply( const struct get_window_info_reply
*req
)
3010 fprintf( stderr
, " full_handle=%08x", req
->full_handle
);
3011 fprintf( stderr
, ", last_active=%08x", req
->last_active
);
3012 fprintf( stderr
, ", pid=%04x", req
->pid
);
3013 fprintf( stderr
, ", tid=%04x", req
->tid
);
3014 fprintf( stderr
, ", atom=%04x", req
->atom
);
3015 fprintf( stderr
, ", is_unicode=%d", req
->is_unicode
);
3016 fprintf( stderr
, ", dpi_context=%08x", req
->dpi_context
);
3019 static void dump_set_window_info_request( const struct set_window_info_request
*req
)
3021 fprintf( stderr
, " flags=%04x", req
->flags
);
3022 fprintf( stderr
, ", is_unicode=%d", req
->is_unicode
);
3023 fprintf( stderr
, ", handle=%08x", req
->handle
);
3024 fprintf( stderr
, ", style=%08x", req
->style
);
3025 fprintf( stderr
, ", ex_style=%08x", req
->ex_style
);
3026 fprintf( stderr
, ", extra_size=%u", req
->extra_size
);
3027 dump_uint64( ", instance=", &req
->instance
);
3028 dump_uint64( ", user_data=", &req
->user_data
);
3029 dump_uint64( ", extra_value=", &req
->extra_value
);
3030 fprintf( stderr
, ", extra_offset=%d", req
->extra_offset
);
3033 static void dump_set_window_info_reply( const struct set_window_info_reply
*req
)
3035 fprintf( stderr
, " old_style=%08x", req
->old_style
);
3036 fprintf( stderr
, ", old_ex_style=%08x", req
->old_ex_style
);
3037 dump_uint64( ", old_instance=", &req
->old_instance
);
3038 dump_uint64( ", old_user_data=", &req
->old_user_data
);
3039 dump_uint64( ", old_extra_value=", &req
->old_extra_value
);
3040 dump_uint64( ", old_id=", &req
->old_id
);
3043 static void dump_set_parent_request( const struct set_parent_request
*req
)
3045 fprintf( stderr
, " handle=%08x", req
->handle
);
3046 fprintf( stderr
, ", parent=%08x", req
->parent
);
3049 static void dump_set_parent_reply( const struct set_parent_reply
*req
)
3051 fprintf( stderr
, " old_parent=%08x", req
->old_parent
);
3052 fprintf( stderr
, ", full_parent=%08x", req
->full_parent
);
3053 fprintf( stderr
, ", dpi_context=%08x", req
->dpi_context
);
3056 static void dump_get_window_parents_request( const struct get_window_parents_request
*req
)
3058 fprintf( stderr
, " handle=%08x", req
->handle
);
3061 static void dump_get_window_parents_reply( const struct get_window_parents_reply
*req
)
3063 fprintf( stderr
, " count=%d", req
->count
);
3064 dump_varargs_user_handles( ", parents=", cur_size
);
3067 static void dump_get_window_children_request( const struct get_window_children_request
*req
)
3069 fprintf( stderr
, " desktop=%04x", req
->desktop
);
3070 fprintf( stderr
, ", parent=%08x", req
->parent
);
3071 fprintf( stderr
, ", atom=%04x", req
->atom
);
3072 fprintf( stderr
, ", tid=%04x", req
->tid
);
3073 dump_varargs_unicode_str( ", class=", cur_size
);
3076 static void dump_get_window_children_reply( const struct get_window_children_reply
*req
)
3078 fprintf( stderr
, " count=%d", req
->count
);
3079 dump_varargs_user_handles( ", children=", cur_size
);
3082 static void dump_get_window_children_from_point_request( const struct get_window_children_from_point_request
*req
)
3084 fprintf( stderr
, " parent=%08x", req
->parent
);
3085 fprintf( stderr
, ", x=%d", req
->x
);
3086 fprintf( stderr
, ", y=%d", req
->y
);
3087 fprintf( stderr
, ", dpi=%d", req
->dpi
);
3090 static void dump_get_window_children_from_point_reply( const struct get_window_children_from_point_reply
*req
)
3092 fprintf( stderr
, " count=%d", req
->count
);
3093 dump_varargs_user_handles( ", children=", cur_size
);
3096 static void dump_get_window_tree_request( const struct get_window_tree_request
*req
)
3098 fprintf( stderr
, " handle=%08x", req
->handle
);
3101 static void dump_get_window_tree_reply( const struct get_window_tree_reply
*req
)
3103 fprintf( stderr
, " parent=%08x", req
->parent
);
3104 fprintf( stderr
, ", owner=%08x", req
->owner
);
3105 fprintf( stderr
, ", next_sibling=%08x", req
->next_sibling
);
3106 fprintf( stderr
, ", prev_sibling=%08x", req
->prev_sibling
);
3107 fprintf( stderr
, ", first_sibling=%08x", req
->first_sibling
);
3108 fprintf( stderr
, ", last_sibling=%08x", req
->last_sibling
);
3109 fprintf( stderr
, ", first_child=%08x", req
->first_child
);
3110 fprintf( stderr
, ", last_child=%08x", req
->last_child
);
3113 static void dump_set_window_pos_request( const struct set_window_pos_request
*req
)
3115 fprintf( stderr
, " swp_flags=%04x", req
->swp_flags
);
3116 fprintf( stderr
, ", paint_flags=%04x", req
->paint_flags
);
3117 fprintf( stderr
, ", handle=%08x", req
->handle
);
3118 fprintf( stderr
, ", previous=%08x", req
->previous
);
3119 dump_rectangle( ", window=", &req
->window
);
3120 dump_rectangle( ", client=", &req
->client
);
3121 dump_varargs_rectangles( ", valid=", cur_size
);
3124 static void dump_set_window_pos_reply( const struct set_window_pos_reply
*req
)
3126 fprintf( stderr
, " new_style=%08x", req
->new_style
);
3127 fprintf( stderr
, ", new_ex_style=%08x", req
->new_ex_style
);
3128 fprintf( stderr
, ", surface_win=%08x", req
->surface_win
);
3129 fprintf( stderr
, ", needs_update=%d", req
->needs_update
);
3132 static void dump_get_window_rectangles_request( const struct get_window_rectangles_request
*req
)
3134 fprintf( stderr
, " handle=%08x", req
->handle
);
3135 fprintf( stderr
, ", relative=%d", req
->relative
);
3136 fprintf( stderr
, ", dpi=%d", req
->dpi
);
3139 static void dump_get_window_rectangles_reply( const struct get_window_rectangles_reply
*req
)
3141 dump_rectangle( " window=", &req
->window
);
3142 dump_rectangle( ", client=", &req
->client
);
3145 static void dump_get_window_text_request( const struct get_window_text_request
*req
)
3147 fprintf( stderr
, " handle=%08x", req
->handle
);
3150 static void dump_get_window_text_reply( const struct get_window_text_reply
*req
)
3152 fprintf( stderr
, " length=%u", req
->length
);
3153 dump_varargs_unicode_str( ", text=", cur_size
);
3156 static void dump_set_window_text_request( const struct set_window_text_request
*req
)
3158 fprintf( stderr
, " handle=%08x", req
->handle
);
3159 dump_varargs_unicode_str( ", text=", cur_size
);
3162 static void dump_get_windows_offset_request( const struct get_windows_offset_request
*req
)
3164 fprintf( stderr
, " from=%08x", req
->from
);
3165 fprintf( stderr
, ", to=%08x", req
->to
);
3166 fprintf( stderr
, ", dpi=%d", req
->dpi
);
3169 static void dump_get_windows_offset_reply( const struct get_windows_offset_reply
*req
)
3171 fprintf( stderr
, " x=%d", req
->x
);
3172 fprintf( stderr
, ", y=%d", req
->y
);
3173 fprintf( stderr
, ", mirror=%d", req
->mirror
);
3176 static void dump_get_visible_region_request( const struct get_visible_region_request
*req
)
3178 fprintf( stderr
, " window=%08x", req
->window
);
3179 fprintf( stderr
, ", flags=%08x", req
->flags
);
3182 static void dump_get_visible_region_reply( const struct get_visible_region_reply
*req
)
3184 fprintf( stderr
, " top_win=%08x", req
->top_win
);
3185 dump_rectangle( ", top_rect=", &req
->top_rect
);
3186 dump_rectangle( ", win_rect=", &req
->win_rect
);
3187 fprintf( stderr
, ", paint_flags=%08x", req
->paint_flags
);
3188 fprintf( stderr
, ", total_size=%u", req
->total_size
);
3189 dump_varargs_rectangles( ", region=", cur_size
);
3192 static void dump_get_window_region_request( const struct get_window_region_request
*req
)
3194 fprintf( stderr
, " window=%08x", req
->window
);
3195 fprintf( stderr
, ", surface=%d", req
->surface
);
3198 static void dump_get_window_region_reply( const struct get_window_region_reply
*req
)
3200 dump_rectangle( " visible_rect=", &req
->visible_rect
);
3201 fprintf( stderr
, ", total_size=%u", req
->total_size
);
3202 dump_varargs_rectangles( ", region=", cur_size
);
3205 static void dump_set_window_region_request( const struct set_window_region_request
*req
)
3207 fprintf( stderr
, " window=%08x", req
->window
);
3208 fprintf( stderr
, ", redraw=%d", req
->redraw
);
3209 dump_varargs_rectangles( ", region=", cur_size
);
3212 static void dump_get_update_region_request( const struct get_update_region_request
*req
)
3214 fprintf( stderr
, " window=%08x", req
->window
);
3215 fprintf( stderr
, ", from_child=%08x", req
->from_child
);
3216 fprintf( stderr
, ", flags=%08x", req
->flags
);
3219 static void dump_get_update_region_reply( const struct get_update_region_reply
*req
)
3221 fprintf( stderr
, " child=%08x", req
->child
);
3222 fprintf( stderr
, ", flags=%08x", req
->flags
);
3223 fprintf( stderr
, ", total_size=%u", req
->total_size
);
3224 dump_varargs_rectangles( ", region=", cur_size
);
3227 static void dump_update_window_zorder_request( const struct update_window_zorder_request
*req
)
3229 fprintf( stderr
, " window=%08x", req
->window
);
3230 dump_rectangle( ", rect=", &req
->rect
);
3233 static void dump_redraw_window_request( const struct redraw_window_request
*req
)
3235 fprintf( stderr
, " window=%08x", req
->window
);
3236 fprintf( stderr
, ", flags=%08x", req
->flags
);
3237 dump_varargs_rectangles( ", region=", cur_size
);
3240 static void dump_set_window_property_request( const struct set_window_property_request
*req
)
3242 fprintf( stderr
, " window=%08x", req
->window
);
3243 dump_uint64( ", data=", &req
->data
);
3244 fprintf( stderr
, ", atom=%04x", req
->atom
);
3245 dump_varargs_unicode_str( ", name=", cur_size
);
3248 static void dump_remove_window_property_request( const struct remove_window_property_request
*req
)
3250 fprintf( stderr
, " window=%08x", req
->window
);
3251 fprintf( stderr
, ", atom=%04x", req
->atom
);
3252 dump_varargs_unicode_str( ", name=", cur_size
);
3255 static void dump_remove_window_property_reply( const struct remove_window_property_reply
*req
)
3257 dump_uint64( " data=", &req
->data
);
3260 static void dump_get_window_property_request( const struct get_window_property_request
*req
)
3262 fprintf( stderr
, " window=%08x", req
->window
);
3263 fprintf( stderr
, ", atom=%04x", req
->atom
);
3264 dump_varargs_unicode_str( ", name=", cur_size
);
3267 static void dump_get_window_property_reply( const struct get_window_property_reply
*req
)
3269 dump_uint64( " data=", &req
->data
);
3272 static void dump_get_window_properties_request( const struct get_window_properties_request
*req
)
3274 fprintf( stderr
, " window=%08x", req
->window
);
3277 static void dump_get_window_properties_reply( const struct get_window_properties_reply
*req
)
3279 fprintf( stderr
, " total=%d", req
->total
);
3280 dump_varargs_properties( ", props=", cur_size
);
3283 static void dump_create_winstation_request( const struct create_winstation_request
*req
)
3285 fprintf( stderr
, " flags=%08x", req
->flags
);
3286 fprintf( stderr
, ", access=%08x", req
->access
);
3287 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3288 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
3289 dump_varargs_unicode_str( ", name=", cur_size
);
3292 static void dump_create_winstation_reply( const struct create_winstation_reply
*req
)
3294 fprintf( stderr
, " handle=%04x", req
->handle
);
3297 static void dump_open_winstation_request( const struct open_winstation_request
*req
)
3299 fprintf( stderr
, " access=%08x", req
->access
);
3300 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3301 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
3302 dump_varargs_unicode_str( ", name=", cur_size
);
3305 static void dump_open_winstation_reply( const struct open_winstation_reply
*req
)
3307 fprintf( stderr
, " handle=%04x", req
->handle
);
3310 static void dump_close_winstation_request( const struct close_winstation_request
*req
)
3312 fprintf( stderr
, " handle=%04x", req
->handle
);
3315 static void dump_get_process_winstation_request( const struct get_process_winstation_request
*req
)
3319 static void dump_get_process_winstation_reply( const struct get_process_winstation_reply
*req
)
3321 fprintf( stderr
, " handle=%04x", req
->handle
);
3324 static void dump_set_process_winstation_request( const struct set_process_winstation_request
*req
)
3326 fprintf( stderr
, " handle=%04x", req
->handle
);
3329 static void dump_enum_winstation_request( const struct enum_winstation_request
*req
)
3331 fprintf( stderr
, " index=%08x", req
->index
);
3334 static void dump_enum_winstation_reply( const struct enum_winstation_reply
*req
)
3336 fprintf( stderr
, " next=%08x", req
->next
);
3337 dump_varargs_unicode_str( ", name=", cur_size
);
3340 static void dump_create_desktop_request( const struct create_desktop_request
*req
)
3342 fprintf( stderr
, " flags=%08x", req
->flags
);
3343 fprintf( stderr
, ", access=%08x", req
->access
);
3344 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3345 dump_varargs_unicode_str( ", name=", cur_size
);
3348 static void dump_create_desktop_reply( const struct create_desktop_reply
*req
)
3350 fprintf( stderr
, " handle=%04x", req
->handle
);
3353 static void dump_open_desktop_request( const struct open_desktop_request
*req
)
3355 fprintf( stderr
, " winsta=%04x", req
->winsta
);
3356 fprintf( stderr
, ", flags=%08x", req
->flags
);
3357 fprintf( stderr
, ", access=%08x", req
->access
);
3358 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3359 dump_varargs_unicode_str( ", name=", cur_size
);
3362 static void dump_open_desktop_reply( const struct open_desktop_reply
*req
)
3364 fprintf( stderr
, " handle=%04x", req
->handle
);
3367 static void dump_open_input_desktop_request( const struct open_input_desktop_request
*req
)
3369 fprintf( stderr
, " flags=%08x", req
->flags
);
3370 fprintf( stderr
, ", access=%08x", req
->access
);
3371 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3374 static void dump_open_input_desktop_reply( const struct open_input_desktop_reply
*req
)
3376 fprintf( stderr
, " handle=%04x", req
->handle
);
3379 static void dump_set_input_desktop_request( const struct set_input_desktop_request
*req
)
3381 fprintf( stderr
, " handle=%04x", req
->handle
);
3384 static void dump_close_desktop_request( const struct close_desktop_request
*req
)
3386 fprintf( stderr
, " handle=%04x", req
->handle
);
3389 static void dump_get_thread_desktop_request( const struct get_thread_desktop_request
*req
)
3391 fprintf( stderr
, " tid=%04x", req
->tid
);
3394 static void dump_get_thread_desktop_reply( const struct get_thread_desktop_reply
*req
)
3396 fprintf( stderr
, " handle=%04x", req
->handle
);
3399 static void dump_set_thread_desktop_request( const struct set_thread_desktop_request
*req
)
3401 fprintf( stderr
, " handle=%04x", req
->handle
);
3404 static void dump_enum_desktop_request( const struct enum_desktop_request
*req
)
3406 fprintf( stderr
, " winstation=%04x", req
->winstation
);
3407 fprintf( stderr
, ", index=%08x", req
->index
);
3410 static void dump_enum_desktop_reply( const struct enum_desktop_reply
*req
)
3412 fprintf( stderr
, " next=%08x", req
->next
);
3413 dump_varargs_unicode_str( ", name=", cur_size
);
3416 static void dump_set_user_object_info_request( const struct set_user_object_info_request
*req
)
3418 fprintf( stderr
, " handle=%04x", req
->handle
);
3419 fprintf( stderr
, ", flags=%08x", req
->flags
);
3420 fprintf( stderr
, ", obj_flags=%08x", req
->obj_flags
);
3423 static void dump_set_user_object_info_reply( const struct set_user_object_info_reply
*req
)
3425 fprintf( stderr
, " is_desktop=%d", req
->is_desktop
);
3426 fprintf( stderr
, ", old_obj_flags=%08x", req
->old_obj_flags
);
3427 dump_varargs_unicode_str( ", name=", cur_size
);
3430 static void dump_register_hotkey_request( const struct register_hotkey_request
*req
)
3432 fprintf( stderr
, " window=%08x", req
->window
);
3433 fprintf( stderr
, ", id=%d", req
->id
);
3434 fprintf( stderr
, ", flags=%08x", req
->flags
);
3435 fprintf( stderr
, ", vkey=%08x", req
->vkey
);
3438 static void dump_register_hotkey_reply( const struct register_hotkey_reply
*req
)
3440 fprintf( stderr
, " replaced=%d", req
->replaced
);
3441 fprintf( stderr
, ", flags=%08x", req
->flags
);
3442 fprintf( stderr
, ", vkey=%08x", req
->vkey
);
3445 static void dump_unregister_hotkey_request( const struct unregister_hotkey_request
*req
)
3447 fprintf( stderr
, " window=%08x", req
->window
);
3448 fprintf( stderr
, ", id=%d", req
->id
);
3451 static void dump_unregister_hotkey_reply( const struct unregister_hotkey_reply
*req
)
3453 fprintf( stderr
, " flags=%08x", req
->flags
);
3454 fprintf( stderr
, ", vkey=%08x", req
->vkey
);
3457 static void dump_attach_thread_input_request( const struct attach_thread_input_request
*req
)
3459 fprintf( stderr
, " tid_from=%04x", req
->tid_from
);
3460 fprintf( stderr
, ", tid_to=%04x", req
->tid_to
);
3461 fprintf( stderr
, ", attach=%d", req
->attach
);
3464 static void dump_get_thread_input_request( const struct get_thread_input_request
*req
)
3466 fprintf( stderr
, " tid=%04x", req
->tid
);
3469 static void dump_get_thread_input_reply( const struct get_thread_input_reply
*req
)
3471 fprintf( stderr
, " focus=%08x", req
->focus
);
3472 fprintf( stderr
, ", capture=%08x", req
->capture
);
3473 fprintf( stderr
, ", active=%08x", req
->active
);
3474 fprintf( stderr
, ", foreground=%08x", req
->foreground
);
3475 fprintf( stderr
, ", menu_owner=%08x", req
->menu_owner
);
3476 fprintf( stderr
, ", move_size=%08x", req
->move_size
);
3477 fprintf( stderr
, ", caret=%08x", req
->caret
);
3478 fprintf( stderr
, ", cursor=%08x", req
->cursor
);
3479 fprintf( stderr
, ", show_count=%d", req
->show_count
);
3480 dump_rectangle( ", rect=", &req
->rect
);
3483 static void dump_get_last_input_time_request( const struct get_last_input_time_request
*req
)
3487 static void dump_get_last_input_time_reply( const struct get_last_input_time_reply
*req
)
3489 fprintf( stderr
, " time=%08x", req
->time
);
3492 static void dump_get_key_state_request( const struct get_key_state_request
*req
)
3494 fprintf( stderr
, " async=%d", req
->async
);
3495 fprintf( stderr
, ", key=%d", req
->key
);
3498 static void dump_get_key_state_reply( const struct get_key_state_reply
*req
)
3500 fprintf( stderr
, " state=%02x", req
->state
);
3501 dump_varargs_bytes( ", keystate=", cur_size
);
3504 static void dump_set_key_state_request( const struct set_key_state_request
*req
)
3506 fprintf( stderr
, " async=%d", req
->async
);
3507 dump_varargs_bytes( ", keystate=", cur_size
);
3510 static void dump_set_foreground_window_request( const struct set_foreground_window_request
*req
)
3512 fprintf( stderr
, " handle=%08x", req
->handle
);
3515 static void dump_set_foreground_window_reply( const struct set_foreground_window_reply
*req
)
3517 fprintf( stderr
, " previous=%08x", req
->previous
);
3518 fprintf( stderr
, ", send_msg_old=%d", req
->send_msg_old
);
3519 fprintf( stderr
, ", send_msg_new=%d", req
->send_msg_new
);
3522 static void dump_set_focus_window_request( const struct set_focus_window_request
*req
)
3524 fprintf( stderr
, " handle=%08x", req
->handle
);
3527 static void dump_set_focus_window_reply( const struct set_focus_window_reply
*req
)
3529 fprintf( stderr
, " previous=%08x", req
->previous
);
3532 static void dump_set_active_window_request( const struct set_active_window_request
*req
)
3534 fprintf( stderr
, " handle=%08x", req
->handle
);
3537 static void dump_set_active_window_reply( const struct set_active_window_reply
*req
)
3539 fprintf( stderr
, " previous=%08x", req
->previous
);
3542 static void dump_set_capture_window_request( const struct set_capture_window_request
*req
)
3544 fprintf( stderr
, " handle=%08x", req
->handle
);
3545 fprintf( stderr
, ", flags=%08x", req
->flags
);
3548 static void dump_set_capture_window_reply( const struct set_capture_window_reply
*req
)
3550 fprintf( stderr
, " previous=%08x", req
->previous
);
3551 fprintf( stderr
, ", full_handle=%08x", req
->full_handle
);
3554 static void dump_set_caret_window_request( const struct set_caret_window_request
*req
)
3556 fprintf( stderr
, " handle=%08x", req
->handle
);
3557 fprintf( stderr
, ", width=%d", req
->width
);
3558 fprintf( stderr
, ", height=%d", req
->height
);
3561 static void dump_set_caret_window_reply( const struct set_caret_window_reply
*req
)
3563 fprintf( stderr
, " previous=%08x", req
->previous
);
3564 dump_rectangle( ", old_rect=", &req
->old_rect
);
3565 fprintf( stderr
, ", old_hide=%d", req
->old_hide
);
3566 fprintf( stderr
, ", old_state=%d", req
->old_state
);
3569 static void dump_set_caret_info_request( const struct set_caret_info_request
*req
)
3571 fprintf( stderr
, " flags=%08x", req
->flags
);
3572 fprintf( stderr
, ", handle=%08x", req
->handle
);
3573 fprintf( stderr
, ", x=%d", req
->x
);
3574 fprintf( stderr
, ", y=%d", req
->y
);
3575 fprintf( stderr
, ", hide=%d", req
->hide
);
3576 fprintf( stderr
, ", state=%d", req
->state
);
3579 static void dump_set_caret_info_reply( const struct set_caret_info_reply
*req
)
3581 fprintf( stderr
, " full_handle=%08x", req
->full_handle
);
3582 dump_rectangle( ", old_rect=", &req
->old_rect
);
3583 fprintf( stderr
, ", old_hide=%d", req
->old_hide
);
3584 fprintf( stderr
, ", old_state=%d", req
->old_state
);
3587 static void dump_set_hook_request( const struct set_hook_request
*req
)
3589 fprintf( stderr
, " id=%d", req
->id
);
3590 fprintf( stderr
, ", pid=%04x", req
->pid
);
3591 fprintf( stderr
, ", tid=%04x", req
->tid
);
3592 fprintf( stderr
, ", event_min=%d", req
->event_min
);
3593 fprintf( stderr
, ", event_max=%d", req
->event_max
);
3594 dump_uint64( ", proc=", &req
->proc
);
3595 fprintf( stderr
, ", flags=%d", req
->flags
);
3596 fprintf( stderr
, ", unicode=%d", req
->unicode
);
3597 dump_varargs_unicode_str( ", module=", cur_size
);
3600 static void dump_set_hook_reply( const struct set_hook_reply
*req
)
3602 fprintf( stderr
, " handle=%08x", req
->handle
);
3603 fprintf( stderr
, ", active_hooks=%08x", req
->active_hooks
);
3606 static void dump_remove_hook_request( const struct remove_hook_request
*req
)
3608 fprintf( stderr
, " handle=%08x", req
->handle
);
3609 dump_uint64( ", proc=", &req
->proc
);
3610 fprintf( stderr
, ", id=%d", req
->id
);
3613 static void dump_remove_hook_reply( const struct remove_hook_reply
*req
)
3615 fprintf( stderr
, " active_hooks=%08x", req
->active_hooks
);
3618 static void dump_start_hook_chain_request( const struct start_hook_chain_request
*req
)
3620 fprintf( stderr
, " id=%d", req
->id
);
3621 fprintf( stderr
, ", event=%d", req
->event
);
3622 fprintf( stderr
, ", window=%08x", req
->window
);
3623 fprintf( stderr
, ", object_id=%d", req
->object_id
);
3624 fprintf( stderr
, ", child_id=%d", req
->child_id
);
3627 static void dump_start_hook_chain_reply( const struct start_hook_chain_reply
*req
)
3629 fprintf( stderr
, " handle=%08x", req
->handle
);
3630 fprintf( stderr
, ", pid=%04x", req
->pid
);
3631 fprintf( stderr
, ", tid=%04x", req
->tid
);
3632 fprintf( stderr
, ", unicode=%d", req
->unicode
);
3633 dump_uint64( ", proc=", &req
->proc
);
3634 fprintf( stderr
, ", active_hooks=%08x", req
->active_hooks
);
3635 dump_varargs_unicode_str( ", module=", cur_size
);
3638 static void dump_finish_hook_chain_request( const struct finish_hook_chain_request
*req
)
3640 fprintf( stderr
, " id=%d", req
->id
);
3643 static void dump_get_hook_info_request( const struct get_hook_info_request
*req
)
3645 fprintf( stderr
, " handle=%08x", req
->handle
);
3646 fprintf( stderr
, ", get_next=%d", req
->get_next
);
3647 fprintf( stderr
, ", event=%d", req
->event
);
3648 fprintf( stderr
, ", window=%08x", req
->window
);
3649 fprintf( stderr
, ", object_id=%d", req
->object_id
);
3650 fprintf( stderr
, ", child_id=%d", req
->child_id
);
3653 static void dump_get_hook_info_reply( const struct get_hook_info_reply
*req
)
3655 fprintf( stderr
, " handle=%08x", req
->handle
);
3656 fprintf( stderr
, ", id=%d", req
->id
);
3657 fprintf( stderr
, ", pid=%04x", req
->pid
);
3658 fprintf( stderr
, ", tid=%04x", req
->tid
);
3659 dump_uint64( ", proc=", &req
->proc
);
3660 fprintf( stderr
, ", unicode=%d", req
->unicode
);
3661 dump_varargs_unicode_str( ", module=", cur_size
);
3664 static void dump_create_class_request( const struct create_class_request
*req
)
3666 fprintf( stderr
, " local=%d", req
->local
);
3667 fprintf( stderr
, ", atom=%04x", req
->atom
);
3668 fprintf( stderr
, ", style=%08x", req
->style
);
3669 dump_uint64( ", instance=", &req
->instance
);
3670 fprintf( stderr
, ", extra=%d", req
->extra
);
3671 fprintf( stderr
, ", win_extra=%d", req
->win_extra
);
3672 dump_uint64( ", client_ptr=", &req
->client_ptr
);
3673 fprintf( stderr
, ", name_offset=%u", req
->name_offset
);
3674 dump_varargs_unicode_str( ", name=", cur_size
);
3677 static void dump_create_class_reply( const struct create_class_reply
*req
)
3679 fprintf( stderr
, " atom=%04x", req
->atom
);
3682 static void dump_destroy_class_request( const struct destroy_class_request
*req
)
3684 fprintf( stderr
, " atom=%04x", req
->atom
);
3685 dump_uint64( ", instance=", &req
->instance
);
3686 dump_varargs_unicode_str( ", name=", cur_size
);
3689 static void dump_destroy_class_reply( const struct destroy_class_reply
*req
)
3691 dump_uint64( " client_ptr=", &req
->client_ptr
);
3694 static void dump_set_class_info_request( const struct set_class_info_request
*req
)
3696 fprintf( stderr
, " window=%08x", req
->window
);
3697 fprintf( stderr
, ", flags=%08x", req
->flags
);
3698 fprintf( stderr
, ", atom=%04x", req
->atom
);
3699 fprintf( stderr
, ", style=%08x", req
->style
);
3700 fprintf( stderr
, ", win_extra=%d", req
->win_extra
);
3701 dump_uint64( ", instance=", &req
->instance
);
3702 fprintf( stderr
, ", extra_offset=%d", req
->extra_offset
);
3703 fprintf( stderr
, ", extra_size=%u", req
->extra_size
);
3704 dump_uint64( ", extra_value=", &req
->extra_value
);
3707 static void dump_set_class_info_reply( const struct set_class_info_reply
*req
)
3709 fprintf( stderr
, " old_atom=%04x", req
->old_atom
);
3710 fprintf( stderr
, ", base_atom=%04x", req
->base_atom
);
3711 dump_uint64( ", old_instance=", &req
->old_instance
);
3712 dump_uint64( ", old_extra_value=", &req
->old_extra_value
);
3713 fprintf( stderr
, ", old_style=%08x", req
->old_style
);
3714 fprintf( stderr
, ", old_extra=%d", req
->old_extra
);
3715 fprintf( stderr
, ", old_win_extra=%d", req
->old_win_extra
);
3718 static void dump_open_clipboard_request( const struct open_clipboard_request
*req
)
3720 fprintf( stderr
, " window=%08x", req
->window
);
3723 static void dump_open_clipboard_reply( const struct open_clipboard_reply
*req
)
3725 fprintf( stderr
, " owner=%08x", req
->owner
);
3728 static void dump_close_clipboard_request( const struct close_clipboard_request
*req
)
3732 static void dump_close_clipboard_reply( const struct close_clipboard_reply
*req
)
3734 fprintf( stderr
, " viewer=%08x", req
->viewer
);
3735 fprintf( stderr
, ", owner=%08x", req
->owner
);
3738 static void dump_empty_clipboard_request( const struct empty_clipboard_request
*req
)
3742 static void dump_set_clipboard_data_request( const struct set_clipboard_data_request
*req
)
3744 fprintf( stderr
, " format=%08x", req
->format
);
3745 fprintf( stderr
, ", lcid=%08x", req
->lcid
);
3746 dump_varargs_bytes( ", data=", cur_size
);
3749 static void dump_set_clipboard_data_reply( const struct set_clipboard_data_reply
*req
)
3751 fprintf( stderr
, " seqno=%08x", req
->seqno
);
3754 static void dump_get_clipboard_data_request( const struct get_clipboard_data_request
*req
)
3756 fprintf( stderr
, " format=%08x", req
->format
);
3757 fprintf( stderr
, ", render=%d", req
->render
);
3758 fprintf( stderr
, ", cached=%d", req
->cached
);
3759 fprintf( stderr
, ", seqno=%08x", req
->seqno
);
3762 static void dump_get_clipboard_data_reply( const struct get_clipboard_data_reply
*req
)
3764 fprintf( stderr
, " from=%08x", req
->from
);
3765 fprintf( stderr
, ", owner=%08x", req
->owner
);
3766 fprintf( stderr
, ", seqno=%08x", req
->seqno
);
3767 fprintf( stderr
, ", total=%u", req
->total
);
3768 dump_varargs_bytes( ", data=", cur_size
);
3771 static void dump_get_clipboard_formats_request( const struct get_clipboard_formats_request
*req
)
3773 fprintf( stderr
, " format=%08x", req
->format
);
3776 static void dump_get_clipboard_formats_reply( const struct get_clipboard_formats_reply
*req
)
3778 fprintf( stderr
, " count=%08x", req
->count
);
3779 dump_varargs_uints( ", formats=", cur_size
);
3782 static void dump_enum_clipboard_formats_request( const struct enum_clipboard_formats_request
*req
)
3784 fprintf( stderr
, " previous=%08x", req
->previous
);
3787 static void dump_enum_clipboard_formats_reply( const struct enum_clipboard_formats_reply
*req
)
3789 fprintf( stderr
, " format=%08x", req
->format
);
3792 static void dump_release_clipboard_request( const struct release_clipboard_request
*req
)
3794 fprintf( stderr
, " owner=%08x", req
->owner
);
3797 static void dump_release_clipboard_reply( const struct release_clipboard_reply
*req
)
3799 fprintf( stderr
, " viewer=%08x", req
->viewer
);
3800 fprintf( stderr
, ", owner=%08x", req
->owner
);
3803 static void dump_get_clipboard_info_request( const struct get_clipboard_info_request
*req
)
3807 static void dump_get_clipboard_info_reply( const struct get_clipboard_info_reply
*req
)
3809 fprintf( stderr
, " window=%08x", req
->window
);
3810 fprintf( stderr
, ", owner=%08x", req
->owner
);
3811 fprintf( stderr
, ", viewer=%08x", req
->viewer
);
3812 fprintf( stderr
, ", seqno=%08x", req
->seqno
);
3815 static void dump_set_clipboard_viewer_request( const struct set_clipboard_viewer_request
*req
)
3817 fprintf( stderr
, " viewer=%08x", req
->viewer
);
3818 fprintf( stderr
, ", previous=%08x", req
->previous
);
3821 static void dump_set_clipboard_viewer_reply( const struct set_clipboard_viewer_reply
*req
)
3823 fprintf( stderr
, " old_viewer=%08x", req
->old_viewer
);
3824 fprintf( stderr
, ", owner=%08x", req
->owner
);
3827 static void dump_add_clipboard_listener_request( const struct add_clipboard_listener_request
*req
)
3829 fprintf( stderr
, " window=%08x", req
->window
);
3832 static void dump_remove_clipboard_listener_request( const struct remove_clipboard_listener_request
*req
)
3834 fprintf( stderr
, " window=%08x", req
->window
);
3837 static void dump_create_token_request( const struct create_token_request
*req
)
3839 dump_luid( " token_id=", &req
->token_id
);
3840 fprintf( stderr
, ", access=%08x", req
->access
);
3841 fprintf( stderr
, ", primary=%d", req
->primary
);
3842 fprintf( stderr
, ", impersonation_level=%d", req
->impersonation_level
);
3843 dump_abstime( ", expire=", &req
->expire
);
3844 fprintf( stderr
, ", group_count=%d", req
->group_count
);
3845 fprintf( stderr
, ", primary_group=%d", req
->primary_group
);
3846 fprintf( stderr
, ", priv_count=%d", req
->priv_count
);
3849 static void dump_create_token_reply( const struct create_token_reply
*req
)
3851 fprintf( stderr
, " token=%04x", req
->token
);
3854 static void dump_open_token_request( const struct open_token_request
*req
)
3856 fprintf( stderr
, " handle=%04x", req
->handle
);
3857 fprintf( stderr
, ", access=%08x", req
->access
);
3858 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3859 fprintf( stderr
, ", flags=%08x", req
->flags
);
3862 static void dump_open_token_reply( const struct open_token_reply
*req
)
3864 fprintf( stderr
, " token=%04x", req
->token
);
3867 static void dump_set_global_windows_request( const struct set_global_windows_request
*req
)
3869 fprintf( stderr
, " flags=%08x", req
->flags
);
3870 fprintf( stderr
, ", shell_window=%08x", req
->shell_window
);
3871 fprintf( stderr
, ", shell_listview=%08x", req
->shell_listview
);
3872 fprintf( stderr
, ", progman_window=%08x", req
->progman_window
);
3873 fprintf( stderr
, ", taskman_window=%08x", req
->taskman_window
);
3876 static void dump_set_global_windows_reply( const struct set_global_windows_reply
*req
)
3878 fprintf( stderr
, " old_shell_window=%08x", req
->old_shell_window
);
3879 fprintf( stderr
, ", old_shell_listview=%08x", req
->old_shell_listview
);
3880 fprintf( stderr
, ", old_progman_window=%08x", req
->old_progman_window
);
3881 fprintf( stderr
, ", old_taskman_window=%08x", req
->old_taskman_window
);
3884 static void dump_adjust_token_privileges_request( const struct adjust_token_privileges_request
*req
)
3886 fprintf( stderr
, " handle=%04x", req
->handle
);
3887 fprintf( stderr
, ", disable_all=%d", req
->disable_all
);
3888 fprintf( stderr
, ", get_modified_state=%d", req
->get_modified_state
);
3889 dump_varargs_luid_attr( ", privileges=", cur_size
);
3892 static void dump_adjust_token_privileges_reply( const struct adjust_token_privileges_reply
*req
)
3894 fprintf( stderr
, " len=%08x", req
->len
);
3895 dump_varargs_luid_attr( ", privileges=", cur_size
);
3898 static void dump_get_token_privileges_request( const struct get_token_privileges_request
*req
)
3900 fprintf( stderr
, " handle=%04x", req
->handle
);
3903 static void dump_get_token_privileges_reply( const struct get_token_privileges_reply
*req
)
3905 fprintf( stderr
, " len=%08x", req
->len
);
3906 dump_varargs_luid_attr( ", privileges=", cur_size
);
3909 static void dump_check_token_privileges_request( const struct check_token_privileges_request
*req
)
3911 fprintf( stderr
, " handle=%04x", req
->handle
);
3912 fprintf( stderr
, ", all_required=%d", req
->all_required
);
3913 dump_varargs_luid_attr( ", privileges=", cur_size
);
3916 static void dump_check_token_privileges_reply( const struct check_token_privileges_reply
*req
)
3918 fprintf( stderr
, " has_privileges=%d", req
->has_privileges
);
3919 dump_varargs_luid_attr( ", privileges=", cur_size
);
3922 static void dump_duplicate_token_request( const struct duplicate_token_request
*req
)
3924 fprintf( stderr
, " handle=%04x", req
->handle
);
3925 fprintf( stderr
, ", access=%08x", req
->access
);
3926 fprintf( stderr
, ", primary=%d", req
->primary
);
3927 fprintf( stderr
, ", impersonation_level=%d", req
->impersonation_level
);
3928 dump_varargs_object_attributes( ", objattr=", cur_size
);
3931 static void dump_duplicate_token_reply( const struct duplicate_token_reply
*req
)
3933 fprintf( stderr
, " new_handle=%04x", req
->new_handle
);
3936 static void dump_filter_token_request( const struct filter_token_request
*req
)
3938 fprintf( stderr
, " handle=%04x", req
->handle
);
3939 fprintf( stderr
, ", flags=%08x", req
->flags
);
3940 fprintf( stderr
, ", privileges_size=%u", req
->privileges_size
);
3941 dump_varargs_luid_attr( ", privileges=", min(cur_size
,req
->privileges_size
) );
3942 dump_varargs_sid( ", disable_sids=", cur_size
);
3945 static void dump_filter_token_reply( const struct filter_token_reply
*req
)
3947 fprintf( stderr
, " new_handle=%04x", req
->new_handle
);
3950 static void dump_access_check_request( const struct access_check_request
*req
)
3952 fprintf( stderr
, " handle=%04x", req
->handle
);
3953 fprintf( stderr
, ", desired_access=%08x", req
->desired_access
);
3954 dump_generic_map( ", mapping=", &req
->mapping
);
3955 dump_varargs_security_descriptor( ", sd=", cur_size
);
3958 static void dump_access_check_reply( const struct access_check_reply
*req
)
3960 fprintf( stderr
, " access_granted=%08x", req
->access_granted
);
3961 fprintf( stderr
, ", access_status=%08x", req
->access_status
);
3962 fprintf( stderr
, ", privileges_len=%08x", req
->privileges_len
);
3963 dump_varargs_luid_attr( ", privileges=", cur_size
);
3966 static void dump_get_token_sid_request( const struct get_token_sid_request
*req
)
3968 fprintf( stderr
, " handle=%04x", req
->handle
);
3969 fprintf( stderr
, ", which_sid=%08x", req
->which_sid
);
3972 static void dump_get_token_sid_reply( const struct get_token_sid_reply
*req
)
3974 fprintf( stderr
, " sid_len=%u", req
->sid_len
);
3975 dump_varargs_sid( ", sid=", cur_size
);
3978 static void dump_get_token_groups_request( const struct get_token_groups_request
*req
)
3980 fprintf( stderr
, " handle=%04x", req
->handle
);
3981 fprintf( stderr
, ", attr_mask=%08x", req
->attr_mask
);
3984 static void dump_get_token_groups_reply( const struct get_token_groups_reply
*req
)
3986 fprintf( stderr
, " attr_len=%u", req
->attr_len
);
3987 fprintf( stderr
, ", sid_len=%u", req
->sid_len
);
3988 dump_varargs_uints( ", attrs=", min(cur_size
,req
->attr_len
) );
3989 dump_varargs_sids( ", sids=", cur_size
);
3992 static void dump_get_token_default_dacl_request( const struct get_token_default_dacl_request
*req
)
3994 fprintf( stderr
, " handle=%04x", req
->handle
);
3997 static void dump_get_token_default_dacl_reply( const struct get_token_default_dacl_reply
*req
)
3999 fprintf( stderr
, " acl_len=%u", req
->acl_len
);
4000 dump_varargs_acl( ", acl=", cur_size
);
4003 static void dump_set_token_default_dacl_request( const struct set_token_default_dacl_request
*req
)
4005 fprintf( stderr
, " handle=%04x", req
->handle
);
4006 dump_varargs_acl( ", acl=", cur_size
);
4009 static void dump_set_security_object_request( const struct set_security_object_request
*req
)
4011 fprintf( stderr
, " handle=%04x", req
->handle
);
4012 fprintf( stderr
, ", security_info=%08x", req
->security_info
);
4013 dump_varargs_security_descriptor( ", sd=", cur_size
);
4016 static void dump_get_security_object_request( const struct get_security_object_request
*req
)
4018 fprintf( stderr
, " handle=%04x", req
->handle
);
4019 fprintf( stderr
, ", security_info=%08x", req
->security_info
);
4022 static void dump_get_security_object_reply( const struct get_security_object_reply
*req
)
4024 fprintf( stderr
, " sd_len=%08x", req
->sd_len
);
4025 dump_varargs_security_descriptor( ", sd=", cur_size
);
4028 static void dump_get_system_handles_request( const struct get_system_handles_request
*req
)
4032 static void dump_get_system_handles_reply( const struct get_system_handles_reply
*req
)
4034 fprintf( stderr
, " count=%08x", req
->count
);
4035 dump_varargs_handle_infos( ", data=", cur_size
);
4038 static void dump_create_mailslot_request( const struct create_mailslot_request
*req
)
4040 fprintf( stderr
, " access=%08x", req
->access
);
4041 dump_timeout( ", read_timeout=", &req
->read_timeout
);
4042 fprintf( stderr
, ", max_msgsize=%08x", req
->max_msgsize
);
4043 dump_varargs_object_attributes( ", objattr=", cur_size
);
4046 static void dump_create_mailslot_reply( const struct create_mailslot_reply
*req
)
4048 fprintf( stderr
, " handle=%04x", req
->handle
);
4051 static void dump_set_mailslot_info_request( const struct set_mailslot_info_request
*req
)
4053 fprintf( stderr
, " handle=%04x", req
->handle
);
4054 dump_timeout( ", read_timeout=", &req
->read_timeout
);
4055 fprintf( stderr
, ", flags=%08x", req
->flags
);
4058 static void dump_set_mailslot_info_reply( const struct set_mailslot_info_reply
*req
)
4060 dump_timeout( " read_timeout=", &req
->read_timeout
);
4061 fprintf( stderr
, ", max_msgsize=%08x", req
->max_msgsize
);
4064 static void dump_create_directory_request( const struct create_directory_request
*req
)
4066 fprintf( stderr
, " access=%08x", req
->access
);
4067 dump_varargs_object_attributes( ", objattr=", cur_size
);
4070 static void dump_create_directory_reply( const struct create_directory_reply
*req
)
4072 fprintf( stderr
, " handle=%04x", req
->handle
);
4075 static void dump_open_directory_request( const struct open_directory_request
*req
)
4077 fprintf( stderr
, " access=%08x", req
->access
);
4078 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
4079 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
4080 dump_varargs_unicode_str( ", directory_name=", cur_size
);
4083 static void dump_open_directory_reply( const struct open_directory_reply
*req
)
4085 fprintf( stderr
, " handle=%04x", req
->handle
);
4088 static void dump_get_directory_entry_request( const struct get_directory_entry_request
*req
)
4090 fprintf( stderr
, " handle=%04x", req
->handle
);
4091 fprintf( stderr
, ", index=%08x", req
->index
);
4094 static void dump_get_directory_entry_reply( const struct get_directory_entry_reply
*req
)
4096 fprintf( stderr
, " total_len=%u", req
->total_len
);
4097 fprintf( stderr
, ", name_len=%u", req
->name_len
);
4098 dump_varargs_unicode_str( ", name=", min(cur_size
,req
->name_len
) );
4099 dump_varargs_unicode_str( ", type=", cur_size
);
4102 static void dump_create_symlink_request( const struct create_symlink_request
*req
)
4104 fprintf( stderr
, " access=%08x", req
->access
);
4105 dump_varargs_object_attributes( ", objattr=", cur_size
);
4106 dump_varargs_unicode_str( ", target_name=", cur_size
);
4109 static void dump_create_symlink_reply( const struct create_symlink_reply
*req
)
4111 fprintf( stderr
, " handle=%04x", req
->handle
);
4114 static void dump_open_symlink_request( const struct open_symlink_request
*req
)
4116 fprintf( stderr
, " access=%08x", req
->access
);
4117 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
4118 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
4119 dump_varargs_unicode_str( ", name=", cur_size
);
4122 static void dump_open_symlink_reply( const struct open_symlink_reply
*req
)
4124 fprintf( stderr
, " handle=%04x", req
->handle
);
4127 static void dump_query_symlink_request( const struct query_symlink_request
*req
)
4129 fprintf( stderr
, " handle=%04x", req
->handle
);
4132 static void dump_query_symlink_reply( const struct query_symlink_reply
*req
)
4134 fprintf( stderr
, " total=%u", req
->total
);
4135 dump_varargs_unicode_str( ", target_name=", cur_size
);
4138 static void dump_get_object_info_request( const struct get_object_info_request
*req
)
4140 fprintf( stderr
, " handle=%04x", req
->handle
);
4143 static void dump_get_object_info_reply( const struct get_object_info_reply
*req
)
4145 fprintf( stderr
, " access=%08x", req
->access
);
4146 fprintf( stderr
, ", ref_count=%08x", req
->ref_count
);
4147 fprintf( stderr
, ", handle_count=%08x", req
->handle_count
);
4150 static void dump_get_object_name_request( const struct get_object_name_request
*req
)
4152 fprintf( stderr
, " handle=%04x", req
->handle
);
4155 static void dump_get_object_name_reply( const struct get_object_name_reply
*req
)
4157 fprintf( stderr
, " total=%u", req
->total
);
4158 dump_varargs_unicode_str( ", name=", cur_size
);
4161 static void dump_get_object_type_request( const struct get_object_type_request
*req
)
4163 fprintf( stderr
, " handle=%04x", req
->handle
);
4166 static void dump_get_object_type_reply( const struct get_object_type_reply
*req
)
4168 dump_varargs_object_type_info( " info=", cur_size
);
4171 static void dump_get_object_types_request( const struct get_object_types_request
*req
)
4175 static void dump_get_object_types_reply( const struct get_object_types_reply
*req
)
4177 fprintf( stderr
, " count=%d", req
->count
);
4178 dump_varargs_object_types_info( ", info=", cur_size
);
4181 static void dump_allocate_locally_unique_id_request( const struct allocate_locally_unique_id_request
*req
)
4185 static void dump_allocate_locally_unique_id_reply( const struct allocate_locally_unique_id_reply
*req
)
4187 dump_luid( " luid=", &req
->luid
);
4190 static void dump_create_device_manager_request( const struct create_device_manager_request
*req
)
4192 fprintf( stderr
, " access=%08x", req
->access
);
4193 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
4196 static void dump_create_device_manager_reply( const struct create_device_manager_reply
*req
)
4198 fprintf( stderr
, " handle=%04x", req
->handle
);
4201 static void dump_create_device_request( const struct create_device_request
*req
)
4203 fprintf( stderr
, " rootdir=%04x", req
->rootdir
);
4204 dump_uint64( ", user_ptr=", &req
->user_ptr
);
4205 fprintf( stderr
, ", manager=%04x", req
->manager
);
4206 dump_varargs_unicode_str( ", name=", cur_size
);
4209 static void dump_delete_device_request( const struct delete_device_request
*req
)
4211 fprintf( stderr
, " manager=%04x", req
->manager
);
4212 dump_uint64( ", device=", &req
->device
);
4215 static void dump_get_next_device_request_request( const struct get_next_device_request_request
*req
)
4217 fprintf( stderr
, " manager=%04x", req
->manager
);
4218 fprintf( stderr
, ", prev=%04x", req
->prev
);
4219 fprintf( stderr
, ", status=%08x", req
->status
);
4220 dump_uint64( ", user_ptr=", &req
->user_ptr
);
4221 fprintf( stderr
, ", pending=%d", req
->pending
);
4222 fprintf( stderr
, ", iosb_status=%08x", req
->iosb_status
);
4223 fprintf( stderr
, ", result=%u", req
->result
);
4224 dump_varargs_bytes( ", data=", cur_size
);
4227 static void dump_get_next_device_request_reply( const struct get_next_device_request_reply
*req
)
4229 dump_irp_params( " params=", &req
->params
);
4230 fprintf( stderr
, ", next=%04x", req
->next
);
4231 fprintf( stderr
, ", client_tid=%04x", req
->client_tid
);
4232 dump_uint64( ", client_thread=", &req
->client_thread
);
4233 fprintf( stderr
, ", in_size=%u", req
->in_size
);
4234 dump_varargs_bytes( ", next_data=", cur_size
);
4237 static void dump_get_kernel_object_ptr_request( const struct get_kernel_object_ptr_request
*req
)
4239 fprintf( stderr
, " manager=%04x", req
->manager
);
4240 fprintf( stderr
, ", handle=%04x", req
->handle
);
4243 static void dump_get_kernel_object_ptr_reply( const struct get_kernel_object_ptr_reply
*req
)
4245 dump_uint64( " user_ptr=", &req
->user_ptr
);
4248 static void dump_set_kernel_object_ptr_request( const struct set_kernel_object_ptr_request
*req
)
4250 fprintf( stderr
, " manager=%04x", req
->manager
);
4251 fprintf( stderr
, ", handle=%04x", req
->handle
);
4252 dump_uint64( ", user_ptr=", &req
->user_ptr
);
4255 static void dump_grab_kernel_object_request( const struct grab_kernel_object_request
*req
)
4257 fprintf( stderr
, " manager=%04x", req
->manager
);
4258 dump_uint64( ", user_ptr=", &req
->user_ptr
);
4261 static void dump_release_kernel_object_request( const struct release_kernel_object_request
*req
)
4263 fprintf( stderr
, " manager=%04x", req
->manager
);
4264 dump_uint64( ", user_ptr=", &req
->user_ptr
);
4267 static void dump_get_kernel_object_handle_request( const struct get_kernel_object_handle_request
*req
)
4269 fprintf( stderr
, " manager=%04x", req
->manager
);
4270 dump_uint64( ", user_ptr=", &req
->user_ptr
);
4271 fprintf( stderr
, ", access=%08x", req
->access
);
4274 static void dump_get_kernel_object_handle_reply( const struct get_kernel_object_handle_reply
*req
)
4276 fprintf( stderr
, " handle=%04x", req
->handle
);
4279 static void dump_make_process_system_request( const struct make_process_system_request
*req
)
4281 fprintf( stderr
, " handle=%04x", req
->handle
);
4284 static void dump_make_process_system_reply( const struct make_process_system_reply
*req
)
4286 fprintf( stderr
, " event=%04x", req
->event
);
4289 static void dump_get_token_info_request( const struct get_token_info_request
*req
)
4291 fprintf( stderr
, " handle=%04x", req
->handle
);
4294 static void dump_get_token_info_reply( const struct get_token_info_reply
*req
)
4296 dump_luid( " token_id=", &req
->token_id
);
4297 dump_luid( ", modified_id=", &req
->modified_id
);
4298 fprintf( stderr
, ", session_id=%08x", req
->session_id
);
4299 fprintf( stderr
, ", primary=%d", req
->primary
);
4300 fprintf( stderr
, ", impersonation_level=%d", req
->impersonation_level
);
4301 fprintf( stderr
, ", elevation=%d", req
->elevation
);
4302 fprintf( stderr
, ", group_count=%d", req
->group_count
);
4303 fprintf( stderr
, ", privilege_count=%d", req
->privilege_count
);
4306 static void dump_create_linked_token_request( const struct create_linked_token_request
*req
)
4308 fprintf( stderr
, " handle=%04x", req
->handle
);
4311 static void dump_create_linked_token_reply( const struct create_linked_token_reply
*req
)
4313 fprintf( stderr
, " linked=%04x", req
->linked
);
4316 static void dump_create_completion_request( const struct create_completion_request
*req
)
4318 fprintf( stderr
, " access=%08x", req
->access
);
4319 fprintf( stderr
, ", concurrent=%08x", req
->concurrent
);
4320 dump_varargs_object_attributes( ", objattr=", cur_size
);
4323 static void dump_create_completion_reply( const struct create_completion_reply
*req
)
4325 fprintf( stderr
, " handle=%04x", req
->handle
);
4328 static void dump_open_completion_request( const struct open_completion_request
*req
)
4330 fprintf( stderr
, " access=%08x", req
->access
);
4331 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
4332 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
4333 dump_varargs_unicode_str( ", filename=", cur_size
);
4336 static void dump_open_completion_reply( const struct open_completion_reply
*req
)
4338 fprintf( stderr
, " handle=%04x", req
->handle
);
4341 static void dump_add_completion_request( const struct add_completion_request
*req
)
4343 fprintf( stderr
, " handle=%04x", req
->handle
);
4344 dump_uint64( ", ckey=", &req
->ckey
);
4345 dump_uint64( ", cvalue=", &req
->cvalue
);
4346 dump_uint64( ", information=", &req
->information
);
4347 fprintf( stderr
, ", status=%08x", req
->status
);
4350 static void dump_remove_completion_request( const struct remove_completion_request
*req
)
4352 fprintf( stderr
, " handle=%04x", req
->handle
);
4355 static void dump_remove_completion_reply( const struct remove_completion_reply
*req
)
4357 dump_uint64( " ckey=", &req
->ckey
);
4358 dump_uint64( ", cvalue=", &req
->cvalue
);
4359 dump_uint64( ", information=", &req
->information
);
4360 fprintf( stderr
, ", status=%08x", req
->status
);
4363 static void dump_query_completion_request( const struct query_completion_request
*req
)
4365 fprintf( stderr
, " handle=%04x", req
->handle
);
4368 static void dump_query_completion_reply( const struct query_completion_reply
*req
)
4370 fprintf( stderr
, " depth=%08x", req
->depth
);
4373 static void dump_set_completion_info_request( const struct set_completion_info_request
*req
)
4375 fprintf( stderr
, " handle=%04x", req
->handle
);
4376 dump_uint64( ", ckey=", &req
->ckey
);
4377 fprintf( stderr
, ", chandle=%04x", req
->chandle
);
4380 static void dump_add_fd_completion_request( const struct add_fd_completion_request
*req
)
4382 fprintf( stderr
, " handle=%04x", req
->handle
);
4383 dump_uint64( ", cvalue=", &req
->cvalue
);
4384 dump_uint64( ", information=", &req
->information
);
4385 fprintf( stderr
, ", status=%08x", req
->status
);
4386 fprintf( stderr
, ", async=%d", req
->async
);
4389 static void dump_set_fd_completion_mode_request( const struct set_fd_completion_mode_request
*req
)
4391 fprintf( stderr
, " handle=%04x", req
->handle
);
4392 fprintf( stderr
, ", flags=%08x", req
->flags
);
4395 static void dump_set_fd_disp_info_request( const struct set_fd_disp_info_request
*req
)
4397 fprintf( stderr
, " handle=%04x", req
->handle
);
4398 fprintf( stderr
, ", flags=%08x", req
->flags
);
4401 static void dump_set_fd_name_info_request( const struct set_fd_name_info_request
*req
)
4403 fprintf( stderr
, " handle=%04x", req
->handle
);
4404 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
4405 fprintf( stderr
, ", namelen=%u", req
->namelen
);
4406 fprintf( stderr
, ", link=%d", req
->link
);
4407 fprintf( stderr
, ", flags=%08x", req
->flags
);
4408 dump_varargs_unicode_str( ", name=", min(cur_size
,req
->namelen
) );
4409 dump_varargs_string( ", filename=", cur_size
);
4412 static void dump_set_fd_eof_info_request( const struct set_fd_eof_info_request
*req
)
4414 fprintf( stderr
, " handle=%04x", req
->handle
);
4415 dump_uint64( ", eof=", &req
->eof
);
4418 static void dump_get_window_layered_info_request( const struct get_window_layered_info_request
*req
)
4420 fprintf( stderr
, " handle=%08x", req
->handle
);
4423 static void dump_get_window_layered_info_reply( const struct get_window_layered_info_reply
*req
)
4425 fprintf( stderr
, " color_key=%08x", req
->color_key
);
4426 fprintf( stderr
, ", alpha=%08x", req
->alpha
);
4427 fprintf( stderr
, ", flags=%08x", req
->flags
);
4430 static void dump_set_window_layered_info_request( const struct set_window_layered_info_request
*req
)
4432 fprintf( stderr
, " handle=%08x", req
->handle
);
4433 fprintf( stderr
, ", color_key=%08x", req
->color_key
);
4434 fprintf( stderr
, ", alpha=%08x", req
->alpha
);
4435 fprintf( stderr
, ", flags=%08x", req
->flags
);
4438 static void dump_alloc_user_handle_request( const struct alloc_user_handle_request
*req
)
4442 static void dump_alloc_user_handle_reply( const struct alloc_user_handle_reply
*req
)
4444 fprintf( stderr
, " handle=%08x", req
->handle
);
4447 static void dump_free_user_handle_request( const struct free_user_handle_request
*req
)
4449 fprintf( stderr
, " handle=%08x", req
->handle
);
4452 static void dump_set_cursor_request( const struct set_cursor_request
*req
)
4454 fprintf( stderr
, " flags=%08x", req
->flags
);
4455 fprintf( stderr
, ", handle=%08x", req
->handle
);
4456 fprintf( stderr
, ", show_count=%d", req
->show_count
);
4457 fprintf( stderr
, ", x=%d", req
->x
);
4458 fprintf( stderr
, ", y=%d", req
->y
);
4459 dump_rectangle( ", clip=", &req
->clip
);
4462 static void dump_set_cursor_reply( const struct set_cursor_reply
*req
)
4464 fprintf( stderr
, " prev_handle=%08x", req
->prev_handle
);
4465 fprintf( stderr
, ", prev_count=%d", req
->prev_count
);
4466 fprintf( stderr
, ", prev_x=%d", req
->prev_x
);
4467 fprintf( stderr
, ", prev_y=%d", req
->prev_y
);
4468 fprintf( stderr
, ", new_x=%d", req
->new_x
);
4469 fprintf( stderr
, ", new_y=%d", req
->new_y
);
4470 dump_rectangle( ", new_clip=", &req
->new_clip
);
4471 fprintf( stderr
, ", last_change=%08x", req
->last_change
);
4474 static void dump_get_cursor_history_request( const struct get_cursor_history_request
*req
)
4478 static void dump_get_cursor_history_reply( const struct get_cursor_history_reply
*req
)
4480 dump_varargs_cursor_positions( " history=", cur_size
);
4483 static void dump_get_rawinput_buffer_request( const struct get_rawinput_buffer_request
*req
)
4485 fprintf( stderr
, " header_size=%u", req
->header_size
);
4486 fprintf( stderr
, ", read_data=%d", req
->read_data
);
4489 static void dump_get_rawinput_buffer_reply( const struct get_rawinput_buffer_reply
*req
)
4491 fprintf( stderr
, " next_size=%u", req
->next_size
);
4492 fprintf( stderr
, ", time=%08x", req
->time
);
4493 fprintf( stderr
, ", count=%08x", req
->count
);
4494 dump_varargs_bytes( ", data=", cur_size
);
4497 static void dump_update_rawinput_devices_request( const struct update_rawinput_devices_request
*req
)
4499 dump_varargs_rawinput_devices( " devices=", cur_size
);
4502 static void dump_create_job_request( const struct create_job_request
*req
)
4504 fprintf( stderr
, " access=%08x", req
->access
);
4505 dump_varargs_object_attributes( ", objattr=", cur_size
);
4508 static void dump_create_job_reply( const struct create_job_reply
*req
)
4510 fprintf( stderr
, " handle=%04x", req
->handle
);
4513 static void dump_open_job_request( const struct open_job_request
*req
)
4515 fprintf( stderr
, " access=%08x", req
->access
);
4516 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
4517 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
4518 dump_varargs_unicode_str( ", name=", cur_size
);
4521 static void dump_open_job_reply( const struct open_job_reply
*req
)
4523 fprintf( stderr
, " handle=%04x", req
->handle
);
4526 static void dump_assign_job_request( const struct assign_job_request
*req
)
4528 fprintf( stderr
, " job=%04x", req
->job
);
4529 fprintf( stderr
, ", process=%04x", req
->process
);
4532 static void dump_process_in_job_request( const struct process_in_job_request
*req
)
4534 fprintf( stderr
, " job=%04x", req
->job
);
4535 fprintf( stderr
, ", process=%04x", req
->process
);
4538 static void dump_set_job_limits_request( const struct set_job_limits_request
*req
)
4540 fprintf( stderr
, " handle=%04x", req
->handle
);
4541 fprintf( stderr
, ", limit_flags=%08x", req
->limit_flags
);
4544 static void dump_set_job_completion_port_request( const struct set_job_completion_port_request
*req
)
4546 fprintf( stderr
, " job=%04x", req
->job
);
4547 fprintf( stderr
, ", port=%04x", req
->port
);
4548 dump_uint64( ", key=", &req
->key
);
4551 static void dump_get_job_info_request( const struct get_job_info_request
*req
)
4553 fprintf( stderr
, " handle=%04x", req
->handle
);
4556 static void dump_get_job_info_reply( const struct get_job_info_reply
*req
)
4558 fprintf( stderr
, " total_processes=%d", req
->total_processes
);
4559 fprintf( stderr
, ", active_processes=%d", req
->active_processes
);
4560 dump_varargs_uints( ", pids=", cur_size
);
4563 static void dump_terminate_job_request( const struct terminate_job_request
*req
)
4565 fprintf( stderr
, " handle=%04x", req
->handle
);
4566 fprintf( stderr
, ", status=%d", req
->status
);
4569 static void dump_suspend_process_request( const struct suspend_process_request
*req
)
4571 fprintf( stderr
, " handle=%04x", req
->handle
);
4574 static void dump_resume_process_request( const struct resume_process_request
*req
)
4576 fprintf( stderr
, " handle=%04x", req
->handle
);
4579 static void dump_get_next_thread_request( const struct get_next_thread_request
*req
)
4581 fprintf( stderr
, " process=%04x", req
->process
);
4582 fprintf( stderr
, ", last=%04x", req
->last
);
4583 fprintf( stderr
, ", access=%08x", req
->access
);
4584 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
4585 fprintf( stderr
, ", flags=%08x", req
->flags
);
4588 static void dump_get_next_thread_reply( const struct get_next_thread_reply
*req
)
4590 fprintf( stderr
, " handle=%04x", req
->handle
);
4593 static const dump_func req_dumpers
[REQ_NB_REQUESTS
] = {
4594 (dump_func
)dump_new_process_request
,
4595 (dump_func
)dump_get_new_process_info_request
,
4596 (dump_func
)dump_new_thread_request
,
4597 (dump_func
)dump_get_startup_info_request
,
4598 (dump_func
)dump_init_process_done_request
,
4599 (dump_func
)dump_init_first_thread_request
,
4600 (dump_func
)dump_init_thread_request
,
4601 (dump_func
)dump_terminate_process_request
,
4602 (dump_func
)dump_terminate_thread_request
,
4603 (dump_func
)dump_get_process_info_request
,
4604 (dump_func
)dump_get_process_debug_info_request
,
4605 (dump_func
)dump_get_process_image_name_request
,
4606 (dump_func
)dump_get_process_vm_counters_request
,
4607 (dump_func
)dump_set_process_info_request
,
4608 (dump_func
)dump_get_thread_info_request
,
4609 (dump_func
)dump_get_thread_times_request
,
4610 (dump_func
)dump_set_thread_info_request
,
4611 (dump_func
)dump_suspend_thread_request
,
4612 (dump_func
)dump_resume_thread_request
,
4613 (dump_func
)dump_queue_apc_request
,
4614 (dump_func
)dump_get_apc_result_request
,
4615 (dump_func
)dump_close_handle_request
,
4616 (dump_func
)dump_set_handle_info_request
,
4617 (dump_func
)dump_dup_handle_request
,
4618 (dump_func
)dump_compare_objects_request
,
4619 (dump_func
)dump_set_object_permanence_request
,
4620 (dump_func
)dump_open_process_request
,
4621 (dump_func
)dump_open_thread_request
,
4622 (dump_func
)dump_select_request
,
4623 (dump_func
)dump_create_event_request
,
4624 (dump_func
)dump_event_op_request
,
4625 (dump_func
)dump_query_event_request
,
4626 (dump_func
)dump_open_event_request
,
4627 (dump_func
)dump_create_keyed_event_request
,
4628 (dump_func
)dump_open_keyed_event_request
,
4629 (dump_func
)dump_create_mutex_request
,
4630 (dump_func
)dump_release_mutex_request
,
4631 (dump_func
)dump_open_mutex_request
,
4632 (dump_func
)dump_query_mutex_request
,
4633 (dump_func
)dump_create_semaphore_request
,
4634 (dump_func
)dump_release_semaphore_request
,
4635 (dump_func
)dump_query_semaphore_request
,
4636 (dump_func
)dump_open_semaphore_request
,
4637 (dump_func
)dump_create_file_request
,
4638 (dump_func
)dump_open_file_object_request
,
4639 (dump_func
)dump_alloc_file_handle_request
,
4640 (dump_func
)dump_get_handle_unix_name_request
,
4641 (dump_func
)dump_get_handle_fd_request
,
4642 (dump_func
)dump_get_directory_cache_entry_request
,
4643 (dump_func
)dump_flush_request
,
4644 (dump_func
)dump_get_file_info_request
,
4645 (dump_func
)dump_get_volume_info_request
,
4646 (dump_func
)dump_lock_file_request
,
4647 (dump_func
)dump_unlock_file_request
,
4648 (dump_func
)dump_recv_socket_request
,
4649 (dump_func
)dump_send_socket_request
,
4650 (dump_func
)dump_socket_get_events_request
,
4651 (dump_func
)dump_socket_send_icmp_id_request
,
4652 (dump_func
)dump_socket_get_icmp_id_request
,
4653 (dump_func
)dump_get_next_console_request_request
,
4654 (dump_func
)dump_read_directory_changes_request
,
4655 (dump_func
)dump_read_change_request
,
4656 (dump_func
)dump_create_mapping_request
,
4657 (dump_func
)dump_open_mapping_request
,
4658 (dump_func
)dump_get_mapping_info_request
,
4659 (dump_func
)dump_get_image_map_address_request
,
4660 (dump_func
)dump_map_view_request
,
4661 (dump_func
)dump_map_image_view_request
,
4662 (dump_func
)dump_map_builtin_view_request
,
4663 (dump_func
)dump_get_image_view_info_request
,
4664 (dump_func
)dump_unmap_view_request
,
4665 (dump_func
)dump_get_mapping_committed_range_request
,
4666 (dump_func
)dump_add_mapping_committed_range_request
,
4667 (dump_func
)dump_is_same_mapping_request
,
4668 (dump_func
)dump_get_mapping_filename_request
,
4669 (dump_func
)dump_list_processes_request
,
4670 (dump_func
)dump_create_debug_obj_request
,
4671 (dump_func
)dump_wait_debug_event_request
,
4672 (dump_func
)dump_queue_exception_event_request
,
4673 (dump_func
)dump_get_exception_status_request
,
4674 (dump_func
)dump_continue_debug_event_request
,
4675 (dump_func
)dump_debug_process_request
,
4676 (dump_func
)dump_set_debug_obj_info_request
,
4677 (dump_func
)dump_read_process_memory_request
,
4678 (dump_func
)dump_write_process_memory_request
,
4679 (dump_func
)dump_create_key_request
,
4680 (dump_func
)dump_open_key_request
,
4681 (dump_func
)dump_delete_key_request
,
4682 (dump_func
)dump_flush_key_request
,
4683 (dump_func
)dump_enum_key_request
,
4684 (dump_func
)dump_set_key_value_request
,
4685 (dump_func
)dump_get_key_value_request
,
4686 (dump_func
)dump_enum_key_value_request
,
4687 (dump_func
)dump_delete_key_value_request
,
4688 (dump_func
)dump_load_registry_request
,
4689 (dump_func
)dump_unload_registry_request
,
4690 (dump_func
)dump_save_registry_request
,
4691 (dump_func
)dump_set_registry_notification_request
,
4692 (dump_func
)dump_rename_key_request
,
4693 (dump_func
)dump_create_timer_request
,
4694 (dump_func
)dump_open_timer_request
,
4695 (dump_func
)dump_set_timer_request
,
4696 (dump_func
)dump_cancel_timer_request
,
4697 (dump_func
)dump_get_timer_info_request
,
4698 (dump_func
)dump_get_thread_context_request
,
4699 (dump_func
)dump_set_thread_context_request
,
4700 (dump_func
)dump_get_selector_entry_request
,
4701 (dump_func
)dump_add_atom_request
,
4702 (dump_func
)dump_delete_atom_request
,
4703 (dump_func
)dump_find_atom_request
,
4704 (dump_func
)dump_get_atom_information_request
,
4705 (dump_func
)dump_get_msg_queue_request
,
4706 (dump_func
)dump_set_queue_fd_request
,
4707 (dump_func
)dump_set_queue_mask_request
,
4708 (dump_func
)dump_get_queue_status_request
,
4709 (dump_func
)dump_get_process_idle_event_request
,
4710 (dump_func
)dump_send_message_request
,
4711 (dump_func
)dump_post_quit_message_request
,
4712 (dump_func
)dump_send_hardware_message_request
,
4713 (dump_func
)dump_get_message_request
,
4714 (dump_func
)dump_reply_message_request
,
4715 (dump_func
)dump_accept_hardware_message_request
,
4716 (dump_func
)dump_get_message_reply_request
,
4717 (dump_func
)dump_set_win_timer_request
,
4718 (dump_func
)dump_kill_win_timer_request
,
4719 (dump_func
)dump_is_window_hung_request
,
4720 (dump_func
)dump_get_serial_info_request
,
4721 (dump_func
)dump_set_serial_info_request
,
4722 (dump_func
)dump_cancel_sync_request
,
4723 (dump_func
)dump_register_async_request
,
4724 (dump_func
)dump_cancel_async_request
,
4725 (dump_func
)dump_get_async_result_request
,
4726 (dump_func
)dump_set_async_direct_result_request
,
4727 (dump_func
)dump_read_request
,
4728 (dump_func
)dump_write_request
,
4729 (dump_func
)dump_ioctl_request
,
4730 (dump_func
)dump_set_irp_result_request
,
4731 (dump_func
)dump_create_named_pipe_request
,
4732 (dump_func
)dump_set_named_pipe_info_request
,
4733 (dump_func
)dump_create_window_request
,
4734 (dump_func
)dump_destroy_window_request
,
4735 (dump_func
)dump_get_desktop_window_request
,
4736 (dump_func
)dump_set_window_owner_request
,
4737 (dump_func
)dump_get_window_info_request
,
4738 (dump_func
)dump_set_window_info_request
,
4739 (dump_func
)dump_set_parent_request
,
4740 (dump_func
)dump_get_window_parents_request
,
4741 (dump_func
)dump_get_window_children_request
,
4742 (dump_func
)dump_get_window_children_from_point_request
,
4743 (dump_func
)dump_get_window_tree_request
,
4744 (dump_func
)dump_set_window_pos_request
,
4745 (dump_func
)dump_get_window_rectangles_request
,
4746 (dump_func
)dump_get_window_text_request
,
4747 (dump_func
)dump_set_window_text_request
,
4748 (dump_func
)dump_get_windows_offset_request
,
4749 (dump_func
)dump_get_visible_region_request
,
4750 (dump_func
)dump_get_window_region_request
,
4751 (dump_func
)dump_set_window_region_request
,
4752 (dump_func
)dump_get_update_region_request
,
4753 (dump_func
)dump_update_window_zorder_request
,
4754 (dump_func
)dump_redraw_window_request
,
4755 (dump_func
)dump_set_window_property_request
,
4756 (dump_func
)dump_remove_window_property_request
,
4757 (dump_func
)dump_get_window_property_request
,
4758 (dump_func
)dump_get_window_properties_request
,
4759 (dump_func
)dump_create_winstation_request
,
4760 (dump_func
)dump_open_winstation_request
,
4761 (dump_func
)dump_close_winstation_request
,
4762 (dump_func
)dump_get_process_winstation_request
,
4763 (dump_func
)dump_set_process_winstation_request
,
4764 (dump_func
)dump_enum_winstation_request
,
4765 (dump_func
)dump_create_desktop_request
,
4766 (dump_func
)dump_open_desktop_request
,
4767 (dump_func
)dump_open_input_desktop_request
,
4768 (dump_func
)dump_set_input_desktop_request
,
4769 (dump_func
)dump_close_desktop_request
,
4770 (dump_func
)dump_get_thread_desktop_request
,
4771 (dump_func
)dump_set_thread_desktop_request
,
4772 (dump_func
)dump_enum_desktop_request
,
4773 (dump_func
)dump_set_user_object_info_request
,
4774 (dump_func
)dump_register_hotkey_request
,
4775 (dump_func
)dump_unregister_hotkey_request
,
4776 (dump_func
)dump_attach_thread_input_request
,
4777 (dump_func
)dump_get_thread_input_request
,
4778 (dump_func
)dump_get_last_input_time_request
,
4779 (dump_func
)dump_get_key_state_request
,
4780 (dump_func
)dump_set_key_state_request
,
4781 (dump_func
)dump_set_foreground_window_request
,
4782 (dump_func
)dump_set_focus_window_request
,
4783 (dump_func
)dump_set_active_window_request
,
4784 (dump_func
)dump_set_capture_window_request
,
4785 (dump_func
)dump_set_caret_window_request
,
4786 (dump_func
)dump_set_caret_info_request
,
4787 (dump_func
)dump_set_hook_request
,
4788 (dump_func
)dump_remove_hook_request
,
4789 (dump_func
)dump_start_hook_chain_request
,
4790 (dump_func
)dump_finish_hook_chain_request
,
4791 (dump_func
)dump_get_hook_info_request
,
4792 (dump_func
)dump_create_class_request
,
4793 (dump_func
)dump_destroy_class_request
,
4794 (dump_func
)dump_set_class_info_request
,
4795 (dump_func
)dump_open_clipboard_request
,
4796 (dump_func
)dump_close_clipboard_request
,
4797 (dump_func
)dump_empty_clipboard_request
,
4798 (dump_func
)dump_set_clipboard_data_request
,
4799 (dump_func
)dump_get_clipboard_data_request
,
4800 (dump_func
)dump_get_clipboard_formats_request
,
4801 (dump_func
)dump_enum_clipboard_formats_request
,
4802 (dump_func
)dump_release_clipboard_request
,
4803 (dump_func
)dump_get_clipboard_info_request
,
4804 (dump_func
)dump_set_clipboard_viewer_request
,
4805 (dump_func
)dump_add_clipboard_listener_request
,
4806 (dump_func
)dump_remove_clipboard_listener_request
,
4807 (dump_func
)dump_create_token_request
,
4808 (dump_func
)dump_open_token_request
,
4809 (dump_func
)dump_set_global_windows_request
,
4810 (dump_func
)dump_adjust_token_privileges_request
,
4811 (dump_func
)dump_get_token_privileges_request
,
4812 (dump_func
)dump_check_token_privileges_request
,
4813 (dump_func
)dump_duplicate_token_request
,
4814 (dump_func
)dump_filter_token_request
,
4815 (dump_func
)dump_access_check_request
,
4816 (dump_func
)dump_get_token_sid_request
,
4817 (dump_func
)dump_get_token_groups_request
,
4818 (dump_func
)dump_get_token_default_dacl_request
,
4819 (dump_func
)dump_set_token_default_dacl_request
,
4820 (dump_func
)dump_set_security_object_request
,
4821 (dump_func
)dump_get_security_object_request
,
4822 (dump_func
)dump_get_system_handles_request
,
4823 (dump_func
)dump_create_mailslot_request
,
4824 (dump_func
)dump_set_mailslot_info_request
,
4825 (dump_func
)dump_create_directory_request
,
4826 (dump_func
)dump_open_directory_request
,
4827 (dump_func
)dump_get_directory_entry_request
,
4828 (dump_func
)dump_create_symlink_request
,
4829 (dump_func
)dump_open_symlink_request
,
4830 (dump_func
)dump_query_symlink_request
,
4831 (dump_func
)dump_get_object_info_request
,
4832 (dump_func
)dump_get_object_name_request
,
4833 (dump_func
)dump_get_object_type_request
,
4834 (dump_func
)dump_get_object_types_request
,
4835 (dump_func
)dump_allocate_locally_unique_id_request
,
4836 (dump_func
)dump_create_device_manager_request
,
4837 (dump_func
)dump_create_device_request
,
4838 (dump_func
)dump_delete_device_request
,
4839 (dump_func
)dump_get_next_device_request_request
,
4840 (dump_func
)dump_get_kernel_object_ptr_request
,
4841 (dump_func
)dump_set_kernel_object_ptr_request
,
4842 (dump_func
)dump_grab_kernel_object_request
,
4843 (dump_func
)dump_release_kernel_object_request
,
4844 (dump_func
)dump_get_kernel_object_handle_request
,
4845 (dump_func
)dump_make_process_system_request
,
4846 (dump_func
)dump_get_token_info_request
,
4847 (dump_func
)dump_create_linked_token_request
,
4848 (dump_func
)dump_create_completion_request
,
4849 (dump_func
)dump_open_completion_request
,
4850 (dump_func
)dump_add_completion_request
,
4851 (dump_func
)dump_remove_completion_request
,
4852 (dump_func
)dump_query_completion_request
,
4853 (dump_func
)dump_set_completion_info_request
,
4854 (dump_func
)dump_add_fd_completion_request
,
4855 (dump_func
)dump_set_fd_completion_mode_request
,
4856 (dump_func
)dump_set_fd_disp_info_request
,
4857 (dump_func
)dump_set_fd_name_info_request
,
4858 (dump_func
)dump_set_fd_eof_info_request
,
4859 (dump_func
)dump_get_window_layered_info_request
,
4860 (dump_func
)dump_set_window_layered_info_request
,
4861 (dump_func
)dump_alloc_user_handle_request
,
4862 (dump_func
)dump_free_user_handle_request
,
4863 (dump_func
)dump_set_cursor_request
,
4864 (dump_func
)dump_get_cursor_history_request
,
4865 (dump_func
)dump_get_rawinput_buffer_request
,
4866 (dump_func
)dump_update_rawinput_devices_request
,
4867 (dump_func
)dump_create_job_request
,
4868 (dump_func
)dump_open_job_request
,
4869 (dump_func
)dump_assign_job_request
,
4870 (dump_func
)dump_process_in_job_request
,
4871 (dump_func
)dump_set_job_limits_request
,
4872 (dump_func
)dump_set_job_completion_port_request
,
4873 (dump_func
)dump_get_job_info_request
,
4874 (dump_func
)dump_terminate_job_request
,
4875 (dump_func
)dump_suspend_process_request
,
4876 (dump_func
)dump_resume_process_request
,
4877 (dump_func
)dump_get_next_thread_request
,
4880 static const dump_func reply_dumpers
[REQ_NB_REQUESTS
] = {
4881 (dump_func
)dump_new_process_reply
,
4882 (dump_func
)dump_get_new_process_info_reply
,
4883 (dump_func
)dump_new_thread_reply
,
4884 (dump_func
)dump_get_startup_info_reply
,
4885 (dump_func
)dump_init_process_done_reply
,
4886 (dump_func
)dump_init_first_thread_reply
,
4887 (dump_func
)dump_init_thread_reply
,
4888 (dump_func
)dump_terminate_process_reply
,
4889 (dump_func
)dump_terminate_thread_reply
,
4890 (dump_func
)dump_get_process_info_reply
,
4891 (dump_func
)dump_get_process_debug_info_reply
,
4892 (dump_func
)dump_get_process_image_name_reply
,
4893 (dump_func
)dump_get_process_vm_counters_reply
,
4895 (dump_func
)dump_get_thread_info_reply
,
4896 (dump_func
)dump_get_thread_times_reply
,
4898 (dump_func
)dump_suspend_thread_reply
,
4899 (dump_func
)dump_resume_thread_reply
,
4900 (dump_func
)dump_queue_apc_reply
,
4901 (dump_func
)dump_get_apc_result_reply
,
4903 (dump_func
)dump_set_handle_info_reply
,
4904 (dump_func
)dump_dup_handle_reply
,
4907 (dump_func
)dump_open_process_reply
,
4908 (dump_func
)dump_open_thread_reply
,
4909 (dump_func
)dump_select_reply
,
4910 (dump_func
)dump_create_event_reply
,
4911 (dump_func
)dump_event_op_reply
,
4912 (dump_func
)dump_query_event_reply
,
4913 (dump_func
)dump_open_event_reply
,
4914 (dump_func
)dump_create_keyed_event_reply
,
4915 (dump_func
)dump_open_keyed_event_reply
,
4916 (dump_func
)dump_create_mutex_reply
,
4917 (dump_func
)dump_release_mutex_reply
,
4918 (dump_func
)dump_open_mutex_reply
,
4919 (dump_func
)dump_query_mutex_reply
,
4920 (dump_func
)dump_create_semaphore_reply
,
4921 (dump_func
)dump_release_semaphore_reply
,
4922 (dump_func
)dump_query_semaphore_reply
,
4923 (dump_func
)dump_open_semaphore_reply
,
4924 (dump_func
)dump_create_file_reply
,
4925 (dump_func
)dump_open_file_object_reply
,
4926 (dump_func
)dump_alloc_file_handle_reply
,
4927 (dump_func
)dump_get_handle_unix_name_reply
,
4928 (dump_func
)dump_get_handle_fd_reply
,
4929 (dump_func
)dump_get_directory_cache_entry_reply
,
4930 (dump_func
)dump_flush_reply
,
4931 (dump_func
)dump_get_file_info_reply
,
4932 (dump_func
)dump_get_volume_info_reply
,
4933 (dump_func
)dump_lock_file_reply
,
4935 (dump_func
)dump_recv_socket_reply
,
4936 (dump_func
)dump_send_socket_reply
,
4937 (dump_func
)dump_socket_get_events_reply
,
4939 (dump_func
)dump_socket_get_icmp_id_reply
,
4940 (dump_func
)dump_get_next_console_request_reply
,
4942 (dump_func
)dump_read_change_reply
,
4943 (dump_func
)dump_create_mapping_reply
,
4944 (dump_func
)dump_open_mapping_reply
,
4945 (dump_func
)dump_get_mapping_info_reply
,
4946 (dump_func
)dump_get_image_map_address_reply
,
4950 (dump_func
)dump_get_image_view_info_reply
,
4952 (dump_func
)dump_get_mapping_committed_range_reply
,
4955 (dump_func
)dump_get_mapping_filename_reply
,
4956 (dump_func
)dump_list_processes_reply
,
4957 (dump_func
)dump_create_debug_obj_reply
,
4958 (dump_func
)dump_wait_debug_event_reply
,
4959 (dump_func
)dump_queue_exception_event_reply
,
4964 (dump_func
)dump_read_process_memory_reply
,
4966 (dump_func
)dump_create_key_reply
,
4967 (dump_func
)dump_open_key_reply
,
4970 (dump_func
)dump_enum_key_reply
,
4972 (dump_func
)dump_get_key_value_reply
,
4973 (dump_func
)dump_enum_key_value_reply
,
4980 (dump_func
)dump_create_timer_reply
,
4981 (dump_func
)dump_open_timer_reply
,
4982 (dump_func
)dump_set_timer_reply
,
4983 (dump_func
)dump_cancel_timer_reply
,
4984 (dump_func
)dump_get_timer_info_reply
,
4985 (dump_func
)dump_get_thread_context_reply
,
4986 (dump_func
)dump_set_thread_context_reply
,
4987 (dump_func
)dump_get_selector_entry_reply
,
4988 (dump_func
)dump_add_atom_reply
,
4990 (dump_func
)dump_find_atom_reply
,
4991 (dump_func
)dump_get_atom_information_reply
,
4992 (dump_func
)dump_get_msg_queue_reply
,
4994 (dump_func
)dump_set_queue_mask_reply
,
4995 (dump_func
)dump_get_queue_status_reply
,
4996 (dump_func
)dump_get_process_idle_event_reply
,
4999 (dump_func
)dump_send_hardware_message_reply
,
5000 (dump_func
)dump_get_message_reply
,
5003 (dump_func
)dump_get_message_reply_reply
,
5004 (dump_func
)dump_set_win_timer_reply
,
5006 (dump_func
)dump_is_window_hung_reply
,
5007 (dump_func
)dump_get_serial_info_reply
,
5012 (dump_func
)dump_get_async_result_reply
,
5013 (dump_func
)dump_set_async_direct_result_reply
,
5014 (dump_func
)dump_read_reply
,
5015 (dump_func
)dump_write_reply
,
5016 (dump_func
)dump_ioctl_reply
,
5018 (dump_func
)dump_create_named_pipe_reply
,
5020 (dump_func
)dump_create_window_reply
,
5022 (dump_func
)dump_get_desktop_window_reply
,
5023 (dump_func
)dump_set_window_owner_reply
,
5024 (dump_func
)dump_get_window_info_reply
,
5025 (dump_func
)dump_set_window_info_reply
,
5026 (dump_func
)dump_set_parent_reply
,
5027 (dump_func
)dump_get_window_parents_reply
,
5028 (dump_func
)dump_get_window_children_reply
,
5029 (dump_func
)dump_get_window_children_from_point_reply
,
5030 (dump_func
)dump_get_window_tree_reply
,
5031 (dump_func
)dump_set_window_pos_reply
,
5032 (dump_func
)dump_get_window_rectangles_reply
,
5033 (dump_func
)dump_get_window_text_reply
,
5035 (dump_func
)dump_get_windows_offset_reply
,
5036 (dump_func
)dump_get_visible_region_reply
,
5037 (dump_func
)dump_get_window_region_reply
,
5039 (dump_func
)dump_get_update_region_reply
,
5043 (dump_func
)dump_remove_window_property_reply
,
5044 (dump_func
)dump_get_window_property_reply
,
5045 (dump_func
)dump_get_window_properties_reply
,
5046 (dump_func
)dump_create_winstation_reply
,
5047 (dump_func
)dump_open_winstation_reply
,
5049 (dump_func
)dump_get_process_winstation_reply
,
5051 (dump_func
)dump_enum_winstation_reply
,
5052 (dump_func
)dump_create_desktop_reply
,
5053 (dump_func
)dump_open_desktop_reply
,
5054 (dump_func
)dump_open_input_desktop_reply
,
5057 (dump_func
)dump_get_thread_desktop_reply
,
5059 (dump_func
)dump_enum_desktop_reply
,
5060 (dump_func
)dump_set_user_object_info_reply
,
5061 (dump_func
)dump_register_hotkey_reply
,
5062 (dump_func
)dump_unregister_hotkey_reply
,
5064 (dump_func
)dump_get_thread_input_reply
,
5065 (dump_func
)dump_get_last_input_time_reply
,
5066 (dump_func
)dump_get_key_state_reply
,
5068 (dump_func
)dump_set_foreground_window_reply
,
5069 (dump_func
)dump_set_focus_window_reply
,
5070 (dump_func
)dump_set_active_window_reply
,
5071 (dump_func
)dump_set_capture_window_reply
,
5072 (dump_func
)dump_set_caret_window_reply
,
5073 (dump_func
)dump_set_caret_info_reply
,
5074 (dump_func
)dump_set_hook_reply
,
5075 (dump_func
)dump_remove_hook_reply
,
5076 (dump_func
)dump_start_hook_chain_reply
,
5078 (dump_func
)dump_get_hook_info_reply
,
5079 (dump_func
)dump_create_class_reply
,
5080 (dump_func
)dump_destroy_class_reply
,
5081 (dump_func
)dump_set_class_info_reply
,
5082 (dump_func
)dump_open_clipboard_reply
,
5083 (dump_func
)dump_close_clipboard_reply
,
5085 (dump_func
)dump_set_clipboard_data_reply
,
5086 (dump_func
)dump_get_clipboard_data_reply
,
5087 (dump_func
)dump_get_clipboard_formats_reply
,
5088 (dump_func
)dump_enum_clipboard_formats_reply
,
5089 (dump_func
)dump_release_clipboard_reply
,
5090 (dump_func
)dump_get_clipboard_info_reply
,
5091 (dump_func
)dump_set_clipboard_viewer_reply
,
5094 (dump_func
)dump_create_token_reply
,
5095 (dump_func
)dump_open_token_reply
,
5096 (dump_func
)dump_set_global_windows_reply
,
5097 (dump_func
)dump_adjust_token_privileges_reply
,
5098 (dump_func
)dump_get_token_privileges_reply
,
5099 (dump_func
)dump_check_token_privileges_reply
,
5100 (dump_func
)dump_duplicate_token_reply
,
5101 (dump_func
)dump_filter_token_reply
,
5102 (dump_func
)dump_access_check_reply
,
5103 (dump_func
)dump_get_token_sid_reply
,
5104 (dump_func
)dump_get_token_groups_reply
,
5105 (dump_func
)dump_get_token_default_dacl_reply
,
5108 (dump_func
)dump_get_security_object_reply
,
5109 (dump_func
)dump_get_system_handles_reply
,
5110 (dump_func
)dump_create_mailslot_reply
,
5111 (dump_func
)dump_set_mailslot_info_reply
,
5112 (dump_func
)dump_create_directory_reply
,
5113 (dump_func
)dump_open_directory_reply
,
5114 (dump_func
)dump_get_directory_entry_reply
,
5115 (dump_func
)dump_create_symlink_reply
,
5116 (dump_func
)dump_open_symlink_reply
,
5117 (dump_func
)dump_query_symlink_reply
,
5118 (dump_func
)dump_get_object_info_reply
,
5119 (dump_func
)dump_get_object_name_reply
,
5120 (dump_func
)dump_get_object_type_reply
,
5121 (dump_func
)dump_get_object_types_reply
,
5122 (dump_func
)dump_allocate_locally_unique_id_reply
,
5123 (dump_func
)dump_create_device_manager_reply
,
5126 (dump_func
)dump_get_next_device_request_reply
,
5127 (dump_func
)dump_get_kernel_object_ptr_reply
,
5131 (dump_func
)dump_get_kernel_object_handle_reply
,
5132 (dump_func
)dump_make_process_system_reply
,
5133 (dump_func
)dump_get_token_info_reply
,
5134 (dump_func
)dump_create_linked_token_reply
,
5135 (dump_func
)dump_create_completion_reply
,
5136 (dump_func
)dump_open_completion_reply
,
5138 (dump_func
)dump_remove_completion_reply
,
5139 (dump_func
)dump_query_completion_reply
,
5146 (dump_func
)dump_get_window_layered_info_reply
,
5148 (dump_func
)dump_alloc_user_handle_reply
,
5150 (dump_func
)dump_set_cursor_reply
,
5151 (dump_func
)dump_get_cursor_history_reply
,
5152 (dump_func
)dump_get_rawinput_buffer_reply
,
5154 (dump_func
)dump_create_job_reply
,
5155 (dump_func
)dump_open_job_reply
,
5160 (dump_func
)dump_get_job_info_reply
,
5164 (dump_func
)dump_get_next_thread_reply
,
5167 static const char * const req_names
[REQ_NB_REQUESTS
] = {
5169 "get_new_process_info",
5172 "init_process_done",
5173 "init_first_thread",
5175 "terminate_process",
5178 "get_process_debug_info",
5179 "get_process_image_name",
5180 "get_process_vm_counters",
5193 "set_object_permanence",
5201 "create_keyed_event",
5208 "release_semaphore",
5213 "alloc_file_handle",
5214 "get_handle_unix_name",
5216 "get_directory_cache_entry",
5224 "socket_get_events",
5225 "socket_send_icmp_id",
5226 "socket_get_icmp_id",
5227 "get_next_console_request",
5228 "read_directory_changes",
5233 "get_image_map_address",
5237 "get_image_view_info",
5239 "get_mapping_committed_range",
5240 "add_mapping_committed_range",
5242 "get_mapping_filename",
5246 "queue_exception_event",
5247 "get_exception_status",
5248 "continue_debug_event",
5250 "set_debug_obj_info",
5251 "read_process_memory",
5252 "write_process_memory",
5265 "set_registry_notification",
5272 "get_thread_context",
5273 "set_thread_context",
5274 "get_selector_entry",
5278 "get_atom_information",
5283 "get_process_idle_event",
5285 "post_quit_message",
5286 "send_hardware_message",
5289 "accept_hardware_message",
5290 "get_message_reply",
5300 "set_async_direct_result",
5305 "create_named_pipe",
5306 "set_named_pipe_info",
5309 "get_desktop_window",
5314 "get_window_parents",
5315 "get_window_children",
5316 "get_window_children_from_point",
5319 "get_window_rectangles",
5322 "get_windows_offset",
5323 "get_visible_region",
5324 "get_window_region",
5325 "set_window_region",
5326 "get_update_region",
5327 "update_window_zorder",
5329 "set_window_property",
5330 "remove_window_property",
5331 "get_window_property",
5332 "get_window_properties",
5333 "create_winstation",
5336 "get_process_winstation",
5337 "set_process_winstation",
5341 "open_input_desktop",
5342 "set_input_desktop",
5344 "get_thread_desktop",
5345 "set_thread_desktop",
5347 "set_user_object_info",
5349 "unregister_hotkey",
5350 "attach_thread_input",
5352 "get_last_input_time",
5355 "set_foreground_window",
5357 "set_active_window",
5358 "set_capture_window",
5364 "finish_hook_chain",
5372 "set_clipboard_data",
5373 "get_clipboard_data",
5374 "get_clipboard_formats",
5375 "enum_clipboard_formats",
5376 "release_clipboard",
5377 "get_clipboard_info",
5378 "set_clipboard_viewer",
5379 "add_clipboard_listener",
5380 "remove_clipboard_listener",
5383 "set_global_windows",
5384 "adjust_token_privileges",
5385 "get_token_privileges",
5386 "check_token_privileges",
5392 "get_token_default_dacl",
5393 "set_token_default_dacl",
5394 "set_security_object",
5395 "get_security_object",
5396 "get_system_handles",
5398 "set_mailslot_info",
5401 "get_directory_entry",
5409 "allocate_locally_unique_id",
5410 "create_device_manager",
5413 "get_next_device_request",
5414 "get_kernel_object_ptr",
5415 "set_kernel_object_ptr",
5416 "grab_kernel_object",
5417 "release_kernel_object",
5418 "get_kernel_object_handle",
5419 "make_process_system",
5421 "create_linked_token",
5422 "create_completion",
5425 "remove_completion",
5427 "set_completion_info",
5428 "add_fd_completion",
5429 "set_fd_completion_mode",
5433 "get_window_layered_info",
5434 "set_window_layered_info",
5435 "alloc_user_handle",
5438 "get_cursor_history",
5439 "get_rawinput_buffer",
5440 "update_rawinput_devices",
5446 "set_job_completion_port",
5460 { "ABANDONED_WAIT_0", STATUS_ABANDONED_WAIT_0
},
5461 { "ACCESS_DENIED", STATUS_ACCESS_DENIED
},
5462 { "ACCESS_VIOLATION", STATUS_ACCESS_VIOLATION
},
5463 { "ADDRESS_ALREADY_ASSOCIATED", STATUS_ADDRESS_ALREADY_ASSOCIATED
},
5464 { "ALERTED", STATUS_ALERTED
},
5465 { "BAD_DEVICE_TYPE", STATUS_BAD_DEVICE_TYPE
},
5466 { "BAD_IMPERSONATION_LEVEL", STATUS_BAD_IMPERSONATION_LEVEL
},
5467 { "BUFFER_OVERFLOW", STATUS_BUFFER_OVERFLOW
},
5468 { "BUFFER_TOO_SMALL", STATUS_BUFFER_TOO_SMALL
},
5469 { "CANCELLED", STATUS_CANCELLED
},
5470 { "CANNOT_DELETE", STATUS_CANNOT_DELETE
},
5471 { "CANT_OPEN_ANONYMOUS", STATUS_CANT_OPEN_ANONYMOUS
},
5472 { "CHILD_MUST_BE_VOLATILE", STATUS_CHILD_MUST_BE_VOLATILE
},
5473 { "CONNECTION_ABORTED", STATUS_CONNECTION_ABORTED
},
5474 { "CONNECTION_ACTIVE", STATUS_CONNECTION_ACTIVE
},
5475 { "CONNECTION_REFUSED", STATUS_CONNECTION_REFUSED
},
5476 { "CONNECTION_RESET", STATUS_CONNECTION_RESET
},
5477 { "DEBUGGER_INACTIVE", STATUS_DEBUGGER_INACTIVE
},
5478 { "DEVICE_BUSY", STATUS_DEVICE_BUSY
},
5479 { "DEVICE_NOT_READY", STATUS_DEVICE_NOT_READY
},
5480 { "DIRECTORY_NOT_EMPTY", STATUS_DIRECTORY_NOT_EMPTY
},
5481 { "DISK_FULL", STATUS_DISK_FULL
},
5482 { "ERROR_CLASS_ALREADY_EXISTS", 0xc0010000 | ERROR_CLASS_ALREADY_EXISTS
},
5483 { "ERROR_CLASS_DOES_NOT_EXIST", 0xc0010000 | ERROR_CLASS_DOES_NOT_EXIST
},
5484 { "ERROR_CLASS_HAS_WINDOWS", 0xc0010000 | ERROR_CLASS_HAS_WINDOWS
},
5485 { "ERROR_CLIPBOARD_NOT_OPEN", 0xc0010000 | ERROR_CLIPBOARD_NOT_OPEN
},
5486 { "ERROR_HOTKEY_ALREADY_REGISTERED", 0xc0010000 | ERROR_HOTKEY_ALREADY_REGISTERED
},
5487 { "ERROR_HOTKEY_NOT_REGISTERED", 0xc0010000 | ERROR_HOTKEY_NOT_REGISTERED
},
5488 { "ERROR_INVALID_CURSOR_HANDLE", 0xc0010000 | ERROR_INVALID_CURSOR_HANDLE
},
5489 { "ERROR_INVALID_INDEX", 0xc0010000 | ERROR_INVALID_INDEX
},
5490 { "ERROR_INVALID_WINDOW_HANDLE", 0xc0010000 | ERROR_INVALID_WINDOW_HANDLE
},
5491 { "ERROR_NO_MORE_USER_HANDLES", 0xc0010000 | ERROR_NO_MORE_USER_HANDLES
},
5492 { "ERROR_WINDOW_OF_OTHER_THREAD", 0xc0010000 | ERROR_WINDOW_OF_OTHER_THREAD
},
5493 { "FILE_DELETED", STATUS_FILE_DELETED
},
5494 { "FILE_INVALID", STATUS_FILE_INVALID
},
5495 { "FILE_IS_A_DIRECTORY", STATUS_FILE_IS_A_DIRECTORY
},
5496 { "FILE_LOCK_CONFLICT", STATUS_FILE_LOCK_CONFLICT
},
5497 { "GENERIC_NOT_MAPPED", STATUS_GENERIC_NOT_MAPPED
},
5498 { "HANDLES_CLOSED", STATUS_HANDLES_CLOSED
},
5499 { "HANDLE_NOT_CLOSABLE", STATUS_HANDLE_NOT_CLOSABLE
},
5500 { "HOST_UNREACHABLE", STATUS_HOST_UNREACHABLE
},
5501 { "ILLEGAL_FUNCTION", STATUS_ILLEGAL_FUNCTION
},
5502 { "IMAGE_MACHINE_TYPE_MISMATCH", STATUS_IMAGE_MACHINE_TYPE_MISMATCH
},
5503 { "IMAGE_NOT_AT_BASE", STATUS_IMAGE_NOT_AT_BASE
},
5504 { "INFO_LENGTH_MISMATCH", STATUS_INFO_LENGTH_MISMATCH
},
5505 { "INSTANCE_NOT_AVAILABLE", STATUS_INSTANCE_NOT_AVAILABLE
},
5506 { "INSUFFICIENT_RESOURCES", STATUS_INSUFFICIENT_RESOURCES
},
5507 { "INVALID_ACL", STATUS_INVALID_ACL
},
5508 { "INVALID_ADDRESS", STATUS_INVALID_ADDRESS
},
5509 { "INVALID_ADDRESS_COMPONENT", STATUS_INVALID_ADDRESS_COMPONENT
},
5510 { "INVALID_CID", STATUS_INVALID_CID
},
5511 { "INVALID_CONNECTION", STATUS_INVALID_CONNECTION
},
5512 { "INVALID_DEVICE_REQUEST", STATUS_INVALID_DEVICE_REQUEST
},
5513 { "INVALID_FILE_FOR_SECTION", STATUS_INVALID_FILE_FOR_SECTION
},
5514 { "INVALID_HANDLE", STATUS_INVALID_HANDLE
},
5515 { "INVALID_IMAGE_FORMAT", STATUS_INVALID_IMAGE_FORMAT
},
5516 { "INVALID_IMAGE_NE_FORMAT", STATUS_INVALID_IMAGE_NE_FORMAT
},
5517 { "INVALID_IMAGE_NOT_MZ", STATUS_INVALID_IMAGE_NOT_MZ
},
5518 { "INVALID_IMAGE_PROTECT", STATUS_INVALID_IMAGE_PROTECT
},
5519 { "INVALID_IMAGE_WIN_16", STATUS_INVALID_IMAGE_WIN_16
},
5520 { "INVALID_IMAGE_WIN_64", STATUS_INVALID_IMAGE_WIN_64
},
5521 { "INVALID_LOCK_SEQUENCE", STATUS_INVALID_LOCK_SEQUENCE
},
5522 { "INVALID_OWNER", STATUS_INVALID_OWNER
},
5523 { "INVALID_PARAMETER", STATUS_INVALID_PARAMETER
},
5524 { "INVALID_PIPE_STATE", STATUS_INVALID_PIPE_STATE
},
5525 { "INVALID_READ_MODE", STATUS_INVALID_READ_MODE
},
5526 { "INVALID_SECURITY_DESCR", STATUS_INVALID_SECURITY_DESCR
},
5527 { "IO_TIMEOUT", STATUS_IO_TIMEOUT
},
5528 { "KERNEL_APC", STATUS_KERNEL_APC
},
5529 { "KEY_DELETED", STATUS_KEY_DELETED
},
5530 { "MAPPED_FILE_SIZE_ZERO", STATUS_MAPPED_FILE_SIZE_ZERO
},
5531 { "MUTANT_NOT_OWNED", STATUS_MUTANT_NOT_OWNED
},
5532 { "NAME_TOO_LONG", STATUS_NAME_TOO_LONG
},
5533 { "NETWORK_BUSY", STATUS_NETWORK_BUSY
},
5534 { "NETWORK_UNREACHABLE", STATUS_NETWORK_UNREACHABLE
},
5535 { "NOT_ALL_ASSIGNED", STATUS_NOT_ALL_ASSIGNED
},
5536 { "NOT_A_DIRECTORY", STATUS_NOT_A_DIRECTORY
},
5537 { "NOT_FOUND", STATUS_NOT_FOUND
},
5538 { "NOT_IMPLEMENTED", STATUS_NOT_IMPLEMENTED
},
5539 { "NOT_MAPPED_VIEW", STATUS_NOT_MAPPED_VIEW
},
5540 { "NOT_REGISTRY_FILE", STATUS_NOT_REGISTRY_FILE
},
5541 { "NOT_SAME_DEVICE", STATUS_NOT_SAME_DEVICE
},
5542 { "NOT_SAME_OBJECT", STATUS_NOT_SAME_OBJECT
},
5543 { "NOT_SUPPORTED", STATUS_NOT_SUPPORTED
},
5544 { "NO_DATA_DETECTED", STATUS_NO_DATA_DETECTED
},
5545 { "NO_IMPERSONATION_TOKEN", STATUS_NO_IMPERSONATION_TOKEN
},
5546 { "NO_MEMORY", STATUS_NO_MEMORY
},
5547 { "NO_MORE_ENTRIES", STATUS_NO_MORE_ENTRIES
},
5548 { "NO_SUCH_DEVICE", STATUS_NO_SUCH_DEVICE
},
5549 { "NO_SUCH_FILE", STATUS_NO_SUCH_FILE
},
5550 { "NO_TOKEN", STATUS_NO_TOKEN
},
5551 { "OBJECT_NAME_COLLISION", STATUS_OBJECT_NAME_COLLISION
},
5552 { "OBJECT_NAME_EXISTS", STATUS_OBJECT_NAME_EXISTS
},
5553 { "OBJECT_NAME_INVALID", STATUS_OBJECT_NAME_INVALID
},
5554 { "OBJECT_NAME_NOT_FOUND", STATUS_OBJECT_NAME_NOT_FOUND
},
5555 { "OBJECT_PATH_INVALID", STATUS_OBJECT_PATH_INVALID
},
5556 { "OBJECT_PATH_NOT_FOUND", STATUS_OBJECT_PATH_NOT_FOUND
},
5557 { "OBJECT_PATH_SYNTAX_BAD", STATUS_OBJECT_PATH_SYNTAX_BAD
},
5558 { "OBJECT_TYPE_MISMATCH", STATUS_OBJECT_TYPE_MISMATCH
},
5559 { "PENDING", STATUS_PENDING
},
5560 { "PIPE_BROKEN", STATUS_PIPE_BROKEN
},
5561 { "PIPE_BUSY", STATUS_PIPE_BUSY
},
5562 { "PIPE_CLOSING", STATUS_PIPE_CLOSING
},
5563 { "PIPE_CONNECTED", STATUS_PIPE_CONNECTED
},
5564 { "PIPE_DISCONNECTED", STATUS_PIPE_DISCONNECTED
},
5565 { "PIPE_EMPTY", STATUS_PIPE_EMPTY
},
5566 { "PIPE_LISTENING", STATUS_PIPE_LISTENING
},
5567 { "PIPE_NOT_AVAILABLE", STATUS_PIPE_NOT_AVAILABLE
},
5568 { "PORT_NOT_SET", STATUS_PORT_NOT_SET
},
5569 { "PREDEFINED_HANDLE", STATUS_PREDEFINED_HANDLE
},
5570 { "PRIVILEGE_NOT_HELD", STATUS_PRIVILEGE_NOT_HELD
},
5571 { "PROCESS_IN_JOB", STATUS_PROCESS_IN_JOB
},
5572 { "PROCESS_IS_TERMINATING", STATUS_PROCESS_IS_TERMINATING
},
5573 { "PROCESS_NOT_IN_JOB", STATUS_PROCESS_NOT_IN_JOB
},
5574 { "REPARSE_POINT_NOT_RESOLVED", STATUS_REPARSE_POINT_NOT_RESOLVED
},
5575 { "SECTION_TOO_BIG", STATUS_SECTION_TOO_BIG
},
5576 { "SEMAPHORE_LIMIT_EXCEEDED", STATUS_SEMAPHORE_LIMIT_EXCEEDED
},
5577 { "SHARING_VIOLATION", STATUS_SHARING_VIOLATION
},
5578 { "SHUTDOWN_IN_PROGRESS", STATUS_SHUTDOWN_IN_PROGRESS
},
5579 { "SUSPEND_COUNT_EXCEEDED", STATUS_SUSPEND_COUNT_EXCEEDED
},
5580 { "THREAD_IS_TERMINATING", STATUS_THREAD_IS_TERMINATING
},
5581 { "TIMEOUT", STATUS_TIMEOUT
},
5582 { "TOO_MANY_OPENED_FILES", STATUS_TOO_MANY_OPENED_FILES
},
5583 { "UNSUCCESSFUL", STATUS_UNSUCCESSFUL
},
5584 { "USER_APC", STATUS_USER_APC
},
5585 { "USER_MAPPED_FILE", STATUS_USER_MAPPED_FILE
},
5586 { "VOLUME_DISMOUNTED", STATUS_VOLUME_DISMOUNTED
},
5587 { "WAS_LOCKED", STATUS_WAS_LOCKED
},
5588 { "WSAEACCES", 0xc0010000 | WSAEACCES
},
5589 { "WSAEADDRINUSE", 0xc0010000 | WSAEADDRINUSE
},
5590 { "WSAEADDRNOTAVAIL", 0xc0010000 | WSAEADDRNOTAVAIL
},
5591 { "WSAEAFNOSUPPORT", 0xc0010000 | WSAEAFNOSUPPORT
},
5592 { "WSAEALREADY", 0xc0010000 | WSAEALREADY
},
5593 { "WSAEBADF", 0xc0010000 | WSAEBADF
},
5594 { "WSAECONNABORTED", 0xc0010000 | WSAECONNABORTED
},
5595 { "WSAECONNREFUSED", 0xc0010000 | WSAECONNREFUSED
},
5596 { "WSAECONNRESET", 0xc0010000 | WSAECONNRESET
},
5597 { "WSAEDESTADDRREQ", 0xc0010000 | WSAEDESTADDRREQ
},
5598 { "WSAEDQUOT", 0xc0010000 | WSAEDQUOT
},
5599 { "WSAEFAULT", 0xc0010000 | WSAEFAULT
},
5600 { "WSAEHOSTDOWN", 0xc0010000 | WSAEHOSTDOWN
},
5601 { "WSAEHOSTUNREACH", 0xc0010000 | WSAEHOSTUNREACH
},
5602 { "WSAEINTR", 0xc0010000 | WSAEINTR
},
5603 { "WSAEINVAL", 0xc0010000 | WSAEINVAL
},
5604 { "WSAEISCONN", 0xc0010000 | WSAEISCONN
},
5605 { "WSAELOOP", 0xc0010000 | WSAELOOP
},
5606 { "WSAEMFILE", 0xc0010000 | WSAEMFILE
},
5607 { "WSAEMSGSIZE", 0xc0010000 | WSAEMSGSIZE
},
5608 { "WSAENAMETOOLONG", 0xc0010000 | WSAENAMETOOLONG
},
5609 { "WSAENETDOWN", 0xc0010000 | WSAENETDOWN
},
5610 { "WSAENETRESET", 0xc0010000 | WSAENETRESET
},
5611 { "WSAENETUNREACH", 0xc0010000 | WSAENETUNREACH
},
5612 { "WSAENOBUFS", 0xc0010000 | WSAENOBUFS
},
5613 { "WSAENOPROTOOPT", 0xc0010000 | WSAENOPROTOOPT
},
5614 { "WSAENOTCONN", 0xc0010000 | WSAENOTCONN
},
5615 { "WSAENOTEMPTY", 0xc0010000 | WSAENOTEMPTY
},
5616 { "WSAENOTSOCK", 0xc0010000 | WSAENOTSOCK
},
5617 { "WSAEOPNOTSUPP", 0xc0010000 | WSAEOPNOTSUPP
},
5618 { "WSAEPFNOSUPPORT", 0xc0010000 | WSAEPFNOSUPPORT
},
5619 { "WSAEPROCLIM", 0xc0010000 | WSAEPROCLIM
},
5620 { "WSAEPROTONOSUPPORT", 0xc0010000 | WSAEPROTONOSUPPORT
},
5621 { "WSAEPROTOTYPE", 0xc0010000 | WSAEPROTOTYPE
},
5622 { "WSAEREMOTE", 0xc0010000 | WSAEREMOTE
},
5623 { "WSAESHUTDOWN", 0xc0010000 | WSAESHUTDOWN
},
5624 { "WSAESOCKTNOSUPPORT", 0xc0010000 | WSAESOCKTNOSUPPORT
},
5625 { "WSAESTALE", 0xc0010000 | WSAESTALE
},
5626 { "WSAETIMEDOUT", 0xc0010000 | WSAETIMEDOUT
},
5627 { "WSAETOOMANYREFS", 0xc0010000 | WSAETOOMANYREFS
},
5628 { "WSAEUSERS", 0xc0010000 | WSAEUSERS
},
5629 { "WSAEWOULDBLOCK", 0xc0010000 | WSAEWOULDBLOCK
},
5633 /* ### make_requests end ### */
5634 /* Everything above this line is generated automatically by tools/make_requests */
5636 static const char *get_status_name( unsigned int status
)
5639 static char buffer
[10];
5643 for (i
= 0; status_names
[i
].name
; i
++)
5644 if (status_names
[i
].value
== status
) return status_names
[i
].name
;
5646 snprintf( buffer
, sizeof(buffer
), "%x", status
);
5650 void trace_request(void)
5652 enum request req
= current
->req
.request_header
.req
;
5653 if (req
< REQ_NB_REQUESTS
)
5655 fprintf( stderr
, "%04x: %s(", current
->id
, req_names
[req
] );
5656 if (req_dumpers
[req
])
5658 cur_data
= get_req_data();
5659 cur_size
= get_req_data_size();
5660 req_dumpers
[req
]( ¤t
->req
);
5662 fprintf( stderr
, " )\n" );
5664 else fprintf( stderr
, "%04x: %d(?)\n", current
->id
, req
);
5667 void trace_reply( enum request req
, const union generic_reply
*reply
)
5669 if (req
< REQ_NB_REQUESTS
)
5671 fprintf( stderr
, "%04x: %s() = %s",
5672 current
->id
, req_names
[req
], get_status_name(current
->error
) );
5673 if (reply_dumpers
[req
])
5675 fprintf( stderr
, " {" );
5676 cur_data
= current
->reply_data
;
5677 cur_size
= reply
->reply_header
.reply_size
;
5678 reply_dumpers
[req
]( reply
);
5679 fprintf( stderr
, " }" );
5681 fputc( '\n', stderr
);
5683 else fprintf( stderr
, "%04x: %d() = %s\n",
5684 current
->id
, req
, get_status_name(current
->error
) );