2 * Server request tracing
4 * Copyright (C) 1999 Alexandre Julliard
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22 #include "wine/port.h"
26 #include <sys/types.h>
36 static const void *cur_data
;
39 /* utility functions */
41 inline static void remove_data( size_t size
)
43 cur_data
= (const char *)cur_data
+ size
;
47 static void dump_uints( const int *ptr
, int len
)
52 fprintf( stderr
, "%08x", *ptr
++ );
53 if (--len
) fputc( ',', stderr
);
58 static void dump_rectangle( const rectangle_t
*rect
)
60 fprintf( stderr
, "{%d,%d;%d,%d}",
61 rect
->left
, rect
->top
, rect
->right
, rect
->bottom
);
64 static void dump_char_info( const char_info_t
*info
)
66 fprintf( stderr
, "{'" );
67 dump_strW( &info
->ch
, 1, stderr
, "\'\'" );
68 fprintf( stderr
, "',%04x}", info
->attr
);
71 static void dump_context( const CONTEXT
*context
)
74 fprintf( stderr
, "{flags=%08lx,eax=%08lx,ebx=%08lx,ecx=%08lx,edx=%08lx,esi=%08lx,edi=%08lx,"
75 "ebp=%08lx,eip=%08lx,esp=%08lx,eflags=%08lx,cs=%04lx,ds=%04lx,es=%04lx,"
76 "fs=%04lx,gs=%04lx,dr0=%08lx,dr1=%08lx,dr2=%08lx,dr3=%08lx,dr6=%08lx,dr7=%08lx,",
77 context
->ContextFlags
, context
->Eax
, context
->Ebx
, context
->Ecx
, context
->Edx
,
78 context
->Esi
, context
->Edi
, context
->Ebp
, context
->Eip
, context
->Esp
, context
->EFlags
,
79 context
->SegCs
, context
->SegDs
, context
->SegEs
, context
->SegFs
, context
->SegGs
,
80 context
->Dr0
, context
->Dr1
, context
->Dr2
, context
->Dr3
, context
->Dr6
, context
->Dr7
);
81 fprintf( stderr
, "float=" );
82 dump_uints( (int *)&context
->FloatSave
, sizeof(context
->FloatSave
) / sizeof(int) );
83 fprintf( stderr
, "}" );
85 dump_uints( (int *)context
, sizeof(*context
) / sizeof(int) );
89 static void dump_exc_record( const EXCEPTION_RECORD
*rec
)
92 fprintf( stderr
, "{code=%lx,flags=%lx,rec=%p,addr=%p,params={",
93 rec
->ExceptionCode
, rec
->ExceptionFlags
, rec
->ExceptionRecord
,
94 rec
->ExceptionAddress
);
95 for (i
= 0; i
< min(rec
->NumberParameters
,EXCEPTION_MAXIMUM_PARAMETERS
); i
++)
97 if (i
) fputc( ',', stderr
);
98 fprintf( stderr
, "%lx", rec
->ExceptionInformation
[i
] );
100 fputc( '}', stderr
);
103 static void dump_varargs_ints( size_t size
)
105 const int *data
= cur_data
;
106 size_t len
= size
/ sizeof(*data
);
108 fputc( '{', stderr
);
111 fprintf( stderr
, "%d", *data
++ );
112 if (--len
) fputc( ',', stderr
);
114 fputc( '}', stderr
);
118 static void dump_varargs_handles( size_t size
)
120 const handle_t
*data
= cur_data
;
121 size_t len
= size
/ sizeof(*data
);
123 fputc( '{', stderr
);
126 fprintf( stderr
, "%d", *data
++ );
127 if (--len
) fputc( ',', stderr
);
129 fputc( '}', stderr
);
133 static void dump_varargs_ptrs( size_t size
)
135 void * const *data
= cur_data
;
136 size_t len
= size
/ sizeof(*data
);
138 fputc( '{', stderr
);
141 fprintf( stderr
, "%p", *data
++ );
142 if (--len
) fputc( ',', stderr
);
144 fputc( '}', stderr
);
148 static void dump_varargs_user_handles( size_t size
)
150 const user_handle_t
*data
= cur_data
;
151 size_t len
= size
/ sizeof(*data
);
153 fputc( '{', stderr
);
156 fprintf( stderr
, "%08x", *data
++ );
157 if (--len
) fputc( ',', stderr
);
159 fputc( '}', stderr
);
163 static void dump_varargs_bytes( size_t size
)
165 const unsigned char *data
= cur_data
;
168 fputc( '{', stderr
);
171 fprintf( stderr
, "%02x", *data
++ );
172 if (--len
) fputc( ',', stderr
);
174 fputc( '}', stderr
);
178 static void dump_varargs_string( size_t size
)
180 fprintf( stderr
, "\"%.*s\"", (int)size
, (char *)cur_data
);
184 static void dump_varargs_unicode_str( size_t size
)
186 fprintf( stderr
, "L\"" );
187 dump_strW( cur_data
, size
/ sizeof(WCHAR
), stderr
, "\"\"" );
188 fputc( '\"', stderr
);
192 static void dump_varargs_context( size_t size
)
194 dump_context( cur_data
);
198 static void dump_varargs_exc_event( size_t size
)
200 const CONTEXT
*ptr
= cur_data
;
201 fprintf( stderr
, "{context=" );
203 fprintf( stderr
, ",rec=" );
204 dump_exc_record( (EXCEPTION_RECORD
*)(ptr
+ 1) );
205 fputc( '}', stderr
);
209 static void dump_varargs_debug_event( size_t size
)
211 const debug_event_t
*event
= cur_data
;
215 fprintf( stderr
, "{}" );
220 case EXCEPTION_DEBUG_EVENT
:
221 fprintf( stderr
, "{exception," );
222 dump_exc_record( &event
->info
.exception
.record
);
223 fprintf( stderr
, ",first=%d}", event
->info
.exception
.first
);
225 case CREATE_THREAD_DEBUG_EVENT
:
226 fprintf( stderr
, "{create_thread,thread=%d,teb=%p,start=%p}",
227 event
->info
.create_thread
.handle
, event
->info
.create_thread
.teb
,
228 event
->info
.create_thread
.start
);
230 case CREATE_PROCESS_DEBUG_EVENT
:
231 fprintf( stderr
, "{create_process,file=%d,process=%d,thread=%d,base=%p,offset=%d,"
232 "size=%d,teb=%p,start=%p,name=%p,unicode=%d}",
233 event
->info
.create_process
.file
, event
->info
.create_process
.process
,
234 event
->info
.create_process
.thread
, event
->info
.create_process
.base
,
235 event
->info
.create_process
.dbg_offset
, event
->info
.create_process
.dbg_size
,
236 event
->info
.create_process
.teb
, event
->info
.create_process
.start
,
237 event
->info
.create_process
.name
, event
->info
.create_process
.unicode
);
239 case EXIT_THREAD_DEBUG_EVENT
:
240 fprintf( stderr
, "{exit_thread,code=%d}", event
->info
.exit
.exit_code
);
242 case EXIT_PROCESS_DEBUG_EVENT
:
243 fprintf( stderr
, "{exit_process,code=%d}", event
->info
.exit
.exit_code
);
245 case LOAD_DLL_DEBUG_EVENT
:
246 fprintf( stderr
, "{load_dll,file=%d,base=%p,offset=%d,size=%d,name=%p,unicode=%d}",
247 event
->info
.load_dll
.handle
, event
->info
.load_dll
.base
,
248 event
->info
.load_dll
.dbg_offset
, event
->info
.load_dll
.dbg_size
,
249 event
->info
.load_dll
.name
, event
->info
.load_dll
.unicode
);
251 case UNLOAD_DLL_DEBUG_EVENT
:
252 fprintf( stderr
, "{unload_dll,base=%p}", event
->info
.unload_dll
.base
);
254 case OUTPUT_DEBUG_STRING_EVENT
:
255 fprintf( stderr
, "{output_string,data=%p,unicode=%d,len=%d}",
256 event
->info
.output_string
.string
, event
->info
.output_string
.unicode
,
257 event
->info
.output_string
.length
);
260 fprintf( stderr
, "{rip,err=%d,type=%d}",
261 event
->info
.rip_info
.error
, event
->info
.rip_info
.type
);
263 case 0: /* zero is the code returned on timeouts */
264 fprintf( stderr
, "{}" );
267 fprintf( stderr
, "{code=??? (%d)}", event
->code
);
273 static void dump_varargs_startup_info( size_t size
)
275 const startup_info_t
*ptr
= cur_data
;
278 if (size
< sizeof(info
.size
))
280 fprintf( stderr
, "{}" );
283 if (size
> ptr
->size
) size
= ptr
->size
;
284 memset( &info
, 0, sizeof(info
) );
285 memcpy( &info
, ptr
, min( size
, sizeof(info
) ));
287 fprintf( stderr
, "{size=%d", info
.size
);
288 fprintf( stderr
, ",x=%d", info
.x
);
289 fprintf( stderr
, ",y=%d", info
.y
);
290 fprintf( stderr
, ",cx=%d", info
.cx
);
291 fprintf( stderr
, ",cy=%d", info
.cy
);
292 fprintf( stderr
, ",x_chars=%d", info
.x_chars
);
293 fprintf( stderr
, ",y_chars=%d", info
.y_chars
);
294 fprintf( stderr
, ",attr=%d", info
.attribute
);
295 fprintf( stderr
, ",cmd_show=%d", info
.cmd_show
);
296 fprintf( stderr
, ",flags=%x", info
.flags
);
298 fprintf( stderr
, ",filename=" );
299 /* FIXME: these should be unicode */
300 dump_varargs_string( min(cur_size
,info
.filename_len
) );
301 fprintf( stderr
, ",cmdline=" );
302 dump_varargs_string( min(cur_size
,info
.cmdline_len
) );
303 fprintf( stderr
, ",desktop=" );
304 dump_varargs_string( min(cur_size
,info
.desktop_len
) );
305 fprintf( stderr
, ",title=" );
306 dump_varargs_string( min(cur_size
,info
.title_len
) );
307 fputc( '}', stderr
);
310 static void dump_varargs_input_records( size_t size
)
312 const INPUT_RECORD
*rec
= cur_data
;
313 size_t len
= size
/ sizeof(*rec
);
315 fputc( '{', stderr
);
318 fprintf( stderr
, "{%04x,...}", rec
->EventType
);
320 if (--len
) fputc( ',', stderr
);
322 fputc( '}', stderr
);
326 static void dump_varargs_properties( size_t size
)
328 const property_data_t
*prop
= cur_data
;
329 size_t len
= size
/ sizeof(*prop
);
331 fputc( '{', stderr
);
334 fprintf( stderr
, "{atom=%04x,str=%d,handle=%08x}",
335 prop
->atom
, prop
->string
, prop
->handle
);
337 if (--len
) fputc( ',', stderr
);
339 fputc( '}', stderr
);
343 typedef void (*dump_func
)( const void *req
);
345 /* Everything below this line is generated automatically by tools/make_requests */
346 /* ### make_requests begin ### */
348 static void dump_new_process_request( const struct new_process_request
*req
)
350 fprintf( stderr
, " inherit_all=%d,", req
->inherit_all
);
351 fprintf( stderr
, " use_handles=%d,", req
->use_handles
);
352 fprintf( stderr
, " create_flags=%d,", req
->create_flags
);
353 fprintf( stderr
, " exe_file=%d,", req
->exe_file
);
354 fprintf( stderr
, " hstdin=%d,", req
->hstdin
);
355 fprintf( stderr
, " hstdout=%d,", req
->hstdout
);
356 fprintf( stderr
, " hstderr=%d,", req
->hstderr
);
357 fprintf( stderr
, " info=" );
358 dump_varargs_startup_info( cur_size
);
361 static void dump_new_process_reply( const struct new_process_reply
*req
)
363 fprintf( stderr
, " info=%d", req
->info
);
366 static void dump_get_new_process_info_request( const struct get_new_process_info_request
*req
)
368 fprintf( stderr
, " info=%d,", req
->info
);
369 fprintf( stderr
, " pinherit=%d,", req
->pinherit
);
370 fprintf( stderr
, " tinherit=%d", req
->tinherit
);
373 static void dump_get_new_process_info_reply( const struct get_new_process_info_reply
*req
)
375 fprintf( stderr
, " pid=%p,", req
->pid
);
376 fprintf( stderr
, " phandle=%d,", req
->phandle
);
377 fprintf( stderr
, " tid=%p,", req
->tid
);
378 fprintf( stderr
, " thandle=%d,", req
->thandle
);
379 fprintf( stderr
, " event=%d", req
->event
);
382 static void dump_new_thread_request( const struct new_thread_request
*req
)
384 fprintf( stderr
, " suspend=%d,", req
->suspend
);
385 fprintf( stderr
, " inherit=%d,", req
->inherit
);
386 fprintf( stderr
, " request_fd=%d", req
->request_fd
);
389 static void dump_new_thread_reply( const struct new_thread_reply
*req
)
391 fprintf( stderr
, " tid=%p,", req
->tid
);
392 fprintf( stderr
, " handle=%d", req
->handle
);
395 static void dump_boot_done_request( const struct boot_done_request
*req
)
397 fprintf( stderr
, " debug_level=%d", req
->debug_level
);
400 static void dump_init_process_request( const struct init_process_request
*req
)
402 fprintf( stderr
, " ldt_copy=%p,", req
->ldt_copy
);
403 fprintf( stderr
, " ppid=%d", req
->ppid
);
406 static void dump_init_process_reply( const struct init_process_reply
*req
)
408 fprintf( stderr
, " create_flags=%d,", req
->create_flags
);
409 fprintf( stderr
, " server_start=%08x,", req
->server_start
);
410 fprintf( stderr
, " info=%d,", req
->info
);
411 fprintf( stderr
, " info_size=%d,", req
->info_size
);
412 fprintf( stderr
, " exe_file=%d,", req
->exe_file
);
413 fprintf( stderr
, " hstdin=%d,", req
->hstdin
);
414 fprintf( stderr
, " hstdout=%d,", req
->hstdout
);
415 fprintf( stderr
, " hstderr=%d", req
->hstderr
);
418 static void dump_get_startup_info_request( const struct get_startup_info_request
*req
)
420 fprintf( stderr
, " info=%d,", req
->info
);
421 fprintf( stderr
, " close=%d", req
->close
);
424 static void dump_get_startup_info_reply( const struct get_startup_info_reply
*req
)
426 fprintf( stderr
, " info=" );
427 dump_varargs_startup_info( cur_size
);
430 static void dump_init_process_done_request( const struct init_process_done_request
*req
)
432 fprintf( stderr
, " module=%p,", req
->module
);
433 fprintf( stderr
, " module_size=%d,", req
->module_size
);
434 fprintf( stderr
, " entry=%p,", req
->entry
);
435 fprintf( stderr
, " name=%p,", req
->name
);
436 fprintf( stderr
, " exe_file=%d,", req
->exe_file
);
437 fprintf( stderr
, " gui=%d,", req
->gui
);
438 fprintf( stderr
, " filename=" );
439 dump_varargs_string( cur_size
);
442 static void dump_init_process_done_reply( const struct init_process_done_reply
*req
)
444 fprintf( stderr
, " debugged=%d", req
->debugged
);
447 static void dump_init_thread_request( const struct init_thread_request
*req
)
449 fprintf( stderr
, " unix_pid=%d,", req
->unix_pid
);
450 fprintf( stderr
, " teb=%p,", req
->teb
);
451 fprintf( stderr
, " entry=%p,", req
->entry
);
452 fprintf( stderr
, " reply_fd=%d,", req
->reply_fd
);
453 fprintf( stderr
, " wait_fd=%d", req
->wait_fd
);
456 static void dump_init_thread_reply( const struct init_thread_reply
*req
)
458 fprintf( stderr
, " pid=%p,", req
->pid
);
459 fprintf( stderr
, " tid=%p,", req
->tid
);
460 fprintf( stderr
, " boot=%d,", req
->boot
);
461 fprintf( stderr
, " version=%d", req
->version
);
464 static void dump_terminate_process_request( const struct terminate_process_request
*req
)
466 fprintf( stderr
, " handle=%d,", req
->handle
);
467 fprintf( stderr
, " exit_code=%d", req
->exit_code
);
470 static void dump_terminate_process_reply( const struct terminate_process_reply
*req
)
472 fprintf( stderr
, " self=%d", req
->self
);
475 static void dump_terminate_thread_request( const struct terminate_thread_request
*req
)
477 fprintf( stderr
, " handle=%d,", req
->handle
);
478 fprintf( stderr
, " exit_code=%d", req
->exit_code
);
481 static void dump_terminate_thread_reply( const struct terminate_thread_reply
*req
)
483 fprintf( stderr
, " self=%d,", req
->self
);
484 fprintf( stderr
, " last=%d", req
->last
);
487 static void dump_get_process_info_request( const struct get_process_info_request
*req
)
489 fprintf( stderr
, " handle=%d", req
->handle
);
492 static void dump_get_process_info_reply( const struct get_process_info_reply
*req
)
494 fprintf( stderr
, " pid=%p,", req
->pid
);
495 fprintf( stderr
, " debugged=%d,", req
->debugged
);
496 fprintf( stderr
, " exit_code=%d,", req
->exit_code
);
497 fprintf( stderr
, " priority=%d,", req
->priority
);
498 fprintf( stderr
, " process_affinity=%d,", req
->process_affinity
);
499 fprintf( stderr
, " system_affinity=%d", req
->system_affinity
);
502 static void dump_set_process_info_request( const struct set_process_info_request
*req
)
504 fprintf( stderr
, " handle=%d,", req
->handle
);
505 fprintf( stderr
, " mask=%d,", req
->mask
);
506 fprintf( stderr
, " priority=%d,", req
->priority
);
507 fprintf( stderr
, " affinity=%d", req
->affinity
);
510 static void dump_get_thread_info_request( const struct get_thread_info_request
*req
)
512 fprintf( stderr
, " handle=%d,", req
->handle
);
513 fprintf( stderr
, " tid_in=%p", req
->tid_in
);
516 static void dump_get_thread_info_reply( const struct get_thread_info_reply
*req
)
518 fprintf( stderr
, " tid=%p,", req
->tid
);
519 fprintf( stderr
, " teb=%p,", req
->teb
);
520 fprintf( stderr
, " exit_code=%d,", req
->exit_code
);
521 fprintf( stderr
, " priority=%d", req
->priority
);
524 static void dump_set_thread_info_request( const struct set_thread_info_request
*req
)
526 fprintf( stderr
, " handle=%d,", req
->handle
);
527 fprintf( stderr
, " mask=%d,", req
->mask
);
528 fprintf( stderr
, " priority=%d,", req
->priority
);
529 fprintf( stderr
, " affinity=%d", req
->affinity
);
532 static void dump_suspend_thread_request( const struct suspend_thread_request
*req
)
534 fprintf( stderr
, " handle=%d", req
->handle
);
537 static void dump_suspend_thread_reply( const struct suspend_thread_reply
*req
)
539 fprintf( stderr
, " count=%d", req
->count
);
542 static void dump_resume_thread_request( const struct resume_thread_request
*req
)
544 fprintf( stderr
, " handle=%d", req
->handle
);
547 static void dump_resume_thread_reply( const struct resume_thread_reply
*req
)
549 fprintf( stderr
, " count=%d", req
->count
);
552 static void dump_load_dll_request( const struct load_dll_request
*req
)
554 fprintf( stderr
, " handle=%d,", req
->handle
);
555 fprintf( stderr
, " base=%p,", req
->base
);
556 fprintf( stderr
, " size=%d,", req
->size
);
557 fprintf( stderr
, " dbg_offset=%d,", req
->dbg_offset
);
558 fprintf( stderr
, " dbg_size=%d,", req
->dbg_size
);
559 fprintf( stderr
, " name=%p,", req
->name
);
560 fprintf( stderr
, " filename=" );
561 dump_varargs_string( cur_size
);
564 static void dump_unload_dll_request( const struct unload_dll_request
*req
)
566 fprintf( stderr
, " base=%p", req
->base
);
569 static void dump_queue_apc_request( const struct queue_apc_request
*req
)
571 fprintf( stderr
, " handle=%d,", req
->handle
);
572 fprintf( stderr
, " user=%d,", req
->user
);
573 fprintf( stderr
, " func=%p,", req
->func
);
574 fprintf( stderr
, " param=%p", req
->param
);
577 static void dump_get_apc_request( const struct get_apc_request
*req
)
579 fprintf( stderr
, " alertable=%d", req
->alertable
);
582 static void dump_get_apc_reply( const struct get_apc_reply
*req
)
584 fprintf( stderr
, " func=%p,", req
->func
);
585 fprintf( stderr
, " type=%d,", req
->type
);
586 fprintf( stderr
, " args=" );
587 dump_varargs_ptrs( cur_size
);
590 static void dump_close_handle_request( const struct close_handle_request
*req
)
592 fprintf( stderr
, " handle=%d", req
->handle
);
595 static void dump_close_handle_reply( const struct close_handle_reply
*req
)
597 fprintf( stderr
, " fd=%d", req
->fd
);
600 static void dump_set_handle_info_request( const struct set_handle_info_request
*req
)
602 fprintf( stderr
, " handle=%d,", req
->handle
);
603 fprintf( stderr
, " flags=%d,", req
->flags
);
604 fprintf( stderr
, " mask=%d,", req
->mask
);
605 fprintf( stderr
, " fd=%d", req
->fd
);
608 static void dump_set_handle_info_reply( const struct set_handle_info_reply
*req
)
610 fprintf( stderr
, " old_flags=%d,", req
->old_flags
);
611 fprintf( stderr
, " cur_fd=%d", req
->cur_fd
);
614 static void dump_dup_handle_request( const struct dup_handle_request
*req
)
616 fprintf( stderr
, " src_process=%d,", req
->src_process
);
617 fprintf( stderr
, " src_handle=%d,", req
->src_handle
);
618 fprintf( stderr
, " dst_process=%d,", req
->dst_process
);
619 fprintf( stderr
, " access=%08x,", req
->access
);
620 fprintf( stderr
, " inherit=%d,", req
->inherit
);
621 fprintf( stderr
, " options=%d", req
->options
);
624 static void dump_dup_handle_reply( const struct dup_handle_reply
*req
)
626 fprintf( stderr
, " handle=%d,", req
->handle
);
627 fprintf( stderr
, " fd=%d", req
->fd
);
630 static void dump_open_process_request( const struct open_process_request
*req
)
632 fprintf( stderr
, " pid=%p,", req
->pid
);
633 fprintf( stderr
, " access=%08x,", req
->access
);
634 fprintf( stderr
, " inherit=%d", req
->inherit
);
637 static void dump_open_process_reply( const struct open_process_reply
*req
)
639 fprintf( stderr
, " handle=%d", req
->handle
);
642 static void dump_open_thread_request( const struct open_thread_request
*req
)
644 fprintf( stderr
, " tid=%p,", req
->tid
);
645 fprintf( stderr
, " access=%08x,", req
->access
);
646 fprintf( stderr
, " inherit=%d", req
->inherit
);
649 static void dump_open_thread_reply( const struct open_thread_reply
*req
)
651 fprintf( stderr
, " handle=%d", req
->handle
);
654 static void dump_select_request( const struct select_request
*req
)
656 fprintf( stderr
, " flags=%d,", req
->flags
);
657 fprintf( stderr
, " cookie=%p,", req
->cookie
);
658 fprintf( stderr
, " sec=%d,", req
->sec
);
659 fprintf( stderr
, " usec=%d,", req
->usec
);
660 fprintf( stderr
, " handles=" );
661 dump_varargs_handles( cur_size
);
664 static void dump_create_event_request( const struct create_event_request
*req
)
666 fprintf( stderr
, " manual_reset=%d,", req
->manual_reset
);
667 fprintf( stderr
, " initial_state=%d,", req
->initial_state
);
668 fprintf( stderr
, " inherit=%d,", req
->inherit
);
669 fprintf( stderr
, " name=" );
670 dump_varargs_unicode_str( cur_size
);
673 static void dump_create_event_reply( const struct create_event_reply
*req
)
675 fprintf( stderr
, " handle=%d", req
->handle
);
678 static void dump_event_op_request( const struct event_op_request
*req
)
680 fprintf( stderr
, " handle=%d,", req
->handle
);
681 fprintf( stderr
, " op=%d", req
->op
);
684 static void dump_open_event_request( const struct open_event_request
*req
)
686 fprintf( stderr
, " access=%08x,", req
->access
);
687 fprintf( stderr
, " inherit=%d,", req
->inherit
);
688 fprintf( stderr
, " name=" );
689 dump_varargs_unicode_str( cur_size
);
692 static void dump_open_event_reply( const struct open_event_reply
*req
)
694 fprintf( stderr
, " handle=%d", req
->handle
);
697 static void dump_create_mutex_request( const struct create_mutex_request
*req
)
699 fprintf( stderr
, " owned=%d,", req
->owned
);
700 fprintf( stderr
, " inherit=%d,", req
->inherit
);
701 fprintf( stderr
, " name=" );
702 dump_varargs_unicode_str( cur_size
);
705 static void dump_create_mutex_reply( const struct create_mutex_reply
*req
)
707 fprintf( stderr
, " handle=%d", req
->handle
);
710 static void dump_release_mutex_request( const struct release_mutex_request
*req
)
712 fprintf( stderr
, " handle=%d", req
->handle
);
715 static void dump_open_mutex_request( const struct open_mutex_request
*req
)
717 fprintf( stderr
, " access=%08x,", req
->access
);
718 fprintf( stderr
, " inherit=%d,", req
->inherit
);
719 fprintf( stderr
, " name=" );
720 dump_varargs_unicode_str( cur_size
);
723 static void dump_open_mutex_reply( const struct open_mutex_reply
*req
)
725 fprintf( stderr
, " handle=%d", req
->handle
);
728 static void dump_create_semaphore_request( const struct create_semaphore_request
*req
)
730 fprintf( stderr
, " initial=%08x,", req
->initial
);
731 fprintf( stderr
, " max=%08x,", req
->max
);
732 fprintf( stderr
, " inherit=%d,", req
->inherit
);
733 fprintf( stderr
, " name=" );
734 dump_varargs_unicode_str( cur_size
);
737 static void dump_create_semaphore_reply( const struct create_semaphore_reply
*req
)
739 fprintf( stderr
, " handle=%d", req
->handle
);
742 static void dump_release_semaphore_request( const struct release_semaphore_request
*req
)
744 fprintf( stderr
, " handle=%d,", req
->handle
);
745 fprintf( stderr
, " count=%08x", req
->count
);
748 static void dump_release_semaphore_reply( const struct release_semaphore_reply
*req
)
750 fprintf( stderr
, " prev_count=%08x", req
->prev_count
);
753 static void dump_open_semaphore_request( const struct open_semaphore_request
*req
)
755 fprintf( stderr
, " access=%08x,", req
->access
);
756 fprintf( stderr
, " inherit=%d,", req
->inherit
);
757 fprintf( stderr
, " name=" );
758 dump_varargs_unicode_str( cur_size
);
761 static void dump_open_semaphore_reply( const struct open_semaphore_reply
*req
)
763 fprintf( stderr
, " handle=%d", req
->handle
);
766 static void dump_create_file_request( const struct create_file_request
*req
)
768 fprintf( stderr
, " access=%08x,", req
->access
);
769 fprintf( stderr
, " inherit=%d,", req
->inherit
);
770 fprintf( stderr
, " sharing=%08x,", req
->sharing
);
771 fprintf( stderr
, " create=%d,", req
->create
);
772 fprintf( stderr
, " attrs=%08x,", req
->attrs
);
773 fprintf( stderr
, " drive_type=%d,", req
->drive_type
);
774 fprintf( stderr
, " filename=" );
775 dump_varargs_string( cur_size
);
778 static void dump_create_file_reply( const struct create_file_reply
*req
)
780 fprintf( stderr
, " handle=%d", req
->handle
);
783 static void dump_alloc_file_handle_request( const struct alloc_file_handle_request
*req
)
785 fprintf( stderr
, " access=%08x,", req
->access
);
786 fprintf( stderr
, " inherit=%d,", req
->inherit
);
787 fprintf( stderr
, " fd=%d", req
->fd
);
790 static void dump_alloc_file_handle_reply( const struct alloc_file_handle_reply
*req
)
792 fprintf( stderr
, " handle=%d", req
->handle
);
795 static void dump_get_handle_fd_request( const struct get_handle_fd_request
*req
)
797 fprintf( stderr
, " handle=%d,", req
->handle
);
798 fprintf( stderr
, " access=%08x", req
->access
);
801 static void dump_get_handle_fd_reply( const struct get_handle_fd_reply
*req
)
803 fprintf( stderr
, " fd=%d,", req
->fd
);
804 fprintf( stderr
, " type=%d,", req
->type
);
805 fprintf( stderr
, " flags=%d", req
->flags
);
808 static void dump_set_file_pointer_request( const struct set_file_pointer_request
*req
)
810 fprintf( stderr
, " handle=%d,", req
->handle
);
811 fprintf( stderr
, " low=%d,", req
->low
);
812 fprintf( stderr
, " high=%d,", req
->high
);
813 fprintf( stderr
, " whence=%d", req
->whence
);
816 static void dump_set_file_pointer_reply( const struct set_file_pointer_reply
*req
)
818 fprintf( stderr
, " new_low=%d,", req
->new_low
);
819 fprintf( stderr
, " new_high=%d", req
->new_high
);
822 static void dump_truncate_file_request( const struct truncate_file_request
*req
)
824 fprintf( stderr
, " handle=%d", req
->handle
);
827 static void dump_set_file_time_request( const struct set_file_time_request
*req
)
829 fprintf( stderr
, " handle=%d,", req
->handle
);
830 fprintf( stderr
, " access_time=%ld,", req
->access_time
);
831 fprintf( stderr
, " write_time=%ld", req
->write_time
);
834 static void dump_flush_file_request( const struct flush_file_request
*req
)
836 fprintf( stderr
, " handle=%d", req
->handle
);
839 static void dump_get_file_info_request( const struct get_file_info_request
*req
)
841 fprintf( stderr
, " handle=%d", req
->handle
);
844 static void dump_get_file_info_reply( const struct get_file_info_reply
*req
)
846 fprintf( stderr
, " type=%d,", req
->type
);
847 fprintf( stderr
, " attr=%d,", req
->attr
);
848 fprintf( stderr
, " access_time=%ld,", req
->access_time
);
849 fprintf( stderr
, " write_time=%ld,", req
->write_time
);
850 fprintf( stderr
, " size_high=%d,", req
->size_high
);
851 fprintf( stderr
, " size_low=%d,", req
->size_low
);
852 fprintf( stderr
, " links=%d,", req
->links
);
853 fprintf( stderr
, " index_high=%d,", req
->index_high
);
854 fprintf( stderr
, " index_low=%d,", req
->index_low
);
855 fprintf( stderr
, " serial=%08x", req
->serial
);
858 static void dump_lock_file_request( const struct lock_file_request
*req
)
860 fprintf( stderr
, " handle=%d,", req
->handle
);
861 fprintf( stderr
, " offset_low=%08x,", req
->offset_low
);
862 fprintf( stderr
, " offset_high=%08x,", req
->offset_high
);
863 fprintf( stderr
, " count_low=%08x,", req
->count_low
);
864 fprintf( stderr
, " count_high=%08x", req
->count_high
);
867 static void dump_unlock_file_request( const struct unlock_file_request
*req
)
869 fprintf( stderr
, " handle=%d,", req
->handle
);
870 fprintf( stderr
, " offset_low=%08x,", req
->offset_low
);
871 fprintf( stderr
, " offset_high=%08x,", req
->offset_high
);
872 fprintf( stderr
, " count_low=%08x,", req
->count_low
);
873 fprintf( stderr
, " count_high=%08x", req
->count_high
);
876 static void dump_create_pipe_request( const struct create_pipe_request
*req
)
878 fprintf( stderr
, " inherit=%d", req
->inherit
);
881 static void dump_create_pipe_reply( const struct create_pipe_reply
*req
)
883 fprintf( stderr
, " handle_read=%d,", req
->handle_read
);
884 fprintf( stderr
, " handle_write=%d", req
->handle_write
);
887 static void dump_create_socket_request( const struct create_socket_request
*req
)
889 fprintf( stderr
, " access=%08x,", req
->access
);
890 fprintf( stderr
, " inherit=%d,", req
->inherit
);
891 fprintf( stderr
, " family=%d,", req
->family
);
892 fprintf( stderr
, " type=%d,", req
->type
);
893 fprintf( stderr
, " protocol=%d,", req
->protocol
);
894 fprintf( stderr
, " flags=%08x", req
->flags
);
897 static void dump_create_socket_reply( const struct create_socket_reply
*req
)
899 fprintf( stderr
, " handle=%d", req
->handle
);
902 static void dump_accept_socket_request( const struct accept_socket_request
*req
)
904 fprintf( stderr
, " lhandle=%d,", req
->lhandle
);
905 fprintf( stderr
, " access=%08x,", req
->access
);
906 fprintf( stderr
, " inherit=%d", req
->inherit
);
909 static void dump_accept_socket_reply( const struct accept_socket_reply
*req
)
911 fprintf( stderr
, " handle=%d", req
->handle
);
914 static void dump_set_socket_event_request( const struct set_socket_event_request
*req
)
916 fprintf( stderr
, " handle=%d,", req
->handle
);
917 fprintf( stderr
, " mask=%08x,", req
->mask
);
918 fprintf( stderr
, " event=%d,", req
->event
);
919 fprintf( stderr
, " window=%08x,", req
->window
);
920 fprintf( stderr
, " msg=%08x", req
->msg
);
923 static void dump_get_socket_event_request( const struct get_socket_event_request
*req
)
925 fprintf( stderr
, " handle=%d,", req
->handle
);
926 fprintf( stderr
, " service=%d,", req
->service
);
927 fprintf( stderr
, " c_event=%d", req
->c_event
);
930 static void dump_get_socket_event_reply( const struct get_socket_event_reply
*req
)
932 fprintf( stderr
, " mask=%08x,", req
->mask
);
933 fprintf( stderr
, " pmask=%08x,", req
->pmask
);
934 fprintf( stderr
, " state=%08x,", req
->state
);
935 fprintf( stderr
, " errors=" );
936 dump_varargs_ints( cur_size
);
939 static void dump_enable_socket_event_request( const struct enable_socket_event_request
*req
)
941 fprintf( stderr
, " handle=%d,", req
->handle
);
942 fprintf( stderr
, " mask=%08x,", req
->mask
);
943 fprintf( stderr
, " sstate=%08x,", req
->sstate
);
944 fprintf( stderr
, " cstate=%08x", req
->cstate
);
947 static void dump_set_socket_deferred_request( const struct set_socket_deferred_request
*req
)
949 fprintf( stderr
, " handle=%d,", req
->handle
);
950 fprintf( stderr
, " deferred=%d", req
->deferred
);
953 static void dump_alloc_console_request( const struct alloc_console_request
*req
)
955 fprintf( stderr
, " access=%08x,", req
->access
);
956 fprintf( stderr
, " inherit=%d,", req
->inherit
);
957 fprintf( stderr
, " pid=%p", req
->pid
);
960 static void dump_alloc_console_reply( const struct alloc_console_reply
*req
)
962 fprintf( stderr
, " handle_in=%d,", req
->handle_in
);
963 fprintf( stderr
, " event=%d", req
->event
);
966 static void dump_free_console_request( const struct free_console_request
*req
)
970 static void dump_get_console_renderer_events_request( const struct get_console_renderer_events_request
*req
)
972 fprintf( stderr
, " handle=%d", req
->handle
);
975 static void dump_get_console_renderer_events_reply( const struct get_console_renderer_events_reply
*req
)
977 fprintf( stderr
, " data=" );
978 dump_varargs_bytes( cur_size
);
981 static void dump_open_console_request( const struct open_console_request
*req
)
983 fprintf( stderr
, " from=%d,", req
->from
);
984 fprintf( stderr
, " access=%08x,", req
->access
);
985 fprintf( stderr
, " inherit=%d,", req
->inherit
);
986 fprintf( stderr
, " share=%d", req
->share
);
989 static void dump_open_console_reply( const struct open_console_reply
*req
)
991 fprintf( stderr
, " handle=%d", req
->handle
);
994 static void dump_get_console_mode_request( const struct get_console_mode_request
*req
)
996 fprintf( stderr
, " handle=%d", req
->handle
);
999 static void dump_get_console_mode_reply( const struct get_console_mode_reply
*req
)
1001 fprintf( stderr
, " mode=%d", req
->mode
);
1004 static void dump_set_console_mode_request( const struct set_console_mode_request
*req
)
1006 fprintf( stderr
, " handle=%d,", req
->handle
);
1007 fprintf( stderr
, " mode=%d", req
->mode
);
1010 static void dump_set_console_input_info_request( const struct set_console_input_info_request
*req
)
1012 fprintf( stderr
, " handle=%d,", req
->handle
);
1013 fprintf( stderr
, " mask=%d,", req
->mask
);
1014 fprintf( stderr
, " active_sb=%d,", req
->active_sb
);
1015 fprintf( stderr
, " history_mode=%d,", req
->history_mode
);
1016 fprintf( stderr
, " history_size=%d,", req
->history_size
);
1017 fprintf( stderr
, " title=" );
1018 dump_varargs_unicode_str( cur_size
);
1021 static void dump_get_console_input_info_request( const struct get_console_input_info_request
*req
)
1023 fprintf( stderr
, " handle=%d", req
->handle
);
1026 static void dump_get_console_input_info_reply( const struct get_console_input_info_reply
*req
)
1028 fprintf( stderr
, " history_mode=%d,", req
->history_mode
);
1029 fprintf( stderr
, " history_size=%d,", req
->history_size
);
1030 fprintf( stderr
, " history_index=%d,", req
->history_index
);
1031 fprintf( stderr
, " title=" );
1032 dump_varargs_unicode_str( cur_size
);
1035 static void dump_append_console_input_history_request( const struct append_console_input_history_request
*req
)
1037 fprintf( stderr
, " handle=%d,", req
->handle
);
1038 fprintf( stderr
, " line=" );
1039 dump_varargs_unicode_str( cur_size
);
1042 static void dump_get_console_input_history_request( const struct get_console_input_history_request
*req
)
1044 fprintf( stderr
, " handle=%d,", req
->handle
);
1045 fprintf( stderr
, " index=%d", req
->index
);
1048 static void dump_get_console_input_history_reply( const struct get_console_input_history_reply
*req
)
1050 fprintf( stderr
, " total=%d,", req
->total
);
1051 fprintf( stderr
, " line=" );
1052 dump_varargs_unicode_str( cur_size
);
1055 static void dump_create_console_output_request( const struct create_console_output_request
*req
)
1057 fprintf( stderr
, " handle_in=%d,", req
->handle_in
);
1058 fprintf( stderr
, " access=%d,", req
->access
);
1059 fprintf( stderr
, " share=%d,", req
->share
);
1060 fprintf( stderr
, " inherit=%d", req
->inherit
);
1063 static void dump_create_console_output_reply( const struct create_console_output_reply
*req
)
1065 fprintf( stderr
, " handle_out=%d", req
->handle_out
);
1068 static void dump_set_console_output_info_request( const struct set_console_output_info_request
*req
)
1070 fprintf( stderr
, " handle=%d,", req
->handle
);
1071 fprintf( stderr
, " mask=%d,", req
->mask
);
1072 fprintf( stderr
, " cursor_size=%d,", req
->cursor_size
);
1073 fprintf( stderr
, " cursor_visible=%d,", req
->cursor_visible
);
1074 fprintf( stderr
, " cursor_x=%d,", req
->cursor_x
);
1075 fprintf( stderr
, " cursor_y=%d,", req
->cursor_y
);
1076 fprintf( stderr
, " width=%d,", req
->width
);
1077 fprintf( stderr
, " height=%d,", req
->height
);
1078 fprintf( stderr
, " attr=%d,", req
->attr
);
1079 fprintf( stderr
, " win_left=%d,", req
->win_left
);
1080 fprintf( stderr
, " win_top=%d,", req
->win_top
);
1081 fprintf( stderr
, " win_right=%d,", req
->win_right
);
1082 fprintf( stderr
, " win_bottom=%d,", req
->win_bottom
);
1083 fprintf( stderr
, " max_width=%d,", req
->max_width
);
1084 fprintf( stderr
, " max_height=%d", req
->max_height
);
1087 static void dump_get_console_output_info_request( const struct get_console_output_info_request
*req
)
1089 fprintf( stderr
, " handle=%d", req
->handle
);
1092 static void dump_get_console_output_info_reply( const struct get_console_output_info_reply
*req
)
1094 fprintf( stderr
, " cursor_size=%d,", req
->cursor_size
);
1095 fprintf( stderr
, " cursor_visible=%d,", req
->cursor_visible
);
1096 fprintf( stderr
, " cursor_x=%d,", req
->cursor_x
);
1097 fprintf( stderr
, " cursor_y=%d,", req
->cursor_y
);
1098 fprintf( stderr
, " width=%d,", req
->width
);
1099 fprintf( stderr
, " height=%d,", req
->height
);
1100 fprintf( stderr
, " attr=%d,", req
->attr
);
1101 fprintf( stderr
, " win_left=%d,", req
->win_left
);
1102 fprintf( stderr
, " win_top=%d,", req
->win_top
);
1103 fprintf( stderr
, " win_right=%d,", req
->win_right
);
1104 fprintf( stderr
, " win_bottom=%d,", req
->win_bottom
);
1105 fprintf( stderr
, " max_width=%d,", req
->max_width
);
1106 fprintf( stderr
, " max_height=%d", req
->max_height
);
1109 static void dump_write_console_input_request( const struct write_console_input_request
*req
)
1111 fprintf( stderr
, " handle=%d,", req
->handle
);
1112 fprintf( stderr
, " rec=" );
1113 dump_varargs_input_records( cur_size
);
1116 static void dump_write_console_input_reply( const struct write_console_input_reply
*req
)
1118 fprintf( stderr
, " written=%d", req
->written
);
1121 static void dump_read_console_input_request( const struct read_console_input_request
*req
)
1123 fprintf( stderr
, " handle=%d,", req
->handle
);
1124 fprintf( stderr
, " flush=%d", req
->flush
);
1127 static void dump_read_console_input_reply( const struct read_console_input_reply
*req
)
1129 fprintf( stderr
, " read=%d,", req
->read
);
1130 fprintf( stderr
, " rec=" );
1131 dump_varargs_input_records( cur_size
);
1134 static void dump_write_console_output_request( const struct write_console_output_request
*req
)
1136 fprintf( stderr
, " handle=%d,", req
->handle
);
1137 fprintf( stderr
, " x=%d,", req
->x
);
1138 fprintf( stderr
, " y=%d,", req
->y
);
1139 fprintf( stderr
, " mode=%d,", req
->mode
);
1140 fprintf( stderr
, " wrap=%d,", req
->wrap
);
1141 fprintf( stderr
, " data=" );
1142 dump_varargs_bytes( cur_size
);
1145 static void dump_write_console_output_reply( const struct write_console_output_reply
*req
)
1147 fprintf( stderr
, " written=%d,", req
->written
);
1148 fprintf( stderr
, " width=%d,", req
->width
);
1149 fprintf( stderr
, " height=%d", req
->height
);
1152 static void dump_fill_console_output_request( const struct fill_console_output_request
*req
)
1154 fprintf( stderr
, " handle=%d,", req
->handle
);
1155 fprintf( stderr
, " x=%d,", req
->x
);
1156 fprintf( stderr
, " y=%d,", req
->y
);
1157 fprintf( stderr
, " mode=%d,", req
->mode
);
1158 fprintf( stderr
, " count=%d,", req
->count
);
1159 fprintf( stderr
, " wrap=%d,", req
->wrap
);
1160 fprintf( stderr
, " data=" );
1161 dump_char_info( &req
->data
);
1164 static void dump_fill_console_output_reply( const struct fill_console_output_reply
*req
)
1166 fprintf( stderr
, " written=%d", req
->written
);
1169 static void dump_read_console_output_request( const struct read_console_output_request
*req
)
1171 fprintf( stderr
, " handle=%d,", req
->handle
);
1172 fprintf( stderr
, " x=%d,", req
->x
);
1173 fprintf( stderr
, " y=%d,", req
->y
);
1174 fprintf( stderr
, " mode=%d,", req
->mode
);
1175 fprintf( stderr
, " wrap=%d", req
->wrap
);
1178 static void dump_read_console_output_reply( const struct read_console_output_reply
*req
)
1180 fprintf( stderr
, " width=%d,", req
->width
);
1181 fprintf( stderr
, " height=%d,", req
->height
);
1182 fprintf( stderr
, " data=" );
1183 dump_varargs_bytes( cur_size
);
1186 static void dump_move_console_output_request( const struct move_console_output_request
*req
)
1188 fprintf( stderr
, " handle=%d,", req
->handle
);
1189 fprintf( stderr
, " x_src=%d,", req
->x_src
);
1190 fprintf( stderr
, " y_src=%d,", req
->y_src
);
1191 fprintf( stderr
, " x_dst=%d,", req
->x_dst
);
1192 fprintf( stderr
, " y_dst=%d,", req
->y_dst
);
1193 fprintf( stderr
, " w=%d,", req
->w
);
1194 fprintf( stderr
, " h=%d", req
->h
);
1197 static void dump_create_change_notification_request( const struct create_change_notification_request
*req
)
1199 fprintf( stderr
, " subtree=%d,", req
->subtree
);
1200 fprintf( stderr
, " filter=%d", req
->filter
);
1203 static void dump_create_change_notification_reply( const struct create_change_notification_reply
*req
)
1205 fprintf( stderr
, " handle=%d", req
->handle
);
1208 static void dump_create_mapping_request( const struct create_mapping_request
*req
)
1210 fprintf( stderr
, " size_high=%d,", req
->size_high
);
1211 fprintf( stderr
, " size_low=%d,", req
->size_low
);
1212 fprintf( stderr
, " protect=%d,", req
->protect
);
1213 fprintf( stderr
, " inherit=%d,", req
->inherit
);
1214 fprintf( stderr
, " file_handle=%d,", req
->file_handle
);
1215 fprintf( stderr
, " name=" );
1216 dump_varargs_unicode_str( cur_size
);
1219 static void dump_create_mapping_reply( const struct create_mapping_reply
*req
)
1221 fprintf( stderr
, " handle=%d", req
->handle
);
1224 static void dump_open_mapping_request( const struct open_mapping_request
*req
)
1226 fprintf( stderr
, " access=%08x,", req
->access
);
1227 fprintf( stderr
, " inherit=%d,", req
->inherit
);
1228 fprintf( stderr
, " name=" );
1229 dump_varargs_unicode_str( cur_size
);
1232 static void dump_open_mapping_reply( const struct open_mapping_reply
*req
)
1234 fprintf( stderr
, " handle=%d", req
->handle
);
1237 static void dump_get_mapping_info_request( const struct get_mapping_info_request
*req
)
1239 fprintf( stderr
, " handle=%d", req
->handle
);
1242 static void dump_get_mapping_info_reply( const struct get_mapping_info_reply
*req
)
1244 fprintf( stderr
, " size_high=%d,", req
->size_high
);
1245 fprintf( stderr
, " size_low=%d,", req
->size_low
);
1246 fprintf( stderr
, " protect=%d,", req
->protect
);
1247 fprintf( stderr
, " header_size=%d,", req
->header_size
);
1248 fprintf( stderr
, " base=%p,", req
->base
);
1249 fprintf( stderr
, " shared_file=%d,", req
->shared_file
);
1250 fprintf( stderr
, " shared_size=%d,", req
->shared_size
);
1251 fprintf( stderr
, " drive_type=%d", req
->drive_type
);
1254 static void dump_create_device_request( const struct create_device_request
*req
)
1256 fprintf( stderr
, " access=%08x,", req
->access
);
1257 fprintf( stderr
, " inherit=%d,", req
->inherit
);
1258 fprintf( stderr
, " id=%d", req
->id
);
1261 static void dump_create_device_reply( const struct create_device_reply
*req
)
1263 fprintf( stderr
, " handle=%d", req
->handle
);
1266 static void dump_create_snapshot_request( const struct create_snapshot_request
*req
)
1268 fprintf( stderr
, " inherit=%d,", req
->inherit
);
1269 fprintf( stderr
, " flags=%d,", req
->flags
);
1270 fprintf( stderr
, " pid=%p", req
->pid
);
1273 static void dump_create_snapshot_reply( const struct create_snapshot_reply
*req
)
1275 fprintf( stderr
, " handle=%d", req
->handle
);
1278 static void dump_next_process_request( const struct next_process_request
*req
)
1280 fprintf( stderr
, " handle=%d,", req
->handle
);
1281 fprintf( stderr
, " reset=%d", req
->reset
);
1284 static void dump_next_process_reply( const struct next_process_reply
*req
)
1286 fprintf( stderr
, " count=%d,", req
->count
);
1287 fprintf( stderr
, " pid=%p,", req
->pid
);
1288 fprintf( stderr
, " ppid=%p,", req
->ppid
);
1289 fprintf( stderr
, " heap=%p,", req
->heap
);
1290 fprintf( stderr
, " module=%p,", req
->module
);
1291 fprintf( stderr
, " threads=%d,", req
->threads
);
1292 fprintf( stderr
, " priority=%d,", req
->priority
);
1293 fprintf( stderr
, " filename=" );
1294 dump_varargs_string( cur_size
);
1297 static void dump_next_thread_request( const struct next_thread_request
*req
)
1299 fprintf( stderr
, " handle=%d,", req
->handle
);
1300 fprintf( stderr
, " reset=%d", req
->reset
);
1303 static void dump_next_thread_reply( const struct next_thread_reply
*req
)
1305 fprintf( stderr
, " count=%d,", req
->count
);
1306 fprintf( stderr
, " pid=%p,", req
->pid
);
1307 fprintf( stderr
, " tid=%p,", req
->tid
);
1308 fprintf( stderr
, " base_pri=%d,", req
->base_pri
);
1309 fprintf( stderr
, " delta_pri=%d", req
->delta_pri
);
1312 static void dump_next_module_request( const struct next_module_request
*req
)
1314 fprintf( stderr
, " handle=%d,", req
->handle
);
1315 fprintf( stderr
, " reset=%d", req
->reset
);
1318 static void dump_next_module_reply( const struct next_module_reply
*req
)
1320 fprintf( stderr
, " pid=%p,", req
->pid
);
1321 fprintf( stderr
, " base=%p,", req
->base
);
1322 fprintf( stderr
, " size=%d,", req
->size
);
1323 fprintf( stderr
, " filename=" );
1324 dump_varargs_string( cur_size
);
1327 static void dump_wait_debug_event_request( const struct wait_debug_event_request
*req
)
1329 fprintf( stderr
, " get_handle=%d", req
->get_handle
);
1332 static void dump_wait_debug_event_reply( const struct wait_debug_event_reply
*req
)
1334 fprintf( stderr
, " pid=%p,", req
->pid
);
1335 fprintf( stderr
, " tid=%p,", req
->tid
);
1336 fprintf( stderr
, " wait=%d,", req
->wait
);
1337 fprintf( stderr
, " event=" );
1338 dump_varargs_debug_event( cur_size
);
1341 static void dump_queue_exception_event_request( const struct queue_exception_event_request
*req
)
1343 fprintf( stderr
, " first=%d,", req
->first
);
1344 fprintf( stderr
, " record=" );
1345 dump_varargs_exc_event( cur_size
);
1348 static void dump_queue_exception_event_reply( const struct queue_exception_event_reply
*req
)
1350 fprintf( stderr
, " handle=%d", req
->handle
);
1353 static void dump_get_exception_status_request( const struct get_exception_status_request
*req
)
1355 fprintf( stderr
, " handle=%d", req
->handle
);
1358 static void dump_get_exception_status_reply( const struct get_exception_status_reply
*req
)
1360 fprintf( stderr
, " status=%d,", req
->status
);
1361 fprintf( stderr
, " context=" );
1362 dump_varargs_context( cur_size
);
1365 static void dump_output_debug_string_request( const struct output_debug_string_request
*req
)
1367 fprintf( stderr
, " string=%p,", req
->string
);
1368 fprintf( stderr
, " unicode=%d,", req
->unicode
);
1369 fprintf( stderr
, " length=%d", req
->length
);
1372 static void dump_continue_debug_event_request( const struct continue_debug_event_request
*req
)
1374 fprintf( stderr
, " pid=%p,", req
->pid
);
1375 fprintf( stderr
, " tid=%p,", req
->tid
);
1376 fprintf( stderr
, " status=%d", req
->status
);
1379 static void dump_debug_process_request( const struct debug_process_request
*req
)
1381 fprintf( stderr
, " pid=%p,", req
->pid
);
1382 fprintf( stderr
, " attach=%d", req
->attach
);
1385 static void dump_debug_break_request( const struct debug_break_request
*req
)
1387 fprintf( stderr
, " handle=%d", req
->handle
);
1390 static void dump_debug_break_reply( const struct debug_break_reply
*req
)
1392 fprintf( stderr
, " self=%d", req
->self
);
1395 static void dump_set_debugger_kill_on_exit_request( const struct set_debugger_kill_on_exit_request
*req
)
1397 fprintf( stderr
, " kill_on_exit=%d", req
->kill_on_exit
);
1400 static void dump_read_process_memory_request( const struct read_process_memory_request
*req
)
1402 fprintf( stderr
, " handle=%d,", req
->handle
);
1403 fprintf( stderr
, " addr=%p", req
->addr
);
1406 static void dump_read_process_memory_reply( const struct read_process_memory_reply
*req
)
1408 fprintf( stderr
, " data=" );
1409 dump_varargs_bytes( cur_size
);
1412 static void dump_write_process_memory_request( const struct write_process_memory_request
*req
)
1414 fprintf( stderr
, " handle=%d,", req
->handle
);
1415 fprintf( stderr
, " addr=%p,", req
->addr
);
1416 fprintf( stderr
, " first_mask=%08x,", req
->first_mask
);
1417 fprintf( stderr
, " last_mask=%08x,", req
->last_mask
);
1418 fprintf( stderr
, " data=" );
1419 dump_varargs_bytes( cur_size
);
1422 static void dump_create_key_request( const struct create_key_request
*req
)
1424 fprintf( stderr
, " parent=%d,", req
->parent
);
1425 fprintf( stderr
, " access=%08x,", req
->access
);
1426 fprintf( stderr
, " options=%08x,", req
->options
);
1427 fprintf( stderr
, " modif=%ld,", req
->modif
);
1428 fprintf( stderr
, " namelen=%d,", req
->namelen
);
1429 fprintf( stderr
, " name=" );
1430 dump_varargs_unicode_str( min(cur_size
,req
->namelen
) );
1431 fputc( ',', stderr
);
1432 fprintf( stderr
, " class=" );
1433 dump_varargs_unicode_str( cur_size
);
1436 static void dump_create_key_reply( const struct create_key_reply
*req
)
1438 fprintf( stderr
, " hkey=%d,", req
->hkey
);
1439 fprintf( stderr
, " created=%d", req
->created
);
1442 static void dump_open_key_request( const struct open_key_request
*req
)
1444 fprintf( stderr
, " parent=%d,", req
->parent
);
1445 fprintf( stderr
, " access=%08x,", req
->access
);
1446 fprintf( stderr
, " name=" );
1447 dump_varargs_unicode_str( cur_size
);
1450 static void dump_open_key_reply( const struct open_key_reply
*req
)
1452 fprintf( stderr
, " hkey=%d", req
->hkey
);
1455 static void dump_delete_key_request( const struct delete_key_request
*req
)
1457 fprintf( stderr
, " hkey=%d", req
->hkey
);
1460 static void dump_enum_key_request( const struct enum_key_request
*req
)
1462 fprintf( stderr
, " hkey=%d,", req
->hkey
);
1463 fprintf( stderr
, " index=%d,", req
->index
);
1464 fprintf( stderr
, " info_class=%d", req
->info_class
);
1467 static void dump_enum_key_reply( const struct enum_key_reply
*req
)
1469 fprintf( stderr
, " subkeys=%d,", req
->subkeys
);
1470 fprintf( stderr
, " max_subkey=%d,", req
->max_subkey
);
1471 fprintf( stderr
, " max_class=%d,", req
->max_class
);
1472 fprintf( stderr
, " values=%d,", req
->values
);
1473 fprintf( stderr
, " max_value=%d,", req
->max_value
);
1474 fprintf( stderr
, " max_data=%d,", req
->max_data
);
1475 fprintf( stderr
, " modif=%ld,", req
->modif
);
1476 fprintf( stderr
, " total=%d,", req
->total
);
1477 fprintf( stderr
, " namelen=%d,", req
->namelen
);
1478 fprintf( stderr
, " name=" );
1479 dump_varargs_unicode_str( min(cur_size
,req
->namelen
) );
1480 fputc( ',', stderr
);
1481 fprintf( stderr
, " class=" );
1482 dump_varargs_unicode_str( cur_size
);
1485 static void dump_set_key_value_request( const struct set_key_value_request
*req
)
1487 fprintf( stderr
, " hkey=%d,", req
->hkey
);
1488 fprintf( stderr
, " type=%d,", req
->type
);
1489 fprintf( stderr
, " namelen=%d,", req
->namelen
);
1490 fprintf( stderr
, " name=" );
1491 dump_varargs_unicode_str( min(cur_size
,req
->namelen
) );
1492 fputc( ',', stderr
);
1493 fprintf( stderr
, " data=" );
1494 dump_varargs_bytes( cur_size
);
1497 static void dump_get_key_value_request( const struct get_key_value_request
*req
)
1499 fprintf( stderr
, " hkey=%d,", req
->hkey
);
1500 fprintf( stderr
, " name=" );
1501 dump_varargs_unicode_str( cur_size
);
1504 static void dump_get_key_value_reply( const struct get_key_value_reply
*req
)
1506 fprintf( stderr
, " type=%d,", req
->type
);
1507 fprintf( stderr
, " total=%d,", req
->total
);
1508 fprintf( stderr
, " data=" );
1509 dump_varargs_bytes( cur_size
);
1512 static void dump_enum_key_value_request( const struct enum_key_value_request
*req
)
1514 fprintf( stderr
, " hkey=%d,", req
->hkey
);
1515 fprintf( stderr
, " index=%d,", req
->index
);
1516 fprintf( stderr
, " info_class=%d", req
->info_class
);
1519 static void dump_enum_key_value_reply( const struct enum_key_value_reply
*req
)
1521 fprintf( stderr
, " type=%d,", req
->type
);
1522 fprintf( stderr
, " total=%d,", req
->total
);
1523 fprintf( stderr
, " namelen=%d,", req
->namelen
);
1524 fprintf( stderr
, " name=" );
1525 dump_varargs_unicode_str( min(cur_size
,req
->namelen
) );
1526 fputc( ',', stderr
);
1527 fprintf( stderr
, " data=" );
1528 dump_varargs_bytes( cur_size
);
1531 static void dump_delete_key_value_request( const struct delete_key_value_request
*req
)
1533 fprintf( stderr
, " hkey=%d,", req
->hkey
);
1534 fprintf( stderr
, " name=" );
1535 dump_varargs_unicode_str( cur_size
);
1538 static void dump_load_registry_request( const struct load_registry_request
*req
)
1540 fprintf( stderr
, " hkey=%d,", req
->hkey
);
1541 fprintf( stderr
, " file=%d,", req
->file
);
1542 fprintf( stderr
, " name=" );
1543 dump_varargs_unicode_str( cur_size
);
1546 static void dump_save_registry_request( const struct save_registry_request
*req
)
1548 fprintf( stderr
, " hkey=%d,", req
->hkey
);
1549 fprintf( stderr
, " file=%d", req
->file
);
1552 static void dump_save_registry_atexit_request( const struct save_registry_atexit_request
*req
)
1554 fprintf( stderr
, " hkey=%d,", req
->hkey
);
1555 fprintf( stderr
, " file=" );
1556 dump_varargs_string( cur_size
);
1559 static void dump_set_registry_levels_request( const struct set_registry_levels_request
*req
)
1561 fprintf( stderr
, " current=%d,", req
->current
);
1562 fprintf( stderr
, " saving=%d,", req
->saving
);
1563 fprintf( stderr
, " period=%d", req
->period
);
1566 static void dump_create_timer_request( const struct create_timer_request
*req
)
1568 fprintf( stderr
, " inherit=%d,", req
->inherit
);
1569 fprintf( stderr
, " manual=%d,", req
->manual
);
1570 fprintf( stderr
, " name=" );
1571 dump_varargs_unicode_str( cur_size
);
1574 static void dump_create_timer_reply( const struct create_timer_reply
*req
)
1576 fprintf( stderr
, " handle=%d", req
->handle
);
1579 static void dump_open_timer_request( const struct open_timer_request
*req
)
1581 fprintf( stderr
, " access=%08x,", req
->access
);
1582 fprintf( stderr
, " inherit=%d,", req
->inherit
);
1583 fprintf( stderr
, " name=" );
1584 dump_varargs_unicode_str( cur_size
);
1587 static void dump_open_timer_reply( const struct open_timer_reply
*req
)
1589 fprintf( stderr
, " handle=%d", req
->handle
);
1592 static void dump_set_timer_request( const struct set_timer_request
*req
)
1594 fprintf( stderr
, " handle=%d,", req
->handle
);
1595 fprintf( stderr
, " sec=%d,", req
->sec
);
1596 fprintf( stderr
, " usec=%d,", req
->usec
);
1597 fprintf( stderr
, " period=%d,", req
->period
);
1598 fprintf( stderr
, " callback=%p,", req
->callback
);
1599 fprintf( stderr
, " arg=%p", req
->arg
);
1602 static void dump_cancel_timer_request( const struct cancel_timer_request
*req
)
1604 fprintf( stderr
, " handle=%d", req
->handle
);
1607 static void dump_get_thread_context_request( const struct get_thread_context_request
*req
)
1609 fprintf( stderr
, " handle=%d,", req
->handle
);
1610 fprintf( stderr
, " flags=%08x", req
->flags
);
1613 static void dump_get_thread_context_reply( const struct get_thread_context_reply
*req
)
1615 fprintf( stderr
, " context=" );
1616 dump_varargs_context( cur_size
);
1619 static void dump_set_thread_context_request( const struct set_thread_context_request
*req
)
1621 fprintf( stderr
, " handle=%d,", req
->handle
);
1622 fprintf( stderr
, " flags=%08x,", req
->flags
);
1623 fprintf( stderr
, " context=" );
1624 dump_varargs_context( cur_size
);
1627 static void dump_get_selector_entry_request( const struct get_selector_entry_request
*req
)
1629 fprintf( stderr
, " handle=%d,", req
->handle
);
1630 fprintf( stderr
, " entry=%d", req
->entry
);
1633 static void dump_get_selector_entry_reply( const struct get_selector_entry_reply
*req
)
1635 fprintf( stderr
, " base=%08x,", req
->base
);
1636 fprintf( stderr
, " limit=%08x,", req
->limit
);
1637 fprintf( stderr
, " flags=%02x", req
->flags
);
1640 static void dump_add_atom_request( const struct add_atom_request
*req
)
1642 fprintf( stderr
, " local=%d,", req
->local
);
1643 fprintf( stderr
, " name=" );
1644 dump_varargs_unicode_str( cur_size
);
1647 static void dump_add_atom_reply( const struct add_atom_reply
*req
)
1649 fprintf( stderr
, " atom=%04x", req
->atom
);
1652 static void dump_delete_atom_request( const struct delete_atom_request
*req
)
1654 fprintf( stderr
, " atom=%04x,", req
->atom
);
1655 fprintf( stderr
, " local=%d", req
->local
);
1658 static void dump_find_atom_request( const struct find_atom_request
*req
)
1660 fprintf( stderr
, " local=%d,", req
->local
);
1661 fprintf( stderr
, " name=" );
1662 dump_varargs_unicode_str( cur_size
);
1665 static void dump_find_atom_reply( const struct find_atom_reply
*req
)
1667 fprintf( stderr
, " atom=%04x", req
->atom
);
1670 static void dump_get_atom_name_request( const struct get_atom_name_request
*req
)
1672 fprintf( stderr
, " atom=%04x,", req
->atom
);
1673 fprintf( stderr
, " local=%d", req
->local
);
1676 static void dump_get_atom_name_reply( const struct get_atom_name_reply
*req
)
1678 fprintf( stderr
, " count=%d,", req
->count
);
1679 fprintf( stderr
, " name=" );
1680 dump_varargs_unicode_str( cur_size
);
1683 static void dump_init_atom_table_request( const struct init_atom_table_request
*req
)
1685 fprintf( stderr
, " entries=%d", req
->entries
);
1688 static void dump_get_msg_queue_request( const struct get_msg_queue_request
*req
)
1692 static void dump_get_msg_queue_reply( const struct get_msg_queue_reply
*req
)
1694 fprintf( stderr
, " handle=%d", req
->handle
);
1697 static void dump_set_queue_mask_request( const struct set_queue_mask_request
*req
)
1699 fprintf( stderr
, " wake_mask=%08x,", req
->wake_mask
);
1700 fprintf( stderr
, " changed_mask=%08x,", req
->changed_mask
);
1701 fprintf( stderr
, " skip_wait=%d", req
->skip_wait
);
1704 static void dump_set_queue_mask_reply( const struct set_queue_mask_reply
*req
)
1706 fprintf( stderr
, " wake_bits=%08x,", req
->wake_bits
);
1707 fprintf( stderr
, " changed_bits=%08x", req
->changed_bits
);
1710 static void dump_get_queue_status_request( const struct get_queue_status_request
*req
)
1712 fprintf( stderr
, " clear=%d", req
->clear
);
1715 static void dump_get_queue_status_reply( const struct get_queue_status_reply
*req
)
1717 fprintf( stderr
, " wake_bits=%08x,", req
->wake_bits
);
1718 fprintf( stderr
, " changed_bits=%08x", req
->changed_bits
);
1721 static void dump_wait_input_idle_request( const struct wait_input_idle_request
*req
)
1723 fprintf( stderr
, " handle=%d,", req
->handle
);
1724 fprintf( stderr
, " timeout=%d", req
->timeout
);
1727 static void dump_wait_input_idle_reply( const struct wait_input_idle_reply
*req
)
1729 fprintf( stderr
, " event=%d", req
->event
);
1732 static void dump_send_message_request( const struct send_message_request
*req
)
1734 fprintf( stderr
, " id=%p,", req
->id
);
1735 fprintf( stderr
, " type=%d,", req
->type
);
1736 fprintf( stderr
, " win=%08x,", req
->win
);
1737 fprintf( stderr
, " msg=%08x,", req
->msg
);
1738 fprintf( stderr
, " wparam=%08x,", req
->wparam
);
1739 fprintf( stderr
, " lparam=%08x,", req
->lparam
);
1740 fprintf( stderr
, " x=%d,", req
->x
);
1741 fprintf( stderr
, " y=%d,", req
->y
);
1742 fprintf( stderr
, " time=%08x,", req
->time
);
1743 fprintf( stderr
, " info=%08x,", req
->info
);
1744 fprintf( stderr
, " timeout=%d,", req
->timeout
);
1745 fprintf( stderr
, " data=" );
1746 dump_varargs_bytes( cur_size
);
1749 static void dump_get_message_request( const struct get_message_request
*req
)
1751 fprintf( stderr
, " flags=%d,", req
->flags
);
1752 fprintf( stderr
, " get_win=%08x,", req
->get_win
);
1753 fprintf( stderr
, " get_first=%08x,", req
->get_first
);
1754 fprintf( stderr
, " get_last=%08x", req
->get_last
);
1757 static void dump_get_message_reply( const struct get_message_reply
*req
)
1759 fprintf( stderr
, " type=%d,", req
->type
);
1760 fprintf( stderr
, " win=%08x,", req
->win
);
1761 fprintf( stderr
, " msg=%08x,", req
->msg
);
1762 fprintf( stderr
, " wparam=%08x,", req
->wparam
);
1763 fprintf( stderr
, " lparam=%08x,", req
->lparam
);
1764 fprintf( stderr
, " x=%d,", req
->x
);
1765 fprintf( stderr
, " y=%d,", req
->y
);
1766 fprintf( stderr
, " time=%08x,", req
->time
);
1767 fprintf( stderr
, " info=%08x,", req
->info
);
1768 fprintf( stderr
, " total=%d,", req
->total
);
1769 fprintf( stderr
, " data=" );
1770 dump_varargs_bytes( cur_size
);
1773 static void dump_reply_message_request( const struct reply_message_request
*req
)
1775 fprintf( stderr
, " result=%08x,", req
->result
);
1776 fprintf( stderr
, " remove=%d,", req
->remove
);
1777 fprintf( stderr
, " data=" );
1778 dump_varargs_bytes( cur_size
);
1781 static void dump_get_message_reply_request( const struct get_message_reply_request
*req
)
1783 fprintf( stderr
, " cancel=%d", req
->cancel
);
1786 static void dump_get_message_reply_reply( const struct get_message_reply_reply
*req
)
1788 fprintf( stderr
, " result=%08x,", req
->result
);
1789 fprintf( stderr
, " data=" );
1790 dump_varargs_bytes( cur_size
);
1793 static void dump_set_win_timer_request( const struct set_win_timer_request
*req
)
1795 fprintf( stderr
, " win=%08x,", req
->win
);
1796 fprintf( stderr
, " msg=%08x,", req
->msg
);
1797 fprintf( stderr
, " id=%08x,", req
->id
);
1798 fprintf( stderr
, " rate=%08x,", req
->rate
);
1799 fprintf( stderr
, " lparam=%08x", req
->lparam
);
1802 static void dump_kill_win_timer_request( const struct kill_win_timer_request
*req
)
1804 fprintf( stderr
, " win=%08x,", req
->win
);
1805 fprintf( stderr
, " msg=%08x,", req
->msg
);
1806 fprintf( stderr
, " id=%08x", req
->id
);
1809 static void dump_create_serial_request( const struct create_serial_request
*req
)
1811 fprintf( stderr
, " access=%08x,", req
->access
);
1812 fprintf( stderr
, " inherit=%d,", req
->inherit
);
1813 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1814 fprintf( stderr
, " sharing=%08x,", req
->sharing
);
1815 fprintf( stderr
, " name=" );
1816 dump_varargs_string( cur_size
);
1819 static void dump_create_serial_reply( const struct create_serial_reply
*req
)
1821 fprintf( stderr
, " handle=%d", req
->handle
);
1824 static void dump_get_serial_info_request( const struct get_serial_info_request
*req
)
1826 fprintf( stderr
, " handle=%d", req
->handle
);
1829 static void dump_get_serial_info_reply( const struct get_serial_info_reply
*req
)
1831 fprintf( stderr
, " readinterval=%08x,", req
->readinterval
);
1832 fprintf( stderr
, " readconst=%08x,", req
->readconst
);
1833 fprintf( stderr
, " readmult=%08x,", req
->readmult
);
1834 fprintf( stderr
, " writeconst=%08x,", req
->writeconst
);
1835 fprintf( stderr
, " writemult=%08x,", req
->writemult
);
1836 fprintf( stderr
, " eventmask=%08x,", req
->eventmask
);
1837 fprintf( stderr
, " commerror=%08x", req
->commerror
);
1840 static void dump_set_serial_info_request( const struct set_serial_info_request
*req
)
1842 fprintf( stderr
, " handle=%d,", req
->handle
);
1843 fprintf( stderr
, " flags=%d,", req
->flags
);
1844 fprintf( stderr
, " readinterval=%08x,", req
->readinterval
);
1845 fprintf( stderr
, " readconst=%08x,", req
->readconst
);
1846 fprintf( stderr
, " readmult=%08x,", req
->readmult
);
1847 fprintf( stderr
, " writeconst=%08x,", req
->writeconst
);
1848 fprintf( stderr
, " writemult=%08x,", req
->writemult
);
1849 fprintf( stderr
, " eventmask=%08x,", req
->eventmask
);
1850 fprintf( stderr
, " commerror=%08x", req
->commerror
);
1853 static void dump_register_async_request( const struct register_async_request
*req
)
1855 fprintf( stderr
, " handle=%d,", req
->handle
);
1856 fprintf( stderr
, " type=%d,", req
->type
);
1857 fprintf( stderr
, " overlapped=%p,", req
->overlapped
);
1858 fprintf( stderr
, " count=%d,", req
->count
);
1859 fprintf( stderr
, " status=%08x", req
->status
);
1862 static void dump_create_named_pipe_request( const struct create_named_pipe_request
*req
)
1864 fprintf( stderr
, " openmode=%08x,", req
->openmode
);
1865 fprintf( stderr
, " pipemode=%08x,", req
->pipemode
);
1866 fprintf( stderr
, " maxinstances=%08x,", req
->maxinstances
);
1867 fprintf( stderr
, " outsize=%08x,", req
->outsize
);
1868 fprintf( stderr
, " insize=%08x,", req
->insize
);
1869 fprintf( stderr
, " timeout=%08x,", req
->timeout
);
1870 fprintf( stderr
, " name=" );
1871 dump_varargs_unicode_str( cur_size
);
1874 static void dump_create_named_pipe_reply( const struct create_named_pipe_reply
*req
)
1876 fprintf( stderr
, " handle=%d", req
->handle
);
1879 static void dump_open_named_pipe_request( const struct open_named_pipe_request
*req
)
1881 fprintf( stderr
, " access=%08x,", req
->access
);
1882 fprintf( stderr
, " name=" );
1883 dump_varargs_unicode_str( cur_size
);
1886 static void dump_open_named_pipe_reply( const struct open_named_pipe_reply
*req
)
1888 fprintf( stderr
, " handle=%d", req
->handle
);
1891 static void dump_connect_named_pipe_request( const struct connect_named_pipe_request
*req
)
1893 fprintf( stderr
, " handle=%d,", req
->handle
);
1894 fprintf( stderr
, " overlapped=%p,", req
->overlapped
);
1895 fprintf( stderr
, " func=%p", req
->func
);
1898 static void dump_wait_named_pipe_request( const struct wait_named_pipe_request
*req
)
1900 fprintf( stderr
, " timeout=%08x,", req
->timeout
);
1901 fprintf( stderr
, " overlapped=%p,", req
->overlapped
);
1902 fprintf( stderr
, " func=%p,", req
->func
);
1903 fprintf( stderr
, " name=" );
1904 dump_varargs_unicode_str( cur_size
);
1907 static void dump_disconnect_named_pipe_request( const struct disconnect_named_pipe_request
*req
)
1909 fprintf( stderr
, " handle=%d", req
->handle
);
1912 static void dump_get_named_pipe_info_request( const struct get_named_pipe_info_request
*req
)
1914 fprintf( stderr
, " handle=%d", req
->handle
);
1917 static void dump_get_named_pipe_info_reply( const struct get_named_pipe_info_reply
*req
)
1919 fprintf( stderr
, " flags=%08x,", req
->flags
);
1920 fprintf( stderr
, " maxinstances=%08x,", req
->maxinstances
);
1921 fprintf( stderr
, " outsize=%08x,", req
->outsize
);
1922 fprintf( stderr
, " insize=%08x", req
->insize
);
1925 static void dump_create_smb_request( const struct create_smb_request
*req
)
1927 fprintf( stderr
, " fd=%d,", req
->fd
);
1928 fprintf( stderr
, " tree_id=%08x,", req
->tree_id
);
1929 fprintf( stderr
, " user_id=%08x,", req
->user_id
);
1930 fprintf( stderr
, " file_id=%08x,", req
->file_id
);
1931 fprintf( stderr
, " dialect=%08x", req
->dialect
);
1934 static void dump_create_smb_reply( const struct create_smb_reply
*req
)
1936 fprintf( stderr
, " handle=%d", req
->handle
);
1939 static void dump_get_smb_info_request( const struct get_smb_info_request
*req
)
1941 fprintf( stderr
, " handle=%d,", req
->handle
);
1942 fprintf( stderr
, " flags=%08x,", req
->flags
);
1943 fprintf( stderr
, " offset=%08x", req
->offset
);
1946 static void dump_get_smb_info_reply( const struct get_smb_info_reply
*req
)
1948 fprintf( stderr
, " tree_id=%08x,", req
->tree_id
);
1949 fprintf( stderr
, " user_id=%08x,", req
->user_id
);
1950 fprintf( stderr
, " dialect=%08x,", req
->dialect
);
1951 fprintf( stderr
, " file_id=%08x,", req
->file_id
);
1952 fprintf( stderr
, " offset=%08x", req
->offset
);
1955 static void dump_create_window_request( const struct create_window_request
*req
)
1957 fprintf( stderr
, " parent=%08x,", req
->parent
);
1958 fprintf( stderr
, " owner=%08x,", req
->owner
);
1959 fprintf( stderr
, " atom=%04x", req
->atom
);
1962 static void dump_create_window_reply( const struct create_window_reply
*req
)
1964 fprintf( stderr
, " handle=%08x", req
->handle
);
1967 static void dump_link_window_request( const struct link_window_request
*req
)
1969 fprintf( stderr
, " handle=%08x,", req
->handle
);
1970 fprintf( stderr
, " parent=%08x,", req
->parent
);
1971 fprintf( stderr
, " previous=%08x", req
->previous
);
1974 static void dump_link_window_reply( const struct link_window_reply
*req
)
1976 fprintf( stderr
, " full_parent=%08x", req
->full_parent
);
1979 static void dump_destroy_window_request( const struct destroy_window_request
*req
)
1981 fprintf( stderr
, " handle=%08x", req
->handle
);
1984 static void dump_set_window_owner_request( const struct set_window_owner_request
*req
)
1986 fprintf( stderr
, " handle=%08x,", req
->handle
);
1987 fprintf( stderr
, " owner=%08x", req
->owner
);
1990 static void dump_set_window_owner_reply( const struct set_window_owner_reply
*req
)
1992 fprintf( stderr
, " full_owner=%08x", req
->full_owner
);
1995 static void dump_get_window_info_request( const struct get_window_info_request
*req
)
1997 fprintf( stderr
, " handle=%08x", req
->handle
);
2000 static void dump_get_window_info_reply( const struct get_window_info_reply
*req
)
2002 fprintf( stderr
, " full_handle=%08x,", req
->full_handle
);
2003 fprintf( stderr
, " pid=%p,", req
->pid
);
2004 fprintf( stderr
, " tid=%p,", req
->tid
);
2005 fprintf( stderr
, " atom=%04x", req
->atom
);
2008 static void dump_set_window_info_request( const struct set_window_info_request
*req
)
2010 fprintf( stderr
, " handle=%08x,", req
->handle
);
2011 fprintf( stderr
, " flags=%08x,", req
->flags
);
2012 fprintf( stderr
, " style=%08x,", req
->style
);
2013 fprintf( stderr
, " ex_style=%08x,", req
->ex_style
);
2014 fprintf( stderr
, " id=%08x,", req
->id
);
2015 fprintf( stderr
, " instance=%p,", req
->instance
);
2016 fprintf( stderr
, " user_data=%p", req
->user_data
);
2019 static void dump_set_window_info_reply( const struct set_window_info_reply
*req
)
2021 fprintf( stderr
, " old_style=%08x,", req
->old_style
);
2022 fprintf( stderr
, " old_ex_style=%08x,", req
->old_ex_style
);
2023 fprintf( stderr
, " old_id=%08x,", req
->old_id
);
2024 fprintf( stderr
, " old_instance=%p,", req
->old_instance
);
2025 fprintf( stderr
, " old_user_data=%p", req
->old_user_data
);
2028 static void dump_get_window_parents_request( const struct get_window_parents_request
*req
)
2030 fprintf( stderr
, " handle=%08x", req
->handle
);
2033 static void dump_get_window_parents_reply( const struct get_window_parents_reply
*req
)
2035 fprintf( stderr
, " count=%d,", req
->count
);
2036 fprintf( stderr
, " parents=" );
2037 dump_varargs_user_handles( cur_size
);
2040 static void dump_get_window_children_request( const struct get_window_children_request
*req
)
2042 fprintf( stderr
, " parent=%08x,", req
->parent
);
2043 fprintf( stderr
, " atom=%04x,", req
->atom
);
2044 fprintf( stderr
, " tid=%p", req
->tid
);
2047 static void dump_get_window_children_reply( const struct get_window_children_reply
*req
)
2049 fprintf( stderr
, " count=%d,", req
->count
);
2050 fprintf( stderr
, " children=" );
2051 dump_varargs_user_handles( cur_size
);
2054 static void dump_get_window_tree_request( const struct get_window_tree_request
*req
)
2056 fprintf( stderr
, " handle=%08x", req
->handle
);
2059 static void dump_get_window_tree_reply( const struct get_window_tree_reply
*req
)
2061 fprintf( stderr
, " parent=%08x,", req
->parent
);
2062 fprintf( stderr
, " owner=%08x,", req
->owner
);
2063 fprintf( stderr
, " next_sibling=%08x,", req
->next_sibling
);
2064 fprintf( stderr
, " prev_sibling=%08x,", req
->prev_sibling
);
2065 fprintf( stderr
, " first_sibling=%08x,", req
->first_sibling
);
2066 fprintf( stderr
, " last_sibling=%08x,", req
->last_sibling
);
2067 fprintf( stderr
, " first_child=%08x,", req
->first_child
);
2068 fprintf( stderr
, " last_child=%08x", req
->last_child
);
2071 static void dump_set_window_rectangles_request( const struct set_window_rectangles_request
*req
)
2073 fprintf( stderr
, " handle=%08x,", req
->handle
);
2074 fprintf( stderr
, " window=" );
2075 dump_rectangle( &req
->window
);
2076 fprintf( stderr
, "," );
2077 fprintf( stderr
, " client=" );
2078 dump_rectangle( &req
->client
);
2081 static void dump_get_window_rectangles_request( const struct get_window_rectangles_request
*req
)
2083 fprintf( stderr
, " handle=%08x", req
->handle
);
2086 static void dump_get_window_rectangles_reply( const struct get_window_rectangles_reply
*req
)
2088 fprintf( stderr
, " window=" );
2089 dump_rectangle( &req
->window
);
2090 fprintf( stderr
, "," );
2091 fprintf( stderr
, " client=" );
2092 dump_rectangle( &req
->client
);
2095 static void dump_get_window_text_request( const struct get_window_text_request
*req
)
2097 fprintf( stderr
, " handle=%08x", req
->handle
);
2100 static void dump_get_window_text_reply( const struct get_window_text_reply
*req
)
2102 fprintf( stderr
, " text=" );
2103 dump_varargs_unicode_str( cur_size
);
2106 static void dump_set_window_text_request( const struct set_window_text_request
*req
)
2108 fprintf( stderr
, " handle=%08x,", req
->handle
);
2109 fprintf( stderr
, " text=" );
2110 dump_varargs_unicode_str( cur_size
);
2113 static void dump_inc_window_paint_count_request( const struct inc_window_paint_count_request
*req
)
2115 fprintf( stderr
, " handle=%08x,", req
->handle
);
2116 fprintf( stderr
, " incr=%d", req
->incr
);
2119 static void dump_get_windows_offset_request( const struct get_windows_offset_request
*req
)
2121 fprintf( stderr
, " from=%08x,", req
->from
);
2122 fprintf( stderr
, " to=%08x", req
->to
);
2125 static void dump_get_windows_offset_reply( const struct get_windows_offset_reply
*req
)
2127 fprintf( stderr
, " x=%d,", req
->x
);
2128 fprintf( stderr
, " y=%d", req
->y
);
2131 static void dump_set_window_property_request( const struct set_window_property_request
*req
)
2133 fprintf( stderr
, " window=%08x,", req
->window
);
2134 fprintf( stderr
, " atom=%04x,", req
->atom
);
2135 fprintf( stderr
, " string=%d,", req
->string
);
2136 fprintf( stderr
, " handle=%d", req
->handle
);
2139 static void dump_remove_window_property_request( const struct remove_window_property_request
*req
)
2141 fprintf( stderr
, " window=%08x,", req
->window
);
2142 fprintf( stderr
, " atom=%04x", req
->atom
);
2145 static void dump_remove_window_property_reply( const struct remove_window_property_reply
*req
)
2147 fprintf( stderr
, " handle=%d", req
->handle
);
2150 static void dump_get_window_property_request( const struct get_window_property_request
*req
)
2152 fprintf( stderr
, " window=%08x,", req
->window
);
2153 fprintf( stderr
, " atom=%04x", req
->atom
);
2156 static void dump_get_window_property_reply( const struct get_window_property_reply
*req
)
2158 fprintf( stderr
, " handle=%d", req
->handle
);
2161 static void dump_get_window_properties_request( const struct get_window_properties_request
*req
)
2163 fprintf( stderr
, " window=%08x", req
->window
);
2166 static void dump_get_window_properties_reply( const struct get_window_properties_reply
*req
)
2168 fprintf( stderr
, " total=%d,", req
->total
);
2169 fprintf( stderr
, " props=" );
2170 dump_varargs_properties( cur_size
);
2173 static const dump_func req_dumpers
[REQ_NB_REQUESTS
] = {
2174 (dump_func
)dump_new_process_request
,
2175 (dump_func
)dump_get_new_process_info_request
,
2176 (dump_func
)dump_new_thread_request
,
2177 (dump_func
)dump_boot_done_request
,
2178 (dump_func
)dump_init_process_request
,
2179 (dump_func
)dump_get_startup_info_request
,
2180 (dump_func
)dump_init_process_done_request
,
2181 (dump_func
)dump_init_thread_request
,
2182 (dump_func
)dump_terminate_process_request
,
2183 (dump_func
)dump_terminate_thread_request
,
2184 (dump_func
)dump_get_process_info_request
,
2185 (dump_func
)dump_set_process_info_request
,
2186 (dump_func
)dump_get_thread_info_request
,
2187 (dump_func
)dump_set_thread_info_request
,
2188 (dump_func
)dump_suspend_thread_request
,
2189 (dump_func
)dump_resume_thread_request
,
2190 (dump_func
)dump_load_dll_request
,
2191 (dump_func
)dump_unload_dll_request
,
2192 (dump_func
)dump_queue_apc_request
,
2193 (dump_func
)dump_get_apc_request
,
2194 (dump_func
)dump_close_handle_request
,
2195 (dump_func
)dump_set_handle_info_request
,
2196 (dump_func
)dump_dup_handle_request
,
2197 (dump_func
)dump_open_process_request
,
2198 (dump_func
)dump_open_thread_request
,
2199 (dump_func
)dump_select_request
,
2200 (dump_func
)dump_create_event_request
,
2201 (dump_func
)dump_event_op_request
,
2202 (dump_func
)dump_open_event_request
,
2203 (dump_func
)dump_create_mutex_request
,
2204 (dump_func
)dump_release_mutex_request
,
2205 (dump_func
)dump_open_mutex_request
,
2206 (dump_func
)dump_create_semaphore_request
,
2207 (dump_func
)dump_release_semaphore_request
,
2208 (dump_func
)dump_open_semaphore_request
,
2209 (dump_func
)dump_create_file_request
,
2210 (dump_func
)dump_alloc_file_handle_request
,
2211 (dump_func
)dump_get_handle_fd_request
,
2212 (dump_func
)dump_set_file_pointer_request
,
2213 (dump_func
)dump_truncate_file_request
,
2214 (dump_func
)dump_set_file_time_request
,
2215 (dump_func
)dump_flush_file_request
,
2216 (dump_func
)dump_get_file_info_request
,
2217 (dump_func
)dump_lock_file_request
,
2218 (dump_func
)dump_unlock_file_request
,
2219 (dump_func
)dump_create_pipe_request
,
2220 (dump_func
)dump_create_socket_request
,
2221 (dump_func
)dump_accept_socket_request
,
2222 (dump_func
)dump_set_socket_event_request
,
2223 (dump_func
)dump_get_socket_event_request
,
2224 (dump_func
)dump_enable_socket_event_request
,
2225 (dump_func
)dump_set_socket_deferred_request
,
2226 (dump_func
)dump_alloc_console_request
,
2227 (dump_func
)dump_free_console_request
,
2228 (dump_func
)dump_get_console_renderer_events_request
,
2229 (dump_func
)dump_open_console_request
,
2230 (dump_func
)dump_get_console_mode_request
,
2231 (dump_func
)dump_set_console_mode_request
,
2232 (dump_func
)dump_set_console_input_info_request
,
2233 (dump_func
)dump_get_console_input_info_request
,
2234 (dump_func
)dump_append_console_input_history_request
,
2235 (dump_func
)dump_get_console_input_history_request
,
2236 (dump_func
)dump_create_console_output_request
,
2237 (dump_func
)dump_set_console_output_info_request
,
2238 (dump_func
)dump_get_console_output_info_request
,
2239 (dump_func
)dump_write_console_input_request
,
2240 (dump_func
)dump_read_console_input_request
,
2241 (dump_func
)dump_write_console_output_request
,
2242 (dump_func
)dump_fill_console_output_request
,
2243 (dump_func
)dump_read_console_output_request
,
2244 (dump_func
)dump_move_console_output_request
,
2245 (dump_func
)dump_create_change_notification_request
,
2246 (dump_func
)dump_create_mapping_request
,
2247 (dump_func
)dump_open_mapping_request
,
2248 (dump_func
)dump_get_mapping_info_request
,
2249 (dump_func
)dump_create_device_request
,
2250 (dump_func
)dump_create_snapshot_request
,
2251 (dump_func
)dump_next_process_request
,
2252 (dump_func
)dump_next_thread_request
,
2253 (dump_func
)dump_next_module_request
,
2254 (dump_func
)dump_wait_debug_event_request
,
2255 (dump_func
)dump_queue_exception_event_request
,
2256 (dump_func
)dump_get_exception_status_request
,
2257 (dump_func
)dump_output_debug_string_request
,
2258 (dump_func
)dump_continue_debug_event_request
,
2259 (dump_func
)dump_debug_process_request
,
2260 (dump_func
)dump_debug_break_request
,
2261 (dump_func
)dump_set_debugger_kill_on_exit_request
,
2262 (dump_func
)dump_read_process_memory_request
,
2263 (dump_func
)dump_write_process_memory_request
,
2264 (dump_func
)dump_create_key_request
,
2265 (dump_func
)dump_open_key_request
,
2266 (dump_func
)dump_delete_key_request
,
2267 (dump_func
)dump_enum_key_request
,
2268 (dump_func
)dump_set_key_value_request
,
2269 (dump_func
)dump_get_key_value_request
,
2270 (dump_func
)dump_enum_key_value_request
,
2271 (dump_func
)dump_delete_key_value_request
,
2272 (dump_func
)dump_load_registry_request
,
2273 (dump_func
)dump_save_registry_request
,
2274 (dump_func
)dump_save_registry_atexit_request
,
2275 (dump_func
)dump_set_registry_levels_request
,
2276 (dump_func
)dump_create_timer_request
,
2277 (dump_func
)dump_open_timer_request
,
2278 (dump_func
)dump_set_timer_request
,
2279 (dump_func
)dump_cancel_timer_request
,
2280 (dump_func
)dump_get_thread_context_request
,
2281 (dump_func
)dump_set_thread_context_request
,
2282 (dump_func
)dump_get_selector_entry_request
,
2283 (dump_func
)dump_add_atom_request
,
2284 (dump_func
)dump_delete_atom_request
,
2285 (dump_func
)dump_find_atom_request
,
2286 (dump_func
)dump_get_atom_name_request
,
2287 (dump_func
)dump_init_atom_table_request
,
2288 (dump_func
)dump_get_msg_queue_request
,
2289 (dump_func
)dump_set_queue_mask_request
,
2290 (dump_func
)dump_get_queue_status_request
,
2291 (dump_func
)dump_wait_input_idle_request
,
2292 (dump_func
)dump_send_message_request
,
2293 (dump_func
)dump_get_message_request
,
2294 (dump_func
)dump_reply_message_request
,
2295 (dump_func
)dump_get_message_reply_request
,
2296 (dump_func
)dump_set_win_timer_request
,
2297 (dump_func
)dump_kill_win_timer_request
,
2298 (dump_func
)dump_create_serial_request
,
2299 (dump_func
)dump_get_serial_info_request
,
2300 (dump_func
)dump_set_serial_info_request
,
2301 (dump_func
)dump_register_async_request
,
2302 (dump_func
)dump_create_named_pipe_request
,
2303 (dump_func
)dump_open_named_pipe_request
,
2304 (dump_func
)dump_connect_named_pipe_request
,
2305 (dump_func
)dump_wait_named_pipe_request
,
2306 (dump_func
)dump_disconnect_named_pipe_request
,
2307 (dump_func
)dump_get_named_pipe_info_request
,
2308 (dump_func
)dump_create_smb_request
,
2309 (dump_func
)dump_get_smb_info_request
,
2310 (dump_func
)dump_create_window_request
,
2311 (dump_func
)dump_link_window_request
,
2312 (dump_func
)dump_destroy_window_request
,
2313 (dump_func
)dump_set_window_owner_request
,
2314 (dump_func
)dump_get_window_info_request
,
2315 (dump_func
)dump_set_window_info_request
,
2316 (dump_func
)dump_get_window_parents_request
,
2317 (dump_func
)dump_get_window_children_request
,
2318 (dump_func
)dump_get_window_tree_request
,
2319 (dump_func
)dump_set_window_rectangles_request
,
2320 (dump_func
)dump_get_window_rectangles_request
,
2321 (dump_func
)dump_get_window_text_request
,
2322 (dump_func
)dump_set_window_text_request
,
2323 (dump_func
)dump_inc_window_paint_count_request
,
2324 (dump_func
)dump_get_windows_offset_request
,
2325 (dump_func
)dump_set_window_property_request
,
2326 (dump_func
)dump_remove_window_property_request
,
2327 (dump_func
)dump_get_window_property_request
,
2328 (dump_func
)dump_get_window_properties_request
,
2331 static const dump_func reply_dumpers
[REQ_NB_REQUESTS
] = {
2332 (dump_func
)dump_new_process_reply
,
2333 (dump_func
)dump_get_new_process_info_reply
,
2334 (dump_func
)dump_new_thread_reply
,
2336 (dump_func
)dump_init_process_reply
,
2337 (dump_func
)dump_get_startup_info_reply
,
2338 (dump_func
)dump_init_process_done_reply
,
2339 (dump_func
)dump_init_thread_reply
,
2340 (dump_func
)dump_terminate_process_reply
,
2341 (dump_func
)dump_terminate_thread_reply
,
2342 (dump_func
)dump_get_process_info_reply
,
2344 (dump_func
)dump_get_thread_info_reply
,
2346 (dump_func
)dump_suspend_thread_reply
,
2347 (dump_func
)dump_resume_thread_reply
,
2351 (dump_func
)dump_get_apc_reply
,
2352 (dump_func
)dump_close_handle_reply
,
2353 (dump_func
)dump_set_handle_info_reply
,
2354 (dump_func
)dump_dup_handle_reply
,
2355 (dump_func
)dump_open_process_reply
,
2356 (dump_func
)dump_open_thread_reply
,
2358 (dump_func
)dump_create_event_reply
,
2360 (dump_func
)dump_open_event_reply
,
2361 (dump_func
)dump_create_mutex_reply
,
2363 (dump_func
)dump_open_mutex_reply
,
2364 (dump_func
)dump_create_semaphore_reply
,
2365 (dump_func
)dump_release_semaphore_reply
,
2366 (dump_func
)dump_open_semaphore_reply
,
2367 (dump_func
)dump_create_file_reply
,
2368 (dump_func
)dump_alloc_file_handle_reply
,
2369 (dump_func
)dump_get_handle_fd_reply
,
2370 (dump_func
)dump_set_file_pointer_reply
,
2374 (dump_func
)dump_get_file_info_reply
,
2377 (dump_func
)dump_create_pipe_reply
,
2378 (dump_func
)dump_create_socket_reply
,
2379 (dump_func
)dump_accept_socket_reply
,
2381 (dump_func
)dump_get_socket_event_reply
,
2384 (dump_func
)dump_alloc_console_reply
,
2386 (dump_func
)dump_get_console_renderer_events_reply
,
2387 (dump_func
)dump_open_console_reply
,
2388 (dump_func
)dump_get_console_mode_reply
,
2391 (dump_func
)dump_get_console_input_info_reply
,
2393 (dump_func
)dump_get_console_input_history_reply
,
2394 (dump_func
)dump_create_console_output_reply
,
2396 (dump_func
)dump_get_console_output_info_reply
,
2397 (dump_func
)dump_write_console_input_reply
,
2398 (dump_func
)dump_read_console_input_reply
,
2399 (dump_func
)dump_write_console_output_reply
,
2400 (dump_func
)dump_fill_console_output_reply
,
2401 (dump_func
)dump_read_console_output_reply
,
2403 (dump_func
)dump_create_change_notification_reply
,
2404 (dump_func
)dump_create_mapping_reply
,
2405 (dump_func
)dump_open_mapping_reply
,
2406 (dump_func
)dump_get_mapping_info_reply
,
2407 (dump_func
)dump_create_device_reply
,
2408 (dump_func
)dump_create_snapshot_reply
,
2409 (dump_func
)dump_next_process_reply
,
2410 (dump_func
)dump_next_thread_reply
,
2411 (dump_func
)dump_next_module_reply
,
2412 (dump_func
)dump_wait_debug_event_reply
,
2413 (dump_func
)dump_queue_exception_event_reply
,
2414 (dump_func
)dump_get_exception_status_reply
,
2418 (dump_func
)dump_debug_break_reply
,
2420 (dump_func
)dump_read_process_memory_reply
,
2422 (dump_func
)dump_create_key_reply
,
2423 (dump_func
)dump_open_key_reply
,
2425 (dump_func
)dump_enum_key_reply
,
2427 (dump_func
)dump_get_key_value_reply
,
2428 (dump_func
)dump_enum_key_value_reply
,
2434 (dump_func
)dump_create_timer_reply
,
2435 (dump_func
)dump_open_timer_reply
,
2438 (dump_func
)dump_get_thread_context_reply
,
2440 (dump_func
)dump_get_selector_entry_reply
,
2441 (dump_func
)dump_add_atom_reply
,
2443 (dump_func
)dump_find_atom_reply
,
2444 (dump_func
)dump_get_atom_name_reply
,
2446 (dump_func
)dump_get_msg_queue_reply
,
2447 (dump_func
)dump_set_queue_mask_reply
,
2448 (dump_func
)dump_get_queue_status_reply
,
2449 (dump_func
)dump_wait_input_idle_reply
,
2451 (dump_func
)dump_get_message_reply
,
2453 (dump_func
)dump_get_message_reply_reply
,
2456 (dump_func
)dump_create_serial_reply
,
2457 (dump_func
)dump_get_serial_info_reply
,
2460 (dump_func
)dump_create_named_pipe_reply
,
2461 (dump_func
)dump_open_named_pipe_reply
,
2465 (dump_func
)dump_get_named_pipe_info_reply
,
2466 (dump_func
)dump_create_smb_reply
,
2467 (dump_func
)dump_get_smb_info_reply
,
2468 (dump_func
)dump_create_window_reply
,
2469 (dump_func
)dump_link_window_reply
,
2471 (dump_func
)dump_set_window_owner_reply
,
2472 (dump_func
)dump_get_window_info_reply
,
2473 (dump_func
)dump_set_window_info_reply
,
2474 (dump_func
)dump_get_window_parents_reply
,
2475 (dump_func
)dump_get_window_children_reply
,
2476 (dump_func
)dump_get_window_tree_reply
,
2478 (dump_func
)dump_get_window_rectangles_reply
,
2479 (dump_func
)dump_get_window_text_reply
,
2482 (dump_func
)dump_get_windows_offset_reply
,
2484 (dump_func
)dump_remove_window_property_reply
,
2485 (dump_func
)dump_get_window_property_reply
,
2486 (dump_func
)dump_get_window_properties_reply
,
2489 static const char * const req_names
[REQ_NB_REQUESTS
] = {
2491 "get_new_process_info",
2496 "init_process_done",
2498 "terminate_process",
2523 "release_semaphore",
2526 "alloc_file_handle",
2540 "enable_socket_event",
2541 "set_socket_deferred",
2544 "get_console_renderer_events",
2548 "set_console_input_info",
2549 "get_console_input_info",
2550 "append_console_input_history",
2551 "get_console_input_history",
2552 "create_console_output",
2553 "set_console_output_info",
2554 "get_console_output_info",
2555 "write_console_input",
2556 "read_console_input",
2557 "write_console_output",
2558 "fill_console_output",
2559 "read_console_output",
2560 "move_console_output",
2561 "create_change_notification",
2571 "queue_exception_event",
2572 "get_exception_status",
2573 "output_debug_string",
2574 "continue_debug_event",
2577 "set_debugger_kill_on_exit",
2578 "read_process_memory",
2579 "write_process_memory",
2590 "save_registry_atexit",
2591 "set_registry_levels",
2596 "get_thread_context",
2597 "set_thread_context",
2598 "get_selector_entry",
2611 "get_message_reply",
2618 "create_named_pipe",
2620 "connect_named_pipe",
2622 "disconnect_named_pipe",
2623 "get_named_pipe_info",
2632 "get_window_parents",
2633 "get_window_children",
2635 "set_window_rectangles",
2636 "get_window_rectangles",
2639 "inc_window_paint_count",
2640 "get_windows_offset",
2641 "set_window_property",
2642 "remove_window_property",
2643 "get_window_property",
2644 "get_window_properties",
2647 /* ### make_requests end ### */
2648 /* Everything above this line is generated automatically by tools/make_requests */
2650 static const char *get_status_name( unsigned int status
)
2652 #define NAME(status) { #status, STATUS_##status }
2659 NAME(ACCESS_DENIED
),
2660 NAME(ACCESS_VIOLATION
),
2661 NAME(BUFFER_OVERFLOW
),
2662 NAME(CHILD_MUST_BE_VOLATILE
),
2663 NAME(DIRECTORY_NOT_EMPTY
),
2665 NAME(FILE_LOCK_CONFLICT
),
2666 NAME(INVALID_FILE_FOR_SECTION
),
2667 NAME(INVALID_HANDLE
),
2668 NAME(INVALID_PARAMETER
),
2670 NAME(MEDIA_WRITE_PROTECTED
),
2671 NAME(MUTANT_NOT_OWNED
),
2672 NAME(NOT_REGISTRY_FILE
),
2674 NAME(NO_MORE_ENTRIES
),
2675 NAME(NO_MORE_FILES
),
2677 NAME(OBJECT_NAME_COLLISION
),
2678 NAME(OBJECT_NAME_INVALID
),
2679 NAME(OBJECT_NAME_NOT_FOUND
),
2680 NAME(OBJECT_PATH_INVALID
),
2681 NAME(OBJECT_TYPE_MISMATCH
),
2684 NAME(SEMAPHORE_LIMIT_EXCEEDED
),
2685 NAME(SHARING_VIOLATION
),
2686 NAME(SUSPEND_COUNT_EXCEEDED
),
2688 NAME(TOO_MANY_OPENED_FILES
),
2691 { NULL
, 0 } /* terminator */
2696 static char buffer
[10];
2700 for (i
= 0; status_names
[i
].name
; i
++)
2701 if (status_names
[i
].value
== status
) return status_names
[i
].name
;
2703 sprintf( buffer
, "%x", status
);
2707 void trace_request(void)
2709 enum request req
= current
->req
.request_header
.req
;
2710 if (req
< REQ_NB_REQUESTS
)
2712 fprintf( stderr
, "%08x: %s(", (unsigned int)current
, req_names
[req
] );
2713 if (req_dumpers
[req
])
2716 cur_data
= get_req_data();
2717 cur_size
= get_req_data_size();
2718 req_dumpers
[req
]( ¤t
->req
);
2720 fprintf( stderr
, " )\n" );
2722 else fprintf( stderr
, "%08x: %d(?)\n", (unsigned int)current
, req
);
2725 void trace_reply( enum request req
, const union generic_reply
*reply
)
2727 if (req
< REQ_NB_REQUESTS
)
2729 fprintf( stderr
, "%08x: %s() = %s",
2730 (unsigned int)current
, req_names
[req
], get_status_name(current
->error
) );
2731 if (reply_dumpers
[req
])
2733 fprintf( stderr
, " {" );
2735 cur_data
= current
->reply_data
;
2736 cur_size
= reply
->reply_header
.reply_size
;
2737 reply_dumpers
[req
]( reply
);
2738 fprintf( stderr
, " }" );
2740 fputc( '\n', stderr
);
2742 else fprintf( stderr
, "%08x: %d() = %s\n",
2743 (unsigned int)current
, req
, get_status_name(current
->error
) );