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=", &call
->virtual_alloc_ex
.limit
);
196 dump_uint64( ",align=", &call
->virtual_alloc_ex
.align
);
197 fprintf( stderr
, ",op_type=%x,prot=%x,attributes=%x",
198 call
->virtual_alloc_ex
.op_type
, call
->virtual_alloc_ex
.prot
,
199 call
->virtual_alloc_ex
.attributes
);
201 case APC_VIRTUAL_FREE
:
202 dump_uint64( "APC_VIRTUAL_FREE,addr=", &call
->virtual_free
.addr
);
203 dump_uint64( ",size=", &call
->virtual_free
.size
);
204 fprintf( stderr
, ",op_type=%x", call
->virtual_free
.op_type
);
206 case APC_VIRTUAL_QUERY
:
207 dump_uint64( "APC_VIRTUAL_QUERY,addr=", &call
->virtual_query
.addr
);
209 case APC_VIRTUAL_PROTECT
:
210 dump_uint64( "APC_VIRTUAL_PROTECT,addr=", &call
->virtual_protect
.addr
);
211 dump_uint64( ",size=", &call
->virtual_protect
.size
);
212 fprintf( stderr
, ",prot=%x", call
->virtual_protect
.prot
);
214 case APC_VIRTUAL_FLUSH
:
215 dump_uint64( "APC_VIRTUAL_FLUSH,addr=", &call
->virtual_flush
.addr
);
216 dump_uint64( ",size=", &call
->virtual_flush
.size
);
218 case APC_VIRTUAL_LOCK
:
219 dump_uint64( "APC_VIRTUAL_LOCK,addr=", &call
->virtual_lock
.addr
);
220 dump_uint64( ",size=", &call
->virtual_lock
.size
);
222 case APC_VIRTUAL_UNLOCK
:
223 dump_uint64( "APC_VIRTUAL_UNLOCK,addr=", &call
->virtual_unlock
.addr
);
224 dump_uint64( ",size=", &call
->virtual_unlock
.size
);
227 fprintf( stderr
, "APC_MAP_VIEW,handle=%04x", call
->map_view
.handle
);
228 dump_uint64( ",addr=", &call
->map_view
.addr
);
229 dump_uint64( ",size=", &call
->map_view
.size
);
230 dump_uint64( ",offset=", &call
->map_view
.offset
);
231 dump_uint64( ",zero_bits=", &call
->map_view
.zero_bits
);
232 fprintf( stderr
, ",alloc_type=%x,prot=%x", call
->map_view
.alloc_type
, call
->map_view
.prot
);
234 case APC_MAP_VIEW_EX
:
235 fprintf( stderr
, "APC_MAP_VIEW_EX,handle=%04x", call
->map_view_ex
.handle
);
236 dump_uint64( ",addr=", &call
->map_view_ex
.addr
);
237 dump_uint64( ",size=", &call
->map_view_ex
.size
);
238 dump_uint64( ",offset=", &call
->map_view_ex
.offset
);
239 dump_uint64( ",limit=", &call
->map_view_ex
.limit
);
240 fprintf( stderr
, ",alloc_type=%x,prot=%x,machine=%04x",
241 call
->map_view_ex
.alloc_type
, call
->map_view_ex
.prot
, call
->map_view_ex
.machine
);
244 dump_uint64( "APC_UNMAP_VIEW,addr=", &call
->unmap_view
.addr
);
246 case APC_CREATE_THREAD
:
247 dump_uint64( "APC_CREATE_THREAD,func=", &call
->create_thread
.func
);
248 dump_uint64( ",arg=", &call
->create_thread
.arg
);
249 dump_uint64( ",zero_bits=", &call
->create_thread
.zero_bits
);
250 dump_uint64( ",reserve=", &call
->create_thread
.reserve
);
251 dump_uint64( ",commit=", &call
->create_thread
.commit
);
252 fprintf( stderr
, ",flags=%x", call
->create_thread
.flags
);
255 fprintf( stderr
, "APC_DUP_HANDLE,src_handle=%04x,dst_process=%04x,access=%x,attributes=%x,options=%x",
256 call
->dup_handle
.src_handle
, call
->dup_handle
.dst_process
, call
->dup_handle
.access
,
257 call
->dup_handle
.attributes
, call
->dup_handle
.options
);
260 fprintf( stderr
, "type=%u", call
->type
);
263 fputc( '}', stderr
);
266 static void dump_apc_result( const char *prefix
, const apc_result_t
*result
)
268 fprintf( stderr
, "%s{", prefix
);
274 fprintf( stderr
, "APC_ASYNC_IO,status=%s,total=%u",
275 get_status_name( result
->async_io
.status
), result
->async_io
.total
);
277 case APC_VIRTUAL_ALLOC
:
278 fprintf( stderr
, "APC_VIRTUAL_ALLOC,status=%s",
279 get_status_name( result
->virtual_alloc
.status
));
280 dump_uint64( ",addr=", &result
->virtual_alloc
.addr
);
281 dump_uint64( ",size=", &result
->virtual_alloc
.size
);
283 case APC_VIRTUAL_FREE
:
284 fprintf( stderr
, "APC_VIRTUAL_FREE,status=%s",
285 get_status_name( result
->virtual_free
.status
));
286 dump_uint64( ",addr=", &result
->virtual_free
.addr
);
287 dump_uint64( ",size=", &result
->virtual_free
.size
);
289 case APC_VIRTUAL_QUERY
:
290 fprintf( stderr
, "APC_VIRTUAL_QUERY,status=%s",
291 get_status_name( result
->virtual_query
.status
));
292 dump_uint64( ",base=", &result
->virtual_query
.base
);
293 dump_uint64( ",alloc_base=", &result
->virtual_query
.alloc_base
);
294 dump_uint64( ",size=", &result
->virtual_query
.size
);
295 fprintf( stderr
, ",state=%x,prot=%x,alloc_prot=%x,alloc_type=%x",
296 result
->virtual_query
.state
, result
->virtual_query
.prot
,
297 result
->virtual_query
.alloc_prot
, result
->virtual_query
.alloc_type
);
299 case APC_VIRTUAL_PROTECT
:
300 fprintf( stderr
, "APC_VIRTUAL_PROTECT,status=%s",
301 get_status_name( result
->virtual_protect
.status
));
302 dump_uint64( ",addr=", &result
->virtual_protect
.addr
);
303 dump_uint64( ",size=", &result
->virtual_protect
.size
);
304 fprintf( stderr
, ",prot=%x", result
->virtual_protect
.prot
);
306 case APC_VIRTUAL_FLUSH
:
307 fprintf( stderr
, "APC_VIRTUAL_FLUSH,status=%s",
308 get_status_name( result
->virtual_flush
.status
));
309 dump_uint64( ",addr=", &result
->virtual_flush
.addr
);
310 dump_uint64( ",size=", &result
->virtual_flush
.size
);
312 case APC_VIRTUAL_LOCK
:
313 fprintf( stderr
, "APC_VIRTUAL_LOCK,status=%s",
314 get_status_name( result
->virtual_lock
.status
));
315 dump_uint64( ",addr=", &result
->virtual_lock
.addr
);
316 dump_uint64( ",size=", &result
->virtual_lock
.size
);
318 case APC_VIRTUAL_UNLOCK
:
319 fprintf( stderr
, "APC_VIRTUAL_UNLOCK,status=%s",
320 get_status_name( result
->virtual_unlock
.status
));
321 dump_uint64( ",addr=", &result
->virtual_unlock
.addr
);
322 dump_uint64( ",size=", &result
->virtual_unlock
.size
);
325 fprintf( stderr
, "APC_MAP_VIEW,status=%s",
326 get_status_name( result
->map_view
.status
));
327 dump_uint64( ",addr=", &result
->map_view
.addr
);
328 dump_uint64( ",size=", &result
->map_view
.size
);
331 fprintf( stderr
, "APC_UNMAP_VIEW,status=%s",
332 get_status_name( result
->unmap_view
.status
) );
334 case APC_CREATE_THREAD
:
335 fprintf( stderr
, "APC_CREATE_THREAD,status=%s,pid=%04x,tid=%04x,handle=%04x",
336 get_status_name( result
->create_thread
.status
),
337 result
->create_thread
.pid
, result
->create_thread
.tid
, result
->create_thread
.handle
);
340 fprintf( stderr
, "APC_DUP_HANDLE,status=%s,handle=%04x",
341 get_status_name( result
->dup_handle
.status
), result
->dup_handle
.handle
);
344 fprintf( stderr
, "type=%u", result
->type
);
347 fputc( '}', stderr
);
350 static void dump_async_data( const char *prefix
, const async_data_t
*data
)
352 fprintf( stderr
, "%s{handle=%04x,event=%04x", prefix
, data
->handle
, data
->event
);
353 dump_uint64( ",iosb=", &data
->iosb
);
354 dump_uint64( ",user=", &data
->user
);
355 dump_uint64( ",apc=", &data
->apc
);
356 dump_uint64( ",apc_context=", &data
->apc_context
);
357 fputc( '}', stderr
);
360 static void dump_irp_params( const char *prefix
, const irp_params_t
*data
)
365 fprintf( stderr
, "%s{NONE}", prefix
);
367 case IRP_CALL_CREATE
:
368 fprintf( stderr
, "%s{CREATE,access=%08x,sharing=%08x,options=%08x",
369 prefix
, data
->create
.access
, data
->create
.sharing
, data
->create
.options
);
370 dump_uint64( ",device=", &data
->create
.device
);
371 fprintf( stderr
, ",file=%08x}", data
->create
.file
);
374 fprintf( stderr
, "%s{CLOSE", prefix
);
375 dump_uint64( ",file=", &data
->close
.file
);
376 fputc( '}', stderr
);
379 fprintf( stderr
, "%s{READ,key=%08x,out_size=%u", prefix
, data
->read
.key
,
380 data
->read
.out_size
);
381 dump_uint64( ",pos=", &data
->read
.pos
);
382 dump_uint64( ",file=", &data
->read
.file
);
383 fputc( '}', stderr
);
386 fprintf( stderr
, "%s{WRITE,key=%08x", prefix
, data
->write
.key
);
387 dump_uint64( ",pos=", &data
->write
.pos
);
388 dump_uint64( ",file=", &data
->write
.file
);
389 fputc( '}', stderr
);
392 fprintf( stderr
, "%s{FLUSH", prefix
);
393 dump_uint64( ",file=", &data
->flush
.file
);
394 fputc( '}', stderr
);
397 fprintf( stderr
, "%s{IOCTL", prefix
);
398 dump_ioctl_code( ",code=", &data
->ioctl
.code
);
399 fprintf( stderr
, ",out_size=%u", data
->ioctl
.out_size
);
400 dump_uint64( ",file=", &data
->ioctl
.file
);
401 fputc( '}', stderr
);
403 case IRP_CALL_VOLUME
:
404 fprintf( stderr
, "%s{VOLUME,class=%u,out_size=%u", prefix
,
405 data
->volume
.info_class
, data
->volume
.out_size
);
406 dump_uint64( ",file=", &data
->volume
.file
);
407 fputc( '}', stderr
);
410 fprintf( stderr
, "%s{FREE", prefix
);
411 dump_uint64( ",obj=", &data
->free
.obj
);
412 fputc( '}', stderr
);
414 case IRP_CALL_CANCEL
:
415 fprintf( stderr
, "%s{CANCEL", prefix
);
416 dump_uint64( ",irp=", &data
->cancel
.irp
);
417 fputc( '}', stderr
);
422 static void dump_rawinput( const char *prefix
, const union rawinput
*rawinput
)
424 switch (rawinput
->type
)
427 fprintf( stderr
, "%s{type=MOUSE,x=%d,y=%d,data=%08x}", prefix
, rawinput
->mouse
.x
,
428 rawinput
->mouse
.y
, rawinput
->mouse
.data
);
430 case RIM_TYPEKEYBOARD
:
431 fprintf( stderr
, "%s{type=KEYBOARD,message=%04x,vkey=%04hx,scan=%04hx}", prefix
,
432 rawinput
->kbd
.message
, rawinput
->kbd
.vkey
, rawinput
->kbd
.scan
);
435 fprintf( stderr
, "%s{type=HID,device=%04x,param=%04x,page=%04hx,usage=%04hx,count=%u,length=%u}",
436 prefix
, rawinput
->hid
.device
, rawinput
->hid
.param
, rawinput
->hid
.usage_page
,
437 rawinput
->hid
.usage
, rawinput
->hid
.count
, rawinput
->hid
.length
);
440 fprintf( stderr
, "%s{type=%04x}", prefix
, rawinput
->type
);
445 static void dump_hw_input( const char *prefix
, const hw_input_t
*input
)
450 fprintf( stderr
, "%s{type=MOUSE,x=%d,y=%d,data=%08x,flags=%08x,time=%u",
451 prefix
, input
->mouse
.x
, input
->mouse
.y
, input
->mouse
.data
, input
->mouse
.flags
,
453 dump_uint64( ",info=", &input
->mouse
.info
);
454 fputc( '}', stderr
);
457 fprintf( stderr
, "%s{type=KEYBOARD,vkey=%04hx,scan=%04hx,flags=%08x,time=%u",
458 prefix
, input
->kbd
.vkey
, input
->kbd
.scan
, input
->kbd
.flags
, input
->kbd
.time
);
459 dump_uint64( ",info=", &input
->kbd
.info
);
460 fputc( '}', stderr
);
463 fprintf( stderr
, "%s{type=HARDWARE,msg=%04x", prefix
, input
->hw
.msg
);
464 dump_uint64( ",lparam=", &input
->hw
.lparam
);
465 switch (input
->hw
.msg
)
468 case WM_INPUT_DEVICE_CHANGE
:
469 dump_rawinput( ",rawinput=", &input
->hw
.rawinput
);
471 fputc( '}', stderr
);
474 fprintf( stderr
, "%s{type=%04x}", prefix
, input
->type
);
479 static void dump_luid( const char *prefix
, const struct luid
*luid
)
481 fprintf( stderr
, "%s%d.%u", prefix
, luid
->high_part
, luid
->low_part
);
484 static void dump_generic_map( const char *prefix
, const generic_map_t
*map
)
486 fprintf( stderr
, "%s{r=%08x,w=%08x,x=%08x,a=%08x}",
487 prefix
, map
->read
, map
->write
, map
->exec
, map
->all
);
490 static void dump_varargs_ints( const char *prefix
, data_size_t size
)
492 const int *data
= cur_data
;
493 data_size_t len
= size
/ sizeof(*data
);
495 fprintf( stderr
,"%s{", prefix
);
498 fprintf( stderr
, "%d", *data
++ );
499 if (--len
) fputc( ',', stderr
);
501 fputc( '}', stderr
);
505 static void dump_varargs_uints( const char *prefix
, data_size_t size
)
507 const unsigned int *data
= cur_data
;
509 dump_uints( prefix
, data
, size
/ sizeof(*data
) );
513 static void dump_varargs_uints64( const char *prefix
, data_size_t size
)
515 const unsigned __int64
*data
= cur_data
;
516 data_size_t len
= size
/ sizeof(*data
);
518 fprintf( stderr
,"%s{", prefix
);
521 dump_uint64( "", data
++ );
522 if (--len
) fputc( ',', stderr
);
524 fputc( '}', stderr
);
528 static void dump_varargs_ushorts( const char *prefix
, data_size_t size
)
530 const unsigned short *data
= cur_data
;
531 data_size_t len
= size
/ sizeof(*data
);
533 fprintf( stderr
, "%s{", prefix
);
536 fprintf( stderr
, "%04x", *data
++ );
537 if (--len
) fputc( ',', stderr
);
539 fputc( '}', stderr
);
543 static void dump_varargs_apc_result( const char *prefix
, data_size_t size
)
545 const apc_result_t
*result
= cur_data
;
547 if (size
>= sizeof(*result
))
549 dump_apc_result( prefix
, result
);
550 size
= sizeof(*result
);
555 static void dump_varargs_select_op( const char *prefix
, data_size_t size
)
561 fprintf( stderr
, "%s{}", prefix
);
564 memset( &data
, 0, sizeof(data
) );
565 memcpy( &data
, cur_data
, min( size
, sizeof(data
) ));
567 fprintf( stderr
, "%s{", prefix
);
571 fprintf( stderr
, "NONE" );
574 case SELECT_WAIT_ALL
:
575 fprintf( stderr
, "%s", data
.op
== SELECT_WAIT
? "WAIT" : "WAIT_ALL" );
576 if (size
> offsetof( select_op_t
, wait
.handles
))
577 dump_handles( ",handles=", data
.wait
.handles
,
578 min( size
, sizeof(data
.wait
) ) - offsetof( select_op_t
, wait
.handles
));
580 case SELECT_SIGNAL_AND_WAIT
:
581 fprintf( stderr
, "SIGNAL_AND_WAIT,signal=%04x,wait=%04x",
582 data
.signal_and_wait
.signal
, data
.signal_and_wait
.wait
);
584 case SELECT_KEYED_EVENT_WAIT
:
585 case SELECT_KEYED_EVENT_RELEASE
:
586 fprintf( stderr
, "KEYED_EVENT_%s,handle=%04x",
587 data
.op
== SELECT_KEYED_EVENT_WAIT
? "WAIT" : "RELEASE",
588 data
.keyed_event
.handle
);
589 dump_uint64( ",key=", &data
.keyed_event
.key
);
592 fprintf( stderr
, "op=%u", data
.op
);
595 fputc( '}', stderr
);
599 static void dump_varargs_user_handles( const char *prefix
, data_size_t size
)
601 const user_handle_t
*data
= cur_data
;
602 data_size_t len
= size
/ sizeof(*data
);
604 fprintf( stderr
,"%s{", prefix
);
607 fprintf( stderr
, "%08x", *data
++ );
608 if (--len
) fputc( ',', stderr
);
610 fputc( '}', stderr
);
614 static void dump_varargs_bytes( const char *prefix
, data_size_t size
)
616 const unsigned char *data
= cur_data
;
617 data_size_t len
= min( 1024, size
);
619 fprintf( stderr
,"%s{", prefix
);
622 fprintf( stderr
, "%02x", *data
++ );
623 if (--len
) fputc( ',', stderr
);
625 if (size
> 1024) fprintf( stderr
, "...(total %u)", size
);
626 fputc( '}', stderr
);
630 static void dump_varargs_string( const char *prefix
, data_size_t size
)
632 fprintf( stderr
, "%s\"%.*s\"", prefix
, (int)size
, (const char *)cur_data
);
636 static void dump_varargs_unicode_str( const char *prefix
, data_size_t size
)
638 fprintf( stderr
, "%sL\"", prefix
);
639 dump_strW( cur_data
, size
, stderr
, "\"\"" );
640 fputc( '\"', stderr
);
644 static void dump_varargs_context( const char *prefix
, data_size_t size
)
646 const context_t
*context
= cur_data
;
652 fprintf( stderr
, "%s{}", prefix
);
655 size
= min( size
, sizeof(ctx
) );
656 memset( &ctx
, 0, sizeof(ctx
) );
657 memcpy( &ctx
, context
, size
);
661 case IMAGE_FILE_MACHINE_I386
:
662 fprintf( stderr
, "%s{machine=i386", prefix
);
663 if (ctx
.flags
& SERVER_CTX_CONTROL
)
664 fprintf( stderr
, ",eip=%08x,esp=%08x,ebp=%08x,eflags=%08x,cs=%04x,ss=%04x",
665 ctx
.ctl
.i386_regs
.eip
, ctx
.ctl
.i386_regs
.esp
, ctx
.ctl
.i386_regs
.ebp
,
666 ctx
.ctl
.i386_regs
.eflags
, ctx
.ctl
.i386_regs
.cs
, ctx
.ctl
.i386_regs
.ss
);
667 if (ctx
.flags
& SERVER_CTX_SEGMENTS
)
668 fprintf( stderr
, ",ds=%04x,es=%04x,fs=%04x,gs=%04x",
669 ctx
.seg
.i386_regs
.ds
, ctx
.seg
.i386_regs
.es
,
670 ctx
.seg
.i386_regs
.fs
, ctx
.seg
.i386_regs
.gs
);
671 if (ctx
.flags
& SERVER_CTX_INTEGER
)
672 fprintf( stderr
, ",eax=%08x,ebx=%08x,ecx=%08x,edx=%08x,esi=%08x,edi=%08x",
673 ctx
.integer
.i386_regs
.eax
, ctx
.integer
.i386_regs
.ebx
, ctx
.integer
.i386_regs
.ecx
,
674 ctx
.integer
.i386_regs
.edx
, ctx
.integer
.i386_regs
.esi
, ctx
.integer
.i386_regs
.edi
);
675 if (ctx
.flags
& SERVER_CTX_DEBUG_REGISTERS
)
676 fprintf( stderr
, ",dr0=%08x,dr1=%08x,dr2=%08x,dr3=%08x,dr6=%08x,dr7=%08x",
677 ctx
.debug
.i386_regs
.dr0
, ctx
.debug
.i386_regs
.dr1
, ctx
.debug
.i386_regs
.dr2
,
678 ctx
.debug
.i386_regs
.dr3
, ctx
.debug
.i386_regs
.dr6
, ctx
.debug
.i386_regs
.dr7
);
679 if (ctx
.flags
& SERVER_CTX_FLOATING_POINT
)
681 fprintf( stderr
, ",fp.ctrl=%08x,fp.status=%08x,fp.tag=%08x,fp.err_off=%08x,fp.err_sel=%08x",
682 ctx
.fp
.i386_regs
.ctrl
, ctx
.fp
.i386_regs
.status
, ctx
.fp
.i386_regs
.tag
,
683 ctx
.fp
.i386_regs
.err_off
, ctx
.fp
.i386_regs
.err_sel
);
684 fprintf( stderr
, ",fp.data_off=%08x,fp.data_sel=%08x,fp.cr0npx=%08x",
685 ctx
.fp
.i386_regs
.data_off
, ctx
.fp
.i386_regs
.data_sel
, ctx
.fp
.i386_regs
.cr0npx
);
686 for (i
= 0; i
< 8; i
++)
688 unsigned __int64 reg
[2];
689 memset( reg
, 0, sizeof(reg
) );
690 memcpy( reg
, &ctx
.fp
.i386_regs
.regs
[10 * i
], 10 );
691 fprintf( stderr
, ",fp.reg%u=", i
);
692 dump_uint128( "", reg
);
695 if (ctx
.flags
& SERVER_CTX_EXTENDED_REGISTERS
)
696 dump_uints( ",extended=", (const unsigned int *)ctx
.ext
.i386_regs
,
697 sizeof(ctx
.ext
.i386_regs
) / sizeof(int) );
698 if (ctx
.flags
& SERVER_CTX_YMM_REGISTERS
)
699 for (i
= 0; i
< 16; i
++)
701 fprintf( stderr
, ",ymm%u=", i
);
702 dump_uint128( "", (const unsigned __int64
*)&ctx
.ymm
.regs
.ymm_high
[i
] );
705 case IMAGE_FILE_MACHINE_AMD64
:
706 fprintf( stderr
, "%s{machine=x86_64", prefix
);
707 if (ctx
.flags
& SERVER_CTX_CONTROL
)
709 dump_uint64( ",rip=", &ctx
.ctl
.x86_64_regs
.rip
);
710 dump_uint64( ",rbp=", &ctx
.ctl
.x86_64_regs
.rbp
);
711 dump_uint64( ",rsp=", &ctx
.ctl
.x86_64_regs
.rsp
);
712 fprintf( stderr
, ",cs=%04x,ss=%04x,flags=%08x",
713 ctx
.ctl
.x86_64_regs
.cs
, ctx
.ctl
.x86_64_regs
.ss
, ctx
.ctl
.x86_64_regs
.flags
);
715 if (ctx
.flags
& SERVER_CTX_INTEGER
)
717 dump_uint64( ",rax=", &ctx
.integer
.x86_64_regs
.rax
);
718 dump_uint64( ",rbx=", &ctx
.integer
.x86_64_regs
.rbx
);
719 dump_uint64( ",rcx=", &ctx
.integer
.x86_64_regs
.rcx
);
720 dump_uint64( ",rdx=", &ctx
.integer
.x86_64_regs
.rdx
);
721 dump_uint64( ",rsi=", &ctx
.integer
.x86_64_regs
.rsi
);
722 dump_uint64( ",rdi=", &ctx
.integer
.x86_64_regs
.rdi
);
723 dump_uint64( ",r8=", &ctx
.integer
.x86_64_regs
.r8
);
724 dump_uint64( ",r9=", &ctx
.integer
.x86_64_regs
.r9
);
725 dump_uint64( ",r10=", &ctx
.integer
.x86_64_regs
.r10
);
726 dump_uint64( ",r11=", &ctx
.integer
.x86_64_regs
.r11
);
727 dump_uint64( ",r12=", &ctx
.integer
.x86_64_regs
.r12
);
728 dump_uint64( ",r13=", &ctx
.integer
.x86_64_regs
.r13
);
729 dump_uint64( ",r14=", &ctx
.integer
.x86_64_regs
.r14
);
730 dump_uint64( ",r15=", &ctx
.integer
.x86_64_regs
.r15
);
732 if (ctx
.flags
& SERVER_CTX_SEGMENTS
)
733 fprintf( stderr
, ",ds=%04x,es=%04x,fs=%04x,gs=%04x",
734 ctx
.seg
.x86_64_regs
.ds
, ctx
.seg
.x86_64_regs
.es
,
735 ctx
.seg
.x86_64_regs
.fs
, ctx
.seg
.x86_64_regs
.gs
);
736 if (ctx
.flags
& SERVER_CTX_DEBUG_REGISTERS
)
738 dump_uint64( ",dr0=", &ctx
.debug
.x86_64_regs
.dr0
);
739 dump_uint64( ",dr1=", &ctx
.debug
.x86_64_regs
.dr1
);
740 dump_uint64( ",dr2=", &ctx
.debug
.x86_64_regs
.dr2
);
741 dump_uint64( ",dr3=", &ctx
.debug
.x86_64_regs
.dr3
);
742 dump_uint64( ",dr6=", &ctx
.debug
.x86_64_regs
.dr6
);
743 dump_uint64( ",dr7=", &ctx
.debug
.x86_64_regs
.dr7
);
745 if (ctx
.flags
& SERVER_CTX_FLOATING_POINT
)
746 for (i
= 0; i
< 32; i
++)
748 fprintf( stderr
, ",fp%u=", i
);
749 dump_uint128( "", (const unsigned __int64
*)&ctx
.fp
.x86_64_regs
.fpregs
[i
] );
751 if (ctx
.flags
& SERVER_CTX_YMM_REGISTERS
)
752 for (i
= 0; i
< 16; i
++)
754 fprintf( stderr
, ",ymm%u=", i
);
755 dump_uint128( "", (const unsigned __int64
*)&ctx
.ymm
.regs
.ymm_high
[i
] );
758 case IMAGE_FILE_MACHINE_ARMNT
:
759 fprintf( stderr
, "%s{machine=arm", prefix
);
760 if (ctx
.flags
& SERVER_CTX_CONTROL
)
761 fprintf( stderr
, ",sp=%08x,lr=%08x,pc=%08x,cpsr=%08x",
762 ctx
.ctl
.arm_regs
.sp
, ctx
.ctl
.arm_regs
.lr
,
763 ctx
.ctl
.arm_regs
.pc
, ctx
.ctl
.arm_regs
.cpsr
);
764 if (ctx
.flags
& SERVER_CTX_INTEGER
)
765 for (i
= 0; i
< 13; i
++) fprintf( stderr
, ",r%u=%08x", i
, ctx
.integer
.arm_regs
.r
[i
] );
766 if (ctx
.flags
& SERVER_CTX_DEBUG_REGISTERS
)
768 for (i
= 0; i
< 8; i
++)
769 fprintf( stderr
, ",bcr%u=%08x,bvr%u=%08x",
770 i
, ctx
.debug
.arm_regs
.bcr
[i
], i
, ctx
.debug
.arm_regs
.bvr
[i
] );
771 fprintf( stderr
, ",wcr0=%08x,wvr0=%08x",
772 ctx
.debug
.arm_regs
.wcr
[0], ctx
.debug
.arm_regs
.wvr
[0] );
774 if (ctx
.flags
& SERVER_CTX_FLOATING_POINT
)
776 for (i
= 0; i
< 32; i
++)
778 fprintf( stderr
, ",d%u=", i
);
779 dump_uint64( "", &ctx
.fp
.arm_regs
.d
[i
] );
781 fprintf( stderr
, ",fpscr=%08x", ctx
.fp
.arm_regs
.fpscr
);
784 case IMAGE_FILE_MACHINE_ARM64
:
785 fprintf( stderr
, "%s{machine=arm64", prefix
);
786 if (ctx
.flags
& SERVER_CTX_CONTROL
)
788 dump_uint64( ",sp=", &ctx
.ctl
.arm64_regs
.sp
);
789 dump_uint64( ",pc=", &ctx
.ctl
.arm64_regs
.pc
);
790 dump_uint64( ",pstate=", &ctx
.ctl
.arm64_regs
.pstate
);
792 if (ctx
.flags
& SERVER_CTX_INTEGER
)
794 for (i
= 0; i
< 31; i
++)
796 fprintf( stderr
, ",x%u=", i
);
797 dump_uint64( "", &ctx
.integer
.arm64_regs
.x
[i
] );
800 if (ctx
.flags
& SERVER_CTX_DEBUG_REGISTERS
)
802 for (i
= 0; i
< 8; i
++)
804 fprintf( stderr
, ",bcr%u=%08x,bvr%u=", i
, ctx
.debug
.arm64_regs
.bcr
[i
], i
);
805 dump_uint64( "", &ctx
.debug
.arm64_regs
.bvr
[i
] );
807 for (i
= 0; i
< 2; i
++)
809 fprintf( stderr
, ",wcr%u=%08x,wvr%u=", i
, ctx
.debug
.arm64_regs
.wcr
[i
], i
);
810 dump_uint64( "", &ctx
.debug
.arm64_regs
.wvr
[i
] );
813 if (ctx
.flags
& SERVER_CTX_FLOATING_POINT
)
815 for (i
= 0; i
< 32; i
++)
817 fprintf( stderr
, ",q%u=", i
);
818 dump_uint64( "", &ctx
.fp
.arm64_regs
.q
[i
].high
);
819 dump_uint64( "", &ctx
.fp
.arm64_regs
.q
[i
].low
);
821 fprintf( stderr
, ",fpcr=%08x,fpsr=%08x", ctx
.fp
.arm64_regs
.fpcr
, ctx
.fp
.arm64_regs
.fpsr
);
825 fprintf( stderr
, "%s{machine=%04x", prefix
, ctx
.machine
);
828 fputc( '}', stderr
);
832 static void dump_varargs_contexts( const char *prefix
, data_size_t size
)
836 fprintf( stderr
, "%s{}", prefix
);
839 fprintf( stderr
, "%s{", prefix
);
842 dump_varargs_context( "", cur_size
);
843 fputc( cur_size
? ',' : '}', stderr
);
847 static void dump_varargs_debug_event( const char *prefix
, data_size_t size
)
854 fprintf( stderr
, "%s{}", prefix
);
857 size
= min( size
, sizeof(event
) );
858 memset( &event
, 0, sizeof(event
) );
859 memcpy( &event
, cur_data
, size
);
864 fprintf( stderr
, "%s{idle}", prefix
);
866 case DbgReplyPending
:
867 fprintf( stderr
, "%s{pending}", prefix
);
869 case DbgCreateThreadStateChange
:
870 fprintf( stderr
, "%s{create_thread,thread=%04x", prefix
, event
.create_thread
.handle
);
871 dump_uint64( ",start=", &event
.create_thread
.start
);
872 fputc( '}', stderr
);
874 case DbgCreateProcessStateChange
:
875 fprintf( stderr
, "%s{create_process,file=%04x,process=%04x,thread=%04x", prefix
,
876 event
.create_process
.file
, event
.create_process
.process
,
877 event
.create_process
.thread
);
878 dump_uint64( ",base=", &event
.create_process
.base
);
879 fprintf( stderr
, ",offset=%d,size=%d",
880 event
.create_process
.dbg_offset
, event
.create_process
.dbg_size
);
881 dump_uint64( ",start=", &event
.create_process
.start
);
882 fputc( '}', stderr
);
884 case DbgExitThreadStateChange
:
885 fprintf( stderr
, "%s{exit_thread,code=%d}", prefix
, event
.exit
.exit_code
);
887 case DbgExitProcessStateChange
:
888 fprintf( stderr
, "%s{exit_process,code=%d}", prefix
, event
.exit
.exit_code
);
890 case DbgExceptionStateChange
:
891 case DbgBreakpointStateChange
:
892 case DbgSingleStepStateChange
:
893 fprintf( stderr
, "%s{%s,first=%d,exc_code=%08x,flags=%08x", prefix
,
894 event
.code
== DbgBreakpointStateChange
? "breakpoint" :
895 event
.code
== DbgSingleStepStateChange
? "singlestep" : "exception",
896 event
.exception
.first
, event
.exception
.exc_code
, event
.exception
.flags
);
897 dump_uint64( ",record=", &event
.exception
.record
);
898 dump_uint64( ",address=", &event
.exception
.address
);
899 fprintf( stderr
, ",params={" );
900 event
.exception
.nb_params
= min( event
.exception
.nb_params
, EXCEPTION_MAXIMUM_PARAMETERS
);
901 for (i
= 0; i
< event
.exception
.nb_params
; i
++)
903 dump_uint64( "", &event
.exception
.params
[i
] );
904 if (i
< event
.exception
.nb_params
) fputc( ',', stderr
);
906 fprintf( stderr
, "}}" );
908 case DbgLoadDllStateChange
:
909 fprintf( stderr
, "%s{load_dll,file=%04x", prefix
, event
.load_dll
.handle
);
910 dump_uint64( ",base=", &event
.load_dll
.base
);
911 fprintf( stderr
, ",offset=%d,size=%d",
912 event
.load_dll
.dbg_offset
, event
.load_dll
.dbg_size
);
913 dump_uint64( ",name=", &event
.load_dll
.name
);
914 fputc( '}', stderr
);
916 case DbgUnloadDllStateChange
:
917 fprintf( stderr
, "%s{unload_dll", prefix
);
918 dump_uint64( ",base=", &event
.unload_dll
.base
);
919 fputc( '}', stderr
);
922 fprintf( stderr
, "%s{code=??? (%d)}", prefix
, event
.code
);
928 /* dump a unicode string contained in a buffer; helper for dump_varargs_startup_info */
929 static data_size_t
dump_inline_unicode_string( const char *prefix
, data_size_t pos
, data_size_t len
, data_size_t total_size
)
931 fputs( prefix
, stderr
);
932 if (pos
>= total_size
) return pos
;
933 if (len
> total_size
- pos
) len
= total_size
- pos
;
934 dump_strW( (const WCHAR
*)cur_data
+ pos
/sizeof(WCHAR
), len
, stderr
, "\"\"" );
935 return pos
+ (len
/ sizeof(WCHAR
)) * sizeof(WCHAR
);
938 static void dump_varargs_startup_info( const char *prefix
, data_size_t size
)
941 data_size_t pos
= sizeof(info
);
943 memset( &info
, 0, sizeof(info
) );
944 memcpy( &info
, cur_data
, min( size
, sizeof(info
) ));
947 "%s{debug_flags=%x,console_flags=%x,console=%04x,hstdin=%04x,hstdout=%04x,hstderr=%04x,"
948 "x=%u,y=%u,xsize=%u,ysize=%u,xchars=%u,ychars=%u,attribute=%02x,flags=%x,show=%u",
949 prefix
, info
.debug_flags
, info
.console_flags
, info
.console
,
950 info
.hstdin
, info
.hstdout
, info
.hstderr
, info
.x
, info
.y
, info
.xsize
, info
.ysize
,
951 info
.xchars
, info
.ychars
, info
.attribute
, info
.flags
, info
.show
);
952 pos
= dump_inline_unicode_string( ",curdir=L\"", pos
, info
.curdir_len
, size
);
953 pos
= dump_inline_unicode_string( "\",dllpath=L\"", pos
, info
.dllpath_len
, size
);
954 pos
= dump_inline_unicode_string( "\",imagepath=L\"", pos
, info
.imagepath_len
, size
);
955 pos
= dump_inline_unicode_string( "\",cmdline=L\"", pos
, info
.cmdline_len
, size
);
956 pos
= dump_inline_unicode_string( "\",title=L\"", pos
, info
.title_len
, size
);
957 pos
= dump_inline_unicode_string( "\",desktop=L\"", pos
, info
.desktop_len
, size
);
958 pos
= dump_inline_unicode_string( "\",shellinfo=L\"", pos
, info
.shellinfo_len
, size
);
959 pos
= dump_inline_unicode_string( "\",runtime=L\"", pos
, info
.runtime_len
, size
);
960 fprintf( stderr
, "\"}" );
964 static void dump_varargs_rectangles( const char *prefix
, data_size_t size
)
966 const rectangle_t
*rect
= cur_data
;
967 data_size_t len
= size
/ sizeof(*rect
);
969 fprintf( stderr
,"%s{", prefix
);
972 dump_rectangle( "", rect
++ );
973 if (--len
) fputc( ',', stderr
);
975 fputc( '}', stderr
);
979 static void dump_varargs_cursor_positions( const char *prefix
, data_size_t size
)
981 const cursor_pos_t
*pos
= cur_data
;
982 data_size_t len
= size
/ sizeof(*pos
);
984 fprintf( stderr
, "%s{", prefix
);
987 fprintf( stderr
, "{x=%d,y=%d,time=%u", pos
->x
, pos
->y
, pos
->time
);
988 dump_uint64( ",info=", &pos
->info
);
989 fputc( '}', stderr
);
991 if (--len
) fputc( ',', stderr
);
993 fputc( '}', stderr
);
997 static void dump_varargs_message_data( const char *prefix
, data_size_t size
)
999 /* FIXME: dump the structured data */
1000 dump_varargs_bytes( prefix
, size
);
1003 static void dump_varargs_properties( const char *prefix
, data_size_t size
)
1005 const property_data_t
*prop
= cur_data
;
1006 data_size_t len
= size
/ sizeof(*prop
);
1008 fprintf( stderr
,"%s{", prefix
);
1011 fprintf( stderr
, "{atom=%04x,str=%d", prop
->atom
, prop
->string
);
1012 dump_uint64( ",data=", &prop
->data
);
1013 fputc( '}', stderr
);
1015 if (--len
) fputc( ',', stderr
);
1017 fputc( '}', stderr
);
1018 remove_data( size
);
1021 static void dump_varargs_luid_attr( const char *prefix
, data_size_t size
)
1023 const struct luid_attr
*lat
= cur_data
;
1024 data_size_t len
= size
/ sizeof(*lat
);
1026 fprintf( stderr
,"%s{", prefix
);
1029 fprintf( stderr
, "{luid=%08x%08x,attrs=%x}", lat
->luid
.high_part
, lat
->luid
.low_part
, lat
->attrs
);
1031 if (--len
) fputc( ',', stderr
);
1033 fputc( '}', stderr
);
1034 remove_data( size
);
1037 static void dump_inline_sid( const char *prefix
, const struct sid
*sid
, data_size_t size
)
1041 fprintf( stderr
,"%s", prefix
);
1042 if (sid_valid_size( sid
, size
))
1044 fprintf( stderr
, "S-%u-%u", sid
->revision
,
1045 ((unsigned int)sid
->id_auth
[2] << 24) |
1046 ((unsigned int)sid
->id_auth
[3] << 16) |
1047 ((unsigned int)sid
->id_auth
[4] << 8) |
1048 ((unsigned int)sid
->id_auth
[5]) );
1049 for (i
= 0; i
< sid
->sub_count
; i
++) fprintf( stderr
, "-%u", sid
->sub_auth
[i
] );
1051 else fprintf( stderr
, "<invalid>" );
1054 static void dump_varargs_sid( const char *prefix
, data_size_t size
)
1056 const struct sid
*sid
= cur_data
;
1057 if (size
) dump_inline_sid( prefix
, sid
, size
);
1058 remove_data( size
);
1061 static void dump_varargs_sids( const char *prefix
, data_size_t size
)
1063 const struct sid
*sid
= cur_data
;
1064 data_size_t len
= size
;
1066 fprintf( stderr
,"%s{", prefix
);
1069 if (!sid_valid_size( sid
, len
))
1071 fprintf( stderr
, "bad len %u", len
);
1074 dump_inline_sid( "", sid
, size
);
1075 len
-= sid_len( sid
);
1076 sid
= (const struct sid
*)((const char *)sid
+ sid_len( sid
));
1077 if (len
) fputc( ',', stderr
);
1079 fputc( '}', stderr
);
1080 remove_data( size
);
1083 static void dump_inline_acl( const char *prefix
, const struct acl
*acl
, data_size_t size
)
1085 const struct ace
*ace
;
1088 fprintf( stderr
,"%s{", prefix
);
1091 if (size
< sizeof(*acl
))
1093 fprintf( stderr
, "<invalid acl>}" );
1096 size
-= sizeof(*acl
);
1097 for (i
= 0, ace
= ace_first( acl
); i
< acl
->count
; i
++, ace
= ace_next( ace
))
1099 const struct sid
*sid
= (const struct sid
*)(ace
+ 1);
1100 data_size_t sid_size
;
1102 if (size
< sizeof(*ace
) || size
< ace
->size
) break;
1104 sid_size
= ace
->size
- sizeof(*ace
);
1105 if (i
!= 0) fputc( ',', stderr
);
1106 fprintf( stderr
, "{type=" );
1109 case ACCESS_DENIED_ACE_TYPE
: fprintf( stderr
, "ACCESS_DENIED" ); break;
1110 case ACCESS_ALLOWED_ACE_TYPE
: fprintf( stderr
, "ACCESS_ALLOWED" ); break;
1111 case SYSTEM_AUDIT_ACE_TYPE
: fprintf( stderr
, "SYSTEM_AUDIT" ); break;
1112 case SYSTEM_ALARM_ACE_TYPE
: fprintf( stderr
, "SYSTEM_ALARM" ); break;
1113 case SYSTEM_MANDATORY_LABEL_ACE_TYPE
: fprintf( stderr
, "SYSTEM_MANDATORY_LABEL" ); break;
1115 fprintf( stderr
, "%02x", ace
->type
);
1119 fprintf( stderr
, ",flags=%x,mask=%x", ace
->flags
, ace
->mask
);
1120 if (sid
) dump_inline_sid( ",sid=", sid
, sid_size
);
1121 fputc( '}', stderr
);
1124 fputc( '}', stderr
);
1127 static void dump_varargs_acl( const char *prefix
, data_size_t size
)
1129 const struct acl
*acl
= cur_data
;
1130 dump_inline_acl( prefix
, acl
, size
);
1131 remove_data( size
);
1134 static void dump_inline_security_descriptor( const char *prefix
, const struct security_descriptor
*sd
, data_size_t size
)
1136 fprintf( stderr
,"%s{", prefix
);
1137 if (size
>= sizeof(struct security_descriptor
))
1139 size_t offset
= sizeof(struct security_descriptor
);
1140 fprintf( stderr
, "control=%08x", sd
->control
);
1141 if ((sd
->owner_len
> offsetof(struct sid
, sub_auth
[255])) || (offset
+ sd
->owner_len
> size
))
1144 dump_inline_sid( ",owner=", (const struct sid
*)((const char *)sd
+ offset
), sd
->owner_len
);
1146 fprintf( stderr
, ",owner=<not present>" );
1147 offset
+= sd
->owner_len
;
1148 if ((sd
->group_len
> offsetof(struct sid
, sub_auth
[255])) || (offset
+ sd
->group_len
> size
))
1151 dump_inline_sid( ",group=", (const struct sid
*)((const char *)sd
+ offset
), sd
->group_len
);
1153 fprintf( stderr
, ",group=<not present>" );
1154 offset
+= sd
->group_len
;
1155 if ((sd
->sacl_len
>= MAX_ACL_LEN
) || (offset
+ sd
->sacl_len
> size
))
1157 dump_inline_acl( ",sacl=", (const struct acl
*)((const char *)sd
+ offset
), sd
->sacl_len
);
1158 offset
+= sd
->sacl_len
;
1159 if ((sd
->dacl_len
>= MAX_ACL_LEN
) || (offset
+ sd
->dacl_len
> size
))
1161 dump_inline_acl( ",dacl=", (const struct acl
*)((const char *)sd
+ offset
), sd
->dacl_len
);
1162 offset
+= sd
->dacl_len
;
1164 fputc( '}', stderr
);
1167 static void dump_varargs_security_descriptor( const char *prefix
, data_size_t size
)
1169 const struct security_descriptor
*sd
= cur_data
;
1170 dump_inline_security_descriptor( prefix
, sd
, size
);
1171 remove_data( size
);
1174 static void dump_varargs_process_info( const char *prefix
, data_size_t size
)
1176 data_size_t pos
= 0;
1179 fprintf( stderr
,"%s{", prefix
);
1181 while (size
- pos
>= sizeof(struct process_info
))
1183 const struct process_info
*process
;
1184 pos
= (pos
+ 7) & ~7;
1185 process
= (const struct process_info
*)((const char *)cur_data
+ pos
);
1186 if (size
- pos
< sizeof(*process
)) break;
1187 if (pos
) fputc( ',', stderr
);
1188 dump_timeout( "{start_time=", &process
->start_time
);
1189 fprintf( stderr
, ",thread_count=%u,priority=%d,pid=%04x,parent_pid=%04x,session_id=%08x,handle_count=%u,unix_pid=%d,",
1190 process
->thread_count
, process
->priority
, process
->pid
,
1191 process
->parent_pid
, process
->session_id
, process
->handle_count
, process
->unix_pid
);
1192 pos
+= sizeof(*process
);
1194 pos
= dump_inline_unicode_string( "name=L\"", pos
, process
->name_len
, size
);
1196 pos
= (pos
+ 7) & ~7;
1197 fprintf( stderr
, "\",threads={" );
1198 for (i
= 0; i
< process
->thread_count
; i
++)
1200 const struct thread_info
*thread
= (const struct thread_info
*)((const char *)cur_data
+ pos
);
1201 if (size
- pos
< sizeof(*thread
)) break;
1202 if (i
) fputc( ',', stderr
);
1203 dump_timeout( "{start_time=", &thread
->start_time
);
1204 fprintf( stderr
, ",tid=%04x,base_priority=%d,current_priority=%d,unix_tid=%d}",
1205 thread
->tid
, thread
->base_priority
, thread
->current_priority
, thread
->unix_tid
);
1206 pos
+= sizeof(*thread
);
1208 fprintf( stderr
, "}}" );
1210 fputc( '}', stderr
);
1211 remove_data( size
);
1214 static void dump_varargs_object_attributes( const char *prefix
, data_size_t size
)
1216 const struct object_attributes
*objattr
= cur_data
;
1218 fprintf( stderr
,"%s{", prefix
);
1223 if (size
< sizeof(*objattr
) ||
1224 (size
- sizeof(*objattr
) < objattr
->sd_len
) ||
1225 (size
- sizeof(*objattr
) - objattr
->sd_len
< objattr
->name_len
))
1227 fprintf( stderr
, "***invalid***}" );
1228 remove_data( size
);
1232 fprintf( stderr
, "rootdir=%04x,attributes=%08x", objattr
->rootdir
, objattr
->attributes
);
1233 dump_inline_security_descriptor( ",sd=", (const struct security_descriptor
*)(objattr
+ 1), objattr
->sd_len
);
1234 str
= (const WCHAR
*)objattr
+ (sizeof(*objattr
) + objattr
->sd_len
) / sizeof(WCHAR
);
1235 fprintf( stderr
, ",name=L\"" );
1236 dump_strW( str
, objattr
->name_len
, stderr
, "\"\"" );
1237 fputc( '\"', stderr
);
1238 remove_data( (sizeof(*objattr
) + (objattr
->sd_len
& ~1) + (objattr
->name_len
& ~1) + 3) & ~3 );
1240 fputc( '}', stderr
);
1243 static void dump_varargs_object_type_info( const char *prefix
, data_size_t size
)
1245 const struct object_type_info
*info
= cur_data
;
1247 fprintf( stderr
,"%s{", prefix
);
1250 if (size
< sizeof(*info
) || (size
- sizeof(*info
) < info
->name_len
))
1252 fprintf( stderr
, "***invalid***}" );
1253 remove_data( size
);
1257 fprintf( stderr
, "index=%u,obj_count=%u,handle_count=%u,obj_max=%u,handle_max=%u,valid=%08x",
1258 info
->index
,info
->obj_count
, info
->handle_count
, info
->obj_max
, info
->handle_max
,
1259 info
->valid_access
);
1260 dump_generic_map( ",access=", &info
->mapping
);
1261 fprintf( stderr
, ",name=L\"" );
1262 dump_strW( (const WCHAR
*)(info
+ 1), info
->name_len
, stderr
, "\"\"" );
1263 fputc( '\"', stderr
);
1264 remove_data( min( size
, sizeof(*info
) + ((info
->name_len
+ 2) & ~3 )));
1266 fputc( '}', stderr
);
1269 static void dump_varargs_object_types_info( const char *prefix
, data_size_t size
)
1271 fprintf( stderr
,"%s{", prefix
);
1272 while (cur_size
) dump_varargs_object_type_info( ",", cur_size
);
1273 fputc( '}', stderr
);
1276 static void dump_varargs_filesystem_event( const char *prefix
, data_size_t size
)
1278 static const char * const actions
[] = {
1290 fprintf( stderr
,"%s{", prefix
);
1293 const struct filesystem_event
*event
= cur_data
;
1294 data_size_t len
= (offsetof( struct filesystem_event
, name
[event
->len
] ) + sizeof(int)-1)
1295 / sizeof(int) * sizeof(int);
1296 if (size
< len
) break;
1297 if (event
->action
< ARRAY_SIZE( actions
) && actions
[event
->action
])
1298 fprintf( stderr
, "{action=%s", actions
[event
->action
] );
1300 fprintf( stderr
, "{action=%u", event
->action
);
1301 fprintf( stderr
, ",name=\"%.*s\"}", event
->len
, event
->name
);
1304 if (size
)fputc( ',', stderr
);
1306 fputc( '}', stderr
);
1309 static void dump_varargs_pe_image_info( const char *prefix
, data_size_t size
)
1311 pe_image_info_t info
;
1315 fprintf( stderr
, "%s{}", prefix
);
1318 memset( &info
, 0, sizeof(info
) );
1319 memcpy( &info
, cur_data
, min( size
, sizeof(info
) ));
1321 fprintf( stderr
, "%s{", prefix
);
1322 dump_uint64( "base=", &info
.base
);
1323 dump_uint64( ",stack_size=", &info
.stack_size
);
1324 dump_uint64( ",stack_commit=", &info
.stack_commit
);
1325 fprintf( stderr
, ",entry_point=%08x,map_size=%08x,zerobits=%08x,subsystem=%08x,subsystem_minor=%04x,subsystem_major=%04x"
1326 ",osversion_major=%04x,osversion_minor=%04x,image_charact=%04x,dll_charact=%04x,machine=%04x"
1327 ",contains_code=%u,image_flags=%02x"
1328 ",loader_flags=%08x,header_size=%08x,file_size=%08x,checksum=%08x}",
1329 info
.entry_point
, info
.map_size
, info
.zerobits
, info
.subsystem
, info
.subsystem_minor
,
1330 info
.subsystem_major
, info
.osversion_major
, info
.osversion_minor
, info
.image_charact
,
1331 info
.dll_charact
, info
.machine
, info
.contains_code
, info
.image_flags
, info
.loader_flags
,
1332 info
.header_size
, info
.file_size
, info
.checksum
);
1333 remove_data( min( size
, sizeof(info
) ));
1336 static void dump_varargs_rawinput_devices(const char *prefix
, data_size_t size
)
1338 const struct rawinput_device
*device
;
1340 fprintf( stderr
, "%s{", prefix
);
1341 while (size
>= sizeof(*device
))
1344 fprintf( stderr
, "{usage_page=%04x,usage=%04x,flags=%08x,target=%08x}",
1345 device
->usage_page
, device
->usage
, device
->flags
, device
->target
);
1346 size
-= sizeof(*device
);
1347 remove_data( sizeof(*device
) );
1348 if (size
) fputc( ',', stderr
);
1350 fputc( '}', stderr
);
1353 static void dump_varargs_handle_infos( const char *prefix
, data_size_t size
)
1355 const struct handle_info
*handle
;
1357 fprintf( stderr
, "%s{", prefix
);
1358 while (size
>= sizeof(*handle
))
1361 fprintf( stderr
, "{owner=%04x,handle=%04x,access=%08x,attributes=%08x,type=%u}",
1362 handle
->owner
, handle
->handle
, handle
->access
, handle
->attributes
, handle
->type
);
1363 size
-= sizeof(*handle
);
1364 remove_data( sizeof(*handle
) );
1365 if (size
) fputc( ',', stderr
);
1367 fputc( '}', stderr
);
1370 typedef void (*dump_func
)( const void *req
);
1372 /* Everything below this line is generated automatically by tools/make_requests */
1373 /* ### make_requests begin ### */
1375 static void dump_new_process_request( const struct new_process_request
*req
)
1377 fprintf( stderr
, " token=%04x", req
->token
);
1378 fprintf( stderr
, ", debug=%04x", req
->debug
);
1379 fprintf( stderr
, ", parent_process=%04x", req
->parent_process
);
1380 fprintf( stderr
, ", flags=%08x", req
->flags
);
1381 fprintf( stderr
, ", socket_fd=%d", req
->socket_fd
);
1382 fprintf( stderr
, ", access=%08x", req
->access
);
1383 fprintf( stderr
, ", machine=%04x", req
->machine
);
1384 fprintf( stderr
, ", info_size=%u", req
->info_size
);
1385 fprintf( stderr
, ", handles_size=%u", req
->handles_size
);
1386 fprintf( stderr
, ", jobs_size=%u", req
->jobs_size
);
1387 dump_varargs_object_attributes( ", objattr=", cur_size
);
1388 dump_varargs_uints( ", handles=", min(cur_size
,req
->handles_size
) );
1389 dump_varargs_uints( ", jobs=", min(cur_size
,req
->jobs_size
) );
1390 dump_varargs_startup_info( ", info=", min(cur_size
,req
->info_size
) );
1391 dump_varargs_unicode_str( ", env=", cur_size
);
1394 static void dump_new_process_reply( const struct new_process_reply
*req
)
1396 fprintf( stderr
, " info=%04x", req
->info
);
1397 fprintf( stderr
, ", pid=%04x", req
->pid
);
1398 fprintf( stderr
, ", handle=%04x", req
->handle
);
1401 static void dump_get_new_process_info_request( const struct get_new_process_info_request
*req
)
1403 fprintf( stderr
, " info=%04x", req
->info
);
1406 static void dump_get_new_process_info_reply( const struct get_new_process_info_reply
*req
)
1408 fprintf( stderr
, " success=%d", req
->success
);
1409 fprintf( stderr
, ", exit_code=%d", req
->exit_code
);
1412 static void dump_new_thread_request( const struct new_thread_request
*req
)
1414 fprintf( stderr
, " process=%04x", req
->process
);
1415 fprintf( stderr
, ", access=%08x", req
->access
);
1416 fprintf( stderr
, ", flags=%08x", req
->flags
);
1417 fprintf( stderr
, ", request_fd=%d", req
->request_fd
);
1418 dump_varargs_object_attributes( ", objattr=", cur_size
);
1421 static void dump_new_thread_reply( const struct new_thread_reply
*req
)
1423 fprintf( stderr
, " tid=%04x", req
->tid
);
1424 fprintf( stderr
, ", handle=%04x", req
->handle
);
1427 static void dump_get_startup_info_request( const struct get_startup_info_request
*req
)
1431 static void dump_get_startup_info_reply( const struct get_startup_info_reply
*req
)
1433 fprintf( stderr
, " info_size=%u", req
->info_size
);
1434 fprintf( stderr
, ", machine=%04x", req
->machine
);
1435 dump_varargs_startup_info( ", info=", min(cur_size
,req
->info_size
) );
1436 dump_varargs_unicode_str( ", env=", cur_size
);
1439 static void dump_init_process_done_request( const struct init_process_done_request
*req
)
1441 dump_uint64( " teb=", &req
->teb
);
1442 dump_uint64( ", peb=", &req
->peb
);
1443 dump_uint64( ", ldt_copy=", &req
->ldt_copy
);
1446 static void dump_init_process_done_reply( const struct init_process_done_reply
*req
)
1448 dump_uint64( " entry=", &req
->entry
);
1449 fprintf( stderr
, ", suspend=%d", req
->suspend
);
1452 static void dump_init_first_thread_request( const struct init_first_thread_request
*req
)
1454 fprintf( stderr
, " unix_pid=%d", req
->unix_pid
);
1455 fprintf( stderr
, ", unix_tid=%d", req
->unix_tid
);
1456 fprintf( stderr
, ", debug_level=%d", req
->debug_level
);
1457 fprintf( stderr
, ", reply_fd=%d", req
->reply_fd
);
1458 fprintf( stderr
, ", wait_fd=%d", req
->wait_fd
);
1461 static void dump_init_first_thread_reply( const struct init_first_thread_reply
*req
)
1463 fprintf( stderr
, " pid=%04x", req
->pid
);
1464 fprintf( stderr
, ", tid=%04x", req
->tid
);
1465 dump_timeout( ", server_start=", &req
->server_start
);
1466 fprintf( stderr
, ", session_id=%08x", req
->session_id
);
1467 fprintf( stderr
, ", info_size=%u", req
->info_size
);
1468 dump_varargs_ushorts( ", machines=", cur_size
);
1471 static void dump_init_thread_request( const struct init_thread_request
*req
)
1473 fprintf( stderr
, " unix_tid=%d", req
->unix_tid
);
1474 fprintf( stderr
, ", reply_fd=%d", req
->reply_fd
);
1475 fprintf( stderr
, ", wait_fd=%d", req
->wait_fd
);
1476 dump_uint64( ", teb=", &req
->teb
);
1477 dump_uint64( ", entry=", &req
->entry
);
1480 static void dump_init_thread_reply( const struct init_thread_reply
*req
)
1482 fprintf( stderr
, " suspend=%d", req
->suspend
);
1485 static void dump_terminate_process_request( const struct terminate_process_request
*req
)
1487 fprintf( stderr
, " handle=%04x", req
->handle
);
1488 fprintf( stderr
, ", exit_code=%d", req
->exit_code
);
1491 static void dump_terminate_process_reply( const struct terminate_process_reply
*req
)
1493 fprintf( stderr
, " self=%d", req
->self
);
1496 static void dump_terminate_thread_request( const struct terminate_thread_request
*req
)
1498 fprintf( stderr
, " handle=%04x", req
->handle
);
1499 fprintf( stderr
, ", exit_code=%d", req
->exit_code
);
1502 static void dump_terminate_thread_reply( const struct terminate_thread_reply
*req
)
1504 fprintf( stderr
, " self=%d", req
->self
);
1507 static void dump_get_process_info_request( const struct get_process_info_request
*req
)
1509 fprintf( stderr
, " handle=%04x", req
->handle
);
1512 static void dump_get_process_info_reply( const struct get_process_info_reply
*req
)
1514 fprintf( stderr
, " pid=%04x", req
->pid
);
1515 fprintf( stderr
, ", ppid=%04x", req
->ppid
);
1516 dump_uint64( ", affinity=", &req
->affinity
);
1517 dump_uint64( ", peb=", &req
->peb
);
1518 dump_timeout( ", start_time=", &req
->start_time
);
1519 dump_timeout( ", end_time=", &req
->end_time
);
1520 fprintf( stderr
, ", session_id=%08x", req
->session_id
);
1521 fprintf( stderr
, ", exit_code=%d", req
->exit_code
);
1522 fprintf( stderr
, ", priority=%d", req
->priority
);
1523 fprintf( stderr
, ", machine=%04x", req
->machine
);
1524 dump_varargs_pe_image_info( ", image=", cur_size
);
1527 static void dump_get_process_debug_info_request( const struct get_process_debug_info_request
*req
)
1529 fprintf( stderr
, " handle=%04x", req
->handle
);
1532 static void dump_get_process_debug_info_reply( const struct get_process_debug_info_reply
*req
)
1534 fprintf( stderr
, " debug=%04x", req
->debug
);
1535 fprintf( stderr
, ", debug_children=%d", req
->debug_children
);
1536 dump_varargs_pe_image_info( ", image=", cur_size
);
1539 static void dump_get_process_image_name_request( const struct get_process_image_name_request
*req
)
1541 fprintf( stderr
, " handle=%04x", req
->handle
);
1542 fprintf( stderr
, ", win32=%d", req
->win32
);
1545 static void dump_get_process_image_name_reply( const struct get_process_image_name_reply
*req
)
1547 fprintf( stderr
, " len=%u", req
->len
);
1548 dump_varargs_unicode_str( ", name=", cur_size
);
1551 static void dump_get_process_vm_counters_request( const struct get_process_vm_counters_request
*req
)
1553 fprintf( stderr
, " handle=%04x", req
->handle
);
1556 static void dump_get_process_vm_counters_reply( const struct get_process_vm_counters_reply
*req
)
1558 dump_uint64( " peak_virtual_size=", &req
->peak_virtual_size
);
1559 dump_uint64( ", virtual_size=", &req
->virtual_size
);
1560 dump_uint64( ", peak_working_set_size=", &req
->peak_working_set_size
);
1561 dump_uint64( ", working_set_size=", &req
->working_set_size
);
1562 dump_uint64( ", pagefile_usage=", &req
->pagefile_usage
);
1563 dump_uint64( ", peak_pagefile_usage=", &req
->peak_pagefile_usage
);
1566 static void dump_set_process_info_request( const struct set_process_info_request
*req
)
1568 fprintf( stderr
, " handle=%04x", req
->handle
);
1569 fprintf( stderr
, ", mask=%d", req
->mask
);
1570 fprintf( stderr
, ", priority=%d", req
->priority
);
1571 dump_uint64( ", affinity=", &req
->affinity
);
1574 static void dump_get_thread_info_request( const struct get_thread_info_request
*req
)
1576 fprintf( stderr
, " handle=%04x", req
->handle
);
1577 fprintf( stderr
, ", access=%08x", req
->access
);
1580 static void dump_get_thread_info_reply( const struct get_thread_info_reply
*req
)
1582 fprintf( stderr
, " pid=%04x", req
->pid
);
1583 fprintf( stderr
, ", tid=%04x", req
->tid
);
1584 dump_uint64( ", teb=", &req
->teb
);
1585 dump_uint64( ", entry_point=", &req
->entry_point
);
1586 dump_uint64( ", affinity=", &req
->affinity
);
1587 fprintf( stderr
, ", exit_code=%d", req
->exit_code
);
1588 fprintf( stderr
, ", priority=%d", req
->priority
);
1589 fprintf( stderr
, ", last=%d", req
->last
);
1590 fprintf( stderr
, ", suspend_count=%d", req
->suspend_count
);
1591 fprintf( stderr
, ", dbg_hidden=%d", req
->dbg_hidden
);
1592 fprintf( stderr
, ", desc_len=%u", req
->desc_len
);
1593 dump_varargs_unicode_str( ", desc=", cur_size
);
1596 static void dump_get_thread_times_request( const struct get_thread_times_request
*req
)
1598 fprintf( stderr
, " handle=%04x", req
->handle
);
1601 static void dump_get_thread_times_reply( const struct get_thread_times_reply
*req
)
1603 dump_timeout( " creation_time=", &req
->creation_time
);
1604 dump_timeout( ", exit_time=", &req
->exit_time
);
1605 fprintf( stderr
, ", unix_pid=%d", req
->unix_pid
);
1606 fprintf( stderr
, ", unix_tid=%d", req
->unix_tid
);
1609 static void dump_set_thread_info_request( const struct set_thread_info_request
*req
)
1611 fprintf( stderr
, " handle=%04x", req
->handle
);
1612 fprintf( stderr
, ", mask=%d", req
->mask
);
1613 fprintf( stderr
, ", priority=%d", req
->priority
);
1614 dump_uint64( ", affinity=", &req
->affinity
);
1615 dump_uint64( ", entry_point=", &req
->entry_point
);
1616 fprintf( stderr
, ", token=%04x", req
->token
);
1617 dump_varargs_unicode_str( ", desc=", cur_size
);
1620 static void dump_suspend_thread_request( const struct suspend_thread_request
*req
)
1622 fprintf( stderr
, " handle=%04x", req
->handle
);
1625 static void dump_suspend_thread_reply( const struct suspend_thread_reply
*req
)
1627 fprintf( stderr
, " count=%d", req
->count
);
1630 static void dump_resume_thread_request( const struct resume_thread_request
*req
)
1632 fprintf( stderr
, " handle=%04x", req
->handle
);
1635 static void dump_resume_thread_reply( const struct resume_thread_reply
*req
)
1637 fprintf( stderr
, " count=%d", req
->count
);
1640 static void dump_queue_apc_request( const struct queue_apc_request
*req
)
1642 fprintf( stderr
, " handle=%04x", req
->handle
);
1643 dump_apc_call( ", call=", &req
->call
);
1646 static void dump_queue_apc_reply( const struct queue_apc_reply
*req
)
1648 fprintf( stderr
, " handle=%04x", req
->handle
);
1649 fprintf( stderr
, ", self=%d", req
->self
);
1652 static void dump_get_apc_result_request( const struct get_apc_result_request
*req
)
1654 fprintf( stderr
, " handle=%04x", req
->handle
);
1657 static void dump_get_apc_result_reply( const struct get_apc_result_reply
*req
)
1659 dump_apc_result( " result=", &req
->result
);
1662 static void dump_close_handle_request( const struct close_handle_request
*req
)
1664 fprintf( stderr
, " handle=%04x", req
->handle
);
1667 static void dump_set_handle_info_request( const struct set_handle_info_request
*req
)
1669 fprintf( stderr
, " handle=%04x", req
->handle
);
1670 fprintf( stderr
, ", flags=%d", req
->flags
);
1671 fprintf( stderr
, ", mask=%d", req
->mask
);
1674 static void dump_set_handle_info_reply( const struct set_handle_info_reply
*req
)
1676 fprintf( stderr
, " old_flags=%d", req
->old_flags
);
1679 static void dump_dup_handle_request( const struct dup_handle_request
*req
)
1681 fprintf( stderr
, " src_process=%04x", req
->src_process
);
1682 fprintf( stderr
, ", src_handle=%04x", req
->src_handle
);
1683 fprintf( stderr
, ", dst_process=%04x", req
->dst_process
);
1684 fprintf( stderr
, ", access=%08x", req
->access
);
1685 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1686 fprintf( stderr
, ", options=%08x", req
->options
);
1689 static void dump_dup_handle_reply( const struct dup_handle_reply
*req
)
1691 fprintf( stderr
, " handle=%04x", req
->handle
);
1694 static void dump_compare_objects_request( const struct compare_objects_request
*req
)
1696 fprintf( stderr
, " first=%04x", req
->first
);
1697 fprintf( stderr
, ", second=%04x", req
->second
);
1700 static void dump_make_temporary_request( const struct make_temporary_request
*req
)
1702 fprintf( stderr
, " handle=%04x", req
->handle
);
1705 static void dump_open_process_request( const struct open_process_request
*req
)
1707 fprintf( stderr
, " pid=%04x", req
->pid
);
1708 fprintf( stderr
, ", access=%08x", req
->access
);
1709 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1712 static void dump_open_process_reply( const struct open_process_reply
*req
)
1714 fprintf( stderr
, " handle=%04x", req
->handle
);
1717 static void dump_open_thread_request( const struct open_thread_request
*req
)
1719 fprintf( stderr
, " tid=%04x", req
->tid
);
1720 fprintf( stderr
, ", access=%08x", req
->access
);
1721 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1724 static void dump_open_thread_reply( const struct open_thread_reply
*req
)
1726 fprintf( stderr
, " handle=%04x", req
->handle
);
1729 static void dump_select_request( const struct select_request
*req
)
1731 fprintf( stderr
, " flags=%d", req
->flags
);
1732 dump_uint64( ", cookie=", &req
->cookie
);
1733 dump_abstime( ", timeout=", &req
->timeout
);
1734 fprintf( stderr
, ", size=%u", req
->size
);
1735 fprintf( stderr
, ", prev_apc=%04x", req
->prev_apc
);
1736 dump_varargs_apc_result( ", result=", cur_size
);
1737 dump_varargs_select_op( ", data=", min(cur_size
,req
->size
) );
1738 dump_varargs_contexts( ", contexts=", cur_size
);
1741 static void dump_select_reply( const struct select_reply
*req
)
1743 dump_apc_call( " call=", &req
->call
);
1744 fprintf( stderr
, ", apc_handle=%04x", req
->apc_handle
);
1745 fprintf( stderr
, ", signaled=%d", req
->signaled
);
1746 dump_varargs_contexts( ", contexts=", cur_size
);
1749 static void dump_create_event_request( const struct create_event_request
*req
)
1751 fprintf( stderr
, " access=%08x", req
->access
);
1752 fprintf( stderr
, ", manual_reset=%d", req
->manual_reset
);
1753 fprintf( stderr
, ", initial_state=%d", req
->initial_state
);
1754 dump_varargs_object_attributes( ", objattr=", cur_size
);
1757 static void dump_create_event_reply( const struct create_event_reply
*req
)
1759 fprintf( stderr
, " handle=%04x", req
->handle
);
1762 static void dump_event_op_request( const struct event_op_request
*req
)
1764 fprintf( stderr
, " handle=%04x", req
->handle
);
1765 fprintf( stderr
, ", op=%d", req
->op
);
1768 static void dump_event_op_reply( const struct event_op_reply
*req
)
1770 fprintf( stderr
, " state=%d", req
->state
);
1773 static void dump_query_event_request( const struct query_event_request
*req
)
1775 fprintf( stderr
, " handle=%04x", req
->handle
);
1778 static void dump_query_event_reply( const struct query_event_reply
*req
)
1780 fprintf( stderr
, " manual_reset=%d", req
->manual_reset
);
1781 fprintf( stderr
, ", state=%d", req
->state
);
1784 static void dump_open_event_request( const struct open_event_request
*req
)
1786 fprintf( stderr
, " access=%08x", req
->access
);
1787 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1788 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
1789 dump_varargs_unicode_str( ", name=", cur_size
);
1792 static void dump_open_event_reply( const struct open_event_reply
*req
)
1794 fprintf( stderr
, " handle=%04x", req
->handle
);
1797 static void dump_create_keyed_event_request( const struct create_keyed_event_request
*req
)
1799 fprintf( stderr
, " access=%08x", req
->access
);
1800 dump_varargs_object_attributes( ", objattr=", cur_size
);
1803 static void dump_create_keyed_event_reply( const struct create_keyed_event_reply
*req
)
1805 fprintf( stderr
, " handle=%04x", req
->handle
);
1808 static void dump_open_keyed_event_request( const struct open_keyed_event_request
*req
)
1810 fprintf( stderr
, " access=%08x", req
->access
);
1811 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1812 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
1813 dump_varargs_unicode_str( ", name=", cur_size
);
1816 static void dump_open_keyed_event_reply( const struct open_keyed_event_reply
*req
)
1818 fprintf( stderr
, " handle=%04x", req
->handle
);
1821 static void dump_create_mutex_request( const struct create_mutex_request
*req
)
1823 fprintf( stderr
, " access=%08x", req
->access
);
1824 fprintf( stderr
, ", owned=%d", req
->owned
);
1825 dump_varargs_object_attributes( ", objattr=", cur_size
);
1828 static void dump_create_mutex_reply( const struct create_mutex_reply
*req
)
1830 fprintf( stderr
, " handle=%04x", req
->handle
);
1833 static void dump_release_mutex_request( const struct release_mutex_request
*req
)
1835 fprintf( stderr
, " handle=%04x", req
->handle
);
1838 static void dump_release_mutex_reply( const struct release_mutex_reply
*req
)
1840 fprintf( stderr
, " prev_count=%08x", req
->prev_count
);
1843 static void dump_open_mutex_request( const struct open_mutex_request
*req
)
1845 fprintf( stderr
, " access=%08x", req
->access
);
1846 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1847 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
1848 dump_varargs_unicode_str( ", name=", cur_size
);
1851 static void dump_open_mutex_reply( const struct open_mutex_reply
*req
)
1853 fprintf( stderr
, " handle=%04x", req
->handle
);
1856 static void dump_query_mutex_request( const struct query_mutex_request
*req
)
1858 fprintf( stderr
, " handle=%04x", req
->handle
);
1861 static void dump_query_mutex_reply( const struct query_mutex_reply
*req
)
1863 fprintf( stderr
, " count=%08x", req
->count
);
1864 fprintf( stderr
, ", owned=%d", req
->owned
);
1865 fprintf( stderr
, ", abandoned=%d", req
->abandoned
);
1868 static void dump_create_semaphore_request( const struct create_semaphore_request
*req
)
1870 fprintf( stderr
, " access=%08x", req
->access
);
1871 fprintf( stderr
, ", initial=%08x", req
->initial
);
1872 fprintf( stderr
, ", max=%08x", req
->max
);
1873 dump_varargs_object_attributes( ", objattr=", cur_size
);
1876 static void dump_create_semaphore_reply( const struct create_semaphore_reply
*req
)
1878 fprintf( stderr
, " handle=%04x", req
->handle
);
1881 static void dump_release_semaphore_request( const struct release_semaphore_request
*req
)
1883 fprintf( stderr
, " handle=%04x", req
->handle
);
1884 fprintf( stderr
, ", count=%08x", req
->count
);
1887 static void dump_release_semaphore_reply( const struct release_semaphore_reply
*req
)
1889 fprintf( stderr
, " prev_count=%08x", req
->prev_count
);
1892 static void dump_query_semaphore_request( const struct query_semaphore_request
*req
)
1894 fprintf( stderr
, " handle=%04x", req
->handle
);
1897 static void dump_query_semaphore_reply( const struct query_semaphore_reply
*req
)
1899 fprintf( stderr
, " current=%08x", req
->current
);
1900 fprintf( stderr
, ", max=%08x", req
->max
);
1903 static void dump_open_semaphore_request( const struct open_semaphore_request
*req
)
1905 fprintf( stderr
, " access=%08x", req
->access
);
1906 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1907 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
1908 dump_varargs_unicode_str( ", name=", cur_size
);
1911 static void dump_open_semaphore_reply( const struct open_semaphore_reply
*req
)
1913 fprintf( stderr
, " handle=%04x", req
->handle
);
1916 static void dump_create_file_request( const struct create_file_request
*req
)
1918 fprintf( stderr
, " access=%08x", req
->access
);
1919 fprintf( stderr
, ", sharing=%08x", req
->sharing
);
1920 fprintf( stderr
, ", create=%d", req
->create
);
1921 fprintf( stderr
, ", options=%08x", req
->options
);
1922 fprintf( stderr
, ", attrs=%08x", req
->attrs
);
1923 dump_varargs_object_attributes( ", objattr=", cur_size
);
1924 dump_varargs_string( ", filename=", cur_size
);
1927 static void dump_create_file_reply( const struct create_file_reply
*req
)
1929 fprintf( stderr
, " handle=%04x", req
->handle
);
1932 static void dump_open_file_object_request( const struct open_file_object_request
*req
)
1934 fprintf( stderr
, " access=%08x", req
->access
);
1935 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1936 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
1937 fprintf( stderr
, ", sharing=%08x", req
->sharing
);
1938 fprintf( stderr
, ", options=%08x", req
->options
);
1939 dump_varargs_unicode_str( ", filename=", cur_size
);
1942 static void dump_open_file_object_reply( const struct open_file_object_reply
*req
)
1944 fprintf( stderr
, " handle=%04x", req
->handle
);
1947 static void dump_alloc_file_handle_request( const struct alloc_file_handle_request
*req
)
1949 fprintf( stderr
, " access=%08x", req
->access
);
1950 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1951 fprintf( stderr
, ", fd=%d", req
->fd
);
1954 static void dump_alloc_file_handle_reply( const struct alloc_file_handle_reply
*req
)
1956 fprintf( stderr
, " handle=%04x", req
->handle
);
1959 static void dump_get_handle_unix_name_request( const struct get_handle_unix_name_request
*req
)
1961 fprintf( stderr
, " handle=%04x", req
->handle
);
1964 static void dump_get_handle_unix_name_reply( const struct get_handle_unix_name_reply
*req
)
1966 fprintf( stderr
, " name_len=%u", req
->name_len
);
1967 dump_varargs_string( ", name=", cur_size
);
1970 static void dump_get_handle_fd_request( const struct get_handle_fd_request
*req
)
1972 fprintf( stderr
, " handle=%04x", req
->handle
);
1975 static void dump_get_handle_fd_reply( const struct get_handle_fd_reply
*req
)
1977 fprintf( stderr
, " type=%d", req
->type
);
1978 fprintf( stderr
, ", cacheable=%d", req
->cacheable
);
1979 fprintf( stderr
, ", access=%08x", req
->access
);
1980 fprintf( stderr
, ", options=%08x", req
->options
);
1983 static void dump_get_directory_cache_entry_request( const struct get_directory_cache_entry_request
*req
)
1985 fprintf( stderr
, " handle=%04x", req
->handle
);
1988 static void dump_get_directory_cache_entry_reply( const struct get_directory_cache_entry_reply
*req
)
1990 fprintf( stderr
, " entry=%d", req
->entry
);
1991 dump_varargs_ints( ", free=", cur_size
);
1994 static void dump_flush_request( const struct flush_request
*req
)
1996 dump_async_data( " async=", &req
->async
);
1999 static void dump_flush_reply( const struct flush_reply
*req
)
2001 fprintf( stderr
, " event=%04x", req
->event
);
2004 static void dump_get_file_info_request( const struct get_file_info_request
*req
)
2006 fprintf( stderr
, " handle=%04x", req
->handle
);
2007 fprintf( stderr
, ", info_class=%08x", req
->info_class
);
2010 static void dump_get_file_info_reply( const struct get_file_info_reply
*req
)
2012 dump_varargs_bytes( " data=", cur_size
);
2015 static void dump_get_volume_info_request( const struct get_volume_info_request
*req
)
2017 fprintf( stderr
, " handle=%04x", req
->handle
);
2018 dump_async_data( ", async=", &req
->async
);
2019 fprintf( stderr
, ", info_class=%08x", req
->info_class
);
2022 static void dump_get_volume_info_reply( const struct get_volume_info_reply
*req
)
2024 fprintf( stderr
, " wait=%04x", req
->wait
);
2025 dump_varargs_bytes( ", data=", cur_size
);
2028 static void dump_lock_file_request( const struct lock_file_request
*req
)
2030 fprintf( stderr
, " handle=%04x", req
->handle
);
2031 dump_uint64( ", offset=", &req
->offset
);
2032 dump_uint64( ", count=", &req
->count
);
2033 fprintf( stderr
, ", shared=%d", req
->shared
);
2034 fprintf( stderr
, ", wait=%d", req
->wait
);
2037 static void dump_lock_file_reply( const struct lock_file_reply
*req
)
2039 fprintf( stderr
, " handle=%04x", req
->handle
);
2040 fprintf( stderr
, ", overlapped=%d", req
->overlapped
);
2043 static void dump_unlock_file_request( const struct unlock_file_request
*req
)
2045 fprintf( stderr
, " handle=%04x", req
->handle
);
2046 dump_uint64( ", offset=", &req
->offset
);
2047 dump_uint64( ", count=", &req
->count
);
2050 static void dump_recv_socket_request( const struct recv_socket_request
*req
)
2052 fprintf( stderr
, " oob=%d", req
->oob
);
2053 dump_async_data( ", async=", &req
->async
);
2054 fprintf( stderr
, ", force_async=%d", req
->force_async
);
2057 static void dump_recv_socket_reply( const struct recv_socket_reply
*req
)
2059 fprintf( stderr
, " wait=%04x", req
->wait
);
2060 fprintf( stderr
, ", options=%08x", req
->options
);
2061 fprintf( stderr
, ", nonblocking=%d", req
->nonblocking
);
2064 static void dump_send_socket_request( const struct send_socket_request
*req
)
2066 dump_async_data( " async=", &req
->async
);
2067 fprintf( stderr
, ", force_async=%d", req
->force_async
);
2070 static void dump_send_socket_reply( const struct send_socket_reply
*req
)
2072 fprintf( stderr
, " wait=%04x", req
->wait
);
2073 fprintf( stderr
, ", options=%08x", req
->options
);
2074 fprintf( stderr
, ", nonblocking=%d", req
->nonblocking
);
2077 static void dump_socket_send_icmp_id_request( const struct socket_send_icmp_id_request
*req
)
2079 fprintf( stderr
, " handle=%04x", req
->handle
);
2080 fprintf( stderr
, ", icmp_id=%04x", req
->icmp_id
);
2081 fprintf( stderr
, ", icmp_seq=%04x", req
->icmp_seq
);
2084 static void dump_socket_get_icmp_id_request( const struct socket_get_icmp_id_request
*req
)
2086 fprintf( stderr
, " handle=%04x", req
->handle
);
2087 fprintf( stderr
, ", icmp_seq=%04x", req
->icmp_seq
);
2090 static void dump_socket_get_icmp_id_reply( const struct socket_get_icmp_id_reply
*req
)
2092 fprintf( stderr
, " icmp_id=%04x", req
->icmp_id
);
2095 static void dump_get_next_console_request_request( const struct get_next_console_request_request
*req
)
2097 fprintf( stderr
, " handle=%04x", req
->handle
);
2098 fprintf( stderr
, ", signal=%d", req
->signal
);
2099 fprintf( stderr
, ", read=%d", req
->read
);
2100 fprintf( stderr
, ", status=%08x", req
->status
);
2101 dump_varargs_bytes( ", out_data=", cur_size
);
2104 static void dump_get_next_console_request_reply( const struct get_next_console_request_reply
*req
)
2106 fprintf( stderr
, " code=%08x", req
->code
);
2107 fprintf( stderr
, ", output=%08x", req
->output
);
2108 fprintf( stderr
, ", out_size=%u", req
->out_size
);
2109 dump_varargs_bytes( ", in_data=", cur_size
);
2112 static void dump_read_directory_changes_request( const struct read_directory_changes_request
*req
)
2114 fprintf( stderr
, " filter=%08x", req
->filter
);
2115 fprintf( stderr
, ", subtree=%d", req
->subtree
);
2116 fprintf( stderr
, ", want_data=%d", req
->want_data
);
2117 dump_async_data( ", async=", &req
->async
);
2120 static void dump_read_change_request( const struct read_change_request
*req
)
2122 fprintf( stderr
, " handle=%04x", req
->handle
);
2125 static void dump_read_change_reply( const struct read_change_reply
*req
)
2127 dump_varargs_filesystem_event( " events=", cur_size
);
2130 static void dump_create_mapping_request( const struct create_mapping_request
*req
)
2132 fprintf( stderr
, " access=%08x", req
->access
);
2133 fprintf( stderr
, ", flags=%08x", req
->flags
);
2134 fprintf( stderr
, ", file_access=%08x", req
->file_access
);
2135 dump_uint64( ", size=", &req
->size
);
2136 fprintf( stderr
, ", file_handle=%04x", req
->file_handle
);
2137 dump_varargs_object_attributes( ", objattr=", cur_size
);
2140 static void dump_create_mapping_reply( const struct create_mapping_reply
*req
)
2142 fprintf( stderr
, " handle=%04x", req
->handle
);
2145 static void dump_open_mapping_request( const struct open_mapping_request
*req
)
2147 fprintf( stderr
, " access=%08x", req
->access
);
2148 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
2149 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
2150 dump_varargs_unicode_str( ", name=", cur_size
);
2153 static void dump_open_mapping_reply( const struct open_mapping_reply
*req
)
2155 fprintf( stderr
, " handle=%04x", req
->handle
);
2158 static void dump_get_mapping_info_request( const struct get_mapping_info_request
*req
)
2160 fprintf( stderr
, " handle=%04x", req
->handle
);
2161 fprintf( stderr
, ", access=%08x", req
->access
);
2164 static void dump_get_mapping_info_reply( const struct get_mapping_info_reply
*req
)
2166 dump_uint64( " size=", &req
->size
);
2167 fprintf( stderr
, ", flags=%08x", req
->flags
);
2168 fprintf( stderr
, ", shared_file=%04x", req
->shared_file
);
2169 fprintf( stderr
, ", total=%u", req
->total
);
2170 dump_varargs_pe_image_info( ", image=", cur_size
);
2171 dump_varargs_unicode_str( ", name=", cur_size
);
2174 static void dump_map_view_request( const struct map_view_request
*req
)
2176 fprintf( stderr
, " mapping=%04x", req
->mapping
);
2177 fprintf( stderr
, ", access=%08x", req
->access
);
2178 dump_uint64( ", base=", &req
->base
);
2179 dump_uint64( ", size=", &req
->size
);
2180 dump_uint64( ", start=", &req
->start
);
2183 static void dump_map_image_view_request( const struct map_image_view_request
*req
)
2185 fprintf( stderr
, " mapping=%04x", req
->mapping
);
2186 dump_uint64( ", base=", &req
->base
);
2187 dump_uint64( ", size=", &req
->size
);
2188 fprintf( stderr
, ", entry=%08x", req
->entry
);
2189 fprintf( stderr
, ", machine=%04x", req
->machine
);
2192 static void dump_map_builtin_view_request( const struct map_builtin_view_request
*req
)
2194 dump_varargs_pe_image_info( " image=", cur_size
);
2195 dump_varargs_unicode_str( ", name=", cur_size
);
2198 static void dump_unmap_view_request( const struct unmap_view_request
*req
)
2200 dump_uint64( " base=", &req
->base
);
2203 static void dump_get_mapping_committed_range_request( const struct get_mapping_committed_range_request
*req
)
2205 dump_uint64( " base=", &req
->base
);
2206 dump_uint64( ", offset=", &req
->offset
);
2209 static void dump_get_mapping_committed_range_reply( const struct get_mapping_committed_range_reply
*req
)
2211 dump_uint64( " size=", &req
->size
);
2212 fprintf( stderr
, ", committed=%d", req
->committed
);
2215 static void dump_add_mapping_committed_range_request( const struct add_mapping_committed_range_request
*req
)
2217 dump_uint64( " base=", &req
->base
);
2218 dump_uint64( ", offset=", &req
->offset
);
2219 dump_uint64( ", size=", &req
->size
);
2222 static void dump_is_same_mapping_request( const struct is_same_mapping_request
*req
)
2224 dump_uint64( " base1=", &req
->base1
);
2225 dump_uint64( ", base2=", &req
->base2
);
2228 static void dump_get_mapping_filename_request( const struct get_mapping_filename_request
*req
)
2230 fprintf( stderr
, " process=%04x", req
->process
);
2231 dump_uint64( ", addr=", &req
->addr
);
2234 static void dump_get_mapping_filename_reply( const struct get_mapping_filename_reply
*req
)
2236 fprintf( stderr
, " len=%u", req
->len
);
2237 dump_varargs_unicode_str( ", filename=", cur_size
);
2240 static void dump_list_processes_request( const struct list_processes_request
*req
)
2244 static void dump_list_processes_reply( const struct list_processes_reply
*req
)
2246 fprintf( stderr
, " info_size=%u", req
->info_size
);
2247 fprintf( stderr
, ", process_count=%d", req
->process_count
);
2248 fprintf( stderr
, ", total_thread_count=%d", req
->total_thread_count
);
2249 fprintf( stderr
, ", total_name_len=%u", req
->total_name_len
);
2250 dump_varargs_process_info( ", data=", min(cur_size
,req
->info_size
) );
2253 static void dump_create_debug_obj_request( const struct create_debug_obj_request
*req
)
2255 fprintf( stderr
, " access=%08x", req
->access
);
2256 fprintf( stderr
, ", flags=%08x", req
->flags
);
2257 dump_varargs_object_attributes( ", objattr=", cur_size
);
2260 static void dump_create_debug_obj_reply( const struct create_debug_obj_reply
*req
)
2262 fprintf( stderr
, " handle=%04x", req
->handle
);
2265 static void dump_wait_debug_event_request( const struct wait_debug_event_request
*req
)
2267 fprintf( stderr
, " debug=%04x", req
->debug
);
2270 static void dump_wait_debug_event_reply( const struct wait_debug_event_reply
*req
)
2272 fprintf( stderr
, " pid=%04x", req
->pid
);
2273 fprintf( stderr
, ", tid=%04x", req
->tid
);
2274 dump_varargs_debug_event( ", event=", cur_size
);
2277 static void dump_queue_exception_event_request( const struct queue_exception_event_request
*req
)
2279 fprintf( stderr
, " first=%d", req
->first
);
2280 fprintf( stderr
, ", code=%08x", req
->code
);
2281 fprintf( stderr
, ", flags=%08x", req
->flags
);
2282 dump_uint64( ", record=", &req
->record
);
2283 dump_uint64( ", address=", &req
->address
);
2284 fprintf( stderr
, ", len=%u", req
->len
);
2285 dump_varargs_uints64( ", params=", min(cur_size
,req
->len
) );
2288 static void dump_queue_exception_event_reply( const struct queue_exception_event_reply
*req
)
2290 fprintf( stderr
, " handle=%04x", req
->handle
);
2293 static void dump_get_exception_status_request( const struct get_exception_status_request
*req
)
2295 fprintf( stderr
, " handle=%04x", req
->handle
);
2298 static void dump_continue_debug_event_request( const struct continue_debug_event_request
*req
)
2300 fprintf( stderr
, " debug=%04x", req
->debug
);
2301 fprintf( stderr
, ", pid=%04x", req
->pid
);
2302 fprintf( stderr
, ", tid=%04x", req
->tid
);
2303 fprintf( stderr
, ", status=%08x", req
->status
);
2306 static void dump_debug_process_request( const struct debug_process_request
*req
)
2308 fprintf( stderr
, " handle=%04x", req
->handle
);
2309 fprintf( stderr
, ", debug=%04x", req
->debug
);
2310 fprintf( stderr
, ", attach=%d", req
->attach
);
2313 static void dump_set_debug_obj_info_request( const struct set_debug_obj_info_request
*req
)
2315 fprintf( stderr
, " debug=%04x", req
->debug
);
2316 fprintf( stderr
, ", flags=%08x", req
->flags
);
2319 static void dump_read_process_memory_request( const struct read_process_memory_request
*req
)
2321 fprintf( stderr
, " handle=%04x", req
->handle
);
2322 dump_uint64( ", addr=", &req
->addr
);
2325 static void dump_read_process_memory_reply( const struct read_process_memory_reply
*req
)
2327 dump_varargs_bytes( " data=", cur_size
);
2330 static void dump_write_process_memory_request( const struct write_process_memory_request
*req
)
2332 fprintf( stderr
, " handle=%04x", req
->handle
);
2333 dump_uint64( ", addr=", &req
->addr
);
2334 dump_varargs_bytes( ", data=", cur_size
);
2337 static void dump_create_key_request( const struct create_key_request
*req
)
2339 fprintf( stderr
, " access=%08x", req
->access
);
2340 fprintf( stderr
, ", options=%08x", req
->options
);
2341 dump_varargs_object_attributes( ", objattr=", cur_size
);
2342 dump_varargs_unicode_str( ", class=", cur_size
);
2345 static void dump_create_key_reply( const struct create_key_reply
*req
)
2347 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2350 static void dump_open_key_request( const struct open_key_request
*req
)
2352 fprintf( stderr
, " parent=%04x", req
->parent
);
2353 fprintf( stderr
, ", access=%08x", req
->access
);
2354 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
2355 dump_varargs_unicode_str( ", name=", cur_size
);
2358 static void dump_open_key_reply( const struct open_key_reply
*req
)
2360 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2363 static void dump_delete_key_request( const struct delete_key_request
*req
)
2365 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2368 static void dump_flush_key_request( const struct flush_key_request
*req
)
2370 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2373 static void dump_enum_key_request( const struct enum_key_request
*req
)
2375 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2376 fprintf( stderr
, ", index=%d", req
->index
);
2377 fprintf( stderr
, ", info_class=%d", req
->info_class
);
2380 static void dump_enum_key_reply( const struct enum_key_reply
*req
)
2382 fprintf( stderr
, " subkeys=%d", req
->subkeys
);
2383 fprintf( stderr
, ", max_subkey=%d", req
->max_subkey
);
2384 fprintf( stderr
, ", max_class=%d", req
->max_class
);
2385 fprintf( stderr
, ", values=%d", req
->values
);
2386 fprintf( stderr
, ", max_value=%d", req
->max_value
);
2387 fprintf( stderr
, ", max_data=%d", req
->max_data
);
2388 dump_timeout( ", modif=", &req
->modif
);
2389 fprintf( stderr
, ", total=%u", req
->total
);
2390 fprintf( stderr
, ", namelen=%u", req
->namelen
);
2391 dump_varargs_unicode_str( ", name=", min(cur_size
,req
->namelen
) );
2392 dump_varargs_unicode_str( ", class=", cur_size
);
2395 static void dump_set_key_value_request( const struct set_key_value_request
*req
)
2397 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2398 fprintf( stderr
, ", type=%d", req
->type
);
2399 fprintf( stderr
, ", namelen=%u", req
->namelen
);
2400 dump_varargs_unicode_str( ", name=", min(cur_size
,req
->namelen
) );
2401 dump_varargs_bytes( ", data=", cur_size
);
2404 static void dump_get_key_value_request( const struct get_key_value_request
*req
)
2406 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2407 dump_varargs_unicode_str( ", name=", cur_size
);
2410 static void dump_get_key_value_reply( const struct get_key_value_reply
*req
)
2412 fprintf( stderr
, " type=%d", req
->type
);
2413 fprintf( stderr
, ", total=%u", req
->total
);
2414 dump_varargs_bytes( ", data=", cur_size
);
2417 static void dump_enum_key_value_request( const struct enum_key_value_request
*req
)
2419 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2420 fprintf( stderr
, ", index=%d", req
->index
);
2421 fprintf( stderr
, ", info_class=%d", req
->info_class
);
2424 static void dump_enum_key_value_reply( const struct enum_key_value_reply
*req
)
2426 fprintf( stderr
, " type=%d", req
->type
);
2427 fprintf( stderr
, ", total=%u", req
->total
);
2428 fprintf( stderr
, ", namelen=%u", req
->namelen
);
2429 dump_varargs_unicode_str( ", name=", min(cur_size
,req
->namelen
) );
2430 dump_varargs_bytes( ", data=", cur_size
);
2433 static void dump_delete_key_value_request( const struct delete_key_value_request
*req
)
2435 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2436 dump_varargs_unicode_str( ", name=", cur_size
);
2439 static void dump_load_registry_request( const struct load_registry_request
*req
)
2441 fprintf( stderr
, " file=%04x", req
->file
);
2442 dump_varargs_object_attributes( ", objattr=", cur_size
);
2445 static void dump_unload_registry_request( const struct unload_registry_request
*req
)
2447 fprintf( stderr
, " parent=%04x", req
->parent
);
2448 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
2449 dump_varargs_unicode_str( ", name=", cur_size
);
2452 static void dump_save_registry_request( const struct save_registry_request
*req
)
2454 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2455 fprintf( stderr
, ", file=%04x", req
->file
);
2458 static void dump_set_registry_notification_request( const struct set_registry_notification_request
*req
)
2460 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2461 fprintf( stderr
, ", event=%04x", req
->event
);
2462 fprintf( stderr
, ", subtree=%d", req
->subtree
);
2463 fprintf( stderr
, ", filter=%08x", req
->filter
);
2466 static void dump_rename_key_request( const struct rename_key_request
*req
)
2468 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2469 dump_varargs_unicode_str( ", name=", cur_size
);
2472 static void dump_create_timer_request( const struct create_timer_request
*req
)
2474 fprintf( stderr
, " access=%08x", req
->access
);
2475 fprintf( stderr
, ", manual=%d", req
->manual
);
2476 dump_varargs_object_attributes( ", objattr=", cur_size
);
2479 static void dump_create_timer_reply( const struct create_timer_reply
*req
)
2481 fprintf( stderr
, " handle=%04x", req
->handle
);
2484 static void dump_open_timer_request( const struct open_timer_request
*req
)
2486 fprintf( stderr
, " access=%08x", req
->access
);
2487 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
2488 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
2489 dump_varargs_unicode_str( ", name=", cur_size
);
2492 static void dump_open_timer_reply( const struct open_timer_reply
*req
)
2494 fprintf( stderr
, " handle=%04x", req
->handle
);
2497 static void dump_set_timer_request( const struct set_timer_request
*req
)
2499 fprintf( stderr
, " handle=%04x", req
->handle
);
2500 dump_timeout( ", expire=", &req
->expire
);
2501 dump_uint64( ", callback=", &req
->callback
);
2502 dump_uint64( ", arg=", &req
->arg
);
2503 fprintf( stderr
, ", period=%d", req
->period
);
2506 static void dump_set_timer_reply( const struct set_timer_reply
*req
)
2508 fprintf( stderr
, " signaled=%d", req
->signaled
);
2511 static void dump_cancel_timer_request( const struct cancel_timer_request
*req
)
2513 fprintf( stderr
, " handle=%04x", req
->handle
);
2516 static void dump_cancel_timer_reply( const struct cancel_timer_reply
*req
)
2518 fprintf( stderr
, " signaled=%d", req
->signaled
);
2521 static void dump_get_timer_info_request( const struct get_timer_info_request
*req
)
2523 fprintf( stderr
, " handle=%04x", req
->handle
);
2526 static void dump_get_timer_info_reply( const struct get_timer_info_reply
*req
)
2528 dump_timeout( " when=", &req
->when
);
2529 fprintf( stderr
, ", signaled=%d", req
->signaled
);
2532 static void dump_get_thread_context_request( const struct get_thread_context_request
*req
)
2534 fprintf( stderr
, " handle=%04x", req
->handle
);
2535 fprintf( stderr
, ", context=%04x", req
->context
);
2536 fprintf( stderr
, ", flags=%08x", req
->flags
);
2537 fprintf( stderr
, ", native_flags=%08x", req
->native_flags
);
2538 fprintf( stderr
, ", machine=%04x", req
->machine
);
2541 static void dump_get_thread_context_reply( const struct get_thread_context_reply
*req
)
2543 fprintf( stderr
, " self=%d", req
->self
);
2544 fprintf( stderr
, ", handle=%04x", req
->handle
);
2545 dump_varargs_contexts( ", contexts=", cur_size
);
2548 static void dump_set_thread_context_request( const struct set_thread_context_request
*req
)
2550 fprintf( stderr
, " handle=%04x", req
->handle
);
2551 fprintf( stderr
, ", native_flags=%08x", req
->native_flags
);
2552 dump_varargs_contexts( ", contexts=", cur_size
);
2555 static void dump_set_thread_context_reply( const struct set_thread_context_reply
*req
)
2557 fprintf( stderr
, " self=%d", req
->self
);
2560 static void dump_get_selector_entry_request( const struct get_selector_entry_request
*req
)
2562 fprintf( stderr
, " handle=%04x", req
->handle
);
2563 fprintf( stderr
, ", entry=%d", req
->entry
);
2566 static void dump_get_selector_entry_reply( const struct get_selector_entry_reply
*req
)
2568 fprintf( stderr
, " base=%08x", req
->base
);
2569 fprintf( stderr
, ", limit=%08x", req
->limit
);
2570 fprintf( stderr
, ", flags=%02x", req
->flags
);
2573 static void dump_add_atom_request( const struct add_atom_request
*req
)
2575 dump_varargs_unicode_str( " name=", cur_size
);
2578 static void dump_add_atom_reply( const struct add_atom_reply
*req
)
2580 fprintf( stderr
, " atom=%04x", req
->atom
);
2583 static void dump_delete_atom_request( const struct delete_atom_request
*req
)
2585 fprintf( stderr
, " atom=%04x", req
->atom
);
2588 static void dump_find_atom_request( const struct find_atom_request
*req
)
2590 dump_varargs_unicode_str( " name=", cur_size
);
2593 static void dump_find_atom_reply( const struct find_atom_reply
*req
)
2595 fprintf( stderr
, " atom=%04x", req
->atom
);
2598 static void dump_get_atom_information_request( const struct get_atom_information_request
*req
)
2600 fprintf( stderr
, " atom=%04x", req
->atom
);
2603 static void dump_get_atom_information_reply( const struct get_atom_information_reply
*req
)
2605 fprintf( stderr
, " count=%d", req
->count
);
2606 fprintf( stderr
, ", pinned=%d", req
->pinned
);
2607 fprintf( stderr
, ", total=%u", req
->total
);
2608 dump_varargs_unicode_str( ", name=", cur_size
);
2611 static void dump_get_msg_queue_request( const struct get_msg_queue_request
*req
)
2615 static void dump_get_msg_queue_reply( const struct get_msg_queue_reply
*req
)
2617 fprintf( stderr
, " handle=%04x", req
->handle
);
2620 static void dump_set_queue_fd_request( const struct set_queue_fd_request
*req
)
2622 fprintf( stderr
, " handle=%04x", req
->handle
);
2625 static void dump_set_queue_mask_request( const struct set_queue_mask_request
*req
)
2627 fprintf( stderr
, " wake_mask=%08x", req
->wake_mask
);
2628 fprintf( stderr
, ", changed_mask=%08x", req
->changed_mask
);
2629 fprintf( stderr
, ", skip_wait=%d", req
->skip_wait
);
2632 static void dump_set_queue_mask_reply( const struct set_queue_mask_reply
*req
)
2634 fprintf( stderr
, " wake_bits=%08x", req
->wake_bits
);
2635 fprintf( stderr
, ", changed_bits=%08x", req
->changed_bits
);
2638 static void dump_get_queue_status_request( const struct get_queue_status_request
*req
)
2640 fprintf( stderr
, " clear_bits=%08x", req
->clear_bits
);
2643 static void dump_get_queue_status_reply( const struct get_queue_status_reply
*req
)
2645 fprintf( stderr
, " wake_bits=%08x", req
->wake_bits
);
2646 fprintf( stderr
, ", changed_bits=%08x", req
->changed_bits
);
2649 static void dump_get_process_idle_event_request( const struct get_process_idle_event_request
*req
)
2651 fprintf( stderr
, " handle=%04x", req
->handle
);
2654 static void dump_get_process_idle_event_reply( const struct get_process_idle_event_reply
*req
)
2656 fprintf( stderr
, " event=%04x", req
->event
);
2659 static void dump_send_message_request( const struct send_message_request
*req
)
2661 fprintf( stderr
, " id=%04x", req
->id
);
2662 fprintf( stderr
, ", type=%d", req
->type
);
2663 fprintf( stderr
, ", flags=%d", req
->flags
);
2664 fprintf( stderr
, ", win=%08x", req
->win
);
2665 fprintf( stderr
, ", msg=%08x", req
->msg
);
2666 dump_uint64( ", wparam=", &req
->wparam
);
2667 dump_uint64( ", lparam=", &req
->lparam
);
2668 dump_timeout( ", timeout=", &req
->timeout
);
2669 dump_varargs_message_data( ", data=", cur_size
);
2672 static void dump_post_quit_message_request( const struct post_quit_message_request
*req
)
2674 fprintf( stderr
, " exit_code=%d", req
->exit_code
);
2677 static void dump_send_hardware_message_request( const struct send_hardware_message_request
*req
)
2679 fprintf( stderr
, " win=%08x", req
->win
);
2680 dump_hw_input( ", input=", &req
->input
);
2681 fprintf( stderr
, ", flags=%08x", req
->flags
);
2682 dump_varargs_bytes( ", report=", cur_size
);
2685 static void dump_send_hardware_message_reply( const struct send_hardware_message_reply
*req
)
2687 fprintf( stderr
, " wait=%d", req
->wait
);
2688 fprintf( stderr
, ", prev_x=%d", req
->prev_x
);
2689 fprintf( stderr
, ", prev_y=%d", req
->prev_y
);
2690 fprintf( stderr
, ", new_x=%d", req
->new_x
);
2691 fprintf( stderr
, ", new_y=%d", req
->new_y
);
2694 static void dump_get_message_request( const struct get_message_request
*req
)
2696 fprintf( stderr
, " flags=%08x", req
->flags
);
2697 fprintf( stderr
, ", get_win=%08x", req
->get_win
);
2698 fprintf( stderr
, ", get_first=%08x", req
->get_first
);
2699 fprintf( stderr
, ", get_last=%08x", req
->get_last
);
2700 fprintf( stderr
, ", hw_id=%08x", req
->hw_id
);
2701 fprintf( stderr
, ", wake_mask=%08x", req
->wake_mask
);
2702 fprintf( stderr
, ", changed_mask=%08x", req
->changed_mask
);
2705 static void dump_get_message_reply( const struct get_message_reply
*req
)
2707 fprintf( stderr
, " win=%08x", req
->win
);
2708 fprintf( stderr
, ", msg=%08x", req
->msg
);
2709 dump_uint64( ", wparam=", &req
->wparam
);
2710 dump_uint64( ", lparam=", &req
->lparam
);
2711 fprintf( stderr
, ", type=%d", req
->type
);
2712 fprintf( stderr
, ", x=%d", req
->x
);
2713 fprintf( stderr
, ", y=%d", req
->y
);
2714 fprintf( stderr
, ", time=%08x", req
->time
);
2715 fprintf( stderr
, ", active_hooks=%08x", req
->active_hooks
);
2716 fprintf( stderr
, ", total=%u", req
->total
);
2717 dump_varargs_message_data( ", data=", cur_size
);
2720 static void dump_reply_message_request( const struct reply_message_request
*req
)
2722 fprintf( stderr
, " remove=%d", req
->remove
);
2723 dump_uint64( ", result=", &req
->result
);
2724 dump_varargs_bytes( ", data=", cur_size
);
2727 static void dump_accept_hardware_message_request( const struct accept_hardware_message_request
*req
)
2729 fprintf( stderr
, " hw_id=%08x", req
->hw_id
);
2732 static void dump_get_message_reply_request( const struct get_message_reply_request
*req
)
2734 fprintf( stderr
, " cancel=%d", req
->cancel
);
2737 static void dump_get_message_reply_reply( const struct get_message_reply_reply
*req
)
2739 dump_uint64( " result=", &req
->result
);
2740 dump_varargs_bytes( ", data=", cur_size
);
2743 static void dump_set_win_timer_request( const struct set_win_timer_request
*req
)
2745 fprintf( stderr
, " win=%08x", req
->win
);
2746 fprintf( stderr
, ", msg=%08x", req
->msg
);
2747 fprintf( stderr
, ", rate=%08x", req
->rate
);
2748 dump_uint64( ", id=", &req
->id
);
2749 dump_uint64( ", lparam=", &req
->lparam
);
2752 static void dump_set_win_timer_reply( const struct set_win_timer_reply
*req
)
2754 dump_uint64( " id=", &req
->id
);
2757 static void dump_kill_win_timer_request( const struct kill_win_timer_request
*req
)
2759 fprintf( stderr
, " win=%08x", req
->win
);
2760 dump_uint64( ", id=", &req
->id
);
2761 fprintf( stderr
, ", msg=%08x", req
->msg
);
2764 static void dump_is_window_hung_request( const struct is_window_hung_request
*req
)
2766 fprintf( stderr
, " win=%08x", req
->win
);
2769 static void dump_is_window_hung_reply( const struct is_window_hung_reply
*req
)
2771 fprintf( stderr
, " is_hung=%d", req
->is_hung
);
2774 static void dump_get_serial_info_request( const struct get_serial_info_request
*req
)
2776 fprintf( stderr
, " handle=%04x", req
->handle
);
2777 fprintf( stderr
, ", flags=%d", req
->flags
);
2780 static void dump_get_serial_info_reply( const struct get_serial_info_reply
*req
)
2782 fprintf( stderr
, " eventmask=%08x", req
->eventmask
);
2783 fprintf( stderr
, ", cookie=%08x", req
->cookie
);
2784 fprintf( stderr
, ", pending_write=%08x", req
->pending_write
);
2787 static void dump_set_serial_info_request( const struct set_serial_info_request
*req
)
2789 fprintf( stderr
, " handle=%04x", req
->handle
);
2790 fprintf( stderr
, ", flags=%d", req
->flags
);
2793 static void dump_cancel_sync_request( const struct cancel_sync_request
*req
)
2795 fprintf( stderr
, " handle=%04x", req
->handle
);
2796 dump_uint64( ", iosb=", &req
->iosb
);
2799 static void dump_register_async_request( const struct register_async_request
*req
)
2801 fprintf( stderr
, " type=%d", req
->type
);
2802 dump_async_data( ", async=", &req
->async
);
2803 fprintf( stderr
, ", count=%d", req
->count
);
2806 static void dump_cancel_async_request( const struct cancel_async_request
*req
)
2808 fprintf( stderr
, " handle=%04x", req
->handle
);
2809 dump_uint64( ", iosb=", &req
->iosb
);
2810 fprintf( stderr
, ", only_thread=%d", req
->only_thread
);
2813 static void dump_get_async_result_request( const struct get_async_result_request
*req
)
2815 dump_uint64( " user_arg=", &req
->user_arg
);
2818 static void dump_get_async_result_reply( const struct get_async_result_reply
*req
)
2820 dump_varargs_bytes( " out_data=", cur_size
);
2823 static void dump_set_async_direct_result_request( const struct set_async_direct_result_request
*req
)
2825 fprintf( stderr
, " handle=%04x", req
->handle
);
2826 dump_uint64( ", information=", &req
->information
);
2827 fprintf( stderr
, ", status=%08x", req
->status
);
2828 fprintf( stderr
, ", mark_pending=%d", req
->mark_pending
);
2831 static void dump_set_async_direct_result_reply( const struct set_async_direct_result_reply
*req
)
2833 fprintf( stderr
, " handle=%04x", req
->handle
);
2836 static void dump_read_request( const struct read_request
*req
)
2838 dump_async_data( " async=", &req
->async
);
2839 dump_uint64( ", pos=", &req
->pos
);
2842 static void dump_read_reply( const struct read_reply
*req
)
2844 fprintf( stderr
, " wait=%04x", req
->wait
);
2845 fprintf( stderr
, ", options=%08x", req
->options
);
2846 dump_varargs_bytes( ", data=", cur_size
);
2849 static void dump_write_request( const struct write_request
*req
)
2851 dump_async_data( " async=", &req
->async
);
2852 dump_uint64( ", pos=", &req
->pos
);
2853 dump_varargs_bytes( ", data=", cur_size
);
2856 static void dump_write_reply( const struct write_reply
*req
)
2858 fprintf( stderr
, " wait=%04x", req
->wait
);
2859 fprintf( stderr
, ", options=%08x", req
->options
);
2860 fprintf( stderr
, ", size=%u", req
->size
);
2863 static void dump_ioctl_request( const struct ioctl_request
*req
)
2865 dump_ioctl_code( " code=", &req
->code
);
2866 dump_async_data( ", async=", &req
->async
);
2867 dump_varargs_bytes( ", in_data=", cur_size
);
2870 static void dump_ioctl_reply( const struct ioctl_reply
*req
)
2872 fprintf( stderr
, " wait=%04x", req
->wait
);
2873 fprintf( stderr
, ", options=%08x", req
->options
);
2874 dump_varargs_bytes( ", out_data=", cur_size
);
2877 static void dump_set_irp_result_request( const struct set_irp_result_request
*req
)
2879 fprintf( stderr
, " handle=%04x", req
->handle
);
2880 fprintf( stderr
, ", status=%08x", req
->status
);
2881 fprintf( stderr
, ", size=%u", req
->size
);
2882 dump_varargs_bytes( ", data=", cur_size
);
2885 static void dump_create_named_pipe_request( const struct create_named_pipe_request
*req
)
2887 fprintf( stderr
, " access=%08x", req
->access
);
2888 fprintf( stderr
, ", options=%08x", req
->options
);
2889 fprintf( stderr
, ", sharing=%08x", req
->sharing
);
2890 fprintf( stderr
, ", disposition=%08x", req
->disposition
);
2891 fprintf( stderr
, ", maxinstances=%08x", req
->maxinstances
);
2892 fprintf( stderr
, ", outsize=%08x", req
->outsize
);
2893 fprintf( stderr
, ", insize=%08x", req
->insize
);
2894 dump_timeout( ", timeout=", &req
->timeout
);
2895 fprintf( stderr
, ", flags=%08x", req
->flags
);
2896 dump_varargs_object_attributes( ", objattr=", cur_size
);
2899 static void dump_create_named_pipe_reply( const struct create_named_pipe_reply
*req
)
2901 fprintf( stderr
, " handle=%04x", req
->handle
);
2902 fprintf( stderr
, ", created=%d", req
->created
);
2905 static void dump_set_named_pipe_info_request( const struct set_named_pipe_info_request
*req
)
2907 fprintf( stderr
, " handle=%04x", req
->handle
);
2908 fprintf( stderr
, ", flags=%08x", req
->flags
);
2911 static void dump_create_window_request( const struct create_window_request
*req
)
2913 fprintf( stderr
, " parent=%08x", req
->parent
);
2914 fprintf( stderr
, ", owner=%08x", req
->owner
);
2915 fprintf( stderr
, ", atom=%04x", req
->atom
);
2916 dump_uint64( ", instance=", &req
->instance
);
2917 fprintf( stderr
, ", dpi=%d", req
->dpi
);
2918 fprintf( stderr
, ", awareness=%d", req
->awareness
);
2919 fprintf( stderr
, ", style=%08x", req
->style
);
2920 fprintf( stderr
, ", ex_style=%08x", req
->ex_style
);
2921 dump_varargs_unicode_str( ", class=", cur_size
);
2924 static void dump_create_window_reply( const struct create_window_reply
*req
)
2926 fprintf( stderr
, " handle=%08x", req
->handle
);
2927 fprintf( stderr
, ", parent=%08x", req
->parent
);
2928 fprintf( stderr
, ", owner=%08x", req
->owner
);
2929 fprintf( stderr
, ", extra=%d", req
->extra
);
2930 dump_uint64( ", class_ptr=", &req
->class_ptr
);
2931 fprintf( stderr
, ", dpi=%d", req
->dpi
);
2932 fprintf( stderr
, ", awareness=%d", req
->awareness
);
2935 static void dump_destroy_window_request( const struct destroy_window_request
*req
)
2937 fprintf( stderr
, " handle=%08x", req
->handle
);
2940 static void dump_get_desktop_window_request( const struct get_desktop_window_request
*req
)
2942 fprintf( stderr
, " force=%d", req
->force
);
2945 static void dump_get_desktop_window_reply( const struct get_desktop_window_reply
*req
)
2947 fprintf( stderr
, " top_window=%08x", req
->top_window
);
2948 fprintf( stderr
, ", msg_window=%08x", req
->msg_window
);
2951 static void dump_set_window_owner_request( const struct set_window_owner_request
*req
)
2953 fprintf( stderr
, " handle=%08x", req
->handle
);
2954 fprintf( stderr
, ", owner=%08x", req
->owner
);
2957 static void dump_set_window_owner_reply( const struct set_window_owner_reply
*req
)
2959 fprintf( stderr
, " full_owner=%08x", req
->full_owner
);
2960 fprintf( stderr
, ", prev_owner=%08x", req
->prev_owner
);
2963 static void dump_get_window_info_request( const struct get_window_info_request
*req
)
2965 fprintf( stderr
, " handle=%08x", req
->handle
);
2968 static void dump_get_window_info_reply( const struct get_window_info_reply
*req
)
2970 fprintf( stderr
, " full_handle=%08x", req
->full_handle
);
2971 fprintf( stderr
, ", last_active=%08x", req
->last_active
);
2972 fprintf( stderr
, ", pid=%04x", req
->pid
);
2973 fprintf( stderr
, ", tid=%04x", req
->tid
);
2974 fprintf( stderr
, ", atom=%04x", req
->atom
);
2975 fprintf( stderr
, ", is_unicode=%d", req
->is_unicode
);
2976 fprintf( stderr
, ", dpi=%d", req
->dpi
);
2977 fprintf( stderr
, ", awareness=%d", req
->awareness
);
2980 static void dump_set_window_info_request( const struct set_window_info_request
*req
)
2982 fprintf( stderr
, " flags=%04x", req
->flags
);
2983 fprintf( stderr
, ", is_unicode=%d", req
->is_unicode
);
2984 fprintf( stderr
, ", handle=%08x", req
->handle
);
2985 fprintf( stderr
, ", style=%08x", req
->style
);
2986 fprintf( stderr
, ", ex_style=%08x", req
->ex_style
);
2987 fprintf( stderr
, ", extra_size=%u", req
->extra_size
);
2988 dump_uint64( ", instance=", &req
->instance
);
2989 dump_uint64( ", user_data=", &req
->user_data
);
2990 dump_uint64( ", extra_value=", &req
->extra_value
);
2991 fprintf( stderr
, ", extra_offset=%d", req
->extra_offset
);
2994 static void dump_set_window_info_reply( const struct set_window_info_reply
*req
)
2996 fprintf( stderr
, " old_style=%08x", req
->old_style
);
2997 fprintf( stderr
, ", old_ex_style=%08x", req
->old_ex_style
);
2998 dump_uint64( ", old_instance=", &req
->old_instance
);
2999 dump_uint64( ", old_user_data=", &req
->old_user_data
);
3000 dump_uint64( ", old_extra_value=", &req
->old_extra_value
);
3001 dump_uint64( ", old_id=", &req
->old_id
);
3004 static void dump_set_parent_request( const struct set_parent_request
*req
)
3006 fprintf( stderr
, " handle=%08x", req
->handle
);
3007 fprintf( stderr
, ", parent=%08x", req
->parent
);
3010 static void dump_set_parent_reply( const struct set_parent_reply
*req
)
3012 fprintf( stderr
, " old_parent=%08x", req
->old_parent
);
3013 fprintf( stderr
, ", full_parent=%08x", req
->full_parent
);
3014 fprintf( stderr
, ", dpi=%d", req
->dpi
);
3015 fprintf( stderr
, ", awareness=%d", req
->awareness
);
3018 static void dump_get_window_parents_request( const struct get_window_parents_request
*req
)
3020 fprintf( stderr
, " handle=%08x", req
->handle
);
3023 static void dump_get_window_parents_reply( const struct get_window_parents_reply
*req
)
3025 fprintf( stderr
, " count=%d", req
->count
);
3026 dump_varargs_user_handles( ", parents=", cur_size
);
3029 static void dump_get_window_children_request( const struct get_window_children_request
*req
)
3031 fprintf( stderr
, " desktop=%04x", req
->desktop
);
3032 fprintf( stderr
, ", parent=%08x", req
->parent
);
3033 fprintf( stderr
, ", atom=%04x", req
->atom
);
3034 fprintf( stderr
, ", tid=%04x", req
->tid
);
3035 dump_varargs_unicode_str( ", class=", cur_size
);
3038 static void dump_get_window_children_reply( const struct get_window_children_reply
*req
)
3040 fprintf( stderr
, " count=%d", req
->count
);
3041 dump_varargs_user_handles( ", children=", cur_size
);
3044 static void dump_get_window_children_from_point_request( const struct get_window_children_from_point_request
*req
)
3046 fprintf( stderr
, " parent=%08x", req
->parent
);
3047 fprintf( stderr
, ", x=%d", req
->x
);
3048 fprintf( stderr
, ", y=%d", req
->y
);
3049 fprintf( stderr
, ", dpi=%d", req
->dpi
);
3052 static void dump_get_window_children_from_point_reply( const struct get_window_children_from_point_reply
*req
)
3054 fprintf( stderr
, " count=%d", req
->count
);
3055 dump_varargs_user_handles( ", children=", cur_size
);
3058 static void dump_get_window_tree_request( const struct get_window_tree_request
*req
)
3060 fprintf( stderr
, " handle=%08x", req
->handle
);
3063 static void dump_get_window_tree_reply( const struct get_window_tree_reply
*req
)
3065 fprintf( stderr
, " parent=%08x", req
->parent
);
3066 fprintf( stderr
, ", owner=%08x", req
->owner
);
3067 fprintf( stderr
, ", next_sibling=%08x", req
->next_sibling
);
3068 fprintf( stderr
, ", prev_sibling=%08x", req
->prev_sibling
);
3069 fprintf( stderr
, ", first_sibling=%08x", req
->first_sibling
);
3070 fprintf( stderr
, ", last_sibling=%08x", req
->last_sibling
);
3071 fprintf( stderr
, ", first_child=%08x", req
->first_child
);
3072 fprintf( stderr
, ", last_child=%08x", req
->last_child
);
3075 static void dump_set_window_pos_request( const struct set_window_pos_request
*req
)
3077 fprintf( stderr
, " swp_flags=%04x", req
->swp_flags
);
3078 fprintf( stderr
, ", paint_flags=%04x", req
->paint_flags
);
3079 fprintf( stderr
, ", handle=%08x", req
->handle
);
3080 fprintf( stderr
, ", previous=%08x", req
->previous
);
3081 dump_rectangle( ", window=", &req
->window
);
3082 dump_rectangle( ", client=", &req
->client
);
3083 dump_varargs_rectangles( ", valid=", cur_size
);
3086 static void dump_set_window_pos_reply( const struct set_window_pos_reply
*req
)
3088 fprintf( stderr
, " new_style=%08x", req
->new_style
);
3089 fprintf( stderr
, ", new_ex_style=%08x", req
->new_ex_style
);
3090 fprintf( stderr
, ", surface_win=%08x", req
->surface_win
);
3091 fprintf( stderr
, ", needs_update=%d", req
->needs_update
);
3094 static void dump_get_window_rectangles_request( const struct get_window_rectangles_request
*req
)
3096 fprintf( stderr
, " handle=%08x", req
->handle
);
3097 fprintf( stderr
, ", relative=%d", req
->relative
);
3098 fprintf( stderr
, ", dpi=%d", req
->dpi
);
3101 static void dump_get_window_rectangles_reply( const struct get_window_rectangles_reply
*req
)
3103 dump_rectangle( " window=", &req
->window
);
3104 dump_rectangle( ", client=", &req
->client
);
3107 static void dump_get_window_text_request( const struct get_window_text_request
*req
)
3109 fprintf( stderr
, " handle=%08x", req
->handle
);
3112 static void dump_get_window_text_reply( const struct get_window_text_reply
*req
)
3114 fprintf( stderr
, " length=%u", req
->length
);
3115 dump_varargs_unicode_str( ", text=", cur_size
);
3118 static void dump_set_window_text_request( const struct set_window_text_request
*req
)
3120 fprintf( stderr
, " handle=%08x", req
->handle
);
3121 dump_varargs_unicode_str( ", text=", cur_size
);
3124 static void dump_get_windows_offset_request( const struct get_windows_offset_request
*req
)
3126 fprintf( stderr
, " from=%08x", req
->from
);
3127 fprintf( stderr
, ", to=%08x", req
->to
);
3128 fprintf( stderr
, ", dpi=%d", req
->dpi
);
3131 static void dump_get_windows_offset_reply( const struct get_windows_offset_reply
*req
)
3133 fprintf( stderr
, " x=%d", req
->x
);
3134 fprintf( stderr
, ", y=%d", req
->y
);
3135 fprintf( stderr
, ", mirror=%d", req
->mirror
);
3138 static void dump_get_visible_region_request( const struct get_visible_region_request
*req
)
3140 fprintf( stderr
, " window=%08x", req
->window
);
3141 fprintf( stderr
, ", flags=%08x", req
->flags
);
3144 static void dump_get_visible_region_reply( const struct get_visible_region_reply
*req
)
3146 fprintf( stderr
, " top_win=%08x", req
->top_win
);
3147 dump_rectangle( ", top_rect=", &req
->top_rect
);
3148 dump_rectangle( ", win_rect=", &req
->win_rect
);
3149 fprintf( stderr
, ", paint_flags=%08x", req
->paint_flags
);
3150 fprintf( stderr
, ", total_size=%u", req
->total_size
);
3151 dump_varargs_rectangles( ", region=", cur_size
);
3154 static void dump_get_surface_region_request( const struct get_surface_region_request
*req
)
3156 fprintf( stderr
, " window=%08x", req
->window
);
3159 static void dump_get_surface_region_reply( const struct get_surface_region_reply
*req
)
3161 dump_rectangle( " visible_rect=", &req
->visible_rect
);
3162 fprintf( stderr
, ", total_size=%u", req
->total_size
);
3163 dump_varargs_rectangles( ", region=", cur_size
);
3166 static void dump_get_window_region_request( const struct get_window_region_request
*req
)
3168 fprintf( stderr
, " window=%08x", req
->window
);
3171 static void dump_get_window_region_reply( const struct get_window_region_reply
*req
)
3173 fprintf( stderr
, " total_size=%u", req
->total_size
);
3174 dump_varargs_rectangles( ", region=", cur_size
);
3177 static void dump_set_window_region_request( const struct set_window_region_request
*req
)
3179 fprintf( stderr
, " window=%08x", req
->window
);
3180 fprintf( stderr
, ", redraw=%d", req
->redraw
);
3181 dump_varargs_rectangles( ", region=", cur_size
);
3184 static void dump_get_update_region_request( const struct get_update_region_request
*req
)
3186 fprintf( stderr
, " window=%08x", req
->window
);
3187 fprintf( stderr
, ", from_child=%08x", req
->from_child
);
3188 fprintf( stderr
, ", flags=%08x", req
->flags
);
3191 static void dump_get_update_region_reply( const struct get_update_region_reply
*req
)
3193 fprintf( stderr
, " child=%08x", req
->child
);
3194 fprintf( stderr
, ", flags=%08x", req
->flags
);
3195 fprintf( stderr
, ", total_size=%u", req
->total_size
);
3196 dump_varargs_rectangles( ", region=", cur_size
);
3199 static void dump_update_window_zorder_request( const struct update_window_zorder_request
*req
)
3201 fprintf( stderr
, " window=%08x", req
->window
);
3202 dump_rectangle( ", rect=", &req
->rect
);
3205 static void dump_redraw_window_request( const struct redraw_window_request
*req
)
3207 fprintf( stderr
, " window=%08x", req
->window
);
3208 fprintf( stderr
, ", flags=%08x", req
->flags
);
3209 dump_varargs_rectangles( ", region=", cur_size
);
3212 static void dump_set_window_property_request( const struct set_window_property_request
*req
)
3214 fprintf( stderr
, " window=%08x", req
->window
);
3215 dump_uint64( ", data=", &req
->data
);
3216 fprintf( stderr
, ", atom=%04x", req
->atom
);
3217 dump_varargs_unicode_str( ", name=", cur_size
);
3220 static void dump_remove_window_property_request( const struct remove_window_property_request
*req
)
3222 fprintf( stderr
, " window=%08x", req
->window
);
3223 fprintf( stderr
, ", atom=%04x", req
->atom
);
3224 dump_varargs_unicode_str( ", name=", cur_size
);
3227 static void dump_remove_window_property_reply( const struct remove_window_property_reply
*req
)
3229 dump_uint64( " data=", &req
->data
);
3232 static void dump_get_window_property_request( const struct get_window_property_request
*req
)
3234 fprintf( stderr
, " window=%08x", req
->window
);
3235 fprintf( stderr
, ", atom=%04x", req
->atom
);
3236 dump_varargs_unicode_str( ", name=", cur_size
);
3239 static void dump_get_window_property_reply( const struct get_window_property_reply
*req
)
3241 dump_uint64( " data=", &req
->data
);
3244 static void dump_get_window_properties_request( const struct get_window_properties_request
*req
)
3246 fprintf( stderr
, " window=%08x", req
->window
);
3249 static void dump_get_window_properties_reply( const struct get_window_properties_reply
*req
)
3251 fprintf( stderr
, " total=%d", req
->total
);
3252 dump_varargs_properties( ", props=", cur_size
);
3255 static void dump_create_winstation_request( const struct create_winstation_request
*req
)
3257 fprintf( stderr
, " flags=%08x", req
->flags
);
3258 fprintf( stderr
, ", access=%08x", req
->access
);
3259 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3260 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
3261 dump_varargs_unicode_str( ", name=", cur_size
);
3264 static void dump_create_winstation_reply( const struct create_winstation_reply
*req
)
3266 fprintf( stderr
, " handle=%04x", req
->handle
);
3269 static void dump_open_winstation_request( const struct open_winstation_request
*req
)
3271 fprintf( stderr
, " access=%08x", req
->access
);
3272 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3273 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
3274 dump_varargs_unicode_str( ", name=", cur_size
);
3277 static void dump_open_winstation_reply( const struct open_winstation_reply
*req
)
3279 fprintf( stderr
, " handle=%04x", req
->handle
);
3282 static void dump_close_winstation_request( const struct close_winstation_request
*req
)
3284 fprintf( stderr
, " handle=%04x", req
->handle
);
3287 static void dump_get_process_winstation_request( const struct get_process_winstation_request
*req
)
3291 static void dump_get_process_winstation_reply( const struct get_process_winstation_reply
*req
)
3293 fprintf( stderr
, " handle=%04x", req
->handle
);
3296 static void dump_set_process_winstation_request( const struct set_process_winstation_request
*req
)
3298 fprintf( stderr
, " handle=%04x", req
->handle
);
3301 static void dump_enum_winstation_request( const struct enum_winstation_request
*req
)
3303 fprintf( stderr
, " index=%08x", req
->index
);
3306 static void dump_enum_winstation_reply( const struct enum_winstation_reply
*req
)
3308 fprintf( stderr
, " next=%08x", req
->next
);
3309 dump_varargs_unicode_str( ", name=", cur_size
);
3312 static void dump_create_desktop_request( const struct create_desktop_request
*req
)
3314 fprintf( stderr
, " flags=%08x", req
->flags
);
3315 fprintf( stderr
, ", access=%08x", req
->access
);
3316 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3317 dump_varargs_unicode_str( ", name=", cur_size
);
3320 static void dump_create_desktop_reply( const struct create_desktop_reply
*req
)
3322 fprintf( stderr
, " handle=%04x", req
->handle
);
3325 static void dump_open_desktop_request( const struct open_desktop_request
*req
)
3327 fprintf( stderr
, " winsta=%04x", req
->winsta
);
3328 fprintf( stderr
, ", flags=%08x", req
->flags
);
3329 fprintf( stderr
, ", access=%08x", req
->access
);
3330 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3331 dump_varargs_unicode_str( ", name=", cur_size
);
3334 static void dump_open_desktop_reply( const struct open_desktop_reply
*req
)
3336 fprintf( stderr
, " handle=%04x", req
->handle
);
3339 static void dump_open_input_desktop_request( const struct open_input_desktop_request
*req
)
3341 fprintf( stderr
, " flags=%08x", req
->flags
);
3342 fprintf( stderr
, ", access=%08x", req
->access
);
3343 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3346 static void dump_open_input_desktop_reply( const struct open_input_desktop_reply
*req
)
3348 fprintf( stderr
, " handle=%04x", req
->handle
);
3351 static void dump_close_desktop_request( const struct close_desktop_request
*req
)
3353 fprintf( stderr
, " handle=%04x", req
->handle
);
3356 static void dump_get_thread_desktop_request( const struct get_thread_desktop_request
*req
)
3358 fprintf( stderr
, " tid=%04x", req
->tid
);
3361 static void dump_get_thread_desktop_reply( const struct get_thread_desktop_reply
*req
)
3363 fprintf( stderr
, " handle=%04x", req
->handle
);
3366 static void dump_set_thread_desktop_request( const struct set_thread_desktop_request
*req
)
3368 fprintf( stderr
, " handle=%04x", req
->handle
);
3371 static void dump_enum_desktop_request( const struct enum_desktop_request
*req
)
3373 fprintf( stderr
, " winstation=%04x", req
->winstation
);
3374 fprintf( stderr
, ", index=%08x", req
->index
);
3377 static void dump_enum_desktop_reply( const struct enum_desktop_reply
*req
)
3379 fprintf( stderr
, " next=%08x", req
->next
);
3380 dump_varargs_unicode_str( ", name=", cur_size
);
3383 static void dump_set_user_object_info_request( const struct set_user_object_info_request
*req
)
3385 fprintf( stderr
, " handle=%04x", req
->handle
);
3386 fprintf( stderr
, ", flags=%08x", req
->flags
);
3387 fprintf( stderr
, ", obj_flags=%08x", req
->obj_flags
);
3390 static void dump_set_user_object_info_reply( const struct set_user_object_info_reply
*req
)
3392 fprintf( stderr
, " is_desktop=%d", req
->is_desktop
);
3393 fprintf( stderr
, ", old_obj_flags=%08x", req
->old_obj_flags
);
3394 dump_varargs_unicode_str( ", name=", cur_size
);
3397 static void dump_register_hotkey_request( const struct register_hotkey_request
*req
)
3399 fprintf( stderr
, " window=%08x", req
->window
);
3400 fprintf( stderr
, ", id=%d", req
->id
);
3401 fprintf( stderr
, ", flags=%08x", req
->flags
);
3402 fprintf( stderr
, ", vkey=%08x", req
->vkey
);
3405 static void dump_register_hotkey_reply( const struct register_hotkey_reply
*req
)
3407 fprintf( stderr
, " replaced=%d", req
->replaced
);
3408 fprintf( stderr
, ", flags=%08x", req
->flags
);
3409 fprintf( stderr
, ", vkey=%08x", req
->vkey
);
3412 static void dump_unregister_hotkey_request( const struct unregister_hotkey_request
*req
)
3414 fprintf( stderr
, " window=%08x", req
->window
);
3415 fprintf( stderr
, ", id=%d", req
->id
);
3418 static void dump_unregister_hotkey_reply( const struct unregister_hotkey_reply
*req
)
3420 fprintf( stderr
, " flags=%08x", req
->flags
);
3421 fprintf( stderr
, ", vkey=%08x", req
->vkey
);
3424 static void dump_attach_thread_input_request( const struct attach_thread_input_request
*req
)
3426 fprintf( stderr
, " tid_from=%04x", req
->tid_from
);
3427 fprintf( stderr
, ", tid_to=%04x", req
->tid_to
);
3428 fprintf( stderr
, ", attach=%d", req
->attach
);
3431 static void dump_get_thread_input_request( const struct get_thread_input_request
*req
)
3433 fprintf( stderr
, " tid=%04x", req
->tid
);
3436 static void dump_get_thread_input_reply( const struct get_thread_input_reply
*req
)
3438 fprintf( stderr
, " focus=%08x", req
->focus
);
3439 fprintf( stderr
, ", capture=%08x", req
->capture
);
3440 fprintf( stderr
, ", active=%08x", req
->active
);
3441 fprintf( stderr
, ", foreground=%08x", req
->foreground
);
3442 fprintf( stderr
, ", menu_owner=%08x", req
->menu_owner
);
3443 fprintf( stderr
, ", move_size=%08x", req
->move_size
);
3444 fprintf( stderr
, ", caret=%08x", req
->caret
);
3445 fprintf( stderr
, ", cursor=%08x", req
->cursor
);
3446 fprintf( stderr
, ", show_count=%d", req
->show_count
);
3447 dump_rectangle( ", rect=", &req
->rect
);
3450 static void dump_get_last_input_time_request( const struct get_last_input_time_request
*req
)
3454 static void dump_get_last_input_time_reply( const struct get_last_input_time_reply
*req
)
3456 fprintf( stderr
, " time=%08x", req
->time
);
3459 static void dump_get_key_state_request( const struct get_key_state_request
*req
)
3461 fprintf( stderr
, " async=%d", req
->async
);
3462 fprintf( stderr
, ", key=%d", req
->key
);
3465 static void dump_get_key_state_reply( const struct get_key_state_reply
*req
)
3467 fprintf( stderr
, " state=%02x", req
->state
);
3468 dump_varargs_bytes( ", keystate=", cur_size
);
3471 static void dump_set_key_state_request( const struct set_key_state_request
*req
)
3473 fprintf( stderr
, " async=%d", req
->async
);
3474 dump_varargs_bytes( ", keystate=", cur_size
);
3477 static void dump_set_foreground_window_request( const struct set_foreground_window_request
*req
)
3479 fprintf( stderr
, " handle=%08x", req
->handle
);
3482 static void dump_set_foreground_window_reply( const struct set_foreground_window_reply
*req
)
3484 fprintf( stderr
, " previous=%08x", req
->previous
);
3485 fprintf( stderr
, ", send_msg_old=%d", req
->send_msg_old
);
3486 fprintf( stderr
, ", send_msg_new=%d", req
->send_msg_new
);
3489 static void dump_set_focus_window_request( const struct set_focus_window_request
*req
)
3491 fprintf( stderr
, " handle=%08x", req
->handle
);
3494 static void dump_set_focus_window_reply( const struct set_focus_window_reply
*req
)
3496 fprintf( stderr
, " previous=%08x", req
->previous
);
3499 static void dump_set_active_window_request( const struct set_active_window_request
*req
)
3501 fprintf( stderr
, " handle=%08x", req
->handle
);
3504 static void dump_set_active_window_reply( const struct set_active_window_reply
*req
)
3506 fprintf( stderr
, " previous=%08x", req
->previous
);
3509 static void dump_set_capture_window_request( const struct set_capture_window_request
*req
)
3511 fprintf( stderr
, " handle=%08x", req
->handle
);
3512 fprintf( stderr
, ", flags=%08x", req
->flags
);
3515 static void dump_set_capture_window_reply( const struct set_capture_window_reply
*req
)
3517 fprintf( stderr
, " previous=%08x", req
->previous
);
3518 fprintf( stderr
, ", full_handle=%08x", req
->full_handle
);
3521 static void dump_set_caret_window_request( const struct set_caret_window_request
*req
)
3523 fprintf( stderr
, " handle=%08x", req
->handle
);
3524 fprintf( stderr
, ", width=%d", req
->width
);
3525 fprintf( stderr
, ", height=%d", req
->height
);
3528 static void dump_set_caret_window_reply( const struct set_caret_window_reply
*req
)
3530 fprintf( stderr
, " previous=%08x", req
->previous
);
3531 dump_rectangle( ", old_rect=", &req
->old_rect
);
3532 fprintf( stderr
, ", old_hide=%d", req
->old_hide
);
3533 fprintf( stderr
, ", old_state=%d", req
->old_state
);
3536 static void dump_set_caret_info_request( const struct set_caret_info_request
*req
)
3538 fprintf( stderr
, " flags=%08x", req
->flags
);
3539 fprintf( stderr
, ", handle=%08x", req
->handle
);
3540 fprintf( stderr
, ", x=%d", req
->x
);
3541 fprintf( stderr
, ", y=%d", req
->y
);
3542 fprintf( stderr
, ", hide=%d", req
->hide
);
3543 fprintf( stderr
, ", state=%d", req
->state
);
3546 static void dump_set_caret_info_reply( const struct set_caret_info_reply
*req
)
3548 fprintf( stderr
, " full_handle=%08x", req
->full_handle
);
3549 dump_rectangle( ", old_rect=", &req
->old_rect
);
3550 fprintf( stderr
, ", old_hide=%d", req
->old_hide
);
3551 fprintf( stderr
, ", old_state=%d", req
->old_state
);
3554 static void dump_set_hook_request( const struct set_hook_request
*req
)
3556 fprintf( stderr
, " id=%d", req
->id
);
3557 fprintf( stderr
, ", pid=%04x", req
->pid
);
3558 fprintf( stderr
, ", tid=%04x", req
->tid
);
3559 fprintf( stderr
, ", event_min=%d", req
->event_min
);
3560 fprintf( stderr
, ", event_max=%d", req
->event_max
);
3561 dump_uint64( ", proc=", &req
->proc
);
3562 fprintf( stderr
, ", flags=%d", req
->flags
);
3563 fprintf( stderr
, ", unicode=%d", req
->unicode
);
3564 dump_varargs_unicode_str( ", module=", cur_size
);
3567 static void dump_set_hook_reply( const struct set_hook_reply
*req
)
3569 fprintf( stderr
, " handle=%08x", req
->handle
);
3570 fprintf( stderr
, ", active_hooks=%08x", req
->active_hooks
);
3573 static void dump_remove_hook_request( const struct remove_hook_request
*req
)
3575 fprintf( stderr
, " handle=%08x", req
->handle
);
3576 dump_uint64( ", proc=", &req
->proc
);
3577 fprintf( stderr
, ", id=%d", req
->id
);
3580 static void dump_remove_hook_reply( const struct remove_hook_reply
*req
)
3582 fprintf( stderr
, " active_hooks=%08x", req
->active_hooks
);
3585 static void dump_start_hook_chain_request( const struct start_hook_chain_request
*req
)
3587 fprintf( stderr
, " id=%d", req
->id
);
3588 fprintf( stderr
, ", event=%d", req
->event
);
3589 fprintf( stderr
, ", window=%08x", req
->window
);
3590 fprintf( stderr
, ", object_id=%d", req
->object_id
);
3591 fprintf( stderr
, ", child_id=%d", req
->child_id
);
3594 static void dump_start_hook_chain_reply( const struct start_hook_chain_reply
*req
)
3596 fprintf( stderr
, " handle=%08x", req
->handle
);
3597 fprintf( stderr
, ", pid=%04x", req
->pid
);
3598 fprintf( stderr
, ", tid=%04x", req
->tid
);
3599 fprintf( stderr
, ", unicode=%d", req
->unicode
);
3600 dump_uint64( ", proc=", &req
->proc
);
3601 fprintf( stderr
, ", active_hooks=%08x", req
->active_hooks
);
3602 dump_varargs_unicode_str( ", module=", cur_size
);
3605 static void dump_finish_hook_chain_request( const struct finish_hook_chain_request
*req
)
3607 fprintf( stderr
, " id=%d", req
->id
);
3610 static void dump_get_hook_info_request( const struct get_hook_info_request
*req
)
3612 fprintf( stderr
, " handle=%08x", req
->handle
);
3613 fprintf( stderr
, ", get_next=%d", req
->get_next
);
3614 fprintf( stderr
, ", event=%d", req
->event
);
3615 fprintf( stderr
, ", window=%08x", req
->window
);
3616 fprintf( stderr
, ", object_id=%d", req
->object_id
);
3617 fprintf( stderr
, ", child_id=%d", req
->child_id
);
3620 static void dump_get_hook_info_reply( const struct get_hook_info_reply
*req
)
3622 fprintf( stderr
, " handle=%08x", req
->handle
);
3623 fprintf( stderr
, ", id=%d", req
->id
);
3624 fprintf( stderr
, ", pid=%04x", req
->pid
);
3625 fprintf( stderr
, ", tid=%04x", req
->tid
);
3626 dump_uint64( ", proc=", &req
->proc
);
3627 fprintf( stderr
, ", unicode=%d", req
->unicode
);
3628 dump_varargs_unicode_str( ", module=", cur_size
);
3631 static void dump_create_class_request( const struct create_class_request
*req
)
3633 fprintf( stderr
, " local=%d", req
->local
);
3634 fprintf( stderr
, ", atom=%04x", req
->atom
);
3635 fprintf( stderr
, ", style=%08x", req
->style
);
3636 dump_uint64( ", instance=", &req
->instance
);
3637 fprintf( stderr
, ", extra=%d", req
->extra
);
3638 fprintf( stderr
, ", win_extra=%d", req
->win_extra
);
3639 dump_uint64( ", client_ptr=", &req
->client_ptr
);
3640 fprintf( stderr
, ", name_offset=%u", req
->name_offset
);
3641 dump_varargs_unicode_str( ", name=", cur_size
);
3644 static void dump_create_class_reply( const struct create_class_reply
*req
)
3646 fprintf( stderr
, " atom=%04x", req
->atom
);
3649 static void dump_destroy_class_request( const struct destroy_class_request
*req
)
3651 fprintf( stderr
, " atom=%04x", req
->atom
);
3652 dump_uint64( ", instance=", &req
->instance
);
3653 dump_varargs_unicode_str( ", name=", cur_size
);
3656 static void dump_destroy_class_reply( const struct destroy_class_reply
*req
)
3658 dump_uint64( " client_ptr=", &req
->client_ptr
);
3661 static void dump_set_class_info_request( const struct set_class_info_request
*req
)
3663 fprintf( stderr
, " window=%08x", req
->window
);
3664 fprintf( stderr
, ", flags=%08x", req
->flags
);
3665 fprintf( stderr
, ", atom=%04x", req
->atom
);
3666 fprintf( stderr
, ", style=%08x", req
->style
);
3667 fprintf( stderr
, ", win_extra=%d", req
->win_extra
);
3668 dump_uint64( ", instance=", &req
->instance
);
3669 fprintf( stderr
, ", extra_offset=%d", req
->extra_offset
);
3670 fprintf( stderr
, ", extra_size=%u", req
->extra_size
);
3671 dump_uint64( ", extra_value=", &req
->extra_value
);
3674 static void dump_set_class_info_reply( const struct set_class_info_reply
*req
)
3676 fprintf( stderr
, " old_atom=%04x", req
->old_atom
);
3677 fprintf( stderr
, ", base_atom=%04x", req
->base_atom
);
3678 dump_uint64( ", old_instance=", &req
->old_instance
);
3679 dump_uint64( ", old_extra_value=", &req
->old_extra_value
);
3680 fprintf( stderr
, ", old_style=%08x", req
->old_style
);
3681 fprintf( stderr
, ", old_extra=%d", req
->old_extra
);
3682 fprintf( stderr
, ", old_win_extra=%d", req
->old_win_extra
);
3685 static void dump_open_clipboard_request( const struct open_clipboard_request
*req
)
3687 fprintf( stderr
, " window=%08x", req
->window
);
3690 static void dump_open_clipboard_reply( const struct open_clipboard_reply
*req
)
3692 fprintf( stderr
, " owner=%08x", req
->owner
);
3695 static void dump_close_clipboard_request( const struct close_clipboard_request
*req
)
3699 static void dump_close_clipboard_reply( const struct close_clipboard_reply
*req
)
3701 fprintf( stderr
, " viewer=%08x", req
->viewer
);
3702 fprintf( stderr
, ", owner=%08x", req
->owner
);
3705 static void dump_empty_clipboard_request( const struct empty_clipboard_request
*req
)
3709 static void dump_set_clipboard_data_request( const struct set_clipboard_data_request
*req
)
3711 fprintf( stderr
, " format=%08x", req
->format
);
3712 fprintf( stderr
, ", lcid=%08x", req
->lcid
);
3713 dump_varargs_bytes( ", data=", cur_size
);
3716 static void dump_set_clipboard_data_reply( const struct set_clipboard_data_reply
*req
)
3718 fprintf( stderr
, " seqno=%08x", req
->seqno
);
3721 static void dump_get_clipboard_data_request( const struct get_clipboard_data_request
*req
)
3723 fprintf( stderr
, " format=%08x", req
->format
);
3724 fprintf( stderr
, ", render=%d", req
->render
);
3725 fprintf( stderr
, ", cached=%d", req
->cached
);
3726 fprintf( stderr
, ", seqno=%08x", req
->seqno
);
3729 static void dump_get_clipboard_data_reply( const struct get_clipboard_data_reply
*req
)
3731 fprintf( stderr
, " from=%08x", req
->from
);
3732 fprintf( stderr
, ", owner=%08x", req
->owner
);
3733 fprintf( stderr
, ", seqno=%08x", req
->seqno
);
3734 fprintf( stderr
, ", total=%u", req
->total
);
3735 dump_varargs_bytes( ", data=", cur_size
);
3738 static void dump_get_clipboard_formats_request( const struct get_clipboard_formats_request
*req
)
3740 fprintf( stderr
, " format=%08x", req
->format
);
3743 static void dump_get_clipboard_formats_reply( const struct get_clipboard_formats_reply
*req
)
3745 fprintf( stderr
, " count=%08x", req
->count
);
3746 dump_varargs_uints( ", formats=", cur_size
);
3749 static void dump_enum_clipboard_formats_request( const struct enum_clipboard_formats_request
*req
)
3751 fprintf( stderr
, " previous=%08x", req
->previous
);
3754 static void dump_enum_clipboard_formats_reply( const struct enum_clipboard_formats_reply
*req
)
3756 fprintf( stderr
, " format=%08x", req
->format
);
3759 static void dump_release_clipboard_request( const struct release_clipboard_request
*req
)
3761 fprintf( stderr
, " owner=%08x", req
->owner
);
3764 static void dump_release_clipboard_reply( const struct release_clipboard_reply
*req
)
3766 fprintf( stderr
, " viewer=%08x", req
->viewer
);
3767 fprintf( stderr
, ", owner=%08x", req
->owner
);
3770 static void dump_get_clipboard_info_request( const struct get_clipboard_info_request
*req
)
3774 static void dump_get_clipboard_info_reply( const struct get_clipboard_info_reply
*req
)
3776 fprintf( stderr
, " window=%08x", req
->window
);
3777 fprintf( stderr
, ", owner=%08x", req
->owner
);
3778 fprintf( stderr
, ", viewer=%08x", req
->viewer
);
3779 fprintf( stderr
, ", seqno=%08x", req
->seqno
);
3782 static void dump_set_clipboard_viewer_request( const struct set_clipboard_viewer_request
*req
)
3784 fprintf( stderr
, " viewer=%08x", req
->viewer
);
3785 fprintf( stderr
, ", previous=%08x", req
->previous
);
3788 static void dump_set_clipboard_viewer_reply( const struct set_clipboard_viewer_reply
*req
)
3790 fprintf( stderr
, " old_viewer=%08x", req
->old_viewer
);
3791 fprintf( stderr
, ", owner=%08x", req
->owner
);
3794 static void dump_add_clipboard_listener_request( const struct add_clipboard_listener_request
*req
)
3796 fprintf( stderr
, " window=%08x", req
->window
);
3799 static void dump_remove_clipboard_listener_request( const struct remove_clipboard_listener_request
*req
)
3801 fprintf( stderr
, " window=%08x", req
->window
);
3804 static void dump_open_token_request( const struct open_token_request
*req
)
3806 fprintf( stderr
, " handle=%04x", req
->handle
);
3807 fprintf( stderr
, ", access=%08x", req
->access
);
3808 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3809 fprintf( stderr
, ", flags=%08x", req
->flags
);
3812 static void dump_open_token_reply( const struct open_token_reply
*req
)
3814 fprintf( stderr
, " token=%04x", req
->token
);
3817 static void dump_set_global_windows_request( const struct set_global_windows_request
*req
)
3819 fprintf( stderr
, " flags=%08x", req
->flags
);
3820 fprintf( stderr
, ", shell_window=%08x", req
->shell_window
);
3821 fprintf( stderr
, ", shell_listview=%08x", req
->shell_listview
);
3822 fprintf( stderr
, ", progman_window=%08x", req
->progman_window
);
3823 fprintf( stderr
, ", taskman_window=%08x", req
->taskman_window
);
3826 static void dump_set_global_windows_reply( const struct set_global_windows_reply
*req
)
3828 fprintf( stderr
, " old_shell_window=%08x", req
->old_shell_window
);
3829 fprintf( stderr
, ", old_shell_listview=%08x", req
->old_shell_listview
);
3830 fprintf( stderr
, ", old_progman_window=%08x", req
->old_progman_window
);
3831 fprintf( stderr
, ", old_taskman_window=%08x", req
->old_taskman_window
);
3834 static void dump_adjust_token_privileges_request( const struct adjust_token_privileges_request
*req
)
3836 fprintf( stderr
, " handle=%04x", req
->handle
);
3837 fprintf( stderr
, ", disable_all=%d", req
->disable_all
);
3838 fprintf( stderr
, ", get_modified_state=%d", req
->get_modified_state
);
3839 dump_varargs_luid_attr( ", privileges=", cur_size
);
3842 static void dump_adjust_token_privileges_reply( const struct adjust_token_privileges_reply
*req
)
3844 fprintf( stderr
, " len=%08x", req
->len
);
3845 dump_varargs_luid_attr( ", privileges=", cur_size
);
3848 static void dump_get_token_privileges_request( const struct get_token_privileges_request
*req
)
3850 fprintf( stderr
, " handle=%04x", req
->handle
);
3853 static void dump_get_token_privileges_reply( const struct get_token_privileges_reply
*req
)
3855 fprintf( stderr
, " len=%08x", req
->len
);
3856 dump_varargs_luid_attr( ", privileges=", cur_size
);
3859 static void dump_check_token_privileges_request( const struct check_token_privileges_request
*req
)
3861 fprintf( stderr
, " handle=%04x", req
->handle
);
3862 fprintf( stderr
, ", all_required=%d", req
->all_required
);
3863 dump_varargs_luid_attr( ", privileges=", cur_size
);
3866 static void dump_check_token_privileges_reply( const struct check_token_privileges_reply
*req
)
3868 fprintf( stderr
, " has_privileges=%d", req
->has_privileges
);
3869 dump_varargs_luid_attr( ", privileges=", cur_size
);
3872 static void dump_duplicate_token_request( const struct duplicate_token_request
*req
)
3874 fprintf( stderr
, " handle=%04x", req
->handle
);
3875 fprintf( stderr
, ", access=%08x", req
->access
);
3876 fprintf( stderr
, ", primary=%d", req
->primary
);
3877 fprintf( stderr
, ", impersonation_level=%d", req
->impersonation_level
);
3878 dump_varargs_object_attributes( ", objattr=", cur_size
);
3881 static void dump_duplicate_token_reply( const struct duplicate_token_reply
*req
)
3883 fprintf( stderr
, " new_handle=%04x", req
->new_handle
);
3886 static void dump_filter_token_request( const struct filter_token_request
*req
)
3888 fprintf( stderr
, " handle=%04x", req
->handle
);
3889 fprintf( stderr
, ", flags=%08x", req
->flags
);
3890 fprintf( stderr
, ", privileges_size=%u", req
->privileges_size
);
3891 dump_varargs_luid_attr( ", privileges=", min(cur_size
,req
->privileges_size
) );
3892 dump_varargs_sid( ", disable_sids=", cur_size
);
3895 static void dump_filter_token_reply( const struct filter_token_reply
*req
)
3897 fprintf( stderr
, " new_handle=%04x", req
->new_handle
);
3900 static void dump_access_check_request( const struct access_check_request
*req
)
3902 fprintf( stderr
, " handle=%04x", req
->handle
);
3903 fprintf( stderr
, ", desired_access=%08x", req
->desired_access
);
3904 dump_generic_map( ", mapping=", &req
->mapping
);
3905 dump_varargs_security_descriptor( ", sd=", cur_size
);
3908 static void dump_access_check_reply( const struct access_check_reply
*req
)
3910 fprintf( stderr
, " access_granted=%08x", req
->access_granted
);
3911 fprintf( stderr
, ", access_status=%08x", req
->access_status
);
3912 fprintf( stderr
, ", privileges_len=%08x", req
->privileges_len
);
3913 dump_varargs_luid_attr( ", privileges=", cur_size
);
3916 static void dump_get_token_sid_request( const struct get_token_sid_request
*req
)
3918 fprintf( stderr
, " handle=%04x", req
->handle
);
3919 fprintf( stderr
, ", which_sid=%08x", req
->which_sid
);
3922 static void dump_get_token_sid_reply( const struct get_token_sid_reply
*req
)
3924 fprintf( stderr
, " sid_len=%u", req
->sid_len
);
3925 dump_varargs_sid( ", sid=", cur_size
);
3928 static void dump_get_token_groups_request( const struct get_token_groups_request
*req
)
3930 fprintf( stderr
, " handle=%04x", req
->handle
);
3931 fprintf( stderr
, ", attr_mask=%08x", req
->attr_mask
);
3934 static void dump_get_token_groups_reply( const struct get_token_groups_reply
*req
)
3936 fprintf( stderr
, " attr_len=%u", req
->attr_len
);
3937 fprintf( stderr
, ", sid_len=%u", req
->sid_len
);
3938 dump_varargs_uints( ", attrs=", min(cur_size
,req
->attr_len
) );
3939 dump_varargs_sids( ", sids=", cur_size
);
3942 static void dump_get_token_default_dacl_request( const struct get_token_default_dacl_request
*req
)
3944 fprintf( stderr
, " handle=%04x", req
->handle
);
3947 static void dump_get_token_default_dacl_reply( const struct get_token_default_dacl_reply
*req
)
3949 fprintf( stderr
, " acl_len=%u", req
->acl_len
);
3950 dump_varargs_acl( ", acl=", cur_size
);
3953 static void dump_set_token_default_dacl_request( const struct set_token_default_dacl_request
*req
)
3955 fprintf( stderr
, " handle=%04x", req
->handle
);
3956 dump_varargs_acl( ", acl=", cur_size
);
3959 static void dump_set_security_object_request( const struct set_security_object_request
*req
)
3961 fprintf( stderr
, " handle=%04x", req
->handle
);
3962 fprintf( stderr
, ", security_info=%08x", req
->security_info
);
3963 dump_varargs_security_descriptor( ", sd=", cur_size
);
3966 static void dump_get_security_object_request( const struct get_security_object_request
*req
)
3968 fprintf( stderr
, " handle=%04x", req
->handle
);
3969 fprintf( stderr
, ", security_info=%08x", req
->security_info
);
3972 static void dump_get_security_object_reply( const struct get_security_object_reply
*req
)
3974 fprintf( stderr
, " sd_len=%08x", req
->sd_len
);
3975 dump_varargs_security_descriptor( ", sd=", cur_size
);
3978 static void dump_get_system_handles_request( const struct get_system_handles_request
*req
)
3982 static void dump_get_system_handles_reply( const struct get_system_handles_reply
*req
)
3984 fprintf( stderr
, " count=%08x", req
->count
);
3985 dump_varargs_handle_infos( ", data=", cur_size
);
3988 static void dump_create_mailslot_request( const struct create_mailslot_request
*req
)
3990 fprintf( stderr
, " access=%08x", req
->access
);
3991 dump_timeout( ", read_timeout=", &req
->read_timeout
);
3992 fprintf( stderr
, ", max_msgsize=%08x", req
->max_msgsize
);
3993 dump_varargs_object_attributes( ", objattr=", cur_size
);
3996 static void dump_create_mailslot_reply( const struct create_mailslot_reply
*req
)
3998 fprintf( stderr
, " handle=%04x", req
->handle
);
4001 static void dump_set_mailslot_info_request( const struct set_mailslot_info_request
*req
)
4003 fprintf( stderr
, " handle=%04x", req
->handle
);
4004 dump_timeout( ", read_timeout=", &req
->read_timeout
);
4005 fprintf( stderr
, ", flags=%08x", req
->flags
);
4008 static void dump_set_mailslot_info_reply( const struct set_mailslot_info_reply
*req
)
4010 dump_timeout( " read_timeout=", &req
->read_timeout
);
4011 fprintf( stderr
, ", max_msgsize=%08x", req
->max_msgsize
);
4014 static void dump_create_directory_request( const struct create_directory_request
*req
)
4016 fprintf( stderr
, " access=%08x", req
->access
);
4017 dump_varargs_object_attributes( ", objattr=", cur_size
);
4020 static void dump_create_directory_reply( const struct create_directory_reply
*req
)
4022 fprintf( stderr
, " handle=%04x", req
->handle
);
4025 static void dump_open_directory_request( const struct open_directory_request
*req
)
4027 fprintf( stderr
, " access=%08x", req
->access
);
4028 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
4029 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
4030 dump_varargs_unicode_str( ", directory_name=", cur_size
);
4033 static void dump_open_directory_reply( const struct open_directory_reply
*req
)
4035 fprintf( stderr
, " handle=%04x", req
->handle
);
4038 static void dump_get_directory_entry_request( const struct get_directory_entry_request
*req
)
4040 fprintf( stderr
, " handle=%04x", req
->handle
);
4041 fprintf( stderr
, ", index=%08x", req
->index
);
4044 static void dump_get_directory_entry_reply( const struct get_directory_entry_reply
*req
)
4046 fprintf( stderr
, " total_len=%u", req
->total_len
);
4047 fprintf( stderr
, ", name_len=%u", req
->name_len
);
4048 dump_varargs_unicode_str( ", name=", min(cur_size
,req
->name_len
) );
4049 dump_varargs_unicode_str( ", type=", cur_size
);
4052 static void dump_create_symlink_request( const struct create_symlink_request
*req
)
4054 fprintf( stderr
, " access=%08x", req
->access
);
4055 dump_varargs_object_attributes( ", objattr=", cur_size
);
4056 dump_varargs_unicode_str( ", target_name=", cur_size
);
4059 static void dump_create_symlink_reply( const struct create_symlink_reply
*req
)
4061 fprintf( stderr
, " handle=%04x", req
->handle
);
4064 static void dump_open_symlink_request( const struct open_symlink_request
*req
)
4066 fprintf( stderr
, " access=%08x", req
->access
);
4067 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
4068 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
4069 dump_varargs_unicode_str( ", name=", cur_size
);
4072 static void dump_open_symlink_reply( const struct open_symlink_reply
*req
)
4074 fprintf( stderr
, " handle=%04x", req
->handle
);
4077 static void dump_query_symlink_request( const struct query_symlink_request
*req
)
4079 fprintf( stderr
, " handle=%04x", req
->handle
);
4082 static void dump_query_symlink_reply( const struct query_symlink_reply
*req
)
4084 fprintf( stderr
, " total=%u", req
->total
);
4085 dump_varargs_unicode_str( ", target_name=", cur_size
);
4088 static void dump_get_object_info_request( const struct get_object_info_request
*req
)
4090 fprintf( stderr
, " handle=%04x", req
->handle
);
4093 static void dump_get_object_info_reply( const struct get_object_info_reply
*req
)
4095 fprintf( stderr
, " access=%08x", req
->access
);
4096 fprintf( stderr
, ", ref_count=%08x", req
->ref_count
);
4097 fprintf( stderr
, ", handle_count=%08x", req
->handle_count
);
4100 static void dump_get_object_name_request( const struct get_object_name_request
*req
)
4102 fprintf( stderr
, " handle=%04x", req
->handle
);
4105 static void dump_get_object_name_reply( const struct get_object_name_reply
*req
)
4107 fprintf( stderr
, " total=%u", req
->total
);
4108 dump_varargs_unicode_str( ", name=", cur_size
);
4111 static void dump_get_object_type_request( const struct get_object_type_request
*req
)
4113 fprintf( stderr
, " handle=%04x", req
->handle
);
4116 static void dump_get_object_type_reply( const struct get_object_type_reply
*req
)
4118 dump_varargs_object_type_info( " info=", cur_size
);
4121 static void dump_get_object_types_request( const struct get_object_types_request
*req
)
4125 static void dump_get_object_types_reply( const struct get_object_types_reply
*req
)
4127 fprintf( stderr
, " count=%d", req
->count
);
4128 dump_varargs_object_types_info( ", info=", cur_size
);
4131 static void dump_allocate_locally_unique_id_request( const struct allocate_locally_unique_id_request
*req
)
4135 static void dump_allocate_locally_unique_id_reply( const struct allocate_locally_unique_id_reply
*req
)
4137 dump_luid( " luid=", &req
->luid
);
4140 static void dump_create_device_manager_request( const struct create_device_manager_request
*req
)
4142 fprintf( stderr
, " access=%08x", req
->access
);
4143 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
4146 static void dump_create_device_manager_reply( const struct create_device_manager_reply
*req
)
4148 fprintf( stderr
, " handle=%04x", req
->handle
);
4151 static void dump_create_device_request( const struct create_device_request
*req
)
4153 fprintf( stderr
, " rootdir=%04x", req
->rootdir
);
4154 dump_uint64( ", user_ptr=", &req
->user_ptr
);
4155 fprintf( stderr
, ", manager=%04x", req
->manager
);
4156 dump_varargs_unicode_str( ", name=", cur_size
);
4159 static void dump_delete_device_request( const struct delete_device_request
*req
)
4161 fprintf( stderr
, " manager=%04x", req
->manager
);
4162 dump_uint64( ", device=", &req
->device
);
4165 static void dump_get_next_device_request_request( const struct get_next_device_request_request
*req
)
4167 fprintf( stderr
, " manager=%04x", req
->manager
);
4168 fprintf( stderr
, ", prev=%04x", req
->prev
);
4169 fprintf( stderr
, ", status=%08x", req
->status
);
4170 dump_uint64( ", user_ptr=", &req
->user_ptr
);
4171 fprintf( stderr
, ", pending=%d", req
->pending
);
4172 fprintf( stderr
, ", iosb_status=%08x", req
->iosb_status
);
4173 fprintf( stderr
, ", result=%u", req
->result
);
4174 dump_varargs_bytes( ", data=", cur_size
);
4177 static void dump_get_next_device_request_reply( const struct get_next_device_request_reply
*req
)
4179 dump_irp_params( " params=", &req
->params
);
4180 fprintf( stderr
, ", next=%04x", req
->next
);
4181 fprintf( stderr
, ", client_tid=%04x", req
->client_tid
);
4182 dump_uint64( ", client_thread=", &req
->client_thread
);
4183 fprintf( stderr
, ", in_size=%u", req
->in_size
);
4184 dump_varargs_bytes( ", next_data=", cur_size
);
4187 static void dump_get_kernel_object_ptr_request( const struct get_kernel_object_ptr_request
*req
)
4189 fprintf( stderr
, " manager=%04x", req
->manager
);
4190 fprintf( stderr
, ", handle=%04x", req
->handle
);
4193 static void dump_get_kernel_object_ptr_reply( const struct get_kernel_object_ptr_reply
*req
)
4195 dump_uint64( " user_ptr=", &req
->user_ptr
);
4198 static void dump_set_kernel_object_ptr_request( const struct set_kernel_object_ptr_request
*req
)
4200 fprintf( stderr
, " manager=%04x", req
->manager
);
4201 fprintf( stderr
, ", handle=%04x", req
->handle
);
4202 dump_uint64( ", user_ptr=", &req
->user_ptr
);
4205 static void dump_grab_kernel_object_request( const struct grab_kernel_object_request
*req
)
4207 fprintf( stderr
, " manager=%04x", req
->manager
);
4208 dump_uint64( ", user_ptr=", &req
->user_ptr
);
4211 static void dump_release_kernel_object_request( const struct release_kernel_object_request
*req
)
4213 fprintf( stderr
, " manager=%04x", req
->manager
);
4214 dump_uint64( ", user_ptr=", &req
->user_ptr
);
4217 static void dump_get_kernel_object_handle_request( const struct get_kernel_object_handle_request
*req
)
4219 fprintf( stderr
, " manager=%04x", req
->manager
);
4220 dump_uint64( ", user_ptr=", &req
->user_ptr
);
4221 fprintf( stderr
, ", access=%08x", req
->access
);
4224 static void dump_get_kernel_object_handle_reply( const struct get_kernel_object_handle_reply
*req
)
4226 fprintf( stderr
, " handle=%04x", req
->handle
);
4229 static void dump_make_process_system_request( const struct make_process_system_request
*req
)
4231 fprintf( stderr
, " handle=%04x", req
->handle
);
4234 static void dump_make_process_system_reply( const struct make_process_system_reply
*req
)
4236 fprintf( stderr
, " event=%04x", req
->event
);
4239 static void dump_get_token_info_request( const struct get_token_info_request
*req
)
4241 fprintf( stderr
, " handle=%04x", req
->handle
);
4244 static void dump_get_token_info_reply( const struct get_token_info_reply
*req
)
4246 dump_luid( " token_id=", &req
->token_id
);
4247 dump_luid( ", modified_id=", &req
->modified_id
);
4248 fprintf( stderr
, ", session_id=%08x", req
->session_id
);
4249 fprintf( stderr
, ", primary=%d", req
->primary
);
4250 fprintf( stderr
, ", impersonation_level=%d", req
->impersonation_level
);
4251 fprintf( stderr
, ", elevation=%d", req
->elevation
);
4252 fprintf( stderr
, ", group_count=%d", req
->group_count
);
4253 fprintf( stderr
, ", privilege_count=%d", req
->privilege_count
);
4256 static void dump_create_linked_token_request( const struct create_linked_token_request
*req
)
4258 fprintf( stderr
, " handle=%04x", req
->handle
);
4261 static void dump_create_linked_token_reply( const struct create_linked_token_reply
*req
)
4263 fprintf( stderr
, " linked=%04x", req
->linked
);
4266 static void dump_create_completion_request( const struct create_completion_request
*req
)
4268 fprintf( stderr
, " access=%08x", req
->access
);
4269 fprintf( stderr
, ", concurrent=%08x", req
->concurrent
);
4270 dump_varargs_object_attributes( ", objattr=", cur_size
);
4273 static void dump_create_completion_reply( const struct create_completion_reply
*req
)
4275 fprintf( stderr
, " handle=%04x", req
->handle
);
4278 static void dump_open_completion_request( const struct open_completion_request
*req
)
4280 fprintf( stderr
, " access=%08x", req
->access
);
4281 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
4282 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
4283 dump_varargs_unicode_str( ", filename=", cur_size
);
4286 static void dump_open_completion_reply( const struct open_completion_reply
*req
)
4288 fprintf( stderr
, " handle=%04x", req
->handle
);
4291 static void dump_add_completion_request( const struct add_completion_request
*req
)
4293 fprintf( stderr
, " handle=%04x", req
->handle
);
4294 dump_uint64( ", ckey=", &req
->ckey
);
4295 dump_uint64( ", cvalue=", &req
->cvalue
);
4296 dump_uint64( ", information=", &req
->information
);
4297 fprintf( stderr
, ", status=%08x", req
->status
);
4300 static void dump_remove_completion_request( const struct remove_completion_request
*req
)
4302 fprintf( stderr
, " handle=%04x", req
->handle
);
4305 static void dump_remove_completion_reply( const struct remove_completion_reply
*req
)
4307 dump_uint64( " ckey=", &req
->ckey
);
4308 dump_uint64( ", cvalue=", &req
->cvalue
);
4309 dump_uint64( ", information=", &req
->information
);
4310 fprintf( stderr
, ", status=%08x", req
->status
);
4313 static void dump_query_completion_request( const struct query_completion_request
*req
)
4315 fprintf( stderr
, " handle=%04x", req
->handle
);
4318 static void dump_query_completion_reply( const struct query_completion_reply
*req
)
4320 fprintf( stderr
, " depth=%08x", req
->depth
);
4323 static void dump_set_completion_info_request( const struct set_completion_info_request
*req
)
4325 fprintf( stderr
, " handle=%04x", req
->handle
);
4326 dump_uint64( ", ckey=", &req
->ckey
);
4327 fprintf( stderr
, ", chandle=%04x", req
->chandle
);
4330 static void dump_add_fd_completion_request( const struct add_fd_completion_request
*req
)
4332 fprintf( stderr
, " handle=%04x", req
->handle
);
4333 dump_uint64( ", cvalue=", &req
->cvalue
);
4334 dump_uint64( ", information=", &req
->information
);
4335 fprintf( stderr
, ", status=%08x", req
->status
);
4336 fprintf( stderr
, ", async=%d", req
->async
);
4339 static void dump_set_fd_completion_mode_request( const struct set_fd_completion_mode_request
*req
)
4341 fprintf( stderr
, " handle=%04x", req
->handle
);
4342 fprintf( stderr
, ", flags=%08x", req
->flags
);
4345 static void dump_set_fd_disp_info_request( const struct set_fd_disp_info_request
*req
)
4347 fprintf( stderr
, " handle=%04x", req
->handle
);
4348 fprintf( stderr
, ", unlink=%d", req
->unlink
);
4351 static void dump_set_fd_name_info_request( const struct set_fd_name_info_request
*req
)
4353 fprintf( stderr
, " handle=%04x", req
->handle
);
4354 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
4355 fprintf( stderr
, ", namelen=%u", req
->namelen
);
4356 fprintf( stderr
, ", link=%d", req
->link
);
4357 fprintf( stderr
, ", replace=%d", req
->replace
);
4358 dump_varargs_unicode_str( ", name=", min(cur_size
,req
->namelen
) );
4359 dump_varargs_string( ", filename=", cur_size
);
4362 static void dump_set_fd_eof_info_request( const struct set_fd_eof_info_request
*req
)
4364 fprintf( stderr
, " handle=%04x", req
->handle
);
4365 dump_uint64( ", eof=", &req
->eof
);
4368 static void dump_get_window_layered_info_request( const struct get_window_layered_info_request
*req
)
4370 fprintf( stderr
, " handle=%08x", req
->handle
);
4373 static void dump_get_window_layered_info_reply( const struct get_window_layered_info_reply
*req
)
4375 fprintf( stderr
, " color_key=%08x", req
->color_key
);
4376 fprintf( stderr
, ", alpha=%08x", req
->alpha
);
4377 fprintf( stderr
, ", flags=%08x", req
->flags
);
4380 static void dump_set_window_layered_info_request( const struct set_window_layered_info_request
*req
)
4382 fprintf( stderr
, " handle=%08x", req
->handle
);
4383 fprintf( stderr
, ", color_key=%08x", req
->color_key
);
4384 fprintf( stderr
, ", alpha=%08x", req
->alpha
);
4385 fprintf( stderr
, ", flags=%08x", req
->flags
);
4388 static void dump_alloc_user_handle_request( const struct alloc_user_handle_request
*req
)
4392 static void dump_alloc_user_handle_reply( const struct alloc_user_handle_reply
*req
)
4394 fprintf( stderr
, " handle=%08x", req
->handle
);
4397 static void dump_free_user_handle_request( const struct free_user_handle_request
*req
)
4399 fprintf( stderr
, " handle=%08x", req
->handle
);
4402 static void dump_set_cursor_request( const struct set_cursor_request
*req
)
4404 fprintf( stderr
, " flags=%08x", req
->flags
);
4405 fprintf( stderr
, ", handle=%08x", req
->handle
);
4406 fprintf( stderr
, ", show_count=%d", req
->show_count
);
4407 fprintf( stderr
, ", x=%d", req
->x
);
4408 fprintf( stderr
, ", y=%d", req
->y
);
4409 dump_rectangle( ", clip=", &req
->clip
);
4410 fprintf( stderr
, ", clip_msg=%08x", req
->clip_msg
);
4413 static void dump_set_cursor_reply( const struct set_cursor_reply
*req
)
4415 fprintf( stderr
, " prev_handle=%08x", req
->prev_handle
);
4416 fprintf( stderr
, ", prev_count=%d", req
->prev_count
);
4417 fprintf( stderr
, ", prev_x=%d", req
->prev_x
);
4418 fprintf( stderr
, ", prev_y=%d", req
->prev_y
);
4419 fprintf( stderr
, ", new_x=%d", req
->new_x
);
4420 fprintf( stderr
, ", new_y=%d", req
->new_y
);
4421 dump_rectangle( ", new_clip=", &req
->new_clip
);
4422 fprintf( stderr
, ", last_change=%08x", req
->last_change
);
4425 static void dump_get_cursor_history_request( const struct get_cursor_history_request
*req
)
4429 static void dump_get_cursor_history_reply( const struct get_cursor_history_reply
*req
)
4431 dump_varargs_cursor_positions( " history=", cur_size
);
4434 static void dump_get_rawinput_buffer_request( const struct get_rawinput_buffer_request
*req
)
4436 fprintf( stderr
, " rawinput_size=%u", req
->rawinput_size
);
4437 fprintf( stderr
, ", buffer_size=%u", req
->buffer_size
);
4440 static void dump_get_rawinput_buffer_reply( const struct get_rawinput_buffer_reply
*req
)
4442 fprintf( stderr
, " next_size=%u", req
->next_size
);
4443 fprintf( stderr
, ", count=%08x", req
->count
);
4444 dump_varargs_bytes( ", data=", cur_size
);
4447 static void dump_update_rawinput_devices_request( const struct update_rawinput_devices_request
*req
)
4449 dump_varargs_rawinput_devices( " devices=", cur_size
);
4452 static void dump_create_job_request( const struct create_job_request
*req
)
4454 fprintf( stderr
, " access=%08x", req
->access
);
4455 dump_varargs_object_attributes( ", objattr=", cur_size
);
4458 static void dump_create_job_reply( const struct create_job_reply
*req
)
4460 fprintf( stderr
, " handle=%04x", req
->handle
);
4463 static void dump_open_job_request( const struct open_job_request
*req
)
4465 fprintf( stderr
, " access=%08x", req
->access
);
4466 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
4467 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
4468 dump_varargs_unicode_str( ", name=", cur_size
);
4471 static void dump_open_job_reply( const struct open_job_reply
*req
)
4473 fprintf( stderr
, " handle=%04x", req
->handle
);
4476 static void dump_assign_job_request( const struct assign_job_request
*req
)
4478 fprintf( stderr
, " job=%04x", req
->job
);
4479 fprintf( stderr
, ", process=%04x", req
->process
);
4482 static void dump_process_in_job_request( const struct process_in_job_request
*req
)
4484 fprintf( stderr
, " job=%04x", req
->job
);
4485 fprintf( stderr
, ", process=%04x", req
->process
);
4488 static void dump_set_job_limits_request( const struct set_job_limits_request
*req
)
4490 fprintf( stderr
, " handle=%04x", req
->handle
);
4491 fprintf( stderr
, ", limit_flags=%08x", req
->limit_flags
);
4494 static void dump_set_job_completion_port_request( const struct set_job_completion_port_request
*req
)
4496 fprintf( stderr
, " job=%04x", req
->job
);
4497 fprintf( stderr
, ", port=%04x", req
->port
);
4498 dump_uint64( ", key=", &req
->key
);
4501 static void dump_get_job_info_request( const struct get_job_info_request
*req
)
4503 fprintf( stderr
, " handle=%04x", req
->handle
);
4506 static void dump_get_job_info_reply( const struct get_job_info_reply
*req
)
4508 fprintf( stderr
, " total_processes=%d", req
->total_processes
);
4509 fprintf( stderr
, ", active_processes=%d", req
->active_processes
);
4510 dump_varargs_uints( ", pids=", cur_size
);
4513 static void dump_terminate_job_request( const struct terminate_job_request
*req
)
4515 fprintf( stderr
, " handle=%04x", req
->handle
);
4516 fprintf( stderr
, ", status=%d", req
->status
);
4519 static void dump_suspend_process_request( const struct suspend_process_request
*req
)
4521 fprintf( stderr
, " handle=%04x", req
->handle
);
4524 static void dump_resume_process_request( const struct resume_process_request
*req
)
4526 fprintf( stderr
, " handle=%04x", req
->handle
);
4529 static void dump_get_next_thread_request( const struct get_next_thread_request
*req
)
4531 fprintf( stderr
, " process=%04x", req
->process
);
4532 fprintf( stderr
, ", last=%04x", req
->last
);
4533 fprintf( stderr
, ", access=%08x", req
->access
);
4534 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
4535 fprintf( stderr
, ", flags=%08x", req
->flags
);
4538 static void dump_get_next_thread_reply( const struct get_next_thread_reply
*req
)
4540 fprintf( stderr
, " handle=%04x", req
->handle
);
4543 static const dump_func req_dumpers
[REQ_NB_REQUESTS
] = {
4544 (dump_func
)dump_new_process_request
,
4545 (dump_func
)dump_get_new_process_info_request
,
4546 (dump_func
)dump_new_thread_request
,
4547 (dump_func
)dump_get_startup_info_request
,
4548 (dump_func
)dump_init_process_done_request
,
4549 (dump_func
)dump_init_first_thread_request
,
4550 (dump_func
)dump_init_thread_request
,
4551 (dump_func
)dump_terminate_process_request
,
4552 (dump_func
)dump_terminate_thread_request
,
4553 (dump_func
)dump_get_process_info_request
,
4554 (dump_func
)dump_get_process_debug_info_request
,
4555 (dump_func
)dump_get_process_image_name_request
,
4556 (dump_func
)dump_get_process_vm_counters_request
,
4557 (dump_func
)dump_set_process_info_request
,
4558 (dump_func
)dump_get_thread_info_request
,
4559 (dump_func
)dump_get_thread_times_request
,
4560 (dump_func
)dump_set_thread_info_request
,
4561 (dump_func
)dump_suspend_thread_request
,
4562 (dump_func
)dump_resume_thread_request
,
4563 (dump_func
)dump_queue_apc_request
,
4564 (dump_func
)dump_get_apc_result_request
,
4565 (dump_func
)dump_close_handle_request
,
4566 (dump_func
)dump_set_handle_info_request
,
4567 (dump_func
)dump_dup_handle_request
,
4568 (dump_func
)dump_compare_objects_request
,
4569 (dump_func
)dump_make_temporary_request
,
4570 (dump_func
)dump_open_process_request
,
4571 (dump_func
)dump_open_thread_request
,
4572 (dump_func
)dump_select_request
,
4573 (dump_func
)dump_create_event_request
,
4574 (dump_func
)dump_event_op_request
,
4575 (dump_func
)dump_query_event_request
,
4576 (dump_func
)dump_open_event_request
,
4577 (dump_func
)dump_create_keyed_event_request
,
4578 (dump_func
)dump_open_keyed_event_request
,
4579 (dump_func
)dump_create_mutex_request
,
4580 (dump_func
)dump_release_mutex_request
,
4581 (dump_func
)dump_open_mutex_request
,
4582 (dump_func
)dump_query_mutex_request
,
4583 (dump_func
)dump_create_semaphore_request
,
4584 (dump_func
)dump_release_semaphore_request
,
4585 (dump_func
)dump_query_semaphore_request
,
4586 (dump_func
)dump_open_semaphore_request
,
4587 (dump_func
)dump_create_file_request
,
4588 (dump_func
)dump_open_file_object_request
,
4589 (dump_func
)dump_alloc_file_handle_request
,
4590 (dump_func
)dump_get_handle_unix_name_request
,
4591 (dump_func
)dump_get_handle_fd_request
,
4592 (dump_func
)dump_get_directory_cache_entry_request
,
4593 (dump_func
)dump_flush_request
,
4594 (dump_func
)dump_get_file_info_request
,
4595 (dump_func
)dump_get_volume_info_request
,
4596 (dump_func
)dump_lock_file_request
,
4597 (dump_func
)dump_unlock_file_request
,
4598 (dump_func
)dump_recv_socket_request
,
4599 (dump_func
)dump_send_socket_request
,
4600 (dump_func
)dump_socket_send_icmp_id_request
,
4601 (dump_func
)dump_socket_get_icmp_id_request
,
4602 (dump_func
)dump_get_next_console_request_request
,
4603 (dump_func
)dump_read_directory_changes_request
,
4604 (dump_func
)dump_read_change_request
,
4605 (dump_func
)dump_create_mapping_request
,
4606 (dump_func
)dump_open_mapping_request
,
4607 (dump_func
)dump_get_mapping_info_request
,
4608 (dump_func
)dump_map_view_request
,
4609 (dump_func
)dump_map_image_view_request
,
4610 (dump_func
)dump_map_builtin_view_request
,
4611 (dump_func
)dump_unmap_view_request
,
4612 (dump_func
)dump_get_mapping_committed_range_request
,
4613 (dump_func
)dump_add_mapping_committed_range_request
,
4614 (dump_func
)dump_is_same_mapping_request
,
4615 (dump_func
)dump_get_mapping_filename_request
,
4616 (dump_func
)dump_list_processes_request
,
4617 (dump_func
)dump_create_debug_obj_request
,
4618 (dump_func
)dump_wait_debug_event_request
,
4619 (dump_func
)dump_queue_exception_event_request
,
4620 (dump_func
)dump_get_exception_status_request
,
4621 (dump_func
)dump_continue_debug_event_request
,
4622 (dump_func
)dump_debug_process_request
,
4623 (dump_func
)dump_set_debug_obj_info_request
,
4624 (dump_func
)dump_read_process_memory_request
,
4625 (dump_func
)dump_write_process_memory_request
,
4626 (dump_func
)dump_create_key_request
,
4627 (dump_func
)dump_open_key_request
,
4628 (dump_func
)dump_delete_key_request
,
4629 (dump_func
)dump_flush_key_request
,
4630 (dump_func
)dump_enum_key_request
,
4631 (dump_func
)dump_set_key_value_request
,
4632 (dump_func
)dump_get_key_value_request
,
4633 (dump_func
)dump_enum_key_value_request
,
4634 (dump_func
)dump_delete_key_value_request
,
4635 (dump_func
)dump_load_registry_request
,
4636 (dump_func
)dump_unload_registry_request
,
4637 (dump_func
)dump_save_registry_request
,
4638 (dump_func
)dump_set_registry_notification_request
,
4639 (dump_func
)dump_rename_key_request
,
4640 (dump_func
)dump_create_timer_request
,
4641 (dump_func
)dump_open_timer_request
,
4642 (dump_func
)dump_set_timer_request
,
4643 (dump_func
)dump_cancel_timer_request
,
4644 (dump_func
)dump_get_timer_info_request
,
4645 (dump_func
)dump_get_thread_context_request
,
4646 (dump_func
)dump_set_thread_context_request
,
4647 (dump_func
)dump_get_selector_entry_request
,
4648 (dump_func
)dump_add_atom_request
,
4649 (dump_func
)dump_delete_atom_request
,
4650 (dump_func
)dump_find_atom_request
,
4651 (dump_func
)dump_get_atom_information_request
,
4652 (dump_func
)dump_get_msg_queue_request
,
4653 (dump_func
)dump_set_queue_fd_request
,
4654 (dump_func
)dump_set_queue_mask_request
,
4655 (dump_func
)dump_get_queue_status_request
,
4656 (dump_func
)dump_get_process_idle_event_request
,
4657 (dump_func
)dump_send_message_request
,
4658 (dump_func
)dump_post_quit_message_request
,
4659 (dump_func
)dump_send_hardware_message_request
,
4660 (dump_func
)dump_get_message_request
,
4661 (dump_func
)dump_reply_message_request
,
4662 (dump_func
)dump_accept_hardware_message_request
,
4663 (dump_func
)dump_get_message_reply_request
,
4664 (dump_func
)dump_set_win_timer_request
,
4665 (dump_func
)dump_kill_win_timer_request
,
4666 (dump_func
)dump_is_window_hung_request
,
4667 (dump_func
)dump_get_serial_info_request
,
4668 (dump_func
)dump_set_serial_info_request
,
4669 (dump_func
)dump_cancel_sync_request
,
4670 (dump_func
)dump_register_async_request
,
4671 (dump_func
)dump_cancel_async_request
,
4672 (dump_func
)dump_get_async_result_request
,
4673 (dump_func
)dump_set_async_direct_result_request
,
4674 (dump_func
)dump_read_request
,
4675 (dump_func
)dump_write_request
,
4676 (dump_func
)dump_ioctl_request
,
4677 (dump_func
)dump_set_irp_result_request
,
4678 (dump_func
)dump_create_named_pipe_request
,
4679 (dump_func
)dump_set_named_pipe_info_request
,
4680 (dump_func
)dump_create_window_request
,
4681 (dump_func
)dump_destroy_window_request
,
4682 (dump_func
)dump_get_desktop_window_request
,
4683 (dump_func
)dump_set_window_owner_request
,
4684 (dump_func
)dump_get_window_info_request
,
4685 (dump_func
)dump_set_window_info_request
,
4686 (dump_func
)dump_set_parent_request
,
4687 (dump_func
)dump_get_window_parents_request
,
4688 (dump_func
)dump_get_window_children_request
,
4689 (dump_func
)dump_get_window_children_from_point_request
,
4690 (dump_func
)dump_get_window_tree_request
,
4691 (dump_func
)dump_set_window_pos_request
,
4692 (dump_func
)dump_get_window_rectangles_request
,
4693 (dump_func
)dump_get_window_text_request
,
4694 (dump_func
)dump_set_window_text_request
,
4695 (dump_func
)dump_get_windows_offset_request
,
4696 (dump_func
)dump_get_visible_region_request
,
4697 (dump_func
)dump_get_surface_region_request
,
4698 (dump_func
)dump_get_window_region_request
,
4699 (dump_func
)dump_set_window_region_request
,
4700 (dump_func
)dump_get_update_region_request
,
4701 (dump_func
)dump_update_window_zorder_request
,
4702 (dump_func
)dump_redraw_window_request
,
4703 (dump_func
)dump_set_window_property_request
,
4704 (dump_func
)dump_remove_window_property_request
,
4705 (dump_func
)dump_get_window_property_request
,
4706 (dump_func
)dump_get_window_properties_request
,
4707 (dump_func
)dump_create_winstation_request
,
4708 (dump_func
)dump_open_winstation_request
,
4709 (dump_func
)dump_close_winstation_request
,
4710 (dump_func
)dump_get_process_winstation_request
,
4711 (dump_func
)dump_set_process_winstation_request
,
4712 (dump_func
)dump_enum_winstation_request
,
4713 (dump_func
)dump_create_desktop_request
,
4714 (dump_func
)dump_open_desktop_request
,
4715 (dump_func
)dump_open_input_desktop_request
,
4716 (dump_func
)dump_close_desktop_request
,
4717 (dump_func
)dump_get_thread_desktop_request
,
4718 (dump_func
)dump_set_thread_desktop_request
,
4719 (dump_func
)dump_enum_desktop_request
,
4720 (dump_func
)dump_set_user_object_info_request
,
4721 (dump_func
)dump_register_hotkey_request
,
4722 (dump_func
)dump_unregister_hotkey_request
,
4723 (dump_func
)dump_attach_thread_input_request
,
4724 (dump_func
)dump_get_thread_input_request
,
4725 (dump_func
)dump_get_last_input_time_request
,
4726 (dump_func
)dump_get_key_state_request
,
4727 (dump_func
)dump_set_key_state_request
,
4728 (dump_func
)dump_set_foreground_window_request
,
4729 (dump_func
)dump_set_focus_window_request
,
4730 (dump_func
)dump_set_active_window_request
,
4731 (dump_func
)dump_set_capture_window_request
,
4732 (dump_func
)dump_set_caret_window_request
,
4733 (dump_func
)dump_set_caret_info_request
,
4734 (dump_func
)dump_set_hook_request
,
4735 (dump_func
)dump_remove_hook_request
,
4736 (dump_func
)dump_start_hook_chain_request
,
4737 (dump_func
)dump_finish_hook_chain_request
,
4738 (dump_func
)dump_get_hook_info_request
,
4739 (dump_func
)dump_create_class_request
,
4740 (dump_func
)dump_destroy_class_request
,
4741 (dump_func
)dump_set_class_info_request
,
4742 (dump_func
)dump_open_clipboard_request
,
4743 (dump_func
)dump_close_clipboard_request
,
4744 (dump_func
)dump_empty_clipboard_request
,
4745 (dump_func
)dump_set_clipboard_data_request
,
4746 (dump_func
)dump_get_clipboard_data_request
,
4747 (dump_func
)dump_get_clipboard_formats_request
,
4748 (dump_func
)dump_enum_clipboard_formats_request
,
4749 (dump_func
)dump_release_clipboard_request
,
4750 (dump_func
)dump_get_clipboard_info_request
,
4751 (dump_func
)dump_set_clipboard_viewer_request
,
4752 (dump_func
)dump_add_clipboard_listener_request
,
4753 (dump_func
)dump_remove_clipboard_listener_request
,
4754 (dump_func
)dump_open_token_request
,
4755 (dump_func
)dump_set_global_windows_request
,
4756 (dump_func
)dump_adjust_token_privileges_request
,
4757 (dump_func
)dump_get_token_privileges_request
,
4758 (dump_func
)dump_check_token_privileges_request
,
4759 (dump_func
)dump_duplicate_token_request
,
4760 (dump_func
)dump_filter_token_request
,
4761 (dump_func
)dump_access_check_request
,
4762 (dump_func
)dump_get_token_sid_request
,
4763 (dump_func
)dump_get_token_groups_request
,
4764 (dump_func
)dump_get_token_default_dacl_request
,
4765 (dump_func
)dump_set_token_default_dacl_request
,
4766 (dump_func
)dump_set_security_object_request
,
4767 (dump_func
)dump_get_security_object_request
,
4768 (dump_func
)dump_get_system_handles_request
,
4769 (dump_func
)dump_create_mailslot_request
,
4770 (dump_func
)dump_set_mailslot_info_request
,
4771 (dump_func
)dump_create_directory_request
,
4772 (dump_func
)dump_open_directory_request
,
4773 (dump_func
)dump_get_directory_entry_request
,
4774 (dump_func
)dump_create_symlink_request
,
4775 (dump_func
)dump_open_symlink_request
,
4776 (dump_func
)dump_query_symlink_request
,
4777 (dump_func
)dump_get_object_info_request
,
4778 (dump_func
)dump_get_object_name_request
,
4779 (dump_func
)dump_get_object_type_request
,
4780 (dump_func
)dump_get_object_types_request
,
4781 (dump_func
)dump_allocate_locally_unique_id_request
,
4782 (dump_func
)dump_create_device_manager_request
,
4783 (dump_func
)dump_create_device_request
,
4784 (dump_func
)dump_delete_device_request
,
4785 (dump_func
)dump_get_next_device_request_request
,
4786 (dump_func
)dump_get_kernel_object_ptr_request
,
4787 (dump_func
)dump_set_kernel_object_ptr_request
,
4788 (dump_func
)dump_grab_kernel_object_request
,
4789 (dump_func
)dump_release_kernel_object_request
,
4790 (dump_func
)dump_get_kernel_object_handle_request
,
4791 (dump_func
)dump_make_process_system_request
,
4792 (dump_func
)dump_get_token_info_request
,
4793 (dump_func
)dump_create_linked_token_request
,
4794 (dump_func
)dump_create_completion_request
,
4795 (dump_func
)dump_open_completion_request
,
4796 (dump_func
)dump_add_completion_request
,
4797 (dump_func
)dump_remove_completion_request
,
4798 (dump_func
)dump_query_completion_request
,
4799 (dump_func
)dump_set_completion_info_request
,
4800 (dump_func
)dump_add_fd_completion_request
,
4801 (dump_func
)dump_set_fd_completion_mode_request
,
4802 (dump_func
)dump_set_fd_disp_info_request
,
4803 (dump_func
)dump_set_fd_name_info_request
,
4804 (dump_func
)dump_set_fd_eof_info_request
,
4805 (dump_func
)dump_get_window_layered_info_request
,
4806 (dump_func
)dump_set_window_layered_info_request
,
4807 (dump_func
)dump_alloc_user_handle_request
,
4808 (dump_func
)dump_free_user_handle_request
,
4809 (dump_func
)dump_set_cursor_request
,
4810 (dump_func
)dump_get_cursor_history_request
,
4811 (dump_func
)dump_get_rawinput_buffer_request
,
4812 (dump_func
)dump_update_rawinput_devices_request
,
4813 (dump_func
)dump_create_job_request
,
4814 (dump_func
)dump_open_job_request
,
4815 (dump_func
)dump_assign_job_request
,
4816 (dump_func
)dump_process_in_job_request
,
4817 (dump_func
)dump_set_job_limits_request
,
4818 (dump_func
)dump_set_job_completion_port_request
,
4819 (dump_func
)dump_get_job_info_request
,
4820 (dump_func
)dump_terminate_job_request
,
4821 (dump_func
)dump_suspend_process_request
,
4822 (dump_func
)dump_resume_process_request
,
4823 (dump_func
)dump_get_next_thread_request
,
4826 static const dump_func reply_dumpers
[REQ_NB_REQUESTS
] = {
4827 (dump_func
)dump_new_process_reply
,
4828 (dump_func
)dump_get_new_process_info_reply
,
4829 (dump_func
)dump_new_thread_reply
,
4830 (dump_func
)dump_get_startup_info_reply
,
4831 (dump_func
)dump_init_process_done_reply
,
4832 (dump_func
)dump_init_first_thread_reply
,
4833 (dump_func
)dump_init_thread_reply
,
4834 (dump_func
)dump_terminate_process_reply
,
4835 (dump_func
)dump_terminate_thread_reply
,
4836 (dump_func
)dump_get_process_info_reply
,
4837 (dump_func
)dump_get_process_debug_info_reply
,
4838 (dump_func
)dump_get_process_image_name_reply
,
4839 (dump_func
)dump_get_process_vm_counters_reply
,
4841 (dump_func
)dump_get_thread_info_reply
,
4842 (dump_func
)dump_get_thread_times_reply
,
4844 (dump_func
)dump_suspend_thread_reply
,
4845 (dump_func
)dump_resume_thread_reply
,
4846 (dump_func
)dump_queue_apc_reply
,
4847 (dump_func
)dump_get_apc_result_reply
,
4849 (dump_func
)dump_set_handle_info_reply
,
4850 (dump_func
)dump_dup_handle_reply
,
4853 (dump_func
)dump_open_process_reply
,
4854 (dump_func
)dump_open_thread_reply
,
4855 (dump_func
)dump_select_reply
,
4856 (dump_func
)dump_create_event_reply
,
4857 (dump_func
)dump_event_op_reply
,
4858 (dump_func
)dump_query_event_reply
,
4859 (dump_func
)dump_open_event_reply
,
4860 (dump_func
)dump_create_keyed_event_reply
,
4861 (dump_func
)dump_open_keyed_event_reply
,
4862 (dump_func
)dump_create_mutex_reply
,
4863 (dump_func
)dump_release_mutex_reply
,
4864 (dump_func
)dump_open_mutex_reply
,
4865 (dump_func
)dump_query_mutex_reply
,
4866 (dump_func
)dump_create_semaphore_reply
,
4867 (dump_func
)dump_release_semaphore_reply
,
4868 (dump_func
)dump_query_semaphore_reply
,
4869 (dump_func
)dump_open_semaphore_reply
,
4870 (dump_func
)dump_create_file_reply
,
4871 (dump_func
)dump_open_file_object_reply
,
4872 (dump_func
)dump_alloc_file_handle_reply
,
4873 (dump_func
)dump_get_handle_unix_name_reply
,
4874 (dump_func
)dump_get_handle_fd_reply
,
4875 (dump_func
)dump_get_directory_cache_entry_reply
,
4876 (dump_func
)dump_flush_reply
,
4877 (dump_func
)dump_get_file_info_reply
,
4878 (dump_func
)dump_get_volume_info_reply
,
4879 (dump_func
)dump_lock_file_reply
,
4881 (dump_func
)dump_recv_socket_reply
,
4882 (dump_func
)dump_send_socket_reply
,
4884 (dump_func
)dump_socket_get_icmp_id_reply
,
4885 (dump_func
)dump_get_next_console_request_reply
,
4887 (dump_func
)dump_read_change_reply
,
4888 (dump_func
)dump_create_mapping_reply
,
4889 (dump_func
)dump_open_mapping_reply
,
4890 (dump_func
)dump_get_mapping_info_reply
,
4895 (dump_func
)dump_get_mapping_committed_range_reply
,
4898 (dump_func
)dump_get_mapping_filename_reply
,
4899 (dump_func
)dump_list_processes_reply
,
4900 (dump_func
)dump_create_debug_obj_reply
,
4901 (dump_func
)dump_wait_debug_event_reply
,
4902 (dump_func
)dump_queue_exception_event_reply
,
4907 (dump_func
)dump_read_process_memory_reply
,
4909 (dump_func
)dump_create_key_reply
,
4910 (dump_func
)dump_open_key_reply
,
4913 (dump_func
)dump_enum_key_reply
,
4915 (dump_func
)dump_get_key_value_reply
,
4916 (dump_func
)dump_enum_key_value_reply
,
4923 (dump_func
)dump_create_timer_reply
,
4924 (dump_func
)dump_open_timer_reply
,
4925 (dump_func
)dump_set_timer_reply
,
4926 (dump_func
)dump_cancel_timer_reply
,
4927 (dump_func
)dump_get_timer_info_reply
,
4928 (dump_func
)dump_get_thread_context_reply
,
4929 (dump_func
)dump_set_thread_context_reply
,
4930 (dump_func
)dump_get_selector_entry_reply
,
4931 (dump_func
)dump_add_atom_reply
,
4933 (dump_func
)dump_find_atom_reply
,
4934 (dump_func
)dump_get_atom_information_reply
,
4935 (dump_func
)dump_get_msg_queue_reply
,
4937 (dump_func
)dump_set_queue_mask_reply
,
4938 (dump_func
)dump_get_queue_status_reply
,
4939 (dump_func
)dump_get_process_idle_event_reply
,
4942 (dump_func
)dump_send_hardware_message_reply
,
4943 (dump_func
)dump_get_message_reply
,
4946 (dump_func
)dump_get_message_reply_reply
,
4947 (dump_func
)dump_set_win_timer_reply
,
4949 (dump_func
)dump_is_window_hung_reply
,
4950 (dump_func
)dump_get_serial_info_reply
,
4955 (dump_func
)dump_get_async_result_reply
,
4956 (dump_func
)dump_set_async_direct_result_reply
,
4957 (dump_func
)dump_read_reply
,
4958 (dump_func
)dump_write_reply
,
4959 (dump_func
)dump_ioctl_reply
,
4961 (dump_func
)dump_create_named_pipe_reply
,
4963 (dump_func
)dump_create_window_reply
,
4965 (dump_func
)dump_get_desktop_window_reply
,
4966 (dump_func
)dump_set_window_owner_reply
,
4967 (dump_func
)dump_get_window_info_reply
,
4968 (dump_func
)dump_set_window_info_reply
,
4969 (dump_func
)dump_set_parent_reply
,
4970 (dump_func
)dump_get_window_parents_reply
,
4971 (dump_func
)dump_get_window_children_reply
,
4972 (dump_func
)dump_get_window_children_from_point_reply
,
4973 (dump_func
)dump_get_window_tree_reply
,
4974 (dump_func
)dump_set_window_pos_reply
,
4975 (dump_func
)dump_get_window_rectangles_reply
,
4976 (dump_func
)dump_get_window_text_reply
,
4978 (dump_func
)dump_get_windows_offset_reply
,
4979 (dump_func
)dump_get_visible_region_reply
,
4980 (dump_func
)dump_get_surface_region_reply
,
4981 (dump_func
)dump_get_window_region_reply
,
4983 (dump_func
)dump_get_update_region_reply
,
4987 (dump_func
)dump_remove_window_property_reply
,
4988 (dump_func
)dump_get_window_property_reply
,
4989 (dump_func
)dump_get_window_properties_reply
,
4990 (dump_func
)dump_create_winstation_reply
,
4991 (dump_func
)dump_open_winstation_reply
,
4993 (dump_func
)dump_get_process_winstation_reply
,
4995 (dump_func
)dump_enum_winstation_reply
,
4996 (dump_func
)dump_create_desktop_reply
,
4997 (dump_func
)dump_open_desktop_reply
,
4998 (dump_func
)dump_open_input_desktop_reply
,
5000 (dump_func
)dump_get_thread_desktop_reply
,
5002 (dump_func
)dump_enum_desktop_reply
,
5003 (dump_func
)dump_set_user_object_info_reply
,
5004 (dump_func
)dump_register_hotkey_reply
,
5005 (dump_func
)dump_unregister_hotkey_reply
,
5007 (dump_func
)dump_get_thread_input_reply
,
5008 (dump_func
)dump_get_last_input_time_reply
,
5009 (dump_func
)dump_get_key_state_reply
,
5011 (dump_func
)dump_set_foreground_window_reply
,
5012 (dump_func
)dump_set_focus_window_reply
,
5013 (dump_func
)dump_set_active_window_reply
,
5014 (dump_func
)dump_set_capture_window_reply
,
5015 (dump_func
)dump_set_caret_window_reply
,
5016 (dump_func
)dump_set_caret_info_reply
,
5017 (dump_func
)dump_set_hook_reply
,
5018 (dump_func
)dump_remove_hook_reply
,
5019 (dump_func
)dump_start_hook_chain_reply
,
5021 (dump_func
)dump_get_hook_info_reply
,
5022 (dump_func
)dump_create_class_reply
,
5023 (dump_func
)dump_destroy_class_reply
,
5024 (dump_func
)dump_set_class_info_reply
,
5025 (dump_func
)dump_open_clipboard_reply
,
5026 (dump_func
)dump_close_clipboard_reply
,
5028 (dump_func
)dump_set_clipboard_data_reply
,
5029 (dump_func
)dump_get_clipboard_data_reply
,
5030 (dump_func
)dump_get_clipboard_formats_reply
,
5031 (dump_func
)dump_enum_clipboard_formats_reply
,
5032 (dump_func
)dump_release_clipboard_reply
,
5033 (dump_func
)dump_get_clipboard_info_reply
,
5034 (dump_func
)dump_set_clipboard_viewer_reply
,
5037 (dump_func
)dump_open_token_reply
,
5038 (dump_func
)dump_set_global_windows_reply
,
5039 (dump_func
)dump_adjust_token_privileges_reply
,
5040 (dump_func
)dump_get_token_privileges_reply
,
5041 (dump_func
)dump_check_token_privileges_reply
,
5042 (dump_func
)dump_duplicate_token_reply
,
5043 (dump_func
)dump_filter_token_reply
,
5044 (dump_func
)dump_access_check_reply
,
5045 (dump_func
)dump_get_token_sid_reply
,
5046 (dump_func
)dump_get_token_groups_reply
,
5047 (dump_func
)dump_get_token_default_dacl_reply
,
5050 (dump_func
)dump_get_security_object_reply
,
5051 (dump_func
)dump_get_system_handles_reply
,
5052 (dump_func
)dump_create_mailslot_reply
,
5053 (dump_func
)dump_set_mailslot_info_reply
,
5054 (dump_func
)dump_create_directory_reply
,
5055 (dump_func
)dump_open_directory_reply
,
5056 (dump_func
)dump_get_directory_entry_reply
,
5057 (dump_func
)dump_create_symlink_reply
,
5058 (dump_func
)dump_open_symlink_reply
,
5059 (dump_func
)dump_query_symlink_reply
,
5060 (dump_func
)dump_get_object_info_reply
,
5061 (dump_func
)dump_get_object_name_reply
,
5062 (dump_func
)dump_get_object_type_reply
,
5063 (dump_func
)dump_get_object_types_reply
,
5064 (dump_func
)dump_allocate_locally_unique_id_reply
,
5065 (dump_func
)dump_create_device_manager_reply
,
5068 (dump_func
)dump_get_next_device_request_reply
,
5069 (dump_func
)dump_get_kernel_object_ptr_reply
,
5073 (dump_func
)dump_get_kernel_object_handle_reply
,
5074 (dump_func
)dump_make_process_system_reply
,
5075 (dump_func
)dump_get_token_info_reply
,
5076 (dump_func
)dump_create_linked_token_reply
,
5077 (dump_func
)dump_create_completion_reply
,
5078 (dump_func
)dump_open_completion_reply
,
5080 (dump_func
)dump_remove_completion_reply
,
5081 (dump_func
)dump_query_completion_reply
,
5088 (dump_func
)dump_get_window_layered_info_reply
,
5090 (dump_func
)dump_alloc_user_handle_reply
,
5092 (dump_func
)dump_set_cursor_reply
,
5093 (dump_func
)dump_get_cursor_history_reply
,
5094 (dump_func
)dump_get_rawinput_buffer_reply
,
5096 (dump_func
)dump_create_job_reply
,
5097 (dump_func
)dump_open_job_reply
,
5102 (dump_func
)dump_get_job_info_reply
,
5106 (dump_func
)dump_get_next_thread_reply
,
5109 static const char * const req_names
[REQ_NB_REQUESTS
] = {
5111 "get_new_process_info",
5114 "init_process_done",
5115 "init_first_thread",
5117 "terminate_process",
5120 "get_process_debug_info",
5121 "get_process_image_name",
5122 "get_process_vm_counters",
5143 "create_keyed_event",
5150 "release_semaphore",
5155 "alloc_file_handle",
5156 "get_handle_unix_name",
5158 "get_directory_cache_entry",
5166 "socket_send_icmp_id",
5167 "socket_get_icmp_id",
5168 "get_next_console_request",
5169 "read_directory_changes",
5178 "get_mapping_committed_range",
5179 "add_mapping_committed_range",
5181 "get_mapping_filename",
5185 "queue_exception_event",
5186 "get_exception_status",
5187 "continue_debug_event",
5189 "set_debug_obj_info",
5190 "read_process_memory",
5191 "write_process_memory",
5204 "set_registry_notification",
5211 "get_thread_context",
5212 "set_thread_context",
5213 "get_selector_entry",
5217 "get_atom_information",
5222 "get_process_idle_event",
5224 "post_quit_message",
5225 "send_hardware_message",
5228 "accept_hardware_message",
5229 "get_message_reply",
5239 "set_async_direct_result",
5244 "create_named_pipe",
5245 "set_named_pipe_info",
5248 "get_desktop_window",
5253 "get_window_parents",
5254 "get_window_children",
5255 "get_window_children_from_point",
5258 "get_window_rectangles",
5261 "get_windows_offset",
5262 "get_visible_region",
5263 "get_surface_region",
5264 "get_window_region",
5265 "set_window_region",
5266 "get_update_region",
5267 "update_window_zorder",
5269 "set_window_property",
5270 "remove_window_property",
5271 "get_window_property",
5272 "get_window_properties",
5273 "create_winstation",
5276 "get_process_winstation",
5277 "set_process_winstation",
5281 "open_input_desktop",
5283 "get_thread_desktop",
5284 "set_thread_desktop",
5286 "set_user_object_info",
5288 "unregister_hotkey",
5289 "attach_thread_input",
5291 "get_last_input_time",
5294 "set_foreground_window",
5296 "set_active_window",
5297 "set_capture_window",
5303 "finish_hook_chain",
5311 "set_clipboard_data",
5312 "get_clipboard_data",
5313 "get_clipboard_formats",
5314 "enum_clipboard_formats",
5315 "release_clipboard",
5316 "get_clipboard_info",
5317 "set_clipboard_viewer",
5318 "add_clipboard_listener",
5319 "remove_clipboard_listener",
5321 "set_global_windows",
5322 "adjust_token_privileges",
5323 "get_token_privileges",
5324 "check_token_privileges",
5330 "get_token_default_dacl",
5331 "set_token_default_dacl",
5332 "set_security_object",
5333 "get_security_object",
5334 "get_system_handles",
5336 "set_mailslot_info",
5339 "get_directory_entry",
5347 "allocate_locally_unique_id",
5348 "create_device_manager",
5351 "get_next_device_request",
5352 "get_kernel_object_ptr",
5353 "set_kernel_object_ptr",
5354 "grab_kernel_object",
5355 "release_kernel_object",
5356 "get_kernel_object_handle",
5357 "make_process_system",
5359 "create_linked_token",
5360 "create_completion",
5363 "remove_completion",
5365 "set_completion_info",
5366 "add_fd_completion",
5367 "set_fd_completion_mode",
5371 "get_window_layered_info",
5372 "set_window_layered_info",
5373 "alloc_user_handle",
5376 "get_cursor_history",
5377 "get_rawinput_buffer",
5378 "update_rawinput_devices",
5384 "set_job_completion_port",
5398 { "ABANDONED_WAIT_0", STATUS_ABANDONED_WAIT_0
},
5399 { "ACCESS_DENIED", STATUS_ACCESS_DENIED
},
5400 { "ACCESS_VIOLATION", STATUS_ACCESS_VIOLATION
},
5401 { "ADDRESS_ALREADY_ASSOCIATED", STATUS_ADDRESS_ALREADY_ASSOCIATED
},
5402 { "ALERTED", STATUS_ALERTED
},
5403 { "BAD_DEVICE_TYPE", STATUS_BAD_DEVICE_TYPE
},
5404 { "BAD_IMPERSONATION_LEVEL", STATUS_BAD_IMPERSONATION_LEVEL
},
5405 { "BUFFER_OVERFLOW", STATUS_BUFFER_OVERFLOW
},
5406 { "BUFFER_TOO_SMALL", STATUS_BUFFER_TOO_SMALL
},
5407 { "CANCELLED", STATUS_CANCELLED
},
5408 { "CANNOT_DELETE", STATUS_CANNOT_DELETE
},
5409 { "CANT_OPEN_ANONYMOUS", STATUS_CANT_OPEN_ANONYMOUS
},
5410 { "CHILD_MUST_BE_VOLATILE", STATUS_CHILD_MUST_BE_VOLATILE
},
5411 { "CONNECTION_ABORTED", STATUS_CONNECTION_ABORTED
},
5412 { "CONNECTION_ACTIVE", STATUS_CONNECTION_ACTIVE
},
5413 { "CONNECTION_REFUSED", STATUS_CONNECTION_REFUSED
},
5414 { "CONNECTION_RESET", STATUS_CONNECTION_RESET
},
5415 { "DEBUGGER_INACTIVE", STATUS_DEBUGGER_INACTIVE
},
5416 { "DEVICE_BUSY", STATUS_DEVICE_BUSY
},
5417 { "DEVICE_NOT_READY", STATUS_DEVICE_NOT_READY
},
5418 { "DIRECTORY_NOT_EMPTY", STATUS_DIRECTORY_NOT_EMPTY
},
5419 { "DISK_FULL", STATUS_DISK_FULL
},
5420 { "DLL_NOT_FOUND", STATUS_DLL_NOT_FOUND
},
5421 { "ERROR_CLASS_ALREADY_EXISTS", 0xc0010000 | ERROR_CLASS_ALREADY_EXISTS
},
5422 { "ERROR_CLASS_DOES_NOT_EXIST", 0xc0010000 | ERROR_CLASS_DOES_NOT_EXIST
},
5423 { "ERROR_CLASS_HAS_WINDOWS", 0xc0010000 | ERROR_CLASS_HAS_WINDOWS
},
5424 { "ERROR_CLIPBOARD_NOT_OPEN", 0xc0010000 | ERROR_CLIPBOARD_NOT_OPEN
},
5425 { "ERROR_HOTKEY_ALREADY_REGISTERED", 0xc0010000 | ERROR_HOTKEY_ALREADY_REGISTERED
},
5426 { "ERROR_HOTKEY_NOT_REGISTERED", 0xc0010000 | ERROR_HOTKEY_NOT_REGISTERED
},
5427 { "ERROR_INVALID_CURSOR_HANDLE", 0xc0010000 | ERROR_INVALID_CURSOR_HANDLE
},
5428 { "ERROR_INVALID_INDEX", 0xc0010000 | ERROR_INVALID_INDEX
},
5429 { "ERROR_INVALID_WINDOW_HANDLE", 0xc0010000 | ERROR_INVALID_WINDOW_HANDLE
},
5430 { "ERROR_NO_MORE_USER_HANDLES", 0xc0010000 | ERROR_NO_MORE_USER_HANDLES
},
5431 { "ERROR_WINDOW_OF_OTHER_THREAD", 0xc0010000 | ERROR_WINDOW_OF_OTHER_THREAD
},
5432 { "FILE_DELETED", STATUS_FILE_DELETED
},
5433 { "FILE_INVALID", STATUS_FILE_INVALID
},
5434 { "FILE_IS_A_DIRECTORY", STATUS_FILE_IS_A_DIRECTORY
},
5435 { "FILE_LOCK_CONFLICT", STATUS_FILE_LOCK_CONFLICT
},
5436 { "GENERIC_NOT_MAPPED", STATUS_GENERIC_NOT_MAPPED
},
5437 { "HANDLES_CLOSED", STATUS_HANDLES_CLOSED
},
5438 { "HANDLE_NOT_CLOSABLE", STATUS_HANDLE_NOT_CLOSABLE
},
5439 { "HOST_UNREACHABLE", STATUS_HOST_UNREACHABLE
},
5440 { "ILLEGAL_FUNCTION", STATUS_ILLEGAL_FUNCTION
},
5441 { "IMAGE_MACHINE_TYPE_MISMATCH", STATUS_IMAGE_MACHINE_TYPE_MISMATCH
},
5442 { "IMAGE_NOT_AT_BASE", STATUS_IMAGE_NOT_AT_BASE
},
5443 { "INFO_LENGTH_MISMATCH", STATUS_INFO_LENGTH_MISMATCH
},
5444 { "INSTANCE_NOT_AVAILABLE", STATUS_INSTANCE_NOT_AVAILABLE
},
5445 { "INSUFFICIENT_RESOURCES", STATUS_INSUFFICIENT_RESOURCES
},
5446 { "INVALID_ACL", STATUS_INVALID_ACL
},
5447 { "INVALID_ADDRESS", STATUS_INVALID_ADDRESS
},
5448 { "INVALID_ADDRESS_COMPONENT", STATUS_INVALID_ADDRESS_COMPONENT
},
5449 { "INVALID_CID", STATUS_INVALID_CID
},
5450 { "INVALID_CONNECTION", STATUS_INVALID_CONNECTION
},
5451 { "INVALID_DEVICE_REQUEST", STATUS_INVALID_DEVICE_REQUEST
},
5452 { "INVALID_FILE_FOR_SECTION", STATUS_INVALID_FILE_FOR_SECTION
},
5453 { "INVALID_HANDLE", STATUS_INVALID_HANDLE
},
5454 { "INVALID_IMAGE_FORMAT", STATUS_INVALID_IMAGE_FORMAT
},
5455 { "INVALID_IMAGE_NE_FORMAT", STATUS_INVALID_IMAGE_NE_FORMAT
},
5456 { "INVALID_IMAGE_NOT_MZ", STATUS_INVALID_IMAGE_NOT_MZ
},
5457 { "INVALID_IMAGE_PROTECT", STATUS_INVALID_IMAGE_PROTECT
},
5458 { "INVALID_IMAGE_WIN_16", STATUS_INVALID_IMAGE_WIN_16
},
5459 { "INVALID_IMAGE_WIN_64", STATUS_INVALID_IMAGE_WIN_64
},
5460 { "INVALID_LOCK_SEQUENCE", STATUS_INVALID_LOCK_SEQUENCE
},
5461 { "INVALID_OWNER", STATUS_INVALID_OWNER
},
5462 { "INVALID_PARAMETER", STATUS_INVALID_PARAMETER
},
5463 { "INVALID_PIPE_STATE", STATUS_INVALID_PIPE_STATE
},
5464 { "INVALID_READ_MODE", STATUS_INVALID_READ_MODE
},
5465 { "INVALID_SECURITY_DESCR", STATUS_INVALID_SECURITY_DESCR
},
5466 { "IO_TIMEOUT", STATUS_IO_TIMEOUT
},
5467 { "KERNEL_APC", STATUS_KERNEL_APC
},
5468 { "KEY_DELETED", STATUS_KEY_DELETED
},
5469 { "MAPPED_FILE_SIZE_ZERO", STATUS_MAPPED_FILE_SIZE_ZERO
},
5470 { "MUTANT_NOT_OWNED", STATUS_MUTANT_NOT_OWNED
},
5471 { "NAME_TOO_LONG", STATUS_NAME_TOO_LONG
},
5472 { "NETWORK_BUSY", STATUS_NETWORK_BUSY
},
5473 { "NETWORK_UNREACHABLE", STATUS_NETWORK_UNREACHABLE
},
5474 { "NOT_ALL_ASSIGNED", STATUS_NOT_ALL_ASSIGNED
},
5475 { "NOT_A_DIRECTORY", STATUS_NOT_A_DIRECTORY
},
5476 { "NOT_FOUND", STATUS_NOT_FOUND
},
5477 { "NOT_IMPLEMENTED", STATUS_NOT_IMPLEMENTED
},
5478 { "NOT_MAPPED_VIEW", STATUS_NOT_MAPPED_VIEW
},
5479 { "NOT_REGISTRY_FILE", STATUS_NOT_REGISTRY_FILE
},
5480 { "NOT_SAME_DEVICE", STATUS_NOT_SAME_DEVICE
},
5481 { "NOT_SAME_OBJECT", STATUS_NOT_SAME_OBJECT
},
5482 { "NOT_SUPPORTED", STATUS_NOT_SUPPORTED
},
5483 { "NO_DATA_DETECTED", STATUS_NO_DATA_DETECTED
},
5484 { "NO_IMPERSONATION_TOKEN", STATUS_NO_IMPERSONATION_TOKEN
},
5485 { "NO_MEMORY", STATUS_NO_MEMORY
},
5486 { "NO_MORE_ENTRIES", STATUS_NO_MORE_ENTRIES
},
5487 { "NO_SUCH_DEVICE", STATUS_NO_SUCH_DEVICE
},
5488 { "NO_SUCH_FILE", STATUS_NO_SUCH_FILE
},
5489 { "NO_TOKEN", STATUS_NO_TOKEN
},
5490 { "OBJECT_NAME_COLLISION", STATUS_OBJECT_NAME_COLLISION
},
5491 { "OBJECT_NAME_EXISTS", STATUS_OBJECT_NAME_EXISTS
},
5492 { "OBJECT_NAME_INVALID", STATUS_OBJECT_NAME_INVALID
},
5493 { "OBJECT_NAME_NOT_FOUND", STATUS_OBJECT_NAME_NOT_FOUND
},
5494 { "OBJECT_PATH_INVALID", STATUS_OBJECT_PATH_INVALID
},
5495 { "OBJECT_PATH_NOT_FOUND", STATUS_OBJECT_PATH_NOT_FOUND
},
5496 { "OBJECT_PATH_SYNTAX_BAD", STATUS_OBJECT_PATH_SYNTAX_BAD
},
5497 { "OBJECT_TYPE_MISMATCH", STATUS_OBJECT_TYPE_MISMATCH
},
5498 { "PENDING", STATUS_PENDING
},
5499 { "PIPE_BROKEN", STATUS_PIPE_BROKEN
},
5500 { "PIPE_BUSY", STATUS_PIPE_BUSY
},
5501 { "PIPE_CLOSING", STATUS_PIPE_CLOSING
},
5502 { "PIPE_CONNECTED", STATUS_PIPE_CONNECTED
},
5503 { "PIPE_DISCONNECTED", STATUS_PIPE_DISCONNECTED
},
5504 { "PIPE_EMPTY", STATUS_PIPE_EMPTY
},
5505 { "PIPE_LISTENING", STATUS_PIPE_LISTENING
},
5506 { "PIPE_NOT_AVAILABLE", STATUS_PIPE_NOT_AVAILABLE
},
5507 { "PORT_NOT_SET", STATUS_PORT_NOT_SET
},
5508 { "PREDEFINED_HANDLE", STATUS_PREDEFINED_HANDLE
},
5509 { "PRIVILEGE_NOT_HELD", STATUS_PRIVILEGE_NOT_HELD
},
5510 { "PROCESS_IN_JOB", STATUS_PROCESS_IN_JOB
},
5511 { "PROCESS_IS_TERMINATING", STATUS_PROCESS_IS_TERMINATING
},
5512 { "PROCESS_NOT_IN_JOB", STATUS_PROCESS_NOT_IN_JOB
},
5513 { "REPARSE_POINT_NOT_RESOLVED", STATUS_REPARSE_POINT_NOT_RESOLVED
},
5514 { "SECTION_TOO_BIG", STATUS_SECTION_TOO_BIG
},
5515 { "SEMAPHORE_LIMIT_EXCEEDED", STATUS_SEMAPHORE_LIMIT_EXCEEDED
},
5516 { "SHARING_VIOLATION", STATUS_SHARING_VIOLATION
},
5517 { "SHUTDOWN_IN_PROGRESS", STATUS_SHUTDOWN_IN_PROGRESS
},
5518 { "SUSPEND_COUNT_EXCEEDED", STATUS_SUSPEND_COUNT_EXCEEDED
},
5519 { "THREAD_IS_TERMINATING", STATUS_THREAD_IS_TERMINATING
},
5520 { "TIMEOUT", STATUS_TIMEOUT
},
5521 { "TOO_MANY_OPENED_FILES", STATUS_TOO_MANY_OPENED_FILES
},
5522 { "UNSUCCESSFUL", STATUS_UNSUCCESSFUL
},
5523 { "USER_APC", STATUS_USER_APC
},
5524 { "USER_MAPPED_FILE", STATUS_USER_MAPPED_FILE
},
5525 { "VOLUME_DISMOUNTED", STATUS_VOLUME_DISMOUNTED
},
5526 { "WAS_LOCKED", STATUS_WAS_LOCKED
},
5527 { "WSAEACCES", 0xc0010000 | WSAEACCES
},
5528 { "WSAEADDRINUSE", 0xc0010000 | WSAEADDRINUSE
},
5529 { "WSAEADDRNOTAVAIL", 0xc0010000 | WSAEADDRNOTAVAIL
},
5530 { "WSAEAFNOSUPPORT", 0xc0010000 | WSAEAFNOSUPPORT
},
5531 { "WSAEALREADY", 0xc0010000 | WSAEALREADY
},
5532 { "WSAEBADF", 0xc0010000 | WSAEBADF
},
5533 { "WSAECONNABORTED", 0xc0010000 | WSAECONNABORTED
},
5534 { "WSAECONNREFUSED", 0xc0010000 | WSAECONNREFUSED
},
5535 { "WSAECONNRESET", 0xc0010000 | WSAECONNRESET
},
5536 { "WSAEDESTADDRREQ", 0xc0010000 | WSAEDESTADDRREQ
},
5537 { "WSAEDQUOT", 0xc0010000 | WSAEDQUOT
},
5538 { "WSAEFAULT", 0xc0010000 | WSAEFAULT
},
5539 { "WSAEHOSTDOWN", 0xc0010000 | WSAEHOSTDOWN
},
5540 { "WSAEHOSTUNREACH", 0xc0010000 | WSAEHOSTUNREACH
},
5541 { "WSAEINTR", 0xc0010000 | WSAEINTR
},
5542 { "WSAEINVAL", 0xc0010000 | WSAEINVAL
},
5543 { "WSAEISCONN", 0xc0010000 | WSAEISCONN
},
5544 { "WSAELOOP", 0xc0010000 | WSAELOOP
},
5545 { "WSAEMFILE", 0xc0010000 | WSAEMFILE
},
5546 { "WSAEMSGSIZE", 0xc0010000 | WSAEMSGSIZE
},
5547 { "WSAENAMETOOLONG", 0xc0010000 | WSAENAMETOOLONG
},
5548 { "WSAENETDOWN", 0xc0010000 | WSAENETDOWN
},
5549 { "WSAENETRESET", 0xc0010000 | WSAENETRESET
},
5550 { "WSAENETUNREACH", 0xc0010000 | WSAENETUNREACH
},
5551 { "WSAENOBUFS", 0xc0010000 | WSAENOBUFS
},
5552 { "WSAENOPROTOOPT", 0xc0010000 | WSAENOPROTOOPT
},
5553 { "WSAENOTCONN", 0xc0010000 | WSAENOTCONN
},
5554 { "WSAENOTEMPTY", 0xc0010000 | WSAENOTEMPTY
},
5555 { "WSAENOTSOCK", 0xc0010000 | WSAENOTSOCK
},
5556 { "WSAEOPNOTSUPP", 0xc0010000 | WSAEOPNOTSUPP
},
5557 { "WSAEPFNOSUPPORT", 0xc0010000 | WSAEPFNOSUPPORT
},
5558 { "WSAEPROCLIM", 0xc0010000 | WSAEPROCLIM
},
5559 { "WSAEPROTONOSUPPORT", 0xc0010000 | WSAEPROTONOSUPPORT
},
5560 { "WSAEPROTOTYPE", 0xc0010000 | WSAEPROTOTYPE
},
5561 { "WSAEREMOTE", 0xc0010000 | WSAEREMOTE
},
5562 { "WSAESHUTDOWN", 0xc0010000 | WSAESHUTDOWN
},
5563 { "WSAESOCKTNOSUPPORT", 0xc0010000 | WSAESOCKTNOSUPPORT
},
5564 { "WSAESTALE", 0xc0010000 | WSAESTALE
},
5565 { "WSAETIMEDOUT", 0xc0010000 | WSAETIMEDOUT
},
5566 { "WSAETOOMANYREFS", 0xc0010000 | WSAETOOMANYREFS
},
5567 { "WSAEUSERS", 0xc0010000 | WSAEUSERS
},
5568 { "WSAEWOULDBLOCK", 0xc0010000 | WSAEWOULDBLOCK
},
5572 /* ### make_requests end ### */
5573 /* Everything above this line is generated automatically by tools/make_requests */
5575 static const char *get_status_name( unsigned int status
)
5578 static char buffer
[10];
5582 for (i
= 0; status_names
[i
].name
; i
++)
5583 if (status_names
[i
].value
== status
) return status_names
[i
].name
;
5585 sprintf( buffer
, "%x", status
);
5589 void trace_request(void)
5591 enum request req
= current
->req
.request_header
.req
;
5592 if (req
< REQ_NB_REQUESTS
)
5594 fprintf( stderr
, "%04x: %s(", current
->id
, req_names
[req
] );
5595 if (req_dumpers
[req
])
5597 cur_data
= get_req_data();
5598 cur_size
= get_req_data_size();
5599 req_dumpers
[req
]( ¤t
->req
);
5601 fprintf( stderr
, " )\n" );
5603 else fprintf( stderr
, "%04x: %d(?)\n", current
->id
, req
);
5606 void trace_reply( enum request req
, const union generic_reply
*reply
)
5608 if (req
< REQ_NB_REQUESTS
)
5610 fprintf( stderr
, "%04x: %s() = %s",
5611 current
->id
, req_names
[req
], get_status_name(current
->error
) );
5612 if (reply_dumpers
[req
])
5614 fprintf( stderr
, " {" );
5615 cur_data
= current
->reply_data
;
5616 cur_size
= reply
->reply_header
.reply_size
;
5617 reply_dumpers
[req
]( reply
);
5618 fprintf( stderr
, " }" );
5620 fputc( '\n', stderr
);
5622 else fprintf( stderr
, "%04x: %d() = %s\n",
5623 current
->id
, req
, get_status_name(current
->error
) );