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_rectangle( const char *prefix
, const rectangle_t
*rect
)
124 fprintf( stderr
, "%s{%d,%d;%d,%d}", prefix
,
125 rect
->left
, rect
->top
, rect
->right
, rect
->bottom
);
128 static void dump_ioctl_code( const char *prefix
, const ioctl_code_t
*code
)
132 #define CASE(c) case c: fprintf( stderr, "%s%s", prefix, #c ); break
133 CASE(IOCTL_CONDRV_ACTIVATE
);
134 CASE(IOCTL_CONDRV_BIND_PID
);
135 CASE(IOCTL_CONDRV_CTRL_EVENT
);
136 CASE(IOCTL_CONDRV_FILL_OUTPUT
);
137 CASE(IOCTL_CONDRV_GET_INPUT_INFO
);
138 CASE(IOCTL_CONDRV_GET_MODE
);
139 CASE(IOCTL_CONDRV_GET_OUTPUT_INFO
);
140 CASE(IOCTL_CONDRV_GET_TITLE
);
141 CASE(IOCTL_CONDRV_PEEK
);
142 CASE(IOCTL_CONDRV_READ_CONSOLE
);
143 CASE(IOCTL_CONDRV_READ_INPUT
);
144 CASE(IOCTL_CONDRV_READ_OUTPUT
);
145 CASE(IOCTL_CONDRV_SET_MODE
);
146 CASE(IOCTL_CONDRV_SET_OUTPUT_INFO
);
147 CASE(IOCTL_CONDRV_SETUP_INPUT
);
148 CASE(IOCTL_CONDRV_WRITE_CONSOLE
);
149 CASE(IOCTL_CONDRV_WRITE_INPUT
);
150 CASE(IOCTL_CONDRV_WRITE_OUTPUT
);
151 CASE(FSCTL_DISMOUNT_VOLUME
);
152 CASE(FSCTL_PIPE_DISCONNECT
);
153 CASE(FSCTL_PIPE_LISTEN
);
154 CASE(FSCTL_PIPE_PEEK
);
155 CASE(FSCTL_PIPE_WAIT
);
156 CASE(IOCTL_SERIAL_GET_TIMEOUTS
);
157 CASE(IOCTL_SERIAL_GET_WAIT_MASK
);
158 CASE(IOCTL_SERIAL_SET_TIMEOUTS
);
159 CASE(IOCTL_SERIAL_SET_WAIT_MASK
);
160 CASE(WS_SIO_ADDRESS_LIST_CHANGE
);
161 default: fprintf( stderr
, "%s%08x", prefix
, *code
); break;
166 static void dump_apc_call( const char *prefix
, const apc_call_t
*call
)
168 fprintf( stderr
, "%s{", prefix
);
172 fprintf( stderr
, "APC_NONE" );
175 dump_uint64( "APC_USER,func=", &call
->user
.func
);
176 dump_uint64( ",args={", &call
->user
.args
[0] );
177 dump_uint64( ",", &call
->user
.args
[1] );
178 dump_uint64( ",", &call
->user
.args
[2] );
179 fputc( '}', stderr
);
182 dump_uint64( "APC_ASYNC_IO,user=", &call
->async_io
.user
);
183 dump_uint64( ",sb=", &call
->async_io
.sb
);
184 fprintf( stderr
, ",status=%s,result=%u", get_status_name(call
->async_io
.status
), call
->async_io
.result
);
186 case APC_VIRTUAL_ALLOC
:
187 dump_uint64( "APC_VIRTUAL_ALLOC,addr=", &call
->virtual_alloc
.addr
);
188 dump_uint64( ",size=", &call
->virtual_alloc
.size
);
189 dump_uint64( ",zero_bits=", &call
->virtual_alloc
.zero_bits
);
190 fprintf( stderr
, ",op_type=%x,prot=%x", call
->virtual_alloc
.op_type
, call
->virtual_alloc
.prot
);
192 case APC_VIRTUAL_ALLOC_EX
:
193 dump_uint64( "APC_VIRTUAL_ALLOC_EX,addr=", &call
->virtual_alloc_ex
.addr
);
194 dump_uint64( ",size=", &call
->virtual_alloc_ex
.size
);
195 dump_uint64( ",limit_low=", &call
->virtual_alloc_ex
.limit_low
);
196 dump_uint64( ",limit_high=", &call
->virtual_alloc_ex
.limit_high
);
197 dump_uint64( ",align=", &call
->virtual_alloc_ex
.align
);
198 fprintf( stderr
, ",op_type=%x,prot=%x,attributes=%x",
199 call
->virtual_alloc_ex
.op_type
, call
->virtual_alloc_ex
.prot
,
200 call
->virtual_alloc_ex
.attributes
);
202 case APC_VIRTUAL_FREE
:
203 dump_uint64( "APC_VIRTUAL_FREE,addr=", &call
->virtual_free
.addr
);
204 dump_uint64( ",size=", &call
->virtual_free
.size
);
205 fprintf( stderr
, ",op_type=%x", call
->virtual_free
.op_type
);
207 case APC_VIRTUAL_QUERY
:
208 dump_uint64( "APC_VIRTUAL_QUERY,addr=", &call
->virtual_query
.addr
);
210 case APC_VIRTUAL_PROTECT
:
211 dump_uint64( "APC_VIRTUAL_PROTECT,addr=", &call
->virtual_protect
.addr
);
212 dump_uint64( ",size=", &call
->virtual_protect
.size
);
213 fprintf( stderr
, ",prot=%x", call
->virtual_protect
.prot
);
215 case APC_VIRTUAL_FLUSH
:
216 dump_uint64( "APC_VIRTUAL_FLUSH,addr=", &call
->virtual_flush
.addr
);
217 dump_uint64( ",size=", &call
->virtual_flush
.size
);
219 case APC_VIRTUAL_LOCK
:
220 dump_uint64( "APC_VIRTUAL_LOCK,addr=", &call
->virtual_lock
.addr
);
221 dump_uint64( ",size=", &call
->virtual_lock
.size
);
223 case APC_VIRTUAL_UNLOCK
:
224 dump_uint64( "APC_VIRTUAL_UNLOCK,addr=", &call
->virtual_unlock
.addr
);
225 dump_uint64( ",size=", &call
->virtual_unlock
.size
);
228 fprintf( stderr
, "APC_MAP_VIEW,handle=%04x", call
->map_view
.handle
);
229 dump_uint64( ",addr=", &call
->map_view
.addr
);
230 dump_uint64( ",size=", &call
->map_view
.size
);
231 dump_uint64( ",offset=", &call
->map_view
.offset
);
232 dump_uint64( ",zero_bits=", &call
->map_view
.zero_bits
);
233 fprintf( stderr
, ",alloc_type=%x,prot=%x", call
->map_view
.alloc_type
, call
->map_view
.prot
);
235 case APC_MAP_VIEW_EX
:
236 fprintf( stderr
, "APC_MAP_VIEW_EX,handle=%04x", call
->map_view_ex
.handle
);
237 dump_uint64( ",addr=", &call
->map_view_ex
.addr
);
238 dump_uint64( ",size=", &call
->map_view_ex
.size
);
239 dump_uint64( ",offset=", &call
->map_view_ex
.offset
);
240 dump_uint64( ",limit_low=", &call
->map_view_ex
.limit_low
);
241 dump_uint64( ",limit_high=", &call
->map_view_ex
.limit_high
);
242 fprintf( stderr
, ",alloc_type=%x,prot=%x,machine=%04x",
243 call
->map_view_ex
.alloc_type
, call
->map_view_ex
.prot
, call
->map_view_ex
.machine
);
246 dump_uint64( "APC_UNMAP_VIEW,addr=", &call
->unmap_view
.addr
);
248 case APC_CREATE_THREAD
:
249 dump_uint64( "APC_CREATE_THREAD,func=", &call
->create_thread
.func
);
250 dump_uint64( ",arg=", &call
->create_thread
.arg
);
251 dump_uint64( ",zero_bits=", &call
->create_thread
.zero_bits
);
252 dump_uint64( ",reserve=", &call
->create_thread
.reserve
);
253 dump_uint64( ",commit=", &call
->create_thread
.commit
);
254 fprintf( stderr
, ",flags=%x", call
->create_thread
.flags
);
257 fprintf( stderr
, "APC_DUP_HANDLE,src_handle=%04x,dst_process=%04x,access=%x,attributes=%x,options=%x",
258 call
->dup_handle
.src_handle
, call
->dup_handle
.dst_process
, call
->dup_handle
.access
,
259 call
->dup_handle
.attributes
, call
->dup_handle
.options
);
262 fprintf( stderr
, "type=%u", call
->type
);
265 fputc( '}', stderr
);
268 static void dump_apc_result( const char *prefix
, const apc_result_t
*result
)
270 fprintf( stderr
, "%s{", prefix
);
276 fprintf( stderr
, "APC_ASYNC_IO,status=%s,total=%u",
277 get_status_name( result
->async_io
.status
), result
->async_io
.total
);
279 case APC_VIRTUAL_ALLOC
:
280 fprintf( stderr
, "APC_VIRTUAL_ALLOC,status=%s",
281 get_status_name( result
->virtual_alloc
.status
));
282 dump_uint64( ",addr=", &result
->virtual_alloc
.addr
);
283 dump_uint64( ",size=", &result
->virtual_alloc
.size
);
285 case APC_VIRTUAL_FREE
:
286 fprintf( stderr
, "APC_VIRTUAL_FREE,status=%s",
287 get_status_name( result
->virtual_free
.status
));
288 dump_uint64( ",addr=", &result
->virtual_free
.addr
);
289 dump_uint64( ",size=", &result
->virtual_free
.size
);
291 case APC_VIRTUAL_QUERY
:
292 fprintf( stderr
, "APC_VIRTUAL_QUERY,status=%s",
293 get_status_name( result
->virtual_query
.status
));
294 dump_uint64( ",base=", &result
->virtual_query
.base
);
295 dump_uint64( ",alloc_base=", &result
->virtual_query
.alloc_base
);
296 dump_uint64( ",size=", &result
->virtual_query
.size
);
297 fprintf( stderr
, ",state=%x,prot=%x,alloc_prot=%x,alloc_type=%x",
298 result
->virtual_query
.state
, result
->virtual_query
.prot
,
299 result
->virtual_query
.alloc_prot
, result
->virtual_query
.alloc_type
);
301 case APC_VIRTUAL_PROTECT
:
302 fprintf( stderr
, "APC_VIRTUAL_PROTECT,status=%s",
303 get_status_name( result
->virtual_protect
.status
));
304 dump_uint64( ",addr=", &result
->virtual_protect
.addr
);
305 dump_uint64( ",size=", &result
->virtual_protect
.size
);
306 fprintf( stderr
, ",prot=%x", result
->virtual_protect
.prot
);
308 case APC_VIRTUAL_FLUSH
:
309 fprintf( stderr
, "APC_VIRTUAL_FLUSH,status=%s",
310 get_status_name( result
->virtual_flush
.status
));
311 dump_uint64( ",addr=", &result
->virtual_flush
.addr
);
312 dump_uint64( ",size=", &result
->virtual_flush
.size
);
314 case APC_VIRTUAL_LOCK
:
315 fprintf( stderr
, "APC_VIRTUAL_LOCK,status=%s",
316 get_status_name( result
->virtual_lock
.status
));
317 dump_uint64( ",addr=", &result
->virtual_lock
.addr
);
318 dump_uint64( ",size=", &result
->virtual_lock
.size
);
320 case APC_VIRTUAL_UNLOCK
:
321 fprintf( stderr
, "APC_VIRTUAL_UNLOCK,status=%s",
322 get_status_name( result
->virtual_unlock
.status
));
323 dump_uint64( ",addr=", &result
->virtual_unlock
.addr
);
324 dump_uint64( ",size=", &result
->virtual_unlock
.size
);
327 fprintf( stderr
, "APC_MAP_VIEW,status=%s",
328 get_status_name( result
->map_view
.status
));
329 dump_uint64( ",addr=", &result
->map_view
.addr
);
330 dump_uint64( ",size=", &result
->map_view
.size
);
333 fprintf( stderr
, "APC_UNMAP_VIEW,status=%s",
334 get_status_name( result
->unmap_view
.status
) );
336 case APC_CREATE_THREAD
:
337 fprintf( stderr
, "APC_CREATE_THREAD,status=%s,pid=%04x,tid=%04x,handle=%04x",
338 get_status_name( result
->create_thread
.status
),
339 result
->create_thread
.pid
, result
->create_thread
.tid
, result
->create_thread
.handle
);
342 fprintf( stderr
, "APC_DUP_HANDLE,status=%s,handle=%04x",
343 get_status_name( result
->dup_handle
.status
), result
->dup_handle
.handle
);
346 fprintf( stderr
, "type=%u", result
->type
);
349 fputc( '}', stderr
);
352 static void dump_async_data( const char *prefix
, const async_data_t
*data
)
354 fprintf( stderr
, "%s{handle=%04x,event=%04x", prefix
, data
->handle
, data
->event
);
355 dump_uint64( ",iosb=", &data
->iosb
);
356 dump_uint64( ",user=", &data
->user
);
357 dump_uint64( ",apc=", &data
->apc
);
358 dump_uint64( ",apc_context=", &data
->apc_context
);
359 fputc( '}', stderr
);
362 static void dump_irp_params( const char *prefix
, const irp_params_t
*data
)
367 fprintf( stderr
, "%s{NONE}", prefix
);
369 case IRP_CALL_CREATE
:
370 fprintf( stderr
, "%s{CREATE,access=%08x,sharing=%08x,options=%08x",
371 prefix
, data
->create
.access
, data
->create
.sharing
, data
->create
.options
);
372 dump_uint64( ",device=", &data
->create
.device
);
373 fprintf( stderr
, ",file=%08x}", data
->create
.file
);
376 fprintf( stderr
, "%s{CLOSE", prefix
);
377 dump_uint64( ",file=", &data
->close
.file
);
378 fputc( '}', stderr
);
381 fprintf( stderr
, "%s{READ,key=%08x,out_size=%u", prefix
, data
->read
.key
,
382 data
->read
.out_size
);
383 dump_uint64( ",pos=", &data
->read
.pos
);
384 dump_uint64( ",file=", &data
->read
.file
);
385 fputc( '}', stderr
);
388 fprintf( stderr
, "%s{WRITE,key=%08x", prefix
, data
->write
.key
);
389 dump_uint64( ",pos=", &data
->write
.pos
);
390 dump_uint64( ",file=", &data
->write
.file
);
391 fputc( '}', stderr
);
394 fprintf( stderr
, "%s{FLUSH", prefix
);
395 dump_uint64( ",file=", &data
->flush
.file
);
396 fputc( '}', stderr
);
399 fprintf( stderr
, "%s{IOCTL", prefix
);
400 dump_ioctl_code( ",code=", &data
->ioctl
.code
);
401 fprintf( stderr
, ",out_size=%u", data
->ioctl
.out_size
);
402 dump_uint64( ",file=", &data
->ioctl
.file
);
403 fputc( '}', stderr
);
405 case IRP_CALL_VOLUME
:
406 fprintf( stderr
, "%s{VOLUME,class=%u,out_size=%u", prefix
,
407 data
->volume
.info_class
, data
->volume
.out_size
);
408 dump_uint64( ",file=", &data
->volume
.file
);
409 fputc( '}', stderr
);
412 fprintf( stderr
, "%s{FREE", prefix
);
413 dump_uint64( ",obj=", &data
->free
.obj
);
414 fputc( '}', stderr
);
416 case IRP_CALL_CANCEL
:
417 fprintf( stderr
, "%s{CANCEL", prefix
);
418 dump_uint64( ",irp=", &data
->cancel
.irp
);
419 fputc( '}', stderr
);
424 static void dump_rawinput( const char *prefix
, const union rawinput
*rawinput
)
426 switch (rawinput
->type
)
429 fprintf( stderr
, "%s{type=MOUSE,x=%d,y=%d,data=%08x}", prefix
, rawinput
->mouse
.x
,
430 rawinput
->mouse
.y
, rawinput
->mouse
.data
);
432 case RIM_TYPEKEYBOARD
:
433 fprintf( stderr
, "%s{type=KEYBOARD,message=%04x,vkey=%04hx,scan=%04hx}", prefix
,
434 rawinput
->kbd
.message
, rawinput
->kbd
.vkey
, rawinput
->kbd
.scan
);
437 fprintf( stderr
, "%s{type=HID,device=%04x,param=%04x,page=%04hx,usage=%04hx,count=%u,length=%u}",
438 prefix
, rawinput
->hid
.device
, rawinput
->hid
.param
, rawinput
->hid
.usage_page
,
439 rawinput
->hid
.usage
, rawinput
->hid
.count
, rawinput
->hid
.length
);
442 fprintf( stderr
, "%s{type=%04x}", prefix
, rawinput
->type
);
447 static void dump_hw_input( const char *prefix
, const hw_input_t
*input
)
452 fprintf( stderr
, "%s{type=MOUSE,x=%d,y=%d,data=%08x,flags=%08x,time=%u",
453 prefix
, input
->mouse
.x
, input
->mouse
.y
, input
->mouse
.data
, input
->mouse
.flags
,
455 dump_uint64( ",info=", &input
->mouse
.info
);
456 fputc( '}', stderr
);
459 fprintf( stderr
, "%s{type=KEYBOARD,vkey=%04hx,scan=%04hx,flags=%08x,time=%u",
460 prefix
, input
->kbd
.vkey
, input
->kbd
.scan
, input
->kbd
.flags
, input
->kbd
.time
);
461 dump_uint64( ",info=", &input
->kbd
.info
);
462 fputc( '}', stderr
);
465 fprintf( stderr
, "%s{type=HARDWARE,msg=%04x", prefix
, input
->hw
.msg
);
466 dump_uint64( ",lparam=", &input
->hw
.lparam
);
467 switch (input
->hw
.msg
)
470 case WM_INPUT_DEVICE_CHANGE
:
471 dump_rawinput( ",rawinput=", &input
->hw
.rawinput
);
473 fputc( '}', stderr
);
476 fprintf( stderr
, "%s{type=%04x}", prefix
, input
->type
);
481 static void dump_luid( const char *prefix
, const struct luid
*luid
)
483 fprintf( stderr
, "%s%d.%u", prefix
, luid
->high_part
, luid
->low_part
);
486 static void dump_generic_map( const char *prefix
, const generic_map_t
*map
)
488 fprintf( stderr
, "%s{r=%08x,w=%08x,x=%08x,a=%08x}",
489 prefix
, map
->read
, map
->write
, map
->exec
, map
->all
);
492 static void dump_varargs_ints( const char *prefix
, data_size_t size
)
494 const int *data
= cur_data
;
495 data_size_t len
= size
/ sizeof(*data
);
497 fprintf( stderr
,"%s{", prefix
);
500 fprintf( stderr
, "%d", *data
++ );
501 if (--len
) fputc( ',', stderr
);
503 fputc( '}', stderr
);
507 static void dump_varargs_uints( const char *prefix
, data_size_t size
)
509 const unsigned int *data
= cur_data
;
511 dump_uints( prefix
, data
, size
/ sizeof(*data
) );
515 static void dump_varargs_uints64( const char *prefix
, data_size_t size
)
517 const unsigned __int64
*data
= cur_data
;
518 data_size_t len
= size
/ sizeof(*data
);
520 fprintf( stderr
,"%s{", prefix
);
523 dump_uint64( "", data
++ );
524 if (--len
) fputc( ',', stderr
);
526 fputc( '}', stderr
);
530 static void dump_varargs_ushorts( const char *prefix
, data_size_t size
)
532 const unsigned short *data
= cur_data
;
533 data_size_t len
= size
/ sizeof(*data
);
535 fprintf( stderr
, "%s{", prefix
);
538 fprintf( stderr
, "%04x", *data
++ );
539 if (--len
) fputc( ',', stderr
);
541 fputc( '}', stderr
);
545 static void dump_varargs_apc_call( const char *prefix
, data_size_t size
)
547 const apc_call_t
*call
= cur_data
;
549 if (size
>= sizeof(*call
))
551 dump_apc_call( prefix
, call
);
552 size
= sizeof(*call
);
554 else fprintf( stderr
, "%s{}", prefix
);
558 static void dump_varargs_apc_result( const char *prefix
, data_size_t size
)
560 const apc_result_t
*result
= cur_data
;
562 if (size
>= sizeof(*result
))
564 dump_apc_result( prefix
, result
);
565 size
= sizeof(*result
);
570 static void dump_varargs_select_op( const char *prefix
, data_size_t size
)
576 fprintf( stderr
, "%s{}", prefix
);
579 memset( &data
, 0, sizeof(data
) );
580 memcpy( &data
, cur_data
, min( size
, sizeof(data
) ));
582 fprintf( stderr
, "%s{", prefix
);
586 fprintf( stderr
, "NONE" );
589 case SELECT_WAIT_ALL
:
590 fprintf( stderr
, "%s", data
.op
== SELECT_WAIT
? "WAIT" : "WAIT_ALL" );
591 if (size
> offsetof( select_op_t
, wait
.handles
))
592 dump_handles( ",handles=", data
.wait
.handles
,
593 min( size
, sizeof(data
.wait
) ) - offsetof( select_op_t
, wait
.handles
));
595 case SELECT_SIGNAL_AND_WAIT
:
596 fprintf( stderr
, "SIGNAL_AND_WAIT,signal=%04x,wait=%04x",
597 data
.signal_and_wait
.signal
, data
.signal_and_wait
.wait
);
599 case SELECT_KEYED_EVENT_WAIT
:
600 case SELECT_KEYED_EVENT_RELEASE
:
601 fprintf( stderr
, "KEYED_EVENT_%s,handle=%04x",
602 data
.op
== SELECT_KEYED_EVENT_WAIT
? "WAIT" : "RELEASE",
603 data
.keyed_event
.handle
);
604 dump_uint64( ",key=", &data
.keyed_event
.key
);
607 fprintf( stderr
, "op=%u", data
.op
);
610 fputc( '}', stderr
);
614 static void dump_varargs_user_handles( const char *prefix
, data_size_t size
)
616 const user_handle_t
*data
= cur_data
;
617 data_size_t len
= size
/ sizeof(*data
);
619 fprintf( stderr
,"%s{", prefix
);
622 fprintf( stderr
, "%08x", *data
++ );
623 if (--len
) fputc( ',', stderr
);
625 fputc( '}', stderr
);
629 static void dump_varargs_bytes( const char *prefix
, data_size_t size
)
631 const unsigned char *data
= cur_data
;
632 data_size_t len
= min( 1024, size
);
634 fprintf( stderr
,"%s{", prefix
);
637 fprintf( stderr
, "%02x", *data
++ );
638 if (--len
) fputc( ',', stderr
);
640 if (size
> 1024) fprintf( stderr
, "...(total %u)", size
);
641 fputc( '}', stderr
);
645 static void dump_varargs_string( const char *prefix
, data_size_t size
)
647 fprintf( stderr
, "%s\"%.*s\"", prefix
, (int)size
, (const char *)cur_data
);
651 static void dump_varargs_unicode_str( const char *prefix
, data_size_t size
)
653 fprintf( stderr
, "%sL\"", prefix
);
654 dump_strW( cur_data
, size
, stderr
, "\"\"" );
655 fputc( '\"', stderr
);
659 static void dump_varargs_context( const char *prefix
, data_size_t size
)
661 const context_t
*context
= cur_data
;
667 fprintf( stderr
, "%s{}", prefix
);
670 size
= min( size
, sizeof(ctx
) );
671 memset( &ctx
, 0, sizeof(ctx
) );
672 memcpy( &ctx
, context
, size
);
676 case IMAGE_FILE_MACHINE_I386
:
677 fprintf( stderr
, "%s{machine=i386", prefix
);
678 if (ctx
.flags
& SERVER_CTX_CONTROL
)
679 fprintf( stderr
, ",eip=%08x,esp=%08x,ebp=%08x,eflags=%08x,cs=%04x,ss=%04x",
680 ctx
.ctl
.i386_regs
.eip
, ctx
.ctl
.i386_regs
.esp
, ctx
.ctl
.i386_regs
.ebp
,
681 ctx
.ctl
.i386_regs
.eflags
, ctx
.ctl
.i386_regs
.cs
, ctx
.ctl
.i386_regs
.ss
);
682 if (ctx
.flags
& SERVER_CTX_SEGMENTS
)
683 fprintf( stderr
, ",ds=%04x,es=%04x,fs=%04x,gs=%04x",
684 ctx
.seg
.i386_regs
.ds
, ctx
.seg
.i386_regs
.es
,
685 ctx
.seg
.i386_regs
.fs
, ctx
.seg
.i386_regs
.gs
);
686 if (ctx
.flags
& SERVER_CTX_INTEGER
)
687 fprintf( stderr
, ",eax=%08x,ebx=%08x,ecx=%08x,edx=%08x,esi=%08x,edi=%08x",
688 ctx
.integer
.i386_regs
.eax
, ctx
.integer
.i386_regs
.ebx
, ctx
.integer
.i386_regs
.ecx
,
689 ctx
.integer
.i386_regs
.edx
, ctx
.integer
.i386_regs
.esi
, ctx
.integer
.i386_regs
.edi
);
690 if (ctx
.flags
& SERVER_CTX_DEBUG_REGISTERS
)
691 fprintf( stderr
, ",dr0=%08x,dr1=%08x,dr2=%08x,dr3=%08x,dr6=%08x,dr7=%08x",
692 ctx
.debug
.i386_regs
.dr0
, ctx
.debug
.i386_regs
.dr1
, ctx
.debug
.i386_regs
.dr2
,
693 ctx
.debug
.i386_regs
.dr3
, ctx
.debug
.i386_regs
.dr6
, ctx
.debug
.i386_regs
.dr7
);
694 if (ctx
.flags
& SERVER_CTX_FLOATING_POINT
)
696 fprintf( stderr
, ",fp.ctrl=%08x,fp.status=%08x,fp.tag=%08x,fp.err_off=%08x,fp.err_sel=%08x",
697 ctx
.fp
.i386_regs
.ctrl
, ctx
.fp
.i386_regs
.status
, ctx
.fp
.i386_regs
.tag
,
698 ctx
.fp
.i386_regs
.err_off
, ctx
.fp
.i386_regs
.err_sel
);
699 fprintf( stderr
, ",fp.data_off=%08x,fp.data_sel=%08x,fp.cr0npx=%08x",
700 ctx
.fp
.i386_regs
.data_off
, ctx
.fp
.i386_regs
.data_sel
, ctx
.fp
.i386_regs
.cr0npx
);
701 for (i
= 0; i
< 8; i
++)
703 unsigned __int64 reg
[2];
704 memset( reg
, 0, sizeof(reg
) );
705 memcpy( reg
, &ctx
.fp
.i386_regs
.regs
[10 * i
], 10 );
706 fprintf( stderr
, ",fp.reg%u=", i
);
707 dump_uint128( "", reg
);
710 if (ctx
.flags
& SERVER_CTX_EXTENDED_REGISTERS
)
711 dump_uints( ",extended=", (const unsigned int *)ctx
.ext
.i386_regs
,
712 sizeof(ctx
.ext
.i386_regs
) / sizeof(int) );
713 if (ctx
.flags
& SERVER_CTX_YMM_REGISTERS
)
714 for (i
= 0; i
< 16; i
++)
716 fprintf( stderr
, ",ymm%u=", i
);
717 dump_uint128( "", (const unsigned __int64
*)&ctx
.ymm
.regs
.ymm_high
[i
] );
720 case IMAGE_FILE_MACHINE_AMD64
:
721 fprintf( stderr
, "%s{machine=x86_64", prefix
);
722 if (ctx
.flags
& SERVER_CTX_CONTROL
)
724 dump_uint64( ",rip=", &ctx
.ctl
.x86_64_regs
.rip
);
725 dump_uint64( ",rbp=", &ctx
.ctl
.x86_64_regs
.rbp
);
726 dump_uint64( ",rsp=", &ctx
.ctl
.x86_64_regs
.rsp
);
727 fprintf( stderr
, ",cs=%04x,ss=%04x,flags=%08x",
728 ctx
.ctl
.x86_64_regs
.cs
, ctx
.ctl
.x86_64_regs
.ss
, ctx
.ctl
.x86_64_regs
.flags
);
730 if (ctx
.flags
& SERVER_CTX_INTEGER
)
732 dump_uint64( ",rax=", &ctx
.integer
.x86_64_regs
.rax
);
733 dump_uint64( ",rbx=", &ctx
.integer
.x86_64_regs
.rbx
);
734 dump_uint64( ",rcx=", &ctx
.integer
.x86_64_regs
.rcx
);
735 dump_uint64( ",rdx=", &ctx
.integer
.x86_64_regs
.rdx
);
736 dump_uint64( ",rsi=", &ctx
.integer
.x86_64_regs
.rsi
);
737 dump_uint64( ",rdi=", &ctx
.integer
.x86_64_regs
.rdi
);
738 dump_uint64( ",r8=", &ctx
.integer
.x86_64_regs
.r8
);
739 dump_uint64( ",r9=", &ctx
.integer
.x86_64_regs
.r9
);
740 dump_uint64( ",r10=", &ctx
.integer
.x86_64_regs
.r10
);
741 dump_uint64( ",r11=", &ctx
.integer
.x86_64_regs
.r11
);
742 dump_uint64( ",r12=", &ctx
.integer
.x86_64_regs
.r12
);
743 dump_uint64( ",r13=", &ctx
.integer
.x86_64_regs
.r13
);
744 dump_uint64( ",r14=", &ctx
.integer
.x86_64_regs
.r14
);
745 dump_uint64( ",r15=", &ctx
.integer
.x86_64_regs
.r15
);
747 if (ctx
.flags
& SERVER_CTX_SEGMENTS
)
748 fprintf( stderr
, ",ds=%04x,es=%04x,fs=%04x,gs=%04x",
749 ctx
.seg
.x86_64_regs
.ds
, ctx
.seg
.x86_64_regs
.es
,
750 ctx
.seg
.x86_64_regs
.fs
, ctx
.seg
.x86_64_regs
.gs
);
751 if (ctx
.flags
& SERVER_CTX_DEBUG_REGISTERS
)
753 dump_uint64( ",dr0=", &ctx
.debug
.x86_64_regs
.dr0
);
754 dump_uint64( ",dr1=", &ctx
.debug
.x86_64_regs
.dr1
);
755 dump_uint64( ",dr2=", &ctx
.debug
.x86_64_regs
.dr2
);
756 dump_uint64( ",dr3=", &ctx
.debug
.x86_64_regs
.dr3
);
757 dump_uint64( ",dr6=", &ctx
.debug
.x86_64_regs
.dr6
);
758 dump_uint64( ",dr7=", &ctx
.debug
.x86_64_regs
.dr7
);
760 if (ctx
.flags
& SERVER_CTX_FLOATING_POINT
)
761 for (i
= 0; i
< 32; i
++)
763 fprintf( stderr
, ",fp%u=", i
);
764 dump_uint128( "", (const unsigned __int64
*)&ctx
.fp
.x86_64_regs
.fpregs
[i
] );
766 if (ctx
.flags
& SERVER_CTX_YMM_REGISTERS
)
767 for (i
= 0; i
< 16; i
++)
769 fprintf( stderr
, ",ymm%u=", i
);
770 dump_uint128( "", (const unsigned __int64
*)&ctx
.ymm
.regs
.ymm_high
[i
] );
773 case IMAGE_FILE_MACHINE_ARMNT
:
774 fprintf( stderr
, "%s{machine=arm", prefix
);
775 if (ctx
.flags
& SERVER_CTX_CONTROL
)
776 fprintf( stderr
, ",sp=%08x,lr=%08x,pc=%08x,cpsr=%08x",
777 ctx
.ctl
.arm_regs
.sp
, ctx
.ctl
.arm_regs
.lr
,
778 ctx
.ctl
.arm_regs
.pc
, ctx
.ctl
.arm_regs
.cpsr
);
779 if (ctx
.flags
& SERVER_CTX_INTEGER
)
780 for (i
= 0; i
< 13; i
++) fprintf( stderr
, ",r%u=%08x", i
, ctx
.integer
.arm_regs
.r
[i
] );
781 if (ctx
.flags
& SERVER_CTX_DEBUG_REGISTERS
)
783 for (i
= 0; i
< 8; i
++)
784 fprintf( stderr
, ",bcr%u=%08x,bvr%u=%08x",
785 i
, ctx
.debug
.arm_regs
.bcr
[i
], i
, ctx
.debug
.arm_regs
.bvr
[i
] );
786 fprintf( stderr
, ",wcr0=%08x,wvr0=%08x",
787 ctx
.debug
.arm_regs
.wcr
[0], ctx
.debug
.arm_regs
.wvr
[0] );
789 if (ctx
.flags
& SERVER_CTX_FLOATING_POINT
)
791 for (i
= 0; i
< 32; i
++)
793 fprintf( stderr
, ",d%u=", i
);
794 dump_uint64( "", &ctx
.fp
.arm_regs
.d
[i
] );
796 fprintf( stderr
, ",fpscr=%08x", ctx
.fp
.arm_regs
.fpscr
);
799 case IMAGE_FILE_MACHINE_ARM64
:
800 fprintf( stderr
, "%s{machine=arm64", prefix
);
801 if (ctx
.flags
& SERVER_CTX_CONTROL
)
803 dump_uint64( ",sp=", &ctx
.ctl
.arm64_regs
.sp
);
804 dump_uint64( ",pc=", &ctx
.ctl
.arm64_regs
.pc
);
805 dump_uint64( ",pstate=", &ctx
.ctl
.arm64_regs
.pstate
);
807 if (ctx
.flags
& SERVER_CTX_INTEGER
)
809 for (i
= 0; i
< 31; i
++)
811 fprintf( stderr
, ",x%u=", i
);
812 dump_uint64( "", &ctx
.integer
.arm64_regs
.x
[i
] );
815 if (ctx
.flags
& SERVER_CTX_DEBUG_REGISTERS
)
817 for (i
= 0; i
< 8; i
++)
819 fprintf( stderr
, ",bcr%u=%08x,bvr%u=", i
, ctx
.debug
.arm64_regs
.bcr
[i
], i
);
820 dump_uint64( "", &ctx
.debug
.arm64_regs
.bvr
[i
] );
822 for (i
= 0; i
< 2; i
++)
824 fprintf( stderr
, ",wcr%u=%08x,wvr%u=", i
, ctx
.debug
.arm64_regs
.wcr
[i
], i
);
825 dump_uint64( "", &ctx
.debug
.arm64_regs
.wvr
[i
] );
828 if (ctx
.flags
& SERVER_CTX_FLOATING_POINT
)
830 for (i
= 0; i
< 32; i
++)
832 fprintf( stderr
, ",q%u=", i
);
833 dump_uint64( "", &ctx
.fp
.arm64_regs
.q
[i
].high
);
834 dump_uint64( "", &ctx
.fp
.arm64_regs
.q
[i
].low
);
836 fprintf( stderr
, ",fpcr=%08x,fpsr=%08x", ctx
.fp
.arm64_regs
.fpcr
, ctx
.fp
.arm64_regs
.fpsr
);
840 fprintf( stderr
, "%s{machine=%04x", prefix
, ctx
.machine
);
843 fputc( '}', stderr
);
847 static void dump_varargs_contexts( const char *prefix
, data_size_t size
)
851 fprintf( stderr
, "%s{}", prefix
);
854 fprintf( stderr
, "%s{", prefix
);
857 dump_varargs_context( "", cur_size
);
858 fputc( cur_size
? ',' : '}', stderr
);
862 static void dump_varargs_debug_event( const char *prefix
, data_size_t size
)
869 fprintf( stderr
, "%s{}", prefix
);
872 size
= min( size
, sizeof(event
) );
873 memset( &event
, 0, sizeof(event
) );
874 memcpy( &event
, cur_data
, size
);
879 fprintf( stderr
, "%s{idle}", prefix
);
881 case DbgReplyPending
:
882 fprintf( stderr
, "%s{pending}", prefix
);
884 case DbgCreateThreadStateChange
:
885 fprintf( stderr
, "%s{create_thread,thread=%04x", prefix
, event
.create_thread
.handle
);
886 dump_uint64( ",start=", &event
.create_thread
.start
);
887 fputc( '}', stderr
);
889 case DbgCreateProcessStateChange
:
890 fprintf( stderr
, "%s{create_process,file=%04x,process=%04x,thread=%04x", prefix
,
891 event
.create_process
.file
, event
.create_process
.process
,
892 event
.create_process
.thread
);
893 dump_uint64( ",base=", &event
.create_process
.base
);
894 fprintf( stderr
, ",offset=%d,size=%d",
895 event
.create_process
.dbg_offset
, event
.create_process
.dbg_size
);
896 dump_uint64( ",start=", &event
.create_process
.start
);
897 fputc( '}', stderr
);
899 case DbgExitThreadStateChange
:
900 fprintf( stderr
, "%s{exit_thread,code=%d}", prefix
, event
.exit
.exit_code
);
902 case DbgExitProcessStateChange
:
903 fprintf( stderr
, "%s{exit_process,code=%d}", prefix
, event
.exit
.exit_code
);
905 case DbgExceptionStateChange
:
906 case DbgBreakpointStateChange
:
907 case DbgSingleStepStateChange
:
908 fprintf( stderr
, "%s{%s,first=%d,exc_code=%08x,flags=%08x", prefix
,
909 event
.code
== DbgBreakpointStateChange
? "breakpoint" :
910 event
.code
== DbgSingleStepStateChange
? "singlestep" : "exception",
911 event
.exception
.first
, event
.exception
.exc_code
, event
.exception
.flags
);
912 dump_uint64( ",record=", &event
.exception
.record
);
913 dump_uint64( ",address=", &event
.exception
.address
);
914 fprintf( stderr
, ",params={" );
915 event
.exception
.nb_params
= min( event
.exception
.nb_params
, EXCEPTION_MAXIMUM_PARAMETERS
);
916 for (i
= 0; i
< event
.exception
.nb_params
; i
++)
918 dump_uint64( "", &event
.exception
.params
[i
] );
919 if (i
< event
.exception
.nb_params
) fputc( ',', stderr
);
921 fprintf( stderr
, "}}" );
923 case DbgLoadDllStateChange
:
924 fprintf( stderr
, "%s{load_dll,file=%04x", prefix
, event
.load_dll
.handle
);
925 dump_uint64( ",base=", &event
.load_dll
.base
);
926 fprintf( stderr
, ",offset=%d,size=%d",
927 event
.load_dll
.dbg_offset
, event
.load_dll
.dbg_size
);
928 dump_uint64( ",name=", &event
.load_dll
.name
);
929 fputc( '}', stderr
);
931 case DbgUnloadDllStateChange
:
932 fprintf( stderr
, "%s{unload_dll", prefix
);
933 dump_uint64( ",base=", &event
.unload_dll
.base
);
934 fputc( '}', stderr
);
937 fprintf( stderr
, "%s{code=??? (%d)}", prefix
, event
.code
);
943 /* dump a unicode string contained in a buffer; helper for dump_varargs_startup_info */
944 static data_size_t
dump_inline_unicode_string( const char *prefix
, data_size_t pos
, data_size_t len
, data_size_t total_size
)
946 fputs( prefix
, stderr
);
947 if (pos
>= total_size
) return pos
;
948 if (len
> total_size
- pos
) len
= total_size
- pos
;
949 dump_strW( (const WCHAR
*)cur_data
+ pos
/sizeof(WCHAR
), len
, stderr
, "\"\"" );
950 return pos
+ (len
/ sizeof(WCHAR
)) * sizeof(WCHAR
);
953 static void dump_varargs_startup_info( const char *prefix
, data_size_t size
)
956 data_size_t pos
= sizeof(info
);
958 memset( &info
, 0, sizeof(info
) );
959 memcpy( &info
, cur_data
, min( size
, sizeof(info
) ));
962 "%s{debug_flags=%x,console_flags=%x,console=%04x,hstdin=%04x,hstdout=%04x,hstderr=%04x,"
963 "x=%u,y=%u,xsize=%u,ysize=%u,xchars=%u,ychars=%u,attribute=%02x,flags=%x,show=%u,"
964 "process_group_id=%u",
965 prefix
, info
.debug_flags
, info
.console_flags
, info
.console
,
966 info
.hstdin
, info
.hstdout
, info
.hstderr
, info
.x
, info
.y
, info
.xsize
, info
.ysize
,
967 info
.xchars
, info
.ychars
, info
.attribute
, info
.flags
, info
.show
, info
.process_group_id
);
968 pos
= dump_inline_unicode_string( ",curdir=L\"", pos
, info
.curdir_len
, size
);
969 pos
= dump_inline_unicode_string( "\",dllpath=L\"", pos
, info
.dllpath_len
, size
);
970 pos
= dump_inline_unicode_string( "\",imagepath=L\"", pos
, info
.imagepath_len
, size
);
971 pos
= dump_inline_unicode_string( "\",cmdline=L\"", pos
, info
.cmdline_len
, size
);
972 pos
= dump_inline_unicode_string( "\",title=L\"", pos
, info
.title_len
, size
);
973 pos
= dump_inline_unicode_string( "\",desktop=L\"", pos
, info
.desktop_len
, size
);
974 pos
= dump_inline_unicode_string( "\",shellinfo=L\"", pos
, info
.shellinfo_len
, size
);
975 pos
= dump_inline_unicode_string( "\",runtime=L\"", pos
, info
.runtime_len
, size
);
976 fprintf( stderr
, "\"}" );
980 static void dump_varargs_rectangles( const char *prefix
, data_size_t size
)
982 const rectangle_t
*rect
= cur_data
;
983 data_size_t len
= size
/ sizeof(*rect
);
985 fprintf( stderr
,"%s{", prefix
);
988 dump_rectangle( "", rect
++ );
989 if (--len
) fputc( ',', stderr
);
991 fputc( '}', stderr
);
995 static void dump_varargs_cursor_positions( const char *prefix
, data_size_t size
)
997 const cursor_pos_t
*pos
= cur_data
;
998 data_size_t len
= size
/ sizeof(*pos
);
1000 fprintf( stderr
, "%s{", prefix
);
1003 fprintf( stderr
, "{x=%d,y=%d,time=%u", pos
->x
, pos
->y
, pos
->time
);
1004 dump_uint64( ",info=", &pos
->info
);
1005 fputc( '}', stderr
);
1007 if (--len
) fputc( ',', stderr
);
1009 fputc( '}', stderr
);
1010 remove_data( size
);
1013 static void dump_varargs_message_data( const char *prefix
, data_size_t size
)
1015 /* FIXME: dump the structured data */
1016 dump_varargs_bytes( prefix
, size
);
1019 static void dump_varargs_properties( const char *prefix
, data_size_t size
)
1021 const property_data_t
*prop
= cur_data
;
1022 data_size_t len
= size
/ sizeof(*prop
);
1024 fprintf( stderr
,"%s{", prefix
);
1027 fprintf( stderr
, "{atom=%04x,str=%d", prop
->atom
, prop
->string
);
1028 dump_uint64( ",data=", &prop
->data
);
1029 fputc( '}', stderr
);
1031 if (--len
) fputc( ',', stderr
);
1033 fputc( '}', stderr
);
1034 remove_data( size
);
1037 static void dump_varargs_luid_attr( const char *prefix
, data_size_t size
)
1039 const struct luid_attr
*lat
= cur_data
;
1040 data_size_t len
= size
/ sizeof(*lat
);
1042 fprintf( stderr
,"%s{", prefix
);
1045 fprintf( stderr
, "{luid=%08x%08x,attrs=%x}", lat
->luid
.high_part
, lat
->luid
.low_part
, lat
->attrs
);
1047 if (--len
) fputc( ',', stderr
);
1049 fputc( '}', stderr
);
1050 remove_data( size
);
1053 static void dump_inline_sid( const char *prefix
, const struct sid
*sid
, data_size_t size
)
1057 fprintf( stderr
,"%s", prefix
);
1058 if (sid_valid_size( sid
, size
))
1060 fprintf( stderr
, "S-%u-%u", sid
->revision
,
1061 ((unsigned int)sid
->id_auth
[2] << 24) |
1062 ((unsigned int)sid
->id_auth
[3] << 16) |
1063 ((unsigned int)sid
->id_auth
[4] << 8) |
1064 ((unsigned int)sid
->id_auth
[5]) );
1065 for (i
= 0; i
< sid
->sub_count
; i
++) fprintf( stderr
, "-%u", sid
->sub_auth
[i
] );
1067 else fprintf( stderr
, "<invalid>" );
1070 static void dump_varargs_sid( const char *prefix
, data_size_t size
)
1072 const struct sid
*sid
= cur_data
;
1073 if (size
) dump_inline_sid( prefix
, sid
, size
);
1074 remove_data( size
);
1077 static void dump_varargs_sids( const char *prefix
, data_size_t size
)
1079 const struct sid
*sid
= cur_data
;
1080 data_size_t len
= size
;
1082 fprintf( stderr
,"%s{", prefix
);
1085 if (!sid_valid_size( sid
, len
))
1087 fprintf( stderr
, "bad len %u", len
);
1090 dump_inline_sid( "", sid
, size
);
1091 len
-= sid_len( sid
);
1092 sid
= (const struct sid
*)((const char *)sid
+ sid_len( sid
));
1093 if (len
) fputc( ',', stderr
);
1095 fputc( '}', stderr
);
1096 remove_data( size
);
1099 static void dump_inline_acl( const char *prefix
, const struct acl
*acl
, data_size_t size
)
1101 const struct ace
*ace
;
1104 fprintf( stderr
,"%s{", prefix
);
1107 if (size
< sizeof(*acl
))
1109 fprintf( stderr
, "<invalid acl>}" );
1112 size
-= sizeof(*acl
);
1113 for (i
= 0, ace
= ace_first( acl
); i
< acl
->count
; i
++, ace
= ace_next( ace
))
1115 const struct sid
*sid
= (const struct sid
*)(ace
+ 1);
1116 data_size_t sid_size
;
1118 if (size
< sizeof(*ace
) || size
< ace
->size
) break;
1120 sid_size
= ace
->size
- sizeof(*ace
);
1121 if (i
!= 0) fputc( ',', stderr
);
1122 fprintf( stderr
, "{type=" );
1125 case ACCESS_DENIED_ACE_TYPE
: fprintf( stderr
, "ACCESS_DENIED" ); break;
1126 case ACCESS_ALLOWED_ACE_TYPE
: fprintf( stderr
, "ACCESS_ALLOWED" ); break;
1127 case SYSTEM_AUDIT_ACE_TYPE
: fprintf( stderr
, "SYSTEM_AUDIT" ); break;
1128 case SYSTEM_ALARM_ACE_TYPE
: fprintf( stderr
, "SYSTEM_ALARM" ); break;
1129 case SYSTEM_MANDATORY_LABEL_ACE_TYPE
: fprintf( stderr
, "SYSTEM_MANDATORY_LABEL" ); break;
1131 fprintf( stderr
, "%02x", ace
->type
);
1135 fprintf( stderr
, ",flags=%x,mask=%x", ace
->flags
, ace
->mask
);
1136 if (sid
) dump_inline_sid( ",sid=", sid
, sid_size
);
1137 fputc( '}', stderr
);
1140 fputc( '}', stderr
);
1143 static void dump_varargs_acl( const char *prefix
, data_size_t size
)
1145 const struct acl
*acl
= cur_data
;
1146 dump_inline_acl( prefix
, acl
, size
);
1147 remove_data( size
);
1150 static void dump_inline_security_descriptor( const char *prefix
, const struct security_descriptor
*sd
, data_size_t size
)
1152 fprintf( stderr
,"%s{", prefix
);
1153 if (size
>= sizeof(struct security_descriptor
))
1155 size_t offset
= sizeof(struct security_descriptor
);
1156 fprintf( stderr
, "control=%08x", sd
->control
);
1157 if ((sd
->owner_len
> offsetof(struct sid
, sub_auth
[255])) || (offset
+ sd
->owner_len
> size
))
1160 dump_inline_sid( ",owner=", (const struct sid
*)((const char *)sd
+ offset
), sd
->owner_len
);
1162 fprintf( stderr
, ",owner=<not present>" );
1163 offset
+= sd
->owner_len
;
1164 if ((sd
->group_len
> offsetof(struct sid
, sub_auth
[255])) || (offset
+ sd
->group_len
> size
))
1167 dump_inline_sid( ",group=", (const struct sid
*)((const char *)sd
+ offset
), sd
->group_len
);
1169 fprintf( stderr
, ",group=<not present>" );
1170 offset
+= sd
->group_len
;
1171 if ((sd
->sacl_len
>= MAX_ACL_LEN
) || (offset
+ sd
->sacl_len
> size
))
1173 dump_inline_acl( ",sacl=", (const struct acl
*)((const char *)sd
+ offset
), sd
->sacl_len
);
1174 offset
+= sd
->sacl_len
;
1175 if ((sd
->dacl_len
>= MAX_ACL_LEN
) || (offset
+ sd
->dacl_len
> size
))
1177 dump_inline_acl( ",dacl=", (const struct acl
*)((const char *)sd
+ offset
), sd
->dacl_len
);
1178 offset
+= sd
->dacl_len
;
1180 fputc( '}', stderr
);
1183 static void dump_varargs_security_descriptor( const char *prefix
, data_size_t size
)
1185 const struct security_descriptor
*sd
= cur_data
;
1186 dump_inline_security_descriptor( prefix
, sd
, size
);
1187 remove_data( size
);
1190 static void dump_varargs_process_info( const char *prefix
, data_size_t size
)
1192 data_size_t pos
= 0;
1195 fprintf( stderr
,"%s{", prefix
);
1197 while (size
- pos
>= sizeof(struct process_info
))
1199 const struct process_info
*process
;
1200 pos
= (pos
+ 7) & ~7;
1201 process
= (const struct process_info
*)((const char *)cur_data
+ pos
);
1202 if (size
- pos
< sizeof(*process
)) break;
1203 if (pos
) fputc( ',', stderr
);
1204 dump_timeout( "{start_time=", &process
->start_time
);
1205 fprintf( stderr
, ",thread_count=%u,priority=%d,pid=%04x,parent_pid=%04x,session_id=%08x,handle_count=%u,unix_pid=%d,",
1206 process
->thread_count
, process
->priority
, process
->pid
,
1207 process
->parent_pid
, process
->session_id
, process
->handle_count
, process
->unix_pid
);
1208 pos
+= sizeof(*process
);
1210 pos
= dump_inline_unicode_string( "name=L\"", pos
, process
->name_len
, size
);
1212 pos
= (pos
+ 7) & ~7;
1213 fprintf( stderr
, "\",threads={" );
1214 for (i
= 0; i
< process
->thread_count
; i
++)
1216 const struct thread_info
*thread
= (const struct thread_info
*)((const char *)cur_data
+ pos
);
1217 if (size
- pos
< sizeof(*thread
)) break;
1218 if (i
) fputc( ',', stderr
);
1219 dump_timeout( "{start_time=", &thread
->start_time
);
1220 fprintf( stderr
, ",tid=%04x,base_priority=%d,current_priority=%d,unix_tid=%d}",
1221 thread
->tid
, thread
->base_priority
, thread
->current_priority
, thread
->unix_tid
);
1222 pos
+= sizeof(*thread
);
1224 fprintf( stderr
, "}}" );
1226 fputc( '}', stderr
);
1227 remove_data( size
);
1230 static void dump_varargs_object_attributes( const char *prefix
, data_size_t size
)
1232 const struct object_attributes
*objattr
= cur_data
;
1234 fprintf( stderr
,"%s{", prefix
);
1239 if (size
< sizeof(*objattr
) ||
1240 (size
- sizeof(*objattr
) < objattr
->sd_len
) ||
1241 (size
- sizeof(*objattr
) - objattr
->sd_len
< objattr
->name_len
))
1243 fprintf( stderr
, "***invalid***}" );
1244 remove_data( size
);
1248 fprintf( stderr
, "rootdir=%04x,attributes=%08x", objattr
->rootdir
, objattr
->attributes
);
1249 dump_inline_security_descriptor( ",sd=", (const struct security_descriptor
*)(objattr
+ 1), objattr
->sd_len
);
1250 str
= (const WCHAR
*)objattr
+ (sizeof(*objattr
) + objattr
->sd_len
) / sizeof(WCHAR
);
1251 fprintf( stderr
, ",name=L\"" );
1252 dump_strW( str
, objattr
->name_len
, stderr
, "\"\"" );
1253 fputc( '\"', stderr
);
1254 remove_data( (sizeof(*objattr
) + (objattr
->sd_len
& ~1) + (objattr
->name_len
& ~1) + 3) & ~3 );
1256 fputc( '}', stderr
);
1259 static void dump_varargs_object_type_info( const char *prefix
, data_size_t size
)
1261 const struct object_type_info
*info
= cur_data
;
1263 fprintf( stderr
,"%s{", prefix
);
1266 if (size
< sizeof(*info
) || (size
- sizeof(*info
) < info
->name_len
))
1268 fprintf( stderr
, "***invalid***}" );
1269 remove_data( size
);
1273 fprintf( stderr
, "index=%u,obj_count=%u,handle_count=%u,obj_max=%u,handle_max=%u,valid=%08x",
1274 info
->index
,info
->obj_count
, info
->handle_count
, info
->obj_max
, info
->handle_max
,
1275 info
->valid_access
);
1276 dump_generic_map( ",access=", &info
->mapping
);
1277 fprintf( stderr
, ",name=L\"" );
1278 dump_strW( (const WCHAR
*)(info
+ 1), info
->name_len
, stderr
, "\"\"" );
1279 fputc( '\"', stderr
);
1280 remove_data( min( size
, sizeof(*info
) + ((info
->name_len
+ 2) & ~3 )));
1282 fputc( '}', stderr
);
1285 static void dump_varargs_object_types_info( const char *prefix
, data_size_t size
)
1287 fprintf( stderr
,"%s{", prefix
);
1288 while (cur_size
) dump_varargs_object_type_info( ",", cur_size
);
1289 fputc( '}', stderr
);
1292 static void dump_varargs_filesystem_event( const char *prefix
, data_size_t size
)
1294 static const char * const actions
[] = {
1306 fprintf( stderr
,"%s{", prefix
);
1309 const struct filesystem_event
*event
= cur_data
;
1310 data_size_t len
= (offsetof( struct filesystem_event
, name
[event
->len
] ) + sizeof(int)-1)
1311 / sizeof(int) * sizeof(int);
1312 if (size
< len
) break;
1313 if (event
->action
< ARRAY_SIZE( actions
) && actions
[event
->action
])
1314 fprintf( stderr
, "{action=%s", actions
[event
->action
] );
1316 fprintf( stderr
, "{action=%u", event
->action
);
1317 fprintf( stderr
, ",name=\"%.*s\"}", event
->len
, event
->name
);
1320 if (size
)fputc( ',', stderr
);
1322 fputc( '}', stderr
);
1325 static void dump_varargs_pe_image_info( const char *prefix
, data_size_t size
)
1327 pe_image_info_t info
;
1331 fprintf( stderr
, "%s{}", prefix
);
1334 memset( &info
, 0, sizeof(info
) );
1335 memcpy( &info
, cur_data
, min( size
, sizeof(info
) ));
1337 fprintf( stderr
, "%s{", prefix
);
1338 dump_uint64( "base=", &info
.base
);
1339 dump_uint64( ",stack_size=", &info
.stack_size
);
1340 dump_uint64( ",stack_commit=", &info
.stack_commit
);
1341 fprintf( stderr
, ",entry_point=%08x,map_size=%08x,zerobits=%08x,subsystem=%08x,subsystem_minor=%04x,subsystem_major=%04x"
1342 ",osversion_major=%04x,osversion_minor=%04x,image_charact=%04x,dll_charact=%04x,machine=%04x"
1343 ",contains_code=%u,image_flags=%02x"
1344 ",loader_flags=%08x,header_size=%08x,file_size=%08x,checksum=%08x}",
1345 info
.entry_point
, info
.map_size
, info
.zerobits
, info
.subsystem
, info
.subsystem_minor
,
1346 info
.subsystem_major
, info
.osversion_major
, info
.osversion_minor
, info
.image_charact
,
1347 info
.dll_charact
, info
.machine
, info
.contains_code
, info
.image_flags
, info
.loader_flags
,
1348 info
.header_size
, info
.file_size
, info
.checksum
);
1349 remove_data( min( size
, sizeof(info
) ));
1352 static void dump_varargs_rawinput_devices(const char *prefix
, data_size_t size
)
1354 const struct rawinput_device
*device
;
1356 fprintf( stderr
, "%s{", prefix
);
1357 while (size
>= sizeof(*device
))
1360 fprintf( stderr
, "{usage_page=%04x,usage=%04x,flags=%08x,target=%08x}",
1361 device
->usage_page
, device
->usage
, device
->flags
, device
->target
);
1362 size
-= sizeof(*device
);
1363 remove_data( sizeof(*device
) );
1364 if (size
) fputc( ',', stderr
);
1366 fputc( '}', stderr
);
1369 static void dump_varargs_handle_infos( const char *prefix
, data_size_t size
)
1371 const struct handle_info
*handle
;
1373 fprintf( stderr
, "%s{", prefix
);
1374 while (size
>= sizeof(*handle
))
1377 fprintf( stderr
, "{owner=%04x,handle=%04x,access=%08x,attributes=%08x,type=%u}",
1378 handle
->owner
, handle
->handle
, handle
->access
, handle
->attributes
, handle
->type
);
1379 size
-= sizeof(*handle
);
1380 remove_data( sizeof(*handle
) );
1381 if (size
) fputc( ',', stderr
);
1383 fputc( '}', stderr
);
1386 typedef void (*dump_func
)( const void *req
);
1388 /* Everything below this line is generated automatically by tools/make_requests */
1389 /* ### make_requests begin ### */
1391 static void dump_new_process_request( const struct new_process_request
*req
)
1393 fprintf( stderr
, " token=%04x", req
->token
);
1394 fprintf( stderr
, ", debug=%04x", req
->debug
);
1395 fprintf( stderr
, ", parent_process=%04x", req
->parent_process
);
1396 fprintf( stderr
, ", flags=%08x", req
->flags
);
1397 fprintf( stderr
, ", socket_fd=%d", req
->socket_fd
);
1398 fprintf( stderr
, ", access=%08x", req
->access
);
1399 fprintf( stderr
, ", machine=%04x", req
->machine
);
1400 fprintf( stderr
, ", info_size=%u", req
->info_size
);
1401 fprintf( stderr
, ", handles_size=%u", req
->handles_size
);
1402 fprintf( stderr
, ", jobs_size=%u", req
->jobs_size
);
1403 dump_varargs_object_attributes( ", objattr=", cur_size
);
1404 dump_varargs_uints( ", handles=", min(cur_size
,req
->handles_size
) );
1405 dump_varargs_uints( ", jobs=", min(cur_size
,req
->jobs_size
) );
1406 dump_varargs_startup_info( ", info=", min(cur_size
,req
->info_size
) );
1407 dump_varargs_unicode_str( ", env=", cur_size
);
1410 static void dump_new_process_reply( const struct new_process_reply
*req
)
1412 fprintf( stderr
, " info=%04x", req
->info
);
1413 fprintf( stderr
, ", pid=%04x", req
->pid
);
1414 fprintf( stderr
, ", handle=%04x", req
->handle
);
1417 static void dump_get_new_process_info_request( const struct get_new_process_info_request
*req
)
1419 fprintf( stderr
, " info=%04x", req
->info
);
1422 static void dump_get_new_process_info_reply( const struct get_new_process_info_reply
*req
)
1424 fprintf( stderr
, " success=%d", req
->success
);
1425 fprintf( stderr
, ", exit_code=%d", req
->exit_code
);
1428 static void dump_new_thread_request( const struct new_thread_request
*req
)
1430 fprintf( stderr
, " process=%04x", req
->process
);
1431 fprintf( stderr
, ", access=%08x", req
->access
);
1432 fprintf( stderr
, ", flags=%08x", req
->flags
);
1433 fprintf( stderr
, ", request_fd=%d", req
->request_fd
);
1434 dump_varargs_object_attributes( ", objattr=", cur_size
);
1437 static void dump_new_thread_reply( const struct new_thread_reply
*req
)
1439 fprintf( stderr
, " tid=%04x", req
->tid
);
1440 fprintf( stderr
, ", handle=%04x", req
->handle
);
1443 static void dump_get_startup_info_request( const struct get_startup_info_request
*req
)
1447 static void dump_get_startup_info_reply( const struct get_startup_info_reply
*req
)
1449 fprintf( stderr
, " info_size=%u", req
->info_size
);
1450 fprintf( stderr
, ", machine=%04x", req
->machine
);
1451 dump_varargs_startup_info( ", info=", min(cur_size
,req
->info_size
) );
1452 dump_varargs_unicode_str( ", env=", cur_size
);
1455 static void dump_init_process_done_request( const struct init_process_done_request
*req
)
1457 dump_uint64( " teb=", &req
->teb
);
1458 dump_uint64( ", peb=", &req
->peb
);
1459 dump_uint64( ", ldt_copy=", &req
->ldt_copy
);
1462 static void dump_init_process_done_reply( const struct init_process_done_reply
*req
)
1464 dump_uint64( " entry=", &req
->entry
);
1465 fprintf( stderr
, ", suspend=%d", req
->suspend
);
1468 static void dump_init_first_thread_request( const struct init_first_thread_request
*req
)
1470 fprintf( stderr
, " unix_pid=%d", req
->unix_pid
);
1471 fprintf( stderr
, ", unix_tid=%d", req
->unix_tid
);
1472 fprintf( stderr
, ", debug_level=%d", req
->debug_level
);
1473 fprintf( stderr
, ", reply_fd=%d", req
->reply_fd
);
1474 fprintf( stderr
, ", wait_fd=%d", req
->wait_fd
);
1477 static void dump_init_first_thread_reply( const struct init_first_thread_reply
*req
)
1479 fprintf( stderr
, " pid=%04x", req
->pid
);
1480 fprintf( stderr
, ", tid=%04x", req
->tid
);
1481 dump_timeout( ", server_start=", &req
->server_start
);
1482 fprintf( stderr
, ", session_id=%08x", req
->session_id
);
1483 fprintf( stderr
, ", info_size=%u", req
->info_size
);
1484 dump_varargs_ushorts( ", machines=", cur_size
);
1487 static void dump_init_thread_request( const struct init_thread_request
*req
)
1489 fprintf( stderr
, " unix_tid=%d", req
->unix_tid
);
1490 fprintf( stderr
, ", reply_fd=%d", req
->reply_fd
);
1491 fprintf( stderr
, ", wait_fd=%d", req
->wait_fd
);
1492 dump_uint64( ", teb=", &req
->teb
);
1493 dump_uint64( ", entry=", &req
->entry
);
1496 static void dump_init_thread_reply( const struct init_thread_reply
*req
)
1498 fprintf( stderr
, " suspend=%d", req
->suspend
);
1501 static void dump_terminate_process_request( const struct terminate_process_request
*req
)
1503 fprintf( stderr
, " handle=%04x", req
->handle
);
1504 fprintf( stderr
, ", exit_code=%d", req
->exit_code
);
1507 static void dump_terminate_process_reply( const struct terminate_process_reply
*req
)
1509 fprintf( stderr
, " self=%d", req
->self
);
1512 static void dump_terminate_thread_request( const struct terminate_thread_request
*req
)
1514 fprintf( stderr
, " handle=%04x", req
->handle
);
1515 fprintf( stderr
, ", exit_code=%d", req
->exit_code
);
1518 static void dump_terminate_thread_reply( const struct terminate_thread_reply
*req
)
1520 fprintf( stderr
, " self=%d", req
->self
);
1523 static void dump_get_process_info_request( const struct get_process_info_request
*req
)
1525 fprintf( stderr
, " handle=%04x", req
->handle
);
1528 static void dump_get_process_info_reply( const struct get_process_info_reply
*req
)
1530 fprintf( stderr
, " pid=%04x", req
->pid
);
1531 fprintf( stderr
, ", ppid=%04x", req
->ppid
);
1532 dump_uint64( ", affinity=", &req
->affinity
);
1533 dump_uint64( ", peb=", &req
->peb
);
1534 dump_timeout( ", start_time=", &req
->start_time
);
1535 dump_timeout( ", end_time=", &req
->end_time
);
1536 fprintf( stderr
, ", session_id=%08x", req
->session_id
);
1537 fprintf( stderr
, ", exit_code=%d", req
->exit_code
);
1538 fprintf( stderr
, ", priority=%d", req
->priority
);
1539 fprintf( stderr
, ", machine=%04x", req
->machine
);
1540 dump_varargs_pe_image_info( ", image=", cur_size
);
1543 static void dump_get_process_debug_info_request( const struct get_process_debug_info_request
*req
)
1545 fprintf( stderr
, " handle=%04x", req
->handle
);
1548 static void dump_get_process_debug_info_reply( const struct get_process_debug_info_reply
*req
)
1550 fprintf( stderr
, " debug=%04x", req
->debug
);
1551 fprintf( stderr
, ", debug_children=%d", req
->debug_children
);
1552 dump_varargs_pe_image_info( ", image=", cur_size
);
1555 static void dump_get_process_image_name_request( const struct get_process_image_name_request
*req
)
1557 fprintf( stderr
, " handle=%04x", req
->handle
);
1558 fprintf( stderr
, ", win32=%d", req
->win32
);
1561 static void dump_get_process_image_name_reply( const struct get_process_image_name_reply
*req
)
1563 fprintf( stderr
, " len=%u", req
->len
);
1564 dump_varargs_unicode_str( ", name=", cur_size
);
1567 static void dump_get_process_vm_counters_request( const struct get_process_vm_counters_request
*req
)
1569 fprintf( stderr
, " handle=%04x", req
->handle
);
1572 static void dump_get_process_vm_counters_reply( const struct get_process_vm_counters_reply
*req
)
1574 dump_uint64( " peak_virtual_size=", &req
->peak_virtual_size
);
1575 dump_uint64( ", virtual_size=", &req
->virtual_size
);
1576 dump_uint64( ", peak_working_set_size=", &req
->peak_working_set_size
);
1577 dump_uint64( ", working_set_size=", &req
->working_set_size
);
1578 dump_uint64( ", pagefile_usage=", &req
->pagefile_usage
);
1579 dump_uint64( ", peak_pagefile_usage=", &req
->peak_pagefile_usage
);
1582 static void dump_set_process_info_request( const struct set_process_info_request
*req
)
1584 fprintf( stderr
, " handle=%04x", req
->handle
);
1585 fprintf( stderr
, ", mask=%d", req
->mask
);
1586 fprintf( stderr
, ", priority=%d", req
->priority
);
1587 dump_uint64( ", affinity=", &req
->affinity
);
1590 static void dump_get_thread_info_request( const struct get_thread_info_request
*req
)
1592 fprintf( stderr
, " handle=%04x", req
->handle
);
1593 fprintf( stderr
, ", access=%08x", req
->access
);
1596 static void dump_get_thread_info_reply( const struct get_thread_info_reply
*req
)
1598 fprintf( stderr
, " pid=%04x", req
->pid
);
1599 fprintf( stderr
, ", tid=%04x", req
->tid
);
1600 dump_uint64( ", teb=", &req
->teb
);
1601 dump_uint64( ", entry_point=", &req
->entry_point
);
1602 dump_uint64( ", affinity=", &req
->affinity
);
1603 fprintf( stderr
, ", exit_code=%d", req
->exit_code
);
1604 fprintf( stderr
, ", priority=%d", req
->priority
);
1605 fprintf( stderr
, ", last=%d", req
->last
);
1606 fprintf( stderr
, ", suspend_count=%d", req
->suspend_count
);
1607 fprintf( stderr
, ", dbg_hidden=%d", req
->dbg_hidden
);
1608 fprintf( stderr
, ", desc_len=%u", req
->desc_len
);
1609 dump_varargs_unicode_str( ", desc=", cur_size
);
1612 static void dump_get_thread_times_request( const struct get_thread_times_request
*req
)
1614 fprintf( stderr
, " handle=%04x", req
->handle
);
1617 static void dump_get_thread_times_reply( const struct get_thread_times_reply
*req
)
1619 dump_timeout( " creation_time=", &req
->creation_time
);
1620 dump_timeout( ", exit_time=", &req
->exit_time
);
1621 fprintf( stderr
, ", unix_pid=%d", req
->unix_pid
);
1622 fprintf( stderr
, ", unix_tid=%d", req
->unix_tid
);
1625 static void dump_set_thread_info_request( const struct set_thread_info_request
*req
)
1627 fprintf( stderr
, " handle=%04x", req
->handle
);
1628 fprintf( stderr
, ", mask=%d", req
->mask
);
1629 fprintf( stderr
, ", priority=%d", req
->priority
);
1630 dump_uint64( ", affinity=", &req
->affinity
);
1631 dump_uint64( ", entry_point=", &req
->entry_point
);
1632 fprintf( stderr
, ", token=%04x", req
->token
);
1633 dump_varargs_unicode_str( ", desc=", cur_size
);
1636 static void dump_suspend_thread_request( const struct suspend_thread_request
*req
)
1638 fprintf( stderr
, " handle=%04x", req
->handle
);
1641 static void dump_suspend_thread_reply( const struct suspend_thread_reply
*req
)
1643 fprintf( stderr
, " count=%d", req
->count
);
1646 static void dump_resume_thread_request( const struct resume_thread_request
*req
)
1648 fprintf( stderr
, " handle=%04x", req
->handle
);
1651 static void dump_resume_thread_reply( const struct resume_thread_reply
*req
)
1653 fprintf( stderr
, " count=%d", req
->count
);
1656 static void dump_queue_apc_request( const struct queue_apc_request
*req
)
1658 fprintf( stderr
, " handle=%04x", req
->handle
);
1659 dump_varargs_apc_call( ", call=", cur_size
);
1662 static void dump_queue_apc_reply( const struct queue_apc_reply
*req
)
1664 fprintf( stderr
, " handle=%04x", req
->handle
);
1665 fprintf( stderr
, ", self=%d", req
->self
);
1668 static void dump_get_apc_result_request( const struct get_apc_result_request
*req
)
1670 fprintf( stderr
, " handle=%04x", req
->handle
);
1673 static void dump_get_apc_result_reply( const struct get_apc_result_reply
*req
)
1675 dump_apc_result( " result=", &req
->result
);
1678 static void dump_close_handle_request( const struct close_handle_request
*req
)
1680 fprintf( stderr
, " handle=%04x", req
->handle
);
1683 static void dump_set_handle_info_request( const struct set_handle_info_request
*req
)
1685 fprintf( stderr
, " handle=%04x", req
->handle
);
1686 fprintf( stderr
, ", flags=%d", req
->flags
);
1687 fprintf( stderr
, ", mask=%d", req
->mask
);
1690 static void dump_set_handle_info_reply( const struct set_handle_info_reply
*req
)
1692 fprintf( stderr
, " old_flags=%d", req
->old_flags
);
1695 static void dump_dup_handle_request( const struct dup_handle_request
*req
)
1697 fprintf( stderr
, " src_process=%04x", req
->src_process
);
1698 fprintf( stderr
, ", src_handle=%04x", req
->src_handle
);
1699 fprintf( stderr
, ", dst_process=%04x", req
->dst_process
);
1700 fprintf( stderr
, ", access=%08x", req
->access
);
1701 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1702 fprintf( stderr
, ", options=%08x", req
->options
);
1705 static void dump_dup_handle_reply( const struct dup_handle_reply
*req
)
1707 fprintf( stderr
, " handle=%04x", req
->handle
);
1710 static void dump_compare_objects_request( const struct compare_objects_request
*req
)
1712 fprintf( stderr
, " first=%04x", req
->first
);
1713 fprintf( stderr
, ", second=%04x", req
->second
);
1716 static void dump_make_temporary_request( const struct make_temporary_request
*req
)
1718 fprintf( stderr
, " handle=%04x", req
->handle
);
1721 static void dump_open_process_request( const struct open_process_request
*req
)
1723 fprintf( stderr
, " pid=%04x", req
->pid
);
1724 fprintf( stderr
, ", access=%08x", req
->access
);
1725 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1728 static void dump_open_process_reply( const struct open_process_reply
*req
)
1730 fprintf( stderr
, " handle=%04x", req
->handle
);
1733 static void dump_open_thread_request( const struct open_thread_request
*req
)
1735 fprintf( stderr
, " tid=%04x", req
->tid
);
1736 fprintf( stderr
, ", access=%08x", req
->access
);
1737 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1740 static void dump_open_thread_reply( const struct open_thread_reply
*req
)
1742 fprintf( stderr
, " handle=%04x", req
->handle
);
1745 static void dump_select_request( const struct select_request
*req
)
1747 fprintf( stderr
, " flags=%d", req
->flags
);
1748 dump_uint64( ", cookie=", &req
->cookie
);
1749 dump_abstime( ", timeout=", &req
->timeout
);
1750 fprintf( stderr
, ", size=%u", req
->size
);
1751 fprintf( stderr
, ", prev_apc=%04x", req
->prev_apc
);
1752 dump_varargs_apc_result( ", result=", cur_size
);
1753 dump_varargs_select_op( ", data=", min(cur_size
,req
->size
) );
1754 dump_varargs_contexts( ", contexts=", cur_size
);
1757 static void dump_select_reply( const struct select_reply
*req
)
1759 fprintf( stderr
, " apc_handle=%04x", req
->apc_handle
);
1760 fprintf( stderr
, ", signaled=%d", req
->signaled
);
1761 dump_varargs_apc_call( ", call=", cur_size
);
1762 dump_varargs_contexts( ", contexts=", cur_size
);
1765 static void dump_create_event_request( const struct create_event_request
*req
)
1767 fprintf( stderr
, " access=%08x", req
->access
);
1768 fprintf( stderr
, ", manual_reset=%d", req
->manual_reset
);
1769 fprintf( stderr
, ", initial_state=%d", req
->initial_state
);
1770 dump_varargs_object_attributes( ", objattr=", cur_size
);
1773 static void dump_create_event_reply( const struct create_event_reply
*req
)
1775 fprintf( stderr
, " handle=%04x", req
->handle
);
1778 static void dump_event_op_request( const struct event_op_request
*req
)
1780 fprintf( stderr
, " handle=%04x", req
->handle
);
1781 fprintf( stderr
, ", op=%d", req
->op
);
1784 static void dump_event_op_reply( const struct event_op_reply
*req
)
1786 fprintf( stderr
, " state=%d", req
->state
);
1789 static void dump_query_event_request( const struct query_event_request
*req
)
1791 fprintf( stderr
, " handle=%04x", req
->handle
);
1794 static void dump_query_event_reply( const struct query_event_reply
*req
)
1796 fprintf( stderr
, " manual_reset=%d", req
->manual_reset
);
1797 fprintf( stderr
, ", state=%d", req
->state
);
1800 static void dump_open_event_request( const struct open_event_request
*req
)
1802 fprintf( stderr
, " access=%08x", req
->access
);
1803 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1804 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
1805 dump_varargs_unicode_str( ", name=", cur_size
);
1808 static void dump_open_event_reply( const struct open_event_reply
*req
)
1810 fprintf( stderr
, " handle=%04x", req
->handle
);
1813 static void dump_create_keyed_event_request( const struct create_keyed_event_request
*req
)
1815 fprintf( stderr
, " access=%08x", req
->access
);
1816 dump_varargs_object_attributes( ", objattr=", cur_size
);
1819 static void dump_create_keyed_event_reply( const struct create_keyed_event_reply
*req
)
1821 fprintf( stderr
, " handle=%04x", req
->handle
);
1824 static void dump_open_keyed_event_request( const struct open_keyed_event_request
*req
)
1826 fprintf( stderr
, " access=%08x", req
->access
);
1827 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1828 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
1829 dump_varargs_unicode_str( ", name=", cur_size
);
1832 static void dump_open_keyed_event_reply( const struct open_keyed_event_reply
*req
)
1834 fprintf( stderr
, " handle=%04x", req
->handle
);
1837 static void dump_create_mutex_request( const struct create_mutex_request
*req
)
1839 fprintf( stderr
, " access=%08x", req
->access
);
1840 fprintf( stderr
, ", owned=%d", req
->owned
);
1841 dump_varargs_object_attributes( ", objattr=", cur_size
);
1844 static void dump_create_mutex_reply( const struct create_mutex_reply
*req
)
1846 fprintf( stderr
, " handle=%04x", req
->handle
);
1849 static void dump_release_mutex_request( const struct release_mutex_request
*req
)
1851 fprintf( stderr
, " handle=%04x", req
->handle
);
1854 static void dump_release_mutex_reply( const struct release_mutex_reply
*req
)
1856 fprintf( stderr
, " prev_count=%08x", req
->prev_count
);
1859 static void dump_open_mutex_request( const struct open_mutex_request
*req
)
1861 fprintf( stderr
, " access=%08x", req
->access
);
1862 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1863 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
1864 dump_varargs_unicode_str( ", name=", cur_size
);
1867 static void dump_open_mutex_reply( const struct open_mutex_reply
*req
)
1869 fprintf( stderr
, " handle=%04x", req
->handle
);
1872 static void dump_query_mutex_request( const struct query_mutex_request
*req
)
1874 fprintf( stderr
, " handle=%04x", req
->handle
);
1877 static void dump_query_mutex_reply( const struct query_mutex_reply
*req
)
1879 fprintf( stderr
, " count=%08x", req
->count
);
1880 fprintf( stderr
, ", owned=%d", req
->owned
);
1881 fprintf( stderr
, ", abandoned=%d", req
->abandoned
);
1884 static void dump_create_semaphore_request( const struct create_semaphore_request
*req
)
1886 fprintf( stderr
, " access=%08x", req
->access
);
1887 fprintf( stderr
, ", initial=%08x", req
->initial
);
1888 fprintf( stderr
, ", max=%08x", req
->max
);
1889 dump_varargs_object_attributes( ", objattr=", cur_size
);
1892 static void dump_create_semaphore_reply( const struct create_semaphore_reply
*req
)
1894 fprintf( stderr
, " handle=%04x", req
->handle
);
1897 static void dump_release_semaphore_request( const struct release_semaphore_request
*req
)
1899 fprintf( stderr
, " handle=%04x", req
->handle
);
1900 fprintf( stderr
, ", count=%08x", req
->count
);
1903 static void dump_release_semaphore_reply( const struct release_semaphore_reply
*req
)
1905 fprintf( stderr
, " prev_count=%08x", req
->prev_count
);
1908 static void dump_query_semaphore_request( const struct query_semaphore_request
*req
)
1910 fprintf( stderr
, " handle=%04x", req
->handle
);
1913 static void dump_query_semaphore_reply( const struct query_semaphore_reply
*req
)
1915 fprintf( stderr
, " current=%08x", req
->current
);
1916 fprintf( stderr
, ", max=%08x", req
->max
);
1919 static void dump_open_semaphore_request( const struct open_semaphore_request
*req
)
1921 fprintf( stderr
, " access=%08x", req
->access
);
1922 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1923 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
1924 dump_varargs_unicode_str( ", name=", cur_size
);
1927 static void dump_open_semaphore_reply( const struct open_semaphore_reply
*req
)
1929 fprintf( stderr
, " handle=%04x", req
->handle
);
1932 static void dump_create_file_request( const struct create_file_request
*req
)
1934 fprintf( stderr
, " access=%08x", req
->access
);
1935 fprintf( stderr
, ", sharing=%08x", req
->sharing
);
1936 fprintf( stderr
, ", create=%d", req
->create
);
1937 fprintf( stderr
, ", options=%08x", req
->options
);
1938 fprintf( stderr
, ", attrs=%08x", req
->attrs
);
1939 dump_varargs_object_attributes( ", objattr=", cur_size
);
1940 dump_varargs_string( ", filename=", cur_size
);
1943 static void dump_create_file_reply( const struct create_file_reply
*req
)
1945 fprintf( stderr
, " handle=%04x", req
->handle
);
1948 static void dump_open_file_object_request( const struct open_file_object_request
*req
)
1950 fprintf( stderr
, " access=%08x", req
->access
);
1951 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1952 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
1953 fprintf( stderr
, ", sharing=%08x", req
->sharing
);
1954 fprintf( stderr
, ", options=%08x", req
->options
);
1955 dump_varargs_unicode_str( ", filename=", cur_size
);
1958 static void dump_open_file_object_reply( const struct open_file_object_reply
*req
)
1960 fprintf( stderr
, " handle=%04x", req
->handle
);
1963 static void dump_alloc_file_handle_request( const struct alloc_file_handle_request
*req
)
1965 fprintf( stderr
, " access=%08x", req
->access
);
1966 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1967 fprintf( stderr
, ", fd=%d", req
->fd
);
1970 static void dump_alloc_file_handle_reply( const struct alloc_file_handle_reply
*req
)
1972 fprintf( stderr
, " handle=%04x", req
->handle
);
1975 static void dump_get_handle_unix_name_request( const struct get_handle_unix_name_request
*req
)
1977 fprintf( stderr
, " handle=%04x", req
->handle
);
1980 static void dump_get_handle_unix_name_reply( const struct get_handle_unix_name_reply
*req
)
1982 fprintf( stderr
, " name_len=%u", req
->name_len
);
1983 dump_varargs_string( ", name=", cur_size
);
1986 static void dump_get_handle_fd_request( const struct get_handle_fd_request
*req
)
1988 fprintf( stderr
, " handle=%04x", req
->handle
);
1991 static void dump_get_handle_fd_reply( const struct get_handle_fd_reply
*req
)
1993 fprintf( stderr
, " type=%d", req
->type
);
1994 fprintf( stderr
, ", cacheable=%d", req
->cacheable
);
1995 fprintf( stderr
, ", access=%08x", req
->access
);
1996 fprintf( stderr
, ", options=%08x", req
->options
);
1999 static void dump_get_directory_cache_entry_request( const struct get_directory_cache_entry_request
*req
)
2001 fprintf( stderr
, " handle=%04x", req
->handle
);
2004 static void dump_get_directory_cache_entry_reply( const struct get_directory_cache_entry_reply
*req
)
2006 fprintf( stderr
, " entry=%d", req
->entry
);
2007 dump_varargs_ints( ", free=", cur_size
);
2010 static void dump_flush_request( const struct flush_request
*req
)
2012 dump_async_data( " async=", &req
->async
);
2015 static void dump_flush_reply( const struct flush_reply
*req
)
2017 fprintf( stderr
, " event=%04x", req
->event
);
2020 static void dump_get_file_info_request( const struct get_file_info_request
*req
)
2022 fprintf( stderr
, " handle=%04x", req
->handle
);
2023 fprintf( stderr
, ", info_class=%08x", req
->info_class
);
2026 static void dump_get_file_info_reply( const struct get_file_info_reply
*req
)
2028 dump_varargs_bytes( " data=", cur_size
);
2031 static void dump_get_volume_info_request( const struct get_volume_info_request
*req
)
2033 fprintf( stderr
, " handle=%04x", req
->handle
);
2034 dump_async_data( ", async=", &req
->async
);
2035 fprintf( stderr
, ", info_class=%08x", req
->info_class
);
2038 static void dump_get_volume_info_reply( const struct get_volume_info_reply
*req
)
2040 fprintf( stderr
, " wait=%04x", req
->wait
);
2041 dump_varargs_bytes( ", data=", cur_size
);
2044 static void dump_lock_file_request( const struct lock_file_request
*req
)
2046 fprintf( stderr
, " handle=%04x", req
->handle
);
2047 dump_uint64( ", offset=", &req
->offset
);
2048 dump_uint64( ", count=", &req
->count
);
2049 fprintf( stderr
, ", shared=%d", req
->shared
);
2050 fprintf( stderr
, ", wait=%d", req
->wait
);
2053 static void dump_lock_file_reply( const struct lock_file_reply
*req
)
2055 fprintf( stderr
, " handle=%04x", req
->handle
);
2056 fprintf( stderr
, ", overlapped=%d", req
->overlapped
);
2059 static void dump_unlock_file_request( const struct unlock_file_request
*req
)
2061 fprintf( stderr
, " handle=%04x", req
->handle
);
2062 dump_uint64( ", offset=", &req
->offset
);
2063 dump_uint64( ", count=", &req
->count
);
2066 static void dump_recv_socket_request( const struct recv_socket_request
*req
)
2068 fprintf( stderr
, " oob=%d", req
->oob
);
2069 dump_async_data( ", async=", &req
->async
);
2070 fprintf( stderr
, ", force_async=%d", req
->force_async
);
2073 static void dump_recv_socket_reply( const struct recv_socket_reply
*req
)
2075 fprintf( stderr
, " wait=%04x", req
->wait
);
2076 fprintf( stderr
, ", options=%08x", req
->options
);
2077 fprintf( stderr
, ", nonblocking=%d", req
->nonblocking
);
2080 static void dump_send_socket_request( const struct send_socket_request
*req
)
2082 dump_async_data( " async=", &req
->async
);
2083 fprintf( stderr
, ", force_async=%d", req
->force_async
);
2086 static void dump_send_socket_reply( const struct send_socket_reply
*req
)
2088 fprintf( stderr
, " wait=%04x", req
->wait
);
2089 fprintf( stderr
, ", options=%08x", req
->options
);
2090 fprintf( stderr
, ", nonblocking=%d", req
->nonblocking
);
2093 static void dump_socket_get_events_request( const struct socket_get_events_request
*req
)
2095 fprintf( stderr
, " handle=%04x", req
->handle
);
2096 fprintf( stderr
, ", event=%04x", req
->event
);
2099 static void dump_socket_get_events_reply( const struct socket_get_events_reply
*req
)
2101 fprintf( stderr
, " flags=%08x", req
->flags
);
2102 dump_varargs_uints( ", status=", cur_size
);
2105 static void dump_socket_send_icmp_id_request( const struct socket_send_icmp_id_request
*req
)
2107 fprintf( stderr
, " handle=%04x", req
->handle
);
2108 fprintf( stderr
, ", icmp_id=%04x", req
->icmp_id
);
2109 fprintf( stderr
, ", icmp_seq=%04x", req
->icmp_seq
);
2112 static void dump_socket_get_icmp_id_request( const struct socket_get_icmp_id_request
*req
)
2114 fprintf( stderr
, " handle=%04x", req
->handle
);
2115 fprintf( stderr
, ", icmp_seq=%04x", req
->icmp_seq
);
2118 static void dump_socket_get_icmp_id_reply( const struct socket_get_icmp_id_reply
*req
)
2120 fprintf( stderr
, " icmp_id=%04x", req
->icmp_id
);
2123 static void dump_get_next_console_request_request( const struct get_next_console_request_request
*req
)
2125 fprintf( stderr
, " handle=%04x", req
->handle
);
2126 fprintf( stderr
, ", signal=%d", req
->signal
);
2127 fprintf( stderr
, ", read=%d", req
->read
);
2128 fprintf( stderr
, ", status=%08x", req
->status
);
2129 dump_varargs_bytes( ", out_data=", cur_size
);
2132 static void dump_get_next_console_request_reply( const struct get_next_console_request_reply
*req
)
2134 fprintf( stderr
, " code=%08x", req
->code
);
2135 fprintf( stderr
, ", output=%08x", req
->output
);
2136 fprintf( stderr
, ", out_size=%u", req
->out_size
);
2137 dump_varargs_bytes( ", in_data=", cur_size
);
2140 static void dump_read_directory_changes_request( const struct read_directory_changes_request
*req
)
2142 fprintf( stderr
, " filter=%08x", req
->filter
);
2143 fprintf( stderr
, ", subtree=%d", req
->subtree
);
2144 fprintf( stderr
, ", want_data=%d", req
->want_data
);
2145 dump_async_data( ", async=", &req
->async
);
2148 static void dump_read_change_request( const struct read_change_request
*req
)
2150 fprintf( stderr
, " handle=%04x", req
->handle
);
2153 static void dump_read_change_reply( const struct read_change_reply
*req
)
2155 dump_varargs_filesystem_event( " events=", cur_size
);
2158 static void dump_create_mapping_request( const struct create_mapping_request
*req
)
2160 fprintf( stderr
, " access=%08x", req
->access
);
2161 fprintf( stderr
, ", flags=%08x", req
->flags
);
2162 fprintf( stderr
, ", file_access=%08x", req
->file_access
);
2163 dump_uint64( ", size=", &req
->size
);
2164 fprintf( stderr
, ", file_handle=%04x", req
->file_handle
);
2165 dump_varargs_object_attributes( ", objattr=", cur_size
);
2168 static void dump_create_mapping_reply( const struct create_mapping_reply
*req
)
2170 fprintf( stderr
, " handle=%04x", req
->handle
);
2173 static void dump_open_mapping_request( const struct open_mapping_request
*req
)
2175 fprintf( stderr
, " access=%08x", req
->access
);
2176 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
2177 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
2178 dump_varargs_unicode_str( ", name=", cur_size
);
2181 static void dump_open_mapping_reply( const struct open_mapping_reply
*req
)
2183 fprintf( stderr
, " handle=%04x", req
->handle
);
2186 static void dump_get_mapping_info_request( const struct get_mapping_info_request
*req
)
2188 fprintf( stderr
, " handle=%04x", req
->handle
);
2189 fprintf( stderr
, ", access=%08x", req
->access
);
2192 static void dump_get_mapping_info_reply( const struct get_mapping_info_reply
*req
)
2194 dump_uint64( " size=", &req
->size
);
2195 fprintf( stderr
, ", flags=%08x", req
->flags
);
2196 fprintf( stderr
, ", shared_file=%04x", req
->shared_file
);
2197 fprintf( stderr
, ", total=%u", req
->total
);
2198 dump_varargs_pe_image_info( ", image=", cur_size
);
2199 dump_varargs_unicode_str( ", name=", cur_size
);
2202 static void dump_map_view_request( const struct map_view_request
*req
)
2204 fprintf( stderr
, " mapping=%04x", req
->mapping
);
2205 fprintf( stderr
, ", access=%08x", req
->access
);
2206 dump_uint64( ", base=", &req
->base
);
2207 dump_uint64( ", size=", &req
->size
);
2208 dump_uint64( ", start=", &req
->start
);
2211 static void dump_map_image_view_request( const struct map_image_view_request
*req
)
2213 fprintf( stderr
, " mapping=%04x", req
->mapping
);
2214 dump_uint64( ", base=", &req
->base
);
2215 dump_uint64( ", size=", &req
->size
);
2216 fprintf( stderr
, ", entry=%08x", req
->entry
);
2217 fprintf( stderr
, ", machine=%04x", req
->machine
);
2220 static void dump_map_builtin_view_request( const struct map_builtin_view_request
*req
)
2222 dump_varargs_pe_image_info( " image=", cur_size
);
2223 dump_varargs_unicode_str( ", name=", cur_size
);
2226 static void dump_get_image_view_info_request( const struct get_image_view_info_request
*req
)
2228 fprintf( stderr
, " process=%04x", req
->process
);
2229 dump_uint64( ", addr=", &req
->addr
);
2232 static void dump_get_image_view_info_reply( const struct get_image_view_info_reply
*req
)
2234 dump_uint64( " base=", &req
->base
);
2235 dump_uint64( ", size=", &req
->size
);
2238 static void dump_unmap_view_request( const struct unmap_view_request
*req
)
2240 dump_uint64( " base=", &req
->base
);
2243 static void dump_get_mapping_committed_range_request( const struct get_mapping_committed_range_request
*req
)
2245 dump_uint64( " base=", &req
->base
);
2246 dump_uint64( ", offset=", &req
->offset
);
2249 static void dump_get_mapping_committed_range_reply( const struct get_mapping_committed_range_reply
*req
)
2251 dump_uint64( " size=", &req
->size
);
2252 fprintf( stderr
, ", committed=%d", req
->committed
);
2255 static void dump_add_mapping_committed_range_request( const struct add_mapping_committed_range_request
*req
)
2257 dump_uint64( " base=", &req
->base
);
2258 dump_uint64( ", offset=", &req
->offset
);
2259 dump_uint64( ", size=", &req
->size
);
2262 static void dump_is_same_mapping_request( const struct is_same_mapping_request
*req
)
2264 dump_uint64( " base1=", &req
->base1
);
2265 dump_uint64( ", base2=", &req
->base2
);
2268 static void dump_get_mapping_filename_request( const struct get_mapping_filename_request
*req
)
2270 fprintf( stderr
, " process=%04x", req
->process
);
2271 dump_uint64( ", addr=", &req
->addr
);
2274 static void dump_get_mapping_filename_reply( const struct get_mapping_filename_reply
*req
)
2276 fprintf( stderr
, " len=%u", req
->len
);
2277 dump_varargs_unicode_str( ", filename=", cur_size
);
2280 static void dump_list_processes_request( const struct list_processes_request
*req
)
2284 static void dump_list_processes_reply( const struct list_processes_reply
*req
)
2286 fprintf( stderr
, " info_size=%u", req
->info_size
);
2287 fprintf( stderr
, ", process_count=%d", req
->process_count
);
2288 fprintf( stderr
, ", total_thread_count=%d", req
->total_thread_count
);
2289 fprintf( stderr
, ", total_name_len=%u", req
->total_name_len
);
2290 dump_varargs_process_info( ", data=", min(cur_size
,req
->info_size
) );
2293 static void dump_create_debug_obj_request( const struct create_debug_obj_request
*req
)
2295 fprintf( stderr
, " access=%08x", req
->access
);
2296 fprintf( stderr
, ", flags=%08x", req
->flags
);
2297 dump_varargs_object_attributes( ", objattr=", cur_size
);
2300 static void dump_create_debug_obj_reply( const struct create_debug_obj_reply
*req
)
2302 fprintf( stderr
, " handle=%04x", req
->handle
);
2305 static void dump_wait_debug_event_request( const struct wait_debug_event_request
*req
)
2307 fprintf( stderr
, " debug=%04x", req
->debug
);
2310 static void dump_wait_debug_event_reply( const struct wait_debug_event_reply
*req
)
2312 fprintf( stderr
, " pid=%04x", req
->pid
);
2313 fprintf( stderr
, ", tid=%04x", req
->tid
);
2314 dump_varargs_debug_event( ", event=", cur_size
);
2317 static void dump_queue_exception_event_request( const struct queue_exception_event_request
*req
)
2319 fprintf( stderr
, " first=%d", req
->first
);
2320 fprintf( stderr
, ", code=%08x", req
->code
);
2321 fprintf( stderr
, ", flags=%08x", req
->flags
);
2322 dump_uint64( ", record=", &req
->record
);
2323 dump_uint64( ", address=", &req
->address
);
2324 fprintf( stderr
, ", len=%u", req
->len
);
2325 dump_varargs_uints64( ", params=", min(cur_size
,req
->len
) );
2328 static void dump_queue_exception_event_reply( const struct queue_exception_event_reply
*req
)
2330 fprintf( stderr
, " handle=%04x", req
->handle
);
2333 static void dump_get_exception_status_request( const struct get_exception_status_request
*req
)
2335 fprintf( stderr
, " handle=%04x", req
->handle
);
2338 static void dump_continue_debug_event_request( const struct continue_debug_event_request
*req
)
2340 fprintf( stderr
, " debug=%04x", req
->debug
);
2341 fprintf( stderr
, ", pid=%04x", req
->pid
);
2342 fprintf( stderr
, ", tid=%04x", req
->tid
);
2343 fprintf( stderr
, ", status=%08x", req
->status
);
2346 static void dump_debug_process_request( const struct debug_process_request
*req
)
2348 fprintf( stderr
, " handle=%04x", req
->handle
);
2349 fprintf( stderr
, ", debug=%04x", req
->debug
);
2350 fprintf( stderr
, ", attach=%d", req
->attach
);
2353 static void dump_set_debug_obj_info_request( const struct set_debug_obj_info_request
*req
)
2355 fprintf( stderr
, " debug=%04x", req
->debug
);
2356 fprintf( stderr
, ", flags=%08x", req
->flags
);
2359 static void dump_read_process_memory_request( const struct read_process_memory_request
*req
)
2361 fprintf( stderr
, " handle=%04x", req
->handle
);
2362 dump_uint64( ", addr=", &req
->addr
);
2365 static void dump_read_process_memory_reply( const struct read_process_memory_reply
*req
)
2367 dump_varargs_bytes( " data=", cur_size
);
2370 static void dump_write_process_memory_request( const struct write_process_memory_request
*req
)
2372 fprintf( stderr
, " handle=%04x", req
->handle
);
2373 dump_uint64( ", addr=", &req
->addr
);
2374 dump_varargs_bytes( ", data=", cur_size
);
2377 static void dump_create_key_request( const struct create_key_request
*req
)
2379 fprintf( stderr
, " access=%08x", req
->access
);
2380 fprintf( stderr
, ", options=%08x", req
->options
);
2381 dump_varargs_object_attributes( ", objattr=", cur_size
);
2382 dump_varargs_unicode_str( ", class=", cur_size
);
2385 static void dump_create_key_reply( const struct create_key_reply
*req
)
2387 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2390 static void dump_open_key_request( const struct open_key_request
*req
)
2392 fprintf( stderr
, " parent=%04x", req
->parent
);
2393 fprintf( stderr
, ", access=%08x", req
->access
);
2394 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
2395 dump_varargs_unicode_str( ", name=", cur_size
);
2398 static void dump_open_key_reply( const struct open_key_reply
*req
)
2400 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2403 static void dump_delete_key_request( const struct delete_key_request
*req
)
2405 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2408 static void dump_flush_key_request( const struct flush_key_request
*req
)
2410 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2413 static void dump_enum_key_request( const struct enum_key_request
*req
)
2415 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2416 fprintf( stderr
, ", index=%d", req
->index
);
2417 fprintf( stderr
, ", info_class=%d", req
->info_class
);
2420 static void dump_enum_key_reply( const struct enum_key_reply
*req
)
2422 fprintf( stderr
, " subkeys=%d", req
->subkeys
);
2423 fprintf( stderr
, ", max_subkey=%d", req
->max_subkey
);
2424 fprintf( stderr
, ", max_class=%d", req
->max_class
);
2425 fprintf( stderr
, ", values=%d", req
->values
);
2426 fprintf( stderr
, ", max_value=%d", req
->max_value
);
2427 fprintf( stderr
, ", max_data=%d", req
->max_data
);
2428 dump_timeout( ", modif=", &req
->modif
);
2429 fprintf( stderr
, ", total=%u", req
->total
);
2430 fprintf( stderr
, ", namelen=%u", req
->namelen
);
2431 dump_varargs_unicode_str( ", name=", min(cur_size
,req
->namelen
) );
2432 dump_varargs_unicode_str( ", class=", cur_size
);
2435 static void dump_set_key_value_request( const struct set_key_value_request
*req
)
2437 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2438 fprintf( stderr
, ", type=%d", req
->type
);
2439 fprintf( stderr
, ", namelen=%u", req
->namelen
);
2440 dump_varargs_unicode_str( ", name=", min(cur_size
,req
->namelen
) );
2441 dump_varargs_bytes( ", data=", cur_size
);
2444 static void dump_get_key_value_request( const struct get_key_value_request
*req
)
2446 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2447 dump_varargs_unicode_str( ", name=", cur_size
);
2450 static void dump_get_key_value_reply( const struct get_key_value_reply
*req
)
2452 fprintf( stderr
, " type=%d", req
->type
);
2453 fprintf( stderr
, ", total=%u", req
->total
);
2454 dump_varargs_bytes( ", data=", cur_size
);
2457 static void dump_enum_key_value_request( const struct enum_key_value_request
*req
)
2459 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2460 fprintf( stderr
, ", index=%d", req
->index
);
2461 fprintf( stderr
, ", info_class=%d", req
->info_class
);
2464 static void dump_enum_key_value_reply( const struct enum_key_value_reply
*req
)
2466 fprintf( stderr
, " type=%d", req
->type
);
2467 fprintf( stderr
, ", total=%u", req
->total
);
2468 fprintf( stderr
, ", namelen=%u", req
->namelen
);
2469 dump_varargs_unicode_str( ", name=", min(cur_size
,req
->namelen
) );
2470 dump_varargs_bytes( ", data=", cur_size
);
2473 static void dump_delete_key_value_request( const struct delete_key_value_request
*req
)
2475 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2476 dump_varargs_unicode_str( ", name=", cur_size
);
2479 static void dump_load_registry_request( const struct load_registry_request
*req
)
2481 fprintf( stderr
, " file=%04x", req
->file
);
2482 dump_varargs_object_attributes( ", objattr=", cur_size
);
2485 static void dump_unload_registry_request( const struct unload_registry_request
*req
)
2487 fprintf( stderr
, " parent=%04x", req
->parent
);
2488 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
2489 dump_varargs_unicode_str( ", name=", cur_size
);
2492 static void dump_save_registry_request( const struct save_registry_request
*req
)
2494 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2495 fprintf( stderr
, ", file=%04x", req
->file
);
2498 static void dump_set_registry_notification_request( const struct set_registry_notification_request
*req
)
2500 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2501 fprintf( stderr
, ", event=%04x", req
->event
);
2502 fprintf( stderr
, ", subtree=%d", req
->subtree
);
2503 fprintf( stderr
, ", filter=%08x", req
->filter
);
2506 static void dump_rename_key_request( const struct rename_key_request
*req
)
2508 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2509 dump_varargs_unicode_str( ", name=", cur_size
);
2512 static void dump_create_timer_request( const struct create_timer_request
*req
)
2514 fprintf( stderr
, " access=%08x", req
->access
);
2515 fprintf( stderr
, ", manual=%d", req
->manual
);
2516 dump_varargs_object_attributes( ", objattr=", cur_size
);
2519 static void dump_create_timer_reply( const struct create_timer_reply
*req
)
2521 fprintf( stderr
, " handle=%04x", req
->handle
);
2524 static void dump_open_timer_request( const struct open_timer_request
*req
)
2526 fprintf( stderr
, " access=%08x", req
->access
);
2527 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
2528 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
2529 dump_varargs_unicode_str( ", name=", cur_size
);
2532 static void dump_open_timer_reply( const struct open_timer_reply
*req
)
2534 fprintf( stderr
, " handle=%04x", req
->handle
);
2537 static void dump_set_timer_request( const struct set_timer_request
*req
)
2539 fprintf( stderr
, " handle=%04x", req
->handle
);
2540 dump_timeout( ", expire=", &req
->expire
);
2541 dump_uint64( ", callback=", &req
->callback
);
2542 dump_uint64( ", arg=", &req
->arg
);
2543 fprintf( stderr
, ", period=%d", req
->period
);
2546 static void dump_set_timer_reply( const struct set_timer_reply
*req
)
2548 fprintf( stderr
, " signaled=%d", req
->signaled
);
2551 static void dump_cancel_timer_request( const struct cancel_timer_request
*req
)
2553 fprintf( stderr
, " handle=%04x", req
->handle
);
2556 static void dump_cancel_timer_reply( const struct cancel_timer_reply
*req
)
2558 fprintf( stderr
, " signaled=%d", req
->signaled
);
2561 static void dump_get_timer_info_request( const struct get_timer_info_request
*req
)
2563 fprintf( stderr
, " handle=%04x", req
->handle
);
2566 static void dump_get_timer_info_reply( const struct get_timer_info_reply
*req
)
2568 dump_timeout( " when=", &req
->when
);
2569 fprintf( stderr
, ", signaled=%d", req
->signaled
);
2572 static void dump_get_thread_context_request( const struct get_thread_context_request
*req
)
2574 fprintf( stderr
, " handle=%04x", req
->handle
);
2575 fprintf( stderr
, ", context=%04x", req
->context
);
2576 fprintf( stderr
, ", flags=%08x", req
->flags
);
2577 fprintf( stderr
, ", native_flags=%08x", req
->native_flags
);
2578 fprintf( stderr
, ", machine=%04x", req
->machine
);
2581 static void dump_get_thread_context_reply( const struct get_thread_context_reply
*req
)
2583 fprintf( stderr
, " self=%d", req
->self
);
2584 fprintf( stderr
, ", handle=%04x", req
->handle
);
2585 dump_varargs_contexts( ", contexts=", cur_size
);
2588 static void dump_set_thread_context_request( const struct set_thread_context_request
*req
)
2590 fprintf( stderr
, " handle=%04x", req
->handle
);
2591 fprintf( stderr
, ", native_flags=%08x", req
->native_flags
);
2592 dump_varargs_contexts( ", contexts=", cur_size
);
2595 static void dump_set_thread_context_reply( const struct set_thread_context_reply
*req
)
2597 fprintf( stderr
, " self=%d", req
->self
);
2600 static void dump_get_selector_entry_request( const struct get_selector_entry_request
*req
)
2602 fprintf( stderr
, " handle=%04x", req
->handle
);
2603 fprintf( stderr
, ", entry=%d", req
->entry
);
2606 static void dump_get_selector_entry_reply( const struct get_selector_entry_reply
*req
)
2608 fprintf( stderr
, " base=%08x", req
->base
);
2609 fprintf( stderr
, ", limit=%08x", req
->limit
);
2610 fprintf( stderr
, ", flags=%02x", req
->flags
);
2613 static void dump_add_atom_request( const struct add_atom_request
*req
)
2615 dump_varargs_unicode_str( " name=", cur_size
);
2618 static void dump_add_atom_reply( const struct add_atom_reply
*req
)
2620 fprintf( stderr
, " atom=%04x", req
->atom
);
2623 static void dump_delete_atom_request( const struct delete_atom_request
*req
)
2625 fprintf( stderr
, " atom=%04x", req
->atom
);
2628 static void dump_find_atom_request( const struct find_atom_request
*req
)
2630 dump_varargs_unicode_str( " name=", cur_size
);
2633 static void dump_find_atom_reply( const struct find_atom_reply
*req
)
2635 fprintf( stderr
, " atom=%04x", req
->atom
);
2638 static void dump_get_atom_information_request( const struct get_atom_information_request
*req
)
2640 fprintf( stderr
, " atom=%04x", req
->atom
);
2643 static void dump_get_atom_information_reply( const struct get_atom_information_reply
*req
)
2645 fprintf( stderr
, " count=%d", req
->count
);
2646 fprintf( stderr
, ", pinned=%d", req
->pinned
);
2647 fprintf( stderr
, ", total=%u", req
->total
);
2648 dump_varargs_unicode_str( ", name=", cur_size
);
2651 static void dump_get_msg_queue_request( const struct get_msg_queue_request
*req
)
2655 static void dump_get_msg_queue_reply( const struct get_msg_queue_reply
*req
)
2657 fprintf( stderr
, " handle=%04x", req
->handle
);
2660 static void dump_set_queue_fd_request( const struct set_queue_fd_request
*req
)
2662 fprintf( stderr
, " handle=%04x", req
->handle
);
2665 static void dump_set_queue_mask_request( const struct set_queue_mask_request
*req
)
2667 fprintf( stderr
, " wake_mask=%08x", req
->wake_mask
);
2668 fprintf( stderr
, ", changed_mask=%08x", req
->changed_mask
);
2669 fprintf( stderr
, ", skip_wait=%d", req
->skip_wait
);
2672 static void dump_set_queue_mask_reply( const struct set_queue_mask_reply
*req
)
2674 fprintf( stderr
, " wake_bits=%08x", req
->wake_bits
);
2675 fprintf( stderr
, ", changed_bits=%08x", req
->changed_bits
);
2678 static void dump_get_queue_status_request( const struct get_queue_status_request
*req
)
2680 fprintf( stderr
, " clear_bits=%08x", req
->clear_bits
);
2683 static void dump_get_queue_status_reply( const struct get_queue_status_reply
*req
)
2685 fprintf( stderr
, " wake_bits=%08x", req
->wake_bits
);
2686 fprintf( stderr
, ", changed_bits=%08x", req
->changed_bits
);
2689 static void dump_get_process_idle_event_request( const struct get_process_idle_event_request
*req
)
2691 fprintf( stderr
, " handle=%04x", req
->handle
);
2694 static void dump_get_process_idle_event_reply( const struct get_process_idle_event_reply
*req
)
2696 fprintf( stderr
, " event=%04x", req
->event
);
2699 static void dump_send_message_request( const struct send_message_request
*req
)
2701 fprintf( stderr
, " id=%04x", req
->id
);
2702 fprintf( stderr
, ", type=%d", req
->type
);
2703 fprintf( stderr
, ", flags=%d", req
->flags
);
2704 fprintf( stderr
, ", win=%08x", req
->win
);
2705 fprintf( stderr
, ", msg=%08x", req
->msg
);
2706 dump_uint64( ", wparam=", &req
->wparam
);
2707 dump_uint64( ", lparam=", &req
->lparam
);
2708 dump_timeout( ", timeout=", &req
->timeout
);
2709 dump_varargs_message_data( ", data=", cur_size
);
2712 static void dump_post_quit_message_request( const struct post_quit_message_request
*req
)
2714 fprintf( stderr
, " exit_code=%d", req
->exit_code
);
2717 static void dump_send_hardware_message_request( const struct send_hardware_message_request
*req
)
2719 fprintf( stderr
, " win=%08x", req
->win
);
2720 dump_hw_input( ", input=", &req
->input
);
2721 fprintf( stderr
, ", flags=%08x", req
->flags
);
2722 dump_varargs_bytes( ", report=", cur_size
);
2725 static void dump_send_hardware_message_reply( const struct send_hardware_message_reply
*req
)
2727 fprintf( stderr
, " wait=%d", req
->wait
);
2728 fprintf( stderr
, ", prev_x=%d", req
->prev_x
);
2729 fprintf( stderr
, ", prev_y=%d", req
->prev_y
);
2730 fprintf( stderr
, ", new_x=%d", req
->new_x
);
2731 fprintf( stderr
, ", new_y=%d", req
->new_y
);
2734 static void dump_get_message_request( const struct get_message_request
*req
)
2736 fprintf( stderr
, " flags=%08x", req
->flags
);
2737 fprintf( stderr
, ", get_win=%08x", req
->get_win
);
2738 fprintf( stderr
, ", get_first=%08x", req
->get_first
);
2739 fprintf( stderr
, ", get_last=%08x", req
->get_last
);
2740 fprintf( stderr
, ", hw_id=%08x", req
->hw_id
);
2741 fprintf( stderr
, ", wake_mask=%08x", req
->wake_mask
);
2742 fprintf( stderr
, ", changed_mask=%08x", req
->changed_mask
);
2745 static void dump_get_message_reply( const struct get_message_reply
*req
)
2747 fprintf( stderr
, " win=%08x", req
->win
);
2748 fprintf( stderr
, ", msg=%08x", req
->msg
);
2749 dump_uint64( ", wparam=", &req
->wparam
);
2750 dump_uint64( ", lparam=", &req
->lparam
);
2751 fprintf( stderr
, ", type=%d", req
->type
);
2752 fprintf( stderr
, ", x=%d", req
->x
);
2753 fprintf( stderr
, ", y=%d", req
->y
);
2754 fprintf( stderr
, ", time=%08x", req
->time
);
2755 fprintf( stderr
, ", active_hooks=%08x", req
->active_hooks
);
2756 fprintf( stderr
, ", total=%u", req
->total
);
2757 dump_varargs_message_data( ", data=", cur_size
);
2760 static void dump_reply_message_request( const struct reply_message_request
*req
)
2762 fprintf( stderr
, " remove=%d", req
->remove
);
2763 dump_uint64( ", result=", &req
->result
);
2764 dump_varargs_bytes( ", data=", cur_size
);
2767 static void dump_accept_hardware_message_request( const struct accept_hardware_message_request
*req
)
2769 fprintf( stderr
, " hw_id=%08x", req
->hw_id
);
2772 static void dump_get_message_reply_request( const struct get_message_reply_request
*req
)
2774 fprintf( stderr
, " cancel=%d", req
->cancel
);
2777 static void dump_get_message_reply_reply( const struct get_message_reply_reply
*req
)
2779 dump_uint64( " result=", &req
->result
);
2780 dump_varargs_bytes( ", data=", cur_size
);
2783 static void dump_set_win_timer_request( const struct set_win_timer_request
*req
)
2785 fprintf( stderr
, " win=%08x", req
->win
);
2786 fprintf( stderr
, ", msg=%08x", req
->msg
);
2787 fprintf( stderr
, ", rate=%08x", req
->rate
);
2788 dump_uint64( ", id=", &req
->id
);
2789 dump_uint64( ", lparam=", &req
->lparam
);
2792 static void dump_set_win_timer_reply( const struct set_win_timer_reply
*req
)
2794 dump_uint64( " id=", &req
->id
);
2797 static void dump_kill_win_timer_request( const struct kill_win_timer_request
*req
)
2799 fprintf( stderr
, " win=%08x", req
->win
);
2800 dump_uint64( ", id=", &req
->id
);
2801 fprintf( stderr
, ", msg=%08x", req
->msg
);
2804 static void dump_is_window_hung_request( const struct is_window_hung_request
*req
)
2806 fprintf( stderr
, " win=%08x", req
->win
);
2809 static void dump_is_window_hung_reply( const struct is_window_hung_reply
*req
)
2811 fprintf( stderr
, " is_hung=%d", req
->is_hung
);
2814 static void dump_get_serial_info_request( const struct get_serial_info_request
*req
)
2816 fprintf( stderr
, " handle=%04x", req
->handle
);
2817 fprintf( stderr
, ", flags=%d", req
->flags
);
2820 static void dump_get_serial_info_reply( const struct get_serial_info_reply
*req
)
2822 fprintf( stderr
, " eventmask=%08x", req
->eventmask
);
2823 fprintf( stderr
, ", cookie=%08x", req
->cookie
);
2824 fprintf( stderr
, ", pending_write=%08x", req
->pending_write
);
2827 static void dump_set_serial_info_request( const struct set_serial_info_request
*req
)
2829 fprintf( stderr
, " handle=%04x", req
->handle
);
2830 fprintf( stderr
, ", flags=%d", req
->flags
);
2833 static void dump_cancel_sync_request( const struct cancel_sync_request
*req
)
2835 fprintf( stderr
, " handle=%04x", req
->handle
);
2836 dump_uint64( ", iosb=", &req
->iosb
);
2839 static void dump_register_async_request( const struct register_async_request
*req
)
2841 fprintf( stderr
, " type=%d", req
->type
);
2842 dump_async_data( ", async=", &req
->async
);
2843 fprintf( stderr
, ", count=%d", req
->count
);
2846 static void dump_cancel_async_request( const struct cancel_async_request
*req
)
2848 fprintf( stderr
, " handle=%04x", req
->handle
);
2849 dump_uint64( ", iosb=", &req
->iosb
);
2850 fprintf( stderr
, ", only_thread=%d", req
->only_thread
);
2853 static void dump_get_async_result_request( const struct get_async_result_request
*req
)
2855 dump_uint64( " user_arg=", &req
->user_arg
);
2858 static void dump_get_async_result_reply( const struct get_async_result_reply
*req
)
2860 dump_varargs_bytes( " out_data=", cur_size
);
2863 static void dump_set_async_direct_result_request( const struct set_async_direct_result_request
*req
)
2865 fprintf( stderr
, " handle=%04x", req
->handle
);
2866 dump_uint64( ", information=", &req
->information
);
2867 fprintf( stderr
, ", status=%08x", req
->status
);
2868 fprintf( stderr
, ", mark_pending=%d", req
->mark_pending
);
2871 static void dump_set_async_direct_result_reply( const struct set_async_direct_result_reply
*req
)
2873 fprintf( stderr
, " handle=%04x", req
->handle
);
2876 static void dump_read_request( const struct read_request
*req
)
2878 dump_async_data( " async=", &req
->async
);
2879 dump_uint64( ", pos=", &req
->pos
);
2882 static void dump_read_reply( const struct read_reply
*req
)
2884 fprintf( stderr
, " wait=%04x", req
->wait
);
2885 fprintf( stderr
, ", options=%08x", req
->options
);
2886 dump_varargs_bytes( ", data=", cur_size
);
2889 static void dump_write_request( const struct write_request
*req
)
2891 dump_async_data( " async=", &req
->async
);
2892 dump_uint64( ", pos=", &req
->pos
);
2893 dump_varargs_bytes( ", data=", cur_size
);
2896 static void dump_write_reply( const struct write_reply
*req
)
2898 fprintf( stderr
, " wait=%04x", req
->wait
);
2899 fprintf( stderr
, ", options=%08x", req
->options
);
2900 fprintf( stderr
, ", size=%u", req
->size
);
2903 static void dump_ioctl_request( const struct ioctl_request
*req
)
2905 dump_ioctl_code( " code=", &req
->code
);
2906 dump_async_data( ", async=", &req
->async
);
2907 dump_varargs_bytes( ", in_data=", cur_size
);
2910 static void dump_ioctl_reply( const struct ioctl_reply
*req
)
2912 fprintf( stderr
, " wait=%04x", req
->wait
);
2913 fprintf( stderr
, ", options=%08x", req
->options
);
2914 dump_varargs_bytes( ", out_data=", cur_size
);
2917 static void dump_set_irp_result_request( const struct set_irp_result_request
*req
)
2919 fprintf( stderr
, " handle=%04x", req
->handle
);
2920 fprintf( stderr
, ", status=%08x", req
->status
);
2921 fprintf( stderr
, ", size=%u", req
->size
);
2922 dump_varargs_bytes( ", data=", cur_size
);
2925 static void dump_create_named_pipe_request( const struct create_named_pipe_request
*req
)
2927 fprintf( stderr
, " access=%08x", req
->access
);
2928 fprintf( stderr
, ", options=%08x", req
->options
);
2929 fprintf( stderr
, ", sharing=%08x", req
->sharing
);
2930 fprintf( stderr
, ", disposition=%08x", req
->disposition
);
2931 fprintf( stderr
, ", maxinstances=%08x", req
->maxinstances
);
2932 fprintf( stderr
, ", outsize=%08x", req
->outsize
);
2933 fprintf( stderr
, ", insize=%08x", req
->insize
);
2934 dump_timeout( ", timeout=", &req
->timeout
);
2935 fprintf( stderr
, ", flags=%08x", req
->flags
);
2936 dump_varargs_object_attributes( ", objattr=", cur_size
);
2939 static void dump_create_named_pipe_reply( const struct create_named_pipe_reply
*req
)
2941 fprintf( stderr
, " handle=%04x", req
->handle
);
2942 fprintf( stderr
, ", created=%d", req
->created
);
2945 static void dump_set_named_pipe_info_request( const struct set_named_pipe_info_request
*req
)
2947 fprintf( stderr
, " handle=%04x", req
->handle
);
2948 fprintf( stderr
, ", flags=%08x", req
->flags
);
2951 static void dump_create_window_request( const struct create_window_request
*req
)
2953 fprintf( stderr
, " parent=%08x", req
->parent
);
2954 fprintf( stderr
, ", owner=%08x", req
->owner
);
2955 fprintf( stderr
, ", atom=%04x", req
->atom
);
2956 dump_uint64( ", instance=", &req
->instance
);
2957 fprintf( stderr
, ", dpi=%d", req
->dpi
);
2958 fprintf( stderr
, ", awareness=%d", req
->awareness
);
2959 fprintf( stderr
, ", style=%08x", req
->style
);
2960 fprintf( stderr
, ", ex_style=%08x", req
->ex_style
);
2961 dump_varargs_unicode_str( ", class=", cur_size
);
2964 static void dump_create_window_reply( const struct create_window_reply
*req
)
2966 fprintf( stderr
, " handle=%08x", req
->handle
);
2967 fprintf( stderr
, ", parent=%08x", req
->parent
);
2968 fprintf( stderr
, ", owner=%08x", req
->owner
);
2969 fprintf( stderr
, ", extra=%d", req
->extra
);
2970 dump_uint64( ", class_ptr=", &req
->class_ptr
);
2971 fprintf( stderr
, ", dpi=%d", req
->dpi
);
2972 fprintf( stderr
, ", awareness=%d", req
->awareness
);
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=%d", req
->dpi
);
3017 fprintf( stderr
, ", awareness=%d", req
->awareness
);
3020 static void dump_set_window_info_request( const struct set_window_info_request
*req
)
3022 fprintf( stderr
, " flags=%04x", req
->flags
);
3023 fprintf( stderr
, ", is_unicode=%d", req
->is_unicode
);
3024 fprintf( stderr
, ", handle=%08x", req
->handle
);
3025 fprintf( stderr
, ", style=%08x", req
->style
);
3026 fprintf( stderr
, ", ex_style=%08x", req
->ex_style
);
3027 fprintf( stderr
, ", extra_size=%u", req
->extra_size
);
3028 dump_uint64( ", instance=", &req
->instance
);
3029 dump_uint64( ", user_data=", &req
->user_data
);
3030 dump_uint64( ", extra_value=", &req
->extra_value
);
3031 fprintf( stderr
, ", extra_offset=%d", req
->extra_offset
);
3034 static void dump_set_window_info_reply( const struct set_window_info_reply
*req
)
3036 fprintf( stderr
, " old_style=%08x", req
->old_style
);
3037 fprintf( stderr
, ", old_ex_style=%08x", req
->old_ex_style
);
3038 dump_uint64( ", old_instance=", &req
->old_instance
);
3039 dump_uint64( ", old_user_data=", &req
->old_user_data
);
3040 dump_uint64( ", old_extra_value=", &req
->old_extra_value
);
3041 dump_uint64( ", old_id=", &req
->old_id
);
3044 static void dump_set_parent_request( const struct set_parent_request
*req
)
3046 fprintf( stderr
, " handle=%08x", req
->handle
);
3047 fprintf( stderr
, ", parent=%08x", req
->parent
);
3050 static void dump_set_parent_reply( const struct set_parent_reply
*req
)
3052 fprintf( stderr
, " old_parent=%08x", req
->old_parent
);
3053 fprintf( stderr
, ", full_parent=%08x", req
->full_parent
);
3054 fprintf( stderr
, ", dpi=%d", req
->dpi
);
3055 fprintf( stderr
, ", awareness=%d", req
->awareness
);
3058 static void dump_get_window_parents_request( const struct get_window_parents_request
*req
)
3060 fprintf( stderr
, " handle=%08x", req
->handle
);
3063 static void dump_get_window_parents_reply( const struct get_window_parents_reply
*req
)
3065 fprintf( stderr
, " count=%d", req
->count
);
3066 dump_varargs_user_handles( ", parents=", cur_size
);
3069 static void dump_get_window_children_request( const struct get_window_children_request
*req
)
3071 fprintf( stderr
, " desktop=%04x", req
->desktop
);
3072 fprintf( stderr
, ", parent=%08x", req
->parent
);
3073 fprintf( stderr
, ", atom=%04x", req
->atom
);
3074 fprintf( stderr
, ", tid=%04x", req
->tid
);
3075 dump_varargs_unicode_str( ", class=", cur_size
);
3078 static void dump_get_window_children_reply( const struct get_window_children_reply
*req
)
3080 fprintf( stderr
, " count=%d", req
->count
);
3081 dump_varargs_user_handles( ", children=", cur_size
);
3084 static void dump_get_window_children_from_point_request( const struct get_window_children_from_point_request
*req
)
3086 fprintf( stderr
, " parent=%08x", req
->parent
);
3087 fprintf( stderr
, ", x=%d", req
->x
);
3088 fprintf( stderr
, ", y=%d", req
->y
);
3089 fprintf( stderr
, ", dpi=%d", req
->dpi
);
3092 static void dump_get_window_children_from_point_reply( const struct get_window_children_from_point_reply
*req
)
3094 fprintf( stderr
, " count=%d", req
->count
);
3095 dump_varargs_user_handles( ", children=", cur_size
);
3098 static void dump_get_window_tree_request( const struct get_window_tree_request
*req
)
3100 fprintf( stderr
, " handle=%08x", req
->handle
);
3103 static void dump_get_window_tree_reply( const struct get_window_tree_reply
*req
)
3105 fprintf( stderr
, " parent=%08x", req
->parent
);
3106 fprintf( stderr
, ", owner=%08x", req
->owner
);
3107 fprintf( stderr
, ", next_sibling=%08x", req
->next_sibling
);
3108 fprintf( stderr
, ", prev_sibling=%08x", req
->prev_sibling
);
3109 fprintf( stderr
, ", first_sibling=%08x", req
->first_sibling
);
3110 fprintf( stderr
, ", last_sibling=%08x", req
->last_sibling
);
3111 fprintf( stderr
, ", first_child=%08x", req
->first_child
);
3112 fprintf( stderr
, ", last_child=%08x", req
->last_child
);
3115 static void dump_set_window_pos_request( const struct set_window_pos_request
*req
)
3117 fprintf( stderr
, " swp_flags=%04x", req
->swp_flags
);
3118 fprintf( stderr
, ", paint_flags=%04x", req
->paint_flags
);
3119 fprintf( stderr
, ", handle=%08x", req
->handle
);
3120 fprintf( stderr
, ", previous=%08x", req
->previous
);
3121 dump_rectangle( ", window=", &req
->window
);
3122 dump_rectangle( ", client=", &req
->client
);
3123 dump_varargs_rectangles( ", valid=", cur_size
);
3126 static void dump_set_window_pos_reply( const struct set_window_pos_reply
*req
)
3128 fprintf( stderr
, " new_style=%08x", req
->new_style
);
3129 fprintf( stderr
, ", new_ex_style=%08x", req
->new_ex_style
);
3130 fprintf( stderr
, ", surface_win=%08x", req
->surface_win
);
3131 fprintf( stderr
, ", needs_update=%d", req
->needs_update
);
3134 static void dump_get_window_rectangles_request( const struct get_window_rectangles_request
*req
)
3136 fprintf( stderr
, " handle=%08x", req
->handle
);
3137 fprintf( stderr
, ", relative=%d", req
->relative
);
3138 fprintf( stderr
, ", dpi=%d", req
->dpi
);
3141 static void dump_get_window_rectangles_reply( const struct get_window_rectangles_reply
*req
)
3143 dump_rectangle( " window=", &req
->window
);
3144 dump_rectangle( ", client=", &req
->client
);
3147 static void dump_get_window_text_request( const struct get_window_text_request
*req
)
3149 fprintf( stderr
, " handle=%08x", req
->handle
);
3152 static void dump_get_window_text_reply( const struct get_window_text_reply
*req
)
3154 fprintf( stderr
, " length=%u", req
->length
);
3155 dump_varargs_unicode_str( ", text=", cur_size
);
3158 static void dump_set_window_text_request( const struct set_window_text_request
*req
)
3160 fprintf( stderr
, " handle=%08x", req
->handle
);
3161 dump_varargs_unicode_str( ", text=", cur_size
);
3164 static void dump_get_windows_offset_request( const struct get_windows_offset_request
*req
)
3166 fprintf( stderr
, " from=%08x", req
->from
);
3167 fprintf( stderr
, ", to=%08x", req
->to
);
3168 fprintf( stderr
, ", dpi=%d", req
->dpi
);
3171 static void dump_get_windows_offset_reply( const struct get_windows_offset_reply
*req
)
3173 fprintf( stderr
, " x=%d", req
->x
);
3174 fprintf( stderr
, ", y=%d", req
->y
);
3175 fprintf( stderr
, ", mirror=%d", req
->mirror
);
3178 static void dump_get_visible_region_request( const struct get_visible_region_request
*req
)
3180 fprintf( stderr
, " window=%08x", req
->window
);
3181 fprintf( stderr
, ", flags=%08x", req
->flags
);
3184 static void dump_get_visible_region_reply( const struct get_visible_region_reply
*req
)
3186 fprintf( stderr
, " top_win=%08x", req
->top_win
);
3187 dump_rectangle( ", top_rect=", &req
->top_rect
);
3188 dump_rectangle( ", win_rect=", &req
->win_rect
);
3189 fprintf( stderr
, ", paint_flags=%08x", req
->paint_flags
);
3190 fprintf( stderr
, ", total_size=%u", req
->total_size
);
3191 dump_varargs_rectangles( ", region=", cur_size
);
3194 static void dump_get_surface_region_request( const struct get_surface_region_request
*req
)
3196 fprintf( stderr
, " window=%08x", req
->window
);
3199 static void dump_get_surface_region_reply( const struct get_surface_region_reply
*req
)
3201 dump_rectangle( " visible_rect=", &req
->visible_rect
);
3202 fprintf( stderr
, ", total_size=%u", req
->total_size
);
3203 dump_varargs_rectangles( ", region=", cur_size
);
3206 static void dump_get_window_region_request( const struct get_window_region_request
*req
)
3208 fprintf( stderr
, " window=%08x", req
->window
);
3211 static void dump_get_window_region_reply( const struct get_window_region_reply
*req
)
3213 fprintf( stderr
, " total_size=%u", req
->total_size
);
3214 dump_varargs_rectangles( ", region=", cur_size
);
3217 static void dump_set_window_region_request( const struct set_window_region_request
*req
)
3219 fprintf( stderr
, " window=%08x", req
->window
);
3220 fprintf( stderr
, ", redraw=%d", req
->redraw
);
3221 dump_varargs_rectangles( ", region=", cur_size
);
3224 static void dump_get_update_region_request( const struct get_update_region_request
*req
)
3226 fprintf( stderr
, " window=%08x", req
->window
);
3227 fprintf( stderr
, ", from_child=%08x", req
->from_child
);
3228 fprintf( stderr
, ", flags=%08x", req
->flags
);
3231 static void dump_get_update_region_reply( const struct get_update_region_reply
*req
)
3233 fprintf( stderr
, " child=%08x", req
->child
);
3234 fprintf( stderr
, ", flags=%08x", req
->flags
);
3235 fprintf( stderr
, ", total_size=%u", req
->total_size
);
3236 dump_varargs_rectangles( ", region=", cur_size
);
3239 static void dump_update_window_zorder_request( const struct update_window_zorder_request
*req
)
3241 fprintf( stderr
, " window=%08x", req
->window
);
3242 dump_rectangle( ", rect=", &req
->rect
);
3245 static void dump_redraw_window_request( const struct redraw_window_request
*req
)
3247 fprintf( stderr
, " window=%08x", req
->window
);
3248 fprintf( stderr
, ", flags=%08x", req
->flags
);
3249 dump_varargs_rectangles( ", region=", cur_size
);
3252 static void dump_set_window_property_request( const struct set_window_property_request
*req
)
3254 fprintf( stderr
, " window=%08x", req
->window
);
3255 dump_uint64( ", data=", &req
->data
);
3256 fprintf( stderr
, ", atom=%04x", req
->atom
);
3257 dump_varargs_unicode_str( ", name=", cur_size
);
3260 static void dump_remove_window_property_request( const struct remove_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_remove_window_property_reply( const struct remove_window_property_reply
*req
)
3269 dump_uint64( " data=", &req
->data
);
3272 static void dump_get_window_property_request( const struct get_window_property_request
*req
)
3274 fprintf( stderr
, " window=%08x", req
->window
);
3275 fprintf( stderr
, ", atom=%04x", req
->atom
);
3276 dump_varargs_unicode_str( ", name=", cur_size
);
3279 static void dump_get_window_property_reply( const struct get_window_property_reply
*req
)
3281 dump_uint64( " data=", &req
->data
);
3284 static void dump_get_window_properties_request( const struct get_window_properties_request
*req
)
3286 fprintf( stderr
, " window=%08x", req
->window
);
3289 static void dump_get_window_properties_reply( const struct get_window_properties_reply
*req
)
3291 fprintf( stderr
, " total=%d", req
->total
);
3292 dump_varargs_properties( ", props=", cur_size
);
3295 static void dump_create_winstation_request( const struct create_winstation_request
*req
)
3297 fprintf( stderr
, " flags=%08x", req
->flags
);
3298 fprintf( stderr
, ", access=%08x", req
->access
);
3299 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3300 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
3301 dump_varargs_unicode_str( ", name=", cur_size
);
3304 static void dump_create_winstation_reply( const struct create_winstation_reply
*req
)
3306 fprintf( stderr
, " handle=%04x", req
->handle
);
3309 static void dump_open_winstation_request( const struct open_winstation_request
*req
)
3311 fprintf( stderr
, " access=%08x", req
->access
);
3312 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3313 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
3314 dump_varargs_unicode_str( ", name=", cur_size
);
3317 static void dump_open_winstation_reply( const struct open_winstation_reply
*req
)
3319 fprintf( stderr
, " handle=%04x", req
->handle
);
3322 static void dump_close_winstation_request( const struct close_winstation_request
*req
)
3324 fprintf( stderr
, " handle=%04x", req
->handle
);
3327 static void dump_get_process_winstation_request( const struct get_process_winstation_request
*req
)
3331 static void dump_get_process_winstation_reply( const struct get_process_winstation_reply
*req
)
3333 fprintf( stderr
, " handle=%04x", req
->handle
);
3336 static void dump_set_process_winstation_request( const struct set_process_winstation_request
*req
)
3338 fprintf( stderr
, " handle=%04x", req
->handle
);
3341 static void dump_enum_winstation_request( const struct enum_winstation_request
*req
)
3343 fprintf( stderr
, " index=%08x", req
->index
);
3346 static void dump_enum_winstation_reply( const struct enum_winstation_reply
*req
)
3348 fprintf( stderr
, " next=%08x", req
->next
);
3349 dump_varargs_unicode_str( ", name=", cur_size
);
3352 static void dump_create_desktop_request( const struct create_desktop_request
*req
)
3354 fprintf( stderr
, " flags=%08x", req
->flags
);
3355 fprintf( stderr
, ", access=%08x", req
->access
);
3356 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3357 dump_varargs_unicode_str( ", name=", cur_size
);
3360 static void dump_create_desktop_reply( const struct create_desktop_reply
*req
)
3362 fprintf( stderr
, " handle=%04x", req
->handle
);
3365 static void dump_open_desktop_request( const struct open_desktop_request
*req
)
3367 fprintf( stderr
, " winsta=%04x", req
->winsta
);
3368 fprintf( stderr
, ", flags=%08x", req
->flags
);
3369 fprintf( stderr
, ", access=%08x", req
->access
);
3370 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3371 dump_varargs_unicode_str( ", name=", cur_size
);
3374 static void dump_open_desktop_reply( const struct open_desktop_reply
*req
)
3376 fprintf( stderr
, " handle=%04x", req
->handle
);
3379 static void dump_open_input_desktop_request( const struct open_input_desktop_request
*req
)
3381 fprintf( stderr
, " flags=%08x", req
->flags
);
3382 fprintf( stderr
, ", access=%08x", req
->access
);
3383 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3386 static void dump_open_input_desktop_reply( const struct open_input_desktop_reply
*req
)
3388 fprintf( stderr
, " handle=%04x", req
->handle
);
3391 static void dump_close_desktop_request( const struct close_desktop_request
*req
)
3393 fprintf( stderr
, " handle=%04x", req
->handle
);
3396 static void dump_get_thread_desktop_request( const struct get_thread_desktop_request
*req
)
3398 fprintf( stderr
, " tid=%04x", req
->tid
);
3401 static void dump_get_thread_desktop_reply( const struct get_thread_desktop_reply
*req
)
3403 fprintf( stderr
, " handle=%04x", req
->handle
);
3406 static void dump_set_thread_desktop_request( const struct set_thread_desktop_request
*req
)
3408 fprintf( stderr
, " handle=%04x", req
->handle
);
3411 static void dump_enum_desktop_request( const struct enum_desktop_request
*req
)
3413 fprintf( stderr
, " winstation=%04x", req
->winstation
);
3414 fprintf( stderr
, ", index=%08x", req
->index
);
3417 static void dump_enum_desktop_reply( const struct enum_desktop_reply
*req
)
3419 fprintf( stderr
, " next=%08x", req
->next
);
3420 dump_varargs_unicode_str( ", name=", cur_size
);
3423 static void dump_set_user_object_info_request( const struct set_user_object_info_request
*req
)
3425 fprintf( stderr
, " handle=%04x", req
->handle
);
3426 fprintf( stderr
, ", flags=%08x", req
->flags
);
3427 fprintf( stderr
, ", obj_flags=%08x", req
->obj_flags
);
3430 static void dump_set_user_object_info_reply( const struct set_user_object_info_reply
*req
)
3432 fprintf( stderr
, " is_desktop=%d", req
->is_desktop
);
3433 fprintf( stderr
, ", old_obj_flags=%08x", req
->old_obj_flags
);
3434 dump_varargs_unicode_str( ", name=", cur_size
);
3437 static void dump_register_hotkey_request( const struct register_hotkey_request
*req
)
3439 fprintf( stderr
, " window=%08x", req
->window
);
3440 fprintf( stderr
, ", id=%d", req
->id
);
3441 fprintf( stderr
, ", flags=%08x", req
->flags
);
3442 fprintf( stderr
, ", vkey=%08x", req
->vkey
);
3445 static void dump_register_hotkey_reply( const struct register_hotkey_reply
*req
)
3447 fprintf( stderr
, " replaced=%d", req
->replaced
);
3448 fprintf( stderr
, ", flags=%08x", req
->flags
);
3449 fprintf( stderr
, ", vkey=%08x", req
->vkey
);
3452 static void dump_unregister_hotkey_request( const struct unregister_hotkey_request
*req
)
3454 fprintf( stderr
, " window=%08x", req
->window
);
3455 fprintf( stderr
, ", id=%d", req
->id
);
3458 static void dump_unregister_hotkey_reply( const struct unregister_hotkey_reply
*req
)
3460 fprintf( stderr
, " flags=%08x", req
->flags
);
3461 fprintf( stderr
, ", vkey=%08x", req
->vkey
);
3464 static void dump_attach_thread_input_request( const struct attach_thread_input_request
*req
)
3466 fprintf( stderr
, " tid_from=%04x", req
->tid_from
);
3467 fprintf( stderr
, ", tid_to=%04x", req
->tid_to
);
3468 fprintf( stderr
, ", attach=%d", req
->attach
);
3471 static void dump_get_thread_input_request( const struct get_thread_input_request
*req
)
3473 fprintf( stderr
, " tid=%04x", req
->tid
);
3476 static void dump_get_thread_input_reply( const struct get_thread_input_reply
*req
)
3478 fprintf( stderr
, " focus=%08x", req
->focus
);
3479 fprintf( stderr
, ", capture=%08x", req
->capture
);
3480 fprintf( stderr
, ", active=%08x", req
->active
);
3481 fprintf( stderr
, ", foreground=%08x", req
->foreground
);
3482 fprintf( stderr
, ", menu_owner=%08x", req
->menu_owner
);
3483 fprintf( stderr
, ", move_size=%08x", req
->move_size
);
3484 fprintf( stderr
, ", caret=%08x", req
->caret
);
3485 fprintf( stderr
, ", cursor=%08x", req
->cursor
);
3486 fprintf( stderr
, ", show_count=%d", req
->show_count
);
3487 dump_rectangle( ", rect=", &req
->rect
);
3490 static void dump_get_last_input_time_request( const struct get_last_input_time_request
*req
)
3494 static void dump_get_last_input_time_reply( const struct get_last_input_time_reply
*req
)
3496 fprintf( stderr
, " time=%08x", req
->time
);
3499 static void dump_get_key_state_request( const struct get_key_state_request
*req
)
3501 fprintf( stderr
, " async=%d", req
->async
);
3502 fprintf( stderr
, ", key=%d", req
->key
);
3505 static void dump_get_key_state_reply( const struct get_key_state_reply
*req
)
3507 fprintf( stderr
, " state=%02x", req
->state
);
3508 dump_varargs_bytes( ", keystate=", cur_size
);
3511 static void dump_set_key_state_request( const struct set_key_state_request
*req
)
3513 fprintf( stderr
, " async=%d", req
->async
);
3514 dump_varargs_bytes( ", keystate=", cur_size
);
3517 static void dump_set_foreground_window_request( const struct set_foreground_window_request
*req
)
3519 fprintf( stderr
, " handle=%08x", req
->handle
);
3522 static void dump_set_foreground_window_reply( const struct set_foreground_window_reply
*req
)
3524 fprintf( stderr
, " previous=%08x", req
->previous
);
3525 fprintf( stderr
, ", send_msg_old=%d", req
->send_msg_old
);
3526 fprintf( stderr
, ", send_msg_new=%d", req
->send_msg_new
);
3529 static void dump_set_focus_window_request( const struct set_focus_window_request
*req
)
3531 fprintf( stderr
, " handle=%08x", req
->handle
);
3534 static void dump_set_focus_window_reply( const struct set_focus_window_reply
*req
)
3536 fprintf( stderr
, " previous=%08x", req
->previous
);
3539 static void dump_set_active_window_request( const struct set_active_window_request
*req
)
3541 fprintf( stderr
, " handle=%08x", req
->handle
);
3544 static void dump_set_active_window_reply( const struct set_active_window_reply
*req
)
3546 fprintf( stderr
, " previous=%08x", req
->previous
);
3549 static void dump_set_capture_window_request( const struct set_capture_window_request
*req
)
3551 fprintf( stderr
, " handle=%08x", req
->handle
);
3552 fprintf( stderr
, ", flags=%08x", req
->flags
);
3555 static void dump_set_capture_window_reply( const struct set_capture_window_reply
*req
)
3557 fprintf( stderr
, " previous=%08x", req
->previous
);
3558 fprintf( stderr
, ", full_handle=%08x", req
->full_handle
);
3561 static void dump_set_caret_window_request( const struct set_caret_window_request
*req
)
3563 fprintf( stderr
, " handle=%08x", req
->handle
);
3564 fprintf( stderr
, ", width=%d", req
->width
);
3565 fprintf( stderr
, ", height=%d", req
->height
);
3568 static void dump_set_caret_window_reply( const struct set_caret_window_reply
*req
)
3570 fprintf( stderr
, " previous=%08x", req
->previous
);
3571 dump_rectangle( ", old_rect=", &req
->old_rect
);
3572 fprintf( stderr
, ", old_hide=%d", req
->old_hide
);
3573 fprintf( stderr
, ", old_state=%d", req
->old_state
);
3576 static void dump_set_caret_info_request( const struct set_caret_info_request
*req
)
3578 fprintf( stderr
, " flags=%08x", req
->flags
);
3579 fprintf( stderr
, ", handle=%08x", req
->handle
);
3580 fprintf( stderr
, ", x=%d", req
->x
);
3581 fprintf( stderr
, ", y=%d", req
->y
);
3582 fprintf( stderr
, ", hide=%d", req
->hide
);
3583 fprintf( stderr
, ", state=%d", req
->state
);
3586 static void dump_set_caret_info_reply( const struct set_caret_info_reply
*req
)
3588 fprintf( stderr
, " full_handle=%08x", req
->full_handle
);
3589 dump_rectangle( ", old_rect=", &req
->old_rect
);
3590 fprintf( stderr
, ", old_hide=%d", req
->old_hide
);
3591 fprintf( stderr
, ", old_state=%d", req
->old_state
);
3594 static void dump_set_hook_request( const struct set_hook_request
*req
)
3596 fprintf( stderr
, " id=%d", req
->id
);
3597 fprintf( stderr
, ", pid=%04x", req
->pid
);
3598 fprintf( stderr
, ", tid=%04x", req
->tid
);
3599 fprintf( stderr
, ", event_min=%d", req
->event_min
);
3600 fprintf( stderr
, ", event_max=%d", req
->event_max
);
3601 dump_uint64( ", proc=", &req
->proc
);
3602 fprintf( stderr
, ", flags=%d", req
->flags
);
3603 fprintf( stderr
, ", unicode=%d", req
->unicode
);
3604 dump_varargs_unicode_str( ", module=", cur_size
);
3607 static void dump_set_hook_reply( const struct set_hook_reply
*req
)
3609 fprintf( stderr
, " handle=%08x", req
->handle
);
3610 fprintf( stderr
, ", active_hooks=%08x", req
->active_hooks
);
3613 static void dump_remove_hook_request( const struct remove_hook_request
*req
)
3615 fprintf( stderr
, " handle=%08x", req
->handle
);
3616 dump_uint64( ", proc=", &req
->proc
);
3617 fprintf( stderr
, ", id=%d", req
->id
);
3620 static void dump_remove_hook_reply( const struct remove_hook_reply
*req
)
3622 fprintf( stderr
, " active_hooks=%08x", req
->active_hooks
);
3625 static void dump_start_hook_chain_request( const struct start_hook_chain_request
*req
)
3627 fprintf( stderr
, " id=%d", req
->id
);
3628 fprintf( stderr
, ", event=%d", req
->event
);
3629 fprintf( stderr
, ", window=%08x", req
->window
);
3630 fprintf( stderr
, ", object_id=%d", req
->object_id
);
3631 fprintf( stderr
, ", child_id=%d", req
->child_id
);
3634 static void dump_start_hook_chain_reply( const struct start_hook_chain_reply
*req
)
3636 fprintf( stderr
, " handle=%08x", req
->handle
);
3637 fprintf( stderr
, ", pid=%04x", req
->pid
);
3638 fprintf( stderr
, ", tid=%04x", req
->tid
);
3639 fprintf( stderr
, ", unicode=%d", req
->unicode
);
3640 dump_uint64( ", proc=", &req
->proc
);
3641 fprintf( stderr
, ", active_hooks=%08x", req
->active_hooks
);
3642 dump_varargs_unicode_str( ", module=", cur_size
);
3645 static void dump_finish_hook_chain_request( const struct finish_hook_chain_request
*req
)
3647 fprintf( stderr
, " id=%d", req
->id
);
3650 static void dump_get_hook_info_request( const struct get_hook_info_request
*req
)
3652 fprintf( stderr
, " handle=%08x", req
->handle
);
3653 fprintf( stderr
, ", get_next=%d", req
->get_next
);
3654 fprintf( stderr
, ", event=%d", req
->event
);
3655 fprintf( stderr
, ", window=%08x", req
->window
);
3656 fprintf( stderr
, ", object_id=%d", req
->object_id
);
3657 fprintf( stderr
, ", child_id=%d", req
->child_id
);
3660 static void dump_get_hook_info_reply( const struct get_hook_info_reply
*req
)
3662 fprintf( stderr
, " handle=%08x", req
->handle
);
3663 fprintf( stderr
, ", id=%d", req
->id
);
3664 fprintf( stderr
, ", pid=%04x", req
->pid
);
3665 fprintf( stderr
, ", tid=%04x", req
->tid
);
3666 dump_uint64( ", proc=", &req
->proc
);
3667 fprintf( stderr
, ", unicode=%d", req
->unicode
);
3668 dump_varargs_unicode_str( ", module=", cur_size
);
3671 static void dump_create_class_request( const struct create_class_request
*req
)
3673 fprintf( stderr
, " local=%d", req
->local
);
3674 fprintf( stderr
, ", atom=%04x", req
->atom
);
3675 fprintf( stderr
, ", style=%08x", req
->style
);
3676 dump_uint64( ", instance=", &req
->instance
);
3677 fprintf( stderr
, ", extra=%d", req
->extra
);
3678 fprintf( stderr
, ", win_extra=%d", req
->win_extra
);
3679 dump_uint64( ", client_ptr=", &req
->client_ptr
);
3680 fprintf( stderr
, ", name_offset=%u", req
->name_offset
);
3681 dump_varargs_unicode_str( ", name=", cur_size
);
3684 static void dump_create_class_reply( const struct create_class_reply
*req
)
3686 fprintf( stderr
, " atom=%04x", req
->atom
);
3689 static void dump_destroy_class_request( const struct destroy_class_request
*req
)
3691 fprintf( stderr
, " atom=%04x", req
->atom
);
3692 dump_uint64( ", instance=", &req
->instance
);
3693 dump_varargs_unicode_str( ", name=", cur_size
);
3696 static void dump_destroy_class_reply( const struct destroy_class_reply
*req
)
3698 dump_uint64( " client_ptr=", &req
->client_ptr
);
3701 static void dump_set_class_info_request( const struct set_class_info_request
*req
)
3703 fprintf( stderr
, " window=%08x", req
->window
);
3704 fprintf( stderr
, ", flags=%08x", req
->flags
);
3705 fprintf( stderr
, ", atom=%04x", req
->atom
);
3706 fprintf( stderr
, ", style=%08x", req
->style
);
3707 fprintf( stderr
, ", win_extra=%d", req
->win_extra
);
3708 dump_uint64( ", instance=", &req
->instance
);
3709 fprintf( stderr
, ", extra_offset=%d", req
->extra_offset
);
3710 fprintf( stderr
, ", extra_size=%u", req
->extra_size
);
3711 dump_uint64( ", extra_value=", &req
->extra_value
);
3714 static void dump_set_class_info_reply( const struct set_class_info_reply
*req
)
3716 fprintf( stderr
, " old_atom=%04x", req
->old_atom
);
3717 fprintf( stderr
, ", base_atom=%04x", req
->base_atom
);
3718 dump_uint64( ", old_instance=", &req
->old_instance
);
3719 dump_uint64( ", old_extra_value=", &req
->old_extra_value
);
3720 fprintf( stderr
, ", old_style=%08x", req
->old_style
);
3721 fprintf( stderr
, ", old_extra=%d", req
->old_extra
);
3722 fprintf( stderr
, ", old_win_extra=%d", req
->old_win_extra
);
3725 static void dump_open_clipboard_request( const struct open_clipboard_request
*req
)
3727 fprintf( stderr
, " window=%08x", req
->window
);
3730 static void dump_open_clipboard_reply( const struct open_clipboard_reply
*req
)
3732 fprintf( stderr
, " owner=%08x", req
->owner
);
3735 static void dump_close_clipboard_request( const struct close_clipboard_request
*req
)
3739 static void dump_close_clipboard_reply( const struct close_clipboard_reply
*req
)
3741 fprintf( stderr
, " viewer=%08x", req
->viewer
);
3742 fprintf( stderr
, ", owner=%08x", req
->owner
);
3745 static void dump_empty_clipboard_request( const struct empty_clipboard_request
*req
)
3749 static void dump_set_clipboard_data_request( const struct set_clipboard_data_request
*req
)
3751 fprintf( stderr
, " format=%08x", req
->format
);
3752 fprintf( stderr
, ", lcid=%08x", req
->lcid
);
3753 dump_varargs_bytes( ", data=", cur_size
);
3756 static void dump_set_clipboard_data_reply( const struct set_clipboard_data_reply
*req
)
3758 fprintf( stderr
, " seqno=%08x", req
->seqno
);
3761 static void dump_get_clipboard_data_request( const struct get_clipboard_data_request
*req
)
3763 fprintf( stderr
, " format=%08x", req
->format
);
3764 fprintf( stderr
, ", render=%d", req
->render
);
3765 fprintf( stderr
, ", cached=%d", req
->cached
);
3766 fprintf( stderr
, ", seqno=%08x", req
->seqno
);
3769 static void dump_get_clipboard_data_reply( const struct get_clipboard_data_reply
*req
)
3771 fprintf( stderr
, " from=%08x", req
->from
);
3772 fprintf( stderr
, ", owner=%08x", req
->owner
);
3773 fprintf( stderr
, ", seqno=%08x", req
->seqno
);
3774 fprintf( stderr
, ", total=%u", req
->total
);
3775 dump_varargs_bytes( ", data=", cur_size
);
3778 static void dump_get_clipboard_formats_request( const struct get_clipboard_formats_request
*req
)
3780 fprintf( stderr
, " format=%08x", req
->format
);
3783 static void dump_get_clipboard_formats_reply( const struct get_clipboard_formats_reply
*req
)
3785 fprintf( stderr
, " count=%08x", req
->count
);
3786 dump_varargs_uints( ", formats=", cur_size
);
3789 static void dump_enum_clipboard_formats_request( const struct enum_clipboard_formats_request
*req
)
3791 fprintf( stderr
, " previous=%08x", req
->previous
);
3794 static void dump_enum_clipboard_formats_reply( const struct enum_clipboard_formats_reply
*req
)
3796 fprintf( stderr
, " format=%08x", req
->format
);
3799 static void dump_release_clipboard_request( const struct release_clipboard_request
*req
)
3801 fprintf( stderr
, " owner=%08x", req
->owner
);
3804 static void dump_release_clipboard_reply( const struct release_clipboard_reply
*req
)
3806 fprintf( stderr
, " viewer=%08x", req
->viewer
);
3807 fprintf( stderr
, ", owner=%08x", req
->owner
);
3810 static void dump_get_clipboard_info_request( const struct get_clipboard_info_request
*req
)
3814 static void dump_get_clipboard_info_reply( const struct get_clipboard_info_reply
*req
)
3816 fprintf( stderr
, " window=%08x", req
->window
);
3817 fprintf( stderr
, ", owner=%08x", req
->owner
);
3818 fprintf( stderr
, ", viewer=%08x", req
->viewer
);
3819 fprintf( stderr
, ", seqno=%08x", req
->seqno
);
3822 static void dump_set_clipboard_viewer_request( const struct set_clipboard_viewer_request
*req
)
3824 fprintf( stderr
, " viewer=%08x", req
->viewer
);
3825 fprintf( stderr
, ", previous=%08x", req
->previous
);
3828 static void dump_set_clipboard_viewer_reply( const struct set_clipboard_viewer_reply
*req
)
3830 fprintf( stderr
, " old_viewer=%08x", req
->old_viewer
);
3831 fprintf( stderr
, ", owner=%08x", req
->owner
);
3834 static void dump_add_clipboard_listener_request( const struct add_clipboard_listener_request
*req
)
3836 fprintf( stderr
, " window=%08x", req
->window
);
3839 static void dump_remove_clipboard_listener_request( const struct remove_clipboard_listener_request
*req
)
3841 fprintf( stderr
, " window=%08x", req
->window
);
3844 static void dump_create_token_request( const struct create_token_request
*req
)
3846 dump_luid( " token_id=", &req
->token_id
);
3847 fprintf( stderr
, ", access=%08x", req
->access
);
3848 fprintf( stderr
, ", primary=%d", req
->primary
);
3849 fprintf( stderr
, ", impersonation_level=%d", req
->impersonation_level
);
3850 dump_abstime( ", expire=", &req
->expire
);
3851 fprintf( stderr
, ", group_count=%d", req
->group_count
);
3852 fprintf( stderr
, ", primary_group=%d", req
->primary_group
);
3853 fprintf( stderr
, ", priv_count=%d", req
->priv_count
);
3856 static void dump_create_token_reply( const struct create_token_reply
*req
)
3858 fprintf( stderr
, " token=%04x", req
->token
);
3861 static void dump_open_token_request( const struct open_token_request
*req
)
3863 fprintf( stderr
, " handle=%04x", req
->handle
);
3864 fprintf( stderr
, ", access=%08x", req
->access
);
3865 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3866 fprintf( stderr
, ", flags=%08x", req
->flags
);
3869 static void dump_open_token_reply( const struct open_token_reply
*req
)
3871 fprintf( stderr
, " token=%04x", req
->token
);
3874 static void dump_set_global_windows_request( const struct set_global_windows_request
*req
)
3876 fprintf( stderr
, " flags=%08x", req
->flags
);
3877 fprintf( stderr
, ", shell_window=%08x", req
->shell_window
);
3878 fprintf( stderr
, ", shell_listview=%08x", req
->shell_listview
);
3879 fprintf( stderr
, ", progman_window=%08x", req
->progman_window
);
3880 fprintf( stderr
, ", taskman_window=%08x", req
->taskman_window
);
3883 static void dump_set_global_windows_reply( const struct set_global_windows_reply
*req
)
3885 fprintf( stderr
, " old_shell_window=%08x", req
->old_shell_window
);
3886 fprintf( stderr
, ", old_shell_listview=%08x", req
->old_shell_listview
);
3887 fprintf( stderr
, ", old_progman_window=%08x", req
->old_progman_window
);
3888 fprintf( stderr
, ", old_taskman_window=%08x", req
->old_taskman_window
);
3891 static void dump_adjust_token_privileges_request( const struct adjust_token_privileges_request
*req
)
3893 fprintf( stderr
, " handle=%04x", req
->handle
);
3894 fprintf( stderr
, ", disable_all=%d", req
->disable_all
);
3895 fprintf( stderr
, ", get_modified_state=%d", req
->get_modified_state
);
3896 dump_varargs_luid_attr( ", privileges=", cur_size
);
3899 static void dump_adjust_token_privileges_reply( const struct adjust_token_privileges_reply
*req
)
3901 fprintf( stderr
, " len=%08x", req
->len
);
3902 dump_varargs_luid_attr( ", privileges=", cur_size
);
3905 static void dump_get_token_privileges_request( const struct get_token_privileges_request
*req
)
3907 fprintf( stderr
, " handle=%04x", req
->handle
);
3910 static void dump_get_token_privileges_reply( const struct get_token_privileges_reply
*req
)
3912 fprintf( stderr
, " len=%08x", req
->len
);
3913 dump_varargs_luid_attr( ", privileges=", cur_size
);
3916 static void dump_check_token_privileges_request( const struct check_token_privileges_request
*req
)
3918 fprintf( stderr
, " handle=%04x", req
->handle
);
3919 fprintf( stderr
, ", all_required=%d", req
->all_required
);
3920 dump_varargs_luid_attr( ", privileges=", cur_size
);
3923 static void dump_check_token_privileges_reply( const struct check_token_privileges_reply
*req
)
3925 fprintf( stderr
, " has_privileges=%d", req
->has_privileges
);
3926 dump_varargs_luid_attr( ", privileges=", cur_size
);
3929 static void dump_duplicate_token_request( const struct duplicate_token_request
*req
)
3931 fprintf( stderr
, " handle=%04x", req
->handle
);
3932 fprintf( stderr
, ", access=%08x", req
->access
);
3933 fprintf( stderr
, ", primary=%d", req
->primary
);
3934 fprintf( stderr
, ", impersonation_level=%d", req
->impersonation_level
);
3935 dump_varargs_object_attributes( ", objattr=", cur_size
);
3938 static void dump_duplicate_token_reply( const struct duplicate_token_reply
*req
)
3940 fprintf( stderr
, " new_handle=%04x", req
->new_handle
);
3943 static void dump_filter_token_request( const struct filter_token_request
*req
)
3945 fprintf( stderr
, " handle=%04x", req
->handle
);
3946 fprintf( stderr
, ", flags=%08x", req
->flags
);
3947 fprintf( stderr
, ", privileges_size=%u", req
->privileges_size
);
3948 dump_varargs_luid_attr( ", privileges=", min(cur_size
,req
->privileges_size
) );
3949 dump_varargs_sid( ", disable_sids=", cur_size
);
3952 static void dump_filter_token_reply( const struct filter_token_reply
*req
)
3954 fprintf( stderr
, " new_handle=%04x", req
->new_handle
);
3957 static void dump_access_check_request( const struct access_check_request
*req
)
3959 fprintf( stderr
, " handle=%04x", req
->handle
);
3960 fprintf( stderr
, ", desired_access=%08x", req
->desired_access
);
3961 dump_generic_map( ", mapping=", &req
->mapping
);
3962 dump_varargs_security_descriptor( ", sd=", cur_size
);
3965 static void dump_access_check_reply( const struct access_check_reply
*req
)
3967 fprintf( stderr
, " access_granted=%08x", req
->access_granted
);
3968 fprintf( stderr
, ", access_status=%08x", req
->access_status
);
3969 fprintf( stderr
, ", privileges_len=%08x", req
->privileges_len
);
3970 dump_varargs_luid_attr( ", privileges=", cur_size
);
3973 static void dump_get_token_sid_request( const struct get_token_sid_request
*req
)
3975 fprintf( stderr
, " handle=%04x", req
->handle
);
3976 fprintf( stderr
, ", which_sid=%08x", req
->which_sid
);
3979 static void dump_get_token_sid_reply( const struct get_token_sid_reply
*req
)
3981 fprintf( stderr
, " sid_len=%u", req
->sid_len
);
3982 dump_varargs_sid( ", sid=", cur_size
);
3985 static void dump_get_token_groups_request( const struct get_token_groups_request
*req
)
3987 fprintf( stderr
, " handle=%04x", req
->handle
);
3988 fprintf( stderr
, ", attr_mask=%08x", req
->attr_mask
);
3991 static void dump_get_token_groups_reply( const struct get_token_groups_reply
*req
)
3993 fprintf( stderr
, " attr_len=%u", req
->attr_len
);
3994 fprintf( stderr
, ", sid_len=%u", req
->sid_len
);
3995 dump_varargs_uints( ", attrs=", min(cur_size
,req
->attr_len
) );
3996 dump_varargs_sids( ", sids=", cur_size
);
3999 static void dump_get_token_default_dacl_request( const struct get_token_default_dacl_request
*req
)
4001 fprintf( stderr
, " handle=%04x", req
->handle
);
4004 static void dump_get_token_default_dacl_reply( const struct get_token_default_dacl_reply
*req
)
4006 fprintf( stderr
, " acl_len=%u", req
->acl_len
);
4007 dump_varargs_acl( ", acl=", cur_size
);
4010 static void dump_set_token_default_dacl_request( const struct set_token_default_dacl_request
*req
)
4012 fprintf( stderr
, " handle=%04x", req
->handle
);
4013 dump_varargs_acl( ", acl=", cur_size
);
4016 static void dump_set_security_object_request( const struct set_security_object_request
*req
)
4018 fprintf( stderr
, " handle=%04x", req
->handle
);
4019 fprintf( stderr
, ", security_info=%08x", req
->security_info
);
4020 dump_varargs_security_descriptor( ", sd=", cur_size
);
4023 static void dump_get_security_object_request( const struct get_security_object_request
*req
)
4025 fprintf( stderr
, " handle=%04x", req
->handle
);
4026 fprintf( stderr
, ", security_info=%08x", req
->security_info
);
4029 static void dump_get_security_object_reply( const struct get_security_object_reply
*req
)
4031 fprintf( stderr
, " sd_len=%08x", req
->sd_len
);
4032 dump_varargs_security_descriptor( ", sd=", cur_size
);
4035 static void dump_get_system_handles_request( const struct get_system_handles_request
*req
)
4039 static void dump_get_system_handles_reply( const struct get_system_handles_reply
*req
)
4041 fprintf( stderr
, " count=%08x", req
->count
);
4042 dump_varargs_handle_infos( ", data=", cur_size
);
4045 static void dump_create_mailslot_request( const struct create_mailslot_request
*req
)
4047 fprintf( stderr
, " access=%08x", req
->access
);
4048 dump_timeout( ", read_timeout=", &req
->read_timeout
);
4049 fprintf( stderr
, ", max_msgsize=%08x", req
->max_msgsize
);
4050 dump_varargs_object_attributes( ", objattr=", cur_size
);
4053 static void dump_create_mailslot_reply( const struct create_mailslot_reply
*req
)
4055 fprintf( stderr
, " handle=%04x", req
->handle
);
4058 static void dump_set_mailslot_info_request( const struct set_mailslot_info_request
*req
)
4060 fprintf( stderr
, " handle=%04x", req
->handle
);
4061 dump_timeout( ", read_timeout=", &req
->read_timeout
);
4062 fprintf( stderr
, ", flags=%08x", req
->flags
);
4065 static void dump_set_mailslot_info_reply( const struct set_mailslot_info_reply
*req
)
4067 dump_timeout( " read_timeout=", &req
->read_timeout
);
4068 fprintf( stderr
, ", max_msgsize=%08x", req
->max_msgsize
);
4071 static void dump_create_directory_request( const struct create_directory_request
*req
)
4073 fprintf( stderr
, " access=%08x", req
->access
);
4074 dump_varargs_object_attributes( ", objattr=", cur_size
);
4077 static void dump_create_directory_reply( const struct create_directory_reply
*req
)
4079 fprintf( stderr
, " handle=%04x", req
->handle
);
4082 static void dump_open_directory_request( const struct open_directory_request
*req
)
4084 fprintf( stderr
, " access=%08x", req
->access
);
4085 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
4086 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
4087 dump_varargs_unicode_str( ", directory_name=", cur_size
);
4090 static void dump_open_directory_reply( const struct open_directory_reply
*req
)
4092 fprintf( stderr
, " handle=%04x", req
->handle
);
4095 static void dump_get_directory_entry_request( const struct get_directory_entry_request
*req
)
4097 fprintf( stderr
, " handle=%04x", req
->handle
);
4098 fprintf( stderr
, ", index=%08x", req
->index
);
4101 static void dump_get_directory_entry_reply( const struct get_directory_entry_reply
*req
)
4103 fprintf( stderr
, " total_len=%u", req
->total_len
);
4104 fprintf( stderr
, ", name_len=%u", req
->name_len
);
4105 dump_varargs_unicode_str( ", name=", min(cur_size
,req
->name_len
) );
4106 dump_varargs_unicode_str( ", type=", cur_size
);
4109 static void dump_create_symlink_request( const struct create_symlink_request
*req
)
4111 fprintf( stderr
, " access=%08x", req
->access
);
4112 dump_varargs_object_attributes( ", objattr=", cur_size
);
4113 dump_varargs_unicode_str( ", target_name=", cur_size
);
4116 static void dump_create_symlink_reply( const struct create_symlink_reply
*req
)
4118 fprintf( stderr
, " handle=%04x", req
->handle
);
4121 static void dump_open_symlink_request( const struct open_symlink_request
*req
)
4123 fprintf( stderr
, " access=%08x", req
->access
);
4124 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
4125 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
4126 dump_varargs_unicode_str( ", name=", cur_size
);
4129 static void dump_open_symlink_reply( const struct open_symlink_reply
*req
)
4131 fprintf( stderr
, " handle=%04x", req
->handle
);
4134 static void dump_query_symlink_request( const struct query_symlink_request
*req
)
4136 fprintf( stderr
, " handle=%04x", req
->handle
);
4139 static void dump_query_symlink_reply( const struct query_symlink_reply
*req
)
4141 fprintf( stderr
, " total=%u", req
->total
);
4142 dump_varargs_unicode_str( ", target_name=", cur_size
);
4145 static void dump_get_object_info_request( const struct get_object_info_request
*req
)
4147 fprintf( stderr
, " handle=%04x", req
->handle
);
4150 static void dump_get_object_info_reply( const struct get_object_info_reply
*req
)
4152 fprintf( stderr
, " access=%08x", req
->access
);
4153 fprintf( stderr
, ", ref_count=%08x", req
->ref_count
);
4154 fprintf( stderr
, ", handle_count=%08x", req
->handle_count
);
4157 static void dump_get_object_name_request( const struct get_object_name_request
*req
)
4159 fprintf( stderr
, " handle=%04x", req
->handle
);
4162 static void dump_get_object_name_reply( const struct get_object_name_reply
*req
)
4164 fprintf( stderr
, " total=%u", req
->total
);
4165 dump_varargs_unicode_str( ", name=", cur_size
);
4168 static void dump_get_object_type_request( const struct get_object_type_request
*req
)
4170 fprintf( stderr
, " handle=%04x", req
->handle
);
4173 static void dump_get_object_type_reply( const struct get_object_type_reply
*req
)
4175 dump_varargs_object_type_info( " info=", cur_size
);
4178 static void dump_get_object_types_request( const struct get_object_types_request
*req
)
4182 static void dump_get_object_types_reply( const struct get_object_types_reply
*req
)
4184 fprintf( stderr
, " count=%d", req
->count
);
4185 dump_varargs_object_types_info( ", info=", cur_size
);
4188 static void dump_allocate_locally_unique_id_request( const struct allocate_locally_unique_id_request
*req
)
4192 static void dump_allocate_locally_unique_id_reply( const struct allocate_locally_unique_id_reply
*req
)
4194 dump_luid( " luid=", &req
->luid
);
4197 static void dump_create_device_manager_request( const struct create_device_manager_request
*req
)
4199 fprintf( stderr
, " access=%08x", req
->access
);
4200 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
4203 static void dump_create_device_manager_reply( const struct create_device_manager_reply
*req
)
4205 fprintf( stderr
, " handle=%04x", req
->handle
);
4208 static void dump_create_device_request( const struct create_device_request
*req
)
4210 fprintf( stderr
, " rootdir=%04x", req
->rootdir
);
4211 dump_uint64( ", user_ptr=", &req
->user_ptr
);
4212 fprintf( stderr
, ", manager=%04x", req
->manager
);
4213 dump_varargs_unicode_str( ", name=", cur_size
);
4216 static void dump_delete_device_request( const struct delete_device_request
*req
)
4218 fprintf( stderr
, " manager=%04x", req
->manager
);
4219 dump_uint64( ", device=", &req
->device
);
4222 static void dump_get_next_device_request_request( const struct get_next_device_request_request
*req
)
4224 fprintf( stderr
, " manager=%04x", req
->manager
);
4225 fprintf( stderr
, ", prev=%04x", req
->prev
);
4226 fprintf( stderr
, ", status=%08x", req
->status
);
4227 dump_uint64( ", user_ptr=", &req
->user_ptr
);
4228 fprintf( stderr
, ", pending=%d", req
->pending
);
4229 fprintf( stderr
, ", iosb_status=%08x", req
->iosb_status
);
4230 fprintf( stderr
, ", result=%u", req
->result
);
4231 dump_varargs_bytes( ", data=", cur_size
);
4234 static void dump_get_next_device_request_reply( const struct get_next_device_request_reply
*req
)
4236 dump_irp_params( " params=", &req
->params
);
4237 fprintf( stderr
, ", next=%04x", req
->next
);
4238 fprintf( stderr
, ", client_tid=%04x", req
->client_tid
);
4239 dump_uint64( ", client_thread=", &req
->client_thread
);
4240 fprintf( stderr
, ", in_size=%u", req
->in_size
);
4241 dump_varargs_bytes( ", next_data=", cur_size
);
4244 static void dump_get_kernel_object_ptr_request( const struct get_kernel_object_ptr_request
*req
)
4246 fprintf( stderr
, " manager=%04x", req
->manager
);
4247 fprintf( stderr
, ", handle=%04x", req
->handle
);
4250 static void dump_get_kernel_object_ptr_reply( const struct get_kernel_object_ptr_reply
*req
)
4252 dump_uint64( " user_ptr=", &req
->user_ptr
);
4255 static void dump_set_kernel_object_ptr_request( const struct set_kernel_object_ptr_request
*req
)
4257 fprintf( stderr
, " manager=%04x", req
->manager
);
4258 fprintf( stderr
, ", handle=%04x", req
->handle
);
4259 dump_uint64( ", user_ptr=", &req
->user_ptr
);
4262 static void dump_grab_kernel_object_request( const struct grab_kernel_object_request
*req
)
4264 fprintf( stderr
, " manager=%04x", req
->manager
);
4265 dump_uint64( ", user_ptr=", &req
->user_ptr
);
4268 static void dump_release_kernel_object_request( const struct release_kernel_object_request
*req
)
4270 fprintf( stderr
, " manager=%04x", req
->manager
);
4271 dump_uint64( ", user_ptr=", &req
->user_ptr
);
4274 static void dump_get_kernel_object_handle_request( const struct get_kernel_object_handle_request
*req
)
4276 fprintf( stderr
, " manager=%04x", req
->manager
);
4277 dump_uint64( ", user_ptr=", &req
->user_ptr
);
4278 fprintf( stderr
, ", access=%08x", req
->access
);
4281 static void dump_get_kernel_object_handle_reply( const struct get_kernel_object_handle_reply
*req
)
4283 fprintf( stderr
, " handle=%04x", req
->handle
);
4286 static void dump_make_process_system_request( const struct make_process_system_request
*req
)
4288 fprintf( stderr
, " handle=%04x", req
->handle
);
4291 static void dump_make_process_system_reply( const struct make_process_system_reply
*req
)
4293 fprintf( stderr
, " event=%04x", req
->event
);
4296 static void dump_get_token_info_request( const struct get_token_info_request
*req
)
4298 fprintf( stderr
, " handle=%04x", req
->handle
);
4301 static void dump_get_token_info_reply( const struct get_token_info_reply
*req
)
4303 dump_luid( " token_id=", &req
->token_id
);
4304 dump_luid( ", modified_id=", &req
->modified_id
);
4305 fprintf( stderr
, ", session_id=%08x", req
->session_id
);
4306 fprintf( stderr
, ", primary=%d", req
->primary
);
4307 fprintf( stderr
, ", impersonation_level=%d", req
->impersonation_level
);
4308 fprintf( stderr
, ", elevation=%d", req
->elevation
);
4309 fprintf( stderr
, ", group_count=%d", req
->group_count
);
4310 fprintf( stderr
, ", privilege_count=%d", req
->privilege_count
);
4313 static void dump_create_linked_token_request( const struct create_linked_token_request
*req
)
4315 fprintf( stderr
, " handle=%04x", req
->handle
);
4318 static void dump_create_linked_token_reply( const struct create_linked_token_reply
*req
)
4320 fprintf( stderr
, " linked=%04x", req
->linked
);
4323 static void dump_create_completion_request( const struct create_completion_request
*req
)
4325 fprintf( stderr
, " access=%08x", req
->access
);
4326 fprintf( stderr
, ", concurrent=%08x", req
->concurrent
);
4327 dump_varargs_object_attributes( ", objattr=", cur_size
);
4330 static void dump_create_completion_reply( const struct create_completion_reply
*req
)
4332 fprintf( stderr
, " handle=%04x", req
->handle
);
4335 static void dump_open_completion_request( const struct open_completion_request
*req
)
4337 fprintf( stderr
, " access=%08x", req
->access
);
4338 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
4339 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
4340 dump_varargs_unicode_str( ", filename=", cur_size
);
4343 static void dump_open_completion_reply( const struct open_completion_reply
*req
)
4345 fprintf( stderr
, " handle=%04x", req
->handle
);
4348 static void dump_add_completion_request( const struct add_completion_request
*req
)
4350 fprintf( stderr
, " handle=%04x", req
->handle
);
4351 dump_uint64( ", ckey=", &req
->ckey
);
4352 dump_uint64( ", cvalue=", &req
->cvalue
);
4353 dump_uint64( ", information=", &req
->information
);
4354 fprintf( stderr
, ", status=%08x", req
->status
);
4357 static void dump_remove_completion_request( const struct remove_completion_request
*req
)
4359 fprintf( stderr
, " handle=%04x", req
->handle
);
4362 static void dump_remove_completion_reply( const struct remove_completion_reply
*req
)
4364 dump_uint64( " ckey=", &req
->ckey
);
4365 dump_uint64( ", cvalue=", &req
->cvalue
);
4366 dump_uint64( ", information=", &req
->information
);
4367 fprintf( stderr
, ", status=%08x", req
->status
);
4370 static void dump_query_completion_request( const struct query_completion_request
*req
)
4372 fprintf( stderr
, " handle=%04x", req
->handle
);
4375 static void dump_query_completion_reply( const struct query_completion_reply
*req
)
4377 fprintf( stderr
, " depth=%08x", req
->depth
);
4380 static void dump_set_completion_info_request( const struct set_completion_info_request
*req
)
4382 fprintf( stderr
, " handle=%04x", req
->handle
);
4383 dump_uint64( ", ckey=", &req
->ckey
);
4384 fprintf( stderr
, ", chandle=%04x", req
->chandle
);
4387 static void dump_add_fd_completion_request( const struct add_fd_completion_request
*req
)
4389 fprintf( stderr
, " handle=%04x", req
->handle
);
4390 dump_uint64( ", cvalue=", &req
->cvalue
);
4391 dump_uint64( ", information=", &req
->information
);
4392 fprintf( stderr
, ", status=%08x", req
->status
);
4393 fprintf( stderr
, ", async=%d", req
->async
);
4396 static void dump_set_fd_completion_mode_request( const struct set_fd_completion_mode_request
*req
)
4398 fprintf( stderr
, " handle=%04x", req
->handle
);
4399 fprintf( stderr
, ", flags=%08x", req
->flags
);
4402 static void dump_set_fd_disp_info_request( const struct set_fd_disp_info_request
*req
)
4404 fprintf( stderr
, " handle=%04x", req
->handle
);
4405 fprintf( stderr
, ", flags=%08x", req
->flags
);
4408 static void dump_set_fd_name_info_request( const struct set_fd_name_info_request
*req
)
4410 fprintf( stderr
, " handle=%04x", req
->handle
);
4411 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
4412 fprintf( stderr
, ", namelen=%u", req
->namelen
);
4413 fprintf( stderr
, ", link=%d", req
->link
);
4414 fprintf( stderr
, ", replace=%d", req
->replace
);
4415 dump_varargs_unicode_str( ", name=", min(cur_size
,req
->namelen
) );
4416 dump_varargs_string( ", filename=", cur_size
);
4419 static void dump_set_fd_eof_info_request( const struct set_fd_eof_info_request
*req
)
4421 fprintf( stderr
, " handle=%04x", req
->handle
);
4422 dump_uint64( ", eof=", &req
->eof
);
4425 static void dump_get_window_layered_info_request( const struct get_window_layered_info_request
*req
)
4427 fprintf( stderr
, " handle=%08x", req
->handle
);
4430 static void dump_get_window_layered_info_reply( const struct get_window_layered_info_reply
*req
)
4432 fprintf( stderr
, " color_key=%08x", req
->color_key
);
4433 fprintf( stderr
, ", alpha=%08x", req
->alpha
);
4434 fprintf( stderr
, ", flags=%08x", req
->flags
);
4437 static void dump_set_window_layered_info_request( const struct set_window_layered_info_request
*req
)
4439 fprintf( stderr
, " handle=%08x", req
->handle
);
4440 fprintf( stderr
, ", color_key=%08x", req
->color_key
);
4441 fprintf( stderr
, ", alpha=%08x", req
->alpha
);
4442 fprintf( stderr
, ", flags=%08x", req
->flags
);
4445 static void dump_alloc_user_handle_request( const struct alloc_user_handle_request
*req
)
4449 static void dump_alloc_user_handle_reply( const struct alloc_user_handle_reply
*req
)
4451 fprintf( stderr
, " handle=%08x", req
->handle
);
4454 static void dump_free_user_handle_request( const struct free_user_handle_request
*req
)
4456 fprintf( stderr
, " handle=%08x", req
->handle
);
4459 static void dump_set_cursor_request( const struct set_cursor_request
*req
)
4461 fprintf( stderr
, " flags=%08x", req
->flags
);
4462 fprintf( stderr
, ", handle=%08x", req
->handle
);
4463 fprintf( stderr
, ", show_count=%d", req
->show_count
);
4464 fprintf( stderr
, ", x=%d", req
->x
);
4465 fprintf( stderr
, ", y=%d", req
->y
);
4466 dump_rectangle( ", clip=", &req
->clip
);
4469 static void dump_set_cursor_reply( const struct set_cursor_reply
*req
)
4471 fprintf( stderr
, " prev_handle=%08x", req
->prev_handle
);
4472 fprintf( stderr
, ", prev_count=%d", req
->prev_count
);
4473 fprintf( stderr
, ", prev_x=%d", req
->prev_x
);
4474 fprintf( stderr
, ", prev_y=%d", req
->prev_y
);
4475 fprintf( stderr
, ", new_x=%d", req
->new_x
);
4476 fprintf( stderr
, ", new_y=%d", req
->new_y
);
4477 dump_rectangle( ", new_clip=", &req
->new_clip
);
4478 fprintf( stderr
, ", last_change=%08x", req
->last_change
);
4481 static void dump_get_cursor_history_request( const struct get_cursor_history_request
*req
)
4485 static void dump_get_cursor_history_reply( const struct get_cursor_history_reply
*req
)
4487 dump_varargs_cursor_positions( " history=", cur_size
);
4490 static void dump_get_rawinput_buffer_request( const struct get_rawinput_buffer_request
*req
)
4492 fprintf( stderr
, " rawinput_size=%u", req
->rawinput_size
);
4493 fprintf( stderr
, ", buffer_size=%u", req
->buffer_size
);
4496 static void dump_get_rawinput_buffer_reply( const struct get_rawinput_buffer_reply
*req
)
4498 fprintf( stderr
, " next_size=%u", req
->next_size
);
4499 fprintf( stderr
, ", count=%08x", req
->count
);
4500 dump_varargs_bytes( ", data=", cur_size
);
4503 static void dump_update_rawinput_devices_request( const struct update_rawinput_devices_request
*req
)
4505 dump_varargs_rawinput_devices( " devices=", cur_size
);
4508 static void dump_create_job_request( const struct create_job_request
*req
)
4510 fprintf( stderr
, " access=%08x", req
->access
);
4511 dump_varargs_object_attributes( ", objattr=", cur_size
);
4514 static void dump_create_job_reply( const struct create_job_reply
*req
)
4516 fprintf( stderr
, " handle=%04x", req
->handle
);
4519 static void dump_open_job_request( const struct open_job_request
*req
)
4521 fprintf( stderr
, " access=%08x", req
->access
);
4522 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
4523 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
4524 dump_varargs_unicode_str( ", name=", cur_size
);
4527 static void dump_open_job_reply( const struct open_job_reply
*req
)
4529 fprintf( stderr
, " handle=%04x", req
->handle
);
4532 static void dump_assign_job_request( const struct assign_job_request
*req
)
4534 fprintf( stderr
, " job=%04x", req
->job
);
4535 fprintf( stderr
, ", process=%04x", req
->process
);
4538 static void dump_process_in_job_request( const struct process_in_job_request
*req
)
4540 fprintf( stderr
, " job=%04x", req
->job
);
4541 fprintf( stderr
, ", process=%04x", req
->process
);
4544 static void dump_set_job_limits_request( const struct set_job_limits_request
*req
)
4546 fprintf( stderr
, " handle=%04x", req
->handle
);
4547 fprintf( stderr
, ", limit_flags=%08x", req
->limit_flags
);
4550 static void dump_set_job_completion_port_request( const struct set_job_completion_port_request
*req
)
4552 fprintf( stderr
, " job=%04x", req
->job
);
4553 fprintf( stderr
, ", port=%04x", req
->port
);
4554 dump_uint64( ", key=", &req
->key
);
4557 static void dump_get_job_info_request( const struct get_job_info_request
*req
)
4559 fprintf( stderr
, " handle=%04x", req
->handle
);
4562 static void dump_get_job_info_reply( const struct get_job_info_reply
*req
)
4564 fprintf( stderr
, " total_processes=%d", req
->total_processes
);
4565 fprintf( stderr
, ", active_processes=%d", req
->active_processes
);
4566 dump_varargs_uints( ", pids=", cur_size
);
4569 static void dump_terminate_job_request( const struct terminate_job_request
*req
)
4571 fprintf( stderr
, " handle=%04x", req
->handle
);
4572 fprintf( stderr
, ", status=%d", req
->status
);
4575 static void dump_suspend_process_request( const struct suspend_process_request
*req
)
4577 fprintf( stderr
, " handle=%04x", req
->handle
);
4580 static void dump_resume_process_request( const struct resume_process_request
*req
)
4582 fprintf( stderr
, " handle=%04x", req
->handle
);
4585 static void dump_get_next_thread_request( const struct get_next_thread_request
*req
)
4587 fprintf( stderr
, " process=%04x", req
->process
);
4588 fprintf( stderr
, ", last=%04x", req
->last
);
4589 fprintf( stderr
, ", access=%08x", req
->access
);
4590 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
4591 fprintf( stderr
, ", flags=%08x", req
->flags
);
4594 static void dump_get_next_thread_reply( const struct get_next_thread_reply
*req
)
4596 fprintf( stderr
, " handle=%04x", req
->handle
);
4599 static const dump_func req_dumpers
[REQ_NB_REQUESTS
] = {
4600 (dump_func
)dump_new_process_request
,
4601 (dump_func
)dump_get_new_process_info_request
,
4602 (dump_func
)dump_new_thread_request
,
4603 (dump_func
)dump_get_startup_info_request
,
4604 (dump_func
)dump_init_process_done_request
,
4605 (dump_func
)dump_init_first_thread_request
,
4606 (dump_func
)dump_init_thread_request
,
4607 (dump_func
)dump_terminate_process_request
,
4608 (dump_func
)dump_terminate_thread_request
,
4609 (dump_func
)dump_get_process_info_request
,
4610 (dump_func
)dump_get_process_debug_info_request
,
4611 (dump_func
)dump_get_process_image_name_request
,
4612 (dump_func
)dump_get_process_vm_counters_request
,
4613 (dump_func
)dump_set_process_info_request
,
4614 (dump_func
)dump_get_thread_info_request
,
4615 (dump_func
)dump_get_thread_times_request
,
4616 (dump_func
)dump_set_thread_info_request
,
4617 (dump_func
)dump_suspend_thread_request
,
4618 (dump_func
)dump_resume_thread_request
,
4619 (dump_func
)dump_queue_apc_request
,
4620 (dump_func
)dump_get_apc_result_request
,
4621 (dump_func
)dump_close_handle_request
,
4622 (dump_func
)dump_set_handle_info_request
,
4623 (dump_func
)dump_dup_handle_request
,
4624 (dump_func
)dump_compare_objects_request
,
4625 (dump_func
)dump_make_temporary_request
,
4626 (dump_func
)dump_open_process_request
,
4627 (dump_func
)dump_open_thread_request
,
4628 (dump_func
)dump_select_request
,
4629 (dump_func
)dump_create_event_request
,
4630 (dump_func
)dump_event_op_request
,
4631 (dump_func
)dump_query_event_request
,
4632 (dump_func
)dump_open_event_request
,
4633 (dump_func
)dump_create_keyed_event_request
,
4634 (dump_func
)dump_open_keyed_event_request
,
4635 (dump_func
)dump_create_mutex_request
,
4636 (dump_func
)dump_release_mutex_request
,
4637 (dump_func
)dump_open_mutex_request
,
4638 (dump_func
)dump_query_mutex_request
,
4639 (dump_func
)dump_create_semaphore_request
,
4640 (dump_func
)dump_release_semaphore_request
,
4641 (dump_func
)dump_query_semaphore_request
,
4642 (dump_func
)dump_open_semaphore_request
,
4643 (dump_func
)dump_create_file_request
,
4644 (dump_func
)dump_open_file_object_request
,
4645 (dump_func
)dump_alloc_file_handle_request
,
4646 (dump_func
)dump_get_handle_unix_name_request
,
4647 (dump_func
)dump_get_handle_fd_request
,
4648 (dump_func
)dump_get_directory_cache_entry_request
,
4649 (dump_func
)dump_flush_request
,
4650 (dump_func
)dump_get_file_info_request
,
4651 (dump_func
)dump_get_volume_info_request
,
4652 (dump_func
)dump_lock_file_request
,
4653 (dump_func
)dump_unlock_file_request
,
4654 (dump_func
)dump_recv_socket_request
,
4655 (dump_func
)dump_send_socket_request
,
4656 (dump_func
)dump_socket_get_events_request
,
4657 (dump_func
)dump_socket_send_icmp_id_request
,
4658 (dump_func
)dump_socket_get_icmp_id_request
,
4659 (dump_func
)dump_get_next_console_request_request
,
4660 (dump_func
)dump_read_directory_changes_request
,
4661 (dump_func
)dump_read_change_request
,
4662 (dump_func
)dump_create_mapping_request
,
4663 (dump_func
)dump_open_mapping_request
,
4664 (dump_func
)dump_get_mapping_info_request
,
4665 (dump_func
)dump_map_view_request
,
4666 (dump_func
)dump_map_image_view_request
,
4667 (dump_func
)dump_map_builtin_view_request
,
4668 (dump_func
)dump_get_image_view_info_request
,
4669 (dump_func
)dump_unmap_view_request
,
4670 (dump_func
)dump_get_mapping_committed_range_request
,
4671 (dump_func
)dump_add_mapping_committed_range_request
,
4672 (dump_func
)dump_is_same_mapping_request
,
4673 (dump_func
)dump_get_mapping_filename_request
,
4674 (dump_func
)dump_list_processes_request
,
4675 (dump_func
)dump_create_debug_obj_request
,
4676 (dump_func
)dump_wait_debug_event_request
,
4677 (dump_func
)dump_queue_exception_event_request
,
4678 (dump_func
)dump_get_exception_status_request
,
4679 (dump_func
)dump_continue_debug_event_request
,
4680 (dump_func
)dump_debug_process_request
,
4681 (dump_func
)dump_set_debug_obj_info_request
,
4682 (dump_func
)dump_read_process_memory_request
,
4683 (dump_func
)dump_write_process_memory_request
,
4684 (dump_func
)dump_create_key_request
,
4685 (dump_func
)dump_open_key_request
,
4686 (dump_func
)dump_delete_key_request
,
4687 (dump_func
)dump_flush_key_request
,
4688 (dump_func
)dump_enum_key_request
,
4689 (dump_func
)dump_set_key_value_request
,
4690 (dump_func
)dump_get_key_value_request
,
4691 (dump_func
)dump_enum_key_value_request
,
4692 (dump_func
)dump_delete_key_value_request
,
4693 (dump_func
)dump_load_registry_request
,
4694 (dump_func
)dump_unload_registry_request
,
4695 (dump_func
)dump_save_registry_request
,
4696 (dump_func
)dump_set_registry_notification_request
,
4697 (dump_func
)dump_rename_key_request
,
4698 (dump_func
)dump_create_timer_request
,
4699 (dump_func
)dump_open_timer_request
,
4700 (dump_func
)dump_set_timer_request
,
4701 (dump_func
)dump_cancel_timer_request
,
4702 (dump_func
)dump_get_timer_info_request
,
4703 (dump_func
)dump_get_thread_context_request
,
4704 (dump_func
)dump_set_thread_context_request
,
4705 (dump_func
)dump_get_selector_entry_request
,
4706 (dump_func
)dump_add_atom_request
,
4707 (dump_func
)dump_delete_atom_request
,
4708 (dump_func
)dump_find_atom_request
,
4709 (dump_func
)dump_get_atom_information_request
,
4710 (dump_func
)dump_get_msg_queue_request
,
4711 (dump_func
)dump_set_queue_fd_request
,
4712 (dump_func
)dump_set_queue_mask_request
,
4713 (dump_func
)dump_get_queue_status_request
,
4714 (dump_func
)dump_get_process_idle_event_request
,
4715 (dump_func
)dump_send_message_request
,
4716 (dump_func
)dump_post_quit_message_request
,
4717 (dump_func
)dump_send_hardware_message_request
,
4718 (dump_func
)dump_get_message_request
,
4719 (dump_func
)dump_reply_message_request
,
4720 (dump_func
)dump_accept_hardware_message_request
,
4721 (dump_func
)dump_get_message_reply_request
,
4722 (dump_func
)dump_set_win_timer_request
,
4723 (dump_func
)dump_kill_win_timer_request
,
4724 (dump_func
)dump_is_window_hung_request
,
4725 (dump_func
)dump_get_serial_info_request
,
4726 (dump_func
)dump_set_serial_info_request
,
4727 (dump_func
)dump_cancel_sync_request
,
4728 (dump_func
)dump_register_async_request
,
4729 (dump_func
)dump_cancel_async_request
,
4730 (dump_func
)dump_get_async_result_request
,
4731 (dump_func
)dump_set_async_direct_result_request
,
4732 (dump_func
)dump_read_request
,
4733 (dump_func
)dump_write_request
,
4734 (dump_func
)dump_ioctl_request
,
4735 (dump_func
)dump_set_irp_result_request
,
4736 (dump_func
)dump_create_named_pipe_request
,
4737 (dump_func
)dump_set_named_pipe_info_request
,
4738 (dump_func
)dump_create_window_request
,
4739 (dump_func
)dump_destroy_window_request
,
4740 (dump_func
)dump_get_desktop_window_request
,
4741 (dump_func
)dump_set_window_owner_request
,
4742 (dump_func
)dump_get_window_info_request
,
4743 (dump_func
)dump_set_window_info_request
,
4744 (dump_func
)dump_set_parent_request
,
4745 (dump_func
)dump_get_window_parents_request
,
4746 (dump_func
)dump_get_window_children_request
,
4747 (dump_func
)dump_get_window_children_from_point_request
,
4748 (dump_func
)dump_get_window_tree_request
,
4749 (dump_func
)dump_set_window_pos_request
,
4750 (dump_func
)dump_get_window_rectangles_request
,
4751 (dump_func
)dump_get_window_text_request
,
4752 (dump_func
)dump_set_window_text_request
,
4753 (dump_func
)dump_get_windows_offset_request
,
4754 (dump_func
)dump_get_visible_region_request
,
4755 (dump_func
)dump_get_surface_region_request
,
4756 (dump_func
)dump_get_window_region_request
,
4757 (dump_func
)dump_set_window_region_request
,
4758 (dump_func
)dump_get_update_region_request
,
4759 (dump_func
)dump_update_window_zorder_request
,
4760 (dump_func
)dump_redraw_window_request
,
4761 (dump_func
)dump_set_window_property_request
,
4762 (dump_func
)dump_remove_window_property_request
,
4763 (dump_func
)dump_get_window_property_request
,
4764 (dump_func
)dump_get_window_properties_request
,
4765 (dump_func
)dump_create_winstation_request
,
4766 (dump_func
)dump_open_winstation_request
,
4767 (dump_func
)dump_close_winstation_request
,
4768 (dump_func
)dump_get_process_winstation_request
,
4769 (dump_func
)dump_set_process_winstation_request
,
4770 (dump_func
)dump_enum_winstation_request
,
4771 (dump_func
)dump_create_desktop_request
,
4772 (dump_func
)dump_open_desktop_request
,
4773 (dump_func
)dump_open_input_desktop_request
,
4774 (dump_func
)dump_close_desktop_request
,
4775 (dump_func
)dump_get_thread_desktop_request
,
4776 (dump_func
)dump_set_thread_desktop_request
,
4777 (dump_func
)dump_enum_desktop_request
,
4778 (dump_func
)dump_set_user_object_info_request
,
4779 (dump_func
)dump_register_hotkey_request
,
4780 (dump_func
)dump_unregister_hotkey_request
,
4781 (dump_func
)dump_attach_thread_input_request
,
4782 (dump_func
)dump_get_thread_input_request
,
4783 (dump_func
)dump_get_last_input_time_request
,
4784 (dump_func
)dump_get_key_state_request
,
4785 (dump_func
)dump_set_key_state_request
,
4786 (dump_func
)dump_set_foreground_window_request
,
4787 (dump_func
)dump_set_focus_window_request
,
4788 (dump_func
)dump_set_active_window_request
,
4789 (dump_func
)dump_set_capture_window_request
,
4790 (dump_func
)dump_set_caret_window_request
,
4791 (dump_func
)dump_set_caret_info_request
,
4792 (dump_func
)dump_set_hook_request
,
4793 (dump_func
)dump_remove_hook_request
,
4794 (dump_func
)dump_start_hook_chain_request
,
4795 (dump_func
)dump_finish_hook_chain_request
,
4796 (dump_func
)dump_get_hook_info_request
,
4797 (dump_func
)dump_create_class_request
,
4798 (dump_func
)dump_destroy_class_request
,
4799 (dump_func
)dump_set_class_info_request
,
4800 (dump_func
)dump_open_clipboard_request
,
4801 (dump_func
)dump_close_clipboard_request
,
4802 (dump_func
)dump_empty_clipboard_request
,
4803 (dump_func
)dump_set_clipboard_data_request
,
4804 (dump_func
)dump_get_clipboard_data_request
,
4805 (dump_func
)dump_get_clipboard_formats_request
,
4806 (dump_func
)dump_enum_clipboard_formats_request
,
4807 (dump_func
)dump_release_clipboard_request
,
4808 (dump_func
)dump_get_clipboard_info_request
,
4809 (dump_func
)dump_set_clipboard_viewer_request
,
4810 (dump_func
)dump_add_clipboard_listener_request
,
4811 (dump_func
)dump_remove_clipboard_listener_request
,
4812 (dump_func
)dump_create_token_request
,
4813 (dump_func
)dump_open_token_request
,
4814 (dump_func
)dump_set_global_windows_request
,
4815 (dump_func
)dump_adjust_token_privileges_request
,
4816 (dump_func
)dump_get_token_privileges_request
,
4817 (dump_func
)dump_check_token_privileges_request
,
4818 (dump_func
)dump_duplicate_token_request
,
4819 (dump_func
)dump_filter_token_request
,
4820 (dump_func
)dump_access_check_request
,
4821 (dump_func
)dump_get_token_sid_request
,
4822 (dump_func
)dump_get_token_groups_request
,
4823 (dump_func
)dump_get_token_default_dacl_request
,
4824 (dump_func
)dump_set_token_default_dacl_request
,
4825 (dump_func
)dump_set_security_object_request
,
4826 (dump_func
)dump_get_security_object_request
,
4827 (dump_func
)dump_get_system_handles_request
,
4828 (dump_func
)dump_create_mailslot_request
,
4829 (dump_func
)dump_set_mailslot_info_request
,
4830 (dump_func
)dump_create_directory_request
,
4831 (dump_func
)dump_open_directory_request
,
4832 (dump_func
)dump_get_directory_entry_request
,
4833 (dump_func
)dump_create_symlink_request
,
4834 (dump_func
)dump_open_symlink_request
,
4835 (dump_func
)dump_query_symlink_request
,
4836 (dump_func
)dump_get_object_info_request
,
4837 (dump_func
)dump_get_object_name_request
,
4838 (dump_func
)dump_get_object_type_request
,
4839 (dump_func
)dump_get_object_types_request
,
4840 (dump_func
)dump_allocate_locally_unique_id_request
,
4841 (dump_func
)dump_create_device_manager_request
,
4842 (dump_func
)dump_create_device_request
,
4843 (dump_func
)dump_delete_device_request
,
4844 (dump_func
)dump_get_next_device_request_request
,
4845 (dump_func
)dump_get_kernel_object_ptr_request
,
4846 (dump_func
)dump_set_kernel_object_ptr_request
,
4847 (dump_func
)dump_grab_kernel_object_request
,
4848 (dump_func
)dump_release_kernel_object_request
,
4849 (dump_func
)dump_get_kernel_object_handle_request
,
4850 (dump_func
)dump_make_process_system_request
,
4851 (dump_func
)dump_get_token_info_request
,
4852 (dump_func
)dump_create_linked_token_request
,
4853 (dump_func
)dump_create_completion_request
,
4854 (dump_func
)dump_open_completion_request
,
4855 (dump_func
)dump_add_completion_request
,
4856 (dump_func
)dump_remove_completion_request
,
4857 (dump_func
)dump_query_completion_request
,
4858 (dump_func
)dump_set_completion_info_request
,
4859 (dump_func
)dump_add_fd_completion_request
,
4860 (dump_func
)dump_set_fd_completion_mode_request
,
4861 (dump_func
)dump_set_fd_disp_info_request
,
4862 (dump_func
)dump_set_fd_name_info_request
,
4863 (dump_func
)dump_set_fd_eof_info_request
,
4864 (dump_func
)dump_get_window_layered_info_request
,
4865 (dump_func
)dump_set_window_layered_info_request
,
4866 (dump_func
)dump_alloc_user_handle_request
,
4867 (dump_func
)dump_free_user_handle_request
,
4868 (dump_func
)dump_set_cursor_request
,
4869 (dump_func
)dump_get_cursor_history_request
,
4870 (dump_func
)dump_get_rawinput_buffer_request
,
4871 (dump_func
)dump_update_rawinput_devices_request
,
4872 (dump_func
)dump_create_job_request
,
4873 (dump_func
)dump_open_job_request
,
4874 (dump_func
)dump_assign_job_request
,
4875 (dump_func
)dump_process_in_job_request
,
4876 (dump_func
)dump_set_job_limits_request
,
4877 (dump_func
)dump_set_job_completion_port_request
,
4878 (dump_func
)dump_get_job_info_request
,
4879 (dump_func
)dump_terminate_job_request
,
4880 (dump_func
)dump_suspend_process_request
,
4881 (dump_func
)dump_resume_process_request
,
4882 (dump_func
)dump_get_next_thread_request
,
4885 static const dump_func reply_dumpers
[REQ_NB_REQUESTS
] = {
4886 (dump_func
)dump_new_process_reply
,
4887 (dump_func
)dump_get_new_process_info_reply
,
4888 (dump_func
)dump_new_thread_reply
,
4889 (dump_func
)dump_get_startup_info_reply
,
4890 (dump_func
)dump_init_process_done_reply
,
4891 (dump_func
)dump_init_first_thread_reply
,
4892 (dump_func
)dump_init_thread_reply
,
4893 (dump_func
)dump_terminate_process_reply
,
4894 (dump_func
)dump_terminate_thread_reply
,
4895 (dump_func
)dump_get_process_info_reply
,
4896 (dump_func
)dump_get_process_debug_info_reply
,
4897 (dump_func
)dump_get_process_image_name_reply
,
4898 (dump_func
)dump_get_process_vm_counters_reply
,
4900 (dump_func
)dump_get_thread_info_reply
,
4901 (dump_func
)dump_get_thread_times_reply
,
4903 (dump_func
)dump_suspend_thread_reply
,
4904 (dump_func
)dump_resume_thread_reply
,
4905 (dump_func
)dump_queue_apc_reply
,
4906 (dump_func
)dump_get_apc_result_reply
,
4908 (dump_func
)dump_set_handle_info_reply
,
4909 (dump_func
)dump_dup_handle_reply
,
4912 (dump_func
)dump_open_process_reply
,
4913 (dump_func
)dump_open_thread_reply
,
4914 (dump_func
)dump_select_reply
,
4915 (dump_func
)dump_create_event_reply
,
4916 (dump_func
)dump_event_op_reply
,
4917 (dump_func
)dump_query_event_reply
,
4918 (dump_func
)dump_open_event_reply
,
4919 (dump_func
)dump_create_keyed_event_reply
,
4920 (dump_func
)dump_open_keyed_event_reply
,
4921 (dump_func
)dump_create_mutex_reply
,
4922 (dump_func
)dump_release_mutex_reply
,
4923 (dump_func
)dump_open_mutex_reply
,
4924 (dump_func
)dump_query_mutex_reply
,
4925 (dump_func
)dump_create_semaphore_reply
,
4926 (dump_func
)dump_release_semaphore_reply
,
4927 (dump_func
)dump_query_semaphore_reply
,
4928 (dump_func
)dump_open_semaphore_reply
,
4929 (dump_func
)dump_create_file_reply
,
4930 (dump_func
)dump_open_file_object_reply
,
4931 (dump_func
)dump_alloc_file_handle_reply
,
4932 (dump_func
)dump_get_handle_unix_name_reply
,
4933 (dump_func
)dump_get_handle_fd_reply
,
4934 (dump_func
)dump_get_directory_cache_entry_reply
,
4935 (dump_func
)dump_flush_reply
,
4936 (dump_func
)dump_get_file_info_reply
,
4937 (dump_func
)dump_get_volume_info_reply
,
4938 (dump_func
)dump_lock_file_reply
,
4940 (dump_func
)dump_recv_socket_reply
,
4941 (dump_func
)dump_send_socket_reply
,
4942 (dump_func
)dump_socket_get_events_reply
,
4944 (dump_func
)dump_socket_get_icmp_id_reply
,
4945 (dump_func
)dump_get_next_console_request_reply
,
4947 (dump_func
)dump_read_change_reply
,
4948 (dump_func
)dump_create_mapping_reply
,
4949 (dump_func
)dump_open_mapping_reply
,
4950 (dump_func
)dump_get_mapping_info_reply
,
4954 (dump_func
)dump_get_image_view_info_reply
,
4956 (dump_func
)dump_get_mapping_committed_range_reply
,
4959 (dump_func
)dump_get_mapping_filename_reply
,
4960 (dump_func
)dump_list_processes_reply
,
4961 (dump_func
)dump_create_debug_obj_reply
,
4962 (dump_func
)dump_wait_debug_event_reply
,
4963 (dump_func
)dump_queue_exception_event_reply
,
4968 (dump_func
)dump_read_process_memory_reply
,
4970 (dump_func
)dump_create_key_reply
,
4971 (dump_func
)dump_open_key_reply
,
4974 (dump_func
)dump_enum_key_reply
,
4976 (dump_func
)dump_get_key_value_reply
,
4977 (dump_func
)dump_enum_key_value_reply
,
4984 (dump_func
)dump_create_timer_reply
,
4985 (dump_func
)dump_open_timer_reply
,
4986 (dump_func
)dump_set_timer_reply
,
4987 (dump_func
)dump_cancel_timer_reply
,
4988 (dump_func
)dump_get_timer_info_reply
,
4989 (dump_func
)dump_get_thread_context_reply
,
4990 (dump_func
)dump_set_thread_context_reply
,
4991 (dump_func
)dump_get_selector_entry_reply
,
4992 (dump_func
)dump_add_atom_reply
,
4994 (dump_func
)dump_find_atom_reply
,
4995 (dump_func
)dump_get_atom_information_reply
,
4996 (dump_func
)dump_get_msg_queue_reply
,
4998 (dump_func
)dump_set_queue_mask_reply
,
4999 (dump_func
)dump_get_queue_status_reply
,
5000 (dump_func
)dump_get_process_idle_event_reply
,
5003 (dump_func
)dump_send_hardware_message_reply
,
5004 (dump_func
)dump_get_message_reply
,
5007 (dump_func
)dump_get_message_reply_reply
,
5008 (dump_func
)dump_set_win_timer_reply
,
5010 (dump_func
)dump_is_window_hung_reply
,
5011 (dump_func
)dump_get_serial_info_reply
,
5016 (dump_func
)dump_get_async_result_reply
,
5017 (dump_func
)dump_set_async_direct_result_reply
,
5018 (dump_func
)dump_read_reply
,
5019 (dump_func
)dump_write_reply
,
5020 (dump_func
)dump_ioctl_reply
,
5022 (dump_func
)dump_create_named_pipe_reply
,
5024 (dump_func
)dump_create_window_reply
,
5026 (dump_func
)dump_get_desktop_window_reply
,
5027 (dump_func
)dump_set_window_owner_reply
,
5028 (dump_func
)dump_get_window_info_reply
,
5029 (dump_func
)dump_set_window_info_reply
,
5030 (dump_func
)dump_set_parent_reply
,
5031 (dump_func
)dump_get_window_parents_reply
,
5032 (dump_func
)dump_get_window_children_reply
,
5033 (dump_func
)dump_get_window_children_from_point_reply
,
5034 (dump_func
)dump_get_window_tree_reply
,
5035 (dump_func
)dump_set_window_pos_reply
,
5036 (dump_func
)dump_get_window_rectangles_reply
,
5037 (dump_func
)dump_get_window_text_reply
,
5039 (dump_func
)dump_get_windows_offset_reply
,
5040 (dump_func
)dump_get_visible_region_reply
,
5041 (dump_func
)dump_get_surface_region_reply
,
5042 (dump_func
)dump_get_window_region_reply
,
5044 (dump_func
)dump_get_update_region_reply
,
5048 (dump_func
)dump_remove_window_property_reply
,
5049 (dump_func
)dump_get_window_property_reply
,
5050 (dump_func
)dump_get_window_properties_reply
,
5051 (dump_func
)dump_create_winstation_reply
,
5052 (dump_func
)dump_open_winstation_reply
,
5054 (dump_func
)dump_get_process_winstation_reply
,
5056 (dump_func
)dump_enum_winstation_reply
,
5057 (dump_func
)dump_create_desktop_reply
,
5058 (dump_func
)dump_open_desktop_reply
,
5059 (dump_func
)dump_open_input_desktop_reply
,
5061 (dump_func
)dump_get_thread_desktop_reply
,
5063 (dump_func
)dump_enum_desktop_reply
,
5064 (dump_func
)dump_set_user_object_info_reply
,
5065 (dump_func
)dump_register_hotkey_reply
,
5066 (dump_func
)dump_unregister_hotkey_reply
,
5068 (dump_func
)dump_get_thread_input_reply
,
5069 (dump_func
)dump_get_last_input_time_reply
,
5070 (dump_func
)dump_get_key_state_reply
,
5072 (dump_func
)dump_set_foreground_window_reply
,
5073 (dump_func
)dump_set_focus_window_reply
,
5074 (dump_func
)dump_set_active_window_reply
,
5075 (dump_func
)dump_set_capture_window_reply
,
5076 (dump_func
)dump_set_caret_window_reply
,
5077 (dump_func
)dump_set_caret_info_reply
,
5078 (dump_func
)dump_set_hook_reply
,
5079 (dump_func
)dump_remove_hook_reply
,
5080 (dump_func
)dump_start_hook_chain_reply
,
5082 (dump_func
)dump_get_hook_info_reply
,
5083 (dump_func
)dump_create_class_reply
,
5084 (dump_func
)dump_destroy_class_reply
,
5085 (dump_func
)dump_set_class_info_reply
,
5086 (dump_func
)dump_open_clipboard_reply
,
5087 (dump_func
)dump_close_clipboard_reply
,
5089 (dump_func
)dump_set_clipboard_data_reply
,
5090 (dump_func
)dump_get_clipboard_data_reply
,
5091 (dump_func
)dump_get_clipboard_formats_reply
,
5092 (dump_func
)dump_enum_clipboard_formats_reply
,
5093 (dump_func
)dump_release_clipboard_reply
,
5094 (dump_func
)dump_get_clipboard_info_reply
,
5095 (dump_func
)dump_set_clipboard_viewer_reply
,
5098 (dump_func
)dump_create_token_reply
,
5099 (dump_func
)dump_open_token_reply
,
5100 (dump_func
)dump_set_global_windows_reply
,
5101 (dump_func
)dump_adjust_token_privileges_reply
,
5102 (dump_func
)dump_get_token_privileges_reply
,
5103 (dump_func
)dump_check_token_privileges_reply
,
5104 (dump_func
)dump_duplicate_token_reply
,
5105 (dump_func
)dump_filter_token_reply
,
5106 (dump_func
)dump_access_check_reply
,
5107 (dump_func
)dump_get_token_sid_reply
,
5108 (dump_func
)dump_get_token_groups_reply
,
5109 (dump_func
)dump_get_token_default_dacl_reply
,
5112 (dump_func
)dump_get_security_object_reply
,
5113 (dump_func
)dump_get_system_handles_reply
,
5114 (dump_func
)dump_create_mailslot_reply
,
5115 (dump_func
)dump_set_mailslot_info_reply
,
5116 (dump_func
)dump_create_directory_reply
,
5117 (dump_func
)dump_open_directory_reply
,
5118 (dump_func
)dump_get_directory_entry_reply
,
5119 (dump_func
)dump_create_symlink_reply
,
5120 (dump_func
)dump_open_symlink_reply
,
5121 (dump_func
)dump_query_symlink_reply
,
5122 (dump_func
)dump_get_object_info_reply
,
5123 (dump_func
)dump_get_object_name_reply
,
5124 (dump_func
)dump_get_object_type_reply
,
5125 (dump_func
)dump_get_object_types_reply
,
5126 (dump_func
)dump_allocate_locally_unique_id_reply
,
5127 (dump_func
)dump_create_device_manager_reply
,
5130 (dump_func
)dump_get_next_device_request_reply
,
5131 (dump_func
)dump_get_kernel_object_ptr_reply
,
5135 (dump_func
)dump_get_kernel_object_handle_reply
,
5136 (dump_func
)dump_make_process_system_reply
,
5137 (dump_func
)dump_get_token_info_reply
,
5138 (dump_func
)dump_create_linked_token_reply
,
5139 (dump_func
)dump_create_completion_reply
,
5140 (dump_func
)dump_open_completion_reply
,
5142 (dump_func
)dump_remove_completion_reply
,
5143 (dump_func
)dump_query_completion_reply
,
5150 (dump_func
)dump_get_window_layered_info_reply
,
5152 (dump_func
)dump_alloc_user_handle_reply
,
5154 (dump_func
)dump_set_cursor_reply
,
5155 (dump_func
)dump_get_cursor_history_reply
,
5156 (dump_func
)dump_get_rawinput_buffer_reply
,
5158 (dump_func
)dump_create_job_reply
,
5159 (dump_func
)dump_open_job_reply
,
5164 (dump_func
)dump_get_job_info_reply
,
5168 (dump_func
)dump_get_next_thread_reply
,
5171 static const char * const req_names
[REQ_NB_REQUESTS
] = {
5173 "get_new_process_info",
5176 "init_process_done",
5177 "init_first_thread",
5179 "terminate_process",
5182 "get_process_debug_info",
5183 "get_process_image_name",
5184 "get_process_vm_counters",
5205 "create_keyed_event",
5212 "release_semaphore",
5217 "alloc_file_handle",
5218 "get_handle_unix_name",
5220 "get_directory_cache_entry",
5228 "socket_get_events",
5229 "socket_send_icmp_id",
5230 "socket_get_icmp_id",
5231 "get_next_console_request",
5232 "read_directory_changes",
5240 "get_image_view_info",
5242 "get_mapping_committed_range",
5243 "add_mapping_committed_range",
5245 "get_mapping_filename",
5249 "queue_exception_event",
5250 "get_exception_status",
5251 "continue_debug_event",
5253 "set_debug_obj_info",
5254 "read_process_memory",
5255 "write_process_memory",
5268 "set_registry_notification",
5275 "get_thread_context",
5276 "set_thread_context",
5277 "get_selector_entry",
5281 "get_atom_information",
5286 "get_process_idle_event",
5288 "post_quit_message",
5289 "send_hardware_message",
5292 "accept_hardware_message",
5293 "get_message_reply",
5303 "set_async_direct_result",
5308 "create_named_pipe",
5309 "set_named_pipe_info",
5312 "get_desktop_window",
5317 "get_window_parents",
5318 "get_window_children",
5319 "get_window_children_from_point",
5322 "get_window_rectangles",
5325 "get_windows_offset",
5326 "get_visible_region",
5327 "get_surface_region",
5328 "get_window_region",
5329 "set_window_region",
5330 "get_update_region",
5331 "update_window_zorder",
5333 "set_window_property",
5334 "remove_window_property",
5335 "get_window_property",
5336 "get_window_properties",
5337 "create_winstation",
5340 "get_process_winstation",
5341 "set_process_winstation",
5345 "open_input_desktop",
5347 "get_thread_desktop",
5348 "set_thread_desktop",
5350 "set_user_object_info",
5352 "unregister_hotkey",
5353 "attach_thread_input",
5355 "get_last_input_time",
5358 "set_foreground_window",
5360 "set_active_window",
5361 "set_capture_window",
5367 "finish_hook_chain",
5375 "set_clipboard_data",
5376 "get_clipboard_data",
5377 "get_clipboard_formats",
5378 "enum_clipboard_formats",
5379 "release_clipboard",
5380 "get_clipboard_info",
5381 "set_clipboard_viewer",
5382 "add_clipboard_listener",
5383 "remove_clipboard_listener",
5386 "set_global_windows",
5387 "adjust_token_privileges",
5388 "get_token_privileges",
5389 "check_token_privileges",
5395 "get_token_default_dacl",
5396 "set_token_default_dacl",
5397 "set_security_object",
5398 "get_security_object",
5399 "get_system_handles",
5401 "set_mailslot_info",
5404 "get_directory_entry",
5412 "allocate_locally_unique_id",
5413 "create_device_manager",
5416 "get_next_device_request",
5417 "get_kernel_object_ptr",
5418 "set_kernel_object_ptr",
5419 "grab_kernel_object",
5420 "release_kernel_object",
5421 "get_kernel_object_handle",
5422 "make_process_system",
5424 "create_linked_token",
5425 "create_completion",
5428 "remove_completion",
5430 "set_completion_info",
5431 "add_fd_completion",
5432 "set_fd_completion_mode",
5436 "get_window_layered_info",
5437 "set_window_layered_info",
5438 "alloc_user_handle",
5441 "get_cursor_history",
5442 "get_rawinput_buffer",
5443 "update_rawinput_devices",
5449 "set_job_completion_port",
5463 { "ABANDONED_WAIT_0", STATUS_ABANDONED_WAIT_0
},
5464 { "ACCESS_DENIED", STATUS_ACCESS_DENIED
},
5465 { "ACCESS_VIOLATION", STATUS_ACCESS_VIOLATION
},
5466 { "ADDRESS_ALREADY_ASSOCIATED", STATUS_ADDRESS_ALREADY_ASSOCIATED
},
5467 { "ALERTED", STATUS_ALERTED
},
5468 { "BAD_DEVICE_TYPE", STATUS_BAD_DEVICE_TYPE
},
5469 { "BAD_IMPERSONATION_LEVEL", STATUS_BAD_IMPERSONATION_LEVEL
},
5470 { "BUFFER_OVERFLOW", STATUS_BUFFER_OVERFLOW
},
5471 { "BUFFER_TOO_SMALL", STATUS_BUFFER_TOO_SMALL
},
5472 { "CANCELLED", STATUS_CANCELLED
},
5473 { "CANNOT_DELETE", STATUS_CANNOT_DELETE
},
5474 { "CANT_OPEN_ANONYMOUS", STATUS_CANT_OPEN_ANONYMOUS
},
5475 { "CHILD_MUST_BE_VOLATILE", STATUS_CHILD_MUST_BE_VOLATILE
},
5476 { "CONNECTION_ABORTED", STATUS_CONNECTION_ABORTED
},
5477 { "CONNECTION_ACTIVE", STATUS_CONNECTION_ACTIVE
},
5478 { "CONNECTION_REFUSED", STATUS_CONNECTION_REFUSED
},
5479 { "CONNECTION_RESET", STATUS_CONNECTION_RESET
},
5480 { "DEBUGGER_INACTIVE", STATUS_DEBUGGER_INACTIVE
},
5481 { "DEVICE_BUSY", STATUS_DEVICE_BUSY
},
5482 { "DEVICE_NOT_READY", STATUS_DEVICE_NOT_READY
},
5483 { "DIRECTORY_NOT_EMPTY", STATUS_DIRECTORY_NOT_EMPTY
},
5484 { "DISK_FULL", STATUS_DISK_FULL
},
5485 { "DLL_NOT_FOUND", STATUS_DLL_NOT_FOUND
},
5486 { "ERROR_CLASS_ALREADY_EXISTS", 0xc0010000 | ERROR_CLASS_ALREADY_EXISTS
},
5487 { "ERROR_CLASS_DOES_NOT_EXIST", 0xc0010000 | ERROR_CLASS_DOES_NOT_EXIST
},
5488 { "ERROR_CLASS_HAS_WINDOWS", 0xc0010000 | ERROR_CLASS_HAS_WINDOWS
},
5489 { "ERROR_CLIPBOARD_NOT_OPEN", 0xc0010000 | ERROR_CLIPBOARD_NOT_OPEN
},
5490 { "ERROR_HOTKEY_ALREADY_REGISTERED", 0xc0010000 | ERROR_HOTKEY_ALREADY_REGISTERED
},
5491 { "ERROR_HOTKEY_NOT_REGISTERED", 0xc0010000 | ERROR_HOTKEY_NOT_REGISTERED
},
5492 { "ERROR_INVALID_CURSOR_HANDLE", 0xc0010000 | ERROR_INVALID_CURSOR_HANDLE
},
5493 { "ERROR_INVALID_INDEX", 0xc0010000 | ERROR_INVALID_INDEX
},
5494 { "ERROR_INVALID_WINDOW_HANDLE", 0xc0010000 | ERROR_INVALID_WINDOW_HANDLE
},
5495 { "ERROR_NO_MORE_USER_HANDLES", 0xc0010000 | ERROR_NO_MORE_USER_HANDLES
},
5496 { "ERROR_WINDOW_OF_OTHER_THREAD", 0xc0010000 | ERROR_WINDOW_OF_OTHER_THREAD
},
5497 { "FILE_DELETED", STATUS_FILE_DELETED
},
5498 { "FILE_INVALID", STATUS_FILE_INVALID
},
5499 { "FILE_IS_A_DIRECTORY", STATUS_FILE_IS_A_DIRECTORY
},
5500 { "FILE_LOCK_CONFLICT", STATUS_FILE_LOCK_CONFLICT
},
5501 { "GENERIC_NOT_MAPPED", STATUS_GENERIC_NOT_MAPPED
},
5502 { "HANDLES_CLOSED", STATUS_HANDLES_CLOSED
},
5503 { "HANDLE_NOT_CLOSABLE", STATUS_HANDLE_NOT_CLOSABLE
},
5504 { "HOST_UNREACHABLE", STATUS_HOST_UNREACHABLE
},
5505 { "ILLEGAL_FUNCTION", STATUS_ILLEGAL_FUNCTION
},
5506 { "IMAGE_MACHINE_TYPE_MISMATCH", STATUS_IMAGE_MACHINE_TYPE_MISMATCH
},
5507 { "IMAGE_NOT_AT_BASE", STATUS_IMAGE_NOT_AT_BASE
},
5508 { "INFO_LENGTH_MISMATCH", STATUS_INFO_LENGTH_MISMATCH
},
5509 { "INSTANCE_NOT_AVAILABLE", STATUS_INSTANCE_NOT_AVAILABLE
},
5510 { "INSUFFICIENT_RESOURCES", STATUS_INSUFFICIENT_RESOURCES
},
5511 { "INVALID_ACL", STATUS_INVALID_ACL
},
5512 { "INVALID_ADDRESS", STATUS_INVALID_ADDRESS
},
5513 { "INVALID_ADDRESS_COMPONENT", STATUS_INVALID_ADDRESS_COMPONENT
},
5514 { "INVALID_CID", STATUS_INVALID_CID
},
5515 { "INVALID_CONNECTION", STATUS_INVALID_CONNECTION
},
5516 { "INVALID_DEVICE_REQUEST", STATUS_INVALID_DEVICE_REQUEST
},
5517 { "INVALID_FILE_FOR_SECTION", STATUS_INVALID_FILE_FOR_SECTION
},
5518 { "INVALID_HANDLE", STATUS_INVALID_HANDLE
},
5519 { "INVALID_IMAGE_FORMAT", STATUS_INVALID_IMAGE_FORMAT
},
5520 { "INVALID_IMAGE_NE_FORMAT", STATUS_INVALID_IMAGE_NE_FORMAT
},
5521 { "INVALID_IMAGE_NOT_MZ", STATUS_INVALID_IMAGE_NOT_MZ
},
5522 { "INVALID_IMAGE_PROTECT", STATUS_INVALID_IMAGE_PROTECT
},
5523 { "INVALID_IMAGE_WIN_16", STATUS_INVALID_IMAGE_WIN_16
},
5524 { "INVALID_IMAGE_WIN_64", STATUS_INVALID_IMAGE_WIN_64
},
5525 { "INVALID_LOCK_SEQUENCE", STATUS_INVALID_LOCK_SEQUENCE
},
5526 { "INVALID_OWNER", STATUS_INVALID_OWNER
},
5527 { "INVALID_PARAMETER", STATUS_INVALID_PARAMETER
},
5528 { "INVALID_PIPE_STATE", STATUS_INVALID_PIPE_STATE
},
5529 { "INVALID_READ_MODE", STATUS_INVALID_READ_MODE
},
5530 { "INVALID_SECURITY_DESCR", STATUS_INVALID_SECURITY_DESCR
},
5531 { "IO_TIMEOUT", STATUS_IO_TIMEOUT
},
5532 { "KERNEL_APC", STATUS_KERNEL_APC
},
5533 { "KEY_DELETED", STATUS_KEY_DELETED
},
5534 { "MAPPED_FILE_SIZE_ZERO", STATUS_MAPPED_FILE_SIZE_ZERO
},
5535 { "MUTANT_NOT_OWNED", STATUS_MUTANT_NOT_OWNED
},
5536 { "NAME_TOO_LONG", STATUS_NAME_TOO_LONG
},
5537 { "NETWORK_BUSY", STATUS_NETWORK_BUSY
},
5538 { "NETWORK_UNREACHABLE", STATUS_NETWORK_UNREACHABLE
},
5539 { "NOT_ALL_ASSIGNED", STATUS_NOT_ALL_ASSIGNED
},
5540 { "NOT_A_DIRECTORY", STATUS_NOT_A_DIRECTORY
},
5541 { "NOT_FOUND", STATUS_NOT_FOUND
},
5542 { "NOT_IMPLEMENTED", STATUS_NOT_IMPLEMENTED
},
5543 { "NOT_MAPPED_VIEW", STATUS_NOT_MAPPED_VIEW
},
5544 { "NOT_REGISTRY_FILE", STATUS_NOT_REGISTRY_FILE
},
5545 { "NOT_SAME_DEVICE", STATUS_NOT_SAME_DEVICE
},
5546 { "NOT_SAME_OBJECT", STATUS_NOT_SAME_OBJECT
},
5547 { "NOT_SUPPORTED", STATUS_NOT_SUPPORTED
},
5548 { "NO_DATA_DETECTED", STATUS_NO_DATA_DETECTED
},
5549 { "NO_IMPERSONATION_TOKEN", STATUS_NO_IMPERSONATION_TOKEN
},
5550 { "NO_MEMORY", STATUS_NO_MEMORY
},
5551 { "NO_MORE_ENTRIES", STATUS_NO_MORE_ENTRIES
},
5552 { "NO_SUCH_DEVICE", STATUS_NO_SUCH_DEVICE
},
5553 { "NO_SUCH_FILE", STATUS_NO_SUCH_FILE
},
5554 { "NO_TOKEN", STATUS_NO_TOKEN
},
5555 { "OBJECT_NAME_COLLISION", STATUS_OBJECT_NAME_COLLISION
},
5556 { "OBJECT_NAME_EXISTS", STATUS_OBJECT_NAME_EXISTS
},
5557 { "OBJECT_NAME_INVALID", STATUS_OBJECT_NAME_INVALID
},
5558 { "OBJECT_NAME_NOT_FOUND", STATUS_OBJECT_NAME_NOT_FOUND
},
5559 { "OBJECT_PATH_INVALID", STATUS_OBJECT_PATH_INVALID
},
5560 { "OBJECT_PATH_NOT_FOUND", STATUS_OBJECT_PATH_NOT_FOUND
},
5561 { "OBJECT_PATH_SYNTAX_BAD", STATUS_OBJECT_PATH_SYNTAX_BAD
},
5562 { "OBJECT_TYPE_MISMATCH", STATUS_OBJECT_TYPE_MISMATCH
},
5563 { "PENDING", STATUS_PENDING
},
5564 { "PIPE_BROKEN", STATUS_PIPE_BROKEN
},
5565 { "PIPE_BUSY", STATUS_PIPE_BUSY
},
5566 { "PIPE_CLOSING", STATUS_PIPE_CLOSING
},
5567 { "PIPE_CONNECTED", STATUS_PIPE_CONNECTED
},
5568 { "PIPE_DISCONNECTED", STATUS_PIPE_DISCONNECTED
},
5569 { "PIPE_EMPTY", STATUS_PIPE_EMPTY
},
5570 { "PIPE_LISTENING", STATUS_PIPE_LISTENING
},
5571 { "PIPE_NOT_AVAILABLE", STATUS_PIPE_NOT_AVAILABLE
},
5572 { "PORT_NOT_SET", STATUS_PORT_NOT_SET
},
5573 { "PREDEFINED_HANDLE", STATUS_PREDEFINED_HANDLE
},
5574 { "PRIVILEGE_NOT_HELD", STATUS_PRIVILEGE_NOT_HELD
},
5575 { "PROCESS_IN_JOB", STATUS_PROCESS_IN_JOB
},
5576 { "PROCESS_IS_TERMINATING", STATUS_PROCESS_IS_TERMINATING
},
5577 { "PROCESS_NOT_IN_JOB", STATUS_PROCESS_NOT_IN_JOB
},
5578 { "REPARSE_POINT_NOT_RESOLVED", STATUS_REPARSE_POINT_NOT_RESOLVED
},
5579 { "SECTION_TOO_BIG", STATUS_SECTION_TOO_BIG
},
5580 { "SEMAPHORE_LIMIT_EXCEEDED", STATUS_SEMAPHORE_LIMIT_EXCEEDED
},
5581 { "SHARING_VIOLATION", STATUS_SHARING_VIOLATION
},
5582 { "SHUTDOWN_IN_PROGRESS", STATUS_SHUTDOWN_IN_PROGRESS
},
5583 { "SUSPEND_COUNT_EXCEEDED", STATUS_SUSPEND_COUNT_EXCEEDED
},
5584 { "THREAD_IS_TERMINATING", STATUS_THREAD_IS_TERMINATING
},
5585 { "TIMEOUT", STATUS_TIMEOUT
},
5586 { "TOO_MANY_OPENED_FILES", STATUS_TOO_MANY_OPENED_FILES
},
5587 { "UNSUCCESSFUL", STATUS_UNSUCCESSFUL
},
5588 { "USER_APC", STATUS_USER_APC
},
5589 { "USER_MAPPED_FILE", STATUS_USER_MAPPED_FILE
},
5590 { "VOLUME_DISMOUNTED", STATUS_VOLUME_DISMOUNTED
},
5591 { "WAS_LOCKED", STATUS_WAS_LOCKED
},
5592 { "WSAEACCES", 0xc0010000 | WSAEACCES
},
5593 { "WSAEADDRINUSE", 0xc0010000 | WSAEADDRINUSE
},
5594 { "WSAEADDRNOTAVAIL", 0xc0010000 | WSAEADDRNOTAVAIL
},
5595 { "WSAEAFNOSUPPORT", 0xc0010000 | WSAEAFNOSUPPORT
},
5596 { "WSAEALREADY", 0xc0010000 | WSAEALREADY
},
5597 { "WSAEBADF", 0xc0010000 | WSAEBADF
},
5598 { "WSAECONNABORTED", 0xc0010000 | WSAECONNABORTED
},
5599 { "WSAECONNREFUSED", 0xc0010000 | WSAECONNREFUSED
},
5600 { "WSAECONNRESET", 0xc0010000 | WSAECONNRESET
},
5601 { "WSAEDESTADDRREQ", 0xc0010000 | WSAEDESTADDRREQ
},
5602 { "WSAEDQUOT", 0xc0010000 | WSAEDQUOT
},
5603 { "WSAEFAULT", 0xc0010000 | WSAEFAULT
},
5604 { "WSAEHOSTDOWN", 0xc0010000 | WSAEHOSTDOWN
},
5605 { "WSAEHOSTUNREACH", 0xc0010000 | WSAEHOSTUNREACH
},
5606 { "WSAEINTR", 0xc0010000 | WSAEINTR
},
5607 { "WSAEINVAL", 0xc0010000 | WSAEINVAL
},
5608 { "WSAEISCONN", 0xc0010000 | WSAEISCONN
},
5609 { "WSAELOOP", 0xc0010000 | WSAELOOP
},
5610 { "WSAEMFILE", 0xc0010000 | WSAEMFILE
},
5611 { "WSAEMSGSIZE", 0xc0010000 | WSAEMSGSIZE
},
5612 { "WSAENAMETOOLONG", 0xc0010000 | WSAENAMETOOLONG
},
5613 { "WSAENETDOWN", 0xc0010000 | WSAENETDOWN
},
5614 { "WSAENETRESET", 0xc0010000 | WSAENETRESET
},
5615 { "WSAENETUNREACH", 0xc0010000 | WSAENETUNREACH
},
5616 { "WSAENOBUFS", 0xc0010000 | WSAENOBUFS
},
5617 { "WSAENOPROTOOPT", 0xc0010000 | WSAENOPROTOOPT
},
5618 { "WSAENOTCONN", 0xc0010000 | WSAENOTCONN
},
5619 { "WSAENOTEMPTY", 0xc0010000 | WSAENOTEMPTY
},
5620 { "WSAENOTSOCK", 0xc0010000 | WSAENOTSOCK
},
5621 { "WSAEOPNOTSUPP", 0xc0010000 | WSAEOPNOTSUPP
},
5622 { "WSAEPFNOSUPPORT", 0xc0010000 | WSAEPFNOSUPPORT
},
5623 { "WSAEPROCLIM", 0xc0010000 | WSAEPROCLIM
},
5624 { "WSAEPROTONOSUPPORT", 0xc0010000 | WSAEPROTONOSUPPORT
},
5625 { "WSAEPROTOTYPE", 0xc0010000 | WSAEPROTOTYPE
},
5626 { "WSAEREMOTE", 0xc0010000 | WSAEREMOTE
},
5627 { "WSAESHUTDOWN", 0xc0010000 | WSAESHUTDOWN
},
5628 { "WSAESOCKTNOSUPPORT", 0xc0010000 | WSAESOCKTNOSUPPORT
},
5629 { "WSAESTALE", 0xc0010000 | WSAESTALE
},
5630 { "WSAETIMEDOUT", 0xc0010000 | WSAETIMEDOUT
},
5631 { "WSAETOOMANYREFS", 0xc0010000 | WSAETOOMANYREFS
},
5632 { "WSAEUSERS", 0xc0010000 | WSAEUSERS
},
5633 { "WSAEWOULDBLOCK", 0xc0010000 | WSAEWOULDBLOCK
},
5637 /* ### make_requests end ### */
5638 /* Everything above this line is generated automatically by tools/make_requests */
5640 static const char *get_status_name( unsigned int status
)
5643 static char buffer
[10];
5647 for (i
= 0; status_names
[i
].name
; i
++)
5648 if (status_names
[i
].value
== status
) return status_names
[i
].name
;
5650 sprintf( buffer
, "%x", status
);
5654 void trace_request(void)
5656 enum request req
= current
->req
.request_header
.req
;
5657 if (req
< REQ_NB_REQUESTS
)
5659 fprintf( stderr
, "%04x: %s(", current
->id
, req_names
[req
] );
5660 if (req_dumpers
[req
])
5662 cur_data
= get_req_data();
5663 cur_size
= get_req_data_size();
5664 req_dumpers
[req
]( ¤t
->req
);
5666 fprintf( stderr
, " )\n" );
5668 else fprintf( stderr
, "%04x: %d(?)\n", current
->id
, req
);
5671 void trace_reply( enum request req
, const union generic_reply
*reply
)
5673 if (req
< REQ_NB_REQUESTS
)
5675 fprintf( stderr
, "%04x: %s() = %s",
5676 current
->id
, req_names
[req
], get_status_name(current
->error
) );
5677 if (reply_dumpers
[req
])
5679 fprintf( stderr
, " {" );
5680 cur_data
= current
->reply_data
;
5681 cur_size
= reply
->reply_header
.reply_size
;
5682 reply_dumpers
[req
]( reply
);
5683 fprintf( stderr
, " }" );
5685 fputc( '\n', stderr
);
5687 else fprintf( stderr
, "%04x: %d() = %s\n",
5688 current
->id
, req
, get_status_name(current
->error
) );