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,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", call
->virtual_alloc_ex
.op_type
, call
->virtual_alloc_ex
.prot
);
199 case APC_VIRTUAL_FREE
:
200 dump_uint64( "APC_VIRTUAL_FREE,addr=", &call
->virtual_free
.addr
);
201 dump_uint64( ",size=", &call
->virtual_free
.size
);
202 fprintf( stderr
, ",op_type=%x", call
->virtual_free
.op_type
);
204 case APC_VIRTUAL_QUERY
:
205 dump_uint64( "APC_VIRTUAL_QUERY,addr=", &call
->virtual_query
.addr
);
207 case APC_VIRTUAL_PROTECT
:
208 dump_uint64( "APC_VIRTUAL_PROTECT,addr=", &call
->virtual_protect
.addr
);
209 dump_uint64( ",size=", &call
->virtual_protect
.size
);
210 fprintf( stderr
, ",prot=%x", call
->virtual_protect
.prot
);
212 case APC_VIRTUAL_FLUSH
:
213 dump_uint64( "APC_VIRTUAL_FLUSH,addr=", &call
->virtual_flush
.addr
);
214 dump_uint64( ",size=", &call
->virtual_flush
.size
);
216 case APC_VIRTUAL_LOCK
:
217 dump_uint64( "APC_VIRTUAL_LOCK,addr=", &call
->virtual_lock
.addr
);
218 dump_uint64( ",size=", &call
->virtual_lock
.size
);
220 case APC_VIRTUAL_UNLOCK
:
221 dump_uint64( "APC_VIRTUAL_UNLOCK,addr=", &call
->virtual_unlock
.addr
);
222 dump_uint64( ",size=", &call
->virtual_unlock
.size
);
225 fprintf( stderr
, "APC_MAP_VIEW,handle=%04x", call
->map_view
.handle
);
226 dump_uint64( ",addr=", &call
->map_view
.addr
);
227 dump_uint64( ",size=", &call
->map_view
.size
);
228 dump_uint64( ",offset=", &call
->map_view
.offset
);
229 dump_uint64( ",zero_bits=", &call
->map_view
.zero_bits
);
230 fprintf( stderr
, ",alloc_type=%x,prot=%x", call
->map_view
.alloc_type
, call
->map_view
.prot
);
233 dump_uint64( "APC_UNMAP_VIEW,addr=", &call
->unmap_view
.addr
);
235 case APC_CREATE_THREAD
:
236 dump_uint64( "APC_CREATE_THREAD,func=", &call
->create_thread
.func
);
237 dump_uint64( ",arg=", &call
->create_thread
.arg
);
238 dump_uint64( ",zero_bits=", &call
->create_thread
.zero_bits
);
239 dump_uint64( ",reserve=", &call
->create_thread
.reserve
);
240 dump_uint64( ",commit=", &call
->create_thread
.commit
);
241 fprintf( stderr
, ",flags=%x", call
->create_thread
.flags
);
244 fprintf( stderr
, "APC_DUP_HANDLE,src_handle=%04x,dst_process=%04x,access=%x,attributes=%x,options=%x",
245 call
->dup_handle
.src_handle
, call
->dup_handle
.dst_process
, call
->dup_handle
.access
,
246 call
->dup_handle
.attributes
, call
->dup_handle
.options
);
249 fprintf( stderr
, "type=%u", call
->type
);
252 fputc( '}', stderr
);
255 static void dump_apc_result( const char *prefix
, const apc_result_t
*result
)
257 fprintf( stderr
, "%s{", prefix
);
263 fprintf( stderr
, "APC_ASYNC_IO,status=%s,total=%u",
264 get_status_name( result
->async_io
.status
), result
->async_io
.total
);
266 case APC_VIRTUAL_ALLOC
:
267 fprintf( stderr
, "APC_VIRTUAL_ALLOC,status=%s",
268 get_status_name( result
->virtual_alloc
.status
));
269 dump_uint64( ",addr=", &result
->virtual_alloc
.addr
);
270 dump_uint64( ",size=", &result
->virtual_alloc
.size
);
272 case APC_VIRTUAL_FREE
:
273 fprintf( stderr
, "APC_VIRTUAL_FREE,status=%s",
274 get_status_name( result
->virtual_free
.status
));
275 dump_uint64( ",addr=", &result
->virtual_free
.addr
);
276 dump_uint64( ",size=", &result
->virtual_free
.size
);
278 case APC_VIRTUAL_QUERY
:
279 fprintf( stderr
, "APC_VIRTUAL_QUERY,status=%s",
280 get_status_name( result
->virtual_query
.status
));
281 dump_uint64( ",base=", &result
->virtual_query
.base
);
282 dump_uint64( ",alloc_base=", &result
->virtual_query
.alloc_base
);
283 dump_uint64( ",size=", &result
->virtual_query
.size
);
284 fprintf( stderr
, ",state=%x,prot=%x,alloc_prot=%x,alloc_type=%x",
285 result
->virtual_query
.state
, result
->virtual_query
.prot
,
286 result
->virtual_query
.alloc_prot
, result
->virtual_query
.alloc_type
);
288 case APC_VIRTUAL_PROTECT
:
289 fprintf( stderr
, "APC_VIRTUAL_PROTECT,status=%s",
290 get_status_name( result
->virtual_protect
.status
));
291 dump_uint64( ",addr=", &result
->virtual_protect
.addr
);
292 dump_uint64( ",size=", &result
->virtual_protect
.size
);
293 fprintf( stderr
, ",prot=%x", result
->virtual_protect
.prot
);
295 case APC_VIRTUAL_FLUSH
:
296 fprintf( stderr
, "APC_VIRTUAL_FLUSH,status=%s",
297 get_status_name( result
->virtual_flush
.status
));
298 dump_uint64( ",addr=", &result
->virtual_flush
.addr
);
299 dump_uint64( ",size=", &result
->virtual_flush
.size
);
301 case APC_VIRTUAL_LOCK
:
302 fprintf( stderr
, "APC_VIRTUAL_LOCK,status=%s",
303 get_status_name( result
->virtual_lock
.status
));
304 dump_uint64( ",addr=", &result
->virtual_lock
.addr
);
305 dump_uint64( ",size=", &result
->virtual_lock
.size
);
307 case APC_VIRTUAL_UNLOCK
:
308 fprintf( stderr
, "APC_VIRTUAL_UNLOCK,status=%s",
309 get_status_name( result
->virtual_unlock
.status
));
310 dump_uint64( ",addr=", &result
->virtual_unlock
.addr
);
311 dump_uint64( ",size=", &result
->virtual_unlock
.size
);
314 fprintf( stderr
, "APC_MAP_VIEW,status=%s",
315 get_status_name( result
->map_view
.status
));
316 dump_uint64( ",addr=", &result
->map_view
.addr
);
317 dump_uint64( ",size=", &result
->map_view
.size
);
320 fprintf( stderr
, "APC_UNMAP_VIEW,status=%s",
321 get_status_name( result
->unmap_view
.status
) );
323 case APC_CREATE_THREAD
:
324 fprintf( stderr
, "APC_CREATE_THREAD,status=%s,pid=%04x,tid=%04x,handle=%04x",
325 get_status_name( result
->create_thread
.status
),
326 result
->create_thread
.pid
, result
->create_thread
.tid
, result
->create_thread
.handle
);
329 fprintf( stderr
, "APC_DUP_HANDLE,status=%s,handle=%04x",
330 get_status_name( result
->dup_handle
.status
), result
->dup_handle
.handle
);
333 fprintf( stderr
, "type=%u", result
->type
);
336 fputc( '}', stderr
);
339 static void dump_async_data( const char *prefix
, const async_data_t
*data
)
341 fprintf( stderr
, "%s{handle=%04x,event=%04x", prefix
, data
->handle
, data
->event
);
342 dump_uint64( ",iosb=", &data
->iosb
);
343 dump_uint64( ",user=", &data
->user
);
344 dump_uint64( ",apc=", &data
->apc
);
345 dump_uint64( ",apc_context=", &data
->apc_context
);
346 fputc( '}', stderr
);
349 static void dump_irp_params( const char *prefix
, const irp_params_t
*data
)
354 fprintf( stderr
, "%s{NONE}", prefix
);
356 case IRP_CALL_CREATE
:
357 fprintf( stderr
, "%s{CREATE,access=%08x,sharing=%08x,options=%08x",
358 prefix
, data
->create
.access
, data
->create
.sharing
, data
->create
.options
);
359 dump_uint64( ",device=", &data
->create
.device
);
360 fprintf( stderr
, ",file=%08x}", data
->create
.file
);
363 fprintf( stderr
, "%s{CLOSE", prefix
);
364 dump_uint64( ",file=", &data
->close
.file
);
365 fputc( '}', stderr
);
368 fprintf( stderr
, "%s{READ,key=%08x,out_size=%u", prefix
, data
->read
.key
,
369 data
->read
.out_size
);
370 dump_uint64( ",pos=", &data
->read
.pos
);
371 dump_uint64( ",file=", &data
->read
.file
);
372 fputc( '}', stderr
);
375 fprintf( stderr
, "%s{WRITE,key=%08x", prefix
, data
->write
.key
);
376 dump_uint64( ",pos=", &data
->write
.pos
);
377 dump_uint64( ",file=", &data
->write
.file
);
378 fputc( '}', stderr
);
381 fprintf( stderr
, "%s{FLUSH", prefix
);
382 dump_uint64( ",file=", &data
->flush
.file
);
383 fputc( '}', stderr
);
386 fprintf( stderr
, "%s{IOCTL", prefix
);
387 dump_ioctl_code( ",code=", &data
->ioctl
.code
);
388 fprintf( stderr
, ",out_size=%u", data
->ioctl
.out_size
);
389 dump_uint64( ",file=", &data
->ioctl
.file
);
390 fputc( '}', stderr
);
392 case IRP_CALL_VOLUME
:
393 fprintf( stderr
, "%s{VOLUME,class=%u,out_size=%u", prefix
,
394 data
->volume
.info_class
, data
->volume
.out_size
);
395 dump_uint64( ",file=", &data
->volume
.file
);
396 fputc( '}', stderr
);
399 fprintf( stderr
, "%s{FREE", prefix
);
400 dump_uint64( ",obj=", &data
->free
.obj
);
401 fputc( '}', stderr
);
403 case IRP_CALL_CANCEL
:
404 fprintf( stderr
, "%s{CANCEL", prefix
);
405 dump_uint64( ",irp=", &data
->cancel
.irp
);
406 fputc( '}', stderr
);
411 static void dump_rawinput( const char *prefix
, const union rawinput
*rawinput
)
413 switch (rawinput
->type
)
416 fprintf( stderr
, "%s{type=MOUSE,x=%d,y=%d,data=%08x}", prefix
, rawinput
->mouse
.x
,
417 rawinput
->mouse
.y
, rawinput
->mouse
.data
);
419 case RIM_TYPEKEYBOARD
:
420 fprintf( stderr
, "%s{type=KEYBOARD,message=%04x,vkey=%04hx,scan=%04hx}", prefix
,
421 rawinput
->kbd
.message
, rawinput
->kbd
.vkey
, rawinput
->kbd
.scan
);
424 fprintf( stderr
, "%s{type=HID,device=%04x,param=%04x,page=%04hx,usage=%04hx,count=%u,length=%u}",
425 prefix
, rawinput
->hid
.device
, rawinput
->hid
.param
, rawinput
->hid
.usage_page
,
426 rawinput
->hid
.usage
, rawinput
->hid
.count
, rawinput
->hid
.length
);
429 fprintf( stderr
, "%s{type=%04x}", prefix
, rawinput
->type
);
434 static void dump_hw_input( const char *prefix
, const hw_input_t
*input
)
439 fprintf( stderr
, "%s{type=MOUSE,x=%d,y=%d,data=%08x,flags=%08x,time=%u",
440 prefix
, input
->mouse
.x
, input
->mouse
.y
, input
->mouse
.data
, input
->mouse
.flags
,
442 dump_uint64( ",info=", &input
->mouse
.info
);
443 fputc( '}', stderr
);
446 fprintf( stderr
, "%s{type=KEYBOARD,vkey=%04hx,scan=%04hx,flags=%08x,time=%u",
447 prefix
, input
->kbd
.vkey
, input
->kbd
.scan
, input
->kbd
.flags
, input
->kbd
.time
);
448 dump_uint64( ",info=", &input
->kbd
.info
);
449 fputc( '}', stderr
);
452 fprintf( stderr
, "%s{type=HARDWARE,msg=%04x", prefix
, input
->hw
.msg
);
453 dump_uint64( ",lparam=", &input
->hw
.lparam
);
454 switch (input
->hw
.msg
)
457 case WM_INPUT_DEVICE_CHANGE
:
458 dump_rawinput( ",rawinput=", &input
->hw
.rawinput
);
460 fputc( '}', stderr
);
463 fprintf( stderr
, "%s{type=%04x}", prefix
, input
->type
);
468 static void dump_luid( const char *prefix
, const struct luid
*luid
)
470 fprintf( stderr
, "%s%d.%u", prefix
, luid
->high_part
, luid
->low_part
);
473 static void dump_generic_map( const char *prefix
, const generic_map_t
*map
)
475 fprintf( stderr
, "%s{r=%08x,w=%08x,x=%08x,a=%08x}",
476 prefix
, map
->read
, map
->write
, map
->exec
, map
->all
);
479 static void dump_varargs_ints( const char *prefix
, data_size_t size
)
481 const int *data
= cur_data
;
482 data_size_t len
= size
/ sizeof(*data
);
484 fprintf( stderr
,"%s{", prefix
);
487 fprintf( stderr
, "%d", *data
++ );
488 if (--len
) fputc( ',', stderr
);
490 fputc( '}', stderr
);
494 static void dump_varargs_uints( const char *prefix
, data_size_t size
)
496 const unsigned int *data
= cur_data
;
498 dump_uints( prefix
, data
, size
/ sizeof(*data
) );
502 static void dump_varargs_uints64( const char *prefix
, data_size_t size
)
504 const unsigned __int64
*data
= cur_data
;
505 data_size_t len
= size
/ sizeof(*data
);
507 fprintf( stderr
,"%s{", prefix
);
510 dump_uint64( "", data
++ );
511 if (--len
) fputc( ',', stderr
);
513 fputc( '}', stderr
);
517 static void dump_varargs_ushorts( const char *prefix
, data_size_t size
)
519 const unsigned short *data
= cur_data
;
520 data_size_t len
= size
/ sizeof(*data
);
522 fprintf( stderr
, "%s{", prefix
);
525 fprintf( stderr
, "%04x", *data
++ );
526 if (--len
) fputc( ',', stderr
);
528 fputc( '}', stderr
);
532 static void dump_varargs_apc_result( const char *prefix
, data_size_t size
)
534 const apc_result_t
*result
= cur_data
;
536 if (size
>= sizeof(*result
))
538 dump_apc_result( prefix
, result
);
539 size
= sizeof(*result
);
544 static void dump_varargs_select_op( const char *prefix
, data_size_t size
)
550 fprintf( stderr
, "%s{}", prefix
);
553 memset( &data
, 0, sizeof(data
) );
554 memcpy( &data
, cur_data
, min( size
, sizeof(data
) ));
556 fprintf( stderr
, "%s{", prefix
);
560 fprintf( stderr
, "NONE" );
563 case SELECT_WAIT_ALL
:
564 fprintf( stderr
, "%s", data
.op
== SELECT_WAIT
? "WAIT" : "WAIT_ALL" );
565 if (size
> offsetof( select_op_t
, wait
.handles
))
566 dump_handles( ",handles=", data
.wait
.handles
,
567 min( size
, sizeof(data
.wait
) ) - offsetof( select_op_t
, wait
.handles
));
569 case SELECT_SIGNAL_AND_WAIT
:
570 fprintf( stderr
, "SIGNAL_AND_WAIT,signal=%04x,wait=%04x",
571 data
.signal_and_wait
.signal
, data
.signal_and_wait
.wait
);
573 case SELECT_KEYED_EVENT_WAIT
:
574 case SELECT_KEYED_EVENT_RELEASE
:
575 fprintf( stderr
, "KEYED_EVENT_%s,handle=%04x",
576 data
.op
== SELECT_KEYED_EVENT_WAIT
? "WAIT" : "RELEASE",
577 data
.keyed_event
.handle
);
578 dump_uint64( ",key=", &data
.keyed_event
.key
);
581 fprintf( stderr
, "op=%u", data
.op
);
584 fputc( '}', stderr
);
588 static void dump_varargs_user_handles( const char *prefix
, data_size_t size
)
590 const user_handle_t
*data
= cur_data
;
591 data_size_t len
= size
/ sizeof(*data
);
593 fprintf( stderr
,"%s{", prefix
);
596 fprintf( stderr
, "%08x", *data
++ );
597 if (--len
) fputc( ',', stderr
);
599 fputc( '}', stderr
);
603 static void dump_varargs_bytes( const char *prefix
, data_size_t size
)
605 const unsigned char *data
= cur_data
;
606 data_size_t len
= min( 1024, size
);
608 fprintf( stderr
,"%s{", prefix
);
611 fprintf( stderr
, "%02x", *data
++ );
612 if (--len
) fputc( ',', stderr
);
614 if (size
> 1024) fprintf( stderr
, "...(total %u)", size
);
615 fputc( '}', stderr
);
619 static void dump_varargs_string( const char *prefix
, data_size_t size
)
621 fprintf( stderr
, "%s\"%.*s\"", prefix
, (int)size
, (const char *)cur_data
);
625 static void dump_varargs_unicode_str( const char *prefix
, data_size_t size
)
627 fprintf( stderr
, "%sL\"", prefix
);
628 dump_strW( cur_data
, size
, stderr
, "\"\"" );
629 fputc( '\"', stderr
);
633 static void dump_varargs_context( const char *prefix
, data_size_t size
)
635 const context_t
*context
= cur_data
;
641 fprintf( stderr
, "%s{}", prefix
);
644 size
= min( size
, sizeof(ctx
) );
645 memset( &ctx
, 0, sizeof(ctx
) );
646 memcpy( &ctx
, context
, size
);
650 case IMAGE_FILE_MACHINE_I386
:
651 fprintf( stderr
, "%s{machine=i386", prefix
);
652 if (ctx
.flags
& SERVER_CTX_CONTROL
)
653 fprintf( stderr
, ",eip=%08x,esp=%08x,ebp=%08x,eflags=%08x,cs=%04x,ss=%04x",
654 ctx
.ctl
.i386_regs
.eip
, ctx
.ctl
.i386_regs
.esp
, ctx
.ctl
.i386_regs
.ebp
,
655 ctx
.ctl
.i386_regs
.eflags
, ctx
.ctl
.i386_regs
.cs
, ctx
.ctl
.i386_regs
.ss
);
656 if (ctx
.flags
& SERVER_CTX_SEGMENTS
)
657 fprintf( stderr
, ",ds=%04x,es=%04x,fs=%04x,gs=%04x",
658 ctx
.seg
.i386_regs
.ds
, ctx
.seg
.i386_regs
.es
,
659 ctx
.seg
.i386_regs
.fs
, ctx
.seg
.i386_regs
.gs
);
660 if (ctx
.flags
& SERVER_CTX_INTEGER
)
661 fprintf( stderr
, ",eax=%08x,ebx=%08x,ecx=%08x,edx=%08x,esi=%08x,edi=%08x",
662 ctx
.integer
.i386_regs
.eax
, ctx
.integer
.i386_regs
.ebx
, ctx
.integer
.i386_regs
.ecx
,
663 ctx
.integer
.i386_regs
.edx
, ctx
.integer
.i386_regs
.esi
, ctx
.integer
.i386_regs
.edi
);
664 if (ctx
.flags
& SERVER_CTX_DEBUG_REGISTERS
)
665 fprintf( stderr
, ",dr0=%08x,dr1=%08x,dr2=%08x,dr3=%08x,dr6=%08x,dr7=%08x",
666 ctx
.debug
.i386_regs
.dr0
, ctx
.debug
.i386_regs
.dr1
, ctx
.debug
.i386_regs
.dr2
,
667 ctx
.debug
.i386_regs
.dr3
, ctx
.debug
.i386_regs
.dr6
, ctx
.debug
.i386_regs
.dr7
);
668 if (ctx
.flags
& SERVER_CTX_FLOATING_POINT
)
670 fprintf( stderr
, ",fp.ctrl=%08x,fp.status=%08x,fp.tag=%08x,fp.err_off=%08x,fp.err_sel=%08x",
671 ctx
.fp
.i386_regs
.ctrl
, ctx
.fp
.i386_regs
.status
, ctx
.fp
.i386_regs
.tag
,
672 ctx
.fp
.i386_regs
.err_off
, ctx
.fp
.i386_regs
.err_sel
);
673 fprintf( stderr
, ",fp.data_off=%08x,fp.data_sel=%08x,fp.cr0npx=%08x",
674 ctx
.fp
.i386_regs
.data_off
, ctx
.fp
.i386_regs
.data_sel
, ctx
.fp
.i386_regs
.cr0npx
);
675 for (i
= 0; i
< 8; i
++)
677 unsigned __int64 reg
[2];
678 memset( reg
, 0, sizeof(reg
) );
679 memcpy( reg
, &ctx
.fp
.i386_regs
.regs
[10 * i
], 10 );
680 fprintf( stderr
, ",fp.reg%u=", i
);
681 dump_uint128( "", reg
);
684 if (ctx
.flags
& SERVER_CTX_EXTENDED_REGISTERS
)
685 dump_uints( ",extended=", (const unsigned int *)ctx
.ext
.i386_regs
,
686 sizeof(ctx
.ext
.i386_regs
) / sizeof(int) );
687 if (ctx
.flags
& SERVER_CTX_YMM_REGISTERS
)
688 for (i
= 0; i
< 16; i
++)
690 fprintf( stderr
, ",ymm%u=", i
);
691 dump_uint128( "", (const unsigned __int64
*)&ctx
.ymm
.regs
.ymm_high
[i
] );
694 case IMAGE_FILE_MACHINE_AMD64
:
695 fprintf( stderr
, "%s{machine=x86_64", prefix
);
696 if (ctx
.flags
& SERVER_CTX_CONTROL
)
698 dump_uint64( ",rip=", &ctx
.ctl
.x86_64_regs
.rip
);
699 dump_uint64( ",rbp=", &ctx
.ctl
.x86_64_regs
.rbp
);
700 dump_uint64( ",rsp=", &ctx
.ctl
.x86_64_regs
.rsp
);
701 fprintf( stderr
, ",cs=%04x,ss=%04x,flags=%08x",
702 ctx
.ctl
.x86_64_regs
.cs
, ctx
.ctl
.x86_64_regs
.ss
, ctx
.ctl
.x86_64_regs
.flags
);
704 if (ctx
.flags
& SERVER_CTX_INTEGER
)
706 dump_uint64( ",rax=", &ctx
.integer
.x86_64_regs
.rax
);
707 dump_uint64( ",rbx=", &ctx
.integer
.x86_64_regs
.rbx
);
708 dump_uint64( ",rcx=", &ctx
.integer
.x86_64_regs
.rcx
);
709 dump_uint64( ",rdx=", &ctx
.integer
.x86_64_regs
.rdx
);
710 dump_uint64( ",rsi=", &ctx
.integer
.x86_64_regs
.rsi
);
711 dump_uint64( ",rdi=", &ctx
.integer
.x86_64_regs
.rdi
);
712 dump_uint64( ",r8=", &ctx
.integer
.x86_64_regs
.r8
);
713 dump_uint64( ",r9=", &ctx
.integer
.x86_64_regs
.r9
);
714 dump_uint64( ",r10=", &ctx
.integer
.x86_64_regs
.r10
);
715 dump_uint64( ",r11=", &ctx
.integer
.x86_64_regs
.r11
);
716 dump_uint64( ",r12=", &ctx
.integer
.x86_64_regs
.r12
);
717 dump_uint64( ",r13=", &ctx
.integer
.x86_64_regs
.r13
);
718 dump_uint64( ",r14=", &ctx
.integer
.x86_64_regs
.r14
);
719 dump_uint64( ",r15=", &ctx
.integer
.x86_64_regs
.r15
);
721 if (ctx
.flags
& SERVER_CTX_SEGMENTS
)
722 fprintf( stderr
, ",ds=%04x,es=%04x,fs=%04x,gs=%04x",
723 ctx
.seg
.x86_64_regs
.ds
, ctx
.seg
.x86_64_regs
.es
,
724 ctx
.seg
.x86_64_regs
.fs
, ctx
.seg
.x86_64_regs
.gs
);
725 if (ctx
.flags
& SERVER_CTX_DEBUG_REGISTERS
)
727 dump_uint64( ",dr0=", &ctx
.debug
.x86_64_regs
.dr0
);
728 dump_uint64( ",dr1=", &ctx
.debug
.x86_64_regs
.dr1
);
729 dump_uint64( ",dr2=", &ctx
.debug
.x86_64_regs
.dr2
);
730 dump_uint64( ",dr3=", &ctx
.debug
.x86_64_regs
.dr3
);
731 dump_uint64( ",dr6=", &ctx
.debug
.x86_64_regs
.dr6
);
732 dump_uint64( ",dr7=", &ctx
.debug
.x86_64_regs
.dr7
);
734 if (ctx
.flags
& SERVER_CTX_FLOATING_POINT
)
735 for (i
= 0; i
< 32; i
++)
737 fprintf( stderr
, ",fp%u=", i
);
738 dump_uint128( "", (const unsigned __int64
*)&ctx
.fp
.x86_64_regs
.fpregs
[i
] );
740 if (ctx
.flags
& SERVER_CTX_YMM_REGISTERS
)
741 for (i
= 0; i
< 16; i
++)
743 fprintf( stderr
, ",ymm%u=", i
);
744 dump_uint128( "", (const unsigned __int64
*)&ctx
.ymm
.regs
.ymm_high
[i
] );
747 case IMAGE_FILE_MACHINE_ARMNT
:
748 fprintf( stderr
, "%s{machine=arm", prefix
);
749 if (ctx
.flags
& SERVER_CTX_CONTROL
)
750 fprintf( stderr
, ",sp=%08x,lr=%08x,pc=%08x,cpsr=%08x",
751 ctx
.ctl
.arm_regs
.sp
, ctx
.ctl
.arm_regs
.lr
,
752 ctx
.ctl
.arm_regs
.pc
, ctx
.ctl
.arm_regs
.cpsr
);
753 if (ctx
.flags
& SERVER_CTX_INTEGER
)
754 for (i
= 0; i
< 13; i
++) fprintf( stderr
, ",r%u=%08x", i
, ctx
.integer
.arm_regs
.r
[i
] );
755 if (ctx
.flags
& SERVER_CTX_DEBUG_REGISTERS
)
757 for (i
= 0; i
< 8; i
++)
758 fprintf( stderr
, ",bcr%u=%08x,bvr%u=%08x",
759 i
, ctx
.debug
.arm_regs
.bcr
[i
], i
, ctx
.debug
.arm_regs
.bvr
[i
] );
760 fprintf( stderr
, ",wcr0=%08x,wvr0=%08x",
761 ctx
.debug
.arm_regs
.wcr
[0], ctx
.debug
.arm_regs
.wvr
[0] );
763 if (ctx
.flags
& SERVER_CTX_FLOATING_POINT
)
765 for (i
= 0; i
< 32; i
++)
767 fprintf( stderr
, ",d%u=", i
);
768 dump_uint64( "", &ctx
.fp
.arm_regs
.d
[i
] );
770 fprintf( stderr
, ",fpscr=%08x", ctx
.fp
.arm_regs
.fpscr
);
773 case IMAGE_FILE_MACHINE_ARM64
:
774 fprintf( stderr
, "%s{machine=arm64", prefix
);
775 if (ctx
.flags
& SERVER_CTX_CONTROL
)
777 dump_uint64( ",sp=", &ctx
.ctl
.arm64_regs
.sp
);
778 dump_uint64( ",pc=", &ctx
.ctl
.arm64_regs
.pc
);
779 dump_uint64( ",pstate=", &ctx
.ctl
.arm64_regs
.pstate
);
781 if (ctx
.flags
& SERVER_CTX_INTEGER
)
783 for (i
= 0; i
< 31; i
++)
785 fprintf( stderr
, ",x%u=", i
);
786 dump_uint64( "", &ctx
.integer
.arm64_regs
.x
[i
] );
789 if (ctx
.flags
& SERVER_CTX_DEBUG_REGISTERS
)
791 for (i
= 0; i
< 8; i
++)
793 fprintf( stderr
, ",bcr%u=%08x,bvr%u=", i
, ctx
.debug
.arm64_regs
.bcr
[i
], i
);
794 dump_uint64( "", &ctx
.debug
.arm64_regs
.bvr
[i
] );
796 for (i
= 0; i
< 2; i
++)
798 fprintf( stderr
, ",wcr%u=%08x,wvr%u=", i
, ctx
.debug
.arm64_regs
.wcr
[i
], i
);
799 dump_uint64( "", &ctx
.debug
.arm64_regs
.wvr
[i
] );
802 if (ctx
.flags
& SERVER_CTX_FLOATING_POINT
)
804 for (i
= 0; i
< 32; i
++)
806 fprintf( stderr
, ",q%u=", i
);
807 dump_uint64( "", &ctx
.fp
.arm64_regs
.q
[i
].high
);
808 dump_uint64( "", &ctx
.fp
.arm64_regs
.q
[i
].low
);
810 fprintf( stderr
, ",fpcr=%08x,fpsr=%08x", ctx
.fp
.arm64_regs
.fpcr
, ctx
.fp
.arm64_regs
.fpsr
);
814 fprintf( stderr
, "%s{machine=%04x", prefix
, ctx
.machine
);
817 fputc( '}', stderr
);
821 static void dump_varargs_contexts( const char *prefix
, data_size_t size
)
825 fprintf( stderr
, "%s{}", prefix
);
828 fprintf( stderr
, "%s{", prefix
);
831 dump_varargs_context( "", cur_size
);
832 fputc( cur_size
? ',' : '}', stderr
);
836 static void dump_varargs_debug_event( const char *prefix
, data_size_t size
)
843 fprintf( stderr
, "%s{}", prefix
);
846 size
= min( size
, sizeof(event
) );
847 memset( &event
, 0, sizeof(event
) );
848 memcpy( &event
, cur_data
, size
);
853 fprintf( stderr
, "%s{idle}", prefix
);
855 case DbgReplyPending
:
856 fprintf( stderr
, "%s{pending}", prefix
);
858 case DbgCreateThreadStateChange
:
859 fprintf( stderr
, "%s{create_thread,thread=%04x", prefix
, event
.create_thread
.handle
);
860 dump_uint64( ",start=", &event
.create_thread
.start
);
861 fputc( '}', stderr
);
863 case DbgCreateProcessStateChange
:
864 fprintf( stderr
, "%s{create_process,file=%04x,process=%04x,thread=%04x", prefix
,
865 event
.create_process
.file
, event
.create_process
.process
,
866 event
.create_process
.thread
);
867 dump_uint64( ",base=", &event
.create_process
.base
);
868 fprintf( stderr
, ",offset=%d,size=%d",
869 event
.create_process
.dbg_offset
, event
.create_process
.dbg_size
);
870 dump_uint64( ",start=", &event
.create_process
.start
);
871 fputc( '}', stderr
);
873 case DbgExitThreadStateChange
:
874 fprintf( stderr
, "%s{exit_thread,code=%d}", prefix
, event
.exit
.exit_code
);
876 case DbgExitProcessStateChange
:
877 fprintf( stderr
, "%s{exit_process,code=%d}", prefix
, event
.exit
.exit_code
);
879 case DbgExceptionStateChange
:
880 case DbgBreakpointStateChange
:
881 case DbgSingleStepStateChange
:
882 fprintf( stderr
, "%s{%s,first=%d,exc_code=%08x,flags=%08x", prefix
,
883 event
.code
== DbgBreakpointStateChange
? "breakpoint" :
884 event
.code
== DbgSingleStepStateChange
? "singlestep" : "exception",
885 event
.exception
.first
, event
.exception
.exc_code
, event
.exception
.flags
);
886 dump_uint64( ",record=", &event
.exception
.record
);
887 dump_uint64( ",address=", &event
.exception
.address
);
888 fprintf( stderr
, ",params={" );
889 event
.exception
.nb_params
= min( event
.exception
.nb_params
, EXCEPTION_MAXIMUM_PARAMETERS
);
890 for (i
= 0; i
< event
.exception
.nb_params
; i
++)
892 dump_uint64( "", &event
.exception
.params
[i
] );
893 if (i
< event
.exception
.nb_params
) fputc( ',', stderr
);
895 fprintf( stderr
, "}}" );
897 case DbgLoadDllStateChange
:
898 fprintf( stderr
, "%s{load_dll,file=%04x", prefix
, event
.load_dll
.handle
);
899 dump_uint64( ",base=", &event
.load_dll
.base
);
900 fprintf( stderr
, ",offset=%d,size=%d",
901 event
.load_dll
.dbg_offset
, event
.load_dll
.dbg_size
);
902 dump_uint64( ",name=", &event
.load_dll
.name
);
903 fputc( '}', stderr
);
905 case DbgUnloadDllStateChange
:
906 fprintf( stderr
, "%s{unload_dll", prefix
);
907 dump_uint64( ",base=", &event
.unload_dll
.base
);
908 fputc( '}', stderr
);
911 fprintf( stderr
, "%s{code=??? (%d)}", prefix
, event
.code
);
917 /* dump a unicode string contained in a buffer; helper for dump_varargs_startup_info */
918 static data_size_t
dump_inline_unicode_string( const char *prefix
, data_size_t pos
, data_size_t len
, data_size_t total_size
)
920 fputs( prefix
, stderr
);
921 if (pos
>= total_size
) return pos
;
922 if (len
> total_size
- pos
) len
= total_size
- pos
;
923 dump_strW( (const WCHAR
*)cur_data
+ pos
/sizeof(WCHAR
), len
, stderr
, "\"\"" );
924 return pos
+ (len
/ sizeof(WCHAR
)) * sizeof(WCHAR
);
927 static void dump_varargs_startup_info( const char *prefix
, data_size_t size
)
930 data_size_t pos
= sizeof(info
);
932 memset( &info
, 0, sizeof(info
) );
933 memcpy( &info
, cur_data
, min( size
, sizeof(info
) ));
936 "%s{debug_flags=%x,console_flags=%x,console=%04x,hstdin=%04x,hstdout=%04x,hstderr=%04x,"
937 "x=%u,y=%u,xsize=%u,ysize=%u,xchars=%u,ychars=%u,attribute=%02x,flags=%x,show=%u",
938 prefix
, info
.debug_flags
, info
.console_flags
, info
.console
,
939 info
.hstdin
, info
.hstdout
, info
.hstderr
, info
.x
, info
.y
, info
.xsize
, info
.ysize
,
940 info
.xchars
, info
.ychars
, info
.attribute
, info
.flags
, info
.show
);
941 pos
= dump_inline_unicode_string( ",curdir=L\"", pos
, info
.curdir_len
, size
);
942 pos
= dump_inline_unicode_string( "\",dllpath=L\"", pos
, info
.dllpath_len
, size
);
943 pos
= dump_inline_unicode_string( "\",imagepath=L\"", pos
, info
.imagepath_len
, size
);
944 pos
= dump_inline_unicode_string( "\",cmdline=L\"", pos
, info
.cmdline_len
, size
);
945 pos
= dump_inline_unicode_string( "\",title=L\"", pos
, info
.title_len
, size
);
946 pos
= dump_inline_unicode_string( "\",desktop=L\"", pos
, info
.desktop_len
, size
);
947 pos
= dump_inline_unicode_string( "\",shellinfo=L\"", pos
, info
.shellinfo_len
, size
);
948 pos
= dump_inline_unicode_string( "\",runtime=L\"", pos
, info
.runtime_len
, size
);
949 fprintf( stderr
, "\"}" );
953 static void dump_varargs_rectangles( const char *prefix
, data_size_t size
)
955 const rectangle_t
*rect
= cur_data
;
956 data_size_t len
= size
/ sizeof(*rect
);
958 fprintf( stderr
,"%s{", prefix
);
961 dump_rectangle( "", rect
++ );
962 if (--len
) fputc( ',', stderr
);
964 fputc( '}', stderr
);
968 static void dump_varargs_cursor_positions( const char *prefix
, data_size_t size
)
970 const cursor_pos_t
*pos
= cur_data
;
971 data_size_t len
= size
/ sizeof(*pos
);
973 fprintf( stderr
, "%s{", prefix
);
976 fprintf( stderr
, "{x=%d,y=%d,time=%u", pos
->x
, pos
->y
, pos
->time
);
977 dump_uint64( ",info=", &pos
->info
);
978 fputc( '}', stderr
);
980 if (--len
) fputc( ',', stderr
);
982 fputc( '}', stderr
);
986 static void dump_varargs_message_data( const char *prefix
, data_size_t size
)
988 /* FIXME: dump the structured data */
989 dump_varargs_bytes( prefix
, size
);
992 static void dump_varargs_properties( const char *prefix
, data_size_t size
)
994 const property_data_t
*prop
= cur_data
;
995 data_size_t len
= size
/ sizeof(*prop
);
997 fprintf( stderr
,"%s{", prefix
);
1000 fprintf( stderr
, "{atom=%04x,str=%d", prop
->atom
, prop
->string
);
1001 dump_uint64( ",data=", &prop
->data
);
1002 fputc( '}', stderr
);
1004 if (--len
) fputc( ',', stderr
);
1006 fputc( '}', stderr
);
1007 remove_data( size
);
1010 static void dump_varargs_luid_attr( const char *prefix
, data_size_t size
)
1012 const struct luid_attr
*lat
= cur_data
;
1013 data_size_t len
= size
/ sizeof(*lat
);
1015 fprintf( stderr
,"%s{", prefix
);
1018 fprintf( stderr
, "{luid=%08x%08x,attrs=%x}", lat
->luid
.high_part
, lat
->luid
.low_part
, lat
->attrs
);
1020 if (--len
) fputc( ',', stderr
);
1022 fputc( '}', stderr
);
1023 remove_data( size
);
1026 static void dump_inline_sid( const char *prefix
, const struct sid
*sid
, data_size_t size
)
1030 fprintf( stderr
,"%s", prefix
);
1031 if (sid_valid_size( sid
, size
))
1033 fprintf( stderr
, "S-%u-%u", sid
->revision
,
1034 ((unsigned int)sid
->id_auth
[2] << 24) |
1035 ((unsigned int)sid
->id_auth
[3] << 16) |
1036 ((unsigned int)sid
->id_auth
[4] << 8) |
1037 ((unsigned int)sid
->id_auth
[5]) );
1038 for (i
= 0; i
< sid
->sub_count
; i
++) fprintf( stderr
, "-%u", sid
->sub_auth
[i
] );
1040 else fprintf( stderr
, "<invalid>" );
1043 static void dump_varargs_sid( const char *prefix
, data_size_t size
)
1045 const struct sid
*sid
= cur_data
;
1046 if (size
) dump_inline_sid( prefix
, sid
, size
);
1047 remove_data( size
);
1050 static void dump_varargs_sids( const char *prefix
, data_size_t size
)
1052 const struct sid
*sid
= cur_data
;
1053 data_size_t len
= size
;
1055 fprintf( stderr
,"%s{", prefix
);
1058 if (!sid_valid_size( sid
, len
))
1060 fprintf( stderr
, "bad len %u", len
);
1063 dump_inline_sid( "", sid
, size
);
1064 len
-= sid_len( sid
);
1065 sid
= (const struct sid
*)((const char *)sid
+ sid_len( sid
));
1066 if (len
) fputc( ',', stderr
);
1068 fputc( '}', stderr
);
1069 remove_data( size
);
1072 static void dump_inline_acl( const char *prefix
, const struct acl
*acl
, data_size_t size
)
1074 const struct ace
*ace
;
1077 fprintf( stderr
,"%s{", prefix
);
1080 if (size
< sizeof(*acl
))
1082 fprintf( stderr
, "<invalid acl>}" );
1085 size
-= sizeof(*acl
);
1086 for (i
= 0, ace
= ace_first( acl
); i
< acl
->count
; i
++, ace
= ace_next( ace
))
1088 const struct sid
*sid
= (const struct sid
*)(ace
+ 1);
1089 data_size_t sid_size
;
1091 if (size
< sizeof(*ace
) || size
< ace
->size
) break;
1093 sid_size
= ace
->size
- sizeof(*ace
);
1094 if (i
!= 0) fputc( ',', stderr
);
1095 fprintf( stderr
, "{type=" );
1098 case ACCESS_DENIED_ACE_TYPE
: fprintf( stderr
, "ACCESS_DENIED" ); break;
1099 case ACCESS_ALLOWED_ACE_TYPE
: fprintf( stderr
, "ACCESS_ALLOWED" ); break;
1100 case SYSTEM_AUDIT_ACE_TYPE
: fprintf( stderr
, "SYSTEM_AUDIT" ); break;
1101 case SYSTEM_ALARM_ACE_TYPE
: fprintf( stderr
, "SYSTEM_ALARM" ); break;
1102 case SYSTEM_MANDATORY_LABEL_ACE_TYPE
: fprintf( stderr
, "SYSTEM_MANDATORY_LABEL" ); break;
1104 fprintf( stderr
, "%02x", ace
->type
);
1108 fprintf( stderr
, ",flags=%x,mask=%x", ace
->flags
, ace
->mask
);
1109 if (sid
) dump_inline_sid( ",sid=", sid
, sid_size
);
1110 fputc( '}', stderr
);
1113 fputc( '}', stderr
);
1116 static void dump_varargs_acl( const char *prefix
, data_size_t size
)
1118 const struct acl
*acl
= cur_data
;
1119 dump_inline_acl( prefix
, acl
, size
);
1120 remove_data( size
);
1123 static void dump_inline_security_descriptor( const char *prefix
, const struct security_descriptor
*sd
, data_size_t size
)
1125 fprintf( stderr
,"%s{", prefix
);
1126 if (size
>= sizeof(struct security_descriptor
))
1128 size_t offset
= sizeof(struct security_descriptor
);
1129 fprintf( stderr
, "control=%08x", sd
->control
);
1130 if ((sd
->owner_len
> offsetof(struct sid
, sub_auth
[255])) || (offset
+ sd
->owner_len
> size
))
1133 dump_inline_sid( ",owner=", (const struct sid
*)((const char *)sd
+ offset
), sd
->owner_len
);
1135 fprintf( stderr
, ",owner=<not present>" );
1136 offset
+= sd
->owner_len
;
1137 if ((sd
->group_len
> offsetof(struct sid
, sub_auth
[255])) || (offset
+ sd
->group_len
> size
))
1140 dump_inline_sid( ",group=", (const struct sid
*)((const char *)sd
+ offset
), sd
->group_len
);
1142 fprintf( stderr
, ",group=<not present>" );
1143 offset
+= sd
->group_len
;
1144 if ((sd
->sacl_len
>= MAX_ACL_LEN
) || (offset
+ sd
->sacl_len
> size
))
1146 dump_inline_acl( ",sacl=", (const struct acl
*)((const char *)sd
+ offset
), sd
->sacl_len
);
1147 offset
+= sd
->sacl_len
;
1148 if ((sd
->dacl_len
>= MAX_ACL_LEN
) || (offset
+ sd
->dacl_len
> size
))
1150 dump_inline_acl( ",dacl=", (const struct acl
*)((const char *)sd
+ offset
), sd
->dacl_len
);
1151 offset
+= sd
->dacl_len
;
1153 fputc( '}', stderr
);
1156 static void dump_varargs_security_descriptor( const char *prefix
, data_size_t size
)
1158 const struct security_descriptor
*sd
= cur_data
;
1159 dump_inline_security_descriptor( prefix
, sd
, size
);
1160 remove_data( size
);
1163 static void dump_varargs_process_info( const char *prefix
, data_size_t size
)
1165 data_size_t pos
= 0;
1168 fprintf( stderr
,"%s{", prefix
);
1170 while (size
- pos
>= sizeof(struct process_info
))
1172 const struct process_info
*process
;
1173 pos
= (pos
+ 7) & ~7;
1174 process
= (const struct process_info
*)((const char *)cur_data
+ pos
);
1175 if (size
- pos
< sizeof(*process
)) break;
1176 if (pos
) fputc( ',', stderr
);
1177 dump_timeout( "{start_time=", &process
->start_time
);
1178 fprintf( stderr
, ",thread_count=%u,priority=%d,pid=%04x,parent_pid=%04x,session_id=%08x,handle_count=%u,unix_pid=%d,",
1179 process
->thread_count
, process
->priority
, process
->pid
,
1180 process
->parent_pid
, process
->session_id
, process
->handle_count
, process
->unix_pid
);
1181 pos
+= sizeof(*process
);
1183 pos
= dump_inline_unicode_string( "name=L\"", pos
, process
->name_len
, size
);
1185 pos
= (pos
+ 7) & ~7;
1186 fprintf( stderr
, "\",threads={" );
1187 for (i
= 0; i
< process
->thread_count
; i
++)
1189 const struct thread_info
*thread
= (const struct thread_info
*)((const char *)cur_data
+ pos
);
1190 if (size
- pos
< sizeof(*thread
)) break;
1191 if (i
) fputc( ',', stderr
);
1192 dump_timeout( "{start_time=", &thread
->start_time
);
1193 fprintf( stderr
, ",tid=%04x,base_priority=%d,current_priority=%d,unix_tid=%d}",
1194 thread
->tid
, thread
->base_priority
, thread
->current_priority
, thread
->unix_tid
);
1195 pos
+= sizeof(*thread
);
1197 fprintf( stderr
, "}}" );
1199 fputc( '}', stderr
);
1200 remove_data( size
);
1203 static void dump_varargs_object_attributes( const char *prefix
, data_size_t size
)
1205 const struct object_attributes
*objattr
= cur_data
;
1207 fprintf( stderr
,"%s{", prefix
);
1212 if (size
< sizeof(*objattr
) ||
1213 (size
- sizeof(*objattr
) < objattr
->sd_len
) ||
1214 (size
- sizeof(*objattr
) - objattr
->sd_len
< objattr
->name_len
))
1216 fprintf( stderr
, "***invalid***}" );
1217 remove_data( size
);
1221 fprintf( stderr
, "rootdir=%04x,attributes=%08x", objattr
->rootdir
, objattr
->attributes
);
1222 dump_inline_security_descriptor( ",sd=", (const struct security_descriptor
*)(objattr
+ 1), objattr
->sd_len
);
1223 str
= (const WCHAR
*)objattr
+ (sizeof(*objattr
) + objattr
->sd_len
) / sizeof(WCHAR
);
1224 fprintf( stderr
, ",name=L\"" );
1225 dump_strW( str
, objattr
->name_len
, stderr
, "\"\"" );
1226 fputc( '\"', stderr
);
1227 remove_data( (sizeof(*objattr
) + (objattr
->sd_len
& ~1) + (objattr
->name_len
& ~1) + 3) & ~3 );
1229 fputc( '}', stderr
);
1232 static void dump_varargs_object_type_info( const char *prefix
, data_size_t size
)
1234 const struct object_type_info
*info
= cur_data
;
1236 fprintf( stderr
,"%s{", prefix
);
1239 if (size
< sizeof(*info
) || (size
- sizeof(*info
) < info
->name_len
))
1241 fprintf( stderr
, "***invalid***}" );
1242 remove_data( size
);
1246 fprintf( stderr
, "index=%u,obj_count=%u,handle_count=%u,obj_max=%u,handle_max=%u,valid=%08x",
1247 info
->index
,info
->obj_count
, info
->handle_count
, info
->obj_max
, info
->handle_max
,
1248 info
->valid_access
);
1249 dump_generic_map( ",access=", &info
->mapping
);
1250 fprintf( stderr
, ",name=L\"" );
1251 dump_strW( (const WCHAR
*)(info
+ 1), info
->name_len
, stderr
, "\"\"" );
1252 fputc( '\"', stderr
);
1253 remove_data( min( size
, sizeof(*info
) + ((info
->name_len
+ 2) & ~3 )));
1255 fputc( '}', stderr
);
1258 static void dump_varargs_object_types_info( const char *prefix
, data_size_t size
)
1260 fprintf( stderr
,"%s{", prefix
);
1261 while (cur_size
) dump_varargs_object_type_info( ",", cur_size
);
1262 fputc( '}', stderr
);
1265 static void dump_varargs_filesystem_event( const char *prefix
, data_size_t size
)
1267 static const char * const actions
[] = {
1279 fprintf( stderr
,"%s{", prefix
);
1282 const struct filesystem_event
*event
= cur_data
;
1283 data_size_t len
= (offsetof( struct filesystem_event
, name
[event
->len
] ) + sizeof(int)-1)
1284 / sizeof(int) * sizeof(int);
1285 if (size
< len
) break;
1286 if (event
->action
< ARRAY_SIZE( actions
) && actions
[event
->action
])
1287 fprintf( stderr
, "{action=%s", actions
[event
->action
] );
1289 fprintf( stderr
, "{action=%u", event
->action
);
1290 fprintf( stderr
, ",name=\"%.*s\"}", event
->len
, event
->name
);
1293 if (size
)fputc( ',', stderr
);
1295 fputc( '}', stderr
);
1298 static void dump_varargs_pe_image_info( const char *prefix
, data_size_t size
)
1300 pe_image_info_t info
;
1304 fprintf( stderr
, "%s{}", prefix
);
1307 memset( &info
, 0, sizeof(info
) );
1308 memcpy( &info
, cur_data
, min( size
, sizeof(info
) ));
1310 fprintf( stderr
, "%s{", prefix
);
1311 dump_uint64( "base=", &info
.base
);
1312 dump_uint64( ",stack_size=", &info
.stack_size
);
1313 dump_uint64( ",stack_commit=", &info
.stack_commit
);
1314 fprintf( stderr
, ",entry_point=%08x,map_size=%08x,zerobits=%08x,subsystem=%08x,subsystem_minor=%04x,subsystem_major=%04x"
1315 ",osversion_major=%04x,osversion_minor=%04x,image_charact=%04x,dll_charact=%04x,machine=%04x"
1316 ",contains_code=%u,image_flags=%02x"
1317 ",loader_flags=%08x,header_size=%08x,file_size=%08x,checksum=%08x}",
1318 info
.entry_point
, info
.map_size
, info
.zerobits
, info
.subsystem
, info
.subsystem_minor
,
1319 info
.subsystem_major
, info
.osversion_major
, info
.osversion_minor
, info
.image_charact
,
1320 info
.dll_charact
, info
.machine
, info
.contains_code
, info
.image_flags
, info
.loader_flags
,
1321 info
.header_size
, info
.file_size
, info
.checksum
);
1322 remove_data( min( size
, sizeof(info
) ));
1325 static void dump_varargs_rawinput_devices(const char *prefix
, data_size_t size
)
1327 const struct rawinput_device
*device
;
1329 fprintf( stderr
, "%s{", prefix
);
1330 while (size
>= sizeof(*device
))
1333 fprintf( stderr
, "{usage_page=%04x,usage=%04x,flags=%08x,target=%08x}",
1334 device
->usage_page
, device
->usage
, device
->flags
, device
->target
);
1335 size
-= sizeof(*device
);
1336 remove_data( sizeof(*device
) );
1337 if (size
) fputc( ',', stderr
);
1339 fputc( '}', stderr
);
1342 static void dump_varargs_handle_infos( const char *prefix
, data_size_t size
)
1344 const struct handle_info
*handle
;
1346 fprintf( stderr
, "%s{", prefix
);
1347 while (size
>= sizeof(*handle
))
1350 fprintf( stderr
, "{owner=%04x,handle=%04x,access=%08x,attributes=%08x,type=%u}",
1351 handle
->owner
, handle
->handle
, handle
->access
, handle
->attributes
, handle
->type
);
1352 size
-= sizeof(*handle
);
1353 remove_data( sizeof(*handle
) );
1354 if (size
) fputc( ',', stderr
);
1356 fputc( '}', stderr
);
1359 typedef void (*dump_func
)( const void *req
);
1361 /* Everything below this line is generated automatically by tools/make_requests */
1362 /* ### make_requests begin ### */
1364 static void dump_new_process_request( const struct new_process_request
*req
)
1366 fprintf( stderr
, " token=%04x", req
->token
);
1367 fprintf( stderr
, ", debug=%04x", req
->debug
);
1368 fprintf( stderr
, ", parent_process=%04x", req
->parent_process
);
1369 fprintf( stderr
, ", flags=%08x", req
->flags
);
1370 fprintf( stderr
, ", socket_fd=%d", req
->socket_fd
);
1371 fprintf( stderr
, ", access=%08x", req
->access
);
1372 fprintf( stderr
, ", machine=%04x", req
->machine
);
1373 fprintf( stderr
, ", info_size=%u", req
->info_size
);
1374 fprintf( stderr
, ", handles_size=%u", req
->handles_size
);
1375 fprintf( stderr
, ", jobs_size=%u", req
->jobs_size
);
1376 dump_varargs_object_attributes( ", objattr=", cur_size
);
1377 dump_varargs_uints( ", handles=", min(cur_size
,req
->handles_size
) );
1378 dump_varargs_uints( ", jobs=", min(cur_size
,req
->jobs_size
) );
1379 dump_varargs_startup_info( ", info=", min(cur_size
,req
->info_size
) );
1380 dump_varargs_unicode_str( ", env=", cur_size
);
1383 static void dump_new_process_reply( const struct new_process_reply
*req
)
1385 fprintf( stderr
, " info=%04x", req
->info
);
1386 fprintf( stderr
, ", pid=%04x", req
->pid
);
1387 fprintf( stderr
, ", handle=%04x", req
->handle
);
1390 static void dump_get_new_process_info_request( const struct get_new_process_info_request
*req
)
1392 fprintf( stderr
, " info=%04x", req
->info
);
1395 static void dump_get_new_process_info_reply( const struct get_new_process_info_reply
*req
)
1397 fprintf( stderr
, " success=%d", req
->success
);
1398 fprintf( stderr
, ", exit_code=%d", req
->exit_code
);
1401 static void dump_new_thread_request( const struct new_thread_request
*req
)
1403 fprintf( stderr
, " process=%04x", req
->process
);
1404 fprintf( stderr
, ", access=%08x", req
->access
);
1405 fprintf( stderr
, ", flags=%08x", req
->flags
);
1406 fprintf( stderr
, ", request_fd=%d", req
->request_fd
);
1407 dump_varargs_object_attributes( ", objattr=", cur_size
);
1410 static void dump_new_thread_reply( const struct new_thread_reply
*req
)
1412 fprintf( stderr
, " tid=%04x", req
->tid
);
1413 fprintf( stderr
, ", handle=%04x", req
->handle
);
1416 static void dump_get_startup_info_request( const struct get_startup_info_request
*req
)
1420 static void dump_get_startup_info_reply( const struct get_startup_info_reply
*req
)
1422 fprintf( stderr
, " info_size=%u", req
->info_size
);
1423 dump_varargs_startup_info( ", info=", min(cur_size
,req
->info_size
) );
1424 dump_varargs_unicode_str( ", env=", cur_size
);
1427 static void dump_init_process_done_request( const struct init_process_done_request
*req
)
1429 dump_uint64( " teb=", &req
->teb
);
1430 dump_uint64( ", peb=", &req
->peb
);
1431 dump_uint64( ", ldt_copy=", &req
->ldt_copy
);
1434 static void dump_init_process_done_reply( const struct init_process_done_reply
*req
)
1436 dump_uint64( " entry=", &req
->entry
);
1437 fprintf( stderr
, ", suspend=%d", req
->suspend
);
1440 static void dump_init_first_thread_request( const struct init_first_thread_request
*req
)
1442 fprintf( stderr
, " unix_pid=%d", req
->unix_pid
);
1443 fprintf( stderr
, ", unix_tid=%d", req
->unix_tid
);
1444 fprintf( stderr
, ", debug_level=%d", req
->debug_level
);
1445 fprintf( stderr
, ", reply_fd=%d", req
->reply_fd
);
1446 fprintf( stderr
, ", wait_fd=%d", req
->wait_fd
);
1449 static void dump_init_first_thread_reply( const struct init_first_thread_reply
*req
)
1451 fprintf( stderr
, " pid=%04x", req
->pid
);
1452 fprintf( stderr
, ", tid=%04x", req
->tid
);
1453 dump_timeout( ", server_start=", &req
->server_start
);
1454 fprintf( stderr
, ", session_id=%08x", req
->session_id
);
1455 fprintf( stderr
, ", info_size=%u", req
->info_size
);
1456 dump_varargs_ushorts( ", machines=", cur_size
);
1459 static void dump_init_thread_request( const struct init_thread_request
*req
)
1461 fprintf( stderr
, " unix_tid=%d", req
->unix_tid
);
1462 fprintf( stderr
, ", reply_fd=%d", req
->reply_fd
);
1463 fprintf( stderr
, ", wait_fd=%d", req
->wait_fd
);
1464 dump_uint64( ", teb=", &req
->teb
);
1465 dump_uint64( ", entry=", &req
->entry
);
1468 static void dump_init_thread_reply( const struct init_thread_reply
*req
)
1470 fprintf( stderr
, " suspend=%d", req
->suspend
);
1473 static void dump_terminate_process_request( const struct terminate_process_request
*req
)
1475 fprintf( stderr
, " handle=%04x", req
->handle
);
1476 fprintf( stderr
, ", exit_code=%d", req
->exit_code
);
1479 static void dump_terminate_process_reply( const struct terminate_process_reply
*req
)
1481 fprintf( stderr
, " self=%d", req
->self
);
1484 static void dump_terminate_thread_request( const struct terminate_thread_request
*req
)
1486 fprintf( stderr
, " handle=%04x", req
->handle
);
1487 fprintf( stderr
, ", exit_code=%d", req
->exit_code
);
1490 static void dump_terminate_thread_reply( const struct terminate_thread_reply
*req
)
1492 fprintf( stderr
, " self=%d", req
->self
);
1495 static void dump_get_process_info_request( const struct get_process_info_request
*req
)
1497 fprintf( stderr
, " handle=%04x", req
->handle
);
1500 static void dump_get_process_info_reply( const struct get_process_info_reply
*req
)
1502 fprintf( stderr
, " pid=%04x", req
->pid
);
1503 fprintf( stderr
, ", ppid=%04x", req
->ppid
);
1504 dump_uint64( ", affinity=", &req
->affinity
);
1505 dump_uint64( ", peb=", &req
->peb
);
1506 dump_timeout( ", start_time=", &req
->start_time
);
1507 dump_timeout( ", end_time=", &req
->end_time
);
1508 fprintf( stderr
, ", session_id=%08x", req
->session_id
);
1509 fprintf( stderr
, ", exit_code=%d", req
->exit_code
);
1510 fprintf( stderr
, ", priority=%d", req
->priority
);
1511 fprintf( stderr
, ", machine=%04x", req
->machine
);
1512 dump_varargs_pe_image_info( ", image=", cur_size
);
1515 static void dump_get_process_debug_info_request( const struct get_process_debug_info_request
*req
)
1517 fprintf( stderr
, " handle=%04x", req
->handle
);
1520 static void dump_get_process_debug_info_reply( const struct get_process_debug_info_reply
*req
)
1522 fprintf( stderr
, " debug=%04x", req
->debug
);
1523 fprintf( stderr
, ", debug_children=%d", req
->debug_children
);
1524 dump_varargs_pe_image_info( ", image=", cur_size
);
1527 static void dump_get_process_image_name_request( const struct get_process_image_name_request
*req
)
1529 fprintf( stderr
, " handle=%04x", req
->handle
);
1530 fprintf( stderr
, ", win32=%d", req
->win32
);
1533 static void dump_get_process_image_name_reply( const struct get_process_image_name_reply
*req
)
1535 fprintf( stderr
, " len=%u", req
->len
);
1536 dump_varargs_unicode_str( ", name=", cur_size
);
1539 static void dump_get_process_vm_counters_request( const struct get_process_vm_counters_request
*req
)
1541 fprintf( stderr
, " handle=%04x", req
->handle
);
1544 static void dump_get_process_vm_counters_reply( const struct get_process_vm_counters_reply
*req
)
1546 dump_uint64( " peak_virtual_size=", &req
->peak_virtual_size
);
1547 dump_uint64( ", virtual_size=", &req
->virtual_size
);
1548 dump_uint64( ", peak_working_set_size=", &req
->peak_working_set_size
);
1549 dump_uint64( ", working_set_size=", &req
->working_set_size
);
1550 dump_uint64( ", pagefile_usage=", &req
->pagefile_usage
);
1551 dump_uint64( ", peak_pagefile_usage=", &req
->peak_pagefile_usage
);
1554 static void dump_set_process_info_request( const struct set_process_info_request
*req
)
1556 fprintf( stderr
, " handle=%04x", req
->handle
);
1557 fprintf( stderr
, ", mask=%d", req
->mask
);
1558 fprintf( stderr
, ", priority=%d", req
->priority
);
1559 dump_uint64( ", affinity=", &req
->affinity
);
1562 static void dump_get_thread_info_request( const struct get_thread_info_request
*req
)
1564 fprintf( stderr
, " handle=%04x", req
->handle
);
1565 fprintf( stderr
, ", access=%08x", req
->access
);
1568 static void dump_get_thread_info_reply( const struct get_thread_info_reply
*req
)
1570 fprintf( stderr
, " pid=%04x", req
->pid
);
1571 fprintf( stderr
, ", tid=%04x", req
->tid
);
1572 dump_uint64( ", teb=", &req
->teb
);
1573 dump_uint64( ", entry_point=", &req
->entry_point
);
1574 dump_uint64( ", affinity=", &req
->affinity
);
1575 fprintf( stderr
, ", exit_code=%d", req
->exit_code
);
1576 fprintf( stderr
, ", priority=%d", req
->priority
);
1577 fprintf( stderr
, ", last=%d", req
->last
);
1578 fprintf( stderr
, ", suspend_count=%d", req
->suspend_count
);
1579 fprintf( stderr
, ", dbg_hidden=%d", req
->dbg_hidden
);
1580 fprintf( stderr
, ", desc_len=%u", req
->desc_len
);
1581 dump_varargs_unicode_str( ", desc=", cur_size
);
1584 static void dump_get_thread_times_request( const struct get_thread_times_request
*req
)
1586 fprintf( stderr
, " handle=%04x", req
->handle
);
1589 static void dump_get_thread_times_reply( const struct get_thread_times_reply
*req
)
1591 dump_timeout( " creation_time=", &req
->creation_time
);
1592 dump_timeout( ", exit_time=", &req
->exit_time
);
1593 fprintf( stderr
, ", unix_pid=%d", req
->unix_pid
);
1594 fprintf( stderr
, ", unix_tid=%d", req
->unix_tid
);
1597 static void dump_set_thread_info_request( const struct set_thread_info_request
*req
)
1599 fprintf( stderr
, " handle=%04x", req
->handle
);
1600 fprintf( stderr
, ", mask=%d", req
->mask
);
1601 fprintf( stderr
, ", priority=%d", req
->priority
);
1602 dump_uint64( ", affinity=", &req
->affinity
);
1603 dump_uint64( ", entry_point=", &req
->entry_point
);
1604 fprintf( stderr
, ", token=%04x", req
->token
);
1605 dump_varargs_unicode_str( ", desc=", cur_size
);
1608 static void dump_suspend_thread_request( const struct suspend_thread_request
*req
)
1610 fprintf( stderr
, " handle=%04x", req
->handle
);
1613 static void dump_suspend_thread_reply( const struct suspend_thread_reply
*req
)
1615 fprintf( stderr
, " count=%d", req
->count
);
1618 static void dump_resume_thread_request( const struct resume_thread_request
*req
)
1620 fprintf( stderr
, " handle=%04x", req
->handle
);
1623 static void dump_resume_thread_reply( const struct resume_thread_reply
*req
)
1625 fprintf( stderr
, " count=%d", req
->count
);
1628 static void dump_queue_apc_request( const struct queue_apc_request
*req
)
1630 fprintf( stderr
, " handle=%04x", req
->handle
);
1631 dump_apc_call( ", call=", &req
->call
);
1634 static void dump_queue_apc_reply( const struct queue_apc_reply
*req
)
1636 fprintf( stderr
, " handle=%04x", req
->handle
);
1637 fprintf( stderr
, ", self=%d", req
->self
);
1640 static void dump_get_apc_result_request( const struct get_apc_result_request
*req
)
1642 fprintf( stderr
, " handle=%04x", req
->handle
);
1645 static void dump_get_apc_result_reply( const struct get_apc_result_reply
*req
)
1647 dump_apc_result( " result=", &req
->result
);
1650 static void dump_close_handle_request( const struct close_handle_request
*req
)
1652 fprintf( stderr
, " handle=%04x", req
->handle
);
1655 static void dump_set_handle_info_request( const struct set_handle_info_request
*req
)
1657 fprintf( stderr
, " handle=%04x", req
->handle
);
1658 fprintf( stderr
, ", flags=%d", req
->flags
);
1659 fprintf( stderr
, ", mask=%d", req
->mask
);
1662 static void dump_set_handle_info_reply( const struct set_handle_info_reply
*req
)
1664 fprintf( stderr
, " old_flags=%d", req
->old_flags
);
1667 static void dump_dup_handle_request( const struct dup_handle_request
*req
)
1669 fprintf( stderr
, " src_process=%04x", req
->src_process
);
1670 fprintf( stderr
, ", src_handle=%04x", req
->src_handle
);
1671 fprintf( stderr
, ", dst_process=%04x", req
->dst_process
);
1672 fprintf( stderr
, ", access=%08x", req
->access
);
1673 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1674 fprintf( stderr
, ", options=%08x", req
->options
);
1677 static void dump_dup_handle_reply( const struct dup_handle_reply
*req
)
1679 fprintf( stderr
, " handle=%04x", req
->handle
);
1682 static void dump_compare_objects_request( const struct compare_objects_request
*req
)
1684 fprintf( stderr
, " first=%04x", req
->first
);
1685 fprintf( stderr
, ", second=%04x", req
->second
);
1688 static void dump_make_temporary_request( const struct make_temporary_request
*req
)
1690 fprintf( stderr
, " handle=%04x", req
->handle
);
1693 static void dump_open_process_request( const struct open_process_request
*req
)
1695 fprintf( stderr
, " pid=%04x", req
->pid
);
1696 fprintf( stderr
, ", access=%08x", req
->access
);
1697 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1700 static void dump_open_process_reply( const struct open_process_reply
*req
)
1702 fprintf( stderr
, " handle=%04x", req
->handle
);
1705 static void dump_open_thread_request( const struct open_thread_request
*req
)
1707 fprintf( stderr
, " tid=%04x", req
->tid
);
1708 fprintf( stderr
, ", access=%08x", req
->access
);
1709 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1712 static void dump_open_thread_reply( const struct open_thread_reply
*req
)
1714 fprintf( stderr
, " handle=%04x", req
->handle
);
1717 static void dump_select_request( const struct select_request
*req
)
1719 fprintf( stderr
, " flags=%d", req
->flags
);
1720 dump_uint64( ", cookie=", &req
->cookie
);
1721 dump_abstime( ", timeout=", &req
->timeout
);
1722 fprintf( stderr
, ", size=%u", req
->size
);
1723 fprintf( stderr
, ", prev_apc=%04x", req
->prev_apc
);
1724 dump_varargs_apc_result( ", result=", cur_size
);
1725 dump_varargs_select_op( ", data=", min(cur_size
,req
->size
) );
1726 dump_varargs_contexts( ", contexts=", cur_size
);
1729 static void dump_select_reply( const struct select_reply
*req
)
1731 dump_apc_call( " call=", &req
->call
);
1732 fprintf( stderr
, ", apc_handle=%04x", req
->apc_handle
);
1733 fprintf( stderr
, ", signaled=%d", req
->signaled
);
1734 dump_varargs_contexts( ", contexts=", cur_size
);
1737 static void dump_create_event_request( const struct create_event_request
*req
)
1739 fprintf( stderr
, " access=%08x", req
->access
);
1740 fprintf( stderr
, ", manual_reset=%d", req
->manual_reset
);
1741 fprintf( stderr
, ", initial_state=%d", req
->initial_state
);
1742 dump_varargs_object_attributes( ", objattr=", cur_size
);
1745 static void dump_create_event_reply( const struct create_event_reply
*req
)
1747 fprintf( stderr
, " handle=%04x", req
->handle
);
1750 static void dump_event_op_request( const struct event_op_request
*req
)
1752 fprintf( stderr
, " handle=%04x", req
->handle
);
1753 fprintf( stderr
, ", op=%d", req
->op
);
1756 static void dump_event_op_reply( const struct event_op_reply
*req
)
1758 fprintf( stderr
, " state=%d", req
->state
);
1761 static void dump_query_event_request( const struct query_event_request
*req
)
1763 fprintf( stderr
, " handle=%04x", req
->handle
);
1766 static void dump_query_event_reply( const struct query_event_reply
*req
)
1768 fprintf( stderr
, " manual_reset=%d", req
->manual_reset
);
1769 fprintf( stderr
, ", state=%d", req
->state
);
1772 static void dump_open_event_request( const struct open_event_request
*req
)
1774 fprintf( stderr
, " access=%08x", req
->access
);
1775 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1776 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
1777 dump_varargs_unicode_str( ", name=", cur_size
);
1780 static void dump_open_event_reply( const struct open_event_reply
*req
)
1782 fprintf( stderr
, " handle=%04x", req
->handle
);
1785 static void dump_create_keyed_event_request( const struct create_keyed_event_request
*req
)
1787 fprintf( stderr
, " access=%08x", req
->access
);
1788 dump_varargs_object_attributes( ", objattr=", cur_size
);
1791 static void dump_create_keyed_event_reply( const struct create_keyed_event_reply
*req
)
1793 fprintf( stderr
, " handle=%04x", req
->handle
);
1796 static void dump_open_keyed_event_request( const struct open_keyed_event_request
*req
)
1798 fprintf( stderr
, " access=%08x", req
->access
);
1799 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1800 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
1801 dump_varargs_unicode_str( ", name=", cur_size
);
1804 static void dump_open_keyed_event_reply( const struct open_keyed_event_reply
*req
)
1806 fprintf( stderr
, " handle=%04x", req
->handle
);
1809 static void dump_create_mutex_request( const struct create_mutex_request
*req
)
1811 fprintf( stderr
, " access=%08x", req
->access
);
1812 fprintf( stderr
, ", owned=%d", req
->owned
);
1813 dump_varargs_object_attributes( ", objattr=", cur_size
);
1816 static void dump_create_mutex_reply( const struct create_mutex_reply
*req
)
1818 fprintf( stderr
, " handle=%04x", req
->handle
);
1821 static void dump_release_mutex_request( const struct release_mutex_request
*req
)
1823 fprintf( stderr
, " handle=%04x", req
->handle
);
1826 static void dump_release_mutex_reply( const struct release_mutex_reply
*req
)
1828 fprintf( stderr
, " prev_count=%08x", req
->prev_count
);
1831 static void dump_open_mutex_request( const struct open_mutex_request
*req
)
1833 fprintf( stderr
, " access=%08x", req
->access
);
1834 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1835 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
1836 dump_varargs_unicode_str( ", name=", cur_size
);
1839 static void dump_open_mutex_reply( const struct open_mutex_reply
*req
)
1841 fprintf( stderr
, " handle=%04x", req
->handle
);
1844 static void dump_query_mutex_request( const struct query_mutex_request
*req
)
1846 fprintf( stderr
, " handle=%04x", req
->handle
);
1849 static void dump_query_mutex_reply( const struct query_mutex_reply
*req
)
1851 fprintf( stderr
, " count=%08x", req
->count
);
1852 fprintf( stderr
, ", owned=%d", req
->owned
);
1853 fprintf( stderr
, ", abandoned=%d", req
->abandoned
);
1856 static void dump_create_semaphore_request( const struct create_semaphore_request
*req
)
1858 fprintf( stderr
, " access=%08x", req
->access
);
1859 fprintf( stderr
, ", initial=%08x", req
->initial
);
1860 fprintf( stderr
, ", max=%08x", req
->max
);
1861 dump_varargs_object_attributes( ", objattr=", cur_size
);
1864 static void dump_create_semaphore_reply( const struct create_semaphore_reply
*req
)
1866 fprintf( stderr
, " handle=%04x", req
->handle
);
1869 static void dump_release_semaphore_request( const struct release_semaphore_request
*req
)
1871 fprintf( stderr
, " handle=%04x", req
->handle
);
1872 fprintf( stderr
, ", count=%08x", req
->count
);
1875 static void dump_release_semaphore_reply( const struct release_semaphore_reply
*req
)
1877 fprintf( stderr
, " prev_count=%08x", req
->prev_count
);
1880 static void dump_query_semaphore_request( const struct query_semaphore_request
*req
)
1882 fprintf( stderr
, " handle=%04x", req
->handle
);
1885 static void dump_query_semaphore_reply( const struct query_semaphore_reply
*req
)
1887 fprintf( stderr
, " current=%08x", req
->current
);
1888 fprintf( stderr
, ", max=%08x", req
->max
);
1891 static void dump_open_semaphore_request( const struct open_semaphore_request
*req
)
1893 fprintf( stderr
, " access=%08x", req
->access
);
1894 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1895 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
1896 dump_varargs_unicode_str( ", name=", cur_size
);
1899 static void dump_open_semaphore_reply( const struct open_semaphore_reply
*req
)
1901 fprintf( stderr
, " handle=%04x", req
->handle
);
1904 static void dump_create_file_request( const struct create_file_request
*req
)
1906 fprintf( stderr
, " access=%08x", req
->access
);
1907 fprintf( stderr
, ", sharing=%08x", req
->sharing
);
1908 fprintf( stderr
, ", create=%d", req
->create
);
1909 fprintf( stderr
, ", options=%08x", req
->options
);
1910 fprintf( stderr
, ", attrs=%08x", req
->attrs
);
1911 dump_varargs_object_attributes( ", objattr=", cur_size
);
1912 dump_varargs_string( ", filename=", cur_size
);
1915 static void dump_create_file_reply( const struct create_file_reply
*req
)
1917 fprintf( stderr
, " handle=%04x", req
->handle
);
1920 static void dump_open_file_object_request( const struct open_file_object_request
*req
)
1922 fprintf( stderr
, " access=%08x", req
->access
);
1923 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1924 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
1925 fprintf( stderr
, ", sharing=%08x", req
->sharing
);
1926 fprintf( stderr
, ", options=%08x", req
->options
);
1927 dump_varargs_unicode_str( ", filename=", cur_size
);
1930 static void dump_open_file_object_reply( const struct open_file_object_reply
*req
)
1932 fprintf( stderr
, " handle=%04x", req
->handle
);
1935 static void dump_alloc_file_handle_request( const struct alloc_file_handle_request
*req
)
1937 fprintf( stderr
, " access=%08x", req
->access
);
1938 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1939 fprintf( stderr
, ", fd=%d", req
->fd
);
1942 static void dump_alloc_file_handle_reply( const struct alloc_file_handle_reply
*req
)
1944 fprintf( stderr
, " handle=%04x", req
->handle
);
1947 static void dump_get_handle_unix_name_request( const struct get_handle_unix_name_request
*req
)
1949 fprintf( stderr
, " handle=%04x", req
->handle
);
1952 static void dump_get_handle_unix_name_reply( const struct get_handle_unix_name_reply
*req
)
1954 fprintf( stderr
, " name_len=%u", req
->name_len
);
1955 dump_varargs_string( ", name=", cur_size
);
1958 static void dump_get_handle_fd_request( const struct get_handle_fd_request
*req
)
1960 fprintf( stderr
, " handle=%04x", req
->handle
);
1963 static void dump_get_handle_fd_reply( const struct get_handle_fd_reply
*req
)
1965 fprintf( stderr
, " type=%d", req
->type
);
1966 fprintf( stderr
, ", cacheable=%d", req
->cacheable
);
1967 fprintf( stderr
, ", access=%08x", req
->access
);
1968 fprintf( stderr
, ", options=%08x", req
->options
);
1971 static void dump_get_directory_cache_entry_request( const struct get_directory_cache_entry_request
*req
)
1973 fprintf( stderr
, " handle=%04x", req
->handle
);
1976 static void dump_get_directory_cache_entry_reply( const struct get_directory_cache_entry_reply
*req
)
1978 fprintf( stderr
, " entry=%d", req
->entry
);
1979 dump_varargs_ints( ", free=", cur_size
);
1982 static void dump_flush_request( const struct flush_request
*req
)
1984 dump_async_data( " async=", &req
->async
);
1987 static void dump_flush_reply( const struct flush_reply
*req
)
1989 fprintf( stderr
, " event=%04x", req
->event
);
1992 static void dump_get_file_info_request( const struct get_file_info_request
*req
)
1994 fprintf( stderr
, " handle=%04x", req
->handle
);
1995 fprintf( stderr
, ", info_class=%08x", req
->info_class
);
1998 static void dump_get_file_info_reply( const struct get_file_info_reply
*req
)
2000 dump_varargs_bytes( " data=", cur_size
);
2003 static void dump_get_volume_info_request( const struct get_volume_info_request
*req
)
2005 fprintf( stderr
, " handle=%04x", req
->handle
);
2006 dump_async_data( ", async=", &req
->async
);
2007 fprintf( stderr
, ", info_class=%08x", req
->info_class
);
2010 static void dump_get_volume_info_reply( const struct get_volume_info_reply
*req
)
2012 fprintf( stderr
, " wait=%04x", req
->wait
);
2013 dump_varargs_bytes( ", data=", cur_size
);
2016 static void dump_lock_file_request( const struct lock_file_request
*req
)
2018 fprintf( stderr
, " handle=%04x", req
->handle
);
2019 dump_uint64( ", offset=", &req
->offset
);
2020 dump_uint64( ", count=", &req
->count
);
2021 fprintf( stderr
, ", shared=%d", req
->shared
);
2022 fprintf( stderr
, ", wait=%d", req
->wait
);
2025 static void dump_lock_file_reply( const struct lock_file_reply
*req
)
2027 fprintf( stderr
, " handle=%04x", req
->handle
);
2028 fprintf( stderr
, ", overlapped=%d", req
->overlapped
);
2031 static void dump_unlock_file_request( const struct unlock_file_request
*req
)
2033 fprintf( stderr
, " handle=%04x", req
->handle
);
2034 dump_uint64( ", offset=", &req
->offset
);
2035 dump_uint64( ", count=", &req
->count
);
2038 static void dump_recv_socket_request( const struct recv_socket_request
*req
)
2040 fprintf( stderr
, " oob=%d", req
->oob
);
2041 dump_async_data( ", async=", &req
->async
);
2042 fprintf( stderr
, ", force_async=%d", req
->force_async
);
2045 static void dump_recv_socket_reply( const struct recv_socket_reply
*req
)
2047 fprintf( stderr
, " wait=%04x", req
->wait
);
2048 fprintf( stderr
, ", options=%08x", req
->options
);
2049 fprintf( stderr
, ", nonblocking=%d", req
->nonblocking
);
2052 static void dump_send_socket_request( const struct send_socket_request
*req
)
2054 dump_async_data( " async=", &req
->async
);
2055 fprintf( stderr
, ", force_async=%d", req
->force_async
);
2058 static void dump_send_socket_reply( const struct send_socket_reply
*req
)
2060 fprintf( stderr
, " wait=%04x", req
->wait
);
2061 fprintf( stderr
, ", options=%08x", req
->options
);
2062 fprintf( stderr
, ", nonblocking=%d", req
->nonblocking
);
2065 static void dump_socket_send_icmp_id_request( const struct socket_send_icmp_id_request
*req
)
2067 fprintf( stderr
, " handle=%04x", req
->handle
);
2068 fprintf( stderr
, ", icmp_id=%04x", req
->icmp_id
);
2069 fprintf( stderr
, ", icmp_seq=%04x", req
->icmp_seq
);
2072 static void dump_socket_get_icmp_id_request( const struct socket_get_icmp_id_request
*req
)
2074 fprintf( stderr
, " handle=%04x", req
->handle
);
2075 fprintf( stderr
, ", icmp_seq=%04x", req
->icmp_seq
);
2078 static void dump_socket_get_icmp_id_reply( const struct socket_get_icmp_id_reply
*req
)
2080 fprintf( stderr
, " icmp_id=%04x", req
->icmp_id
);
2083 static void dump_get_next_console_request_request( const struct get_next_console_request_request
*req
)
2085 fprintf( stderr
, " handle=%04x", req
->handle
);
2086 fprintf( stderr
, ", signal=%d", req
->signal
);
2087 fprintf( stderr
, ", read=%d", req
->read
);
2088 fprintf( stderr
, ", status=%08x", req
->status
);
2089 dump_varargs_bytes( ", out_data=", cur_size
);
2092 static void dump_get_next_console_request_reply( const struct get_next_console_request_reply
*req
)
2094 fprintf( stderr
, " code=%08x", req
->code
);
2095 fprintf( stderr
, ", output=%08x", req
->output
);
2096 fprintf( stderr
, ", out_size=%u", req
->out_size
);
2097 dump_varargs_bytes( ", in_data=", cur_size
);
2100 static void dump_read_directory_changes_request( const struct read_directory_changes_request
*req
)
2102 fprintf( stderr
, " filter=%08x", req
->filter
);
2103 fprintf( stderr
, ", subtree=%d", req
->subtree
);
2104 fprintf( stderr
, ", want_data=%d", req
->want_data
);
2105 dump_async_data( ", async=", &req
->async
);
2108 static void dump_read_change_request( const struct read_change_request
*req
)
2110 fprintf( stderr
, " handle=%04x", req
->handle
);
2113 static void dump_read_change_reply( const struct read_change_reply
*req
)
2115 dump_varargs_filesystem_event( " events=", cur_size
);
2118 static void dump_create_mapping_request( const struct create_mapping_request
*req
)
2120 fprintf( stderr
, " access=%08x", req
->access
);
2121 fprintf( stderr
, ", flags=%08x", req
->flags
);
2122 fprintf( stderr
, ", file_access=%08x", req
->file_access
);
2123 dump_uint64( ", size=", &req
->size
);
2124 fprintf( stderr
, ", file_handle=%04x", req
->file_handle
);
2125 dump_varargs_object_attributes( ", objattr=", cur_size
);
2128 static void dump_create_mapping_reply( const struct create_mapping_reply
*req
)
2130 fprintf( stderr
, " handle=%04x", req
->handle
);
2133 static void dump_open_mapping_request( const struct open_mapping_request
*req
)
2135 fprintf( stderr
, " access=%08x", req
->access
);
2136 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
2137 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
2138 dump_varargs_unicode_str( ", name=", cur_size
);
2141 static void dump_open_mapping_reply( const struct open_mapping_reply
*req
)
2143 fprintf( stderr
, " handle=%04x", req
->handle
);
2146 static void dump_get_mapping_info_request( const struct get_mapping_info_request
*req
)
2148 fprintf( stderr
, " handle=%04x", req
->handle
);
2149 fprintf( stderr
, ", access=%08x", req
->access
);
2152 static void dump_get_mapping_info_reply( const struct get_mapping_info_reply
*req
)
2154 dump_uint64( " size=", &req
->size
);
2155 fprintf( stderr
, ", flags=%08x", req
->flags
);
2156 fprintf( stderr
, ", shared_file=%04x", req
->shared_file
);
2157 fprintf( stderr
, ", total=%u", req
->total
);
2158 dump_varargs_pe_image_info( ", image=", cur_size
);
2159 dump_varargs_unicode_str( ", name=", cur_size
);
2162 static void dump_map_view_request( const struct map_view_request
*req
)
2164 fprintf( stderr
, " mapping=%04x", req
->mapping
);
2165 fprintf( stderr
, ", access=%08x", req
->access
);
2166 dump_uint64( ", base=", &req
->base
);
2167 dump_uint64( ", size=", &req
->size
);
2168 dump_uint64( ", start=", &req
->start
);
2169 dump_varargs_pe_image_info( ", image=", cur_size
);
2170 dump_varargs_unicode_str( ", name=", cur_size
);
2173 static void dump_unmap_view_request( const struct unmap_view_request
*req
)
2175 dump_uint64( " base=", &req
->base
);
2178 static void dump_get_mapping_committed_range_request( const struct get_mapping_committed_range_request
*req
)
2180 dump_uint64( " base=", &req
->base
);
2181 dump_uint64( ", offset=", &req
->offset
);
2184 static void dump_get_mapping_committed_range_reply( const struct get_mapping_committed_range_reply
*req
)
2186 dump_uint64( " size=", &req
->size
);
2187 fprintf( stderr
, ", committed=%d", req
->committed
);
2190 static void dump_add_mapping_committed_range_request( const struct add_mapping_committed_range_request
*req
)
2192 dump_uint64( " base=", &req
->base
);
2193 dump_uint64( ", offset=", &req
->offset
);
2194 dump_uint64( ", size=", &req
->size
);
2197 static void dump_is_same_mapping_request( const struct is_same_mapping_request
*req
)
2199 dump_uint64( " base1=", &req
->base1
);
2200 dump_uint64( ", base2=", &req
->base2
);
2203 static void dump_get_mapping_filename_request( const struct get_mapping_filename_request
*req
)
2205 fprintf( stderr
, " process=%04x", req
->process
);
2206 dump_uint64( ", addr=", &req
->addr
);
2209 static void dump_get_mapping_filename_reply( const struct get_mapping_filename_reply
*req
)
2211 fprintf( stderr
, " len=%u", req
->len
);
2212 dump_varargs_unicode_str( ", filename=", cur_size
);
2215 static void dump_list_processes_request( const struct list_processes_request
*req
)
2219 static void dump_list_processes_reply( const struct list_processes_reply
*req
)
2221 fprintf( stderr
, " info_size=%u", req
->info_size
);
2222 fprintf( stderr
, ", process_count=%d", req
->process_count
);
2223 fprintf( stderr
, ", total_thread_count=%d", req
->total_thread_count
);
2224 fprintf( stderr
, ", total_name_len=%u", req
->total_name_len
);
2225 dump_varargs_process_info( ", data=", min(cur_size
,req
->info_size
) );
2228 static void dump_create_debug_obj_request( const struct create_debug_obj_request
*req
)
2230 fprintf( stderr
, " access=%08x", req
->access
);
2231 fprintf( stderr
, ", flags=%08x", req
->flags
);
2232 dump_varargs_object_attributes( ", objattr=", cur_size
);
2235 static void dump_create_debug_obj_reply( const struct create_debug_obj_reply
*req
)
2237 fprintf( stderr
, " handle=%04x", req
->handle
);
2240 static void dump_wait_debug_event_request( const struct wait_debug_event_request
*req
)
2242 fprintf( stderr
, " debug=%04x", req
->debug
);
2245 static void dump_wait_debug_event_reply( const struct wait_debug_event_reply
*req
)
2247 fprintf( stderr
, " pid=%04x", req
->pid
);
2248 fprintf( stderr
, ", tid=%04x", req
->tid
);
2249 dump_varargs_debug_event( ", event=", cur_size
);
2252 static void dump_queue_exception_event_request( const struct queue_exception_event_request
*req
)
2254 fprintf( stderr
, " first=%d", req
->first
);
2255 fprintf( stderr
, ", code=%08x", req
->code
);
2256 fprintf( stderr
, ", flags=%08x", req
->flags
);
2257 dump_uint64( ", record=", &req
->record
);
2258 dump_uint64( ", address=", &req
->address
);
2259 fprintf( stderr
, ", len=%u", req
->len
);
2260 dump_varargs_uints64( ", params=", min(cur_size
,req
->len
) );
2263 static void dump_queue_exception_event_reply( const struct queue_exception_event_reply
*req
)
2265 fprintf( stderr
, " handle=%04x", req
->handle
);
2268 static void dump_get_exception_status_request( const struct get_exception_status_request
*req
)
2270 fprintf( stderr
, " handle=%04x", req
->handle
);
2273 static void dump_continue_debug_event_request( const struct continue_debug_event_request
*req
)
2275 fprintf( stderr
, " debug=%04x", req
->debug
);
2276 fprintf( stderr
, ", pid=%04x", req
->pid
);
2277 fprintf( stderr
, ", tid=%04x", req
->tid
);
2278 fprintf( stderr
, ", status=%08x", req
->status
);
2281 static void dump_debug_process_request( const struct debug_process_request
*req
)
2283 fprintf( stderr
, " handle=%04x", req
->handle
);
2284 fprintf( stderr
, ", debug=%04x", req
->debug
);
2285 fprintf( stderr
, ", attach=%d", req
->attach
);
2288 static void dump_set_debug_obj_info_request( const struct set_debug_obj_info_request
*req
)
2290 fprintf( stderr
, " debug=%04x", req
->debug
);
2291 fprintf( stderr
, ", flags=%08x", req
->flags
);
2294 static void dump_read_process_memory_request( const struct read_process_memory_request
*req
)
2296 fprintf( stderr
, " handle=%04x", req
->handle
);
2297 dump_uint64( ", addr=", &req
->addr
);
2300 static void dump_read_process_memory_reply( const struct read_process_memory_reply
*req
)
2302 dump_varargs_bytes( " data=", cur_size
);
2305 static void dump_write_process_memory_request( const struct write_process_memory_request
*req
)
2307 fprintf( stderr
, " handle=%04x", req
->handle
);
2308 dump_uint64( ", addr=", &req
->addr
);
2309 dump_varargs_bytes( ", data=", cur_size
);
2312 static void dump_create_key_request( const struct create_key_request
*req
)
2314 fprintf( stderr
, " access=%08x", req
->access
);
2315 fprintf( stderr
, ", options=%08x", req
->options
);
2316 dump_varargs_object_attributes( ", objattr=", cur_size
);
2317 dump_varargs_unicode_str( ", class=", cur_size
);
2320 static void dump_create_key_reply( const struct create_key_reply
*req
)
2322 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2325 static void dump_open_key_request( const struct open_key_request
*req
)
2327 fprintf( stderr
, " parent=%04x", req
->parent
);
2328 fprintf( stderr
, ", access=%08x", req
->access
);
2329 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
2330 dump_varargs_unicode_str( ", name=", cur_size
);
2333 static void dump_open_key_reply( const struct open_key_reply
*req
)
2335 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2338 static void dump_delete_key_request( const struct delete_key_request
*req
)
2340 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2343 static void dump_flush_key_request( const struct flush_key_request
*req
)
2345 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2348 static void dump_enum_key_request( const struct enum_key_request
*req
)
2350 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2351 fprintf( stderr
, ", index=%d", req
->index
);
2352 fprintf( stderr
, ", info_class=%d", req
->info_class
);
2355 static void dump_enum_key_reply( const struct enum_key_reply
*req
)
2357 fprintf( stderr
, " subkeys=%d", req
->subkeys
);
2358 fprintf( stderr
, ", max_subkey=%d", req
->max_subkey
);
2359 fprintf( stderr
, ", max_class=%d", req
->max_class
);
2360 fprintf( stderr
, ", values=%d", req
->values
);
2361 fprintf( stderr
, ", max_value=%d", req
->max_value
);
2362 fprintf( stderr
, ", max_data=%d", req
->max_data
);
2363 dump_timeout( ", modif=", &req
->modif
);
2364 fprintf( stderr
, ", total=%u", req
->total
);
2365 fprintf( stderr
, ", namelen=%u", req
->namelen
);
2366 dump_varargs_unicode_str( ", name=", min(cur_size
,req
->namelen
) );
2367 dump_varargs_unicode_str( ", class=", cur_size
);
2370 static void dump_set_key_value_request( const struct set_key_value_request
*req
)
2372 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2373 fprintf( stderr
, ", type=%d", req
->type
);
2374 fprintf( stderr
, ", namelen=%u", req
->namelen
);
2375 dump_varargs_unicode_str( ", name=", min(cur_size
,req
->namelen
) );
2376 dump_varargs_bytes( ", data=", cur_size
);
2379 static void dump_get_key_value_request( const struct get_key_value_request
*req
)
2381 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2382 dump_varargs_unicode_str( ", name=", cur_size
);
2385 static void dump_get_key_value_reply( const struct get_key_value_reply
*req
)
2387 fprintf( stderr
, " type=%d", req
->type
);
2388 fprintf( stderr
, ", total=%u", req
->total
);
2389 dump_varargs_bytes( ", data=", cur_size
);
2392 static void dump_enum_key_value_request( const struct enum_key_value_request
*req
)
2394 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2395 fprintf( stderr
, ", index=%d", req
->index
);
2396 fprintf( stderr
, ", info_class=%d", req
->info_class
);
2399 static void dump_enum_key_value_reply( const struct enum_key_value_reply
*req
)
2401 fprintf( stderr
, " type=%d", req
->type
);
2402 fprintf( stderr
, ", total=%u", req
->total
);
2403 fprintf( stderr
, ", namelen=%u", req
->namelen
);
2404 dump_varargs_unicode_str( ", name=", min(cur_size
,req
->namelen
) );
2405 dump_varargs_bytes( ", data=", cur_size
);
2408 static void dump_delete_key_value_request( const struct delete_key_value_request
*req
)
2410 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2411 dump_varargs_unicode_str( ", name=", cur_size
);
2414 static void dump_load_registry_request( const struct load_registry_request
*req
)
2416 fprintf( stderr
, " file=%04x", req
->file
);
2417 dump_varargs_object_attributes( ", objattr=", cur_size
);
2420 static void dump_unload_registry_request( const struct unload_registry_request
*req
)
2422 fprintf( stderr
, " parent=%04x", req
->parent
);
2423 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
2424 dump_varargs_unicode_str( ", name=", cur_size
);
2427 static void dump_save_registry_request( const struct save_registry_request
*req
)
2429 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2430 fprintf( stderr
, ", file=%04x", req
->file
);
2433 static void dump_set_registry_notification_request( const struct set_registry_notification_request
*req
)
2435 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2436 fprintf( stderr
, ", event=%04x", req
->event
);
2437 fprintf( stderr
, ", subtree=%d", req
->subtree
);
2438 fprintf( stderr
, ", filter=%08x", req
->filter
);
2441 static void dump_rename_key_request( const struct rename_key_request
*req
)
2443 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2444 dump_varargs_unicode_str( ", name=", cur_size
);
2447 static void dump_create_timer_request( const struct create_timer_request
*req
)
2449 fprintf( stderr
, " access=%08x", req
->access
);
2450 fprintf( stderr
, ", manual=%d", req
->manual
);
2451 dump_varargs_object_attributes( ", objattr=", cur_size
);
2454 static void dump_create_timer_reply( const struct create_timer_reply
*req
)
2456 fprintf( stderr
, " handle=%04x", req
->handle
);
2459 static void dump_open_timer_request( const struct open_timer_request
*req
)
2461 fprintf( stderr
, " access=%08x", req
->access
);
2462 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
2463 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
2464 dump_varargs_unicode_str( ", name=", cur_size
);
2467 static void dump_open_timer_reply( const struct open_timer_reply
*req
)
2469 fprintf( stderr
, " handle=%04x", req
->handle
);
2472 static void dump_set_timer_request( const struct set_timer_request
*req
)
2474 fprintf( stderr
, " handle=%04x", req
->handle
);
2475 dump_timeout( ", expire=", &req
->expire
);
2476 dump_uint64( ", callback=", &req
->callback
);
2477 dump_uint64( ", arg=", &req
->arg
);
2478 fprintf( stderr
, ", period=%d", req
->period
);
2481 static void dump_set_timer_reply( const struct set_timer_reply
*req
)
2483 fprintf( stderr
, " signaled=%d", req
->signaled
);
2486 static void dump_cancel_timer_request( const struct cancel_timer_request
*req
)
2488 fprintf( stderr
, " handle=%04x", req
->handle
);
2491 static void dump_cancel_timer_reply( const struct cancel_timer_reply
*req
)
2493 fprintf( stderr
, " signaled=%d", req
->signaled
);
2496 static void dump_get_timer_info_request( const struct get_timer_info_request
*req
)
2498 fprintf( stderr
, " handle=%04x", req
->handle
);
2501 static void dump_get_timer_info_reply( const struct get_timer_info_reply
*req
)
2503 dump_timeout( " when=", &req
->when
);
2504 fprintf( stderr
, ", signaled=%d", req
->signaled
);
2507 static void dump_get_thread_context_request( const struct get_thread_context_request
*req
)
2509 fprintf( stderr
, " handle=%04x", req
->handle
);
2510 fprintf( stderr
, ", context=%04x", req
->context
);
2511 fprintf( stderr
, ", flags=%08x", req
->flags
);
2512 fprintf( stderr
, ", machine=%04x", req
->machine
);
2515 static void dump_get_thread_context_reply( const struct get_thread_context_reply
*req
)
2517 fprintf( stderr
, " self=%d", req
->self
);
2518 fprintf( stderr
, ", handle=%04x", req
->handle
);
2519 dump_varargs_contexts( ", contexts=", cur_size
);
2522 static void dump_set_thread_context_request( const struct set_thread_context_request
*req
)
2524 fprintf( stderr
, " handle=%04x", req
->handle
);
2525 dump_varargs_contexts( ", contexts=", cur_size
);
2528 static void dump_set_thread_context_reply( const struct set_thread_context_reply
*req
)
2530 fprintf( stderr
, " self=%d", req
->self
);
2533 static void dump_get_selector_entry_request( const struct get_selector_entry_request
*req
)
2535 fprintf( stderr
, " handle=%04x", req
->handle
);
2536 fprintf( stderr
, ", entry=%d", req
->entry
);
2539 static void dump_get_selector_entry_reply( const struct get_selector_entry_reply
*req
)
2541 fprintf( stderr
, " base=%08x", req
->base
);
2542 fprintf( stderr
, ", limit=%08x", req
->limit
);
2543 fprintf( stderr
, ", flags=%02x", req
->flags
);
2546 static void dump_add_atom_request( const struct add_atom_request
*req
)
2548 dump_varargs_unicode_str( " name=", cur_size
);
2551 static void dump_add_atom_reply( const struct add_atom_reply
*req
)
2553 fprintf( stderr
, " atom=%04x", req
->atom
);
2556 static void dump_delete_atom_request( const struct delete_atom_request
*req
)
2558 fprintf( stderr
, " atom=%04x", req
->atom
);
2561 static void dump_find_atom_request( const struct find_atom_request
*req
)
2563 dump_varargs_unicode_str( " name=", cur_size
);
2566 static void dump_find_atom_reply( const struct find_atom_reply
*req
)
2568 fprintf( stderr
, " atom=%04x", req
->atom
);
2571 static void dump_get_atom_information_request( const struct get_atom_information_request
*req
)
2573 fprintf( stderr
, " atom=%04x", req
->atom
);
2576 static void dump_get_atom_information_reply( const struct get_atom_information_reply
*req
)
2578 fprintf( stderr
, " count=%d", req
->count
);
2579 fprintf( stderr
, ", pinned=%d", req
->pinned
);
2580 fprintf( stderr
, ", total=%u", req
->total
);
2581 dump_varargs_unicode_str( ", name=", cur_size
);
2584 static void dump_get_msg_queue_request( const struct get_msg_queue_request
*req
)
2588 static void dump_get_msg_queue_reply( const struct get_msg_queue_reply
*req
)
2590 fprintf( stderr
, " handle=%04x", req
->handle
);
2593 static void dump_set_queue_fd_request( const struct set_queue_fd_request
*req
)
2595 fprintf( stderr
, " handle=%04x", req
->handle
);
2598 static void dump_set_queue_mask_request( const struct set_queue_mask_request
*req
)
2600 fprintf( stderr
, " wake_mask=%08x", req
->wake_mask
);
2601 fprintf( stderr
, ", changed_mask=%08x", req
->changed_mask
);
2602 fprintf( stderr
, ", skip_wait=%d", req
->skip_wait
);
2605 static void dump_set_queue_mask_reply( const struct set_queue_mask_reply
*req
)
2607 fprintf( stderr
, " wake_bits=%08x", req
->wake_bits
);
2608 fprintf( stderr
, ", changed_bits=%08x", req
->changed_bits
);
2611 static void dump_get_queue_status_request( const struct get_queue_status_request
*req
)
2613 fprintf( stderr
, " clear_bits=%08x", req
->clear_bits
);
2616 static void dump_get_queue_status_reply( const struct get_queue_status_reply
*req
)
2618 fprintf( stderr
, " wake_bits=%08x", req
->wake_bits
);
2619 fprintf( stderr
, ", changed_bits=%08x", req
->changed_bits
);
2622 static void dump_get_process_idle_event_request( const struct get_process_idle_event_request
*req
)
2624 fprintf( stderr
, " handle=%04x", req
->handle
);
2627 static void dump_get_process_idle_event_reply( const struct get_process_idle_event_reply
*req
)
2629 fprintf( stderr
, " event=%04x", req
->event
);
2632 static void dump_send_message_request( const struct send_message_request
*req
)
2634 fprintf( stderr
, " id=%04x", req
->id
);
2635 fprintf( stderr
, ", type=%d", req
->type
);
2636 fprintf( stderr
, ", flags=%d", req
->flags
);
2637 fprintf( stderr
, ", win=%08x", req
->win
);
2638 fprintf( stderr
, ", msg=%08x", req
->msg
);
2639 dump_uint64( ", wparam=", &req
->wparam
);
2640 dump_uint64( ", lparam=", &req
->lparam
);
2641 dump_timeout( ", timeout=", &req
->timeout
);
2642 dump_varargs_message_data( ", data=", cur_size
);
2645 static void dump_post_quit_message_request( const struct post_quit_message_request
*req
)
2647 fprintf( stderr
, " exit_code=%d", req
->exit_code
);
2650 static void dump_send_hardware_message_request( const struct send_hardware_message_request
*req
)
2652 fprintf( stderr
, " win=%08x", req
->win
);
2653 dump_hw_input( ", input=", &req
->input
);
2654 fprintf( stderr
, ", flags=%08x", req
->flags
);
2655 dump_varargs_bytes( ", report=", cur_size
);
2658 static void dump_send_hardware_message_reply( const struct send_hardware_message_reply
*req
)
2660 fprintf( stderr
, " wait=%d", req
->wait
);
2661 fprintf( stderr
, ", prev_x=%d", req
->prev_x
);
2662 fprintf( stderr
, ", prev_y=%d", req
->prev_y
);
2663 fprintf( stderr
, ", new_x=%d", req
->new_x
);
2664 fprintf( stderr
, ", new_y=%d", req
->new_y
);
2665 dump_varargs_bytes( ", keystate=", cur_size
);
2668 static void dump_get_message_request( const struct get_message_request
*req
)
2670 fprintf( stderr
, " flags=%08x", req
->flags
);
2671 fprintf( stderr
, ", get_win=%08x", req
->get_win
);
2672 fprintf( stderr
, ", get_first=%08x", req
->get_first
);
2673 fprintf( stderr
, ", get_last=%08x", req
->get_last
);
2674 fprintf( stderr
, ", hw_id=%08x", req
->hw_id
);
2675 fprintf( stderr
, ", wake_mask=%08x", req
->wake_mask
);
2676 fprintf( stderr
, ", changed_mask=%08x", req
->changed_mask
);
2679 static void dump_get_message_reply( const struct get_message_reply
*req
)
2681 fprintf( stderr
, " win=%08x", req
->win
);
2682 fprintf( stderr
, ", msg=%08x", req
->msg
);
2683 dump_uint64( ", wparam=", &req
->wparam
);
2684 dump_uint64( ", lparam=", &req
->lparam
);
2685 fprintf( stderr
, ", type=%d", req
->type
);
2686 fprintf( stderr
, ", x=%d", req
->x
);
2687 fprintf( stderr
, ", y=%d", req
->y
);
2688 fprintf( stderr
, ", time=%08x", req
->time
);
2689 fprintf( stderr
, ", active_hooks=%08x", req
->active_hooks
);
2690 fprintf( stderr
, ", total=%u", req
->total
);
2691 dump_varargs_message_data( ", data=", cur_size
);
2694 static void dump_reply_message_request( const struct reply_message_request
*req
)
2696 fprintf( stderr
, " remove=%d", req
->remove
);
2697 dump_uint64( ", result=", &req
->result
);
2698 dump_varargs_bytes( ", data=", cur_size
);
2701 static void dump_accept_hardware_message_request( const struct accept_hardware_message_request
*req
)
2703 fprintf( stderr
, " hw_id=%08x", req
->hw_id
);
2706 static void dump_get_message_reply_request( const struct get_message_reply_request
*req
)
2708 fprintf( stderr
, " cancel=%d", req
->cancel
);
2711 static void dump_get_message_reply_reply( const struct get_message_reply_reply
*req
)
2713 dump_uint64( " result=", &req
->result
);
2714 dump_varargs_bytes( ", data=", cur_size
);
2717 static void dump_set_win_timer_request( const struct set_win_timer_request
*req
)
2719 fprintf( stderr
, " win=%08x", req
->win
);
2720 fprintf( stderr
, ", msg=%08x", req
->msg
);
2721 fprintf( stderr
, ", rate=%08x", req
->rate
);
2722 dump_uint64( ", id=", &req
->id
);
2723 dump_uint64( ", lparam=", &req
->lparam
);
2726 static void dump_set_win_timer_reply( const struct set_win_timer_reply
*req
)
2728 dump_uint64( " id=", &req
->id
);
2731 static void dump_kill_win_timer_request( const struct kill_win_timer_request
*req
)
2733 fprintf( stderr
, " win=%08x", req
->win
);
2734 dump_uint64( ", id=", &req
->id
);
2735 fprintf( stderr
, ", msg=%08x", req
->msg
);
2738 static void dump_is_window_hung_request( const struct is_window_hung_request
*req
)
2740 fprintf( stderr
, " win=%08x", req
->win
);
2743 static void dump_is_window_hung_reply( const struct is_window_hung_reply
*req
)
2745 fprintf( stderr
, " is_hung=%d", req
->is_hung
);
2748 static void dump_get_serial_info_request( const struct get_serial_info_request
*req
)
2750 fprintf( stderr
, " handle=%04x", req
->handle
);
2751 fprintf( stderr
, ", flags=%d", req
->flags
);
2754 static void dump_get_serial_info_reply( const struct get_serial_info_reply
*req
)
2756 fprintf( stderr
, " eventmask=%08x", req
->eventmask
);
2757 fprintf( stderr
, ", cookie=%08x", req
->cookie
);
2758 fprintf( stderr
, ", pending_write=%08x", req
->pending_write
);
2761 static void dump_set_serial_info_request( const struct set_serial_info_request
*req
)
2763 fprintf( stderr
, " handle=%04x", req
->handle
);
2764 fprintf( stderr
, ", flags=%d", req
->flags
);
2767 static void dump_cancel_sync_request( const struct cancel_sync_request
*req
)
2769 fprintf( stderr
, " handle=%04x", req
->handle
);
2770 dump_uint64( ", iosb=", &req
->iosb
);
2773 static void dump_register_async_request( const struct register_async_request
*req
)
2775 fprintf( stderr
, " type=%d", req
->type
);
2776 dump_async_data( ", async=", &req
->async
);
2777 fprintf( stderr
, ", count=%d", req
->count
);
2780 static void dump_cancel_async_request( const struct cancel_async_request
*req
)
2782 fprintf( stderr
, " handle=%04x", req
->handle
);
2783 dump_uint64( ", iosb=", &req
->iosb
);
2784 fprintf( stderr
, ", only_thread=%d", req
->only_thread
);
2787 static void dump_get_async_result_request( const struct get_async_result_request
*req
)
2789 dump_uint64( " user_arg=", &req
->user_arg
);
2792 static void dump_get_async_result_reply( const struct get_async_result_reply
*req
)
2794 dump_varargs_bytes( " out_data=", cur_size
);
2797 static void dump_set_async_direct_result_request( const struct set_async_direct_result_request
*req
)
2799 fprintf( stderr
, " handle=%04x", req
->handle
);
2800 dump_uint64( ", information=", &req
->information
);
2801 fprintf( stderr
, ", status=%08x", req
->status
);
2802 fprintf( stderr
, ", mark_pending=%d", req
->mark_pending
);
2805 static void dump_set_async_direct_result_reply( const struct set_async_direct_result_reply
*req
)
2807 fprintf( stderr
, " handle=%04x", req
->handle
);
2810 static void dump_read_request( const struct read_request
*req
)
2812 dump_async_data( " async=", &req
->async
);
2813 dump_uint64( ", pos=", &req
->pos
);
2816 static void dump_read_reply( const struct read_reply
*req
)
2818 fprintf( stderr
, " wait=%04x", req
->wait
);
2819 fprintf( stderr
, ", options=%08x", req
->options
);
2820 dump_varargs_bytes( ", data=", cur_size
);
2823 static void dump_write_request( const struct write_request
*req
)
2825 dump_async_data( " async=", &req
->async
);
2826 dump_uint64( ", pos=", &req
->pos
);
2827 dump_varargs_bytes( ", data=", cur_size
);
2830 static void dump_write_reply( const struct write_reply
*req
)
2832 fprintf( stderr
, " wait=%04x", req
->wait
);
2833 fprintf( stderr
, ", options=%08x", req
->options
);
2834 fprintf( stderr
, ", size=%u", req
->size
);
2837 static void dump_ioctl_request( const struct ioctl_request
*req
)
2839 dump_ioctl_code( " code=", &req
->code
);
2840 dump_async_data( ", async=", &req
->async
);
2841 dump_varargs_bytes( ", in_data=", cur_size
);
2844 static void dump_ioctl_reply( const struct ioctl_reply
*req
)
2846 fprintf( stderr
, " wait=%04x", req
->wait
);
2847 fprintf( stderr
, ", options=%08x", req
->options
);
2848 dump_varargs_bytes( ", out_data=", cur_size
);
2851 static void dump_set_irp_result_request( const struct set_irp_result_request
*req
)
2853 fprintf( stderr
, " handle=%04x", req
->handle
);
2854 fprintf( stderr
, ", status=%08x", req
->status
);
2855 fprintf( stderr
, ", size=%u", req
->size
);
2856 dump_varargs_bytes( ", data=", cur_size
);
2859 static void dump_create_named_pipe_request( const struct create_named_pipe_request
*req
)
2861 fprintf( stderr
, " access=%08x", req
->access
);
2862 fprintf( stderr
, ", options=%08x", req
->options
);
2863 fprintf( stderr
, ", sharing=%08x", req
->sharing
);
2864 fprintf( stderr
, ", disposition=%08x", req
->disposition
);
2865 fprintf( stderr
, ", maxinstances=%08x", req
->maxinstances
);
2866 fprintf( stderr
, ", outsize=%08x", req
->outsize
);
2867 fprintf( stderr
, ", insize=%08x", req
->insize
);
2868 dump_timeout( ", timeout=", &req
->timeout
);
2869 fprintf( stderr
, ", flags=%08x", req
->flags
);
2870 dump_varargs_object_attributes( ", objattr=", cur_size
);
2873 static void dump_create_named_pipe_reply( const struct create_named_pipe_reply
*req
)
2875 fprintf( stderr
, " handle=%04x", req
->handle
);
2876 fprintf( stderr
, ", created=%d", req
->created
);
2879 static void dump_set_named_pipe_info_request( const struct set_named_pipe_info_request
*req
)
2881 fprintf( stderr
, " handle=%04x", req
->handle
);
2882 fprintf( stderr
, ", flags=%08x", req
->flags
);
2885 static void dump_create_window_request( const struct create_window_request
*req
)
2887 fprintf( stderr
, " parent=%08x", req
->parent
);
2888 fprintf( stderr
, ", owner=%08x", req
->owner
);
2889 fprintf( stderr
, ", atom=%04x", req
->atom
);
2890 dump_uint64( ", instance=", &req
->instance
);
2891 fprintf( stderr
, ", dpi=%d", req
->dpi
);
2892 fprintf( stderr
, ", awareness=%d", req
->awareness
);
2893 fprintf( stderr
, ", style=%08x", req
->style
);
2894 fprintf( stderr
, ", ex_style=%08x", req
->ex_style
);
2895 dump_varargs_unicode_str( ", class=", cur_size
);
2898 static void dump_create_window_reply( const struct create_window_reply
*req
)
2900 fprintf( stderr
, " handle=%08x", req
->handle
);
2901 fprintf( stderr
, ", parent=%08x", req
->parent
);
2902 fprintf( stderr
, ", owner=%08x", req
->owner
);
2903 fprintf( stderr
, ", extra=%d", req
->extra
);
2904 dump_uint64( ", class_ptr=", &req
->class_ptr
);
2905 fprintf( stderr
, ", dpi=%d", req
->dpi
);
2906 fprintf( stderr
, ", awareness=%d", req
->awareness
);
2909 static void dump_destroy_window_request( const struct destroy_window_request
*req
)
2911 fprintf( stderr
, " handle=%08x", req
->handle
);
2914 static void dump_get_desktop_window_request( const struct get_desktop_window_request
*req
)
2916 fprintf( stderr
, " force=%d", req
->force
);
2919 static void dump_get_desktop_window_reply( const struct get_desktop_window_reply
*req
)
2921 fprintf( stderr
, " top_window=%08x", req
->top_window
);
2922 fprintf( stderr
, ", msg_window=%08x", req
->msg_window
);
2925 static void dump_set_window_owner_request( const struct set_window_owner_request
*req
)
2927 fprintf( stderr
, " handle=%08x", req
->handle
);
2928 fprintf( stderr
, ", owner=%08x", req
->owner
);
2931 static void dump_set_window_owner_reply( const struct set_window_owner_reply
*req
)
2933 fprintf( stderr
, " full_owner=%08x", req
->full_owner
);
2934 fprintf( stderr
, ", prev_owner=%08x", req
->prev_owner
);
2937 static void dump_get_window_info_request( const struct get_window_info_request
*req
)
2939 fprintf( stderr
, " handle=%08x", req
->handle
);
2942 static void dump_get_window_info_reply( const struct get_window_info_reply
*req
)
2944 fprintf( stderr
, " full_handle=%08x", req
->full_handle
);
2945 fprintf( stderr
, ", last_active=%08x", req
->last_active
);
2946 fprintf( stderr
, ", pid=%04x", req
->pid
);
2947 fprintf( stderr
, ", tid=%04x", req
->tid
);
2948 fprintf( stderr
, ", atom=%04x", req
->atom
);
2949 fprintf( stderr
, ", is_unicode=%d", req
->is_unicode
);
2950 fprintf( stderr
, ", dpi=%d", req
->dpi
);
2951 fprintf( stderr
, ", awareness=%d", req
->awareness
);
2954 static void dump_set_window_info_request( const struct set_window_info_request
*req
)
2956 fprintf( stderr
, " flags=%04x", req
->flags
);
2957 fprintf( stderr
, ", is_unicode=%d", req
->is_unicode
);
2958 fprintf( stderr
, ", handle=%08x", req
->handle
);
2959 fprintf( stderr
, ", style=%08x", req
->style
);
2960 fprintf( stderr
, ", ex_style=%08x", req
->ex_style
);
2961 fprintf( stderr
, ", extra_size=%u", req
->extra_size
);
2962 dump_uint64( ", instance=", &req
->instance
);
2963 dump_uint64( ", user_data=", &req
->user_data
);
2964 dump_uint64( ", extra_value=", &req
->extra_value
);
2965 fprintf( stderr
, ", extra_offset=%d", req
->extra_offset
);
2968 static void dump_set_window_info_reply( const struct set_window_info_reply
*req
)
2970 fprintf( stderr
, " old_style=%08x", req
->old_style
);
2971 fprintf( stderr
, ", old_ex_style=%08x", req
->old_ex_style
);
2972 dump_uint64( ", old_instance=", &req
->old_instance
);
2973 dump_uint64( ", old_user_data=", &req
->old_user_data
);
2974 dump_uint64( ", old_extra_value=", &req
->old_extra_value
);
2975 dump_uint64( ", old_id=", &req
->old_id
);
2978 static void dump_set_parent_request( const struct set_parent_request
*req
)
2980 fprintf( stderr
, " handle=%08x", req
->handle
);
2981 fprintf( stderr
, ", parent=%08x", req
->parent
);
2984 static void dump_set_parent_reply( const struct set_parent_reply
*req
)
2986 fprintf( stderr
, " old_parent=%08x", req
->old_parent
);
2987 fprintf( stderr
, ", full_parent=%08x", req
->full_parent
);
2988 fprintf( stderr
, ", dpi=%d", req
->dpi
);
2989 fprintf( stderr
, ", awareness=%d", req
->awareness
);
2992 static void dump_get_window_parents_request( const struct get_window_parents_request
*req
)
2994 fprintf( stderr
, " handle=%08x", req
->handle
);
2997 static void dump_get_window_parents_reply( const struct get_window_parents_reply
*req
)
2999 fprintf( stderr
, " count=%d", req
->count
);
3000 dump_varargs_user_handles( ", parents=", cur_size
);
3003 static void dump_get_window_children_request( const struct get_window_children_request
*req
)
3005 fprintf( stderr
, " desktop=%04x", req
->desktop
);
3006 fprintf( stderr
, ", parent=%08x", req
->parent
);
3007 fprintf( stderr
, ", atom=%04x", req
->atom
);
3008 fprintf( stderr
, ", tid=%04x", req
->tid
);
3009 dump_varargs_unicode_str( ", class=", cur_size
);
3012 static void dump_get_window_children_reply( const struct get_window_children_reply
*req
)
3014 fprintf( stderr
, " count=%d", req
->count
);
3015 dump_varargs_user_handles( ", children=", cur_size
);
3018 static void dump_get_window_children_from_point_request( const struct get_window_children_from_point_request
*req
)
3020 fprintf( stderr
, " parent=%08x", req
->parent
);
3021 fprintf( stderr
, ", x=%d", req
->x
);
3022 fprintf( stderr
, ", y=%d", req
->y
);
3023 fprintf( stderr
, ", dpi=%d", req
->dpi
);
3026 static void dump_get_window_children_from_point_reply( const struct get_window_children_from_point_reply
*req
)
3028 fprintf( stderr
, " count=%d", req
->count
);
3029 dump_varargs_user_handles( ", children=", cur_size
);
3032 static void dump_get_window_tree_request( const struct get_window_tree_request
*req
)
3034 fprintf( stderr
, " handle=%08x", req
->handle
);
3037 static void dump_get_window_tree_reply( const struct get_window_tree_reply
*req
)
3039 fprintf( stderr
, " parent=%08x", req
->parent
);
3040 fprintf( stderr
, ", owner=%08x", req
->owner
);
3041 fprintf( stderr
, ", next_sibling=%08x", req
->next_sibling
);
3042 fprintf( stderr
, ", prev_sibling=%08x", req
->prev_sibling
);
3043 fprintf( stderr
, ", first_sibling=%08x", req
->first_sibling
);
3044 fprintf( stderr
, ", last_sibling=%08x", req
->last_sibling
);
3045 fprintf( stderr
, ", first_child=%08x", req
->first_child
);
3046 fprintf( stderr
, ", last_child=%08x", req
->last_child
);
3049 static void dump_set_window_pos_request( const struct set_window_pos_request
*req
)
3051 fprintf( stderr
, " swp_flags=%04x", req
->swp_flags
);
3052 fprintf( stderr
, ", paint_flags=%04x", req
->paint_flags
);
3053 fprintf( stderr
, ", handle=%08x", req
->handle
);
3054 fprintf( stderr
, ", previous=%08x", req
->previous
);
3055 dump_rectangle( ", window=", &req
->window
);
3056 dump_rectangle( ", client=", &req
->client
);
3057 dump_varargs_rectangles( ", valid=", cur_size
);
3060 static void dump_set_window_pos_reply( const struct set_window_pos_reply
*req
)
3062 fprintf( stderr
, " new_style=%08x", req
->new_style
);
3063 fprintf( stderr
, ", new_ex_style=%08x", req
->new_ex_style
);
3064 fprintf( stderr
, ", surface_win=%08x", req
->surface_win
);
3065 fprintf( stderr
, ", needs_update=%d", req
->needs_update
);
3068 static void dump_get_window_rectangles_request( const struct get_window_rectangles_request
*req
)
3070 fprintf( stderr
, " handle=%08x", req
->handle
);
3071 fprintf( stderr
, ", relative=%d", req
->relative
);
3072 fprintf( stderr
, ", dpi=%d", req
->dpi
);
3075 static void dump_get_window_rectangles_reply( const struct get_window_rectangles_reply
*req
)
3077 dump_rectangle( " window=", &req
->window
);
3078 dump_rectangle( ", client=", &req
->client
);
3081 static void dump_get_window_text_request( const struct get_window_text_request
*req
)
3083 fprintf( stderr
, " handle=%08x", req
->handle
);
3086 static void dump_get_window_text_reply( const struct get_window_text_reply
*req
)
3088 fprintf( stderr
, " length=%u", req
->length
);
3089 dump_varargs_unicode_str( ", text=", cur_size
);
3092 static void dump_set_window_text_request( const struct set_window_text_request
*req
)
3094 fprintf( stderr
, " handle=%08x", req
->handle
);
3095 dump_varargs_unicode_str( ", text=", cur_size
);
3098 static void dump_get_windows_offset_request( const struct get_windows_offset_request
*req
)
3100 fprintf( stderr
, " from=%08x", req
->from
);
3101 fprintf( stderr
, ", to=%08x", req
->to
);
3102 fprintf( stderr
, ", dpi=%d", req
->dpi
);
3105 static void dump_get_windows_offset_reply( const struct get_windows_offset_reply
*req
)
3107 fprintf( stderr
, " x=%d", req
->x
);
3108 fprintf( stderr
, ", y=%d", req
->y
);
3109 fprintf( stderr
, ", mirror=%d", req
->mirror
);
3112 static void dump_get_visible_region_request( const struct get_visible_region_request
*req
)
3114 fprintf( stderr
, " window=%08x", req
->window
);
3115 fprintf( stderr
, ", flags=%08x", req
->flags
);
3118 static void dump_get_visible_region_reply( const struct get_visible_region_reply
*req
)
3120 fprintf( stderr
, " top_win=%08x", req
->top_win
);
3121 dump_rectangle( ", top_rect=", &req
->top_rect
);
3122 dump_rectangle( ", win_rect=", &req
->win_rect
);
3123 fprintf( stderr
, ", paint_flags=%08x", req
->paint_flags
);
3124 fprintf( stderr
, ", total_size=%u", req
->total_size
);
3125 dump_varargs_rectangles( ", region=", cur_size
);
3128 static void dump_get_surface_region_request( const struct get_surface_region_request
*req
)
3130 fprintf( stderr
, " window=%08x", req
->window
);
3133 static void dump_get_surface_region_reply( const struct get_surface_region_reply
*req
)
3135 dump_rectangle( " visible_rect=", &req
->visible_rect
);
3136 fprintf( stderr
, ", total_size=%u", req
->total_size
);
3137 dump_varargs_rectangles( ", region=", cur_size
);
3140 static void dump_get_window_region_request( const struct get_window_region_request
*req
)
3142 fprintf( stderr
, " window=%08x", req
->window
);
3145 static void dump_get_window_region_reply( const struct get_window_region_reply
*req
)
3147 fprintf( stderr
, " total_size=%u", req
->total_size
);
3148 dump_varargs_rectangles( ", region=", cur_size
);
3151 static void dump_set_window_region_request( const struct set_window_region_request
*req
)
3153 fprintf( stderr
, " window=%08x", req
->window
);
3154 fprintf( stderr
, ", redraw=%d", req
->redraw
);
3155 dump_varargs_rectangles( ", region=", cur_size
);
3158 static void dump_get_update_region_request( const struct get_update_region_request
*req
)
3160 fprintf( stderr
, " window=%08x", req
->window
);
3161 fprintf( stderr
, ", from_child=%08x", req
->from_child
);
3162 fprintf( stderr
, ", flags=%08x", req
->flags
);
3165 static void dump_get_update_region_reply( const struct get_update_region_reply
*req
)
3167 fprintf( stderr
, " child=%08x", req
->child
);
3168 fprintf( stderr
, ", flags=%08x", req
->flags
);
3169 fprintf( stderr
, ", total_size=%u", req
->total_size
);
3170 dump_varargs_rectangles( ", region=", cur_size
);
3173 static void dump_update_window_zorder_request( const struct update_window_zorder_request
*req
)
3175 fprintf( stderr
, " window=%08x", req
->window
);
3176 dump_rectangle( ", rect=", &req
->rect
);
3179 static void dump_redraw_window_request( const struct redraw_window_request
*req
)
3181 fprintf( stderr
, " window=%08x", req
->window
);
3182 fprintf( stderr
, ", flags=%08x", req
->flags
);
3183 dump_varargs_rectangles( ", region=", cur_size
);
3186 static void dump_set_window_property_request( const struct set_window_property_request
*req
)
3188 fprintf( stderr
, " window=%08x", req
->window
);
3189 dump_uint64( ", data=", &req
->data
);
3190 fprintf( stderr
, ", atom=%04x", req
->atom
);
3191 dump_varargs_unicode_str( ", name=", cur_size
);
3194 static void dump_remove_window_property_request( const struct remove_window_property_request
*req
)
3196 fprintf( stderr
, " window=%08x", req
->window
);
3197 fprintf( stderr
, ", atom=%04x", req
->atom
);
3198 dump_varargs_unicode_str( ", name=", cur_size
);
3201 static void dump_remove_window_property_reply( const struct remove_window_property_reply
*req
)
3203 dump_uint64( " data=", &req
->data
);
3206 static void dump_get_window_property_request( const struct get_window_property_request
*req
)
3208 fprintf( stderr
, " window=%08x", req
->window
);
3209 fprintf( stderr
, ", atom=%04x", req
->atom
);
3210 dump_varargs_unicode_str( ", name=", cur_size
);
3213 static void dump_get_window_property_reply( const struct get_window_property_reply
*req
)
3215 dump_uint64( " data=", &req
->data
);
3218 static void dump_get_window_properties_request( const struct get_window_properties_request
*req
)
3220 fprintf( stderr
, " window=%08x", req
->window
);
3223 static void dump_get_window_properties_reply( const struct get_window_properties_reply
*req
)
3225 fprintf( stderr
, " total=%d", req
->total
);
3226 dump_varargs_properties( ", props=", cur_size
);
3229 static void dump_create_winstation_request( const struct create_winstation_request
*req
)
3231 fprintf( stderr
, " flags=%08x", req
->flags
);
3232 fprintf( stderr
, ", access=%08x", req
->access
);
3233 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3234 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
3235 dump_varargs_unicode_str( ", name=", cur_size
);
3238 static void dump_create_winstation_reply( const struct create_winstation_reply
*req
)
3240 fprintf( stderr
, " handle=%04x", req
->handle
);
3243 static void dump_open_winstation_request( const struct open_winstation_request
*req
)
3245 fprintf( stderr
, " access=%08x", req
->access
);
3246 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3247 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
3248 dump_varargs_unicode_str( ", name=", cur_size
);
3251 static void dump_open_winstation_reply( const struct open_winstation_reply
*req
)
3253 fprintf( stderr
, " handle=%04x", req
->handle
);
3256 static void dump_close_winstation_request( const struct close_winstation_request
*req
)
3258 fprintf( stderr
, " handle=%04x", req
->handle
);
3261 static void dump_get_process_winstation_request( const struct get_process_winstation_request
*req
)
3265 static void dump_get_process_winstation_reply( const struct get_process_winstation_reply
*req
)
3267 fprintf( stderr
, " handle=%04x", req
->handle
);
3270 static void dump_set_process_winstation_request( const struct set_process_winstation_request
*req
)
3272 fprintf( stderr
, " handle=%04x", req
->handle
);
3275 static void dump_enum_winstation_request( const struct enum_winstation_request
*req
)
3277 fprintf( stderr
, " index=%08x", req
->index
);
3280 static void dump_enum_winstation_reply( const struct enum_winstation_reply
*req
)
3282 fprintf( stderr
, " next=%08x", req
->next
);
3283 dump_varargs_unicode_str( ", name=", cur_size
);
3286 static void dump_create_desktop_request( const struct create_desktop_request
*req
)
3288 fprintf( stderr
, " flags=%08x", req
->flags
);
3289 fprintf( stderr
, ", access=%08x", req
->access
);
3290 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3291 dump_varargs_unicode_str( ", name=", cur_size
);
3294 static void dump_create_desktop_reply( const struct create_desktop_reply
*req
)
3296 fprintf( stderr
, " handle=%04x", req
->handle
);
3299 static void dump_open_desktop_request( const struct open_desktop_request
*req
)
3301 fprintf( stderr
, " winsta=%04x", req
->winsta
);
3302 fprintf( stderr
, ", flags=%08x", req
->flags
);
3303 fprintf( stderr
, ", access=%08x", req
->access
);
3304 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3305 dump_varargs_unicode_str( ", name=", cur_size
);
3308 static void dump_open_desktop_reply( const struct open_desktop_reply
*req
)
3310 fprintf( stderr
, " handle=%04x", req
->handle
);
3313 static void dump_open_input_desktop_request( const struct open_input_desktop_request
*req
)
3315 fprintf( stderr
, " flags=%08x", req
->flags
);
3316 fprintf( stderr
, ", access=%08x", req
->access
);
3317 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3320 static void dump_open_input_desktop_reply( const struct open_input_desktop_reply
*req
)
3322 fprintf( stderr
, " handle=%04x", req
->handle
);
3325 static void dump_close_desktop_request( const struct close_desktop_request
*req
)
3327 fprintf( stderr
, " handle=%04x", req
->handle
);
3330 static void dump_get_thread_desktop_request( const struct get_thread_desktop_request
*req
)
3332 fprintf( stderr
, " tid=%04x", req
->tid
);
3335 static void dump_get_thread_desktop_reply( const struct get_thread_desktop_reply
*req
)
3337 fprintf( stderr
, " handle=%04x", req
->handle
);
3340 static void dump_set_thread_desktop_request( const struct set_thread_desktop_request
*req
)
3342 fprintf( stderr
, " handle=%04x", req
->handle
);
3345 static void dump_enum_desktop_request( const struct enum_desktop_request
*req
)
3347 fprintf( stderr
, " winstation=%04x", req
->winstation
);
3348 fprintf( stderr
, ", index=%08x", req
->index
);
3351 static void dump_enum_desktop_reply( const struct enum_desktop_reply
*req
)
3353 fprintf( stderr
, " next=%08x", req
->next
);
3354 dump_varargs_unicode_str( ", name=", cur_size
);
3357 static void dump_set_user_object_info_request( const struct set_user_object_info_request
*req
)
3359 fprintf( stderr
, " handle=%04x", req
->handle
);
3360 fprintf( stderr
, ", flags=%08x", req
->flags
);
3361 fprintf( stderr
, ", obj_flags=%08x", req
->obj_flags
);
3364 static void dump_set_user_object_info_reply( const struct set_user_object_info_reply
*req
)
3366 fprintf( stderr
, " is_desktop=%d", req
->is_desktop
);
3367 fprintf( stderr
, ", old_obj_flags=%08x", req
->old_obj_flags
);
3368 dump_varargs_unicode_str( ", name=", cur_size
);
3371 static void dump_register_hotkey_request( const struct register_hotkey_request
*req
)
3373 fprintf( stderr
, " window=%08x", req
->window
);
3374 fprintf( stderr
, ", id=%d", req
->id
);
3375 fprintf( stderr
, ", flags=%08x", req
->flags
);
3376 fprintf( stderr
, ", vkey=%08x", req
->vkey
);
3379 static void dump_register_hotkey_reply( const struct register_hotkey_reply
*req
)
3381 fprintf( stderr
, " replaced=%d", req
->replaced
);
3382 fprintf( stderr
, ", flags=%08x", req
->flags
);
3383 fprintf( stderr
, ", vkey=%08x", req
->vkey
);
3386 static void dump_unregister_hotkey_request( const struct unregister_hotkey_request
*req
)
3388 fprintf( stderr
, " window=%08x", req
->window
);
3389 fprintf( stderr
, ", id=%d", req
->id
);
3392 static void dump_unregister_hotkey_reply( const struct unregister_hotkey_reply
*req
)
3394 fprintf( stderr
, " flags=%08x", req
->flags
);
3395 fprintf( stderr
, ", vkey=%08x", req
->vkey
);
3398 static void dump_attach_thread_input_request( const struct attach_thread_input_request
*req
)
3400 fprintf( stderr
, " tid_from=%04x", req
->tid_from
);
3401 fprintf( stderr
, ", tid_to=%04x", req
->tid_to
);
3402 fprintf( stderr
, ", attach=%d", req
->attach
);
3405 static void dump_get_thread_input_request( const struct get_thread_input_request
*req
)
3407 fprintf( stderr
, " tid=%04x", req
->tid
);
3410 static void dump_get_thread_input_reply( const struct get_thread_input_reply
*req
)
3412 fprintf( stderr
, " focus=%08x", req
->focus
);
3413 fprintf( stderr
, ", capture=%08x", req
->capture
);
3414 fprintf( stderr
, ", active=%08x", req
->active
);
3415 fprintf( stderr
, ", foreground=%08x", req
->foreground
);
3416 fprintf( stderr
, ", menu_owner=%08x", req
->menu_owner
);
3417 fprintf( stderr
, ", move_size=%08x", req
->move_size
);
3418 fprintf( stderr
, ", caret=%08x", req
->caret
);
3419 fprintf( stderr
, ", cursor=%08x", req
->cursor
);
3420 fprintf( stderr
, ", show_count=%d", req
->show_count
);
3421 dump_rectangle( ", rect=", &req
->rect
);
3424 static void dump_get_last_input_time_request( const struct get_last_input_time_request
*req
)
3428 static void dump_get_last_input_time_reply( const struct get_last_input_time_reply
*req
)
3430 fprintf( stderr
, " time=%08x", req
->time
);
3433 static void dump_get_key_state_request( const struct get_key_state_request
*req
)
3435 fprintf( stderr
, " async=%d", req
->async
);
3436 fprintf( stderr
, ", key=%d", req
->key
);
3439 static void dump_get_key_state_reply( const struct get_key_state_reply
*req
)
3441 fprintf( stderr
, " state=%02x", req
->state
);
3442 dump_varargs_bytes( ", keystate=", cur_size
);
3445 static void dump_set_key_state_request( const struct set_key_state_request
*req
)
3447 fprintf( stderr
, " async=%d", req
->async
);
3448 dump_varargs_bytes( ", keystate=", cur_size
);
3451 static void dump_set_foreground_window_request( const struct set_foreground_window_request
*req
)
3453 fprintf( stderr
, " handle=%08x", req
->handle
);
3456 static void dump_set_foreground_window_reply( const struct set_foreground_window_reply
*req
)
3458 fprintf( stderr
, " previous=%08x", req
->previous
);
3459 fprintf( stderr
, ", send_msg_old=%d", req
->send_msg_old
);
3460 fprintf( stderr
, ", send_msg_new=%d", req
->send_msg_new
);
3463 static void dump_set_focus_window_request( const struct set_focus_window_request
*req
)
3465 fprintf( stderr
, " handle=%08x", req
->handle
);
3468 static void dump_set_focus_window_reply( const struct set_focus_window_reply
*req
)
3470 fprintf( stderr
, " previous=%08x", req
->previous
);
3473 static void dump_set_active_window_request( const struct set_active_window_request
*req
)
3475 fprintf( stderr
, " handle=%08x", req
->handle
);
3478 static void dump_set_active_window_reply( const struct set_active_window_reply
*req
)
3480 fprintf( stderr
, " previous=%08x", req
->previous
);
3483 static void dump_set_capture_window_request( const struct set_capture_window_request
*req
)
3485 fprintf( stderr
, " handle=%08x", req
->handle
);
3486 fprintf( stderr
, ", flags=%08x", req
->flags
);
3489 static void dump_set_capture_window_reply( const struct set_capture_window_reply
*req
)
3491 fprintf( stderr
, " previous=%08x", req
->previous
);
3492 fprintf( stderr
, ", full_handle=%08x", req
->full_handle
);
3495 static void dump_set_caret_window_request( const struct set_caret_window_request
*req
)
3497 fprintf( stderr
, " handle=%08x", req
->handle
);
3498 fprintf( stderr
, ", width=%d", req
->width
);
3499 fprintf( stderr
, ", height=%d", req
->height
);
3502 static void dump_set_caret_window_reply( const struct set_caret_window_reply
*req
)
3504 fprintf( stderr
, " previous=%08x", req
->previous
);
3505 dump_rectangle( ", old_rect=", &req
->old_rect
);
3506 fprintf( stderr
, ", old_hide=%d", req
->old_hide
);
3507 fprintf( stderr
, ", old_state=%d", req
->old_state
);
3510 static void dump_set_caret_info_request( const struct set_caret_info_request
*req
)
3512 fprintf( stderr
, " flags=%08x", req
->flags
);
3513 fprintf( stderr
, ", handle=%08x", req
->handle
);
3514 fprintf( stderr
, ", x=%d", req
->x
);
3515 fprintf( stderr
, ", y=%d", req
->y
);
3516 fprintf( stderr
, ", hide=%d", req
->hide
);
3517 fprintf( stderr
, ", state=%d", req
->state
);
3520 static void dump_set_caret_info_reply( const struct set_caret_info_reply
*req
)
3522 fprintf( stderr
, " full_handle=%08x", req
->full_handle
);
3523 dump_rectangle( ", old_rect=", &req
->old_rect
);
3524 fprintf( stderr
, ", old_hide=%d", req
->old_hide
);
3525 fprintf( stderr
, ", old_state=%d", req
->old_state
);
3528 static void dump_set_hook_request( const struct set_hook_request
*req
)
3530 fprintf( stderr
, " id=%d", req
->id
);
3531 fprintf( stderr
, ", pid=%04x", req
->pid
);
3532 fprintf( stderr
, ", tid=%04x", req
->tid
);
3533 fprintf( stderr
, ", event_min=%d", req
->event_min
);
3534 fprintf( stderr
, ", event_max=%d", req
->event_max
);
3535 dump_uint64( ", proc=", &req
->proc
);
3536 fprintf( stderr
, ", flags=%d", req
->flags
);
3537 fprintf( stderr
, ", unicode=%d", req
->unicode
);
3538 dump_varargs_unicode_str( ", module=", cur_size
);
3541 static void dump_set_hook_reply( const struct set_hook_reply
*req
)
3543 fprintf( stderr
, " handle=%08x", req
->handle
);
3544 fprintf( stderr
, ", active_hooks=%08x", req
->active_hooks
);
3547 static void dump_remove_hook_request( const struct remove_hook_request
*req
)
3549 fprintf( stderr
, " handle=%08x", req
->handle
);
3550 dump_uint64( ", proc=", &req
->proc
);
3551 fprintf( stderr
, ", id=%d", req
->id
);
3554 static void dump_remove_hook_reply( const struct remove_hook_reply
*req
)
3556 fprintf( stderr
, " active_hooks=%08x", req
->active_hooks
);
3559 static void dump_start_hook_chain_request( const struct start_hook_chain_request
*req
)
3561 fprintf( stderr
, " id=%d", req
->id
);
3562 fprintf( stderr
, ", event=%d", req
->event
);
3563 fprintf( stderr
, ", window=%08x", req
->window
);
3564 fprintf( stderr
, ", object_id=%d", req
->object_id
);
3565 fprintf( stderr
, ", child_id=%d", req
->child_id
);
3568 static void dump_start_hook_chain_reply( const struct start_hook_chain_reply
*req
)
3570 fprintf( stderr
, " handle=%08x", req
->handle
);
3571 fprintf( stderr
, ", pid=%04x", req
->pid
);
3572 fprintf( stderr
, ", tid=%04x", req
->tid
);
3573 fprintf( stderr
, ", unicode=%d", req
->unicode
);
3574 dump_uint64( ", proc=", &req
->proc
);
3575 fprintf( stderr
, ", active_hooks=%08x", req
->active_hooks
);
3576 dump_varargs_unicode_str( ", module=", cur_size
);
3579 static void dump_finish_hook_chain_request( const struct finish_hook_chain_request
*req
)
3581 fprintf( stderr
, " id=%d", req
->id
);
3584 static void dump_get_hook_info_request( const struct get_hook_info_request
*req
)
3586 fprintf( stderr
, " handle=%08x", req
->handle
);
3587 fprintf( stderr
, ", get_next=%d", req
->get_next
);
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_get_hook_info_reply( const struct get_hook_info_reply
*req
)
3596 fprintf( stderr
, " handle=%08x", req
->handle
);
3597 fprintf( stderr
, ", id=%d", req
->id
);
3598 fprintf( stderr
, ", pid=%04x", req
->pid
);
3599 fprintf( stderr
, ", tid=%04x", req
->tid
);
3600 dump_uint64( ", proc=", &req
->proc
);
3601 fprintf( stderr
, ", unicode=%d", req
->unicode
);
3602 dump_varargs_unicode_str( ", module=", cur_size
);
3605 static void dump_create_class_request( const struct create_class_request
*req
)
3607 fprintf( stderr
, " local=%d", req
->local
);
3608 fprintf( stderr
, ", atom=%04x", req
->atom
);
3609 fprintf( stderr
, ", style=%08x", req
->style
);
3610 dump_uint64( ", instance=", &req
->instance
);
3611 fprintf( stderr
, ", extra=%d", req
->extra
);
3612 fprintf( stderr
, ", win_extra=%d", req
->win_extra
);
3613 dump_uint64( ", client_ptr=", &req
->client_ptr
);
3614 fprintf( stderr
, ", name_offset=%u", req
->name_offset
);
3615 dump_varargs_unicode_str( ", name=", cur_size
);
3618 static void dump_create_class_reply( const struct create_class_reply
*req
)
3620 fprintf( stderr
, " atom=%04x", req
->atom
);
3623 static void dump_destroy_class_request( const struct destroy_class_request
*req
)
3625 fprintf( stderr
, " atom=%04x", req
->atom
);
3626 dump_uint64( ", instance=", &req
->instance
);
3627 dump_varargs_unicode_str( ", name=", cur_size
);
3630 static void dump_destroy_class_reply( const struct destroy_class_reply
*req
)
3632 dump_uint64( " client_ptr=", &req
->client_ptr
);
3635 static void dump_set_class_info_request( const struct set_class_info_request
*req
)
3637 fprintf( stderr
, " window=%08x", req
->window
);
3638 fprintf( stderr
, ", flags=%08x", req
->flags
);
3639 fprintf( stderr
, ", atom=%04x", req
->atom
);
3640 fprintf( stderr
, ", style=%08x", req
->style
);
3641 fprintf( stderr
, ", win_extra=%d", req
->win_extra
);
3642 dump_uint64( ", instance=", &req
->instance
);
3643 fprintf( stderr
, ", extra_offset=%d", req
->extra_offset
);
3644 fprintf( stderr
, ", extra_size=%u", req
->extra_size
);
3645 dump_uint64( ", extra_value=", &req
->extra_value
);
3648 static void dump_set_class_info_reply( const struct set_class_info_reply
*req
)
3650 fprintf( stderr
, " old_atom=%04x", req
->old_atom
);
3651 fprintf( stderr
, ", base_atom=%04x", req
->base_atom
);
3652 dump_uint64( ", old_instance=", &req
->old_instance
);
3653 dump_uint64( ", old_extra_value=", &req
->old_extra_value
);
3654 fprintf( stderr
, ", old_style=%08x", req
->old_style
);
3655 fprintf( stderr
, ", old_extra=%d", req
->old_extra
);
3656 fprintf( stderr
, ", old_win_extra=%d", req
->old_win_extra
);
3659 static void dump_open_clipboard_request( const struct open_clipboard_request
*req
)
3661 fprintf( stderr
, " window=%08x", req
->window
);
3664 static void dump_open_clipboard_reply( const struct open_clipboard_reply
*req
)
3666 fprintf( stderr
, " owner=%08x", req
->owner
);
3669 static void dump_close_clipboard_request( const struct close_clipboard_request
*req
)
3673 static void dump_close_clipboard_reply( const struct close_clipboard_reply
*req
)
3675 fprintf( stderr
, " viewer=%08x", req
->viewer
);
3676 fprintf( stderr
, ", owner=%08x", req
->owner
);
3679 static void dump_empty_clipboard_request( const struct empty_clipboard_request
*req
)
3683 static void dump_set_clipboard_data_request( const struct set_clipboard_data_request
*req
)
3685 fprintf( stderr
, " format=%08x", req
->format
);
3686 fprintf( stderr
, ", lcid=%08x", req
->lcid
);
3687 dump_varargs_bytes( ", data=", cur_size
);
3690 static void dump_set_clipboard_data_reply( const struct set_clipboard_data_reply
*req
)
3692 fprintf( stderr
, " seqno=%08x", req
->seqno
);
3695 static void dump_get_clipboard_data_request( const struct get_clipboard_data_request
*req
)
3697 fprintf( stderr
, " format=%08x", req
->format
);
3698 fprintf( stderr
, ", render=%d", req
->render
);
3699 fprintf( stderr
, ", cached=%d", req
->cached
);
3700 fprintf( stderr
, ", seqno=%08x", req
->seqno
);
3703 static void dump_get_clipboard_data_reply( const struct get_clipboard_data_reply
*req
)
3705 fprintf( stderr
, " from=%08x", req
->from
);
3706 fprintf( stderr
, ", owner=%08x", req
->owner
);
3707 fprintf( stderr
, ", seqno=%08x", req
->seqno
);
3708 fprintf( stderr
, ", total=%u", req
->total
);
3709 dump_varargs_bytes( ", data=", cur_size
);
3712 static void dump_get_clipboard_formats_request( const struct get_clipboard_formats_request
*req
)
3714 fprintf( stderr
, " format=%08x", req
->format
);
3717 static void dump_get_clipboard_formats_reply( const struct get_clipboard_formats_reply
*req
)
3719 fprintf( stderr
, " count=%08x", req
->count
);
3720 dump_varargs_uints( ", formats=", cur_size
);
3723 static void dump_enum_clipboard_formats_request( const struct enum_clipboard_formats_request
*req
)
3725 fprintf( stderr
, " previous=%08x", req
->previous
);
3728 static void dump_enum_clipboard_formats_reply( const struct enum_clipboard_formats_reply
*req
)
3730 fprintf( stderr
, " format=%08x", req
->format
);
3733 static void dump_release_clipboard_request( const struct release_clipboard_request
*req
)
3735 fprintf( stderr
, " owner=%08x", req
->owner
);
3738 static void dump_release_clipboard_reply( const struct release_clipboard_reply
*req
)
3740 fprintf( stderr
, " viewer=%08x", req
->viewer
);
3741 fprintf( stderr
, ", owner=%08x", req
->owner
);
3744 static void dump_get_clipboard_info_request( const struct get_clipboard_info_request
*req
)
3748 static void dump_get_clipboard_info_reply( const struct get_clipboard_info_reply
*req
)
3750 fprintf( stderr
, " window=%08x", req
->window
);
3751 fprintf( stderr
, ", owner=%08x", req
->owner
);
3752 fprintf( stderr
, ", viewer=%08x", req
->viewer
);
3753 fprintf( stderr
, ", seqno=%08x", req
->seqno
);
3756 static void dump_set_clipboard_viewer_request( const struct set_clipboard_viewer_request
*req
)
3758 fprintf( stderr
, " viewer=%08x", req
->viewer
);
3759 fprintf( stderr
, ", previous=%08x", req
->previous
);
3762 static void dump_set_clipboard_viewer_reply( const struct set_clipboard_viewer_reply
*req
)
3764 fprintf( stderr
, " old_viewer=%08x", req
->old_viewer
);
3765 fprintf( stderr
, ", owner=%08x", req
->owner
);
3768 static void dump_add_clipboard_listener_request( const struct add_clipboard_listener_request
*req
)
3770 fprintf( stderr
, " window=%08x", req
->window
);
3773 static void dump_remove_clipboard_listener_request( const struct remove_clipboard_listener_request
*req
)
3775 fprintf( stderr
, " window=%08x", req
->window
);
3778 static void dump_open_token_request( const struct open_token_request
*req
)
3780 fprintf( stderr
, " handle=%04x", req
->handle
);
3781 fprintf( stderr
, ", access=%08x", req
->access
);
3782 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3783 fprintf( stderr
, ", flags=%08x", req
->flags
);
3786 static void dump_open_token_reply( const struct open_token_reply
*req
)
3788 fprintf( stderr
, " token=%04x", req
->token
);
3791 static void dump_set_global_windows_request( const struct set_global_windows_request
*req
)
3793 fprintf( stderr
, " flags=%08x", req
->flags
);
3794 fprintf( stderr
, ", shell_window=%08x", req
->shell_window
);
3795 fprintf( stderr
, ", shell_listview=%08x", req
->shell_listview
);
3796 fprintf( stderr
, ", progman_window=%08x", req
->progman_window
);
3797 fprintf( stderr
, ", taskman_window=%08x", req
->taskman_window
);
3800 static void dump_set_global_windows_reply( const struct set_global_windows_reply
*req
)
3802 fprintf( stderr
, " old_shell_window=%08x", req
->old_shell_window
);
3803 fprintf( stderr
, ", old_shell_listview=%08x", req
->old_shell_listview
);
3804 fprintf( stderr
, ", old_progman_window=%08x", req
->old_progman_window
);
3805 fprintf( stderr
, ", old_taskman_window=%08x", req
->old_taskman_window
);
3808 static void dump_adjust_token_privileges_request( const struct adjust_token_privileges_request
*req
)
3810 fprintf( stderr
, " handle=%04x", req
->handle
);
3811 fprintf( stderr
, ", disable_all=%d", req
->disable_all
);
3812 fprintf( stderr
, ", get_modified_state=%d", req
->get_modified_state
);
3813 dump_varargs_luid_attr( ", privileges=", cur_size
);
3816 static void dump_adjust_token_privileges_reply( const struct adjust_token_privileges_reply
*req
)
3818 fprintf( stderr
, " len=%08x", req
->len
);
3819 dump_varargs_luid_attr( ", privileges=", cur_size
);
3822 static void dump_get_token_privileges_request( const struct get_token_privileges_request
*req
)
3824 fprintf( stderr
, " handle=%04x", req
->handle
);
3827 static void dump_get_token_privileges_reply( const struct get_token_privileges_reply
*req
)
3829 fprintf( stderr
, " len=%08x", req
->len
);
3830 dump_varargs_luid_attr( ", privileges=", cur_size
);
3833 static void dump_check_token_privileges_request( const struct check_token_privileges_request
*req
)
3835 fprintf( stderr
, " handle=%04x", req
->handle
);
3836 fprintf( stderr
, ", all_required=%d", req
->all_required
);
3837 dump_varargs_luid_attr( ", privileges=", cur_size
);
3840 static void dump_check_token_privileges_reply( const struct check_token_privileges_reply
*req
)
3842 fprintf( stderr
, " has_privileges=%d", req
->has_privileges
);
3843 dump_varargs_luid_attr( ", privileges=", cur_size
);
3846 static void dump_duplicate_token_request( const struct duplicate_token_request
*req
)
3848 fprintf( stderr
, " handle=%04x", req
->handle
);
3849 fprintf( stderr
, ", access=%08x", req
->access
);
3850 fprintf( stderr
, ", primary=%d", req
->primary
);
3851 fprintf( stderr
, ", impersonation_level=%d", req
->impersonation_level
);
3852 dump_varargs_object_attributes( ", objattr=", cur_size
);
3855 static void dump_duplicate_token_reply( const struct duplicate_token_reply
*req
)
3857 fprintf( stderr
, " new_handle=%04x", req
->new_handle
);
3860 static void dump_filter_token_request( const struct filter_token_request
*req
)
3862 fprintf( stderr
, " handle=%04x", req
->handle
);
3863 fprintf( stderr
, ", flags=%08x", req
->flags
);
3864 fprintf( stderr
, ", privileges_size=%u", req
->privileges_size
);
3865 dump_varargs_luid_attr( ", privileges=", min(cur_size
,req
->privileges_size
) );
3866 dump_varargs_sid( ", disable_sids=", cur_size
);
3869 static void dump_filter_token_reply( const struct filter_token_reply
*req
)
3871 fprintf( stderr
, " new_handle=%04x", req
->new_handle
);
3874 static void dump_access_check_request( const struct access_check_request
*req
)
3876 fprintf( stderr
, " handle=%04x", req
->handle
);
3877 fprintf( stderr
, ", desired_access=%08x", req
->desired_access
);
3878 dump_generic_map( ", mapping=", &req
->mapping
);
3879 dump_varargs_security_descriptor( ", sd=", cur_size
);
3882 static void dump_access_check_reply( const struct access_check_reply
*req
)
3884 fprintf( stderr
, " access_granted=%08x", req
->access_granted
);
3885 fprintf( stderr
, ", access_status=%08x", req
->access_status
);
3886 fprintf( stderr
, ", privileges_len=%08x", req
->privileges_len
);
3887 dump_varargs_luid_attr( ", privileges=", cur_size
);
3890 static void dump_get_token_sid_request( const struct get_token_sid_request
*req
)
3892 fprintf( stderr
, " handle=%04x", req
->handle
);
3893 fprintf( stderr
, ", which_sid=%08x", req
->which_sid
);
3896 static void dump_get_token_sid_reply( const struct get_token_sid_reply
*req
)
3898 fprintf( stderr
, " sid_len=%u", req
->sid_len
);
3899 dump_varargs_sid( ", sid=", cur_size
);
3902 static void dump_get_token_groups_request( const struct get_token_groups_request
*req
)
3904 fprintf( stderr
, " handle=%04x", req
->handle
);
3905 fprintf( stderr
, ", attr_mask=%08x", req
->attr_mask
);
3908 static void dump_get_token_groups_reply( const struct get_token_groups_reply
*req
)
3910 fprintf( stderr
, " attr_len=%u", req
->attr_len
);
3911 fprintf( stderr
, ", sid_len=%u", req
->sid_len
);
3912 dump_varargs_uints( ", attrs=", min(cur_size
,req
->attr_len
) );
3913 dump_varargs_sids( ", sids=", cur_size
);
3916 static void dump_get_token_default_dacl_request( const struct get_token_default_dacl_request
*req
)
3918 fprintf( stderr
, " handle=%04x", req
->handle
);
3921 static void dump_get_token_default_dacl_reply( const struct get_token_default_dacl_reply
*req
)
3923 fprintf( stderr
, " acl_len=%u", req
->acl_len
);
3924 dump_varargs_acl( ", acl=", cur_size
);
3927 static void dump_set_token_default_dacl_request( const struct set_token_default_dacl_request
*req
)
3929 fprintf( stderr
, " handle=%04x", req
->handle
);
3930 dump_varargs_acl( ", acl=", cur_size
);
3933 static void dump_set_security_object_request( const struct set_security_object_request
*req
)
3935 fprintf( stderr
, " handle=%04x", req
->handle
);
3936 fprintf( stderr
, ", security_info=%08x", req
->security_info
);
3937 dump_varargs_security_descriptor( ", sd=", cur_size
);
3940 static void dump_get_security_object_request( const struct get_security_object_request
*req
)
3942 fprintf( stderr
, " handle=%04x", req
->handle
);
3943 fprintf( stderr
, ", security_info=%08x", req
->security_info
);
3946 static void dump_get_security_object_reply( const struct get_security_object_reply
*req
)
3948 fprintf( stderr
, " sd_len=%08x", req
->sd_len
);
3949 dump_varargs_security_descriptor( ", sd=", cur_size
);
3952 static void dump_get_system_handles_request( const struct get_system_handles_request
*req
)
3956 static void dump_get_system_handles_reply( const struct get_system_handles_reply
*req
)
3958 fprintf( stderr
, " count=%08x", req
->count
);
3959 dump_varargs_handle_infos( ", data=", cur_size
);
3962 static void dump_create_mailslot_request( const struct create_mailslot_request
*req
)
3964 fprintf( stderr
, " access=%08x", req
->access
);
3965 dump_timeout( ", read_timeout=", &req
->read_timeout
);
3966 fprintf( stderr
, ", max_msgsize=%08x", req
->max_msgsize
);
3967 dump_varargs_object_attributes( ", objattr=", cur_size
);
3970 static void dump_create_mailslot_reply( const struct create_mailslot_reply
*req
)
3972 fprintf( stderr
, " handle=%04x", req
->handle
);
3975 static void dump_set_mailslot_info_request( const struct set_mailslot_info_request
*req
)
3977 fprintf( stderr
, " handle=%04x", req
->handle
);
3978 dump_timeout( ", read_timeout=", &req
->read_timeout
);
3979 fprintf( stderr
, ", flags=%08x", req
->flags
);
3982 static void dump_set_mailslot_info_reply( const struct set_mailslot_info_reply
*req
)
3984 dump_timeout( " read_timeout=", &req
->read_timeout
);
3985 fprintf( stderr
, ", max_msgsize=%08x", req
->max_msgsize
);
3988 static void dump_create_directory_request( const struct create_directory_request
*req
)
3990 fprintf( stderr
, " access=%08x", req
->access
);
3991 dump_varargs_object_attributes( ", objattr=", cur_size
);
3994 static void dump_create_directory_reply( const struct create_directory_reply
*req
)
3996 fprintf( stderr
, " handle=%04x", req
->handle
);
3999 static void dump_open_directory_request( const struct open_directory_request
*req
)
4001 fprintf( stderr
, " access=%08x", req
->access
);
4002 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
4003 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
4004 dump_varargs_unicode_str( ", directory_name=", cur_size
);
4007 static void dump_open_directory_reply( const struct open_directory_reply
*req
)
4009 fprintf( stderr
, " handle=%04x", req
->handle
);
4012 static void dump_get_directory_entry_request( const struct get_directory_entry_request
*req
)
4014 fprintf( stderr
, " handle=%04x", req
->handle
);
4015 fprintf( stderr
, ", index=%08x", req
->index
);
4018 static void dump_get_directory_entry_reply( const struct get_directory_entry_reply
*req
)
4020 fprintf( stderr
, " total_len=%u", req
->total_len
);
4021 fprintf( stderr
, ", name_len=%u", req
->name_len
);
4022 dump_varargs_unicode_str( ", name=", min(cur_size
,req
->name_len
) );
4023 dump_varargs_unicode_str( ", type=", cur_size
);
4026 static void dump_create_symlink_request( const struct create_symlink_request
*req
)
4028 fprintf( stderr
, " access=%08x", req
->access
);
4029 dump_varargs_object_attributes( ", objattr=", cur_size
);
4030 dump_varargs_unicode_str( ", target_name=", cur_size
);
4033 static void dump_create_symlink_reply( const struct create_symlink_reply
*req
)
4035 fprintf( stderr
, " handle=%04x", req
->handle
);
4038 static void dump_open_symlink_request( const struct open_symlink_request
*req
)
4040 fprintf( stderr
, " access=%08x", req
->access
);
4041 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
4042 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
4043 dump_varargs_unicode_str( ", name=", cur_size
);
4046 static void dump_open_symlink_reply( const struct open_symlink_reply
*req
)
4048 fprintf( stderr
, " handle=%04x", req
->handle
);
4051 static void dump_query_symlink_request( const struct query_symlink_request
*req
)
4053 fprintf( stderr
, " handle=%04x", req
->handle
);
4056 static void dump_query_symlink_reply( const struct query_symlink_reply
*req
)
4058 fprintf( stderr
, " total=%u", req
->total
);
4059 dump_varargs_unicode_str( ", target_name=", cur_size
);
4062 static void dump_get_object_info_request( const struct get_object_info_request
*req
)
4064 fprintf( stderr
, " handle=%04x", req
->handle
);
4067 static void dump_get_object_info_reply( const struct get_object_info_reply
*req
)
4069 fprintf( stderr
, " access=%08x", req
->access
);
4070 fprintf( stderr
, ", ref_count=%08x", req
->ref_count
);
4071 fprintf( stderr
, ", handle_count=%08x", req
->handle_count
);
4074 static void dump_get_object_name_request( const struct get_object_name_request
*req
)
4076 fprintf( stderr
, " handle=%04x", req
->handle
);
4079 static void dump_get_object_name_reply( const struct get_object_name_reply
*req
)
4081 fprintf( stderr
, " total=%u", req
->total
);
4082 dump_varargs_unicode_str( ", name=", cur_size
);
4085 static void dump_get_object_type_request( const struct get_object_type_request
*req
)
4087 fprintf( stderr
, " handle=%04x", req
->handle
);
4090 static void dump_get_object_type_reply( const struct get_object_type_reply
*req
)
4092 dump_varargs_object_type_info( " info=", cur_size
);
4095 static void dump_get_object_types_request( const struct get_object_types_request
*req
)
4099 static void dump_get_object_types_reply( const struct get_object_types_reply
*req
)
4101 fprintf( stderr
, " count=%d", req
->count
);
4102 dump_varargs_object_types_info( ", info=", cur_size
);
4105 static void dump_allocate_locally_unique_id_request( const struct allocate_locally_unique_id_request
*req
)
4109 static void dump_allocate_locally_unique_id_reply( const struct allocate_locally_unique_id_reply
*req
)
4111 dump_luid( " luid=", &req
->luid
);
4114 static void dump_create_device_manager_request( const struct create_device_manager_request
*req
)
4116 fprintf( stderr
, " access=%08x", req
->access
);
4117 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
4120 static void dump_create_device_manager_reply( const struct create_device_manager_reply
*req
)
4122 fprintf( stderr
, " handle=%04x", req
->handle
);
4125 static void dump_create_device_request( const struct create_device_request
*req
)
4127 fprintf( stderr
, " rootdir=%04x", req
->rootdir
);
4128 dump_uint64( ", user_ptr=", &req
->user_ptr
);
4129 fprintf( stderr
, ", manager=%04x", req
->manager
);
4130 dump_varargs_unicode_str( ", name=", cur_size
);
4133 static void dump_delete_device_request( const struct delete_device_request
*req
)
4135 fprintf( stderr
, " manager=%04x", req
->manager
);
4136 dump_uint64( ", device=", &req
->device
);
4139 static void dump_get_next_device_request_request( const struct get_next_device_request_request
*req
)
4141 fprintf( stderr
, " manager=%04x", req
->manager
);
4142 fprintf( stderr
, ", prev=%04x", req
->prev
);
4143 fprintf( stderr
, ", status=%08x", req
->status
);
4144 dump_uint64( ", user_ptr=", &req
->user_ptr
);
4145 fprintf( stderr
, ", pending=%d", req
->pending
);
4146 fprintf( stderr
, ", iosb_status=%08x", req
->iosb_status
);
4147 fprintf( stderr
, ", result=%u", req
->result
);
4148 dump_varargs_bytes( ", data=", cur_size
);
4151 static void dump_get_next_device_request_reply( const struct get_next_device_request_reply
*req
)
4153 dump_irp_params( " params=", &req
->params
);
4154 fprintf( stderr
, ", next=%04x", req
->next
);
4155 fprintf( stderr
, ", client_tid=%04x", req
->client_tid
);
4156 dump_uint64( ", client_thread=", &req
->client_thread
);
4157 fprintf( stderr
, ", in_size=%u", req
->in_size
);
4158 dump_varargs_bytes( ", next_data=", cur_size
);
4161 static void dump_get_kernel_object_ptr_request( const struct get_kernel_object_ptr_request
*req
)
4163 fprintf( stderr
, " manager=%04x", req
->manager
);
4164 fprintf( stderr
, ", handle=%04x", req
->handle
);
4167 static void dump_get_kernel_object_ptr_reply( const struct get_kernel_object_ptr_reply
*req
)
4169 dump_uint64( " user_ptr=", &req
->user_ptr
);
4172 static void dump_set_kernel_object_ptr_request( const struct set_kernel_object_ptr_request
*req
)
4174 fprintf( stderr
, " manager=%04x", req
->manager
);
4175 fprintf( stderr
, ", handle=%04x", req
->handle
);
4176 dump_uint64( ", user_ptr=", &req
->user_ptr
);
4179 static void dump_grab_kernel_object_request( const struct grab_kernel_object_request
*req
)
4181 fprintf( stderr
, " manager=%04x", req
->manager
);
4182 dump_uint64( ", user_ptr=", &req
->user_ptr
);
4185 static void dump_release_kernel_object_request( const struct release_kernel_object_request
*req
)
4187 fprintf( stderr
, " manager=%04x", req
->manager
);
4188 dump_uint64( ", user_ptr=", &req
->user_ptr
);
4191 static void dump_get_kernel_object_handle_request( const struct get_kernel_object_handle_request
*req
)
4193 fprintf( stderr
, " manager=%04x", req
->manager
);
4194 dump_uint64( ", user_ptr=", &req
->user_ptr
);
4195 fprintf( stderr
, ", access=%08x", req
->access
);
4198 static void dump_get_kernel_object_handle_reply( const struct get_kernel_object_handle_reply
*req
)
4200 fprintf( stderr
, " handle=%04x", req
->handle
);
4203 static void dump_make_process_system_request( const struct make_process_system_request
*req
)
4205 fprintf( stderr
, " handle=%04x", req
->handle
);
4208 static void dump_make_process_system_reply( const struct make_process_system_reply
*req
)
4210 fprintf( stderr
, " event=%04x", req
->event
);
4213 static void dump_get_token_info_request( const struct get_token_info_request
*req
)
4215 fprintf( stderr
, " handle=%04x", req
->handle
);
4218 static void dump_get_token_info_reply( const struct get_token_info_reply
*req
)
4220 dump_luid( " token_id=", &req
->token_id
);
4221 dump_luid( ", modified_id=", &req
->modified_id
);
4222 fprintf( stderr
, ", session_id=%08x", req
->session_id
);
4223 fprintf( stderr
, ", primary=%d", req
->primary
);
4224 fprintf( stderr
, ", impersonation_level=%d", req
->impersonation_level
);
4225 fprintf( stderr
, ", elevation=%d", req
->elevation
);
4226 fprintf( stderr
, ", group_count=%d", req
->group_count
);
4227 fprintf( stderr
, ", privilege_count=%d", req
->privilege_count
);
4230 static void dump_create_linked_token_request( const struct create_linked_token_request
*req
)
4232 fprintf( stderr
, " handle=%04x", req
->handle
);
4235 static void dump_create_linked_token_reply( const struct create_linked_token_reply
*req
)
4237 fprintf( stderr
, " linked=%04x", req
->linked
);
4240 static void dump_create_completion_request( const struct create_completion_request
*req
)
4242 fprintf( stderr
, " access=%08x", req
->access
);
4243 fprintf( stderr
, ", concurrent=%08x", req
->concurrent
);
4244 dump_varargs_object_attributes( ", objattr=", cur_size
);
4247 static void dump_create_completion_reply( const struct create_completion_reply
*req
)
4249 fprintf( stderr
, " handle=%04x", req
->handle
);
4252 static void dump_open_completion_request( const struct open_completion_request
*req
)
4254 fprintf( stderr
, " access=%08x", req
->access
);
4255 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
4256 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
4257 dump_varargs_unicode_str( ", filename=", cur_size
);
4260 static void dump_open_completion_reply( const struct open_completion_reply
*req
)
4262 fprintf( stderr
, " handle=%04x", req
->handle
);
4265 static void dump_add_completion_request( const struct add_completion_request
*req
)
4267 fprintf( stderr
, " handle=%04x", req
->handle
);
4268 dump_uint64( ", ckey=", &req
->ckey
);
4269 dump_uint64( ", cvalue=", &req
->cvalue
);
4270 dump_uint64( ", information=", &req
->information
);
4271 fprintf( stderr
, ", status=%08x", req
->status
);
4274 static void dump_remove_completion_request( const struct remove_completion_request
*req
)
4276 fprintf( stderr
, " handle=%04x", req
->handle
);
4279 static void dump_remove_completion_reply( const struct remove_completion_reply
*req
)
4281 dump_uint64( " ckey=", &req
->ckey
);
4282 dump_uint64( ", cvalue=", &req
->cvalue
);
4283 dump_uint64( ", information=", &req
->information
);
4284 fprintf( stderr
, ", status=%08x", req
->status
);
4287 static void dump_query_completion_request( const struct query_completion_request
*req
)
4289 fprintf( stderr
, " handle=%04x", req
->handle
);
4292 static void dump_query_completion_reply( const struct query_completion_reply
*req
)
4294 fprintf( stderr
, " depth=%08x", req
->depth
);
4297 static void dump_set_completion_info_request( const struct set_completion_info_request
*req
)
4299 fprintf( stderr
, " handle=%04x", req
->handle
);
4300 dump_uint64( ", ckey=", &req
->ckey
);
4301 fprintf( stderr
, ", chandle=%04x", req
->chandle
);
4304 static void dump_add_fd_completion_request( const struct add_fd_completion_request
*req
)
4306 fprintf( stderr
, " handle=%04x", req
->handle
);
4307 dump_uint64( ", cvalue=", &req
->cvalue
);
4308 dump_uint64( ", information=", &req
->information
);
4309 fprintf( stderr
, ", status=%08x", req
->status
);
4310 fprintf( stderr
, ", async=%d", req
->async
);
4313 static void dump_set_fd_completion_mode_request( const struct set_fd_completion_mode_request
*req
)
4315 fprintf( stderr
, " handle=%04x", req
->handle
);
4316 fprintf( stderr
, ", flags=%08x", req
->flags
);
4319 static void dump_set_fd_disp_info_request( const struct set_fd_disp_info_request
*req
)
4321 fprintf( stderr
, " handle=%04x", req
->handle
);
4322 fprintf( stderr
, ", unlink=%d", req
->unlink
);
4325 static void dump_set_fd_name_info_request( const struct set_fd_name_info_request
*req
)
4327 fprintf( stderr
, " handle=%04x", req
->handle
);
4328 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
4329 fprintf( stderr
, ", namelen=%u", req
->namelen
);
4330 fprintf( stderr
, ", link=%d", req
->link
);
4331 fprintf( stderr
, ", replace=%d", req
->replace
);
4332 dump_varargs_unicode_str( ", name=", min(cur_size
,req
->namelen
) );
4333 dump_varargs_string( ", filename=", cur_size
);
4336 static void dump_set_fd_eof_info_request( const struct set_fd_eof_info_request
*req
)
4338 fprintf( stderr
, " handle=%04x", req
->handle
);
4339 dump_uint64( ", eof=", &req
->eof
);
4342 static void dump_get_window_layered_info_request( const struct get_window_layered_info_request
*req
)
4344 fprintf( stderr
, " handle=%08x", req
->handle
);
4347 static void dump_get_window_layered_info_reply( const struct get_window_layered_info_reply
*req
)
4349 fprintf( stderr
, " color_key=%08x", req
->color_key
);
4350 fprintf( stderr
, ", alpha=%08x", req
->alpha
);
4351 fprintf( stderr
, ", flags=%08x", req
->flags
);
4354 static void dump_set_window_layered_info_request( const struct set_window_layered_info_request
*req
)
4356 fprintf( stderr
, " handle=%08x", req
->handle
);
4357 fprintf( stderr
, ", color_key=%08x", req
->color_key
);
4358 fprintf( stderr
, ", alpha=%08x", req
->alpha
);
4359 fprintf( stderr
, ", flags=%08x", req
->flags
);
4362 static void dump_alloc_user_handle_request( const struct alloc_user_handle_request
*req
)
4366 static void dump_alloc_user_handle_reply( const struct alloc_user_handle_reply
*req
)
4368 fprintf( stderr
, " handle=%08x", req
->handle
);
4371 static void dump_free_user_handle_request( const struct free_user_handle_request
*req
)
4373 fprintf( stderr
, " handle=%08x", req
->handle
);
4376 static void dump_set_cursor_request( const struct set_cursor_request
*req
)
4378 fprintf( stderr
, " flags=%08x", req
->flags
);
4379 fprintf( stderr
, ", handle=%08x", req
->handle
);
4380 fprintf( stderr
, ", show_count=%d", req
->show_count
);
4381 fprintf( stderr
, ", x=%d", req
->x
);
4382 fprintf( stderr
, ", y=%d", req
->y
);
4383 dump_rectangle( ", clip=", &req
->clip
);
4384 fprintf( stderr
, ", clip_msg=%08x", req
->clip_msg
);
4387 static void dump_set_cursor_reply( const struct set_cursor_reply
*req
)
4389 fprintf( stderr
, " prev_handle=%08x", req
->prev_handle
);
4390 fprintf( stderr
, ", prev_count=%d", req
->prev_count
);
4391 fprintf( stderr
, ", prev_x=%d", req
->prev_x
);
4392 fprintf( stderr
, ", prev_y=%d", req
->prev_y
);
4393 fprintf( stderr
, ", new_x=%d", req
->new_x
);
4394 fprintf( stderr
, ", new_y=%d", req
->new_y
);
4395 dump_rectangle( ", new_clip=", &req
->new_clip
);
4396 fprintf( stderr
, ", last_change=%08x", req
->last_change
);
4399 static void dump_get_cursor_history_request( const struct get_cursor_history_request
*req
)
4403 static void dump_get_cursor_history_reply( const struct get_cursor_history_reply
*req
)
4405 dump_varargs_cursor_positions( " history=", cur_size
);
4408 static void dump_get_rawinput_buffer_request( const struct get_rawinput_buffer_request
*req
)
4410 fprintf( stderr
, " rawinput_size=%u", req
->rawinput_size
);
4411 fprintf( stderr
, ", buffer_size=%u", req
->buffer_size
);
4414 static void dump_get_rawinput_buffer_reply( const struct get_rawinput_buffer_reply
*req
)
4416 fprintf( stderr
, " next_size=%u", req
->next_size
);
4417 fprintf( stderr
, ", count=%08x", req
->count
);
4418 dump_varargs_bytes( ", data=", cur_size
);
4421 static void dump_update_rawinput_devices_request( const struct update_rawinput_devices_request
*req
)
4423 dump_varargs_rawinput_devices( " devices=", cur_size
);
4426 static void dump_create_job_request( const struct create_job_request
*req
)
4428 fprintf( stderr
, " access=%08x", req
->access
);
4429 dump_varargs_object_attributes( ", objattr=", cur_size
);
4432 static void dump_create_job_reply( const struct create_job_reply
*req
)
4434 fprintf( stderr
, " handle=%04x", req
->handle
);
4437 static void dump_open_job_request( const struct open_job_request
*req
)
4439 fprintf( stderr
, " access=%08x", req
->access
);
4440 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
4441 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
4442 dump_varargs_unicode_str( ", name=", cur_size
);
4445 static void dump_open_job_reply( const struct open_job_reply
*req
)
4447 fprintf( stderr
, " handle=%04x", req
->handle
);
4450 static void dump_assign_job_request( const struct assign_job_request
*req
)
4452 fprintf( stderr
, " job=%04x", req
->job
);
4453 fprintf( stderr
, ", process=%04x", req
->process
);
4456 static void dump_process_in_job_request( const struct process_in_job_request
*req
)
4458 fprintf( stderr
, " job=%04x", req
->job
);
4459 fprintf( stderr
, ", process=%04x", req
->process
);
4462 static void dump_set_job_limits_request( const struct set_job_limits_request
*req
)
4464 fprintf( stderr
, " handle=%04x", req
->handle
);
4465 fprintf( stderr
, ", limit_flags=%08x", req
->limit_flags
);
4468 static void dump_set_job_completion_port_request( const struct set_job_completion_port_request
*req
)
4470 fprintf( stderr
, " job=%04x", req
->job
);
4471 fprintf( stderr
, ", port=%04x", req
->port
);
4472 dump_uint64( ", key=", &req
->key
);
4475 static void dump_get_job_info_request( const struct get_job_info_request
*req
)
4477 fprintf( stderr
, " handle=%04x", req
->handle
);
4480 static void dump_get_job_info_reply( const struct get_job_info_reply
*req
)
4482 fprintf( stderr
, " total_processes=%d", req
->total_processes
);
4483 fprintf( stderr
, ", active_processes=%d", req
->active_processes
);
4484 dump_varargs_uints( ", pids=", cur_size
);
4487 static void dump_terminate_job_request( const struct terminate_job_request
*req
)
4489 fprintf( stderr
, " handle=%04x", req
->handle
);
4490 fprintf( stderr
, ", status=%d", req
->status
);
4493 static void dump_suspend_process_request( const struct suspend_process_request
*req
)
4495 fprintf( stderr
, " handle=%04x", req
->handle
);
4498 static void dump_resume_process_request( const struct resume_process_request
*req
)
4500 fprintf( stderr
, " handle=%04x", req
->handle
);
4503 static void dump_get_next_thread_request( const struct get_next_thread_request
*req
)
4505 fprintf( stderr
, " process=%04x", req
->process
);
4506 fprintf( stderr
, ", last=%04x", req
->last
);
4507 fprintf( stderr
, ", access=%08x", req
->access
);
4508 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
4509 fprintf( stderr
, ", flags=%08x", req
->flags
);
4512 static void dump_get_next_thread_reply( const struct get_next_thread_reply
*req
)
4514 fprintf( stderr
, " handle=%04x", req
->handle
);
4517 static const dump_func req_dumpers
[REQ_NB_REQUESTS
] = {
4518 (dump_func
)dump_new_process_request
,
4519 (dump_func
)dump_get_new_process_info_request
,
4520 (dump_func
)dump_new_thread_request
,
4521 (dump_func
)dump_get_startup_info_request
,
4522 (dump_func
)dump_init_process_done_request
,
4523 (dump_func
)dump_init_first_thread_request
,
4524 (dump_func
)dump_init_thread_request
,
4525 (dump_func
)dump_terminate_process_request
,
4526 (dump_func
)dump_terminate_thread_request
,
4527 (dump_func
)dump_get_process_info_request
,
4528 (dump_func
)dump_get_process_debug_info_request
,
4529 (dump_func
)dump_get_process_image_name_request
,
4530 (dump_func
)dump_get_process_vm_counters_request
,
4531 (dump_func
)dump_set_process_info_request
,
4532 (dump_func
)dump_get_thread_info_request
,
4533 (dump_func
)dump_get_thread_times_request
,
4534 (dump_func
)dump_set_thread_info_request
,
4535 (dump_func
)dump_suspend_thread_request
,
4536 (dump_func
)dump_resume_thread_request
,
4537 (dump_func
)dump_queue_apc_request
,
4538 (dump_func
)dump_get_apc_result_request
,
4539 (dump_func
)dump_close_handle_request
,
4540 (dump_func
)dump_set_handle_info_request
,
4541 (dump_func
)dump_dup_handle_request
,
4542 (dump_func
)dump_compare_objects_request
,
4543 (dump_func
)dump_make_temporary_request
,
4544 (dump_func
)dump_open_process_request
,
4545 (dump_func
)dump_open_thread_request
,
4546 (dump_func
)dump_select_request
,
4547 (dump_func
)dump_create_event_request
,
4548 (dump_func
)dump_event_op_request
,
4549 (dump_func
)dump_query_event_request
,
4550 (dump_func
)dump_open_event_request
,
4551 (dump_func
)dump_create_keyed_event_request
,
4552 (dump_func
)dump_open_keyed_event_request
,
4553 (dump_func
)dump_create_mutex_request
,
4554 (dump_func
)dump_release_mutex_request
,
4555 (dump_func
)dump_open_mutex_request
,
4556 (dump_func
)dump_query_mutex_request
,
4557 (dump_func
)dump_create_semaphore_request
,
4558 (dump_func
)dump_release_semaphore_request
,
4559 (dump_func
)dump_query_semaphore_request
,
4560 (dump_func
)dump_open_semaphore_request
,
4561 (dump_func
)dump_create_file_request
,
4562 (dump_func
)dump_open_file_object_request
,
4563 (dump_func
)dump_alloc_file_handle_request
,
4564 (dump_func
)dump_get_handle_unix_name_request
,
4565 (dump_func
)dump_get_handle_fd_request
,
4566 (dump_func
)dump_get_directory_cache_entry_request
,
4567 (dump_func
)dump_flush_request
,
4568 (dump_func
)dump_get_file_info_request
,
4569 (dump_func
)dump_get_volume_info_request
,
4570 (dump_func
)dump_lock_file_request
,
4571 (dump_func
)dump_unlock_file_request
,
4572 (dump_func
)dump_recv_socket_request
,
4573 (dump_func
)dump_send_socket_request
,
4574 (dump_func
)dump_socket_send_icmp_id_request
,
4575 (dump_func
)dump_socket_get_icmp_id_request
,
4576 (dump_func
)dump_get_next_console_request_request
,
4577 (dump_func
)dump_read_directory_changes_request
,
4578 (dump_func
)dump_read_change_request
,
4579 (dump_func
)dump_create_mapping_request
,
4580 (dump_func
)dump_open_mapping_request
,
4581 (dump_func
)dump_get_mapping_info_request
,
4582 (dump_func
)dump_map_view_request
,
4583 (dump_func
)dump_unmap_view_request
,
4584 (dump_func
)dump_get_mapping_committed_range_request
,
4585 (dump_func
)dump_add_mapping_committed_range_request
,
4586 (dump_func
)dump_is_same_mapping_request
,
4587 (dump_func
)dump_get_mapping_filename_request
,
4588 (dump_func
)dump_list_processes_request
,
4589 (dump_func
)dump_create_debug_obj_request
,
4590 (dump_func
)dump_wait_debug_event_request
,
4591 (dump_func
)dump_queue_exception_event_request
,
4592 (dump_func
)dump_get_exception_status_request
,
4593 (dump_func
)dump_continue_debug_event_request
,
4594 (dump_func
)dump_debug_process_request
,
4595 (dump_func
)dump_set_debug_obj_info_request
,
4596 (dump_func
)dump_read_process_memory_request
,
4597 (dump_func
)dump_write_process_memory_request
,
4598 (dump_func
)dump_create_key_request
,
4599 (dump_func
)dump_open_key_request
,
4600 (dump_func
)dump_delete_key_request
,
4601 (dump_func
)dump_flush_key_request
,
4602 (dump_func
)dump_enum_key_request
,
4603 (dump_func
)dump_set_key_value_request
,
4604 (dump_func
)dump_get_key_value_request
,
4605 (dump_func
)dump_enum_key_value_request
,
4606 (dump_func
)dump_delete_key_value_request
,
4607 (dump_func
)dump_load_registry_request
,
4608 (dump_func
)dump_unload_registry_request
,
4609 (dump_func
)dump_save_registry_request
,
4610 (dump_func
)dump_set_registry_notification_request
,
4611 (dump_func
)dump_rename_key_request
,
4612 (dump_func
)dump_create_timer_request
,
4613 (dump_func
)dump_open_timer_request
,
4614 (dump_func
)dump_set_timer_request
,
4615 (dump_func
)dump_cancel_timer_request
,
4616 (dump_func
)dump_get_timer_info_request
,
4617 (dump_func
)dump_get_thread_context_request
,
4618 (dump_func
)dump_set_thread_context_request
,
4619 (dump_func
)dump_get_selector_entry_request
,
4620 (dump_func
)dump_add_atom_request
,
4621 (dump_func
)dump_delete_atom_request
,
4622 (dump_func
)dump_find_atom_request
,
4623 (dump_func
)dump_get_atom_information_request
,
4624 (dump_func
)dump_get_msg_queue_request
,
4625 (dump_func
)dump_set_queue_fd_request
,
4626 (dump_func
)dump_set_queue_mask_request
,
4627 (dump_func
)dump_get_queue_status_request
,
4628 (dump_func
)dump_get_process_idle_event_request
,
4629 (dump_func
)dump_send_message_request
,
4630 (dump_func
)dump_post_quit_message_request
,
4631 (dump_func
)dump_send_hardware_message_request
,
4632 (dump_func
)dump_get_message_request
,
4633 (dump_func
)dump_reply_message_request
,
4634 (dump_func
)dump_accept_hardware_message_request
,
4635 (dump_func
)dump_get_message_reply_request
,
4636 (dump_func
)dump_set_win_timer_request
,
4637 (dump_func
)dump_kill_win_timer_request
,
4638 (dump_func
)dump_is_window_hung_request
,
4639 (dump_func
)dump_get_serial_info_request
,
4640 (dump_func
)dump_set_serial_info_request
,
4641 (dump_func
)dump_cancel_sync_request
,
4642 (dump_func
)dump_register_async_request
,
4643 (dump_func
)dump_cancel_async_request
,
4644 (dump_func
)dump_get_async_result_request
,
4645 (dump_func
)dump_set_async_direct_result_request
,
4646 (dump_func
)dump_read_request
,
4647 (dump_func
)dump_write_request
,
4648 (dump_func
)dump_ioctl_request
,
4649 (dump_func
)dump_set_irp_result_request
,
4650 (dump_func
)dump_create_named_pipe_request
,
4651 (dump_func
)dump_set_named_pipe_info_request
,
4652 (dump_func
)dump_create_window_request
,
4653 (dump_func
)dump_destroy_window_request
,
4654 (dump_func
)dump_get_desktop_window_request
,
4655 (dump_func
)dump_set_window_owner_request
,
4656 (dump_func
)dump_get_window_info_request
,
4657 (dump_func
)dump_set_window_info_request
,
4658 (dump_func
)dump_set_parent_request
,
4659 (dump_func
)dump_get_window_parents_request
,
4660 (dump_func
)dump_get_window_children_request
,
4661 (dump_func
)dump_get_window_children_from_point_request
,
4662 (dump_func
)dump_get_window_tree_request
,
4663 (dump_func
)dump_set_window_pos_request
,
4664 (dump_func
)dump_get_window_rectangles_request
,
4665 (dump_func
)dump_get_window_text_request
,
4666 (dump_func
)dump_set_window_text_request
,
4667 (dump_func
)dump_get_windows_offset_request
,
4668 (dump_func
)dump_get_visible_region_request
,
4669 (dump_func
)dump_get_surface_region_request
,
4670 (dump_func
)dump_get_window_region_request
,
4671 (dump_func
)dump_set_window_region_request
,
4672 (dump_func
)dump_get_update_region_request
,
4673 (dump_func
)dump_update_window_zorder_request
,
4674 (dump_func
)dump_redraw_window_request
,
4675 (dump_func
)dump_set_window_property_request
,
4676 (dump_func
)dump_remove_window_property_request
,
4677 (dump_func
)dump_get_window_property_request
,
4678 (dump_func
)dump_get_window_properties_request
,
4679 (dump_func
)dump_create_winstation_request
,
4680 (dump_func
)dump_open_winstation_request
,
4681 (dump_func
)dump_close_winstation_request
,
4682 (dump_func
)dump_get_process_winstation_request
,
4683 (dump_func
)dump_set_process_winstation_request
,
4684 (dump_func
)dump_enum_winstation_request
,
4685 (dump_func
)dump_create_desktop_request
,
4686 (dump_func
)dump_open_desktop_request
,
4687 (dump_func
)dump_open_input_desktop_request
,
4688 (dump_func
)dump_close_desktop_request
,
4689 (dump_func
)dump_get_thread_desktop_request
,
4690 (dump_func
)dump_set_thread_desktop_request
,
4691 (dump_func
)dump_enum_desktop_request
,
4692 (dump_func
)dump_set_user_object_info_request
,
4693 (dump_func
)dump_register_hotkey_request
,
4694 (dump_func
)dump_unregister_hotkey_request
,
4695 (dump_func
)dump_attach_thread_input_request
,
4696 (dump_func
)dump_get_thread_input_request
,
4697 (dump_func
)dump_get_last_input_time_request
,
4698 (dump_func
)dump_get_key_state_request
,
4699 (dump_func
)dump_set_key_state_request
,
4700 (dump_func
)dump_set_foreground_window_request
,
4701 (dump_func
)dump_set_focus_window_request
,
4702 (dump_func
)dump_set_active_window_request
,
4703 (dump_func
)dump_set_capture_window_request
,
4704 (dump_func
)dump_set_caret_window_request
,
4705 (dump_func
)dump_set_caret_info_request
,
4706 (dump_func
)dump_set_hook_request
,
4707 (dump_func
)dump_remove_hook_request
,
4708 (dump_func
)dump_start_hook_chain_request
,
4709 (dump_func
)dump_finish_hook_chain_request
,
4710 (dump_func
)dump_get_hook_info_request
,
4711 (dump_func
)dump_create_class_request
,
4712 (dump_func
)dump_destroy_class_request
,
4713 (dump_func
)dump_set_class_info_request
,
4714 (dump_func
)dump_open_clipboard_request
,
4715 (dump_func
)dump_close_clipboard_request
,
4716 (dump_func
)dump_empty_clipboard_request
,
4717 (dump_func
)dump_set_clipboard_data_request
,
4718 (dump_func
)dump_get_clipboard_data_request
,
4719 (dump_func
)dump_get_clipboard_formats_request
,
4720 (dump_func
)dump_enum_clipboard_formats_request
,
4721 (dump_func
)dump_release_clipboard_request
,
4722 (dump_func
)dump_get_clipboard_info_request
,
4723 (dump_func
)dump_set_clipboard_viewer_request
,
4724 (dump_func
)dump_add_clipboard_listener_request
,
4725 (dump_func
)dump_remove_clipboard_listener_request
,
4726 (dump_func
)dump_open_token_request
,
4727 (dump_func
)dump_set_global_windows_request
,
4728 (dump_func
)dump_adjust_token_privileges_request
,
4729 (dump_func
)dump_get_token_privileges_request
,
4730 (dump_func
)dump_check_token_privileges_request
,
4731 (dump_func
)dump_duplicate_token_request
,
4732 (dump_func
)dump_filter_token_request
,
4733 (dump_func
)dump_access_check_request
,
4734 (dump_func
)dump_get_token_sid_request
,
4735 (dump_func
)dump_get_token_groups_request
,
4736 (dump_func
)dump_get_token_default_dacl_request
,
4737 (dump_func
)dump_set_token_default_dacl_request
,
4738 (dump_func
)dump_set_security_object_request
,
4739 (dump_func
)dump_get_security_object_request
,
4740 (dump_func
)dump_get_system_handles_request
,
4741 (dump_func
)dump_create_mailslot_request
,
4742 (dump_func
)dump_set_mailslot_info_request
,
4743 (dump_func
)dump_create_directory_request
,
4744 (dump_func
)dump_open_directory_request
,
4745 (dump_func
)dump_get_directory_entry_request
,
4746 (dump_func
)dump_create_symlink_request
,
4747 (dump_func
)dump_open_symlink_request
,
4748 (dump_func
)dump_query_symlink_request
,
4749 (dump_func
)dump_get_object_info_request
,
4750 (dump_func
)dump_get_object_name_request
,
4751 (dump_func
)dump_get_object_type_request
,
4752 (dump_func
)dump_get_object_types_request
,
4753 (dump_func
)dump_allocate_locally_unique_id_request
,
4754 (dump_func
)dump_create_device_manager_request
,
4755 (dump_func
)dump_create_device_request
,
4756 (dump_func
)dump_delete_device_request
,
4757 (dump_func
)dump_get_next_device_request_request
,
4758 (dump_func
)dump_get_kernel_object_ptr_request
,
4759 (dump_func
)dump_set_kernel_object_ptr_request
,
4760 (dump_func
)dump_grab_kernel_object_request
,
4761 (dump_func
)dump_release_kernel_object_request
,
4762 (dump_func
)dump_get_kernel_object_handle_request
,
4763 (dump_func
)dump_make_process_system_request
,
4764 (dump_func
)dump_get_token_info_request
,
4765 (dump_func
)dump_create_linked_token_request
,
4766 (dump_func
)dump_create_completion_request
,
4767 (dump_func
)dump_open_completion_request
,
4768 (dump_func
)dump_add_completion_request
,
4769 (dump_func
)dump_remove_completion_request
,
4770 (dump_func
)dump_query_completion_request
,
4771 (dump_func
)dump_set_completion_info_request
,
4772 (dump_func
)dump_add_fd_completion_request
,
4773 (dump_func
)dump_set_fd_completion_mode_request
,
4774 (dump_func
)dump_set_fd_disp_info_request
,
4775 (dump_func
)dump_set_fd_name_info_request
,
4776 (dump_func
)dump_set_fd_eof_info_request
,
4777 (dump_func
)dump_get_window_layered_info_request
,
4778 (dump_func
)dump_set_window_layered_info_request
,
4779 (dump_func
)dump_alloc_user_handle_request
,
4780 (dump_func
)dump_free_user_handle_request
,
4781 (dump_func
)dump_set_cursor_request
,
4782 (dump_func
)dump_get_cursor_history_request
,
4783 (dump_func
)dump_get_rawinput_buffer_request
,
4784 (dump_func
)dump_update_rawinput_devices_request
,
4785 (dump_func
)dump_create_job_request
,
4786 (dump_func
)dump_open_job_request
,
4787 (dump_func
)dump_assign_job_request
,
4788 (dump_func
)dump_process_in_job_request
,
4789 (dump_func
)dump_set_job_limits_request
,
4790 (dump_func
)dump_set_job_completion_port_request
,
4791 (dump_func
)dump_get_job_info_request
,
4792 (dump_func
)dump_terminate_job_request
,
4793 (dump_func
)dump_suspend_process_request
,
4794 (dump_func
)dump_resume_process_request
,
4795 (dump_func
)dump_get_next_thread_request
,
4798 static const dump_func reply_dumpers
[REQ_NB_REQUESTS
] = {
4799 (dump_func
)dump_new_process_reply
,
4800 (dump_func
)dump_get_new_process_info_reply
,
4801 (dump_func
)dump_new_thread_reply
,
4802 (dump_func
)dump_get_startup_info_reply
,
4803 (dump_func
)dump_init_process_done_reply
,
4804 (dump_func
)dump_init_first_thread_reply
,
4805 (dump_func
)dump_init_thread_reply
,
4806 (dump_func
)dump_terminate_process_reply
,
4807 (dump_func
)dump_terminate_thread_reply
,
4808 (dump_func
)dump_get_process_info_reply
,
4809 (dump_func
)dump_get_process_debug_info_reply
,
4810 (dump_func
)dump_get_process_image_name_reply
,
4811 (dump_func
)dump_get_process_vm_counters_reply
,
4813 (dump_func
)dump_get_thread_info_reply
,
4814 (dump_func
)dump_get_thread_times_reply
,
4816 (dump_func
)dump_suspend_thread_reply
,
4817 (dump_func
)dump_resume_thread_reply
,
4818 (dump_func
)dump_queue_apc_reply
,
4819 (dump_func
)dump_get_apc_result_reply
,
4821 (dump_func
)dump_set_handle_info_reply
,
4822 (dump_func
)dump_dup_handle_reply
,
4825 (dump_func
)dump_open_process_reply
,
4826 (dump_func
)dump_open_thread_reply
,
4827 (dump_func
)dump_select_reply
,
4828 (dump_func
)dump_create_event_reply
,
4829 (dump_func
)dump_event_op_reply
,
4830 (dump_func
)dump_query_event_reply
,
4831 (dump_func
)dump_open_event_reply
,
4832 (dump_func
)dump_create_keyed_event_reply
,
4833 (dump_func
)dump_open_keyed_event_reply
,
4834 (dump_func
)dump_create_mutex_reply
,
4835 (dump_func
)dump_release_mutex_reply
,
4836 (dump_func
)dump_open_mutex_reply
,
4837 (dump_func
)dump_query_mutex_reply
,
4838 (dump_func
)dump_create_semaphore_reply
,
4839 (dump_func
)dump_release_semaphore_reply
,
4840 (dump_func
)dump_query_semaphore_reply
,
4841 (dump_func
)dump_open_semaphore_reply
,
4842 (dump_func
)dump_create_file_reply
,
4843 (dump_func
)dump_open_file_object_reply
,
4844 (dump_func
)dump_alloc_file_handle_reply
,
4845 (dump_func
)dump_get_handle_unix_name_reply
,
4846 (dump_func
)dump_get_handle_fd_reply
,
4847 (dump_func
)dump_get_directory_cache_entry_reply
,
4848 (dump_func
)dump_flush_reply
,
4849 (dump_func
)dump_get_file_info_reply
,
4850 (dump_func
)dump_get_volume_info_reply
,
4851 (dump_func
)dump_lock_file_reply
,
4853 (dump_func
)dump_recv_socket_reply
,
4854 (dump_func
)dump_send_socket_reply
,
4856 (dump_func
)dump_socket_get_icmp_id_reply
,
4857 (dump_func
)dump_get_next_console_request_reply
,
4859 (dump_func
)dump_read_change_reply
,
4860 (dump_func
)dump_create_mapping_reply
,
4861 (dump_func
)dump_open_mapping_reply
,
4862 (dump_func
)dump_get_mapping_info_reply
,
4865 (dump_func
)dump_get_mapping_committed_range_reply
,
4868 (dump_func
)dump_get_mapping_filename_reply
,
4869 (dump_func
)dump_list_processes_reply
,
4870 (dump_func
)dump_create_debug_obj_reply
,
4871 (dump_func
)dump_wait_debug_event_reply
,
4872 (dump_func
)dump_queue_exception_event_reply
,
4877 (dump_func
)dump_read_process_memory_reply
,
4879 (dump_func
)dump_create_key_reply
,
4880 (dump_func
)dump_open_key_reply
,
4883 (dump_func
)dump_enum_key_reply
,
4885 (dump_func
)dump_get_key_value_reply
,
4886 (dump_func
)dump_enum_key_value_reply
,
4893 (dump_func
)dump_create_timer_reply
,
4894 (dump_func
)dump_open_timer_reply
,
4895 (dump_func
)dump_set_timer_reply
,
4896 (dump_func
)dump_cancel_timer_reply
,
4897 (dump_func
)dump_get_timer_info_reply
,
4898 (dump_func
)dump_get_thread_context_reply
,
4899 (dump_func
)dump_set_thread_context_reply
,
4900 (dump_func
)dump_get_selector_entry_reply
,
4901 (dump_func
)dump_add_atom_reply
,
4903 (dump_func
)dump_find_atom_reply
,
4904 (dump_func
)dump_get_atom_information_reply
,
4905 (dump_func
)dump_get_msg_queue_reply
,
4907 (dump_func
)dump_set_queue_mask_reply
,
4908 (dump_func
)dump_get_queue_status_reply
,
4909 (dump_func
)dump_get_process_idle_event_reply
,
4912 (dump_func
)dump_send_hardware_message_reply
,
4913 (dump_func
)dump_get_message_reply
,
4916 (dump_func
)dump_get_message_reply_reply
,
4917 (dump_func
)dump_set_win_timer_reply
,
4919 (dump_func
)dump_is_window_hung_reply
,
4920 (dump_func
)dump_get_serial_info_reply
,
4925 (dump_func
)dump_get_async_result_reply
,
4926 (dump_func
)dump_set_async_direct_result_reply
,
4927 (dump_func
)dump_read_reply
,
4928 (dump_func
)dump_write_reply
,
4929 (dump_func
)dump_ioctl_reply
,
4931 (dump_func
)dump_create_named_pipe_reply
,
4933 (dump_func
)dump_create_window_reply
,
4935 (dump_func
)dump_get_desktop_window_reply
,
4936 (dump_func
)dump_set_window_owner_reply
,
4937 (dump_func
)dump_get_window_info_reply
,
4938 (dump_func
)dump_set_window_info_reply
,
4939 (dump_func
)dump_set_parent_reply
,
4940 (dump_func
)dump_get_window_parents_reply
,
4941 (dump_func
)dump_get_window_children_reply
,
4942 (dump_func
)dump_get_window_children_from_point_reply
,
4943 (dump_func
)dump_get_window_tree_reply
,
4944 (dump_func
)dump_set_window_pos_reply
,
4945 (dump_func
)dump_get_window_rectangles_reply
,
4946 (dump_func
)dump_get_window_text_reply
,
4948 (dump_func
)dump_get_windows_offset_reply
,
4949 (dump_func
)dump_get_visible_region_reply
,
4950 (dump_func
)dump_get_surface_region_reply
,
4951 (dump_func
)dump_get_window_region_reply
,
4953 (dump_func
)dump_get_update_region_reply
,
4957 (dump_func
)dump_remove_window_property_reply
,
4958 (dump_func
)dump_get_window_property_reply
,
4959 (dump_func
)dump_get_window_properties_reply
,
4960 (dump_func
)dump_create_winstation_reply
,
4961 (dump_func
)dump_open_winstation_reply
,
4963 (dump_func
)dump_get_process_winstation_reply
,
4965 (dump_func
)dump_enum_winstation_reply
,
4966 (dump_func
)dump_create_desktop_reply
,
4967 (dump_func
)dump_open_desktop_reply
,
4968 (dump_func
)dump_open_input_desktop_reply
,
4970 (dump_func
)dump_get_thread_desktop_reply
,
4972 (dump_func
)dump_enum_desktop_reply
,
4973 (dump_func
)dump_set_user_object_info_reply
,
4974 (dump_func
)dump_register_hotkey_reply
,
4975 (dump_func
)dump_unregister_hotkey_reply
,
4977 (dump_func
)dump_get_thread_input_reply
,
4978 (dump_func
)dump_get_last_input_time_reply
,
4979 (dump_func
)dump_get_key_state_reply
,
4981 (dump_func
)dump_set_foreground_window_reply
,
4982 (dump_func
)dump_set_focus_window_reply
,
4983 (dump_func
)dump_set_active_window_reply
,
4984 (dump_func
)dump_set_capture_window_reply
,
4985 (dump_func
)dump_set_caret_window_reply
,
4986 (dump_func
)dump_set_caret_info_reply
,
4987 (dump_func
)dump_set_hook_reply
,
4988 (dump_func
)dump_remove_hook_reply
,
4989 (dump_func
)dump_start_hook_chain_reply
,
4991 (dump_func
)dump_get_hook_info_reply
,
4992 (dump_func
)dump_create_class_reply
,
4993 (dump_func
)dump_destroy_class_reply
,
4994 (dump_func
)dump_set_class_info_reply
,
4995 (dump_func
)dump_open_clipboard_reply
,
4996 (dump_func
)dump_close_clipboard_reply
,
4998 (dump_func
)dump_set_clipboard_data_reply
,
4999 (dump_func
)dump_get_clipboard_data_reply
,
5000 (dump_func
)dump_get_clipboard_formats_reply
,
5001 (dump_func
)dump_enum_clipboard_formats_reply
,
5002 (dump_func
)dump_release_clipboard_reply
,
5003 (dump_func
)dump_get_clipboard_info_reply
,
5004 (dump_func
)dump_set_clipboard_viewer_reply
,
5007 (dump_func
)dump_open_token_reply
,
5008 (dump_func
)dump_set_global_windows_reply
,
5009 (dump_func
)dump_adjust_token_privileges_reply
,
5010 (dump_func
)dump_get_token_privileges_reply
,
5011 (dump_func
)dump_check_token_privileges_reply
,
5012 (dump_func
)dump_duplicate_token_reply
,
5013 (dump_func
)dump_filter_token_reply
,
5014 (dump_func
)dump_access_check_reply
,
5015 (dump_func
)dump_get_token_sid_reply
,
5016 (dump_func
)dump_get_token_groups_reply
,
5017 (dump_func
)dump_get_token_default_dacl_reply
,
5020 (dump_func
)dump_get_security_object_reply
,
5021 (dump_func
)dump_get_system_handles_reply
,
5022 (dump_func
)dump_create_mailslot_reply
,
5023 (dump_func
)dump_set_mailslot_info_reply
,
5024 (dump_func
)dump_create_directory_reply
,
5025 (dump_func
)dump_open_directory_reply
,
5026 (dump_func
)dump_get_directory_entry_reply
,
5027 (dump_func
)dump_create_symlink_reply
,
5028 (dump_func
)dump_open_symlink_reply
,
5029 (dump_func
)dump_query_symlink_reply
,
5030 (dump_func
)dump_get_object_info_reply
,
5031 (dump_func
)dump_get_object_name_reply
,
5032 (dump_func
)dump_get_object_type_reply
,
5033 (dump_func
)dump_get_object_types_reply
,
5034 (dump_func
)dump_allocate_locally_unique_id_reply
,
5035 (dump_func
)dump_create_device_manager_reply
,
5038 (dump_func
)dump_get_next_device_request_reply
,
5039 (dump_func
)dump_get_kernel_object_ptr_reply
,
5043 (dump_func
)dump_get_kernel_object_handle_reply
,
5044 (dump_func
)dump_make_process_system_reply
,
5045 (dump_func
)dump_get_token_info_reply
,
5046 (dump_func
)dump_create_linked_token_reply
,
5047 (dump_func
)dump_create_completion_reply
,
5048 (dump_func
)dump_open_completion_reply
,
5050 (dump_func
)dump_remove_completion_reply
,
5051 (dump_func
)dump_query_completion_reply
,
5058 (dump_func
)dump_get_window_layered_info_reply
,
5060 (dump_func
)dump_alloc_user_handle_reply
,
5062 (dump_func
)dump_set_cursor_reply
,
5063 (dump_func
)dump_get_cursor_history_reply
,
5064 (dump_func
)dump_get_rawinput_buffer_reply
,
5066 (dump_func
)dump_create_job_reply
,
5067 (dump_func
)dump_open_job_reply
,
5072 (dump_func
)dump_get_job_info_reply
,
5076 (dump_func
)dump_get_next_thread_reply
,
5079 static const char * const req_names
[REQ_NB_REQUESTS
] = {
5081 "get_new_process_info",
5084 "init_process_done",
5085 "init_first_thread",
5087 "terminate_process",
5090 "get_process_debug_info",
5091 "get_process_image_name",
5092 "get_process_vm_counters",
5113 "create_keyed_event",
5120 "release_semaphore",
5125 "alloc_file_handle",
5126 "get_handle_unix_name",
5128 "get_directory_cache_entry",
5136 "socket_send_icmp_id",
5137 "socket_get_icmp_id",
5138 "get_next_console_request",
5139 "read_directory_changes",
5146 "get_mapping_committed_range",
5147 "add_mapping_committed_range",
5149 "get_mapping_filename",
5153 "queue_exception_event",
5154 "get_exception_status",
5155 "continue_debug_event",
5157 "set_debug_obj_info",
5158 "read_process_memory",
5159 "write_process_memory",
5172 "set_registry_notification",
5179 "get_thread_context",
5180 "set_thread_context",
5181 "get_selector_entry",
5185 "get_atom_information",
5190 "get_process_idle_event",
5192 "post_quit_message",
5193 "send_hardware_message",
5196 "accept_hardware_message",
5197 "get_message_reply",
5207 "set_async_direct_result",
5212 "create_named_pipe",
5213 "set_named_pipe_info",
5216 "get_desktop_window",
5221 "get_window_parents",
5222 "get_window_children",
5223 "get_window_children_from_point",
5226 "get_window_rectangles",
5229 "get_windows_offset",
5230 "get_visible_region",
5231 "get_surface_region",
5232 "get_window_region",
5233 "set_window_region",
5234 "get_update_region",
5235 "update_window_zorder",
5237 "set_window_property",
5238 "remove_window_property",
5239 "get_window_property",
5240 "get_window_properties",
5241 "create_winstation",
5244 "get_process_winstation",
5245 "set_process_winstation",
5249 "open_input_desktop",
5251 "get_thread_desktop",
5252 "set_thread_desktop",
5254 "set_user_object_info",
5256 "unregister_hotkey",
5257 "attach_thread_input",
5259 "get_last_input_time",
5262 "set_foreground_window",
5264 "set_active_window",
5265 "set_capture_window",
5271 "finish_hook_chain",
5279 "set_clipboard_data",
5280 "get_clipboard_data",
5281 "get_clipboard_formats",
5282 "enum_clipboard_formats",
5283 "release_clipboard",
5284 "get_clipboard_info",
5285 "set_clipboard_viewer",
5286 "add_clipboard_listener",
5287 "remove_clipboard_listener",
5289 "set_global_windows",
5290 "adjust_token_privileges",
5291 "get_token_privileges",
5292 "check_token_privileges",
5298 "get_token_default_dacl",
5299 "set_token_default_dacl",
5300 "set_security_object",
5301 "get_security_object",
5302 "get_system_handles",
5304 "set_mailslot_info",
5307 "get_directory_entry",
5315 "allocate_locally_unique_id",
5316 "create_device_manager",
5319 "get_next_device_request",
5320 "get_kernel_object_ptr",
5321 "set_kernel_object_ptr",
5322 "grab_kernel_object",
5323 "release_kernel_object",
5324 "get_kernel_object_handle",
5325 "make_process_system",
5327 "create_linked_token",
5328 "create_completion",
5331 "remove_completion",
5333 "set_completion_info",
5334 "add_fd_completion",
5335 "set_fd_completion_mode",
5339 "get_window_layered_info",
5340 "set_window_layered_info",
5341 "alloc_user_handle",
5344 "get_cursor_history",
5345 "get_rawinput_buffer",
5346 "update_rawinput_devices",
5352 "set_job_completion_port",
5366 { "ABANDONED_WAIT_0", STATUS_ABANDONED_WAIT_0
},
5367 { "ACCESS_DENIED", STATUS_ACCESS_DENIED
},
5368 { "ACCESS_VIOLATION", STATUS_ACCESS_VIOLATION
},
5369 { "ADDRESS_ALREADY_ASSOCIATED", STATUS_ADDRESS_ALREADY_ASSOCIATED
},
5370 { "ALERTED", STATUS_ALERTED
},
5371 { "BAD_DEVICE_TYPE", STATUS_BAD_DEVICE_TYPE
},
5372 { "BAD_IMPERSONATION_LEVEL", STATUS_BAD_IMPERSONATION_LEVEL
},
5373 { "BUFFER_OVERFLOW", STATUS_BUFFER_OVERFLOW
},
5374 { "BUFFER_TOO_SMALL", STATUS_BUFFER_TOO_SMALL
},
5375 { "CANCELLED", STATUS_CANCELLED
},
5376 { "CANNOT_DELETE", STATUS_CANNOT_DELETE
},
5377 { "CANT_OPEN_ANONYMOUS", STATUS_CANT_OPEN_ANONYMOUS
},
5378 { "CHILD_MUST_BE_VOLATILE", STATUS_CHILD_MUST_BE_VOLATILE
},
5379 { "CONNECTION_ABORTED", STATUS_CONNECTION_ABORTED
},
5380 { "CONNECTION_ACTIVE", STATUS_CONNECTION_ACTIVE
},
5381 { "CONNECTION_REFUSED", STATUS_CONNECTION_REFUSED
},
5382 { "CONNECTION_RESET", STATUS_CONNECTION_RESET
},
5383 { "DEBUGGER_INACTIVE", STATUS_DEBUGGER_INACTIVE
},
5384 { "DEVICE_BUSY", STATUS_DEVICE_BUSY
},
5385 { "DEVICE_NOT_READY", STATUS_DEVICE_NOT_READY
},
5386 { "DIRECTORY_NOT_EMPTY", STATUS_DIRECTORY_NOT_EMPTY
},
5387 { "DISK_FULL", STATUS_DISK_FULL
},
5388 { "DLL_NOT_FOUND", STATUS_DLL_NOT_FOUND
},
5389 { "ERROR_CLASS_ALREADY_EXISTS", 0xc0010000 | ERROR_CLASS_ALREADY_EXISTS
},
5390 { "ERROR_CLASS_DOES_NOT_EXIST", 0xc0010000 | ERROR_CLASS_DOES_NOT_EXIST
},
5391 { "ERROR_CLASS_HAS_WINDOWS", 0xc0010000 | ERROR_CLASS_HAS_WINDOWS
},
5392 { "ERROR_CLIPBOARD_NOT_OPEN", 0xc0010000 | ERROR_CLIPBOARD_NOT_OPEN
},
5393 { "ERROR_HOTKEY_ALREADY_REGISTERED", 0xc0010000 | ERROR_HOTKEY_ALREADY_REGISTERED
},
5394 { "ERROR_HOTKEY_NOT_REGISTERED", 0xc0010000 | ERROR_HOTKEY_NOT_REGISTERED
},
5395 { "ERROR_INVALID_CURSOR_HANDLE", 0xc0010000 | ERROR_INVALID_CURSOR_HANDLE
},
5396 { "ERROR_INVALID_INDEX", 0xc0010000 | ERROR_INVALID_INDEX
},
5397 { "ERROR_INVALID_WINDOW_HANDLE", 0xc0010000 | ERROR_INVALID_WINDOW_HANDLE
},
5398 { "ERROR_NO_MORE_USER_HANDLES", 0xc0010000 | ERROR_NO_MORE_USER_HANDLES
},
5399 { "ERROR_WINDOW_OF_OTHER_THREAD", 0xc0010000 | ERROR_WINDOW_OF_OTHER_THREAD
},
5400 { "FILE_DELETED", STATUS_FILE_DELETED
},
5401 { "FILE_INVALID", STATUS_FILE_INVALID
},
5402 { "FILE_IS_A_DIRECTORY", STATUS_FILE_IS_A_DIRECTORY
},
5403 { "FILE_LOCK_CONFLICT", STATUS_FILE_LOCK_CONFLICT
},
5404 { "GENERIC_NOT_MAPPED", STATUS_GENERIC_NOT_MAPPED
},
5405 { "HANDLES_CLOSED", STATUS_HANDLES_CLOSED
},
5406 { "HANDLE_NOT_CLOSABLE", STATUS_HANDLE_NOT_CLOSABLE
},
5407 { "HOST_UNREACHABLE", STATUS_HOST_UNREACHABLE
},
5408 { "ILLEGAL_FUNCTION", STATUS_ILLEGAL_FUNCTION
},
5409 { "IMAGE_NOT_AT_BASE", STATUS_IMAGE_NOT_AT_BASE
},
5410 { "INFO_LENGTH_MISMATCH", STATUS_INFO_LENGTH_MISMATCH
},
5411 { "INSTANCE_NOT_AVAILABLE", STATUS_INSTANCE_NOT_AVAILABLE
},
5412 { "INSUFFICIENT_RESOURCES", STATUS_INSUFFICIENT_RESOURCES
},
5413 { "INVALID_ACL", STATUS_INVALID_ACL
},
5414 { "INVALID_ADDRESS", STATUS_INVALID_ADDRESS
},
5415 { "INVALID_ADDRESS_COMPONENT", STATUS_INVALID_ADDRESS_COMPONENT
},
5416 { "INVALID_CID", STATUS_INVALID_CID
},
5417 { "INVALID_CONNECTION", STATUS_INVALID_CONNECTION
},
5418 { "INVALID_DEVICE_REQUEST", STATUS_INVALID_DEVICE_REQUEST
},
5419 { "INVALID_FILE_FOR_SECTION", STATUS_INVALID_FILE_FOR_SECTION
},
5420 { "INVALID_HANDLE", STATUS_INVALID_HANDLE
},
5421 { "INVALID_IMAGE_FORMAT", STATUS_INVALID_IMAGE_FORMAT
},
5422 { "INVALID_IMAGE_NE_FORMAT", STATUS_INVALID_IMAGE_NE_FORMAT
},
5423 { "INVALID_IMAGE_NOT_MZ", STATUS_INVALID_IMAGE_NOT_MZ
},
5424 { "INVALID_IMAGE_PROTECT", STATUS_INVALID_IMAGE_PROTECT
},
5425 { "INVALID_IMAGE_WIN_16", STATUS_INVALID_IMAGE_WIN_16
},
5426 { "INVALID_IMAGE_WIN_64", STATUS_INVALID_IMAGE_WIN_64
},
5427 { "INVALID_LOCK_SEQUENCE", STATUS_INVALID_LOCK_SEQUENCE
},
5428 { "INVALID_OWNER", STATUS_INVALID_OWNER
},
5429 { "INVALID_PARAMETER", STATUS_INVALID_PARAMETER
},
5430 { "INVALID_PIPE_STATE", STATUS_INVALID_PIPE_STATE
},
5431 { "INVALID_READ_MODE", STATUS_INVALID_READ_MODE
},
5432 { "INVALID_SECURITY_DESCR", STATUS_INVALID_SECURITY_DESCR
},
5433 { "IO_TIMEOUT", STATUS_IO_TIMEOUT
},
5434 { "KERNEL_APC", STATUS_KERNEL_APC
},
5435 { "KEY_DELETED", STATUS_KEY_DELETED
},
5436 { "MAPPED_FILE_SIZE_ZERO", STATUS_MAPPED_FILE_SIZE_ZERO
},
5437 { "MUTANT_NOT_OWNED", STATUS_MUTANT_NOT_OWNED
},
5438 { "NAME_TOO_LONG", STATUS_NAME_TOO_LONG
},
5439 { "NETWORK_BUSY", STATUS_NETWORK_BUSY
},
5440 { "NETWORK_UNREACHABLE", STATUS_NETWORK_UNREACHABLE
},
5441 { "NOT_ALL_ASSIGNED", STATUS_NOT_ALL_ASSIGNED
},
5442 { "NOT_A_DIRECTORY", STATUS_NOT_A_DIRECTORY
},
5443 { "NOT_FOUND", STATUS_NOT_FOUND
},
5444 { "NOT_IMPLEMENTED", STATUS_NOT_IMPLEMENTED
},
5445 { "NOT_MAPPED_VIEW", STATUS_NOT_MAPPED_VIEW
},
5446 { "NOT_REGISTRY_FILE", STATUS_NOT_REGISTRY_FILE
},
5447 { "NOT_SAME_DEVICE", STATUS_NOT_SAME_DEVICE
},
5448 { "NOT_SAME_OBJECT", STATUS_NOT_SAME_OBJECT
},
5449 { "NOT_SUPPORTED", STATUS_NOT_SUPPORTED
},
5450 { "NO_DATA_DETECTED", STATUS_NO_DATA_DETECTED
},
5451 { "NO_IMPERSONATION_TOKEN", STATUS_NO_IMPERSONATION_TOKEN
},
5452 { "NO_MEMORY", STATUS_NO_MEMORY
},
5453 { "NO_MORE_ENTRIES", STATUS_NO_MORE_ENTRIES
},
5454 { "NO_SUCH_DEVICE", STATUS_NO_SUCH_DEVICE
},
5455 { "NO_SUCH_FILE", STATUS_NO_SUCH_FILE
},
5456 { "NO_TOKEN", STATUS_NO_TOKEN
},
5457 { "OBJECT_NAME_COLLISION", STATUS_OBJECT_NAME_COLLISION
},
5458 { "OBJECT_NAME_EXISTS", STATUS_OBJECT_NAME_EXISTS
},
5459 { "OBJECT_NAME_INVALID", STATUS_OBJECT_NAME_INVALID
},
5460 { "OBJECT_NAME_NOT_FOUND", STATUS_OBJECT_NAME_NOT_FOUND
},
5461 { "OBJECT_PATH_INVALID", STATUS_OBJECT_PATH_INVALID
},
5462 { "OBJECT_PATH_NOT_FOUND", STATUS_OBJECT_PATH_NOT_FOUND
},
5463 { "OBJECT_PATH_SYNTAX_BAD", STATUS_OBJECT_PATH_SYNTAX_BAD
},
5464 { "OBJECT_TYPE_MISMATCH", STATUS_OBJECT_TYPE_MISMATCH
},
5465 { "PENDING", STATUS_PENDING
},
5466 { "PIPE_BROKEN", STATUS_PIPE_BROKEN
},
5467 { "PIPE_BUSY", STATUS_PIPE_BUSY
},
5468 { "PIPE_CLOSING", STATUS_PIPE_CLOSING
},
5469 { "PIPE_CONNECTED", STATUS_PIPE_CONNECTED
},
5470 { "PIPE_DISCONNECTED", STATUS_PIPE_DISCONNECTED
},
5471 { "PIPE_EMPTY", STATUS_PIPE_EMPTY
},
5472 { "PIPE_LISTENING", STATUS_PIPE_LISTENING
},
5473 { "PIPE_NOT_AVAILABLE", STATUS_PIPE_NOT_AVAILABLE
},
5474 { "PORT_NOT_SET", STATUS_PORT_NOT_SET
},
5475 { "PREDEFINED_HANDLE", STATUS_PREDEFINED_HANDLE
},
5476 { "PRIVILEGE_NOT_HELD", STATUS_PRIVILEGE_NOT_HELD
},
5477 { "PROCESS_IN_JOB", STATUS_PROCESS_IN_JOB
},
5478 { "PROCESS_IS_TERMINATING", STATUS_PROCESS_IS_TERMINATING
},
5479 { "PROCESS_NOT_IN_JOB", STATUS_PROCESS_NOT_IN_JOB
},
5480 { "REPARSE_POINT_NOT_RESOLVED", STATUS_REPARSE_POINT_NOT_RESOLVED
},
5481 { "SECTION_TOO_BIG", STATUS_SECTION_TOO_BIG
},
5482 { "SEMAPHORE_LIMIT_EXCEEDED", STATUS_SEMAPHORE_LIMIT_EXCEEDED
},
5483 { "SHARING_VIOLATION", STATUS_SHARING_VIOLATION
},
5484 { "SHUTDOWN_IN_PROGRESS", STATUS_SHUTDOWN_IN_PROGRESS
},
5485 { "SUSPEND_COUNT_EXCEEDED", STATUS_SUSPEND_COUNT_EXCEEDED
},
5486 { "THREAD_IS_TERMINATING", STATUS_THREAD_IS_TERMINATING
},
5487 { "TIMEOUT", STATUS_TIMEOUT
},
5488 { "TOO_MANY_OPENED_FILES", STATUS_TOO_MANY_OPENED_FILES
},
5489 { "UNSUCCESSFUL", STATUS_UNSUCCESSFUL
},
5490 { "USER_APC", STATUS_USER_APC
},
5491 { "USER_MAPPED_FILE", STATUS_USER_MAPPED_FILE
},
5492 { "VOLUME_DISMOUNTED", STATUS_VOLUME_DISMOUNTED
},
5493 { "WAS_LOCKED", STATUS_WAS_LOCKED
},
5494 { "WSAEACCES", 0xc0010000 | WSAEACCES
},
5495 { "WSAEADDRINUSE", 0xc0010000 | WSAEADDRINUSE
},
5496 { "WSAEADDRNOTAVAIL", 0xc0010000 | WSAEADDRNOTAVAIL
},
5497 { "WSAEAFNOSUPPORT", 0xc0010000 | WSAEAFNOSUPPORT
},
5498 { "WSAEALREADY", 0xc0010000 | WSAEALREADY
},
5499 { "WSAEBADF", 0xc0010000 | WSAEBADF
},
5500 { "WSAECONNABORTED", 0xc0010000 | WSAECONNABORTED
},
5501 { "WSAECONNREFUSED", 0xc0010000 | WSAECONNREFUSED
},
5502 { "WSAECONNRESET", 0xc0010000 | WSAECONNRESET
},
5503 { "WSAEDESTADDRREQ", 0xc0010000 | WSAEDESTADDRREQ
},
5504 { "WSAEDQUOT", 0xc0010000 | WSAEDQUOT
},
5505 { "WSAEFAULT", 0xc0010000 | WSAEFAULT
},
5506 { "WSAEHOSTDOWN", 0xc0010000 | WSAEHOSTDOWN
},
5507 { "WSAEHOSTUNREACH", 0xc0010000 | WSAEHOSTUNREACH
},
5508 { "WSAEINTR", 0xc0010000 | WSAEINTR
},
5509 { "WSAEINVAL", 0xc0010000 | WSAEINVAL
},
5510 { "WSAEISCONN", 0xc0010000 | WSAEISCONN
},
5511 { "WSAELOOP", 0xc0010000 | WSAELOOP
},
5512 { "WSAEMFILE", 0xc0010000 | WSAEMFILE
},
5513 { "WSAEMSGSIZE", 0xc0010000 | WSAEMSGSIZE
},
5514 { "WSAENAMETOOLONG", 0xc0010000 | WSAENAMETOOLONG
},
5515 { "WSAENETDOWN", 0xc0010000 | WSAENETDOWN
},
5516 { "WSAENETRESET", 0xc0010000 | WSAENETRESET
},
5517 { "WSAENETUNREACH", 0xc0010000 | WSAENETUNREACH
},
5518 { "WSAENOBUFS", 0xc0010000 | WSAENOBUFS
},
5519 { "WSAENOPROTOOPT", 0xc0010000 | WSAENOPROTOOPT
},
5520 { "WSAENOTCONN", 0xc0010000 | WSAENOTCONN
},
5521 { "WSAENOTEMPTY", 0xc0010000 | WSAENOTEMPTY
},
5522 { "WSAENOTSOCK", 0xc0010000 | WSAENOTSOCK
},
5523 { "WSAEOPNOTSUPP", 0xc0010000 | WSAEOPNOTSUPP
},
5524 { "WSAEPFNOSUPPORT", 0xc0010000 | WSAEPFNOSUPPORT
},
5525 { "WSAEPROCLIM", 0xc0010000 | WSAEPROCLIM
},
5526 { "WSAEPROTONOSUPPORT", 0xc0010000 | WSAEPROTONOSUPPORT
},
5527 { "WSAEPROTOTYPE", 0xc0010000 | WSAEPROTOTYPE
},
5528 { "WSAEREMOTE", 0xc0010000 | WSAEREMOTE
},
5529 { "WSAESHUTDOWN", 0xc0010000 | WSAESHUTDOWN
},
5530 { "WSAESOCKTNOSUPPORT", 0xc0010000 | WSAESOCKTNOSUPPORT
},
5531 { "WSAESTALE", 0xc0010000 | WSAESTALE
},
5532 { "WSAETIMEDOUT", 0xc0010000 | WSAETIMEDOUT
},
5533 { "WSAETOOMANYREFS", 0xc0010000 | WSAETOOMANYREFS
},
5534 { "WSAEUSERS", 0xc0010000 | WSAEUSERS
},
5535 { "WSAEWOULDBLOCK", 0xc0010000 | WSAEWOULDBLOCK
},
5539 /* ### make_requests end ### */
5540 /* Everything above this line is generated automatically by tools/make_requests */
5542 static const char *get_status_name( unsigned int status
)
5545 static char buffer
[10];
5549 for (i
= 0; status_names
[i
].name
; i
++)
5550 if (status_names
[i
].value
== status
) return status_names
[i
].name
;
5552 sprintf( buffer
, "%x", status
);
5556 void trace_request(void)
5558 enum request req
= current
->req
.request_header
.req
;
5559 if (req
< REQ_NB_REQUESTS
)
5561 fprintf( stderr
, "%04x: %s(", current
->id
, req_names
[req
] );
5562 if (req_dumpers
[req
])
5564 cur_data
= get_req_data();
5565 cur_size
= get_req_data_size();
5566 req_dumpers
[req
]( ¤t
->req
);
5568 fprintf( stderr
, " )\n" );
5570 else fprintf( stderr
, "%04x: %d(?)\n", current
->id
, req
);
5573 void trace_reply( enum request req
, const union generic_reply
*reply
)
5575 if (req
< REQ_NB_REQUESTS
)
5577 fprintf( stderr
, "%04x: %s() = %s",
5578 current
->id
, req_names
[req
], get_status_name(current
->error
) );
5579 if (reply_dumpers
[req
])
5581 fprintf( stderr
, " {" );
5582 cur_data
= current
->reply_data
;
5583 cur_size
= reply
->reply_header
.reply_size
;
5584 reply_dumpers
[req
]( reply
);
5585 fprintf( stderr
, " }" );
5587 fputc( '\n', stderr
);
5589 else fprintf( stderr
, "%04x: %d() = %s\n",
5590 current
->id
, req
, get_status_name(current
->error
) );