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
22 #include "wine/port.h"
27 #include <sys/types.h>
34 #define WIN32_NO_STATUS
41 #include "wine/condrv.h"
43 #include "ddk/ntddser.h"
50 static const void *cur_data
;
51 static data_size_t cur_size
;
53 static const char *get_status_name( unsigned int status
);
55 /* utility functions */
57 static inline void remove_data( data_size_t size
)
59 cur_data
= (const char *)cur_data
+ size
;
63 static void dump_uints( const char *prefix
, const unsigned int *ptr
, int len
)
65 fprintf( stderr
, "%s{", prefix
);
68 fprintf( stderr
, "%08x", *ptr
++ );
69 if (--len
) fputc( ',', stderr
);
74 static void dump_handles( const char *prefix
, const obj_handle_t
*data
, data_size_t size
)
76 data_size_t len
= size
/ sizeof(*data
);
78 fprintf( stderr
,"%s{", prefix
);
81 fprintf( stderr
, "%04x", *data
++ );
82 if (--len
) fputc( ',', stderr
);
87 static void dump_timeout( const char *prefix
, const timeout_t
*time
)
89 fprintf( stderr
, "%s%s", prefix
, get_timeout_str(*time
) );
92 static void dump_abstime( const char *prefix
, const abstime_t
*when
)
94 timeout_t timeout
= abstime_to_timeout( *when
);
95 dump_timeout( prefix
, &timeout
);
98 static void dump_uint64( const char *prefix
, const unsigned __int64
*val
)
100 if ((unsigned int)*val
!= *val
)
101 fprintf( stderr
, "%s%x%08x", prefix
, (unsigned int)(*val
>> 32), (unsigned int)*val
);
103 fprintf( stderr
, "%s%08x", prefix
, (unsigned int)*val
);
106 static void dump_rectangle( const char *prefix
, const rectangle_t
*rect
)
108 fprintf( stderr
, "%s{%d,%d;%d,%d}", prefix
,
109 rect
->left
, rect
->top
, rect
->right
, rect
->bottom
);
112 static void dump_ioctl_code( const char *prefix
, const ioctl_code_t
*code
)
116 #define CASE(c) case c: fprintf( stderr, "%s%s", prefix, #c ); break
117 CASE(IOCTL_CONDRV_ACTIVATE
);
118 CASE(IOCTL_CONDRV_BIND_PID
);
119 CASE(IOCTL_CONDRV_CTRL_EVENT
);
120 CASE(IOCTL_CONDRV_FILL_OUTPUT
);
121 CASE(IOCTL_CONDRV_GET_INPUT_INFO
);
122 CASE(IOCTL_CONDRV_GET_MODE
);
123 CASE(IOCTL_CONDRV_GET_OUTPUT_INFO
);
124 CASE(IOCTL_CONDRV_GET_TITLE
);
125 CASE(IOCTL_CONDRV_PEEK
);
126 CASE(IOCTL_CONDRV_READ_CONSOLE
);
127 CASE(IOCTL_CONDRV_READ_INPUT
);
128 CASE(IOCTL_CONDRV_READ_OUTPUT
);
129 CASE(IOCTL_CONDRV_SET_MODE
);
130 CASE(IOCTL_CONDRV_SET_OUTPUT_INFO
);
131 CASE(IOCTL_CONDRV_SETUP_INPUT
);
132 CASE(IOCTL_CONDRV_WRITE_CONSOLE
);
133 CASE(IOCTL_CONDRV_WRITE_INPUT
);
134 CASE(IOCTL_CONDRV_WRITE_OUTPUT
);
135 CASE(FSCTL_DISMOUNT_VOLUME
);
136 CASE(FSCTL_PIPE_DISCONNECT
);
137 CASE(FSCTL_PIPE_LISTEN
);
138 CASE(FSCTL_PIPE_PEEK
);
139 CASE(FSCTL_PIPE_WAIT
);
140 CASE(IOCTL_SERIAL_GET_TIMEOUTS
);
141 CASE(IOCTL_SERIAL_GET_WAIT_MASK
);
142 CASE(IOCTL_SERIAL_SET_TIMEOUTS
);
143 CASE(IOCTL_SERIAL_SET_WAIT_MASK
);
144 CASE(WS_SIO_ADDRESS_LIST_CHANGE
);
145 default: fprintf( stderr
, "%s%08x", prefix
, *code
); break;
150 static void dump_apc_call( const char *prefix
, const apc_call_t
*call
)
152 fprintf( stderr
, "%s{", prefix
);
156 fprintf( stderr
, "APC_NONE" );
159 dump_uint64( "APC_USER,func=", &call
->user
.func
);
160 dump_uint64( ",args={", &call
->user
.args
[0] );
161 dump_uint64( ",", &call
->user
.args
[1] );
162 dump_uint64( ",", &call
->user
.args
[2] );
163 fputc( '}', stderr
);
166 dump_uint64( "APC_ASYNC_IO,user=", &call
->async_io
.user
);
167 dump_uint64( ",sb=", &call
->async_io
.sb
);
168 fprintf( stderr
, ",status=%s", get_status_name(call
->async_io
.status
) );
170 case APC_VIRTUAL_ALLOC
:
171 dump_uint64( "APC_VIRTUAL_ALLOC,addr==", &call
->virtual_alloc
.addr
);
172 dump_uint64( ",size=", &call
->virtual_alloc
.size
);
173 dump_uint64( ",zero_bits=", &call
->virtual_alloc
.zero_bits
);
174 fprintf( stderr
, ",op_type=%x,prot=%x", call
->virtual_alloc
.op_type
, call
->virtual_alloc
.prot
);
176 case APC_VIRTUAL_FREE
:
177 dump_uint64( "APC_VIRTUAL_FREE,addr=", &call
->virtual_free
.addr
);
178 dump_uint64( ",size=", &call
->virtual_free
.size
);
179 fprintf( stderr
, ",op_type=%x", call
->virtual_free
.op_type
);
181 case APC_VIRTUAL_QUERY
:
182 dump_uint64( "APC_VIRTUAL_QUERY,addr=", &call
->virtual_query
.addr
);
184 case APC_VIRTUAL_PROTECT
:
185 dump_uint64( "APC_VIRTUAL_PROTECT,addr=", &call
->virtual_protect
.addr
);
186 dump_uint64( ",size=", &call
->virtual_protect
.size
);
187 fprintf( stderr
, ",prot=%x", call
->virtual_protect
.prot
);
189 case APC_VIRTUAL_FLUSH
:
190 dump_uint64( "APC_VIRTUAL_FLUSH,addr=", &call
->virtual_flush
.addr
);
191 dump_uint64( ",size=", &call
->virtual_flush
.size
);
193 case APC_VIRTUAL_LOCK
:
194 dump_uint64( "APC_VIRTUAL_LOCK,addr=", &call
->virtual_lock
.addr
);
195 dump_uint64( ",size=", &call
->virtual_lock
.size
);
197 case APC_VIRTUAL_UNLOCK
:
198 dump_uint64( "APC_VIRTUAL_UNLOCK,addr=", &call
->virtual_unlock
.addr
);
199 dump_uint64( ",size=", &call
->virtual_unlock
.size
);
202 fprintf( stderr
, "APC_MAP_VIEW,handle=%04x", call
->map_view
.handle
);
203 dump_uint64( ",addr=", &call
->map_view
.addr
);
204 dump_uint64( ",size=", &call
->map_view
.size
);
205 dump_uint64( ",offset=", &call
->map_view
.offset
);
206 dump_uint64( ",zero_bits=", &call
->map_view
.zero_bits
);
207 fprintf( stderr
, ",alloc_type=%x,prot=%x", call
->map_view
.alloc_type
, call
->map_view
.prot
);
210 dump_uint64( "APC_UNMAP_VIEW,addr=", &call
->unmap_view
.addr
);
212 case APC_CREATE_THREAD
:
213 dump_uint64( "APC_CREATE_THREAD,func=", &call
->create_thread
.func
);
214 dump_uint64( ",arg=", &call
->create_thread
.arg
);
215 dump_uint64( ",zero_bits=", &call
->create_thread
.zero_bits
);
216 dump_uint64( ",reserve=", &call
->create_thread
.reserve
);
217 dump_uint64( ",commit=", &call
->create_thread
.commit
);
218 fprintf( stderr
, ",flags=%x", call
->create_thread
.flags
);
221 fprintf( stderr
, "APC_DUP_HANDLE,src_handle=%04x,dst_process=%04x,access=%x,attributes=%x,options=%x",
222 call
->dup_handle
.src_handle
, call
->dup_handle
.dst_process
, call
->dup_handle
.access
,
223 call
->dup_handle
.attributes
, call
->dup_handle
.options
);
225 case APC_BREAK_PROCESS
:
226 fprintf( stderr
, "APC_BREAK_PROCESS" );
229 fprintf( stderr
, "type=%u", call
->type
);
232 fputc( '}', stderr
);
235 static void dump_apc_result( const char *prefix
, const apc_result_t
*result
)
237 fprintf( stderr
, "%s{", prefix
);
243 fprintf( stderr
, "APC_ASYNC_IO,status=%s,total=%u",
244 get_status_name( result
->async_io
.status
), result
->async_io
.total
);
246 case APC_VIRTUAL_ALLOC
:
247 fprintf( stderr
, "APC_VIRTUAL_ALLOC,status=%s",
248 get_status_name( result
->virtual_alloc
.status
));
249 dump_uint64( ",addr=", &result
->virtual_alloc
.addr
);
250 dump_uint64( ",size=", &result
->virtual_alloc
.size
);
252 case APC_VIRTUAL_FREE
:
253 fprintf( stderr
, "APC_VIRTUAL_FREE,status=%s",
254 get_status_name( result
->virtual_free
.status
));
255 dump_uint64( ",addr=", &result
->virtual_free
.addr
);
256 dump_uint64( ",size=", &result
->virtual_free
.size
);
258 case APC_VIRTUAL_QUERY
:
259 fprintf( stderr
, "APC_VIRTUAL_QUERY,status=%s",
260 get_status_name( result
->virtual_query
.status
));
261 dump_uint64( ",base=", &result
->virtual_query
.base
);
262 dump_uint64( ",alloc_base=", &result
->virtual_query
.alloc_base
);
263 dump_uint64( ",size=", &result
->virtual_query
.size
);
264 fprintf( stderr
, ",state=%x,prot=%x,alloc_prot=%x,alloc_type=%x",
265 result
->virtual_query
.state
, result
->virtual_query
.prot
,
266 result
->virtual_query
.alloc_prot
, result
->virtual_query
.alloc_type
);
268 case APC_VIRTUAL_PROTECT
:
269 fprintf( stderr
, "APC_VIRTUAL_PROTECT,status=%s",
270 get_status_name( result
->virtual_protect
.status
));
271 dump_uint64( ",addr=", &result
->virtual_protect
.addr
);
272 dump_uint64( ",size=", &result
->virtual_protect
.size
);
273 fprintf( stderr
, ",prot=%x", result
->virtual_protect
.prot
);
275 case APC_VIRTUAL_FLUSH
:
276 fprintf( stderr
, "APC_VIRTUAL_FLUSH,status=%s",
277 get_status_name( result
->virtual_flush
.status
));
278 dump_uint64( ",addr=", &result
->virtual_flush
.addr
);
279 dump_uint64( ",size=", &result
->virtual_flush
.size
);
281 case APC_VIRTUAL_LOCK
:
282 fprintf( stderr
, "APC_VIRTUAL_LOCK,status=%s",
283 get_status_name( result
->virtual_lock
.status
));
284 dump_uint64( ",addr=", &result
->virtual_lock
.addr
);
285 dump_uint64( ",size=", &result
->virtual_lock
.size
);
287 case APC_VIRTUAL_UNLOCK
:
288 fprintf( stderr
, "APC_VIRTUAL_UNLOCK,status=%s",
289 get_status_name( result
->virtual_unlock
.status
));
290 dump_uint64( ",addr=", &result
->virtual_unlock
.addr
);
291 dump_uint64( ",size=", &result
->virtual_unlock
.size
);
294 fprintf( stderr
, "APC_MAP_VIEW,status=%s",
295 get_status_name( result
->map_view
.status
));
296 dump_uint64( ",addr=", &result
->map_view
.addr
);
297 dump_uint64( ",size=", &result
->map_view
.size
);
300 fprintf( stderr
, "APC_UNMAP_VIEW,status=%s",
301 get_status_name( result
->unmap_view
.status
) );
303 case APC_CREATE_THREAD
:
304 fprintf( stderr
, "APC_CREATE_THREAD,status=%s,pid=%04x,tid=%04x,handle=%04x",
305 get_status_name( result
->create_thread
.status
),
306 result
->create_thread
.pid
, result
->create_thread
.tid
, result
->create_thread
.handle
);
309 fprintf( stderr
, "APC_DUP_HANDLE,status=%s,handle=%04x",
310 get_status_name( result
->dup_handle
.status
), result
->dup_handle
.handle
);
312 case APC_BREAK_PROCESS
:
313 fprintf( stderr
, "APC_BREAK_PROCESS,status=%s", get_status_name( result
->break_process
.status
) );
316 fprintf( stderr
, "type=%u", result
->type
);
319 fputc( '}', stderr
);
322 static void dump_async_data( const char *prefix
, const async_data_t
*data
)
324 fprintf( stderr
, "%s{handle=%04x,event=%04x", prefix
, data
->handle
, data
->event
);
325 dump_uint64( ",iosb=", &data
->iosb
);
326 dump_uint64( ",user=", &data
->user
);
327 dump_uint64( ",apc=", &data
->apc
);
328 dump_uint64( ",apc_context=", &data
->apc_context
);
329 fputc( '}', stderr
);
332 static void dump_irp_params( const char *prefix
, const irp_params_t
*data
)
337 fprintf( stderr
, "%s{NONE}", prefix
);
339 case IRP_CALL_CREATE
:
340 fprintf( stderr
, "%s{CREATE,access=%08x,sharing=%08x,options=%08x",
341 prefix
, data
->create
.access
, data
->create
.sharing
, data
->create
.options
);
342 dump_uint64( ",device=", &data
->create
.device
);
343 fprintf( stderr
, ",file=%08x}", data
->create
.file
);
346 fprintf( stderr
, "%s{CLOSE", prefix
);
347 dump_uint64( ",file=", &data
->close
.file
);
348 fputc( '}', stderr
);
351 fprintf( stderr
, "%s{READ,key=%08x,out_size=%u", prefix
, data
->read
.key
,
352 data
->read
.out_size
);
353 dump_uint64( ",pos=", &data
->read
.pos
);
354 dump_uint64( ",file=", &data
->read
.file
);
355 fputc( '}', stderr
);
358 fprintf( stderr
, "%s{WRITE,key=%08x", prefix
, data
->write
.key
);
359 dump_uint64( ",pos=", &data
->write
.pos
);
360 dump_uint64( ",file=", &data
->write
.file
);
361 fputc( '}', stderr
);
364 fprintf( stderr
, "%s{FLUSH", prefix
);
365 dump_uint64( ",file=", &data
->flush
.file
);
366 fputc( '}', stderr
);
369 fprintf( stderr
, "%s{IOCTL", prefix
);
370 dump_ioctl_code( ",code=", &data
->ioctl
.code
);
371 fprintf( stderr
, ",out_size=%u", data
->ioctl
.out_size
);
372 dump_uint64( ",file=", &data
->ioctl
.file
);
373 fputc( '}', stderr
);
375 case IRP_CALL_VOLUME
:
376 fprintf( stderr
, "%s{VOLUME,class=%u,out_size=%u", prefix
,
377 data
->volume
.info_class
, data
->volume
.out_size
);
378 dump_uint64( ",file=", &data
->volume
.file
);
379 fputc( '}', stderr
);
382 fprintf( stderr
, "%s{FREE", prefix
);
383 dump_uint64( ",obj=", &data
->free
.obj
);
384 fputc( '}', stderr
);
386 case IRP_CALL_CANCEL
:
387 fprintf( stderr
, "%s{CANCEL", prefix
);
388 dump_uint64( ",irp=", &data
->cancel
.irp
);
389 fputc( '}', stderr
);
394 static void dump_rawinput( const char *prefix
, const union rawinput
*rawinput
)
396 switch (rawinput
->type
)
399 fprintf( stderr
, "%s{type=MOUSE,x=%d,y=%d,data=%08x}", prefix
, rawinput
->mouse
.x
,
400 rawinput
->mouse
.y
, rawinput
->mouse
.data
);
402 case RIM_TYPEKEYBOARD
:
403 fprintf( stderr
, "%s{type=KEYBOARD,message=%04x,vkey=%04hx,scan=%04hx}", prefix
,
404 rawinput
->kbd
.message
, rawinput
->kbd
.vkey
, rawinput
->kbd
.scan
);
407 fprintf( stderr
, "%s{type=HID,device=%04x,param=%04x,page=%04hx,usage=%04hx,count=%u,length=%u}",
408 prefix
, rawinput
->hid
.device
, rawinput
->hid
.param
, rawinput
->hid
.usage_page
,
409 rawinput
->hid
.usage
, rawinput
->hid
.count
, rawinput
->hid
.length
);
412 fprintf( stderr
, "%s{type=%04x}", prefix
, rawinput
->type
);
417 static void dump_hw_input( const char *prefix
, const hw_input_t
*input
)
422 fprintf( stderr
, "%s{type=MOUSE,x=%d,y=%d,data=%08x,flags=%08x,time=%u",
423 prefix
, input
->mouse
.x
, input
->mouse
.y
, input
->mouse
.data
, input
->mouse
.flags
,
425 dump_uint64( ",info=", &input
->mouse
.info
);
426 fputc( '}', stderr
);
429 fprintf( stderr
, "%s{type=KEYBOARD,vkey=%04hx,scan=%04hx,flags=%08x,time=%u",
430 prefix
, input
->kbd
.vkey
, input
->kbd
.scan
, input
->kbd
.flags
, input
->kbd
.time
);
431 dump_uint64( ",info=", &input
->kbd
.info
);
432 fputc( '}', stderr
);
435 fprintf( stderr
, "%s{type=HARDWARE,msg=%04x", prefix
, input
->hw
.msg
);
436 dump_uint64( ",lparam=", &input
->hw
.lparam
);
437 switch (input
->hw
.msg
)
440 case WM_INPUT_DEVICE_CHANGE
:
441 dump_rawinput( ",rawinput=", &input
->hw
.rawinput
);
443 fputc( '}', stderr
);
446 fprintf( stderr
, "%s{type=%04x}", prefix
, input
->type
);
451 static void dump_luid( const char *prefix
, const luid_t
*luid
)
453 fprintf( stderr
, "%s%d.%u", prefix
, luid
->high_part
, luid
->low_part
);
456 static void dump_generic_map( const char *prefix
, const generic_map_t
*map
)
458 fprintf( stderr
, "%s{r=%08x,w=%08x,x=%08x,a=%08x}",
459 prefix
, map
->read
, map
->write
, map
->exec
, map
->all
);
462 static void dump_varargs_ints( const char *prefix
, data_size_t size
)
464 const int *data
= cur_data
;
465 data_size_t len
= size
/ sizeof(*data
);
467 fprintf( stderr
,"%s{", prefix
);
470 fprintf( stderr
, "%d", *data
++ );
471 if (--len
) fputc( ',', stderr
);
473 fputc( '}', stderr
);
477 static void dump_varargs_uints( const char *prefix
, data_size_t size
)
479 const unsigned int *data
= cur_data
;
481 dump_uints( prefix
, data
, size
/ sizeof(*data
) );
485 static void dump_varargs_uints64( const char *prefix
, data_size_t size
)
487 const unsigned __int64
*data
= cur_data
;
488 data_size_t len
= size
/ sizeof(*data
);
490 fprintf( stderr
,"%s{", prefix
);
493 dump_uint64( "", data
++ );
494 if (--len
) fputc( ',', stderr
);
496 fputc( '}', stderr
);
500 static void dump_varargs_ushorts( const char *prefix
, data_size_t size
)
502 const unsigned short *data
= cur_data
;
503 data_size_t len
= size
/ sizeof(*data
);
505 fprintf( stderr
, "%s{", prefix
);
508 fprintf( stderr
, "%04x", *data
++ );
509 if (--len
) fputc( ',', stderr
);
511 fputc( '}', stderr
);
515 static void dump_varargs_apc_result( const char *prefix
, data_size_t size
)
517 const apc_result_t
*result
= cur_data
;
519 if (size
>= sizeof(*result
))
521 dump_apc_result( prefix
, result
);
522 size
= sizeof(*result
);
527 static void dump_varargs_select_op( const char *prefix
, data_size_t size
)
533 fprintf( stderr
, "%s{}", prefix
);
536 memset( &data
, 0, sizeof(data
) );
537 memcpy( &data
, cur_data
, min( size
, sizeof(data
) ));
539 fprintf( stderr
, "%s{", prefix
);
543 fprintf( stderr
, "NONE" );
546 case SELECT_WAIT_ALL
:
547 fprintf( stderr
, "%s", data
.op
== SELECT_WAIT
? "WAIT" : "WAIT_ALL" );
548 if (size
> offsetof( select_op_t
, wait
.handles
))
549 dump_handles( ",handles=", data
.wait
.handles
,
550 min( size
, sizeof(data
.wait
) ) - offsetof( select_op_t
, wait
.handles
));
552 case SELECT_SIGNAL_AND_WAIT
:
553 fprintf( stderr
, "SIGNAL_AND_WAIT,signal=%04x,wait=%04x",
554 data
.signal_and_wait
.signal
, data
.signal_and_wait
.wait
);
556 case SELECT_KEYED_EVENT_WAIT
:
557 case SELECT_KEYED_EVENT_RELEASE
:
558 fprintf( stderr
, "KEYED_EVENT_%s,handle=%04x",
559 data
.op
== SELECT_KEYED_EVENT_WAIT
? "WAIT" : "RELEASE",
560 data
.keyed_event
.handle
);
561 dump_uint64( ",key=", &data
.keyed_event
.key
);
564 fprintf( stderr
, "op=%u", data
.op
);
567 fputc( '}', stderr
);
571 static void dump_varargs_user_handles( const char *prefix
, data_size_t size
)
573 const user_handle_t
*data
= cur_data
;
574 data_size_t len
= size
/ sizeof(*data
);
576 fprintf( stderr
,"%s{", prefix
);
579 fprintf( stderr
, "%08x", *data
++ );
580 if (--len
) fputc( ',', stderr
);
582 fputc( '}', stderr
);
586 static void dump_varargs_bytes( const char *prefix
, data_size_t size
)
588 const unsigned char *data
= cur_data
;
589 data_size_t len
= min( 1024, size
);
591 fprintf( stderr
,"%s{", prefix
);
594 fprintf( stderr
, "%02x", *data
++ );
595 if (--len
) fputc( ',', stderr
);
597 if (size
> 1024) fprintf( stderr
, "...(total %u)", size
);
598 fputc( '}', stderr
);
602 static void dump_varargs_string( const char *prefix
, data_size_t size
)
604 fprintf( stderr
, "%s\"%.*s\"", prefix
, (int)size
, (const char *)cur_data
);
608 static void dump_varargs_unicode_str( const char *prefix
, data_size_t size
)
610 fprintf( stderr
, "%sL\"", prefix
);
611 dump_strW( cur_data
, size
, stderr
, "\"\"" );
612 fputc( '\"', stderr
);
616 static void dump_varargs_context( const char *prefix
, data_size_t size
)
618 const context_t
*context
= cur_data
;
624 fprintf( stderr
, "%s{}", prefix
);
627 size
= min( size
, sizeof(ctx
) );
628 memset( &ctx
, 0, sizeof(ctx
) );
629 memcpy( &ctx
, context
, size
);
633 case IMAGE_FILE_MACHINE_I386
:
634 fprintf( stderr
, "%s{machine=i386", prefix
);
635 if (ctx
.flags
& SERVER_CTX_CONTROL
)
636 fprintf( stderr
, ",eip=%08x,esp=%08x,ebp=%08x,eflags=%08x,cs=%04x,ss=%04x",
637 ctx
.ctl
.i386_regs
.eip
, ctx
.ctl
.i386_regs
.esp
, ctx
.ctl
.i386_regs
.ebp
,
638 ctx
.ctl
.i386_regs
.eflags
, ctx
.ctl
.i386_regs
.cs
, ctx
.ctl
.i386_regs
.ss
);
639 if (ctx
.flags
& SERVER_CTX_SEGMENTS
)
640 fprintf( stderr
, ",ds=%04x,es=%04x,fs=%04x,gs=%04x",
641 ctx
.seg
.i386_regs
.ds
, ctx
.seg
.i386_regs
.es
,
642 ctx
.seg
.i386_regs
.fs
, ctx
.seg
.i386_regs
.gs
);
643 if (ctx
.flags
& SERVER_CTX_INTEGER
)
644 fprintf( stderr
, ",eax=%08x,ebx=%08x,ecx=%08x,edx=%08x,esi=%08x,edi=%08x",
645 ctx
.integer
.i386_regs
.eax
, ctx
.integer
.i386_regs
.ebx
, ctx
.integer
.i386_regs
.ecx
,
646 ctx
.integer
.i386_regs
.edx
, ctx
.integer
.i386_regs
.esi
, ctx
.integer
.i386_regs
.edi
);
647 if (ctx
.flags
& SERVER_CTX_DEBUG_REGISTERS
)
648 fprintf( stderr
, ",dr0=%08x,dr1=%08x,dr2=%08x,dr3=%08x,dr6=%08x,dr7=%08x",
649 ctx
.debug
.i386_regs
.dr0
, ctx
.debug
.i386_regs
.dr1
, ctx
.debug
.i386_regs
.dr2
,
650 ctx
.debug
.i386_regs
.dr3
, ctx
.debug
.i386_regs
.dr6
, ctx
.debug
.i386_regs
.dr7
);
651 if (ctx
.flags
& SERVER_CTX_FLOATING_POINT
)
653 fprintf( stderr
, ",fp.ctrl=%08x,fp.status=%08x,fp.tag=%08x,fp.err_off=%08x,fp.err_sel=%08x",
654 ctx
.fp
.i386_regs
.ctrl
, ctx
.fp
.i386_regs
.status
, ctx
.fp
.i386_regs
.tag
,
655 ctx
.fp
.i386_regs
.err_off
, ctx
.fp
.i386_regs
.err_sel
);
656 fprintf( stderr
, ",fp.data_off=%08x,fp.data_sel=%08x,fp.cr0npx=%08x",
657 ctx
.fp
.i386_regs
.data_off
, ctx
.fp
.i386_regs
.data_sel
, ctx
.fp
.i386_regs
.cr0npx
);
658 for (i
= 0; i
< 8; i
++)
661 memcpy( ®
, &ctx
.fp
.i386_regs
.regs
[10 * i
], 10 );
662 fprintf( stderr
, ",fp.reg%u=%Lg", i
, reg
);
665 if (ctx
.flags
& SERVER_CTX_EXTENDED_REGISTERS
)
666 dump_uints( ",extended=", (const unsigned int *)ctx
.ext
.i386_regs
,
667 sizeof(ctx
.ext
.i386_regs
) / sizeof(int) );
668 if (ctx
.flags
& SERVER_CTX_YMM_REGISTERS
)
669 dump_uints( ",ymm_high=", (const unsigned int *)ctx
.ymm
.ymm_high_regs
.ymm_high
,
670 sizeof(ctx
.ymm
.ymm_high_regs
) / sizeof(int) );
672 case IMAGE_FILE_MACHINE_AMD64
:
673 fprintf( stderr
, "%s{machine=x86_64", prefix
);
674 if (ctx
.flags
& SERVER_CTX_CONTROL
)
676 dump_uint64( ",rip=", &ctx
.ctl
.x86_64_regs
.rip
);
677 dump_uint64( ",rbp=", &ctx
.ctl
.x86_64_regs
.rbp
);
678 dump_uint64( ",rsp=", &ctx
.ctl
.x86_64_regs
.rsp
);
679 fprintf( stderr
, ",cs=%04x,ss=%04x,flags=%08x",
680 ctx
.ctl
.x86_64_regs
.cs
, ctx
.ctl
.x86_64_regs
.ss
, ctx
.ctl
.x86_64_regs
.flags
);
682 if (ctx
.flags
& SERVER_CTX_INTEGER
)
684 dump_uint64( ",rax=", &ctx
.integer
.x86_64_regs
.rax
);
685 dump_uint64( ",rbx=", &ctx
.integer
.x86_64_regs
.rbx
);
686 dump_uint64( ",rcx=", &ctx
.integer
.x86_64_regs
.rcx
);
687 dump_uint64( ",rdx=", &ctx
.integer
.x86_64_regs
.rdx
);
688 dump_uint64( ",rsi=", &ctx
.integer
.x86_64_regs
.rsi
);
689 dump_uint64( ",rdi=", &ctx
.integer
.x86_64_regs
.rdi
);
690 dump_uint64( ",r8=", &ctx
.integer
.x86_64_regs
.r8
);
691 dump_uint64( ",r9=", &ctx
.integer
.x86_64_regs
.r9
);
692 dump_uint64( ",r10=", &ctx
.integer
.x86_64_regs
.r10
);
693 dump_uint64( ",r11=", &ctx
.integer
.x86_64_regs
.r11
);
694 dump_uint64( ",r12=", &ctx
.integer
.x86_64_regs
.r12
);
695 dump_uint64( ",r13=", &ctx
.integer
.x86_64_regs
.r13
);
696 dump_uint64( ",r14=", &ctx
.integer
.x86_64_regs
.r14
);
697 dump_uint64( ",r15=", &ctx
.integer
.x86_64_regs
.r15
);
699 if (ctx
.flags
& SERVER_CTX_SEGMENTS
)
700 fprintf( stderr
, ",ds=%04x,es=%04x,fs=%04x,gs=%04x",
701 ctx
.seg
.x86_64_regs
.ds
, ctx
.seg
.x86_64_regs
.es
,
702 ctx
.seg
.x86_64_regs
.fs
, ctx
.seg
.x86_64_regs
.gs
);
703 if (ctx
.flags
& SERVER_CTX_DEBUG_REGISTERS
)
705 dump_uint64( ",dr0=", &ctx
.debug
.x86_64_regs
.dr0
);
706 dump_uint64( ",dr1=", &ctx
.debug
.x86_64_regs
.dr1
);
707 dump_uint64( ",dr2=", &ctx
.debug
.x86_64_regs
.dr2
);
708 dump_uint64( ",dr3=", &ctx
.debug
.x86_64_regs
.dr3
);
709 dump_uint64( ",dr6=", &ctx
.debug
.x86_64_regs
.dr6
);
710 dump_uint64( ",dr7=", &ctx
.debug
.x86_64_regs
.dr7
);
712 if (ctx
.flags
& SERVER_CTX_FLOATING_POINT
)
714 for (i
= 0; i
< 32; i
++)
715 fprintf( stderr
, ",fp%u=%08x%08x%08x%08x", i
,
716 (unsigned int)(ctx
.fp
.x86_64_regs
.fpregs
[i
].high
>> 32),
717 (unsigned int)ctx
.fp
.x86_64_regs
.fpregs
[i
].high
,
718 (unsigned int)(ctx
.fp
.x86_64_regs
.fpregs
[i
].low
>> 32),
719 (unsigned int)ctx
.fp
.x86_64_regs
.fpregs
[i
].low
);
721 if (ctx
.flags
& SERVER_CTX_YMM_REGISTERS
)
722 dump_uints( ",ymm_high=", (const unsigned int *)ctx
.ymm
.ymm_high_regs
.ymm_high
,
723 sizeof(ctx
.ymm
.ymm_high_regs
) / sizeof(int) );
725 case IMAGE_FILE_MACHINE_ARMNT
:
726 fprintf( stderr
, "%s{machine=arm", prefix
);
727 if (ctx
.flags
& SERVER_CTX_CONTROL
)
728 fprintf( stderr
, ",sp=%08x,lr=%08x,pc=%08x,cpsr=%08x",
729 ctx
.ctl
.arm_regs
.sp
, ctx
.ctl
.arm_regs
.lr
,
730 ctx
.ctl
.arm_regs
.pc
, ctx
.ctl
.arm_regs
.cpsr
);
731 if (ctx
.flags
& SERVER_CTX_INTEGER
)
732 for (i
= 0; i
< 13; i
++) fprintf( stderr
, ",r%u=%08x", i
, ctx
.integer
.arm_regs
.r
[i
] );
733 if (ctx
.flags
& SERVER_CTX_DEBUG_REGISTERS
)
735 for (i
= 0; i
< 8; i
++)
736 fprintf( stderr
, ",bcr%u=%08x,bvr%u=%08x",
737 i
, ctx
.debug
.arm_regs
.bcr
[i
], i
, ctx
.debug
.arm_regs
.bvr
[i
] );
738 fprintf( stderr
, ",wcr0=%08x,wvr0=%08x",
739 ctx
.debug
.arm_regs
.wcr
[0], ctx
.debug
.arm_regs
.wvr
[0] );
741 if (ctx
.flags
& SERVER_CTX_FLOATING_POINT
)
743 for (i
= 0; i
< 32; i
++)
745 fprintf( stderr
, ",d%u=", i
);
746 dump_uint64( "", &ctx
.fp
.arm_regs
.d
[i
] );
748 fprintf( stderr
, ",fpscr=%08x", ctx
.fp
.arm_regs
.fpscr
);
751 case IMAGE_FILE_MACHINE_ARM64
:
752 fprintf( stderr
, "%s{machine=arm64", prefix
);
753 if (ctx
.flags
& SERVER_CTX_CONTROL
)
755 dump_uint64( ",sp=", &ctx
.ctl
.arm64_regs
.sp
);
756 dump_uint64( ",pc=", &ctx
.ctl
.arm64_regs
.pc
);
757 dump_uint64( ",pstate=", &ctx
.ctl
.arm64_regs
.pstate
);
759 if (ctx
.flags
& SERVER_CTX_INTEGER
)
761 for (i
= 0; i
< 31; i
++)
763 fprintf( stderr
, ",x%u=", i
);
764 dump_uint64( "", &ctx
.integer
.arm64_regs
.x
[i
] );
767 if (ctx
.flags
& SERVER_CTX_DEBUG_REGISTERS
)
769 for (i
= 0; i
< 8; i
++)
771 fprintf( stderr
, ",bcr%u=%08x,bvr%u=", i
, ctx
.debug
.arm64_regs
.bcr
[i
], i
);
772 dump_uint64( "", &ctx
.debug
.arm64_regs
.bvr
[i
] );
774 for (i
= 0; i
< 2; i
++)
776 fprintf( stderr
, ",wcr%u=%08x,wvr%u=", i
, ctx
.debug
.arm64_regs
.wcr
[i
], i
);
777 dump_uint64( "", &ctx
.debug
.arm64_regs
.wvr
[i
] );
780 if (ctx
.flags
& SERVER_CTX_FLOATING_POINT
)
782 for (i
= 0; i
< 32; i
++)
784 fprintf( stderr
, ",q%u=", i
);
785 dump_uint64( "", &ctx
.fp
.arm64_regs
.q
[i
].high
);
786 dump_uint64( "", &ctx
.fp
.arm64_regs
.q
[i
].low
);
788 fprintf( stderr
, ",fpcr=%08x,fpsr=%08x", ctx
.fp
.arm64_regs
.fpcr
, ctx
.fp
.arm64_regs
.fpsr
);
792 fprintf( stderr
, "%s{machine=%04x", prefix
, ctx
.machine
);
795 fputc( '}', stderr
);
799 static void dump_varargs_debug_event( const char *prefix
, data_size_t size
)
806 fprintf( stderr
, "%s{}", prefix
);
809 size
= min( size
, sizeof(event
) );
810 memset( &event
, 0, sizeof(event
) );
811 memcpy( &event
, cur_data
, size
);
816 fprintf( stderr
, "%s{idle}", prefix
);
818 case DbgReplyPending
:
819 fprintf( stderr
, "%s{pending}", prefix
);
821 case DbgCreateThreadStateChange
:
822 fprintf( stderr
, "%s{create_thread,thread=%04x", prefix
, event
.create_thread
.handle
);
823 dump_uint64( ",start=", &event
.create_thread
.start
);
824 fputc( '}', stderr
);
826 case DbgCreateProcessStateChange
:
827 fprintf( stderr
, "%s{create_process,file=%04x,process=%04x,thread=%04x", prefix
,
828 event
.create_process
.file
, event
.create_process
.process
,
829 event
.create_process
.thread
);
830 dump_uint64( ",base=", &event
.create_process
.base
);
831 fprintf( stderr
, ",offset=%d,size=%d",
832 event
.create_process
.dbg_offset
, event
.create_process
.dbg_size
);
833 dump_uint64( ",start=", &event
.create_process
.start
);
834 fputc( '}', stderr
);
836 case DbgExitThreadStateChange
:
837 fprintf( stderr
, "%s{exit_thread,code=%d}", prefix
, event
.exit
.exit_code
);
839 case DbgExitProcessStateChange
:
840 fprintf( stderr
, "%s{exit_process,code=%d}", prefix
, event
.exit
.exit_code
);
842 case DbgExceptionStateChange
:
843 case DbgBreakpointStateChange
:
844 case DbgSingleStepStateChange
:
845 fprintf( stderr
, "%s{%s,first=%d,exc_code=%08x,flags=%08x", prefix
,
846 event
.code
== DbgBreakpointStateChange
? "breakpoint" :
847 event
.code
== DbgSingleStepStateChange
? "singlestep" : "exception",
848 event
.exception
.first
, event
.exception
.exc_code
, event
.exception
.flags
);
849 dump_uint64( ",record=", &event
.exception
.record
);
850 dump_uint64( ",address=", &event
.exception
.address
);
851 fprintf( stderr
, ",params={" );
852 event
.exception
.nb_params
= min( event
.exception
.nb_params
, EXCEPTION_MAXIMUM_PARAMETERS
);
853 for (i
= 0; i
< event
.exception
.nb_params
; i
++)
855 dump_uint64( "", &event
.exception
.params
[i
] );
856 if (i
< event
.exception
.nb_params
) fputc( ',', stderr
);
858 fprintf( stderr
, "}}" );
860 case DbgLoadDllStateChange
:
861 fprintf( stderr
, "%s{load_dll,file=%04x", prefix
, event
.load_dll
.handle
);
862 dump_uint64( ",base=", &event
.load_dll
.base
);
863 fprintf( stderr
, ",offset=%d,size=%d",
864 event
.load_dll
.dbg_offset
, event
.load_dll
.dbg_size
);
865 dump_uint64( ",name=", &event
.load_dll
.name
);
866 fputc( '}', stderr
);
868 case DbgUnloadDllStateChange
:
869 fprintf( stderr
, "%s{unload_dll", prefix
);
870 dump_uint64( ",base=", &event
.unload_dll
.base
);
871 fputc( '}', stderr
);
874 fprintf( stderr
, "%s{code=??? (%d)}", prefix
, event
.code
);
880 /* dump a unicode string contained in a buffer; helper for dump_varargs_startup_info */
881 static data_size_t
dump_inline_unicode_string( const char *prefix
, data_size_t pos
, data_size_t len
, data_size_t total_size
)
883 fputs( prefix
, stderr
);
884 if (pos
>= total_size
) return pos
;
885 if (len
> total_size
- pos
) len
= total_size
- pos
;
886 dump_strW( (const WCHAR
*)cur_data
+ pos
/sizeof(WCHAR
), len
, stderr
, "\"\"" );
887 return pos
+ (len
/ sizeof(WCHAR
)) * sizeof(WCHAR
);
890 static void dump_varargs_startup_info( const char *prefix
, data_size_t size
)
893 data_size_t pos
= sizeof(info
);
895 memset( &info
, 0, sizeof(info
) );
896 memcpy( &info
, cur_data
, min( size
, sizeof(info
) ));
899 "%s{debug_flags=%x,console_flags=%x,console=%04x,hstdin=%04x,hstdout=%04x,hstderr=%04x,"
900 "x=%u,y=%u,xsize=%u,ysize=%u,xchars=%u,ychars=%u,attribute=%02x,flags=%x,show=%u",
901 prefix
, info
.debug_flags
, info
.console_flags
, info
.console
,
902 info
.hstdin
, info
.hstdout
, info
.hstderr
, info
.x
, info
.y
, info
.xsize
, info
.ysize
,
903 info
.xchars
, info
.ychars
, info
.attribute
, info
.flags
, info
.show
);
904 pos
= dump_inline_unicode_string( ",curdir=L\"", pos
, info
.curdir_len
, size
);
905 pos
= dump_inline_unicode_string( "\",dllpath=L\"", pos
, info
.dllpath_len
, size
);
906 pos
= dump_inline_unicode_string( "\",imagepath=L\"", pos
, info
.imagepath_len
, size
);
907 pos
= dump_inline_unicode_string( "\",cmdline=L\"", pos
, info
.cmdline_len
, size
);
908 pos
= dump_inline_unicode_string( "\",title=L\"", pos
, info
.title_len
, size
);
909 pos
= dump_inline_unicode_string( "\",desktop=L\"", pos
, info
.desktop_len
, size
);
910 pos
= dump_inline_unicode_string( "\",shellinfo=L\"", pos
, info
.shellinfo_len
, size
);
911 pos
= dump_inline_unicode_string( "\",runtime=L\"", pos
, info
.runtime_len
, size
);
912 fprintf( stderr
, "\"}" );
916 static void dump_varargs_rectangles( const char *prefix
, data_size_t size
)
918 const rectangle_t
*rect
= cur_data
;
919 data_size_t len
= size
/ sizeof(*rect
);
921 fprintf( stderr
,"%s{", prefix
);
924 dump_rectangle( "", rect
++ );
925 if (--len
) fputc( ',', stderr
);
927 fputc( '}', stderr
);
931 static void dump_varargs_cursor_positions( const char *prefix
, data_size_t size
)
933 const cursor_pos_t
*pos
= cur_data
;
934 data_size_t len
= size
/ sizeof(*pos
);
936 fprintf( stderr
, "%s{", prefix
);
939 fprintf( stderr
, "{x=%d,y=%d,time=%u", pos
->x
, pos
->y
, pos
->time
);
940 dump_uint64( ",info=", &pos
->info
);
941 fputc( '}', stderr
);
943 if (--len
) fputc( ',', stderr
);
945 fputc( '}', stderr
);
949 static void dump_varargs_message_data( const char *prefix
, data_size_t size
)
951 /* FIXME: dump the structured data */
952 dump_varargs_bytes( prefix
, size
);
955 static void dump_varargs_properties( const char *prefix
, data_size_t size
)
957 const property_data_t
*prop
= cur_data
;
958 data_size_t len
= size
/ sizeof(*prop
);
960 fprintf( stderr
,"%s{", prefix
);
963 fprintf( stderr
, "{atom=%04x,str=%d", prop
->atom
, prop
->string
);
964 dump_uint64( ",data=", &prop
->data
);
965 fputc( '}', stderr
);
967 if (--len
) fputc( ',', stderr
);
969 fputc( '}', stderr
);
973 static void dump_varargs_LUID_AND_ATTRIBUTES( const char *prefix
, data_size_t size
)
975 const LUID_AND_ATTRIBUTES
*lat
= cur_data
;
976 data_size_t len
= size
/ sizeof(*lat
);
978 fprintf( stderr
,"%s{", prefix
);
981 fprintf( stderr
, "{luid=%08x%08x,attr=%x}",
982 lat
->Luid
.HighPart
, lat
->Luid
.LowPart
, lat
->Attributes
);
984 if (--len
) fputc( ',', stderr
);
986 fputc( '}', stderr
);
990 static void dump_inline_sid( const char *prefix
, const SID
*sid
, data_size_t size
)
995 if ((FIELD_OFFSET(SID
, SubAuthority
[0]) > size
) ||
996 (FIELD_OFFSET(SID
, SubAuthority
[sid
->SubAuthorityCount
]) > size
))
998 fprintf( stderr
, "<invalid sid>" );
1002 fprintf( stderr
,"%s{", prefix
);
1003 fprintf( stderr
, "S-%u-%u", sid
->Revision
, MAKELONG(
1004 MAKEWORD( sid
->IdentifierAuthority
.Value
[5],
1005 sid
->IdentifierAuthority
.Value
[4] ),
1006 MAKEWORD( sid
->IdentifierAuthority
.Value
[3],
1007 sid
->IdentifierAuthority
.Value
[2] ) ) );
1008 for (i
= 0; i
< sid
->SubAuthorityCount
; i
++)
1009 fprintf( stderr
, "-%u", sid
->SubAuthority
[i
] );
1010 fputc( '}', stderr
);
1013 static void dump_varargs_SID( const char *prefix
, data_size_t size
)
1015 const SID
*sid
= cur_data
;
1016 dump_inline_sid( prefix
, sid
, size
);
1017 remove_data( size
);
1020 static void dump_inline_acl( const char *prefix
, const ACL
*acl
, data_size_t size
)
1022 const ACE_HEADER
*ace
;
1025 fprintf( stderr
,"%s{", prefix
);
1028 if (size
< sizeof(ACL
))
1030 fprintf( stderr
, "<invalid acl>}" );
1033 size
-= sizeof(ACL
);
1034 ace
= (const ACE_HEADER
*)(acl
+ 1);
1035 for (i
= 0; i
< acl
->AceCount
; i
++)
1037 const SID
*sid
= NULL
;
1038 data_size_t sid_size
= 0;
1040 if (size
< sizeof(ACE_HEADER
) || size
< ace
->AceSize
) break;
1041 size
-= ace
->AceSize
;
1042 if (i
!= 0) fputc( ',', stderr
);
1043 fprintf( stderr
, "{AceType=" );
1044 switch (ace
->AceType
)
1046 case ACCESS_DENIED_ACE_TYPE
:
1047 sid
= (const SID
*)&((const ACCESS_DENIED_ACE
*)ace
)->SidStart
;
1048 sid_size
= ace
->AceSize
- FIELD_OFFSET(ACCESS_DENIED_ACE
, SidStart
);
1049 fprintf( stderr
, "ACCESS_DENIED_ACE_TYPE,Mask=%x",
1050 ((const ACCESS_DENIED_ACE
*)ace
)->Mask
);
1052 case ACCESS_ALLOWED_ACE_TYPE
:
1053 sid
= (const SID
*)&((const ACCESS_ALLOWED_ACE
*)ace
)->SidStart
;
1054 sid_size
= ace
->AceSize
- FIELD_OFFSET(ACCESS_ALLOWED_ACE
, SidStart
);
1055 fprintf( stderr
, "ACCESS_ALLOWED_ACE_TYPE,Mask=%x",
1056 ((const ACCESS_ALLOWED_ACE
*)ace
)->Mask
);
1058 case SYSTEM_AUDIT_ACE_TYPE
:
1059 sid
= (const SID
*)&((const SYSTEM_AUDIT_ACE
*)ace
)->SidStart
;
1060 sid_size
= ace
->AceSize
- FIELD_OFFSET(SYSTEM_AUDIT_ACE
, SidStart
);
1061 fprintf( stderr
, "SYSTEM_AUDIT_ACE_TYPE,Mask=%x",
1062 ((const SYSTEM_AUDIT_ACE
*)ace
)->Mask
);
1064 case SYSTEM_ALARM_ACE_TYPE
:
1065 sid
= (const SID
*)&((const SYSTEM_ALARM_ACE
*)ace
)->SidStart
;
1066 sid_size
= ace
->AceSize
- FIELD_OFFSET(SYSTEM_ALARM_ACE
, SidStart
);
1067 fprintf( stderr
, "SYSTEM_ALARM_ACE_TYPE,Mask=%x",
1068 ((const SYSTEM_ALARM_ACE
*)ace
)->Mask
);
1070 case SYSTEM_MANDATORY_LABEL_ACE_TYPE
:
1071 sid
= (const SID
*)&((const SYSTEM_MANDATORY_LABEL_ACE
*)ace
)->SidStart
;
1072 sid_size
= ace
->AceSize
- FIELD_OFFSET(SYSTEM_MANDATORY_LABEL_ACE
, SidStart
);
1073 fprintf( stderr
, "SYSTEM_MANDATORY_LABEL_ACE_TYPE,Mask=%x",
1074 ((const SYSTEM_MANDATORY_LABEL_ACE
*)ace
)->Mask
);
1077 fprintf( stderr
, "unknown<%d>", ace
->AceType
);
1080 fprintf( stderr
, ",AceFlags=%x", ace
->AceFlags
);
1082 dump_inline_sid( ",Sid=", sid
, sid_size
);
1083 ace
= (const ACE_HEADER
*)((const char *)ace
+ ace
->AceSize
);
1084 fputc( '}', stderr
);
1087 fputc( '}', stderr
);
1090 static void dump_varargs_ACL( const char *prefix
, data_size_t size
)
1092 const ACL
*acl
= cur_data
;
1093 dump_inline_acl( prefix
, acl
, size
);
1094 remove_data( size
);
1097 static void dump_inline_security_descriptor( const char *prefix
, const struct security_descriptor
*sd
, data_size_t size
)
1099 fprintf( stderr
,"%s{", prefix
);
1100 if (size
>= sizeof(struct security_descriptor
))
1102 size_t offset
= sizeof(struct security_descriptor
);
1103 fprintf( stderr
, "control=%08x", sd
->control
);
1104 if ((sd
->owner_len
> FIELD_OFFSET(SID
, SubAuthority
[255])) || (offset
+ sd
->owner_len
> size
))
1107 dump_inline_sid( ",owner=", (const SID
*)((const char *)sd
+ offset
), sd
->owner_len
);
1109 fprintf( stderr
, ",owner=<not present>" );
1110 offset
+= sd
->owner_len
;
1111 if ((sd
->group_len
> FIELD_OFFSET(SID
, SubAuthority
[255])) || (offset
+ sd
->group_len
> size
))
1114 dump_inline_sid( ",group=", (const SID
*)((const char *)sd
+ offset
), sd
->group_len
);
1116 fprintf( stderr
, ",group=<not present>" );
1117 offset
+= sd
->group_len
;
1118 if ((sd
->sacl_len
>= MAX_ACL_LEN
) || (offset
+ sd
->sacl_len
> size
))
1120 dump_inline_acl( ",sacl=", (const ACL
*)((const char *)sd
+ offset
), sd
->sacl_len
);
1121 offset
+= sd
->sacl_len
;
1122 if ((sd
->dacl_len
>= MAX_ACL_LEN
) || (offset
+ sd
->dacl_len
> size
))
1124 dump_inline_acl( ",dacl=", (const ACL
*)((const char *)sd
+ offset
), sd
->dacl_len
);
1125 offset
+= sd
->dacl_len
;
1127 fputc( '}', stderr
);
1130 static void dump_varargs_security_descriptor( const char *prefix
, data_size_t size
)
1132 const struct security_descriptor
*sd
= cur_data
;
1133 dump_inline_security_descriptor( prefix
, sd
, size
);
1134 remove_data( size
);
1137 static void dump_varargs_token_groups( const char *prefix
, data_size_t size
)
1139 const struct token_groups
*tg
= cur_data
;
1141 fprintf( stderr
,"%s{", prefix
);
1142 if (size
>= sizeof(struct token_groups
))
1144 size_t offset
= sizeof(*tg
);
1145 fprintf( stderr
, "count=%08x,", tg
->count
);
1146 if (tg
->count
* sizeof(unsigned int) <= size
)
1149 const unsigned int *attr
= (const unsigned int *)(tg
+ 1);
1151 offset
+= tg
->count
* sizeof(unsigned int);
1153 fputc( '[', stderr
);
1154 for (i
= 0; i
< tg
->count
; i
++)
1156 const SID
*sid
= (const SID
*)((const char *)cur_data
+ offset
);
1158 fputc( ',', stderr
);
1159 fputc( '{', stderr
);
1160 fprintf( stderr
, "attributes=%08x", attr
[i
] );
1161 dump_inline_sid( ",sid=", sid
, size
- offset
);
1162 if ((offset
+ FIELD_OFFSET(SID
, SubAuthority
[0]) > size
) ||
1163 (offset
+ FIELD_OFFSET(SID
, SubAuthority
[sid
->SubAuthorityCount
]) > size
))
1165 offset
+= FIELD_OFFSET(SID
, SubAuthority
[sid
->SubAuthorityCount
]);
1166 fputc( '}', stderr
);
1168 fputc( ']', stderr
);
1171 fputc( '}', stderr
);
1174 static void dump_varargs_process_info( const char *prefix
, data_size_t size
)
1176 data_size_t pos
= 0;
1179 fprintf( stderr
,"%s{", prefix
);
1181 while (size
- pos
>= sizeof(struct process_info
))
1183 const struct process_info
*process
;
1184 pos
= (pos
+ 7) & ~7;
1185 process
= (const struct process_info
*)((const char *)cur_data
+ pos
);
1186 if (size
- pos
< sizeof(*process
)) break;
1187 if (pos
) fputc( ',', stderr
);
1188 dump_timeout( "{start_time=", &process
->start_time
);
1189 fprintf( stderr
, ",thread_count=%u,priority=%d,pid=%04x,parent_pid=%04x,handle_count=%u,unix_pid=%d,",
1190 process
->thread_count
, process
->priority
, process
->pid
,
1191 process
->parent_pid
, process
->handle_count
, process
->unix_pid
);
1192 pos
+= sizeof(*process
);
1194 pos
= dump_inline_unicode_string( "name=L\"", pos
, process
->name_len
, size
);
1196 pos
= (pos
+ 7) & ~7;
1197 fprintf( stderr
, "\",threads={" );
1198 for (i
= 0; i
< process
->thread_count
; i
++)
1200 const struct thread_info
*thread
= (const struct thread_info
*)((const char *)cur_data
+ pos
);
1201 if (size
- pos
< sizeof(*thread
)) break;
1202 if (i
) fputc( ',', stderr
);
1203 dump_timeout( "{start_time=", &thread
->start_time
);
1204 fprintf( stderr
, ",tid=%04x,base_priority=%d,current_priority=%d,unix_tid=%d}",
1205 thread
->tid
, thread
->base_priority
, thread
->current_priority
, thread
->unix_tid
);
1206 pos
+= sizeof(*thread
);
1208 fprintf( stderr
, "}}" );
1210 fputc( '}', stderr
);
1211 remove_data( size
);
1214 static void dump_varargs_object_attributes( const char *prefix
, data_size_t size
)
1216 const struct object_attributes
*objattr
= cur_data
;
1218 fprintf( stderr
,"%s{", prefix
);
1223 if (size
< sizeof(*objattr
) ||
1224 (size
- sizeof(*objattr
) < objattr
->sd_len
) ||
1225 (size
- sizeof(*objattr
) - objattr
->sd_len
< objattr
->name_len
))
1227 fprintf( stderr
, "***invalid***}" );
1228 remove_data( size
);
1232 fprintf( stderr
, "rootdir=%04x,attributes=%08x", objattr
->rootdir
, objattr
->attributes
);
1233 dump_inline_security_descriptor( ",sd=", (const struct security_descriptor
*)(objattr
+ 1), objattr
->sd_len
);
1234 str
= (const WCHAR
*)objattr
+ (sizeof(*objattr
) + objattr
->sd_len
) / sizeof(WCHAR
);
1235 fprintf( stderr
, ",name=L\"" );
1236 dump_strW( str
, objattr
->name_len
, stderr
, "\"\"" );
1237 fputc( '\"', stderr
);
1238 remove_data( (sizeof(*objattr
) + (objattr
->sd_len
& ~1) + (objattr
->name_len
& ~1) + 3) & ~3 );
1240 fputc( '}', stderr
);
1243 static void dump_varargs_object_type_info( const char *prefix
, data_size_t size
)
1245 const struct object_type_info
*info
= cur_data
;
1247 fprintf( stderr
,"%s{", prefix
);
1250 if (size
< sizeof(*info
) || (size
- sizeof(*info
) < info
->name_len
))
1252 fprintf( stderr
, "***invalid***}" );
1253 remove_data( size
);
1257 fprintf( stderr
, "index=%u,obj_count=%u,handle_count=%u,obj_max=%u,handle_max=%u,valid=%08x",
1258 info
->index
,info
->obj_count
, info
->handle_count
, info
->obj_max
, info
->handle_max
,
1259 info
->valid_access
);
1260 dump_generic_map( ",access=", &info
->mapping
);
1261 fprintf( stderr
, ",name=L\"" );
1262 dump_strW( (const WCHAR
*)(info
+ 1), info
->name_len
, stderr
, "\"\"" );
1263 fputc( '\"', stderr
);
1264 remove_data( min( size
, sizeof(*info
) + ((info
->name_len
+ 2) & ~3 )));
1266 fputc( '}', stderr
);
1269 static void dump_varargs_object_types_info( const char *prefix
, data_size_t size
)
1271 fprintf( stderr
,"%s{", prefix
);
1272 while (cur_size
) dump_varargs_object_type_info( ",", cur_size
);
1273 fputc( '}', stderr
);
1276 static void dump_varargs_filesystem_event( const char *prefix
, data_size_t size
)
1278 static const char * const actions
[] = {
1290 fprintf( stderr
,"%s{", prefix
);
1293 const struct filesystem_event
*event
= cur_data
;
1294 data_size_t len
= (offsetof( struct filesystem_event
, name
[event
->len
] ) + sizeof(int)-1)
1295 / sizeof(int) * sizeof(int);
1296 if (size
< len
) break;
1297 if (event
->action
< ARRAY_SIZE( actions
) && actions
[event
->action
])
1298 fprintf( stderr
, "{action=%s", actions
[event
->action
] );
1300 fprintf( stderr
, "{action=%u", event
->action
);
1301 fprintf( stderr
, ",name=\"%.*s\"}", event
->len
, event
->name
);
1304 if (size
)fputc( ',', stderr
);
1306 fputc( '}', stderr
);
1309 static void dump_varargs_pe_image_info( const char *prefix
, data_size_t size
)
1311 pe_image_info_t info
;
1315 fprintf( stderr
, "%s{}", prefix
);
1318 memset( &info
, 0, sizeof(info
) );
1319 memcpy( &info
, cur_data
, min( size
, sizeof(info
) ));
1321 fprintf( stderr
, "%s{", prefix
);
1322 dump_uint64( "base=", &info
.base
);
1323 dump_uint64( ",entry_point=", &info
.entry_point
);
1324 dump_uint64( ",map_size=", &info
.map_size
);
1325 dump_uint64( ",stack_size=", &info
.stack_size
);
1326 dump_uint64( ",stack_commit=", &info
.stack_commit
);
1327 fprintf( stderr
, ",zerobits=%08x,subsystem=%08x,subsystem_minor=%04x,subsystem_major=%04x"
1328 ",osversion_major=%04x,osversion_minor=%04x,image_charact=%04x,dll_charact=%04x,machine=%04x"
1329 ",contains_code=%u,image_flags=%02x"
1330 ",loader_flags=%08x,header_size=%08x,file_size=%08x,checksum=%08x}",
1331 info
.zerobits
, info
.subsystem
, info
.subsystem_minor
, info
.subsystem_major
,
1332 info
.osversion_major
, info
.osversion_minor
, info
.image_charact
, info
.dll_charact
,
1333 info
.machine
, info
.contains_code
, info
.image_flags
, info
.loader_flags
,
1334 info
.header_size
, info
.file_size
, info
.checksum
);
1335 remove_data( min( size
, sizeof(info
) ));
1338 static void dump_varargs_rawinput_devices(const char *prefix
, data_size_t size
)
1340 const struct rawinput_device
*device
;
1342 fprintf( stderr
, "%s{", prefix
);
1343 while (size
>= sizeof(*device
))
1346 fprintf( stderr
, "{usage_page=%04x,usage=%04x,flags=%08x,target=%08x}",
1347 device
->usage_page
, device
->usage
, device
->flags
, device
->target
);
1348 size
-= sizeof(*device
);
1349 remove_data( sizeof(*device
) );
1350 if (size
) fputc( ',', stderr
);
1352 fputc( '}', stderr
);
1355 static void dump_varargs_handle_infos( const char *prefix
, data_size_t size
)
1357 const struct handle_info
*handle
;
1359 fprintf( stderr
, "%s{", prefix
);
1360 while (size
>= sizeof(*handle
))
1363 fprintf( stderr
, "{owner=%04x,handle=%04x,access=%08x,attributes=%08x,type=%u}",
1364 handle
->owner
, handle
->handle
, handle
->access
, handle
->attributes
, handle
->type
);
1365 size
-= sizeof(*handle
);
1366 remove_data( sizeof(*handle
) );
1367 if (size
) fputc( ',', stderr
);
1369 fputc( '}', stderr
);
1372 static void dump_varargs_poll_socket_input( const char *prefix
, data_size_t size
)
1374 const struct poll_socket_input
*input
;
1376 fprintf( stderr
, "%s{", prefix
);
1377 while (size
>= sizeof(*input
))
1380 fprintf( stderr
, "{socket=%04x,flags=%08x}", input
->socket
, input
->flags
);
1381 size
-= sizeof(*input
);
1382 remove_data( sizeof(*input
) );
1383 if (size
) fputc( ',', stderr
);
1385 fputc( '}', stderr
);
1388 static void dump_varargs_poll_socket_output( const char *prefix
, data_size_t size
)
1390 const struct poll_socket_output
*output
;
1392 fprintf( stderr
, "%s{", prefix
);
1393 while (size
>= sizeof(*output
))
1396 fprintf( stderr
, "{flags=%08x,status=%s}", output
->flags
, get_status_name( output
->status
) );
1397 size
-= sizeof(*output
);
1398 remove_data( sizeof(*output
) );
1399 if (size
) fputc( ',', stderr
);
1401 fputc( '}', stderr
);
1404 typedef void (*dump_func
)( const void *req
);
1406 /* Everything below this line is generated automatically by tools/make_requests */
1407 /* ### make_requests begin ### */
1409 static void dump_new_process_request( const struct new_process_request
*req
)
1411 fprintf( stderr
, " token=%04x", req
->token
);
1412 fprintf( stderr
, ", debug=%04x", req
->debug
);
1413 fprintf( stderr
, ", parent_process=%04x", req
->parent_process
);
1414 fprintf( stderr
, ", flags=%08x", req
->flags
);
1415 fprintf( stderr
, ", socket_fd=%d", req
->socket_fd
);
1416 fprintf( stderr
, ", access=%08x", req
->access
);
1417 fprintf( stderr
, ", machine=%04x", req
->machine
);
1418 fprintf( stderr
, ", info_size=%u", req
->info_size
);
1419 fprintf( stderr
, ", handles_size=%u", req
->handles_size
);
1420 fprintf( stderr
, ", jobs_size=%u", req
->jobs_size
);
1421 dump_varargs_object_attributes( ", objattr=", cur_size
);
1422 dump_varargs_uints( ", handles=", min(cur_size
,req
->handles_size
) );
1423 dump_varargs_uints( ", jobs=", min(cur_size
,req
->jobs_size
) );
1424 dump_varargs_startup_info( ", info=", min(cur_size
,req
->info_size
) );
1425 dump_varargs_unicode_str( ", env=", cur_size
);
1428 static void dump_new_process_reply( const struct new_process_reply
*req
)
1430 fprintf( stderr
, " info=%04x", req
->info
);
1431 fprintf( stderr
, ", pid=%04x", req
->pid
);
1432 fprintf( stderr
, ", handle=%04x", req
->handle
);
1435 static void dump_get_new_process_info_request( const struct get_new_process_info_request
*req
)
1437 fprintf( stderr
, " info=%04x", req
->info
);
1440 static void dump_get_new_process_info_reply( const struct get_new_process_info_reply
*req
)
1442 fprintf( stderr
, " success=%d", req
->success
);
1443 fprintf( stderr
, ", exit_code=%d", req
->exit_code
);
1446 static void dump_new_thread_request( const struct new_thread_request
*req
)
1448 fprintf( stderr
, " process=%04x", req
->process
);
1449 fprintf( stderr
, ", access=%08x", req
->access
);
1450 fprintf( stderr
, ", suspend=%d", req
->suspend
);
1451 fprintf( stderr
, ", request_fd=%d", req
->request_fd
);
1452 dump_varargs_object_attributes( ", objattr=", cur_size
);
1455 static void dump_new_thread_reply( const struct new_thread_reply
*req
)
1457 fprintf( stderr
, " tid=%04x", req
->tid
);
1458 fprintf( stderr
, ", handle=%04x", req
->handle
);
1461 static void dump_get_startup_info_request( const struct get_startup_info_request
*req
)
1465 static void dump_get_startup_info_reply( const struct get_startup_info_reply
*req
)
1467 fprintf( stderr
, " info_size=%u", req
->info_size
);
1468 dump_varargs_startup_info( ", info=", min(cur_size
,req
->info_size
) );
1469 dump_varargs_unicode_str( ", env=", cur_size
);
1472 static void dump_init_process_done_request( const struct init_process_done_request
*req
)
1474 dump_uint64( " teb=", &req
->teb
);
1475 dump_uint64( ", peb=", &req
->peb
);
1476 dump_uint64( ", ldt_copy=", &req
->ldt_copy
);
1479 static void dump_init_process_done_reply( const struct init_process_done_reply
*req
)
1481 dump_uint64( " entry=", &req
->entry
);
1482 fprintf( stderr
, ", suspend=%d", req
->suspend
);
1485 static void dump_init_first_thread_request( const struct init_first_thread_request
*req
)
1487 fprintf( stderr
, " unix_pid=%d", req
->unix_pid
);
1488 fprintf( stderr
, ", unix_tid=%d", req
->unix_tid
);
1489 fprintf( stderr
, ", debug_level=%d", req
->debug_level
);
1490 fprintf( stderr
, ", reply_fd=%d", req
->reply_fd
);
1491 fprintf( stderr
, ", wait_fd=%d", req
->wait_fd
);
1494 static void dump_init_first_thread_reply( const struct init_first_thread_reply
*req
)
1496 fprintf( stderr
, " pid=%04x", req
->pid
);
1497 fprintf( stderr
, ", tid=%04x", req
->tid
);
1498 dump_timeout( ", server_start=", &req
->server_start
);
1499 fprintf( stderr
, ", info_size=%u", req
->info_size
);
1500 dump_varargs_ushorts( ", machines=", cur_size
);
1503 static void dump_init_thread_request( const struct init_thread_request
*req
)
1505 fprintf( stderr
, " unix_tid=%d", req
->unix_tid
);
1506 fprintf( stderr
, ", reply_fd=%d", req
->reply_fd
);
1507 fprintf( stderr
, ", wait_fd=%d", req
->wait_fd
);
1508 dump_uint64( ", teb=", &req
->teb
);
1509 dump_uint64( ", entry=", &req
->entry
);
1512 static void dump_init_thread_reply( const struct init_thread_reply
*req
)
1514 fprintf( stderr
, " pid=%04x", req
->pid
);
1515 fprintf( stderr
, ", tid=%04x", req
->tid
);
1516 fprintf( stderr
, ", suspend=%d", req
->suspend
);
1519 static void dump_terminate_process_request( const struct terminate_process_request
*req
)
1521 fprintf( stderr
, " handle=%04x", req
->handle
);
1522 fprintf( stderr
, ", exit_code=%d", req
->exit_code
);
1525 static void dump_terminate_process_reply( const struct terminate_process_reply
*req
)
1527 fprintf( stderr
, " self=%d", req
->self
);
1530 static void dump_terminate_thread_request( const struct terminate_thread_request
*req
)
1532 fprintf( stderr
, " handle=%04x", req
->handle
);
1533 fprintf( stderr
, ", exit_code=%d", req
->exit_code
);
1536 static void dump_terminate_thread_reply( const struct terminate_thread_reply
*req
)
1538 fprintf( stderr
, " self=%d", req
->self
);
1541 static void dump_get_process_info_request( const struct get_process_info_request
*req
)
1543 fprintf( stderr
, " handle=%04x", req
->handle
);
1546 static void dump_get_process_info_reply( const struct get_process_info_reply
*req
)
1548 fprintf( stderr
, " pid=%04x", req
->pid
);
1549 fprintf( stderr
, ", ppid=%04x", req
->ppid
);
1550 dump_uint64( ", affinity=", &req
->affinity
);
1551 dump_uint64( ", peb=", &req
->peb
);
1552 dump_timeout( ", start_time=", &req
->start_time
);
1553 dump_timeout( ", end_time=", &req
->end_time
);
1554 fprintf( stderr
, ", exit_code=%d", req
->exit_code
);
1555 fprintf( stderr
, ", priority=%d", req
->priority
);
1556 fprintf( stderr
, ", machine=%04x", req
->machine
);
1557 dump_varargs_pe_image_info( ", image=", cur_size
);
1560 static void dump_get_process_debug_info_request( const struct get_process_debug_info_request
*req
)
1562 fprintf( stderr
, " handle=%04x", req
->handle
);
1565 static void dump_get_process_debug_info_reply( const struct get_process_debug_info_reply
*req
)
1567 fprintf( stderr
, " debug=%04x", req
->debug
);
1568 fprintf( stderr
, ", debug_children=%d", req
->debug_children
);
1569 dump_varargs_pe_image_info( ", image=", cur_size
);
1572 static void dump_get_process_image_name_request( const struct get_process_image_name_request
*req
)
1574 fprintf( stderr
, " handle=%04x", req
->handle
);
1575 fprintf( stderr
, ", win32=%d", req
->win32
);
1578 static void dump_get_process_image_name_reply( const struct get_process_image_name_reply
*req
)
1580 fprintf( stderr
, " len=%u", req
->len
);
1581 dump_varargs_unicode_str( ", name=", cur_size
);
1584 static void dump_get_process_vm_counters_request( const struct get_process_vm_counters_request
*req
)
1586 fprintf( stderr
, " handle=%04x", req
->handle
);
1589 static void dump_get_process_vm_counters_reply( const struct get_process_vm_counters_reply
*req
)
1591 dump_uint64( " peak_virtual_size=", &req
->peak_virtual_size
);
1592 dump_uint64( ", virtual_size=", &req
->virtual_size
);
1593 dump_uint64( ", peak_working_set_size=", &req
->peak_working_set_size
);
1594 dump_uint64( ", working_set_size=", &req
->working_set_size
);
1595 dump_uint64( ", pagefile_usage=", &req
->pagefile_usage
);
1596 dump_uint64( ", peak_pagefile_usage=", &req
->peak_pagefile_usage
);
1599 static void dump_set_process_info_request( const struct set_process_info_request
*req
)
1601 fprintf( stderr
, " handle=%04x", req
->handle
);
1602 fprintf( stderr
, ", mask=%d", req
->mask
);
1603 fprintf( stderr
, ", priority=%d", req
->priority
);
1604 dump_uint64( ", affinity=", &req
->affinity
);
1607 static void dump_get_thread_info_request( const struct get_thread_info_request
*req
)
1609 fprintf( stderr
, " handle=%04x", req
->handle
);
1610 fprintf( stderr
, ", access=%08x", req
->access
);
1613 static void dump_get_thread_info_reply( const struct get_thread_info_reply
*req
)
1615 fprintf( stderr
, " pid=%04x", req
->pid
);
1616 fprintf( stderr
, ", tid=%04x", req
->tid
);
1617 dump_uint64( ", teb=", &req
->teb
);
1618 dump_uint64( ", entry_point=", &req
->entry_point
);
1619 dump_uint64( ", affinity=", &req
->affinity
);
1620 fprintf( stderr
, ", exit_code=%d", req
->exit_code
);
1621 fprintf( stderr
, ", priority=%d", req
->priority
);
1622 fprintf( stderr
, ", last=%d", req
->last
);
1623 fprintf( stderr
, ", suspend_count=%d", req
->suspend_count
);
1624 fprintf( stderr
, ", dbg_hidden=%d", req
->dbg_hidden
);
1625 fprintf( stderr
, ", desc_len=%u", req
->desc_len
);
1626 dump_varargs_unicode_str( ", desc=", cur_size
);
1629 static void dump_get_thread_times_request( const struct get_thread_times_request
*req
)
1631 fprintf( stderr
, " handle=%04x", req
->handle
);
1634 static void dump_get_thread_times_reply( const struct get_thread_times_reply
*req
)
1636 dump_timeout( " creation_time=", &req
->creation_time
);
1637 dump_timeout( ", exit_time=", &req
->exit_time
);
1638 fprintf( stderr
, ", unix_pid=%d", req
->unix_pid
);
1639 fprintf( stderr
, ", unix_tid=%d", req
->unix_tid
);
1642 static void dump_set_thread_info_request( const struct set_thread_info_request
*req
)
1644 fprintf( stderr
, " handle=%04x", req
->handle
);
1645 fprintf( stderr
, ", mask=%d", req
->mask
);
1646 fprintf( stderr
, ", priority=%d", req
->priority
);
1647 dump_uint64( ", affinity=", &req
->affinity
);
1648 dump_uint64( ", entry_point=", &req
->entry_point
);
1649 fprintf( stderr
, ", token=%04x", req
->token
);
1650 dump_varargs_unicode_str( ", desc=", cur_size
);
1653 static void dump_suspend_thread_request( const struct suspend_thread_request
*req
)
1655 fprintf( stderr
, " handle=%04x", req
->handle
);
1658 static void dump_suspend_thread_reply( const struct suspend_thread_reply
*req
)
1660 fprintf( stderr
, " count=%d", req
->count
);
1663 static void dump_resume_thread_request( const struct resume_thread_request
*req
)
1665 fprintf( stderr
, " handle=%04x", req
->handle
);
1668 static void dump_resume_thread_reply( const struct resume_thread_reply
*req
)
1670 fprintf( stderr
, " count=%d", req
->count
);
1673 static void dump_queue_apc_request( const struct queue_apc_request
*req
)
1675 fprintf( stderr
, " handle=%04x", req
->handle
);
1676 dump_apc_call( ", call=", &req
->call
);
1679 static void dump_queue_apc_reply( const struct queue_apc_reply
*req
)
1681 fprintf( stderr
, " handle=%04x", req
->handle
);
1682 fprintf( stderr
, ", self=%d", req
->self
);
1685 static void dump_get_apc_result_request( const struct get_apc_result_request
*req
)
1687 fprintf( stderr
, " handle=%04x", req
->handle
);
1690 static void dump_get_apc_result_reply( const struct get_apc_result_reply
*req
)
1692 dump_apc_result( " result=", &req
->result
);
1695 static void dump_close_handle_request( const struct close_handle_request
*req
)
1697 fprintf( stderr
, " handle=%04x", req
->handle
);
1700 static void dump_set_handle_info_request( const struct set_handle_info_request
*req
)
1702 fprintf( stderr
, " handle=%04x", req
->handle
);
1703 fprintf( stderr
, ", flags=%d", req
->flags
);
1704 fprintf( stderr
, ", mask=%d", req
->mask
);
1707 static void dump_set_handle_info_reply( const struct set_handle_info_reply
*req
)
1709 fprintf( stderr
, " old_flags=%d", req
->old_flags
);
1712 static void dump_dup_handle_request( const struct dup_handle_request
*req
)
1714 fprintf( stderr
, " src_process=%04x", req
->src_process
);
1715 fprintf( stderr
, ", src_handle=%04x", req
->src_handle
);
1716 fprintf( stderr
, ", dst_process=%04x", req
->dst_process
);
1717 fprintf( stderr
, ", access=%08x", req
->access
);
1718 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1719 fprintf( stderr
, ", options=%08x", req
->options
);
1722 static void dump_dup_handle_reply( const struct dup_handle_reply
*req
)
1724 fprintf( stderr
, " handle=%04x", req
->handle
);
1727 static void dump_make_temporary_request( const struct make_temporary_request
*req
)
1729 fprintf( stderr
, " handle=%04x", req
->handle
);
1732 static void dump_open_process_request( const struct open_process_request
*req
)
1734 fprintf( stderr
, " pid=%04x", req
->pid
);
1735 fprintf( stderr
, ", access=%08x", req
->access
);
1736 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1739 static void dump_open_process_reply( const struct open_process_reply
*req
)
1741 fprintf( stderr
, " handle=%04x", req
->handle
);
1744 static void dump_open_thread_request( const struct open_thread_request
*req
)
1746 fprintf( stderr
, " tid=%04x", req
->tid
);
1747 fprintf( stderr
, ", access=%08x", req
->access
);
1748 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1751 static void dump_open_thread_reply( const struct open_thread_reply
*req
)
1753 fprintf( stderr
, " handle=%04x", req
->handle
);
1756 static void dump_select_request( const struct select_request
*req
)
1758 fprintf( stderr
, " flags=%d", req
->flags
);
1759 dump_uint64( ", cookie=", &req
->cookie
);
1760 dump_abstime( ", timeout=", &req
->timeout
);
1761 fprintf( stderr
, ", size=%u", req
->size
);
1762 fprintf( stderr
, ", prev_apc=%04x", req
->prev_apc
);
1763 dump_varargs_apc_result( ", result=", cur_size
);
1764 dump_varargs_select_op( ", data=", min(cur_size
,req
->size
) );
1765 dump_varargs_context( ", context=", cur_size
);
1768 static void dump_select_reply( const struct select_reply
*req
)
1770 dump_apc_call( " call=", &req
->call
);
1771 fprintf( stderr
, ", apc_handle=%04x", req
->apc_handle
);
1772 dump_varargs_context( ", context=", cur_size
);
1775 static void dump_create_event_request( const struct create_event_request
*req
)
1777 fprintf( stderr
, " access=%08x", req
->access
);
1778 fprintf( stderr
, ", manual_reset=%d", req
->manual_reset
);
1779 fprintf( stderr
, ", initial_state=%d", req
->initial_state
);
1780 dump_varargs_object_attributes( ", objattr=", cur_size
);
1783 static void dump_create_event_reply( const struct create_event_reply
*req
)
1785 fprintf( stderr
, " handle=%04x", req
->handle
);
1788 static void dump_event_op_request( const struct event_op_request
*req
)
1790 fprintf( stderr
, " handle=%04x", req
->handle
);
1791 fprintf( stderr
, ", op=%d", req
->op
);
1794 static void dump_event_op_reply( const struct event_op_reply
*req
)
1796 fprintf( stderr
, " state=%d", req
->state
);
1799 static void dump_query_event_request( const struct query_event_request
*req
)
1801 fprintf( stderr
, " handle=%04x", req
->handle
);
1804 static void dump_query_event_reply( const struct query_event_reply
*req
)
1806 fprintf( stderr
, " manual_reset=%d", req
->manual_reset
);
1807 fprintf( stderr
, ", state=%d", req
->state
);
1810 static void dump_open_event_request( const struct open_event_request
*req
)
1812 fprintf( stderr
, " access=%08x", req
->access
);
1813 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1814 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
1815 dump_varargs_unicode_str( ", name=", cur_size
);
1818 static void dump_open_event_reply( const struct open_event_reply
*req
)
1820 fprintf( stderr
, " handle=%04x", req
->handle
);
1823 static void dump_create_keyed_event_request( const struct create_keyed_event_request
*req
)
1825 fprintf( stderr
, " access=%08x", req
->access
);
1826 dump_varargs_object_attributes( ", objattr=", cur_size
);
1829 static void dump_create_keyed_event_reply( const struct create_keyed_event_reply
*req
)
1831 fprintf( stderr
, " handle=%04x", req
->handle
);
1834 static void dump_open_keyed_event_request( const struct open_keyed_event_request
*req
)
1836 fprintf( stderr
, " access=%08x", req
->access
);
1837 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1838 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
1839 dump_varargs_unicode_str( ", name=", cur_size
);
1842 static void dump_open_keyed_event_reply( const struct open_keyed_event_reply
*req
)
1844 fprintf( stderr
, " handle=%04x", req
->handle
);
1847 static void dump_create_mutex_request( const struct create_mutex_request
*req
)
1849 fprintf( stderr
, " access=%08x", req
->access
);
1850 fprintf( stderr
, ", owned=%d", req
->owned
);
1851 dump_varargs_object_attributes( ", objattr=", cur_size
);
1854 static void dump_create_mutex_reply( const struct create_mutex_reply
*req
)
1856 fprintf( stderr
, " handle=%04x", req
->handle
);
1859 static void dump_release_mutex_request( const struct release_mutex_request
*req
)
1861 fprintf( stderr
, " handle=%04x", req
->handle
);
1864 static void dump_release_mutex_reply( const struct release_mutex_reply
*req
)
1866 fprintf( stderr
, " prev_count=%08x", req
->prev_count
);
1869 static void dump_open_mutex_request( const struct open_mutex_request
*req
)
1871 fprintf( stderr
, " access=%08x", req
->access
);
1872 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1873 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
1874 dump_varargs_unicode_str( ", name=", cur_size
);
1877 static void dump_open_mutex_reply( const struct open_mutex_reply
*req
)
1879 fprintf( stderr
, " handle=%04x", req
->handle
);
1882 static void dump_query_mutex_request( const struct query_mutex_request
*req
)
1884 fprintf( stderr
, " handle=%04x", req
->handle
);
1887 static void dump_query_mutex_reply( const struct query_mutex_reply
*req
)
1889 fprintf( stderr
, " count=%08x", req
->count
);
1890 fprintf( stderr
, ", owned=%d", req
->owned
);
1891 fprintf( stderr
, ", abandoned=%d", req
->abandoned
);
1894 static void dump_create_semaphore_request( const struct create_semaphore_request
*req
)
1896 fprintf( stderr
, " access=%08x", req
->access
);
1897 fprintf( stderr
, ", initial=%08x", req
->initial
);
1898 fprintf( stderr
, ", max=%08x", req
->max
);
1899 dump_varargs_object_attributes( ", objattr=", cur_size
);
1902 static void dump_create_semaphore_reply( const struct create_semaphore_reply
*req
)
1904 fprintf( stderr
, " handle=%04x", req
->handle
);
1907 static void dump_release_semaphore_request( const struct release_semaphore_request
*req
)
1909 fprintf( stderr
, " handle=%04x", req
->handle
);
1910 fprintf( stderr
, ", count=%08x", req
->count
);
1913 static void dump_release_semaphore_reply( const struct release_semaphore_reply
*req
)
1915 fprintf( stderr
, " prev_count=%08x", req
->prev_count
);
1918 static void dump_query_semaphore_request( const struct query_semaphore_request
*req
)
1920 fprintf( stderr
, " handle=%04x", req
->handle
);
1923 static void dump_query_semaphore_reply( const struct query_semaphore_reply
*req
)
1925 fprintf( stderr
, " current=%08x", req
->current
);
1926 fprintf( stderr
, ", max=%08x", req
->max
);
1929 static void dump_open_semaphore_request( const struct open_semaphore_request
*req
)
1931 fprintf( stderr
, " access=%08x", req
->access
);
1932 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1933 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
1934 dump_varargs_unicode_str( ", name=", cur_size
);
1937 static void dump_open_semaphore_reply( const struct open_semaphore_reply
*req
)
1939 fprintf( stderr
, " handle=%04x", req
->handle
);
1942 static void dump_create_file_request( const struct create_file_request
*req
)
1944 fprintf( stderr
, " access=%08x", req
->access
);
1945 fprintf( stderr
, ", sharing=%08x", req
->sharing
);
1946 fprintf( stderr
, ", create=%d", req
->create
);
1947 fprintf( stderr
, ", options=%08x", req
->options
);
1948 fprintf( stderr
, ", attrs=%08x", req
->attrs
);
1949 dump_varargs_object_attributes( ", objattr=", cur_size
);
1950 dump_varargs_string( ", filename=", cur_size
);
1953 static void dump_create_file_reply( const struct create_file_reply
*req
)
1955 fprintf( stderr
, " handle=%04x", req
->handle
);
1958 static void dump_open_file_object_request( const struct open_file_object_request
*req
)
1960 fprintf( stderr
, " access=%08x", req
->access
);
1961 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1962 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
1963 fprintf( stderr
, ", sharing=%08x", req
->sharing
);
1964 fprintf( stderr
, ", options=%08x", req
->options
);
1965 dump_varargs_unicode_str( ", filename=", cur_size
);
1968 static void dump_open_file_object_reply( const struct open_file_object_reply
*req
)
1970 fprintf( stderr
, " handle=%04x", req
->handle
);
1973 static void dump_alloc_file_handle_request( const struct alloc_file_handle_request
*req
)
1975 fprintf( stderr
, " access=%08x", req
->access
);
1976 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
1977 fprintf( stderr
, ", fd=%d", req
->fd
);
1980 static void dump_alloc_file_handle_reply( const struct alloc_file_handle_reply
*req
)
1982 fprintf( stderr
, " handle=%04x", req
->handle
);
1985 static void dump_get_handle_unix_name_request( const struct get_handle_unix_name_request
*req
)
1987 fprintf( stderr
, " handle=%04x", req
->handle
);
1990 static void dump_get_handle_unix_name_reply( const struct get_handle_unix_name_reply
*req
)
1992 fprintf( stderr
, " name_len=%u", req
->name_len
);
1993 dump_varargs_string( ", name=", cur_size
);
1996 static void dump_get_handle_fd_request( const struct get_handle_fd_request
*req
)
1998 fprintf( stderr
, " handle=%04x", req
->handle
);
2001 static void dump_get_handle_fd_reply( const struct get_handle_fd_reply
*req
)
2003 fprintf( stderr
, " type=%d", req
->type
);
2004 fprintf( stderr
, ", cacheable=%d", req
->cacheable
);
2005 fprintf( stderr
, ", access=%08x", req
->access
);
2006 fprintf( stderr
, ", options=%08x", req
->options
);
2009 static void dump_get_directory_cache_entry_request( const struct get_directory_cache_entry_request
*req
)
2011 fprintf( stderr
, " handle=%04x", req
->handle
);
2014 static void dump_get_directory_cache_entry_reply( const struct get_directory_cache_entry_reply
*req
)
2016 fprintf( stderr
, " entry=%d", req
->entry
);
2017 dump_varargs_ints( ", free=", cur_size
);
2020 static void dump_flush_request( const struct flush_request
*req
)
2022 dump_async_data( " async=", &req
->async
);
2025 static void dump_flush_reply( const struct flush_reply
*req
)
2027 fprintf( stderr
, " event=%04x", req
->event
);
2030 static void dump_get_file_info_request( const struct get_file_info_request
*req
)
2032 fprintf( stderr
, " handle=%04x", req
->handle
);
2033 fprintf( stderr
, ", info_class=%08x", req
->info_class
);
2036 static void dump_get_file_info_reply( const struct get_file_info_reply
*req
)
2038 dump_varargs_bytes( " data=", cur_size
);
2041 static void dump_get_volume_info_request( const struct get_volume_info_request
*req
)
2043 fprintf( stderr
, " handle=%04x", req
->handle
);
2044 dump_async_data( ", async=", &req
->async
);
2045 fprintf( stderr
, ", info_class=%08x", req
->info_class
);
2048 static void dump_get_volume_info_reply( const struct get_volume_info_reply
*req
)
2050 fprintf( stderr
, " wait=%04x", req
->wait
);
2051 dump_varargs_bytes( ", data=", cur_size
);
2054 static void dump_lock_file_request( const struct lock_file_request
*req
)
2056 fprintf( stderr
, " handle=%04x", req
->handle
);
2057 dump_uint64( ", offset=", &req
->offset
);
2058 dump_uint64( ", count=", &req
->count
);
2059 fprintf( stderr
, ", shared=%d", req
->shared
);
2060 fprintf( stderr
, ", wait=%d", req
->wait
);
2063 static void dump_lock_file_reply( const struct lock_file_reply
*req
)
2065 fprintf( stderr
, " handle=%04x", req
->handle
);
2066 fprintf( stderr
, ", overlapped=%d", req
->overlapped
);
2069 static void dump_unlock_file_request( const struct unlock_file_request
*req
)
2071 fprintf( stderr
, " handle=%04x", req
->handle
);
2072 dump_uint64( ", offset=", &req
->offset
);
2073 dump_uint64( ", count=", &req
->count
);
2076 static void dump_get_socket_event_request( const struct get_socket_event_request
*req
)
2078 fprintf( stderr
, " handle=%04x", req
->handle
);
2079 fprintf( stderr
, ", service=%d", req
->service
);
2080 fprintf( stderr
, ", c_event=%04x", req
->c_event
);
2083 static void dump_get_socket_event_reply( const struct get_socket_event_reply
*req
)
2085 fprintf( stderr
, " mask=%08x", req
->mask
);
2086 fprintf( stderr
, ", pmask=%08x", req
->pmask
);
2087 dump_varargs_ints( ", errors=", cur_size
);
2090 static void dump_recv_socket_request( const struct recv_socket_request
*req
)
2092 fprintf( stderr
, " oob=%d", req
->oob
);
2093 dump_async_data( ", async=", &req
->async
);
2094 fprintf( stderr
, ", status=%08x", req
->status
);
2095 fprintf( stderr
, ", total=%08x", req
->total
);
2098 static void dump_recv_socket_reply( const struct recv_socket_reply
*req
)
2100 fprintf( stderr
, " wait=%04x", req
->wait
);
2101 fprintf( stderr
, ", options=%08x", req
->options
);
2104 static void dump_poll_socket_request( const struct poll_socket_request
*req
)
2106 dump_async_data( " async=", &req
->async
);
2107 dump_timeout( ", timeout=", &req
->timeout
);
2108 dump_varargs_poll_socket_input( ", sockets=", cur_size
);
2111 static void dump_poll_socket_reply( const struct poll_socket_reply
*req
)
2113 fprintf( stderr
, " wait=%04x", req
->wait
);
2114 fprintf( stderr
, ", options=%08x", req
->options
);
2115 dump_varargs_poll_socket_output( ", sockets=", cur_size
);
2118 static void dump_send_socket_request( const struct send_socket_request
*req
)
2120 dump_async_data( " async=", &req
->async
);
2121 fprintf( stderr
, ", status=%08x", req
->status
);
2122 fprintf( stderr
, ", total=%08x", req
->total
);
2125 static void dump_send_socket_reply( const struct send_socket_reply
*req
)
2127 fprintf( stderr
, " wait=%04x", req
->wait
);
2128 fprintf( stderr
, ", options=%08x", req
->options
);
2131 static void dump_get_next_console_request_request( const struct get_next_console_request_request
*req
)
2133 fprintf( stderr
, " handle=%04x", req
->handle
);
2134 fprintf( stderr
, ", signal=%d", req
->signal
);
2135 fprintf( stderr
, ", read=%d", req
->read
);
2136 fprintf( stderr
, ", status=%08x", req
->status
);
2137 dump_varargs_bytes( ", out_data=", cur_size
);
2140 static void dump_get_next_console_request_reply( const struct get_next_console_request_reply
*req
)
2142 fprintf( stderr
, " code=%08x", req
->code
);
2143 fprintf( stderr
, ", output=%08x", req
->output
);
2144 fprintf( stderr
, ", out_size=%u", req
->out_size
);
2145 dump_varargs_bytes( ", in_data=", cur_size
);
2148 static void dump_read_directory_changes_request( const struct read_directory_changes_request
*req
)
2150 fprintf( stderr
, " filter=%08x", req
->filter
);
2151 fprintf( stderr
, ", subtree=%d", req
->subtree
);
2152 fprintf( stderr
, ", want_data=%d", req
->want_data
);
2153 dump_async_data( ", async=", &req
->async
);
2156 static void dump_read_change_request( const struct read_change_request
*req
)
2158 fprintf( stderr
, " handle=%04x", req
->handle
);
2161 static void dump_read_change_reply( const struct read_change_reply
*req
)
2163 dump_varargs_filesystem_event( " events=", cur_size
);
2166 static void dump_create_mapping_request( const struct create_mapping_request
*req
)
2168 fprintf( stderr
, " access=%08x", req
->access
);
2169 fprintf( stderr
, ", flags=%08x", req
->flags
);
2170 fprintf( stderr
, ", file_access=%08x", req
->file_access
);
2171 dump_uint64( ", size=", &req
->size
);
2172 fprintf( stderr
, ", file_handle=%04x", req
->file_handle
);
2173 dump_varargs_object_attributes( ", objattr=", cur_size
);
2176 static void dump_create_mapping_reply( const struct create_mapping_reply
*req
)
2178 fprintf( stderr
, " handle=%04x", req
->handle
);
2181 static void dump_open_mapping_request( const struct open_mapping_request
*req
)
2183 fprintf( stderr
, " access=%08x", req
->access
);
2184 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
2185 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
2186 dump_varargs_unicode_str( ", name=", cur_size
);
2189 static void dump_open_mapping_reply( const struct open_mapping_reply
*req
)
2191 fprintf( stderr
, " handle=%04x", req
->handle
);
2194 static void dump_get_mapping_info_request( const struct get_mapping_info_request
*req
)
2196 fprintf( stderr
, " handle=%04x", req
->handle
);
2197 fprintf( stderr
, ", access=%08x", req
->access
);
2200 static void dump_get_mapping_info_reply( const struct get_mapping_info_reply
*req
)
2202 dump_uint64( " size=", &req
->size
);
2203 fprintf( stderr
, ", flags=%08x", req
->flags
);
2204 fprintf( stderr
, ", shared_file=%04x", req
->shared_file
);
2205 fprintf( stderr
, ", total=%u", req
->total
);
2206 dump_varargs_pe_image_info( ", image=", cur_size
);
2207 dump_varargs_unicode_str( ", name=", cur_size
);
2210 static void dump_map_view_request( const struct map_view_request
*req
)
2212 fprintf( stderr
, " mapping=%04x", req
->mapping
);
2213 fprintf( stderr
, ", access=%08x", req
->access
);
2214 dump_uint64( ", base=", &req
->base
);
2215 dump_uint64( ", size=", &req
->size
);
2216 dump_uint64( ", start=", &req
->start
);
2217 dump_varargs_pe_image_info( ", image=", cur_size
);
2218 dump_varargs_unicode_str( ", name=", cur_size
);
2221 static void dump_unmap_view_request( const struct unmap_view_request
*req
)
2223 dump_uint64( " base=", &req
->base
);
2226 static void dump_get_mapping_committed_range_request( const struct get_mapping_committed_range_request
*req
)
2228 dump_uint64( " base=", &req
->base
);
2229 dump_uint64( ", offset=", &req
->offset
);
2232 static void dump_get_mapping_committed_range_reply( const struct get_mapping_committed_range_reply
*req
)
2234 dump_uint64( " size=", &req
->size
);
2235 fprintf( stderr
, ", committed=%d", req
->committed
);
2238 static void dump_add_mapping_committed_range_request( const struct add_mapping_committed_range_request
*req
)
2240 dump_uint64( " base=", &req
->base
);
2241 dump_uint64( ", offset=", &req
->offset
);
2242 dump_uint64( ", size=", &req
->size
);
2245 static void dump_is_same_mapping_request( const struct is_same_mapping_request
*req
)
2247 dump_uint64( " base1=", &req
->base1
);
2248 dump_uint64( ", base2=", &req
->base2
);
2251 static void dump_get_mapping_filename_request( const struct get_mapping_filename_request
*req
)
2253 fprintf( stderr
, " process=%04x", req
->process
);
2254 dump_uint64( ", addr=", &req
->addr
);
2257 static void dump_get_mapping_filename_reply( const struct get_mapping_filename_reply
*req
)
2259 fprintf( stderr
, " len=%u", req
->len
);
2260 dump_varargs_unicode_str( ", filename=", cur_size
);
2263 static void dump_list_processes_request( const struct list_processes_request
*req
)
2267 static void dump_list_processes_reply( const struct list_processes_reply
*req
)
2269 fprintf( stderr
, " info_size=%u", req
->info_size
);
2270 fprintf( stderr
, ", process_count=%d", req
->process_count
);
2271 dump_varargs_process_info( ", data=", min(cur_size
,req
->info_size
) );
2274 static void dump_create_debug_obj_request( const struct create_debug_obj_request
*req
)
2276 fprintf( stderr
, " access=%08x", req
->access
);
2277 fprintf( stderr
, ", flags=%08x", req
->flags
);
2278 dump_varargs_object_attributes( ", objattr=", cur_size
);
2281 static void dump_create_debug_obj_reply( const struct create_debug_obj_reply
*req
)
2283 fprintf( stderr
, " handle=%04x", req
->handle
);
2286 static void dump_wait_debug_event_request( const struct wait_debug_event_request
*req
)
2288 fprintf( stderr
, " debug=%04x", req
->debug
);
2291 static void dump_wait_debug_event_reply( const struct wait_debug_event_reply
*req
)
2293 fprintf( stderr
, " pid=%04x", req
->pid
);
2294 fprintf( stderr
, ", tid=%04x", req
->tid
);
2295 dump_varargs_debug_event( ", event=", cur_size
);
2298 static void dump_queue_exception_event_request( const struct queue_exception_event_request
*req
)
2300 fprintf( stderr
, " first=%d", req
->first
);
2301 fprintf( stderr
, ", code=%08x", req
->code
);
2302 fprintf( stderr
, ", flags=%08x", req
->flags
);
2303 dump_uint64( ", record=", &req
->record
);
2304 dump_uint64( ", address=", &req
->address
);
2305 fprintf( stderr
, ", len=%u", req
->len
);
2306 dump_varargs_uints64( ", params=", min(cur_size
,req
->len
) );
2309 static void dump_queue_exception_event_reply( const struct queue_exception_event_reply
*req
)
2311 fprintf( stderr
, " handle=%04x", req
->handle
);
2314 static void dump_get_exception_status_request( const struct get_exception_status_request
*req
)
2316 fprintf( stderr
, " handle=%04x", req
->handle
);
2319 static void dump_continue_debug_event_request( const struct continue_debug_event_request
*req
)
2321 fprintf( stderr
, " debug=%04x", req
->debug
);
2322 fprintf( stderr
, ", pid=%04x", req
->pid
);
2323 fprintf( stderr
, ", tid=%04x", req
->tid
);
2324 fprintf( stderr
, ", status=%08x", req
->status
);
2327 static void dump_debug_process_request( const struct debug_process_request
*req
)
2329 fprintf( stderr
, " handle=%04x", req
->handle
);
2330 fprintf( stderr
, ", debug=%04x", req
->debug
);
2331 fprintf( stderr
, ", attach=%d", req
->attach
);
2334 static void dump_set_debug_obj_info_request( const struct set_debug_obj_info_request
*req
)
2336 fprintf( stderr
, " debug=%04x", req
->debug
);
2337 fprintf( stderr
, ", flags=%08x", req
->flags
);
2340 static void dump_read_process_memory_request( const struct read_process_memory_request
*req
)
2342 fprintf( stderr
, " handle=%04x", req
->handle
);
2343 dump_uint64( ", addr=", &req
->addr
);
2346 static void dump_read_process_memory_reply( const struct read_process_memory_reply
*req
)
2348 dump_varargs_bytes( " data=", cur_size
);
2351 static void dump_write_process_memory_request( const struct write_process_memory_request
*req
)
2353 fprintf( stderr
, " handle=%04x", req
->handle
);
2354 dump_uint64( ", addr=", &req
->addr
);
2355 dump_varargs_bytes( ", data=", cur_size
);
2358 static void dump_create_key_request( const struct create_key_request
*req
)
2360 fprintf( stderr
, " access=%08x", req
->access
);
2361 fprintf( stderr
, ", options=%08x", req
->options
);
2362 dump_varargs_object_attributes( ", objattr=", cur_size
);
2363 dump_varargs_unicode_str( ", class=", cur_size
);
2366 static void dump_create_key_reply( const struct create_key_reply
*req
)
2368 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2369 fprintf( stderr
, ", created=%d", req
->created
);
2372 static void dump_open_key_request( const struct open_key_request
*req
)
2374 fprintf( stderr
, " parent=%04x", req
->parent
);
2375 fprintf( stderr
, ", access=%08x", req
->access
);
2376 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
2377 dump_varargs_unicode_str( ", name=", cur_size
);
2380 static void dump_open_key_reply( const struct open_key_reply
*req
)
2382 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2385 static void dump_delete_key_request( const struct delete_key_request
*req
)
2387 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2390 static void dump_flush_key_request( const struct flush_key_request
*req
)
2392 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2395 static void dump_enum_key_request( const struct enum_key_request
*req
)
2397 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2398 fprintf( stderr
, ", index=%d", req
->index
);
2399 fprintf( stderr
, ", info_class=%d", req
->info_class
);
2402 static void dump_enum_key_reply( const struct enum_key_reply
*req
)
2404 fprintf( stderr
, " subkeys=%d", req
->subkeys
);
2405 fprintf( stderr
, ", max_subkey=%d", req
->max_subkey
);
2406 fprintf( stderr
, ", max_class=%d", req
->max_class
);
2407 fprintf( stderr
, ", values=%d", req
->values
);
2408 fprintf( stderr
, ", max_value=%d", req
->max_value
);
2409 fprintf( stderr
, ", max_data=%d", req
->max_data
);
2410 dump_timeout( ", modif=", &req
->modif
);
2411 fprintf( stderr
, ", total=%u", req
->total
);
2412 fprintf( stderr
, ", namelen=%u", req
->namelen
);
2413 dump_varargs_unicode_str( ", name=", min(cur_size
,req
->namelen
) );
2414 dump_varargs_unicode_str( ", class=", cur_size
);
2417 static void dump_set_key_value_request( const struct set_key_value_request
*req
)
2419 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2420 fprintf( stderr
, ", type=%d", req
->type
);
2421 fprintf( stderr
, ", namelen=%u", req
->namelen
);
2422 dump_varargs_unicode_str( ", name=", min(cur_size
,req
->namelen
) );
2423 dump_varargs_bytes( ", data=", cur_size
);
2426 static void dump_get_key_value_request( const struct get_key_value_request
*req
)
2428 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2429 dump_varargs_unicode_str( ", name=", cur_size
);
2432 static void dump_get_key_value_reply( const struct get_key_value_reply
*req
)
2434 fprintf( stderr
, " type=%d", req
->type
);
2435 fprintf( stderr
, ", total=%u", req
->total
);
2436 dump_varargs_bytes( ", data=", cur_size
);
2439 static void dump_enum_key_value_request( const struct enum_key_value_request
*req
)
2441 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2442 fprintf( stderr
, ", index=%d", req
->index
);
2443 fprintf( stderr
, ", info_class=%d", req
->info_class
);
2446 static void dump_enum_key_value_reply( const struct enum_key_value_reply
*req
)
2448 fprintf( stderr
, " type=%d", req
->type
);
2449 fprintf( stderr
, ", total=%u", req
->total
);
2450 fprintf( stderr
, ", namelen=%u", req
->namelen
);
2451 dump_varargs_unicode_str( ", name=", min(cur_size
,req
->namelen
) );
2452 dump_varargs_bytes( ", data=", cur_size
);
2455 static void dump_delete_key_value_request( const struct delete_key_value_request
*req
)
2457 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2458 dump_varargs_unicode_str( ", name=", cur_size
);
2461 static void dump_load_registry_request( const struct load_registry_request
*req
)
2463 fprintf( stderr
, " file=%04x", req
->file
);
2464 dump_varargs_object_attributes( ", objattr=", cur_size
);
2467 static void dump_unload_registry_request( const struct unload_registry_request
*req
)
2469 fprintf( stderr
, " parent=%04x", req
->parent
);
2470 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
2471 dump_varargs_unicode_str( ", name=", cur_size
);
2474 static void dump_save_registry_request( const struct save_registry_request
*req
)
2476 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2477 fprintf( stderr
, ", file=%04x", req
->file
);
2480 static void dump_set_registry_notification_request( const struct set_registry_notification_request
*req
)
2482 fprintf( stderr
, " hkey=%04x", req
->hkey
);
2483 fprintf( stderr
, ", event=%04x", req
->event
);
2484 fprintf( stderr
, ", subtree=%d", req
->subtree
);
2485 fprintf( stderr
, ", filter=%08x", req
->filter
);
2488 static void dump_create_timer_request( const struct create_timer_request
*req
)
2490 fprintf( stderr
, " access=%08x", req
->access
);
2491 fprintf( stderr
, ", manual=%d", req
->manual
);
2492 dump_varargs_object_attributes( ", objattr=", cur_size
);
2495 static void dump_create_timer_reply( const struct create_timer_reply
*req
)
2497 fprintf( stderr
, " handle=%04x", req
->handle
);
2500 static void dump_open_timer_request( const struct open_timer_request
*req
)
2502 fprintf( stderr
, " access=%08x", req
->access
);
2503 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
2504 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
2505 dump_varargs_unicode_str( ", name=", cur_size
);
2508 static void dump_open_timer_reply( const struct open_timer_reply
*req
)
2510 fprintf( stderr
, " handle=%04x", req
->handle
);
2513 static void dump_set_timer_request( const struct set_timer_request
*req
)
2515 fprintf( stderr
, " handle=%04x", req
->handle
);
2516 dump_timeout( ", expire=", &req
->expire
);
2517 dump_uint64( ", callback=", &req
->callback
);
2518 dump_uint64( ", arg=", &req
->arg
);
2519 fprintf( stderr
, ", period=%d", req
->period
);
2522 static void dump_set_timer_reply( const struct set_timer_reply
*req
)
2524 fprintf( stderr
, " signaled=%d", req
->signaled
);
2527 static void dump_cancel_timer_request( const struct cancel_timer_request
*req
)
2529 fprintf( stderr
, " handle=%04x", req
->handle
);
2532 static void dump_cancel_timer_reply( const struct cancel_timer_reply
*req
)
2534 fprintf( stderr
, " signaled=%d", req
->signaled
);
2537 static void dump_get_timer_info_request( const struct get_timer_info_request
*req
)
2539 fprintf( stderr
, " handle=%04x", req
->handle
);
2542 static void dump_get_timer_info_reply( const struct get_timer_info_reply
*req
)
2544 dump_timeout( " when=", &req
->when
);
2545 fprintf( stderr
, ", signaled=%d", req
->signaled
);
2548 static void dump_get_thread_context_request( const struct get_thread_context_request
*req
)
2550 fprintf( stderr
, " handle=%04x", req
->handle
);
2551 fprintf( stderr
, ", flags=%08x", req
->flags
);
2554 static void dump_get_thread_context_reply( const struct get_thread_context_reply
*req
)
2556 fprintf( stderr
, " self=%d", req
->self
);
2557 fprintf( stderr
, ", handle=%04x", req
->handle
);
2558 dump_varargs_context( ", context=", cur_size
);
2561 static void dump_set_thread_context_request( const struct set_thread_context_request
*req
)
2563 fprintf( stderr
, " handle=%04x", req
->handle
);
2564 dump_varargs_context( ", context=", cur_size
);
2567 static void dump_set_thread_context_reply( const struct set_thread_context_reply
*req
)
2569 fprintf( stderr
, " self=%d", req
->self
);
2572 static void dump_get_selector_entry_request( const struct get_selector_entry_request
*req
)
2574 fprintf( stderr
, " handle=%04x", req
->handle
);
2575 fprintf( stderr
, ", entry=%d", req
->entry
);
2578 static void dump_get_selector_entry_reply( const struct get_selector_entry_reply
*req
)
2580 fprintf( stderr
, " base=%08x", req
->base
);
2581 fprintf( stderr
, ", limit=%08x", req
->limit
);
2582 fprintf( stderr
, ", flags=%02x", req
->flags
);
2585 static void dump_add_atom_request( const struct add_atom_request
*req
)
2587 dump_varargs_unicode_str( " name=", cur_size
);
2590 static void dump_add_atom_reply( const struct add_atom_reply
*req
)
2592 fprintf( stderr
, " atom=%04x", req
->atom
);
2595 static void dump_delete_atom_request( const struct delete_atom_request
*req
)
2597 fprintf( stderr
, " atom=%04x", req
->atom
);
2600 static void dump_find_atom_request( const struct find_atom_request
*req
)
2602 dump_varargs_unicode_str( " name=", cur_size
);
2605 static void dump_find_atom_reply( const struct find_atom_reply
*req
)
2607 fprintf( stderr
, " atom=%04x", req
->atom
);
2610 static void dump_get_atom_information_request( const struct get_atom_information_request
*req
)
2612 fprintf( stderr
, " atom=%04x", req
->atom
);
2615 static void dump_get_atom_information_reply( const struct get_atom_information_reply
*req
)
2617 fprintf( stderr
, " count=%d", req
->count
);
2618 fprintf( stderr
, ", pinned=%d", req
->pinned
);
2619 fprintf( stderr
, ", total=%u", req
->total
);
2620 dump_varargs_unicode_str( ", name=", cur_size
);
2623 static void dump_get_msg_queue_request( const struct get_msg_queue_request
*req
)
2627 static void dump_get_msg_queue_reply( const struct get_msg_queue_reply
*req
)
2629 fprintf( stderr
, " handle=%04x", req
->handle
);
2632 static void dump_set_queue_fd_request( const struct set_queue_fd_request
*req
)
2634 fprintf( stderr
, " handle=%04x", req
->handle
);
2637 static void dump_set_queue_mask_request( const struct set_queue_mask_request
*req
)
2639 fprintf( stderr
, " wake_mask=%08x", req
->wake_mask
);
2640 fprintf( stderr
, ", changed_mask=%08x", req
->changed_mask
);
2641 fprintf( stderr
, ", skip_wait=%d", req
->skip_wait
);
2644 static void dump_set_queue_mask_reply( const struct set_queue_mask_reply
*req
)
2646 fprintf( stderr
, " wake_bits=%08x", req
->wake_bits
);
2647 fprintf( stderr
, ", changed_bits=%08x", req
->changed_bits
);
2650 static void dump_get_queue_status_request( const struct get_queue_status_request
*req
)
2652 fprintf( stderr
, " clear_bits=%08x", req
->clear_bits
);
2655 static void dump_get_queue_status_reply( const struct get_queue_status_reply
*req
)
2657 fprintf( stderr
, " wake_bits=%08x", req
->wake_bits
);
2658 fprintf( stderr
, ", changed_bits=%08x", req
->changed_bits
);
2661 static void dump_get_process_idle_event_request( const struct get_process_idle_event_request
*req
)
2663 fprintf( stderr
, " handle=%04x", req
->handle
);
2666 static void dump_get_process_idle_event_reply( const struct get_process_idle_event_reply
*req
)
2668 fprintf( stderr
, " event=%04x", req
->event
);
2671 static void dump_send_message_request( const struct send_message_request
*req
)
2673 fprintf( stderr
, " id=%04x", req
->id
);
2674 fprintf( stderr
, ", type=%d", req
->type
);
2675 fprintf( stderr
, ", flags=%d", req
->flags
);
2676 fprintf( stderr
, ", win=%08x", req
->win
);
2677 fprintf( stderr
, ", msg=%08x", req
->msg
);
2678 dump_uint64( ", wparam=", &req
->wparam
);
2679 dump_uint64( ", lparam=", &req
->lparam
);
2680 dump_timeout( ", timeout=", &req
->timeout
);
2681 dump_varargs_message_data( ", data=", cur_size
);
2684 static void dump_post_quit_message_request( const struct post_quit_message_request
*req
)
2686 fprintf( stderr
, " exit_code=%d", req
->exit_code
);
2689 static void dump_send_hardware_message_request( const struct send_hardware_message_request
*req
)
2691 fprintf( stderr
, " win=%08x", req
->win
);
2692 dump_hw_input( ", input=", &req
->input
);
2693 fprintf( stderr
, ", flags=%08x", req
->flags
);
2694 dump_varargs_bytes( ", report=", cur_size
);
2697 static void dump_send_hardware_message_reply( const struct send_hardware_message_reply
*req
)
2699 fprintf( stderr
, " wait=%d", req
->wait
);
2700 fprintf( stderr
, ", prev_x=%d", req
->prev_x
);
2701 fprintf( stderr
, ", prev_y=%d", req
->prev_y
);
2702 fprintf( stderr
, ", new_x=%d", req
->new_x
);
2703 fprintf( stderr
, ", new_y=%d", req
->new_y
);
2704 dump_varargs_bytes( ", keystate=", cur_size
);
2707 static void dump_get_message_request( const struct get_message_request
*req
)
2709 fprintf( stderr
, " flags=%08x", req
->flags
);
2710 fprintf( stderr
, ", get_win=%08x", req
->get_win
);
2711 fprintf( stderr
, ", get_first=%08x", req
->get_first
);
2712 fprintf( stderr
, ", get_last=%08x", req
->get_last
);
2713 fprintf( stderr
, ", hw_id=%08x", req
->hw_id
);
2714 fprintf( stderr
, ", wake_mask=%08x", req
->wake_mask
);
2715 fprintf( stderr
, ", changed_mask=%08x", req
->changed_mask
);
2718 static void dump_get_message_reply( const struct get_message_reply
*req
)
2720 fprintf( stderr
, " win=%08x", req
->win
);
2721 fprintf( stderr
, ", msg=%08x", req
->msg
);
2722 dump_uint64( ", wparam=", &req
->wparam
);
2723 dump_uint64( ", lparam=", &req
->lparam
);
2724 fprintf( stderr
, ", type=%d", req
->type
);
2725 fprintf( stderr
, ", x=%d", req
->x
);
2726 fprintf( stderr
, ", y=%d", req
->y
);
2727 fprintf( stderr
, ", time=%08x", req
->time
);
2728 fprintf( stderr
, ", active_hooks=%08x", req
->active_hooks
);
2729 fprintf( stderr
, ", total=%u", req
->total
);
2730 dump_varargs_message_data( ", data=", cur_size
);
2733 static void dump_reply_message_request( const struct reply_message_request
*req
)
2735 fprintf( stderr
, " remove=%d", req
->remove
);
2736 dump_uint64( ", result=", &req
->result
);
2737 dump_varargs_bytes( ", data=", cur_size
);
2740 static void dump_accept_hardware_message_request( const struct accept_hardware_message_request
*req
)
2742 fprintf( stderr
, " hw_id=%08x", req
->hw_id
);
2745 static void dump_get_message_reply_request( const struct get_message_reply_request
*req
)
2747 fprintf( stderr
, " cancel=%d", req
->cancel
);
2750 static void dump_get_message_reply_reply( const struct get_message_reply_reply
*req
)
2752 dump_uint64( " result=", &req
->result
);
2753 dump_varargs_bytes( ", data=", cur_size
);
2756 static void dump_set_win_timer_request( const struct set_win_timer_request
*req
)
2758 fprintf( stderr
, " win=%08x", req
->win
);
2759 fprintf( stderr
, ", msg=%08x", req
->msg
);
2760 fprintf( stderr
, ", rate=%08x", req
->rate
);
2761 dump_uint64( ", id=", &req
->id
);
2762 dump_uint64( ", lparam=", &req
->lparam
);
2765 static void dump_set_win_timer_reply( const struct set_win_timer_reply
*req
)
2767 dump_uint64( " id=", &req
->id
);
2770 static void dump_kill_win_timer_request( const struct kill_win_timer_request
*req
)
2772 fprintf( stderr
, " win=%08x", req
->win
);
2773 dump_uint64( ", id=", &req
->id
);
2774 fprintf( stderr
, ", msg=%08x", req
->msg
);
2777 static void dump_is_window_hung_request( const struct is_window_hung_request
*req
)
2779 fprintf( stderr
, " win=%08x", req
->win
);
2782 static void dump_is_window_hung_reply( const struct is_window_hung_reply
*req
)
2784 fprintf( stderr
, " is_hung=%d", req
->is_hung
);
2787 static void dump_get_serial_info_request( const struct get_serial_info_request
*req
)
2789 fprintf( stderr
, " handle=%04x", req
->handle
);
2790 fprintf( stderr
, ", flags=%d", req
->flags
);
2793 static void dump_get_serial_info_reply( const struct get_serial_info_reply
*req
)
2795 fprintf( stderr
, " eventmask=%08x", req
->eventmask
);
2796 fprintf( stderr
, ", cookie=%08x", req
->cookie
);
2797 fprintf( stderr
, ", pending_write=%08x", req
->pending_write
);
2800 static void dump_set_serial_info_request( const struct set_serial_info_request
*req
)
2802 fprintf( stderr
, " handle=%04x", req
->handle
);
2803 fprintf( stderr
, ", flags=%d", req
->flags
);
2806 static void dump_register_async_request( const struct register_async_request
*req
)
2808 fprintf( stderr
, " type=%d", req
->type
);
2809 dump_async_data( ", async=", &req
->async
);
2810 fprintf( stderr
, ", count=%d", req
->count
);
2813 static void dump_cancel_async_request( const struct cancel_async_request
*req
)
2815 fprintf( stderr
, " handle=%04x", req
->handle
);
2816 dump_uint64( ", iosb=", &req
->iosb
);
2817 fprintf( stderr
, ", only_thread=%d", req
->only_thread
);
2820 static void dump_get_async_result_request( const struct get_async_result_request
*req
)
2822 dump_uint64( " user_arg=", &req
->user_arg
);
2825 static void dump_get_async_result_reply( const struct get_async_result_reply
*req
)
2827 fprintf( stderr
, " size=%u", req
->size
);
2828 dump_varargs_bytes( ", out_data=", cur_size
);
2831 static void dump_read_request( const struct read_request
*req
)
2833 dump_async_data( " async=", &req
->async
);
2834 dump_uint64( ", pos=", &req
->pos
);
2837 static void dump_read_reply( const struct read_reply
*req
)
2839 fprintf( stderr
, " wait=%04x", req
->wait
);
2840 fprintf( stderr
, ", options=%08x", req
->options
);
2841 dump_varargs_bytes( ", data=", cur_size
);
2844 static void dump_write_request( const struct write_request
*req
)
2846 dump_async_data( " async=", &req
->async
);
2847 dump_uint64( ", pos=", &req
->pos
);
2848 dump_varargs_bytes( ", data=", cur_size
);
2851 static void dump_write_reply( const struct write_reply
*req
)
2853 fprintf( stderr
, " wait=%04x", req
->wait
);
2854 fprintf( stderr
, ", options=%08x", req
->options
);
2855 fprintf( stderr
, ", size=%u", req
->size
);
2858 static void dump_ioctl_request( const struct ioctl_request
*req
)
2860 dump_ioctl_code( " code=", &req
->code
);
2861 dump_async_data( ", async=", &req
->async
);
2862 dump_varargs_bytes( ", in_data=", cur_size
);
2865 static void dump_ioctl_reply( const struct ioctl_reply
*req
)
2867 fprintf( stderr
, " wait=%04x", req
->wait
);
2868 fprintf( stderr
, ", options=%08x", req
->options
);
2869 dump_varargs_bytes( ", out_data=", cur_size
);
2872 static void dump_set_irp_result_request( const struct set_irp_result_request
*req
)
2874 fprintf( stderr
, " handle=%04x", req
->handle
);
2875 fprintf( stderr
, ", status=%08x", req
->status
);
2876 fprintf( stderr
, ", size=%u", req
->size
);
2877 dump_varargs_bytes( ", data=", cur_size
);
2880 static void dump_create_named_pipe_request( const struct create_named_pipe_request
*req
)
2882 fprintf( stderr
, " access=%08x", req
->access
);
2883 fprintf( stderr
, ", options=%08x", req
->options
);
2884 fprintf( stderr
, ", sharing=%08x", req
->sharing
);
2885 fprintf( stderr
, ", maxinstances=%08x", req
->maxinstances
);
2886 fprintf( stderr
, ", outsize=%08x", req
->outsize
);
2887 fprintf( stderr
, ", insize=%08x", req
->insize
);
2888 dump_timeout( ", timeout=", &req
->timeout
);
2889 fprintf( stderr
, ", flags=%08x", req
->flags
);
2890 dump_varargs_object_attributes( ", objattr=", cur_size
);
2893 static void dump_create_named_pipe_reply( const struct create_named_pipe_reply
*req
)
2895 fprintf( stderr
, " handle=%04x", req
->handle
);
2898 static void dump_set_named_pipe_info_request( const struct set_named_pipe_info_request
*req
)
2900 fprintf( stderr
, " handle=%04x", req
->handle
);
2901 fprintf( stderr
, ", flags=%08x", req
->flags
);
2904 static void dump_create_window_request( const struct create_window_request
*req
)
2906 fprintf( stderr
, " parent=%08x", req
->parent
);
2907 fprintf( stderr
, ", owner=%08x", req
->owner
);
2908 fprintf( stderr
, ", atom=%04x", req
->atom
);
2909 dump_uint64( ", instance=", &req
->instance
);
2910 fprintf( stderr
, ", dpi=%d", req
->dpi
);
2911 fprintf( stderr
, ", awareness=%d", req
->awareness
);
2912 dump_varargs_unicode_str( ", class=", cur_size
);
2915 static void dump_create_window_reply( const struct create_window_reply
*req
)
2917 fprintf( stderr
, " handle=%08x", req
->handle
);
2918 fprintf( stderr
, ", parent=%08x", req
->parent
);
2919 fprintf( stderr
, ", owner=%08x", req
->owner
);
2920 fprintf( stderr
, ", extra=%d", req
->extra
);
2921 dump_uint64( ", class_ptr=", &req
->class_ptr
);
2922 fprintf( stderr
, ", dpi=%d", req
->dpi
);
2923 fprintf( stderr
, ", awareness=%d", req
->awareness
);
2926 static void dump_destroy_window_request( const struct destroy_window_request
*req
)
2928 fprintf( stderr
, " handle=%08x", req
->handle
);
2931 static void dump_get_desktop_window_request( const struct get_desktop_window_request
*req
)
2933 fprintf( stderr
, " force=%d", req
->force
);
2936 static void dump_get_desktop_window_reply( const struct get_desktop_window_reply
*req
)
2938 fprintf( stderr
, " top_window=%08x", req
->top_window
);
2939 fprintf( stderr
, ", msg_window=%08x", req
->msg_window
);
2942 static void dump_set_window_owner_request( const struct set_window_owner_request
*req
)
2944 fprintf( stderr
, " handle=%08x", req
->handle
);
2945 fprintf( stderr
, ", owner=%08x", req
->owner
);
2948 static void dump_set_window_owner_reply( const struct set_window_owner_reply
*req
)
2950 fprintf( stderr
, " full_owner=%08x", req
->full_owner
);
2951 fprintf( stderr
, ", prev_owner=%08x", req
->prev_owner
);
2954 static void dump_get_window_info_request( const struct get_window_info_request
*req
)
2956 fprintf( stderr
, " handle=%08x", req
->handle
);
2959 static void dump_get_window_info_reply( const struct get_window_info_reply
*req
)
2961 fprintf( stderr
, " full_handle=%08x", req
->full_handle
);
2962 fprintf( stderr
, ", last_active=%08x", req
->last_active
);
2963 fprintf( stderr
, ", pid=%04x", req
->pid
);
2964 fprintf( stderr
, ", tid=%04x", req
->tid
);
2965 fprintf( stderr
, ", atom=%04x", req
->atom
);
2966 fprintf( stderr
, ", is_unicode=%d", req
->is_unicode
);
2967 fprintf( stderr
, ", dpi=%d", req
->dpi
);
2968 fprintf( stderr
, ", awareness=%d", req
->awareness
);
2971 static void dump_set_window_info_request( const struct set_window_info_request
*req
)
2973 fprintf( stderr
, " flags=%04x", req
->flags
);
2974 fprintf( stderr
, ", is_unicode=%d", req
->is_unicode
);
2975 fprintf( stderr
, ", handle=%08x", req
->handle
);
2976 fprintf( stderr
, ", style=%08x", req
->style
);
2977 fprintf( stderr
, ", ex_style=%08x", req
->ex_style
);
2978 fprintf( stderr
, ", id=%08x", req
->id
);
2979 dump_uint64( ", instance=", &req
->instance
);
2980 dump_uint64( ", user_data=", &req
->user_data
);
2981 fprintf( stderr
, ", extra_offset=%d", req
->extra_offset
);
2982 fprintf( stderr
, ", extra_size=%u", req
->extra_size
);
2983 dump_uint64( ", extra_value=", &req
->extra_value
);
2986 static void dump_set_window_info_reply( const struct set_window_info_reply
*req
)
2988 fprintf( stderr
, " old_style=%08x", req
->old_style
);
2989 fprintf( stderr
, ", old_ex_style=%08x", req
->old_ex_style
);
2990 dump_uint64( ", old_instance=", &req
->old_instance
);
2991 dump_uint64( ", old_user_data=", &req
->old_user_data
);
2992 dump_uint64( ", old_extra_value=", &req
->old_extra_value
);
2993 fprintf( stderr
, ", old_id=%08x", req
->old_id
);
2996 static void dump_set_parent_request( const struct set_parent_request
*req
)
2998 fprintf( stderr
, " handle=%08x", req
->handle
);
2999 fprintf( stderr
, ", parent=%08x", req
->parent
);
3002 static void dump_set_parent_reply( const struct set_parent_reply
*req
)
3004 fprintf( stderr
, " old_parent=%08x", req
->old_parent
);
3005 fprintf( stderr
, ", full_parent=%08x", req
->full_parent
);
3006 fprintf( stderr
, ", dpi=%d", req
->dpi
);
3007 fprintf( stderr
, ", awareness=%d", req
->awareness
);
3010 static void dump_get_window_parents_request( const struct get_window_parents_request
*req
)
3012 fprintf( stderr
, " handle=%08x", req
->handle
);
3015 static void dump_get_window_parents_reply( const struct get_window_parents_reply
*req
)
3017 fprintf( stderr
, " count=%d", req
->count
);
3018 dump_varargs_user_handles( ", parents=", cur_size
);
3021 static void dump_get_window_children_request( const struct get_window_children_request
*req
)
3023 fprintf( stderr
, " desktop=%04x", req
->desktop
);
3024 fprintf( stderr
, ", parent=%08x", req
->parent
);
3025 fprintf( stderr
, ", atom=%04x", req
->atom
);
3026 fprintf( stderr
, ", tid=%04x", req
->tid
);
3027 dump_varargs_unicode_str( ", class=", cur_size
);
3030 static void dump_get_window_children_reply( const struct get_window_children_reply
*req
)
3032 fprintf( stderr
, " count=%d", req
->count
);
3033 dump_varargs_user_handles( ", children=", cur_size
);
3036 static void dump_get_window_children_from_point_request( const struct get_window_children_from_point_request
*req
)
3038 fprintf( stderr
, " parent=%08x", req
->parent
);
3039 fprintf( stderr
, ", x=%d", req
->x
);
3040 fprintf( stderr
, ", y=%d", req
->y
);
3041 fprintf( stderr
, ", dpi=%d", req
->dpi
);
3044 static void dump_get_window_children_from_point_reply( const struct get_window_children_from_point_reply
*req
)
3046 fprintf( stderr
, " count=%d", req
->count
);
3047 dump_varargs_user_handles( ", children=", cur_size
);
3050 static void dump_get_window_tree_request( const struct get_window_tree_request
*req
)
3052 fprintf( stderr
, " handle=%08x", req
->handle
);
3055 static void dump_get_window_tree_reply( const struct get_window_tree_reply
*req
)
3057 fprintf( stderr
, " parent=%08x", req
->parent
);
3058 fprintf( stderr
, ", owner=%08x", req
->owner
);
3059 fprintf( stderr
, ", next_sibling=%08x", req
->next_sibling
);
3060 fprintf( stderr
, ", prev_sibling=%08x", req
->prev_sibling
);
3061 fprintf( stderr
, ", first_sibling=%08x", req
->first_sibling
);
3062 fprintf( stderr
, ", last_sibling=%08x", req
->last_sibling
);
3063 fprintf( stderr
, ", first_child=%08x", req
->first_child
);
3064 fprintf( stderr
, ", last_child=%08x", req
->last_child
);
3067 static void dump_set_window_pos_request( const struct set_window_pos_request
*req
)
3069 fprintf( stderr
, " swp_flags=%04x", req
->swp_flags
);
3070 fprintf( stderr
, ", paint_flags=%04x", req
->paint_flags
);
3071 fprintf( stderr
, ", handle=%08x", req
->handle
);
3072 fprintf( stderr
, ", previous=%08x", req
->previous
);
3073 dump_rectangle( ", window=", &req
->window
);
3074 dump_rectangle( ", client=", &req
->client
);
3075 dump_varargs_rectangles( ", valid=", cur_size
);
3078 static void dump_set_window_pos_reply( const struct set_window_pos_reply
*req
)
3080 fprintf( stderr
, " new_style=%08x", req
->new_style
);
3081 fprintf( stderr
, ", new_ex_style=%08x", req
->new_ex_style
);
3082 fprintf( stderr
, ", surface_win=%08x", req
->surface_win
);
3083 fprintf( stderr
, ", needs_update=%d", req
->needs_update
);
3086 static void dump_get_window_rectangles_request( const struct get_window_rectangles_request
*req
)
3088 fprintf( stderr
, " handle=%08x", req
->handle
);
3089 fprintf( stderr
, ", relative=%d", req
->relative
);
3090 fprintf( stderr
, ", dpi=%d", req
->dpi
);
3093 static void dump_get_window_rectangles_reply( const struct get_window_rectangles_reply
*req
)
3095 dump_rectangle( " window=", &req
->window
);
3096 dump_rectangle( ", client=", &req
->client
);
3099 static void dump_get_window_text_request( const struct get_window_text_request
*req
)
3101 fprintf( stderr
, " handle=%08x", req
->handle
);
3104 static void dump_get_window_text_reply( const struct get_window_text_reply
*req
)
3106 fprintf( stderr
, " length=%u", req
->length
);
3107 dump_varargs_unicode_str( ", text=", cur_size
);
3110 static void dump_set_window_text_request( const struct set_window_text_request
*req
)
3112 fprintf( stderr
, " handle=%08x", req
->handle
);
3113 dump_varargs_unicode_str( ", text=", cur_size
);
3116 static void dump_get_windows_offset_request( const struct get_windows_offset_request
*req
)
3118 fprintf( stderr
, " from=%08x", req
->from
);
3119 fprintf( stderr
, ", to=%08x", req
->to
);
3120 fprintf( stderr
, ", dpi=%d", req
->dpi
);
3123 static void dump_get_windows_offset_reply( const struct get_windows_offset_reply
*req
)
3125 fprintf( stderr
, " x=%d", req
->x
);
3126 fprintf( stderr
, ", y=%d", req
->y
);
3127 fprintf( stderr
, ", mirror=%d", req
->mirror
);
3130 static void dump_get_visible_region_request( const struct get_visible_region_request
*req
)
3132 fprintf( stderr
, " window=%08x", req
->window
);
3133 fprintf( stderr
, ", flags=%08x", req
->flags
);
3136 static void dump_get_visible_region_reply( const struct get_visible_region_reply
*req
)
3138 fprintf( stderr
, " top_win=%08x", req
->top_win
);
3139 dump_rectangle( ", top_rect=", &req
->top_rect
);
3140 dump_rectangle( ", win_rect=", &req
->win_rect
);
3141 fprintf( stderr
, ", paint_flags=%08x", req
->paint_flags
);
3142 fprintf( stderr
, ", total_size=%u", req
->total_size
);
3143 dump_varargs_rectangles( ", region=", cur_size
);
3146 static void dump_get_surface_region_request( const struct get_surface_region_request
*req
)
3148 fprintf( stderr
, " window=%08x", req
->window
);
3151 static void dump_get_surface_region_reply( const struct get_surface_region_reply
*req
)
3153 dump_rectangle( " visible_rect=", &req
->visible_rect
);
3154 fprintf( stderr
, ", total_size=%u", req
->total_size
);
3155 dump_varargs_rectangles( ", region=", cur_size
);
3158 static void dump_get_window_region_request( const struct get_window_region_request
*req
)
3160 fprintf( stderr
, " window=%08x", req
->window
);
3163 static void dump_get_window_region_reply( const struct get_window_region_reply
*req
)
3165 fprintf( stderr
, " total_size=%u", req
->total_size
);
3166 dump_varargs_rectangles( ", region=", cur_size
);
3169 static void dump_set_window_region_request( const struct set_window_region_request
*req
)
3171 fprintf( stderr
, " window=%08x", req
->window
);
3172 fprintf( stderr
, ", redraw=%d", req
->redraw
);
3173 dump_varargs_rectangles( ", region=", cur_size
);
3176 static void dump_get_update_region_request( const struct get_update_region_request
*req
)
3178 fprintf( stderr
, " window=%08x", req
->window
);
3179 fprintf( stderr
, ", from_child=%08x", req
->from_child
);
3180 fprintf( stderr
, ", flags=%08x", req
->flags
);
3183 static void dump_get_update_region_reply( const struct get_update_region_reply
*req
)
3185 fprintf( stderr
, " child=%08x", req
->child
);
3186 fprintf( stderr
, ", flags=%08x", req
->flags
);
3187 fprintf( stderr
, ", total_size=%u", req
->total_size
);
3188 dump_varargs_rectangles( ", region=", cur_size
);
3191 static void dump_update_window_zorder_request( const struct update_window_zorder_request
*req
)
3193 fprintf( stderr
, " window=%08x", req
->window
);
3194 dump_rectangle( ", rect=", &req
->rect
);
3197 static void dump_redraw_window_request( const struct redraw_window_request
*req
)
3199 fprintf( stderr
, " window=%08x", req
->window
);
3200 fprintf( stderr
, ", flags=%08x", req
->flags
);
3201 dump_varargs_rectangles( ", region=", cur_size
);
3204 static void dump_set_window_property_request( const struct set_window_property_request
*req
)
3206 fprintf( stderr
, " window=%08x", req
->window
);
3207 dump_uint64( ", data=", &req
->data
);
3208 fprintf( stderr
, ", atom=%04x", req
->atom
);
3209 dump_varargs_unicode_str( ", name=", cur_size
);
3212 static void dump_remove_window_property_request( const struct remove_window_property_request
*req
)
3214 fprintf( stderr
, " window=%08x", req
->window
);
3215 fprintf( stderr
, ", atom=%04x", req
->atom
);
3216 dump_varargs_unicode_str( ", name=", cur_size
);
3219 static void dump_remove_window_property_reply( const struct remove_window_property_reply
*req
)
3221 dump_uint64( " data=", &req
->data
);
3224 static void dump_get_window_property_request( const struct get_window_property_request
*req
)
3226 fprintf( stderr
, " window=%08x", req
->window
);
3227 fprintf( stderr
, ", atom=%04x", req
->atom
);
3228 dump_varargs_unicode_str( ", name=", cur_size
);
3231 static void dump_get_window_property_reply( const struct get_window_property_reply
*req
)
3233 dump_uint64( " data=", &req
->data
);
3236 static void dump_get_window_properties_request( const struct get_window_properties_request
*req
)
3238 fprintf( stderr
, " window=%08x", req
->window
);
3241 static void dump_get_window_properties_reply( const struct get_window_properties_reply
*req
)
3243 fprintf( stderr
, " total=%d", req
->total
);
3244 dump_varargs_properties( ", props=", cur_size
);
3247 static void dump_create_winstation_request( const struct create_winstation_request
*req
)
3249 fprintf( stderr
, " flags=%08x", req
->flags
);
3250 fprintf( stderr
, ", access=%08x", req
->access
);
3251 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3252 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
3253 dump_varargs_unicode_str( ", name=", cur_size
);
3256 static void dump_create_winstation_reply( const struct create_winstation_reply
*req
)
3258 fprintf( stderr
, " handle=%04x", req
->handle
);
3261 static void dump_open_winstation_request( const struct open_winstation_request
*req
)
3263 fprintf( stderr
, " access=%08x", req
->access
);
3264 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3265 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
3266 dump_varargs_unicode_str( ", name=", cur_size
);
3269 static void dump_open_winstation_reply( const struct open_winstation_reply
*req
)
3271 fprintf( stderr
, " handle=%04x", req
->handle
);
3274 static void dump_close_winstation_request( const struct close_winstation_request
*req
)
3276 fprintf( stderr
, " handle=%04x", req
->handle
);
3279 static void dump_get_process_winstation_request( const struct get_process_winstation_request
*req
)
3283 static void dump_get_process_winstation_reply( const struct get_process_winstation_reply
*req
)
3285 fprintf( stderr
, " handle=%04x", req
->handle
);
3288 static void dump_set_process_winstation_request( const struct set_process_winstation_request
*req
)
3290 fprintf( stderr
, " handle=%04x", req
->handle
);
3293 static void dump_enum_winstation_request( const struct enum_winstation_request
*req
)
3295 fprintf( stderr
, " index=%08x", req
->index
);
3298 static void dump_enum_winstation_reply( const struct enum_winstation_reply
*req
)
3300 fprintf( stderr
, " next=%08x", req
->next
);
3301 dump_varargs_unicode_str( ", name=", cur_size
);
3304 static void dump_create_desktop_request( const struct create_desktop_request
*req
)
3306 fprintf( stderr
, " flags=%08x", req
->flags
);
3307 fprintf( stderr
, ", access=%08x", req
->access
);
3308 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3309 dump_varargs_unicode_str( ", name=", cur_size
);
3312 static void dump_create_desktop_reply( const struct create_desktop_reply
*req
)
3314 fprintf( stderr
, " handle=%04x", req
->handle
);
3317 static void dump_open_desktop_request( const struct open_desktop_request
*req
)
3319 fprintf( stderr
, " winsta=%04x", req
->winsta
);
3320 fprintf( stderr
, ", flags=%08x", req
->flags
);
3321 fprintf( stderr
, ", access=%08x", req
->access
);
3322 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3323 dump_varargs_unicode_str( ", name=", cur_size
);
3326 static void dump_open_desktop_reply( const struct open_desktop_reply
*req
)
3328 fprintf( stderr
, " handle=%04x", req
->handle
);
3331 static void dump_open_input_desktop_request( const struct open_input_desktop_request
*req
)
3333 fprintf( stderr
, " flags=%08x", req
->flags
);
3334 fprintf( stderr
, ", access=%08x", req
->access
);
3335 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3338 static void dump_open_input_desktop_reply( const struct open_input_desktop_reply
*req
)
3340 fprintf( stderr
, " handle=%04x", req
->handle
);
3343 static void dump_close_desktop_request( const struct close_desktop_request
*req
)
3345 fprintf( stderr
, " handle=%04x", req
->handle
);
3348 static void dump_get_thread_desktop_request( const struct get_thread_desktop_request
*req
)
3350 fprintf( stderr
, " tid=%04x", req
->tid
);
3353 static void dump_get_thread_desktop_reply( const struct get_thread_desktop_reply
*req
)
3355 fprintf( stderr
, " handle=%04x", req
->handle
);
3358 static void dump_set_thread_desktop_request( const struct set_thread_desktop_request
*req
)
3360 fprintf( stderr
, " handle=%04x", req
->handle
);
3363 static void dump_enum_desktop_request( const struct enum_desktop_request
*req
)
3365 fprintf( stderr
, " winstation=%04x", req
->winstation
);
3366 fprintf( stderr
, ", index=%08x", req
->index
);
3369 static void dump_enum_desktop_reply( const struct enum_desktop_reply
*req
)
3371 fprintf( stderr
, " next=%08x", req
->next
);
3372 dump_varargs_unicode_str( ", name=", cur_size
);
3375 static void dump_set_user_object_info_request( const struct set_user_object_info_request
*req
)
3377 fprintf( stderr
, " handle=%04x", req
->handle
);
3378 fprintf( stderr
, ", flags=%08x", req
->flags
);
3379 fprintf( stderr
, ", obj_flags=%08x", req
->obj_flags
);
3382 static void dump_set_user_object_info_reply( const struct set_user_object_info_reply
*req
)
3384 fprintf( stderr
, " is_desktop=%d", req
->is_desktop
);
3385 fprintf( stderr
, ", old_obj_flags=%08x", req
->old_obj_flags
);
3386 dump_varargs_unicode_str( ", name=", cur_size
);
3389 static void dump_register_hotkey_request( const struct register_hotkey_request
*req
)
3391 fprintf( stderr
, " window=%08x", req
->window
);
3392 fprintf( stderr
, ", id=%d", req
->id
);
3393 fprintf( stderr
, ", flags=%08x", req
->flags
);
3394 fprintf( stderr
, ", vkey=%08x", req
->vkey
);
3397 static void dump_register_hotkey_reply( const struct register_hotkey_reply
*req
)
3399 fprintf( stderr
, " replaced=%d", req
->replaced
);
3400 fprintf( stderr
, ", flags=%08x", req
->flags
);
3401 fprintf( stderr
, ", vkey=%08x", req
->vkey
);
3404 static void dump_unregister_hotkey_request( const struct unregister_hotkey_request
*req
)
3406 fprintf( stderr
, " window=%08x", req
->window
);
3407 fprintf( stderr
, ", id=%d", req
->id
);
3410 static void dump_unregister_hotkey_reply( const struct unregister_hotkey_reply
*req
)
3412 fprintf( stderr
, " flags=%08x", req
->flags
);
3413 fprintf( stderr
, ", vkey=%08x", req
->vkey
);
3416 static void dump_attach_thread_input_request( const struct attach_thread_input_request
*req
)
3418 fprintf( stderr
, " tid_from=%04x", req
->tid_from
);
3419 fprintf( stderr
, ", tid_to=%04x", req
->tid_to
);
3420 fprintf( stderr
, ", attach=%d", req
->attach
);
3423 static void dump_get_thread_input_request( const struct get_thread_input_request
*req
)
3425 fprintf( stderr
, " tid=%04x", req
->tid
);
3428 static void dump_get_thread_input_reply( const struct get_thread_input_reply
*req
)
3430 fprintf( stderr
, " focus=%08x", req
->focus
);
3431 fprintf( stderr
, ", capture=%08x", req
->capture
);
3432 fprintf( stderr
, ", active=%08x", req
->active
);
3433 fprintf( stderr
, ", foreground=%08x", req
->foreground
);
3434 fprintf( stderr
, ", menu_owner=%08x", req
->menu_owner
);
3435 fprintf( stderr
, ", move_size=%08x", req
->move_size
);
3436 fprintf( stderr
, ", caret=%08x", req
->caret
);
3437 fprintf( stderr
, ", cursor=%08x", req
->cursor
);
3438 fprintf( stderr
, ", show_count=%d", req
->show_count
);
3439 dump_rectangle( ", rect=", &req
->rect
);
3442 static void dump_get_last_input_time_request( const struct get_last_input_time_request
*req
)
3446 static void dump_get_last_input_time_reply( const struct get_last_input_time_reply
*req
)
3448 fprintf( stderr
, " time=%08x", req
->time
);
3451 static void dump_get_key_state_request( const struct get_key_state_request
*req
)
3453 fprintf( stderr
, " async=%d", req
->async
);
3454 fprintf( stderr
, ", key=%d", req
->key
);
3457 static void dump_get_key_state_reply( const struct get_key_state_reply
*req
)
3459 fprintf( stderr
, " state=%02x", req
->state
);
3460 dump_varargs_bytes( ", keystate=", cur_size
);
3463 static void dump_set_key_state_request( const struct set_key_state_request
*req
)
3465 fprintf( stderr
, " async=%d", req
->async
);
3466 dump_varargs_bytes( ", keystate=", cur_size
);
3469 static void dump_set_foreground_window_request( const struct set_foreground_window_request
*req
)
3471 fprintf( stderr
, " handle=%08x", req
->handle
);
3474 static void dump_set_foreground_window_reply( const struct set_foreground_window_reply
*req
)
3476 fprintf( stderr
, " previous=%08x", req
->previous
);
3477 fprintf( stderr
, ", send_msg_old=%d", req
->send_msg_old
);
3478 fprintf( stderr
, ", send_msg_new=%d", req
->send_msg_new
);
3481 static void dump_set_focus_window_request( const struct set_focus_window_request
*req
)
3483 fprintf( stderr
, " handle=%08x", req
->handle
);
3486 static void dump_set_focus_window_reply( const struct set_focus_window_reply
*req
)
3488 fprintf( stderr
, " previous=%08x", req
->previous
);
3491 static void dump_set_active_window_request( const struct set_active_window_request
*req
)
3493 fprintf( stderr
, " handle=%08x", req
->handle
);
3496 static void dump_set_active_window_reply( const struct set_active_window_reply
*req
)
3498 fprintf( stderr
, " previous=%08x", req
->previous
);
3501 static void dump_set_capture_window_request( const struct set_capture_window_request
*req
)
3503 fprintf( stderr
, " handle=%08x", req
->handle
);
3504 fprintf( stderr
, ", flags=%08x", req
->flags
);
3507 static void dump_set_capture_window_reply( const struct set_capture_window_reply
*req
)
3509 fprintf( stderr
, " previous=%08x", req
->previous
);
3510 fprintf( stderr
, ", full_handle=%08x", req
->full_handle
);
3513 static void dump_set_caret_window_request( const struct set_caret_window_request
*req
)
3515 fprintf( stderr
, " handle=%08x", req
->handle
);
3516 fprintf( stderr
, ", width=%d", req
->width
);
3517 fprintf( stderr
, ", height=%d", req
->height
);
3520 static void dump_set_caret_window_reply( const struct set_caret_window_reply
*req
)
3522 fprintf( stderr
, " previous=%08x", req
->previous
);
3523 dump_rectangle( ", old_rect=", &req
->old_rect
);
3524 fprintf( stderr
, ", old_hide=%d", req
->old_hide
);
3525 fprintf( stderr
, ", old_state=%d", req
->old_state
);
3528 static void dump_set_caret_info_request( const struct set_caret_info_request
*req
)
3530 fprintf( stderr
, " flags=%08x", req
->flags
);
3531 fprintf( stderr
, ", handle=%08x", req
->handle
);
3532 fprintf( stderr
, ", x=%d", req
->x
);
3533 fprintf( stderr
, ", y=%d", req
->y
);
3534 fprintf( stderr
, ", hide=%d", req
->hide
);
3535 fprintf( stderr
, ", state=%d", req
->state
);
3538 static void dump_set_caret_info_reply( const struct set_caret_info_reply
*req
)
3540 fprintf( stderr
, " full_handle=%08x", req
->full_handle
);
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_hook_request( const struct set_hook_request
*req
)
3548 fprintf( stderr
, " id=%d", req
->id
);
3549 fprintf( stderr
, ", pid=%04x", req
->pid
);
3550 fprintf( stderr
, ", tid=%04x", req
->tid
);
3551 fprintf( stderr
, ", event_min=%d", req
->event_min
);
3552 fprintf( stderr
, ", event_max=%d", req
->event_max
);
3553 dump_uint64( ", proc=", &req
->proc
);
3554 fprintf( stderr
, ", flags=%d", req
->flags
);
3555 fprintf( stderr
, ", unicode=%d", req
->unicode
);
3556 dump_varargs_unicode_str( ", module=", cur_size
);
3559 static void dump_set_hook_reply( const struct set_hook_reply
*req
)
3561 fprintf( stderr
, " handle=%08x", req
->handle
);
3562 fprintf( stderr
, ", active_hooks=%08x", req
->active_hooks
);
3565 static void dump_remove_hook_request( const struct remove_hook_request
*req
)
3567 fprintf( stderr
, " handle=%08x", req
->handle
);
3568 dump_uint64( ", proc=", &req
->proc
);
3569 fprintf( stderr
, ", id=%d", req
->id
);
3572 static void dump_remove_hook_reply( const struct remove_hook_reply
*req
)
3574 fprintf( stderr
, " active_hooks=%08x", req
->active_hooks
);
3577 static void dump_start_hook_chain_request( const struct start_hook_chain_request
*req
)
3579 fprintf( stderr
, " id=%d", req
->id
);
3580 fprintf( stderr
, ", event=%d", req
->event
);
3581 fprintf( stderr
, ", window=%08x", req
->window
);
3582 fprintf( stderr
, ", object_id=%d", req
->object_id
);
3583 fprintf( stderr
, ", child_id=%d", req
->child_id
);
3586 static void dump_start_hook_chain_reply( const struct start_hook_chain_reply
*req
)
3588 fprintf( stderr
, " handle=%08x", req
->handle
);
3589 fprintf( stderr
, ", pid=%04x", req
->pid
);
3590 fprintf( stderr
, ", tid=%04x", req
->tid
);
3591 fprintf( stderr
, ", unicode=%d", req
->unicode
);
3592 dump_uint64( ", proc=", &req
->proc
);
3593 fprintf( stderr
, ", active_hooks=%08x", req
->active_hooks
);
3594 dump_varargs_unicode_str( ", module=", cur_size
);
3597 static void dump_finish_hook_chain_request( const struct finish_hook_chain_request
*req
)
3599 fprintf( stderr
, " id=%d", req
->id
);
3602 static void dump_get_hook_info_request( const struct get_hook_info_request
*req
)
3604 fprintf( stderr
, " handle=%08x", req
->handle
);
3605 fprintf( stderr
, ", get_next=%d", req
->get_next
);
3606 fprintf( stderr
, ", event=%d", req
->event
);
3607 fprintf( stderr
, ", window=%08x", req
->window
);
3608 fprintf( stderr
, ", object_id=%d", req
->object_id
);
3609 fprintf( stderr
, ", child_id=%d", req
->child_id
);
3612 static void dump_get_hook_info_reply( const struct get_hook_info_reply
*req
)
3614 fprintf( stderr
, " handle=%08x", req
->handle
);
3615 fprintf( stderr
, ", id=%d", req
->id
);
3616 fprintf( stderr
, ", pid=%04x", req
->pid
);
3617 fprintf( stderr
, ", tid=%04x", req
->tid
);
3618 dump_uint64( ", proc=", &req
->proc
);
3619 fprintf( stderr
, ", unicode=%d", req
->unicode
);
3620 dump_varargs_unicode_str( ", module=", cur_size
);
3623 static void dump_create_class_request( const struct create_class_request
*req
)
3625 fprintf( stderr
, " local=%d", req
->local
);
3626 fprintf( stderr
, ", atom=%04x", req
->atom
);
3627 fprintf( stderr
, ", style=%08x", req
->style
);
3628 dump_uint64( ", instance=", &req
->instance
);
3629 fprintf( stderr
, ", extra=%d", req
->extra
);
3630 fprintf( stderr
, ", win_extra=%d", req
->win_extra
);
3631 dump_uint64( ", client_ptr=", &req
->client_ptr
);
3632 fprintf( stderr
, ", name_offset=%u", req
->name_offset
);
3633 dump_varargs_unicode_str( ", name=", cur_size
);
3636 static void dump_create_class_reply( const struct create_class_reply
*req
)
3638 fprintf( stderr
, " atom=%04x", req
->atom
);
3641 static void dump_destroy_class_request( const struct destroy_class_request
*req
)
3643 fprintf( stderr
, " atom=%04x", req
->atom
);
3644 dump_uint64( ", instance=", &req
->instance
);
3645 dump_varargs_unicode_str( ", name=", cur_size
);
3648 static void dump_destroy_class_reply( const struct destroy_class_reply
*req
)
3650 dump_uint64( " client_ptr=", &req
->client_ptr
);
3653 static void dump_set_class_info_request( const struct set_class_info_request
*req
)
3655 fprintf( stderr
, " window=%08x", req
->window
);
3656 fprintf( stderr
, ", flags=%08x", req
->flags
);
3657 fprintf( stderr
, ", atom=%04x", req
->atom
);
3658 fprintf( stderr
, ", style=%08x", req
->style
);
3659 fprintf( stderr
, ", win_extra=%d", req
->win_extra
);
3660 dump_uint64( ", instance=", &req
->instance
);
3661 fprintf( stderr
, ", extra_offset=%d", req
->extra_offset
);
3662 fprintf( stderr
, ", extra_size=%u", req
->extra_size
);
3663 dump_uint64( ", extra_value=", &req
->extra_value
);
3666 static void dump_set_class_info_reply( const struct set_class_info_reply
*req
)
3668 fprintf( stderr
, " old_atom=%04x", req
->old_atom
);
3669 fprintf( stderr
, ", base_atom=%04x", req
->base_atom
);
3670 dump_uint64( ", old_instance=", &req
->old_instance
);
3671 dump_uint64( ", old_extra_value=", &req
->old_extra_value
);
3672 fprintf( stderr
, ", old_style=%08x", req
->old_style
);
3673 fprintf( stderr
, ", old_extra=%d", req
->old_extra
);
3674 fprintf( stderr
, ", old_win_extra=%d", req
->old_win_extra
);
3677 static void dump_open_clipboard_request( const struct open_clipboard_request
*req
)
3679 fprintf( stderr
, " window=%08x", req
->window
);
3682 static void dump_open_clipboard_reply( const struct open_clipboard_reply
*req
)
3684 fprintf( stderr
, " owner=%08x", req
->owner
);
3687 static void dump_close_clipboard_request( const struct close_clipboard_request
*req
)
3691 static void dump_close_clipboard_reply( const struct close_clipboard_reply
*req
)
3693 fprintf( stderr
, " viewer=%08x", req
->viewer
);
3694 fprintf( stderr
, ", owner=%08x", req
->owner
);
3697 static void dump_empty_clipboard_request( const struct empty_clipboard_request
*req
)
3701 static void dump_set_clipboard_data_request( const struct set_clipboard_data_request
*req
)
3703 fprintf( stderr
, " format=%08x", req
->format
);
3704 fprintf( stderr
, ", lcid=%08x", req
->lcid
);
3705 dump_varargs_bytes( ", data=", cur_size
);
3708 static void dump_set_clipboard_data_reply( const struct set_clipboard_data_reply
*req
)
3710 fprintf( stderr
, " seqno=%08x", req
->seqno
);
3713 static void dump_get_clipboard_data_request( const struct get_clipboard_data_request
*req
)
3715 fprintf( stderr
, " format=%08x", req
->format
);
3716 fprintf( stderr
, ", render=%d", req
->render
);
3717 fprintf( stderr
, ", cached=%d", req
->cached
);
3718 fprintf( stderr
, ", seqno=%08x", req
->seqno
);
3721 static void dump_get_clipboard_data_reply( const struct get_clipboard_data_reply
*req
)
3723 fprintf( stderr
, " from=%08x", req
->from
);
3724 fprintf( stderr
, ", owner=%08x", req
->owner
);
3725 fprintf( stderr
, ", seqno=%08x", req
->seqno
);
3726 fprintf( stderr
, ", total=%u", req
->total
);
3727 dump_varargs_bytes( ", data=", cur_size
);
3730 static void dump_get_clipboard_formats_request( const struct get_clipboard_formats_request
*req
)
3732 fprintf( stderr
, " format=%08x", req
->format
);
3735 static void dump_get_clipboard_formats_reply( const struct get_clipboard_formats_reply
*req
)
3737 fprintf( stderr
, " count=%08x", req
->count
);
3738 dump_varargs_uints( ", formats=", cur_size
);
3741 static void dump_enum_clipboard_formats_request( const struct enum_clipboard_formats_request
*req
)
3743 fprintf( stderr
, " previous=%08x", req
->previous
);
3746 static void dump_enum_clipboard_formats_reply( const struct enum_clipboard_formats_reply
*req
)
3748 fprintf( stderr
, " format=%08x", req
->format
);
3751 static void dump_release_clipboard_request( const struct release_clipboard_request
*req
)
3753 fprintf( stderr
, " owner=%08x", req
->owner
);
3756 static void dump_release_clipboard_reply( const struct release_clipboard_reply
*req
)
3758 fprintf( stderr
, " viewer=%08x", req
->viewer
);
3759 fprintf( stderr
, ", owner=%08x", req
->owner
);
3762 static void dump_get_clipboard_info_request( const struct get_clipboard_info_request
*req
)
3766 static void dump_get_clipboard_info_reply( const struct get_clipboard_info_reply
*req
)
3768 fprintf( stderr
, " window=%08x", req
->window
);
3769 fprintf( stderr
, ", owner=%08x", req
->owner
);
3770 fprintf( stderr
, ", viewer=%08x", req
->viewer
);
3771 fprintf( stderr
, ", seqno=%08x", req
->seqno
);
3774 static void dump_set_clipboard_viewer_request( const struct set_clipboard_viewer_request
*req
)
3776 fprintf( stderr
, " viewer=%08x", req
->viewer
);
3777 fprintf( stderr
, ", previous=%08x", req
->previous
);
3780 static void dump_set_clipboard_viewer_reply( const struct set_clipboard_viewer_reply
*req
)
3782 fprintf( stderr
, " old_viewer=%08x", req
->old_viewer
);
3783 fprintf( stderr
, ", owner=%08x", req
->owner
);
3786 static void dump_add_clipboard_listener_request( const struct add_clipboard_listener_request
*req
)
3788 fprintf( stderr
, " window=%08x", req
->window
);
3791 static void dump_remove_clipboard_listener_request( const struct remove_clipboard_listener_request
*req
)
3793 fprintf( stderr
, " window=%08x", req
->window
);
3796 static void dump_open_token_request( const struct open_token_request
*req
)
3798 fprintf( stderr
, " handle=%04x", req
->handle
);
3799 fprintf( stderr
, ", access=%08x", req
->access
);
3800 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
3801 fprintf( stderr
, ", flags=%08x", req
->flags
);
3804 static void dump_open_token_reply( const struct open_token_reply
*req
)
3806 fprintf( stderr
, " token=%04x", req
->token
);
3809 static void dump_set_global_windows_request( const struct set_global_windows_request
*req
)
3811 fprintf( stderr
, " flags=%08x", req
->flags
);
3812 fprintf( stderr
, ", shell_window=%08x", req
->shell_window
);
3813 fprintf( stderr
, ", shell_listview=%08x", req
->shell_listview
);
3814 fprintf( stderr
, ", progman_window=%08x", req
->progman_window
);
3815 fprintf( stderr
, ", taskman_window=%08x", req
->taskman_window
);
3818 static void dump_set_global_windows_reply( const struct set_global_windows_reply
*req
)
3820 fprintf( stderr
, " old_shell_window=%08x", req
->old_shell_window
);
3821 fprintf( stderr
, ", old_shell_listview=%08x", req
->old_shell_listview
);
3822 fprintf( stderr
, ", old_progman_window=%08x", req
->old_progman_window
);
3823 fprintf( stderr
, ", old_taskman_window=%08x", req
->old_taskman_window
);
3826 static void dump_adjust_token_privileges_request( const struct adjust_token_privileges_request
*req
)
3828 fprintf( stderr
, " handle=%04x", req
->handle
);
3829 fprintf( stderr
, ", disable_all=%d", req
->disable_all
);
3830 fprintf( stderr
, ", get_modified_state=%d", req
->get_modified_state
);
3831 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size
);
3834 static void dump_adjust_token_privileges_reply( const struct adjust_token_privileges_reply
*req
)
3836 fprintf( stderr
, " len=%08x", req
->len
);
3837 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size
);
3840 static void dump_get_token_privileges_request( const struct get_token_privileges_request
*req
)
3842 fprintf( stderr
, " handle=%04x", req
->handle
);
3845 static void dump_get_token_privileges_reply( const struct get_token_privileges_reply
*req
)
3847 fprintf( stderr
, " len=%08x", req
->len
);
3848 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size
);
3851 static void dump_check_token_privileges_request( const struct check_token_privileges_request
*req
)
3853 fprintf( stderr
, " handle=%04x", req
->handle
);
3854 fprintf( stderr
, ", all_required=%d", req
->all_required
);
3855 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size
);
3858 static void dump_check_token_privileges_reply( const struct check_token_privileges_reply
*req
)
3860 fprintf( stderr
, " has_privileges=%d", req
->has_privileges
);
3861 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size
);
3864 static void dump_duplicate_token_request( const struct duplicate_token_request
*req
)
3866 fprintf( stderr
, " handle=%04x", req
->handle
);
3867 fprintf( stderr
, ", access=%08x", req
->access
);
3868 fprintf( stderr
, ", primary=%d", req
->primary
);
3869 fprintf( stderr
, ", impersonation_level=%d", req
->impersonation_level
);
3870 dump_varargs_object_attributes( ", objattr=", cur_size
);
3873 static void dump_duplicate_token_reply( const struct duplicate_token_reply
*req
)
3875 fprintf( stderr
, " new_handle=%04x", req
->new_handle
);
3878 static void dump_filter_token_request( const struct filter_token_request
*req
)
3880 fprintf( stderr
, " handle=%04x", req
->handle
);
3881 fprintf( stderr
, ", flags=%08x", req
->flags
);
3882 fprintf( stderr
, ", privileges_size=%u", req
->privileges_size
);
3883 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", min(cur_size
,req
->privileges_size
) );
3884 dump_varargs_SID( ", disable_sids=", cur_size
);
3887 static void dump_filter_token_reply( const struct filter_token_reply
*req
)
3889 fprintf( stderr
, " new_handle=%04x", req
->new_handle
);
3892 static void dump_access_check_request( const struct access_check_request
*req
)
3894 fprintf( stderr
, " handle=%04x", req
->handle
);
3895 fprintf( stderr
, ", desired_access=%08x", req
->desired_access
);
3896 dump_generic_map( ", mapping=", &req
->mapping
);
3897 dump_varargs_security_descriptor( ", sd=", cur_size
);
3900 static void dump_access_check_reply( const struct access_check_reply
*req
)
3902 fprintf( stderr
, " access_granted=%08x", req
->access_granted
);
3903 fprintf( stderr
, ", access_status=%08x", req
->access_status
);
3904 fprintf( stderr
, ", privileges_len=%08x", req
->privileges_len
);
3905 dump_varargs_LUID_AND_ATTRIBUTES( ", privileges=", cur_size
);
3908 static void dump_get_token_sid_request( const struct get_token_sid_request
*req
)
3910 fprintf( stderr
, " handle=%04x", req
->handle
);
3911 fprintf( stderr
, ", which_sid=%08x", req
->which_sid
);
3914 static void dump_get_token_sid_reply( const struct get_token_sid_reply
*req
)
3916 fprintf( stderr
, " sid_len=%u", req
->sid_len
);
3917 dump_varargs_SID( ", sid=", cur_size
);
3920 static void dump_get_token_groups_request( const struct get_token_groups_request
*req
)
3922 fprintf( stderr
, " handle=%04x", req
->handle
);
3925 static void dump_get_token_groups_reply( const struct get_token_groups_reply
*req
)
3927 fprintf( stderr
, " user_len=%u", req
->user_len
);
3928 dump_varargs_token_groups( ", user=", cur_size
);
3931 static void dump_get_token_default_dacl_request( const struct get_token_default_dacl_request
*req
)
3933 fprintf( stderr
, " handle=%04x", req
->handle
);
3936 static void dump_get_token_default_dacl_reply( const struct get_token_default_dacl_reply
*req
)
3938 fprintf( stderr
, " acl_len=%u", req
->acl_len
);
3939 dump_varargs_ACL( ", acl=", cur_size
);
3942 static void dump_set_token_default_dacl_request( const struct set_token_default_dacl_request
*req
)
3944 fprintf( stderr
, " handle=%04x", req
->handle
);
3945 dump_varargs_ACL( ", acl=", cur_size
);
3948 static void dump_set_security_object_request( const struct set_security_object_request
*req
)
3950 fprintf( stderr
, " handle=%04x", req
->handle
);
3951 fprintf( stderr
, ", security_info=%08x", req
->security_info
);
3952 dump_varargs_security_descriptor( ", sd=", cur_size
);
3955 static void dump_get_security_object_request( const struct get_security_object_request
*req
)
3957 fprintf( stderr
, " handle=%04x", req
->handle
);
3958 fprintf( stderr
, ", security_info=%08x", req
->security_info
);
3961 static void dump_get_security_object_reply( const struct get_security_object_reply
*req
)
3963 fprintf( stderr
, " sd_len=%08x", req
->sd_len
);
3964 dump_varargs_security_descriptor( ", sd=", cur_size
);
3967 static void dump_get_system_handles_request( const struct get_system_handles_request
*req
)
3971 static void dump_get_system_handles_reply( const struct get_system_handles_reply
*req
)
3973 fprintf( stderr
, " count=%08x", req
->count
);
3974 dump_varargs_handle_infos( ", data=", cur_size
);
3977 static void dump_create_mailslot_request( const struct create_mailslot_request
*req
)
3979 fprintf( stderr
, " access=%08x", req
->access
);
3980 dump_timeout( ", read_timeout=", &req
->read_timeout
);
3981 fprintf( stderr
, ", max_msgsize=%08x", req
->max_msgsize
);
3982 dump_varargs_object_attributes( ", objattr=", cur_size
);
3985 static void dump_create_mailslot_reply( const struct create_mailslot_reply
*req
)
3987 fprintf( stderr
, " handle=%04x", req
->handle
);
3990 static void dump_set_mailslot_info_request( const struct set_mailslot_info_request
*req
)
3992 fprintf( stderr
, " handle=%04x", req
->handle
);
3993 dump_timeout( ", read_timeout=", &req
->read_timeout
);
3994 fprintf( stderr
, ", flags=%08x", req
->flags
);
3997 static void dump_set_mailslot_info_reply( const struct set_mailslot_info_reply
*req
)
3999 dump_timeout( " read_timeout=", &req
->read_timeout
);
4000 fprintf( stderr
, ", max_msgsize=%08x", req
->max_msgsize
);
4003 static void dump_create_directory_request( const struct create_directory_request
*req
)
4005 fprintf( stderr
, " access=%08x", req
->access
);
4006 dump_varargs_object_attributes( ", objattr=", cur_size
);
4009 static void dump_create_directory_reply( const struct create_directory_reply
*req
)
4011 fprintf( stderr
, " handle=%04x", req
->handle
);
4014 static void dump_open_directory_request( const struct open_directory_request
*req
)
4016 fprintf( stderr
, " access=%08x", req
->access
);
4017 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
4018 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
4019 dump_varargs_unicode_str( ", directory_name=", cur_size
);
4022 static void dump_open_directory_reply( const struct open_directory_reply
*req
)
4024 fprintf( stderr
, " handle=%04x", req
->handle
);
4027 static void dump_get_directory_entry_request( const struct get_directory_entry_request
*req
)
4029 fprintf( stderr
, " handle=%04x", req
->handle
);
4030 fprintf( stderr
, ", index=%08x", req
->index
);
4033 static void dump_get_directory_entry_reply( const struct get_directory_entry_reply
*req
)
4035 fprintf( stderr
, " name_len=%u", req
->name_len
);
4036 dump_varargs_unicode_str( ", name=", min(cur_size
,req
->name_len
) );
4037 dump_varargs_unicode_str( ", type=", cur_size
);
4040 static void dump_create_symlink_request( const struct create_symlink_request
*req
)
4042 fprintf( stderr
, " access=%08x", req
->access
);
4043 dump_varargs_object_attributes( ", objattr=", cur_size
);
4044 dump_varargs_unicode_str( ", target_name=", cur_size
);
4047 static void dump_create_symlink_reply( const struct create_symlink_reply
*req
)
4049 fprintf( stderr
, " handle=%04x", req
->handle
);
4052 static void dump_open_symlink_request( const struct open_symlink_request
*req
)
4054 fprintf( stderr
, " access=%08x", req
->access
);
4055 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
4056 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
4057 dump_varargs_unicode_str( ", name=", cur_size
);
4060 static void dump_open_symlink_reply( const struct open_symlink_reply
*req
)
4062 fprintf( stderr
, " handle=%04x", req
->handle
);
4065 static void dump_query_symlink_request( const struct query_symlink_request
*req
)
4067 fprintf( stderr
, " handle=%04x", req
->handle
);
4070 static void dump_query_symlink_reply( const struct query_symlink_reply
*req
)
4072 fprintf( stderr
, " total=%u", req
->total
);
4073 dump_varargs_unicode_str( ", target_name=", cur_size
);
4076 static void dump_get_object_info_request( const struct get_object_info_request
*req
)
4078 fprintf( stderr
, " handle=%04x", req
->handle
);
4081 static void dump_get_object_info_reply( const struct get_object_info_reply
*req
)
4083 fprintf( stderr
, " access=%08x", req
->access
);
4084 fprintf( stderr
, ", ref_count=%08x", req
->ref_count
);
4085 fprintf( stderr
, ", handle_count=%08x", req
->handle_count
);
4086 fprintf( stderr
, ", total=%u", req
->total
);
4087 dump_varargs_unicode_str( ", name=", cur_size
);
4090 static void dump_get_object_type_request( const struct get_object_type_request
*req
)
4092 fprintf( stderr
, " handle=%04x", req
->handle
);
4095 static void dump_get_object_type_reply( const struct get_object_type_reply
*req
)
4097 dump_varargs_object_type_info( " info=", cur_size
);
4100 static void dump_get_object_types_request( const struct get_object_types_request
*req
)
4104 static void dump_get_object_types_reply( const struct get_object_types_reply
*req
)
4106 fprintf( stderr
, " count=%d", req
->count
);
4107 dump_varargs_object_types_info( ", info=", cur_size
);
4110 static void dump_allocate_locally_unique_id_request( const struct allocate_locally_unique_id_request
*req
)
4114 static void dump_allocate_locally_unique_id_reply( const struct allocate_locally_unique_id_reply
*req
)
4116 dump_luid( " luid=", &req
->luid
);
4119 static void dump_create_device_manager_request( const struct create_device_manager_request
*req
)
4121 fprintf( stderr
, " access=%08x", req
->access
);
4122 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
4125 static void dump_create_device_manager_reply( const struct create_device_manager_reply
*req
)
4127 fprintf( stderr
, " handle=%04x", req
->handle
);
4130 static void dump_create_device_request( const struct create_device_request
*req
)
4132 fprintf( stderr
, " rootdir=%04x", req
->rootdir
);
4133 dump_uint64( ", user_ptr=", &req
->user_ptr
);
4134 fprintf( stderr
, ", manager=%04x", req
->manager
);
4135 dump_varargs_unicode_str( ", name=", cur_size
);
4138 static void dump_delete_device_request( const struct delete_device_request
*req
)
4140 fprintf( stderr
, " manager=%04x", req
->manager
);
4141 dump_uint64( ", device=", &req
->device
);
4144 static void dump_get_next_device_request_request( const struct get_next_device_request_request
*req
)
4146 fprintf( stderr
, " manager=%04x", req
->manager
);
4147 fprintf( stderr
, ", prev=%04x", req
->prev
);
4148 fprintf( stderr
, ", status=%08x", req
->status
);
4149 dump_uint64( ", user_ptr=", &req
->user_ptr
);
4152 static void dump_get_next_device_request_reply( const struct get_next_device_request_reply
*req
)
4154 dump_irp_params( " params=", &req
->params
);
4155 fprintf( stderr
, ", next=%04x", req
->next
);
4156 fprintf( stderr
, ", client_tid=%04x", req
->client_tid
);
4157 dump_uint64( ", client_thread=", &req
->client_thread
);
4158 fprintf( stderr
, ", in_size=%u", req
->in_size
);
4159 dump_varargs_bytes( ", next_data=", cur_size
);
4162 static void dump_get_kernel_object_ptr_request( const struct get_kernel_object_ptr_request
*req
)
4164 fprintf( stderr
, " manager=%04x", req
->manager
);
4165 fprintf( stderr
, ", handle=%04x", req
->handle
);
4168 static void dump_get_kernel_object_ptr_reply( const struct get_kernel_object_ptr_reply
*req
)
4170 dump_uint64( " user_ptr=", &req
->user_ptr
);
4173 static void dump_set_kernel_object_ptr_request( const struct set_kernel_object_ptr_request
*req
)
4175 fprintf( stderr
, " manager=%04x", req
->manager
);
4176 fprintf( stderr
, ", handle=%04x", req
->handle
);
4177 dump_uint64( ", user_ptr=", &req
->user_ptr
);
4180 static void dump_grab_kernel_object_request( const struct grab_kernel_object_request
*req
)
4182 fprintf( stderr
, " manager=%04x", req
->manager
);
4183 dump_uint64( ", user_ptr=", &req
->user_ptr
);
4186 static void dump_release_kernel_object_request( const struct release_kernel_object_request
*req
)
4188 fprintf( stderr
, " manager=%04x", req
->manager
);
4189 dump_uint64( ", user_ptr=", &req
->user_ptr
);
4192 static void dump_get_kernel_object_handle_request( const struct get_kernel_object_handle_request
*req
)
4194 fprintf( stderr
, " manager=%04x", req
->manager
);
4195 dump_uint64( ", user_ptr=", &req
->user_ptr
);
4196 fprintf( stderr
, ", access=%08x", req
->access
);
4199 static void dump_get_kernel_object_handle_reply( const struct get_kernel_object_handle_reply
*req
)
4201 fprintf( stderr
, " handle=%04x", req
->handle
);
4204 static void dump_make_process_system_request( const struct make_process_system_request
*req
)
4206 fprintf( stderr
, " handle=%04x", req
->handle
);
4209 static void dump_make_process_system_reply( const struct make_process_system_reply
*req
)
4211 fprintf( stderr
, " event=%04x", req
->event
);
4214 static void dump_get_token_info_request( const struct get_token_info_request
*req
)
4216 fprintf( stderr
, " handle=%04x", req
->handle
);
4219 static void dump_get_token_info_reply( const struct get_token_info_reply
*req
)
4221 dump_luid( " token_id=", &req
->token_id
);
4222 dump_luid( ", modified_id=", &req
->modified_id
);
4223 fprintf( stderr
, ", primary=%d", req
->primary
);
4224 fprintf( stderr
, ", impersonation_level=%d", req
->impersonation_level
);
4225 fprintf( stderr
, ", elevation=%d", req
->elevation
);
4226 fprintf( stderr
, ", group_count=%d", req
->group_count
);
4227 fprintf( stderr
, ", privilege_count=%d", req
->privilege_count
);
4230 static void dump_create_linked_token_request( const struct create_linked_token_request
*req
)
4232 fprintf( stderr
, " handle=%04x", req
->handle
);
4235 static void dump_create_linked_token_reply( const struct create_linked_token_reply
*req
)
4237 fprintf( stderr
, " linked=%04x", req
->linked
);
4240 static void dump_create_completion_request( const struct create_completion_request
*req
)
4242 fprintf( stderr
, " access=%08x", req
->access
);
4243 fprintf( stderr
, ", concurrent=%08x", req
->concurrent
);
4244 dump_varargs_object_attributes( ", objattr=", cur_size
);
4247 static void dump_create_completion_reply( const struct create_completion_reply
*req
)
4249 fprintf( stderr
, " handle=%04x", req
->handle
);
4252 static void dump_open_completion_request( const struct open_completion_request
*req
)
4254 fprintf( stderr
, " access=%08x", req
->access
);
4255 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
4256 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
4257 dump_varargs_unicode_str( ", filename=", cur_size
);
4260 static void dump_open_completion_reply( const struct open_completion_reply
*req
)
4262 fprintf( stderr
, " handle=%04x", req
->handle
);
4265 static void dump_add_completion_request( const struct add_completion_request
*req
)
4267 fprintf( stderr
, " handle=%04x", req
->handle
);
4268 dump_uint64( ", ckey=", &req
->ckey
);
4269 dump_uint64( ", cvalue=", &req
->cvalue
);
4270 dump_uint64( ", information=", &req
->information
);
4271 fprintf( stderr
, ", status=%08x", req
->status
);
4274 static void dump_remove_completion_request( const struct remove_completion_request
*req
)
4276 fprintf( stderr
, " handle=%04x", req
->handle
);
4279 static void dump_remove_completion_reply( const struct remove_completion_reply
*req
)
4281 dump_uint64( " ckey=", &req
->ckey
);
4282 dump_uint64( ", cvalue=", &req
->cvalue
);
4283 dump_uint64( ", information=", &req
->information
);
4284 fprintf( stderr
, ", status=%08x", req
->status
);
4287 static void dump_query_completion_request( const struct query_completion_request
*req
)
4289 fprintf( stderr
, " handle=%04x", req
->handle
);
4292 static void dump_query_completion_reply( const struct query_completion_reply
*req
)
4294 fprintf( stderr
, " depth=%08x", req
->depth
);
4297 static void dump_set_completion_info_request( const struct set_completion_info_request
*req
)
4299 fprintf( stderr
, " handle=%04x", req
->handle
);
4300 dump_uint64( ", ckey=", &req
->ckey
);
4301 fprintf( stderr
, ", chandle=%04x", req
->chandle
);
4304 static void dump_add_fd_completion_request( const struct add_fd_completion_request
*req
)
4306 fprintf( stderr
, " handle=%04x", req
->handle
);
4307 dump_uint64( ", cvalue=", &req
->cvalue
);
4308 dump_uint64( ", information=", &req
->information
);
4309 fprintf( stderr
, ", status=%08x", req
->status
);
4310 fprintf( stderr
, ", async=%d", req
->async
);
4313 static void dump_set_fd_completion_mode_request( const struct set_fd_completion_mode_request
*req
)
4315 fprintf( stderr
, " handle=%04x", req
->handle
);
4316 fprintf( stderr
, ", flags=%08x", req
->flags
);
4319 static void dump_set_fd_disp_info_request( const struct set_fd_disp_info_request
*req
)
4321 fprintf( stderr
, " handle=%04x", req
->handle
);
4322 fprintf( stderr
, ", unlink=%d", req
->unlink
);
4325 static void dump_set_fd_name_info_request( const struct set_fd_name_info_request
*req
)
4327 fprintf( stderr
, " handle=%04x", req
->handle
);
4328 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
4329 fprintf( stderr
, ", namelen=%u", req
->namelen
);
4330 fprintf( stderr
, ", link=%d", req
->link
);
4331 fprintf( stderr
, ", replace=%d", req
->replace
);
4332 dump_varargs_unicode_str( ", name=", min(cur_size
,req
->namelen
) );
4333 dump_varargs_string( ", filename=", cur_size
);
4336 static void dump_get_window_layered_info_request( const struct get_window_layered_info_request
*req
)
4338 fprintf( stderr
, " handle=%08x", req
->handle
);
4341 static void dump_get_window_layered_info_reply( const struct get_window_layered_info_reply
*req
)
4343 fprintf( stderr
, " color_key=%08x", req
->color_key
);
4344 fprintf( stderr
, ", alpha=%08x", req
->alpha
);
4345 fprintf( stderr
, ", flags=%08x", req
->flags
);
4348 static void dump_set_window_layered_info_request( const struct set_window_layered_info_request
*req
)
4350 fprintf( stderr
, " handle=%08x", req
->handle
);
4351 fprintf( stderr
, ", color_key=%08x", req
->color_key
);
4352 fprintf( stderr
, ", alpha=%08x", req
->alpha
);
4353 fprintf( stderr
, ", flags=%08x", req
->flags
);
4356 static void dump_alloc_user_handle_request( const struct alloc_user_handle_request
*req
)
4360 static void dump_alloc_user_handle_reply( const struct alloc_user_handle_reply
*req
)
4362 fprintf( stderr
, " handle=%08x", req
->handle
);
4365 static void dump_free_user_handle_request( const struct free_user_handle_request
*req
)
4367 fprintf( stderr
, " handle=%08x", req
->handle
);
4370 static void dump_set_cursor_request( const struct set_cursor_request
*req
)
4372 fprintf( stderr
, " flags=%08x", req
->flags
);
4373 fprintf( stderr
, ", handle=%08x", req
->handle
);
4374 fprintf( stderr
, ", show_count=%d", req
->show_count
);
4375 fprintf( stderr
, ", x=%d", req
->x
);
4376 fprintf( stderr
, ", y=%d", req
->y
);
4377 dump_rectangle( ", clip=", &req
->clip
);
4378 fprintf( stderr
, ", clip_msg=%08x", req
->clip_msg
);
4381 static void dump_set_cursor_reply( const struct set_cursor_reply
*req
)
4383 fprintf( stderr
, " prev_handle=%08x", req
->prev_handle
);
4384 fprintf( stderr
, ", prev_count=%d", req
->prev_count
);
4385 fprintf( stderr
, ", prev_x=%d", req
->prev_x
);
4386 fprintf( stderr
, ", prev_y=%d", req
->prev_y
);
4387 fprintf( stderr
, ", new_x=%d", req
->new_x
);
4388 fprintf( stderr
, ", new_y=%d", req
->new_y
);
4389 dump_rectangle( ", new_clip=", &req
->new_clip
);
4390 fprintf( stderr
, ", last_change=%08x", req
->last_change
);
4393 static void dump_get_cursor_history_request( const struct get_cursor_history_request
*req
)
4397 static void dump_get_cursor_history_reply( const struct get_cursor_history_reply
*req
)
4399 dump_varargs_cursor_positions( " history=", cur_size
);
4402 static void dump_get_rawinput_buffer_request( const struct get_rawinput_buffer_request
*req
)
4404 fprintf( stderr
, " rawinput_size=%u", req
->rawinput_size
);
4405 fprintf( stderr
, ", buffer_size=%u", req
->buffer_size
);
4408 static void dump_get_rawinput_buffer_reply( const struct get_rawinput_buffer_reply
*req
)
4410 fprintf( stderr
, " next_size=%u", req
->next_size
);
4411 fprintf( stderr
, ", count=%08x", req
->count
);
4412 dump_varargs_bytes( ", data=", cur_size
);
4415 static void dump_update_rawinput_devices_request( const struct update_rawinput_devices_request
*req
)
4417 dump_varargs_rawinput_devices( " devices=", cur_size
);
4420 static void dump_get_rawinput_devices_request( const struct get_rawinput_devices_request
*req
)
4424 static void dump_get_rawinput_devices_reply( const struct get_rawinput_devices_reply
*req
)
4426 fprintf( stderr
, " device_count=%08x", req
->device_count
);
4427 dump_varargs_rawinput_devices( ", devices=", cur_size
);
4430 static void dump_create_job_request( const struct create_job_request
*req
)
4432 fprintf( stderr
, " access=%08x", req
->access
);
4433 dump_varargs_object_attributes( ", objattr=", cur_size
);
4436 static void dump_create_job_reply( const struct create_job_reply
*req
)
4438 fprintf( stderr
, " handle=%04x", req
->handle
);
4441 static void dump_open_job_request( const struct open_job_request
*req
)
4443 fprintf( stderr
, " access=%08x", req
->access
);
4444 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
4445 fprintf( stderr
, ", rootdir=%04x", req
->rootdir
);
4446 dump_varargs_unicode_str( ", name=", cur_size
);
4449 static void dump_open_job_reply( const struct open_job_reply
*req
)
4451 fprintf( stderr
, " handle=%04x", req
->handle
);
4454 static void dump_assign_job_request( const struct assign_job_request
*req
)
4456 fprintf( stderr
, " job=%04x", req
->job
);
4457 fprintf( stderr
, ", process=%04x", req
->process
);
4460 static void dump_process_in_job_request( const struct process_in_job_request
*req
)
4462 fprintf( stderr
, " job=%04x", req
->job
);
4463 fprintf( stderr
, ", process=%04x", req
->process
);
4466 static void dump_set_job_limits_request( const struct set_job_limits_request
*req
)
4468 fprintf( stderr
, " handle=%04x", req
->handle
);
4469 fprintf( stderr
, ", limit_flags=%08x", req
->limit_flags
);
4472 static void dump_set_job_completion_port_request( const struct set_job_completion_port_request
*req
)
4474 fprintf( stderr
, " job=%04x", req
->job
);
4475 fprintf( stderr
, ", port=%04x", req
->port
);
4476 dump_uint64( ", key=", &req
->key
);
4479 static void dump_get_job_info_request( const struct get_job_info_request
*req
)
4481 fprintf( stderr
, " handle=%04x", req
->handle
);
4484 static void dump_get_job_info_reply( const struct get_job_info_reply
*req
)
4486 fprintf( stderr
, " total_processes=%d", req
->total_processes
);
4487 fprintf( stderr
, ", active_processes=%d", req
->active_processes
);
4490 static void dump_terminate_job_request( const struct terminate_job_request
*req
)
4492 fprintf( stderr
, " handle=%04x", req
->handle
);
4493 fprintf( stderr
, ", status=%d", req
->status
);
4496 static void dump_suspend_process_request( const struct suspend_process_request
*req
)
4498 fprintf( stderr
, " handle=%04x", req
->handle
);
4501 static void dump_resume_process_request( const struct resume_process_request
*req
)
4503 fprintf( stderr
, " handle=%04x", req
->handle
);
4506 static void dump_get_next_thread_request( const struct get_next_thread_request
*req
)
4508 fprintf( stderr
, " process=%04x", req
->process
);
4509 fprintf( stderr
, ", last=%04x", req
->last
);
4510 fprintf( stderr
, ", access=%08x", req
->access
);
4511 fprintf( stderr
, ", attributes=%08x", req
->attributes
);
4512 fprintf( stderr
, ", flags=%08x", req
->flags
);
4515 static void dump_get_next_thread_reply( const struct get_next_thread_reply
*req
)
4517 fprintf( stderr
, " handle=%04x", req
->handle
);
4520 static const dump_func req_dumpers
[REQ_NB_REQUESTS
] = {
4521 (dump_func
)dump_new_process_request
,
4522 (dump_func
)dump_get_new_process_info_request
,
4523 (dump_func
)dump_new_thread_request
,
4524 (dump_func
)dump_get_startup_info_request
,
4525 (dump_func
)dump_init_process_done_request
,
4526 (dump_func
)dump_init_first_thread_request
,
4527 (dump_func
)dump_init_thread_request
,
4528 (dump_func
)dump_terminate_process_request
,
4529 (dump_func
)dump_terminate_thread_request
,
4530 (dump_func
)dump_get_process_info_request
,
4531 (dump_func
)dump_get_process_debug_info_request
,
4532 (dump_func
)dump_get_process_image_name_request
,
4533 (dump_func
)dump_get_process_vm_counters_request
,
4534 (dump_func
)dump_set_process_info_request
,
4535 (dump_func
)dump_get_thread_info_request
,
4536 (dump_func
)dump_get_thread_times_request
,
4537 (dump_func
)dump_set_thread_info_request
,
4538 (dump_func
)dump_suspend_thread_request
,
4539 (dump_func
)dump_resume_thread_request
,
4540 (dump_func
)dump_queue_apc_request
,
4541 (dump_func
)dump_get_apc_result_request
,
4542 (dump_func
)dump_close_handle_request
,
4543 (dump_func
)dump_set_handle_info_request
,
4544 (dump_func
)dump_dup_handle_request
,
4545 (dump_func
)dump_make_temporary_request
,
4546 (dump_func
)dump_open_process_request
,
4547 (dump_func
)dump_open_thread_request
,
4548 (dump_func
)dump_select_request
,
4549 (dump_func
)dump_create_event_request
,
4550 (dump_func
)dump_event_op_request
,
4551 (dump_func
)dump_query_event_request
,
4552 (dump_func
)dump_open_event_request
,
4553 (dump_func
)dump_create_keyed_event_request
,
4554 (dump_func
)dump_open_keyed_event_request
,
4555 (dump_func
)dump_create_mutex_request
,
4556 (dump_func
)dump_release_mutex_request
,
4557 (dump_func
)dump_open_mutex_request
,
4558 (dump_func
)dump_query_mutex_request
,
4559 (dump_func
)dump_create_semaphore_request
,
4560 (dump_func
)dump_release_semaphore_request
,
4561 (dump_func
)dump_query_semaphore_request
,
4562 (dump_func
)dump_open_semaphore_request
,
4563 (dump_func
)dump_create_file_request
,
4564 (dump_func
)dump_open_file_object_request
,
4565 (dump_func
)dump_alloc_file_handle_request
,
4566 (dump_func
)dump_get_handle_unix_name_request
,
4567 (dump_func
)dump_get_handle_fd_request
,
4568 (dump_func
)dump_get_directory_cache_entry_request
,
4569 (dump_func
)dump_flush_request
,
4570 (dump_func
)dump_get_file_info_request
,
4571 (dump_func
)dump_get_volume_info_request
,
4572 (dump_func
)dump_lock_file_request
,
4573 (dump_func
)dump_unlock_file_request
,
4574 (dump_func
)dump_get_socket_event_request
,
4575 (dump_func
)dump_recv_socket_request
,
4576 (dump_func
)dump_poll_socket_request
,
4577 (dump_func
)dump_send_socket_request
,
4578 (dump_func
)dump_get_next_console_request_request
,
4579 (dump_func
)dump_read_directory_changes_request
,
4580 (dump_func
)dump_read_change_request
,
4581 (dump_func
)dump_create_mapping_request
,
4582 (dump_func
)dump_open_mapping_request
,
4583 (dump_func
)dump_get_mapping_info_request
,
4584 (dump_func
)dump_map_view_request
,
4585 (dump_func
)dump_unmap_view_request
,
4586 (dump_func
)dump_get_mapping_committed_range_request
,
4587 (dump_func
)dump_add_mapping_committed_range_request
,
4588 (dump_func
)dump_is_same_mapping_request
,
4589 (dump_func
)dump_get_mapping_filename_request
,
4590 (dump_func
)dump_list_processes_request
,
4591 (dump_func
)dump_create_debug_obj_request
,
4592 (dump_func
)dump_wait_debug_event_request
,
4593 (dump_func
)dump_queue_exception_event_request
,
4594 (dump_func
)dump_get_exception_status_request
,
4595 (dump_func
)dump_continue_debug_event_request
,
4596 (dump_func
)dump_debug_process_request
,
4597 (dump_func
)dump_set_debug_obj_info_request
,
4598 (dump_func
)dump_read_process_memory_request
,
4599 (dump_func
)dump_write_process_memory_request
,
4600 (dump_func
)dump_create_key_request
,
4601 (dump_func
)dump_open_key_request
,
4602 (dump_func
)dump_delete_key_request
,
4603 (dump_func
)dump_flush_key_request
,
4604 (dump_func
)dump_enum_key_request
,
4605 (dump_func
)dump_set_key_value_request
,
4606 (dump_func
)dump_get_key_value_request
,
4607 (dump_func
)dump_enum_key_value_request
,
4608 (dump_func
)dump_delete_key_value_request
,
4609 (dump_func
)dump_load_registry_request
,
4610 (dump_func
)dump_unload_registry_request
,
4611 (dump_func
)dump_save_registry_request
,
4612 (dump_func
)dump_set_registry_notification_request
,
4613 (dump_func
)dump_create_timer_request
,
4614 (dump_func
)dump_open_timer_request
,
4615 (dump_func
)dump_set_timer_request
,
4616 (dump_func
)dump_cancel_timer_request
,
4617 (dump_func
)dump_get_timer_info_request
,
4618 (dump_func
)dump_get_thread_context_request
,
4619 (dump_func
)dump_set_thread_context_request
,
4620 (dump_func
)dump_get_selector_entry_request
,
4621 (dump_func
)dump_add_atom_request
,
4622 (dump_func
)dump_delete_atom_request
,
4623 (dump_func
)dump_find_atom_request
,
4624 (dump_func
)dump_get_atom_information_request
,
4625 (dump_func
)dump_get_msg_queue_request
,
4626 (dump_func
)dump_set_queue_fd_request
,
4627 (dump_func
)dump_set_queue_mask_request
,
4628 (dump_func
)dump_get_queue_status_request
,
4629 (dump_func
)dump_get_process_idle_event_request
,
4630 (dump_func
)dump_send_message_request
,
4631 (dump_func
)dump_post_quit_message_request
,
4632 (dump_func
)dump_send_hardware_message_request
,
4633 (dump_func
)dump_get_message_request
,
4634 (dump_func
)dump_reply_message_request
,
4635 (dump_func
)dump_accept_hardware_message_request
,
4636 (dump_func
)dump_get_message_reply_request
,
4637 (dump_func
)dump_set_win_timer_request
,
4638 (dump_func
)dump_kill_win_timer_request
,
4639 (dump_func
)dump_is_window_hung_request
,
4640 (dump_func
)dump_get_serial_info_request
,
4641 (dump_func
)dump_set_serial_info_request
,
4642 (dump_func
)dump_register_async_request
,
4643 (dump_func
)dump_cancel_async_request
,
4644 (dump_func
)dump_get_async_result_request
,
4645 (dump_func
)dump_read_request
,
4646 (dump_func
)dump_write_request
,
4647 (dump_func
)dump_ioctl_request
,
4648 (dump_func
)dump_set_irp_result_request
,
4649 (dump_func
)dump_create_named_pipe_request
,
4650 (dump_func
)dump_set_named_pipe_info_request
,
4651 (dump_func
)dump_create_window_request
,
4652 (dump_func
)dump_destroy_window_request
,
4653 (dump_func
)dump_get_desktop_window_request
,
4654 (dump_func
)dump_set_window_owner_request
,
4655 (dump_func
)dump_get_window_info_request
,
4656 (dump_func
)dump_set_window_info_request
,
4657 (dump_func
)dump_set_parent_request
,
4658 (dump_func
)dump_get_window_parents_request
,
4659 (dump_func
)dump_get_window_children_request
,
4660 (dump_func
)dump_get_window_children_from_point_request
,
4661 (dump_func
)dump_get_window_tree_request
,
4662 (dump_func
)dump_set_window_pos_request
,
4663 (dump_func
)dump_get_window_rectangles_request
,
4664 (dump_func
)dump_get_window_text_request
,
4665 (dump_func
)dump_set_window_text_request
,
4666 (dump_func
)dump_get_windows_offset_request
,
4667 (dump_func
)dump_get_visible_region_request
,
4668 (dump_func
)dump_get_surface_region_request
,
4669 (dump_func
)dump_get_window_region_request
,
4670 (dump_func
)dump_set_window_region_request
,
4671 (dump_func
)dump_get_update_region_request
,
4672 (dump_func
)dump_update_window_zorder_request
,
4673 (dump_func
)dump_redraw_window_request
,
4674 (dump_func
)dump_set_window_property_request
,
4675 (dump_func
)dump_remove_window_property_request
,
4676 (dump_func
)dump_get_window_property_request
,
4677 (dump_func
)dump_get_window_properties_request
,
4678 (dump_func
)dump_create_winstation_request
,
4679 (dump_func
)dump_open_winstation_request
,
4680 (dump_func
)dump_close_winstation_request
,
4681 (dump_func
)dump_get_process_winstation_request
,
4682 (dump_func
)dump_set_process_winstation_request
,
4683 (dump_func
)dump_enum_winstation_request
,
4684 (dump_func
)dump_create_desktop_request
,
4685 (dump_func
)dump_open_desktop_request
,
4686 (dump_func
)dump_open_input_desktop_request
,
4687 (dump_func
)dump_close_desktop_request
,
4688 (dump_func
)dump_get_thread_desktop_request
,
4689 (dump_func
)dump_set_thread_desktop_request
,
4690 (dump_func
)dump_enum_desktop_request
,
4691 (dump_func
)dump_set_user_object_info_request
,
4692 (dump_func
)dump_register_hotkey_request
,
4693 (dump_func
)dump_unregister_hotkey_request
,
4694 (dump_func
)dump_attach_thread_input_request
,
4695 (dump_func
)dump_get_thread_input_request
,
4696 (dump_func
)dump_get_last_input_time_request
,
4697 (dump_func
)dump_get_key_state_request
,
4698 (dump_func
)dump_set_key_state_request
,
4699 (dump_func
)dump_set_foreground_window_request
,
4700 (dump_func
)dump_set_focus_window_request
,
4701 (dump_func
)dump_set_active_window_request
,
4702 (dump_func
)dump_set_capture_window_request
,
4703 (dump_func
)dump_set_caret_window_request
,
4704 (dump_func
)dump_set_caret_info_request
,
4705 (dump_func
)dump_set_hook_request
,
4706 (dump_func
)dump_remove_hook_request
,
4707 (dump_func
)dump_start_hook_chain_request
,
4708 (dump_func
)dump_finish_hook_chain_request
,
4709 (dump_func
)dump_get_hook_info_request
,
4710 (dump_func
)dump_create_class_request
,
4711 (dump_func
)dump_destroy_class_request
,
4712 (dump_func
)dump_set_class_info_request
,
4713 (dump_func
)dump_open_clipboard_request
,
4714 (dump_func
)dump_close_clipboard_request
,
4715 (dump_func
)dump_empty_clipboard_request
,
4716 (dump_func
)dump_set_clipboard_data_request
,
4717 (dump_func
)dump_get_clipboard_data_request
,
4718 (dump_func
)dump_get_clipboard_formats_request
,
4719 (dump_func
)dump_enum_clipboard_formats_request
,
4720 (dump_func
)dump_release_clipboard_request
,
4721 (dump_func
)dump_get_clipboard_info_request
,
4722 (dump_func
)dump_set_clipboard_viewer_request
,
4723 (dump_func
)dump_add_clipboard_listener_request
,
4724 (dump_func
)dump_remove_clipboard_listener_request
,
4725 (dump_func
)dump_open_token_request
,
4726 (dump_func
)dump_set_global_windows_request
,
4727 (dump_func
)dump_adjust_token_privileges_request
,
4728 (dump_func
)dump_get_token_privileges_request
,
4729 (dump_func
)dump_check_token_privileges_request
,
4730 (dump_func
)dump_duplicate_token_request
,
4731 (dump_func
)dump_filter_token_request
,
4732 (dump_func
)dump_access_check_request
,
4733 (dump_func
)dump_get_token_sid_request
,
4734 (dump_func
)dump_get_token_groups_request
,
4735 (dump_func
)dump_get_token_default_dacl_request
,
4736 (dump_func
)dump_set_token_default_dacl_request
,
4737 (dump_func
)dump_set_security_object_request
,
4738 (dump_func
)dump_get_security_object_request
,
4739 (dump_func
)dump_get_system_handles_request
,
4740 (dump_func
)dump_create_mailslot_request
,
4741 (dump_func
)dump_set_mailslot_info_request
,
4742 (dump_func
)dump_create_directory_request
,
4743 (dump_func
)dump_open_directory_request
,
4744 (dump_func
)dump_get_directory_entry_request
,
4745 (dump_func
)dump_create_symlink_request
,
4746 (dump_func
)dump_open_symlink_request
,
4747 (dump_func
)dump_query_symlink_request
,
4748 (dump_func
)dump_get_object_info_request
,
4749 (dump_func
)dump_get_object_type_request
,
4750 (dump_func
)dump_get_object_types_request
,
4751 (dump_func
)dump_allocate_locally_unique_id_request
,
4752 (dump_func
)dump_create_device_manager_request
,
4753 (dump_func
)dump_create_device_request
,
4754 (dump_func
)dump_delete_device_request
,
4755 (dump_func
)dump_get_next_device_request_request
,
4756 (dump_func
)dump_get_kernel_object_ptr_request
,
4757 (dump_func
)dump_set_kernel_object_ptr_request
,
4758 (dump_func
)dump_grab_kernel_object_request
,
4759 (dump_func
)dump_release_kernel_object_request
,
4760 (dump_func
)dump_get_kernel_object_handle_request
,
4761 (dump_func
)dump_make_process_system_request
,
4762 (dump_func
)dump_get_token_info_request
,
4763 (dump_func
)dump_create_linked_token_request
,
4764 (dump_func
)dump_create_completion_request
,
4765 (dump_func
)dump_open_completion_request
,
4766 (dump_func
)dump_add_completion_request
,
4767 (dump_func
)dump_remove_completion_request
,
4768 (dump_func
)dump_query_completion_request
,
4769 (dump_func
)dump_set_completion_info_request
,
4770 (dump_func
)dump_add_fd_completion_request
,
4771 (dump_func
)dump_set_fd_completion_mode_request
,
4772 (dump_func
)dump_set_fd_disp_info_request
,
4773 (dump_func
)dump_set_fd_name_info_request
,
4774 (dump_func
)dump_get_window_layered_info_request
,
4775 (dump_func
)dump_set_window_layered_info_request
,
4776 (dump_func
)dump_alloc_user_handle_request
,
4777 (dump_func
)dump_free_user_handle_request
,
4778 (dump_func
)dump_set_cursor_request
,
4779 (dump_func
)dump_get_cursor_history_request
,
4780 (dump_func
)dump_get_rawinput_buffer_request
,
4781 (dump_func
)dump_update_rawinput_devices_request
,
4782 (dump_func
)dump_get_rawinput_devices_request
,
4783 (dump_func
)dump_create_job_request
,
4784 (dump_func
)dump_open_job_request
,
4785 (dump_func
)dump_assign_job_request
,
4786 (dump_func
)dump_process_in_job_request
,
4787 (dump_func
)dump_set_job_limits_request
,
4788 (dump_func
)dump_set_job_completion_port_request
,
4789 (dump_func
)dump_get_job_info_request
,
4790 (dump_func
)dump_terminate_job_request
,
4791 (dump_func
)dump_suspend_process_request
,
4792 (dump_func
)dump_resume_process_request
,
4793 (dump_func
)dump_get_next_thread_request
,
4796 static const dump_func reply_dumpers
[REQ_NB_REQUESTS
] = {
4797 (dump_func
)dump_new_process_reply
,
4798 (dump_func
)dump_get_new_process_info_reply
,
4799 (dump_func
)dump_new_thread_reply
,
4800 (dump_func
)dump_get_startup_info_reply
,
4801 (dump_func
)dump_init_process_done_reply
,
4802 (dump_func
)dump_init_first_thread_reply
,
4803 (dump_func
)dump_init_thread_reply
,
4804 (dump_func
)dump_terminate_process_reply
,
4805 (dump_func
)dump_terminate_thread_reply
,
4806 (dump_func
)dump_get_process_info_reply
,
4807 (dump_func
)dump_get_process_debug_info_reply
,
4808 (dump_func
)dump_get_process_image_name_reply
,
4809 (dump_func
)dump_get_process_vm_counters_reply
,
4811 (dump_func
)dump_get_thread_info_reply
,
4812 (dump_func
)dump_get_thread_times_reply
,
4814 (dump_func
)dump_suspend_thread_reply
,
4815 (dump_func
)dump_resume_thread_reply
,
4816 (dump_func
)dump_queue_apc_reply
,
4817 (dump_func
)dump_get_apc_result_reply
,
4819 (dump_func
)dump_set_handle_info_reply
,
4820 (dump_func
)dump_dup_handle_reply
,
4822 (dump_func
)dump_open_process_reply
,
4823 (dump_func
)dump_open_thread_reply
,
4824 (dump_func
)dump_select_reply
,
4825 (dump_func
)dump_create_event_reply
,
4826 (dump_func
)dump_event_op_reply
,
4827 (dump_func
)dump_query_event_reply
,
4828 (dump_func
)dump_open_event_reply
,
4829 (dump_func
)dump_create_keyed_event_reply
,
4830 (dump_func
)dump_open_keyed_event_reply
,
4831 (dump_func
)dump_create_mutex_reply
,
4832 (dump_func
)dump_release_mutex_reply
,
4833 (dump_func
)dump_open_mutex_reply
,
4834 (dump_func
)dump_query_mutex_reply
,
4835 (dump_func
)dump_create_semaphore_reply
,
4836 (dump_func
)dump_release_semaphore_reply
,
4837 (dump_func
)dump_query_semaphore_reply
,
4838 (dump_func
)dump_open_semaphore_reply
,
4839 (dump_func
)dump_create_file_reply
,
4840 (dump_func
)dump_open_file_object_reply
,
4841 (dump_func
)dump_alloc_file_handle_reply
,
4842 (dump_func
)dump_get_handle_unix_name_reply
,
4843 (dump_func
)dump_get_handle_fd_reply
,
4844 (dump_func
)dump_get_directory_cache_entry_reply
,
4845 (dump_func
)dump_flush_reply
,
4846 (dump_func
)dump_get_file_info_reply
,
4847 (dump_func
)dump_get_volume_info_reply
,
4848 (dump_func
)dump_lock_file_reply
,
4850 (dump_func
)dump_get_socket_event_reply
,
4851 (dump_func
)dump_recv_socket_reply
,
4852 (dump_func
)dump_poll_socket_reply
,
4853 (dump_func
)dump_send_socket_reply
,
4854 (dump_func
)dump_get_next_console_request_reply
,
4856 (dump_func
)dump_read_change_reply
,
4857 (dump_func
)dump_create_mapping_reply
,
4858 (dump_func
)dump_open_mapping_reply
,
4859 (dump_func
)dump_get_mapping_info_reply
,
4862 (dump_func
)dump_get_mapping_committed_range_reply
,
4865 (dump_func
)dump_get_mapping_filename_reply
,
4866 (dump_func
)dump_list_processes_reply
,
4867 (dump_func
)dump_create_debug_obj_reply
,
4868 (dump_func
)dump_wait_debug_event_reply
,
4869 (dump_func
)dump_queue_exception_event_reply
,
4874 (dump_func
)dump_read_process_memory_reply
,
4876 (dump_func
)dump_create_key_reply
,
4877 (dump_func
)dump_open_key_reply
,
4880 (dump_func
)dump_enum_key_reply
,
4882 (dump_func
)dump_get_key_value_reply
,
4883 (dump_func
)dump_enum_key_value_reply
,
4889 (dump_func
)dump_create_timer_reply
,
4890 (dump_func
)dump_open_timer_reply
,
4891 (dump_func
)dump_set_timer_reply
,
4892 (dump_func
)dump_cancel_timer_reply
,
4893 (dump_func
)dump_get_timer_info_reply
,
4894 (dump_func
)dump_get_thread_context_reply
,
4895 (dump_func
)dump_set_thread_context_reply
,
4896 (dump_func
)dump_get_selector_entry_reply
,
4897 (dump_func
)dump_add_atom_reply
,
4899 (dump_func
)dump_find_atom_reply
,
4900 (dump_func
)dump_get_atom_information_reply
,
4901 (dump_func
)dump_get_msg_queue_reply
,
4903 (dump_func
)dump_set_queue_mask_reply
,
4904 (dump_func
)dump_get_queue_status_reply
,
4905 (dump_func
)dump_get_process_idle_event_reply
,
4908 (dump_func
)dump_send_hardware_message_reply
,
4909 (dump_func
)dump_get_message_reply
,
4912 (dump_func
)dump_get_message_reply_reply
,
4913 (dump_func
)dump_set_win_timer_reply
,
4915 (dump_func
)dump_is_window_hung_reply
,
4916 (dump_func
)dump_get_serial_info_reply
,
4920 (dump_func
)dump_get_async_result_reply
,
4921 (dump_func
)dump_read_reply
,
4922 (dump_func
)dump_write_reply
,
4923 (dump_func
)dump_ioctl_reply
,
4925 (dump_func
)dump_create_named_pipe_reply
,
4927 (dump_func
)dump_create_window_reply
,
4929 (dump_func
)dump_get_desktop_window_reply
,
4930 (dump_func
)dump_set_window_owner_reply
,
4931 (dump_func
)dump_get_window_info_reply
,
4932 (dump_func
)dump_set_window_info_reply
,
4933 (dump_func
)dump_set_parent_reply
,
4934 (dump_func
)dump_get_window_parents_reply
,
4935 (dump_func
)dump_get_window_children_reply
,
4936 (dump_func
)dump_get_window_children_from_point_reply
,
4937 (dump_func
)dump_get_window_tree_reply
,
4938 (dump_func
)dump_set_window_pos_reply
,
4939 (dump_func
)dump_get_window_rectangles_reply
,
4940 (dump_func
)dump_get_window_text_reply
,
4942 (dump_func
)dump_get_windows_offset_reply
,
4943 (dump_func
)dump_get_visible_region_reply
,
4944 (dump_func
)dump_get_surface_region_reply
,
4945 (dump_func
)dump_get_window_region_reply
,
4947 (dump_func
)dump_get_update_region_reply
,
4951 (dump_func
)dump_remove_window_property_reply
,
4952 (dump_func
)dump_get_window_property_reply
,
4953 (dump_func
)dump_get_window_properties_reply
,
4954 (dump_func
)dump_create_winstation_reply
,
4955 (dump_func
)dump_open_winstation_reply
,
4957 (dump_func
)dump_get_process_winstation_reply
,
4959 (dump_func
)dump_enum_winstation_reply
,
4960 (dump_func
)dump_create_desktop_reply
,
4961 (dump_func
)dump_open_desktop_reply
,
4962 (dump_func
)dump_open_input_desktop_reply
,
4964 (dump_func
)dump_get_thread_desktop_reply
,
4966 (dump_func
)dump_enum_desktop_reply
,
4967 (dump_func
)dump_set_user_object_info_reply
,
4968 (dump_func
)dump_register_hotkey_reply
,
4969 (dump_func
)dump_unregister_hotkey_reply
,
4971 (dump_func
)dump_get_thread_input_reply
,
4972 (dump_func
)dump_get_last_input_time_reply
,
4973 (dump_func
)dump_get_key_state_reply
,
4975 (dump_func
)dump_set_foreground_window_reply
,
4976 (dump_func
)dump_set_focus_window_reply
,
4977 (dump_func
)dump_set_active_window_reply
,
4978 (dump_func
)dump_set_capture_window_reply
,
4979 (dump_func
)dump_set_caret_window_reply
,
4980 (dump_func
)dump_set_caret_info_reply
,
4981 (dump_func
)dump_set_hook_reply
,
4982 (dump_func
)dump_remove_hook_reply
,
4983 (dump_func
)dump_start_hook_chain_reply
,
4985 (dump_func
)dump_get_hook_info_reply
,
4986 (dump_func
)dump_create_class_reply
,
4987 (dump_func
)dump_destroy_class_reply
,
4988 (dump_func
)dump_set_class_info_reply
,
4989 (dump_func
)dump_open_clipboard_reply
,
4990 (dump_func
)dump_close_clipboard_reply
,
4992 (dump_func
)dump_set_clipboard_data_reply
,
4993 (dump_func
)dump_get_clipboard_data_reply
,
4994 (dump_func
)dump_get_clipboard_formats_reply
,
4995 (dump_func
)dump_enum_clipboard_formats_reply
,
4996 (dump_func
)dump_release_clipboard_reply
,
4997 (dump_func
)dump_get_clipboard_info_reply
,
4998 (dump_func
)dump_set_clipboard_viewer_reply
,
5001 (dump_func
)dump_open_token_reply
,
5002 (dump_func
)dump_set_global_windows_reply
,
5003 (dump_func
)dump_adjust_token_privileges_reply
,
5004 (dump_func
)dump_get_token_privileges_reply
,
5005 (dump_func
)dump_check_token_privileges_reply
,
5006 (dump_func
)dump_duplicate_token_reply
,
5007 (dump_func
)dump_filter_token_reply
,
5008 (dump_func
)dump_access_check_reply
,
5009 (dump_func
)dump_get_token_sid_reply
,
5010 (dump_func
)dump_get_token_groups_reply
,
5011 (dump_func
)dump_get_token_default_dacl_reply
,
5014 (dump_func
)dump_get_security_object_reply
,
5015 (dump_func
)dump_get_system_handles_reply
,
5016 (dump_func
)dump_create_mailslot_reply
,
5017 (dump_func
)dump_set_mailslot_info_reply
,
5018 (dump_func
)dump_create_directory_reply
,
5019 (dump_func
)dump_open_directory_reply
,
5020 (dump_func
)dump_get_directory_entry_reply
,
5021 (dump_func
)dump_create_symlink_reply
,
5022 (dump_func
)dump_open_symlink_reply
,
5023 (dump_func
)dump_query_symlink_reply
,
5024 (dump_func
)dump_get_object_info_reply
,
5025 (dump_func
)dump_get_object_type_reply
,
5026 (dump_func
)dump_get_object_types_reply
,
5027 (dump_func
)dump_allocate_locally_unique_id_reply
,
5028 (dump_func
)dump_create_device_manager_reply
,
5031 (dump_func
)dump_get_next_device_request_reply
,
5032 (dump_func
)dump_get_kernel_object_ptr_reply
,
5036 (dump_func
)dump_get_kernel_object_handle_reply
,
5037 (dump_func
)dump_make_process_system_reply
,
5038 (dump_func
)dump_get_token_info_reply
,
5039 (dump_func
)dump_create_linked_token_reply
,
5040 (dump_func
)dump_create_completion_reply
,
5041 (dump_func
)dump_open_completion_reply
,
5043 (dump_func
)dump_remove_completion_reply
,
5044 (dump_func
)dump_query_completion_reply
,
5050 (dump_func
)dump_get_window_layered_info_reply
,
5052 (dump_func
)dump_alloc_user_handle_reply
,
5054 (dump_func
)dump_set_cursor_reply
,
5055 (dump_func
)dump_get_cursor_history_reply
,
5056 (dump_func
)dump_get_rawinput_buffer_reply
,
5058 (dump_func
)dump_get_rawinput_devices_reply
,
5059 (dump_func
)dump_create_job_reply
,
5060 (dump_func
)dump_open_job_reply
,
5065 (dump_func
)dump_get_job_info_reply
,
5069 (dump_func
)dump_get_next_thread_reply
,
5072 static const char * const req_names
[REQ_NB_REQUESTS
] = {
5074 "get_new_process_info",
5077 "init_process_done",
5078 "init_first_thread",
5080 "terminate_process",
5083 "get_process_debug_info",
5084 "get_process_image_name",
5085 "get_process_vm_counters",
5105 "create_keyed_event",
5112 "release_semaphore",
5117 "alloc_file_handle",
5118 "get_handle_unix_name",
5120 "get_directory_cache_entry",
5130 "get_next_console_request",
5131 "read_directory_changes",
5138 "get_mapping_committed_range",
5139 "add_mapping_committed_range",
5141 "get_mapping_filename",
5145 "queue_exception_event",
5146 "get_exception_status",
5147 "continue_debug_event",
5149 "set_debug_obj_info",
5150 "read_process_memory",
5151 "write_process_memory",
5164 "set_registry_notification",
5170 "get_thread_context",
5171 "set_thread_context",
5172 "get_selector_entry",
5176 "get_atom_information",
5181 "get_process_idle_event",
5183 "post_quit_message",
5184 "send_hardware_message",
5187 "accept_hardware_message",
5188 "get_message_reply",
5201 "create_named_pipe",
5202 "set_named_pipe_info",
5205 "get_desktop_window",
5210 "get_window_parents",
5211 "get_window_children",
5212 "get_window_children_from_point",
5215 "get_window_rectangles",
5218 "get_windows_offset",
5219 "get_visible_region",
5220 "get_surface_region",
5221 "get_window_region",
5222 "set_window_region",
5223 "get_update_region",
5224 "update_window_zorder",
5226 "set_window_property",
5227 "remove_window_property",
5228 "get_window_property",
5229 "get_window_properties",
5230 "create_winstation",
5233 "get_process_winstation",
5234 "set_process_winstation",
5238 "open_input_desktop",
5240 "get_thread_desktop",
5241 "set_thread_desktop",
5243 "set_user_object_info",
5245 "unregister_hotkey",
5246 "attach_thread_input",
5248 "get_last_input_time",
5251 "set_foreground_window",
5253 "set_active_window",
5254 "set_capture_window",
5260 "finish_hook_chain",
5268 "set_clipboard_data",
5269 "get_clipboard_data",
5270 "get_clipboard_formats",
5271 "enum_clipboard_formats",
5272 "release_clipboard",
5273 "get_clipboard_info",
5274 "set_clipboard_viewer",
5275 "add_clipboard_listener",
5276 "remove_clipboard_listener",
5278 "set_global_windows",
5279 "adjust_token_privileges",
5280 "get_token_privileges",
5281 "check_token_privileges",
5287 "get_token_default_dacl",
5288 "set_token_default_dacl",
5289 "set_security_object",
5290 "get_security_object",
5291 "get_system_handles",
5293 "set_mailslot_info",
5296 "get_directory_entry",
5303 "allocate_locally_unique_id",
5304 "create_device_manager",
5307 "get_next_device_request",
5308 "get_kernel_object_ptr",
5309 "set_kernel_object_ptr",
5310 "grab_kernel_object",
5311 "release_kernel_object",
5312 "get_kernel_object_handle",
5313 "make_process_system",
5315 "create_linked_token",
5316 "create_completion",
5319 "remove_completion",
5321 "set_completion_info",
5322 "add_fd_completion",
5323 "set_fd_completion_mode",
5326 "get_window_layered_info",
5327 "set_window_layered_info",
5328 "alloc_user_handle",
5331 "get_cursor_history",
5332 "get_rawinput_buffer",
5333 "update_rawinput_devices",
5334 "get_rawinput_devices",
5340 "set_job_completion_port",
5354 { "ABANDONED_WAIT_0", STATUS_ABANDONED_WAIT_0
},
5355 { "ACCESS_DENIED", STATUS_ACCESS_DENIED
},
5356 { "ACCESS_VIOLATION", STATUS_ACCESS_VIOLATION
},
5357 { "ADDRESS_ALREADY_ASSOCIATED", STATUS_ADDRESS_ALREADY_ASSOCIATED
},
5358 { "ALERTED", STATUS_ALERTED
},
5359 { "BAD_DEVICE_TYPE", STATUS_BAD_DEVICE_TYPE
},
5360 { "BAD_IMPERSONATION_LEVEL", STATUS_BAD_IMPERSONATION_LEVEL
},
5361 { "BUFFER_OVERFLOW", STATUS_BUFFER_OVERFLOW
},
5362 { "BUFFER_TOO_SMALL", STATUS_BUFFER_TOO_SMALL
},
5363 { "CANCELLED", STATUS_CANCELLED
},
5364 { "CANNOT_DELETE", STATUS_CANNOT_DELETE
},
5365 { "CANT_OPEN_ANONYMOUS", STATUS_CANT_OPEN_ANONYMOUS
},
5366 { "CHILD_MUST_BE_VOLATILE", STATUS_CHILD_MUST_BE_VOLATILE
},
5367 { "CONNECTION_ABORTED", STATUS_CONNECTION_ABORTED
},
5368 { "CONNECTION_ACTIVE", STATUS_CONNECTION_ACTIVE
},
5369 { "CONNECTION_REFUSED", STATUS_CONNECTION_REFUSED
},
5370 { "CONNECTION_RESET", STATUS_CONNECTION_RESET
},
5371 { "DEBUGGER_INACTIVE", STATUS_DEBUGGER_INACTIVE
},
5372 { "DEVICE_BUSY", STATUS_DEVICE_BUSY
},
5373 { "DEVICE_NOT_READY", STATUS_DEVICE_NOT_READY
},
5374 { "DIRECTORY_NOT_EMPTY", STATUS_DIRECTORY_NOT_EMPTY
},
5375 { "DISK_FULL", STATUS_DISK_FULL
},
5376 { "DLL_NOT_FOUND", STATUS_DLL_NOT_FOUND
},
5377 { "ERROR_CLASS_ALREADY_EXISTS", 0xc0010000 | ERROR_CLASS_ALREADY_EXISTS
},
5378 { "ERROR_CLASS_DOES_NOT_EXIST", 0xc0010000 | ERROR_CLASS_DOES_NOT_EXIST
},
5379 { "ERROR_CLASS_HAS_WINDOWS", 0xc0010000 | ERROR_CLASS_HAS_WINDOWS
},
5380 { "ERROR_CLIPBOARD_NOT_OPEN", 0xc0010000 | ERROR_CLIPBOARD_NOT_OPEN
},
5381 { "ERROR_HOTKEY_ALREADY_REGISTERED", 0xc0010000 | ERROR_HOTKEY_ALREADY_REGISTERED
},
5382 { "ERROR_HOTKEY_NOT_REGISTERED", 0xc0010000 | ERROR_HOTKEY_NOT_REGISTERED
},
5383 { "ERROR_INVALID_CURSOR_HANDLE", 0xc0010000 | ERROR_INVALID_CURSOR_HANDLE
},
5384 { "ERROR_INVALID_INDEX", 0xc0010000 | ERROR_INVALID_INDEX
},
5385 { "ERROR_INVALID_WINDOW_HANDLE", 0xc0010000 | ERROR_INVALID_WINDOW_HANDLE
},
5386 { "ERROR_NO_MORE_USER_HANDLES", 0xc0010000 | ERROR_NO_MORE_USER_HANDLES
},
5387 { "ERROR_WINDOW_OF_OTHER_THREAD", 0xc0010000 | ERROR_WINDOW_OF_OTHER_THREAD
},
5388 { "FILE_DELETED", STATUS_FILE_DELETED
},
5389 { "FILE_INVALID", STATUS_FILE_INVALID
},
5390 { "FILE_IS_A_DIRECTORY", STATUS_FILE_IS_A_DIRECTORY
},
5391 { "FILE_LOCK_CONFLICT", STATUS_FILE_LOCK_CONFLICT
},
5392 { "GENERIC_NOT_MAPPED", STATUS_GENERIC_NOT_MAPPED
},
5393 { "HANDLES_CLOSED", STATUS_HANDLES_CLOSED
},
5394 { "HANDLE_NOT_CLOSABLE", STATUS_HANDLE_NOT_CLOSABLE
},
5395 { "HOST_UNREACHABLE", STATUS_HOST_UNREACHABLE
},
5396 { "ILLEGAL_FUNCTION", STATUS_ILLEGAL_FUNCTION
},
5397 { "IMAGE_NOT_AT_BASE", STATUS_IMAGE_NOT_AT_BASE
},
5398 { "INFO_LENGTH_MISMATCH", STATUS_INFO_LENGTH_MISMATCH
},
5399 { "INSTANCE_NOT_AVAILABLE", STATUS_INSTANCE_NOT_AVAILABLE
},
5400 { "INSUFFICIENT_RESOURCES", STATUS_INSUFFICIENT_RESOURCES
},
5401 { "INVALID_ADDRESS", STATUS_INVALID_ADDRESS
},
5402 { "INVALID_ADDRESS_COMPONENT", STATUS_INVALID_ADDRESS_COMPONENT
},
5403 { "INVALID_CID", STATUS_INVALID_CID
},
5404 { "INVALID_CONNECTION", STATUS_INVALID_CONNECTION
},
5405 { "INVALID_DEVICE_REQUEST", STATUS_INVALID_DEVICE_REQUEST
},
5406 { "INVALID_FILE_FOR_SECTION", STATUS_INVALID_FILE_FOR_SECTION
},
5407 { "INVALID_HANDLE", STATUS_INVALID_HANDLE
},
5408 { "INVALID_IMAGE_FORMAT", STATUS_INVALID_IMAGE_FORMAT
},
5409 { "INVALID_IMAGE_NE_FORMAT", STATUS_INVALID_IMAGE_NE_FORMAT
},
5410 { "INVALID_IMAGE_NOT_MZ", STATUS_INVALID_IMAGE_NOT_MZ
},
5411 { "INVALID_IMAGE_PROTECT", STATUS_INVALID_IMAGE_PROTECT
},
5412 { "INVALID_IMAGE_WIN_16", STATUS_INVALID_IMAGE_WIN_16
},
5413 { "INVALID_IMAGE_WIN_64", STATUS_INVALID_IMAGE_WIN_64
},
5414 { "INVALID_LOCK_SEQUENCE", STATUS_INVALID_LOCK_SEQUENCE
},
5415 { "INVALID_OWNER", STATUS_INVALID_OWNER
},
5416 { "INVALID_PARAMETER", STATUS_INVALID_PARAMETER
},
5417 { "INVALID_PIPE_STATE", STATUS_INVALID_PIPE_STATE
},
5418 { "INVALID_READ_MODE", STATUS_INVALID_READ_MODE
},
5419 { "INVALID_SECURITY_DESCR", STATUS_INVALID_SECURITY_DESCR
},
5420 { "IO_TIMEOUT", STATUS_IO_TIMEOUT
},
5421 { "KERNEL_APC", STATUS_KERNEL_APC
},
5422 { "KEY_DELETED", STATUS_KEY_DELETED
},
5423 { "MAPPED_FILE_SIZE_ZERO", STATUS_MAPPED_FILE_SIZE_ZERO
},
5424 { "MORE_PROCESSING_REQUIRED", STATUS_MORE_PROCESSING_REQUIRED
},
5425 { "MUTANT_NOT_OWNED", STATUS_MUTANT_NOT_OWNED
},
5426 { "NAME_TOO_LONG", STATUS_NAME_TOO_LONG
},
5427 { "NETWORK_BUSY", STATUS_NETWORK_BUSY
},
5428 { "NETWORK_UNREACHABLE", STATUS_NETWORK_UNREACHABLE
},
5429 { "NOT_ALL_ASSIGNED", STATUS_NOT_ALL_ASSIGNED
},
5430 { "NOT_A_DIRECTORY", STATUS_NOT_A_DIRECTORY
},
5431 { "NOT_FOUND", STATUS_NOT_FOUND
},
5432 { "NOT_IMPLEMENTED", STATUS_NOT_IMPLEMENTED
},
5433 { "NOT_MAPPED_VIEW", STATUS_NOT_MAPPED_VIEW
},
5434 { "NOT_REGISTRY_FILE", STATUS_NOT_REGISTRY_FILE
},
5435 { "NOT_SAME_DEVICE", STATUS_NOT_SAME_DEVICE
},
5436 { "NOT_SUPPORTED", STATUS_NOT_SUPPORTED
},
5437 { "NO_DATA_DETECTED", STATUS_NO_DATA_DETECTED
},
5438 { "NO_IMPERSONATION_TOKEN", STATUS_NO_IMPERSONATION_TOKEN
},
5439 { "NO_MEMORY", STATUS_NO_MEMORY
},
5440 { "NO_MORE_ENTRIES", STATUS_NO_MORE_ENTRIES
},
5441 { "NO_SUCH_DEVICE", STATUS_NO_SUCH_DEVICE
},
5442 { "NO_SUCH_FILE", STATUS_NO_SUCH_FILE
},
5443 { "NO_TOKEN", STATUS_NO_TOKEN
},
5444 { "OBJECT_NAME_COLLISION", STATUS_OBJECT_NAME_COLLISION
},
5445 { "OBJECT_NAME_EXISTS", STATUS_OBJECT_NAME_EXISTS
},
5446 { "OBJECT_NAME_INVALID", STATUS_OBJECT_NAME_INVALID
},
5447 { "OBJECT_NAME_NOT_FOUND", STATUS_OBJECT_NAME_NOT_FOUND
},
5448 { "OBJECT_PATH_INVALID", STATUS_OBJECT_PATH_INVALID
},
5449 { "OBJECT_PATH_NOT_FOUND", STATUS_OBJECT_PATH_NOT_FOUND
},
5450 { "OBJECT_PATH_SYNTAX_BAD", STATUS_OBJECT_PATH_SYNTAX_BAD
},
5451 { "OBJECT_TYPE_MISMATCH", STATUS_OBJECT_TYPE_MISMATCH
},
5452 { "PENDING", STATUS_PENDING
},
5453 { "PIPE_BROKEN", STATUS_PIPE_BROKEN
},
5454 { "PIPE_BUSY", STATUS_PIPE_BUSY
},
5455 { "PIPE_CLOSING", STATUS_PIPE_CLOSING
},
5456 { "PIPE_CONNECTED", STATUS_PIPE_CONNECTED
},
5457 { "PIPE_DISCONNECTED", STATUS_PIPE_DISCONNECTED
},
5458 { "PIPE_EMPTY", STATUS_PIPE_EMPTY
},
5459 { "PIPE_LISTENING", STATUS_PIPE_LISTENING
},
5460 { "PIPE_NOT_AVAILABLE", STATUS_PIPE_NOT_AVAILABLE
},
5461 { "PORT_NOT_SET", STATUS_PORT_NOT_SET
},
5462 { "PRIVILEGE_NOT_HELD", STATUS_PRIVILEGE_NOT_HELD
},
5463 { "PROCESS_IN_JOB", STATUS_PROCESS_IN_JOB
},
5464 { "PROCESS_IS_TERMINATING", STATUS_PROCESS_IS_TERMINATING
},
5465 { "PROCESS_NOT_IN_JOB", STATUS_PROCESS_NOT_IN_JOB
},
5466 { "REPARSE_POINT_NOT_RESOLVED", STATUS_REPARSE_POINT_NOT_RESOLVED
},
5467 { "SECTION_TOO_BIG", STATUS_SECTION_TOO_BIG
},
5468 { "SEMAPHORE_LIMIT_EXCEEDED", STATUS_SEMAPHORE_LIMIT_EXCEEDED
},
5469 { "SHARING_VIOLATION", STATUS_SHARING_VIOLATION
},
5470 { "SHUTDOWN_IN_PROGRESS", STATUS_SHUTDOWN_IN_PROGRESS
},
5471 { "SUSPEND_COUNT_EXCEEDED", STATUS_SUSPEND_COUNT_EXCEEDED
},
5472 { "THREAD_IS_TERMINATING", STATUS_THREAD_IS_TERMINATING
},
5473 { "TIMEOUT", STATUS_TIMEOUT
},
5474 { "TOO_MANY_OPENED_FILES", STATUS_TOO_MANY_OPENED_FILES
},
5475 { "UNSUCCESSFUL", STATUS_UNSUCCESSFUL
},
5476 { "USER_APC", STATUS_USER_APC
},
5477 { "USER_MAPPED_FILE", STATUS_USER_MAPPED_FILE
},
5478 { "VOLUME_DISMOUNTED", STATUS_VOLUME_DISMOUNTED
},
5479 { "WAS_LOCKED", STATUS_WAS_LOCKED
},
5480 { "WSAEACCES", 0xc0010000 | WSAEACCES
},
5481 { "WSAEADDRINUSE", 0xc0010000 | WSAEADDRINUSE
},
5482 { "WSAEADDRNOTAVAIL", 0xc0010000 | WSAEADDRNOTAVAIL
},
5483 { "WSAEAFNOSUPPORT", 0xc0010000 | WSAEAFNOSUPPORT
},
5484 { "WSAEALREADY", 0xc0010000 | WSAEALREADY
},
5485 { "WSAEBADF", 0xc0010000 | WSAEBADF
},
5486 { "WSAECONNABORTED", 0xc0010000 | WSAECONNABORTED
},
5487 { "WSAECONNREFUSED", 0xc0010000 | WSAECONNREFUSED
},
5488 { "WSAECONNRESET", 0xc0010000 | WSAECONNRESET
},
5489 { "WSAEDESTADDRREQ", 0xc0010000 | WSAEDESTADDRREQ
},
5490 { "WSAEDQUOT", 0xc0010000 | WSAEDQUOT
},
5491 { "WSAEFAULT", 0xc0010000 | WSAEFAULT
},
5492 { "WSAEHOSTDOWN", 0xc0010000 | WSAEHOSTDOWN
},
5493 { "WSAEHOSTUNREACH", 0xc0010000 | WSAEHOSTUNREACH
},
5494 { "WSAEINTR", 0xc0010000 | WSAEINTR
},
5495 { "WSAEINVAL", 0xc0010000 | WSAEINVAL
},
5496 { "WSAEISCONN", 0xc0010000 | WSAEISCONN
},
5497 { "WSAELOOP", 0xc0010000 | WSAELOOP
},
5498 { "WSAEMFILE", 0xc0010000 | WSAEMFILE
},
5499 { "WSAEMSGSIZE", 0xc0010000 | WSAEMSGSIZE
},
5500 { "WSAENAMETOOLONG", 0xc0010000 | WSAENAMETOOLONG
},
5501 { "WSAENETDOWN", 0xc0010000 | WSAENETDOWN
},
5502 { "WSAENETRESET", 0xc0010000 | WSAENETRESET
},
5503 { "WSAENETUNREACH", 0xc0010000 | WSAENETUNREACH
},
5504 { "WSAENOBUFS", 0xc0010000 | WSAENOBUFS
},
5505 { "WSAENOPROTOOPT", 0xc0010000 | WSAENOPROTOOPT
},
5506 { "WSAENOTCONN", 0xc0010000 | WSAENOTCONN
},
5507 { "WSAENOTEMPTY", 0xc0010000 | WSAENOTEMPTY
},
5508 { "WSAENOTSOCK", 0xc0010000 | WSAENOTSOCK
},
5509 { "WSAEOPNOTSUPP", 0xc0010000 | WSAEOPNOTSUPP
},
5510 { "WSAEPFNOSUPPORT", 0xc0010000 | WSAEPFNOSUPPORT
},
5511 { "WSAEPROCLIM", 0xc0010000 | WSAEPROCLIM
},
5512 { "WSAEPROTONOSUPPORT", 0xc0010000 | WSAEPROTONOSUPPORT
},
5513 { "WSAEPROTOTYPE", 0xc0010000 | WSAEPROTOTYPE
},
5514 { "WSAEREMOTE", 0xc0010000 | WSAEREMOTE
},
5515 { "WSAESHUTDOWN", 0xc0010000 | WSAESHUTDOWN
},
5516 { "WSAESOCKTNOSUPPORT", 0xc0010000 | WSAESOCKTNOSUPPORT
},
5517 { "WSAESTALE", 0xc0010000 | WSAESTALE
},
5518 { "WSAETIMEDOUT", 0xc0010000 | WSAETIMEDOUT
},
5519 { "WSAETOOMANYREFS", 0xc0010000 | WSAETOOMANYREFS
},
5520 { "WSAEUSERS", 0xc0010000 | WSAEUSERS
},
5521 { "WSAEWOULDBLOCK", 0xc0010000 | WSAEWOULDBLOCK
},
5525 /* ### make_requests end ### */
5526 /* Everything above this line is generated automatically by tools/make_requests */
5528 static const char *get_status_name( unsigned int status
)
5531 static char buffer
[10];
5535 for (i
= 0; status_names
[i
].name
; i
++)
5536 if (status_names
[i
].value
== status
) return status_names
[i
].name
;
5538 sprintf( buffer
, "%x", status
);
5542 void trace_request(void)
5544 enum request req
= current
->req
.request_header
.req
;
5545 if (req
< REQ_NB_REQUESTS
)
5547 fprintf( stderr
, "%04x: %s(", current
->id
, req_names
[req
] );
5548 if (req_dumpers
[req
])
5550 cur_data
= get_req_data();
5551 cur_size
= get_req_data_size();
5552 req_dumpers
[req
]( ¤t
->req
);
5554 fprintf( stderr
, " )\n" );
5556 else fprintf( stderr
, "%04x: %d(?)\n", current
->id
, req
);
5559 void trace_reply( enum request req
, const union generic_reply
*reply
)
5561 if (req
< REQ_NB_REQUESTS
)
5563 fprintf( stderr
, "%04x: %s() = %s",
5564 current
->id
, req_names
[req
], get_status_name(current
->error
) );
5565 if (reply_dumpers
[req
])
5567 fprintf( stderr
, " {" );
5568 cur_data
= current
->reply_data
;
5569 cur_size
= reply
->reply_header
.reply_size
;
5570 reply_dumpers
[req
]( reply
);
5571 fprintf( stderr
, " }" );
5573 fputc( '\n', stderr
);
5575 else fprintf( stderr
, "%04x: %d() = %s\n",
5576 current
->id
, req
, get_status_name(current
->error
) );