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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22 #include "wine/port.h"
26 #include <sys/types.h>
40 static const void *cur_data
;
43 /* utility functions */
45 inline static void remove_data( size_t size
)
47 cur_data
= (const char *)cur_data
+ size
;
51 static void dump_uints( const int *ptr
, int len
)
56 fprintf( stderr
, "%08x", *ptr
++ );
57 if (--len
) fputc( ',', stderr
);
62 static void dump_abs_time( const abs_time_t
*time
)
67 if (!time
->sec
&& !time
->usec
)
69 fprintf( stderr
, "0" );
72 gettimeofday( &tv
, NULL
);
73 secs
= time
->sec
- tv
.tv_sec
;
74 if ((usecs
= time
->usec
- tv
.tv_usec
) < 0)
79 if (secs
> 0 || (secs
== 0 && usecs
>= 0))
80 fprintf( stderr
, "%d.%06d (+%d.%06d)", time
->sec
, time
->usec
, secs
, usecs
);
82 fprintf( stderr
, "%d.%06d (-%d.%06d)", time
->sec
, time
->usec
, abs(secs
+1), 1000000-usecs
);
85 static void dump_rectangle( const rectangle_t
*rect
)
87 fprintf( stderr
, "{%d,%d;%d,%d}",
88 rect
->left
, rect
->top
, rect
->right
, rect
->bottom
);
91 static void dump_char_info( const char_info_t
*info
)
93 fprintf( stderr
, "{'" );
94 dump_strW( &info
->ch
, 1, stderr
, "\'\'" );
95 fprintf( stderr
, "',%04x}", info
->attr
);
98 static void dump_context( const CONTEXT
*context
)
101 fprintf( stderr
, "{flags=%08lx,eax=%08lx,ebx=%08lx,ecx=%08lx,edx=%08lx,esi=%08lx,edi=%08lx,"
102 "ebp=%08lx,eip=%08lx,esp=%08lx,eflags=%08lx,cs=%04lx,ds=%04lx,es=%04lx,"
103 "fs=%04lx,gs=%04lx,dr0=%08lx,dr1=%08lx,dr2=%08lx,dr3=%08lx,dr6=%08lx,dr7=%08lx,",
104 context
->ContextFlags
, context
->Eax
, context
->Ebx
, context
->Ecx
, context
->Edx
,
105 context
->Esi
, context
->Edi
, context
->Ebp
, context
->Eip
, context
->Esp
, context
->EFlags
,
106 context
->SegCs
, context
->SegDs
, context
->SegEs
, context
->SegFs
, context
->SegGs
,
107 context
->Dr0
, context
->Dr1
, context
->Dr2
, context
->Dr3
, context
->Dr6
, context
->Dr7
);
108 fprintf( stderr
, "float=" );
109 dump_uints( (int *)&context
->FloatSave
, sizeof(context
->FloatSave
) / sizeof(int) );
110 fprintf( stderr
, "}" );
112 dump_uints( (int *)context
, sizeof(*context
) / sizeof(int) );
116 static void dump_exc_record( const EXCEPTION_RECORD
*rec
)
119 fprintf( stderr
, "{code=%lx,flags=%lx,rec=%p,addr=%p,params={",
120 rec
->ExceptionCode
, rec
->ExceptionFlags
, rec
->ExceptionRecord
,
121 rec
->ExceptionAddress
);
122 for (i
= 0; i
< min(rec
->NumberParameters
,EXCEPTION_MAXIMUM_PARAMETERS
); i
++)
124 if (i
) fputc( ',', stderr
);
125 fprintf( stderr
, "%lx", rec
->ExceptionInformation
[i
] );
127 fputc( '}', stderr
);
130 static void dump_varargs_ints( size_t size
)
132 const int *data
= cur_data
;
133 size_t len
= size
/ sizeof(*data
);
135 fputc( '{', stderr
);
138 fprintf( stderr
, "%d", *data
++ );
139 if (--len
) fputc( ',', stderr
);
141 fputc( '}', stderr
);
145 static void dump_varargs_handles( size_t size
)
147 const obj_handle_t
*data
= cur_data
;
148 size_t len
= size
/ sizeof(*data
);
150 fputc( '{', stderr
);
153 fprintf( stderr
, "%p", *data
++ );
154 if (--len
) fputc( ',', stderr
);
156 fputc( '}', stderr
);
160 static void dump_varargs_user_handles( size_t size
)
162 const user_handle_t
*data
= cur_data
;
163 size_t len
= size
/ sizeof(*data
);
165 fputc( '{', stderr
);
168 fprintf( stderr
, "%p", *data
++ );
169 if (--len
) fputc( ',', stderr
);
171 fputc( '}', stderr
);
175 static void dump_varargs_bytes( size_t size
)
177 const unsigned char *data
= cur_data
;
180 fputc( '{', stderr
);
183 fprintf( stderr
, "%02x", *data
++ );
184 if (--len
) fputc( ',', stderr
);
186 fputc( '}', stderr
);
190 static void dump_varargs_string( size_t size
)
192 fprintf( stderr
, "\"%.*s\"", (int)size
, (char *)cur_data
);
196 static void dump_varargs_unicode_str( size_t size
)
198 fprintf( stderr
, "L\"" );
199 dump_strW( cur_data
, size
/ sizeof(WCHAR
), stderr
, "\"\"" );
200 fputc( '\"', stderr
);
204 static void dump_varargs_context( size_t size
)
208 fprintf( stderr
, "{}" );
211 dump_context( cur_data
);
215 static void dump_varargs_exc_event( size_t size
)
217 const CONTEXT
*ptr
= cur_data
;
221 fprintf( stderr
, "{}" );
224 fprintf( stderr
, "{context=" );
226 fprintf( stderr
, ",rec=" );
227 dump_exc_record( (EXCEPTION_RECORD
*)(ptr
+ 1) );
228 fputc( '}', stderr
);
232 static void dump_varargs_debug_event( size_t size
)
234 const debug_event_t
*event
= cur_data
;
238 fprintf( stderr
, "{}" );
243 case EXCEPTION_DEBUG_EVENT
:
244 fprintf( stderr
, "{exception," );
245 dump_exc_record( &event
->info
.exception
.record
);
246 fprintf( stderr
, ",first=%d}", event
->info
.exception
.first
);
248 case CREATE_THREAD_DEBUG_EVENT
:
249 fprintf( stderr
, "{create_thread,thread=%p,teb=%p,start=%p}",
250 event
->info
.create_thread
.handle
, event
->info
.create_thread
.teb
,
251 event
->info
.create_thread
.start
);
253 case CREATE_PROCESS_DEBUG_EVENT
:
254 fprintf( stderr
, "{create_process,file=%p,process=%p,thread=%p,base=%p,offset=%d,"
255 "size=%d,teb=%p,start=%p,name=%p,unicode=%d}",
256 event
->info
.create_process
.file
, event
->info
.create_process
.process
,
257 event
->info
.create_process
.thread
, event
->info
.create_process
.base
,
258 event
->info
.create_process
.dbg_offset
, event
->info
.create_process
.dbg_size
,
259 event
->info
.create_process
.teb
, event
->info
.create_process
.start
,
260 event
->info
.create_process
.name
, event
->info
.create_process
.unicode
);
262 case EXIT_THREAD_DEBUG_EVENT
:
263 fprintf( stderr
, "{exit_thread,code=%d}", event
->info
.exit
.exit_code
);
265 case EXIT_PROCESS_DEBUG_EVENT
:
266 fprintf( stderr
, "{exit_process,code=%d}", event
->info
.exit
.exit_code
);
268 case LOAD_DLL_DEBUG_EVENT
:
269 fprintf( stderr
, "{load_dll,file=%p,base=%p,offset=%d,size=%d,name=%p,unicode=%d}",
270 event
->info
.load_dll
.handle
, event
->info
.load_dll
.base
,
271 event
->info
.load_dll
.dbg_offset
, event
->info
.load_dll
.dbg_size
,
272 event
->info
.load_dll
.name
, event
->info
.load_dll
.unicode
);
274 case UNLOAD_DLL_DEBUG_EVENT
:
275 fprintf( stderr
, "{unload_dll,base=%p}", event
->info
.unload_dll
.base
);
277 case OUTPUT_DEBUG_STRING_EVENT
:
278 fprintf( stderr
, "{output_string,data=%p,unicode=%d,len=%d}",
279 event
->info
.output_string
.string
, event
->info
.output_string
.unicode
,
280 event
->info
.output_string
.length
);
283 fprintf( stderr
, "{rip,err=%d,type=%d}",
284 event
->info
.rip_info
.error
, event
->info
.rip_info
.type
);
286 case 0: /* zero is the code returned on timeouts */
287 fprintf( stderr
, "{}" );
290 fprintf( stderr
, "{code=??? (%d)}", event
->code
);
296 static void dump_varargs_startup_info( size_t size
)
298 const startup_info_t
*ptr
= cur_data
;
301 if (size
< sizeof(info
.size
))
303 fprintf( stderr
, "{}" );
306 if (size
> ptr
->size
) size
= ptr
->size
;
307 memset( &info
, 0, sizeof(info
) );
308 memcpy( &info
, ptr
, min( size
, sizeof(info
) ));
310 fprintf( stderr
, "{size=%d", info
.size
);
311 fprintf( stderr
, ",x=%d", info
.x
);
312 fprintf( stderr
, ",y=%d", info
.y
);
313 fprintf( stderr
, ",cx=%d", info
.cx
);
314 fprintf( stderr
, ",cy=%d", info
.cy
);
315 fprintf( stderr
, ",x_chars=%d", info
.x_chars
);
316 fprintf( stderr
, ",y_chars=%d", info
.y_chars
);
317 fprintf( stderr
, ",attr=%d", info
.attribute
);
318 fprintf( stderr
, ",cmd_show=%d", info
.cmd_show
);
319 fprintf( stderr
, ",flags=%x", info
.flags
);
321 fprintf( stderr
, ",filename=" );
322 /* FIXME: these should be unicode */
323 dump_varargs_string( min(cur_size
,info
.filename_len
) );
324 fprintf( stderr
, ",cmdline=" );
325 dump_varargs_string( min(cur_size
,info
.cmdline_len
) );
326 fprintf( stderr
, ",desktop=" );
327 dump_varargs_string( min(cur_size
,info
.desktop_len
) );
328 fprintf( stderr
, ",title=" );
329 dump_varargs_string( min(cur_size
,info
.title_len
) );
330 fputc( '}', stderr
);
333 static void dump_varargs_input_records( size_t size
)
335 const INPUT_RECORD
*rec
= cur_data
;
336 size_t len
= size
/ sizeof(*rec
);
338 fputc( '{', stderr
);
341 fprintf( stderr
, "{%04x,...}", rec
->EventType
);
343 if (--len
) fputc( ',', stderr
);
345 fputc( '}', stderr
);
349 static void dump_varargs_properties( size_t size
)
351 const property_data_t
*prop
= cur_data
;
352 size_t len
= size
/ sizeof(*prop
);
354 fputc( '{', stderr
);
357 fprintf( stderr
, "{atom=%04x,str=%d,handle=%p}",
358 prop
->atom
, prop
->string
, prop
->handle
);
360 if (--len
) fputc( ',', stderr
);
362 fputc( '}', stderr
);
366 typedef void (*dump_func
)( const void *req
);
368 /* Everything below this line is generated automatically by tools/make_requests */
369 /* ### make_requests begin ### */
371 static void dump_new_process_request( const struct new_process_request
*req
)
373 fprintf( stderr
, " inherit_all=%d,", req
->inherit_all
);
374 fprintf( stderr
, " use_handles=%d,", req
->use_handles
);
375 fprintf( stderr
, " create_flags=%d,", req
->create_flags
);
376 fprintf( stderr
, " unix_pid=%d,", req
->unix_pid
);
377 fprintf( stderr
, " exe_file=%p,", req
->exe_file
);
378 fprintf( stderr
, " hstdin=%p,", req
->hstdin
);
379 fprintf( stderr
, " hstdout=%p,", req
->hstdout
);
380 fprintf( stderr
, " hstderr=%p,", req
->hstderr
);
381 fprintf( stderr
, " info=" );
382 dump_varargs_startup_info( cur_size
);
385 static void dump_new_process_reply( const struct new_process_reply
*req
)
387 fprintf( stderr
, " info=%p", req
->info
);
390 static void dump_get_new_process_info_request( const struct get_new_process_info_request
*req
)
392 fprintf( stderr
, " info=%p,", req
->info
);
393 fprintf( stderr
, " pinherit=%d,", req
->pinherit
);
394 fprintf( stderr
, " tinherit=%d", req
->tinherit
);
397 static void dump_get_new_process_info_reply( const struct get_new_process_info_reply
*req
)
399 fprintf( stderr
, " pid=%04x,", req
->pid
);
400 fprintf( stderr
, " phandle=%p,", req
->phandle
);
401 fprintf( stderr
, " tid=%04x,", req
->tid
);
402 fprintf( stderr
, " thandle=%p,", req
->thandle
);
403 fprintf( stderr
, " success=%d", req
->success
);
406 static void dump_new_thread_request( const struct new_thread_request
*req
)
408 fprintf( stderr
, " suspend=%d,", req
->suspend
);
409 fprintf( stderr
, " inherit=%d,", req
->inherit
);
410 fprintf( stderr
, " request_fd=%d", req
->request_fd
);
413 static void dump_new_thread_reply( const struct new_thread_reply
*req
)
415 fprintf( stderr
, " tid=%04x,", req
->tid
);
416 fprintf( stderr
, " handle=%p", req
->handle
);
419 static void dump_boot_done_request( const struct boot_done_request
*req
)
421 fprintf( stderr
, " debug_level=%d", req
->debug_level
);
424 static void dump_init_process_request( const struct init_process_request
*req
)
426 fprintf( stderr
, " ldt_copy=%p", req
->ldt_copy
);
429 static void dump_init_process_reply( const struct init_process_reply
*req
)
431 fprintf( stderr
, " create_flags=%d,", req
->create_flags
);
432 fprintf( stderr
, " server_start=%08x,", req
->server_start
);
433 fprintf( stderr
, " info_size=%d,", req
->info_size
);
434 fprintf( stderr
, " exe_file=%p,", req
->exe_file
);
435 fprintf( stderr
, " hstdin=%p,", req
->hstdin
);
436 fprintf( stderr
, " hstdout=%p,", req
->hstdout
);
437 fprintf( stderr
, " hstderr=%p", req
->hstderr
);
440 static void dump_get_startup_info_request( const struct get_startup_info_request
*req
)
444 static void dump_get_startup_info_reply( const struct get_startup_info_reply
*req
)
446 fprintf( stderr
, " info=" );
447 dump_varargs_startup_info( cur_size
);
450 static void dump_init_process_done_request( const struct init_process_done_request
*req
)
452 fprintf( stderr
, " module=%p,", req
->module
);
453 fprintf( stderr
, " module_size=%d,", req
->module_size
);
454 fprintf( stderr
, " entry=%p,", req
->entry
);
455 fprintf( stderr
, " name=%p,", req
->name
);
456 fprintf( stderr
, " exe_file=%p,", req
->exe_file
);
457 fprintf( stderr
, " gui=%d,", req
->gui
);
458 fprintf( stderr
, " filename=" );
459 dump_varargs_string( cur_size
);
462 static void dump_init_process_done_reply( const struct init_process_done_reply
*req
)
464 fprintf( stderr
, " debugged=%d", req
->debugged
);
467 static void dump_init_thread_request( const struct init_thread_request
*req
)
469 fprintf( stderr
, " unix_pid=%d,", req
->unix_pid
);
470 fprintf( stderr
, " unix_tid=%d,", req
->unix_tid
);
471 fprintf( stderr
, " teb=%p,", req
->teb
);
472 fprintf( stderr
, " entry=%p,", req
->entry
);
473 fprintf( stderr
, " reply_fd=%d,", req
->reply_fd
);
474 fprintf( stderr
, " wait_fd=%d", req
->wait_fd
);
477 static void dump_init_thread_reply( const struct init_thread_reply
*req
)
479 fprintf( stderr
, " pid=%04x,", req
->pid
);
480 fprintf( stderr
, " tid=%04x,", req
->tid
);
481 fprintf( stderr
, " boot=%d,", req
->boot
);
482 fprintf( stderr
, " version=%d", req
->version
);
485 static void dump_terminate_process_request( const struct terminate_process_request
*req
)
487 fprintf( stderr
, " handle=%p,", req
->handle
);
488 fprintf( stderr
, " exit_code=%d", req
->exit_code
);
491 static void dump_terminate_process_reply( const struct terminate_process_reply
*req
)
493 fprintf( stderr
, " self=%d", req
->self
);
496 static void dump_terminate_thread_request( const struct terminate_thread_request
*req
)
498 fprintf( stderr
, " handle=%p,", req
->handle
);
499 fprintf( stderr
, " exit_code=%d", req
->exit_code
);
502 static void dump_terminate_thread_reply( const struct terminate_thread_reply
*req
)
504 fprintf( stderr
, " self=%d,", req
->self
);
505 fprintf( stderr
, " last=%d", req
->last
);
508 static void dump_get_process_info_request( const struct get_process_info_request
*req
)
510 fprintf( stderr
, " handle=%p", req
->handle
);
513 static void dump_get_process_info_reply( const struct get_process_info_reply
*req
)
515 fprintf( stderr
, " pid=%04x,", req
->pid
);
516 fprintf( stderr
, " debugged=%d,", req
->debugged
);
517 fprintf( stderr
, " exit_code=%d,", req
->exit_code
);
518 fprintf( stderr
, " priority=%d,", req
->priority
);
519 fprintf( stderr
, " process_affinity=%d,", req
->process_affinity
);
520 fprintf( stderr
, " system_affinity=%d", req
->system_affinity
);
523 static void dump_set_process_info_request( const struct set_process_info_request
*req
)
525 fprintf( stderr
, " handle=%p,", req
->handle
);
526 fprintf( stderr
, " mask=%d,", req
->mask
);
527 fprintf( stderr
, " priority=%d,", req
->priority
);
528 fprintf( stderr
, " affinity=%d", req
->affinity
);
531 static void dump_get_thread_info_request( const struct get_thread_info_request
*req
)
533 fprintf( stderr
, " handle=%p,", req
->handle
);
534 fprintf( stderr
, " tid_in=%04x", req
->tid_in
);
537 static void dump_get_thread_info_reply( const struct get_thread_info_reply
*req
)
539 fprintf( stderr
, " tid=%04x,", req
->tid
);
540 fprintf( stderr
, " teb=%p,", req
->teb
);
541 fprintf( stderr
, " exit_code=%d,", req
->exit_code
);
542 fprintf( stderr
, " priority=%d,", req
->priority
);
543 fprintf( stderr
, " creation_time=%ld,", req
->creation_time
);
544 fprintf( stderr
, " exit_time=%ld", req
->exit_time
);
547 static void dump_set_thread_info_request( const struct set_thread_info_request
*req
)
549 fprintf( stderr
, " handle=%p,", req
->handle
);
550 fprintf( stderr
, " mask=%d,", req
->mask
);
551 fprintf( stderr
, " priority=%d,", req
->priority
);
552 fprintf( stderr
, " affinity=%d", req
->affinity
);
555 static void dump_get_dll_info_request( const struct get_dll_info_request
*req
)
557 fprintf( stderr
, " handle=%p,", req
->handle
);
558 fprintf( stderr
, " base_address=%p", req
->base_address
);
561 static void dump_get_dll_info_reply( const struct get_dll_info_reply
*req
)
563 fprintf( stderr
, " size=%d,", req
->size
);
564 fprintf( stderr
, " entry_point=%p,", req
->entry_point
);
565 fprintf( stderr
, " filename=" );
566 dump_varargs_string( cur_size
);
569 static void dump_suspend_thread_request( const struct suspend_thread_request
*req
)
571 fprintf( stderr
, " handle=%p", req
->handle
);
574 static void dump_suspend_thread_reply( const struct suspend_thread_reply
*req
)
576 fprintf( stderr
, " count=%d", req
->count
);
579 static void dump_resume_thread_request( const struct resume_thread_request
*req
)
581 fprintf( stderr
, " handle=%p", req
->handle
);
584 static void dump_resume_thread_reply( const struct resume_thread_reply
*req
)
586 fprintf( stderr
, " count=%d", req
->count
);
589 static void dump_load_dll_request( const struct load_dll_request
*req
)
591 fprintf( stderr
, " handle=%p,", req
->handle
);
592 fprintf( stderr
, " base=%p,", req
->base
);
593 fprintf( stderr
, " size=%d,", req
->size
);
594 fprintf( stderr
, " dbg_offset=%d,", req
->dbg_offset
);
595 fprintf( stderr
, " dbg_size=%d,", req
->dbg_size
);
596 fprintf( stderr
, " name=%p,", req
->name
);
597 fprintf( stderr
, " filename=" );
598 dump_varargs_string( cur_size
);
601 static void dump_unload_dll_request( const struct unload_dll_request
*req
)
603 fprintf( stderr
, " base=%p", req
->base
);
606 static void dump_queue_apc_request( const struct queue_apc_request
*req
)
608 fprintf( stderr
, " handle=%p,", req
->handle
);
609 fprintf( stderr
, " user=%d,", req
->user
);
610 fprintf( stderr
, " func=%p,", req
->func
);
611 fprintf( stderr
, " arg1=%p,", req
->arg1
);
612 fprintf( stderr
, " arg2=%p,", req
->arg2
);
613 fprintf( stderr
, " arg3=%p", req
->arg3
);
616 static void dump_get_apc_request( const struct get_apc_request
*req
)
618 fprintf( stderr
, " alertable=%d", req
->alertable
);
621 static void dump_get_apc_reply( const struct get_apc_reply
*req
)
623 fprintf( stderr
, " func=%p,", req
->func
);
624 fprintf( stderr
, " type=%d,", req
->type
);
625 fprintf( stderr
, " arg1=%p,", req
->arg1
);
626 fprintf( stderr
, " arg2=%p,", req
->arg2
);
627 fprintf( stderr
, " arg3=%p", req
->arg3
);
630 static void dump_close_handle_request( const struct close_handle_request
*req
)
632 fprintf( stderr
, " handle=%p", req
->handle
);
635 static void dump_close_handle_reply( const struct close_handle_reply
*req
)
637 fprintf( stderr
, " fd=%d", req
->fd
);
640 static void dump_set_handle_info_request( const struct set_handle_info_request
*req
)
642 fprintf( stderr
, " handle=%p,", req
->handle
);
643 fprintf( stderr
, " flags=%d,", req
->flags
);
644 fprintf( stderr
, " mask=%d,", req
->mask
);
645 fprintf( stderr
, " fd=%d", req
->fd
);
648 static void dump_set_handle_info_reply( const struct set_handle_info_reply
*req
)
650 fprintf( stderr
, " old_flags=%d,", req
->old_flags
);
651 fprintf( stderr
, " cur_fd=%d", req
->cur_fd
);
654 static void dump_dup_handle_request( const struct dup_handle_request
*req
)
656 fprintf( stderr
, " src_process=%p,", req
->src_process
);
657 fprintf( stderr
, " src_handle=%p,", req
->src_handle
);
658 fprintf( stderr
, " dst_process=%p,", req
->dst_process
);
659 fprintf( stderr
, " access=%08x,", req
->access
);
660 fprintf( stderr
, " inherit=%d,", req
->inherit
);
661 fprintf( stderr
, " options=%d", req
->options
);
664 static void dump_dup_handle_reply( const struct dup_handle_reply
*req
)
666 fprintf( stderr
, " handle=%p,", req
->handle
);
667 fprintf( stderr
, " fd=%d", req
->fd
);
670 static void dump_open_process_request( const struct open_process_request
*req
)
672 fprintf( stderr
, " pid=%04x,", req
->pid
);
673 fprintf( stderr
, " access=%08x,", req
->access
);
674 fprintf( stderr
, " inherit=%d", req
->inherit
);
677 static void dump_open_process_reply( const struct open_process_reply
*req
)
679 fprintf( stderr
, " handle=%p", req
->handle
);
682 static void dump_open_thread_request( const struct open_thread_request
*req
)
684 fprintf( stderr
, " tid=%04x,", req
->tid
);
685 fprintf( stderr
, " access=%08x,", req
->access
);
686 fprintf( stderr
, " inherit=%d", req
->inherit
);
689 static void dump_open_thread_reply( const struct open_thread_reply
*req
)
691 fprintf( stderr
, " handle=%p", req
->handle
);
694 static void dump_select_request( const struct select_request
*req
)
696 fprintf( stderr
, " flags=%d,", req
->flags
);
697 fprintf( stderr
, " cookie=%p,", req
->cookie
);
698 fprintf( stderr
, " timeout=" );
699 dump_abs_time( &req
->timeout
);
700 fprintf( stderr
, "," );
701 fprintf( stderr
, " handles=" );
702 dump_varargs_handles( cur_size
);
705 static void dump_create_event_request( const struct create_event_request
*req
)
707 fprintf( stderr
, " manual_reset=%d,", req
->manual_reset
);
708 fprintf( stderr
, " initial_state=%d,", req
->initial_state
);
709 fprintf( stderr
, " inherit=%d,", req
->inherit
);
710 fprintf( stderr
, " name=" );
711 dump_varargs_unicode_str( cur_size
);
714 static void dump_create_event_reply( const struct create_event_reply
*req
)
716 fprintf( stderr
, " handle=%p", req
->handle
);
719 static void dump_event_op_request( const struct event_op_request
*req
)
721 fprintf( stderr
, " handle=%p,", req
->handle
);
722 fprintf( stderr
, " op=%d", req
->op
);
725 static void dump_open_event_request( const struct open_event_request
*req
)
727 fprintf( stderr
, " access=%08x,", req
->access
);
728 fprintf( stderr
, " inherit=%d,", req
->inherit
);
729 fprintf( stderr
, " name=" );
730 dump_varargs_unicode_str( cur_size
);
733 static void dump_open_event_reply( const struct open_event_reply
*req
)
735 fprintf( stderr
, " handle=%p", req
->handle
);
738 static void dump_create_mutex_request( const struct create_mutex_request
*req
)
740 fprintf( stderr
, " owned=%d,", req
->owned
);
741 fprintf( stderr
, " inherit=%d,", req
->inherit
);
742 fprintf( stderr
, " name=" );
743 dump_varargs_unicode_str( cur_size
);
746 static void dump_create_mutex_reply( const struct create_mutex_reply
*req
)
748 fprintf( stderr
, " handle=%p", req
->handle
);
751 static void dump_release_mutex_request( const struct release_mutex_request
*req
)
753 fprintf( stderr
, " handle=%p", req
->handle
);
756 static void dump_open_mutex_request( const struct open_mutex_request
*req
)
758 fprintf( stderr
, " access=%08x,", req
->access
);
759 fprintf( stderr
, " inherit=%d,", req
->inherit
);
760 fprintf( stderr
, " name=" );
761 dump_varargs_unicode_str( cur_size
);
764 static void dump_open_mutex_reply( const struct open_mutex_reply
*req
)
766 fprintf( stderr
, " handle=%p", req
->handle
);
769 static void dump_create_semaphore_request( const struct create_semaphore_request
*req
)
771 fprintf( stderr
, " initial=%08x,", req
->initial
);
772 fprintf( stderr
, " max=%08x,", req
->max
);
773 fprintf( stderr
, " inherit=%d,", req
->inherit
);
774 fprintf( stderr
, " name=" );
775 dump_varargs_unicode_str( cur_size
);
778 static void dump_create_semaphore_reply( const struct create_semaphore_reply
*req
)
780 fprintf( stderr
, " handle=%p", req
->handle
);
783 static void dump_release_semaphore_request( const struct release_semaphore_request
*req
)
785 fprintf( stderr
, " handle=%p,", req
->handle
);
786 fprintf( stderr
, " count=%08x", req
->count
);
789 static void dump_release_semaphore_reply( const struct release_semaphore_reply
*req
)
791 fprintf( stderr
, " prev_count=%08x", req
->prev_count
);
794 static void dump_open_semaphore_request( const struct open_semaphore_request
*req
)
796 fprintf( stderr
, " access=%08x,", req
->access
);
797 fprintf( stderr
, " inherit=%d,", req
->inherit
);
798 fprintf( stderr
, " name=" );
799 dump_varargs_unicode_str( cur_size
);
802 static void dump_open_semaphore_reply( const struct open_semaphore_reply
*req
)
804 fprintf( stderr
, " handle=%p", req
->handle
);
807 static void dump_create_file_request( const struct create_file_request
*req
)
809 fprintf( stderr
, " access=%08x,", req
->access
);
810 fprintf( stderr
, " inherit=%d,", req
->inherit
);
811 fprintf( stderr
, " sharing=%08x,", req
->sharing
);
812 fprintf( stderr
, " create=%d,", req
->create
);
813 fprintf( stderr
, " attrs=%08x,", req
->attrs
);
814 fprintf( stderr
, " drive_type=%d,", req
->drive_type
);
815 fprintf( stderr
, " filename=" );
816 dump_varargs_string( cur_size
);
819 static void dump_create_file_reply( const struct create_file_reply
*req
)
821 fprintf( stderr
, " handle=%p", req
->handle
);
824 static void dump_alloc_file_handle_request( const struct alloc_file_handle_request
*req
)
826 fprintf( stderr
, " access=%08x,", req
->access
);
827 fprintf( stderr
, " inherit=%d,", req
->inherit
);
828 fprintf( stderr
, " fd=%d", req
->fd
);
831 static void dump_alloc_file_handle_reply( const struct alloc_file_handle_reply
*req
)
833 fprintf( stderr
, " handle=%p", req
->handle
);
836 static void dump_get_handle_fd_request( const struct get_handle_fd_request
*req
)
838 fprintf( stderr
, " handle=%p,", req
->handle
);
839 fprintf( stderr
, " access=%08x", req
->access
);
842 static void dump_get_handle_fd_reply( const struct get_handle_fd_reply
*req
)
844 fprintf( stderr
, " fd=%d,", req
->fd
);
845 fprintf( stderr
, " type=%d,", req
->type
);
846 fprintf( stderr
, " flags=%d", req
->flags
);
849 static void dump_set_file_pointer_request( const struct set_file_pointer_request
*req
)
851 fprintf( stderr
, " handle=%p,", req
->handle
);
852 fprintf( stderr
, " low=%d,", req
->low
);
853 fprintf( stderr
, " high=%d,", req
->high
);
854 fprintf( stderr
, " whence=%d", req
->whence
);
857 static void dump_set_file_pointer_reply( const struct set_file_pointer_reply
*req
)
859 fprintf( stderr
, " new_low=%d,", req
->new_low
);
860 fprintf( stderr
, " new_high=%d", req
->new_high
);
863 static void dump_truncate_file_request( const struct truncate_file_request
*req
)
865 fprintf( stderr
, " handle=%p", req
->handle
);
868 static void dump_set_file_time_request( const struct set_file_time_request
*req
)
870 fprintf( stderr
, " handle=%p,", req
->handle
);
871 fprintf( stderr
, " access_time=%ld,", req
->access_time
);
872 fprintf( stderr
, " write_time=%ld", req
->write_time
);
875 static void dump_flush_file_request( const struct flush_file_request
*req
)
877 fprintf( stderr
, " handle=%p", req
->handle
);
880 static void dump_flush_file_reply( const struct flush_file_reply
*req
)
882 fprintf( stderr
, " event=%p", req
->event
);
885 static void dump_get_file_info_request( const struct get_file_info_request
*req
)
887 fprintf( stderr
, " handle=%p", req
->handle
);
890 static void dump_get_file_info_reply( const struct get_file_info_reply
*req
)
892 fprintf( stderr
, " type=%d,", req
->type
);
893 fprintf( stderr
, " attr=%d,", req
->attr
);
894 fprintf( stderr
, " access_time=%ld,", req
->access_time
);
895 fprintf( stderr
, " write_time=%ld,", req
->write_time
);
896 fprintf( stderr
, " size_high=%d,", req
->size_high
);
897 fprintf( stderr
, " size_low=%d,", req
->size_low
);
898 fprintf( stderr
, " links=%d,", req
->links
);
899 fprintf( stderr
, " index_high=%d,", req
->index_high
);
900 fprintf( stderr
, " index_low=%d,", req
->index_low
);
901 fprintf( stderr
, " serial=%08x", req
->serial
);
904 static void dump_lock_file_request( const struct lock_file_request
*req
)
906 fprintf( stderr
, " handle=%p,", req
->handle
);
907 fprintf( stderr
, " offset_low=%08x,", req
->offset_low
);
908 fprintf( stderr
, " offset_high=%08x,", req
->offset_high
);
909 fprintf( stderr
, " count_low=%08x,", req
->count_low
);
910 fprintf( stderr
, " count_high=%08x,", req
->count_high
);
911 fprintf( stderr
, " shared=%d,", req
->shared
);
912 fprintf( stderr
, " wait=%d", req
->wait
);
915 static void dump_lock_file_reply( const struct lock_file_reply
*req
)
917 fprintf( stderr
, " handle=%p,", req
->handle
);
918 fprintf( stderr
, " overlapped=%d", req
->overlapped
);
921 static void dump_unlock_file_request( const struct unlock_file_request
*req
)
923 fprintf( stderr
, " handle=%p,", req
->handle
);
924 fprintf( stderr
, " offset_low=%08x,", req
->offset_low
);
925 fprintf( stderr
, " offset_high=%08x,", req
->offset_high
);
926 fprintf( stderr
, " count_low=%08x,", req
->count_low
);
927 fprintf( stderr
, " count_high=%08x", req
->count_high
);
930 static void dump_create_socket_request( const struct create_socket_request
*req
)
932 fprintf( stderr
, " access=%08x,", req
->access
);
933 fprintf( stderr
, " inherit=%d,", req
->inherit
);
934 fprintf( stderr
, " family=%d,", req
->family
);
935 fprintf( stderr
, " type=%d,", req
->type
);
936 fprintf( stderr
, " protocol=%d,", req
->protocol
);
937 fprintf( stderr
, " flags=%08x", req
->flags
);
940 static void dump_create_socket_reply( const struct create_socket_reply
*req
)
942 fprintf( stderr
, " handle=%p", req
->handle
);
945 static void dump_accept_socket_request( const struct accept_socket_request
*req
)
947 fprintf( stderr
, " lhandle=%p,", req
->lhandle
);
948 fprintf( stderr
, " access=%08x,", req
->access
);
949 fprintf( stderr
, " inherit=%d", req
->inherit
);
952 static void dump_accept_socket_reply( const struct accept_socket_reply
*req
)
954 fprintf( stderr
, " handle=%p", req
->handle
);
957 static void dump_set_socket_event_request( const struct set_socket_event_request
*req
)
959 fprintf( stderr
, " handle=%p,", req
->handle
);
960 fprintf( stderr
, " mask=%08x,", req
->mask
);
961 fprintf( stderr
, " event=%p,", req
->event
);
962 fprintf( stderr
, " window=%p,", req
->window
);
963 fprintf( stderr
, " msg=%08x", req
->msg
);
966 static void dump_get_socket_event_request( const struct get_socket_event_request
*req
)
968 fprintf( stderr
, " handle=%p,", req
->handle
);
969 fprintf( stderr
, " service=%d,", req
->service
);
970 fprintf( stderr
, " c_event=%p", req
->c_event
);
973 static void dump_get_socket_event_reply( const struct get_socket_event_reply
*req
)
975 fprintf( stderr
, " mask=%08x,", req
->mask
);
976 fprintf( stderr
, " pmask=%08x,", req
->pmask
);
977 fprintf( stderr
, " state=%08x,", req
->state
);
978 fprintf( stderr
, " errors=" );
979 dump_varargs_ints( cur_size
);
982 static void dump_enable_socket_event_request( const struct enable_socket_event_request
*req
)
984 fprintf( stderr
, " handle=%p,", req
->handle
);
985 fprintf( stderr
, " mask=%08x,", req
->mask
);
986 fprintf( stderr
, " sstate=%08x,", req
->sstate
);
987 fprintf( stderr
, " cstate=%08x", req
->cstate
);
990 static void dump_set_socket_deferred_request( const struct set_socket_deferred_request
*req
)
992 fprintf( stderr
, " handle=%p,", req
->handle
);
993 fprintf( stderr
, " deferred=%p", req
->deferred
);
996 static void dump_alloc_console_request( const struct alloc_console_request
*req
)
998 fprintf( stderr
, " access=%08x,", req
->access
);
999 fprintf( stderr
, " inherit=%d,", req
->inherit
);
1000 fprintf( stderr
, " pid=%04x", req
->pid
);
1003 static void dump_alloc_console_reply( const struct alloc_console_reply
*req
)
1005 fprintf( stderr
, " handle_in=%p,", req
->handle_in
);
1006 fprintf( stderr
, " event=%p", req
->event
);
1009 static void dump_free_console_request( const struct free_console_request
*req
)
1013 static void dump_get_console_renderer_events_request( const struct get_console_renderer_events_request
*req
)
1015 fprintf( stderr
, " handle=%p", req
->handle
);
1018 static void dump_get_console_renderer_events_reply( const struct get_console_renderer_events_reply
*req
)
1020 fprintf( stderr
, " data=" );
1021 dump_varargs_bytes( cur_size
);
1024 static void dump_open_console_request( const struct open_console_request
*req
)
1026 fprintf( stderr
, " from=%d,", req
->from
);
1027 fprintf( stderr
, " access=%08x,", req
->access
);
1028 fprintf( stderr
, " inherit=%d,", req
->inherit
);
1029 fprintf( stderr
, " share=%d", req
->share
);
1032 static void dump_open_console_reply( const struct open_console_reply
*req
)
1034 fprintf( stderr
, " handle=%p", req
->handle
);
1037 static void dump_get_console_mode_request( const struct get_console_mode_request
*req
)
1039 fprintf( stderr
, " handle=%p", req
->handle
);
1042 static void dump_get_console_mode_reply( const struct get_console_mode_reply
*req
)
1044 fprintf( stderr
, " mode=%d", req
->mode
);
1047 static void dump_set_console_mode_request( const struct set_console_mode_request
*req
)
1049 fprintf( stderr
, " handle=%p,", req
->handle
);
1050 fprintf( stderr
, " mode=%d", req
->mode
);
1053 static void dump_set_console_input_info_request( const struct set_console_input_info_request
*req
)
1055 fprintf( stderr
, " handle=%p,", req
->handle
);
1056 fprintf( stderr
, " mask=%d,", req
->mask
);
1057 fprintf( stderr
, " active_sb=%p,", req
->active_sb
);
1058 fprintf( stderr
, " history_mode=%d,", req
->history_mode
);
1059 fprintf( stderr
, " history_size=%d,", req
->history_size
);
1060 fprintf( stderr
, " edition_mode=%d,", req
->edition_mode
);
1061 fprintf( stderr
, " title=" );
1062 dump_varargs_unicode_str( cur_size
);
1065 static void dump_get_console_input_info_request( const struct get_console_input_info_request
*req
)
1067 fprintf( stderr
, " handle=%p", req
->handle
);
1070 static void dump_get_console_input_info_reply( const struct get_console_input_info_reply
*req
)
1072 fprintf( stderr
, " history_mode=%d,", req
->history_mode
);
1073 fprintf( stderr
, " history_size=%d,", req
->history_size
);
1074 fprintf( stderr
, " history_index=%d,", req
->history_index
);
1075 fprintf( stderr
, " edition_mode=%d,", req
->edition_mode
);
1076 fprintf( stderr
, " title=" );
1077 dump_varargs_unicode_str( cur_size
);
1080 static void dump_append_console_input_history_request( const struct append_console_input_history_request
*req
)
1082 fprintf( stderr
, " handle=%p,", req
->handle
);
1083 fprintf( stderr
, " line=" );
1084 dump_varargs_unicode_str( cur_size
);
1087 static void dump_get_console_input_history_request( const struct get_console_input_history_request
*req
)
1089 fprintf( stderr
, " handle=%p,", req
->handle
);
1090 fprintf( stderr
, " index=%d", req
->index
);
1093 static void dump_get_console_input_history_reply( const struct get_console_input_history_reply
*req
)
1095 fprintf( stderr
, " total=%d,", req
->total
);
1096 fprintf( stderr
, " line=" );
1097 dump_varargs_unicode_str( cur_size
);
1100 static void dump_create_console_output_request( const struct create_console_output_request
*req
)
1102 fprintf( stderr
, " handle_in=%p,", req
->handle_in
);
1103 fprintf( stderr
, " access=%d,", req
->access
);
1104 fprintf( stderr
, " share=%d,", req
->share
);
1105 fprintf( stderr
, " inherit=%d", req
->inherit
);
1108 static void dump_create_console_output_reply( const struct create_console_output_reply
*req
)
1110 fprintf( stderr
, " handle_out=%p", req
->handle_out
);
1113 static void dump_set_console_output_info_request( const struct set_console_output_info_request
*req
)
1115 fprintf( stderr
, " handle=%p,", req
->handle
);
1116 fprintf( stderr
, " mask=%d,", req
->mask
);
1117 fprintf( stderr
, " cursor_size=%d,", req
->cursor_size
);
1118 fprintf( stderr
, " cursor_visible=%d,", req
->cursor_visible
);
1119 fprintf( stderr
, " cursor_x=%d,", req
->cursor_x
);
1120 fprintf( stderr
, " cursor_y=%d,", req
->cursor_y
);
1121 fprintf( stderr
, " width=%d,", req
->width
);
1122 fprintf( stderr
, " height=%d,", req
->height
);
1123 fprintf( stderr
, " attr=%d,", req
->attr
);
1124 fprintf( stderr
, " win_left=%d,", req
->win_left
);
1125 fprintf( stderr
, " win_top=%d,", req
->win_top
);
1126 fprintf( stderr
, " win_right=%d,", req
->win_right
);
1127 fprintf( stderr
, " win_bottom=%d,", req
->win_bottom
);
1128 fprintf( stderr
, " max_width=%d,", req
->max_width
);
1129 fprintf( stderr
, " max_height=%d", req
->max_height
);
1132 static void dump_get_console_output_info_request( const struct get_console_output_info_request
*req
)
1134 fprintf( stderr
, " handle=%p", req
->handle
);
1137 static void dump_get_console_output_info_reply( const struct get_console_output_info_reply
*req
)
1139 fprintf( stderr
, " cursor_size=%d,", req
->cursor_size
);
1140 fprintf( stderr
, " cursor_visible=%d,", req
->cursor_visible
);
1141 fprintf( stderr
, " cursor_x=%d,", req
->cursor_x
);
1142 fprintf( stderr
, " cursor_y=%d,", req
->cursor_y
);
1143 fprintf( stderr
, " width=%d,", req
->width
);
1144 fprintf( stderr
, " height=%d,", req
->height
);
1145 fprintf( stderr
, " attr=%d,", req
->attr
);
1146 fprintf( stderr
, " win_left=%d,", req
->win_left
);
1147 fprintf( stderr
, " win_top=%d,", req
->win_top
);
1148 fprintf( stderr
, " win_right=%d,", req
->win_right
);
1149 fprintf( stderr
, " win_bottom=%d,", req
->win_bottom
);
1150 fprintf( stderr
, " max_width=%d,", req
->max_width
);
1151 fprintf( stderr
, " max_height=%d", req
->max_height
);
1154 static void dump_write_console_input_request( const struct write_console_input_request
*req
)
1156 fprintf( stderr
, " handle=%p,", req
->handle
);
1157 fprintf( stderr
, " rec=" );
1158 dump_varargs_input_records( cur_size
);
1161 static void dump_write_console_input_reply( const struct write_console_input_reply
*req
)
1163 fprintf( stderr
, " written=%d", req
->written
);
1166 static void dump_read_console_input_request( const struct read_console_input_request
*req
)
1168 fprintf( stderr
, " handle=%p,", req
->handle
);
1169 fprintf( stderr
, " flush=%d", req
->flush
);
1172 static void dump_read_console_input_reply( const struct read_console_input_reply
*req
)
1174 fprintf( stderr
, " read=%d,", req
->read
);
1175 fprintf( stderr
, " rec=" );
1176 dump_varargs_input_records( cur_size
);
1179 static void dump_write_console_output_request( const struct write_console_output_request
*req
)
1181 fprintf( stderr
, " handle=%p,", req
->handle
);
1182 fprintf( stderr
, " x=%d,", req
->x
);
1183 fprintf( stderr
, " y=%d,", req
->y
);
1184 fprintf( stderr
, " mode=%d,", req
->mode
);
1185 fprintf( stderr
, " wrap=%d,", req
->wrap
);
1186 fprintf( stderr
, " data=" );
1187 dump_varargs_bytes( cur_size
);
1190 static void dump_write_console_output_reply( const struct write_console_output_reply
*req
)
1192 fprintf( stderr
, " written=%d,", req
->written
);
1193 fprintf( stderr
, " width=%d,", req
->width
);
1194 fprintf( stderr
, " height=%d", req
->height
);
1197 static void dump_fill_console_output_request( const struct fill_console_output_request
*req
)
1199 fprintf( stderr
, " handle=%p,", req
->handle
);
1200 fprintf( stderr
, " x=%d,", req
->x
);
1201 fprintf( stderr
, " y=%d,", req
->y
);
1202 fprintf( stderr
, " mode=%d,", req
->mode
);
1203 fprintf( stderr
, " count=%d,", req
->count
);
1204 fprintf( stderr
, " wrap=%d,", req
->wrap
);
1205 fprintf( stderr
, " data=" );
1206 dump_char_info( &req
->data
);
1209 static void dump_fill_console_output_reply( const struct fill_console_output_reply
*req
)
1211 fprintf( stderr
, " written=%d", req
->written
);
1214 static void dump_read_console_output_request( const struct read_console_output_request
*req
)
1216 fprintf( stderr
, " handle=%p,", req
->handle
);
1217 fprintf( stderr
, " x=%d,", req
->x
);
1218 fprintf( stderr
, " y=%d,", req
->y
);
1219 fprintf( stderr
, " mode=%d,", req
->mode
);
1220 fprintf( stderr
, " wrap=%d", req
->wrap
);
1223 static void dump_read_console_output_reply( const struct read_console_output_reply
*req
)
1225 fprintf( stderr
, " width=%d,", req
->width
);
1226 fprintf( stderr
, " height=%d,", req
->height
);
1227 fprintf( stderr
, " data=" );
1228 dump_varargs_bytes( cur_size
);
1231 static void dump_move_console_output_request( const struct move_console_output_request
*req
)
1233 fprintf( stderr
, " handle=%p,", req
->handle
);
1234 fprintf( stderr
, " x_src=%d,", req
->x_src
);
1235 fprintf( stderr
, " y_src=%d,", req
->y_src
);
1236 fprintf( stderr
, " x_dst=%d,", req
->x_dst
);
1237 fprintf( stderr
, " y_dst=%d,", req
->y_dst
);
1238 fprintf( stderr
, " w=%d,", req
->w
);
1239 fprintf( stderr
, " h=%d", req
->h
);
1242 static void dump_send_console_signal_request( const struct send_console_signal_request
*req
)
1244 fprintf( stderr
, " signal=%d,", req
->signal
);
1245 fprintf( stderr
, " group_id=%04x", req
->group_id
);
1248 static void dump_create_change_notification_request( const struct create_change_notification_request
*req
)
1250 fprintf( stderr
, " handle=%p,", req
->handle
);
1251 fprintf( stderr
, " subtree=%d,", req
->subtree
);
1252 fprintf( stderr
, " filter=%08x", req
->filter
);
1255 static void dump_create_change_notification_reply( const struct create_change_notification_reply
*req
)
1257 fprintf( stderr
, " handle=%p", req
->handle
);
1260 static void dump_next_change_notification_request( const struct next_change_notification_request
*req
)
1262 fprintf( stderr
, " handle=%p", req
->handle
);
1265 static void dump_create_mapping_request( const struct create_mapping_request
*req
)
1267 fprintf( stderr
, " size_high=%d,", req
->size_high
);
1268 fprintf( stderr
, " size_low=%d,", req
->size_low
);
1269 fprintf( stderr
, " protect=%d,", req
->protect
);
1270 fprintf( stderr
, " access=%08x,", req
->access
);
1271 fprintf( stderr
, " inherit=%d,", req
->inherit
);
1272 fprintf( stderr
, " file_handle=%p,", req
->file_handle
);
1273 fprintf( stderr
, " name=" );
1274 dump_varargs_unicode_str( cur_size
);
1277 static void dump_create_mapping_reply( const struct create_mapping_reply
*req
)
1279 fprintf( stderr
, " handle=%p", req
->handle
);
1282 static void dump_open_mapping_request( const struct open_mapping_request
*req
)
1284 fprintf( stderr
, " access=%08x,", req
->access
);
1285 fprintf( stderr
, " inherit=%d,", req
->inherit
);
1286 fprintf( stderr
, " name=" );
1287 dump_varargs_unicode_str( cur_size
);
1290 static void dump_open_mapping_reply( const struct open_mapping_reply
*req
)
1292 fprintf( stderr
, " handle=%p", req
->handle
);
1295 static void dump_get_mapping_info_request( const struct get_mapping_info_request
*req
)
1297 fprintf( stderr
, " handle=%p", req
->handle
);
1300 static void dump_get_mapping_info_reply( const struct get_mapping_info_reply
*req
)
1302 fprintf( stderr
, " size_high=%d,", req
->size_high
);
1303 fprintf( stderr
, " size_low=%d,", req
->size_low
);
1304 fprintf( stderr
, " protect=%d,", req
->protect
);
1305 fprintf( stderr
, " header_size=%d,", req
->header_size
);
1306 fprintf( stderr
, " base=%p,", req
->base
);
1307 fprintf( stderr
, " shared_file=%p,", req
->shared_file
);
1308 fprintf( stderr
, " shared_size=%d,", req
->shared_size
);
1309 fprintf( stderr
, " drive_type=%d", req
->drive_type
);
1312 static void dump_create_device_request( const struct create_device_request
*req
)
1314 fprintf( stderr
, " access=%08x,", req
->access
);
1315 fprintf( stderr
, " inherit=%d,", req
->inherit
);
1316 fprintf( stderr
, " id=%d", req
->id
);
1319 static void dump_create_device_reply( const struct create_device_reply
*req
)
1321 fprintf( stderr
, " handle=%p", req
->handle
);
1324 static void dump_get_device_id_request( const struct get_device_id_request
*req
)
1326 fprintf( stderr
, " handle=%p", req
->handle
);
1329 static void dump_get_device_id_reply( const struct get_device_id_reply
*req
)
1331 fprintf( stderr
, " id=%d", req
->id
);
1334 static void dump_create_snapshot_request( const struct create_snapshot_request
*req
)
1336 fprintf( stderr
, " inherit=%d,", req
->inherit
);
1337 fprintf( stderr
, " flags=%d,", req
->flags
);
1338 fprintf( stderr
, " pid=%04x", req
->pid
);
1341 static void dump_create_snapshot_reply( const struct create_snapshot_reply
*req
)
1343 fprintf( stderr
, " handle=%p", req
->handle
);
1346 static void dump_next_process_request( const struct next_process_request
*req
)
1348 fprintf( stderr
, " handle=%p,", req
->handle
);
1349 fprintf( stderr
, " reset=%d", req
->reset
);
1352 static void dump_next_process_reply( const struct next_process_reply
*req
)
1354 fprintf( stderr
, " count=%d,", req
->count
);
1355 fprintf( stderr
, " pid=%04x,", req
->pid
);
1356 fprintf( stderr
, " ppid=%04x,", req
->ppid
);
1357 fprintf( stderr
, " heap=%p,", req
->heap
);
1358 fprintf( stderr
, " module=%p,", req
->module
);
1359 fprintf( stderr
, " threads=%d,", req
->threads
);
1360 fprintf( stderr
, " priority=%d,", req
->priority
);
1361 fprintf( stderr
, " filename=" );
1362 dump_varargs_string( cur_size
);
1365 static void dump_next_thread_request( const struct next_thread_request
*req
)
1367 fprintf( stderr
, " handle=%p,", req
->handle
);
1368 fprintf( stderr
, " reset=%d", req
->reset
);
1371 static void dump_next_thread_reply( const struct next_thread_reply
*req
)
1373 fprintf( stderr
, " count=%d,", req
->count
);
1374 fprintf( stderr
, " pid=%04x,", req
->pid
);
1375 fprintf( stderr
, " tid=%04x,", req
->tid
);
1376 fprintf( stderr
, " base_pri=%d,", req
->base_pri
);
1377 fprintf( stderr
, " delta_pri=%d", req
->delta_pri
);
1380 static void dump_next_module_request( const struct next_module_request
*req
)
1382 fprintf( stderr
, " handle=%p,", req
->handle
);
1383 fprintf( stderr
, " reset=%d", req
->reset
);
1386 static void dump_next_module_reply( const struct next_module_reply
*req
)
1388 fprintf( stderr
, " pid=%04x,", req
->pid
);
1389 fprintf( stderr
, " base=%p,", req
->base
);
1390 fprintf( stderr
, " size=%d,", req
->size
);
1391 fprintf( stderr
, " filename=" );
1392 dump_varargs_string( cur_size
);
1395 static void dump_wait_debug_event_request( const struct wait_debug_event_request
*req
)
1397 fprintf( stderr
, " get_handle=%d", req
->get_handle
);
1400 static void dump_wait_debug_event_reply( const struct wait_debug_event_reply
*req
)
1402 fprintf( stderr
, " pid=%04x,", req
->pid
);
1403 fprintf( stderr
, " tid=%04x,", req
->tid
);
1404 fprintf( stderr
, " wait=%p,", req
->wait
);
1405 fprintf( stderr
, " event=" );
1406 dump_varargs_debug_event( cur_size
);
1409 static void dump_queue_exception_event_request( const struct queue_exception_event_request
*req
)
1411 fprintf( stderr
, " first=%d,", req
->first
);
1412 fprintf( stderr
, " record=" );
1413 dump_varargs_exc_event( cur_size
);
1416 static void dump_queue_exception_event_reply( const struct queue_exception_event_reply
*req
)
1418 fprintf( stderr
, " handle=%p", req
->handle
);
1421 static void dump_get_exception_status_request( const struct get_exception_status_request
*req
)
1423 fprintf( stderr
, " handle=%p", req
->handle
);
1426 static void dump_get_exception_status_reply( const struct get_exception_status_reply
*req
)
1428 fprintf( stderr
, " status=%d,", req
->status
);
1429 fprintf( stderr
, " context=" );
1430 dump_varargs_context( cur_size
);
1433 static void dump_output_debug_string_request( const struct output_debug_string_request
*req
)
1435 fprintf( stderr
, " string=%p,", req
->string
);
1436 fprintf( stderr
, " unicode=%d,", req
->unicode
);
1437 fprintf( stderr
, " length=%d", req
->length
);
1440 static void dump_continue_debug_event_request( const struct continue_debug_event_request
*req
)
1442 fprintf( stderr
, " pid=%04x,", req
->pid
);
1443 fprintf( stderr
, " tid=%04x,", req
->tid
);
1444 fprintf( stderr
, " status=%d", req
->status
);
1447 static void dump_debug_process_request( const struct debug_process_request
*req
)
1449 fprintf( stderr
, " pid=%04x,", req
->pid
);
1450 fprintf( stderr
, " attach=%d", req
->attach
);
1453 static void dump_debug_break_request( const struct debug_break_request
*req
)
1455 fprintf( stderr
, " handle=%p", req
->handle
);
1458 static void dump_debug_break_reply( const struct debug_break_reply
*req
)
1460 fprintf( stderr
, " self=%d", req
->self
);
1463 static void dump_set_debugger_kill_on_exit_request( const struct set_debugger_kill_on_exit_request
*req
)
1465 fprintf( stderr
, " kill_on_exit=%d", req
->kill_on_exit
);
1468 static void dump_read_process_memory_request( const struct read_process_memory_request
*req
)
1470 fprintf( stderr
, " handle=%p,", req
->handle
);
1471 fprintf( stderr
, " addr=%p", req
->addr
);
1474 static void dump_read_process_memory_reply( const struct read_process_memory_reply
*req
)
1476 fprintf( stderr
, " data=" );
1477 dump_varargs_bytes( cur_size
);
1480 static void dump_write_process_memory_request( const struct write_process_memory_request
*req
)
1482 fprintf( stderr
, " handle=%p,", req
->handle
);
1483 fprintf( stderr
, " addr=%p,", req
->addr
);
1484 fprintf( stderr
, " first_mask=%08x,", req
->first_mask
);
1485 fprintf( stderr
, " last_mask=%08x,", req
->last_mask
);
1486 fprintf( stderr
, " data=" );
1487 dump_varargs_bytes( cur_size
);
1490 static void dump_create_key_request( const struct create_key_request
*req
)
1492 fprintf( stderr
, " parent=%p,", req
->parent
);
1493 fprintf( stderr
, " access=%08x,", req
->access
);
1494 fprintf( stderr
, " options=%08x,", req
->options
);
1495 fprintf( stderr
, " modif=%ld,", req
->modif
);
1496 fprintf( stderr
, " namelen=%d,", req
->namelen
);
1497 fprintf( stderr
, " name=" );
1498 dump_varargs_unicode_str( min(cur_size
,req
->namelen
) );
1499 fputc( ',', stderr
);
1500 fprintf( stderr
, " class=" );
1501 dump_varargs_unicode_str( cur_size
);
1504 static void dump_create_key_reply( const struct create_key_reply
*req
)
1506 fprintf( stderr
, " hkey=%p,", req
->hkey
);
1507 fprintf( stderr
, " created=%d", req
->created
);
1510 static void dump_open_key_request( const struct open_key_request
*req
)
1512 fprintf( stderr
, " parent=%p,", req
->parent
);
1513 fprintf( stderr
, " access=%08x,", req
->access
);
1514 fprintf( stderr
, " name=" );
1515 dump_varargs_unicode_str( cur_size
);
1518 static void dump_open_key_reply( const struct open_key_reply
*req
)
1520 fprintf( stderr
, " hkey=%p", req
->hkey
);
1523 static void dump_delete_key_request( const struct delete_key_request
*req
)
1525 fprintf( stderr
, " hkey=%p", req
->hkey
);
1528 static void dump_enum_key_request( const struct enum_key_request
*req
)
1530 fprintf( stderr
, " hkey=%p,", req
->hkey
);
1531 fprintf( stderr
, " index=%d,", req
->index
);
1532 fprintf( stderr
, " info_class=%d", req
->info_class
);
1535 static void dump_enum_key_reply( const struct enum_key_reply
*req
)
1537 fprintf( stderr
, " subkeys=%d,", req
->subkeys
);
1538 fprintf( stderr
, " max_subkey=%d,", req
->max_subkey
);
1539 fprintf( stderr
, " max_class=%d,", req
->max_class
);
1540 fprintf( stderr
, " values=%d,", req
->values
);
1541 fprintf( stderr
, " max_value=%d,", req
->max_value
);
1542 fprintf( stderr
, " max_data=%d,", req
->max_data
);
1543 fprintf( stderr
, " modif=%ld,", req
->modif
);
1544 fprintf( stderr
, " total=%d,", req
->total
);
1545 fprintf( stderr
, " namelen=%d,", req
->namelen
);
1546 fprintf( stderr
, " name=" );
1547 dump_varargs_unicode_str( min(cur_size
,req
->namelen
) );
1548 fputc( ',', stderr
);
1549 fprintf( stderr
, " class=" );
1550 dump_varargs_unicode_str( cur_size
);
1553 static void dump_set_key_value_request( const struct set_key_value_request
*req
)
1555 fprintf( stderr
, " hkey=%p,", req
->hkey
);
1556 fprintf( stderr
, " type=%d,", req
->type
);
1557 fprintf( stderr
, " namelen=%d,", req
->namelen
);
1558 fprintf( stderr
, " name=" );
1559 dump_varargs_unicode_str( min(cur_size
,req
->namelen
) );
1560 fputc( ',', stderr
);
1561 fprintf( stderr
, " data=" );
1562 dump_varargs_bytes( cur_size
);
1565 static void dump_get_key_value_request( const struct get_key_value_request
*req
)
1567 fprintf( stderr
, " hkey=%p,", req
->hkey
);
1568 fprintf( stderr
, " name=" );
1569 dump_varargs_unicode_str( cur_size
);
1572 static void dump_get_key_value_reply( const struct get_key_value_reply
*req
)
1574 fprintf( stderr
, " type=%d,", req
->type
);
1575 fprintf( stderr
, " total=%d,", req
->total
);
1576 fprintf( stderr
, " data=" );
1577 dump_varargs_bytes( cur_size
);
1580 static void dump_enum_key_value_request( const struct enum_key_value_request
*req
)
1582 fprintf( stderr
, " hkey=%p,", req
->hkey
);
1583 fprintf( stderr
, " index=%d,", req
->index
);
1584 fprintf( stderr
, " info_class=%d", req
->info_class
);
1587 static void dump_enum_key_value_reply( const struct enum_key_value_reply
*req
)
1589 fprintf( stderr
, " type=%d,", req
->type
);
1590 fprintf( stderr
, " total=%d,", req
->total
);
1591 fprintf( stderr
, " namelen=%d,", req
->namelen
);
1592 fprintf( stderr
, " name=" );
1593 dump_varargs_unicode_str( min(cur_size
,req
->namelen
) );
1594 fputc( ',', stderr
);
1595 fprintf( stderr
, " data=" );
1596 dump_varargs_bytes( cur_size
);
1599 static void dump_delete_key_value_request( const struct delete_key_value_request
*req
)
1601 fprintf( stderr
, " hkey=%p,", req
->hkey
);
1602 fprintf( stderr
, " name=" );
1603 dump_varargs_unicode_str( cur_size
);
1606 static void dump_load_registry_request( const struct load_registry_request
*req
)
1608 fprintf( stderr
, " hkey=%p,", req
->hkey
);
1609 fprintf( stderr
, " file=%p,", req
->file
);
1610 fprintf( stderr
, " name=" );
1611 dump_varargs_unicode_str( cur_size
);
1614 static void dump_save_registry_request( const struct save_registry_request
*req
)
1616 fprintf( stderr
, " hkey=%p,", req
->hkey
);
1617 fprintf( stderr
, " file=%p", req
->file
);
1620 static void dump_save_registry_atexit_request( const struct save_registry_atexit_request
*req
)
1622 fprintf( stderr
, " hkey=%p,", req
->hkey
);
1623 fprintf( stderr
, " file=" );
1624 dump_varargs_string( cur_size
);
1627 static void dump_set_registry_levels_request( const struct set_registry_levels_request
*req
)
1629 fprintf( stderr
, " current=%d,", req
->current
);
1630 fprintf( stderr
, " saving=%d,", req
->saving
);
1631 fprintf( stderr
, " period=%d", req
->period
);
1634 static void dump_set_registry_notification_request( const struct set_registry_notification_request
*req
)
1636 fprintf( stderr
, " hkey=%p,", req
->hkey
);
1637 fprintf( stderr
, " event=%p,", req
->event
);
1638 fprintf( stderr
, " subtree=%d,", req
->subtree
);
1639 fprintf( stderr
, " filter=%08x", req
->filter
);
1642 static void dump_create_timer_request( const struct create_timer_request
*req
)
1644 fprintf( stderr
, " inherit=%d,", req
->inherit
);
1645 fprintf( stderr
, " manual=%d,", req
->manual
);
1646 fprintf( stderr
, " name=" );
1647 dump_varargs_unicode_str( cur_size
);
1650 static void dump_create_timer_reply( const struct create_timer_reply
*req
)
1652 fprintf( stderr
, " handle=%p", req
->handle
);
1655 static void dump_open_timer_request( const struct open_timer_request
*req
)
1657 fprintf( stderr
, " access=%08x,", req
->access
);
1658 fprintf( stderr
, " inherit=%d,", req
->inherit
);
1659 fprintf( stderr
, " name=" );
1660 dump_varargs_unicode_str( cur_size
);
1663 static void dump_open_timer_reply( const struct open_timer_reply
*req
)
1665 fprintf( stderr
, " handle=%p", req
->handle
);
1668 static void dump_set_timer_request( const struct set_timer_request
*req
)
1670 fprintf( stderr
, " handle=%p,", req
->handle
);
1671 fprintf( stderr
, " expire=" );
1672 dump_abs_time( &req
->expire
);
1673 fprintf( stderr
, "," );
1674 fprintf( stderr
, " period=%d,", req
->period
);
1675 fprintf( stderr
, " callback=%p,", req
->callback
);
1676 fprintf( stderr
, " arg=%p", req
->arg
);
1679 static void dump_set_timer_reply( const struct set_timer_reply
*req
)
1681 fprintf( stderr
, " signaled=%d", req
->signaled
);
1684 static void dump_cancel_timer_request( const struct cancel_timer_request
*req
)
1686 fprintf( stderr
, " handle=%p", req
->handle
);
1689 static void dump_cancel_timer_reply( const struct cancel_timer_reply
*req
)
1691 fprintf( stderr
, " signaled=%d", req
->signaled
);
1694 static void dump_get_thread_context_request( const struct get_thread_context_request
*req
)
1696 fprintf( stderr
, " handle=%p,", req
->handle
);
1697 fprintf( stderr
, " flags=%08x", req
->flags
);
1700 static void dump_get_thread_context_reply( const struct get_thread_context_reply
*req
)
1702 fprintf( stderr
, " context=" );
1703 dump_varargs_context( cur_size
);
1706 static void dump_set_thread_context_request( const struct set_thread_context_request
*req
)
1708 fprintf( stderr
, " handle=%p,", req
->handle
);
1709 fprintf( stderr
, " flags=%08x,", req
->flags
);
1710 fprintf( stderr
, " context=" );
1711 dump_varargs_context( cur_size
);
1714 static void dump_get_selector_entry_request( const struct get_selector_entry_request
*req
)
1716 fprintf( stderr
, " handle=%p,", req
->handle
);
1717 fprintf( stderr
, " entry=%d", req
->entry
);
1720 static void dump_get_selector_entry_reply( const struct get_selector_entry_reply
*req
)
1722 fprintf( stderr
, " base=%08x,", req
->base
);
1723 fprintf( stderr
, " limit=%08x,", req
->limit
);
1724 fprintf( stderr
, " flags=%02x", req
->flags
);
1727 static void dump_add_atom_request( const struct add_atom_request
*req
)
1729 fprintf( stderr
, " local=%d,", req
->local
);
1730 fprintf( stderr
, " name=" );
1731 dump_varargs_unicode_str( cur_size
);
1734 static void dump_add_atom_reply( const struct add_atom_reply
*req
)
1736 fprintf( stderr
, " atom=%04x", req
->atom
);
1739 static void dump_delete_atom_request( const struct delete_atom_request
*req
)
1741 fprintf( stderr
, " atom=%04x,", req
->atom
);
1742 fprintf( stderr
, " local=%d", req
->local
);
1745 static void dump_find_atom_request( const struct find_atom_request
*req
)
1747 fprintf( stderr
, " local=%d,", req
->local
);
1748 fprintf( stderr
, " name=" );
1749 dump_varargs_unicode_str( cur_size
);
1752 static void dump_find_atom_reply( const struct find_atom_reply
*req
)
1754 fprintf( stderr
, " atom=%04x", req
->atom
);
1757 static void dump_get_atom_name_request( const struct get_atom_name_request
*req
)
1759 fprintf( stderr
, " atom=%04x,", req
->atom
);
1760 fprintf( stderr
, " local=%d", req
->local
);
1763 static void dump_get_atom_name_reply( const struct get_atom_name_reply
*req
)
1765 fprintf( stderr
, " count=%d,", req
->count
);
1766 fprintf( stderr
, " name=" );
1767 dump_varargs_unicode_str( cur_size
);
1770 static void dump_init_atom_table_request( const struct init_atom_table_request
*req
)
1772 fprintf( stderr
, " entries=%d", req
->entries
);
1775 static void dump_get_msg_queue_request( const struct get_msg_queue_request
*req
)
1779 static void dump_get_msg_queue_reply( const struct get_msg_queue_reply
*req
)
1781 fprintf( stderr
, " handle=%p", req
->handle
);
1784 static void dump_set_queue_mask_request( const struct set_queue_mask_request
*req
)
1786 fprintf( stderr
, " wake_mask=%08x,", req
->wake_mask
);
1787 fprintf( stderr
, " changed_mask=%08x,", req
->changed_mask
);
1788 fprintf( stderr
, " skip_wait=%d", req
->skip_wait
);
1791 static void dump_set_queue_mask_reply( const struct set_queue_mask_reply
*req
)
1793 fprintf( stderr
, " wake_bits=%08x,", req
->wake_bits
);
1794 fprintf( stderr
, " changed_bits=%08x", req
->changed_bits
);
1797 static void dump_get_queue_status_request( const struct get_queue_status_request
*req
)
1799 fprintf( stderr
, " clear=%d", req
->clear
);
1802 static void dump_get_queue_status_reply( const struct get_queue_status_reply
*req
)
1804 fprintf( stderr
, " wake_bits=%08x,", req
->wake_bits
);
1805 fprintf( stderr
, " changed_bits=%08x", req
->changed_bits
);
1808 static void dump_wait_input_idle_request( const struct wait_input_idle_request
*req
)
1810 fprintf( stderr
, " handle=%p,", req
->handle
);
1811 fprintf( stderr
, " timeout=%d", req
->timeout
);
1814 static void dump_wait_input_idle_reply( const struct wait_input_idle_reply
*req
)
1816 fprintf( stderr
, " event=%p", req
->event
);
1819 static void dump_send_message_request( const struct send_message_request
*req
)
1821 fprintf( stderr
, " id=%04x,", req
->id
);
1822 fprintf( stderr
, " type=%d,", req
->type
);
1823 fprintf( stderr
, " win=%p,", req
->win
);
1824 fprintf( stderr
, " msg=%08x,", req
->msg
);
1825 fprintf( stderr
, " wparam=%08x,", req
->wparam
);
1826 fprintf( stderr
, " lparam=%08x,", req
->lparam
);
1827 fprintf( stderr
, " x=%d,", req
->x
);
1828 fprintf( stderr
, " y=%d,", req
->y
);
1829 fprintf( stderr
, " time=%08x,", req
->time
);
1830 fprintf( stderr
, " info=%08x,", req
->info
);
1831 fprintf( stderr
, " timeout=%d,", req
->timeout
);
1832 fprintf( stderr
, " data=" );
1833 dump_varargs_bytes( cur_size
);
1836 static void dump_get_message_request( const struct get_message_request
*req
)
1838 fprintf( stderr
, " flags=%d,", req
->flags
);
1839 fprintf( stderr
, " get_win=%p,", req
->get_win
);
1840 fprintf( stderr
, " get_first=%08x,", req
->get_first
);
1841 fprintf( stderr
, " get_last=%08x", req
->get_last
);
1844 static void dump_get_message_reply( const struct get_message_reply
*req
)
1846 fprintf( stderr
, " type=%d,", req
->type
);
1847 fprintf( stderr
, " win=%p,", req
->win
);
1848 fprintf( stderr
, " msg=%08x,", req
->msg
);
1849 fprintf( stderr
, " wparam=%08x,", req
->wparam
);
1850 fprintf( stderr
, " lparam=%08x,", req
->lparam
);
1851 fprintf( stderr
, " x=%d,", req
->x
);
1852 fprintf( stderr
, " y=%d,", req
->y
);
1853 fprintf( stderr
, " time=%08x,", req
->time
);
1854 fprintf( stderr
, " info=%08x,", req
->info
);
1855 fprintf( stderr
, " total=%d,", req
->total
);
1856 fprintf( stderr
, " data=" );
1857 dump_varargs_bytes( cur_size
);
1860 static void dump_reply_message_request( const struct reply_message_request
*req
)
1862 fprintf( stderr
, " type=%d,", req
->type
);
1863 fprintf( stderr
, " result=%08x,", req
->result
);
1864 fprintf( stderr
, " remove=%d,", req
->remove
);
1865 fprintf( stderr
, " data=" );
1866 dump_varargs_bytes( cur_size
);
1869 static void dump_get_message_reply_request( const struct get_message_reply_request
*req
)
1871 fprintf( stderr
, " cancel=%d", req
->cancel
);
1874 static void dump_get_message_reply_reply( const struct get_message_reply_reply
*req
)
1876 fprintf( stderr
, " result=%08x,", req
->result
);
1877 fprintf( stderr
, " data=" );
1878 dump_varargs_bytes( cur_size
);
1881 static void dump_set_win_timer_request( const struct set_win_timer_request
*req
)
1883 fprintf( stderr
, " win=%p,", req
->win
);
1884 fprintf( stderr
, " msg=%08x,", req
->msg
);
1885 fprintf( stderr
, " id=%08x,", req
->id
);
1886 fprintf( stderr
, " rate=%08x,", req
->rate
);
1887 fprintf( stderr
, " lparam=%08x", req
->lparam
);
1890 static void dump_kill_win_timer_request( const struct kill_win_timer_request
*req
)
1892 fprintf( stderr
, " win=%p,", req
->win
);
1893 fprintf( stderr
, " msg=%08x,", req
->msg
);
1894 fprintf( stderr
, " id=%08x", req
->id
);
1897 static void dump_create_serial_request( const struct create_serial_request
*req
)
1899 fprintf( stderr
, " access=%08x,", req
->access
);
1900 fprintf( stderr
, " inherit=%d,", req
->inherit
);
1901 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1902 fprintf( stderr
, " sharing=%08x,", req
->sharing
);
1903 fprintf( stderr
, " name=" );
1904 dump_varargs_string( cur_size
);
1907 static void dump_create_serial_reply( const struct create_serial_reply
*req
)
1909 fprintf( stderr
, " handle=%p", req
->handle
);
1912 static void dump_get_serial_info_request( const struct get_serial_info_request
*req
)
1914 fprintf( stderr
, " handle=%p", req
->handle
);
1917 static void dump_get_serial_info_reply( const struct get_serial_info_reply
*req
)
1919 fprintf( stderr
, " readinterval=%08x,", req
->readinterval
);
1920 fprintf( stderr
, " readconst=%08x,", req
->readconst
);
1921 fprintf( stderr
, " readmult=%08x,", req
->readmult
);
1922 fprintf( stderr
, " writeconst=%08x,", req
->writeconst
);
1923 fprintf( stderr
, " writemult=%08x,", req
->writemult
);
1924 fprintf( stderr
, " eventmask=%08x,", req
->eventmask
);
1925 fprintf( stderr
, " commerror=%08x", req
->commerror
);
1928 static void dump_set_serial_info_request( const struct set_serial_info_request
*req
)
1930 fprintf( stderr
, " handle=%p,", req
->handle
);
1931 fprintf( stderr
, " flags=%d,", req
->flags
);
1932 fprintf( stderr
, " readinterval=%08x,", req
->readinterval
);
1933 fprintf( stderr
, " readconst=%08x,", req
->readconst
);
1934 fprintf( stderr
, " readmult=%08x,", req
->readmult
);
1935 fprintf( stderr
, " writeconst=%08x,", req
->writeconst
);
1936 fprintf( stderr
, " writemult=%08x,", req
->writemult
);
1937 fprintf( stderr
, " eventmask=%08x,", req
->eventmask
);
1938 fprintf( stderr
, " commerror=%08x", req
->commerror
);
1941 static void dump_register_async_request( const struct register_async_request
*req
)
1943 fprintf( stderr
, " handle=%p,", req
->handle
);
1944 fprintf( stderr
, " type=%d,", req
->type
);
1945 fprintf( stderr
, " overlapped=%p,", req
->overlapped
);
1946 fprintf( stderr
, " count=%d,", req
->count
);
1947 fprintf( stderr
, " status=%08x", req
->status
);
1950 static void dump_create_named_pipe_request( const struct create_named_pipe_request
*req
)
1952 fprintf( stderr
, " openmode=%08x,", req
->openmode
);
1953 fprintf( stderr
, " pipemode=%08x,", req
->pipemode
);
1954 fprintf( stderr
, " maxinstances=%08x,", req
->maxinstances
);
1955 fprintf( stderr
, " outsize=%08x,", req
->outsize
);
1956 fprintf( stderr
, " insize=%08x,", req
->insize
);
1957 fprintf( stderr
, " timeout=%08x,", req
->timeout
);
1958 fprintf( stderr
, " name=" );
1959 dump_varargs_unicode_str( cur_size
);
1962 static void dump_create_named_pipe_reply( const struct create_named_pipe_reply
*req
)
1964 fprintf( stderr
, " handle=%p", req
->handle
);
1967 static void dump_open_named_pipe_request( const struct open_named_pipe_request
*req
)
1969 fprintf( stderr
, " access=%08x,", req
->access
);
1970 fprintf( stderr
, " inherit=%d,", req
->inherit
);
1971 fprintf( stderr
, " name=" );
1972 dump_varargs_unicode_str( cur_size
);
1975 static void dump_open_named_pipe_reply( const struct open_named_pipe_reply
*req
)
1977 fprintf( stderr
, " handle=%p", req
->handle
);
1980 static void dump_connect_named_pipe_request( const struct connect_named_pipe_request
*req
)
1982 fprintf( stderr
, " handle=%p,", req
->handle
);
1983 fprintf( stderr
, " overlapped=%p,", req
->overlapped
);
1984 fprintf( stderr
, " func=%p", req
->func
);
1987 static void dump_wait_named_pipe_request( const struct wait_named_pipe_request
*req
)
1989 fprintf( stderr
, " timeout=%08x,", req
->timeout
);
1990 fprintf( stderr
, " overlapped=%p,", req
->overlapped
);
1991 fprintf( stderr
, " func=%p,", req
->func
);
1992 fprintf( stderr
, " name=" );
1993 dump_varargs_unicode_str( cur_size
);
1996 static void dump_disconnect_named_pipe_request( const struct disconnect_named_pipe_request
*req
)
1998 fprintf( stderr
, " handle=%p", req
->handle
);
2001 static void dump_disconnect_named_pipe_reply( const struct disconnect_named_pipe_reply
*req
)
2003 fprintf( stderr
, " fd=%d", req
->fd
);
2006 static void dump_get_named_pipe_info_request( const struct get_named_pipe_info_request
*req
)
2008 fprintf( stderr
, " handle=%p", req
->handle
);
2011 static void dump_get_named_pipe_info_reply( const struct get_named_pipe_info_reply
*req
)
2013 fprintf( stderr
, " flags=%08x,", req
->flags
);
2014 fprintf( stderr
, " maxinstances=%08x,", req
->maxinstances
);
2015 fprintf( stderr
, " outsize=%08x,", req
->outsize
);
2016 fprintf( stderr
, " insize=%08x", req
->insize
);
2019 static void dump_create_smb_request( const struct create_smb_request
*req
)
2021 fprintf( stderr
, " fd=%d,", req
->fd
);
2022 fprintf( stderr
, " tree_id=%08x,", req
->tree_id
);
2023 fprintf( stderr
, " user_id=%08x,", req
->user_id
);
2024 fprintf( stderr
, " file_id=%08x,", req
->file_id
);
2025 fprintf( stderr
, " dialect=%08x", req
->dialect
);
2028 static void dump_create_smb_reply( const struct create_smb_reply
*req
)
2030 fprintf( stderr
, " handle=%p", req
->handle
);
2033 static void dump_get_smb_info_request( const struct get_smb_info_request
*req
)
2035 fprintf( stderr
, " handle=%p,", req
->handle
);
2036 fprintf( stderr
, " flags=%08x,", req
->flags
);
2037 fprintf( stderr
, " offset=%08x", req
->offset
);
2040 static void dump_get_smb_info_reply( const struct get_smb_info_reply
*req
)
2042 fprintf( stderr
, " tree_id=%08x,", req
->tree_id
);
2043 fprintf( stderr
, " user_id=%08x,", req
->user_id
);
2044 fprintf( stderr
, " dialect=%08x,", req
->dialect
);
2045 fprintf( stderr
, " file_id=%08x,", req
->file_id
);
2046 fprintf( stderr
, " offset=%08x", req
->offset
);
2049 static void dump_create_window_request( const struct create_window_request
*req
)
2051 fprintf( stderr
, " parent=%p,", req
->parent
);
2052 fprintf( stderr
, " owner=%p,", req
->owner
);
2053 fprintf( stderr
, " atom=%04x", req
->atom
);
2056 static void dump_create_window_reply( const struct create_window_reply
*req
)
2058 fprintf( stderr
, " handle=%p", req
->handle
);
2061 static void dump_link_window_request( const struct link_window_request
*req
)
2063 fprintf( stderr
, " handle=%p,", req
->handle
);
2064 fprintf( stderr
, " parent=%p,", req
->parent
);
2065 fprintf( stderr
, " previous=%p", req
->previous
);
2068 static void dump_link_window_reply( const struct link_window_reply
*req
)
2070 fprintf( stderr
, " full_parent=%p", req
->full_parent
);
2073 static void dump_destroy_window_request( const struct destroy_window_request
*req
)
2075 fprintf( stderr
, " handle=%p", req
->handle
);
2078 static void dump_set_window_owner_request( const struct set_window_owner_request
*req
)
2080 fprintf( stderr
, " handle=%p,", req
->handle
);
2081 fprintf( stderr
, " owner=%p", req
->owner
);
2084 static void dump_set_window_owner_reply( const struct set_window_owner_reply
*req
)
2086 fprintf( stderr
, " full_owner=%p,", req
->full_owner
);
2087 fprintf( stderr
, " prev_owner=%p", req
->prev_owner
);
2090 static void dump_get_window_info_request( const struct get_window_info_request
*req
)
2092 fprintf( stderr
, " handle=%p", req
->handle
);
2095 static void dump_get_window_info_reply( const struct get_window_info_reply
*req
)
2097 fprintf( stderr
, " full_handle=%p,", req
->full_handle
);
2098 fprintf( stderr
, " last_active=%p,", req
->last_active
);
2099 fprintf( stderr
, " pid=%04x,", req
->pid
);
2100 fprintf( stderr
, " tid=%04x,", req
->tid
);
2101 fprintf( stderr
, " atom=%04x", req
->atom
);
2104 static void dump_set_window_info_request( const struct set_window_info_request
*req
)
2106 fprintf( stderr
, " handle=%p,", req
->handle
);
2107 fprintf( stderr
, " flags=%08x,", req
->flags
);
2108 fprintf( stderr
, " style=%08x,", req
->style
);
2109 fprintf( stderr
, " ex_style=%08x,", req
->ex_style
);
2110 fprintf( stderr
, " id=%08x,", req
->id
);
2111 fprintf( stderr
, " instance=%p,", req
->instance
);
2112 fprintf( stderr
, " user_data=%p", req
->user_data
);
2115 static void dump_set_window_info_reply( const struct set_window_info_reply
*req
)
2117 fprintf( stderr
, " old_style=%08x,", req
->old_style
);
2118 fprintf( stderr
, " old_ex_style=%08x,", req
->old_ex_style
);
2119 fprintf( stderr
, " old_id=%08x,", req
->old_id
);
2120 fprintf( stderr
, " old_instance=%p,", req
->old_instance
);
2121 fprintf( stderr
, " old_user_data=%p", req
->old_user_data
);
2124 static void dump_get_window_parents_request( const struct get_window_parents_request
*req
)
2126 fprintf( stderr
, " handle=%p", req
->handle
);
2129 static void dump_get_window_parents_reply( const struct get_window_parents_reply
*req
)
2131 fprintf( stderr
, " count=%d,", req
->count
);
2132 fprintf( stderr
, " parents=" );
2133 dump_varargs_user_handles( cur_size
);
2136 static void dump_get_window_children_request( const struct get_window_children_request
*req
)
2138 fprintf( stderr
, " parent=%p,", req
->parent
);
2139 fprintf( stderr
, " atom=%04x,", req
->atom
);
2140 fprintf( stderr
, " tid=%04x", req
->tid
);
2143 static void dump_get_window_children_reply( const struct get_window_children_reply
*req
)
2145 fprintf( stderr
, " count=%d,", req
->count
);
2146 fprintf( stderr
, " children=" );
2147 dump_varargs_user_handles( cur_size
);
2150 static void dump_get_window_tree_request( const struct get_window_tree_request
*req
)
2152 fprintf( stderr
, " handle=%p", req
->handle
);
2155 static void dump_get_window_tree_reply( const struct get_window_tree_reply
*req
)
2157 fprintf( stderr
, " parent=%p,", req
->parent
);
2158 fprintf( stderr
, " owner=%p,", req
->owner
);
2159 fprintf( stderr
, " next_sibling=%p,", req
->next_sibling
);
2160 fprintf( stderr
, " prev_sibling=%p,", req
->prev_sibling
);
2161 fprintf( stderr
, " first_sibling=%p,", req
->first_sibling
);
2162 fprintf( stderr
, " last_sibling=%p,", req
->last_sibling
);
2163 fprintf( stderr
, " first_child=%p,", req
->first_child
);
2164 fprintf( stderr
, " last_child=%p", req
->last_child
);
2167 static void dump_set_window_rectangles_request( const struct set_window_rectangles_request
*req
)
2169 fprintf( stderr
, " handle=%p,", req
->handle
);
2170 fprintf( stderr
, " window=" );
2171 dump_rectangle( &req
->window
);
2172 fprintf( stderr
, "," );
2173 fprintf( stderr
, " client=" );
2174 dump_rectangle( &req
->client
);
2177 static void dump_get_window_rectangles_request( const struct get_window_rectangles_request
*req
)
2179 fprintf( stderr
, " handle=%p", req
->handle
);
2182 static void dump_get_window_rectangles_reply( const struct get_window_rectangles_reply
*req
)
2184 fprintf( stderr
, " window=" );
2185 dump_rectangle( &req
->window
);
2186 fprintf( stderr
, "," );
2187 fprintf( stderr
, " client=" );
2188 dump_rectangle( &req
->client
);
2191 static void dump_get_window_text_request( const struct get_window_text_request
*req
)
2193 fprintf( stderr
, " handle=%p", req
->handle
);
2196 static void dump_get_window_text_reply( const struct get_window_text_reply
*req
)
2198 fprintf( stderr
, " text=" );
2199 dump_varargs_unicode_str( cur_size
);
2202 static void dump_set_window_text_request( const struct set_window_text_request
*req
)
2204 fprintf( stderr
, " handle=%p,", req
->handle
);
2205 fprintf( stderr
, " text=" );
2206 dump_varargs_unicode_str( cur_size
);
2209 static void dump_inc_window_paint_count_request( const struct inc_window_paint_count_request
*req
)
2211 fprintf( stderr
, " handle=%p,", req
->handle
);
2212 fprintf( stderr
, " incr=%d", req
->incr
);
2215 static void dump_get_windows_offset_request( const struct get_windows_offset_request
*req
)
2217 fprintf( stderr
, " from=%p,", req
->from
);
2218 fprintf( stderr
, " to=%p", req
->to
);
2221 static void dump_get_windows_offset_reply( const struct get_windows_offset_reply
*req
)
2223 fprintf( stderr
, " x=%d,", req
->x
);
2224 fprintf( stderr
, " y=%d", req
->y
);
2227 static void dump_set_window_property_request( const struct set_window_property_request
*req
)
2229 fprintf( stderr
, " window=%p,", req
->window
);
2230 fprintf( stderr
, " atom=%04x,", req
->atom
);
2231 fprintf( stderr
, " string=%d,", req
->string
);
2232 fprintf( stderr
, " handle=%p", req
->handle
);
2235 static void dump_remove_window_property_request( const struct remove_window_property_request
*req
)
2237 fprintf( stderr
, " window=%p,", req
->window
);
2238 fprintf( stderr
, " atom=%04x", req
->atom
);
2241 static void dump_remove_window_property_reply( const struct remove_window_property_reply
*req
)
2243 fprintf( stderr
, " handle=%p", req
->handle
);
2246 static void dump_get_window_property_request( const struct get_window_property_request
*req
)
2248 fprintf( stderr
, " window=%p,", req
->window
);
2249 fprintf( stderr
, " atom=%04x", req
->atom
);
2252 static void dump_get_window_property_reply( const struct get_window_property_reply
*req
)
2254 fprintf( stderr
, " handle=%p", req
->handle
);
2257 static void dump_get_window_properties_request( const struct get_window_properties_request
*req
)
2259 fprintf( stderr
, " window=%p", req
->window
);
2262 static void dump_get_window_properties_reply( const struct get_window_properties_reply
*req
)
2264 fprintf( stderr
, " total=%d,", req
->total
);
2265 fprintf( stderr
, " props=" );
2266 dump_varargs_properties( cur_size
);
2269 static void dump_attach_thread_input_request( const struct attach_thread_input_request
*req
)
2271 fprintf( stderr
, " tid_from=%04x,", req
->tid_from
);
2272 fprintf( stderr
, " tid_to=%04x,", req
->tid_to
);
2273 fprintf( stderr
, " attach=%d", req
->attach
);
2276 static void dump_get_thread_input_request( const struct get_thread_input_request
*req
)
2278 fprintf( stderr
, " tid=%04x", req
->tid
);
2281 static void dump_get_thread_input_reply( const struct get_thread_input_reply
*req
)
2283 fprintf( stderr
, " focus=%p,", req
->focus
);
2284 fprintf( stderr
, " capture=%p,", req
->capture
);
2285 fprintf( stderr
, " active=%p,", req
->active
);
2286 fprintf( stderr
, " foreground=%p,", req
->foreground
);
2287 fprintf( stderr
, " menu_owner=%p,", req
->menu_owner
);
2288 fprintf( stderr
, " move_size=%p,", req
->move_size
);
2289 fprintf( stderr
, " caret=%p,", req
->caret
);
2290 fprintf( stderr
, " rect=" );
2291 dump_rectangle( &req
->rect
);
2294 static void dump_get_key_state_request( const struct get_key_state_request
*req
)
2296 fprintf( stderr
, " tid=%04x,", req
->tid
);
2297 fprintf( stderr
, " key=%d", req
->key
);
2300 static void dump_get_key_state_reply( const struct get_key_state_reply
*req
)
2302 fprintf( stderr
, " state=%02x,", req
->state
);
2303 fprintf( stderr
, " keystate=" );
2304 dump_varargs_bytes( cur_size
);
2307 static void dump_set_key_state_request( const struct set_key_state_request
*req
)
2309 fprintf( stderr
, " tid=%04x,", req
->tid
);
2310 fprintf( stderr
, " keystate=" );
2311 dump_varargs_bytes( cur_size
);
2314 static void dump_set_foreground_window_request( const struct set_foreground_window_request
*req
)
2316 fprintf( stderr
, " handle=%p", req
->handle
);
2319 static void dump_set_foreground_window_reply( const struct set_foreground_window_reply
*req
)
2321 fprintf( stderr
, " previous=%p,", req
->previous
);
2322 fprintf( stderr
, " send_msg_old=%d,", req
->send_msg_old
);
2323 fprintf( stderr
, " send_msg_new=%d", req
->send_msg_new
);
2326 static void dump_set_focus_window_request( const struct set_focus_window_request
*req
)
2328 fprintf( stderr
, " handle=%p", req
->handle
);
2331 static void dump_set_focus_window_reply( const struct set_focus_window_reply
*req
)
2333 fprintf( stderr
, " previous=%p", req
->previous
);
2336 static void dump_set_active_window_request( const struct set_active_window_request
*req
)
2338 fprintf( stderr
, " handle=%p", req
->handle
);
2341 static void dump_set_active_window_reply( const struct set_active_window_reply
*req
)
2343 fprintf( stderr
, " previous=%p", req
->previous
);
2346 static void dump_set_capture_window_request( const struct set_capture_window_request
*req
)
2348 fprintf( stderr
, " handle=%p,", req
->handle
);
2349 fprintf( stderr
, " flags=%08x", req
->flags
);
2352 static void dump_set_capture_window_reply( const struct set_capture_window_reply
*req
)
2354 fprintf( stderr
, " previous=%p,", req
->previous
);
2355 fprintf( stderr
, " full_handle=%p", req
->full_handle
);
2358 static void dump_set_caret_window_request( const struct set_caret_window_request
*req
)
2360 fprintf( stderr
, " handle=%p,", req
->handle
);
2361 fprintf( stderr
, " width=%d,", req
->width
);
2362 fprintf( stderr
, " height=%d", req
->height
);
2365 static void dump_set_caret_window_reply( const struct set_caret_window_reply
*req
)
2367 fprintf( stderr
, " previous=%p,", req
->previous
);
2368 fprintf( stderr
, " old_rect=" );
2369 dump_rectangle( &req
->old_rect
);
2370 fprintf( stderr
, "," );
2371 fprintf( stderr
, " old_hide=%d,", req
->old_hide
);
2372 fprintf( stderr
, " old_state=%d", req
->old_state
);
2375 static void dump_set_caret_info_request( const struct set_caret_info_request
*req
)
2377 fprintf( stderr
, " flags=%08x,", req
->flags
);
2378 fprintf( stderr
, " handle=%p,", req
->handle
);
2379 fprintf( stderr
, " x=%d,", req
->x
);
2380 fprintf( stderr
, " y=%d,", req
->y
);
2381 fprintf( stderr
, " hide=%d,", req
->hide
);
2382 fprintf( stderr
, " state=%d", req
->state
);
2385 static void dump_set_caret_info_reply( const struct set_caret_info_reply
*req
)
2387 fprintf( stderr
, " full_handle=%p,", req
->full_handle
);
2388 fprintf( stderr
, " old_rect=" );
2389 dump_rectangle( &req
->old_rect
);
2390 fprintf( stderr
, "," );
2391 fprintf( stderr
, " old_hide=%d,", req
->old_hide
);
2392 fprintf( stderr
, " old_state=%d", req
->old_state
);
2395 static void dump_set_hook_request( const struct set_hook_request
*req
)
2397 fprintf( stderr
, " id=%d,", req
->id
);
2398 fprintf( stderr
, " tid=%04x,", req
->tid
);
2399 fprintf( stderr
, " proc=%p,", req
->proc
);
2400 fprintf( stderr
, " unicode=%d,", req
->unicode
);
2401 fprintf( stderr
, " module=" );
2402 dump_varargs_unicode_str( cur_size
);
2405 static void dump_set_hook_reply( const struct set_hook_reply
*req
)
2407 fprintf( stderr
, " handle=%p", req
->handle
);
2410 static void dump_remove_hook_request( const struct remove_hook_request
*req
)
2412 fprintf( stderr
, " handle=%p,", req
->handle
);
2413 fprintf( stderr
, " id=%d,", req
->id
);
2414 fprintf( stderr
, " proc=%p", req
->proc
);
2417 static void dump_start_hook_chain_request( const struct start_hook_chain_request
*req
)
2419 fprintf( stderr
, " id=%d", req
->id
);
2422 static void dump_start_hook_chain_reply( const struct start_hook_chain_reply
*req
)
2424 fprintf( stderr
, " handle=%p,", req
->handle
);
2425 fprintf( stderr
, " proc=%p,", req
->proc
);
2426 fprintf( stderr
, " unicode=%d,", req
->unicode
);
2427 fprintf( stderr
, " module=" );
2428 dump_varargs_unicode_str( cur_size
);
2431 static void dump_finish_hook_chain_request( const struct finish_hook_chain_request
*req
)
2433 fprintf( stderr
, " id=%d", req
->id
);
2436 static void dump_get_next_hook_request( const struct get_next_hook_request
*req
)
2438 fprintf( stderr
, " handle=%p", req
->handle
);
2441 static void dump_get_next_hook_reply( const struct get_next_hook_reply
*req
)
2443 fprintf( stderr
, " next=%p,", req
->next
);
2444 fprintf( stderr
, " id=%d,", req
->id
);
2445 fprintf( stderr
, " proc=%p,", req
->proc
);
2446 fprintf( stderr
, " prev_unicode=%d,", req
->prev_unicode
);
2447 fprintf( stderr
, " next_unicode=%d,", req
->next_unicode
);
2448 fprintf( stderr
, " module=" );
2449 dump_varargs_unicode_str( cur_size
);
2452 static const dump_func req_dumpers
[REQ_NB_REQUESTS
] = {
2453 (dump_func
)dump_new_process_request
,
2454 (dump_func
)dump_get_new_process_info_request
,
2455 (dump_func
)dump_new_thread_request
,
2456 (dump_func
)dump_boot_done_request
,
2457 (dump_func
)dump_init_process_request
,
2458 (dump_func
)dump_get_startup_info_request
,
2459 (dump_func
)dump_init_process_done_request
,
2460 (dump_func
)dump_init_thread_request
,
2461 (dump_func
)dump_terminate_process_request
,
2462 (dump_func
)dump_terminate_thread_request
,
2463 (dump_func
)dump_get_process_info_request
,
2464 (dump_func
)dump_set_process_info_request
,
2465 (dump_func
)dump_get_thread_info_request
,
2466 (dump_func
)dump_set_thread_info_request
,
2467 (dump_func
)dump_get_dll_info_request
,
2468 (dump_func
)dump_suspend_thread_request
,
2469 (dump_func
)dump_resume_thread_request
,
2470 (dump_func
)dump_load_dll_request
,
2471 (dump_func
)dump_unload_dll_request
,
2472 (dump_func
)dump_queue_apc_request
,
2473 (dump_func
)dump_get_apc_request
,
2474 (dump_func
)dump_close_handle_request
,
2475 (dump_func
)dump_set_handle_info_request
,
2476 (dump_func
)dump_dup_handle_request
,
2477 (dump_func
)dump_open_process_request
,
2478 (dump_func
)dump_open_thread_request
,
2479 (dump_func
)dump_select_request
,
2480 (dump_func
)dump_create_event_request
,
2481 (dump_func
)dump_event_op_request
,
2482 (dump_func
)dump_open_event_request
,
2483 (dump_func
)dump_create_mutex_request
,
2484 (dump_func
)dump_release_mutex_request
,
2485 (dump_func
)dump_open_mutex_request
,
2486 (dump_func
)dump_create_semaphore_request
,
2487 (dump_func
)dump_release_semaphore_request
,
2488 (dump_func
)dump_open_semaphore_request
,
2489 (dump_func
)dump_create_file_request
,
2490 (dump_func
)dump_alloc_file_handle_request
,
2491 (dump_func
)dump_get_handle_fd_request
,
2492 (dump_func
)dump_set_file_pointer_request
,
2493 (dump_func
)dump_truncate_file_request
,
2494 (dump_func
)dump_set_file_time_request
,
2495 (dump_func
)dump_flush_file_request
,
2496 (dump_func
)dump_get_file_info_request
,
2497 (dump_func
)dump_lock_file_request
,
2498 (dump_func
)dump_unlock_file_request
,
2499 (dump_func
)dump_create_socket_request
,
2500 (dump_func
)dump_accept_socket_request
,
2501 (dump_func
)dump_set_socket_event_request
,
2502 (dump_func
)dump_get_socket_event_request
,
2503 (dump_func
)dump_enable_socket_event_request
,
2504 (dump_func
)dump_set_socket_deferred_request
,
2505 (dump_func
)dump_alloc_console_request
,
2506 (dump_func
)dump_free_console_request
,
2507 (dump_func
)dump_get_console_renderer_events_request
,
2508 (dump_func
)dump_open_console_request
,
2509 (dump_func
)dump_get_console_mode_request
,
2510 (dump_func
)dump_set_console_mode_request
,
2511 (dump_func
)dump_set_console_input_info_request
,
2512 (dump_func
)dump_get_console_input_info_request
,
2513 (dump_func
)dump_append_console_input_history_request
,
2514 (dump_func
)dump_get_console_input_history_request
,
2515 (dump_func
)dump_create_console_output_request
,
2516 (dump_func
)dump_set_console_output_info_request
,
2517 (dump_func
)dump_get_console_output_info_request
,
2518 (dump_func
)dump_write_console_input_request
,
2519 (dump_func
)dump_read_console_input_request
,
2520 (dump_func
)dump_write_console_output_request
,
2521 (dump_func
)dump_fill_console_output_request
,
2522 (dump_func
)dump_read_console_output_request
,
2523 (dump_func
)dump_move_console_output_request
,
2524 (dump_func
)dump_send_console_signal_request
,
2525 (dump_func
)dump_create_change_notification_request
,
2526 (dump_func
)dump_next_change_notification_request
,
2527 (dump_func
)dump_create_mapping_request
,
2528 (dump_func
)dump_open_mapping_request
,
2529 (dump_func
)dump_get_mapping_info_request
,
2530 (dump_func
)dump_create_device_request
,
2531 (dump_func
)dump_get_device_id_request
,
2532 (dump_func
)dump_create_snapshot_request
,
2533 (dump_func
)dump_next_process_request
,
2534 (dump_func
)dump_next_thread_request
,
2535 (dump_func
)dump_next_module_request
,
2536 (dump_func
)dump_wait_debug_event_request
,
2537 (dump_func
)dump_queue_exception_event_request
,
2538 (dump_func
)dump_get_exception_status_request
,
2539 (dump_func
)dump_output_debug_string_request
,
2540 (dump_func
)dump_continue_debug_event_request
,
2541 (dump_func
)dump_debug_process_request
,
2542 (dump_func
)dump_debug_break_request
,
2543 (dump_func
)dump_set_debugger_kill_on_exit_request
,
2544 (dump_func
)dump_read_process_memory_request
,
2545 (dump_func
)dump_write_process_memory_request
,
2546 (dump_func
)dump_create_key_request
,
2547 (dump_func
)dump_open_key_request
,
2548 (dump_func
)dump_delete_key_request
,
2549 (dump_func
)dump_enum_key_request
,
2550 (dump_func
)dump_set_key_value_request
,
2551 (dump_func
)dump_get_key_value_request
,
2552 (dump_func
)dump_enum_key_value_request
,
2553 (dump_func
)dump_delete_key_value_request
,
2554 (dump_func
)dump_load_registry_request
,
2555 (dump_func
)dump_save_registry_request
,
2556 (dump_func
)dump_save_registry_atexit_request
,
2557 (dump_func
)dump_set_registry_levels_request
,
2558 (dump_func
)dump_set_registry_notification_request
,
2559 (dump_func
)dump_create_timer_request
,
2560 (dump_func
)dump_open_timer_request
,
2561 (dump_func
)dump_set_timer_request
,
2562 (dump_func
)dump_cancel_timer_request
,
2563 (dump_func
)dump_get_thread_context_request
,
2564 (dump_func
)dump_set_thread_context_request
,
2565 (dump_func
)dump_get_selector_entry_request
,
2566 (dump_func
)dump_add_atom_request
,
2567 (dump_func
)dump_delete_atom_request
,
2568 (dump_func
)dump_find_atom_request
,
2569 (dump_func
)dump_get_atom_name_request
,
2570 (dump_func
)dump_init_atom_table_request
,
2571 (dump_func
)dump_get_msg_queue_request
,
2572 (dump_func
)dump_set_queue_mask_request
,
2573 (dump_func
)dump_get_queue_status_request
,
2574 (dump_func
)dump_wait_input_idle_request
,
2575 (dump_func
)dump_send_message_request
,
2576 (dump_func
)dump_get_message_request
,
2577 (dump_func
)dump_reply_message_request
,
2578 (dump_func
)dump_get_message_reply_request
,
2579 (dump_func
)dump_set_win_timer_request
,
2580 (dump_func
)dump_kill_win_timer_request
,
2581 (dump_func
)dump_create_serial_request
,
2582 (dump_func
)dump_get_serial_info_request
,
2583 (dump_func
)dump_set_serial_info_request
,
2584 (dump_func
)dump_register_async_request
,
2585 (dump_func
)dump_create_named_pipe_request
,
2586 (dump_func
)dump_open_named_pipe_request
,
2587 (dump_func
)dump_connect_named_pipe_request
,
2588 (dump_func
)dump_wait_named_pipe_request
,
2589 (dump_func
)dump_disconnect_named_pipe_request
,
2590 (dump_func
)dump_get_named_pipe_info_request
,
2591 (dump_func
)dump_create_smb_request
,
2592 (dump_func
)dump_get_smb_info_request
,
2593 (dump_func
)dump_create_window_request
,
2594 (dump_func
)dump_link_window_request
,
2595 (dump_func
)dump_destroy_window_request
,
2596 (dump_func
)dump_set_window_owner_request
,
2597 (dump_func
)dump_get_window_info_request
,
2598 (dump_func
)dump_set_window_info_request
,
2599 (dump_func
)dump_get_window_parents_request
,
2600 (dump_func
)dump_get_window_children_request
,
2601 (dump_func
)dump_get_window_tree_request
,
2602 (dump_func
)dump_set_window_rectangles_request
,
2603 (dump_func
)dump_get_window_rectangles_request
,
2604 (dump_func
)dump_get_window_text_request
,
2605 (dump_func
)dump_set_window_text_request
,
2606 (dump_func
)dump_inc_window_paint_count_request
,
2607 (dump_func
)dump_get_windows_offset_request
,
2608 (dump_func
)dump_set_window_property_request
,
2609 (dump_func
)dump_remove_window_property_request
,
2610 (dump_func
)dump_get_window_property_request
,
2611 (dump_func
)dump_get_window_properties_request
,
2612 (dump_func
)dump_attach_thread_input_request
,
2613 (dump_func
)dump_get_thread_input_request
,
2614 (dump_func
)dump_get_key_state_request
,
2615 (dump_func
)dump_set_key_state_request
,
2616 (dump_func
)dump_set_foreground_window_request
,
2617 (dump_func
)dump_set_focus_window_request
,
2618 (dump_func
)dump_set_active_window_request
,
2619 (dump_func
)dump_set_capture_window_request
,
2620 (dump_func
)dump_set_caret_window_request
,
2621 (dump_func
)dump_set_caret_info_request
,
2622 (dump_func
)dump_set_hook_request
,
2623 (dump_func
)dump_remove_hook_request
,
2624 (dump_func
)dump_start_hook_chain_request
,
2625 (dump_func
)dump_finish_hook_chain_request
,
2626 (dump_func
)dump_get_next_hook_request
,
2629 static const dump_func reply_dumpers
[REQ_NB_REQUESTS
] = {
2630 (dump_func
)dump_new_process_reply
,
2631 (dump_func
)dump_get_new_process_info_reply
,
2632 (dump_func
)dump_new_thread_reply
,
2634 (dump_func
)dump_init_process_reply
,
2635 (dump_func
)dump_get_startup_info_reply
,
2636 (dump_func
)dump_init_process_done_reply
,
2637 (dump_func
)dump_init_thread_reply
,
2638 (dump_func
)dump_terminate_process_reply
,
2639 (dump_func
)dump_terminate_thread_reply
,
2640 (dump_func
)dump_get_process_info_reply
,
2642 (dump_func
)dump_get_thread_info_reply
,
2644 (dump_func
)dump_get_dll_info_reply
,
2645 (dump_func
)dump_suspend_thread_reply
,
2646 (dump_func
)dump_resume_thread_reply
,
2650 (dump_func
)dump_get_apc_reply
,
2651 (dump_func
)dump_close_handle_reply
,
2652 (dump_func
)dump_set_handle_info_reply
,
2653 (dump_func
)dump_dup_handle_reply
,
2654 (dump_func
)dump_open_process_reply
,
2655 (dump_func
)dump_open_thread_reply
,
2657 (dump_func
)dump_create_event_reply
,
2659 (dump_func
)dump_open_event_reply
,
2660 (dump_func
)dump_create_mutex_reply
,
2662 (dump_func
)dump_open_mutex_reply
,
2663 (dump_func
)dump_create_semaphore_reply
,
2664 (dump_func
)dump_release_semaphore_reply
,
2665 (dump_func
)dump_open_semaphore_reply
,
2666 (dump_func
)dump_create_file_reply
,
2667 (dump_func
)dump_alloc_file_handle_reply
,
2668 (dump_func
)dump_get_handle_fd_reply
,
2669 (dump_func
)dump_set_file_pointer_reply
,
2672 (dump_func
)dump_flush_file_reply
,
2673 (dump_func
)dump_get_file_info_reply
,
2674 (dump_func
)dump_lock_file_reply
,
2676 (dump_func
)dump_create_socket_reply
,
2677 (dump_func
)dump_accept_socket_reply
,
2679 (dump_func
)dump_get_socket_event_reply
,
2682 (dump_func
)dump_alloc_console_reply
,
2684 (dump_func
)dump_get_console_renderer_events_reply
,
2685 (dump_func
)dump_open_console_reply
,
2686 (dump_func
)dump_get_console_mode_reply
,
2689 (dump_func
)dump_get_console_input_info_reply
,
2691 (dump_func
)dump_get_console_input_history_reply
,
2692 (dump_func
)dump_create_console_output_reply
,
2694 (dump_func
)dump_get_console_output_info_reply
,
2695 (dump_func
)dump_write_console_input_reply
,
2696 (dump_func
)dump_read_console_input_reply
,
2697 (dump_func
)dump_write_console_output_reply
,
2698 (dump_func
)dump_fill_console_output_reply
,
2699 (dump_func
)dump_read_console_output_reply
,
2702 (dump_func
)dump_create_change_notification_reply
,
2704 (dump_func
)dump_create_mapping_reply
,
2705 (dump_func
)dump_open_mapping_reply
,
2706 (dump_func
)dump_get_mapping_info_reply
,
2707 (dump_func
)dump_create_device_reply
,
2708 (dump_func
)dump_get_device_id_reply
,
2709 (dump_func
)dump_create_snapshot_reply
,
2710 (dump_func
)dump_next_process_reply
,
2711 (dump_func
)dump_next_thread_reply
,
2712 (dump_func
)dump_next_module_reply
,
2713 (dump_func
)dump_wait_debug_event_reply
,
2714 (dump_func
)dump_queue_exception_event_reply
,
2715 (dump_func
)dump_get_exception_status_reply
,
2719 (dump_func
)dump_debug_break_reply
,
2721 (dump_func
)dump_read_process_memory_reply
,
2723 (dump_func
)dump_create_key_reply
,
2724 (dump_func
)dump_open_key_reply
,
2726 (dump_func
)dump_enum_key_reply
,
2728 (dump_func
)dump_get_key_value_reply
,
2729 (dump_func
)dump_enum_key_value_reply
,
2736 (dump_func
)dump_create_timer_reply
,
2737 (dump_func
)dump_open_timer_reply
,
2738 (dump_func
)dump_set_timer_reply
,
2739 (dump_func
)dump_cancel_timer_reply
,
2740 (dump_func
)dump_get_thread_context_reply
,
2742 (dump_func
)dump_get_selector_entry_reply
,
2743 (dump_func
)dump_add_atom_reply
,
2745 (dump_func
)dump_find_atom_reply
,
2746 (dump_func
)dump_get_atom_name_reply
,
2748 (dump_func
)dump_get_msg_queue_reply
,
2749 (dump_func
)dump_set_queue_mask_reply
,
2750 (dump_func
)dump_get_queue_status_reply
,
2751 (dump_func
)dump_wait_input_idle_reply
,
2753 (dump_func
)dump_get_message_reply
,
2755 (dump_func
)dump_get_message_reply_reply
,
2758 (dump_func
)dump_create_serial_reply
,
2759 (dump_func
)dump_get_serial_info_reply
,
2762 (dump_func
)dump_create_named_pipe_reply
,
2763 (dump_func
)dump_open_named_pipe_reply
,
2766 (dump_func
)dump_disconnect_named_pipe_reply
,
2767 (dump_func
)dump_get_named_pipe_info_reply
,
2768 (dump_func
)dump_create_smb_reply
,
2769 (dump_func
)dump_get_smb_info_reply
,
2770 (dump_func
)dump_create_window_reply
,
2771 (dump_func
)dump_link_window_reply
,
2773 (dump_func
)dump_set_window_owner_reply
,
2774 (dump_func
)dump_get_window_info_reply
,
2775 (dump_func
)dump_set_window_info_reply
,
2776 (dump_func
)dump_get_window_parents_reply
,
2777 (dump_func
)dump_get_window_children_reply
,
2778 (dump_func
)dump_get_window_tree_reply
,
2780 (dump_func
)dump_get_window_rectangles_reply
,
2781 (dump_func
)dump_get_window_text_reply
,
2784 (dump_func
)dump_get_windows_offset_reply
,
2786 (dump_func
)dump_remove_window_property_reply
,
2787 (dump_func
)dump_get_window_property_reply
,
2788 (dump_func
)dump_get_window_properties_reply
,
2790 (dump_func
)dump_get_thread_input_reply
,
2791 (dump_func
)dump_get_key_state_reply
,
2793 (dump_func
)dump_set_foreground_window_reply
,
2794 (dump_func
)dump_set_focus_window_reply
,
2795 (dump_func
)dump_set_active_window_reply
,
2796 (dump_func
)dump_set_capture_window_reply
,
2797 (dump_func
)dump_set_caret_window_reply
,
2798 (dump_func
)dump_set_caret_info_reply
,
2799 (dump_func
)dump_set_hook_reply
,
2801 (dump_func
)dump_start_hook_chain_reply
,
2803 (dump_func
)dump_get_next_hook_reply
,
2806 static const char * const req_names
[REQ_NB_REQUESTS
] = {
2808 "get_new_process_info",
2813 "init_process_done",
2815 "terminate_process",
2841 "release_semaphore",
2844 "alloc_file_handle",
2857 "enable_socket_event",
2858 "set_socket_deferred",
2861 "get_console_renderer_events",
2865 "set_console_input_info",
2866 "get_console_input_info",
2867 "append_console_input_history",
2868 "get_console_input_history",
2869 "create_console_output",
2870 "set_console_output_info",
2871 "get_console_output_info",
2872 "write_console_input",
2873 "read_console_input",
2874 "write_console_output",
2875 "fill_console_output",
2876 "read_console_output",
2877 "move_console_output",
2878 "send_console_signal",
2879 "create_change_notification",
2880 "next_change_notification",
2891 "queue_exception_event",
2892 "get_exception_status",
2893 "output_debug_string",
2894 "continue_debug_event",
2897 "set_debugger_kill_on_exit",
2898 "read_process_memory",
2899 "write_process_memory",
2910 "save_registry_atexit",
2911 "set_registry_levels",
2912 "set_registry_notification",
2917 "get_thread_context",
2918 "set_thread_context",
2919 "get_selector_entry",
2932 "get_message_reply",
2939 "create_named_pipe",
2941 "connect_named_pipe",
2943 "disconnect_named_pipe",
2944 "get_named_pipe_info",
2953 "get_window_parents",
2954 "get_window_children",
2956 "set_window_rectangles",
2957 "get_window_rectangles",
2960 "inc_window_paint_count",
2961 "get_windows_offset",
2962 "set_window_property",
2963 "remove_window_property",
2964 "get_window_property",
2965 "get_window_properties",
2966 "attach_thread_input",
2970 "set_foreground_window",
2972 "set_active_window",
2973 "set_capture_window",
2979 "finish_hook_chain",
2983 /* ### make_requests end ### */
2984 /* Everything above this line is generated automatically by tools/make_requests */
2986 static const char *get_status_name( unsigned int status
)
2988 #define NAME(status) { #status, STATUS_##status }
2995 NAME(ACCESS_DENIED
),
2996 NAME(ACCESS_VIOLATION
),
2997 NAME(BUFFER_OVERFLOW
),
2998 NAME(CHILD_MUST_BE_VOLATILE
),
2999 NAME(DIRECTORY_NOT_EMPTY
),
3001 NAME(FILE_LOCK_CONFLICT
),
3002 NAME(INVALID_FILE_FOR_SECTION
),
3003 NAME(INVALID_HANDLE
),
3004 NAME(INVALID_PARAMETER
),
3006 NAME(MEDIA_WRITE_PROTECTED
),
3007 NAME(MUTANT_NOT_OWNED
),
3008 NAME(NOT_REGISTRY_FILE
),
3010 NAME(NO_MORE_ENTRIES
),
3011 NAME(NO_MORE_FILES
),
3013 NAME(OBJECT_NAME_COLLISION
),
3014 NAME(OBJECT_NAME_INVALID
),
3015 NAME(OBJECT_NAME_NOT_FOUND
),
3016 NAME(OBJECT_PATH_INVALID
),
3017 NAME(OBJECT_TYPE_MISMATCH
),
3020 NAME(SEMAPHORE_LIMIT_EXCEEDED
),
3021 NAME(SHARING_VIOLATION
),
3022 NAME(SUSPEND_COUNT_EXCEEDED
),
3024 NAME(TOO_MANY_OPENED_FILES
),
3027 { NULL
, 0 } /* terminator */
3032 static char buffer
[10];
3036 for (i
= 0; status_names
[i
].name
; i
++)
3037 if (status_names
[i
].value
== status
) return status_names
[i
].name
;
3039 sprintf( buffer
, "%x", status
);
3043 void trace_request(void)
3045 enum request req
= current
->req
.request_header
.req
;
3046 if (req
< REQ_NB_REQUESTS
)
3048 fprintf( stderr
, "%04x: %s(", current
->id
, req_names
[req
] );
3049 if (req_dumpers
[req
])
3052 cur_data
= get_req_data();
3053 cur_size
= get_req_data_size();
3054 req_dumpers
[req
]( ¤t
->req
);
3056 fprintf( stderr
, " )\n" );
3058 else fprintf( stderr
, "%04x: %d(?)\n", current
->id
, req
);
3061 void trace_reply( enum request req
, const union generic_reply
*reply
)
3063 if (req
< REQ_NB_REQUESTS
)
3065 fprintf( stderr
, "%04x: %s() = %s",
3066 current
->id
, req_names
[req
], get_status_name(current
->error
) );
3067 if (reply_dumpers
[req
])
3069 fprintf( stderr
, " {" );
3071 cur_data
= current
->reply_data
;
3072 cur_size
= reply
->reply_header
.reply_size
;
3073 reply_dumpers
[req
]( reply
);
3074 fprintf( stderr
, " }" );
3076 fputc( '\n', stderr
);
3078 else fprintf( stderr
, "%04x: %d() = %s\n",
3079 current
->id
, req
, get_status_name(current
->error
) );