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"
27 #include <sys/types.h>
42 static const void *cur_data;
45 /* utility functions */
47 inline static void remove_data( size_t size )
49 cur_data = (const char *)cur_data + size;
53 static void dump_uints( const int *ptr, int len )
58 fprintf( stderr, "%08x", *ptr++ );
59 if (--len) fputc( ',', stderr );
64 static void dump_abs_time( const abs_time_t *time )
69 if (!time->sec && !time->usec)
71 fprintf( stderr, "0" );
74 gettimeofday( &tv, NULL );
75 secs = time->sec - tv.tv_sec;
76 if ((usecs = time->usec - tv.tv_usec) < 0)
81 if (secs > 0 || (secs == 0 && usecs >= 0))
82 fprintf( stderr, "%d.%06d (+%d.%06d)", time->sec, time->usec, secs, usecs );
84 fprintf( stderr, "%d.%06d (-%d.%06d)", time->sec, time->usec, abs(secs+1), 1000000-usecs );
87 static void dump_rectangle( const rectangle_t *rect )
89 fprintf( stderr, "{%d,%d;%d,%d}",
90 rect->left, rect->top, rect->right, rect->bottom );
93 static void dump_char_info( const char_info_t *info )
95 fprintf( stderr, "{'" );
96 dump_strW( &info->ch, 1, stderr, "\'\'" );
97 fprintf( stderr, "',%04x}", info->attr );
100 static void dump_context( const CONTEXT *context )
103 fprintf( stderr, "{flags=%08lx,eax=%08lx,ebx=%08lx,ecx=%08lx,edx=%08lx,esi=%08lx,edi=%08lx,"
104 "ebp=%08lx,eip=%08lx,esp=%08lx,eflags=%08lx,cs=%04lx,ds=%04lx,es=%04lx,"
105 "fs=%04lx,gs=%04lx,dr0=%08lx,dr1=%08lx,dr2=%08lx,dr3=%08lx,dr6=%08lx,dr7=%08lx,",
106 context->ContextFlags, context->Eax, context->Ebx, context->Ecx, context->Edx,
107 context->Esi, context->Edi, context->Ebp, context->Eip, context->Esp, context->EFlags,
108 context->SegCs, context->SegDs, context->SegEs, context->SegFs, context->SegGs,
109 context->Dr0, context->Dr1, context->Dr2, context->Dr3, context->Dr6, context->Dr7 );
110 fprintf( stderr, "float=" );
111 dump_uints( (const int *)&context->FloatSave, sizeof(context->FloatSave) / sizeof(int) );
112 fprintf( stderr, "}" );
114 dump_uints( (const int *)context, sizeof(*context) / sizeof(int) );
118 static void dump_exc_record( const EXCEPTION_RECORD *rec )
121 fprintf( stderr, "{code=%lx,flags=%lx,rec=%p,addr=%p,params={",
122 rec->ExceptionCode, rec->ExceptionFlags, rec->ExceptionRecord,
123 rec->ExceptionAddress );
124 for (i = 0; i < min(rec->NumberParameters,EXCEPTION_MAXIMUM_PARAMETERS); i++)
126 if (i) fputc( ',', stderr );
127 fprintf( stderr, "%lx", rec->ExceptionInformation[i] );
129 fputc( '}', stderr );
132 static void dump_varargs_ints( size_t size )
134 const int *data = cur_data;
135 size_t len = size / sizeof(*data);
137 fputc( '{', stderr );
140 fprintf( stderr, "%d", *data++ );
141 if (--len) fputc( ',', stderr );
143 fputc( '}', stderr );
147 static void dump_varargs_handles( size_t size )
149 const obj_handle_t *data = cur_data;
150 size_t len = size / sizeof(*data);
152 fputc( '{', stderr );
155 fprintf( stderr, "%p", *data++ );
156 if (--len) fputc( ',', stderr );
158 fputc( '}', stderr );
162 static void dump_varargs_user_handles( size_t size )
164 const user_handle_t *data = cur_data;
165 size_t len = size / sizeof(*data);
167 fputc( '{', stderr );
170 fprintf( stderr, "%p", *data++ );
171 if (--len) fputc( ',', stderr );
173 fputc( '}', stderr );
177 static void dump_varargs_bytes( size_t size )
179 const unsigned char *data = cur_data;
182 fputc( '{', stderr );
185 fprintf( stderr, "%02x", *data++ );
186 if (--len) fputc( ',', stderr );
188 fputc( '}', stderr );
192 static void dump_varargs_string( size_t size )
194 fprintf( stderr, "\"%.*s\"", (int)size, (const char *)cur_data );
198 static void dump_varargs_unicode_str( size_t size )
200 fprintf( stderr, "L\"" );
201 dump_strW( cur_data, size / sizeof(WCHAR), stderr, "\"\"" );
202 fputc( '\"', stderr );
206 static void dump_varargs_context( size_t size )
210 fprintf( stderr, "{}" );
213 dump_context( cur_data );
217 static void dump_varargs_exc_event( size_t size )
219 const CONTEXT *ptr = cur_data;
223 fprintf( stderr, "{}" );
226 fprintf( stderr, "{context=" );
228 fprintf( stderr, ",rec=" );
229 dump_exc_record( (const EXCEPTION_RECORD *)(ptr + 1) );
230 fputc( '}', stderr );
234 static void dump_varargs_debug_event( size_t size )
236 const debug_event_t *event = cur_data;
240 fprintf( stderr, "{}" );
245 case EXCEPTION_DEBUG_EVENT:
246 fprintf( stderr, "{exception," );
247 dump_exc_record( &event->info.exception.record );
248 fprintf( stderr, ",first=%d}", event->info.exception.first );
250 case CREATE_THREAD_DEBUG_EVENT:
251 fprintf( stderr, "{create_thread,thread=%p,teb=%p,start=%p}",
252 event->info.create_thread.handle, event->info.create_thread.teb,
253 event->info.create_thread.start );
255 case CREATE_PROCESS_DEBUG_EVENT:
256 fprintf( stderr, "{create_process,file=%p,process=%p,thread=%p,base=%p,offset=%d,"
257 "size=%d,teb=%p,start=%p,name=%p,unicode=%d}",
258 event->info.create_process.file, event->info.create_process.process,
259 event->info.create_process.thread, event->info.create_process.base,
260 event->info.create_process.dbg_offset, event->info.create_process.dbg_size,
261 event->info.create_process.teb, event->info.create_process.start,
262 event->info.create_process.name, event->info.create_process.unicode );
264 case EXIT_THREAD_DEBUG_EVENT:
265 fprintf( stderr, "{exit_thread,code=%d}", event->info.exit.exit_code );
267 case EXIT_PROCESS_DEBUG_EVENT:
268 fprintf( stderr, "{exit_process,code=%d}", event->info.exit.exit_code );
270 case LOAD_DLL_DEBUG_EVENT:
271 fprintf( stderr, "{load_dll,file=%p,base=%p,offset=%d,size=%d,name=%p,unicode=%d}",
272 event->info.load_dll.handle, event->info.load_dll.base,
273 event->info.load_dll.dbg_offset, event->info.load_dll.dbg_size,
274 event->info.load_dll.name, event->info.load_dll.unicode );
276 case UNLOAD_DLL_DEBUG_EVENT:
277 fprintf( stderr, "{unload_dll,base=%p}", event->info.unload_dll.base );
279 case OUTPUT_DEBUG_STRING_EVENT:
280 fprintf( stderr, "{output_string,data=%p,unicode=%d,len=%d}",
281 event->info.output_string.string, event->info.output_string.unicode,
282 event->info.output_string.length );
285 fprintf( stderr, "{rip,err=%d,type=%d}",
286 event->info.rip_info.error, event->info.rip_info.type );
288 case 0: /* zero is the code returned on timeouts */
289 fprintf( stderr, "{}" );
292 fprintf( stderr, "{code=??? (%d)}", event->code );
298 /* dump a unicode string contained in a buffer; helper for dump_varargs_startup_info */
299 static void dump_inline_unicode_string( const UNICODE_STRING *str, const void *data, size_t size )
301 size_t length = str->Length / sizeof(WCHAR);
302 size_t offset = (size_t)str->Buffer;
304 if (offset >= size) return;
305 if (offset + length > size) length = size - offset;
306 dump_strW( (const WCHAR *)data + offset/sizeof(WCHAR), length, stderr, "\"\"" );
309 static void dump_varargs_startup_info( size_t size )
311 const RTL_USER_PROCESS_PARAMETERS *ptr = cur_data;
312 RTL_USER_PROCESS_PARAMETERS params;
314 if (size < sizeof(params.Size))
316 fprintf( stderr, "{}" );
319 if (size > ptr->Size) size = ptr->Size;
320 memset( ¶ms, 0, sizeof(params) );
321 memcpy( ¶ms, ptr, min( size, sizeof(params) ));
323 fprintf( stderr, "{AllocationSize=%lx,", params.AllocationSize );
324 fprintf( stderr, "Size=%lx,", params.Size );
325 fprintf( stderr, "Flags=%lx,", params.Flags );
326 fprintf( stderr, "DebugFlags=%lx,", params.DebugFlags );
327 fprintf( stderr, "ConsoleHandle=%p,", params.ConsoleHandle );
328 fprintf( stderr, "ConsoleFlags=%lx,", params.ConsoleFlags );
329 fprintf( stderr, "hStdInput=%p,", params.hStdInput );
330 fprintf( stderr, "hStdOutput=%p,", params.hStdOutput );
331 fprintf( stderr, "hStdError=%p,", params.hStdError );
332 fprintf( stderr, "CurrentDirectory.Handle=%p,", params.CurrentDirectory.Handle );
333 fprintf( stderr, "dwX=%ld,", params.dwX );
334 fprintf( stderr, "dwY=%ld,", params.dwY );
335 fprintf( stderr, "dwXSize=%ld,", params.dwXSize );
336 fprintf( stderr, "dwYSize=%ld,", params.dwYSize );
337 fprintf( stderr, "dwXCountChars=%ld,", params.dwXCountChars );
338 fprintf( stderr, "dwYCountChars=%ld,", params.dwYCountChars );
339 fprintf( stderr, "dwFillAttribute=%lx,", params.dwFillAttribute );
340 fprintf( stderr, "dwFlags=%lx,", params.dwFlags );
341 fprintf( stderr, "wShowWindow=%lx,", params.wShowWindow );
342 fprintf( stderr, "CurrentDirectory.DosPath=L\"" );
343 dump_inline_unicode_string( ¶ms.CurrentDirectory.DosPath, cur_data, size );
344 fprintf( stderr, "\",DllPath=L\"" );
345 dump_inline_unicode_string( ¶ms.DllPath, cur_data, size );
346 fprintf( stderr, "\",ImagePathName=L\"" );
347 dump_inline_unicode_string( ¶ms.ImagePathName, cur_data, size );
348 fprintf( stderr, "\",CommandLine=L\"" );
349 dump_inline_unicode_string( ¶ms.CommandLine, cur_data, size );
350 fprintf( stderr, "\",WindowTitle=L\"" );
351 dump_inline_unicode_string( ¶ms.WindowTitle, cur_data, size );
352 fprintf( stderr, "\",Desktop=L\"" );
353 dump_inline_unicode_string( ¶ms.Desktop, cur_data, size );
354 fprintf( stderr, "\",ShellInfo=L\"" );
355 dump_inline_unicode_string( ¶ms.ShellInfo, cur_data, size );
356 fprintf( stderr, "\",RuntimeInfo=L\"" );
357 dump_inline_unicode_string( ¶ms.RuntimeInfo, cur_data, size );
358 fprintf( stderr, "\"}" );
362 static void dump_varargs_input_records( size_t size )
364 const INPUT_RECORD *rec = cur_data;
365 size_t len = size / sizeof(*rec);
367 fputc( '{', stderr );
370 fprintf( stderr, "{%04x,...}", rec->EventType );
372 if (--len) fputc( ',', stderr );
374 fputc( '}', stderr );
378 static void dump_varargs_rectangles( size_t size )
380 const rectangle_t *rect = cur_data;
381 size_t len = size / sizeof(*rect);
383 fputc( '{', stderr );
386 dump_rectangle( rect++ );
387 if (--len) fputc( ',', stderr );
389 fputc( '}', stderr );
393 static void dump_varargs_properties( size_t size )
395 const property_data_t *prop = cur_data;
396 size_t len = size / sizeof(*prop);
398 fputc( '{', stderr );
401 fprintf( stderr, "{atom=%04x,str=%d,handle=%p}",
402 prop->atom, prop->string, prop->handle );
404 if (--len) fputc( ',', stderr );
406 fputc( '}', stderr );
410 static void dump_varargs_LUID_AND_ATTRIBUTES( size_t size )
412 const LUID_AND_ATTRIBUTES *lat = cur_data;
413 size_t len = size / sizeof(*lat);
415 fputc( '{', stderr );
418 fprintf( stderr, "{luid=%08lx%08lx,attr=%lx}",
419 lat->Luid.HighPart, lat->Luid.LowPart, lat->Attributes );
421 if (--len) fputc( ',', stderr );
423 fputc( '}', stderr );
427 typedef void (*dump_func)( const void *req );
429 /* Everything below this line is generated automatically by tools/make_requests */
430 /* ### make_requests begin ### */
432 static void dump_new_process_request( const struct new_process_request *req )
434 fprintf( stderr, " inherit_all=%d,", req->inherit_all );
435 fprintf( stderr, " create_flags=%d,", req->create_flags );
436 fprintf( stderr, " unix_pid=%d,", req->unix_pid );
437 fprintf( stderr, " exe_file=%p,", req->exe_file );
438 fprintf( stderr, " hstdin=%p,", req->hstdin );
439 fprintf( stderr, " hstdout=%p,", req->hstdout );
440 fprintf( stderr, " hstderr=%p,", req->hstderr );
441 fprintf( stderr, " info=" );
442 dump_varargs_startup_info( cur_size );
443 fputc( ',', stderr );
444 fprintf( stderr, " env=" );
445 dump_varargs_unicode_str( cur_size );
448 static void dump_new_process_reply( const struct new_process_reply *req )
450 fprintf( stderr, " info=%p", req->info );
453 static void dump_get_new_process_info_request( const struct get_new_process_info_request *req )
455 fprintf( stderr, " info=%p,", req->info );
456 fprintf( stderr, " pinherit=%d,", req->pinherit );
457 fprintf( stderr, " tinherit=%d", req->tinherit );
460 static void dump_get_new_process_info_reply( const struct get_new_process_info_reply *req )
462 fprintf( stderr, " pid=%04x,", req->pid );
463 fprintf( stderr, " phandle=%p,", req->phandle );
464 fprintf( stderr, " tid=%04x,", req->tid );
465 fprintf( stderr, " thandle=%p,", req->thandle );
466 fprintf( stderr, " success=%d", req->success );
469 static void dump_new_thread_request( const struct new_thread_request *req )
471 fprintf( stderr, " suspend=%d,", req->suspend );
472 fprintf( stderr, " inherit=%d,", req->inherit );
473 fprintf( stderr, " request_fd=%d", req->request_fd );
476 static void dump_new_thread_reply( const struct new_thread_reply *req )
478 fprintf( stderr, " tid=%04x,", req->tid );
479 fprintf( stderr, " handle=%p", req->handle );
482 static void dump_boot_done_request( const struct boot_done_request *req )
484 fprintf( stderr, " debug_level=%d", req->debug_level );
487 static void dump_init_process_request( const struct init_process_request *req )
489 fprintf( stderr, " peb=%p,", req->peb );
490 fprintf( stderr, " ldt_copy=%p", req->ldt_copy );
493 static void dump_init_process_reply( const struct init_process_reply *req )
495 fprintf( stderr, " create_flags=%d,", req->create_flags );
496 fprintf( stderr, " server_start=%08x,", req->server_start );
497 fprintf( stderr, " info_size=%d,", req->info_size );
498 fprintf( stderr, " exe_file=%p,", req->exe_file );
499 fprintf( stderr, " hstdin=%p,", req->hstdin );
500 fprintf( stderr, " hstdout=%p,", req->hstdout );
501 fprintf( stderr, " hstderr=%p", req->hstderr );
504 static void dump_get_startup_info_request( const struct get_startup_info_request *req )
508 static void dump_get_startup_info_reply( const struct get_startup_info_reply *req )
510 fprintf( stderr, " info=" );
511 dump_varargs_startup_info( cur_size );
512 fputc( ',', stderr );
513 fprintf( stderr, " env=" );
514 dump_varargs_unicode_str( cur_size );
517 static void dump_init_process_done_request( const struct init_process_done_request *req )
519 fprintf( stderr, " module=%p,", req->module );
520 fprintf( stderr, " module_size=%d,", req->module_size );
521 fprintf( stderr, " entry=%p,", req->entry );
522 fprintf( stderr, " name=%p,", req->name );
523 fprintf( stderr, " exe_file=%p,", req->exe_file );
524 fprintf( stderr, " gui=%d,", req->gui );
525 fprintf( stderr, " filename=" );
526 dump_varargs_unicode_str( cur_size );
529 static void dump_init_thread_request( const struct init_thread_request *req )
531 fprintf( stderr, " unix_pid=%d,", req->unix_pid );
532 fprintf( stderr, " unix_tid=%d,", req->unix_tid );
533 fprintf( stderr, " teb=%p,", req->teb );
534 fprintf( stderr, " entry=%p,", req->entry );
535 fprintf( stderr, " reply_fd=%d,", req->reply_fd );
536 fprintf( stderr, " wait_fd=%d", req->wait_fd );
539 static void dump_init_thread_reply( const struct init_thread_reply *req )
541 fprintf( stderr, " pid=%04x,", req->pid );
542 fprintf( stderr, " tid=%04x,", req->tid );
543 fprintf( stderr, " boot=%d,", req->boot );
544 fprintf( stderr, " version=%d", req->version );
547 static void dump_terminate_process_request( const struct terminate_process_request *req )
549 fprintf( stderr, " handle=%p,", req->handle );
550 fprintf( stderr, " exit_code=%d", req->exit_code );
553 static void dump_terminate_process_reply( const struct terminate_process_reply *req )
555 fprintf( stderr, " self=%d", req->self );
558 static void dump_terminate_thread_request( const struct terminate_thread_request *req )
560 fprintf( stderr, " handle=%p,", req->handle );
561 fprintf( stderr, " exit_code=%d", req->exit_code );
564 static void dump_terminate_thread_reply( const struct terminate_thread_reply *req )
566 fprintf( stderr, " self=%d,", req->self );
567 fprintf( stderr, " last=%d", req->last );
570 static void dump_get_process_info_request( const struct get_process_info_request *req )
572 fprintf( stderr, " handle=%p", req->handle );
575 static void dump_get_process_info_reply( const struct get_process_info_reply *req )
577 fprintf( stderr, " pid=%04x,", req->pid );
578 fprintf( stderr, " ppid=%04x,", req->ppid );
579 fprintf( stderr, " exit_code=%d,", req->exit_code );
580 fprintf( stderr, " priority=%d,", req->priority );
581 fprintf( stderr, " process_affinity=%d,", req->process_affinity );
582 fprintf( stderr, " system_affinity=%d,", req->system_affinity );
583 fprintf( stderr, " peb=%p", req->peb );
586 static void dump_set_process_info_request( const struct set_process_info_request *req )
588 fprintf( stderr, " handle=%p,", req->handle );
589 fprintf( stderr, " mask=%d,", req->mask );
590 fprintf( stderr, " priority=%d,", req->priority );
591 fprintf( stderr, " affinity=%d", req->affinity );
594 static void dump_get_thread_info_request( const struct get_thread_info_request *req )
596 fprintf( stderr, " handle=%p,", req->handle );
597 fprintf( stderr, " tid_in=%04x", req->tid_in );
600 static void dump_get_thread_info_reply( const struct get_thread_info_reply *req )
602 fprintf( stderr, " pid=%04x,", req->pid );
603 fprintf( stderr, " tid=%04x,", req->tid );
604 fprintf( stderr, " teb=%p,", req->teb );
605 fprintf( stderr, " exit_code=%d,", req->exit_code );
606 fprintf( stderr, " priority=%d,", req->priority );
607 fprintf( stderr, " affinity=%d,", req->affinity );
608 fprintf( stderr, " creation_time=%ld,", (long)req->creation_time );
609 fprintf( stderr, " exit_time=%ld", (long)req->exit_time );
612 static void dump_set_thread_info_request( const struct set_thread_info_request *req )
614 fprintf( stderr, " handle=%p,", req->handle );
615 fprintf( stderr, " mask=%d,", req->mask );
616 fprintf( stderr, " priority=%d,", req->priority );
617 fprintf( stderr, " affinity=%d", req->affinity );
620 static void dump_get_dll_info_request( const struct get_dll_info_request *req )
622 fprintf( stderr, " handle=%p,", req->handle );
623 fprintf( stderr, " base_address=%p", req->base_address );
626 static void dump_get_dll_info_reply( const struct get_dll_info_reply *req )
628 fprintf( stderr, " size=%d,", req->size );
629 fprintf( stderr, " entry_point=%p,", req->entry_point );
630 fprintf( stderr, " filename=" );
631 dump_varargs_unicode_str( cur_size );
634 static void dump_suspend_thread_request( const struct suspend_thread_request *req )
636 fprintf( stderr, " handle=%p", req->handle );
639 static void dump_suspend_thread_reply( const struct suspend_thread_reply *req )
641 fprintf( stderr, " count=%d", req->count );
644 static void dump_resume_thread_request( const struct resume_thread_request *req )
646 fprintf( stderr, " handle=%p", req->handle );
649 static void dump_resume_thread_reply( const struct resume_thread_reply *req )
651 fprintf( stderr, " count=%d", req->count );
654 static void dump_load_dll_request( const struct load_dll_request *req )
656 fprintf( stderr, " handle=%p,", req->handle );
657 fprintf( stderr, " base=%p,", req->base );
658 fprintf( stderr, " size=%d,", req->size );
659 fprintf( stderr, " dbg_offset=%d,", req->dbg_offset );
660 fprintf( stderr, " dbg_size=%d,", req->dbg_size );
661 fprintf( stderr, " name=%p,", req->name );
662 fprintf( stderr, " filename=" );
663 dump_varargs_unicode_str( cur_size );
666 static void dump_unload_dll_request( const struct unload_dll_request *req )
668 fprintf( stderr, " base=%p", req->base );
671 static void dump_queue_apc_request( const struct queue_apc_request *req )
673 fprintf( stderr, " handle=%p,", req->handle );
674 fprintf( stderr, " user=%d,", req->user );
675 fprintf( stderr, " func=%p,", req->func );
676 fprintf( stderr, " arg1=%p,", req->arg1 );
677 fprintf( stderr, " arg2=%p,", req->arg2 );
678 fprintf( stderr, " arg3=%p", req->arg3 );
681 static void dump_get_apc_request( const struct get_apc_request *req )
683 fprintf( stderr, " alertable=%d", req->alertable );
686 static void dump_get_apc_reply( const struct get_apc_reply *req )
688 fprintf( stderr, " func=%p,", req->func );
689 fprintf( stderr, " type=%d,", req->type );
690 fprintf( stderr, " arg1=%p,", req->arg1 );
691 fprintf( stderr, " arg2=%p,", req->arg2 );
692 fprintf( stderr, " arg3=%p", req->arg3 );
695 static void dump_close_handle_request( const struct close_handle_request *req )
697 fprintf( stderr, " handle=%p", req->handle );
700 static void dump_close_handle_reply( const struct close_handle_reply *req )
702 fprintf( stderr, " fd=%d", req->fd );
705 static void dump_set_handle_info_request( const struct set_handle_info_request *req )
707 fprintf( stderr, " handle=%p,", req->handle );
708 fprintf( stderr, " flags=%d,", req->flags );
709 fprintf( stderr, " mask=%d,", req->mask );
710 fprintf( stderr, " fd=%d", req->fd );
713 static void dump_set_handle_info_reply( const struct set_handle_info_reply *req )
715 fprintf( stderr, " old_flags=%d,", req->old_flags );
716 fprintf( stderr, " cur_fd=%d", req->cur_fd );
719 static void dump_dup_handle_request( const struct dup_handle_request *req )
721 fprintf( stderr, " src_process=%p,", req->src_process );
722 fprintf( stderr, " src_handle=%p,", req->src_handle );
723 fprintf( stderr, " dst_process=%p,", req->dst_process );
724 fprintf( stderr, " access=%08x,", req->access );
725 fprintf( stderr, " inherit=%d,", req->inherit );
726 fprintf( stderr, " options=%d", req->options );
729 static void dump_dup_handle_reply( const struct dup_handle_reply *req )
731 fprintf( stderr, " handle=%p,", req->handle );
732 fprintf( stderr, " fd=%d", req->fd );
735 static void dump_open_process_request( const struct open_process_request *req )
737 fprintf( stderr, " pid=%04x,", req->pid );
738 fprintf( stderr, " access=%08x,", req->access );
739 fprintf( stderr, " inherit=%d", req->inherit );
742 static void dump_open_process_reply( const struct open_process_reply *req )
744 fprintf( stderr, " handle=%p", req->handle );
747 static void dump_open_thread_request( const struct open_thread_request *req )
749 fprintf( stderr, " tid=%04x,", req->tid );
750 fprintf( stderr, " access=%08x,", req->access );
751 fprintf( stderr, " inherit=%d", req->inherit );
754 static void dump_open_thread_reply( const struct open_thread_reply *req )
756 fprintf( stderr, " handle=%p", req->handle );
759 static void dump_select_request( const struct select_request *req )
761 fprintf( stderr, " flags=%d,", req->flags );
762 fprintf( stderr, " cookie=%p,", req->cookie );
763 fprintf( stderr, " signal=%p,", req->signal );
764 fprintf( stderr, " timeout=" );
765 dump_abs_time( &req->timeout );
766 fprintf( stderr, "," );
767 fprintf( stderr, " handles=" );
768 dump_varargs_handles( cur_size );
771 static void dump_create_event_request( const struct create_event_request *req )
773 fprintf( stderr, " access=%08x,", req->access );
774 fprintf( stderr, " manual_reset=%d,", req->manual_reset );
775 fprintf( stderr, " initial_state=%d,", req->initial_state );
776 fprintf( stderr, " inherit=%d,", req->inherit );
777 fprintf( stderr, " name=" );
778 dump_varargs_unicode_str( cur_size );
781 static void dump_create_event_reply( const struct create_event_reply *req )
783 fprintf( stderr, " handle=%p", req->handle );
786 static void dump_event_op_request( const struct event_op_request *req )
788 fprintf( stderr, " handle=%p,", req->handle );
789 fprintf( stderr, " op=%d", req->op );
792 static void dump_open_event_request( const struct open_event_request *req )
794 fprintf( stderr, " access=%08x,", req->access );
795 fprintf( stderr, " inherit=%d,", req->inherit );
796 fprintf( stderr, " name=" );
797 dump_varargs_unicode_str( cur_size );
800 static void dump_open_event_reply( const struct open_event_reply *req )
802 fprintf( stderr, " handle=%p", req->handle );
805 static void dump_create_mutex_request( const struct create_mutex_request *req )
807 fprintf( stderr, " access=%08x,", req->access );
808 fprintf( stderr, " owned=%d,", req->owned );
809 fprintf( stderr, " inherit=%d,", req->inherit );
810 fprintf( stderr, " name=" );
811 dump_varargs_unicode_str( cur_size );
814 static void dump_create_mutex_reply( const struct create_mutex_reply *req )
816 fprintf( stderr, " handle=%p", req->handle );
819 static void dump_release_mutex_request( const struct release_mutex_request *req )
821 fprintf( stderr, " handle=%p", req->handle );
824 static void dump_release_mutex_reply( const struct release_mutex_reply *req )
826 fprintf( stderr, " prev_count=%08x", req->prev_count );
829 static void dump_open_mutex_request( const struct open_mutex_request *req )
831 fprintf( stderr, " access=%08x,", req->access );
832 fprintf( stderr, " inherit=%d,", req->inherit );
833 fprintf( stderr, " name=" );
834 dump_varargs_unicode_str( cur_size );
837 static void dump_open_mutex_reply( const struct open_mutex_reply *req )
839 fprintf( stderr, " handle=%p", req->handle );
842 static void dump_create_semaphore_request( const struct create_semaphore_request *req )
844 fprintf( stderr, " access=%08x,", req->access );
845 fprintf( stderr, " initial=%08x,", req->initial );
846 fprintf( stderr, " max=%08x,", req->max );
847 fprintf( stderr, " inherit=%d,", req->inherit );
848 fprintf( stderr, " name=" );
849 dump_varargs_unicode_str( cur_size );
852 static void dump_create_semaphore_reply( const struct create_semaphore_reply *req )
854 fprintf( stderr, " handle=%p", req->handle );
857 static void dump_release_semaphore_request( const struct release_semaphore_request *req )
859 fprintf( stderr, " handle=%p,", req->handle );
860 fprintf( stderr, " count=%08x", req->count );
863 static void dump_release_semaphore_reply( const struct release_semaphore_reply *req )
865 fprintf( stderr, " prev_count=%08x", req->prev_count );
868 static void dump_open_semaphore_request( const struct open_semaphore_request *req )
870 fprintf( stderr, " access=%08x,", req->access );
871 fprintf( stderr, " inherit=%d,", req->inherit );
872 fprintf( stderr, " name=" );
873 dump_varargs_unicode_str( cur_size );
876 static void dump_open_semaphore_reply( const struct open_semaphore_reply *req )
878 fprintf( stderr, " handle=%p", req->handle );
881 static void dump_create_file_request( const struct create_file_request *req )
883 fprintf( stderr, " access=%08x,", req->access );
884 fprintf( stderr, " inherit=%d,", req->inherit );
885 fprintf( stderr, " sharing=%08x,", req->sharing );
886 fprintf( stderr, " create=%d,", req->create );
887 fprintf( stderr, " options=%08x,", req->options );
888 fprintf( stderr, " attrs=%08x,", req->attrs );
889 fprintf( stderr, " filename=" );
890 dump_varargs_string( cur_size );
893 static void dump_create_file_reply( const struct create_file_reply *req )
895 fprintf( stderr, " handle=%p", req->handle );
898 static void dump_alloc_file_handle_request( const struct alloc_file_handle_request *req )
900 fprintf( stderr, " access=%08x,", req->access );
901 fprintf( stderr, " inherit=%d,", req->inherit );
902 fprintf( stderr, " fd=%d", req->fd );
905 static void dump_alloc_file_handle_reply( const struct alloc_file_handle_reply *req )
907 fprintf( stderr, " handle=%p", req->handle );
910 static void dump_get_handle_fd_request( const struct get_handle_fd_request *req )
912 fprintf( stderr, " handle=%p,", req->handle );
913 fprintf( stderr, " access=%08x", req->access );
916 static void dump_get_handle_fd_reply( const struct get_handle_fd_reply *req )
918 fprintf( stderr, " fd=%d,", req->fd );
919 fprintf( stderr, " flags=%d", req->flags );
922 static void dump_flush_file_request( const struct flush_file_request *req )
924 fprintf( stderr, " handle=%p", req->handle );
927 static void dump_flush_file_reply( const struct flush_file_reply *req )
929 fprintf( stderr, " event=%p", req->event );
932 static void dump_lock_file_request( const struct lock_file_request *req )
934 fprintf( stderr, " handle=%p,", req->handle );
935 fprintf( stderr, " offset_low=%08x,", req->offset_low );
936 fprintf( stderr, " offset_high=%08x,", req->offset_high );
937 fprintf( stderr, " count_low=%08x,", req->count_low );
938 fprintf( stderr, " count_high=%08x,", req->count_high );
939 fprintf( stderr, " shared=%d,", req->shared );
940 fprintf( stderr, " wait=%d", req->wait );
943 static void dump_lock_file_reply( const struct lock_file_reply *req )
945 fprintf( stderr, " handle=%p,", req->handle );
946 fprintf( stderr, " overlapped=%d", req->overlapped );
949 static void dump_unlock_file_request( const struct unlock_file_request *req )
951 fprintf( stderr, " handle=%p,", req->handle );
952 fprintf( stderr, " offset_low=%08x,", req->offset_low );
953 fprintf( stderr, " offset_high=%08x,", req->offset_high );
954 fprintf( stderr, " count_low=%08x,", req->count_low );
955 fprintf( stderr, " count_high=%08x", req->count_high );
958 static void dump_create_socket_request( const struct create_socket_request *req )
960 fprintf( stderr, " access=%08x,", req->access );
961 fprintf( stderr, " inherit=%d,", req->inherit );
962 fprintf( stderr, " family=%d,", req->family );
963 fprintf( stderr, " type=%d,", req->type );
964 fprintf( stderr, " protocol=%d,", req->protocol );
965 fprintf( stderr, " flags=%08x", req->flags );
968 static void dump_create_socket_reply( const struct create_socket_reply *req )
970 fprintf( stderr, " handle=%p", req->handle );
973 static void dump_accept_socket_request( const struct accept_socket_request *req )
975 fprintf( stderr, " lhandle=%p,", req->lhandle );
976 fprintf( stderr, " access=%08x,", req->access );
977 fprintf( stderr, " inherit=%d", req->inherit );
980 static void dump_accept_socket_reply( const struct accept_socket_reply *req )
982 fprintf( stderr, " handle=%p", req->handle );
985 static void dump_set_socket_event_request( const struct set_socket_event_request *req )
987 fprintf( stderr, " handle=%p,", req->handle );
988 fprintf( stderr, " mask=%08x,", req->mask );
989 fprintf( stderr, " event=%p,", req->event );
990 fprintf( stderr, " window=%p,", req->window );
991 fprintf( stderr, " msg=%08x", req->msg );
994 static void dump_get_socket_event_request( const struct get_socket_event_request *req )
996 fprintf( stderr, " handle=%p,", req->handle );
997 fprintf( stderr, " service=%d,", req->service );
998 fprintf( stderr, " c_event=%p", req->c_event );
1001 static void dump_get_socket_event_reply( const struct get_socket_event_reply *req )
1003 fprintf( stderr, " mask=%08x,", req->mask );
1004 fprintf( stderr, " pmask=%08x,", req->pmask );
1005 fprintf( stderr, " state=%08x,", req->state );
1006 fprintf( stderr, " errors=" );
1007 dump_varargs_ints( cur_size );
1010 static void dump_enable_socket_event_request( const struct enable_socket_event_request *req )
1012 fprintf( stderr, " handle=%p,", req->handle );
1013 fprintf( stderr, " mask=%08x,", req->mask );
1014 fprintf( stderr, " sstate=%08x,", req->sstate );
1015 fprintf( stderr, " cstate=%08x", req->cstate );
1018 static void dump_set_socket_deferred_request( const struct set_socket_deferred_request *req )
1020 fprintf( stderr, " handle=%p,", req->handle );
1021 fprintf( stderr, " deferred=%p", req->deferred );
1024 static void dump_alloc_console_request( const struct alloc_console_request *req )
1026 fprintf( stderr, " access=%08x,", req->access );
1027 fprintf( stderr, " inherit=%d,", req->inherit );
1028 fprintf( stderr, " pid=%04x", req->pid );
1031 static void dump_alloc_console_reply( const struct alloc_console_reply *req )
1033 fprintf( stderr, " handle_in=%p,", req->handle_in );
1034 fprintf( stderr, " event=%p", req->event );
1037 static void dump_free_console_request( const struct free_console_request *req )
1041 static void dump_get_console_renderer_events_request( const struct get_console_renderer_events_request *req )
1043 fprintf( stderr, " handle=%p", req->handle );
1046 static void dump_get_console_renderer_events_reply( const struct get_console_renderer_events_reply *req )
1048 fprintf( stderr, " data=" );
1049 dump_varargs_bytes( cur_size );
1052 static void dump_open_console_request( const struct open_console_request *req )
1054 fprintf( stderr, " from=%d,", req->from );
1055 fprintf( stderr, " access=%08x,", req->access );
1056 fprintf( stderr, " inherit=%d,", req->inherit );
1057 fprintf( stderr, " share=%d", req->share );
1060 static void dump_open_console_reply( const struct open_console_reply *req )
1062 fprintf( stderr, " handle=%p", req->handle );
1065 static void dump_get_console_wait_event_request( const struct get_console_wait_event_request *req )
1069 static void dump_get_console_wait_event_reply( const struct get_console_wait_event_reply *req )
1071 fprintf( stderr, " handle=%p", req->handle );
1074 static void dump_get_console_mode_request( const struct get_console_mode_request *req )
1076 fprintf( stderr, " handle=%p", req->handle );
1079 static void dump_get_console_mode_reply( const struct get_console_mode_reply *req )
1081 fprintf( stderr, " mode=%d", req->mode );
1084 static void dump_set_console_mode_request( const struct set_console_mode_request *req )
1086 fprintf( stderr, " handle=%p,", req->handle );
1087 fprintf( stderr, " mode=%d", req->mode );
1090 static void dump_set_console_input_info_request( const struct set_console_input_info_request *req )
1092 fprintf( stderr, " handle=%p,", req->handle );
1093 fprintf( stderr, " mask=%d,", req->mask );
1094 fprintf( stderr, " active_sb=%p,", req->active_sb );
1095 fprintf( stderr, " history_mode=%d,", req->history_mode );
1096 fprintf( stderr, " history_size=%d,", req->history_size );
1097 fprintf( stderr, " edition_mode=%d,", req->edition_mode );
1098 fprintf( stderr, " title=" );
1099 dump_varargs_unicode_str( cur_size );
1102 static void dump_get_console_input_info_request( const struct get_console_input_info_request *req )
1104 fprintf( stderr, " handle=%p", req->handle );
1107 static void dump_get_console_input_info_reply( const struct get_console_input_info_reply *req )
1109 fprintf( stderr, " history_mode=%d,", req->history_mode );
1110 fprintf( stderr, " history_size=%d,", req->history_size );
1111 fprintf( stderr, " history_index=%d,", req->history_index );
1112 fprintf( stderr, " edition_mode=%d,", req->edition_mode );
1113 fprintf( stderr, " title=" );
1114 dump_varargs_unicode_str( cur_size );
1117 static void dump_append_console_input_history_request( const struct append_console_input_history_request *req )
1119 fprintf( stderr, " handle=%p,", req->handle );
1120 fprintf( stderr, " line=" );
1121 dump_varargs_unicode_str( cur_size );
1124 static void dump_get_console_input_history_request( const struct get_console_input_history_request *req )
1126 fprintf( stderr, " handle=%p,", req->handle );
1127 fprintf( stderr, " index=%d", req->index );
1130 static void dump_get_console_input_history_reply( const struct get_console_input_history_reply *req )
1132 fprintf( stderr, " total=%d,", req->total );
1133 fprintf( stderr, " line=" );
1134 dump_varargs_unicode_str( cur_size );
1137 static void dump_create_console_output_request( const struct create_console_output_request *req )
1139 fprintf( stderr, " handle_in=%p,", req->handle_in );
1140 fprintf( stderr, " access=%d,", req->access );
1141 fprintf( stderr, " share=%d,", req->share );
1142 fprintf( stderr, " inherit=%d", req->inherit );
1145 static void dump_create_console_output_reply( const struct create_console_output_reply *req )
1147 fprintf( stderr, " handle_out=%p", req->handle_out );
1150 static void dump_set_console_output_info_request( const struct set_console_output_info_request *req )
1152 fprintf( stderr, " handle=%p,", req->handle );
1153 fprintf( stderr, " mask=%d,", req->mask );
1154 fprintf( stderr, " cursor_size=%d,", req->cursor_size );
1155 fprintf( stderr, " cursor_visible=%d,", req->cursor_visible );
1156 fprintf( stderr, " cursor_x=%d,", req->cursor_x );
1157 fprintf( stderr, " cursor_y=%d,", req->cursor_y );
1158 fprintf( stderr, " width=%d,", req->width );
1159 fprintf( stderr, " height=%d,", req->height );
1160 fprintf( stderr, " attr=%d,", req->attr );
1161 fprintf( stderr, " win_left=%d,", req->win_left );
1162 fprintf( stderr, " win_top=%d,", req->win_top );
1163 fprintf( stderr, " win_right=%d,", req->win_right );
1164 fprintf( stderr, " win_bottom=%d,", req->win_bottom );
1165 fprintf( stderr, " max_width=%d,", req->max_width );
1166 fprintf( stderr, " max_height=%d", req->max_height );
1169 static void dump_get_console_output_info_request( const struct get_console_output_info_request *req )
1171 fprintf( stderr, " handle=%p", req->handle );
1174 static void dump_get_console_output_info_reply( const struct get_console_output_info_reply *req )
1176 fprintf( stderr, " cursor_size=%d,", req->cursor_size );
1177 fprintf( stderr, " cursor_visible=%d,", req->cursor_visible );
1178 fprintf( stderr, " cursor_x=%d,", req->cursor_x );
1179 fprintf( stderr, " cursor_y=%d,", req->cursor_y );
1180 fprintf( stderr, " width=%d,", req->width );
1181 fprintf( stderr, " height=%d,", req->height );
1182 fprintf( stderr, " attr=%d,", req->attr );
1183 fprintf( stderr, " win_left=%d,", req->win_left );
1184 fprintf( stderr, " win_top=%d,", req->win_top );
1185 fprintf( stderr, " win_right=%d,", req->win_right );
1186 fprintf( stderr, " win_bottom=%d,", req->win_bottom );
1187 fprintf( stderr, " max_width=%d,", req->max_width );
1188 fprintf( stderr, " max_height=%d", req->max_height );
1191 static void dump_write_console_input_request( const struct write_console_input_request *req )
1193 fprintf( stderr, " handle=%p,", req->handle );
1194 fprintf( stderr, " rec=" );
1195 dump_varargs_input_records( cur_size );
1198 static void dump_write_console_input_reply( const struct write_console_input_reply *req )
1200 fprintf( stderr, " written=%d", req->written );
1203 static void dump_read_console_input_request( const struct read_console_input_request *req )
1205 fprintf( stderr, " handle=%p,", req->handle );
1206 fprintf( stderr, " flush=%d", req->flush );
1209 static void dump_read_console_input_reply( const struct read_console_input_reply *req )
1211 fprintf( stderr, " read=%d,", req->read );
1212 fprintf( stderr, " rec=" );
1213 dump_varargs_input_records( cur_size );
1216 static void dump_write_console_output_request( const struct write_console_output_request *req )
1218 fprintf( stderr, " handle=%p,", req->handle );
1219 fprintf( stderr, " x=%d,", req->x );
1220 fprintf( stderr, " y=%d,", req->y );
1221 fprintf( stderr, " mode=%d,", req->mode );
1222 fprintf( stderr, " wrap=%d,", req->wrap );
1223 fprintf( stderr, " data=" );
1224 dump_varargs_bytes( cur_size );
1227 static void dump_write_console_output_reply( const struct write_console_output_reply *req )
1229 fprintf( stderr, " written=%d,", req->written );
1230 fprintf( stderr, " width=%d,", req->width );
1231 fprintf( stderr, " height=%d", req->height );
1234 static void dump_fill_console_output_request( const struct fill_console_output_request *req )
1236 fprintf( stderr, " handle=%p,", req->handle );
1237 fprintf( stderr, " x=%d,", req->x );
1238 fprintf( stderr, " y=%d,", req->y );
1239 fprintf( stderr, " mode=%d,", req->mode );
1240 fprintf( stderr, " count=%d,", req->count );
1241 fprintf( stderr, " wrap=%d,", req->wrap );
1242 fprintf( stderr, " data=" );
1243 dump_char_info( &req->data );
1246 static void dump_fill_console_output_reply( const struct fill_console_output_reply *req )
1248 fprintf( stderr, " written=%d", req->written );
1251 static void dump_read_console_output_request( const struct read_console_output_request *req )
1253 fprintf( stderr, " handle=%p,", req->handle );
1254 fprintf( stderr, " x=%d,", req->x );
1255 fprintf( stderr, " y=%d,", req->y );
1256 fprintf( stderr, " mode=%d,", req->mode );
1257 fprintf( stderr, " wrap=%d", req->wrap );
1260 static void dump_read_console_output_reply( const struct read_console_output_reply *req )
1262 fprintf( stderr, " width=%d,", req->width );
1263 fprintf( stderr, " height=%d,", req->height );
1264 fprintf( stderr, " data=" );
1265 dump_varargs_bytes( cur_size );
1268 static void dump_move_console_output_request( const struct move_console_output_request *req )
1270 fprintf( stderr, " handle=%p,", req->handle );
1271 fprintf( stderr, " x_src=%d,", req->x_src );
1272 fprintf( stderr, " y_src=%d,", req->y_src );
1273 fprintf( stderr, " x_dst=%d,", req->x_dst );
1274 fprintf( stderr, " y_dst=%d,", req->y_dst );
1275 fprintf( stderr, " w=%d,", req->w );
1276 fprintf( stderr, " h=%d", req->h );
1279 static void dump_send_console_signal_request( const struct send_console_signal_request *req )
1281 fprintf( stderr, " signal=%d,", req->signal );
1282 fprintf( stderr, " group_id=%04x", req->group_id );
1285 static void dump_create_change_notification_request( const struct create_change_notification_request *req )
1287 fprintf( stderr, " handle=%p,", req->handle );
1288 fprintf( stderr, " subtree=%d,", req->subtree );
1289 fprintf( stderr, " filter=%08x", req->filter );
1292 static void dump_create_change_notification_reply( const struct create_change_notification_reply *req )
1294 fprintf( stderr, " handle=%p", req->handle );
1297 static void dump_next_change_notification_request( const struct next_change_notification_request *req )
1299 fprintf( stderr, " handle=%p", req->handle );
1302 static void dump_create_mapping_request( const struct create_mapping_request *req )
1304 fprintf( stderr, " size_high=%d,", req->size_high );
1305 fprintf( stderr, " size_low=%d,", req->size_low );
1306 fprintf( stderr, " protect=%d,", req->protect );
1307 fprintf( stderr, " access=%08x,", req->access );
1308 fprintf( stderr, " inherit=%d,", req->inherit );
1309 fprintf( stderr, " file_handle=%p,", req->file_handle );
1310 fprintf( stderr, " name=" );
1311 dump_varargs_unicode_str( cur_size );
1314 static void dump_create_mapping_reply( const struct create_mapping_reply *req )
1316 fprintf( stderr, " handle=%p", req->handle );
1319 static void dump_open_mapping_request( const struct open_mapping_request *req )
1321 fprintf( stderr, " access=%08x,", req->access );
1322 fprintf( stderr, " inherit=%d,", req->inherit );
1323 fprintf( stderr, " name=" );
1324 dump_varargs_unicode_str( cur_size );
1327 static void dump_open_mapping_reply( const struct open_mapping_reply *req )
1329 fprintf( stderr, " handle=%p", req->handle );
1332 static void dump_get_mapping_info_request( const struct get_mapping_info_request *req )
1334 fprintf( stderr, " handle=%p", req->handle );
1337 static void dump_get_mapping_info_reply( const struct get_mapping_info_reply *req )
1339 fprintf( stderr, " size_high=%d,", req->size_high );
1340 fprintf( stderr, " size_low=%d,", req->size_low );
1341 fprintf( stderr, " protect=%d,", req->protect );
1342 fprintf( stderr, " header_size=%d,", req->header_size );
1343 fprintf( stderr, " base=%p,", req->base );
1344 fprintf( stderr, " shared_file=%p,", req->shared_file );
1345 fprintf( stderr, " shared_size=%d", req->shared_size );
1348 static void dump_create_snapshot_request( const struct create_snapshot_request *req )
1350 fprintf( stderr, " inherit=%d,", req->inherit );
1351 fprintf( stderr, " flags=%d,", req->flags );
1352 fprintf( stderr, " pid=%04x", req->pid );
1355 static void dump_create_snapshot_reply( const struct create_snapshot_reply *req )
1357 fprintf( stderr, " handle=%p", req->handle );
1360 static void dump_next_process_request( const struct next_process_request *req )
1362 fprintf( stderr, " handle=%p,", req->handle );
1363 fprintf( stderr, " reset=%d", req->reset );
1366 static void dump_next_process_reply( const struct next_process_reply *req )
1368 fprintf( stderr, " count=%d,", req->count );
1369 fprintf( stderr, " pid=%04x,", req->pid );
1370 fprintf( stderr, " ppid=%04x,", req->ppid );
1371 fprintf( stderr, " heap=%p,", req->heap );
1372 fprintf( stderr, " module=%p,", req->module );
1373 fprintf( stderr, " threads=%d,", req->threads );
1374 fprintf( stderr, " priority=%d,", req->priority );
1375 fprintf( stderr, " handles=%d,", req->handles );
1376 fprintf( stderr, " filename=" );
1377 dump_varargs_unicode_str( cur_size );
1380 static void dump_next_thread_request( const struct next_thread_request *req )
1382 fprintf( stderr, " handle=%p,", req->handle );
1383 fprintf( stderr, " reset=%d", req->reset );
1386 static void dump_next_thread_reply( const struct next_thread_reply *req )
1388 fprintf( stderr, " count=%d,", req->count );
1389 fprintf( stderr, " pid=%04x,", req->pid );
1390 fprintf( stderr, " tid=%04x,", req->tid );
1391 fprintf( stderr, " base_pri=%d,", req->base_pri );
1392 fprintf( stderr, " delta_pri=%d", req->delta_pri );
1395 static void dump_next_module_request( const struct next_module_request *req )
1397 fprintf( stderr, " handle=%p,", req->handle );
1398 fprintf( stderr, " reset=%d", req->reset );
1401 static void dump_next_module_reply( const struct next_module_reply *req )
1403 fprintf( stderr, " pid=%04x,", req->pid );
1404 fprintf( stderr, " base=%p,", req->base );
1405 fprintf( stderr, " size=%d,", req->size );
1406 fprintf( stderr, " filename=" );
1407 dump_varargs_unicode_str( cur_size );
1410 static void dump_wait_debug_event_request( const struct wait_debug_event_request *req )
1412 fprintf( stderr, " get_handle=%d", req->get_handle );
1415 static void dump_wait_debug_event_reply( const struct wait_debug_event_reply *req )
1417 fprintf( stderr, " pid=%04x,", req->pid );
1418 fprintf( stderr, " tid=%04x,", req->tid );
1419 fprintf( stderr, " wait=%p,", req->wait );
1420 fprintf( stderr, " event=" );
1421 dump_varargs_debug_event( cur_size );
1424 static void dump_queue_exception_event_request( const struct queue_exception_event_request *req )
1426 fprintf( stderr, " first=%d,", req->first );
1427 fprintf( stderr, " record=" );
1428 dump_varargs_exc_event( cur_size );
1431 static void dump_queue_exception_event_reply( const struct queue_exception_event_reply *req )
1433 fprintf( stderr, " handle=%p", req->handle );
1436 static void dump_get_exception_status_request( const struct get_exception_status_request *req )
1438 fprintf( stderr, " handle=%p", req->handle );
1441 static void dump_get_exception_status_reply( const struct get_exception_status_reply *req )
1443 fprintf( stderr, " status=%d,", req->status );
1444 fprintf( stderr, " context=" );
1445 dump_varargs_context( cur_size );
1448 static void dump_output_debug_string_request( const struct output_debug_string_request *req )
1450 fprintf( stderr, " string=%p,", req->string );
1451 fprintf( stderr, " unicode=%d,", req->unicode );
1452 fprintf( stderr, " length=%d", req->length );
1455 static void dump_continue_debug_event_request( const struct continue_debug_event_request *req )
1457 fprintf( stderr, " pid=%04x,", req->pid );
1458 fprintf( stderr, " tid=%04x,", req->tid );
1459 fprintf( stderr, " status=%d", req->status );
1462 static void dump_debug_process_request( const struct debug_process_request *req )
1464 fprintf( stderr, " pid=%04x,", req->pid );
1465 fprintf( stderr, " attach=%d", req->attach );
1468 static void dump_debug_break_request( const struct debug_break_request *req )
1470 fprintf( stderr, " handle=%p", req->handle );
1473 static void dump_debug_break_reply( const struct debug_break_reply *req )
1475 fprintf( stderr, " self=%d", req->self );
1478 static void dump_set_debugger_kill_on_exit_request( const struct set_debugger_kill_on_exit_request *req )
1480 fprintf( stderr, " kill_on_exit=%d", req->kill_on_exit );
1483 static void dump_read_process_memory_request( const struct read_process_memory_request *req )
1485 fprintf( stderr, " handle=%p,", req->handle );
1486 fprintf( stderr, " addr=%p", req->addr );
1489 static void dump_read_process_memory_reply( const struct read_process_memory_reply *req )
1491 fprintf( stderr, " data=" );
1492 dump_varargs_bytes( cur_size );
1495 static void dump_write_process_memory_request( const struct write_process_memory_request *req )
1497 fprintf( stderr, " handle=%p,", req->handle );
1498 fprintf( stderr, " addr=%p,", req->addr );
1499 fprintf( stderr, " first_mask=%08x,", req->first_mask );
1500 fprintf( stderr, " last_mask=%08x,", req->last_mask );
1501 fprintf( stderr, " data=" );
1502 dump_varargs_bytes( cur_size );
1505 static void dump_create_key_request( const struct create_key_request *req )
1507 fprintf( stderr, " parent=%p,", req->parent );
1508 fprintf( stderr, " access=%08x,", req->access );
1509 fprintf( stderr, " options=%08x,", req->options );
1510 fprintf( stderr, " modif=%ld,", (long)req->modif );
1511 fprintf( stderr, " namelen=%d,", req->namelen );
1512 fprintf( stderr, " name=" );
1513 dump_varargs_unicode_str( min(cur_size,req->namelen) );
1514 fputc( ',', stderr );
1515 fprintf( stderr, " class=" );
1516 dump_varargs_unicode_str( cur_size );
1519 static void dump_create_key_reply( const struct create_key_reply *req )
1521 fprintf( stderr, " hkey=%p,", req->hkey );
1522 fprintf( stderr, " created=%d", req->created );
1525 static void dump_open_key_request( const struct open_key_request *req )
1527 fprintf( stderr, " parent=%p,", req->parent );
1528 fprintf( stderr, " access=%08x,", req->access );
1529 fprintf( stderr, " name=" );
1530 dump_varargs_unicode_str( cur_size );
1533 static void dump_open_key_reply( const struct open_key_reply *req )
1535 fprintf( stderr, " hkey=%p", req->hkey );
1538 static void dump_delete_key_request( const struct delete_key_request *req )
1540 fprintf( stderr, " hkey=%p", req->hkey );
1543 static void dump_flush_key_request( const struct flush_key_request *req )
1545 fprintf( stderr, " hkey=%p", req->hkey );
1548 static void dump_enum_key_request( const struct enum_key_request *req )
1550 fprintf( stderr, " hkey=%p,", req->hkey );
1551 fprintf( stderr, " index=%d,", req->index );
1552 fprintf( stderr, " info_class=%d", req->info_class );
1555 static void dump_enum_key_reply( const struct enum_key_reply *req )
1557 fprintf( stderr, " subkeys=%d,", req->subkeys );
1558 fprintf( stderr, " max_subkey=%d,", req->max_subkey );
1559 fprintf( stderr, " max_class=%d,", req->max_class );
1560 fprintf( stderr, " values=%d,", req->values );
1561 fprintf( stderr, " max_value=%d,", req->max_value );
1562 fprintf( stderr, " max_data=%d,", req->max_data );
1563 fprintf( stderr, " modif=%ld,", (long)req->modif );
1564 fprintf( stderr, " total=%d,", req->total );
1565 fprintf( stderr, " namelen=%d,", req->namelen );
1566 fprintf( stderr, " name=" );
1567 dump_varargs_unicode_str( min(cur_size,req->namelen) );
1568 fputc( ',', stderr );
1569 fprintf( stderr, " class=" );
1570 dump_varargs_unicode_str( cur_size );
1573 static void dump_set_key_value_request( const struct set_key_value_request *req )
1575 fprintf( stderr, " hkey=%p,", req->hkey );
1576 fprintf( stderr, " type=%d,", req->type );
1577 fprintf( stderr, " namelen=%d,", req->namelen );
1578 fprintf( stderr, " name=" );
1579 dump_varargs_unicode_str( min(cur_size,req->namelen) );
1580 fputc( ',', stderr );
1581 fprintf( stderr, " data=" );
1582 dump_varargs_bytes( cur_size );
1585 static void dump_get_key_value_request( const struct get_key_value_request *req )
1587 fprintf( stderr, " hkey=%p,", req->hkey );
1588 fprintf( stderr, " name=" );
1589 dump_varargs_unicode_str( cur_size );
1592 static void dump_get_key_value_reply( const struct get_key_value_reply *req )
1594 fprintf( stderr, " type=%d,", req->type );
1595 fprintf( stderr, " total=%d,", req->total );
1596 fprintf( stderr, " data=" );
1597 dump_varargs_bytes( cur_size );
1600 static void dump_enum_key_value_request( const struct enum_key_value_request *req )
1602 fprintf( stderr, " hkey=%p,", req->hkey );
1603 fprintf( stderr, " index=%d,", req->index );
1604 fprintf( stderr, " info_class=%d", req->info_class );
1607 static void dump_enum_key_value_reply( const struct enum_key_value_reply *req )
1609 fprintf( stderr, " type=%d,", req->type );
1610 fprintf( stderr, " total=%d,", req->total );
1611 fprintf( stderr, " namelen=%d,", req->namelen );
1612 fprintf( stderr, " name=" );
1613 dump_varargs_unicode_str( min(cur_size,req->namelen) );
1614 fputc( ',', stderr );
1615 fprintf( stderr, " data=" );
1616 dump_varargs_bytes( cur_size );
1619 static void dump_delete_key_value_request( const struct delete_key_value_request *req )
1621 fprintf( stderr, " hkey=%p,", req->hkey );
1622 fprintf( stderr, " name=" );
1623 dump_varargs_unicode_str( cur_size );
1626 static void dump_load_registry_request( const struct load_registry_request *req )
1628 fprintf( stderr, " hkey=%p,", req->hkey );
1629 fprintf( stderr, " file=%p,", req->file );
1630 fprintf( stderr, " name=" );
1631 dump_varargs_unicode_str( cur_size );
1634 static void dump_unload_registry_request( const struct unload_registry_request *req )
1636 fprintf( stderr, " hkey=%p", req->hkey );
1639 static void dump_save_registry_request( const struct save_registry_request *req )
1641 fprintf( stderr, " hkey=%p,", req->hkey );
1642 fprintf( stderr, " file=%p", req->file );
1645 static void dump_load_user_registries_request( const struct load_user_registries_request *req )
1647 fprintf( stderr, " hkey=%p,", req->hkey );
1648 fprintf( stderr, " saving=%d,", req->saving );
1649 fprintf( stderr, " period=%d", req->period );
1652 static void dump_set_registry_notification_request( const struct set_registry_notification_request *req )
1654 fprintf( stderr, " hkey=%p,", req->hkey );
1655 fprintf( stderr, " event=%p,", req->event );
1656 fprintf( stderr, " subtree=%d,", req->subtree );
1657 fprintf( stderr, " filter=%08x", req->filter );
1660 static void dump_create_timer_request( const struct create_timer_request *req )
1662 fprintf( stderr, " access=%08x,", req->access );
1663 fprintf( stderr, " inherit=%d,", req->inherit );
1664 fprintf( stderr, " manual=%d,", req->manual );
1665 fprintf( stderr, " name=" );
1666 dump_varargs_unicode_str( cur_size );
1669 static void dump_create_timer_reply( const struct create_timer_reply *req )
1671 fprintf( stderr, " handle=%p", req->handle );
1674 static void dump_open_timer_request( const struct open_timer_request *req )
1676 fprintf( stderr, " access=%08x,", req->access );
1677 fprintf( stderr, " inherit=%d,", req->inherit );
1678 fprintf( stderr, " name=" );
1679 dump_varargs_unicode_str( cur_size );
1682 static void dump_open_timer_reply( const struct open_timer_reply *req )
1684 fprintf( stderr, " handle=%p", req->handle );
1687 static void dump_set_timer_request( const struct set_timer_request *req )
1689 fprintf( stderr, " handle=%p,", req->handle );
1690 fprintf( stderr, " expire=" );
1691 dump_abs_time( &req->expire );
1692 fprintf( stderr, "," );
1693 fprintf( stderr, " period=%d,", req->period );
1694 fprintf( stderr, " callback=%p,", req->callback );
1695 fprintf( stderr, " arg=%p", req->arg );
1698 static void dump_set_timer_reply( const struct set_timer_reply *req )
1700 fprintf( stderr, " signaled=%d", req->signaled );
1703 static void dump_cancel_timer_request( const struct cancel_timer_request *req )
1705 fprintf( stderr, " handle=%p", req->handle );
1708 static void dump_cancel_timer_reply( const struct cancel_timer_reply *req )
1710 fprintf( stderr, " signaled=%d", req->signaled );
1713 static void dump_get_timer_info_request( const struct get_timer_info_request *req )
1715 fprintf( stderr, " handle=%p", req->handle );
1718 static void dump_get_timer_info_reply( const struct get_timer_info_reply *req )
1720 fprintf( stderr, " when=" );
1721 dump_abs_time( &req->when );
1722 fprintf( stderr, "," );
1723 fprintf( stderr, " signaled=%d", req->signaled );
1726 static void dump_get_thread_context_request( const struct get_thread_context_request *req )
1728 fprintf( stderr, " handle=%p,", req->handle );
1729 fprintf( stderr, " flags=%08x", req->flags );
1732 static void dump_get_thread_context_reply( const struct get_thread_context_reply *req )
1734 fprintf( stderr, " context=" );
1735 dump_varargs_context( cur_size );
1738 static void dump_set_thread_context_request( const struct set_thread_context_request *req )
1740 fprintf( stderr, " handle=%p,", req->handle );
1741 fprintf( stderr, " flags=%08x,", req->flags );
1742 fprintf( stderr, " context=" );
1743 dump_varargs_context( cur_size );
1746 static void dump_get_selector_entry_request( const struct get_selector_entry_request *req )
1748 fprintf( stderr, " handle=%p,", req->handle );
1749 fprintf( stderr, " entry=%d", req->entry );
1752 static void dump_get_selector_entry_reply( const struct get_selector_entry_reply *req )
1754 fprintf( stderr, " base=%08x,", req->base );
1755 fprintf( stderr, " limit=%08x,", req->limit );
1756 fprintf( stderr, " flags=%02x", req->flags );
1759 static void dump_add_atom_request( const struct add_atom_request *req )
1761 fprintf( stderr, " table=%p,", req->table );
1762 fprintf( stderr, " name=" );
1763 dump_varargs_unicode_str( cur_size );
1766 static void dump_add_atom_reply( const struct add_atom_reply *req )
1768 fprintf( stderr, " atom=%04x", req->atom );
1771 static void dump_delete_atom_request( const struct delete_atom_request *req )
1773 fprintf( stderr, " table=%p,", req->table );
1774 fprintf( stderr, " atom=%04x", req->atom );
1777 static void dump_find_atom_request( const struct find_atom_request *req )
1779 fprintf( stderr, " table=%p,", req->table );
1780 fprintf( stderr, " name=" );
1781 dump_varargs_unicode_str( cur_size );
1784 static void dump_find_atom_reply( const struct find_atom_reply *req )
1786 fprintf( stderr, " atom=%04x", req->atom );
1789 static void dump_get_atom_information_request( const struct get_atom_information_request *req )
1791 fprintf( stderr, " table=%p,", req->table );
1792 fprintf( stderr, " atom=%04x", req->atom );
1795 static void dump_get_atom_information_reply( const struct get_atom_information_reply *req )
1797 fprintf( stderr, " count=%d,", req->count );
1798 fprintf( stderr, " pinned=%d,", req->pinned );
1799 fprintf( stderr, " name=" );
1800 dump_varargs_unicode_str( cur_size );
1803 static void dump_set_atom_information_request( const struct set_atom_information_request *req )
1805 fprintf( stderr, " table=%p,", req->table );
1806 fprintf( stderr, " atom=%04x,", req->atom );
1807 fprintf( stderr, " pinned=%d", req->pinned );
1810 static void dump_empty_atom_table_request( const struct empty_atom_table_request *req )
1812 fprintf( stderr, " table=%p,", req->table );
1813 fprintf( stderr, " if_pinned=%d", req->if_pinned );
1816 static void dump_init_atom_table_request( const struct init_atom_table_request *req )
1818 fprintf( stderr, " entries=%d", req->entries );
1821 static void dump_init_atom_table_reply( const struct init_atom_table_reply *req )
1823 fprintf( stderr, " table=%p", req->table );
1826 static void dump_get_msg_queue_request( const struct get_msg_queue_request *req )
1830 static void dump_get_msg_queue_reply( const struct get_msg_queue_reply *req )
1832 fprintf( stderr, " handle=%p", req->handle );
1835 static void dump_set_queue_mask_request( const struct set_queue_mask_request *req )
1837 fprintf( stderr, " wake_mask=%08x,", req->wake_mask );
1838 fprintf( stderr, " changed_mask=%08x,", req->changed_mask );
1839 fprintf( stderr, " skip_wait=%d", req->skip_wait );
1842 static void dump_set_queue_mask_reply( const struct set_queue_mask_reply *req )
1844 fprintf( stderr, " wake_bits=%08x,", req->wake_bits );
1845 fprintf( stderr, " changed_bits=%08x", req->changed_bits );
1848 static void dump_get_queue_status_request( const struct get_queue_status_request *req )
1850 fprintf( stderr, " clear=%d", req->clear );
1853 static void dump_get_queue_status_reply( const struct get_queue_status_reply *req )
1855 fprintf( stderr, " wake_bits=%08x,", req->wake_bits );
1856 fprintf( stderr, " changed_bits=%08x", req->changed_bits );
1859 static void dump_wait_input_idle_request( const struct wait_input_idle_request *req )
1861 fprintf( stderr, " handle=%p,", req->handle );
1862 fprintf( stderr, " timeout=%d", req->timeout );
1865 static void dump_wait_input_idle_reply( const struct wait_input_idle_reply *req )
1867 fprintf( stderr, " event=%p", req->event );
1870 static void dump_send_message_request( const struct send_message_request *req )
1872 fprintf( stderr, " id=%04x,", req->id );
1873 fprintf( stderr, " type=%d,", req->type );
1874 fprintf( stderr, " flags=%d,", req->flags );
1875 fprintf( stderr, " win=%p,", req->win );
1876 fprintf( stderr, " msg=%08x,", req->msg );
1877 fprintf( stderr, " wparam=%08x,", req->wparam );
1878 fprintf( stderr, " lparam=%08x,", req->lparam );
1879 fprintf( stderr, " x=%d,", req->x );
1880 fprintf( stderr, " y=%d,", req->y );
1881 fprintf( stderr, " time=%08x,", req->time );
1882 fprintf( stderr, " info=%08x,", req->info );
1883 fprintf( stderr, " timeout=%d,", req->timeout );
1884 fprintf( stderr, " callback=%p,", req->callback );
1885 fprintf( stderr, " data=" );
1886 dump_varargs_bytes( cur_size );
1889 static void dump_get_message_request( const struct get_message_request *req )
1891 fprintf( stderr, " flags=%d,", req->flags );
1892 fprintf( stderr, " get_win=%p,", req->get_win );
1893 fprintf( stderr, " get_first=%08x,", req->get_first );
1894 fprintf( stderr, " get_last=%08x,", req->get_last );
1895 fprintf( stderr, " hw_id=%08x", req->hw_id );
1898 static void dump_get_message_reply( const struct get_message_reply *req )
1900 fprintf( stderr, " type=%d,", req->type );
1901 fprintf( stderr, " win=%p,", req->win );
1902 fprintf( stderr, " msg=%08x,", req->msg );
1903 fprintf( stderr, " wparam=%08x,", req->wparam );
1904 fprintf( stderr, " lparam=%08x,", req->lparam );
1905 fprintf( stderr, " x=%d,", req->x );
1906 fprintf( stderr, " y=%d,", req->y );
1907 fprintf( stderr, " hook=%p,", req->hook );
1908 fprintf( stderr, " hook_proc=%p,", req->hook_proc );
1909 fprintf( stderr, " time=%08x,", req->time );
1910 fprintf( stderr, " info=%08x,", req->info );
1911 fprintf( stderr, " hw_id=%08x,", req->hw_id );
1912 fprintf( stderr, " total=%d,", req->total );
1913 fprintf( stderr, " data=" );
1914 dump_varargs_bytes( cur_size );
1917 static void dump_reply_message_request( const struct reply_message_request *req )
1919 fprintf( stderr, " result=%08x,", req->result );
1920 fprintf( stderr, " remove=%d,", req->remove );
1921 fprintf( stderr, " data=" );
1922 dump_varargs_bytes( cur_size );
1925 static void dump_accept_hardware_message_request( const struct accept_hardware_message_request *req )
1927 fprintf( stderr, " hw_id=%08x,", req->hw_id );
1928 fprintf( stderr, " remove=%d,", req->remove );
1929 fprintf( stderr, " new_win=%p", req->new_win );
1932 static void dump_get_message_reply_request( const struct get_message_reply_request *req )
1934 fprintf( stderr, " cancel=%d", req->cancel );
1937 static void dump_get_message_reply_reply( const struct get_message_reply_reply *req )
1939 fprintf( stderr, " result=%08x,", req->result );
1940 fprintf( stderr, " data=" );
1941 dump_varargs_bytes( cur_size );
1944 static void dump_set_win_timer_request( const struct set_win_timer_request *req )
1946 fprintf( stderr, " win=%p,", req->win );
1947 fprintf( stderr, " msg=%08x,", req->msg );
1948 fprintf( stderr, " id=%08x,", req->id );
1949 fprintf( stderr, " rate=%08x,", req->rate );
1950 fprintf( stderr, " lparam=%08x", req->lparam );
1953 static void dump_set_win_timer_reply( const struct set_win_timer_reply *req )
1955 fprintf( stderr, " id=%08x", req->id );
1958 static void dump_kill_win_timer_request( const struct kill_win_timer_request *req )
1960 fprintf( stderr, " win=%p,", req->win );
1961 fprintf( stderr, " msg=%08x,", req->msg );
1962 fprintf( stderr, " id=%08x", req->id );
1965 static void dump_get_serial_info_request( const struct get_serial_info_request *req )
1967 fprintf( stderr, " handle=%p", req->handle );
1970 static void dump_get_serial_info_reply( const struct get_serial_info_reply *req )
1972 fprintf( stderr, " readinterval=%08x,", req->readinterval );
1973 fprintf( stderr, " readconst=%08x,", req->readconst );
1974 fprintf( stderr, " readmult=%08x,", req->readmult );
1975 fprintf( stderr, " writeconst=%08x,", req->writeconst );
1976 fprintf( stderr, " writemult=%08x,", req->writemult );
1977 fprintf( stderr, " eventmask=%08x,", req->eventmask );
1978 fprintf( stderr, " commerror=%08x", req->commerror );
1981 static void dump_set_serial_info_request( const struct set_serial_info_request *req )
1983 fprintf( stderr, " handle=%p,", req->handle );
1984 fprintf( stderr, " flags=%d,", req->flags );
1985 fprintf( stderr, " readinterval=%08x,", req->readinterval );
1986 fprintf( stderr, " readconst=%08x,", req->readconst );
1987 fprintf( stderr, " readmult=%08x,", req->readmult );
1988 fprintf( stderr, " writeconst=%08x,", req->writeconst );
1989 fprintf( stderr, " writemult=%08x,", req->writemult );
1990 fprintf( stderr, " eventmask=%08x,", req->eventmask );
1991 fprintf( stderr, " commerror=%08x", req->commerror );
1994 static void dump_register_async_request( const struct register_async_request *req )
1996 fprintf( stderr, " handle=%p,", req->handle );
1997 fprintf( stderr, " type=%d,", req->type );
1998 fprintf( stderr, " io_apc=%p,", req->io_apc );
1999 fprintf( stderr, " io_sb=%p,", req->io_sb );
2000 fprintf( stderr, " io_user=%p,", req->io_user );
2001 fprintf( stderr, " count=%d", req->count );
2004 static void dump_cancel_async_request( const struct cancel_async_request *req )
2006 fprintf( stderr, " handle=%p", req->handle );
2009 static void dump_create_named_pipe_request( const struct create_named_pipe_request *req )
2011 fprintf( stderr, " options=%08x,", req->options );
2012 fprintf( stderr, " flags=%08x,", req->flags );
2013 fprintf( stderr, " maxinstances=%08x,", req->maxinstances );
2014 fprintf( stderr, " outsize=%08x,", req->outsize );
2015 fprintf( stderr, " insize=%08x,", req->insize );
2016 fprintf( stderr, " timeout=%08x,", req->timeout );
2017 fprintf( stderr, " inherit=%d,", req->inherit );
2018 fprintf( stderr, " name=" );
2019 dump_varargs_unicode_str( cur_size );
2022 static void dump_create_named_pipe_reply( const struct create_named_pipe_reply *req )
2024 fprintf( stderr, " handle=%p", req->handle );
2027 static void dump_open_named_pipe_request( const struct open_named_pipe_request *req )
2029 fprintf( stderr, " access=%08x,", req->access );
2030 fprintf( stderr, " inherit=%d,", req->inherit );
2031 fprintf( stderr, " name=" );
2032 dump_varargs_unicode_str( cur_size );
2035 static void dump_open_named_pipe_reply( const struct open_named_pipe_reply *req )
2037 fprintf( stderr, " handle=%p", req->handle );
2040 static void dump_connect_named_pipe_request( const struct connect_named_pipe_request *req )
2042 fprintf( stderr, " handle=%p,", req->handle );
2043 fprintf( stderr, " overlapped=%p,", req->overlapped );
2044 fprintf( stderr, " func=%p", req->func );
2047 static void dump_wait_named_pipe_request( const struct wait_named_pipe_request *req )
2049 fprintf( stderr, " timeout=%08x,", req->timeout );
2050 fprintf( stderr, " overlapped=%p,", req->overlapped );
2051 fprintf( stderr, " func=%p,", req->func );
2052 fprintf( stderr, " name=" );
2053 dump_varargs_unicode_str( cur_size );
2056 static void dump_disconnect_named_pipe_request( const struct disconnect_named_pipe_request *req )
2058 fprintf( stderr, " handle=%p", req->handle );
2061 static void dump_disconnect_named_pipe_reply( const struct disconnect_named_pipe_reply *req )
2063 fprintf( stderr, " fd=%d", req->fd );
2066 static void dump_get_named_pipe_info_request( const struct get_named_pipe_info_request *req )
2068 fprintf( stderr, " handle=%p", req->handle );
2071 static void dump_get_named_pipe_info_reply( const struct get_named_pipe_info_reply *req )
2073 fprintf( stderr, " flags=%08x,", req->flags );
2074 fprintf( stderr, " maxinstances=%08x,", req->maxinstances );
2075 fprintf( stderr, " outsize=%08x,", req->outsize );
2076 fprintf( stderr, " insize=%08x", req->insize );
2079 static void dump_create_window_request( const struct create_window_request *req )
2081 fprintf( stderr, " parent=%p,", req->parent );
2082 fprintf( stderr, " owner=%p,", req->owner );
2083 fprintf( stderr, " atom=%04x,", req->atom );
2084 fprintf( stderr, " instance=%p", req->instance );
2087 static void dump_create_window_reply( const struct create_window_reply *req )
2089 fprintf( stderr, " handle=%p,", req->handle );
2090 fprintf( stderr, " extra=%d,", req->extra );
2091 fprintf( stderr, " class_ptr=%p", req->class_ptr );
2094 static void dump_destroy_window_request( const struct destroy_window_request *req )
2096 fprintf( stderr, " handle=%p", req->handle );
2099 static void dump_set_window_owner_request( const struct set_window_owner_request *req )
2101 fprintf( stderr, " handle=%p,", req->handle );
2102 fprintf( stderr, " owner=%p", req->owner );
2105 static void dump_set_window_owner_reply( const struct set_window_owner_reply *req )
2107 fprintf( stderr, " full_owner=%p,", req->full_owner );
2108 fprintf( stderr, " prev_owner=%p", req->prev_owner );
2111 static void dump_get_window_info_request( const struct get_window_info_request *req )
2113 fprintf( stderr, " handle=%p", req->handle );
2116 static void dump_get_window_info_reply( const struct get_window_info_reply *req )
2118 fprintf( stderr, " full_handle=%p,", req->full_handle );
2119 fprintf( stderr, " last_active=%p,", req->last_active );
2120 fprintf( stderr, " pid=%04x,", req->pid );
2121 fprintf( stderr, " tid=%04x,", req->tid );
2122 fprintf( stderr, " atom=%04x", req->atom );
2125 static void dump_set_window_info_request( const struct set_window_info_request *req )
2127 fprintf( stderr, " handle=%p,", req->handle );
2128 fprintf( stderr, " flags=%08x,", req->flags );
2129 fprintf( stderr, " style=%08x,", req->style );
2130 fprintf( stderr, " ex_style=%08x,", req->ex_style );
2131 fprintf( stderr, " id=%08x,", req->id );
2132 fprintf( stderr, " instance=%p,", req->instance );
2133 fprintf( stderr, " user_data=%p,", req->user_data );
2134 fprintf( stderr, " extra_offset=%d,", req->extra_offset );
2135 fprintf( stderr, " extra_size=%d,", req->extra_size );
2136 fprintf( stderr, " extra_value=%08x", req->extra_value );
2139 static void dump_set_window_info_reply( const struct set_window_info_reply *req )
2141 fprintf( stderr, " old_style=%08x,", req->old_style );
2142 fprintf( stderr, " old_ex_style=%08x,", req->old_ex_style );
2143 fprintf( stderr, " old_id=%08x,", req->old_id );
2144 fprintf( stderr, " old_instance=%p,", req->old_instance );
2145 fprintf( stderr, " old_user_data=%p,", req->old_user_data );
2146 fprintf( stderr, " old_extra_value=%08x", req->old_extra_value );
2149 static void dump_set_parent_request( const struct set_parent_request *req )
2151 fprintf( stderr, " handle=%p,", req->handle );
2152 fprintf( stderr, " parent=%p", req->parent );
2155 static void dump_set_parent_reply( const struct set_parent_reply *req )
2157 fprintf( stderr, " old_parent=%p,", req->old_parent );
2158 fprintf( stderr, " full_parent=%p", req->full_parent );
2161 static void dump_get_window_parents_request( const struct get_window_parents_request *req )
2163 fprintf( stderr, " handle=%p", req->handle );
2166 static void dump_get_window_parents_reply( const struct get_window_parents_reply *req )
2168 fprintf( stderr, " count=%d,", req->count );
2169 fprintf( stderr, " parents=" );
2170 dump_varargs_user_handles( cur_size );
2173 static void dump_get_window_children_request( const struct get_window_children_request *req )
2175 fprintf( stderr, " parent=%p,", req->parent );
2176 fprintf( stderr, " atom=%04x,", req->atom );
2177 fprintf( stderr, " tid=%04x", req->tid );
2180 static void dump_get_window_children_reply( const struct get_window_children_reply *req )
2182 fprintf( stderr, " count=%d,", req->count );
2183 fprintf( stderr, " children=" );
2184 dump_varargs_user_handles( cur_size );
2187 static void dump_get_window_children_from_point_request( const struct get_window_children_from_point_request *req )
2189 fprintf( stderr, " parent=%p,", req->parent );
2190 fprintf( stderr, " x=%d,", req->x );
2191 fprintf( stderr, " y=%d", req->y );
2194 static void dump_get_window_children_from_point_reply( const struct get_window_children_from_point_reply *req )
2196 fprintf( stderr, " count=%d,", req->count );
2197 fprintf( stderr, " children=" );
2198 dump_varargs_user_handles( cur_size );
2201 static void dump_get_window_tree_request( const struct get_window_tree_request *req )
2203 fprintf( stderr, " handle=%p", req->handle );
2206 static void dump_get_window_tree_reply( const struct get_window_tree_reply *req )
2208 fprintf( stderr, " parent=%p,", req->parent );
2209 fprintf( stderr, " owner=%p,", req->owner );
2210 fprintf( stderr, " next_sibling=%p,", req->next_sibling );
2211 fprintf( stderr, " prev_sibling=%p,", req->prev_sibling );
2212 fprintf( stderr, " first_sibling=%p,", req->first_sibling );
2213 fprintf( stderr, " last_sibling=%p,", req->last_sibling );
2214 fprintf( stderr, " first_child=%p,", req->first_child );
2215 fprintf( stderr, " last_child=%p", req->last_child );
2218 static void dump_set_window_pos_request( const struct set_window_pos_request *req )
2220 fprintf( stderr, " handle=%p,", req->handle );
2221 fprintf( stderr, " previous=%p,", req->previous );
2222 fprintf( stderr, " flags=%08x,", req->flags );
2223 fprintf( stderr, " window=" );
2224 dump_rectangle( &req->window );
2225 fprintf( stderr, "," );
2226 fprintf( stderr, " client=" );
2227 dump_rectangle( &req->client );
2228 fprintf( stderr, "," );
2229 fprintf( stderr, " valid=" );
2230 dump_varargs_rectangles( cur_size );
2233 static void dump_set_window_pos_reply( const struct set_window_pos_reply *req )
2235 fprintf( stderr, " new_style=%08x", req->new_style );
2238 static void dump_get_window_rectangles_request( const struct get_window_rectangles_request *req )
2240 fprintf( stderr, " handle=%p", req->handle );
2243 static void dump_get_window_rectangles_reply( const struct get_window_rectangles_reply *req )
2245 fprintf( stderr, " window=" );
2246 dump_rectangle( &req->window );
2247 fprintf( stderr, "," );
2248 fprintf( stderr, " visible=" );
2249 dump_rectangle( &req->visible );
2250 fprintf( stderr, "," );
2251 fprintf( stderr, " client=" );
2252 dump_rectangle( &req->client );
2255 static void dump_get_window_text_request( const struct get_window_text_request *req )
2257 fprintf( stderr, " handle=%p", req->handle );
2260 static void dump_get_window_text_reply( const struct get_window_text_reply *req )
2262 fprintf( stderr, " text=" );
2263 dump_varargs_unicode_str( cur_size );
2266 static void dump_set_window_text_request( const struct set_window_text_request *req )
2268 fprintf( stderr, " handle=%p,", req->handle );
2269 fprintf( stderr, " text=" );
2270 dump_varargs_unicode_str( cur_size );
2273 static void dump_get_windows_offset_request( const struct get_windows_offset_request *req )
2275 fprintf( stderr, " from=%p,", req->from );
2276 fprintf( stderr, " to=%p", req->to );
2279 static void dump_get_windows_offset_reply( const struct get_windows_offset_reply *req )
2281 fprintf( stderr, " x=%d,", req->x );
2282 fprintf( stderr, " y=%d", req->y );
2285 static void dump_get_visible_region_request( const struct get_visible_region_request *req )
2287 fprintf( stderr, " window=%p,", req->window );
2288 fprintf( stderr, " flags=%08x", req->flags );
2291 static void dump_get_visible_region_reply( const struct get_visible_region_reply *req )
2293 fprintf( stderr, " top_win=%p,", req->top_win );
2294 fprintf( stderr, " top_org_x=%d,", req->top_org_x );
2295 fprintf( stderr, " top_org_y=%d,", req->top_org_y );
2296 fprintf( stderr, " win_org_x=%d,", req->win_org_x );
2297 fprintf( stderr, " win_org_y=%d,", req->win_org_y );
2298 fprintf( stderr, " total_size=%d,", req->total_size );
2299 fprintf( stderr, " region=" );
2300 dump_varargs_rectangles( cur_size );
2303 static void dump_get_window_region_request( const struct get_window_region_request *req )
2305 fprintf( stderr, " window=%p", req->window );
2308 static void dump_get_window_region_reply( const struct get_window_region_reply *req )
2310 fprintf( stderr, " total_size=%d,", req->total_size );
2311 fprintf( stderr, " region=" );
2312 dump_varargs_rectangles( cur_size );
2315 static void dump_set_window_region_request( const struct set_window_region_request *req )
2317 fprintf( stderr, " window=%p,", req->window );
2318 fprintf( stderr, " region=" );
2319 dump_varargs_rectangles( cur_size );
2322 static void dump_get_update_region_request( const struct get_update_region_request *req )
2324 fprintf( stderr, " window=%p,", req->window );
2325 fprintf( stderr, " flags=%08x", req->flags );
2328 static void dump_get_update_region_reply( const struct get_update_region_reply *req )
2330 fprintf( stderr, " child=%p,", req->child );
2331 fprintf( stderr, " flags=%08x,", req->flags );
2332 fprintf( stderr, " total_size=%d,", req->total_size );
2333 fprintf( stderr, " region=" );
2334 dump_varargs_rectangles( cur_size );
2337 static void dump_update_window_zorder_request( const struct update_window_zorder_request *req )
2339 fprintf( stderr, " window=%p,", req->window );
2340 fprintf( stderr, " rect=" );
2341 dump_rectangle( &req->rect );
2344 static void dump_redraw_window_request( const struct redraw_window_request *req )
2346 fprintf( stderr, " window=%p,", req->window );
2347 fprintf( stderr, " flags=%08x,", req->flags );
2348 fprintf( stderr, " region=" );
2349 dump_varargs_rectangles( cur_size );
2352 static void dump_set_window_property_request( const struct set_window_property_request *req )
2354 fprintf( stderr, " window=%p,", req->window );
2355 fprintf( stderr, " atom=%04x,", req->atom );
2356 fprintf( stderr, " string=%d,", req->string );
2357 fprintf( stderr, " handle=%p", req->handle );
2360 static void dump_remove_window_property_request( const struct remove_window_property_request *req )
2362 fprintf( stderr, " window=%p,", req->window );
2363 fprintf( stderr, " atom=%04x", req->atom );
2366 static void dump_remove_window_property_reply( const struct remove_window_property_reply *req )
2368 fprintf( stderr, " handle=%p", req->handle );
2371 static void dump_get_window_property_request( const struct get_window_property_request *req )
2373 fprintf( stderr, " window=%p,", req->window );
2374 fprintf( stderr, " atom=%04x", req->atom );
2377 static void dump_get_window_property_reply( const struct get_window_property_reply *req )
2379 fprintf( stderr, " handle=%p", req->handle );
2382 static void dump_get_window_properties_request( const struct get_window_properties_request *req )
2384 fprintf( stderr, " window=%p", req->window );
2387 static void dump_get_window_properties_reply( const struct get_window_properties_reply *req )
2389 fprintf( stderr, " total=%d,", req->total );
2390 fprintf( stderr, " props=" );
2391 dump_varargs_properties( cur_size );
2394 static void dump_attach_thread_input_request( const struct attach_thread_input_request *req )
2396 fprintf( stderr, " tid_from=%04x,", req->tid_from );
2397 fprintf( stderr, " tid_to=%04x,", req->tid_to );
2398 fprintf( stderr, " attach=%d", req->attach );
2401 static void dump_get_thread_input_request( const struct get_thread_input_request *req )
2403 fprintf( stderr, " tid=%04x", req->tid );
2406 static void dump_get_thread_input_reply( const struct get_thread_input_reply *req )
2408 fprintf( stderr, " focus=%p,", req->focus );
2409 fprintf( stderr, " capture=%p,", req->capture );
2410 fprintf( stderr, " active=%p,", req->active );
2411 fprintf( stderr, " foreground=%p,", req->foreground );
2412 fprintf( stderr, " menu_owner=%p,", req->menu_owner );
2413 fprintf( stderr, " move_size=%p,", req->move_size );
2414 fprintf( stderr, " caret=%p,", req->caret );
2415 fprintf( stderr, " rect=" );
2416 dump_rectangle( &req->rect );
2419 static void dump_get_last_input_time_request( const struct get_last_input_time_request *req )
2423 static void dump_get_last_input_time_reply( const struct get_last_input_time_reply *req )
2425 fprintf( stderr, " time=%08x", req->time );
2428 static void dump_get_key_state_request( const struct get_key_state_request *req )
2430 fprintf( stderr, " tid=%04x,", req->tid );
2431 fprintf( stderr, " key=%d", req->key );
2434 static void dump_get_key_state_reply( const struct get_key_state_reply *req )
2436 fprintf( stderr, " state=%02x,", req->state );
2437 fprintf( stderr, " keystate=" );
2438 dump_varargs_bytes( cur_size );
2441 static void dump_set_key_state_request( const struct set_key_state_request *req )
2443 fprintf( stderr, " tid=%04x,", req->tid );
2444 fprintf( stderr, " keystate=" );
2445 dump_varargs_bytes( cur_size );
2448 static void dump_set_foreground_window_request( const struct set_foreground_window_request *req )
2450 fprintf( stderr, " handle=%p", req->handle );
2453 static void dump_set_foreground_window_reply( const struct set_foreground_window_reply *req )
2455 fprintf( stderr, " previous=%p,", req->previous );
2456 fprintf( stderr, " send_msg_old=%d,", req->send_msg_old );
2457 fprintf( stderr, " send_msg_new=%d", req->send_msg_new );
2460 static void dump_set_focus_window_request( const struct set_focus_window_request *req )
2462 fprintf( stderr, " handle=%p", req->handle );
2465 static void dump_set_focus_window_reply( const struct set_focus_window_reply *req )
2467 fprintf( stderr, " previous=%p", req->previous );
2470 static void dump_set_active_window_request( const struct set_active_window_request *req )
2472 fprintf( stderr, " handle=%p", req->handle );
2475 static void dump_set_active_window_reply( const struct set_active_window_reply *req )
2477 fprintf( stderr, " previous=%p", req->previous );
2480 static void dump_set_capture_window_request( const struct set_capture_window_request *req )
2482 fprintf( stderr, " handle=%p,", req->handle );
2483 fprintf( stderr, " flags=%08x", req->flags );
2486 static void dump_set_capture_window_reply( const struct set_capture_window_reply *req )
2488 fprintf( stderr, " previous=%p,", req->previous );
2489 fprintf( stderr, " full_handle=%p", req->full_handle );
2492 static void dump_set_caret_window_request( const struct set_caret_window_request *req )
2494 fprintf( stderr, " handle=%p,", req->handle );
2495 fprintf( stderr, " width=%d,", req->width );
2496 fprintf( stderr, " height=%d", req->height );
2499 static void dump_set_caret_window_reply( const struct set_caret_window_reply *req )
2501 fprintf( stderr, " previous=%p,", req->previous );
2502 fprintf( stderr, " old_rect=" );
2503 dump_rectangle( &req->old_rect );
2504 fprintf( stderr, "," );
2505 fprintf( stderr, " old_hide=%d,", req->old_hide );
2506 fprintf( stderr, " old_state=%d", req->old_state );
2509 static void dump_set_caret_info_request( const struct set_caret_info_request *req )
2511 fprintf( stderr, " flags=%08x,", req->flags );
2512 fprintf( stderr, " handle=%p,", req->handle );
2513 fprintf( stderr, " x=%d,", req->x );
2514 fprintf( stderr, " y=%d,", req->y );
2515 fprintf( stderr, " hide=%d,", req->hide );
2516 fprintf( stderr, " state=%d", req->state );
2519 static void dump_set_caret_info_reply( const struct set_caret_info_reply *req )
2521 fprintf( stderr, " full_handle=%p,", req->full_handle );
2522 fprintf( stderr, " old_rect=" );
2523 dump_rectangle( &req->old_rect );
2524 fprintf( stderr, "," );
2525 fprintf( stderr, " old_hide=%d,", req->old_hide );
2526 fprintf( stderr, " old_state=%d", req->old_state );
2529 static void dump_set_hook_request( const struct set_hook_request *req )
2531 fprintf( stderr, " id=%d,", req->id );
2532 fprintf( stderr, " pid=%04x,", req->pid );
2533 fprintf( stderr, " tid=%04x,", req->tid );
2534 fprintf( stderr, " event_min=%d,", req->event_min );
2535 fprintf( stderr, " event_max=%d,", req->event_max );
2536 fprintf( stderr, " flags=%d,", req->flags );
2537 fprintf( stderr, " proc=%p,", req->proc );
2538 fprintf( stderr, " unicode=%d,", req->unicode );
2539 fprintf( stderr, " module=" );
2540 dump_varargs_unicode_str( cur_size );
2543 static void dump_set_hook_reply( const struct set_hook_reply *req )
2545 fprintf( stderr, " handle=%p", req->handle );
2548 static void dump_remove_hook_request( const struct remove_hook_request *req )
2550 fprintf( stderr, " handle=%p,", req->handle );
2551 fprintf( stderr, " id=%d,", req->id );
2552 fprintf( stderr, " proc=%p", req->proc );
2555 static void dump_start_hook_chain_request( const struct start_hook_chain_request *req )
2557 fprintf( stderr, " id=%d,", req->id );
2558 fprintf( stderr, " event=%d,", req->event );
2559 fprintf( stderr, " window=%p,", req->window );
2560 fprintf( stderr, " object_id=%d,", req->object_id );
2561 fprintf( stderr, " child_id=%d", req->child_id );
2564 static void dump_start_hook_chain_reply( const struct start_hook_chain_reply *req )
2566 fprintf( stderr, " handle=%p,", req->handle );
2567 fprintf( stderr, " pid=%04x,", req->pid );
2568 fprintf( stderr, " tid=%04x,", req->tid );
2569 fprintf( stderr, " proc=%p,", req->proc );
2570 fprintf( stderr, " unicode=%d,", req->unicode );
2571 fprintf( stderr, " module=" );
2572 dump_varargs_unicode_str( cur_size );
2575 static void dump_finish_hook_chain_request( const struct finish_hook_chain_request *req )
2577 fprintf( stderr, " id=%d", req->id );
2580 static void dump_get_next_hook_request( const struct get_next_hook_request *req )
2582 fprintf( stderr, " handle=%p,", req->handle );
2583 fprintf( stderr, " event=%d,", req->event );
2584 fprintf( stderr, " window=%p,", req->window );
2585 fprintf( stderr, " object_id=%d,", req->object_id );
2586 fprintf( stderr, " child_id=%d", req->child_id );
2589 static void dump_get_next_hook_reply( const struct get_next_hook_reply *req )
2591 fprintf( stderr, " next=%p,", req->next );
2592 fprintf( stderr, " id=%d,", req->id );
2593 fprintf( stderr, " pid=%04x,", req->pid );
2594 fprintf( stderr, " tid=%04x,", req->tid );
2595 fprintf( stderr, " proc=%p,", req->proc );
2596 fprintf( stderr, " prev_unicode=%d,", req->prev_unicode );
2597 fprintf( stderr, " next_unicode=%d,", req->next_unicode );
2598 fprintf( stderr, " module=" );
2599 dump_varargs_unicode_str( cur_size );
2602 static void dump_create_class_request( const struct create_class_request *req )
2604 fprintf( stderr, " local=%d,", req->local );
2605 fprintf( stderr, " atom=%04x,", req->atom );
2606 fprintf( stderr, " style=%08x,", req->style );
2607 fprintf( stderr, " instance=%p,", req->instance );
2608 fprintf( stderr, " extra=%d,", req->extra );
2609 fprintf( stderr, " win_extra=%d,", req->win_extra );
2610 fprintf( stderr, " client_ptr=%p", req->client_ptr );
2613 static void dump_destroy_class_request( const struct destroy_class_request *req )
2615 fprintf( stderr, " atom=%04x,", req->atom );
2616 fprintf( stderr, " instance=%p", req->instance );
2619 static void dump_destroy_class_reply( const struct destroy_class_reply *req )
2621 fprintf( stderr, " client_ptr=%p", req->client_ptr );
2624 static void dump_set_class_info_request( const struct set_class_info_request *req )
2626 fprintf( stderr, " window=%p,", req->window );
2627 fprintf( stderr, " flags=%08x,", req->flags );
2628 fprintf( stderr, " atom=%04x,", req->atom );
2629 fprintf( stderr, " style=%08x,", req->style );
2630 fprintf( stderr, " win_extra=%d,", req->win_extra );
2631 fprintf( stderr, " instance=%p,", req->instance );
2632 fprintf( stderr, " extra_offset=%d,", req->extra_offset );
2633 fprintf( stderr, " extra_size=%d,", req->extra_size );
2634 fprintf( stderr, " extra_value=%08x", req->extra_value );
2637 static void dump_set_class_info_reply( const struct set_class_info_reply *req )
2639 fprintf( stderr, " old_atom=%04x,", req->old_atom );
2640 fprintf( stderr, " old_style=%08x,", req->old_style );
2641 fprintf( stderr, " old_extra=%d,", req->old_extra );
2642 fprintf( stderr, " old_win_extra=%d,", req->old_win_extra );
2643 fprintf( stderr, " old_instance=%p,", req->old_instance );
2644 fprintf( stderr, " old_extra_value=%08x", req->old_extra_value );
2647 static void dump_set_clipboard_info_request( const struct set_clipboard_info_request *req )
2649 fprintf( stderr, " flags=%08x,", req->flags );
2650 fprintf( stderr, " clipboard=%p,", req->clipboard );
2651 fprintf( stderr, " owner=%p,", req->owner );
2652 fprintf( stderr, " viewer=%p,", req->viewer );
2653 fprintf( stderr, " seqno=%08x", req->seqno );
2656 static void dump_set_clipboard_info_reply( const struct set_clipboard_info_reply *req )
2658 fprintf( stderr, " flags=%08x,", req->flags );
2659 fprintf( stderr, " old_clipboard=%p,", req->old_clipboard );
2660 fprintf( stderr, " old_owner=%p,", req->old_owner );
2661 fprintf( stderr, " old_viewer=%p,", req->old_viewer );
2662 fprintf( stderr, " seqno=%08x", req->seqno );
2665 static void dump_open_token_request( const struct open_token_request *req )
2667 fprintf( stderr, " handle=%p,", req->handle );
2668 fprintf( stderr, " flags=%08x", req->flags );
2671 static void dump_open_token_reply( const struct open_token_reply *req )
2673 fprintf( stderr, " token=%p", req->token );
2676 static void dump_set_global_windows_request( const struct set_global_windows_request *req )
2678 fprintf( stderr, " flags=%08x,", req->flags );
2679 fprintf( stderr, " shell_window=%p,", req->shell_window );
2680 fprintf( stderr, " shell_listview=%p,", req->shell_listview );
2681 fprintf( stderr, " progman_window=%p,", req->progman_window );
2682 fprintf( stderr, " taskman_window=%p", req->taskman_window );
2685 static void dump_set_global_windows_reply( const struct set_global_windows_reply *req )
2687 fprintf( stderr, " old_shell_window=%p,", req->old_shell_window );
2688 fprintf( stderr, " old_shell_listview=%p,", req->old_shell_listview );
2689 fprintf( stderr, " old_progman_window=%p,", req->old_progman_window );
2690 fprintf( stderr, " old_taskman_window=%p", req->old_taskman_window );
2693 static void dump_adjust_token_privileges_request( const struct adjust_token_privileges_request *req )
2695 fprintf( stderr, " handle=%p,", req->handle );
2696 fprintf( stderr, " disable_all=%d,", req->disable_all );
2697 fprintf( stderr, " get_modified_state=%d,", req->get_modified_state );
2698 fprintf( stderr, " privileges=" );
2699 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
2702 static void dump_adjust_token_privileges_reply( const struct adjust_token_privileges_reply *req )
2704 fprintf( stderr, " len=%08x,", req->len );
2705 fprintf( stderr, " privileges=" );
2706 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
2709 static void dump_get_token_privileges_request( const struct get_token_privileges_request *req )
2711 fprintf( stderr, " handle=%p", req->handle );
2714 static void dump_get_token_privileges_reply( const struct get_token_privileges_reply *req )
2716 fprintf( stderr, " len=%08x,", req->len );
2717 fprintf( stderr, " privileges=" );
2718 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
2721 static void dump_check_token_privileges_request( const struct check_token_privileges_request *req )
2723 fprintf( stderr, " handle=%p,", req->handle );
2724 fprintf( stderr, " all_required=%d,", req->all_required );
2725 fprintf( stderr, " privileges=" );
2726 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
2729 static void dump_check_token_privileges_reply( const struct check_token_privileges_reply *req )
2731 fprintf( stderr, " has_privileges=%d,", req->has_privileges );
2732 fprintf( stderr, " privileges=" );
2733 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
2736 static void dump_duplicate_token_request( const struct duplicate_token_request *req )
2738 fprintf( stderr, " handle=%p,", req->handle );
2739 fprintf( stderr, " access=%08x,", req->access );
2740 fprintf( stderr, " inherit=%d,", req->inherit );
2741 fprintf( stderr, " primary=%d,", req->primary );
2742 fprintf( stderr, " impersonation_level=%d", req->impersonation_level );
2745 static void dump_duplicate_token_reply( const struct duplicate_token_reply *req )
2747 fprintf( stderr, " new_handle=%p", req->new_handle );
2750 static void dump_create_mailslot_request( const struct create_mailslot_request *req )
2752 fprintf( stderr, " max_msgsize=%08x,", req->max_msgsize );
2753 fprintf( stderr, " read_timeout=%08x,", req->read_timeout );
2754 fprintf( stderr, " inherit=%d,", req->inherit );
2755 fprintf( stderr, " name=" );
2756 dump_varargs_unicode_str( cur_size );
2759 static void dump_create_mailslot_reply( const struct create_mailslot_reply *req )
2761 fprintf( stderr, " handle=%p", req->handle );
2764 static void dump_open_mailslot_request( const struct open_mailslot_request *req )
2766 fprintf( stderr, " access=%08x,", req->access );
2767 fprintf( stderr, " inherit=%d,", req->inherit );
2768 fprintf( stderr, " sharing=%08x,", req->sharing );
2769 fprintf( stderr, " name=" );
2770 dump_varargs_unicode_str( cur_size );
2773 static void dump_open_mailslot_reply( const struct open_mailslot_reply *req )
2775 fprintf( stderr, " handle=%p", req->handle );
2778 static void dump_set_mailslot_info_request( const struct set_mailslot_info_request *req )
2780 fprintf( stderr, " handle=%p,", req->handle );
2781 fprintf( stderr, " flags=%08x,", req->flags );
2782 fprintf( stderr, " read_timeout=%08x", req->read_timeout );
2785 static void dump_set_mailslot_info_reply( const struct set_mailslot_info_reply *req )
2787 fprintf( stderr, " max_msgsize=%08x,", req->max_msgsize );
2788 fprintf( stderr, " read_timeout=%08x,", req->read_timeout );
2789 fprintf( stderr, " msg_count=%08x,", req->msg_count );
2790 fprintf( stderr, " next_msgsize=%08x", req->next_msgsize );
2793 static const dump_func req_dumpers[REQ_NB_REQUESTS] = {
2794 (dump_func)dump_new_process_request,
2795 (dump_func)dump_get_new_process_info_request,
2796 (dump_func)dump_new_thread_request,
2797 (dump_func)dump_boot_done_request,
2798 (dump_func)dump_init_process_request,
2799 (dump_func)dump_get_startup_info_request,
2800 (dump_func)dump_init_process_done_request,
2801 (dump_func)dump_init_thread_request,
2802 (dump_func)dump_terminate_process_request,
2803 (dump_func)dump_terminate_thread_request,
2804 (dump_func)dump_get_process_info_request,
2805 (dump_func)dump_set_process_info_request,
2806 (dump_func)dump_get_thread_info_request,
2807 (dump_func)dump_set_thread_info_request,
2808 (dump_func)dump_get_dll_info_request,
2809 (dump_func)dump_suspend_thread_request,
2810 (dump_func)dump_resume_thread_request,
2811 (dump_func)dump_load_dll_request,
2812 (dump_func)dump_unload_dll_request,
2813 (dump_func)dump_queue_apc_request,
2814 (dump_func)dump_get_apc_request,
2815 (dump_func)dump_close_handle_request,
2816 (dump_func)dump_set_handle_info_request,
2817 (dump_func)dump_dup_handle_request,
2818 (dump_func)dump_open_process_request,
2819 (dump_func)dump_open_thread_request,
2820 (dump_func)dump_select_request,
2821 (dump_func)dump_create_event_request,
2822 (dump_func)dump_event_op_request,
2823 (dump_func)dump_open_event_request,
2824 (dump_func)dump_create_mutex_request,
2825 (dump_func)dump_release_mutex_request,
2826 (dump_func)dump_open_mutex_request,
2827 (dump_func)dump_create_semaphore_request,
2828 (dump_func)dump_release_semaphore_request,
2829 (dump_func)dump_open_semaphore_request,
2830 (dump_func)dump_create_file_request,
2831 (dump_func)dump_alloc_file_handle_request,
2832 (dump_func)dump_get_handle_fd_request,
2833 (dump_func)dump_flush_file_request,
2834 (dump_func)dump_lock_file_request,
2835 (dump_func)dump_unlock_file_request,
2836 (dump_func)dump_create_socket_request,
2837 (dump_func)dump_accept_socket_request,
2838 (dump_func)dump_set_socket_event_request,
2839 (dump_func)dump_get_socket_event_request,
2840 (dump_func)dump_enable_socket_event_request,
2841 (dump_func)dump_set_socket_deferred_request,
2842 (dump_func)dump_alloc_console_request,
2843 (dump_func)dump_free_console_request,
2844 (dump_func)dump_get_console_renderer_events_request,
2845 (dump_func)dump_open_console_request,
2846 (dump_func)dump_get_console_wait_event_request,
2847 (dump_func)dump_get_console_mode_request,
2848 (dump_func)dump_set_console_mode_request,
2849 (dump_func)dump_set_console_input_info_request,
2850 (dump_func)dump_get_console_input_info_request,
2851 (dump_func)dump_append_console_input_history_request,
2852 (dump_func)dump_get_console_input_history_request,
2853 (dump_func)dump_create_console_output_request,
2854 (dump_func)dump_set_console_output_info_request,
2855 (dump_func)dump_get_console_output_info_request,
2856 (dump_func)dump_write_console_input_request,
2857 (dump_func)dump_read_console_input_request,
2858 (dump_func)dump_write_console_output_request,
2859 (dump_func)dump_fill_console_output_request,
2860 (dump_func)dump_read_console_output_request,
2861 (dump_func)dump_move_console_output_request,
2862 (dump_func)dump_send_console_signal_request,
2863 (dump_func)dump_create_change_notification_request,
2864 (dump_func)dump_next_change_notification_request,
2865 (dump_func)dump_create_mapping_request,
2866 (dump_func)dump_open_mapping_request,
2867 (dump_func)dump_get_mapping_info_request,
2868 (dump_func)dump_create_snapshot_request,
2869 (dump_func)dump_next_process_request,
2870 (dump_func)dump_next_thread_request,
2871 (dump_func)dump_next_module_request,
2872 (dump_func)dump_wait_debug_event_request,
2873 (dump_func)dump_queue_exception_event_request,
2874 (dump_func)dump_get_exception_status_request,
2875 (dump_func)dump_output_debug_string_request,
2876 (dump_func)dump_continue_debug_event_request,
2877 (dump_func)dump_debug_process_request,
2878 (dump_func)dump_debug_break_request,
2879 (dump_func)dump_set_debugger_kill_on_exit_request,
2880 (dump_func)dump_read_process_memory_request,
2881 (dump_func)dump_write_process_memory_request,
2882 (dump_func)dump_create_key_request,
2883 (dump_func)dump_open_key_request,
2884 (dump_func)dump_delete_key_request,
2885 (dump_func)dump_flush_key_request,
2886 (dump_func)dump_enum_key_request,
2887 (dump_func)dump_set_key_value_request,
2888 (dump_func)dump_get_key_value_request,
2889 (dump_func)dump_enum_key_value_request,
2890 (dump_func)dump_delete_key_value_request,
2891 (dump_func)dump_load_registry_request,
2892 (dump_func)dump_unload_registry_request,
2893 (dump_func)dump_save_registry_request,
2894 (dump_func)dump_load_user_registries_request,
2895 (dump_func)dump_set_registry_notification_request,
2896 (dump_func)dump_create_timer_request,
2897 (dump_func)dump_open_timer_request,
2898 (dump_func)dump_set_timer_request,
2899 (dump_func)dump_cancel_timer_request,
2900 (dump_func)dump_get_timer_info_request,
2901 (dump_func)dump_get_thread_context_request,
2902 (dump_func)dump_set_thread_context_request,
2903 (dump_func)dump_get_selector_entry_request,
2904 (dump_func)dump_add_atom_request,
2905 (dump_func)dump_delete_atom_request,
2906 (dump_func)dump_find_atom_request,
2907 (dump_func)dump_get_atom_information_request,
2908 (dump_func)dump_set_atom_information_request,
2909 (dump_func)dump_empty_atom_table_request,
2910 (dump_func)dump_init_atom_table_request,
2911 (dump_func)dump_get_msg_queue_request,
2912 (dump_func)dump_set_queue_mask_request,
2913 (dump_func)dump_get_queue_status_request,
2914 (dump_func)dump_wait_input_idle_request,
2915 (dump_func)dump_send_message_request,
2916 (dump_func)dump_get_message_request,
2917 (dump_func)dump_reply_message_request,
2918 (dump_func)dump_accept_hardware_message_request,
2919 (dump_func)dump_get_message_reply_request,
2920 (dump_func)dump_set_win_timer_request,
2921 (dump_func)dump_kill_win_timer_request,
2922 (dump_func)dump_get_serial_info_request,
2923 (dump_func)dump_set_serial_info_request,
2924 (dump_func)dump_register_async_request,
2925 (dump_func)dump_cancel_async_request,
2926 (dump_func)dump_create_named_pipe_request,
2927 (dump_func)dump_open_named_pipe_request,
2928 (dump_func)dump_connect_named_pipe_request,
2929 (dump_func)dump_wait_named_pipe_request,
2930 (dump_func)dump_disconnect_named_pipe_request,
2931 (dump_func)dump_get_named_pipe_info_request,
2932 (dump_func)dump_create_window_request,
2933 (dump_func)dump_destroy_window_request,
2934 (dump_func)dump_set_window_owner_request,
2935 (dump_func)dump_get_window_info_request,
2936 (dump_func)dump_set_window_info_request,
2937 (dump_func)dump_set_parent_request,
2938 (dump_func)dump_get_window_parents_request,
2939 (dump_func)dump_get_window_children_request,
2940 (dump_func)dump_get_window_children_from_point_request,
2941 (dump_func)dump_get_window_tree_request,
2942 (dump_func)dump_set_window_pos_request,
2943 (dump_func)dump_get_window_rectangles_request,
2944 (dump_func)dump_get_window_text_request,
2945 (dump_func)dump_set_window_text_request,
2946 (dump_func)dump_get_windows_offset_request,
2947 (dump_func)dump_get_visible_region_request,
2948 (dump_func)dump_get_window_region_request,
2949 (dump_func)dump_set_window_region_request,
2950 (dump_func)dump_get_update_region_request,
2951 (dump_func)dump_update_window_zorder_request,
2952 (dump_func)dump_redraw_window_request,
2953 (dump_func)dump_set_window_property_request,
2954 (dump_func)dump_remove_window_property_request,
2955 (dump_func)dump_get_window_property_request,
2956 (dump_func)dump_get_window_properties_request,
2957 (dump_func)dump_attach_thread_input_request,
2958 (dump_func)dump_get_thread_input_request,
2959 (dump_func)dump_get_last_input_time_request,
2960 (dump_func)dump_get_key_state_request,
2961 (dump_func)dump_set_key_state_request,
2962 (dump_func)dump_set_foreground_window_request,
2963 (dump_func)dump_set_focus_window_request,
2964 (dump_func)dump_set_active_window_request,
2965 (dump_func)dump_set_capture_window_request,
2966 (dump_func)dump_set_caret_window_request,
2967 (dump_func)dump_set_caret_info_request,
2968 (dump_func)dump_set_hook_request,
2969 (dump_func)dump_remove_hook_request,
2970 (dump_func)dump_start_hook_chain_request,
2971 (dump_func)dump_finish_hook_chain_request,
2972 (dump_func)dump_get_next_hook_request,
2973 (dump_func)dump_create_class_request,
2974 (dump_func)dump_destroy_class_request,
2975 (dump_func)dump_set_class_info_request,
2976 (dump_func)dump_set_clipboard_info_request,
2977 (dump_func)dump_open_token_request,
2978 (dump_func)dump_set_global_windows_request,
2979 (dump_func)dump_adjust_token_privileges_request,
2980 (dump_func)dump_get_token_privileges_request,
2981 (dump_func)dump_check_token_privileges_request,
2982 (dump_func)dump_duplicate_token_request,
2983 (dump_func)dump_create_mailslot_request,
2984 (dump_func)dump_open_mailslot_request,
2985 (dump_func)dump_set_mailslot_info_request,
2988 static const dump_func reply_dumpers[REQ_NB_REQUESTS] = {
2989 (dump_func)dump_new_process_reply,
2990 (dump_func)dump_get_new_process_info_reply,
2991 (dump_func)dump_new_thread_reply,
2993 (dump_func)dump_init_process_reply,
2994 (dump_func)dump_get_startup_info_reply,
2996 (dump_func)dump_init_thread_reply,
2997 (dump_func)dump_terminate_process_reply,
2998 (dump_func)dump_terminate_thread_reply,
2999 (dump_func)dump_get_process_info_reply,
3001 (dump_func)dump_get_thread_info_reply,
3003 (dump_func)dump_get_dll_info_reply,
3004 (dump_func)dump_suspend_thread_reply,
3005 (dump_func)dump_resume_thread_reply,
3009 (dump_func)dump_get_apc_reply,
3010 (dump_func)dump_close_handle_reply,
3011 (dump_func)dump_set_handle_info_reply,
3012 (dump_func)dump_dup_handle_reply,
3013 (dump_func)dump_open_process_reply,
3014 (dump_func)dump_open_thread_reply,
3016 (dump_func)dump_create_event_reply,
3018 (dump_func)dump_open_event_reply,
3019 (dump_func)dump_create_mutex_reply,
3020 (dump_func)dump_release_mutex_reply,
3021 (dump_func)dump_open_mutex_reply,
3022 (dump_func)dump_create_semaphore_reply,
3023 (dump_func)dump_release_semaphore_reply,
3024 (dump_func)dump_open_semaphore_reply,
3025 (dump_func)dump_create_file_reply,
3026 (dump_func)dump_alloc_file_handle_reply,
3027 (dump_func)dump_get_handle_fd_reply,
3028 (dump_func)dump_flush_file_reply,
3029 (dump_func)dump_lock_file_reply,
3031 (dump_func)dump_create_socket_reply,
3032 (dump_func)dump_accept_socket_reply,
3034 (dump_func)dump_get_socket_event_reply,
3037 (dump_func)dump_alloc_console_reply,
3039 (dump_func)dump_get_console_renderer_events_reply,
3040 (dump_func)dump_open_console_reply,
3041 (dump_func)dump_get_console_wait_event_reply,
3042 (dump_func)dump_get_console_mode_reply,
3045 (dump_func)dump_get_console_input_info_reply,
3047 (dump_func)dump_get_console_input_history_reply,
3048 (dump_func)dump_create_console_output_reply,
3050 (dump_func)dump_get_console_output_info_reply,
3051 (dump_func)dump_write_console_input_reply,
3052 (dump_func)dump_read_console_input_reply,
3053 (dump_func)dump_write_console_output_reply,
3054 (dump_func)dump_fill_console_output_reply,
3055 (dump_func)dump_read_console_output_reply,
3058 (dump_func)dump_create_change_notification_reply,
3060 (dump_func)dump_create_mapping_reply,
3061 (dump_func)dump_open_mapping_reply,
3062 (dump_func)dump_get_mapping_info_reply,
3063 (dump_func)dump_create_snapshot_reply,
3064 (dump_func)dump_next_process_reply,
3065 (dump_func)dump_next_thread_reply,
3066 (dump_func)dump_next_module_reply,
3067 (dump_func)dump_wait_debug_event_reply,
3068 (dump_func)dump_queue_exception_event_reply,
3069 (dump_func)dump_get_exception_status_reply,
3073 (dump_func)dump_debug_break_reply,
3075 (dump_func)dump_read_process_memory_reply,
3077 (dump_func)dump_create_key_reply,
3078 (dump_func)dump_open_key_reply,
3081 (dump_func)dump_enum_key_reply,
3083 (dump_func)dump_get_key_value_reply,
3084 (dump_func)dump_enum_key_value_reply,
3091 (dump_func)dump_create_timer_reply,
3092 (dump_func)dump_open_timer_reply,
3093 (dump_func)dump_set_timer_reply,
3094 (dump_func)dump_cancel_timer_reply,
3095 (dump_func)dump_get_timer_info_reply,
3096 (dump_func)dump_get_thread_context_reply,
3098 (dump_func)dump_get_selector_entry_reply,
3099 (dump_func)dump_add_atom_reply,
3101 (dump_func)dump_find_atom_reply,
3102 (dump_func)dump_get_atom_information_reply,
3105 (dump_func)dump_init_atom_table_reply,
3106 (dump_func)dump_get_msg_queue_reply,
3107 (dump_func)dump_set_queue_mask_reply,
3108 (dump_func)dump_get_queue_status_reply,
3109 (dump_func)dump_wait_input_idle_reply,
3111 (dump_func)dump_get_message_reply,
3114 (dump_func)dump_get_message_reply_reply,
3115 (dump_func)dump_set_win_timer_reply,
3117 (dump_func)dump_get_serial_info_reply,
3121 (dump_func)dump_create_named_pipe_reply,
3122 (dump_func)dump_open_named_pipe_reply,
3125 (dump_func)dump_disconnect_named_pipe_reply,
3126 (dump_func)dump_get_named_pipe_info_reply,
3127 (dump_func)dump_create_window_reply,
3129 (dump_func)dump_set_window_owner_reply,
3130 (dump_func)dump_get_window_info_reply,
3131 (dump_func)dump_set_window_info_reply,
3132 (dump_func)dump_set_parent_reply,
3133 (dump_func)dump_get_window_parents_reply,
3134 (dump_func)dump_get_window_children_reply,
3135 (dump_func)dump_get_window_children_from_point_reply,
3136 (dump_func)dump_get_window_tree_reply,
3137 (dump_func)dump_set_window_pos_reply,
3138 (dump_func)dump_get_window_rectangles_reply,
3139 (dump_func)dump_get_window_text_reply,
3141 (dump_func)dump_get_windows_offset_reply,
3142 (dump_func)dump_get_visible_region_reply,
3143 (dump_func)dump_get_window_region_reply,
3145 (dump_func)dump_get_update_region_reply,
3149 (dump_func)dump_remove_window_property_reply,
3150 (dump_func)dump_get_window_property_reply,
3151 (dump_func)dump_get_window_properties_reply,
3153 (dump_func)dump_get_thread_input_reply,
3154 (dump_func)dump_get_last_input_time_reply,
3155 (dump_func)dump_get_key_state_reply,
3157 (dump_func)dump_set_foreground_window_reply,
3158 (dump_func)dump_set_focus_window_reply,
3159 (dump_func)dump_set_active_window_reply,
3160 (dump_func)dump_set_capture_window_reply,
3161 (dump_func)dump_set_caret_window_reply,
3162 (dump_func)dump_set_caret_info_reply,
3163 (dump_func)dump_set_hook_reply,
3165 (dump_func)dump_start_hook_chain_reply,
3167 (dump_func)dump_get_next_hook_reply,
3169 (dump_func)dump_destroy_class_reply,
3170 (dump_func)dump_set_class_info_reply,
3171 (dump_func)dump_set_clipboard_info_reply,
3172 (dump_func)dump_open_token_reply,
3173 (dump_func)dump_set_global_windows_reply,
3174 (dump_func)dump_adjust_token_privileges_reply,
3175 (dump_func)dump_get_token_privileges_reply,
3176 (dump_func)dump_check_token_privileges_reply,
3177 (dump_func)dump_duplicate_token_reply,
3178 (dump_func)dump_create_mailslot_reply,
3179 (dump_func)dump_open_mailslot_reply,
3180 (dump_func)dump_set_mailslot_info_reply,
3183 static const char * const req_names[REQ_NB_REQUESTS] = {
3185 "get_new_process_info",
3190 "init_process_done",
3192 "terminate_process",
3218 "release_semaphore",
3221 "alloc_file_handle",
3230 "enable_socket_event",
3231 "set_socket_deferred",
3234 "get_console_renderer_events",
3236 "get_console_wait_event",
3239 "set_console_input_info",
3240 "get_console_input_info",
3241 "append_console_input_history",
3242 "get_console_input_history",
3243 "create_console_output",
3244 "set_console_output_info",
3245 "get_console_output_info",
3246 "write_console_input",
3247 "read_console_input",
3248 "write_console_output",
3249 "fill_console_output",
3250 "read_console_output",
3251 "move_console_output",
3252 "send_console_signal",
3253 "create_change_notification",
3254 "next_change_notification",
3263 "queue_exception_event",
3264 "get_exception_status",
3265 "output_debug_string",
3266 "continue_debug_event",
3269 "set_debugger_kill_on_exit",
3270 "read_process_memory",
3271 "write_process_memory",
3284 "load_user_registries",
3285 "set_registry_notification",
3291 "get_thread_context",
3292 "set_thread_context",
3293 "get_selector_entry",
3297 "get_atom_information",
3298 "set_atom_information",
3308 "accept_hardware_message",
3309 "get_message_reply",
3316 "create_named_pipe",
3318 "connect_named_pipe",
3320 "disconnect_named_pipe",
3321 "get_named_pipe_info",
3328 "get_window_parents",
3329 "get_window_children",
3330 "get_window_children_from_point",
3333 "get_window_rectangles",
3336 "get_windows_offset",
3337 "get_visible_region",
3338 "get_window_region",
3339 "set_window_region",
3340 "get_update_region",
3341 "update_window_zorder",
3343 "set_window_property",
3344 "remove_window_property",
3345 "get_window_property",
3346 "get_window_properties",
3347 "attach_thread_input",
3349 "get_last_input_time",
3352 "set_foreground_window",
3354 "set_active_window",
3355 "set_capture_window",
3361 "finish_hook_chain",
3366 "set_clipboard_info",
3368 "set_global_windows",
3369 "adjust_token_privileges",
3370 "get_token_privileges",
3371 "check_token_privileges",
3375 "set_mailslot_info",
3378 /* ### make_requests end ### */
3379 /* Everything above this line is generated automatically by tools/make_requests */
3381 static const char *get_status_name( unsigned int status )
3383 #define NAME(status) { #status, STATUS_##status }
3384 #define NAME_WIN32(error) { #error, 0xc0010000 | error }
3391 NAME(ACCESS_DENIED),
3392 NAME(ACCESS_VIOLATION),
3394 NAME(BUFFER_OVERFLOW),
3395 NAME(CHILD_MUST_BE_VOLATILE),
3396 NAME(DIRECTORY_NOT_EMPTY),
3398 NAME(DLL_NOT_FOUND),
3399 NAME(FILE_IS_A_DIRECTORY),
3400 NAME(FILE_LOCK_CONFLICT),
3401 NAME(INVALID_FILE_FOR_SECTION),
3402 NAME(INVALID_HANDLE),
3403 NAME(INVALID_PARAMETER),
3405 NAME(MEDIA_WRITE_PROTECTED),
3406 NAME(MUTANT_NOT_OWNED),
3407 NAME(NOT_A_DIRECTORY),
3408 NAME(NOT_IMPLEMENTED),
3409 NAME(NOT_REGISTRY_FILE),
3410 NAME(NO_DATA_DETECTED),
3412 NAME(NO_MORE_ENTRIES),
3413 NAME(NO_MORE_FILES),
3415 NAME(OBJECT_NAME_COLLISION),
3416 NAME(OBJECT_NAME_INVALID),
3417 NAME(OBJECT_NAME_NOT_FOUND),
3418 NAME(OBJECT_PATH_INVALID),
3419 NAME(OBJECT_TYPE_MISMATCH),
3422 NAME(PIPE_CONNECTED),
3423 NAME(PIPE_DISCONNECTED),
3424 NAME(PIPE_LISTENING),
3425 NAME(PIPE_NOT_AVAILABLE),
3426 NAME(SEMAPHORE_LIMIT_EXCEEDED),
3427 NAME(SHARING_VIOLATION),
3428 NAME(SUSPEND_COUNT_EXCEEDED),
3432 NAME_WIN32(ERROR_INVALID_INDEX),
3433 NAME_WIN32(ERROR_INVALID_THREAD_ID),
3434 NAME_WIN32(ERROR_NEGATIVE_SEEK),
3435 NAME_WIN32(ERROR_SEEK),
3436 { NULL, 0 } /* terminator */
3441 static char buffer[10];
3445 for (i = 0; status_names[i].name; i++)
3446 if (status_names[i].value == status) return status_names[i].name;
3448 sprintf( buffer, "%x", status );
3452 void trace_request(void)
3454 enum request req = current->req.request_header.req;
3455 if (req < REQ_NB_REQUESTS)
3457 fprintf( stderr, "%04x: %s(", current->id, req_names[req] );
3458 if (req_dumpers[req])
3461 cur_data = get_req_data();
3462 cur_size = get_req_data_size();
3463 req_dumpers[req]( ¤t->req );
3465 fprintf( stderr, " )\n" );
3467 else fprintf( stderr, "%04x: %d(?)\n", current->id, req );
3470 void trace_reply( enum request req, const union generic_reply *reply )
3472 if (req < REQ_NB_REQUESTS)
3474 fprintf( stderr, "%04x: %s() = %s",
3475 current->id, req_names[req], get_status_name(current->error) );
3476 if (reply_dumpers[req])
3478 fprintf( stderr, " {" );
3480 cur_data = current->reply_data;
3481 cur_size = reply->reply_header.reply_size;
3482 reply_dumpers[req]( reply );
3483 fprintf( stderr, " }" );
3485 fputc( '\n', stderr );
3487 else fprintf( stderr, "%04x: %d() = %s\n",
3488 current->id, req, get_status_name(current->error) );