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>
34 #define WIN32_NO_STATUS
43 static const void *cur_data;
46 /* utility functions */
48 inline static void remove_data( size_t size )
50 cur_data = (const char *)cur_data + size;
54 static void dump_uints( const int *ptr, int len )
59 fprintf( stderr, "%08x", *ptr++ );
60 if (--len) fputc( ',', stderr );
65 static void dump_abs_time( const abs_time_t *time )
70 if (!time->sec && !time->usec)
72 fprintf( stderr, "0" );
75 gettimeofday( &tv, NULL );
76 secs = time->sec - tv.tv_sec;
77 if ((usecs = time->usec - tv.tv_usec) < 0)
82 if (secs > 0 || (secs == 0 && usecs >= 0))
83 fprintf( stderr, "%d.%06d (+%d.%06d)", time->sec, time->usec, secs, usecs );
85 fprintf( stderr, "%d.%06d (-%d.%06d)", time->sec, time->usec, abs(secs+1), 1000000-usecs );
88 static void dump_rectangle( const rectangle_t *rect )
90 fprintf( stderr, "{%d,%d;%d,%d}",
91 rect->left, rect->top, rect->right, rect->bottom );
94 static void dump_char_info( const char_info_t *info )
96 fprintf( stderr, "{'" );
97 dump_strW( &info->ch, 1, stderr, "\'\'" );
98 fprintf( stderr, "',%04x}", info->attr );
101 static void dump_context( const CONTEXT *context )
104 fprintf( stderr, "{flags=%08lx,eax=%08lx,ebx=%08lx,ecx=%08lx,edx=%08lx,esi=%08lx,edi=%08lx,"
105 "ebp=%08lx,eip=%08lx,esp=%08lx,eflags=%08lx,cs=%04lx,ds=%04lx,es=%04lx,"
106 "fs=%04lx,gs=%04lx,dr0=%08lx,dr1=%08lx,dr2=%08lx,dr3=%08lx,dr6=%08lx,dr7=%08lx,",
107 context->ContextFlags, context->Eax, context->Ebx, context->Ecx, context->Edx,
108 context->Esi, context->Edi, context->Ebp, context->Eip, context->Esp, context->EFlags,
109 context->SegCs, context->SegDs, context->SegEs, context->SegFs, context->SegGs,
110 context->Dr0, context->Dr1, context->Dr2, context->Dr3, context->Dr6, context->Dr7 );
111 fprintf( stderr, "float=" );
112 dump_uints( (const int *)&context->FloatSave, sizeof(context->FloatSave) / sizeof(int) );
113 fprintf( stderr, "}" );
115 dump_uints( (const int *)context, sizeof(*context) / sizeof(int) );
119 static void dump_exc_record( const EXCEPTION_RECORD *rec )
122 fprintf( stderr, "{code=%lx,flags=%lx,rec=%p,addr=%p,params={",
123 rec->ExceptionCode, rec->ExceptionFlags, rec->ExceptionRecord,
124 rec->ExceptionAddress );
125 for (i = 0; i < min(rec->NumberParameters,EXCEPTION_MAXIMUM_PARAMETERS); i++)
127 if (i) fputc( ',', stderr );
128 fprintf( stderr, "%lx", rec->ExceptionInformation[i] );
130 fputc( '}', stderr );
133 static void dump_varargs_ints( size_t size )
135 const int *data = cur_data;
136 size_t len = size / sizeof(*data);
138 fputc( '{', stderr );
141 fprintf( stderr, "%d", *data++ );
142 if (--len) fputc( ',', stderr );
144 fputc( '}', stderr );
148 static void dump_varargs_handles( size_t size )
150 const obj_handle_t *data = cur_data;
151 size_t len = size / sizeof(*data);
153 fputc( '{', stderr );
156 fprintf( stderr, "%p", *data++ );
157 if (--len) fputc( ',', stderr );
159 fputc( '}', stderr );
163 static void dump_varargs_user_handles( size_t size )
165 const user_handle_t *data = cur_data;
166 size_t len = size / sizeof(*data);
168 fputc( '{', stderr );
171 fprintf( stderr, "%p", *data++ );
172 if (--len) fputc( ',', stderr );
174 fputc( '}', stderr );
178 static void dump_varargs_bytes( size_t size )
180 const unsigned char *data = cur_data;
183 fputc( '{', stderr );
186 fprintf( stderr, "%02x", *data++ );
187 if (--len) fputc( ',', stderr );
189 fputc( '}', stderr );
193 static void dump_varargs_string( size_t size )
195 fprintf( stderr, "\"%.*s\"", (int)size, (const char *)cur_data );
199 static void dump_varargs_unicode_str( size_t size )
201 fprintf( stderr, "L\"" );
202 dump_strW( cur_data, size / sizeof(WCHAR), stderr, "\"\"" );
203 fputc( '\"', stderr );
207 static void dump_varargs_context( size_t size )
211 fprintf( stderr, "{}" );
214 dump_context( cur_data );
218 static void dump_varargs_exc_event( size_t size )
220 const CONTEXT *ptr = cur_data;
224 fprintf( stderr, "{}" );
227 fprintf( stderr, "{context=" );
229 fprintf( stderr, ",rec=" );
230 dump_exc_record( (const EXCEPTION_RECORD *)(ptr + 1) );
231 fputc( '}', stderr );
235 static void dump_varargs_debug_event( size_t size )
237 const debug_event_t *event = cur_data;
241 fprintf( stderr, "{}" );
246 case EXCEPTION_DEBUG_EVENT:
247 fprintf( stderr, "{exception," );
248 dump_exc_record( &event->info.exception.record );
249 fprintf( stderr, ",first=%d}", event->info.exception.first );
251 case CREATE_THREAD_DEBUG_EVENT:
252 fprintf( stderr, "{create_thread,thread=%p,teb=%p,start=%p}",
253 event->info.create_thread.handle, event->info.create_thread.teb,
254 event->info.create_thread.start );
256 case CREATE_PROCESS_DEBUG_EVENT:
257 fprintf( stderr, "{create_process,file=%p,process=%p,thread=%p,base=%p,offset=%d,"
258 "size=%d,teb=%p,start=%p,name=%p,unicode=%d}",
259 event->info.create_process.file, event->info.create_process.process,
260 event->info.create_process.thread, event->info.create_process.base,
261 event->info.create_process.dbg_offset, event->info.create_process.dbg_size,
262 event->info.create_process.teb, event->info.create_process.start,
263 event->info.create_process.name, event->info.create_process.unicode );
265 case EXIT_THREAD_DEBUG_EVENT:
266 fprintf( stderr, "{exit_thread,code=%d}", event->info.exit.exit_code );
268 case EXIT_PROCESS_DEBUG_EVENT:
269 fprintf( stderr, "{exit_process,code=%d}", event->info.exit.exit_code );
271 case LOAD_DLL_DEBUG_EVENT:
272 fprintf( stderr, "{load_dll,file=%p,base=%p,offset=%d,size=%d,name=%p,unicode=%d}",
273 event->info.load_dll.handle, event->info.load_dll.base,
274 event->info.load_dll.dbg_offset, event->info.load_dll.dbg_size,
275 event->info.load_dll.name, event->info.load_dll.unicode );
277 case UNLOAD_DLL_DEBUG_EVENT:
278 fprintf( stderr, "{unload_dll,base=%p}", event->info.unload_dll.base );
280 case OUTPUT_DEBUG_STRING_EVENT:
281 fprintf( stderr, "{output_string,data=%p,unicode=%d,len=%d}",
282 event->info.output_string.string, event->info.output_string.unicode,
283 event->info.output_string.length );
286 fprintf( stderr, "{rip,err=%d,type=%d}",
287 event->info.rip_info.error, event->info.rip_info.type );
289 case 0: /* zero is the code returned on timeouts */
290 fprintf( stderr, "{}" );
293 fprintf( stderr, "{code=??? (%d)}", event->code );
299 /* dump a unicode string contained in a buffer; helper for dump_varargs_startup_info */
300 static void dump_inline_unicode_string( const UNICODE_STRING *str, const void *data, size_t size )
302 size_t length = str->Length / sizeof(WCHAR);
303 size_t offset = (size_t)str->Buffer;
305 if (offset >= size) return;
306 if (offset + length > size) length = size - offset;
307 dump_strW( (const WCHAR *)data + offset/sizeof(WCHAR), length, stderr, "\"\"" );
310 static void dump_varargs_startup_info( size_t size )
312 const RTL_USER_PROCESS_PARAMETERS *ptr = cur_data;
313 RTL_USER_PROCESS_PARAMETERS params;
315 if (size < sizeof(params.Size))
317 fprintf( stderr, "{}" );
320 if (size > ptr->Size) size = ptr->Size;
321 memset( ¶ms, 0, sizeof(params) );
322 memcpy( ¶ms, ptr, min( size, sizeof(params) ));
324 fprintf( stderr, "{AllocationSize=%lx,", params.AllocationSize );
325 fprintf( stderr, "Size=%lx,", params.Size );
326 fprintf( stderr, "Flags=%lx,", params.Flags );
327 fprintf( stderr, "DebugFlags=%lx,", params.DebugFlags );
328 fprintf( stderr, "ConsoleHandle=%p,", params.ConsoleHandle );
329 fprintf( stderr, "ConsoleFlags=%lx,", params.ConsoleFlags );
330 fprintf( stderr, "hStdInput=%p,", params.hStdInput );
331 fprintf( stderr, "hStdOutput=%p,", params.hStdOutput );
332 fprintf( stderr, "hStdError=%p,", params.hStdError );
333 fprintf( stderr, "CurrentDirectory.Handle=%p,", params.CurrentDirectory.Handle );
334 fprintf( stderr, "dwX=%ld,", params.dwX );
335 fprintf( stderr, "dwY=%ld,", params.dwY );
336 fprintf( stderr, "dwXSize=%ld,", params.dwXSize );
337 fprintf( stderr, "dwYSize=%ld,", params.dwYSize );
338 fprintf( stderr, "dwXCountChars=%ld,", params.dwXCountChars );
339 fprintf( stderr, "dwYCountChars=%ld,", params.dwYCountChars );
340 fprintf( stderr, "dwFillAttribute=%lx,", params.dwFillAttribute );
341 fprintf( stderr, "dwFlags=%lx,", params.dwFlags );
342 fprintf( stderr, "wShowWindow=%lx,", params.wShowWindow );
343 fprintf( stderr, "CurrentDirectory.DosPath=L\"" );
344 dump_inline_unicode_string( ¶ms.CurrentDirectory.DosPath, cur_data, size );
345 fprintf( stderr, "\",DllPath=L\"" );
346 dump_inline_unicode_string( ¶ms.DllPath, cur_data, size );
347 fprintf( stderr, "\",ImagePathName=L\"" );
348 dump_inline_unicode_string( ¶ms.ImagePathName, cur_data, size );
349 fprintf( stderr, "\",CommandLine=L\"" );
350 dump_inline_unicode_string( ¶ms.CommandLine, cur_data, size );
351 fprintf( stderr, "\",WindowTitle=L\"" );
352 dump_inline_unicode_string( ¶ms.WindowTitle, cur_data, size );
353 fprintf( stderr, "\",Desktop=L\"" );
354 dump_inline_unicode_string( ¶ms.Desktop, cur_data, size );
355 fprintf( stderr, "\",ShellInfo=L\"" );
356 dump_inline_unicode_string( ¶ms.ShellInfo, cur_data, size );
357 fprintf( stderr, "\",RuntimeInfo=L\"" );
358 dump_inline_unicode_string( ¶ms.RuntimeInfo, cur_data, size );
359 fprintf( stderr, "\"}" );
363 static void dump_varargs_input_records( size_t size )
365 const INPUT_RECORD *rec = cur_data;
366 size_t len = size / sizeof(*rec);
368 fputc( '{', stderr );
371 fprintf( stderr, "{%04x,...}", rec->EventType );
373 if (--len) fputc( ',', stderr );
375 fputc( '}', stderr );
379 static void dump_varargs_rectangles( size_t size )
381 const rectangle_t *rect = cur_data;
382 size_t len = size / sizeof(*rect);
384 fputc( '{', stderr );
387 dump_rectangle( rect++ );
388 if (--len) fputc( ',', stderr );
390 fputc( '}', stderr );
394 static void dump_varargs_properties( size_t size )
396 const property_data_t *prop = cur_data;
397 size_t len = size / sizeof(*prop);
399 fputc( '{', stderr );
402 fprintf( stderr, "{atom=%04x,str=%d,handle=%p}",
403 prop->atom, prop->string, prop->handle );
405 if (--len) fputc( ',', stderr );
407 fputc( '}', stderr );
411 static void dump_varargs_LUID_AND_ATTRIBUTES( size_t size )
413 const LUID_AND_ATTRIBUTES *lat = cur_data;
414 size_t len = size / sizeof(*lat);
416 fputc( '{', stderr );
419 fprintf( stderr, "{luid=%08lx%08lx,attr=%lx}",
420 lat->Luid.HighPart, lat->Luid.LowPart, lat->Attributes );
422 if (--len) fputc( ',', stderr );
424 fputc( '}', stderr );
428 static void dump_inline_sid( const SID *sid, size_t size )
433 if ((FIELD_OFFSET(SID, SubAuthority[0]) > size) ||
434 (FIELD_OFFSET(SID, SubAuthority[sid->SubAuthorityCount]) > size))
436 fprintf( stderr, "<invalid sid>" );
440 fputc( '{', stderr );
441 fprintf( stderr, "S-%u-%lu", sid->Revision, MAKELONG(
442 MAKEWORD( sid->IdentifierAuthority.Value[5],
443 sid->IdentifierAuthority.Value[4] ),
444 MAKEWORD( sid->IdentifierAuthority.Value[3],
445 sid->IdentifierAuthority.Value[2] ) ) );
446 for (i = 0; i < sid->SubAuthorityCount; i++)
447 fprintf( stderr, "-%lu", sid->SubAuthority[i] );
448 fputc( '}', stderr );
451 static void dump_varargs_SID( size_t size )
453 const SID *sid = cur_data;
454 dump_inline_sid( sid, size );
458 static void dump_inline_acl( const ACL *acl, size_t size )
460 const ACE_HEADER *ace;
462 fputc( '{', stderr );
466 if (size < sizeof(ACL))
468 fprintf( stderr, "<invalid acl>}\n" );
472 ace = (const ACE_HEADER *)(acl + 1);
473 for (i = 0; i < acl->AceCount; i++)
475 const SID *sid = NULL;
478 if (size < sizeof(ACE_HEADER))
480 if (size < ace->AceSize)
482 size -= ace->AceSize;
483 if (i != 0) fputc( ',', stderr );
484 fprintf( stderr, "{AceType=" );
485 switch (ace->AceType)
487 case ACCESS_DENIED_ACE_TYPE:
488 sid = (const SID *)&((const ACCESS_DENIED_ACE *)ace)->SidStart;
489 sid_size = ace->AceSize - FIELD_OFFSET(ACCESS_DENIED_ACE, SidStart);
490 fprintf( stderr, "ACCESS_DENIED_ACE_TYPE,Mask=%lx",
491 ((const ACCESS_DENIED_ACE *)ace)->Mask );
493 case ACCESS_ALLOWED_ACE_TYPE:
494 sid = (const SID *)&((const ACCESS_ALLOWED_ACE *)ace)->SidStart;
495 sid_size = ace->AceSize - FIELD_OFFSET(ACCESS_ALLOWED_ACE, SidStart);
496 fprintf( stderr, "ACCESS_ALLOWED_ACE_TYPE,Mask=%lx",
497 ((const ACCESS_ALLOWED_ACE *)ace)->Mask );
499 case SYSTEM_AUDIT_ACE_TYPE:
500 sid = (const SID *)&((const SYSTEM_AUDIT_ACE *)ace)->SidStart;
501 sid_size = ace->AceSize - FIELD_OFFSET(SYSTEM_AUDIT_ACE, SidStart);
502 fprintf( stderr, "SYSTEM_AUDIT_ACE_TYPE,Mask=%lx",
503 ((const SYSTEM_AUDIT_ACE *)ace)->Mask );
505 case SYSTEM_ALARM_ACE_TYPE:
506 sid = (const SID *)&((const SYSTEM_ALARM_ACE *)ace)->SidStart;
507 sid_size = ace->AceSize - FIELD_OFFSET(SYSTEM_ALARM_ACE, SidStart);
508 fprintf( stderr, "SYSTEM_ALARM_ACE_TYPE,Mask=%lx",
509 ((const SYSTEM_ALARM_ACE *)ace)->Mask );
512 fprintf( stderr, "unknown<%d>", ace->AceType );
515 fprintf( stderr, ",AceFlags=%x,Sid=", ace->AceFlags );
517 dump_inline_sid( sid, sid_size );
518 ace = (const ACE_HEADER *)((const char *)ace + ace->AceSize);
519 fputc( '}', stderr );
522 fputc( '}', stderr );
525 static void dump_inline_security_descriptor( const struct security_descriptor *sd, size_t size )
527 fputc( '{', stderr );
528 if (size >= sizeof(struct security_descriptor))
530 size_t offset = sizeof(struct security_descriptor);
531 fprintf( stderr, "control=%08x", sd->control );
532 fprintf( stderr, ",owner=" );
533 if ((sd->owner_len > FIELD_OFFSET(SID, SubAuthority[255])) || (offset + sd->owner_len > size))
535 dump_inline_sid( (const SID *)((const char *)sd + offset), sd->owner_len );
536 offset += sd->owner_len;
537 fprintf( stderr, ",group=" );
538 if ((sd->group_len > FIELD_OFFSET(SID, SubAuthority[255])) || (offset + sd->group_len > size))
540 dump_inline_sid( (const SID *)((const char *)sd + offset), sd->group_len );
541 offset += sd->group_len;
542 fprintf( stderr, ",sacl=" );
543 if ((sd->sacl_len >= MAX_ACL_LEN) || (offset + sd->sacl_len > size))
545 dump_inline_acl( (const ACL *)((const char *)sd + offset), sd->sacl_len );
546 offset += sd->sacl_len;
547 fprintf( stderr, ",dacl=" );
548 if ((sd->dacl_len >= MAX_ACL_LEN) || (offset + sd->dacl_len > size))
550 dump_inline_acl( (const ACL *)((const char *)sd + offset), sd->dacl_len );
551 offset += sd->dacl_len;
553 fputc( '}', stderr );
556 static void dump_varargs_security_descriptor( size_t size )
558 const struct security_descriptor *sd = cur_data;
559 dump_inline_security_descriptor( sd, size );
563 typedef void (*dump_func)( const void *req );
565 /* Everything below this line is generated automatically by tools/make_requests */
566 /* ### make_requests begin ### */
568 static void dump_new_process_request( const struct new_process_request *req )
570 fprintf( stderr, " inherit_all=%d,", req->inherit_all );
571 fprintf( stderr, " create_flags=%08x,", req->create_flags );
572 fprintf( stderr, " unix_pid=%d,", req->unix_pid );
573 fprintf( stderr, " exe_file=%p,", req->exe_file );
574 fprintf( stderr, " hstdin=%p,", req->hstdin );
575 fprintf( stderr, " hstdout=%p,", req->hstdout );
576 fprintf( stderr, " hstderr=%p,", req->hstderr );
577 fprintf( stderr, " info=" );
578 dump_varargs_startup_info( cur_size );
579 fputc( ',', stderr );
580 fprintf( stderr, " env=" );
581 dump_varargs_unicode_str( cur_size );
584 static void dump_new_process_reply( const struct new_process_reply *req )
586 fprintf( stderr, " info=%p", req->info );
589 static void dump_get_new_process_info_request( const struct get_new_process_info_request *req )
591 fprintf( stderr, " info=%p,", req->info );
592 fprintf( stderr, " pinherit=%d,", req->pinherit );
593 fprintf( stderr, " tinherit=%d", req->tinherit );
596 static void dump_get_new_process_info_reply( const struct get_new_process_info_reply *req )
598 fprintf( stderr, " pid=%04x,", req->pid );
599 fprintf( stderr, " phandle=%p,", req->phandle );
600 fprintf( stderr, " tid=%04x,", req->tid );
601 fprintf( stderr, " thandle=%p,", req->thandle );
602 fprintf( stderr, " success=%d", req->success );
605 static void dump_new_thread_request( const struct new_thread_request *req )
607 fprintf( stderr, " suspend=%d,", req->suspend );
608 fprintf( stderr, " inherit=%d,", req->inherit );
609 fprintf( stderr, " request_fd=%d", req->request_fd );
612 static void dump_new_thread_reply( const struct new_thread_reply *req )
614 fprintf( stderr, " tid=%04x,", req->tid );
615 fprintf( stderr, " handle=%p", req->handle );
618 static void dump_get_startup_info_request( const struct get_startup_info_request *req )
622 static void dump_get_startup_info_reply( const struct get_startup_info_reply *req )
624 fprintf( stderr, " create_flags=%08x,", req->create_flags );
625 fprintf( stderr, " exe_file=%p,", req->exe_file );
626 fprintf( stderr, " hstdin=%p,", req->hstdin );
627 fprintf( stderr, " hstdout=%p,", req->hstdout );
628 fprintf( stderr, " hstderr=%p,", req->hstderr );
629 fprintf( stderr, " info=" );
630 dump_varargs_startup_info( cur_size );
631 fputc( ',', stderr );
632 fprintf( stderr, " env=" );
633 dump_varargs_unicode_str( cur_size );
636 static void dump_init_process_done_request( const struct init_process_done_request *req )
638 fprintf( stderr, " module=%p,", req->module );
639 fprintf( stderr, " module_size=%d,", req->module_size );
640 fprintf( stderr, " entry=%p,", req->entry );
641 fprintf( stderr, " name=%p,", req->name );
642 fprintf( stderr, " exe_file=%p,", req->exe_file );
643 fprintf( stderr, " gui=%d,", req->gui );
644 fprintf( stderr, " filename=" );
645 dump_varargs_unicode_str( cur_size );
648 static void dump_init_thread_request( const struct init_thread_request *req )
650 fprintf( stderr, " unix_pid=%d,", req->unix_pid );
651 fprintf( stderr, " unix_tid=%d,", req->unix_tid );
652 fprintf( stderr, " teb=%p,", req->teb );
653 fprintf( stderr, " peb=%p,", req->peb );
654 fprintf( stderr, " entry=%p,", req->entry );
655 fprintf( stderr, " ldt_copy=%p,", req->ldt_copy );
656 fprintf( stderr, " reply_fd=%d,", req->reply_fd );
657 fprintf( stderr, " wait_fd=%d,", req->wait_fd );
658 fprintf( stderr, " debug_level=%d", req->debug_level );
661 static void dump_init_thread_reply( const struct init_thread_reply *req )
663 fprintf( stderr, " pid=%04x,", req->pid );
664 fprintf( stderr, " tid=%04x,", req->tid );
665 fprintf( stderr, " info_size=%d,", req->info_size );
666 fprintf( stderr, " server_start=%ld,", (long)req->server_start );
667 fprintf( stderr, " version=%d", req->version );
670 static void dump_terminate_process_request( const struct terminate_process_request *req )
672 fprintf( stderr, " handle=%p,", req->handle );
673 fprintf( stderr, " exit_code=%d", req->exit_code );
676 static void dump_terminate_process_reply( const struct terminate_process_reply *req )
678 fprintf( stderr, " self=%d", req->self );
681 static void dump_terminate_thread_request( const struct terminate_thread_request *req )
683 fprintf( stderr, " handle=%p,", req->handle );
684 fprintf( stderr, " exit_code=%d", req->exit_code );
687 static void dump_terminate_thread_reply( const struct terminate_thread_reply *req )
689 fprintf( stderr, " self=%d,", req->self );
690 fprintf( stderr, " last=%d", req->last );
693 static void dump_get_process_info_request( const struct get_process_info_request *req )
695 fprintf( stderr, " handle=%p", req->handle );
698 static void dump_get_process_info_reply( const struct get_process_info_reply *req )
700 fprintf( stderr, " pid=%04x,", req->pid );
701 fprintf( stderr, " ppid=%04x,", req->ppid );
702 fprintf( stderr, " exit_code=%d,", req->exit_code );
703 fprintf( stderr, " priority=%d,", req->priority );
704 fprintf( stderr, " affinity=%d,", req->affinity );
705 fprintf( stderr, " peb=%p", req->peb );
708 static void dump_set_process_info_request( const struct set_process_info_request *req )
710 fprintf( stderr, " handle=%p,", req->handle );
711 fprintf( stderr, " mask=%d,", req->mask );
712 fprintf( stderr, " priority=%d,", req->priority );
713 fprintf( stderr, " affinity=%d", req->affinity );
716 static void dump_get_thread_info_request( const struct get_thread_info_request *req )
718 fprintf( stderr, " handle=%p,", req->handle );
719 fprintf( stderr, " tid_in=%04x", req->tid_in );
722 static void dump_get_thread_info_reply( const struct get_thread_info_reply *req )
724 fprintf( stderr, " pid=%04x,", req->pid );
725 fprintf( stderr, " tid=%04x,", req->tid );
726 fprintf( stderr, " teb=%p,", req->teb );
727 fprintf( stderr, " exit_code=%d,", req->exit_code );
728 fprintf( stderr, " priority=%d,", req->priority );
729 fprintf( stderr, " affinity=%d,", req->affinity );
730 fprintf( stderr, " creation_time=%ld,", (long)req->creation_time );
731 fprintf( stderr, " exit_time=%ld", (long)req->exit_time );
734 static void dump_set_thread_info_request( const struct set_thread_info_request *req )
736 fprintf( stderr, " handle=%p,", req->handle );
737 fprintf( stderr, " mask=%d,", req->mask );
738 fprintf( stderr, " priority=%d,", req->priority );
739 fprintf( stderr, " affinity=%d,", req->affinity );
740 fprintf( stderr, " token=%p", req->token );
743 static void dump_get_dll_info_request( const struct get_dll_info_request *req )
745 fprintf( stderr, " handle=%p,", req->handle );
746 fprintf( stderr, " base_address=%p", req->base_address );
749 static void dump_get_dll_info_reply( const struct get_dll_info_reply *req )
751 fprintf( stderr, " size=%d,", req->size );
752 fprintf( stderr, " entry_point=%p,", req->entry_point );
753 fprintf( stderr, " filename=" );
754 dump_varargs_unicode_str( cur_size );
757 static void dump_suspend_thread_request( const struct suspend_thread_request *req )
759 fprintf( stderr, " handle=%p", req->handle );
762 static void dump_suspend_thread_reply( const struct suspend_thread_reply *req )
764 fprintf( stderr, " count=%d", req->count );
767 static void dump_resume_thread_request( const struct resume_thread_request *req )
769 fprintf( stderr, " handle=%p", req->handle );
772 static void dump_resume_thread_reply( const struct resume_thread_reply *req )
774 fprintf( stderr, " count=%d", req->count );
777 static void dump_load_dll_request( const struct load_dll_request *req )
779 fprintf( stderr, " handle=%p,", req->handle );
780 fprintf( stderr, " base=%p,", req->base );
781 fprintf( stderr, " size=%d,", req->size );
782 fprintf( stderr, " dbg_offset=%d,", req->dbg_offset );
783 fprintf( stderr, " dbg_size=%d,", req->dbg_size );
784 fprintf( stderr, " name=%p,", req->name );
785 fprintf( stderr, " filename=" );
786 dump_varargs_unicode_str( cur_size );
789 static void dump_unload_dll_request( const struct unload_dll_request *req )
791 fprintf( stderr, " base=%p", req->base );
794 static void dump_queue_apc_request( const struct queue_apc_request *req )
796 fprintf( stderr, " handle=%p,", req->handle );
797 fprintf( stderr, " user=%d,", req->user );
798 fprintf( stderr, " func=%p,", req->func );
799 fprintf( stderr, " arg1=%p,", req->arg1 );
800 fprintf( stderr, " arg2=%p,", req->arg2 );
801 fprintf( stderr, " arg3=%p", req->arg3 );
804 static void dump_get_apc_request( const struct get_apc_request *req )
806 fprintf( stderr, " alertable=%d", req->alertable );
809 static void dump_get_apc_reply( const struct get_apc_reply *req )
811 fprintf( stderr, " func=%p,", req->func );
812 fprintf( stderr, " type=%d,", req->type );
813 fprintf( stderr, " arg1=%p,", req->arg1 );
814 fprintf( stderr, " arg2=%p,", req->arg2 );
815 fprintf( stderr, " arg3=%p", req->arg3 );
818 static void dump_close_handle_request( const struct close_handle_request *req )
820 fprintf( stderr, " handle=%p", req->handle );
823 static void dump_close_handle_reply( const struct close_handle_reply *req )
825 fprintf( stderr, " fd=%d", req->fd );
828 static void dump_set_handle_info_request( const struct set_handle_info_request *req )
830 fprintf( stderr, " handle=%p,", req->handle );
831 fprintf( stderr, " flags=%d,", req->flags );
832 fprintf( stderr, " mask=%d", req->mask );
835 static void dump_set_handle_info_reply( const struct set_handle_info_reply *req )
837 fprintf( stderr, " old_flags=%d", req->old_flags );
840 static void dump_dup_handle_request( const struct dup_handle_request *req )
842 fprintf( stderr, " src_process=%p,", req->src_process );
843 fprintf( stderr, " src_handle=%p,", req->src_handle );
844 fprintf( stderr, " dst_process=%p,", req->dst_process );
845 fprintf( stderr, " access=%08x,", req->access );
846 fprintf( stderr, " inherit=%d,", req->inherit );
847 fprintf( stderr, " options=%d", req->options );
850 static void dump_dup_handle_reply( const struct dup_handle_reply *req )
852 fprintf( stderr, " handle=%p,", req->handle );
853 fprintf( stderr, " fd=%d", req->fd );
856 static void dump_open_process_request( const struct open_process_request *req )
858 fprintf( stderr, " pid=%04x,", req->pid );
859 fprintf( stderr, " access=%08x,", req->access );
860 fprintf( stderr, " inherit=%d", req->inherit );
863 static void dump_open_process_reply( const struct open_process_reply *req )
865 fprintf( stderr, " handle=%p", req->handle );
868 static void dump_open_thread_request( const struct open_thread_request *req )
870 fprintf( stderr, " tid=%04x,", req->tid );
871 fprintf( stderr, " access=%08x,", req->access );
872 fprintf( stderr, " inherit=%d", req->inherit );
875 static void dump_open_thread_reply( const struct open_thread_reply *req )
877 fprintf( stderr, " handle=%p", req->handle );
880 static void dump_select_request( const struct select_request *req )
882 fprintf( stderr, " flags=%d,", req->flags );
883 fprintf( stderr, " cookie=%p,", req->cookie );
884 fprintf( stderr, " signal=%p,", req->signal );
885 fprintf( stderr, " timeout=" );
886 dump_abs_time( &req->timeout );
887 fprintf( stderr, "," );
888 fprintf( stderr, " handles=" );
889 dump_varargs_handles( cur_size );
892 static void dump_create_event_request( const struct create_event_request *req )
894 fprintf( stderr, " access=%08x,", req->access );
895 fprintf( stderr, " attributes=%08x,", req->attributes );
896 fprintf( stderr, " rootdir=%p,", req->rootdir );
897 fprintf( stderr, " manual_reset=%d,", req->manual_reset );
898 fprintf( stderr, " initial_state=%d,", req->initial_state );
899 fprintf( stderr, " name=" );
900 dump_varargs_unicode_str( cur_size );
903 static void dump_create_event_reply( const struct create_event_reply *req )
905 fprintf( stderr, " handle=%p", req->handle );
908 static void dump_event_op_request( const struct event_op_request *req )
910 fprintf( stderr, " handle=%p,", req->handle );
911 fprintf( stderr, " op=%d", req->op );
914 static void dump_open_event_request( const struct open_event_request *req )
916 fprintf( stderr, " access=%08x,", req->access );
917 fprintf( stderr, " attributes=%08x,", req->attributes );
918 fprintf( stderr, " rootdir=%p,", req->rootdir );
919 fprintf( stderr, " name=" );
920 dump_varargs_unicode_str( cur_size );
923 static void dump_open_event_reply( const struct open_event_reply *req )
925 fprintf( stderr, " handle=%p", req->handle );
928 static void dump_create_mutex_request( const struct create_mutex_request *req )
930 fprintf( stderr, " access=%08x,", req->access );
931 fprintf( stderr, " attributes=%08x,", req->attributes );
932 fprintf( stderr, " rootdir=%p,", req->rootdir );
933 fprintf( stderr, " owned=%d,", req->owned );
934 fprintf( stderr, " name=" );
935 dump_varargs_unicode_str( cur_size );
938 static void dump_create_mutex_reply( const struct create_mutex_reply *req )
940 fprintf( stderr, " handle=%p", req->handle );
943 static void dump_release_mutex_request( const struct release_mutex_request *req )
945 fprintf( stderr, " handle=%p", req->handle );
948 static void dump_release_mutex_reply( const struct release_mutex_reply *req )
950 fprintf( stderr, " prev_count=%08x", req->prev_count );
953 static void dump_open_mutex_request( const struct open_mutex_request *req )
955 fprintf( stderr, " access=%08x,", req->access );
956 fprintf( stderr, " attributes=%08x,", req->attributes );
957 fprintf( stderr, " rootdir=%p,", req->rootdir );
958 fprintf( stderr, " name=" );
959 dump_varargs_unicode_str( cur_size );
962 static void dump_open_mutex_reply( const struct open_mutex_reply *req )
964 fprintf( stderr, " handle=%p", req->handle );
967 static void dump_create_semaphore_request( const struct create_semaphore_request *req )
969 fprintf( stderr, " access=%08x,", req->access );
970 fprintf( stderr, " attributes=%08x,", req->attributes );
971 fprintf( stderr, " initial=%08x,", req->initial );
972 fprintf( stderr, " max=%08x,", req->max );
973 fprintf( stderr, " name=" );
974 dump_varargs_unicode_str( cur_size );
977 static void dump_create_semaphore_reply( const struct create_semaphore_reply *req )
979 fprintf( stderr, " handle=%p", req->handle );
982 static void dump_release_semaphore_request( const struct release_semaphore_request *req )
984 fprintf( stderr, " handle=%p,", req->handle );
985 fprintf( stderr, " count=%08x", req->count );
988 static void dump_release_semaphore_reply( const struct release_semaphore_reply *req )
990 fprintf( stderr, " prev_count=%08x", req->prev_count );
993 static void dump_open_semaphore_request( const struct open_semaphore_request *req )
995 fprintf( stderr, " access=%08x,", req->access );
996 fprintf( stderr, " attributes=%08x,", req->attributes );
997 fprintf( stderr, " name=" );
998 dump_varargs_unicode_str( cur_size );
1001 static void dump_open_semaphore_reply( const struct open_semaphore_reply *req )
1003 fprintf( stderr, " handle=%p", req->handle );
1006 static void dump_create_file_request( const struct create_file_request *req )
1008 fprintf( stderr, " access=%08x,", req->access );
1009 fprintf( stderr, " inherit=%d,", req->inherit );
1010 fprintf( stderr, " sharing=%08x,", req->sharing );
1011 fprintf( stderr, " create=%d,", req->create );
1012 fprintf( stderr, " options=%08x,", req->options );
1013 fprintf( stderr, " attrs=%08x,", req->attrs );
1014 fprintf( stderr, " filename=" );
1015 dump_varargs_string( cur_size );
1018 static void dump_create_file_reply( const struct create_file_reply *req )
1020 fprintf( stderr, " handle=%p", req->handle );
1023 static void dump_alloc_file_handle_request( const struct alloc_file_handle_request *req )
1025 fprintf( stderr, " access=%08x,", req->access );
1026 fprintf( stderr, " inherit=%d,", req->inherit );
1027 fprintf( stderr, " fd=%d", req->fd );
1030 static void dump_alloc_file_handle_reply( const struct alloc_file_handle_reply *req )
1032 fprintf( stderr, " handle=%p", req->handle );
1035 static void dump_get_handle_fd_request( const struct get_handle_fd_request *req )
1037 fprintf( stderr, " handle=%p,", req->handle );
1038 fprintf( stderr, " access=%08x", req->access );
1041 static void dump_get_handle_fd_reply( const struct get_handle_fd_reply *req )
1043 fprintf( stderr, " fd=%d,", req->fd );
1044 fprintf( stderr, " removable=%d,", req->removable );
1045 fprintf( stderr, " flags=%d", req->flags );
1048 static void dump_set_handle_fd_request( const struct set_handle_fd_request *req )
1050 fprintf( stderr, " handle=%p,", req->handle );
1051 fprintf( stderr, " fd=%d,", req->fd );
1052 fprintf( stderr, " removable=%d", req->removable );
1055 static void dump_set_handle_fd_reply( const struct set_handle_fd_reply *req )
1057 fprintf( stderr, " cur_fd=%d", req->cur_fd );
1060 static void dump_flush_file_request( const struct flush_file_request *req )
1062 fprintf( stderr, " handle=%p", req->handle );
1065 static void dump_flush_file_reply( const struct flush_file_reply *req )
1067 fprintf( stderr, " event=%p", req->event );
1070 static void dump_lock_file_request( const struct lock_file_request *req )
1072 fprintf( stderr, " handle=%p,", req->handle );
1073 fprintf( stderr, " offset_low=%08x,", req->offset_low );
1074 fprintf( stderr, " offset_high=%08x,", req->offset_high );
1075 fprintf( stderr, " count_low=%08x,", req->count_low );
1076 fprintf( stderr, " count_high=%08x,", req->count_high );
1077 fprintf( stderr, " shared=%d,", req->shared );
1078 fprintf( stderr, " wait=%d", req->wait );
1081 static void dump_lock_file_reply( const struct lock_file_reply *req )
1083 fprintf( stderr, " handle=%p,", req->handle );
1084 fprintf( stderr, " overlapped=%d", req->overlapped );
1087 static void dump_unlock_file_request( const struct unlock_file_request *req )
1089 fprintf( stderr, " handle=%p,", req->handle );
1090 fprintf( stderr, " offset_low=%08x,", req->offset_low );
1091 fprintf( stderr, " offset_high=%08x,", req->offset_high );
1092 fprintf( stderr, " count_low=%08x,", req->count_low );
1093 fprintf( stderr, " count_high=%08x", req->count_high );
1096 static void dump_unmount_device_request( const struct unmount_device_request *req )
1098 fprintf( stderr, " handle=%p", req->handle );
1101 static void dump_create_socket_request( const struct create_socket_request *req )
1103 fprintf( stderr, " access=%08x,", req->access );
1104 fprintf( stderr, " inherit=%d,", req->inherit );
1105 fprintf( stderr, " family=%d,", req->family );
1106 fprintf( stderr, " type=%d,", req->type );
1107 fprintf( stderr, " protocol=%d,", req->protocol );
1108 fprintf( stderr, " flags=%08x", req->flags );
1111 static void dump_create_socket_reply( const struct create_socket_reply *req )
1113 fprintf( stderr, " handle=%p", req->handle );
1116 static void dump_accept_socket_request( const struct accept_socket_request *req )
1118 fprintf( stderr, " lhandle=%p,", req->lhandle );
1119 fprintf( stderr, " access=%08x,", req->access );
1120 fprintf( stderr, " inherit=%d", req->inherit );
1123 static void dump_accept_socket_reply( const struct accept_socket_reply *req )
1125 fprintf( stderr, " handle=%p", req->handle );
1128 static void dump_set_socket_event_request( const struct set_socket_event_request *req )
1130 fprintf( stderr, " handle=%p,", req->handle );
1131 fprintf( stderr, " mask=%08x,", req->mask );
1132 fprintf( stderr, " event=%p,", req->event );
1133 fprintf( stderr, " window=%p,", req->window );
1134 fprintf( stderr, " msg=%08x", req->msg );
1137 static void dump_get_socket_event_request( const struct get_socket_event_request *req )
1139 fprintf( stderr, " handle=%p,", req->handle );
1140 fprintf( stderr, " service=%d,", req->service );
1141 fprintf( stderr, " c_event=%p", req->c_event );
1144 static void dump_get_socket_event_reply( const struct get_socket_event_reply *req )
1146 fprintf( stderr, " mask=%08x,", req->mask );
1147 fprintf( stderr, " pmask=%08x,", req->pmask );
1148 fprintf( stderr, " state=%08x,", req->state );
1149 fprintf( stderr, " errors=" );
1150 dump_varargs_ints( cur_size );
1153 static void dump_enable_socket_event_request( const struct enable_socket_event_request *req )
1155 fprintf( stderr, " handle=%p,", req->handle );
1156 fprintf( stderr, " mask=%08x,", req->mask );
1157 fprintf( stderr, " sstate=%08x,", req->sstate );
1158 fprintf( stderr, " cstate=%08x", req->cstate );
1161 static void dump_set_socket_deferred_request( const struct set_socket_deferred_request *req )
1163 fprintf( stderr, " handle=%p,", req->handle );
1164 fprintf( stderr, " deferred=%p", req->deferred );
1167 static void dump_alloc_console_request( const struct alloc_console_request *req )
1169 fprintf( stderr, " access=%08x,", req->access );
1170 fprintf( stderr, " inherit=%d,", req->inherit );
1171 fprintf( stderr, " pid=%04x", req->pid );
1174 static void dump_alloc_console_reply( const struct alloc_console_reply *req )
1176 fprintf( stderr, " handle_in=%p,", req->handle_in );
1177 fprintf( stderr, " event=%p", req->event );
1180 static void dump_free_console_request( const struct free_console_request *req )
1184 static void dump_get_console_renderer_events_request( const struct get_console_renderer_events_request *req )
1186 fprintf( stderr, " handle=%p", req->handle );
1189 static void dump_get_console_renderer_events_reply( const struct get_console_renderer_events_reply *req )
1191 fprintf( stderr, " data=" );
1192 dump_varargs_bytes( cur_size );
1195 static void dump_open_console_request( const struct open_console_request *req )
1197 fprintf( stderr, " from=%d,", req->from );
1198 fprintf( stderr, " access=%08x,", req->access );
1199 fprintf( stderr, " inherit=%d,", req->inherit );
1200 fprintf( stderr, " share=%d", req->share );
1203 static void dump_open_console_reply( const struct open_console_reply *req )
1205 fprintf( stderr, " handle=%p", req->handle );
1208 static void dump_get_console_wait_event_request( const struct get_console_wait_event_request *req )
1212 static void dump_get_console_wait_event_reply( const struct get_console_wait_event_reply *req )
1214 fprintf( stderr, " handle=%p", req->handle );
1217 static void dump_get_console_mode_request( const struct get_console_mode_request *req )
1219 fprintf( stderr, " handle=%p", req->handle );
1222 static void dump_get_console_mode_reply( const struct get_console_mode_reply *req )
1224 fprintf( stderr, " mode=%d", req->mode );
1227 static void dump_set_console_mode_request( const struct set_console_mode_request *req )
1229 fprintf( stderr, " handle=%p,", req->handle );
1230 fprintf( stderr, " mode=%d", req->mode );
1233 static void dump_set_console_input_info_request( const struct set_console_input_info_request *req )
1235 fprintf( stderr, " handle=%p,", req->handle );
1236 fprintf( stderr, " mask=%d,", req->mask );
1237 fprintf( stderr, " active_sb=%p,", req->active_sb );
1238 fprintf( stderr, " history_mode=%d,", req->history_mode );
1239 fprintf( stderr, " history_size=%d,", req->history_size );
1240 fprintf( stderr, " edition_mode=%d,", req->edition_mode );
1241 fprintf( stderr, " title=" );
1242 dump_varargs_unicode_str( cur_size );
1245 static void dump_get_console_input_info_request( const struct get_console_input_info_request *req )
1247 fprintf( stderr, " handle=%p", req->handle );
1250 static void dump_get_console_input_info_reply( const struct get_console_input_info_reply *req )
1252 fprintf( stderr, " history_mode=%d,", req->history_mode );
1253 fprintf( stderr, " history_size=%d,", req->history_size );
1254 fprintf( stderr, " history_index=%d,", req->history_index );
1255 fprintf( stderr, " edition_mode=%d,", req->edition_mode );
1256 fprintf( stderr, " title=" );
1257 dump_varargs_unicode_str( cur_size );
1260 static void dump_append_console_input_history_request( const struct append_console_input_history_request *req )
1262 fprintf( stderr, " handle=%p,", req->handle );
1263 fprintf( stderr, " line=" );
1264 dump_varargs_unicode_str( cur_size );
1267 static void dump_get_console_input_history_request( const struct get_console_input_history_request *req )
1269 fprintf( stderr, " handle=%p,", req->handle );
1270 fprintf( stderr, " index=%d", req->index );
1273 static void dump_get_console_input_history_reply( const struct get_console_input_history_reply *req )
1275 fprintf( stderr, " total=%d,", req->total );
1276 fprintf( stderr, " line=" );
1277 dump_varargs_unicode_str( cur_size );
1280 static void dump_create_console_output_request( const struct create_console_output_request *req )
1282 fprintf( stderr, " handle_in=%p,", req->handle_in );
1283 fprintf( stderr, " access=%d,", req->access );
1284 fprintf( stderr, " share=%d,", req->share );
1285 fprintf( stderr, " inherit=%d", req->inherit );
1288 static void dump_create_console_output_reply( const struct create_console_output_reply *req )
1290 fprintf( stderr, " handle_out=%p", req->handle_out );
1293 static void dump_set_console_output_info_request( const struct set_console_output_info_request *req )
1295 fprintf( stderr, " handle=%p,", req->handle );
1296 fprintf( stderr, " mask=%d,", req->mask );
1297 fprintf( stderr, " cursor_size=%d,", req->cursor_size );
1298 fprintf( stderr, " cursor_visible=%d,", req->cursor_visible );
1299 fprintf( stderr, " cursor_x=%d,", req->cursor_x );
1300 fprintf( stderr, " cursor_y=%d,", req->cursor_y );
1301 fprintf( stderr, " width=%d,", req->width );
1302 fprintf( stderr, " height=%d,", req->height );
1303 fprintf( stderr, " attr=%d,", req->attr );
1304 fprintf( stderr, " win_left=%d,", req->win_left );
1305 fprintf( stderr, " win_top=%d,", req->win_top );
1306 fprintf( stderr, " win_right=%d,", req->win_right );
1307 fprintf( stderr, " win_bottom=%d,", req->win_bottom );
1308 fprintf( stderr, " max_width=%d,", req->max_width );
1309 fprintf( stderr, " max_height=%d", req->max_height );
1312 static void dump_get_console_output_info_request( const struct get_console_output_info_request *req )
1314 fprintf( stderr, " handle=%p", req->handle );
1317 static void dump_get_console_output_info_reply( const struct get_console_output_info_reply *req )
1319 fprintf( stderr, " cursor_size=%d,", req->cursor_size );
1320 fprintf( stderr, " cursor_visible=%d,", req->cursor_visible );
1321 fprintf( stderr, " cursor_x=%d,", req->cursor_x );
1322 fprintf( stderr, " cursor_y=%d,", req->cursor_y );
1323 fprintf( stderr, " width=%d,", req->width );
1324 fprintf( stderr, " height=%d,", req->height );
1325 fprintf( stderr, " attr=%d,", req->attr );
1326 fprintf( stderr, " win_left=%d,", req->win_left );
1327 fprintf( stderr, " win_top=%d,", req->win_top );
1328 fprintf( stderr, " win_right=%d,", req->win_right );
1329 fprintf( stderr, " win_bottom=%d,", req->win_bottom );
1330 fprintf( stderr, " max_width=%d,", req->max_width );
1331 fprintf( stderr, " max_height=%d", req->max_height );
1334 static void dump_write_console_input_request( const struct write_console_input_request *req )
1336 fprintf( stderr, " handle=%p,", req->handle );
1337 fprintf( stderr, " rec=" );
1338 dump_varargs_input_records( cur_size );
1341 static void dump_write_console_input_reply( const struct write_console_input_reply *req )
1343 fprintf( stderr, " written=%d", req->written );
1346 static void dump_read_console_input_request( const struct read_console_input_request *req )
1348 fprintf( stderr, " handle=%p,", req->handle );
1349 fprintf( stderr, " flush=%d", req->flush );
1352 static void dump_read_console_input_reply( const struct read_console_input_reply *req )
1354 fprintf( stderr, " read=%d,", req->read );
1355 fprintf( stderr, " rec=" );
1356 dump_varargs_input_records( cur_size );
1359 static void dump_write_console_output_request( const struct write_console_output_request *req )
1361 fprintf( stderr, " handle=%p,", req->handle );
1362 fprintf( stderr, " x=%d,", req->x );
1363 fprintf( stderr, " y=%d,", req->y );
1364 fprintf( stderr, " mode=%d,", req->mode );
1365 fprintf( stderr, " wrap=%d,", req->wrap );
1366 fprintf( stderr, " data=" );
1367 dump_varargs_bytes( cur_size );
1370 static void dump_write_console_output_reply( const struct write_console_output_reply *req )
1372 fprintf( stderr, " written=%d,", req->written );
1373 fprintf( stderr, " width=%d,", req->width );
1374 fprintf( stderr, " height=%d", req->height );
1377 static void dump_fill_console_output_request( const struct fill_console_output_request *req )
1379 fprintf( stderr, " handle=%p,", req->handle );
1380 fprintf( stderr, " x=%d,", req->x );
1381 fprintf( stderr, " y=%d,", req->y );
1382 fprintf( stderr, " mode=%d,", req->mode );
1383 fprintf( stderr, " count=%d,", req->count );
1384 fprintf( stderr, " wrap=%d,", req->wrap );
1385 fprintf( stderr, " data=" );
1386 dump_char_info( &req->data );
1389 static void dump_fill_console_output_reply( const struct fill_console_output_reply *req )
1391 fprintf( stderr, " written=%d", req->written );
1394 static void dump_read_console_output_request( const struct read_console_output_request *req )
1396 fprintf( stderr, " handle=%p,", req->handle );
1397 fprintf( stderr, " x=%d,", req->x );
1398 fprintf( stderr, " y=%d,", req->y );
1399 fprintf( stderr, " mode=%d,", req->mode );
1400 fprintf( stderr, " wrap=%d", req->wrap );
1403 static void dump_read_console_output_reply( const struct read_console_output_reply *req )
1405 fprintf( stderr, " width=%d,", req->width );
1406 fprintf( stderr, " height=%d,", req->height );
1407 fprintf( stderr, " data=" );
1408 dump_varargs_bytes( cur_size );
1411 static void dump_move_console_output_request( const struct move_console_output_request *req )
1413 fprintf( stderr, " handle=%p,", req->handle );
1414 fprintf( stderr, " x_src=%d,", req->x_src );
1415 fprintf( stderr, " y_src=%d,", req->y_src );
1416 fprintf( stderr, " x_dst=%d,", req->x_dst );
1417 fprintf( stderr, " y_dst=%d,", req->y_dst );
1418 fprintf( stderr, " w=%d,", req->w );
1419 fprintf( stderr, " h=%d", req->h );
1422 static void dump_send_console_signal_request( const struct send_console_signal_request *req )
1424 fprintf( stderr, " signal=%d,", req->signal );
1425 fprintf( stderr, " group_id=%04x", req->group_id );
1428 static void dump_create_change_notification_request( const struct create_change_notification_request *req )
1430 fprintf( stderr, " handle=%p,", req->handle );
1431 fprintf( stderr, " subtree=%d,", req->subtree );
1432 fprintf( stderr, " filter=%08x", req->filter );
1435 static void dump_create_change_notification_reply( const struct create_change_notification_reply *req )
1437 fprintf( stderr, " handle=%p", req->handle );
1440 static void dump_next_change_notification_request( const struct next_change_notification_request *req )
1442 fprintf( stderr, " handle=%p", req->handle );
1445 static void dump_create_mapping_request( const struct create_mapping_request *req )
1447 fprintf( stderr, " access=%08x,", req->access );
1448 fprintf( stderr, " attributes=%08x,", req->attributes );
1449 fprintf( stderr, " size_high=%d,", req->size_high );
1450 fprintf( stderr, " size_low=%d,", req->size_low );
1451 fprintf( stderr, " protect=%d,", req->protect );
1452 fprintf( stderr, " file_handle=%p,", req->file_handle );
1453 fprintf( stderr, " name=" );
1454 dump_varargs_unicode_str( cur_size );
1457 static void dump_create_mapping_reply( const struct create_mapping_reply *req )
1459 fprintf( stderr, " handle=%p", req->handle );
1462 static void dump_open_mapping_request( const struct open_mapping_request *req )
1464 fprintf( stderr, " access=%08x,", req->access );
1465 fprintf( stderr, " attributes=%08x,", req->attributes );
1466 fprintf( stderr, " name=" );
1467 dump_varargs_unicode_str( cur_size );
1470 static void dump_open_mapping_reply( const struct open_mapping_reply *req )
1472 fprintf( stderr, " handle=%p", req->handle );
1475 static void dump_get_mapping_info_request( const struct get_mapping_info_request *req )
1477 fprintf( stderr, " handle=%p", req->handle );
1480 static void dump_get_mapping_info_reply( const struct get_mapping_info_reply *req )
1482 fprintf( stderr, " size_high=%d,", req->size_high );
1483 fprintf( stderr, " size_low=%d,", req->size_low );
1484 fprintf( stderr, " protect=%d,", req->protect );
1485 fprintf( stderr, " header_size=%d,", req->header_size );
1486 fprintf( stderr, " base=%p,", req->base );
1487 fprintf( stderr, " shared_file=%p,", req->shared_file );
1488 fprintf( stderr, " shared_size=%d", req->shared_size );
1491 static void dump_create_snapshot_request( const struct create_snapshot_request *req )
1493 fprintf( stderr, " inherit=%d,", req->inherit );
1494 fprintf( stderr, " flags=%d,", req->flags );
1495 fprintf( stderr, " pid=%04x", req->pid );
1498 static void dump_create_snapshot_reply( const struct create_snapshot_reply *req )
1500 fprintf( stderr, " handle=%p", req->handle );
1503 static void dump_next_process_request( const struct next_process_request *req )
1505 fprintf( stderr, " handle=%p,", req->handle );
1506 fprintf( stderr, " reset=%d", req->reset );
1509 static void dump_next_process_reply( const struct next_process_reply *req )
1511 fprintf( stderr, " count=%d,", req->count );
1512 fprintf( stderr, " pid=%04x,", req->pid );
1513 fprintf( stderr, " ppid=%04x,", req->ppid );
1514 fprintf( stderr, " heap=%p,", req->heap );
1515 fprintf( stderr, " module=%p,", req->module );
1516 fprintf( stderr, " threads=%d,", req->threads );
1517 fprintf( stderr, " priority=%d,", req->priority );
1518 fprintf( stderr, " handles=%d,", req->handles );
1519 fprintf( stderr, " filename=" );
1520 dump_varargs_unicode_str( cur_size );
1523 static void dump_next_thread_request( const struct next_thread_request *req )
1525 fprintf( stderr, " handle=%p,", req->handle );
1526 fprintf( stderr, " reset=%d", req->reset );
1529 static void dump_next_thread_reply( const struct next_thread_reply *req )
1531 fprintf( stderr, " count=%d,", req->count );
1532 fprintf( stderr, " pid=%04x,", req->pid );
1533 fprintf( stderr, " tid=%04x,", req->tid );
1534 fprintf( stderr, " base_pri=%d,", req->base_pri );
1535 fprintf( stderr, " delta_pri=%d", req->delta_pri );
1538 static void dump_next_module_request( const struct next_module_request *req )
1540 fprintf( stderr, " handle=%p,", req->handle );
1541 fprintf( stderr, " reset=%d", req->reset );
1544 static void dump_next_module_reply( const struct next_module_reply *req )
1546 fprintf( stderr, " pid=%04x,", req->pid );
1547 fprintf( stderr, " base=%p,", req->base );
1548 fprintf( stderr, " size=%d,", req->size );
1549 fprintf( stderr, " filename=" );
1550 dump_varargs_unicode_str( cur_size );
1553 static void dump_wait_debug_event_request( const struct wait_debug_event_request *req )
1555 fprintf( stderr, " get_handle=%d", req->get_handle );
1558 static void dump_wait_debug_event_reply( const struct wait_debug_event_reply *req )
1560 fprintf( stderr, " pid=%04x,", req->pid );
1561 fprintf( stderr, " tid=%04x,", req->tid );
1562 fprintf( stderr, " wait=%p,", req->wait );
1563 fprintf( stderr, " event=" );
1564 dump_varargs_debug_event( cur_size );
1567 static void dump_queue_exception_event_request( const struct queue_exception_event_request *req )
1569 fprintf( stderr, " first=%d,", req->first );
1570 fprintf( stderr, " record=" );
1571 dump_varargs_exc_event( cur_size );
1574 static void dump_queue_exception_event_reply( const struct queue_exception_event_reply *req )
1576 fprintf( stderr, " handle=%p", req->handle );
1579 static void dump_get_exception_status_request( const struct get_exception_status_request *req )
1581 fprintf( stderr, " handle=%p", req->handle );
1584 static void dump_get_exception_status_reply( const struct get_exception_status_reply *req )
1586 fprintf( stderr, " context=" );
1587 dump_varargs_context( cur_size );
1590 static void dump_output_debug_string_request( const struct output_debug_string_request *req )
1592 fprintf( stderr, " string=%p,", req->string );
1593 fprintf( stderr, " unicode=%d,", req->unicode );
1594 fprintf( stderr, " length=%d", req->length );
1597 static void dump_continue_debug_event_request( const struct continue_debug_event_request *req )
1599 fprintf( stderr, " pid=%04x,", req->pid );
1600 fprintf( stderr, " tid=%04x,", req->tid );
1601 fprintf( stderr, " status=%d", req->status );
1604 static void dump_debug_process_request( const struct debug_process_request *req )
1606 fprintf( stderr, " pid=%04x,", req->pid );
1607 fprintf( stderr, " attach=%d", req->attach );
1610 static void dump_debug_break_request( const struct debug_break_request *req )
1612 fprintf( stderr, " handle=%p", req->handle );
1615 static void dump_debug_break_reply( const struct debug_break_reply *req )
1617 fprintf( stderr, " self=%d", req->self );
1620 static void dump_set_debugger_kill_on_exit_request( const struct set_debugger_kill_on_exit_request *req )
1622 fprintf( stderr, " kill_on_exit=%d", req->kill_on_exit );
1625 static void dump_read_process_memory_request( const struct read_process_memory_request *req )
1627 fprintf( stderr, " handle=%p,", req->handle );
1628 fprintf( stderr, " addr=%p", req->addr );
1631 static void dump_read_process_memory_reply( const struct read_process_memory_reply *req )
1633 fprintf( stderr, " data=" );
1634 dump_varargs_bytes( cur_size );
1637 static void dump_write_process_memory_request( const struct write_process_memory_request *req )
1639 fprintf( stderr, " handle=%p,", req->handle );
1640 fprintf( stderr, " addr=%p,", req->addr );
1641 fprintf( stderr, " first_mask=%08x,", req->first_mask );
1642 fprintf( stderr, " last_mask=%08x,", req->last_mask );
1643 fprintf( stderr, " data=" );
1644 dump_varargs_bytes( cur_size );
1647 static void dump_create_key_request( const struct create_key_request *req )
1649 fprintf( stderr, " parent=%p,", req->parent );
1650 fprintf( stderr, " access=%08x,", req->access );
1651 fprintf( stderr, " options=%08x,", req->options );
1652 fprintf( stderr, " modif=%ld,", (long)req->modif );
1653 fprintf( stderr, " namelen=%d,", req->namelen );
1654 fprintf( stderr, " name=" );
1655 dump_varargs_unicode_str( min(cur_size,req->namelen) );
1656 fputc( ',', stderr );
1657 fprintf( stderr, " class=" );
1658 dump_varargs_unicode_str( cur_size );
1661 static void dump_create_key_reply( const struct create_key_reply *req )
1663 fprintf( stderr, " hkey=%p,", req->hkey );
1664 fprintf( stderr, " created=%d", req->created );
1667 static void dump_open_key_request( const struct open_key_request *req )
1669 fprintf( stderr, " parent=%p,", req->parent );
1670 fprintf( stderr, " access=%08x,", req->access );
1671 fprintf( stderr, " name=" );
1672 dump_varargs_unicode_str( cur_size );
1675 static void dump_open_key_reply( const struct open_key_reply *req )
1677 fprintf( stderr, " hkey=%p", req->hkey );
1680 static void dump_delete_key_request( const struct delete_key_request *req )
1682 fprintf( stderr, " hkey=%p", req->hkey );
1685 static void dump_flush_key_request( const struct flush_key_request *req )
1687 fprintf( stderr, " hkey=%p", req->hkey );
1690 static void dump_enum_key_request( const struct enum_key_request *req )
1692 fprintf( stderr, " hkey=%p,", req->hkey );
1693 fprintf( stderr, " index=%d,", req->index );
1694 fprintf( stderr, " info_class=%d", req->info_class );
1697 static void dump_enum_key_reply( const struct enum_key_reply *req )
1699 fprintf( stderr, " subkeys=%d,", req->subkeys );
1700 fprintf( stderr, " max_subkey=%d,", req->max_subkey );
1701 fprintf( stderr, " max_class=%d,", req->max_class );
1702 fprintf( stderr, " values=%d,", req->values );
1703 fprintf( stderr, " max_value=%d,", req->max_value );
1704 fprintf( stderr, " max_data=%d,", req->max_data );
1705 fprintf( stderr, " modif=%ld,", (long)req->modif );
1706 fprintf( stderr, " total=%d,", req->total );
1707 fprintf( stderr, " namelen=%d,", req->namelen );
1708 fprintf( stderr, " name=" );
1709 dump_varargs_unicode_str( min(cur_size,req->namelen) );
1710 fputc( ',', stderr );
1711 fprintf( stderr, " class=" );
1712 dump_varargs_unicode_str( cur_size );
1715 static void dump_set_key_value_request( const struct set_key_value_request *req )
1717 fprintf( stderr, " hkey=%p,", req->hkey );
1718 fprintf( stderr, " type=%d,", req->type );
1719 fprintf( stderr, " namelen=%d,", req->namelen );
1720 fprintf( stderr, " name=" );
1721 dump_varargs_unicode_str( min(cur_size,req->namelen) );
1722 fputc( ',', stderr );
1723 fprintf( stderr, " data=" );
1724 dump_varargs_bytes( cur_size );
1727 static void dump_get_key_value_request( const struct get_key_value_request *req )
1729 fprintf( stderr, " hkey=%p,", req->hkey );
1730 fprintf( stderr, " name=" );
1731 dump_varargs_unicode_str( cur_size );
1734 static void dump_get_key_value_reply( const struct get_key_value_reply *req )
1736 fprintf( stderr, " type=%d,", req->type );
1737 fprintf( stderr, " total=%d,", req->total );
1738 fprintf( stderr, " data=" );
1739 dump_varargs_bytes( cur_size );
1742 static void dump_enum_key_value_request( const struct enum_key_value_request *req )
1744 fprintf( stderr, " hkey=%p,", req->hkey );
1745 fprintf( stderr, " index=%d,", req->index );
1746 fprintf( stderr, " info_class=%d", req->info_class );
1749 static void dump_enum_key_value_reply( const struct enum_key_value_reply *req )
1751 fprintf( stderr, " type=%d,", req->type );
1752 fprintf( stderr, " total=%d,", req->total );
1753 fprintf( stderr, " namelen=%d,", req->namelen );
1754 fprintf( stderr, " name=" );
1755 dump_varargs_unicode_str( min(cur_size,req->namelen) );
1756 fputc( ',', stderr );
1757 fprintf( stderr, " data=" );
1758 dump_varargs_bytes( cur_size );
1761 static void dump_delete_key_value_request( const struct delete_key_value_request *req )
1763 fprintf( stderr, " hkey=%p,", req->hkey );
1764 fprintf( stderr, " name=" );
1765 dump_varargs_unicode_str( cur_size );
1768 static void dump_load_registry_request( const struct load_registry_request *req )
1770 fprintf( stderr, " hkey=%p,", req->hkey );
1771 fprintf( stderr, " file=%p,", req->file );
1772 fprintf( stderr, " name=" );
1773 dump_varargs_unicode_str( cur_size );
1776 static void dump_unload_registry_request( const struct unload_registry_request *req )
1778 fprintf( stderr, " hkey=%p", req->hkey );
1781 static void dump_save_registry_request( const struct save_registry_request *req )
1783 fprintf( stderr, " hkey=%p,", req->hkey );
1784 fprintf( stderr, " file=%p", req->file );
1787 static void dump_set_registry_notification_request( const struct set_registry_notification_request *req )
1789 fprintf( stderr, " hkey=%p,", req->hkey );
1790 fprintf( stderr, " event=%p,", req->event );
1791 fprintf( stderr, " subtree=%d,", req->subtree );
1792 fprintf( stderr, " filter=%08x", req->filter );
1795 static void dump_create_timer_request( const struct create_timer_request *req )
1797 fprintf( stderr, " access=%08x,", req->access );
1798 fprintf( stderr, " attributes=%08x,", req->attributes );
1799 fprintf( stderr, " manual=%d,", req->manual );
1800 fprintf( stderr, " name=" );
1801 dump_varargs_unicode_str( cur_size );
1804 static void dump_create_timer_reply( const struct create_timer_reply *req )
1806 fprintf( stderr, " handle=%p", req->handle );
1809 static void dump_open_timer_request( const struct open_timer_request *req )
1811 fprintf( stderr, " access=%08x,", req->access );
1812 fprintf( stderr, " attributes=%08x,", req->attributes );
1813 fprintf( stderr, " name=" );
1814 dump_varargs_unicode_str( cur_size );
1817 static void dump_open_timer_reply( const struct open_timer_reply *req )
1819 fprintf( stderr, " handle=%p", req->handle );
1822 static void dump_set_timer_request( const struct set_timer_request *req )
1824 fprintf( stderr, " handle=%p,", req->handle );
1825 fprintf( stderr, " expire=" );
1826 dump_abs_time( &req->expire );
1827 fprintf( stderr, "," );
1828 fprintf( stderr, " period=%d,", req->period );
1829 fprintf( stderr, " callback=%p,", req->callback );
1830 fprintf( stderr, " arg=%p", req->arg );
1833 static void dump_set_timer_reply( const struct set_timer_reply *req )
1835 fprintf( stderr, " signaled=%d", req->signaled );
1838 static void dump_cancel_timer_request( const struct cancel_timer_request *req )
1840 fprintf( stderr, " handle=%p", req->handle );
1843 static void dump_cancel_timer_reply( const struct cancel_timer_reply *req )
1845 fprintf( stderr, " signaled=%d", req->signaled );
1848 static void dump_get_timer_info_request( const struct get_timer_info_request *req )
1850 fprintf( stderr, " handle=%p", req->handle );
1853 static void dump_get_timer_info_reply( const struct get_timer_info_reply *req )
1855 fprintf( stderr, " when=" );
1856 dump_abs_time( &req->when );
1857 fprintf( stderr, "," );
1858 fprintf( stderr, " signaled=%d", req->signaled );
1861 static void dump_get_thread_context_request( const struct get_thread_context_request *req )
1863 fprintf( stderr, " handle=%p,", req->handle );
1864 fprintf( stderr, " flags=%08x,", req->flags );
1865 fprintf( stderr, " suspend=%d", req->suspend );
1868 static void dump_get_thread_context_reply( const struct get_thread_context_reply *req )
1870 fprintf( stderr, " context=" );
1871 dump_varargs_context( cur_size );
1874 static void dump_set_thread_context_request( const struct set_thread_context_request *req )
1876 fprintf( stderr, " handle=%p,", req->handle );
1877 fprintf( stderr, " flags=%08x,", req->flags );
1878 fprintf( stderr, " suspend=%d,", req->suspend );
1879 fprintf( stderr, " context=" );
1880 dump_varargs_context( cur_size );
1883 static void dump_get_selector_entry_request( const struct get_selector_entry_request *req )
1885 fprintf( stderr, " handle=%p,", req->handle );
1886 fprintf( stderr, " entry=%d", req->entry );
1889 static void dump_get_selector_entry_reply( const struct get_selector_entry_reply *req )
1891 fprintf( stderr, " base=%08x,", req->base );
1892 fprintf( stderr, " limit=%08x,", req->limit );
1893 fprintf( stderr, " flags=%02x", req->flags );
1896 static void dump_add_atom_request( const struct add_atom_request *req )
1898 fprintf( stderr, " table=%p,", req->table );
1899 fprintf( stderr, " name=" );
1900 dump_varargs_unicode_str( cur_size );
1903 static void dump_add_atom_reply( const struct add_atom_reply *req )
1905 fprintf( stderr, " atom=%04x", req->atom );
1908 static void dump_delete_atom_request( const struct delete_atom_request *req )
1910 fprintf( stderr, " table=%p,", req->table );
1911 fprintf( stderr, " atom=%04x", req->atom );
1914 static void dump_find_atom_request( const struct find_atom_request *req )
1916 fprintf( stderr, " table=%p,", req->table );
1917 fprintf( stderr, " name=" );
1918 dump_varargs_unicode_str( cur_size );
1921 static void dump_find_atom_reply( const struct find_atom_reply *req )
1923 fprintf( stderr, " atom=%04x", req->atom );
1926 static void dump_get_atom_information_request( const struct get_atom_information_request *req )
1928 fprintf( stderr, " table=%p,", req->table );
1929 fprintf( stderr, " atom=%04x", req->atom );
1932 static void dump_get_atom_information_reply( const struct get_atom_information_reply *req )
1934 fprintf( stderr, " count=%d,", req->count );
1935 fprintf( stderr, " pinned=%d,", req->pinned );
1936 fprintf( stderr, " name=" );
1937 dump_varargs_unicode_str( cur_size );
1940 static void dump_set_atom_information_request( const struct set_atom_information_request *req )
1942 fprintf( stderr, " table=%p,", req->table );
1943 fprintf( stderr, " atom=%04x,", req->atom );
1944 fprintf( stderr, " pinned=%d", req->pinned );
1947 static void dump_empty_atom_table_request( const struct empty_atom_table_request *req )
1949 fprintf( stderr, " table=%p,", req->table );
1950 fprintf( stderr, " if_pinned=%d", req->if_pinned );
1953 static void dump_init_atom_table_request( const struct init_atom_table_request *req )
1955 fprintf( stderr, " entries=%d", req->entries );
1958 static void dump_init_atom_table_reply( const struct init_atom_table_reply *req )
1960 fprintf( stderr, " table=%p", req->table );
1963 static void dump_get_msg_queue_request( const struct get_msg_queue_request *req )
1967 static void dump_get_msg_queue_reply( const struct get_msg_queue_reply *req )
1969 fprintf( stderr, " handle=%p", req->handle );
1972 static void dump_set_queue_mask_request( const struct set_queue_mask_request *req )
1974 fprintf( stderr, " wake_mask=%08x,", req->wake_mask );
1975 fprintf( stderr, " changed_mask=%08x,", req->changed_mask );
1976 fprintf( stderr, " skip_wait=%d", req->skip_wait );
1979 static void dump_set_queue_mask_reply( const struct set_queue_mask_reply *req )
1981 fprintf( stderr, " wake_bits=%08x,", req->wake_bits );
1982 fprintf( stderr, " changed_bits=%08x", req->changed_bits );
1985 static void dump_get_queue_status_request( const struct get_queue_status_request *req )
1987 fprintf( stderr, " clear=%d", req->clear );
1990 static void dump_get_queue_status_reply( const struct get_queue_status_reply *req )
1992 fprintf( stderr, " wake_bits=%08x,", req->wake_bits );
1993 fprintf( stderr, " changed_bits=%08x", req->changed_bits );
1996 static void dump_wait_input_idle_request( const struct wait_input_idle_request *req )
1998 fprintf( stderr, " handle=%p,", req->handle );
1999 fprintf( stderr, " timeout=%d", req->timeout );
2002 static void dump_wait_input_idle_reply( const struct wait_input_idle_reply *req )
2004 fprintf( stderr, " event=%p", req->event );
2007 static void dump_send_message_request( const struct send_message_request *req )
2009 fprintf( stderr, " id=%04x,", req->id );
2010 fprintf( stderr, " type=%d,", req->type );
2011 fprintf( stderr, " flags=%d,", req->flags );
2012 fprintf( stderr, " win=%p,", req->win );
2013 fprintf( stderr, " msg=%08x,", req->msg );
2014 fprintf( stderr, " wparam=%08x,", req->wparam );
2015 fprintf( stderr, " lparam=%08x,", req->lparam );
2016 fprintf( stderr, " x=%d,", req->x );
2017 fprintf( stderr, " y=%d,", req->y );
2018 fprintf( stderr, " time=%08x,", req->time );
2019 fprintf( stderr, " info=%08x,", req->info );
2020 fprintf( stderr, " timeout=%d,", req->timeout );
2021 fprintf( stderr, " callback=%p,", req->callback );
2022 fprintf( stderr, " data=" );
2023 dump_varargs_bytes( cur_size );
2026 static void dump_get_message_request( const struct get_message_request *req )
2028 fprintf( stderr, " flags=%d,", req->flags );
2029 fprintf( stderr, " get_win=%p,", req->get_win );
2030 fprintf( stderr, " get_first=%08x,", req->get_first );
2031 fprintf( stderr, " get_last=%08x,", req->get_last );
2032 fprintf( stderr, " hw_id=%08x", req->hw_id );
2035 static void dump_get_message_reply( const struct get_message_reply *req )
2037 fprintf( stderr, " type=%d,", req->type );
2038 fprintf( stderr, " win=%p,", req->win );
2039 fprintf( stderr, " msg=%08x,", req->msg );
2040 fprintf( stderr, " wparam=%08x,", req->wparam );
2041 fprintf( stderr, " lparam=%08x,", req->lparam );
2042 fprintf( stderr, " x=%d,", req->x );
2043 fprintf( stderr, " y=%d,", req->y );
2044 fprintf( stderr, " hook=%p,", req->hook );
2045 fprintf( stderr, " hook_proc=%p,", req->hook_proc );
2046 fprintf( stderr, " time=%08x,", req->time );
2047 fprintf( stderr, " info=%08x,", req->info );
2048 fprintf( stderr, " hw_id=%08x,", req->hw_id );
2049 fprintf( stderr, " active_hooks=%08x,", req->active_hooks );
2050 fprintf( stderr, " total=%d,", req->total );
2051 fprintf( stderr, " data=" );
2052 dump_varargs_bytes( cur_size );
2055 static void dump_reply_message_request( const struct reply_message_request *req )
2057 fprintf( stderr, " result=%08x,", req->result );
2058 fprintf( stderr, " remove=%d,", req->remove );
2059 fprintf( stderr, " data=" );
2060 dump_varargs_bytes( cur_size );
2063 static void dump_accept_hardware_message_request( const struct accept_hardware_message_request *req )
2065 fprintf( stderr, " hw_id=%08x,", req->hw_id );
2066 fprintf( stderr, " remove=%d,", req->remove );
2067 fprintf( stderr, " new_win=%p", req->new_win );
2070 static void dump_get_message_reply_request( const struct get_message_reply_request *req )
2072 fprintf( stderr, " cancel=%d", req->cancel );
2075 static void dump_get_message_reply_reply( const struct get_message_reply_reply *req )
2077 fprintf( stderr, " result=%08x,", req->result );
2078 fprintf( stderr, " data=" );
2079 dump_varargs_bytes( cur_size );
2082 static void dump_set_win_timer_request( const struct set_win_timer_request *req )
2084 fprintf( stderr, " win=%p,", req->win );
2085 fprintf( stderr, " msg=%08x,", req->msg );
2086 fprintf( stderr, " id=%08x,", req->id );
2087 fprintf( stderr, " rate=%08x,", req->rate );
2088 fprintf( stderr, " lparam=%08x", req->lparam );
2091 static void dump_set_win_timer_reply( const struct set_win_timer_reply *req )
2093 fprintf( stderr, " id=%08x", req->id );
2096 static void dump_kill_win_timer_request( const struct kill_win_timer_request *req )
2098 fprintf( stderr, " win=%p,", req->win );
2099 fprintf( stderr, " msg=%08x,", req->msg );
2100 fprintf( stderr, " id=%08x", req->id );
2103 static void dump_get_serial_info_request( const struct get_serial_info_request *req )
2105 fprintf( stderr, " handle=%p", req->handle );
2108 static void dump_get_serial_info_reply( const struct get_serial_info_reply *req )
2110 fprintf( stderr, " readinterval=%08x,", req->readinterval );
2111 fprintf( stderr, " readconst=%08x,", req->readconst );
2112 fprintf( stderr, " readmult=%08x,", req->readmult );
2113 fprintf( stderr, " writeconst=%08x,", req->writeconst );
2114 fprintf( stderr, " writemult=%08x,", req->writemult );
2115 fprintf( stderr, " eventmask=%08x,", req->eventmask );
2116 fprintf( stderr, " commerror=%08x", req->commerror );
2119 static void dump_set_serial_info_request( const struct set_serial_info_request *req )
2121 fprintf( stderr, " handle=%p,", req->handle );
2122 fprintf( stderr, " flags=%d,", req->flags );
2123 fprintf( stderr, " readinterval=%08x,", req->readinterval );
2124 fprintf( stderr, " readconst=%08x,", req->readconst );
2125 fprintf( stderr, " readmult=%08x,", req->readmult );
2126 fprintf( stderr, " writeconst=%08x,", req->writeconst );
2127 fprintf( stderr, " writemult=%08x,", req->writemult );
2128 fprintf( stderr, " eventmask=%08x,", req->eventmask );
2129 fprintf( stderr, " commerror=%08x", req->commerror );
2132 static void dump_register_async_request( const struct register_async_request *req )
2134 fprintf( stderr, " handle=%p,", req->handle );
2135 fprintf( stderr, " type=%d,", req->type );
2136 fprintf( stderr, " io_apc=%p,", req->io_apc );
2137 fprintf( stderr, " io_sb=%p,", req->io_sb );
2138 fprintf( stderr, " io_user=%p,", req->io_user );
2139 fprintf( stderr, " count=%d", req->count );
2142 static void dump_cancel_async_request( const struct cancel_async_request *req )
2144 fprintf( stderr, " handle=%p", req->handle );
2147 static void dump_create_named_pipe_request( const struct create_named_pipe_request *req )
2149 fprintf( stderr, " access=%08x,", req->access );
2150 fprintf( stderr, " attributes=%08x,", req->attributes );
2151 fprintf( stderr, " options=%08x,", req->options );
2152 fprintf( stderr, " flags=%08x,", req->flags );
2153 fprintf( stderr, " maxinstances=%08x,", req->maxinstances );
2154 fprintf( stderr, " outsize=%08x,", req->outsize );
2155 fprintf( stderr, " insize=%08x,", req->insize );
2156 fprintf( stderr, " timeout=%08x,", req->timeout );
2157 fprintf( stderr, " name=" );
2158 dump_varargs_unicode_str( cur_size );
2161 static void dump_create_named_pipe_reply( const struct create_named_pipe_reply *req )
2163 fprintf( stderr, " handle=%p", req->handle );
2166 static void dump_open_named_pipe_request( const struct open_named_pipe_request *req )
2168 fprintf( stderr, " access=%08x,", req->access );
2169 fprintf( stderr, " attributes=%08x,", req->attributes );
2170 fprintf( stderr, " flags=%08x,", req->flags );
2171 fprintf( stderr, " name=" );
2172 dump_varargs_unicode_str( cur_size );
2175 static void dump_open_named_pipe_reply( const struct open_named_pipe_reply *req )
2177 fprintf( stderr, " handle=%p", req->handle );
2180 static void dump_connect_named_pipe_request( const struct connect_named_pipe_request *req )
2182 fprintf( stderr, " handle=%p,", req->handle );
2183 fprintf( stderr, " event=%p,", req->event );
2184 fprintf( stderr, " func=%p", req->func );
2187 static void dump_wait_named_pipe_request( const struct wait_named_pipe_request *req )
2189 fprintf( stderr, " timeout=%08x,", req->timeout );
2190 fprintf( stderr, " overlapped=%p,", req->overlapped );
2191 fprintf( stderr, " func=%p,", req->func );
2192 fprintf( stderr, " name=" );
2193 dump_varargs_unicode_str( cur_size );
2196 static void dump_disconnect_named_pipe_request( const struct disconnect_named_pipe_request *req )
2198 fprintf( stderr, " handle=%p", req->handle );
2201 static void dump_disconnect_named_pipe_reply( const struct disconnect_named_pipe_reply *req )
2203 fprintf( stderr, " fd=%d", req->fd );
2206 static void dump_get_named_pipe_info_request( const struct get_named_pipe_info_request *req )
2208 fprintf( stderr, " handle=%p", req->handle );
2211 static void dump_get_named_pipe_info_reply( const struct get_named_pipe_info_reply *req )
2213 fprintf( stderr, " flags=%08x,", req->flags );
2214 fprintf( stderr, " maxinstances=%08x,", req->maxinstances );
2215 fprintf( stderr, " outsize=%08x,", req->outsize );
2216 fprintf( stderr, " insize=%08x", req->insize );
2219 static void dump_create_window_request( const struct create_window_request *req )
2221 fprintf( stderr, " parent=%p,", req->parent );
2222 fprintf( stderr, " owner=%p,", req->owner );
2223 fprintf( stderr, " atom=%04x,", req->atom );
2224 fprintf( stderr, " instance=%p", req->instance );
2227 static void dump_create_window_reply( const struct create_window_reply *req )
2229 fprintf( stderr, " handle=%p,", req->handle );
2230 fprintf( stderr, " extra=%d,", req->extra );
2231 fprintf( stderr, " class_ptr=%p", req->class_ptr );
2234 static void dump_destroy_window_request( const struct destroy_window_request *req )
2236 fprintf( stderr, " handle=%p", req->handle );
2239 static void dump_get_desktop_window_request( const struct get_desktop_window_request *req )
2243 static void dump_get_desktop_window_reply( const struct get_desktop_window_reply *req )
2245 fprintf( stderr, " handle=%p", req->handle );
2248 static void dump_set_window_owner_request( const struct set_window_owner_request *req )
2250 fprintf( stderr, " handle=%p,", req->handle );
2251 fprintf( stderr, " owner=%p", req->owner );
2254 static void dump_set_window_owner_reply( const struct set_window_owner_reply *req )
2256 fprintf( stderr, " full_owner=%p,", req->full_owner );
2257 fprintf( stderr, " prev_owner=%p", req->prev_owner );
2260 static void dump_get_window_info_request( const struct get_window_info_request *req )
2262 fprintf( stderr, " handle=%p", req->handle );
2265 static void dump_get_window_info_reply( const struct get_window_info_reply *req )
2267 fprintf( stderr, " full_handle=%p,", req->full_handle );
2268 fprintf( stderr, " last_active=%p,", req->last_active );
2269 fprintf( stderr, " pid=%04x,", req->pid );
2270 fprintf( stderr, " tid=%04x,", req->tid );
2271 fprintf( stderr, " atom=%04x,", req->atom );
2272 fprintf( stderr, " is_unicode=%d", req->is_unicode );
2275 static void dump_set_window_info_request( const struct set_window_info_request *req )
2277 fprintf( stderr, " handle=%p,", req->handle );
2278 fprintf( stderr, " flags=%08x,", req->flags );
2279 fprintf( stderr, " style=%08x,", req->style );
2280 fprintf( stderr, " ex_style=%08x,", req->ex_style );
2281 fprintf( stderr, " id=%08x,", req->id );
2282 fprintf( stderr, " instance=%p,", req->instance );
2283 fprintf( stderr, " is_unicode=%d,", req->is_unicode );
2284 fprintf( stderr, " user_data=%p,", req->user_data );
2285 fprintf( stderr, " extra_offset=%d,", req->extra_offset );
2286 fprintf( stderr, " extra_size=%d,", req->extra_size );
2287 fprintf( stderr, " extra_value=%08x", req->extra_value );
2290 static void dump_set_window_info_reply( const struct set_window_info_reply *req )
2292 fprintf( stderr, " old_style=%08x,", req->old_style );
2293 fprintf( stderr, " old_ex_style=%08x,", req->old_ex_style );
2294 fprintf( stderr, " old_id=%08x,", req->old_id );
2295 fprintf( stderr, " old_instance=%p,", req->old_instance );
2296 fprintf( stderr, " old_user_data=%p,", req->old_user_data );
2297 fprintf( stderr, " old_extra_value=%08x", req->old_extra_value );
2300 static void dump_set_parent_request( const struct set_parent_request *req )
2302 fprintf( stderr, " handle=%p,", req->handle );
2303 fprintf( stderr, " parent=%p", req->parent );
2306 static void dump_set_parent_reply( const struct set_parent_reply *req )
2308 fprintf( stderr, " old_parent=%p,", req->old_parent );
2309 fprintf( stderr, " full_parent=%p", req->full_parent );
2312 static void dump_get_window_parents_request( const struct get_window_parents_request *req )
2314 fprintf( stderr, " handle=%p", req->handle );
2317 static void dump_get_window_parents_reply( const struct get_window_parents_reply *req )
2319 fprintf( stderr, " count=%d,", req->count );
2320 fprintf( stderr, " parents=" );
2321 dump_varargs_user_handles( cur_size );
2324 static void dump_get_window_children_request( const struct get_window_children_request *req )
2326 fprintf( stderr, " parent=%p,", req->parent );
2327 fprintf( stderr, " atom=%04x,", req->atom );
2328 fprintf( stderr, " tid=%04x", req->tid );
2331 static void dump_get_window_children_reply( const struct get_window_children_reply *req )
2333 fprintf( stderr, " count=%d,", req->count );
2334 fprintf( stderr, " children=" );
2335 dump_varargs_user_handles( cur_size );
2338 static void dump_get_window_children_from_point_request( const struct get_window_children_from_point_request *req )
2340 fprintf( stderr, " parent=%p,", req->parent );
2341 fprintf( stderr, " x=%d,", req->x );
2342 fprintf( stderr, " y=%d", req->y );
2345 static void dump_get_window_children_from_point_reply( const struct get_window_children_from_point_reply *req )
2347 fprintf( stderr, " count=%d,", req->count );
2348 fprintf( stderr, " children=" );
2349 dump_varargs_user_handles( cur_size );
2352 static void dump_get_window_tree_request( const struct get_window_tree_request *req )
2354 fprintf( stderr, " handle=%p", req->handle );
2357 static void dump_get_window_tree_reply( const struct get_window_tree_reply *req )
2359 fprintf( stderr, " parent=%p,", req->parent );
2360 fprintf( stderr, " owner=%p,", req->owner );
2361 fprintf( stderr, " next_sibling=%p,", req->next_sibling );
2362 fprintf( stderr, " prev_sibling=%p,", req->prev_sibling );
2363 fprintf( stderr, " first_sibling=%p,", req->first_sibling );
2364 fprintf( stderr, " last_sibling=%p,", req->last_sibling );
2365 fprintf( stderr, " first_child=%p,", req->first_child );
2366 fprintf( stderr, " last_child=%p", req->last_child );
2369 static void dump_set_window_pos_request( const struct set_window_pos_request *req )
2371 fprintf( stderr, " handle=%p,", req->handle );
2372 fprintf( stderr, " previous=%p,", req->previous );
2373 fprintf( stderr, " flags=%08x,", req->flags );
2374 fprintf( stderr, " window=" );
2375 dump_rectangle( &req->window );
2376 fprintf( stderr, "," );
2377 fprintf( stderr, " client=" );
2378 dump_rectangle( &req->client );
2379 fprintf( stderr, "," );
2380 fprintf( stderr, " valid=" );
2381 dump_varargs_rectangles( cur_size );
2384 static void dump_set_window_pos_reply( const struct set_window_pos_reply *req )
2386 fprintf( stderr, " new_style=%08x", req->new_style );
2389 static void dump_get_window_rectangles_request( const struct get_window_rectangles_request *req )
2391 fprintf( stderr, " handle=%p", req->handle );
2394 static void dump_get_window_rectangles_reply( const struct get_window_rectangles_reply *req )
2396 fprintf( stderr, " window=" );
2397 dump_rectangle( &req->window );
2398 fprintf( stderr, "," );
2399 fprintf( stderr, " visible=" );
2400 dump_rectangle( &req->visible );
2401 fprintf( stderr, "," );
2402 fprintf( stderr, " client=" );
2403 dump_rectangle( &req->client );
2406 static void dump_get_window_text_request( const struct get_window_text_request *req )
2408 fprintf( stderr, " handle=%p", req->handle );
2411 static void dump_get_window_text_reply( const struct get_window_text_reply *req )
2413 fprintf( stderr, " text=" );
2414 dump_varargs_unicode_str( cur_size );
2417 static void dump_set_window_text_request( const struct set_window_text_request *req )
2419 fprintf( stderr, " handle=%p,", req->handle );
2420 fprintf( stderr, " text=" );
2421 dump_varargs_unicode_str( cur_size );
2424 static void dump_get_windows_offset_request( const struct get_windows_offset_request *req )
2426 fprintf( stderr, " from=%p,", req->from );
2427 fprintf( stderr, " to=%p", req->to );
2430 static void dump_get_windows_offset_reply( const struct get_windows_offset_reply *req )
2432 fprintf( stderr, " x=%d,", req->x );
2433 fprintf( stderr, " y=%d", req->y );
2436 static void dump_get_visible_region_request( const struct get_visible_region_request *req )
2438 fprintf( stderr, " window=%p,", req->window );
2439 fprintf( stderr, " flags=%08x", req->flags );
2442 static void dump_get_visible_region_reply( const struct get_visible_region_reply *req )
2444 fprintf( stderr, " top_win=%p,", req->top_win );
2445 fprintf( stderr, " top_org_x=%d,", req->top_org_x );
2446 fprintf( stderr, " top_org_y=%d,", req->top_org_y );
2447 fprintf( stderr, " win_org_x=%d,", req->win_org_x );
2448 fprintf( stderr, " win_org_y=%d,", req->win_org_y );
2449 fprintf( stderr, " total_size=%d,", req->total_size );
2450 fprintf( stderr, " region=" );
2451 dump_varargs_rectangles( cur_size );
2454 static void dump_get_window_region_request( const struct get_window_region_request *req )
2456 fprintf( stderr, " window=%p", req->window );
2459 static void dump_get_window_region_reply( const struct get_window_region_reply *req )
2461 fprintf( stderr, " total_size=%d,", req->total_size );
2462 fprintf( stderr, " region=" );
2463 dump_varargs_rectangles( cur_size );
2466 static void dump_set_window_region_request( const struct set_window_region_request *req )
2468 fprintf( stderr, " window=%p,", req->window );
2469 fprintf( stderr, " region=" );
2470 dump_varargs_rectangles( cur_size );
2473 static void dump_get_update_region_request( const struct get_update_region_request *req )
2475 fprintf( stderr, " window=%p,", req->window );
2476 fprintf( stderr, " from_child=%p,", req->from_child );
2477 fprintf( stderr, " flags=%08x", req->flags );
2480 static void dump_get_update_region_reply( const struct get_update_region_reply *req )
2482 fprintf( stderr, " child=%p,", req->child );
2483 fprintf( stderr, " flags=%08x,", req->flags );
2484 fprintf( stderr, " total_size=%d,", req->total_size );
2485 fprintf( stderr, " region=" );
2486 dump_varargs_rectangles( cur_size );
2489 static void dump_update_window_zorder_request( const struct update_window_zorder_request *req )
2491 fprintf( stderr, " window=%p,", req->window );
2492 fprintf( stderr, " rect=" );
2493 dump_rectangle( &req->rect );
2496 static void dump_redraw_window_request( const struct redraw_window_request *req )
2498 fprintf( stderr, " window=%p,", req->window );
2499 fprintf( stderr, " flags=%08x,", req->flags );
2500 fprintf( stderr, " region=" );
2501 dump_varargs_rectangles( cur_size );
2504 static void dump_set_window_property_request( const struct set_window_property_request *req )
2506 fprintf( stderr, " window=%p,", req->window );
2507 fprintf( stderr, " atom=%04x,", req->atom );
2508 fprintf( stderr, " handle=%p,", req->handle );
2509 fprintf( stderr, " name=" );
2510 dump_varargs_unicode_str( cur_size );
2513 static void dump_remove_window_property_request( const struct remove_window_property_request *req )
2515 fprintf( stderr, " window=%p,", req->window );
2516 fprintf( stderr, " atom=%04x,", req->atom );
2517 fprintf( stderr, " name=" );
2518 dump_varargs_unicode_str( cur_size );
2521 static void dump_remove_window_property_reply( const struct remove_window_property_reply *req )
2523 fprintf( stderr, " handle=%p", req->handle );
2526 static void dump_get_window_property_request( const struct get_window_property_request *req )
2528 fprintf( stderr, " window=%p,", req->window );
2529 fprintf( stderr, " atom=%04x,", req->atom );
2530 fprintf( stderr, " name=" );
2531 dump_varargs_unicode_str( cur_size );
2534 static void dump_get_window_property_reply( const struct get_window_property_reply *req )
2536 fprintf( stderr, " handle=%p", req->handle );
2539 static void dump_get_window_properties_request( const struct get_window_properties_request *req )
2541 fprintf( stderr, " window=%p", req->window );
2544 static void dump_get_window_properties_reply( const struct get_window_properties_reply *req )
2546 fprintf( stderr, " total=%d,", req->total );
2547 fprintf( stderr, " props=" );
2548 dump_varargs_properties( cur_size );
2551 static void dump_create_winstation_request( const struct create_winstation_request *req )
2553 fprintf( stderr, " flags=%08x,", req->flags );
2554 fprintf( stderr, " access=%08x,", req->access );
2555 fprintf( stderr, " attributes=%08x,", req->attributes );
2556 fprintf( stderr, " name=" );
2557 dump_varargs_unicode_str( cur_size );
2560 static void dump_create_winstation_reply( const struct create_winstation_reply *req )
2562 fprintf( stderr, " handle=%p", req->handle );
2565 static void dump_open_winstation_request( const struct open_winstation_request *req )
2567 fprintf( stderr, " access=%08x,", req->access );
2568 fprintf( stderr, " attributes=%08x,", req->attributes );
2569 fprintf( stderr, " name=" );
2570 dump_varargs_unicode_str( cur_size );
2573 static void dump_open_winstation_reply( const struct open_winstation_reply *req )
2575 fprintf( stderr, " handle=%p", req->handle );
2578 static void dump_close_winstation_request( const struct close_winstation_request *req )
2580 fprintf( stderr, " handle=%p", req->handle );
2583 static void dump_get_process_winstation_request( const struct get_process_winstation_request *req )
2587 static void dump_get_process_winstation_reply( const struct get_process_winstation_reply *req )
2589 fprintf( stderr, " handle=%p", req->handle );
2592 static void dump_set_process_winstation_request( const struct set_process_winstation_request *req )
2594 fprintf( stderr, " handle=%p", req->handle );
2597 static void dump_create_desktop_request( const struct create_desktop_request *req )
2599 fprintf( stderr, " flags=%08x,", req->flags );
2600 fprintf( stderr, " access=%08x,", req->access );
2601 fprintf( stderr, " attributes=%08x,", req->attributes );
2602 fprintf( stderr, " name=" );
2603 dump_varargs_unicode_str( cur_size );
2606 static void dump_create_desktop_reply( const struct create_desktop_reply *req )
2608 fprintf( stderr, " handle=%p", req->handle );
2611 static void dump_open_desktop_request( const struct open_desktop_request *req )
2613 fprintf( stderr, " flags=%08x,", req->flags );
2614 fprintf( stderr, " access=%08x,", req->access );
2615 fprintf( stderr, " attributes=%08x,", req->attributes );
2616 fprintf( stderr, " name=" );
2617 dump_varargs_unicode_str( cur_size );
2620 static void dump_open_desktop_reply( const struct open_desktop_reply *req )
2622 fprintf( stderr, " handle=%p", req->handle );
2625 static void dump_close_desktop_request( const struct close_desktop_request *req )
2627 fprintf( stderr, " handle=%p", req->handle );
2630 static void dump_get_thread_desktop_request( const struct get_thread_desktop_request *req )
2632 fprintf( stderr, " tid=%04x", req->tid );
2635 static void dump_get_thread_desktop_reply( const struct get_thread_desktop_reply *req )
2637 fprintf( stderr, " handle=%p", req->handle );
2640 static void dump_set_thread_desktop_request( const struct set_thread_desktop_request *req )
2642 fprintf( stderr, " handle=%p", req->handle );
2645 static void dump_set_user_object_info_request( const struct set_user_object_info_request *req )
2647 fprintf( stderr, " handle=%p,", req->handle );
2648 fprintf( stderr, " flags=%08x,", req->flags );
2649 fprintf( stderr, " obj_flags=%08x", req->obj_flags );
2652 static void dump_set_user_object_info_reply( const struct set_user_object_info_reply *req )
2654 fprintf( stderr, " is_desktop=%d,", req->is_desktop );
2655 fprintf( stderr, " old_obj_flags=%08x,", req->old_obj_flags );
2656 fprintf( stderr, " name=" );
2657 dump_varargs_unicode_str( cur_size );
2660 static void dump_attach_thread_input_request( const struct attach_thread_input_request *req )
2662 fprintf( stderr, " tid_from=%04x,", req->tid_from );
2663 fprintf( stderr, " tid_to=%04x,", req->tid_to );
2664 fprintf( stderr, " attach=%d", req->attach );
2667 static void dump_get_thread_input_request( const struct get_thread_input_request *req )
2669 fprintf( stderr, " tid=%04x", req->tid );
2672 static void dump_get_thread_input_reply( const struct get_thread_input_reply *req )
2674 fprintf( stderr, " focus=%p,", req->focus );
2675 fprintf( stderr, " capture=%p,", req->capture );
2676 fprintf( stderr, " active=%p,", req->active );
2677 fprintf( stderr, " foreground=%p,", req->foreground );
2678 fprintf( stderr, " menu_owner=%p,", req->menu_owner );
2679 fprintf( stderr, " move_size=%p,", req->move_size );
2680 fprintf( stderr, " caret=%p,", req->caret );
2681 fprintf( stderr, " rect=" );
2682 dump_rectangle( &req->rect );
2685 static void dump_get_last_input_time_request( const struct get_last_input_time_request *req )
2689 static void dump_get_last_input_time_reply( const struct get_last_input_time_reply *req )
2691 fprintf( stderr, " time=%08x", req->time );
2694 static void dump_get_key_state_request( const struct get_key_state_request *req )
2696 fprintf( stderr, " tid=%04x,", req->tid );
2697 fprintf( stderr, " key=%d", req->key );
2700 static void dump_get_key_state_reply( const struct get_key_state_reply *req )
2702 fprintf( stderr, " state=%02x,", req->state );
2703 fprintf( stderr, " keystate=" );
2704 dump_varargs_bytes( cur_size );
2707 static void dump_set_key_state_request( const struct set_key_state_request *req )
2709 fprintf( stderr, " tid=%04x,", req->tid );
2710 fprintf( stderr, " keystate=" );
2711 dump_varargs_bytes( cur_size );
2714 static void dump_set_foreground_window_request( const struct set_foreground_window_request *req )
2716 fprintf( stderr, " handle=%p", req->handle );
2719 static void dump_set_foreground_window_reply( const struct set_foreground_window_reply *req )
2721 fprintf( stderr, " previous=%p,", req->previous );
2722 fprintf( stderr, " send_msg_old=%d,", req->send_msg_old );
2723 fprintf( stderr, " send_msg_new=%d", req->send_msg_new );
2726 static void dump_set_focus_window_request( const struct set_focus_window_request *req )
2728 fprintf( stderr, " handle=%p", req->handle );
2731 static void dump_set_focus_window_reply( const struct set_focus_window_reply *req )
2733 fprintf( stderr, " previous=%p", req->previous );
2736 static void dump_set_active_window_request( const struct set_active_window_request *req )
2738 fprintf( stderr, " handle=%p", req->handle );
2741 static void dump_set_active_window_reply( const struct set_active_window_reply *req )
2743 fprintf( stderr, " previous=%p", req->previous );
2746 static void dump_set_capture_window_request( const struct set_capture_window_request *req )
2748 fprintf( stderr, " handle=%p,", req->handle );
2749 fprintf( stderr, " flags=%08x", req->flags );
2752 static void dump_set_capture_window_reply( const struct set_capture_window_reply *req )
2754 fprintf( stderr, " previous=%p,", req->previous );
2755 fprintf( stderr, " full_handle=%p", req->full_handle );
2758 static void dump_set_caret_window_request( const struct set_caret_window_request *req )
2760 fprintf( stderr, " handle=%p,", req->handle );
2761 fprintf( stderr, " width=%d,", req->width );
2762 fprintf( stderr, " height=%d", req->height );
2765 static void dump_set_caret_window_reply( const struct set_caret_window_reply *req )
2767 fprintf( stderr, " previous=%p,", req->previous );
2768 fprintf( stderr, " old_rect=" );
2769 dump_rectangle( &req->old_rect );
2770 fprintf( stderr, "," );
2771 fprintf( stderr, " old_hide=%d,", req->old_hide );
2772 fprintf( stderr, " old_state=%d", req->old_state );
2775 static void dump_set_caret_info_request( const struct set_caret_info_request *req )
2777 fprintf( stderr, " flags=%08x,", req->flags );
2778 fprintf( stderr, " handle=%p,", req->handle );
2779 fprintf( stderr, " x=%d,", req->x );
2780 fprintf( stderr, " y=%d,", req->y );
2781 fprintf( stderr, " hide=%d,", req->hide );
2782 fprintf( stderr, " state=%d", req->state );
2785 static void dump_set_caret_info_reply( const struct set_caret_info_reply *req )
2787 fprintf( stderr, " full_handle=%p,", req->full_handle );
2788 fprintf( stderr, " old_rect=" );
2789 dump_rectangle( &req->old_rect );
2790 fprintf( stderr, "," );
2791 fprintf( stderr, " old_hide=%d,", req->old_hide );
2792 fprintf( stderr, " old_state=%d", req->old_state );
2795 static void dump_set_hook_request( const struct set_hook_request *req )
2797 fprintf( stderr, " id=%d,", req->id );
2798 fprintf( stderr, " pid=%04x,", req->pid );
2799 fprintf( stderr, " tid=%04x,", req->tid );
2800 fprintf( stderr, " event_min=%d,", req->event_min );
2801 fprintf( stderr, " event_max=%d,", req->event_max );
2802 fprintf( stderr, " flags=%d,", req->flags );
2803 fprintf( stderr, " proc=%p,", req->proc );
2804 fprintf( stderr, " unicode=%d,", req->unicode );
2805 fprintf( stderr, " module=" );
2806 dump_varargs_unicode_str( cur_size );
2809 static void dump_set_hook_reply( const struct set_hook_reply *req )
2811 fprintf( stderr, " handle=%p,", req->handle );
2812 fprintf( stderr, " active_hooks=%08x", req->active_hooks );
2815 static void dump_remove_hook_request( const struct remove_hook_request *req )
2817 fprintf( stderr, " handle=%p,", req->handle );
2818 fprintf( stderr, " id=%d,", req->id );
2819 fprintf( stderr, " proc=%p", req->proc );
2822 static void dump_remove_hook_reply( const struct remove_hook_reply *req )
2824 fprintf( stderr, " active_hooks=%08x", req->active_hooks );
2827 static void dump_start_hook_chain_request( const struct start_hook_chain_request *req )
2829 fprintf( stderr, " id=%d,", req->id );
2830 fprintf( stderr, " event=%d,", req->event );
2831 fprintf( stderr, " window=%p,", req->window );
2832 fprintf( stderr, " object_id=%d,", req->object_id );
2833 fprintf( stderr, " child_id=%d", req->child_id );
2836 static void dump_start_hook_chain_reply( const struct start_hook_chain_reply *req )
2838 fprintf( stderr, " handle=%p,", req->handle );
2839 fprintf( stderr, " pid=%04x,", req->pid );
2840 fprintf( stderr, " tid=%04x,", req->tid );
2841 fprintf( stderr, " proc=%p,", req->proc );
2842 fprintf( stderr, " unicode=%d,", req->unicode );
2843 fprintf( stderr, " active_hooks=%08x,", req->active_hooks );
2844 fprintf( stderr, " module=" );
2845 dump_varargs_unicode_str( cur_size );
2848 static void dump_finish_hook_chain_request( const struct finish_hook_chain_request *req )
2850 fprintf( stderr, " id=%d", req->id );
2853 static void dump_get_next_hook_request( const struct get_next_hook_request *req )
2855 fprintf( stderr, " handle=%p,", req->handle );
2856 fprintf( stderr, " event=%d,", req->event );
2857 fprintf( stderr, " window=%p,", req->window );
2858 fprintf( stderr, " object_id=%d,", req->object_id );
2859 fprintf( stderr, " child_id=%d", req->child_id );
2862 static void dump_get_next_hook_reply( const struct get_next_hook_reply *req )
2864 fprintf( stderr, " next=%p,", req->next );
2865 fprintf( stderr, " id=%d,", req->id );
2866 fprintf( stderr, " pid=%04x,", req->pid );
2867 fprintf( stderr, " tid=%04x,", req->tid );
2868 fprintf( stderr, " proc=%p,", req->proc );
2869 fprintf( stderr, " prev_unicode=%d,", req->prev_unicode );
2870 fprintf( stderr, " next_unicode=%d,", req->next_unicode );
2871 fprintf( stderr, " module=" );
2872 dump_varargs_unicode_str( cur_size );
2875 static void dump_create_class_request( const struct create_class_request *req )
2877 fprintf( stderr, " local=%d,", req->local );
2878 fprintf( stderr, " atom=%04x,", req->atom );
2879 fprintf( stderr, " style=%08x,", req->style );
2880 fprintf( stderr, " instance=%p,", req->instance );
2881 fprintf( stderr, " extra=%d,", req->extra );
2882 fprintf( stderr, " win_extra=%d,", req->win_extra );
2883 fprintf( stderr, " client_ptr=%p", req->client_ptr );
2886 static void dump_destroy_class_request( const struct destroy_class_request *req )
2888 fprintf( stderr, " atom=%04x,", req->atom );
2889 fprintf( stderr, " instance=%p", req->instance );
2892 static void dump_destroy_class_reply( const struct destroy_class_reply *req )
2894 fprintf( stderr, " client_ptr=%p", req->client_ptr );
2897 static void dump_set_class_info_request( const struct set_class_info_request *req )
2899 fprintf( stderr, " window=%p,", req->window );
2900 fprintf( stderr, " flags=%08x,", req->flags );
2901 fprintf( stderr, " atom=%04x,", req->atom );
2902 fprintf( stderr, " style=%08x,", req->style );
2903 fprintf( stderr, " win_extra=%d,", req->win_extra );
2904 fprintf( stderr, " instance=%p,", req->instance );
2905 fprintf( stderr, " extra_offset=%d,", req->extra_offset );
2906 fprintf( stderr, " extra_size=%d,", req->extra_size );
2907 fprintf( stderr, " extra_value=%08x", req->extra_value );
2910 static void dump_set_class_info_reply( const struct set_class_info_reply *req )
2912 fprintf( stderr, " old_atom=%04x,", req->old_atom );
2913 fprintf( stderr, " old_style=%08x,", req->old_style );
2914 fprintf( stderr, " old_extra=%d,", req->old_extra );
2915 fprintf( stderr, " old_win_extra=%d,", req->old_win_extra );
2916 fprintf( stderr, " old_instance=%p,", req->old_instance );
2917 fprintf( stderr, " old_extra_value=%08x", req->old_extra_value );
2920 static void dump_set_clipboard_info_request( const struct set_clipboard_info_request *req )
2922 fprintf( stderr, " flags=%08x,", req->flags );
2923 fprintf( stderr, " clipboard=%p,", req->clipboard );
2924 fprintf( stderr, " owner=%p,", req->owner );
2925 fprintf( stderr, " viewer=%p,", req->viewer );
2926 fprintf( stderr, " seqno=%08x", req->seqno );
2929 static void dump_set_clipboard_info_reply( const struct set_clipboard_info_reply *req )
2931 fprintf( stderr, " flags=%08x,", req->flags );
2932 fprintf( stderr, " old_clipboard=%p,", req->old_clipboard );
2933 fprintf( stderr, " old_owner=%p,", req->old_owner );
2934 fprintf( stderr, " old_viewer=%p,", req->old_viewer );
2935 fprintf( stderr, " seqno=%08x", req->seqno );
2938 static void dump_open_token_request( const struct open_token_request *req )
2940 fprintf( stderr, " handle=%p,", req->handle );
2941 fprintf( stderr, " flags=%08x", req->flags );
2944 static void dump_open_token_reply( const struct open_token_reply *req )
2946 fprintf( stderr, " token=%p", req->token );
2949 static void dump_set_global_windows_request( const struct set_global_windows_request *req )
2951 fprintf( stderr, " flags=%08x,", req->flags );
2952 fprintf( stderr, " shell_window=%p,", req->shell_window );
2953 fprintf( stderr, " shell_listview=%p,", req->shell_listview );
2954 fprintf( stderr, " progman_window=%p,", req->progman_window );
2955 fprintf( stderr, " taskman_window=%p", req->taskman_window );
2958 static void dump_set_global_windows_reply( const struct set_global_windows_reply *req )
2960 fprintf( stderr, " old_shell_window=%p,", req->old_shell_window );
2961 fprintf( stderr, " old_shell_listview=%p,", req->old_shell_listview );
2962 fprintf( stderr, " old_progman_window=%p,", req->old_progman_window );
2963 fprintf( stderr, " old_taskman_window=%p", req->old_taskman_window );
2966 static void dump_adjust_token_privileges_request( const struct adjust_token_privileges_request *req )
2968 fprintf( stderr, " handle=%p,", req->handle );
2969 fprintf( stderr, " disable_all=%d,", req->disable_all );
2970 fprintf( stderr, " get_modified_state=%d,", req->get_modified_state );
2971 fprintf( stderr, " privileges=" );
2972 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
2975 static void dump_adjust_token_privileges_reply( const struct adjust_token_privileges_reply *req )
2977 fprintf( stderr, " len=%08x,", req->len );
2978 fprintf( stderr, " privileges=" );
2979 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
2982 static void dump_get_token_privileges_request( const struct get_token_privileges_request *req )
2984 fprintf( stderr, " handle=%p", req->handle );
2987 static void dump_get_token_privileges_reply( const struct get_token_privileges_reply *req )
2989 fprintf( stderr, " len=%08x,", req->len );
2990 fprintf( stderr, " privileges=" );
2991 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
2994 static void dump_check_token_privileges_request( const struct check_token_privileges_request *req )
2996 fprintf( stderr, " handle=%p,", req->handle );
2997 fprintf( stderr, " all_required=%d,", req->all_required );
2998 fprintf( stderr, " privileges=" );
2999 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
3002 static void dump_check_token_privileges_reply( const struct check_token_privileges_reply *req )
3004 fprintf( stderr, " has_privileges=%d,", req->has_privileges );
3005 fprintf( stderr, " privileges=" );
3006 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
3009 static void dump_duplicate_token_request( const struct duplicate_token_request *req )
3011 fprintf( stderr, " handle=%p,", req->handle );
3012 fprintf( stderr, " access=%08x,", req->access );
3013 fprintf( stderr, " inherit=%d,", req->inherit );
3014 fprintf( stderr, " primary=%d,", req->primary );
3015 fprintf( stderr, " impersonation_level=%d", req->impersonation_level );
3018 static void dump_duplicate_token_reply( const struct duplicate_token_reply *req )
3020 fprintf( stderr, " new_handle=%p", req->new_handle );
3023 static void dump_access_check_request( const struct access_check_request *req )
3025 fprintf( stderr, " handle=%p,", req->handle );
3026 fprintf( stderr, " desired_access=%08x,", req->desired_access );
3027 fprintf( stderr, " mapping_read=%08x,", req->mapping_read );
3028 fprintf( stderr, " mapping_write=%08x,", req->mapping_write );
3029 fprintf( stderr, " mapping_execute=%08x,", req->mapping_execute );
3030 fprintf( stderr, " mapping_all=%08x,", req->mapping_all );
3031 fprintf( stderr, " sd=" );
3032 dump_varargs_security_descriptor( cur_size );
3035 static void dump_access_check_reply( const struct access_check_reply *req )
3037 fprintf( stderr, " access_granted=%08x,", req->access_granted );
3038 fprintf( stderr, " access_status=%08x,", req->access_status );
3039 fprintf( stderr, " privileges_len=%08x,", req->privileges_len );
3040 fprintf( stderr, " privileges=" );
3041 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
3044 static void dump_get_token_user_request( const struct get_token_user_request *req )
3046 fprintf( stderr, " handle=%p", req->handle );
3049 static void dump_get_token_user_reply( const struct get_token_user_reply *req )
3051 fprintf( stderr, " user_len=%d,", req->user_len );
3052 fprintf( stderr, " user=" );
3053 dump_varargs_SID( cur_size );
3056 static void dump_create_mailslot_request( const struct create_mailslot_request *req )
3058 fprintf( stderr, " access=%08x,", req->access );
3059 fprintf( stderr, " attributes=%08x,", req->attributes );
3060 fprintf( stderr, " max_msgsize=%08x,", req->max_msgsize );
3061 fprintf( stderr, " read_timeout=%d,", req->read_timeout );
3062 fprintf( stderr, " name=" );
3063 dump_varargs_unicode_str( cur_size );
3066 static void dump_create_mailslot_reply( const struct create_mailslot_reply *req )
3068 fprintf( stderr, " handle=%p", req->handle );
3071 static void dump_open_mailslot_request( const struct open_mailslot_request *req )
3073 fprintf( stderr, " access=%08x,", req->access );
3074 fprintf( stderr, " attributes=%08x,", req->attributes );
3075 fprintf( stderr, " sharing=%08x,", req->sharing );
3076 fprintf( stderr, " name=" );
3077 dump_varargs_unicode_str( cur_size );
3080 static void dump_open_mailslot_reply( const struct open_mailslot_reply *req )
3082 fprintf( stderr, " handle=%p", req->handle );
3085 static void dump_set_mailslot_info_request( const struct set_mailslot_info_request *req )
3087 fprintf( stderr, " handle=%p,", req->handle );
3088 fprintf( stderr, " flags=%08x,", req->flags );
3089 fprintf( stderr, " read_timeout=%d", req->read_timeout );
3092 static void dump_set_mailslot_info_reply( const struct set_mailslot_info_reply *req )
3094 fprintf( stderr, " max_msgsize=%08x,", req->max_msgsize );
3095 fprintf( stderr, " read_timeout=%d,", req->read_timeout );
3096 fprintf( stderr, " msg_count=%08x,", req->msg_count );
3097 fprintf( stderr, " next_msgsize=%08x", req->next_msgsize );
3100 static void dump_create_directory_request( const struct create_directory_request *req )
3102 fprintf( stderr, " access=%08x,", req->access );
3103 fprintf( stderr, " attributes=%08x,", req->attributes );
3104 fprintf( stderr, " rootdir=%p,", req->rootdir );
3105 fprintf( stderr, " directory_name=" );
3106 dump_varargs_unicode_str( cur_size );
3109 static void dump_create_directory_reply( const struct create_directory_reply *req )
3111 fprintf( stderr, " handle=%p", req->handle );
3114 static void dump_open_directory_request( const struct open_directory_request *req )
3116 fprintf( stderr, " access=%08x,", req->access );
3117 fprintf( stderr, " attributes=%08x,", req->attributes );
3118 fprintf( stderr, " rootdir=%p,", req->rootdir );
3119 fprintf( stderr, " directory_name=" );
3120 dump_varargs_unicode_str( cur_size );
3123 static void dump_open_directory_reply( const struct open_directory_reply *req )
3125 fprintf( stderr, " handle=%p", req->handle );
3128 static void dump_create_symlink_request( const struct create_symlink_request *req )
3130 fprintf( stderr, " access=%08x,", req->access );
3131 fprintf( stderr, " attributes=%08x,", req->attributes );
3132 fprintf( stderr, " rootdir=%p,", req->rootdir );
3133 fprintf( stderr, " name_len=%d,", req->name_len );
3134 fprintf( stderr, " name=" );
3135 dump_varargs_unicode_str( min(cur_size,req->name_len) );
3136 fputc( ',', stderr );
3137 fprintf( stderr, " target_name=" );
3138 dump_varargs_unicode_str( cur_size );
3141 static void dump_create_symlink_reply( const struct create_symlink_reply *req )
3143 fprintf( stderr, " handle=%p", req->handle );
3146 static void dump_open_symlink_request( const struct open_symlink_request *req )
3148 fprintf( stderr, " access=%08x,", req->access );
3149 fprintf( stderr, " attributes=%08x,", req->attributes );
3150 fprintf( stderr, " rootdir=%p,", req->rootdir );
3151 fprintf( stderr, " name=" );
3152 dump_varargs_unicode_str( cur_size );
3155 static void dump_open_symlink_reply( const struct open_symlink_reply *req )
3157 fprintf( stderr, " handle=%p", req->handle );
3160 static void dump_query_symlink_request( const struct query_symlink_request *req )
3162 fprintf( stderr, " handle=%p", req->handle );
3165 static void dump_query_symlink_reply( const struct query_symlink_reply *req )
3167 fprintf( stderr, " target_name=" );
3168 dump_varargs_unicode_str( cur_size );
3171 static const dump_func req_dumpers[REQ_NB_REQUESTS] = {
3172 (dump_func)dump_new_process_request,
3173 (dump_func)dump_get_new_process_info_request,
3174 (dump_func)dump_new_thread_request,
3175 (dump_func)dump_get_startup_info_request,
3176 (dump_func)dump_init_process_done_request,
3177 (dump_func)dump_init_thread_request,
3178 (dump_func)dump_terminate_process_request,
3179 (dump_func)dump_terminate_thread_request,
3180 (dump_func)dump_get_process_info_request,
3181 (dump_func)dump_set_process_info_request,
3182 (dump_func)dump_get_thread_info_request,
3183 (dump_func)dump_set_thread_info_request,
3184 (dump_func)dump_get_dll_info_request,
3185 (dump_func)dump_suspend_thread_request,
3186 (dump_func)dump_resume_thread_request,
3187 (dump_func)dump_load_dll_request,
3188 (dump_func)dump_unload_dll_request,
3189 (dump_func)dump_queue_apc_request,
3190 (dump_func)dump_get_apc_request,
3191 (dump_func)dump_close_handle_request,
3192 (dump_func)dump_set_handle_info_request,
3193 (dump_func)dump_dup_handle_request,
3194 (dump_func)dump_open_process_request,
3195 (dump_func)dump_open_thread_request,
3196 (dump_func)dump_select_request,
3197 (dump_func)dump_create_event_request,
3198 (dump_func)dump_event_op_request,
3199 (dump_func)dump_open_event_request,
3200 (dump_func)dump_create_mutex_request,
3201 (dump_func)dump_release_mutex_request,
3202 (dump_func)dump_open_mutex_request,
3203 (dump_func)dump_create_semaphore_request,
3204 (dump_func)dump_release_semaphore_request,
3205 (dump_func)dump_open_semaphore_request,
3206 (dump_func)dump_create_file_request,
3207 (dump_func)dump_alloc_file_handle_request,
3208 (dump_func)dump_get_handle_fd_request,
3209 (dump_func)dump_set_handle_fd_request,
3210 (dump_func)dump_flush_file_request,
3211 (dump_func)dump_lock_file_request,
3212 (dump_func)dump_unlock_file_request,
3213 (dump_func)dump_unmount_device_request,
3214 (dump_func)dump_create_socket_request,
3215 (dump_func)dump_accept_socket_request,
3216 (dump_func)dump_set_socket_event_request,
3217 (dump_func)dump_get_socket_event_request,
3218 (dump_func)dump_enable_socket_event_request,
3219 (dump_func)dump_set_socket_deferred_request,
3220 (dump_func)dump_alloc_console_request,
3221 (dump_func)dump_free_console_request,
3222 (dump_func)dump_get_console_renderer_events_request,
3223 (dump_func)dump_open_console_request,
3224 (dump_func)dump_get_console_wait_event_request,
3225 (dump_func)dump_get_console_mode_request,
3226 (dump_func)dump_set_console_mode_request,
3227 (dump_func)dump_set_console_input_info_request,
3228 (dump_func)dump_get_console_input_info_request,
3229 (dump_func)dump_append_console_input_history_request,
3230 (dump_func)dump_get_console_input_history_request,
3231 (dump_func)dump_create_console_output_request,
3232 (dump_func)dump_set_console_output_info_request,
3233 (dump_func)dump_get_console_output_info_request,
3234 (dump_func)dump_write_console_input_request,
3235 (dump_func)dump_read_console_input_request,
3236 (dump_func)dump_write_console_output_request,
3237 (dump_func)dump_fill_console_output_request,
3238 (dump_func)dump_read_console_output_request,
3239 (dump_func)dump_move_console_output_request,
3240 (dump_func)dump_send_console_signal_request,
3241 (dump_func)dump_create_change_notification_request,
3242 (dump_func)dump_next_change_notification_request,
3243 (dump_func)dump_create_mapping_request,
3244 (dump_func)dump_open_mapping_request,
3245 (dump_func)dump_get_mapping_info_request,
3246 (dump_func)dump_create_snapshot_request,
3247 (dump_func)dump_next_process_request,
3248 (dump_func)dump_next_thread_request,
3249 (dump_func)dump_next_module_request,
3250 (dump_func)dump_wait_debug_event_request,
3251 (dump_func)dump_queue_exception_event_request,
3252 (dump_func)dump_get_exception_status_request,
3253 (dump_func)dump_output_debug_string_request,
3254 (dump_func)dump_continue_debug_event_request,
3255 (dump_func)dump_debug_process_request,
3256 (dump_func)dump_debug_break_request,
3257 (dump_func)dump_set_debugger_kill_on_exit_request,
3258 (dump_func)dump_read_process_memory_request,
3259 (dump_func)dump_write_process_memory_request,
3260 (dump_func)dump_create_key_request,
3261 (dump_func)dump_open_key_request,
3262 (dump_func)dump_delete_key_request,
3263 (dump_func)dump_flush_key_request,
3264 (dump_func)dump_enum_key_request,
3265 (dump_func)dump_set_key_value_request,
3266 (dump_func)dump_get_key_value_request,
3267 (dump_func)dump_enum_key_value_request,
3268 (dump_func)dump_delete_key_value_request,
3269 (dump_func)dump_load_registry_request,
3270 (dump_func)dump_unload_registry_request,
3271 (dump_func)dump_save_registry_request,
3272 (dump_func)dump_set_registry_notification_request,
3273 (dump_func)dump_create_timer_request,
3274 (dump_func)dump_open_timer_request,
3275 (dump_func)dump_set_timer_request,
3276 (dump_func)dump_cancel_timer_request,
3277 (dump_func)dump_get_timer_info_request,
3278 (dump_func)dump_get_thread_context_request,
3279 (dump_func)dump_set_thread_context_request,
3280 (dump_func)dump_get_selector_entry_request,
3281 (dump_func)dump_add_atom_request,
3282 (dump_func)dump_delete_atom_request,
3283 (dump_func)dump_find_atom_request,
3284 (dump_func)dump_get_atom_information_request,
3285 (dump_func)dump_set_atom_information_request,
3286 (dump_func)dump_empty_atom_table_request,
3287 (dump_func)dump_init_atom_table_request,
3288 (dump_func)dump_get_msg_queue_request,
3289 (dump_func)dump_set_queue_mask_request,
3290 (dump_func)dump_get_queue_status_request,
3291 (dump_func)dump_wait_input_idle_request,
3292 (dump_func)dump_send_message_request,
3293 (dump_func)dump_get_message_request,
3294 (dump_func)dump_reply_message_request,
3295 (dump_func)dump_accept_hardware_message_request,
3296 (dump_func)dump_get_message_reply_request,
3297 (dump_func)dump_set_win_timer_request,
3298 (dump_func)dump_kill_win_timer_request,
3299 (dump_func)dump_get_serial_info_request,
3300 (dump_func)dump_set_serial_info_request,
3301 (dump_func)dump_register_async_request,
3302 (dump_func)dump_cancel_async_request,
3303 (dump_func)dump_create_named_pipe_request,
3304 (dump_func)dump_open_named_pipe_request,
3305 (dump_func)dump_connect_named_pipe_request,
3306 (dump_func)dump_wait_named_pipe_request,
3307 (dump_func)dump_disconnect_named_pipe_request,
3308 (dump_func)dump_get_named_pipe_info_request,
3309 (dump_func)dump_create_window_request,
3310 (dump_func)dump_destroy_window_request,
3311 (dump_func)dump_get_desktop_window_request,
3312 (dump_func)dump_set_window_owner_request,
3313 (dump_func)dump_get_window_info_request,
3314 (dump_func)dump_set_window_info_request,
3315 (dump_func)dump_set_parent_request,
3316 (dump_func)dump_get_window_parents_request,
3317 (dump_func)dump_get_window_children_request,
3318 (dump_func)dump_get_window_children_from_point_request,
3319 (dump_func)dump_get_window_tree_request,
3320 (dump_func)dump_set_window_pos_request,
3321 (dump_func)dump_get_window_rectangles_request,
3322 (dump_func)dump_get_window_text_request,
3323 (dump_func)dump_set_window_text_request,
3324 (dump_func)dump_get_windows_offset_request,
3325 (dump_func)dump_get_visible_region_request,
3326 (dump_func)dump_get_window_region_request,
3327 (dump_func)dump_set_window_region_request,
3328 (dump_func)dump_get_update_region_request,
3329 (dump_func)dump_update_window_zorder_request,
3330 (dump_func)dump_redraw_window_request,
3331 (dump_func)dump_set_window_property_request,
3332 (dump_func)dump_remove_window_property_request,
3333 (dump_func)dump_get_window_property_request,
3334 (dump_func)dump_get_window_properties_request,
3335 (dump_func)dump_create_winstation_request,
3336 (dump_func)dump_open_winstation_request,
3337 (dump_func)dump_close_winstation_request,
3338 (dump_func)dump_get_process_winstation_request,
3339 (dump_func)dump_set_process_winstation_request,
3340 (dump_func)dump_create_desktop_request,
3341 (dump_func)dump_open_desktop_request,
3342 (dump_func)dump_close_desktop_request,
3343 (dump_func)dump_get_thread_desktop_request,
3344 (dump_func)dump_set_thread_desktop_request,
3345 (dump_func)dump_set_user_object_info_request,
3346 (dump_func)dump_attach_thread_input_request,
3347 (dump_func)dump_get_thread_input_request,
3348 (dump_func)dump_get_last_input_time_request,
3349 (dump_func)dump_get_key_state_request,
3350 (dump_func)dump_set_key_state_request,
3351 (dump_func)dump_set_foreground_window_request,
3352 (dump_func)dump_set_focus_window_request,
3353 (dump_func)dump_set_active_window_request,
3354 (dump_func)dump_set_capture_window_request,
3355 (dump_func)dump_set_caret_window_request,
3356 (dump_func)dump_set_caret_info_request,
3357 (dump_func)dump_set_hook_request,
3358 (dump_func)dump_remove_hook_request,
3359 (dump_func)dump_start_hook_chain_request,
3360 (dump_func)dump_finish_hook_chain_request,
3361 (dump_func)dump_get_next_hook_request,
3362 (dump_func)dump_create_class_request,
3363 (dump_func)dump_destroy_class_request,
3364 (dump_func)dump_set_class_info_request,
3365 (dump_func)dump_set_clipboard_info_request,
3366 (dump_func)dump_open_token_request,
3367 (dump_func)dump_set_global_windows_request,
3368 (dump_func)dump_adjust_token_privileges_request,
3369 (dump_func)dump_get_token_privileges_request,
3370 (dump_func)dump_check_token_privileges_request,
3371 (dump_func)dump_duplicate_token_request,
3372 (dump_func)dump_access_check_request,
3373 (dump_func)dump_get_token_user_request,
3374 (dump_func)dump_create_mailslot_request,
3375 (dump_func)dump_open_mailslot_request,
3376 (dump_func)dump_set_mailslot_info_request,
3377 (dump_func)dump_create_directory_request,
3378 (dump_func)dump_open_directory_request,
3379 (dump_func)dump_create_symlink_request,
3380 (dump_func)dump_open_symlink_request,
3381 (dump_func)dump_query_symlink_request,
3384 static const dump_func reply_dumpers[REQ_NB_REQUESTS] = {
3385 (dump_func)dump_new_process_reply,
3386 (dump_func)dump_get_new_process_info_reply,
3387 (dump_func)dump_new_thread_reply,
3388 (dump_func)dump_get_startup_info_reply,
3390 (dump_func)dump_init_thread_reply,
3391 (dump_func)dump_terminate_process_reply,
3392 (dump_func)dump_terminate_thread_reply,
3393 (dump_func)dump_get_process_info_reply,
3395 (dump_func)dump_get_thread_info_reply,
3397 (dump_func)dump_get_dll_info_reply,
3398 (dump_func)dump_suspend_thread_reply,
3399 (dump_func)dump_resume_thread_reply,
3403 (dump_func)dump_get_apc_reply,
3404 (dump_func)dump_close_handle_reply,
3405 (dump_func)dump_set_handle_info_reply,
3406 (dump_func)dump_dup_handle_reply,
3407 (dump_func)dump_open_process_reply,
3408 (dump_func)dump_open_thread_reply,
3410 (dump_func)dump_create_event_reply,
3412 (dump_func)dump_open_event_reply,
3413 (dump_func)dump_create_mutex_reply,
3414 (dump_func)dump_release_mutex_reply,
3415 (dump_func)dump_open_mutex_reply,
3416 (dump_func)dump_create_semaphore_reply,
3417 (dump_func)dump_release_semaphore_reply,
3418 (dump_func)dump_open_semaphore_reply,
3419 (dump_func)dump_create_file_reply,
3420 (dump_func)dump_alloc_file_handle_reply,
3421 (dump_func)dump_get_handle_fd_reply,
3422 (dump_func)dump_set_handle_fd_reply,
3423 (dump_func)dump_flush_file_reply,
3424 (dump_func)dump_lock_file_reply,
3427 (dump_func)dump_create_socket_reply,
3428 (dump_func)dump_accept_socket_reply,
3430 (dump_func)dump_get_socket_event_reply,
3433 (dump_func)dump_alloc_console_reply,
3435 (dump_func)dump_get_console_renderer_events_reply,
3436 (dump_func)dump_open_console_reply,
3437 (dump_func)dump_get_console_wait_event_reply,
3438 (dump_func)dump_get_console_mode_reply,
3441 (dump_func)dump_get_console_input_info_reply,
3443 (dump_func)dump_get_console_input_history_reply,
3444 (dump_func)dump_create_console_output_reply,
3446 (dump_func)dump_get_console_output_info_reply,
3447 (dump_func)dump_write_console_input_reply,
3448 (dump_func)dump_read_console_input_reply,
3449 (dump_func)dump_write_console_output_reply,
3450 (dump_func)dump_fill_console_output_reply,
3451 (dump_func)dump_read_console_output_reply,
3454 (dump_func)dump_create_change_notification_reply,
3456 (dump_func)dump_create_mapping_reply,
3457 (dump_func)dump_open_mapping_reply,
3458 (dump_func)dump_get_mapping_info_reply,
3459 (dump_func)dump_create_snapshot_reply,
3460 (dump_func)dump_next_process_reply,
3461 (dump_func)dump_next_thread_reply,
3462 (dump_func)dump_next_module_reply,
3463 (dump_func)dump_wait_debug_event_reply,
3464 (dump_func)dump_queue_exception_event_reply,
3465 (dump_func)dump_get_exception_status_reply,
3469 (dump_func)dump_debug_break_reply,
3471 (dump_func)dump_read_process_memory_reply,
3473 (dump_func)dump_create_key_reply,
3474 (dump_func)dump_open_key_reply,
3477 (dump_func)dump_enum_key_reply,
3479 (dump_func)dump_get_key_value_reply,
3480 (dump_func)dump_enum_key_value_reply,
3486 (dump_func)dump_create_timer_reply,
3487 (dump_func)dump_open_timer_reply,
3488 (dump_func)dump_set_timer_reply,
3489 (dump_func)dump_cancel_timer_reply,
3490 (dump_func)dump_get_timer_info_reply,
3491 (dump_func)dump_get_thread_context_reply,
3493 (dump_func)dump_get_selector_entry_reply,
3494 (dump_func)dump_add_atom_reply,
3496 (dump_func)dump_find_atom_reply,
3497 (dump_func)dump_get_atom_information_reply,
3500 (dump_func)dump_init_atom_table_reply,
3501 (dump_func)dump_get_msg_queue_reply,
3502 (dump_func)dump_set_queue_mask_reply,
3503 (dump_func)dump_get_queue_status_reply,
3504 (dump_func)dump_wait_input_idle_reply,
3506 (dump_func)dump_get_message_reply,
3509 (dump_func)dump_get_message_reply_reply,
3510 (dump_func)dump_set_win_timer_reply,
3512 (dump_func)dump_get_serial_info_reply,
3516 (dump_func)dump_create_named_pipe_reply,
3517 (dump_func)dump_open_named_pipe_reply,
3520 (dump_func)dump_disconnect_named_pipe_reply,
3521 (dump_func)dump_get_named_pipe_info_reply,
3522 (dump_func)dump_create_window_reply,
3524 (dump_func)dump_get_desktop_window_reply,
3525 (dump_func)dump_set_window_owner_reply,
3526 (dump_func)dump_get_window_info_reply,
3527 (dump_func)dump_set_window_info_reply,
3528 (dump_func)dump_set_parent_reply,
3529 (dump_func)dump_get_window_parents_reply,
3530 (dump_func)dump_get_window_children_reply,
3531 (dump_func)dump_get_window_children_from_point_reply,
3532 (dump_func)dump_get_window_tree_reply,
3533 (dump_func)dump_set_window_pos_reply,
3534 (dump_func)dump_get_window_rectangles_reply,
3535 (dump_func)dump_get_window_text_reply,
3537 (dump_func)dump_get_windows_offset_reply,
3538 (dump_func)dump_get_visible_region_reply,
3539 (dump_func)dump_get_window_region_reply,
3541 (dump_func)dump_get_update_region_reply,
3545 (dump_func)dump_remove_window_property_reply,
3546 (dump_func)dump_get_window_property_reply,
3547 (dump_func)dump_get_window_properties_reply,
3548 (dump_func)dump_create_winstation_reply,
3549 (dump_func)dump_open_winstation_reply,
3551 (dump_func)dump_get_process_winstation_reply,
3553 (dump_func)dump_create_desktop_reply,
3554 (dump_func)dump_open_desktop_reply,
3556 (dump_func)dump_get_thread_desktop_reply,
3558 (dump_func)dump_set_user_object_info_reply,
3560 (dump_func)dump_get_thread_input_reply,
3561 (dump_func)dump_get_last_input_time_reply,
3562 (dump_func)dump_get_key_state_reply,
3564 (dump_func)dump_set_foreground_window_reply,
3565 (dump_func)dump_set_focus_window_reply,
3566 (dump_func)dump_set_active_window_reply,
3567 (dump_func)dump_set_capture_window_reply,
3568 (dump_func)dump_set_caret_window_reply,
3569 (dump_func)dump_set_caret_info_reply,
3570 (dump_func)dump_set_hook_reply,
3571 (dump_func)dump_remove_hook_reply,
3572 (dump_func)dump_start_hook_chain_reply,
3574 (dump_func)dump_get_next_hook_reply,
3576 (dump_func)dump_destroy_class_reply,
3577 (dump_func)dump_set_class_info_reply,
3578 (dump_func)dump_set_clipboard_info_reply,
3579 (dump_func)dump_open_token_reply,
3580 (dump_func)dump_set_global_windows_reply,
3581 (dump_func)dump_adjust_token_privileges_reply,
3582 (dump_func)dump_get_token_privileges_reply,
3583 (dump_func)dump_check_token_privileges_reply,
3584 (dump_func)dump_duplicate_token_reply,
3585 (dump_func)dump_access_check_reply,
3586 (dump_func)dump_get_token_user_reply,
3587 (dump_func)dump_create_mailslot_reply,
3588 (dump_func)dump_open_mailslot_reply,
3589 (dump_func)dump_set_mailslot_info_reply,
3590 (dump_func)dump_create_directory_reply,
3591 (dump_func)dump_open_directory_reply,
3592 (dump_func)dump_create_symlink_reply,
3593 (dump_func)dump_open_symlink_reply,
3594 (dump_func)dump_query_symlink_reply,
3597 static const char * const req_names[REQ_NB_REQUESTS] = {
3599 "get_new_process_info",
3602 "init_process_done",
3604 "terminate_process",
3630 "release_semaphore",
3633 "alloc_file_handle",
3644 "enable_socket_event",
3645 "set_socket_deferred",
3648 "get_console_renderer_events",
3650 "get_console_wait_event",
3653 "set_console_input_info",
3654 "get_console_input_info",
3655 "append_console_input_history",
3656 "get_console_input_history",
3657 "create_console_output",
3658 "set_console_output_info",
3659 "get_console_output_info",
3660 "write_console_input",
3661 "read_console_input",
3662 "write_console_output",
3663 "fill_console_output",
3664 "read_console_output",
3665 "move_console_output",
3666 "send_console_signal",
3667 "create_change_notification",
3668 "next_change_notification",
3677 "queue_exception_event",
3678 "get_exception_status",
3679 "output_debug_string",
3680 "continue_debug_event",
3683 "set_debugger_kill_on_exit",
3684 "read_process_memory",
3685 "write_process_memory",
3698 "set_registry_notification",
3704 "get_thread_context",
3705 "set_thread_context",
3706 "get_selector_entry",
3710 "get_atom_information",
3711 "set_atom_information",
3721 "accept_hardware_message",
3722 "get_message_reply",
3729 "create_named_pipe",
3731 "connect_named_pipe",
3733 "disconnect_named_pipe",
3734 "get_named_pipe_info",
3737 "get_desktop_window",
3742 "get_window_parents",
3743 "get_window_children",
3744 "get_window_children_from_point",
3747 "get_window_rectangles",
3750 "get_windows_offset",
3751 "get_visible_region",
3752 "get_window_region",
3753 "set_window_region",
3754 "get_update_region",
3755 "update_window_zorder",
3757 "set_window_property",
3758 "remove_window_property",
3759 "get_window_property",
3760 "get_window_properties",
3761 "create_winstation",
3764 "get_process_winstation",
3765 "set_process_winstation",
3769 "get_thread_desktop",
3770 "set_thread_desktop",
3771 "set_user_object_info",
3772 "attach_thread_input",
3774 "get_last_input_time",
3777 "set_foreground_window",
3779 "set_active_window",
3780 "set_capture_window",
3786 "finish_hook_chain",
3791 "set_clipboard_info",
3793 "set_global_windows",
3794 "adjust_token_privileges",
3795 "get_token_privileges",
3796 "check_token_privileges",
3802 "set_mailslot_info",
3816 { "ACCESS_DENIED", STATUS_ACCESS_DENIED },
3817 { "ACCESS_VIOLATION", STATUS_ACCESS_VIOLATION },
3818 { "ALIAS_EXISTS", STATUS_ALIAS_EXISTS },
3819 { "BUFFER_OVERFLOW", STATUS_BUFFER_OVERFLOW },
3820 { "BUFFER_TOO_SMALL", STATUS_BUFFER_TOO_SMALL },
3821 { "CHILD_MUST_BE_VOLATILE", STATUS_CHILD_MUST_BE_VOLATILE },
3822 { "DEVICE_BUSY", STATUS_DEVICE_BUSY },
3823 { "DIRECTORY_NOT_EMPTY", STATUS_DIRECTORY_NOT_EMPTY },
3824 { "DISK_FULL", STATUS_DISK_FULL },
3825 { "DLL_NOT_FOUND", STATUS_DLL_NOT_FOUND },
3826 { "ERROR_CLASS_ALREADY_EXISTS", 0xc0010000 | ERROR_CLASS_ALREADY_EXISTS },
3827 { "ERROR_CLASS_DOES_NOT_EXIST", 0xc0010000 | ERROR_CLASS_DOES_NOT_EXIST },
3828 { "ERROR_CLASS_HAS_WINDOWS", 0xc0010000 | ERROR_CLASS_HAS_WINDOWS },
3829 { "ERROR_CLIPBOARD_NOT_OPEN", 0xc0010000 | ERROR_CLIPBOARD_NOT_OPEN },
3830 { "ERROR_INVALID_INDEX", 0xc0010000 | ERROR_INVALID_INDEX },
3831 { "ERROR_SEEK", 0xc0010000 | ERROR_SEEK },
3832 { "FILE_INVALID", STATUS_FILE_INVALID },
3833 { "FILE_IS_A_DIRECTORY", STATUS_FILE_IS_A_DIRECTORY },
3834 { "FILE_LOCK_CONFLICT", STATUS_FILE_LOCK_CONFLICT },
3835 { "HANDLE_NOT_CLOSABLE", STATUS_HANDLE_NOT_CLOSABLE },
3836 { "INSTANCE_NOT_AVAILABLE", STATUS_INSTANCE_NOT_AVAILABLE },
3837 { "INVALID_CID", STATUS_INVALID_CID },
3838 { "INVALID_FILE_FOR_SECTION", STATUS_INVALID_FILE_FOR_SECTION },
3839 { "INVALID_HANDLE", STATUS_INVALID_HANDLE },
3840 { "INVALID_PARAMETER", STATUS_INVALID_PARAMETER },
3841 { "IO_TIMEOUT", STATUS_IO_TIMEOUT },
3842 { "KEY_DELETED", STATUS_KEY_DELETED },
3843 { "MEDIA_WRITE_PROTECTED", STATUS_MEDIA_WRITE_PROTECTED },
3844 { "MUTANT_NOT_OWNED", STATUS_MUTANT_NOT_OWNED },
3845 { "NAME_TOO_LONG", STATUS_NAME_TOO_LONG },
3846 { "NOT_ALL_ASSIGNED", STATUS_NOT_ALL_ASSIGNED },
3847 { "NOT_A_DIRECTORY", STATUS_NOT_A_DIRECTORY },
3848 { "NOT_IMPLEMENTED", STATUS_NOT_IMPLEMENTED },
3849 { "NOT_REGISTRY_FILE", STATUS_NOT_REGISTRY_FILE },
3850 { "NO_DATA_DETECTED", STATUS_NO_DATA_DETECTED },
3851 { "NO_IMPERSONATION_TOKEN", STATUS_NO_IMPERSONATION_TOKEN },
3852 { "NO_MEMORY", STATUS_NO_MEMORY },
3853 { "NO_MORE_ENTRIES", STATUS_NO_MORE_ENTRIES },
3854 { "NO_MORE_FILES", STATUS_NO_MORE_FILES },
3855 { "NO_SUCH_DEVICE", STATUS_NO_SUCH_DEVICE },
3856 { "NO_SUCH_FILE", STATUS_NO_SUCH_FILE },
3857 { "NO_TOKEN", STATUS_NO_TOKEN },
3858 { "OBJECT_NAME_COLLISION", STATUS_OBJECT_NAME_COLLISION },
3859 { "OBJECT_NAME_EXISTS", STATUS_OBJECT_NAME_EXISTS },
3860 { "OBJECT_NAME_INVALID", STATUS_OBJECT_NAME_INVALID },
3861 { "OBJECT_NAME_NOT_FOUND", STATUS_OBJECT_NAME_NOT_FOUND },
3862 { "OBJECT_PATH_INVALID", STATUS_OBJECT_PATH_INVALID },
3863 { "OBJECT_PATH_NOT_FOUND", STATUS_OBJECT_PATH_NOT_FOUND },
3864 { "OBJECT_PATH_SYNTAX_BAD", STATUS_OBJECT_PATH_SYNTAX_BAD },
3865 { "OBJECT_TYPE_MISMATCH", STATUS_OBJECT_TYPE_MISMATCH },
3866 { "PENDING", STATUS_PENDING },
3867 { "PIPE_BUSY", STATUS_PIPE_BUSY },
3868 { "PIPE_CONNECTED", STATUS_PIPE_CONNECTED },
3869 { "PIPE_DISCONNECTED", STATUS_PIPE_DISCONNECTED },
3870 { "PIPE_LISTENING", STATUS_PIPE_LISTENING },
3871 { "PIPE_NOT_AVAILABLE", STATUS_PIPE_NOT_AVAILABLE },
3872 { "PRIVILEGE_NOT_HELD", STATUS_PRIVILEGE_NOT_HELD },
3873 { "SECTION_TOO_BIG", STATUS_SECTION_TOO_BIG },
3874 { "SEMAPHORE_LIMIT_EXCEEDED", STATUS_SEMAPHORE_LIMIT_EXCEEDED },
3875 { "SHARING_VIOLATION", STATUS_SHARING_VIOLATION },
3876 { "SUSPEND_COUNT_EXCEEDED", STATUS_SUSPEND_COUNT_EXCEEDED },
3877 { "TIMEOUT", STATUS_TIMEOUT },
3878 { "UNSUCCESSFUL", STATUS_UNSUCCESSFUL },
3879 { "VOLUME_DISMOUNTED", STATUS_VOLUME_DISMOUNTED },
3880 { "WAS_LOCKED", STATUS_WAS_LOCKED },
3884 /* ### make_requests end ### */
3885 /* Everything above this line is generated automatically by tools/make_requests */
3887 static const char *get_status_name( unsigned int status )
3890 static char buffer[10];
3894 for (i = 0; status_names[i].name; i++)
3895 if (status_names[i].value == status) return status_names[i].name;
3897 sprintf( buffer, "%x", status );
3901 void trace_request(void)
3903 enum request req = current->req.request_header.req;
3904 if (req < REQ_NB_REQUESTS)
3906 fprintf( stderr, "%04x: %s(", current->id, req_names[req] );
3907 if (req_dumpers[req])
3910 cur_data = get_req_data();
3911 cur_size = get_req_data_size();
3912 req_dumpers[req]( ¤t->req );
3914 fprintf( stderr, " )\n" );
3916 else fprintf( stderr, "%04x: %d(?)\n", current->id, req );
3919 void trace_reply( enum request req, const union generic_reply *reply )
3921 if (req < REQ_NB_REQUESTS)
3923 fprintf( stderr, "%04x: %s() = %s",
3924 current->id, req_names[req], get_status_name(current->error) );
3925 if (reply_dumpers[req])
3927 fprintf( stderr, " {" );
3929 cur_data = current->reply_data;
3930 cur_size = reply->reply_header.reply_size;
3931 reply_dumpers[req]( reply );
3932 fprintf( stderr, " }" );
3934 fputc( '\n', stderr );
3936 else fprintf( stderr, "%04x: %d() = %s\n",
3937 current->id, req, get_status_name(current->error) );