2 * Server request tracing
4 * Copyright (C) 1999 Alexandre Julliard
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22 #include "wine/port.h"
26 #include <sys/types.h>
40 static const void *cur_data;
43 /* utility functions */
45 inline static void remove_data( size_t size )
47 cur_data = (const char *)cur_data + size;
51 static void dump_uints( const int *ptr, int len )
56 fprintf( stderr, "%08x", *ptr++ );
57 if (--len) fputc( ',', stderr );
62 static void dump_rectangle( const rectangle_t *rect )
64 fprintf( stderr, "{%d,%d;%d,%d}",
65 rect->left, rect->top, rect->right, rect->bottom );
68 static void dump_char_info( const char_info_t *info )
70 fprintf( stderr, "{'" );
71 dump_strW( &info->ch, 1, stderr, "\'\'" );
72 fprintf( stderr, "',%04x}", info->attr );
75 static void dump_context( const CONTEXT *context )
78 fprintf( stderr, "{flags=%08lx,eax=%08lx,ebx=%08lx,ecx=%08lx,edx=%08lx,esi=%08lx,edi=%08lx,"
79 "ebp=%08lx,eip=%08lx,esp=%08lx,eflags=%08lx,cs=%04lx,ds=%04lx,es=%04lx,"
80 "fs=%04lx,gs=%04lx,dr0=%08lx,dr1=%08lx,dr2=%08lx,dr3=%08lx,dr6=%08lx,dr7=%08lx,",
81 context->ContextFlags, context->Eax, context->Ebx, context->Ecx, context->Edx,
82 context->Esi, context->Edi, context->Ebp, context->Eip, context->Esp, context->EFlags,
83 context->SegCs, context->SegDs, context->SegEs, context->SegFs, context->SegGs,
84 context->Dr0, context->Dr1, context->Dr2, context->Dr3, context->Dr6, context->Dr7 );
85 fprintf( stderr, "float=" );
86 dump_uints( (int *)&context->FloatSave, sizeof(context->FloatSave) / sizeof(int) );
87 fprintf( stderr, "}" );
89 dump_uints( (int *)context, sizeof(*context) / sizeof(int) );
93 static void dump_exc_record( const EXCEPTION_RECORD *rec )
96 fprintf( stderr, "{code=%lx,flags=%lx,rec=%p,addr=%p,params={",
97 rec->ExceptionCode, rec->ExceptionFlags, rec->ExceptionRecord,
98 rec->ExceptionAddress );
99 for (i = 0; i < min(rec->NumberParameters,EXCEPTION_MAXIMUM_PARAMETERS); i++)
101 if (i) fputc( ',', stderr );
102 fprintf( stderr, "%lx", rec->ExceptionInformation[i] );
104 fputc( '}', stderr );
107 static void dump_varargs_ints( size_t size )
109 const int *data = cur_data;
110 size_t len = size / sizeof(*data);
112 fputc( '{', stderr );
115 fprintf( stderr, "%d", *data++ );
116 if (--len) fputc( ',', stderr );
118 fputc( '}', stderr );
122 static void dump_varargs_handles( size_t size )
124 const obj_handle_t *data = cur_data;
125 size_t len = size / sizeof(*data);
127 fputc( '{', stderr );
130 fprintf( stderr, "%p", *data++ );
131 if (--len) fputc( ',', stderr );
133 fputc( '}', stderr );
137 static void dump_varargs_ptrs( size_t size )
139 void * const *data = cur_data;
140 size_t len = size / sizeof(*data);
142 fputc( '{', stderr );
145 fprintf( stderr, "%p", *data++ );
146 if (--len) fputc( ',', stderr );
148 fputc( '}', stderr );
152 static void dump_varargs_user_handles( size_t size )
154 const user_handle_t *data = cur_data;
155 size_t len = size / sizeof(*data);
157 fputc( '{', stderr );
160 fprintf( stderr, "%p", *data++ );
161 if (--len) fputc( ',', stderr );
163 fputc( '}', stderr );
167 static void dump_varargs_bytes( size_t size )
169 const unsigned char *data = cur_data;
172 fputc( '{', stderr );
175 fprintf( stderr, "%02x", *data++ );
176 if (--len) fputc( ',', stderr );
178 fputc( '}', stderr );
182 static void dump_varargs_string( size_t size )
184 fprintf( stderr, "\"%.*s\"", (int)size, (char *)cur_data );
188 static void dump_varargs_unicode_str( size_t size )
190 fprintf( stderr, "L\"" );
191 dump_strW( cur_data, size / sizeof(WCHAR), stderr, "\"\"" );
192 fputc( '\"', stderr );
196 static void dump_varargs_context( size_t size )
200 fprintf( stderr, "{}" );
203 dump_context( cur_data );
207 static void dump_varargs_exc_event( size_t size )
209 const CONTEXT *ptr = cur_data;
213 fprintf( stderr, "{}" );
216 fprintf( stderr, "{context=" );
218 fprintf( stderr, ",rec=" );
219 dump_exc_record( (EXCEPTION_RECORD *)(ptr + 1) );
220 fputc( '}', stderr );
224 static void dump_varargs_debug_event( size_t size )
226 const debug_event_t *event = cur_data;
230 fprintf( stderr, "{}" );
235 case EXCEPTION_DEBUG_EVENT:
236 fprintf( stderr, "{exception," );
237 dump_exc_record( &event->info.exception.record );
238 fprintf( stderr, ",first=%d}", event->info.exception.first );
240 case CREATE_THREAD_DEBUG_EVENT:
241 fprintf( stderr, "{create_thread,thread=%p,teb=%p,start=%p}",
242 event->info.create_thread.handle, event->info.create_thread.teb,
243 event->info.create_thread.start );
245 case CREATE_PROCESS_DEBUG_EVENT:
246 fprintf( stderr, "{create_process,file=%p,process=%p,thread=%p,base=%p,offset=%d,"
247 "size=%d,teb=%p,start=%p,name=%p,unicode=%d}",
248 event->info.create_process.file, event->info.create_process.process,
249 event->info.create_process.thread, event->info.create_process.base,
250 event->info.create_process.dbg_offset, event->info.create_process.dbg_size,
251 event->info.create_process.teb, event->info.create_process.start,
252 event->info.create_process.name, event->info.create_process.unicode );
254 case EXIT_THREAD_DEBUG_EVENT:
255 fprintf( stderr, "{exit_thread,code=%d}", event->info.exit.exit_code );
257 case EXIT_PROCESS_DEBUG_EVENT:
258 fprintf( stderr, "{exit_process,code=%d}", event->info.exit.exit_code );
260 case LOAD_DLL_DEBUG_EVENT:
261 fprintf( stderr, "{load_dll,file=%p,base=%p,offset=%d,size=%d,name=%p,unicode=%d}",
262 event->info.load_dll.handle, event->info.load_dll.base,
263 event->info.load_dll.dbg_offset, event->info.load_dll.dbg_size,
264 event->info.load_dll.name, event->info.load_dll.unicode );
266 case UNLOAD_DLL_DEBUG_EVENT:
267 fprintf( stderr, "{unload_dll,base=%p}", event->info.unload_dll.base );
269 case OUTPUT_DEBUG_STRING_EVENT:
270 fprintf( stderr, "{output_string,data=%p,unicode=%d,len=%d}",
271 event->info.output_string.string, event->info.output_string.unicode,
272 event->info.output_string.length );
275 fprintf( stderr, "{rip,err=%d,type=%d}",
276 event->info.rip_info.error, event->info.rip_info.type );
278 case 0: /* zero is the code returned on timeouts */
279 fprintf( stderr, "{}" );
282 fprintf( stderr, "{code=??? (%d)}", event->code );
288 static void dump_varargs_startup_info( size_t size )
290 const startup_info_t *ptr = cur_data;
293 if (size < sizeof(info.size))
295 fprintf( stderr, "{}" );
298 if (size > ptr->size) size = ptr->size;
299 memset( &info, 0, sizeof(info) );
300 memcpy( &info, ptr, min( size, sizeof(info) ));
302 fprintf( stderr, "{size=%d", info.size );
303 fprintf( stderr, ",x=%d", info.x );
304 fprintf( stderr, ",y=%d", info.y );
305 fprintf( stderr, ",cx=%d", info.cx );
306 fprintf( stderr, ",cy=%d", info.cy );
307 fprintf( stderr, ",x_chars=%d", info.x_chars );
308 fprintf( stderr, ",y_chars=%d", info.y_chars );
309 fprintf( stderr, ",attr=%d", info.attribute );
310 fprintf( stderr, ",cmd_show=%d", info.cmd_show );
311 fprintf( stderr, ",flags=%x", info.flags );
313 fprintf( stderr, ",filename=" );
314 /* FIXME: these should be unicode */
315 dump_varargs_string( min(cur_size,info.filename_len) );
316 fprintf( stderr, ",cmdline=" );
317 dump_varargs_string( min(cur_size,info.cmdline_len) );
318 fprintf( stderr, ",desktop=" );
319 dump_varargs_string( min(cur_size,info.desktop_len) );
320 fprintf( stderr, ",title=" );
321 dump_varargs_string( min(cur_size,info.title_len) );
322 fputc( '}', stderr );
325 static void dump_varargs_input_records( size_t size )
327 const INPUT_RECORD *rec = cur_data;
328 size_t len = size / sizeof(*rec);
330 fputc( '{', stderr );
333 fprintf( stderr, "{%04x,...}", rec->EventType );
335 if (--len) fputc( ',', stderr );
337 fputc( '}', stderr );
341 static void dump_varargs_properties( size_t size )
343 const property_data_t *prop = cur_data;
344 size_t len = size / sizeof(*prop);
346 fputc( '{', stderr );
349 fprintf( stderr, "{atom=%04x,str=%d,handle=%p}",
350 prop->atom, prop->string, prop->handle );
352 if (--len) fputc( ',', stderr );
354 fputc( '}', stderr );
358 typedef void (*dump_func)( const void *req );
360 /* Everything below this line is generated automatically by tools/make_requests */
361 /* ### make_requests begin ### */
363 static void dump_new_process_request( const struct new_process_request *req )
365 fprintf( stderr, " inherit_all=%d,", req->inherit_all );
366 fprintf( stderr, " use_handles=%d,", req->use_handles );
367 fprintf( stderr, " create_flags=%d,", req->create_flags );
368 fprintf( stderr, " unix_pid=%d,", req->unix_pid );
369 fprintf( stderr, " exe_file=%p,", req->exe_file );
370 fprintf( stderr, " hstdin=%p,", req->hstdin );
371 fprintf( stderr, " hstdout=%p,", req->hstdout );
372 fprintf( stderr, " hstderr=%p,", req->hstderr );
373 fprintf( stderr, " info=" );
374 dump_varargs_startup_info( cur_size );
377 static void dump_new_process_reply( const struct new_process_reply *req )
379 fprintf( stderr, " info=%p", req->info );
382 static void dump_get_new_process_info_request( const struct get_new_process_info_request *req )
384 fprintf( stderr, " info=%p,", req->info );
385 fprintf( stderr, " pinherit=%d,", req->pinherit );
386 fprintf( stderr, " tinherit=%d", req->tinherit );
389 static void dump_get_new_process_info_reply( const struct get_new_process_info_reply *req )
391 fprintf( stderr, " pid=%04x,", req->pid );
392 fprintf( stderr, " phandle=%p,", req->phandle );
393 fprintf( stderr, " tid=%04x,", req->tid );
394 fprintf( stderr, " thandle=%p,", req->thandle );
395 fprintf( stderr, " success=%d", req->success );
398 static void dump_new_thread_request( const struct new_thread_request *req )
400 fprintf( stderr, " suspend=%d,", req->suspend );
401 fprintf( stderr, " inherit=%d,", req->inherit );
402 fprintf( stderr, " request_fd=%d", req->request_fd );
405 static void dump_new_thread_reply( const struct new_thread_reply *req )
407 fprintf( stderr, " tid=%04x,", req->tid );
408 fprintf( stderr, " handle=%p", req->handle );
411 static void dump_boot_done_request( const struct boot_done_request *req )
413 fprintf( stderr, " debug_level=%d", req->debug_level );
416 static void dump_init_process_request( const struct init_process_request *req )
418 fprintf( stderr, " ldt_copy=%p", req->ldt_copy );
421 static void dump_init_process_reply( const struct init_process_reply *req )
423 fprintf( stderr, " create_flags=%d,", req->create_flags );
424 fprintf( stderr, " server_start=%08x,", req->server_start );
425 fprintf( stderr, " info_size=%d,", req->info_size );
426 fprintf( stderr, " exe_file=%p,", req->exe_file );
427 fprintf( stderr, " hstdin=%p,", req->hstdin );
428 fprintf( stderr, " hstdout=%p,", req->hstdout );
429 fprintf( stderr, " hstderr=%p", req->hstderr );
432 static void dump_get_startup_info_request( const struct get_startup_info_request *req )
436 static void dump_get_startup_info_reply( const struct get_startup_info_reply *req )
438 fprintf( stderr, " info=" );
439 dump_varargs_startup_info( cur_size );
442 static void dump_init_process_done_request( const struct init_process_done_request *req )
444 fprintf( stderr, " module=%p,", req->module );
445 fprintf( stderr, " module_size=%d,", req->module_size );
446 fprintf( stderr, " entry=%p,", req->entry );
447 fprintf( stderr, " name=%p,", req->name );
448 fprintf( stderr, " exe_file=%p,", req->exe_file );
449 fprintf( stderr, " gui=%d,", req->gui );
450 fprintf( stderr, " filename=" );
451 dump_varargs_string( cur_size );
454 static void dump_init_process_done_reply( const struct init_process_done_reply *req )
456 fprintf( stderr, " debugged=%d", req->debugged );
459 static void dump_init_thread_request( const struct init_thread_request *req )
461 fprintf( stderr, " unix_pid=%d,", req->unix_pid );
462 fprintf( stderr, " unix_tid=%d,", req->unix_tid );
463 fprintf( stderr, " teb=%p,", req->teb );
464 fprintf( stderr, " entry=%p,", req->entry );
465 fprintf( stderr, " reply_fd=%d,", req->reply_fd );
466 fprintf( stderr, " wait_fd=%d", req->wait_fd );
469 static void dump_init_thread_reply( const struct init_thread_reply *req )
471 fprintf( stderr, " pid=%04x,", req->pid );
472 fprintf( stderr, " tid=%04x,", req->tid );
473 fprintf( stderr, " boot=%d,", req->boot );
474 fprintf( stderr, " version=%d", req->version );
477 static void dump_terminate_process_request( const struct terminate_process_request *req )
479 fprintf( stderr, " handle=%p,", req->handle );
480 fprintf( stderr, " exit_code=%d", req->exit_code );
483 static void dump_terminate_process_reply( const struct terminate_process_reply *req )
485 fprintf( stderr, " self=%d", req->self );
488 static void dump_terminate_thread_request( const struct terminate_thread_request *req )
490 fprintf( stderr, " handle=%p,", req->handle );
491 fprintf( stderr, " exit_code=%d", req->exit_code );
494 static void dump_terminate_thread_reply( const struct terminate_thread_reply *req )
496 fprintf( stderr, " self=%d,", req->self );
497 fprintf( stderr, " last=%d", req->last );
500 static void dump_get_process_info_request( const struct get_process_info_request *req )
502 fprintf( stderr, " handle=%p", req->handle );
505 static void dump_get_process_info_reply( const struct get_process_info_reply *req )
507 fprintf( stderr, " pid=%04x,", req->pid );
508 fprintf( stderr, " debugged=%d,", req->debugged );
509 fprintf( stderr, " exit_code=%d,", req->exit_code );
510 fprintf( stderr, " priority=%d,", req->priority );
511 fprintf( stderr, " process_affinity=%d,", req->process_affinity );
512 fprintf( stderr, " system_affinity=%d", req->system_affinity );
515 static void dump_set_process_info_request( const struct set_process_info_request *req )
517 fprintf( stderr, " handle=%p,", req->handle );
518 fprintf( stderr, " mask=%d,", req->mask );
519 fprintf( stderr, " priority=%d,", req->priority );
520 fprintf( stderr, " affinity=%d", req->affinity );
523 static void dump_get_thread_info_request( const struct get_thread_info_request *req )
525 fprintf( stderr, " handle=%p,", req->handle );
526 fprintf( stderr, " tid_in=%04x", req->tid_in );
529 static void dump_get_thread_info_reply( const struct get_thread_info_reply *req )
531 fprintf( stderr, " tid=%04x,", req->tid );
532 fprintf( stderr, " teb=%p,", req->teb );
533 fprintf( stderr, " exit_code=%d,", req->exit_code );
534 fprintf( stderr, " priority=%d,", req->priority );
535 fprintf( stderr, " creation_time=%ld,", req->creation_time );
536 fprintf( stderr, " exit_time=%ld", req->exit_time );
539 static void dump_set_thread_info_request( const struct set_thread_info_request *req )
541 fprintf( stderr, " handle=%p,", req->handle );
542 fprintf( stderr, " mask=%d,", req->mask );
543 fprintf( stderr, " priority=%d,", req->priority );
544 fprintf( stderr, " affinity=%d", req->affinity );
547 static void dump_get_dll_info_request( const struct get_dll_info_request *req )
549 fprintf( stderr, " handle=%p,", req->handle );
550 fprintf( stderr, " base_address=%p", req->base_address );
553 static void dump_get_dll_info_reply( const struct get_dll_info_reply *req )
555 fprintf( stderr, " size=%d,", req->size );
556 fprintf( stderr, " entry_point=%p,", req->entry_point );
557 fprintf( stderr, " filename=" );
558 dump_varargs_string( cur_size );
561 static void dump_suspend_thread_request( const struct suspend_thread_request *req )
563 fprintf( stderr, " handle=%p", req->handle );
566 static void dump_suspend_thread_reply( const struct suspend_thread_reply *req )
568 fprintf( stderr, " count=%d", req->count );
571 static void dump_resume_thread_request( const struct resume_thread_request *req )
573 fprintf( stderr, " handle=%p", req->handle );
576 static void dump_resume_thread_reply( const struct resume_thread_reply *req )
578 fprintf( stderr, " count=%d", req->count );
581 static void dump_load_dll_request( const struct load_dll_request *req )
583 fprintf( stderr, " handle=%p,", req->handle );
584 fprintf( stderr, " base=%p,", req->base );
585 fprintf( stderr, " size=%d,", req->size );
586 fprintf( stderr, " dbg_offset=%d,", req->dbg_offset );
587 fprintf( stderr, " dbg_size=%d,", req->dbg_size );
588 fprintf( stderr, " name=%p,", req->name );
589 fprintf( stderr, " filename=" );
590 dump_varargs_string( cur_size );
593 static void dump_unload_dll_request( const struct unload_dll_request *req )
595 fprintf( stderr, " base=%p", req->base );
598 static void dump_queue_apc_request( const struct queue_apc_request *req )
600 fprintf( stderr, " handle=%p,", req->handle );
601 fprintf( stderr, " user=%d,", req->user );
602 fprintf( stderr, " func=%p,", req->func );
603 fprintf( stderr, " param=%p", req->param );
606 static void dump_get_apc_request( const struct get_apc_request *req )
608 fprintf( stderr, " alertable=%d", req->alertable );
611 static void dump_get_apc_reply( const struct get_apc_reply *req )
613 fprintf( stderr, " func=%p,", req->func );
614 fprintf( stderr, " type=%d,", req->type );
615 fprintf( stderr, " args=" );
616 dump_varargs_ptrs( cur_size );
619 static void dump_close_handle_request( const struct close_handle_request *req )
621 fprintf( stderr, " handle=%p", req->handle );
624 static void dump_close_handle_reply( const struct close_handle_reply *req )
626 fprintf( stderr, " fd=%d", req->fd );
629 static void dump_set_handle_info_request( const struct set_handle_info_request *req )
631 fprintf( stderr, " handle=%p,", req->handle );
632 fprintf( stderr, " flags=%d,", req->flags );
633 fprintf( stderr, " mask=%d,", req->mask );
634 fprintf( stderr, " fd=%d", req->fd );
637 static void dump_set_handle_info_reply( const struct set_handle_info_reply *req )
639 fprintf( stderr, " old_flags=%d,", req->old_flags );
640 fprintf( stderr, " cur_fd=%d", req->cur_fd );
643 static void dump_dup_handle_request( const struct dup_handle_request *req )
645 fprintf( stderr, " src_process=%p,", req->src_process );
646 fprintf( stderr, " src_handle=%p,", req->src_handle );
647 fprintf( stderr, " dst_process=%p,", req->dst_process );
648 fprintf( stderr, " access=%08x,", req->access );
649 fprintf( stderr, " inherit=%d,", req->inherit );
650 fprintf( stderr, " options=%d", req->options );
653 static void dump_dup_handle_reply( const struct dup_handle_reply *req )
655 fprintf( stderr, " handle=%p,", req->handle );
656 fprintf( stderr, " fd=%d", req->fd );
659 static void dump_open_process_request( const struct open_process_request *req )
661 fprintf( stderr, " pid=%04x,", req->pid );
662 fprintf( stderr, " access=%08x,", req->access );
663 fprintf( stderr, " inherit=%d", req->inherit );
666 static void dump_open_process_reply( const struct open_process_reply *req )
668 fprintf( stderr, " handle=%p", req->handle );
671 static void dump_open_thread_request( const struct open_thread_request *req )
673 fprintf( stderr, " tid=%04x,", req->tid );
674 fprintf( stderr, " access=%08x,", req->access );
675 fprintf( stderr, " inherit=%d", req->inherit );
678 static void dump_open_thread_reply( const struct open_thread_reply *req )
680 fprintf( stderr, " handle=%p", req->handle );
683 static void dump_select_request( const struct select_request *req )
685 fprintf( stderr, " flags=%d,", req->flags );
686 fprintf( stderr, " cookie=%p,", req->cookie );
687 fprintf( stderr, " sec=%d,", req->sec );
688 fprintf( stderr, " usec=%d,", req->usec );
689 fprintf( stderr, " handles=" );
690 dump_varargs_handles( cur_size );
693 static void dump_create_event_request( const struct create_event_request *req )
695 fprintf( stderr, " manual_reset=%d,", req->manual_reset );
696 fprintf( stderr, " initial_state=%d,", req->initial_state );
697 fprintf( stderr, " inherit=%d,", req->inherit );
698 fprintf( stderr, " name=" );
699 dump_varargs_unicode_str( cur_size );
702 static void dump_create_event_reply( const struct create_event_reply *req )
704 fprintf( stderr, " handle=%p", req->handle );
707 static void dump_event_op_request( const struct event_op_request *req )
709 fprintf( stderr, " handle=%p,", req->handle );
710 fprintf( stderr, " op=%d", req->op );
713 static void dump_open_event_request( const struct open_event_request *req )
715 fprintf( stderr, " access=%08x,", req->access );
716 fprintf( stderr, " inherit=%d,", req->inherit );
717 fprintf( stderr, " name=" );
718 dump_varargs_unicode_str( cur_size );
721 static void dump_open_event_reply( const struct open_event_reply *req )
723 fprintf( stderr, " handle=%p", req->handle );
726 static void dump_create_mutex_request( const struct create_mutex_request *req )
728 fprintf( stderr, " owned=%d,", req->owned );
729 fprintf( stderr, " inherit=%d,", req->inherit );
730 fprintf( stderr, " name=" );
731 dump_varargs_unicode_str( cur_size );
734 static void dump_create_mutex_reply( const struct create_mutex_reply *req )
736 fprintf( stderr, " handle=%p", req->handle );
739 static void dump_release_mutex_request( const struct release_mutex_request *req )
741 fprintf( stderr, " handle=%p", req->handle );
744 static void dump_open_mutex_request( const struct open_mutex_request *req )
746 fprintf( stderr, " access=%08x,", req->access );
747 fprintf( stderr, " inherit=%d,", req->inherit );
748 fprintf( stderr, " name=" );
749 dump_varargs_unicode_str( cur_size );
752 static void dump_open_mutex_reply( const struct open_mutex_reply *req )
754 fprintf( stderr, " handle=%p", req->handle );
757 static void dump_create_semaphore_request( const struct create_semaphore_request *req )
759 fprintf( stderr, " initial=%08x,", req->initial );
760 fprintf( stderr, " max=%08x,", req->max );
761 fprintf( stderr, " inherit=%d,", req->inherit );
762 fprintf( stderr, " name=" );
763 dump_varargs_unicode_str( cur_size );
766 static void dump_create_semaphore_reply( const struct create_semaphore_reply *req )
768 fprintf( stderr, " handle=%p", req->handle );
771 static void dump_release_semaphore_request( const struct release_semaphore_request *req )
773 fprintf( stderr, " handle=%p,", req->handle );
774 fprintf( stderr, " count=%08x", req->count );
777 static void dump_release_semaphore_reply( const struct release_semaphore_reply *req )
779 fprintf( stderr, " prev_count=%08x", req->prev_count );
782 static void dump_open_semaphore_request( const struct open_semaphore_request *req )
784 fprintf( stderr, " access=%08x,", req->access );
785 fprintf( stderr, " inherit=%d,", req->inherit );
786 fprintf( stderr, " name=" );
787 dump_varargs_unicode_str( cur_size );
790 static void dump_open_semaphore_reply( const struct open_semaphore_reply *req )
792 fprintf( stderr, " handle=%p", req->handle );
795 static void dump_create_file_request( const struct create_file_request *req )
797 fprintf( stderr, " access=%08x,", req->access );
798 fprintf( stderr, " inherit=%d,", req->inherit );
799 fprintf( stderr, " sharing=%08x,", req->sharing );
800 fprintf( stderr, " create=%d,", req->create );
801 fprintf( stderr, " attrs=%08x,", req->attrs );
802 fprintf( stderr, " drive_type=%d,", req->drive_type );
803 fprintf( stderr, " filename=" );
804 dump_varargs_string( cur_size );
807 static void dump_create_file_reply( const struct create_file_reply *req )
809 fprintf( stderr, " handle=%p", req->handle );
812 static void dump_alloc_file_handle_request( const struct alloc_file_handle_request *req )
814 fprintf( stderr, " access=%08x,", req->access );
815 fprintf( stderr, " inherit=%d,", req->inherit );
816 fprintf( stderr, " fd=%d", req->fd );
819 static void dump_alloc_file_handle_reply( const struct alloc_file_handle_reply *req )
821 fprintf( stderr, " handle=%p", req->handle );
824 static void dump_get_handle_fd_request( const struct get_handle_fd_request *req )
826 fprintf( stderr, " handle=%p,", req->handle );
827 fprintf( stderr, " access=%08x", req->access );
830 static void dump_get_handle_fd_reply( const struct get_handle_fd_reply *req )
832 fprintf( stderr, " fd=%d,", req->fd );
833 fprintf( stderr, " type=%d,", req->type );
834 fprintf( stderr, " flags=%d", req->flags );
837 static void dump_set_file_pointer_request( const struct set_file_pointer_request *req )
839 fprintf( stderr, " handle=%p,", req->handle );
840 fprintf( stderr, " low=%d,", req->low );
841 fprintf( stderr, " high=%d,", req->high );
842 fprintf( stderr, " whence=%d", req->whence );
845 static void dump_set_file_pointer_reply( const struct set_file_pointer_reply *req )
847 fprintf( stderr, " new_low=%d,", req->new_low );
848 fprintf( stderr, " new_high=%d", req->new_high );
851 static void dump_truncate_file_request( const struct truncate_file_request *req )
853 fprintf( stderr, " handle=%p", req->handle );
856 static void dump_set_file_time_request( const struct set_file_time_request *req )
858 fprintf( stderr, " handle=%p,", req->handle );
859 fprintf( stderr, " access_time=%ld,", req->access_time );
860 fprintf( stderr, " write_time=%ld", req->write_time );
863 static void dump_flush_file_request( const struct flush_file_request *req )
865 fprintf( stderr, " handle=%p", req->handle );
868 static void dump_get_file_info_request( const struct get_file_info_request *req )
870 fprintf( stderr, " handle=%p", req->handle );
873 static void dump_get_file_info_reply( const struct get_file_info_reply *req )
875 fprintf( stderr, " type=%d,", req->type );
876 fprintf( stderr, " attr=%d,", req->attr );
877 fprintf( stderr, " access_time=%ld,", req->access_time );
878 fprintf( stderr, " write_time=%ld,", req->write_time );
879 fprintf( stderr, " size_high=%d,", req->size_high );
880 fprintf( stderr, " size_low=%d,", req->size_low );
881 fprintf( stderr, " links=%d,", req->links );
882 fprintf( stderr, " index_high=%d,", req->index_high );
883 fprintf( stderr, " index_low=%d,", req->index_low );
884 fprintf( stderr, " serial=%08x", req->serial );
887 static void dump_lock_file_request( const struct lock_file_request *req )
889 fprintf( stderr, " handle=%p,", req->handle );
890 fprintf( stderr, " offset_low=%08x,", req->offset_low );
891 fprintf( stderr, " offset_high=%08x,", req->offset_high );
892 fprintf( stderr, " count_low=%08x,", req->count_low );
893 fprintf( stderr, " count_high=%08x,", req->count_high );
894 fprintf( stderr, " shared=%d,", req->shared );
895 fprintf( stderr, " wait=%d", req->wait );
898 static void dump_lock_file_reply( const struct lock_file_reply *req )
900 fprintf( stderr, " handle=%p,", req->handle );
901 fprintf( stderr, " overlapped=%d", req->overlapped );
904 static void dump_unlock_file_request( const struct unlock_file_request *req )
906 fprintf( stderr, " handle=%p,", req->handle );
907 fprintf( stderr, " offset_low=%08x,", req->offset_low );
908 fprintf( stderr, " offset_high=%08x,", req->offset_high );
909 fprintf( stderr, " count_low=%08x,", req->count_low );
910 fprintf( stderr, " count_high=%08x", req->count_high );
913 static void dump_create_pipe_request( const struct create_pipe_request *req )
915 fprintf( stderr, " inherit=%d", req->inherit );
918 static void dump_create_pipe_reply( const struct create_pipe_reply *req )
920 fprintf( stderr, " handle_read=%p,", req->handle_read );
921 fprintf( stderr, " handle_write=%p", req->handle_write );
924 static void dump_create_socket_request( const struct create_socket_request *req )
926 fprintf( stderr, " access=%08x,", req->access );
927 fprintf( stderr, " inherit=%d,", req->inherit );
928 fprintf( stderr, " family=%d,", req->family );
929 fprintf( stderr, " type=%d,", req->type );
930 fprintf( stderr, " protocol=%d,", req->protocol );
931 fprintf( stderr, " flags=%08x", req->flags );
934 static void dump_create_socket_reply( const struct create_socket_reply *req )
936 fprintf( stderr, " handle=%p", req->handle );
939 static void dump_accept_socket_request( const struct accept_socket_request *req )
941 fprintf( stderr, " lhandle=%p,", req->lhandle );
942 fprintf( stderr, " access=%08x,", req->access );
943 fprintf( stderr, " inherit=%d", req->inherit );
946 static void dump_accept_socket_reply( const struct accept_socket_reply *req )
948 fprintf( stderr, " handle=%p", req->handle );
951 static void dump_set_socket_event_request( const struct set_socket_event_request *req )
953 fprintf( stderr, " handle=%p,", req->handle );
954 fprintf( stderr, " mask=%08x,", req->mask );
955 fprintf( stderr, " event=%p,", req->event );
956 fprintf( stderr, " window=%p,", req->window );
957 fprintf( stderr, " msg=%08x", req->msg );
960 static void dump_get_socket_event_request( const struct get_socket_event_request *req )
962 fprintf( stderr, " handle=%p,", req->handle );
963 fprintf( stderr, " service=%d,", req->service );
964 fprintf( stderr, " c_event=%p", req->c_event );
967 static void dump_get_socket_event_reply( const struct get_socket_event_reply *req )
969 fprintf( stderr, " mask=%08x,", req->mask );
970 fprintf( stderr, " pmask=%08x,", req->pmask );
971 fprintf( stderr, " state=%08x,", req->state );
972 fprintf( stderr, " errors=" );
973 dump_varargs_ints( cur_size );
976 static void dump_enable_socket_event_request( const struct enable_socket_event_request *req )
978 fprintf( stderr, " handle=%p,", req->handle );
979 fprintf( stderr, " mask=%08x,", req->mask );
980 fprintf( stderr, " sstate=%08x,", req->sstate );
981 fprintf( stderr, " cstate=%08x", req->cstate );
984 static void dump_set_socket_deferred_request( const struct set_socket_deferred_request *req )
986 fprintf( stderr, " handle=%p,", req->handle );
987 fprintf( stderr, " deferred=%p", req->deferred );
990 static void dump_alloc_console_request( const struct alloc_console_request *req )
992 fprintf( stderr, " access=%08x,", req->access );
993 fprintf( stderr, " inherit=%d,", req->inherit );
994 fprintf( stderr, " pid=%04x", req->pid );
997 static void dump_alloc_console_reply( const struct alloc_console_reply *req )
999 fprintf( stderr, " handle_in=%p,", req->handle_in );
1000 fprintf( stderr, " event=%p", req->event );
1003 static void dump_free_console_request( const struct free_console_request *req )
1007 static void dump_get_console_renderer_events_request( const struct get_console_renderer_events_request *req )
1009 fprintf( stderr, " handle=%p", req->handle );
1012 static void dump_get_console_renderer_events_reply( const struct get_console_renderer_events_reply *req )
1014 fprintf( stderr, " data=" );
1015 dump_varargs_bytes( cur_size );
1018 static void dump_open_console_request( const struct open_console_request *req )
1020 fprintf( stderr, " from=%d,", req->from );
1021 fprintf( stderr, " access=%08x,", req->access );
1022 fprintf( stderr, " inherit=%d,", req->inherit );
1023 fprintf( stderr, " share=%d", req->share );
1026 static void dump_open_console_reply( const struct open_console_reply *req )
1028 fprintf( stderr, " handle=%p", req->handle );
1031 static void dump_get_console_mode_request( const struct get_console_mode_request *req )
1033 fprintf( stderr, " handle=%p", req->handle );
1036 static void dump_get_console_mode_reply( const struct get_console_mode_reply *req )
1038 fprintf( stderr, " mode=%d", req->mode );
1041 static void dump_set_console_mode_request( const struct set_console_mode_request *req )
1043 fprintf( stderr, " handle=%p,", req->handle );
1044 fprintf( stderr, " mode=%d", req->mode );
1047 static void dump_set_console_input_info_request( const struct set_console_input_info_request *req )
1049 fprintf( stderr, " handle=%p,", req->handle );
1050 fprintf( stderr, " mask=%d,", req->mask );
1051 fprintf( stderr, " active_sb=%p,", req->active_sb );
1052 fprintf( stderr, " history_mode=%d,", req->history_mode );
1053 fprintf( stderr, " history_size=%d,", req->history_size );
1054 fprintf( stderr, " edition_mode=%d,", req->edition_mode );
1055 fprintf( stderr, " title=" );
1056 dump_varargs_unicode_str( cur_size );
1059 static void dump_get_console_input_info_request( const struct get_console_input_info_request *req )
1061 fprintf( stderr, " handle=%p", req->handle );
1064 static void dump_get_console_input_info_reply( const struct get_console_input_info_reply *req )
1066 fprintf( stderr, " history_mode=%d,", req->history_mode );
1067 fprintf( stderr, " history_size=%d,", req->history_size );
1068 fprintf( stderr, " history_index=%d,", req->history_index );
1069 fprintf( stderr, " edition_mode=%d,", req->edition_mode );
1070 fprintf( stderr, " title=" );
1071 dump_varargs_unicode_str( cur_size );
1074 static void dump_append_console_input_history_request( const struct append_console_input_history_request *req )
1076 fprintf( stderr, " handle=%p,", req->handle );
1077 fprintf( stderr, " line=" );
1078 dump_varargs_unicode_str( cur_size );
1081 static void dump_get_console_input_history_request( const struct get_console_input_history_request *req )
1083 fprintf( stderr, " handle=%p,", req->handle );
1084 fprintf( stderr, " index=%d", req->index );
1087 static void dump_get_console_input_history_reply( const struct get_console_input_history_reply *req )
1089 fprintf( stderr, " total=%d,", req->total );
1090 fprintf( stderr, " line=" );
1091 dump_varargs_unicode_str( cur_size );
1094 static void dump_create_console_output_request( const struct create_console_output_request *req )
1096 fprintf( stderr, " handle_in=%p,", req->handle_in );
1097 fprintf( stderr, " access=%d,", req->access );
1098 fprintf( stderr, " share=%d,", req->share );
1099 fprintf( stderr, " inherit=%d", req->inherit );
1102 static void dump_create_console_output_reply( const struct create_console_output_reply *req )
1104 fprintf( stderr, " handle_out=%p", req->handle_out );
1107 static void dump_set_console_output_info_request( const struct set_console_output_info_request *req )
1109 fprintf( stderr, " handle=%p,", req->handle );
1110 fprintf( stderr, " mask=%d,", req->mask );
1111 fprintf( stderr, " cursor_size=%d,", req->cursor_size );
1112 fprintf( stderr, " cursor_visible=%d,", req->cursor_visible );
1113 fprintf( stderr, " cursor_x=%d,", req->cursor_x );
1114 fprintf( stderr, " cursor_y=%d,", req->cursor_y );
1115 fprintf( stderr, " width=%d,", req->width );
1116 fprintf( stderr, " height=%d,", req->height );
1117 fprintf( stderr, " attr=%d,", req->attr );
1118 fprintf( stderr, " win_left=%d,", req->win_left );
1119 fprintf( stderr, " win_top=%d,", req->win_top );
1120 fprintf( stderr, " win_right=%d,", req->win_right );
1121 fprintf( stderr, " win_bottom=%d,", req->win_bottom );
1122 fprintf( stderr, " max_width=%d,", req->max_width );
1123 fprintf( stderr, " max_height=%d", req->max_height );
1126 static void dump_get_console_output_info_request( const struct get_console_output_info_request *req )
1128 fprintf( stderr, " handle=%p", req->handle );
1131 static void dump_get_console_output_info_reply( const struct get_console_output_info_reply *req )
1133 fprintf( stderr, " cursor_size=%d,", req->cursor_size );
1134 fprintf( stderr, " cursor_visible=%d,", req->cursor_visible );
1135 fprintf( stderr, " cursor_x=%d,", req->cursor_x );
1136 fprintf( stderr, " cursor_y=%d,", req->cursor_y );
1137 fprintf( stderr, " width=%d,", req->width );
1138 fprintf( stderr, " height=%d,", req->height );
1139 fprintf( stderr, " attr=%d,", req->attr );
1140 fprintf( stderr, " win_left=%d,", req->win_left );
1141 fprintf( stderr, " win_top=%d,", req->win_top );
1142 fprintf( stderr, " win_right=%d,", req->win_right );
1143 fprintf( stderr, " win_bottom=%d,", req->win_bottom );
1144 fprintf( stderr, " max_width=%d,", req->max_width );
1145 fprintf( stderr, " max_height=%d", req->max_height );
1148 static void dump_write_console_input_request( const struct write_console_input_request *req )
1150 fprintf( stderr, " handle=%p,", req->handle );
1151 fprintf( stderr, " rec=" );
1152 dump_varargs_input_records( cur_size );
1155 static void dump_write_console_input_reply( const struct write_console_input_reply *req )
1157 fprintf( stderr, " written=%d", req->written );
1160 static void dump_read_console_input_request( const struct read_console_input_request *req )
1162 fprintf( stderr, " handle=%p,", req->handle );
1163 fprintf( stderr, " flush=%d", req->flush );
1166 static void dump_read_console_input_reply( const struct read_console_input_reply *req )
1168 fprintf( stderr, " read=%d,", req->read );
1169 fprintf( stderr, " rec=" );
1170 dump_varargs_input_records( cur_size );
1173 static void dump_write_console_output_request( const struct write_console_output_request *req )
1175 fprintf( stderr, " handle=%p,", req->handle );
1176 fprintf( stderr, " x=%d,", req->x );
1177 fprintf( stderr, " y=%d,", req->y );
1178 fprintf( stderr, " mode=%d,", req->mode );
1179 fprintf( stderr, " wrap=%d,", req->wrap );
1180 fprintf( stderr, " data=" );
1181 dump_varargs_bytes( cur_size );
1184 static void dump_write_console_output_reply( const struct write_console_output_reply *req )
1186 fprintf( stderr, " written=%d,", req->written );
1187 fprintf( stderr, " width=%d,", req->width );
1188 fprintf( stderr, " height=%d", req->height );
1191 static void dump_fill_console_output_request( const struct fill_console_output_request *req )
1193 fprintf( stderr, " handle=%p,", req->handle );
1194 fprintf( stderr, " x=%d,", req->x );
1195 fprintf( stderr, " y=%d,", req->y );
1196 fprintf( stderr, " mode=%d,", req->mode );
1197 fprintf( stderr, " count=%d,", req->count );
1198 fprintf( stderr, " wrap=%d,", req->wrap );
1199 fprintf( stderr, " data=" );
1200 dump_char_info( &req->data );
1203 static void dump_fill_console_output_reply( const struct fill_console_output_reply *req )
1205 fprintf( stderr, " written=%d", req->written );
1208 static void dump_read_console_output_request( const struct read_console_output_request *req )
1210 fprintf( stderr, " handle=%p,", req->handle );
1211 fprintf( stderr, " x=%d,", req->x );
1212 fprintf( stderr, " y=%d,", req->y );
1213 fprintf( stderr, " mode=%d,", req->mode );
1214 fprintf( stderr, " wrap=%d", req->wrap );
1217 static void dump_read_console_output_reply( const struct read_console_output_reply *req )
1219 fprintf( stderr, " width=%d,", req->width );
1220 fprintf( stderr, " height=%d,", req->height );
1221 fprintf( stderr, " data=" );
1222 dump_varargs_bytes( cur_size );
1225 static void dump_move_console_output_request( const struct move_console_output_request *req )
1227 fprintf( stderr, " handle=%p,", req->handle );
1228 fprintf( stderr, " x_src=%d,", req->x_src );
1229 fprintf( stderr, " y_src=%d,", req->y_src );
1230 fprintf( stderr, " x_dst=%d,", req->x_dst );
1231 fprintf( stderr, " y_dst=%d,", req->y_dst );
1232 fprintf( stderr, " w=%d,", req->w );
1233 fprintf( stderr, " h=%d", req->h );
1236 static void dump_send_console_signal_request( const struct send_console_signal_request *req )
1238 fprintf( stderr, " signal=%d,", req->signal );
1239 fprintf( stderr, " group_id=%04x", req->group_id );
1242 static void dump_create_change_notification_request( const struct create_change_notification_request *req )
1244 fprintf( stderr, " subtree=%d,", req->subtree );
1245 fprintf( stderr, " filter=%d", req->filter );
1248 static void dump_create_change_notification_reply( const struct create_change_notification_reply *req )
1250 fprintf( stderr, " handle=%p", req->handle );
1253 static void dump_create_mapping_request( const struct create_mapping_request *req )
1255 fprintf( stderr, " size_high=%d,", req->size_high );
1256 fprintf( stderr, " size_low=%d,", req->size_low );
1257 fprintf( stderr, " protect=%d,", req->protect );
1258 fprintf( stderr, " access=%08x,", req->access );
1259 fprintf( stderr, " inherit=%d,", req->inherit );
1260 fprintf( stderr, " file_handle=%p,", req->file_handle );
1261 fprintf( stderr, " name=" );
1262 dump_varargs_unicode_str( cur_size );
1265 static void dump_create_mapping_reply( const struct create_mapping_reply *req )
1267 fprintf( stderr, " handle=%p", req->handle );
1270 static void dump_open_mapping_request( const struct open_mapping_request *req )
1272 fprintf( stderr, " access=%08x,", req->access );
1273 fprintf( stderr, " inherit=%d,", req->inherit );
1274 fprintf( stderr, " name=" );
1275 dump_varargs_unicode_str( cur_size );
1278 static void dump_open_mapping_reply( const struct open_mapping_reply *req )
1280 fprintf( stderr, " handle=%p", req->handle );
1283 static void dump_get_mapping_info_request( const struct get_mapping_info_request *req )
1285 fprintf( stderr, " handle=%p", req->handle );
1288 static void dump_get_mapping_info_reply( const struct get_mapping_info_reply *req )
1290 fprintf( stderr, " size_high=%d,", req->size_high );
1291 fprintf( stderr, " size_low=%d,", req->size_low );
1292 fprintf( stderr, " protect=%d,", req->protect );
1293 fprintf( stderr, " header_size=%d,", req->header_size );
1294 fprintf( stderr, " base=%p,", req->base );
1295 fprintf( stderr, " shared_file=%p,", req->shared_file );
1296 fprintf( stderr, " shared_size=%d,", req->shared_size );
1297 fprintf( stderr, " drive_type=%d", req->drive_type );
1300 static void dump_create_device_request( const struct create_device_request *req )
1302 fprintf( stderr, " access=%08x,", req->access );
1303 fprintf( stderr, " inherit=%d,", req->inherit );
1304 fprintf( stderr, " id=%d", req->id );
1307 static void dump_create_device_reply( const struct create_device_reply *req )
1309 fprintf( stderr, " handle=%p", req->handle );
1312 static void dump_get_device_id_request( const struct get_device_id_request *req )
1314 fprintf( stderr, " handle=%p", req->handle );
1317 static void dump_get_device_id_reply( const struct get_device_id_reply *req )
1319 fprintf( stderr, " id=%d", req->id );
1322 static void dump_create_snapshot_request( const struct create_snapshot_request *req )
1324 fprintf( stderr, " inherit=%d,", req->inherit );
1325 fprintf( stderr, " flags=%d,", req->flags );
1326 fprintf( stderr, " pid=%04x", req->pid );
1329 static void dump_create_snapshot_reply( const struct create_snapshot_reply *req )
1331 fprintf( stderr, " handle=%p", req->handle );
1334 static void dump_next_process_request( const struct next_process_request *req )
1336 fprintf( stderr, " handle=%p,", req->handle );
1337 fprintf( stderr, " reset=%d", req->reset );
1340 static void dump_next_process_reply( const struct next_process_reply *req )
1342 fprintf( stderr, " count=%d,", req->count );
1343 fprintf( stderr, " pid=%04x,", req->pid );
1344 fprintf( stderr, " ppid=%04x,", req->ppid );
1345 fprintf( stderr, " heap=%p,", req->heap );
1346 fprintf( stderr, " module=%p,", req->module );
1347 fprintf( stderr, " threads=%d,", req->threads );
1348 fprintf( stderr, " priority=%d,", req->priority );
1349 fprintf( stderr, " filename=" );
1350 dump_varargs_string( cur_size );
1353 static void dump_next_thread_request( const struct next_thread_request *req )
1355 fprintf( stderr, " handle=%p,", req->handle );
1356 fprintf( stderr, " reset=%d", req->reset );
1359 static void dump_next_thread_reply( const struct next_thread_reply *req )
1361 fprintf( stderr, " count=%d,", req->count );
1362 fprintf( stderr, " pid=%04x,", req->pid );
1363 fprintf( stderr, " tid=%04x,", req->tid );
1364 fprintf( stderr, " base_pri=%d,", req->base_pri );
1365 fprintf( stderr, " delta_pri=%d", req->delta_pri );
1368 static void dump_next_module_request( const struct next_module_request *req )
1370 fprintf( stderr, " handle=%p,", req->handle );
1371 fprintf( stderr, " reset=%d", req->reset );
1374 static void dump_next_module_reply( const struct next_module_reply *req )
1376 fprintf( stderr, " pid=%04x,", req->pid );
1377 fprintf( stderr, " base=%p,", req->base );
1378 fprintf( stderr, " size=%d,", req->size );
1379 fprintf( stderr, " filename=" );
1380 dump_varargs_string( cur_size );
1383 static void dump_wait_debug_event_request( const struct wait_debug_event_request *req )
1385 fprintf( stderr, " get_handle=%d", req->get_handle );
1388 static void dump_wait_debug_event_reply( const struct wait_debug_event_reply *req )
1390 fprintf( stderr, " pid=%04x,", req->pid );
1391 fprintf( stderr, " tid=%04x,", req->tid );
1392 fprintf( stderr, " wait=%p,", req->wait );
1393 fprintf( stderr, " event=" );
1394 dump_varargs_debug_event( cur_size );
1397 static void dump_queue_exception_event_request( const struct queue_exception_event_request *req )
1399 fprintf( stderr, " first=%d,", req->first );
1400 fprintf( stderr, " record=" );
1401 dump_varargs_exc_event( cur_size );
1404 static void dump_queue_exception_event_reply( const struct queue_exception_event_reply *req )
1406 fprintf( stderr, " handle=%p", req->handle );
1409 static void dump_get_exception_status_request( const struct get_exception_status_request *req )
1411 fprintf( stderr, " handle=%p", req->handle );
1414 static void dump_get_exception_status_reply( const struct get_exception_status_reply *req )
1416 fprintf( stderr, " status=%d,", req->status );
1417 fprintf( stderr, " context=" );
1418 dump_varargs_context( cur_size );
1421 static void dump_output_debug_string_request( const struct output_debug_string_request *req )
1423 fprintf( stderr, " string=%p,", req->string );
1424 fprintf( stderr, " unicode=%d,", req->unicode );
1425 fprintf( stderr, " length=%d", req->length );
1428 static void dump_continue_debug_event_request( const struct continue_debug_event_request *req )
1430 fprintf( stderr, " pid=%04x,", req->pid );
1431 fprintf( stderr, " tid=%04x,", req->tid );
1432 fprintf( stderr, " status=%d", req->status );
1435 static void dump_debug_process_request( const struct debug_process_request *req )
1437 fprintf( stderr, " pid=%04x,", req->pid );
1438 fprintf( stderr, " attach=%d", req->attach );
1441 static void dump_debug_break_request( const struct debug_break_request *req )
1443 fprintf( stderr, " handle=%p", req->handle );
1446 static void dump_debug_break_reply( const struct debug_break_reply *req )
1448 fprintf( stderr, " self=%d", req->self );
1451 static void dump_set_debugger_kill_on_exit_request( const struct set_debugger_kill_on_exit_request *req )
1453 fprintf( stderr, " kill_on_exit=%d", req->kill_on_exit );
1456 static void dump_read_process_memory_request( const struct read_process_memory_request *req )
1458 fprintf( stderr, " handle=%p,", req->handle );
1459 fprintf( stderr, " addr=%p", req->addr );
1462 static void dump_read_process_memory_reply( const struct read_process_memory_reply *req )
1464 fprintf( stderr, " data=" );
1465 dump_varargs_bytes( cur_size );
1468 static void dump_write_process_memory_request( const struct write_process_memory_request *req )
1470 fprintf( stderr, " handle=%p,", req->handle );
1471 fprintf( stderr, " addr=%p,", req->addr );
1472 fprintf( stderr, " first_mask=%08x,", req->first_mask );
1473 fprintf( stderr, " last_mask=%08x,", req->last_mask );
1474 fprintf( stderr, " data=" );
1475 dump_varargs_bytes( cur_size );
1478 static void dump_create_key_request( const struct create_key_request *req )
1480 fprintf( stderr, " parent=%p,", req->parent );
1481 fprintf( stderr, " access=%08x,", req->access );
1482 fprintf( stderr, " options=%08x,", req->options );
1483 fprintf( stderr, " modif=%ld,", req->modif );
1484 fprintf( stderr, " namelen=%d,", req->namelen );
1485 fprintf( stderr, " name=" );
1486 dump_varargs_unicode_str( min(cur_size,req->namelen) );
1487 fputc( ',', stderr );
1488 fprintf( stderr, " class=" );
1489 dump_varargs_unicode_str( cur_size );
1492 static void dump_create_key_reply( const struct create_key_reply *req )
1494 fprintf( stderr, " hkey=%p,", req->hkey );
1495 fprintf( stderr, " created=%d", req->created );
1498 static void dump_open_key_request( const struct open_key_request *req )
1500 fprintf( stderr, " parent=%p,", req->parent );
1501 fprintf( stderr, " access=%08x,", req->access );
1502 fprintf( stderr, " name=" );
1503 dump_varargs_unicode_str( cur_size );
1506 static void dump_open_key_reply( const struct open_key_reply *req )
1508 fprintf( stderr, " hkey=%p", req->hkey );
1511 static void dump_delete_key_request( const struct delete_key_request *req )
1513 fprintf( stderr, " hkey=%p", req->hkey );
1516 static void dump_enum_key_request( const struct enum_key_request *req )
1518 fprintf( stderr, " hkey=%p,", req->hkey );
1519 fprintf( stderr, " index=%d,", req->index );
1520 fprintf( stderr, " info_class=%d", req->info_class );
1523 static void dump_enum_key_reply( const struct enum_key_reply *req )
1525 fprintf( stderr, " subkeys=%d,", req->subkeys );
1526 fprintf( stderr, " max_subkey=%d,", req->max_subkey );
1527 fprintf( stderr, " max_class=%d,", req->max_class );
1528 fprintf( stderr, " values=%d,", req->values );
1529 fprintf( stderr, " max_value=%d,", req->max_value );
1530 fprintf( stderr, " max_data=%d,", req->max_data );
1531 fprintf( stderr, " modif=%ld,", req->modif );
1532 fprintf( stderr, " total=%d,", req->total );
1533 fprintf( stderr, " namelen=%d,", req->namelen );
1534 fprintf( stderr, " name=" );
1535 dump_varargs_unicode_str( min(cur_size,req->namelen) );
1536 fputc( ',', stderr );
1537 fprintf( stderr, " class=" );
1538 dump_varargs_unicode_str( cur_size );
1541 static void dump_set_key_value_request( const struct set_key_value_request *req )
1543 fprintf( stderr, " hkey=%p,", req->hkey );
1544 fprintf( stderr, " type=%d,", req->type );
1545 fprintf( stderr, " namelen=%d,", req->namelen );
1546 fprintf( stderr, " name=" );
1547 dump_varargs_unicode_str( min(cur_size,req->namelen) );
1548 fputc( ',', stderr );
1549 fprintf( stderr, " data=" );
1550 dump_varargs_bytes( cur_size );
1553 static void dump_get_key_value_request( const struct get_key_value_request *req )
1555 fprintf( stderr, " hkey=%p,", req->hkey );
1556 fprintf( stderr, " name=" );
1557 dump_varargs_unicode_str( cur_size );
1560 static void dump_get_key_value_reply( const struct get_key_value_reply *req )
1562 fprintf( stderr, " type=%d,", req->type );
1563 fprintf( stderr, " total=%d,", req->total );
1564 fprintf( stderr, " data=" );
1565 dump_varargs_bytes( cur_size );
1568 static void dump_enum_key_value_request( const struct enum_key_value_request *req )
1570 fprintf( stderr, " hkey=%p,", req->hkey );
1571 fprintf( stderr, " index=%d,", req->index );
1572 fprintf( stderr, " info_class=%d", req->info_class );
1575 static void dump_enum_key_value_reply( const struct enum_key_value_reply *req )
1577 fprintf( stderr, " type=%d,", req->type );
1578 fprintf( stderr, " total=%d,", req->total );
1579 fprintf( stderr, " namelen=%d,", req->namelen );
1580 fprintf( stderr, " name=" );
1581 dump_varargs_unicode_str( min(cur_size,req->namelen) );
1582 fputc( ',', stderr );
1583 fprintf( stderr, " data=" );
1584 dump_varargs_bytes( cur_size );
1587 static void dump_delete_key_value_request( const struct delete_key_value_request *req )
1589 fprintf( stderr, " hkey=%p,", req->hkey );
1590 fprintf( stderr, " name=" );
1591 dump_varargs_unicode_str( cur_size );
1594 static void dump_load_registry_request( const struct load_registry_request *req )
1596 fprintf( stderr, " hkey=%p,", req->hkey );
1597 fprintf( stderr, " file=%p,", req->file );
1598 fprintf( stderr, " name=" );
1599 dump_varargs_unicode_str( cur_size );
1602 static void dump_save_registry_request( const struct save_registry_request *req )
1604 fprintf( stderr, " hkey=%p,", req->hkey );
1605 fprintf( stderr, " file=%p", req->file );
1608 static void dump_save_registry_atexit_request( const struct save_registry_atexit_request *req )
1610 fprintf( stderr, " hkey=%p,", req->hkey );
1611 fprintf( stderr, " file=" );
1612 dump_varargs_string( cur_size );
1615 static void dump_set_registry_levels_request( const struct set_registry_levels_request *req )
1617 fprintf( stderr, " current=%d,", req->current );
1618 fprintf( stderr, " saving=%d,", req->saving );
1619 fprintf( stderr, " period=%d", req->period );
1622 static void dump_set_registry_notification_request( const struct set_registry_notification_request *req )
1624 fprintf( stderr, " hkey=%p,", req->hkey );
1625 fprintf( stderr, " event=%p,", req->event );
1626 fprintf( stderr, " subtree=%d,", req->subtree );
1627 fprintf( stderr, " filter=%08x", req->filter );
1630 static void dump_create_timer_request( const struct create_timer_request *req )
1632 fprintf( stderr, " inherit=%d,", req->inherit );
1633 fprintf( stderr, " manual=%d,", req->manual );
1634 fprintf( stderr, " name=" );
1635 dump_varargs_unicode_str( cur_size );
1638 static void dump_create_timer_reply( const struct create_timer_reply *req )
1640 fprintf( stderr, " handle=%p", req->handle );
1643 static void dump_open_timer_request( const struct open_timer_request *req )
1645 fprintf( stderr, " access=%08x,", req->access );
1646 fprintf( stderr, " inherit=%d,", req->inherit );
1647 fprintf( stderr, " name=" );
1648 dump_varargs_unicode_str( cur_size );
1651 static void dump_open_timer_reply( const struct open_timer_reply *req )
1653 fprintf( stderr, " handle=%p", req->handle );
1656 static void dump_set_timer_request( const struct set_timer_request *req )
1658 fprintf( stderr, " handle=%p,", req->handle );
1659 fprintf( stderr, " sec=%d,", req->sec );
1660 fprintf( stderr, " usec=%d,", req->usec );
1661 fprintf( stderr, " period=%d,", req->period );
1662 fprintf( stderr, " callback=%p,", req->callback );
1663 fprintf( stderr, " arg=%p", req->arg );
1666 static void dump_cancel_timer_request( const struct cancel_timer_request *req )
1668 fprintf( stderr, " handle=%p", req->handle );
1671 static void dump_get_thread_context_request( const struct get_thread_context_request *req )
1673 fprintf( stderr, " handle=%p,", req->handle );
1674 fprintf( stderr, " flags=%08x", req->flags );
1677 static void dump_get_thread_context_reply( const struct get_thread_context_reply *req )
1679 fprintf( stderr, " context=" );
1680 dump_varargs_context( cur_size );
1683 static void dump_set_thread_context_request( const struct set_thread_context_request *req )
1685 fprintf( stderr, " handle=%p,", req->handle );
1686 fprintf( stderr, " flags=%08x,", req->flags );
1687 fprintf( stderr, " context=" );
1688 dump_varargs_context( cur_size );
1691 static void dump_get_selector_entry_request( const struct get_selector_entry_request *req )
1693 fprintf( stderr, " handle=%p,", req->handle );
1694 fprintf( stderr, " entry=%d", req->entry );
1697 static void dump_get_selector_entry_reply( const struct get_selector_entry_reply *req )
1699 fprintf( stderr, " base=%08x,", req->base );
1700 fprintf( stderr, " limit=%08x,", req->limit );
1701 fprintf( stderr, " flags=%02x", req->flags );
1704 static void dump_add_atom_request( const struct add_atom_request *req )
1706 fprintf( stderr, " local=%d,", req->local );
1707 fprintf( stderr, " name=" );
1708 dump_varargs_unicode_str( cur_size );
1711 static void dump_add_atom_reply( const struct add_atom_reply *req )
1713 fprintf( stderr, " atom=%04x", req->atom );
1716 static void dump_delete_atom_request( const struct delete_atom_request *req )
1718 fprintf( stderr, " atom=%04x,", req->atom );
1719 fprintf( stderr, " local=%d", req->local );
1722 static void dump_find_atom_request( const struct find_atom_request *req )
1724 fprintf( stderr, " local=%d,", req->local );
1725 fprintf( stderr, " name=" );
1726 dump_varargs_unicode_str( cur_size );
1729 static void dump_find_atom_reply( const struct find_atom_reply *req )
1731 fprintf( stderr, " atom=%04x", req->atom );
1734 static void dump_get_atom_name_request( const struct get_atom_name_request *req )
1736 fprintf( stderr, " atom=%04x,", req->atom );
1737 fprintf( stderr, " local=%d", req->local );
1740 static void dump_get_atom_name_reply( const struct get_atom_name_reply *req )
1742 fprintf( stderr, " count=%d,", req->count );
1743 fprintf( stderr, " name=" );
1744 dump_varargs_unicode_str( cur_size );
1747 static void dump_init_atom_table_request( const struct init_atom_table_request *req )
1749 fprintf( stderr, " entries=%d", req->entries );
1752 static void dump_get_msg_queue_request( const struct get_msg_queue_request *req )
1756 static void dump_get_msg_queue_reply( const struct get_msg_queue_reply *req )
1758 fprintf( stderr, " handle=%p", req->handle );
1761 static void dump_set_queue_mask_request( const struct set_queue_mask_request *req )
1763 fprintf( stderr, " wake_mask=%08x,", req->wake_mask );
1764 fprintf( stderr, " changed_mask=%08x,", req->changed_mask );
1765 fprintf( stderr, " skip_wait=%d", req->skip_wait );
1768 static void dump_set_queue_mask_reply( const struct set_queue_mask_reply *req )
1770 fprintf( stderr, " wake_bits=%08x,", req->wake_bits );
1771 fprintf( stderr, " changed_bits=%08x", req->changed_bits );
1774 static void dump_get_queue_status_request( const struct get_queue_status_request *req )
1776 fprintf( stderr, " clear=%d", req->clear );
1779 static void dump_get_queue_status_reply( const struct get_queue_status_reply *req )
1781 fprintf( stderr, " wake_bits=%08x,", req->wake_bits );
1782 fprintf( stderr, " changed_bits=%08x", req->changed_bits );
1785 static void dump_wait_input_idle_request( const struct wait_input_idle_request *req )
1787 fprintf( stderr, " handle=%p,", req->handle );
1788 fprintf( stderr, " timeout=%d", req->timeout );
1791 static void dump_wait_input_idle_reply( const struct wait_input_idle_reply *req )
1793 fprintf( stderr, " event=%p", req->event );
1796 static void dump_send_message_request( const struct send_message_request *req )
1798 fprintf( stderr, " id=%04x,", req->id );
1799 fprintf( stderr, " type=%d,", req->type );
1800 fprintf( stderr, " win=%p,", req->win );
1801 fprintf( stderr, " msg=%08x,", req->msg );
1802 fprintf( stderr, " wparam=%08x,", req->wparam );
1803 fprintf( stderr, " lparam=%08x,", req->lparam );
1804 fprintf( stderr, " x=%d,", req->x );
1805 fprintf( stderr, " y=%d,", req->y );
1806 fprintf( stderr, " time=%08x,", req->time );
1807 fprintf( stderr, " info=%08x,", req->info );
1808 fprintf( stderr, " timeout=%d,", req->timeout );
1809 fprintf( stderr, " data=" );
1810 dump_varargs_bytes( cur_size );
1813 static void dump_get_message_request( const struct get_message_request *req )
1815 fprintf( stderr, " flags=%d,", req->flags );
1816 fprintf( stderr, " get_win=%p,", req->get_win );
1817 fprintf( stderr, " get_first=%08x,", req->get_first );
1818 fprintf( stderr, " get_last=%08x", req->get_last );
1821 static void dump_get_message_reply( const struct get_message_reply *req )
1823 fprintf( stderr, " type=%d,", req->type );
1824 fprintf( stderr, " win=%p,", req->win );
1825 fprintf( stderr, " msg=%08x,", req->msg );
1826 fprintf( stderr, " wparam=%08x,", req->wparam );
1827 fprintf( stderr, " lparam=%08x,", req->lparam );
1828 fprintf( stderr, " x=%d,", req->x );
1829 fprintf( stderr, " y=%d,", req->y );
1830 fprintf( stderr, " time=%08x,", req->time );
1831 fprintf( stderr, " info=%08x,", req->info );
1832 fprintf( stderr, " total=%d,", req->total );
1833 fprintf( stderr, " data=" );
1834 dump_varargs_bytes( cur_size );
1837 static void dump_reply_message_request( const struct reply_message_request *req )
1839 fprintf( stderr, " type=%d,", req->type );
1840 fprintf( stderr, " result=%08x,", req->result );
1841 fprintf( stderr, " remove=%d,", req->remove );
1842 fprintf( stderr, " data=" );
1843 dump_varargs_bytes( cur_size );
1846 static void dump_get_message_reply_request( const struct get_message_reply_request *req )
1848 fprintf( stderr, " cancel=%d", req->cancel );
1851 static void dump_get_message_reply_reply( const struct get_message_reply_reply *req )
1853 fprintf( stderr, " result=%08x,", req->result );
1854 fprintf( stderr, " data=" );
1855 dump_varargs_bytes( cur_size );
1858 static void dump_set_win_timer_request( const struct set_win_timer_request *req )
1860 fprintf( stderr, " win=%p,", req->win );
1861 fprintf( stderr, " msg=%08x,", req->msg );
1862 fprintf( stderr, " id=%08x,", req->id );
1863 fprintf( stderr, " rate=%08x,", req->rate );
1864 fprintf( stderr, " lparam=%08x", req->lparam );
1867 static void dump_kill_win_timer_request( const struct kill_win_timer_request *req )
1869 fprintf( stderr, " win=%p,", req->win );
1870 fprintf( stderr, " msg=%08x,", req->msg );
1871 fprintf( stderr, " id=%08x", req->id );
1874 static void dump_create_serial_request( const struct create_serial_request *req )
1876 fprintf( stderr, " access=%08x,", req->access );
1877 fprintf( stderr, " inherit=%d,", req->inherit );
1878 fprintf( stderr, " attributes=%08x,", req->attributes );
1879 fprintf( stderr, " sharing=%08x,", req->sharing );
1880 fprintf( stderr, " name=" );
1881 dump_varargs_string( cur_size );
1884 static void dump_create_serial_reply( const struct create_serial_reply *req )
1886 fprintf( stderr, " handle=%p", req->handle );
1889 static void dump_get_serial_info_request( const struct get_serial_info_request *req )
1891 fprintf( stderr, " handle=%p", req->handle );
1894 static void dump_get_serial_info_reply( const struct get_serial_info_reply *req )
1896 fprintf( stderr, " readinterval=%08x,", req->readinterval );
1897 fprintf( stderr, " readconst=%08x,", req->readconst );
1898 fprintf( stderr, " readmult=%08x,", req->readmult );
1899 fprintf( stderr, " writeconst=%08x,", req->writeconst );
1900 fprintf( stderr, " writemult=%08x,", req->writemult );
1901 fprintf( stderr, " eventmask=%08x,", req->eventmask );
1902 fprintf( stderr, " commerror=%08x", req->commerror );
1905 static void dump_set_serial_info_request( const struct set_serial_info_request *req )
1907 fprintf( stderr, " handle=%p,", req->handle );
1908 fprintf( stderr, " flags=%d,", req->flags );
1909 fprintf( stderr, " readinterval=%08x,", req->readinterval );
1910 fprintf( stderr, " readconst=%08x,", req->readconst );
1911 fprintf( stderr, " readmult=%08x,", req->readmult );
1912 fprintf( stderr, " writeconst=%08x,", req->writeconst );
1913 fprintf( stderr, " writemult=%08x,", req->writemult );
1914 fprintf( stderr, " eventmask=%08x,", req->eventmask );
1915 fprintf( stderr, " commerror=%08x", req->commerror );
1918 static void dump_register_async_request( const struct register_async_request *req )
1920 fprintf( stderr, " handle=%p,", req->handle );
1921 fprintf( stderr, " type=%d,", req->type );
1922 fprintf( stderr, " overlapped=%p,", req->overlapped );
1923 fprintf( stderr, " count=%d,", req->count );
1924 fprintf( stderr, " status=%08x", req->status );
1927 static void dump_create_named_pipe_request( const struct create_named_pipe_request *req )
1929 fprintf( stderr, " openmode=%08x,", req->openmode );
1930 fprintf( stderr, " pipemode=%08x,", req->pipemode );
1931 fprintf( stderr, " maxinstances=%08x,", req->maxinstances );
1932 fprintf( stderr, " outsize=%08x,", req->outsize );
1933 fprintf( stderr, " insize=%08x,", req->insize );
1934 fprintf( stderr, " timeout=%08x,", req->timeout );
1935 fprintf( stderr, " name=" );
1936 dump_varargs_unicode_str( cur_size );
1939 static void dump_create_named_pipe_reply( const struct create_named_pipe_reply *req )
1941 fprintf( stderr, " handle=%p", req->handle );
1944 static void dump_open_named_pipe_request( const struct open_named_pipe_request *req )
1946 fprintf( stderr, " access=%08x,", req->access );
1947 fprintf( stderr, " name=" );
1948 dump_varargs_unicode_str( cur_size );
1951 static void dump_open_named_pipe_reply( const struct open_named_pipe_reply *req )
1953 fprintf( stderr, " handle=%p", req->handle );
1956 static void dump_connect_named_pipe_request( const struct connect_named_pipe_request *req )
1958 fprintf( stderr, " handle=%p,", req->handle );
1959 fprintf( stderr, " overlapped=%p,", req->overlapped );
1960 fprintf( stderr, " func=%p", req->func );
1963 static void dump_wait_named_pipe_request( const struct wait_named_pipe_request *req )
1965 fprintf( stderr, " timeout=%08x,", req->timeout );
1966 fprintf( stderr, " overlapped=%p,", req->overlapped );
1967 fprintf( stderr, " func=%p,", req->func );
1968 fprintf( stderr, " name=" );
1969 dump_varargs_unicode_str( cur_size );
1972 static void dump_disconnect_named_pipe_request( const struct disconnect_named_pipe_request *req )
1974 fprintf( stderr, " handle=%p", req->handle );
1977 static void dump_get_named_pipe_info_request( const struct get_named_pipe_info_request *req )
1979 fprintf( stderr, " handle=%p", req->handle );
1982 static void dump_get_named_pipe_info_reply( const struct get_named_pipe_info_reply *req )
1984 fprintf( stderr, " flags=%08x,", req->flags );
1985 fprintf( stderr, " maxinstances=%08x,", req->maxinstances );
1986 fprintf( stderr, " outsize=%08x,", req->outsize );
1987 fprintf( stderr, " insize=%08x", req->insize );
1990 static void dump_create_smb_request( const struct create_smb_request *req )
1992 fprintf( stderr, " fd=%d,", req->fd );
1993 fprintf( stderr, " tree_id=%08x,", req->tree_id );
1994 fprintf( stderr, " user_id=%08x,", req->user_id );
1995 fprintf( stderr, " file_id=%08x,", req->file_id );
1996 fprintf( stderr, " dialect=%08x", req->dialect );
1999 static void dump_create_smb_reply( const struct create_smb_reply *req )
2001 fprintf( stderr, " handle=%p", req->handle );
2004 static void dump_get_smb_info_request( const struct get_smb_info_request *req )
2006 fprintf( stderr, " handle=%p,", req->handle );
2007 fprintf( stderr, " flags=%08x,", req->flags );
2008 fprintf( stderr, " offset=%08x", req->offset );
2011 static void dump_get_smb_info_reply( const struct get_smb_info_reply *req )
2013 fprintf( stderr, " tree_id=%08x,", req->tree_id );
2014 fprintf( stderr, " user_id=%08x,", req->user_id );
2015 fprintf( stderr, " dialect=%08x,", req->dialect );
2016 fprintf( stderr, " file_id=%08x,", req->file_id );
2017 fprintf( stderr, " offset=%08x", req->offset );
2020 static void dump_create_window_request( const struct create_window_request *req )
2022 fprintf( stderr, " parent=%p,", req->parent );
2023 fprintf( stderr, " owner=%p,", req->owner );
2024 fprintf( stderr, " atom=%04x", req->atom );
2027 static void dump_create_window_reply( const struct create_window_reply *req )
2029 fprintf( stderr, " handle=%p", req->handle );
2032 static void dump_link_window_request( const struct link_window_request *req )
2034 fprintf( stderr, " handle=%p,", req->handle );
2035 fprintf( stderr, " parent=%p,", req->parent );
2036 fprintf( stderr, " previous=%p", req->previous );
2039 static void dump_link_window_reply( const struct link_window_reply *req )
2041 fprintf( stderr, " full_parent=%p", req->full_parent );
2044 static void dump_destroy_window_request( const struct destroy_window_request *req )
2046 fprintf( stderr, " handle=%p", req->handle );
2049 static void dump_set_window_owner_request( const struct set_window_owner_request *req )
2051 fprintf( stderr, " handle=%p,", req->handle );
2052 fprintf( stderr, " owner=%p", req->owner );
2055 static void dump_set_window_owner_reply( const struct set_window_owner_reply *req )
2057 fprintf( stderr, " full_owner=%p,", req->full_owner );
2058 fprintf( stderr, " prev_owner=%p", req->prev_owner );
2061 static void dump_get_window_info_request( const struct get_window_info_request *req )
2063 fprintf( stderr, " handle=%p", req->handle );
2066 static void dump_get_window_info_reply( const struct get_window_info_reply *req )
2068 fprintf( stderr, " full_handle=%p,", req->full_handle );
2069 fprintf( stderr, " last_active=%p,", req->last_active );
2070 fprintf( stderr, " pid=%04x,", req->pid );
2071 fprintf( stderr, " tid=%04x,", req->tid );
2072 fprintf( stderr, " atom=%04x", req->atom );
2075 static void dump_set_window_info_request( const struct set_window_info_request *req )
2077 fprintf( stderr, " handle=%p,", req->handle );
2078 fprintf( stderr, " flags=%08x,", req->flags );
2079 fprintf( stderr, " style=%08x,", req->style );
2080 fprintf( stderr, " ex_style=%08x,", req->ex_style );
2081 fprintf( stderr, " id=%08x,", req->id );
2082 fprintf( stderr, " instance=%p,", req->instance );
2083 fprintf( stderr, " user_data=%p", req->user_data );
2086 static void dump_set_window_info_reply( const struct set_window_info_reply *req )
2088 fprintf( stderr, " old_style=%08x,", req->old_style );
2089 fprintf( stderr, " old_ex_style=%08x,", req->old_ex_style );
2090 fprintf( stderr, " old_id=%08x,", req->old_id );
2091 fprintf( stderr, " old_instance=%p,", req->old_instance );
2092 fprintf( stderr, " old_user_data=%p", req->old_user_data );
2095 static void dump_get_window_parents_request( const struct get_window_parents_request *req )
2097 fprintf( stderr, " handle=%p", req->handle );
2100 static void dump_get_window_parents_reply( const struct get_window_parents_reply *req )
2102 fprintf( stderr, " count=%d,", req->count );
2103 fprintf( stderr, " parents=" );
2104 dump_varargs_user_handles( cur_size );
2107 static void dump_get_window_children_request( const struct get_window_children_request *req )
2109 fprintf( stderr, " parent=%p,", req->parent );
2110 fprintf( stderr, " atom=%04x,", req->atom );
2111 fprintf( stderr, " tid=%04x", req->tid );
2114 static void dump_get_window_children_reply( const struct get_window_children_reply *req )
2116 fprintf( stderr, " count=%d,", req->count );
2117 fprintf( stderr, " children=" );
2118 dump_varargs_user_handles( cur_size );
2121 static void dump_get_window_tree_request( const struct get_window_tree_request *req )
2123 fprintf( stderr, " handle=%p", req->handle );
2126 static void dump_get_window_tree_reply( const struct get_window_tree_reply *req )
2128 fprintf( stderr, " parent=%p,", req->parent );
2129 fprintf( stderr, " owner=%p,", req->owner );
2130 fprintf( stderr, " next_sibling=%p,", req->next_sibling );
2131 fprintf( stderr, " prev_sibling=%p,", req->prev_sibling );
2132 fprintf( stderr, " first_sibling=%p,", req->first_sibling );
2133 fprintf( stderr, " last_sibling=%p,", req->last_sibling );
2134 fprintf( stderr, " first_child=%p,", req->first_child );
2135 fprintf( stderr, " last_child=%p", req->last_child );
2138 static void dump_set_window_rectangles_request( const struct set_window_rectangles_request *req )
2140 fprintf( stderr, " handle=%p,", req->handle );
2141 fprintf( stderr, " window=" );
2142 dump_rectangle( &req->window );
2143 fprintf( stderr, "," );
2144 fprintf( stderr, " client=" );
2145 dump_rectangle( &req->client );
2148 static void dump_get_window_rectangles_request( const struct get_window_rectangles_request *req )
2150 fprintf( stderr, " handle=%p", req->handle );
2153 static void dump_get_window_rectangles_reply( const struct get_window_rectangles_reply *req )
2155 fprintf( stderr, " window=" );
2156 dump_rectangle( &req->window );
2157 fprintf( stderr, "," );
2158 fprintf( stderr, " client=" );
2159 dump_rectangle( &req->client );
2162 static void dump_get_window_text_request( const struct get_window_text_request *req )
2164 fprintf( stderr, " handle=%p", req->handle );
2167 static void dump_get_window_text_reply( const struct get_window_text_reply *req )
2169 fprintf( stderr, " text=" );
2170 dump_varargs_unicode_str( cur_size );
2173 static void dump_set_window_text_request( const struct set_window_text_request *req )
2175 fprintf( stderr, " handle=%p,", req->handle );
2176 fprintf( stderr, " text=" );
2177 dump_varargs_unicode_str( cur_size );
2180 static void dump_inc_window_paint_count_request( const struct inc_window_paint_count_request *req )
2182 fprintf( stderr, " handle=%p,", req->handle );
2183 fprintf( stderr, " incr=%d", req->incr );
2186 static void dump_get_windows_offset_request( const struct get_windows_offset_request *req )
2188 fprintf( stderr, " from=%p,", req->from );
2189 fprintf( stderr, " to=%p", req->to );
2192 static void dump_get_windows_offset_reply( const struct get_windows_offset_reply *req )
2194 fprintf( stderr, " x=%d,", req->x );
2195 fprintf( stderr, " y=%d", req->y );
2198 static void dump_set_window_property_request( const struct set_window_property_request *req )
2200 fprintf( stderr, " window=%p,", req->window );
2201 fprintf( stderr, " atom=%04x,", req->atom );
2202 fprintf( stderr, " string=%d,", req->string );
2203 fprintf( stderr, " handle=%p", req->handle );
2206 static void dump_remove_window_property_request( const struct remove_window_property_request *req )
2208 fprintf( stderr, " window=%p,", req->window );
2209 fprintf( stderr, " atom=%04x", req->atom );
2212 static void dump_remove_window_property_reply( const struct remove_window_property_reply *req )
2214 fprintf( stderr, " handle=%p", req->handle );
2217 static void dump_get_window_property_request( const struct get_window_property_request *req )
2219 fprintf( stderr, " window=%p,", req->window );
2220 fprintf( stderr, " atom=%04x", req->atom );
2223 static void dump_get_window_property_reply( const struct get_window_property_reply *req )
2225 fprintf( stderr, " handle=%p", req->handle );
2228 static void dump_get_window_properties_request( const struct get_window_properties_request *req )
2230 fprintf( stderr, " window=%p", req->window );
2233 static void dump_get_window_properties_reply( const struct get_window_properties_reply *req )
2235 fprintf( stderr, " total=%d,", req->total );
2236 fprintf( stderr, " props=" );
2237 dump_varargs_properties( cur_size );
2240 static void dump_attach_thread_input_request( const struct attach_thread_input_request *req )
2242 fprintf( stderr, " tid_from=%04x,", req->tid_from );
2243 fprintf( stderr, " tid_to=%04x,", req->tid_to );
2244 fprintf( stderr, " attach=%d", req->attach );
2247 static void dump_get_thread_input_request( const struct get_thread_input_request *req )
2249 fprintf( stderr, " tid=%04x", req->tid );
2252 static void dump_get_thread_input_reply( const struct get_thread_input_reply *req )
2254 fprintf( stderr, " focus=%p,", req->focus );
2255 fprintf( stderr, " capture=%p,", req->capture );
2256 fprintf( stderr, " active=%p,", req->active );
2257 fprintf( stderr, " foreground=%p,", req->foreground );
2258 fprintf( stderr, " menu_owner=%p,", req->menu_owner );
2259 fprintf( stderr, " move_size=%p,", req->move_size );
2260 fprintf( stderr, " caret=%p,", req->caret );
2261 fprintf( stderr, " rect=" );
2262 dump_rectangle( &req->rect );
2265 static void dump_get_key_state_request( const struct get_key_state_request *req )
2267 fprintf( stderr, " tid=%04x,", req->tid );
2268 fprintf( stderr, " key=%d", req->key );
2271 static void dump_get_key_state_reply( const struct get_key_state_reply *req )
2273 fprintf( stderr, " state=%02x,", req->state );
2274 fprintf( stderr, " keystate=" );
2275 dump_varargs_bytes( cur_size );
2278 static void dump_set_key_state_request( const struct set_key_state_request *req )
2280 fprintf( stderr, " tid=%04x,", req->tid );
2281 fprintf( stderr, " keystate=" );
2282 dump_varargs_bytes( cur_size );
2285 static void dump_set_foreground_window_request( const struct set_foreground_window_request *req )
2287 fprintf( stderr, " handle=%p", req->handle );
2290 static void dump_set_foreground_window_reply( const struct set_foreground_window_reply *req )
2292 fprintf( stderr, " previous=%p,", req->previous );
2293 fprintf( stderr, " send_msg_old=%d,", req->send_msg_old );
2294 fprintf( stderr, " send_msg_new=%d", req->send_msg_new );
2297 static void dump_set_focus_window_request( const struct set_focus_window_request *req )
2299 fprintf( stderr, " handle=%p", req->handle );
2302 static void dump_set_focus_window_reply( const struct set_focus_window_reply *req )
2304 fprintf( stderr, " previous=%p", req->previous );
2307 static void dump_set_active_window_request( const struct set_active_window_request *req )
2309 fprintf( stderr, " handle=%p", req->handle );
2312 static void dump_set_active_window_reply( const struct set_active_window_reply *req )
2314 fprintf( stderr, " previous=%p", req->previous );
2317 static void dump_set_capture_window_request( const struct set_capture_window_request *req )
2319 fprintf( stderr, " handle=%p,", req->handle );
2320 fprintf( stderr, " flags=%08x", req->flags );
2323 static void dump_set_capture_window_reply( const struct set_capture_window_reply *req )
2325 fprintf( stderr, " previous=%p,", req->previous );
2326 fprintf( stderr, " full_handle=%p", req->full_handle );
2329 static void dump_set_caret_window_request( const struct set_caret_window_request *req )
2331 fprintf( stderr, " handle=%p,", req->handle );
2332 fprintf( stderr, " width=%d,", req->width );
2333 fprintf( stderr, " height=%d", req->height );
2336 static void dump_set_caret_window_reply( const struct set_caret_window_reply *req )
2338 fprintf( stderr, " previous=%p,", req->previous );
2339 fprintf( stderr, " old_rect=" );
2340 dump_rectangle( &req->old_rect );
2341 fprintf( stderr, "," );
2342 fprintf( stderr, " old_hide=%d,", req->old_hide );
2343 fprintf( stderr, " old_state=%d", req->old_state );
2346 static void dump_set_caret_info_request( const struct set_caret_info_request *req )
2348 fprintf( stderr, " flags=%08x,", req->flags );
2349 fprintf( stderr, " handle=%p,", req->handle );
2350 fprintf( stderr, " x=%d,", req->x );
2351 fprintf( stderr, " y=%d,", req->y );
2352 fprintf( stderr, " hide=%d,", req->hide );
2353 fprintf( stderr, " state=%d", req->state );
2356 static void dump_set_caret_info_reply( const struct set_caret_info_reply *req )
2358 fprintf( stderr, " full_handle=%p,", req->full_handle );
2359 fprintf( stderr, " old_rect=" );
2360 dump_rectangle( &req->old_rect );
2361 fprintf( stderr, "," );
2362 fprintf( stderr, " old_hide=%d,", req->old_hide );
2363 fprintf( stderr, " old_state=%d", req->old_state );
2366 static void dump_set_hook_request( const struct set_hook_request *req )
2368 fprintf( stderr, " id=%d,", req->id );
2369 fprintf( stderr, " tid=%04x,", req->tid );
2370 fprintf( stderr, " proc=%p,", req->proc );
2371 fprintf( stderr, " unicode=%d,", req->unicode );
2372 fprintf( stderr, " module=" );
2373 dump_varargs_unicode_str( cur_size );
2376 static void dump_set_hook_reply( const struct set_hook_reply *req )
2378 fprintf( stderr, " handle=%p", req->handle );
2381 static void dump_remove_hook_request( const struct remove_hook_request *req )
2383 fprintf( stderr, " handle=%p,", req->handle );
2384 fprintf( stderr, " id=%d,", req->id );
2385 fprintf( stderr, " proc=%p", req->proc );
2388 static void dump_start_hook_chain_request( const struct start_hook_chain_request *req )
2390 fprintf( stderr, " id=%d", req->id );
2393 static void dump_start_hook_chain_reply( const struct start_hook_chain_reply *req )
2395 fprintf( stderr, " handle=%p,", req->handle );
2396 fprintf( stderr, " proc=%p,", req->proc );
2397 fprintf( stderr, " unicode=%d,", req->unicode );
2398 fprintf( stderr, " module=" );
2399 dump_varargs_unicode_str( cur_size );
2402 static void dump_finish_hook_chain_request( const struct finish_hook_chain_request *req )
2404 fprintf( stderr, " id=%d", req->id );
2407 static void dump_get_next_hook_request( const struct get_next_hook_request *req )
2409 fprintf( stderr, " handle=%p", req->handle );
2412 static void dump_get_next_hook_reply( const struct get_next_hook_reply *req )
2414 fprintf( stderr, " next=%p,", req->next );
2415 fprintf( stderr, " id=%d,", req->id );
2416 fprintf( stderr, " proc=%p,", req->proc );
2417 fprintf( stderr, " prev_unicode=%d,", req->prev_unicode );
2418 fprintf( stderr, " next_unicode=%d,", req->next_unicode );
2419 fprintf( stderr, " module=" );
2420 dump_varargs_unicode_str( cur_size );
2423 static const dump_func req_dumpers[REQ_NB_REQUESTS] = {
2424 (dump_func)dump_new_process_request,
2425 (dump_func)dump_get_new_process_info_request,
2426 (dump_func)dump_new_thread_request,
2427 (dump_func)dump_boot_done_request,
2428 (dump_func)dump_init_process_request,
2429 (dump_func)dump_get_startup_info_request,
2430 (dump_func)dump_init_process_done_request,
2431 (dump_func)dump_init_thread_request,
2432 (dump_func)dump_terminate_process_request,
2433 (dump_func)dump_terminate_thread_request,
2434 (dump_func)dump_get_process_info_request,
2435 (dump_func)dump_set_process_info_request,
2436 (dump_func)dump_get_thread_info_request,
2437 (dump_func)dump_set_thread_info_request,
2438 (dump_func)dump_get_dll_info_request,
2439 (dump_func)dump_suspend_thread_request,
2440 (dump_func)dump_resume_thread_request,
2441 (dump_func)dump_load_dll_request,
2442 (dump_func)dump_unload_dll_request,
2443 (dump_func)dump_queue_apc_request,
2444 (dump_func)dump_get_apc_request,
2445 (dump_func)dump_close_handle_request,
2446 (dump_func)dump_set_handle_info_request,
2447 (dump_func)dump_dup_handle_request,
2448 (dump_func)dump_open_process_request,
2449 (dump_func)dump_open_thread_request,
2450 (dump_func)dump_select_request,
2451 (dump_func)dump_create_event_request,
2452 (dump_func)dump_event_op_request,
2453 (dump_func)dump_open_event_request,
2454 (dump_func)dump_create_mutex_request,
2455 (dump_func)dump_release_mutex_request,
2456 (dump_func)dump_open_mutex_request,
2457 (dump_func)dump_create_semaphore_request,
2458 (dump_func)dump_release_semaphore_request,
2459 (dump_func)dump_open_semaphore_request,
2460 (dump_func)dump_create_file_request,
2461 (dump_func)dump_alloc_file_handle_request,
2462 (dump_func)dump_get_handle_fd_request,
2463 (dump_func)dump_set_file_pointer_request,
2464 (dump_func)dump_truncate_file_request,
2465 (dump_func)dump_set_file_time_request,
2466 (dump_func)dump_flush_file_request,
2467 (dump_func)dump_get_file_info_request,
2468 (dump_func)dump_lock_file_request,
2469 (dump_func)dump_unlock_file_request,
2470 (dump_func)dump_create_pipe_request,
2471 (dump_func)dump_create_socket_request,
2472 (dump_func)dump_accept_socket_request,
2473 (dump_func)dump_set_socket_event_request,
2474 (dump_func)dump_get_socket_event_request,
2475 (dump_func)dump_enable_socket_event_request,
2476 (dump_func)dump_set_socket_deferred_request,
2477 (dump_func)dump_alloc_console_request,
2478 (dump_func)dump_free_console_request,
2479 (dump_func)dump_get_console_renderer_events_request,
2480 (dump_func)dump_open_console_request,
2481 (dump_func)dump_get_console_mode_request,
2482 (dump_func)dump_set_console_mode_request,
2483 (dump_func)dump_set_console_input_info_request,
2484 (dump_func)dump_get_console_input_info_request,
2485 (dump_func)dump_append_console_input_history_request,
2486 (dump_func)dump_get_console_input_history_request,
2487 (dump_func)dump_create_console_output_request,
2488 (dump_func)dump_set_console_output_info_request,
2489 (dump_func)dump_get_console_output_info_request,
2490 (dump_func)dump_write_console_input_request,
2491 (dump_func)dump_read_console_input_request,
2492 (dump_func)dump_write_console_output_request,
2493 (dump_func)dump_fill_console_output_request,
2494 (dump_func)dump_read_console_output_request,
2495 (dump_func)dump_move_console_output_request,
2496 (dump_func)dump_send_console_signal_request,
2497 (dump_func)dump_create_change_notification_request,
2498 (dump_func)dump_create_mapping_request,
2499 (dump_func)dump_open_mapping_request,
2500 (dump_func)dump_get_mapping_info_request,
2501 (dump_func)dump_create_device_request,
2502 (dump_func)dump_get_device_id_request,
2503 (dump_func)dump_create_snapshot_request,
2504 (dump_func)dump_next_process_request,
2505 (dump_func)dump_next_thread_request,
2506 (dump_func)dump_next_module_request,
2507 (dump_func)dump_wait_debug_event_request,
2508 (dump_func)dump_queue_exception_event_request,
2509 (dump_func)dump_get_exception_status_request,
2510 (dump_func)dump_output_debug_string_request,
2511 (dump_func)dump_continue_debug_event_request,
2512 (dump_func)dump_debug_process_request,
2513 (dump_func)dump_debug_break_request,
2514 (dump_func)dump_set_debugger_kill_on_exit_request,
2515 (dump_func)dump_read_process_memory_request,
2516 (dump_func)dump_write_process_memory_request,
2517 (dump_func)dump_create_key_request,
2518 (dump_func)dump_open_key_request,
2519 (dump_func)dump_delete_key_request,
2520 (dump_func)dump_enum_key_request,
2521 (dump_func)dump_set_key_value_request,
2522 (dump_func)dump_get_key_value_request,
2523 (dump_func)dump_enum_key_value_request,
2524 (dump_func)dump_delete_key_value_request,
2525 (dump_func)dump_load_registry_request,
2526 (dump_func)dump_save_registry_request,
2527 (dump_func)dump_save_registry_atexit_request,
2528 (dump_func)dump_set_registry_levels_request,
2529 (dump_func)dump_set_registry_notification_request,
2530 (dump_func)dump_create_timer_request,
2531 (dump_func)dump_open_timer_request,
2532 (dump_func)dump_set_timer_request,
2533 (dump_func)dump_cancel_timer_request,
2534 (dump_func)dump_get_thread_context_request,
2535 (dump_func)dump_set_thread_context_request,
2536 (dump_func)dump_get_selector_entry_request,
2537 (dump_func)dump_add_atom_request,
2538 (dump_func)dump_delete_atom_request,
2539 (dump_func)dump_find_atom_request,
2540 (dump_func)dump_get_atom_name_request,
2541 (dump_func)dump_init_atom_table_request,
2542 (dump_func)dump_get_msg_queue_request,
2543 (dump_func)dump_set_queue_mask_request,
2544 (dump_func)dump_get_queue_status_request,
2545 (dump_func)dump_wait_input_idle_request,
2546 (dump_func)dump_send_message_request,
2547 (dump_func)dump_get_message_request,
2548 (dump_func)dump_reply_message_request,
2549 (dump_func)dump_get_message_reply_request,
2550 (dump_func)dump_set_win_timer_request,
2551 (dump_func)dump_kill_win_timer_request,
2552 (dump_func)dump_create_serial_request,
2553 (dump_func)dump_get_serial_info_request,
2554 (dump_func)dump_set_serial_info_request,
2555 (dump_func)dump_register_async_request,
2556 (dump_func)dump_create_named_pipe_request,
2557 (dump_func)dump_open_named_pipe_request,
2558 (dump_func)dump_connect_named_pipe_request,
2559 (dump_func)dump_wait_named_pipe_request,
2560 (dump_func)dump_disconnect_named_pipe_request,
2561 (dump_func)dump_get_named_pipe_info_request,
2562 (dump_func)dump_create_smb_request,
2563 (dump_func)dump_get_smb_info_request,
2564 (dump_func)dump_create_window_request,
2565 (dump_func)dump_link_window_request,
2566 (dump_func)dump_destroy_window_request,
2567 (dump_func)dump_set_window_owner_request,
2568 (dump_func)dump_get_window_info_request,
2569 (dump_func)dump_set_window_info_request,
2570 (dump_func)dump_get_window_parents_request,
2571 (dump_func)dump_get_window_children_request,
2572 (dump_func)dump_get_window_tree_request,
2573 (dump_func)dump_set_window_rectangles_request,
2574 (dump_func)dump_get_window_rectangles_request,
2575 (dump_func)dump_get_window_text_request,
2576 (dump_func)dump_set_window_text_request,
2577 (dump_func)dump_inc_window_paint_count_request,
2578 (dump_func)dump_get_windows_offset_request,
2579 (dump_func)dump_set_window_property_request,
2580 (dump_func)dump_remove_window_property_request,
2581 (dump_func)dump_get_window_property_request,
2582 (dump_func)dump_get_window_properties_request,
2583 (dump_func)dump_attach_thread_input_request,
2584 (dump_func)dump_get_thread_input_request,
2585 (dump_func)dump_get_key_state_request,
2586 (dump_func)dump_set_key_state_request,
2587 (dump_func)dump_set_foreground_window_request,
2588 (dump_func)dump_set_focus_window_request,
2589 (dump_func)dump_set_active_window_request,
2590 (dump_func)dump_set_capture_window_request,
2591 (dump_func)dump_set_caret_window_request,
2592 (dump_func)dump_set_caret_info_request,
2593 (dump_func)dump_set_hook_request,
2594 (dump_func)dump_remove_hook_request,
2595 (dump_func)dump_start_hook_chain_request,
2596 (dump_func)dump_finish_hook_chain_request,
2597 (dump_func)dump_get_next_hook_request,
2600 static const dump_func reply_dumpers[REQ_NB_REQUESTS] = {
2601 (dump_func)dump_new_process_reply,
2602 (dump_func)dump_get_new_process_info_reply,
2603 (dump_func)dump_new_thread_reply,
2605 (dump_func)dump_init_process_reply,
2606 (dump_func)dump_get_startup_info_reply,
2607 (dump_func)dump_init_process_done_reply,
2608 (dump_func)dump_init_thread_reply,
2609 (dump_func)dump_terminate_process_reply,
2610 (dump_func)dump_terminate_thread_reply,
2611 (dump_func)dump_get_process_info_reply,
2613 (dump_func)dump_get_thread_info_reply,
2615 (dump_func)dump_get_dll_info_reply,
2616 (dump_func)dump_suspend_thread_reply,
2617 (dump_func)dump_resume_thread_reply,
2621 (dump_func)dump_get_apc_reply,
2622 (dump_func)dump_close_handle_reply,
2623 (dump_func)dump_set_handle_info_reply,
2624 (dump_func)dump_dup_handle_reply,
2625 (dump_func)dump_open_process_reply,
2626 (dump_func)dump_open_thread_reply,
2628 (dump_func)dump_create_event_reply,
2630 (dump_func)dump_open_event_reply,
2631 (dump_func)dump_create_mutex_reply,
2633 (dump_func)dump_open_mutex_reply,
2634 (dump_func)dump_create_semaphore_reply,
2635 (dump_func)dump_release_semaphore_reply,
2636 (dump_func)dump_open_semaphore_reply,
2637 (dump_func)dump_create_file_reply,
2638 (dump_func)dump_alloc_file_handle_reply,
2639 (dump_func)dump_get_handle_fd_reply,
2640 (dump_func)dump_set_file_pointer_reply,
2644 (dump_func)dump_get_file_info_reply,
2645 (dump_func)dump_lock_file_reply,
2647 (dump_func)dump_create_pipe_reply,
2648 (dump_func)dump_create_socket_reply,
2649 (dump_func)dump_accept_socket_reply,
2651 (dump_func)dump_get_socket_event_reply,
2654 (dump_func)dump_alloc_console_reply,
2656 (dump_func)dump_get_console_renderer_events_reply,
2657 (dump_func)dump_open_console_reply,
2658 (dump_func)dump_get_console_mode_reply,
2661 (dump_func)dump_get_console_input_info_reply,
2663 (dump_func)dump_get_console_input_history_reply,
2664 (dump_func)dump_create_console_output_reply,
2666 (dump_func)dump_get_console_output_info_reply,
2667 (dump_func)dump_write_console_input_reply,
2668 (dump_func)dump_read_console_input_reply,
2669 (dump_func)dump_write_console_output_reply,
2670 (dump_func)dump_fill_console_output_reply,
2671 (dump_func)dump_read_console_output_reply,
2674 (dump_func)dump_create_change_notification_reply,
2675 (dump_func)dump_create_mapping_reply,
2676 (dump_func)dump_open_mapping_reply,
2677 (dump_func)dump_get_mapping_info_reply,
2678 (dump_func)dump_create_device_reply,
2679 (dump_func)dump_get_device_id_reply,
2680 (dump_func)dump_create_snapshot_reply,
2681 (dump_func)dump_next_process_reply,
2682 (dump_func)dump_next_thread_reply,
2683 (dump_func)dump_next_module_reply,
2684 (dump_func)dump_wait_debug_event_reply,
2685 (dump_func)dump_queue_exception_event_reply,
2686 (dump_func)dump_get_exception_status_reply,
2690 (dump_func)dump_debug_break_reply,
2692 (dump_func)dump_read_process_memory_reply,
2694 (dump_func)dump_create_key_reply,
2695 (dump_func)dump_open_key_reply,
2697 (dump_func)dump_enum_key_reply,
2699 (dump_func)dump_get_key_value_reply,
2700 (dump_func)dump_enum_key_value_reply,
2707 (dump_func)dump_create_timer_reply,
2708 (dump_func)dump_open_timer_reply,
2711 (dump_func)dump_get_thread_context_reply,
2713 (dump_func)dump_get_selector_entry_reply,
2714 (dump_func)dump_add_atom_reply,
2716 (dump_func)dump_find_atom_reply,
2717 (dump_func)dump_get_atom_name_reply,
2719 (dump_func)dump_get_msg_queue_reply,
2720 (dump_func)dump_set_queue_mask_reply,
2721 (dump_func)dump_get_queue_status_reply,
2722 (dump_func)dump_wait_input_idle_reply,
2724 (dump_func)dump_get_message_reply,
2726 (dump_func)dump_get_message_reply_reply,
2729 (dump_func)dump_create_serial_reply,
2730 (dump_func)dump_get_serial_info_reply,
2733 (dump_func)dump_create_named_pipe_reply,
2734 (dump_func)dump_open_named_pipe_reply,
2738 (dump_func)dump_get_named_pipe_info_reply,
2739 (dump_func)dump_create_smb_reply,
2740 (dump_func)dump_get_smb_info_reply,
2741 (dump_func)dump_create_window_reply,
2742 (dump_func)dump_link_window_reply,
2744 (dump_func)dump_set_window_owner_reply,
2745 (dump_func)dump_get_window_info_reply,
2746 (dump_func)dump_set_window_info_reply,
2747 (dump_func)dump_get_window_parents_reply,
2748 (dump_func)dump_get_window_children_reply,
2749 (dump_func)dump_get_window_tree_reply,
2751 (dump_func)dump_get_window_rectangles_reply,
2752 (dump_func)dump_get_window_text_reply,
2755 (dump_func)dump_get_windows_offset_reply,
2757 (dump_func)dump_remove_window_property_reply,
2758 (dump_func)dump_get_window_property_reply,
2759 (dump_func)dump_get_window_properties_reply,
2761 (dump_func)dump_get_thread_input_reply,
2762 (dump_func)dump_get_key_state_reply,
2764 (dump_func)dump_set_foreground_window_reply,
2765 (dump_func)dump_set_focus_window_reply,
2766 (dump_func)dump_set_active_window_reply,
2767 (dump_func)dump_set_capture_window_reply,
2768 (dump_func)dump_set_caret_window_reply,
2769 (dump_func)dump_set_caret_info_reply,
2770 (dump_func)dump_set_hook_reply,
2772 (dump_func)dump_start_hook_chain_reply,
2774 (dump_func)dump_get_next_hook_reply,
2777 static const char * const req_names[REQ_NB_REQUESTS] = {
2779 "get_new_process_info",
2784 "init_process_done",
2786 "terminate_process",
2812 "release_semaphore",
2815 "alloc_file_handle",
2829 "enable_socket_event",
2830 "set_socket_deferred",
2833 "get_console_renderer_events",
2837 "set_console_input_info",
2838 "get_console_input_info",
2839 "append_console_input_history",
2840 "get_console_input_history",
2841 "create_console_output",
2842 "set_console_output_info",
2843 "get_console_output_info",
2844 "write_console_input",
2845 "read_console_input",
2846 "write_console_output",
2847 "fill_console_output",
2848 "read_console_output",
2849 "move_console_output",
2850 "send_console_signal",
2851 "create_change_notification",
2862 "queue_exception_event",
2863 "get_exception_status",
2864 "output_debug_string",
2865 "continue_debug_event",
2868 "set_debugger_kill_on_exit",
2869 "read_process_memory",
2870 "write_process_memory",
2881 "save_registry_atexit",
2882 "set_registry_levels",
2883 "set_registry_notification",
2888 "get_thread_context",
2889 "set_thread_context",
2890 "get_selector_entry",
2903 "get_message_reply",
2910 "create_named_pipe",
2912 "connect_named_pipe",
2914 "disconnect_named_pipe",
2915 "get_named_pipe_info",
2924 "get_window_parents",
2925 "get_window_children",
2927 "set_window_rectangles",
2928 "get_window_rectangles",
2931 "inc_window_paint_count",
2932 "get_windows_offset",
2933 "set_window_property",
2934 "remove_window_property",
2935 "get_window_property",
2936 "get_window_properties",
2937 "attach_thread_input",
2941 "set_foreground_window",
2943 "set_active_window",
2944 "set_capture_window",
2950 "finish_hook_chain",
2954 /* ### make_requests end ### */
2955 /* Everything above this line is generated automatically by tools/make_requests */
2957 static const char *get_status_name( unsigned int status )
2959 #define NAME(status) { #status, STATUS_##status }
2966 NAME(ACCESS_DENIED),
2967 NAME(ACCESS_VIOLATION),
2968 NAME(BUFFER_OVERFLOW),
2969 NAME(CHILD_MUST_BE_VOLATILE),
2970 NAME(DIRECTORY_NOT_EMPTY),
2972 NAME(FILE_LOCK_CONFLICT),
2973 NAME(INVALID_FILE_FOR_SECTION),
2974 NAME(INVALID_HANDLE),
2975 NAME(INVALID_PARAMETER),
2977 NAME(MEDIA_WRITE_PROTECTED),
2978 NAME(MUTANT_NOT_OWNED),
2979 NAME(NOT_REGISTRY_FILE),
2981 NAME(NO_MORE_ENTRIES),
2982 NAME(NO_MORE_FILES),
2984 NAME(OBJECT_NAME_COLLISION),
2985 NAME(OBJECT_NAME_INVALID),
2986 NAME(OBJECT_NAME_NOT_FOUND),
2987 NAME(OBJECT_PATH_INVALID),
2988 NAME(OBJECT_TYPE_MISMATCH),
2991 NAME(SEMAPHORE_LIMIT_EXCEEDED),
2992 NAME(SHARING_VIOLATION),
2993 NAME(SUSPEND_COUNT_EXCEEDED),
2995 NAME(TOO_MANY_OPENED_FILES),
2998 { NULL, 0 } /* terminator */
3003 static char buffer[10];
3007 for (i = 0; status_names[i].name; i++)
3008 if (status_names[i].value == status) return status_names[i].name;
3010 sprintf( buffer, "%x", status );
3014 void trace_request(void)
3016 enum request req = current->req.request_header.req;
3017 if (req < REQ_NB_REQUESTS)
3019 fprintf( stderr, "%04x: %s(", current->id, req_names[req] );
3020 if (req_dumpers[req])
3023 cur_data = get_req_data();
3024 cur_size = get_req_data_size();
3025 req_dumpers[req]( ¤t->req );
3027 fprintf( stderr, " )\n" );
3029 else fprintf( stderr, "%04x: %d(?)\n", current->id, req );
3032 void trace_reply( enum request req, const union generic_reply *reply )
3034 if (req < REQ_NB_REQUESTS)
3036 fprintf( stderr, "%04x: %s() = %s",
3037 current->id, req_names[req], get_status_name(current->error) );
3038 if (reply_dumpers[req])
3040 fprintf( stderr, " {" );
3042 cur_data = current->reply_data;
3043 cur_size = reply->reply_header.reply_size;
3044 reply_dumpers[req]( reply );
3045 fprintf( stderr, " }" );
3047 fputc( '\n', stderr );
3049 else fprintf( stderr, "%04x: %d() = %s\n",
3050 current->id, req, get_status_name(current->error) );