2 * Server request tracing
4 * Copyright (C) 1999 Alexandre Julliard
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22 #include "wine/port.h"
27 #include <sys/types.h>
42 static const void *cur_data;
45 /* utility functions */
47 inline static void remove_data( size_t size )
49 cur_data = (const char *)cur_data + size;
53 static void dump_uints( const int *ptr, int len )
58 fprintf( stderr, "%08x", *ptr++ );
59 if (--len) fputc( ',', stderr );
64 static void dump_abs_time( const abs_time_t *time )
69 if (!time->sec && !time->usec)
71 fprintf( stderr, "0" );
74 gettimeofday( &tv, NULL );
75 secs = time->sec - tv.tv_sec;
76 if ((usecs = time->usec - tv.tv_usec) < 0)
81 if (secs > 0 || (secs == 0 && usecs >= 0))
82 fprintf( stderr, "%d.%06d (+%d.%06d)", time->sec, time->usec, secs, usecs );
84 fprintf( stderr, "%d.%06d (-%d.%06d)", time->sec, time->usec, abs(secs+1), 1000000-usecs );
87 static void dump_rectangle( const rectangle_t *rect )
89 fprintf( stderr, "{%d,%d;%d,%d}",
90 rect->left, rect->top, rect->right, rect->bottom );
93 static void dump_char_info( const char_info_t *info )
95 fprintf( stderr, "{'" );
96 dump_strW( &info->ch, 1, stderr, "\'\'" );
97 fprintf( stderr, "',%04x}", info->attr );
100 static void dump_context( const CONTEXT *context )
103 fprintf( stderr, "{flags=%08lx,eax=%08lx,ebx=%08lx,ecx=%08lx,edx=%08lx,esi=%08lx,edi=%08lx,"
104 "ebp=%08lx,eip=%08lx,esp=%08lx,eflags=%08lx,cs=%04lx,ds=%04lx,es=%04lx,"
105 "fs=%04lx,gs=%04lx,dr0=%08lx,dr1=%08lx,dr2=%08lx,dr3=%08lx,dr6=%08lx,dr7=%08lx,",
106 context->ContextFlags, context->Eax, context->Ebx, context->Ecx, context->Edx,
107 context->Esi, context->Edi, context->Ebp, context->Eip, context->Esp, context->EFlags,
108 context->SegCs, context->SegDs, context->SegEs, context->SegFs, context->SegGs,
109 context->Dr0, context->Dr1, context->Dr2, context->Dr3, context->Dr6, context->Dr7 );
110 fprintf( stderr, "float=" );
111 dump_uints( (const int *)&context->FloatSave, sizeof(context->FloatSave) / sizeof(int) );
112 fprintf( stderr, "}" );
114 dump_uints( (const int *)context, sizeof(*context) / sizeof(int) );
118 static void dump_exc_record( const EXCEPTION_RECORD *rec )
121 fprintf( stderr, "{code=%lx,flags=%lx,rec=%p,addr=%p,params={",
122 rec->ExceptionCode, rec->ExceptionFlags, rec->ExceptionRecord,
123 rec->ExceptionAddress );
124 for (i = 0; i < min(rec->NumberParameters,EXCEPTION_MAXIMUM_PARAMETERS); i++)
126 if (i) fputc( ',', stderr );
127 fprintf( stderr, "%lx", rec->ExceptionInformation[i] );
129 fputc( '}', stderr );
132 static void dump_varargs_ints( size_t size )
134 const int *data = cur_data;
135 size_t len = size / sizeof(*data);
137 fputc( '{', stderr );
140 fprintf( stderr, "%d", *data++ );
141 if (--len) fputc( ',', stderr );
143 fputc( '}', stderr );
147 static void dump_varargs_handles( size_t size )
149 const obj_handle_t *data = cur_data;
150 size_t len = size / sizeof(*data);
152 fputc( '{', stderr );
155 fprintf( stderr, "%p", *data++ );
156 if (--len) fputc( ',', stderr );
158 fputc( '}', stderr );
162 static void dump_varargs_user_handles( size_t size )
164 const user_handle_t *data = cur_data;
165 size_t len = size / sizeof(*data);
167 fputc( '{', stderr );
170 fprintf( stderr, "%p", *data++ );
171 if (--len) fputc( ',', stderr );
173 fputc( '}', stderr );
177 static void dump_varargs_bytes( size_t size )
179 const unsigned char *data = cur_data;
182 fputc( '{', stderr );
185 fprintf( stderr, "%02x", *data++ );
186 if (--len) fputc( ',', stderr );
188 fputc( '}', stderr );
192 static void dump_varargs_string( size_t size )
194 fprintf( stderr, "\"%.*s\"", (int)size, (const char *)cur_data );
198 static void dump_varargs_unicode_str( size_t size )
200 fprintf( stderr, "L\"" );
201 dump_strW( cur_data, size / sizeof(WCHAR), stderr, "\"\"" );
202 fputc( '\"', stderr );
206 static void dump_varargs_context( size_t size )
210 fprintf( stderr, "{}" );
213 dump_context( cur_data );
217 static void dump_varargs_exc_event( size_t size )
219 const CONTEXT *ptr = cur_data;
223 fprintf( stderr, "{}" );
226 fprintf( stderr, "{context=" );
228 fprintf( stderr, ",rec=" );
229 dump_exc_record( (const EXCEPTION_RECORD *)(ptr + 1) );
230 fputc( '}', stderr );
234 static void dump_varargs_debug_event( size_t size )
236 const debug_event_t *event = cur_data;
240 fprintf( stderr, "{}" );
245 case EXCEPTION_DEBUG_EVENT:
246 fprintf( stderr, "{exception," );
247 dump_exc_record( &event->info.exception.record );
248 fprintf( stderr, ",first=%d}", event->info.exception.first );
250 case CREATE_THREAD_DEBUG_EVENT:
251 fprintf( stderr, "{create_thread,thread=%p,teb=%p,start=%p}",
252 event->info.create_thread.handle, event->info.create_thread.teb,
253 event->info.create_thread.start );
255 case CREATE_PROCESS_DEBUG_EVENT:
256 fprintf( stderr, "{create_process,file=%p,process=%p,thread=%p,base=%p,offset=%d,"
257 "size=%d,teb=%p,start=%p,name=%p,unicode=%d}",
258 event->info.create_process.file, event->info.create_process.process,
259 event->info.create_process.thread, event->info.create_process.base,
260 event->info.create_process.dbg_offset, event->info.create_process.dbg_size,
261 event->info.create_process.teb, event->info.create_process.start,
262 event->info.create_process.name, event->info.create_process.unicode );
264 case EXIT_THREAD_DEBUG_EVENT:
265 fprintf( stderr, "{exit_thread,code=%d}", event->info.exit.exit_code );
267 case EXIT_PROCESS_DEBUG_EVENT:
268 fprintf( stderr, "{exit_process,code=%d}", event->info.exit.exit_code );
270 case LOAD_DLL_DEBUG_EVENT:
271 fprintf( stderr, "{load_dll,file=%p,base=%p,offset=%d,size=%d,name=%p,unicode=%d}",
272 event->info.load_dll.handle, event->info.load_dll.base,
273 event->info.load_dll.dbg_offset, event->info.load_dll.dbg_size,
274 event->info.load_dll.name, event->info.load_dll.unicode );
276 case UNLOAD_DLL_DEBUG_EVENT:
277 fprintf( stderr, "{unload_dll,base=%p}", event->info.unload_dll.base );
279 case OUTPUT_DEBUG_STRING_EVENT:
280 fprintf( stderr, "{output_string,data=%p,unicode=%d,len=%d}",
281 event->info.output_string.string, event->info.output_string.unicode,
282 event->info.output_string.length );
285 fprintf( stderr, "{rip,err=%d,type=%d}",
286 event->info.rip_info.error, event->info.rip_info.type );
288 case 0: /* zero is the code returned on timeouts */
289 fprintf( stderr, "{}" );
292 fprintf( stderr, "{code=??? (%d)}", event->code );
298 /* dump a unicode string contained in a buffer; helper for dump_varargs_startup_info */
299 static void dump_inline_unicode_string( const UNICODE_STRING *str, const void *data, size_t size )
301 size_t length = str->Length / sizeof(WCHAR);
302 size_t offset = (size_t)str->Buffer;
304 if (offset >= size) return;
305 if (offset + length > size) length = size - offset;
306 dump_strW( (const WCHAR *)data + offset/sizeof(WCHAR), length, stderr, "\"\"" );
309 static void dump_varargs_startup_info( size_t size )
311 const RTL_USER_PROCESS_PARAMETERS *ptr = cur_data;
312 RTL_USER_PROCESS_PARAMETERS params;
314 if (size < sizeof(params.Size))
316 fprintf( stderr, "{}" );
319 if (size > ptr->Size) size = ptr->Size;
320 memset( ¶ms, 0, sizeof(params) );
321 memcpy( ¶ms, ptr, min( size, sizeof(params) ));
323 fprintf( stderr, "{AllocationSize=%lx,", params.AllocationSize );
324 fprintf( stderr, "Size=%lx,", params.Size );
325 fprintf( stderr, "Flags=%lx,", params.Flags );
326 fprintf( stderr, "DebugFlags=%lx,", params.DebugFlags );
327 fprintf( stderr, "ConsoleHandle=%p,", params.ConsoleHandle );
328 fprintf( stderr, "ConsoleFlags=%lx,", params.ConsoleFlags );
329 fprintf( stderr, "hStdInput=%p,", params.hStdInput );
330 fprintf( stderr, "hStdOutput=%p,", params.hStdOutput );
331 fprintf( stderr, "hStdError=%p,", params.hStdError );
332 fprintf( stderr, "CurrentDirectory.Handle=%p,", params.CurrentDirectory.Handle );
333 fprintf( stderr, "dwX=%ld,", params.dwX );
334 fprintf( stderr, "dwY=%ld,", params.dwY );
335 fprintf( stderr, "dwXSize=%ld,", params.dwXSize );
336 fprintf( stderr, "dwYSize=%ld,", params.dwYSize );
337 fprintf( stderr, "dwXCountChars=%ld,", params.dwXCountChars );
338 fprintf( stderr, "dwYCountChars=%ld,", params.dwYCountChars );
339 fprintf( stderr, "dwFillAttribute=%lx,", params.dwFillAttribute );
340 fprintf( stderr, "dwFlags=%lx,", params.dwFlags );
341 fprintf( stderr, "wShowWindow=%lx,", params.wShowWindow );
342 fprintf( stderr, "CurrentDirectory.DosPath=L\"" );
343 dump_inline_unicode_string( ¶ms.CurrentDirectory.DosPath, cur_data, size );
344 fprintf( stderr, "\",DllPath=L\"" );
345 dump_inline_unicode_string( ¶ms.DllPath, cur_data, size );
346 fprintf( stderr, "\",ImagePathName=L\"" );
347 dump_inline_unicode_string( ¶ms.ImagePathName, cur_data, size );
348 fprintf( stderr, "\",CommandLine=L\"" );
349 dump_inline_unicode_string( ¶ms.CommandLine, cur_data, size );
350 fprintf( stderr, "\",WindowTitle=L\"" );
351 dump_inline_unicode_string( ¶ms.WindowTitle, cur_data, size );
352 fprintf( stderr, "\",Desktop=L\"" );
353 dump_inline_unicode_string( ¶ms.Desktop, cur_data, size );
354 fprintf( stderr, "\",ShellInfo=L\"" );
355 dump_inline_unicode_string( ¶ms.ShellInfo, cur_data, size );
356 fprintf( stderr, "\",RuntimeInfo=L\"" );
357 dump_inline_unicode_string( ¶ms.RuntimeInfo, cur_data, size );
358 fprintf( stderr, "\"}" );
362 static void dump_varargs_input_records( size_t size )
364 const INPUT_RECORD *rec = cur_data;
365 size_t len = size / sizeof(*rec);
367 fputc( '{', stderr );
370 fprintf( stderr, "{%04x,...}", rec->EventType );
372 if (--len) fputc( ',', stderr );
374 fputc( '}', stderr );
378 static void dump_varargs_rectangles( size_t size )
380 const rectangle_t *rect = cur_data;
381 size_t len = size / sizeof(*rect);
383 fputc( '{', stderr );
386 dump_rectangle( rect++ );
387 if (--len) fputc( ',', stderr );
389 fputc( '}', stderr );
393 static void dump_varargs_properties( size_t size )
395 const property_data_t *prop = cur_data;
396 size_t len = size / sizeof(*prop);
398 fputc( '{', stderr );
401 fprintf( stderr, "{atom=%04x,str=%d,handle=%p}",
402 prop->atom, prop->string, prop->handle );
404 if (--len) fputc( ',', stderr );
406 fputc( '}', stderr );
410 static void dump_varargs_LUID_AND_ATTRIBUTES( size_t size )
412 const LUID_AND_ATTRIBUTES *lat = cur_data;
413 size_t len = size / sizeof(*lat);
415 fputc( '{', stderr );
418 fprintf( stderr, "{luid=%08lx%08lx,attr=%lx}",
419 lat->Luid.HighPart, lat->Luid.LowPart, lat->Attributes );
421 if (--len) fputc( ',', stderr );
423 fputc( '}', stderr );
427 static void dump_inline_sid( const SID *sid, size_t size )
432 if ((FIELD_OFFSET(SID, SubAuthority[0]) > size) ||
433 (FIELD_OFFSET(SID, SubAuthority[sid->SubAuthorityCount]) > size))
435 fprintf( stderr, "<invalid sid>" );
439 fputc( '{', stderr );
440 fprintf( stderr, "S-%u-%lu", sid->Revision, MAKELONG(
441 MAKEWORD( sid->IdentifierAuthority.Value[5],
442 sid->IdentifierAuthority.Value[4] ),
443 MAKEWORD( sid->IdentifierAuthority.Value[3],
444 sid->IdentifierAuthority.Value[2] ) ) );
445 for (i = 0; i < sid->SubAuthorityCount; i++)
446 fprintf( stderr, "-%lu", sid->SubAuthority[i] );
447 fputc( '}', stderr );
450 static void dump_inline_acl( const ACL *acl, size_t size )
452 const ACE_HEADER *ace;
454 fputc( '{', stderr );
458 if (size < sizeof(ACL))
460 fprintf( stderr, "<invalid acl>}\n" );
464 ace = (const ACE_HEADER *)(acl + 1);
465 for (i = 0; i < acl->AceCount; i++)
467 const SID *sid = NULL;
470 if (size < sizeof(ACE_HEADER))
472 if (size < ace->AceSize)
474 size -= ace->AceSize;
475 if (i != 0) fputc( ',', stderr );
476 fprintf( stderr, "{AceType=" );
477 switch (ace->AceType)
479 case ACCESS_DENIED_ACE_TYPE:
480 sid = (const SID *)&((const ACCESS_DENIED_ACE *)ace)->SidStart;
481 sid_size = ace->AceSize - FIELD_OFFSET(ACCESS_DENIED_ACE, SidStart);
482 fprintf( stderr, "ACCESS_DENIED_ACE_TYPE,Mask=%lx",
483 ((const ACCESS_DENIED_ACE *)ace)->Mask );
485 case ACCESS_ALLOWED_ACE_TYPE:
486 sid = (const SID *)&((const ACCESS_ALLOWED_ACE *)ace)->SidStart;
487 sid_size = ace->AceSize - FIELD_OFFSET(ACCESS_ALLOWED_ACE, SidStart);
488 fprintf( stderr, "ACCESS_ALLOWED_ACE_TYPE,Mask=%lx",
489 ((const ACCESS_ALLOWED_ACE *)ace)->Mask );
491 case SYSTEM_AUDIT_ACE_TYPE:
492 sid = (const SID *)&((const SYSTEM_AUDIT_ACE *)ace)->SidStart;
493 sid_size = ace->AceSize - FIELD_OFFSET(SYSTEM_AUDIT_ACE, SidStart);
494 fprintf( stderr, "SYSTEM_AUDIT_ACE_TYPE,Mask=%lx",
495 ((const SYSTEM_AUDIT_ACE *)ace)->Mask );
497 case SYSTEM_ALARM_ACE_TYPE:
498 sid = (const SID *)&((const SYSTEM_ALARM_ACE *)ace)->SidStart;
499 sid_size = ace->AceSize - FIELD_OFFSET(SYSTEM_ALARM_ACE, SidStart);
500 fprintf( stderr, "SYSTEM_ALARM_ACE_TYPE,Mask=%lx",
501 ((const SYSTEM_ALARM_ACE *)ace)->Mask );
504 fprintf( stderr, "unknown<%d>", ace->AceType );
507 fprintf( stderr, ",AceFlags=%x,Sid=", ace->AceFlags );
509 dump_inline_sid( sid, sid_size );
510 ace = (const ACE_HEADER *)((const char *)ace + ace->AceSize);
511 fputc( '}', stderr );
514 fputc( '}', stderr );
517 static void dump_inline_security_descriptor( const struct security_descriptor *sd, size_t size )
519 fputc( '{', stderr );
520 if (size >= sizeof(struct security_descriptor))
522 size_t offset = sizeof(struct security_descriptor);
523 fprintf( stderr, "control=%08x", sd->control );
524 fprintf( stderr, ",owner=" );
525 if ((sd->owner_len > FIELD_OFFSET(SID, SubAuthority[255])) || (offset + sd->owner_len > size))
527 dump_inline_sid( (const SID *)((const char *)sd + offset), sd->owner_len );
528 offset += sd->owner_len;
529 fprintf( stderr, ",group=" );
530 if ((sd->group_len > FIELD_OFFSET(SID, SubAuthority[255])) || (offset + sd->group_len > size))
532 dump_inline_sid( (const SID *)((const char *)sd + offset), sd->group_len );
533 offset += sd->group_len;
534 fprintf( stderr, ",sacl=" );
535 if ((sd->sacl_len >= MAX_ACL_LEN) || (offset + sd->sacl_len > size))
537 dump_inline_acl( (const ACL *)((const char *)sd + offset), sd->sacl_len );
538 offset += sd->sacl_len;
539 fprintf( stderr, ",dacl=" );
540 if ((sd->dacl_len >= MAX_ACL_LEN) || (offset + sd->dacl_len > size))
542 dump_inline_acl( (const ACL *)((const char *)sd + offset), sd->dacl_len );
543 offset += sd->dacl_len;
545 fputc( '}', stderr );
548 static void dump_varargs_security_descriptor( size_t size )
550 const struct security_descriptor *sd = cur_data;
551 dump_inline_security_descriptor( sd, size );
555 typedef void (*dump_func)( const void *req );
557 /* Everything below this line is generated automatically by tools/make_requests */
558 /* ### make_requests begin ### */
560 static void dump_new_process_request( const struct new_process_request *req )
562 fprintf( stderr, " inherit_all=%d,", req->inherit_all );
563 fprintf( stderr, " create_flags=%d,", req->create_flags );
564 fprintf( stderr, " unix_pid=%d,", req->unix_pid );
565 fprintf( stderr, " exe_file=%p,", req->exe_file );
566 fprintf( stderr, " hstdin=%p,", req->hstdin );
567 fprintf( stderr, " hstdout=%p,", req->hstdout );
568 fprintf( stderr, " hstderr=%p,", req->hstderr );
569 fprintf( stderr, " info=" );
570 dump_varargs_startup_info( cur_size );
571 fputc( ',', stderr );
572 fprintf( stderr, " env=" );
573 dump_varargs_unicode_str( cur_size );
576 static void dump_new_process_reply( const struct new_process_reply *req )
578 fprintf( stderr, " info=%p", req->info );
581 static void dump_get_new_process_info_request( const struct get_new_process_info_request *req )
583 fprintf( stderr, " info=%p,", req->info );
584 fprintf( stderr, " pinherit=%d,", req->pinherit );
585 fprintf( stderr, " tinherit=%d", req->tinherit );
588 static void dump_get_new_process_info_reply( const struct get_new_process_info_reply *req )
590 fprintf( stderr, " pid=%04x,", req->pid );
591 fprintf( stderr, " phandle=%p,", req->phandle );
592 fprintf( stderr, " tid=%04x,", req->tid );
593 fprintf( stderr, " thandle=%p,", req->thandle );
594 fprintf( stderr, " success=%d", req->success );
597 static void dump_new_thread_request( const struct new_thread_request *req )
599 fprintf( stderr, " suspend=%d,", req->suspend );
600 fprintf( stderr, " inherit=%d,", req->inherit );
601 fprintf( stderr, " request_fd=%d", req->request_fd );
604 static void dump_new_thread_reply( const struct new_thread_reply *req )
606 fprintf( stderr, " tid=%04x,", req->tid );
607 fprintf( stderr, " handle=%p", req->handle );
610 static void dump_boot_done_request( const struct boot_done_request *req )
612 fprintf( stderr, " debug_level=%d", req->debug_level );
615 static void dump_init_process_request( const struct init_process_request *req )
617 fprintf( stderr, " peb=%p,", req->peb );
618 fprintf( stderr, " ldt_copy=%p", req->ldt_copy );
621 static void dump_init_process_reply( const struct init_process_reply *req )
623 fprintf( stderr, " create_flags=%d,", req->create_flags );
624 fprintf( stderr, " server_start=%08x,", req->server_start );
625 fprintf( stderr, " info_size=%d,", req->info_size );
626 fprintf( stderr, " exe_file=%p,", req->exe_file );
627 fprintf( stderr, " hstdin=%p,", req->hstdin );
628 fprintf( stderr, " hstdout=%p,", req->hstdout );
629 fprintf( stderr, " hstderr=%p", req->hstderr );
632 static void dump_get_startup_info_request( const struct get_startup_info_request *req )
636 static void dump_get_startup_info_reply( const struct get_startup_info_reply *req )
638 fprintf( stderr, " info=" );
639 dump_varargs_startup_info( cur_size );
640 fputc( ',', stderr );
641 fprintf( stderr, " env=" );
642 dump_varargs_unicode_str( cur_size );
645 static void dump_init_process_done_request( const struct init_process_done_request *req )
647 fprintf( stderr, " module=%p,", req->module );
648 fprintf( stderr, " module_size=%d,", req->module_size );
649 fprintf( stderr, " entry=%p,", req->entry );
650 fprintf( stderr, " name=%p,", req->name );
651 fprintf( stderr, " exe_file=%p,", req->exe_file );
652 fprintf( stderr, " gui=%d,", req->gui );
653 fprintf( stderr, " filename=" );
654 dump_varargs_unicode_str( cur_size );
657 static void dump_init_thread_request( const struct init_thread_request *req )
659 fprintf( stderr, " unix_pid=%d,", req->unix_pid );
660 fprintf( stderr, " unix_tid=%d,", req->unix_tid );
661 fprintf( stderr, " teb=%p,", req->teb );
662 fprintf( stderr, " entry=%p,", req->entry );
663 fprintf( stderr, " reply_fd=%d,", req->reply_fd );
664 fprintf( stderr, " wait_fd=%d", req->wait_fd );
667 static void dump_init_thread_reply( const struct init_thread_reply *req )
669 fprintf( stderr, " pid=%04x,", req->pid );
670 fprintf( stderr, " tid=%04x,", req->tid );
671 fprintf( stderr, " boot=%d,", req->boot );
672 fprintf( stderr, " version=%d", req->version );
675 static void dump_terminate_process_request( const struct terminate_process_request *req )
677 fprintf( stderr, " handle=%p,", req->handle );
678 fprintf( stderr, " exit_code=%d", req->exit_code );
681 static void dump_terminate_process_reply( const struct terminate_process_reply *req )
683 fprintf( stderr, " self=%d", req->self );
686 static void dump_terminate_thread_request( const struct terminate_thread_request *req )
688 fprintf( stderr, " handle=%p,", req->handle );
689 fprintf( stderr, " exit_code=%d", req->exit_code );
692 static void dump_terminate_thread_reply( const struct terminate_thread_reply *req )
694 fprintf( stderr, " self=%d,", req->self );
695 fprintf( stderr, " last=%d", req->last );
698 static void dump_get_process_info_request( const struct get_process_info_request *req )
700 fprintf( stderr, " handle=%p", req->handle );
703 static void dump_get_process_info_reply( const struct get_process_info_reply *req )
705 fprintf( stderr, " pid=%04x,", req->pid );
706 fprintf( stderr, " ppid=%04x,", req->ppid );
707 fprintf( stderr, " exit_code=%d,", req->exit_code );
708 fprintf( stderr, " priority=%d,", req->priority );
709 fprintf( stderr, " process_affinity=%d,", req->process_affinity );
710 fprintf( stderr, " system_affinity=%d,", req->system_affinity );
711 fprintf( stderr, " peb=%p", req->peb );
714 static void dump_set_process_info_request( const struct set_process_info_request *req )
716 fprintf( stderr, " handle=%p,", req->handle );
717 fprintf( stderr, " mask=%d,", req->mask );
718 fprintf( stderr, " priority=%d,", req->priority );
719 fprintf( stderr, " affinity=%d", req->affinity );
722 static void dump_get_thread_info_request( const struct get_thread_info_request *req )
724 fprintf( stderr, " handle=%p,", req->handle );
725 fprintf( stderr, " tid_in=%04x", req->tid_in );
728 static void dump_get_thread_info_reply( const struct get_thread_info_reply *req )
730 fprintf( stderr, " pid=%04x,", req->pid );
731 fprintf( stderr, " tid=%04x,", req->tid );
732 fprintf( stderr, " teb=%p,", req->teb );
733 fprintf( stderr, " exit_code=%d,", req->exit_code );
734 fprintf( stderr, " priority=%d,", req->priority );
735 fprintf( stderr, " affinity=%d,", req->affinity );
736 fprintf( stderr, " creation_time=%ld,", (long)req->creation_time );
737 fprintf( stderr, " exit_time=%ld", (long)req->exit_time );
740 static void dump_set_thread_info_request( const struct set_thread_info_request *req )
742 fprintf( stderr, " handle=%p,", req->handle );
743 fprintf( stderr, " mask=%d,", req->mask );
744 fprintf( stderr, " priority=%d,", req->priority );
745 fprintf( stderr, " affinity=%d", req->affinity );
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 );
2255 static void dump_set_window_info_request( const struct set_window_info_request *req )
2257 fprintf( stderr, " handle=%p,", req->handle );
2258 fprintf( stderr, " flags=%08x,", req->flags );
2259 fprintf( stderr, " style=%08x,", req->style );
2260 fprintf( stderr, " ex_style=%08x,", req->ex_style );
2261 fprintf( stderr, " id=%08x,", req->id );
2262 fprintf( stderr, " instance=%p,", req->instance );
2263 fprintf( stderr, " user_data=%p,", req->user_data );
2264 fprintf( stderr, " extra_offset=%d,", req->extra_offset );
2265 fprintf( stderr, " extra_size=%d,", req->extra_size );
2266 fprintf( stderr, " extra_value=%08x", req->extra_value );
2269 static void dump_set_window_info_reply( const struct set_window_info_reply *req )
2271 fprintf( stderr, " old_style=%08x,", req->old_style );
2272 fprintf( stderr, " old_ex_style=%08x,", req->old_ex_style );
2273 fprintf( stderr, " old_id=%08x,", req->old_id );
2274 fprintf( stderr, " old_instance=%p,", req->old_instance );
2275 fprintf( stderr, " old_user_data=%p,", req->old_user_data );
2276 fprintf( stderr, " old_extra_value=%08x", req->old_extra_value );
2279 static void dump_set_parent_request( const struct set_parent_request *req )
2281 fprintf( stderr, " handle=%p,", req->handle );
2282 fprintf( stderr, " parent=%p", req->parent );
2285 static void dump_set_parent_reply( const struct set_parent_reply *req )
2287 fprintf( stderr, " old_parent=%p,", req->old_parent );
2288 fprintf( stderr, " full_parent=%p", req->full_parent );
2291 static void dump_get_window_parents_request( const struct get_window_parents_request *req )
2293 fprintf( stderr, " handle=%p", req->handle );
2296 static void dump_get_window_parents_reply( const struct get_window_parents_reply *req )
2298 fprintf( stderr, " count=%d,", req->count );
2299 fprintf( stderr, " parents=" );
2300 dump_varargs_user_handles( cur_size );
2303 static void dump_get_window_children_request( const struct get_window_children_request *req )
2305 fprintf( stderr, " parent=%p,", req->parent );
2306 fprintf( stderr, " atom=%04x,", req->atom );
2307 fprintf( stderr, " tid=%04x", req->tid );
2310 static void dump_get_window_children_reply( const struct get_window_children_reply *req )
2312 fprintf( stderr, " count=%d,", req->count );
2313 fprintf( stderr, " children=" );
2314 dump_varargs_user_handles( cur_size );
2317 static void dump_get_window_children_from_point_request( const struct get_window_children_from_point_request *req )
2319 fprintf( stderr, " parent=%p,", req->parent );
2320 fprintf( stderr, " x=%d,", req->x );
2321 fprintf( stderr, " y=%d", req->y );
2324 static void dump_get_window_children_from_point_reply( const struct get_window_children_from_point_reply *req )
2326 fprintf( stderr, " count=%d,", req->count );
2327 fprintf( stderr, " children=" );
2328 dump_varargs_user_handles( cur_size );
2331 static void dump_get_window_tree_request( const struct get_window_tree_request *req )
2333 fprintf( stderr, " handle=%p", req->handle );
2336 static void dump_get_window_tree_reply( const struct get_window_tree_reply *req )
2338 fprintf( stderr, " parent=%p,", req->parent );
2339 fprintf( stderr, " owner=%p,", req->owner );
2340 fprintf( stderr, " next_sibling=%p,", req->next_sibling );
2341 fprintf( stderr, " prev_sibling=%p,", req->prev_sibling );
2342 fprintf( stderr, " first_sibling=%p,", req->first_sibling );
2343 fprintf( stderr, " last_sibling=%p,", req->last_sibling );
2344 fprintf( stderr, " first_child=%p,", req->first_child );
2345 fprintf( stderr, " last_child=%p", req->last_child );
2348 static void dump_set_window_pos_request( const struct set_window_pos_request *req )
2350 fprintf( stderr, " handle=%p,", req->handle );
2351 fprintf( stderr, " previous=%p,", req->previous );
2352 fprintf( stderr, " flags=%08x,", req->flags );
2353 fprintf( stderr, " window=" );
2354 dump_rectangle( &req->window );
2355 fprintf( stderr, "," );
2356 fprintf( stderr, " client=" );
2357 dump_rectangle( &req->client );
2358 fprintf( stderr, "," );
2359 fprintf( stderr, " valid=" );
2360 dump_varargs_rectangles( cur_size );
2363 static void dump_set_window_pos_reply( const struct set_window_pos_reply *req )
2365 fprintf( stderr, " new_style=%08x", req->new_style );
2368 static void dump_get_window_rectangles_request( const struct get_window_rectangles_request *req )
2370 fprintf( stderr, " handle=%p", req->handle );
2373 static void dump_get_window_rectangles_reply( const struct get_window_rectangles_reply *req )
2375 fprintf( stderr, " window=" );
2376 dump_rectangle( &req->window );
2377 fprintf( stderr, "," );
2378 fprintf( stderr, " visible=" );
2379 dump_rectangle( &req->visible );
2380 fprintf( stderr, "," );
2381 fprintf( stderr, " client=" );
2382 dump_rectangle( &req->client );
2385 static void dump_get_window_text_request( const struct get_window_text_request *req )
2387 fprintf( stderr, " handle=%p", req->handle );
2390 static void dump_get_window_text_reply( const struct get_window_text_reply *req )
2392 fprintf( stderr, " text=" );
2393 dump_varargs_unicode_str( cur_size );
2396 static void dump_set_window_text_request( const struct set_window_text_request *req )
2398 fprintf( stderr, " handle=%p,", req->handle );
2399 fprintf( stderr, " text=" );
2400 dump_varargs_unicode_str( cur_size );
2403 static void dump_get_windows_offset_request( const struct get_windows_offset_request *req )
2405 fprintf( stderr, " from=%p,", req->from );
2406 fprintf( stderr, " to=%p", req->to );
2409 static void dump_get_windows_offset_reply( const struct get_windows_offset_reply *req )
2411 fprintf( stderr, " x=%d,", req->x );
2412 fprintf( stderr, " y=%d", req->y );
2415 static void dump_get_visible_region_request( const struct get_visible_region_request *req )
2417 fprintf( stderr, " window=%p,", req->window );
2418 fprintf( stderr, " flags=%08x", req->flags );
2421 static void dump_get_visible_region_reply( const struct get_visible_region_reply *req )
2423 fprintf( stderr, " top_win=%p,", req->top_win );
2424 fprintf( stderr, " top_org_x=%d,", req->top_org_x );
2425 fprintf( stderr, " top_org_y=%d,", req->top_org_y );
2426 fprintf( stderr, " win_org_x=%d,", req->win_org_x );
2427 fprintf( stderr, " win_org_y=%d,", req->win_org_y );
2428 fprintf( stderr, " total_size=%d,", req->total_size );
2429 fprintf( stderr, " region=" );
2430 dump_varargs_rectangles( cur_size );
2433 static void dump_get_window_region_request( const struct get_window_region_request *req )
2435 fprintf( stderr, " window=%p", req->window );
2438 static void dump_get_window_region_reply( const struct get_window_region_reply *req )
2440 fprintf( stderr, " total_size=%d,", req->total_size );
2441 fprintf( stderr, " region=" );
2442 dump_varargs_rectangles( cur_size );
2445 static void dump_set_window_region_request( const struct set_window_region_request *req )
2447 fprintf( stderr, " window=%p,", req->window );
2448 fprintf( stderr, " region=" );
2449 dump_varargs_rectangles( cur_size );
2452 static void dump_get_update_region_request( const struct get_update_region_request *req )
2454 fprintf( stderr, " window=%p,", req->window );
2455 fprintf( stderr, " from_child=%p,", req->from_child );
2456 fprintf( stderr, " flags=%08x", req->flags );
2459 static void dump_get_update_region_reply( const struct get_update_region_reply *req )
2461 fprintf( stderr, " child=%p,", req->child );
2462 fprintf( stderr, " flags=%08x,", req->flags );
2463 fprintf( stderr, " total_size=%d,", req->total_size );
2464 fprintf( stderr, " region=" );
2465 dump_varargs_rectangles( cur_size );
2468 static void dump_update_window_zorder_request( const struct update_window_zorder_request *req )
2470 fprintf( stderr, " window=%p,", req->window );
2471 fprintf( stderr, " rect=" );
2472 dump_rectangle( &req->rect );
2475 static void dump_redraw_window_request( const struct redraw_window_request *req )
2477 fprintf( stderr, " window=%p,", req->window );
2478 fprintf( stderr, " flags=%08x,", req->flags );
2479 fprintf( stderr, " region=" );
2480 dump_varargs_rectangles( cur_size );
2483 static void dump_set_window_property_request( const struct set_window_property_request *req )
2485 fprintf( stderr, " window=%p,", req->window );
2486 fprintf( stderr, " atom=%04x,", req->atom );
2487 fprintf( stderr, " handle=%p,", req->handle );
2488 fprintf( stderr, " name=" );
2489 dump_varargs_unicode_str( cur_size );
2492 static void dump_remove_window_property_request( const struct remove_window_property_request *req )
2494 fprintf( stderr, " window=%p,", req->window );
2495 fprintf( stderr, " atom=%04x,", req->atom );
2496 fprintf( stderr, " name=" );
2497 dump_varargs_unicode_str( cur_size );
2500 static void dump_remove_window_property_reply( const struct remove_window_property_reply *req )
2502 fprintf( stderr, " handle=%p", req->handle );
2505 static void dump_get_window_property_request( const struct get_window_property_request *req )
2507 fprintf( stderr, " window=%p,", req->window );
2508 fprintf( stderr, " atom=%04x,", req->atom );
2509 fprintf( stderr, " name=" );
2510 dump_varargs_unicode_str( cur_size );
2513 static void dump_get_window_property_reply( const struct get_window_property_reply *req )
2515 fprintf( stderr, " handle=%p", req->handle );
2518 static void dump_get_window_properties_request( const struct get_window_properties_request *req )
2520 fprintf( stderr, " window=%p", req->window );
2523 static void dump_get_window_properties_reply( const struct get_window_properties_reply *req )
2525 fprintf( stderr, " total=%d,", req->total );
2526 fprintf( stderr, " props=" );
2527 dump_varargs_properties( cur_size );
2530 static void dump_create_winstation_request( const struct create_winstation_request *req )
2532 fprintf( stderr, " flags=%08x,", req->flags );
2533 fprintf( stderr, " access=%08x,", req->access );
2534 fprintf( stderr, " inherit=%d,", req->inherit );
2535 fprintf( stderr, " name=" );
2536 dump_varargs_unicode_str( cur_size );
2539 static void dump_create_winstation_reply( const struct create_winstation_reply *req )
2541 fprintf( stderr, " handle=%p", req->handle );
2544 static void dump_open_winstation_request( const struct open_winstation_request *req )
2546 fprintf( stderr, " access=%08x,", req->access );
2547 fprintf( stderr, " inherit=%d,", req->inherit );
2548 fprintf( stderr, " name=" );
2549 dump_varargs_unicode_str( cur_size );
2552 static void dump_open_winstation_reply( const struct open_winstation_reply *req )
2554 fprintf( stderr, " handle=%p", req->handle );
2557 static void dump_close_winstation_request( const struct close_winstation_request *req )
2559 fprintf( stderr, " handle=%p", req->handle );
2562 static void dump_get_process_winstation_request( const struct get_process_winstation_request *req )
2566 static void dump_get_process_winstation_reply( const struct get_process_winstation_reply *req )
2568 fprintf( stderr, " handle=%p", req->handle );
2571 static void dump_set_process_winstation_request( const struct set_process_winstation_request *req )
2573 fprintf( stderr, " handle=%p", req->handle );
2576 static void dump_create_desktop_request( const struct create_desktop_request *req )
2578 fprintf( stderr, " flags=%08x,", req->flags );
2579 fprintf( stderr, " access=%08x,", req->access );
2580 fprintf( stderr, " inherit=%d,", req->inherit );
2581 fprintf( stderr, " name=" );
2582 dump_varargs_unicode_str( cur_size );
2585 static void dump_create_desktop_reply( const struct create_desktop_reply *req )
2587 fprintf( stderr, " handle=%p", req->handle );
2590 static void dump_open_desktop_request( const struct open_desktop_request *req )
2592 fprintf( stderr, " flags=%08x,", req->flags );
2593 fprintf( stderr, " access=%08x,", req->access );
2594 fprintf( stderr, " inherit=%d,", req->inherit );
2595 fprintf( stderr, " name=" );
2596 dump_varargs_unicode_str( cur_size );
2599 static void dump_open_desktop_reply( const struct open_desktop_reply *req )
2601 fprintf( stderr, " handle=%p", req->handle );
2604 static void dump_close_desktop_request( const struct close_desktop_request *req )
2606 fprintf( stderr, " handle=%p", req->handle );
2609 static void dump_get_thread_desktop_request( const struct get_thread_desktop_request *req )
2611 fprintf( stderr, " tid=%04x", req->tid );
2614 static void dump_get_thread_desktop_reply( const struct get_thread_desktop_reply *req )
2616 fprintf( stderr, " handle=%p", req->handle );
2619 static void dump_set_thread_desktop_request( const struct set_thread_desktop_request *req )
2621 fprintf( stderr, " handle=%p", req->handle );
2624 static void dump_set_user_object_info_request( const struct set_user_object_info_request *req )
2626 fprintf( stderr, " handle=%p,", req->handle );
2627 fprintf( stderr, " flags=%08x,", req->flags );
2628 fprintf( stderr, " obj_flags=%08x", req->obj_flags );
2631 static void dump_set_user_object_info_reply( const struct set_user_object_info_reply *req )
2633 fprintf( stderr, " is_desktop=%d,", req->is_desktop );
2634 fprintf( stderr, " old_obj_flags=%08x,", req->old_obj_flags );
2635 fprintf( stderr, " name=" );
2636 dump_varargs_unicode_str( cur_size );
2639 static void dump_attach_thread_input_request( const struct attach_thread_input_request *req )
2641 fprintf( stderr, " tid_from=%04x,", req->tid_from );
2642 fprintf( stderr, " tid_to=%04x,", req->tid_to );
2643 fprintf( stderr, " attach=%d", req->attach );
2646 static void dump_get_thread_input_request( const struct get_thread_input_request *req )
2648 fprintf( stderr, " tid=%04x", req->tid );
2651 static void dump_get_thread_input_reply( const struct get_thread_input_reply *req )
2653 fprintf( stderr, " focus=%p,", req->focus );
2654 fprintf( stderr, " capture=%p,", req->capture );
2655 fprintf( stderr, " active=%p,", req->active );
2656 fprintf( stderr, " foreground=%p,", req->foreground );
2657 fprintf( stderr, " menu_owner=%p,", req->menu_owner );
2658 fprintf( stderr, " move_size=%p,", req->move_size );
2659 fprintf( stderr, " caret=%p,", req->caret );
2660 fprintf( stderr, " rect=" );
2661 dump_rectangle( &req->rect );
2664 static void dump_get_last_input_time_request( const struct get_last_input_time_request *req )
2668 static void dump_get_last_input_time_reply( const struct get_last_input_time_reply *req )
2670 fprintf( stderr, " time=%08x", req->time );
2673 static void dump_get_key_state_request( const struct get_key_state_request *req )
2675 fprintf( stderr, " tid=%04x,", req->tid );
2676 fprintf( stderr, " key=%d", req->key );
2679 static void dump_get_key_state_reply( const struct get_key_state_reply *req )
2681 fprintf( stderr, " state=%02x,", req->state );
2682 fprintf( stderr, " keystate=" );
2683 dump_varargs_bytes( cur_size );
2686 static void dump_set_key_state_request( const struct set_key_state_request *req )
2688 fprintf( stderr, " tid=%04x,", req->tid );
2689 fprintf( stderr, " keystate=" );
2690 dump_varargs_bytes( cur_size );
2693 static void dump_set_foreground_window_request( const struct set_foreground_window_request *req )
2695 fprintf( stderr, " handle=%p", req->handle );
2698 static void dump_set_foreground_window_reply( const struct set_foreground_window_reply *req )
2700 fprintf( stderr, " previous=%p,", req->previous );
2701 fprintf( stderr, " send_msg_old=%d,", req->send_msg_old );
2702 fprintf( stderr, " send_msg_new=%d", req->send_msg_new );
2705 static void dump_set_focus_window_request( const struct set_focus_window_request *req )
2707 fprintf( stderr, " handle=%p", req->handle );
2710 static void dump_set_focus_window_reply( const struct set_focus_window_reply *req )
2712 fprintf( stderr, " previous=%p", req->previous );
2715 static void dump_set_active_window_request( const struct set_active_window_request *req )
2717 fprintf( stderr, " handle=%p", req->handle );
2720 static void dump_set_active_window_reply( const struct set_active_window_reply *req )
2722 fprintf( stderr, " previous=%p", req->previous );
2725 static void dump_set_capture_window_request( const struct set_capture_window_request *req )
2727 fprintf( stderr, " handle=%p,", req->handle );
2728 fprintf( stderr, " flags=%08x", req->flags );
2731 static void dump_set_capture_window_reply( const struct set_capture_window_reply *req )
2733 fprintf( stderr, " previous=%p,", req->previous );
2734 fprintf( stderr, " full_handle=%p", req->full_handle );
2737 static void dump_set_caret_window_request( const struct set_caret_window_request *req )
2739 fprintf( stderr, " handle=%p,", req->handle );
2740 fprintf( stderr, " width=%d,", req->width );
2741 fprintf( stderr, " height=%d", req->height );
2744 static void dump_set_caret_window_reply( const struct set_caret_window_reply *req )
2746 fprintf( stderr, " previous=%p,", req->previous );
2747 fprintf( stderr, " old_rect=" );
2748 dump_rectangle( &req->old_rect );
2749 fprintf( stderr, "," );
2750 fprintf( stderr, " old_hide=%d,", req->old_hide );
2751 fprintf( stderr, " old_state=%d", req->old_state );
2754 static void dump_set_caret_info_request( const struct set_caret_info_request *req )
2756 fprintf( stderr, " flags=%08x,", req->flags );
2757 fprintf( stderr, " handle=%p,", req->handle );
2758 fprintf( stderr, " x=%d,", req->x );
2759 fprintf( stderr, " y=%d,", req->y );
2760 fprintf( stderr, " hide=%d,", req->hide );
2761 fprintf( stderr, " state=%d", req->state );
2764 static void dump_set_caret_info_reply( const struct set_caret_info_reply *req )
2766 fprintf( stderr, " full_handle=%p,", req->full_handle );
2767 fprintf( stderr, " old_rect=" );
2768 dump_rectangle( &req->old_rect );
2769 fprintf( stderr, "," );
2770 fprintf( stderr, " old_hide=%d,", req->old_hide );
2771 fprintf( stderr, " old_state=%d", req->old_state );
2774 static void dump_set_hook_request( const struct set_hook_request *req )
2776 fprintf( stderr, " id=%d,", req->id );
2777 fprintf( stderr, " pid=%04x,", req->pid );
2778 fprintf( stderr, " tid=%04x,", req->tid );
2779 fprintf( stderr, " event_min=%d,", req->event_min );
2780 fprintf( stderr, " event_max=%d,", req->event_max );
2781 fprintf( stderr, " flags=%d,", req->flags );
2782 fprintf( stderr, " proc=%p,", req->proc );
2783 fprintf( stderr, " unicode=%d,", req->unicode );
2784 fprintf( stderr, " module=" );
2785 dump_varargs_unicode_str( cur_size );
2788 static void dump_set_hook_reply( const struct set_hook_reply *req )
2790 fprintf( stderr, " handle=%p,", req->handle );
2791 fprintf( stderr, " active_hooks=%08x", req->active_hooks );
2794 static void dump_remove_hook_request( const struct remove_hook_request *req )
2796 fprintf( stderr, " handle=%p,", req->handle );
2797 fprintf( stderr, " id=%d,", req->id );
2798 fprintf( stderr, " proc=%p", req->proc );
2801 static void dump_remove_hook_reply( const struct remove_hook_reply *req )
2803 fprintf( stderr, " active_hooks=%08x", req->active_hooks );
2806 static void dump_start_hook_chain_request( const struct start_hook_chain_request *req )
2808 fprintf( stderr, " id=%d,", req->id );
2809 fprintf( stderr, " event=%d,", req->event );
2810 fprintf( stderr, " window=%p,", req->window );
2811 fprintf( stderr, " object_id=%d,", req->object_id );
2812 fprintf( stderr, " child_id=%d", req->child_id );
2815 static void dump_start_hook_chain_reply( const struct start_hook_chain_reply *req )
2817 fprintf( stderr, " handle=%p,", req->handle );
2818 fprintf( stderr, " pid=%04x,", req->pid );
2819 fprintf( stderr, " tid=%04x,", req->tid );
2820 fprintf( stderr, " proc=%p,", req->proc );
2821 fprintf( stderr, " unicode=%d,", req->unicode );
2822 fprintf( stderr, " active_hooks=%08x,", req->active_hooks );
2823 fprintf( stderr, " module=" );
2824 dump_varargs_unicode_str( cur_size );
2827 static void dump_finish_hook_chain_request( const struct finish_hook_chain_request *req )
2829 fprintf( stderr, " id=%d", req->id );
2832 static void dump_get_next_hook_request( const struct get_next_hook_request *req )
2834 fprintf( stderr, " handle=%p,", req->handle );
2835 fprintf( stderr, " event=%d,", req->event );
2836 fprintf( stderr, " window=%p,", req->window );
2837 fprintf( stderr, " object_id=%d,", req->object_id );
2838 fprintf( stderr, " child_id=%d", req->child_id );
2841 static void dump_get_next_hook_reply( const struct get_next_hook_reply *req )
2843 fprintf( stderr, " next=%p,", req->next );
2844 fprintf( stderr, " id=%d,", req->id );
2845 fprintf( stderr, " pid=%04x,", req->pid );
2846 fprintf( stderr, " tid=%04x,", req->tid );
2847 fprintf( stderr, " proc=%p,", req->proc );
2848 fprintf( stderr, " prev_unicode=%d,", req->prev_unicode );
2849 fprintf( stderr, " next_unicode=%d,", req->next_unicode );
2850 fprintf( stderr, " module=" );
2851 dump_varargs_unicode_str( cur_size );
2854 static void dump_create_class_request( const struct create_class_request *req )
2856 fprintf( stderr, " local=%d,", req->local );
2857 fprintf( stderr, " atom=%04x,", req->atom );
2858 fprintf( stderr, " style=%08x,", req->style );
2859 fprintf( stderr, " instance=%p,", req->instance );
2860 fprintf( stderr, " extra=%d,", req->extra );
2861 fprintf( stderr, " win_extra=%d,", req->win_extra );
2862 fprintf( stderr, " client_ptr=%p", req->client_ptr );
2865 static void dump_destroy_class_request( const struct destroy_class_request *req )
2867 fprintf( stderr, " atom=%04x,", req->atom );
2868 fprintf( stderr, " instance=%p", req->instance );
2871 static void dump_destroy_class_reply( const struct destroy_class_reply *req )
2873 fprintf( stderr, " client_ptr=%p", req->client_ptr );
2876 static void dump_set_class_info_request( const struct set_class_info_request *req )
2878 fprintf( stderr, " window=%p,", req->window );
2879 fprintf( stderr, " flags=%08x,", req->flags );
2880 fprintf( stderr, " atom=%04x,", req->atom );
2881 fprintf( stderr, " style=%08x,", req->style );
2882 fprintf( stderr, " win_extra=%d,", req->win_extra );
2883 fprintf( stderr, " instance=%p,", req->instance );
2884 fprintf( stderr, " extra_offset=%d,", req->extra_offset );
2885 fprintf( stderr, " extra_size=%d,", req->extra_size );
2886 fprintf( stderr, " extra_value=%08x", req->extra_value );
2889 static void dump_set_class_info_reply( const struct set_class_info_reply *req )
2891 fprintf( stderr, " old_atom=%04x,", req->old_atom );
2892 fprintf( stderr, " old_style=%08x,", req->old_style );
2893 fprintf( stderr, " old_extra=%d,", req->old_extra );
2894 fprintf( stderr, " old_win_extra=%d,", req->old_win_extra );
2895 fprintf( stderr, " old_instance=%p,", req->old_instance );
2896 fprintf( stderr, " old_extra_value=%08x", req->old_extra_value );
2899 static void dump_set_clipboard_info_request( const struct set_clipboard_info_request *req )
2901 fprintf( stderr, " flags=%08x,", req->flags );
2902 fprintf( stderr, " clipboard=%p,", req->clipboard );
2903 fprintf( stderr, " owner=%p,", req->owner );
2904 fprintf( stderr, " viewer=%p,", req->viewer );
2905 fprintf( stderr, " seqno=%08x", req->seqno );
2908 static void dump_set_clipboard_info_reply( const struct set_clipboard_info_reply *req )
2910 fprintf( stderr, " flags=%08x,", req->flags );
2911 fprintf( stderr, " old_clipboard=%p,", req->old_clipboard );
2912 fprintf( stderr, " old_owner=%p,", req->old_owner );
2913 fprintf( stderr, " old_viewer=%p,", req->old_viewer );
2914 fprintf( stderr, " seqno=%08x", req->seqno );
2917 static void dump_open_token_request( const struct open_token_request *req )
2919 fprintf( stderr, " handle=%p,", req->handle );
2920 fprintf( stderr, " flags=%08x", req->flags );
2923 static void dump_open_token_reply( const struct open_token_reply *req )
2925 fprintf( stderr, " token=%p", req->token );
2928 static void dump_set_global_windows_request( const struct set_global_windows_request *req )
2930 fprintf( stderr, " flags=%08x,", req->flags );
2931 fprintf( stderr, " shell_window=%p,", req->shell_window );
2932 fprintf( stderr, " shell_listview=%p,", req->shell_listview );
2933 fprintf( stderr, " progman_window=%p,", req->progman_window );
2934 fprintf( stderr, " taskman_window=%p", req->taskman_window );
2937 static void dump_set_global_windows_reply( const struct set_global_windows_reply *req )
2939 fprintf( stderr, " old_shell_window=%p,", req->old_shell_window );
2940 fprintf( stderr, " old_shell_listview=%p,", req->old_shell_listview );
2941 fprintf( stderr, " old_progman_window=%p,", req->old_progman_window );
2942 fprintf( stderr, " old_taskman_window=%p", req->old_taskman_window );
2945 static void dump_adjust_token_privileges_request( const struct adjust_token_privileges_request *req )
2947 fprintf( stderr, " handle=%p,", req->handle );
2948 fprintf( stderr, " disable_all=%d,", req->disable_all );
2949 fprintf( stderr, " get_modified_state=%d,", req->get_modified_state );
2950 fprintf( stderr, " privileges=" );
2951 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
2954 static void dump_adjust_token_privileges_reply( const struct adjust_token_privileges_reply *req )
2956 fprintf( stderr, " len=%08x,", req->len );
2957 fprintf( stderr, " privileges=" );
2958 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
2961 static void dump_get_token_privileges_request( const struct get_token_privileges_request *req )
2963 fprintf( stderr, " handle=%p", req->handle );
2966 static void dump_get_token_privileges_reply( const struct get_token_privileges_reply *req )
2968 fprintf( stderr, " len=%08x,", req->len );
2969 fprintf( stderr, " privileges=" );
2970 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
2973 static void dump_check_token_privileges_request( const struct check_token_privileges_request *req )
2975 fprintf( stderr, " handle=%p,", req->handle );
2976 fprintf( stderr, " all_required=%d,", req->all_required );
2977 fprintf( stderr, " privileges=" );
2978 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
2981 static void dump_check_token_privileges_reply( const struct check_token_privileges_reply *req )
2983 fprintf( stderr, " has_privileges=%d,", req->has_privileges );
2984 fprintf( stderr, " privileges=" );
2985 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
2988 static void dump_duplicate_token_request( const struct duplicate_token_request *req )
2990 fprintf( stderr, " handle=%p,", req->handle );
2991 fprintf( stderr, " access=%08x,", req->access );
2992 fprintf( stderr, " inherit=%d,", req->inherit );
2993 fprintf( stderr, " primary=%d,", req->primary );
2994 fprintf( stderr, " impersonation_level=%d", req->impersonation_level );
2997 static void dump_duplicate_token_reply( const struct duplicate_token_reply *req )
2999 fprintf( stderr, " new_handle=%p", req->new_handle );
3002 static void dump_access_check_request( const struct access_check_request *req )
3004 fprintf( stderr, " handle=%p,", req->handle );
3005 fprintf( stderr, " desired_access=%08x,", req->desired_access );
3006 fprintf( stderr, " mapping_read=%08x,", req->mapping_read );
3007 fprintf( stderr, " mapping_write=%08x,", req->mapping_write );
3008 fprintf( stderr, " mapping_execute=%08x,", req->mapping_execute );
3009 fprintf( stderr, " mapping_all=%08x,", req->mapping_all );
3010 fprintf( stderr, " sd=" );
3011 dump_varargs_security_descriptor( cur_size );
3014 static void dump_access_check_reply( const struct access_check_reply *req )
3016 fprintf( stderr, " access_granted=%08x,", req->access_granted );
3017 fprintf( stderr, " access_status=%08x,", req->access_status );
3018 fprintf( stderr, " privileges_len=%08x,", req->privileges_len );
3019 fprintf( stderr, " privileges=" );
3020 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
3023 static void dump_create_mailslot_request( const struct create_mailslot_request *req )
3025 fprintf( stderr, " max_msgsize=%08x,", req->max_msgsize );
3026 fprintf( stderr, " read_timeout=%08x,", req->read_timeout );
3027 fprintf( stderr, " inherit=%d,", req->inherit );
3028 fprintf( stderr, " name=" );
3029 dump_varargs_unicode_str( cur_size );
3032 static void dump_create_mailslot_reply( const struct create_mailslot_reply *req )
3034 fprintf( stderr, " handle=%p", req->handle );
3037 static void dump_open_mailslot_request( const struct open_mailslot_request *req )
3039 fprintf( stderr, " access=%08x,", req->access );
3040 fprintf( stderr, " inherit=%d,", req->inherit );
3041 fprintf( stderr, " sharing=%08x,", req->sharing );
3042 fprintf( stderr, " name=" );
3043 dump_varargs_unicode_str( cur_size );
3046 static void dump_open_mailslot_reply( const struct open_mailslot_reply *req )
3048 fprintf( stderr, " handle=%p", req->handle );
3051 static void dump_set_mailslot_info_request( const struct set_mailslot_info_request *req )
3053 fprintf( stderr, " handle=%p,", req->handle );
3054 fprintf( stderr, " flags=%08x,", req->flags );
3055 fprintf( stderr, " read_timeout=%08x", req->read_timeout );
3058 static void dump_set_mailslot_info_reply( const struct set_mailslot_info_reply *req )
3060 fprintf( stderr, " max_msgsize=%08x,", req->max_msgsize );
3061 fprintf( stderr, " read_timeout=%08x,", req->read_timeout );
3062 fprintf( stderr, " msg_count=%08x,", req->msg_count );
3063 fprintf( stderr, " next_msgsize=%08x", req->next_msgsize );
3066 static const dump_func req_dumpers[REQ_NB_REQUESTS] = {
3067 (dump_func)dump_new_process_request,
3068 (dump_func)dump_get_new_process_info_request,
3069 (dump_func)dump_new_thread_request,
3070 (dump_func)dump_boot_done_request,
3071 (dump_func)dump_init_process_request,
3072 (dump_func)dump_get_startup_info_request,
3073 (dump_func)dump_init_process_done_request,
3074 (dump_func)dump_init_thread_request,
3075 (dump_func)dump_terminate_process_request,
3076 (dump_func)dump_terminate_thread_request,
3077 (dump_func)dump_get_process_info_request,
3078 (dump_func)dump_set_process_info_request,
3079 (dump_func)dump_get_thread_info_request,
3080 (dump_func)dump_set_thread_info_request,
3081 (dump_func)dump_get_dll_info_request,
3082 (dump_func)dump_suspend_thread_request,
3083 (dump_func)dump_resume_thread_request,
3084 (dump_func)dump_load_dll_request,
3085 (dump_func)dump_unload_dll_request,
3086 (dump_func)dump_queue_apc_request,
3087 (dump_func)dump_get_apc_request,
3088 (dump_func)dump_close_handle_request,
3089 (dump_func)dump_set_handle_info_request,
3090 (dump_func)dump_dup_handle_request,
3091 (dump_func)dump_open_process_request,
3092 (dump_func)dump_open_thread_request,
3093 (dump_func)dump_select_request,
3094 (dump_func)dump_create_event_request,
3095 (dump_func)dump_event_op_request,
3096 (dump_func)dump_open_event_request,
3097 (dump_func)dump_create_mutex_request,
3098 (dump_func)dump_release_mutex_request,
3099 (dump_func)dump_open_mutex_request,
3100 (dump_func)dump_create_semaphore_request,
3101 (dump_func)dump_release_semaphore_request,
3102 (dump_func)dump_open_semaphore_request,
3103 (dump_func)dump_create_file_request,
3104 (dump_func)dump_alloc_file_handle_request,
3105 (dump_func)dump_get_handle_fd_request,
3106 (dump_func)dump_flush_file_request,
3107 (dump_func)dump_lock_file_request,
3108 (dump_func)dump_unlock_file_request,
3109 (dump_func)dump_create_socket_request,
3110 (dump_func)dump_accept_socket_request,
3111 (dump_func)dump_set_socket_event_request,
3112 (dump_func)dump_get_socket_event_request,
3113 (dump_func)dump_enable_socket_event_request,
3114 (dump_func)dump_set_socket_deferred_request,
3115 (dump_func)dump_alloc_console_request,
3116 (dump_func)dump_free_console_request,
3117 (dump_func)dump_get_console_renderer_events_request,
3118 (dump_func)dump_open_console_request,
3119 (dump_func)dump_get_console_wait_event_request,
3120 (dump_func)dump_get_console_mode_request,
3121 (dump_func)dump_set_console_mode_request,
3122 (dump_func)dump_set_console_input_info_request,
3123 (dump_func)dump_get_console_input_info_request,
3124 (dump_func)dump_append_console_input_history_request,
3125 (dump_func)dump_get_console_input_history_request,
3126 (dump_func)dump_create_console_output_request,
3127 (dump_func)dump_set_console_output_info_request,
3128 (dump_func)dump_get_console_output_info_request,
3129 (dump_func)dump_write_console_input_request,
3130 (dump_func)dump_read_console_input_request,
3131 (dump_func)dump_write_console_output_request,
3132 (dump_func)dump_fill_console_output_request,
3133 (dump_func)dump_read_console_output_request,
3134 (dump_func)dump_move_console_output_request,
3135 (dump_func)dump_send_console_signal_request,
3136 (dump_func)dump_create_change_notification_request,
3137 (dump_func)dump_next_change_notification_request,
3138 (dump_func)dump_create_mapping_request,
3139 (dump_func)dump_open_mapping_request,
3140 (dump_func)dump_get_mapping_info_request,
3141 (dump_func)dump_create_snapshot_request,
3142 (dump_func)dump_next_process_request,
3143 (dump_func)dump_next_thread_request,
3144 (dump_func)dump_next_module_request,
3145 (dump_func)dump_wait_debug_event_request,
3146 (dump_func)dump_queue_exception_event_request,
3147 (dump_func)dump_get_exception_status_request,
3148 (dump_func)dump_output_debug_string_request,
3149 (dump_func)dump_continue_debug_event_request,
3150 (dump_func)dump_debug_process_request,
3151 (dump_func)dump_debug_break_request,
3152 (dump_func)dump_set_debugger_kill_on_exit_request,
3153 (dump_func)dump_read_process_memory_request,
3154 (dump_func)dump_write_process_memory_request,
3155 (dump_func)dump_create_key_request,
3156 (dump_func)dump_open_key_request,
3157 (dump_func)dump_delete_key_request,
3158 (dump_func)dump_flush_key_request,
3159 (dump_func)dump_enum_key_request,
3160 (dump_func)dump_set_key_value_request,
3161 (dump_func)dump_get_key_value_request,
3162 (dump_func)dump_enum_key_value_request,
3163 (dump_func)dump_delete_key_value_request,
3164 (dump_func)dump_load_registry_request,
3165 (dump_func)dump_unload_registry_request,
3166 (dump_func)dump_save_registry_request,
3167 (dump_func)dump_load_user_registries_request,
3168 (dump_func)dump_set_registry_notification_request,
3169 (dump_func)dump_create_timer_request,
3170 (dump_func)dump_open_timer_request,
3171 (dump_func)dump_set_timer_request,
3172 (dump_func)dump_cancel_timer_request,
3173 (dump_func)dump_get_timer_info_request,
3174 (dump_func)dump_get_thread_context_request,
3175 (dump_func)dump_set_thread_context_request,
3176 (dump_func)dump_get_selector_entry_request,
3177 (dump_func)dump_add_atom_request,
3178 (dump_func)dump_delete_atom_request,
3179 (dump_func)dump_find_atom_request,
3180 (dump_func)dump_get_atom_information_request,
3181 (dump_func)dump_set_atom_information_request,
3182 (dump_func)dump_empty_atom_table_request,
3183 (dump_func)dump_init_atom_table_request,
3184 (dump_func)dump_get_msg_queue_request,
3185 (dump_func)dump_set_queue_mask_request,
3186 (dump_func)dump_get_queue_status_request,
3187 (dump_func)dump_wait_input_idle_request,
3188 (dump_func)dump_send_message_request,
3189 (dump_func)dump_get_message_request,
3190 (dump_func)dump_reply_message_request,
3191 (dump_func)dump_accept_hardware_message_request,
3192 (dump_func)dump_get_message_reply_request,
3193 (dump_func)dump_set_win_timer_request,
3194 (dump_func)dump_kill_win_timer_request,
3195 (dump_func)dump_get_serial_info_request,
3196 (dump_func)dump_set_serial_info_request,
3197 (dump_func)dump_register_async_request,
3198 (dump_func)dump_cancel_async_request,
3199 (dump_func)dump_create_named_pipe_request,
3200 (dump_func)dump_open_named_pipe_request,
3201 (dump_func)dump_connect_named_pipe_request,
3202 (dump_func)dump_wait_named_pipe_request,
3203 (dump_func)dump_disconnect_named_pipe_request,
3204 (dump_func)dump_get_named_pipe_info_request,
3205 (dump_func)dump_create_window_request,
3206 (dump_func)dump_destroy_window_request,
3207 (dump_func)dump_set_window_owner_request,
3208 (dump_func)dump_get_window_info_request,
3209 (dump_func)dump_set_window_info_request,
3210 (dump_func)dump_set_parent_request,
3211 (dump_func)dump_get_window_parents_request,
3212 (dump_func)dump_get_window_children_request,
3213 (dump_func)dump_get_window_children_from_point_request,
3214 (dump_func)dump_get_window_tree_request,
3215 (dump_func)dump_set_window_pos_request,
3216 (dump_func)dump_get_window_rectangles_request,
3217 (dump_func)dump_get_window_text_request,
3218 (dump_func)dump_set_window_text_request,
3219 (dump_func)dump_get_windows_offset_request,
3220 (dump_func)dump_get_visible_region_request,
3221 (dump_func)dump_get_window_region_request,
3222 (dump_func)dump_set_window_region_request,
3223 (dump_func)dump_get_update_region_request,
3224 (dump_func)dump_update_window_zorder_request,
3225 (dump_func)dump_redraw_window_request,
3226 (dump_func)dump_set_window_property_request,
3227 (dump_func)dump_remove_window_property_request,
3228 (dump_func)dump_get_window_property_request,
3229 (dump_func)dump_get_window_properties_request,
3230 (dump_func)dump_create_winstation_request,
3231 (dump_func)dump_open_winstation_request,
3232 (dump_func)dump_close_winstation_request,
3233 (dump_func)dump_get_process_winstation_request,
3234 (dump_func)dump_set_process_winstation_request,
3235 (dump_func)dump_create_desktop_request,
3236 (dump_func)dump_open_desktop_request,
3237 (dump_func)dump_close_desktop_request,
3238 (dump_func)dump_get_thread_desktop_request,
3239 (dump_func)dump_set_thread_desktop_request,
3240 (dump_func)dump_set_user_object_info_request,
3241 (dump_func)dump_attach_thread_input_request,
3242 (dump_func)dump_get_thread_input_request,
3243 (dump_func)dump_get_last_input_time_request,
3244 (dump_func)dump_get_key_state_request,
3245 (dump_func)dump_set_key_state_request,
3246 (dump_func)dump_set_foreground_window_request,
3247 (dump_func)dump_set_focus_window_request,
3248 (dump_func)dump_set_active_window_request,
3249 (dump_func)dump_set_capture_window_request,
3250 (dump_func)dump_set_caret_window_request,
3251 (dump_func)dump_set_caret_info_request,
3252 (dump_func)dump_set_hook_request,
3253 (dump_func)dump_remove_hook_request,
3254 (dump_func)dump_start_hook_chain_request,
3255 (dump_func)dump_finish_hook_chain_request,
3256 (dump_func)dump_get_next_hook_request,
3257 (dump_func)dump_create_class_request,
3258 (dump_func)dump_destroy_class_request,
3259 (dump_func)dump_set_class_info_request,
3260 (dump_func)dump_set_clipboard_info_request,
3261 (dump_func)dump_open_token_request,
3262 (dump_func)dump_set_global_windows_request,
3263 (dump_func)dump_adjust_token_privileges_request,
3264 (dump_func)dump_get_token_privileges_request,
3265 (dump_func)dump_check_token_privileges_request,
3266 (dump_func)dump_duplicate_token_request,
3267 (dump_func)dump_access_check_request,
3268 (dump_func)dump_create_mailslot_request,
3269 (dump_func)dump_open_mailslot_request,
3270 (dump_func)dump_set_mailslot_info_request,
3273 static const dump_func reply_dumpers[REQ_NB_REQUESTS] = {
3274 (dump_func)dump_new_process_reply,
3275 (dump_func)dump_get_new_process_info_reply,
3276 (dump_func)dump_new_thread_reply,
3278 (dump_func)dump_init_process_reply,
3279 (dump_func)dump_get_startup_info_reply,
3281 (dump_func)dump_init_thread_reply,
3282 (dump_func)dump_terminate_process_reply,
3283 (dump_func)dump_terminate_thread_reply,
3284 (dump_func)dump_get_process_info_reply,
3286 (dump_func)dump_get_thread_info_reply,
3288 (dump_func)dump_get_dll_info_reply,
3289 (dump_func)dump_suspend_thread_reply,
3290 (dump_func)dump_resume_thread_reply,
3294 (dump_func)dump_get_apc_reply,
3295 (dump_func)dump_close_handle_reply,
3296 (dump_func)dump_set_handle_info_reply,
3297 (dump_func)dump_dup_handle_reply,
3298 (dump_func)dump_open_process_reply,
3299 (dump_func)dump_open_thread_reply,
3301 (dump_func)dump_create_event_reply,
3303 (dump_func)dump_open_event_reply,
3304 (dump_func)dump_create_mutex_reply,
3305 (dump_func)dump_release_mutex_reply,
3306 (dump_func)dump_open_mutex_reply,
3307 (dump_func)dump_create_semaphore_reply,
3308 (dump_func)dump_release_semaphore_reply,
3309 (dump_func)dump_open_semaphore_reply,
3310 (dump_func)dump_create_file_reply,
3311 (dump_func)dump_alloc_file_handle_reply,
3312 (dump_func)dump_get_handle_fd_reply,
3313 (dump_func)dump_flush_file_reply,
3314 (dump_func)dump_lock_file_reply,
3316 (dump_func)dump_create_socket_reply,
3317 (dump_func)dump_accept_socket_reply,
3319 (dump_func)dump_get_socket_event_reply,
3322 (dump_func)dump_alloc_console_reply,
3324 (dump_func)dump_get_console_renderer_events_reply,
3325 (dump_func)dump_open_console_reply,
3326 (dump_func)dump_get_console_wait_event_reply,
3327 (dump_func)dump_get_console_mode_reply,
3330 (dump_func)dump_get_console_input_info_reply,
3332 (dump_func)dump_get_console_input_history_reply,
3333 (dump_func)dump_create_console_output_reply,
3335 (dump_func)dump_get_console_output_info_reply,
3336 (dump_func)dump_write_console_input_reply,
3337 (dump_func)dump_read_console_input_reply,
3338 (dump_func)dump_write_console_output_reply,
3339 (dump_func)dump_fill_console_output_reply,
3340 (dump_func)dump_read_console_output_reply,
3343 (dump_func)dump_create_change_notification_reply,
3345 (dump_func)dump_create_mapping_reply,
3346 (dump_func)dump_open_mapping_reply,
3347 (dump_func)dump_get_mapping_info_reply,
3348 (dump_func)dump_create_snapshot_reply,
3349 (dump_func)dump_next_process_reply,
3350 (dump_func)dump_next_thread_reply,
3351 (dump_func)dump_next_module_reply,
3352 (dump_func)dump_wait_debug_event_reply,
3353 (dump_func)dump_queue_exception_event_reply,
3354 (dump_func)dump_get_exception_status_reply,
3358 (dump_func)dump_debug_break_reply,
3360 (dump_func)dump_read_process_memory_reply,
3362 (dump_func)dump_create_key_reply,
3363 (dump_func)dump_open_key_reply,
3366 (dump_func)dump_enum_key_reply,
3368 (dump_func)dump_get_key_value_reply,
3369 (dump_func)dump_enum_key_value_reply,
3376 (dump_func)dump_create_timer_reply,
3377 (dump_func)dump_open_timer_reply,
3378 (dump_func)dump_set_timer_reply,
3379 (dump_func)dump_cancel_timer_reply,
3380 (dump_func)dump_get_timer_info_reply,
3381 (dump_func)dump_get_thread_context_reply,
3383 (dump_func)dump_get_selector_entry_reply,
3384 (dump_func)dump_add_atom_reply,
3386 (dump_func)dump_find_atom_reply,
3387 (dump_func)dump_get_atom_information_reply,
3390 (dump_func)dump_init_atom_table_reply,
3391 (dump_func)dump_get_msg_queue_reply,
3392 (dump_func)dump_set_queue_mask_reply,
3393 (dump_func)dump_get_queue_status_reply,
3394 (dump_func)dump_wait_input_idle_reply,
3396 (dump_func)dump_get_message_reply,
3399 (dump_func)dump_get_message_reply_reply,
3400 (dump_func)dump_set_win_timer_reply,
3402 (dump_func)dump_get_serial_info_reply,
3406 (dump_func)dump_create_named_pipe_reply,
3407 (dump_func)dump_open_named_pipe_reply,
3410 (dump_func)dump_disconnect_named_pipe_reply,
3411 (dump_func)dump_get_named_pipe_info_reply,
3412 (dump_func)dump_create_window_reply,
3414 (dump_func)dump_set_window_owner_reply,
3415 (dump_func)dump_get_window_info_reply,
3416 (dump_func)dump_set_window_info_reply,
3417 (dump_func)dump_set_parent_reply,
3418 (dump_func)dump_get_window_parents_reply,
3419 (dump_func)dump_get_window_children_reply,
3420 (dump_func)dump_get_window_children_from_point_reply,
3421 (dump_func)dump_get_window_tree_reply,
3422 (dump_func)dump_set_window_pos_reply,
3423 (dump_func)dump_get_window_rectangles_reply,
3424 (dump_func)dump_get_window_text_reply,
3426 (dump_func)dump_get_windows_offset_reply,
3427 (dump_func)dump_get_visible_region_reply,
3428 (dump_func)dump_get_window_region_reply,
3430 (dump_func)dump_get_update_region_reply,
3434 (dump_func)dump_remove_window_property_reply,
3435 (dump_func)dump_get_window_property_reply,
3436 (dump_func)dump_get_window_properties_reply,
3437 (dump_func)dump_create_winstation_reply,
3438 (dump_func)dump_open_winstation_reply,
3440 (dump_func)dump_get_process_winstation_reply,
3442 (dump_func)dump_create_desktop_reply,
3443 (dump_func)dump_open_desktop_reply,
3445 (dump_func)dump_get_thread_desktop_reply,
3447 (dump_func)dump_set_user_object_info_reply,
3449 (dump_func)dump_get_thread_input_reply,
3450 (dump_func)dump_get_last_input_time_reply,
3451 (dump_func)dump_get_key_state_reply,
3453 (dump_func)dump_set_foreground_window_reply,
3454 (dump_func)dump_set_focus_window_reply,
3455 (dump_func)dump_set_active_window_reply,
3456 (dump_func)dump_set_capture_window_reply,
3457 (dump_func)dump_set_caret_window_reply,
3458 (dump_func)dump_set_caret_info_reply,
3459 (dump_func)dump_set_hook_reply,
3460 (dump_func)dump_remove_hook_reply,
3461 (dump_func)dump_start_hook_chain_reply,
3463 (dump_func)dump_get_next_hook_reply,
3465 (dump_func)dump_destroy_class_reply,
3466 (dump_func)dump_set_class_info_reply,
3467 (dump_func)dump_set_clipboard_info_reply,
3468 (dump_func)dump_open_token_reply,
3469 (dump_func)dump_set_global_windows_reply,
3470 (dump_func)dump_adjust_token_privileges_reply,
3471 (dump_func)dump_get_token_privileges_reply,
3472 (dump_func)dump_check_token_privileges_reply,
3473 (dump_func)dump_duplicate_token_reply,
3474 (dump_func)dump_access_check_reply,
3475 (dump_func)dump_create_mailslot_reply,
3476 (dump_func)dump_open_mailslot_reply,
3477 (dump_func)dump_set_mailslot_info_reply,
3480 static const char * const req_names[REQ_NB_REQUESTS] = {
3482 "get_new_process_info",
3487 "init_process_done",
3489 "terminate_process",
3515 "release_semaphore",
3518 "alloc_file_handle",
3527 "enable_socket_event",
3528 "set_socket_deferred",
3531 "get_console_renderer_events",
3533 "get_console_wait_event",
3536 "set_console_input_info",
3537 "get_console_input_info",
3538 "append_console_input_history",
3539 "get_console_input_history",
3540 "create_console_output",
3541 "set_console_output_info",
3542 "get_console_output_info",
3543 "write_console_input",
3544 "read_console_input",
3545 "write_console_output",
3546 "fill_console_output",
3547 "read_console_output",
3548 "move_console_output",
3549 "send_console_signal",
3550 "create_change_notification",
3551 "next_change_notification",
3560 "queue_exception_event",
3561 "get_exception_status",
3562 "output_debug_string",
3563 "continue_debug_event",
3566 "set_debugger_kill_on_exit",
3567 "read_process_memory",
3568 "write_process_memory",
3581 "load_user_registries",
3582 "set_registry_notification",
3588 "get_thread_context",
3589 "set_thread_context",
3590 "get_selector_entry",
3594 "get_atom_information",
3595 "set_atom_information",
3605 "accept_hardware_message",
3606 "get_message_reply",
3613 "create_named_pipe",
3615 "connect_named_pipe",
3617 "disconnect_named_pipe",
3618 "get_named_pipe_info",
3625 "get_window_parents",
3626 "get_window_children",
3627 "get_window_children_from_point",
3630 "get_window_rectangles",
3633 "get_windows_offset",
3634 "get_visible_region",
3635 "get_window_region",
3636 "set_window_region",
3637 "get_update_region",
3638 "update_window_zorder",
3640 "set_window_property",
3641 "remove_window_property",
3642 "get_window_property",
3643 "get_window_properties",
3644 "create_winstation",
3647 "get_process_winstation",
3648 "set_process_winstation",
3652 "get_thread_desktop",
3653 "set_thread_desktop",
3654 "set_user_object_info",
3655 "attach_thread_input",
3657 "get_last_input_time",
3660 "set_foreground_window",
3662 "set_active_window",
3663 "set_capture_window",
3669 "finish_hook_chain",
3674 "set_clipboard_info",
3676 "set_global_windows",
3677 "adjust_token_privileges",
3678 "get_token_privileges",
3679 "check_token_privileges",
3684 "set_mailslot_info",
3687 /* ### make_requests end ### */
3688 /* Everything above this line is generated automatically by tools/make_requests */
3690 static const char *get_status_name( unsigned int status )
3692 #define NAME(status) { #status, STATUS_##status }
3693 #define NAME_WIN32(error) { #error, 0xc0010000 | error }
3700 NAME(ACCESS_DENIED),
3701 NAME(ACCESS_VIOLATION),
3703 NAME(BUFFER_OVERFLOW),
3704 NAME(CHILD_MUST_BE_VOLATILE),
3705 NAME(DIRECTORY_NOT_EMPTY),
3707 NAME(DLL_NOT_FOUND),
3708 NAME(FILE_IS_A_DIRECTORY),
3709 NAME(FILE_LOCK_CONFLICT),
3710 NAME(INVALID_FILE_FOR_SECTION),
3711 NAME(INVALID_HANDLE),
3712 NAME(INVALID_PARAMETER),
3714 NAME(MEDIA_WRITE_PROTECTED),
3715 NAME(MUTANT_NOT_OWNED),
3716 NAME(NOT_A_DIRECTORY),
3717 NAME(NOT_IMPLEMENTED),
3718 NAME(NOT_REGISTRY_FILE),
3719 NAME(NO_DATA_DETECTED),
3721 NAME(NO_MORE_ENTRIES),
3722 NAME(NO_MORE_FILES),
3724 NAME(OBJECT_NAME_COLLISION),
3725 NAME(OBJECT_NAME_INVALID),
3726 NAME(OBJECT_NAME_NOT_FOUND),
3727 NAME(OBJECT_PATH_INVALID),
3728 NAME(OBJECT_TYPE_MISMATCH),
3731 NAME(PIPE_CONNECTED),
3732 NAME(PIPE_DISCONNECTED),
3733 NAME(PIPE_LISTENING),
3734 NAME(PIPE_NOT_AVAILABLE),
3735 NAME(SEMAPHORE_LIMIT_EXCEEDED),
3736 NAME(SHARING_VIOLATION),
3737 NAME(SUSPEND_COUNT_EXCEEDED),
3741 NAME_WIN32(ERROR_INVALID_INDEX),
3742 NAME_WIN32(ERROR_INVALID_THREAD_ID),
3743 NAME_WIN32(ERROR_NEGATIVE_SEEK),
3744 NAME_WIN32(ERROR_SEEK),
3745 { NULL, 0 } /* terminator */
3750 static char buffer[10];
3754 for (i = 0; status_names[i].name; i++)
3755 if (status_names[i].value == status) return status_names[i].name;
3757 sprintf( buffer, "%x", status );
3761 void trace_request(void)
3763 enum request req = current->req.request_header.req;
3764 if (req < REQ_NB_REQUESTS)
3766 fprintf( stderr, "%04x: %s(", current->id, req_names[req] );
3767 if (req_dumpers[req])
3770 cur_data = get_req_data();
3771 cur_size = get_req_data_size();
3772 req_dumpers[req]( ¤t->req );
3774 fprintf( stderr, " )\n" );
3776 else fprintf( stderr, "%04x: %d(?)\n", current->id, req );
3779 void trace_reply( enum request req, const union generic_reply *reply )
3781 if (req < REQ_NB_REQUESTS)
3783 fprintf( stderr, "%04x: %s() = %s",
3784 current->id, req_names[req], get_status_name(current->error) );
3785 if (reply_dumpers[req])
3787 fprintf( stderr, " {" );
3789 cur_data = current->reply_data;
3790 cur_size = reply->reply_header.reply_size;
3791 reply_dumpers[req]( reply );
3792 fprintf( stderr, " }" );
3794 fputc( '\n', stderr );
3796 else fprintf( stderr, "%04x: %d() = %s\n",
3797 current->id, req, get_status_name(current->error) );