2 * Server request tracing
4 * Copyright (C) 1999 Alexandre Julliard
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22 #include "wine/port.h"
27 #include <sys/types.h>
41 static const void *cur_data;
44 /* utility functions */
46 inline static void remove_data( size_t size )
48 cur_data = (const char *)cur_data + size;
52 static void dump_uints( const int *ptr, int len )
57 fprintf( stderr, "%08x", *ptr++ );
58 if (--len) fputc( ',', stderr );
63 static void dump_abs_time( const abs_time_t *time )
68 if (!time->sec && !time->usec)
70 fprintf( stderr, "0" );
73 gettimeofday( &tv, NULL );
74 secs = time->sec - tv.tv_sec;
75 if ((usecs = time->usec - tv.tv_usec) < 0)
80 if (secs > 0 || (secs == 0 && usecs >= 0))
81 fprintf( stderr, "%d.%06d (+%d.%06d)", time->sec, time->usec, secs, usecs );
83 fprintf( stderr, "%d.%06d (-%d.%06d)", time->sec, time->usec, abs(secs+1), 1000000-usecs );
86 static void dump_rectangle( const rectangle_t *rect )
88 fprintf( stderr, "{%d,%d;%d,%d}",
89 rect->left, rect->top, rect->right, rect->bottom );
92 static void dump_char_info( const char_info_t *info )
94 fprintf( stderr, "{'" );
95 dump_strW( &info->ch, 1, stderr, "\'\'" );
96 fprintf( stderr, "',%04x}", info->attr );
99 static void dump_context( const CONTEXT *context )
102 fprintf( stderr, "{flags=%08lx,eax=%08lx,ebx=%08lx,ecx=%08lx,edx=%08lx,esi=%08lx,edi=%08lx,"
103 "ebp=%08lx,eip=%08lx,esp=%08lx,eflags=%08lx,cs=%04lx,ds=%04lx,es=%04lx,"
104 "fs=%04lx,gs=%04lx,dr0=%08lx,dr1=%08lx,dr2=%08lx,dr3=%08lx,dr6=%08lx,dr7=%08lx,",
105 context->ContextFlags, context->Eax, context->Ebx, context->Ecx, context->Edx,
106 context->Esi, context->Edi, context->Ebp, context->Eip, context->Esp, context->EFlags,
107 context->SegCs, context->SegDs, context->SegEs, context->SegFs, context->SegGs,
108 context->Dr0, context->Dr1, context->Dr2, context->Dr3, context->Dr6, context->Dr7 );
109 fprintf( stderr, "float=" );
110 dump_uints( (const int *)&context->FloatSave, sizeof(context->FloatSave) / sizeof(int) );
111 fprintf( stderr, "}" );
113 dump_uints( (const int *)context, sizeof(*context) / sizeof(int) );
117 static void dump_exc_record( const EXCEPTION_RECORD *rec )
120 fprintf( stderr, "{code=%lx,flags=%lx,rec=%p,addr=%p,params={",
121 rec->ExceptionCode, rec->ExceptionFlags, rec->ExceptionRecord,
122 rec->ExceptionAddress );
123 for (i = 0; i < min(rec->NumberParameters,EXCEPTION_MAXIMUM_PARAMETERS); i++)
125 if (i) fputc( ',', stderr );
126 fprintf( stderr, "%lx", rec->ExceptionInformation[i] );
128 fputc( '}', stderr );
131 static void dump_varargs_ints( size_t size )
133 const int *data = cur_data;
134 size_t len = size / sizeof(*data);
136 fputc( '{', stderr );
139 fprintf( stderr, "%d", *data++ );
140 if (--len) fputc( ',', stderr );
142 fputc( '}', stderr );
146 static void dump_varargs_handles( size_t size )
148 const obj_handle_t *data = cur_data;
149 size_t len = size / sizeof(*data);
151 fputc( '{', stderr );
154 fprintf( stderr, "%p", *data++ );
155 if (--len) fputc( ',', stderr );
157 fputc( '}', stderr );
161 static void dump_varargs_user_handles( size_t size )
163 const user_handle_t *data = cur_data;
164 size_t len = size / sizeof(*data);
166 fputc( '{', stderr );
169 fprintf( stderr, "%p", *data++ );
170 if (--len) fputc( ',', stderr );
172 fputc( '}', stderr );
176 static void dump_varargs_bytes( size_t size )
178 const unsigned char *data = cur_data;
181 fputc( '{', stderr );
184 fprintf( stderr, "%02x", *data++ );
185 if (--len) fputc( ',', stderr );
187 fputc( '}', stderr );
191 static void dump_varargs_string( size_t size )
193 fprintf( stderr, "\"%.*s\"", (int)size, (const char *)cur_data );
197 static void dump_varargs_unicode_str( size_t size )
199 fprintf( stderr, "L\"" );
200 dump_strW( cur_data, size / sizeof(WCHAR), stderr, "\"\"" );
201 fputc( '\"', stderr );
205 static void dump_varargs_context( size_t size )
209 fprintf( stderr, "{}" );
212 dump_context( cur_data );
216 static void dump_varargs_exc_event( size_t size )
218 const CONTEXT *ptr = cur_data;
222 fprintf( stderr, "{}" );
225 fprintf( stderr, "{context=" );
227 fprintf( stderr, ",rec=" );
228 dump_exc_record( (const EXCEPTION_RECORD *)(ptr + 1) );
229 fputc( '}', stderr );
233 static void dump_varargs_debug_event( size_t size )
235 const debug_event_t *event = cur_data;
239 fprintf( stderr, "{}" );
244 case EXCEPTION_DEBUG_EVENT:
245 fprintf( stderr, "{exception," );
246 dump_exc_record( &event->info.exception.record );
247 fprintf( stderr, ",first=%d}", event->info.exception.first );
249 case CREATE_THREAD_DEBUG_EVENT:
250 fprintf( stderr, "{create_thread,thread=%p,teb=%p,start=%p}",
251 event->info.create_thread.handle, event->info.create_thread.teb,
252 event->info.create_thread.start );
254 case CREATE_PROCESS_DEBUG_EVENT:
255 fprintf( stderr, "{create_process,file=%p,process=%p,thread=%p,base=%p,offset=%d,"
256 "size=%d,teb=%p,start=%p,name=%p,unicode=%d}",
257 event->info.create_process.file, event->info.create_process.process,
258 event->info.create_process.thread, event->info.create_process.base,
259 event->info.create_process.dbg_offset, event->info.create_process.dbg_size,
260 event->info.create_process.teb, event->info.create_process.start,
261 event->info.create_process.name, event->info.create_process.unicode );
263 case EXIT_THREAD_DEBUG_EVENT:
264 fprintf( stderr, "{exit_thread,code=%d}", event->info.exit.exit_code );
266 case EXIT_PROCESS_DEBUG_EVENT:
267 fprintf( stderr, "{exit_process,code=%d}", event->info.exit.exit_code );
269 case LOAD_DLL_DEBUG_EVENT:
270 fprintf( stderr, "{load_dll,file=%p,base=%p,offset=%d,size=%d,name=%p,unicode=%d}",
271 event->info.load_dll.handle, event->info.load_dll.base,
272 event->info.load_dll.dbg_offset, event->info.load_dll.dbg_size,
273 event->info.load_dll.name, event->info.load_dll.unicode );
275 case UNLOAD_DLL_DEBUG_EVENT:
276 fprintf( stderr, "{unload_dll,base=%p}", event->info.unload_dll.base );
278 case OUTPUT_DEBUG_STRING_EVENT:
279 fprintf( stderr, "{output_string,data=%p,unicode=%d,len=%d}",
280 event->info.output_string.string, event->info.output_string.unicode,
281 event->info.output_string.length );
284 fprintf( stderr, "{rip,err=%d,type=%d}",
285 event->info.rip_info.error, event->info.rip_info.type );
287 case 0: /* zero is the code returned on timeouts */
288 fprintf( stderr, "{}" );
291 fprintf( stderr, "{code=??? (%d)}", event->code );
297 /* dump a unicode string contained in a buffer; helper for dump_varargs_startup_info */
298 static void dump_inline_unicode_string( const UNICODE_STRING *str, const void *data, size_t size )
300 size_t length = str->Length / sizeof(WCHAR);
301 size_t offset = (size_t)str->Buffer;
303 if (offset >= size) return;
304 if (offset + length > size) length = size - offset;
305 dump_strW( (const WCHAR *)data + offset/sizeof(WCHAR), length, stderr, "\"\"" );
308 static void dump_varargs_startup_info( size_t size )
310 const RTL_USER_PROCESS_PARAMETERS *ptr = cur_data;
311 RTL_USER_PROCESS_PARAMETERS params;
313 if (size < sizeof(params.Size))
315 fprintf( stderr, "{}" );
318 if (size > ptr->Size) size = ptr->Size;
319 memset( ¶ms, 0, sizeof(params) );
320 memcpy( ¶ms, ptr, min( size, sizeof(params) ));
322 fprintf( stderr, "{AllocationSize=%lx,", params.AllocationSize );
323 fprintf( stderr, "Size=%lx,", params.Size );
324 fprintf( stderr, "Flags=%lx,", params.Flags );
325 fprintf( stderr, "DebugFlags=%lx,", params.DebugFlags );
326 fprintf( stderr, "ConsoleHandle=%p,", params.ConsoleHandle );
327 fprintf( stderr, "ConsoleFlags=%lx,", params.ConsoleFlags );
328 fprintf( stderr, "hStdInput=%p,", params.hStdInput );
329 fprintf( stderr, "hStdOutput=%p,", params.hStdOutput );
330 fprintf( stderr, "hStdError=%p,", params.hStdError );
331 fprintf( stderr, "CurrentDirectory.Handle=%p,", params.CurrentDirectory.Handle );
332 fprintf( stderr, "dwX=%ld,", params.dwX );
333 fprintf( stderr, "dwY=%ld,", params.dwY );
334 fprintf( stderr, "dwXSize=%ld,", params.dwXSize );
335 fprintf( stderr, "dwYSize=%ld,", params.dwYSize );
336 fprintf( stderr, "dwXCountChars=%ld,", params.dwXCountChars );
337 fprintf( stderr, "dwYCountChars=%ld,", params.dwYCountChars );
338 fprintf( stderr, "dwFillAttribute=%lx,", params.dwFillAttribute );
339 fprintf( stderr, "dwFlags=%lx,", params.dwFlags );
340 fprintf( stderr, "wShowWindow=%lx,", params.wShowWindow );
341 fprintf( stderr, "CurrentDirectory.DosPath=L\"" );
342 dump_inline_unicode_string( ¶ms.CurrentDirectory.DosPath, cur_data, size );
343 fprintf( stderr, "\",DllPath=L\"" );
344 dump_inline_unicode_string( ¶ms.DllPath, cur_data, size );
345 fprintf( stderr, "\",ImagePathName=L\"" );
346 dump_inline_unicode_string( ¶ms.ImagePathName, cur_data, size );
347 fprintf( stderr, "\",CommandLine=L\"" );
348 dump_inline_unicode_string( ¶ms.CommandLine, cur_data, size );
349 fprintf( stderr, "\",WindowTitle=L\"" );
350 dump_inline_unicode_string( ¶ms.WindowTitle, cur_data, size );
351 fprintf( stderr, "\",Desktop=L\"" );
352 dump_inline_unicode_string( ¶ms.Desktop, cur_data, size );
353 fprintf( stderr, "\",ShellInfo=L\"" );
354 dump_inline_unicode_string( ¶ms.ShellInfo, cur_data, size );
355 fprintf( stderr, "\",RuntimeInfo=L\"" );
356 dump_inline_unicode_string( ¶ms.RuntimeInfo, cur_data, size );
357 fprintf( stderr, "\"}" );
361 static void dump_varargs_input_records( size_t size )
363 const INPUT_RECORD *rec = cur_data;
364 size_t len = size / sizeof(*rec);
366 fputc( '{', stderr );
369 fprintf( stderr, "{%04x,...}", rec->EventType );
371 if (--len) fputc( ',', stderr );
373 fputc( '}', stderr );
377 static void dump_varargs_rectangles( size_t size )
379 const rectangle_t *rect = cur_data;
380 size_t len = size / sizeof(*rect);
382 fputc( '{', stderr );
385 dump_rectangle( rect++ );
386 if (--len) fputc( ',', stderr );
388 fputc( '}', stderr );
392 static void dump_varargs_properties( size_t size )
394 const property_data_t *prop = cur_data;
395 size_t len = size / sizeof(*prop);
397 fputc( '{', stderr );
400 fprintf( stderr, "{atom=%04x,str=%d,handle=%p}",
401 prop->atom, prop->string, prop->handle );
403 if (--len) fputc( ',', stderr );
405 fputc( '}', stderr );
409 static void dump_varargs_LUID_AND_ATTRIBUTES( size_t size )
411 const LUID_AND_ATTRIBUTES *lat = cur_data;
412 size_t len = size / sizeof(*lat);
414 fputc( '{', stderr );
417 fprintf( stderr, "{luid=%08lx%08lx,attr=%lx}",
418 lat->Luid.HighPart, lat->Luid.LowPart, lat->Attributes );
420 if (--len) fputc( ',', stderr );
422 fputc( '}', stderr );
426 static void dump_inline_sid( const SID *sid, size_t size )
431 if ((FIELD_OFFSET(SID, SubAuthority[0]) > size) ||
432 (FIELD_OFFSET(SID, SubAuthority[sid->SubAuthorityCount]) > size))
434 fprintf( stderr, "<invalid sid>" );
438 fputc( '{', stderr );
439 fprintf( stderr, "S-%u-%lu", sid->Revision, MAKELONG(
440 MAKEWORD( sid->IdentifierAuthority.Value[5],
441 sid->IdentifierAuthority.Value[4] ),
442 MAKEWORD( sid->IdentifierAuthority.Value[3],
443 sid->IdentifierAuthority.Value[2] ) ) );
444 for (i = 0; i < sid->SubAuthorityCount; i++)
445 fprintf( stderr, "-%lu", sid->SubAuthority[i] );
446 fputc( '}', stderr );
449 static void dump_varargs_SID( size_t size )
451 const SID *sid = cur_data;
452 dump_inline_sid( sid, size );
456 static void dump_inline_acl( const ACL *acl, size_t size )
458 const ACE_HEADER *ace;
460 fputc( '{', stderr );
464 if (size < sizeof(ACL))
466 fprintf( stderr, "<invalid acl>}\n" );
470 ace = (const ACE_HEADER *)(acl + 1);
471 for (i = 0; i < acl->AceCount; i++)
473 const SID *sid = NULL;
476 if (size < sizeof(ACE_HEADER))
478 if (size < ace->AceSize)
480 size -= ace->AceSize;
481 if (i != 0) fputc( ',', stderr );
482 fprintf( stderr, "{AceType=" );
483 switch (ace->AceType)
485 case ACCESS_DENIED_ACE_TYPE:
486 sid = (const SID *)&((const ACCESS_DENIED_ACE *)ace)->SidStart;
487 sid_size = ace->AceSize - FIELD_OFFSET(ACCESS_DENIED_ACE, SidStart);
488 fprintf( stderr, "ACCESS_DENIED_ACE_TYPE,Mask=%lx",
489 ((const ACCESS_DENIED_ACE *)ace)->Mask );
491 case ACCESS_ALLOWED_ACE_TYPE:
492 sid = (const SID *)&((const ACCESS_ALLOWED_ACE *)ace)->SidStart;
493 sid_size = ace->AceSize - FIELD_OFFSET(ACCESS_ALLOWED_ACE, SidStart);
494 fprintf( stderr, "ACCESS_ALLOWED_ACE_TYPE,Mask=%lx",
495 ((const ACCESS_ALLOWED_ACE *)ace)->Mask );
497 case SYSTEM_AUDIT_ACE_TYPE:
498 sid = (const SID *)&((const SYSTEM_AUDIT_ACE *)ace)->SidStart;
499 sid_size = ace->AceSize - FIELD_OFFSET(SYSTEM_AUDIT_ACE, SidStart);
500 fprintf( stderr, "SYSTEM_AUDIT_ACE_TYPE,Mask=%lx",
501 ((const SYSTEM_AUDIT_ACE *)ace)->Mask );
503 case SYSTEM_ALARM_ACE_TYPE:
504 sid = (const SID *)&((const SYSTEM_ALARM_ACE *)ace)->SidStart;
505 sid_size = ace->AceSize - FIELD_OFFSET(SYSTEM_ALARM_ACE, SidStart);
506 fprintf( stderr, "SYSTEM_ALARM_ACE_TYPE,Mask=%lx",
507 ((const SYSTEM_ALARM_ACE *)ace)->Mask );
510 fprintf( stderr, "unknown<%d>", ace->AceType );
513 fprintf( stderr, ",AceFlags=%x,Sid=", ace->AceFlags );
515 dump_inline_sid( sid, sid_size );
516 ace = (const ACE_HEADER *)((const char *)ace + ace->AceSize);
517 fputc( '}', stderr );
520 fputc( '}', stderr );
523 static void dump_inline_security_descriptor( const struct security_descriptor *sd, size_t size )
525 fputc( '{', stderr );
526 if (size >= sizeof(struct security_descriptor))
528 size_t offset = sizeof(struct security_descriptor);
529 fprintf( stderr, "control=%08x", sd->control );
530 fprintf( stderr, ",owner=" );
531 if ((sd->owner_len > FIELD_OFFSET(SID, SubAuthority[255])) || (offset + sd->owner_len > size))
533 dump_inline_sid( (const SID *)((const char *)sd + offset), sd->owner_len );
534 offset += sd->owner_len;
535 fprintf( stderr, ",group=" );
536 if ((sd->group_len > FIELD_OFFSET(SID, SubAuthority[255])) || (offset + sd->group_len > size))
538 dump_inline_sid( (const SID *)((const char *)sd + offset), sd->group_len );
539 offset += sd->group_len;
540 fprintf( stderr, ",sacl=" );
541 if ((sd->sacl_len >= MAX_ACL_LEN) || (offset + sd->sacl_len > size))
543 dump_inline_acl( (const ACL *)((const char *)sd + offset), sd->sacl_len );
544 offset += sd->sacl_len;
545 fprintf( stderr, ",dacl=" );
546 if ((sd->dacl_len >= MAX_ACL_LEN) || (offset + sd->dacl_len > size))
548 dump_inline_acl( (const ACL *)((const char *)sd + offset), sd->dacl_len );
549 offset += sd->dacl_len;
551 fputc( '}', stderr );
554 static void dump_varargs_security_descriptor( size_t size )
556 const struct security_descriptor *sd = cur_data;
557 dump_inline_security_descriptor( sd, size );
561 typedef void (*dump_func)( const void *req );
563 /* Everything below this line is generated automatically by tools/make_requests */
564 /* ### make_requests begin ### */
566 static void dump_new_process_request( const struct new_process_request *req )
568 fprintf( stderr, " inherit_all=%d,", req->inherit_all );
569 fprintf( stderr, " create_flags=%08x,", req->create_flags );
570 fprintf( stderr, " unix_pid=%d,", req->unix_pid );
571 fprintf( stderr, " exe_file=%p,", req->exe_file );
572 fprintf( stderr, " hstdin=%p,", req->hstdin );
573 fprintf( stderr, " hstdout=%p,", req->hstdout );
574 fprintf( stderr, " hstderr=%p,", req->hstderr );
575 fprintf( stderr, " info=" );
576 dump_varargs_startup_info( cur_size );
577 fputc( ',', stderr );
578 fprintf( stderr, " env=" );
579 dump_varargs_unicode_str( cur_size );
582 static void dump_new_process_reply( const struct new_process_reply *req )
584 fprintf( stderr, " info=%p", req->info );
587 static void dump_get_new_process_info_request( const struct get_new_process_info_request *req )
589 fprintf( stderr, " info=%p,", req->info );
590 fprintf( stderr, " pinherit=%d,", req->pinherit );
591 fprintf( stderr, " tinherit=%d", req->tinherit );
594 static void dump_get_new_process_info_reply( const struct get_new_process_info_reply *req )
596 fprintf( stderr, " pid=%04x,", req->pid );
597 fprintf( stderr, " phandle=%p,", req->phandle );
598 fprintf( stderr, " tid=%04x,", req->tid );
599 fprintf( stderr, " thandle=%p,", req->thandle );
600 fprintf( stderr, " success=%d", req->success );
603 static void dump_new_thread_request( const struct new_thread_request *req )
605 fprintf( stderr, " suspend=%d,", req->suspend );
606 fprintf( stderr, " inherit=%d,", req->inherit );
607 fprintf( stderr, " request_fd=%d", req->request_fd );
610 static void dump_new_thread_reply( const struct new_thread_reply *req )
612 fprintf( stderr, " tid=%04x,", req->tid );
613 fprintf( stderr, " handle=%p", req->handle );
616 static void dump_get_startup_info_request( const struct get_startup_info_request *req )
620 static void dump_get_startup_info_reply( const struct get_startup_info_reply *req )
622 fprintf( stderr, " create_flags=%08x,", req->create_flags );
623 fprintf( stderr, " exe_file=%p,", req->exe_file );
624 fprintf( stderr, " hstdin=%p,", req->hstdin );
625 fprintf( stderr, " hstdout=%p,", req->hstdout );
626 fprintf( stderr, " hstderr=%p,", req->hstderr );
627 fprintf( stderr, " info=" );
628 dump_varargs_startup_info( cur_size );
629 fputc( ',', stderr );
630 fprintf( stderr, " env=" );
631 dump_varargs_unicode_str( cur_size );
634 static void dump_init_process_done_request( const struct init_process_done_request *req )
636 fprintf( stderr, " module=%p,", req->module );
637 fprintf( stderr, " module_size=%d,", req->module_size );
638 fprintf( stderr, " entry=%p,", req->entry );
639 fprintf( stderr, " name=%p,", req->name );
640 fprintf( stderr, " exe_file=%p,", req->exe_file );
641 fprintf( stderr, " gui=%d,", req->gui );
642 fprintf( stderr, " filename=" );
643 dump_varargs_unicode_str( cur_size );
646 static void dump_init_thread_request( const struct init_thread_request *req )
648 fprintf( stderr, " unix_pid=%d,", req->unix_pid );
649 fprintf( stderr, " unix_tid=%d,", req->unix_tid );
650 fprintf( stderr, " teb=%p,", req->teb );
651 fprintf( stderr, " peb=%p,", req->peb );
652 fprintf( stderr, " entry=%p,", req->entry );
653 fprintf( stderr, " ldt_copy=%p,", req->ldt_copy );
654 fprintf( stderr, " reply_fd=%d,", req->reply_fd );
655 fprintf( stderr, " wait_fd=%d,", req->wait_fd );
656 fprintf( stderr, " debug_level=%d", req->debug_level );
659 static void dump_init_thread_reply( const struct init_thread_reply *req )
661 fprintf( stderr, " pid=%04x,", req->pid );
662 fprintf( stderr, " tid=%04x,", req->tid );
663 fprintf( stderr, " info_size=%d,", req->info_size );
664 fprintf( stderr, " server_start=%ld,", (long)req->server_start );
665 fprintf( stderr, " version=%d", req->version );
668 static void dump_terminate_process_request( const struct terminate_process_request *req )
670 fprintf( stderr, " handle=%p,", req->handle );
671 fprintf( stderr, " exit_code=%d", req->exit_code );
674 static void dump_terminate_process_reply( const struct terminate_process_reply *req )
676 fprintf( stderr, " self=%d", req->self );
679 static void dump_terminate_thread_request( const struct terminate_thread_request *req )
681 fprintf( stderr, " handle=%p,", req->handle );
682 fprintf( stderr, " exit_code=%d", req->exit_code );
685 static void dump_terminate_thread_reply( const struct terminate_thread_reply *req )
687 fprintf( stderr, " self=%d,", req->self );
688 fprintf( stderr, " last=%d", req->last );
691 static void dump_get_process_info_request( const struct get_process_info_request *req )
693 fprintf( stderr, " handle=%p", req->handle );
696 static void dump_get_process_info_reply( const struct get_process_info_reply *req )
698 fprintf( stderr, " pid=%04x,", req->pid );
699 fprintf( stderr, " ppid=%04x,", req->ppid );
700 fprintf( stderr, " exit_code=%d,", req->exit_code );
701 fprintf( stderr, " priority=%d,", req->priority );
702 fprintf( stderr, " affinity=%d,", req->affinity );
703 fprintf( stderr, " peb=%p", req->peb );
706 static void dump_set_process_info_request( const struct set_process_info_request *req )
708 fprintf( stderr, " handle=%p,", req->handle );
709 fprintf( stderr, " mask=%d,", req->mask );
710 fprintf( stderr, " priority=%d,", req->priority );
711 fprintf( stderr, " affinity=%d", req->affinity );
714 static void dump_get_thread_info_request( const struct get_thread_info_request *req )
716 fprintf( stderr, " handle=%p,", req->handle );
717 fprintf( stderr, " tid_in=%04x", req->tid_in );
720 static void dump_get_thread_info_reply( const struct get_thread_info_reply *req )
722 fprintf( stderr, " pid=%04x,", req->pid );
723 fprintf( stderr, " tid=%04x,", req->tid );
724 fprintf( stderr, " teb=%p,", req->teb );
725 fprintf( stderr, " exit_code=%d,", req->exit_code );
726 fprintf( stderr, " priority=%d,", req->priority );
727 fprintf( stderr, " affinity=%d,", req->affinity );
728 fprintf( stderr, " creation_time=%ld,", (long)req->creation_time );
729 fprintf( stderr, " exit_time=%ld", (long)req->exit_time );
732 static void dump_set_thread_info_request( const struct set_thread_info_request *req )
734 fprintf( stderr, " handle=%p,", req->handle );
735 fprintf( stderr, " mask=%d,", req->mask );
736 fprintf( stderr, " priority=%d,", req->priority );
737 fprintf( stderr, " affinity=%d,", req->affinity );
738 fprintf( stderr, " token=%p", req->token );
741 static void dump_get_dll_info_request( const struct get_dll_info_request *req )
743 fprintf( stderr, " handle=%p,", req->handle );
744 fprintf( stderr, " base_address=%p", req->base_address );
747 static void dump_get_dll_info_reply( const struct get_dll_info_reply *req )
749 fprintf( stderr, " size=%d,", req->size );
750 fprintf( stderr, " entry_point=%p,", req->entry_point );
751 fprintf( stderr, " filename=" );
752 dump_varargs_unicode_str( cur_size );
755 static void dump_suspend_thread_request( const struct suspend_thread_request *req )
757 fprintf( stderr, " handle=%p", req->handle );
760 static void dump_suspend_thread_reply( const struct suspend_thread_reply *req )
762 fprintf( stderr, " count=%d", req->count );
765 static void dump_resume_thread_request( const struct resume_thread_request *req )
767 fprintf( stderr, " handle=%p", req->handle );
770 static void dump_resume_thread_reply( const struct resume_thread_reply *req )
772 fprintf( stderr, " count=%d", req->count );
775 static void dump_load_dll_request( const struct load_dll_request *req )
777 fprintf( stderr, " handle=%p,", req->handle );
778 fprintf( stderr, " base=%p,", req->base );
779 fprintf( stderr, " size=%d,", req->size );
780 fprintf( stderr, " dbg_offset=%d,", req->dbg_offset );
781 fprintf( stderr, " dbg_size=%d,", req->dbg_size );
782 fprintf( stderr, " name=%p,", req->name );
783 fprintf( stderr, " filename=" );
784 dump_varargs_unicode_str( cur_size );
787 static void dump_unload_dll_request( const struct unload_dll_request *req )
789 fprintf( stderr, " base=%p", req->base );
792 static void dump_queue_apc_request( const struct queue_apc_request *req )
794 fprintf( stderr, " handle=%p,", req->handle );
795 fprintf( stderr, " user=%d,", req->user );
796 fprintf( stderr, " func=%p,", req->func );
797 fprintf( stderr, " arg1=%p,", req->arg1 );
798 fprintf( stderr, " arg2=%p,", req->arg2 );
799 fprintf( stderr, " arg3=%p", req->arg3 );
802 static void dump_get_apc_request( const struct get_apc_request *req )
804 fprintf( stderr, " alertable=%d", req->alertable );
807 static void dump_get_apc_reply( const struct get_apc_reply *req )
809 fprintf( stderr, " func=%p,", req->func );
810 fprintf( stderr, " type=%d,", req->type );
811 fprintf( stderr, " arg1=%p,", req->arg1 );
812 fprintf( stderr, " arg2=%p,", req->arg2 );
813 fprintf( stderr, " arg3=%p", req->arg3 );
816 static void dump_close_handle_request( const struct close_handle_request *req )
818 fprintf( stderr, " handle=%p", req->handle );
821 static void dump_close_handle_reply( const struct close_handle_reply *req )
823 fprintf( stderr, " fd=%d", req->fd );
826 static void dump_set_handle_info_request( const struct set_handle_info_request *req )
828 fprintf( stderr, " handle=%p,", req->handle );
829 fprintf( stderr, " flags=%d,", req->flags );
830 fprintf( stderr, " mask=%d", req->mask );
833 static void dump_set_handle_info_reply( const struct set_handle_info_reply *req )
835 fprintf( stderr, " old_flags=%d", req->old_flags );
838 static void dump_dup_handle_request( const struct dup_handle_request *req )
840 fprintf( stderr, " src_process=%p,", req->src_process );
841 fprintf( stderr, " src_handle=%p,", req->src_handle );
842 fprintf( stderr, " dst_process=%p,", req->dst_process );
843 fprintf( stderr, " access=%08x,", req->access );
844 fprintf( stderr, " inherit=%d,", req->inherit );
845 fprintf( stderr, " options=%d", req->options );
848 static void dump_dup_handle_reply( const struct dup_handle_reply *req )
850 fprintf( stderr, " handle=%p,", req->handle );
851 fprintf( stderr, " fd=%d", req->fd );
854 static void dump_open_process_request( const struct open_process_request *req )
856 fprintf( stderr, " pid=%04x,", req->pid );
857 fprintf( stderr, " access=%08x,", req->access );
858 fprintf( stderr, " inherit=%d", req->inherit );
861 static void dump_open_process_reply( const struct open_process_reply *req )
863 fprintf( stderr, " handle=%p", req->handle );
866 static void dump_open_thread_request( const struct open_thread_request *req )
868 fprintf( stderr, " tid=%04x,", req->tid );
869 fprintf( stderr, " access=%08x,", req->access );
870 fprintf( stderr, " inherit=%d", req->inherit );
873 static void dump_open_thread_reply( const struct open_thread_reply *req )
875 fprintf( stderr, " handle=%p", req->handle );
878 static void dump_select_request( const struct select_request *req )
880 fprintf( stderr, " flags=%d,", req->flags );
881 fprintf( stderr, " cookie=%p,", req->cookie );
882 fprintf( stderr, " signal=%p,", req->signal );
883 fprintf( stderr, " timeout=" );
884 dump_abs_time( &req->timeout );
885 fprintf( stderr, "," );
886 fprintf( stderr, " handles=" );
887 dump_varargs_handles( cur_size );
890 static void dump_create_event_request( const struct create_event_request *req )
892 fprintf( stderr, " access=%08x,", req->access );
893 fprintf( stderr, " attributes=%08x,", req->attributes );
894 fprintf( stderr, " manual_reset=%d,", req->manual_reset );
895 fprintf( stderr, " initial_state=%d,", req->initial_state );
896 fprintf( stderr, " name=" );
897 dump_varargs_unicode_str( cur_size );
900 static void dump_create_event_reply( const struct create_event_reply *req )
902 fprintf( stderr, " handle=%p", req->handle );
905 static void dump_event_op_request( const struct event_op_request *req )
907 fprintf( stderr, " handle=%p,", req->handle );
908 fprintf( stderr, " op=%d", req->op );
911 static void dump_open_event_request( const struct open_event_request *req )
913 fprintf( stderr, " access=%08x,", req->access );
914 fprintf( stderr, " attributes=%08x,", req->attributes );
915 fprintf( stderr, " name=" );
916 dump_varargs_unicode_str( cur_size );
919 static void dump_open_event_reply( const struct open_event_reply *req )
921 fprintf( stderr, " handle=%p", req->handle );
924 static void dump_create_mutex_request( const struct create_mutex_request *req )
926 fprintf( stderr, " access=%08x,", req->access );
927 fprintf( stderr, " attributes=%08x,", req->attributes );
928 fprintf( stderr, " owned=%d,", req->owned );
929 fprintf( stderr, " name=" );
930 dump_varargs_unicode_str( cur_size );
933 static void dump_create_mutex_reply( const struct create_mutex_reply *req )
935 fprintf( stderr, " handle=%p", req->handle );
938 static void dump_release_mutex_request( const struct release_mutex_request *req )
940 fprintf( stderr, " handle=%p", req->handle );
943 static void dump_release_mutex_reply( const struct release_mutex_reply *req )
945 fprintf( stderr, " prev_count=%08x", req->prev_count );
948 static void dump_open_mutex_request( const struct open_mutex_request *req )
950 fprintf( stderr, " access=%08x,", req->access );
951 fprintf( stderr, " attributes=%08x,", req->attributes );
952 fprintf( stderr, " name=" );
953 dump_varargs_unicode_str( cur_size );
956 static void dump_open_mutex_reply( const struct open_mutex_reply *req )
958 fprintf( stderr, " handle=%p", req->handle );
961 static void dump_create_semaphore_request( const struct create_semaphore_request *req )
963 fprintf( stderr, " access=%08x,", req->access );
964 fprintf( stderr, " attributes=%08x,", req->attributes );
965 fprintf( stderr, " initial=%08x,", req->initial );
966 fprintf( stderr, " max=%08x,", req->max );
967 fprintf( stderr, " name=" );
968 dump_varargs_unicode_str( cur_size );
971 static void dump_create_semaphore_reply( const struct create_semaphore_reply *req )
973 fprintf( stderr, " handle=%p", req->handle );
976 static void dump_release_semaphore_request( const struct release_semaphore_request *req )
978 fprintf( stderr, " handle=%p,", req->handle );
979 fprintf( stderr, " count=%08x", req->count );
982 static void dump_release_semaphore_reply( const struct release_semaphore_reply *req )
984 fprintf( stderr, " prev_count=%08x", req->prev_count );
987 static void dump_open_semaphore_request( const struct open_semaphore_request *req )
989 fprintf( stderr, " access=%08x,", req->access );
990 fprintf( stderr, " attributes=%08x,", req->attributes );
991 fprintf( stderr, " name=" );
992 dump_varargs_unicode_str( cur_size );
995 static void dump_open_semaphore_reply( const struct open_semaphore_reply *req )
997 fprintf( stderr, " handle=%p", req->handle );
1000 static void dump_create_file_request( const struct create_file_request *req )
1002 fprintf( stderr, " access=%08x,", req->access );
1003 fprintf( stderr, " inherit=%d,", req->inherit );
1004 fprintf( stderr, " sharing=%08x,", req->sharing );
1005 fprintf( stderr, " create=%d,", req->create );
1006 fprintf( stderr, " options=%08x,", req->options );
1007 fprintf( stderr, " attrs=%08x,", req->attrs );
1008 fprintf( stderr, " filename=" );
1009 dump_varargs_string( cur_size );
1012 static void dump_create_file_reply( const struct create_file_reply *req )
1014 fprintf( stderr, " handle=%p", req->handle );
1017 static void dump_alloc_file_handle_request( const struct alloc_file_handle_request *req )
1019 fprintf( stderr, " access=%08x,", req->access );
1020 fprintf( stderr, " inherit=%d,", req->inherit );
1021 fprintf( stderr, " fd=%d", req->fd );
1024 static void dump_alloc_file_handle_reply( const struct alloc_file_handle_reply *req )
1026 fprintf( stderr, " handle=%p", req->handle );
1029 static void dump_get_handle_fd_request( const struct get_handle_fd_request *req )
1031 fprintf( stderr, " handle=%p,", req->handle );
1032 fprintf( stderr, " access=%08x", req->access );
1035 static void dump_get_handle_fd_reply( const struct get_handle_fd_reply *req )
1037 fprintf( stderr, " fd=%d,", req->fd );
1038 fprintf( stderr, " removable=%d,", req->removable );
1039 fprintf( stderr, " flags=%d", req->flags );
1042 static void dump_set_handle_fd_request( const struct set_handle_fd_request *req )
1044 fprintf( stderr, " handle=%p,", req->handle );
1045 fprintf( stderr, " fd=%d,", req->fd );
1046 fprintf( stderr, " removable=%d", req->removable );
1049 static void dump_set_handle_fd_reply( const struct set_handle_fd_reply *req )
1051 fprintf( stderr, " cur_fd=%d", req->cur_fd );
1054 static void dump_flush_file_request( const struct flush_file_request *req )
1056 fprintf( stderr, " handle=%p", req->handle );
1059 static void dump_flush_file_reply( const struct flush_file_reply *req )
1061 fprintf( stderr, " event=%p", req->event );
1064 static void dump_lock_file_request( const struct lock_file_request *req )
1066 fprintf( stderr, " handle=%p,", req->handle );
1067 fprintf( stderr, " offset_low=%08x,", req->offset_low );
1068 fprintf( stderr, " offset_high=%08x,", req->offset_high );
1069 fprintf( stderr, " count_low=%08x,", req->count_low );
1070 fprintf( stderr, " count_high=%08x,", req->count_high );
1071 fprintf( stderr, " shared=%d,", req->shared );
1072 fprintf( stderr, " wait=%d", req->wait );
1075 static void dump_lock_file_reply( const struct lock_file_reply *req )
1077 fprintf( stderr, " handle=%p,", req->handle );
1078 fprintf( stderr, " overlapped=%d", req->overlapped );
1081 static void dump_unlock_file_request( const struct unlock_file_request *req )
1083 fprintf( stderr, " handle=%p,", req->handle );
1084 fprintf( stderr, " offset_low=%08x,", req->offset_low );
1085 fprintf( stderr, " offset_high=%08x,", req->offset_high );
1086 fprintf( stderr, " count_low=%08x,", req->count_low );
1087 fprintf( stderr, " count_high=%08x", req->count_high );
1090 static void dump_unmount_device_request( const struct unmount_device_request *req )
1092 fprintf( stderr, " handle=%p", req->handle );
1095 static void dump_create_socket_request( const struct create_socket_request *req )
1097 fprintf( stderr, " access=%08x,", req->access );
1098 fprintf( stderr, " inherit=%d,", req->inherit );
1099 fprintf( stderr, " family=%d,", req->family );
1100 fprintf( stderr, " type=%d,", req->type );
1101 fprintf( stderr, " protocol=%d,", req->protocol );
1102 fprintf( stderr, " flags=%08x", req->flags );
1105 static void dump_create_socket_reply( const struct create_socket_reply *req )
1107 fprintf( stderr, " handle=%p", req->handle );
1110 static void dump_accept_socket_request( const struct accept_socket_request *req )
1112 fprintf( stderr, " lhandle=%p,", req->lhandle );
1113 fprintf( stderr, " access=%08x,", req->access );
1114 fprintf( stderr, " inherit=%d", req->inherit );
1117 static void dump_accept_socket_reply( const struct accept_socket_reply *req )
1119 fprintf( stderr, " handle=%p", req->handle );
1122 static void dump_set_socket_event_request( const struct set_socket_event_request *req )
1124 fprintf( stderr, " handle=%p,", req->handle );
1125 fprintf( stderr, " mask=%08x,", req->mask );
1126 fprintf( stderr, " event=%p,", req->event );
1127 fprintf( stderr, " window=%p,", req->window );
1128 fprintf( stderr, " msg=%08x", req->msg );
1131 static void dump_get_socket_event_request( const struct get_socket_event_request *req )
1133 fprintf( stderr, " handle=%p,", req->handle );
1134 fprintf( stderr, " service=%d,", req->service );
1135 fprintf( stderr, " c_event=%p", req->c_event );
1138 static void dump_get_socket_event_reply( const struct get_socket_event_reply *req )
1140 fprintf( stderr, " mask=%08x,", req->mask );
1141 fprintf( stderr, " pmask=%08x,", req->pmask );
1142 fprintf( stderr, " state=%08x,", req->state );
1143 fprintf( stderr, " errors=" );
1144 dump_varargs_ints( cur_size );
1147 static void dump_enable_socket_event_request( const struct enable_socket_event_request *req )
1149 fprintf( stderr, " handle=%p,", req->handle );
1150 fprintf( stderr, " mask=%08x,", req->mask );
1151 fprintf( stderr, " sstate=%08x,", req->sstate );
1152 fprintf( stderr, " cstate=%08x", req->cstate );
1155 static void dump_set_socket_deferred_request( const struct set_socket_deferred_request *req )
1157 fprintf( stderr, " handle=%p,", req->handle );
1158 fprintf( stderr, " deferred=%p", req->deferred );
1161 static void dump_alloc_console_request( const struct alloc_console_request *req )
1163 fprintf( stderr, " access=%08x,", req->access );
1164 fprintf( stderr, " inherit=%d,", req->inherit );
1165 fprintf( stderr, " pid=%04x", req->pid );
1168 static void dump_alloc_console_reply( const struct alloc_console_reply *req )
1170 fprintf( stderr, " handle_in=%p,", req->handle_in );
1171 fprintf( stderr, " event=%p", req->event );
1174 static void dump_free_console_request( const struct free_console_request *req )
1178 static void dump_get_console_renderer_events_request( const struct get_console_renderer_events_request *req )
1180 fprintf( stderr, " handle=%p", req->handle );
1183 static void dump_get_console_renderer_events_reply( const struct get_console_renderer_events_reply *req )
1185 fprintf( stderr, " data=" );
1186 dump_varargs_bytes( cur_size );
1189 static void dump_open_console_request( const struct open_console_request *req )
1191 fprintf( stderr, " from=%d,", req->from );
1192 fprintf( stderr, " access=%08x,", req->access );
1193 fprintf( stderr, " inherit=%d,", req->inherit );
1194 fprintf( stderr, " share=%d", req->share );
1197 static void dump_open_console_reply( const struct open_console_reply *req )
1199 fprintf( stderr, " handle=%p", req->handle );
1202 static void dump_get_console_wait_event_request( const struct get_console_wait_event_request *req )
1206 static void dump_get_console_wait_event_reply( const struct get_console_wait_event_reply *req )
1208 fprintf( stderr, " handle=%p", req->handle );
1211 static void dump_get_console_mode_request( const struct get_console_mode_request *req )
1213 fprintf( stderr, " handle=%p", req->handle );
1216 static void dump_get_console_mode_reply( const struct get_console_mode_reply *req )
1218 fprintf( stderr, " mode=%d", req->mode );
1221 static void dump_set_console_mode_request( const struct set_console_mode_request *req )
1223 fprintf( stderr, " handle=%p,", req->handle );
1224 fprintf( stderr, " mode=%d", req->mode );
1227 static void dump_set_console_input_info_request( const struct set_console_input_info_request *req )
1229 fprintf( stderr, " handle=%p,", req->handle );
1230 fprintf( stderr, " mask=%d,", req->mask );
1231 fprintf( stderr, " active_sb=%p,", req->active_sb );
1232 fprintf( stderr, " history_mode=%d,", req->history_mode );
1233 fprintf( stderr, " history_size=%d,", req->history_size );
1234 fprintf( stderr, " edition_mode=%d,", req->edition_mode );
1235 fprintf( stderr, " title=" );
1236 dump_varargs_unicode_str( cur_size );
1239 static void dump_get_console_input_info_request( const struct get_console_input_info_request *req )
1241 fprintf( stderr, " handle=%p", req->handle );
1244 static void dump_get_console_input_info_reply( const struct get_console_input_info_reply *req )
1246 fprintf( stderr, " history_mode=%d,", req->history_mode );
1247 fprintf( stderr, " history_size=%d,", req->history_size );
1248 fprintf( stderr, " history_index=%d,", req->history_index );
1249 fprintf( stderr, " edition_mode=%d,", req->edition_mode );
1250 fprintf( stderr, " title=" );
1251 dump_varargs_unicode_str( cur_size );
1254 static void dump_append_console_input_history_request( const struct append_console_input_history_request *req )
1256 fprintf( stderr, " handle=%p,", req->handle );
1257 fprintf( stderr, " line=" );
1258 dump_varargs_unicode_str( cur_size );
1261 static void dump_get_console_input_history_request( const struct get_console_input_history_request *req )
1263 fprintf( stderr, " handle=%p,", req->handle );
1264 fprintf( stderr, " index=%d", req->index );
1267 static void dump_get_console_input_history_reply( const struct get_console_input_history_reply *req )
1269 fprintf( stderr, " total=%d,", req->total );
1270 fprintf( stderr, " line=" );
1271 dump_varargs_unicode_str( cur_size );
1274 static void dump_create_console_output_request( const struct create_console_output_request *req )
1276 fprintf( stderr, " handle_in=%p,", req->handle_in );
1277 fprintf( stderr, " access=%d,", req->access );
1278 fprintf( stderr, " share=%d,", req->share );
1279 fprintf( stderr, " inherit=%d", req->inherit );
1282 static void dump_create_console_output_reply( const struct create_console_output_reply *req )
1284 fprintf( stderr, " handle_out=%p", req->handle_out );
1287 static void dump_set_console_output_info_request( const struct set_console_output_info_request *req )
1289 fprintf( stderr, " handle=%p,", req->handle );
1290 fprintf( stderr, " mask=%d,", req->mask );
1291 fprintf( stderr, " cursor_size=%d,", req->cursor_size );
1292 fprintf( stderr, " cursor_visible=%d,", req->cursor_visible );
1293 fprintf( stderr, " cursor_x=%d,", req->cursor_x );
1294 fprintf( stderr, " cursor_y=%d,", req->cursor_y );
1295 fprintf( stderr, " width=%d,", req->width );
1296 fprintf( stderr, " height=%d,", req->height );
1297 fprintf( stderr, " attr=%d,", req->attr );
1298 fprintf( stderr, " win_left=%d,", req->win_left );
1299 fprintf( stderr, " win_top=%d,", req->win_top );
1300 fprintf( stderr, " win_right=%d,", req->win_right );
1301 fprintf( stderr, " win_bottom=%d,", req->win_bottom );
1302 fprintf( stderr, " max_width=%d,", req->max_width );
1303 fprintf( stderr, " max_height=%d", req->max_height );
1306 static void dump_get_console_output_info_request( const struct get_console_output_info_request *req )
1308 fprintf( stderr, " handle=%p", req->handle );
1311 static void dump_get_console_output_info_reply( const struct get_console_output_info_reply *req )
1313 fprintf( stderr, " cursor_size=%d,", req->cursor_size );
1314 fprintf( stderr, " cursor_visible=%d,", req->cursor_visible );
1315 fprintf( stderr, " cursor_x=%d,", req->cursor_x );
1316 fprintf( stderr, " cursor_y=%d,", req->cursor_y );
1317 fprintf( stderr, " width=%d,", req->width );
1318 fprintf( stderr, " height=%d,", req->height );
1319 fprintf( stderr, " attr=%d,", req->attr );
1320 fprintf( stderr, " win_left=%d,", req->win_left );
1321 fprintf( stderr, " win_top=%d,", req->win_top );
1322 fprintf( stderr, " win_right=%d,", req->win_right );
1323 fprintf( stderr, " win_bottom=%d,", req->win_bottom );
1324 fprintf( stderr, " max_width=%d,", req->max_width );
1325 fprintf( stderr, " max_height=%d", req->max_height );
1328 static void dump_write_console_input_request( const struct write_console_input_request *req )
1330 fprintf( stderr, " handle=%p,", req->handle );
1331 fprintf( stderr, " rec=" );
1332 dump_varargs_input_records( cur_size );
1335 static void dump_write_console_input_reply( const struct write_console_input_reply *req )
1337 fprintf( stderr, " written=%d", req->written );
1340 static void dump_read_console_input_request( const struct read_console_input_request *req )
1342 fprintf( stderr, " handle=%p,", req->handle );
1343 fprintf( stderr, " flush=%d", req->flush );
1346 static void dump_read_console_input_reply( const struct read_console_input_reply *req )
1348 fprintf( stderr, " read=%d,", req->read );
1349 fprintf( stderr, " rec=" );
1350 dump_varargs_input_records( cur_size );
1353 static void dump_write_console_output_request( const struct write_console_output_request *req )
1355 fprintf( stderr, " handle=%p,", req->handle );
1356 fprintf( stderr, " x=%d,", req->x );
1357 fprintf( stderr, " y=%d,", req->y );
1358 fprintf( stderr, " mode=%d,", req->mode );
1359 fprintf( stderr, " wrap=%d,", req->wrap );
1360 fprintf( stderr, " data=" );
1361 dump_varargs_bytes( cur_size );
1364 static void dump_write_console_output_reply( const struct write_console_output_reply *req )
1366 fprintf( stderr, " written=%d,", req->written );
1367 fprintf( stderr, " width=%d,", req->width );
1368 fprintf( stderr, " height=%d", req->height );
1371 static void dump_fill_console_output_request( const struct fill_console_output_request *req )
1373 fprintf( stderr, " handle=%p,", req->handle );
1374 fprintf( stderr, " x=%d,", req->x );
1375 fprintf( stderr, " y=%d,", req->y );
1376 fprintf( stderr, " mode=%d,", req->mode );
1377 fprintf( stderr, " count=%d,", req->count );
1378 fprintf( stderr, " wrap=%d,", req->wrap );
1379 fprintf( stderr, " data=" );
1380 dump_char_info( &req->data );
1383 static void dump_fill_console_output_reply( const struct fill_console_output_reply *req )
1385 fprintf( stderr, " written=%d", req->written );
1388 static void dump_read_console_output_request( const struct read_console_output_request *req )
1390 fprintf( stderr, " handle=%p,", req->handle );
1391 fprintf( stderr, " x=%d,", req->x );
1392 fprintf( stderr, " y=%d,", req->y );
1393 fprintf( stderr, " mode=%d,", req->mode );
1394 fprintf( stderr, " wrap=%d", req->wrap );
1397 static void dump_read_console_output_reply( const struct read_console_output_reply *req )
1399 fprintf( stderr, " width=%d,", req->width );
1400 fprintf( stderr, " height=%d,", req->height );
1401 fprintf( stderr, " data=" );
1402 dump_varargs_bytes( cur_size );
1405 static void dump_move_console_output_request( const struct move_console_output_request *req )
1407 fprintf( stderr, " handle=%p,", req->handle );
1408 fprintf( stderr, " x_src=%d,", req->x_src );
1409 fprintf( stderr, " y_src=%d,", req->y_src );
1410 fprintf( stderr, " x_dst=%d,", req->x_dst );
1411 fprintf( stderr, " y_dst=%d,", req->y_dst );
1412 fprintf( stderr, " w=%d,", req->w );
1413 fprintf( stderr, " h=%d", req->h );
1416 static void dump_send_console_signal_request( const struct send_console_signal_request *req )
1418 fprintf( stderr, " signal=%d,", req->signal );
1419 fprintf( stderr, " group_id=%04x", req->group_id );
1422 static void dump_create_change_notification_request( const struct create_change_notification_request *req )
1424 fprintf( stderr, " handle=%p,", req->handle );
1425 fprintf( stderr, " subtree=%d,", req->subtree );
1426 fprintf( stderr, " filter=%08x", req->filter );
1429 static void dump_create_change_notification_reply( const struct create_change_notification_reply *req )
1431 fprintf( stderr, " handle=%p", req->handle );
1434 static void dump_next_change_notification_request( const struct next_change_notification_request *req )
1436 fprintf( stderr, " handle=%p", req->handle );
1439 static void dump_create_mapping_request( const struct create_mapping_request *req )
1441 fprintf( stderr, " access=%08x,", req->access );
1442 fprintf( stderr, " attributes=%08x,", req->attributes );
1443 fprintf( stderr, " size_high=%d,", req->size_high );
1444 fprintf( stderr, " size_low=%d,", req->size_low );
1445 fprintf( stderr, " protect=%d,", req->protect );
1446 fprintf( stderr, " file_handle=%p,", req->file_handle );
1447 fprintf( stderr, " name=" );
1448 dump_varargs_unicode_str( cur_size );
1451 static void dump_create_mapping_reply( const struct create_mapping_reply *req )
1453 fprintf( stderr, " handle=%p", req->handle );
1456 static void dump_open_mapping_request( const struct open_mapping_request *req )
1458 fprintf( stderr, " access=%08x,", req->access );
1459 fprintf( stderr, " attributes=%08x,", req->attributes );
1460 fprintf( stderr, " name=" );
1461 dump_varargs_unicode_str( cur_size );
1464 static void dump_open_mapping_reply( const struct open_mapping_reply *req )
1466 fprintf( stderr, " handle=%p", req->handle );
1469 static void dump_get_mapping_info_request( const struct get_mapping_info_request *req )
1471 fprintf( stderr, " handle=%p", req->handle );
1474 static void dump_get_mapping_info_reply( const struct get_mapping_info_reply *req )
1476 fprintf( stderr, " size_high=%d,", req->size_high );
1477 fprintf( stderr, " size_low=%d,", req->size_low );
1478 fprintf( stderr, " protect=%d,", req->protect );
1479 fprintf( stderr, " header_size=%d,", req->header_size );
1480 fprintf( stderr, " base=%p,", req->base );
1481 fprintf( stderr, " shared_file=%p,", req->shared_file );
1482 fprintf( stderr, " shared_size=%d", req->shared_size );
1485 static void dump_create_snapshot_request( const struct create_snapshot_request *req )
1487 fprintf( stderr, " inherit=%d,", req->inherit );
1488 fprintf( stderr, " flags=%d,", req->flags );
1489 fprintf( stderr, " pid=%04x", req->pid );
1492 static void dump_create_snapshot_reply( const struct create_snapshot_reply *req )
1494 fprintf( stderr, " handle=%p", req->handle );
1497 static void dump_next_process_request( const struct next_process_request *req )
1499 fprintf( stderr, " handle=%p,", req->handle );
1500 fprintf( stderr, " reset=%d", req->reset );
1503 static void dump_next_process_reply( const struct next_process_reply *req )
1505 fprintf( stderr, " count=%d,", req->count );
1506 fprintf( stderr, " pid=%04x,", req->pid );
1507 fprintf( stderr, " ppid=%04x,", req->ppid );
1508 fprintf( stderr, " heap=%p,", req->heap );
1509 fprintf( stderr, " module=%p,", req->module );
1510 fprintf( stderr, " threads=%d,", req->threads );
1511 fprintf( stderr, " priority=%d,", req->priority );
1512 fprintf( stderr, " handles=%d,", req->handles );
1513 fprintf( stderr, " filename=" );
1514 dump_varargs_unicode_str( cur_size );
1517 static void dump_next_thread_request( const struct next_thread_request *req )
1519 fprintf( stderr, " handle=%p,", req->handle );
1520 fprintf( stderr, " reset=%d", req->reset );
1523 static void dump_next_thread_reply( const struct next_thread_reply *req )
1525 fprintf( stderr, " count=%d,", req->count );
1526 fprintf( stderr, " pid=%04x,", req->pid );
1527 fprintf( stderr, " tid=%04x,", req->tid );
1528 fprintf( stderr, " base_pri=%d,", req->base_pri );
1529 fprintf( stderr, " delta_pri=%d", req->delta_pri );
1532 static void dump_next_module_request( const struct next_module_request *req )
1534 fprintf( stderr, " handle=%p,", req->handle );
1535 fprintf( stderr, " reset=%d", req->reset );
1538 static void dump_next_module_reply( const struct next_module_reply *req )
1540 fprintf( stderr, " pid=%04x,", req->pid );
1541 fprintf( stderr, " base=%p,", req->base );
1542 fprintf( stderr, " size=%d,", req->size );
1543 fprintf( stderr, " filename=" );
1544 dump_varargs_unicode_str( cur_size );
1547 static void dump_wait_debug_event_request( const struct wait_debug_event_request *req )
1549 fprintf( stderr, " get_handle=%d", req->get_handle );
1552 static void dump_wait_debug_event_reply( const struct wait_debug_event_reply *req )
1554 fprintf( stderr, " pid=%04x,", req->pid );
1555 fprintf( stderr, " tid=%04x,", req->tid );
1556 fprintf( stderr, " wait=%p,", req->wait );
1557 fprintf( stderr, " event=" );
1558 dump_varargs_debug_event( cur_size );
1561 static void dump_queue_exception_event_request( const struct queue_exception_event_request *req )
1563 fprintf( stderr, " first=%d,", req->first );
1564 fprintf( stderr, " record=" );
1565 dump_varargs_exc_event( cur_size );
1568 static void dump_queue_exception_event_reply( const struct queue_exception_event_reply *req )
1570 fprintf( stderr, " handle=%p", req->handle );
1573 static void dump_get_exception_status_request( const struct get_exception_status_request *req )
1575 fprintf( stderr, " handle=%p", req->handle );
1578 static void dump_get_exception_status_reply( const struct get_exception_status_reply *req )
1580 fprintf( stderr, " status=%d,", req->status );
1581 fprintf( stderr, " context=" );
1582 dump_varargs_context( cur_size );
1585 static void dump_output_debug_string_request( const struct output_debug_string_request *req )
1587 fprintf( stderr, " string=%p,", req->string );
1588 fprintf( stderr, " unicode=%d,", req->unicode );
1589 fprintf( stderr, " length=%d", req->length );
1592 static void dump_continue_debug_event_request( const struct continue_debug_event_request *req )
1594 fprintf( stderr, " pid=%04x,", req->pid );
1595 fprintf( stderr, " tid=%04x,", req->tid );
1596 fprintf( stderr, " status=%d", req->status );
1599 static void dump_debug_process_request( const struct debug_process_request *req )
1601 fprintf( stderr, " pid=%04x,", req->pid );
1602 fprintf( stderr, " attach=%d", req->attach );
1605 static void dump_debug_break_request( const struct debug_break_request *req )
1607 fprintf( stderr, " handle=%p", req->handle );
1610 static void dump_debug_break_reply( const struct debug_break_reply *req )
1612 fprintf( stderr, " self=%d", req->self );
1615 static void dump_set_debugger_kill_on_exit_request( const struct set_debugger_kill_on_exit_request *req )
1617 fprintf( stderr, " kill_on_exit=%d", req->kill_on_exit );
1620 static void dump_read_process_memory_request( const struct read_process_memory_request *req )
1622 fprintf( stderr, " handle=%p,", req->handle );
1623 fprintf( stderr, " addr=%p", req->addr );
1626 static void dump_read_process_memory_reply( const struct read_process_memory_reply *req )
1628 fprintf( stderr, " data=" );
1629 dump_varargs_bytes( cur_size );
1632 static void dump_write_process_memory_request( const struct write_process_memory_request *req )
1634 fprintf( stderr, " handle=%p,", req->handle );
1635 fprintf( stderr, " addr=%p,", req->addr );
1636 fprintf( stderr, " first_mask=%08x,", req->first_mask );
1637 fprintf( stderr, " last_mask=%08x,", req->last_mask );
1638 fprintf( stderr, " data=" );
1639 dump_varargs_bytes( cur_size );
1642 static void dump_create_key_request( const struct create_key_request *req )
1644 fprintf( stderr, " parent=%p,", req->parent );
1645 fprintf( stderr, " access=%08x,", req->access );
1646 fprintf( stderr, " options=%08x,", req->options );
1647 fprintf( stderr, " modif=%ld,", (long)req->modif );
1648 fprintf( stderr, " namelen=%d,", req->namelen );
1649 fprintf( stderr, " name=" );
1650 dump_varargs_unicode_str( min(cur_size,req->namelen) );
1651 fputc( ',', stderr );
1652 fprintf( stderr, " class=" );
1653 dump_varargs_unicode_str( cur_size );
1656 static void dump_create_key_reply( const struct create_key_reply *req )
1658 fprintf( stderr, " hkey=%p,", req->hkey );
1659 fprintf( stderr, " created=%d", req->created );
1662 static void dump_open_key_request( const struct open_key_request *req )
1664 fprintf( stderr, " parent=%p,", req->parent );
1665 fprintf( stderr, " access=%08x,", req->access );
1666 fprintf( stderr, " name=" );
1667 dump_varargs_unicode_str( cur_size );
1670 static void dump_open_key_reply( const struct open_key_reply *req )
1672 fprintf( stderr, " hkey=%p", req->hkey );
1675 static void dump_delete_key_request( const struct delete_key_request *req )
1677 fprintf( stderr, " hkey=%p", req->hkey );
1680 static void dump_flush_key_request( const struct flush_key_request *req )
1682 fprintf( stderr, " hkey=%p", req->hkey );
1685 static void dump_enum_key_request( const struct enum_key_request *req )
1687 fprintf( stderr, " hkey=%p,", req->hkey );
1688 fprintf( stderr, " index=%d,", req->index );
1689 fprintf( stderr, " info_class=%d", req->info_class );
1692 static void dump_enum_key_reply( const struct enum_key_reply *req )
1694 fprintf( stderr, " subkeys=%d,", req->subkeys );
1695 fprintf( stderr, " max_subkey=%d,", req->max_subkey );
1696 fprintf( stderr, " max_class=%d,", req->max_class );
1697 fprintf( stderr, " values=%d,", req->values );
1698 fprintf( stderr, " max_value=%d,", req->max_value );
1699 fprintf( stderr, " max_data=%d,", req->max_data );
1700 fprintf( stderr, " modif=%ld,", (long)req->modif );
1701 fprintf( stderr, " total=%d,", req->total );
1702 fprintf( stderr, " namelen=%d,", req->namelen );
1703 fprintf( stderr, " name=" );
1704 dump_varargs_unicode_str( min(cur_size,req->namelen) );
1705 fputc( ',', stderr );
1706 fprintf( stderr, " class=" );
1707 dump_varargs_unicode_str( cur_size );
1710 static void dump_set_key_value_request( const struct set_key_value_request *req )
1712 fprintf( stderr, " hkey=%p,", req->hkey );
1713 fprintf( stderr, " type=%d,", req->type );
1714 fprintf( stderr, " namelen=%d,", req->namelen );
1715 fprintf( stderr, " name=" );
1716 dump_varargs_unicode_str( min(cur_size,req->namelen) );
1717 fputc( ',', stderr );
1718 fprintf( stderr, " data=" );
1719 dump_varargs_bytes( cur_size );
1722 static void dump_get_key_value_request( const struct get_key_value_request *req )
1724 fprintf( stderr, " hkey=%p,", req->hkey );
1725 fprintf( stderr, " name=" );
1726 dump_varargs_unicode_str( cur_size );
1729 static void dump_get_key_value_reply( const struct get_key_value_reply *req )
1731 fprintf( stderr, " type=%d,", req->type );
1732 fprintf( stderr, " total=%d,", req->total );
1733 fprintf( stderr, " data=" );
1734 dump_varargs_bytes( cur_size );
1737 static void dump_enum_key_value_request( const struct enum_key_value_request *req )
1739 fprintf( stderr, " hkey=%p,", req->hkey );
1740 fprintf( stderr, " index=%d,", req->index );
1741 fprintf( stderr, " info_class=%d", req->info_class );
1744 static void dump_enum_key_value_reply( const struct enum_key_value_reply *req )
1746 fprintf( stderr, " type=%d,", req->type );
1747 fprintf( stderr, " total=%d,", req->total );
1748 fprintf( stderr, " namelen=%d,", req->namelen );
1749 fprintf( stderr, " name=" );
1750 dump_varargs_unicode_str( min(cur_size,req->namelen) );
1751 fputc( ',', stderr );
1752 fprintf( stderr, " data=" );
1753 dump_varargs_bytes( cur_size );
1756 static void dump_delete_key_value_request( const struct delete_key_value_request *req )
1758 fprintf( stderr, " hkey=%p,", req->hkey );
1759 fprintf( stderr, " name=" );
1760 dump_varargs_unicode_str( cur_size );
1763 static void dump_load_registry_request( const struct load_registry_request *req )
1765 fprintf( stderr, " hkey=%p,", req->hkey );
1766 fprintf( stderr, " file=%p,", req->file );
1767 fprintf( stderr, " name=" );
1768 dump_varargs_unicode_str( cur_size );
1771 static void dump_unload_registry_request( const struct unload_registry_request *req )
1773 fprintf( stderr, " hkey=%p", req->hkey );
1776 static void dump_save_registry_request( const struct save_registry_request *req )
1778 fprintf( stderr, " hkey=%p,", req->hkey );
1779 fprintf( stderr, " file=%p", req->file );
1782 static void dump_set_registry_notification_request( const struct set_registry_notification_request *req )
1784 fprintf( stderr, " hkey=%p,", req->hkey );
1785 fprintf( stderr, " event=%p,", req->event );
1786 fprintf( stderr, " subtree=%d,", req->subtree );
1787 fprintf( stderr, " filter=%08x", req->filter );
1790 static void dump_create_timer_request( const struct create_timer_request *req )
1792 fprintf( stderr, " access=%08x,", req->access );
1793 fprintf( stderr, " attributes=%08x,", req->attributes );
1794 fprintf( stderr, " manual=%d,", req->manual );
1795 fprintf( stderr, " name=" );
1796 dump_varargs_unicode_str( cur_size );
1799 static void dump_create_timer_reply( const struct create_timer_reply *req )
1801 fprintf( stderr, " handle=%p", req->handle );
1804 static void dump_open_timer_request( const struct open_timer_request *req )
1806 fprintf( stderr, " access=%08x,", req->access );
1807 fprintf( stderr, " attributes=%08x,", req->attributes );
1808 fprintf( stderr, " name=" );
1809 dump_varargs_unicode_str( cur_size );
1812 static void dump_open_timer_reply( const struct open_timer_reply *req )
1814 fprintf( stderr, " handle=%p", req->handle );
1817 static void dump_set_timer_request( const struct set_timer_request *req )
1819 fprintf( stderr, " handle=%p,", req->handle );
1820 fprintf( stderr, " expire=" );
1821 dump_abs_time( &req->expire );
1822 fprintf( stderr, "," );
1823 fprintf( stderr, " period=%d,", req->period );
1824 fprintf( stderr, " callback=%p,", req->callback );
1825 fprintf( stderr, " arg=%p", req->arg );
1828 static void dump_set_timer_reply( const struct set_timer_reply *req )
1830 fprintf( stderr, " signaled=%d", req->signaled );
1833 static void dump_cancel_timer_request( const struct cancel_timer_request *req )
1835 fprintf( stderr, " handle=%p", req->handle );
1838 static void dump_cancel_timer_reply( const struct cancel_timer_reply *req )
1840 fprintf( stderr, " signaled=%d", req->signaled );
1843 static void dump_get_timer_info_request( const struct get_timer_info_request *req )
1845 fprintf( stderr, " handle=%p", req->handle );
1848 static void dump_get_timer_info_reply( const struct get_timer_info_reply *req )
1850 fprintf( stderr, " when=" );
1851 dump_abs_time( &req->when );
1852 fprintf( stderr, "," );
1853 fprintf( stderr, " signaled=%d", req->signaled );
1856 static void dump_get_thread_context_request( const struct get_thread_context_request *req )
1858 fprintf( stderr, " handle=%p,", req->handle );
1859 fprintf( stderr, " flags=%08x", req->flags );
1862 static void dump_get_thread_context_reply( const struct get_thread_context_reply *req )
1864 fprintf( stderr, " context=" );
1865 dump_varargs_context( cur_size );
1868 static void dump_set_thread_context_request( const struct set_thread_context_request *req )
1870 fprintf( stderr, " handle=%p,", req->handle );
1871 fprintf( stderr, " flags=%08x,", req->flags );
1872 fprintf( stderr, " context=" );
1873 dump_varargs_context( cur_size );
1876 static void dump_get_selector_entry_request( const struct get_selector_entry_request *req )
1878 fprintf( stderr, " handle=%p,", req->handle );
1879 fprintf( stderr, " entry=%d", req->entry );
1882 static void dump_get_selector_entry_reply( const struct get_selector_entry_reply *req )
1884 fprintf( stderr, " base=%08x,", req->base );
1885 fprintf( stderr, " limit=%08x,", req->limit );
1886 fprintf( stderr, " flags=%02x", req->flags );
1889 static void dump_add_atom_request( const struct add_atom_request *req )
1891 fprintf( stderr, " table=%p,", req->table );
1892 fprintf( stderr, " name=" );
1893 dump_varargs_unicode_str( cur_size );
1896 static void dump_add_atom_reply( const struct add_atom_reply *req )
1898 fprintf( stderr, " atom=%04x", req->atom );
1901 static void dump_delete_atom_request( const struct delete_atom_request *req )
1903 fprintf( stderr, " table=%p,", req->table );
1904 fprintf( stderr, " atom=%04x", req->atom );
1907 static void dump_find_atom_request( const struct find_atom_request *req )
1909 fprintf( stderr, " table=%p,", req->table );
1910 fprintf( stderr, " name=" );
1911 dump_varargs_unicode_str( cur_size );
1914 static void dump_find_atom_reply( const struct find_atom_reply *req )
1916 fprintf( stderr, " atom=%04x", req->atom );
1919 static void dump_get_atom_information_request( const struct get_atom_information_request *req )
1921 fprintf( stderr, " table=%p,", req->table );
1922 fprintf( stderr, " atom=%04x", req->atom );
1925 static void dump_get_atom_information_reply( const struct get_atom_information_reply *req )
1927 fprintf( stderr, " count=%d,", req->count );
1928 fprintf( stderr, " pinned=%d,", req->pinned );
1929 fprintf( stderr, " name=" );
1930 dump_varargs_unicode_str( cur_size );
1933 static void dump_set_atom_information_request( const struct set_atom_information_request *req )
1935 fprintf( stderr, " table=%p,", req->table );
1936 fprintf( stderr, " atom=%04x,", req->atom );
1937 fprintf( stderr, " pinned=%d", req->pinned );
1940 static void dump_empty_atom_table_request( const struct empty_atom_table_request *req )
1942 fprintf( stderr, " table=%p,", req->table );
1943 fprintf( stderr, " if_pinned=%d", req->if_pinned );
1946 static void dump_init_atom_table_request( const struct init_atom_table_request *req )
1948 fprintf( stderr, " entries=%d", req->entries );
1951 static void dump_init_atom_table_reply( const struct init_atom_table_reply *req )
1953 fprintf( stderr, " table=%p", req->table );
1956 static void dump_get_msg_queue_request( const struct get_msg_queue_request *req )
1960 static void dump_get_msg_queue_reply( const struct get_msg_queue_reply *req )
1962 fprintf( stderr, " handle=%p", req->handle );
1965 static void dump_set_queue_mask_request( const struct set_queue_mask_request *req )
1967 fprintf( stderr, " wake_mask=%08x,", req->wake_mask );
1968 fprintf( stderr, " changed_mask=%08x,", req->changed_mask );
1969 fprintf( stderr, " skip_wait=%d", req->skip_wait );
1972 static void dump_set_queue_mask_reply( const struct set_queue_mask_reply *req )
1974 fprintf( stderr, " wake_bits=%08x,", req->wake_bits );
1975 fprintf( stderr, " changed_bits=%08x", req->changed_bits );
1978 static void dump_get_queue_status_request( const struct get_queue_status_request *req )
1980 fprintf( stderr, " clear=%d", req->clear );
1983 static void dump_get_queue_status_reply( const struct get_queue_status_reply *req )
1985 fprintf( stderr, " wake_bits=%08x,", req->wake_bits );
1986 fprintf( stderr, " changed_bits=%08x", req->changed_bits );
1989 static void dump_wait_input_idle_request( const struct wait_input_idle_request *req )
1991 fprintf( stderr, " handle=%p,", req->handle );
1992 fprintf( stderr, " timeout=%d", req->timeout );
1995 static void dump_wait_input_idle_reply( const struct wait_input_idle_reply *req )
1997 fprintf( stderr, " event=%p", req->event );
2000 static void dump_send_message_request( const struct send_message_request *req )
2002 fprintf( stderr, " id=%04x,", req->id );
2003 fprintf( stderr, " type=%d,", req->type );
2004 fprintf( stderr, " flags=%d,", req->flags );
2005 fprintf( stderr, " win=%p,", req->win );
2006 fprintf( stderr, " msg=%08x,", req->msg );
2007 fprintf( stderr, " wparam=%08x,", req->wparam );
2008 fprintf( stderr, " lparam=%08x,", req->lparam );
2009 fprintf( stderr, " x=%d,", req->x );
2010 fprintf( stderr, " y=%d,", req->y );
2011 fprintf( stderr, " time=%08x,", req->time );
2012 fprintf( stderr, " info=%08x,", req->info );
2013 fprintf( stderr, " timeout=%d,", req->timeout );
2014 fprintf( stderr, " callback=%p,", req->callback );
2015 fprintf( stderr, " data=" );
2016 dump_varargs_bytes( cur_size );
2019 static void dump_get_message_request( const struct get_message_request *req )
2021 fprintf( stderr, " flags=%d,", req->flags );
2022 fprintf( stderr, " get_win=%p,", req->get_win );
2023 fprintf( stderr, " get_first=%08x,", req->get_first );
2024 fprintf( stderr, " get_last=%08x,", req->get_last );
2025 fprintf( stderr, " hw_id=%08x", req->hw_id );
2028 static void dump_get_message_reply( const struct get_message_reply *req )
2030 fprintf( stderr, " type=%d,", req->type );
2031 fprintf( stderr, " win=%p,", req->win );
2032 fprintf( stderr, " msg=%08x,", req->msg );
2033 fprintf( stderr, " wparam=%08x,", req->wparam );
2034 fprintf( stderr, " lparam=%08x,", req->lparam );
2035 fprintf( stderr, " x=%d,", req->x );
2036 fprintf( stderr, " y=%d,", req->y );
2037 fprintf( stderr, " hook=%p,", req->hook );
2038 fprintf( stderr, " hook_proc=%p,", req->hook_proc );
2039 fprintf( stderr, " time=%08x,", req->time );
2040 fprintf( stderr, " info=%08x,", req->info );
2041 fprintf( stderr, " hw_id=%08x,", req->hw_id );
2042 fprintf( stderr, " active_hooks=%08x,", req->active_hooks );
2043 fprintf( stderr, " total=%d,", req->total );
2044 fprintf( stderr, " data=" );
2045 dump_varargs_bytes( cur_size );
2048 static void dump_reply_message_request( const struct reply_message_request *req )
2050 fprintf( stderr, " result=%08x,", req->result );
2051 fprintf( stderr, " remove=%d,", req->remove );
2052 fprintf( stderr, " data=" );
2053 dump_varargs_bytes( cur_size );
2056 static void dump_accept_hardware_message_request( const struct accept_hardware_message_request *req )
2058 fprintf( stderr, " hw_id=%08x,", req->hw_id );
2059 fprintf( stderr, " remove=%d,", req->remove );
2060 fprintf( stderr, " new_win=%p", req->new_win );
2063 static void dump_get_message_reply_request( const struct get_message_reply_request *req )
2065 fprintf( stderr, " cancel=%d", req->cancel );
2068 static void dump_get_message_reply_reply( const struct get_message_reply_reply *req )
2070 fprintf( stderr, " result=%08x,", req->result );
2071 fprintf( stderr, " data=" );
2072 dump_varargs_bytes( cur_size );
2075 static void dump_set_win_timer_request( const struct set_win_timer_request *req )
2077 fprintf( stderr, " win=%p,", req->win );
2078 fprintf( stderr, " msg=%08x,", req->msg );
2079 fprintf( stderr, " id=%08x,", req->id );
2080 fprintf( stderr, " rate=%08x,", req->rate );
2081 fprintf( stderr, " lparam=%08x", req->lparam );
2084 static void dump_set_win_timer_reply( const struct set_win_timer_reply *req )
2086 fprintf( stderr, " id=%08x", req->id );
2089 static void dump_kill_win_timer_request( const struct kill_win_timer_request *req )
2091 fprintf( stderr, " win=%p,", req->win );
2092 fprintf( stderr, " msg=%08x,", req->msg );
2093 fprintf( stderr, " id=%08x", req->id );
2096 static void dump_get_serial_info_request( const struct get_serial_info_request *req )
2098 fprintf( stderr, " handle=%p", req->handle );
2101 static void dump_get_serial_info_reply( const struct get_serial_info_reply *req )
2103 fprintf( stderr, " readinterval=%08x,", req->readinterval );
2104 fprintf( stderr, " readconst=%08x,", req->readconst );
2105 fprintf( stderr, " readmult=%08x,", req->readmult );
2106 fprintf( stderr, " writeconst=%08x,", req->writeconst );
2107 fprintf( stderr, " writemult=%08x,", req->writemult );
2108 fprintf( stderr, " eventmask=%08x,", req->eventmask );
2109 fprintf( stderr, " commerror=%08x", req->commerror );
2112 static void dump_set_serial_info_request( const struct set_serial_info_request *req )
2114 fprintf( stderr, " handle=%p,", req->handle );
2115 fprintf( stderr, " flags=%d,", req->flags );
2116 fprintf( stderr, " readinterval=%08x,", req->readinterval );
2117 fprintf( stderr, " readconst=%08x,", req->readconst );
2118 fprintf( stderr, " readmult=%08x,", req->readmult );
2119 fprintf( stderr, " writeconst=%08x,", req->writeconst );
2120 fprintf( stderr, " writemult=%08x,", req->writemult );
2121 fprintf( stderr, " eventmask=%08x,", req->eventmask );
2122 fprintf( stderr, " commerror=%08x", req->commerror );
2125 static void dump_register_async_request( const struct register_async_request *req )
2127 fprintf( stderr, " handle=%p,", req->handle );
2128 fprintf( stderr, " type=%d,", req->type );
2129 fprintf( stderr, " io_apc=%p,", req->io_apc );
2130 fprintf( stderr, " io_sb=%p,", req->io_sb );
2131 fprintf( stderr, " io_user=%p,", req->io_user );
2132 fprintf( stderr, " count=%d", req->count );
2135 static void dump_cancel_async_request( const struct cancel_async_request *req )
2137 fprintf( stderr, " handle=%p", req->handle );
2140 static void dump_create_named_pipe_request( const struct create_named_pipe_request *req )
2142 fprintf( stderr, " access=%08x,", req->access );
2143 fprintf( stderr, " attributes=%08x,", req->attributes );
2144 fprintf( stderr, " options=%08x,", req->options );
2145 fprintf( stderr, " flags=%08x,", req->flags );
2146 fprintf( stderr, " maxinstances=%08x,", req->maxinstances );
2147 fprintf( stderr, " outsize=%08x,", req->outsize );
2148 fprintf( stderr, " insize=%08x,", req->insize );
2149 fprintf( stderr, " timeout=%08x,", req->timeout );
2150 fprintf( stderr, " name=" );
2151 dump_varargs_unicode_str( cur_size );
2154 static void dump_create_named_pipe_reply( const struct create_named_pipe_reply *req )
2156 fprintf( stderr, " handle=%p", req->handle );
2159 static void dump_open_named_pipe_request( const struct open_named_pipe_request *req )
2161 fprintf( stderr, " access=%08x,", req->access );
2162 fprintf( stderr, " attributes=%08x,", req->attributes );
2163 fprintf( stderr, " flags=%08x,", req->flags );
2164 fprintf( stderr, " name=" );
2165 dump_varargs_unicode_str( cur_size );
2168 static void dump_open_named_pipe_reply( const struct open_named_pipe_reply *req )
2170 fprintf( stderr, " handle=%p", req->handle );
2173 static void dump_connect_named_pipe_request( const struct connect_named_pipe_request *req )
2175 fprintf( stderr, " handle=%p,", req->handle );
2176 fprintf( stderr, " event=%p,", req->event );
2177 fprintf( stderr, " func=%p", req->func );
2180 static void dump_wait_named_pipe_request( const struct wait_named_pipe_request *req )
2182 fprintf( stderr, " timeout=%08x,", req->timeout );
2183 fprintf( stderr, " overlapped=%p,", req->overlapped );
2184 fprintf( stderr, " func=%p,", req->func );
2185 fprintf( stderr, " name=" );
2186 dump_varargs_unicode_str( cur_size );
2189 static void dump_disconnect_named_pipe_request( const struct disconnect_named_pipe_request *req )
2191 fprintf( stderr, " handle=%p", req->handle );
2194 static void dump_disconnect_named_pipe_reply( const struct disconnect_named_pipe_reply *req )
2196 fprintf( stderr, " fd=%d", req->fd );
2199 static void dump_get_named_pipe_info_request( const struct get_named_pipe_info_request *req )
2201 fprintf( stderr, " handle=%p", req->handle );
2204 static void dump_get_named_pipe_info_reply( const struct get_named_pipe_info_reply *req )
2206 fprintf( stderr, " flags=%08x,", req->flags );
2207 fprintf( stderr, " maxinstances=%08x,", req->maxinstances );
2208 fprintf( stderr, " outsize=%08x,", req->outsize );
2209 fprintf( stderr, " insize=%08x", req->insize );
2212 static void dump_create_window_request( const struct create_window_request *req )
2214 fprintf( stderr, " parent=%p,", req->parent );
2215 fprintf( stderr, " owner=%p,", req->owner );
2216 fprintf( stderr, " atom=%04x,", req->atom );
2217 fprintf( stderr, " instance=%p", req->instance );
2220 static void dump_create_window_reply( const struct create_window_reply *req )
2222 fprintf( stderr, " handle=%p,", req->handle );
2223 fprintf( stderr, " extra=%d,", req->extra );
2224 fprintf( stderr, " class_ptr=%p", req->class_ptr );
2227 static void dump_destroy_window_request( const struct destroy_window_request *req )
2229 fprintf( stderr, " handle=%p", req->handle );
2232 static void dump_get_desktop_window_request( const struct get_desktop_window_request *req )
2236 static void dump_get_desktop_window_reply( const struct get_desktop_window_reply *req )
2238 fprintf( stderr, " handle=%p", req->handle );
2241 static void dump_set_window_owner_request( const struct set_window_owner_request *req )
2243 fprintf( stderr, " handle=%p,", req->handle );
2244 fprintf( stderr, " owner=%p", req->owner );
2247 static void dump_set_window_owner_reply( const struct set_window_owner_reply *req )
2249 fprintf( stderr, " full_owner=%p,", req->full_owner );
2250 fprintf( stderr, " prev_owner=%p", req->prev_owner );
2253 static void dump_get_window_info_request( const struct get_window_info_request *req )
2255 fprintf( stderr, " handle=%p", req->handle );
2258 static void dump_get_window_info_reply( const struct get_window_info_reply *req )
2260 fprintf( stderr, " full_handle=%p,", req->full_handle );
2261 fprintf( stderr, " last_active=%p,", req->last_active );
2262 fprintf( stderr, " pid=%04x,", req->pid );
2263 fprintf( stderr, " tid=%04x,", req->tid );
2264 fprintf( stderr, " atom=%04x,", req->atom );
2265 fprintf( stderr, " is_unicode=%d", req->is_unicode );
2268 static void dump_set_window_info_request( const struct set_window_info_request *req )
2270 fprintf( stderr, " handle=%p,", req->handle );
2271 fprintf( stderr, " flags=%08x,", req->flags );
2272 fprintf( stderr, " style=%08x,", req->style );
2273 fprintf( stderr, " ex_style=%08x,", req->ex_style );
2274 fprintf( stderr, " id=%08x,", req->id );
2275 fprintf( stderr, " instance=%p,", req->instance );
2276 fprintf( stderr, " is_unicode=%d,", req->is_unicode );
2277 fprintf( stderr, " user_data=%p,", req->user_data );
2278 fprintf( stderr, " extra_offset=%d,", req->extra_offset );
2279 fprintf( stderr, " extra_size=%d,", req->extra_size );
2280 fprintf( stderr, " extra_value=%08x", req->extra_value );
2283 static void dump_set_window_info_reply( const struct set_window_info_reply *req )
2285 fprintf( stderr, " old_style=%08x,", req->old_style );
2286 fprintf( stderr, " old_ex_style=%08x,", req->old_ex_style );
2287 fprintf( stderr, " old_id=%08x,", req->old_id );
2288 fprintf( stderr, " old_instance=%p,", req->old_instance );
2289 fprintf( stderr, " old_user_data=%p,", req->old_user_data );
2290 fprintf( stderr, " old_extra_value=%08x", req->old_extra_value );
2293 static void dump_set_parent_request( const struct set_parent_request *req )
2295 fprintf( stderr, " handle=%p,", req->handle );
2296 fprintf( stderr, " parent=%p", req->parent );
2299 static void dump_set_parent_reply( const struct set_parent_reply *req )
2301 fprintf( stderr, " old_parent=%p,", req->old_parent );
2302 fprintf( stderr, " full_parent=%p", req->full_parent );
2305 static void dump_get_window_parents_request( const struct get_window_parents_request *req )
2307 fprintf( stderr, " handle=%p", req->handle );
2310 static void dump_get_window_parents_reply( const struct get_window_parents_reply *req )
2312 fprintf( stderr, " count=%d,", req->count );
2313 fprintf( stderr, " parents=" );
2314 dump_varargs_user_handles( cur_size );
2317 static void dump_get_window_children_request( const struct get_window_children_request *req )
2319 fprintf( stderr, " parent=%p,", req->parent );
2320 fprintf( stderr, " atom=%04x,", req->atom );
2321 fprintf( stderr, " tid=%04x", req->tid );
2324 static void dump_get_window_children_reply( const struct get_window_children_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_children_from_point_request( const struct get_window_children_from_point_request *req )
2333 fprintf( stderr, " parent=%p,", req->parent );
2334 fprintf( stderr, " x=%d,", req->x );
2335 fprintf( stderr, " y=%d", req->y );
2338 static void dump_get_window_children_from_point_reply( const struct get_window_children_from_point_reply *req )
2340 fprintf( stderr, " count=%d,", req->count );
2341 fprintf( stderr, " children=" );
2342 dump_varargs_user_handles( cur_size );
2345 static void dump_get_window_tree_request( const struct get_window_tree_request *req )
2347 fprintf( stderr, " handle=%p", req->handle );
2350 static void dump_get_window_tree_reply( const struct get_window_tree_reply *req )
2352 fprintf( stderr, " parent=%p,", req->parent );
2353 fprintf( stderr, " owner=%p,", req->owner );
2354 fprintf( stderr, " next_sibling=%p,", req->next_sibling );
2355 fprintf( stderr, " prev_sibling=%p,", req->prev_sibling );
2356 fprintf( stderr, " first_sibling=%p,", req->first_sibling );
2357 fprintf( stderr, " last_sibling=%p,", req->last_sibling );
2358 fprintf( stderr, " first_child=%p,", req->first_child );
2359 fprintf( stderr, " last_child=%p", req->last_child );
2362 static void dump_set_window_pos_request( const struct set_window_pos_request *req )
2364 fprintf( stderr, " handle=%p,", req->handle );
2365 fprintf( stderr, " previous=%p,", req->previous );
2366 fprintf( stderr, " flags=%08x,", req->flags );
2367 fprintf( stderr, " window=" );
2368 dump_rectangle( &req->window );
2369 fprintf( stderr, "," );
2370 fprintf( stderr, " client=" );
2371 dump_rectangle( &req->client );
2372 fprintf( stderr, "," );
2373 fprintf( stderr, " valid=" );
2374 dump_varargs_rectangles( cur_size );
2377 static void dump_set_window_pos_reply( const struct set_window_pos_reply *req )
2379 fprintf( stderr, " new_style=%08x", req->new_style );
2382 static void dump_get_window_rectangles_request( const struct get_window_rectangles_request *req )
2384 fprintf( stderr, " handle=%p", req->handle );
2387 static void dump_get_window_rectangles_reply( const struct get_window_rectangles_reply *req )
2389 fprintf( stderr, " window=" );
2390 dump_rectangle( &req->window );
2391 fprintf( stderr, "," );
2392 fprintf( stderr, " visible=" );
2393 dump_rectangle( &req->visible );
2394 fprintf( stderr, "," );
2395 fprintf( stderr, " client=" );
2396 dump_rectangle( &req->client );
2399 static void dump_get_window_text_request( const struct get_window_text_request *req )
2401 fprintf( stderr, " handle=%p", req->handle );
2404 static void dump_get_window_text_reply( const struct get_window_text_reply *req )
2406 fprintf( stderr, " text=" );
2407 dump_varargs_unicode_str( cur_size );
2410 static void dump_set_window_text_request( const struct set_window_text_request *req )
2412 fprintf( stderr, " handle=%p,", req->handle );
2413 fprintf( stderr, " text=" );
2414 dump_varargs_unicode_str( cur_size );
2417 static void dump_get_windows_offset_request( const struct get_windows_offset_request *req )
2419 fprintf( stderr, " from=%p,", req->from );
2420 fprintf( stderr, " to=%p", req->to );
2423 static void dump_get_windows_offset_reply( const struct get_windows_offset_reply *req )
2425 fprintf( stderr, " x=%d,", req->x );
2426 fprintf( stderr, " y=%d", req->y );
2429 static void dump_get_visible_region_request( const struct get_visible_region_request *req )
2431 fprintf( stderr, " window=%p,", req->window );
2432 fprintf( stderr, " flags=%08x", req->flags );
2435 static void dump_get_visible_region_reply( const struct get_visible_region_reply *req )
2437 fprintf( stderr, " top_win=%p,", req->top_win );
2438 fprintf( stderr, " top_org_x=%d,", req->top_org_x );
2439 fprintf( stderr, " top_org_y=%d,", req->top_org_y );
2440 fprintf( stderr, " win_org_x=%d,", req->win_org_x );
2441 fprintf( stderr, " win_org_y=%d,", req->win_org_y );
2442 fprintf( stderr, " total_size=%d,", req->total_size );
2443 fprintf( stderr, " region=" );
2444 dump_varargs_rectangles( cur_size );
2447 static void dump_get_window_region_request( const struct get_window_region_request *req )
2449 fprintf( stderr, " window=%p", req->window );
2452 static void dump_get_window_region_reply( const struct get_window_region_reply *req )
2454 fprintf( stderr, " total_size=%d,", req->total_size );
2455 fprintf( stderr, " region=" );
2456 dump_varargs_rectangles( cur_size );
2459 static void dump_set_window_region_request( const struct set_window_region_request *req )
2461 fprintf( stderr, " window=%p,", req->window );
2462 fprintf( stderr, " region=" );
2463 dump_varargs_rectangles( cur_size );
2466 static void dump_get_update_region_request( const struct get_update_region_request *req )
2468 fprintf( stderr, " window=%p,", req->window );
2469 fprintf( stderr, " from_child=%p,", req->from_child );
2470 fprintf( stderr, " flags=%08x", req->flags );
2473 static void dump_get_update_region_reply( const struct get_update_region_reply *req )
2475 fprintf( stderr, " child=%p,", req->child );
2476 fprintf( stderr, " flags=%08x,", req->flags );
2477 fprintf( stderr, " total_size=%d,", req->total_size );
2478 fprintf( stderr, " region=" );
2479 dump_varargs_rectangles( cur_size );
2482 static void dump_update_window_zorder_request( const struct update_window_zorder_request *req )
2484 fprintf( stderr, " window=%p,", req->window );
2485 fprintf( stderr, " rect=" );
2486 dump_rectangle( &req->rect );
2489 static void dump_redraw_window_request( const struct redraw_window_request *req )
2491 fprintf( stderr, " window=%p,", req->window );
2492 fprintf( stderr, " flags=%08x,", req->flags );
2493 fprintf( stderr, " region=" );
2494 dump_varargs_rectangles( cur_size );
2497 static void dump_set_window_property_request( const struct set_window_property_request *req )
2499 fprintf( stderr, " window=%p,", req->window );
2500 fprintf( stderr, " atom=%04x,", req->atom );
2501 fprintf( stderr, " handle=%p,", req->handle );
2502 fprintf( stderr, " name=" );
2503 dump_varargs_unicode_str( cur_size );
2506 static void dump_remove_window_property_request( const struct remove_window_property_request *req )
2508 fprintf( stderr, " window=%p,", req->window );
2509 fprintf( stderr, " atom=%04x,", req->atom );
2510 fprintf( stderr, " name=" );
2511 dump_varargs_unicode_str( cur_size );
2514 static void dump_remove_window_property_reply( const struct remove_window_property_reply *req )
2516 fprintf( stderr, " handle=%p", req->handle );
2519 static void dump_get_window_property_request( const struct get_window_property_request *req )
2521 fprintf( stderr, " window=%p,", req->window );
2522 fprintf( stderr, " atom=%04x,", req->atom );
2523 fprintf( stderr, " name=" );
2524 dump_varargs_unicode_str( cur_size );
2527 static void dump_get_window_property_reply( const struct get_window_property_reply *req )
2529 fprintf( stderr, " handle=%p", req->handle );
2532 static void dump_get_window_properties_request( const struct get_window_properties_request *req )
2534 fprintf( stderr, " window=%p", req->window );
2537 static void dump_get_window_properties_reply( const struct get_window_properties_reply *req )
2539 fprintf( stderr, " total=%d,", req->total );
2540 fprintf( stderr, " props=" );
2541 dump_varargs_properties( cur_size );
2544 static void dump_create_winstation_request( const struct create_winstation_request *req )
2546 fprintf( stderr, " flags=%08x,", req->flags );
2547 fprintf( stderr, " access=%08x,", req->access );
2548 fprintf( stderr, " inherit=%d,", req->inherit );
2549 fprintf( stderr, " name=" );
2550 dump_varargs_unicode_str( cur_size );
2553 static void dump_create_winstation_reply( const struct create_winstation_reply *req )
2555 fprintf( stderr, " handle=%p", req->handle );
2558 static void dump_open_winstation_request( const struct open_winstation_request *req )
2560 fprintf( stderr, " access=%08x,", req->access );
2561 fprintf( stderr, " inherit=%d,", req->inherit );
2562 fprintf( stderr, " name=" );
2563 dump_varargs_unicode_str( cur_size );
2566 static void dump_open_winstation_reply( const struct open_winstation_reply *req )
2568 fprintf( stderr, " handle=%p", req->handle );
2571 static void dump_close_winstation_request( const struct close_winstation_request *req )
2573 fprintf( stderr, " handle=%p", req->handle );
2576 static void dump_get_process_winstation_request( const struct get_process_winstation_request *req )
2580 static void dump_get_process_winstation_reply( const struct get_process_winstation_reply *req )
2582 fprintf( stderr, " handle=%p", req->handle );
2585 static void dump_set_process_winstation_request( const struct set_process_winstation_request *req )
2587 fprintf( stderr, " handle=%p", req->handle );
2590 static void dump_create_desktop_request( const struct create_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_create_desktop_reply( const struct create_desktop_reply *req )
2601 fprintf( stderr, " handle=%p", req->handle );
2604 static void dump_open_desktop_request( const struct open_desktop_request *req )
2606 fprintf( stderr, " flags=%08x,", req->flags );
2607 fprintf( stderr, " access=%08x,", req->access );
2608 fprintf( stderr, " inherit=%d,", req->inherit );
2609 fprintf( stderr, " name=" );
2610 dump_varargs_unicode_str( cur_size );
2613 static void dump_open_desktop_reply( const struct open_desktop_reply *req )
2615 fprintf( stderr, " handle=%p", req->handle );
2618 static void dump_close_desktop_request( const struct close_desktop_request *req )
2620 fprintf( stderr, " handle=%p", req->handle );
2623 static void dump_get_thread_desktop_request( const struct get_thread_desktop_request *req )
2625 fprintf( stderr, " tid=%04x", req->tid );
2628 static void dump_get_thread_desktop_reply( const struct get_thread_desktop_reply *req )
2630 fprintf( stderr, " handle=%p", req->handle );
2633 static void dump_set_thread_desktop_request( const struct set_thread_desktop_request *req )
2635 fprintf( stderr, " handle=%p", req->handle );
2638 static void dump_set_user_object_info_request( const struct set_user_object_info_request *req )
2640 fprintf( stderr, " handle=%p,", req->handle );
2641 fprintf( stderr, " flags=%08x,", req->flags );
2642 fprintf( stderr, " obj_flags=%08x", req->obj_flags );
2645 static void dump_set_user_object_info_reply( const struct set_user_object_info_reply *req )
2647 fprintf( stderr, " is_desktop=%d,", req->is_desktop );
2648 fprintf( stderr, " old_obj_flags=%08x,", req->old_obj_flags );
2649 fprintf( stderr, " name=" );
2650 dump_varargs_unicode_str( cur_size );
2653 static void dump_attach_thread_input_request( const struct attach_thread_input_request *req )
2655 fprintf( stderr, " tid_from=%04x,", req->tid_from );
2656 fprintf( stderr, " tid_to=%04x,", req->tid_to );
2657 fprintf( stderr, " attach=%d", req->attach );
2660 static void dump_get_thread_input_request( const struct get_thread_input_request *req )
2662 fprintf( stderr, " tid=%04x", req->tid );
2665 static void dump_get_thread_input_reply( const struct get_thread_input_reply *req )
2667 fprintf( stderr, " focus=%p,", req->focus );
2668 fprintf( stderr, " capture=%p,", req->capture );
2669 fprintf( stderr, " active=%p,", req->active );
2670 fprintf( stderr, " foreground=%p,", req->foreground );
2671 fprintf( stderr, " menu_owner=%p,", req->menu_owner );
2672 fprintf( stderr, " move_size=%p,", req->move_size );
2673 fprintf( stderr, " caret=%p,", req->caret );
2674 fprintf( stderr, " rect=" );
2675 dump_rectangle( &req->rect );
2678 static void dump_get_last_input_time_request( const struct get_last_input_time_request *req )
2682 static void dump_get_last_input_time_reply( const struct get_last_input_time_reply *req )
2684 fprintf( stderr, " time=%08x", req->time );
2687 static void dump_get_key_state_request( const struct get_key_state_request *req )
2689 fprintf( stderr, " tid=%04x,", req->tid );
2690 fprintf( stderr, " key=%d", req->key );
2693 static void dump_get_key_state_reply( const struct get_key_state_reply *req )
2695 fprintf( stderr, " state=%02x,", req->state );
2696 fprintf( stderr, " keystate=" );
2697 dump_varargs_bytes( cur_size );
2700 static void dump_set_key_state_request( const struct set_key_state_request *req )
2702 fprintf( stderr, " tid=%04x,", req->tid );
2703 fprintf( stderr, " keystate=" );
2704 dump_varargs_bytes( cur_size );
2707 static void dump_set_foreground_window_request( const struct set_foreground_window_request *req )
2709 fprintf( stderr, " handle=%p", req->handle );
2712 static void dump_set_foreground_window_reply( const struct set_foreground_window_reply *req )
2714 fprintf( stderr, " previous=%p,", req->previous );
2715 fprintf( stderr, " send_msg_old=%d,", req->send_msg_old );
2716 fprintf( stderr, " send_msg_new=%d", req->send_msg_new );
2719 static void dump_set_focus_window_request( const struct set_focus_window_request *req )
2721 fprintf( stderr, " handle=%p", req->handle );
2724 static void dump_set_focus_window_reply( const struct set_focus_window_reply *req )
2726 fprintf( stderr, " previous=%p", req->previous );
2729 static void dump_set_active_window_request( const struct set_active_window_request *req )
2731 fprintf( stderr, " handle=%p", req->handle );
2734 static void dump_set_active_window_reply( const struct set_active_window_reply *req )
2736 fprintf( stderr, " previous=%p", req->previous );
2739 static void dump_set_capture_window_request( const struct set_capture_window_request *req )
2741 fprintf( stderr, " handle=%p,", req->handle );
2742 fprintf( stderr, " flags=%08x", req->flags );
2745 static void dump_set_capture_window_reply( const struct set_capture_window_reply *req )
2747 fprintf( stderr, " previous=%p,", req->previous );
2748 fprintf( stderr, " full_handle=%p", req->full_handle );
2751 static void dump_set_caret_window_request( const struct set_caret_window_request *req )
2753 fprintf( stderr, " handle=%p,", req->handle );
2754 fprintf( stderr, " width=%d,", req->width );
2755 fprintf( stderr, " height=%d", req->height );
2758 static void dump_set_caret_window_reply( const struct set_caret_window_reply *req )
2760 fprintf( stderr, " previous=%p,", req->previous );
2761 fprintf( stderr, " old_rect=" );
2762 dump_rectangle( &req->old_rect );
2763 fprintf( stderr, "," );
2764 fprintf( stderr, " old_hide=%d,", req->old_hide );
2765 fprintf( stderr, " old_state=%d", req->old_state );
2768 static void dump_set_caret_info_request( const struct set_caret_info_request *req )
2770 fprintf( stderr, " flags=%08x,", req->flags );
2771 fprintf( stderr, " handle=%p,", req->handle );
2772 fprintf( stderr, " x=%d,", req->x );
2773 fprintf( stderr, " y=%d,", req->y );
2774 fprintf( stderr, " hide=%d,", req->hide );
2775 fprintf( stderr, " state=%d", req->state );
2778 static void dump_set_caret_info_reply( const struct set_caret_info_reply *req )
2780 fprintf( stderr, " full_handle=%p,", req->full_handle );
2781 fprintf( stderr, " old_rect=" );
2782 dump_rectangle( &req->old_rect );
2783 fprintf( stderr, "," );
2784 fprintf( stderr, " old_hide=%d,", req->old_hide );
2785 fprintf( stderr, " old_state=%d", req->old_state );
2788 static void dump_set_hook_request( const struct set_hook_request *req )
2790 fprintf( stderr, " id=%d,", req->id );
2791 fprintf( stderr, " pid=%04x,", req->pid );
2792 fprintf( stderr, " tid=%04x,", req->tid );
2793 fprintf( stderr, " event_min=%d,", req->event_min );
2794 fprintf( stderr, " event_max=%d,", req->event_max );
2795 fprintf( stderr, " flags=%d,", req->flags );
2796 fprintf( stderr, " proc=%p,", req->proc );
2797 fprintf( stderr, " unicode=%d,", req->unicode );
2798 fprintf( stderr, " module=" );
2799 dump_varargs_unicode_str( cur_size );
2802 static void dump_set_hook_reply( const struct set_hook_reply *req )
2804 fprintf( stderr, " handle=%p,", req->handle );
2805 fprintf( stderr, " active_hooks=%08x", req->active_hooks );
2808 static void dump_remove_hook_request( const struct remove_hook_request *req )
2810 fprintf( stderr, " handle=%p,", req->handle );
2811 fprintf( stderr, " id=%d,", req->id );
2812 fprintf( stderr, " proc=%p", req->proc );
2815 static void dump_remove_hook_reply( const struct remove_hook_reply *req )
2817 fprintf( stderr, " active_hooks=%08x", req->active_hooks );
2820 static void dump_start_hook_chain_request( const struct start_hook_chain_request *req )
2822 fprintf( stderr, " id=%d,", req->id );
2823 fprintf( stderr, " event=%d,", req->event );
2824 fprintf( stderr, " window=%p,", req->window );
2825 fprintf( stderr, " object_id=%d,", req->object_id );
2826 fprintf( stderr, " child_id=%d", req->child_id );
2829 static void dump_start_hook_chain_reply( const struct start_hook_chain_reply *req )
2831 fprintf( stderr, " handle=%p,", req->handle );
2832 fprintf( stderr, " pid=%04x,", req->pid );
2833 fprintf( stderr, " tid=%04x,", req->tid );
2834 fprintf( stderr, " proc=%p,", req->proc );
2835 fprintf( stderr, " unicode=%d,", req->unicode );
2836 fprintf( stderr, " active_hooks=%08x,", req->active_hooks );
2837 fprintf( stderr, " module=" );
2838 dump_varargs_unicode_str( cur_size );
2841 static void dump_finish_hook_chain_request( const struct finish_hook_chain_request *req )
2843 fprintf( stderr, " id=%d", req->id );
2846 static void dump_get_next_hook_request( const struct get_next_hook_request *req )
2848 fprintf( stderr, " handle=%p,", req->handle );
2849 fprintf( stderr, " event=%d,", req->event );
2850 fprintf( stderr, " window=%p,", req->window );
2851 fprintf( stderr, " object_id=%d,", req->object_id );
2852 fprintf( stderr, " child_id=%d", req->child_id );
2855 static void dump_get_next_hook_reply( const struct get_next_hook_reply *req )
2857 fprintf( stderr, " next=%p,", req->next );
2858 fprintf( stderr, " id=%d,", req->id );
2859 fprintf( stderr, " pid=%04x,", req->pid );
2860 fprintf( stderr, " tid=%04x,", req->tid );
2861 fprintf( stderr, " proc=%p,", req->proc );
2862 fprintf( stderr, " prev_unicode=%d,", req->prev_unicode );
2863 fprintf( stderr, " next_unicode=%d,", req->next_unicode );
2864 fprintf( stderr, " module=" );
2865 dump_varargs_unicode_str( cur_size );
2868 static void dump_create_class_request( const struct create_class_request *req )
2870 fprintf( stderr, " local=%d,", req->local );
2871 fprintf( stderr, " atom=%04x,", req->atom );
2872 fprintf( stderr, " style=%08x,", req->style );
2873 fprintf( stderr, " instance=%p,", req->instance );
2874 fprintf( stderr, " extra=%d,", req->extra );
2875 fprintf( stderr, " win_extra=%d,", req->win_extra );
2876 fprintf( stderr, " client_ptr=%p", req->client_ptr );
2879 static void dump_destroy_class_request( const struct destroy_class_request *req )
2881 fprintf( stderr, " atom=%04x,", req->atom );
2882 fprintf( stderr, " instance=%p", req->instance );
2885 static void dump_destroy_class_reply( const struct destroy_class_reply *req )
2887 fprintf( stderr, " client_ptr=%p", req->client_ptr );
2890 static void dump_set_class_info_request( const struct set_class_info_request *req )
2892 fprintf( stderr, " window=%p,", req->window );
2893 fprintf( stderr, " flags=%08x,", req->flags );
2894 fprintf( stderr, " atom=%04x,", req->atom );
2895 fprintf( stderr, " style=%08x,", req->style );
2896 fprintf( stderr, " win_extra=%d,", req->win_extra );
2897 fprintf( stderr, " instance=%p,", req->instance );
2898 fprintf( stderr, " extra_offset=%d,", req->extra_offset );
2899 fprintf( stderr, " extra_size=%d,", req->extra_size );
2900 fprintf( stderr, " extra_value=%08x", req->extra_value );
2903 static void dump_set_class_info_reply( const struct set_class_info_reply *req )
2905 fprintf( stderr, " old_atom=%04x,", req->old_atom );
2906 fprintf( stderr, " old_style=%08x,", req->old_style );
2907 fprintf( stderr, " old_extra=%d,", req->old_extra );
2908 fprintf( stderr, " old_win_extra=%d,", req->old_win_extra );
2909 fprintf( stderr, " old_instance=%p,", req->old_instance );
2910 fprintf( stderr, " old_extra_value=%08x", req->old_extra_value );
2913 static void dump_set_clipboard_info_request( const struct set_clipboard_info_request *req )
2915 fprintf( stderr, " flags=%08x,", req->flags );
2916 fprintf( stderr, " clipboard=%p,", req->clipboard );
2917 fprintf( stderr, " owner=%p,", req->owner );
2918 fprintf( stderr, " viewer=%p,", req->viewer );
2919 fprintf( stderr, " seqno=%08x", req->seqno );
2922 static void dump_set_clipboard_info_reply( const struct set_clipboard_info_reply *req )
2924 fprintf( stderr, " flags=%08x,", req->flags );
2925 fprintf( stderr, " old_clipboard=%p,", req->old_clipboard );
2926 fprintf( stderr, " old_owner=%p,", req->old_owner );
2927 fprintf( stderr, " old_viewer=%p,", req->old_viewer );
2928 fprintf( stderr, " seqno=%08x", req->seqno );
2931 static void dump_open_token_request( const struct open_token_request *req )
2933 fprintf( stderr, " handle=%p,", req->handle );
2934 fprintf( stderr, " flags=%08x", req->flags );
2937 static void dump_open_token_reply( const struct open_token_reply *req )
2939 fprintf( stderr, " token=%p", req->token );
2942 static void dump_set_global_windows_request( const struct set_global_windows_request *req )
2944 fprintf( stderr, " flags=%08x,", req->flags );
2945 fprintf( stderr, " shell_window=%p,", req->shell_window );
2946 fprintf( stderr, " shell_listview=%p,", req->shell_listview );
2947 fprintf( stderr, " progman_window=%p,", req->progman_window );
2948 fprintf( stderr, " taskman_window=%p", req->taskman_window );
2951 static void dump_set_global_windows_reply( const struct set_global_windows_reply *req )
2953 fprintf( stderr, " old_shell_window=%p,", req->old_shell_window );
2954 fprintf( stderr, " old_shell_listview=%p,", req->old_shell_listview );
2955 fprintf( stderr, " old_progman_window=%p,", req->old_progman_window );
2956 fprintf( stderr, " old_taskman_window=%p", req->old_taskman_window );
2959 static void dump_adjust_token_privileges_request( const struct adjust_token_privileges_request *req )
2961 fprintf( stderr, " handle=%p,", req->handle );
2962 fprintf( stderr, " disable_all=%d,", req->disable_all );
2963 fprintf( stderr, " get_modified_state=%d,", req->get_modified_state );
2964 fprintf( stderr, " privileges=" );
2965 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
2968 static void dump_adjust_token_privileges_reply( const struct adjust_token_privileges_reply *req )
2970 fprintf( stderr, " len=%08x,", req->len );
2971 fprintf( stderr, " privileges=" );
2972 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
2975 static void dump_get_token_privileges_request( const struct get_token_privileges_request *req )
2977 fprintf( stderr, " handle=%p", req->handle );
2980 static void dump_get_token_privileges_reply( const struct get_token_privileges_reply *req )
2982 fprintf( stderr, " len=%08x,", req->len );
2983 fprintf( stderr, " privileges=" );
2984 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
2987 static void dump_check_token_privileges_request( const struct check_token_privileges_request *req )
2989 fprintf( stderr, " handle=%p,", req->handle );
2990 fprintf( stderr, " all_required=%d,", req->all_required );
2991 fprintf( stderr, " privileges=" );
2992 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
2995 static void dump_check_token_privileges_reply( const struct check_token_privileges_reply *req )
2997 fprintf( stderr, " has_privileges=%d,", req->has_privileges );
2998 fprintf( stderr, " privileges=" );
2999 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
3002 static void dump_duplicate_token_request( const struct duplicate_token_request *req )
3004 fprintf( stderr, " handle=%p,", req->handle );
3005 fprintf( stderr, " access=%08x,", req->access );
3006 fprintf( stderr, " inherit=%d,", req->inherit );
3007 fprintf( stderr, " primary=%d,", req->primary );
3008 fprintf( stderr, " impersonation_level=%d", req->impersonation_level );
3011 static void dump_duplicate_token_reply( const struct duplicate_token_reply *req )
3013 fprintf( stderr, " new_handle=%p", req->new_handle );
3016 static void dump_access_check_request( const struct access_check_request *req )
3018 fprintf( stderr, " handle=%p,", req->handle );
3019 fprintf( stderr, " desired_access=%08x,", req->desired_access );
3020 fprintf( stderr, " mapping_read=%08x,", req->mapping_read );
3021 fprintf( stderr, " mapping_write=%08x,", req->mapping_write );
3022 fprintf( stderr, " mapping_execute=%08x,", req->mapping_execute );
3023 fprintf( stderr, " mapping_all=%08x,", req->mapping_all );
3024 fprintf( stderr, " sd=" );
3025 dump_varargs_security_descriptor( cur_size );
3028 static void dump_access_check_reply( const struct access_check_reply *req )
3030 fprintf( stderr, " access_granted=%08x,", req->access_granted );
3031 fprintf( stderr, " access_status=%08x,", req->access_status );
3032 fprintf( stderr, " privileges_len=%08x,", req->privileges_len );
3033 fprintf( stderr, " privileges=" );
3034 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
3037 static void dump_get_token_user_request( const struct get_token_user_request *req )
3039 fprintf( stderr, " handle=%p", req->handle );
3042 static void dump_get_token_user_reply( const struct get_token_user_reply *req )
3044 fprintf( stderr, " user_len=%d,", req->user_len );
3045 fprintf( stderr, " user=" );
3046 dump_varargs_SID( cur_size );
3049 static void dump_create_mailslot_request( const struct create_mailslot_request *req )
3051 fprintf( stderr, " access=%08x,", req->access );
3052 fprintf( stderr, " attributes=%08x,", req->attributes );
3053 fprintf( stderr, " max_msgsize=%08x,", req->max_msgsize );
3054 fprintf( stderr, " read_timeout=%08x,", req->read_timeout );
3055 fprintf( stderr, " name=" );
3056 dump_varargs_unicode_str( cur_size );
3059 static void dump_create_mailslot_reply( const struct create_mailslot_reply *req )
3061 fprintf( stderr, " handle=%p", req->handle );
3064 static void dump_open_mailslot_request( const struct open_mailslot_request *req )
3066 fprintf( stderr, " access=%08x,", req->access );
3067 fprintf( stderr, " attributes=%08x,", req->attributes );
3068 fprintf( stderr, " sharing=%08x,", req->sharing );
3069 fprintf( stderr, " name=" );
3070 dump_varargs_unicode_str( cur_size );
3073 static void dump_open_mailslot_reply( const struct open_mailslot_reply *req )
3075 fprintf( stderr, " handle=%p", req->handle );
3078 static void dump_set_mailslot_info_request( const struct set_mailslot_info_request *req )
3080 fprintf( stderr, " handle=%p,", req->handle );
3081 fprintf( stderr, " flags=%08x,", req->flags );
3082 fprintf( stderr, " read_timeout=%08x", req->read_timeout );
3085 static void dump_set_mailslot_info_reply( const struct set_mailslot_info_reply *req )
3087 fprintf( stderr, " max_msgsize=%08x,", req->max_msgsize );
3088 fprintf( stderr, " read_timeout=%08x,", req->read_timeout );
3089 fprintf( stderr, " msg_count=%08x,", req->msg_count );
3090 fprintf( stderr, " next_msgsize=%08x", req->next_msgsize );
3093 static const dump_func req_dumpers[REQ_NB_REQUESTS] = {
3094 (dump_func)dump_new_process_request,
3095 (dump_func)dump_get_new_process_info_request,
3096 (dump_func)dump_new_thread_request,
3097 (dump_func)dump_get_startup_info_request,
3098 (dump_func)dump_init_process_done_request,
3099 (dump_func)dump_init_thread_request,
3100 (dump_func)dump_terminate_process_request,
3101 (dump_func)dump_terminate_thread_request,
3102 (dump_func)dump_get_process_info_request,
3103 (dump_func)dump_set_process_info_request,
3104 (dump_func)dump_get_thread_info_request,
3105 (dump_func)dump_set_thread_info_request,
3106 (dump_func)dump_get_dll_info_request,
3107 (dump_func)dump_suspend_thread_request,
3108 (dump_func)dump_resume_thread_request,
3109 (dump_func)dump_load_dll_request,
3110 (dump_func)dump_unload_dll_request,
3111 (dump_func)dump_queue_apc_request,
3112 (dump_func)dump_get_apc_request,
3113 (dump_func)dump_close_handle_request,
3114 (dump_func)dump_set_handle_info_request,
3115 (dump_func)dump_dup_handle_request,
3116 (dump_func)dump_open_process_request,
3117 (dump_func)dump_open_thread_request,
3118 (dump_func)dump_select_request,
3119 (dump_func)dump_create_event_request,
3120 (dump_func)dump_event_op_request,
3121 (dump_func)dump_open_event_request,
3122 (dump_func)dump_create_mutex_request,
3123 (dump_func)dump_release_mutex_request,
3124 (dump_func)dump_open_mutex_request,
3125 (dump_func)dump_create_semaphore_request,
3126 (dump_func)dump_release_semaphore_request,
3127 (dump_func)dump_open_semaphore_request,
3128 (dump_func)dump_create_file_request,
3129 (dump_func)dump_alloc_file_handle_request,
3130 (dump_func)dump_get_handle_fd_request,
3131 (dump_func)dump_set_handle_fd_request,
3132 (dump_func)dump_flush_file_request,
3133 (dump_func)dump_lock_file_request,
3134 (dump_func)dump_unlock_file_request,
3135 (dump_func)dump_unmount_device_request,
3136 (dump_func)dump_create_socket_request,
3137 (dump_func)dump_accept_socket_request,
3138 (dump_func)dump_set_socket_event_request,
3139 (dump_func)dump_get_socket_event_request,
3140 (dump_func)dump_enable_socket_event_request,
3141 (dump_func)dump_set_socket_deferred_request,
3142 (dump_func)dump_alloc_console_request,
3143 (dump_func)dump_free_console_request,
3144 (dump_func)dump_get_console_renderer_events_request,
3145 (dump_func)dump_open_console_request,
3146 (dump_func)dump_get_console_wait_event_request,
3147 (dump_func)dump_get_console_mode_request,
3148 (dump_func)dump_set_console_mode_request,
3149 (dump_func)dump_set_console_input_info_request,
3150 (dump_func)dump_get_console_input_info_request,
3151 (dump_func)dump_append_console_input_history_request,
3152 (dump_func)dump_get_console_input_history_request,
3153 (dump_func)dump_create_console_output_request,
3154 (dump_func)dump_set_console_output_info_request,
3155 (dump_func)dump_get_console_output_info_request,
3156 (dump_func)dump_write_console_input_request,
3157 (dump_func)dump_read_console_input_request,
3158 (dump_func)dump_write_console_output_request,
3159 (dump_func)dump_fill_console_output_request,
3160 (dump_func)dump_read_console_output_request,
3161 (dump_func)dump_move_console_output_request,
3162 (dump_func)dump_send_console_signal_request,
3163 (dump_func)dump_create_change_notification_request,
3164 (dump_func)dump_next_change_notification_request,
3165 (dump_func)dump_create_mapping_request,
3166 (dump_func)dump_open_mapping_request,
3167 (dump_func)dump_get_mapping_info_request,
3168 (dump_func)dump_create_snapshot_request,
3169 (dump_func)dump_next_process_request,
3170 (dump_func)dump_next_thread_request,
3171 (dump_func)dump_next_module_request,
3172 (dump_func)dump_wait_debug_event_request,
3173 (dump_func)dump_queue_exception_event_request,
3174 (dump_func)dump_get_exception_status_request,
3175 (dump_func)dump_output_debug_string_request,
3176 (dump_func)dump_continue_debug_event_request,
3177 (dump_func)dump_debug_process_request,
3178 (dump_func)dump_debug_break_request,
3179 (dump_func)dump_set_debugger_kill_on_exit_request,
3180 (dump_func)dump_read_process_memory_request,
3181 (dump_func)dump_write_process_memory_request,
3182 (dump_func)dump_create_key_request,
3183 (dump_func)dump_open_key_request,
3184 (dump_func)dump_delete_key_request,
3185 (dump_func)dump_flush_key_request,
3186 (dump_func)dump_enum_key_request,
3187 (dump_func)dump_set_key_value_request,
3188 (dump_func)dump_get_key_value_request,
3189 (dump_func)dump_enum_key_value_request,
3190 (dump_func)dump_delete_key_value_request,
3191 (dump_func)dump_load_registry_request,
3192 (dump_func)dump_unload_registry_request,
3193 (dump_func)dump_save_registry_request,
3194 (dump_func)dump_set_registry_notification_request,
3195 (dump_func)dump_create_timer_request,
3196 (dump_func)dump_open_timer_request,
3197 (dump_func)dump_set_timer_request,
3198 (dump_func)dump_cancel_timer_request,
3199 (dump_func)dump_get_timer_info_request,
3200 (dump_func)dump_get_thread_context_request,
3201 (dump_func)dump_set_thread_context_request,
3202 (dump_func)dump_get_selector_entry_request,
3203 (dump_func)dump_add_atom_request,
3204 (dump_func)dump_delete_atom_request,
3205 (dump_func)dump_find_atom_request,
3206 (dump_func)dump_get_atom_information_request,
3207 (dump_func)dump_set_atom_information_request,
3208 (dump_func)dump_empty_atom_table_request,
3209 (dump_func)dump_init_atom_table_request,
3210 (dump_func)dump_get_msg_queue_request,
3211 (dump_func)dump_set_queue_mask_request,
3212 (dump_func)dump_get_queue_status_request,
3213 (dump_func)dump_wait_input_idle_request,
3214 (dump_func)dump_send_message_request,
3215 (dump_func)dump_get_message_request,
3216 (dump_func)dump_reply_message_request,
3217 (dump_func)dump_accept_hardware_message_request,
3218 (dump_func)dump_get_message_reply_request,
3219 (dump_func)dump_set_win_timer_request,
3220 (dump_func)dump_kill_win_timer_request,
3221 (dump_func)dump_get_serial_info_request,
3222 (dump_func)dump_set_serial_info_request,
3223 (dump_func)dump_register_async_request,
3224 (dump_func)dump_cancel_async_request,
3225 (dump_func)dump_create_named_pipe_request,
3226 (dump_func)dump_open_named_pipe_request,
3227 (dump_func)dump_connect_named_pipe_request,
3228 (dump_func)dump_wait_named_pipe_request,
3229 (dump_func)dump_disconnect_named_pipe_request,
3230 (dump_func)dump_get_named_pipe_info_request,
3231 (dump_func)dump_create_window_request,
3232 (dump_func)dump_destroy_window_request,
3233 (dump_func)dump_get_desktop_window_request,
3234 (dump_func)dump_set_window_owner_request,
3235 (dump_func)dump_get_window_info_request,
3236 (dump_func)dump_set_window_info_request,
3237 (dump_func)dump_set_parent_request,
3238 (dump_func)dump_get_window_parents_request,
3239 (dump_func)dump_get_window_children_request,
3240 (dump_func)dump_get_window_children_from_point_request,
3241 (dump_func)dump_get_window_tree_request,
3242 (dump_func)dump_set_window_pos_request,
3243 (dump_func)dump_get_window_rectangles_request,
3244 (dump_func)dump_get_window_text_request,
3245 (dump_func)dump_set_window_text_request,
3246 (dump_func)dump_get_windows_offset_request,
3247 (dump_func)dump_get_visible_region_request,
3248 (dump_func)dump_get_window_region_request,
3249 (dump_func)dump_set_window_region_request,
3250 (dump_func)dump_get_update_region_request,
3251 (dump_func)dump_update_window_zorder_request,
3252 (dump_func)dump_redraw_window_request,
3253 (dump_func)dump_set_window_property_request,
3254 (dump_func)dump_remove_window_property_request,
3255 (dump_func)dump_get_window_property_request,
3256 (dump_func)dump_get_window_properties_request,
3257 (dump_func)dump_create_winstation_request,
3258 (dump_func)dump_open_winstation_request,
3259 (dump_func)dump_close_winstation_request,
3260 (dump_func)dump_get_process_winstation_request,
3261 (dump_func)dump_set_process_winstation_request,
3262 (dump_func)dump_create_desktop_request,
3263 (dump_func)dump_open_desktop_request,
3264 (dump_func)dump_close_desktop_request,
3265 (dump_func)dump_get_thread_desktop_request,
3266 (dump_func)dump_set_thread_desktop_request,
3267 (dump_func)dump_set_user_object_info_request,
3268 (dump_func)dump_attach_thread_input_request,
3269 (dump_func)dump_get_thread_input_request,
3270 (dump_func)dump_get_last_input_time_request,
3271 (dump_func)dump_get_key_state_request,
3272 (dump_func)dump_set_key_state_request,
3273 (dump_func)dump_set_foreground_window_request,
3274 (dump_func)dump_set_focus_window_request,
3275 (dump_func)dump_set_active_window_request,
3276 (dump_func)dump_set_capture_window_request,
3277 (dump_func)dump_set_caret_window_request,
3278 (dump_func)dump_set_caret_info_request,
3279 (dump_func)dump_set_hook_request,
3280 (dump_func)dump_remove_hook_request,
3281 (dump_func)dump_start_hook_chain_request,
3282 (dump_func)dump_finish_hook_chain_request,
3283 (dump_func)dump_get_next_hook_request,
3284 (dump_func)dump_create_class_request,
3285 (dump_func)dump_destroy_class_request,
3286 (dump_func)dump_set_class_info_request,
3287 (dump_func)dump_set_clipboard_info_request,
3288 (dump_func)dump_open_token_request,
3289 (dump_func)dump_set_global_windows_request,
3290 (dump_func)dump_adjust_token_privileges_request,
3291 (dump_func)dump_get_token_privileges_request,
3292 (dump_func)dump_check_token_privileges_request,
3293 (dump_func)dump_duplicate_token_request,
3294 (dump_func)dump_access_check_request,
3295 (dump_func)dump_get_token_user_request,
3296 (dump_func)dump_create_mailslot_request,
3297 (dump_func)dump_open_mailslot_request,
3298 (dump_func)dump_set_mailslot_info_request,
3301 static const dump_func reply_dumpers[REQ_NB_REQUESTS] = {
3302 (dump_func)dump_new_process_reply,
3303 (dump_func)dump_get_new_process_info_reply,
3304 (dump_func)dump_new_thread_reply,
3305 (dump_func)dump_get_startup_info_reply,
3307 (dump_func)dump_init_thread_reply,
3308 (dump_func)dump_terminate_process_reply,
3309 (dump_func)dump_terminate_thread_reply,
3310 (dump_func)dump_get_process_info_reply,
3312 (dump_func)dump_get_thread_info_reply,
3314 (dump_func)dump_get_dll_info_reply,
3315 (dump_func)dump_suspend_thread_reply,
3316 (dump_func)dump_resume_thread_reply,
3320 (dump_func)dump_get_apc_reply,
3321 (dump_func)dump_close_handle_reply,
3322 (dump_func)dump_set_handle_info_reply,
3323 (dump_func)dump_dup_handle_reply,
3324 (dump_func)dump_open_process_reply,
3325 (dump_func)dump_open_thread_reply,
3327 (dump_func)dump_create_event_reply,
3329 (dump_func)dump_open_event_reply,
3330 (dump_func)dump_create_mutex_reply,
3331 (dump_func)dump_release_mutex_reply,
3332 (dump_func)dump_open_mutex_reply,
3333 (dump_func)dump_create_semaphore_reply,
3334 (dump_func)dump_release_semaphore_reply,
3335 (dump_func)dump_open_semaphore_reply,
3336 (dump_func)dump_create_file_reply,
3337 (dump_func)dump_alloc_file_handle_reply,
3338 (dump_func)dump_get_handle_fd_reply,
3339 (dump_func)dump_set_handle_fd_reply,
3340 (dump_func)dump_flush_file_reply,
3341 (dump_func)dump_lock_file_reply,
3344 (dump_func)dump_create_socket_reply,
3345 (dump_func)dump_accept_socket_reply,
3347 (dump_func)dump_get_socket_event_reply,
3350 (dump_func)dump_alloc_console_reply,
3352 (dump_func)dump_get_console_renderer_events_reply,
3353 (dump_func)dump_open_console_reply,
3354 (dump_func)dump_get_console_wait_event_reply,
3355 (dump_func)dump_get_console_mode_reply,
3358 (dump_func)dump_get_console_input_info_reply,
3360 (dump_func)dump_get_console_input_history_reply,
3361 (dump_func)dump_create_console_output_reply,
3363 (dump_func)dump_get_console_output_info_reply,
3364 (dump_func)dump_write_console_input_reply,
3365 (dump_func)dump_read_console_input_reply,
3366 (dump_func)dump_write_console_output_reply,
3367 (dump_func)dump_fill_console_output_reply,
3368 (dump_func)dump_read_console_output_reply,
3371 (dump_func)dump_create_change_notification_reply,
3373 (dump_func)dump_create_mapping_reply,
3374 (dump_func)dump_open_mapping_reply,
3375 (dump_func)dump_get_mapping_info_reply,
3376 (dump_func)dump_create_snapshot_reply,
3377 (dump_func)dump_next_process_reply,
3378 (dump_func)dump_next_thread_reply,
3379 (dump_func)dump_next_module_reply,
3380 (dump_func)dump_wait_debug_event_reply,
3381 (dump_func)dump_queue_exception_event_reply,
3382 (dump_func)dump_get_exception_status_reply,
3386 (dump_func)dump_debug_break_reply,
3388 (dump_func)dump_read_process_memory_reply,
3390 (dump_func)dump_create_key_reply,
3391 (dump_func)dump_open_key_reply,
3394 (dump_func)dump_enum_key_reply,
3396 (dump_func)dump_get_key_value_reply,
3397 (dump_func)dump_enum_key_value_reply,
3403 (dump_func)dump_create_timer_reply,
3404 (dump_func)dump_open_timer_reply,
3405 (dump_func)dump_set_timer_reply,
3406 (dump_func)dump_cancel_timer_reply,
3407 (dump_func)dump_get_timer_info_reply,
3408 (dump_func)dump_get_thread_context_reply,
3410 (dump_func)dump_get_selector_entry_reply,
3411 (dump_func)dump_add_atom_reply,
3413 (dump_func)dump_find_atom_reply,
3414 (dump_func)dump_get_atom_information_reply,
3417 (dump_func)dump_init_atom_table_reply,
3418 (dump_func)dump_get_msg_queue_reply,
3419 (dump_func)dump_set_queue_mask_reply,
3420 (dump_func)dump_get_queue_status_reply,
3421 (dump_func)dump_wait_input_idle_reply,
3423 (dump_func)dump_get_message_reply,
3426 (dump_func)dump_get_message_reply_reply,
3427 (dump_func)dump_set_win_timer_reply,
3429 (dump_func)dump_get_serial_info_reply,
3433 (dump_func)dump_create_named_pipe_reply,
3434 (dump_func)dump_open_named_pipe_reply,
3437 (dump_func)dump_disconnect_named_pipe_reply,
3438 (dump_func)dump_get_named_pipe_info_reply,
3439 (dump_func)dump_create_window_reply,
3441 (dump_func)dump_get_desktop_window_reply,
3442 (dump_func)dump_set_window_owner_reply,
3443 (dump_func)dump_get_window_info_reply,
3444 (dump_func)dump_set_window_info_reply,
3445 (dump_func)dump_set_parent_reply,
3446 (dump_func)dump_get_window_parents_reply,
3447 (dump_func)dump_get_window_children_reply,
3448 (dump_func)dump_get_window_children_from_point_reply,
3449 (dump_func)dump_get_window_tree_reply,
3450 (dump_func)dump_set_window_pos_reply,
3451 (dump_func)dump_get_window_rectangles_reply,
3452 (dump_func)dump_get_window_text_reply,
3454 (dump_func)dump_get_windows_offset_reply,
3455 (dump_func)dump_get_visible_region_reply,
3456 (dump_func)dump_get_window_region_reply,
3458 (dump_func)dump_get_update_region_reply,
3462 (dump_func)dump_remove_window_property_reply,
3463 (dump_func)dump_get_window_property_reply,
3464 (dump_func)dump_get_window_properties_reply,
3465 (dump_func)dump_create_winstation_reply,
3466 (dump_func)dump_open_winstation_reply,
3468 (dump_func)dump_get_process_winstation_reply,
3470 (dump_func)dump_create_desktop_reply,
3471 (dump_func)dump_open_desktop_reply,
3473 (dump_func)dump_get_thread_desktop_reply,
3475 (dump_func)dump_set_user_object_info_reply,
3477 (dump_func)dump_get_thread_input_reply,
3478 (dump_func)dump_get_last_input_time_reply,
3479 (dump_func)dump_get_key_state_reply,
3481 (dump_func)dump_set_foreground_window_reply,
3482 (dump_func)dump_set_focus_window_reply,
3483 (dump_func)dump_set_active_window_reply,
3484 (dump_func)dump_set_capture_window_reply,
3485 (dump_func)dump_set_caret_window_reply,
3486 (dump_func)dump_set_caret_info_reply,
3487 (dump_func)dump_set_hook_reply,
3488 (dump_func)dump_remove_hook_reply,
3489 (dump_func)dump_start_hook_chain_reply,
3491 (dump_func)dump_get_next_hook_reply,
3493 (dump_func)dump_destroy_class_reply,
3494 (dump_func)dump_set_class_info_reply,
3495 (dump_func)dump_set_clipboard_info_reply,
3496 (dump_func)dump_open_token_reply,
3497 (dump_func)dump_set_global_windows_reply,
3498 (dump_func)dump_adjust_token_privileges_reply,
3499 (dump_func)dump_get_token_privileges_reply,
3500 (dump_func)dump_check_token_privileges_reply,
3501 (dump_func)dump_duplicate_token_reply,
3502 (dump_func)dump_access_check_reply,
3503 (dump_func)dump_get_token_user_reply,
3504 (dump_func)dump_create_mailslot_reply,
3505 (dump_func)dump_open_mailslot_reply,
3506 (dump_func)dump_set_mailslot_info_reply,
3509 static const char * const req_names[REQ_NB_REQUESTS] = {
3511 "get_new_process_info",
3514 "init_process_done",
3516 "terminate_process",
3542 "release_semaphore",
3545 "alloc_file_handle",
3556 "enable_socket_event",
3557 "set_socket_deferred",
3560 "get_console_renderer_events",
3562 "get_console_wait_event",
3565 "set_console_input_info",
3566 "get_console_input_info",
3567 "append_console_input_history",
3568 "get_console_input_history",
3569 "create_console_output",
3570 "set_console_output_info",
3571 "get_console_output_info",
3572 "write_console_input",
3573 "read_console_input",
3574 "write_console_output",
3575 "fill_console_output",
3576 "read_console_output",
3577 "move_console_output",
3578 "send_console_signal",
3579 "create_change_notification",
3580 "next_change_notification",
3589 "queue_exception_event",
3590 "get_exception_status",
3591 "output_debug_string",
3592 "continue_debug_event",
3595 "set_debugger_kill_on_exit",
3596 "read_process_memory",
3597 "write_process_memory",
3610 "set_registry_notification",
3616 "get_thread_context",
3617 "set_thread_context",
3618 "get_selector_entry",
3622 "get_atom_information",
3623 "set_atom_information",
3633 "accept_hardware_message",
3634 "get_message_reply",
3641 "create_named_pipe",
3643 "connect_named_pipe",
3645 "disconnect_named_pipe",
3646 "get_named_pipe_info",
3649 "get_desktop_window",
3654 "get_window_parents",
3655 "get_window_children",
3656 "get_window_children_from_point",
3659 "get_window_rectangles",
3662 "get_windows_offset",
3663 "get_visible_region",
3664 "get_window_region",
3665 "set_window_region",
3666 "get_update_region",
3667 "update_window_zorder",
3669 "set_window_property",
3670 "remove_window_property",
3671 "get_window_property",
3672 "get_window_properties",
3673 "create_winstation",
3676 "get_process_winstation",
3677 "set_process_winstation",
3681 "get_thread_desktop",
3682 "set_thread_desktop",
3683 "set_user_object_info",
3684 "attach_thread_input",
3686 "get_last_input_time",
3689 "set_foreground_window",
3691 "set_active_window",
3692 "set_capture_window",
3698 "finish_hook_chain",
3703 "set_clipboard_info",
3705 "set_global_windows",
3706 "adjust_token_privileges",
3707 "get_token_privileges",
3708 "check_token_privileges",
3714 "set_mailslot_info",
3723 { "ACCESS_DENIED", STATUS_ACCESS_DENIED },
3724 { "ACCESS_VIOLATION", STATUS_ACCESS_VIOLATION },
3725 { "ALIAS_EXISTS", STATUS_ALIAS_EXISTS },
3726 { "BUFFER_OVERFLOW", STATUS_BUFFER_OVERFLOW },
3727 { "BUFFER_TOO_SMALL", STATUS_BUFFER_TOO_SMALL },
3728 { "CHILD_MUST_BE_VOLATILE", STATUS_CHILD_MUST_BE_VOLATILE },
3729 { "DEVICE_BUSY", STATUS_DEVICE_BUSY },
3730 { "DIRECTORY_NOT_EMPTY", STATUS_DIRECTORY_NOT_EMPTY },
3731 { "DISK_FULL", STATUS_DISK_FULL },
3732 { "DLL_NOT_FOUND", STATUS_DLL_NOT_FOUND },
3733 { "ERROR_CLASS_ALREADY_EXISTS", 0xc0010000 | ERROR_CLASS_ALREADY_EXISTS },
3734 { "ERROR_CLASS_DOES_NOT_EXIST", 0xc0010000 | ERROR_CLASS_DOES_NOT_EXIST },
3735 { "ERROR_CLASS_HAS_WINDOWS", 0xc0010000 | ERROR_CLASS_HAS_WINDOWS },
3736 { "ERROR_CLIPBOARD_NOT_OPEN", 0xc0010000 | ERROR_CLIPBOARD_NOT_OPEN },
3737 { "ERROR_INVALID_INDEX", 0xc0010000 | ERROR_INVALID_INDEX },
3738 { "ERROR_SEEK", 0xc0010000 | ERROR_SEEK },
3739 { "FILE_INVALID", STATUS_FILE_INVALID },
3740 { "FILE_IS_A_DIRECTORY", STATUS_FILE_IS_A_DIRECTORY },
3741 { "FILE_LOCK_CONFLICT", STATUS_FILE_LOCK_CONFLICT },
3742 { "HANDLE_NOT_CLOSABLE", STATUS_HANDLE_NOT_CLOSABLE },
3743 { "INVALID_CID", STATUS_INVALID_CID },
3744 { "INVALID_FILE_FOR_SECTION", STATUS_INVALID_FILE_FOR_SECTION },
3745 { "INVALID_HANDLE", STATUS_INVALID_HANDLE },
3746 { "INVALID_PARAMETER", STATUS_INVALID_PARAMETER },
3747 { "IO_TIMEOUT", STATUS_IO_TIMEOUT },
3748 { "KEY_DELETED", STATUS_KEY_DELETED },
3749 { "MEDIA_WRITE_PROTECTED", STATUS_MEDIA_WRITE_PROTECTED },
3750 { "MUTANT_NOT_OWNED", STATUS_MUTANT_NOT_OWNED },
3751 { "NOT_ALL_ASSIGNED", STATUS_NOT_ALL_ASSIGNED },
3752 { "NOT_A_DIRECTORY", STATUS_NOT_A_DIRECTORY },
3753 { "NOT_IMPLEMENTED", STATUS_NOT_IMPLEMENTED },
3754 { "NOT_REGISTRY_FILE", STATUS_NOT_REGISTRY_FILE },
3755 { "NO_DATA_DETECTED", STATUS_NO_DATA_DETECTED },
3756 { "NO_IMPERSONATION_TOKEN", STATUS_NO_IMPERSONATION_TOKEN },
3757 { "NO_MEMORY", STATUS_NO_MEMORY },
3758 { "NO_MORE_ENTRIES", STATUS_NO_MORE_ENTRIES },
3759 { "NO_MORE_FILES", STATUS_NO_MORE_FILES },
3760 { "NO_SUCH_DEVICE", STATUS_NO_SUCH_DEVICE },
3761 { "NO_SUCH_FILE", STATUS_NO_SUCH_FILE },
3762 { "NO_TOKEN", STATUS_NO_TOKEN },
3763 { "OBJECT_NAME_COLLISION", STATUS_OBJECT_NAME_COLLISION },
3764 { "OBJECT_NAME_INVALID", STATUS_OBJECT_NAME_INVALID },
3765 { "OBJECT_NAME_NOT_FOUND", STATUS_OBJECT_NAME_NOT_FOUND },
3766 { "OBJECT_PATH_INVALID", STATUS_OBJECT_PATH_INVALID },
3767 { "OBJECT_TYPE_MISMATCH", STATUS_OBJECT_TYPE_MISMATCH },
3768 { "PENDING", STATUS_PENDING },
3769 { "PIPE_BUSY", STATUS_PIPE_BUSY },
3770 { "PIPE_CONNECTED", STATUS_PIPE_CONNECTED },
3771 { "PIPE_DISCONNECTED", STATUS_PIPE_DISCONNECTED },
3772 { "PIPE_LISTENING", STATUS_PIPE_LISTENING },
3773 { "PIPE_NOT_AVAILABLE", STATUS_PIPE_NOT_AVAILABLE },
3774 { "PRIVILEGE_NOT_HELD", STATUS_PRIVILEGE_NOT_HELD },
3775 { "SECTION_TOO_BIG", STATUS_SECTION_TOO_BIG },
3776 { "SEMAPHORE_LIMIT_EXCEEDED", STATUS_SEMAPHORE_LIMIT_EXCEEDED },
3777 { "SHARING_VIOLATION", STATUS_SHARING_VIOLATION },
3778 { "SUSPEND_COUNT_EXCEEDED", STATUS_SUSPEND_COUNT_EXCEEDED },
3779 { "TIMEOUT", STATUS_TIMEOUT },
3780 { "UNSUCCESSFUL", STATUS_UNSUCCESSFUL },
3781 { "VOLUME_DISMOUNTED", STATUS_VOLUME_DISMOUNTED },
3782 { "WAS_LOCKED", STATUS_WAS_LOCKED },
3786 /* ### make_requests end ### */
3787 /* Everything above this line is generated automatically by tools/make_requests */
3789 static const char *get_status_name( unsigned int status )
3792 static char buffer[10];
3796 for (i = 0; status_names[i].name; i++)
3797 if (status_names[i].value == status) return status_names[i].name;
3799 sprintf( buffer, "%x", status );
3803 void trace_request(void)
3805 enum request req = current->req.request_header.req;
3806 if (req < REQ_NB_REQUESTS)
3808 fprintf( stderr, "%04x: %s(", current->id, req_names[req] );
3809 if (req_dumpers[req])
3812 cur_data = get_req_data();
3813 cur_size = get_req_data_size();
3814 req_dumpers[req]( ¤t->req );
3816 fprintf( stderr, " )\n" );
3818 else fprintf( stderr, "%04x: %d(?)\n", current->id, req );
3821 void trace_reply( enum request req, const union generic_reply *reply )
3823 if (req < REQ_NB_REQUESTS)
3825 fprintf( stderr, "%04x: %s() = %s",
3826 current->id, req_names[req], get_status_name(current->error) );
3827 if (reply_dumpers[req])
3829 fprintf( stderr, " {" );
3831 cur_data = current->reply_data;
3832 cur_size = reply->reply_header.reply_size;
3833 reply_dumpers[req]( reply );
3834 fprintf( stderr, " }" );
3836 fputc( '\n', stderr );
3838 else fprintf( stderr, "%04x: %d() = %s\n",
3839 current->id, req, get_status_name(current->error) );