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
44 static const void *cur_data;
45 static data_size_t cur_size;
47 static const char *get_status_name( unsigned int status );
49 /* utility functions */
51 static inline void remove_data( data_size_t size )
53 cur_data = (const char *)cur_data + size;
57 static void dump_uints( const int *ptr, int len )
62 fprintf( stderr, "%08x", *ptr++ );
63 if (--len) fputc( ',', stderr );
68 static void dump_timeout( const timeout_t *time )
70 fprintf( stderr, get_timeout_str(*time) );
73 static void dump_rectangle( const rectangle_t *rect )
75 fprintf( stderr, "{%d,%d;%d,%d}",
76 rect->left, rect->top, rect->right, rect->bottom );
79 static void dump_char_info( const char_info_t *info )
81 fprintf( stderr, "{'" );
82 dump_strW( &info->ch, 1, stderr, "\'\'" );
83 fprintf( stderr, "',%04x}", info->attr );
86 static void dump_ioctl_code( const ioctl_code_t *code )
90 #define CASE(c) case c: fputs( #c, stderr ); break
91 CASE(FSCTL_DISMOUNT_VOLUME);
92 CASE(FSCTL_PIPE_DISCONNECT);
93 CASE(FSCTL_PIPE_LISTEN);
94 CASE(FSCTL_PIPE_WAIT);
95 default: fprintf( stderr, "%08x", *code ); break;
100 static void dump_apc_call( const apc_call_t *call )
102 fputc( '{', stderr );
106 fprintf( stderr, "APC_NONE" );
109 fprintf( stderr, "APC_USER,args={%lx,%lx,%lx}",
110 call->user.args[0], call->user.args[1], call->user.args[2] );
113 fprintf( stderr, "APC_TIMER,time=" );
114 dump_timeout( &call->timer.time );
115 fprintf( stderr, ",arg=%p", call->timer.arg );
118 fprintf( stderr, "APC_ASYNC_IO,func=%p,user=%p,sb=%p,status=%s",
119 call->async_io.func, call->async_io.user, call->async_io.sb,
120 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 );
133 case APC_VIRTUAL_QUERY:
134 fprintf( stderr, "APC_VIRTUAL_QUERY,addr=%p", call->virtual_query.addr );
136 case APC_VIRTUAL_PROTECT:
137 fprintf( stderr, "APC_VIRTUAL_PROTECT,addr=%p,size=%lu,prot=%x",
138 call->virtual_protect.addr, call->virtual_protect.size,
139 call->virtual_protect.prot );
141 case APC_VIRTUAL_FLUSH:
142 fprintf( stderr, "APC_VIRTUAL_FLUSH,addr=%p,size=%lu",
143 call->virtual_flush.addr, call->virtual_flush.size );
145 case APC_VIRTUAL_LOCK:
146 fprintf( stderr, "APC_VIRTUAL_LOCK,addr=%p,size=%lu",
147 call->virtual_lock.addr, call->virtual_lock.size );
149 case APC_VIRTUAL_UNLOCK:
150 fprintf( stderr, "APC_VIRTUAL_UNLOCK,addr=%p,size=%lu",
151 call->virtual_unlock.addr, call->virtual_unlock.size );
154 fprintf( stderr, "APC_MAP_VIEW,handle=%p,addr=%p,size=%lu,offset=%x%08x,zero_bits=%u,alloc_type=%x,prot=%x",
155 call->map_view.handle, call->map_view.addr, call->map_view.size,
156 call->map_view.offset_high, call->map_view.offset_low, call->map_view.zero_bits,
157 call->map_view.alloc_type, call->map_view.prot );
160 fprintf( stderr, "APC_UNMAP_VIEW,addr=%p", call->unmap_view.addr );
162 case APC_CREATE_THREAD:
163 fprintf( stderr, "APC_CREATE_THREAD,func=%p,arg=%p,reserve=%lx,commit=%lx,suspend=%u",
164 call->create_thread.func, call->create_thread.arg,
165 call->create_thread.reserve, call->create_thread.commit,
166 call->create_thread.suspend );
169 fprintf( stderr, "type=%u", call->type );
172 fputc( '}', stderr );
175 static void dump_apc_result( const apc_result_t *result )
177 fputc( '{', stderr );
183 fprintf( stderr, "APC_ASYNC_IO,status=%s",
184 get_status_name( result->async_io.status ) );
186 case APC_VIRTUAL_ALLOC:
187 fprintf( stderr, "APC_VIRTUAL_ALLOC,status=%s,addr=%p,size=%lu",
188 get_status_name( result->virtual_alloc.status ),
189 result->virtual_alloc.addr, result->virtual_alloc.size );
191 case APC_VIRTUAL_FREE:
192 fprintf( stderr, "APC_VIRTUAL_FREE,status=%s,addr=%p,size=%lu",
193 get_status_name( result->virtual_free.status ),
194 result->virtual_free.addr, result->virtual_free.size );
196 case APC_VIRTUAL_QUERY:
197 fprintf( stderr, "APC_VIRTUAL_QUERY,status=%s,base=%p,alloc_base=%p,size=%lu,state=%x,prot=%x,alloc_prot=%x,alloc_type=%x",
198 get_status_name( result->virtual_query.status ),
199 result->virtual_query.base, result->virtual_query.alloc_base,
200 result->virtual_query.size, result->virtual_query.state,
201 result->virtual_query.prot, result->virtual_query.alloc_prot,
202 result->virtual_query.alloc_type );
204 case APC_VIRTUAL_PROTECT:
205 fprintf( stderr, "APC_VIRTUAL_PROTECT,status=%s,addr=%p,size=%lu,prot=%x",
206 get_status_name( result->virtual_protect.status ),
207 result->virtual_protect.addr, result->virtual_protect.size,
208 result->virtual_protect.prot );
210 case APC_VIRTUAL_FLUSH:
211 fprintf( stderr, "APC_VIRTUAL_FLUSH,status=%s,addr=%p,size=%lu",
212 get_status_name( result->virtual_flush.status ),
213 result->virtual_flush.addr, result->virtual_flush.size );
215 case APC_VIRTUAL_LOCK:
216 fprintf( stderr, "APC_VIRTUAL_LOCK,status=%s,addr=%p,size=%lu",
217 get_status_name( result->virtual_lock.status ),
218 result->virtual_lock.addr, result->virtual_lock.size );
220 case APC_VIRTUAL_UNLOCK:
221 fprintf( stderr, "APC_VIRTUAL_UNLOCK,status=%s,addr=%p,size=%lu",
222 get_status_name( result->virtual_unlock.status ),
223 result->virtual_unlock.addr, result->virtual_unlock.size );
226 fprintf( stderr, "APC_MAP_VIEW,status=%s,addr=%p,size=%lu",
227 get_status_name( result->map_view.status ),
228 result->map_view.addr, result->map_view.size );
231 fprintf( stderr, "APC_UNMAP_VIEW,status=%s",
232 get_status_name( result->unmap_view.status ) );
234 case APC_CREATE_THREAD:
235 fprintf( stderr, "APC_CREATE_THREAD,status=%s,tid=%04x,handle=%p",
236 get_status_name( result->create_thread.status ),
237 result->create_thread.tid, result->create_thread.handle );
240 fprintf( stderr, "type=%u", result->type );
243 fputc( '}', stderr );
246 static void dump_async_data( const async_data_t *data )
248 fprintf( stderr, "{callback=%p,iosb=%p,arg=%p,apc=%p,event=%p}",
249 data->callback, data->iosb, data->arg, data->apc, data->event );
252 static void dump_luid( const luid_t *luid )
254 fprintf( stderr, "%d.%u", luid->high_part, luid->low_part );
257 static void dump_context( const CONTEXT *context )
260 fprintf( stderr, "{flags=%08x,eax=%08x,ebx=%08x,ecx=%08x,edx=%08x,esi=%08x,edi=%08x,"
261 "ebp=%08x,eip=%08x,esp=%08x,eflags=%08x,cs=%04x,ds=%04x,es=%04x,"
262 "fs=%04x,gs=%04x,dr0=%08x,dr1=%08x,dr2=%08x,dr3=%08x,dr6=%08x,dr7=%08x,",
263 context->ContextFlags, context->Eax, context->Ebx, context->Ecx, context->Edx,
264 context->Esi, context->Edi, context->Ebp, context->Eip, context->Esp, context->EFlags,
265 context->SegCs, context->SegDs, context->SegEs, context->SegFs, context->SegGs,
266 context->Dr0, context->Dr1, context->Dr2, context->Dr3, context->Dr6, context->Dr7 );
267 fprintf( stderr, "float=" );
268 dump_uints( (const int *)&context->FloatSave, sizeof(context->FloatSave) / sizeof(int) );
269 fprintf( stderr, "}" );
271 dump_uints( (const int *)context, sizeof(*context) / sizeof(int) );
275 static void dump_exc_record( const EXCEPTION_RECORD *rec )
278 fprintf( stderr, "{code=%x,flags=%x,rec=%p,addr=%p,params={",
279 rec->ExceptionCode, rec->ExceptionFlags, rec->ExceptionRecord,
280 rec->ExceptionAddress );
281 for (i = 0; i < min(rec->NumberParameters,EXCEPTION_MAXIMUM_PARAMETERS); i++)
283 if (i) fputc( ',', stderr );
284 fprintf( stderr, "%lx", rec->ExceptionInformation[i] );
286 fputc( '}', stderr );
289 static void dump_varargs_ints( data_size_t size )
291 const int *data = cur_data;
292 data_size_t len = size / sizeof(*data);
294 fputc( '{', stderr );
297 fprintf( stderr, "%d", *data++ );
298 if (--len) fputc( ',', stderr );
300 fputc( '}', stderr );
304 static void dump_varargs_apc_result( data_size_t size )
306 const apc_result_t *result = cur_data;
308 if (size >= sizeof(*result))
310 dump_apc_result( result );
311 size = sizeof(*result);
316 static void dump_varargs_handles( data_size_t size )
318 const obj_handle_t *data = cur_data;
319 data_size_t len = size / sizeof(*data);
321 fputc( '{', stderr );
324 fprintf( stderr, "%p", *data++ );
325 if (--len) fputc( ',', stderr );
327 fputc( '}', stderr );
331 static void dump_varargs_user_handles( data_size_t size )
333 const user_handle_t *data = cur_data;
334 data_size_t len = size / sizeof(*data);
336 fputc( '{', stderr );
339 fprintf( stderr, "%p", *data++ );
340 if (--len) fputc( ',', stderr );
342 fputc( '}', stderr );
346 static void dump_varargs_bytes( data_size_t size )
348 const unsigned char *data = cur_data;
349 data_size_t len = size;
351 fputc( '{', stderr );
354 fprintf( stderr, "%02x", *data++ );
355 if (--len) fputc( ',', stderr );
357 fputc( '}', stderr );
361 static void dump_varargs_string( data_size_t size )
363 fprintf( stderr, "\"%.*s\"", (int)size, (const char *)cur_data );
367 static void dump_varargs_unicode_str( data_size_t size )
369 fprintf( stderr, "L\"" );
370 dump_strW( cur_data, size / sizeof(WCHAR), stderr, "\"\"" );
371 fputc( '\"', stderr );
375 static void dump_varargs_context( data_size_t size )
379 fprintf( stderr, "{}" );
382 dump_context( cur_data );
386 static void dump_varargs_exc_event( data_size_t size )
388 const CONTEXT *ptr = cur_data;
392 fprintf( stderr, "{}" );
395 fprintf( stderr, "{context=" );
397 fprintf( stderr, ",rec=" );
398 dump_exc_record( (const EXCEPTION_RECORD *)(ptr + 1) );
399 fputc( '}', stderr );
403 static void dump_varargs_debug_event( data_size_t size )
405 const debug_event_t *event = cur_data;
409 fprintf( stderr, "{}" );
414 case EXCEPTION_DEBUG_EVENT:
415 fprintf( stderr, "{exception," );
416 dump_exc_record( &event->info.exception.record );
417 fprintf( stderr, ",first=%d}", event->info.exception.first );
419 case CREATE_THREAD_DEBUG_EVENT:
420 fprintf( stderr, "{create_thread,thread=%p,teb=%p,start=%p}",
421 event->info.create_thread.handle, event->info.create_thread.teb,
422 event->info.create_thread.start );
424 case CREATE_PROCESS_DEBUG_EVENT:
425 fprintf( stderr, "{create_process,file=%p,process=%p,thread=%p,base=%p,offset=%d,"
426 "size=%d,teb=%p,start=%p,name=%p,unicode=%d}",
427 event->info.create_process.file, event->info.create_process.process,
428 event->info.create_process.thread, event->info.create_process.base,
429 event->info.create_process.dbg_offset, event->info.create_process.dbg_size,
430 event->info.create_process.teb, event->info.create_process.start,
431 event->info.create_process.name, event->info.create_process.unicode );
433 case EXIT_THREAD_DEBUG_EVENT:
434 fprintf( stderr, "{exit_thread,code=%d}", event->info.exit.exit_code );
436 case EXIT_PROCESS_DEBUG_EVENT:
437 fprintf( stderr, "{exit_process,code=%d}", event->info.exit.exit_code );
439 case LOAD_DLL_DEBUG_EVENT:
440 fprintf( stderr, "{load_dll,file=%p,base=%p,offset=%d,size=%d,name=%p,unicode=%d}",
441 event->info.load_dll.handle, event->info.load_dll.base,
442 event->info.load_dll.dbg_offset, event->info.load_dll.dbg_size,
443 event->info.load_dll.name, event->info.load_dll.unicode );
445 case UNLOAD_DLL_DEBUG_EVENT:
446 fprintf( stderr, "{unload_dll,base=%p}", event->info.unload_dll.base );
448 case OUTPUT_DEBUG_STRING_EVENT:
449 fprintf( stderr, "{output_string,data=%p,unicode=%d,len=%d}",
450 event->info.output_string.string, event->info.output_string.unicode,
451 event->info.output_string.length );
454 fprintf( stderr, "{rip,err=%d,type=%d}",
455 event->info.rip_info.error, event->info.rip_info.type );
457 case 0: /* zero is the code returned on timeouts */
458 fprintf( stderr, "{}" );
461 fprintf( stderr, "{code=??? (%d)}", event->code );
467 /* dump a unicode string contained in a buffer; helper for dump_varargs_startup_info */
468 static void dump_inline_unicode_string( const UNICODE_STRING *str, const void *data, data_size_t size )
470 size_t length = str->Length;
471 size_t offset = (size_t)str->Buffer;
473 if (offset >= size) return;
474 if (offset + length > size) length = size - offset;
475 dump_strW( (const WCHAR *)data + offset/sizeof(WCHAR), length/sizeof(WCHAR), stderr, "\"\"" );
478 static void dump_varargs_startup_info( data_size_t size )
480 const RTL_USER_PROCESS_PARAMETERS *ptr = cur_data;
481 RTL_USER_PROCESS_PARAMETERS params;
483 if (size < sizeof(params.Size))
485 fprintf( stderr, "{}" );
488 if (size > ptr->Size) size = ptr->Size;
489 memset( ¶ms, 0, sizeof(params) );
490 memcpy( ¶ms, ptr, min( size, sizeof(params) ));
492 fprintf( stderr, "{AllocationSize=%x,", params.AllocationSize );
493 fprintf( stderr, "Size=%x,", params.Size );
494 fprintf( stderr, "Flags=%x,", params.Flags );
495 fprintf( stderr, "DebugFlags=%x,", params.DebugFlags );
496 fprintf( stderr, "ConsoleHandle=%p,", params.ConsoleHandle );
497 fprintf( stderr, "ConsoleFlags=%x,", params.ConsoleFlags );
498 fprintf( stderr, "hStdInput=%p,", params.hStdInput );
499 fprintf( stderr, "hStdOutput=%p,", params.hStdOutput );
500 fprintf( stderr, "hStdError=%p,", params.hStdError );
501 fprintf( stderr, "CurrentDirectory.Handle=%p,", params.CurrentDirectory.Handle );
502 fprintf( stderr, "dwX=%d,", params.dwX );
503 fprintf( stderr, "dwY=%d,", params.dwY );
504 fprintf( stderr, "dwXSize=%d,", params.dwXSize );
505 fprintf( stderr, "dwYSize=%d,", params.dwYSize );
506 fprintf( stderr, "dwXCountChars=%d,", params.dwXCountChars );
507 fprintf( stderr, "dwYCountChars=%d,", params.dwYCountChars );
508 fprintf( stderr, "dwFillAttribute=%x,", params.dwFillAttribute );
509 fprintf( stderr, "dwFlags=%x,", params.dwFlags );
510 fprintf( stderr, "wShowWindow=%x,", params.wShowWindow );
511 fprintf( stderr, "CurrentDirectory.DosPath=L\"" );
512 dump_inline_unicode_string( ¶ms.CurrentDirectory.DosPath, cur_data, size );
513 fprintf( stderr, "\",DllPath=L\"" );
514 dump_inline_unicode_string( ¶ms.DllPath, cur_data, size );
515 fprintf( stderr, "\",ImagePathName=L\"" );
516 dump_inline_unicode_string( ¶ms.ImagePathName, cur_data, size );
517 fprintf( stderr, "\",CommandLine=L\"" );
518 dump_inline_unicode_string( ¶ms.CommandLine, cur_data, size );
519 fprintf( stderr, "\",WindowTitle=L\"" );
520 dump_inline_unicode_string( ¶ms.WindowTitle, cur_data, size );
521 fprintf( stderr, "\",Desktop=L\"" );
522 dump_inline_unicode_string( ¶ms.Desktop, cur_data, size );
523 fprintf( stderr, "\",ShellInfo=L\"" );
524 dump_inline_unicode_string( ¶ms.ShellInfo, cur_data, size );
525 fprintf( stderr, "\",RuntimeInfo=L\"" );
526 dump_inline_unicode_string( ¶ms.RuntimeInfo, cur_data, size );
527 fprintf( stderr, "\"}" );
531 static void dump_varargs_input_records( data_size_t size )
533 const INPUT_RECORD *rec = cur_data;
534 data_size_t len = size / sizeof(*rec);
536 fputc( '{', stderr );
539 fprintf( stderr, "{%04x,...}", rec->EventType );
541 if (--len) fputc( ',', stderr );
543 fputc( '}', stderr );
547 static void dump_varargs_rectangles( data_size_t size )
549 const rectangle_t *rect = cur_data;
550 data_size_t len = size / sizeof(*rect);
552 fputc( '{', stderr );
555 dump_rectangle( rect++ );
556 if (--len) fputc( ',', stderr );
558 fputc( '}', stderr );
562 static void dump_varargs_message_data( data_size_t size )
564 /* FIXME: dump the structured data */
565 dump_varargs_bytes( size );
568 static void dump_varargs_properties( data_size_t size )
570 const property_data_t *prop = cur_data;
571 data_size_t len = size / sizeof(*prop);
573 fputc( '{', stderr );
576 fprintf( stderr, "{atom=%04x,str=%d,handle=%p}",
577 prop->atom, prop->string, prop->handle );
579 if (--len) fputc( ',', stderr );
581 fputc( '}', stderr );
585 static void dump_varargs_LUID_AND_ATTRIBUTES( data_size_t size )
587 const LUID_AND_ATTRIBUTES *lat = cur_data;
588 data_size_t len = size / sizeof(*lat);
590 fputc( '{', stderr );
593 fprintf( stderr, "{luid=%08x%08x,attr=%x}",
594 lat->Luid.HighPart, lat->Luid.LowPart, lat->Attributes );
596 if (--len) fputc( ',', stderr );
598 fputc( '}', stderr );
602 static void dump_inline_sid( const SID *sid, data_size_t size )
607 if ((FIELD_OFFSET(SID, SubAuthority[0]) > size) ||
608 (FIELD_OFFSET(SID, SubAuthority[sid->SubAuthorityCount]) > size))
610 fprintf( stderr, "<invalid sid>" );
614 fputc( '{', stderr );
615 fprintf( stderr, "S-%u-%u", sid->Revision, MAKELONG(
616 MAKEWORD( sid->IdentifierAuthority.Value[5],
617 sid->IdentifierAuthority.Value[4] ),
618 MAKEWORD( sid->IdentifierAuthority.Value[3],
619 sid->IdentifierAuthority.Value[2] ) ) );
620 for (i = 0; i < sid->SubAuthorityCount; i++)
621 fprintf( stderr, "-%u", sid->SubAuthority[i] );
622 fputc( '}', stderr );
625 static void dump_varargs_SID( data_size_t size )
627 const SID *sid = cur_data;
628 dump_inline_sid( sid, size );
632 static void dump_inline_acl( const ACL *acl, data_size_t size )
634 const ACE_HEADER *ace;
636 fputc( '{', stderr );
640 if (size < sizeof(ACL))
642 fprintf( stderr, "<invalid acl>}\n" );
646 ace = (const ACE_HEADER *)(acl + 1);
647 for (i = 0; i < acl->AceCount; i++)
649 const SID *sid = NULL;
650 data_size_t sid_size = 0;
652 if (size < sizeof(ACE_HEADER))
654 if (size < ace->AceSize)
656 size -= ace->AceSize;
657 if (i != 0) fputc( ',', stderr );
658 fprintf( stderr, "{AceType=" );
659 switch (ace->AceType)
661 case ACCESS_DENIED_ACE_TYPE:
662 sid = (const SID *)&((const ACCESS_DENIED_ACE *)ace)->SidStart;
663 sid_size = ace->AceSize - FIELD_OFFSET(ACCESS_DENIED_ACE, SidStart);
664 fprintf( stderr, "ACCESS_DENIED_ACE_TYPE,Mask=%x",
665 ((const ACCESS_DENIED_ACE *)ace)->Mask );
667 case ACCESS_ALLOWED_ACE_TYPE:
668 sid = (const SID *)&((const ACCESS_ALLOWED_ACE *)ace)->SidStart;
669 sid_size = ace->AceSize - FIELD_OFFSET(ACCESS_ALLOWED_ACE, SidStart);
670 fprintf( stderr, "ACCESS_ALLOWED_ACE_TYPE,Mask=%x",
671 ((const ACCESS_ALLOWED_ACE *)ace)->Mask );
673 case SYSTEM_AUDIT_ACE_TYPE:
674 sid = (const SID *)&((const SYSTEM_AUDIT_ACE *)ace)->SidStart;
675 sid_size = ace->AceSize - FIELD_OFFSET(SYSTEM_AUDIT_ACE, SidStart);
676 fprintf( stderr, "SYSTEM_AUDIT_ACE_TYPE,Mask=%x",
677 ((const SYSTEM_AUDIT_ACE *)ace)->Mask );
679 case SYSTEM_ALARM_ACE_TYPE:
680 sid = (const SID *)&((const SYSTEM_ALARM_ACE *)ace)->SidStart;
681 sid_size = ace->AceSize - FIELD_OFFSET(SYSTEM_ALARM_ACE, SidStart);
682 fprintf( stderr, "SYSTEM_ALARM_ACE_TYPE,Mask=%x",
683 ((const SYSTEM_ALARM_ACE *)ace)->Mask );
686 fprintf( stderr, "unknown<%d>", ace->AceType );
689 fprintf( stderr, ",AceFlags=%x,Sid=", ace->AceFlags );
691 dump_inline_sid( sid, sid_size );
692 ace = (const ACE_HEADER *)((const char *)ace + ace->AceSize);
693 fputc( '}', stderr );
696 fputc( '}', stderr );
699 static void dump_inline_security_descriptor( const struct security_descriptor *sd, data_size_t size )
701 fputc( '{', stderr );
702 if (size >= sizeof(struct security_descriptor))
704 size_t offset = sizeof(struct security_descriptor);
705 fprintf( stderr, "control=%08x", sd->control );
706 fprintf( stderr, ",owner=" );
707 if ((sd->owner_len > FIELD_OFFSET(SID, SubAuthority[255])) || (offset + sd->owner_len > size))
709 dump_inline_sid( (const SID *)((const char *)sd + offset), sd->owner_len );
710 offset += sd->owner_len;
711 fprintf( stderr, ",group=" );
712 if ((sd->group_len > FIELD_OFFSET(SID, SubAuthority[255])) || (offset + sd->group_len > size))
714 dump_inline_sid( (const SID *)((const char *)sd + offset), sd->group_len );
715 offset += sd->group_len;
716 fprintf( stderr, ",sacl=" );
717 if ((sd->sacl_len >= MAX_ACL_LEN) || (offset + sd->sacl_len > size))
719 dump_inline_acl( (const ACL *)((const char *)sd + offset), sd->sacl_len );
720 offset += sd->sacl_len;
721 fprintf( stderr, ",dacl=" );
722 if ((sd->dacl_len >= MAX_ACL_LEN) || (offset + sd->dacl_len > size))
724 dump_inline_acl( (const ACL *)((const char *)sd + offset), sd->dacl_len );
725 offset += sd->dacl_len;
727 fputc( '}', stderr );
730 static void dump_varargs_security_descriptor( data_size_t size )
732 const struct security_descriptor *sd = cur_data;
733 dump_inline_security_descriptor( sd, size );
737 static void dump_varargs_token_groups( data_size_t size )
739 const struct token_groups *tg = cur_data;
740 fputc( '{', stderr );
741 if (size >= sizeof(struct token_groups))
743 size_t offset = sizeof(*tg);
744 fprintf( stderr, "count=%08x,", tg->count );
745 if (tg->count * sizeof(unsigned int) <= size)
748 const unsigned int *attr = (const unsigned int *)(tg + 1);
750 offset += tg->count * sizeof(unsigned int);
752 fputc( '[', stderr );
753 for (i = 0; i < tg->count; i++)
755 const SID *sid = (const SID *)((const char *)cur_data + offset);
757 fputc( ',', stderr );
758 fputc( '{', stderr );
759 fprintf( stderr, "attributes=%08x", attr[i] );
760 fprintf( stderr, ",sid=" );
761 dump_inline_sid( sid, size - offset );
762 if ((offset + FIELD_OFFSET(SID, SubAuthority[0]) > size) ||
763 (offset + FIELD_OFFSET(SID, SubAuthority[sid->SubAuthorityCount]) > size))
765 offset += FIELD_OFFSET(SID, SubAuthority[sid->SubAuthorityCount]);
766 fputc( '}', stderr );
768 fputc( ']', stderr );
771 fputc( '}', stderr );
774 typedef void (*dump_func)( const void *req );
776 /* Everything below this line is generated automatically by tools/make_requests */
777 /* ### make_requests begin ### */
779 static void dump_new_process_request( const struct new_process_request *req )
781 fprintf( stderr, " inherit_all=%d,", req->inherit_all );
782 fprintf( stderr, " create_flags=%08x,", req->create_flags );
783 fprintf( stderr, " socket_fd=%d,", req->socket_fd );
784 fprintf( stderr, " exe_file=%p,", req->exe_file );
785 fprintf( stderr, " hstdin=%p,", req->hstdin );
786 fprintf( stderr, " hstdout=%p,", req->hstdout );
787 fprintf( stderr, " hstderr=%p,", req->hstderr );
788 fprintf( stderr, " process_access=%08x,", req->process_access );
789 fprintf( stderr, " process_attr=%08x,", req->process_attr );
790 fprintf( stderr, " thread_access=%08x,", req->thread_access );
791 fprintf( stderr, " thread_attr=%08x,", req->thread_attr );
792 fprintf( stderr, " info=" );
793 dump_varargs_startup_info( cur_size );
794 fputc( ',', stderr );
795 fprintf( stderr, " env=" );
796 dump_varargs_unicode_str( cur_size );
799 static void dump_new_process_reply( const struct new_process_reply *req )
801 fprintf( stderr, " info=%p,", req->info );
802 fprintf( stderr, " pid=%04x,", req->pid );
803 fprintf( stderr, " phandle=%p,", req->phandle );
804 fprintf( stderr, " tid=%04x,", req->tid );
805 fprintf( stderr, " thandle=%p", req->thandle );
808 static void dump_get_new_process_info_request( const struct get_new_process_info_request *req )
810 fprintf( stderr, " info=%p", req->info );
813 static void dump_get_new_process_info_reply( const struct get_new_process_info_reply *req )
815 fprintf( stderr, " success=%d,", req->success );
816 fprintf( stderr, " exit_code=%d", req->exit_code );
819 static void dump_new_thread_request( const struct new_thread_request *req )
821 fprintf( stderr, " access=%08x,", req->access );
822 fprintf( stderr, " attributes=%08x,", req->attributes );
823 fprintf( stderr, " suspend=%d,", req->suspend );
824 fprintf( stderr, " request_fd=%d", req->request_fd );
827 static void dump_new_thread_reply( const struct new_thread_reply *req )
829 fprintf( stderr, " tid=%04x,", req->tid );
830 fprintf( stderr, " handle=%p", req->handle );
833 static void dump_get_startup_info_request( const struct get_startup_info_request *req )
837 static void dump_get_startup_info_reply( const struct get_startup_info_reply *req )
839 fprintf( stderr, " exe_file=%p,", req->exe_file );
840 fprintf( stderr, " hstdin=%p,", req->hstdin );
841 fprintf( stderr, " hstdout=%p,", req->hstdout );
842 fprintf( stderr, " hstderr=%p,", req->hstderr );
843 fprintf( stderr, " info=" );
844 dump_varargs_startup_info( cur_size );
845 fputc( ',', stderr );
846 fprintf( stderr, " env=" );
847 dump_varargs_unicode_str( cur_size );
850 static void dump_init_process_done_request( const struct init_process_done_request *req )
852 fprintf( stderr, " module=%p,", req->module );
853 fprintf( stderr, " entry=%p,", req->entry );
854 fprintf( stderr, " gui=%d", req->gui );
857 static void dump_init_thread_request( const struct init_thread_request *req )
859 fprintf( stderr, " unix_pid=%d,", req->unix_pid );
860 fprintf( stderr, " unix_tid=%d,", req->unix_tid );
861 fprintf( stderr, " debug_level=%d,", req->debug_level );
862 fprintf( stderr, " teb=%p,", req->teb );
863 fprintf( stderr, " peb=%p,", req->peb );
864 fprintf( stderr, " entry=%p,", req->entry );
865 fprintf( stderr, " ldt_copy=%p,", req->ldt_copy );
866 fprintf( stderr, " reply_fd=%d,", req->reply_fd );
867 fprintf( stderr, " wait_fd=%d", req->wait_fd );
870 static void dump_init_thread_reply( const struct init_thread_reply *req )
872 fprintf( stderr, " pid=%04x,", req->pid );
873 fprintf( stderr, " tid=%04x,", req->tid );
874 fprintf( stderr, " info_size=%u,", req->info_size );
875 fprintf( stderr, " server_start=" );
876 dump_timeout( &req->server_start );
877 fprintf( stderr, "," );
878 fprintf( stderr, " version=%d", req->version );
881 static void dump_terminate_process_request( const struct terminate_process_request *req )
883 fprintf( stderr, " handle=%p,", req->handle );
884 fprintf( stderr, " exit_code=%d", req->exit_code );
887 static void dump_terminate_process_reply( const struct terminate_process_reply *req )
889 fprintf( stderr, " self=%d", req->self );
892 static void dump_terminate_thread_request( const struct terminate_thread_request *req )
894 fprintf( stderr, " handle=%p,", req->handle );
895 fprintf( stderr, " exit_code=%d", req->exit_code );
898 static void dump_terminate_thread_reply( const struct terminate_thread_reply *req )
900 fprintf( stderr, " self=%d,", req->self );
901 fprintf( stderr, " last=%d", req->last );
904 static void dump_get_process_info_request( const struct get_process_info_request *req )
906 fprintf( stderr, " handle=%p", req->handle );
909 static void dump_get_process_info_reply( const struct get_process_info_reply *req )
911 fprintf( stderr, " pid=%04x,", req->pid );
912 fprintf( stderr, " ppid=%04x,", req->ppid );
913 fprintf( stderr, " exit_code=%d,", req->exit_code );
914 fprintf( stderr, " priority=%d,", req->priority );
915 fprintf( stderr, " affinity=%d,", req->affinity );
916 fprintf( stderr, " peb=%p,", req->peb );
917 fprintf( stderr, " start_time=" );
918 dump_timeout( &req->start_time );
919 fprintf( stderr, "," );
920 fprintf( stderr, " end_time=" );
921 dump_timeout( &req->end_time );
924 static void dump_set_process_info_request( const struct set_process_info_request *req )
926 fprintf( stderr, " handle=%p,", req->handle );
927 fprintf( stderr, " mask=%d,", req->mask );
928 fprintf( stderr, " priority=%d,", req->priority );
929 fprintf( stderr, " affinity=%d", req->affinity );
932 static void dump_get_thread_info_request( const struct get_thread_info_request *req )
934 fprintf( stderr, " handle=%p,", req->handle );
935 fprintf( stderr, " tid_in=%04x", req->tid_in );
938 static void dump_get_thread_info_reply( const struct get_thread_info_reply *req )
940 fprintf( stderr, " pid=%04x,", req->pid );
941 fprintf( stderr, " tid=%04x,", req->tid );
942 fprintf( stderr, " teb=%p,", req->teb );
943 fprintf( stderr, " exit_code=%d,", req->exit_code );
944 fprintf( stderr, " priority=%d,", req->priority );
945 fprintf( stderr, " affinity=%d,", req->affinity );
946 fprintf( stderr, " creation_time=" );
947 dump_timeout( &req->creation_time );
948 fprintf( stderr, "," );
949 fprintf( stderr, " exit_time=" );
950 dump_timeout( &req->exit_time );
951 fprintf( stderr, "," );
952 fprintf( stderr, " last=%d", req->last );
955 static void dump_set_thread_info_request( const struct set_thread_info_request *req )
957 fprintf( stderr, " handle=%p,", req->handle );
958 fprintf( stderr, " mask=%d,", req->mask );
959 fprintf( stderr, " priority=%d,", req->priority );
960 fprintf( stderr, " affinity=%d,", req->affinity );
961 fprintf( stderr, " token=%p", req->token );
964 static void dump_get_dll_info_request( const struct get_dll_info_request *req )
966 fprintf( stderr, " handle=%p,", req->handle );
967 fprintf( stderr, " base_address=%p", req->base_address );
970 static void dump_get_dll_info_reply( const struct get_dll_info_reply *req )
972 fprintf( stderr, " size=%lu,", (unsigned long)req->size );
973 fprintf( stderr, " entry_point=%p,", req->entry_point );
974 fprintf( stderr, " filename=" );
975 dump_varargs_unicode_str( cur_size );
978 static void dump_suspend_thread_request( const struct suspend_thread_request *req )
980 fprintf( stderr, " handle=%p", req->handle );
983 static void dump_suspend_thread_reply( const struct suspend_thread_reply *req )
985 fprintf( stderr, " count=%d", req->count );
988 static void dump_resume_thread_request( const struct resume_thread_request *req )
990 fprintf( stderr, " handle=%p", req->handle );
993 static void dump_resume_thread_reply( const struct resume_thread_reply *req )
995 fprintf( stderr, " count=%d", req->count );
998 static void dump_load_dll_request( const struct load_dll_request *req )
1000 fprintf( stderr, " handle=%p,", req->handle );
1001 fprintf( stderr, " base=%p,", req->base );
1002 fprintf( stderr, " size=%lu,", (unsigned long)req->size );
1003 fprintf( stderr, " dbg_offset=%d,", req->dbg_offset );
1004 fprintf( stderr, " dbg_size=%d,", req->dbg_size );
1005 fprintf( stderr, " name=%p,", req->name );
1006 fprintf( stderr, " filename=" );
1007 dump_varargs_unicode_str( cur_size );
1010 static void dump_unload_dll_request( const struct unload_dll_request *req )
1012 fprintf( stderr, " base=%p", req->base );
1015 static void dump_queue_apc_request( const struct queue_apc_request *req )
1017 fprintf( stderr, " thread=%p,", req->thread );
1018 fprintf( stderr, " process=%p,", req->process );
1019 fprintf( stderr, " call=" );
1020 dump_apc_call( &req->call );
1023 static void dump_queue_apc_reply( const struct queue_apc_reply *req )
1025 fprintf( stderr, " handle=%p,", req->handle );
1026 fprintf( stderr, " self=%d", req->self );
1029 static void dump_get_apc_result_request( const struct get_apc_result_request *req )
1031 fprintf( stderr, " handle=%p", req->handle );
1034 static void dump_get_apc_result_reply( const struct get_apc_result_reply *req )
1036 fprintf( stderr, " result=" );
1037 dump_apc_result( &req->result );
1040 static void dump_close_handle_request( const struct close_handle_request *req )
1042 fprintf( stderr, " handle=%p", req->handle );
1045 static void dump_set_handle_info_request( const struct set_handle_info_request *req )
1047 fprintf( stderr, " handle=%p,", req->handle );
1048 fprintf( stderr, " flags=%d,", req->flags );
1049 fprintf( stderr, " mask=%d", req->mask );
1052 static void dump_set_handle_info_reply( const struct set_handle_info_reply *req )
1054 fprintf( stderr, " old_flags=%d", req->old_flags );
1057 static void dump_dup_handle_request( const struct dup_handle_request *req )
1059 fprintf( stderr, " src_process=%p,", req->src_process );
1060 fprintf( stderr, " src_handle=%p,", req->src_handle );
1061 fprintf( stderr, " dst_process=%p,", req->dst_process );
1062 fprintf( stderr, " access=%08x,", req->access );
1063 fprintf( stderr, " attributes=%08x,", req->attributes );
1064 fprintf( stderr, " options=%08x", req->options );
1067 static void dump_dup_handle_reply( const struct dup_handle_reply *req )
1069 fprintf( stderr, " handle=%p,", req->handle );
1070 fprintf( stderr, " self=%d,", req->self );
1071 fprintf( stderr, " closed=%d", req->closed );
1074 static void dump_open_process_request( const struct open_process_request *req )
1076 fprintf( stderr, " pid=%04x,", req->pid );
1077 fprintf( stderr, " access=%08x,", req->access );
1078 fprintf( stderr, " attributes=%08x", req->attributes );
1081 static void dump_open_process_reply( const struct open_process_reply *req )
1083 fprintf( stderr, " handle=%p", req->handle );
1086 static void dump_open_thread_request( const struct open_thread_request *req )
1088 fprintf( stderr, " tid=%04x,", req->tid );
1089 fprintf( stderr, " access=%08x,", req->access );
1090 fprintf( stderr, " attributes=%08x", req->attributes );
1093 static void dump_open_thread_reply( const struct open_thread_reply *req )
1095 fprintf( stderr, " handle=%p", req->handle );
1098 static void dump_select_request( const struct select_request *req )
1100 fprintf( stderr, " flags=%d,", req->flags );
1101 fprintf( stderr, " cookie=%p,", req->cookie );
1102 fprintf( stderr, " signal=%p,", req->signal );
1103 fprintf( stderr, " prev_apc=%p,", req->prev_apc );
1104 fprintf( stderr, " timeout=" );
1105 dump_timeout( &req->timeout );
1106 fprintf( stderr, "," );
1107 fprintf( stderr, " result=" );
1108 dump_varargs_apc_result( cur_size );
1109 fputc( ',', stderr );
1110 fprintf( stderr, " handles=" );
1111 dump_varargs_handles( cur_size );
1114 static void dump_select_reply( const struct select_reply *req )
1116 fprintf( stderr, " apc_handle=%p,", req->apc_handle );
1117 fprintf( stderr, " timeout=" );
1118 dump_timeout( &req->timeout );
1119 fprintf( stderr, "," );
1120 fprintf( stderr, " call=" );
1121 dump_apc_call( &req->call );
1124 static void dump_create_event_request( const struct create_event_request *req )
1126 fprintf( stderr, " access=%08x,", req->access );
1127 fprintf( stderr, " attributes=%08x,", req->attributes );
1128 fprintf( stderr, " rootdir=%p,", req->rootdir );
1129 fprintf( stderr, " manual_reset=%d,", req->manual_reset );
1130 fprintf( stderr, " initial_state=%d,", req->initial_state );
1131 fprintf( stderr, " name=" );
1132 dump_varargs_unicode_str( cur_size );
1135 static void dump_create_event_reply( const struct create_event_reply *req )
1137 fprintf( stderr, " handle=%p", req->handle );
1140 static void dump_event_op_request( const struct event_op_request *req )
1142 fprintf( stderr, " handle=%p,", req->handle );
1143 fprintf( stderr, " op=%d", req->op );
1146 static void dump_open_event_request( const struct open_event_request *req )
1148 fprintf( stderr, " access=%08x,", req->access );
1149 fprintf( stderr, " attributes=%08x,", req->attributes );
1150 fprintf( stderr, " rootdir=%p,", req->rootdir );
1151 fprintf( stderr, " name=" );
1152 dump_varargs_unicode_str( cur_size );
1155 static void dump_open_event_reply( const struct open_event_reply *req )
1157 fprintf( stderr, " handle=%p", req->handle );
1160 static void dump_create_mutex_request( const struct create_mutex_request *req )
1162 fprintf( stderr, " access=%08x,", req->access );
1163 fprintf( stderr, " attributes=%08x,", req->attributes );
1164 fprintf( stderr, " rootdir=%p,", req->rootdir );
1165 fprintf( stderr, " owned=%d,", req->owned );
1166 fprintf( stderr, " name=" );
1167 dump_varargs_unicode_str( cur_size );
1170 static void dump_create_mutex_reply( const struct create_mutex_reply *req )
1172 fprintf( stderr, " handle=%p", req->handle );
1175 static void dump_release_mutex_request( const struct release_mutex_request *req )
1177 fprintf( stderr, " handle=%p", req->handle );
1180 static void dump_release_mutex_reply( const struct release_mutex_reply *req )
1182 fprintf( stderr, " prev_count=%08x", req->prev_count );
1185 static void dump_open_mutex_request( const struct open_mutex_request *req )
1187 fprintf( stderr, " access=%08x,", req->access );
1188 fprintf( stderr, " attributes=%08x,", req->attributes );
1189 fprintf( stderr, " rootdir=%p,", req->rootdir );
1190 fprintf( stderr, " name=" );
1191 dump_varargs_unicode_str( cur_size );
1194 static void dump_open_mutex_reply( const struct open_mutex_reply *req )
1196 fprintf( stderr, " handle=%p", req->handle );
1199 static void dump_create_semaphore_request( const struct create_semaphore_request *req )
1201 fprintf( stderr, " access=%08x,", req->access );
1202 fprintf( stderr, " attributes=%08x,", req->attributes );
1203 fprintf( stderr, " rootdir=%p,", req->rootdir );
1204 fprintf( stderr, " initial=%08x,", req->initial );
1205 fprintf( stderr, " max=%08x,", req->max );
1206 fprintf( stderr, " name=" );
1207 dump_varargs_unicode_str( cur_size );
1210 static void dump_create_semaphore_reply( const struct create_semaphore_reply *req )
1212 fprintf( stderr, " handle=%p", req->handle );
1215 static void dump_release_semaphore_request( const struct release_semaphore_request *req )
1217 fprintf( stderr, " handle=%p,", req->handle );
1218 fprintf( stderr, " count=%08x", req->count );
1221 static void dump_release_semaphore_reply( const struct release_semaphore_reply *req )
1223 fprintf( stderr, " prev_count=%08x", req->prev_count );
1226 static void dump_open_semaphore_request( const struct open_semaphore_request *req )
1228 fprintf( stderr, " access=%08x,", req->access );
1229 fprintf( stderr, " attributes=%08x,", req->attributes );
1230 fprintf( stderr, " rootdir=%p,", req->rootdir );
1231 fprintf( stderr, " name=" );
1232 dump_varargs_unicode_str( cur_size );
1235 static void dump_open_semaphore_reply( const struct open_semaphore_reply *req )
1237 fprintf( stderr, " handle=%p", req->handle );
1240 static void dump_create_file_request( const struct create_file_request *req )
1242 fprintf( stderr, " access=%08x,", req->access );
1243 fprintf( stderr, " attributes=%08x,", req->attributes );
1244 fprintf( stderr, " sharing=%08x,", req->sharing );
1245 fprintf( stderr, " create=%d,", req->create );
1246 fprintf( stderr, " options=%08x,", req->options );
1247 fprintf( stderr, " attrs=%08x,", req->attrs );
1248 fprintf( stderr, " filename=" );
1249 dump_varargs_string( cur_size );
1252 static void dump_create_file_reply( const struct create_file_reply *req )
1254 fprintf( stderr, " handle=%p", req->handle );
1257 static void dump_open_file_object_request( const struct open_file_object_request *req )
1259 fprintf( stderr, " access=%08x,", req->access );
1260 fprintf( stderr, " attributes=%08x,", req->attributes );
1261 fprintf( stderr, " rootdir=%p,", req->rootdir );
1262 fprintf( stderr, " sharing=%08x,", req->sharing );
1263 fprintf( stderr, " options=%08x,", req->options );
1264 fprintf( stderr, " filename=" );
1265 dump_varargs_unicode_str( cur_size );
1268 static void dump_open_file_object_reply( const struct open_file_object_reply *req )
1270 fprintf( stderr, " handle=%p", req->handle );
1273 static void dump_alloc_file_handle_request( const struct alloc_file_handle_request *req )
1275 fprintf( stderr, " access=%08x,", req->access );
1276 fprintf( stderr, " attributes=%08x,", req->attributes );
1277 fprintf( stderr, " fd=%d", req->fd );
1280 static void dump_alloc_file_handle_reply( const struct alloc_file_handle_reply *req )
1282 fprintf( stderr, " handle=%p", req->handle );
1285 static void dump_get_handle_fd_request( const struct get_handle_fd_request *req )
1287 fprintf( stderr, " handle=%p", req->handle );
1290 static void dump_get_handle_fd_reply( const struct get_handle_fd_reply *req )
1292 fprintf( stderr, " type=%d,", req->type );
1293 fprintf( stderr, " removable=%d,", req->removable );
1294 fprintf( stderr, " access=%08x,", req->access );
1295 fprintf( stderr, " options=%08x", req->options );
1298 static void dump_flush_file_request( const struct flush_file_request *req )
1300 fprintf( stderr, " handle=%p", req->handle );
1303 static void dump_flush_file_reply( const struct flush_file_reply *req )
1305 fprintf( stderr, " event=%p", req->event );
1308 static void dump_lock_file_request( const struct lock_file_request *req )
1310 fprintf( stderr, " handle=%p,", req->handle );
1311 fprintf( stderr, " offset_low=%08x,", req->offset_low );
1312 fprintf( stderr, " offset_high=%08x,", req->offset_high );
1313 fprintf( stderr, " count_low=%08x,", req->count_low );
1314 fprintf( stderr, " count_high=%08x,", req->count_high );
1315 fprintf( stderr, " shared=%d,", req->shared );
1316 fprintf( stderr, " wait=%d", req->wait );
1319 static void dump_lock_file_reply( const struct lock_file_reply *req )
1321 fprintf( stderr, " handle=%p,", req->handle );
1322 fprintf( stderr, " overlapped=%d", req->overlapped );
1325 static void dump_unlock_file_request( const struct unlock_file_request *req )
1327 fprintf( stderr, " handle=%p,", req->handle );
1328 fprintf( stderr, " offset_low=%08x,", req->offset_low );
1329 fprintf( stderr, " offset_high=%08x,", req->offset_high );
1330 fprintf( stderr, " count_low=%08x,", req->count_low );
1331 fprintf( stderr, " count_high=%08x", req->count_high );
1334 static void dump_create_socket_request( const struct create_socket_request *req )
1336 fprintf( stderr, " access=%08x,", req->access );
1337 fprintf( stderr, " attributes=%08x,", req->attributes );
1338 fprintf( stderr, " family=%d,", req->family );
1339 fprintf( stderr, " type=%d,", req->type );
1340 fprintf( stderr, " protocol=%d,", req->protocol );
1341 fprintf( stderr, " flags=%08x", req->flags );
1344 static void dump_create_socket_reply( const struct create_socket_reply *req )
1346 fprintf( stderr, " handle=%p", req->handle );
1349 static void dump_accept_socket_request( const struct accept_socket_request *req )
1351 fprintf( stderr, " lhandle=%p,", req->lhandle );
1352 fprintf( stderr, " access=%08x,", req->access );
1353 fprintf( stderr, " attributes=%08x", req->attributes );
1356 static void dump_accept_socket_reply( const struct accept_socket_reply *req )
1358 fprintf( stderr, " handle=%p", req->handle );
1361 static void dump_set_socket_event_request( const struct set_socket_event_request *req )
1363 fprintf( stderr, " handle=%p,", req->handle );
1364 fprintf( stderr, " mask=%08x,", req->mask );
1365 fprintf( stderr, " event=%p,", req->event );
1366 fprintf( stderr, " window=%p,", req->window );
1367 fprintf( stderr, " msg=%08x", req->msg );
1370 static void dump_get_socket_event_request( const struct get_socket_event_request *req )
1372 fprintf( stderr, " handle=%p,", req->handle );
1373 fprintf( stderr, " service=%d,", req->service );
1374 fprintf( stderr, " c_event=%p", req->c_event );
1377 static void dump_get_socket_event_reply( const struct get_socket_event_reply *req )
1379 fprintf( stderr, " mask=%08x,", req->mask );
1380 fprintf( stderr, " pmask=%08x,", req->pmask );
1381 fprintf( stderr, " state=%08x,", req->state );
1382 fprintf( stderr, " errors=" );
1383 dump_varargs_ints( cur_size );
1386 static void dump_enable_socket_event_request( const struct enable_socket_event_request *req )
1388 fprintf( stderr, " handle=%p,", req->handle );
1389 fprintf( stderr, " mask=%08x,", req->mask );
1390 fprintf( stderr, " sstate=%08x,", req->sstate );
1391 fprintf( stderr, " cstate=%08x", req->cstate );
1394 static void dump_set_socket_deferred_request( const struct set_socket_deferred_request *req )
1396 fprintf( stderr, " handle=%p,", req->handle );
1397 fprintf( stderr, " deferred=%p", req->deferred );
1400 static void dump_alloc_console_request( const struct alloc_console_request *req )
1402 fprintf( stderr, " access=%08x,", req->access );
1403 fprintf( stderr, " attributes=%08x,", req->attributes );
1404 fprintf( stderr, " pid=%04x", req->pid );
1407 static void dump_alloc_console_reply( const struct alloc_console_reply *req )
1409 fprintf( stderr, " handle_in=%p,", req->handle_in );
1410 fprintf( stderr, " event=%p", req->event );
1413 static void dump_free_console_request( const struct free_console_request *req )
1417 static void dump_get_console_renderer_events_request( const struct get_console_renderer_events_request *req )
1419 fprintf( stderr, " handle=%p", req->handle );
1422 static void dump_get_console_renderer_events_reply( const struct get_console_renderer_events_reply *req )
1424 fprintf( stderr, " data=" );
1425 dump_varargs_bytes( cur_size );
1428 static void dump_open_console_request( const struct open_console_request *req )
1430 fprintf( stderr, " from=%p,", req->from );
1431 fprintf( stderr, " access=%08x,", req->access );
1432 fprintf( stderr, " attributes=%08x,", req->attributes );
1433 fprintf( stderr, " share=%d", req->share );
1436 static void dump_open_console_reply( const struct open_console_reply *req )
1438 fprintf( stderr, " handle=%p", req->handle );
1441 static void dump_get_console_wait_event_request( const struct get_console_wait_event_request *req )
1445 static void dump_get_console_wait_event_reply( const struct get_console_wait_event_reply *req )
1447 fprintf( stderr, " handle=%p", req->handle );
1450 static void dump_get_console_mode_request( const struct get_console_mode_request *req )
1452 fprintf( stderr, " handle=%p", req->handle );
1455 static void dump_get_console_mode_reply( const struct get_console_mode_reply *req )
1457 fprintf( stderr, " mode=%d", req->mode );
1460 static void dump_set_console_mode_request( const struct set_console_mode_request *req )
1462 fprintf( stderr, " handle=%p,", req->handle );
1463 fprintf( stderr, " mode=%d", req->mode );
1466 static void dump_set_console_input_info_request( const struct set_console_input_info_request *req )
1468 fprintf( stderr, " handle=%p,", req->handle );
1469 fprintf( stderr, " mask=%d,", req->mask );
1470 fprintf( stderr, " active_sb=%p,", req->active_sb );
1471 fprintf( stderr, " history_mode=%d,", req->history_mode );
1472 fprintf( stderr, " history_size=%d,", req->history_size );
1473 fprintf( stderr, " edition_mode=%d,", req->edition_mode );
1474 fprintf( stderr, " input_cp=%d,", req->input_cp );
1475 fprintf( stderr, " output_cp=%d,", req->output_cp );
1476 fprintf( stderr, " title=" );
1477 dump_varargs_unicode_str( cur_size );
1480 static void dump_get_console_input_info_request( const struct get_console_input_info_request *req )
1482 fprintf( stderr, " handle=%p", req->handle );
1485 static void dump_get_console_input_info_reply( const struct get_console_input_info_reply *req )
1487 fprintf( stderr, " history_mode=%d,", req->history_mode );
1488 fprintf( stderr, " history_size=%d,", req->history_size );
1489 fprintf( stderr, " history_index=%d,", req->history_index );
1490 fprintf( stderr, " edition_mode=%d,", req->edition_mode );
1491 fprintf( stderr, " input_cp=%d,", req->input_cp );
1492 fprintf( stderr, " output_cp=%d,", req->output_cp );
1493 fprintf( stderr, " title=" );
1494 dump_varargs_unicode_str( cur_size );
1497 static void dump_append_console_input_history_request( const struct append_console_input_history_request *req )
1499 fprintf( stderr, " handle=%p,", req->handle );
1500 fprintf( stderr, " line=" );
1501 dump_varargs_unicode_str( cur_size );
1504 static void dump_get_console_input_history_request( const struct get_console_input_history_request *req )
1506 fprintf( stderr, " handle=%p,", req->handle );
1507 fprintf( stderr, " index=%d", req->index );
1510 static void dump_get_console_input_history_reply( const struct get_console_input_history_reply *req )
1512 fprintf( stderr, " total=%d,", req->total );
1513 fprintf( stderr, " line=" );
1514 dump_varargs_unicode_str( cur_size );
1517 static void dump_create_console_output_request( const struct create_console_output_request *req )
1519 fprintf( stderr, " handle_in=%p,", req->handle_in );
1520 fprintf( stderr, " access=%08x,", req->access );
1521 fprintf( stderr, " attributes=%08x,", req->attributes );
1522 fprintf( stderr, " share=%08x", req->share );
1525 static void dump_create_console_output_reply( const struct create_console_output_reply *req )
1527 fprintf( stderr, " handle_out=%p", req->handle_out );
1530 static void dump_set_console_output_info_request( const struct set_console_output_info_request *req )
1532 fprintf( stderr, " handle=%p,", req->handle );
1533 fprintf( stderr, " mask=%d,", req->mask );
1534 fprintf( stderr, " cursor_size=%d,", req->cursor_size );
1535 fprintf( stderr, " cursor_visible=%d,", req->cursor_visible );
1536 fprintf( stderr, " cursor_x=%d,", req->cursor_x );
1537 fprintf( stderr, " cursor_y=%d,", req->cursor_y );
1538 fprintf( stderr, " width=%d,", req->width );
1539 fprintf( stderr, " height=%d,", req->height );
1540 fprintf( stderr, " attr=%d,", req->attr );
1541 fprintf( stderr, " win_left=%d,", req->win_left );
1542 fprintf( stderr, " win_top=%d,", req->win_top );
1543 fprintf( stderr, " win_right=%d,", req->win_right );
1544 fprintf( stderr, " win_bottom=%d,", req->win_bottom );
1545 fprintf( stderr, " max_width=%d,", req->max_width );
1546 fprintf( stderr, " max_height=%d", req->max_height );
1549 static void dump_get_console_output_info_request( const struct get_console_output_info_request *req )
1551 fprintf( stderr, " handle=%p", req->handle );
1554 static void dump_get_console_output_info_reply( const struct get_console_output_info_reply *req )
1556 fprintf( stderr, " cursor_size=%d,", req->cursor_size );
1557 fprintf( stderr, " cursor_visible=%d,", req->cursor_visible );
1558 fprintf( stderr, " cursor_x=%d,", req->cursor_x );
1559 fprintf( stderr, " cursor_y=%d,", req->cursor_y );
1560 fprintf( stderr, " width=%d,", req->width );
1561 fprintf( stderr, " height=%d,", req->height );
1562 fprintf( stderr, " attr=%d,", req->attr );
1563 fprintf( stderr, " win_left=%d,", req->win_left );
1564 fprintf( stderr, " win_top=%d,", req->win_top );
1565 fprintf( stderr, " win_right=%d,", req->win_right );
1566 fprintf( stderr, " win_bottom=%d,", req->win_bottom );
1567 fprintf( stderr, " max_width=%d,", req->max_width );
1568 fprintf( stderr, " max_height=%d", req->max_height );
1571 static void dump_write_console_input_request( const struct write_console_input_request *req )
1573 fprintf( stderr, " handle=%p,", req->handle );
1574 fprintf( stderr, " rec=" );
1575 dump_varargs_input_records( cur_size );
1578 static void dump_write_console_input_reply( const struct write_console_input_reply *req )
1580 fprintf( stderr, " written=%d", req->written );
1583 static void dump_read_console_input_request( const struct read_console_input_request *req )
1585 fprintf( stderr, " handle=%p,", req->handle );
1586 fprintf( stderr, " flush=%d", req->flush );
1589 static void dump_read_console_input_reply( const struct read_console_input_reply *req )
1591 fprintf( stderr, " read=%d,", req->read );
1592 fprintf( stderr, " rec=" );
1593 dump_varargs_input_records( cur_size );
1596 static void dump_write_console_output_request( const struct write_console_output_request *req )
1598 fprintf( stderr, " handle=%p,", req->handle );
1599 fprintf( stderr, " x=%d,", req->x );
1600 fprintf( stderr, " y=%d,", req->y );
1601 fprintf( stderr, " mode=%d,", req->mode );
1602 fprintf( stderr, " wrap=%d,", req->wrap );
1603 fprintf( stderr, " data=" );
1604 dump_varargs_bytes( cur_size );
1607 static void dump_write_console_output_reply( const struct write_console_output_reply *req )
1609 fprintf( stderr, " written=%d,", req->written );
1610 fprintf( stderr, " width=%d,", req->width );
1611 fprintf( stderr, " height=%d", req->height );
1614 static void dump_fill_console_output_request( const struct fill_console_output_request *req )
1616 fprintf( stderr, " handle=%p,", req->handle );
1617 fprintf( stderr, " x=%d,", req->x );
1618 fprintf( stderr, " y=%d,", req->y );
1619 fprintf( stderr, " mode=%d,", req->mode );
1620 fprintf( stderr, " count=%d,", req->count );
1621 fprintf( stderr, " wrap=%d,", req->wrap );
1622 fprintf( stderr, " data=" );
1623 dump_char_info( &req->data );
1626 static void dump_fill_console_output_reply( const struct fill_console_output_reply *req )
1628 fprintf( stderr, " written=%d", req->written );
1631 static void dump_read_console_output_request( const struct read_console_output_request *req )
1633 fprintf( stderr, " handle=%p,", req->handle );
1634 fprintf( stderr, " x=%d,", req->x );
1635 fprintf( stderr, " y=%d,", req->y );
1636 fprintf( stderr, " mode=%d,", req->mode );
1637 fprintf( stderr, " wrap=%d", req->wrap );
1640 static void dump_read_console_output_reply( const struct read_console_output_reply *req )
1642 fprintf( stderr, " width=%d,", req->width );
1643 fprintf( stderr, " height=%d,", req->height );
1644 fprintf( stderr, " data=" );
1645 dump_varargs_bytes( cur_size );
1648 static void dump_move_console_output_request( const struct move_console_output_request *req )
1650 fprintf( stderr, " handle=%p,", req->handle );
1651 fprintf( stderr, " x_src=%d,", req->x_src );
1652 fprintf( stderr, " y_src=%d,", req->y_src );
1653 fprintf( stderr, " x_dst=%d,", req->x_dst );
1654 fprintf( stderr, " y_dst=%d,", req->y_dst );
1655 fprintf( stderr, " w=%d,", req->w );
1656 fprintf( stderr, " h=%d", req->h );
1659 static void dump_send_console_signal_request( const struct send_console_signal_request *req )
1661 fprintf( stderr, " signal=%d,", req->signal );
1662 fprintf( stderr, " group_id=%04x", req->group_id );
1665 static void dump_read_directory_changes_request( const struct read_directory_changes_request *req )
1667 fprintf( stderr, " filter=%08x,", req->filter );
1668 fprintf( stderr, " handle=%p,", req->handle );
1669 fprintf( stderr, " subtree=%d,", req->subtree );
1670 fprintf( stderr, " want_data=%d,", req->want_data );
1671 fprintf( stderr, " async=" );
1672 dump_async_data( &req->async );
1675 static void dump_read_change_request( const struct read_change_request *req )
1677 fprintf( stderr, " handle=%p", req->handle );
1680 static void dump_read_change_reply( const struct read_change_reply *req )
1682 fprintf( stderr, " action=%d,", req->action );
1683 fprintf( stderr, " name=" );
1684 dump_varargs_string( cur_size );
1687 static void dump_create_mapping_request( const struct create_mapping_request *req )
1689 fprintf( stderr, " access=%08x,", req->access );
1690 fprintf( stderr, " attributes=%08x,", req->attributes );
1691 fprintf( stderr, " rootdir=%p,", req->rootdir );
1692 fprintf( stderr, " size_high=%d,", req->size_high );
1693 fprintf( stderr, " size_low=%d,", req->size_low );
1694 fprintf( stderr, " protect=%d,", req->protect );
1695 fprintf( stderr, " file_handle=%p,", req->file_handle );
1696 fprintf( stderr, " name=" );
1697 dump_varargs_unicode_str( cur_size );
1700 static void dump_create_mapping_reply( const struct create_mapping_reply *req )
1702 fprintf( stderr, " handle=%p", req->handle );
1705 static void dump_open_mapping_request( const struct open_mapping_request *req )
1707 fprintf( stderr, " access=%08x,", req->access );
1708 fprintf( stderr, " attributes=%08x,", req->attributes );
1709 fprintf( stderr, " rootdir=%p,", req->rootdir );
1710 fprintf( stderr, " name=" );
1711 dump_varargs_unicode_str( cur_size );
1714 static void dump_open_mapping_reply( const struct open_mapping_reply *req )
1716 fprintf( stderr, " handle=%p", req->handle );
1719 static void dump_get_mapping_info_request( const struct get_mapping_info_request *req )
1721 fprintf( stderr, " handle=%p", req->handle );
1724 static void dump_get_mapping_info_reply( const struct get_mapping_info_reply *req )
1726 fprintf( stderr, " size_high=%d,", req->size_high );
1727 fprintf( stderr, " size_low=%d,", req->size_low );
1728 fprintf( stderr, " protect=%d,", req->protect );
1729 fprintf( stderr, " header_size=%d,", req->header_size );
1730 fprintf( stderr, " base=%p,", req->base );
1731 fprintf( stderr, " mapping=%p,", req->mapping );
1732 fprintf( stderr, " shared_file=%p,", req->shared_file );
1733 fprintf( stderr, " shared_size=%d", req->shared_size );
1736 static void dump_create_snapshot_request( const struct create_snapshot_request *req )
1738 fprintf( stderr, " attributes=%08x,", req->attributes );
1739 fprintf( stderr, " flags=%d,", req->flags );
1740 fprintf( stderr, " pid=%04x", req->pid );
1743 static void dump_create_snapshot_reply( const struct create_snapshot_reply *req )
1745 fprintf( stderr, " handle=%p", req->handle );
1748 static void dump_next_process_request( const struct next_process_request *req )
1750 fprintf( stderr, " handle=%p,", req->handle );
1751 fprintf( stderr, " reset=%d", req->reset );
1754 static void dump_next_process_reply( const struct next_process_reply *req )
1756 fprintf( stderr, " count=%d,", req->count );
1757 fprintf( stderr, " pid=%04x,", req->pid );
1758 fprintf( stderr, " ppid=%04x,", req->ppid );
1759 fprintf( stderr, " heap=%p,", req->heap );
1760 fprintf( stderr, " module=%p,", req->module );
1761 fprintf( stderr, " threads=%d,", req->threads );
1762 fprintf( stderr, " priority=%d,", req->priority );
1763 fprintf( stderr, " handles=%d,", req->handles );
1764 fprintf( stderr, " filename=" );
1765 dump_varargs_unicode_str( cur_size );
1768 static void dump_next_thread_request( const struct next_thread_request *req )
1770 fprintf( stderr, " handle=%p,", req->handle );
1771 fprintf( stderr, " reset=%d", req->reset );
1774 static void dump_next_thread_reply( const struct next_thread_reply *req )
1776 fprintf( stderr, " count=%d,", req->count );
1777 fprintf( stderr, " pid=%04x,", req->pid );
1778 fprintf( stderr, " tid=%04x,", req->tid );
1779 fprintf( stderr, " base_pri=%d,", req->base_pri );
1780 fprintf( stderr, " delta_pri=%d", req->delta_pri );
1783 static void dump_next_module_request( const struct next_module_request *req )
1785 fprintf( stderr, " handle=%p,", req->handle );
1786 fprintf( stderr, " reset=%d", req->reset );
1789 static void dump_next_module_reply( const struct next_module_reply *req )
1791 fprintf( stderr, " pid=%04x,", req->pid );
1792 fprintf( stderr, " base=%p,", req->base );
1793 fprintf( stderr, " size=%lu,", (unsigned long)req->size );
1794 fprintf( stderr, " filename=" );
1795 dump_varargs_unicode_str( cur_size );
1798 static void dump_wait_debug_event_request( const struct wait_debug_event_request *req )
1800 fprintf( stderr, " get_handle=%d", req->get_handle );
1803 static void dump_wait_debug_event_reply( const struct wait_debug_event_reply *req )
1805 fprintf( stderr, " pid=%04x,", req->pid );
1806 fprintf( stderr, " tid=%04x,", req->tid );
1807 fprintf( stderr, " wait=%p,", req->wait );
1808 fprintf( stderr, " event=" );
1809 dump_varargs_debug_event( cur_size );
1812 static void dump_queue_exception_event_request( const struct queue_exception_event_request *req )
1814 fprintf( stderr, " first=%d,", req->first );
1815 fprintf( stderr, " record=" );
1816 dump_varargs_exc_event( cur_size );
1819 static void dump_queue_exception_event_reply( const struct queue_exception_event_reply *req )
1821 fprintf( stderr, " handle=%p", req->handle );
1824 static void dump_get_exception_status_request( const struct get_exception_status_request *req )
1826 fprintf( stderr, " handle=%p", req->handle );
1829 static void dump_get_exception_status_reply( const struct get_exception_status_reply *req )
1831 fprintf( stderr, " context=" );
1832 dump_varargs_context( cur_size );
1835 static void dump_output_debug_string_request( const struct output_debug_string_request *req )
1837 fprintf( stderr, " string=%p,", req->string );
1838 fprintf( stderr, " unicode=%d,", req->unicode );
1839 fprintf( stderr, " length=%d", req->length );
1842 static void dump_continue_debug_event_request( const struct continue_debug_event_request *req )
1844 fprintf( stderr, " pid=%04x,", req->pid );
1845 fprintf( stderr, " tid=%04x,", req->tid );
1846 fprintf( stderr, " status=%d", req->status );
1849 static void dump_debug_process_request( const struct debug_process_request *req )
1851 fprintf( stderr, " pid=%04x,", req->pid );
1852 fprintf( stderr, " attach=%d", req->attach );
1855 static void dump_debug_break_request( const struct debug_break_request *req )
1857 fprintf( stderr, " handle=%p", req->handle );
1860 static void dump_debug_break_reply( const struct debug_break_reply *req )
1862 fprintf( stderr, " self=%d", req->self );
1865 static void dump_set_debugger_kill_on_exit_request( const struct set_debugger_kill_on_exit_request *req )
1867 fprintf( stderr, " kill_on_exit=%d", req->kill_on_exit );
1870 static void dump_read_process_memory_request( const struct read_process_memory_request *req )
1872 fprintf( stderr, " handle=%p,", req->handle );
1873 fprintf( stderr, " addr=%p", req->addr );
1876 static void dump_read_process_memory_reply( const struct read_process_memory_reply *req )
1878 fprintf( stderr, " data=" );
1879 dump_varargs_bytes( cur_size );
1882 static void dump_write_process_memory_request( const struct write_process_memory_request *req )
1884 fprintf( stderr, " handle=%p,", req->handle );
1885 fprintf( stderr, " addr=%p,", req->addr );
1886 fprintf( stderr, " data=" );
1887 dump_varargs_bytes( cur_size );
1890 static void dump_create_key_request( const struct create_key_request *req )
1892 fprintf( stderr, " parent=%p,", req->parent );
1893 fprintf( stderr, " access=%08x,", req->access );
1894 fprintf( stderr, " attributes=%08x,", req->attributes );
1895 fprintf( stderr, " options=%08x,", req->options );
1896 fprintf( stderr, " modif=%ld,", (long)req->modif );
1897 fprintf( stderr, " namelen=%u,", req->namelen );
1898 fprintf( stderr, " name=" );
1899 dump_varargs_unicode_str( min(cur_size,req->namelen) );
1900 fputc( ',', stderr );
1901 fprintf( stderr, " class=" );
1902 dump_varargs_unicode_str( cur_size );
1905 static void dump_create_key_reply( const struct create_key_reply *req )
1907 fprintf( stderr, " hkey=%p,", req->hkey );
1908 fprintf( stderr, " created=%d", req->created );
1911 static void dump_open_key_request( const struct open_key_request *req )
1913 fprintf( stderr, " parent=%p,", req->parent );
1914 fprintf( stderr, " access=%08x,", req->access );
1915 fprintf( stderr, " attributes=%08x,", req->attributes );
1916 fprintf( stderr, " name=" );
1917 dump_varargs_unicode_str( cur_size );
1920 static void dump_open_key_reply( const struct open_key_reply *req )
1922 fprintf( stderr, " hkey=%p", req->hkey );
1925 static void dump_delete_key_request( const struct delete_key_request *req )
1927 fprintf( stderr, " hkey=%p", req->hkey );
1930 static void dump_flush_key_request( const struct flush_key_request *req )
1932 fprintf( stderr, " hkey=%p", req->hkey );
1935 static void dump_enum_key_request( const struct enum_key_request *req )
1937 fprintf( stderr, " hkey=%p,", req->hkey );
1938 fprintf( stderr, " index=%d,", req->index );
1939 fprintf( stderr, " info_class=%d", req->info_class );
1942 static void dump_enum_key_reply( const struct enum_key_reply *req )
1944 fprintf( stderr, " subkeys=%d,", req->subkeys );
1945 fprintf( stderr, " max_subkey=%d,", req->max_subkey );
1946 fprintf( stderr, " max_class=%d,", req->max_class );
1947 fprintf( stderr, " values=%d,", req->values );
1948 fprintf( stderr, " max_value=%d,", req->max_value );
1949 fprintf( stderr, " max_data=%d,", req->max_data );
1950 fprintf( stderr, " modif=%ld,", (long)req->modif );
1951 fprintf( stderr, " total=%u,", req->total );
1952 fprintf( stderr, " namelen=%u,", req->namelen );
1953 fprintf( stderr, " name=" );
1954 dump_varargs_unicode_str( min(cur_size,req->namelen) );
1955 fputc( ',', stderr );
1956 fprintf( stderr, " class=" );
1957 dump_varargs_unicode_str( cur_size );
1960 static void dump_set_key_value_request( const struct set_key_value_request *req )
1962 fprintf( stderr, " hkey=%p,", req->hkey );
1963 fprintf( stderr, " type=%d,", req->type );
1964 fprintf( stderr, " namelen=%u,", req->namelen );
1965 fprintf( stderr, " name=" );
1966 dump_varargs_unicode_str( min(cur_size,req->namelen) );
1967 fputc( ',', stderr );
1968 fprintf( stderr, " data=" );
1969 dump_varargs_bytes( cur_size );
1972 static void dump_get_key_value_request( const struct get_key_value_request *req )
1974 fprintf( stderr, " hkey=%p,", req->hkey );
1975 fprintf( stderr, " name=" );
1976 dump_varargs_unicode_str( cur_size );
1979 static void dump_get_key_value_reply( const struct get_key_value_reply *req )
1981 fprintf( stderr, " type=%d,", req->type );
1982 fprintf( stderr, " total=%u,", req->total );
1983 fprintf( stderr, " data=" );
1984 dump_varargs_bytes( cur_size );
1987 static void dump_enum_key_value_request( const struct enum_key_value_request *req )
1989 fprintf( stderr, " hkey=%p,", req->hkey );
1990 fprintf( stderr, " index=%d,", req->index );
1991 fprintf( stderr, " info_class=%d", req->info_class );
1994 static void dump_enum_key_value_reply( const struct enum_key_value_reply *req )
1996 fprintf( stderr, " type=%d,", req->type );
1997 fprintf( stderr, " total=%u,", req->total );
1998 fprintf( stderr, " namelen=%u,", req->namelen );
1999 fprintf( stderr, " name=" );
2000 dump_varargs_unicode_str( min(cur_size,req->namelen) );
2001 fputc( ',', stderr );
2002 fprintf( stderr, " data=" );
2003 dump_varargs_bytes( cur_size );
2006 static void dump_delete_key_value_request( const struct delete_key_value_request *req )
2008 fprintf( stderr, " hkey=%p,", req->hkey );
2009 fprintf( stderr, " name=" );
2010 dump_varargs_unicode_str( cur_size );
2013 static void dump_load_registry_request( const struct load_registry_request *req )
2015 fprintf( stderr, " hkey=%p,", req->hkey );
2016 fprintf( stderr, " file=%p,", req->file );
2017 fprintf( stderr, " name=" );
2018 dump_varargs_unicode_str( cur_size );
2021 static void dump_unload_registry_request( const struct unload_registry_request *req )
2023 fprintf( stderr, " hkey=%p", req->hkey );
2026 static void dump_save_registry_request( const struct save_registry_request *req )
2028 fprintf( stderr, " hkey=%p,", req->hkey );
2029 fprintf( stderr, " file=%p", req->file );
2032 static void dump_set_registry_notification_request( const struct set_registry_notification_request *req )
2034 fprintf( stderr, " hkey=%p,", req->hkey );
2035 fprintf( stderr, " event=%p,", req->event );
2036 fprintf( stderr, " subtree=%d,", req->subtree );
2037 fprintf( stderr, " filter=%08x", req->filter );
2040 static void dump_create_timer_request( const struct create_timer_request *req )
2042 fprintf( stderr, " access=%08x,", req->access );
2043 fprintf( stderr, " attributes=%08x,", req->attributes );
2044 fprintf( stderr, " rootdir=%p,", req->rootdir );
2045 fprintf( stderr, " manual=%d,", req->manual );
2046 fprintf( stderr, " name=" );
2047 dump_varargs_unicode_str( cur_size );
2050 static void dump_create_timer_reply( const struct create_timer_reply *req )
2052 fprintf( stderr, " handle=%p", req->handle );
2055 static void dump_open_timer_request( const struct open_timer_request *req )
2057 fprintf( stderr, " access=%08x,", req->access );
2058 fprintf( stderr, " attributes=%08x,", req->attributes );
2059 fprintf( stderr, " rootdir=%p,", req->rootdir );
2060 fprintf( stderr, " name=" );
2061 dump_varargs_unicode_str( cur_size );
2064 static void dump_open_timer_reply( const struct open_timer_reply *req )
2066 fprintf( stderr, " handle=%p", req->handle );
2069 static void dump_set_timer_request( const struct set_timer_request *req )
2071 fprintf( stderr, " handle=%p,", req->handle );
2072 fprintf( stderr, " expire=" );
2073 dump_timeout( &req->expire );
2074 fprintf( stderr, "," );
2075 fprintf( stderr, " period=%d,", req->period );
2076 fprintf( stderr, " callback=%p,", req->callback );
2077 fprintf( stderr, " arg=%p", req->arg );
2080 static void dump_set_timer_reply( const struct set_timer_reply *req )
2082 fprintf( stderr, " signaled=%d", req->signaled );
2085 static void dump_cancel_timer_request( const struct cancel_timer_request *req )
2087 fprintf( stderr, " handle=%p", req->handle );
2090 static void dump_cancel_timer_reply( const struct cancel_timer_reply *req )
2092 fprintf( stderr, " signaled=%d", req->signaled );
2095 static void dump_get_timer_info_request( const struct get_timer_info_request *req )
2097 fprintf( stderr, " handle=%p", req->handle );
2100 static void dump_get_timer_info_reply( const struct get_timer_info_reply *req )
2102 fprintf( stderr, " when=" );
2103 dump_timeout( &req->when );
2104 fprintf( stderr, "," );
2105 fprintf( stderr, " signaled=%d", req->signaled );
2108 static void dump_get_thread_context_request( const struct get_thread_context_request *req )
2110 fprintf( stderr, " handle=%p,", req->handle );
2111 fprintf( stderr, " flags=%08x,", req->flags );
2112 fprintf( stderr, " suspend=%d", req->suspend );
2115 static void dump_get_thread_context_reply( const struct get_thread_context_reply *req )
2117 fprintf( stderr, " self=%d,", req->self );
2118 fprintf( stderr, " context=" );
2119 dump_varargs_context( cur_size );
2122 static void dump_set_thread_context_request( const struct set_thread_context_request *req )
2124 fprintf( stderr, " handle=%p,", req->handle );
2125 fprintf( stderr, " flags=%08x,", req->flags );
2126 fprintf( stderr, " suspend=%d,", req->suspend );
2127 fprintf( stderr, " context=" );
2128 dump_varargs_context( cur_size );
2131 static void dump_set_thread_context_reply( const struct set_thread_context_reply *req )
2133 fprintf( stderr, " self=%d", req->self );
2136 static void dump_get_selector_entry_request( const struct get_selector_entry_request *req )
2138 fprintf( stderr, " handle=%p,", req->handle );
2139 fprintf( stderr, " entry=%d", req->entry );
2142 static void dump_get_selector_entry_reply( const struct get_selector_entry_reply *req )
2144 fprintf( stderr, " base=%08x,", req->base );
2145 fprintf( stderr, " limit=%08x,", req->limit );
2146 fprintf( stderr, " flags=%02x", req->flags );
2149 static void dump_add_atom_request( const struct add_atom_request *req )
2151 fprintf( stderr, " table=%p,", req->table );
2152 fprintf( stderr, " name=" );
2153 dump_varargs_unicode_str( cur_size );
2156 static void dump_add_atom_reply( const struct add_atom_reply *req )
2158 fprintf( stderr, " atom=%04x", req->atom );
2161 static void dump_delete_atom_request( const struct delete_atom_request *req )
2163 fprintf( stderr, " table=%p,", req->table );
2164 fprintf( stderr, " atom=%04x", req->atom );
2167 static void dump_find_atom_request( const struct find_atom_request *req )
2169 fprintf( stderr, " table=%p,", req->table );
2170 fprintf( stderr, " name=" );
2171 dump_varargs_unicode_str( cur_size );
2174 static void dump_find_atom_reply( const struct find_atom_reply *req )
2176 fprintf( stderr, " atom=%04x", req->atom );
2179 static void dump_get_atom_information_request( const struct get_atom_information_request *req )
2181 fprintf( stderr, " table=%p,", req->table );
2182 fprintf( stderr, " atom=%04x", req->atom );
2185 static void dump_get_atom_information_reply( const struct get_atom_information_reply *req )
2187 fprintf( stderr, " count=%d,", req->count );
2188 fprintf( stderr, " pinned=%d,", req->pinned );
2189 fprintf( stderr, " total=%u,", req->total );
2190 fprintf( stderr, " name=" );
2191 dump_varargs_unicode_str( cur_size );
2194 static void dump_set_atom_information_request( const struct set_atom_information_request *req )
2196 fprintf( stderr, " table=%p,", req->table );
2197 fprintf( stderr, " atom=%04x,", req->atom );
2198 fprintf( stderr, " pinned=%d", req->pinned );
2201 static void dump_empty_atom_table_request( const struct empty_atom_table_request *req )
2203 fprintf( stderr, " table=%p,", req->table );
2204 fprintf( stderr, " if_pinned=%d", req->if_pinned );
2207 static void dump_init_atom_table_request( const struct init_atom_table_request *req )
2209 fprintf( stderr, " entries=%d", req->entries );
2212 static void dump_init_atom_table_reply( const struct init_atom_table_reply *req )
2214 fprintf( stderr, " table=%p", req->table );
2217 static void dump_get_msg_queue_request( const struct get_msg_queue_request *req )
2221 static void dump_get_msg_queue_reply( const struct get_msg_queue_reply *req )
2223 fprintf( stderr, " handle=%p", req->handle );
2226 static void dump_set_queue_fd_request( const struct set_queue_fd_request *req )
2228 fprintf( stderr, " handle=%p", req->handle );
2231 static void dump_set_queue_mask_request( const struct set_queue_mask_request *req )
2233 fprintf( stderr, " wake_mask=%08x,", req->wake_mask );
2234 fprintf( stderr, " changed_mask=%08x,", req->changed_mask );
2235 fprintf( stderr, " skip_wait=%d", req->skip_wait );
2238 static void dump_set_queue_mask_reply( const struct set_queue_mask_reply *req )
2240 fprintf( stderr, " wake_bits=%08x,", req->wake_bits );
2241 fprintf( stderr, " changed_bits=%08x", req->changed_bits );
2244 static void dump_get_queue_status_request( const struct get_queue_status_request *req )
2246 fprintf( stderr, " clear=%d", req->clear );
2249 static void dump_get_queue_status_reply( const struct get_queue_status_reply *req )
2251 fprintf( stderr, " wake_bits=%08x,", req->wake_bits );
2252 fprintf( stderr, " changed_bits=%08x", req->changed_bits );
2255 static void dump_get_process_idle_event_request( const struct get_process_idle_event_request *req )
2257 fprintf( stderr, " handle=%p", req->handle );
2260 static void dump_get_process_idle_event_reply( const struct get_process_idle_event_reply *req )
2262 fprintf( stderr, " event=%p", req->event );
2265 static void dump_send_message_request( const struct send_message_request *req )
2267 fprintf( stderr, " id=%04x,", req->id );
2268 fprintf( stderr, " type=%d,", req->type );
2269 fprintf( stderr, " flags=%d,", req->flags );
2270 fprintf( stderr, " win=%p,", req->win );
2271 fprintf( stderr, " msg=%08x,", req->msg );
2272 fprintf( stderr, " wparam=%lx,", req->wparam );
2273 fprintf( stderr, " lparam=%lx,", req->lparam );
2274 fprintf( stderr, " timeout=" );
2275 dump_timeout( &req->timeout );
2276 fprintf( stderr, "," );
2277 fprintf( stderr, " data=" );
2278 dump_varargs_message_data( cur_size );
2281 static void dump_post_quit_message_request( const struct post_quit_message_request *req )
2283 fprintf( stderr, " exit_code=%d", req->exit_code );
2286 static void dump_send_hardware_message_request( const struct send_hardware_message_request *req )
2288 fprintf( stderr, " id=%04x,", req->id );
2289 fprintf( stderr, " win=%p,", req->win );
2290 fprintf( stderr, " msg=%08x,", req->msg );
2291 fprintf( stderr, " time=%08x,", req->time );
2292 fprintf( stderr, " wparam=%lx,", req->wparam );
2293 fprintf( stderr, " lparam=%lx,", req->lparam );
2294 fprintf( stderr, " info=%lx,", req->info );
2295 fprintf( stderr, " x=%d,", req->x );
2296 fprintf( stderr, " y=%d", req->y );
2299 static void dump_get_message_request( const struct get_message_request *req )
2301 fprintf( stderr, " flags=%08x,", req->flags );
2302 fprintf( stderr, " get_win=%p,", req->get_win );
2303 fprintf( stderr, " get_first=%08x,", req->get_first );
2304 fprintf( stderr, " get_last=%08x,", req->get_last );
2305 fprintf( stderr, " hw_id=%08x", req->hw_id );
2308 static void dump_get_message_reply( const struct get_message_reply *req )
2310 fprintf( stderr, " win=%p,", req->win );
2311 fprintf( stderr, " type=%d,", req->type );
2312 fprintf( stderr, " msg=%08x,", req->msg );
2313 fprintf( stderr, " wparam=%lx,", req->wparam );
2314 fprintf( stderr, " lparam=%lx,", req->lparam );
2315 fprintf( stderr, " info=%lx,", req->info );
2316 fprintf( stderr, " x=%d,", req->x );
2317 fprintf( stderr, " y=%d,", req->y );
2318 fprintf( stderr, " time=%08x,", req->time );
2319 fprintf( stderr, " hw_id=%08x,", req->hw_id );
2320 fprintf( stderr, " active_hooks=%08x,", req->active_hooks );
2321 fprintf( stderr, " total=%u,", req->total );
2322 fprintf( stderr, " data=" );
2323 dump_varargs_message_data( cur_size );
2326 static void dump_reply_message_request( const struct reply_message_request *req )
2328 fprintf( stderr, " result=%08x,", req->result );
2329 fprintf( stderr, " remove=%d,", req->remove );
2330 fprintf( stderr, " data=" );
2331 dump_varargs_bytes( cur_size );
2334 static void dump_accept_hardware_message_request( const struct accept_hardware_message_request *req )
2336 fprintf( stderr, " hw_id=%08x,", req->hw_id );
2337 fprintf( stderr, " remove=%d,", req->remove );
2338 fprintf( stderr, " new_win=%p", req->new_win );
2341 static void dump_get_message_reply_request( const struct get_message_reply_request *req )
2343 fprintf( stderr, " cancel=%d", req->cancel );
2346 static void dump_get_message_reply_reply( const struct get_message_reply_reply *req )
2348 fprintf( stderr, " result=%08x,", req->result );
2349 fprintf( stderr, " data=" );
2350 dump_varargs_bytes( cur_size );
2353 static void dump_set_win_timer_request( const struct set_win_timer_request *req )
2355 fprintf( stderr, " win=%p,", req->win );
2356 fprintf( stderr, " msg=%08x,", req->msg );
2357 fprintf( stderr, " rate=%08x,", req->rate );
2358 fprintf( stderr, " id=%lx,", req->id );
2359 fprintf( stderr, " lparam=%lx", req->lparam );
2362 static void dump_set_win_timer_reply( const struct set_win_timer_reply *req )
2364 fprintf( stderr, " id=%lx", req->id );
2367 static void dump_kill_win_timer_request( const struct kill_win_timer_request *req )
2369 fprintf( stderr, " win=%p,", req->win );
2370 fprintf( stderr, " msg=%08x,", req->msg );
2371 fprintf( stderr, " id=%lx", req->id );
2374 static void dump_get_serial_info_request( const struct get_serial_info_request *req )
2376 fprintf( stderr, " handle=%p", req->handle );
2379 static void dump_get_serial_info_reply( const struct get_serial_info_reply *req )
2381 fprintf( stderr, " readinterval=%08x,", req->readinterval );
2382 fprintf( stderr, " readconst=%08x,", req->readconst );
2383 fprintf( stderr, " readmult=%08x,", req->readmult );
2384 fprintf( stderr, " writeconst=%08x,", req->writeconst );
2385 fprintf( stderr, " writemult=%08x,", req->writemult );
2386 fprintf( stderr, " eventmask=%08x", req->eventmask );
2389 static void dump_set_serial_info_request( const struct set_serial_info_request *req )
2391 fprintf( stderr, " handle=%p,", req->handle );
2392 fprintf( stderr, " flags=%d,", req->flags );
2393 fprintf( stderr, " readinterval=%08x,", req->readinterval );
2394 fprintf( stderr, " readconst=%08x,", req->readconst );
2395 fprintf( stderr, " readmult=%08x,", req->readmult );
2396 fprintf( stderr, " writeconst=%08x,", req->writeconst );
2397 fprintf( stderr, " writemult=%08x,", req->writemult );
2398 fprintf( stderr, " eventmask=%08x", req->eventmask );
2401 static void dump_register_async_request( const struct register_async_request *req )
2403 fprintf( stderr, " handle=%p,", req->handle );
2404 fprintf( stderr, " type=%d,", req->type );
2405 fprintf( stderr, " count=%d,", req->count );
2406 fprintf( stderr, " async=" );
2407 dump_async_data( &req->async );
2410 static void dump_cancel_async_request( const struct cancel_async_request *req )
2412 fprintf( stderr, " handle=%p", req->handle );
2415 static void dump_ioctl_request( const struct ioctl_request *req )
2417 fprintf( stderr, " handle=%p,", req->handle );
2418 fprintf( stderr, " code=" );
2419 dump_ioctl_code( &req->code );
2420 fprintf( stderr, "," );
2421 fprintf( stderr, " async=" );
2422 dump_async_data( &req->async );
2423 fprintf( stderr, "," );
2424 fprintf( stderr, " in_data=" );
2425 dump_varargs_bytes( cur_size );
2428 static void dump_ioctl_reply( const struct ioctl_reply *req )
2430 fprintf( stderr, " wait=%p,", req->wait );
2431 fprintf( stderr, " options=%08x,", req->options );
2432 fprintf( stderr, " out_data=" );
2433 dump_varargs_bytes( cur_size );
2436 static void dump_get_ioctl_result_request( const struct get_ioctl_result_request *req )
2438 fprintf( stderr, " handle=%p,", req->handle );
2439 fprintf( stderr, " user_arg=%p", req->user_arg );
2442 static void dump_get_ioctl_result_reply( const struct get_ioctl_result_reply *req )
2444 fprintf( stderr, " out_data=" );
2445 dump_varargs_bytes( cur_size );
2448 static void dump_create_named_pipe_request( const struct create_named_pipe_request *req )
2450 fprintf( stderr, " access=%08x,", req->access );
2451 fprintf( stderr, " attributes=%08x,", req->attributes );
2452 fprintf( stderr, " rootdir=%p,", req->rootdir );
2453 fprintf( stderr, " options=%08x,", req->options );
2454 fprintf( stderr, " flags=%08x,", req->flags );
2455 fprintf( stderr, " maxinstances=%08x,", req->maxinstances );
2456 fprintf( stderr, " outsize=%08x,", req->outsize );
2457 fprintf( stderr, " insize=%08x,", req->insize );
2458 fprintf( stderr, " timeout=" );
2459 dump_timeout( &req->timeout );
2460 fprintf( stderr, "," );
2461 fprintf( stderr, " name=" );
2462 dump_varargs_unicode_str( cur_size );
2465 static void dump_create_named_pipe_reply( const struct create_named_pipe_reply *req )
2467 fprintf( stderr, " handle=%p", req->handle );
2470 static void dump_get_named_pipe_info_request( const struct get_named_pipe_info_request *req )
2472 fprintf( stderr, " handle=%p", req->handle );
2475 static void dump_get_named_pipe_info_reply( const struct get_named_pipe_info_reply *req )
2477 fprintf( stderr, " flags=%08x,", req->flags );
2478 fprintf( stderr, " maxinstances=%08x,", req->maxinstances );
2479 fprintf( stderr, " instances=%08x,", req->instances );
2480 fprintf( stderr, " outsize=%08x,", req->outsize );
2481 fprintf( stderr, " insize=%08x", req->insize );
2484 static void dump_create_window_request( const struct create_window_request *req )
2486 fprintf( stderr, " parent=%p,", req->parent );
2487 fprintf( stderr, " owner=%p,", req->owner );
2488 fprintf( stderr, " atom=%04x,", req->atom );
2489 fprintf( stderr, " instance=%p", req->instance );
2492 static void dump_create_window_reply( const struct create_window_reply *req )
2494 fprintf( stderr, " handle=%p,", req->handle );
2495 fprintf( stderr, " parent=%p,", req->parent );
2496 fprintf( stderr, " owner=%p,", req->owner );
2497 fprintf( stderr, " extra=%d,", req->extra );
2498 fprintf( stderr, " class_ptr=%p", req->class_ptr );
2501 static void dump_destroy_window_request( const struct destroy_window_request *req )
2503 fprintf( stderr, " handle=%p", req->handle );
2506 static void dump_get_desktop_window_request( const struct get_desktop_window_request *req )
2508 fprintf( stderr, " force=%d", req->force );
2511 static void dump_get_desktop_window_reply( const struct get_desktop_window_reply *req )
2513 fprintf( stderr, " handle=%p", req->handle );
2516 static void dump_set_window_owner_request( const struct set_window_owner_request *req )
2518 fprintf( stderr, " handle=%p,", req->handle );
2519 fprintf( stderr, " owner=%p", req->owner );
2522 static void dump_set_window_owner_reply( const struct set_window_owner_reply *req )
2524 fprintf( stderr, " full_owner=%p,", req->full_owner );
2525 fprintf( stderr, " prev_owner=%p", req->prev_owner );
2528 static void dump_get_window_info_request( const struct get_window_info_request *req )
2530 fprintf( stderr, " handle=%p", req->handle );
2533 static void dump_get_window_info_reply( const struct get_window_info_reply *req )
2535 fprintf( stderr, " full_handle=%p,", req->full_handle );
2536 fprintf( stderr, " last_active=%p,", req->last_active );
2537 fprintf( stderr, " pid=%04x,", req->pid );
2538 fprintf( stderr, " tid=%04x,", req->tid );
2539 fprintf( stderr, " atom=%04x,", req->atom );
2540 fprintf( stderr, " is_unicode=%d", req->is_unicode );
2543 static void dump_set_window_info_request( const struct set_window_info_request *req )
2545 fprintf( stderr, " flags=%08x,", req->flags );
2546 fprintf( stderr, " handle=%p,", req->handle );
2547 fprintf( stderr, " style=%08x,", req->style );
2548 fprintf( stderr, " ex_style=%08x,", req->ex_style );
2549 fprintf( stderr, " id=%08x,", req->id );
2550 fprintf( stderr, " is_unicode=%d,", req->is_unicode );
2551 fprintf( stderr, " instance=%p,", req->instance );
2552 fprintf( stderr, " user_data=%lx,", req->user_data );
2553 fprintf( stderr, " extra_offset=%d,", req->extra_offset );
2554 fprintf( stderr, " extra_size=%u,", req->extra_size );
2555 fprintf( stderr, " extra_value=%lx", req->extra_value );
2558 static void dump_set_window_info_reply( const struct set_window_info_reply *req )
2560 fprintf( stderr, " old_style=%08x,", req->old_style );
2561 fprintf( stderr, " old_ex_style=%08x,", req->old_ex_style );
2562 fprintf( stderr, " old_id=%08x,", req->old_id );
2563 fprintf( stderr, " old_instance=%p,", req->old_instance );
2564 fprintf( stderr, " old_user_data=%lx,", req->old_user_data );
2565 fprintf( stderr, " old_extra_value=%lx", req->old_extra_value );
2568 static void dump_set_parent_request( const struct set_parent_request *req )
2570 fprintf( stderr, " handle=%p,", req->handle );
2571 fprintf( stderr, " parent=%p", req->parent );
2574 static void dump_set_parent_reply( const struct set_parent_reply *req )
2576 fprintf( stderr, " old_parent=%p,", req->old_parent );
2577 fprintf( stderr, " full_parent=%p", req->full_parent );
2580 static void dump_get_window_parents_request( const struct get_window_parents_request *req )
2582 fprintf( stderr, " handle=%p", req->handle );
2585 static void dump_get_window_parents_reply( const struct get_window_parents_reply *req )
2587 fprintf( stderr, " count=%d,", req->count );
2588 fprintf( stderr, " parents=" );
2589 dump_varargs_user_handles( cur_size );
2592 static void dump_get_window_children_request( const struct get_window_children_request *req )
2594 fprintf( stderr, " parent=%p,", req->parent );
2595 fprintf( stderr, " atom=%04x,", req->atom );
2596 fprintf( stderr, " tid=%04x", req->tid );
2599 static void dump_get_window_children_reply( const struct get_window_children_reply *req )
2601 fprintf( stderr, " count=%d,", req->count );
2602 fprintf( stderr, " children=" );
2603 dump_varargs_user_handles( cur_size );
2606 static void dump_get_window_children_from_point_request( const struct get_window_children_from_point_request *req )
2608 fprintf( stderr, " parent=%p,", req->parent );
2609 fprintf( stderr, " x=%d,", req->x );
2610 fprintf( stderr, " y=%d", req->y );
2613 static void dump_get_window_children_from_point_reply( const struct get_window_children_from_point_reply *req )
2615 fprintf( stderr, " count=%d,", req->count );
2616 fprintf( stderr, " children=" );
2617 dump_varargs_user_handles( cur_size );
2620 static void dump_get_window_tree_request( const struct get_window_tree_request *req )
2622 fprintf( stderr, " handle=%p", req->handle );
2625 static void dump_get_window_tree_reply( const struct get_window_tree_reply *req )
2627 fprintf( stderr, " parent=%p,", req->parent );
2628 fprintf( stderr, " owner=%p,", req->owner );
2629 fprintf( stderr, " next_sibling=%p,", req->next_sibling );
2630 fprintf( stderr, " prev_sibling=%p,", req->prev_sibling );
2631 fprintf( stderr, " first_sibling=%p,", req->first_sibling );
2632 fprintf( stderr, " last_sibling=%p,", req->last_sibling );
2633 fprintf( stderr, " first_child=%p,", req->first_child );
2634 fprintf( stderr, " last_child=%p", req->last_child );
2637 static void dump_set_window_pos_request( const struct set_window_pos_request *req )
2639 fprintf( stderr, " flags=%08x,", req->flags );
2640 fprintf( stderr, " handle=%p,", req->handle );
2641 fprintf( stderr, " previous=%p,", req->previous );
2642 fprintf( stderr, " window=" );
2643 dump_rectangle( &req->window );
2644 fprintf( stderr, "," );
2645 fprintf( stderr, " client=" );
2646 dump_rectangle( &req->client );
2647 fprintf( stderr, "," );
2648 fprintf( stderr, " valid=" );
2649 dump_varargs_rectangles( cur_size );
2652 static void dump_set_window_pos_reply( const struct set_window_pos_reply *req )
2654 fprintf( stderr, " new_style=%08x", req->new_style );
2657 static void dump_get_window_rectangles_request( const struct get_window_rectangles_request *req )
2659 fprintf( stderr, " handle=%p", req->handle );
2662 static void dump_get_window_rectangles_reply( const struct get_window_rectangles_reply *req )
2664 fprintf( stderr, " window=" );
2665 dump_rectangle( &req->window );
2666 fprintf( stderr, "," );
2667 fprintf( stderr, " visible=" );
2668 dump_rectangle( &req->visible );
2669 fprintf( stderr, "," );
2670 fprintf( stderr, " client=" );
2671 dump_rectangle( &req->client );
2674 static void dump_get_window_text_request( const struct get_window_text_request *req )
2676 fprintf( stderr, " handle=%p", req->handle );
2679 static void dump_get_window_text_reply( const struct get_window_text_reply *req )
2681 fprintf( stderr, " text=" );
2682 dump_varargs_unicode_str( cur_size );
2685 static void dump_set_window_text_request( const struct set_window_text_request *req )
2687 fprintf( stderr, " handle=%p,", req->handle );
2688 fprintf( stderr, " text=" );
2689 dump_varargs_unicode_str( cur_size );
2692 static void dump_get_windows_offset_request( const struct get_windows_offset_request *req )
2694 fprintf( stderr, " from=%p,", req->from );
2695 fprintf( stderr, " to=%p", req->to );
2698 static void dump_get_windows_offset_reply( const struct get_windows_offset_reply *req )
2700 fprintf( stderr, " x=%d,", req->x );
2701 fprintf( stderr, " y=%d", req->y );
2704 static void dump_get_visible_region_request( const struct get_visible_region_request *req )
2706 fprintf( stderr, " window=%p,", req->window );
2707 fprintf( stderr, " flags=%08x", req->flags );
2710 static void dump_get_visible_region_reply( const struct get_visible_region_reply *req )
2712 fprintf( stderr, " top_win=%p,", req->top_win );
2713 fprintf( stderr, " top_rect=" );
2714 dump_rectangle( &req->top_rect );
2715 fprintf( stderr, "," );
2716 fprintf( stderr, " win_rect=" );
2717 dump_rectangle( &req->win_rect );
2718 fprintf( stderr, "," );
2719 fprintf( stderr, " total_size=%u,", req->total_size );
2720 fprintf( stderr, " region=" );
2721 dump_varargs_rectangles( cur_size );
2724 static void dump_get_window_region_request( const struct get_window_region_request *req )
2726 fprintf( stderr, " window=%p", req->window );
2729 static void dump_get_window_region_reply( const struct get_window_region_reply *req )
2731 fprintf( stderr, " total_size=%u,", req->total_size );
2732 fprintf( stderr, " region=" );
2733 dump_varargs_rectangles( cur_size );
2736 static void dump_set_window_region_request( const struct set_window_region_request *req )
2738 fprintf( stderr, " window=%p,", req->window );
2739 fprintf( stderr, " redraw=%d,", req->redraw );
2740 fprintf( stderr, " region=" );
2741 dump_varargs_rectangles( cur_size );
2744 static void dump_get_update_region_request( const struct get_update_region_request *req )
2746 fprintf( stderr, " window=%p,", req->window );
2747 fprintf( stderr, " from_child=%p,", req->from_child );
2748 fprintf( stderr, " flags=%08x", req->flags );
2751 static void dump_get_update_region_reply( const struct get_update_region_reply *req )
2753 fprintf( stderr, " child=%p,", req->child );
2754 fprintf( stderr, " flags=%08x,", req->flags );
2755 fprintf( stderr, " total_size=%u,", req->total_size );
2756 fprintf( stderr, " region=" );
2757 dump_varargs_rectangles( cur_size );
2760 static void dump_update_window_zorder_request( const struct update_window_zorder_request *req )
2762 fprintf( stderr, " window=%p,", req->window );
2763 fprintf( stderr, " rect=" );
2764 dump_rectangle( &req->rect );
2767 static void dump_redraw_window_request( const struct redraw_window_request *req )
2769 fprintf( stderr, " window=%p,", req->window );
2770 fprintf( stderr, " flags=%08x,", req->flags );
2771 fprintf( stderr, " region=" );
2772 dump_varargs_rectangles( cur_size );
2775 static void dump_set_window_property_request( const struct set_window_property_request *req )
2777 fprintf( stderr, " window=%p,", req->window );
2778 fprintf( stderr, " atom=%04x,", req->atom );
2779 fprintf( stderr, " handle=%p,", req->handle );
2780 fprintf( stderr, " name=" );
2781 dump_varargs_unicode_str( cur_size );
2784 static void dump_remove_window_property_request( const struct remove_window_property_request *req )
2786 fprintf( stderr, " window=%p,", req->window );
2787 fprintf( stderr, " atom=%04x,", req->atom );
2788 fprintf( stderr, " name=" );
2789 dump_varargs_unicode_str( cur_size );
2792 static void dump_remove_window_property_reply( const struct remove_window_property_reply *req )
2794 fprintf( stderr, " handle=%p", req->handle );
2797 static void dump_get_window_property_request( const struct get_window_property_request *req )
2799 fprintf( stderr, " window=%p,", req->window );
2800 fprintf( stderr, " atom=%04x,", req->atom );
2801 fprintf( stderr, " name=" );
2802 dump_varargs_unicode_str( cur_size );
2805 static void dump_get_window_property_reply( const struct get_window_property_reply *req )
2807 fprintf( stderr, " handle=%p", req->handle );
2810 static void dump_get_window_properties_request( const struct get_window_properties_request *req )
2812 fprintf( stderr, " window=%p", req->window );
2815 static void dump_get_window_properties_reply( const struct get_window_properties_reply *req )
2817 fprintf( stderr, " total=%d,", req->total );
2818 fprintf( stderr, " props=" );
2819 dump_varargs_properties( cur_size );
2822 static void dump_create_winstation_request( const struct create_winstation_request *req )
2824 fprintf( stderr, " flags=%08x,", req->flags );
2825 fprintf( stderr, " access=%08x,", req->access );
2826 fprintf( stderr, " attributes=%08x,", req->attributes );
2827 fprintf( stderr, " name=" );
2828 dump_varargs_unicode_str( cur_size );
2831 static void dump_create_winstation_reply( const struct create_winstation_reply *req )
2833 fprintf( stderr, " handle=%p", req->handle );
2836 static void dump_open_winstation_request( const struct open_winstation_request *req )
2838 fprintf( stderr, " access=%08x,", req->access );
2839 fprintf( stderr, " attributes=%08x,", req->attributes );
2840 fprintf( stderr, " name=" );
2841 dump_varargs_unicode_str( cur_size );
2844 static void dump_open_winstation_reply( const struct open_winstation_reply *req )
2846 fprintf( stderr, " handle=%p", req->handle );
2849 static void dump_close_winstation_request( const struct close_winstation_request *req )
2851 fprintf( stderr, " handle=%p", req->handle );
2854 static void dump_get_process_winstation_request( const struct get_process_winstation_request *req )
2858 static void dump_get_process_winstation_reply( const struct get_process_winstation_reply *req )
2860 fprintf( stderr, " handle=%p", req->handle );
2863 static void dump_set_process_winstation_request( const struct set_process_winstation_request *req )
2865 fprintf( stderr, " handle=%p", req->handle );
2868 static void dump_create_desktop_request( const struct create_desktop_request *req )
2870 fprintf( stderr, " flags=%08x,", req->flags );
2871 fprintf( stderr, " access=%08x,", req->access );
2872 fprintf( stderr, " attributes=%08x,", req->attributes );
2873 fprintf( stderr, " name=" );
2874 dump_varargs_unicode_str( cur_size );
2877 static void dump_create_desktop_reply( const struct create_desktop_reply *req )
2879 fprintf( stderr, " handle=%p", req->handle );
2882 static void dump_open_desktop_request( const struct open_desktop_request *req )
2884 fprintf( stderr, " flags=%08x,", req->flags );
2885 fprintf( stderr, " access=%08x,", req->access );
2886 fprintf( stderr, " attributes=%08x,", req->attributes );
2887 fprintf( stderr, " name=" );
2888 dump_varargs_unicode_str( cur_size );
2891 static void dump_open_desktop_reply( const struct open_desktop_reply *req )
2893 fprintf( stderr, " handle=%p", req->handle );
2896 static void dump_close_desktop_request( const struct close_desktop_request *req )
2898 fprintf( stderr, " handle=%p", req->handle );
2901 static void dump_get_thread_desktop_request( const struct get_thread_desktop_request *req )
2903 fprintf( stderr, " tid=%04x", req->tid );
2906 static void dump_get_thread_desktop_reply( const struct get_thread_desktop_reply *req )
2908 fprintf( stderr, " handle=%p", req->handle );
2911 static void dump_set_thread_desktop_request( const struct set_thread_desktop_request *req )
2913 fprintf( stderr, " handle=%p", req->handle );
2916 static void dump_set_user_object_info_request( const struct set_user_object_info_request *req )
2918 fprintf( stderr, " handle=%p,", req->handle );
2919 fprintf( stderr, " flags=%08x,", req->flags );
2920 fprintf( stderr, " obj_flags=%08x", req->obj_flags );
2923 static void dump_set_user_object_info_reply( const struct set_user_object_info_reply *req )
2925 fprintf( stderr, " is_desktop=%d,", req->is_desktop );
2926 fprintf( stderr, " old_obj_flags=%08x,", req->old_obj_flags );
2927 fprintf( stderr, " name=" );
2928 dump_varargs_unicode_str( cur_size );
2931 static void dump_attach_thread_input_request( const struct attach_thread_input_request *req )
2933 fprintf( stderr, " tid_from=%04x,", req->tid_from );
2934 fprintf( stderr, " tid_to=%04x,", req->tid_to );
2935 fprintf( stderr, " attach=%d", req->attach );
2938 static void dump_get_thread_input_request( const struct get_thread_input_request *req )
2940 fprintf( stderr, " tid=%04x", req->tid );
2943 static void dump_get_thread_input_reply( const struct get_thread_input_reply *req )
2945 fprintf( stderr, " focus=%p,", req->focus );
2946 fprintf( stderr, " capture=%p,", req->capture );
2947 fprintf( stderr, " active=%p,", req->active );
2948 fprintf( stderr, " foreground=%p,", req->foreground );
2949 fprintf( stderr, " menu_owner=%p,", req->menu_owner );
2950 fprintf( stderr, " move_size=%p,", req->move_size );
2951 fprintf( stderr, " caret=%p,", req->caret );
2952 fprintf( stderr, " rect=" );
2953 dump_rectangle( &req->rect );
2956 static void dump_get_last_input_time_request( const struct get_last_input_time_request *req )
2960 static void dump_get_last_input_time_reply( const struct get_last_input_time_reply *req )
2962 fprintf( stderr, " time=%08x", req->time );
2965 static void dump_get_key_state_request( const struct get_key_state_request *req )
2967 fprintf( stderr, " tid=%04x,", req->tid );
2968 fprintf( stderr, " key=%d", req->key );
2971 static void dump_get_key_state_reply( const struct get_key_state_reply *req )
2973 fprintf( stderr, " state=%02x,", req->state );
2974 fprintf( stderr, " keystate=" );
2975 dump_varargs_bytes( cur_size );
2978 static void dump_set_key_state_request( const struct set_key_state_request *req )
2980 fprintf( stderr, " tid=%04x,", req->tid );
2981 fprintf( stderr, " keystate=" );
2982 dump_varargs_bytes( cur_size );
2985 static void dump_set_foreground_window_request( const struct set_foreground_window_request *req )
2987 fprintf( stderr, " handle=%p", req->handle );
2990 static void dump_set_foreground_window_reply( const struct set_foreground_window_reply *req )
2992 fprintf( stderr, " previous=%p,", req->previous );
2993 fprintf( stderr, " send_msg_old=%d,", req->send_msg_old );
2994 fprintf( stderr, " send_msg_new=%d", req->send_msg_new );
2997 static void dump_set_focus_window_request( const struct set_focus_window_request *req )
2999 fprintf( stderr, " handle=%p", req->handle );
3002 static void dump_set_focus_window_reply( const struct set_focus_window_reply *req )
3004 fprintf( stderr, " previous=%p", req->previous );
3007 static void dump_set_active_window_request( const struct set_active_window_request *req )
3009 fprintf( stderr, " handle=%p", req->handle );
3012 static void dump_set_active_window_reply( const struct set_active_window_reply *req )
3014 fprintf( stderr, " previous=%p", req->previous );
3017 static void dump_set_capture_window_request( const struct set_capture_window_request *req )
3019 fprintf( stderr, " handle=%p,", req->handle );
3020 fprintf( stderr, " flags=%08x", req->flags );
3023 static void dump_set_capture_window_reply( const struct set_capture_window_reply *req )
3025 fprintf( stderr, " previous=%p,", req->previous );
3026 fprintf( stderr, " full_handle=%p", req->full_handle );
3029 static void dump_set_caret_window_request( const struct set_caret_window_request *req )
3031 fprintf( stderr, " handle=%p,", req->handle );
3032 fprintf( stderr, " width=%d,", req->width );
3033 fprintf( stderr, " height=%d", req->height );
3036 static void dump_set_caret_window_reply( const struct set_caret_window_reply *req )
3038 fprintf( stderr, " previous=%p,", req->previous );
3039 fprintf( stderr, " old_rect=" );
3040 dump_rectangle( &req->old_rect );
3041 fprintf( stderr, "," );
3042 fprintf( stderr, " old_hide=%d,", req->old_hide );
3043 fprintf( stderr, " old_state=%d", req->old_state );
3046 static void dump_set_caret_info_request( const struct set_caret_info_request *req )
3048 fprintf( stderr, " flags=%08x,", req->flags );
3049 fprintf( stderr, " handle=%p,", req->handle );
3050 fprintf( stderr, " x=%d,", req->x );
3051 fprintf( stderr, " y=%d,", req->y );
3052 fprintf( stderr, " hide=%d,", req->hide );
3053 fprintf( stderr, " state=%d", req->state );
3056 static void dump_set_caret_info_reply( const struct set_caret_info_reply *req )
3058 fprintf( stderr, " full_handle=%p,", req->full_handle );
3059 fprintf( stderr, " old_rect=" );
3060 dump_rectangle( &req->old_rect );
3061 fprintf( stderr, "," );
3062 fprintf( stderr, " old_hide=%d,", req->old_hide );
3063 fprintf( stderr, " old_state=%d", req->old_state );
3066 static void dump_set_hook_request( const struct set_hook_request *req )
3068 fprintf( stderr, " id=%d,", req->id );
3069 fprintf( stderr, " pid=%04x,", req->pid );
3070 fprintf( stderr, " tid=%04x,", req->tid );
3071 fprintf( stderr, " event_min=%d,", req->event_min );
3072 fprintf( stderr, " event_max=%d,", req->event_max );
3073 fprintf( stderr, " flags=%d,", req->flags );
3074 fprintf( stderr, " proc=%p,", req->proc );
3075 fprintf( stderr, " unicode=%d,", req->unicode );
3076 fprintf( stderr, " module=" );
3077 dump_varargs_unicode_str( cur_size );
3080 static void dump_set_hook_reply( const struct set_hook_reply *req )
3082 fprintf( stderr, " handle=%p,", req->handle );
3083 fprintf( stderr, " active_hooks=%08x", req->active_hooks );
3086 static void dump_remove_hook_request( const struct remove_hook_request *req )
3088 fprintf( stderr, " handle=%p,", req->handle );
3089 fprintf( stderr, " id=%d,", req->id );
3090 fprintf( stderr, " proc=%p", req->proc );
3093 static void dump_remove_hook_reply( const struct remove_hook_reply *req )
3095 fprintf( stderr, " active_hooks=%08x", req->active_hooks );
3098 static void dump_start_hook_chain_request( const struct start_hook_chain_request *req )
3100 fprintf( stderr, " id=%d,", req->id );
3101 fprintf( stderr, " event=%d,", req->event );
3102 fprintf( stderr, " window=%p,", req->window );
3103 fprintf( stderr, " object_id=%d,", req->object_id );
3104 fprintf( stderr, " child_id=%d", req->child_id );
3107 static void dump_start_hook_chain_reply( const struct start_hook_chain_reply *req )
3109 fprintf( stderr, " handle=%p,", req->handle );
3110 fprintf( stderr, " pid=%04x,", req->pid );
3111 fprintf( stderr, " tid=%04x,", req->tid );
3112 fprintf( stderr, " proc=%p,", req->proc );
3113 fprintf( stderr, " unicode=%d,", req->unicode );
3114 fprintf( stderr, " active_hooks=%08x,", req->active_hooks );
3115 fprintf( stderr, " module=" );
3116 dump_varargs_unicode_str( cur_size );
3119 static void dump_finish_hook_chain_request( const struct finish_hook_chain_request *req )
3121 fprintf( stderr, " id=%d", req->id );
3124 static void dump_get_hook_info_request( const struct get_hook_info_request *req )
3126 fprintf( stderr, " handle=%p,", req->handle );
3127 fprintf( stderr, " get_next=%d,", req->get_next );
3128 fprintf( stderr, " event=%d,", req->event );
3129 fprintf( stderr, " window=%p,", req->window );
3130 fprintf( stderr, " object_id=%d,", req->object_id );
3131 fprintf( stderr, " child_id=%d", req->child_id );
3134 static void dump_get_hook_info_reply( const struct get_hook_info_reply *req )
3136 fprintf( stderr, " handle=%p,", req->handle );
3137 fprintf( stderr, " id=%d,", req->id );
3138 fprintf( stderr, " pid=%04x,", req->pid );
3139 fprintf( stderr, " tid=%04x,", req->tid );
3140 fprintf( stderr, " proc=%p,", req->proc );
3141 fprintf( stderr, " unicode=%d,", req->unicode );
3142 fprintf( stderr, " module=" );
3143 dump_varargs_unicode_str( cur_size );
3146 static void dump_create_class_request( const struct create_class_request *req )
3148 fprintf( stderr, " local=%d,", req->local );
3149 fprintf( stderr, " atom=%04x,", req->atom );
3150 fprintf( stderr, " style=%08x,", req->style );
3151 fprintf( stderr, " instance=%p,", req->instance );
3152 fprintf( stderr, " extra=%d,", req->extra );
3153 fprintf( stderr, " win_extra=%d,", req->win_extra );
3154 fprintf( stderr, " client_ptr=%p", req->client_ptr );
3157 static void dump_destroy_class_request( const struct destroy_class_request *req )
3159 fprintf( stderr, " atom=%04x,", req->atom );
3160 fprintf( stderr, " instance=%p", req->instance );
3163 static void dump_destroy_class_reply( const struct destroy_class_reply *req )
3165 fprintf( stderr, " client_ptr=%p", req->client_ptr );
3168 static void dump_set_class_info_request( const struct set_class_info_request *req )
3170 fprintf( stderr, " window=%p,", req->window );
3171 fprintf( stderr, " flags=%08x,", req->flags );
3172 fprintf( stderr, " atom=%04x,", req->atom );
3173 fprintf( stderr, " style=%08x,", req->style );
3174 fprintf( stderr, " win_extra=%d,", req->win_extra );
3175 fprintf( stderr, " instance=%p,", req->instance );
3176 fprintf( stderr, " extra_offset=%d,", req->extra_offset );
3177 fprintf( stderr, " extra_size=%u,", req->extra_size );
3178 fprintf( stderr, " extra_value=%lx", req->extra_value );
3181 static void dump_set_class_info_reply( const struct set_class_info_reply *req )
3183 fprintf( stderr, " old_atom=%04x,", req->old_atom );
3184 fprintf( stderr, " old_style=%08x,", req->old_style );
3185 fprintf( stderr, " old_extra=%d,", req->old_extra );
3186 fprintf( stderr, " old_win_extra=%d,", req->old_win_extra );
3187 fprintf( stderr, " old_instance=%p,", req->old_instance );
3188 fprintf( stderr, " old_extra_value=%lx", req->old_extra_value );
3191 static void dump_set_clipboard_info_request( const struct set_clipboard_info_request *req )
3193 fprintf( stderr, " flags=%08x,", req->flags );
3194 fprintf( stderr, " clipboard=%p,", req->clipboard );
3195 fprintf( stderr, " owner=%p,", req->owner );
3196 fprintf( stderr, " viewer=%p,", req->viewer );
3197 fprintf( stderr, " seqno=%08x", req->seqno );
3200 static void dump_set_clipboard_info_reply( const struct set_clipboard_info_reply *req )
3202 fprintf( stderr, " flags=%08x,", req->flags );
3203 fprintf( stderr, " old_clipboard=%p,", req->old_clipboard );
3204 fprintf( stderr, " old_owner=%p,", req->old_owner );
3205 fprintf( stderr, " old_viewer=%p,", req->old_viewer );
3206 fprintf( stderr, " seqno=%08x", req->seqno );
3209 static void dump_open_token_request( const struct open_token_request *req )
3211 fprintf( stderr, " handle=%p,", req->handle );
3212 fprintf( stderr, " access=%08x,", req->access );
3213 fprintf( stderr, " attributes=%08x,", req->attributes );
3214 fprintf( stderr, " flags=%08x", req->flags );
3217 static void dump_open_token_reply( const struct open_token_reply *req )
3219 fprintf( stderr, " token=%p", req->token );
3222 static void dump_set_global_windows_request( const struct set_global_windows_request *req )
3224 fprintf( stderr, " flags=%08x,", req->flags );
3225 fprintf( stderr, " shell_window=%p,", req->shell_window );
3226 fprintf( stderr, " shell_listview=%p,", req->shell_listview );
3227 fprintf( stderr, " progman_window=%p,", req->progman_window );
3228 fprintf( stderr, " taskman_window=%p", req->taskman_window );
3231 static void dump_set_global_windows_reply( const struct set_global_windows_reply *req )
3233 fprintf( stderr, " old_shell_window=%p,", req->old_shell_window );
3234 fprintf( stderr, " old_shell_listview=%p,", req->old_shell_listview );
3235 fprintf( stderr, " old_progman_window=%p,", req->old_progman_window );
3236 fprintf( stderr, " old_taskman_window=%p", req->old_taskman_window );
3239 static void dump_adjust_token_privileges_request( const struct adjust_token_privileges_request *req )
3241 fprintf( stderr, " handle=%p,", req->handle );
3242 fprintf( stderr, " disable_all=%d,", req->disable_all );
3243 fprintf( stderr, " get_modified_state=%d,", req->get_modified_state );
3244 fprintf( stderr, " privileges=" );
3245 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
3248 static void dump_adjust_token_privileges_reply( const struct adjust_token_privileges_reply *req )
3250 fprintf( stderr, " len=%08x,", req->len );
3251 fprintf( stderr, " privileges=" );
3252 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
3255 static void dump_get_token_privileges_request( const struct get_token_privileges_request *req )
3257 fprintf( stderr, " handle=%p", req->handle );
3260 static void dump_get_token_privileges_reply( const struct get_token_privileges_reply *req )
3262 fprintf( stderr, " len=%08x,", req->len );
3263 fprintf( stderr, " privileges=" );
3264 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
3267 static void dump_check_token_privileges_request( const struct check_token_privileges_request *req )
3269 fprintf( stderr, " handle=%p,", req->handle );
3270 fprintf( stderr, " all_required=%d,", req->all_required );
3271 fprintf( stderr, " privileges=" );
3272 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
3275 static void dump_check_token_privileges_reply( const struct check_token_privileges_reply *req )
3277 fprintf( stderr, " has_privileges=%d,", req->has_privileges );
3278 fprintf( stderr, " privileges=" );
3279 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
3282 static void dump_duplicate_token_request( const struct duplicate_token_request *req )
3284 fprintf( stderr, " handle=%p,", req->handle );
3285 fprintf( stderr, " access=%08x,", req->access );
3286 fprintf( stderr, " attributes=%08x,", req->attributes );
3287 fprintf( stderr, " primary=%d,", req->primary );
3288 fprintf( stderr, " impersonation_level=%d", req->impersonation_level );
3291 static void dump_duplicate_token_reply( const struct duplicate_token_reply *req )
3293 fprintf( stderr, " new_handle=%p", req->new_handle );
3296 static void dump_access_check_request( const struct access_check_request *req )
3298 fprintf( stderr, " handle=%p,", req->handle );
3299 fprintf( stderr, " desired_access=%08x,", req->desired_access );
3300 fprintf( stderr, " mapping_read=%08x,", req->mapping_read );
3301 fprintf( stderr, " mapping_write=%08x,", req->mapping_write );
3302 fprintf( stderr, " mapping_execute=%08x,", req->mapping_execute );
3303 fprintf( stderr, " mapping_all=%08x,", req->mapping_all );
3304 fprintf( stderr, " sd=" );
3305 dump_varargs_security_descriptor( cur_size );
3308 static void dump_access_check_reply( const struct access_check_reply *req )
3310 fprintf( stderr, " access_granted=%08x,", req->access_granted );
3311 fprintf( stderr, " access_status=%08x,", req->access_status );
3312 fprintf( stderr, " privileges_len=%08x,", req->privileges_len );
3313 fprintf( stderr, " privileges=" );
3314 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
3317 static void dump_get_token_user_request( const struct get_token_user_request *req )
3319 fprintf( stderr, " handle=%p", req->handle );
3322 static void dump_get_token_user_reply( const struct get_token_user_reply *req )
3324 fprintf( stderr, " user_len=%u,", req->user_len );
3325 fprintf( stderr, " user=" );
3326 dump_varargs_SID( cur_size );
3329 static void dump_get_token_groups_request( const struct get_token_groups_request *req )
3331 fprintf( stderr, " handle=%p", req->handle );
3334 static void dump_get_token_groups_reply( const struct get_token_groups_reply *req )
3336 fprintf( stderr, " user_len=%u,", req->user_len );
3337 fprintf( stderr, " user=" );
3338 dump_varargs_token_groups( cur_size );
3341 static void dump_set_security_object_request( const struct set_security_object_request *req )
3343 fprintf( stderr, " handle=%p,", req->handle );
3344 fprintf( stderr, " security_info=%08x,", req->security_info );
3345 fprintf( stderr, " sd=" );
3346 dump_varargs_security_descriptor( cur_size );
3349 static void dump_create_mailslot_request( const struct create_mailslot_request *req )
3351 fprintf( stderr, " access=%08x,", req->access );
3352 fprintf( stderr, " attributes=%08x,", req->attributes );
3353 fprintf( stderr, " rootdir=%p,", req->rootdir );
3354 fprintf( stderr, " max_msgsize=%08x,", req->max_msgsize );
3355 fprintf( stderr, " read_timeout=" );
3356 dump_timeout( &req->read_timeout );
3357 fprintf( stderr, "," );
3358 fprintf( stderr, " name=" );
3359 dump_varargs_unicode_str( cur_size );
3362 static void dump_create_mailslot_reply( const struct create_mailslot_reply *req )
3364 fprintf( stderr, " handle=%p", req->handle );
3367 static void dump_set_mailslot_info_request( const struct set_mailslot_info_request *req )
3369 fprintf( stderr, " handle=%p,", req->handle );
3370 fprintf( stderr, " flags=%08x,", req->flags );
3371 fprintf( stderr, " read_timeout=" );
3372 dump_timeout( &req->read_timeout );
3375 static void dump_set_mailslot_info_reply( const struct set_mailslot_info_reply *req )
3377 fprintf( stderr, " max_msgsize=%08x,", req->max_msgsize );
3378 fprintf( stderr, " read_timeout=" );
3379 dump_timeout( &req->read_timeout );
3382 static void dump_create_directory_request( const struct create_directory_request *req )
3384 fprintf( stderr, " access=%08x,", req->access );
3385 fprintf( stderr, " attributes=%08x,", req->attributes );
3386 fprintf( stderr, " rootdir=%p,", req->rootdir );
3387 fprintf( stderr, " directory_name=" );
3388 dump_varargs_unicode_str( cur_size );
3391 static void dump_create_directory_reply( const struct create_directory_reply *req )
3393 fprintf( stderr, " handle=%p", req->handle );
3396 static void dump_open_directory_request( const struct open_directory_request *req )
3398 fprintf( stderr, " access=%08x,", req->access );
3399 fprintf( stderr, " attributes=%08x,", req->attributes );
3400 fprintf( stderr, " rootdir=%p,", req->rootdir );
3401 fprintf( stderr, " directory_name=" );
3402 dump_varargs_unicode_str( cur_size );
3405 static void dump_open_directory_reply( const struct open_directory_reply *req )
3407 fprintf( stderr, " handle=%p", req->handle );
3410 static void dump_create_symlink_request( const struct create_symlink_request *req )
3412 fprintf( stderr, " access=%08x,", req->access );
3413 fprintf( stderr, " attributes=%08x,", req->attributes );
3414 fprintf( stderr, " rootdir=%p,", req->rootdir );
3415 fprintf( stderr, " name_len=%u,", req->name_len );
3416 fprintf( stderr, " name=" );
3417 dump_varargs_unicode_str( min(cur_size,req->name_len) );
3418 fputc( ',', stderr );
3419 fprintf( stderr, " target_name=" );
3420 dump_varargs_unicode_str( cur_size );
3423 static void dump_create_symlink_reply( const struct create_symlink_reply *req )
3425 fprintf( stderr, " handle=%p", req->handle );
3428 static void dump_open_symlink_request( const struct open_symlink_request *req )
3430 fprintf( stderr, " access=%08x,", req->access );
3431 fprintf( stderr, " attributes=%08x,", req->attributes );
3432 fprintf( stderr, " rootdir=%p,", req->rootdir );
3433 fprintf( stderr, " name=" );
3434 dump_varargs_unicode_str( cur_size );
3437 static void dump_open_symlink_reply( const struct open_symlink_reply *req )
3439 fprintf( stderr, " handle=%p", req->handle );
3442 static void dump_query_symlink_request( const struct query_symlink_request *req )
3444 fprintf( stderr, " handle=%p", req->handle );
3447 static void dump_query_symlink_reply( const struct query_symlink_reply *req )
3449 fprintf( stderr, " target_name=" );
3450 dump_varargs_unicode_str( cur_size );
3453 static void dump_get_object_info_request( const struct get_object_info_request *req )
3455 fprintf( stderr, " handle=%p", req->handle );
3458 static void dump_get_object_info_reply( const struct get_object_info_reply *req )
3460 fprintf( stderr, " access=%08x,", req->access );
3461 fprintf( stderr, " ref_count=%08x", req->ref_count );
3464 static void dump_get_token_impersonation_level_request( const struct get_token_impersonation_level_request *req )
3466 fprintf( stderr, " handle=%p", req->handle );
3469 static void dump_get_token_impersonation_level_reply( const struct get_token_impersonation_level_reply *req )
3471 fprintf( stderr, " impersonation_level=%d", req->impersonation_level );
3474 static void dump_allocate_locally_unique_id_request( const struct allocate_locally_unique_id_request *req )
3478 static void dump_allocate_locally_unique_id_reply( const struct allocate_locally_unique_id_reply *req )
3480 fprintf( stderr, " luid=" );
3481 dump_luid( &req->luid );
3484 static void dump_create_device_manager_request( const struct create_device_manager_request *req )
3486 fprintf( stderr, " access=%08x,", req->access );
3487 fprintf( stderr, " attributes=%08x", req->attributes );
3490 static void dump_create_device_manager_reply( const struct create_device_manager_reply *req )
3492 fprintf( stderr, " handle=%p", req->handle );
3495 static void dump_create_device_request( const struct create_device_request *req )
3497 fprintf( stderr, " access=%08x,", req->access );
3498 fprintf( stderr, " attributes=%08x,", req->attributes );
3499 fprintf( stderr, " rootdir=%p,", req->rootdir );
3500 fprintf( stderr, " manager=%p,", req->manager );
3501 fprintf( stderr, " user_ptr=%p,", req->user_ptr );
3502 fprintf( stderr, " name=" );
3503 dump_varargs_unicode_str( cur_size );
3506 static void dump_create_device_reply( const struct create_device_reply *req )
3508 fprintf( stderr, " handle=%p", req->handle );
3511 static void dump_delete_device_request( const struct delete_device_request *req )
3513 fprintf( stderr, " handle=%p", req->handle );
3516 static void dump_get_next_device_request_request( const struct get_next_device_request_request *req )
3518 fprintf( stderr, " manager=%p,", req->manager );
3519 fprintf( stderr, " prev=%p,", req->prev );
3520 fprintf( stderr, " status=%08x,", req->status );
3521 fprintf( stderr, " prev_data=" );
3522 dump_varargs_bytes( cur_size );
3525 static void dump_get_next_device_request_reply( const struct get_next_device_request_reply *req )
3527 fprintf( stderr, " next=%p,", req->next );
3528 fprintf( stderr, " code=" );
3529 dump_ioctl_code( &req->code );
3530 fprintf( stderr, "," );
3531 fprintf( stderr, " user_ptr=%p,", req->user_ptr );
3532 fprintf( stderr, " in_size=%u,", req->in_size );
3533 fprintf( stderr, " out_size=%u,", req->out_size );
3534 fprintf( stderr, " next_data=" );
3535 dump_varargs_bytes( cur_size );
3538 static void dump_make_process_system_request( const struct make_process_system_request *req )
3542 static void dump_make_process_system_reply( const struct make_process_system_reply *req )
3544 fprintf( stderr, " event=%p", req->event );
3547 static const dump_func req_dumpers[REQ_NB_REQUESTS] = {
3548 (dump_func)dump_new_process_request,
3549 (dump_func)dump_get_new_process_info_request,
3550 (dump_func)dump_new_thread_request,
3551 (dump_func)dump_get_startup_info_request,
3552 (dump_func)dump_init_process_done_request,
3553 (dump_func)dump_init_thread_request,
3554 (dump_func)dump_terminate_process_request,
3555 (dump_func)dump_terminate_thread_request,
3556 (dump_func)dump_get_process_info_request,
3557 (dump_func)dump_set_process_info_request,
3558 (dump_func)dump_get_thread_info_request,
3559 (dump_func)dump_set_thread_info_request,
3560 (dump_func)dump_get_dll_info_request,
3561 (dump_func)dump_suspend_thread_request,
3562 (dump_func)dump_resume_thread_request,
3563 (dump_func)dump_load_dll_request,
3564 (dump_func)dump_unload_dll_request,
3565 (dump_func)dump_queue_apc_request,
3566 (dump_func)dump_get_apc_result_request,
3567 (dump_func)dump_close_handle_request,
3568 (dump_func)dump_set_handle_info_request,
3569 (dump_func)dump_dup_handle_request,
3570 (dump_func)dump_open_process_request,
3571 (dump_func)dump_open_thread_request,
3572 (dump_func)dump_select_request,
3573 (dump_func)dump_create_event_request,
3574 (dump_func)dump_event_op_request,
3575 (dump_func)dump_open_event_request,
3576 (dump_func)dump_create_mutex_request,
3577 (dump_func)dump_release_mutex_request,
3578 (dump_func)dump_open_mutex_request,
3579 (dump_func)dump_create_semaphore_request,
3580 (dump_func)dump_release_semaphore_request,
3581 (dump_func)dump_open_semaphore_request,
3582 (dump_func)dump_create_file_request,
3583 (dump_func)dump_open_file_object_request,
3584 (dump_func)dump_alloc_file_handle_request,
3585 (dump_func)dump_get_handle_fd_request,
3586 (dump_func)dump_flush_file_request,
3587 (dump_func)dump_lock_file_request,
3588 (dump_func)dump_unlock_file_request,
3589 (dump_func)dump_create_socket_request,
3590 (dump_func)dump_accept_socket_request,
3591 (dump_func)dump_set_socket_event_request,
3592 (dump_func)dump_get_socket_event_request,
3593 (dump_func)dump_enable_socket_event_request,
3594 (dump_func)dump_set_socket_deferred_request,
3595 (dump_func)dump_alloc_console_request,
3596 (dump_func)dump_free_console_request,
3597 (dump_func)dump_get_console_renderer_events_request,
3598 (dump_func)dump_open_console_request,
3599 (dump_func)dump_get_console_wait_event_request,
3600 (dump_func)dump_get_console_mode_request,
3601 (dump_func)dump_set_console_mode_request,
3602 (dump_func)dump_set_console_input_info_request,
3603 (dump_func)dump_get_console_input_info_request,
3604 (dump_func)dump_append_console_input_history_request,
3605 (dump_func)dump_get_console_input_history_request,
3606 (dump_func)dump_create_console_output_request,
3607 (dump_func)dump_set_console_output_info_request,
3608 (dump_func)dump_get_console_output_info_request,
3609 (dump_func)dump_write_console_input_request,
3610 (dump_func)dump_read_console_input_request,
3611 (dump_func)dump_write_console_output_request,
3612 (dump_func)dump_fill_console_output_request,
3613 (dump_func)dump_read_console_output_request,
3614 (dump_func)dump_move_console_output_request,
3615 (dump_func)dump_send_console_signal_request,
3616 (dump_func)dump_read_directory_changes_request,
3617 (dump_func)dump_read_change_request,
3618 (dump_func)dump_create_mapping_request,
3619 (dump_func)dump_open_mapping_request,
3620 (dump_func)dump_get_mapping_info_request,
3621 (dump_func)dump_create_snapshot_request,
3622 (dump_func)dump_next_process_request,
3623 (dump_func)dump_next_thread_request,
3624 (dump_func)dump_next_module_request,
3625 (dump_func)dump_wait_debug_event_request,
3626 (dump_func)dump_queue_exception_event_request,
3627 (dump_func)dump_get_exception_status_request,
3628 (dump_func)dump_output_debug_string_request,
3629 (dump_func)dump_continue_debug_event_request,
3630 (dump_func)dump_debug_process_request,
3631 (dump_func)dump_debug_break_request,
3632 (dump_func)dump_set_debugger_kill_on_exit_request,
3633 (dump_func)dump_read_process_memory_request,
3634 (dump_func)dump_write_process_memory_request,
3635 (dump_func)dump_create_key_request,
3636 (dump_func)dump_open_key_request,
3637 (dump_func)dump_delete_key_request,
3638 (dump_func)dump_flush_key_request,
3639 (dump_func)dump_enum_key_request,
3640 (dump_func)dump_set_key_value_request,
3641 (dump_func)dump_get_key_value_request,
3642 (dump_func)dump_enum_key_value_request,
3643 (dump_func)dump_delete_key_value_request,
3644 (dump_func)dump_load_registry_request,
3645 (dump_func)dump_unload_registry_request,
3646 (dump_func)dump_save_registry_request,
3647 (dump_func)dump_set_registry_notification_request,
3648 (dump_func)dump_create_timer_request,
3649 (dump_func)dump_open_timer_request,
3650 (dump_func)dump_set_timer_request,
3651 (dump_func)dump_cancel_timer_request,
3652 (dump_func)dump_get_timer_info_request,
3653 (dump_func)dump_get_thread_context_request,
3654 (dump_func)dump_set_thread_context_request,
3655 (dump_func)dump_get_selector_entry_request,
3656 (dump_func)dump_add_atom_request,
3657 (dump_func)dump_delete_atom_request,
3658 (dump_func)dump_find_atom_request,
3659 (dump_func)dump_get_atom_information_request,
3660 (dump_func)dump_set_atom_information_request,
3661 (dump_func)dump_empty_atom_table_request,
3662 (dump_func)dump_init_atom_table_request,
3663 (dump_func)dump_get_msg_queue_request,
3664 (dump_func)dump_set_queue_fd_request,
3665 (dump_func)dump_set_queue_mask_request,
3666 (dump_func)dump_get_queue_status_request,
3667 (dump_func)dump_get_process_idle_event_request,
3668 (dump_func)dump_send_message_request,
3669 (dump_func)dump_post_quit_message_request,
3670 (dump_func)dump_send_hardware_message_request,
3671 (dump_func)dump_get_message_request,
3672 (dump_func)dump_reply_message_request,
3673 (dump_func)dump_accept_hardware_message_request,
3674 (dump_func)dump_get_message_reply_request,
3675 (dump_func)dump_set_win_timer_request,
3676 (dump_func)dump_kill_win_timer_request,
3677 (dump_func)dump_get_serial_info_request,
3678 (dump_func)dump_set_serial_info_request,
3679 (dump_func)dump_register_async_request,
3680 (dump_func)dump_cancel_async_request,
3681 (dump_func)dump_ioctl_request,
3682 (dump_func)dump_get_ioctl_result_request,
3683 (dump_func)dump_create_named_pipe_request,
3684 (dump_func)dump_get_named_pipe_info_request,
3685 (dump_func)dump_create_window_request,
3686 (dump_func)dump_destroy_window_request,
3687 (dump_func)dump_get_desktop_window_request,
3688 (dump_func)dump_set_window_owner_request,
3689 (dump_func)dump_get_window_info_request,
3690 (dump_func)dump_set_window_info_request,
3691 (dump_func)dump_set_parent_request,
3692 (dump_func)dump_get_window_parents_request,
3693 (dump_func)dump_get_window_children_request,
3694 (dump_func)dump_get_window_children_from_point_request,
3695 (dump_func)dump_get_window_tree_request,
3696 (dump_func)dump_set_window_pos_request,
3697 (dump_func)dump_get_window_rectangles_request,
3698 (dump_func)dump_get_window_text_request,
3699 (dump_func)dump_set_window_text_request,
3700 (dump_func)dump_get_windows_offset_request,
3701 (dump_func)dump_get_visible_region_request,
3702 (dump_func)dump_get_window_region_request,
3703 (dump_func)dump_set_window_region_request,
3704 (dump_func)dump_get_update_region_request,
3705 (dump_func)dump_update_window_zorder_request,
3706 (dump_func)dump_redraw_window_request,
3707 (dump_func)dump_set_window_property_request,
3708 (dump_func)dump_remove_window_property_request,
3709 (dump_func)dump_get_window_property_request,
3710 (dump_func)dump_get_window_properties_request,
3711 (dump_func)dump_create_winstation_request,
3712 (dump_func)dump_open_winstation_request,
3713 (dump_func)dump_close_winstation_request,
3714 (dump_func)dump_get_process_winstation_request,
3715 (dump_func)dump_set_process_winstation_request,
3716 (dump_func)dump_create_desktop_request,
3717 (dump_func)dump_open_desktop_request,
3718 (dump_func)dump_close_desktop_request,
3719 (dump_func)dump_get_thread_desktop_request,
3720 (dump_func)dump_set_thread_desktop_request,
3721 (dump_func)dump_set_user_object_info_request,
3722 (dump_func)dump_attach_thread_input_request,
3723 (dump_func)dump_get_thread_input_request,
3724 (dump_func)dump_get_last_input_time_request,
3725 (dump_func)dump_get_key_state_request,
3726 (dump_func)dump_set_key_state_request,
3727 (dump_func)dump_set_foreground_window_request,
3728 (dump_func)dump_set_focus_window_request,
3729 (dump_func)dump_set_active_window_request,
3730 (dump_func)dump_set_capture_window_request,
3731 (dump_func)dump_set_caret_window_request,
3732 (dump_func)dump_set_caret_info_request,
3733 (dump_func)dump_set_hook_request,
3734 (dump_func)dump_remove_hook_request,
3735 (dump_func)dump_start_hook_chain_request,
3736 (dump_func)dump_finish_hook_chain_request,
3737 (dump_func)dump_get_hook_info_request,
3738 (dump_func)dump_create_class_request,
3739 (dump_func)dump_destroy_class_request,
3740 (dump_func)dump_set_class_info_request,
3741 (dump_func)dump_set_clipboard_info_request,
3742 (dump_func)dump_open_token_request,
3743 (dump_func)dump_set_global_windows_request,
3744 (dump_func)dump_adjust_token_privileges_request,
3745 (dump_func)dump_get_token_privileges_request,
3746 (dump_func)dump_check_token_privileges_request,
3747 (dump_func)dump_duplicate_token_request,
3748 (dump_func)dump_access_check_request,
3749 (dump_func)dump_get_token_user_request,
3750 (dump_func)dump_get_token_groups_request,
3751 (dump_func)dump_set_security_object_request,
3752 (dump_func)dump_create_mailslot_request,
3753 (dump_func)dump_set_mailslot_info_request,
3754 (dump_func)dump_create_directory_request,
3755 (dump_func)dump_open_directory_request,
3756 (dump_func)dump_create_symlink_request,
3757 (dump_func)dump_open_symlink_request,
3758 (dump_func)dump_query_symlink_request,
3759 (dump_func)dump_get_object_info_request,
3760 (dump_func)dump_get_token_impersonation_level_request,
3761 (dump_func)dump_allocate_locally_unique_id_request,
3762 (dump_func)dump_create_device_manager_request,
3763 (dump_func)dump_create_device_request,
3764 (dump_func)dump_delete_device_request,
3765 (dump_func)dump_get_next_device_request_request,
3766 (dump_func)dump_make_process_system_request,
3769 static const dump_func reply_dumpers[REQ_NB_REQUESTS] = {
3770 (dump_func)dump_new_process_reply,
3771 (dump_func)dump_get_new_process_info_reply,
3772 (dump_func)dump_new_thread_reply,
3773 (dump_func)dump_get_startup_info_reply,
3775 (dump_func)dump_init_thread_reply,
3776 (dump_func)dump_terminate_process_reply,
3777 (dump_func)dump_terminate_thread_reply,
3778 (dump_func)dump_get_process_info_reply,
3780 (dump_func)dump_get_thread_info_reply,
3782 (dump_func)dump_get_dll_info_reply,
3783 (dump_func)dump_suspend_thread_reply,
3784 (dump_func)dump_resume_thread_reply,
3787 (dump_func)dump_queue_apc_reply,
3788 (dump_func)dump_get_apc_result_reply,
3790 (dump_func)dump_set_handle_info_reply,
3791 (dump_func)dump_dup_handle_reply,
3792 (dump_func)dump_open_process_reply,
3793 (dump_func)dump_open_thread_reply,
3794 (dump_func)dump_select_reply,
3795 (dump_func)dump_create_event_reply,
3797 (dump_func)dump_open_event_reply,
3798 (dump_func)dump_create_mutex_reply,
3799 (dump_func)dump_release_mutex_reply,
3800 (dump_func)dump_open_mutex_reply,
3801 (dump_func)dump_create_semaphore_reply,
3802 (dump_func)dump_release_semaphore_reply,
3803 (dump_func)dump_open_semaphore_reply,
3804 (dump_func)dump_create_file_reply,
3805 (dump_func)dump_open_file_object_reply,
3806 (dump_func)dump_alloc_file_handle_reply,
3807 (dump_func)dump_get_handle_fd_reply,
3808 (dump_func)dump_flush_file_reply,
3809 (dump_func)dump_lock_file_reply,
3811 (dump_func)dump_create_socket_reply,
3812 (dump_func)dump_accept_socket_reply,
3814 (dump_func)dump_get_socket_event_reply,
3817 (dump_func)dump_alloc_console_reply,
3819 (dump_func)dump_get_console_renderer_events_reply,
3820 (dump_func)dump_open_console_reply,
3821 (dump_func)dump_get_console_wait_event_reply,
3822 (dump_func)dump_get_console_mode_reply,
3825 (dump_func)dump_get_console_input_info_reply,
3827 (dump_func)dump_get_console_input_history_reply,
3828 (dump_func)dump_create_console_output_reply,
3830 (dump_func)dump_get_console_output_info_reply,
3831 (dump_func)dump_write_console_input_reply,
3832 (dump_func)dump_read_console_input_reply,
3833 (dump_func)dump_write_console_output_reply,
3834 (dump_func)dump_fill_console_output_reply,
3835 (dump_func)dump_read_console_output_reply,
3839 (dump_func)dump_read_change_reply,
3840 (dump_func)dump_create_mapping_reply,
3841 (dump_func)dump_open_mapping_reply,
3842 (dump_func)dump_get_mapping_info_reply,
3843 (dump_func)dump_create_snapshot_reply,
3844 (dump_func)dump_next_process_reply,
3845 (dump_func)dump_next_thread_reply,
3846 (dump_func)dump_next_module_reply,
3847 (dump_func)dump_wait_debug_event_reply,
3848 (dump_func)dump_queue_exception_event_reply,
3849 (dump_func)dump_get_exception_status_reply,
3853 (dump_func)dump_debug_break_reply,
3855 (dump_func)dump_read_process_memory_reply,
3857 (dump_func)dump_create_key_reply,
3858 (dump_func)dump_open_key_reply,
3861 (dump_func)dump_enum_key_reply,
3863 (dump_func)dump_get_key_value_reply,
3864 (dump_func)dump_enum_key_value_reply,
3870 (dump_func)dump_create_timer_reply,
3871 (dump_func)dump_open_timer_reply,
3872 (dump_func)dump_set_timer_reply,
3873 (dump_func)dump_cancel_timer_reply,
3874 (dump_func)dump_get_timer_info_reply,
3875 (dump_func)dump_get_thread_context_reply,
3876 (dump_func)dump_set_thread_context_reply,
3877 (dump_func)dump_get_selector_entry_reply,
3878 (dump_func)dump_add_atom_reply,
3880 (dump_func)dump_find_atom_reply,
3881 (dump_func)dump_get_atom_information_reply,
3884 (dump_func)dump_init_atom_table_reply,
3885 (dump_func)dump_get_msg_queue_reply,
3887 (dump_func)dump_set_queue_mask_reply,
3888 (dump_func)dump_get_queue_status_reply,
3889 (dump_func)dump_get_process_idle_event_reply,
3893 (dump_func)dump_get_message_reply,
3896 (dump_func)dump_get_message_reply_reply,
3897 (dump_func)dump_set_win_timer_reply,
3899 (dump_func)dump_get_serial_info_reply,
3903 (dump_func)dump_ioctl_reply,
3904 (dump_func)dump_get_ioctl_result_reply,
3905 (dump_func)dump_create_named_pipe_reply,
3906 (dump_func)dump_get_named_pipe_info_reply,
3907 (dump_func)dump_create_window_reply,
3909 (dump_func)dump_get_desktop_window_reply,
3910 (dump_func)dump_set_window_owner_reply,
3911 (dump_func)dump_get_window_info_reply,
3912 (dump_func)dump_set_window_info_reply,
3913 (dump_func)dump_set_parent_reply,
3914 (dump_func)dump_get_window_parents_reply,
3915 (dump_func)dump_get_window_children_reply,
3916 (dump_func)dump_get_window_children_from_point_reply,
3917 (dump_func)dump_get_window_tree_reply,
3918 (dump_func)dump_set_window_pos_reply,
3919 (dump_func)dump_get_window_rectangles_reply,
3920 (dump_func)dump_get_window_text_reply,
3922 (dump_func)dump_get_windows_offset_reply,
3923 (dump_func)dump_get_visible_region_reply,
3924 (dump_func)dump_get_window_region_reply,
3926 (dump_func)dump_get_update_region_reply,
3930 (dump_func)dump_remove_window_property_reply,
3931 (dump_func)dump_get_window_property_reply,
3932 (dump_func)dump_get_window_properties_reply,
3933 (dump_func)dump_create_winstation_reply,
3934 (dump_func)dump_open_winstation_reply,
3936 (dump_func)dump_get_process_winstation_reply,
3938 (dump_func)dump_create_desktop_reply,
3939 (dump_func)dump_open_desktop_reply,
3941 (dump_func)dump_get_thread_desktop_reply,
3943 (dump_func)dump_set_user_object_info_reply,
3945 (dump_func)dump_get_thread_input_reply,
3946 (dump_func)dump_get_last_input_time_reply,
3947 (dump_func)dump_get_key_state_reply,
3949 (dump_func)dump_set_foreground_window_reply,
3950 (dump_func)dump_set_focus_window_reply,
3951 (dump_func)dump_set_active_window_reply,
3952 (dump_func)dump_set_capture_window_reply,
3953 (dump_func)dump_set_caret_window_reply,
3954 (dump_func)dump_set_caret_info_reply,
3955 (dump_func)dump_set_hook_reply,
3956 (dump_func)dump_remove_hook_reply,
3957 (dump_func)dump_start_hook_chain_reply,
3959 (dump_func)dump_get_hook_info_reply,
3961 (dump_func)dump_destroy_class_reply,
3962 (dump_func)dump_set_class_info_reply,
3963 (dump_func)dump_set_clipboard_info_reply,
3964 (dump_func)dump_open_token_reply,
3965 (dump_func)dump_set_global_windows_reply,
3966 (dump_func)dump_adjust_token_privileges_reply,
3967 (dump_func)dump_get_token_privileges_reply,
3968 (dump_func)dump_check_token_privileges_reply,
3969 (dump_func)dump_duplicate_token_reply,
3970 (dump_func)dump_access_check_reply,
3971 (dump_func)dump_get_token_user_reply,
3972 (dump_func)dump_get_token_groups_reply,
3974 (dump_func)dump_create_mailslot_reply,
3975 (dump_func)dump_set_mailslot_info_reply,
3976 (dump_func)dump_create_directory_reply,
3977 (dump_func)dump_open_directory_reply,
3978 (dump_func)dump_create_symlink_reply,
3979 (dump_func)dump_open_symlink_reply,
3980 (dump_func)dump_query_symlink_reply,
3981 (dump_func)dump_get_object_info_reply,
3982 (dump_func)dump_get_token_impersonation_level_reply,
3983 (dump_func)dump_allocate_locally_unique_id_reply,
3984 (dump_func)dump_create_device_manager_reply,
3985 (dump_func)dump_create_device_reply,
3987 (dump_func)dump_get_next_device_request_reply,
3988 (dump_func)dump_make_process_system_reply,
3991 static const char * const req_names[REQ_NB_REQUESTS] = {
3993 "get_new_process_info",
3996 "init_process_done",
3998 "terminate_process",
4024 "release_semaphore",
4028 "alloc_file_handle",
4037 "enable_socket_event",
4038 "set_socket_deferred",
4041 "get_console_renderer_events",
4043 "get_console_wait_event",
4046 "set_console_input_info",
4047 "get_console_input_info",
4048 "append_console_input_history",
4049 "get_console_input_history",
4050 "create_console_output",
4051 "set_console_output_info",
4052 "get_console_output_info",
4053 "write_console_input",
4054 "read_console_input",
4055 "write_console_output",
4056 "fill_console_output",
4057 "read_console_output",
4058 "move_console_output",
4059 "send_console_signal",
4060 "read_directory_changes",
4070 "queue_exception_event",
4071 "get_exception_status",
4072 "output_debug_string",
4073 "continue_debug_event",
4076 "set_debugger_kill_on_exit",
4077 "read_process_memory",
4078 "write_process_memory",
4091 "set_registry_notification",
4097 "get_thread_context",
4098 "set_thread_context",
4099 "get_selector_entry",
4103 "get_atom_information",
4104 "set_atom_information",
4111 "get_process_idle_event",
4113 "post_quit_message",
4114 "send_hardware_message",
4117 "accept_hardware_message",
4118 "get_message_reply",
4127 "create_named_pipe",
4128 "get_named_pipe_info",
4131 "get_desktop_window",
4136 "get_window_parents",
4137 "get_window_children",
4138 "get_window_children_from_point",
4141 "get_window_rectangles",
4144 "get_windows_offset",
4145 "get_visible_region",
4146 "get_window_region",
4147 "set_window_region",
4148 "get_update_region",
4149 "update_window_zorder",
4151 "set_window_property",
4152 "remove_window_property",
4153 "get_window_property",
4154 "get_window_properties",
4155 "create_winstation",
4158 "get_process_winstation",
4159 "set_process_winstation",
4163 "get_thread_desktop",
4164 "set_thread_desktop",
4165 "set_user_object_info",
4166 "attach_thread_input",
4168 "get_last_input_time",
4171 "set_foreground_window",
4173 "set_active_window",
4174 "set_capture_window",
4180 "finish_hook_chain",
4185 "set_clipboard_info",
4187 "set_global_windows",
4188 "adjust_token_privileges",
4189 "get_token_privileges",
4190 "check_token_privileges",
4195 "set_security_object",
4197 "set_mailslot_info",
4204 "get_token_impersonation_level",
4205 "allocate_locally_unique_id",
4206 "create_device_manager",
4209 "get_next_device_request",
4210 "make_process_system",
4219 { "ABANDONED_WAIT_0", STATUS_ABANDONED_WAIT_0 },
4220 { "ACCESS_DENIED", STATUS_ACCESS_DENIED },
4221 { "ACCESS_VIOLATION", STATUS_ACCESS_VIOLATION },
4222 { "ALERTED", STATUS_ALERTED },
4223 { "ALIAS_EXISTS", STATUS_ALIAS_EXISTS },
4224 { "BAD_DEVICE_TYPE", STATUS_BAD_DEVICE_TYPE },
4225 { "BAD_IMPERSONATION_LEVEL", STATUS_BAD_IMPERSONATION_LEVEL },
4226 { "BREAKPOINT", STATUS_BREAKPOINT },
4227 { "BUFFER_OVERFLOW", STATUS_BUFFER_OVERFLOW },
4228 { "BUFFER_TOO_SMALL", STATUS_BUFFER_TOO_SMALL },
4229 { "CANCELLED", STATUS_CANCELLED },
4230 { "CANT_OPEN_ANONYMOUS", STATUS_CANT_OPEN_ANONYMOUS },
4231 { "CHILD_MUST_BE_VOLATILE", STATUS_CHILD_MUST_BE_VOLATILE },
4232 { "DEVICE_BUSY", STATUS_DEVICE_BUSY },
4233 { "DIRECTORY_NOT_EMPTY", STATUS_DIRECTORY_NOT_EMPTY },
4234 { "DISK_FULL", STATUS_DISK_FULL },
4235 { "DLL_NOT_FOUND", STATUS_DLL_NOT_FOUND },
4236 { "ERROR_CLASS_ALREADY_EXISTS", 0xc0010000 | ERROR_CLASS_ALREADY_EXISTS },
4237 { "ERROR_CLASS_DOES_NOT_EXIST", 0xc0010000 | ERROR_CLASS_DOES_NOT_EXIST },
4238 { "ERROR_CLASS_HAS_WINDOWS", 0xc0010000 | ERROR_CLASS_HAS_WINDOWS },
4239 { "ERROR_CLIPBOARD_NOT_OPEN", 0xc0010000 | ERROR_CLIPBOARD_NOT_OPEN },
4240 { "ERROR_INVALID_INDEX", 0xc0010000 | ERROR_INVALID_INDEX },
4241 { "ERROR_INVALID_WINDOW_HANDLE", 0xc0010000 | ERROR_INVALID_WINDOW_HANDLE },
4242 { "FILE_DELETED", STATUS_FILE_DELETED },
4243 { "FILE_IS_A_DIRECTORY", STATUS_FILE_IS_A_DIRECTORY },
4244 { "FILE_LOCK_CONFLICT", STATUS_FILE_LOCK_CONFLICT },
4245 { "GENERIC_NOT_MAPPED", STATUS_GENERIC_NOT_MAPPED },
4246 { "HANDLES_CLOSED", STATUS_HANDLES_CLOSED },
4247 { "HANDLE_NOT_CLOSABLE", STATUS_HANDLE_NOT_CLOSABLE },
4248 { "ILLEGAL_FUNCTION", STATUS_ILLEGAL_FUNCTION },
4249 { "INSTANCE_NOT_AVAILABLE", STATUS_INSTANCE_NOT_AVAILABLE },
4250 { "INVALID_CID", STATUS_INVALID_CID },
4251 { "INVALID_DEVICE_REQUEST", STATUS_INVALID_DEVICE_REQUEST },
4252 { "INVALID_FILE_FOR_SECTION", STATUS_INVALID_FILE_FOR_SECTION },
4253 { "INVALID_HANDLE", STATUS_INVALID_HANDLE },
4254 { "INVALID_PARAMETER", STATUS_INVALID_PARAMETER },
4255 { "INVALID_SECURITY_DESCR", STATUS_INVALID_SECURITY_DESCR },
4256 { "IO_TIMEOUT", STATUS_IO_TIMEOUT },
4257 { "KEY_DELETED", STATUS_KEY_DELETED },
4258 { "MAPPED_FILE_SIZE_ZERO", STATUS_MAPPED_FILE_SIZE_ZERO },
4259 { "MEDIA_WRITE_PROTECTED", STATUS_MEDIA_WRITE_PROTECTED },
4260 { "MUTANT_NOT_OWNED", STATUS_MUTANT_NOT_OWNED },
4261 { "NAME_TOO_LONG", STATUS_NAME_TOO_LONG },
4262 { "NOTIFY_ENUM_DIR", STATUS_NOTIFY_ENUM_DIR },
4263 { "NOT_ALL_ASSIGNED", STATUS_NOT_ALL_ASSIGNED },
4264 { "NOT_A_DIRECTORY", STATUS_NOT_A_DIRECTORY },
4265 { "NOT_IMPLEMENTED", STATUS_NOT_IMPLEMENTED },
4266 { "NOT_REGISTRY_FILE", STATUS_NOT_REGISTRY_FILE },
4267 { "NOT_SUPPORTED", STATUS_NOT_SUPPORTED },
4268 { "NO_DATA_DETECTED", STATUS_NO_DATA_DETECTED },
4269 { "NO_IMPERSONATION_TOKEN", STATUS_NO_IMPERSONATION_TOKEN },
4270 { "NO_MEMORY", STATUS_NO_MEMORY },
4271 { "NO_MORE_ENTRIES", STATUS_NO_MORE_ENTRIES },
4272 { "NO_MORE_FILES", STATUS_NO_MORE_FILES },
4273 { "NO_SUCH_DEVICE", STATUS_NO_SUCH_DEVICE },
4274 { "NO_SUCH_FILE", STATUS_NO_SUCH_FILE },
4275 { "NO_TOKEN", STATUS_NO_TOKEN },
4276 { "OBJECT_NAME_COLLISION", STATUS_OBJECT_NAME_COLLISION },
4277 { "OBJECT_NAME_EXISTS", STATUS_OBJECT_NAME_EXISTS },
4278 { "OBJECT_NAME_INVALID", STATUS_OBJECT_NAME_INVALID },
4279 { "OBJECT_NAME_NOT_FOUND", STATUS_OBJECT_NAME_NOT_FOUND },
4280 { "OBJECT_PATH_INVALID", STATUS_OBJECT_PATH_INVALID },
4281 { "OBJECT_PATH_NOT_FOUND", STATUS_OBJECT_PATH_NOT_FOUND },
4282 { "OBJECT_PATH_SYNTAX_BAD", STATUS_OBJECT_PATH_SYNTAX_BAD },
4283 { "OBJECT_TYPE_MISMATCH", STATUS_OBJECT_TYPE_MISMATCH },
4284 { "PENDING", STATUS_PENDING },
4285 { "PIPE_BUSY", STATUS_PIPE_BUSY },
4286 { "PIPE_CONNECTED", STATUS_PIPE_CONNECTED },
4287 { "PIPE_DISCONNECTED", STATUS_PIPE_DISCONNECTED },
4288 { "PIPE_LISTENING", STATUS_PIPE_LISTENING },
4289 { "PIPE_NOT_AVAILABLE", STATUS_PIPE_NOT_AVAILABLE },
4290 { "PRIVILEGE_NOT_HELD", STATUS_PRIVILEGE_NOT_HELD },
4291 { "PROCESS_IS_TERMINATING", STATUS_PROCESS_IS_TERMINATING },
4292 { "SECTION_TOO_BIG", STATUS_SECTION_TOO_BIG },
4293 { "SEMAPHORE_LIMIT_EXCEEDED", STATUS_SEMAPHORE_LIMIT_EXCEEDED },
4294 { "SHARING_VIOLATION", STATUS_SHARING_VIOLATION },
4295 { "SUSPEND_COUNT_EXCEEDED", STATUS_SUSPEND_COUNT_EXCEEDED },
4296 { "THREAD_IS_TERMINATING", STATUS_THREAD_IS_TERMINATING },
4297 { "TIMEOUT", STATUS_TIMEOUT },
4298 { "TOO_MANY_OPENED_FILES", STATUS_TOO_MANY_OPENED_FILES },
4299 { "UNSUCCESSFUL", STATUS_UNSUCCESSFUL },
4300 { "USER_APC", STATUS_USER_APC },
4301 { "VOLUME_DISMOUNTED", STATUS_VOLUME_DISMOUNTED },
4302 { "WAS_LOCKED", STATUS_WAS_LOCKED },
4306 /* ### make_requests end ### */
4307 /* Everything above this line is generated automatically by tools/make_requests */
4309 static const char *get_status_name( unsigned int status )
4312 static char buffer[10];
4316 for (i = 0; status_names[i].name; i++)
4317 if (status_names[i].value == status) return status_names[i].name;
4319 sprintf( buffer, "%x", status );
4323 void trace_request(void)
4325 enum request req = current->req.request_header.req;
4326 if (req < REQ_NB_REQUESTS)
4328 fprintf( stderr, "%04x: %s(", current->id, req_names[req] );
4329 if (req_dumpers[req])
4331 cur_data = get_req_data();
4332 cur_size = get_req_data_size();
4333 req_dumpers[req]( ¤t->req );
4335 fprintf( stderr, " )\n" );
4337 else fprintf( stderr, "%04x: %d(?)\n", current->id, req );
4340 void trace_reply( enum request req, const union generic_reply *reply )
4342 if (req < REQ_NB_REQUESTS)
4344 fprintf( stderr, "%04x: %s() = %s",
4345 current->id, req_names[req], get_status_name(current->error) );
4346 if (reply_dumpers[req])
4348 fprintf( stderr, " {" );
4349 cur_data = current->reply_data;
4350 cur_size = reply->reply_header.reply_size;
4351 reply_dumpers[req]( reply );
4352 fprintf( stderr, " }" );
4354 fputc( '\n', stderr );
4356 else fprintf( stderr, "%04x: %d() = %s\n",
4357 current->id, req, get_status_name(current->error) );