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>
36 static const void *cur_data
;
39 /* utility functions */
41 inline static void remove_data( size_t size
)
43 cur_data
= (const char *)cur_data
+ size
;
47 static void dump_uints( const int *ptr
, int len
)
52 fprintf( stderr
, "%08x", *ptr
++ );
53 if (--len
) fputc( ',', stderr
);
58 static void dump_rectangle( const rectangle_t
*rect
)
60 fprintf( stderr
, "{%d,%d;%d,%d}",
61 rect
->left
, rect
->top
, rect
->right
, rect
->bottom
);
64 static void dump_char_info( const char_info_t
*info
)
66 fprintf( stderr
, "{'" );
67 dump_strW( &info
->ch
, 1, stderr
, "\'\'" );
68 fprintf( stderr
, "',%04x}", info
->attr
);
71 static void dump_context( const CONTEXT
*context
)
74 fprintf( stderr
, "{flags=%08lx,eax=%08lx,ebx=%08lx,ecx=%08lx,edx=%08lx,esi=%08lx,edi=%08lx,"
75 "ebp=%08lx,eip=%08lx,esp=%08lx,eflags=%08lx,cs=%04lx,ds=%04lx,es=%04lx,"
76 "fs=%04lx,gs=%04lx,dr0=%08lx,dr1=%08lx,dr2=%08lx,dr3=%08lx,dr6=%08lx,dr7=%08lx,",
77 context
->ContextFlags
, context
->Eax
, context
->Ebx
, context
->Ecx
, context
->Edx
,
78 context
->Esi
, context
->Edi
, context
->Ebp
, context
->Eip
, context
->Esp
, context
->EFlags
,
79 context
->SegCs
, context
->SegDs
, context
->SegEs
, context
->SegFs
, context
->SegGs
,
80 context
->Dr0
, context
->Dr1
, context
->Dr2
, context
->Dr3
, context
->Dr6
, context
->Dr7
);
81 fprintf( stderr
, "float=" );
82 dump_uints( (int *)&context
->FloatSave
, sizeof(context
->FloatSave
) / sizeof(int) );
83 fprintf( stderr
, "}" );
85 dump_uints( (int *)context
, sizeof(*context
) / sizeof(int) );
89 static void dump_exc_record( const EXCEPTION_RECORD
*rec
)
92 fprintf( stderr
, "{code=%lx,flags=%lx,rec=%p,addr=%p,params={",
93 rec
->ExceptionCode
, rec
->ExceptionFlags
, rec
->ExceptionRecord
,
94 rec
->ExceptionAddress
);
95 for (i
= 0; i
< min(rec
->NumberParameters
,EXCEPTION_MAXIMUM_PARAMETERS
); i
++)
97 if (i
) fputc( ',', stderr
);
98 fprintf( stderr
, "%lx", rec
->ExceptionInformation
[i
] );
100 fputc( '}', stderr
);
103 static void dump_varargs_ints( size_t size
)
105 const int *data
= cur_data
;
106 size_t len
= size
/ sizeof(*data
);
108 fputc( '{', stderr
);
111 fprintf( stderr
, "%d", *data
++ );
112 if (--len
) fputc( ',', stderr
);
114 fputc( '}', stderr
);
118 static void dump_varargs_handles( size_t size
)
120 const obj_handle_t
*data
= cur_data
;
121 size_t len
= size
/ sizeof(*data
);
123 fputc( '{', stderr
);
126 fprintf( stderr
, "%p", *data
++ );
127 if (--len
) fputc( ',', stderr
);
129 fputc( '}', stderr
);
133 static void dump_varargs_ptrs( size_t size
)
135 void * const *data
= cur_data
;
136 size_t len
= size
/ sizeof(*data
);
138 fputc( '{', stderr
);
141 fprintf( stderr
, "%p", *data
++ );
142 if (--len
) fputc( ',', stderr
);
144 fputc( '}', stderr
);
148 static void dump_varargs_user_handles( size_t size
)
150 const user_handle_t
*data
= cur_data
;
151 size_t len
= size
/ sizeof(*data
);
153 fputc( '{', stderr
);
156 fprintf( stderr
, "%p", *data
++ );
157 if (--len
) fputc( ',', stderr
);
159 fputc( '}', stderr
);
163 static void dump_varargs_bytes( size_t size
)
165 const unsigned char *data
= cur_data
;
168 fputc( '{', stderr
);
171 fprintf( stderr
, "%02x", *data
++ );
172 if (--len
) fputc( ',', stderr
);
174 fputc( '}', stderr
);
178 static void dump_varargs_string( size_t size
)
180 fprintf( stderr
, "\"%.*s\"", (int)size
, (char *)cur_data
);
184 static void dump_varargs_unicode_str( size_t size
)
186 fprintf( stderr
, "L\"" );
187 dump_strW( cur_data
, size
/ sizeof(WCHAR
), stderr
, "\"\"" );
188 fputc( '\"', stderr
);
192 static void dump_varargs_context( size_t size
)
194 dump_context( cur_data
);
198 static void dump_varargs_exc_event( size_t size
)
200 const CONTEXT
*ptr
= cur_data
;
201 fprintf( stderr
, "{context=" );
203 fprintf( stderr
, ",rec=" );
204 dump_exc_record( (EXCEPTION_RECORD
*)(ptr
+ 1) );
205 fputc( '}', stderr
);
209 static void dump_varargs_debug_event( size_t size
)
211 const debug_event_t
*event
= cur_data
;
215 fprintf( stderr
, "{}" );
220 case EXCEPTION_DEBUG_EVENT
:
221 fprintf( stderr
, "{exception," );
222 dump_exc_record( &event
->info
.exception
.record
);
223 fprintf( stderr
, ",first=%d}", event
->info
.exception
.first
);
225 case CREATE_THREAD_DEBUG_EVENT
:
226 fprintf( stderr
, "{create_thread,thread=%p,teb=%p,start=%p}",
227 event
->info
.create_thread
.handle
, event
->info
.create_thread
.teb
,
228 event
->info
.create_thread
.start
);
230 case CREATE_PROCESS_DEBUG_EVENT
:
231 fprintf( stderr
, "{create_process,file=%p,process=%p,thread=%p,base=%p,offset=%d,"
232 "size=%d,teb=%p,start=%p,name=%p,unicode=%d}",
233 event
->info
.create_process
.file
, event
->info
.create_process
.process
,
234 event
->info
.create_process
.thread
, event
->info
.create_process
.base
,
235 event
->info
.create_process
.dbg_offset
, event
->info
.create_process
.dbg_size
,
236 event
->info
.create_process
.teb
, event
->info
.create_process
.start
,
237 event
->info
.create_process
.name
, event
->info
.create_process
.unicode
);
239 case EXIT_THREAD_DEBUG_EVENT
:
240 fprintf( stderr
, "{exit_thread,code=%d}", event
->info
.exit
.exit_code
);
242 case EXIT_PROCESS_DEBUG_EVENT
:
243 fprintf( stderr
, "{exit_process,code=%d}", event
->info
.exit
.exit_code
);
245 case LOAD_DLL_DEBUG_EVENT
:
246 fprintf( stderr
, "{load_dll,file=%p,base=%p,offset=%d,size=%d,name=%p,unicode=%d}",
247 event
->info
.load_dll
.handle
, event
->info
.load_dll
.base
,
248 event
->info
.load_dll
.dbg_offset
, event
->info
.load_dll
.dbg_size
,
249 event
->info
.load_dll
.name
, event
->info
.load_dll
.unicode
);
251 case UNLOAD_DLL_DEBUG_EVENT
:
252 fprintf( stderr
, "{unload_dll,base=%p}", event
->info
.unload_dll
.base
);
254 case OUTPUT_DEBUG_STRING_EVENT
:
255 fprintf( stderr
, "{output_string,data=%p,unicode=%d,len=%d}",
256 event
->info
.output_string
.string
, event
->info
.output_string
.unicode
,
257 event
->info
.output_string
.length
);
260 fprintf( stderr
, "{rip,err=%d,type=%d}",
261 event
->info
.rip_info
.error
, event
->info
.rip_info
.type
);
263 case 0: /* zero is the code returned on timeouts */
264 fprintf( stderr
, "{}" );
267 fprintf( stderr
, "{code=??? (%d)}", event
->code
);
273 static void dump_varargs_startup_info( size_t size
)
275 const startup_info_t
*ptr
= cur_data
;
278 if (size
< sizeof(info
.size
))
280 fprintf( stderr
, "{}" );
283 if (size
> ptr
->size
) size
= ptr
->size
;
284 memset( &info
, 0, sizeof(info
) );
285 memcpy( &info
, ptr
, min( size
, sizeof(info
) ));
287 fprintf( stderr
, "{size=%d", info
.size
);
288 fprintf( stderr
, ",x=%d", info
.x
);
289 fprintf( stderr
, ",y=%d", info
.y
);
290 fprintf( stderr
, ",cx=%d", info
.cx
);
291 fprintf( stderr
, ",cy=%d", info
.cy
);
292 fprintf( stderr
, ",x_chars=%d", info
.x_chars
);
293 fprintf( stderr
, ",y_chars=%d", info
.y_chars
);
294 fprintf( stderr
, ",attr=%d", info
.attribute
);
295 fprintf( stderr
, ",cmd_show=%d", info
.cmd_show
);
296 fprintf( stderr
, ",flags=%x", info
.flags
);
298 fprintf( stderr
, ",filename=" );
299 /* FIXME: these should be unicode */
300 dump_varargs_string( min(cur_size
,info
.filename_len
) );
301 fprintf( stderr
, ",cmdline=" );
302 dump_varargs_string( min(cur_size
,info
.cmdline_len
) );
303 fprintf( stderr
, ",desktop=" );
304 dump_varargs_string( min(cur_size
,info
.desktop_len
) );
305 fprintf( stderr
, ",title=" );
306 dump_varargs_string( min(cur_size
,info
.title_len
) );
307 fputc( '}', stderr
);
310 static void dump_varargs_input_records( size_t size
)
312 const INPUT_RECORD
*rec
= cur_data
;
313 size_t len
= size
/ sizeof(*rec
);
315 fputc( '{', stderr
);
318 fprintf( stderr
, "{%04x,...}", rec
->EventType
);
320 if (--len
) fputc( ',', stderr
);
322 fputc( '}', stderr
);
326 static void dump_varargs_properties( size_t size
)
328 const property_data_t
*prop
= cur_data
;
329 size_t len
= size
/ sizeof(*prop
);
331 fputc( '{', stderr
);
334 fprintf( stderr
, "{atom=%04x,str=%d,handle=%p}",
335 prop
->atom
, prop
->string
, prop
->handle
);
337 if (--len
) fputc( ',', stderr
);
339 fputc( '}', stderr
);
343 typedef void (*dump_func
)( const void *req
);
345 /* Everything below this line is generated automatically by tools/make_requests */
346 /* ### make_requests begin ### */
348 static void dump_new_process_request( const struct new_process_request
*req
)
350 fprintf( stderr
, " inherit_all=%d,", req
->inherit_all
);
351 fprintf( stderr
, " use_handles=%d,", req
->use_handles
);
352 fprintf( stderr
, " create_flags=%d,", req
->create_flags
);
353 fprintf( stderr
, " exe_file=%p,", req
->exe_file
);
354 fprintf( stderr
, " hstdin=%p,", req
->hstdin
);
355 fprintf( stderr
, " hstdout=%p,", req
->hstdout
);
356 fprintf( stderr
, " hstderr=%p,", req
->hstderr
);
357 fprintf( stderr
, " info=" );
358 dump_varargs_startup_info( cur_size
);
361 static void dump_new_process_reply( const struct new_process_reply
*req
)
363 fprintf( stderr
, " info=%p", req
->info
);
366 static void dump_get_new_process_info_request( const struct get_new_process_info_request
*req
)
368 fprintf( stderr
, " info=%p,", req
->info
);
369 fprintf( stderr
, " pinherit=%d,", req
->pinherit
);
370 fprintf( stderr
, " tinherit=%d", req
->tinherit
);
373 static void dump_get_new_process_info_reply( const struct get_new_process_info_reply
*req
)
375 fprintf( stderr
, " pid=%08x,", req
->pid
);
376 fprintf( stderr
, " phandle=%p,", req
->phandle
);
377 fprintf( stderr
, " tid=%08x,", req
->tid
);
378 fprintf( stderr
, " thandle=%p,", req
->thandle
);
379 fprintf( stderr
, " success=%d", req
->success
);
382 static void dump_new_thread_request( const struct new_thread_request
*req
)
384 fprintf( stderr
, " suspend=%d,", req
->suspend
);
385 fprintf( stderr
, " inherit=%d,", req
->inherit
);
386 fprintf( stderr
, " request_fd=%d", req
->request_fd
);
389 static void dump_new_thread_reply( const struct new_thread_reply
*req
)
391 fprintf( stderr
, " tid=%08x,", req
->tid
);
392 fprintf( stderr
, " handle=%p", req
->handle
);
395 static void dump_boot_done_request( const struct boot_done_request
*req
)
397 fprintf( stderr
, " debug_level=%d", req
->debug_level
);
400 static void dump_init_process_request( const struct init_process_request
*req
)
402 fprintf( stderr
, " ldt_copy=%p,", req
->ldt_copy
);
403 fprintf( stderr
, " ppid=%d", req
->ppid
);
406 static void dump_init_process_reply( const struct init_process_reply
*req
)
408 fprintf( stderr
, " create_flags=%d,", req
->create_flags
);
409 fprintf( stderr
, " server_start=%08x,", req
->server_start
);
410 fprintf( stderr
, " info_size=%d,", req
->info_size
);
411 fprintf( stderr
, " exe_file=%p,", req
->exe_file
);
412 fprintf( stderr
, " hstdin=%p,", req
->hstdin
);
413 fprintf( stderr
, " hstdout=%p,", req
->hstdout
);
414 fprintf( stderr
, " hstderr=%p", req
->hstderr
);
417 static void dump_get_startup_info_request( const struct get_startup_info_request
*req
)
421 static void dump_get_startup_info_reply( const struct get_startup_info_reply
*req
)
423 fprintf( stderr
, " info=" );
424 dump_varargs_startup_info( cur_size
);
427 static void dump_init_process_done_request( const struct init_process_done_request
*req
)
429 fprintf( stderr
, " module=%p,", req
->module
);
430 fprintf( stderr
, " module_size=%d,", req
->module_size
);
431 fprintf( stderr
, " entry=%p,", req
->entry
);
432 fprintf( stderr
, " name=%p,", req
->name
);
433 fprintf( stderr
, " exe_file=%p,", req
->exe_file
);
434 fprintf( stderr
, " gui=%d,", req
->gui
);
435 fprintf( stderr
, " filename=" );
436 dump_varargs_string( cur_size
);
439 static void dump_init_process_done_reply( const struct init_process_done_reply
*req
)
441 fprintf( stderr
, " debugged=%d", req
->debugged
);
444 static void dump_init_thread_request( const struct init_thread_request
*req
)
446 fprintf( stderr
, " unix_pid=%d,", req
->unix_pid
);
447 fprintf( stderr
, " teb=%p,", req
->teb
);
448 fprintf( stderr
, " entry=%p,", req
->entry
);
449 fprintf( stderr
, " reply_fd=%d,", req
->reply_fd
);
450 fprintf( stderr
, " wait_fd=%d", req
->wait_fd
);
453 static void dump_init_thread_reply( const struct init_thread_reply
*req
)
455 fprintf( stderr
, " pid=%08x,", req
->pid
);
456 fprintf( stderr
, " tid=%08x,", req
->tid
);
457 fprintf( stderr
, " boot=%d,", req
->boot
);
458 fprintf( stderr
, " version=%d", req
->version
);
461 static void dump_terminate_process_request( const struct terminate_process_request
*req
)
463 fprintf( stderr
, " handle=%p,", req
->handle
);
464 fprintf( stderr
, " exit_code=%d", req
->exit_code
);
467 static void dump_terminate_process_reply( const struct terminate_process_reply
*req
)
469 fprintf( stderr
, " self=%d", req
->self
);
472 static void dump_terminate_thread_request( const struct terminate_thread_request
*req
)
474 fprintf( stderr
, " handle=%p,", req
->handle
);
475 fprintf( stderr
, " exit_code=%d", req
->exit_code
);
478 static void dump_terminate_thread_reply( const struct terminate_thread_reply
*req
)
480 fprintf( stderr
, " self=%d,", req
->self
);
481 fprintf( stderr
, " last=%d", req
->last
);
484 static void dump_get_process_info_request( const struct get_process_info_request
*req
)
486 fprintf( stderr
, " handle=%p", req
->handle
);
489 static void dump_get_process_info_reply( const struct get_process_info_reply
*req
)
491 fprintf( stderr
, " pid=%08x,", req
->pid
);
492 fprintf( stderr
, " debugged=%d,", req
->debugged
);
493 fprintf( stderr
, " exit_code=%d,", req
->exit_code
);
494 fprintf( stderr
, " priority=%d,", req
->priority
);
495 fprintf( stderr
, " process_affinity=%d,", req
->process_affinity
);
496 fprintf( stderr
, " system_affinity=%d", req
->system_affinity
);
499 static void dump_set_process_info_request( const struct set_process_info_request
*req
)
501 fprintf( stderr
, " handle=%p,", req
->handle
);
502 fprintf( stderr
, " mask=%d,", req
->mask
);
503 fprintf( stderr
, " priority=%d,", req
->priority
);
504 fprintf( stderr
, " affinity=%d", req
->affinity
);
507 static void dump_get_thread_info_request( const struct get_thread_info_request
*req
)
509 fprintf( stderr
, " handle=%p,", req
->handle
);
510 fprintf( stderr
, " tid_in=%08x", req
->tid_in
);
513 static void dump_get_thread_info_reply( const struct get_thread_info_reply
*req
)
515 fprintf( stderr
, " tid=%08x,", req
->tid
);
516 fprintf( stderr
, " teb=%p,", req
->teb
);
517 fprintf( stderr
, " exit_code=%d,", req
->exit_code
);
518 fprintf( stderr
, " priority=%d,", req
->priority
);
519 fprintf( stderr
, " creation_time=%ld,", req
->creation_time
);
520 fprintf( stderr
, " exit_time=%ld", req
->exit_time
);
523 static void dump_set_thread_info_request( const struct set_thread_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_suspend_thread_request( const struct suspend_thread_request
*req
)
533 fprintf( stderr
, " handle=%p", req
->handle
);
536 static void dump_suspend_thread_reply( const struct suspend_thread_reply
*req
)
538 fprintf( stderr
, " count=%d", req
->count
);
541 static void dump_resume_thread_request( const struct resume_thread_request
*req
)
543 fprintf( stderr
, " handle=%p", req
->handle
);
546 static void dump_resume_thread_reply( const struct resume_thread_reply
*req
)
548 fprintf( stderr
, " count=%d", req
->count
);
551 static void dump_load_dll_request( const struct load_dll_request
*req
)
553 fprintf( stderr
, " handle=%p,", req
->handle
);
554 fprintf( stderr
, " base=%p,", req
->base
);
555 fprintf( stderr
, " size=%d,", req
->size
);
556 fprintf( stderr
, " dbg_offset=%d,", req
->dbg_offset
);
557 fprintf( stderr
, " dbg_size=%d,", req
->dbg_size
);
558 fprintf( stderr
, " name=%p,", req
->name
);
559 fprintf( stderr
, " filename=" );
560 dump_varargs_string( cur_size
);
563 static void dump_unload_dll_request( const struct unload_dll_request
*req
)
565 fprintf( stderr
, " base=%p", req
->base
);
568 static void dump_queue_apc_request( const struct queue_apc_request
*req
)
570 fprintf( stderr
, " handle=%p,", req
->handle
);
571 fprintf( stderr
, " user=%d,", req
->user
);
572 fprintf( stderr
, " func=%p,", req
->func
);
573 fprintf( stderr
, " param=%p", req
->param
);
576 static void dump_get_apc_request( const struct get_apc_request
*req
)
578 fprintf( stderr
, " alertable=%d", req
->alertable
);
581 static void dump_get_apc_reply( const struct get_apc_reply
*req
)
583 fprintf( stderr
, " func=%p,", req
->func
);
584 fprintf( stderr
, " type=%d,", req
->type
);
585 fprintf( stderr
, " args=" );
586 dump_varargs_ptrs( cur_size
);
589 static void dump_close_handle_request( const struct close_handle_request
*req
)
591 fprintf( stderr
, " handle=%p", req
->handle
);
594 static void dump_close_handle_reply( const struct close_handle_reply
*req
)
596 fprintf( stderr
, " fd=%d", req
->fd
);
599 static void dump_set_handle_info_request( const struct set_handle_info_request
*req
)
601 fprintf( stderr
, " handle=%p,", req
->handle
);
602 fprintf( stderr
, " flags=%d,", req
->flags
);
603 fprintf( stderr
, " mask=%d,", req
->mask
);
604 fprintf( stderr
, " fd=%d", req
->fd
);
607 static void dump_set_handle_info_reply( const struct set_handle_info_reply
*req
)
609 fprintf( stderr
, " old_flags=%d,", req
->old_flags
);
610 fprintf( stderr
, " cur_fd=%d", req
->cur_fd
);
613 static void dump_dup_handle_request( const struct dup_handle_request
*req
)
615 fprintf( stderr
, " src_process=%p,", req
->src_process
);
616 fprintf( stderr
, " src_handle=%p,", req
->src_handle
);
617 fprintf( stderr
, " dst_process=%p,", req
->dst_process
);
618 fprintf( stderr
, " access=%08x,", req
->access
);
619 fprintf( stderr
, " inherit=%d,", req
->inherit
);
620 fprintf( stderr
, " options=%d", req
->options
);
623 static void dump_dup_handle_reply( const struct dup_handle_reply
*req
)
625 fprintf( stderr
, " handle=%p,", req
->handle
);
626 fprintf( stderr
, " fd=%d", req
->fd
);
629 static void dump_open_process_request( const struct open_process_request
*req
)
631 fprintf( stderr
, " pid=%08x,", req
->pid
);
632 fprintf( stderr
, " access=%08x,", req
->access
);
633 fprintf( stderr
, " inherit=%d", req
->inherit
);
636 static void dump_open_process_reply( const struct open_process_reply
*req
)
638 fprintf( stderr
, " handle=%p", req
->handle
);
641 static void dump_open_thread_request( const struct open_thread_request
*req
)
643 fprintf( stderr
, " tid=%08x,", req
->tid
);
644 fprintf( stderr
, " access=%08x,", req
->access
);
645 fprintf( stderr
, " inherit=%d", req
->inherit
);
648 static void dump_open_thread_reply( const struct open_thread_reply
*req
)
650 fprintf( stderr
, " handle=%p", req
->handle
);
653 static void dump_select_request( const struct select_request
*req
)
655 fprintf( stderr
, " flags=%d,", req
->flags
);
656 fprintf( stderr
, " cookie=%p,", req
->cookie
);
657 fprintf( stderr
, " sec=%d,", req
->sec
);
658 fprintf( stderr
, " usec=%d,", req
->usec
);
659 fprintf( stderr
, " handles=" );
660 dump_varargs_handles( cur_size
);
663 static void dump_create_event_request( const struct create_event_request
*req
)
665 fprintf( stderr
, " manual_reset=%d,", req
->manual_reset
);
666 fprintf( stderr
, " initial_state=%d,", req
->initial_state
);
667 fprintf( stderr
, " inherit=%d,", req
->inherit
);
668 fprintf( stderr
, " name=" );
669 dump_varargs_unicode_str( cur_size
);
672 static void dump_create_event_reply( const struct create_event_reply
*req
)
674 fprintf( stderr
, " handle=%p", req
->handle
);
677 static void dump_event_op_request( const struct event_op_request
*req
)
679 fprintf( stderr
, " handle=%p,", req
->handle
);
680 fprintf( stderr
, " op=%d", req
->op
);
683 static void dump_open_event_request( const struct open_event_request
*req
)
685 fprintf( stderr
, " access=%08x,", req
->access
);
686 fprintf( stderr
, " inherit=%d,", req
->inherit
);
687 fprintf( stderr
, " name=" );
688 dump_varargs_unicode_str( cur_size
);
691 static void dump_open_event_reply( const struct open_event_reply
*req
)
693 fprintf( stderr
, " handle=%p", req
->handle
);
696 static void dump_create_mutex_request( const struct create_mutex_request
*req
)
698 fprintf( stderr
, " owned=%d,", req
->owned
);
699 fprintf( stderr
, " inherit=%d,", req
->inherit
);
700 fprintf( stderr
, " name=" );
701 dump_varargs_unicode_str( cur_size
);
704 static void dump_create_mutex_reply( const struct create_mutex_reply
*req
)
706 fprintf( stderr
, " handle=%p", req
->handle
);
709 static void dump_release_mutex_request( const struct release_mutex_request
*req
)
711 fprintf( stderr
, " handle=%p", req
->handle
);
714 static void dump_open_mutex_request( const struct open_mutex_request
*req
)
716 fprintf( stderr
, " access=%08x,", req
->access
);
717 fprintf( stderr
, " inherit=%d,", req
->inherit
);
718 fprintf( stderr
, " name=" );
719 dump_varargs_unicode_str( cur_size
);
722 static void dump_open_mutex_reply( const struct open_mutex_reply
*req
)
724 fprintf( stderr
, " handle=%p", req
->handle
);
727 static void dump_create_semaphore_request( const struct create_semaphore_request
*req
)
729 fprintf( stderr
, " initial=%08x,", req
->initial
);
730 fprintf( stderr
, " max=%08x,", req
->max
);
731 fprintf( stderr
, " inherit=%d,", req
->inherit
);
732 fprintf( stderr
, " name=" );
733 dump_varargs_unicode_str( cur_size
);
736 static void dump_create_semaphore_reply( const struct create_semaphore_reply
*req
)
738 fprintf( stderr
, " handle=%p", req
->handle
);
741 static void dump_release_semaphore_request( const struct release_semaphore_request
*req
)
743 fprintf( stderr
, " handle=%p,", req
->handle
);
744 fprintf( stderr
, " count=%08x", req
->count
);
747 static void dump_release_semaphore_reply( const struct release_semaphore_reply
*req
)
749 fprintf( stderr
, " prev_count=%08x", req
->prev_count
);
752 static void dump_open_semaphore_request( const struct open_semaphore_request
*req
)
754 fprintf( stderr
, " access=%08x,", req
->access
);
755 fprintf( stderr
, " inherit=%d,", req
->inherit
);
756 fprintf( stderr
, " name=" );
757 dump_varargs_unicode_str( cur_size
);
760 static void dump_open_semaphore_reply( const struct open_semaphore_reply
*req
)
762 fprintf( stderr
, " handle=%p", req
->handle
);
765 static void dump_create_file_request( const struct create_file_request
*req
)
767 fprintf( stderr
, " access=%08x,", req
->access
);
768 fprintf( stderr
, " inherit=%d,", req
->inherit
);
769 fprintf( stderr
, " sharing=%08x,", req
->sharing
);
770 fprintf( stderr
, " create=%d,", req
->create
);
771 fprintf( stderr
, " attrs=%08x,", req
->attrs
);
772 fprintf( stderr
, " drive_type=%d,", req
->drive_type
);
773 fprintf( stderr
, " filename=" );
774 dump_varargs_string( cur_size
);
777 static void dump_create_file_reply( const struct create_file_reply
*req
)
779 fprintf( stderr
, " handle=%p", req
->handle
);
782 static void dump_alloc_file_handle_request( const struct alloc_file_handle_request
*req
)
784 fprintf( stderr
, " access=%08x,", req
->access
);
785 fprintf( stderr
, " inherit=%d,", req
->inherit
);
786 fprintf( stderr
, " fd=%d", req
->fd
);
789 static void dump_alloc_file_handle_reply( const struct alloc_file_handle_reply
*req
)
791 fprintf( stderr
, " handle=%p", req
->handle
);
794 static void dump_get_handle_fd_request( const struct get_handle_fd_request
*req
)
796 fprintf( stderr
, " handle=%p,", req
->handle
);
797 fprintf( stderr
, " access=%08x", req
->access
);
800 static void dump_get_handle_fd_reply( const struct get_handle_fd_reply
*req
)
802 fprintf( stderr
, " fd=%d,", req
->fd
);
803 fprintf( stderr
, " type=%d,", req
->type
);
804 fprintf( stderr
, " flags=%d", req
->flags
);
807 static void dump_set_file_pointer_request( const struct set_file_pointer_request
*req
)
809 fprintf( stderr
, " handle=%p,", req
->handle
);
810 fprintf( stderr
, " low=%d,", req
->low
);
811 fprintf( stderr
, " high=%d,", req
->high
);
812 fprintf( stderr
, " whence=%d", req
->whence
);
815 static void dump_set_file_pointer_reply( const struct set_file_pointer_reply
*req
)
817 fprintf( stderr
, " new_low=%d,", req
->new_low
);
818 fprintf( stderr
, " new_high=%d", req
->new_high
);
821 static void dump_truncate_file_request( const struct truncate_file_request
*req
)
823 fprintf( stderr
, " handle=%p", req
->handle
);
826 static void dump_set_file_time_request( const struct set_file_time_request
*req
)
828 fprintf( stderr
, " handle=%p,", req
->handle
);
829 fprintf( stderr
, " access_time=%ld,", req
->access_time
);
830 fprintf( stderr
, " write_time=%ld", req
->write_time
);
833 static void dump_flush_file_request( const struct flush_file_request
*req
)
835 fprintf( stderr
, " handle=%p", req
->handle
);
838 static void dump_get_file_info_request( const struct get_file_info_request
*req
)
840 fprintf( stderr
, " handle=%p", req
->handle
);
843 static void dump_get_file_info_reply( const struct get_file_info_reply
*req
)
845 fprintf( stderr
, " type=%d,", req
->type
);
846 fprintf( stderr
, " attr=%d,", req
->attr
);
847 fprintf( stderr
, " access_time=%ld,", req
->access_time
);
848 fprintf( stderr
, " write_time=%ld,", req
->write_time
);
849 fprintf( stderr
, " size_high=%d,", req
->size_high
);
850 fprintf( stderr
, " size_low=%d,", req
->size_low
);
851 fprintf( stderr
, " links=%d,", req
->links
);
852 fprintf( stderr
, " index_high=%d,", req
->index_high
);
853 fprintf( stderr
, " index_low=%d,", req
->index_low
);
854 fprintf( stderr
, " serial=%08x", req
->serial
);
857 static void dump_lock_file_request( const struct lock_file_request
*req
)
859 fprintf( stderr
, " handle=%p,", req
->handle
);
860 fprintf( stderr
, " offset_low=%08x,", req
->offset_low
);
861 fprintf( stderr
, " offset_high=%08x,", req
->offset_high
);
862 fprintf( stderr
, " count_low=%08x,", req
->count_low
);
863 fprintf( stderr
, " count_high=%08x", req
->count_high
);
866 static void dump_unlock_file_request( const struct unlock_file_request
*req
)
868 fprintf( stderr
, " handle=%p,", req
->handle
);
869 fprintf( stderr
, " offset_low=%08x,", req
->offset_low
);
870 fprintf( stderr
, " offset_high=%08x,", req
->offset_high
);
871 fprintf( stderr
, " count_low=%08x,", req
->count_low
);
872 fprintf( stderr
, " count_high=%08x", req
->count_high
);
875 static void dump_create_pipe_request( const struct create_pipe_request
*req
)
877 fprintf( stderr
, " inherit=%d", req
->inherit
);
880 static void dump_create_pipe_reply( const struct create_pipe_reply
*req
)
882 fprintf( stderr
, " handle_read=%p,", req
->handle_read
);
883 fprintf( stderr
, " handle_write=%p", req
->handle_write
);
886 static void dump_create_socket_request( const struct create_socket_request
*req
)
888 fprintf( stderr
, " access=%08x,", req
->access
);
889 fprintf( stderr
, " inherit=%d,", req
->inherit
);
890 fprintf( stderr
, " family=%d,", req
->family
);
891 fprintf( stderr
, " type=%d,", req
->type
);
892 fprintf( stderr
, " protocol=%d,", req
->protocol
);
893 fprintf( stderr
, " flags=%08x", req
->flags
);
896 static void dump_create_socket_reply( const struct create_socket_reply
*req
)
898 fprintf( stderr
, " handle=%p", req
->handle
);
901 static void dump_accept_socket_request( const struct accept_socket_request
*req
)
903 fprintf( stderr
, " lhandle=%p,", req
->lhandle
);
904 fprintf( stderr
, " access=%08x,", req
->access
);
905 fprintf( stderr
, " inherit=%d", req
->inherit
);
908 static void dump_accept_socket_reply( const struct accept_socket_reply
*req
)
910 fprintf( stderr
, " handle=%p", req
->handle
);
913 static void dump_set_socket_event_request( const struct set_socket_event_request
*req
)
915 fprintf( stderr
, " handle=%p,", req
->handle
);
916 fprintf( stderr
, " mask=%08x,", req
->mask
);
917 fprintf( stderr
, " event=%p,", req
->event
);
918 fprintf( stderr
, " window=%p,", req
->window
);
919 fprintf( stderr
, " msg=%08x", req
->msg
);
922 static void dump_get_socket_event_request( const struct get_socket_event_request
*req
)
924 fprintf( stderr
, " handle=%p,", req
->handle
);
925 fprintf( stderr
, " service=%d,", req
->service
);
926 fprintf( stderr
, " c_event=%p", req
->c_event
);
929 static void dump_get_socket_event_reply( const struct get_socket_event_reply
*req
)
931 fprintf( stderr
, " mask=%08x,", req
->mask
);
932 fprintf( stderr
, " pmask=%08x,", req
->pmask
);
933 fprintf( stderr
, " state=%08x,", req
->state
);
934 fprintf( stderr
, " errors=" );
935 dump_varargs_ints( cur_size
);
938 static void dump_enable_socket_event_request( const struct enable_socket_event_request
*req
)
940 fprintf( stderr
, " handle=%p,", req
->handle
);
941 fprintf( stderr
, " mask=%08x,", req
->mask
);
942 fprintf( stderr
, " sstate=%08x,", req
->sstate
);
943 fprintf( stderr
, " cstate=%08x", req
->cstate
);
946 static void dump_set_socket_deferred_request( const struct set_socket_deferred_request
*req
)
948 fprintf( stderr
, " handle=%p,", req
->handle
);
949 fprintf( stderr
, " deferred=%p", req
->deferred
);
952 static void dump_alloc_console_request( const struct alloc_console_request
*req
)
954 fprintf( stderr
, " access=%08x,", req
->access
);
955 fprintf( stderr
, " inherit=%d,", req
->inherit
);
956 fprintf( stderr
, " pid=%08x", req
->pid
);
959 static void dump_alloc_console_reply( const struct alloc_console_reply
*req
)
961 fprintf( stderr
, " handle_in=%p,", req
->handle_in
);
962 fprintf( stderr
, " event=%p", req
->event
);
965 static void dump_free_console_request( const struct free_console_request
*req
)
969 static void dump_get_console_renderer_events_request( const struct get_console_renderer_events_request
*req
)
971 fprintf( stderr
, " handle=%p", req
->handle
);
974 static void dump_get_console_renderer_events_reply( const struct get_console_renderer_events_reply
*req
)
976 fprintf( stderr
, " data=" );
977 dump_varargs_bytes( cur_size
);
980 static void dump_open_console_request( const struct open_console_request
*req
)
982 fprintf( stderr
, " from=%d,", req
->from
);
983 fprintf( stderr
, " access=%08x,", req
->access
);
984 fprintf( stderr
, " inherit=%d,", req
->inherit
);
985 fprintf( stderr
, " share=%d", req
->share
);
988 static void dump_open_console_reply( const struct open_console_reply
*req
)
990 fprintf( stderr
, " handle=%p", req
->handle
);
993 static void dump_get_console_mode_request( const struct get_console_mode_request
*req
)
995 fprintf( stderr
, " handle=%p", req
->handle
);
998 static void dump_get_console_mode_reply( const struct get_console_mode_reply
*req
)
1000 fprintf( stderr
, " mode=%d", req
->mode
);
1003 static void dump_set_console_mode_request( const struct set_console_mode_request
*req
)
1005 fprintf( stderr
, " handle=%p,", req
->handle
);
1006 fprintf( stderr
, " mode=%d", req
->mode
);
1009 static void dump_set_console_input_info_request( const struct set_console_input_info_request
*req
)
1011 fprintf( stderr
, " handle=%p,", req
->handle
);
1012 fprintf( stderr
, " mask=%d,", req
->mask
);
1013 fprintf( stderr
, " active_sb=%p,", req
->active_sb
);
1014 fprintf( stderr
, " history_mode=%d,", req
->history_mode
);
1015 fprintf( stderr
, " history_size=%d,", req
->history_size
);
1016 fprintf( stderr
, " title=" );
1017 dump_varargs_unicode_str( cur_size
);
1020 static void dump_get_console_input_info_request( const struct get_console_input_info_request
*req
)
1022 fprintf( stderr
, " handle=%p", req
->handle
);
1025 static void dump_get_console_input_info_reply( const struct get_console_input_info_reply
*req
)
1027 fprintf( stderr
, " history_mode=%d,", req
->history_mode
);
1028 fprintf( stderr
, " history_size=%d,", req
->history_size
);
1029 fprintf( stderr
, " history_index=%d,", req
->history_index
);
1030 fprintf( stderr
, " title=" );
1031 dump_varargs_unicode_str( cur_size
);
1034 static void dump_append_console_input_history_request( const struct append_console_input_history_request
*req
)
1036 fprintf( stderr
, " handle=%p,", req
->handle
);
1037 fprintf( stderr
, " line=" );
1038 dump_varargs_unicode_str( cur_size
);
1041 static void dump_get_console_input_history_request( const struct get_console_input_history_request
*req
)
1043 fprintf( stderr
, " handle=%p,", req
->handle
);
1044 fprintf( stderr
, " index=%d", req
->index
);
1047 static void dump_get_console_input_history_reply( const struct get_console_input_history_reply
*req
)
1049 fprintf( stderr
, " total=%d,", req
->total
);
1050 fprintf( stderr
, " line=" );
1051 dump_varargs_unicode_str( cur_size
);
1054 static void dump_create_console_output_request( const struct create_console_output_request
*req
)
1056 fprintf( stderr
, " handle_in=%p,", req
->handle_in
);
1057 fprintf( stderr
, " access=%d,", req
->access
);
1058 fprintf( stderr
, " share=%d,", req
->share
);
1059 fprintf( stderr
, " inherit=%d", req
->inherit
);
1062 static void dump_create_console_output_reply( const struct create_console_output_reply
*req
)
1064 fprintf( stderr
, " handle_out=%p", req
->handle_out
);
1067 static void dump_set_console_output_info_request( const struct set_console_output_info_request
*req
)
1069 fprintf( stderr
, " handle=%p,", req
->handle
);
1070 fprintf( stderr
, " mask=%d,", req
->mask
);
1071 fprintf( stderr
, " cursor_size=%d,", req
->cursor_size
);
1072 fprintf( stderr
, " cursor_visible=%d,", req
->cursor_visible
);
1073 fprintf( stderr
, " cursor_x=%d,", req
->cursor_x
);
1074 fprintf( stderr
, " cursor_y=%d,", req
->cursor_y
);
1075 fprintf( stderr
, " width=%d,", req
->width
);
1076 fprintf( stderr
, " height=%d,", req
->height
);
1077 fprintf( stderr
, " attr=%d,", req
->attr
);
1078 fprintf( stderr
, " win_left=%d,", req
->win_left
);
1079 fprintf( stderr
, " win_top=%d,", req
->win_top
);
1080 fprintf( stderr
, " win_right=%d,", req
->win_right
);
1081 fprintf( stderr
, " win_bottom=%d,", req
->win_bottom
);
1082 fprintf( stderr
, " max_width=%d,", req
->max_width
);
1083 fprintf( stderr
, " max_height=%d", req
->max_height
);
1086 static void dump_get_console_output_info_request( const struct get_console_output_info_request
*req
)
1088 fprintf( stderr
, " handle=%p", req
->handle
);
1091 static void dump_get_console_output_info_reply( const struct get_console_output_info_reply
*req
)
1093 fprintf( stderr
, " cursor_size=%d,", req
->cursor_size
);
1094 fprintf( stderr
, " cursor_visible=%d,", req
->cursor_visible
);
1095 fprintf( stderr
, " cursor_x=%d,", req
->cursor_x
);
1096 fprintf( stderr
, " cursor_y=%d,", req
->cursor_y
);
1097 fprintf( stderr
, " width=%d,", req
->width
);
1098 fprintf( stderr
, " height=%d,", req
->height
);
1099 fprintf( stderr
, " attr=%d,", req
->attr
);
1100 fprintf( stderr
, " win_left=%d,", req
->win_left
);
1101 fprintf( stderr
, " win_top=%d,", req
->win_top
);
1102 fprintf( stderr
, " win_right=%d,", req
->win_right
);
1103 fprintf( stderr
, " win_bottom=%d,", req
->win_bottom
);
1104 fprintf( stderr
, " max_width=%d,", req
->max_width
);
1105 fprintf( stderr
, " max_height=%d", req
->max_height
);
1108 static void dump_write_console_input_request( const struct write_console_input_request
*req
)
1110 fprintf( stderr
, " handle=%p,", req
->handle
);
1111 fprintf( stderr
, " rec=" );
1112 dump_varargs_input_records( cur_size
);
1115 static void dump_write_console_input_reply( const struct write_console_input_reply
*req
)
1117 fprintf( stderr
, " written=%d", req
->written
);
1120 static void dump_read_console_input_request( const struct read_console_input_request
*req
)
1122 fprintf( stderr
, " handle=%p,", req
->handle
);
1123 fprintf( stderr
, " flush=%d", req
->flush
);
1126 static void dump_read_console_input_reply( const struct read_console_input_reply
*req
)
1128 fprintf( stderr
, " read=%d,", req
->read
);
1129 fprintf( stderr
, " rec=" );
1130 dump_varargs_input_records( cur_size
);
1133 static void dump_write_console_output_request( const struct write_console_output_request
*req
)
1135 fprintf( stderr
, " handle=%p,", req
->handle
);
1136 fprintf( stderr
, " x=%d,", req
->x
);
1137 fprintf( stderr
, " y=%d,", req
->y
);
1138 fprintf( stderr
, " mode=%d,", req
->mode
);
1139 fprintf( stderr
, " wrap=%d,", req
->wrap
);
1140 fprintf( stderr
, " data=" );
1141 dump_varargs_bytes( cur_size
);
1144 static void dump_write_console_output_reply( const struct write_console_output_reply
*req
)
1146 fprintf( stderr
, " written=%d,", req
->written
);
1147 fprintf( stderr
, " width=%d,", req
->width
);
1148 fprintf( stderr
, " height=%d", req
->height
);
1151 static void dump_fill_console_output_request( const struct fill_console_output_request
*req
)
1153 fprintf( stderr
, " handle=%p,", req
->handle
);
1154 fprintf( stderr
, " x=%d,", req
->x
);
1155 fprintf( stderr
, " y=%d,", req
->y
);
1156 fprintf( stderr
, " mode=%d,", req
->mode
);
1157 fprintf( stderr
, " count=%d,", req
->count
);
1158 fprintf( stderr
, " wrap=%d,", req
->wrap
);
1159 fprintf( stderr
, " data=" );
1160 dump_char_info( &req
->data
);
1163 static void dump_fill_console_output_reply( const struct fill_console_output_reply
*req
)
1165 fprintf( stderr
, " written=%d", req
->written
);
1168 static void dump_read_console_output_request( const struct read_console_output_request
*req
)
1170 fprintf( stderr
, " handle=%p,", req
->handle
);
1171 fprintf( stderr
, " x=%d,", req
->x
);
1172 fprintf( stderr
, " y=%d,", req
->y
);
1173 fprintf( stderr
, " mode=%d,", req
->mode
);
1174 fprintf( stderr
, " wrap=%d", req
->wrap
);
1177 static void dump_read_console_output_reply( const struct read_console_output_reply
*req
)
1179 fprintf( stderr
, " width=%d,", req
->width
);
1180 fprintf( stderr
, " height=%d,", req
->height
);
1181 fprintf( stderr
, " data=" );
1182 dump_varargs_bytes( cur_size
);
1185 static void dump_move_console_output_request( const struct move_console_output_request
*req
)
1187 fprintf( stderr
, " handle=%p,", req
->handle
);
1188 fprintf( stderr
, " x_src=%d,", req
->x_src
);
1189 fprintf( stderr
, " y_src=%d,", req
->y_src
);
1190 fprintf( stderr
, " x_dst=%d,", req
->x_dst
);
1191 fprintf( stderr
, " y_dst=%d,", req
->y_dst
);
1192 fprintf( stderr
, " w=%d,", req
->w
);
1193 fprintf( stderr
, " h=%d", req
->h
);
1196 static void dump_send_console_signal_request( const struct send_console_signal_request
*req
)
1198 fprintf( stderr
, " signal=%d,", req
->signal
);
1199 fprintf( stderr
, " group_id=%08x", req
->group_id
);
1202 static void dump_create_change_notification_request( const struct create_change_notification_request
*req
)
1204 fprintf( stderr
, " subtree=%d,", req
->subtree
);
1205 fprintf( stderr
, " filter=%d", req
->filter
);
1208 static void dump_create_change_notification_reply( const struct create_change_notification_reply
*req
)
1210 fprintf( stderr
, " handle=%p", req
->handle
);
1213 static void dump_create_mapping_request( const struct create_mapping_request
*req
)
1215 fprintf( stderr
, " size_high=%d,", req
->size_high
);
1216 fprintf( stderr
, " size_low=%d,", req
->size_low
);
1217 fprintf( stderr
, " protect=%d,", req
->protect
);
1218 fprintf( stderr
, " access=%08x,", req
->access
);
1219 fprintf( stderr
, " inherit=%d,", req
->inherit
);
1220 fprintf( stderr
, " file_handle=%p,", req
->file_handle
);
1221 fprintf( stderr
, " name=" );
1222 dump_varargs_unicode_str( cur_size
);
1225 static void dump_create_mapping_reply( const struct create_mapping_reply
*req
)
1227 fprintf( stderr
, " handle=%p", req
->handle
);
1230 static void dump_open_mapping_request( const struct open_mapping_request
*req
)
1232 fprintf( stderr
, " access=%08x,", req
->access
);
1233 fprintf( stderr
, " inherit=%d,", req
->inherit
);
1234 fprintf( stderr
, " name=" );
1235 dump_varargs_unicode_str( cur_size
);
1238 static void dump_open_mapping_reply( const struct open_mapping_reply
*req
)
1240 fprintf( stderr
, " handle=%p", req
->handle
);
1243 static void dump_get_mapping_info_request( const struct get_mapping_info_request
*req
)
1245 fprintf( stderr
, " handle=%p", req
->handle
);
1248 static void dump_get_mapping_info_reply( const struct get_mapping_info_reply
*req
)
1250 fprintf( stderr
, " size_high=%d,", req
->size_high
);
1251 fprintf( stderr
, " size_low=%d,", req
->size_low
);
1252 fprintf( stderr
, " protect=%d,", req
->protect
);
1253 fprintf( stderr
, " header_size=%d,", req
->header_size
);
1254 fprintf( stderr
, " base=%p,", req
->base
);
1255 fprintf( stderr
, " shared_file=%p,", req
->shared_file
);
1256 fprintf( stderr
, " shared_size=%d,", req
->shared_size
);
1257 fprintf( stderr
, " drive_type=%d", req
->drive_type
);
1260 static void dump_create_device_request( const struct create_device_request
*req
)
1262 fprintf( stderr
, " access=%08x,", req
->access
);
1263 fprintf( stderr
, " inherit=%d,", req
->inherit
);
1264 fprintf( stderr
, " id=%d", req
->id
);
1267 static void dump_create_device_reply( const struct create_device_reply
*req
)
1269 fprintf( stderr
, " handle=%p", req
->handle
);
1272 static void dump_create_snapshot_request( const struct create_snapshot_request
*req
)
1274 fprintf( stderr
, " inherit=%d,", req
->inherit
);
1275 fprintf( stderr
, " flags=%d,", req
->flags
);
1276 fprintf( stderr
, " pid=%08x", req
->pid
);
1279 static void dump_create_snapshot_reply( const struct create_snapshot_reply
*req
)
1281 fprintf( stderr
, " handle=%p", req
->handle
);
1284 static void dump_next_process_request( const struct next_process_request
*req
)
1286 fprintf( stderr
, " handle=%p,", req
->handle
);
1287 fprintf( stderr
, " reset=%d", req
->reset
);
1290 static void dump_next_process_reply( const struct next_process_reply
*req
)
1292 fprintf( stderr
, " count=%d,", req
->count
);
1293 fprintf( stderr
, " pid=%08x,", req
->pid
);
1294 fprintf( stderr
, " ppid=%08x,", req
->ppid
);
1295 fprintf( stderr
, " heap=%p,", req
->heap
);
1296 fprintf( stderr
, " module=%p,", req
->module
);
1297 fprintf( stderr
, " threads=%d,", req
->threads
);
1298 fprintf( stderr
, " priority=%d,", req
->priority
);
1299 fprintf( stderr
, " filename=" );
1300 dump_varargs_string( cur_size
);
1303 static void dump_next_thread_request( const struct next_thread_request
*req
)
1305 fprintf( stderr
, " handle=%p,", req
->handle
);
1306 fprintf( stderr
, " reset=%d", req
->reset
);
1309 static void dump_next_thread_reply( const struct next_thread_reply
*req
)
1311 fprintf( stderr
, " count=%d,", req
->count
);
1312 fprintf( stderr
, " pid=%08x,", req
->pid
);
1313 fprintf( stderr
, " tid=%08x,", req
->tid
);
1314 fprintf( stderr
, " base_pri=%d,", req
->base_pri
);
1315 fprintf( stderr
, " delta_pri=%d", req
->delta_pri
);
1318 static void dump_next_module_request( const struct next_module_request
*req
)
1320 fprintf( stderr
, " handle=%p,", req
->handle
);
1321 fprintf( stderr
, " reset=%d", req
->reset
);
1324 static void dump_next_module_reply( const struct next_module_reply
*req
)
1326 fprintf( stderr
, " pid=%08x,", req
->pid
);
1327 fprintf( stderr
, " base=%p,", req
->base
);
1328 fprintf( stderr
, " size=%d,", req
->size
);
1329 fprintf( stderr
, " filename=" );
1330 dump_varargs_string( cur_size
);
1333 static void dump_wait_debug_event_request( const struct wait_debug_event_request
*req
)
1335 fprintf( stderr
, " get_handle=%d", req
->get_handle
);
1338 static void dump_wait_debug_event_reply( const struct wait_debug_event_reply
*req
)
1340 fprintf( stderr
, " pid=%08x,", req
->pid
);
1341 fprintf( stderr
, " tid=%08x,", req
->tid
);
1342 fprintf( stderr
, " wait=%p,", req
->wait
);
1343 fprintf( stderr
, " event=" );
1344 dump_varargs_debug_event( cur_size
);
1347 static void dump_queue_exception_event_request( const struct queue_exception_event_request
*req
)
1349 fprintf( stderr
, " first=%d,", req
->first
);
1350 fprintf( stderr
, " record=" );
1351 dump_varargs_exc_event( cur_size
);
1354 static void dump_queue_exception_event_reply( const struct queue_exception_event_reply
*req
)
1356 fprintf( stderr
, " handle=%p", req
->handle
);
1359 static void dump_get_exception_status_request( const struct get_exception_status_request
*req
)
1361 fprintf( stderr
, " handle=%p", req
->handle
);
1364 static void dump_get_exception_status_reply( const struct get_exception_status_reply
*req
)
1366 fprintf( stderr
, " status=%d,", req
->status
);
1367 fprintf( stderr
, " context=" );
1368 dump_varargs_context( cur_size
);
1371 static void dump_output_debug_string_request( const struct output_debug_string_request
*req
)
1373 fprintf( stderr
, " string=%p,", req
->string
);
1374 fprintf( stderr
, " unicode=%d,", req
->unicode
);
1375 fprintf( stderr
, " length=%d", req
->length
);
1378 static void dump_continue_debug_event_request( const struct continue_debug_event_request
*req
)
1380 fprintf( stderr
, " pid=%08x,", req
->pid
);
1381 fprintf( stderr
, " tid=%08x,", req
->tid
);
1382 fprintf( stderr
, " status=%d", req
->status
);
1385 static void dump_debug_process_request( const struct debug_process_request
*req
)
1387 fprintf( stderr
, " pid=%08x,", req
->pid
);
1388 fprintf( stderr
, " attach=%d", req
->attach
);
1391 static void dump_debug_break_request( const struct debug_break_request
*req
)
1393 fprintf( stderr
, " handle=%p", req
->handle
);
1396 static void dump_debug_break_reply( const struct debug_break_reply
*req
)
1398 fprintf( stderr
, " self=%d", req
->self
);
1401 static void dump_set_debugger_kill_on_exit_request( const struct set_debugger_kill_on_exit_request
*req
)
1403 fprintf( stderr
, " kill_on_exit=%d", req
->kill_on_exit
);
1406 static void dump_read_process_memory_request( const struct read_process_memory_request
*req
)
1408 fprintf( stderr
, " handle=%p,", req
->handle
);
1409 fprintf( stderr
, " addr=%p", req
->addr
);
1412 static void dump_read_process_memory_reply( const struct read_process_memory_reply
*req
)
1414 fprintf( stderr
, " data=" );
1415 dump_varargs_bytes( cur_size
);
1418 static void dump_write_process_memory_request( const struct write_process_memory_request
*req
)
1420 fprintf( stderr
, " handle=%p,", req
->handle
);
1421 fprintf( stderr
, " addr=%p,", req
->addr
);
1422 fprintf( stderr
, " first_mask=%08x,", req
->first_mask
);
1423 fprintf( stderr
, " last_mask=%08x,", req
->last_mask
);
1424 fprintf( stderr
, " data=" );
1425 dump_varargs_bytes( cur_size
);
1428 static void dump_create_key_request( const struct create_key_request
*req
)
1430 fprintf( stderr
, " parent=%p,", req
->parent
);
1431 fprintf( stderr
, " access=%08x,", req
->access
);
1432 fprintf( stderr
, " options=%08x,", req
->options
);
1433 fprintf( stderr
, " modif=%ld,", req
->modif
);
1434 fprintf( stderr
, " namelen=%d,", req
->namelen
);
1435 fprintf( stderr
, " name=" );
1436 dump_varargs_unicode_str( min(cur_size
,req
->namelen
) );
1437 fputc( ',', stderr
);
1438 fprintf( stderr
, " class=" );
1439 dump_varargs_unicode_str( cur_size
);
1442 static void dump_create_key_reply( const struct create_key_reply
*req
)
1444 fprintf( stderr
, " hkey=%p,", req
->hkey
);
1445 fprintf( stderr
, " created=%d", req
->created
);
1448 static void dump_open_key_request( const struct open_key_request
*req
)
1450 fprintf( stderr
, " parent=%p,", req
->parent
);
1451 fprintf( stderr
, " access=%08x,", req
->access
);
1452 fprintf( stderr
, " name=" );
1453 dump_varargs_unicode_str( cur_size
);
1456 static void dump_open_key_reply( const struct open_key_reply
*req
)
1458 fprintf( stderr
, " hkey=%p", req
->hkey
);
1461 static void dump_delete_key_request( const struct delete_key_request
*req
)
1463 fprintf( stderr
, " hkey=%p", req
->hkey
);
1466 static void dump_enum_key_request( const struct enum_key_request
*req
)
1468 fprintf( stderr
, " hkey=%p,", req
->hkey
);
1469 fprintf( stderr
, " index=%d,", req
->index
);
1470 fprintf( stderr
, " info_class=%d", req
->info_class
);
1473 static void dump_enum_key_reply( const struct enum_key_reply
*req
)
1475 fprintf( stderr
, " subkeys=%d,", req
->subkeys
);
1476 fprintf( stderr
, " max_subkey=%d,", req
->max_subkey
);
1477 fprintf( stderr
, " max_class=%d,", req
->max_class
);
1478 fprintf( stderr
, " values=%d,", req
->values
);
1479 fprintf( stderr
, " max_value=%d,", req
->max_value
);
1480 fprintf( stderr
, " max_data=%d,", req
->max_data
);
1481 fprintf( stderr
, " modif=%ld,", req
->modif
);
1482 fprintf( stderr
, " total=%d,", req
->total
);
1483 fprintf( stderr
, " namelen=%d,", req
->namelen
);
1484 fprintf( stderr
, " name=" );
1485 dump_varargs_unicode_str( min(cur_size
,req
->namelen
) );
1486 fputc( ',', stderr
);
1487 fprintf( stderr
, " class=" );
1488 dump_varargs_unicode_str( cur_size
);
1491 static void dump_set_key_value_request( const struct set_key_value_request
*req
)
1493 fprintf( stderr
, " hkey=%p,", req
->hkey
);
1494 fprintf( stderr
, " type=%d,", req
->type
);
1495 fprintf( stderr
, " namelen=%d,", req
->namelen
);
1496 fprintf( stderr
, " name=" );
1497 dump_varargs_unicode_str( min(cur_size
,req
->namelen
) );
1498 fputc( ',', stderr
);
1499 fprintf( stderr
, " data=" );
1500 dump_varargs_bytes( cur_size
);
1503 static void dump_get_key_value_request( const struct get_key_value_request
*req
)
1505 fprintf( stderr
, " hkey=%p,", req
->hkey
);
1506 fprintf( stderr
, " name=" );
1507 dump_varargs_unicode_str( cur_size
);
1510 static void dump_get_key_value_reply( const struct get_key_value_reply
*req
)
1512 fprintf( stderr
, " type=%d,", req
->type
);
1513 fprintf( stderr
, " total=%d,", req
->total
);
1514 fprintf( stderr
, " data=" );
1515 dump_varargs_bytes( cur_size
);
1518 static void dump_enum_key_value_request( const struct enum_key_value_request
*req
)
1520 fprintf( stderr
, " hkey=%p,", req
->hkey
);
1521 fprintf( stderr
, " index=%d,", req
->index
);
1522 fprintf( stderr
, " info_class=%d", req
->info_class
);
1525 static void dump_enum_key_value_reply( const struct enum_key_value_reply
*req
)
1527 fprintf( stderr
, " type=%d,", req
->type
);
1528 fprintf( stderr
, " total=%d,", req
->total
);
1529 fprintf( stderr
, " namelen=%d,", req
->namelen
);
1530 fprintf( stderr
, " name=" );
1531 dump_varargs_unicode_str( min(cur_size
,req
->namelen
) );
1532 fputc( ',', stderr
);
1533 fprintf( stderr
, " data=" );
1534 dump_varargs_bytes( cur_size
);
1537 static void dump_delete_key_value_request( const struct delete_key_value_request
*req
)
1539 fprintf( stderr
, " hkey=%p,", req
->hkey
);
1540 fprintf( stderr
, " name=" );
1541 dump_varargs_unicode_str( cur_size
);
1544 static void dump_load_registry_request( const struct load_registry_request
*req
)
1546 fprintf( stderr
, " hkey=%p,", req
->hkey
);
1547 fprintf( stderr
, " file=%p,", req
->file
);
1548 fprintf( stderr
, " name=" );
1549 dump_varargs_unicode_str( cur_size
);
1552 static void dump_save_registry_request( const struct save_registry_request
*req
)
1554 fprintf( stderr
, " hkey=%p,", req
->hkey
);
1555 fprintf( stderr
, " file=%p", req
->file
);
1558 static void dump_save_registry_atexit_request( const struct save_registry_atexit_request
*req
)
1560 fprintf( stderr
, " hkey=%p,", req
->hkey
);
1561 fprintf( stderr
, " file=" );
1562 dump_varargs_string( cur_size
);
1565 static void dump_set_registry_levels_request( const struct set_registry_levels_request
*req
)
1567 fprintf( stderr
, " current=%d,", req
->current
);
1568 fprintf( stderr
, " saving=%d,", req
->saving
);
1569 fprintf( stderr
, " period=%d", req
->period
);
1572 static void dump_set_registry_notification_request( const struct set_registry_notification_request
*req
)
1574 fprintf( stderr
, " hkey=%p,", req
->hkey
);
1575 fprintf( stderr
, " event=%p,", req
->event
);
1576 fprintf( stderr
, " subtree=%d,", req
->subtree
);
1577 fprintf( stderr
, " filter=%08x", req
->filter
);
1580 static void dump_create_timer_request( const struct create_timer_request
*req
)
1582 fprintf( stderr
, " inherit=%d,", req
->inherit
);
1583 fprintf( stderr
, " manual=%d,", req
->manual
);
1584 fprintf( stderr
, " name=" );
1585 dump_varargs_unicode_str( cur_size
);
1588 static void dump_create_timer_reply( const struct create_timer_reply
*req
)
1590 fprintf( stderr
, " handle=%p", req
->handle
);
1593 static void dump_open_timer_request( const struct open_timer_request
*req
)
1595 fprintf( stderr
, " access=%08x,", req
->access
);
1596 fprintf( stderr
, " inherit=%d,", req
->inherit
);
1597 fprintf( stderr
, " name=" );
1598 dump_varargs_unicode_str( cur_size
);
1601 static void dump_open_timer_reply( const struct open_timer_reply
*req
)
1603 fprintf( stderr
, " handle=%p", req
->handle
);
1606 static void dump_set_timer_request( const struct set_timer_request
*req
)
1608 fprintf( stderr
, " handle=%p,", req
->handle
);
1609 fprintf( stderr
, " sec=%d,", req
->sec
);
1610 fprintf( stderr
, " usec=%d,", req
->usec
);
1611 fprintf( stderr
, " period=%d,", req
->period
);
1612 fprintf( stderr
, " callback=%p,", req
->callback
);
1613 fprintf( stderr
, " arg=%p", req
->arg
);
1616 static void dump_cancel_timer_request( const struct cancel_timer_request
*req
)
1618 fprintf( stderr
, " handle=%p", req
->handle
);
1621 static void dump_get_thread_context_request( const struct get_thread_context_request
*req
)
1623 fprintf( stderr
, " handle=%p,", req
->handle
);
1624 fprintf( stderr
, " flags=%08x", req
->flags
);
1627 static void dump_get_thread_context_reply( const struct get_thread_context_reply
*req
)
1629 fprintf( stderr
, " context=" );
1630 dump_varargs_context( cur_size
);
1633 static void dump_set_thread_context_request( const struct set_thread_context_request
*req
)
1635 fprintf( stderr
, " handle=%p,", req
->handle
);
1636 fprintf( stderr
, " flags=%08x,", req
->flags
);
1637 fprintf( stderr
, " context=" );
1638 dump_varargs_context( cur_size
);
1641 static void dump_get_selector_entry_request( const struct get_selector_entry_request
*req
)
1643 fprintf( stderr
, " handle=%p,", req
->handle
);
1644 fprintf( stderr
, " entry=%d", req
->entry
);
1647 static void dump_get_selector_entry_reply( const struct get_selector_entry_reply
*req
)
1649 fprintf( stderr
, " base=%08x,", req
->base
);
1650 fprintf( stderr
, " limit=%08x,", req
->limit
);
1651 fprintf( stderr
, " flags=%02x", req
->flags
);
1654 static void dump_add_atom_request( const struct add_atom_request
*req
)
1656 fprintf( stderr
, " local=%d,", req
->local
);
1657 fprintf( stderr
, " name=" );
1658 dump_varargs_unicode_str( cur_size
);
1661 static void dump_add_atom_reply( const struct add_atom_reply
*req
)
1663 fprintf( stderr
, " atom=%04x", req
->atom
);
1666 static void dump_delete_atom_request( const struct delete_atom_request
*req
)
1668 fprintf( stderr
, " atom=%04x,", req
->atom
);
1669 fprintf( stderr
, " local=%d", req
->local
);
1672 static void dump_find_atom_request( const struct find_atom_request
*req
)
1674 fprintf( stderr
, " local=%d,", req
->local
);
1675 fprintf( stderr
, " name=" );
1676 dump_varargs_unicode_str( cur_size
);
1679 static void dump_find_atom_reply( const struct find_atom_reply
*req
)
1681 fprintf( stderr
, " atom=%04x", req
->atom
);
1684 static void dump_get_atom_name_request( const struct get_atom_name_request
*req
)
1686 fprintf( stderr
, " atom=%04x,", req
->atom
);
1687 fprintf( stderr
, " local=%d", req
->local
);
1690 static void dump_get_atom_name_reply( const struct get_atom_name_reply
*req
)
1692 fprintf( stderr
, " count=%d,", req
->count
);
1693 fprintf( stderr
, " name=" );
1694 dump_varargs_unicode_str( cur_size
);
1697 static void dump_init_atom_table_request( const struct init_atom_table_request
*req
)
1699 fprintf( stderr
, " entries=%d", req
->entries
);
1702 static void dump_get_msg_queue_request( const struct get_msg_queue_request
*req
)
1706 static void dump_get_msg_queue_reply( const struct get_msg_queue_reply
*req
)
1708 fprintf( stderr
, " handle=%p", req
->handle
);
1711 static void dump_set_queue_mask_request( const struct set_queue_mask_request
*req
)
1713 fprintf( stderr
, " wake_mask=%08x,", req
->wake_mask
);
1714 fprintf( stderr
, " changed_mask=%08x,", req
->changed_mask
);
1715 fprintf( stderr
, " skip_wait=%d", req
->skip_wait
);
1718 static void dump_set_queue_mask_reply( const struct set_queue_mask_reply
*req
)
1720 fprintf( stderr
, " wake_bits=%08x,", req
->wake_bits
);
1721 fprintf( stderr
, " changed_bits=%08x", req
->changed_bits
);
1724 static void dump_get_queue_status_request( const struct get_queue_status_request
*req
)
1726 fprintf( stderr
, " clear=%d", req
->clear
);
1729 static void dump_get_queue_status_reply( const struct get_queue_status_reply
*req
)
1731 fprintf( stderr
, " wake_bits=%08x,", req
->wake_bits
);
1732 fprintf( stderr
, " changed_bits=%08x", req
->changed_bits
);
1735 static void dump_wait_input_idle_request( const struct wait_input_idle_request
*req
)
1737 fprintf( stderr
, " handle=%p,", req
->handle
);
1738 fprintf( stderr
, " timeout=%d", req
->timeout
);
1741 static void dump_wait_input_idle_reply( const struct wait_input_idle_reply
*req
)
1743 fprintf( stderr
, " event=%p", req
->event
);
1746 static void dump_send_message_request( const struct send_message_request
*req
)
1748 fprintf( stderr
, " id=%08x,", req
->id
);
1749 fprintf( stderr
, " type=%d,", req
->type
);
1750 fprintf( stderr
, " win=%p,", req
->win
);
1751 fprintf( stderr
, " msg=%08x,", req
->msg
);
1752 fprintf( stderr
, " wparam=%08x,", req
->wparam
);
1753 fprintf( stderr
, " lparam=%08x,", req
->lparam
);
1754 fprintf( stderr
, " x=%d,", req
->x
);
1755 fprintf( stderr
, " y=%d,", req
->y
);
1756 fprintf( stderr
, " time=%08x,", req
->time
);
1757 fprintf( stderr
, " info=%08x,", req
->info
);
1758 fprintf( stderr
, " timeout=%d,", req
->timeout
);
1759 fprintf( stderr
, " data=" );
1760 dump_varargs_bytes( cur_size
);
1763 static void dump_get_message_request( const struct get_message_request
*req
)
1765 fprintf( stderr
, " flags=%d,", req
->flags
);
1766 fprintf( stderr
, " get_win=%p,", req
->get_win
);
1767 fprintf( stderr
, " get_first=%08x,", req
->get_first
);
1768 fprintf( stderr
, " get_last=%08x", req
->get_last
);
1771 static void dump_get_message_reply( const struct get_message_reply
*req
)
1773 fprintf( stderr
, " type=%d,", req
->type
);
1774 fprintf( stderr
, " win=%p,", req
->win
);
1775 fprintf( stderr
, " msg=%08x,", req
->msg
);
1776 fprintf( stderr
, " wparam=%08x,", req
->wparam
);
1777 fprintf( stderr
, " lparam=%08x,", req
->lparam
);
1778 fprintf( stderr
, " x=%d,", req
->x
);
1779 fprintf( stderr
, " y=%d,", req
->y
);
1780 fprintf( stderr
, " time=%08x,", req
->time
);
1781 fprintf( stderr
, " info=%08x,", req
->info
);
1782 fprintf( stderr
, " total=%d,", req
->total
);
1783 fprintf( stderr
, " data=" );
1784 dump_varargs_bytes( cur_size
);
1787 static void dump_reply_message_request( const struct reply_message_request
*req
)
1789 fprintf( stderr
, " result=%08x,", req
->result
);
1790 fprintf( stderr
, " remove=%d,", req
->remove
);
1791 fprintf( stderr
, " data=" );
1792 dump_varargs_bytes( cur_size
);
1795 static void dump_get_message_reply_request( const struct get_message_reply_request
*req
)
1797 fprintf( stderr
, " cancel=%d", req
->cancel
);
1800 static void dump_get_message_reply_reply( const struct get_message_reply_reply
*req
)
1802 fprintf( stderr
, " result=%08x,", req
->result
);
1803 fprintf( stderr
, " data=" );
1804 dump_varargs_bytes( cur_size
);
1807 static void dump_set_win_timer_request( const struct set_win_timer_request
*req
)
1809 fprintf( stderr
, " win=%p,", req
->win
);
1810 fprintf( stderr
, " msg=%08x,", req
->msg
);
1811 fprintf( stderr
, " id=%08x,", req
->id
);
1812 fprintf( stderr
, " rate=%08x,", req
->rate
);
1813 fprintf( stderr
, " lparam=%08x", req
->lparam
);
1816 static void dump_kill_win_timer_request( const struct kill_win_timer_request
*req
)
1818 fprintf( stderr
, " win=%p,", req
->win
);
1819 fprintf( stderr
, " msg=%08x,", req
->msg
);
1820 fprintf( stderr
, " id=%08x", req
->id
);
1823 static void dump_create_serial_request( const struct create_serial_request
*req
)
1825 fprintf( stderr
, " access=%08x,", req
->access
);
1826 fprintf( stderr
, " inherit=%d,", req
->inherit
);
1827 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1828 fprintf( stderr
, " sharing=%08x,", req
->sharing
);
1829 fprintf( stderr
, " name=" );
1830 dump_varargs_string( cur_size
);
1833 static void dump_create_serial_reply( const struct create_serial_reply
*req
)
1835 fprintf( stderr
, " handle=%p", req
->handle
);
1838 static void dump_get_serial_info_request( const struct get_serial_info_request
*req
)
1840 fprintf( stderr
, " handle=%p", req
->handle
);
1843 static void dump_get_serial_info_reply( const struct get_serial_info_reply
*req
)
1845 fprintf( stderr
, " readinterval=%08x,", req
->readinterval
);
1846 fprintf( stderr
, " readconst=%08x,", req
->readconst
);
1847 fprintf( stderr
, " readmult=%08x,", req
->readmult
);
1848 fprintf( stderr
, " writeconst=%08x,", req
->writeconst
);
1849 fprintf( stderr
, " writemult=%08x,", req
->writemult
);
1850 fprintf( stderr
, " eventmask=%08x,", req
->eventmask
);
1851 fprintf( stderr
, " commerror=%08x", req
->commerror
);
1854 static void dump_set_serial_info_request( const struct set_serial_info_request
*req
)
1856 fprintf( stderr
, " handle=%p,", req
->handle
);
1857 fprintf( stderr
, " flags=%d,", req
->flags
);
1858 fprintf( stderr
, " readinterval=%08x,", req
->readinterval
);
1859 fprintf( stderr
, " readconst=%08x,", req
->readconst
);
1860 fprintf( stderr
, " readmult=%08x,", req
->readmult
);
1861 fprintf( stderr
, " writeconst=%08x,", req
->writeconst
);
1862 fprintf( stderr
, " writemult=%08x,", req
->writemult
);
1863 fprintf( stderr
, " eventmask=%08x,", req
->eventmask
);
1864 fprintf( stderr
, " commerror=%08x", req
->commerror
);
1867 static void dump_register_async_request( const struct register_async_request
*req
)
1869 fprintf( stderr
, " handle=%p,", req
->handle
);
1870 fprintf( stderr
, " type=%d,", req
->type
);
1871 fprintf( stderr
, " overlapped=%p,", req
->overlapped
);
1872 fprintf( stderr
, " count=%d,", req
->count
);
1873 fprintf( stderr
, " status=%08x", req
->status
);
1876 static void dump_create_named_pipe_request( const struct create_named_pipe_request
*req
)
1878 fprintf( stderr
, " openmode=%08x,", req
->openmode
);
1879 fprintf( stderr
, " pipemode=%08x,", req
->pipemode
);
1880 fprintf( stderr
, " maxinstances=%08x,", req
->maxinstances
);
1881 fprintf( stderr
, " outsize=%08x,", req
->outsize
);
1882 fprintf( stderr
, " insize=%08x,", req
->insize
);
1883 fprintf( stderr
, " timeout=%08x,", req
->timeout
);
1884 fprintf( stderr
, " name=" );
1885 dump_varargs_unicode_str( cur_size
);
1888 static void dump_create_named_pipe_reply( const struct create_named_pipe_reply
*req
)
1890 fprintf( stderr
, " handle=%p", req
->handle
);
1893 static void dump_open_named_pipe_request( const struct open_named_pipe_request
*req
)
1895 fprintf( stderr
, " access=%08x,", req
->access
);
1896 fprintf( stderr
, " name=" );
1897 dump_varargs_unicode_str( cur_size
);
1900 static void dump_open_named_pipe_reply( const struct open_named_pipe_reply
*req
)
1902 fprintf( stderr
, " handle=%p", req
->handle
);
1905 static void dump_connect_named_pipe_request( const struct connect_named_pipe_request
*req
)
1907 fprintf( stderr
, " handle=%p,", req
->handle
);
1908 fprintf( stderr
, " overlapped=%p,", req
->overlapped
);
1909 fprintf( stderr
, " func=%p", req
->func
);
1912 static void dump_wait_named_pipe_request( const struct wait_named_pipe_request
*req
)
1914 fprintf( stderr
, " timeout=%08x,", req
->timeout
);
1915 fprintf( stderr
, " overlapped=%p,", req
->overlapped
);
1916 fprintf( stderr
, " func=%p,", req
->func
);
1917 fprintf( stderr
, " name=" );
1918 dump_varargs_unicode_str( cur_size
);
1921 static void dump_disconnect_named_pipe_request( const struct disconnect_named_pipe_request
*req
)
1923 fprintf( stderr
, " handle=%p", req
->handle
);
1926 static void dump_get_named_pipe_info_request( const struct get_named_pipe_info_request
*req
)
1928 fprintf( stderr
, " handle=%p", req
->handle
);
1931 static void dump_get_named_pipe_info_reply( const struct get_named_pipe_info_reply
*req
)
1933 fprintf( stderr
, " flags=%08x,", req
->flags
);
1934 fprintf( stderr
, " maxinstances=%08x,", req
->maxinstances
);
1935 fprintf( stderr
, " outsize=%08x,", req
->outsize
);
1936 fprintf( stderr
, " insize=%08x", req
->insize
);
1939 static void dump_create_smb_request( const struct create_smb_request
*req
)
1941 fprintf( stderr
, " fd=%d,", req
->fd
);
1942 fprintf( stderr
, " tree_id=%08x,", req
->tree_id
);
1943 fprintf( stderr
, " user_id=%08x,", req
->user_id
);
1944 fprintf( stderr
, " file_id=%08x,", req
->file_id
);
1945 fprintf( stderr
, " dialect=%08x", req
->dialect
);
1948 static void dump_create_smb_reply( const struct create_smb_reply
*req
)
1950 fprintf( stderr
, " handle=%p", req
->handle
);
1953 static void dump_get_smb_info_request( const struct get_smb_info_request
*req
)
1955 fprintf( stderr
, " handle=%p,", req
->handle
);
1956 fprintf( stderr
, " flags=%08x,", req
->flags
);
1957 fprintf( stderr
, " offset=%08x", req
->offset
);
1960 static void dump_get_smb_info_reply( const struct get_smb_info_reply
*req
)
1962 fprintf( stderr
, " tree_id=%08x,", req
->tree_id
);
1963 fprintf( stderr
, " user_id=%08x,", req
->user_id
);
1964 fprintf( stderr
, " dialect=%08x,", req
->dialect
);
1965 fprintf( stderr
, " file_id=%08x,", req
->file_id
);
1966 fprintf( stderr
, " offset=%08x", req
->offset
);
1969 static void dump_create_window_request( const struct create_window_request
*req
)
1971 fprintf( stderr
, " parent=%p,", req
->parent
);
1972 fprintf( stderr
, " owner=%p,", req
->owner
);
1973 fprintf( stderr
, " atom=%04x", req
->atom
);
1976 static void dump_create_window_reply( const struct create_window_reply
*req
)
1978 fprintf( stderr
, " handle=%p", req
->handle
);
1981 static void dump_link_window_request( const struct link_window_request
*req
)
1983 fprintf( stderr
, " handle=%p,", req
->handle
);
1984 fprintf( stderr
, " parent=%p,", req
->parent
);
1985 fprintf( stderr
, " previous=%p", req
->previous
);
1988 static void dump_link_window_reply( const struct link_window_reply
*req
)
1990 fprintf( stderr
, " full_parent=%p", req
->full_parent
);
1993 static void dump_destroy_window_request( const struct destroy_window_request
*req
)
1995 fprintf( stderr
, " handle=%p", req
->handle
);
1998 static void dump_set_window_owner_request( const struct set_window_owner_request
*req
)
2000 fprintf( stderr
, " handle=%p,", req
->handle
);
2001 fprintf( stderr
, " owner=%p", req
->owner
);
2004 static void dump_set_window_owner_reply( const struct set_window_owner_reply
*req
)
2006 fprintf( stderr
, " full_owner=%p,", req
->full_owner
);
2007 fprintf( stderr
, " prev_owner=%p", req
->prev_owner
);
2010 static void dump_get_window_info_request( const struct get_window_info_request
*req
)
2012 fprintf( stderr
, " handle=%p", req
->handle
);
2015 static void dump_get_window_info_reply( const struct get_window_info_reply
*req
)
2017 fprintf( stderr
, " full_handle=%p,", req
->full_handle
);
2018 fprintf( stderr
, " last_active=%p,", req
->last_active
);
2019 fprintf( stderr
, " pid=%08x,", req
->pid
);
2020 fprintf( stderr
, " tid=%08x,", req
->tid
);
2021 fprintf( stderr
, " atom=%04x", req
->atom
);
2024 static void dump_set_window_info_request( const struct set_window_info_request
*req
)
2026 fprintf( stderr
, " handle=%p,", req
->handle
);
2027 fprintf( stderr
, " flags=%08x,", req
->flags
);
2028 fprintf( stderr
, " style=%08x,", req
->style
);
2029 fprintf( stderr
, " ex_style=%08x,", req
->ex_style
);
2030 fprintf( stderr
, " id=%08x,", req
->id
);
2031 fprintf( stderr
, " instance=%p,", req
->instance
);
2032 fprintf( stderr
, " user_data=%p", req
->user_data
);
2035 static void dump_set_window_info_reply( const struct set_window_info_reply
*req
)
2037 fprintf( stderr
, " old_style=%08x,", req
->old_style
);
2038 fprintf( stderr
, " old_ex_style=%08x,", req
->old_ex_style
);
2039 fprintf( stderr
, " old_id=%08x,", req
->old_id
);
2040 fprintf( stderr
, " old_instance=%p,", req
->old_instance
);
2041 fprintf( stderr
, " old_user_data=%p", req
->old_user_data
);
2044 static void dump_get_window_parents_request( const struct get_window_parents_request
*req
)
2046 fprintf( stderr
, " handle=%p", req
->handle
);
2049 static void dump_get_window_parents_reply( const struct get_window_parents_reply
*req
)
2051 fprintf( stderr
, " count=%d,", req
->count
);
2052 fprintf( stderr
, " parents=" );
2053 dump_varargs_user_handles( cur_size
);
2056 static void dump_get_window_children_request( const struct get_window_children_request
*req
)
2058 fprintf( stderr
, " parent=%p,", req
->parent
);
2059 fprintf( stderr
, " atom=%04x,", req
->atom
);
2060 fprintf( stderr
, " tid=%08x", req
->tid
);
2063 static void dump_get_window_children_reply( const struct get_window_children_reply
*req
)
2065 fprintf( stderr
, " count=%d,", req
->count
);
2066 fprintf( stderr
, " children=" );
2067 dump_varargs_user_handles( cur_size
);
2070 static void dump_get_window_tree_request( const struct get_window_tree_request
*req
)
2072 fprintf( stderr
, " handle=%p", req
->handle
);
2075 static void dump_get_window_tree_reply( const struct get_window_tree_reply
*req
)
2077 fprintf( stderr
, " parent=%p,", req
->parent
);
2078 fprintf( stderr
, " owner=%p,", req
->owner
);
2079 fprintf( stderr
, " next_sibling=%p,", req
->next_sibling
);
2080 fprintf( stderr
, " prev_sibling=%p,", req
->prev_sibling
);
2081 fprintf( stderr
, " first_sibling=%p,", req
->first_sibling
);
2082 fprintf( stderr
, " last_sibling=%p,", req
->last_sibling
);
2083 fprintf( stderr
, " first_child=%p,", req
->first_child
);
2084 fprintf( stderr
, " last_child=%p", req
->last_child
);
2087 static void dump_set_window_rectangles_request( const struct set_window_rectangles_request
*req
)
2089 fprintf( stderr
, " handle=%p,", req
->handle
);
2090 fprintf( stderr
, " window=" );
2091 dump_rectangle( &req
->window
);
2092 fprintf( stderr
, "," );
2093 fprintf( stderr
, " client=" );
2094 dump_rectangle( &req
->client
);
2097 static void dump_get_window_rectangles_request( const struct get_window_rectangles_request
*req
)
2099 fprintf( stderr
, " handle=%p", req
->handle
);
2102 static void dump_get_window_rectangles_reply( const struct get_window_rectangles_reply
*req
)
2104 fprintf( stderr
, " window=" );
2105 dump_rectangle( &req
->window
);
2106 fprintf( stderr
, "," );
2107 fprintf( stderr
, " client=" );
2108 dump_rectangle( &req
->client
);
2111 static void dump_get_window_text_request( const struct get_window_text_request
*req
)
2113 fprintf( stderr
, " handle=%p", req
->handle
);
2116 static void dump_get_window_text_reply( const struct get_window_text_reply
*req
)
2118 fprintf( stderr
, " text=" );
2119 dump_varargs_unicode_str( cur_size
);
2122 static void dump_set_window_text_request( const struct set_window_text_request
*req
)
2124 fprintf( stderr
, " handle=%p,", req
->handle
);
2125 fprintf( stderr
, " text=" );
2126 dump_varargs_unicode_str( cur_size
);
2129 static void dump_inc_window_paint_count_request( const struct inc_window_paint_count_request
*req
)
2131 fprintf( stderr
, " handle=%p,", req
->handle
);
2132 fprintf( stderr
, " incr=%d", req
->incr
);
2135 static void dump_get_windows_offset_request( const struct get_windows_offset_request
*req
)
2137 fprintf( stderr
, " from=%p,", req
->from
);
2138 fprintf( stderr
, " to=%p", req
->to
);
2141 static void dump_get_windows_offset_reply( const struct get_windows_offset_reply
*req
)
2143 fprintf( stderr
, " x=%d,", req
->x
);
2144 fprintf( stderr
, " y=%d", req
->y
);
2147 static void dump_set_window_property_request( const struct set_window_property_request
*req
)
2149 fprintf( stderr
, " window=%p,", req
->window
);
2150 fprintf( stderr
, " atom=%04x,", req
->atom
);
2151 fprintf( stderr
, " string=%d,", req
->string
);
2152 fprintf( stderr
, " handle=%p", req
->handle
);
2155 static void dump_remove_window_property_request( const struct remove_window_property_request
*req
)
2157 fprintf( stderr
, " window=%p,", req
->window
);
2158 fprintf( stderr
, " atom=%04x", req
->atom
);
2161 static void dump_remove_window_property_reply( const struct remove_window_property_reply
*req
)
2163 fprintf( stderr
, " handle=%p", req
->handle
);
2166 static void dump_get_window_property_request( const struct get_window_property_request
*req
)
2168 fprintf( stderr
, " window=%p,", req
->window
);
2169 fprintf( stderr
, " atom=%04x", req
->atom
);
2172 static void dump_get_window_property_reply( const struct get_window_property_reply
*req
)
2174 fprintf( stderr
, " handle=%p", req
->handle
);
2177 static void dump_get_window_properties_request( const struct get_window_properties_request
*req
)
2179 fprintf( stderr
, " window=%p", req
->window
);
2182 static void dump_get_window_properties_reply( const struct get_window_properties_reply
*req
)
2184 fprintf( stderr
, " total=%d,", req
->total
);
2185 fprintf( stderr
, " props=" );
2186 dump_varargs_properties( cur_size
);
2189 static void dump_attach_thread_input_request( const struct attach_thread_input_request
*req
)
2191 fprintf( stderr
, " tid_from=%08x,", req
->tid_from
);
2192 fprintf( stderr
, " tid_to=%08x,", req
->tid_to
);
2193 fprintf( stderr
, " attach=%d", req
->attach
);
2196 static void dump_get_thread_input_request( const struct get_thread_input_request
*req
)
2198 fprintf( stderr
, " tid=%08x", req
->tid
);
2201 static void dump_get_thread_input_reply( const struct get_thread_input_reply
*req
)
2203 fprintf( stderr
, " focus=%p,", req
->focus
);
2204 fprintf( stderr
, " capture=%p,", req
->capture
);
2205 fprintf( stderr
, " active=%p,", req
->active
);
2206 fprintf( stderr
, " foreground=%p,", req
->foreground
);
2207 fprintf( stderr
, " menu_owner=%p,", req
->menu_owner
);
2208 fprintf( stderr
, " move_size=%p,", req
->move_size
);
2209 fprintf( stderr
, " caret=%p,", req
->caret
);
2210 fprintf( stderr
, " rect=" );
2211 dump_rectangle( &req
->rect
);
2214 static void dump_set_foreground_window_request( const struct set_foreground_window_request
*req
)
2216 fprintf( stderr
, " handle=%p", req
->handle
);
2219 static void dump_set_foreground_window_reply( const struct set_foreground_window_reply
*req
)
2221 fprintf( stderr
, " previous=%p,", req
->previous
);
2222 fprintf( stderr
, " send_msg_old=%d,", req
->send_msg_old
);
2223 fprintf( stderr
, " send_msg_new=%d", req
->send_msg_new
);
2226 static void dump_set_focus_window_request( const struct set_focus_window_request
*req
)
2228 fprintf( stderr
, " handle=%p", req
->handle
);
2231 static void dump_set_focus_window_reply( const struct set_focus_window_reply
*req
)
2233 fprintf( stderr
, " previous=%p", req
->previous
);
2236 static void dump_set_active_window_request( const struct set_active_window_request
*req
)
2238 fprintf( stderr
, " handle=%p", req
->handle
);
2241 static void dump_set_active_window_reply( const struct set_active_window_reply
*req
)
2243 fprintf( stderr
, " previous=%p", req
->previous
);
2246 static void dump_set_capture_window_request( const struct set_capture_window_request
*req
)
2248 fprintf( stderr
, " handle=%p,", req
->handle
);
2249 fprintf( stderr
, " flags=%08x", req
->flags
);
2252 static void dump_set_capture_window_reply( const struct set_capture_window_reply
*req
)
2254 fprintf( stderr
, " previous=%p,", req
->previous
);
2255 fprintf( stderr
, " full_handle=%p", req
->full_handle
);
2258 static void dump_set_caret_window_request( const struct set_caret_window_request
*req
)
2260 fprintf( stderr
, " handle=%p,", req
->handle
);
2261 fprintf( stderr
, " width=%d,", req
->width
);
2262 fprintf( stderr
, " height=%d", req
->height
);
2265 static void dump_set_caret_window_reply( const struct set_caret_window_reply
*req
)
2267 fprintf( stderr
, " previous=%p,", req
->previous
);
2268 fprintf( stderr
, " old_rect=" );
2269 dump_rectangle( &req
->old_rect
);
2270 fprintf( stderr
, "," );
2271 fprintf( stderr
, " old_hide=%d,", req
->old_hide
);
2272 fprintf( stderr
, " old_state=%d", req
->old_state
);
2275 static void dump_set_caret_info_request( const struct set_caret_info_request
*req
)
2277 fprintf( stderr
, " flags=%08x,", req
->flags
);
2278 fprintf( stderr
, " handle=%p,", req
->handle
);
2279 fprintf( stderr
, " x=%d,", req
->x
);
2280 fprintf( stderr
, " y=%d,", req
->y
);
2281 fprintf( stderr
, " hide=%d,", req
->hide
);
2282 fprintf( stderr
, " state=%d", req
->state
);
2285 static void dump_set_caret_info_reply( const struct set_caret_info_reply
*req
)
2287 fprintf( stderr
, " full_handle=%p,", req
->full_handle
);
2288 fprintf( stderr
, " old_rect=" );
2289 dump_rectangle( &req
->old_rect
);
2290 fprintf( stderr
, "," );
2291 fprintf( stderr
, " old_hide=%d,", req
->old_hide
);
2292 fprintf( stderr
, " old_state=%d", req
->old_state
);
2295 static void dump_set_hook_request( const struct set_hook_request
*req
)
2297 fprintf( stderr
, " id=%d,", req
->id
);
2298 fprintf( stderr
, " tid=%08x,", req
->tid
);
2299 fprintf( stderr
, " proc=%p,", req
->proc
);
2300 fprintf( stderr
, " unicode=%d,", req
->unicode
);
2301 fprintf( stderr
, " module=" );
2302 dump_varargs_unicode_str( cur_size
);
2305 static void dump_set_hook_reply( const struct set_hook_reply
*req
)
2307 fprintf( stderr
, " handle=%p", req
->handle
);
2310 static void dump_remove_hook_request( const struct remove_hook_request
*req
)
2312 fprintf( stderr
, " handle=%p,", req
->handle
);
2313 fprintf( stderr
, " id=%d,", req
->id
);
2314 fprintf( stderr
, " proc=%p", req
->proc
);
2317 static void dump_start_hook_chain_request( const struct start_hook_chain_request
*req
)
2319 fprintf( stderr
, " id=%d", req
->id
);
2322 static void dump_start_hook_chain_reply( const struct start_hook_chain_reply
*req
)
2324 fprintf( stderr
, " handle=%p,", req
->handle
);
2325 fprintf( stderr
, " proc=%p,", req
->proc
);
2326 fprintf( stderr
, " unicode=%d,", req
->unicode
);
2327 fprintf( stderr
, " module=" );
2328 dump_varargs_unicode_str( cur_size
);
2331 static void dump_finish_hook_chain_request( const struct finish_hook_chain_request
*req
)
2333 fprintf( stderr
, " id=%d", req
->id
);
2336 static void dump_get_next_hook_request( const struct get_next_hook_request
*req
)
2338 fprintf( stderr
, " handle=%p", req
->handle
);
2341 static void dump_get_next_hook_reply( const struct get_next_hook_reply
*req
)
2343 fprintf( stderr
, " next=%p,", req
->next
);
2344 fprintf( stderr
, " id=%d,", req
->id
);
2345 fprintf( stderr
, " proc=%p,", req
->proc
);
2346 fprintf( stderr
, " prev_unicode=%d,", req
->prev_unicode
);
2347 fprintf( stderr
, " next_unicode=%d,", req
->next_unicode
);
2348 fprintf( stderr
, " module=" );
2349 dump_varargs_unicode_str( cur_size
);
2352 static const dump_func req_dumpers
[REQ_NB_REQUESTS
] = {
2353 (dump_func
)dump_new_process_request
,
2354 (dump_func
)dump_get_new_process_info_request
,
2355 (dump_func
)dump_new_thread_request
,
2356 (dump_func
)dump_boot_done_request
,
2357 (dump_func
)dump_init_process_request
,
2358 (dump_func
)dump_get_startup_info_request
,
2359 (dump_func
)dump_init_process_done_request
,
2360 (dump_func
)dump_init_thread_request
,
2361 (dump_func
)dump_terminate_process_request
,
2362 (dump_func
)dump_terminate_thread_request
,
2363 (dump_func
)dump_get_process_info_request
,
2364 (dump_func
)dump_set_process_info_request
,
2365 (dump_func
)dump_get_thread_info_request
,
2366 (dump_func
)dump_set_thread_info_request
,
2367 (dump_func
)dump_suspend_thread_request
,
2368 (dump_func
)dump_resume_thread_request
,
2369 (dump_func
)dump_load_dll_request
,
2370 (dump_func
)dump_unload_dll_request
,
2371 (dump_func
)dump_queue_apc_request
,
2372 (dump_func
)dump_get_apc_request
,
2373 (dump_func
)dump_close_handle_request
,
2374 (dump_func
)dump_set_handle_info_request
,
2375 (dump_func
)dump_dup_handle_request
,
2376 (dump_func
)dump_open_process_request
,
2377 (dump_func
)dump_open_thread_request
,
2378 (dump_func
)dump_select_request
,
2379 (dump_func
)dump_create_event_request
,
2380 (dump_func
)dump_event_op_request
,
2381 (dump_func
)dump_open_event_request
,
2382 (dump_func
)dump_create_mutex_request
,
2383 (dump_func
)dump_release_mutex_request
,
2384 (dump_func
)dump_open_mutex_request
,
2385 (dump_func
)dump_create_semaphore_request
,
2386 (dump_func
)dump_release_semaphore_request
,
2387 (dump_func
)dump_open_semaphore_request
,
2388 (dump_func
)dump_create_file_request
,
2389 (dump_func
)dump_alloc_file_handle_request
,
2390 (dump_func
)dump_get_handle_fd_request
,
2391 (dump_func
)dump_set_file_pointer_request
,
2392 (dump_func
)dump_truncate_file_request
,
2393 (dump_func
)dump_set_file_time_request
,
2394 (dump_func
)dump_flush_file_request
,
2395 (dump_func
)dump_get_file_info_request
,
2396 (dump_func
)dump_lock_file_request
,
2397 (dump_func
)dump_unlock_file_request
,
2398 (dump_func
)dump_create_pipe_request
,
2399 (dump_func
)dump_create_socket_request
,
2400 (dump_func
)dump_accept_socket_request
,
2401 (dump_func
)dump_set_socket_event_request
,
2402 (dump_func
)dump_get_socket_event_request
,
2403 (dump_func
)dump_enable_socket_event_request
,
2404 (dump_func
)dump_set_socket_deferred_request
,
2405 (dump_func
)dump_alloc_console_request
,
2406 (dump_func
)dump_free_console_request
,
2407 (dump_func
)dump_get_console_renderer_events_request
,
2408 (dump_func
)dump_open_console_request
,
2409 (dump_func
)dump_get_console_mode_request
,
2410 (dump_func
)dump_set_console_mode_request
,
2411 (dump_func
)dump_set_console_input_info_request
,
2412 (dump_func
)dump_get_console_input_info_request
,
2413 (dump_func
)dump_append_console_input_history_request
,
2414 (dump_func
)dump_get_console_input_history_request
,
2415 (dump_func
)dump_create_console_output_request
,
2416 (dump_func
)dump_set_console_output_info_request
,
2417 (dump_func
)dump_get_console_output_info_request
,
2418 (dump_func
)dump_write_console_input_request
,
2419 (dump_func
)dump_read_console_input_request
,
2420 (dump_func
)dump_write_console_output_request
,
2421 (dump_func
)dump_fill_console_output_request
,
2422 (dump_func
)dump_read_console_output_request
,
2423 (dump_func
)dump_move_console_output_request
,
2424 (dump_func
)dump_send_console_signal_request
,
2425 (dump_func
)dump_create_change_notification_request
,
2426 (dump_func
)dump_create_mapping_request
,
2427 (dump_func
)dump_open_mapping_request
,
2428 (dump_func
)dump_get_mapping_info_request
,
2429 (dump_func
)dump_create_device_request
,
2430 (dump_func
)dump_create_snapshot_request
,
2431 (dump_func
)dump_next_process_request
,
2432 (dump_func
)dump_next_thread_request
,
2433 (dump_func
)dump_next_module_request
,
2434 (dump_func
)dump_wait_debug_event_request
,
2435 (dump_func
)dump_queue_exception_event_request
,
2436 (dump_func
)dump_get_exception_status_request
,
2437 (dump_func
)dump_output_debug_string_request
,
2438 (dump_func
)dump_continue_debug_event_request
,
2439 (dump_func
)dump_debug_process_request
,
2440 (dump_func
)dump_debug_break_request
,
2441 (dump_func
)dump_set_debugger_kill_on_exit_request
,
2442 (dump_func
)dump_read_process_memory_request
,
2443 (dump_func
)dump_write_process_memory_request
,
2444 (dump_func
)dump_create_key_request
,
2445 (dump_func
)dump_open_key_request
,
2446 (dump_func
)dump_delete_key_request
,
2447 (dump_func
)dump_enum_key_request
,
2448 (dump_func
)dump_set_key_value_request
,
2449 (dump_func
)dump_get_key_value_request
,
2450 (dump_func
)dump_enum_key_value_request
,
2451 (dump_func
)dump_delete_key_value_request
,
2452 (dump_func
)dump_load_registry_request
,
2453 (dump_func
)dump_save_registry_request
,
2454 (dump_func
)dump_save_registry_atexit_request
,
2455 (dump_func
)dump_set_registry_levels_request
,
2456 (dump_func
)dump_set_registry_notification_request
,
2457 (dump_func
)dump_create_timer_request
,
2458 (dump_func
)dump_open_timer_request
,
2459 (dump_func
)dump_set_timer_request
,
2460 (dump_func
)dump_cancel_timer_request
,
2461 (dump_func
)dump_get_thread_context_request
,
2462 (dump_func
)dump_set_thread_context_request
,
2463 (dump_func
)dump_get_selector_entry_request
,
2464 (dump_func
)dump_add_atom_request
,
2465 (dump_func
)dump_delete_atom_request
,
2466 (dump_func
)dump_find_atom_request
,
2467 (dump_func
)dump_get_atom_name_request
,
2468 (dump_func
)dump_init_atom_table_request
,
2469 (dump_func
)dump_get_msg_queue_request
,
2470 (dump_func
)dump_set_queue_mask_request
,
2471 (dump_func
)dump_get_queue_status_request
,
2472 (dump_func
)dump_wait_input_idle_request
,
2473 (dump_func
)dump_send_message_request
,
2474 (dump_func
)dump_get_message_request
,
2475 (dump_func
)dump_reply_message_request
,
2476 (dump_func
)dump_get_message_reply_request
,
2477 (dump_func
)dump_set_win_timer_request
,
2478 (dump_func
)dump_kill_win_timer_request
,
2479 (dump_func
)dump_create_serial_request
,
2480 (dump_func
)dump_get_serial_info_request
,
2481 (dump_func
)dump_set_serial_info_request
,
2482 (dump_func
)dump_register_async_request
,
2483 (dump_func
)dump_create_named_pipe_request
,
2484 (dump_func
)dump_open_named_pipe_request
,
2485 (dump_func
)dump_connect_named_pipe_request
,
2486 (dump_func
)dump_wait_named_pipe_request
,
2487 (dump_func
)dump_disconnect_named_pipe_request
,
2488 (dump_func
)dump_get_named_pipe_info_request
,
2489 (dump_func
)dump_create_smb_request
,
2490 (dump_func
)dump_get_smb_info_request
,
2491 (dump_func
)dump_create_window_request
,
2492 (dump_func
)dump_link_window_request
,
2493 (dump_func
)dump_destroy_window_request
,
2494 (dump_func
)dump_set_window_owner_request
,
2495 (dump_func
)dump_get_window_info_request
,
2496 (dump_func
)dump_set_window_info_request
,
2497 (dump_func
)dump_get_window_parents_request
,
2498 (dump_func
)dump_get_window_children_request
,
2499 (dump_func
)dump_get_window_tree_request
,
2500 (dump_func
)dump_set_window_rectangles_request
,
2501 (dump_func
)dump_get_window_rectangles_request
,
2502 (dump_func
)dump_get_window_text_request
,
2503 (dump_func
)dump_set_window_text_request
,
2504 (dump_func
)dump_inc_window_paint_count_request
,
2505 (dump_func
)dump_get_windows_offset_request
,
2506 (dump_func
)dump_set_window_property_request
,
2507 (dump_func
)dump_remove_window_property_request
,
2508 (dump_func
)dump_get_window_property_request
,
2509 (dump_func
)dump_get_window_properties_request
,
2510 (dump_func
)dump_attach_thread_input_request
,
2511 (dump_func
)dump_get_thread_input_request
,
2512 (dump_func
)dump_set_foreground_window_request
,
2513 (dump_func
)dump_set_focus_window_request
,
2514 (dump_func
)dump_set_active_window_request
,
2515 (dump_func
)dump_set_capture_window_request
,
2516 (dump_func
)dump_set_caret_window_request
,
2517 (dump_func
)dump_set_caret_info_request
,
2518 (dump_func
)dump_set_hook_request
,
2519 (dump_func
)dump_remove_hook_request
,
2520 (dump_func
)dump_start_hook_chain_request
,
2521 (dump_func
)dump_finish_hook_chain_request
,
2522 (dump_func
)dump_get_next_hook_request
,
2525 static const dump_func reply_dumpers
[REQ_NB_REQUESTS
] = {
2526 (dump_func
)dump_new_process_reply
,
2527 (dump_func
)dump_get_new_process_info_reply
,
2528 (dump_func
)dump_new_thread_reply
,
2530 (dump_func
)dump_init_process_reply
,
2531 (dump_func
)dump_get_startup_info_reply
,
2532 (dump_func
)dump_init_process_done_reply
,
2533 (dump_func
)dump_init_thread_reply
,
2534 (dump_func
)dump_terminate_process_reply
,
2535 (dump_func
)dump_terminate_thread_reply
,
2536 (dump_func
)dump_get_process_info_reply
,
2538 (dump_func
)dump_get_thread_info_reply
,
2540 (dump_func
)dump_suspend_thread_reply
,
2541 (dump_func
)dump_resume_thread_reply
,
2545 (dump_func
)dump_get_apc_reply
,
2546 (dump_func
)dump_close_handle_reply
,
2547 (dump_func
)dump_set_handle_info_reply
,
2548 (dump_func
)dump_dup_handle_reply
,
2549 (dump_func
)dump_open_process_reply
,
2550 (dump_func
)dump_open_thread_reply
,
2552 (dump_func
)dump_create_event_reply
,
2554 (dump_func
)dump_open_event_reply
,
2555 (dump_func
)dump_create_mutex_reply
,
2557 (dump_func
)dump_open_mutex_reply
,
2558 (dump_func
)dump_create_semaphore_reply
,
2559 (dump_func
)dump_release_semaphore_reply
,
2560 (dump_func
)dump_open_semaphore_reply
,
2561 (dump_func
)dump_create_file_reply
,
2562 (dump_func
)dump_alloc_file_handle_reply
,
2563 (dump_func
)dump_get_handle_fd_reply
,
2564 (dump_func
)dump_set_file_pointer_reply
,
2568 (dump_func
)dump_get_file_info_reply
,
2571 (dump_func
)dump_create_pipe_reply
,
2572 (dump_func
)dump_create_socket_reply
,
2573 (dump_func
)dump_accept_socket_reply
,
2575 (dump_func
)dump_get_socket_event_reply
,
2578 (dump_func
)dump_alloc_console_reply
,
2580 (dump_func
)dump_get_console_renderer_events_reply
,
2581 (dump_func
)dump_open_console_reply
,
2582 (dump_func
)dump_get_console_mode_reply
,
2585 (dump_func
)dump_get_console_input_info_reply
,
2587 (dump_func
)dump_get_console_input_history_reply
,
2588 (dump_func
)dump_create_console_output_reply
,
2590 (dump_func
)dump_get_console_output_info_reply
,
2591 (dump_func
)dump_write_console_input_reply
,
2592 (dump_func
)dump_read_console_input_reply
,
2593 (dump_func
)dump_write_console_output_reply
,
2594 (dump_func
)dump_fill_console_output_reply
,
2595 (dump_func
)dump_read_console_output_reply
,
2598 (dump_func
)dump_create_change_notification_reply
,
2599 (dump_func
)dump_create_mapping_reply
,
2600 (dump_func
)dump_open_mapping_reply
,
2601 (dump_func
)dump_get_mapping_info_reply
,
2602 (dump_func
)dump_create_device_reply
,
2603 (dump_func
)dump_create_snapshot_reply
,
2604 (dump_func
)dump_next_process_reply
,
2605 (dump_func
)dump_next_thread_reply
,
2606 (dump_func
)dump_next_module_reply
,
2607 (dump_func
)dump_wait_debug_event_reply
,
2608 (dump_func
)dump_queue_exception_event_reply
,
2609 (dump_func
)dump_get_exception_status_reply
,
2613 (dump_func
)dump_debug_break_reply
,
2615 (dump_func
)dump_read_process_memory_reply
,
2617 (dump_func
)dump_create_key_reply
,
2618 (dump_func
)dump_open_key_reply
,
2620 (dump_func
)dump_enum_key_reply
,
2622 (dump_func
)dump_get_key_value_reply
,
2623 (dump_func
)dump_enum_key_value_reply
,
2630 (dump_func
)dump_create_timer_reply
,
2631 (dump_func
)dump_open_timer_reply
,
2634 (dump_func
)dump_get_thread_context_reply
,
2636 (dump_func
)dump_get_selector_entry_reply
,
2637 (dump_func
)dump_add_atom_reply
,
2639 (dump_func
)dump_find_atom_reply
,
2640 (dump_func
)dump_get_atom_name_reply
,
2642 (dump_func
)dump_get_msg_queue_reply
,
2643 (dump_func
)dump_set_queue_mask_reply
,
2644 (dump_func
)dump_get_queue_status_reply
,
2645 (dump_func
)dump_wait_input_idle_reply
,
2647 (dump_func
)dump_get_message_reply
,
2649 (dump_func
)dump_get_message_reply_reply
,
2652 (dump_func
)dump_create_serial_reply
,
2653 (dump_func
)dump_get_serial_info_reply
,
2656 (dump_func
)dump_create_named_pipe_reply
,
2657 (dump_func
)dump_open_named_pipe_reply
,
2661 (dump_func
)dump_get_named_pipe_info_reply
,
2662 (dump_func
)dump_create_smb_reply
,
2663 (dump_func
)dump_get_smb_info_reply
,
2664 (dump_func
)dump_create_window_reply
,
2665 (dump_func
)dump_link_window_reply
,
2667 (dump_func
)dump_set_window_owner_reply
,
2668 (dump_func
)dump_get_window_info_reply
,
2669 (dump_func
)dump_set_window_info_reply
,
2670 (dump_func
)dump_get_window_parents_reply
,
2671 (dump_func
)dump_get_window_children_reply
,
2672 (dump_func
)dump_get_window_tree_reply
,
2674 (dump_func
)dump_get_window_rectangles_reply
,
2675 (dump_func
)dump_get_window_text_reply
,
2678 (dump_func
)dump_get_windows_offset_reply
,
2680 (dump_func
)dump_remove_window_property_reply
,
2681 (dump_func
)dump_get_window_property_reply
,
2682 (dump_func
)dump_get_window_properties_reply
,
2684 (dump_func
)dump_get_thread_input_reply
,
2685 (dump_func
)dump_set_foreground_window_reply
,
2686 (dump_func
)dump_set_focus_window_reply
,
2687 (dump_func
)dump_set_active_window_reply
,
2688 (dump_func
)dump_set_capture_window_reply
,
2689 (dump_func
)dump_set_caret_window_reply
,
2690 (dump_func
)dump_set_caret_info_reply
,
2691 (dump_func
)dump_set_hook_reply
,
2693 (dump_func
)dump_start_hook_chain_reply
,
2695 (dump_func
)dump_get_next_hook_reply
,
2698 static const char * const req_names
[REQ_NB_REQUESTS
] = {
2700 "get_new_process_info",
2705 "init_process_done",
2707 "terminate_process",
2732 "release_semaphore",
2735 "alloc_file_handle",
2749 "enable_socket_event",
2750 "set_socket_deferred",
2753 "get_console_renderer_events",
2757 "set_console_input_info",
2758 "get_console_input_info",
2759 "append_console_input_history",
2760 "get_console_input_history",
2761 "create_console_output",
2762 "set_console_output_info",
2763 "get_console_output_info",
2764 "write_console_input",
2765 "read_console_input",
2766 "write_console_output",
2767 "fill_console_output",
2768 "read_console_output",
2769 "move_console_output",
2770 "send_console_signal",
2771 "create_change_notification",
2781 "queue_exception_event",
2782 "get_exception_status",
2783 "output_debug_string",
2784 "continue_debug_event",
2787 "set_debugger_kill_on_exit",
2788 "read_process_memory",
2789 "write_process_memory",
2800 "save_registry_atexit",
2801 "set_registry_levels",
2802 "set_registry_notification",
2807 "get_thread_context",
2808 "set_thread_context",
2809 "get_selector_entry",
2822 "get_message_reply",
2829 "create_named_pipe",
2831 "connect_named_pipe",
2833 "disconnect_named_pipe",
2834 "get_named_pipe_info",
2843 "get_window_parents",
2844 "get_window_children",
2846 "set_window_rectangles",
2847 "get_window_rectangles",
2850 "inc_window_paint_count",
2851 "get_windows_offset",
2852 "set_window_property",
2853 "remove_window_property",
2854 "get_window_property",
2855 "get_window_properties",
2856 "attach_thread_input",
2858 "set_foreground_window",
2860 "set_active_window",
2861 "set_capture_window",
2867 "finish_hook_chain",
2871 /* ### make_requests end ### */
2872 /* Everything above this line is generated automatically by tools/make_requests */
2874 static const char *get_status_name( unsigned int status
)
2876 #define NAME(status) { #status, STATUS_##status }
2883 NAME(ACCESS_DENIED
),
2884 NAME(ACCESS_VIOLATION
),
2885 NAME(BUFFER_OVERFLOW
),
2886 NAME(CHILD_MUST_BE_VOLATILE
),
2887 NAME(DIRECTORY_NOT_EMPTY
),
2889 NAME(FILE_LOCK_CONFLICT
),
2890 NAME(INVALID_FILE_FOR_SECTION
),
2891 NAME(INVALID_HANDLE
),
2892 NAME(INVALID_PARAMETER
),
2894 NAME(MEDIA_WRITE_PROTECTED
),
2895 NAME(MUTANT_NOT_OWNED
),
2896 NAME(NOT_REGISTRY_FILE
),
2898 NAME(NO_MORE_ENTRIES
),
2899 NAME(NO_MORE_FILES
),
2901 NAME(OBJECT_NAME_COLLISION
),
2902 NAME(OBJECT_NAME_INVALID
),
2903 NAME(OBJECT_NAME_NOT_FOUND
),
2904 NAME(OBJECT_PATH_INVALID
),
2905 NAME(OBJECT_TYPE_MISMATCH
),
2908 NAME(SEMAPHORE_LIMIT_EXCEEDED
),
2909 NAME(SHARING_VIOLATION
),
2910 NAME(SUSPEND_COUNT_EXCEEDED
),
2912 NAME(TOO_MANY_OPENED_FILES
),
2915 { NULL
, 0 } /* terminator */
2920 static char buffer
[10];
2924 for (i
= 0; status_names
[i
].name
; i
++)
2925 if (status_names
[i
].value
== status
) return status_names
[i
].name
;
2927 sprintf( buffer
, "%x", status
);
2931 void trace_request(void)
2933 enum request req
= current
->req
.request_header
.req
;
2934 if (req
< REQ_NB_REQUESTS
)
2936 fprintf( stderr
, "%08x: %s(", (unsigned int)current
, req_names
[req
] );
2937 if (req_dumpers
[req
])
2940 cur_data
= get_req_data();
2941 cur_size
= get_req_data_size();
2942 req_dumpers
[req
]( ¤t
->req
);
2944 fprintf( stderr
, " )\n" );
2946 else fprintf( stderr
, "%08x: %d(?)\n", (unsigned int)current
, req
);
2949 void trace_reply( enum request req
, const union generic_reply
*reply
)
2951 if (req
< REQ_NB_REQUESTS
)
2953 fprintf( stderr
, "%08x: %s() = %s",
2954 (unsigned int)current
, req_names
[req
], get_status_name(current
->error
) );
2955 if (reply_dumpers
[req
])
2957 fprintf( stderr
, " {" );
2959 cur_data
= current
->reply_data
;
2960 cur_size
= reply
->reply_header
.reply_size
;
2961 reply_dumpers
[req
]( reply
);
2962 fprintf( stderr
, " }" );
2964 fputc( '\n', stderr
);
2966 else fprintf( stderr
, "%08x: %d() = %s\n",
2967 (unsigned int)current
, req
, get_status_name(current
->error
) );