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 static void dump_inline_sid( const SID *sid, size_t size )
432 if ((size < sizeof(SID)) ||
433 (FIELD_OFFSET(SID, SubAuthority[sid->SubAuthorityCount]) > size))
436 fputc( '{', stderr );
437 fprintf( stderr, "S-%u-%lu", sid->Revision, MAKELONG(
438 MAKEWORD( sid->IdentifierAuthority.Value[5],
439 sid->IdentifierAuthority.Value[4] ),
440 MAKEWORD( sid->IdentifierAuthority.Value[3],
441 sid->IdentifierAuthority.Value[2] ) ) );
442 for (i = 0; i < sid->SubAuthorityCount; i++)
443 fprintf( stderr, "-%lu", sid->SubAuthority[i] );
444 fputc( '}', stderr );
447 static void dump_inline_acl( const ACL *acl, size_t size )
449 const ACE_HEADER *ace;
451 fputc( '{', stderr );
455 if (size < sizeof(ACL))
458 ace = (const ACE_HEADER *)(acl + 1);
459 for (i = 0; i < acl->AceCount; i++)
461 const SID *sid = NULL;
463 if (size < sizeof(ACE_HEADER))
465 if (size < ace->AceSize)
467 size -= ace->AceSize;
468 fprintf( stderr, "{AceType=" );
469 switch (ace->AceType)
471 case ACCESS_DENIED_ACE_TYPE:
472 sid = (const SID *)&((const ACCESS_DENIED_ACE *)ace)->SidStart;
473 fprintf( stderr, "ACCESS_DENIED_ACE_TYPE" );
475 case ACCESS_ALLOWED_ACE_TYPE:
476 sid = (const SID *)&((const ACCESS_ALLOWED_ACE *)ace)->SidStart;
477 fprintf( stderr, "ACCESS_ALLOWED_ACE_TYPE" );
479 case SYSTEM_AUDIT_ACE_TYPE:
480 sid = (const SID *)&((const SYSTEM_AUDIT_ACE *)ace)->SidStart;
481 fprintf( stderr, "SYSTEM_AUDIT_ACE_TYPE" );
483 case SYSTEM_ALARM_ACE_TYPE:
484 sid = (const SID *)&((const SYSTEM_ALARM_ACE *)ace)->SidStart;
485 fprintf( stderr, "SYSTEM_ALARM_ACE_TYPE" );
488 fprintf( stderr, "unknown<%d>", ace->AceType );
491 fprintf( stderr, ",AceFlags=%x,Sid=", ace->AceFlags );
493 dump_inline_sid( sid, size );
494 ace = (const ACE_HEADER *)((const char *)ace + ace->AceSize);
495 fputc( '}', stderr );
498 fputc( '}', stderr );
501 static void dump_inline_security_descriptor( const struct security_descriptor *sd, size_t size )
503 fputc( '{', stderr );
504 if (size >= sizeof(struct security_descriptor))
506 size_t offset = sizeof(struct security_descriptor);
507 fprintf( stderr, "control=%08x", sd->control );
508 fprintf( stderr, ",owner=" );
509 if ((sd->owner_len > FIELD_OFFSET(SID, SubAuthority[255])) || (offset + sd->owner_len > size))
511 dump_inline_sid( (const SID *)((const char *)sd + offset), sd->owner_len );
512 offset += sd->owner_len;
513 fprintf( stderr, ",group=" );
514 if ((sd->group_len > FIELD_OFFSET(SID, SubAuthority[255])) || (offset + sd->group_len > size))
516 dump_inline_sid( (const SID *)((const char *)sd + offset), sd->group_len );
517 offset += sd->group_len;
518 fprintf( stderr, ",sacl=" );
519 if ((sd->sacl_len >= MAX_ACL_LEN) || (offset + sd->sacl_len > size))
521 dump_inline_acl( (const ACL *)((const char *)sd + offset), sd->sacl_len );
522 offset += sd->sacl_len;
523 fprintf( stderr, ",dacl=" );
524 if ((sd->dacl_len >= MAX_ACL_LEN) || (offset + sd->dacl_len > size))
526 dump_inline_acl( (const ACL *)((const char *)sd + offset), sd->dacl_len );
527 offset += sd->dacl_len;
529 fputc( '}', stderr );
532 static void dump_varargs_security_descriptor( size_t size )
534 const struct security_descriptor *sd = cur_data;
535 dump_inline_security_descriptor( sd, size );
539 typedef void (*dump_func)( const void *req );
541 /* Everything below this line is generated automatically by tools/make_requests */
542 /* ### make_requests begin ### */
544 static void dump_new_process_request( const struct new_process_request *req )
546 fprintf( stderr, " inherit_all=%d,", req->inherit_all );
547 fprintf( stderr, " create_flags=%d,", req->create_flags );
548 fprintf( stderr, " unix_pid=%d,", req->unix_pid );
549 fprintf( stderr, " exe_file=%p,", req->exe_file );
550 fprintf( stderr, " hstdin=%p,", req->hstdin );
551 fprintf( stderr, " hstdout=%p,", req->hstdout );
552 fprintf( stderr, " hstderr=%p,", req->hstderr );
553 fprintf( stderr, " info=" );
554 dump_varargs_startup_info( cur_size );
555 fputc( ',', stderr );
556 fprintf( stderr, " env=" );
557 dump_varargs_unicode_str( cur_size );
560 static void dump_new_process_reply( const struct new_process_reply *req )
562 fprintf( stderr, " info=%p", req->info );
565 static void dump_get_new_process_info_request( const struct get_new_process_info_request *req )
567 fprintf( stderr, " info=%p,", req->info );
568 fprintf( stderr, " pinherit=%d,", req->pinherit );
569 fprintf( stderr, " tinherit=%d", req->tinherit );
572 static void dump_get_new_process_info_reply( const struct get_new_process_info_reply *req )
574 fprintf( stderr, " pid=%04x,", req->pid );
575 fprintf( stderr, " phandle=%p,", req->phandle );
576 fprintf( stderr, " tid=%04x,", req->tid );
577 fprintf( stderr, " thandle=%p,", req->thandle );
578 fprintf( stderr, " success=%d", req->success );
581 static void dump_new_thread_request( const struct new_thread_request *req )
583 fprintf( stderr, " suspend=%d,", req->suspend );
584 fprintf( stderr, " inherit=%d,", req->inherit );
585 fprintf( stderr, " request_fd=%d", req->request_fd );
588 static void dump_new_thread_reply( const struct new_thread_reply *req )
590 fprintf( stderr, " tid=%04x,", req->tid );
591 fprintf( stderr, " handle=%p", req->handle );
594 static void dump_boot_done_request( const struct boot_done_request *req )
596 fprintf( stderr, " debug_level=%d", req->debug_level );
599 static void dump_init_process_request( const struct init_process_request *req )
601 fprintf( stderr, " peb=%p,", req->peb );
602 fprintf( stderr, " ldt_copy=%p", req->ldt_copy );
605 static void dump_init_process_reply( const struct init_process_reply *req )
607 fprintf( stderr, " create_flags=%d,", req->create_flags );
608 fprintf( stderr, " server_start=%08x,", req->server_start );
609 fprintf( stderr, " info_size=%d,", req->info_size );
610 fprintf( stderr, " exe_file=%p,", req->exe_file );
611 fprintf( stderr, " hstdin=%p,", req->hstdin );
612 fprintf( stderr, " hstdout=%p,", req->hstdout );
613 fprintf( stderr, " hstderr=%p", req->hstderr );
616 static void dump_get_startup_info_request( const struct get_startup_info_request *req )
620 static void dump_get_startup_info_reply( const struct get_startup_info_reply *req )
622 fprintf( stderr, " info=" );
623 dump_varargs_startup_info( cur_size );
624 fputc( ',', stderr );
625 fprintf( stderr, " env=" );
626 dump_varargs_unicode_str( cur_size );
629 static void dump_init_process_done_request( const struct init_process_done_request *req )
631 fprintf( stderr, " module=%p,", req->module );
632 fprintf( stderr, " module_size=%d,", req->module_size );
633 fprintf( stderr, " entry=%p,", req->entry );
634 fprintf( stderr, " name=%p,", req->name );
635 fprintf( stderr, " exe_file=%p,", req->exe_file );
636 fprintf( stderr, " gui=%d,", req->gui );
637 fprintf( stderr, " filename=" );
638 dump_varargs_unicode_str( cur_size );
641 static void dump_init_thread_request( const struct init_thread_request *req )
643 fprintf( stderr, " unix_pid=%d,", req->unix_pid );
644 fprintf( stderr, " unix_tid=%d,", req->unix_tid );
645 fprintf( stderr, " teb=%p,", req->teb );
646 fprintf( stderr, " entry=%p,", req->entry );
647 fprintf( stderr, " reply_fd=%d,", req->reply_fd );
648 fprintf( stderr, " wait_fd=%d", req->wait_fd );
651 static void dump_init_thread_reply( const struct init_thread_reply *req )
653 fprintf( stderr, " pid=%04x,", req->pid );
654 fprintf( stderr, " tid=%04x,", req->tid );
655 fprintf( stderr, " boot=%d,", req->boot );
656 fprintf( stderr, " version=%d", req->version );
659 static void dump_terminate_process_request( const struct terminate_process_request *req )
661 fprintf( stderr, " handle=%p,", req->handle );
662 fprintf( stderr, " exit_code=%d", req->exit_code );
665 static void dump_terminate_process_reply( const struct terminate_process_reply *req )
667 fprintf( stderr, " self=%d", req->self );
670 static void dump_terminate_thread_request( const struct terminate_thread_request *req )
672 fprintf( stderr, " handle=%p,", req->handle );
673 fprintf( stderr, " exit_code=%d", req->exit_code );
676 static void dump_terminate_thread_reply( const struct terminate_thread_reply *req )
678 fprintf( stderr, " self=%d,", req->self );
679 fprintf( stderr, " last=%d", req->last );
682 static void dump_get_process_info_request( const struct get_process_info_request *req )
684 fprintf( stderr, " handle=%p", req->handle );
687 static void dump_get_process_info_reply( const struct get_process_info_reply *req )
689 fprintf( stderr, " pid=%04x,", req->pid );
690 fprintf( stderr, " ppid=%04x,", req->ppid );
691 fprintf( stderr, " exit_code=%d,", req->exit_code );
692 fprintf( stderr, " priority=%d,", req->priority );
693 fprintf( stderr, " process_affinity=%d,", req->process_affinity );
694 fprintf( stderr, " system_affinity=%d,", req->system_affinity );
695 fprintf( stderr, " peb=%p", req->peb );
698 static void dump_set_process_info_request( const struct set_process_info_request *req )
700 fprintf( stderr, " handle=%p,", req->handle );
701 fprintf( stderr, " mask=%d,", req->mask );
702 fprintf( stderr, " priority=%d,", req->priority );
703 fprintf( stderr, " affinity=%d", req->affinity );
706 static void dump_get_thread_info_request( const struct get_thread_info_request *req )
708 fprintf( stderr, " handle=%p,", req->handle );
709 fprintf( stderr, " tid_in=%04x", req->tid_in );
712 static void dump_get_thread_info_reply( const struct get_thread_info_reply *req )
714 fprintf( stderr, " pid=%04x,", req->pid );
715 fprintf( stderr, " tid=%04x,", req->tid );
716 fprintf( stderr, " teb=%p,", req->teb );
717 fprintf( stderr, " exit_code=%d,", req->exit_code );
718 fprintf( stderr, " priority=%d,", req->priority );
719 fprintf( stderr, " affinity=%d,", req->affinity );
720 fprintf( stderr, " creation_time=%ld,", (long)req->creation_time );
721 fprintf( stderr, " exit_time=%ld", (long)req->exit_time );
724 static void dump_set_thread_info_request( const struct set_thread_info_request *req )
726 fprintf( stderr, " handle=%p,", req->handle );
727 fprintf( stderr, " mask=%d,", req->mask );
728 fprintf( stderr, " priority=%d,", req->priority );
729 fprintf( stderr, " affinity=%d", req->affinity );
732 static void dump_get_dll_info_request( const struct get_dll_info_request *req )
734 fprintf( stderr, " handle=%p,", req->handle );
735 fprintf( stderr, " base_address=%p", req->base_address );
738 static void dump_get_dll_info_reply( const struct get_dll_info_reply *req )
740 fprintf( stderr, " size=%d,", req->size );
741 fprintf( stderr, " entry_point=%p,", req->entry_point );
742 fprintf( stderr, " filename=" );
743 dump_varargs_unicode_str( cur_size );
746 static void dump_suspend_thread_request( const struct suspend_thread_request *req )
748 fprintf( stderr, " handle=%p", req->handle );
751 static void dump_suspend_thread_reply( const struct suspend_thread_reply *req )
753 fprintf( stderr, " count=%d", req->count );
756 static void dump_resume_thread_request( const struct resume_thread_request *req )
758 fprintf( stderr, " handle=%p", req->handle );
761 static void dump_resume_thread_reply( const struct resume_thread_reply *req )
763 fprintf( stderr, " count=%d", req->count );
766 static void dump_load_dll_request( const struct load_dll_request *req )
768 fprintf( stderr, " handle=%p,", req->handle );
769 fprintf( stderr, " base=%p,", req->base );
770 fprintf( stderr, " size=%d,", req->size );
771 fprintf( stderr, " dbg_offset=%d,", req->dbg_offset );
772 fprintf( stderr, " dbg_size=%d,", req->dbg_size );
773 fprintf( stderr, " name=%p,", req->name );
774 fprintf( stderr, " filename=" );
775 dump_varargs_unicode_str( cur_size );
778 static void dump_unload_dll_request( const struct unload_dll_request *req )
780 fprintf( stderr, " base=%p", req->base );
783 static void dump_queue_apc_request( const struct queue_apc_request *req )
785 fprintf( stderr, " handle=%p,", req->handle );
786 fprintf( stderr, " user=%d,", req->user );
787 fprintf( stderr, " func=%p,", req->func );
788 fprintf( stderr, " arg1=%p,", req->arg1 );
789 fprintf( stderr, " arg2=%p,", req->arg2 );
790 fprintf( stderr, " arg3=%p", req->arg3 );
793 static void dump_get_apc_request( const struct get_apc_request *req )
795 fprintf( stderr, " alertable=%d", req->alertable );
798 static void dump_get_apc_reply( const struct get_apc_reply *req )
800 fprintf( stderr, " func=%p,", req->func );
801 fprintf( stderr, " type=%d,", req->type );
802 fprintf( stderr, " arg1=%p,", req->arg1 );
803 fprintf( stderr, " arg2=%p,", req->arg2 );
804 fprintf( stderr, " arg3=%p", req->arg3 );
807 static void dump_close_handle_request( const struct close_handle_request *req )
809 fprintf( stderr, " handle=%p", req->handle );
812 static void dump_close_handle_reply( const struct close_handle_reply *req )
814 fprintf( stderr, " fd=%d", req->fd );
817 static void dump_set_handle_info_request( const struct set_handle_info_request *req )
819 fprintf( stderr, " handle=%p,", req->handle );
820 fprintf( stderr, " flags=%d,", req->flags );
821 fprintf( stderr, " mask=%d,", req->mask );
822 fprintf( stderr, " fd=%d", req->fd );
825 static void dump_set_handle_info_reply( const struct set_handle_info_reply *req )
827 fprintf( stderr, " old_flags=%d,", req->old_flags );
828 fprintf( stderr, " cur_fd=%d", req->cur_fd );
831 static void dump_dup_handle_request( const struct dup_handle_request *req )
833 fprintf( stderr, " src_process=%p,", req->src_process );
834 fprintf( stderr, " src_handle=%p,", req->src_handle );
835 fprintf( stderr, " dst_process=%p,", req->dst_process );
836 fprintf( stderr, " access=%08x,", req->access );
837 fprintf( stderr, " inherit=%d,", req->inherit );
838 fprintf( stderr, " options=%d", req->options );
841 static void dump_dup_handle_reply( const struct dup_handle_reply *req )
843 fprintf( stderr, " handle=%p,", req->handle );
844 fprintf( stderr, " fd=%d", req->fd );
847 static void dump_open_process_request( const struct open_process_request *req )
849 fprintf( stderr, " pid=%04x,", req->pid );
850 fprintf( stderr, " access=%08x,", req->access );
851 fprintf( stderr, " inherit=%d", req->inherit );
854 static void dump_open_process_reply( const struct open_process_reply *req )
856 fprintf( stderr, " handle=%p", req->handle );
859 static void dump_open_thread_request( const struct open_thread_request *req )
861 fprintf( stderr, " tid=%04x,", req->tid );
862 fprintf( stderr, " access=%08x,", req->access );
863 fprintf( stderr, " inherit=%d", req->inherit );
866 static void dump_open_thread_reply( const struct open_thread_reply *req )
868 fprintf( stderr, " handle=%p", req->handle );
871 static void dump_select_request( const struct select_request *req )
873 fprintf( stderr, " flags=%d,", req->flags );
874 fprintf( stderr, " cookie=%p,", req->cookie );
875 fprintf( stderr, " signal=%p,", req->signal );
876 fprintf( stderr, " timeout=" );
877 dump_abs_time( &req->timeout );
878 fprintf( stderr, "," );
879 fprintf( stderr, " handles=" );
880 dump_varargs_handles( cur_size );
883 static void dump_create_event_request( const struct create_event_request *req )
885 fprintf( stderr, " access=%08x,", req->access );
886 fprintf( stderr, " manual_reset=%d,", req->manual_reset );
887 fprintf( stderr, " initial_state=%d,", req->initial_state );
888 fprintf( stderr, " inherit=%d,", req->inherit );
889 fprintf( stderr, " name=" );
890 dump_varargs_unicode_str( cur_size );
893 static void dump_create_event_reply( const struct create_event_reply *req )
895 fprintf( stderr, " handle=%p", req->handle );
898 static void dump_event_op_request( const struct event_op_request *req )
900 fprintf( stderr, " handle=%p,", req->handle );
901 fprintf( stderr, " op=%d", req->op );
904 static void dump_open_event_request( const struct open_event_request *req )
906 fprintf( stderr, " access=%08x,", req->access );
907 fprintf( stderr, " inherit=%d,", req->inherit );
908 fprintf( stderr, " name=" );
909 dump_varargs_unicode_str( cur_size );
912 static void dump_open_event_reply( const struct open_event_reply *req )
914 fprintf( stderr, " handle=%p", req->handle );
917 static void dump_create_mutex_request( const struct create_mutex_request *req )
919 fprintf( stderr, " access=%08x,", req->access );
920 fprintf( stderr, " owned=%d,", req->owned );
921 fprintf( stderr, " inherit=%d,", req->inherit );
922 fprintf( stderr, " name=" );
923 dump_varargs_unicode_str( cur_size );
926 static void dump_create_mutex_reply( const struct create_mutex_reply *req )
928 fprintf( stderr, " handle=%p", req->handle );
931 static void dump_release_mutex_request( const struct release_mutex_request *req )
933 fprintf( stderr, " handle=%p", req->handle );
936 static void dump_release_mutex_reply( const struct release_mutex_reply *req )
938 fprintf( stderr, " prev_count=%08x", req->prev_count );
941 static void dump_open_mutex_request( const struct open_mutex_request *req )
943 fprintf( stderr, " access=%08x,", req->access );
944 fprintf( stderr, " inherit=%d,", req->inherit );
945 fprintf( stderr, " name=" );
946 dump_varargs_unicode_str( cur_size );
949 static void dump_open_mutex_reply( const struct open_mutex_reply *req )
951 fprintf( stderr, " handle=%p", req->handle );
954 static void dump_create_semaphore_request( const struct create_semaphore_request *req )
956 fprintf( stderr, " access=%08x,", req->access );
957 fprintf( stderr, " initial=%08x,", req->initial );
958 fprintf( stderr, " max=%08x,", req->max );
959 fprintf( stderr, " inherit=%d,", req->inherit );
960 fprintf( stderr, " name=" );
961 dump_varargs_unicode_str( cur_size );
964 static void dump_create_semaphore_reply( const struct create_semaphore_reply *req )
966 fprintf( stderr, " handle=%p", req->handle );
969 static void dump_release_semaphore_request( const struct release_semaphore_request *req )
971 fprintf( stderr, " handle=%p,", req->handle );
972 fprintf( stderr, " count=%08x", req->count );
975 static void dump_release_semaphore_reply( const struct release_semaphore_reply *req )
977 fprintf( stderr, " prev_count=%08x", req->prev_count );
980 static void dump_open_semaphore_request( const struct open_semaphore_request *req )
982 fprintf( stderr, " access=%08x,", req->access );
983 fprintf( stderr, " inherit=%d,", req->inherit );
984 fprintf( stderr, " name=" );
985 dump_varargs_unicode_str( cur_size );
988 static void dump_open_semaphore_reply( const struct open_semaphore_reply *req )
990 fprintf( stderr, " handle=%p", req->handle );
993 static void dump_create_file_request( const struct create_file_request *req )
995 fprintf( stderr, " access=%08x,", req->access );
996 fprintf( stderr, " inherit=%d,", req->inherit );
997 fprintf( stderr, " sharing=%08x,", req->sharing );
998 fprintf( stderr, " create=%d,", req->create );
999 fprintf( stderr, " options=%08x,", req->options );
1000 fprintf( stderr, " attrs=%08x,", req->attrs );
1001 fprintf( stderr, " filename=" );
1002 dump_varargs_string( cur_size );
1005 static void dump_create_file_reply( const struct create_file_reply *req )
1007 fprintf( stderr, " handle=%p", req->handle );
1010 static void dump_alloc_file_handle_request( const struct alloc_file_handle_request *req )
1012 fprintf( stderr, " access=%08x,", req->access );
1013 fprintf( stderr, " inherit=%d,", req->inherit );
1014 fprintf( stderr, " fd=%d", req->fd );
1017 static void dump_alloc_file_handle_reply( const struct alloc_file_handle_reply *req )
1019 fprintf( stderr, " handle=%p", req->handle );
1022 static void dump_get_handle_fd_request( const struct get_handle_fd_request *req )
1024 fprintf( stderr, " handle=%p,", req->handle );
1025 fprintf( stderr, " access=%08x", req->access );
1028 static void dump_get_handle_fd_reply( const struct get_handle_fd_reply *req )
1030 fprintf( stderr, " fd=%d,", req->fd );
1031 fprintf( stderr, " flags=%d", req->flags );
1034 static void dump_flush_file_request( const struct flush_file_request *req )
1036 fprintf( stderr, " handle=%p", req->handle );
1039 static void dump_flush_file_reply( const struct flush_file_reply *req )
1041 fprintf( stderr, " event=%p", req->event );
1044 static void dump_lock_file_request( const struct lock_file_request *req )
1046 fprintf( stderr, " handle=%p,", req->handle );
1047 fprintf( stderr, " offset_low=%08x,", req->offset_low );
1048 fprintf( stderr, " offset_high=%08x,", req->offset_high );
1049 fprintf( stderr, " count_low=%08x,", req->count_low );
1050 fprintf( stderr, " count_high=%08x,", req->count_high );
1051 fprintf( stderr, " shared=%d,", req->shared );
1052 fprintf( stderr, " wait=%d", req->wait );
1055 static void dump_lock_file_reply( const struct lock_file_reply *req )
1057 fprintf( stderr, " handle=%p,", req->handle );
1058 fprintf( stderr, " overlapped=%d", req->overlapped );
1061 static void dump_unlock_file_request( const struct unlock_file_request *req )
1063 fprintf( stderr, " handle=%p,", req->handle );
1064 fprintf( stderr, " offset_low=%08x,", req->offset_low );
1065 fprintf( stderr, " offset_high=%08x,", req->offset_high );
1066 fprintf( stderr, " count_low=%08x,", req->count_low );
1067 fprintf( stderr, " count_high=%08x", req->count_high );
1070 static void dump_create_socket_request( const struct create_socket_request *req )
1072 fprintf( stderr, " access=%08x,", req->access );
1073 fprintf( stderr, " inherit=%d,", req->inherit );
1074 fprintf( stderr, " family=%d,", req->family );
1075 fprintf( stderr, " type=%d,", req->type );
1076 fprintf( stderr, " protocol=%d,", req->protocol );
1077 fprintf( stderr, " flags=%08x", req->flags );
1080 static void dump_create_socket_reply( const struct create_socket_reply *req )
1082 fprintf( stderr, " handle=%p", req->handle );
1085 static void dump_accept_socket_request( const struct accept_socket_request *req )
1087 fprintf( stderr, " lhandle=%p,", req->lhandle );
1088 fprintf( stderr, " access=%08x,", req->access );
1089 fprintf( stderr, " inherit=%d", req->inherit );
1092 static void dump_accept_socket_reply( const struct accept_socket_reply *req )
1094 fprintf( stderr, " handle=%p", req->handle );
1097 static void dump_set_socket_event_request( const struct set_socket_event_request *req )
1099 fprintf( stderr, " handle=%p,", req->handle );
1100 fprintf( stderr, " mask=%08x,", req->mask );
1101 fprintf( stderr, " event=%p,", req->event );
1102 fprintf( stderr, " window=%p,", req->window );
1103 fprintf( stderr, " msg=%08x", req->msg );
1106 static void dump_get_socket_event_request( const struct get_socket_event_request *req )
1108 fprintf( stderr, " handle=%p,", req->handle );
1109 fprintf( stderr, " service=%d,", req->service );
1110 fprintf( stderr, " c_event=%p", req->c_event );
1113 static void dump_get_socket_event_reply( const struct get_socket_event_reply *req )
1115 fprintf( stderr, " mask=%08x,", req->mask );
1116 fprintf( stderr, " pmask=%08x,", req->pmask );
1117 fprintf( stderr, " state=%08x,", req->state );
1118 fprintf( stderr, " errors=" );
1119 dump_varargs_ints( cur_size );
1122 static void dump_enable_socket_event_request( const struct enable_socket_event_request *req )
1124 fprintf( stderr, " handle=%p,", req->handle );
1125 fprintf( stderr, " mask=%08x,", req->mask );
1126 fprintf( stderr, " sstate=%08x,", req->sstate );
1127 fprintf( stderr, " cstate=%08x", req->cstate );
1130 static void dump_set_socket_deferred_request( const struct set_socket_deferred_request *req )
1132 fprintf( stderr, " handle=%p,", req->handle );
1133 fprintf( stderr, " deferred=%p", req->deferred );
1136 static void dump_alloc_console_request( const struct alloc_console_request *req )
1138 fprintf( stderr, " access=%08x,", req->access );
1139 fprintf( stderr, " inherit=%d,", req->inherit );
1140 fprintf( stderr, " pid=%04x", req->pid );
1143 static void dump_alloc_console_reply( const struct alloc_console_reply *req )
1145 fprintf( stderr, " handle_in=%p,", req->handle_in );
1146 fprintf( stderr, " event=%p", req->event );
1149 static void dump_free_console_request( const struct free_console_request *req )
1153 static void dump_get_console_renderer_events_request( const struct get_console_renderer_events_request *req )
1155 fprintf( stderr, " handle=%p", req->handle );
1158 static void dump_get_console_renderer_events_reply( const struct get_console_renderer_events_reply *req )
1160 fprintf( stderr, " data=" );
1161 dump_varargs_bytes( cur_size );
1164 static void dump_open_console_request( const struct open_console_request *req )
1166 fprintf( stderr, " from=%d,", req->from );
1167 fprintf( stderr, " access=%08x,", req->access );
1168 fprintf( stderr, " inherit=%d,", req->inherit );
1169 fprintf( stderr, " share=%d", req->share );
1172 static void dump_open_console_reply( const struct open_console_reply *req )
1174 fprintf( stderr, " handle=%p", req->handle );
1177 static void dump_get_console_wait_event_request( const struct get_console_wait_event_request *req )
1181 static void dump_get_console_wait_event_reply( const struct get_console_wait_event_reply *req )
1183 fprintf( stderr, " handle=%p", req->handle );
1186 static void dump_get_console_mode_request( const struct get_console_mode_request *req )
1188 fprintf( stderr, " handle=%p", req->handle );
1191 static void dump_get_console_mode_reply( const struct get_console_mode_reply *req )
1193 fprintf( stderr, " mode=%d", req->mode );
1196 static void dump_set_console_mode_request( const struct set_console_mode_request *req )
1198 fprintf( stderr, " handle=%p,", req->handle );
1199 fprintf( stderr, " mode=%d", req->mode );
1202 static void dump_set_console_input_info_request( const struct set_console_input_info_request *req )
1204 fprintf( stderr, " handle=%p,", req->handle );
1205 fprintf( stderr, " mask=%d,", req->mask );
1206 fprintf( stderr, " active_sb=%p,", req->active_sb );
1207 fprintf( stderr, " history_mode=%d,", req->history_mode );
1208 fprintf( stderr, " history_size=%d,", req->history_size );
1209 fprintf( stderr, " edition_mode=%d,", req->edition_mode );
1210 fprintf( stderr, " title=" );
1211 dump_varargs_unicode_str( cur_size );
1214 static void dump_get_console_input_info_request( const struct get_console_input_info_request *req )
1216 fprintf( stderr, " handle=%p", req->handle );
1219 static void dump_get_console_input_info_reply( const struct get_console_input_info_reply *req )
1221 fprintf( stderr, " history_mode=%d,", req->history_mode );
1222 fprintf( stderr, " history_size=%d,", req->history_size );
1223 fprintf( stderr, " history_index=%d,", req->history_index );
1224 fprintf( stderr, " edition_mode=%d,", req->edition_mode );
1225 fprintf( stderr, " title=" );
1226 dump_varargs_unicode_str( cur_size );
1229 static void dump_append_console_input_history_request( const struct append_console_input_history_request *req )
1231 fprintf( stderr, " handle=%p,", req->handle );
1232 fprintf( stderr, " line=" );
1233 dump_varargs_unicode_str( cur_size );
1236 static void dump_get_console_input_history_request( const struct get_console_input_history_request *req )
1238 fprintf( stderr, " handle=%p,", req->handle );
1239 fprintf( stderr, " index=%d", req->index );
1242 static void dump_get_console_input_history_reply( const struct get_console_input_history_reply *req )
1244 fprintf( stderr, " total=%d,", req->total );
1245 fprintf( stderr, " line=" );
1246 dump_varargs_unicode_str( cur_size );
1249 static void dump_create_console_output_request( const struct create_console_output_request *req )
1251 fprintf( stderr, " handle_in=%p,", req->handle_in );
1252 fprintf( stderr, " access=%d,", req->access );
1253 fprintf( stderr, " share=%d,", req->share );
1254 fprintf( stderr, " inherit=%d", req->inherit );
1257 static void dump_create_console_output_reply( const struct create_console_output_reply *req )
1259 fprintf( stderr, " handle_out=%p", req->handle_out );
1262 static void dump_set_console_output_info_request( const struct set_console_output_info_request *req )
1264 fprintf( stderr, " handle=%p,", req->handle );
1265 fprintf( stderr, " mask=%d,", req->mask );
1266 fprintf( stderr, " cursor_size=%d,", req->cursor_size );
1267 fprintf( stderr, " cursor_visible=%d,", req->cursor_visible );
1268 fprintf( stderr, " cursor_x=%d,", req->cursor_x );
1269 fprintf( stderr, " cursor_y=%d,", req->cursor_y );
1270 fprintf( stderr, " width=%d,", req->width );
1271 fprintf( stderr, " height=%d,", req->height );
1272 fprintf( stderr, " attr=%d,", req->attr );
1273 fprintf( stderr, " win_left=%d,", req->win_left );
1274 fprintf( stderr, " win_top=%d,", req->win_top );
1275 fprintf( stderr, " win_right=%d,", req->win_right );
1276 fprintf( stderr, " win_bottom=%d,", req->win_bottom );
1277 fprintf( stderr, " max_width=%d,", req->max_width );
1278 fprintf( stderr, " max_height=%d", req->max_height );
1281 static void dump_get_console_output_info_request( const struct get_console_output_info_request *req )
1283 fprintf( stderr, " handle=%p", req->handle );
1286 static void dump_get_console_output_info_reply( const struct get_console_output_info_reply *req )
1288 fprintf( stderr, " cursor_size=%d,", req->cursor_size );
1289 fprintf( stderr, " cursor_visible=%d,", req->cursor_visible );
1290 fprintf( stderr, " cursor_x=%d,", req->cursor_x );
1291 fprintf( stderr, " cursor_y=%d,", req->cursor_y );
1292 fprintf( stderr, " width=%d,", req->width );
1293 fprintf( stderr, " height=%d,", req->height );
1294 fprintf( stderr, " attr=%d,", req->attr );
1295 fprintf( stderr, " win_left=%d,", req->win_left );
1296 fprintf( stderr, " win_top=%d,", req->win_top );
1297 fprintf( stderr, " win_right=%d,", req->win_right );
1298 fprintf( stderr, " win_bottom=%d,", req->win_bottom );
1299 fprintf( stderr, " max_width=%d,", req->max_width );
1300 fprintf( stderr, " max_height=%d", req->max_height );
1303 static void dump_write_console_input_request( const struct write_console_input_request *req )
1305 fprintf( stderr, " handle=%p,", req->handle );
1306 fprintf( stderr, " rec=" );
1307 dump_varargs_input_records( cur_size );
1310 static void dump_write_console_input_reply( const struct write_console_input_reply *req )
1312 fprintf( stderr, " written=%d", req->written );
1315 static void dump_read_console_input_request( const struct read_console_input_request *req )
1317 fprintf( stderr, " handle=%p,", req->handle );
1318 fprintf( stderr, " flush=%d", req->flush );
1321 static void dump_read_console_input_reply( const struct read_console_input_reply *req )
1323 fprintf( stderr, " read=%d,", req->read );
1324 fprintf( stderr, " rec=" );
1325 dump_varargs_input_records( cur_size );
1328 static void dump_write_console_output_request( const struct write_console_output_request *req )
1330 fprintf( stderr, " handle=%p,", req->handle );
1331 fprintf( stderr, " x=%d,", req->x );
1332 fprintf( stderr, " y=%d,", req->y );
1333 fprintf( stderr, " mode=%d,", req->mode );
1334 fprintf( stderr, " wrap=%d,", req->wrap );
1335 fprintf( stderr, " data=" );
1336 dump_varargs_bytes( cur_size );
1339 static void dump_write_console_output_reply( const struct write_console_output_reply *req )
1341 fprintf( stderr, " written=%d,", req->written );
1342 fprintf( stderr, " width=%d,", req->width );
1343 fprintf( stderr, " height=%d", req->height );
1346 static void dump_fill_console_output_request( const struct fill_console_output_request *req )
1348 fprintf( stderr, " handle=%p,", req->handle );
1349 fprintf( stderr, " x=%d,", req->x );
1350 fprintf( stderr, " y=%d,", req->y );
1351 fprintf( stderr, " mode=%d,", req->mode );
1352 fprintf( stderr, " count=%d,", req->count );
1353 fprintf( stderr, " wrap=%d,", req->wrap );
1354 fprintf( stderr, " data=" );
1355 dump_char_info( &req->data );
1358 static void dump_fill_console_output_reply( const struct fill_console_output_reply *req )
1360 fprintf( stderr, " written=%d", req->written );
1363 static void dump_read_console_output_request( const struct read_console_output_request *req )
1365 fprintf( stderr, " handle=%p,", req->handle );
1366 fprintf( stderr, " x=%d,", req->x );
1367 fprintf( stderr, " y=%d,", req->y );
1368 fprintf( stderr, " mode=%d,", req->mode );
1369 fprintf( stderr, " wrap=%d", req->wrap );
1372 static void dump_read_console_output_reply( const struct read_console_output_reply *req )
1374 fprintf( stderr, " width=%d,", req->width );
1375 fprintf( stderr, " height=%d,", req->height );
1376 fprintf( stderr, " data=" );
1377 dump_varargs_bytes( cur_size );
1380 static void dump_move_console_output_request( const struct move_console_output_request *req )
1382 fprintf( stderr, " handle=%p,", req->handle );
1383 fprintf( stderr, " x_src=%d,", req->x_src );
1384 fprintf( stderr, " y_src=%d,", req->y_src );
1385 fprintf( stderr, " x_dst=%d,", req->x_dst );
1386 fprintf( stderr, " y_dst=%d,", req->y_dst );
1387 fprintf( stderr, " w=%d,", req->w );
1388 fprintf( stderr, " h=%d", req->h );
1391 static void dump_send_console_signal_request( const struct send_console_signal_request *req )
1393 fprintf( stderr, " signal=%d,", req->signal );
1394 fprintf( stderr, " group_id=%04x", req->group_id );
1397 static void dump_create_change_notification_request( const struct create_change_notification_request *req )
1399 fprintf( stderr, " handle=%p,", req->handle );
1400 fprintf( stderr, " subtree=%d,", req->subtree );
1401 fprintf( stderr, " filter=%08x", req->filter );
1404 static void dump_create_change_notification_reply( const struct create_change_notification_reply *req )
1406 fprintf( stderr, " handle=%p", req->handle );
1409 static void dump_next_change_notification_request( const struct next_change_notification_request *req )
1411 fprintf( stderr, " handle=%p", req->handle );
1414 static void dump_create_mapping_request( const struct create_mapping_request *req )
1416 fprintf( stderr, " size_high=%d,", req->size_high );
1417 fprintf( stderr, " size_low=%d,", req->size_low );
1418 fprintf( stderr, " protect=%d,", req->protect );
1419 fprintf( stderr, " access=%08x,", req->access );
1420 fprintf( stderr, " inherit=%d,", req->inherit );
1421 fprintf( stderr, " file_handle=%p,", req->file_handle );
1422 fprintf( stderr, " name=" );
1423 dump_varargs_unicode_str( cur_size );
1426 static void dump_create_mapping_reply( const struct create_mapping_reply *req )
1428 fprintf( stderr, " handle=%p", req->handle );
1431 static void dump_open_mapping_request( const struct open_mapping_request *req )
1433 fprintf( stderr, " access=%08x,", req->access );
1434 fprintf( stderr, " inherit=%d,", req->inherit );
1435 fprintf( stderr, " name=" );
1436 dump_varargs_unicode_str( cur_size );
1439 static void dump_open_mapping_reply( const struct open_mapping_reply *req )
1441 fprintf( stderr, " handle=%p", req->handle );
1444 static void dump_get_mapping_info_request( const struct get_mapping_info_request *req )
1446 fprintf( stderr, " handle=%p", req->handle );
1449 static void dump_get_mapping_info_reply( const struct get_mapping_info_reply *req )
1451 fprintf( stderr, " size_high=%d,", req->size_high );
1452 fprintf( stderr, " size_low=%d,", req->size_low );
1453 fprintf( stderr, " protect=%d,", req->protect );
1454 fprintf( stderr, " header_size=%d,", req->header_size );
1455 fprintf( stderr, " base=%p,", req->base );
1456 fprintf( stderr, " shared_file=%p,", req->shared_file );
1457 fprintf( stderr, " shared_size=%d", req->shared_size );
1460 static void dump_create_snapshot_request( const struct create_snapshot_request *req )
1462 fprintf( stderr, " inherit=%d,", req->inherit );
1463 fprintf( stderr, " flags=%d,", req->flags );
1464 fprintf( stderr, " pid=%04x", req->pid );
1467 static void dump_create_snapshot_reply( const struct create_snapshot_reply *req )
1469 fprintf( stderr, " handle=%p", req->handle );
1472 static void dump_next_process_request( const struct next_process_request *req )
1474 fprintf( stderr, " handle=%p,", req->handle );
1475 fprintf( stderr, " reset=%d", req->reset );
1478 static void dump_next_process_reply( const struct next_process_reply *req )
1480 fprintf( stderr, " count=%d,", req->count );
1481 fprintf( stderr, " pid=%04x,", req->pid );
1482 fprintf( stderr, " ppid=%04x,", req->ppid );
1483 fprintf( stderr, " heap=%p,", req->heap );
1484 fprintf( stderr, " module=%p,", req->module );
1485 fprintf( stderr, " threads=%d,", req->threads );
1486 fprintf( stderr, " priority=%d,", req->priority );
1487 fprintf( stderr, " handles=%d,", req->handles );
1488 fprintf( stderr, " filename=" );
1489 dump_varargs_unicode_str( cur_size );
1492 static void dump_next_thread_request( const struct next_thread_request *req )
1494 fprintf( stderr, " handle=%p,", req->handle );
1495 fprintf( stderr, " reset=%d", req->reset );
1498 static void dump_next_thread_reply( const struct next_thread_reply *req )
1500 fprintf( stderr, " count=%d,", req->count );
1501 fprintf( stderr, " pid=%04x,", req->pid );
1502 fprintf( stderr, " tid=%04x,", req->tid );
1503 fprintf( stderr, " base_pri=%d,", req->base_pri );
1504 fprintf( stderr, " delta_pri=%d", req->delta_pri );
1507 static void dump_next_module_request( const struct next_module_request *req )
1509 fprintf( stderr, " handle=%p,", req->handle );
1510 fprintf( stderr, " reset=%d", req->reset );
1513 static void dump_next_module_reply( const struct next_module_reply *req )
1515 fprintf( stderr, " pid=%04x,", req->pid );
1516 fprintf( stderr, " base=%p,", req->base );
1517 fprintf( stderr, " size=%d,", req->size );
1518 fprintf( stderr, " filename=" );
1519 dump_varargs_unicode_str( cur_size );
1522 static void dump_wait_debug_event_request( const struct wait_debug_event_request *req )
1524 fprintf( stderr, " get_handle=%d", req->get_handle );
1527 static void dump_wait_debug_event_reply( const struct wait_debug_event_reply *req )
1529 fprintf( stderr, " pid=%04x,", req->pid );
1530 fprintf( stderr, " tid=%04x,", req->tid );
1531 fprintf( stderr, " wait=%p,", req->wait );
1532 fprintf( stderr, " event=" );
1533 dump_varargs_debug_event( cur_size );
1536 static void dump_queue_exception_event_request( const struct queue_exception_event_request *req )
1538 fprintf( stderr, " first=%d,", req->first );
1539 fprintf( stderr, " record=" );
1540 dump_varargs_exc_event( cur_size );
1543 static void dump_queue_exception_event_reply( const struct queue_exception_event_reply *req )
1545 fprintf( stderr, " handle=%p", req->handle );
1548 static void dump_get_exception_status_request( const struct get_exception_status_request *req )
1550 fprintf( stderr, " handle=%p", req->handle );
1553 static void dump_get_exception_status_reply( const struct get_exception_status_reply *req )
1555 fprintf( stderr, " status=%d,", req->status );
1556 fprintf( stderr, " context=" );
1557 dump_varargs_context( cur_size );
1560 static void dump_output_debug_string_request( const struct output_debug_string_request *req )
1562 fprintf( stderr, " string=%p,", req->string );
1563 fprintf( stderr, " unicode=%d,", req->unicode );
1564 fprintf( stderr, " length=%d", req->length );
1567 static void dump_continue_debug_event_request( const struct continue_debug_event_request *req )
1569 fprintf( stderr, " pid=%04x,", req->pid );
1570 fprintf( stderr, " tid=%04x,", req->tid );
1571 fprintf( stderr, " status=%d", req->status );
1574 static void dump_debug_process_request( const struct debug_process_request *req )
1576 fprintf( stderr, " pid=%04x,", req->pid );
1577 fprintf( stderr, " attach=%d", req->attach );
1580 static void dump_debug_break_request( const struct debug_break_request *req )
1582 fprintf( stderr, " handle=%p", req->handle );
1585 static void dump_debug_break_reply( const struct debug_break_reply *req )
1587 fprintf( stderr, " self=%d", req->self );
1590 static void dump_set_debugger_kill_on_exit_request( const struct set_debugger_kill_on_exit_request *req )
1592 fprintf( stderr, " kill_on_exit=%d", req->kill_on_exit );
1595 static void dump_read_process_memory_request( const struct read_process_memory_request *req )
1597 fprintf( stderr, " handle=%p,", req->handle );
1598 fprintf( stderr, " addr=%p", req->addr );
1601 static void dump_read_process_memory_reply( const struct read_process_memory_reply *req )
1603 fprintf( stderr, " data=" );
1604 dump_varargs_bytes( cur_size );
1607 static void dump_write_process_memory_request( const struct write_process_memory_request *req )
1609 fprintf( stderr, " handle=%p,", req->handle );
1610 fprintf( stderr, " addr=%p,", req->addr );
1611 fprintf( stderr, " first_mask=%08x,", req->first_mask );
1612 fprintf( stderr, " last_mask=%08x,", req->last_mask );
1613 fprintf( stderr, " data=" );
1614 dump_varargs_bytes( cur_size );
1617 static void dump_create_key_request( const struct create_key_request *req )
1619 fprintf( stderr, " parent=%p,", req->parent );
1620 fprintf( stderr, " access=%08x,", req->access );
1621 fprintf( stderr, " options=%08x,", req->options );
1622 fprintf( stderr, " modif=%ld,", (long)req->modif );
1623 fprintf( stderr, " namelen=%d,", req->namelen );
1624 fprintf( stderr, " name=" );
1625 dump_varargs_unicode_str( min(cur_size,req->namelen) );
1626 fputc( ',', stderr );
1627 fprintf( stderr, " class=" );
1628 dump_varargs_unicode_str( cur_size );
1631 static void dump_create_key_reply( const struct create_key_reply *req )
1633 fprintf( stderr, " hkey=%p,", req->hkey );
1634 fprintf( stderr, " created=%d", req->created );
1637 static void dump_open_key_request( const struct open_key_request *req )
1639 fprintf( stderr, " parent=%p,", req->parent );
1640 fprintf( stderr, " access=%08x,", req->access );
1641 fprintf( stderr, " name=" );
1642 dump_varargs_unicode_str( cur_size );
1645 static void dump_open_key_reply( const struct open_key_reply *req )
1647 fprintf( stderr, " hkey=%p", req->hkey );
1650 static void dump_delete_key_request( const struct delete_key_request *req )
1652 fprintf( stderr, " hkey=%p", req->hkey );
1655 static void dump_flush_key_request( const struct flush_key_request *req )
1657 fprintf( stderr, " hkey=%p", req->hkey );
1660 static void dump_enum_key_request( const struct enum_key_request *req )
1662 fprintf( stderr, " hkey=%p,", req->hkey );
1663 fprintf( stderr, " index=%d,", req->index );
1664 fprintf( stderr, " info_class=%d", req->info_class );
1667 static void dump_enum_key_reply( const struct enum_key_reply *req )
1669 fprintf( stderr, " subkeys=%d,", req->subkeys );
1670 fprintf( stderr, " max_subkey=%d,", req->max_subkey );
1671 fprintf( stderr, " max_class=%d,", req->max_class );
1672 fprintf( stderr, " values=%d,", req->values );
1673 fprintf( stderr, " max_value=%d,", req->max_value );
1674 fprintf( stderr, " max_data=%d,", req->max_data );
1675 fprintf( stderr, " modif=%ld,", (long)req->modif );
1676 fprintf( stderr, " total=%d,", req->total );
1677 fprintf( stderr, " namelen=%d,", req->namelen );
1678 fprintf( stderr, " name=" );
1679 dump_varargs_unicode_str( min(cur_size,req->namelen) );
1680 fputc( ',', stderr );
1681 fprintf( stderr, " class=" );
1682 dump_varargs_unicode_str( cur_size );
1685 static void dump_set_key_value_request( const struct set_key_value_request *req )
1687 fprintf( stderr, " hkey=%p,", req->hkey );
1688 fprintf( stderr, " type=%d,", req->type );
1689 fprintf( stderr, " namelen=%d,", req->namelen );
1690 fprintf( stderr, " name=" );
1691 dump_varargs_unicode_str( min(cur_size,req->namelen) );
1692 fputc( ',', stderr );
1693 fprintf( stderr, " data=" );
1694 dump_varargs_bytes( cur_size );
1697 static void dump_get_key_value_request( const struct get_key_value_request *req )
1699 fprintf( stderr, " hkey=%p,", req->hkey );
1700 fprintf( stderr, " name=" );
1701 dump_varargs_unicode_str( cur_size );
1704 static void dump_get_key_value_reply( const struct get_key_value_reply *req )
1706 fprintf( stderr, " type=%d,", req->type );
1707 fprintf( stderr, " total=%d,", req->total );
1708 fprintf( stderr, " data=" );
1709 dump_varargs_bytes( cur_size );
1712 static void dump_enum_key_value_request( const struct enum_key_value_request *req )
1714 fprintf( stderr, " hkey=%p,", req->hkey );
1715 fprintf( stderr, " index=%d,", req->index );
1716 fprintf( stderr, " info_class=%d", req->info_class );
1719 static void dump_enum_key_value_reply( const struct enum_key_value_reply *req )
1721 fprintf( stderr, " type=%d,", req->type );
1722 fprintf( stderr, " total=%d,", req->total );
1723 fprintf( stderr, " namelen=%d,", req->namelen );
1724 fprintf( stderr, " name=" );
1725 dump_varargs_unicode_str( min(cur_size,req->namelen) );
1726 fputc( ',', stderr );
1727 fprintf( stderr, " data=" );
1728 dump_varargs_bytes( cur_size );
1731 static void dump_delete_key_value_request( const struct delete_key_value_request *req )
1733 fprintf( stderr, " hkey=%p,", req->hkey );
1734 fprintf( stderr, " name=" );
1735 dump_varargs_unicode_str( cur_size );
1738 static void dump_load_registry_request( const struct load_registry_request *req )
1740 fprintf( stderr, " hkey=%p,", req->hkey );
1741 fprintf( stderr, " file=%p,", req->file );
1742 fprintf( stderr, " name=" );
1743 dump_varargs_unicode_str( cur_size );
1746 static void dump_unload_registry_request( const struct unload_registry_request *req )
1748 fprintf( stderr, " hkey=%p", req->hkey );
1751 static void dump_save_registry_request( const struct save_registry_request *req )
1753 fprintf( stderr, " hkey=%p,", req->hkey );
1754 fprintf( stderr, " file=%p", req->file );
1757 static void dump_load_user_registries_request( const struct load_user_registries_request *req )
1759 fprintf( stderr, " hkey=%p,", req->hkey );
1760 fprintf( stderr, " saving=%d,", req->saving );
1761 fprintf( stderr, " period=%d", req->period );
1764 static void dump_set_registry_notification_request( const struct set_registry_notification_request *req )
1766 fprintf( stderr, " hkey=%p,", req->hkey );
1767 fprintf( stderr, " event=%p,", req->event );
1768 fprintf( stderr, " subtree=%d,", req->subtree );
1769 fprintf( stderr, " filter=%08x", req->filter );
1772 static void dump_create_timer_request( const struct create_timer_request *req )
1774 fprintf( stderr, " access=%08x,", req->access );
1775 fprintf( stderr, " inherit=%d,", req->inherit );
1776 fprintf( stderr, " manual=%d,", req->manual );
1777 fprintf( stderr, " name=" );
1778 dump_varargs_unicode_str( cur_size );
1781 static void dump_create_timer_reply( const struct create_timer_reply *req )
1783 fprintf( stderr, " handle=%p", req->handle );
1786 static void dump_open_timer_request( const struct open_timer_request *req )
1788 fprintf( stderr, " access=%08x,", req->access );
1789 fprintf( stderr, " inherit=%d,", req->inherit );
1790 fprintf( stderr, " name=" );
1791 dump_varargs_unicode_str( cur_size );
1794 static void dump_open_timer_reply( const struct open_timer_reply *req )
1796 fprintf( stderr, " handle=%p", req->handle );
1799 static void dump_set_timer_request( const struct set_timer_request *req )
1801 fprintf( stderr, " handle=%p,", req->handle );
1802 fprintf( stderr, " expire=" );
1803 dump_abs_time( &req->expire );
1804 fprintf( stderr, "," );
1805 fprintf( stderr, " period=%d,", req->period );
1806 fprintf( stderr, " callback=%p,", req->callback );
1807 fprintf( stderr, " arg=%p", req->arg );
1810 static void dump_set_timer_reply( const struct set_timer_reply *req )
1812 fprintf( stderr, " signaled=%d", req->signaled );
1815 static void dump_cancel_timer_request( const struct cancel_timer_request *req )
1817 fprintf( stderr, " handle=%p", req->handle );
1820 static void dump_cancel_timer_reply( const struct cancel_timer_reply *req )
1822 fprintf( stderr, " signaled=%d", req->signaled );
1825 static void dump_get_timer_info_request( const struct get_timer_info_request *req )
1827 fprintf( stderr, " handle=%p", req->handle );
1830 static void dump_get_timer_info_reply( const struct get_timer_info_reply *req )
1832 fprintf( stderr, " when=" );
1833 dump_abs_time( &req->when );
1834 fprintf( stderr, "," );
1835 fprintf( stderr, " signaled=%d", req->signaled );
1838 static void dump_get_thread_context_request( const struct get_thread_context_request *req )
1840 fprintf( stderr, " handle=%p,", req->handle );
1841 fprintf( stderr, " flags=%08x", req->flags );
1844 static void dump_get_thread_context_reply( const struct get_thread_context_reply *req )
1846 fprintf( stderr, " context=" );
1847 dump_varargs_context( cur_size );
1850 static void dump_set_thread_context_request( const struct set_thread_context_request *req )
1852 fprintf( stderr, " handle=%p,", req->handle );
1853 fprintf( stderr, " flags=%08x,", req->flags );
1854 fprintf( stderr, " context=" );
1855 dump_varargs_context( cur_size );
1858 static void dump_get_selector_entry_request( const struct get_selector_entry_request *req )
1860 fprintf( stderr, " handle=%p,", req->handle );
1861 fprintf( stderr, " entry=%d", req->entry );
1864 static void dump_get_selector_entry_reply( const struct get_selector_entry_reply *req )
1866 fprintf( stderr, " base=%08x,", req->base );
1867 fprintf( stderr, " limit=%08x,", req->limit );
1868 fprintf( stderr, " flags=%02x", req->flags );
1871 static void dump_add_atom_request( const struct add_atom_request *req )
1873 fprintf( stderr, " table=%p,", req->table );
1874 fprintf( stderr, " name=" );
1875 dump_varargs_unicode_str( cur_size );
1878 static void dump_add_atom_reply( const struct add_atom_reply *req )
1880 fprintf( stderr, " atom=%04x", req->atom );
1883 static void dump_delete_atom_request( const struct delete_atom_request *req )
1885 fprintf( stderr, " table=%p,", req->table );
1886 fprintf( stderr, " atom=%04x", req->atom );
1889 static void dump_find_atom_request( const struct find_atom_request *req )
1891 fprintf( stderr, " table=%p,", req->table );
1892 fprintf( stderr, " name=" );
1893 dump_varargs_unicode_str( cur_size );
1896 static void dump_find_atom_reply( const struct find_atom_reply *req )
1898 fprintf( stderr, " atom=%04x", req->atom );
1901 static void dump_get_atom_information_request( const struct get_atom_information_request *req )
1903 fprintf( stderr, " table=%p,", req->table );
1904 fprintf( stderr, " atom=%04x", req->atom );
1907 static void dump_get_atom_information_reply( const struct get_atom_information_reply *req )
1909 fprintf( stderr, " count=%d,", req->count );
1910 fprintf( stderr, " pinned=%d,", req->pinned );
1911 fprintf( stderr, " name=" );
1912 dump_varargs_unicode_str( cur_size );
1915 static void dump_set_atom_information_request( const struct set_atom_information_request *req )
1917 fprintf( stderr, " table=%p,", req->table );
1918 fprintf( stderr, " atom=%04x,", req->atom );
1919 fprintf( stderr, " pinned=%d", req->pinned );
1922 static void dump_empty_atom_table_request( const struct empty_atom_table_request *req )
1924 fprintf( stderr, " table=%p,", req->table );
1925 fprintf( stderr, " if_pinned=%d", req->if_pinned );
1928 static void dump_init_atom_table_request( const struct init_atom_table_request *req )
1930 fprintf( stderr, " entries=%d", req->entries );
1933 static void dump_init_atom_table_reply( const struct init_atom_table_reply *req )
1935 fprintf( stderr, " table=%p", req->table );
1938 static void dump_get_msg_queue_request( const struct get_msg_queue_request *req )
1942 static void dump_get_msg_queue_reply( const struct get_msg_queue_reply *req )
1944 fprintf( stderr, " handle=%p", req->handle );
1947 static void dump_set_queue_mask_request( const struct set_queue_mask_request *req )
1949 fprintf( stderr, " wake_mask=%08x,", req->wake_mask );
1950 fprintf( stderr, " changed_mask=%08x,", req->changed_mask );
1951 fprintf( stderr, " skip_wait=%d", req->skip_wait );
1954 static void dump_set_queue_mask_reply( const struct set_queue_mask_reply *req )
1956 fprintf( stderr, " wake_bits=%08x,", req->wake_bits );
1957 fprintf( stderr, " changed_bits=%08x", req->changed_bits );
1960 static void dump_get_queue_status_request( const struct get_queue_status_request *req )
1962 fprintf( stderr, " clear=%d", req->clear );
1965 static void dump_get_queue_status_reply( const struct get_queue_status_reply *req )
1967 fprintf( stderr, " wake_bits=%08x,", req->wake_bits );
1968 fprintf( stderr, " changed_bits=%08x", req->changed_bits );
1971 static void dump_wait_input_idle_request( const struct wait_input_idle_request *req )
1973 fprintf( stderr, " handle=%p,", req->handle );
1974 fprintf( stderr, " timeout=%d", req->timeout );
1977 static void dump_wait_input_idle_reply( const struct wait_input_idle_reply *req )
1979 fprintf( stderr, " event=%p", req->event );
1982 static void dump_send_message_request( const struct send_message_request *req )
1984 fprintf( stderr, " id=%04x,", req->id );
1985 fprintf( stderr, " type=%d,", req->type );
1986 fprintf( stderr, " flags=%d,", req->flags );
1987 fprintf( stderr, " win=%p,", req->win );
1988 fprintf( stderr, " msg=%08x,", req->msg );
1989 fprintf( stderr, " wparam=%08x,", req->wparam );
1990 fprintf( stderr, " lparam=%08x,", req->lparam );
1991 fprintf( stderr, " x=%d,", req->x );
1992 fprintf( stderr, " y=%d,", req->y );
1993 fprintf( stderr, " time=%08x,", req->time );
1994 fprintf( stderr, " info=%08x,", req->info );
1995 fprintf( stderr, " timeout=%d,", req->timeout );
1996 fprintf( stderr, " callback=%p,", req->callback );
1997 fprintf( stderr, " data=" );
1998 dump_varargs_bytes( cur_size );
2001 static void dump_get_message_request( const struct get_message_request *req )
2003 fprintf( stderr, " flags=%d,", req->flags );
2004 fprintf( stderr, " get_win=%p,", req->get_win );
2005 fprintf( stderr, " get_first=%08x,", req->get_first );
2006 fprintf( stderr, " get_last=%08x,", req->get_last );
2007 fprintf( stderr, " hw_id=%08x", req->hw_id );
2010 static void dump_get_message_reply( const struct get_message_reply *req )
2012 fprintf( stderr, " type=%d,", req->type );
2013 fprintf( stderr, " win=%p,", req->win );
2014 fprintf( stderr, " msg=%08x,", req->msg );
2015 fprintf( stderr, " wparam=%08x,", req->wparam );
2016 fprintf( stderr, " lparam=%08x,", req->lparam );
2017 fprintf( stderr, " x=%d,", req->x );
2018 fprintf( stderr, " y=%d,", req->y );
2019 fprintf( stderr, " hook=%p,", req->hook );
2020 fprintf( stderr, " hook_proc=%p,", req->hook_proc );
2021 fprintf( stderr, " time=%08x,", req->time );
2022 fprintf( stderr, " info=%08x,", req->info );
2023 fprintf( stderr, " hw_id=%08x,", req->hw_id );
2024 fprintf( stderr, " active_hooks=%08x,", req->active_hooks );
2025 fprintf( stderr, " total=%d,", req->total );
2026 fprintf( stderr, " data=" );
2027 dump_varargs_bytes( cur_size );
2030 static void dump_reply_message_request( const struct reply_message_request *req )
2032 fprintf( stderr, " result=%08x,", req->result );
2033 fprintf( stderr, " remove=%d,", req->remove );
2034 fprintf( stderr, " data=" );
2035 dump_varargs_bytes( cur_size );
2038 static void dump_accept_hardware_message_request( const struct accept_hardware_message_request *req )
2040 fprintf( stderr, " hw_id=%08x,", req->hw_id );
2041 fprintf( stderr, " remove=%d,", req->remove );
2042 fprintf( stderr, " new_win=%p", req->new_win );
2045 static void dump_get_message_reply_request( const struct get_message_reply_request *req )
2047 fprintf( stderr, " cancel=%d", req->cancel );
2050 static void dump_get_message_reply_reply( const struct get_message_reply_reply *req )
2052 fprintf( stderr, " result=%08x,", req->result );
2053 fprintf( stderr, " data=" );
2054 dump_varargs_bytes( cur_size );
2057 static void dump_set_win_timer_request( const struct set_win_timer_request *req )
2059 fprintf( stderr, " win=%p,", req->win );
2060 fprintf( stderr, " msg=%08x,", req->msg );
2061 fprintf( stderr, " id=%08x,", req->id );
2062 fprintf( stderr, " rate=%08x,", req->rate );
2063 fprintf( stderr, " lparam=%08x", req->lparam );
2066 static void dump_set_win_timer_reply( const struct set_win_timer_reply *req )
2068 fprintf( stderr, " id=%08x", req->id );
2071 static void dump_kill_win_timer_request( const struct kill_win_timer_request *req )
2073 fprintf( stderr, " win=%p,", req->win );
2074 fprintf( stderr, " msg=%08x,", req->msg );
2075 fprintf( stderr, " id=%08x", req->id );
2078 static void dump_get_serial_info_request( const struct get_serial_info_request *req )
2080 fprintf( stderr, " handle=%p", req->handle );
2083 static void dump_get_serial_info_reply( const struct get_serial_info_reply *req )
2085 fprintf( stderr, " readinterval=%08x,", req->readinterval );
2086 fprintf( stderr, " readconst=%08x,", req->readconst );
2087 fprintf( stderr, " readmult=%08x,", req->readmult );
2088 fprintf( stderr, " writeconst=%08x,", req->writeconst );
2089 fprintf( stderr, " writemult=%08x,", req->writemult );
2090 fprintf( stderr, " eventmask=%08x,", req->eventmask );
2091 fprintf( stderr, " commerror=%08x", req->commerror );
2094 static void dump_set_serial_info_request( const struct set_serial_info_request *req )
2096 fprintf( stderr, " handle=%p,", req->handle );
2097 fprintf( stderr, " flags=%d,", req->flags );
2098 fprintf( stderr, " readinterval=%08x,", req->readinterval );
2099 fprintf( stderr, " readconst=%08x,", req->readconst );
2100 fprintf( stderr, " readmult=%08x,", req->readmult );
2101 fprintf( stderr, " writeconst=%08x,", req->writeconst );
2102 fprintf( stderr, " writemult=%08x,", req->writemult );
2103 fprintf( stderr, " eventmask=%08x,", req->eventmask );
2104 fprintf( stderr, " commerror=%08x", req->commerror );
2107 static void dump_register_async_request( const struct register_async_request *req )
2109 fprintf( stderr, " handle=%p,", req->handle );
2110 fprintf( stderr, " type=%d,", req->type );
2111 fprintf( stderr, " io_apc=%p,", req->io_apc );
2112 fprintf( stderr, " io_sb=%p,", req->io_sb );
2113 fprintf( stderr, " io_user=%p,", req->io_user );
2114 fprintf( stderr, " count=%d", req->count );
2117 static void dump_cancel_async_request( const struct cancel_async_request *req )
2119 fprintf( stderr, " handle=%p", req->handle );
2122 static void dump_create_named_pipe_request( const struct create_named_pipe_request *req )
2124 fprintf( stderr, " options=%08x,", req->options );
2125 fprintf( stderr, " flags=%08x,", req->flags );
2126 fprintf( stderr, " maxinstances=%08x,", req->maxinstances );
2127 fprintf( stderr, " outsize=%08x,", req->outsize );
2128 fprintf( stderr, " insize=%08x,", req->insize );
2129 fprintf( stderr, " timeout=%08x,", req->timeout );
2130 fprintf( stderr, " inherit=%d,", req->inherit );
2131 fprintf( stderr, " name=" );
2132 dump_varargs_unicode_str( cur_size );
2135 static void dump_create_named_pipe_reply( const struct create_named_pipe_reply *req )
2137 fprintf( stderr, " handle=%p", req->handle );
2140 static void dump_open_named_pipe_request( const struct open_named_pipe_request *req )
2142 fprintf( stderr, " access=%08x,", req->access );
2143 fprintf( stderr, " inherit=%d,", req->inherit );
2144 fprintf( stderr, " name=" );
2145 dump_varargs_unicode_str( cur_size );
2148 static void dump_open_named_pipe_reply( const struct open_named_pipe_reply *req )
2150 fprintf( stderr, " handle=%p", req->handle );
2153 static void dump_connect_named_pipe_request( const struct connect_named_pipe_request *req )
2155 fprintf( stderr, " handle=%p,", req->handle );
2156 fprintf( stderr, " overlapped=%p,", req->overlapped );
2157 fprintf( stderr, " func=%p", req->func );
2160 static void dump_wait_named_pipe_request( const struct wait_named_pipe_request *req )
2162 fprintf( stderr, " timeout=%08x,", req->timeout );
2163 fprintf( stderr, " overlapped=%p,", req->overlapped );
2164 fprintf( stderr, " func=%p,", req->func );
2165 fprintf( stderr, " name=" );
2166 dump_varargs_unicode_str( cur_size );
2169 static void dump_disconnect_named_pipe_request( const struct disconnect_named_pipe_request *req )
2171 fprintf( stderr, " handle=%p", req->handle );
2174 static void dump_disconnect_named_pipe_reply( const struct disconnect_named_pipe_reply *req )
2176 fprintf( stderr, " fd=%d", req->fd );
2179 static void dump_get_named_pipe_info_request( const struct get_named_pipe_info_request *req )
2181 fprintf( stderr, " handle=%p", req->handle );
2184 static void dump_get_named_pipe_info_reply( const struct get_named_pipe_info_reply *req )
2186 fprintf( stderr, " flags=%08x,", req->flags );
2187 fprintf( stderr, " maxinstances=%08x,", req->maxinstances );
2188 fprintf( stderr, " outsize=%08x,", req->outsize );
2189 fprintf( stderr, " insize=%08x", req->insize );
2192 static void dump_create_window_request( const struct create_window_request *req )
2194 fprintf( stderr, " parent=%p,", req->parent );
2195 fprintf( stderr, " owner=%p,", req->owner );
2196 fprintf( stderr, " atom=%04x,", req->atom );
2197 fprintf( stderr, " instance=%p", req->instance );
2200 static void dump_create_window_reply( const struct create_window_reply *req )
2202 fprintf( stderr, " handle=%p,", req->handle );
2203 fprintf( stderr, " extra=%d,", req->extra );
2204 fprintf( stderr, " class_ptr=%p", req->class_ptr );
2207 static void dump_destroy_window_request( const struct destroy_window_request *req )
2209 fprintf( stderr, " handle=%p", req->handle );
2212 static void dump_set_window_owner_request( const struct set_window_owner_request *req )
2214 fprintf( stderr, " handle=%p,", req->handle );
2215 fprintf( stderr, " owner=%p", req->owner );
2218 static void dump_set_window_owner_reply( const struct set_window_owner_reply *req )
2220 fprintf( stderr, " full_owner=%p,", req->full_owner );
2221 fprintf( stderr, " prev_owner=%p", req->prev_owner );
2224 static void dump_get_window_info_request( const struct get_window_info_request *req )
2226 fprintf( stderr, " handle=%p", req->handle );
2229 static void dump_get_window_info_reply( const struct get_window_info_reply *req )
2231 fprintf( stderr, " full_handle=%p,", req->full_handle );
2232 fprintf( stderr, " last_active=%p,", req->last_active );
2233 fprintf( stderr, " pid=%04x,", req->pid );
2234 fprintf( stderr, " tid=%04x,", req->tid );
2235 fprintf( stderr, " atom=%04x", req->atom );
2238 static void dump_set_window_info_request( const struct set_window_info_request *req )
2240 fprintf( stderr, " handle=%p,", req->handle );
2241 fprintf( stderr, " flags=%08x,", req->flags );
2242 fprintf( stderr, " style=%08x,", req->style );
2243 fprintf( stderr, " ex_style=%08x,", req->ex_style );
2244 fprintf( stderr, " id=%08x,", req->id );
2245 fprintf( stderr, " instance=%p,", req->instance );
2246 fprintf( stderr, " user_data=%p,", req->user_data );
2247 fprintf( stderr, " extra_offset=%d,", req->extra_offset );
2248 fprintf( stderr, " extra_size=%d,", req->extra_size );
2249 fprintf( stderr, " extra_value=%08x", req->extra_value );
2252 static void dump_set_window_info_reply( const struct set_window_info_reply *req )
2254 fprintf( stderr, " old_style=%08x,", req->old_style );
2255 fprintf( stderr, " old_ex_style=%08x,", req->old_ex_style );
2256 fprintf( stderr, " old_id=%08x,", req->old_id );
2257 fprintf( stderr, " old_instance=%p,", req->old_instance );
2258 fprintf( stderr, " old_user_data=%p,", req->old_user_data );
2259 fprintf( stderr, " old_extra_value=%08x", req->old_extra_value );
2262 static void dump_set_parent_request( const struct set_parent_request *req )
2264 fprintf( stderr, " handle=%p,", req->handle );
2265 fprintf( stderr, " parent=%p", req->parent );
2268 static void dump_set_parent_reply( const struct set_parent_reply *req )
2270 fprintf( stderr, " old_parent=%p,", req->old_parent );
2271 fprintf( stderr, " full_parent=%p", req->full_parent );
2274 static void dump_get_window_parents_request( const struct get_window_parents_request *req )
2276 fprintf( stderr, " handle=%p", req->handle );
2279 static void dump_get_window_parents_reply( const struct get_window_parents_reply *req )
2281 fprintf( stderr, " count=%d,", req->count );
2282 fprintf( stderr, " parents=" );
2283 dump_varargs_user_handles( cur_size );
2286 static void dump_get_window_children_request( const struct get_window_children_request *req )
2288 fprintf( stderr, " parent=%p,", req->parent );
2289 fprintf( stderr, " atom=%04x,", req->atom );
2290 fprintf( stderr, " tid=%04x", req->tid );
2293 static void dump_get_window_children_reply( const struct get_window_children_reply *req )
2295 fprintf( stderr, " count=%d,", req->count );
2296 fprintf( stderr, " children=" );
2297 dump_varargs_user_handles( cur_size );
2300 static void dump_get_window_children_from_point_request( const struct get_window_children_from_point_request *req )
2302 fprintf( stderr, " parent=%p,", req->parent );
2303 fprintf( stderr, " x=%d,", req->x );
2304 fprintf( stderr, " y=%d", req->y );
2307 static void dump_get_window_children_from_point_reply( const struct get_window_children_from_point_reply *req )
2309 fprintf( stderr, " count=%d,", req->count );
2310 fprintf( stderr, " children=" );
2311 dump_varargs_user_handles( cur_size );
2314 static void dump_get_window_tree_request( const struct get_window_tree_request *req )
2316 fprintf( stderr, " handle=%p", req->handle );
2319 static void dump_get_window_tree_reply( const struct get_window_tree_reply *req )
2321 fprintf( stderr, " parent=%p,", req->parent );
2322 fprintf( stderr, " owner=%p,", req->owner );
2323 fprintf( stderr, " next_sibling=%p,", req->next_sibling );
2324 fprintf( stderr, " prev_sibling=%p,", req->prev_sibling );
2325 fprintf( stderr, " first_sibling=%p,", req->first_sibling );
2326 fprintf( stderr, " last_sibling=%p,", req->last_sibling );
2327 fprintf( stderr, " first_child=%p,", req->first_child );
2328 fprintf( stderr, " last_child=%p", req->last_child );
2331 static void dump_set_window_pos_request( const struct set_window_pos_request *req )
2333 fprintf( stderr, " handle=%p,", req->handle );
2334 fprintf( stderr, " previous=%p,", req->previous );
2335 fprintf( stderr, " flags=%08x,", req->flags );
2336 fprintf( stderr, " window=" );
2337 dump_rectangle( &req->window );
2338 fprintf( stderr, "," );
2339 fprintf( stderr, " client=" );
2340 dump_rectangle( &req->client );
2341 fprintf( stderr, "," );
2342 fprintf( stderr, " valid=" );
2343 dump_varargs_rectangles( cur_size );
2346 static void dump_set_window_pos_reply( const struct set_window_pos_reply *req )
2348 fprintf( stderr, " new_style=%08x", req->new_style );
2351 static void dump_get_window_rectangles_request( const struct get_window_rectangles_request *req )
2353 fprintf( stderr, " handle=%p", req->handle );
2356 static void dump_get_window_rectangles_reply( const struct get_window_rectangles_reply *req )
2358 fprintf( stderr, " window=" );
2359 dump_rectangle( &req->window );
2360 fprintf( stderr, "," );
2361 fprintf( stderr, " visible=" );
2362 dump_rectangle( &req->visible );
2363 fprintf( stderr, "," );
2364 fprintf( stderr, " client=" );
2365 dump_rectangle( &req->client );
2368 static void dump_get_window_text_request( const struct get_window_text_request *req )
2370 fprintf( stderr, " handle=%p", req->handle );
2373 static void dump_get_window_text_reply( const struct get_window_text_reply *req )
2375 fprintf( stderr, " text=" );
2376 dump_varargs_unicode_str( cur_size );
2379 static void dump_set_window_text_request( const struct set_window_text_request *req )
2381 fprintf( stderr, " handle=%p,", req->handle );
2382 fprintf( stderr, " text=" );
2383 dump_varargs_unicode_str( cur_size );
2386 static void dump_get_windows_offset_request( const struct get_windows_offset_request *req )
2388 fprintf( stderr, " from=%p,", req->from );
2389 fprintf( stderr, " to=%p", req->to );
2392 static void dump_get_windows_offset_reply( const struct get_windows_offset_reply *req )
2394 fprintf( stderr, " x=%d,", req->x );
2395 fprintf( stderr, " y=%d", req->y );
2398 static void dump_get_visible_region_request( const struct get_visible_region_request *req )
2400 fprintf( stderr, " window=%p,", req->window );
2401 fprintf( stderr, " flags=%08x", req->flags );
2404 static void dump_get_visible_region_reply( const struct get_visible_region_reply *req )
2406 fprintf( stderr, " top_win=%p,", req->top_win );
2407 fprintf( stderr, " top_org_x=%d,", req->top_org_x );
2408 fprintf( stderr, " top_org_y=%d,", req->top_org_y );
2409 fprintf( stderr, " win_org_x=%d,", req->win_org_x );
2410 fprintf( stderr, " win_org_y=%d,", req->win_org_y );
2411 fprintf( stderr, " total_size=%d,", req->total_size );
2412 fprintf( stderr, " region=" );
2413 dump_varargs_rectangles( cur_size );
2416 static void dump_get_window_region_request( const struct get_window_region_request *req )
2418 fprintf( stderr, " window=%p", req->window );
2421 static void dump_get_window_region_reply( const struct get_window_region_reply *req )
2423 fprintf( stderr, " total_size=%d,", req->total_size );
2424 fprintf( stderr, " region=" );
2425 dump_varargs_rectangles( cur_size );
2428 static void dump_set_window_region_request( const struct set_window_region_request *req )
2430 fprintf( stderr, " window=%p,", req->window );
2431 fprintf( stderr, " region=" );
2432 dump_varargs_rectangles( cur_size );
2435 static void dump_get_update_region_request( const struct get_update_region_request *req )
2437 fprintf( stderr, " window=%p,", req->window );
2438 fprintf( stderr, " flags=%08x", req->flags );
2441 static void dump_get_update_region_reply( const struct get_update_region_reply *req )
2443 fprintf( stderr, " child=%p,", req->child );
2444 fprintf( stderr, " flags=%08x,", req->flags );
2445 fprintf( stderr, " total_size=%d,", req->total_size );
2446 fprintf( stderr, " region=" );
2447 dump_varargs_rectangles( cur_size );
2450 static void dump_update_window_zorder_request( const struct update_window_zorder_request *req )
2452 fprintf( stderr, " window=%p,", req->window );
2453 fprintf( stderr, " rect=" );
2454 dump_rectangle( &req->rect );
2457 static void dump_redraw_window_request( const struct redraw_window_request *req )
2459 fprintf( stderr, " window=%p,", req->window );
2460 fprintf( stderr, " flags=%08x,", req->flags );
2461 fprintf( stderr, " region=" );
2462 dump_varargs_rectangles( cur_size );
2465 static void dump_set_window_property_request( const struct set_window_property_request *req )
2467 fprintf( stderr, " window=%p,", req->window );
2468 fprintf( stderr, " atom=%04x,", req->atom );
2469 fprintf( stderr, " handle=%p,", req->handle );
2470 fprintf( stderr, " name=" );
2471 dump_varargs_unicode_str( cur_size );
2474 static void dump_remove_window_property_request( const struct remove_window_property_request *req )
2476 fprintf( stderr, " window=%p,", req->window );
2477 fprintf( stderr, " atom=%04x,", req->atom );
2478 fprintf( stderr, " name=" );
2479 dump_varargs_unicode_str( cur_size );
2482 static void dump_remove_window_property_reply( const struct remove_window_property_reply *req )
2484 fprintf( stderr, " handle=%p", req->handle );
2487 static void dump_get_window_property_request( const struct get_window_property_request *req )
2489 fprintf( stderr, " window=%p,", req->window );
2490 fprintf( stderr, " atom=%04x,", req->atom );
2491 fprintf( stderr, " name=" );
2492 dump_varargs_unicode_str( cur_size );
2495 static void dump_get_window_property_reply( const struct get_window_property_reply *req )
2497 fprintf( stderr, " handle=%p", req->handle );
2500 static void dump_get_window_properties_request( const struct get_window_properties_request *req )
2502 fprintf( stderr, " window=%p", req->window );
2505 static void dump_get_window_properties_reply( const struct get_window_properties_reply *req )
2507 fprintf( stderr, " total=%d,", req->total );
2508 fprintf( stderr, " props=" );
2509 dump_varargs_properties( cur_size );
2512 static void dump_attach_thread_input_request( const struct attach_thread_input_request *req )
2514 fprintf( stderr, " tid_from=%04x,", req->tid_from );
2515 fprintf( stderr, " tid_to=%04x,", req->tid_to );
2516 fprintf( stderr, " attach=%d", req->attach );
2519 static void dump_get_thread_input_request( const struct get_thread_input_request *req )
2521 fprintf( stderr, " tid=%04x", req->tid );
2524 static void dump_get_thread_input_reply( const struct get_thread_input_reply *req )
2526 fprintf( stderr, " focus=%p,", req->focus );
2527 fprintf( stderr, " capture=%p,", req->capture );
2528 fprintf( stderr, " active=%p,", req->active );
2529 fprintf( stderr, " foreground=%p,", req->foreground );
2530 fprintf( stderr, " menu_owner=%p,", req->menu_owner );
2531 fprintf( stderr, " move_size=%p,", req->move_size );
2532 fprintf( stderr, " caret=%p,", req->caret );
2533 fprintf( stderr, " rect=" );
2534 dump_rectangle( &req->rect );
2537 static void dump_get_last_input_time_request( const struct get_last_input_time_request *req )
2541 static void dump_get_last_input_time_reply( const struct get_last_input_time_reply *req )
2543 fprintf( stderr, " time=%08x", req->time );
2546 static void dump_get_key_state_request( const struct get_key_state_request *req )
2548 fprintf( stderr, " tid=%04x,", req->tid );
2549 fprintf( stderr, " key=%d", req->key );
2552 static void dump_get_key_state_reply( const struct get_key_state_reply *req )
2554 fprintf( stderr, " state=%02x,", req->state );
2555 fprintf( stderr, " keystate=" );
2556 dump_varargs_bytes( cur_size );
2559 static void dump_set_key_state_request( const struct set_key_state_request *req )
2561 fprintf( stderr, " tid=%04x,", req->tid );
2562 fprintf( stderr, " keystate=" );
2563 dump_varargs_bytes( cur_size );
2566 static void dump_set_foreground_window_request( const struct set_foreground_window_request *req )
2568 fprintf( stderr, " handle=%p", req->handle );
2571 static void dump_set_foreground_window_reply( const struct set_foreground_window_reply *req )
2573 fprintf( stderr, " previous=%p,", req->previous );
2574 fprintf( stderr, " send_msg_old=%d,", req->send_msg_old );
2575 fprintf( stderr, " send_msg_new=%d", req->send_msg_new );
2578 static void dump_set_focus_window_request( const struct set_focus_window_request *req )
2580 fprintf( stderr, " handle=%p", req->handle );
2583 static void dump_set_focus_window_reply( const struct set_focus_window_reply *req )
2585 fprintf( stderr, " previous=%p", req->previous );
2588 static void dump_set_active_window_request( const struct set_active_window_request *req )
2590 fprintf( stderr, " handle=%p", req->handle );
2593 static void dump_set_active_window_reply( const struct set_active_window_reply *req )
2595 fprintf( stderr, " previous=%p", req->previous );
2598 static void dump_set_capture_window_request( const struct set_capture_window_request *req )
2600 fprintf( stderr, " handle=%p,", req->handle );
2601 fprintf( stderr, " flags=%08x", req->flags );
2604 static void dump_set_capture_window_reply( const struct set_capture_window_reply *req )
2606 fprintf( stderr, " previous=%p,", req->previous );
2607 fprintf( stderr, " full_handle=%p", req->full_handle );
2610 static void dump_set_caret_window_request( const struct set_caret_window_request *req )
2612 fprintf( stderr, " handle=%p,", req->handle );
2613 fprintf( stderr, " width=%d,", req->width );
2614 fprintf( stderr, " height=%d", req->height );
2617 static void dump_set_caret_window_reply( const struct set_caret_window_reply *req )
2619 fprintf( stderr, " previous=%p,", req->previous );
2620 fprintf( stderr, " old_rect=" );
2621 dump_rectangle( &req->old_rect );
2622 fprintf( stderr, "," );
2623 fprintf( stderr, " old_hide=%d,", req->old_hide );
2624 fprintf( stderr, " old_state=%d", req->old_state );
2627 static void dump_set_caret_info_request( const struct set_caret_info_request *req )
2629 fprintf( stderr, " flags=%08x,", req->flags );
2630 fprintf( stderr, " handle=%p,", req->handle );
2631 fprintf( stderr, " x=%d,", req->x );
2632 fprintf( stderr, " y=%d,", req->y );
2633 fprintf( stderr, " hide=%d,", req->hide );
2634 fprintf( stderr, " state=%d", req->state );
2637 static void dump_set_caret_info_reply( const struct set_caret_info_reply *req )
2639 fprintf( stderr, " full_handle=%p,", req->full_handle );
2640 fprintf( stderr, " old_rect=" );
2641 dump_rectangle( &req->old_rect );
2642 fprintf( stderr, "," );
2643 fprintf( stderr, " old_hide=%d,", req->old_hide );
2644 fprintf( stderr, " old_state=%d", req->old_state );
2647 static void dump_set_hook_request( const struct set_hook_request *req )
2649 fprintf( stderr, " id=%d,", req->id );
2650 fprintf( stderr, " pid=%04x,", req->pid );
2651 fprintf( stderr, " tid=%04x,", req->tid );
2652 fprintf( stderr, " event_min=%d,", req->event_min );
2653 fprintf( stderr, " event_max=%d,", req->event_max );
2654 fprintf( stderr, " flags=%d,", req->flags );
2655 fprintf( stderr, " proc=%p,", req->proc );
2656 fprintf( stderr, " unicode=%d,", req->unicode );
2657 fprintf( stderr, " module=" );
2658 dump_varargs_unicode_str( cur_size );
2661 static void dump_set_hook_reply( const struct set_hook_reply *req )
2663 fprintf( stderr, " handle=%p,", req->handle );
2664 fprintf( stderr, " active_hooks=%08x", req->active_hooks );
2667 static void dump_remove_hook_request( const struct remove_hook_request *req )
2669 fprintf( stderr, " handle=%p,", req->handle );
2670 fprintf( stderr, " id=%d,", req->id );
2671 fprintf( stderr, " proc=%p", req->proc );
2674 static void dump_remove_hook_reply( const struct remove_hook_reply *req )
2676 fprintf( stderr, " active_hooks=%08x", req->active_hooks );
2679 static void dump_start_hook_chain_request( const struct start_hook_chain_request *req )
2681 fprintf( stderr, " id=%d,", req->id );
2682 fprintf( stderr, " event=%d,", req->event );
2683 fprintf( stderr, " window=%p,", req->window );
2684 fprintf( stderr, " object_id=%d,", req->object_id );
2685 fprintf( stderr, " child_id=%d", req->child_id );
2688 static void dump_start_hook_chain_reply( const struct start_hook_chain_reply *req )
2690 fprintf( stderr, " handle=%p,", req->handle );
2691 fprintf( stderr, " pid=%04x,", req->pid );
2692 fprintf( stderr, " tid=%04x,", req->tid );
2693 fprintf( stderr, " proc=%p,", req->proc );
2694 fprintf( stderr, " unicode=%d,", req->unicode );
2695 fprintf( stderr, " active_hooks=%08x,", req->active_hooks );
2696 fprintf( stderr, " module=" );
2697 dump_varargs_unicode_str( cur_size );
2700 static void dump_finish_hook_chain_request( const struct finish_hook_chain_request *req )
2702 fprintf( stderr, " id=%d", req->id );
2705 static void dump_get_next_hook_request( const struct get_next_hook_request *req )
2707 fprintf( stderr, " handle=%p,", req->handle );
2708 fprintf( stderr, " event=%d,", req->event );
2709 fprintf( stderr, " window=%p,", req->window );
2710 fprintf( stderr, " object_id=%d,", req->object_id );
2711 fprintf( stderr, " child_id=%d", req->child_id );
2714 static void dump_get_next_hook_reply( const struct get_next_hook_reply *req )
2716 fprintf( stderr, " next=%p,", req->next );
2717 fprintf( stderr, " id=%d,", req->id );
2718 fprintf( stderr, " pid=%04x,", req->pid );
2719 fprintf( stderr, " tid=%04x,", req->tid );
2720 fprintf( stderr, " proc=%p,", req->proc );
2721 fprintf( stderr, " prev_unicode=%d,", req->prev_unicode );
2722 fprintf( stderr, " next_unicode=%d,", req->next_unicode );
2723 fprintf( stderr, " module=" );
2724 dump_varargs_unicode_str( cur_size );
2727 static void dump_create_class_request( const struct create_class_request *req )
2729 fprintf( stderr, " local=%d,", req->local );
2730 fprintf( stderr, " atom=%04x,", req->atom );
2731 fprintf( stderr, " style=%08x,", req->style );
2732 fprintf( stderr, " instance=%p,", req->instance );
2733 fprintf( stderr, " extra=%d,", req->extra );
2734 fprintf( stderr, " win_extra=%d,", req->win_extra );
2735 fprintf( stderr, " client_ptr=%p", req->client_ptr );
2738 static void dump_destroy_class_request( const struct destroy_class_request *req )
2740 fprintf( stderr, " atom=%04x,", req->atom );
2741 fprintf( stderr, " instance=%p", req->instance );
2744 static void dump_destroy_class_reply( const struct destroy_class_reply *req )
2746 fprintf( stderr, " client_ptr=%p", req->client_ptr );
2749 static void dump_set_class_info_request( const struct set_class_info_request *req )
2751 fprintf( stderr, " window=%p,", req->window );
2752 fprintf( stderr, " flags=%08x,", req->flags );
2753 fprintf( stderr, " atom=%04x,", req->atom );
2754 fprintf( stderr, " style=%08x,", req->style );
2755 fprintf( stderr, " win_extra=%d,", req->win_extra );
2756 fprintf( stderr, " instance=%p,", req->instance );
2757 fprintf( stderr, " extra_offset=%d,", req->extra_offset );
2758 fprintf( stderr, " extra_size=%d,", req->extra_size );
2759 fprintf( stderr, " extra_value=%08x", req->extra_value );
2762 static void dump_set_class_info_reply( const struct set_class_info_reply *req )
2764 fprintf( stderr, " old_atom=%04x,", req->old_atom );
2765 fprintf( stderr, " old_style=%08x,", req->old_style );
2766 fprintf( stderr, " old_extra=%d,", req->old_extra );
2767 fprintf( stderr, " old_win_extra=%d,", req->old_win_extra );
2768 fprintf( stderr, " old_instance=%p,", req->old_instance );
2769 fprintf( stderr, " old_extra_value=%08x", req->old_extra_value );
2772 static void dump_set_clipboard_info_request( const struct set_clipboard_info_request *req )
2774 fprintf( stderr, " flags=%08x,", req->flags );
2775 fprintf( stderr, " clipboard=%p,", req->clipboard );
2776 fprintf( stderr, " owner=%p,", req->owner );
2777 fprintf( stderr, " viewer=%p,", req->viewer );
2778 fprintf( stderr, " seqno=%08x", req->seqno );
2781 static void dump_set_clipboard_info_reply( const struct set_clipboard_info_reply *req )
2783 fprintf( stderr, " flags=%08x,", req->flags );
2784 fprintf( stderr, " old_clipboard=%p,", req->old_clipboard );
2785 fprintf( stderr, " old_owner=%p,", req->old_owner );
2786 fprintf( stderr, " old_viewer=%p,", req->old_viewer );
2787 fprintf( stderr, " seqno=%08x", req->seqno );
2790 static void dump_open_token_request( const struct open_token_request *req )
2792 fprintf( stderr, " handle=%p,", req->handle );
2793 fprintf( stderr, " flags=%08x", req->flags );
2796 static void dump_open_token_reply( const struct open_token_reply *req )
2798 fprintf( stderr, " token=%p", req->token );
2801 static void dump_set_global_windows_request( const struct set_global_windows_request *req )
2803 fprintf( stderr, " flags=%08x,", req->flags );
2804 fprintf( stderr, " shell_window=%p,", req->shell_window );
2805 fprintf( stderr, " shell_listview=%p,", req->shell_listview );
2806 fprintf( stderr, " progman_window=%p,", req->progman_window );
2807 fprintf( stderr, " taskman_window=%p", req->taskman_window );
2810 static void dump_set_global_windows_reply( const struct set_global_windows_reply *req )
2812 fprintf( stderr, " old_shell_window=%p,", req->old_shell_window );
2813 fprintf( stderr, " old_shell_listview=%p,", req->old_shell_listview );
2814 fprintf( stderr, " old_progman_window=%p,", req->old_progman_window );
2815 fprintf( stderr, " old_taskman_window=%p", req->old_taskman_window );
2818 static void dump_adjust_token_privileges_request( const struct adjust_token_privileges_request *req )
2820 fprintf( stderr, " handle=%p,", req->handle );
2821 fprintf( stderr, " disable_all=%d,", req->disable_all );
2822 fprintf( stderr, " get_modified_state=%d,", req->get_modified_state );
2823 fprintf( stderr, " privileges=" );
2824 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
2827 static void dump_adjust_token_privileges_reply( const struct adjust_token_privileges_reply *req )
2829 fprintf( stderr, " len=%08x,", req->len );
2830 fprintf( stderr, " privileges=" );
2831 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
2834 static void dump_get_token_privileges_request( const struct get_token_privileges_request *req )
2836 fprintf( stderr, " handle=%p", req->handle );
2839 static void dump_get_token_privileges_reply( const struct get_token_privileges_reply *req )
2841 fprintf( stderr, " len=%08x,", req->len );
2842 fprintf( stderr, " privileges=" );
2843 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
2846 static void dump_check_token_privileges_request( const struct check_token_privileges_request *req )
2848 fprintf( stderr, " handle=%p,", req->handle );
2849 fprintf( stderr, " all_required=%d,", req->all_required );
2850 fprintf( stderr, " privileges=" );
2851 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
2854 static void dump_check_token_privileges_reply( const struct check_token_privileges_reply *req )
2856 fprintf( stderr, " has_privileges=%d,", req->has_privileges );
2857 fprintf( stderr, " privileges=" );
2858 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
2861 static void dump_duplicate_token_request( const struct duplicate_token_request *req )
2863 fprintf( stderr, " handle=%p,", req->handle );
2864 fprintf( stderr, " access=%08x,", req->access );
2865 fprintf( stderr, " inherit=%d,", req->inherit );
2866 fprintf( stderr, " primary=%d,", req->primary );
2867 fprintf( stderr, " impersonation_level=%d", req->impersonation_level );
2870 static void dump_duplicate_token_reply( const struct duplicate_token_reply *req )
2872 fprintf( stderr, " new_handle=%p", req->new_handle );
2875 static void dump_access_check_request( const struct access_check_request *req )
2877 fprintf( stderr, " handle=%p,", req->handle );
2878 fprintf( stderr, " desired_access=%08x,", req->desired_access );
2879 fprintf( stderr, " mapping_read=%08x,", req->mapping_read );
2880 fprintf( stderr, " mapping_write=%08x,", req->mapping_write );
2881 fprintf( stderr, " mapping_execute=%08x,", req->mapping_execute );
2882 fprintf( stderr, " mapping_all=%08x,", req->mapping_all );
2883 fprintf( stderr, " sd=" );
2884 dump_varargs_security_descriptor( cur_size );
2887 static void dump_access_check_reply( const struct access_check_reply *req )
2889 fprintf( stderr, " access_granted=%08x,", req->access_granted );
2890 fprintf( stderr, " access_status=%08x,", req->access_status );
2891 fprintf( stderr, " privileges_len=%08x,", req->privileges_len );
2892 fprintf( stderr, " privileges=" );
2893 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
2896 static void dump_create_mailslot_request( const struct create_mailslot_request *req )
2898 fprintf( stderr, " max_msgsize=%08x,", req->max_msgsize );
2899 fprintf( stderr, " read_timeout=%08x,", req->read_timeout );
2900 fprintf( stderr, " inherit=%d,", req->inherit );
2901 fprintf( stderr, " name=" );
2902 dump_varargs_unicode_str( cur_size );
2905 static void dump_create_mailslot_reply( const struct create_mailslot_reply *req )
2907 fprintf( stderr, " handle=%p", req->handle );
2910 static void dump_open_mailslot_request( const struct open_mailslot_request *req )
2912 fprintf( stderr, " access=%08x,", req->access );
2913 fprintf( stderr, " inherit=%d,", req->inherit );
2914 fprintf( stderr, " sharing=%08x,", req->sharing );
2915 fprintf( stderr, " name=" );
2916 dump_varargs_unicode_str( cur_size );
2919 static void dump_open_mailslot_reply( const struct open_mailslot_reply *req )
2921 fprintf( stderr, " handle=%p", req->handle );
2924 static void dump_set_mailslot_info_request( const struct set_mailslot_info_request *req )
2926 fprintf( stderr, " handle=%p,", req->handle );
2927 fprintf( stderr, " flags=%08x,", req->flags );
2928 fprintf( stderr, " read_timeout=%08x", req->read_timeout );
2931 static void dump_set_mailslot_info_reply( const struct set_mailslot_info_reply *req )
2933 fprintf( stderr, " max_msgsize=%08x,", req->max_msgsize );
2934 fprintf( stderr, " read_timeout=%08x,", req->read_timeout );
2935 fprintf( stderr, " msg_count=%08x,", req->msg_count );
2936 fprintf( stderr, " next_msgsize=%08x", req->next_msgsize );
2939 static const dump_func req_dumpers[REQ_NB_REQUESTS] = {
2940 (dump_func)dump_new_process_request,
2941 (dump_func)dump_get_new_process_info_request,
2942 (dump_func)dump_new_thread_request,
2943 (dump_func)dump_boot_done_request,
2944 (dump_func)dump_init_process_request,
2945 (dump_func)dump_get_startup_info_request,
2946 (dump_func)dump_init_process_done_request,
2947 (dump_func)dump_init_thread_request,
2948 (dump_func)dump_terminate_process_request,
2949 (dump_func)dump_terminate_thread_request,
2950 (dump_func)dump_get_process_info_request,
2951 (dump_func)dump_set_process_info_request,
2952 (dump_func)dump_get_thread_info_request,
2953 (dump_func)dump_set_thread_info_request,
2954 (dump_func)dump_get_dll_info_request,
2955 (dump_func)dump_suspend_thread_request,
2956 (dump_func)dump_resume_thread_request,
2957 (dump_func)dump_load_dll_request,
2958 (dump_func)dump_unload_dll_request,
2959 (dump_func)dump_queue_apc_request,
2960 (dump_func)dump_get_apc_request,
2961 (dump_func)dump_close_handle_request,
2962 (dump_func)dump_set_handle_info_request,
2963 (dump_func)dump_dup_handle_request,
2964 (dump_func)dump_open_process_request,
2965 (dump_func)dump_open_thread_request,
2966 (dump_func)dump_select_request,
2967 (dump_func)dump_create_event_request,
2968 (dump_func)dump_event_op_request,
2969 (dump_func)dump_open_event_request,
2970 (dump_func)dump_create_mutex_request,
2971 (dump_func)dump_release_mutex_request,
2972 (dump_func)dump_open_mutex_request,
2973 (dump_func)dump_create_semaphore_request,
2974 (dump_func)dump_release_semaphore_request,
2975 (dump_func)dump_open_semaphore_request,
2976 (dump_func)dump_create_file_request,
2977 (dump_func)dump_alloc_file_handle_request,
2978 (dump_func)dump_get_handle_fd_request,
2979 (dump_func)dump_flush_file_request,
2980 (dump_func)dump_lock_file_request,
2981 (dump_func)dump_unlock_file_request,
2982 (dump_func)dump_create_socket_request,
2983 (dump_func)dump_accept_socket_request,
2984 (dump_func)dump_set_socket_event_request,
2985 (dump_func)dump_get_socket_event_request,
2986 (dump_func)dump_enable_socket_event_request,
2987 (dump_func)dump_set_socket_deferred_request,
2988 (dump_func)dump_alloc_console_request,
2989 (dump_func)dump_free_console_request,
2990 (dump_func)dump_get_console_renderer_events_request,
2991 (dump_func)dump_open_console_request,
2992 (dump_func)dump_get_console_wait_event_request,
2993 (dump_func)dump_get_console_mode_request,
2994 (dump_func)dump_set_console_mode_request,
2995 (dump_func)dump_set_console_input_info_request,
2996 (dump_func)dump_get_console_input_info_request,
2997 (dump_func)dump_append_console_input_history_request,
2998 (dump_func)dump_get_console_input_history_request,
2999 (dump_func)dump_create_console_output_request,
3000 (dump_func)dump_set_console_output_info_request,
3001 (dump_func)dump_get_console_output_info_request,
3002 (dump_func)dump_write_console_input_request,
3003 (dump_func)dump_read_console_input_request,
3004 (dump_func)dump_write_console_output_request,
3005 (dump_func)dump_fill_console_output_request,
3006 (dump_func)dump_read_console_output_request,
3007 (dump_func)dump_move_console_output_request,
3008 (dump_func)dump_send_console_signal_request,
3009 (dump_func)dump_create_change_notification_request,
3010 (dump_func)dump_next_change_notification_request,
3011 (dump_func)dump_create_mapping_request,
3012 (dump_func)dump_open_mapping_request,
3013 (dump_func)dump_get_mapping_info_request,
3014 (dump_func)dump_create_snapshot_request,
3015 (dump_func)dump_next_process_request,
3016 (dump_func)dump_next_thread_request,
3017 (dump_func)dump_next_module_request,
3018 (dump_func)dump_wait_debug_event_request,
3019 (dump_func)dump_queue_exception_event_request,
3020 (dump_func)dump_get_exception_status_request,
3021 (dump_func)dump_output_debug_string_request,
3022 (dump_func)dump_continue_debug_event_request,
3023 (dump_func)dump_debug_process_request,
3024 (dump_func)dump_debug_break_request,
3025 (dump_func)dump_set_debugger_kill_on_exit_request,
3026 (dump_func)dump_read_process_memory_request,
3027 (dump_func)dump_write_process_memory_request,
3028 (dump_func)dump_create_key_request,
3029 (dump_func)dump_open_key_request,
3030 (dump_func)dump_delete_key_request,
3031 (dump_func)dump_flush_key_request,
3032 (dump_func)dump_enum_key_request,
3033 (dump_func)dump_set_key_value_request,
3034 (dump_func)dump_get_key_value_request,
3035 (dump_func)dump_enum_key_value_request,
3036 (dump_func)dump_delete_key_value_request,
3037 (dump_func)dump_load_registry_request,
3038 (dump_func)dump_unload_registry_request,
3039 (dump_func)dump_save_registry_request,
3040 (dump_func)dump_load_user_registries_request,
3041 (dump_func)dump_set_registry_notification_request,
3042 (dump_func)dump_create_timer_request,
3043 (dump_func)dump_open_timer_request,
3044 (dump_func)dump_set_timer_request,
3045 (dump_func)dump_cancel_timer_request,
3046 (dump_func)dump_get_timer_info_request,
3047 (dump_func)dump_get_thread_context_request,
3048 (dump_func)dump_set_thread_context_request,
3049 (dump_func)dump_get_selector_entry_request,
3050 (dump_func)dump_add_atom_request,
3051 (dump_func)dump_delete_atom_request,
3052 (dump_func)dump_find_atom_request,
3053 (dump_func)dump_get_atom_information_request,
3054 (dump_func)dump_set_atom_information_request,
3055 (dump_func)dump_empty_atom_table_request,
3056 (dump_func)dump_init_atom_table_request,
3057 (dump_func)dump_get_msg_queue_request,
3058 (dump_func)dump_set_queue_mask_request,
3059 (dump_func)dump_get_queue_status_request,
3060 (dump_func)dump_wait_input_idle_request,
3061 (dump_func)dump_send_message_request,
3062 (dump_func)dump_get_message_request,
3063 (dump_func)dump_reply_message_request,
3064 (dump_func)dump_accept_hardware_message_request,
3065 (dump_func)dump_get_message_reply_request,
3066 (dump_func)dump_set_win_timer_request,
3067 (dump_func)dump_kill_win_timer_request,
3068 (dump_func)dump_get_serial_info_request,
3069 (dump_func)dump_set_serial_info_request,
3070 (dump_func)dump_register_async_request,
3071 (dump_func)dump_cancel_async_request,
3072 (dump_func)dump_create_named_pipe_request,
3073 (dump_func)dump_open_named_pipe_request,
3074 (dump_func)dump_connect_named_pipe_request,
3075 (dump_func)dump_wait_named_pipe_request,
3076 (dump_func)dump_disconnect_named_pipe_request,
3077 (dump_func)dump_get_named_pipe_info_request,
3078 (dump_func)dump_create_window_request,
3079 (dump_func)dump_destroy_window_request,
3080 (dump_func)dump_set_window_owner_request,
3081 (dump_func)dump_get_window_info_request,
3082 (dump_func)dump_set_window_info_request,
3083 (dump_func)dump_set_parent_request,
3084 (dump_func)dump_get_window_parents_request,
3085 (dump_func)dump_get_window_children_request,
3086 (dump_func)dump_get_window_children_from_point_request,
3087 (dump_func)dump_get_window_tree_request,
3088 (dump_func)dump_set_window_pos_request,
3089 (dump_func)dump_get_window_rectangles_request,
3090 (dump_func)dump_get_window_text_request,
3091 (dump_func)dump_set_window_text_request,
3092 (dump_func)dump_get_windows_offset_request,
3093 (dump_func)dump_get_visible_region_request,
3094 (dump_func)dump_get_window_region_request,
3095 (dump_func)dump_set_window_region_request,
3096 (dump_func)dump_get_update_region_request,
3097 (dump_func)dump_update_window_zorder_request,
3098 (dump_func)dump_redraw_window_request,
3099 (dump_func)dump_set_window_property_request,
3100 (dump_func)dump_remove_window_property_request,
3101 (dump_func)dump_get_window_property_request,
3102 (dump_func)dump_get_window_properties_request,
3103 (dump_func)dump_attach_thread_input_request,
3104 (dump_func)dump_get_thread_input_request,
3105 (dump_func)dump_get_last_input_time_request,
3106 (dump_func)dump_get_key_state_request,
3107 (dump_func)dump_set_key_state_request,
3108 (dump_func)dump_set_foreground_window_request,
3109 (dump_func)dump_set_focus_window_request,
3110 (dump_func)dump_set_active_window_request,
3111 (dump_func)dump_set_capture_window_request,
3112 (dump_func)dump_set_caret_window_request,
3113 (dump_func)dump_set_caret_info_request,
3114 (dump_func)dump_set_hook_request,
3115 (dump_func)dump_remove_hook_request,
3116 (dump_func)dump_start_hook_chain_request,
3117 (dump_func)dump_finish_hook_chain_request,
3118 (dump_func)dump_get_next_hook_request,
3119 (dump_func)dump_create_class_request,
3120 (dump_func)dump_destroy_class_request,
3121 (dump_func)dump_set_class_info_request,
3122 (dump_func)dump_set_clipboard_info_request,
3123 (dump_func)dump_open_token_request,
3124 (dump_func)dump_set_global_windows_request,
3125 (dump_func)dump_adjust_token_privileges_request,
3126 (dump_func)dump_get_token_privileges_request,
3127 (dump_func)dump_check_token_privileges_request,
3128 (dump_func)dump_duplicate_token_request,
3129 (dump_func)dump_access_check_request,
3130 (dump_func)dump_create_mailslot_request,
3131 (dump_func)dump_open_mailslot_request,
3132 (dump_func)dump_set_mailslot_info_request,
3135 static const dump_func reply_dumpers[REQ_NB_REQUESTS] = {
3136 (dump_func)dump_new_process_reply,
3137 (dump_func)dump_get_new_process_info_reply,
3138 (dump_func)dump_new_thread_reply,
3140 (dump_func)dump_init_process_reply,
3141 (dump_func)dump_get_startup_info_reply,
3143 (dump_func)dump_init_thread_reply,
3144 (dump_func)dump_terminate_process_reply,
3145 (dump_func)dump_terminate_thread_reply,
3146 (dump_func)dump_get_process_info_reply,
3148 (dump_func)dump_get_thread_info_reply,
3150 (dump_func)dump_get_dll_info_reply,
3151 (dump_func)dump_suspend_thread_reply,
3152 (dump_func)dump_resume_thread_reply,
3156 (dump_func)dump_get_apc_reply,
3157 (dump_func)dump_close_handle_reply,
3158 (dump_func)dump_set_handle_info_reply,
3159 (dump_func)dump_dup_handle_reply,
3160 (dump_func)dump_open_process_reply,
3161 (dump_func)dump_open_thread_reply,
3163 (dump_func)dump_create_event_reply,
3165 (dump_func)dump_open_event_reply,
3166 (dump_func)dump_create_mutex_reply,
3167 (dump_func)dump_release_mutex_reply,
3168 (dump_func)dump_open_mutex_reply,
3169 (dump_func)dump_create_semaphore_reply,
3170 (dump_func)dump_release_semaphore_reply,
3171 (dump_func)dump_open_semaphore_reply,
3172 (dump_func)dump_create_file_reply,
3173 (dump_func)dump_alloc_file_handle_reply,
3174 (dump_func)dump_get_handle_fd_reply,
3175 (dump_func)dump_flush_file_reply,
3176 (dump_func)dump_lock_file_reply,
3178 (dump_func)dump_create_socket_reply,
3179 (dump_func)dump_accept_socket_reply,
3181 (dump_func)dump_get_socket_event_reply,
3184 (dump_func)dump_alloc_console_reply,
3186 (dump_func)dump_get_console_renderer_events_reply,
3187 (dump_func)dump_open_console_reply,
3188 (dump_func)dump_get_console_wait_event_reply,
3189 (dump_func)dump_get_console_mode_reply,
3192 (dump_func)dump_get_console_input_info_reply,
3194 (dump_func)dump_get_console_input_history_reply,
3195 (dump_func)dump_create_console_output_reply,
3197 (dump_func)dump_get_console_output_info_reply,
3198 (dump_func)dump_write_console_input_reply,
3199 (dump_func)dump_read_console_input_reply,
3200 (dump_func)dump_write_console_output_reply,
3201 (dump_func)dump_fill_console_output_reply,
3202 (dump_func)dump_read_console_output_reply,
3205 (dump_func)dump_create_change_notification_reply,
3207 (dump_func)dump_create_mapping_reply,
3208 (dump_func)dump_open_mapping_reply,
3209 (dump_func)dump_get_mapping_info_reply,
3210 (dump_func)dump_create_snapshot_reply,
3211 (dump_func)dump_next_process_reply,
3212 (dump_func)dump_next_thread_reply,
3213 (dump_func)dump_next_module_reply,
3214 (dump_func)dump_wait_debug_event_reply,
3215 (dump_func)dump_queue_exception_event_reply,
3216 (dump_func)dump_get_exception_status_reply,
3220 (dump_func)dump_debug_break_reply,
3222 (dump_func)dump_read_process_memory_reply,
3224 (dump_func)dump_create_key_reply,
3225 (dump_func)dump_open_key_reply,
3228 (dump_func)dump_enum_key_reply,
3230 (dump_func)dump_get_key_value_reply,
3231 (dump_func)dump_enum_key_value_reply,
3238 (dump_func)dump_create_timer_reply,
3239 (dump_func)dump_open_timer_reply,
3240 (dump_func)dump_set_timer_reply,
3241 (dump_func)dump_cancel_timer_reply,
3242 (dump_func)dump_get_timer_info_reply,
3243 (dump_func)dump_get_thread_context_reply,
3245 (dump_func)dump_get_selector_entry_reply,
3246 (dump_func)dump_add_atom_reply,
3248 (dump_func)dump_find_atom_reply,
3249 (dump_func)dump_get_atom_information_reply,
3252 (dump_func)dump_init_atom_table_reply,
3253 (dump_func)dump_get_msg_queue_reply,
3254 (dump_func)dump_set_queue_mask_reply,
3255 (dump_func)dump_get_queue_status_reply,
3256 (dump_func)dump_wait_input_idle_reply,
3258 (dump_func)dump_get_message_reply,
3261 (dump_func)dump_get_message_reply_reply,
3262 (dump_func)dump_set_win_timer_reply,
3264 (dump_func)dump_get_serial_info_reply,
3268 (dump_func)dump_create_named_pipe_reply,
3269 (dump_func)dump_open_named_pipe_reply,
3272 (dump_func)dump_disconnect_named_pipe_reply,
3273 (dump_func)dump_get_named_pipe_info_reply,
3274 (dump_func)dump_create_window_reply,
3276 (dump_func)dump_set_window_owner_reply,
3277 (dump_func)dump_get_window_info_reply,
3278 (dump_func)dump_set_window_info_reply,
3279 (dump_func)dump_set_parent_reply,
3280 (dump_func)dump_get_window_parents_reply,
3281 (dump_func)dump_get_window_children_reply,
3282 (dump_func)dump_get_window_children_from_point_reply,
3283 (dump_func)dump_get_window_tree_reply,
3284 (dump_func)dump_set_window_pos_reply,
3285 (dump_func)dump_get_window_rectangles_reply,
3286 (dump_func)dump_get_window_text_reply,
3288 (dump_func)dump_get_windows_offset_reply,
3289 (dump_func)dump_get_visible_region_reply,
3290 (dump_func)dump_get_window_region_reply,
3292 (dump_func)dump_get_update_region_reply,
3296 (dump_func)dump_remove_window_property_reply,
3297 (dump_func)dump_get_window_property_reply,
3298 (dump_func)dump_get_window_properties_reply,
3300 (dump_func)dump_get_thread_input_reply,
3301 (dump_func)dump_get_last_input_time_reply,
3302 (dump_func)dump_get_key_state_reply,
3304 (dump_func)dump_set_foreground_window_reply,
3305 (dump_func)dump_set_focus_window_reply,
3306 (dump_func)dump_set_active_window_reply,
3307 (dump_func)dump_set_capture_window_reply,
3308 (dump_func)dump_set_caret_window_reply,
3309 (dump_func)dump_set_caret_info_reply,
3310 (dump_func)dump_set_hook_reply,
3311 (dump_func)dump_remove_hook_reply,
3312 (dump_func)dump_start_hook_chain_reply,
3314 (dump_func)dump_get_next_hook_reply,
3316 (dump_func)dump_destroy_class_reply,
3317 (dump_func)dump_set_class_info_reply,
3318 (dump_func)dump_set_clipboard_info_reply,
3319 (dump_func)dump_open_token_reply,
3320 (dump_func)dump_set_global_windows_reply,
3321 (dump_func)dump_adjust_token_privileges_reply,
3322 (dump_func)dump_get_token_privileges_reply,
3323 (dump_func)dump_check_token_privileges_reply,
3324 (dump_func)dump_duplicate_token_reply,
3325 (dump_func)dump_access_check_reply,
3326 (dump_func)dump_create_mailslot_reply,
3327 (dump_func)dump_open_mailslot_reply,
3328 (dump_func)dump_set_mailslot_info_reply,
3331 static const char * const req_names[REQ_NB_REQUESTS] = {
3333 "get_new_process_info",
3338 "init_process_done",
3340 "terminate_process",
3366 "release_semaphore",
3369 "alloc_file_handle",
3378 "enable_socket_event",
3379 "set_socket_deferred",
3382 "get_console_renderer_events",
3384 "get_console_wait_event",
3387 "set_console_input_info",
3388 "get_console_input_info",
3389 "append_console_input_history",
3390 "get_console_input_history",
3391 "create_console_output",
3392 "set_console_output_info",
3393 "get_console_output_info",
3394 "write_console_input",
3395 "read_console_input",
3396 "write_console_output",
3397 "fill_console_output",
3398 "read_console_output",
3399 "move_console_output",
3400 "send_console_signal",
3401 "create_change_notification",
3402 "next_change_notification",
3411 "queue_exception_event",
3412 "get_exception_status",
3413 "output_debug_string",
3414 "continue_debug_event",
3417 "set_debugger_kill_on_exit",
3418 "read_process_memory",
3419 "write_process_memory",
3432 "load_user_registries",
3433 "set_registry_notification",
3439 "get_thread_context",
3440 "set_thread_context",
3441 "get_selector_entry",
3445 "get_atom_information",
3446 "set_atom_information",
3456 "accept_hardware_message",
3457 "get_message_reply",
3464 "create_named_pipe",
3466 "connect_named_pipe",
3468 "disconnect_named_pipe",
3469 "get_named_pipe_info",
3476 "get_window_parents",
3477 "get_window_children",
3478 "get_window_children_from_point",
3481 "get_window_rectangles",
3484 "get_windows_offset",
3485 "get_visible_region",
3486 "get_window_region",
3487 "set_window_region",
3488 "get_update_region",
3489 "update_window_zorder",
3491 "set_window_property",
3492 "remove_window_property",
3493 "get_window_property",
3494 "get_window_properties",
3495 "attach_thread_input",
3497 "get_last_input_time",
3500 "set_foreground_window",
3502 "set_active_window",
3503 "set_capture_window",
3509 "finish_hook_chain",
3514 "set_clipboard_info",
3516 "set_global_windows",
3517 "adjust_token_privileges",
3518 "get_token_privileges",
3519 "check_token_privileges",
3524 "set_mailslot_info",
3527 /* ### make_requests end ### */
3528 /* Everything above this line is generated automatically by tools/make_requests */
3530 static const char *get_status_name( unsigned int status )
3532 #define NAME(status) { #status, STATUS_##status }
3533 #define NAME_WIN32(error) { #error, 0xc0010000 | error }
3540 NAME(ACCESS_DENIED),
3541 NAME(ACCESS_VIOLATION),
3543 NAME(BUFFER_OVERFLOW),
3544 NAME(CHILD_MUST_BE_VOLATILE),
3545 NAME(DIRECTORY_NOT_EMPTY),
3547 NAME(DLL_NOT_FOUND),
3548 NAME(FILE_IS_A_DIRECTORY),
3549 NAME(FILE_LOCK_CONFLICT),
3550 NAME(INVALID_FILE_FOR_SECTION),
3551 NAME(INVALID_HANDLE),
3552 NAME(INVALID_PARAMETER),
3554 NAME(MEDIA_WRITE_PROTECTED),
3555 NAME(MUTANT_NOT_OWNED),
3556 NAME(NOT_A_DIRECTORY),
3557 NAME(NOT_IMPLEMENTED),
3558 NAME(NOT_REGISTRY_FILE),
3559 NAME(NO_DATA_DETECTED),
3561 NAME(NO_MORE_ENTRIES),
3562 NAME(NO_MORE_FILES),
3564 NAME(OBJECT_NAME_COLLISION),
3565 NAME(OBJECT_NAME_INVALID),
3566 NAME(OBJECT_NAME_NOT_FOUND),
3567 NAME(OBJECT_PATH_INVALID),
3568 NAME(OBJECT_TYPE_MISMATCH),
3571 NAME(PIPE_CONNECTED),
3572 NAME(PIPE_DISCONNECTED),
3573 NAME(PIPE_LISTENING),
3574 NAME(PIPE_NOT_AVAILABLE),
3575 NAME(SEMAPHORE_LIMIT_EXCEEDED),
3576 NAME(SHARING_VIOLATION),
3577 NAME(SUSPEND_COUNT_EXCEEDED),
3581 NAME_WIN32(ERROR_INVALID_INDEX),
3582 NAME_WIN32(ERROR_INVALID_THREAD_ID),
3583 NAME_WIN32(ERROR_NEGATIVE_SEEK),
3584 NAME_WIN32(ERROR_SEEK),
3585 { NULL, 0 } /* terminator */
3590 static char buffer[10];
3594 for (i = 0; status_names[i].name; i++)
3595 if (status_names[i].value == status) return status_names[i].name;
3597 sprintf( buffer, "%x", status );
3601 void trace_request(void)
3603 enum request req = current->req.request_header.req;
3604 if (req < REQ_NB_REQUESTS)
3606 fprintf( stderr, "%04x: %s(", current->id, req_names[req] );
3607 if (req_dumpers[req])
3610 cur_data = get_req_data();
3611 cur_size = get_req_data_size();
3612 req_dumpers[req]( ¤t->req );
3614 fprintf( stderr, " )\n" );
3616 else fprintf( stderr, "%04x: %d(?)\n", current->id, req );
3619 void trace_reply( enum request req, const union generic_reply *reply )
3621 if (req < REQ_NB_REQUESTS)
3623 fprintf( stderr, "%04x: %s() = %s",
3624 current->id, req_names[req], get_status_name(current->error) );
3625 if (reply_dumpers[req])
3627 fprintf( stderr, " {" );
3629 cur_data = current->reply_data;
3630 cur_size = reply->reply_header.reply_size;
3631 reply_dumpers[req]( reply );
3632 fprintf( stderr, " }" );
3634 fputc( '\n', stderr );
3636 else fprintf( stderr, "%04x: %d() = %s\n",
3637 current->id, req, get_status_name(current->error) );