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"
49 static const void *cur_data
;
50 static data_size_t cur_size
;
52 static const char *get_status_name( unsigned int status
);
54 /* utility functions */
56 static inline void remove_data( data_size_t size
)
58 cur_data
= (const char *)cur_data
+ size
;
62 static void dump_uints( const char *prefix
, const unsigned int *ptr
, int len
)
64 fprintf( stderr
, "%s{", prefix
);
67 fprintf( stderr
, "%08x", *ptr
++ );
68 if (--len
) fputc( ',', stderr
);
73 static void dump_handles( const char *prefix
, const obj_handle_t
*data
, data_size_t size
)
75 data_size_t len
= size
/ sizeof(*data
);
77 fprintf( stderr
,"%s{", prefix
);
80 fprintf( stderr
, "%04x", *data
++ );
81 if (--len
) fputc( ',', stderr
);
86 static void dump_timeout( const char *prefix
, const timeout_t
*time
)
88 fprintf( stderr
, "%s%s", prefix
, get_timeout_str(*time
) );
91 static void dump_abstime( const char *prefix
, const abstime_t
*when
)
93 timeout_t timeout
= abstime_to_timeout( *when
);
94 dump_timeout( prefix
, &timeout
);
97 static void dump_uint64( const char *prefix
, const unsigned __int64
*val
)
99 if ((unsigned int)*val
!= *val
)
100 fprintf( stderr
, "%s%x%08x", prefix
, (unsigned int)(*val
>> 32), (unsigned int)*val
);
102 fprintf( stderr
, "%s%08x", prefix
, (unsigned int)*val
);
105 static void dump_uint128( const char *prefix
, const unsigned __int64 val
[2] )
107 unsigned __int64 low
= val
[0], high
= val
[1];
109 if ((unsigned int)high
!= high
)
110 fprintf( stderr
, "%s%x%08x%08x%08x", prefix
, (unsigned int)(high
>> 32), (unsigned int)high
,
111 (unsigned int)(low
>> 32), (unsigned int)low
);
113 fprintf( stderr
, "%s%x%08x%08x", prefix
, (unsigned int)high
,
114 (unsigned int)(low
>> 32), (unsigned int)low
);
115 else if ((unsigned int)low
!= low
)
116 fprintf( stderr
, "%s%x%08x", prefix
, (unsigned int)(low
>> 32), (unsigned int)low
);
118 fprintf( stderr
, "%s%x", prefix
, (unsigned int)low
);
121 static void dump_rectangle( const char *prefix
, const rectangle_t
*rect
)
123 fprintf( stderr
, "%s{%d,%d;%d,%d}", prefix
,
124 rect
->left
, rect
->top
, rect
->right
, rect
->bottom
);
127 static void dump_ioctl_code( const char *prefix
, const ioctl_code_t
*code
)
131 #define CASE(c) case c: fprintf( stderr, "%s%s", prefix, #c ); break
132 CASE(IOCTL_CONDRV_ACTIVATE
);
133 CASE(IOCTL_CONDRV_BIND_PID
);
134 CASE(IOCTL_CONDRV_CTRL_EVENT
);
135 CASE(IOCTL_CONDRV_FILL_OUTPUT
);
136 CASE(IOCTL_CONDRV_GET_INPUT_INFO
);
137 CASE(IOCTL_CONDRV_GET_MODE
);
138 CASE(IOCTL_CONDRV_GET_OUTPUT_INFO
);
139 CASE(IOCTL_CONDRV_GET_TITLE
);
140 CASE(IOCTL_CONDRV_PEEK
);
141 CASE(IOCTL_CONDRV_READ_CONSOLE
);
142 CASE(IOCTL_CONDRV_READ_INPUT
);
143 CASE(IOCTL_CONDRV_READ_OUTPUT
);
144 CASE(IOCTL_CONDRV_SET_MODE
);
145 CASE(IOCTL_CONDRV_SET_OUTPUT_INFO
);
146 CASE(IOCTL_CONDRV_SETUP_INPUT
);
147 CASE(IOCTL_CONDRV_WRITE_CONSOLE
);
148 CASE(IOCTL_CONDRV_WRITE_INPUT
);
149 CASE(IOCTL_CONDRV_WRITE_OUTPUT
);
150 CASE(FSCTL_DISMOUNT_VOLUME
);
151 CASE(FSCTL_PIPE_DISCONNECT
);
152 CASE(FSCTL_PIPE_LISTEN
);
153 CASE(FSCTL_PIPE_PEEK
);
154 CASE(FSCTL_PIPE_WAIT
);
155 CASE(IOCTL_SERIAL_GET_TIMEOUTS
);
156 CASE(IOCTL_SERIAL_GET_WAIT_MASK
);
157 CASE(IOCTL_SERIAL_SET_TIMEOUTS
);
158 CASE(IOCTL_SERIAL_SET_WAIT_MASK
);
159 CASE(WS_SIO_ADDRESS_LIST_CHANGE
);
160 default: fprintf( stderr
, "%s%08x", prefix
, *code
); break;
165 static void dump_apc_call( const char *prefix
, const apc_call_t
*call
)
167 fprintf( stderr
, "%s{", prefix
);
171 fprintf( stderr
, "APC_NONE" );
174 dump_uint64( "APC_USER,func=", &call
->user
.func
);
175 dump_uint64( ",args={", &call
->user
.args
[0] );
176 dump_uint64( ",", &call
->user
.args
[1] );
177 dump_uint64( ",", &call
->user
.args
[2] );
178 fputc( '}', stderr
);
181 dump_uint64( "APC_ASYNC_IO,user=", &call
->async_io
.user
);
182 dump_uint64( ",sb=", &call
->async_io
.sb
);
183 fprintf( stderr
, ",status=%s,result=%u", get_status_name(call
->async_io
.status
), call
->async_io
.result
);
185 case APC_VIRTUAL_ALLOC
:
186 dump_uint64( "APC_VIRTUAL_ALLOC,addr==", &call
->virtual_alloc
.addr
);
187 dump_uint64( ",size=", &call
->virtual_alloc
.size
);
188 dump_uint64( ",zero_bits=", &call
->virtual_alloc
.zero_bits
);
189 fprintf( stderr
, ",op_type=%x,prot=%x", call
->virtual_alloc
.op_type
, call
->virtual_alloc
.prot
);
191 case APC_VIRTUAL_FREE
:
192 dump_uint64( "APC_VIRTUAL_FREE,addr=", &call
->virtual_free
.addr
);
193 dump_uint64( ",size=", &call
->virtual_free
.size
);
194 fprintf( stderr
, ",op_type=%x", call
->virtual_free
.op_type
);
196 case APC_VIRTUAL_QUERY
:
197 dump_uint64( "APC_VIRTUAL_QUERY,addr=", &call
->virtual_query
.addr
);
199 case APC_VIRTUAL_PROTECT
:
200 dump_uint64( "APC_VIRTUAL_PROTECT,addr=", &call
->virtual_protect
.addr
);
201 dump_uint64( ",size=", &call
->virtual_protect
.size
);
202 fprintf( stderr
, ",prot=%x", call
->virtual_protect
.prot
);
204 case APC_VIRTUAL_FLUSH
:
205 dump_uint64( "APC_VIRTUAL_FLUSH,addr=", &call
->virtual_flush
.addr
);
206 dump_uint64( ",size=", &call
->virtual_flush
.size
);
208 case APC_VIRTUAL_LOCK
:
209 dump_uint64( "APC_VIRTUAL_LOCK,addr=", &call
->virtual_lock
.addr
);
210 dump_uint64( ",size=", &call
->virtual_lock
.size
);
212 case APC_VIRTUAL_UNLOCK
:
213 dump_uint64( "APC_VIRTUAL_UNLOCK,addr=", &call
->virtual_unlock
.addr
);
214 dump_uint64( ",size=", &call
->virtual_unlock
.size
);
217 fprintf( stderr
, "APC_MAP_VIEW,handle=%04x", call
->map_view
.handle
);
218 dump_uint64( ",addr=", &call
->map_view
.addr
);
219 dump_uint64( ",size=", &call
->map_view
.size
);
220 dump_uint64( ",offset=", &call
->map_view
.offset
);
221 dump_uint64( ",zero_bits=", &call
->map_view
.zero_bits
);
222 fprintf( stderr
, ",alloc_type=%x,prot=%x", call
->map_view
.alloc_type
, call
->map_view
.prot
);
225 dump_uint64( "APC_UNMAP_VIEW,addr=", &call
->unmap_view
.addr
);
227 case APC_CREATE_THREAD
:
228 dump_uint64( "APC_CREATE_THREAD,func=", &call
->create_thread
.func
);
229 dump_uint64( ",arg=", &call
->create_thread
.arg
);
230 dump_uint64( ",zero_bits=", &call
->create_thread
.zero_bits
);
231 dump_uint64( ",reserve=", &call
->create_thread
.reserve
);
232 dump_uint64( ",commit=", &call
->create_thread
.commit
);
233 fprintf( stderr
, ",flags=%x", call
->create_thread
.flags
);
236 fprintf( stderr
, "APC_DUP_HANDLE,src_handle=%04x,dst_process=%04x,access=%x,attributes=%x,options=%x",
237 call
->dup_handle
.src_handle
, call
->dup_handle
.dst_process
, call
->dup_handle
.access
,
238 call
->dup_handle
.attributes
, call
->dup_handle
.options
);
241 fprintf( stderr
, "type=%u", call
->type
);
244 fputc( '}', stderr
);
247 static void dump_apc_result( const char *prefix
, const apc_result_t
*result
)
249 fprintf( stderr
, "%s{", prefix
);
255 fprintf( stderr
, "APC_ASYNC_IO,status=%s,total=%u",
256 get_status_name( result
->async_io
.status
), result
->async_io
.total
);
258 case APC_VIRTUAL_ALLOC
:
259 fprintf( stderr
, "APC_VIRTUAL_ALLOC,status=%s",
260 get_status_name( result
->virtual_alloc
.status
));
261 dump_uint64( ",addr=", &result
->virtual_alloc
.addr
);
262 dump_uint64( ",size=", &result
->virtual_alloc
.size
);
264 case APC_VIRTUAL_FREE
:
265 fprintf( stderr
, "APC_VIRTUAL_FREE,status=%s",
266 get_status_name( result
->virtual_free
.status
));
267 dump_uint64( ",addr=", &result
->virtual_free
.addr
);
268 dump_uint64( ",size=", &result
->virtual_free
.size
);
270 case APC_VIRTUAL_QUERY
:
271 fprintf( stderr
, "APC_VIRTUAL_QUERY,status=%s",
272 get_status_name( result
->virtual_query
.status
));
273 dump_uint64( ",base=", &result
->virtual_query
.base
);
274 dump_uint64( ",alloc_base=", &result
->virtual_query
.alloc_base
);
275 dump_uint64( ",size=", &result
->virtual_query
.size
);
276 fprintf( stderr
, ",state=%x,prot=%x,alloc_prot=%x,alloc_type=%x",
277 result
->virtual_query
.state
, result
->virtual_query
.prot
,
278 result
->virtual_query
.alloc_prot
, result
->virtual_query
.alloc_type
);
280 case APC_VIRTUAL_PROTECT
:
281 fprintf( stderr
, "APC_VIRTUAL_PROTECT,status=%s",
282 get_status_name( result
->virtual_protect
.status
));
283 dump_uint64( ",addr=", &result
->virtual_protect
.addr
);
284 dump_uint64( ",size=", &result
->virtual_protect
.size
);
285 fprintf( stderr
, ",prot=%x", result
->virtual_protect
.prot
);
287 case APC_VIRTUAL_FLUSH
:
288 fprintf( stderr
, "APC_VIRTUAL_FLUSH,status=%s",
289 get_status_name( result
->virtual_flush
.status
));
290 dump_uint64( ",addr=", &result
->virtual_flush
.addr
);
291 dump_uint64( ",size=", &result
->virtual_flush
.size
);
293 case APC_VIRTUAL_LOCK
:
294 fprintf( stderr
, "APC_VIRTUAL_LOCK,status=%s",
295 get_status_name( result
->virtual_lock
.status
));
296 dump_uint64( ",addr=", &result
->virtual_lock
.addr
);
297 dump_uint64( ",size=", &result
->virtual_lock
.size
);
299 case APC_VIRTUAL_UNLOCK
:
300 fprintf( stderr
, "APC_VIRTUAL_UNLOCK,status=%s",
301 get_status_name( result
->virtual_unlock
.status
));
302 dump_uint64( ",addr=", &result
->virtual_unlock
.addr
);
303 dump_uint64( ",size=", &result
->virtual_unlock
.size
);
306 fprintf( stderr
, "APC_MAP_VIEW,status=%s",
307 get_status_name( result
->map_view
.status
));
308 dump_uint64( ",addr=", &result
->map_view
.addr
);
309 dump_uint64( ",size=", &result
->map_view
.size
);
312 fprintf( stderr
, "APC_UNMAP_VIEW,status=%s",
313 get_status_name( result
->unmap_view
.status
) );
315 case APC_CREATE_THREAD
:
316 fprintf( stderr
, "APC_CREATE_THREAD,status=%s,pid=%04x,tid=%04x,handle=%04x",
317 get_status_name( result
->create_thread
.status
),
318 result
->create_thread
.pid
, result
->create_thread
.tid
, result
->create_thread
.handle
);
321 fprintf( stderr
, "APC_DUP_HANDLE,status=%s,handle=%04x",
322 get_status_name( result
->dup_handle
.status
), result
->dup_handle
.handle
);
325 fprintf( stderr
, "type=%u", result
->type
);
328 fputc( '}', stderr
);
331 static void dump_async_data( const char *prefix
, const async_data_t
*data
)
333 fprintf( stderr
, "%s{handle=%04x,event=%04x", prefix
, data
->handle
, data
->event
);
334 dump_uint64( ",iosb=", &data
->iosb
);
335 dump_uint64( ",user=", &data
->user
);
336 dump_uint64( ",apc=", &data
->apc
);
337 dump_uint64( ",apc_context=", &data
->apc_context
);
338 fputc( '}', stderr
);
341 static void dump_irp_params( const char *prefix
, const irp_params_t
*data
)
346 fprintf( stderr
, "%s{NONE}", prefix
);
348 case IRP_CALL_CREATE
:
349 fprintf( stderr
, "%s{CREATE,access=%08x,sharing=%08x,options=%08x",
350 prefix
, data
->create
.access
, data
->create
.sharing
, data
->create
.options
);
351 dump_uint64( ",device=", &data
->create
.device
);
352 fprintf( stderr
, ",file=%08x}", data
->create
.file
);
355 fprintf( stderr
, "%s{CLOSE", prefix
);
356 dump_uint64( ",file=", &data
->close
.file
);
357 fputc( '}', stderr
);
360 fprintf( stderr
, "%s{READ,key=%08x,out_size=%u", prefix
, data
->read
.key
,
361 data
->read
.out_size
);
362 dump_uint64( ",pos=", &data
->read
.pos
);
363 dump_uint64( ",file=", &data
->read
.file
);
364 fputc( '}', stderr
);
367 fprintf( stderr
, "%s{WRITE,key=%08x", prefix
, data
->write
.key
);
368 dump_uint64( ",pos=", &data
->write
.pos
);
369 dump_uint64( ",file=", &data
->write
.file
);
370 fputc( '}', stderr
);
373 fprintf( stderr
, "%s{FLUSH", prefix
);
374 dump_uint64( ",file=", &data
->flush
.file
);
375 fputc( '}', stderr
);
378 fprintf( stderr
, "%s{IOCTL", prefix
);
379 dump_ioctl_code( ",code=", &data
->ioctl
.code
);
380 fprintf( stderr
, ",out_size=%u", data
->ioctl
.out_size
);
381 dump_uint64( ",file=", &data
->ioctl
.file
);
382 fputc( '}', stderr
);
384 case IRP_CALL_VOLUME
:
385 fprintf( stderr
, "%s{VOLUME,class=%u,out_size=%u", prefix
,
386 data
->volume
.info_class
, data
->volume
.out_size
);
387 dump_uint64( ",file=", &data
->volume
.file
);
388 fputc( '}', stderr
);
391 fprintf( stderr
, "%s{FREE", prefix
);
392 dump_uint64( ",obj=", &data
->free
.obj
);
393 fputc( '}', stderr
);
395 case IRP_CALL_CANCEL
:
396 fprintf( stderr
, "%s{CANCEL", prefix
);
397 dump_uint64( ",irp=", &data
->cancel
.irp
);
398 fputc( '}', stderr
);
403 static void dump_rawinput( const char *prefix
, const union rawinput
*rawinput
)
405 switch (rawinput
->type
)
408 fprintf( stderr
, "%s{type=MOUSE,x=%d,y=%d,data=%08x}", prefix
, rawinput
->mouse
.x
,
409 rawinput
->mouse
.y
, rawinput
->mouse
.data
);
411 case RIM_TYPEKEYBOARD
:
412 fprintf( stderr
, "%s{type=KEYBOARD,message=%04x,vkey=%04hx,scan=%04hx}", prefix
,
413 rawinput
->kbd
.message
, rawinput
->kbd
.vkey
, rawinput
->kbd
.scan
);
416 fprintf( stderr
, "%s{type=HID,device=%04x,param=%04x,page=%04hx,usage=%04hx,count=%u,length=%u}",
417 prefix
, rawinput
->hid
.device
, rawinput
->hid
.param
, rawinput
->hid
.usage_page
,
418 rawinput
->hid
.usage
, rawinput
->hid
.count
, rawinput
->hid
.length
);
421 fprintf( stderr
, "%s{type=%04x}", prefix
, rawinput
->type
);
426 static void dump_hw_input( const char *prefix
, const hw_input_t
*input
)
431 fprintf( stderr
, "%s{type=MOUSE,x=%d,y=%d,data=%08x,flags=%08x,time=%u",
432 prefix
, input
->mouse
.x
, input
->mouse
.y
, input
->mouse
.data
, input
->mouse
.flags
,
434 dump_uint64( ",info=", &input
->mouse
.info
);
435 fputc( '}', stderr
);
438 fprintf( stderr
, "%s{type=KEYBOARD,vkey=%04hx,scan=%04hx,flags=%08x,time=%u",
439 prefix
, input
->kbd
.vkey
, input
->kbd
.scan
, input
->kbd
.flags
, input
->kbd
.time
);
440 dump_uint64( ",info=", &input
->kbd
.info
);
441 fputc( '}', stderr
);
444 fprintf( stderr
, "%s{type=HARDWARE,msg=%04x", prefix
, input
->hw
.msg
);
445 dump_uint64( ",lparam=", &input
->hw
.lparam
);
446 switch (input
->hw
.msg
)
449 case WM_INPUT_DEVICE_CHANGE
:
450 dump_rawinput( ",rawinput=", &input
->hw
.rawinput
);
452 fputc( '}', stderr
);
455 fprintf( stderr
, "%s{type=%04x}", prefix
, input
->type
);
460 static void dump_luid( const char *prefix
, const luid_t
*luid
)
462 fprintf( stderr
, "%s%d.%u", prefix
, luid
->high_part
, luid
->low_part
);
465 static void dump_generic_map( const char *prefix
, const generic_map_t
*map
)
467 fprintf( stderr
, "%s{r=%08x,w=%08x,x=%08x,a=%08x}",
468 prefix
, map
->read
, map
->write
, map
->exec
, map
->all
);
471 static void dump_varargs_ints( const char *prefix
, data_size_t size
)
473 const int *data
= cur_data
;
474 data_size_t len
= size
/ sizeof(*data
);
476 fprintf( stderr
,"%s{", prefix
);
479 fprintf( stderr
, "%d", *data
++ );
480 if (--len
) fputc( ',', stderr
);
482 fputc( '}', stderr
);
486 static void dump_varargs_uints( const char *prefix
, data_size_t size
)
488 const unsigned int *data
= cur_data
;
490 dump_uints( prefix
, data
, size
/ sizeof(*data
) );
494 static void dump_varargs_uints64( const char *prefix
, data_size_t size
)
496 const unsigned __int64
*data
= cur_data
;
497 data_size_t len
= size
/ sizeof(*data
);
499 fprintf( stderr
,"%s{", prefix
);
502 dump_uint64( "", data
++ );
503 if (--len
) fputc( ',', stderr
);
505 fputc( '}', stderr
);
509 static void dump_varargs_ushorts( const char *prefix
, data_size_t size
)
511 const unsigned short *data
= cur_data
;
512 data_size_t len
= size
/ sizeof(*data
);
514 fprintf( stderr
, "%s{", prefix
);
517 fprintf( stderr
, "%04x", *data
++ );
518 if (--len
) fputc( ',', stderr
);
520 fputc( '}', stderr
);
524 static void dump_varargs_apc_result( const char *prefix
, data_size_t size
)
526 const apc_result_t
*result
= cur_data
;
528 if (size
>= sizeof(*result
))
530 dump_apc_result( prefix
, result
);
531 size
= sizeof(*result
);
536 static void dump_varargs_select_op( const char *prefix
, data_size_t size
)
542 fprintf( stderr
, "%s{}", prefix
);
545 memset( &data
, 0, sizeof(data
) );
546 memcpy( &data
, cur_data
, min( size
, sizeof(data
) ));
548 fprintf( stderr
, "%s{", prefix
);
552 fprintf( stderr
, "NONE" );
555 case SELECT_WAIT_ALL
:
556 fprintf( stderr
, "%s", data
.op
== SELECT_WAIT
? "WAIT" : "WAIT_ALL" );
557 if (size
> offsetof( select_op_t
, wait
.handles
))
558 dump_handles( ",handles=", data
.wait
.handles
,
559 min( size
, sizeof(data
.wait
) ) - offsetof( select_op_t
, wait
.handles
));
561 case SELECT_SIGNAL_AND_WAIT
:
562 fprintf( stderr
, "SIGNAL_AND_WAIT,signal=%04x,wait=%04x",
563 data
.signal_and_wait
.signal
, data
.signal_and_wait
.wait
);
565 case SELECT_KEYED_EVENT_WAIT
:
566 case SELECT_KEYED_EVENT_RELEASE
:
567 fprintf( stderr
, "KEYED_EVENT_%s,handle=%04x",
568 data
.op
== SELECT_KEYED_EVENT_WAIT
? "WAIT" : "RELEASE",
569 data
.keyed_event
.handle
);
570 dump_uint64( ",key=", &data
.keyed_event
.key
);
573 fprintf( stderr
, "op=%u", data
.op
);
576 fputc( '}', stderr
);
580 static void dump_varargs_user_handles( const char *prefix
, data_size_t size
)
582 const user_handle_t
*data
= cur_data
;
583 data_size_t len
= size
/ sizeof(*data
);
585 fprintf( stderr
,"%s{", prefix
);
588 fprintf( stderr
, "%08x", *data
++ );
589 if (--len
) fputc( ',', stderr
);
591 fputc( '}', stderr
);
595 static void dump_varargs_bytes( const char *prefix
, data_size_t size
)
597 const unsigned char *data
= cur_data
;
598 data_size_t len
= min( 1024, size
);
600 fprintf( stderr
,"%s{", prefix
);
603 fprintf( stderr
, "%02x", *data
++ );
604 if (--len
) fputc( ',', stderr
);
606 if (size
> 1024) fprintf( stderr
, "...(total %u)", size
);
607 fputc( '}', stderr
);
611 static void dump_varargs_string( const char *prefix
, data_size_t size
)
613 fprintf( stderr
, "%s\"%.*s\"", prefix
, (int)size
, (const char *)cur_data
);
617 static void dump_varargs_unicode_str( const char *prefix
, data_size_t size
)
619 fprintf( stderr
, "%sL\"", prefix
);
620 dump_strW( cur_data
, size
, stderr
, "\"\"" );
621 fputc( '\"', stderr
);
625 static void dump_varargs_context( const char *prefix
, data_size_t size
)
627 const context_t
*context
= cur_data
;
633 fprintf( stderr
, "%s{}", prefix
);
636 size
= min( size
, sizeof(ctx
) );
637 memset( &ctx
, 0, sizeof(ctx
) );
638 memcpy( &ctx
, context
, size
);
642 case IMAGE_FILE_MACHINE_I386
:
643 fprintf( stderr
, "%s{machine=i386", prefix
);
644 if (ctx
.flags
& SERVER_CTX_CONTROL
)
645 fprintf( stderr
, ",eip=%08x,esp=%08x,ebp=%08x,eflags=%08x,cs=%04x,ss=%04x",
646 ctx
.ctl
.i386_regs
.eip
, ctx
.ctl
.i386_regs
.esp
, ctx
.ctl
.i386_regs
.ebp
,
647 ctx
.ctl
.i386_regs
.eflags
, ctx
.ctl
.i386_regs
.cs
, ctx
.ctl
.i386_regs
.ss
);
648 if (ctx
.flags
& SERVER_CTX_SEGMENTS
)
649 fprintf( stderr
, ",ds=%04x,es=%04x,fs=%04x,gs=%04x",
650 ctx
.seg
.i386_regs
.ds
, ctx
.seg
.i386_regs
.es
,
651 ctx
.seg
.i386_regs
.fs
, ctx
.seg
.i386_regs
.gs
);
652 if (ctx
.flags
& SERVER_CTX_INTEGER
)
653 fprintf( stderr
, ",eax=%08x,ebx=%08x,ecx=%08x,edx=%08x,esi=%08x,edi=%08x",
654 ctx
.integer
.i386_regs
.eax
, ctx
.integer
.i386_regs
.ebx
, ctx
.integer
.i386_regs
.ecx
,
655 ctx
.integer
.i386_regs
.edx
, ctx
.integer
.i386_regs
.esi
, ctx
.integer
.i386_regs
.edi
);
656 if (ctx
.flags
& SERVER_CTX_DEBUG_REGISTERS
)
657 fprintf( stderr
, ",dr0=%08x,dr1=%08x,dr2=%08x,dr3=%08x,dr6=%08x,dr7=%08x",
658 ctx
.debug
.i386_regs
.dr0
, ctx
.debug
.i386_regs
.dr1
, ctx
.debug
.i386_regs
.dr2
,
659 ctx
.debug
.i386_regs
.dr3
, ctx
.debug
.i386_regs
.dr6
, ctx
.debug
.i386_regs
.dr7
);
660 if (ctx
.flags
& SERVER_CTX_FLOATING_POINT
)
662 fprintf( stderr
, ",fp.ctrl=%08x,fp.status=%08x,fp.tag=%08x,fp.err_off=%08x,fp.err_sel=%08x",
663 ctx
.fp
.i386_regs
.ctrl
, ctx
.fp
.i386_regs
.status
, ctx
.fp
.i386_regs
.tag
,
664 ctx
.fp
.i386_regs
.err_off
, ctx
.fp
.i386_regs
.err_sel
);
665 fprintf( stderr
, ",fp.data_off=%08x,fp.data_sel=%08x,fp.cr0npx=%08x",
666 ctx
.fp
.i386_regs
.data_off
, ctx
.fp
.i386_regs
.data_sel
, ctx
.fp
.i386_regs
.cr0npx
);
667 for (i
= 0; i
< 8; i
++)
670 memcpy( ®
, &ctx
.fp
.i386_regs
.regs
[10 * i
], 10 );
671 fprintf( stderr
, ",fp.reg%u=%Lg", i
, reg
);
674 if (ctx
.flags
& SERVER_CTX_EXTENDED_REGISTERS
)
675 dump_uints( ",extended=", (const unsigned int *)ctx
.ext
.i386_regs
,
676 sizeof(ctx
.ext
.i386_regs
) / sizeof(int) );
677 if (ctx
.flags
& SERVER_CTX_YMM_REGISTERS
)
678 for (i
= 0; i
< 16; i
++)
680 fprintf( stderr
, ",ymm%u=", i
);
681 dump_uint128( "", (const unsigned __int64
*)&ctx
.ymm
.regs
.ymm_high
[i
] );
684 case IMAGE_FILE_MACHINE_AMD64
:
685 fprintf( stderr
, "%s{machine=x86_64", prefix
);
686 if (ctx
.flags
& SERVER_CTX_CONTROL
)
688 dump_uint64( ",rip=", &ctx
.ctl
.x86_64_regs
.rip
);
689 dump_uint64( ",rbp=", &ctx
.ctl
.x86_64_regs
.rbp
);
690 dump_uint64( ",rsp=", &ctx
.ctl
.x86_64_regs
.rsp
);
691 fprintf( stderr
, ",cs=%04x,ss=%04x,flags=%08x",
692 ctx
.ctl
.x86_64_regs
.cs
, ctx
.ctl
.x86_64_regs
.ss
, ctx
.ctl
.x86_64_regs
.flags
);
694 if (ctx
.flags
& SERVER_CTX_INTEGER
)
696 dump_uint64( ",rax=", &ctx
.integer
.x86_64_regs
.rax
);
697 dump_uint64( ",rbx=", &ctx
.integer
.x86_64_regs
.rbx
);
698 dump_uint64( ",rcx=", &ctx
.integer
.x86_64_regs
.rcx
);
699 dump_uint64( ",rdx=", &ctx
.integer
.x86_64_regs
.rdx
);
700 dump_uint64( ",rsi=", &ctx
.integer
.x86_64_regs
.rsi
);
701 dump_uint64( ",rdi=", &ctx
.integer
.x86_64_regs
.rdi
);
702 dump_uint64( ",r8=", &ctx
.integer
.x86_64_regs
.r8
);
703 dump_uint64( ",r9=", &ctx
.integer
.x86_64_regs
.r9
);
704 dump_uint64( ",r10=", &ctx
.integer
.x86_64_regs
.r10
);
705 dump_uint64( ",r11=", &ctx
.integer
.x86_64_regs
.r11
);
706 dump_uint64( ",r12=", &ctx
.integer
.x86_64_regs
.r12
);
707 dump_uint64( ",r13=", &ctx
.integer
.x86_64_regs
.r13
);
708 dump_uint64( ",r14=", &ctx
.integer
.x86_64_regs
.r14
);
709 dump_uint64( ",r15=", &ctx
.integer
.x86_64_regs
.r15
);
711 if (ctx
.flags
& SERVER_CTX_SEGMENTS
)
712 fprintf( stderr
, ",ds=%04x,es=%04x,fs=%04x,gs=%04x",
713 ctx
.seg
.x86_64_regs
.ds
, ctx
.seg
.x86_64_regs
.es
,
714 ctx
.seg
.x86_64_regs
.fs
, ctx
.seg
.x86_64_regs
.gs
);
715 if (ctx
.flags
& SERVER_CTX_DEBUG_REGISTERS
)
717 dump_uint64( ",dr0=", &ctx
.debug
.x86_64_regs
.dr0
);
718 dump_uint64( ",dr1=", &ctx
.debug
.x86_64_regs
.dr1
);
719 dump_uint64( ",dr2=", &ctx
.debug
.x86_64_regs
.dr2
);
720 dump_uint64( ",dr3=", &ctx
.debug
.x86_64_regs
.dr3
);
721 dump_uint64( ",dr6=", &ctx
.debug
.x86_64_regs
.dr6
);
722 dump_uint64( ",dr7=", &ctx
.debug
.x86_64_regs
.dr7
);
724 if (ctx
.flags
& SERVER_CTX_FLOATING_POINT
)
725 for (i
= 0; i
< 32; i
++)
727 fprintf( stderr
, ",fp%u=", i
);
728 dump_uint128( "", (const unsigned __int64
*)&ctx
.fp
.x86_64_regs
.fpregs
[i
] );
730 if (ctx
.flags
& SERVER_CTX_YMM_REGISTERS
)
731 for (i
= 0; i
< 16; i
++)
733 fprintf( stderr
, ",ymm%u=", i
);
734 dump_uint128( "", (const unsigned __int64
*)&ctx
.ymm
.regs
.ymm_high
[i
] );
737 case IMAGE_FILE_MACHINE_ARMNT
:
738 fprintf( stderr
, "%s{machine=arm", prefix
);
739 if (ctx
.flags
& SERVER_CTX_CONTROL
)
740 fprintf( stderr
, ",sp=%08x,lr=%08x,pc=%08x,cpsr=%08x",
741 ctx
.ctl
.arm_regs
.sp
, ctx
.ctl
.arm_regs
.lr
,
742 ctx
.ctl
.arm_regs
.pc
, ctx
.ctl
.arm_regs
.cpsr
);
743 if (ctx
.flags
& SERVER_CTX_INTEGER
)
744 for (i
= 0; i
< 13; i
++) fprintf( stderr
, ",r%u=%08x", i
, ctx
.integer
.arm_regs
.r
[i
] );
745 if (ctx
.flags
& SERVER_CTX_DEBUG_REGISTERS
)
747 for (i
= 0; i
< 8; i
++)
748 fprintf( stderr
, ",bcr%u=%08x,bvr%u=%08x",
749 i
, ctx
.debug
.arm_regs
.bcr
[i
], i
, ctx
.debug
.arm_regs
.bvr
[i
] );
750 fprintf( stderr
, ",wcr0=%08x,wvr0=%08x",
751 ctx
.debug
.arm_regs
.wcr
[0], ctx
.debug
.arm_regs
.wvr
[0] );
753 if (ctx
.flags
& SERVER_CTX_FLOATING_POINT
)
755 for (i
= 0; i
< 32; i
++)
757 fprintf( stderr
, ",d%u=", i
);
758 dump_uint64( "", &ctx
.fp
.arm_regs
.d
[i
] );
760 fprintf( stderr
, ",fpscr=%08x", ctx
.fp
.arm_regs
.fpscr
);
763 case IMAGE_FILE_MACHINE_ARM64
:
764 fprintf( stderr
, "%s{machine=arm64", prefix
);
765 if (ctx
.flags
& SERVER_CTX_CONTROL
)
767 dump_uint64( ",sp=", &ctx
.ctl
.arm64_regs
.sp
);
768 dump_uint64( ",pc=", &ctx
.ctl
.arm64_regs
.pc
);
769 dump_uint64( ",pstate=", &ctx
.ctl
.arm64_regs
.pstate
);
771 if (ctx
.flags
& SERVER_CTX_INTEGER
)
773 for (i
= 0; i
< 31; i
++)
775 fprintf( stderr
, ",x%u=", i
);
776 dump_uint64( "", &ctx
.integer
.arm64_regs
.x
[i
] );
779 if (ctx
.flags
& SERVER_CTX_DEBUG_REGISTERS
)
781 for (i
= 0; i
< 8; i
++)
783 fprintf( stderr
, ",bcr%u=%08x,bvr%u=", i
, ctx
.debug
.arm64_regs
.bcr
[i
], i
);
784 dump_uint64( "", &ctx
.debug
.arm64_regs
.bvr
[i
] );
786 for (i
= 0; i
< 2; i
++)
788 fprintf( stderr
, ",wcr%u=%08x,wvr%u=", i
, ctx
.debug
.arm64_regs
.wcr
[i
], i
);
789 dump_uint64( "", &ctx
.debug
.arm64_regs
.wvr
[i
] );
792 if (ctx
.flags
& SERVER_CTX_FLOATING_POINT
)
794 for (i
= 0; i
< 32; i
++)
796 fprintf( stderr
, ",q%u=", i
);
797 dump_uint64( "", &ctx
.fp
.arm64_regs
.q
[i
].high
);
798 dump_uint64( "", &ctx
.fp
.arm64_regs
.q
[i
].low
);
800 fprintf( stderr
, ",fpcr=%08x,fpsr=%08x", ctx
.fp
.arm64_regs
.fpcr
, ctx
.fp
.arm64_regs
.fpsr
);
804 fprintf( stderr
, "%s{machine=%04x", prefix
, ctx
.machine
);
807 fputc( '}', stderr
);
811 static void dump_varargs_contexts( const char *prefix
, data_size_t size
)
815 fprintf( stderr
, "%s{}", prefix
);
818 fprintf( stderr
, "%s{", prefix
);
821 dump_varargs_context( "", cur_size
);
822 fputc( cur_size
? ',' : '}', stderr
);
826 static void dump_varargs_debug_event( const char *prefix
, data_size_t size
)
833 fprintf( stderr
, "%s{}", prefix
);
836 size
= min( size
, sizeof(event
) );
837 memset( &event
, 0, sizeof(event
) );
838 memcpy( &event
, cur_data
, size
);
843 fprintf( stderr
, "%s{idle}", prefix
);
845 case DbgReplyPending
:
846 fprintf( stderr
, "%s{pending}", prefix
);
848 case DbgCreateThreadStateChange
:
849 fprintf( stderr
, "%s{create_thread,thread=%04x", prefix
, event
.create_thread
.handle
);
850 dump_uint64( ",start=", &event
.create_thread
.start
);
851 fputc( '}', stderr
);
853 case DbgCreateProcessStateChange
:
854 fprintf( stderr
, "%s{create_process,file=%04x,process=%04x,thread=%04x", prefix
,
855 event
.create_process
.file
, event
.create_process
.process
,
856 event
.create_process
.thread
);
857 dump_uint64( ",base=", &event
.create_process
.base
);
858 fprintf( stderr
, ",offset=%d,size=%d",
859 event
.create_process
.dbg_offset
, event
.create_process
.dbg_size
);
860 dump_uint64( ",start=", &event
.create_process
.start
);
861 fputc( '}', stderr
);
863 case DbgExitThreadStateChange
:
864 fprintf( stderr
, "%s{exit_thread,code=%d}", prefix
, event
.exit
.exit_code
);
866 case DbgExitProcessStateChange
:
867 fprintf( stderr
, "%s{exit_process,code=%d}", prefix
, event
.exit
.exit_code
);
869 case DbgExceptionStateChange
:
870 case DbgBreakpointStateChange
:
871 case DbgSingleStepStateChange
:
872 fprintf( stderr
, "%s{%s,first=%d,exc_code=%08x,flags=%08x", prefix
,
873 event
.code
== DbgBreakpointStateChange
? "breakpoint" :
874 event
.code
== DbgSingleStepStateChange
? "singlestep" : "exception",
875 event
.exception
.first
, event
.exception
.exc_code
, event
.exception
.flags
);
876 dump_uint64( ",record=", &event
.exception
.record
);
877 dump_uint64( ",address=", &event
.exception
.address
);
878 fprintf( stderr
, ",params={" );
879 event
.exception
.nb_params
= min( event
.exception
.nb_params
, EXCEPTION_MAXIMUM_PARAMETERS
);
880 for (i
= 0; i
< event
.exception
.nb_params
; i
++)
882 dump_uint64( "", &event
.exception
.params
[i
] );
883 if (i
< event
.exception
.nb_params
) fputc( ',', stderr
);
885 fprintf( stderr
, "}}" );
887 case DbgLoadDllStateChange
:
888 fprintf( stderr
, "%s{load_dll,file=%04x", prefix
, event
.load_dll
.handle
);
889 dump_uint64( ",base=", &event
.load_dll
.base
);
890 fprintf( stderr
, ",offset=%d,size=%d",
891 event
.load_dll
.dbg_offset
, event
.load_dll
.dbg_size
);
892 dump_uint64( ",name=", &event
.load_dll
.name
);
893 fputc( '}', stderr
);
895 case DbgUnloadDllStateChange
:
896 fprintf( stderr
, "%s{unload_dll", prefix
);
897 dump_uint64( ",base=", &event
.unload_dll
.base
);
898 fputc( '}', stderr
);
901 fprintf( stderr
, "%s{code=??? (%d)}", prefix
, event
.code
);
907 /* dump a unicode string contained in a buffer; helper for dump_varargs_startup_info */
908 static data_size_t
dump_inline_unicode_string( const char *prefix
, data_size_t pos
, data_size_t len
, data_size_t total_size
)
910 fputs( prefix
, stderr
);
911 if (pos
>= total_size
) return pos
;
912 if (len
> total_size
- pos
) len
= total_size
- pos
;
913 dump_strW( (const WCHAR
*)cur_data
+ pos
/sizeof(WCHAR
), len
, stderr
, "\"\"" );
914 return pos
+ (len
/ sizeof(WCHAR
)) * sizeof(WCHAR
);
917 static void dump_varargs_startup_info( const char *prefix
, data_size_t size
)
920 data_size_t pos
= sizeof(info
);
922 memset( &info
, 0, sizeof(info
) );
923 memcpy( &info
, cur_data
, min( size
, sizeof(info
) ));
926 "%s{debug_flags=%x,console_flags=%x,console=%04x,hstdin=%04x,hstdout=%04x,hstderr=%04x,"
927 "x=%u,y=%u,xsize=%u,ysize=%u,xchars=%u,ychars=%u,attribute=%02x,flags=%x,show=%u",
928 prefix
, info
.debug_flags
, info
.console_flags
, info
.console
,
929 info
.hstdin
, info
.hstdout
, info
.hstderr
, info
.x
, info
.y
, info
.xsize
, info
.ysize
,
930 info
.xchars
, info
.ychars
, info
.attribute
, info
.flags
, info
.show
);
931 pos
= dump_inline_unicode_string( ",curdir=L\"", pos
, info
.curdir_len
, size
);
932 pos
= dump_inline_unicode_string( "\",dllpath=L\"", pos
, info
.dllpath_len
, size
);
933 pos
= dump_inline_unicode_string( "\",imagepath=L\"", pos
, info
.imagepath_len
, size
);
934 pos
= dump_inline_unicode_string( "\",cmdline=L\"", pos
, info
.cmdline_len
, size
);
935 pos
= dump_inline_unicode_string( "\",title=L\"", pos
, info
.title_len
, size
);
936 pos
= dump_inline_unicode_string( "\",desktop=L\"", pos
, info
.desktop_len
, size
);
937 pos
= dump_inline_unicode_string( "\",shellinfo=L\"", pos
, info
.shellinfo_len
, size
);
938 pos
= dump_inline_unicode_string( "\",runtime=L\"", pos
, info
.runtime_len
, size
);
939 fprintf( stderr
, "\"}" );
943 static void dump_varargs_rectangles( const char *prefix
, data_size_t size
)
945 const rectangle_t
*rect
= cur_data
;
946 data_size_t len
= size
/ sizeof(*rect
);
948 fprintf( stderr
,"%s{", prefix
);
951 dump_rectangle( "", rect
++ );
952 if (--len
) fputc( ',', stderr
);
954 fputc( '}', stderr
);
958 static void dump_varargs_cursor_positions( const char *prefix
, data_size_t size
)
960 const cursor_pos_t
*pos
= cur_data
;
961 data_size_t len
= size
/ sizeof(*pos
);
963 fprintf( stderr
, "%s{", prefix
);
966 fprintf( stderr
, "{x=%d,y=%d,time=%u", pos
->x
, pos
->y
, pos
->time
);
967 dump_uint64( ",info=", &pos
->info
);
968 fputc( '}', stderr
);
970 if (--len
) fputc( ',', stderr
);
972 fputc( '}', stderr
);
976 static void dump_varargs_message_data( const char *prefix
, data_size_t size
)
978 /* FIXME: dump the structured data */
979 dump_varargs_bytes( prefix
, size
);
982 static void dump_varargs_properties( const char *prefix
, data_size_t size
)
984 const property_data_t
*prop
= cur_data
;
985 data_size_t len
= size
/ sizeof(*prop
);
987 fprintf( stderr
,"%s{", prefix
);
990 fprintf( stderr
, "{atom=%04x,str=%d", prop
->atom
, prop
->string
);
991 dump_uint64( ",data=", &prop
->data
);
992 fputc( '}', stderr
);
994 if (--len
) fputc( ',', stderr
);
996 fputc( '}', stderr
);
1000 static void dump_varargs_LUID_AND_ATTRIBUTES( const char *prefix
, data_size_t size
)
1002 const LUID_AND_ATTRIBUTES
*lat
= cur_data
;
1003 data_size_t len
= size
/ sizeof(*lat
);
1005 fprintf( stderr
,"%s{", prefix
);
1008 fprintf( stderr
, "{luid=%08x%08x,attr=%x}",
1009 lat
->Luid
.HighPart
, lat
->Luid
.LowPart
, lat
->Attributes
);
1011 if (--len
) fputc( ',', stderr
);
1013 fputc( '}', stderr
);
1014 remove_data( size
);
1017 static void dump_inline_sid( const char *prefix
, const SID
*sid
, data_size_t size
)
1021 /* security check */
1022 if ((FIELD_OFFSET(SID
, SubAuthority
[0]) > size
) ||
1023 (FIELD_OFFSET(SID
, SubAuthority
[sid
->SubAuthorityCount
]) > size
))
1025 fprintf( stderr
, "<invalid sid>" );
1029 fprintf( stderr
,"%s{", prefix
);
1030 fprintf( stderr
, "S-%u-%u", sid
->Revision
, MAKELONG(
1031 MAKEWORD( sid
->IdentifierAuthority
.Value
[5],
1032 sid
->IdentifierAuthority
.Value
[4] ),
1033 MAKEWORD( sid
->IdentifierAuthority
.Value
[3],
1034 sid
->IdentifierAuthority
.Value
[2] ) ) );
1035 for (i
= 0; i
< sid
->SubAuthorityCount
; i
++)
1036 fprintf( stderr
, "-%u", sid
->SubAuthority
[i
] );
1037 fputc( '}', stderr
);
1040 static void dump_varargs_SID( const char *prefix
, data_size_t size
)
1042 const SID
*sid
= cur_data
;
1043 dump_inline_sid( prefix
, sid
, size
);
1044 remove_data( size
);
1047 static void dump_inline_acl( const char *prefix
, const ACL
*acl
, data_size_t size
)
1049 const ACE_HEADER
*ace
;
1052 fprintf( stderr
,"%s{", prefix
);
1055 if (size
< sizeof(ACL
))
1057 fprintf( stderr
, "<invalid acl>}" );
1060 size
-= sizeof(ACL
);
1061 ace
= (const ACE_HEADER
*)(acl
+ 1);
1062 for (i
= 0; i
< acl
->AceCount
; i
++)
1064 const SID
*sid
= NULL
;
1065 data_size_t sid_size
= 0;
1067 if (size
< sizeof(ACE_HEADER
) || size
< ace
->AceSize
) break;
1068 size
-= ace
->AceSize
;
1069 if (i
!= 0) fputc( ',', stderr
);
1070 fprintf( stderr
, "{AceType=" );
1071 switch (ace
->AceType
)
1073 case ACCESS_DENIED_ACE_TYPE
:
1074 sid
= (const SID
*)&((const ACCESS_DENIED_ACE
*)ace
)->SidStart
;
1075 sid_size
= ace
->AceSize
- FIELD_OFFSET(ACCESS_DENIED_ACE
, SidStart
);
1076 fprintf( stderr
, "ACCESS_DENIED_ACE_TYPE,Mask=%x",
1077 ((const ACCESS_DENIED_ACE
*)ace
)->Mask
);
1079 case ACCESS_ALLOWED_ACE_TYPE
:
1080 sid
= (const SID
*)&((const ACCESS_ALLOWED_ACE
*)ace
)->SidStart
;
1081 sid_size
= ace
->AceSize
- FIELD_OFFSET(ACCESS_ALLOWED_ACE
, SidStart
);
1082 fprintf( stderr
, "ACCESS_ALLOWED_ACE_TYPE,Mask=%x",
1083 ((const ACCESS_ALLOWED_ACE
*)ace
)->Mask
);
1085 case SYSTEM_AUDIT_ACE_TYPE
:
1086 sid
= (const SID
*)&((const SYSTEM_AUDIT_ACE
*)ace
)->SidStart
;
1087 sid_size
= ace
->AceSize
- FIELD_OFFSET(SYSTEM_AUDIT_ACE
, SidStart
);
1088 fprintf( stderr
, "SYSTEM_AUDIT_ACE_TYPE,Mask=%x",
1089 ((const SYSTEM_AUDIT_ACE
*)ace
)->Mask
);
1091 case SYSTEM_ALARM_ACE_TYPE
:
1092 sid
= (const SID
*)&((const SYSTEM_ALARM_ACE
*)ace
)->SidStart
;
1093 sid_size
= ace
->AceSize
- FIELD_OFFSET(SYSTEM_ALARM_ACE
, SidStart
);
1094 fprintf( stderr
, "SYSTEM_ALARM_ACE_TYPE,Mask=%x",
1095 ((const SYSTEM_ALARM_ACE
*)ace
)->Mask
);
1097 case SYSTEM_MANDATORY_LABEL_ACE_TYPE
:
1098 sid
= (const SID
*)&((const SYSTEM_MANDATORY_LABEL_ACE
*)ace
)->SidStart
;
1099 sid_size
= ace
->AceSize
- FIELD_OFFSET(SYSTEM_MANDATORY_LABEL_ACE
, SidStart
);
1100 fprintf( stderr
, "SYSTEM_MANDATORY_LABEL_ACE_TYPE,Mask=%x",
1101 ((const SYSTEM_MANDATORY_LABEL_ACE
*)ace
)->Mask
);
1104 fprintf( stderr
, "unknown<%d>", ace
->AceType
);
1107 fprintf( stderr
, ",AceFlags=%x", ace
->AceFlags
);
1109 dump_inline_sid( ",Sid=", sid
, sid_size
);
1110 ace
= (const ACE_HEADER
*)((const char *)ace
+ ace
->AceSize
);
1111 fputc( '}', stderr
);
1114 fputc( '}', stderr
);
1117 static void dump_varargs_ACL( const char *prefix
, data_size_t size
)
1119 const ACL
*acl
= cur_data
;
1120 dump_inline_acl( prefix
, acl
, size
);
1121 remove_data( size
);
1124 static void dump_inline_security_descriptor( const char *prefix
, const struct security_descriptor
*sd
, data_size_t size
)
1126 fprintf( stderr
,"%s{", prefix
);
1127 if (size
>= sizeof(struct security_descriptor
))
1129 size_t offset
= sizeof(struct security_descriptor
);
1130 fprintf( stderr
, "control=%08x", sd
->control
);
1131 if ((sd
->owner_len
> FIELD_OFFSET(SID
, SubAuthority
[255])) || (offset
+ sd
->owner_len
> size
))
1134 dump_inline_sid( ",owner=", (const SID
*)((const char *)sd
+ offset
), sd
->owner_len
);
1136 fprintf( stderr
, ",owner=<not present>" );
1137 offset
+= sd
->owner_len
;
1138 if ((sd
->group_len
> FIELD_OFFSET(SID
, SubAuthority
[255])) || (offset
+ sd
->group_len
> size
))
1141 dump_inline_sid( ",group=", (const SID
*)((const char *)sd
+ offset
), sd
->group_len
);
1143 fprintf( stderr
, ",group=<not present>" );
1144 offset
+= sd
->group_len
;
1145 if ((sd
->sacl_len
>= MAX_ACL_LEN
) || (offset
+ sd
->sacl_len
> size
))
1147 dump_inline_acl( ",sacl=", (const ACL
*)((const char *)sd
+ offset
), sd
->sacl_len
);
1148 offset
+= sd
->sacl_len
;
1149 if ((sd
->dacl_len
>= MAX_ACL_LEN
) || (offset
+ sd
->dacl_len
> size
))
1151 dump_inline_acl( ",dacl=", (const ACL
*)((const char *)sd
+ offset
), sd
->dacl_len
);
1152 offset
+= sd
->dacl_len
;
1154 fputc( '}', stderr
);
1157 static void dump_varargs_security_descriptor( const char *prefix
, data_size_t size
)
1159 const struct security_descriptor
*sd
= cur_data
;
1160 dump_inline_security_descriptor( prefix
, sd
, size
);
1161 remove_data( size
);
1164 static void dump_varargs_token_groups( const char *prefix
, data_size_t size
)
1166 const struct token_groups
*tg
= cur_data
;
1168 fprintf( stderr
,"%s{", prefix
);
1169 if (size
>= sizeof(struct token_groups
))
1171 size_t offset
= sizeof(*tg
);
1172 fprintf( stderr
, "count=%08x,", tg
->count
);
1173 if (tg
->count
* sizeof(unsigned int) <= size
)
1176 const unsigned int *attr
= (const unsigned int *)(tg
+ 1);
1178 offset
+= tg
->count
* sizeof(unsigned int);
1180 fputc( '[', stderr
);
1181 for (i
= 0; i
< tg
->count
; i
++)
1183 const SID
*sid
= (const SID
*)((const char *)cur_data
+ offset
);
1185 fputc( ',', stderr
);
1186 fputc( '{', stderr
);
1187 fprintf( stderr
, "attributes=%08x", attr
[i
] );
1188 dump_inline_sid( ",sid=", sid
, size
- offset
);
1189 if ((offset
+ FIELD_OFFSET(SID
, SubAuthority
[0]) > size
) ||
1190 (offset
+ FIELD_OFFSET(SID
, SubAuthority
[sid
->SubAuthorityCount
]) > size
))
1192 offset
+= FIELD_OFFSET(SID
, SubAuthority
[sid
->SubAuthorityCount
]);
1193 fputc( '}', stderr
);
1195 fputc( ']', stderr
);
1198 fputc( '}', stderr
);
1201 static void dump_varargs_process_info( const char *prefix
, data_size_t size
)
1203 data_size_t pos
= 0;
1206 fprintf( stderr
,"%s{", prefix
);
1208 while (size
- pos
>= sizeof(struct process_info
))
1210 const struct process_info
*process
;
1211 pos
= (pos
+ 7) & ~7;
1212 process
= (const struct process_info
*)((const char *)cur_data
+ pos
);
1213 if (size
- pos
< sizeof(*process
)) break;
1214 if (pos
) fputc( ',', stderr
);
1215 dump_timeout( "{start_time=", &process
->start_time
);
1216 fprintf( stderr
, ",thread_count=%u,priority=%d,pid=%04x,parent_pid=%04x,session_id=%08x,handle_count=%u,unix_pid=%d,",
1217 process
->thread_count
, process
->priority
, process
->pid
,
1218 process
->parent_pid
, process
->session_id
, process
->handle_count
, process
->unix_pid
);
1219 pos
+= sizeof(*process
);
1221 pos
= dump_inline_unicode_string( "name=L\"", pos
, process
->name_len
, size
);
1223 pos
= (pos
+ 7) & ~7;
1224 fprintf( stderr
, "\",threads={" );
1225 for (i
= 0; i
< process
->thread_count
; i
++)
1227 const struct thread_info
*thread
= (const struct thread_info
*)((const char *)cur_data
+ pos
);
1228 if (size
- pos
< sizeof(*thread
)) break;
1229 if (i
) fputc( ',', stderr
);
1230 dump_timeout( "{start_time=", &thread
->start_time
);
1231 fprintf( stderr
, ",tid=%04x,base_priority=%d,current_priority=%d,unix_tid=%d}",
1232 thread
->tid
, thread
->base_priority
, thread
->current_priority
, thread
->unix_tid
);
1233 pos
+= sizeof(*thread
);
1235 fprintf( stderr
, "}}" );
1237 fputc( '}', stderr
);
1238 remove_data( size
);
1241 static void dump_varargs_object_attributes( const char *prefix
, data_size_t size
)
1243 const struct object_attributes
*objattr
= cur_data
;
1245 fprintf( stderr
,"%s{", prefix
);
1250 if (size
< sizeof(*objattr
) ||
1251 (size
- sizeof(*objattr
) < objattr
->sd_len
) ||
1252 (size
- sizeof(*objattr
) - objattr
->sd_len
< objattr
->name_len
))
1254 fprintf( stderr
, "***invalid***}" );
1255 remove_data( size
);
1259 fprintf( stderr
, "rootdir=%04x,attributes=%08x", objattr
->rootdir
, objattr
->attributes
);
1260 dump_inline_security_descriptor( ",sd=", (const struct security_descriptor
*)(objattr
+ 1), objattr
->sd_len
);
1261 str
= (const WCHAR
*)objattr
+ (sizeof(*objattr
) + objattr
->sd_len
) / sizeof(WCHAR
);
1262 fprintf( stderr
, ",name=L\"" );
1263 dump_strW( str
, objattr
->name_len
, stderr
, "\"\"" );
1264 fputc( '\"', stderr
);
1265 remove_data( (sizeof(*objattr
) + (objattr
->sd_len
& ~1) + (objattr
->name_len
& ~1) + 3) & ~3 );
1267 fputc( '}', stderr
);
1270 static void dump_varargs_object_type_info( const char *prefix
, data_size_t size
)
1272 const struct object_type_info
*info
= cur_data
;
1274 fprintf( stderr
,"%s{", prefix
);
1277 if (size
< sizeof(*info
) || (size
- sizeof(*info
) < info
->name_len
))
1279 fprintf( stderr
, "***invalid***}" );
1280 remove_data( size
);
1284 fprintf( stderr
, "index=%u,obj_count=%u,handle_count=%u,obj_max=%u,handle_max=%u,valid=%08x",
1285 info
->index
,info
->obj_count
, info
->handle_count
, info
->obj_max
, info
->handle_max
,
1286 info
->valid_access
);
1287 dump_generic_map( ",access=", &info
->mapping
);
1288 fprintf( stderr
, ",name=L\"" );
1289 dump_strW( (const WCHAR
*)(info
+ 1), info
->name_len
, stderr
, "\"\"" );
1290 fputc( '\"', stderr
);
1291 remove_data( min( size
, sizeof(*info
) + ((info
->name_len
+ 2) & ~3 )));
1293 fputc( '}', stderr
);
1296 static void dump_varargs_object_types_info( const char *prefix
, data_size_t size
)
1298 fprintf( stderr
,"%s{", prefix
);
1299 while (cur_size
) dump_varargs_object_type_info( ",", cur_size
);
1300 fputc( '}', stderr
);
1303 static void dump_varargs_filesystem_event( const char *prefix
, data_size_t size
)
1305 static const char * const actions
[] = {
1317 fprintf( stderr
,"%s{", prefix
);
1320 const struct filesystem_event
*event
= cur_data
;
1321 data_size_t len
= (offsetof( struct filesystem_event
, name
[event
->len
] ) + sizeof(int)-1)
1322 / sizeof(int) * sizeof(int);
1323 if (size
< len
) break;
1324 if (event
->action
< ARRAY_SIZE( actions
) && actions
[event
->action
])
1325 fprintf( stderr
, "{action=%s", actions
[event
->action
] );
1327 fprintf( stderr
, "{action=%u", event
->action
);
1328 fprintf( stderr
, ",name=\"%.*s\"}", event
->len
, event
->name
);
1331 if (size
)fputc( ',', stderr
);
1333 fputc( '}', stderr
);
1336 static void dump_varargs_pe_image_info( const char *prefix
, data_size_t size
)
1338 pe_image_info_t info
;
1342 fprintf( stderr
, "%s{}", prefix
);
1345 memset( &info
, 0, sizeof(info
) );
1346 memcpy( &info
, cur_data
, min( size
, sizeof(info
) ));
1348 fprintf( stderr
, "%s{", prefix
);
1349 dump_uint64( "base=", &info
.base
);
1350 dump_uint64( ",stack_size=", &info
.stack_size
);
1351 dump_uint64( ",stack_commit=", &info
.stack_commit
);
1352 fprintf( stderr
, ",entry_point=%08x,map_size=%08x,zerobits=%08x,subsystem=%08x,subsystem_minor=%04x,subsystem_major=%04x"
1353 ",osversion_major=%04x,osversion_minor=%04x,image_charact=%04x,dll_charact=%04x,machine=%04x"
1354 ",contains_code=%u,image_flags=%02x"
1355 ",loader_flags=%08x,header_size=%08x,file_size=%08x,checksum=%08x}",
1356 info
.entry_point
, info
.map_size
, info
.zerobits
, info
.subsystem
, info
.subsystem_minor
,
1357 info
.subsystem_major
, info
.osversion_major
, info
.osversion_minor
, info
.image_charact
,
1358 info
.dll_charact
, info
.machine
, info
.contains_code
, info
.image_flags
, info
.loader_flags
,
1359 info
.header_size
, info
.file_size
, info
.checksum
);
1360 remove_data( min( size
, sizeof(info
) ));
1363 static void dump_varargs_rawinput_devices(const char *prefix
, data_size_t size
)
1365 const struct rawinput_device
*device
;
1367 fprintf( stderr
, "%s{", prefix
);
1368 while (size
>= sizeof(*device
))
1371 fprintf( stderr
, "{usage_page=%04x,usage=%04x,flags=%08x,target=%08x}",
1372 device
->usage_page
, device
->usage
, device
->flags
, device
->target
);
1373 size
-= sizeof(*device
);
1374 remove_data( sizeof(*device
) );
1375 if (size
) fputc( ',', stderr
);
1377 fputc( '}', stderr
);
1380 static void dump_varargs_handle_infos( const char *prefix
, data_size_t size
)
1382 const struct handle_info
*handle
;
1384 fprintf( stderr
, "%s{", prefix
);
1385 while (size
>= sizeof(*handle
))
1388 fprintf( stderr
, "{owner=%04x,handle=%04x,access=%08x,attributes=%08x,type=%u}",
1389 handle
->owner
, handle
->handle
, handle
->access
, handle
->attributes
, handle
->type
);
1390 size
-= sizeof(*handle
);
1391 remove_data( sizeof(*handle
) );
1392 if (size
) fputc( ',', stderr
);
1394 fputc( '}', stderr
);
1397 static void dump_varargs_poll_socket_input( const char *prefix
, data_size_t size
)
1399 const struct poll_socket_input
*input
;
1401 fprintf( stderr
, "%s{", prefix
);
1402 while (size
>= sizeof(*input
))
1405 fprintf( stderr
, "{socket=%04x,flags=%08x}", input
->socket
, input
->flags
);
1406 size
-= sizeof(*input
);
1407 remove_data( sizeof(*input
) );
1408 if (size
) fputc( ',', stderr
);
1410 fputc( '}', stderr
);
1413 static void dump_varargs_poll_socket_output( const char *prefix
, data_size_t size
)
1415 const struct poll_socket_output
*output
;
1417 fprintf( stderr
, "%s{", prefix
);
1418 while (size
>= sizeof(*output
))
1421 fprintf( stderr
, "{flags=%08x,status=%s}", output
->flags
, get_status_name( output
->status
) );
1422 size
-= sizeof(*output
);
1423 remove_data( sizeof(*output
) );
1424 if (size
) fputc( ',', stderr
);
1426 fputc( '}', stderr
);
1429 typedef void (*dump_func
)( const void *req
);
1431 /* Everything below this line is generated automatically by tools/make_requests */
1432 /* ### make_requests begin ### */
1434 static void dump_new_process_request( const struct new_process_request
*req
)
1436 fprintf( stderr
, " token=%04x", req
->token
);
1437 fprintf( stderr
, ", debug=%04x", req
->debug
);
1438 fprintf( stderr
, ", parent_process=%04x", req
->parent_process
);
1439 fprintf( stderr
, ", flags=%08x", req
->flags
);
1440 fprintf( stderr
, ", socket_fd=%d", req
->socket_fd
);
1441 fprintf( stderr
, ", access=%08x", req
->access
);
1442 fprintf( stderr
, ", machine=%04x", req
->machine
);
1443 fprintf( stderr
, ", info_size=%u", req
->info_size
);
1444 fprintf( stderr
, ", handles_size=%u", req
->handles_size
);
1445 fprintf( stderr
, ", jobs_size=%u", req
->jobs_size
);
1446 dump_varargs_object_attributes( ", objattr=", cur_size
);
1447 dump_varargs_uints( ", handles=", min(cur_size
,req
->handles_size
) );
1448 dump_varargs_uints( ", jobs=", min(cur_size
,req
->jobs_size
) );
1449 dump_varargs_startup_info( ", info=", min(cur_size
,req
->info_size
) );
1450 dump_varargs_unicode_str( ", env=", cur_size
);
1453 static void dump_new_process_reply( const struct new_process_reply
*req
)
1455 fprintf( stderr
, " info=%04x", req
->info
);
1456 fprintf( stderr
, ", pid=%04x", req
->pid
);
1457 fprintf( stderr
, ", handle=%04x", req
->handle
);
1460 static void dump_get_new_process_info_request( const struct get_new_process_info_request
*req
)
1462 fprintf( stderr
, " info=%04x", req
->info
);
1465 static void dump_get_new_process_info_reply( const struct get_new_process_info_reply
*req
)
1467 fprintf( stderr
, " success=%d", req
->success
);
1468 fprintf( stderr
, ", exit_code=%d", req
->exit_code
);
1471 static void dump_new_thread_request( const struct new_thread_request
*req
)
1473 fprintf( stderr
, " process=%04x", req
->process
);
1474 fprintf( stderr
, ", access=%08x", req
->access
);
1475 fprintf( stderr
, ", suspend=%d", req
->suspend
);
1476 fprintf( stderr
, ", request_fd=%d", req
->request_fd
);
1477 dump_varargs_object_attributes( ", objattr=", cur_size
);
1480 static void dump_new_thread_reply( const struct new_thread_reply
*req
)
1482 fprintf( stderr
, " tid=%04x", req
->tid
);
1483 fprintf( stderr
, ", handle=%04x", req
->handle
);
1486 static void dump_get_startup_info_request( const struct get_startup_info_request
*req
)
1490 static void dump_get_startup_info_reply( const struct get_startup_info_reply
*req
)
1492 fprintf( stderr
, " info_size=%u", req
->info_size
);
1493 dump_varargs_startup_info( ", info=", min(cur_size
,req
->info_size
) );
1494 dump_varargs_unicode_str( ", env=", cur_size
);
1497 static void dump_init_process_done_request( const struct init_process_done_request
*req
)
1499 dump_uint64( " teb=", &req
->teb
);
1500 dump_uint64( ", peb=", &req
->peb
);
1501 dump_uint64( ", ldt_copy=", &req
->ldt_copy
);
1504 static void dump_init_process_done_reply( const struct init_process_done_reply
*req
)
1506 dump_uint64( " entry=", &req
->entry
);
1507 fprintf( stderr
, ", suspend=%d", req
->suspend
);
1510 static void dump_init_first_thread_request( const struct init_first_thread_request
*req
)
1512 fprintf( stderr
, " unix_pid=%d", req
->unix_pid
);
1513 fprintf( stderr
, ", unix_tid=%d", req
->unix_tid
);
1514 fprintf( stderr
, ", debug_level=%d", req
->debug_level
);
1515 fprintf( stderr
, ", reply_fd=%d", req
->reply_fd
);
1516 fprintf( stderr
, ", wait_fd=%d", req
->wait_fd
);
1519 static void dump_init_first_thread_reply( const struct init_first_thread_reply
*req
)
1521 fprintf( stderr
, " pid=%04x", req
->pid
);
1522 fprintf( stderr
, ", tid=%04x", req
->tid
);
1523 dump_timeout( ", server_start=", &req
->server_start
);
1524 fprintf( stderr
, ", session_id=%08x", req
->session_id
);
1525 fprintf( stderr
, ", info_size=%u", req
->info_size
);
1526 dump_varargs_ushorts( ", machines=", cur_size
);
1529 static void dump_init_thread_request( const struct init_thread_request
*req
)
1531 fprintf( stderr
, " unix_tid=%d", req
->unix_tid
);
1532 fprintf( stderr
, ", reply_fd=%d", req
->reply_fd
);
1533 fprintf( stderr
, ", wait_fd=%d", req
->wait_fd
);
1534 dump_uint64( ", teb=", &req
->teb
);
1535 dump_uint64( ", entry=", &req
->entry
);
1538 static void dump_init_thread_reply( const struct init_thread_reply
*req
)
1540 fprintf( stderr
, " suspend=%d", req
->suspend
);
1543 static void dump_terminate_process_request( const struct terminate_process_request
*req
)
1545 fprintf( stderr
, " handle=%04x", req
->handle
);
1546 fprintf( stderr
, ", exit_code=%d", req
->exit_code
);
1549 static void dump_terminate_process_reply( const struct terminate_process_reply
*req
)
1551 fprintf( stderr
, " self=%d", req
->self
);
1554 static void dump_terminate_thread_request( const struct terminate_thread_request
*req
)
1556 fprintf( stderr
, " handle=%04x", req
->handle
);
1557 fprintf( stderr
, ", exit_code=%d", req
->exit_code
);
1560 static void dump_terminate_thread_reply( const struct terminate_thread_reply
*req
)
1562 fprintf( stderr
, " self=%d", req
->self
);
1565 static void dump_get_process_info_request( const struct get_process_info_request
*req
)
1567 fprintf( stderr
, " handle=%04x", req
->handle
);
1570 static void dump_get_process_info_reply( const struct get_process_info_reply
*req
)
1572 fprintf( stderr
, " pid=%04x", req
->pid
);
1573 fprintf( stderr
, ", ppid=%04x", req
->ppid
);
1574 dump_uint64( ", affinity=", &req
->affinity
);
1575 dump_uint64( ", peb=", &req
->peb
);
1576 dump_timeout( ", start_time=", &req
->start_time
);
1577 dump_timeout( ", end_time=", &req
->end_time
);
1578 fprintf( stderr
, ", session_id=%08x", req
->session_id
);
1579 fprintf( stderr
, ", exit_code=%d", req
->exit_code
);
1580 fprintf( stderr
, ", priority=%d", req
->priority
);
1581 fprintf( stderr
, ", machine=%04x", req
->machine
);
1582 dump_varargs_pe_image_info( ", image=", cur_size
);
1585 static void dump_get_process_debug_info_request( const struct get_process_debug_info_request
*req
)
1587 fprintf( stderr
, " handle=%04x", req
->handle
);
1590 static void dump_get_process_debug_info_reply( const struct get_process_debug_info_reply
*req
)
1592 fprintf( stderr
, " debug=%04x", req
->debug
);
1593 fprintf( stderr
, ", debug_children=%d", req
->debug_children
);
1594 dump_varargs_pe_image_info( ", image=", cur_size
);
1597 static void dump_get_process_image_name_request( const struct get_process_image_name_request
*req
)
1599 fprintf( stderr
, " handle=%04x", req
->handle
);
1600 fprintf( stderr
, ", win32=%d", req
->win32
);
1603 static void dump_get_process_image_name_reply( const struct get_process_image_name_reply
*req
)
1605 fprintf( stderr
, " len=%u", req
->len
);
1606 dump_varargs_unicode_str( ", name=", cur_size
);
1609 static void dump_get_process_vm_counters_request( const struct get_process_vm_counters_request
*req
)
1611 fprintf( stderr
, " handle=%04x", req
->handle
);
1614 static void dump_get_process_vm_counters_reply( const struct get_process_vm_counters_reply
*req
)
1616 dump_uint64( " peak_virtual_size=", &req
->peak_virtual_size
);
1617 dump_uint64( ", virtual_size=", &req
->virtual_size
);
1618 dump_uint64( ", peak_working_set_size=", &req
->peak_working_set_size
);
1619 dump_uint64( ", working_set_size=", &req
->working_set_size
);
1620 dump_uint64( ", pagefile_usage=", &req
->pagefile_usage
);
1621 dump_uint64( ", peak_pagefile_usage=", &req
->peak_pagefile_usage
);
1624 static void dump_set_process_info_request( const struct set_process_info_request
*req
)
1626 fprintf( stderr
, " handle=%04x", req
->handle
);
1627 fprintf( stderr
, ", mask=%d", req
->mask
);
1628 fprintf( stderr
, ", priority=%d", req
->priority
);
1629 dump_uint64( ", affinity=", &req
->affinity
);
1632 static void dump_get_thread_info_request( const struct get_thread_info_request
*req
)
1634 fprintf( stderr
, " handle=%04x", req
->handle
);
1635 fprintf( stderr
, ", access=%08x", req
->access
);
1638 static void dump_get_thread_info_reply( const struct get_thread_info_reply
*req
)
1640 fprintf( stderr
, " pid=%04x", req
->pid
);
1641 fprintf( stderr
, ", tid=%04x", req
->tid
);
1642 dump_uint64( ", teb=", &req
->teb
);
1643 dump_uint64( ", entry_point=", &req
->entry_point
);
1644 dump_uint64( ", affinity=", &req
->affinity
);
1645 fprintf( stderr
, ", exit_code=%d", req
->exit_code
);
1646 fprintf( stderr
, ", priority=%d", req
->priority
);
1647 fprintf( stderr
, ", last=%d", req
->last
);
1648 fprintf( stderr
, ", suspend_count=%d", req
->suspend_count
);
1649 fprintf( stderr
, ", dbg_hidden=%d", req
->dbg_hidden
);
1650 fprintf( stderr
, ", desc_len=%u", req
->desc_len
);
1651 dump_varargs_unicode_str( ", desc=", cur_size
);
1654 static void dump_get_thread_times_request( const struct get_thread_times_request
*req
)
1656 fprintf( stderr
, " handle=%04x", req
->handle
);
1659 static void dump_get_thread_times_reply( const struct get_thread_times_reply
*req
)
1661 dump_timeout( " creation_time=", &req
->creation_time
);
1662 dump_timeout( ", exit_time=", &req
->exit_time
);
1663 fprintf( stderr
, ", unix_pid=%d", req
->unix_pid
);
1664 fprintf( stderr
, ", unix_tid=%d", req
->unix_tid
);
1667 static void dump_set_thread_info_request( const struct set_thread_info_request
*req
)
1669 fprintf( stderr
, " handle=%04x", req
->handle
);
1670 fprintf( stderr
, ", mask=%d", req
->mask
);
1671 fprintf( stderr
, ", priority=%d", req
->priority
);
1672 dump_uint64( ", affinity=", &req
->affinity
);
1673 dump_uint64( ", entry_point=", &req
->entry_point
);
1674 fprintf( stderr
, ", token=%04x", req
->token
);
1675 dump_varargs_unicode_str( ", desc=", cur_size
);
1678 static void dump_suspend_thread_request( const struct suspend_thread_request
*req
)
1680 fprintf( stderr
, " handle=%04x", req
->handle
);
1683 static void dump_suspend_thread_reply( const struct suspend_thread_reply
*req
)
1685 fprintf( stderr
, " count=%d", req
->count
);
1688 static void dump_resume_thread_request( const struct resume_thread_request
*req
)
1690 fprintf( stderr
, " handle=%04x", req
->handle
);
1693 static void dump_resume_thread_reply( const struct resume_thread_reply
*req
)
1695 fprintf( stderr
, " count=%d", req
->count
);
1698 static void dump_queue_apc_request( const struct queue_apc_request
*req
)
1700 fprintf( stderr
, " handle=%04x", req
->handle
);
1701 dump_apc_call( ", call=", &req
->call
);
1704 static void dump_queue_apc_reply( const struct queue_apc_reply
*req
)
1706 fprintf( stderr
, " handle=%04x", req
->handle
);
1707 fprintf( stderr
, ", self=%d", req
->self
);
1710 static void dump_get_apc_result_request( const struct get_apc_result_request
*req
)
1712 fprintf( stderr
, " handle=%04x", req
->handle
);
1715 static void dump_get_apc_result_reply( const struct get_apc_result_reply
*req
)
1717 dump_apc_result( " result=", &req
->result
);
1720 static void dump_close_handle_request( const struct close_handle_request
*req
)
1722 fprintf( stderr
, " handle=%04x", req
->handle
);
1725 static void dump_set_handle_info_request( const struct set_handle_info_request
*req
)
1727 fprintf( stderr
, " handle=%04x", req
->handle
);
1728 fprintf( stderr
, ", flags=%d", req
->flags
);
1729 fprintf( stderr
, ", mask=%d", req
->mask
);
1732 static void dump_set_handle_info_reply( const struct set_handle_info_reply
*req
)
1734 fprintf( stderr
, " old_flags=%d", req
->old_flags
);
1737 static void dump_dup_handle_request( const struct dup_handle_request
*req
)
1739 fprintf( stderr
, " src_process=%04x", req
->src_process
);
1740 fprintf( stderr
, ", src_handle=%04x", req
->src_handle
);
1741 fprintf( stderr
, ", dst_process=%04x", req
->dst_process
);
1742 fprintf( stderr
, ", access=%08x", req
->access
);
1743 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1744 fprintf( stderr
, ", options=%08x", req
->options
);
1747 static void dump_dup_handle_reply( const struct dup_handle_reply
*req
)
1749 fprintf( stderr
, " handle=%04x", req
->handle
);
1752 static void dump_make_temporary_request( const struct make_temporary_request
*req
)
1754 fprintf( stderr
, " handle=%04x", req
->handle
);
1757 static void dump_open_process_request( const struct open_process_request
*req
)
1759 fprintf( stderr
, " pid=%04x", req
->pid
);
1760 fprintf( stderr
, ", access=%08x", req
->access
);
1761 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1764 static void dump_open_process_reply( const struct open_process_reply
*req
)
1766 fprintf( stderr
, " handle=%04x", req
->handle
);
1769 static void dump_open_thread_request( const struct open_thread_request
*req
)
1771 fprintf( stderr
, " tid=%04x", req
->tid
);
1772 fprintf( stderr
, ", access=%08x", req
->access
);
1773 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1776 static void dump_open_thread_reply( const struct open_thread_reply
*req
)
1778 fprintf( stderr
, " handle=%04x", req
->handle
);
1781 static void dump_select_request( const struct select_request
*req
)
1783 fprintf( stderr
, " flags=%d", req
->flags
);
1784 dump_uint64( ", cookie=", &req
->cookie
);
1785 dump_abstime( ", timeout=", &req
->timeout
);
1786 fprintf( stderr
, ", size=%u", req
->size
);
1787 fprintf( stderr
, ", prev_apc=%04x", req
->prev_apc
);
1788 dump_varargs_apc_result( ", result=", cur_size
);
1789 dump_varargs_select_op( ", data=", min(cur_size
,req
->size
) );
1790 dump_varargs_contexts( ", contexts=", cur_size
);
1793 static void dump_select_reply( const struct select_reply
*req
)
1795 dump_apc_call( " call=", &req
->call
);
1796 fprintf( stderr
, ", apc_handle=%04x", req
->apc_handle
);
1797 fprintf( stderr
, ", signaled=%d", req
->signaled
);
1798 dump_varargs_contexts( ", contexts=", cur_size
);
1801 static void dump_create_event_request( const struct create_event_request
*req
)
1803 fprintf( stderr
, " access=%08x", req
->access
);
1804 fprintf( stderr
, ", manual_reset=%d", req
->manual_reset
);
1805 fprintf( stderr
, ", initial_state=%d", req
->initial_state
);
1806 dump_varargs_object_attributes( ", objattr=", cur_size
);
1809 static void dump_create_event_reply( const struct create_event_reply
*req
)
1811 fprintf( stderr
, " handle=%04x", req
->handle
);
1814 static void dump_event_op_request( const struct event_op_request
*req
)
1816 fprintf( stderr
, " handle=%04x", req
->handle
);
1817 fprintf( stderr
, ", op=%d", req
->op
);
1820 static void dump_event_op_reply( const struct event_op_reply
*req
)
1822 fprintf( stderr
, " state=%d", req
->state
);
1825 static void dump_query_event_request( const struct query_event_request
*req
)
1827 fprintf( stderr
, " handle=%04x", req
->handle
);
1830 static void dump_query_event_reply( const struct query_event_reply
*req
)
1832 fprintf( stderr
, " manual_reset=%d", req
->manual_reset
);
1833 fprintf( stderr
, ", state=%d", req
->state
);
1836 static void dump_open_event_request( const struct open_event_request
*req
)
1838 fprintf( stderr
, " access=%08x", req
->access
);
1839 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1840 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
1841 dump_varargs_unicode_str( ", name=", cur_size
);
1844 static void dump_open_event_reply( const struct open_event_reply
*req
)
1846 fprintf( stderr
, " handle=%04x", req
->handle
);
1849 static void dump_create_keyed_event_request( const struct create_keyed_event_request
*req
)
1851 fprintf( stderr
, " access=%08x", req
->access
);
1852 dump_varargs_object_attributes( ", objattr=", cur_size
);
1855 static void dump_create_keyed_event_reply( const struct create_keyed_event_reply
*req
)
1857 fprintf( stderr
, " handle=%04x", req
->handle
);
1860 static void dump_open_keyed_event_request( const struct open_keyed_event_request
*req
)
1862 fprintf( stderr
, " access=%08x", req
->access
);
1863 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1864 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
1865 dump_varargs_unicode_str( ", name=", cur_size
);
1868 static void dump_open_keyed_event_reply( const struct open_keyed_event_reply
*req
)
1870 fprintf( stderr
, " handle=%04x", req
->handle
);
1873 static void dump_create_mutex_request( const struct create_mutex_request
*req
)
1875 fprintf( stderr
, " access=%08x", req
->access
);
1876 fprintf( stderr
, ", owned=%d", req
->owned
);
1877 dump_varargs_object_attributes( ", objattr=", cur_size
);
1880 static void dump_create_mutex_reply( const struct create_mutex_reply
*req
)
1882 fprintf( stderr
, " handle=%04x", req
->handle
);
1885 static void dump_release_mutex_request( const struct release_mutex_request
*req
)
1887 fprintf( stderr
, " handle=%04x", req
->handle
);
1890 static void dump_release_mutex_reply( const struct release_mutex_reply
*req
)
1892 fprintf( stderr
, " prev_count=%08x", req
->prev_count
);
1895 static void dump_open_mutex_request( const struct open_mutex_request
*req
)
1897 fprintf( stderr
, " access=%08x", req
->access
);
1898 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1899 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
1900 dump_varargs_unicode_str( ", name=", cur_size
);
1903 static void dump_open_mutex_reply( const struct open_mutex_reply
*req
)
1905 fprintf( stderr
, " handle=%04x", req
->handle
);
1908 static void dump_query_mutex_request( const struct query_mutex_request
*req
)
1910 fprintf( stderr
, " handle=%04x", req
->handle
);
1913 static void dump_query_mutex_reply( const struct query_mutex_reply
*req
)
1915 fprintf( stderr
, " count=%08x", req
->count
);
1916 fprintf( stderr
, ", owned=%d", req
->owned
);
1917 fprintf( stderr
, ", abandoned=%d", req
->abandoned
);
1920 static void dump_create_semaphore_request( const struct create_semaphore_request
*req
)
1922 fprintf( stderr
, " access=%08x", req
->access
);
1923 fprintf( stderr
, ", initial=%08x", req
->initial
);
1924 fprintf( stderr
, ", max=%08x", req
->max
);
1925 dump_varargs_object_attributes( ", objattr=", cur_size
);
1928 static void dump_create_semaphore_reply( const struct create_semaphore_reply
*req
)
1930 fprintf( stderr
, " handle=%04x", req
->handle
);
1933 static void dump_release_semaphore_request( const struct release_semaphore_request
*req
)
1935 fprintf( stderr
, " handle=%04x", req
->handle
);
1936 fprintf( stderr
, ", count=%08x", req
->count
);
1939 static void dump_release_semaphore_reply( const struct release_semaphore_reply
*req
)
1941 fprintf( stderr
, " prev_count=%08x", req
->prev_count
);
1944 static void dump_query_semaphore_request( const struct query_semaphore_request
*req
)
1946 fprintf( stderr
, " handle=%04x", req
->handle
);
1949 static void dump_query_semaphore_reply( const struct query_semaphore_reply
*req
)
1951 fprintf( stderr
, " current=%08x", req
->current
);
1952 fprintf( stderr
, ", max=%08x", req
->max
);
1955 static void dump_open_semaphore_request( const struct open_semaphore_request
*req
)
1957 fprintf( stderr
, " access=%08x", req
->access
);
1958 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1959 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
1960 dump_varargs_unicode_str( ", name=", cur_size
);
1963 static void dump_open_semaphore_reply( const struct open_semaphore_reply
*req
)
1965 fprintf( stderr
, " handle=%04x", req
->handle
);
1968 static void dump_create_file_request( const struct create_file_request
*req
)
1970 fprintf( stderr
, " access=%08x", req
->access
);
1971 fprintf( stderr
, ", sharing=%08x", req
->sharing
);
1972 fprintf( stderr
, ", create=%d", req
->create
);
1973 fprintf( stderr
, ", options=%08x", req
->options
);
1974 fprintf( stderr
, ", attrs=%08x", req
->attrs
);
1975 dump_varargs_object_attributes( ", objattr=", cur_size
);
1976 dump_varargs_string( ", filename=", cur_size
);
1979 static void dump_create_file_reply( const struct create_file_reply
*req
)
1981 fprintf( stderr
, " handle=%04x", req
->handle
);
1984 static void dump_open_file_object_request( const struct open_file_object_request
*req
)
1986 fprintf( stderr
, " access=%08x", req
->access
);
1987 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1988 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
1989 fprintf( stderr
, ", sharing=%08x", req
->sharing
);
1990 fprintf( stderr
, ", options=%08x", req
->options
);
1991 dump_varargs_unicode_str( ", filename=", cur_size
);
1994 static void dump_open_file_object_reply( const struct open_file_object_reply
*req
)
1996 fprintf( stderr
, " handle=%04x", req
->handle
);
1999 static void dump_alloc_file_handle_request( const struct alloc_file_handle_request
*req
)
2001 fprintf( stderr
, " access=%08x", req
->access
);
2002 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
2003 fprintf( stderr
, ", fd=%d", req
->fd
);
2006 static void dump_alloc_file_handle_reply( const struct alloc_file_handle_reply
*req
)
2008 fprintf( stderr
, " handle=%04x", req
->handle
);
2011 static void dump_get_handle_unix_name_request( const struct get_handle_unix_name_request
*req
)
2013 fprintf( stderr
, " handle=%04x", req
->handle
);
2016 static void dump_get_handle_unix_name_reply( const struct get_handle_unix_name_reply
*req
)
2018 fprintf( stderr
, " name_len=%u", req
->name_len
);
2019 dump_varargs_string( ", name=", cur_size
);
2022 static void dump_get_handle_fd_request( const struct get_handle_fd_request
*req
)
2024 fprintf( stderr
, " handle=%04x", req
->handle
);
2027 static void dump_get_handle_fd_reply( const struct get_handle_fd_reply
*req
)
2029 fprintf( stderr
, " type=%d", req
->type
);
2030 fprintf( stderr
, ", cacheable=%d", req
->cacheable
);
2031 fprintf( stderr
, ", access=%08x", req
->access
);
2032 fprintf( stderr
, ", options=%08x", req
->options
);
2035 static void dump_get_directory_cache_entry_request( const struct get_directory_cache_entry_request
*req
)
2037 fprintf( stderr
, " handle=%04x", req
->handle
);
2040 static void dump_get_directory_cache_entry_reply( const struct get_directory_cache_entry_reply
*req
)
2042 fprintf( stderr
, " entry=%d", req
->entry
);
2043 dump_varargs_ints( ", free=", cur_size
);
2046 static void dump_flush_request( const struct flush_request
*req
)
2048 dump_async_data( " async=", &req
->async
);
2051 static void dump_flush_reply( const struct flush_reply
*req
)
2053 fprintf( stderr
, " event=%04x", req
->event
);
2056 static void dump_get_file_info_request( const struct get_file_info_request
*req
)
2058 fprintf( stderr
, " handle=%04x", req
->handle
);
2059 fprintf( stderr
, ", info_class=%08x", req
->info_class
);
2062 static void dump_get_file_info_reply( const struct get_file_info_reply
*req
)
2064 dump_varargs_bytes( " data=", cur_size
);
2067 static void dump_get_volume_info_request( const struct get_volume_info_request
*req
)
2069 fprintf( stderr
, " handle=%04x", req
->handle
);
2070 dump_async_data( ", async=", &req
->async
);
2071 fprintf( stderr
, ", info_class=%08x", req
->info_class
);
2074 static void dump_get_volume_info_reply( const struct get_volume_info_reply
*req
)
2076 fprintf( stderr
, " wait=%04x", req
->wait
);
2077 dump_varargs_bytes( ", data=", cur_size
);
2080 static void dump_lock_file_request( const struct lock_file_request
*req
)
2082 fprintf( stderr
, " handle=%04x", req
->handle
);
2083 dump_uint64( ", offset=", &req
->offset
);
2084 dump_uint64( ", count=", &req
->count
);
2085 fprintf( stderr
, ", shared=%d", req
->shared
);
2086 fprintf( stderr
, ", wait=%d", req
->wait
);
2089 static void dump_lock_file_reply( const struct lock_file_reply
*req
)
2091 fprintf( stderr
, " handle=%04x", req
->handle
);
2092 fprintf( stderr
, ", overlapped=%d", req
->overlapped
);
2095 static void dump_unlock_file_request( const struct unlock_file_request
*req
)
2097 fprintf( stderr
, " handle=%04x", req
->handle
);
2098 dump_uint64( ", offset=", &req
->offset
);
2099 dump_uint64( ", count=", &req
->count
);
2102 static void dump_recv_socket_request( const struct recv_socket_request
*req
)
2104 fprintf( stderr
, " oob=%d", req
->oob
);
2105 dump_async_data( ", async=", &req
->async
);
2106 fprintf( stderr
, ", status=%08x", req
->status
);
2107 fprintf( stderr
, ", total=%08x", req
->total
);
2110 static void dump_recv_socket_reply( const struct recv_socket_reply
*req
)
2112 fprintf( stderr
, " wait=%04x", req
->wait
);
2113 fprintf( stderr
, ", options=%08x", req
->options
);
2116 static void dump_poll_socket_request( const struct poll_socket_request
*req
)
2118 fprintf( stderr
, " exclusive=%d", req
->exclusive
);
2119 dump_async_data( ", async=", &req
->async
);
2120 dump_timeout( ", timeout=", &req
->timeout
);
2121 dump_varargs_poll_socket_input( ", sockets=", cur_size
);
2124 static void dump_poll_socket_reply( const struct poll_socket_reply
*req
)
2126 fprintf( stderr
, " wait=%04x", req
->wait
);
2127 fprintf( stderr
, ", options=%08x", req
->options
);
2128 dump_varargs_poll_socket_output( ", sockets=", cur_size
);
2131 static void dump_send_socket_request( const struct send_socket_request
*req
)
2133 dump_async_data( " async=", &req
->async
);
2134 fprintf( stderr
, ", status=%08x", req
->status
);
2135 fprintf( stderr
, ", total=%08x", req
->total
);
2138 static void dump_send_socket_reply( const struct send_socket_reply
*req
)
2140 fprintf( stderr
, " wait=%04x", req
->wait
);
2141 fprintf( stderr
, ", options=%08x", req
->options
);
2144 static void dump_get_next_console_request_request( const struct get_next_console_request_request
*req
)
2146 fprintf( stderr
, " handle=%04x", req
->handle
);
2147 fprintf( stderr
, ", signal=%d", req
->signal
);
2148 fprintf( stderr
, ", read=%d", req
->read
);
2149 fprintf( stderr
, ", status=%08x", req
->status
);
2150 dump_varargs_bytes( ", out_data=", cur_size
);
2153 static void dump_get_next_console_request_reply( const struct get_next_console_request_reply
*req
)
2155 fprintf( stderr
, " code=%08x", req
->code
);
2156 fprintf( stderr
, ", output=%08x", req
->output
);
2157 fprintf( stderr
, ", out_size=%u", req
->out_size
);
2158 dump_varargs_bytes( ", in_data=", cur_size
);
2161 static void dump_read_directory_changes_request( const struct read_directory_changes_request
*req
)
2163 fprintf( stderr
, " filter=%08x", req
->filter
);
2164 fprintf( stderr
, ", subtree=%d", req
->subtree
);
2165 fprintf( stderr
, ", want_data=%d", req
->want_data
);
2166 dump_async_data( ", async=", &req
->async
);
2169 static void dump_read_change_request( const struct read_change_request
*req
)
2171 fprintf( stderr
, " handle=%04x", req
->handle
);
2174 static void dump_read_change_reply( const struct read_change_reply
*req
)
2176 dump_varargs_filesystem_event( " events=", cur_size
);
2179 static void dump_create_mapping_request( const struct create_mapping_request
*req
)
2181 fprintf( stderr
, " access=%08x", req
->access
);
2182 fprintf( stderr
, ", flags=%08x", req
->flags
);
2183 fprintf( stderr
, ", file_access=%08x", req
->file_access
);
2184 dump_uint64( ", size=", &req
->size
);
2185 fprintf( stderr
, ", file_handle=%04x", req
->file_handle
);
2186 dump_varargs_object_attributes( ", objattr=", cur_size
);
2189 static void dump_create_mapping_reply( const struct create_mapping_reply
*req
)
2191 fprintf( stderr
, " handle=%04x", req
->handle
);
2194 static void dump_open_mapping_request( const struct open_mapping_request
*req
)
2196 fprintf( stderr
, " access=%08x", req
->access
);
2197 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
2198 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
2199 dump_varargs_unicode_str( ", name=", cur_size
);
2202 static void dump_open_mapping_reply( const struct open_mapping_reply
*req
)
2204 fprintf( stderr
, " handle=%04x", req
->handle
);
2207 static void dump_get_mapping_info_request( const struct get_mapping_info_request
*req
)
2209 fprintf( stderr
, " handle=%04x", req
->handle
);
2210 fprintf( stderr
, ", access=%08x", req
->access
);
2213 static void dump_get_mapping_info_reply( const struct get_mapping_info_reply
*req
)
2215 dump_uint64( " size=", &req
->size
);
2216 fprintf( stderr
, ", flags=%08x", req
->flags
);
2217 fprintf( stderr
, ", shared_file=%04x", req
->shared_file
);
2218 fprintf( stderr
, ", total=%u", req
->total
);
2219 dump_varargs_pe_image_info( ", image=", cur_size
);
2220 dump_varargs_unicode_str( ", name=", cur_size
);
2223 static void dump_map_view_request( const struct map_view_request
*req
)
2225 fprintf( stderr
, " mapping=%04x", req
->mapping
);
2226 fprintf( stderr
, ", access=%08x", req
->access
);
2227 dump_uint64( ", base=", &req
->base
);
2228 dump_uint64( ", size=", &req
->size
);
2229 dump_uint64( ", start=", &req
->start
);
2230 dump_varargs_pe_image_info( ", image=", cur_size
);
2231 dump_varargs_unicode_str( ", name=", cur_size
);
2234 static void dump_unmap_view_request( const struct unmap_view_request
*req
)
2236 dump_uint64( " base=", &req
->base
);
2239 static void dump_get_mapping_committed_range_request( const struct get_mapping_committed_range_request
*req
)
2241 dump_uint64( " base=", &req
->base
);
2242 dump_uint64( ", offset=", &req
->offset
);
2245 static void dump_get_mapping_committed_range_reply( const struct get_mapping_committed_range_reply
*req
)
2247 dump_uint64( " size=", &req
->size
);
2248 fprintf( stderr
, ", committed=%d", req
->committed
);
2251 static void dump_add_mapping_committed_range_request( const struct add_mapping_committed_range_request
*req
)
2253 dump_uint64( " base=", &req
->base
);
2254 dump_uint64( ", offset=", &req
->offset
);
2255 dump_uint64( ", size=", &req
->size
);
2258 static void dump_is_same_mapping_request( const struct is_same_mapping_request
*req
)
2260 dump_uint64( " base1=", &req
->base1
);
2261 dump_uint64( ", base2=", &req
->base2
);
2264 static void dump_get_mapping_filename_request( const struct get_mapping_filename_request
*req
)
2266 fprintf( stderr
, " process=%04x", req
->process
);
2267 dump_uint64( ", addr=", &req
->addr
);
2270 static void dump_get_mapping_filename_reply( const struct get_mapping_filename_reply
*req
)
2272 fprintf( stderr
, " len=%u", req
->len
);
2273 dump_varargs_unicode_str( ", filename=", cur_size
);
2276 static void dump_list_processes_request( const struct list_processes_request
*req
)
2280 static void dump_list_processes_reply( const struct list_processes_reply
*req
)
2282 fprintf( stderr
, " info_size=%u", req
->info_size
);
2283 fprintf( stderr
, ", process_count=%d", req
->process_count
);
2284 fprintf( stderr
, ", total_thread_count=%d", req
->total_thread_count
);
2285 fprintf( stderr
, ", total_name_len=%u", req
->total_name_len
);
2286 dump_varargs_process_info( ", data=", min(cur_size
,req
->info_size
) );
2289 static void dump_create_debug_obj_request( const struct create_debug_obj_request
*req
)
2291 fprintf( stderr
, " access=%08x", req
->access
);
2292 fprintf( stderr
, ", flags=%08x", req
->flags
);
2293 dump_varargs_object_attributes( ", objattr=", cur_size
);
2296 static void dump_create_debug_obj_reply( const struct create_debug_obj_reply
*req
)
2298 fprintf( stderr
, " handle=%04x", req
->handle
);
2301 static void dump_wait_debug_event_request( const struct wait_debug_event_request
*req
)
2303 fprintf( stderr
, " debug=%04x", req
->debug
);
2306 static void dump_wait_debug_event_reply( const struct wait_debug_event_reply
*req
)
2308 fprintf( stderr
, " pid=%04x", req
->pid
);
2309 fprintf( stderr
, ", tid=%04x", req
->tid
);
2310 dump_varargs_debug_event( ", event=", cur_size
);
2313 static void dump_queue_exception_event_request( const struct queue_exception_event_request
*req
)
2315 fprintf( stderr
, " first=%d", req
->first
);
2316 fprintf( stderr
, ", code=%08x", req
->code
);
2317 fprintf( stderr
, ", flags=%08x", req
->flags
);
2318 dump_uint64( ", record=", &req
->record
);
2319 dump_uint64( ", address=", &req
->address
);
2320 fprintf( stderr
, ", len=%u", req
->len
);
2321 dump_varargs_uints64( ", params=", min(cur_size
,req
->len
) );
2324 static void dump_queue_exception_event_reply( const struct queue_exception_event_reply
*req
)
2326 fprintf( stderr
, " handle=%04x", req
->handle
);
2329 static void dump_get_exception_status_request( const struct get_exception_status_request
*req
)
2331 fprintf( stderr
, " handle=%04x", req
->handle
);
2334 static void dump_continue_debug_event_request( const struct continue_debug_event_request
*req
)
2336 fprintf( stderr
, " debug=%04x", req
->debug
);
2337 fprintf( stderr
, ", pid=%04x", req
->pid
);
2338 fprintf( stderr
, ", tid=%04x", req
->tid
);
2339 fprintf( stderr
, ", status=%08x", req
->status
);
2342 static void dump_debug_process_request( const struct debug_process_request
*req
)
2344 fprintf( stderr
, " handle=%04x", req
->handle
);
2345 fprintf( stderr
, ", debug=%04x", req
->debug
);
2346 fprintf( stderr
, ", attach=%d", req
->attach
);
2349 static void dump_set_debug_obj_info_request( const struct set_debug_obj_info_request
*req
)
2351 fprintf( stderr
, " debug=%04x", req
->debug
);
2352 fprintf( stderr
, ", flags=%08x", req
->flags
);
2355 static void dump_read_process_memory_request( const struct read_process_memory_request
*req
)
2357 fprintf( stderr
, " handle=%04x", req
->handle
);
2358 dump_uint64( ", addr=", &req
->addr
);
2361 static void dump_read_process_memory_reply( const struct read_process_memory_reply
*req
)
2363 dump_varargs_bytes( " data=", cur_size
);
2366 static void dump_write_process_memory_request( const struct write_process_memory_request
*req
)
2368 fprintf( stderr
, " handle=%04x", req
->handle
);
2369 dump_uint64( ", addr=", &req
->addr
);
2370 dump_varargs_bytes( ", data=", cur_size
);
2373 static void dump_create_key_request( const struct create_key_request
*req
)
2375 fprintf( stderr
, " access=%08x", req
->access
);
2376 fprintf( stderr
, ", options=%08x", req
->options
);
2377 dump_varargs_object_attributes( ", objattr=", cur_size
);
2378 dump_varargs_unicode_str( ", class=", cur_size
);
2381 static void dump_create_key_reply( const struct create_key_reply
*req
)
2383 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2384 fprintf( stderr
, ", created=%d", req
->created
);
2387 static void dump_open_key_request( const struct open_key_request
*req
)
2389 fprintf( stderr
, " parent=%04x", req
->parent
);
2390 fprintf( stderr
, ", access=%08x", req
->access
);
2391 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
2392 dump_varargs_unicode_str( ", name=", cur_size
);
2395 static void dump_open_key_reply( const struct open_key_reply
*req
)
2397 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2400 static void dump_delete_key_request( const struct delete_key_request
*req
)
2402 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2405 static void dump_flush_key_request( const struct flush_key_request
*req
)
2407 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2410 static void dump_enum_key_request( const struct enum_key_request
*req
)
2412 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2413 fprintf( stderr
, ", index=%d", req
->index
);
2414 fprintf( stderr
, ", info_class=%d", req
->info_class
);
2417 static void dump_enum_key_reply( const struct enum_key_reply
*req
)
2419 fprintf( stderr
, " subkeys=%d", req
->subkeys
);
2420 fprintf( stderr
, ", max_subkey=%d", req
->max_subkey
);
2421 fprintf( stderr
, ", max_class=%d", req
->max_class
);
2422 fprintf( stderr
, ", values=%d", req
->values
);
2423 fprintf( stderr
, ", max_value=%d", req
->max_value
);
2424 fprintf( stderr
, ", max_data=%d", req
->max_data
);
2425 dump_timeout( ", modif=", &req
->modif
);
2426 fprintf( stderr
, ", total=%u", req
->total
);
2427 fprintf( stderr
, ", namelen=%u", req
->namelen
);
2428 dump_varargs_unicode_str( ", name=", min(cur_size
,req
->namelen
) );
2429 dump_varargs_unicode_str( ", class=", cur_size
);
2432 static void dump_set_key_value_request( const struct set_key_value_request
*req
)
2434 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2435 fprintf( stderr
, ", type=%d", req
->type
);
2436 fprintf( stderr
, ", namelen=%u", req
->namelen
);
2437 dump_varargs_unicode_str( ", name=", min(cur_size
,req
->namelen
) );
2438 dump_varargs_bytes( ", data=", cur_size
);
2441 static void dump_get_key_value_request( const struct get_key_value_request
*req
)
2443 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2444 dump_varargs_unicode_str( ", name=", cur_size
);
2447 static void dump_get_key_value_reply( const struct get_key_value_reply
*req
)
2449 fprintf( stderr
, " type=%d", req
->type
);
2450 fprintf( stderr
, ", total=%u", req
->total
);
2451 dump_varargs_bytes( ", data=", cur_size
);
2454 static void dump_enum_key_value_request( const struct enum_key_value_request
*req
)
2456 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2457 fprintf( stderr
, ", index=%d", req
->index
);
2458 fprintf( stderr
, ", info_class=%d", req
->info_class
);
2461 static void dump_enum_key_value_reply( const struct enum_key_value_reply
*req
)
2463 fprintf( stderr
, " type=%d", req
->type
);
2464 fprintf( stderr
, ", total=%u", req
->total
);
2465 fprintf( stderr
, ", namelen=%u", req
->namelen
);
2466 dump_varargs_unicode_str( ", name=", min(cur_size
,req
->namelen
) );
2467 dump_varargs_bytes( ", data=", cur_size
);
2470 static void dump_delete_key_value_request( const struct delete_key_value_request
*req
)
2472 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2473 dump_varargs_unicode_str( ", name=", cur_size
);
2476 static void dump_load_registry_request( const struct load_registry_request
*req
)
2478 fprintf( stderr
, " file=%04x", req
->file
);
2479 dump_varargs_object_attributes( ", objattr=", cur_size
);
2482 static void dump_unload_registry_request( const struct unload_registry_request
*req
)
2484 fprintf( stderr
, " parent=%04x", req
->parent
);
2485 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
2486 dump_varargs_unicode_str( ", name=", cur_size
);
2489 static void dump_save_registry_request( const struct save_registry_request
*req
)
2491 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2492 fprintf( stderr
, ", file=%04x", req
->file
);
2495 static void dump_set_registry_notification_request( const struct set_registry_notification_request
*req
)
2497 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2498 fprintf( stderr
, ", event=%04x", req
->event
);
2499 fprintf( stderr
, ", subtree=%d", req
->subtree
);
2500 fprintf( stderr
, ", filter=%08x", req
->filter
);
2503 static void dump_create_timer_request( const struct create_timer_request
*req
)
2505 fprintf( stderr
, " access=%08x", req
->access
);
2506 fprintf( stderr
, ", manual=%d", req
->manual
);
2507 dump_varargs_object_attributes( ", objattr=", cur_size
);
2510 static void dump_create_timer_reply( const struct create_timer_reply
*req
)
2512 fprintf( stderr
, " handle=%04x", req
->handle
);
2515 static void dump_open_timer_request( const struct open_timer_request
*req
)
2517 fprintf( stderr
, " access=%08x", req
->access
);
2518 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
2519 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
2520 dump_varargs_unicode_str( ", name=", cur_size
);
2523 static void dump_open_timer_reply( const struct open_timer_reply
*req
)
2525 fprintf( stderr
, " handle=%04x", req
->handle
);
2528 static void dump_set_timer_request( const struct set_timer_request
*req
)
2530 fprintf( stderr
, " handle=%04x", req
->handle
);
2531 dump_timeout( ", expire=", &req
->expire
);
2532 dump_uint64( ", callback=", &req
->callback
);
2533 dump_uint64( ", arg=", &req
->arg
);
2534 fprintf( stderr
, ", period=%d", req
->period
);
2537 static void dump_set_timer_reply( const struct set_timer_reply
*req
)
2539 fprintf( stderr
, " signaled=%d", req
->signaled
);
2542 static void dump_cancel_timer_request( const struct cancel_timer_request
*req
)
2544 fprintf( stderr
, " handle=%04x", req
->handle
);
2547 static void dump_cancel_timer_reply( const struct cancel_timer_reply
*req
)
2549 fprintf( stderr
, " signaled=%d", req
->signaled
);
2552 static void dump_get_timer_info_request( const struct get_timer_info_request
*req
)
2554 fprintf( stderr
, " handle=%04x", req
->handle
);
2557 static void dump_get_timer_info_reply( const struct get_timer_info_reply
*req
)
2559 dump_timeout( " when=", &req
->when
);
2560 fprintf( stderr
, ", signaled=%d", req
->signaled
);
2563 static void dump_get_thread_context_request( const struct get_thread_context_request
*req
)
2565 fprintf( stderr
, " handle=%04x", req
->handle
);
2566 fprintf( stderr
, ", context=%04x", req
->context
);
2567 fprintf( stderr
, ", flags=%08x", req
->flags
);
2568 fprintf( stderr
, ", machine=%04x", req
->machine
);
2571 static void dump_get_thread_context_reply( const struct get_thread_context_reply
*req
)
2573 fprintf( stderr
, " self=%d", req
->self
);
2574 fprintf( stderr
, ", handle=%04x", req
->handle
);
2575 dump_varargs_contexts( ", contexts=", cur_size
);
2578 static void dump_set_thread_context_request( const struct set_thread_context_request
*req
)
2580 fprintf( stderr
, " handle=%04x", req
->handle
);
2581 dump_varargs_contexts( ", contexts=", cur_size
);
2584 static void dump_set_thread_context_reply( const struct set_thread_context_reply
*req
)
2586 fprintf( stderr
, " self=%d", req
->self
);
2589 static void dump_get_selector_entry_request( const struct get_selector_entry_request
*req
)
2591 fprintf( stderr
, " handle=%04x", req
->handle
);
2592 fprintf( stderr
, ", entry=%d", req
->entry
);
2595 static void dump_get_selector_entry_reply( const struct get_selector_entry_reply
*req
)
2597 fprintf( stderr
, " base=%08x", req
->base
);
2598 fprintf( stderr
, ", limit=%08x", req
->limit
);
2599 fprintf( stderr
, ", flags=%02x", req
->flags
);
2602 static void dump_add_atom_request( const struct add_atom_request
*req
)
2604 dump_varargs_unicode_str( " name=", cur_size
);
2607 static void dump_add_atom_reply( const struct add_atom_reply
*req
)
2609 fprintf( stderr
, " atom=%04x", req
->atom
);
2612 static void dump_delete_atom_request( const struct delete_atom_request
*req
)
2614 fprintf( stderr
, " atom=%04x", req
->atom
);
2617 static void dump_find_atom_request( const struct find_atom_request
*req
)
2619 dump_varargs_unicode_str( " name=", cur_size
);
2622 static void dump_find_atom_reply( const struct find_atom_reply
*req
)
2624 fprintf( stderr
, " atom=%04x", req
->atom
);
2627 static void dump_get_atom_information_request( const struct get_atom_information_request
*req
)
2629 fprintf( stderr
, " atom=%04x", req
->atom
);
2632 static void dump_get_atom_information_reply( const struct get_atom_information_reply
*req
)
2634 fprintf( stderr
, " count=%d", req
->count
);
2635 fprintf( stderr
, ", pinned=%d", req
->pinned
);
2636 fprintf( stderr
, ", total=%u", req
->total
);
2637 dump_varargs_unicode_str( ", name=", cur_size
);
2640 static void dump_get_msg_queue_request( const struct get_msg_queue_request
*req
)
2644 static void dump_get_msg_queue_reply( const struct get_msg_queue_reply
*req
)
2646 fprintf( stderr
, " handle=%04x", req
->handle
);
2649 static void dump_set_queue_fd_request( const struct set_queue_fd_request
*req
)
2651 fprintf( stderr
, " handle=%04x", req
->handle
);
2654 static void dump_set_queue_mask_request( const struct set_queue_mask_request
*req
)
2656 fprintf( stderr
, " wake_mask=%08x", req
->wake_mask
);
2657 fprintf( stderr
, ", changed_mask=%08x", req
->changed_mask
);
2658 fprintf( stderr
, ", skip_wait=%d", req
->skip_wait
);
2661 static void dump_set_queue_mask_reply( const struct set_queue_mask_reply
*req
)
2663 fprintf( stderr
, " wake_bits=%08x", req
->wake_bits
);
2664 fprintf( stderr
, ", changed_bits=%08x", req
->changed_bits
);
2667 static void dump_get_queue_status_request( const struct get_queue_status_request
*req
)
2669 fprintf( stderr
, " clear_bits=%08x", req
->clear_bits
);
2672 static void dump_get_queue_status_reply( const struct get_queue_status_reply
*req
)
2674 fprintf( stderr
, " wake_bits=%08x", req
->wake_bits
);
2675 fprintf( stderr
, ", changed_bits=%08x", req
->changed_bits
);
2678 static void dump_get_process_idle_event_request( const struct get_process_idle_event_request
*req
)
2680 fprintf( stderr
, " handle=%04x", req
->handle
);
2683 static void dump_get_process_idle_event_reply( const struct get_process_idle_event_reply
*req
)
2685 fprintf( stderr
, " event=%04x", req
->event
);
2688 static void dump_send_message_request( const struct send_message_request
*req
)
2690 fprintf( stderr
, " id=%04x", req
->id
);
2691 fprintf( stderr
, ", type=%d", req
->type
);
2692 fprintf( stderr
, ", flags=%d", req
->flags
);
2693 fprintf( stderr
, ", win=%08x", req
->win
);
2694 fprintf( stderr
, ", msg=%08x", req
->msg
);
2695 dump_uint64( ", wparam=", &req
->wparam
);
2696 dump_uint64( ", lparam=", &req
->lparam
);
2697 dump_timeout( ", timeout=", &req
->timeout
);
2698 dump_varargs_message_data( ", data=", cur_size
);
2701 static void dump_post_quit_message_request( const struct post_quit_message_request
*req
)
2703 fprintf( stderr
, " exit_code=%d", req
->exit_code
);
2706 static void dump_send_hardware_message_request( const struct send_hardware_message_request
*req
)
2708 fprintf( stderr
, " win=%08x", req
->win
);
2709 dump_hw_input( ", input=", &req
->input
);
2710 fprintf( stderr
, ", flags=%08x", req
->flags
);
2711 dump_varargs_bytes( ", report=", cur_size
);
2714 static void dump_send_hardware_message_reply( const struct send_hardware_message_reply
*req
)
2716 fprintf( stderr
, " wait=%d", req
->wait
);
2717 fprintf( stderr
, ", prev_x=%d", req
->prev_x
);
2718 fprintf( stderr
, ", prev_y=%d", req
->prev_y
);
2719 fprintf( stderr
, ", new_x=%d", req
->new_x
);
2720 fprintf( stderr
, ", new_y=%d", req
->new_y
);
2721 dump_varargs_bytes( ", keystate=", cur_size
);
2724 static void dump_get_message_request( const struct get_message_request
*req
)
2726 fprintf( stderr
, " flags=%08x", req
->flags
);
2727 fprintf( stderr
, ", get_win=%08x", req
->get_win
);
2728 fprintf( stderr
, ", get_first=%08x", req
->get_first
);
2729 fprintf( stderr
, ", get_last=%08x", req
->get_last
);
2730 fprintf( stderr
, ", hw_id=%08x", req
->hw_id
);
2731 fprintf( stderr
, ", wake_mask=%08x", req
->wake_mask
);
2732 fprintf( stderr
, ", changed_mask=%08x", req
->changed_mask
);
2735 static void dump_get_message_reply( const struct get_message_reply
*req
)
2737 fprintf( stderr
, " win=%08x", req
->win
);
2738 fprintf( stderr
, ", msg=%08x", req
->msg
);
2739 dump_uint64( ", wparam=", &req
->wparam
);
2740 dump_uint64( ", lparam=", &req
->lparam
);
2741 fprintf( stderr
, ", type=%d", req
->type
);
2742 fprintf( stderr
, ", x=%d", req
->x
);
2743 fprintf( stderr
, ", y=%d", req
->y
);
2744 fprintf( stderr
, ", time=%08x", req
->time
);
2745 fprintf( stderr
, ", active_hooks=%08x", req
->active_hooks
);
2746 fprintf( stderr
, ", total=%u", req
->total
);
2747 dump_varargs_message_data( ", data=", cur_size
);
2750 static void dump_reply_message_request( const struct reply_message_request
*req
)
2752 fprintf( stderr
, " remove=%d", req
->remove
);
2753 dump_uint64( ", result=", &req
->result
);
2754 dump_varargs_bytes( ", data=", cur_size
);
2757 static void dump_accept_hardware_message_request( const struct accept_hardware_message_request
*req
)
2759 fprintf( stderr
, " hw_id=%08x", req
->hw_id
);
2762 static void dump_get_message_reply_request( const struct get_message_reply_request
*req
)
2764 fprintf( stderr
, " cancel=%d", req
->cancel
);
2767 static void dump_get_message_reply_reply( const struct get_message_reply_reply
*req
)
2769 dump_uint64( " result=", &req
->result
);
2770 dump_varargs_bytes( ", data=", cur_size
);
2773 static void dump_set_win_timer_request( const struct set_win_timer_request
*req
)
2775 fprintf( stderr
, " win=%08x", req
->win
);
2776 fprintf( stderr
, ", msg=%08x", req
->msg
);
2777 fprintf( stderr
, ", rate=%08x", req
->rate
);
2778 dump_uint64( ", id=", &req
->id
);
2779 dump_uint64( ", lparam=", &req
->lparam
);
2782 static void dump_set_win_timer_reply( const struct set_win_timer_reply
*req
)
2784 dump_uint64( " id=", &req
->id
);
2787 static void dump_kill_win_timer_request( const struct kill_win_timer_request
*req
)
2789 fprintf( stderr
, " win=%08x", req
->win
);
2790 dump_uint64( ", id=", &req
->id
);
2791 fprintf( stderr
, ", msg=%08x", req
->msg
);
2794 static void dump_is_window_hung_request( const struct is_window_hung_request
*req
)
2796 fprintf( stderr
, " win=%08x", req
->win
);
2799 static void dump_is_window_hung_reply( const struct is_window_hung_reply
*req
)
2801 fprintf( stderr
, " is_hung=%d", req
->is_hung
);
2804 static void dump_get_serial_info_request( const struct get_serial_info_request
*req
)
2806 fprintf( stderr
, " handle=%04x", req
->handle
);
2807 fprintf( stderr
, ", flags=%d", req
->flags
);
2810 static void dump_get_serial_info_reply( const struct get_serial_info_reply
*req
)
2812 fprintf( stderr
, " eventmask=%08x", req
->eventmask
);
2813 fprintf( stderr
, ", cookie=%08x", req
->cookie
);
2814 fprintf( stderr
, ", pending_write=%08x", req
->pending_write
);
2817 static void dump_set_serial_info_request( const struct set_serial_info_request
*req
)
2819 fprintf( stderr
, " handle=%04x", req
->handle
);
2820 fprintf( stderr
, ", flags=%d", req
->flags
);
2823 static void dump_register_async_request( const struct register_async_request
*req
)
2825 fprintf( stderr
, " type=%d", req
->type
);
2826 dump_async_data( ", async=", &req
->async
);
2827 fprintf( stderr
, ", count=%d", req
->count
);
2830 static void dump_cancel_async_request( const struct cancel_async_request
*req
)
2832 fprintf( stderr
, " handle=%04x", req
->handle
);
2833 dump_uint64( ", iosb=", &req
->iosb
);
2834 fprintf( stderr
, ", only_thread=%d", req
->only_thread
);
2837 static void dump_get_async_result_request( const struct get_async_result_request
*req
)
2839 dump_uint64( " user_arg=", &req
->user_arg
);
2842 static void dump_get_async_result_reply( const struct get_async_result_reply
*req
)
2844 dump_varargs_bytes( " out_data=", cur_size
);
2847 static void dump_read_request( const struct read_request
*req
)
2849 dump_async_data( " async=", &req
->async
);
2850 dump_uint64( ", pos=", &req
->pos
);
2853 static void dump_read_reply( const struct read_reply
*req
)
2855 fprintf( stderr
, " wait=%04x", req
->wait
);
2856 fprintf( stderr
, ", options=%08x", req
->options
);
2857 dump_varargs_bytes( ", data=", cur_size
);
2860 static void dump_write_request( const struct write_request
*req
)
2862 dump_async_data( " async=", &req
->async
);
2863 dump_uint64( ", pos=", &req
->pos
);
2864 dump_varargs_bytes( ", data=", cur_size
);
2867 static void dump_write_reply( const struct write_reply
*req
)
2869 fprintf( stderr
, " wait=%04x", req
->wait
);
2870 fprintf( stderr
, ", options=%08x", req
->options
);
2871 fprintf( stderr
, ", size=%u", req
->size
);
2874 static void dump_ioctl_request( const struct ioctl_request
*req
)
2876 dump_ioctl_code( " code=", &req
->code
);
2877 dump_async_data( ", async=", &req
->async
);
2878 dump_varargs_bytes( ", in_data=", cur_size
);
2881 static void dump_ioctl_reply( const struct ioctl_reply
*req
)
2883 fprintf( stderr
, " wait=%04x", req
->wait
);
2884 fprintf( stderr
, ", options=%08x", req
->options
);
2885 dump_varargs_bytes( ", out_data=", cur_size
);
2888 static void dump_set_irp_result_request( const struct set_irp_result_request
*req
)
2890 fprintf( stderr
, " handle=%04x", req
->handle
);
2891 fprintf( stderr
, ", status=%08x", req
->status
);
2892 fprintf( stderr
, ", size=%u", req
->size
);
2893 dump_varargs_bytes( ", data=", cur_size
);
2896 static void dump_create_named_pipe_request( const struct create_named_pipe_request
*req
)
2898 fprintf( stderr
, " access=%08x", req
->access
);
2899 fprintf( stderr
, ", options=%08x", req
->options
);
2900 fprintf( stderr
, ", sharing=%08x", req
->sharing
);
2901 fprintf( stderr
, ", maxinstances=%08x", req
->maxinstances
);
2902 fprintf( stderr
, ", outsize=%08x", req
->outsize
);
2903 fprintf( stderr
, ", insize=%08x", req
->insize
);
2904 dump_timeout( ", timeout=", &req
->timeout
);
2905 fprintf( stderr
, ", flags=%08x", req
->flags
);
2906 dump_varargs_object_attributes( ", objattr=", cur_size
);
2909 static void dump_create_named_pipe_reply( const struct create_named_pipe_reply
*req
)
2911 fprintf( stderr
, " handle=%04x", req
->handle
);
2914 static void dump_set_named_pipe_info_request( const struct set_named_pipe_info_request
*req
)
2916 fprintf( stderr
, " handle=%04x", req
->handle
);
2917 fprintf( stderr
, ", flags=%08x", req
->flags
);
2920 static void dump_create_window_request( const struct create_window_request
*req
)
2922 fprintf( stderr
, " parent=%08x", req
->parent
);
2923 fprintf( stderr
, ", owner=%08x", req
->owner
);
2924 fprintf( stderr
, ", atom=%04x", req
->atom
);
2925 dump_uint64( ", instance=", &req
->instance
);
2926 fprintf( stderr
, ", dpi=%d", req
->dpi
);
2927 fprintf( stderr
, ", awareness=%d", req
->awareness
);
2928 fprintf( stderr
, ", style=%08x", req
->style
);
2929 fprintf( stderr
, ", ex_style=%08x", req
->ex_style
);
2930 dump_varargs_unicode_str( ", class=", cur_size
);
2933 static void dump_create_window_reply( const struct create_window_reply
*req
)
2935 fprintf( stderr
, " handle=%08x", req
->handle
);
2936 fprintf( stderr
, ", parent=%08x", req
->parent
);
2937 fprintf( stderr
, ", owner=%08x", req
->owner
);
2938 fprintf( stderr
, ", extra=%d", req
->extra
);
2939 dump_uint64( ", class_ptr=", &req
->class_ptr
);
2940 fprintf( stderr
, ", dpi=%d", req
->dpi
);
2941 fprintf( stderr
, ", awareness=%d", req
->awareness
);
2944 static void dump_destroy_window_request( const struct destroy_window_request
*req
)
2946 fprintf( stderr
, " handle=%08x", req
->handle
);
2949 static void dump_get_desktop_window_request( const struct get_desktop_window_request
*req
)
2951 fprintf( stderr
, " force=%d", req
->force
);
2954 static void dump_get_desktop_window_reply( const struct get_desktop_window_reply
*req
)
2956 fprintf( stderr
, " top_window=%08x", req
->top_window
);
2957 fprintf( stderr
, ", msg_window=%08x", req
->msg_window
);
2960 static void dump_set_window_owner_request( const struct set_window_owner_request
*req
)
2962 fprintf( stderr
, " handle=%08x", req
->handle
);
2963 fprintf( stderr
, ", owner=%08x", req
->owner
);
2966 static void dump_set_window_owner_reply( const struct set_window_owner_reply
*req
)
2968 fprintf( stderr
, " full_owner=%08x", req
->full_owner
);
2969 fprintf( stderr
, ", prev_owner=%08x", req
->prev_owner
);
2972 static void dump_get_window_info_request( const struct get_window_info_request
*req
)
2974 fprintf( stderr
, " handle=%08x", req
->handle
);
2977 static void dump_get_window_info_reply( const struct get_window_info_reply
*req
)
2979 fprintf( stderr
, " full_handle=%08x", req
->full_handle
);
2980 fprintf( stderr
, ", last_active=%08x", req
->last_active
);
2981 fprintf( stderr
, ", pid=%04x", req
->pid
);
2982 fprintf( stderr
, ", tid=%04x", req
->tid
);
2983 fprintf( stderr
, ", atom=%04x", req
->atom
);
2984 fprintf( stderr
, ", is_unicode=%d", req
->is_unicode
);
2985 fprintf( stderr
, ", dpi=%d", req
->dpi
);
2986 fprintf( stderr
, ", awareness=%d", req
->awareness
);
2989 static void dump_set_window_info_request( const struct set_window_info_request
*req
)
2991 fprintf( stderr
, " flags=%04x", req
->flags
);
2992 fprintf( stderr
, ", is_unicode=%d", req
->is_unicode
);
2993 fprintf( stderr
, ", handle=%08x", req
->handle
);
2994 fprintf( stderr
, ", style=%08x", req
->style
);
2995 fprintf( stderr
, ", ex_style=%08x", req
->ex_style
);
2996 fprintf( stderr
, ", id=%08x", req
->id
);
2997 dump_uint64( ", instance=", &req
->instance
);
2998 dump_uint64( ", user_data=", &req
->user_data
);
2999 fprintf( stderr
, ", extra_offset=%d", req
->extra_offset
);
3000 fprintf( stderr
, ", extra_size=%u", req
->extra_size
);
3001 dump_uint64( ", extra_value=", &req
->extra_value
);
3004 static void dump_set_window_info_reply( const struct set_window_info_reply
*req
)
3006 fprintf( stderr
, " old_style=%08x", req
->old_style
);
3007 fprintf( stderr
, ", old_ex_style=%08x", req
->old_ex_style
);
3008 dump_uint64( ", old_instance=", &req
->old_instance
);
3009 dump_uint64( ", old_user_data=", &req
->old_user_data
);
3010 dump_uint64( ", old_extra_value=", &req
->old_extra_value
);
3011 fprintf( stderr
, ", old_id=%08x", req
->old_id
);
3014 static void dump_set_parent_request( const struct set_parent_request
*req
)
3016 fprintf( stderr
, " handle=%08x", req
->handle
);
3017 fprintf( stderr
, ", parent=%08x", req
->parent
);
3020 static void dump_set_parent_reply( const struct set_parent_reply
*req
)
3022 fprintf( stderr
, " old_parent=%08x", req
->old_parent
);
3023 fprintf( stderr
, ", full_parent=%08x", req
->full_parent
);
3024 fprintf( stderr
, ", dpi=%d", req
->dpi
);
3025 fprintf( stderr
, ", awareness=%d", req
->awareness
);
3028 static void dump_get_window_parents_request( const struct get_window_parents_request
*req
)
3030 fprintf( stderr
, " handle=%08x", req
->handle
);
3033 static void dump_get_window_parents_reply( const struct get_window_parents_reply
*req
)
3035 fprintf( stderr
, " count=%d", req
->count
);
3036 dump_varargs_user_handles( ", parents=", cur_size
);
3039 static void dump_get_window_children_request( const struct get_window_children_request
*req
)
3041 fprintf( stderr
, " desktop=%04x", req
->desktop
);
3042 fprintf( stderr
, ", parent=%08x", req
->parent
);
3043 fprintf( stderr
, ", atom=%04x", req
->atom
);
3044 fprintf( stderr
, ", tid=%04x", req
->tid
);
3045 dump_varargs_unicode_str( ", class=", cur_size
);
3048 static void dump_get_window_children_reply( const struct get_window_children_reply
*req
)
3050 fprintf( stderr
, " count=%d", req
->count
);
3051 dump_varargs_user_handles( ", children=", cur_size
);
3054 static void dump_get_window_children_from_point_request( const struct get_window_children_from_point_request
*req
)
3056 fprintf( stderr
, " parent=%08x", req
->parent
);
3057 fprintf( stderr
, ", x=%d", req
->x
);
3058 fprintf( stderr
, ", y=%d", req
->y
);
3059 fprintf( stderr
, ", dpi=%d", req
->dpi
);
3062 static void dump_get_window_children_from_point_reply( const struct get_window_children_from_point_reply
*req
)
3064 fprintf( stderr
, " count=%d", req
->count
);
3065 dump_varargs_user_handles( ", children=", cur_size
);
3068 static void dump_get_window_tree_request( const struct get_window_tree_request
*req
)
3070 fprintf( stderr
, " handle=%08x", req
->handle
);
3073 static void dump_get_window_tree_reply( const struct get_window_tree_reply
*req
)
3075 fprintf( stderr
, " parent=%08x", req
->parent
);
3076 fprintf( stderr
, ", owner=%08x", req
->owner
);
3077 fprintf( stderr
, ", next_sibling=%08x", req
->next_sibling
);
3078 fprintf( stderr
, ", prev_sibling=%08x", req
->prev_sibling
);
3079 fprintf( stderr
, ", first_sibling=%08x", req
->first_sibling
);
3080 fprintf( stderr
, ", last_sibling=%08x", req
->last_sibling
);
3081 fprintf( stderr
, ", first_child=%08x", req
->first_child
);
3082 fprintf( stderr
, ", last_child=%08x", req
->last_child
);
3085 static void dump_set_window_pos_request( const struct set_window_pos_request
*req
)
3087 fprintf( stderr
, " swp_flags=%04x", req
->swp_flags
);
3088 fprintf( stderr
, ", paint_flags=%04x", req
->paint_flags
);
3089 fprintf( stderr
, ", handle=%08x", req
->handle
);
3090 fprintf( stderr
, ", previous=%08x", req
->previous
);
3091 dump_rectangle( ", window=", &req
->window
);
3092 dump_rectangle( ", client=", &req
->client
);
3093 dump_varargs_rectangles( ", valid=", cur_size
);
3096 static void dump_set_window_pos_reply( const struct set_window_pos_reply
*req
)
3098 fprintf( stderr
, " new_style=%08x", req
->new_style
);
3099 fprintf( stderr
, ", new_ex_style=%08x", req
->new_ex_style
);
3100 fprintf( stderr
, ", surface_win=%08x", req
->surface_win
);
3101 fprintf( stderr
, ", needs_update=%d", req
->needs_update
);
3104 static void dump_get_window_rectangles_request( const struct get_window_rectangles_request
*req
)
3106 fprintf( stderr
, " handle=%08x", req
->handle
);
3107 fprintf( stderr
, ", relative=%d", req
->relative
);
3108 fprintf( stderr
, ", dpi=%d", req
->dpi
);
3111 static void dump_get_window_rectangles_reply( const struct get_window_rectangles_reply
*req
)
3113 dump_rectangle( " window=", &req
->window
);
3114 dump_rectangle( ", client=", &req
->client
);
3117 static void dump_get_window_text_request( const struct get_window_text_request
*req
)
3119 fprintf( stderr
, " handle=%08x", req
->handle
);
3122 static void dump_get_window_text_reply( const struct get_window_text_reply
*req
)
3124 fprintf( stderr
, " length=%u", req
->length
);
3125 dump_varargs_unicode_str( ", text=", cur_size
);
3128 static void dump_set_window_text_request( const struct set_window_text_request
*req
)
3130 fprintf( stderr
, " handle=%08x", req
->handle
);
3131 dump_varargs_unicode_str( ", text=", cur_size
);
3134 static void dump_get_windows_offset_request( const struct get_windows_offset_request
*req
)
3136 fprintf( stderr
, " from=%08x", req
->from
);
3137 fprintf( stderr
, ", to=%08x", req
->to
);
3138 fprintf( stderr
, ", dpi=%d", req
->dpi
);
3141 static void dump_get_windows_offset_reply( const struct get_windows_offset_reply
*req
)
3143 fprintf( stderr
, " x=%d", req
->x
);
3144 fprintf( stderr
, ", y=%d", req
->y
);
3145 fprintf( stderr
, ", mirror=%d", req
->mirror
);
3148 static void dump_get_visible_region_request( const struct get_visible_region_request
*req
)
3150 fprintf( stderr
, " window=%08x", req
->window
);
3151 fprintf( stderr
, ", flags=%08x", req
->flags
);
3154 static void dump_get_visible_region_reply( const struct get_visible_region_reply
*req
)
3156 fprintf( stderr
, " top_win=%08x", req
->top_win
);
3157 dump_rectangle( ", top_rect=", &req
->top_rect
);
3158 dump_rectangle( ", win_rect=", &req
->win_rect
);
3159 fprintf( stderr
, ", paint_flags=%08x", req
->paint_flags
);
3160 fprintf( stderr
, ", total_size=%u", req
->total_size
);
3161 dump_varargs_rectangles( ", region=", cur_size
);
3164 static void dump_get_surface_region_request( const struct get_surface_region_request
*req
)
3166 fprintf( stderr
, " window=%08x", req
->window
);
3169 static void dump_get_surface_region_reply( const struct get_surface_region_reply
*req
)
3171 dump_rectangle( " visible_rect=", &req
->visible_rect
);
3172 fprintf( stderr
, ", total_size=%u", req
->total_size
);
3173 dump_varargs_rectangles( ", region=", cur_size
);
3176 static void dump_get_window_region_request( const struct get_window_region_request
*req
)
3178 fprintf( stderr
, " window=%08x", req
->window
);
3181 static void dump_get_window_region_reply( const struct get_window_region_reply
*req
)
3183 fprintf( stderr
, " total_size=%u", req
->total_size
);
3184 dump_varargs_rectangles( ", region=", cur_size
);
3187 static void dump_set_window_region_request( const struct set_window_region_request
*req
)
3189 fprintf( stderr
, " window=%08x", req
->window
);
3190 fprintf( stderr
, ", redraw=%d", req
->redraw
);
3191 dump_varargs_rectangles( ", region=", cur_size
);
3194 static void dump_get_update_region_request( const struct get_update_region_request
*req
)
3196 fprintf( stderr
, " window=%08x", req
->window
);
3197 fprintf( stderr
, ", from_child=%08x", req
->from_child
);
3198 fprintf( stderr
, ", flags=%08x", req
->flags
);
3201 static void dump_get_update_region_reply( const struct get_update_region_reply
*req
)
3203 fprintf( stderr
, " child=%08x", req
->child
);
3204 fprintf( stderr
, ", flags=%08x", req
->flags
);
3205 fprintf( stderr
, ", total_size=%u", req
->total_size
);
3206 dump_varargs_rectangles( ", region=", cur_size
);
3209 static void dump_update_window_zorder_request( const struct update_window_zorder_request
*req
)
3211 fprintf( stderr
, " window=%08x", req
->window
);
3212 dump_rectangle( ", rect=", &req
->rect
);
3215 static void dump_redraw_window_request( const struct redraw_window_request
*req
)
3217 fprintf( stderr
, " window=%08x", req
->window
);
3218 fprintf( stderr
, ", flags=%08x", req
->flags
);
3219 dump_varargs_rectangles( ", region=", cur_size
);
3222 static void dump_set_window_property_request( const struct set_window_property_request
*req
)
3224 fprintf( stderr
, " window=%08x", req
->window
);
3225 dump_uint64( ", data=", &req
->data
);
3226 fprintf( stderr
, ", atom=%04x", req
->atom
);
3227 dump_varargs_unicode_str( ", name=", cur_size
);
3230 static void dump_remove_window_property_request( const struct remove_window_property_request
*req
)
3232 fprintf( stderr
, " window=%08x", req
->window
);
3233 fprintf( stderr
, ", atom=%04x", req
->atom
);
3234 dump_varargs_unicode_str( ", name=", cur_size
);
3237 static void dump_remove_window_property_reply( const struct remove_window_property_reply
*req
)
3239 dump_uint64( " data=", &req
->data
);
3242 static void dump_get_window_property_request( const struct get_window_property_request
*req
)
3244 fprintf( stderr
, " window=%08x", req
->window
);
3245 fprintf( stderr
, ", atom=%04x", req
->atom
);
3246 dump_varargs_unicode_str( ", name=", cur_size
);
3249 static void dump_get_window_property_reply( const struct get_window_property_reply
*req
)
3251 dump_uint64( " data=", &req
->data
);
3254 static void dump_get_window_properties_request( const struct get_window_properties_request
*req
)
3256 fprintf( stderr
, " window=%08x", req
->window
);
3259 static void dump_get_window_properties_reply( const struct get_window_properties_reply
*req
)
3261 fprintf( stderr
, " total=%d", req
->total
);
3262 dump_varargs_properties( ", props=", cur_size
);
3265 static void dump_create_winstation_request( const struct create_winstation_request
*req
)
3267 fprintf( stderr
, " flags=%08x", req
->flags
);
3268 fprintf( stderr
, ", access=%08x", req
->access
);
3269 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3270 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
3271 dump_varargs_unicode_str( ", name=", cur_size
);
3274 static void dump_create_winstation_reply( const struct create_winstation_reply
*req
)
3276 fprintf( stderr
, " handle=%04x", req
->handle
);
3279 static void dump_open_winstation_request( const struct open_winstation_request
*req
)
3281 fprintf( stderr
, " access=%08x", req
->access
);
3282 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3283 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
3284 dump_varargs_unicode_str( ", name=", cur_size
);
3287 static void dump_open_winstation_reply( const struct open_winstation_reply
*req
)
3289 fprintf( stderr
, " handle=%04x", req
->handle
);
3292 static void dump_close_winstation_request( const struct close_winstation_request
*req
)
3294 fprintf( stderr
, " handle=%04x", req
->handle
);
3297 static void dump_get_process_winstation_request( const struct get_process_winstation_request
*req
)
3301 static void dump_get_process_winstation_reply( const struct get_process_winstation_reply
*req
)
3303 fprintf( stderr
, " handle=%04x", req
->handle
);
3306 static void dump_set_process_winstation_request( const struct set_process_winstation_request
*req
)
3308 fprintf( stderr
, " handle=%04x", req
->handle
);
3311 static void dump_enum_winstation_request( const struct enum_winstation_request
*req
)
3313 fprintf( stderr
, " index=%08x", req
->index
);
3316 static void dump_enum_winstation_reply( const struct enum_winstation_reply
*req
)
3318 fprintf( stderr
, " next=%08x", req
->next
);
3319 dump_varargs_unicode_str( ", name=", cur_size
);
3322 static void dump_create_desktop_request( const struct create_desktop_request
*req
)
3324 fprintf( stderr
, " flags=%08x", req
->flags
);
3325 fprintf( stderr
, ", access=%08x", req
->access
);
3326 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3327 dump_varargs_unicode_str( ", name=", cur_size
);
3330 static void dump_create_desktop_reply( const struct create_desktop_reply
*req
)
3332 fprintf( stderr
, " handle=%04x", req
->handle
);
3335 static void dump_open_desktop_request( const struct open_desktop_request
*req
)
3337 fprintf( stderr
, " winsta=%04x", req
->winsta
);
3338 fprintf( stderr
, ", flags=%08x", req
->flags
);
3339 fprintf( stderr
, ", access=%08x", req
->access
);
3340 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3341 dump_varargs_unicode_str( ", name=", cur_size
);
3344 static void dump_open_desktop_reply( const struct open_desktop_reply
*req
)
3346 fprintf( stderr
, " handle=%04x", req
->handle
);
3349 static void dump_open_input_desktop_request( const struct open_input_desktop_request
*req
)
3351 fprintf( stderr
, " flags=%08x", req
->flags
);
3352 fprintf( stderr
, ", access=%08x", req
->access
);
3353 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3356 static void dump_open_input_desktop_reply( const struct open_input_desktop_reply
*req
)
3358 fprintf( stderr
, " handle=%04x", req
->handle
);
3361 static void dump_close_desktop_request( const struct close_desktop_request
*req
)
3363 fprintf( stderr
, " handle=%04x", req
->handle
);
3366 static void dump_get_thread_desktop_request( const struct get_thread_desktop_request
*req
)
3368 fprintf( stderr
, " tid=%04x", req
->tid
);
3371 static void dump_get_thread_desktop_reply( const struct get_thread_desktop_reply
*req
)
3373 fprintf( stderr
, " handle=%04x", req
->handle
);
3376 static void dump_set_thread_desktop_request( const struct set_thread_desktop_request
*req
)
3378 fprintf( stderr
, " handle=%04x", req
->handle
);
3381 static void dump_enum_desktop_request( const struct enum_desktop_request
*req
)
3383 fprintf( stderr
, " winstation=%04x", req
->winstation
);
3384 fprintf( stderr
, ", index=%08x", req
->index
);
3387 static void dump_enum_desktop_reply( const struct enum_desktop_reply
*req
)
3389 fprintf( stderr
, " next=%08x", req
->next
);
3390 dump_varargs_unicode_str( ", name=", cur_size
);
3393 static void dump_set_user_object_info_request( const struct set_user_object_info_request
*req
)
3395 fprintf( stderr
, " handle=%04x", req
->handle
);
3396 fprintf( stderr
, ", flags=%08x", req
->flags
);
3397 fprintf( stderr
, ", obj_flags=%08x", req
->obj_flags
);
3400 static void dump_set_user_object_info_reply( const struct set_user_object_info_reply
*req
)
3402 fprintf( stderr
, " is_desktop=%d", req
->is_desktop
);
3403 fprintf( stderr
, ", old_obj_flags=%08x", req
->old_obj_flags
);
3404 dump_varargs_unicode_str( ", name=", cur_size
);
3407 static void dump_register_hotkey_request( const struct register_hotkey_request
*req
)
3409 fprintf( stderr
, " window=%08x", req
->window
);
3410 fprintf( stderr
, ", id=%d", req
->id
);
3411 fprintf( stderr
, ", flags=%08x", req
->flags
);
3412 fprintf( stderr
, ", vkey=%08x", req
->vkey
);
3415 static void dump_register_hotkey_reply( const struct register_hotkey_reply
*req
)
3417 fprintf( stderr
, " replaced=%d", req
->replaced
);
3418 fprintf( stderr
, ", flags=%08x", req
->flags
);
3419 fprintf( stderr
, ", vkey=%08x", req
->vkey
);
3422 static void dump_unregister_hotkey_request( const struct unregister_hotkey_request
*req
)
3424 fprintf( stderr
, " window=%08x", req
->window
);
3425 fprintf( stderr
, ", id=%d", req
->id
);
3428 static void dump_unregister_hotkey_reply( const struct unregister_hotkey_reply
*req
)
3430 fprintf( stderr
, " flags=%08x", req
->flags
);
3431 fprintf( stderr
, ", vkey=%08x", req
->vkey
);
3434 static void dump_attach_thread_input_request( const struct attach_thread_input_request
*req
)
3436 fprintf( stderr
, " tid_from=%04x", req
->tid_from
);
3437 fprintf( stderr
, ", tid_to=%04x", req
->tid_to
);
3438 fprintf( stderr
, ", attach=%d", req
->attach
);
3441 static void dump_get_thread_input_request( const struct get_thread_input_request
*req
)
3443 fprintf( stderr
, " tid=%04x", req
->tid
);
3446 static void dump_get_thread_input_reply( const struct get_thread_input_reply
*req
)
3448 fprintf( stderr
, " focus=%08x", req
->focus
);
3449 fprintf( stderr
, ", capture=%08x", req
->capture
);
3450 fprintf( stderr
, ", active=%08x", req
->active
);
3451 fprintf( stderr
, ", foreground=%08x", req
->foreground
);
3452 fprintf( stderr
, ", menu_owner=%08x", req
->menu_owner
);
3453 fprintf( stderr
, ", move_size=%08x", req
->move_size
);
3454 fprintf( stderr
, ", caret=%08x", req
->caret
);
3455 fprintf( stderr
, ", cursor=%08x", req
->cursor
);
3456 fprintf( stderr
, ", show_count=%d", req
->show_count
);
3457 dump_rectangle( ", rect=", &req
->rect
);
3460 static void dump_get_last_input_time_request( const struct get_last_input_time_request
*req
)
3464 static void dump_get_last_input_time_reply( const struct get_last_input_time_reply
*req
)
3466 fprintf( stderr
, " time=%08x", req
->time
);
3469 static void dump_get_key_state_request( const struct get_key_state_request
*req
)
3471 fprintf( stderr
, " async=%d", req
->async
);
3472 fprintf( stderr
, ", key=%d", req
->key
);
3475 static void dump_get_key_state_reply( const struct get_key_state_reply
*req
)
3477 fprintf( stderr
, " state=%02x", req
->state
);
3478 dump_varargs_bytes( ", keystate=", cur_size
);
3481 static void dump_set_key_state_request( const struct set_key_state_request
*req
)
3483 fprintf( stderr
, " async=%d", req
->async
);
3484 dump_varargs_bytes( ", keystate=", cur_size
);
3487 static void dump_set_foreground_window_request( const struct set_foreground_window_request
*req
)
3489 fprintf( stderr
, " handle=%08x", req
->handle
);
3492 static void dump_set_foreground_window_reply( const struct set_foreground_window_reply
*req
)
3494 fprintf( stderr
, " previous=%08x", req
->previous
);
3495 fprintf( stderr
, ", send_msg_old=%d", req
->send_msg_old
);
3496 fprintf( stderr
, ", send_msg_new=%d", req
->send_msg_new
);
3499 static void dump_set_focus_window_request( const struct set_focus_window_request
*req
)
3501 fprintf( stderr
, " handle=%08x", req
->handle
);
3504 static void dump_set_focus_window_reply( const struct set_focus_window_reply
*req
)
3506 fprintf( stderr
, " previous=%08x", req
->previous
);
3509 static void dump_set_active_window_request( const struct set_active_window_request
*req
)
3511 fprintf( stderr
, " handle=%08x", req
->handle
);
3514 static void dump_set_active_window_reply( const struct set_active_window_reply
*req
)
3516 fprintf( stderr
, " previous=%08x", req
->previous
);
3519 static void dump_set_capture_window_request( const struct set_capture_window_request
*req
)
3521 fprintf( stderr
, " handle=%08x", req
->handle
);
3522 fprintf( stderr
, ", flags=%08x", req
->flags
);
3525 static void dump_set_capture_window_reply( const struct set_capture_window_reply
*req
)
3527 fprintf( stderr
, " previous=%08x", req
->previous
);
3528 fprintf( stderr
, ", full_handle=%08x", req
->full_handle
);
3531 static void dump_set_caret_window_request( const struct set_caret_window_request
*req
)
3533 fprintf( stderr
, " handle=%08x", req
->handle
);
3534 fprintf( stderr
, ", width=%d", req
->width
);
3535 fprintf( stderr
, ", height=%d", req
->height
);
3538 static void dump_set_caret_window_reply( const struct set_caret_window_reply
*req
)
3540 fprintf( stderr
, " previous=%08x", req
->previous
);
3541 dump_rectangle( ", old_rect=", &req
->old_rect
);
3542 fprintf( stderr
, ", old_hide=%d", req
->old_hide
);
3543 fprintf( stderr
, ", old_state=%d", req
->old_state
);
3546 static void dump_set_caret_info_request( const struct set_caret_info_request
*req
)
3548 fprintf( stderr
, " flags=%08x", req
->flags
);
3549 fprintf( stderr
, ", handle=%08x", req
->handle
);
3550 fprintf( stderr
, ", x=%d", req
->x
);
3551 fprintf( stderr
, ", y=%d", req
->y
);
3552 fprintf( stderr
, ", hide=%d", req
->hide
);
3553 fprintf( stderr
, ", state=%d", req
->state
);
3556 static void dump_set_caret_info_reply( const struct set_caret_info_reply
*req
)
3558 fprintf( stderr
, " full_handle=%08x", req
->full_handle
);
3559 dump_rectangle( ", old_rect=", &req
->old_rect
);
3560 fprintf( stderr
, ", old_hide=%d", req
->old_hide
);
3561 fprintf( stderr
, ", old_state=%d", req
->old_state
);
3564 static void dump_set_hook_request( const struct set_hook_request
*req
)
3566 fprintf( stderr
, " id=%d", req
->id
);
3567 fprintf( stderr
, ", pid=%04x", req
->pid
);
3568 fprintf( stderr
, ", tid=%04x", req
->tid
);
3569 fprintf( stderr
, ", event_min=%d", req
->event_min
);
3570 fprintf( stderr
, ", event_max=%d", req
->event_max
);
3571 dump_uint64( ", proc=", &req
->proc
);
3572 fprintf( stderr
, ", flags=%d", req
->flags
);
3573 fprintf( stderr
, ", unicode=%d", req
->unicode
);
3574 dump_varargs_unicode_str( ", module=", cur_size
);
3577 static void dump_set_hook_reply( const struct set_hook_reply
*req
)
3579 fprintf( stderr
, " handle=%08x", req
->handle
);
3580 fprintf( stderr
, ", active_hooks=%08x", req
->active_hooks
);
3583 static void dump_remove_hook_request( const struct remove_hook_request
*req
)
3585 fprintf( stderr
, " handle=%08x", req
->handle
);
3586 dump_uint64( ", proc=", &req
->proc
);
3587 fprintf( stderr
, ", id=%d", req
->id
);
3590 static void dump_remove_hook_reply( const struct remove_hook_reply
*req
)
3592 fprintf( stderr
, " active_hooks=%08x", req
->active_hooks
);
3595 static void dump_start_hook_chain_request( const struct start_hook_chain_request
*req
)
3597 fprintf( stderr
, " id=%d", req
->id
);
3598 fprintf( stderr
, ", event=%d", req
->event
);
3599 fprintf( stderr
, ", window=%08x", req
->window
);
3600 fprintf( stderr
, ", object_id=%d", req
->object_id
);
3601 fprintf( stderr
, ", child_id=%d", req
->child_id
);
3604 static void dump_start_hook_chain_reply( const struct start_hook_chain_reply
*req
)
3606 fprintf( stderr
, " handle=%08x", req
->handle
);
3607 fprintf( stderr
, ", pid=%04x", req
->pid
);
3608 fprintf( stderr
, ", tid=%04x", req
->tid
);
3609 fprintf( stderr
, ", unicode=%d", req
->unicode
);
3610 dump_uint64( ", proc=", &req
->proc
);
3611 fprintf( stderr
, ", active_hooks=%08x", req
->active_hooks
);
3612 dump_varargs_unicode_str( ", module=", cur_size
);
3615 static void dump_finish_hook_chain_request( const struct finish_hook_chain_request
*req
)
3617 fprintf( stderr
, " id=%d", req
->id
);
3620 static void dump_get_hook_info_request( const struct get_hook_info_request
*req
)
3622 fprintf( stderr
, " handle=%08x", req
->handle
);
3623 fprintf( stderr
, ", get_next=%d", req
->get_next
);
3624 fprintf( stderr
, ", event=%d", req
->event
);
3625 fprintf( stderr
, ", window=%08x", req
->window
);
3626 fprintf( stderr
, ", object_id=%d", req
->object_id
);
3627 fprintf( stderr
, ", child_id=%d", req
->child_id
);
3630 static void dump_get_hook_info_reply( const struct get_hook_info_reply
*req
)
3632 fprintf( stderr
, " handle=%08x", req
->handle
);
3633 fprintf( stderr
, ", id=%d", req
->id
);
3634 fprintf( stderr
, ", pid=%04x", req
->pid
);
3635 fprintf( stderr
, ", tid=%04x", req
->tid
);
3636 dump_uint64( ", proc=", &req
->proc
);
3637 fprintf( stderr
, ", unicode=%d", req
->unicode
);
3638 dump_varargs_unicode_str( ", module=", cur_size
);
3641 static void dump_create_class_request( const struct create_class_request
*req
)
3643 fprintf( stderr
, " local=%d", req
->local
);
3644 fprintf( stderr
, ", atom=%04x", req
->atom
);
3645 fprintf( stderr
, ", style=%08x", req
->style
);
3646 dump_uint64( ", instance=", &req
->instance
);
3647 fprintf( stderr
, ", extra=%d", req
->extra
);
3648 fprintf( stderr
, ", win_extra=%d", req
->win_extra
);
3649 dump_uint64( ", client_ptr=", &req
->client_ptr
);
3650 fprintf( stderr
, ", name_offset=%u", req
->name_offset
);
3651 dump_varargs_unicode_str( ", name=", cur_size
);
3654 static void dump_create_class_reply( const struct create_class_reply
*req
)
3656 fprintf( stderr
, " atom=%04x", req
->atom
);
3659 static void dump_destroy_class_request( const struct destroy_class_request
*req
)
3661 fprintf( stderr
, " atom=%04x", req
->atom
);
3662 dump_uint64( ", instance=", &req
->instance
);
3663 dump_varargs_unicode_str( ", name=", cur_size
);
3666 static void dump_destroy_class_reply( const struct destroy_class_reply
*req
)
3668 dump_uint64( " client_ptr=", &req
->client_ptr
);
3671 static void dump_set_class_info_request( const struct set_class_info_request
*req
)
3673 fprintf( stderr
, " window=%08x", req
->window
);
3674 fprintf( stderr
, ", flags=%08x", req
->flags
);
3675 fprintf( stderr
, ", atom=%04x", req
->atom
);
3676 fprintf( stderr
, ", style=%08x", req
->style
);
3677 fprintf( stderr
, ", win_extra=%d", req
->win_extra
);
3678 dump_uint64( ", instance=", &req
->instance
);
3679 fprintf( stderr
, ", extra_offset=%d", req
->extra_offset
);
3680 fprintf( stderr
, ", extra_size=%u", req
->extra_size
);
3681 dump_uint64( ", extra_value=", &req
->extra_value
);
3684 static void dump_set_class_info_reply( const struct set_class_info_reply
*req
)
3686 fprintf( stderr
, " old_atom=%04x", req
->old_atom
);
3687 fprintf( stderr
, ", base_atom=%04x", req
->base_atom
);
3688 dump_uint64( ", old_instance=", &req
->old_instance
);
3689 dump_uint64( ", old_extra_value=", &req
->old_extra_value
);
3690 fprintf( stderr
, ", old_style=%08x", req
->old_style
);
3691 fprintf( stderr
, ", old_extra=%d", req
->old_extra
);
3692 fprintf( stderr
, ", old_win_extra=%d", req
->old_win_extra
);
3695 static void dump_open_clipboard_request( const struct open_clipboard_request
*req
)
3697 fprintf( stderr
, " window=%08x", req
->window
);
3700 static void dump_open_clipboard_reply( const struct open_clipboard_reply
*req
)
3702 fprintf( stderr
, " owner=%08x", req
->owner
);
3705 static void dump_close_clipboard_request( const struct close_clipboard_request
*req
)
3709 static void dump_close_clipboard_reply( const struct close_clipboard_reply
*req
)
3711 fprintf( stderr
, " viewer=%08x", req
->viewer
);
3712 fprintf( stderr
, ", owner=%08x", req
->owner
);
3715 static void dump_empty_clipboard_request( const struct empty_clipboard_request
*req
)
3719 static void dump_set_clipboard_data_request( const struct set_clipboard_data_request
*req
)
3721 fprintf( stderr
, " format=%08x", req
->format
);
3722 fprintf( stderr
, ", lcid=%08x", req
->lcid
);
3723 dump_varargs_bytes( ", data=", cur_size
);
3726 static void dump_set_clipboard_data_reply( const struct set_clipboard_data_reply
*req
)
3728 fprintf( stderr
, " seqno=%08x", req
->seqno
);
3731 static void dump_get_clipboard_data_request( const struct get_clipboard_data_request
*req
)
3733 fprintf( stderr
, " format=%08x", req
->format
);
3734 fprintf( stderr
, ", render=%d", req
->render
);
3735 fprintf( stderr
, ", cached=%d", req
->cached
);
3736 fprintf( stderr
, ", seqno=%08x", req
->seqno
);
3739 static void dump_get_clipboard_data_reply( const struct get_clipboard_data_reply
*req
)
3741 fprintf( stderr
, " from=%08x", req
->from
);
3742 fprintf( stderr
, ", owner=%08x", req
->owner
);
3743 fprintf( stderr
, ", seqno=%08x", req
->seqno
);
3744 fprintf( stderr
, ", total=%u", req
->total
);
3745 dump_varargs_bytes( ", data=", cur_size
);
3748 static void dump_get_clipboard_formats_request( const struct get_clipboard_formats_request
*req
)
3750 fprintf( stderr
, " format=%08x", req
->format
);
3753 static void dump_get_clipboard_formats_reply( const struct get_clipboard_formats_reply
*req
)
3755 fprintf( stderr
, " count=%08x", req
->count
);
3756 dump_varargs_uints( ", formats=", cur_size
);
3759 static void dump_enum_clipboard_formats_request( const struct enum_clipboard_formats_request
*req
)
3761 fprintf( stderr
, " previous=%08x", req
->previous
);
3764 static void dump_enum_clipboard_formats_reply( const struct enum_clipboard_formats_reply
*req
)
3766 fprintf( stderr
, " format=%08x", req
->format
);
3769 static void dump_release_clipboard_request( const struct release_clipboard_request
*req
)
3771 fprintf( stderr
, " owner=%08x", req
->owner
);
3774 static void dump_release_clipboard_reply( const struct release_clipboard_reply
*req
)
3776 fprintf( stderr
, " viewer=%08x", req
->viewer
);
3777 fprintf( stderr
, ", owner=%08x", req
->owner
);
3780 static void dump_get_clipboard_info_request( const struct get_clipboard_info_request
*req
)
3784 static void dump_get_clipboard_info_reply( const struct get_clipboard_info_reply
*req
)
3786 fprintf( stderr
, " window=%08x", req
->window
);
3787 fprintf( stderr
, ", owner=%08x", req
->owner
);
3788 fprintf( stderr
, ", viewer=%08x", req
->viewer
);
3789 fprintf( stderr
, ", seqno=%08x", req
->seqno
);
3792 static void dump_set_clipboard_viewer_request( const struct set_clipboard_viewer_request
*req
)
3794 fprintf( stderr
, " viewer=%08x", req
->viewer
);
3795 fprintf( stderr
, ", previous=%08x", req
->previous
);
3798 static void dump_set_clipboard_viewer_reply( const struct set_clipboard_viewer_reply
*req
)
3800 fprintf( stderr
, " old_viewer=%08x", req
->old_viewer
);
3801 fprintf( stderr
, ", owner=%08x", req
->owner
);
3804 static void dump_add_clipboard_listener_request( const struct add_clipboard_listener_request
*req
)
3806 fprintf( stderr
, " window=%08x", req
->window
);
3809 static void dump_remove_clipboard_listener_request( const struct remove_clipboard_listener_request
*req
)
3811 fprintf( stderr
, " window=%08x", req
->window
);
3814 static void dump_open_token_request( const struct open_token_request
*req
)
3816 fprintf( stderr
, " handle=%04x", req
->handle
);
3817 fprintf( stderr
, ", access=%08x", req
->access
);
3818 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3819 fprintf( stderr
, ", flags=%08x", req
->flags
);
3822 static void dump_open_token_reply( const struct open_token_reply
*req
)
3824 fprintf( stderr
, " token=%04x", req
->token
);
3827 static void dump_set_global_windows_request( const struct set_global_windows_request
*req
)
3829 fprintf( stderr
, " flags=%08x", req
->flags
);
3830 fprintf( stderr
, ", shell_window=%08x", req
->shell_window
);
3831 fprintf( stderr
, ", shell_listview=%08x", req
->shell_listview
);
3832 fprintf( stderr
, ", progman_window=%08x", req
->progman_window
);
3833 fprintf( stderr
, ", taskman_window=%08x", req
->taskman_window
);
3836 static void dump_set_global_windows_reply( const struct set_global_windows_reply
*req
)
3838 fprintf( stderr
, " old_shell_window=%08x", req
->old_shell_window
);
3839 fprintf( stderr
, ", old_shell_listview=%08x", req
->old_shell_listview
);
3840 fprintf( stderr
, ", old_progman_window=%08x", req
->old_progman_window
);
3841 fprintf( stderr
, ", old_taskman_window=%08x", req
->old_taskman_window
);
3844 static void dump_adjust_token_privileges_request( const struct adjust_token_privileges_request
*req
)
3846 fprintf( stderr
, " handle=%04x", req
->handle
);
3847 fprintf( stderr
, ", disable_all=%d", req
->disable_all
);
3848 fprintf( stderr
, ", get_modified_state=%d", req
->get_modified_state
);
3849 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size
);
3852 static void dump_adjust_token_privileges_reply( const struct adjust_token_privileges_reply
*req
)
3854 fprintf( stderr
, " len=%08x", req
->len
);
3855 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size
);
3858 static void dump_get_token_privileges_request( const struct get_token_privileges_request
*req
)
3860 fprintf( stderr
, " handle=%04x", req
->handle
);
3863 static void dump_get_token_privileges_reply( const struct get_token_privileges_reply
*req
)
3865 fprintf( stderr
, " len=%08x", req
->len
);
3866 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size
);
3869 static void dump_check_token_privileges_request( const struct check_token_privileges_request
*req
)
3871 fprintf( stderr
, " handle=%04x", req
->handle
);
3872 fprintf( stderr
, ", all_required=%d", req
->all_required
);
3873 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size
);
3876 static void dump_check_token_privileges_reply( const struct check_token_privileges_reply
*req
)
3878 fprintf( stderr
, " has_privileges=%d", req
->has_privileges
);
3879 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size
);
3882 static void dump_duplicate_token_request( const struct duplicate_token_request
*req
)
3884 fprintf( stderr
, " handle=%04x", req
->handle
);
3885 fprintf( stderr
, ", access=%08x", req
->access
);
3886 fprintf( stderr
, ", primary=%d", req
->primary
);
3887 fprintf( stderr
, ", impersonation_level=%d", req
->impersonation_level
);
3888 dump_varargs_object_attributes( ", objattr=", cur_size
);
3891 static void dump_duplicate_token_reply( const struct duplicate_token_reply
*req
)
3893 fprintf( stderr
, " new_handle=%04x", req
->new_handle
);
3896 static void dump_filter_token_request( const struct filter_token_request
*req
)
3898 fprintf( stderr
, " handle=%04x", req
->handle
);
3899 fprintf( stderr
, ", flags=%08x", req
->flags
);
3900 fprintf( stderr
, ", privileges_size=%u", req
->privileges_size
);
3901 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", min(cur_size
,req
->privileges_size
) );
3902 dump_varargs_SID( ", disable_sids=", cur_size
);
3905 static void dump_filter_token_reply( const struct filter_token_reply
*req
)
3907 fprintf( stderr
, " new_handle=%04x", req
->new_handle
);
3910 static void dump_access_check_request( const struct access_check_request
*req
)
3912 fprintf( stderr
, " handle=%04x", req
->handle
);
3913 fprintf( stderr
, ", desired_access=%08x", req
->desired_access
);
3914 dump_generic_map( ", mapping=", &req
->mapping
);
3915 dump_varargs_security_descriptor( ", sd=", cur_size
);
3918 static void dump_access_check_reply( const struct access_check_reply
*req
)
3920 fprintf( stderr
, " access_granted=%08x", req
->access_granted
);
3921 fprintf( stderr
, ", access_status=%08x", req
->access_status
);
3922 fprintf( stderr
, ", privileges_len=%08x", req
->privileges_len
);
3923 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size
);
3926 static void dump_get_token_sid_request( const struct get_token_sid_request
*req
)
3928 fprintf( stderr
, " handle=%04x", req
->handle
);
3929 fprintf( stderr
, ", which_sid=%08x", req
->which_sid
);
3932 static void dump_get_token_sid_reply( const struct get_token_sid_reply
*req
)
3934 fprintf( stderr
, " sid_len=%u", req
->sid_len
);
3935 dump_varargs_SID( ", sid=", cur_size
);
3938 static void dump_get_token_groups_request( const struct get_token_groups_request
*req
)
3940 fprintf( stderr
, " handle=%04x", req
->handle
);
3943 static void dump_get_token_groups_reply( const struct get_token_groups_reply
*req
)
3945 fprintf( stderr
, " user_len=%u", req
->user_len
);
3946 dump_varargs_token_groups( ", user=", cur_size
);
3949 static void dump_get_token_default_dacl_request( const struct get_token_default_dacl_request
*req
)
3951 fprintf( stderr
, " handle=%04x", req
->handle
);
3954 static void dump_get_token_default_dacl_reply( const struct get_token_default_dacl_reply
*req
)
3956 fprintf( stderr
, " acl_len=%u", req
->acl_len
);
3957 dump_varargs_ACL( ", acl=", cur_size
);
3960 static void dump_set_token_default_dacl_request( const struct set_token_default_dacl_request
*req
)
3962 fprintf( stderr
, " handle=%04x", req
->handle
);
3963 dump_varargs_ACL( ", acl=", cur_size
);
3966 static void dump_set_security_object_request( const struct set_security_object_request
*req
)
3968 fprintf( stderr
, " handle=%04x", req
->handle
);
3969 fprintf( stderr
, ", security_info=%08x", req
->security_info
);
3970 dump_varargs_security_descriptor( ", sd=", cur_size
);
3973 static void dump_get_security_object_request( const struct get_security_object_request
*req
)
3975 fprintf( stderr
, " handle=%04x", req
->handle
);
3976 fprintf( stderr
, ", security_info=%08x", req
->security_info
);
3979 static void dump_get_security_object_reply( const struct get_security_object_reply
*req
)
3981 fprintf( stderr
, " sd_len=%08x", req
->sd_len
);
3982 dump_varargs_security_descriptor( ", sd=", cur_size
);
3985 static void dump_get_system_handles_request( const struct get_system_handles_request
*req
)
3989 static void dump_get_system_handles_reply( const struct get_system_handles_reply
*req
)
3991 fprintf( stderr
, " count=%08x", req
->count
);
3992 dump_varargs_handle_infos( ", data=", cur_size
);
3995 static void dump_create_mailslot_request( const struct create_mailslot_request
*req
)
3997 fprintf( stderr
, " access=%08x", req
->access
);
3998 dump_timeout( ", read_timeout=", &req
->read_timeout
);
3999 fprintf( stderr
, ", max_msgsize=%08x", req
->max_msgsize
);
4000 dump_varargs_object_attributes( ", objattr=", cur_size
);
4003 static void dump_create_mailslot_reply( const struct create_mailslot_reply
*req
)
4005 fprintf( stderr
, " handle=%04x", req
->handle
);
4008 static void dump_set_mailslot_info_request( const struct set_mailslot_info_request
*req
)
4010 fprintf( stderr
, " handle=%04x", req
->handle
);
4011 dump_timeout( ", read_timeout=", &req
->read_timeout
);
4012 fprintf( stderr
, ", flags=%08x", req
->flags
);
4015 static void dump_set_mailslot_info_reply( const struct set_mailslot_info_reply
*req
)
4017 dump_timeout( " read_timeout=", &req
->read_timeout
);
4018 fprintf( stderr
, ", max_msgsize=%08x", req
->max_msgsize
);
4021 static void dump_create_directory_request( const struct create_directory_request
*req
)
4023 fprintf( stderr
, " access=%08x", req
->access
);
4024 dump_varargs_object_attributes( ", objattr=", cur_size
);
4027 static void dump_create_directory_reply( const struct create_directory_reply
*req
)
4029 fprintf( stderr
, " handle=%04x", req
->handle
);
4032 static void dump_open_directory_request( const struct open_directory_request
*req
)
4034 fprintf( stderr
, " access=%08x", req
->access
);
4035 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
4036 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
4037 dump_varargs_unicode_str( ", directory_name=", cur_size
);
4040 static void dump_open_directory_reply( const struct open_directory_reply
*req
)
4042 fprintf( stderr
, " handle=%04x", req
->handle
);
4045 static void dump_get_directory_entry_request( const struct get_directory_entry_request
*req
)
4047 fprintf( stderr
, " handle=%04x", req
->handle
);
4048 fprintf( stderr
, ", index=%08x", req
->index
);
4051 static void dump_get_directory_entry_reply( const struct get_directory_entry_reply
*req
)
4053 fprintf( stderr
, " name_len=%u", req
->name_len
);
4054 dump_varargs_unicode_str( ", name=", min(cur_size
,req
->name_len
) );
4055 dump_varargs_unicode_str( ", type=", cur_size
);
4058 static void dump_create_symlink_request( const struct create_symlink_request
*req
)
4060 fprintf( stderr
, " access=%08x", req
->access
);
4061 dump_varargs_object_attributes( ", objattr=", cur_size
);
4062 dump_varargs_unicode_str( ", target_name=", cur_size
);
4065 static void dump_create_symlink_reply( const struct create_symlink_reply
*req
)
4067 fprintf( stderr
, " handle=%04x", req
->handle
);
4070 static void dump_open_symlink_request( const struct open_symlink_request
*req
)
4072 fprintf( stderr
, " access=%08x", req
->access
);
4073 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
4074 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
4075 dump_varargs_unicode_str( ", name=", cur_size
);
4078 static void dump_open_symlink_reply( const struct open_symlink_reply
*req
)
4080 fprintf( stderr
, " handle=%04x", req
->handle
);
4083 static void dump_query_symlink_request( const struct query_symlink_request
*req
)
4085 fprintf( stderr
, " handle=%04x", req
->handle
);
4088 static void dump_query_symlink_reply( const struct query_symlink_reply
*req
)
4090 fprintf( stderr
, " total=%u", req
->total
);
4091 dump_varargs_unicode_str( ", target_name=", cur_size
);
4094 static void dump_get_object_info_request( const struct get_object_info_request
*req
)
4096 fprintf( stderr
, " handle=%04x", req
->handle
);
4099 static void dump_get_object_info_reply( const struct get_object_info_reply
*req
)
4101 fprintf( stderr
, " access=%08x", req
->access
);
4102 fprintf( stderr
, ", ref_count=%08x", req
->ref_count
);
4103 fprintf( stderr
, ", handle_count=%08x", req
->handle_count
);
4106 static void dump_get_object_name_request( const struct get_object_name_request
*req
)
4108 fprintf( stderr
, " handle=%04x", req
->handle
);
4111 static void dump_get_object_name_reply( const struct get_object_name_reply
*req
)
4113 fprintf( stderr
, " total=%u", req
->total
);
4114 dump_varargs_unicode_str( ", name=", cur_size
);
4117 static void dump_get_object_type_request( const struct get_object_type_request
*req
)
4119 fprintf( stderr
, " handle=%04x", req
->handle
);
4122 static void dump_get_object_type_reply( const struct get_object_type_reply
*req
)
4124 dump_varargs_object_type_info( " info=", cur_size
);
4127 static void dump_get_object_types_request( const struct get_object_types_request
*req
)
4131 static void dump_get_object_types_reply( const struct get_object_types_reply
*req
)
4133 fprintf( stderr
, " count=%d", req
->count
);
4134 dump_varargs_object_types_info( ", info=", cur_size
);
4137 static void dump_allocate_locally_unique_id_request( const struct allocate_locally_unique_id_request
*req
)
4141 static void dump_allocate_locally_unique_id_reply( const struct allocate_locally_unique_id_reply
*req
)
4143 dump_luid( " luid=", &req
->luid
);
4146 static void dump_create_device_manager_request( const struct create_device_manager_request
*req
)
4148 fprintf( stderr
, " access=%08x", req
->access
);
4149 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
4152 static void dump_create_device_manager_reply( const struct create_device_manager_reply
*req
)
4154 fprintf( stderr
, " handle=%04x", req
->handle
);
4157 static void dump_create_device_request( const struct create_device_request
*req
)
4159 fprintf( stderr
, " rootdir=%04x", req
->rootdir
);
4160 dump_uint64( ", user_ptr=", &req
->user_ptr
);
4161 fprintf( stderr
, ", manager=%04x", req
->manager
);
4162 dump_varargs_unicode_str( ", name=", cur_size
);
4165 static void dump_delete_device_request( const struct delete_device_request
*req
)
4167 fprintf( stderr
, " manager=%04x", req
->manager
);
4168 dump_uint64( ", device=", &req
->device
);
4171 static void dump_get_next_device_request_request( const struct get_next_device_request_request
*req
)
4173 fprintf( stderr
, " manager=%04x", req
->manager
);
4174 fprintf( stderr
, ", prev=%04x", req
->prev
);
4175 fprintf( stderr
, ", status=%08x", req
->status
);
4176 dump_uint64( ", user_ptr=", &req
->user_ptr
);
4177 fprintf( stderr
, ", pending=%d", req
->pending
);
4178 fprintf( stderr
, ", iosb_status=%08x", req
->iosb_status
);
4179 fprintf( stderr
, ", result=%u", req
->result
);
4180 dump_varargs_bytes( ", data=", cur_size
);
4183 static void dump_get_next_device_request_reply( const struct get_next_device_request_reply
*req
)
4185 dump_irp_params( " params=", &req
->params
);
4186 fprintf( stderr
, ", next=%04x", req
->next
);
4187 fprintf( stderr
, ", client_tid=%04x", req
->client_tid
);
4188 dump_uint64( ", client_thread=", &req
->client_thread
);
4189 fprintf( stderr
, ", in_size=%u", req
->in_size
);
4190 dump_varargs_bytes( ", next_data=", cur_size
);
4193 static void dump_get_kernel_object_ptr_request( const struct get_kernel_object_ptr_request
*req
)
4195 fprintf( stderr
, " manager=%04x", req
->manager
);
4196 fprintf( stderr
, ", handle=%04x", req
->handle
);
4199 static void dump_get_kernel_object_ptr_reply( const struct get_kernel_object_ptr_reply
*req
)
4201 dump_uint64( " user_ptr=", &req
->user_ptr
);
4204 static void dump_set_kernel_object_ptr_request( const struct set_kernel_object_ptr_request
*req
)
4206 fprintf( stderr
, " manager=%04x", req
->manager
);
4207 fprintf( stderr
, ", handle=%04x", req
->handle
);
4208 dump_uint64( ", user_ptr=", &req
->user_ptr
);
4211 static void dump_grab_kernel_object_request( const struct grab_kernel_object_request
*req
)
4213 fprintf( stderr
, " manager=%04x", req
->manager
);
4214 dump_uint64( ", user_ptr=", &req
->user_ptr
);
4217 static void dump_release_kernel_object_request( const struct release_kernel_object_request
*req
)
4219 fprintf( stderr
, " manager=%04x", req
->manager
);
4220 dump_uint64( ", user_ptr=", &req
->user_ptr
);
4223 static void dump_get_kernel_object_handle_request( const struct get_kernel_object_handle_request
*req
)
4225 fprintf( stderr
, " manager=%04x", req
->manager
);
4226 dump_uint64( ", user_ptr=", &req
->user_ptr
);
4227 fprintf( stderr
, ", access=%08x", req
->access
);
4230 static void dump_get_kernel_object_handle_reply( const struct get_kernel_object_handle_reply
*req
)
4232 fprintf( stderr
, " handle=%04x", req
->handle
);
4235 static void dump_make_process_system_request( const struct make_process_system_request
*req
)
4237 fprintf( stderr
, " handle=%04x", req
->handle
);
4240 static void dump_make_process_system_reply( const struct make_process_system_reply
*req
)
4242 fprintf( stderr
, " event=%04x", req
->event
);
4245 static void dump_get_token_info_request( const struct get_token_info_request
*req
)
4247 fprintf( stderr
, " handle=%04x", req
->handle
);
4250 static void dump_get_token_info_reply( const struct get_token_info_reply
*req
)
4252 dump_luid( " token_id=", &req
->token_id
);
4253 dump_luid( ", modified_id=", &req
->modified_id
);
4254 fprintf( stderr
, ", session_id=%08x", req
->session_id
);
4255 fprintf( stderr
, ", primary=%d", req
->primary
);
4256 fprintf( stderr
, ", impersonation_level=%d", req
->impersonation_level
);
4257 fprintf( stderr
, ", elevation=%d", req
->elevation
);
4258 fprintf( stderr
, ", group_count=%d", req
->group_count
);
4259 fprintf( stderr
, ", privilege_count=%d", req
->privilege_count
);
4262 static void dump_create_linked_token_request( const struct create_linked_token_request
*req
)
4264 fprintf( stderr
, " handle=%04x", req
->handle
);
4267 static void dump_create_linked_token_reply( const struct create_linked_token_reply
*req
)
4269 fprintf( stderr
, " linked=%04x", req
->linked
);
4272 static void dump_create_completion_request( const struct create_completion_request
*req
)
4274 fprintf( stderr
, " access=%08x", req
->access
);
4275 fprintf( stderr
, ", concurrent=%08x", req
->concurrent
);
4276 dump_varargs_object_attributes( ", objattr=", cur_size
);
4279 static void dump_create_completion_reply( const struct create_completion_reply
*req
)
4281 fprintf( stderr
, " handle=%04x", req
->handle
);
4284 static void dump_open_completion_request( const struct open_completion_request
*req
)
4286 fprintf( stderr
, " access=%08x", req
->access
);
4287 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
4288 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
4289 dump_varargs_unicode_str( ", filename=", cur_size
);
4292 static void dump_open_completion_reply( const struct open_completion_reply
*req
)
4294 fprintf( stderr
, " handle=%04x", req
->handle
);
4297 static void dump_add_completion_request( const struct add_completion_request
*req
)
4299 fprintf( stderr
, " handle=%04x", req
->handle
);
4300 dump_uint64( ", ckey=", &req
->ckey
);
4301 dump_uint64( ", cvalue=", &req
->cvalue
);
4302 dump_uint64( ", information=", &req
->information
);
4303 fprintf( stderr
, ", status=%08x", req
->status
);
4306 static void dump_remove_completion_request( const struct remove_completion_request
*req
)
4308 fprintf( stderr
, " handle=%04x", req
->handle
);
4311 static void dump_remove_completion_reply( const struct remove_completion_reply
*req
)
4313 dump_uint64( " ckey=", &req
->ckey
);
4314 dump_uint64( ", cvalue=", &req
->cvalue
);
4315 dump_uint64( ", information=", &req
->information
);
4316 fprintf( stderr
, ", status=%08x", req
->status
);
4319 static void dump_query_completion_request( const struct query_completion_request
*req
)
4321 fprintf( stderr
, " handle=%04x", req
->handle
);
4324 static void dump_query_completion_reply( const struct query_completion_reply
*req
)
4326 fprintf( stderr
, " depth=%08x", req
->depth
);
4329 static void dump_set_completion_info_request( const struct set_completion_info_request
*req
)
4331 fprintf( stderr
, " handle=%04x", req
->handle
);
4332 dump_uint64( ", ckey=", &req
->ckey
);
4333 fprintf( stderr
, ", chandle=%04x", req
->chandle
);
4336 static void dump_add_fd_completion_request( const struct add_fd_completion_request
*req
)
4338 fprintf( stderr
, " handle=%04x", req
->handle
);
4339 dump_uint64( ", cvalue=", &req
->cvalue
);
4340 dump_uint64( ", information=", &req
->information
);
4341 fprintf( stderr
, ", status=%08x", req
->status
);
4342 fprintf( stderr
, ", async=%d", req
->async
);
4345 static void dump_set_fd_completion_mode_request( const struct set_fd_completion_mode_request
*req
)
4347 fprintf( stderr
, " handle=%04x", req
->handle
);
4348 fprintf( stderr
, ", flags=%08x", req
->flags
);
4351 static void dump_set_fd_disp_info_request( const struct set_fd_disp_info_request
*req
)
4353 fprintf( stderr
, " handle=%04x", req
->handle
);
4354 fprintf( stderr
, ", unlink=%d", req
->unlink
);
4357 static void dump_set_fd_name_info_request( const struct set_fd_name_info_request
*req
)
4359 fprintf( stderr
, " handle=%04x", req
->handle
);
4360 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
4361 fprintf( stderr
, ", namelen=%u", req
->namelen
);
4362 fprintf( stderr
, ", link=%d", req
->link
);
4363 fprintf( stderr
, ", replace=%d", req
->replace
);
4364 dump_varargs_unicode_str( ", name=", min(cur_size
,req
->namelen
) );
4365 dump_varargs_string( ", filename=", cur_size
);
4368 static void dump_set_fd_eof_info_request( const struct set_fd_eof_info_request
*req
)
4370 fprintf( stderr
, " handle=%04x", req
->handle
);
4371 dump_uint64( ", eof=", &req
->eof
);
4374 static void dump_get_window_layered_info_request( const struct get_window_layered_info_request
*req
)
4376 fprintf( stderr
, " handle=%08x", req
->handle
);
4379 static void dump_get_window_layered_info_reply( const struct get_window_layered_info_reply
*req
)
4381 fprintf( stderr
, " color_key=%08x", req
->color_key
);
4382 fprintf( stderr
, ", alpha=%08x", req
->alpha
);
4383 fprintf( stderr
, ", flags=%08x", req
->flags
);
4386 static void dump_set_window_layered_info_request( const struct set_window_layered_info_request
*req
)
4388 fprintf( stderr
, " handle=%08x", req
->handle
);
4389 fprintf( stderr
, ", color_key=%08x", req
->color_key
);
4390 fprintf( stderr
, ", alpha=%08x", req
->alpha
);
4391 fprintf( stderr
, ", flags=%08x", req
->flags
);
4394 static void dump_alloc_user_handle_request( const struct alloc_user_handle_request
*req
)
4398 static void dump_alloc_user_handle_reply( const struct alloc_user_handle_reply
*req
)
4400 fprintf( stderr
, " handle=%08x", req
->handle
);
4403 static void dump_free_user_handle_request( const struct free_user_handle_request
*req
)
4405 fprintf( stderr
, " handle=%08x", req
->handle
);
4408 static void dump_set_cursor_request( const struct set_cursor_request
*req
)
4410 fprintf( stderr
, " flags=%08x", req
->flags
);
4411 fprintf( stderr
, ", handle=%08x", req
->handle
);
4412 fprintf( stderr
, ", show_count=%d", req
->show_count
);
4413 fprintf( stderr
, ", x=%d", req
->x
);
4414 fprintf( stderr
, ", y=%d", req
->y
);
4415 dump_rectangle( ", clip=", &req
->clip
);
4416 fprintf( stderr
, ", clip_msg=%08x", req
->clip_msg
);
4419 static void dump_set_cursor_reply( const struct set_cursor_reply
*req
)
4421 fprintf( stderr
, " prev_handle=%08x", req
->prev_handle
);
4422 fprintf( stderr
, ", prev_count=%d", req
->prev_count
);
4423 fprintf( stderr
, ", prev_x=%d", req
->prev_x
);
4424 fprintf( stderr
, ", prev_y=%d", req
->prev_y
);
4425 fprintf( stderr
, ", new_x=%d", req
->new_x
);
4426 fprintf( stderr
, ", new_y=%d", req
->new_y
);
4427 dump_rectangle( ", new_clip=", &req
->new_clip
);
4428 fprintf( stderr
, ", last_change=%08x", req
->last_change
);
4431 static void dump_get_cursor_history_request( const struct get_cursor_history_request
*req
)
4435 static void dump_get_cursor_history_reply( const struct get_cursor_history_reply
*req
)
4437 dump_varargs_cursor_positions( " history=", cur_size
);
4440 static void dump_get_rawinput_buffer_request( const struct get_rawinput_buffer_request
*req
)
4442 fprintf( stderr
, " rawinput_size=%u", req
->rawinput_size
);
4443 fprintf( stderr
, ", buffer_size=%u", req
->buffer_size
);
4446 static void dump_get_rawinput_buffer_reply( const struct get_rawinput_buffer_reply
*req
)
4448 fprintf( stderr
, " next_size=%u", req
->next_size
);
4449 fprintf( stderr
, ", count=%08x", req
->count
);
4450 dump_varargs_bytes( ", data=", cur_size
);
4453 static void dump_update_rawinput_devices_request( const struct update_rawinput_devices_request
*req
)
4455 dump_varargs_rawinput_devices( " devices=", cur_size
);
4458 static void dump_get_rawinput_devices_request( const struct get_rawinput_devices_request
*req
)
4462 static void dump_get_rawinput_devices_reply( const struct get_rawinput_devices_reply
*req
)
4464 fprintf( stderr
, " device_count=%08x", req
->device_count
);
4465 dump_varargs_rawinput_devices( ", devices=", cur_size
);
4468 static void dump_create_job_request( const struct create_job_request
*req
)
4470 fprintf( stderr
, " access=%08x", req
->access
);
4471 dump_varargs_object_attributes( ", objattr=", cur_size
);
4474 static void dump_create_job_reply( const struct create_job_reply
*req
)
4476 fprintf( stderr
, " handle=%04x", req
->handle
);
4479 static void dump_open_job_request( const struct open_job_request
*req
)
4481 fprintf( stderr
, " access=%08x", req
->access
);
4482 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
4483 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
4484 dump_varargs_unicode_str( ", name=", cur_size
);
4487 static void dump_open_job_reply( const struct open_job_reply
*req
)
4489 fprintf( stderr
, " handle=%04x", req
->handle
);
4492 static void dump_assign_job_request( const struct assign_job_request
*req
)
4494 fprintf( stderr
, " job=%04x", req
->job
);
4495 fprintf( stderr
, ", process=%04x", req
->process
);
4498 static void dump_process_in_job_request( const struct process_in_job_request
*req
)
4500 fprintf( stderr
, " job=%04x", req
->job
);
4501 fprintf( stderr
, ", process=%04x", req
->process
);
4504 static void dump_set_job_limits_request( const struct set_job_limits_request
*req
)
4506 fprintf( stderr
, " handle=%04x", req
->handle
);
4507 fprintf( stderr
, ", limit_flags=%08x", req
->limit_flags
);
4510 static void dump_set_job_completion_port_request( const struct set_job_completion_port_request
*req
)
4512 fprintf( stderr
, " job=%04x", req
->job
);
4513 fprintf( stderr
, ", port=%04x", req
->port
);
4514 dump_uint64( ", key=", &req
->key
);
4517 static void dump_get_job_info_request( const struct get_job_info_request
*req
)
4519 fprintf( stderr
, " handle=%04x", req
->handle
);
4522 static void dump_get_job_info_reply( const struct get_job_info_reply
*req
)
4524 fprintf( stderr
, " total_processes=%d", req
->total_processes
);
4525 fprintf( stderr
, ", active_processes=%d", req
->active_processes
);
4526 dump_varargs_uints( ", pids=", cur_size
);
4529 static void dump_terminate_job_request( const struct terminate_job_request
*req
)
4531 fprintf( stderr
, " handle=%04x", req
->handle
);
4532 fprintf( stderr
, ", status=%d", req
->status
);
4535 static void dump_suspend_process_request( const struct suspend_process_request
*req
)
4537 fprintf( stderr
, " handle=%04x", req
->handle
);
4540 static void dump_resume_process_request( const struct resume_process_request
*req
)
4542 fprintf( stderr
, " handle=%04x", req
->handle
);
4545 static void dump_get_next_thread_request( const struct get_next_thread_request
*req
)
4547 fprintf( stderr
, " process=%04x", req
->process
);
4548 fprintf( stderr
, ", last=%04x", req
->last
);
4549 fprintf( stderr
, ", access=%08x", req
->access
);
4550 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
4551 fprintf( stderr
, ", flags=%08x", req
->flags
);
4554 static void dump_get_next_thread_reply( const struct get_next_thread_reply
*req
)
4556 fprintf( stderr
, " handle=%04x", req
->handle
);
4559 static const dump_func req_dumpers
[REQ_NB_REQUESTS
] = {
4560 (dump_func
)dump_new_process_request
,
4561 (dump_func
)dump_get_new_process_info_request
,
4562 (dump_func
)dump_new_thread_request
,
4563 (dump_func
)dump_get_startup_info_request
,
4564 (dump_func
)dump_init_process_done_request
,
4565 (dump_func
)dump_init_first_thread_request
,
4566 (dump_func
)dump_init_thread_request
,
4567 (dump_func
)dump_terminate_process_request
,
4568 (dump_func
)dump_terminate_thread_request
,
4569 (dump_func
)dump_get_process_info_request
,
4570 (dump_func
)dump_get_process_debug_info_request
,
4571 (dump_func
)dump_get_process_image_name_request
,
4572 (dump_func
)dump_get_process_vm_counters_request
,
4573 (dump_func
)dump_set_process_info_request
,
4574 (dump_func
)dump_get_thread_info_request
,
4575 (dump_func
)dump_get_thread_times_request
,
4576 (dump_func
)dump_set_thread_info_request
,
4577 (dump_func
)dump_suspend_thread_request
,
4578 (dump_func
)dump_resume_thread_request
,
4579 (dump_func
)dump_queue_apc_request
,
4580 (dump_func
)dump_get_apc_result_request
,
4581 (dump_func
)dump_close_handle_request
,
4582 (dump_func
)dump_set_handle_info_request
,
4583 (dump_func
)dump_dup_handle_request
,
4584 (dump_func
)dump_make_temporary_request
,
4585 (dump_func
)dump_open_process_request
,
4586 (dump_func
)dump_open_thread_request
,
4587 (dump_func
)dump_select_request
,
4588 (dump_func
)dump_create_event_request
,
4589 (dump_func
)dump_event_op_request
,
4590 (dump_func
)dump_query_event_request
,
4591 (dump_func
)dump_open_event_request
,
4592 (dump_func
)dump_create_keyed_event_request
,
4593 (dump_func
)dump_open_keyed_event_request
,
4594 (dump_func
)dump_create_mutex_request
,
4595 (dump_func
)dump_release_mutex_request
,
4596 (dump_func
)dump_open_mutex_request
,
4597 (dump_func
)dump_query_mutex_request
,
4598 (dump_func
)dump_create_semaphore_request
,
4599 (dump_func
)dump_release_semaphore_request
,
4600 (dump_func
)dump_query_semaphore_request
,
4601 (dump_func
)dump_open_semaphore_request
,
4602 (dump_func
)dump_create_file_request
,
4603 (dump_func
)dump_open_file_object_request
,
4604 (dump_func
)dump_alloc_file_handle_request
,
4605 (dump_func
)dump_get_handle_unix_name_request
,
4606 (dump_func
)dump_get_handle_fd_request
,
4607 (dump_func
)dump_get_directory_cache_entry_request
,
4608 (dump_func
)dump_flush_request
,
4609 (dump_func
)dump_get_file_info_request
,
4610 (dump_func
)dump_get_volume_info_request
,
4611 (dump_func
)dump_lock_file_request
,
4612 (dump_func
)dump_unlock_file_request
,
4613 (dump_func
)dump_recv_socket_request
,
4614 (dump_func
)dump_poll_socket_request
,
4615 (dump_func
)dump_send_socket_request
,
4616 (dump_func
)dump_get_next_console_request_request
,
4617 (dump_func
)dump_read_directory_changes_request
,
4618 (dump_func
)dump_read_change_request
,
4619 (dump_func
)dump_create_mapping_request
,
4620 (dump_func
)dump_open_mapping_request
,
4621 (dump_func
)dump_get_mapping_info_request
,
4622 (dump_func
)dump_map_view_request
,
4623 (dump_func
)dump_unmap_view_request
,
4624 (dump_func
)dump_get_mapping_committed_range_request
,
4625 (dump_func
)dump_add_mapping_committed_range_request
,
4626 (dump_func
)dump_is_same_mapping_request
,
4627 (dump_func
)dump_get_mapping_filename_request
,
4628 (dump_func
)dump_list_processes_request
,
4629 (dump_func
)dump_create_debug_obj_request
,
4630 (dump_func
)dump_wait_debug_event_request
,
4631 (dump_func
)dump_queue_exception_event_request
,
4632 (dump_func
)dump_get_exception_status_request
,
4633 (dump_func
)dump_continue_debug_event_request
,
4634 (dump_func
)dump_debug_process_request
,
4635 (dump_func
)dump_set_debug_obj_info_request
,
4636 (dump_func
)dump_read_process_memory_request
,
4637 (dump_func
)dump_write_process_memory_request
,
4638 (dump_func
)dump_create_key_request
,
4639 (dump_func
)dump_open_key_request
,
4640 (dump_func
)dump_delete_key_request
,
4641 (dump_func
)dump_flush_key_request
,
4642 (dump_func
)dump_enum_key_request
,
4643 (dump_func
)dump_set_key_value_request
,
4644 (dump_func
)dump_get_key_value_request
,
4645 (dump_func
)dump_enum_key_value_request
,
4646 (dump_func
)dump_delete_key_value_request
,
4647 (dump_func
)dump_load_registry_request
,
4648 (dump_func
)dump_unload_registry_request
,
4649 (dump_func
)dump_save_registry_request
,
4650 (dump_func
)dump_set_registry_notification_request
,
4651 (dump_func
)dump_create_timer_request
,
4652 (dump_func
)dump_open_timer_request
,
4653 (dump_func
)dump_set_timer_request
,
4654 (dump_func
)dump_cancel_timer_request
,
4655 (dump_func
)dump_get_timer_info_request
,
4656 (dump_func
)dump_get_thread_context_request
,
4657 (dump_func
)dump_set_thread_context_request
,
4658 (dump_func
)dump_get_selector_entry_request
,
4659 (dump_func
)dump_add_atom_request
,
4660 (dump_func
)dump_delete_atom_request
,
4661 (dump_func
)dump_find_atom_request
,
4662 (dump_func
)dump_get_atom_information_request
,
4663 (dump_func
)dump_get_msg_queue_request
,
4664 (dump_func
)dump_set_queue_fd_request
,
4665 (dump_func
)dump_set_queue_mask_request
,
4666 (dump_func
)dump_get_queue_status_request
,
4667 (dump_func
)dump_get_process_idle_event_request
,
4668 (dump_func
)dump_send_message_request
,
4669 (dump_func
)dump_post_quit_message_request
,
4670 (dump_func
)dump_send_hardware_message_request
,
4671 (dump_func
)dump_get_message_request
,
4672 (dump_func
)dump_reply_message_request
,
4673 (dump_func
)dump_accept_hardware_message_request
,
4674 (dump_func
)dump_get_message_reply_request
,
4675 (dump_func
)dump_set_win_timer_request
,
4676 (dump_func
)dump_kill_win_timer_request
,
4677 (dump_func
)dump_is_window_hung_request
,
4678 (dump_func
)dump_get_serial_info_request
,
4679 (dump_func
)dump_set_serial_info_request
,
4680 (dump_func
)dump_register_async_request
,
4681 (dump_func
)dump_cancel_async_request
,
4682 (dump_func
)dump_get_async_result_request
,
4683 (dump_func
)dump_read_request
,
4684 (dump_func
)dump_write_request
,
4685 (dump_func
)dump_ioctl_request
,
4686 (dump_func
)dump_set_irp_result_request
,
4687 (dump_func
)dump_create_named_pipe_request
,
4688 (dump_func
)dump_set_named_pipe_info_request
,
4689 (dump_func
)dump_create_window_request
,
4690 (dump_func
)dump_destroy_window_request
,
4691 (dump_func
)dump_get_desktop_window_request
,
4692 (dump_func
)dump_set_window_owner_request
,
4693 (dump_func
)dump_get_window_info_request
,
4694 (dump_func
)dump_set_window_info_request
,
4695 (dump_func
)dump_set_parent_request
,
4696 (dump_func
)dump_get_window_parents_request
,
4697 (dump_func
)dump_get_window_children_request
,
4698 (dump_func
)dump_get_window_children_from_point_request
,
4699 (dump_func
)dump_get_window_tree_request
,
4700 (dump_func
)dump_set_window_pos_request
,
4701 (dump_func
)dump_get_window_rectangles_request
,
4702 (dump_func
)dump_get_window_text_request
,
4703 (dump_func
)dump_set_window_text_request
,
4704 (dump_func
)dump_get_windows_offset_request
,
4705 (dump_func
)dump_get_visible_region_request
,
4706 (dump_func
)dump_get_surface_region_request
,
4707 (dump_func
)dump_get_window_region_request
,
4708 (dump_func
)dump_set_window_region_request
,
4709 (dump_func
)dump_get_update_region_request
,
4710 (dump_func
)dump_update_window_zorder_request
,
4711 (dump_func
)dump_redraw_window_request
,
4712 (dump_func
)dump_set_window_property_request
,
4713 (dump_func
)dump_remove_window_property_request
,
4714 (dump_func
)dump_get_window_property_request
,
4715 (dump_func
)dump_get_window_properties_request
,
4716 (dump_func
)dump_create_winstation_request
,
4717 (dump_func
)dump_open_winstation_request
,
4718 (dump_func
)dump_close_winstation_request
,
4719 (dump_func
)dump_get_process_winstation_request
,
4720 (dump_func
)dump_set_process_winstation_request
,
4721 (dump_func
)dump_enum_winstation_request
,
4722 (dump_func
)dump_create_desktop_request
,
4723 (dump_func
)dump_open_desktop_request
,
4724 (dump_func
)dump_open_input_desktop_request
,
4725 (dump_func
)dump_close_desktop_request
,
4726 (dump_func
)dump_get_thread_desktop_request
,
4727 (dump_func
)dump_set_thread_desktop_request
,
4728 (dump_func
)dump_enum_desktop_request
,
4729 (dump_func
)dump_set_user_object_info_request
,
4730 (dump_func
)dump_register_hotkey_request
,
4731 (dump_func
)dump_unregister_hotkey_request
,
4732 (dump_func
)dump_attach_thread_input_request
,
4733 (dump_func
)dump_get_thread_input_request
,
4734 (dump_func
)dump_get_last_input_time_request
,
4735 (dump_func
)dump_get_key_state_request
,
4736 (dump_func
)dump_set_key_state_request
,
4737 (dump_func
)dump_set_foreground_window_request
,
4738 (dump_func
)dump_set_focus_window_request
,
4739 (dump_func
)dump_set_active_window_request
,
4740 (dump_func
)dump_set_capture_window_request
,
4741 (dump_func
)dump_set_caret_window_request
,
4742 (dump_func
)dump_set_caret_info_request
,
4743 (dump_func
)dump_set_hook_request
,
4744 (dump_func
)dump_remove_hook_request
,
4745 (dump_func
)dump_start_hook_chain_request
,
4746 (dump_func
)dump_finish_hook_chain_request
,
4747 (dump_func
)dump_get_hook_info_request
,
4748 (dump_func
)dump_create_class_request
,
4749 (dump_func
)dump_destroy_class_request
,
4750 (dump_func
)dump_set_class_info_request
,
4751 (dump_func
)dump_open_clipboard_request
,
4752 (dump_func
)dump_close_clipboard_request
,
4753 (dump_func
)dump_empty_clipboard_request
,
4754 (dump_func
)dump_set_clipboard_data_request
,
4755 (dump_func
)dump_get_clipboard_data_request
,
4756 (dump_func
)dump_get_clipboard_formats_request
,
4757 (dump_func
)dump_enum_clipboard_formats_request
,
4758 (dump_func
)dump_release_clipboard_request
,
4759 (dump_func
)dump_get_clipboard_info_request
,
4760 (dump_func
)dump_set_clipboard_viewer_request
,
4761 (dump_func
)dump_add_clipboard_listener_request
,
4762 (dump_func
)dump_remove_clipboard_listener_request
,
4763 (dump_func
)dump_open_token_request
,
4764 (dump_func
)dump_set_global_windows_request
,
4765 (dump_func
)dump_adjust_token_privileges_request
,
4766 (dump_func
)dump_get_token_privileges_request
,
4767 (dump_func
)dump_check_token_privileges_request
,
4768 (dump_func
)dump_duplicate_token_request
,
4769 (dump_func
)dump_filter_token_request
,
4770 (dump_func
)dump_access_check_request
,
4771 (dump_func
)dump_get_token_sid_request
,
4772 (dump_func
)dump_get_token_groups_request
,
4773 (dump_func
)dump_get_token_default_dacl_request
,
4774 (dump_func
)dump_set_token_default_dacl_request
,
4775 (dump_func
)dump_set_security_object_request
,
4776 (dump_func
)dump_get_security_object_request
,
4777 (dump_func
)dump_get_system_handles_request
,
4778 (dump_func
)dump_create_mailslot_request
,
4779 (dump_func
)dump_set_mailslot_info_request
,
4780 (dump_func
)dump_create_directory_request
,
4781 (dump_func
)dump_open_directory_request
,
4782 (dump_func
)dump_get_directory_entry_request
,
4783 (dump_func
)dump_create_symlink_request
,
4784 (dump_func
)dump_open_symlink_request
,
4785 (dump_func
)dump_query_symlink_request
,
4786 (dump_func
)dump_get_object_info_request
,
4787 (dump_func
)dump_get_object_name_request
,
4788 (dump_func
)dump_get_object_type_request
,
4789 (dump_func
)dump_get_object_types_request
,
4790 (dump_func
)dump_allocate_locally_unique_id_request
,
4791 (dump_func
)dump_create_device_manager_request
,
4792 (dump_func
)dump_create_device_request
,
4793 (dump_func
)dump_delete_device_request
,
4794 (dump_func
)dump_get_next_device_request_request
,
4795 (dump_func
)dump_get_kernel_object_ptr_request
,
4796 (dump_func
)dump_set_kernel_object_ptr_request
,
4797 (dump_func
)dump_grab_kernel_object_request
,
4798 (dump_func
)dump_release_kernel_object_request
,
4799 (dump_func
)dump_get_kernel_object_handle_request
,
4800 (dump_func
)dump_make_process_system_request
,
4801 (dump_func
)dump_get_token_info_request
,
4802 (dump_func
)dump_create_linked_token_request
,
4803 (dump_func
)dump_create_completion_request
,
4804 (dump_func
)dump_open_completion_request
,
4805 (dump_func
)dump_add_completion_request
,
4806 (dump_func
)dump_remove_completion_request
,
4807 (dump_func
)dump_query_completion_request
,
4808 (dump_func
)dump_set_completion_info_request
,
4809 (dump_func
)dump_add_fd_completion_request
,
4810 (dump_func
)dump_set_fd_completion_mode_request
,
4811 (dump_func
)dump_set_fd_disp_info_request
,
4812 (dump_func
)dump_set_fd_name_info_request
,
4813 (dump_func
)dump_set_fd_eof_info_request
,
4814 (dump_func
)dump_get_window_layered_info_request
,
4815 (dump_func
)dump_set_window_layered_info_request
,
4816 (dump_func
)dump_alloc_user_handle_request
,
4817 (dump_func
)dump_free_user_handle_request
,
4818 (dump_func
)dump_set_cursor_request
,
4819 (dump_func
)dump_get_cursor_history_request
,
4820 (dump_func
)dump_get_rawinput_buffer_request
,
4821 (dump_func
)dump_update_rawinput_devices_request
,
4822 (dump_func
)dump_get_rawinput_devices_request
,
4823 (dump_func
)dump_create_job_request
,
4824 (dump_func
)dump_open_job_request
,
4825 (dump_func
)dump_assign_job_request
,
4826 (dump_func
)dump_process_in_job_request
,
4827 (dump_func
)dump_set_job_limits_request
,
4828 (dump_func
)dump_set_job_completion_port_request
,
4829 (dump_func
)dump_get_job_info_request
,
4830 (dump_func
)dump_terminate_job_request
,
4831 (dump_func
)dump_suspend_process_request
,
4832 (dump_func
)dump_resume_process_request
,
4833 (dump_func
)dump_get_next_thread_request
,
4836 static const dump_func reply_dumpers
[REQ_NB_REQUESTS
] = {
4837 (dump_func
)dump_new_process_reply
,
4838 (dump_func
)dump_get_new_process_info_reply
,
4839 (dump_func
)dump_new_thread_reply
,
4840 (dump_func
)dump_get_startup_info_reply
,
4841 (dump_func
)dump_init_process_done_reply
,
4842 (dump_func
)dump_init_first_thread_reply
,
4843 (dump_func
)dump_init_thread_reply
,
4844 (dump_func
)dump_terminate_process_reply
,
4845 (dump_func
)dump_terminate_thread_reply
,
4846 (dump_func
)dump_get_process_info_reply
,
4847 (dump_func
)dump_get_process_debug_info_reply
,
4848 (dump_func
)dump_get_process_image_name_reply
,
4849 (dump_func
)dump_get_process_vm_counters_reply
,
4851 (dump_func
)dump_get_thread_info_reply
,
4852 (dump_func
)dump_get_thread_times_reply
,
4854 (dump_func
)dump_suspend_thread_reply
,
4855 (dump_func
)dump_resume_thread_reply
,
4856 (dump_func
)dump_queue_apc_reply
,
4857 (dump_func
)dump_get_apc_result_reply
,
4859 (dump_func
)dump_set_handle_info_reply
,
4860 (dump_func
)dump_dup_handle_reply
,
4862 (dump_func
)dump_open_process_reply
,
4863 (dump_func
)dump_open_thread_reply
,
4864 (dump_func
)dump_select_reply
,
4865 (dump_func
)dump_create_event_reply
,
4866 (dump_func
)dump_event_op_reply
,
4867 (dump_func
)dump_query_event_reply
,
4868 (dump_func
)dump_open_event_reply
,
4869 (dump_func
)dump_create_keyed_event_reply
,
4870 (dump_func
)dump_open_keyed_event_reply
,
4871 (dump_func
)dump_create_mutex_reply
,
4872 (dump_func
)dump_release_mutex_reply
,
4873 (dump_func
)dump_open_mutex_reply
,
4874 (dump_func
)dump_query_mutex_reply
,
4875 (dump_func
)dump_create_semaphore_reply
,
4876 (dump_func
)dump_release_semaphore_reply
,
4877 (dump_func
)dump_query_semaphore_reply
,
4878 (dump_func
)dump_open_semaphore_reply
,
4879 (dump_func
)dump_create_file_reply
,
4880 (dump_func
)dump_open_file_object_reply
,
4881 (dump_func
)dump_alloc_file_handle_reply
,
4882 (dump_func
)dump_get_handle_unix_name_reply
,
4883 (dump_func
)dump_get_handle_fd_reply
,
4884 (dump_func
)dump_get_directory_cache_entry_reply
,
4885 (dump_func
)dump_flush_reply
,
4886 (dump_func
)dump_get_file_info_reply
,
4887 (dump_func
)dump_get_volume_info_reply
,
4888 (dump_func
)dump_lock_file_reply
,
4890 (dump_func
)dump_recv_socket_reply
,
4891 (dump_func
)dump_poll_socket_reply
,
4892 (dump_func
)dump_send_socket_reply
,
4893 (dump_func
)dump_get_next_console_request_reply
,
4895 (dump_func
)dump_read_change_reply
,
4896 (dump_func
)dump_create_mapping_reply
,
4897 (dump_func
)dump_open_mapping_reply
,
4898 (dump_func
)dump_get_mapping_info_reply
,
4901 (dump_func
)dump_get_mapping_committed_range_reply
,
4904 (dump_func
)dump_get_mapping_filename_reply
,
4905 (dump_func
)dump_list_processes_reply
,
4906 (dump_func
)dump_create_debug_obj_reply
,
4907 (dump_func
)dump_wait_debug_event_reply
,
4908 (dump_func
)dump_queue_exception_event_reply
,
4913 (dump_func
)dump_read_process_memory_reply
,
4915 (dump_func
)dump_create_key_reply
,
4916 (dump_func
)dump_open_key_reply
,
4919 (dump_func
)dump_enum_key_reply
,
4921 (dump_func
)dump_get_key_value_reply
,
4922 (dump_func
)dump_enum_key_value_reply
,
4928 (dump_func
)dump_create_timer_reply
,
4929 (dump_func
)dump_open_timer_reply
,
4930 (dump_func
)dump_set_timer_reply
,
4931 (dump_func
)dump_cancel_timer_reply
,
4932 (dump_func
)dump_get_timer_info_reply
,
4933 (dump_func
)dump_get_thread_context_reply
,
4934 (dump_func
)dump_set_thread_context_reply
,
4935 (dump_func
)dump_get_selector_entry_reply
,
4936 (dump_func
)dump_add_atom_reply
,
4938 (dump_func
)dump_find_atom_reply
,
4939 (dump_func
)dump_get_atom_information_reply
,
4940 (dump_func
)dump_get_msg_queue_reply
,
4942 (dump_func
)dump_set_queue_mask_reply
,
4943 (dump_func
)dump_get_queue_status_reply
,
4944 (dump_func
)dump_get_process_idle_event_reply
,
4947 (dump_func
)dump_send_hardware_message_reply
,
4948 (dump_func
)dump_get_message_reply
,
4951 (dump_func
)dump_get_message_reply_reply
,
4952 (dump_func
)dump_set_win_timer_reply
,
4954 (dump_func
)dump_is_window_hung_reply
,
4955 (dump_func
)dump_get_serial_info_reply
,
4959 (dump_func
)dump_get_async_result_reply
,
4960 (dump_func
)dump_read_reply
,
4961 (dump_func
)dump_write_reply
,
4962 (dump_func
)dump_ioctl_reply
,
4964 (dump_func
)dump_create_named_pipe_reply
,
4966 (dump_func
)dump_create_window_reply
,
4968 (dump_func
)dump_get_desktop_window_reply
,
4969 (dump_func
)dump_set_window_owner_reply
,
4970 (dump_func
)dump_get_window_info_reply
,
4971 (dump_func
)dump_set_window_info_reply
,
4972 (dump_func
)dump_set_parent_reply
,
4973 (dump_func
)dump_get_window_parents_reply
,
4974 (dump_func
)dump_get_window_children_reply
,
4975 (dump_func
)dump_get_window_children_from_point_reply
,
4976 (dump_func
)dump_get_window_tree_reply
,
4977 (dump_func
)dump_set_window_pos_reply
,
4978 (dump_func
)dump_get_window_rectangles_reply
,
4979 (dump_func
)dump_get_window_text_reply
,
4981 (dump_func
)dump_get_windows_offset_reply
,
4982 (dump_func
)dump_get_visible_region_reply
,
4983 (dump_func
)dump_get_surface_region_reply
,
4984 (dump_func
)dump_get_window_region_reply
,
4986 (dump_func
)dump_get_update_region_reply
,
4990 (dump_func
)dump_remove_window_property_reply
,
4991 (dump_func
)dump_get_window_property_reply
,
4992 (dump_func
)dump_get_window_properties_reply
,
4993 (dump_func
)dump_create_winstation_reply
,
4994 (dump_func
)dump_open_winstation_reply
,
4996 (dump_func
)dump_get_process_winstation_reply
,
4998 (dump_func
)dump_enum_winstation_reply
,
4999 (dump_func
)dump_create_desktop_reply
,
5000 (dump_func
)dump_open_desktop_reply
,
5001 (dump_func
)dump_open_input_desktop_reply
,
5003 (dump_func
)dump_get_thread_desktop_reply
,
5005 (dump_func
)dump_enum_desktop_reply
,
5006 (dump_func
)dump_set_user_object_info_reply
,
5007 (dump_func
)dump_register_hotkey_reply
,
5008 (dump_func
)dump_unregister_hotkey_reply
,
5010 (dump_func
)dump_get_thread_input_reply
,
5011 (dump_func
)dump_get_last_input_time_reply
,
5012 (dump_func
)dump_get_key_state_reply
,
5014 (dump_func
)dump_set_foreground_window_reply
,
5015 (dump_func
)dump_set_focus_window_reply
,
5016 (dump_func
)dump_set_active_window_reply
,
5017 (dump_func
)dump_set_capture_window_reply
,
5018 (dump_func
)dump_set_caret_window_reply
,
5019 (dump_func
)dump_set_caret_info_reply
,
5020 (dump_func
)dump_set_hook_reply
,
5021 (dump_func
)dump_remove_hook_reply
,
5022 (dump_func
)dump_start_hook_chain_reply
,
5024 (dump_func
)dump_get_hook_info_reply
,
5025 (dump_func
)dump_create_class_reply
,
5026 (dump_func
)dump_destroy_class_reply
,
5027 (dump_func
)dump_set_class_info_reply
,
5028 (dump_func
)dump_open_clipboard_reply
,
5029 (dump_func
)dump_close_clipboard_reply
,
5031 (dump_func
)dump_set_clipboard_data_reply
,
5032 (dump_func
)dump_get_clipboard_data_reply
,
5033 (dump_func
)dump_get_clipboard_formats_reply
,
5034 (dump_func
)dump_enum_clipboard_formats_reply
,
5035 (dump_func
)dump_release_clipboard_reply
,
5036 (dump_func
)dump_get_clipboard_info_reply
,
5037 (dump_func
)dump_set_clipboard_viewer_reply
,
5040 (dump_func
)dump_open_token_reply
,
5041 (dump_func
)dump_set_global_windows_reply
,
5042 (dump_func
)dump_adjust_token_privileges_reply
,
5043 (dump_func
)dump_get_token_privileges_reply
,
5044 (dump_func
)dump_check_token_privileges_reply
,
5045 (dump_func
)dump_duplicate_token_reply
,
5046 (dump_func
)dump_filter_token_reply
,
5047 (dump_func
)dump_access_check_reply
,
5048 (dump_func
)dump_get_token_sid_reply
,
5049 (dump_func
)dump_get_token_groups_reply
,
5050 (dump_func
)dump_get_token_default_dacl_reply
,
5053 (dump_func
)dump_get_security_object_reply
,
5054 (dump_func
)dump_get_system_handles_reply
,
5055 (dump_func
)dump_create_mailslot_reply
,
5056 (dump_func
)dump_set_mailslot_info_reply
,
5057 (dump_func
)dump_create_directory_reply
,
5058 (dump_func
)dump_open_directory_reply
,
5059 (dump_func
)dump_get_directory_entry_reply
,
5060 (dump_func
)dump_create_symlink_reply
,
5061 (dump_func
)dump_open_symlink_reply
,
5062 (dump_func
)dump_query_symlink_reply
,
5063 (dump_func
)dump_get_object_info_reply
,
5064 (dump_func
)dump_get_object_name_reply
,
5065 (dump_func
)dump_get_object_type_reply
,
5066 (dump_func
)dump_get_object_types_reply
,
5067 (dump_func
)dump_allocate_locally_unique_id_reply
,
5068 (dump_func
)dump_create_device_manager_reply
,
5071 (dump_func
)dump_get_next_device_request_reply
,
5072 (dump_func
)dump_get_kernel_object_ptr_reply
,
5076 (dump_func
)dump_get_kernel_object_handle_reply
,
5077 (dump_func
)dump_make_process_system_reply
,
5078 (dump_func
)dump_get_token_info_reply
,
5079 (dump_func
)dump_create_linked_token_reply
,
5080 (dump_func
)dump_create_completion_reply
,
5081 (dump_func
)dump_open_completion_reply
,
5083 (dump_func
)dump_remove_completion_reply
,
5084 (dump_func
)dump_query_completion_reply
,
5091 (dump_func
)dump_get_window_layered_info_reply
,
5093 (dump_func
)dump_alloc_user_handle_reply
,
5095 (dump_func
)dump_set_cursor_reply
,
5096 (dump_func
)dump_get_cursor_history_reply
,
5097 (dump_func
)dump_get_rawinput_buffer_reply
,
5099 (dump_func
)dump_get_rawinput_devices_reply
,
5100 (dump_func
)dump_create_job_reply
,
5101 (dump_func
)dump_open_job_reply
,
5106 (dump_func
)dump_get_job_info_reply
,
5110 (dump_func
)dump_get_next_thread_reply
,
5113 static const char * const req_names
[REQ_NB_REQUESTS
] = {
5115 "get_new_process_info",
5118 "init_process_done",
5119 "init_first_thread",
5121 "terminate_process",
5124 "get_process_debug_info",
5125 "get_process_image_name",
5126 "get_process_vm_counters",
5146 "create_keyed_event",
5153 "release_semaphore",
5158 "alloc_file_handle",
5159 "get_handle_unix_name",
5161 "get_directory_cache_entry",
5170 "get_next_console_request",
5171 "read_directory_changes",
5178 "get_mapping_committed_range",
5179 "add_mapping_committed_range",
5181 "get_mapping_filename",
5185 "queue_exception_event",
5186 "get_exception_status",
5187 "continue_debug_event",
5189 "set_debug_obj_info",
5190 "read_process_memory",
5191 "write_process_memory",
5204 "set_registry_notification",
5210 "get_thread_context",
5211 "set_thread_context",
5212 "get_selector_entry",
5216 "get_atom_information",
5221 "get_process_idle_event",
5223 "post_quit_message",
5224 "send_hardware_message",
5227 "accept_hardware_message",
5228 "get_message_reply",
5241 "create_named_pipe",
5242 "set_named_pipe_info",
5245 "get_desktop_window",
5250 "get_window_parents",
5251 "get_window_children",
5252 "get_window_children_from_point",
5255 "get_window_rectangles",
5258 "get_windows_offset",
5259 "get_visible_region",
5260 "get_surface_region",
5261 "get_window_region",
5262 "set_window_region",
5263 "get_update_region",
5264 "update_window_zorder",
5266 "set_window_property",
5267 "remove_window_property",
5268 "get_window_property",
5269 "get_window_properties",
5270 "create_winstation",
5273 "get_process_winstation",
5274 "set_process_winstation",
5278 "open_input_desktop",
5280 "get_thread_desktop",
5281 "set_thread_desktop",
5283 "set_user_object_info",
5285 "unregister_hotkey",
5286 "attach_thread_input",
5288 "get_last_input_time",
5291 "set_foreground_window",
5293 "set_active_window",
5294 "set_capture_window",
5300 "finish_hook_chain",
5308 "set_clipboard_data",
5309 "get_clipboard_data",
5310 "get_clipboard_formats",
5311 "enum_clipboard_formats",
5312 "release_clipboard",
5313 "get_clipboard_info",
5314 "set_clipboard_viewer",
5315 "add_clipboard_listener",
5316 "remove_clipboard_listener",
5318 "set_global_windows",
5319 "adjust_token_privileges",
5320 "get_token_privileges",
5321 "check_token_privileges",
5327 "get_token_default_dacl",
5328 "set_token_default_dacl",
5329 "set_security_object",
5330 "get_security_object",
5331 "get_system_handles",
5333 "set_mailslot_info",
5336 "get_directory_entry",
5344 "allocate_locally_unique_id",
5345 "create_device_manager",
5348 "get_next_device_request",
5349 "get_kernel_object_ptr",
5350 "set_kernel_object_ptr",
5351 "grab_kernel_object",
5352 "release_kernel_object",
5353 "get_kernel_object_handle",
5354 "make_process_system",
5356 "create_linked_token",
5357 "create_completion",
5360 "remove_completion",
5362 "set_completion_info",
5363 "add_fd_completion",
5364 "set_fd_completion_mode",
5368 "get_window_layered_info",
5369 "set_window_layered_info",
5370 "alloc_user_handle",
5373 "get_cursor_history",
5374 "get_rawinput_buffer",
5375 "update_rawinput_devices",
5376 "get_rawinput_devices",
5382 "set_job_completion_port",
5396 { "ABANDONED_WAIT_0", STATUS_ABANDONED_WAIT_0
},
5397 { "ACCESS_DENIED", STATUS_ACCESS_DENIED
},
5398 { "ACCESS_VIOLATION", STATUS_ACCESS_VIOLATION
},
5399 { "ADDRESS_ALREADY_ASSOCIATED", STATUS_ADDRESS_ALREADY_ASSOCIATED
},
5400 { "ALERTED", STATUS_ALERTED
},
5401 { "BAD_DEVICE_TYPE", STATUS_BAD_DEVICE_TYPE
},
5402 { "BAD_IMPERSONATION_LEVEL", STATUS_BAD_IMPERSONATION_LEVEL
},
5403 { "BUFFER_OVERFLOW", STATUS_BUFFER_OVERFLOW
},
5404 { "BUFFER_TOO_SMALL", STATUS_BUFFER_TOO_SMALL
},
5405 { "CANCELLED", STATUS_CANCELLED
},
5406 { "CANNOT_DELETE", STATUS_CANNOT_DELETE
},
5407 { "CANT_OPEN_ANONYMOUS", STATUS_CANT_OPEN_ANONYMOUS
},
5408 { "CHILD_MUST_BE_VOLATILE", STATUS_CHILD_MUST_BE_VOLATILE
},
5409 { "CONNECTION_ABORTED", STATUS_CONNECTION_ABORTED
},
5410 { "CONNECTION_ACTIVE", STATUS_CONNECTION_ACTIVE
},
5411 { "CONNECTION_REFUSED", STATUS_CONNECTION_REFUSED
},
5412 { "CONNECTION_RESET", STATUS_CONNECTION_RESET
},
5413 { "DEBUGGER_INACTIVE", STATUS_DEBUGGER_INACTIVE
},
5414 { "DEVICE_BUSY", STATUS_DEVICE_BUSY
},
5415 { "DEVICE_NOT_READY", STATUS_DEVICE_NOT_READY
},
5416 { "DIRECTORY_NOT_EMPTY", STATUS_DIRECTORY_NOT_EMPTY
},
5417 { "DISK_FULL", STATUS_DISK_FULL
},
5418 { "DLL_NOT_FOUND", STATUS_DLL_NOT_FOUND
},
5419 { "ERROR_CLASS_ALREADY_EXISTS", 0xc0010000 | ERROR_CLASS_ALREADY_EXISTS
},
5420 { "ERROR_CLASS_DOES_NOT_EXIST", 0xc0010000 | ERROR_CLASS_DOES_NOT_EXIST
},
5421 { "ERROR_CLASS_HAS_WINDOWS", 0xc0010000 | ERROR_CLASS_HAS_WINDOWS
},
5422 { "ERROR_CLIPBOARD_NOT_OPEN", 0xc0010000 | ERROR_CLIPBOARD_NOT_OPEN
},
5423 { "ERROR_HOTKEY_ALREADY_REGISTERED", 0xc0010000 | ERROR_HOTKEY_ALREADY_REGISTERED
},
5424 { "ERROR_HOTKEY_NOT_REGISTERED", 0xc0010000 | ERROR_HOTKEY_NOT_REGISTERED
},
5425 { "ERROR_INVALID_CURSOR_HANDLE", 0xc0010000 | ERROR_INVALID_CURSOR_HANDLE
},
5426 { "ERROR_INVALID_INDEX", 0xc0010000 | ERROR_INVALID_INDEX
},
5427 { "ERROR_INVALID_WINDOW_HANDLE", 0xc0010000 | ERROR_INVALID_WINDOW_HANDLE
},
5428 { "ERROR_NO_MORE_USER_HANDLES", 0xc0010000 | ERROR_NO_MORE_USER_HANDLES
},
5429 { "ERROR_WINDOW_OF_OTHER_THREAD", 0xc0010000 | ERROR_WINDOW_OF_OTHER_THREAD
},
5430 { "FILE_DELETED", STATUS_FILE_DELETED
},
5431 { "FILE_INVALID", STATUS_FILE_INVALID
},
5432 { "FILE_IS_A_DIRECTORY", STATUS_FILE_IS_A_DIRECTORY
},
5433 { "FILE_LOCK_CONFLICT", STATUS_FILE_LOCK_CONFLICT
},
5434 { "GENERIC_NOT_MAPPED", STATUS_GENERIC_NOT_MAPPED
},
5435 { "HANDLES_CLOSED", STATUS_HANDLES_CLOSED
},
5436 { "HANDLE_NOT_CLOSABLE", STATUS_HANDLE_NOT_CLOSABLE
},
5437 { "HOST_UNREACHABLE", STATUS_HOST_UNREACHABLE
},
5438 { "ILLEGAL_FUNCTION", STATUS_ILLEGAL_FUNCTION
},
5439 { "IMAGE_NOT_AT_BASE", STATUS_IMAGE_NOT_AT_BASE
},
5440 { "INFO_LENGTH_MISMATCH", STATUS_INFO_LENGTH_MISMATCH
},
5441 { "INSTANCE_NOT_AVAILABLE", STATUS_INSTANCE_NOT_AVAILABLE
},
5442 { "INSUFFICIENT_RESOURCES", STATUS_INSUFFICIENT_RESOURCES
},
5443 { "INVALID_ADDRESS", STATUS_INVALID_ADDRESS
},
5444 { "INVALID_ADDRESS_COMPONENT", STATUS_INVALID_ADDRESS_COMPONENT
},
5445 { "INVALID_CID", STATUS_INVALID_CID
},
5446 { "INVALID_CONNECTION", STATUS_INVALID_CONNECTION
},
5447 { "INVALID_DEVICE_REQUEST", STATUS_INVALID_DEVICE_REQUEST
},
5448 { "INVALID_FILE_FOR_SECTION", STATUS_INVALID_FILE_FOR_SECTION
},
5449 { "INVALID_HANDLE", STATUS_INVALID_HANDLE
},
5450 { "INVALID_IMAGE_FORMAT", STATUS_INVALID_IMAGE_FORMAT
},
5451 { "INVALID_IMAGE_NE_FORMAT", STATUS_INVALID_IMAGE_NE_FORMAT
},
5452 { "INVALID_IMAGE_NOT_MZ", STATUS_INVALID_IMAGE_NOT_MZ
},
5453 { "INVALID_IMAGE_PROTECT", STATUS_INVALID_IMAGE_PROTECT
},
5454 { "INVALID_IMAGE_WIN_16", STATUS_INVALID_IMAGE_WIN_16
},
5455 { "INVALID_IMAGE_WIN_64", STATUS_INVALID_IMAGE_WIN_64
},
5456 { "INVALID_LOCK_SEQUENCE", STATUS_INVALID_LOCK_SEQUENCE
},
5457 { "INVALID_OWNER", STATUS_INVALID_OWNER
},
5458 { "INVALID_PARAMETER", STATUS_INVALID_PARAMETER
},
5459 { "INVALID_PIPE_STATE", STATUS_INVALID_PIPE_STATE
},
5460 { "INVALID_READ_MODE", STATUS_INVALID_READ_MODE
},
5461 { "INVALID_SECURITY_DESCR", STATUS_INVALID_SECURITY_DESCR
},
5462 { "IO_TIMEOUT", STATUS_IO_TIMEOUT
},
5463 { "KERNEL_APC", STATUS_KERNEL_APC
},
5464 { "KEY_DELETED", STATUS_KEY_DELETED
},
5465 { "MAPPED_FILE_SIZE_ZERO", STATUS_MAPPED_FILE_SIZE_ZERO
},
5466 { "MUTANT_NOT_OWNED", STATUS_MUTANT_NOT_OWNED
},
5467 { "NAME_TOO_LONG", STATUS_NAME_TOO_LONG
},
5468 { "NETWORK_BUSY", STATUS_NETWORK_BUSY
},
5469 { "NETWORK_UNREACHABLE", STATUS_NETWORK_UNREACHABLE
},
5470 { "NOT_ALL_ASSIGNED", STATUS_NOT_ALL_ASSIGNED
},
5471 { "NOT_A_DIRECTORY", STATUS_NOT_A_DIRECTORY
},
5472 { "NOT_FOUND", STATUS_NOT_FOUND
},
5473 { "NOT_IMPLEMENTED", STATUS_NOT_IMPLEMENTED
},
5474 { "NOT_MAPPED_VIEW", STATUS_NOT_MAPPED_VIEW
},
5475 { "NOT_REGISTRY_FILE", STATUS_NOT_REGISTRY_FILE
},
5476 { "NOT_SAME_DEVICE", STATUS_NOT_SAME_DEVICE
},
5477 { "NOT_SUPPORTED", STATUS_NOT_SUPPORTED
},
5478 { "NO_DATA_DETECTED", STATUS_NO_DATA_DETECTED
},
5479 { "NO_IMPERSONATION_TOKEN", STATUS_NO_IMPERSONATION_TOKEN
},
5480 { "NO_MEMORY", STATUS_NO_MEMORY
},
5481 { "NO_MORE_ENTRIES", STATUS_NO_MORE_ENTRIES
},
5482 { "NO_SUCH_DEVICE", STATUS_NO_SUCH_DEVICE
},
5483 { "NO_SUCH_FILE", STATUS_NO_SUCH_FILE
},
5484 { "NO_TOKEN", STATUS_NO_TOKEN
},
5485 { "OBJECT_NAME_COLLISION", STATUS_OBJECT_NAME_COLLISION
},
5486 { "OBJECT_NAME_EXISTS", STATUS_OBJECT_NAME_EXISTS
},
5487 { "OBJECT_NAME_INVALID", STATUS_OBJECT_NAME_INVALID
},
5488 { "OBJECT_NAME_NOT_FOUND", STATUS_OBJECT_NAME_NOT_FOUND
},
5489 { "OBJECT_PATH_INVALID", STATUS_OBJECT_PATH_INVALID
},
5490 { "OBJECT_PATH_NOT_FOUND", STATUS_OBJECT_PATH_NOT_FOUND
},
5491 { "OBJECT_PATH_SYNTAX_BAD", STATUS_OBJECT_PATH_SYNTAX_BAD
},
5492 { "OBJECT_TYPE_MISMATCH", STATUS_OBJECT_TYPE_MISMATCH
},
5493 { "PENDING", STATUS_PENDING
},
5494 { "PIPE_BROKEN", STATUS_PIPE_BROKEN
},
5495 { "PIPE_BUSY", STATUS_PIPE_BUSY
},
5496 { "PIPE_CLOSING", STATUS_PIPE_CLOSING
},
5497 { "PIPE_CONNECTED", STATUS_PIPE_CONNECTED
},
5498 { "PIPE_DISCONNECTED", STATUS_PIPE_DISCONNECTED
},
5499 { "PIPE_EMPTY", STATUS_PIPE_EMPTY
},
5500 { "PIPE_LISTENING", STATUS_PIPE_LISTENING
},
5501 { "PIPE_NOT_AVAILABLE", STATUS_PIPE_NOT_AVAILABLE
},
5502 { "PORT_NOT_SET", STATUS_PORT_NOT_SET
},
5503 { "PREDEFINED_HANDLE", STATUS_PREDEFINED_HANDLE
},
5504 { "PRIVILEGE_NOT_HELD", STATUS_PRIVILEGE_NOT_HELD
},
5505 { "PROCESS_IN_JOB", STATUS_PROCESS_IN_JOB
},
5506 { "PROCESS_IS_TERMINATING", STATUS_PROCESS_IS_TERMINATING
},
5507 { "PROCESS_NOT_IN_JOB", STATUS_PROCESS_NOT_IN_JOB
},
5508 { "REPARSE_POINT_NOT_RESOLVED", STATUS_REPARSE_POINT_NOT_RESOLVED
},
5509 { "SECTION_TOO_BIG", STATUS_SECTION_TOO_BIG
},
5510 { "SEMAPHORE_LIMIT_EXCEEDED", STATUS_SEMAPHORE_LIMIT_EXCEEDED
},
5511 { "SHARING_VIOLATION", STATUS_SHARING_VIOLATION
},
5512 { "SHUTDOWN_IN_PROGRESS", STATUS_SHUTDOWN_IN_PROGRESS
},
5513 { "SUSPEND_COUNT_EXCEEDED", STATUS_SUSPEND_COUNT_EXCEEDED
},
5514 { "THREAD_IS_TERMINATING", STATUS_THREAD_IS_TERMINATING
},
5515 { "TIMEOUT", STATUS_TIMEOUT
},
5516 { "TOO_MANY_OPENED_FILES", STATUS_TOO_MANY_OPENED_FILES
},
5517 { "UNSUCCESSFUL", STATUS_UNSUCCESSFUL
},
5518 { "USER_APC", STATUS_USER_APC
},
5519 { "USER_MAPPED_FILE", STATUS_USER_MAPPED_FILE
},
5520 { "VOLUME_DISMOUNTED", STATUS_VOLUME_DISMOUNTED
},
5521 { "WAS_LOCKED", STATUS_WAS_LOCKED
},
5522 { "WSAEACCES", 0xc0010000 | WSAEACCES
},
5523 { "WSAEADDRINUSE", 0xc0010000 | WSAEADDRINUSE
},
5524 { "WSAEADDRNOTAVAIL", 0xc0010000 | WSAEADDRNOTAVAIL
},
5525 { "WSAEAFNOSUPPORT", 0xc0010000 | WSAEAFNOSUPPORT
},
5526 { "WSAEALREADY", 0xc0010000 | WSAEALREADY
},
5527 { "WSAEBADF", 0xc0010000 | WSAEBADF
},
5528 { "WSAECONNABORTED", 0xc0010000 | WSAECONNABORTED
},
5529 { "WSAECONNREFUSED", 0xc0010000 | WSAECONNREFUSED
},
5530 { "WSAECONNRESET", 0xc0010000 | WSAECONNRESET
},
5531 { "WSAEDESTADDRREQ", 0xc0010000 | WSAEDESTADDRREQ
},
5532 { "WSAEDQUOT", 0xc0010000 | WSAEDQUOT
},
5533 { "WSAEFAULT", 0xc0010000 | WSAEFAULT
},
5534 { "WSAEHOSTDOWN", 0xc0010000 | WSAEHOSTDOWN
},
5535 { "WSAEHOSTUNREACH", 0xc0010000 | WSAEHOSTUNREACH
},
5536 { "WSAEINTR", 0xc0010000 | WSAEINTR
},
5537 { "WSAEINVAL", 0xc0010000 | WSAEINVAL
},
5538 { "WSAEISCONN", 0xc0010000 | WSAEISCONN
},
5539 { "WSAELOOP", 0xc0010000 | WSAELOOP
},
5540 { "WSAEMFILE", 0xc0010000 | WSAEMFILE
},
5541 { "WSAEMSGSIZE", 0xc0010000 | WSAEMSGSIZE
},
5542 { "WSAENAMETOOLONG", 0xc0010000 | WSAENAMETOOLONG
},
5543 { "WSAENETDOWN", 0xc0010000 | WSAENETDOWN
},
5544 { "WSAENETRESET", 0xc0010000 | WSAENETRESET
},
5545 { "WSAENETUNREACH", 0xc0010000 | WSAENETUNREACH
},
5546 { "WSAENOBUFS", 0xc0010000 | WSAENOBUFS
},
5547 { "WSAENOPROTOOPT", 0xc0010000 | WSAENOPROTOOPT
},
5548 { "WSAENOTCONN", 0xc0010000 | WSAENOTCONN
},
5549 { "WSAENOTEMPTY", 0xc0010000 | WSAENOTEMPTY
},
5550 { "WSAENOTSOCK", 0xc0010000 | WSAENOTSOCK
},
5551 { "WSAEOPNOTSUPP", 0xc0010000 | WSAEOPNOTSUPP
},
5552 { "WSAEPFNOSUPPORT", 0xc0010000 | WSAEPFNOSUPPORT
},
5553 { "WSAEPROCLIM", 0xc0010000 | WSAEPROCLIM
},
5554 { "WSAEPROTONOSUPPORT", 0xc0010000 | WSAEPROTONOSUPPORT
},
5555 { "WSAEPROTOTYPE", 0xc0010000 | WSAEPROTOTYPE
},
5556 { "WSAEREMOTE", 0xc0010000 | WSAEREMOTE
},
5557 { "WSAESHUTDOWN", 0xc0010000 | WSAESHUTDOWN
},
5558 { "WSAESOCKTNOSUPPORT", 0xc0010000 | WSAESOCKTNOSUPPORT
},
5559 { "WSAESTALE", 0xc0010000 | WSAESTALE
},
5560 { "WSAETIMEDOUT", 0xc0010000 | WSAETIMEDOUT
},
5561 { "WSAETOOMANYREFS", 0xc0010000 | WSAETOOMANYREFS
},
5562 { "WSAEUSERS", 0xc0010000 | WSAEUSERS
},
5563 { "WSAEWOULDBLOCK", 0xc0010000 | WSAEWOULDBLOCK
},
5567 /* ### make_requests end ### */
5568 /* Everything above this line is generated automatically by tools/make_requests */
5570 static const char *get_status_name( unsigned int status
)
5573 static char buffer
[10];
5577 for (i
= 0; status_names
[i
].name
; i
++)
5578 if (status_names
[i
].value
== status
) return status_names
[i
].name
;
5580 sprintf( buffer
, "%x", status
);
5584 void trace_request(void)
5586 enum request req
= current
->req
.request_header
.req
;
5587 if (req
< REQ_NB_REQUESTS
)
5589 fprintf( stderr
, "%04x: %s(", current
->id
, req_names
[req
] );
5590 if (req_dumpers
[req
])
5592 cur_data
= get_req_data();
5593 cur_size
= get_req_data_size();
5594 req_dumpers
[req
]( ¤t
->req
);
5596 fprintf( stderr
, " )\n" );
5598 else fprintf( stderr
, "%04x: %d(?)\n", current
->id
, req
);
5601 void trace_reply( enum request req
, const union generic_reply
*reply
)
5603 if (req
< REQ_NB_REQUESTS
)
5605 fprintf( stderr
, "%04x: %s() = %s",
5606 current
->id
, req_names
[req
], get_status_name(current
->error
) );
5607 if (reply_dumpers
[req
])
5609 fprintf( stderr
, " {" );
5610 cur_data
= current
->reply_data
;
5611 cur_size
= reply
->reply_header
.reply_size
;
5612 reply_dumpers
[req
]( reply
);
5613 fprintf( stderr
, " }" );
5615 fputc( '\n', stderr
);
5617 else fprintf( stderr
, "%04x: %d() = %s\n",
5618 current
->id
, req
, get_status_name(current
->error
) );