2 * Server request tracing
4 * Copyright (C) 1999 Alexandre Julliard
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
22 #include "wine/port.h"
27 #include <sys/types.h>
34 #define WIN32_NO_STATUS
43 static const void *cur_data;
44 static data_size_t cur_size;
46 static const char *get_status_name( unsigned int status );
48 /* utility functions */
50 static inline void remove_data( data_size_t size )
52 cur_data = (const char *)cur_data + size;
56 static void dump_uints( const int *ptr, int len )
61 fprintf( stderr, "%08x", *ptr++ );
62 if (--len) fputc( ',', stderr );
67 static void dump_abs_time( const abs_time_t *time )
71 if (!time->sec && !time->usec)
73 fprintf( stderr, "0" );
76 secs = time->sec - current_time.tv_sec;
77 if ((usecs = time->usec - current_time.tv_usec) < 0)
82 if (secs > 0 || (secs == 0 && usecs >= 0))
83 fprintf( stderr, "%d.%06d (+%d.%06d)", time->sec, time->usec, secs, usecs );
85 fprintf( stderr, "%d.%06d (-%d.%06d)", time->sec, time->usec, abs(secs+1), 1000000-usecs );
88 static void dump_rectangle( const rectangle_t *rect )
90 fprintf( stderr, "{%d,%d;%d,%d}",
91 rect->left, rect->top, rect->right, rect->bottom );
94 static void dump_char_info( const char_info_t *info )
96 fprintf( stderr, "{'" );
97 dump_strW( &info->ch, 1, stderr, "\'\'" );
98 fprintf( stderr, "',%04x}", info->attr );
101 static void dump_apc_call( const apc_call_t *call )
103 fputc( '{', stderr );
107 fprintf( stderr, "APC_NONE" );
110 fprintf( stderr, "APC_USER,args={%lx,%lx,%lx}",
111 call->user.args[0], call->user.args[1], call->user.args[2] );
114 fprintf( stderr, "APC_TIMER,time=" );
115 dump_abs_time( &call->timer.time );
116 fprintf( stderr, ",arg=%p", call->timer.arg );
119 fprintf( stderr, "APC_ASYNC_IO,func=%p,user=%p,sb=%p,status=%s",
120 call->async_io.func, call->async_io.user, call->async_io.sb,
121 get_status_name(call->async_io.status) );
123 case APC_VIRTUAL_ALLOC:
124 fprintf( stderr, "APC_VIRTUAL_ALLOC,addr=%p,size=%lu,zero_bits=%u,op_type=%x,prot=%x",
125 call->virtual_alloc.addr, call->virtual_alloc.size,
126 call->virtual_alloc.zero_bits, call->virtual_alloc.op_type,
127 call->virtual_alloc.prot );
129 case APC_VIRTUAL_FREE:
130 fprintf( stderr, "APC_VIRTUAL_FREE,addr=%p,size=%lu,op_type=%x",
131 call->virtual_free.addr, call->virtual_free.size,
132 call->virtual_free.op_type );
134 case APC_VIRTUAL_QUERY:
135 fprintf( stderr, "APC_VIRTUAL_QUERY,addr=%p", call->virtual_query.addr );
137 case APC_VIRTUAL_PROTECT:
138 fprintf( stderr, "APC_VIRTUAL_PROTECT,addr=%p,size=%lu,prot=%x",
139 call->virtual_protect.addr, call->virtual_protect.size,
140 call->virtual_protect.prot );
142 case APC_VIRTUAL_FLUSH:
143 fprintf( stderr, "APC_VIRTUAL_FLUSH,addr=%p,size=%lu",
144 call->virtual_flush.addr, call->virtual_flush.size );
146 case APC_VIRTUAL_LOCK:
147 fprintf( stderr, "APC_VIRTUAL_LOCK,addr=%p,size=%lu",
148 call->virtual_lock.addr, call->virtual_lock.size );
150 case APC_VIRTUAL_UNLOCK:
151 fprintf( stderr, "APC_VIRTUAL_UNLOCK,addr=%p,size=%lu",
152 call->virtual_unlock.addr, call->virtual_unlock.size );
155 fprintf( stderr, "APC_MAP_VIEW,handle=%p,addr=%p,size=%lu,offset=%x%08x,zero_bits=%u,alloc_type=%x,prot=%x",
156 call->map_view.handle, call->map_view.addr, call->map_view.size,
157 call->map_view.offset_high, call->map_view.offset_low, call->map_view.zero_bits,
158 call->map_view.alloc_type, call->map_view.prot );
161 fprintf( stderr, "APC_UNMAP_VIEW,addr=%p", call->unmap_view.addr );
163 case APC_CREATE_THREAD:
164 fprintf( stderr, "APC_CREATE_THREAD,func=%p,arg=%p,reserve=%lx,commit=%lx,suspend=%u",
165 call->create_thread.func, call->create_thread.arg,
166 call->create_thread.reserve, call->create_thread.commit,
167 call->create_thread.suspend );
170 fprintf( stderr, "type=%u", call->type );
173 fputc( '}', stderr );
176 static void dump_apc_result( const apc_result_t *result )
178 fputc( '{', stderr );
184 fprintf( stderr, "APC_ASYNC_IO,status=%s",
185 get_status_name( result->async_io.status ) );
187 case APC_VIRTUAL_ALLOC:
188 fprintf( stderr, "APC_VIRTUAL_ALLOC,status=%s,addr=%p,size=%lu",
189 get_status_name( result->virtual_alloc.status ),
190 result->virtual_alloc.addr, result->virtual_alloc.size );
192 case APC_VIRTUAL_FREE:
193 fprintf( stderr, "APC_VIRTUAL_FREE,status=%s,addr=%p,size=%lu",
194 get_status_name( result->virtual_free.status ),
195 result->virtual_free.addr, result->virtual_free.size );
197 case APC_VIRTUAL_QUERY:
198 fprintf( stderr, "APC_VIRTUAL_QUERY,status=%s,base=%p,alloc_base=%p,size=%lu,state=%x,prot=%x,alloc_prot=%x,alloc_type=%x",
199 get_status_name( result->virtual_query.status ),
200 result->virtual_query.base, result->virtual_query.alloc_base,
201 result->virtual_query.size, result->virtual_query.state,
202 result->virtual_query.prot, result->virtual_query.alloc_prot,
203 result->virtual_query.alloc_type );
205 case APC_VIRTUAL_PROTECT:
206 fprintf( stderr, "APC_VIRTUAL_PROTECT,status=%s,addr=%p,size=%lu,prot=%x",
207 get_status_name( result->virtual_protect.status ),
208 result->virtual_protect.addr, result->virtual_protect.size,
209 result->virtual_protect.prot );
211 case APC_VIRTUAL_FLUSH:
212 fprintf( stderr, "APC_VIRTUAL_FLUSH,status=%s,addr=%p,size=%lu",
213 get_status_name( result->virtual_flush.status ),
214 result->virtual_flush.addr, result->virtual_flush.size );
216 case APC_VIRTUAL_LOCK:
217 fprintf( stderr, "APC_VIRTUAL_LOCK,status=%s,addr=%p,size=%lu",
218 get_status_name( result->virtual_lock.status ),
219 result->virtual_lock.addr, result->virtual_lock.size );
221 case APC_VIRTUAL_UNLOCK:
222 fprintf( stderr, "APC_VIRTUAL_UNLOCK,status=%s,addr=%p,size=%lu",
223 get_status_name( result->virtual_unlock.status ),
224 result->virtual_unlock.addr, result->virtual_unlock.size );
227 fprintf( stderr, "APC_MAP_VIEW,status=%s,addr=%p,size=%lu",
228 get_status_name( result->map_view.status ),
229 result->map_view.addr, result->map_view.size );
232 fprintf( stderr, "APC_UNMAP_VIEW,status=%s",
233 get_status_name( result->unmap_view.status ) );
235 case APC_CREATE_THREAD:
236 fprintf( stderr, "APC_CREATE_THREAD,status=%s,tid=%04x,handle=%p",
237 get_status_name( result->create_thread.status ),
238 result->create_thread.tid, result->create_thread.handle );
241 fprintf( stderr, "type=%u", result->type );
244 fputc( '}', stderr );
247 static void dump_async_data( const async_data_t *data )
249 fprintf( stderr, "{callback=%p,iosb=%p,arg=%p,apc=%p,apc_arg=%p,event=%p}",
250 data->callback, data->iosb, data->arg, data->apc, data->apc_arg, data->event );
253 static void dump_luid( const luid_t *luid )
255 fprintf( stderr, "%d.%u", luid->high_part, luid->low_part );
258 static void dump_context( const CONTEXT *context )
261 fprintf( stderr, "{flags=%08x,eax=%08x,ebx=%08x,ecx=%08x,edx=%08x,esi=%08x,edi=%08x,"
262 "ebp=%08x,eip=%08x,esp=%08x,eflags=%08x,cs=%04x,ds=%04x,es=%04x,"
263 "fs=%04x,gs=%04x,dr0=%08x,dr1=%08x,dr2=%08x,dr3=%08x,dr6=%08x,dr7=%08x,",
264 context->ContextFlags, context->Eax, context->Ebx, context->Ecx, context->Edx,
265 context->Esi, context->Edi, context->Ebp, context->Eip, context->Esp, context->EFlags,
266 context->SegCs, context->SegDs, context->SegEs, context->SegFs, context->SegGs,
267 context->Dr0, context->Dr1, context->Dr2, context->Dr3, context->Dr6, context->Dr7 );
268 fprintf( stderr, "float=" );
269 dump_uints( (const int *)&context->FloatSave, sizeof(context->FloatSave) / sizeof(int) );
270 fprintf( stderr, "}" );
272 dump_uints( (const int *)context, sizeof(*context) / sizeof(int) );
276 static void dump_exc_record( const EXCEPTION_RECORD *rec )
279 fprintf( stderr, "{code=%x,flags=%x,rec=%p,addr=%p,params={",
280 rec->ExceptionCode, rec->ExceptionFlags, rec->ExceptionRecord,
281 rec->ExceptionAddress );
282 for (i = 0; i < min(rec->NumberParameters,EXCEPTION_MAXIMUM_PARAMETERS); i++)
284 if (i) fputc( ',', stderr );
285 fprintf( stderr, "%lx", rec->ExceptionInformation[i] );
287 fputc( '}', stderr );
290 static void dump_varargs_ints( data_size_t size )
292 const int *data = cur_data;
293 data_size_t len = size / sizeof(*data);
295 fputc( '{', stderr );
298 fprintf( stderr, "%d", *data++ );
299 if (--len) fputc( ',', stderr );
301 fputc( '}', stderr );
305 static void dump_varargs_handles( data_size_t size )
307 const obj_handle_t *data = cur_data;
308 data_size_t len = size / sizeof(*data);
310 fputc( '{', stderr );
313 fprintf( stderr, "%p", *data++ );
314 if (--len) fputc( ',', stderr );
316 fputc( '}', stderr );
320 static void dump_varargs_user_handles( data_size_t size )
322 const user_handle_t *data = cur_data;
323 data_size_t len = size / sizeof(*data);
325 fputc( '{', stderr );
328 fprintf( stderr, "%p", *data++ );
329 if (--len) fputc( ',', stderr );
331 fputc( '}', stderr );
335 static void dump_varargs_bytes( data_size_t size )
337 const unsigned char *data = cur_data;
338 data_size_t len = size;
340 fputc( '{', stderr );
343 fprintf( stderr, "%02x", *data++ );
344 if (--len) fputc( ',', stderr );
346 fputc( '}', stderr );
350 static void dump_varargs_string( data_size_t size )
352 fprintf( stderr, "\"%.*s\"", (int)size, (const char *)cur_data );
356 static void dump_varargs_unicode_str( data_size_t size )
358 fprintf( stderr, "L\"" );
359 dump_strW( cur_data, size / sizeof(WCHAR), stderr, "\"\"" );
360 fputc( '\"', stderr );
364 static void dump_varargs_context( data_size_t size )
368 fprintf( stderr, "{}" );
371 dump_context( cur_data );
375 static void dump_varargs_exc_event( data_size_t size )
377 const CONTEXT *ptr = cur_data;
381 fprintf( stderr, "{}" );
384 fprintf( stderr, "{context=" );
386 fprintf( stderr, ",rec=" );
387 dump_exc_record( (const EXCEPTION_RECORD *)(ptr + 1) );
388 fputc( '}', stderr );
392 static void dump_varargs_debug_event( data_size_t size )
394 const debug_event_t *event = cur_data;
398 fprintf( stderr, "{}" );
403 case EXCEPTION_DEBUG_EVENT:
404 fprintf( stderr, "{exception," );
405 dump_exc_record( &event->info.exception.record );
406 fprintf( stderr, ",first=%d}", event->info.exception.first );
408 case CREATE_THREAD_DEBUG_EVENT:
409 fprintf( stderr, "{create_thread,thread=%p,teb=%p,start=%p}",
410 event->info.create_thread.handle, event->info.create_thread.teb,
411 event->info.create_thread.start );
413 case CREATE_PROCESS_DEBUG_EVENT:
414 fprintf( stderr, "{create_process,file=%p,process=%p,thread=%p,base=%p,offset=%d,"
415 "size=%d,teb=%p,start=%p,name=%p,unicode=%d}",
416 event->info.create_process.file, event->info.create_process.process,
417 event->info.create_process.thread, event->info.create_process.base,
418 event->info.create_process.dbg_offset, event->info.create_process.dbg_size,
419 event->info.create_process.teb, event->info.create_process.start,
420 event->info.create_process.name, event->info.create_process.unicode );
422 case EXIT_THREAD_DEBUG_EVENT:
423 fprintf( stderr, "{exit_thread,code=%d}", event->info.exit.exit_code );
425 case EXIT_PROCESS_DEBUG_EVENT:
426 fprintf( stderr, "{exit_process,code=%d}", event->info.exit.exit_code );
428 case LOAD_DLL_DEBUG_EVENT:
429 fprintf( stderr, "{load_dll,file=%p,base=%p,offset=%d,size=%d,name=%p,unicode=%d}",
430 event->info.load_dll.handle, event->info.load_dll.base,
431 event->info.load_dll.dbg_offset, event->info.load_dll.dbg_size,
432 event->info.load_dll.name, event->info.load_dll.unicode );
434 case UNLOAD_DLL_DEBUG_EVENT:
435 fprintf( stderr, "{unload_dll,base=%p}", event->info.unload_dll.base );
437 case OUTPUT_DEBUG_STRING_EVENT:
438 fprintf( stderr, "{output_string,data=%p,unicode=%d,len=%d}",
439 event->info.output_string.string, event->info.output_string.unicode,
440 event->info.output_string.length );
443 fprintf( stderr, "{rip,err=%d,type=%d}",
444 event->info.rip_info.error, event->info.rip_info.type );
446 case 0: /* zero is the code returned on timeouts */
447 fprintf( stderr, "{}" );
450 fprintf( stderr, "{code=??? (%d)}", event->code );
456 /* dump a unicode string contained in a buffer; helper for dump_varargs_startup_info */
457 static void dump_inline_unicode_string( const UNICODE_STRING *str, const void *data, data_size_t size )
459 size_t length = str->Length;
460 size_t offset = (size_t)str->Buffer;
462 if (offset >= size) return;
463 if (offset + length > size) length = size - offset;
464 dump_strW( (const WCHAR *)data + offset/sizeof(WCHAR), length/sizeof(WCHAR), stderr, "\"\"" );
467 static void dump_varargs_startup_info( data_size_t size )
469 const RTL_USER_PROCESS_PARAMETERS *ptr = cur_data;
470 RTL_USER_PROCESS_PARAMETERS params;
472 if (size < sizeof(params.Size))
474 fprintf( stderr, "{}" );
477 if (size > ptr->Size) size = ptr->Size;
478 memset( ¶ms, 0, sizeof(params) );
479 memcpy( ¶ms, ptr, min( size, sizeof(params) ));
481 fprintf( stderr, "{AllocationSize=%x,", params.AllocationSize );
482 fprintf( stderr, "Size=%x,", params.Size );
483 fprintf( stderr, "Flags=%x,", params.Flags );
484 fprintf( stderr, "DebugFlags=%x,", params.DebugFlags );
485 fprintf( stderr, "ConsoleHandle=%p,", params.ConsoleHandle );
486 fprintf( stderr, "ConsoleFlags=%x,", params.ConsoleFlags );
487 fprintf( stderr, "hStdInput=%p,", params.hStdInput );
488 fprintf( stderr, "hStdOutput=%p,", params.hStdOutput );
489 fprintf( stderr, "hStdError=%p,", params.hStdError );
490 fprintf( stderr, "CurrentDirectory.Handle=%p,", params.CurrentDirectory.Handle );
491 fprintf( stderr, "dwX=%d,", params.dwX );
492 fprintf( stderr, "dwY=%d,", params.dwY );
493 fprintf( stderr, "dwXSize=%d,", params.dwXSize );
494 fprintf( stderr, "dwYSize=%d,", params.dwYSize );
495 fprintf( stderr, "dwXCountChars=%d,", params.dwXCountChars );
496 fprintf( stderr, "dwYCountChars=%d,", params.dwYCountChars );
497 fprintf( stderr, "dwFillAttribute=%x,", params.dwFillAttribute );
498 fprintf( stderr, "dwFlags=%x,", params.dwFlags );
499 fprintf( stderr, "wShowWindow=%x,", params.wShowWindow );
500 fprintf( stderr, "CurrentDirectory.DosPath=L\"" );
501 dump_inline_unicode_string( ¶ms.CurrentDirectory.DosPath, cur_data, size );
502 fprintf( stderr, "\",DllPath=L\"" );
503 dump_inline_unicode_string( ¶ms.DllPath, cur_data, size );
504 fprintf( stderr, "\",ImagePathName=L\"" );
505 dump_inline_unicode_string( ¶ms.ImagePathName, cur_data, size );
506 fprintf( stderr, "\",CommandLine=L\"" );
507 dump_inline_unicode_string( ¶ms.CommandLine, cur_data, size );
508 fprintf( stderr, "\",WindowTitle=L\"" );
509 dump_inline_unicode_string( ¶ms.WindowTitle, cur_data, size );
510 fprintf( stderr, "\",Desktop=L\"" );
511 dump_inline_unicode_string( ¶ms.Desktop, cur_data, size );
512 fprintf( stderr, "\",ShellInfo=L\"" );
513 dump_inline_unicode_string( ¶ms.ShellInfo, cur_data, size );
514 fprintf( stderr, "\",RuntimeInfo=L\"" );
515 dump_inline_unicode_string( ¶ms.RuntimeInfo, cur_data, size );
516 fprintf( stderr, "\"}" );
520 static void dump_varargs_input_records( data_size_t size )
522 const INPUT_RECORD *rec = cur_data;
523 data_size_t len = size / sizeof(*rec);
525 fputc( '{', stderr );
528 fprintf( stderr, "{%04x,...}", rec->EventType );
530 if (--len) fputc( ',', stderr );
532 fputc( '}', stderr );
536 static void dump_varargs_rectangles( data_size_t size )
538 const rectangle_t *rect = cur_data;
539 data_size_t len = size / sizeof(*rect);
541 fputc( '{', stderr );
544 dump_rectangle( rect++ );
545 if (--len) fputc( ',', stderr );
547 fputc( '}', stderr );
551 static void dump_varargs_message_data( data_size_t size )
553 /* FIXME: dump the structured data */
554 dump_varargs_bytes( size );
557 static void dump_varargs_properties( data_size_t size )
559 const property_data_t *prop = cur_data;
560 data_size_t len = size / sizeof(*prop);
562 fputc( '{', stderr );
565 fprintf( stderr, "{atom=%04x,str=%d,handle=%p}",
566 prop->atom, prop->string, prop->handle );
568 if (--len) fputc( ',', stderr );
570 fputc( '}', stderr );
574 static void dump_varargs_LUID_AND_ATTRIBUTES( data_size_t size )
576 const LUID_AND_ATTRIBUTES *lat = cur_data;
577 data_size_t len = size / sizeof(*lat);
579 fputc( '{', stderr );
582 fprintf( stderr, "{luid=%08x%08x,attr=%x}",
583 lat->Luid.HighPart, lat->Luid.LowPart, lat->Attributes );
585 if (--len) fputc( ',', stderr );
587 fputc( '}', stderr );
591 static void dump_inline_sid( const SID *sid, data_size_t size )
596 if ((FIELD_OFFSET(SID, SubAuthority[0]) > size) ||
597 (FIELD_OFFSET(SID, SubAuthority[sid->SubAuthorityCount]) > size))
599 fprintf( stderr, "<invalid sid>" );
603 fputc( '{', stderr );
604 fprintf( stderr, "S-%u-%u", sid->Revision, MAKELONG(
605 MAKEWORD( sid->IdentifierAuthority.Value[5],
606 sid->IdentifierAuthority.Value[4] ),
607 MAKEWORD( sid->IdentifierAuthority.Value[3],
608 sid->IdentifierAuthority.Value[2] ) ) );
609 for (i = 0; i < sid->SubAuthorityCount; i++)
610 fprintf( stderr, "-%u", sid->SubAuthority[i] );
611 fputc( '}', stderr );
614 static void dump_varargs_SID( data_size_t size )
616 const SID *sid = cur_data;
617 dump_inline_sid( sid, size );
621 static void dump_inline_acl( const ACL *acl, data_size_t size )
623 const ACE_HEADER *ace;
625 fputc( '{', stderr );
629 if (size < sizeof(ACL))
631 fprintf( stderr, "<invalid acl>}\n" );
635 ace = (const ACE_HEADER *)(acl + 1);
636 for (i = 0; i < acl->AceCount; i++)
638 const SID *sid = NULL;
639 data_size_t sid_size = 0;
641 if (size < sizeof(ACE_HEADER))
643 if (size < ace->AceSize)
645 size -= ace->AceSize;
646 if (i != 0) fputc( ',', stderr );
647 fprintf( stderr, "{AceType=" );
648 switch (ace->AceType)
650 case ACCESS_DENIED_ACE_TYPE:
651 sid = (const SID *)&((const ACCESS_DENIED_ACE *)ace)->SidStart;
652 sid_size = ace->AceSize - FIELD_OFFSET(ACCESS_DENIED_ACE, SidStart);
653 fprintf( stderr, "ACCESS_DENIED_ACE_TYPE,Mask=%x",
654 ((const ACCESS_DENIED_ACE *)ace)->Mask );
656 case ACCESS_ALLOWED_ACE_TYPE:
657 sid = (const SID *)&((const ACCESS_ALLOWED_ACE *)ace)->SidStart;
658 sid_size = ace->AceSize - FIELD_OFFSET(ACCESS_ALLOWED_ACE, SidStart);
659 fprintf( stderr, "ACCESS_ALLOWED_ACE_TYPE,Mask=%x",
660 ((const ACCESS_ALLOWED_ACE *)ace)->Mask );
662 case SYSTEM_AUDIT_ACE_TYPE:
663 sid = (const SID *)&((const SYSTEM_AUDIT_ACE *)ace)->SidStart;
664 sid_size = ace->AceSize - FIELD_OFFSET(SYSTEM_AUDIT_ACE, SidStart);
665 fprintf( stderr, "SYSTEM_AUDIT_ACE_TYPE,Mask=%x",
666 ((const SYSTEM_AUDIT_ACE *)ace)->Mask );
668 case SYSTEM_ALARM_ACE_TYPE:
669 sid = (const SID *)&((const SYSTEM_ALARM_ACE *)ace)->SidStart;
670 sid_size = ace->AceSize - FIELD_OFFSET(SYSTEM_ALARM_ACE, SidStart);
671 fprintf( stderr, "SYSTEM_ALARM_ACE_TYPE,Mask=%x",
672 ((const SYSTEM_ALARM_ACE *)ace)->Mask );
675 fprintf( stderr, "unknown<%d>", ace->AceType );
678 fprintf( stderr, ",AceFlags=%x,Sid=", ace->AceFlags );
680 dump_inline_sid( sid, sid_size );
681 ace = (const ACE_HEADER *)((const char *)ace + ace->AceSize);
682 fputc( '}', stderr );
685 fputc( '}', stderr );
688 static void dump_inline_security_descriptor( const struct security_descriptor *sd, data_size_t size )
690 fputc( '{', stderr );
691 if (size >= sizeof(struct security_descriptor))
693 size_t offset = sizeof(struct security_descriptor);
694 fprintf( stderr, "control=%08x", sd->control );
695 fprintf( stderr, ",owner=" );
696 if ((sd->owner_len > FIELD_OFFSET(SID, SubAuthority[255])) || (offset + sd->owner_len > size))
698 dump_inline_sid( (const SID *)((const char *)sd + offset), sd->owner_len );
699 offset += sd->owner_len;
700 fprintf( stderr, ",group=" );
701 if ((sd->group_len > FIELD_OFFSET(SID, SubAuthority[255])) || (offset + sd->group_len > size))
703 dump_inline_sid( (const SID *)((const char *)sd + offset), sd->group_len );
704 offset += sd->group_len;
705 fprintf( stderr, ",sacl=" );
706 if ((sd->sacl_len >= MAX_ACL_LEN) || (offset + sd->sacl_len > size))
708 dump_inline_acl( (const ACL *)((const char *)sd + offset), sd->sacl_len );
709 offset += sd->sacl_len;
710 fprintf( stderr, ",dacl=" );
711 if ((sd->dacl_len >= MAX_ACL_LEN) || (offset + sd->dacl_len > size))
713 dump_inline_acl( (const ACL *)((const char *)sd + offset), sd->dacl_len );
714 offset += sd->dacl_len;
716 fputc( '}', stderr );
719 static void dump_varargs_security_descriptor( data_size_t size )
721 const struct security_descriptor *sd = cur_data;
722 dump_inline_security_descriptor( sd, size );
726 static void dump_varargs_token_groups( data_size_t size )
728 const struct token_groups *tg = cur_data;
729 fputc( '{', stderr );
730 if (size >= sizeof(struct token_groups))
732 size_t offset = sizeof(*tg);
733 fprintf( stderr, "count=%08x,", tg->count );
734 if (tg->count * sizeof(unsigned int) <= size)
737 const unsigned int *attr = (const unsigned int *)(tg + 1);
739 offset += tg->count * sizeof(unsigned int);
741 fputc( '[', stderr );
742 for (i = 0; i < tg->count; i++)
744 const SID *sid = (const SID *)((const char *)cur_data + offset);
746 fputc( ',', stderr );
747 fputc( '{', stderr );
748 fprintf( stderr, "attributes=%08x", attr[i] );
749 fprintf( stderr, ",sid=" );
750 dump_inline_sid( sid, size - offset );
751 if ((offset + FIELD_OFFSET(SID, SubAuthority[0]) > size) ||
752 (offset + FIELD_OFFSET(SID, SubAuthority[sid->SubAuthorityCount]) > size))
754 offset += FIELD_OFFSET(SID, SubAuthority[sid->SubAuthorityCount]);
755 fputc( '}', stderr );
757 fputc( ']', stderr );
760 fputc( '}', stderr );
763 typedef void (*dump_func)( const void *req );
765 /* Everything below this line is generated automatically by tools/make_requests */
766 /* ### make_requests begin ### */
768 static void dump_new_process_request( const struct new_process_request *req )
770 fprintf( stderr, " inherit_all=%d,", req->inherit_all );
771 fprintf( stderr, " create_flags=%08x,", req->create_flags );
772 fprintf( stderr, " socket_fd=%d,", req->socket_fd );
773 fprintf( stderr, " exe_file=%p,", req->exe_file );
774 fprintf( stderr, " hstdin=%p,", req->hstdin );
775 fprintf( stderr, " hstdout=%p,", req->hstdout );
776 fprintf( stderr, " hstderr=%p,", req->hstderr );
777 fprintf( stderr, " process_access=%08x,", req->process_access );
778 fprintf( stderr, " process_attr=%08x,", req->process_attr );
779 fprintf( stderr, " thread_access=%08x,", req->thread_access );
780 fprintf( stderr, " thread_attr=%08x,", req->thread_attr );
781 fprintf( stderr, " info=" );
782 dump_varargs_startup_info( cur_size );
783 fputc( ',', stderr );
784 fprintf( stderr, " env=" );
785 dump_varargs_unicode_str( cur_size );
788 static void dump_new_process_reply( const struct new_process_reply *req )
790 fprintf( stderr, " info=%p,", req->info );
791 fprintf( stderr, " pid=%04x,", req->pid );
792 fprintf( stderr, " phandle=%p,", req->phandle );
793 fprintf( stderr, " tid=%04x,", req->tid );
794 fprintf( stderr, " thandle=%p", req->thandle );
797 static void dump_get_new_process_info_request( const struct get_new_process_info_request *req )
799 fprintf( stderr, " info=%p", req->info );
802 static void dump_get_new_process_info_reply( const struct get_new_process_info_reply *req )
804 fprintf( stderr, " success=%d,", req->success );
805 fprintf( stderr, " exit_code=%d", req->exit_code );
808 static void dump_new_thread_request( const struct new_thread_request *req )
810 fprintf( stderr, " access=%08x,", req->access );
811 fprintf( stderr, " attributes=%08x,", req->attributes );
812 fprintf( stderr, " suspend=%d,", req->suspend );
813 fprintf( stderr, " request_fd=%d", req->request_fd );
816 static void dump_new_thread_reply( const struct new_thread_reply *req )
818 fprintf( stderr, " tid=%04x,", req->tid );
819 fprintf( stderr, " handle=%p", req->handle );
822 static void dump_get_startup_info_request( const struct get_startup_info_request *req )
826 static void dump_get_startup_info_reply( const struct get_startup_info_reply *req )
828 fprintf( stderr, " exe_file=%p,", req->exe_file );
829 fprintf( stderr, " hstdin=%p,", req->hstdin );
830 fprintf( stderr, " hstdout=%p,", req->hstdout );
831 fprintf( stderr, " hstderr=%p,", req->hstderr );
832 fprintf( stderr, " info=" );
833 dump_varargs_startup_info( cur_size );
834 fputc( ',', stderr );
835 fprintf( stderr, " env=" );
836 dump_varargs_unicode_str( cur_size );
839 static void dump_init_process_done_request( const struct init_process_done_request *req )
841 fprintf( stderr, " module=%p,", req->module );
842 fprintf( stderr, " entry=%p,", req->entry );
843 fprintf( stderr, " gui=%d", req->gui );
846 static void dump_init_thread_request( const struct init_thread_request *req )
848 fprintf( stderr, " unix_pid=%d,", req->unix_pid );
849 fprintf( stderr, " unix_tid=%d,", req->unix_tid );
850 fprintf( stderr, " debug_level=%d,", req->debug_level );
851 fprintf( stderr, " teb=%p,", req->teb );
852 fprintf( stderr, " peb=%p,", req->peb );
853 fprintf( stderr, " entry=%p,", req->entry );
854 fprintf( stderr, " ldt_copy=%p,", req->ldt_copy );
855 fprintf( stderr, " reply_fd=%d,", req->reply_fd );
856 fprintf( stderr, " wait_fd=%d", req->wait_fd );
859 static void dump_init_thread_reply( const struct init_thread_reply *req )
861 fprintf( stderr, " pid=%04x,", req->pid );
862 fprintf( stderr, " tid=%04x,", req->tid );
863 fprintf( stderr, " info_size=%u,", req->info_size );
864 fprintf( stderr, " server_start=" );
865 dump_abs_time( &req->server_start );
866 fprintf( stderr, "," );
867 fprintf( stderr, " version=%d", req->version );
870 static void dump_terminate_process_request( const struct terminate_process_request *req )
872 fprintf( stderr, " handle=%p,", req->handle );
873 fprintf( stderr, " exit_code=%d", req->exit_code );
876 static void dump_terminate_process_reply( const struct terminate_process_reply *req )
878 fprintf( stderr, " self=%d", req->self );
881 static void dump_terminate_thread_request( const struct terminate_thread_request *req )
883 fprintf( stderr, " handle=%p,", req->handle );
884 fprintf( stderr, " exit_code=%d", req->exit_code );
887 static void dump_terminate_thread_reply( const struct terminate_thread_reply *req )
889 fprintf( stderr, " self=%d,", req->self );
890 fprintf( stderr, " last=%d", req->last );
893 static void dump_get_process_info_request( const struct get_process_info_request *req )
895 fprintf( stderr, " handle=%p", req->handle );
898 static void dump_get_process_info_reply( const struct get_process_info_reply *req )
900 fprintf( stderr, " pid=%04x,", req->pid );
901 fprintf( stderr, " ppid=%04x,", req->ppid );
902 fprintf( stderr, " exit_code=%d,", req->exit_code );
903 fprintf( stderr, " priority=%d,", req->priority );
904 fprintf( stderr, " affinity=%d,", req->affinity );
905 fprintf( stderr, " peb=%p,", req->peb );
906 fprintf( stderr, " start_time=" );
907 dump_abs_time( &req->start_time );
908 fprintf( stderr, "," );
909 fprintf( stderr, " end_time=" );
910 dump_abs_time( &req->end_time );
913 static void dump_set_process_info_request( const struct set_process_info_request *req )
915 fprintf( stderr, " handle=%p,", req->handle );
916 fprintf( stderr, " mask=%d,", req->mask );
917 fprintf( stderr, " priority=%d,", req->priority );
918 fprintf( stderr, " affinity=%d", req->affinity );
921 static void dump_get_thread_info_request( const struct get_thread_info_request *req )
923 fprintf( stderr, " handle=%p,", req->handle );
924 fprintf( stderr, " tid_in=%04x", req->tid_in );
927 static void dump_get_thread_info_reply( const struct get_thread_info_reply *req )
929 fprintf( stderr, " pid=%04x,", req->pid );
930 fprintf( stderr, " tid=%04x,", req->tid );
931 fprintf( stderr, " teb=%p,", req->teb );
932 fprintf( stderr, " exit_code=%d,", req->exit_code );
933 fprintf( stderr, " priority=%d,", req->priority );
934 fprintf( stderr, " affinity=%d,", req->affinity );
935 fprintf( stderr, " creation_time=" );
936 dump_abs_time( &req->creation_time );
937 fprintf( stderr, "," );
938 fprintf( stderr, " exit_time=" );
939 dump_abs_time( &req->exit_time );
940 fprintf( stderr, "," );
941 fprintf( stderr, " last=%d", req->last );
944 static void dump_set_thread_info_request( const struct set_thread_info_request *req )
946 fprintf( stderr, " handle=%p,", req->handle );
947 fprintf( stderr, " mask=%d,", req->mask );
948 fprintf( stderr, " priority=%d,", req->priority );
949 fprintf( stderr, " affinity=%d,", req->affinity );
950 fprintf( stderr, " token=%p", req->token );
953 static void dump_get_dll_info_request( const struct get_dll_info_request *req )
955 fprintf( stderr, " handle=%p,", req->handle );
956 fprintf( stderr, " base_address=%p", req->base_address );
959 static void dump_get_dll_info_reply( const struct get_dll_info_reply *req )
961 fprintf( stderr, " size=%lu,", (unsigned long)req->size );
962 fprintf( stderr, " entry_point=%p,", req->entry_point );
963 fprintf( stderr, " filename=" );
964 dump_varargs_unicode_str( cur_size );
967 static void dump_suspend_thread_request( const struct suspend_thread_request *req )
969 fprintf( stderr, " handle=%p", req->handle );
972 static void dump_suspend_thread_reply( const struct suspend_thread_reply *req )
974 fprintf( stderr, " count=%d", req->count );
977 static void dump_resume_thread_request( const struct resume_thread_request *req )
979 fprintf( stderr, " handle=%p", req->handle );
982 static void dump_resume_thread_reply( const struct resume_thread_reply *req )
984 fprintf( stderr, " count=%d", req->count );
987 static void dump_load_dll_request( const struct load_dll_request *req )
989 fprintf( stderr, " handle=%p,", req->handle );
990 fprintf( stderr, " base=%p,", req->base );
991 fprintf( stderr, " size=%lu,", (unsigned long)req->size );
992 fprintf( stderr, " dbg_offset=%d,", req->dbg_offset );
993 fprintf( stderr, " dbg_size=%d,", req->dbg_size );
994 fprintf( stderr, " name=%p,", req->name );
995 fprintf( stderr, " filename=" );
996 dump_varargs_unicode_str( cur_size );
999 static void dump_unload_dll_request( const struct unload_dll_request *req )
1001 fprintf( stderr, " base=%p", req->base );
1004 static void dump_queue_apc_request( const struct queue_apc_request *req )
1006 fprintf( stderr, " thread=%p,", req->thread );
1007 fprintf( stderr, " process=%p,", req->process );
1008 fprintf( stderr, " call=" );
1009 dump_apc_call( &req->call );
1012 static void dump_queue_apc_reply( const struct queue_apc_reply *req )
1014 fprintf( stderr, " handle=%p,", req->handle );
1015 fprintf( stderr, " self=%d", req->self );
1018 static void dump_get_apc_request( const struct get_apc_request *req )
1020 fprintf( stderr, " alertable=%d,", req->alertable );
1021 fprintf( stderr, " prev=%p,", req->prev );
1022 fprintf( stderr, " result=" );
1023 dump_apc_result( &req->result );
1026 static void dump_get_apc_reply( const struct get_apc_reply *req )
1028 fprintf( stderr, " handle=%p,", req->handle );
1029 fprintf( stderr, " call=" );
1030 dump_apc_call( &req->call );
1033 static void dump_get_apc_result_request( const struct get_apc_result_request *req )
1035 fprintf( stderr, " handle=%p", req->handle );
1038 static void dump_get_apc_result_reply( const struct get_apc_result_reply *req )
1040 fprintf( stderr, " result=" );
1041 dump_apc_result( &req->result );
1044 static void dump_close_handle_request( const struct close_handle_request *req )
1046 fprintf( stderr, " handle=%p", req->handle );
1049 static void dump_set_handle_info_request( const struct set_handle_info_request *req )
1051 fprintf( stderr, " handle=%p,", req->handle );
1052 fprintf( stderr, " flags=%d,", req->flags );
1053 fprintf( stderr, " mask=%d", req->mask );
1056 static void dump_set_handle_info_reply( const struct set_handle_info_reply *req )
1058 fprintf( stderr, " old_flags=%d", req->old_flags );
1061 static void dump_dup_handle_request( const struct dup_handle_request *req )
1063 fprintf( stderr, " src_process=%p,", req->src_process );
1064 fprintf( stderr, " src_handle=%p,", req->src_handle );
1065 fprintf( stderr, " dst_process=%p,", req->dst_process );
1066 fprintf( stderr, " access=%08x,", req->access );
1067 fprintf( stderr, " attributes=%08x,", req->attributes );
1068 fprintf( stderr, " options=%08x", req->options );
1071 static void dump_dup_handle_reply( const struct dup_handle_reply *req )
1073 fprintf( stderr, " handle=%p,", req->handle );
1074 fprintf( stderr, " self=%d,", req->self );
1075 fprintf( stderr, " closed=%d", req->closed );
1078 static void dump_open_process_request( const struct open_process_request *req )
1080 fprintf( stderr, " pid=%04x,", req->pid );
1081 fprintf( stderr, " access=%08x,", req->access );
1082 fprintf( stderr, " attributes=%08x", req->attributes );
1085 static void dump_open_process_reply( const struct open_process_reply *req )
1087 fprintf( stderr, " handle=%p", req->handle );
1090 static void dump_open_thread_request( const struct open_thread_request *req )
1092 fprintf( stderr, " tid=%04x,", req->tid );
1093 fprintf( stderr, " access=%08x,", req->access );
1094 fprintf( stderr, " attributes=%08x", req->attributes );
1097 static void dump_open_thread_reply( const struct open_thread_reply *req )
1099 fprintf( stderr, " handle=%p", req->handle );
1102 static void dump_select_request( const struct select_request *req )
1104 fprintf( stderr, " flags=%d,", req->flags );
1105 fprintf( stderr, " cookie=%p,", req->cookie );
1106 fprintf( stderr, " signal=%p,", req->signal );
1107 fprintf( stderr, " timeout=" );
1108 dump_abs_time( &req->timeout );
1109 fprintf( stderr, "," );
1110 fprintf( stderr, " handles=" );
1111 dump_varargs_handles( cur_size );
1114 static void dump_create_event_request( const struct create_event_request *req )
1116 fprintf( stderr, " access=%08x,", req->access );
1117 fprintf( stderr, " attributes=%08x,", req->attributes );
1118 fprintf( stderr, " rootdir=%p,", req->rootdir );
1119 fprintf( stderr, " manual_reset=%d,", req->manual_reset );
1120 fprintf( stderr, " initial_state=%d,", req->initial_state );
1121 fprintf( stderr, " name=" );
1122 dump_varargs_unicode_str( cur_size );
1125 static void dump_create_event_reply( const struct create_event_reply *req )
1127 fprintf( stderr, " handle=%p", req->handle );
1130 static void dump_event_op_request( const struct event_op_request *req )
1132 fprintf( stderr, " handle=%p,", req->handle );
1133 fprintf( stderr, " op=%d", req->op );
1136 static void dump_open_event_request( const struct open_event_request *req )
1138 fprintf( stderr, " access=%08x,", req->access );
1139 fprintf( stderr, " attributes=%08x,", req->attributes );
1140 fprintf( stderr, " rootdir=%p,", req->rootdir );
1141 fprintf( stderr, " name=" );
1142 dump_varargs_unicode_str( cur_size );
1145 static void dump_open_event_reply( const struct open_event_reply *req )
1147 fprintf( stderr, " handle=%p", req->handle );
1150 static void dump_create_mutex_request( const struct create_mutex_request *req )
1152 fprintf( stderr, " access=%08x,", req->access );
1153 fprintf( stderr, " attributes=%08x,", req->attributes );
1154 fprintf( stderr, " rootdir=%p,", req->rootdir );
1155 fprintf( stderr, " owned=%d,", req->owned );
1156 fprintf( stderr, " name=" );
1157 dump_varargs_unicode_str( cur_size );
1160 static void dump_create_mutex_reply( const struct create_mutex_reply *req )
1162 fprintf( stderr, " handle=%p", req->handle );
1165 static void dump_release_mutex_request( const struct release_mutex_request *req )
1167 fprintf( stderr, " handle=%p", req->handle );
1170 static void dump_release_mutex_reply( const struct release_mutex_reply *req )
1172 fprintf( stderr, " prev_count=%08x", req->prev_count );
1175 static void dump_open_mutex_request( const struct open_mutex_request *req )
1177 fprintf( stderr, " access=%08x,", req->access );
1178 fprintf( stderr, " attributes=%08x,", req->attributes );
1179 fprintf( stderr, " rootdir=%p,", req->rootdir );
1180 fprintf( stderr, " name=" );
1181 dump_varargs_unicode_str( cur_size );
1184 static void dump_open_mutex_reply( const struct open_mutex_reply *req )
1186 fprintf( stderr, " handle=%p", req->handle );
1189 static void dump_create_semaphore_request( const struct create_semaphore_request *req )
1191 fprintf( stderr, " access=%08x,", req->access );
1192 fprintf( stderr, " attributes=%08x,", req->attributes );
1193 fprintf( stderr, " rootdir=%p,", req->rootdir );
1194 fprintf( stderr, " initial=%08x,", req->initial );
1195 fprintf( stderr, " max=%08x,", req->max );
1196 fprintf( stderr, " name=" );
1197 dump_varargs_unicode_str( cur_size );
1200 static void dump_create_semaphore_reply( const struct create_semaphore_reply *req )
1202 fprintf( stderr, " handle=%p", req->handle );
1205 static void dump_release_semaphore_request( const struct release_semaphore_request *req )
1207 fprintf( stderr, " handle=%p,", req->handle );
1208 fprintf( stderr, " count=%08x", req->count );
1211 static void dump_release_semaphore_reply( const struct release_semaphore_reply *req )
1213 fprintf( stderr, " prev_count=%08x", req->prev_count );
1216 static void dump_open_semaphore_request( const struct open_semaphore_request *req )
1218 fprintf( stderr, " access=%08x,", req->access );
1219 fprintf( stderr, " attributes=%08x,", req->attributes );
1220 fprintf( stderr, " rootdir=%p,", req->rootdir );
1221 fprintf( stderr, " name=" );
1222 dump_varargs_unicode_str( cur_size );
1225 static void dump_open_semaphore_reply( const struct open_semaphore_reply *req )
1227 fprintf( stderr, " handle=%p", req->handle );
1230 static void dump_create_file_request( const struct create_file_request *req )
1232 fprintf( stderr, " access=%08x,", req->access );
1233 fprintf( stderr, " attributes=%08x,", req->attributes );
1234 fprintf( stderr, " sharing=%08x,", req->sharing );
1235 fprintf( stderr, " create=%d,", req->create );
1236 fprintf( stderr, " options=%08x,", req->options );
1237 fprintf( stderr, " attrs=%08x,", req->attrs );
1238 fprintf( stderr, " filename=" );
1239 dump_varargs_string( cur_size );
1242 static void dump_create_file_reply( const struct create_file_reply *req )
1244 fprintf( stderr, " handle=%p", req->handle );
1247 static void dump_open_file_object_request( const struct open_file_object_request *req )
1249 fprintf( stderr, " access=%08x,", req->access );
1250 fprintf( stderr, " attributes=%08x,", req->attributes );
1251 fprintf( stderr, " rootdir=%p,", req->rootdir );
1252 fprintf( stderr, " sharing=%08x,", req->sharing );
1253 fprintf( stderr, " options=%08x,", req->options );
1254 fprintf( stderr, " filename=" );
1255 dump_varargs_unicode_str( cur_size );
1258 static void dump_open_file_object_reply( const struct open_file_object_reply *req )
1260 fprintf( stderr, " handle=%p", req->handle );
1263 static void dump_alloc_file_handle_request( const struct alloc_file_handle_request *req )
1265 fprintf( stderr, " access=%08x,", req->access );
1266 fprintf( stderr, " attributes=%08x,", req->attributes );
1267 fprintf( stderr, " fd=%d", req->fd );
1270 static void dump_alloc_file_handle_reply( const struct alloc_file_handle_reply *req )
1272 fprintf( stderr, " handle=%p", req->handle );
1275 static void dump_get_handle_fd_request( const struct get_handle_fd_request *req )
1277 fprintf( stderr, " handle=%p,", req->handle );
1278 fprintf( stderr, " access=%08x,", req->access );
1279 fprintf( stderr, " cached=%d", req->cached );
1282 static void dump_get_handle_fd_reply( const struct get_handle_fd_reply *req )
1284 fprintf( stderr, " type=%d,", req->type );
1285 fprintf( stderr, " flags=%d", req->flags );
1288 static void dump_flush_file_request( const struct flush_file_request *req )
1290 fprintf( stderr, " handle=%p", req->handle );
1293 static void dump_flush_file_reply( const struct flush_file_reply *req )
1295 fprintf( stderr, " event=%p", req->event );
1298 static void dump_lock_file_request( const struct lock_file_request *req )
1300 fprintf( stderr, " handle=%p,", req->handle );
1301 fprintf( stderr, " offset_low=%08x,", req->offset_low );
1302 fprintf( stderr, " offset_high=%08x,", req->offset_high );
1303 fprintf( stderr, " count_low=%08x,", req->count_low );
1304 fprintf( stderr, " count_high=%08x,", req->count_high );
1305 fprintf( stderr, " shared=%d,", req->shared );
1306 fprintf( stderr, " wait=%d", req->wait );
1309 static void dump_lock_file_reply( const struct lock_file_reply *req )
1311 fprintf( stderr, " handle=%p,", req->handle );
1312 fprintf( stderr, " overlapped=%d", req->overlapped );
1315 static void dump_unlock_file_request( const struct unlock_file_request *req )
1317 fprintf( stderr, " handle=%p,", req->handle );
1318 fprintf( stderr, " offset_low=%08x,", req->offset_low );
1319 fprintf( stderr, " offset_high=%08x,", req->offset_high );
1320 fprintf( stderr, " count_low=%08x,", req->count_low );
1321 fprintf( stderr, " count_high=%08x", req->count_high );
1324 static void dump_unmount_device_request( const struct unmount_device_request *req )
1326 fprintf( stderr, " handle=%p", req->handle );
1329 static void dump_create_socket_request( const struct create_socket_request *req )
1331 fprintf( stderr, " access=%08x,", req->access );
1332 fprintf( stderr, " attributes=%08x,", req->attributes );
1333 fprintf( stderr, " family=%d,", req->family );
1334 fprintf( stderr, " type=%d,", req->type );
1335 fprintf( stderr, " protocol=%d,", req->protocol );
1336 fprintf( stderr, " flags=%08x", req->flags );
1339 static void dump_create_socket_reply( const struct create_socket_reply *req )
1341 fprintf( stderr, " handle=%p", req->handle );
1344 static void dump_accept_socket_request( const struct accept_socket_request *req )
1346 fprintf( stderr, " lhandle=%p,", req->lhandle );
1347 fprintf( stderr, " access=%08x,", req->access );
1348 fprintf( stderr, " attributes=%08x", req->attributes );
1351 static void dump_accept_socket_reply( const struct accept_socket_reply *req )
1353 fprintf( stderr, " handle=%p", req->handle );
1356 static void dump_set_socket_event_request( const struct set_socket_event_request *req )
1358 fprintf( stderr, " handle=%p,", req->handle );
1359 fprintf( stderr, " mask=%08x,", req->mask );
1360 fprintf( stderr, " event=%p,", req->event );
1361 fprintf( stderr, " window=%p,", req->window );
1362 fprintf( stderr, " msg=%08x", req->msg );
1365 static void dump_get_socket_event_request( const struct get_socket_event_request *req )
1367 fprintf( stderr, " handle=%p,", req->handle );
1368 fprintf( stderr, " service=%d,", req->service );
1369 fprintf( stderr, " c_event=%p", req->c_event );
1372 static void dump_get_socket_event_reply( const struct get_socket_event_reply *req )
1374 fprintf( stderr, " mask=%08x,", req->mask );
1375 fprintf( stderr, " pmask=%08x,", req->pmask );
1376 fprintf( stderr, " state=%08x,", req->state );
1377 fprintf( stderr, " errors=" );
1378 dump_varargs_ints( cur_size );
1381 static void dump_enable_socket_event_request( const struct enable_socket_event_request *req )
1383 fprintf( stderr, " handle=%p,", req->handle );
1384 fprintf( stderr, " mask=%08x,", req->mask );
1385 fprintf( stderr, " sstate=%08x,", req->sstate );
1386 fprintf( stderr, " cstate=%08x", req->cstate );
1389 static void dump_set_socket_deferred_request( const struct set_socket_deferred_request *req )
1391 fprintf( stderr, " handle=%p,", req->handle );
1392 fprintf( stderr, " deferred=%p", req->deferred );
1395 static void dump_alloc_console_request( const struct alloc_console_request *req )
1397 fprintf( stderr, " access=%08x,", req->access );
1398 fprintf( stderr, " attributes=%08x,", req->attributes );
1399 fprintf( stderr, " pid=%04x", req->pid );
1402 static void dump_alloc_console_reply( const struct alloc_console_reply *req )
1404 fprintf( stderr, " handle_in=%p,", req->handle_in );
1405 fprintf( stderr, " event=%p", req->event );
1408 static void dump_free_console_request( const struct free_console_request *req )
1412 static void dump_get_console_renderer_events_request( const struct get_console_renderer_events_request *req )
1414 fprintf( stderr, " handle=%p", req->handle );
1417 static void dump_get_console_renderer_events_reply( const struct get_console_renderer_events_reply *req )
1419 fprintf( stderr, " data=" );
1420 dump_varargs_bytes( cur_size );
1423 static void dump_open_console_request( const struct open_console_request *req )
1425 fprintf( stderr, " from=%p,", req->from );
1426 fprintf( stderr, " access=%08x,", req->access );
1427 fprintf( stderr, " attributes=%08x,", req->attributes );
1428 fprintf( stderr, " share=%d", req->share );
1431 static void dump_open_console_reply( const struct open_console_reply *req )
1433 fprintf( stderr, " handle=%p", req->handle );
1436 static void dump_get_console_wait_event_request( const struct get_console_wait_event_request *req )
1440 static void dump_get_console_wait_event_reply( const struct get_console_wait_event_reply *req )
1442 fprintf( stderr, " handle=%p", req->handle );
1445 static void dump_get_console_mode_request( const struct get_console_mode_request *req )
1447 fprintf( stderr, " handle=%p", req->handle );
1450 static void dump_get_console_mode_reply( const struct get_console_mode_reply *req )
1452 fprintf( stderr, " mode=%d", req->mode );
1455 static void dump_set_console_mode_request( const struct set_console_mode_request *req )
1457 fprintf( stderr, " handle=%p,", req->handle );
1458 fprintf( stderr, " mode=%d", req->mode );
1461 static void dump_set_console_input_info_request( const struct set_console_input_info_request *req )
1463 fprintf( stderr, " handle=%p,", req->handle );
1464 fprintf( stderr, " mask=%d,", req->mask );
1465 fprintf( stderr, " active_sb=%p,", req->active_sb );
1466 fprintf( stderr, " history_mode=%d,", req->history_mode );
1467 fprintf( stderr, " history_size=%d,", req->history_size );
1468 fprintf( stderr, " edition_mode=%d,", req->edition_mode );
1469 fprintf( stderr, " title=" );
1470 dump_varargs_unicode_str( cur_size );
1473 static void dump_get_console_input_info_request( const struct get_console_input_info_request *req )
1475 fprintf( stderr, " handle=%p", req->handle );
1478 static void dump_get_console_input_info_reply( const struct get_console_input_info_reply *req )
1480 fprintf( stderr, " history_mode=%d,", req->history_mode );
1481 fprintf( stderr, " history_size=%d,", req->history_size );
1482 fprintf( stderr, " history_index=%d,", req->history_index );
1483 fprintf( stderr, " edition_mode=%d,", req->edition_mode );
1484 fprintf( stderr, " title=" );
1485 dump_varargs_unicode_str( cur_size );
1488 static void dump_append_console_input_history_request( const struct append_console_input_history_request *req )
1490 fprintf( stderr, " handle=%p,", req->handle );
1491 fprintf( stderr, " line=" );
1492 dump_varargs_unicode_str( cur_size );
1495 static void dump_get_console_input_history_request( const struct get_console_input_history_request *req )
1497 fprintf( stderr, " handle=%p,", req->handle );
1498 fprintf( stderr, " index=%d", req->index );
1501 static void dump_get_console_input_history_reply( const struct get_console_input_history_reply *req )
1503 fprintf( stderr, " total=%d,", req->total );
1504 fprintf( stderr, " line=" );
1505 dump_varargs_unicode_str( cur_size );
1508 static void dump_create_console_output_request( const struct create_console_output_request *req )
1510 fprintf( stderr, " handle_in=%p,", req->handle_in );
1511 fprintf( stderr, " access=%08x,", req->access );
1512 fprintf( stderr, " attributes=%08x,", req->attributes );
1513 fprintf( stderr, " share=%08x", req->share );
1516 static void dump_create_console_output_reply( const struct create_console_output_reply *req )
1518 fprintf( stderr, " handle_out=%p", req->handle_out );
1521 static void dump_set_console_output_info_request( const struct set_console_output_info_request *req )
1523 fprintf( stderr, " handle=%p,", req->handle );
1524 fprintf( stderr, " mask=%d,", req->mask );
1525 fprintf( stderr, " cursor_size=%d,", req->cursor_size );
1526 fprintf( stderr, " cursor_visible=%d,", req->cursor_visible );
1527 fprintf( stderr, " cursor_x=%d,", req->cursor_x );
1528 fprintf( stderr, " cursor_y=%d,", req->cursor_y );
1529 fprintf( stderr, " width=%d,", req->width );
1530 fprintf( stderr, " height=%d,", req->height );
1531 fprintf( stderr, " attr=%d,", req->attr );
1532 fprintf( stderr, " win_left=%d,", req->win_left );
1533 fprintf( stderr, " win_top=%d,", req->win_top );
1534 fprintf( stderr, " win_right=%d,", req->win_right );
1535 fprintf( stderr, " win_bottom=%d,", req->win_bottom );
1536 fprintf( stderr, " max_width=%d,", req->max_width );
1537 fprintf( stderr, " max_height=%d", req->max_height );
1540 static void dump_get_console_output_info_request( const struct get_console_output_info_request *req )
1542 fprintf( stderr, " handle=%p", req->handle );
1545 static void dump_get_console_output_info_reply( const struct get_console_output_info_reply *req )
1547 fprintf( stderr, " cursor_size=%d,", req->cursor_size );
1548 fprintf( stderr, " cursor_visible=%d,", req->cursor_visible );
1549 fprintf( stderr, " cursor_x=%d,", req->cursor_x );
1550 fprintf( stderr, " cursor_y=%d,", req->cursor_y );
1551 fprintf( stderr, " width=%d,", req->width );
1552 fprintf( stderr, " height=%d,", req->height );
1553 fprintf( stderr, " attr=%d,", req->attr );
1554 fprintf( stderr, " win_left=%d,", req->win_left );
1555 fprintf( stderr, " win_top=%d,", req->win_top );
1556 fprintf( stderr, " win_right=%d,", req->win_right );
1557 fprintf( stderr, " win_bottom=%d,", req->win_bottom );
1558 fprintf( stderr, " max_width=%d,", req->max_width );
1559 fprintf( stderr, " max_height=%d", req->max_height );
1562 static void dump_write_console_input_request( const struct write_console_input_request *req )
1564 fprintf( stderr, " handle=%p,", req->handle );
1565 fprintf( stderr, " rec=" );
1566 dump_varargs_input_records( cur_size );
1569 static void dump_write_console_input_reply( const struct write_console_input_reply *req )
1571 fprintf( stderr, " written=%d", req->written );
1574 static void dump_read_console_input_request( const struct read_console_input_request *req )
1576 fprintf( stderr, " handle=%p,", req->handle );
1577 fprintf( stderr, " flush=%d", req->flush );
1580 static void dump_read_console_input_reply( const struct read_console_input_reply *req )
1582 fprintf( stderr, " read=%d,", req->read );
1583 fprintf( stderr, " rec=" );
1584 dump_varargs_input_records( cur_size );
1587 static void dump_write_console_output_request( const struct write_console_output_request *req )
1589 fprintf( stderr, " handle=%p,", req->handle );
1590 fprintf( stderr, " x=%d,", req->x );
1591 fprintf( stderr, " y=%d,", req->y );
1592 fprintf( stderr, " mode=%d,", req->mode );
1593 fprintf( stderr, " wrap=%d,", req->wrap );
1594 fprintf( stderr, " data=" );
1595 dump_varargs_bytes( cur_size );
1598 static void dump_write_console_output_reply( const struct write_console_output_reply *req )
1600 fprintf( stderr, " written=%d,", req->written );
1601 fprintf( stderr, " width=%d,", req->width );
1602 fprintf( stderr, " height=%d", req->height );
1605 static void dump_fill_console_output_request( const struct fill_console_output_request *req )
1607 fprintf( stderr, " handle=%p,", req->handle );
1608 fprintf( stderr, " x=%d,", req->x );
1609 fprintf( stderr, " y=%d,", req->y );
1610 fprintf( stderr, " mode=%d,", req->mode );
1611 fprintf( stderr, " count=%d,", req->count );
1612 fprintf( stderr, " wrap=%d,", req->wrap );
1613 fprintf( stderr, " data=" );
1614 dump_char_info( &req->data );
1617 static void dump_fill_console_output_reply( const struct fill_console_output_reply *req )
1619 fprintf( stderr, " written=%d", req->written );
1622 static void dump_read_console_output_request( const struct read_console_output_request *req )
1624 fprintf( stderr, " handle=%p,", req->handle );
1625 fprintf( stderr, " x=%d,", req->x );
1626 fprintf( stderr, " y=%d,", req->y );
1627 fprintf( stderr, " mode=%d,", req->mode );
1628 fprintf( stderr, " wrap=%d", req->wrap );
1631 static void dump_read_console_output_reply( const struct read_console_output_reply *req )
1633 fprintf( stderr, " width=%d,", req->width );
1634 fprintf( stderr, " height=%d,", req->height );
1635 fprintf( stderr, " data=" );
1636 dump_varargs_bytes( cur_size );
1639 static void dump_move_console_output_request( const struct move_console_output_request *req )
1641 fprintf( stderr, " handle=%p,", req->handle );
1642 fprintf( stderr, " x_src=%d,", req->x_src );
1643 fprintf( stderr, " y_src=%d,", req->y_src );
1644 fprintf( stderr, " x_dst=%d,", req->x_dst );
1645 fprintf( stderr, " y_dst=%d,", req->y_dst );
1646 fprintf( stderr, " w=%d,", req->w );
1647 fprintf( stderr, " h=%d", req->h );
1650 static void dump_send_console_signal_request( const struct send_console_signal_request *req )
1652 fprintf( stderr, " signal=%d,", req->signal );
1653 fprintf( stderr, " group_id=%04x", req->group_id );
1656 static void dump_read_directory_changes_request( const struct read_directory_changes_request *req )
1658 fprintf( stderr, " filter=%08x,", req->filter );
1659 fprintf( stderr, " handle=%p,", req->handle );
1660 fprintf( stderr, " subtree=%d,", req->subtree );
1661 fprintf( stderr, " want_data=%d,", req->want_data );
1662 fprintf( stderr, " async=" );
1663 dump_async_data( &req->async );
1666 static void dump_read_change_request( const struct read_change_request *req )
1668 fprintf( stderr, " handle=%p", req->handle );
1671 static void dump_read_change_reply( const struct read_change_reply *req )
1673 fprintf( stderr, " action=%d,", req->action );
1674 fprintf( stderr, " name=" );
1675 dump_varargs_string( cur_size );
1678 static void dump_create_mapping_request( const struct create_mapping_request *req )
1680 fprintf( stderr, " access=%08x,", req->access );
1681 fprintf( stderr, " attributes=%08x,", req->attributes );
1682 fprintf( stderr, " rootdir=%p,", req->rootdir );
1683 fprintf( stderr, " size_high=%d,", req->size_high );
1684 fprintf( stderr, " size_low=%d,", req->size_low );
1685 fprintf( stderr, " protect=%d,", req->protect );
1686 fprintf( stderr, " file_handle=%p,", req->file_handle );
1687 fprintf( stderr, " name=" );
1688 dump_varargs_unicode_str( cur_size );
1691 static void dump_create_mapping_reply( const struct create_mapping_reply *req )
1693 fprintf( stderr, " handle=%p", req->handle );
1696 static void dump_open_mapping_request( const struct open_mapping_request *req )
1698 fprintf( stderr, " access=%08x,", req->access );
1699 fprintf( stderr, " attributes=%08x,", req->attributes );
1700 fprintf( stderr, " rootdir=%p,", req->rootdir );
1701 fprintf( stderr, " name=" );
1702 dump_varargs_unicode_str( cur_size );
1705 static void dump_open_mapping_reply( const struct open_mapping_reply *req )
1707 fprintf( stderr, " handle=%p", req->handle );
1710 static void dump_get_mapping_info_request( const struct get_mapping_info_request *req )
1712 fprintf( stderr, " handle=%p", req->handle );
1715 static void dump_get_mapping_info_reply( const struct get_mapping_info_reply *req )
1717 fprintf( stderr, " size_high=%d,", req->size_high );
1718 fprintf( stderr, " size_low=%d,", req->size_low );
1719 fprintf( stderr, " protect=%d,", req->protect );
1720 fprintf( stderr, " header_size=%d,", req->header_size );
1721 fprintf( stderr, " base=%p,", req->base );
1722 fprintf( stderr, " mapping=%p,", req->mapping );
1723 fprintf( stderr, " shared_file=%p,", req->shared_file );
1724 fprintf( stderr, " shared_size=%d", req->shared_size );
1727 static void dump_create_snapshot_request( const struct create_snapshot_request *req )
1729 fprintf( stderr, " attributes=%08x,", req->attributes );
1730 fprintf( stderr, " flags=%d,", req->flags );
1731 fprintf( stderr, " pid=%04x", req->pid );
1734 static void dump_create_snapshot_reply( const struct create_snapshot_reply *req )
1736 fprintf( stderr, " handle=%p", req->handle );
1739 static void dump_next_process_request( const struct next_process_request *req )
1741 fprintf( stderr, " handle=%p,", req->handle );
1742 fprintf( stderr, " reset=%d", req->reset );
1745 static void dump_next_process_reply( const struct next_process_reply *req )
1747 fprintf( stderr, " count=%d,", req->count );
1748 fprintf( stderr, " pid=%04x,", req->pid );
1749 fprintf( stderr, " ppid=%04x,", req->ppid );
1750 fprintf( stderr, " heap=%p,", req->heap );
1751 fprintf( stderr, " module=%p,", req->module );
1752 fprintf( stderr, " threads=%d,", req->threads );
1753 fprintf( stderr, " priority=%d,", req->priority );
1754 fprintf( stderr, " handles=%d,", req->handles );
1755 fprintf( stderr, " filename=" );
1756 dump_varargs_unicode_str( cur_size );
1759 static void dump_next_thread_request( const struct next_thread_request *req )
1761 fprintf( stderr, " handle=%p,", req->handle );
1762 fprintf( stderr, " reset=%d", req->reset );
1765 static void dump_next_thread_reply( const struct next_thread_reply *req )
1767 fprintf( stderr, " count=%d,", req->count );
1768 fprintf( stderr, " pid=%04x,", req->pid );
1769 fprintf( stderr, " tid=%04x,", req->tid );
1770 fprintf( stderr, " base_pri=%d,", req->base_pri );
1771 fprintf( stderr, " delta_pri=%d", req->delta_pri );
1774 static void dump_next_module_request( const struct next_module_request *req )
1776 fprintf( stderr, " handle=%p,", req->handle );
1777 fprintf( stderr, " reset=%d", req->reset );
1780 static void dump_next_module_reply( const struct next_module_reply *req )
1782 fprintf( stderr, " pid=%04x,", req->pid );
1783 fprintf( stderr, " base=%p,", req->base );
1784 fprintf( stderr, " size=%lu,", (unsigned long)req->size );
1785 fprintf( stderr, " filename=" );
1786 dump_varargs_unicode_str( cur_size );
1789 static void dump_wait_debug_event_request( const struct wait_debug_event_request *req )
1791 fprintf( stderr, " get_handle=%d", req->get_handle );
1794 static void dump_wait_debug_event_reply( const struct wait_debug_event_reply *req )
1796 fprintf( stderr, " pid=%04x,", req->pid );
1797 fprintf( stderr, " tid=%04x,", req->tid );
1798 fprintf( stderr, " wait=%p,", req->wait );
1799 fprintf( stderr, " event=" );
1800 dump_varargs_debug_event( cur_size );
1803 static void dump_queue_exception_event_request( const struct queue_exception_event_request *req )
1805 fprintf( stderr, " first=%d,", req->first );
1806 fprintf( stderr, " record=" );
1807 dump_varargs_exc_event( cur_size );
1810 static void dump_queue_exception_event_reply( const struct queue_exception_event_reply *req )
1812 fprintf( stderr, " handle=%p", req->handle );
1815 static void dump_get_exception_status_request( const struct get_exception_status_request *req )
1817 fprintf( stderr, " handle=%p", req->handle );
1820 static void dump_get_exception_status_reply( const struct get_exception_status_reply *req )
1822 fprintf( stderr, " context=" );
1823 dump_varargs_context( cur_size );
1826 static void dump_output_debug_string_request( const struct output_debug_string_request *req )
1828 fprintf( stderr, " string=%p,", req->string );
1829 fprintf( stderr, " unicode=%d,", req->unicode );
1830 fprintf( stderr, " length=%d", req->length );
1833 static void dump_continue_debug_event_request( const struct continue_debug_event_request *req )
1835 fprintf( stderr, " pid=%04x,", req->pid );
1836 fprintf( stderr, " tid=%04x,", req->tid );
1837 fprintf( stderr, " status=%d", req->status );
1840 static void dump_debug_process_request( const struct debug_process_request *req )
1842 fprintf( stderr, " pid=%04x,", req->pid );
1843 fprintf( stderr, " attach=%d", req->attach );
1846 static void dump_debug_break_request( const struct debug_break_request *req )
1848 fprintf( stderr, " handle=%p", req->handle );
1851 static void dump_debug_break_reply( const struct debug_break_reply *req )
1853 fprintf( stderr, " self=%d", req->self );
1856 static void dump_set_debugger_kill_on_exit_request( const struct set_debugger_kill_on_exit_request *req )
1858 fprintf( stderr, " kill_on_exit=%d", req->kill_on_exit );
1861 static void dump_read_process_memory_request( const struct read_process_memory_request *req )
1863 fprintf( stderr, " handle=%p,", req->handle );
1864 fprintf( stderr, " addr=%p", req->addr );
1867 static void dump_read_process_memory_reply( const struct read_process_memory_reply *req )
1869 fprintf( stderr, " data=" );
1870 dump_varargs_bytes( cur_size );
1873 static void dump_write_process_memory_request( const struct write_process_memory_request *req )
1875 fprintf( stderr, " handle=%p,", req->handle );
1876 fprintf( stderr, " addr=%p,", req->addr );
1877 fprintf( stderr, " data=" );
1878 dump_varargs_bytes( cur_size );
1881 static void dump_create_key_request( const struct create_key_request *req )
1883 fprintf( stderr, " parent=%p,", req->parent );
1884 fprintf( stderr, " access=%08x,", req->access );
1885 fprintf( stderr, " attributes=%08x,", req->attributes );
1886 fprintf( stderr, " options=%08x,", req->options );
1887 fprintf( stderr, " modif=%ld,", (long)req->modif );
1888 fprintf( stderr, " namelen=%u,", req->namelen );
1889 fprintf( stderr, " name=" );
1890 dump_varargs_unicode_str( min(cur_size,req->namelen) );
1891 fputc( ',', stderr );
1892 fprintf( stderr, " class=" );
1893 dump_varargs_unicode_str( cur_size );
1896 static void dump_create_key_reply( const struct create_key_reply *req )
1898 fprintf( stderr, " hkey=%p,", req->hkey );
1899 fprintf( stderr, " created=%d", req->created );
1902 static void dump_open_key_request( const struct open_key_request *req )
1904 fprintf( stderr, " parent=%p,", req->parent );
1905 fprintf( stderr, " access=%08x,", req->access );
1906 fprintf( stderr, " attributes=%08x,", req->attributes );
1907 fprintf( stderr, " name=" );
1908 dump_varargs_unicode_str( cur_size );
1911 static void dump_open_key_reply( const struct open_key_reply *req )
1913 fprintf( stderr, " hkey=%p", req->hkey );
1916 static void dump_delete_key_request( const struct delete_key_request *req )
1918 fprintf( stderr, " hkey=%p", req->hkey );
1921 static void dump_flush_key_request( const struct flush_key_request *req )
1923 fprintf( stderr, " hkey=%p", req->hkey );
1926 static void dump_enum_key_request( const struct enum_key_request *req )
1928 fprintf( stderr, " hkey=%p,", req->hkey );
1929 fprintf( stderr, " index=%d,", req->index );
1930 fprintf( stderr, " info_class=%d", req->info_class );
1933 static void dump_enum_key_reply( const struct enum_key_reply *req )
1935 fprintf( stderr, " subkeys=%d,", req->subkeys );
1936 fprintf( stderr, " max_subkey=%d,", req->max_subkey );
1937 fprintf( stderr, " max_class=%d,", req->max_class );
1938 fprintf( stderr, " values=%d,", req->values );
1939 fprintf( stderr, " max_value=%d,", req->max_value );
1940 fprintf( stderr, " max_data=%d,", req->max_data );
1941 fprintf( stderr, " modif=%ld,", (long)req->modif );
1942 fprintf( stderr, " total=%u,", req->total );
1943 fprintf( stderr, " namelen=%u,", req->namelen );
1944 fprintf( stderr, " name=" );
1945 dump_varargs_unicode_str( min(cur_size,req->namelen) );
1946 fputc( ',', stderr );
1947 fprintf( stderr, " class=" );
1948 dump_varargs_unicode_str( cur_size );
1951 static void dump_set_key_value_request( const struct set_key_value_request *req )
1953 fprintf( stderr, " hkey=%p,", req->hkey );
1954 fprintf( stderr, " type=%d,", req->type );
1955 fprintf( stderr, " namelen=%u,", req->namelen );
1956 fprintf( stderr, " name=" );
1957 dump_varargs_unicode_str( min(cur_size,req->namelen) );
1958 fputc( ',', stderr );
1959 fprintf( stderr, " data=" );
1960 dump_varargs_bytes( cur_size );
1963 static void dump_get_key_value_request( const struct get_key_value_request *req )
1965 fprintf( stderr, " hkey=%p,", req->hkey );
1966 fprintf( stderr, " name=" );
1967 dump_varargs_unicode_str( cur_size );
1970 static void dump_get_key_value_reply( const struct get_key_value_reply *req )
1972 fprintf( stderr, " type=%d,", req->type );
1973 fprintf( stderr, " total=%u,", req->total );
1974 fprintf( stderr, " data=" );
1975 dump_varargs_bytes( cur_size );
1978 static void dump_enum_key_value_request( const struct enum_key_value_request *req )
1980 fprintf( stderr, " hkey=%p,", req->hkey );
1981 fprintf( stderr, " index=%d,", req->index );
1982 fprintf( stderr, " info_class=%d", req->info_class );
1985 static void dump_enum_key_value_reply( const struct enum_key_value_reply *req )
1987 fprintf( stderr, " type=%d,", req->type );
1988 fprintf( stderr, " total=%u,", req->total );
1989 fprintf( stderr, " namelen=%u,", req->namelen );
1990 fprintf( stderr, " name=" );
1991 dump_varargs_unicode_str( min(cur_size,req->namelen) );
1992 fputc( ',', stderr );
1993 fprintf( stderr, " data=" );
1994 dump_varargs_bytes( cur_size );
1997 static void dump_delete_key_value_request( const struct delete_key_value_request *req )
1999 fprintf( stderr, " hkey=%p,", req->hkey );
2000 fprintf( stderr, " name=" );
2001 dump_varargs_unicode_str( cur_size );
2004 static void dump_load_registry_request( const struct load_registry_request *req )
2006 fprintf( stderr, " hkey=%p,", req->hkey );
2007 fprintf( stderr, " file=%p,", req->file );
2008 fprintf( stderr, " name=" );
2009 dump_varargs_unicode_str( cur_size );
2012 static void dump_unload_registry_request( const struct unload_registry_request *req )
2014 fprintf( stderr, " hkey=%p", req->hkey );
2017 static void dump_save_registry_request( const struct save_registry_request *req )
2019 fprintf( stderr, " hkey=%p,", req->hkey );
2020 fprintf( stderr, " file=%p", req->file );
2023 static void dump_set_registry_notification_request( const struct set_registry_notification_request *req )
2025 fprintf( stderr, " hkey=%p,", req->hkey );
2026 fprintf( stderr, " event=%p,", req->event );
2027 fprintf( stderr, " subtree=%d,", req->subtree );
2028 fprintf( stderr, " filter=%08x", req->filter );
2031 static void dump_create_timer_request( const struct create_timer_request *req )
2033 fprintf( stderr, " access=%08x,", req->access );
2034 fprintf( stderr, " attributes=%08x,", req->attributes );
2035 fprintf( stderr, " rootdir=%p,", req->rootdir );
2036 fprintf( stderr, " manual=%d,", req->manual );
2037 fprintf( stderr, " name=" );
2038 dump_varargs_unicode_str( cur_size );
2041 static void dump_create_timer_reply( const struct create_timer_reply *req )
2043 fprintf( stderr, " handle=%p", req->handle );
2046 static void dump_open_timer_request( const struct open_timer_request *req )
2048 fprintf( stderr, " access=%08x,", req->access );
2049 fprintf( stderr, " attributes=%08x,", req->attributes );
2050 fprintf( stderr, " rootdir=%p,", req->rootdir );
2051 fprintf( stderr, " name=" );
2052 dump_varargs_unicode_str( cur_size );
2055 static void dump_open_timer_reply( const struct open_timer_reply *req )
2057 fprintf( stderr, " handle=%p", req->handle );
2060 static void dump_set_timer_request( const struct set_timer_request *req )
2062 fprintf( stderr, " handle=%p,", req->handle );
2063 fprintf( stderr, " expire=" );
2064 dump_abs_time( &req->expire );
2065 fprintf( stderr, "," );
2066 fprintf( stderr, " period=%d,", req->period );
2067 fprintf( stderr, " callback=%p,", req->callback );
2068 fprintf( stderr, " arg=%p", req->arg );
2071 static void dump_set_timer_reply( const struct set_timer_reply *req )
2073 fprintf( stderr, " signaled=%d", req->signaled );
2076 static void dump_cancel_timer_request( const struct cancel_timer_request *req )
2078 fprintf( stderr, " handle=%p", req->handle );
2081 static void dump_cancel_timer_reply( const struct cancel_timer_reply *req )
2083 fprintf( stderr, " signaled=%d", req->signaled );
2086 static void dump_get_timer_info_request( const struct get_timer_info_request *req )
2088 fprintf( stderr, " handle=%p", req->handle );
2091 static void dump_get_timer_info_reply( const struct get_timer_info_reply *req )
2093 fprintf( stderr, " when=" );
2094 dump_abs_time( &req->when );
2095 fprintf( stderr, "," );
2096 fprintf( stderr, " signaled=%d", req->signaled );
2099 static void dump_get_thread_context_request( const struct get_thread_context_request *req )
2101 fprintf( stderr, " handle=%p,", req->handle );
2102 fprintf( stderr, " flags=%08x,", req->flags );
2103 fprintf( stderr, " suspend=%d", req->suspend );
2106 static void dump_get_thread_context_reply( const struct get_thread_context_reply *req )
2108 fprintf( stderr, " self=%d,", req->self );
2109 fprintf( stderr, " context=" );
2110 dump_varargs_context( cur_size );
2113 static void dump_set_thread_context_request( const struct set_thread_context_request *req )
2115 fprintf( stderr, " handle=%p,", req->handle );
2116 fprintf( stderr, " flags=%08x,", req->flags );
2117 fprintf( stderr, " suspend=%d,", req->suspend );
2118 fprintf( stderr, " context=" );
2119 dump_varargs_context( cur_size );
2122 static void dump_set_thread_context_reply( const struct set_thread_context_reply *req )
2124 fprintf( stderr, " self=%d", req->self );
2127 static void dump_get_selector_entry_request( const struct get_selector_entry_request *req )
2129 fprintf( stderr, " handle=%p,", req->handle );
2130 fprintf( stderr, " entry=%d", req->entry );
2133 static void dump_get_selector_entry_reply( const struct get_selector_entry_reply *req )
2135 fprintf( stderr, " base=%08x,", req->base );
2136 fprintf( stderr, " limit=%08x,", req->limit );
2137 fprintf( stderr, " flags=%02x", req->flags );
2140 static void dump_add_atom_request( const struct add_atom_request *req )
2142 fprintf( stderr, " table=%p,", req->table );
2143 fprintf( stderr, " name=" );
2144 dump_varargs_unicode_str( cur_size );
2147 static void dump_add_atom_reply( const struct add_atom_reply *req )
2149 fprintf( stderr, " atom=%04x", req->atom );
2152 static void dump_delete_atom_request( const struct delete_atom_request *req )
2154 fprintf( stderr, " table=%p,", req->table );
2155 fprintf( stderr, " atom=%04x", req->atom );
2158 static void dump_find_atom_request( const struct find_atom_request *req )
2160 fprintf( stderr, " table=%p,", req->table );
2161 fprintf( stderr, " name=" );
2162 dump_varargs_unicode_str( cur_size );
2165 static void dump_find_atom_reply( const struct find_atom_reply *req )
2167 fprintf( stderr, " atom=%04x", req->atom );
2170 static void dump_get_atom_information_request( const struct get_atom_information_request *req )
2172 fprintf( stderr, " table=%p,", req->table );
2173 fprintf( stderr, " atom=%04x", req->atom );
2176 static void dump_get_atom_information_reply( const struct get_atom_information_reply *req )
2178 fprintf( stderr, " count=%d,", req->count );
2179 fprintf( stderr, " pinned=%d,", req->pinned );
2180 fprintf( stderr, " total=%u,", req->total );
2181 fprintf( stderr, " name=" );
2182 dump_varargs_unicode_str( cur_size );
2185 static void dump_set_atom_information_request( const struct set_atom_information_request *req )
2187 fprintf( stderr, " table=%p,", req->table );
2188 fprintf( stderr, " atom=%04x,", req->atom );
2189 fprintf( stderr, " pinned=%d", req->pinned );
2192 static void dump_empty_atom_table_request( const struct empty_atom_table_request *req )
2194 fprintf( stderr, " table=%p,", req->table );
2195 fprintf( stderr, " if_pinned=%d", req->if_pinned );
2198 static void dump_init_atom_table_request( const struct init_atom_table_request *req )
2200 fprintf( stderr, " entries=%d", req->entries );
2203 static void dump_init_atom_table_reply( const struct init_atom_table_reply *req )
2205 fprintf( stderr, " table=%p", req->table );
2208 static void dump_get_msg_queue_request( const struct get_msg_queue_request *req )
2212 static void dump_get_msg_queue_reply( const struct get_msg_queue_reply *req )
2214 fprintf( stderr, " handle=%p", req->handle );
2217 static void dump_set_queue_fd_request( const struct set_queue_fd_request *req )
2219 fprintf( stderr, " handle=%p", req->handle );
2222 static void dump_set_queue_mask_request( const struct set_queue_mask_request *req )
2224 fprintf( stderr, " wake_mask=%08x,", req->wake_mask );
2225 fprintf( stderr, " changed_mask=%08x,", req->changed_mask );
2226 fprintf( stderr, " skip_wait=%d", req->skip_wait );
2229 static void dump_set_queue_mask_reply( const struct set_queue_mask_reply *req )
2231 fprintf( stderr, " wake_bits=%08x,", req->wake_bits );
2232 fprintf( stderr, " changed_bits=%08x", req->changed_bits );
2235 static void dump_get_queue_status_request( const struct get_queue_status_request *req )
2237 fprintf( stderr, " clear=%d", req->clear );
2240 static void dump_get_queue_status_reply( const struct get_queue_status_reply *req )
2242 fprintf( stderr, " wake_bits=%08x,", req->wake_bits );
2243 fprintf( stderr, " changed_bits=%08x", req->changed_bits );
2246 static void dump_get_process_idle_event_request( const struct get_process_idle_event_request *req )
2248 fprintf( stderr, " handle=%p", req->handle );
2251 static void dump_get_process_idle_event_reply( const struct get_process_idle_event_reply *req )
2253 fprintf( stderr, " event=%p", req->event );
2256 static void dump_send_message_request( const struct send_message_request *req )
2258 fprintf( stderr, " id=%04x,", req->id );
2259 fprintf( stderr, " type=%d,", req->type );
2260 fprintf( stderr, " flags=%d,", req->flags );
2261 fprintf( stderr, " win=%p,", req->win );
2262 fprintf( stderr, " msg=%08x,", req->msg );
2263 fprintf( stderr, " wparam=%lx,", req->wparam );
2264 fprintf( stderr, " lparam=%lx,", req->lparam );
2265 fprintf( stderr, " timeout=%d,", req->timeout );
2266 fprintf( stderr, " data=" );
2267 dump_varargs_message_data( cur_size );
2270 static void dump_post_quit_message_request( const struct post_quit_message_request *req )
2272 fprintf( stderr, " exit_code=%d", req->exit_code );
2275 static void dump_send_hardware_message_request( const struct send_hardware_message_request *req )
2277 fprintf( stderr, " id=%04x,", req->id );
2278 fprintf( stderr, " win=%p,", req->win );
2279 fprintf( stderr, " msg=%08x,", req->msg );
2280 fprintf( stderr, " time=%08x,", req->time );
2281 fprintf( stderr, " wparam=%lx,", req->wparam );
2282 fprintf( stderr, " lparam=%lx,", req->lparam );
2283 fprintf( stderr, " info=%lx,", req->info );
2284 fprintf( stderr, " x=%d,", req->x );
2285 fprintf( stderr, " y=%d", req->y );
2288 static void dump_get_message_request( const struct get_message_request *req )
2290 fprintf( stderr, " flags=%08x,", req->flags );
2291 fprintf( stderr, " get_win=%p,", req->get_win );
2292 fprintf( stderr, " get_first=%08x,", req->get_first );
2293 fprintf( stderr, " get_last=%08x,", req->get_last );
2294 fprintf( stderr, " hw_id=%08x", req->hw_id );
2297 static void dump_get_message_reply( const struct get_message_reply *req )
2299 fprintf( stderr, " win=%p,", req->win );
2300 fprintf( stderr, " type=%d,", req->type );
2301 fprintf( stderr, " msg=%08x,", req->msg );
2302 fprintf( stderr, " wparam=%lx,", req->wparam );
2303 fprintf( stderr, " lparam=%lx,", req->lparam );
2304 fprintf( stderr, " info=%lx,", req->info );
2305 fprintf( stderr, " x=%d,", req->x );
2306 fprintf( stderr, " y=%d,", req->y );
2307 fprintf( stderr, " time=%08x,", req->time );
2308 fprintf( stderr, " hw_id=%08x,", req->hw_id );
2309 fprintf( stderr, " active_hooks=%08x,", req->active_hooks );
2310 fprintf( stderr, " total=%u,", req->total );
2311 fprintf( stderr, " data=" );
2312 dump_varargs_message_data( cur_size );
2315 static void dump_reply_message_request( const struct reply_message_request *req )
2317 fprintf( stderr, " result=%08x,", req->result );
2318 fprintf( stderr, " remove=%d,", req->remove );
2319 fprintf( stderr, " data=" );
2320 dump_varargs_bytes( cur_size );
2323 static void dump_accept_hardware_message_request( const struct accept_hardware_message_request *req )
2325 fprintf( stderr, " hw_id=%08x,", req->hw_id );
2326 fprintf( stderr, " remove=%d,", req->remove );
2327 fprintf( stderr, " new_win=%p", req->new_win );
2330 static void dump_get_message_reply_request( const struct get_message_reply_request *req )
2332 fprintf( stderr, " cancel=%d", req->cancel );
2335 static void dump_get_message_reply_reply( const struct get_message_reply_reply *req )
2337 fprintf( stderr, " result=%08x,", req->result );
2338 fprintf( stderr, " data=" );
2339 dump_varargs_bytes( cur_size );
2342 static void dump_set_win_timer_request( const struct set_win_timer_request *req )
2344 fprintf( stderr, " win=%p,", req->win );
2345 fprintf( stderr, " msg=%08x,", req->msg );
2346 fprintf( stderr, " rate=%08x,", req->rate );
2347 fprintf( stderr, " id=%lx,", req->id );
2348 fprintf( stderr, " lparam=%lx", req->lparam );
2351 static void dump_set_win_timer_reply( const struct set_win_timer_reply *req )
2353 fprintf( stderr, " id=%lx", req->id );
2356 static void dump_kill_win_timer_request( const struct kill_win_timer_request *req )
2358 fprintf( stderr, " win=%p,", req->win );
2359 fprintf( stderr, " msg=%08x,", req->msg );
2360 fprintf( stderr, " id=%lx", req->id );
2363 static void dump_get_serial_info_request( const struct get_serial_info_request *req )
2365 fprintf( stderr, " handle=%p", req->handle );
2368 static void dump_get_serial_info_reply( const struct get_serial_info_reply *req )
2370 fprintf( stderr, " readinterval=%08x,", req->readinterval );
2371 fprintf( stderr, " readconst=%08x,", req->readconst );
2372 fprintf( stderr, " readmult=%08x,", req->readmult );
2373 fprintf( stderr, " writeconst=%08x,", req->writeconst );
2374 fprintf( stderr, " writemult=%08x,", req->writemult );
2375 fprintf( stderr, " eventmask=%08x", req->eventmask );
2378 static void dump_set_serial_info_request( const struct set_serial_info_request *req )
2380 fprintf( stderr, " handle=%p,", req->handle );
2381 fprintf( stderr, " flags=%d,", req->flags );
2382 fprintf( stderr, " readinterval=%08x,", req->readinterval );
2383 fprintf( stderr, " readconst=%08x,", req->readconst );
2384 fprintf( stderr, " readmult=%08x,", req->readmult );
2385 fprintf( stderr, " writeconst=%08x,", req->writeconst );
2386 fprintf( stderr, " writemult=%08x,", req->writemult );
2387 fprintf( stderr, " eventmask=%08x", req->eventmask );
2390 static void dump_register_async_request( const struct register_async_request *req )
2392 fprintf( stderr, " handle=%p,", req->handle );
2393 fprintf( stderr, " type=%d,", req->type );
2394 fprintf( stderr, " count=%d,", req->count );
2395 fprintf( stderr, " async=" );
2396 dump_async_data( &req->async );
2399 static void dump_cancel_async_request( const struct cancel_async_request *req )
2401 fprintf( stderr, " handle=%p", req->handle );
2404 static void dump_create_named_pipe_request( const struct create_named_pipe_request *req )
2406 fprintf( stderr, " access=%08x,", req->access );
2407 fprintf( stderr, " attributes=%08x,", req->attributes );
2408 fprintf( stderr, " rootdir=%p,", req->rootdir );
2409 fprintf( stderr, " options=%08x,", req->options );
2410 fprintf( stderr, " flags=%08x,", req->flags );
2411 fprintf( stderr, " maxinstances=%08x,", req->maxinstances );
2412 fprintf( stderr, " outsize=%08x,", req->outsize );
2413 fprintf( stderr, " insize=%08x,", req->insize );
2414 fprintf( stderr, " timeout=%08x,", req->timeout );
2415 fprintf( stderr, " name=" );
2416 dump_varargs_unicode_str( cur_size );
2419 static void dump_create_named_pipe_reply( const struct create_named_pipe_reply *req )
2421 fprintf( stderr, " handle=%p", req->handle );
2424 static void dump_connect_named_pipe_request( const struct connect_named_pipe_request *req )
2426 fprintf( stderr, " handle=%p,", req->handle );
2427 fprintf( stderr, " async=" );
2428 dump_async_data( &req->async );
2431 static void dump_wait_named_pipe_request( const struct wait_named_pipe_request *req )
2433 fprintf( stderr, " handle=%p,", req->handle );
2434 fprintf( stderr, " async=" );
2435 dump_async_data( &req->async );
2436 fprintf( stderr, "," );
2437 fprintf( stderr, " timeout=%08x,", req->timeout );
2438 fprintf( stderr, " name=" );
2439 dump_varargs_unicode_str( cur_size );
2442 static void dump_disconnect_named_pipe_request( const struct disconnect_named_pipe_request *req )
2444 fprintf( stderr, " handle=%p", req->handle );
2447 static void dump_get_named_pipe_info_request( const struct get_named_pipe_info_request *req )
2449 fprintf( stderr, " handle=%p", req->handle );
2452 static void dump_get_named_pipe_info_reply( const struct get_named_pipe_info_reply *req )
2454 fprintf( stderr, " flags=%08x,", req->flags );
2455 fprintf( stderr, " maxinstances=%08x,", req->maxinstances );
2456 fprintf( stderr, " instances=%08x,", req->instances );
2457 fprintf( stderr, " outsize=%08x,", req->outsize );
2458 fprintf( stderr, " insize=%08x", req->insize );
2461 static void dump_create_window_request( const struct create_window_request *req )
2463 fprintf( stderr, " parent=%p,", req->parent );
2464 fprintf( stderr, " owner=%p,", req->owner );
2465 fprintf( stderr, " atom=%04x,", req->atom );
2466 fprintf( stderr, " instance=%p", req->instance );
2469 static void dump_create_window_reply( const struct create_window_reply *req )
2471 fprintf( stderr, " handle=%p,", req->handle );
2472 fprintf( stderr, " parent=%p,", req->parent );
2473 fprintf( stderr, " owner=%p,", req->owner );
2474 fprintf( stderr, " extra=%d,", req->extra );
2475 fprintf( stderr, " class_ptr=%p", req->class_ptr );
2478 static void dump_destroy_window_request( const struct destroy_window_request *req )
2480 fprintf( stderr, " handle=%p", req->handle );
2483 static void dump_get_desktop_window_request( const struct get_desktop_window_request *req )
2485 fprintf( stderr, " force=%d", req->force );
2488 static void dump_get_desktop_window_reply( const struct get_desktop_window_reply *req )
2490 fprintf( stderr, " handle=%p", req->handle );
2493 static void dump_set_window_owner_request( const struct set_window_owner_request *req )
2495 fprintf( stderr, " handle=%p,", req->handle );
2496 fprintf( stderr, " owner=%p", req->owner );
2499 static void dump_set_window_owner_reply( const struct set_window_owner_reply *req )
2501 fprintf( stderr, " full_owner=%p,", req->full_owner );
2502 fprintf( stderr, " prev_owner=%p", req->prev_owner );
2505 static void dump_get_window_info_request( const struct get_window_info_request *req )
2507 fprintf( stderr, " handle=%p", req->handle );
2510 static void dump_get_window_info_reply( const struct get_window_info_reply *req )
2512 fprintf( stderr, " full_handle=%p,", req->full_handle );
2513 fprintf( stderr, " last_active=%p,", req->last_active );
2514 fprintf( stderr, " pid=%04x,", req->pid );
2515 fprintf( stderr, " tid=%04x,", req->tid );
2516 fprintf( stderr, " atom=%04x,", req->atom );
2517 fprintf( stderr, " is_unicode=%d", req->is_unicode );
2520 static void dump_set_window_info_request( const struct set_window_info_request *req )
2522 fprintf( stderr, " flags=%08x,", req->flags );
2523 fprintf( stderr, " handle=%p,", req->handle );
2524 fprintf( stderr, " style=%08x,", req->style );
2525 fprintf( stderr, " ex_style=%08x,", req->ex_style );
2526 fprintf( stderr, " id=%08x,", req->id );
2527 fprintf( stderr, " is_unicode=%d,", req->is_unicode );
2528 fprintf( stderr, " instance=%p,", req->instance );
2529 fprintf( stderr, " user_data=%lx,", req->user_data );
2530 fprintf( stderr, " extra_offset=%d,", req->extra_offset );
2531 fprintf( stderr, " extra_size=%u,", req->extra_size );
2532 fprintf( stderr, " extra_value=%lx", req->extra_value );
2535 static void dump_set_window_info_reply( const struct set_window_info_reply *req )
2537 fprintf( stderr, " old_style=%08x,", req->old_style );
2538 fprintf( stderr, " old_ex_style=%08x,", req->old_ex_style );
2539 fprintf( stderr, " old_id=%08x,", req->old_id );
2540 fprintf( stderr, " old_instance=%p,", req->old_instance );
2541 fprintf( stderr, " old_user_data=%lx,", req->old_user_data );
2542 fprintf( stderr, " old_extra_value=%lx", req->old_extra_value );
2545 static void dump_set_parent_request( const struct set_parent_request *req )
2547 fprintf( stderr, " handle=%p,", req->handle );
2548 fprintf( stderr, " parent=%p", req->parent );
2551 static void dump_set_parent_reply( const struct set_parent_reply *req )
2553 fprintf( stderr, " old_parent=%p,", req->old_parent );
2554 fprintf( stderr, " full_parent=%p", req->full_parent );
2557 static void dump_get_window_parents_request( const struct get_window_parents_request *req )
2559 fprintf( stderr, " handle=%p", req->handle );
2562 static void dump_get_window_parents_reply( const struct get_window_parents_reply *req )
2564 fprintf( stderr, " count=%d,", req->count );
2565 fprintf( stderr, " parents=" );
2566 dump_varargs_user_handles( cur_size );
2569 static void dump_get_window_children_request( const struct get_window_children_request *req )
2571 fprintf( stderr, " parent=%p,", req->parent );
2572 fprintf( stderr, " atom=%04x,", req->atom );
2573 fprintf( stderr, " tid=%04x", req->tid );
2576 static void dump_get_window_children_reply( const struct get_window_children_reply *req )
2578 fprintf( stderr, " count=%d,", req->count );
2579 fprintf( stderr, " children=" );
2580 dump_varargs_user_handles( cur_size );
2583 static void dump_get_window_children_from_point_request( const struct get_window_children_from_point_request *req )
2585 fprintf( stderr, " parent=%p,", req->parent );
2586 fprintf( stderr, " x=%d,", req->x );
2587 fprintf( stderr, " y=%d", req->y );
2590 static void dump_get_window_children_from_point_reply( const struct get_window_children_from_point_reply *req )
2592 fprintf( stderr, " count=%d,", req->count );
2593 fprintf( stderr, " children=" );
2594 dump_varargs_user_handles( cur_size );
2597 static void dump_get_window_tree_request( const struct get_window_tree_request *req )
2599 fprintf( stderr, " handle=%p", req->handle );
2602 static void dump_get_window_tree_reply( const struct get_window_tree_reply *req )
2604 fprintf( stderr, " parent=%p,", req->parent );
2605 fprintf( stderr, " owner=%p,", req->owner );
2606 fprintf( stderr, " next_sibling=%p,", req->next_sibling );
2607 fprintf( stderr, " prev_sibling=%p,", req->prev_sibling );
2608 fprintf( stderr, " first_sibling=%p,", req->first_sibling );
2609 fprintf( stderr, " last_sibling=%p,", req->last_sibling );
2610 fprintf( stderr, " first_child=%p,", req->first_child );
2611 fprintf( stderr, " last_child=%p", req->last_child );
2614 static void dump_set_window_pos_request( const struct set_window_pos_request *req )
2616 fprintf( stderr, " flags=%08x,", req->flags );
2617 fprintf( stderr, " handle=%p,", req->handle );
2618 fprintf( stderr, " previous=%p,", req->previous );
2619 fprintf( stderr, " window=" );
2620 dump_rectangle( &req->window );
2621 fprintf( stderr, "," );
2622 fprintf( stderr, " client=" );
2623 dump_rectangle( &req->client );
2624 fprintf( stderr, "," );
2625 fprintf( stderr, " valid=" );
2626 dump_varargs_rectangles( cur_size );
2629 static void dump_set_window_pos_reply( const struct set_window_pos_reply *req )
2631 fprintf( stderr, " new_style=%08x", req->new_style );
2634 static void dump_get_window_rectangles_request( const struct get_window_rectangles_request *req )
2636 fprintf( stderr, " handle=%p", req->handle );
2639 static void dump_get_window_rectangles_reply( const struct get_window_rectangles_reply *req )
2641 fprintf( stderr, " window=" );
2642 dump_rectangle( &req->window );
2643 fprintf( stderr, "," );
2644 fprintf( stderr, " visible=" );
2645 dump_rectangle( &req->visible );
2646 fprintf( stderr, "," );
2647 fprintf( stderr, " client=" );
2648 dump_rectangle( &req->client );
2651 static void dump_get_window_text_request( const struct get_window_text_request *req )
2653 fprintf( stderr, " handle=%p", req->handle );
2656 static void dump_get_window_text_reply( const struct get_window_text_reply *req )
2658 fprintf( stderr, " text=" );
2659 dump_varargs_unicode_str( cur_size );
2662 static void dump_set_window_text_request( const struct set_window_text_request *req )
2664 fprintf( stderr, " handle=%p,", req->handle );
2665 fprintf( stderr, " text=" );
2666 dump_varargs_unicode_str( cur_size );
2669 static void dump_get_windows_offset_request( const struct get_windows_offset_request *req )
2671 fprintf( stderr, " from=%p,", req->from );
2672 fprintf( stderr, " to=%p", req->to );
2675 static void dump_get_windows_offset_reply( const struct get_windows_offset_reply *req )
2677 fprintf( stderr, " x=%d,", req->x );
2678 fprintf( stderr, " y=%d", req->y );
2681 static void dump_get_visible_region_request( const struct get_visible_region_request *req )
2683 fprintf( stderr, " window=%p,", req->window );
2684 fprintf( stderr, " flags=%08x", req->flags );
2687 static void dump_get_visible_region_reply( const struct get_visible_region_reply *req )
2689 fprintf( stderr, " top_win=%p,", req->top_win );
2690 fprintf( stderr, " top_rect=" );
2691 dump_rectangle( &req->top_rect );
2692 fprintf( stderr, "," );
2693 fprintf( stderr, " win_rect=" );
2694 dump_rectangle( &req->win_rect );
2695 fprintf( stderr, "," );
2696 fprintf( stderr, " total_size=%u,", req->total_size );
2697 fprintf( stderr, " region=" );
2698 dump_varargs_rectangles( cur_size );
2701 static void dump_get_window_region_request( const struct get_window_region_request *req )
2703 fprintf( stderr, " window=%p", req->window );
2706 static void dump_get_window_region_reply( const struct get_window_region_reply *req )
2708 fprintf( stderr, " total_size=%u,", req->total_size );
2709 fprintf( stderr, " region=" );
2710 dump_varargs_rectangles( cur_size );
2713 static void dump_set_window_region_request( const struct set_window_region_request *req )
2715 fprintf( stderr, " window=%p,", req->window );
2716 fprintf( stderr, " redraw=%d,", req->redraw );
2717 fprintf( stderr, " region=" );
2718 dump_varargs_rectangles( cur_size );
2721 static void dump_get_update_region_request( const struct get_update_region_request *req )
2723 fprintf( stderr, " window=%p,", req->window );
2724 fprintf( stderr, " from_child=%p,", req->from_child );
2725 fprintf( stderr, " flags=%08x", req->flags );
2728 static void dump_get_update_region_reply( const struct get_update_region_reply *req )
2730 fprintf( stderr, " child=%p,", req->child );
2731 fprintf( stderr, " flags=%08x,", req->flags );
2732 fprintf( stderr, " total_size=%u,", req->total_size );
2733 fprintf( stderr, " region=" );
2734 dump_varargs_rectangles( cur_size );
2737 static void dump_update_window_zorder_request( const struct update_window_zorder_request *req )
2739 fprintf( stderr, " window=%p,", req->window );
2740 fprintf( stderr, " rect=" );
2741 dump_rectangle( &req->rect );
2744 static void dump_redraw_window_request( const struct redraw_window_request *req )
2746 fprintf( stderr, " window=%p,", req->window );
2747 fprintf( stderr, " flags=%08x,", req->flags );
2748 fprintf( stderr, " region=" );
2749 dump_varargs_rectangles( cur_size );
2752 static void dump_set_window_property_request( const struct set_window_property_request *req )
2754 fprintf( stderr, " window=%p,", req->window );
2755 fprintf( stderr, " atom=%04x,", req->atom );
2756 fprintf( stderr, " handle=%p,", req->handle );
2757 fprintf( stderr, " name=" );
2758 dump_varargs_unicode_str( cur_size );
2761 static void dump_remove_window_property_request( const struct remove_window_property_request *req )
2763 fprintf( stderr, " window=%p,", req->window );
2764 fprintf( stderr, " atom=%04x,", req->atom );
2765 fprintf( stderr, " name=" );
2766 dump_varargs_unicode_str( cur_size );
2769 static void dump_remove_window_property_reply( const struct remove_window_property_reply *req )
2771 fprintf( stderr, " handle=%p", req->handle );
2774 static void dump_get_window_property_request( const struct get_window_property_request *req )
2776 fprintf( stderr, " window=%p,", req->window );
2777 fprintf( stderr, " atom=%04x,", req->atom );
2778 fprintf( stderr, " name=" );
2779 dump_varargs_unicode_str( cur_size );
2782 static void dump_get_window_property_reply( const struct get_window_property_reply *req )
2784 fprintf( stderr, " handle=%p", req->handle );
2787 static void dump_get_window_properties_request( const struct get_window_properties_request *req )
2789 fprintf( stderr, " window=%p", req->window );
2792 static void dump_get_window_properties_reply( const struct get_window_properties_reply *req )
2794 fprintf( stderr, " total=%d,", req->total );
2795 fprintf( stderr, " props=" );
2796 dump_varargs_properties( cur_size );
2799 static void dump_create_winstation_request( const struct create_winstation_request *req )
2801 fprintf( stderr, " flags=%08x,", req->flags );
2802 fprintf( stderr, " access=%08x,", req->access );
2803 fprintf( stderr, " attributes=%08x,", req->attributes );
2804 fprintf( stderr, " name=" );
2805 dump_varargs_unicode_str( cur_size );
2808 static void dump_create_winstation_reply( const struct create_winstation_reply *req )
2810 fprintf( stderr, " handle=%p", req->handle );
2813 static void dump_open_winstation_request( const struct open_winstation_request *req )
2815 fprintf( stderr, " access=%08x,", req->access );
2816 fprintf( stderr, " attributes=%08x,", req->attributes );
2817 fprintf( stderr, " name=" );
2818 dump_varargs_unicode_str( cur_size );
2821 static void dump_open_winstation_reply( const struct open_winstation_reply *req )
2823 fprintf( stderr, " handle=%p", req->handle );
2826 static void dump_close_winstation_request( const struct close_winstation_request *req )
2828 fprintf( stderr, " handle=%p", req->handle );
2831 static void dump_get_process_winstation_request( const struct get_process_winstation_request *req )
2835 static void dump_get_process_winstation_reply( const struct get_process_winstation_reply *req )
2837 fprintf( stderr, " handle=%p", req->handle );
2840 static void dump_set_process_winstation_request( const struct set_process_winstation_request *req )
2842 fprintf( stderr, " handle=%p", req->handle );
2845 static void dump_create_desktop_request( const struct create_desktop_request *req )
2847 fprintf( stderr, " flags=%08x,", req->flags );
2848 fprintf( stderr, " access=%08x,", req->access );
2849 fprintf( stderr, " attributes=%08x,", req->attributes );
2850 fprintf( stderr, " name=" );
2851 dump_varargs_unicode_str( cur_size );
2854 static void dump_create_desktop_reply( const struct create_desktop_reply *req )
2856 fprintf( stderr, " handle=%p", req->handle );
2859 static void dump_open_desktop_request( const struct open_desktop_request *req )
2861 fprintf( stderr, " flags=%08x,", req->flags );
2862 fprintf( stderr, " access=%08x,", req->access );
2863 fprintf( stderr, " attributes=%08x,", req->attributes );
2864 fprintf( stderr, " name=" );
2865 dump_varargs_unicode_str( cur_size );
2868 static void dump_open_desktop_reply( const struct open_desktop_reply *req )
2870 fprintf( stderr, " handle=%p", req->handle );
2873 static void dump_close_desktop_request( const struct close_desktop_request *req )
2875 fprintf( stderr, " handle=%p", req->handle );
2878 static void dump_get_thread_desktop_request( const struct get_thread_desktop_request *req )
2880 fprintf( stderr, " tid=%04x", req->tid );
2883 static void dump_get_thread_desktop_reply( const struct get_thread_desktop_reply *req )
2885 fprintf( stderr, " handle=%p", req->handle );
2888 static void dump_set_thread_desktop_request( const struct set_thread_desktop_request *req )
2890 fprintf( stderr, " handle=%p", req->handle );
2893 static void dump_set_user_object_info_request( const struct set_user_object_info_request *req )
2895 fprintf( stderr, " handle=%p,", req->handle );
2896 fprintf( stderr, " flags=%08x,", req->flags );
2897 fprintf( stderr, " obj_flags=%08x", req->obj_flags );
2900 static void dump_set_user_object_info_reply( const struct set_user_object_info_reply *req )
2902 fprintf( stderr, " is_desktop=%d,", req->is_desktop );
2903 fprintf( stderr, " old_obj_flags=%08x,", req->old_obj_flags );
2904 fprintf( stderr, " name=" );
2905 dump_varargs_unicode_str( cur_size );
2908 static void dump_attach_thread_input_request( const struct attach_thread_input_request *req )
2910 fprintf( stderr, " tid_from=%04x,", req->tid_from );
2911 fprintf( stderr, " tid_to=%04x,", req->tid_to );
2912 fprintf( stderr, " attach=%d", req->attach );
2915 static void dump_get_thread_input_request( const struct get_thread_input_request *req )
2917 fprintf( stderr, " tid=%04x", req->tid );
2920 static void dump_get_thread_input_reply( const struct get_thread_input_reply *req )
2922 fprintf( stderr, " focus=%p,", req->focus );
2923 fprintf( stderr, " capture=%p,", req->capture );
2924 fprintf( stderr, " active=%p,", req->active );
2925 fprintf( stderr, " foreground=%p,", req->foreground );
2926 fprintf( stderr, " menu_owner=%p,", req->menu_owner );
2927 fprintf( stderr, " move_size=%p,", req->move_size );
2928 fprintf( stderr, " caret=%p,", req->caret );
2929 fprintf( stderr, " rect=" );
2930 dump_rectangle( &req->rect );
2933 static void dump_get_last_input_time_request( const struct get_last_input_time_request *req )
2937 static void dump_get_last_input_time_reply( const struct get_last_input_time_reply *req )
2939 fprintf( stderr, " time=%08x", req->time );
2942 static void dump_get_key_state_request( const struct get_key_state_request *req )
2944 fprintf( stderr, " tid=%04x,", req->tid );
2945 fprintf( stderr, " key=%d", req->key );
2948 static void dump_get_key_state_reply( const struct get_key_state_reply *req )
2950 fprintf( stderr, " state=%02x,", req->state );
2951 fprintf( stderr, " keystate=" );
2952 dump_varargs_bytes( cur_size );
2955 static void dump_set_key_state_request( const struct set_key_state_request *req )
2957 fprintf( stderr, " tid=%04x,", req->tid );
2958 fprintf( stderr, " keystate=" );
2959 dump_varargs_bytes( cur_size );
2962 static void dump_set_foreground_window_request( const struct set_foreground_window_request *req )
2964 fprintf( stderr, " handle=%p", req->handle );
2967 static void dump_set_foreground_window_reply( const struct set_foreground_window_reply *req )
2969 fprintf( stderr, " previous=%p,", req->previous );
2970 fprintf( stderr, " send_msg_old=%d,", req->send_msg_old );
2971 fprintf( stderr, " send_msg_new=%d", req->send_msg_new );
2974 static void dump_set_focus_window_request( const struct set_focus_window_request *req )
2976 fprintf( stderr, " handle=%p", req->handle );
2979 static void dump_set_focus_window_reply( const struct set_focus_window_reply *req )
2981 fprintf( stderr, " previous=%p", req->previous );
2984 static void dump_set_active_window_request( const struct set_active_window_request *req )
2986 fprintf( stderr, " handle=%p", req->handle );
2989 static void dump_set_active_window_reply( const struct set_active_window_reply *req )
2991 fprintf( stderr, " previous=%p", req->previous );
2994 static void dump_set_capture_window_request( const struct set_capture_window_request *req )
2996 fprintf( stderr, " handle=%p,", req->handle );
2997 fprintf( stderr, " flags=%08x", req->flags );
3000 static void dump_set_capture_window_reply( const struct set_capture_window_reply *req )
3002 fprintf( stderr, " previous=%p,", req->previous );
3003 fprintf( stderr, " full_handle=%p", req->full_handle );
3006 static void dump_set_caret_window_request( const struct set_caret_window_request *req )
3008 fprintf( stderr, " handle=%p,", req->handle );
3009 fprintf( stderr, " width=%d,", req->width );
3010 fprintf( stderr, " height=%d", req->height );
3013 static void dump_set_caret_window_reply( const struct set_caret_window_reply *req )
3015 fprintf( stderr, " previous=%p,", req->previous );
3016 fprintf( stderr, " old_rect=" );
3017 dump_rectangle( &req->old_rect );
3018 fprintf( stderr, "," );
3019 fprintf( stderr, " old_hide=%d,", req->old_hide );
3020 fprintf( stderr, " old_state=%d", req->old_state );
3023 static void dump_set_caret_info_request( const struct set_caret_info_request *req )
3025 fprintf( stderr, " flags=%08x,", req->flags );
3026 fprintf( stderr, " handle=%p,", req->handle );
3027 fprintf( stderr, " x=%d,", req->x );
3028 fprintf( stderr, " y=%d,", req->y );
3029 fprintf( stderr, " hide=%d,", req->hide );
3030 fprintf( stderr, " state=%d", req->state );
3033 static void dump_set_caret_info_reply( const struct set_caret_info_reply *req )
3035 fprintf( stderr, " full_handle=%p,", req->full_handle );
3036 fprintf( stderr, " old_rect=" );
3037 dump_rectangle( &req->old_rect );
3038 fprintf( stderr, "," );
3039 fprintf( stderr, " old_hide=%d,", req->old_hide );
3040 fprintf( stderr, " old_state=%d", req->old_state );
3043 static void dump_set_hook_request( const struct set_hook_request *req )
3045 fprintf( stderr, " id=%d,", req->id );
3046 fprintf( stderr, " pid=%04x,", req->pid );
3047 fprintf( stderr, " tid=%04x,", req->tid );
3048 fprintf( stderr, " event_min=%d,", req->event_min );
3049 fprintf( stderr, " event_max=%d,", req->event_max );
3050 fprintf( stderr, " flags=%d,", req->flags );
3051 fprintf( stderr, " proc=%p,", req->proc );
3052 fprintf( stderr, " unicode=%d,", req->unicode );
3053 fprintf( stderr, " module=" );
3054 dump_varargs_unicode_str( cur_size );
3057 static void dump_set_hook_reply( const struct set_hook_reply *req )
3059 fprintf( stderr, " handle=%p,", req->handle );
3060 fprintf( stderr, " active_hooks=%08x", req->active_hooks );
3063 static void dump_remove_hook_request( const struct remove_hook_request *req )
3065 fprintf( stderr, " handle=%p,", req->handle );
3066 fprintf( stderr, " id=%d,", req->id );
3067 fprintf( stderr, " proc=%p", req->proc );
3070 static void dump_remove_hook_reply( const struct remove_hook_reply *req )
3072 fprintf( stderr, " active_hooks=%08x", req->active_hooks );
3075 static void dump_start_hook_chain_request( const struct start_hook_chain_request *req )
3077 fprintf( stderr, " id=%d,", req->id );
3078 fprintf( stderr, " event=%d,", req->event );
3079 fprintf( stderr, " window=%p,", req->window );
3080 fprintf( stderr, " object_id=%d,", req->object_id );
3081 fprintf( stderr, " child_id=%d", req->child_id );
3084 static void dump_start_hook_chain_reply( const struct start_hook_chain_reply *req )
3086 fprintf( stderr, " handle=%p,", req->handle );
3087 fprintf( stderr, " pid=%04x,", req->pid );
3088 fprintf( stderr, " tid=%04x,", req->tid );
3089 fprintf( stderr, " proc=%p,", req->proc );
3090 fprintf( stderr, " unicode=%d,", req->unicode );
3091 fprintf( stderr, " active_hooks=%08x,", req->active_hooks );
3092 fprintf( stderr, " module=" );
3093 dump_varargs_unicode_str( cur_size );
3096 static void dump_finish_hook_chain_request( const struct finish_hook_chain_request *req )
3098 fprintf( stderr, " id=%d", req->id );
3101 static void dump_get_hook_info_request( const struct get_hook_info_request *req )
3103 fprintf( stderr, " handle=%p,", req->handle );
3104 fprintf( stderr, " get_next=%d,", req->get_next );
3105 fprintf( stderr, " event=%d,", req->event );
3106 fprintf( stderr, " window=%p,", req->window );
3107 fprintf( stderr, " object_id=%d,", req->object_id );
3108 fprintf( stderr, " child_id=%d", req->child_id );
3111 static void dump_get_hook_info_reply( const struct get_hook_info_reply *req )
3113 fprintf( stderr, " handle=%p,", req->handle );
3114 fprintf( stderr, " id=%d,", req->id );
3115 fprintf( stderr, " pid=%04x,", req->pid );
3116 fprintf( stderr, " tid=%04x,", req->tid );
3117 fprintf( stderr, " proc=%p,", req->proc );
3118 fprintf( stderr, " unicode=%d,", req->unicode );
3119 fprintf( stderr, " module=" );
3120 dump_varargs_unicode_str( cur_size );
3123 static void dump_create_class_request( const struct create_class_request *req )
3125 fprintf( stderr, " local=%d,", req->local );
3126 fprintf( stderr, " atom=%04x,", req->atom );
3127 fprintf( stderr, " style=%08x,", req->style );
3128 fprintf( stderr, " instance=%p,", req->instance );
3129 fprintf( stderr, " extra=%d,", req->extra );
3130 fprintf( stderr, " win_extra=%d,", req->win_extra );
3131 fprintf( stderr, " client_ptr=%p", req->client_ptr );
3134 static void dump_destroy_class_request( const struct destroy_class_request *req )
3136 fprintf( stderr, " atom=%04x,", req->atom );
3137 fprintf( stderr, " instance=%p", req->instance );
3140 static void dump_destroy_class_reply( const struct destroy_class_reply *req )
3142 fprintf( stderr, " client_ptr=%p", req->client_ptr );
3145 static void dump_set_class_info_request( const struct set_class_info_request *req )
3147 fprintf( stderr, " window=%p,", req->window );
3148 fprintf( stderr, " flags=%08x,", req->flags );
3149 fprintf( stderr, " atom=%04x,", req->atom );
3150 fprintf( stderr, " style=%08x,", req->style );
3151 fprintf( stderr, " win_extra=%d,", req->win_extra );
3152 fprintf( stderr, " instance=%p,", req->instance );
3153 fprintf( stderr, " extra_offset=%d,", req->extra_offset );
3154 fprintf( stderr, " extra_size=%u,", req->extra_size );
3155 fprintf( stderr, " extra_value=%lx", req->extra_value );
3158 static void dump_set_class_info_reply( const struct set_class_info_reply *req )
3160 fprintf( stderr, " old_atom=%04x,", req->old_atom );
3161 fprintf( stderr, " old_style=%08x,", req->old_style );
3162 fprintf( stderr, " old_extra=%d,", req->old_extra );
3163 fprintf( stderr, " old_win_extra=%d,", req->old_win_extra );
3164 fprintf( stderr, " old_instance=%p,", req->old_instance );
3165 fprintf( stderr, " old_extra_value=%lx", req->old_extra_value );
3168 static void dump_set_clipboard_info_request( const struct set_clipboard_info_request *req )
3170 fprintf( stderr, " flags=%08x,", req->flags );
3171 fprintf( stderr, " clipboard=%p,", req->clipboard );
3172 fprintf( stderr, " owner=%p,", req->owner );
3173 fprintf( stderr, " viewer=%p,", req->viewer );
3174 fprintf( stderr, " seqno=%08x", req->seqno );
3177 static void dump_set_clipboard_info_reply( const struct set_clipboard_info_reply *req )
3179 fprintf( stderr, " flags=%08x,", req->flags );
3180 fprintf( stderr, " old_clipboard=%p,", req->old_clipboard );
3181 fprintf( stderr, " old_owner=%p,", req->old_owner );
3182 fprintf( stderr, " old_viewer=%p,", req->old_viewer );
3183 fprintf( stderr, " seqno=%08x", req->seqno );
3186 static void dump_open_token_request( const struct open_token_request *req )
3188 fprintf( stderr, " handle=%p,", req->handle );
3189 fprintf( stderr, " access=%08x,", req->access );
3190 fprintf( stderr, " attributes=%08x,", req->attributes );
3191 fprintf( stderr, " flags=%08x", req->flags );
3194 static void dump_open_token_reply( const struct open_token_reply *req )
3196 fprintf( stderr, " token=%p", req->token );
3199 static void dump_set_global_windows_request( const struct set_global_windows_request *req )
3201 fprintf( stderr, " flags=%08x,", req->flags );
3202 fprintf( stderr, " shell_window=%p,", req->shell_window );
3203 fprintf( stderr, " shell_listview=%p,", req->shell_listview );
3204 fprintf( stderr, " progman_window=%p,", req->progman_window );
3205 fprintf( stderr, " taskman_window=%p", req->taskman_window );
3208 static void dump_set_global_windows_reply( const struct set_global_windows_reply *req )
3210 fprintf( stderr, " old_shell_window=%p,", req->old_shell_window );
3211 fprintf( stderr, " old_shell_listview=%p,", req->old_shell_listview );
3212 fprintf( stderr, " old_progman_window=%p,", req->old_progman_window );
3213 fprintf( stderr, " old_taskman_window=%p", req->old_taskman_window );
3216 static void dump_adjust_token_privileges_request( const struct adjust_token_privileges_request *req )
3218 fprintf( stderr, " handle=%p,", req->handle );
3219 fprintf( stderr, " disable_all=%d,", req->disable_all );
3220 fprintf( stderr, " get_modified_state=%d,", req->get_modified_state );
3221 fprintf( stderr, " privileges=" );
3222 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
3225 static void dump_adjust_token_privileges_reply( const struct adjust_token_privileges_reply *req )
3227 fprintf( stderr, " len=%08x,", req->len );
3228 fprintf( stderr, " privileges=" );
3229 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
3232 static void dump_get_token_privileges_request( const struct get_token_privileges_request *req )
3234 fprintf( stderr, " handle=%p", req->handle );
3237 static void dump_get_token_privileges_reply( const struct get_token_privileges_reply *req )
3239 fprintf( stderr, " len=%08x,", req->len );
3240 fprintf( stderr, " privileges=" );
3241 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
3244 static void dump_check_token_privileges_request( const struct check_token_privileges_request *req )
3246 fprintf( stderr, " handle=%p,", req->handle );
3247 fprintf( stderr, " all_required=%d,", req->all_required );
3248 fprintf( stderr, " privileges=" );
3249 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
3252 static void dump_check_token_privileges_reply( const struct check_token_privileges_reply *req )
3254 fprintf( stderr, " has_privileges=%d,", req->has_privileges );
3255 fprintf( stderr, " privileges=" );
3256 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
3259 static void dump_duplicate_token_request( const struct duplicate_token_request *req )
3261 fprintf( stderr, " handle=%p,", req->handle );
3262 fprintf( stderr, " access=%08x,", req->access );
3263 fprintf( stderr, " attributes=%08x,", req->attributes );
3264 fprintf( stderr, " primary=%d,", req->primary );
3265 fprintf( stderr, " impersonation_level=%d", req->impersonation_level );
3268 static void dump_duplicate_token_reply( const struct duplicate_token_reply *req )
3270 fprintf( stderr, " new_handle=%p", req->new_handle );
3273 static void dump_access_check_request( const struct access_check_request *req )
3275 fprintf( stderr, " handle=%p,", req->handle );
3276 fprintf( stderr, " desired_access=%08x,", req->desired_access );
3277 fprintf( stderr, " mapping_read=%08x,", req->mapping_read );
3278 fprintf( stderr, " mapping_write=%08x,", req->mapping_write );
3279 fprintf( stderr, " mapping_execute=%08x,", req->mapping_execute );
3280 fprintf( stderr, " mapping_all=%08x,", req->mapping_all );
3281 fprintf( stderr, " sd=" );
3282 dump_varargs_security_descriptor( cur_size );
3285 static void dump_access_check_reply( const struct access_check_reply *req )
3287 fprintf( stderr, " access_granted=%08x,", req->access_granted );
3288 fprintf( stderr, " access_status=%08x,", req->access_status );
3289 fprintf( stderr, " privileges_len=%08x,", req->privileges_len );
3290 fprintf( stderr, " privileges=" );
3291 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
3294 static void dump_get_token_user_request( const struct get_token_user_request *req )
3296 fprintf( stderr, " handle=%p", req->handle );
3299 static void dump_get_token_user_reply( const struct get_token_user_reply *req )
3301 fprintf( stderr, " user_len=%u,", req->user_len );
3302 fprintf( stderr, " user=" );
3303 dump_varargs_SID( cur_size );
3306 static void dump_get_token_groups_request( const struct get_token_groups_request *req )
3308 fprintf( stderr, " handle=%p", req->handle );
3311 static void dump_get_token_groups_reply( const struct get_token_groups_reply *req )
3313 fprintf( stderr, " user_len=%u,", req->user_len );
3314 fprintf( stderr, " user=" );
3315 dump_varargs_token_groups( cur_size );
3318 static void dump_set_security_object_request( const struct set_security_object_request *req )
3320 fprintf( stderr, " handle=%p,", req->handle );
3321 fprintf( stderr, " security_info=%08x,", req->security_info );
3322 fprintf( stderr, " sd=" );
3323 dump_varargs_security_descriptor( cur_size );
3326 static void dump_create_mailslot_request( const struct create_mailslot_request *req )
3328 fprintf( stderr, " access=%08x,", req->access );
3329 fprintf( stderr, " attributes=%08x,", req->attributes );
3330 fprintf( stderr, " rootdir=%p,", req->rootdir );
3331 fprintf( stderr, " max_msgsize=%08x,", req->max_msgsize );
3332 fprintf( stderr, " read_timeout=%d,", req->read_timeout );
3333 fprintf( stderr, " name=" );
3334 dump_varargs_unicode_str( cur_size );
3337 static void dump_create_mailslot_reply( const struct create_mailslot_reply *req )
3339 fprintf( stderr, " handle=%p", req->handle );
3342 static void dump_set_mailslot_info_request( const struct set_mailslot_info_request *req )
3344 fprintf( stderr, " handle=%p,", req->handle );
3345 fprintf( stderr, " flags=%08x,", req->flags );
3346 fprintf( stderr, " read_timeout=%d", req->read_timeout );
3349 static void dump_set_mailslot_info_reply( const struct set_mailslot_info_reply *req )
3351 fprintf( stderr, " max_msgsize=%08x,", req->max_msgsize );
3352 fprintf( stderr, " read_timeout=%d", req->read_timeout );
3355 static void dump_create_directory_request( const struct create_directory_request *req )
3357 fprintf( stderr, " access=%08x,", req->access );
3358 fprintf( stderr, " attributes=%08x,", req->attributes );
3359 fprintf( stderr, " rootdir=%p,", req->rootdir );
3360 fprintf( stderr, " directory_name=" );
3361 dump_varargs_unicode_str( cur_size );
3364 static void dump_create_directory_reply( const struct create_directory_reply *req )
3366 fprintf( stderr, " handle=%p", req->handle );
3369 static void dump_open_directory_request( const struct open_directory_request *req )
3371 fprintf( stderr, " access=%08x,", req->access );
3372 fprintf( stderr, " attributes=%08x,", req->attributes );
3373 fprintf( stderr, " rootdir=%p,", req->rootdir );
3374 fprintf( stderr, " directory_name=" );
3375 dump_varargs_unicode_str( cur_size );
3378 static void dump_open_directory_reply( const struct open_directory_reply *req )
3380 fprintf( stderr, " handle=%p", req->handle );
3383 static void dump_create_symlink_request( const struct create_symlink_request *req )
3385 fprintf( stderr, " access=%08x,", req->access );
3386 fprintf( stderr, " attributes=%08x,", req->attributes );
3387 fprintf( stderr, " rootdir=%p,", req->rootdir );
3388 fprintf( stderr, " name_len=%u,", req->name_len );
3389 fprintf( stderr, " name=" );
3390 dump_varargs_unicode_str( min(cur_size,req->name_len) );
3391 fputc( ',', stderr );
3392 fprintf( stderr, " target_name=" );
3393 dump_varargs_unicode_str( cur_size );
3396 static void dump_create_symlink_reply( const struct create_symlink_reply *req )
3398 fprintf( stderr, " handle=%p", req->handle );
3401 static void dump_open_symlink_request( const struct open_symlink_request *req )
3403 fprintf( stderr, " access=%08x,", req->access );
3404 fprintf( stderr, " attributes=%08x,", req->attributes );
3405 fprintf( stderr, " rootdir=%p,", req->rootdir );
3406 fprintf( stderr, " name=" );
3407 dump_varargs_unicode_str( cur_size );
3410 static void dump_open_symlink_reply( const struct open_symlink_reply *req )
3412 fprintf( stderr, " handle=%p", req->handle );
3415 static void dump_query_symlink_request( const struct query_symlink_request *req )
3417 fprintf( stderr, " handle=%p", req->handle );
3420 static void dump_query_symlink_reply( const struct query_symlink_reply *req )
3422 fprintf( stderr, " target_name=" );
3423 dump_varargs_unicode_str( cur_size );
3426 static void dump_get_object_info_request( const struct get_object_info_request *req )
3428 fprintf( stderr, " handle=%p", req->handle );
3431 static void dump_get_object_info_reply( const struct get_object_info_reply *req )
3433 fprintf( stderr, " access=%08x,", req->access );
3434 fprintf( stderr, " ref_count=%08x", req->ref_count );
3437 static void dump_get_token_impersonation_level_request( const struct get_token_impersonation_level_request *req )
3439 fprintf( stderr, " handle=%p", req->handle );
3442 static void dump_get_token_impersonation_level_reply( const struct get_token_impersonation_level_reply *req )
3444 fprintf( stderr, " impersonation_level=%d", req->impersonation_level );
3447 static void dump_allocate_locally_unique_id_request( const struct allocate_locally_unique_id_request *req )
3451 static void dump_allocate_locally_unique_id_reply( const struct allocate_locally_unique_id_reply *req )
3453 fprintf( stderr, " luid=" );
3454 dump_luid( &req->luid );
3457 static const dump_func req_dumpers[REQ_NB_REQUESTS] = {
3458 (dump_func)dump_new_process_request,
3459 (dump_func)dump_get_new_process_info_request,
3460 (dump_func)dump_new_thread_request,
3461 (dump_func)dump_get_startup_info_request,
3462 (dump_func)dump_init_process_done_request,
3463 (dump_func)dump_init_thread_request,
3464 (dump_func)dump_terminate_process_request,
3465 (dump_func)dump_terminate_thread_request,
3466 (dump_func)dump_get_process_info_request,
3467 (dump_func)dump_set_process_info_request,
3468 (dump_func)dump_get_thread_info_request,
3469 (dump_func)dump_set_thread_info_request,
3470 (dump_func)dump_get_dll_info_request,
3471 (dump_func)dump_suspend_thread_request,
3472 (dump_func)dump_resume_thread_request,
3473 (dump_func)dump_load_dll_request,
3474 (dump_func)dump_unload_dll_request,
3475 (dump_func)dump_queue_apc_request,
3476 (dump_func)dump_get_apc_request,
3477 (dump_func)dump_get_apc_result_request,
3478 (dump_func)dump_close_handle_request,
3479 (dump_func)dump_set_handle_info_request,
3480 (dump_func)dump_dup_handle_request,
3481 (dump_func)dump_open_process_request,
3482 (dump_func)dump_open_thread_request,
3483 (dump_func)dump_select_request,
3484 (dump_func)dump_create_event_request,
3485 (dump_func)dump_event_op_request,
3486 (dump_func)dump_open_event_request,
3487 (dump_func)dump_create_mutex_request,
3488 (dump_func)dump_release_mutex_request,
3489 (dump_func)dump_open_mutex_request,
3490 (dump_func)dump_create_semaphore_request,
3491 (dump_func)dump_release_semaphore_request,
3492 (dump_func)dump_open_semaphore_request,
3493 (dump_func)dump_create_file_request,
3494 (dump_func)dump_open_file_object_request,
3495 (dump_func)dump_alloc_file_handle_request,
3496 (dump_func)dump_get_handle_fd_request,
3497 (dump_func)dump_flush_file_request,
3498 (dump_func)dump_lock_file_request,
3499 (dump_func)dump_unlock_file_request,
3500 (dump_func)dump_unmount_device_request,
3501 (dump_func)dump_create_socket_request,
3502 (dump_func)dump_accept_socket_request,
3503 (dump_func)dump_set_socket_event_request,
3504 (dump_func)dump_get_socket_event_request,
3505 (dump_func)dump_enable_socket_event_request,
3506 (dump_func)dump_set_socket_deferred_request,
3507 (dump_func)dump_alloc_console_request,
3508 (dump_func)dump_free_console_request,
3509 (dump_func)dump_get_console_renderer_events_request,
3510 (dump_func)dump_open_console_request,
3511 (dump_func)dump_get_console_wait_event_request,
3512 (dump_func)dump_get_console_mode_request,
3513 (dump_func)dump_set_console_mode_request,
3514 (dump_func)dump_set_console_input_info_request,
3515 (dump_func)dump_get_console_input_info_request,
3516 (dump_func)dump_append_console_input_history_request,
3517 (dump_func)dump_get_console_input_history_request,
3518 (dump_func)dump_create_console_output_request,
3519 (dump_func)dump_set_console_output_info_request,
3520 (dump_func)dump_get_console_output_info_request,
3521 (dump_func)dump_write_console_input_request,
3522 (dump_func)dump_read_console_input_request,
3523 (dump_func)dump_write_console_output_request,
3524 (dump_func)dump_fill_console_output_request,
3525 (dump_func)dump_read_console_output_request,
3526 (dump_func)dump_move_console_output_request,
3527 (dump_func)dump_send_console_signal_request,
3528 (dump_func)dump_read_directory_changes_request,
3529 (dump_func)dump_read_change_request,
3530 (dump_func)dump_create_mapping_request,
3531 (dump_func)dump_open_mapping_request,
3532 (dump_func)dump_get_mapping_info_request,
3533 (dump_func)dump_create_snapshot_request,
3534 (dump_func)dump_next_process_request,
3535 (dump_func)dump_next_thread_request,
3536 (dump_func)dump_next_module_request,
3537 (dump_func)dump_wait_debug_event_request,
3538 (dump_func)dump_queue_exception_event_request,
3539 (dump_func)dump_get_exception_status_request,
3540 (dump_func)dump_output_debug_string_request,
3541 (dump_func)dump_continue_debug_event_request,
3542 (dump_func)dump_debug_process_request,
3543 (dump_func)dump_debug_break_request,
3544 (dump_func)dump_set_debugger_kill_on_exit_request,
3545 (dump_func)dump_read_process_memory_request,
3546 (dump_func)dump_write_process_memory_request,
3547 (dump_func)dump_create_key_request,
3548 (dump_func)dump_open_key_request,
3549 (dump_func)dump_delete_key_request,
3550 (dump_func)dump_flush_key_request,
3551 (dump_func)dump_enum_key_request,
3552 (dump_func)dump_set_key_value_request,
3553 (dump_func)dump_get_key_value_request,
3554 (dump_func)dump_enum_key_value_request,
3555 (dump_func)dump_delete_key_value_request,
3556 (dump_func)dump_load_registry_request,
3557 (dump_func)dump_unload_registry_request,
3558 (dump_func)dump_save_registry_request,
3559 (dump_func)dump_set_registry_notification_request,
3560 (dump_func)dump_create_timer_request,
3561 (dump_func)dump_open_timer_request,
3562 (dump_func)dump_set_timer_request,
3563 (dump_func)dump_cancel_timer_request,
3564 (dump_func)dump_get_timer_info_request,
3565 (dump_func)dump_get_thread_context_request,
3566 (dump_func)dump_set_thread_context_request,
3567 (dump_func)dump_get_selector_entry_request,
3568 (dump_func)dump_add_atom_request,
3569 (dump_func)dump_delete_atom_request,
3570 (dump_func)dump_find_atom_request,
3571 (dump_func)dump_get_atom_information_request,
3572 (dump_func)dump_set_atom_information_request,
3573 (dump_func)dump_empty_atom_table_request,
3574 (dump_func)dump_init_atom_table_request,
3575 (dump_func)dump_get_msg_queue_request,
3576 (dump_func)dump_set_queue_fd_request,
3577 (dump_func)dump_set_queue_mask_request,
3578 (dump_func)dump_get_queue_status_request,
3579 (dump_func)dump_get_process_idle_event_request,
3580 (dump_func)dump_send_message_request,
3581 (dump_func)dump_post_quit_message_request,
3582 (dump_func)dump_send_hardware_message_request,
3583 (dump_func)dump_get_message_request,
3584 (dump_func)dump_reply_message_request,
3585 (dump_func)dump_accept_hardware_message_request,
3586 (dump_func)dump_get_message_reply_request,
3587 (dump_func)dump_set_win_timer_request,
3588 (dump_func)dump_kill_win_timer_request,
3589 (dump_func)dump_get_serial_info_request,
3590 (dump_func)dump_set_serial_info_request,
3591 (dump_func)dump_register_async_request,
3592 (dump_func)dump_cancel_async_request,
3593 (dump_func)dump_create_named_pipe_request,
3594 (dump_func)dump_connect_named_pipe_request,
3595 (dump_func)dump_wait_named_pipe_request,
3596 (dump_func)dump_disconnect_named_pipe_request,
3597 (dump_func)dump_get_named_pipe_info_request,
3598 (dump_func)dump_create_window_request,
3599 (dump_func)dump_destroy_window_request,
3600 (dump_func)dump_get_desktop_window_request,
3601 (dump_func)dump_set_window_owner_request,
3602 (dump_func)dump_get_window_info_request,
3603 (dump_func)dump_set_window_info_request,
3604 (dump_func)dump_set_parent_request,
3605 (dump_func)dump_get_window_parents_request,
3606 (dump_func)dump_get_window_children_request,
3607 (dump_func)dump_get_window_children_from_point_request,
3608 (dump_func)dump_get_window_tree_request,
3609 (dump_func)dump_set_window_pos_request,
3610 (dump_func)dump_get_window_rectangles_request,
3611 (dump_func)dump_get_window_text_request,
3612 (dump_func)dump_set_window_text_request,
3613 (dump_func)dump_get_windows_offset_request,
3614 (dump_func)dump_get_visible_region_request,
3615 (dump_func)dump_get_window_region_request,
3616 (dump_func)dump_set_window_region_request,
3617 (dump_func)dump_get_update_region_request,
3618 (dump_func)dump_update_window_zorder_request,
3619 (dump_func)dump_redraw_window_request,
3620 (dump_func)dump_set_window_property_request,
3621 (dump_func)dump_remove_window_property_request,
3622 (dump_func)dump_get_window_property_request,
3623 (dump_func)dump_get_window_properties_request,
3624 (dump_func)dump_create_winstation_request,
3625 (dump_func)dump_open_winstation_request,
3626 (dump_func)dump_close_winstation_request,
3627 (dump_func)dump_get_process_winstation_request,
3628 (dump_func)dump_set_process_winstation_request,
3629 (dump_func)dump_create_desktop_request,
3630 (dump_func)dump_open_desktop_request,
3631 (dump_func)dump_close_desktop_request,
3632 (dump_func)dump_get_thread_desktop_request,
3633 (dump_func)dump_set_thread_desktop_request,
3634 (dump_func)dump_set_user_object_info_request,
3635 (dump_func)dump_attach_thread_input_request,
3636 (dump_func)dump_get_thread_input_request,
3637 (dump_func)dump_get_last_input_time_request,
3638 (dump_func)dump_get_key_state_request,
3639 (dump_func)dump_set_key_state_request,
3640 (dump_func)dump_set_foreground_window_request,
3641 (dump_func)dump_set_focus_window_request,
3642 (dump_func)dump_set_active_window_request,
3643 (dump_func)dump_set_capture_window_request,
3644 (dump_func)dump_set_caret_window_request,
3645 (dump_func)dump_set_caret_info_request,
3646 (dump_func)dump_set_hook_request,
3647 (dump_func)dump_remove_hook_request,
3648 (dump_func)dump_start_hook_chain_request,
3649 (dump_func)dump_finish_hook_chain_request,
3650 (dump_func)dump_get_hook_info_request,
3651 (dump_func)dump_create_class_request,
3652 (dump_func)dump_destroy_class_request,
3653 (dump_func)dump_set_class_info_request,
3654 (dump_func)dump_set_clipboard_info_request,
3655 (dump_func)dump_open_token_request,
3656 (dump_func)dump_set_global_windows_request,
3657 (dump_func)dump_adjust_token_privileges_request,
3658 (dump_func)dump_get_token_privileges_request,
3659 (dump_func)dump_check_token_privileges_request,
3660 (dump_func)dump_duplicate_token_request,
3661 (dump_func)dump_access_check_request,
3662 (dump_func)dump_get_token_user_request,
3663 (dump_func)dump_get_token_groups_request,
3664 (dump_func)dump_set_security_object_request,
3665 (dump_func)dump_create_mailslot_request,
3666 (dump_func)dump_set_mailslot_info_request,
3667 (dump_func)dump_create_directory_request,
3668 (dump_func)dump_open_directory_request,
3669 (dump_func)dump_create_symlink_request,
3670 (dump_func)dump_open_symlink_request,
3671 (dump_func)dump_query_symlink_request,
3672 (dump_func)dump_get_object_info_request,
3673 (dump_func)dump_get_token_impersonation_level_request,
3674 (dump_func)dump_allocate_locally_unique_id_request,
3677 static const dump_func reply_dumpers[REQ_NB_REQUESTS] = {
3678 (dump_func)dump_new_process_reply,
3679 (dump_func)dump_get_new_process_info_reply,
3680 (dump_func)dump_new_thread_reply,
3681 (dump_func)dump_get_startup_info_reply,
3683 (dump_func)dump_init_thread_reply,
3684 (dump_func)dump_terminate_process_reply,
3685 (dump_func)dump_terminate_thread_reply,
3686 (dump_func)dump_get_process_info_reply,
3688 (dump_func)dump_get_thread_info_reply,
3690 (dump_func)dump_get_dll_info_reply,
3691 (dump_func)dump_suspend_thread_reply,
3692 (dump_func)dump_resume_thread_reply,
3695 (dump_func)dump_queue_apc_reply,
3696 (dump_func)dump_get_apc_reply,
3697 (dump_func)dump_get_apc_result_reply,
3699 (dump_func)dump_set_handle_info_reply,
3700 (dump_func)dump_dup_handle_reply,
3701 (dump_func)dump_open_process_reply,
3702 (dump_func)dump_open_thread_reply,
3704 (dump_func)dump_create_event_reply,
3706 (dump_func)dump_open_event_reply,
3707 (dump_func)dump_create_mutex_reply,
3708 (dump_func)dump_release_mutex_reply,
3709 (dump_func)dump_open_mutex_reply,
3710 (dump_func)dump_create_semaphore_reply,
3711 (dump_func)dump_release_semaphore_reply,
3712 (dump_func)dump_open_semaphore_reply,
3713 (dump_func)dump_create_file_reply,
3714 (dump_func)dump_open_file_object_reply,
3715 (dump_func)dump_alloc_file_handle_reply,
3716 (dump_func)dump_get_handle_fd_reply,
3717 (dump_func)dump_flush_file_reply,
3718 (dump_func)dump_lock_file_reply,
3721 (dump_func)dump_create_socket_reply,
3722 (dump_func)dump_accept_socket_reply,
3724 (dump_func)dump_get_socket_event_reply,
3727 (dump_func)dump_alloc_console_reply,
3729 (dump_func)dump_get_console_renderer_events_reply,
3730 (dump_func)dump_open_console_reply,
3731 (dump_func)dump_get_console_wait_event_reply,
3732 (dump_func)dump_get_console_mode_reply,
3735 (dump_func)dump_get_console_input_info_reply,
3737 (dump_func)dump_get_console_input_history_reply,
3738 (dump_func)dump_create_console_output_reply,
3740 (dump_func)dump_get_console_output_info_reply,
3741 (dump_func)dump_write_console_input_reply,
3742 (dump_func)dump_read_console_input_reply,
3743 (dump_func)dump_write_console_output_reply,
3744 (dump_func)dump_fill_console_output_reply,
3745 (dump_func)dump_read_console_output_reply,
3749 (dump_func)dump_read_change_reply,
3750 (dump_func)dump_create_mapping_reply,
3751 (dump_func)dump_open_mapping_reply,
3752 (dump_func)dump_get_mapping_info_reply,
3753 (dump_func)dump_create_snapshot_reply,
3754 (dump_func)dump_next_process_reply,
3755 (dump_func)dump_next_thread_reply,
3756 (dump_func)dump_next_module_reply,
3757 (dump_func)dump_wait_debug_event_reply,
3758 (dump_func)dump_queue_exception_event_reply,
3759 (dump_func)dump_get_exception_status_reply,
3763 (dump_func)dump_debug_break_reply,
3765 (dump_func)dump_read_process_memory_reply,
3767 (dump_func)dump_create_key_reply,
3768 (dump_func)dump_open_key_reply,
3771 (dump_func)dump_enum_key_reply,
3773 (dump_func)dump_get_key_value_reply,
3774 (dump_func)dump_enum_key_value_reply,
3780 (dump_func)dump_create_timer_reply,
3781 (dump_func)dump_open_timer_reply,
3782 (dump_func)dump_set_timer_reply,
3783 (dump_func)dump_cancel_timer_reply,
3784 (dump_func)dump_get_timer_info_reply,
3785 (dump_func)dump_get_thread_context_reply,
3786 (dump_func)dump_set_thread_context_reply,
3787 (dump_func)dump_get_selector_entry_reply,
3788 (dump_func)dump_add_atom_reply,
3790 (dump_func)dump_find_atom_reply,
3791 (dump_func)dump_get_atom_information_reply,
3794 (dump_func)dump_init_atom_table_reply,
3795 (dump_func)dump_get_msg_queue_reply,
3797 (dump_func)dump_set_queue_mask_reply,
3798 (dump_func)dump_get_queue_status_reply,
3799 (dump_func)dump_get_process_idle_event_reply,
3803 (dump_func)dump_get_message_reply,
3806 (dump_func)dump_get_message_reply_reply,
3807 (dump_func)dump_set_win_timer_reply,
3809 (dump_func)dump_get_serial_info_reply,
3813 (dump_func)dump_create_named_pipe_reply,
3817 (dump_func)dump_get_named_pipe_info_reply,
3818 (dump_func)dump_create_window_reply,
3820 (dump_func)dump_get_desktop_window_reply,
3821 (dump_func)dump_set_window_owner_reply,
3822 (dump_func)dump_get_window_info_reply,
3823 (dump_func)dump_set_window_info_reply,
3824 (dump_func)dump_set_parent_reply,
3825 (dump_func)dump_get_window_parents_reply,
3826 (dump_func)dump_get_window_children_reply,
3827 (dump_func)dump_get_window_children_from_point_reply,
3828 (dump_func)dump_get_window_tree_reply,
3829 (dump_func)dump_set_window_pos_reply,
3830 (dump_func)dump_get_window_rectangles_reply,
3831 (dump_func)dump_get_window_text_reply,
3833 (dump_func)dump_get_windows_offset_reply,
3834 (dump_func)dump_get_visible_region_reply,
3835 (dump_func)dump_get_window_region_reply,
3837 (dump_func)dump_get_update_region_reply,
3841 (dump_func)dump_remove_window_property_reply,
3842 (dump_func)dump_get_window_property_reply,
3843 (dump_func)dump_get_window_properties_reply,
3844 (dump_func)dump_create_winstation_reply,
3845 (dump_func)dump_open_winstation_reply,
3847 (dump_func)dump_get_process_winstation_reply,
3849 (dump_func)dump_create_desktop_reply,
3850 (dump_func)dump_open_desktop_reply,
3852 (dump_func)dump_get_thread_desktop_reply,
3854 (dump_func)dump_set_user_object_info_reply,
3856 (dump_func)dump_get_thread_input_reply,
3857 (dump_func)dump_get_last_input_time_reply,
3858 (dump_func)dump_get_key_state_reply,
3860 (dump_func)dump_set_foreground_window_reply,
3861 (dump_func)dump_set_focus_window_reply,
3862 (dump_func)dump_set_active_window_reply,
3863 (dump_func)dump_set_capture_window_reply,
3864 (dump_func)dump_set_caret_window_reply,
3865 (dump_func)dump_set_caret_info_reply,
3866 (dump_func)dump_set_hook_reply,
3867 (dump_func)dump_remove_hook_reply,
3868 (dump_func)dump_start_hook_chain_reply,
3870 (dump_func)dump_get_hook_info_reply,
3872 (dump_func)dump_destroy_class_reply,
3873 (dump_func)dump_set_class_info_reply,
3874 (dump_func)dump_set_clipboard_info_reply,
3875 (dump_func)dump_open_token_reply,
3876 (dump_func)dump_set_global_windows_reply,
3877 (dump_func)dump_adjust_token_privileges_reply,
3878 (dump_func)dump_get_token_privileges_reply,
3879 (dump_func)dump_check_token_privileges_reply,
3880 (dump_func)dump_duplicate_token_reply,
3881 (dump_func)dump_access_check_reply,
3882 (dump_func)dump_get_token_user_reply,
3883 (dump_func)dump_get_token_groups_reply,
3885 (dump_func)dump_create_mailslot_reply,
3886 (dump_func)dump_set_mailslot_info_reply,
3887 (dump_func)dump_create_directory_reply,
3888 (dump_func)dump_open_directory_reply,
3889 (dump_func)dump_create_symlink_reply,
3890 (dump_func)dump_open_symlink_reply,
3891 (dump_func)dump_query_symlink_reply,
3892 (dump_func)dump_get_object_info_reply,
3893 (dump_func)dump_get_token_impersonation_level_reply,
3894 (dump_func)dump_allocate_locally_unique_id_reply,
3897 static const char * const req_names[REQ_NB_REQUESTS] = {
3899 "get_new_process_info",
3902 "init_process_done",
3904 "terminate_process",
3931 "release_semaphore",
3935 "alloc_file_handle",
3945 "enable_socket_event",
3946 "set_socket_deferred",
3949 "get_console_renderer_events",
3951 "get_console_wait_event",
3954 "set_console_input_info",
3955 "get_console_input_info",
3956 "append_console_input_history",
3957 "get_console_input_history",
3958 "create_console_output",
3959 "set_console_output_info",
3960 "get_console_output_info",
3961 "write_console_input",
3962 "read_console_input",
3963 "write_console_output",
3964 "fill_console_output",
3965 "read_console_output",
3966 "move_console_output",
3967 "send_console_signal",
3968 "read_directory_changes",
3978 "queue_exception_event",
3979 "get_exception_status",
3980 "output_debug_string",
3981 "continue_debug_event",
3984 "set_debugger_kill_on_exit",
3985 "read_process_memory",
3986 "write_process_memory",
3999 "set_registry_notification",
4005 "get_thread_context",
4006 "set_thread_context",
4007 "get_selector_entry",
4011 "get_atom_information",
4012 "set_atom_information",
4019 "get_process_idle_event",
4021 "post_quit_message",
4022 "send_hardware_message",
4025 "accept_hardware_message",
4026 "get_message_reply",
4033 "create_named_pipe",
4034 "connect_named_pipe",
4036 "disconnect_named_pipe",
4037 "get_named_pipe_info",
4040 "get_desktop_window",
4045 "get_window_parents",
4046 "get_window_children",
4047 "get_window_children_from_point",
4050 "get_window_rectangles",
4053 "get_windows_offset",
4054 "get_visible_region",
4055 "get_window_region",
4056 "set_window_region",
4057 "get_update_region",
4058 "update_window_zorder",
4060 "set_window_property",
4061 "remove_window_property",
4062 "get_window_property",
4063 "get_window_properties",
4064 "create_winstation",
4067 "get_process_winstation",
4068 "set_process_winstation",
4072 "get_thread_desktop",
4073 "set_thread_desktop",
4074 "set_user_object_info",
4075 "attach_thread_input",
4077 "get_last_input_time",
4080 "set_foreground_window",
4082 "set_active_window",
4083 "set_capture_window",
4089 "finish_hook_chain",
4094 "set_clipboard_info",
4096 "set_global_windows",
4097 "adjust_token_privileges",
4098 "get_token_privileges",
4099 "check_token_privileges",
4104 "set_security_object",
4106 "set_mailslot_info",
4113 "get_token_impersonation_level",
4114 "allocate_locally_unique_id",
4123 { "ABANDONED_WAIT_0", STATUS_ABANDONED_WAIT_0 },
4124 { "ACCESS_DENIED", STATUS_ACCESS_DENIED },
4125 { "ACCESS_VIOLATION", STATUS_ACCESS_VIOLATION },
4126 { "ALERTED", STATUS_ALERTED },
4127 { "ALIAS_EXISTS", STATUS_ALIAS_EXISTS },
4128 { "BAD_DEVICE_TYPE", STATUS_BAD_DEVICE_TYPE },
4129 { "BAD_IMPERSONATION_LEVEL", STATUS_BAD_IMPERSONATION_LEVEL },
4130 { "BREAKPOINT", STATUS_BREAKPOINT },
4131 { "BUFFER_OVERFLOW", STATUS_BUFFER_OVERFLOW },
4132 { "BUFFER_TOO_SMALL", STATUS_BUFFER_TOO_SMALL },
4133 { "CANCELLED", STATUS_CANCELLED },
4134 { "CANT_OPEN_ANONYMOUS", STATUS_CANT_OPEN_ANONYMOUS },
4135 { "CHILD_MUST_BE_VOLATILE", STATUS_CHILD_MUST_BE_VOLATILE },
4136 { "DEVICE_BUSY", STATUS_DEVICE_BUSY },
4137 { "DIRECTORY_NOT_EMPTY", STATUS_DIRECTORY_NOT_EMPTY },
4138 { "DISK_FULL", STATUS_DISK_FULL },
4139 { "DLL_NOT_FOUND", STATUS_DLL_NOT_FOUND },
4140 { "ERROR_CLASS_ALREADY_EXISTS", 0xc0010000 | ERROR_CLASS_ALREADY_EXISTS },
4141 { "ERROR_CLASS_DOES_NOT_EXIST", 0xc0010000 | ERROR_CLASS_DOES_NOT_EXIST },
4142 { "ERROR_CLASS_HAS_WINDOWS", 0xc0010000 | ERROR_CLASS_HAS_WINDOWS },
4143 { "ERROR_CLIPBOARD_NOT_OPEN", 0xc0010000 | ERROR_CLIPBOARD_NOT_OPEN },
4144 { "ERROR_INVALID_INDEX", 0xc0010000 | ERROR_INVALID_INDEX },
4145 { "ERROR_INVALID_WINDOW_HANDLE", 0xc0010000 | ERROR_INVALID_WINDOW_HANDLE },
4146 { "FILE_IS_A_DIRECTORY", STATUS_FILE_IS_A_DIRECTORY },
4147 { "FILE_LOCK_CONFLICT", STATUS_FILE_LOCK_CONFLICT },
4148 { "GENERIC_NOT_MAPPED", STATUS_GENERIC_NOT_MAPPED },
4149 { "HANDLES_CLOSED", STATUS_HANDLES_CLOSED },
4150 { "HANDLE_NOT_CLOSABLE", STATUS_HANDLE_NOT_CLOSABLE },
4151 { "ILLEGAL_FUNCTION", STATUS_ILLEGAL_FUNCTION },
4152 { "INSTANCE_NOT_AVAILABLE", STATUS_INSTANCE_NOT_AVAILABLE },
4153 { "INVALID_CID", STATUS_INVALID_CID },
4154 { "INVALID_FILE_FOR_SECTION", STATUS_INVALID_FILE_FOR_SECTION },
4155 { "INVALID_HANDLE", STATUS_INVALID_HANDLE },
4156 { "INVALID_PARAMETER", STATUS_INVALID_PARAMETER },
4157 { "INVALID_SECURITY_DESCR", STATUS_INVALID_SECURITY_DESCR },
4158 { "IO_TIMEOUT", STATUS_IO_TIMEOUT },
4159 { "KEY_DELETED", STATUS_KEY_DELETED },
4160 { "MAPPED_FILE_SIZE_ZERO", STATUS_MAPPED_FILE_SIZE_ZERO },
4161 { "MEDIA_WRITE_PROTECTED", STATUS_MEDIA_WRITE_PROTECTED },
4162 { "MUTANT_NOT_OWNED", STATUS_MUTANT_NOT_OWNED },
4163 { "NAME_TOO_LONG", STATUS_NAME_TOO_LONG },
4164 { "NOT_ALL_ASSIGNED", STATUS_NOT_ALL_ASSIGNED },
4165 { "NOT_A_DIRECTORY", STATUS_NOT_A_DIRECTORY },
4166 { "NOT_IMPLEMENTED", STATUS_NOT_IMPLEMENTED },
4167 { "NOT_REGISTRY_FILE", STATUS_NOT_REGISTRY_FILE },
4168 { "NO_DATA_DETECTED", STATUS_NO_DATA_DETECTED },
4169 { "NO_IMPERSONATION_TOKEN", STATUS_NO_IMPERSONATION_TOKEN },
4170 { "NO_MEMORY", STATUS_NO_MEMORY },
4171 { "NO_MORE_ENTRIES", STATUS_NO_MORE_ENTRIES },
4172 { "NO_MORE_FILES", STATUS_NO_MORE_FILES },
4173 { "NO_SUCH_DEVICE", STATUS_NO_SUCH_DEVICE },
4174 { "NO_SUCH_FILE", STATUS_NO_SUCH_FILE },
4175 { "NO_TOKEN", STATUS_NO_TOKEN },
4176 { "OBJECT_NAME_COLLISION", STATUS_OBJECT_NAME_COLLISION },
4177 { "OBJECT_NAME_EXISTS", STATUS_OBJECT_NAME_EXISTS },
4178 { "OBJECT_NAME_INVALID", STATUS_OBJECT_NAME_INVALID },
4179 { "OBJECT_NAME_NOT_FOUND", STATUS_OBJECT_NAME_NOT_FOUND },
4180 { "OBJECT_PATH_INVALID", STATUS_OBJECT_PATH_INVALID },
4181 { "OBJECT_PATH_NOT_FOUND", STATUS_OBJECT_PATH_NOT_FOUND },
4182 { "OBJECT_PATH_SYNTAX_BAD", STATUS_OBJECT_PATH_SYNTAX_BAD },
4183 { "OBJECT_TYPE_MISMATCH", STATUS_OBJECT_TYPE_MISMATCH },
4184 { "PENDING", STATUS_PENDING },
4185 { "PIPE_BUSY", STATUS_PIPE_BUSY },
4186 { "PIPE_CONNECTED", STATUS_PIPE_CONNECTED },
4187 { "PIPE_DISCONNECTED", STATUS_PIPE_DISCONNECTED },
4188 { "PIPE_LISTENING", STATUS_PIPE_LISTENING },
4189 { "PIPE_NOT_AVAILABLE", STATUS_PIPE_NOT_AVAILABLE },
4190 { "PRIVILEGE_NOT_HELD", STATUS_PRIVILEGE_NOT_HELD },
4191 { "PROCESS_IS_TERMINATING", STATUS_PROCESS_IS_TERMINATING },
4192 { "SECTION_TOO_BIG", STATUS_SECTION_TOO_BIG },
4193 { "SEMAPHORE_LIMIT_EXCEEDED", STATUS_SEMAPHORE_LIMIT_EXCEEDED },
4194 { "SHARING_VIOLATION", STATUS_SHARING_VIOLATION },
4195 { "SUSPEND_COUNT_EXCEEDED", STATUS_SUSPEND_COUNT_EXCEEDED },
4196 { "THREAD_IS_TERMINATING", STATUS_THREAD_IS_TERMINATING },
4197 { "TIMEOUT", STATUS_TIMEOUT },
4198 { "TOO_MANY_OPENED_FILES", STATUS_TOO_MANY_OPENED_FILES },
4199 { "UNSUCCESSFUL", STATUS_UNSUCCESSFUL },
4200 { "USER_APC", STATUS_USER_APC },
4201 { "VOLUME_DISMOUNTED", STATUS_VOLUME_DISMOUNTED },
4202 { "WAS_LOCKED", STATUS_WAS_LOCKED },
4206 /* ### make_requests end ### */
4207 /* Everything above this line is generated automatically by tools/make_requests */
4209 static const char *get_status_name( unsigned int status )
4212 static char buffer[10];
4216 for (i = 0; status_names[i].name; i++)
4217 if (status_names[i].value == status) return status_names[i].name;
4219 sprintf( buffer, "%x", status );
4223 void trace_request(void)
4225 enum request req = current->req.request_header.req;
4226 if (req < REQ_NB_REQUESTS)
4228 fprintf( stderr, "%04x: %s(", current->id, req_names[req] );
4229 if (req_dumpers[req])
4231 cur_data = get_req_data();
4232 cur_size = get_req_data_size();
4233 req_dumpers[req]( ¤t->req );
4235 fprintf( stderr, " )\n" );
4237 else fprintf( stderr, "%04x: %d(?)\n", current->id, req );
4240 void trace_reply( enum request req, const union generic_reply *reply )
4242 if (req < REQ_NB_REQUESTS)
4244 fprintf( stderr, "%04x: %s() = %s",
4245 current->id, req_names[req], get_status_name(current->error) );
4246 if (reply_dumpers[req])
4248 fprintf( stderr, " {" );
4249 cur_data = current->reply_data;
4250 cur_size = reply->reply_header.reply_size;
4251 reply_dumpers[req]( reply );
4252 fprintf( stderr, " }" );
4254 fputc( '\n', stderr );
4256 else fprintf( stderr, "%04x: %d() = %s\n",
4257 current->id, req, get_status_name(current->error) );