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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
22 #include "wine/port.h"
27 #include <sys/types.h>
34 #define WIN32_NO_STATUS
43 static const void *cur_data;
44 static data_size_t cur_size;
46 static const char *get_status_name( unsigned int status );
48 /* utility functions */
50 inline static void remove_data( data_size_t size )
52 cur_data = (const char *)cur_data + size;
56 static void dump_uints( const int *ptr, int len )
61 fprintf( stderr, "%08x", *ptr++ );
62 if (--len) fputc( ',', stderr );
67 static void dump_abs_time( const abs_time_t *time )
71 if (!time->sec && !time->usec)
73 fprintf( stderr, "0" );
76 secs = time->sec - current_time.tv_sec;
77 if ((usecs = time->usec - current_time.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_apc_call( const apc_call_t *call )
103 fputc( '{', stderr );
107 fprintf( stderr, "APC_NONE" );
110 fprintf( stderr, "APC_USER,args={%lx,%lx,%lx}",
111 call->user.args[0], call->user.args[1], call->user.args[2] );
114 fprintf( stderr, "APC_TIMER,time=" );
115 dump_abs_time( &call->timer.time );
116 fprintf( stderr, ",arg=%p", call->timer.arg );
119 fprintf( stderr, "APC_ASYNC_IO,user=%p,sb=%p,status=%s",
120 call->async_io.user, call->async_io.sb, get_status_name(call->async_io.status) );
122 case APC_VIRTUAL_ALLOC:
123 fprintf( stderr, "APC_VIRTUAL_ALLOC,addr=%p,size=%lu,zero_bits=%u,op_type=%x,prot=%x",
124 call->virtual_alloc.addr, call->virtual_alloc.size,
125 call->virtual_alloc.zero_bits, call->virtual_alloc.op_type,
126 call->virtual_alloc.prot );
128 case APC_VIRTUAL_FREE:
129 fprintf( stderr, "APC_VIRTUAL_FREE,addr=%p,size=%lu,op_type=%x",
130 call->virtual_free.addr, call->virtual_free.size,
131 call->virtual_free.op_type );
134 fprintf( stderr, "type=%u", call->type );
137 fputc( '}', stderr );
140 static void dump_apc_result( const apc_result_t *result )
142 fputc( '{', stderr );
147 case APC_VIRTUAL_ALLOC:
148 fprintf( stderr, "APC_VIRTUAL_ALLOC,status=%s,addr=%p,size=%lu",
149 get_status_name( result->virtual_alloc.status ),
150 result->virtual_alloc.addr, result->virtual_alloc.size );
152 case APC_VIRTUAL_FREE:
153 fprintf( stderr, "APC_VIRTUAL_FREE,status=%s,addr=%p,size=%lu",
154 get_status_name( result->virtual_free.status ),
155 result->virtual_free.addr, result->virtual_free.size );
158 fprintf( stderr, "type=%u", result->type );
161 fputc( '}', stderr );
164 static void dump_context( const CONTEXT *context )
167 fprintf( stderr, "{flags=%08x,eax=%08x,ebx=%08x,ecx=%08x,edx=%08x,esi=%08x,edi=%08x,"
168 "ebp=%08x,eip=%08x,esp=%08x,eflags=%08x,cs=%04x,ds=%04x,es=%04x,"
169 "fs=%04x,gs=%04x,dr0=%08x,dr1=%08x,dr2=%08x,dr3=%08x,dr6=%08x,dr7=%08x,",
170 context->ContextFlags, context->Eax, context->Ebx, context->Ecx, context->Edx,
171 context->Esi, context->Edi, context->Ebp, context->Eip, context->Esp, context->EFlags,
172 context->SegCs, context->SegDs, context->SegEs, context->SegFs, context->SegGs,
173 context->Dr0, context->Dr1, context->Dr2, context->Dr3, context->Dr6, context->Dr7 );
174 fprintf( stderr, "float=" );
175 dump_uints( (const int *)&context->FloatSave, sizeof(context->FloatSave) / sizeof(int) );
176 fprintf( stderr, "}" );
178 dump_uints( (const int *)context, sizeof(*context) / sizeof(int) );
182 static void dump_exc_record( const EXCEPTION_RECORD *rec )
185 fprintf( stderr, "{code=%x,flags=%x,rec=%p,addr=%p,params={",
186 rec->ExceptionCode, rec->ExceptionFlags, rec->ExceptionRecord,
187 rec->ExceptionAddress );
188 for (i = 0; i < min(rec->NumberParameters,EXCEPTION_MAXIMUM_PARAMETERS); i++)
190 if (i) fputc( ',', stderr );
191 fprintf( stderr, "%lx", rec->ExceptionInformation[i] );
193 fputc( '}', stderr );
196 static void dump_varargs_ints( data_size_t size )
198 const int *data = cur_data;
199 data_size_t len = size / sizeof(*data);
201 fputc( '{', stderr );
204 fprintf( stderr, "%d", *data++ );
205 if (--len) fputc( ',', stderr );
207 fputc( '}', stderr );
211 static void dump_varargs_handles( data_size_t size )
213 const obj_handle_t *data = cur_data;
214 data_size_t len = size / sizeof(*data);
216 fputc( '{', stderr );
219 fprintf( stderr, "%p", *data++ );
220 if (--len) fputc( ',', stderr );
222 fputc( '}', stderr );
226 static void dump_varargs_user_handles( data_size_t size )
228 const user_handle_t *data = cur_data;
229 data_size_t len = size / sizeof(*data);
231 fputc( '{', stderr );
234 fprintf( stderr, "%p", *data++ );
235 if (--len) fputc( ',', stderr );
237 fputc( '}', stderr );
241 static void dump_varargs_bytes( data_size_t size )
243 const unsigned char *data = cur_data;
244 data_size_t len = size;
246 fputc( '{', stderr );
249 fprintf( stderr, "%02x", *data++ );
250 if (--len) fputc( ',', stderr );
252 fputc( '}', stderr );
256 static void dump_varargs_string( data_size_t size )
258 fprintf( stderr, "\"%.*s\"", (int)size, (const char *)cur_data );
262 static void dump_varargs_unicode_str( data_size_t size )
264 fprintf( stderr, "L\"" );
265 dump_strW( cur_data, size / sizeof(WCHAR), stderr, "\"\"" );
266 fputc( '\"', stderr );
270 static void dump_varargs_context( data_size_t size )
274 fprintf( stderr, "{}" );
277 dump_context( cur_data );
281 static void dump_varargs_exc_event( data_size_t size )
283 const CONTEXT *ptr = cur_data;
287 fprintf( stderr, "{}" );
290 fprintf( stderr, "{context=" );
292 fprintf( stderr, ",rec=" );
293 dump_exc_record( (const EXCEPTION_RECORD *)(ptr + 1) );
294 fputc( '}', stderr );
298 static void dump_varargs_debug_event( data_size_t size )
300 const debug_event_t *event = cur_data;
304 fprintf( stderr, "{}" );
309 case EXCEPTION_DEBUG_EVENT:
310 fprintf( stderr, "{exception," );
311 dump_exc_record( &event->info.exception.record );
312 fprintf( stderr, ",first=%d}", event->info.exception.first );
314 case CREATE_THREAD_DEBUG_EVENT:
315 fprintf( stderr, "{create_thread,thread=%p,teb=%p,start=%p}",
316 event->info.create_thread.handle, event->info.create_thread.teb,
317 event->info.create_thread.start );
319 case CREATE_PROCESS_DEBUG_EVENT:
320 fprintf( stderr, "{create_process,file=%p,process=%p,thread=%p,base=%p,offset=%d,"
321 "size=%d,teb=%p,start=%p,name=%p,unicode=%d}",
322 event->info.create_process.file, event->info.create_process.process,
323 event->info.create_process.thread, event->info.create_process.base,
324 event->info.create_process.dbg_offset, event->info.create_process.dbg_size,
325 event->info.create_process.teb, event->info.create_process.start,
326 event->info.create_process.name, event->info.create_process.unicode );
328 case EXIT_THREAD_DEBUG_EVENT:
329 fprintf( stderr, "{exit_thread,code=%d}", event->info.exit.exit_code );
331 case EXIT_PROCESS_DEBUG_EVENT:
332 fprintf( stderr, "{exit_process,code=%d}", event->info.exit.exit_code );
334 case LOAD_DLL_DEBUG_EVENT:
335 fprintf( stderr, "{load_dll,file=%p,base=%p,offset=%d,size=%d,name=%p,unicode=%d}",
336 event->info.load_dll.handle, event->info.load_dll.base,
337 event->info.load_dll.dbg_offset, event->info.load_dll.dbg_size,
338 event->info.load_dll.name, event->info.load_dll.unicode );
340 case UNLOAD_DLL_DEBUG_EVENT:
341 fprintf( stderr, "{unload_dll,base=%p}", event->info.unload_dll.base );
343 case OUTPUT_DEBUG_STRING_EVENT:
344 fprintf( stderr, "{output_string,data=%p,unicode=%d,len=%d}",
345 event->info.output_string.string, event->info.output_string.unicode,
346 event->info.output_string.length );
349 fprintf( stderr, "{rip,err=%d,type=%d}",
350 event->info.rip_info.error, event->info.rip_info.type );
352 case 0: /* zero is the code returned on timeouts */
353 fprintf( stderr, "{}" );
356 fprintf( stderr, "{code=??? (%d)}", event->code );
362 /* dump a unicode string contained in a buffer; helper for dump_varargs_startup_info */
363 static void dump_inline_unicode_string( const UNICODE_STRING *str, const void *data, data_size_t size )
365 size_t length = str->Length;
366 size_t offset = (size_t)str->Buffer;
368 if (offset >= size) return;
369 if (offset + length > size) length = size - offset;
370 dump_strW( (const WCHAR *)data + offset/sizeof(WCHAR), length/sizeof(WCHAR), stderr, "\"\"" );
373 static void dump_varargs_startup_info( data_size_t size )
375 const RTL_USER_PROCESS_PARAMETERS *ptr = cur_data;
376 RTL_USER_PROCESS_PARAMETERS params;
378 if (size < sizeof(params.Size))
380 fprintf( stderr, "{}" );
383 if (size > ptr->Size) size = ptr->Size;
384 memset( ¶ms, 0, sizeof(params) );
385 memcpy( ¶ms, ptr, min( size, sizeof(params) ));
387 fprintf( stderr, "{AllocationSize=%x,", params.AllocationSize );
388 fprintf( stderr, "Size=%x,", params.Size );
389 fprintf( stderr, "Flags=%x,", params.Flags );
390 fprintf( stderr, "DebugFlags=%x,", params.DebugFlags );
391 fprintf( stderr, "ConsoleHandle=%p,", params.ConsoleHandle );
392 fprintf( stderr, "ConsoleFlags=%x,", params.ConsoleFlags );
393 fprintf( stderr, "hStdInput=%p,", params.hStdInput );
394 fprintf( stderr, "hStdOutput=%p,", params.hStdOutput );
395 fprintf( stderr, "hStdError=%p,", params.hStdError );
396 fprintf( stderr, "CurrentDirectory.Handle=%p,", params.CurrentDirectory.Handle );
397 fprintf( stderr, "dwX=%d,", params.dwX );
398 fprintf( stderr, "dwY=%d,", params.dwY );
399 fprintf( stderr, "dwXSize=%d,", params.dwXSize );
400 fprintf( stderr, "dwYSize=%d,", params.dwYSize );
401 fprintf( stderr, "dwXCountChars=%d,", params.dwXCountChars );
402 fprintf( stderr, "dwYCountChars=%d,", params.dwYCountChars );
403 fprintf( stderr, "dwFillAttribute=%x,", params.dwFillAttribute );
404 fprintf( stderr, "dwFlags=%x,", params.dwFlags );
405 fprintf( stderr, "wShowWindow=%x,", params.wShowWindow );
406 fprintf( stderr, "CurrentDirectory.DosPath=L\"" );
407 dump_inline_unicode_string( ¶ms.CurrentDirectory.DosPath, cur_data, size );
408 fprintf( stderr, "\",DllPath=L\"" );
409 dump_inline_unicode_string( ¶ms.DllPath, cur_data, size );
410 fprintf( stderr, "\",ImagePathName=L\"" );
411 dump_inline_unicode_string( ¶ms.ImagePathName, cur_data, size );
412 fprintf( stderr, "\",CommandLine=L\"" );
413 dump_inline_unicode_string( ¶ms.CommandLine, cur_data, size );
414 fprintf( stderr, "\",WindowTitle=L\"" );
415 dump_inline_unicode_string( ¶ms.WindowTitle, cur_data, size );
416 fprintf( stderr, "\",Desktop=L\"" );
417 dump_inline_unicode_string( ¶ms.Desktop, cur_data, size );
418 fprintf( stderr, "\",ShellInfo=L\"" );
419 dump_inline_unicode_string( ¶ms.ShellInfo, cur_data, size );
420 fprintf( stderr, "\",RuntimeInfo=L\"" );
421 dump_inline_unicode_string( ¶ms.RuntimeInfo, cur_data, size );
422 fprintf( stderr, "\"}" );
426 static void dump_varargs_input_records( data_size_t size )
428 const INPUT_RECORD *rec = cur_data;
429 data_size_t len = size / sizeof(*rec);
431 fputc( '{', stderr );
434 fprintf( stderr, "{%04x,...}", rec->EventType );
436 if (--len) fputc( ',', stderr );
438 fputc( '}', stderr );
442 static void dump_varargs_rectangles( data_size_t size )
444 const rectangle_t *rect = cur_data;
445 data_size_t len = size / sizeof(*rect);
447 fputc( '{', stderr );
450 dump_rectangle( rect++ );
451 if (--len) fputc( ',', stderr );
453 fputc( '}', stderr );
457 static void dump_varargs_message_data( data_size_t size )
459 /* FIXME: dump the structured data */
460 dump_varargs_bytes( size );
463 static void dump_varargs_properties( data_size_t size )
465 const property_data_t *prop = cur_data;
466 data_size_t len = size / sizeof(*prop);
468 fputc( '{', stderr );
471 fprintf( stderr, "{atom=%04x,str=%d,handle=%p}",
472 prop->atom, prop->string, prop->handle );
474 if (--len) fputc( ',', stderr );
476 fputc( '}', stderr );
480 static void dump_varargs_LUID_AND_ATTRIBUTES( data_size_t size )
482 const LUID_AND_ATTRIBUTES *lat = cur_data;
483 data_size_t len = size / sizeof(*lat);
485 fputc( '{', stderr );
488 fprintf( stderr, "{luid=%08x%08x,attr=%x}",
489 lat->Luid.HighPart, lat->Luid.LowPart, lat->Attributes );
491 if (--len) fputc( ',', stderr );
493 fputc( '}', stderr );
497 static void dump_inline_sid( const SID *sid, data_size_t size )
502 if ((FIELD_OFFSET(SID, SubAuthority[0]) > size) ||
503 (FIELD_OFFSET(SID, SubAuthority[sid->SubAuthorityCount]) > size))
505 fprintf( stderr, "<invalid sid>" );
509 fputc( '{', stderr );
510 fprintf( stderr, "S-%u-%u", sid->Revision, MAKELONG(
511 MAKEWORD( sid->IdentifierAuthority.Value[5],
512 sid->IdentifierAuthority.Value[4] ),
513 MAKEWORD( sid->IdentifierAuthority.Value[3],
514 sid->IdentifierAuthority.Value[2] ) ) );
515 for (i = 0; i < sid->SubAuthorityCount; i++)
516 fprintf( stderr, "-%u", sid->SubAuthority[i] );
517 fputc( '}', stderr );
520 static void dump_varargs_SID( data_size_t size )
522 const SID *sid = cur_data;
523 dump_inline_sid( sid, size );
527 static void dump_inline_acl( const ACL *acl, data_size_t size )
529 const ACE_HEADER *ace;
531 fputc( '{', stderr );
535 if (size < sizeof(ACL))
537 fprintf( stderr, "<invalid acl>}\n" );
541 ace = (const ACE_HEADER *)(acl + 1);
542 for (i = 0; i < acl->AceCount; i++)
544 const SID *sid = NULL;
545 data_size_t sid_size = 0;
547 if (size < sizeof(ACE_HEADER))
549 if (size < ace->AceSize)
551 size -= ace->AceSize;
552 if (i != 0) fputc( ',', stderr );
553 fprintf( stderr, "{AceType=" );
554 switch (ace->AceType)
556 case ACCESS_DENIED_ACE_TYPE:
557 sid = (const SID *)&((const ACCESS_DENIED_ACE *)ace)->SidStart;
558 sid_size = ace->AceSize - FIELD_OFFSET(ACCESS_DENIED_ACE, SidStart);
559 fprintf( stderr, "ACCESS_DENIED_ACE_TYPE,Mask=%x",
560 ((const ACCESS_DENIED_ACE *)ace)->Mask );
562 case ACCESS_ALLOWED_ACE_TYPE:
563 sid = (const SID *)&((const ACCESS_ALLOWED_ACE *)ace)->SidStart;
564 sid_size = ace->AceSize - FIELD_OFFSET(ACCESS_ALLOWED_ACE, SidStart);
565 fprintf( stderr, "ACCESS_ALLOWED_ACE_TYPE,Mask=%x",
566 ((const ACCESS_ALLOWED_ACE *)ace)->Mask );
568 case SYSTEM_AUDIT_ACE_TYPE:
569 sid = (const SID *)&((const SYSTEM_AUDIT_ACE *)ace)->SidStart;
570 sid_size = ace->AceSize - FIELD_OFFSET(SYSTEM_AUDIT_ACE, SidStart);
571 fprintf( stderr, "SYSTEM_AUDIT_ACE_TYPE,Mask=%x",
572 ((const SYSTEM_AUDIT_ACE *)ace)->Mask );
574 case SYSTEM_ALARM_ACE_TYPE:
575 sid = (const SID *)&((const SYSTEM_ALARM_ACE *)ace)->SidStart;
576 sid_size = ace->AceSize - FIELD_OFFSET(SYSTEM_ALARM_ACE, SidStart);
577 fprintf( stderr, "SYSTEM_ALARM_ACE_TYPE,Mask=%x",
578 ((const SYSTEM_ALARM_ACE *)ace)->Mask );
581 fprintf( stderr, "unknown<%d>", ace->AceType );
584 fprintf( stderr, ",AceFlags=%x,Sid=", ace->AceFlags );
586 dump_inline_sid( sid, sid_size );
587 ace = (const ACE_HEADER *)((const char *)ace + ace->AceSize);
588 fputc( '}', stderr );
591 fputc( '}', stderr );
594 static void dump_inline_security_descriptor( const struct security_descriptor *sd, data_size_t size )
596 fputc( '{', stderr );
597 if (size >= sizeof(struct security_descriptor))
599 size_t offset = sizeof(struct security_descriptor);
600 fprintf( stderr, "control=%08x", sd->control );
601 fprintf( stderr, ",owner=" );
602 if ((sd->owner_len > FIELD_OFFSET(SID, SubAuthority[255])) || (offset + sd->owner_len > size))
604 dump_inline_sid( (const SID *)((const char *)sd + offset), sd->owner_len );
605 offset += sd->owner_len;
606 fprintf( stderr, ",group=" );
607 if ((sd->group_len > FIELD_OFFSET(SID, SubAuthority[255])) || (offset + sd->group_len > size))
609 dump_inline_sid( (const SID *)((const char *)sd + offset), sd->group_len );
610 offset += sd->group_len;
611 fprintf( stderr, ",sacl=" );
612 if ((sd->sacl_len >= MAX_ACL_LEN) || (offset + sd->sacl_len > size))
614 dump_inline_acl( (const ACL *)((const char *)sd + offset), sd->sacl_len );
615 offset += sd->sacl_len;
616 fprintf( stderr, ",dacl=" );
617 if ((sd->dacl_len >= MAX_ACL_LEN) || (offset + sd->dacl_len > size))
619 dump_inline_acl( (const ACL *)((const char *)sd + offset), sd->dacl_len );
620 offset += sd->dacl_len;
622 fputc( '}', stderr );
625 static void dump_varargs_security_descriptor( data_size_t size )
627 const struct security_descriptor *sd = cur_data;
628 dump_inline_security_descriptor( sd, size );
632 static void dump_varargs_token_groups( data_size_t size )
634 const struct token_groups *tg = cur_data;
635 fputc( '{', stderr );
636 if (size >= sizeof(struct token_groups))
638 size_t offset = sizeof(*tg);
639 fprintf( stderr, "count=%08x,", tg->count );
640 if (tg->count * sizeof(unsigned int) <= size)
643 const unsigned int *attr = (const unsigned int *)(tg + 1);
645 offset += tg->count * sizeof(unsigned int);
647 fputc( '[', stderr );
648 for (i = 0; i < tg->count; i++)
650 const SID *sid = (const SID *)((const char *)cur_data + offset);
652 fputc( ',', stderr );
653 fputc( '{', stderr );
654 fprintf( stderr, "attributes=%08x", attr[i] );
655 fprintf( stderr, ",sid=" );
656 dump_inline_sid( sid, size - offset );
657 if ((offset + FIELD_OFFSET(SID, SubAuthority[0]) > size) ||
658 (offset + FIELD_OFFSET(SID, SubAuthority[sid->SubAuthorityCount]) > size))
660 offset += FIELD_OFFSET(SID, SubAuthority[sid->SubAuthorityCount]);
661 fputc( '}', stderr );
663 fputc( ']', stderr );
666 fputc( '}', stderr );
669 typedef void (*dump_func)( const void *req );
671 /* Everything below this line is generated automatically by tools/make_requests */
672 /* ### make_requests begin ### */
674 static void dump_new_process_request( const struct new_process_request *req )
676 fprintf( stderr, " inherit_all=%d,", req->inherit_all );
677 fprintf( stderr, " create_flags=%08x,", req->create_flags );
678 fprintf( stderr, " socket_fd=%d,", req->socket_fd );
679 fprintf( stderr, " exe_file=%p,", req->exe_file );
680 fprintf( stderr, " hstdin=%p,", req->hstdin );
681 fprintf( stderr, " hstdout=%p,", req->hstdout );
682 fprintf( stderr, " hstderr=%p,", req->hstderr );
683 fprintf( stderr, " process_access=%08x,", req->process_access );
684 fprintf( stderr, " process_attr=%08x,", req->process_attr );
685 fprintf( stderr, " thread_access=%08x,", req->thread_access );
686 fprintf( stderr, " thread_attr=%08x,", req->thread_attr );
687 fprintf( stderr, " info=" );
688 dump_varargs_startup_info( cur_size );
689 fputc( ',', stderr );
690 fprintf( stderr, " env=" );
691 dump_varargs_unicode_str( cur_size );
694 static void dump_new_process_reply( const struct new_process_reply *req )
696 fprintf( stderr, " info=%p,", req->info );
697 fprintf( stderr, " pid=%04x,", req->pid );
698 fprintf( stderr, " phandle=%p,", req->phandle );
699 fprintf( stderr, " tid=%04x,", req->tid );
700 fprintf( stderr, " thandle=%p", req->thandle );
703 static void dump_get_new_process_info_request( const struct get_new_process_info_request *req )
705 fprintf( stderr, " info=%p", req->info );
708 static void dump_get_new_process_info_reply( const struct get_new_process_info_reply *req )
710 fprintf( stderr, " success=%d,", req->success );
711 fprintf( stderr, " exit_code=%d", req->exit_code );
714 static void dump_new_thread_request( const struct new_thread_request *req )
716 fprintf( stderr, " access=%08x,", req->access );
717 fprintf( stderr, " attributes=%08x,", req->attributes );
718 fprintf( stderr, " suspend=%d,", req->suspend );
719 fprintf( stderr, " request_fd=%d", req->request_fd );
722 static void dump_new_thread_reply( const struct new_thread_reply *req )
724 fprintf( stderr, " tid=%04x,", req->tid );
725 fprintf( stderr, " handle=%p", req->handle );
728 static void dump_get_startup_info_request( const struct get_startup_info_request *req )
732 static void dump_get_startup_info_reply( const struct get_startup_info_reply *req )
734 fprintf( stderr, " exe_file=%p,", req->exe_file );
735 fprintf( stderr, " hstdin=%p,", req->hstdin );
736 fprintf( stderr, " hstdout=%p,", req->hstdout );
737 fprintf( stderr, " hstderr=%p,", req->hstderr );
738 fprintf( stderr, " info=" );
739 dump_varargs_startup_info( cur_size );
740 fputc( ',', stderr );
741 fprintf( stderr, " env=" );
742 dump_varargs_unicode_str( cur_size );
745 static void dump_init_process_done_request( const struct init_process_done_request *req )
747 fprintf( stderr, " module=%p,", req->module );
748 fprintf( stderr, " entry=%p,", req->entry );
749 fprintf( stderr, " gui=%d", req->gui );
752 static void dump_init_thread_request( const struct init_thread_request *req )
754 fprintf( stderr, " unix_pid=%d,", req->unix_pid );
755 fprintf( stderr, " unix_tid=%d,", req->unix_tid );
756 fprintf( stderr, " debug_level=%d,", req->debug_level );
757 fprintf( stderr, " teb=%p,", req->teb );
758 fprintf( stderr, " peb=%p,", req->peb );
759 fprintf( stderr, " entry=%p,", req->entry );
760 fprintf( stderr, " ldt_copy=%p,", req->ldt_copy );
761 fprintf( stderr, " reply_fd=%d,", req->reply_fd );
762 fprintf( stderr, " wait_fd=%d", req->wait_fd );
765 static void dump_init_thread_reply( const struct init_thread_reply *req )
767 fprintf( stderr, " pid=%04x,", req->pid );
768 fprintf( stderr, " tid=%04x,", req->tid );
769 fprintf( stderr, " info_size=%u,", req->info_size );
770 fprintf( stderr, " server_start=" );
771 dump_abs_time( &req->server_start );
772 fprintf( stderr, "," );
773 fprintf( stderr, " version=%d", req->version );
776 static void dump_terminate_process_request( const struct terminate_process_request *req )
778 fprintf( stderr, " handle=%p,", req->handle );
779 fprintf( stderr, " exit_code=%d", req->exit_code );
782 static void dump_terminate_process_reply( const struct terminate_process_reply *req )
784 fprintf( stderr, " self=%d", req->self );
787 static void dump_terminate_thread_request( const struct terminate_thread_request *req )
789 fprintf( stderr, " handle=%p,", req->handle );
790 fprintf( stderr, " exit_code=%d", req->exit_code );
793 static void dump_terminate_thread_reply( const struct terminate_thread_reply *req )
795 fprintf( stderr, " self=%d,", req->self );
796 fprintf( stderr, " last=%d", req->last );
799 static void dump_get_process_info_request( const struct get_process_info_request *req )
801 fprintf( stderr, " handle=%p", req->handle );
804 static void dump_get_process_info_reply( const struct get_process_info_reply *req )
806 fprintf( stderr, " pid=%04x,", req->pid );
807 fprintf( stderr, " ppid=%04x,", req->ppid );
808 fprintf( stderr, " exit_code=%d,", req->exit_code );
809 fprintf( stderr, " priority=%d,", req->priority );
810 fprintf( stderr, " affinity=%d,", req->affinity );
811 fprintf( stderr, " peb=%p,", req->peb );
812 fprintf( stderr, " start_time=" );
813 dump_abs_time( &req->start_time );
814 fprintf( stderr, "," );
815 fprintf( stderr, " end_time=" );
816 dump_abs_time( &req->end_time );
819 static void dump_set_process_info_request( const struct set_process_info_request *req )
821 fprintf( stderr, " handle=%p,", req->handle );
822 fprintf( stderr, " mask=%d,", req->mask );
823 fprintf( stderr, " priority=%d,", req->priority );
824 fprintf( stderr, " affinity=%d", req->affinity );
827 static void dump_get_thread_info_request( const struct get_thread_info_request *req )
829 fprintf( stderr, " handle=%p,", req->handle );
830 fprintf( stderr, " tid_in=%04x", req->tid_in );
833 static void dump_get_thread_info_reply( const struct get_thread_info_reply *req )
835 fprintf( stderr, " pid=%04x,", req->pid );
836 fprintf( stderr, " tid=%04x,", req->tid );
837 fprintf( stderr, " teb=%p,", req->teb );
838 fprintf( stderr, " exit_code=%d,", req->exit_code );
839 fprintf( stderr, " priority=%d,", req->priority );
840 fprintf( stderr, " affinity=%d,", req->affinity );
841 fprintf( stderr, " creation_time=" );
842 dump_abs_time( &req->creation_time );
843 fprintf( stderr, "," );
844 fprintf( stderr, " exit_time=" );
845 dump_abs_time( &req->exit_time );
846 fprintf( stderr, "," );
847 fprintf( stderr, " last=%d", req->last );
850 static void dump_set_thread_info_request( const struct set_thread_info_request *req )
852 fprintf( stderr, " handle=%p,", req->handle );
853 fprintf( stderr, " mask=%d,", req->mask );
854 fprintf( stderr, " priority=%d,", req->priority );
855 fprintf( stderr, " affinity=%d,", req->affinity );
856 fprintf( stderr, " token=%p", req->token );
859 static void dump_get_dll_info_request( const struct get_dll_info_request *req )
861 fprintf( stderr, " handle=%p,", req->handle );
862 fprintf( stderr, " base_address=%p", req->base_address );
865 static void dump_get_dll_info_reply( const struct get_dll_info_reply *req )
867 fprintf( stderr, " size=%lu,", (unsigned long)req->size );
868 fprintf( stderr, " entry_point=%p,", req->entry_point );
869 fprintf( stderr, " filename=" );
870 dump_varargs_unicode_str( cur_size );
873 static void dump_suspend_thread_request( const struct suspend_thread_request *req )
875 fprintf( stderr, " handle=%p", req->handle );
878 static void dump_suspend_thread_reply( const struct suspend_thread_reply *req )
880 fprintf( stderr, " count=%d", req->count );
883 static void dump_resume_thread_request( const struct resume_thread_request *req )
885 fprintf( stderr, " handle=%p", req->handle );
888 static void dump_resume_thread_reply( const struct resume_thread_reply *req )
890 fprintf( stderr, " count=%d", req->count );
893 static void dump_load_dll_request( const struct load_dll_request *req )
895 fprintf( stderr, " handle=%p,", req->handle );
896 fprintf( stderr, " base=%p,", req->base );
897 fprintf( stderr, " size=%lu,", (unsigned long)req->size );
898 fprintf( stderr, " dbg_offset=%d,", req->dbg_offset );
899 fprintf( stderr, " dbg_size=%d,", req->dbg_size );
900 fprintf( stderr, " name=%p,", req->name );
901 fprintf( stderr, " filename=" );
902 dump_varargs_unicode_str( cur_size );
905 static void dump_unload_dll_request( const struct unload_dll_request *req )
907 fprintf( stderr, " base=%p", req->base );
910 static void dump_queue_apc_request( const struct queue_apc_request *req )
912 fprintf( stderr, " thread=%p,", req->thread );
913 fprintf( stderr, " process=%p,", req->process );
914 fprintf( stderr, " call=" );
915 dump_apc_call( &req->call );
918 static void dump_queue_apc_reply( const struct queue_apc_reply *req )
920 fprintf( stderr, " handle=%p", req->handle );
923 static void dump_get_apc_request( const struct get_apc_request *req )
925 fprintf( stderr, " alertable=%d,", req->alertable );
926 fprintf( stderr, " prev=%p,", req->prev );
927 fprintf( stderr, " result=" );
928 dump_apc_result( &req->result );
931 static void dump_get_apc_reply( const struct get_apc_reply *req )
933 fprintf( stderr, " handle=%p,", req->handle );
934 fprintf( stderr, " call=" );
935 dump_apc_call( &req->call );
938 static void dump_get_apc_result_request( const struct get_apc_result_request *req )
940 fprintf( stderr, " handle=%p", req->handle );
943 static void dump_get_apc_result_reply( const struct get_apc_result_reply *req )
945 fprintf( stderr, " result=" );
946 dump_apc_result( &req->result );
949 static void dump_close_handle_request( const struct close_handle_request *req )
951 fprintf( stderr, " handle=%p", req->handle );
954 static void dump_set_handle_info_request( const struct set_handle_info_request *req )
956 fprintf( stderr, " handle=%p,", req->handle );
957 fprintf( stderr, " flags=%d,", req->flags );
958 fprintf( stderr, " mask=%d", req->mask );
961 static void dump_set_handle_info_reply( const struct set_handle_info_reply *req )
963 fprintf( stderr, " old_flags=%d", req->old_flags );
966 static void dump_dup_handle_request( const struct dup_handle_request *req )
968 fprintf( stderr, " src_process=%p,", req->src_process );
969 fprintf( stderr, " src_handle=%p,", req->src_handle );
970 fprintf( stderr, " dst_process=%p,", req->dst_process );
971 fprintf( stderr, " access=%08x,", req->access );
972 fprintf( stderr, " attributes=%08x,", req->attributes );
973 fprintf( stderr, " options=%08x", req->options );
976 static void dump_dup_handle_reply( const struct dup_handle_reply *req )
978 fprintf( stderr, " handle=%p,", req->handle );
979 fprintf( stderr, " closed=%d", req->closed );
982 static void dump_open_process_request( const struct open_process_request *req )
984 fprintf( stderr, " pid=%04x,", req->pid );
985 fprintf( stderr, " access=%08x,", req->access );
986 fprintf( stderr, " attributes=%08x", req->attributes );
989 static void dump_open_process_reply( const struct open_process_reply *req )
991 fprintf( stderr, " handle=%p", req->handle );
994 static void dump_open_thread_request( const struct open_thread_request *req )
996 fprintf( stderr, " tid=%04x,", req->tid );
997 fprintf( stderr, " access=%08x,", req->access );
998 fprintf( stderr, " attributes=%08x", req->attributes );
1001 static void dump_open_thread_reply( const struct open_thread_reply *req )
1003 fprintf( stderr, " handle=%p", req->handle );
1006 static void dump_select_request( const struct select_request *req )
1008 fprintf( stderr, " flags=%d,", req->flags );
1009 fprintf( stderr, " cookie=%p,", req->cookie );
1010 fprintf( stderr, " signal=%p,", req->signal );
1011 fprintf( stderr, " timeout=" );
1012 dump_abs_time( &req->timeout );
1013 fprintf( stderr, "," );
1014 fprintf( stderr, " handles=" );
1015 dump_varargs_handles( cur_size );
1018 static void dump_create_event_request( const struct create_event_request *req )
1020 fprintf( stderr, " access=%08x,", req->access );
1021 fprintf( stderr, " attributes=%08x,", req->attributes );
1022 fprintf( stderr, " rootdir=%p,", req->rootdir );
1023 fprintf( stderr, " manual_reset=%d,", req->manual_reset );
1024 fprintf( stderr, " initial_state=%d,", req->initial_state );
1025 fprintf( stderr, " name=" );
1026 dump_varargs_unicode_str( cur_size );
1029 static void dump_create_event_reply( const struct create_event_reply *req )
1031 fprintf( stderr, " handle=%p", req->handle );
1034 static void dump_event_op_request( const struct event_op_request *req )
1036 fprintf( stderr, " handle=%p,", req->handle );
1037 fprintf( stderr, " op=%d", req->op );
1040 static void dump_open_event_request( const struct open_event_request *req )
1042 fprintf( stderr, " access=%08x,", req->access );
1043 fprintf( stderr, " attributes=%08x,", req->attributes );
1044 fprintf( stderr, " rootdir=%p,", req->rootdir );
1045 fprintf( stderr, " name=" );
1046 dump_varargs_unicode_str( cur_size );
1049 static void dump_open_event_reply( const struct open_event_reply *req )
1051 fprintf( stderr, " handle=%p", req->handle );
1054 static void dump_create_mutex_request( const struct create_mutex_request *req )
1056 fprintf( stderr, " access=%08x,", req->access );
1057 fprintf( stderr, " attributes=%08x,", req->attributes );
1058 fprintf( stderr, " rootdir=%p,", req->rootdir );
1059 fprintf( stderr, " owned=%d,", req->owned );
1060 fprintf( stderr, " name=" );
1061 dump_varargs_unicode_str( cur_size );
1064 static void dump_create_mutex_reply( const struct create_mutex_reply *req )
1066 fprintf( stderr, " handle=%p", req->handle );
1069 static void dump_release_mutex_request( const struct release_mutex_request *req )
1071 fprintf( stderr, " handle=%p", req->handle );
1074 static void dump_release_mutex_reply( const struct release_mutex_reply *req )
1076 fprintf( stderr, " prev_count=%08x", req->prev_count );
1079 static void dump_open_mutex_request( const struct open_mutex_request *req )
1081 fprintf( stderr, " access=%08x,", req->access );
1082 fprintf( stderr, " attributes=%08x,", req->attributes );
1083 fprintf( stderr, " rootdir=%p,", req->rootdir );
1084 fprintf( stderr, " name=" );
1085 dump_varargs_unicode_str( cur_size );
1088 static void dump_open_mutex_reply( const struct open_mutex_reply *req )
1090 fprintf( stderr, " handle=%p", req->handle );
1093 static void dump_create_semaphore_request( const struct create_semaphore_request *req )
1095 fprintf( stderr, " access=%08x,", req->access );
1096 fprintf( stderr, " attributes=%08x,", req->attributes );
1097 fprintf( stderr, " rootdir=%p,", req->rootdir );
1098 fprintf( stderr, " initial=%08x,", req->initial );
1099 fprintf( stderr, " max=%08x,", req->max );
1100 fprintf( stderr, " name=" );
1101 dump_varargs_unicode_str( cur_size );
1104 static void dump_create_semaphore_reply( const struct create_semaphore_reply *req )
1106 fprintf( stderr, " handle=%p", req->handle );
1109 static void dump_release_semaphore_request( const struct release_semaphore_request *req )
1111 fprintf( stderr, " handle=%p,", req->handle );
1112 fprintf( stderr, " count=%08x", req->count );
1115 static void dump_release_semaphore_reply( const struct release_semaphore_reply *req )
1117 fprintf( stderr, " prev_count=%08x", req->prev_count );
1120 static void dump_open_semaphore_request( const struct open_semaphore_request *req )
1122 fprintf( stderr, " access=%08x,", req->access );
1123 fprintf( stderr, " attributes=%08x,", req->attributes );
1124 fprintf( stderr, " rootdir=%p,", req->rootdir );
1125 fprintf( stderr, " name=" );
1126 dump_varargs_unicode_str( cur_size );
1129 static void dump_open_semaphore_reply( const struct open_semaphore_reply *req )
1131 fprintf( stderr, " handle=%p", req->handle );
1134 static void dump_create_file_request( const struct create_file_request *req )
1136 fprintf( stderr, " access=%08x,", req->access );
1137 fprintf( stderr, " attributes=%08x,", req->attributes );
1138 fprintf( stderr, " sharing=%08x,", req->sharing );
1139 fprintf( stderr, " create=%d,", req->create );
1140 fprintf( stderr, " options=%08x,", req->options );
1141 fprintf( stderr, " attrs=%08x,", req->attrs );
1142 fprintf( stderr, " filename=" );
1143 dump_varargs_string( cur_size );
1146 static void dump_create_file_reply( const struct create_file_reply *req )
1148 fprintf( stderr, " handle=%p", req->handle );
1151 static void dump_open_file_object_request( const struct open_file_object_request *req )
1153 fprintf( stderr, " access=%08x,", req->access );
1154 fprintf( stderr, " attributes=%08x,", req->attributes );
1155 fprintf( stderr, " rootdir=%p,", req->rootdir );
1156 fprintf( stderr, " sharing=%08x,", req->sharing );
1157 fprintf( stderr, " filename=" );
1158 dump_varargs_unicode_str( cur_size );
1161 static void dump_open_file_object_reply( const struct open_file_object_reply *req )
1163 fprintf( stderr, " handle=%p", req->handle );
1166 static void dump_alloc_file_handle_request( const struct alloc_file_handle_request *req )
1168 fprintf( stderr, " access=%08x,", req->access );
1169 fprintf( stderr, " attributes=%08x,", req->attributes );
1170 fprintf( stderr, " fd=%d", req->fd );
1173 static void dump_alloc_file_handle_reply( const struct alloc_file_handle_reply *req )
1175 fprintf( stderr, " handle=%p", req->handle );
1178 static void dump_get_handle_fd_request( const struct get_handle_fd_request *req )
1180 fprintf( stderr, " handle=%p,", req->handle );
1181 fprintf( stderr, " access=%08x,", req->access );
1182 fprintf( stderr, " cached=%d", req->cached );
1185 static void dump_get_handle_fd_reply( const struct get_handle_fd_reply *req )
1187 fprintf( stderr, " type=%d,", req->type );
1188 fprintf( stderr, " flags=%d", req->flags );
1191 static void dump_flush_file_request( const struct flush_file_request *req )
1193 fprintf( stderr, " handle=%p", req->handle );
1196 static void dump_flush_file_reply( const struct flush_file_reply *req )
1198 fprintf( stderr, " event=%p", req->event );
1201 static void dump_lock_file_request( const struct lock_file_request *req )
1203 fprintf( stderr, " handle=%p,", req->handle );
1204 fprintf( stderr, " offset_low=%08x,", req->offset_low );
1205 fprintf( stderr, " offset_high=%08x,", req->offset_high );
1206 fprintf( stderr, " count_low=%08x,", req->count_low );
1207 fprintf( stderr, " count_high=%08x,", req->count_high );
1208 fprintf( stderr, " shared=%d,", req->shared );
1209 fprintf( stderr, " wait=%d", req->wait );
1212 static void dump_lock_file_reply( const struct lock_file_reply *req )
1214 fprintf( stderr, " handle=%p,", req->handle );
1215 fprintf( stderr, " overlapped=%d", req->overlapped );
1218 static void dump_unlock_file_request( const struct unlock_file_request *req )
1220 fprintf( stderr, " handle=%p,", req->handle );
1221 fprintf( stderr, " offset_low=%08x,", req->offset_low );
1222 fprintf( stderr, " offset_high=%08x,", req->offset_high );
1223 fprintf( stderr, " count_low=%08x,", req->count_low );
1224 fprintf( stderr, " count_high=%08x", req->count_high );
1227 static void dump_unmount_device_request( const struct unmount_device_request *req )
1229 fprintf( stderr, " handle=%p", req->handle );
1232 static void dump_create_socket_request( const struct create_socket_request *req )
1234 fprintf( stderr, " access=%08x,", req->access );
1235 fprintf( stderr, " attributes=%08x,", req->attributes );
1236 fprintf( stderr, " family=%d,", req->family );
1237 fprintf( stderr, " type=%d,", req->type );
1238 fprintf( stderr, " protocol=%d,", req->protocol );
1239 fprintf( stderr, " flags=%08x", req->flags );
1242 static void dump_create_socket_reply( const struct create_socket_reply *req )
1244 fprintf( stderr, " handle=%p", req->handle );
1247 static void dump_accept_socket_request( const struct accept_socket_request *req )
1249 fprintf( stderr, " lhandle=%p,", req->lhandle );
1250 fprintf( stderr, " access=%08x,", req->access );
1251 fprintf( stderr, " attributes=%08x", req->attributes );
1254 static void dump_accept_socket_reply( const struct accept_socket_reply *req )
1256 fprintf( stderr, " handle=%p", req->handle );
1259 static void dump_set_socket_event_request( const struct set_socket_event_request *req )
1261 fprintf( stderr, " handle=%p,", req->handle );
1262 fprintf( stderr, " mask=%08x,", req->mask );
1263 fprintf( stderr, " event=%p,", req->event );
1264 fprintf( stderr, " window=%p,", req->window );
1265 fprintf( stderr, " msg=%08x", req->msg );
1268 static void dump_get_socket_event_request( const struct get_socket_event_request *req )
1270 fprintf( stderr, " handle=%p,", req->handle );
1271 fprintf( stderr, " service=%d,", req->service );
1272 fprintf( stderr, " c_event=%p", req->c_event );
1275 static void dump_get_socket_event_reply( const struct get_socket_event_reply *req )
1277 fprintf( stderr, " mask=%08x,", req->mask );
1278 fprintf( stderr, " pmask=%08x,", req->pmask );
1279 fprintf( stderr, " state=%08x,", req->state );
1280 fprintf( stderr, " errors=" );
1281 dump_varargs_ints( cur_size );
1284 static void dump_enable_socket_event_request( const struct enable_socket_event_request *req )
1286 fprintf( stderr, " handle=%p,", req->handle );
1287 fprintf( stderr, " mask=%08x,", req->mask );
1288 fprintf( stderr, " sstate=%08x,", req->sstate );
1289 fprintf( stderr, " cstate=%08x", req->cstate );
1292 static void dump_set_socket_deferred_request( const struct set_socket_deferred_request *req )
1294 fprintf( stderr, " handle=%p,", req->handle );
1295 fprintf( stderr, " deferred=%p", req->deferred );
1298 static void dump_alloc_console_request( const struct alloc_console_request *req )
1300 fprintf( stderr, " access=%08x,", req->access );
1301 fprintf( stderr, " attributes=%08x,", req->attributes );
1302 fprintf( stderr, " pid=%04x", req->pid );
1305 static void dump_alloc_console_reply( const struct alloc_console_reply *req )
1307 fprintf( stderr, " handle_in=%p,", req->handle_in );
1308 fprintf( stderr, " event=%p", req->event );
1311 static void dump_free_console_request( const struct free_console_request *req )
1315 static void dump_get_console_renderer_events_request( const struct get_console_renderer_events_request *req )
1317 fprintf( stderr, " handle=%p", req->handle );
1320 static void dump_get_console_renderer_events_reply( const struct get_console_renderer_events_reply *req )
1322 fprintf( stderr, " data=" );
1323 dump_varargs_bytes( cur_size );
1326 static void dump_open_console_request( const struct open_console_request *req )
1328 fprintf( stderr, " from=%p,", req->from );
1329 fprintf( stderr, " access=%08x,", req->access );
1330 fprintf( stderr, " attributes=%08x,", req->attributes );
1331 fprintf( stderr, " share=%d", req->share );
1334 static void dump_open_console_reply( const struct open_console_reply *req )
1336 fprintf( stderr, " handle=%p", req->handle );
1339 static void dump_get_console_wait_event_request( const struct get_console_wait_event_request *req )
1343 static void dump_get_console_wait_event_reply( const struct get_console_wait_event_reply *req )
1345 fprintf( stderr, " handle=%p", req->handle );
1348 static void dump_get_console_mode_request( const struct get_console_mode_request *req )
1350 fprintf( stderr, " handle=%p", req->handle );
1353 static void dump_get_console_mode_reply( const struct get_console_mode_reply *req )
1355 fprintf( stderr, " mode=%d", req->mode );
1358 static void dump_set_console_mode_request( const struct set_console_mode_request *req )
1360 fprintf( stderr, " handle=%p,", req->handle );
1361 fprintf( stderr, " mode=%d", req->mode );
1364 static void dump_set_console_input_info_request( const struct set_console_input_info_request *req )
1366 fprintf( stderr, " handle=%p,", req->handle );
1367 fprintf( stderr, " mask=%d,", req->mask );
1368 fprintf( stderr, " active_sb=%p,", req->active_sb );
1369 fprintf( stderr, " history_mode=%d,", req->history_mode );
1370 fprintf( stderr, " history_size=%d,", req->history_size );
1371 fprintf( stderr, " edition_mode=%d,", req->edition_mode );
1372 fprintf( stderr, " title=" );
1373 dump_varargs_unicode_str( cur_size );
1376 static void dump_get_console_input_info_request( const struct get_console_input_info_request *req )
1378 fprintf( stderr, " handle=%p", req->handle );
1381 static void dump_get_console_input_info_reply( const struct get_console_input_info_reply *req )
1383 fprintf( stderr, " history_mode=%d,", req->history_mode );
1384 fprintf( stderr, " history_size=%d,", req->history_size );
1385 fprintf( stderr, " history_index=%d,", req->history_index );
1386 fprintf( stderr, " edition_mode=%d,", req->edition_mode );
1387 fprintf( stderr, " title=" );
1388 dump_varargs_unicode_str( cur_size );
1391 static void dump_append_console_input_history_request( const struct append_console_input_history_request *req )
1393 fprintf( stderr, " handle=%p,", req->handle );
1394 fprintf( stderr, " line=" );
1395 dump_varargs_unicode_str( cur_size );
1398 static void dump_get_console_input_history_request( const struct get_console_input_history_request *req )
1400 fprintf( stderr, " handle=%p,", req->handle );
1401 fprintf( stderr, " index=%d", req->index );
1404 static void dump_get_console_input_history_reply( const struct get_console_input_history_reply *req )
1406 fprintf( stderr, " total=%d,", req->total );
1407 fprintf( stderr, " line=" );
1408 dump_varargs_unicode_str( cur_size );
1411 static void dump_create_console_output_request( const struct create_console_output_request *req )
1413 fprintf( stderr, " handle_in=%p,", req->handle_in );
1414 fprintf( stderr, " access=%08x,", req->access );
1415 fprintf( stderr, " attributes=%08x,", req->attributes );
1416 fprintf( stderr, " share=%08x", req->share );
1419 static void dump_create_console_output_reply( const struct create_console_output_reply *req )
1421 fprintf( stderr, " handle_out=%p", req->handle_out );
1424 static void dump_set_console_output_info_request( const struct set_console_output_info_request *req )
1426 fprintf( stderr, " handle=%p,", req->handle );
1427 fprintf( stderr, " mask=%d,", req->mask );
1428 fprintf( stderr, " cursor_size=%d,", req->cursor_size );
1429 fprintf( stderr, " cursor_visible=%d,", req->cursor_visible );
1430 fprintf( stderr, " cursor_x=%d,", req->cursor_x );
1431 fprintf( stderr, " cursor_y=%d,", req->cursor_y );
1432 fprintf( stderr, " width=%d,", req->width );
1433 fprintf( stderr, " height=%d,", req->height );
1434 fprintf( stderr, " attr=%d,", req->attr );
1435 fprintf( stderr, " win_left=%d,", req->win_left );
1436 fprintf( stderr, " win_top=%d,", req->win_top );
1437 fprintf( stderr, " win_right=%d,", req->win_right );
1438 fprintf( stderr, " win_bottom=%d,", req->win_bottom );
1439 fprintf( stderr, " max_width=%d,", req->max_width );
1440 fprintf( stderr, " max_height=%d", req->max_height );
1443 static void dump_get_console_output_info_request( const struct get_console_output_info_request *req )
1445 fprintf( stderr, " handle=%p", req->handle );
1448 static void dump_get_console_output_info_reply( const struct get_console_output_info_reply *req )
1450 fprintf( stderr, " cursor_size=%d,", req->cursor_size );
1451 fprintf( stderr, " cursor_visible=%d,", req->cursor_visible );
1452 fprintf( stderr, " cursor_x=%d,", req->cursor_x );
1453 fprintf( stderr, " cursor_y=%d,", req->cursor_y );
1454 fprintf( stderr, " width=%d,", req->width );
1455 fprintf( stderr, " height=%d,", req->height );
1456 fprintf( stderr, " attr=%d,", req->attr );
1457 fprintf( stderr, " win_left=%d,", req->win_left );
1458 fprintf( stderr, " win_top=%d,", req->win_top );
1459 fprintf( stderr, " win_right=%d,", req->win_right );
1460 fprintf( stderr, " win_bottom=%d,", req->win_bottom );
1461 fprintf( stderr, " max_width=%d,", req->max_width );
1462 fprintf( stderr, " max_height=%d", req->max_height );
1465 static void dump_write_console_input_request( const struct write_console_input_request *req )
1467 fprintf( stderr, " handle=%p,", req->handle );
1468 fprintf( stderr, " rec=" );
1469 dump_varargs_input_records( cur_size );
1472 static void dump_write_console_input_reply( const struct write_console_input_reply *req )
1474 fprintf( stderr, " written=%d", req->written );
1477 static void dump_read_console_input_request( const struct read_console_input_request *req )
1479 fprintf( stderr, " handle=%p,", req->handle );
1480 fprintf( stderr, " flush=%d", req->flush );
1483 static void dump_read_console_input_reply( const struct read_console_input_reply *req )
1485 fprintf( stderr, " read=%d,", req->read );
1486 fprintf( stderr, " rec=" );
1487 dump_varargs_input_records( cur_size );
1490 static void dump_write_console_output_request( const struct write_console_output_request *req )
1492 fprintf( stderr, " handle=%p,", req->handle );
1493 fprintf( stderr, " x=%d,", req->x );
1494 fprintf( stderr, " y=%d,", req->y );
1495 fprintf( stderr, " mode=%d,", req->mode );
1496 fprintf( stderr, " wrap=%d,", req->wrap );
1497 fprintf( stderr, " data=" );
1498 dump_varargs_bytes( cur_size );
1501 static void dump_write_console_output_reply( const struct write_console_output_reply *req )
1503 fprintf( stderr, " written=%d,", req->written );
1504 fprintf( stderr, " width=%d,", req->width );
1505 fprintf( stderr, " height=%d", req->height );
1508 static void dump_fill_console_output_request( const struct fill_console_output_request *req )
1510 fprintf( stderr, " handle=%p,", req->handle );
1511 fprintf( stderr, " x=%d,", req->x );
1512 fprintf( stderr, " y=%d,", req->y );
1513 fprintf( stderr, " mode=%d,", req->mode );
1514 fprintf( stderr, " count=%d,", req->count );
1515 fprintf( stderr, " wrap=%d,", req->wrap );
1516 fprintf( stderr, " data=" );
1517 dump_char_info( &req->data );
1520 static void dump_fill_console_output_reply( const struct fill_console_output_reply *req )
1522 fprintf( stderr, " written=%d", req->written );
1525 static void dump_read_console_output_request( const struct read_console_output_request *req )
1527 fprintf( stderr, " handle=%p,", req->handle );
1528 fprintf( stderr, " x=%d,", req->x );
1529 fprintf( stderr, " y=%d,", req->y );
1530 fprintf( stderr, " mode=%d,", req->mode );
1531 fprintf( stderr, " wrap=%d", req->wrap );
1534 static void dump_read_console_output_reply( const struct read_console_output_reply *req )
1536 fprintf( stderr, " width=%d,", req->width );
1537 fprintf( stderr, " height=%d,", req->height );
1538 fprintf( stderr, " data=" );
1539 dump_varargs_bytes( cur_size );
1542 static void dump_move_console_output_request( const struct move_console_output_request *req )
1544 fprintf( stderr, " handle=%p,", req->handle );
1545 fprintf( stderr, " x_src=%d,", req->x_src );
1546 fprintf( stderr, " y_src=%d,", req->y_src );
1547 fprintf( stderr, " x_dst=%d,", req->x_dst );
1548 fprintf( stderr, " y_dst=%d,", req->y_dst );
1549 fprintf( stderr, " w=%d,", req->w );
1550 fprintf( stderr, " h=%d", req->h );
1553 static void dump_send_console_signal_request( const struct send_console_signal_request *req )
1555 fprintf( stderr, " signal=%d,", req->signal );
1556 fprintf( stderr, " group_id=%04x", req->group_id );
1559 static void dump_read_directory_changes_request( const struct read_directory_changes_request *req )
1561 fprintf( stderr, " filter=%08x,", req->filter );
1562 fprintf( stderr, " handle=%p,", req->handle );
1563 fprintf( stderr, " event=%p,", req->event );
1564 fprintf( stderr, " subtree=%d,", req->subtree );
1565 fprintf( stderr, " want_data=%d,", req->want_data );
1566 fprintf( stderr, " io_apc=%p,", req->io_apc );
1567 fprintf( stderr, " io_sb=%p,", req->io_sb );
1568 fprintf( stderr, " io_user=%p", req->io_user );
1571 static void dump_read_change_request( const struct read_change_request *req )
1573 fprintf( stderr, " handle=%p", req->handle );
1576 static void dump_read_change_reply( const struct read_change_reply *req )
1578 fprintf( stderr, " action=%d,", req->action );
1579 fprintf( stderr, " name=" );
1580 dump_varargs_string( cur_size );
1583 static void dump_create_mapping_request( const struct create_mapping_request *req )
1585 fprintf( stderr, " access=%08x,", req->access );
1586 fprintf( stderr, " attributes=%08x,", req->attributes );
1587 fprintf( stderr, " rootdir=%p,", req->rootdir );
1588 fprintf( stderr, " size_high=%d,", req->size_high );
1589 fprintf( stderr, " size_low=%d,", req->size_low );
1590 fprintf( stderr, " protect=%d,", req->protect );
1591 fprintf( stderr, " file_handle=%p,", req->file_handle );
1592 fprintf( stderr, " name=" );
1593 dump_varargs_unicode_str( cur_size );
1596 static void dump_create_mapping_reply( const struct create_mapping_reply *req )
1598 fprintf( stderr, " handle=%p", req->handle );
1601 static void dump_open_mapping_request( const struct open_mapping_request *req )
1603 fprintf( stderr, " access=%08x,", req->access );
1604 fprintf( stderr, " attributes=%08x,", req->attributes );
1605 fprintf( stderr, " rootdir=%p,", req->rootdir );
1606 fprintf( stderr, " name=" );
1607 dump_varargs_unicode_str( cur_size );
1610 static void dump_open_mapping_reply( const struct open_mapping_reply *req )
1612 fprintf( stderr, " handle=%p", req->handle );
1615 static void dump_get_mapping_info_request( const struct get_mapping_info_request *req )
1617 fprintf( stderr, " handle=%p", req->handle );
1620 static void dump_get_mapping_info_reply( const struct get_mapping_info_reply *req )
1622 fprintf( stderr, " size_high=%d,", req->size_high );
1623 fprintf( stderr, " size_low=%d,", req->size_low );
1624 fprintf( stderr, " protect=%d,", req->protect );
1625 fprintf( stderr, " header_size=%d,", req->header_size );
1626 fprintf( stderr, " base=%p,", req->base );
1627 fprintf( stderr, " mapping=%p,", req->mapping );
1628 fprintf( stderr, " shared_file=%p,", req->shared_file );
1629 fprintf( stderr, " shared_size=%d", req->shared_size );
1632 static void dump_create_snapshot_request( const struct create_snapshot_request *req )
1634 fprintf( stderr, " attributes=%08x,", req->attributes );
1635 fprintf( stderr, " flags=%d,", req->flags );
1636 fprintf( stderr, " pid=%04x", req->pid );
1639 static void dump_create_snapshot_reply( const struct create_snapshot_reply *req )
1641 fprintf( stderr, " handle=%p", req->handle );
1644 static void dump_next_process_request( const struct next_process_request *req )
1646 fprintf( stderr, " handle=%p,", req->handle );
1647 fprintf( stderr, " reset=%d", req->reset );
1650 static void dump_next_process_reply( const struct next_process_reply *req )
1652 fprintf( stderr, " count=%d,", req->count );
1653 fprintf( stderr, " pid=%04x,", req->pid );
1654 fprintf( stderr, " ppid=%04x,", req->ppid );
1655 fprintf( stderr, " heap=%p,", req->heap );
1656 fprintf( stderr, " module=%p,", req->module );
1657 fprintf( stderr, " threads=%d,", req->threads );
1658 fprintf( stderr, " priority=%d,", req->priority );
1659 fprintf( stderr, " handles=%d,", req->handles );
1660 fprintf( stderr, " filename=" );
1661 dump_varargs_unicode_str( cur_size );
1664 static void dump_next_thread_request( const struct next_thread_request *req )
1666 fprintf( stderr, " handle=%p,", req->handle );
1667 fprintf( stderr, " reset=%d", req->reset );
1670 static void dump_next_thread_reply( const struct next_thread_reply *req )
1672 fprintf( stderr, " count=%d,", req->count );
1673 fprintf( stderr, " pid=%04x,", req->pid );
1674 fprintf( stderr, " tid=%04x,", req->tid );
1675 fprintf( stderr, " base_pri=%d,", req->base_pri );
1676 fprintf( stderr, " delta_pri=%d", req->delta_pri );
1679 static void dump_next_module_request( const struct next_module_request *req )
1681 fprintf( stderr, " handle=%p,", req->handle );
1682 fprintf( stderr, " reset=%d", req->reset );
1685 static void dump_next_module_reply( const struct next_module_reply *req )
1687 fprintf( stderr, " pid=%04x,", req->pid );
1688 fprintf( stderr, " base=%p,", req->base );
1689 fprintf( stderr, " size=%lu,", (unsigned long)req->size );
1690 fprintf( stderr, " filename=" );
1691 dump_varargs_unicode_str( cur_size );
1694 static void dump_wait_debug_event_request( const struct wait_debug_event_request *req )
1696 fprintf( stderr, " get_handle=%d", req->get_handle );
1699 static void dump_wait_debug_event_reply( const struct wait_debug_event_reply *req )
1701 fprintf( stderr, " pid=%04x,", req->pid );
1702 fprintf( stderr, " tid=%04x,", req->tid );
1703 fprintf( stderr, " wait=%p,", req->wait );
1704 fprintf( stderr, " event=" );
1705 dump_varargs_debug_event( cur_size );
1708 static void dump_queue_exception_event_request( const struct queue_exception_event_request *req )
1710 fprintf( stderr, " first=%d,", req->first );
1711 fprintf( stderr, " record=" );
1712 dump_varargs_exc_event( cur_size );
1715 static void dump_queue_exception_event_reply( const struct queue_exception_event_reply *req )
1717 fprintf( stderr, " handle=%p", req->handle );
1720 static void dump_get_exception_status_request( const struct get_exception_status_request *req )
1722 fprintf( stderr, " handle=%p", req->handle );
1725 static void dump_get_exception_status_reply( const struct get_exception_status_reply *req )
1727 fprintf( stderr, " context=" );
1728 dump_varargs_context( cur_size );
1731 static void dump_output_debug_string_request( const struct output_debug_string_request *req )
1733 fprintf( stderr, " string=%p,", req->string );
1734 fprintf( stderr, " unicode=%d,", req->unicode );
1735 fprintf( stderr, " length=%d", req->length );
1738 static void dump_continue_debug_event_request( const struct continue_debug_event_request *req )
1740 fprintf( stderr, " pid=%04x,", req->pid );
1741 fprintf( stderr, " tid=%04x,", req->tid );
1742 fprintf( stderr, " status=%d", req->status );
1745 static void dump_debug_process_request( const struct debug_process_request *req )
1747 fprintf( stderr, " pid=%04x,", req->pid );
1748 fprintf( stderr, " attach=%d", req->attach );
1751 static void dump_debug_break_request( const struct debug_break_request *req )
1753 fprintf( stderr, " handle=%p", req->handle );
1756 static void dump_debug_break_reply( const struct debug_break_reply *req )
1758 fprintf( stderr, " self=%d", req->self );
1761 static void dump_set_debugger_kill_on_exit_request( const struct set_debugger_kill_on_exit_request *req )
1763 fprintf( stderr, " kill_on_exit=%d", req->kill_on_exit );
1766 static void dump_read_process_memory_request( const struct read_process_memory_request *req )
1768 fprintf( stderr, " handle=%p,", req->handle );
1769 fprintf( stderr, " addr=%p", req->addr );
1772 static void dump_read_process_memory_reply( const struct read_process_memory_reply *req )
1774 fprintf( stderr, " data=" );
1775 dump_varargs_bytes( cur_size );
1778 static void dump_write_process_memory_request( const struct write_process_memory_request *req )
1780 fprintf( stderr, " handle=%p,", req->handle );
1781 fprintf( stderr, " addr=%p,", req->addr );
1782 fprintf( stderr, " data=" );
1783 dump_varargs_bytes( cur_size );
1786 static void dump_create_key_request( const struct create_key_request *req )
1788 fprintf( stderr, " parent=%p,", req->parent );
1789 fprintf( stderr, " access=%08x,", req->access );
1790 fprintf( stderr, " attributes=%08x,", req->attributes );
1791 fprintf( stderr, " options=%08x,", req->options );
1792 fprintf( stderr, " modif=%ld,", (long)req->modif );
1793 fprintf( stderr, " namelen=%u,", req->namelen );
1794 fprintf( stderr, " name=" );
1795 dump_varargs_unicode_str( min(cur_size,req->namelen) );
1796 fputc( ',', stderr );
1797 fprintf( stderr, " class=" );
1798 dump_varargs_unicode_str( cur_size );
1801 static void dump_create_key_reply( const struct create_key_reply *req )
1803 fprintf( stderr, " hkey=%p,", req->hkey );
1804 fprintf( stderr, " created=%d", req->created );
1807 static void dump_open_key_request( const struct open_key_request *req )
1809 fprintf( stderr, " parent=%p,", req->parent );
1810 fprintf( stderr, " access=%08x,", req->access );
1811 fprintf( stderr, " attributes=%08x,", req->attributes );
1812 fprintf( stderr, " name=" );
1813 dump_varargs_unicode_str( cur_size );
1816 static void dump_open_key_reply( const struct open_key_reply *req )
1818 fprintf( stderr, " hkey=%p", req->hkey );
1821 static void dump_delete_key_request( const struct delete_key_request *req )
1823 fprintf( stderr, " hkey=%p", req->hkey );
1826 static void dump_flush_key_request( const struct flush_key_request *req )
1828 fprintf( stderr, " hkey=%p", req->hkey );
1831 static void dump_enum_key_request( const struct enum_key_request *req )
1833 fprintf( stderr, " hkey=%p,", req->hkey );
1834 fprintf( stderr, " index=%d,", req->index );
1835 fprintf( stderr, " info_class=%d", req->info_class );
1838 static void dump_enum_key_reply( const struct enum_key_reply *req )
1840 fprintf( stderr, " subkeys=%d,", req->subkeys );
1841 fprintf( stderr, " max_subkey=%d,", req->max_subkey );
1842 fprintf( stderr, " max_class=%d,", req->max_class );
1843 fprintf( stderr, " values=%d,", req->values );
1844 fprintf( stderr, " max_value=%d,", req->max_value );
1845 fprintf( stderr, " max_data=%d,", req->max_data );
1846 fprintf( stderr, " modif=%ld,", (long)req->modif );
1847 fprintf( stderr, " total=%u,", req->total );
1848 fprintf( stderr, " namelen=%u,", req->namelen );
1849 fprintf( stderr, " name=" );
1850 dump_varargs_unicode_str( min(cur_size,req->namelen) );
1851 fputc( ',', stderr );
1852 fprintf( stderr, " class=" );
1853 dump_varargs_unicode_str( cur_size );
1856 static void dump_set_key_value_request( const struct set_key_value_request *req )
1858 fprintf( stderr, " hkey=%p,", req->hkey );
1859 fprintf( stderr, " type=%d,", req->type );
1860 fprintf( stderr, " namelen=%u,", req->namelen );
1861 fprintf( stderr, " name=" );
1862 dump_varargs_unicode_str( min(cur_size,req->namelen) );
1863 fputc( ',', stderr );
1864 fprintf( stderr, " data=" );
1865 dump_varargs_bytes( cur_size );
1868 static void dump_get_key_value_request( const struct get_key_value_request *req )
1870 fprintf( stderr, " hkey=%p,", req->hkey );
1871 fprintf( stderr, " name=" );
1872 dump_varargs_unicode_str( cur_size );
1875 static void dump_get_key_value_reply( const struct get_key_value_reply *req )
1877 fprintf( stderr, " type=%d,", req->type );
1878 fprintf( stderr, " total=%u,", req->total );
1879 fprintf( stderr, " data=" );
1880 dump_varargs_bytes( cur_size );
1883 static void dump_enum_key_value_request( const struct enum_key_value_request *req )
1885 fprintf( stderr, " hkey=%p,", req->hkey );
1886 fprintf( stderr, " index=%d,", req->index );
1887 fprintf( stderr, " info_class=%d", req->info_class );
1890 static void dump_enum_key_value_reply( const struct enum_key_value_reply *req )
1892 fprintf( stderr, " type=%d,", req->type );
1893 fprintf( stderr, " total=%u,", req->total );
1894 fprintf( stderr, " namelen=%u,", req->namelen );
1895 fprintf( stderr, " name=" );
1896 dump_varargs_unicode_str( min(cur_size,req->namelen) );
1897 fputc( ',', stderr );
1898 fprintf( stderr, " data=" );
1899 dump_varargs_bytes( cur_size );
1902 static void dump_delete_key_value_request( const struct delete_key_value_request *req )
1904 fprintf( stderr, " hkey=%p,", req->hkey );
1905 fprintf( stderr, " name=" );
1906 dump_varargs_unicode_str( cur_size );
1909 static void dump_load_registry_request( const struct load_registry_request *req )
1911 fprintf( stderr, " hkey=%p,", req->hkey );
1912 fprintf( stderr, " file=%p,", req->file );
1913 fprintf( stderr, " name=" );
1914 dump_varargs_unicode_str( cur_size );
1917 static void dump_unload_registry_request( const struct unload_registry_request *req )
1919 fprintf( stderr, " hkey=%p", req->hkey );
1922 static void dump_save_registry_request( const struct save_registry_request *req )
1924 fprintf( stderr, " hkey=%p,", req->hkey );
1925 fprintf( stderr, " file=%p", req->file );
1928 static void dump_set_registry_notification_request( const struct set_registry_notification_request *req )
1930 fprintf( stderr, " hkey=%p,", req->hkey );
1931 fprintf( stderr, " event=%p,", req->event );
1932 fprintf( stderr, " subtree=%d,", req->subtree );
1933 fprintf( stderr, " filter=%08x", req->filter );
1936 static void dump_create_timer_request( const struct create_timer_request *req )
1938 fprintf( stderr, " access=%08x,", req->access );
1939 fprintf( stderr, " attributes=%08x,", req->attributes );
1940 fprintf( stderr, " rootdir=%p,", req->rootdir );
1941 fprintf( stderr, " manual=%d,", req->manual );
1942 fprintf( stderr, " name=" );
1943 dump_varargs_unicode_str( cur_size );
1946 static void dump_create_timer_reply( const struct create_timer_reply *req )
1948 fprintf( stderr, " handle=%p", req->handle );
1951 static void dump_open_timer_request( const struct open_timer_request *req )
1953 fprintf( stderr, " access=%08x,", req->access );
1954 fprintf( stderr, " attributes=%08x,", req->attributes );
1955 fprintf( stderr, " rootdir=%p,", req->rootdir );
1956 fprintf( stderr, " name=" );
1957 dump_varargs_unicode_str( cur_size );
1960 static void dump_open_timer_reply( const struct open_timer_reply *req )
1962 fprintf( stderr, " handle=%p", req->handle );
1965 static void dump_set_timer_request( const struct set_timer_request *req )
1967 fprintf( stderr, " handle=%p,", req->handle );
1968 fprintf( stderr, " expire=" );
1969 dump_abs_time( &req->expire );
1970 fprintf( stderr, "," );
1971 fprintf( stderr, " period=%d,", req->period );
1972 fprintf( stderr, " callback=%p,", req->callback );
1973 fprintf( stderr, " arg=%p", req->arg );
1976 static void dump_set_timer_reply( const struct set_timer_reply *req )
1978 fprintf( stderr, " signaled=%d", req->signaled );
1981 static void dump_cancel_timer_request( const struct cancel_timer_request *req )
1983 fprintf( stderr, " handle=%p", req->handle );
1986 static void dump_cancel_timer_reply( const struct cancel_timer_reply *req )
1988 fprintf( stderr, " signaled=%d", req->signaled );
1991 static void dump_get_timer_info_request( const struct get_timer_info_request *req )
1993 fprintf( stderr, " handle=%p", req->handle );
1996 static void dump_get_timer_info_reply( const struct get_timer_info_reply *req )
1998 fprintf( stderr, " when=" );
1999 dump_abs_time( &req->when );
2000 fprintf( stderr, "," );
2001 fprintf( stderr, " signaled=%d", req->signaled );
2004 static void dump_get_thread_context_request( const struct get_thread_context_request *req )
2006 fprintf( stderr, " handle=%p,", req->handle );
2007 fprintf( stderr, " flags=%08x,", req->flags );
2008 fprintf( stderr, " suspend=%d", req->suspend );
2011 static void dump_get_thread_context_reply( const struct get_thread_context_reply *req )
2013 fprintf( stderr, " self=%d,", req->self );
2014 fprintf( stderr, " context=" );
2015 dump_varargs_context( cur_size );
2018 static void dump_set_thread_context_request( const struct set_thread_context_request *req )
2020 fprintf( stderr, " handle=%p,", req->handle );
2021 fprintf( stderr, " flags=%08x,", req->flags );
2022 fprintf( stderr, " suspend=%d,", req->suspend );
2023 fprintf( stderr, " context=" );
2024 dump_varargs_context( cur_size );
2027 static void dump_set_thread_context_reply( const struct set_thread_context_reply *req )
2029 fprintf( stderr, " self=%d", req->self );
2032 static void dump_get_selector_entry_request( const struct get_selector_entry_request *req )
2034 fprintf( stderr, " handle=%p,", req->handle );
2035 fprintf( stderr, " entry=%d", req->entry );
2038 static void dump_get_selector_entry_reply( const struct get_selector_entry_reply *req )
2040 fprintf( stderr, " base=%08x,", req->base );
2041 fprintf( stderr, " limit=%08x,", req->limit );
2042 fprintf( stderr, " flags=%02x", req->flags );
2045 static void dump_add_atom_request( const struct add_atom_request *req )
2047 fprintf( stderr, " table=%p,", req->table );
2048 fprintf( stderr, " name=" );
2049 dump_varargs_unicode_str( cur_size );
2052 static void dump_add_atom_reply( const struct add_atom_reply *req )
2054 fprintf( stderr, " atom=%04x", req->atom );
2057 static void dump_delete_atom_request( const struct delete_atom_request *req )
2059 fprintf( stderr, " table=%p,", req->table );
2060 fprintf( stderr, " atom=%04x", req->atom );
2063 static void dump_find_atom_request( const struct find_atom_request *req )
2065 fprintf( stderr, " table=%p,", req->table );
2066 fprintf( stderr, " name=" );
2067 dump_varargs_unicode_str( cur_size );
2070 static void dump_find_atom_reply( const struct find_atom_reply *req )
2072 fprintf( stderr, " atom=%04x", req->atom );
2075 static void dump_get_atom_information_request( const struct get_atom_information_request *req )
2077 fprintf( stderr, " table=%p,", req->table );
2078 fprintf( stderr, " atom=%04x", req->atom );
2081 static void dump_get_atom_information_reply( const struct get_atom_information_reply *req )
2083 fprintf( stderr, " count=%d,", req->count );
2084 fprintf( stderr, " pinned=%d,", req->pinned );
2085 fprintf( stderr, " total=%u,", req->total );
2086 fprintf( stderr, " name=" );
2087 dump_varargs_unicode_str( cur_size );
2090 static void dump_set_atom_information_request( const struct set_atom_information_request *req )
2092 fprintf( stderr, " table=%p,", req->table );
2093 fprintf( stderr, " atom=%04x,", req->atom );
2094 fprintf( stderr, " pinned=%d", req->pinned );
2097 static void dump_empty_atom_table_request( const struct empty_atom_table_request *req )
2099 fprintf( stderr, " table=%p,", req->table );
2100 fprintf( stderr, " if_pinned=%d", req->if_pinned );
2103 static void dump_init_atom_table_request( const struct init_atom_table_request *req )
2105 fprintf( stderr, " entries=%d", req->entries );
2108 static void dump_init_atom_table_reply( const struct init_atom_table_reply *req )
2110 fprintf( stderr, " table=%p", req->table );
2113 static void dump_get_msg_queue_request( const struct get_msg_queue_request *req )
2117 static void dump_get_msg_queue_reply( const struct get_msg_queue_reply *req )
2119 fprintf( stderr, " handle=%p", req->handle );
2122 static void dump_set_queue_mask_request( const struct set_queue_mask_request *req )
2124 fprintf( stderr, " wake_mask=%08x,", req->wake_mask );
2125 fprintf( stderr, " changed_mask=%08x,", req->changed_mask );
2126 fprintf( stderr, " skip_wait=%d", req->skip_wait );
2129 static void dump_set_queue_mask_reply( const struct set_queue_mask_reply *req )
2131 fprintf( stderr, " wake_bits=%08x,", req->wake_bits );
2132 fprintf( stderr, " changed_bits=%08x", req->changed_bits );
2135 static void dump_get_queue_status_request( const struct get_queue_status_request *req )
2137 fprintf( stderr, " clear=%d", req->clear );
2140 static void dump_get_queue_status_reply( const struct get_queue_status_reply *req )
2142 fprintf( stderr, " wake_bits=%08x,", req->wake_bits );
2143 fprintf( stderr, " changed_bits=%08x", req->changed_bits );
2146 static void dump_get_process_idle_event_request( const struct get_process_idle_event_request *req )
2148 fprintf( stderr, " handle=%p", req->handle );
2151 static void dump_get_process_idle_event_reply( const struct get_process_idle_event_reply *req )
2153 fprintf( stderr, " event=%p", req->event );
2156 static void dump_send_message_request( const struct send_message_request *req )
2158 fprintf( stderr, " id=%04x,", req->id );
2159 fprintf( stderr, " type=%d,", req->type );
2160 fprintf( stderr, " flags=%d,", req->flags );
2161 fprintf( stderr, " win=%p,", req->win );
2162 fprintf( stderr, " msg=%08x,", req->msg );
2163 fprintf( stderr, " wparam=%lx,", req->wparam );
2164 fprintf( stderr, " lparam=%lx,", req->lparam );
2165 fprintf( stderr, " timeout=%d,", req->timeout );
2166 fprintf( stderr, " data=" );
2167 dump_varargs_message_data( cur_size );
2170 static void dump_post_quit_message_request( const struct post_quit_message_request *req )
2172 fprintf( stderr, " exit_code=%d", req->exit_code );
2175 static void dump_send_hardware_message_request( const struct send_hardware_message_request *req )
2177 fprintf( stderr, " id=%04x,", req->id );
2178 fprintf( stderr, " win=%p,", req->win );
2179 fprintf( stderr, " msg=%08x,", req->msg );
2180 fprintf( stderr, " time=%08x,", req->time );
2181 fprintf( stderr, " wparam=%lx,", req->wparam );
2182 fprintf( stderr, " lparam=%lx,", req->lparam );
2183 fprintf( stderr, " info=%lx,", req->info );
2184 fprintf( stderr, " x=%d,", req->x );
2185 fprintf( stderr, " y=%d", req->y );
2188 static void dump_get_message_request( const struct get_message_request *req )
2190 fprintf( stderr, " flags=%d,", req->flags );
2191 fprintf( stderr, " get_win=%p,", req->get_win );
2192 fprintf( stderr, " get_first=%08x,", req->get_first );
2193 fprintf( stderr, " get_last=%08x,", req->get_last );
2194 fprintf( stderr, " hw_id=%08x", req->hw_id );
2197 static void dump_get_message_reply( const struct get_message_reply *req )
2199 fprintf( stderr, " win=%p,", req->win );
2200 fprintf( stderr, " type=%d,", req->type );
2201 fprintf( stderr, " msg=%08x,", req->msg );
2202 fprintf( stderr, " wparam=%lx,", req->wparam );
2203 fprintf( stderr, " lparam=%lx,", req->lparam );
2204 fprintf( stderr, " info=%lx,", req->info );
2205 fprintf( stderr, " x=%d,", req->x );
2206 fprintf( stderr, " y=%d,", req->y );
2207 fprintf( stderr, " time=%08x,", req->time );
2208 fprintf( stderr, " hw_id=%08x,", req->hw_id );
2209 fprintf( stderr, " active_hooks=%08x,", req->active_hooks );
2210 fprintf( stderr, " total=%u,", req->total );
2211 fprintf( stderr, " data=" );
2212 dump_varargs_message_data( cur_size );
2215 static void dump_reply_message_request( const struct reply_message_request *req )
2217 fprintf( stderr, " result=%08x,", req->result );
2218 fprintf( stderr, " remove=%d,", req->remove );
2219 fprintf( stderr, " data=" );
2220 dump_varargs_bytes( cur_size );
2223 static void dump_accept_hardware_message_request( const struct accept_hardware_message_request *req )
2225 fprintf( stderr, " hw_id=%08x,", req->hw_id );
2226 fprintf( stderr, " remove=%d,", req->remove );
2227 fprintf( stderr, " new_win=%p", req->new_win );
2230 static void dump_get_message_reply_request( const struct get_message_reply_request *req )
2232 fprintf( stderr, " cancel=%d", req->cancel );
2235 static void dump_get_message_reply_reply( const struct get_message_reply_reply *req )
2237 fprintf( stderr, " result=%08x,", req->result );
2238 fprintf( stderr, " data=" );
2239 dump_varargs_bytes( cur_size );
2242 static void dump_set_win_timer_request( const struct set_win_timer_request *req )
2244 fprintf( stderr, " win=%p,", req->win );
2245 fprintf( stderr, " msg=%08x,", req->msg );
2246 fprintf( stderr, " rate=%08x,", req->rate );
2247 fprintf( stderr, " id=%lx,", req->id );
2248 fprintf( stderr, " lparam=%lx", req->lparam );
2251 static void dump_set_win_timer_reply( const struct set_win_timer_reply *req )
2253 fprintf( stderr, " id=%lx", req->id );
2256 static void dump_kill_win_timer_request( const struct kill_win_timer_request *req )
2258 fprintf( stderr, " win=%p,", req->win );
2259 fprintf( stderr, " msg=%08x,", req->msg );
2260 fprintf( stderr, " id=%lx", req->id );
2263 static void dump_get_serial_info_request( const struct get_serial_info_request *req )
2265 fprintf( stderr, " handle=%p", req->handle );
2268 static void dump_get_serial_info_reply( const struct get_serial_info_reply *req )
2270 fprintf( stderr, " readinterval=%08x,", req->readinterval );
2271 fprintf( stderr, " readconst=%08x,", req->readconst );
2272 fprintf( stderr, " readmult=%08x,", req->readmult );
2273 fprintf( stderr, " writeconst=%08x,", req->writeconst );
2274 fprintf( stderr, " writemult=%08x,", req->writemult );
2275 fprintf( stderr, " eventmask=%08x", req->eventmask );
2278 static void dump_set_serial_info_request( const struct set_serial_info_request *req )
2280 fprintf( stderr, " handle=%p,", req->handle );
2281 fprintf( stderr, " flags=%d,", req->flags );
2282 fprintf( stderr, " readinterval=%08x,", req->readinterval );
2283 fprintf( stderr, " readconst=%08x,", req->readconst );
2284 fprintf( stderr, " readmult=%08x,", req->readmult );
2285 fprintf( stderr, " writeconst=%08x,", req->writeconst );
2286 fprintf( stderr, " writemult=%08x,", req->writemult );
2287 fprintf( stderr, " eventmask=%08x", req->eventmask );
2290 static void dump_register_async_request( const struct register_async_request *req )
2292 fprintf( stderr, " handle=%p,", req->handle );
2293 fprintf( stderr, " type=%d,", req->type );
2294 fprintf( stderr, " io_apc=%p,", req->io_apc );
2295 fprintf( stderr, " io_sb=%p,", req->io_sb );
2296 fprintf( stderr, " io_user=%p,", req->io_user );
2297 fprintf( stderr, " count=%d", req->count );
2300 static void dump_cancel_async_request( const struct cancel_async_request *req )
2302 fprintf( stderr, " handle=%p", req->handle );
2305 static void dump_create_named_pipe_request( const struct create_named_pipe_request *req )
2307 fprintf( stderr, " access=%08x,", req->access );
2308 fprintf( stderr, " attributes=%08x,", req->attributes );
2309 fprintf( stderr, " rootdir=%p,", req->rootdir );
2310 fprintf( stderr, " options=%08x,", req->options );
2311 fprintf( stderr, " flags=%08x,", req->flags );
2312 fprintf( stderr, " maxinstances=%08x,", req->maxinstances );
2313 fprintf( stderr, " outsize=%08x,", req->outsize );
2314 fprintf( stderr, " insize=%08x,", req->insize );
2315 fprintf( stderr, " timeout=%08x,", req->timeout );
2316 fprintf( stderr, " name=" );
2317 dump_varargs_unicode_str( cur_size );
2320 static void dump_create_named_pipe_reply( const struct create_named_pipe_reply *req )
2322 fprintf( stderr, " handle=%p", req->handle );
2325 static void dump_open_named_pipe_request( const struct open_named_pipe_request *req )
2327 fprintf( stderr, " access=%08x,", req->access );
2328 fprintf( stderr, " attributes=%08x,", req->attributes );
2329 fprintf( stderr, " rootdir=%p,", req->rootdir );
2330 fprintf( stderr, " flags=%08x,", req->flags );
2331 fprintf( stderr, " name=" );
2332 dump_varargs_unicode_str( cur_size );
2335 static void dump_open_named_pipe_reply( const struct open_named_pipe_reply *req )
2337 fprintf( stderr, " handle=%p", req->handle );
2340 static void dump_connect_named_pipe_request( const struct connect_named_pipe_request *req )
2342 fprintf( stderr, " handle=%p,", req->handle );
2343 fprintf( stderr, " event=%p,", req->event );
2344 fprintf( stderr, " func=%p", req->func );
2347 static void dump_wait_named_pipe_request( const struct wait_named_pipe_request *req )
2349 fprintf( stderr, " handle=%p,", req->handle );
2350 fprintf( stderr, " timeout=%08x,", req->timeout );
2351 fprintf( stderr, " event=%p,", req->event );
2352 fprintf( stderr, " func=%p,", req->func );
2353 fprintf( stderr, " name=" );
2354 dump_varargs_unicode_str( cur_size );
2357 static void dump_disconnect_named_pipe_request( const struct disconnect_named_pipe_request *req )
2359 fprintf( stderr, " handle=%p", req->handle );
2362 static void dump_get_named_pipe_info_request( const struct get_named_pipe_info_request *req )
2364 fprintf( stderr, " handle=%p", req->handle );
2367 static void dump_get_named_pipe_info_reply( const struct get_named_pipe_info_reply *req )
2369 fprintf( stderr, " flags=%08x,", req->flags );
2370 fprintf( stderr, " maxinstances=%08x,", req->maxinstances );
2371 fprintf( stderr, " instances=%08x,", req->instances );
2372 fprintf( stderr, " outsize=%08x,", req->outsize );
2373 fprintf( stderr, " insize=%08x", req->insize );
2376 static void dump_create_window_request( const struct create_window_request *req )
2378 fprintf( stderr, " parent=%p,", req->parent );
2379 fprintf( stderr, " owner=%p,", req->owner );
2380 fprintf( stderr, " atom=%04x,", req->atom );
2381 fprintf( stderr, " instance=%p", req->instance );
2384 static void dump_create_window_reply( const struct create_window_reply *req )
2386 fprintf( stderr, " handle=%p,", req->handle );
2387 fprintf( stderr, " parent=%p,", req->parent );
2388 fprintf( stderr, " owner=%p,", req->owner );
2389 fprintf( stderr, " extra=%d,", req->extra );
2390 fprintf( stderr, " class_ptr=%p", req->class_ptr );
2393 static void dump_destroy_window_request( const struct destroy_window_request *req )
2395 fprintf( stderr, " handle=%p", req->handle );
2398 static void dump_get_desktop_window_request( const struct get_desktop_window_request *req )
2400 fprintf( stderr, " force=%d", req->force );
2403 static void dump_get_desktop_window_reply( const struct get_desktop_window_reply *req )
2405 fprintf( stderr, " handle=%p", req->handle );
2408 static void dump_set_window_owner_request( const struct set_window_owner_request *req )
2410 fprintf( stderr, " handle=%p,", req->handle );
2411 fprintf( stderr, " owner=%p", req->owner );
2414 static void dump_set_window_owner_reply( const struct set_window_owner_reply *req )
2416 fprintf( stderr, " full_owner=%p,", req->full_owner );
2417 fprintf( stderr, " prev_owner=%p", req->prev_owner );
2420 static void dump_get_window_info_request( const struct get_window_info_request *req )
2422 fprintf( stderr, " handle=%p", req->handle );
2425 static void dump_get_window_info_reply( const struct get_window_info_reply *req )
2427 fprintf( stderr, " full_handle=%p,", req->full_handle );
2428 fprintf( stderr, " last_active=%p,", req->last_active );
2429 fprintf( stderr, " pid=%04x,", req->pid );
2430 fprintf( stderr, " tid=%04x,", req->tid );
2431 fprintf( stderr, " atom=%04x,", req->atom );
2432 fprintf( stderr, " is_unicode=%d", req->is_unicode );
2435 static void dump_set_window_info_request( const struct set_window_info_request *req )
2437 fprintf( stderr, " flags=%08x,", req->flags );
2438 fprintf( stderr, " handle=%p,", req->handle );
2439 fprintf( stderr, " style=%08x,", req->style );
2440 fprintf( stderr, " ex_style=%08x,", req->ex_style );
2441 fprintf( stderr, " id=%08x,", req->id );
2442 fprintf( stderr, " is_unicode=%d,", req->is_unicode );
2443 fprintf( stderr, " instance=%p,", req->instance );
2444 fprintf( stderr, " user_data=%lx,", req->user_data );
2445 fprintf( stderr, " extra_offset=%d,", req->extra_offset );
2446 fprintf( stderr, " extra_size=%u,", req->extra_size );
2447 fprintf( stderr, " extra_value=%lx", req->extra_value );
2450 static void dump_set_window_info_reply( const struct set_window_info_reply *req )
2452 fprintf( stderr, " old_style=%08x,", req->old_style );
2453 fprintf( stderr, " old_ex_style=%08x,", req->old_ex_style );
2454 fprintf( stderr, " old_id=%08x,", req->old_id );
2455 fprintf( stderr, " old_instance=%p,", req->old_instance );
2456 fprintf( stderr, " old_user_data=%lx,", req->old_user_data );
2457 fprintf( stderr, " old_extra_value=%lx", req->old_extra_value );
2460 static void dump_set_parent_request( const struct set_parent_request *req )
2462 fprintf( stderr, " handle=%p,", req->handle );
2463 fprintf( stderr, " parent=%p", req->parent );
2466 static void dump_set_parent_reply( const struct set_parent_reply *req )
2468 fprintf( stderr, " old_parent=%p,", req->old_parent );
2469 fprintf( stderr, " full_parent=%p", req->full_parent );
2472 static void dump_get_window_parents_request( const struct get_window_parents_request *req )
2474 fprintf( stderr, " handle=%p", req->handle );
2477 static void dump_get_window_parents_reply( const struct get_window_parents_reply *req )
2479 fprintf( stderr, " count=%d,", req->count );
2480 fprintf( stderr, " parents=" );
2481 dump_varargs_user_handles( cur_size );
2484 static void dump_get_window_children_request( const struct get_window_children_request *req )
2486 fprintf( stderr, " parent=%p,", req->parent );
2487 fprintf( stderr, " atom=%04x,", req->atom );
2488 fprintf( stderr, " tid=%04x", req->tid );
2491 static void dump_get_window_children_reply( const struct get_window_children_reply *req )
2493 fprintf( stderr, " count=%d,", req->count );
2494 fprintf( stderr, " children=" );
2495 dump_varargs_user_handles( cur_size );
2498 static void dump_get_window_children_from_point_request( const struct get_window_children_from_point_request *req )
2500 fprintf( stderr, " parent=%p,", req->parent );
2501 fprintf( stderr, " x=%d,", req->x );
2502 fprintf( stderr, " y=%d", req->y );
2505 static void dump_get_window_children_from_point_reply( const struct get_window_children_from_point_reply *req )
2507 fprintf( stderr, " count=%d,", req->count );
2508 fprintf( stderr, " children=" );
2509 dump_varargs_user_handles( cur_size );
2512 static void dump_get_window_tree_request( const struct get_window_tree_request *req )
2514 fprintf( stderr, " handle=%p", req->handle );
2517 static void dump_get_window_tree_reply( const struct get_window_tree_reply *req )
2519 fprintf( stderr, " parent=%p,", req->parent );
2520 fprintf( stderr, " owner=%p,", req->owner );
2521 fprintf( stderr, " next_sibling=%p,", req->next_sibling );
2522 fprintf( stderr, " prev_sibling=%p,", req->prev_sibling );
2523 fprintf( stderr, " first_sibling=%p,", req->first_sibling );
2524 fprintf( stderr, " last_sibling=%p,", req->last_sibling );
2525 fprintf( stderr, " first_child=%p,", req->first_child );
2526 fprintf( stderr, " last_child=%p", req->last_child );
2529 static void dump_set_window_pos_request( const struct set_window_pos_request *req )
2531 fprintf( stderr, " flags=%08x,", req->flags );
2532 fprintf( stderr, " handle=%p,", req->handle );
2533 fprintf( stderr, " previous=%p,", req->previous );
2534 fprintf( stderr, " window=" );
2535 dump_rectangle( &req->window );
2536 fprintf( stderr, "," );
2537 fprintf( stderr, " client=" );
2538 dump_rectangle( &req->client );
2539 fprintf( stderr, "," );
2540 fprintf( stderr, " valid=" );
2541 dump_varargs_rectangles( cur_size );
2544 static void dump_set_window_pos_reply( const struct set_window_pos_reply *req )
2546 fprintf( stderr, " new_style=%08x", req->new_style );
2549 static void dump_get_window_rectangles_request( const struct get_window_rectangles_request *req )
2551 fprintf( stderr, " handle=%p", req->handle );
2554 static void dump_get_window_rectangles_reply( const struct get_window_rectangles_reply *req )
2556 fprintf( stderr, " window=" );
2557 dump_rectangle( &req->window );
2558 fprintf( stderr, "," );
2559 fprintf( stderr, " visible=" );
2560 dump_rectangle( &req->visible );
2561 fprintf( stderr, "," );
2562 fprintf( stderr, " client=" );
2563 dump_rectangle( &req->client );
2566 static void dump_get_window_text_request( const struct get_window_text_request *req )
2568 fprintf( stderr, " handle=%p", req->handle );
2571 static void dump_get_window_text_reply( const struct get_window_text_reply *req )
2573 fprintf( stderr, " text=" );
2574 dump_varargs_unicode_str( cur_size );
2577 static void dump_set_window_text_request( const struct set_window_text_request *req )
2579 fprintf( stderr, " handle=%p,", req->handle );
2580 fprintf( stderr, " text=" );
2581 dump_varargs_unicode_str( cur_size );
2584 static void dump_get_windows_offset_request( const struct get_windows_offset_request *req )
2586 fprintf( stderr, " from=%p,", req->from );
2587 fprintf( stderr, " to=%p", req->to );
2590 static void dump_get_windows_offset_reply( const struct get_windows_offset_reply *req )
2592 fprintf( stderr, " x=%d,", req->x );
2593 fprintf( stderr, " y=%d", req->y );
2596 static void dump_get_visible_region_request( const struct get_visible_region_request *req )
2598 fprintf( stderr, " window=%p,", req->window );
2599 fprintf( stderr, " flags=%08x", req->flags );
2602 static void dump_get_visible_region_reply( const struct get_visible_region_reply *req )
2604 fprintf( stderr, " top_win=%p,", req->top_win );
2605 fprintf( stderr, " top_rect=" );
2606 dump_rectangle( &req->top_rect );
2607 fprintf( stderr, "," );
2608 fprintf( stderr, " win_rect=" );
2609 dump_rectangle( &req->win_rect );
2610 fprintf( stderr, "," );
2611 fprintf( stderr, " total_size=%u,", req->total_size );
2612 fprintf( stderr, " region=" );
2613 dump_varargs_rectangles( cur_size );
2616 static void dump_get_window_region_request( const struct get_window_region_request *req )
2618 fprintf( stderr, " window=%p", req->window );
2621 static void dump_get_window_region_reply( const struct get_window_region_reply *req )
2623 fprintf( stderr, " total_size=%u,", req->total_size );
2624 fprintf( stderr, " region=" );
2625 dump_varargs_rectangles( cur_size );
2628 static void dump_set_window_region_request( const struct set_window_region_request *req )
2630 fprintf( stderr, " window=%p,", req->window );
2631 fprintf( stderr, " region=" );
2632 dump_varargs_rectangles( cur_size );
2635 static void dump_get_update_region_request( const struct get_update_region_request *req )
2637 fprintf( stderr, " window=%p,", req->window );
2638 fprintf( stderr, " from_child=%p,", req->from_child );
2639 fprintf( stderr, " flags=%08x", req->flags );
2642 static void dump_get_update_region_reply( const struct get_update_region_reply *req )
2644 fprintf( stderr, " child=%p,", req->child );
2645 fprintf( stderr, " flags=%08x,", req->flags );
2646 fprintf( stderr, " total_size=%u,", req->total_size );
2647 fprintf( stderr, " region=" );
2648 dump_varargs_rectangles( cur_size );
2651 static void dump_update_window_zorder_request( const struct update_window_zorder_request *req )
2653 fprintf( stderr, " window=%p,", req->window );
2654 fprintf( stderr, " rect=" );
2655 dump_rectangle( &req->rect );
2658 static void dump_redraw_window_request( const struct redraw_window_request *req )
2660 fprintf( stderr, " window=%p,", req->window );
2661 fprintf( stderr, " flags=%08x,", req->flags );
2662 fprintf( stderr, " region=" );
2663 dump_varargs_rectangles( cur_size );
2666 static void dump_set_window_property_request( const struct set_window_property_request *req )
2668 fprintf( stderr, " window=%p,", req->window );
2669 fprintf( stderr, " atom=%04x,", req->atom );
2670 fprintf( stderr, " handle=%p,", req->handle );
2671 fprintf( stderr, " name=" );
2672 dump_varargs_unicode_str( cur_size );
2675 static void dump_remove_window_property_request( const struct remove_window_property_request *req )
2677 fprintf( stderr, " window=%p,", req->window );
2678 fprintf( stderr, " atom=%04x,", req->atom );
2679 fprintf( stderr, " name=" );
2680 dump_varargs_unicode_str( cur_size );
2683 static void dump_remove_window_property_reply( const struct remove_window_property_reply *req )
2685 fprintf( stderr, " handle=%p", req->handle );
2688 static void dump_get_window_property_request( const struct get_window_property_request *req )
2690 fprintf( stderr, " window=%p,", req->window );
2691 fprintf( stderr, " atom=%04x,", req->atom );
2692 fprintf( stderr, " name=" );
2693 dump_varargs_unicode_str( cur_size );
2696 static void dump_get_window_property_reply( const struct get_window_property_reply *req )
2698 fprintf( stderr, " handle=%p", req->handle );
2701 static void dump_get_window_properties_request( const struct get_window_properties_request *req )
2703 fprintf( stderr, " window=%p", req->window );
2706 static void dump_get_window_properties_reply( const struct get_window_properties_reply *req )
2708 fprintf( stderr, " total=%d,", req->total );
2709 fprintf( stderr, " props=" );
2710 dump_varargs_properties( cur_size );
2713 static void dump_create_winstation_request( const struct create_winstation_request *req )
2715 fprintf( stderr, " flags=%08x,", req->flags );
2716 fprintf( stderr, " access=%08x,", req->access );
2717 fprintf( stderr, " attributes=%08x,", req->attributes );
2718 fprintf( stderr, " name=" );
2719 dump_varargs_unicode_str( cur_size );
2722 static void dump_create_winstation_reply( const struct create_winstation_reply *req )
2724 fprintf( stderr, " handle=%p", req->handle );
2727 static void dump_open_winstation_request( const struct open_winstation_request *req )
2729 fprintf( stderr, " access=%08x,", req->access );
2730 fprintf( stderr, " attributes=%08x,", req->attributes );
2731 fprintf( stderr, " name=" );
2732 dump_varargs_unicode_str( cur_size );
2735 static void dump_open_winstation_reply( const struct open_winstation_reply *req )
2737 fprintf( stderr, " handle=%p", req->handle );
2740 static void dump_close_winstation_request( const struct close_winstation_request *req )
2742 fprintf( stderr, " handle=%p", req->handle );
2745 static void dump_get_process_winstation_request( const struct get_process_winstation_request *req )
2749 static void dump_get_process_winstation_reply( const struct get_process_winstation_reply *req )
2751 fprintf( stderr, " handle=%p", req->handle );
2754 static void dump_set_process_winstation_request( const struct set_process_winstation_request *req )
2756 fprintf( stderr, " handle=%p", req->handle );
2759 static void dump_create_desktop_request( const struct create_desktop_request *req )
2761 fprintf( stderr, " flags=%08x,", req->flags );
2762 fprintf( stderr, " access=%08x,", req->access );
2763 fprintf( stderr, " attributes=%08x,", req->attributes );
2764 fprintf( stderr, " name=" );
2765 dump_varargs_unicode_str( cur_size );
2768 static void dump_create_desktop_reply( const struct create_desktop_reply *req )
2770 fprintf( stderr, " handle=%p", req->handle );
2773 static void dump_open_desktop_request( const struct open_desktop_request *req )
2775 fprintf( stderr, " flags=%08x,", req->flags );
2776 fprintf( stderr, " access=%08x,", req->access );
2777 fprintf( stderr, " attributes=%08x,", req->attributes );
2778 fprintf( stderr, " name=" );
2779 dump_varargs_unicode_str( cur_size );
2782 static void dump_open_desktop_reply( const struct open_desktop_reply *req )
2784 fprintf( stderr, " handle=%p", req->handle );
2787 static void dump_close_desktop_request( const struct close_desktop_request *req )
2789 fprintf( stderr, " handle=%p", req->handle );
2792 static void dump_get_thread_desktop_request( const struct get_thread_desktop_request *req )
2794 fprintf( stderr, " tid=%04x", req->tid );
2797 static void dump_get_thread_desktop_reply( const struct get_thread_desktop_reply *req )
2799 fprintf( stderr, " handle=%p", req->handle );
2802 static void dump_set_thread_desktop_request( const struct set_thread_desktop_request *req )
2804 fprintf( stderr, " handle=%p", req->handle );
2807 static void dump_set_user_object_info_request( const struct set_user_object_info_request *req )
2809 fprintf( stderr, " handle=%p,", req->handle );
2810 fprintf( stderr, " flags=%08x,", req->flags );
2811 fprintf( stderr, " obj_flags=%08x", req->obj_flags );
2814 static void dump_set_user_object_info_reply( const struct set_user_object_info_reply *req )
2816 fprintf( stderr, " is_desktop=%d,", req->is_desktop );
2817 fprintf( stderr, " old_obj_flags=%08x,", req->old_obj_flags );
2818 fprintf( stderr, " name=" );
2819 dump_varargs_unicode_str( cur_size );
2822 static void dump_attach_thread_input_request( const struct attach_thread_input_request *req )
2824 fprintf( stderr, " tid_from=%04x,", req->tid_from );
2825 fprintf( stderr, " tid_to=%04x,", req->tid_to );
2826 fprintf( stderr, " attach=%d", req->attach );
2829 static void dump_get_thread_input_request( const struct get_thread_input_request *req )
2831 fprintf( stderr, " tid=%04x", req->tid );
2834 static void dump_get_thread_input_reply( const struct get_thread_input_reply *req )
2836 fprintf( stderr, " focus=%p,", req->focus );
2837 fprintf( stderr, " capture=%p,", req->capture );
2838 fprintf( stderr, " active=%p,", req->active );
2839 fprintf( stderr, " foreground=%p,", req->foreground );
2840 fprintf( stderr, " menu_owner=%p,", req->menu_owner );
2841 fprintf( stderr, " move_size=%p,", req->move_size );
2842 fprintf( stderr, " caret=%p,", req->caret );
2843 fprintf( stderr, " rect=" );
2844 dump_rectangle( &req->rect );
2847 static void dump_get_last_input_time_request( const struct get_last_input_time_request *req )
2851 static void dump_get_last_input_time_reply( const struct get_last_input_time_reply *req )
2853 fprintf( stderr, " time=%08x", req->time );
2856 static void dump_get_key_state_request( const struct get_key_state_request *req )
2858 fprintf( stderr, " tid=%04x,", req->tid );
2859 fprintf( stderr, " key=%d", req->key );
2862 static void dump_get_key_state_reply( const struct get_key_state_reply *req )
2864 fprintf( stderr, " state=%02x,", req->state );
2865 fprintf( stderr, " keystate=" );
2866 dump_varargs_bytes( cur_size );
2869 static void dump_set_key_state_request( const struct set_key_state_request *req )
2871 fprintf( stderr, " tid=%04x,", req->tid );
2872 fprintf( stderr, " keystate=" );
2873 dump_varargs_bytes( cur_size );
2876 static void dump_set_foreground_window_request( const struct set_foreground_window_request *req )
2878 fprintf( stderr, " handle=%p", req->handle );
2881 static void dump_set_foreground_window_reply( const struct set_foreground_window_reply *req )
2883 fprintf( stderr, " previous=%p,", req->previous );
2884 fprintf( stderr, " send_msg_old=%d,", req->send_msg_old );
2885 fprintf( stderr, " send_msg_new=%d", req->send_msg_new );
2888 static void dump_set_focus_window_request( const struct set_focus_window_request *req )
2890 fprintf( stderr, " handle=%p", req->handle );
2893 static void dump_set_focus_window_reply( const struct set_focus_window_reply *req )
2895 fprintf( stderr, " previous=%p", req->previous );
2898 static void dump_set_active_window_request( const struct set_active_window_request *req )
2900 fprintf( stderr, " handle=%p", req->handle );
2903 static void dump_set_active_window_reply( const struct set_active_window_reply *req )
2905 fprintf( stderr, " previous=%p", req->previous );
2908 static void dump_set_capture_window_request( const struct set_capture_window_request *req )
2910 fprintf( stderr, " handle=%p,", req->handle );
2911 fprintf( stderr, " flags=%08x", req->flags );
2914 static void dump_set_capture_window_reply( const struct set_capture_window_reply *req )
2916 fprintf( stderr, " previous=%p,", req->previous );
2917 fprintf( stderr, " full_handle=%p", req->full_handle );
2920 static void dump_set_caret_window_request( const struct set_caret_window_request *req )
2922 fprintf( stderr, " handle=%p,", req->handle );
2923 fprintf( stderr, " width=%d,", req->width );
2924 fprintf( stderr, " height=%d", req->height );
2927 static void dump_set_caret_window_reply( const struct set_caret_window_reply *req )
2929 fprintf( stderr, " previous=%p,", req->previous );
2930 fprintf( stderr, " old_rect=" );
2931 dump_rectangle( &req->old_rect );
2932 fprintf( stderr, "," );
2933 fprintf( stderr, " old_hide=%d,", req->old_hide );
2934 fprintf( stderr, " old_state=%d", req->old_state );
2937 static void dump_set_caret_info_request( const struct set_caret_info_request *req )
2939 fprintf( stderr, " flags=%08x,", req->flags );
2940 fprintf( stderr, " handle=%p,", req->handle );
2941 fprintf( stderr, " x=%d,", req->x );
2942 fprintf( stderr, " y=%d,", req->y );
2943 fprintf( stderr, " hide=%d,", req->hide );
2944 fprintf( stderr, " state=%d", req->state );
2947 static void dump_set_caret_info_reply( const struct set_caret_info_reply *req )
2949 fprintf( stderr, " full_handle=%p,", req->full_handle );
2950 fprintf( stderr, " old_rect=" );
2951 dump_rectangle( &req->old_rect );
2952 fprintf( stderr, "," );
2953 fprintf( stderr, " old_hide=%d,", req->old_hide );
2954 fprintf( stderr, " old_state=%d", req->old_state );
2957 static void dump_set_hook_request( const struct set_hook_request *req )
2959 fprintf( stderr, " id=%d,", req->id );
2960 fprintf( stderr, " pid=%04x,", req->pid );
2961 fprintf( stderr, " tid=%04x,", req->tid );
2962 fprintf( stderr, " event_min=%d,", req->event_min );
2963 fprintf( stderr, " event_max=%d,", req->event_max );
2964 fprintf( stderr, " flags=%d,", req->flags );
2965 fprintf( stderr, " proc=%p,", req->proc );
2966 fprintf( stderr, " unicode=%d,", req->unicode );
2967 fprintf( stderr, " module=" );
2968 dump_varargs_unicode_str( cur_size );
2971 static void dump_set_hook_reply( const struct set_hook_reply *req )
2973 fprintf( stderr, " handle=%p,", req->handle );
2974 fprintf( stderr, " active_hooks=%08x", req->active_hooks );
2977 static void dump_remove_hook_request( const struct remove_hook_request *req )
2979 fprintf( stderr, " handle=%p,", req->handle );
2980 fprintf( stderr, " id=%d,", req->id );
2981 fprintf( stderr, " proc=%p", req->proc );
2984 static void dump_remove_hook_reply( const struct remove_hook_reply *req )
2986 fprintf( stderr, " active_hooks=%08x", req->active_hooks );
2989 static void dump_start_hook_chain_request( const struct start_hook_chain_request *req )
2991 fprintf( stderr, " id=%d,", req->id );
2992 fprintf( stderr, " event=%d,", req->event );
2993 fprintf( stderr, " window=%p,", req->window );
2994 fprintf( stderr, " object_id=%d,", req->object_id );
2995 fprintf( stderr, " child_id=%d", req->child_id );
2998 static void dump_start_hook_chain_reply( const struct start_hook_chain_reply *req )
3000 fprintf( stderr, " handle=%p,", req->handle );
3001 fprintf( stderr, " pid=%04x,", req->pid );
3002 fprintf( stderr, " tid=%04x,", req->tid );
3003 fprintf( stderr, " proc=%p,", req->proc );
3004 fprintf( stderr, " unicode=%d,", req->unicode );
3005 fprintf( stderr, " active_hooks=%08x,", req->active_hooks );
3006 fprintf( stderr, " module=" );
3007 dump_varargs_unicode_str( cur_size );
3010 static void dump_finish_hook_chain_request( const struct finish_hook_chain_request *req )
3012 fprintf( stderr, " id=%d", req->id );
3015 static void dump_get_hook_info_request( const struct get_hook_info_request *req )
3017 fprintf( stderr, " handle=%p,", req->handle );
3018 fprintf( stderr, " get_next=%d,", req->get_next );
3019 fprintf( stderr, " event=%d,", req->event );
3020 fprintf( stderr, " window=%p,", req->window );
3021 fprintf( stderr, " object_id=%d,", req->object_id );
3022 fprintf( stderr, " child_id=%d", req->child_id );
3025 static void dump_get_hook_info_reply( const struct get_hook_info_reply *req )
3027 fprintf( stderr, " handle=%p,", req->handle );
3028 fprintf( stderr, " id=%d,", req->id );
3029 fprintf( stderr, " pid=%04x,", req->pid );
3030 fprintf( stderr, " tid=%04x,", req->tid );
3031 fprintf( stderr, " proc=%p,", req->proc );
3032 fprintf( stderr, " unicode=%d,", req->unicode );
3033 fprintf( stderr, " module=" );
3034 dump_varargs_unicode_str( cur_size );
3037 static void dump_create_class_request( const struct create_class_request *req )
3039 fprintf( stderr, " local=%d,", req->local );
3040 fprintf( stderr, " atom=%04x,", req->atom );
3041 fprintf( stderr, " style=%08x,", req->style );
3042 fprintf( stderr, " instance=%p,", req->instance );
3043 fprintf( stderr, " extra=%d,", req->extra );
3044 fprintf( stderr, " win_extra=%d,", req->win_extra );
3045 fprintf( stderr, " client_ptr=%p", req->client_ptr );
3048 static void dump_destroy_class_request( const struct destroy_class_request *req )
3050 fprintf( stderr, " atom=%04x,", req->atom );
3051 fprintf( stderr, " instance=%p", req->instance );
3054 static void dump_destroy_class_reply( const struct destroy_class_reply *req )
3056 fprintf( stderr, " client_ptr=%p", req->client_ptr );
3059 static void dump_set_class_info_request( const struct set_class_info_request *req )
3061 fprintf( stderr, " window=%p,", req->window );
3062 fprintf( stderr, " flags=%08x,", req->flags );
3063 fprintf( stderr, " atom=%04x,", req->atom );
3064 fprintf( stderr, " style=%08x,", req->style );
3065 fprintf( stderr, " win_extra=%d,", req->win_extra );
3066 fprintf( stderr, " instance=%p,", req->instance );
3067 fprintf( stderr, " extra_offset=%d,", req->extra_offset );
3068 fprintf( stderr, " extra_size=%u,", req->extra_size );
3069 fprintf( stderr, " extra_value=%lx", req->extra_value );
3072 static void dump_set_class_info_reply( const struct set_class_info_reply *req )
3074 fprintf( stderr, " old_atom=%04x,", req->old_atom );
3075 fprintf( stderr, " old_style=%08x,", req->old_style );
3076 fprintf( stderr, " old_extra=%d,", req->old_extra );
3077 fprintf( stderr, " old_win_extra=%d,", req->old_win_extra );
3078 fprintf( stderr, " old_instance=%p,", req->old_instance );
3079 fprintf( stderr, " old_extra_value=%lx", req->old_extra_value );
3082 static void dump_set_clipboard_info_request( const struct set_clipboard_info_request *req )
3084 fprintf( stderr, " flags=%08x,", req->flags );
3085 fprintf( stderr, " clipboard=%p,", req->clipboard );
3086 fprintf( stderr, " owner=%p,", req->owner );
3087 fprintf( stderr, " viewer=%p,", req->viewer );
3088 fprintf( stderr, " seqno=%08x", req->seqno );
3091 static void dump_set_clipboard_info_reply( const struct set_clipboard_info_reply *req )
3093 fprintf( stderr, " flags=%08x,", req->flags );
3094 fprintf( stderr, " old_clipboard=%p,", req->old_clipboard );
3095 fprintf( stderr, " old_owner=%p,", req->old_owner );
3096 fprintf( stderr, " old_viewer=%p,", req->old_viewer );
3097 fprintf( stderr, " seqno=%08x", req->seqno );
3100 static void dump_open_token_request( const struct open_token_request *req )
3102 fprintf( stderr, " handle=%p,", req->handle );
3103 fprintf( stderr, " access=%08x,", req->access );
3104 fprintf( stderr, " attributes=%08x,", req->attributes );
3105 fprintf( stderr, " flags=%08x", req->flags );
3108 static void dump_open_token_reply( const struct open_token_reply *req )
3110 fprintf( stderr, " token=%p", req->token );
3113 static void dump_set_global_windows_request( const struct set_global_windows_request *req )
3115 fprintf( stderr, " flags=%08x,", req->flags );
3116 fprintf( stderr, " shell_window=%p,", req->shell_window );
3117 fprintf( stderr, " shell_listview=%p,", req->shell_listview );
3118 fprintf( stderr, " progman_window=%p,", req->progman_window );
3119 fprintf( stderr, " taskman_window=%p", req->taskman_window );
3122 static void dump_set_global_windows_reply( const struct set_global_windows_reply *req )
3124 fprintf( stderr, " old_shell_window=%p,", req->old_shell_window );
3125 fprintf( stderr, " old_shell_listview=%p,", req->old_shell_listview );
3126 fprintf( stderr, " old_progman_window=%p,", req->old_progman_window );
3127 fprintf( stderr, " old_taskman_window=%p", req->old_taskman_window );
3130 static void dump_adjust_token_privileges_request( const struct adjust_token_privileges_request *req )
3132 fprintf( stderr, " handle=%p,", req->handle );
3133 fprintf( stderr, " disable_all=%d,", req->disable_all );
3134 fprintf( stderr, " get_modified_state=%d,", req->get_modified_state );
3135 fprintf( stderr, " privileges=" );
3136 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
3139 static void dump_adjust_token_privileges_reply( const struct adjust_token_privileges_reply *req )
3141 fprintf( stderr, " len=%08x,", req->len );
3142 fprintf( stderr, " privileges=" );
3143 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
3146 static void dump_get_token_privileges_request( const struct get_token_privileges_request *req )
3148 fprintf( stderr, " handle=%p", req->handle );
3151 static void dump_get_token_privileges_reply( const struct get_token_privileges_reply *req )
3153 fprintf( stderr, " len=%08x,", req->len );
3154 fprintf( stderr, " privileges=" );
3155 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
3158 static void dump_check_token_privileges_request( const struct check_token_privileges_request *req )
3160 fprintf( stderr, " handle=%p,", req->handle );
3161 fprintf( stderr, " all_required=%d,", req->all_required );
3162 fprintf( stderr, " privileges=" );
3163 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
3166 static void dump_check_token_privileges_reply( const struct check_token_privileges_reply *req )
3168 fprintf( stderr, " has_privileges=%d,", req->has_privileges );
3169 fprintf( stderr, " privileges=" );
3170 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
3173 static void dump_duplicate_token_request( const struct duplicate_token_request *req )
3175 fprintf( stderr, " handle=%p,", req->handle );
3176 fprintf( stderr, " access=%08x,", req->access );
3177 fprintf( stderr, " attributes=%08x,", req->attributes );
3178 fprintf( stderr, " primary=%d,", req->primary );
3179 fprintf( stderr, " impersonation_level=%d", req->impersonation_level );
3182 static void dump_duplicate_token_reply( const struct duplicate_token_reply *req )
3184 fprintf( stderr, " new_handle=%p", req->new_handle );
3187 static void dump_access_check_request( const struct access_check_request *req )
3189 fprintf( stderr, " handle=%p,", req->handle );
3190 fprintf( stderr, " desired_access=%08x,", req->desired_access );
3191 fprintf( stderr, " mapping_read=%08x,", req->mapping_read );
3192 fprintf( stderr, " mapping_write=%08x,", req->mapping_write );
3193 fprintf( stderr, " mapping_execute=%08x,", req->mapping_execute );
3194 fprintf( stderr, " mapping_all=%08x,", req->mapping_all );
3195 fprintf( stderr, " sd=" );
3196 dump_varargs_security_descriptor( cur_size );
3199 static void dump_access_check_reply( const struct access_check_reply *req )
3201 fprintf( stderr, " access_granted=%08x,", req->access_granted );
3202 fprintf( stderr, " access_status=%08x,", req->access_status );
3203 fprintf( stderr, " privileges_len=%08x,", req->privileges_len );
3204 fprintf( stderr, " privileges=" );
3205 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
3208 static void dump_get_token_user_request( const struct get_token_user_request *req )
3210 fprintf( stderr, " handle=%p", req->handle );
3213 static void dump_get_token_user_reply( const struct get_token_user_reply *req )
3215 fprintf( stderr, " user_len=%u,", req->user_len );
3216 fprintf( stderr, " user=" );
3217 dump_varargs_SID( cur_size );
3220 static void dump_get_token_groups_request( const struct get_token_groups_request *req )
3222 fprintf( stderr, " handle=%p", req->handle );
3225 static void dump_get_token_groups_reply( const struct get_token_groups_reply *req )
3227 fprintf( stderr, " user_len=%u,", req->user_len );
3228 fprintf( stderr, " user=" );
3229 dump_varargs_token_groups( cur_size );
3232 static void dump_create_mailslot_request( const struct create_mailslot_request *req )
3234 fprintf( stderr, " access=%08x,", req->access );
3235 fprintf( stderr, " attributes=%08x,", req->attributes );
3236 fprintf( stderr, " rootdir=%p,", req->rootdir );
3237 fprintf( stderr, " max_msgsize=%08x,", req->max_msgsize );
3238 fprintf( stderr, " read_timeout=%d,", req->read_timeout );
3239 fprintf( stderr, " name=" );
3240 dump_varargs_unicode_str( cur_size );
3243 static void dump_create_mailslot_reply( const struct create_mailslot_reply *req )
3245 fprintf( stderr, " handle=%p", req->handle );
3248 static void dump_open_mailslot_request( const struct open_mailslot_request *req )
3250 fprintf( stderr, " access=%08x,", req->access );
3251 fprintf( stderr, " attributes=%08x,", req->attributes );
3252 fprintf( stderr, " rootdir=%p,", req->rootdir );
3253 fprintf( stderr, " sharing=%08x,", req->sharing );
3254 fprintf( stderr, " name=" );
3255 dump_varargs_unicode_str( cur_size );
3258 static void dump_open_mailslot_reply( const struct open_mailslot_reply *req )
3260 fprintf( stderr, " handle=%p", req->handle );
3263 static void dump_set_mailslot_info_request( const struct set_mailslot_info_request *req )
3265 fprintf( stderr, " handle=%p,", req->handle );
3266 fprintf( stderr, " flags=%08x,", req->flags );
3267 fprintf( stderr, " read_timeout=%d", req->read_timeout );
3270 static void dump_set_mailslot_info_reply( const struct set_mailslot_info_reply *req )
3272 fprintf( stderr, " max_msgsize=%08x,", req->max_msgsize );
3273 fprintf( stderr, " read_timeout=%d", req->read_timeout );
3276 static void dump_create_directory_request( const struct create_directory_request *req )
3278 fprintf( stderr, " access=%08x,", req->access );
3279 fprintf( stderr, " attributes=%08x,", req->attributes );
3280 fprintf( stderr, " rootdir=%p,", req->rootdir );
3281 fprintf( stderr, " directory_name=" );
3282 dump_varargs_unicode_str( cur_size );
3285 static void dump_create_directory_reply( const struct create_directory_reply *req )
3287 fprintf( stderr, " handle=%p", req->handle );
3290 static void dump_open_directory_request( const struct open_directory_request *req )
3292 fprintf( stderr, " access=%08x,", req->access );
3293 fprintf( stderr, " attributes=%08x,", req->attributes );
3294 fprintf( stderr, " rootdir=%p,", req->rootdir );
3295 fprintf( stderr, " directory_name=" );
3296 dump_varargs_unicode_str( cur_size );
3299 static void dump_open_directory_reply( const struct open_directory_reply *req )
3301 fprintf( stderr, " handle=%p", req->handle );
3304 static void dump_create_symlink_request( const struct create_symlink_request *req )
3306 fprintf( stderr, " access=%08x,", req->access );
3307 fprintf( stderr, " attributes=%08x,", req->attributes );
3308 fprintf( stderr, " rootdir=%p,", req->rootdir );
3309 fprintf( stderr, " name_len=%u,", req->name_len );
3310 fprintf( stderr, " name=" );
3311 dump_varargs_unicode_str( min(cur_size,req->name_len) );
3312 fputc( ',', stderr );
3313 fprintf( stderr, " target_name=" );
3314 dump_varargs_unicode_str( cur_size );
3317 static void dump_create_symlink_reply( const struct create_symlink_reply *req )
3319 fprintf( stderr, " handle=%p", req->handle );
3322 static void dump_open_symlink_request( const struct open_symlink_request *req )
3324 fprintf( stderr, " access=%08x,", req->access );
3325 fprintf( stderr, " attributes=%08x,", req->attributes );
3326 fprintf( stderr, " rootdir=%p,", req->rootdir );
3327 fprintf( stderr, " name=" );
3328 dump_varargs_unicode_str( cur_size );
3331 static void dump_open_symlink_reply( const struct open_symlink_reply *req )
3333 fprintf( stderr, " handle=%p", req->handle );
3336 static void dump_query_symlink_request( const struct query_symlink_request *req )
3338 fprintf( stderr, " handle=%p", req->handle );
3341 static void dump_query_symlink_reply( const struct query_symlink_reply *req )
3343 fprintf( stderr, " target_name=" );
3344 dump_varargs_unicode_str( cur_size );
3347 static const dump_func req_dumpers[REQ_NB_REQUESTS] = {
3348 (dump_func)dump_new_process_request,
3349 (dump_func)dump_get_new_process_info_request,
3350 (dump_func)dump_new_thread_request,
3351 (dump_func)dump_get_startup_info_request,
3352 (dump_func)dump_init_process_done_request,
3353 (dump_func)dump_init_thread_request,
3354 (dump_func)dump_terminate_process_request,
3355 (dump_func)dump_terminate_thread_request,
3356 (dump_func)dump_get_process_info_request,
3357 (dump_func)dump_set_process_info_request,
3358 (dump_func)dump_get_thread_info_request,
3359 (dump_func)dump_set_thread_info_request,
3360 (dump_func)dump_get_dll_info_request,
3361 (dump_func)dump_suspend_thread_request,
3362 (dump_func)dump_resume_thread_request,
3363 (dump_func)dump_load_dll_request,
3364 (dump_func)dump_unload_dll_request,
3365 (dump_func)dump_queue_apc_request,
3366 (dump_func)dump_get_apc_request,
3367 (dump_func)dump_get_apc_result_request,
3368 (dump_func)dump_close_handle_request,
3369 (dump_func)dump_set_handle_info_request,
3370 (dump_func)dump_dup_handle_request,
3371 (dump_func)dump_open_process_request,
3372 (dump_func)dump_open_thread_request,
3373 (dump_func)dump_select_request,
3374 (dump_func)dump_create_event_request,
3375 (dump_func)dump_event_op_request,
3376 (dump_func)dump_open_event_request,
3377 (dump_func)dump_create_mutex_request,
3378 (dump_func)dump_release_mutex_request,
3379 (dump_func)dump_open_mutex_request,
3380 (dump_func)dump_create_semaphore_request,
3381 (dump_func)dump_release_semaphore_request,
3382 (dump_func)dump_open_semaphore_request,
3383 (dump_func)dump_create_file_request,
3384 (dump_func)dump_open_file_object_request,
3385 (dump_func)dump_alloc_file_handle_request,
3386 (dump_func)dump_get_handle_fd_request,
3387 (dump_func)dump_flush_file_request,
3388 (dump_func)dump_lock_file_request,
3389 (dump_func)dump_unlock_file_request,
3390 (dump_func)dump_unmount_device_request,
3391 (dump_func)dump_create_socket_request,
3392 (dump_func)dump_accept_socket_request,
3393 (dump_func)dump_set_socket_event_request,
3394 (dump_func)dump_get_socket_event_request,
3395 (dump_func)dump_enable_socket_event_request,
3396 (dump_func)dump_set_socket_deferred_request,
3397 (dump_func)dump_alloc_console_request,
3398 (dump_func)dump_free_console_request,
3399 (dump_func)dump_get_console_renderer_events_request,
3400 (dump_func)dump_open_console_request,
3401 (dump_func)dump_get_console_wait_event_request,
3402 (dump_func)dump_get_console_mode_request,
3403 (dump_func)dump_set_console_mode_request,
3404 (dump_func)dump_set_console_input_info_request,
3405 (dump_func)dump_get_console_input_info_request,
3406 (dump_func)dump_append_console_input_history_request,
3407 (dump_func)dump_get_console_input_history_request,
3408 (dump_func)dump_create_console_output_request,
3409 (dump_func)dump_set_console_output_info_request,
3410 (dump_func)dump_get_console_output_info_request,
3411 (dump_func)dump_write_console_input_request,
3412 (dump_func)dump_read_console_input_request,
3413 (dump_func)dump_write_console_output_request,
3414 (dump_func)dump_fill_console_output_request,
3415 (dump_func)dump_read_console_output_request,
3416 (dump_func)dump_move_console_output_request,
3417 (dump_func)dump_send_console_signal_request,
3418 (dump_func)dump_read_directory_changes_request,
3419 (dump_func)dump_read_change_request,
3420 (dump_func)dump_create_mapping_request,
3421 (dump_func)dump_open_mapping_request,
3422 (dump_func)dump_get_mapping_info_request,
3423 (dump_func)dump_create_snapshot_request,
3424 (dump_func)dump_next_process_request,
3425 (dump_func)dump_next_thread_request,
3426 (dump_func)dump_next_module_request,
3427 (dump_func)dump_wait_debug_event_request,
3428 (dump_func)dump_queue_exception_event_request,
3429 (dump_func)dump_get_exception_status_request,
3430 (dump_func)dump_output_debug_string_request,
3431 (dump_func)dump_continue_debug_event_request,
3432 (dump_func)dump_debug_process_request,
3433 (dump_func)dump_debug_break_request,
3434 (dump_func)dump_set_debugger_kill_on_exit_request,
3435 (dump_func)dump_read_process_memory_request,
3436 (dump_func)dump_write_process_memory_request,
3437 (dump_func)dump_create_key_request,
3438 (dump_func)dump_open_key_request,
3439 (dump_func)dump_delete_key_request,
3440 (dump_func)dump_flush_key_request,
3441 (dump_func)dump_enum_key_request,
3442 (dump_func)dump_set_key_value_request,
3443 (dump_func)dump_get_key_value_request,
3444 (dump_func)dump_enum_key_value_request,
3445 (dump_func)dump_delete_key_value_request,
3446 (dump_func)dump_load_registry_request,
3447 (dump_func)dump_unload_registry_request,
3448 (dump_func)dump_save_registry_request,
3449 (dump_func)dump_set_registry_notification_request,
3450 (dump_func)dump_create_timer_request,
3451 (dump_func)dump_open_timer_request,
3452 (dump_func)dump_set_timer_request,
3453 (dump_func)dump_cancel_timer_request,
3454 (dump_func)dump_get_timer_info_request,
3455 (dump_func)dump_get_thread_context_request,
3456 (dump_func)dump_set_thread_context_request,
3457 (dump_func)dump_get_selector_entry_request,
3458 (dump_func)dump_add_atom_request,
3459 (dump_func)dump_delete_atom_request,
3460 (dump_func)dump_find_atom_request,
3461 (dump_func)dump_get_atom_information_request,
3462 (dump_func)dump_set_atom_information_request,
3463 (dump_func)dump_empty_atom_table_request,
3464 (dump_func)dump_init_atom_table_request,
3465 (dump_func)dump_get_msg_queue_request,
3466 (dump_func)dump_set_queue_mask_request,
3467 (dump_func)dump_get_queue_status_request,
3468 (dump_func)dump_get_process_idle_event_request,
3469 (dump_func)dump_send_message_request,
3470 (dump_func)dump_post_quit_message_request,
3471 (dump_func)dump_send_hardware_message_request,
3472 (dump_func)dump_get_message_request,
3473 (dump_func)dump_reply_message_request,
3474 (dump_func)dump_accept_hardware_message_request,
3475 (dump_func)dump_get_message_reply_request,
3476 (dump_func)dump_set_win_timer_request,
3477 (dump_func)dump_kill_win_timer_request,
3478 (dump_func)dump_get_serial_info_request,
3479 (dump_func)dump_set_serial_info_request,
3480 (dump_func)dump_register_async_request,
3481 (dump_func)dump_cancel_async_request,
3482 (dump_func)dump_create_named_pipe_request,
3483 (dump_func)dump_open_named_pipe_request,
3484 (dump_func)dump_connect_named_pipe_request,
3485 (dump_func)dump_wait_named_pipe_request,
3486 (dump_func)dump_disconnect_named_pipe_request,
3487 (dump_func)dump_get_named_pipe_info_request,
3488 (dump_func)dump_create_window_request,
3489 (dump_func)dump_destroy_window_request,
3490 (dump_func)dump_get_desktop_window_request,
3491 (dump_func)dump_set_window_owner_request,
3492 (dump_func)dump_get_window_info_request,
3493 (dump_func)dump_set_window_info_request,
3494 (dump_func)dump_set_parent_request,
3495 (dump_func)dump_get_window_parents_request,
3496 (dump_func)dump_get_window_children_request,
3497 (dump_func)dump_get_window_children_from_point_request,
3498 (dump_func)dump_get_window_tree_request,
3499 (dump_func)dump_set_window_pos_request,
3500 (dump_func)dump_get_window_rectangles_request,
3501 (dump_func)dump_get_window_text_request,
3502 (dump_func)dump_set_window_text_request,
3503 (dump_func)dump_get_windows_offset_request,
3504 (dump_func)dump_get_visible_region_request,
3505 (dump_func)dump_get_window_region_request,
3506 (dump_func)dump_set_window_region_request,
3507 (dump_func)dump_get_update_region_request,
3508 (dump_func)dump_update_window_zorder_request,
3509 (dump_func)dump_redraw_window_request,
3510 (dump_func)dump_set_window_property_request,
3511 (dump_func)dump_remove_window_property_request,
3512 (dump_func)dump_get_window_property_request,
3513 (dump_func)dump_get_window_properties_request,
3514 (dump_func)dump_create_winstation_request,
3515 (dump_func)dump_open_winstation_request,
3516 (dump_func)dump_close_winstation_request,
3517 (dump_func)dump_get_process_winstation_request,
3518 (dump_func)dump_set_process_winstation_request,
3519 (dump_func)dump_create_desktop_request,
3520 (dump_func)dump_open_desktop_request,
3521 (dump_func)dump_close_desktop_request,
3522 (dump_func)dump_get_thread_desktop_request,
3523 (dump_func)dump_set_thread_desktop_request,
3524 (dump_func)dump_set_user_object_info_request,
3525 (dump_func)dump_attach_thread_input_request,
3526 (dump_func)dump_get_thread_input_request,
3527 (dump_func)dump_get_last_input_time_request,
3528 (dump_func)dump_get_key_state_request,
3529 (dump_func)dump_set_key_state_request,
3530 (dump_func)dump_set_foreground_window_request,
3531 (dump_func)dump_set_focus_window_request,
3532 (dump_func)dump_set_active_window_request,
3533 (dump_func)dump_set_capture_window_request,
3534 (dump_func)dump_set_caret_window_request,
3535 (dump_func)dump_set_caret_info_request,
3536 (dump_func)dump_set_hook_request,
3537 (dump_func)dump_remove_hook_request,
3538 (dump_func)dump_start_hook_chain_request,
3539 (dump_func)dump_finish_hook_chain_request,
3540 (dump_func)dump_get_hook_info_request,
3541 (dump_func)dump_create_class_request,
3542 (dump_func)dump_destroy_class_request,
3543 (dump_func)dump_set_class_info_request,
3544 (dump_func)dump_set_clipboard_info_request,
3545 (dump_func)dump_open_token_request,
3546 (dump_func)dump_set_global_windows_request,
3547 (dump_func)dump_adjust_token_privileges_request,
3548 (dump_func)dump_get_token_privileges_request,
3549 (dump_func)dump_check_token_privileges_request,
3550 (dump_func)dump_duplicate_token_request,
3551 (dump_func)dump_access_check_request,
3552 (dump_func)dump_get_token_user_request,
3553 (dump_func)dump_get_token_groups_request,
3554 (dump_func)dump_create_mailslot_request,
3555 (dump_func)dump_open_mailslot_request,
3556 (dump_func)dump_set_mailslot_info_request,
3557 (dump_func)dump_create_directory_request,
3558 (dump_func)dump_open_directory_request,
3559 (dump_func)dump_create_symlink_request,
3560 (dump_func)dump_open_symlink_request,
3561 (dump_func)dump_query_symlink_request,
3564 static const dump_func reply_dumpers[REQ_NB_REQUESTS] = {
3565 (dump_func)dump_new_process_reply,
3566 (dump_func)dump_get_new_process_info_reply,
3567 (dump_func)dump_new_thread_reply,
3568 (dump_func)dump_get_startup_info_reply,
3570 (dump_func)dump_init_thread_reply,
3571 (dump_func)dump_terminate_process_reply,
3572 (dump_func)dump_terminate_thread_reply,
3573 (dump_func)dump_get_process_info_reply,
3575 (dump_func)dump_get_thread_info_reply,
3577 (dump_func)dump_get_dll_info_reply,
3578 (dump_func)dump_suspend_thread_reply,
3579 (dump_func)dump_resume_thread_reply,
3582 (dump_func)dump_queue_apc_reply,
3583 (dump_func)dump_get_apc_reply,
3584 (dump_func)dump_get_apc_result_reply,
3586 (dump_func)dump_set_handle_info_reply,
3587 (dump_func)dump_dup_handle_reply,
3588 (dump_func)dump_open_process_reply,
3589 (dump_func)dump_open_thread_reply,
3591 (dump_func)dump_create_event_reply,
3593 (dump_func)dump_open_event_reply,
3594 (dump_func)dump_create_mutex_reply,
3595 (dump_func)dump_release_mutex_reply,
3596 (dump_func)dump_open_mutex_reply,
3597 (dump_func)dump_create_semaphore_reply,
3598 (dump_func)dump_release_semaphore_reply,
3599 (dump_func)dump_open_semaphore_reply,
3600 (dump_func)dump_create_file_reply,
3601 (dump_func)dump_open_file_object_reply,
3602 (dump_func)dump_alloc_file_handle_reply,
3603 (dump_func)dump_get_handle_fd_reply,
3604 (dump_func)dump_flush_file_reply,
3605 (dump_func)dump_lock_file_reply,
3608 (dump_func)dump_create_socket_reply,
3609 (dump_func)dump_accept_socket_reply,
3611 (dump_func)dump_get_socket_event_reply,
3614 (dump_func)dump_alloc_console_reply,
3616 (dump_func)dump_get_console_renderer_events_reply,
3617 (dump_func)dump_open_console_reply,
3618 (dump_func)dump_get_console_wait_event_reply,
3619 (dump_func)dump_get_console_mode_reply,
3622 (dump_func)dump_get_console_input_info_reply,
3624 (dump_func)dump_get_console_input_history_reply,
3625 (dump_func)dump_create_console_output_reply,
3627 (dump_func)dump_get_console_output_info_reply,
3628 (dump_func)dump_write_console_input_reply,
3629 (dump_func)dump_read_console_input_reply,
3630 (dump_func)dump_write_console_output_reply,
3631 (dump_func)dump_fill_console_output_reply,
3632 (dump_func)dump_read_console_output_reply,
3636 (dump_func)dump_read_change_reply,
3637 (dump_func)dump_create_mapping_reply,
3638 (dump_func)dump_open_mapping_reply,
3639 (dump_func)dump_get_mapping_info_reply,
3640 (dump_func)dump_create_snapshot_reply,
3641 (dump_func)dump_next_process_reply,
3642 (dump_func)dump_next_thread_reply,
3643 (dump_func)dump_next_module_reply,
3644 (dump_func)dump_wait_debug_event_reply,
3645 (dump_func)dump_queue_exception_event_reply,
3646 (dump_func)dump_get_exception_status_reply,
3650 (dump_func)dump_debug_break_reply,
3652 (dump_func)dump_read_process_memory_reply,
3654 (dump_func)dump_create_key_reply,
3655 (dump_func)dump_open_key_reply,
3658 (dump_func)dump_enum_key_reply,
3660 (dump_func)dump_get_key_value_reply,
3661 (dump_func)dump_enum_key_value_reply,
3667 (dump_func)dump_create_timer_reply,
3668 (dump_func)dump_open_timer_reply,
3669 (dump_func)dump_set_timer_reply,
3670 (dump_func)dump_cancel_timer_reply,
3671 (dump_func)dump_get_timer_info_reply,
3672 (dump_func)dump_get_thread_context_reply,
3673 (dump_func)dump_set_thread_context_reply,
3674 (dump_func)dump_get_selector_entry_reply,
3675 (dump_func)dump_add_atom_reply,
3677 (dump_func)dump_find_atom_reply,
3678 (dump_func)dump_get_atom_information_reply,
3681 (dump_func)dump_init_atom_table_reply,
3682 (dump_func)dump_get_msg_queue_reply,
3683 (dump_func)dump_set_queue_mask_reply,
3684 (dump_func)dump_get_queue_status_reply,
3685 (dump_func)dump_get_process_idle_event_reply,
3689 (dump_func)dump_get_message_reply,
3692 (dump_func)dump_get_message_reply_reply,
3693 (dump_func)dump_set_win_timer_reply,
3695 (dump_func)dump_get_serial_info_reply,
3699 (dump_func)dump_create_named_pipe_reply,
3700 (dump_func)dump_open_named_pipe_reply,
3704 (dump_func)dump_get_named_pipe_info_reply,
3705 (dump_func)dump_create_window_reply,
3707 (dump_func)dump_get_desktop_window_reply,
3708 (dump_func)dump_set_window_owner_reply,
3709 (dump_func)dump_get_window_info_reply,
3710 (dump_func)dump_set_window_info_reply,
3711 (dump_func)dump_set_parent_reply,
3712 (dump_func)dump_get_window_parents_reply,
3713 (dump_func)dump_get_window_children_reply,
3714 (dump_func)dump_get_window_children_from_point_reply,
3715 (dump_func)dump_get_window_tree_reply,
3716 (dump_func)dump_set_window_pos_reply,
3717 (dump_func)dump_get_window_rectangles_reply,
3718 (dump_func)dump_get_window_text_reply,
3720 (dump_func)dump_get_windows_offset_reply,
3721 (dump_func)dump_get_visible_region_reply,
3722 (dump_func)dump_get_window_region_reply,
3724 (dump_func)dump_get_update_region_reply,
3728 (dump_func)dump_remove_window_property_reply,
3729 (dump_func)dump_get_window_property_reply,
3730 (dump_func)dump_get_window_properties_reply,
3731 (dump_func)dump_create_winstation_reply,
3732 (dump_func)dump_open_winstation_reply,
3734 (dump_func)dump_get_process_winstation_reply,
3736 (dump_func)dump_create_desktop_reply,
3737 (dump_func)dump_open_desktop_reply,
3739 (dump_func)dump_get_thread_desktop_reply,
3741 (dump_func)dump_set_user_object_info_reply,
3743 (dump_func)dump_get_thread_input_reply,
3744 (dump_func)dump_get_last_input_time_reply,
3745 (dump_func)dump_get_key_state_reply,
3747 (dump_func)dump_set_foreground_window_reply,
3748 (dump_func)dump_set_focus_window_reply,
3749 (dump_func)dump_set_active_window_reply,
3750 (dump_func)dump_set_capture_window_reply,
3751 (dump_func)dump_set_caret_window_reply,
3752 (dump_func)dump_set_caret_info_reply,
3753 (dump_func)dump_set_hook_reply,
3754 (dump_func)dump_remove_hook_reply,
3755 (dump_func)dump_start_hook_chain_reply,
3757 (dump_func)dump_get_hook_info_reply,
3759 (dump_func)dump_destroy_class_reply,
3760 (dump_func)dump_set_class_info_reply,
3761 (dump_func)dump_set_clipboard_info_reply,
3762 (dump_func)dump_open_token_reply,
3763 (dump_func)dump_set_global_windows_reply,
3764 (dump_func)dump_adjust_token_privileges_reply,
3765 (dump_func)dump_get_token_privileges_reply,
3766 (dump_func)dump_check_token_privileges_reply,
3767 (dump_func)dump_duplicate_token_reply,
3768 (dump_func)dump_access_check_reply,
3769 (dump_func)dump_get_token_user_reply,
3770 (dump_func)dump_get_token_groups_reply,
3771 (dump_func)dump_create_mailslot_reply,
3772 (dump_func)dump_open_mailslot_reply,
3773 (dump_func)dump_set_mailslot_info_reply,
3774 (dump_func)dump_create_directory_reply,
3775 (dump_func)dump_open_directory_reply,
3776 (dump_func)dump_create_symlink_reply,
3777 (dump_func)dump_open_symlink_reply,
3778 (dump_func)dump_query_symlink_reply,
3781 static const char * const req_names[REQ_NB_REQUESTS] = {
3783 "get_new_process_info",
3786 "init_process_done",
3788 "terminate_process",
3815 "release_semaphore",
3819 "alloc_file_handle",
3829 "enable_socket_event",
3830 "set_socket_deferred",
3833 "get_console_renderer_events",
3835 "get_console_wait_event",
3838 "set_console_input_info",
3839 "get_console_input_info",
3840 "append_console_input_history",
3841 "get_console_input_history",
3842 "create_console_output",
3843 "set_console_output_info",
3844 "get_console_output_info",
3845 "write_console_input",
3846 "read_console_input",
3847 "write_console_output",
3848 "fill_console_output",
3849 "read_console_output",
3850 "move_console_output",
3851 "send_console_signal",
3852 "read_directory_changes",
3862 "queue_exception_event",
3863 "get_exception_status",
3864 "output_debug_string",
3865 "continue_debug_event",
3868 "set_debugger_kill_on_exit",
3869 "read_process_memory",
3870 "write_process_memory",
3883 "set_registry_notification",
3889 "get_thread_context",
3890 "set_thread_context",
3891 "get_selector_entry",
3895 "get_atom_information",
3896 "set_atom_information",
3902 "get_process_idle_event",
3904 "post_quit_message",
3905 "send_hardware_message",
3908 "accept_hardware_message",
3909 "get_message_reply",
3916 "create_named_pipe",
3918 "connect_named_pipe",
3920 "disconnect_named_pipe",
3921 "get_named_pipe_info",
3924 "get_desktop_window",
3929 "get_window_parents",
3930 "get_window_children",
3931 "get_window_children_from_point",
3934 "get_window_rectangles",
3937 "get_windows_offset",
3938 "get_visible_region",
3939 "get_window_region",
3940 "set_window_region",
3941 "get_update_region",
3942 "update_window_zorder",
3944 "set_window_property",
3945 "remove_window_property",
3946 "get_window_property",
3947 "get_window_properties",
3948 "create_winstation",
3951 "get_process_winstation",
3952 "set_process_winstation",
3956 "get_thread_desktop",
3957 "set_thread_desktop",
3958 "set_user_object_info",
3959 "attach_thread_input",
3961 "get_last_input_time",
3964 "set_foreground_window",
3966 "set_active_window",
3967 "set_capture_window",
3973 "finish_hook_chain",
3978 "set_clipboard_info",
3980 "set_global_windows",
3981 "adjust_token_privileges",
3982 "get_token_privileges",
3983 "check_token_privileges",
3990 "set_mailslot_info",
4004 { "ACCESS_DENIED", STATUS_ACCESS_DENIED },
4005 { "ACCESS_VIOLATION", STATUS_ACCESS_VIOLATION },
4006 { "ALERTED", STATUS_ALERTED },
4007 { "ALIAS_EXISTS", STATUS_ALIAS_EXISTS },
4008 { "BAD_DEVICE_TYPE", STATUS_BAD_DEVICE_TYPE },
4009 { "BUFFER_OVERFLOW", STATUS_BUFFER_OVERFLOW },
4010 { "BUFFER_TOO_SMALL", STATUS_BUFFER_TOO_SMALL },
4011 { "CANCELLED", STATUS_CANCELLED },
4012 { "CHILD_MUST_BE_VOLATILE", STATUS_CHILD_MUST_BE_VOLATILE },
4013 { "DEVICE_BUSY", STATUS_DEVICE_BUSY },
4014 { "DIRECTORY_NOT_EMPTY", STATUS_DIRECTORY_NOT_EMPTY },
4015 { "DISK_FULL", STATUS_DISK_FULL },
4016 { "DLL_NOT_FOUND", STATUS_DLL_NOT_FOUND },
4017 { "ERROR_CLASS_ALREADY_EXISTS", 0xc0010000 | ERROR_CLASS_ALREADY_EXISTS },
4018 { "ERROR_CLASS_DOES_NOT_EXIST", 0xc0010000 | ERROR_CLASS_DOES_NOT_EXIST },
4019 { "ERROR_CLASS_HAS_WINDOWS", 0xc0010000 | ERROR_CLASS_HAS_WINDOWS },
4020 { "ERROR_CLIPBOARD_NOT_OPEN", 0xc0010000 | ERROR_CLIPBOARD_NOT_OPEN },
4021 { "ERROR_INVALID_INDEX", 0xc0010000 | ERROR_INVALID_INDEX },
4022 { "ERROR_INVALID_WINDOW_HANDLE", 0xc0010000 | ERROR_INVALID_WINDOW_HANDLE },
4023 { "FILE_IS_A_DIRECTORY", STATUS_FILE_IS_A_DIRECTORY },
4024 { "FILE_LOCK_CONFLICT", STATUS_FILE_LOCK_CONFLICT },
4025 { "HANDLES_CLOSED", STATUS_HANDLES_CLOSED },
4026 { "HANDLE_NOT_CLOSABLE", STATUS_HANDLE_NOT_CLOSABLE },
4027 { "ILLEGAL_FUNCTION", STATUS_ILLEGAL_FUNCTION },
4028 { "INSTANCE_NOT_AVAILABLE", STATUS_INSTANCE_NOT_AVAILABLE },
4029 { "INVALID_CID", STATUS_INVALID_CID },
4030 { "INVALID_FILE_FOR_SECTION", STATUS_INVALID_FILE_FOR_SECTION },
4031 { "INVALID_HANDLE", STATUS_INVALID_HANDLE },
4032 { "INVALID_PARAMETER", STATUS_INVALID_PARAMETER },
4033 { "IO_TIMEOUT", STATUS_IO_TIMEOUT },
4034 { "KEY_DELETED", STATUS_KEY_DELETED },
4035 { "MAPPED_FILE_SIZE_ZERO", STATUS_MAPPED_FILE_SIZE_ZERO },
4036 { "MEDIA_WRITE_PROTECTED", STATUS_MEDIA_WRITE_PROTECTED },
4037 { "MUTANT_NOT_OWNED", STATUS_MUTANT_NOT_OWNED },
4038 { "NAME_TOO_LONG", STATUS_NAME_TOO_LONG },
4039 { "NOT_ALL_ASSIGNED", STATUS_NOT_ALL_ASSIGNED },
4040 { "NOT_A_DIRECTORY", STATUS_NOT_A_DIRECTORY },
4041 { "NOT_IMPLEMENTED", STATUS_NOT_IMPLEMENTED },
4042 { "NOT_REGISTRY_FILE", STATUS_NOT_REGISTRY_FILE },
4043 { "NO_DATA_DETECTED", STATUS_NO_DATA_DETECTED },
4044 { "NO_IMPERSONATION_TOKEN", STATUS_NO_IMPERSONATION_TOKEN },
4045 { "NO_MEMORY", STATUS_NO_MEMORY },
4046 { "NO_MORE_ENTRIES", STATUS_NO_MORE_ENTRIES },
4047 { "NO_MORE_FILES", STATUS_NO_MORE_FILES },
4048 { "NO_SUCH_DEVICE", STATUS_NO_SUCH_DEVICE },
4049 { "NO_SUCH_FILE", STATUS_NO_SUCH_FILE },
4050 { "NO_TOKEN", STATUS_NO_TOKEN },
4051 { "OBJECT_NAME_COLLISION", STATUS_OBJECT_NAME_COLLISION },
4052 { "OBJECT_NAME_EXISTS", STATUS_OBJECT_NAME_EXISTS },
4053 { "OBJECT_NAME_INVALID", STATUS_OBJECT_NAME_INVALID },
4054 { "OBJECT_NAME_NOT_FOUND", STATUS_OBJECT_NAME_NOT_FOUND },
4055 { "OBJECT_PATH_INVALID", STATUS_OBJECT_PATH_INVALID },
4056 { "OBJECT_PATH_NOT_FOUND", STATUS_OBJECT_PATH_NOT_FOUND },
4057 { "OBJECT_PATH_SYNTAX_BAD", STATUS_OBJECT_PATH_SYNTAX_BAD },
4058 { "OBJECT_TYPE_MISMATCH", STATUS_OBJECT_TYPE_MISMATCH },
4059 { "PENDING", STATUS_PENDING },
4060 { "PIPE_BUSY", STATUS_PIPE_BUSY },
4061 { "PIPE_CONNECTED", STATUS_PIPE_CONNECTED },
4062 { "PIPE_DISCONNECTED", STATUS_PIPE_DISCONNECTED },
4063 { "PIPE_LISTENING", STATUS_PIPE_LISTENING },
4064 { "PIPE_NOT_AVAILABLE", STATUS_PIPE_NOT_AVAILABLE },
4065 { "PRIVILEGE_NOT_HELD", STATUS_PRIVILEGE_NOT_HELD },
4066 { "PROCESS_IS_TERMINATING", STATUS_PROCESS_IS_TERMINATING },
4067 { "SECTION_TOO_BIG", STATUS_SECTION_TOO_BIG },
4068 { "SEMAPHORE_LIMIT_EXCEEDED", STATUS_SEMAPHORE_LIMIT_EXCEEDED },
4069 { "SHARING_VIOLATION", STATUS_SHARING_VIOLATION },
4070 { "SUSPEND_COUNT_EXCEEDED", STATUS_SUSPEND_COUNT_EXCEEDED },
4071 { "THREAD_IS_TERMINATING", STATUS_THREAD_IS_TERMINATING },
4072 { "TIMEOUT", STATUS_TIMEOUT },
4073 { "TOO_MANY_OPENED_FILES", STATUS_TOO_MANY_OPENED_FILES },
4074 { "UNSUCCESSFUL", STATUS_UNSUCCESSFUL },
4075 { "VOLUME_DISMOUNTED", STATUS_VOLUME_DISMOUNTED },
4076 { "WAS_LOCKED", STATUS_WAS_LOCKED },
4080 /* ### make_requests end ### */
4081 /* Everything above this line is generated automatically by tools/make_requests */
4083 static const char *get_status_name( unsigned int status )
4086 static char buffer[10];
4090 for (i = 0; status_names[i].name; i++)
4091 if (status_names[i].value == status) return status_names[i].name;
4093 sprintf( buffer, "%x", status );
4097 void trace_request(void)
4099 enum request req = current->req.request_header.req;
4100 if (req < REQ_NB_REQUESTS)
4102 fprintf( stderr, "%04x: %s(", current->id, req_names[req] );
4103 if (req_dumpers[req])
4105 cur_data = get_req_data();
4106 cur_size = get_req_data_size();
4107 req_dumpers[req]( ¤t->req );
4109 fprintf( stderr, " )\n" );
4111 else fprintf( stderr, "%04x: %d(?)\n", current->id, req );
4114 void trace_reply( enum request req, const union generic_reply *reply )
4116 if (req < REQ_NB_REQUESTS)
4118 fprintf( stderr, "%04x: %s() = %s",
4119 current->id, req_names[req], get_status_name(current->error) );
4120 if (reply_dumpers[req])
4122 fprintf( stderr, " {" );
4123 cur_data = current->reply_data;
4124 cur_size = reply->reply_header.reply_size;
4125 reply_dumpers[req]( reply );
4126 fprintf( stderr, " }" );
4128 fputc( '\n', stderr );
4130 else fprintf( stderr, "%04x: %d() = %s\n",
4131 current->id, req, get_status_name(current->error) );