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>
41 static const void *cur_data;
44 /* utility functions */
46 inline static void remove_data( size_t size )
48 cur_data = (const char *)cur_data + size;
52 static void dump_uints( const int *ptr, int len )
57 fprintf( stderr, "%08x", *ptr++ );
58 if (--len) fputc( ',', stderr );
63 static void dump_abs_time( const abs_time_t *time )
68 if (!time->sec && !time->usec)
70 fprintf( stderr, "0" );
73 gettimeofday( &tv, NULL );
74 secs = time->sec - tv.tv_sec;
75 if ((usecs = time->usec - tv.tv_usec) < 0)
80 if (secs > 0 || (secs == 0 && usecs >= 0))
81 fprintf( stderr, "%d.%06d (+%d.%06d)", time->sec, time->usec, secs, usecs );
83 fprintf( stderr, "%d.%06d (-%d.%06d)", time->sec, time->usec, abs(secs+1), 1000000-usecs );
86 static void dump_rectangle( const rectangle_t *rect )
88 fprintf( stderr, "{%d,%d;%d,%d}",
89 rect->left, rect->top, rect->right, rect->bottom );
92 static void dump_char_info( const char_info_t *info )
94 fprintf( stderr, "{'" );
95 dump_strW( &info->ch, 1, stderr, "\'\'" );
96 fprintf( stderr, "',%04x}", info->attr );
99 static void dump_context( const CONTEXT *context )
102 fprintf( stderr, "{flags=%08lx,eax=%08lx,ebx=%08lx,ecx=%08lx,edx=%08lx,esi=%08lx,edi=%08lx,"
103 "ebp=%08lx,eip=%08lx,esp=%08lx,eflags=%08lx,cs=%04lx,ds=%04lx,es=%04lx,"
104 "fs=%04lx,gs=%04lx,dr0=%08lx,dr1=%08lx,dr2=%08lx,dr3=%08lx,dr6=%08lx,dr7=%08lx,",
105 context->ContextFlags, context->Eax, context->Ebx, context->Ecx, context->Edx,
106 context->Esi, context->Edi, context->Ebp, context->Eip, context->Esp, context->EFlags,
107 context->SegCs, context->SegDs, context->SegEs, context->SegFs, context->SegGs,
108 context->Dr0, context->Dr1, context->Dr2, context->Dr3, context->Dr6, context->Dr7 );
109 fprintf( stderr, "float=" );
110 dump_uints( (const int *)&context->FloatSave, sizeof(context->FloatSave) / sizeof(int) );
111 fprintf( stderr, "}" );
113 dump_uints( (const int *)context, sizeof(*context) / sizeof(int) );
117 static void dump_exc_record( const EXCEPTION_RECORD *rec )
120 fprintf( stderr, "{code=%lx,flags=%lx,rec=%p,addr=%p,params={",
121 rec->ExceptionCode, rec->ExceptionFlags, rec->ExceptionRecord,
122 rec->ExceptionAddress );
123 for (i = 0; i < min(rec->NumberParameters,EXCEPTION_MAXIMUM_PARAMETERS); i++)
125 if (i) fputc( ',', stderr );
126 fprintf( stderr, "%lx", rec->ExceptionInformation[i] );
128 fputc( '}', stderr );
131 static void dump_varargs_ints( size_t size )
133 const int *data = cur_data;
134 size_t len = size / sizeof(*data);
136 fputc( '{', stderr );
139 fprintf( stderr, "%d", *data++ );
140 if (--len) fputc( ',', stderr );
142 fputc( '}', stderr );
146 static void dump_varargs_handles( size_t size )
148 const obj_handle_t *data = cur_data;
149 size_t len = size / sizeof(*data);
151 fputc( '{', stderr );
154 fprintf( stderr, "%p", *data++ );
155 if (--len) fputc( ',', stderr );
157 fputc( '}', stderr );
161 static void dump_varargs_user_handles( size_t size )
163 const user_handle_t *data = cur_data;
164 size_t len = size / sizeof(*data);
166 fputc( '{', stderr );
169 fprintf( stderr, "%p", *data++ );
170 if (--len) fputc( ',', stderr );
172 fputc( '}', stderr );
176 static void dump_varargs_bytes( size_t size )
178 const unsigned char *data = cur_data;
181 fputc( '{', stderr );
184 fprintf( stderr, "%02x", *data++ );
185 if (--len) fputc( ',', stderr );
187 fputc( '}', stderr );
191 static void dump_varargs_string( size_t size )
193 fprintf( stderr, "\"%.*s\"", (int)size, (const char *)cur_data );
197 static void dump_varargs_unicode_str( size_t size )
199 fprintf( stderr, "L\"" );
200 dump_strW( cur_data, size / sizeof(WCHAR), stderr, "\"\"" );
201 fputc( '\"', stderr );
205 static void dump_varargs_context( size_t size )
209 fprintf( stderr, "{}" );
212 dump_context( cur_data );
216 static void dump_varargs_exc_event( size_t size )
218 const CONTEXT *ptr = cur_data;
222 fprintf( stderr, "{}" );
225 fprintf( stderr, "{context=" );
227 fprintf( stderr, ",rec=" );
228 dump_exc_record( (const EXCEPTION_RECORD *)(ptr + 1) );
229 fputc( '}', stderr );
233 static void dump_varargs_debug_event( size_t size )
235 const debug_event_t *event = cur_data;
239 fprintf( stderr, "{}" );
244 case EXCEPTION_DEBUG_EVENT:
245 fprintf( stderr, "{exception," );
246 dump_exc_record( &event->info.exception.record );
247 fprintf( stderr, ",first=%d}", event->info.exception.first );
249 case CREATE_THREAD_DEBUG_EVENT:
250 fprintf( stderr, "{create_thread,thread=%p,teb=%p,start=%p}",
251 event->info.create_thread.handle, event->info.create_thread.teb,
252 event->info.create_thread.start );
254 case CREATE_PROCESS_DEBUG_EVENT:
255 fprintf( stderr, "{create_process,file=%p,process=%p,thread=%p,base=%p,offset=%d,"
256 "size=%d,teb=%p,start=%p,name=%p,unicode=%d}",
257 event->info.create_process.file, event->info.create_process.process,
258 event->info.create_process.thread, event->info.create_process.base,
259 event->info.create_process.dbg_offset, event->info.create_process.dbg_size,
260 event->info.create_process.teb, event->info.create_process.start,
261 event->info.create_process.name, event->info.create_process.unicode );
263 case EXIT_THREAD_DEBUG_EVENT:
264 fprintf( stderr, "{exit_thread,code=%d}", event->info.exit.exit_code );
266 case EXIT_PROCESS_DEBUG_EVENT:
267 fprintf( stderr, "{exit_process,code=%d}", event->info.exit.exit_code );
269 case LOAD_DLL_DEBUG_EVENT:
270 fprintf( stderr, "{load_dll,file=%p,base=%p,offset=%d,size=%d,name=%p,unicode=%d}",
271 event->info.load_dll.handle, event->info.load_dll.base,
272 event->info.load_dll.dbg_offset, event->info.load_dll.dbg_size,
273 event->info.load_dll.name, event->info.load_dll.unicode );
275 case UNLOAD_DLL_DEBUG_EVENT:
276 fprintf( stderr, "{unload_dll,base=%p}", event->info.unload_dll.base );
278 case OUTPUT_DEBUG_STRING_EVENT:
279 fprintf( stderr, "{output_string,data=%p,unicode=%d,len=%d}",
280 event->info.output_string.string, event->info.output_string.unicode,
281 event->info.output_string.length );
284 fprintf( stderr, "{rip,err=%d,type=%d}",
285 event->info.rip_info.error, event->info.rip_info.type );
287 case 0: /* zero is the code returned on timeouts */
288 fprintf( stderr, "{}" );
291 fprintf( stderr, "{code=??? (%d)}", event->code );
297 /* dump a unicode string contained in a buffer; helper for dump_varargs_startup_info */
298 static void dump_inline_unicode_string( const UNICODE_STRING *str, const void *data, size_t size )
300 size_t length = str->Length / sizeof(WCHAR);
301 size_t offset = (size_t)str->Buffer;
303 if (offset >= size) return;
304 if (offset + length > size) length = size - offset;
305 dump_strW( (const WCHAR *)data + offset/sizeof(WCHAR), length, stderr, "\"\"" );
308 static void dump_varargs_startup_info( size_t size )
310 const RTL_USER_PROCESS_PARAMETERS *ptr = cur_data;
311 RTL_USER_PROCESS_PARAMETERS params;
313 if (size < sizeof(params.Size))
315 fprintf( stderr, "{}" );
318 if (size > ptr->Size) size = ptr->Size;
319 memset( ¶ms, 0, sizeof(params) );
320 memcpy( ¶ms, ptr, min( size, sizeof(params) ));
322 fprintf( stderr, "{AllocationSize=%lx,", params.AllocationSize );
323 fprintf( stderr, "Size=%lx,", params.Size );
324 fprintf( stderr, "Flags=%lx,", params.Flags );
325 fprintf( stderr, "DebugFlags=%lx,", params.DebugFlags );
326 fprintf( stderr, "ConsoleHandle=%p,", params.ConsoleHandle );
327 fprintf( stderr, "ConsoleFlags=%lx,", params.ConsoleFlags );
328 fprintf( stderr, "hStdInput=%p,", params.hStdInput );
329 fprintf( stderr, "hStdOutput=%p,", params.hStdOutput );
330 fprintf( stderr, "hStdError=%p,", params.hStdError );
331 fprintf( stderr, "CurrentDirectory.Handle=%p,", params.CurrentDirectory.Handle );
332 fprintf( stderr, "dwX=%ld,", params.dwX );
333 fprintf( stderr, "dwY=%ld,", params.dwY );
334 fprintf( stderr, "dwXSize=%ld,", params.dwXSize );
335 fprintf( stderr, "dwYSize=%ld,", params.dwYSize );
336 fprintf( stderr, "dwXCountChars=%ld,", params.dwXCountChars );
337 fprintf( stderr, "dwYCountChars=%ld,", params.dwYCountChars );
338 fprintf( stderr, "dwFillAttribute=%lx,", params.dwFillAttribute );
339 fprintf( stderr, "dwFlags=%lx,", params.dwFlags );
340 fprintf( stderr, "wShowWindow=%lx,", params.wShowWindow );
341 fprintf( stderr, "CurrentDirectory.DosPath=L\"" );
342 dump_inline_unicode_string( ¶ms.CurrentDirectory.DosPath, cur_data, size );
343 fprintf( stderr, "\",DllPath=L\"" );
344 dump_inline_unicode_string( ¶ms.DllPath, cur_data, size );
345 fprintf( stderr, "\",ImagePathName=L\"" );
346 dump_inline_unicode_string( ¶ms.ImagePathName, cur_data, size );
347 fprintf( stderr, "\",CommandLine=L\"" );
348 dump_inline_unicode_string( ¶ms.CommandLine, cur_data, size );
349 fprintf( stderr, "\",WindowTitle=L\"" );
350 dump_inline_unicode_string( ¶ms.WindowTitle, cur_data, size );
351 fprintf( stderr, "\",Desktop=L\"" );
352 dump_inline_unicode_string( ¶ms.Desktop, cur_data, size );
353 fprintf( stderr, "\",ShellInfo=L\"" );
354 dump_inline_unicode_string( ¶ms.ShellInfo, cur_data, size );
355 fprintf( stderr, "\",RuntimeInfo=L\"" );
356 dump_inline_unicode_string( ¶ms.RuntimeInfo, cur_data, size );
357 fprintf( stderr, "\"}" );
361 static void dump_varargs_input_records( size_t size )
363 const INPUT_RECORD *rec = cur_data;
364 size_t len = size / sizeof(*rec);
366 fputc( '{', stderr );
369 fprintf( stderr, "{%04x,...}", rec->EventType );
371 if (--len) fputc( ',', stderr );
373 fputc( '}', stderr );
377 static void dump_varargs_rectangles( size_t size )
379 const rectangle_t *rect = cur_data;
380 size_t len = size / sizeof(*rect);
382 fputc( '{', stderr );
385 dump_rectangle( rect++ );
386 if (--len) fputc( ',', stderr );
388 fputc( '}', stderr );
392 static void dump_varargs_properties( size_t size )
394 const property_data_t *prop = cur_data;
395 size_t len = size / sizeof(*prop);
397 fputc( '{', stderr );
400 fprintf( stderr, "{atom=%04x,str=%d,handle=%p}",
401 prop->atom, prop->string, prop->handle );
403 if (--len) fputc( ',', stderr );
405 fputc( '}', stderr );
409 static void dump_varargs_LUID_AND_ATTRIBUTES( size_t size )
411 const LUID_AND_ATTRIBUTES *lat = cur_data;
412 size_t len = size / sizeof(*lat);
414 fputc( '{', stderr );
417 fprintf( stderr, "{luid=%08lx%08lx,attr=%lx}",
418 lat->Luid.HighPart, lat->Luid.LowPart, lat->Attributes );
420 if (--len) fputc( ',', stderr );
422 fputc( '}', stderr );
426 static void dump_inline_sid( const SID *sid, size_t size )
431 if ((FIELD_OFFSET(SID, SubAuthority[0]) > size) ||
432 (FIELD_OFFSET(SID, SubAuthority[sid->SubAuthorityCount]) > size))
434 fprintf( stderr, "<invalid sid>" );
438 fputc( '{', stderr );
439 fprintf( stderr, "S-%u-%lu", sid->Revision, MAKELONG(
440 MAKEWORD( sid->IdentifierAuthority.Value[5],
441 sid->IdentifierAuthority.Value[4] ),
442 MAKEWORD( sid->IdentifierAuthority.Value[3],
443 sid->IdentifierAuthority.Value[2] ) ) );
444 for (i = 0; i < sid->SubAuthorityCount; i++)
445 fprintf( stderr, "-%lu", sid->SubAuthority[i] );
446 fputc( '}', stderr );
449 static void dump_inline_acl( const ACL *acl, size_t size )
451 const ACE_HEADER *ace;
453 fputc( '{', stderr );
457 if (size < sizeof(ACL))
459 fprintf( stderr, "<invalid acl>}\n" );
463 ace = (const ACE_HEADER *)(acl + 1);
464 for (i = 0; i < acl->AceCount; i++)
466 const SID *sid = NULL;
469 if (size < sizeof(ACE_HEADER))
471 if (size < ace->AceSize)
473 size -= ace->AceSize;
474 if (i != 0) fputc( ',', stderr );
475 fprintf( stderr, "{AceType=" );
476 switch (ace->AceType)
478 case ACCESS_DENIED_ACE_TYPE:
479 sid = (const SID *)&((const ACCESS_DENIED_ACE *)ace)->SidStart;
480 sid_size = ace->AceSize - FIELD_OFFSET(ACCESS_DENIED_ACE, SidStart);
481 fprintf( stderr, "ACCESS_DENIED_ACE_TYPE,Mask=%lx",
482 ((const ACCESS_DENIED_ACE *)ace)->Mask );
484 case ACCESS_ALLOWED_ACE_TYPE:
485 sid = (const SID *)&((const ACCESS_ALLOWED_ACE *)ace)->SidStart;
486 sid_size = ace->AceSize - FIELD_OFFSET(ACCESS_ALLOWED_ACE, SidStart);
487 fprintf( stderr, "ACCESS_ALLOWED_ACE_TYPE,Mask=%lx",
488 ((const ACCESS_ALLOWED_ACE *)ace)->Mask );
490 case SYSTEM_AUDIT_ACE_TYPE:
491 sid = (const SID *)&((const SYSTEM_AUDIT_ACE *)ace)->SidStart;
492 sid_size = ace->AceSize - FIELD_OFFSET(SYSTEM_AUDIT_ACE, SidStart);
493 fprintf( stderr, "SYSTEM_AUDIT_ACE_TYPE,Mask=%lx",
494 ((const SYSTEM_AUDIT_ACE *)ace)->Mask );
496 case SYSTEM_ALARM_ACE_TYPE:
497 sid = (const SID *)&((const SYSTEM_ALARM_ACE *)ace)->SidStart;
498 sid_size = ace->AceSize - FIELD_OFFSET(SYSTEM_ALARM_ACE, SidStart);
499 fprintf( stderr, "SYSTEM_ALARM_ACE_TYPE,Mask=%lx",
500 ((const SYSTEM_ALARM_ACE *)ace)->Mask );
503 fprintf( stderr, "unknown<%d>", ace->AceType );
506 fprintf( stderr, ",AceFlags=%x,Sid=", ace->AceFlags );
508 dump_inline_sid( sid, sid_size );
509 ace = (const ACE_HEADER *)((const char *)ace + ace->AceSize);
510 fputc( '}', stderr );
513 fputc( '}', stderr );
516 static void dump_inline_security_descriptor( const struct security_descriptor *sd, size_t size )
518 fputc( '{', stderr );
519 if (size >= sizeof(struct security_descriptor))
521 size_t offset = sizeof(struct security_descriptor);
522 fprintf( stderr, "control=%08x", sd->control );
523 fprintf( stderr, ",owner=" );
524 if ((sd->owner_len > FIELD_OFFSET(SID, SubAuthority[255])) || (offset + sd->owner_len > size))
526 dump_inline_sid( (const SID *)((const char *)sd + offset), sd->owner_len );
527 offset += sd->owner_len;
528 fprintf( stderr, ",group=" );
529 if ((sd->group_len > FIELD_OFFSET(SID, SubAuthority[255])) || (offset + sd->group_len > size))
531 dump_inline_sid( (const SID *)((const char *)sd + offset), sd->group_len );
532 offset += sd->group_len;
533 fprintf( stderr, ",sacl=" );
534 if ((sd->sacl_len >= MAX_ACL_LEN) || (offset + sd->sacl_len > size))
536 dump_inline_acl( (const ACL *)((const char *)sd + offset), sd->sacl_len );
537 offset += sd->sacl_len;
538 fprintf( stderr, ",dacl=" );
539 if ((sd->dacl_len >= MAX_ACL_LEN) || (offset + sd->dacl_len > size))
541 dump_inline_acl( (const ACL *)((const char *)sd + offset), sd->dacl_len );
542 offset += sd->dacl_len;
544 fputc( '}', stderr );
547 static void dump_varargs_security_descriptor( size_t size )
549 const struct security_descriptor *sd = cur_data;
550 dump_inline_security_descriptor( sd, size );
554 typedef void (*dump_func)( const void *req );
556 /* Everything below this line is generated automatically by tools/make_requests */
557 /* ### make_requests begin ### */
559 static void dump_new_process_request( const struct new_process_request *req )
561 fprintf( stderr, " inherit_all=%d,", req->inherit_all );
562 fprintf( stderr, " create_flags=%d,", req->create_flags );
563 fprintf( stderr, " unix_pid=%d,", req->unix_pid );
564 fprintf( stderr, " exe_file=%p,", req->exe_file );
565 fprintf( stderr, " hstdin=%p,", req->hstdin );
566 fprintf( stderr, " hstdout=%p,", req->hstdout );
567 fprintf( stderr, " hstderr=%p,", req->hstderr );
568 fprintf( stderr, " info=" );
569 dump_varargs_startup_info( cur_size );
570 fputc( ',', stderr );
571 fprintf( stderr, " env=" );
572 dump_varargs_unicode_str( cur_size );
575 static void dump_new_process_reply( const struct new_process_reply *req )
577 fprintf( stderr, " info=%p", req->info );
580 static void dump_get_new_process_info_request( const struct get_new_process_info_request *req )
582 fprintf( stderr, " info=%p,", req->info );
583 fprintf( stderr, " pinherit=%d,", req->pinherit );
584 fprintf( stderr, " tinherit=%d", req->tinherit );
587 static void dump_get_new_process_info_reply( const struct get_new_process_info_reply *req )
589 fprintf( stderr, " pid=%04x,", req->pid );
590 fprintf( stderr, " phandle=%p,", req->phandle );
591 fprintf( stderr, " tid=%04x,", req->tid );
592 fprintf( stderr, " thandle=%p,", req->thandle );
593 fprintf( stderr, " success=%d", req->success );
596 static void dump_new_thread_request( const struct new_thread_request *req )
598 fprintf( stderr, " suspend=%d,", req->suspend );
599 fprintf( stderr, " inherit=%d,", req->inherit );
600 fprintf( stderr, " request_fd=%d", req->request_fd );
603 static void dump_new_thread_reply( const struct new_thread_reply *req )
605 fprintf( stderr, " tid=%04x,", req->tid );
606 fprintf( stderr, " handle=%p", req->handle );
609 static void dump_boot_done_request( const struct boot_done_request *req )
611 fprintf( stderr, " debug_level=%d", req->debug_level );
614 static void dump_init_process_request( const struct init_process_request *req )
616 fprintf( stderr, " peb=%p,", req->peb );
617 fprintf( stderr, " ldt_copy=%p", req->ldt_copy );
620 static void dump_init_process_reply( const struct init_process_reply *req )
622 fprintf( stderr, " create_flags=%d,", req->create_flags );
623 fprintf( stderr, " server_start=%08x,", req->server_start );
624 fprintf( stderr, " info_size=%d,", req->info_size );
625 fprintf( stderr, " exe_file=%p,", req->exe_file );
626 fprintf( stderr, " hstdin=%p,", req->hstdin );
627 fprintf( stderr, " hstdout=%p,", req->hstdout );
628 fprintf( stderr, " hstderr=%p", req->hstderr );
631 static void dump_get_startup_info_request( const struct get_startup_info_request *req )
635 static void dump_get_startup_info_reply( const struct get_startup_info_reply *req )
637 fprintf( stderr, " info=" );
638 dump_varargs_startup_info( cur_size );
639 fputc( ',', stderr );
640 fprintf( stderr, " env=" );
641 dump_varargs_unicode_str( cur_size );
644 static void dump_init_process_done_request( const struct init_process_done_request *req )
646 fprintf( stderr, " module=%p,", req->module );
647 fprintf( stderr, " module_size=%d,", req->module_size );
648 fprintf( stderr, " entry=%p,", req->entry );
649 fprintf( stderr, " name=%p,", req->name );
650 fprintf( stderr, " exe_file=%p,", req->exe_file );
651 fprintf( stderr, " gui=%d,", req->gui );
652 fprintf( stderr, " filename=" );
653 dump_varargs_unicode_str( cur_size );
656 static void dump_init_thread_request( const struct init_thread_request *req )
658 fprintf( stderr, " unix_pid=%d,", req->unix_pid );
659 fprintf( stderr, " unix_tid=%d,", req->unix_tid );
660 fprintf( stderr, " teb=%p,", req->teb );
661 fprintf( stderr, " entry=%p,", req->entry );
662 fprintf( stderr, " reply_fd=%d,", req->reply_fd );
663 fprintf( stderr, " wait_fd=%d", req->wait_fd );
666 static void dump_init_thread_reply( const struct init_thread_reply *req )
668 fprintf( stderr, " pid=%04x,", req->pid );
669 fprintf( stderr, " tid=%04x,", req->tid );
670 fprintf( stderr, " boot=%d,", req->boot );
671 fprintf( stderr, " version=%d", req->version );
674 static void dump_terminate_process_request( const struct terminate_process_request *req )
676 fprintf( stderr, " handle=%p,", req->handle );
677 fprintf( stderr, " exit_code=%d", req->exit_code );
680 static void dump_terminate_process_reply( const struct terminate_process_reply *req )
682 fprintf( stderr, " self=%d", req->self );
685 static void dump_terminate_thread_request( const struct terminate_thread_request *req )
687 fprintf( stderr, " handle=%p,", req->handle );
688 fprintf( stderr, " exit_code=%d", req->exit_code );
691 static void dump_terminate_thread_reply( const struct terminate_thread_reply *req )
693 fprintf( stderr, " self=%d,", req->self );
694 fprintf( stderr, " last=%d", req->last );
697 static void dump_get_process_info_request( const struct get_process_info_request *req )
699 fprintf( stderr, " handle=%p", req->handle );
702 static void dump_get_process_info_reply( const struct get_process_info_reply *req )
704 fprintf( stderr, " pid=%04x,", req->pid );
705 fprintf( stderr, " ppid=%04x,", req->ppid );
706 fprintf( stderr, " exit_code=%d,", req->exit_code );
707 fprintf( stderr, " priority=%d,", req->priority );
708 fprintf( stderr, " process_affinity=%d,", req->process_affinity );
709 fprintf( stderr, " system_affinity=%d,", req->system_affinity );
710 fprintf( stderr, " peb=%p", req->peb );
713 static void dump_set_process_info_request( const struct set_process_info_request *req )
715 fprintf( stderr, " handle=%p,", req->handle );
716 fprintf( stderr, " mask=%d,", req->mask );
717 fprintf( stderr, " priority=%d,", req->priority );
718 fprintf( stderr, " affinity=%d", req->affinity );
721 static void dump_get_thread_info_request( const struct get_thread_info_request *req )
723 fprintf( stderr, " handle=%p,", req->handle );
724 fprintf( stderr, " tid_in=%04x", req->tid_in );
727 static void dump_get_thread_info_reply( const struct get_thread_info_reply *req )
729 fprintf( stderr, " pid=%04x,", req->pid );
730 fprintf( stderr, " tid=%04x,", req->tid );
731 fprintf( stderr, " teb=%p,", req->teb );
732 fprintf( stderr, " exit_code=%d,", req->exit_code );
733 fprintf( stderr, " priority=%d,", req->priority );
734 fprintf( stderr, " affinity=%d,", req->affinity );
735 fprintf( stderr, " creation_time=%ld,", (long)req->creation_time );
736 fprintf( stderr, " exit_time=%ld", (long)req->exit_time );
739 static void dump_set_thread_info_request( const struct set_thread_info_request *req )
741 fprintf( stderr, " handle=%p,", req->handle );
742 fprintf( stderr, " mask=%d,", req->mask );
743 fprintf( stderr, " priority=%d,", req->priority );
744 fprintf( stderr, " affinity=%d,", req->affinity );
745 fprintf( stderr, " token=%p", req->token );
748 static void dump_get_dll_info_request( const struct get_dll_info_request *req )
750 fprintf( stderr, " handle=%p,", req->handle );
751 fprintf( stderr, " base_address=%p", req->base_address );
754 static void dump_get_dll_info_reply( const struct get_dll_info_reply *req )
756 fprintf( stderr, " size=%d,", req->size );
757 fprintf( stderr, " entry_point=%p,", req->entry_point );
758 fprintf( stderr, " filename=" );
759 dump_varargs_unicode_str( cur_size );
762 static void dump_suspend_thread_request( const struct suspend_thread_request *req )
764 fprintf( stderr, " handle=%p", req->handle );
767 static void dump_suspend_thread_reply( const struct suspend_thread_reply *req )
769 fprintf( stderr, " count=%d", req->count );
772 static void dump_resume_thread_request( const struct resume_thread_request *req )
774 fprintf( stderr, " handle=%p", req->handle );
777 static void dump_resume_thread_reply( const struct resume_thread_reply *req )
779 fprintf( stderr, " count=%d", req->count );
782 static void dump_load_dll_request( const struct load_dll_request *req )
784 fprintf( stderr, " handle=%p,", req->handle );
785 fprintf( stderr, " base=%p,", req->base );
786 fprintf( stderr, " size=%d,", req->size );
787 fprintf( stderr, " dbg_offset=%d,", req->dbg_offset );
788 fprintf( stderr, " dbg_size=%d,", req->dbg_size );
789 fprintf( stderr, " name=%p,", req->name );
790 fprintf( stderr, " filename=" );
791 dump_varargs_unicode_str( cur_size );
794 static void dump_unload_dll_request( const struct unload_dll_request *req )
796 fprintf( stderr, " base=%p", req->base );
799 static void dump_queue_apc_request( const struct queue_apc_request *req )
801 fprintf( stderr, " handle=%p,", req->handle );
802 fprintf( stderr, " user=%d,", req->user );
803 fprintf( stderr, " func=%p,", req->func );
804 fprintf( stderr, " arg1=%p,", req->arg1 );
805 fprintf( stderr, " arg2=%p,", req->arg2 );
806 fprintf( stderr, " arg3=%p", req->arg3 );
809 static void dump_get_apc_request( const struct get_apc_request *req )
811 fprintf( stderr, " alertable=%d", req->alertable );
814 static void dump_get_apc_reply( const struct get_apc_reply *req )
816 fprintf( stderr, " func=%p,", req->func );
817 fprintf( stderr, " type=%d,", req->type );
818 fprintf( stderr, " arg1=%p,", req->arg1 );
819 fprintf( stderr, " arg2=%p,", req->arg2 );
820 fprintf( stderr, " arg3=%p", req->arg3 );
823 static void dump_close_handle_request( const struct close_handle_request *req )
825 fprintf( stderr, " handle=%p", req->handle );
828 static void dump_close_handle_reply( const struct close_handle_reply *req )
830 fprintf( stderr, " fd=%d", req->fd );
833 static void dump_set_handle_info_request( const struct set_handle_info_request *req )
835 fprintf( stderr, " handle=%p,", req->handle );
836 fprintf( stderr, " flags=%d,", req->flags );
837 fprintf( stderr, " mask=%d,", req->mask );
838 fprintf( stderr, " fd=%d", req->fd );
841 static void dump_set_handle_info_reply( const struct set_handle_info_reply *req )
843 fprintf( stderr, " old_flags=%d,", req->old_flags );
844 fprintf( stderr, " cur_fd=%d", req->cur_fd );
847 static void dump_dup_handle_request( const struct dup_handle_request *req )
849 fprintf( stderr, " src_process=%p,", req->src_process );
850 fprintf( stderr, " src_handle=%p,", req->src_handle );
851 fprintf( stderr, " dst_process=%p,", req->dst_process );
852 fprintf( stderr, " access=%08x,", req->access );
853 fprintf( stderr, " inherit=%d,", req->inherit );
854 fprintf( stderr, " options=%d", req->options );
857 static void dump_dup_handle_reply( const struct dup_handle_reply *req )
859 fprintf( stderr, " handle=%p,", req->handle );
860 fprintf( stderr, " fd=%d", req->fd );
863 static void dump_open_process_request( const struct open_process_request *req )
865 fprintf( stderr, " pid=%04x,", req->pid );
866 fprintf( stderr, " access=%08x,", req->access );
867 fprintf( stderr, " inherit=%d", req->inherit );
870 static void dump_open_process_reply( const struct open_process_reply *req )
872 fprintf( stderr, " handle=%p", req->handle );
875 static void dump_open_thread_request( const struct open_thread_request *req )
877 fprintf( stderr, " tid=%04x,", req->tid );
878 fprintf( stderr, " access=%08x,", req->access );
879 fprintf( stderr, " inherit=%d", req->inherit );
882 static void dump_open_thread_reply( const struct open_thread_reply *req )
884 fprintf( stderr, " handle=%p", req->handle );
887 static void dump_select_request( const struct select_request *req )
889 fprintf( stderr, " flags=%d,", req->flags );
890 fprintf( stderr, " cookie=%p,", req->cookie );
891 fprintf( stderr, " signal=%p,", req->signal );
892 fprintf( stderr, " timeout=" );
893 dump_abs_time( &req->timeout );
894 fprintf( stderr, "," );
895 fprintf( stderr, " handles=" );
896 dump_varargs_handles( cur_size );
899 static void dump_create_event_request( const struct create_event_request *req )
901 fprintf( stderr, " access=%08x,", req->access );
902 fprintf( stderr, " manual_reset=%d,", req->manual_reset );
903 fprintf( stderr, " initial_state=%d,", req->initial_state );
904 fprintf( stderr, " inherit=%d,", req->inherit );
905 fprintf( stderr, " name=" );
906 dump_varargs_unicode_str( cur_size );
909 static void dump_create_event_reply( const struct create_event_reply *req )
911 fprintf( stderr, " handle=%p", req->handle );
914 static void dump_event_op_request( const struct event_op_request *req )
916 fprintf( stderr, " handle=%p,", req->handle );
917 fprintf( stderr, " op=%d", req->op );
920 static void dump_open_event_request( const struct open_event_request *req )
922 fprintf( stderr, " access=%08x,", req->access );
923 fprintf( stderr, " inherit=%d,", req->inherit );
924 fprintf( stderr, " name=" );
925 dump_varargs_unicode_str( cur_size );
928 static void dump_open_event_reply( const struct open_event_reply *req )
930 fprintf( stderr, " handle=%p", req->handle );
933 static void dump_create_mutex_request( const struct create_mutex_request *req )
935 fprintf( stderr, " access=%08x,", req->access );
936 fprintf( stderr, " owned=%d,", req->owned );
937 fprintf( stderr, " inherit=%d,", req->inherit );
938 fprintf( stderr, " name=" );
939 dump_varargs_unicode_str( cur_size );
942 static void dump_create_mutex_reply( const struct create_mutex_reply *req )
944 fprintf( stderr, " handle=%p", req->handle );
947 static void dump_release_mutex_request( const struct release_mutex_request *req )
949 fprintf( stderr, " handle=%p", req->handle );
952 static void dump_release_mutex_reply( const struct release_mutex_reply *req )
954 fprintf( stderr, " prev_count=%08x", req->prev_count );
957 static void dump_open_mutex_request( const struct open_mutex_request *req )
959 fprintf( stderr, " access=%08x,", req->access );
960 fprintf( stderr, " inherit=%d,", req->inherit );
961 fprintf( stderr, " name=" );
962 dump_varargs_unicode_str( cur_size );
965 static void dump_open_mutex_reply( const struct open_mutex_reply *req )
967 fprintf( stderr, " handle=%p", req->handle );
970 static void dump_create_semaphore_request( const struct create_semaphore_request *req )
972 fprintf( stderr, " access=%08x,", req->access );
973 fprintf( stderr, " initial=%08x,", req->initial );
974 fprintf( stderr, " max=%08x,", req->max );
975 fprintf( stderr, " inherit=%d,", req->inherit );
976 fprintf( stderr, " name=" );
977 dump_varargs_unicode_str( cur_size );
980 static void dump_create_semaphore_reply( const struct create_semaphore_reply *req )
982 fprintf( stderr, " handle=%p", req->handle );
985 static void dump_release_semaphore_request( const struct release_semaphore_request *req )
987 fprintf( stderr, " handle=%p,", req->handle );
988 fprintf( stderr, " count=%08x", req->count );
991 static void dump_release_semaphore_reply( const struct release_semaphore_reply *req )
993 fprintf( stderr, " prev_count=%08x", req->prev_count );
996 static void dump_open_semaphore_request( const struct open_semaphore_request *req )
998 fprintf( stderr, " access=%08x,", req->access );
999 fprintf( stderr, " inherit=%d,", req->inherit );
1000 fprintf( stderr, " name=" );
1001 dump_varargs_unicode_str( cur_size );
1004 static void dump_open_semaphore_reply( const struct open_semaphore_reply *req )
1006 fprintf( stderr, " handle=%p", req->handle );
1009 static void dump_create_file_request( const struct create_file_request *req )
1011 fprintf( stderr, " access=%08x,", req->access );
1012 fprintf( stderr, " inherit=%d,", req->inherit );
1013 fprintf( stderr, " sharing=%08x,", req->sharing );
1014 fprintf( stderr, " create=%d,", req->create );
1015 fprintf( stderr, " options=%08x,", req->options );
1016 fprintf( stderr, " attrs=%08x,", req->attrs );
1017 fprintf( stderr, " filename=" );
1018 dump_varargs_string( cur_size );
1021 static void dump_create_file_reply( const struct create_file_reply *req )
1023 fprintf( stderr, " handle=%p", req->handle );
1026 static void dump_alloc_file_handle_request( const struct alloc_file_handle_request *req )
1028 fprintf( stderr, " access=%08x,", req->access );
1029 fprintf( stderr, " inherit=%d,", req->inherit );
1030 fprintf( stderr, " fd=%d", req->fd );
1033 static void dump_alloc_file_handle_reply( const struct alloc_file_handle_reply *req )
1035 fprintf( stderr, " handle=%p", req->handle );
1038 static void dump_get_handle_fd_request( const struct get_handle_fd_request *req )
1040 fprintf( stderr, " handle=%p,", req->handle );
1041 fprintf( stderr, " access=%08x", req->access );
1044 static void dump_get_handle_fd_reply( const struct get_handle_fd_reply *req )
1046 fprintf( stderr, " fd=%d,", req->fd );
1047 fprintf( stderr, " flags=%d", req->flags );
1050 static void dump_flush_file_request( const struct flush_file_request *req )
1052 fprintf( stderr, " handle=%p", req->handle );
1055 static void dump_flush_file_reply( const struct flush_file_reply *req )
1057 fprintf( stderr, " event=%p", req->event );
1060 static void dump_lock_file_request( const struct lock_file_request *req )
1062 fprintf( stderr, " handle=%p,", req->handle );
1063 fprintf( stderr, " offset_low=%08x,", req->offset_low );
1064 fprintf( stderr, " offset_high=%08x,", req->offset_high );
1065 fprintf( stderr, " count_low=%08x,", req->count_low );
1066 fprintf( stderr, " count_high=%08x,", req->count_high );
1067 fprintf( stderr, " shared=%d,", req->shared );
1068 fprintf( stderr, " wait=%d", req->wait );
1071 static void dump_lock_file_reply( const struct lock_file_reply *req )
1073 fprintf( stderr, " handle=%p,", req->handle );
1074 fprintf( stderr, " overlapped=%d", req->overlapped );
1077 static void dump_unlock_file_request( const struct unlock_file_request *req )
1079 fprintf( stderr, " handle=%p,", req->handle );
1080 fprintf( stderr, " offset_low=%08x,", req->offset_low );
1081 fprintf( stderr, " offset_high=%08x,", req->offset_high );
1082 fprintf( stderr, " count_low=%08x,", req->count_low );
1083 fprintf( stderr, " count_high=%08x", req->count_high );
1086 static void dump_create_socket_request( const struct create_socket_request *req )
1088 fprintf( stderr, " access=%08x,", req->access );
1089 fprintf( stderr, " inherit=%d,", req->inherit );
1090 fprintf( stderr, " family=%d,", req->family );
1091 fprintf( stderr, " type=%d,", req->type );
1092 fprintf( stderr, " protocol=%d,", req->protocol );
1093 fprintf( stderr, " flags=%08x", req->flags );
1096 static void dump_create_socket_reply( const struct create_socket_reply *req )
1098 fprintf( stderr, " handle=%p", req->handle );
1101 static void dump_accept_socket_request( const struct accept_socket_request *req )
1103 fprintf( stderr, " lhandle=%p,", req->lhandle );
1104 fprintf( stderr, " access=%08x,", req->access );
1105 fprintf( stderr, " inherit=%d", req->inherit );
1108 static void dump_accept_socket_reply( const struct accept_socket_reply *req )
1110 fprintf( stderr, " handle=%p", req->handle );
1113 static void dump_set_socket_event_request( const struct set_socket_event_request *req )
1115 fprintf( stderr, " handle=%p,", req->handle );
1116 fprintf( stderr, " mask=%08x,", req->mask );
1117 fprintf( stderr, " event=%p,", req->event );
1118 fprintf( stderr, " window=%p,", req->window );
1119 fprintf( stderr, " msg=%08x", req->msg );
1122 static void dump_get_socket_event_request( const struct get_socket_event_request *req )
1124 fprintf( stderr, " handle=%p,", req->handle );
1125 fprintf( stderr, " service=%d,", req->service );
1126 fprintf( stderr, " c_event=%p", req->c_event );
1129 static void dump_get_socket_event_reply( const struct get_socket_event_reply *req )
1131 fprintf( stderr, " mask=%08x,", req->mask );
1132 fprintf( stderr, " pmask=%08x,", req->pmask );
1133 fprintf( stderr, " state=%08x,", req->state );
1134 fprintf( stderr, " errors=" );
1135 dump_varargs_ints( cur_size );
1138 static void dump_enable_socket_event_request( const struct enable_socket_event_request *req )
1140 fprintf( stderr, " handle=%p,", req->handle );
1141 fprintf( stderr, " mask=%08x,", req->mask );
1142 fprintf( stderr, " sstate=%08x,", req->sstate );
1143 fprintf( stderr, " cstate=%08x", req->cstate );
1146 static void dump_set_socket_deferred_request( const struct set_socket_deferred_request *req )
1148 fprintf( stderr, " handle=%p,", req->handle );
1149 fprintf( stderr, " deferred=%p", req->deferred );
1152 static void dump_alloc_console_request( const struct alloc_console_request *req )
1154 fprintf( stderr, " access=%08x,", req->access );
1155 fprintf( stderr, " inherit=%d,", req->inherit );
1156 fprintf( stderr, " pid=%04x", req->pid );
1159 static void dump_alloc_console_reply( const struct alloc_console_reply *req )
1161 fprintf( stderr, " handle_in=%p,", req->handle_in );
1162 fprintf( stderr, " event=%p", req->event );
1165 static void dump_free_console_request( const struct free_console_request *req )
1169 static void dump_get_console_renderer_events_request( const struct get_console_renderer_events_request *req )
1171 fprintf( stderr, " handle=%p", req->handle );
1174 static void dump_get_console_renderer_events_reply( const struct get_console_renderer_events_reply *req )
1176 fprintf( stderr, " data=" );
1177 dump_varargs_bytes( cur_size );
1180 static void dump_open_console_request( const struct open_console_request *req )
1182 fprintf( stderr, " from=%d,", req->from );
1183 fprintf( stderr, " access=%08x,", req->access );
1184 fprintf( stderr, " inherit=%d,", req->inherit );
1185 fprintf( stderr, " share=%d", req->share );
1188 static void dump_open_console_reply( const struct open_console_reply *req )
1190 fprintf( stderr, " handle=%p", req->handle );
1193 static void dump_get_console_wait_event_request( const struct get_console_wait_event_request *req )
1197 static void dump_get_console_wait_event_reply( const struct get_console_wait_event_reply *req )
1199 fprintf( stderr, " handle=%p", req->handle );
1202 static void dump_get_console_mode_request( const struct get_console_mode_request *req )
1204 fprintf( stderr, " handle=%p", req->handle );
1207 static void dump_get_console_mode_reply( const struct get_console_mode_reply *req )
1209 fprintf( stderr, " mode=%d", req->mode );
1212 static void dump_set_console_mode_request( const struct set_console_mode_request *req )
1214 fprintf( stderr, " handle=%p,", req->handle );
1215 fprintf( stderr, " mode=%d", req->mode );
1218 static void dump_set_console_input_info_request( const struct set_console_input_info_request *req )
1220 fprintf( stderr, " handle=%p,", req->handle );
1221 fprintf( stderr, " mask=%d,", req->mask );
1222 fprintf( stderr, " active_sb=%p,", req->active_sb );
1223 fprintf( stderr, " history_mode=%d,", req->history_mode );
1224 fprintf( stderr, " history_size=%d,", req->history_size );
1225 fprintf( stderr, " edition_mode=%d,", req->edition_mode );
1226 fprintf( stderr, " title=" );
1227 dump_varargs_unicode_str( cur_size );
1230 static void dump_get_console_input_info_request( const struct get_console_input_info_request *req )
1232 fprintf( stderr, " handle=%p", req->handle );
1235 static void dump_get_console_input_info_reply( const struct get_console_input_info_reply *req )
1237 fprintf( stderr, " history_mode=%d,", req->history_mode );
1238 fprintf( stderr, " history_size=%d,", req->history_size );
1239 fprintf( stderr, " history_index=%d,", req->history_index );
1240 fprintf( stderr, " edition_mode=%d,", req->edition_mode );
1241 fprintf( stderr, " title=" );
1242 dump_varargs_unicode_str( cur_size );
1245 static void dump_append_console_input_history_request( const struct append_console_input_history_request *req )
1247 fprintf( stderr, " handle=%p,", req->handle );
1248 fprintf( stderr, " line=" );
1249 dump_varargs_unicode_str( cur_size );
1252 static void dump_get_console_input_history_request( const struct get_console_input_history_request *req )
1254 fprintf( stderr, " handle=%p,", req->handle );
1255 fprintf( stderr, " index=%d", req->index );
1258 static void dump_get_console_input_history_reply( const struct get_console_input_history_reply *req )
1260 fprintf( stderr, " total=%d,", req->total );
1261 fprintf( stderr, " line=" );
1262 dump_varargs_unicode_str( cur_size );
1265 static void dump_create_console_output_request( const struct create_console_output_request *req )
1267 fprintf( stderr, " handle_in=%p,", req->handle_in );
1268 fprintf( stderr, " access=%d,", req->access );
1269 fprintf( stderr, " share=%d,", req->share );
1270 fprintf( stderr, " inherit=%d", req->inherit );
1273 static void dump_create_console_output_reply( const struct create_console_output_reply *req )
1275 fprintf( stderr, " handle_out=%p", req->handle_out );
1278 static void dump_set_console_output_info_request( const struct set_console_output_info_request *req )
1280 fprintf( stderr, " handle=%p,", req->handle );
1281 fprintf( stderr, " mask=%d,", req->mask );
1282 fprintf( stderr, " cursor_size=%d,", req->cursor_size );
1283 fprintf( stderr, " cursor_visible=%d,", req->cursor_visible );
1284 fprintf( stderr, " cursor_x=%d,", req->cursor_x );
1285 fprintf( stderr, " cursor_y=%d,", req->cursor_y );
1286 fprintf( stderr, " width=%d,", req->width );
1287 fprintf( stderr, " height=%d,", req->height );
1288 fprintf( stderr, " attr=%d,", req->attr );
1289 fprintf( stderr, " win_left=%d,", req->win_left );
1290 fprintf( stderr, " win_top=%d,", req->win_top );
1291 fprintf( stderr, " win_right=%d,", req->win_right );
1292 fprintf( stderr, " win_bottom=%d,", req->win_bottom );
1293 fprintf( stderr, " max_width=%d,", req->max_width );
1294 fprintf( stderr, " max_height=%d", req->max_height );
1297 static void dump_get_console_output_info_request( const struct get_console_output_info_request *req )
1299 fprintf( stderr, " handle=%p", req->handle );
1302 static void dump_get_console_output_info_reply( const struct get_console_output_info_reply *req )
1304 fprintf( stderr, " cursor_size=%d,", req->cursor_size );
1305 fprintf( stderr, " cursor_visible=%d,", req->cursor_visible );
1306 fprintf( stderr, " cursor_x=%d,", req->cursor_x );
1307 fprintf( stderr, " cursor_y=%d,", req->cursor_y );
1308 fprintf( stderr, " width=%d,", req->width );
1309 fprintf( stderr, " height=%d,", req->height );
1310 fprintf( stderr, " attr=%d,", req->attr );
1311 fprintf( stderr, " win_left=%d,", req->win_left );
1312 fprintf( stderr, " win_top=%d,", req->win_top );
1313 fprintf( stderr, " win_right=%d,", req->win_right );
1314 fprintf( stderr, " win_bottom=%d,", req->win_bottom );
1315 fprintf( stderr, " max_width=%d,", req->max_width );
1316 fprintf( stderr, " max_height=%d", req->max_height );
1319 static void dump_write_console_input_request( const struct write_console_input_request *req )
1321 fprintf( stderr, " handle=%p,", req->handle );
1322 fprintf( stderr, " rec=" );
1323 dump_varargs_input_records( cur_size );
1326 static void dump_write_console_input_reply( const struct write_console_input_reply *req )
1328 fprintf( stderr, " written=%d", req->written );
1331 static void dump_read_console_input_request( const struct read_console_input_request *req )
1333 fprintf( stderr, " handle=%p,", req->handle );
1334 fprintf( stderr, " flush=%d", req->flush );
1337 static void dump_read_console_input_reply( const struct read_console_input_reply *req )
1339 fprintf( stderr, " read=%d,", req->read );
1340 fprintf( stderr, " rec=" );
1341 dump_varargs_input_records( cur_size );
1344 static void dump_write_console_output_request( const struct write_console_output_request *req )
1346 fprintf( stderr, " handle=%p,", req->handle );
1347 fprintf( stderr, " x=%d,", req->x );
1348 fprintf( stderr, " y=%d,", req->y );
1349 fprintf( stderr, " mode=%d,", req->mode );
1350 fprintf( stderr, " wrap=%d,", req->wrap );
1351 fprintf( stderr, " data=" );
1352 dump_varargs_bytes( cur_size );
1355 static void dump_write_console_output_reply( const struct write_console_output_reply *req )
1357 fprintf( stderr, " written=%d,", req->written );
1358 fprintf( stderr, " width=%d,", req->width );
1359 fprintf( stderr, " height=%d", req->height );
1362 static void dump_fill_console_output_request( const struct fill_console_output_request *req )
1364 fprintf( stderr, " handle=%p,", req->handle );
1365 fprintf( stderr, " x=%d,", req->x );
1366 fprintf( stderr, " y=%d,", req->y );
1367 fprintf( stderr, " mode=%d,", req->mode );
1368 fprintf( stderr, " count=%d,", req->count );
1369 fprintf( stderr, " wrap=%d,", req->wrap );
1370 fprintf( stderr, " data=" );
1371 dump_char_info( &req->data );
1374 static void dump_fill_console_output_reply( const struct fill_console_output_reply *req )
1376 fprintf( stderr, " written=%d", req->written );
1379 static void dump_read_console_output_request( const struct read_console_output_request *req )
1381 fprintf( stderr, " handle=%p,", req->handle );
1382 fprintf( stderr, " x=%d,", req->x );
1383 fprintf( stderr, " y=%d,", req->y );
1384 fprintf( stderr, " mode=%d,", req->mode );
1385 fprintf( stderr, " wrap=%d", req->wrap );
1388 static void dump_read_console_output_reply( const struct read_console_output_reply *req )
1390 fprintf( stderr, " width=%d,", req->width );
1391 fprintf( stderr, " height=%d,", req->height );
1392 fprintf( stderr, " data=" );
1393 dump_varargs_bytes( cur_size );
1396 static void dump_move_console_output_request( const struct move_console_output_request *req )
1398 fprintf( stderr, " handle=%p,", req->handle );
1399 fprintf( stderr, " x_src=%d,", req->x_src );
1400 fprintf( stderr, " y_src=%d,", req->y_src );
1401 fprintf( stderr, " x_dst=%d,", req->x_dst );
1402 fprintf( stderr, " y_dst=%d,", req->y_dst );
1403 fprintf( stderr, " w=%d,", req->w );
1404 fprintf( stderr, " h=%d", req->h );
1407 static void dump_send_console_signal_request( const struct send_console_signal_request *req )
1409 fprintf( stderr, " signal=%d,", req->signal );
1410 fprintf( stderr, " group_id=%04x", req->group_id );
1413 static void dump_create_change_notification_request( const struct create_change_notification_request *req )
1415 fprintf( stderr, " handle=%p,", req->handle );
1416 fprintf( stderr, " subtree=%d,", req->subtree );
1417 fprintf( stderr, " filter=%08x", req->filter );
1420 static void dump_create_change_notification_reply( const struct create_change_notification_reply *req )
1422 fprintf( stderr, " handle=%p", req->handle );
1425 static void dump_next_change_notification_request( const struct next_change_notification_request *req )
1427 fprintf( stderr, " handle=%p", req->handle );
1430 static void dump_create_mapping_request( const struct create_mapping_request *req )
1432 fprintf( stderr, " size_high=%d,", req->size_high );
1433 fprintf( stderr, " size_low=%d,", req->size_low );
1434 fprintf( stderr, " protect=%d,", req->protect );
1435 fprintf( stderr, " access=%08x,", req->access );
1436 fprintf( stderr, " inherit=%d,", req->inherit );
1437 fprintf( stderr, " file_handle=%p,", req->file_handle );
1438 fprintf( stderr, " name=" );
1439 dump_varargs_unicode_str( cur_size );
1442 static void dump_create_mapping_reply( const struct create_mapping_reply *req )
1444 fprintf( stderr, " handle=%p", req->handle );
1447 static void dump_open_mapping_request( const struct open_mapping_request *req )
1449 fprintf( stderr, " access=%08x,", req->access );
1450 fprintf( stderr, " inherit=%d,", req->inherit );
1451 fprintf( stderr, " name=" );
1452 dump_varargs_unicode_str( cur_size );
1455 static void dump_open_mapping_reply( const struct open_mapping_reply *req )
1457 fprintf( stderr, " handle=%p", req->handle );
1460 static void dump_get_mapping_info_request( const struct get_mapping_info_request *req )
1462 fprintf( stderr, " handle=%p", req->handle );
1465 static void dump_get_mapping_info_reply( const struct get_mapping_info_reply *req )
1467 fprintf( stderr, " size_high=%d,", req->size_high );
1468 fprintf( stderr, " size_low=%d,", req->size_low );
1469 fprintf( stderr, " protect=%d,", req->protect );
1470 fprintf( stderr, " header_size=%d,", req->header_size );
1471 fprintf( stderr, " base=%p,", req->base );
1472 fprintf( stderr, " shared_file=%p,", req->shared_file );
1473 fprintf( stderr, " shared_size=%d", req->shared_size );
1476 static void dump_create_snapshot_request( const struct create_snapshot_request *req )
1478 fprintf( stderr, " inherit=%d,", req->inherit );
1479 fprintf( stderr, " flags=%d,", req->flags );
1480 fprintf( stderr, " pid=%04x", req->pid );
1483 static void dump_create_snapshot_reply( const struct create_snapshot_reply *req )
1485 fprintf( stderr, " handle=%p", req->handle );
1488 static void dump_next_process_request( const struct next_process_request *req )
1490 fprintf( stderr, " handle=%p,", req->handle );
1491 fprintf( stderr, " reset=%d", req->reset );
1494 static void dump_next_process_reply( const struct next_process_reply *req )
1496 fprintf( stderr, " count=%d,", req->count );
1497 fprintf( stderr, " pid=%04x,", req->pid );
1498 fprintf( stderr, " ppid=%04x,", req->ppid );
1499 fprintf( stderr, " heap=%p,", req->heap );
1500 fprintf( stderr, " module=%p,", req->module );
1501 fprintf( stderr, " threads=%d,", req->threads );
1502 fprintf( stderr, " priority=%d,", req->priority );
1503 fprintf( stderr, " handles=%d,", req->handles );
1504 fprintf( stderr, " filename=" );
1505 dump_varargs_unicode_str( cur_size );
1508 static void dump_next_thread_request( const struct next_thread_request *req )
1510 fprintf( stderr, " handle=%p,", req->handle );
1511 fprintf( stderr, " reset=%d", req->reset );
1514 static void dump_next_thread_reply( const struct next_thread_reply *req )
1516 fprintf( stderr, " count=%d,", req->count );
1517 fprintf( stderr, " pid=%04x,", req->pid );
1518 fprintf( stderr, " tid=%04x,", req->tid );
1519 fprintf( stderr, " base_pri=%d,", req->base_pri );
1520 fprintf( stderr, " delta_pri=%d", req->delta_pri );
1523 static void dump_next_module_request( const struct next_module_request *req )
1525 fprintf( stderr, " handle=%p,", req->handle );
1526 fprintf( stderr, " reset=%d", req->reset );
1529 static void dump_next_module_reply( const struct next_module_reply *req )
1531 fprintf( stderr, " pid=%04x,", req->pid );
1532 fprintf( stderr, " base=%p,", req->base );
1533 fprintf( stderr, " size=%d,", req->size );
1534 fprintf( stderr, " filename=" );
1535 dump_varargs_unicode_str( cur_size );
1538 static void dump_wait_debug_event_request( const struct wait_debug_event_request *req )
1540 fprintf( stderr, " get_handle=%d", req->get_handle );
1543 static void dump_wait_debug_event_reply( const struct wait_debug_event_reply *req )
1545 fprintf( stderr, " pid=%04x,", req->pid );
1546 fprintf( stderr, " tid=%04x,", req->tid );
1547 fprintf( stderr, " wait=%p,", req->wait );
1548 fprintf( stderr, " event=" );
1549 dump_varargs_debug_event( cur_size );
1552 static void dump_queue_exception_event_request( const struct queue_exception_event_request *req )
1554 fprintf( stderr, " first=%d,", req->first );
1555 fprintf( stderr, " record=" );
1556 dump_varargs_exc_event( cur_size );
1559 static void dump_queue_exception_event_reply( const struct queue_exception_event_reply *req )
1561 fprintf( stderr, " handle=%p", req->handle );
1564 static void dump_get_exception_status_request( const struct get_exception_status_request *req )
1566 fprintf( stderr, " handle=%p", req->handle );
1569 static void dump_get_exception_status_reply( const struct get_exception_status_reply *req )
1571 fprintf( stderr, " status=%d,", req->status );
1572 fprintf( stderr, " context=" );
1573 dump_varargs_context( cur_size );
1576 static void dump_output_debug_string_request( const struct output_debug_string_request *req )
1578 fprintf( stderr, " string=%p,", req->string );
1579 fprintf( stderr, " unicode=%d,", req->unicode );
1580 fprintf( stderr, " length=%d", req->length );
1583 static void dump_continue_debug_event_request( const struct continue_debug_event_request *req )
1585 fprintf( stderr, " pid=%04x,", req->pid );
1586 fprintf( stderr, " tid=%04x,", req->tid );
1587 fprintf( stderr, " status=%d", req->status );
1590 static void dump_debug_process_request( const struct debug_process_request *req )
1592 fprintf( stderr, " pid=%04x,", req->pid );
1593 fprintf( stderr, " attach=%d", req->attach );
1596 static void dump_debug_break_request( const struct debug_break_request *req )
1598 fprintf( stderr, " handle=%p", req->handle );
1601 static void dump_debug_break_reply( const struct debug_break_reply *req )
1603 fprintf( stderr, " self=%d", req->self );
1606 static void dump_set_debugger_kill_on_exit_request( const struct set_debugger_kill_on_exit_request *req )
1608 fprintf( stderr, " kill_on_exit=%d", req->kill_on_exit );
1611 static void dump_read_process_memory_request( const struct read_process_memory_request *req )
1613 fprintf( stderr, " handle=%p,", req->handle );
1614 fprintf( stderr, " addr=%p", req->addr );
1617 static void dump_read_process_memory_reply( const struct read_process_memory_reply *req )
1619 fprintf( stderr, " data=" );
1620 dump_varargs_bytes( cur_size );
1623 static void dump_write_process_memory_request( const struct write_process_memory_request *req )
1625 fprintf( stderr, " handle=%p,", req->handle );
1626 fprintf( stderr, " addr=%p,", req->addr );
1627 fprintf( stderr, " first_mask=%08x,", req->first_mask );
1628 fprintf( stderr, " last_mask=%08x,", req->last_mask );
1629 fprintf( stderr, " data=" );
1630 dump_varargs_bytes( cur_size );
1633 static void dump_create_key_request( const struct create_key_request *req )
1635 fprintf( stderr, " parent=%p,", req->parent );
1636 fprintf( stderr, " access=%08x,", req->access );
1637 fprintf( stderr, " options=%08x,", req->options );
1638 fprintf( stderr, " modif=%ld,", (long)req->modif );
1639 fprintf( stderr, " namelen=%d,", req->namelen );
1640 fprintf( stderr, " name=" );
1641 dump_varargs_unicode_str( min(cur_size,req->namelen) );
1642 fputc( ',', stderr );
1643 fprintf( stderr, " class=" );
1644 dump_varargs_unicode_str( cur_size );
1647 static void dump_create_key_reply( const struct create_key_reply *req )
1649 fprintf( stderr, " hkey=%p,", req->hkey );
1650 fprintf( stderr, " created=%d", req->created );
1653 static void dump_open_key_request( const struct open_key_request *req )
1655 fprintf( stderr, " parent=%p,", req->parent );
1656 fprintf( stderr, " access=%08x,", req->access );
1657 fprintf( stderr, " name=" );
1658 dump_varargs_unicode_str( cur_size );
1661 static void dump_open_key_reply( const struct open_key_reply *req )
1663 fprintf( stderr, " hkey=%p", req->hkey );
1666 static void dump_delete_key_request( const struct delete_key_request *req )
1668 fprintf( stderr, " hkey=%p", req->hkey );
1671 static void dump_flush_key_request( const struct flush_key_request *req )
1673 fprintf( stderr, " hkey=%p", req->hkey );
1676 static void dump_enum_key_request( const struct enum_key_request *req )
1678 fprintf( stderr, " hkey=%p,", req->hkey );
1679 fprintf( stderr, " index=%d,", req->index );
1680 fprintf( stderr, " info_class=%d", req->info_class );
1683 static void dump_enum_key_reply( const struct enum_key_reply *req )
1685 fprintf( stderr, " subkeys=%d,", req->subkeys );
1686 fprintf( stderr, " max_subkey=%d,", req->max_subkey );
1687 fprintf( stderr, " max_class=%d,", req->max_class );
1688 fprintf( stderr, " values=%d,", req->values );
1689 fprintf( stderr, " max_value=%d,", req->max_value );
1690 fprintf( stderr, " max_data=%d,", req->max_data );
1691 fprintf( stderr, " modif=%ld,", (long)req->modif );
1692 fprintf( stderr, " total=%d,", req->total );
1693 fprintf( stderr, " namelen=%d,", req->namelen );
1694 fprintf( stderr, " name=" );
1695 dump_varargs_unicode_str( min(cur_size,req->namelen) );
1696 fputc( ',', stderr );
1697 fprintf( stderr, " class=" );
1698 dump_varargs_unicode_str( cur_size );
1701 static void dump_set_key_value_request( const struct set_key_value_request *req )
1703 fprintf( stderr, " hkey=%p,", req->hkey );
1704 fprintf( stderr, " type=%d,", req->type );
1705 fprintf( stderr, " namelen=%d,", req->namelen );
1706 fprintf( stderr, " name=" );
1707 dump_varargs_unicode_str( min(cur_size,req->namelen) );
1708 fputc( ',', stderr );
1709 fprintf( stderr, " data=" );
1710 dump_varargs_bytes( cur_size );
1713 static void dump_get_key_value_request( const struct get_key_value_request *req )
1715 fprintf( stderr, " hkey=%p,", req->hkey );
1716 fprintf( stderr, " name=" );
1717 dump_varargs_unicode_str( cur_size );
1720 static void dump_get_key_value_reply( const struct get_key_value_reply *req )
1722 fprintf( stderr, " type=%d,", req->type );
1723 fprintf( stderr, " total=%d,", req->total );
1724 fprintf( stderr, " data=" );
1725 dump_varargs_bytes( cur_size );
1728 static void dump_enum_key_value_request( const struct enum_key_value_request *req )
1730 fprintf( stderr, " hkey=%p,", req->hkey );
1731 fprintf( stderr, " index=%d,", req->index );
1732 fprintf( stderr, " info_class=%d", req->info_class );
1735 static void dump_enum_key_value_reply( const struct enum_key_value_reply *req )
1737 fprintf( stderr, " type=%d,", req->type );
1738 fprintf( stderr, " total=%d,", req->total );
1739 fprintf( stderr, " namelen=%d,", req->namelen );
1740 fprintf( stderr, " name=" );
1741 dump_varargs_unicode_str( min(cur_size,req->namelen) );
1742 fputc( ',', stderr );
1743 fprintf( stderr, " data=" );
1744 dump_varargs_bytes( cur_size );
1747 static void dump_delete_key_value_request( const struct delete_key_value_request *req )
1749 fprintf( stderr, " hkey=%p,", req->hkey );
1750 fprintf( stderr, " name=" );
1751 dump_varargs_unicode_str( cur_size );
1754 static void dump_load_registry_request( const struct load_registry_request *req )
1756 fprintf( stderr, " hkey=%p,", req->hkey );
1757 fprintf( stderr, " file=%p,", req->file );
1758 fprintf( stderr, " name=" );
1759 dump_varargs_unicode_str( cur_size );
1762 static void dump_unload_registry_request( const struct unload_registry_request *req )
1764 fprintf( stderr, " hkey=%p", req->hkey );
1767 static void dump_save_registry_request( const struct save_registry_request *req )
1769 fprintf( stderr, " hkey=%p,", req->hkey );
1770 fprintf( stderr, " file=%p", req->file );
1773 static void dump_load_user_registries_request( const struct load_user_registries_request *req )
1775 fprintf( stderr, " hkey=%p,", req->hkey );
1776 fprintf( stderr, " saving=%d,", req->saving );
1777 fprintf( stderr, " period=%d", req->period );
1780 static void dump_set_registry_notification_request( const struct set_registry_notification_request *req )
1782 fprintf( stderr, " hkey=%p,", req->hkey );
1783 fprintf( stderr, " event=%p,", req->event );
1784 fprintf( stderr, " subtree=%d,", req->subtree );
1785 fprintf( stderr, " filter=%08x", req->filter );
1788 static void dump_create_timer_request( const struct create_timer_request *req )
1790 fprintf( stderr, " access=%08x,", req->access );
1791 fprintf( stderr, " inherit=%d,", req->inherit );
1792 fprintf( stderr, " manual=%d,", req->manual );
1793 fprintf( stderr, " name=" );
1794 dump_varargs_unicode_str( cur_size );
1797 static void dump_create_timer_reply( const struct create_timer_reply *req )
1799 fprintf( stderr, " handle=%p", req->handle );
1802 static void dump_open_timer_request( const struct open_timer_request *req )
1804 fprintf( stderr, " access=%08x,", req->access );
1805 fprintf( stderr, " inherit=%d,", req->inherit );
1806 fprintf( stderr, " name=" );
1807 dump_varargs_unicode_str( cur_size );
1810 static void dump_open_timer_reply( const struct open_timer_reply *req )
1812 fprintf( stderr, " handle=%p", req->handle );
1815 static void dump_set_timer_request( const struct set_timer_request *req )
1817 fprintf( stderr, " handle=%p,", req->handle );
1818 fprintf( stderr, " expire=" );
1819 dump_abs_time( &req->expire );
1820 fprintf( stderr, "," );
1821 fprintf( stderr, " period=%d,", req->period );
1822 fprintf( stderr, " callback=%p,", req->callback );
1823 fprintf( stderr, " arg=%p", req->arg );
1826 static void dump_set_timer_reply( const struct set_timer_reply *req )
1828 fprintf( stderr, " signaled=%d", req->signaled );
1831 static void dump_cancel_timer_request( const struct cancel_timer_request *req )
1833 fprintf( stderr, " handle=%p", req->handle );
1836 static void dump_cancel_timer_reply( const struct cancel_timer_reply *req )
1838 fprintf( stderr, " signaled=%d", req->signaled );
1841 static void dump_get_timer_info_request( const struct get_timer_info_request *req )
1843 fprintf( stderr, " handle=%p", req->handle );
1846 static void dump_get_timer_info_reply( const struct get_timer_info_reply *req )
1848 fprintf( stderr, " when=" );
1849 dump_abs_time( &req->when );
1850 fprintf( stderr, "," );
1851 fprintf( stderr, " signaled=%d", req->signaled );
1854 static void dump_get_thread_context_request( const struct get_thread_context_request *req )
1856 fprintf( stderr, " handle=%p,", req->handle );
1857 fprintf( stderr, " flags=%08x", req->flags );
1860 static void dump_get_thread_context_reply( const struct get_thread_context_reply *req )
1862 fprintf( stderr, " context=" );
1863 dump_varargs_context( cur_size );
1866 static void dump_set_thread_context_request( const struct set_thread_context_request *req )
1868 fprintf( stderr, " handle=%p,", req->handle );
1869 fprintf( stderr, " flags=%08x,", req->flags );
1870 fprintf( stderr, " context=" );
1871 dump_varargs_context( cur_size );
1874 static void dump_get_selector_entry_request( const struct get_selector_entry_request *req )
1876 fprintf( stderr, " handle=%p,", req->handle );
1877 fprintf( stderr, " entry=%d", req->entry );
1880 static void dump_get_selector_entry_reply( const struct get_selector_entry_reply *req )
1882 fprintf( stderr, " base=%08x,", req->base );
1883 fprintf( stderr, " limit=%08x,", req->limit );
1884 fprintf( stderr, " flags=%02x", req->flags );
1887 static void dump_add_atom_request( const struct add_atom_request *req )
1889 fprintf( stderr, " table=%p,", req->table );
1890 fprintf( stderr, " name=" );
1891 dump_varargs_unicode_str( cur_size );
1894 static void dump_add_atom_reply( const struct add_atom_reply *req )
1896 fprintf( stderr, " atom=%04x", req->atom );
1899 static void dump_delete_atom_request( const struct delete_atom_request *req )
1901 fprintf( stderr, " table=%p,", req->table );
1902 fprintf( stderr, " atom=%04x", req->atom );
1905 static void dump_find_atom_request( const struct find_atom_request *req )
1907 fprintf( stderr, " table=%p,", req->table );
1908 fprintf( stderr, " name=" );
1909 dump_varargs_unicode_str( cur_size );
1912 static void dump_find_atom_reply( const struct find_atom_reply *req )
1914 fprintf( stderr, " atom=%04x", req->atom );
1917 static void dump_get_atom_information_request( const struct get_atom_information_request *req )
1919 fprintf( stderr, " table=%p,", req->table );
1920 fprintf( stderr, " atom=%04x", req->atom );
1923 static void dump_get_atom_information_reply( const struct get_atom_information_reply *req )
1925 fprintf( stderr, " count=%d,", req->count );
1926 fprintf( stderr, " pinned=%d,", req->pinned );
1927 fprintf( stderr, " name=" );
1928 dump_varargs_unicode_str( cur_size );
1931 static void dump_set_atom_information_request( const struct set_atom_information_request *req )
1933 fprintf( stderr, " table=%p,", req->table );
1934 fprintf( stderr, " atom=%04x,", req->atom );
1935 fprintf( stderr, " pinned=%d", req->pinned );
1938 static void dump_empty_atom_table_request( const struct empty_atom_table_request *req )
1940 fprintf( stderr, " table=%p,", req->table );
1941 fprintf( stderr, " if_pinned=%d", req->if_pinned );
1944 static void dump_init_atom_table_request( const struct init_atom_table_request *req )
1946 fprintf( stderr, " entries=%d", req->entries );
1949 static void dump_init_atom_table_reply( const struct init_atom_table_reply *req )
1951 fprintf( stderr, " table=%p", req->table );
1954 static void dump_get_msg_queue_request( const struct get_msg_queue_request *req )
1958 static void dump_get_msg_queue_reply( const struct get_msg_queue_reply *req )
1960 fprintf( stderr, " handle=%p", req->handle );
1963 static void dump_set_queue_mask_request( const struct set_queue_mask_request *req )
1965 fprintf( stderr, " wake_mask=%08x,", req->wake_mask );
1966 fprintf( stderr, " changed_mask=%08x,", req->changed_mask );
1967 fprintf( stderr, " skip_wait=%d", req->skip_wait );
1970 static void dump_set_queue_mask_reply( const struct set_queue_mask_reply *req )
1972 fprintf( stderr, " wake_bits=%08x,", req->wake_bits );
1973 fprintf( stderr, " changed_bits=%08x", req->changed_bits );
1976 static void dump_get_queue_status_request( const struct get_queue_status_request *req )
1978 fprintf( stderr, " clear=%d", req->clear );
1981 static void dump_get_queue_status_reply( const struct get_queue_status_reply *req )
1983 fprintf( stderr, " wake_bits=%08x,", req->wake_bits );
1984 fprintf( stderr, " changed_bits=%08x", req->changed_bits );
1987 static void dump_wait_input_idle_request( const struct wait_input_idle_request *req )
1989 fprintf( stderr, " handle=%p,", req->handle );
1990 fprintf( stderr, " timeout=%d", req->timeout );
1993 static void dump_wait_input_idle_reply( const struct wait_input_idle_reply *req )
1995 fprintf( stderr, " event=%p", req->event );
1998 static void dump_send_message_request( const struct send_message_request *req )
2000 fprintf( stderr, " id=%04x,", req->id );
2001 fprintf( stderr, " type=%d,", req->type );
2002 fprintf( stderr, " flags=%d,", req->flags );
2003 fprintf( stderr, " win=%p,", req->win );
2004 fprintf( stderr, " msg=%08x,", req->msg );
2005 fprintf( stderr, " wparam=%08x,", req->wparam );
2006 fprintf( stderr, " lparam=%08x,", req->lparam );
2007 fprintf( stderr, " x=%d,", req->x );
2008 fprintf( stderr, " y=%d,", req->y );
2009 fprintf( stderr, " time=%08x,", req->time );
2010 fprintf( stderr, " info=%08x,", req->info );
2011 fprintf( stderr, " timeout=%d,", req->timeout );
2012 fprintf( stderr, " callback=%p,", req->callback );
2013 fprintf( stderr, " data=" );
2014 dump_varargs_bytes( cur_size );
2017 static void dump_get_message_request( const struct get_message_request *req )
2019 fprintf( stderr, " flags=%d,", req->flags );
2020 fprintf( stderr, " get_win=%p,", req->get_win );
2021 fprintf( stderr, " get_first=%08x,", req->get_first );
2022 fprintf( stderr, " get_last=%08x,", req->get_last );
2023 fprintf( stderr, " hw_id=%08x", req->hw_id );
2026 static void dump_get_message_reply( const struct get_message_reply *req )
2028 fprintf( stderr, " type=%d,", req->type );
2029 fprintf( stderr, " win=%p,", req->win );
2030 fprintf( stderr, " msg=%08x,", req->msg );
2031 fprintf( stderr, " wparam=%08x,", req->wparam );
2032 fprintf( stderr, " lparam=%08x,", req->lparam );
2033 fprintf( stderr, " x=%d,", req->x );
2034 fprintf( stderr, " y=%d,", req->y );
2035 fprintf( stderr, " hook=%p,", req->hook );
2036 fprintf( stderr, " hook_proc=%p,", req->hook_proc );
2037 fprintf( stderr, " time=%08x,", req->time );
2038 fprintf( stderr, " info=%08x,", req->info );
2039 fprintf( stderr, " hw_id=%08x,", req->hw_id );
2040 fprintf( stderr, " active_hooks=%08x,", req->active_hooks );
2041 fprintf( stderr, " total=%d,", req->total );
2042 fprintf( stderr, " data=" );
2043 dump_varargs_bytes( cur_size );
2046 static void dump_reply_message_request( const struct reply_message_request *req )
2048 fprintf( stderr, " result=%08x,", req->result );
2049 fprintf( stderr, " remove=%d,", req->remove );
2050 fprintf( stderr, " data=" );
2051 dump_varargs_bytes( cur_size );
2054 static void dump_accept_hardware_message_request( const struct accept_hardware_message_request *req )
2056 fprintf( stderr, " hw_id=%08x,", req->hw_id );
2057 fprintf( stderr, " remove=%d,", req->remove );
2058 fprintf( stderr, " new_win=%p", req->new_win );
2061 static void dump_get_message_reply_request( const struct get_message_reply_request *req )
2063 fprintf( stderr, " cancel=%d", req->cancel );
2066 static void dump_get_message_reply_reply( const struct get_message_reply_reply *req )
2068 fprintf( stderr, " result=%08x,", req->result );
2069 fprintf( stderr, " data=" );
2070 dump_varargs_bytes( cur_size );
2073 static void dump_set_win_timer_request( const struct set_win_timer_request *req )
2075 fprintf( stderr, " win=%p,", req->win );
2076 fprintf( stderr, " msg=%08x,", req->msg );
2077 fprintf( stderr, " id=%08x,", req->id );
2078 fprintf( stderr, " rate=%08x,", req->rate );
2079 fprintf( stderr, " lparam=%08x", req->lparam );
2082 static void dump_set_win_timer_reply( const struct set_win_timer_reply *req )
2084 fprintf( stderr, " id=%08x", req->id );
2087 static void dump_kill_win_timer_request( const struct kill_win_timer_request *req )
2089 fprintf( stderr, " win=%p,", req->win );
2090 fprintf( stderr, " msg=%08x,", req->msg );
2091 fprintf( stderr, " id=%08x", req->id );
2094 static void dump_get_serial_info_request( const struct get_serial_info_request *req )
2096 fprintf( stderr, " handle=%p", req->handle );
2099 static void dump_get_serial_info_reply( const struct get_serial_info_reply *req )
2101 fprintf( stderr, " readinterval=%08x,", req->readinterval );
2102 fprintf( stderr, " readconst=%08x,", req->readconst );
2103 fprintf( stderr, " readmult=%08x,", req->readmult );
2104 fprintf( stderr, " writeconst=%08x,", req->writeconst );
2105 fprintf( stderr, " writemult=%08x,", req->writemult );
2106 fprintf( stderr, " eventmask=%08x,", req->eventmask );
2107 fprintf( stderr, " commerror=%08x", req->commerror );
2110 static void dump_set_serial_info_request( const struct set_serial_info_request *req )
2112 fprintf( stderr, " handle=%p,", req->handle );
2113 fprintf( stderr, " flags=%d,", req->flags );
2114 fprintf( stderr, " readinterval=%08x,", req->readinterval );
2115 fprintf( stderr, " readconst=%08x,", req->readconst );
2116 fprintf( stderr, " readmult=%08x,", req->readmult );
2117 fprintf( stderr, " writeconst=%08x,", req->writeconst );
2118 fprintf( stderr, " writemult=%08x,", req->writemult );
2119 fprintf( stderr, " eventmask=%08x,", req->eventmask );
2120 fprintf( stderr, " commerror=%08x", req->commerror );
2123 static void dump_register_async_request( const struct register_async_request *req )
2125 fprintf( stderr, " handle=%p,", req->handle );
2126 fprintf( stderr, " type=%d,", req->type );
2127 fprintf( stderr, " io_apc=%p,", req->io_apc );
2128 fprintf( stderr, " io_sb=%p,", req->io_sb );
2129 fprintf( stderr, " io_user=%p,", req->io_user );
2130 fprintf( stderr, " count=%d", req->count );
2133 static void dump_cancel_async_request( const struct cancel_async_request *req )
2135 fprintf( stderr, " handle=%p", req->handle );
2138 static void dump_create_named_pipe_request( const struct create_named_pipe_request *req )
2140 fprintf( stderr, " options=%08x,", req->options );
2141 fprintf( stderr, " flags=%08x,", req->flags );
2142 fprintf( stderr, " maxinstances=%08x,", req->maxinstances );
2143 fprintf( stderr, " outsize=%08x,", req->outsize );
2144 fprintf( stderr, " insize=%08x,", req->insize );
2145 fprintf( stderr, " timeout=%08x,", req->timeout );
2146 fprintf( stderr, " inherit=%d,", req->inherit );
2147 fprintf( stderr, " name=" );
2148 dump_varargs_unicode_str( cur_size );
2151 static void dump_create_named_pipe_reply( const struct create_named_pipe_reply *req )
2153 fprintf( stderr, " handle=%p", req->handle );
2156 static void dump_open_named_pipe_request( const struct open_named_pipe_request *req )
2158 fprintf( stderr, " access=%08x,", req->access );
2159 fprintf( stderr, " flags=%08x,", req->flags );
2160 fprintf( stderr, " inherit=%d,", req->inherit );
2161 fprintf( stderr, " name=" );
2162 dump_varargs_unicode_str( cur_size );
2165 static void dump_open_named_pipe_reply( const struct open_named_pipe_reply *req )
2167 fprintf( stderr, " handle=%p", req->handle );
2170 static void dump_connect_named_pipe_request( const struct connect_named_pipe_request *req )
2172 fprintf( stderr, " handle=%p,", req->handle );
2173 fprintf( stderr, " overlapped=%p,", req->overlapped );
2174 fprintf( stderr, " func=%p", req->func );
2177 static void dump_wait_named_pipe_request( const struct wait_named_pipe_request *req )
2179 fprintf( stderr, " timeout=%08x,", req->timeout );
2180 fprintf( stderr, " overlapped=%p,", req->overlapped );
2181 fprintf( stderr, " func=%p,", req->func );
2182 fprintf( stderr, " name=" );
2183 dump_varargs_unicode_str( cur_size );
2186 static void dump_disconnect_named_pipe_request( const struct disconnect_named_pipe_request *req )
2188 fprintf( stderr, " handle=%p", req->handle );
2191 static void dump_disconnect_named_pipe_reply( const struct disconnect_named_pipe_reply *req )
2193 fprintf( stderr, " fd=%d", req->fd );
2196 static void dump_get_named_pipe_info_request( const struct get_named_pipe_info_request *req )
2198 fprintf( stderr, " handle=%p", req->handle );
2201 static void dump_get_named_pipe_info_reply( const struct get_named_pipe_info_reply *req )
2203 fprintf( stderr, " flags=%08x,", req->flags );
2204 fprintf( stderr, " maxinstances=%08x,", req->maxinstances );
2205 fprintf( stderr, " outsize=%08x,", req->outsize );
2206 fprintf( stderr, " insize=%08x", req->insize );
2209 static void dump_create_window_request( const struct create_window_request *req )
2211 fprintf( stderr, " parent=%p,", req->parent );
2212 fprintf( stderr, " owner=%p,", req->owner );
2213 fprintf( stderr, " atom=%04x,", req->atom );
2214 fprintf( stderr, " instance=%p", req->instance );
2217 static void dump_create_window_reply( const struct create_window_reply *req )
2219 fprintf( stderr, " handle=%p,", req->handle );
2220 fprintf( stderr, " extra=%d,", req->extra );
2221 fprintf( stderr, " class_ptr=%p", req->class_ptr );
2224 static void dump_destroy_window_request( const struct destroy_window_request *req )
2226 fprintf( stderr, " handle=%p", req->handle );
2229 static void dump_set_window_owner_request( const struct set_window_owner_request *req )
2231 fprintf( stderr, " handle=%p,", req->handle );
2232 fprintf( stderr, " owner=%p", req->owner );
2235 static void dump_set_window_owner_reply( const struct set_window_owner_reply *req )
2237 fprintf( stderr, " full_owner=%p,", req->full_owner );
2238 fprintf( stderr, " prev_owner=%p", req->prev_owner );
2241 static void dump_get_window_info_request( const struct get_window_info_request *req )
2243 fprintf( stderr, " handle=%p", req->handle );
2246 static void dump_get_window_info_reply( const struct get_window_info_reply *req )
2248 fprintf( stderr, " full_handle=%p,", req->full_handle );
2249 fprintf( stderr, " last_active=%p,", req->last_active );
2250 fprintf( stderr, " pid=%04x,", req->pid );
2251 fprintf( stderr, " tid=%04x,", req->tid );
2252 fprintf( stderr, " atom=%04x,", req->atom );
2253 fprintf( stderr, " is_unicode=%d", req->is_unicode );
2256 static void dump_set_window_info_request( const struct set_window_info_request *req )
2258 fprintf( stderr, " handle=%p,", req->handle );
2259 fprintf( stderr, " flags=%08x,", req->flags );
2260 fprintf( stderr, " style=%08x,", req->style );
2261 fprintf( stderr, " ex_style=%08x,", req->ex_style );
2262 fprintf( stderr, " id=%08x,", req->id );
2263 fprintf( stderr, " instance=%p,", req->instance );
2264 fprintf( stderr, " is_unicode=%d,", req->is_unicode );
2265 fprintf( stderr, " user_data=%p,", req->user_data );
2266 fprintf( stderr, " extra_offset=%d,", req->extra_offset );
2267 fprintf( stderr, " extra_size=%d,", req->extra_size );
2268 fprintf( stderr, " extra_value=%08x", req->extra_value );
2271 static void dump_set_window_info_reply( const struct set_window_info_reply *req )
2273 fprintf( stderr, " old_style=%08x,", req->old_style );
2274 fprintf( stderr, " old_ex_style=%08x,", req->old_ex_style );
2275 fprintf( stderr, " old_id=%08x,", req->old_id );
2276 fprintf( stderr, " old_instance=%p,", req->old_instance );
2277 fprintf( stderr, " old_user_data=%p,", req->old_user_data );
2278 fprintf( stderr, " old_extra_value=%08x", req->old_extra_value );
2281 static void dump_set_parent_request( const struct set_parent_request *req )
2283 fprintf( stderr, " handle=%p,", req->handle );
2284 fprintf( stderr, " parent=%p", req->parent );
2287 static void dump_set_parent_reply( const struct set_parent_reply *req )
2289 fprintf( stderr, " old_parent=%p,", req->old_parent );
2290 fprintf( stderr, " full_parent=%p", req->full_parent );
2293 static void dump_get_window_parents_request( const struct get_window_parents_request *req )
2295 fprintf( stderr, " handle=%p", req->handle );
2298 static void dump_get_window_parents_reply( const struct get_window_parents_reply *req )
2300 fprintf( stderr, " count=%d,", req->count );
2301 fprintf( stderr, " parents=" );
2302 dump_varargs_user_handles( cur_size );
2305 static void dump_get_window_children_request( const struct get_window_children_request *req )
2307 fprintf( stderr, " parent=%p,", req->parent );
2308 fprintf( stderr, " atom=%04x,", req->atom );
2309 fprintf( stderr, " tid=%04x", req->tid );
2312 static void dump_get_window_children_reply( const struct get_window_children_reply *req )
2314 fprintf( stderr, " count=%d,", req->count );
2315 fprintf( stderr, " children=" );
2316 dump_varargs_user_handles( cur_size );
2319 static void dump_get_window_children_from_point_request( const struct get_window_children_from_point_request *req )
2321 fprintf( stderr, " parent=%p,", req->parent );
2322 fprintf( stderr, " x=%d,", req->x );
2323 fprintf( stderr, " y=%d", req->y );
2326 static void dump_get_window_children_from_point_reply( const struct get_window_children_from_point_reply *req )
2328 fprintf( stderr, " count=%d,", req->count );
2329 fprintf( stderr, " children=" );
2330 dump_varargs_user_handles( cur_size );
2333 static void dump_get_window_tree_request( const struct get_window_tree_request *req )
2335 fprintf( stderr, " handle=%p", req->handle );
2338 static void dump_get_window_tree_reply( const struct get_window_tree_reply *req )
2340 fprintf( stderr, " parent=%p,", req->parent );
2341 fprintf( stderr, " owner=%p,", req->owner );
2342 fprintf( stderr, " next_sibling=%p,", req->next_sibling );
2343 fprintf( stderr, " prev_sibling=%p,", req->prev_sibling );
2344 fprintf( stderr, " first_sibling=%p,", req->first_sibling );
2345 fprintf( stderr, " last_sibling=%p,", req->last_sibling );
2346 fprintf( stderr, " first_child=%p,", req->first_child );
2347 fprintf( stderr, " last_child=%p", req->last_child );
2350 static void dump_set_window_pos_request( const struct set_window_pos_request *req )
2352 fprintf( stderr, " handle=%p,", req->handle );
2353 fprintf( stderr, " previous=%p,", req->previous );
2354 fprintf( stderr, " flags=%08x,", req->flags );
2355 fprintf( stderr, " window=" );
2356 dump_rectangle( &req->window );
2357 fprintf( stderr, "," );
2358 fprintf( stderr, " client=" );
2359 dump_rectangle( &req->client );
2360 fprintf( stderr, "," );
2361 fprintf( stderr, " valid=" );
2362 dump_varargs_rectangles( cur_size );
2365 static void dump_set_window_pos_reply( const struct set_window_pos_reply *req )
2367 fprintf( stderr, " new_style=%08x", req->new_style );
2370 static void dump_get_window_rectangles_request( const struct get_window_rectangles_request *req )
2372 fprintf( stderr, " handle=%p", req->handle );
2375 static void dump_get_window_rectangles_reply( const struct get_window_rectangles_reply *req )
2377 fprintf( stderr, " window=" );
2378 dump_rectangle( &req->window );
2379 fprintf( stderr, "," );
2380 fprintf( stderr, " visible=" );
2381 dump_rectangle( &req->visible );
2382 fprintf( stderr, "," );
2383 fprintf( stderr, " client=" );
2384 dump_rectangle( &req->client );
2387 static void dump_get_window_text_request( const struct get_window_text_request *req )
2389 fprintf( stderr, " handle=%p", req->handle );
2392 static void dump_get_window_text_reply( const struct get_window_text_reply *req )
2394 fprintf( stderr, " text=" );
2395 dump_varargs_unicode_str( cur_size );
2398 static void dump_set_window_text_request( const struct set_window_text_request *req )
2400 fprintf( stderr, " handle=%p,", req->handle );
2401 fprintf( stderr, " text=" );
2402 dump_varargs_unicode_str( cur_size );
2405 static void dump_get_windows_offset_request( const struct get_windows_offset_request *req )
2407 fprintf( stderr, " from=%p,", req->from );
2408 fprintf( stderr, " to=%p", req->to );
2411 static void dump_get_windows_offset_reply( const struct get_windows_offset_reply *req )
2413 fprintf( stderr, " x=%d,", req->x );
2414 fprintf( stderr, " y=%d", req->y );
2417 static void dump_get_visible_region_request( const struct get_visible_region_request *req )
2419 fprintf( stderr, " window=%p,", req->window );
2420 fprintf( stderr, " flags=%08x", req->flags );
2423 static void dump_get_visible_region_reply( const struct get_visible_region_reply *req )
2425 fprintf( stderr, " top_win=%p,", req->top_win );
2426 fprintf( stderr, " top_org_x=%d,", req->top_org_x );
2427 fprintf( stderr, " top_org_y=%d,", req->top_org_y );
2428 fprintf( stderr, " win_org_x=%d,", req->win_org_x );
2429 fprintf( stderr, " win_org_y=%d,", req->win_org_y );
2430 fprintf( stderr, " total_size=%d,", req->total_size );
2431 fprintf( stderr, " region=" );
2432 dump_varargs_rectangles( cur_size );
2435 static void dump_get_window_region_request( const struct get_window_region_request *req )
2437 fprintf( stderr, " window=%p", req->window );
2440 static void dump_get_window_region_reply( const struct get_window_region_reply *req )
2442 fprintf( stderr, " total_size=%d,", req->total_size );
2443 fprintf( stderr, " region=" );
2444 dump_varargs_rectangles( cur_size );
2447 static void dump_set_window_region_request( const struct set_window_region_request *req )
2449 fprintf( stderr, " window=%p,", req->window );
2450 fprintf( stderr, " region=" );
2451 dump_varargs_rectangles( cur_size );
2454 static void dump_get_update_region_request( const struct get_update_region_request *req )
2456 fprintf( stderr, " window=%p,", req->window );
2457 fprintf( stderr, " from_child=%p,", req->from_child );
2458 fprintf( stderr, " flags=%08x", req->flags );
2461 static void dump_get_update_region_reply( const struct get_update_region_reply *req )
2463 fprintf( stderr, " child=%p,", req->child );
2464 fprintf( stderr, " flags=%08x,", req->flags );
2465 fprintf( stderr, " total_size=%d,", req->total_size );
2466 fprintf( stderr, " region=" );
2467 dump_varargs_rectangles( cur_size );
2470 static void dump_update_window_zorder_request( const struct update_window_zorder_request *req )
2472 fprintf( stderr, " window=%p,", req->window );
2473 fprintf( stderr, " rect=" );
2474 dump_rectangle( &req->rect );
2477 static void dump_redraw_window_request( const struct redraw_window_request *req )
2479 fprintf( stderr, " window=%p,", req->window );
2480 fprintf( stderr, " flags=%08x,", req->flags );
2481 fprintf( stderr, " region=" );
2482 dump_varargs_rectangles( cur_size );
2485 static void dump_set_window_property_request( const struct set_window_property_request *req )
2487 fprintf( stderr, " window=%p,", req->window );
2488 fprintf( stderr, " atom=%04x,", req->atom );
2489 fprintf( stderr, " handle=%p,", req->handle );
2490 fprintf( stderr, " name=" );
2491 dump_varargs_unicode_str( cur_size );
2494 static void dump_remove_window_property_request( const struct remove_window_property_request *req )
2496 fprintf( stderr, " window=%p,", req->window );
2497 fprintf( stderr, " atom=%04x,", req->atom );
2498 fprintf( stderr, " name=" );
2499 dump_varargs_unicode_str( cur_size );
2502 static void dump_remove_window_property_reply( const struct remove_window_property_reply *req )
2504 fprintf( stderr, " handle=%p", req->handle );
2507 static void dump_get_window_property_request( const struct get_window_property_request *req )
2509 fprintf( stderr, " window=%p,", req->window );
2510 fprintf( stderr, " atom=%04x,", req->atom );
2511 fprintf( stderr, " name=" );
2512 dump_varargs_unicode_str( cur_size );
2515 static void dump_get_window_property_reply( const struct get_window_property_reply *req )
2517 fprintf( stderr, " handle=%p", req->handle );
2520 static void dump_get_window_properties_request( const struct get_window_properties_request *req )
2522 fprintf( stderr, " window=%p", req->window );
2525 static void dump_get_window_properties_reply( const struct get_window_properties_reply *req )
2527 fprintf( stderr, " total=%d,", req->total );
2528 fprintf( stderr, " props=" );
2529 dump_varargs_properties( cur_size );
2532 static void dump_create_winstation_request( const struct create_winstation_request *req )
2534 fprintf( stderr, " flags=%08x,", req->flags );
2535 fprintf( stderr, " access=%08x,", req->access );
2536 fprintf( stderr, " inherit=%d,", req->inherit );
2537 fprintf( stderr, " name=" );
2538 dump_varargs_unicode_str( cur_size );
2541 static void dump_create_winstation_reply( const struct create_winstation_reply *req )
2543 fprintf( stderr, " handle=%p", req->handle );
2546 static void dump_open_winstation_request( const struct open_winstation_request *req )
2548 fprintf( stderr, " access=%08x,", req->access );
2549 fprintf( stderr, " inherit=%d,", req->inherit );
2550 fprintf( stderr, " name=" );
2551 dump_varargs_unicode_str( cur_size );
2554 static void dump_open_winstation_reply( const struct open_winstation_reply *req )
2556 fprintf( stderr, " handle=%p", req->handle );
2559 static void dump_close_winstation_request( const struct close_winstation_request *req )
2561 fprintf( stderr, " handle=%p", req->handle );
2564 static void dump_get_process_winstation_request( const struct get_process_winstation_request *req )
2568 static void dump_get_process_winstation_reply( const struct get_process_winstation_reply *req )
2570 fprintf( stderr, " handle=%p", req->handle );
2573 static void dump_set_process_winstation_request( const struct set_process_winstation_request *req )
2575 fprintf( stderr, " handle=%p", req->handle );
2578 static void dump_create_desktop_request( const struct create_desktop_request *req )
2580 fprintf( stderr, " flags=%08x,", req->flags );
2581 fprintf( stderr, " access=%08x,", req->access );
2582 fprintf( stderr, " inherit=%d,", req->inherit );
2583 fprintf( stderr, " name=" );
2584 dump_varargs_unicode_str( cur_size );
2587 static void dump_create_desktop_reply( const struct create_desktop_reply *req )
2589 fprintf( stderr, " handle=%p", req->handle );
2592 static void dump_open_desktop_request( const struct open_desktop_request *req )
2594 fprintf( stderr, " flags=%08x,", req->flags );
2595 fprintf( stderr, " access=%08x,", req->access );
2596 fprintf( stderr, " inherit=%d,", req->inherit );
2597 fprintf( stderr, " name=" );
2598 dump_varargs_unicode_str( cur_size );
2601 static void dump_open_desktop_reply( const struct open_desktop_reply *req )
2603 fprintf( stderr, " handle=%p", req->handle );
2606 static void dump_close_desktop_request( const struct close_desktop_request *req )
2608 fprintf( stderr, " handle=%p", req->handle );
2611 static void dump_get_thread_desktop_request( const struct get_thread_desktop_request *req )
2613 fprintf( stderr, " tid=%04x", req->tid );
2616 static void dump_get_thread_desktop_reply( const struct get_thread_desktop_reply *req )
2618 fprintf( stderr, " handle=%p", req->handle );
2621 static void dump_set_thread_desktop_request( const struct set_thread_desktop_request *req )
2623 fprintf( stderr, " handle=%p", req->handle );
2626 static void dump_set_user_object_info_request( const struct set_user_object_info_request *req )
2628 fprintf( stderr, " handle=%p,", req->handle );
2629 fprintf( stderr, " flags=%08x,", req->flags );
2630 fprintf( stderr, " obj_flags=%08x", req->obj_flags );
2633 static void dump_set_user_object_info_reply( const struct set_user_object_info_reply *req )
2635 fprintf( stderr, " is_desktop=%d,", req->is_desktop );
2636 fprintf( stderr, " old_obj_flags=%08x,", req->old_obj_flags );
2637 fprintf( stderr, " name=" );
2638 dump_varargs_unicode_str( cur_size );
2641 static void dump_attach_thread_input_request( const struct attach_thread_input_request *req )
2643 fprintf( stderr, " tid_from=%04x,", req->tid_from );
2644 fprintf( stderr, " tid_to=%04x,", req->tid_to );
2645 fprintf( stderr, " attach=%d", req->attach );
2648 static void dump_get_thread_input_request( const struct get_thread_input_request *req )
2650 fprintf( stderr, " tid=%04x", req->tid );
2653 static void dump_get_thread_input_reply( const struct get_thread_input_reply *req )
2655 fprintf( stderr, " focus=%p,", req->focus );
2656 fprintf( stderr, " capture=%p,", req->capture );
2657 fprintf( stderr, " active=%p,", req->active );
2658 fprintf( stderr, " foreground=%p,", req->foreground );
2659 fprintf( stderr, " menu_owner=%p,", req->menu_owner );
2660 fprintf( stderr, " move_size=%p,", req->move_size );
2661 fprintf( stderr, " caret=%p,", req->caret );
2662 fprintf( stderr, " rect=" );
2663 dump_rectangle( &req->rect );
2666 static void dump_get_last_input_time_request( const struct get_last_input_time_request *req )
2670 static void dump_get_last_input_time_reply( const struct get_last_input_time_reply *req )
2672 fprintf( stderr, " time=%08x", req->time );
2675 static void dump_get_key_state_request( const struct get_key_state_request *req )
2677 fprintf( stderr, " tid=%04x,", req->tid );
2678 fprintf( stderr, " key=%d", req->key );
2681 static void dump_get_key_state_reply( const struct get_key_state_reply *req )
2683 fprintf( stderr, " state=%02x,", req->state );
2684 fprintf( stderr, " keystate=" );
2685 dump_varargs_bytes( cur_size );
2688 static void dump_set_key_state_request( const struct set_key_state_request *req )
2690 fprintf( stderr, " tid=%04x,", req->tid );
2691 fprintf( stderr, " keystate=" );
2692 dump_varargs_bytes( cur_size );
2695 static void dump_set_foreground_window_request( const struct set_foreground_window_request *req )
2697 fprintf( stderr, " handle=%p", req->handle );
2700 static void dump_set_foreground_window_reply( const struct set_foreground_window_reply *req )
2702 fprintf( stderr, " previous=%p,", req->previous );
2703 fprintf( stderr, " send_msg_old=%d,", req->send_msg_old );
2704 fprintf( stderr, " send_msg_new=%d", req->send_msg_new );
2707 static void dump_set_focus_window_request( const struct set_focus_window_request *req )
2709 fprintf( stderr, " handle=%p", req->handle );
2712 static void dump_set_focus_window_reply( const struct set_focus_window_reply *req )
2714 fprintf( stderr, " previous=%p", req->previous );
2717 static void dump_set_active_window_request( const struct set_active_window_request *req )
2719 fprintf( stderr, " handle=%p", req->handle );
2722 static void dump_set_active_window_reply( const struct set_active_window_reply *req )
2724 fprintf( stderr, " previous=%p", req->previous );
2727 static void dump_set_capture_window_request( const struct set_capture_window_request *req )
2729 fprintf( stderr, " handle=%p,", req->handle );
2730 fprintf( stderr, " flags=%08x", req->flags );
2733 static void dump_set_capture_window_reply( const struct set_capture_window_reply *req )
2735 fprintf( stderr, " previous=%p,", req->previous );
2736 fprintf( stderr, " full_handle=%p", req->full_handle );
2739 static void dump_set_caret_window_request( const struct set_caret_window_request *req )
2741 fprintf( stderr, " handle=%p,", req->handle );
2742 fprintf( stderr, " width=%d,", req->width );
2743 fprintf( stderr, " height=%d", req->height );
2746 static void dump_set_caret_window_reply( const struct set_caret_window_reply *req )
2748 fprintf( stderr, " previous=%p,", req->previous );
2749 fprintf( stderr, " old_rect=" );
2750 dump_rectangle( &req->old_rect );
2751 fprintf( stderr, "," );
2752 fprintf( stderr, " old_hide=%d,", req->old_hide );
2753 fprintf( stderr, " old_state=%d", req->old_state );
2756 static void dump_set_caret_info_request( const struct set_caret_info_request *req )
2758 fprintf( stderr, " flags=%08x,", req->flags );
2759 fprintf( stderr, " handle=%p,", req->handle );
2760 fprintf( stderr, " x=%d,", req->x );
2761 fprintf( stderr, " y=%d,", req->y );
2762 fprintf( stderr, " hide=%d,", req->hide );
2763 fprintf( stderr, " state=%d", req->state );
2766 static void dump_set_caret_info_reply( const struct set_caret_info_reply *req )
2768 fprintf( stderr, " full_handle=%p,", req->full_handle );
2769 fprintf( stderr, " old_rect=" );
2770 dump_rectangle( &req->old_rect );
2771 fprintf( stderr, "," );
2772 fprintf( stderr, " old_hide=%d,", req->old_hide );
2773 fprintf( stderr, " old_state=%d", req->old_state );
2776 static void dump_set_hook_request( const struct set_hook_request *req )
2778 fprintf( stderr, " id=%d,", req->id );
2779 fprintf( stderr, " pid=%04x,", req->pid );
2780 fprintf( stderr, " tid=%04x,", req->tid );
2781 fprintf( stderr, " event_min=%d,", req->event_min );
2782 fprintf( stderr, " event_max=%d,", req->event_max );
2783 fprintf( stderr, " flags=%d,", req->flags );
2784 fprintf( stderr, " proc=%p,", req->proc );
2785 fprintf( stderr, " unicode=%d,", req->unicode );
2786 fprintf( stderr, " module=" );
2787 dump_varargs_unicode_str( cur_size );
2790 static void dump_set_hook_reply( const struct set_hook_reply *req )
2792 fprintf( stderr, " handle=%p,", req->handle );
2793 fprintf( stderr, " active_hooks=%08x", req->active_hooks );
2796 static void dump_remove_hook_request( const struct remove_hook_request *req )
2798 fprintf( stderr, " handle=%p,", req->handle );
2799 fprintf( stderr, " id=%d,", req->id );
2800 fprintf( stderr, " proc=%p", req->proc );
2803 static void dump_remove_hook_reply( const struct remove_hook_reply *req )
2805 fprintf( stderr, " active_hooks=%08x", req->active_hooks );
2808 static void dump_start_hook_chain_request( const struct start_hook_chain_request *req )
2810 fprintf( stderr, " id=%d,", req->id );
2811 fprintf( stderr, " event=%d,", req->event );
2812 fprintf( stderr, " window=%p,", req->window );
2813 fprintf( stderr, " object_id=%d,", req->object_id );
2814 fprintf( stderr, " child_id=%d", req->child_id );
2817 static void dump_start_hook_chain_reply( const struct start_hook_chain_reply *req )
2819 fprintf( stderr, " handle=%p,", req->handle );
2820 fprintf( stderr, " pid=%04x,", req->pid );
2821 fprintf( stderr, " tid=%04x,", req->tid );
2822 fprintf( stderr, " proc=%p,", req->proc );
2823 fprintf( stderr, " unicode=%d,", req->unicode );
2824 fprintf( stderr, " active_hooks=%08x,", req->active_hooks );
2825 fprintf( stderr, " module=" );
2826 dump_varargs_unicode_str( cur_size );
2829 static void dump_finish_hook_chain_request( const struct finish_hook_chain_request *req )
2831 fprintf( stderr, " id=%d", req->id );
2834 static void dump_get_next_hook_request( const struct get_next_hook_request *req )
2836 fprintf( stderr, " handle=%p,", req->handle );
2837 fprintf( stderr, " event=%d,", req->event );
2838 fprintf( stderr, " window=%p,", req->window );
2839 fprintf( stderr, " object_id=%d,", req->object_id );
2840 fprintf( stderr, " child_id=%d", req->child_id );
2843 static void dump_get_next_hook_reply( const struct get_next_hook_reply *req )
2845 fprintf( stderr, " next=%p,", req->next );
2846 fprintf( stderr, " id=%d,", req->id );
2847 fprintf( stderr, " pid=%04x,", req->pid );
2848 fprintf( stderr, " tid=%04x,", req->tid );
2849 fprintf( stderr, " proc=%p,", req->proc );
2850 fprintf( stderr, " prev_unicode=%d,", req->prev_unicode );
2851 fprintf( stderr, " next_unicode=%d,", req->next_unicode );
2852 fprintf( stderr, " module=" );
2853 dump_varargs_unicode_str( cur_size );
2856 static void dump_create_class_request( const struct create_class_request *req )
2858 fprintf( stderr, " local=%d,", req->local );
2859 fprintf( stderr, " atom=%04x,", req->atom );
2860 fprintf( stderr, " style=%08x,", req->style );
2861 fprintf( stderr, " instance=%p,", req->instance );
2862 fprintf( stderr, " extra=%d,", req->extra );
2863 fprintf( stderr, " win_extra=%d,", req->win_extra );
2864 fprintf( stderr, " client_ptr=%p", req->client_ptr );
2867 static void dump_destroy_class_request( const struct destroy_class_request *req )
2869 fprintf( stderr, " atom=%04x,", req->atom );
2870 fprintf( stderr, " instance=%p", req->instance );
2873 static void dump_destroy_class_reply( const struct destroy_class_reply *req )
2875 fprintf( stderr, " client_ptr=%p", req->client_ptr );
2878 static void dump_set_class_info_request( const struct set_class_info_request *req )
2880 fprintf( stderr, " window=%p,", req->window );
2881 fprintf( stderr, " flags=%08x,", req->flags );
2882 fprintf( stderr, " atom=%04x,", req->atom );
2883 fprintf( stderr, " style=%08x,", req->style );
2884 fprintf( stderr, " win_extra=%d,", req->win_extra );
2885 fprintf( stderr, " instance=%p,", req->instance );
2886 fprintf( stderr, " extra_offset=%d,", req->extra_offset );
2887 fprintf( stderr, " extra_size=%d,", req->extra_size );
2888 fprintf( stderr, " extra_value=%08x", req->extra_value );
2891 static void dump_set_class_info_reply( const struct set_class_info_reply *req )
2893 fprintf( stderr, " old_atom=%04x,", req->old_atom );
2894 fprintf( stderr, " old_style=%08x,", req->old_style );
2895 fprintf( stderr, " old_extra=%d,", req->old_extra );
2896 fprintf( stderr, " old_win_extra=%d,", req->old_win_extra );
2897 fprintf( stderr, " old_instance=%p,", req->old_instance );
2898 fprintf( stderr, " old_extra_value=%08x", req->old_extra_value );
2901 static void dump_set_clipboard_info_request( const struct set_clipboard_info_request *req )
2903 fprintf( stderr, " flags=%08x,", req->flags );
2904 fprintf( stderr, " clipboard=%p,", req->clipboard );
2905 fprintf( stderr, " owner=%p,", req->owner );
2906 fprintf( stderr, " viewer=%p,", req->viewer );
2907 fprintf( stderr, " seqno=%08x", req->seqno );
2910 static void dump_set_clipboard_info_reply( const struct set_clipboard_info_reply *req )
2912 fprintf( stderr, " flags=%08x,", req->flags );
2913 fprintf( stderr, " old_clipboard=%p,", req->old_clipboard );
2914 fprintf( stderr, " old_owner=%p,", req->old_owner );
2915 fprintf( stderr, " old_viewer=%p,", req->old_viewer );
2916 fprintf( stderr, " seqno=%08x", req->seqno );
2919 static void dump_open_token_request( const struct open_token_request *req )
2921 fprintf( stderr, " handle=%p,", req->handle );
2922 fprintf( stderr, " flags=%08x", req->flags );
2925 static void dump_open_token_reply( const struct open_token_reply *req )
2927 fprintf( stderr, " token=%p", req->token );
2930 static void dump_set_global_windows_request( const struct set_global_windows_request *req )
2932 fprintf( stderr, " flags=%08x,", req->flags );
2933 fprintf( stderr, " shell_window=%p,", req->shell_window );
2934 fprintf( stderr, " shell_listview=%p,", req->shell_listview );
2935 fprintf( stderr, " progman_window=%p,", req->progman_window );
2936 fprintf( stderr, " taskman_window=%p", req->taskman_window );
2939 static void dump_set_global_windows_reply( const struct set_global_windows_reply *req )
2941 fprintf( stderr, " old_shell_window=%p,", req->old_shell_window );
2942 fprintf( stderr, " old_shell_listview=%p,", req->old_shell_listview );
2943 fprintf( stderr, " old_progman_window=%p,", req->old_progman_window );
2944 fprintf( stderr, " old_taskman_window=%p", req->old_taskman_window );
2947 static void dump_adjust_token_privileges_request( const struct adjust_token_privileges_request *req )
2949 fprintf( stderr, " handle=%p,", req->handle );
2950 fprintf( stderr, " disable_all=%d,", req->disable_all );
2951 fprintf( stderr, " get_modified_state=%d,", req->get_modified_state );
2952 fprintf( stderr, " privileges=" );
2953 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
2956 static void dump_adjust_token_privileges_reply( const struct adjust_token_privileges_reply *req )
2958 fprintf( stderr, " len=%08x,", req->len );
2959 fprintf( stderr, " privileges=" );
2960 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
2963 static void dump_get_token_privileges_request( const struct get_token_privileges_request *req )
2965 fprintf( stderr, " handle=%p", req->handle );
2968 static void dump_get_token_privileges_reply( const struct get_token_privileges_reply *req )
2970 fprintf( stderr, " len=%08x,", req->len );
2971 fprintf( stderr, " privileges=" );
2972 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
2975 static void dump_check_token_privileges_request( const struct check_token_privileges_request *req )
2977 fprintf( stderr, " handle=%p,", req->handle );
2978 fprintf( stderr, " all_required=%d,", req->all_required );
2979 fprintf( stderr, " privileges=" );
2980 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
2983 static void dump_check_token_privileges_reply( const struct check_token_privileges_reply *req )
2985 fprintf( stderr, " has_privileges=%d,", req->has_privileges );
2986 fprintf( stderr, " privileges=" );
2987 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
2990 static void dump_duplicate_token_request( const struct duplicate_token_request *req )
2992 fprintf( stderr, " handle=%p,", req->handle );
2993 fprintf( stderr, " access=%08x,", req->access );
2994 fprintf( stderr, " inherit=%d,", req->inherit );
2995 fprintf( stderr, " primary=%d,", req->primary );
2996 fprintf( stderr, " impersonation_level=%d", req->impersonation_level );
2999 static void dump_duplicate_token_reply( const struct duplicate_token_reply *req )
3001 fprintf( stderr, " new_handle=%p", req->new_handle );
3004 static void dump_access_check_request( const struct access_check_request *req )
3006 fprintf( stderr, " handle=%p,", req->handle );
3007 fprintf( stderr, " desired_access=%08x,", req->desired_access );
3008 fprintf( stderr, " mapping_read=%08x,", req->mapping_read );
3009 fprintf( stderr, " mapping_write=%08x,", req->mapping_write );
3010 fprintf( stderr, " mapping_execute=%08x,", req->mapping_execute );
3011 fprintf( stderr, " mapping_all=%08x,", req->mapping_all );
3012 fprintf( stderr, " sd=" );
3013 dump_varargs_security_descriptor( cur_size );
3016 static void dump_access_check_reply( const struct access_check_reply *req )
3018 fprintf( stderr, " access_granted=%08x,", req->access_granted );
3019 fprintf( stderr, " access_status=%08x,", req->access_status );
3020 fprintf( stderr, " privileges_len=%08x,", req->privileges_len );
3021 fprintf( stderr, " privileges=" );
3022 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
3025 static void dump_create_mailslot_request( const struct create_mailslot_request *req )
3027 fprintf( stderr, " max_msgsize=%08x,", req->max_msgsize );
3028 fprintf( stderr, " read_timeout=%08x,", req->read_timeout );
3029 fprintf( stderr, " inherit=%d,", req->inherit );
3030 fprintf( stderr, " name=" );
3031 dump_varargs_unicode_str( cur_size );
3034 static void dump_create_mailslot_reply( const struct create_mailslot_reply *req )
3036 fprintf( stderr, " handle=%p", req->handle );
3039 static void dump_open_mailslot_request( const struct open_mailslot_request *req )
3041 fprintf( stderr, " access=%08x,", req->access );
3042 fprintf( stderr, " inherit=%d,", req->inherit );
3043 fprintf( stderr, " sharing=%08x,", req->sharing );
3044 fprintf( stderr, " name=" );
3045 dump_varargs_unicode_str( cur_size );
3048 static void dump_open_mailslot_reply( const struct open_mailslot_reply *req )
3050 fprintf( stderr, " handle=%p", req->handle );
3053 static void dump_set_mailslot_info_request( const struct set_mailslot_info_request *req )
3055 fprintf( stderr, " handle=%p,", req->handle );
3056 fprintf( stderr, " flags=%08x,", req->flags );
3057 fprintf( stderr, " read_timeout=%08x", req->read_timeout );
3060 static void dump_set_mailslot_info_reply( const struct set_mailslot_info_reply *req )
3062 fprintf( stderr, " max_msgsize=%08x,", req->max_msgsize );
3063 fprintf( stderr, " read_timeout=%08x,", req->read_timeout );
3064 fprintf( stderr, " msg_count=%08x,", req->msg_count );
3065 fprintf( stderr, " next_msgsize=%08x", req->next_msgsize );
3068 static const dump_func req_dumpers[REQ_NB_REQUESTS] = {
3069 (dump_func)dump_new_process_request,
3070 (dump_func)dump_get_new_process_info_request,
3071 (dump_func)dump_new_thread_request,
3072 (dump_func)dump_boot_done_request,
3073 (dump_func)dump_init_process_request,
3074 (dump_func)dump_get_startup_info_request,
3075 (dump_func)dump_init_process_done_request,
3076 (dump_func)dump_init_thread_request,
3077 (dump_func)dump_terminate_process_request,
3078 (dump_func)dump_terminate_thread_request,
3079 (dump_func)dump_get_process_info_request,
3080 (dump_func)dump_set_process_info_request,
3081 (dump_func)dump_get_thread_info_request,
3082 (dump_func)dump_set_thread_info_request,
3083 (dump_func)dump_get_dll_info_request,
3084 (dump_func)dump_suspend_thread_request,
3085 (dump_func)dump_resume_thread_request,
3086 (dump_func)dump_load_dll_request,
3087 (dump_func)dump_unload_dll_request,
3088 (dump_func)dump_queue_apc_request,
3089 (dump_func)dump_get_apc_request,
3090 (dump_func)dump_close_handle_request,
3091 (dump_func)dump_set_handle_info_request,
3092 (dump_func)dump_dup_handle_request,
3093 (dump_func)dump_open_process_request,
3094 (dump_func)dump_open_thread_request,
3095 (dump_func)dump_select_request,
3096 (dump_func)dump_create_event_request,
3097 (dump_func)dump_event_op_request,
3098 (dump_func)dump_open_event_request,
3099 (dump_func)dump_create_mutex_request,
3100 (dump_func)dump_release_mutex_request,
3101 (dump_func)dump_open_mutex_request,
3102 (dump_func)dump_create_semaphore_request,
3103 (dump_func)dump_release_semaphore_request,
3104 (dump_func)dump_open_semaphore_request,
3105 (dump_func)dump_create_file_request,
3106 (dump_func)dump_alloc_file_handle_request,
3107 (dump_func)dump_get_handle_fd_request,
3108 (dump_func)dump_flush_file_request,
3109 (dump_func)dump_lock_file_request,
3110 (dump_func)dump_unlock_file_request,
3111 (dump_func)dump_create_socket_request,
3112 (dump_func)dump_accept_socket_request,
3113 (dump_func)dump_set_socket_event_request,
3114 (dump_func)dump_get_socket_event_request,
3115 (dump_func)dump_enable_socket_event_request,
3116 (dump_func)dump_set_socket_deferred_request,
3117 (dump_func)dump_alloc_console_request,
3118 (dump_func)dump_free_console_request,
3119 (dump_func)dump_get_console_renderer_events_request,
3120 (dump_func)dump_open_console_request,
3121 (dump_func)dump_get_console_wait_event_request,
3122 (dump_func)dump_get_console_mode_request,
3123 (dump_func)dump_set_console_mode_request,
3124 (dump_func)dump_set_console_input_info_request,
3125 (dump_func)dump_get_console_input_info_request,
3126 (dump_func)dump_append_console_input_history_request,
3127 (dump_func)dump_get_console_input_history_request,
3128 (dump_func)dump_create_console_output_request,
3129 (dump_func)dump_set_console_output_info_request,
3130 (dump_func)dump_get_console_output_info_request,
3131 (dump_func)dump_write_console_input_request,
3132 (dump_func)dump_read_console_input_request,
3133 (dump_func)dump_write_console_output_request,
3134 (dump_func)dump_fill_console_output_request,
3135 (dump_func)dump_read_console_output_request,
3136 (dump_func)dump_move_console_output_request,
3137 (dump_func)dump_send_console_signal_request,
3138 (dump_func)dump_create_change_notification_request,
3139 (dump_func)dump_next_change_notification_request,
3140 (dump_func)dump_create_mapping_request,
3141 (dump_func)dump_open_mapping_request,
3142 (dump_func)dump_get_mapping_info_request,
3143 (dump_func)dump_create_snapshot_request,
3144 (dump_func)dump_next_process_request,
3145 (dump_func)dump_next_thread_request,
3146 (dump_func)dump_next_module_request,
3147 (dump_func)dump_wait_debug_event_request,
3148 (dump_func)dump_queue_exception_event_request,
3149 (dump_func)dump_get_exception_status_request,
3150 (dump_func)dump_output_debug_string_request,
3151 (dump_func)dump_continue_debug_event_request,
3152 (dump_func)dump_debug_process_request,
3153 (dump_func)dump_debug_break_request,
3154 (dump_func)dump_set_debugger_kill_on_exit_request,
3155 (dump_func)dump_read_process_memory_request,
3156 (dump_func)dump_write_process_memory_request,
3157 (dump_func)dump_create_key_request,
3158 (dump_func)dump_open_key_request,
3159 (dump_func)dump_delete_key_request,
3160 (dump_func)dump_flush_key_request,
3161 (dump_func)dump_enum_key_request,
3162 (dump_func)dump_set_key_value_request,
3163 (dump_func)dump_get_key_value_request,
3164 (dump_func)dump_enum_key_value_request,
3165 (dump_func)dump_delete_key_value_request,
3166 (dump_func)dump_load_registry_request,
3167 (dump_func)dump_unload_registry_request,
3168 (dump_func)dump_save_registry_request,
3169 (dump_func)dump_load_user_registries_request,
3170 (dump_func)dump_set_registry_notification_request,
3171 (dump_func)dump_create_timer_request,
3172 (dump_func)dump_open_timer_request,
3173 (dump_func)dump_set_timer_request,
3174 (dump_func)dump_cancel_timer_request,
3175 (dump_func)dump_get_timer_info_request,
3176 (dump_func)dump_get_thread_context_request,
3177 (dump_func)dump_set_thread_context_request,
3178 (dump_func)dump_get_selector_entry_request,
3179 (dump_func)dump_add_atom_request,
3180 (dump_func)dump_delete_atom_request,
3181 (dump_func)dump_find_atom_request,
3182 (dump_func)dump_get_atom_information_request,
3183 (dump_func)dump_set_atom_information_request,
3184 (dump_func)dump_empty_atom_table_request,
3185 (dump_func)dump_init_atom_table_request,
3186 (dump_func)dump_get_msg_queue_request,
3187 (dump_func)dump_set_queue_mask_request,
3188 (dump_func)dump_get_queue_status_request,
3189 (dump_func)dump_wait_input_idle_request,
3190 (dump_func)dump_send_message_request,
3191 (dump_func)dump_get_message_request,
3192 (dump_func)dump_reply_message_request,
3193 (dump_func)dump_accept_hardware_message_request,
3194 (dump_func)dump_get_message_reply_request,
3195 (dump_func)dump_set_win_timer_request,
3196 (dump_func)dump_kill_win_timer_request,
3197 (dump_func)dump_get_serial_info_request,
3198 (dump_func)dump_set_serial_info_request,
3199 (dump_func)dump_register_async_request,
3200 (dump_func)dump_cancel_async_request,
3201 (dump_func)dump_create_named_pipe_request,
3202 (dump_func)dump_open_named_pipe_request,
3203 (dump_func)dump_connect_named_pipe_request,
3204 (dump_func)dump_wait_named_pipe_request,
3205 (dump_func)dump_disconnect_named_pipe_request,
3206 (dump_func)dump_get_named_pipe_info_request,
3207 (dump_func)dump_create_window_request,
3208 (dump_func)dump_destroy_window_request,
3209 (dump_func)dump_set_window_owner_request,
3210 (dump_func)dump_get_window_info_request,
3211 (dump_func)dump_set_window_info_request,
3212 (dump_func)dump_set_parent_request,
3213 (dump_func)dump_get_window_parents_request,
3214 (dump_func)dump_get_window_children_request,
3215 (dump_func)dump_get_window_children_from_point_request,
3216 (dump_func)dump_get_window_tree_request,
3217 (dump_func)dump_set_window_pos_request,
3218 (dump_func)dump_get_window_rectangles_request,
3219 (dump_func)dump_get_window_text_request,
3220 (dump_func)dump_set_window_text_request,
3221 (dump_func)dump_get_windows_offset_request,
3222 (dump_func)dump_get_visible_region_request,
3223 (dump_func)dump_get_window_region_request,
3224 (dump_func)dump_set_window_region_request,
3225 (dump_func)dump_get_update_region_request,
3226 (dump_func)dump_update_window_zorder_request,
3227 (dump_func)dump_redraw_window_request,
3228 (dump_func)dump_set_window_property_request,
3229 (dump_func)dump_remove_window_property_request,
3230 (dump_func)dump_get_window_property_request,
3231 (dump_func)dump_get_window_properties_request,
3232 (dump_func)dump_create_winstation_request,
3233 (dump_func)dump_open_winstation_request,
3234 (dump_func)dump_close_winstation_request,
3235 (dump_func)dump_get_process_winstation_request,
3236 (dump_func)dump_set_process_winstation_request,
3237 (dump_func)dump_create_desktop_request,
3238 (dump_func)dump_open_desktop_request,
3239 (dump_func)dump_close_desktop_request,
3240 (dump_func)dump_get_thread_desktop_request,
3241 (dump_func)dump_set_thread_desktop_request,
3242 (dump_func)dump_set_user_object_info_request,
3243 (dump_func)dump_attach_thread_input_request,
3244 (dump_func)dump_get_thread_input_request,
3245 (dump_func)dump_get_last_input_time_request,
3246 (dump_func)dump_get_key_state_request,
3247 (dump_func)dump_set_key_state_request,
3248 (dump_func)dump_set_foreground_window_request,
3249 (dump_func)dump_set_focus_window_request,
3250 (dump_func)dump_set_active_window_request,
3251 (dump_func)dump_set_capture_window_request,
3252 (dump_func)dump_set_caret_window_request,
3253 (dump_func)dump_set_caret_info_request,
3254 (dump_func)dump_set_hook_request,
3255 (dump_func)dump_remove_hook_request,
3256 (dump_func)dump_start_hook_chain_request,
3257 (dump_func)dump_finish_hook_chain_request,
3258 (dump_func)dump_get_next_hook_request,
3259 (dump_func)dump_create_class_request,
3260 (dump_func)dump_destroy_class_request,
3261 (dump_func)dump_set_class_info_request,
3262 (dump_func)dump_set_clipboard_info_request,
3263 (dump_func)dump_open_token_request,
3264 (dump_func)dump_set_global_windows_request,
3265 (dump_func)dump_adjust_token_privileges_request,
3266 (dump_func)dump_get_token_privileges_request,
3267 (dump_func)dump_check_token_privileges_request,
3268 (dump_func)dump_duplicate_token_request,
3269 (dump_func)dump_access_check_request,
3270 (dump_func)dump_create_mailslot_request,
3271 (dump_func)dump_open_mailslot_request,
3272 (dump_func)dump_set_mailslot_info_request,
3275 static const dump_func reply_dumpers[REQ_NB_REQUESTS] = {
3276 (dump_func)dump_new_process_reply,
3277 (dump_func)dump_get_new_process_info_reply,
3278 (dump_func)dump_new_thread_reply,
3280 (dump_func)dump_init_process_reply,
3281 (dump_func)dump_get_startup_info_reply,
3283 (dump_func)dump_init_thread_reply,
3284 (dump_func)dump_terminate_process_reply,
3285 (dump_func)dump_terminate_thread_reply,
3286 (dump_func)dump_get_process_info_reply,
3288 (dump_func)dump_get_thread_info_reply,
3290 (dump_func)dump_get_dll_info_reply,
3291 (dump_func)dump_suspend_thread_reply,
3292 (dump_func)dump_resume_thread_reply,
3296 (dump_func)dump_get_apc_reply,
3297 (dump_func)dump_close_handle_reply,
3298 (dump_func)dump_set_handle_info_reply,
3299 (dump_func)dump_dup_handle_reply,
3300 (dump_func)dump_open_process_reply,
3301 (dump_func)dump_open_thread_reply,
3303 (dump_func)dump_create_event_reply,
3305 (dump_func)dump_open_event_reply,
3306 (dump_func)dump_create_mutex_reply,
3307 (dump_func)dump_release_mutex_reply,
3308 (dump_func)dump_open_mutex_reply,
3309 (dump_func)dump_create_semaphore_reply,
3310 (dump_func)dump_release_semaphore_reply,
3311 (dump_func)dump_open_semaphore_reply,
3312 (dump_func)dump_create_file_reply,
3313 (dump_func)dump_alloc_file_handle_reply,
3314 (dump_func)dump_get_handle_fd_reply,
3315 (dump_func)dump_flush_file_reply,
3316 (dump_func)dump_lock_file_reply,
3318 (dump_func)dump_create_socket_reply,
3319 (dump_func)dump_accept_socket_reply,
3321 (dump_func)dump_get_socket_event_reply,
3324 (dump_func)dump_alloc_console_reply,
3326 (dump_func)dump_get_console_renderer_events_reply,
3327 (dump_func)dump_open_console_reply,
3328 (dump_func)dump_get_console_wait_event_reply,
3329 (dump_func)dump_get_console_mode_reply,
3332 (dump_func)dump_get_console_input_info_reply,
3334 (dump_func)dump_get_console_input_history_reply,
3335 (dump_func)dump_create_console_output_reply,
3337 (dump_func)dump_get_console_output_info_reply,
3338 (dump_func)dump_write_console_input_reply,
3339 (dump_func)dump_read_console_input_reply,
3340 (dump_func)dump_write_console_output_reply,
3341 (dump_func)dump_fill_console_output_reply,
3342 (dump_func)dump_read_console_output_reply,
3345 (dump_func)dump_create_change_notification_reply,
3347 (dump_func)dump_create_mapping_reply,
3348 (dump_func)dump_open_mapping_reply,
3349 (dump_func)dump_get_mapping_info_reply,
3350 (dump_func)dump_create_snapshot_reply,
3351 (dump_func)dump_next_process_reply,
3352 (dump_func)dump_next_thread_reply,
3353 (dump_func)dump_next_module_reply,
3354 (dump_func)dump_wait_debug_event_reply,
3355 (dump_func)dump_queue_exception_event_reply,
3356 (dump_func)dump_get_exception_status_reply,
3360 (dump_func)dump_debug_break_reply,
3362 (dump_func)dump_read_process_memory_reply,
3364 (dump_func)dump_create_key_reply,
3365 (dump_func)dump_open_key_reply,
3368 (dump_func)dump_enum_key_reply,
3370 (dump_func)dump_get_key_value_reply,
3371 (dump_func)dump_enum_key_value_reply,
3378 (dump_func)dump_create_timer_reply,
3379 (dump_func)dump_open_timer_reply,
3380 (dump_func)dump_set_timer_reply,
3381 (dump_func)dump_cancel_timer_reply,
3382 (dump_func)dump_get_timer_info_reply,
3383 (dump_func)dump_get_thread_context_reply,
3385 (dump_func)dump_get_selector_entry_reply,
3386 (dump_func)dump_add_atom_reply,
3388 (dump_func)dump_find_atom_reply,
3389 (dump_func)dump_get_atom_information_reply,
3392 (dump_func)dump_init_atom_table_reply,
3393 (dump_func)dump_get_msg_queue_reply,
3394 (dump_func)dump_set_queue_mask_reply,
3395 (dump_func)dump_get_queue_status_reply,
3396 (dump_func)dump_wait_input_idle_reply,
3398 (dump_func)dump_get_message_reply,
3401 (dump_func)dump_get_message_reply_reply,
3402 (dump_func)dump_set_win_timer_reply,
3404 (dump_func)dump_get_serial_info_reply,
3408 (dump_func)dump_create_named_pipe_reply,
3409 (dump_func)dump_open_named_pipe_reply,
3412 (dump_func)dump_disconnect_named_pipe_reply,
3413 (dump_func)dump_get_named_pipe_info_reply,
3414 (dump_func)dump_create_window_reply,
3416 (dump_func)dump_set_window_owner_reply,
3417 (dump_func)dump_get_window_info_reply,
3418 (dump_func)dump_set_window_info_reply,
3419 (dump_func)dump_set_parent_reply,
3420 (dump_func)dump_get_window_parents_reply,
3421 (dump_func)dump_get_window_children_reply,
3422 (dump_func)dump_get_window_children_from_point_reply,
3423 (dump_func)dump_get_window_tree_reply,
3424 (dump_func)dump_set_window_pos_reply,
3425 (dump_func)dump_get_window_rectangles_reply,
3426 (dump_func)dump_get_window_text_reply,
3428 (dump_func)dump_get_windows_offset_reply,
3429 (dump_func)dump_get_visible_region_reply,
3430 (dump_func)dump_get_window_region_reply,
3432 (dump_func)dump_get_update_region_reply,
3436 (dump_func)dump_remove_window_property_reply,
3437 (dump_func)dump_get_window_property_reply,
3438 (dump_func)dump_get_window_properties_reply,
3439 (dump_func)dump_create_winstation_reply,
3440 (dump_func)dump_open_winstation_reply,
3442 (dump_func)dump_get_process_winstation_reply,
3444 (dump_func)dump_create_desktop_reply,
3445 (dump_func)dump_open_desktop_reply,
3447 (dump_func)dump_get_thread_desktop_reply,
3449 (dump_func)dump_set_user_object_info_reply,
3451 (dump_func)dump_get_thread_input_reply,
3452 (dump_func)dump_get_last_input_time_reply,
3453 (dump_func)dump_get_key_state_reply,
3455 (dump_func)dump_set_foreground_window_reply,
3456 (dump_func)dump_set_focus_window_reply,
3457 (dump_func)dump_set_active_window_reply,
3458 (dump_func)dump_set_capture_window_reply,
3459 (dump_func)dump_set_caret_window_reply,
3460 (dump_func)dump_set_caret_info_reply,
3461 (dump_func)dump_set_hook_reply,
3462 (dump_func)dump_remove_hook_reply,
3463 (dump_func)dump_start_hook_chain_reply,
3465 (dump_func)dump_get_next_hook_reply,
3467 (dump_func)dump_destroy_class_reply,
3468 (dump_func)dump_set_class_info_reply,
3469 (dump_func)dump_set_clipboard_info_reply,
3470 (dump_func)dump_open_token_reply,
3471 (dump_func)dump_set_global_windows_reply,
3472 (dump_func)dump_adjust_token_privileges_reply,
3473 (dump_func)dump_get_token_privileges_reply,
3474 (dump_func)dump_check_token_privileges_reply,
3475 (dump_func)dump_duplicate_token_reply,
3476 (dump_func)dump_access_check_reply,
3477 (dump_func)dump_create_mailslot_reply,
3478 (dump_func)dump_open_mailslot_reply,
3479 (dump_func)dump_set_mailslot_info_reply,
3482 static const char * const req_names[REQ_NB_REQUESTS] = {
3484 "get_new_process_info",
3489 "init_process_done",
3491 "terminate_process",
3517 "release_semaphore",
3520 "alloc_file_handle",
3529 "enable_socket_event",
3530 "set_socket_deferred",
3533 "get_console_renderer_events",
3535 "get_console_wait_event",
3538 "set_console_input_info",
3539 "get_console_input_info",
3540 "append_console_input_history",
3541 "get_console_input_history",
3542 "create_console_output",
3543 "set_console_output_info",
3544 "get_console_output_info",
3545 "write_console_input",
3546 "read_console_input",
3547 "write_console_output",
3548 "fill_console_output",
3549 "read_console_output",
3550 "move_console_output",
3551 "send_console_signal",
3552 "create_change_notification",
3553 "next_change_notification",
3562 "queue_exception_event",
3563 "get_exception_status",
3564 "output_debug_string",
3565 "continue_debug_event",
3568 "set_debugger_kill_on_exit",
3569 "read_process_memory",
3570 "write_process_memory",
3583 "load_user_registries",
3584 "set_registry_notification",
3590 "get_thread_context",
3591 "set_thread_context",
3592 "get_selector_entry",
3596 "get_atom_information",
3597 "set_atom_information",
3607 "accept_hardware_message",
3608 "get_message_reply",
3615 "create_named_pipe",
3617 "connect_named_pipe",
3619 "disconnect_named_pipe",
3620 "get_named_pipe_info",
3627 "get_window_parents",
3628 "get_window_children",
3629 "get_window_children_from_point",
3632 "get_window_rectangles",
3635 "get_windows_offset",
3636 "get_visible_region",
3637 "get_window_region",
3638 "set_window_region",
3639 "get_update_region",
3640 "update_window_zorder",
3642 "set_window_property",
3643 "remove_window_property",
3644 "get_window_property",
3645 "get_window_properties",
3646 "create_winstation",
3649 "get_process_winstation",
3650 "set_process_winstation",
3654 "get_thread_desktop",
3655 "set_thread_desktop",
3656 "set_user_object_info",
3657 "attach_thread_input",
3659 "get_last_input_time",
3662 "set_foreground_window",
3664 "set_active_window",
3665 "set_capture_window",
3671 "finish_hook_chain",
3676 "set_clipboard_info",
3678 "set_global_windows",
3679 "adjust_token_privileges",
3680 "get_token_privileges",
3681 "check_token_privileges",
3686 "set_mailslot_info",
3689 /* ### make_requests end ### */
3690 /* Everything above this line is generated automatically by tools/make_requests */
3692 static const char *get_status_name( unsigned int status )
3694 #define NAME(status) { #status, STATUS_##status }
3695 #define NAME_WIN32(error) { #error, 0xc0010000 | error }
3702 NAME(ACCESS_DENIED),
3703 NAME(ACCESS_VIOLATION),
3705 NAME(BUFFER_OVERFLOW),
3706 NAME(CHILD_MUST_BE_VOLATILE),
3707 NAME(DIRECTORY_NOT_EMPTY),
3709 NAME(DLL_NOT_FOUND),
3710 NAME(FILE_IS_A_DIRECTORY),
3711 NAME(FILE_LOCK_CONFLICT),
3712 NAME(INVALID_FILE_FOR_SECTION),
3713 NAME(INVALID_HANDLE),
3714 NAME(INVALID_PARAMETER),
3716 NAME(MEDIA_WRITE_PROTECTED),
3717 NAME(MUTANT_NOT_OWNED),
3718 NAME(NOT_A_DIRECTORY),
3719 NAME(NOT_IMPLEMENTED),
3720 NAME(NOT_REGISTRY_FILE),
3721 NAME(NO_DATA_DETECTED),
3723 NAME(NO_MORE_ENTRIES),
3724 NAME(NO_MORE_FILES),
3726 NAME(OBJECT_NAME_COLLISION),
3727 NAME(OBJECT_NAME_INVALID),
3728 NAME(OBJECT_NAME_NOT_FOUND),
3729 NAME(OBJECT_PATH_INVALID),
3730 NAME(OBJECT_TYPE_MISMATCH),
3733 NAME(PIPE_CONNECTED),
3734 NAME(PIPE_DISCONNECTED),
3735 NAME(PIPE_LISTENING),
3736 NAME(PIPE_NOT_AVAILABLE),
3737 NAME(SEMAPHORE_LIMIT_EXCEEDED),
3738 NAME(SHARING_VIOLATION),
3739 NAME(SUSPEND_COUNT_EXCEEDED),
3743 NAME_WIN32(ERROR_INVALID_INDEX),
3744 NAME_WIN32(ERROR_INVALID_THREAD_ID),
3745 NAME_WIN32(ERROR_NEGATIVE_SEEK),
3746 NAME_WIN32(ERROR_SEEK),
3747 { NULL, 0 } /* terminator */
3752 static char buffer[10];
3756 for (i = 0; status_names[i].name; i++)
3757 if (status_names[i].value == status) return status_names[i].name;
3759 sprintf( buffer, "%x", status );
3763 void trace_request(void)
3765 enum request req = current->req.request_header.req;
3766 if (req < REQ_NB_REQUESTS)
3768 fprintf( stderr, "%04x: %s(", current->id, req_names[req] );
3769 if (req_dumpers[req])
3772 cur_data = get_req_data();
3773 cur_size = get_req_data_size();
3774 req_dumpers[req]( ¤t->req );
3776 fprintf( stderr, " )\n" );
3778 else fprintf( stderr, "%04x: %d(?)\n", current->id, req );
3781 void trace_reply( enum request req, const union generic_reply *reply )
3783 if (req < REQ_NB_REQUESTS)
3785 fprintf( stderr, "%04x: %s() = %s",
3786 current->id, req_names[req], get_status_name(current->error) );
3787 if (reply_dumpers[req])
3789 fprintf( stderr, " {" );
3791 cur_data = current->reply_data;
3792 cur_size = reply->reply_header.reply_size;
3793 reply_dumpers[req]( reply );
3794 fprintf( stderr, " }" );
3796 fputc( '\n', stderr );
3798 else fprintf( stderr, "%04x: %d() = %s\n",
3799 current->id, req, get_status_name(current->error) );