2 * Server request tracing
4 * Copyright (C) 1999 Alexandre Julliard
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
22 #include "wine/port.h"
27 #include <sys/types.h>
34 #define WIN32_NO_STATUS
44 static const void *cur_data;
45 static data_size_t cur_size;
47 static const char *get_status_name( unsigned int status );
49 /* utility functions */
51 static inline void remove_data( data_size_t size )
53 cur_data = (const char *)cur_data + size;
57 static void dump_uints( const int *ptr, int len )
62 fprintf( stderr, "%08x", *ptr++ );
63 if (--len) fputc( ',', stderr );
68 static void dump_timeout( const timeout_t *time )
70 fprintf( stderr, get_timeout_str(*time) );
73 static void dump_file_pos( const file_pos_t *pos )
75 fprintf( stderr, "%x%08x", (unsigned int)(*pos >> 32), (unsigned int)*pos );
78 static void dump_rectangle( const rectangle_t *rect )
80 fprintf( stderr, "{%d,%d;%d,%d}",
81 rect->left, rect->top, rect->right, rect->bottom );
84 static void dump_char_info( const char_info_t *info )
86 fprintf( stderr, "{'" );
87 dump_strW( &info->ch, 1, stderr, "\'\'" );
88 fprintf( stderr, "',%04x}", info->attr );
91 static void dump_ioctl_code( const ioctl_code_t *code )
95 #define CASE(c) case c: fputs( #c, stderr ); break
96 CASE(FSCTL_DISMOUNT_VOLUME);
97 CASE(FSCTL_PIPE_DISCONNECT);
98 CASE(FSCTL_PIPE_LISTEN);
99 CASE(FSCTL_PIPE_WAIT);
100 default: fprintf( stderr, "%08x", *code ); break;
105 static void dump_apc_call( const apc_call_t *call )
107 fputc( '{', stderr );
111 fprintf( stderr, "APC_NONE" );
114 fprintf( stderr, "APC_USER,args={%lx,%lx,%lx}",
115 call->user.args[0], call->user.args[1], call->user.args[2] );
118 fprintf( stderr, "APC_TIMER,time=" );
119 dump_timeout( &call->timer.time );
120 fprintf( stderr, ",arg=%p", call->timer.arg );
123 fprintf( stderr, "APC_ASYNC_IO,func=%p,user=%p,sb=%p,status=%s",
124 call->async_io.func, call->async_io.user, call->async_io.sb,
125 get_status_name(call->async_io.status) );
127 case APC_VIRTUAL_ALLOC:
128 fprintf( stderr, "APC_VIRTUAL_ALLOC,addr=%p,size=%lu,zero_bits=%u,op_type=%x,prot=%x",
129 call->virtual_alloc.addr, call->virtual_alloc.size,
130 call->virtual_alloc.zero_bits, call->virtual_alloc.op_type,
131 call->virtual_alloc.prot );
133 case APC_VIRTUAL_FREE:
134 fprintf( stderr, "APC_VIRTUAL_FREE,addr=%p,size=%lu,op_type=%x",
135 call->virtual_free.addr, call->virtual_free.size,
136 call->virtual_free.op_type );
138 case APC_VIRTUAL_QUERY:
139 fprintf( stderr, "APC_VIRTUAL_QUERY,addr=%p", call->virtual_query.addr );
141 case APC_VIRTUAL_PROTECT:
142 fprintf( stderr, "APC_VIRTUAL_PROTECT,addr=%p,size=%lu,prot=%x",
143 call->virtual_protect.addr, call->virtual_protect.size,
144 call->virtual_protect.prot );
146 case APC_VIRTUAL_FLUSH:
147 fprintf( stderr, "APC_VIRTUAL_FLUSH,addr=%p,size=%lu",
148 call->virtual_flush.addr, call->virtual_flush.size );
150 case APC_VIRTUAL_LOCK:
151 fprintf( stderr, "APC_VIRTUAL_LOCK,addr=%p,size=%lu",
152 call->virtual_lock.addr, call->virtual_lock.size );
154 case APC_VIRTUAL_UNLOCK:
155 fprintf( stderr, "APC_VIRTUAL_UNLOCK,addr=%p,size=%lu",
156 call->virtual_unlock.addr, call->virtual_unlock.size );
159 fprintf( stderr, "APC_MAP_VIEW,handle=%p,addr=%p,size=%lu,offset=%x%08x,zero_bits=%u,alloc_type=%x,prot=%x",
160 call->map_view.handle, call->map_view.addr, call->map_view.size,
161 (unsigned int)(call->map_view.offset >> 32), (unsigned int)call->map_view.offset,
162 call->map_view.zero_bits, call->map_view.alloc_type, call->map_view.prot );
165 fprintf( stderr, "APC_UNMAP_VIEW,addr=%p", call->unmap_view.addr );
167 case APC_CREATE_THREAD:
168 fprintf( stderr, "APC_CREATE_THREAD,func=%p,arg=%p,reserve=%lx,commit=%lx,suspend=%u",
169 call->create_thread.func, call->create_thread.arg,
170 call->create_thread.reserve, call->create_thread.commit,
171 call->create_thread.suspend );
174 fprintf( stderr, "type=%u", call->type );
177 fputc( '}', stderr );
180 static void dump_apc_result( const apc_result_t *result )
182 fputc( '{', stderr );
188 fprintf( stderr, "APC_ASYNC_IO,status=%s",
189 get_status_name( result->async_io.status ) );
191 case APC_VIRTUAL_ALLOC:
192 fprintf( stderr, "APC_VIRTUAL_ALLOC,status=%s,addr=%p,size=%lu",
193 get_status_name( result->virtual_alloc.status ),
194 result->virtual_alloc.addr, result->virtual_alloc.size );
196 case APC_VIRTUAL_FREE:
197 fprintf( stderr, "APC_VIRTUAL_FREE,status=%s,addr=%p,size=%lu",
198 get_status_name( result->virtual_free.status ),
199 result->virtual_free.addr, result->virtual_free.size );
201 case APC_VIRTUAL_QUERY:
202 fprintf( stderr, "APC_VIRTUAL_QUERY,status=%s,base=%p,alloc_base=%p,size=%lu,state=%x,prot=%x,alloc_prot=%x,alloc_type=%x",
203 get_status_name( result->virtual_query.status ),
204 result->virtual_query.base, result->virtual_query.alloc_base,
205 result->virtual_query.size, result->virtual_query.state,
206 result->virtual_query.prot, result->virtual_query.alloc_prot,
207 result->virtual_query.alloc_type );
209 case APC_VIRTUAL_PROTECT:
210 fprintf( stderr, "APC_VIRTUAL_PROTECT,status=%s,addr=%p,size=%lu,prot=%x",
211 get_status_name( result->virtual_protect.status ),
212 result->virtual_protect.addr, result->virtual_protect.size,
213 result->virtual_protect.prot );
215 case APC_VIRTUAL_FLUSH:
216 fprintf( stderr, "APC_VIRTUAL_FLUSH,status=%s,addr=%p,size=%lu",
217 get_status_name( result->virtual_flush.status ),
218 result->virtual_flush.addr, result->virtual_flush.size );
220 case APC_VIRTUAL_LOCK:
221 fprintf( stderr, "APC_VIRTUAL_LOCK,status=%s,addr=%p,size=%lu",
222 get_status_name( result->virtual_lock.status ),
223 result->virtual_lock.addr, result->virtual_lock.size );
225 case APC_VIRTUAL_UNLOCK:
226 fprintf( stderr, "APC_VIRTUAL_UNLOCK,status=%s,addr=%p,size=%lu",
227 get_status_name( result->virtual_unlock.status ),
228 result->virtual_unlock.addr, result->virtual_unlock.size );
231 fprintf( stderr, "APC_MAP_VIEW,status=%s,addr=%p,size=%lu",
232 get_status_name( result->map_view.status ),
233 result->map_view.addr, result->map_view.size );
236 fprintf( stderr, "APC_UNMAP_VIEW,status=%s",
237 get_status_name( result->unmap_view.status ) );
239 case APC_CREATE_THREAD:
240 fprintf( stderr, "APC_CREATE_THREAD,status=%s,tid=%04x,handle=%p",
241 get_status_name( result->create_thread.status ),
242 result->create_thread.tid, result->create_thread.handle );
245 fprintf( stderr, "type=%u", result->type );
248 fputc( '}', stderr );
251 static void dump_async_data( const async_data_t *data )
253 fprintf( stderr, "{callback=%p,iosb=%p,arg=%p,apc=%p,event=%p}",
254 data->callback, data->iosb, data->arg, data->apc, data->event );
257 static void dump_luid( const luid_t *luid )
259 fprintf( stderr, "%d.%u", luid->high_part, luid->low_part );
262 static void dump_context( const CONTEXT *context )
265 fprintf( stderr, "{flags=%08x,eax=%08x,ebx=%08x,ecx=%08x,edx=%08x,esi=%08x,edi=%08x,"
266 "ebp=%08x,eip=%08x,esp=%08x,eflags=%08x,cs=%04x,ds=%04x,es=%04x,"
267 "fs=%04x,gs=%04x,dr0=%08x,dr1=%08x,dr2=%08x,dr3=%08x,dr6=%08x,dr7=%08x,",
268 context->ContextFlags, context->Eax, context->Ebx, context->Ecx, context->Edx,
269 context->Esi, context->Edi, context->Ebp, context->Eip, context->Esp, context->EFlags,
270 context->SegCs, context->SegDs, context->SegEs, context->SegFs, context->SegGs,
271 context->Dr0, context->Dr1, context->Dr2, context->Dr3, context->Dr6, context->Dr7 );
272 fprintf( stderr, "float=" );
273 dump_uints( (const int *)&context->FloatSave, sizeof(context->FloatSave) / sizeof(int) );
274 fprintf( stderr, "}" );
276 dump_uints( (const int *)context, sizeof(*context) / sizeof(int) );
280 static void dump_exc_record( const EXCEPTION_RECORD *rec )
283 fprintf( stderr, "{code=%x,flags=%x,rec=%p,addr=%p,params={",
284 rec->ExceptionCode, rec->ExceptionFlags, rec->ExceptionRecord,
285 rec->ExceptionAddress );
286 for (i = 0; i < min(rec->NumberParameters,EXCEPTION_MAXIMUM_PARAMETERS); i++)
288 if (i) fputc( ',', stderr );
289 fprintf( stderr, "%lx", rec->ExceptionInformation[i] );
291 fputc( '}', stderr );
294 static void dump_varargs_ints( data_size_t size )
296 const int *data = cur_data;
297 data_size_t len = size / sizeof(*data);
299 fputc( '{', stderr );
302 fprintf( stderr, "%d", *data++ );
303 if (--len) fputc( ',', stderr );
305 fputc( '}', stderr );
309 static void dump_varargs_apc_result( data_size_t size )
311 const apc_result_t *result = cur_data;
313 if (size >= sizeof(*result))
315 dump_apc_result( result );
316 size = sizeof(*result);
321 static void dump_varargs_handles( data_size_t size )
323 const obj_handle_t *data = cur_data;
324 data_size_t len = size / sizeof(*data);
326 fputc( '{', stderr );
329 fprintf( stderr, "%p", *data++ );
330 if (--len) fputc( ',', stderr );
332 fputc( '}', stderr );
336 static void dump_varargs_user_handles( data_size_t size )
338 const user_handle_t *data = cur_data;
339 data_size_t len = size / sizeof(*data);
341 fputc( '{', stderr );
344 fprintf( stderr, "%p", *data++ );
345 if (--len) fputc( ',', stderr );
347 fputc( '}', stderr );
351 static void dump_varargs_bytes( data_size_t size )
353 const unsigned char *data = cur_data;
354 data_size_t len = size;
356 fputc( '{', stderr );
359 fprintf( stderr, "%02x", *data++ );
360 if (--len) fputc( ',', stderr );
362 fputc( '}', stderr );
366 static void dump_varargs_string( data_size_t size )
368 fprintf( stderr, "\"%.*s\"", (int)size, (const char *)cur_data );
372 static void dump_varargs_unicode_str( data_size_t size )
374 fprintf( stderr, "L\"" );
375 dump_strW( cur_data, size / sizeof(WCHAR), stderr, "\"\"" );
376 fputc( '\"', stderr );
380 static void dump_varargs_context( data_size_t size )
384 fprintf( stderr, "{}" );
387 dump_context( cur_data );
391 static void dump_varargs_exc_event( data_size_t size )
393 const CONTEXT *ptr = cur_data;
397 fprintf( stderr, "{}" );
400 fprintf( stderr, "{context=" );
402 fprintf( stderr, ",rec=" );
403 dump_exc_record( (const EXCEPTION_RECORD *)(ptr + 1) );
404 fputc( '}', stderr );
408 static void dump_varargs_debug_event( data_size_t size )
410 const debug_event_t *event = cur_data;
414 fprintf( stderr, "{}" );
419 case EXCEPTION_DEBUG_EVENT:
420 fprintf( stderr, "{exception," );
421 dump_exc_record( &event->info.exception.record );
422 fprintf( stderr, ",first=%d}", event->info.exception.first );
424 case CREATE_THREAD_DEBUG_EVENT:
425 fprintf( stderr, "{create_thread,thread=%p,teb=%p,start=%p}",
426 event->info.create_thread.handle, event->info.create_thread.teb,
427 event->info.create_thread.start );
429 case CREATE_PROCESS_DEBUG_EVENT:
430 fprintf( stderr, "{create_process,file=%p,process=%p,thread=%p,base=%p,offset=%d,"
431 "size=%d,teb=%p,start=%p,name=%p,unicode=%d}",
432 event->info.create_process.file, event->info.create_process.process,
433 event->info.create_process.thread, event->info.create_process.base,
434 event->info.create_process.dbg_offset, event->info.create_process.dbg_size,
435 event->info.create_process.teb, event->info.create_process.start,
436 event->info.create_process.name, event->info.create_process.unicode );
438 case EXIT_THREAD_DEBUG_EVENT:
439 fprintf( stderr, "{exit_thread,code=%d}", event->info.exit.exit_code );
441 case EXIT_PROCESS_DEBUG_EVENT:
442 fprintf( stderr, "{exit_process,code=%d}", event->info.exit.exit_code );
444 case LOAD_DLL_DEBUG_EVENT:
445 fprintf( stderr, "{load_dll,file=%p,base=%p,offset=%d,size=%d,name=%p,unicode=%d}",
446 event->info.load_dll.handle, event->info.load_dll.base,
447 event->info.load_dll.dbg_offset, event->info.load_dll.dbg_size,
448 event->info.load_dll.name, event->info.load_dll.unicode );
450 case UNLOAD_DLL_DEBUG_EVENT:
451 fprintf( stderr, "{unload_dll,base=%p}", event->info.unload_dll.base );
453 case OUTPUT_DEBUG_STRING_EVENT:
454 fprintf( stderr, "{output_string,data=%p,unicode=%d,len=%d}",
455 event->info.output_string.string, event->info.output_string.unicode,
456 event->info.output_string.length );
459 fprintf( stderr, "{rip,err=%d,type=%d}",
460 event->info.rip_info.error, event->info.rip_info.type );
462 case 0: /* zero is the code returned on timeouts */
463 fprintf( stderr, "{}" );
466 fprintf( stderr, "{code=??? (%d)}", event->code );
472 /* dump a unicode string contained in a buffer; helper for dump_varargs_startup_info */
473 static void dump_inline_unicode_string( const UNICODE_STRING *str, const void *data, data_size_t size )
475 size_t length = str->Length;
476 size_t offset = (size_t)str->Buffer;
478 if (offset >= size) return;
479 if (offset + length > size) length = size - offset;
480 dump_strW( (const WCHAR *)data + offset/sizeof(WCHAR), length/sizeof(WCHAR), stderr, "\"\"" );
483 static void dump_varargs_startup_info( data_size_t size )
485 const RTL_USER_PROCESS_PARAMETERS *ptr = cur_data;
486 RTL_USER_PROCESS_PARAMETERS params;
488 if (size < sizeof(params.Size))
490 fprintf( stderr, "{}" );
493 if (size > ptr->Size) size = ptr->Size;
494 memset( ¶ms, 0, sizeof(params) );
495 memcpy( ¶ms, ptr, min( size, sizeof(params) ));
497 fprintf( stderr, "{AllocationSize=%x,", params.AllocationSize );
498 fprintf( stderr, "Size=%x,", params.Size );
499 fprintf( stderr, "Flags=%x,", params.Flags );
500 fprintf( stderr, "DebugFlags=%x,", params.DebugFlags );
501 fprintf( stderr, "ConsoleHandle=%p,", params.ConsoleHandle );
502 fprintf( stderr, "ConsoleFlags=%x,", params.ConsoleFlags );
503 fprintf( stderr, "hStdInput=%p,", params.hStdInput );
504 fprintf( stderr, "hStdOutput=%p,", params.hStdOutput );
505 fprintf( stderr, "hStdError=%p,", params.hStdError );
506 fprintf( stderr, "CurrentDirectory.Handle=%p,", params.CurrentDirectory.Handle );
507 fprintf( stderr, "dwX=%d,", params.dwX );
508 fprintf( stderr, "dwY=%d,", params.dwY );
509 fprintf( stderr, "dwXSize=%d,", params.dwXSize );
510 fprintf( stderr, "dwYSize=%d,", params.dwYSize );
511 fprintf( stderr, "dwXCountChars=%d,", params.dwXCountChars );
512 fprintf( stderr, "dwYCountChars=%d,", params.dwYCountChars );
513 fprintf( stderr, "dwFillAttribute=%x,", params.dwFillAttribute );
514 fprintf( stderr, "dwFlags=%x,", params.dwFlags );
515 fprintf( stderr, "wShowWindow=%x,", params.wShowWindow );
516 fprintf( stderr, "CurrentDirectory.DosPath=L\"" );
517 dump_inline_unicode_string( ¶ms.CurrentDirectory.DosPath, cur_data, size );
518 fprintf( stderr, "\",DllPath=L\"" );
519 dump_inline_unicode_string( ¶ms.DllPath, cur_data, size );
520 fprintf( stderr, "\",ImagePathName=L\"" );
521 dump_inline_unicode_string( ¶ms.ImagePathName, cur_data, size );
522 fprintf( stderr, "\",CommandLine=L\"" );
523 dump_inline_unicode_string( ¶ms.CommandLine, cur_data, size );
524 fprintf( stderr, "\",WindowTitle=L\"" );
525 dump_inline_unicode_string( ¶ms.WindowTitle, cur_data, size );
526 fprintf( stderr, "\",Desktop=L\"" );
527 dump_inline_unicode_string( ¶ms.Desktop, cur_data, size );
528 fprintf( stderr, "\",ShellInfo=L\"" );
529 dump_inline_unicode_string( ¶ms.ShellInfo, cur_data, size );
530 fprintf( stderr, "\",RuntimeInfo=L\"" );
531 dump_inline_unicode_string( ¶ms.RuntimeInfo, cur_data, size );
532 fprintf( stderr, "\"}" );
536 static void dump_varargs_input_records( data_size_t size )
538 const INPUT_RECORD *rec = cur_data;
539 data_size_t len = size / sizeof(*rec);
541 fputc( '{', stderr );
544 fprintf( stderr, "{%04x,...}", rec->EventType );
546 if (--len) fputc( ',', stderr );
548 fputc( '}', stderr );
552 static void dump_varargs_rectangles( data_size_t size )
554 const rectangle_t *rect = cur_data;
555 data_size_t len = size / sizeof(*rect);
557 fputc( '{', stderr );
560 dump_rectangle( rect++ );
561 if (--len) fputc( ',', stderr );
563 fputc( '}', stderr );
567 static void dump_varargs_message_data( data_size_t size )
569 /* FIXME: dump the structured data */
570 dump_varargs_bytes( size );
573 static void dump_varargs_properties( data_size_t size )
575 const property_data_t *prop = cur_data;
576 data_size_t len = size / sizeof(*prop);
578 fputc( '{', stderr );
581 fprintf( stderr, "{atom=%04x,str=%d,handle=%p}",
582 prop->atom, prop->string, prop->handle );
584 if (--len) fputc( ',', stderr );
586 fputc( '}', stderr );
590 static void dump_varargs_LUID_AND_ATTRIBUTES( data_size_t size )
592 const LUID_AND_ATTRIBUTES *lat = cur_data;
593 data_size_t len = size / sizeof(*lat);
595 fputc( '{', stderr );
598 fprintf( stderr, "{luid=%08x%08x,attr=%x}",
599 lat->Luid.HighPart, lat->Luid.LowPart, lat->Attributes );
601 if (--len) fputc( ',', stderr );
603 fputc( '}', stderr );
607 static void dump_inline_sid( const SID *sid, data_size_t size )
612 if ((FIELD_OFFSET(SID, SubAuthority[0]) > size) ||
613 (FIELD_OFFSET(SID, SubAuthority[sid->SubAuthorityCount]) > size))
615 fprintf( stderr, "<invalid sid>" );
619 fputc( '{', stderr );
620 fprintf( stderr, "S-%u-%u", sid->Revision, MAKELONG(
621 MAKEWORD( sid->IdentifierAuthority.Value[5],
622 sid->IdentifierAuthority.Value[4] ),
623 MAKEWORD( sid->IdentifierAuthority.Value[3],
624 sid->IdentifierAuthority.Value[2] ) ) );
625 for (i = 0; i < sid->SubAuthorityCount; i++)
626 fprintf( stderr, "-%u", sid->SubAuthority[i] );
627 fputc( '}', stderr );
630 static void dump_varargs_SID( data_size_t size )
632 const SID *sid = cur_data;
633 dump_inline_sid( sid, size );
637 static void dump_inline_acl( const ACL *acl, data_size_t size )
639 const ACE_HEADER *ace;
641 fputc( '{', stderr );
645 if (size < sizeof(ACL))
647 fprintf( stderr, "<invalid acl>}\n" );
651 ace = (const ACE_HEADER *)(acl + 1);
652 for (i = 0; i < acl->AceCount; i++)
654 const SID *sid = NULL;
655 data_size_t sid_size = 0;
657 if (size < sizeof(ACE_HEADER))
659 if (size < ace->AceSize)
661 size -= ace->AceSize;
662 if (i != 0) fputc( ',', stderr );
663 fprintf( stderr, "{AceType=" );
664 switch (ace->AceType)
666 case ACCESS_DENIED_ACE_TYPE:
667 sid = (const SID *)&((const ACCESS_DENIED_ACE *)ace)->SidStart;
668 sid_size = ace->AceSize - FIELD_OFFSET(ACCESS_DENIED_ACE, SidStart);
669 fprintf( stderr, "ACCESS_DENIED_ACE_TYPE,Mask=%x",
670 ((const ACCESS_DENIED_ACE *)ace)->Mask );
672 case ACCESS_ALLOWED_ACE_TYPE:
673 sid = (const SID *)&((const ACCESS_ALLOWED_ACE *)ace)->SidStart;
674 sid_size = ace->AceSize - FIELD_OFFSET(ACCESS_ALLOWED_ACE, SidStart);
675 fprintf( stderr, "ACCESS_ALLOWED_ACE_TYPE,Mask=%x",
676 ((const ACCESS_ALLOWED_ACE *)ace)->Mask );
678 case SYSTEM_AUDIT_ACE_TYPE:
679 sid = (const SID *)&((const SYSTEM_AUDIT_ACE *)ace)->SidStart;
680 sid_size = ace->AceSize - FIELD_OFFSET(SYSTEM_AUDIT_ACE, SidStart);
681 fprintf( stderr, "SYSTEM_AUDIT_ACE_TYPE,Mask=%x",
682 ((const SYSTEM_AUDIT_ACE *)ace)->Mask );
684 case SYSTEM_ALARM_ACE_TYPE:
685 sid = (const SID *)&((const SYSTEM_ALARM_ACE *)ace)->SidStart;
686 sid_size = ace->AceSize - FIELD_OFFSET(SYSTEM_ALARM_ACE, SidStart);
687 fprintf( stderr, "SYSTEM_ALARM_ACE_TYPE,Mask=%x",
688 ((const SYSTEM_ALARM_ACE *)ace)->Mask );
691 fprintf( stderr, "unknown<%d>", ace->AceType );
694 fprintf( stderr, ",AceFlags=%x,Sid=", ace->AceFlags );
696 dump_inline_sid( sid, sid_size );
697 ace = (const ACE_HEADER *)((const char *)ace + ace->AceSize);
698 fputc( '}', stderr );
701 fputc( '}', stderr );
704 static void dump_inline_security_descriptor( const struct security_descriptor *sd, data_size_t size )
706 fputc( '{', stderr );
707 if (size >= sizeof(struct security_descriptor))
709 size_t offset = sizeof(struct security_descriptor);
710 fprintf( stderr, "control=%08x", sd->control );
711 fprintf( stderr, ",owner=" );
712 if ((sd->owner_len > FIELD_OFFSET(SID, SubAuthority[255])) || (offset + sd->owner_len > size))
715 dump_inline_sid( (const SID *)((const char *)sd + offset), sd->owner_len );
717 fprintf( stderr, "<not present>" );
718 offset += sd->owner_len;
719 fprintf( stderr, ",group=" );
720 if ((sd->group_len > FIELD_OFFSET(SID, SubAuthority[255])) || (offset + sd->group_len > size))
723 dump_inline_sid( (const SID *)((const char *)sd + offset), sd->group_len );
725 fprintf( stderr, "<not present>" );
726 offset += sd->group_len;
727 fprintf( stderr, ",sacl=" );
728 if ((sd->sacl_len >= MAX_ACL_LEN) || (offset + sd->sacl_len > size))
730 dump_inline_acl( (const ACL *)((const char *)sd + offset), sd->sacl_len );
731 offset += sd->sacl_len;
732 fprintf( stderr, ",dacl=" );
733 if ((sd->dacl_len >= MAX_ACL_LEN) || (offset + sd->dacl_len > size))
735 dump_inline_acl( (const ACL *)((const char *)sd + offset), sd->dacl_len );
736 offset += sd->dacl_len;
738 fputc( '}', stderr );
741 static void dump_varargs_security_descriptor( data_size_t size )
743 const struct security_descriptor *sd = cur_data;
744 dump_inline_security_descriptor( sd, size );
748 static void dump_varargs_token_groups( data_size_t size )
750 const struct token_groups *tg = cur_data;
751 fputc( '{', stderr );
752 if (size >= sizeof(struct token_groups))
754 size_t offset = sizeof(*tg);
755 fprintf( stderr, "count=%08x,", tg->count );
756 if (tg->count * sizeof(unsigned int) <= size)
759 const unsigned int *attr = (const unsigned int *)(tg + 1);
761 offset += tg->count * sizeof(unsigned int);
763 fputc( '[', stderr );
764 for (i = 0; i < tg->count; i++)
766 const SID *sid = (const SID *)((const char *)cur_data + offset);
768 fputc( ',', stderr );
769 fputc( '{', stderr );
770 fprintf( stderr, "attributes=%08x", attr[i] );
771 fprintf( stderr, ",sid=" );
772 dump_inline_sid( sid, size - offset );
773 if ((offset + FIELD_OFFSET(SID, SubAuthority[0]) > size) ||
774 (offset + FIELD_OFFSET(SID, SubAuthority[sid->SubAuthorityCount]) > size))
776 offset += FIELD_OFFSET(SID, SubAuthority[sid->SubAuthorityCount]);
777 fputc( '}', stderr );
779 fputc( ']', stderr );
782 fputc( '}', stderr );
785 static void dump_varargs_object_attributes( data_size_t size )
787 const struct object_attributes *objattr = cur_data;
788 fputc( '{', stderr );
789 if (size >= sizeof(struct object_attributes))
792 fprintf( stderr, "rootdir=%p,sd=", objattr->rootdir );
793 if (objattr->sd_len > size - sizeof(*objattr) ||
794 objattr->name_len > size - sizeof(*objattr) - objattr->sd_len)
796 dump_inline_security_descriptor( (const struct security_descriptor *)(objattr + 1), objattr->sd_len );
797 str = (const WCHAR *)objattr + (sizeof(*objattr) + objattr->sd_len) / sizeof(WCHAR);
798 fprintf( stderr, ",name=L\"" );
799 dump_strW( str, objattr->name_len / sizeof(WCHAR), stderr, "\"\"" );
800 fputc( '\"', stderr );
801 remove_data( ((sizeof(*objattr) + objattr->sd_len) / sizeof(WCHAR)) * sizeof(WCHAR) +
804 fputc( '}', stderr );
807 typedef void (*dump_func)( const void *req );
809 /* Everything below this line is generated automatically by tools/make_requests */
810 /* ### make_requests begin ### */
812 static void dump_new_process_request( const struct new_process_request *req )
814 fprintf( stderr, " inherit_all=%d,", req->inherit_all );
815 fprintf( stderr, " create_flags=%08x,", req->create_flags );
816 fprintf( stderr, " socket_fd=%d,", req->socket_fd );
817 fprintf( stderr, " exe_file=%p,", req->exe_file );
818 fprintf( stderr, " hstdin=%p,", req->hstdin );
819 fprintf( stderr, " hstdout=%p,", req->hstdout );
820 fprintf( stderr, " hstderr=%p,", req->hstderr );
821 fprintf( stderr, " process_access=%08x,", req->process_access );
822 fprintf( stderr, " process_attr=%08x,", req->process_attr );
823 fprintf( stderr, " thread_access=%08x,", req->thread_access );
824 fprintf( stderr, " thread_attr=%08x,", req->thread_attr );
825 fprintf( stderr, " info=" );
826 dump_varargs_startup_info( cur_size );
827 fputc( ',', stderr );
828 fprintf( stderr, " env=" );
829 dump_varargs_unicode_str( cur_size );
832 static void dump_new_process_reply( const struct new_process_reply *req )
834 fprintf( stderr, " info=%p,", req->info );
835 fprintf( stderr, " pid=%04x,", req->pid );
836 fprintf( stderr, " phandle=%p,", req->phandle );
837 fprintf( stderr, " tid=%04x,", req->tid );
838 fprintf( stderr, " thandle=%p", req->thandle );
841 static void dump_get_new_process_info_request( const struct get_new_process_info_request *req )
843 fprintf( stderr, " info=%p", req->info );
846 static void dump_get_new_process_info_reply( const struct get_new_process_info_reply *req )
848 fprintf( stderr, " success=%d,", req->success );
849 fprintf( stderr, " exit_code=%d", req->exit_code );
852 static void dump_new_thread_request( const struct new_thread_request *req )
854 fprintf( stderr, " access=%08x,", req->access );
855 fprintf( stderr, " attributes=%08x,", req->attributes );
856 fprintf( stderr, " suspend=%d,", req->suspend );
857 fprintf( stderr, " request_fd=%d", req->request_fd );
860 static void dump_new_thread_reply( const struct new_thread_reply *req )
862 fprintf( stderr, " tid=%04x,", req->tid );
863 fprintf( stderr, " handle=%p", req->handle );
866 static void dump_get_startup_info_request( const struct get_startup_info_request *req )
870 static void dump_get_startup_info_reply( const struct get_startup_info_reply *req )
872 fprintf( stderr, " exe_file=%p,", req->exe_file );
873 fprintf( stderr, " hstdin=%p,", req->hstdin );
874 fprintf( stderr, " hstdout=%p,", req->hstdout );
875 fprintf( stderr, " hstderr=%p,", req->hstderr );
876 fprintf( stderr, " info=" );
877 dump_varargs_startup_info( cur_size );
878 fputc( ',', stderr );
879 fprintf( stderr, " env=" );
880 dump_varargs_unicode_str( cur_size );
883 static void dump_init_process_done_request( const struct init_process_done_request *req )
885 fprintf( stderr, " module=%p,", req->module );
886 fprintf( stderr, " entry=%p,", req->entry );
887 fprintf( stderr, " gui=%d", req->gui );
890 static void dump_init_thread_request( const struct init_thread_request *req )
892 fprintf( stderr, " unix_pid=%d,", req->unix_pid );
893 fprintf( stderr, " unix_tid=%d,", req->unix_tid );
894 fprintf( stderr, " debug_level=%d,", req->debug_level );
895 fprintf( stderr, " teb=%p,", req->teb );
896 fprintf( stderr, " peb=%p,", req->peb );
897 fprintf( stderr, " entry=%p,", req->entry );
898 fprintf( stderr, " ldt_copy=%p,", req->ldt_copy );
899 fprintf( stderr, " reply_fd=%d,", req->reply_fd );
900 fprintf( stderr, " wait_fd=%d", req->wait_fd );
903 static void dump_init_thread_reply( const struct init_thread_reply *req )
905 fprintf( stderr, " pid=%04x,", req->pid );
906 fprintf( stderr, " tid=%04x,", req->tid );
907 fprintf( stderr, " info_size=%u,", req->info_size );
908 fprintf( stderr, " server_start=" );
909 dump_timeout( &req->server_start );
910 fprintf( stderr, "," );
911 fprintf( stderr, " version=%d", req->version );
914 static void dump_terminate_process_request( const struct terminate_process_request *req )
916 fprintf( stderr, " handle=%p,", req->handle );
917 fprintf( stderr, " exit_code=%d", req->exit_code );
920 static void dump_terminate_process_reply( const struct terminate_process_reply *req )
922 fprintf( stderr, " self=%d", req->self );
925 static void dump_terminate_thread_request( const struct terminate_thread_request *req )
927 fprintf( stderr, " handle=%p,", req->handle );
928 fprintf( stderr, " exit_code=%d", req->exit_code );
931 static void dump_terminate_thread_reply( const struct terminate_thread_reply *req )
933 fprintf( stderr, " self=%d,", req->self );
934 fprintf( stderr, " last=%d", req->last );
937 static void dump_get_process_info_request( const struct get_process_info_request *req )
939 fprintf( stderr, " handle=%p", req->handle );
942 static void dump_get_process_info_reply( const struct get_process_info_reply *req )
944 fprintf( stderr, " pid=%04x,", req->pid );
945 fprintf( stderr, " ppid=%04x,", req->ppid );
946 fprintf( stderr, " exit_code=%d,", req->exit_code );
947 fprintf( stderr, " priority=%d,", req->priority );
948 fprintf( stderr, " affinity=%d,", req->affinity );
949 fprintf( stderr, " peb=%p,", req->peb );
950 fprintf( stderr, " start_time=" );
951 dump_timeout( &req->start_time );
952 fprintf( stderr, "," );
953 fprintf( stderr, " end_time=" );
954 dump_timeout( &req->end_time );
957 static void dump_set_process_info_request( const struct set_process_info_request *req )
959 fprintf( stderr, " handle=%p,", req->handle );
960 fprintf( stderr, " mask=%d,", req->mask );
961 fprintf( stderr, " priority=%d,", req->priority );
962 fprintf( stderr, " affinity=%d", req->affinity );
965 static void dump_get_thread_info_request( const struct get_thread_info_request *req )
967 fprintf( stderr, " handle=%p,", req->handle );
968 fprintf( stderr, " tid_in=%04x", req->tid_in );
971 static void dump_get_thread_info_reply( const struct get_thread_info_reply *req )
973 fprintf( stderr, " pid=%04x,", req->pid );
974 fprintf( stderr, " tid=%04x,", req->tid );
975 fprintf( stderr, " teb=%p,", req->teb );
976 fprintf( stderr, " exit_code=%d,", req->exit_code );
977 fprintf( stderr, " priority=%d,", req->priority );
978 fprintf( stderr, " affinity=%d,", req->affinity );
979 fprintf( stderr, " creation_time=" );
980 dump_timeout( &req->creation_time );
981 fprintf( stderr, "," );
982 fprintf( stderr, " exit_time=" );
983 dump_timeout( &req->exit_time );
984 fprintf( stderr, "," );
985 fprintf( stderr, " last=%d", req->last );
988 static void dump_set_thread_info_request( const struct set_thread_info_request *req )
990 fprintf( stderr, " handle=%p,", req->handle );
991 fprintf( stderr, " mask=%d,", req->mask );
992 fprintf( stderr, " priority=%d,", req->priority );
993 fprintf( stderr, " affinity=%d,", req->affinity );
994 fprintf( stderr, " token=%p", req->token );
997 static void dump_get_dll_info_request( const struct get_dll_info_request *req )
999 fprintf( stderr, " handle=%p,", req->handle );
1000 fprintf( stderr, " base_address=%p", req->base_address );
1003 static void dump_get_dll_info_reply( const struct get_dll_info_reply *req )
1005 fprintf( stderr, " size=%lu,", (unsigned long)req->size );
1006 fprintf( stderr, " entry_point=%p,", req->entry_point );
1007 fprintf( stderr, " filename=" );
1008 dump_varargs_unicode_str( cur_size );
1011 static void dump_suspend_thread_request( const struct suspend_thread_request *req )
1013 fprintf( stderr, " handle=%p", req->handle );
1016 static void dump_suspend_thread_reply( const struct suspend_thread_reply *req )
1018 fprintf( stderr, " count=%d", req->count );
1021 static void dump_resume_thread_request( const struct resume_thread_request *req )
1023 fprintf( stderr, " handle=%p", req->handle );
1026 static void dump_resume_thread_reply( const struct resume_thread_reply *req )
1028 fprintf( stderr, " count=%d", req->count );
1031 static void dump_load_dll_request( const struct load_dll_request *req )
1033 fprintf( stderr, " handle=%p,", req->handle );
1034 fprintf( stderr, " base=%p,", req->base );
1035 fprintf( stderr, " size=%lu,", (unsigned long)req->size );
1036 fprintf( stderr, " dbg_offset=%d,", req->dbg_offset );
1037 fprintf( stderr, " dbg_size=%d,", req->dbg_size );
1038 fprintf( stderr, " name=%p,", req->name );
1039 fprintf( stderr, " filename=" );
1040 dump_varargs_unicode_str( cur_size );
1043 static void dump_unload_dll_request( const struct unload_dll_request *req )
1045 fprintf( stderr, " base=%p", req->base );
1048 static void dump_queue_apc_request( const struct queue_apc_request *req )
1050 fprintf( stderr, " thread=%p,", req->thread );
1051 fprintf( stderr, " process=%p,", req->process );
1052 fprintf( stderr, " call=" );
1053 dump_apc_call( &req->call );
1056 static void dump_queue_apc_reply( const struct queue_apc_reply *req )
1058 fprintf( stderr, " handle=%p,", req->handle );
1059 fprintf( stderr, " self=%d", req->self );
1062 static void dump_get_apc_result_request( const struct get_apc_result_request *req )
1064 fprintf( stderr, " handle=%p", req->handle );
1067 static void dump_get_apc_result_reply( const struct get_apc_result_reply *req )
1069 fprintf( stderr, " result=" );
1070 dump_apc_result( &req->result );
1073 static void dump_close_handle_request( const struct close_handle_request *req )
1075 fprintf( stderr, " handle=%p", req->handle );
1078 static void dump_set_handle_info_request( const struct set_handle_info_request *req )
1080 fprintf( stderr, " handle=%p,", req->handle );
1081 fprintf( stderr, " flags=%d,", req->flags );
1082 fprintf( stderr, " mask=%d", req->mask );
1085 static void dump_set_handle_info_reply( const struct set_handle_info_reply *req )
1087 fprintf( stderr, " old_flags=%d", req->old_flags );
1090 static void dump_dup_handle_request( const struct dup_handle_request *req )
1092 fprintf( stderr, " src_process=%p,", req->src_process );
1093 fprintf( stderr, " src_handle=%p,", req->src_handle );
1094 fprintf( stderr, " dst_process=%p,", req->dst_process );
1095 fprintf( stderr, " access=%08x,", req->access );
1096 fprintf( stderr, " attributes=%08x,", req->attributes );
1097 fprintf( stderr, " options=%08x", req->options );
1100 static void dump_dup_handle_reply( const struct dup_handle_reply *req )
1102 fprintf( stderr, " handle=%p,", req->handle );
1103 fprintf( stderr, " self=%d,", req->self );
1104 fprintf( stderr, " closed=%d", req->closed );
1107 static void dump_open_process_request( const struct open_process_request *req )
1109 fprintf( stderr, " pid=%04x,", req->pid );
1110 fprintf( stderr, " access=%08x,", req->access );
1111 fprintf( stderr, " attributes=%08x", req->attributes );
1114 static void dump_open_process_reply( const struct open_process_reply *req )
1116 fprintf( stderr, " handle=%p", req->handle );
1119 static void dump_open_thread_request( const struct open_thread_request *req )
1121 fprintf( stderr, " tid=%04x,", req->tid );
1122 fprintf( stderr, " access=%08x,", req->access );
1123 fprintf( stderr, " attributes=%08x", req->attributes );
1126 static void dump_open_thread_reply( const struct open_thread_reply *req )
1128 fprintf( stderr, " handle=%p", req->handle );
1131 static void dump_select_request( const struct select_request *req )
1133 fprintf( stderr, " flags=%d,", req->flags );
1134 fprintf( stderr, " cookie=%p,", req->cookie );
1135 fprintf( stderr, " signal=%p,", req->signal );
1136 fprintf( stderr, " prev_apc=%p,", req->prev_apc );
1137 fprintf( stderr, " timeout=" );
1138 dump_timeout( &req->timeout );
1139 fprintf( stderr, "," );
1140 fprintf( stderr, " result=" );
1141 dump_varargs_apc_result( cur_size );
1142 fputc( ',', stderr );
1143 fprintf( stderr, " handles=" );
1144 dump_varargs_handles( cur_size );
1147 static void dump_select_reply( const struct select_reply *req )
1149 fprintf( stderr, " apc_handle=%p,", req->apc_handle );
1150 fprintf( stderr, " timeout=" );
1151 dump_timeout( &req->timeout );
1152 fprintf( stderr, "," );
1153 fprintf( stderr, " call=" );
1154 dump_apc_call( &req->call );
1157 static void dump_create_event_request( const struct create_event_request *req )
1159 fprintf( stderr, " access=%08x,", req->access );
1160 fprintf( stderr, " attributes=%08x,", req->attributes );
1161 fprintf( stderr, " manual_reset=%d,", req->manual_reset );
1162 fprintf( stderr, " initial_state=%d,", req->initial_state );
1163 fprintf( stderr, " objattr=" );
1164 dump_varargs_object_attributes( cur_size );
1167 static void dump_create_event_reply( const struct create_event_reply *req )
1169 fprintf( stderr, " handle=%p", req->handle );
1172 static void dump_event_op_request( const struct event_op_request *req )
1174 fprintf( stderr, " handle=%p,", req->handle );
1175 fprintf( stderr, " op=%d", req->op );
1178 static void dump_open_event_request( const struct open_event_request *req )
1180 fprintf( stderr, " access=%08x,", req->access );
1181 fprintf( stderr, " attributes=%08x,", req->attributes );
1182 fprintf( stderr, " rootdir=%p,", req->rootdir );
1183 fprintf( stderr, " name=" );
1184 dump_varargs_unicode_str( cur_size );
1187 static void dump_open_event_reply( const struct open_event_reply *req )
1189 fprintf( stderr, " handle=%p", req->handle );
1192 static void dump_create_mutex_request( const struct create_mutex_request *req )
1194 fprintf( stderr, " access=%08x,", req->access );
1195 fprintf( stderr, " attributes=%08x,", req->attributes );
1196 fprintf( stderr, " owned=%d,", req->owned );
1197 fprintf( stderr, " objattr=" );
1198 dump_varargs_object_attributes( cur_size );
1201 static void dump_create_mutex_reply( const struct create_mutex_reply *req )
1203 fprintf( stderr, " handle=%p", req->handle );
1206 static void dump_release_mutex_request( const struct release_mutex_request *req )
1208 fprintf( stderr, " handle=%p", req->handle );
1211 static void dump_release_mutex_reply( const struct release_mutex_reply *req )
1213 fprintf( stderr, " prev_count=%08x", req->prev_count );
1216 static void dump_open_mutex_request( const struct open_mutex_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_mutex_reply( const struct open_mutex_reply *req )
1227 fprintf( stderr, " handle=%p", req->handle );
1230 static void dump_create_semaphore_request( const struct create_semaphore_request *req )
1232 fprintf( stderr, " access=%08x,", req->access );
1233 fprintf( stderr, " attributes=%08x,", req->attributes );
1234 fprintf( stderr, " initial=%08x,", req->initial );
1235 fprintf( stderr, " max=%08x,", req->max );
1236 fprintf( stderr, " objattr=" );
1237 dump_varargs_object_attributes( cur_size );
1240 static void dump_create_semaphore_reply( const struct create_semaphore_reply *req )
1242 fprintf( stderr, " handle=%p", req->handle );
1245 static void dump_release_semaphore_request( const struct release_semaphore_request *req )
1247 fprintf( stderr, " handle=%p,", req->handle );
1248 fprintf( stderr, " count=%08x", req->count );
1251 static void dump_release_semaphore_reply( const struct release_semaphore_reply *req )
1253 fprintf( stderr, " prev_count=%08x", req->prev_count );
1256 static void dump_open_semaphore_request( const struct open_semaphore_request *req )
1258 fprintf( stderr, " access=%08x,", req->access );
1259 fprintf( stderr, " attributes=%08x,", req->attributes );
1260 fprintf( stderr, " rootdir=%p,", req->rootdir );
1261 fprintf( stderr, " name=" );
1262 dump_varargs_unicode_str( cur_size );
1265 static void dump_open_semaphore_reply( const struct open_semaphore_reply *req )
1267 fprintf( stderr, " handle=%p", req->handle );
1270 static void dump_create_file_request( const struct create_file_request *req )
1272 fprintf( stderr, " access=%08x,", req->access );
1273 fprintf( stderr, " attributes=%08x,", req->attributes );
1274 fprintf( stderr, " sharing=%08x,", req->sharing );
1275 fprintf( stderr, " create=%d,", req->create );
1276 fprintf( stderr, " options=%08x,", req->options );
1277 fprintf( stderr, " attrs=%08x,", req->attrs );
1278 fprintf( stderr, " objattr=" );
1279 dump_varargs_object_attributes( cur_size );
1280 fputc( ',', stderr );
1281 fprintf( stderr, " filename=" );
1282 dump_varargs_string( cur_size );
1285 static void dump_create_file_reply( const struct create_file_reply *req )
1287 fprintf( stderr, " handle=%p", req->handle );
1290 static void dump_open_file_object_request( const struct open_file_object_request *req )
1292 fprintf( stderr, " access=%08x,", req->access );
1293 fprintf( stderr, " attributes=%08x,", req->attributes );
1294 fprintf( stderr, " rootdir=%p,", req->rootdir );
1295 fprintf( stderr, " sharing=%08x,", req->sharing );
1296 fprintf( stderr, " options=%08x,", req->options );
1297 fprintf( stderr, " filename=" );
1298 dump_varargs_unicode_str( cur_size );
1301 static void dump_open_file_object_reply( const struct open_file_object_reply *req )
1303 fprintf( stderr, " handle=%p", req->handle );
1306 static void dump_alloc_file_handle_request( const struct alloc_file_handle_request *req )
1308 fprintf( stderr, " access=%08x,", req->access );
1309 fprintf( stderr, " attributes=%08x,", req->attributes );
1310 fprintf( stderr, " fd=%d", req->fd );
1313 static void dump_alloc_file_handle_reply( const struct alloc_file_handle_reply *req )
1315 fprintf( stderr, " handle=%p", req->handle );
1318 static void dump_get_handle_fd_request( const struct get_handle_fd_request *req )
1320 fprintf( stderr, " handle=%p", req->handle );
1323 static void dump_get_handle_fd_reply( const struct get_handle_fd_reply *req )
1325 fprintf( stderr, " type=%d,", req->type );
1326 fprintf( stderr, " removable=%d,", req->removable );
1327 fprintf( stderr, " access=%08x,", req->access );
1328 fprintf( stderr, " options=%08x", req->options );
1331 static void dump_flush_file_request( const struct flush_file_request *req )
1333 fprintf( stderr, " handle=%p", req->handle );
1336 static void dump_flush_file_reply( const struct flush_file_reply *req )
1338 fprintf( stderr, " event=%p", req->event );
1341 static void dump_lock_file_request( const struct lock_file_request *req )
1343 fprintf( stderr, " handle=%p,", req->handle );
1344 fprintf( stderr, " offset=" );
1345 dump_file_pos( &req->offset );
1346 fprintf( stderr, "," );
1347 fprintf( stderr, " count=" );
1348 dump_file_pos( &req->count );
1349 fprintf( stderr, "," );
1350 fprintf( stderr, " shared=%d,", req->shared );
1351 fprintf( stderr, " wait=%d", req->wait );
1354 static void dump_lock_file_reply( const struct lock_file_reply *req )
1356 fprintf( stderr, " handle=%p,", req->handle );
1357 fprintf( stderr, " overlapped=%d", req->overlapped );
1360 static void dump_unlock_file_request( const struct unlock_file_request *req )
1362 fprintf( stderr, " handle=%p,", req->handle );
1363 fprintf( stderr, " offset=" );
1364 dump_file_pos( &req->offset );
1365 fprintf( stderr, "," );
1366 fprintf( stderr, " count=" );
1367 dump_file_pos( &req->count );
1370 static void dump_create_socket_request( const struct create_socket_request *req )
1372 fprintf( stderr, " access=%08x,", req->access );
1373 fprintf( stderr, " attributes=%08x,", req->attributes );
1374 fprintf( stderr, " family=%d,", req->family );
1375 fprintf( stderr, " type=%d,", req->type );
1376 fprintf( stderr, " protocol=%d,", req->protocol );
1377 fprintf( stderr, " flags=%08x", req->flags );
1380 static void dump_create_socket_reply( const struct create_socket_reply *req )
1382 fprintf( stderr, " handle=%p", req->handle );
1385 static void dump_accept_socket_request( const struct accept_socket_request *req )
1387 fprintf( stderr, " lhandle=%p,", req->lhandle );
1388 fprintf( stderr, " access=%08x,", req->access );
1389 fprintf( stderr, " attributes=%08x", req->attributes );
1392 static void dump_accept_socket_reply( const struct accept_socket_reply *req )
1394 fprintf( stderr, " handle=%p", req->handle );
1397 static void dump_set_socket_event_request( const struct set_socket_event_request *req )
1399 fprintf( stderr, " handle=%p,", req->handle );
1400 fprintf( stderr, " mask=%08x,", req->mask );
1401 fprintf( stderr, " event=%p,", req->event );
1402 fprintf( stderr, " window=%p,", req->window );
1403 fprintf( stderr, " msg=%08x", req->msg );
1406 static void dump_get_socket_event_request( const struct get_socket_event_request *req )
1408 fprintf( stderr, " handle=%p,", req->handle );
1409 fprintf( stderr, " service=%d,", req->service );
1410 fprintf( stderr, " c_event=%p", req->c_event );
1413 static void dump_get_socket_event_reply( const struct get_socket_event_reply *req )
1415 fprintf( stderr, " mask=%08x,", req->mask );
1416 fprintf( stderr, " pmask=%08x,", req->pmask );
1417 fprintf( stderr, " state=%08x,", req->state );
1418 fprintf( stderr, " errors=" );
1419 dump_varargs_ints( cur_size );
1422 static void dump_enable_socket_event_request( const struct enable_socket_event_request *req )
1424 fprintf( stderr, " handle=%p,", req->handle );
1425 fprintf( stderr, " mask=%08x,", req->mask );
1426 fprintf( stderr, " sstate=%08x,", req->sstate );
1427 fprintf( stderr, " cstate=%08x", req->cstate );
1430 static void dump_set_socket_deferred_request( const struct set_socket_deferred_request *req )
1432 fprintf( stderr, " handle=%p,", req->handle );
1433 fprintf( stderr, " deferred=%p", req->deferred );
1436 static void dump_alloc_console_request( const struct alloc_console_request *req )
1438 fprintf( stderr, " access=%08x,", req->access );
1439 fprintf( stderr, " attributes=%08x,", req->attributes );
1440 fprintf( stderr, " pid=%04x", req->pid );
1443 static void dump_alloc_console_reply( const struct alloc_console_reply *req )
1445 fprintf( stderr, " handle_in=%p,", req->handle_in );
1446 fprintf( stderr, " event=%p", req->event );
1449 static void dump_free_console_request( const struct free_console_request *req )
1453 static void dump_get_console_renderer_events_request( const struct get_console_renderer_events_request *req )
1455 fprintf( stderr, " handle=%p", req->handle );
1458 static void dump_get_console_renderer_events_reply( const struct get_console_renderer_events_reply *req )
1460 fprintf( stderr, " data=" );
1461 dump_varargs_bytes( cur_size );
1464 static void dump_open_console_request( const struct open_console_request *req )
1466 fprintf( stderr, " from=%p,", req->from );
1467 fprintf( stderr, " access=%08x,", req->access );
1468 fprintf( stderr, " attributes=%08x,", req->attributes );
1469 fprintf( stderr, " share=%d", req->share );
1472 static void dump_open_console_reply( const struct open_console_reply *req )
1474 fprintf( stderr, " handle=%p", req->handle );
1477 static void dump_get_console_wait_event_request( const struct get_console_wait_event_request *req )
1481 static void dump_get_console_wait_event_reply( const struct get_console_wait_event_reply *req )
1483 fprintf( stderr, " handle=%p", req->handle );
1486 static void dump_get_console_mode_request( const struct get_console_mode_request *req )
1488 fprintf( stderr, " handle=%p", req->handle );
1491 static void dump_get_console_mode_reply( const struct get_console_mode_reply *req )
1493 fprintf( stderr, " mode=%d", req->mode );
1496 static void dump_set_console_mode_request( const struct set_console_mode_request *req )
1498 fprintf( stderr, " handle=%p,", req->handle );
1499 fprintf( stderr, " mode=%d", req->mode );
1502 static void dump_set_console_input_info_request( const struct set_console_input_info_request *req )
1504 fprintf( stderr, " handle=%p,", req->handle );
1505 fprintf( stderr, " mask=%d,", req->mask );
1506 fprintf( stderr, " active_sb=%p,", req->active_sb );
1507 fprintf( stderr, " history_mode=%d,", req->history_mode );
1508 fprintf( stderr, " history_size=%d,", req->history_size );
1509 fprintf( stderr, " edition_mode=%d,", req->edition_mode );
1510 fprintf( stderr, " input_cp=%d,", req->input_cp );
1511 fprintf( stderr, " output_cp=%d,", req->output_cp );
1512 fprintf( stderr, " win=%p,", req->win );
1513 fprintf( stderr, " title=" );
1514 dump_varargs_unicode_str( cur_size );
1517 static void dump_get_console_input_info_request( const struct get_console_input_info_request *req )
1519 fprintf( stderr, " handle=%p", req->handle );
1522 static void dump_get_console_input_info_reply( const struct get_console_input_info_reply *req )
1524 fprintf( stderr, " history_mode=%d,", req->history_mode );
1525 fprintf( stderr, " history_size=%d,", req->history_size );
1526 fprintf( stderr, " history_index=%d,", req->history_index );
1527 fprintf( stderr, " edition_mode=%d,", req->edition_mode );
1528 fprintf( stderr, " input_cp=%d,", req->input_cp );
1529 fprintf( stderr, " output_cp=%d,", req->output_cp );
1530 fprintf( stderr, " win=%p,", req->win );
1531 fprintf( stderr, " title=" );
1532 dump_varargs_unicode_str( cur_size );
1535 static void dump_append_console_input_history_request( const struct append_console_input_history_request *req )
1537 fprintf( stderr, " handle=%p,", req->handle );
1538 fprintf( stderr, " line=" );
1539 dump_varargs_unicode_str( cur_size );
1542 static void dump_get_console_input_history_request( const struct get_console_input_history_request *req )
1544 fprintf( stderr, " handle=%p,", req->handle );
1545 fprintf( stderr, " index=%d", req->index );
1548 static void dump_get_console_input_history_reply( const struct get_console_input_history_reply *req )
1550 fprintf( stderr, " total=%d,", req->total );
1551 fprintf( stderr, " line=" );
1552 dump_varargs_unicode_str( cur_size );
1555 static void dump_create_console_output_request( const struct create_console_output_request *req )
1557 fprintf( stderr, " handle_in=%p,", req->handle_in );
1558 fprintf( stderr, " access=%08x,", req->access );
1559 fprintf( stderr, " attributes=%08x,", req->attributes );
1560 fprintf( stderr, " share=%08x", req->share );
1563 static void dump_create_console_output_reply( const struct create_console_output_reply *req )
1565 fprintf( stderr, " handle_out=%p", req->handle_out );
1568 static void dump_set_console_output_info_request( const struct set_console_output_info_request *req )
1570 fprintf( stderr, " handle=%p,", req->handle );
1571 fprintf( stderr, " mask=%d,", req->mask );
1572 fprintf( stderr, " cursor_size=%d,", req->cursor_size );
1573 fprintf( stderr, " cursor_visible=%d,", req->cursor_visible );
1574 fprintf( stderr, " cursor_x=%d,", req->cursor_x );
1575 fprintf( stderr, " cursor_y=%d,", req->cursor_y );
1576 fprintf( stderr, " width=%d,", req->width );
1577 fprintf( stderr, " height=%d,", req->height );
1578 fprintf( stderr, " attr=%d,", req->attr );
1579 fprintf( stderr, " win_left=%d,", req->win_left );
1580 fprintf( stderr, " win_top=%d,", req->win_top );
1581 fprintf( stderr, " win_right=%d,", req->win_right );
1582 fprintf( stderr, " win_bottom=%d,", req->win_bottom );
1583 fprintf( stderr, " max_width=%d,", req->max_width );
1584 fprintf( stderr, " max_height=%d", req->max_height );
1587 static void dump_get_console_output_info_request( const struct get_console_output_info_request *req )
1589 fprintf( stderr, " handle=%p", req->handle );
1592 static void dump_get_console_output_info_reply( const struct get_console_output_info_reply *req )
1594 fprintf( stderr, " cursor_size=%d,", req->cursor_size );
1595 fprintf( stderr, " cursor_visible=%d,", req->cursor_visible );
1596 fprintf( stderr, " cursor_x=%d,", req->cursor_x );
1597 fprintf( stderr, " cursor_y=%d,", req->cursor_y );
1598 fprintf( stderr, " width=%d,", req->width );
1599 fprintf( stderr, " height=%d,", req->height );
1600 fprintf( stderr, " attr=%d,", req->attr );
1601 fprintf( stderr, " win_left=%d,", req->win_left );
1602 fprintf( stderr, " win_top=%d,", req->win_top );
1603 fprintf( stderr, " win_right=%d,", req->win_right );
1604 fprintf( stderr, " win_bottom=%d,", req->win_bottom );
1605 fprintf( stderr, " max_width=%d,", req->max_width );
1606 fprintf( stderr, " max_height=%d", req->max_height );
1609 static void dump_write_console_input_request( const struct write_console_input_request *req )
1611 fprintf( stderr, " handle=%p,", req->handle );
1612 fprintf( stderr, " rec=" );
1613 dump_varargs_input_records( cur_size );
1616 static void dump_write_console_input_reply( const struct write_console_input_reply *req )
1618 fprintf( stderr, " written=%d", req->written );
1621 static void dump_read_console_input_request( const struct read_console_input_request *req )
1623 fprintf( stderr, " handle=%p,", req->handle );
1624 fprintf( stderr, " flush=%d", req->flush );
1627 static void dump_read_console_input_reply( const struct read_console_input_reply *req )
1629 fprintf( stderr, " read=%d,", req->read );
1630 fprintf( stderr, " rec=" );
1631 dump_varargs_input_records( cur_size );
1634 static void dump_write_console_output_request( const struct write_console_output_request *req )
1636 fprintf( stderr, " handle=%p,", req->handle );
1637 fprintf( stderr, " x=%d,", req->x );
1638 fprintf( stderr, " y=%d,", req->y );
1639 fprintf( stderr, " mode=%d,", req->mode );
1640 fprintf( stderr, " wrap=%d,", req->wrap );
1641 fprintf( stderr, " data=" );
1642 dump_varargs_bytes( cur_size );
1645 static void dump_write_console_output_reply( const struct write_console_output_reply *req )
1647 fprintf( stderr, " written=%d,", req->written );
1648 fprintf( stderr, " width=%d,", req->width );
1649 fprintf( stderr, " height=%d", req->height );
1652 static void dump_fill_console_output_request( const struct fill_console_output_request *req )
1654 fprintf( stderr, " handle=%p,", req->handle );
1655 fprintf( stderr, " x=%d,", req->x );
1656 fprintf( stderr, " y=%d,", req->y );
1657 fprintf( stderr, " mode=%d,", req->mode );
1658 fprintf( stderr, " count=%d,", req->count );
1659 fprintf( stderr, " wrap=%d,", req->wrap );
1660 fprintf( stderr, " data=" );
1661 dump_char_info( &req->data );
1664 static void dump_fill_console_output_reply( const struct fill_console_output_reply *req )
1666 fprintf( stderr, " written=%d", req->written );
1669 static void dump_read_console_output_request( const struct read_console_output_request *req )
1671 fprintf( stderr, " handle=%p,", req->handle );
1672 fprintf( stderr, " x=%d,", req->x );
1673 fprintf( stderr, " y=%d,", req->y );
1674 fprintf( stderr, " mode=%d,", req->mode );
1675 fprintf( stderr, " wrap=%d", req->wrap );
1678 static void dump_read_console_output_reply( const struct read_console_output_reply *req )
1680 fprintf( stderr, " width=%d,", req->width );
1681 fprintf( stderr, " height=%d,", req->height );
1682 fprintf( stderr, " data=" );
1683 dump_varargs_bytes( cur_size );
1686 static void dump_move_console_output_request( const struct move_console_output_request *req )
1688 fprintf( stderr, " handle=%p,", req->handle );
1689 fprintf( stderr, " x_src=%d,", req->x_src );
1690 fprintf( stderr, " y_src=%d,", req->y_src );
1691 fprintf( stderr, " x_dst=%d,", req->x_dst );
1692 fprintf( stderr, " y_dst=%d,", req->y_dst );
1693 fprintf( stderr, " w=%d,", req->w );
1694 fprintf( stderr, " h=%d", req->h );
1697 static void dump_send_console_signal_request( const struct send_console_signal_request *req )
1699 fprintf( stderr, " signal=%d,", req->signal );
1700 fprintf( stderr, " group_id=%04x", req->group_id );
1703 static void dump_read_directory_changes_request( const struct read_directory_changes_request *req )
1705 fprintf( stderr, " filter=%08x,", req->filter );
1706 fprintf( stderr, " handle=%p,", req->handle );
1707 fprintf( stderr, " subtree=%d,", req->subtree );
1708 fprintf( stderr, " want_data=%d,", req->want_data );
1709 fprintf( stderr, " async=" );
1710 dump_async_data( &req->async );
1713 static void dump_read_change_request( const struct read_change_request *req )
1715 fprintf( stderr, " handle=%p", req->handle );
1718 static void dump_read_change_reply( const struct read_change_reply *req )
1720 fprintf( stderr, " action=%d,", req->action );
1721 fprintf( stderr, " name=" );
1722 dump_varargs_string( cur_size );
1725 static void dump_create_mapping_request( const struct create_mapping_request *req )
1727 fprintf( stderr, " access=%08x,", req->access );
1728 fprintf( stderr, " attributes=%08x,", req->attributes );
1729 fprintf( stderr, " size=" );
1730 dump_file_pos( &req->size );
1731 fprintf( stderr, "," );
1732 fprintf( stderr, " protect=%d,", req->protect );
1733 fprintf( stderr, " file_handle=%p,", req->file_handle );
1734 fprintf( stderr, " objattr=" );
1735 dump_varargs_object_attributes( cur_size );
1738 static void dump_create_mapping_reply( const struct create_mapping_reply *req )
1740 fprintf( stderr, " handle=%p", req->handle );
1743 static void dump_open_mapping_request( const struct open_mapping_request *req )
1745 fprintf( stderr, " access=%08x,", req->access );
1746 fprintf( stderr, " attributes=%08x,", req->attributes );
1747 fprintf( stderr, " rootdir=%p,", req->rootdir );
1748 fprintf( stderr, " name=" );
1749 dump_varargs_unicode_str( cur_size );
1752 static void dump_open_mapping_reply( const struct open_mapping_reply *req )
1754 fprintf( stderr, " handle=%p", req->handle );
1757 static void dump_get_mapping_info_request( const struct get_mapping_info_request *req )
1759 fprintf( stderr, " handle=%p", req->handle );
1762 static void dump_get_mapping_info_reply( const struct get_mapping_info_reply *req )
1764 fprintf( stderr, " size=" );
1765 dump_file_pos( &req->size );
1766 fprintf( stderr, "," );
1767 fprintf( stderr, " protect=%d,", req->protect );
1768 fprintf( stderr, " header_size=%d,", req->header_size );
1769 fprintf( stderr, " base=%p,", req->base );
1770 fprintf( stderr, " mapping=%p,", req->mapping );
1771 fprintf( stderr, " shared_file=%p", req->shared_file );
1774 static void dump_create_snapshot_request( const struct create_snapshot_request *req )
1776 fprintf( stderr, " attributes=%08x,", req->attributes );
1777 fprintf( stderr, " flags=%d,", req->flags );
1778 fprintf( stderr, " pid=%04x", req->pid );
1781 static void dump_create_snapshot_reply( const struct create_snapshot_reply *req )
1783 fprintf( stderr, " handle=%p", req->handle );
1786 static void dump_next_process_request( const struct next_process_request *req )
1788 fprintf( stderr, " handle=%p,", req->handle );
1789 fprintf( stderr, " reset=%d", req->reset );
1792 static void dump_next_process_reply( const struct next_process_reply *req )
1794 fprintf( stderr, " count=%d,", req->count );
1795 fprintf( stderr, " pid=%04x,", req->pid );
1796 fprintf( stderr, " ppid=%04x,", req->ppid );
1797 fprintf( stderr, " heap=%p,", req->heap );
1798 fprintf( stderr, " module=%p,", req->module );
1799 fprintf( stderr, " threads=%d,", req->threads );
1800 fprintf( stderr, " priority=%d,", req->priority );
1801 fprintf( stderr, " handles=%d,", req->handles );
1802 fprintf( stderr, " filename=" );
1803 dump_varargs_unicode_str( cur_size );
1806 static void dump_next_thread_request( const struct next_thread_request *req )
1808 fprintf( stderr, " handle=%p,", req->handle );
1809 fprintf( stderr, " reset=%d", req->reset );
1812 static void dump_next_thread_reply( const struct next_thread_reply *req )
1814 fprintf( stderr, " count=%d,", req->count );
1815 fprintf( stderr, " pid=%04x,", req->pid );
1816 fprintf( stderr, " tid=%04x,", req->tid );
1817 fprintf( stderr, " base_pri=%d,", req->base_pri );
1818 fprintf( stderr, " delta_pri=%d", req->delta_pri );
1821 static void dump_next_module_request( const struct next_module_request *req )
1823 fprintf( stderr, " handle=%p,", req->handle );
1824 fprintf( stderr, " reset=%d", req->reset );
1827 static void dump_next_module_reply( const struct next_module_reply *req )
1829 fprintf( stderr, " pid=%04x,", req->pid );
1830 fprintf( stderr, " base=%p,", req->base );
1831 fprintf( stderr, " size=%lu,", (unsigned long)req->size );
1832 fprintf( stderr, " filename=" );
1833 dump_varargs_unicode_str( cur_size );
1836 static void dump_wait_debug_event_request( const struct wait_debug_event_request *req )
1838 fprintf( stderr, " get_handle=%d", req->get_handle );
1841 static void dump_wait_debug_event_reply( const struct wait_debug_event_reply *req )
1843 fprintf( stderr, " pid=%04x,", req->pid );
1844 fprintf( stderr, " tid=%04x,", req->tid );
1845 fprintf( stderr, " wait=%p,", req->wait );
1846 fprintf( stderr, " event=" );
1847 dump_varargs_debug_event( cur_size );
1850 static void dump_queue_exception_event_request( const struct queue_exception_event_request *req )
1852 fprintf( stderr, " first=%d,", req->first );
1853 fprintf( stderr, " record=" );
1854 dump_varargs_exc_event( cur_size );
1857 static void dump_queue_exception_event_reply( const struct queue_exception_event_reply *req )
1859 fprintf( stderr, " handle=%p", req->handle );
1862 static void dump_get_exception_status_request( const struct get_exception_status_request *req )
1864 fprintf( stderr, " handle=%p", req->handle );
1867 static void dump_get_exception_status_reply( const struct get_exception_status_reply *req )
1869 fprintf( stderr, " context=" );
1870 dump_varargs_context( cur_size );
1873 static void dump_output_debug_string_request( const struct output_debug_string_request *req )
1875 fprintf( stderr, " string=%p,", req->string );
1876 fprintf( stderr, " unicode=%d,", req->unicode );
1877 fprintf( stderr, " length=%d", req->length );
1880 static void dump_continue_debug_event_request( const struct continue_debug_event_request *req )
1882 fprintf( stderr, " pid=%04x,", req->pid );
1883 fprintf( stderr, " tid=%04x,", req->tid );
1884 fprintf( stderr, " status=%d", req->status );
1887 static void dump_debug_process_request( const struct debug_process_request *req )
1889 fprintf( stderr, " pid=%04x,", req->pid );
1890 fprintf( stderr, " attach=%d", req->attach );
1893 static void dump_debug_break_request( const struct debug_break_request *req )
1895 fprintf( stderr, " handle=%p", req->handle );
1898 static void dump_debug_break_reply( const struct debug_break_reply *req )
1900 fprintf( stderr, " self=%d", req->self );
1903 static void dump_set_debugger_kill_on_exit_request( const struct set_debugger_kill_on_exit_request *req )
1905 fprintf( stderr, " kill_on_exit=%d", req->kill_on_exit );
1908 static void dump_read_process_memory_request( const struct read_process_memory_request *req )
1910 fprintf( stderr, " handle=%p,", req->handle );
1911 fprintf( stderr, " addr=%p", req->addr );
1914 static void dump_read_process_memory_reply( const struct read_process_memory_reply *req )
1916 fprintf( stderr, " data=" );
1917 dump_varargs_bytes( cur_size );
1920 static void dump_write_process_memory_request( const struct write_process_memory_request *req )
1922 fprintf( stderr, " handle=%p,", req->handle );
1923 fprintf( stderr, " addr=%p,", req->addr );
1924 fprintf( stderr, " data=" );
1925 dump_varargs_bytes( cur_size );
1928 static void dump_create_key_request( const struct create_key_request *req )
1930 fprintf( stderr, " parent=%p,", req->parent );
1931 fprintf( stderr, " access=%08x,", req->access );
1932 fprintf( stderr, " attributes=%08x,", req->attributes );
1933 fprintf( stderr, " options=%08x,", req->options );
1934 fprintf( stderr, " modif=%ld,", (long)req->modif );
1935 fprintf( stderr, " namelen=%u,", req->namelen );
1936 fprintf( stderr, " name=" );
1937 dump_varargs_unicode_str( min(cur_size,req->namelen) );
1938 fputc( ',', stderr );
1939 fprintf( stderr, " class=" );
1940 dump_varargs_unicode_str( cur_size );
1943 static void dump_create_key_reply( const struct create_key_reply *req )
1945 fprintf( stderr, " hkey=%p,", req->hkey );
1946 fprintf( stderr, " created=%d", req->created );
1949 static void dump_open_key_request( const struct open_key_request *req )
1951 fprintf( stderr, " parent=%p,", req->parent );
1952 fprintf( stderr, " access=%08x,", req->access );
1953 fprintf( stderr, " attributes=%08x,", req->attributes );
1954 fprintf( stderr, " name=" );
1955 dump_varargs_unicode_str( cur_size );
1958 static void dump_open_key_reply( const struct open_key_reply *req )
1960 fprintf( stderr, " hkey=%p", req->hkey );
1963 static void dump_delete_key_request( const struct delete_key_request *req )
1965 fprintf( stderr, " hkey=%p", req->hkey );
1968 static void dump_flush_key_request( const struct flush_key_request *req )
1970 fprintf( stderr, " hkey=%p", req->hkey );
1973 static void dump_enum_key_request( const struct enum_key_request *req )
1975 fprintf( stderr, " hkey=%p,", req->hkey );
1976 fprintf( stderr, " index=%d,", req->index );
1977 fprintf( stderr, " info_class=%d", req->info_class );
1980 static void dump_enum_key_reply( const struct enum_key_reply *req )
1982 fprintf( stderr, " subkeys=%d,", req->subkeys );
1983 fprintf( stderr, " max_subkey=%d,", req->max_subkey );
1984 fprintf( stderr, " max_class=%d,", req->max_class );
1985 fprintf( stderr, " values=%d,", req->values );
1986 fprintf( stderr, " max_value=%d,", req->max_value );
1987 fprintf( stderr, " max_data=%d,", req->max_data );
1988 fprintf( stderr, " modif=%ld,", (long)req->modif );
1989 fprintf( stderr, " total=%u,", req->total );
1990 fprintf( stderr, " namelen=%u,", req->namelen );
1991 fprintf( stderr, " name=" );
1992 dump_varargs_unicode_str( min(cur_size,req->namelen) );
1993 fputc( ',', stderr );
1994 fprintf( stderr, " class=" );
1995 dump_varargs_unicode_str( cur_size );
1998 static void dump_set_key_value_request( const struct set_key_value_request *req )
2000 fprintf( stderr, " hkey=%p,", req->hkey );
2001 fprintf( stderr, " type=%d,", req->type );
2002 fprintf( stderr, " namelen=%u,", req->namelen );
2003 fprintf( stderr, " name=" );
2004 dump_varargs_unicode_str( min(cur_size,req->namelen) );
2005 fputc( ',', stderr );
2006 fprintf( stderr, " data=" );
2007 dump_varargs_bytes( cur_size );
2010 static void dump_get_key_value_request( const struct get_key_value_request *req )
2012 fprintf( stderr, " hkey=%p,", req->hkey );
2013 fprintf( stderr, " name=" );
2014 dump_varargs_unicode_str( cur_size );
2017 static void dump_get_key_value_reply( const struct get_key_value_reply *req )
2019 fprintf( stderr, " type=%d,", req->type );
2020 fprintf( stderr, " total=%u,", req->total );
2021 fprintf( stderr, " data=" );
2022 dump_varargs_bytes( cur_size );
2025 static void dump_enum_key_value_request( const struct enum_key_value_request *req )
2027 fprintf( stderr, " hkey=%p,", req->hkey );
2028 fprintf( stderr, " index=%d,", req->index );
2029 fprintf( stderr, " info_class=%d", req->info_class );
2032 static void dump_enum_key_value_reply( const struct enum_key_value_reply *req )
2034 fprintf( stderr, " type=%d,", req->type );
2035 fprintf( stderr, " total=%u,", req->total );
2036 fprintf( stderr, " namelen=%u,", req->namelen );
2037 fprintf( stderr, " name=" );
2038 dump_varargs_unicode_str( min(cur_size,req->namelen) );
2039 fputc( ',', stderr );
2040 fprintf( stderr, " data=" );
2041 dump_varargs_bytes( cur_size );
2044 static void dump_delete_key_value_request( const struct delete_key_value_request *req )
2046 fprintf( stderr, " hkey=%p,", req->hkey );
2047 fprintf( stderr, " name=" );
2048 dump_varargs_unicode_str( cur_size );
2051 static void dump_load_registry_request( const struct load_registry_request *req )
2053 fprintf( stderr, " hkey=%p,", req->hkey );
2054 fprintf( stderr, " file=%p,", req->file );
2055 fprintf( stderr, " name=" );
2056 dump_varargs_unicode_str( cur_size );
2059 static void dump_unload_registry_request( const struct unload_registry_request *req )
2061 fprintf( stderr, " hkey=%p", req->hkey );
2064 static void dump_save_registry_request( const struct save_registry_request *req )
2066 fprintf( stderr, " hkey=%p,", req->hkey );
2067 fprintf( stderr, " file=%p", req->file );
2070 static void dump_set_registry_notification_request( const struct set_registry_notification_request *req )
2072 fprintf( stderr, " hkey=%p,", req->hkey );
2073 fprintf( stderr, " event=%p,", req->event );
2074 fprintf( stderr, " subtree=%d,", req->subtree );
2075 fprintf( stderr, " filter=%08x", req->filter );
2078 static void dump_create_timer_request( const struct create_timer_request *req )
2080 fprintf( stderr, " access=%08x,", req->access );
2081 fprintf( stderr, " attributes=%08x,", req->attributes );
2082 fprintf( stderr, " rootdir=%p,", req->rootdir );
2083 fprintf( stderr, " manual=%d,", req->manual );
2084 fprintf( stderr, " name=" );
2085 dump_varargs_unicode_str( cur_size );
2088 static void dump_create_timer_reply( const struct create_timer_reply *req )
2090 fprintf( stderr, " handle=%p", req->handle );
2093 static void dump_open_timer_request( const struct open_timer_request *req )
2095 fprintf( stderr, " access=%08x,", req->access );
2096 fprintf( stderr, " attributes=%08x,", req->attributes );
2097 fprintf( stderr, " rootdir=%p,", req->rootdir );
2098 fprintf( stderr, " name=" );
2099 dump_varargs_unicode_str( cur_size );
2102 static void dump_open_timer_reply( const struct open_timer_reply *req )
2104 fprintf( stderr, " handle=%p", req->handle );
2107 static void dump_set_timer_request( const struct set_timer_request *req )
2109 fprintf( stderr, " handle=%p,", req->handle );
2110 fprintf( stderr, " expire=" );
2111 dump_timeout( &req->expire );
2112 fprintf( stderr, "," );
2113 fprintf( stderr, " period=%d,", req->period );
2114 fprintf( stderr, " callback=%p,", req->callback );
2115 fprintf( stderr, " arg=%p", req->arg );
2118 static void dump_set_timer_reply( const struct set_timer_reply *req )
2120 fprintf( stderr, " signaled=%d", req->signaled );
2123 static void dump_cancel_timer_request( const struct cancel_timer_request *req )
2125 fprintf( stderr, " handle=%p", req->handle );
2128 static void dump_cancel_timer_reply( const struct cancel_timer_reply *req )
2130 fprintf( stderr, " signaled=%d", req->signaled );
2133 static void dump_get_timer_info_request( const struct get_timer_info_request *req )
2135 fprintf( stderr, " handle=%p", req->handle );
2138 static void dump_get_timer_info_reply( const struct get_timer_info_reply *req )
2140 fprintf( stderr, " when=" );
2141 dump_timeout( &req->when );
2142 fprintf( stderr, "," );
2143 fprintf( stderr, " signaled=%d", req->signaled );
2146 static void dump_get_thread_context_request( const struct get_thread_context_request *req )
2148 fprintf( stderr, " handle=%p,", req->handle );
2149 fprintf( stderr, " flags=%08x,", req->flags );
2150 fprintf( stderr, " suspend=%d", req->suspend );
2153 static void dump_get_thread_context_reply( const struct get_thread_context_reply *req )
2155 fprintf( stderr, " self=%d,", req->self );
2156 fprintf( stderr, " context=" );
2157 dump_varargs_context( cur_size );
2160 static void dump_set_thread_context_request( const struct set_thread_context_request *req )
2162 fprintf( stderr, " handle=%p,", req->handle );
2163 fprintf( stderr, " flags=%08x,", req->flags );
2164 fprintf( stderr, " suspend=%d,", req->suspend );
2165 fprintf( stderr, " context=" );
2166 dump_varargs_context( cur_size );
2169 static void dump_set_thread_context_reply( const struct set_thread_context_reply *req )
2171 fprintf( stderr, " self=%d", req->self );
2174 static void dump_get_selector_entry_request( const struct get_selector_entry_request *req )
2176 fprintf( stderr, " handle=%p,", req->handle );
2177 fprintf( stderr, " entry=%d", req->entry );
2180 static void dump_get_selector_entry_reply( const struct get_selector_entry_reply *req )
2182 fprintf( stderr, " base=%08x,", req->base );
2183 fprintf( stderr, " limit=%08x,", req->limit );
2184 fprintf( stderr, " flags=%02x", req->flags );
2187 static void dump_add_atom_request( const struct add_atom_request *req )
2189 fprintf( stderr, " table=%p,", req->table );
2190 fprintf( stderr, " name=" );
2191 dump_varargs_unicode_str( cur_size );
2194 static void dump_add_atom_reply( const struct add_atom_reply *req )
2196 fprintf( stderr, " atom=%04x", req->atom );
2199 static void dump_delete_atom_request( const struct delete_atom_request *req )
2201 fprintf( stderr, " table=%p,", req->table );
2202 fprintf( stderr, " atom=%04x", req->atom );
2205 static void dump_find_atom_request( const struct find_atom_request *req )
2207 fprintf( stderr, " table=%p,", req->table );
2208 fprintf( stderr, " name=" );
2209 dump_varargs_unicode_str( cur_size );
2212 static void dump_find_atom_reply( const struct find_atom_reply *req )
2214 fprintf( stderr, " atom=%04x", req->atom );
2217 static void dump_get_atom_information_request( const struct get_atom_information_request *req )
2219 fprintf( stderr, " table=%p,", req->table );
2220 fprintf( stderr, " atom=%04x", req->atom );
2223 static void dump_get_atom_information_reply( const struct get_atom_information_reply *req )
2225 fprintf( stderr, " count=%d,", req->count );
2226 fprintf( stderr, " pinned=%d,", req->pinned );
2227 fprintf( stderr, " total=%u,", req->total );
2228 fprintf( stderr, " name=" );
2229 dump_varargs_unicode_str( cur_size );
2232 static void dump_set_atom_information_request( const struct set_atom_information_request *req )
2234 fprintf( stderr, " table=%p,", req->table );
2235 fprintf( stderr, " atom=%04x,", req->atom );
2236 fprintf( stderr, " pinned=%d", req->pinned );
2239 static void dump_empty_atom_table_request( const struct empty_atom_table_request *req )
2241 fprintf( stderr, " table=%p,", req->table );
2242 fprintf( stderr, " if_pinned=%d", req->if_pinned );
2245 static void dump_init_atom_table_request( const struct init_atom_table_request *req )
2247 fprintf( stderr, " entries=%d", req->entries );
2250 static void dump_init_atom_table_reply( const struct init_atom_table_reply *req )
2252 fprintf( stderr, " table=%p", req->table );
2255 static void dump_get_msg_queue_request( const struct get_msg_queue_request *req )
2259 static void dump_get_msg_queue_reply( const struct get_msg_queue_reply *req )
2261 fprintf( stderr, " handle=%p", req->handle );
2264 static void dump_set_queue_fd_request( const struct set_queue_fd_request *req )
2266 fprintf( stderr, " handle=%p", req->handle );
2269 static void dump_set_queue_mask_request( const struct set_queue_mask_request *req )
2271 fprintf( stderr, " wake_mask=%08x,", req->wake_mask );
2272 fprintf( stderr, " changed_mask=%08x,", req->changed_mask );
2273 fprintf( stderr, " skip_wait=%d", req->skip_wait );
2276 static void dump_set_queue_mask_reply( const struct set_queue_mask_reply *req )
2278 fprintf( stderr, " wake_bits=%08x,", req->wake_bits );
2279 fprintf( stderr, " changed_bits=%08x", req->changed_bits );
2282 static void dump_get_queue_status_request( const struct get_queue_status_request *req )
2284 fprintf( stderr, " clear=%d", req->clear );
2287 static void dump_get_queue_status_reply( const struct get_queue_status_reply *req )
2289 fprintf( stderr, " wake_bits=%08x,", req->wake_bits );
2290 fprintf( stderr, " changed_bits=%08x", req->changed_bits );
2293 static void dump_get_process_idle_event_request( const struct get_process_idle_event_request *req )
2295 fprintf( stderr, " handle=%p", req->handle );
2298 static void dump_get_process_idle_event_reply( const struct get_process_idle_event_reply *req )
2300 fprintf( stderr, " event=%p", req->event );
2303 static void dump_send_message_request( const struct send_message_request *req )
2305 fprintf( stderr, " id=%04x,", req->id );
2306 fprintf( stderr, " type=%d,", req->type );
2307 fprintf( stderr, " flags=%d,", req->flags );
2308 fprintf( stderr, " win=%p,", req->win );
2309 fprintf( stderr, " msg=%08x,", req->msg );
2310 fprintf( stderr, " wparam=%lx,", req->wparam );
2311 fprintf( stderr, " lparam=%lx,", req->lparam );
2312 fprintf( stderr, " timeout=" );
2313 dump_timeout( &req->timeout );
2314 fprintf( stderr, "," );
2315 fprintf( stderr, " data=" );
2316 dump_varargs_message_data( cur_size );
2319 static void dump_post_quit_message_request( const struct post_quit_message_request *req )
2321 fprintf( stderr, " exit_code=%d", req->exit_code );
2324 static void dump_send_hardware_message_request( const struct send_hardware_message_request *req )
2326 fprintf( stderr, " id=%04x,", req->id );
2327 fprintf( stderr, " win=%p,", req->win );
2328 fprintf( stderr, " msg=%08x,", req->msg );
2329 fprintf( stderr, " time=%08x,", req->time );
2330 fprintf( stderr, " wparam=%lx,", req->wparam );
2331 fprintf( stderr, " lparam=%lx,", req->lparam );
2332 fprintf( stderr, " info=%lx,", req->info );
2333 fprintf( stderr, " x=%d,", req->x );
2334 fprintf( stderr, " y=%d", req->y );
2337 static void dump_get_message_request( const struct get_message_request *req )
2339 fprintf( stderr, " flags=%08x,", req->flags );
2340 fprintf( stderr, " get_win=%p,", req->get_win );
2341 fprintf( stderr, " get_first=%08x,", req->get_first );
2342 fprintf( stderr, " get_last=%08x,", req->get_last );
2343 fprintf( stderr, " hw_id=%08x,", req->hw_id );
2344 fprintf( stderr, " wake_mask=%08x,", req->wake_mask );
2345 fprintf( stderr, " changed_mask=%08x", req->changed_mask );
2348 static void dump_get_message_reply( const struct get_message_reply *req )
2350 fprintf( stderr, " win=%p,", req->win );
2351 fprintf( stderr, " type=%d,", req->type );
2352 fprintf( stderr, " msg=%08x,", req->msg );
2353 fprintf( stderr, " wparam=%lx,", req->wparam );
2354 fprintf( stderr, " lparam=%lx,", req->lparam );
2355 fprintf( stderr, " info=%lx,", req->info );
2356 fprintf( stderr, " x=%d,", req->x );
2357 fprintf( stderr, " y=%d,", req->y );
2358 fprintf( stderr, " time=%08x,", req->time );
2359 fprintf( stderr, " hw_id=%08x,", req->hw_id );
2360 fprintf( stderr, " active_hooks=%08x,", req->active_hooks );
2361 fprintf( stderr, " total=%u,", req->total );
2362 fprintf( stderr, " data=" );
2363 dump_varargs_message_data( cur_size );
2366 static void dump_reply_message_request( const struct reply_message_request *req )
2368 fprintf( stderr, " result=%lx,", req->result );
2369 fprintf( stderr, " remove=%d,", req->remove );
2370 fprintf( stderr, " data=" );
2371 dump_varargs_bytes( cur_size );
2374 static void dump_accept_hardware_message_request( const struct accept_hardware_message_request *req )
2376 fprintf( stderr, " hw_id=%08x,", req->hw_id );
2377 fprintf( stderr, " remove=%d,", req->remove );
2378 fprintf( stderr, " new_win=%p", req->new_win );
2381 static void dump_get_message_reply_request( const struct get_message_reply_request *req )
2383 fprintf( stderr, " cancel=%d", req->cancel );
2386 static void dump_get_message_reply_reply( const struct get_message_reply_reply *req )
2388 fprintf( stderr, " result=%lx,", req->result );
2389 fprintf( stderr, " data=" );
2390 dump_varargs_bytes( cur_size );
2393 static void dump_set_win_timer_request( const struct set_win_timer_request *req )
2395 fprintf( stderr, " win=%p,", req->win );
2396 fprintf( stderr, " msg=%08x,", req->msg );
2397 fprintf( stderr, " rate=%08x,", req->rate );
2398 fprintf( stderr, " id=%lx,", req->id );
2399 fprintf( stderr, " lparam=%lx", req->lparam );
2402 static void dump_set_win_timer_reply( const struct set_win_timer_reply *req )
2404 fprintf( stderr, " id=%lx", req->id );
2407 static void dump_kill_win_timer_request( const struct kill_win_timer_request *req )
2409 fprintf( stderr, " win=%p,", req->win );
2410 fprintf( stderr, " msg=%08x,", req->msg );
2411 fprintf( stderr, " id=%lx", req->id );
2414 static void dump_get_serial_info_request( const struct get_serial_info_request *req )
2416 fprintf( stderr, " handle=%p", req->handle );
2419 static void dump_get_serial_info_reply( const struct get_serial_info_reply *req )
2421 fprintf( stderr, " readinterval=%08x,", req->readinterval );
2422 fprintf( stderr, " readconst=%08x,", req->readconst );
2423 fprintf( stderr, " readmult=%08x,", req->readmult );
2424 fprintf( stderr, " writeconst=%08x,", req->writeconst );
2425 fprintf( stderr, " writemult=%08x,", req->writemult );
2426 fprintf( stderr, " eventmask=%08x", req->eventmask );
2429 static void dump_set_serial_info_request( const struct set_serial_info_request *req )
2431 fprintf( stderr, " handle=%p,", req->handle );
2432 fprintf( stderr, " flags=%d,", req->flags );
2433 fprintf( stderr, " readinterval=%08x,", req->readinterval );
2434 fprintf( stderr, " readconst=%08x,", req->readconst );
2435 fprintf( stderr, " readmult=%08x,", req->readmult );
2436 fprintf( stderr, " writeconst=%08x,", req->writeconst );
2437 fprintf( stderr, " writemult=%08x,", req->writemult );
2438 fprintf( stderr, " eventmask=%08x", req->eventmask );
2441 static void dump_register_async_request( const struct register_async_request *req )
2443 fprintf( stderr, " handle=%p,", req->handle );
2444 fprintf( stderr, " type=%d,", req->type );
2445 fprintf( stderr, " count=%d,", req->count );
2446 fprintf( stderr, " async=" );
2447 dump_async_data( &req->async );
2450 static void dump_cancel_async_request( const struct cancel_async_request *req )
2452 fprintf( stderr, " handle=%p", req->handle );
2455 static void dump_ioctl_request( const struct ioctl_request *req )
2457 fprintf( stderr, " handle=%p,", req->handle );
2458 fprintf( stderr, " code=" );
2459 dump_ioctl_code( &req->code );
2460 fprintf( stderr, "," );
2461 fprintf( stderr, " async=" );
2462 dump_async_data( &req->async );
2463 fprintf( stderr, "," );
2464 fprintf( stderr, " in_data=" );
2465 dump_varargs_bytes( cur_size );
2468 static void dump_ioctl_reply( const struct ioctl_reply *req )
2470 fprintf( stderr, " wait=%p,", req->wait );
2471 fprintf( stderr, " options=%08x,", req->options );
2472 fprintf( stderr, " out_data=" );
2473 dump_varargs_bytes( cur_size );
2476 static void dump_get_ioctl_result_request( const struct get_ioctl_result_request *req )
2478 fprintf( stderr, " handle=%p,", req->handle );
2479 fprintf( stderr, " user_arg=%p", req->user_arg );
2482 static void dump_get_ioctl_result_reply( const struct get_ioctl_result_reply *req )
2484 fprintf( stderr, " out_data=" );
2485 dump_varargs_bytes( cur_size );
2488 static void dump_create_named_pipe_request( const struct create_named_pipe_request *req )
2490 fprintf( stderr, " access=%08x,", req->access );
2491 fprintf( stderr, " attributes=%08x,", req->attributes );
2492 fprintf( stderr, " rootdir=%p,", req->rootdir );
2493 fprintf( stderr, " options=%08x,", req->options );
2494 fprintf( stderr, " flags=%08x,", req->flags );
2495 fprintf( stderr, " maxinstances=%08x,", req->maxinstances );
2496 fprintf( stderr, " outsize=%08x,", req->outsize );
2497 fprintf( stderr, " insize=%08x,", req->insize );
2498 fprintf( stderr, " timeout=" );
2499 dump_timeout( &req->timeout );
2500 fprintf( stderr, "," );
2501 fprintf( stderr, " name=" );
2502 dump_varargs_unicode_str( cur_size );
2505 static void dump_create_named_pipe_reply( const struct create_named_pipe_reply *req )
2507 fprintf( stderr, " handle=%p", req->handle );
2510 static void dump_get_named_pipe_info_request( const struct get_named_pipe_info_request *req )
2512 fprintf( stderr, " handle=%p", req->handle );
2515 static void dump_get_named_pipe_info_reply( const struct get_named_pipe_info_reply *req )
2517 fprintf( stderr, " flags=%08x,", req->flags );
2518 fprintf( stderr, " maxinstances=%08x,", req->maxinstances );
2519 fprintf( stderr, " instances=%08x,", req->instances );
2520 fprintf( stderr, " outsize=%08x,", req->outsize );
2521 fprintf( stderr, " insize=%08x", req->insize );
2524 static void dump_create_window_request( const struct create_window_request *req )
2526 fprintf( stderr, " parent=%p,", req->parent );
2527 fprintf( stderr, " owner=%p,", req->owner );
2528 fprintf( stderr, " atom=%04x,", req->atom );
2529 fprintf( stderr, " instance=%p,", req->instance );
2530 fprintf( stderr, " class=" );
2531 dump_varargs_unicode_str( cur_size );
2534 static void dump_create_window_reply( const struct create_window_reply *req )
2536 fprintf( stderr, " handle=%p,", req->handle );
2537 fprintf( stderr, " parent=%p,", req->parent );
2538 fprintf( stderr, " owner=%p,", req->owner );
2539 fprintf( stderr, " extra=%d,", req->extra );
2540 fprintf( stderr, " class_ptr=%p", req->class_ptr );
2543 static void dump_destroy_window_request( const struct destroy_window_request *req )
2545 fprintf( stderr, " handle=%p", req->handle );
2548 static void dump_get_desktop_window_request( const struct get_desktop_window_request *req )
2550 fprintf( stderr, " force=%d", req->force );
2553 static void dump_get_desktop_window_reply( const struct get_desktop_window_reply *req )
2555 fprintf( stderr, " handle=%p", req->handle );
2558 static void dump_set_window_owner_request( const struct set_window_owner_request *req )
2560 fprintf( stderr, " handle=%p,", req->handle );
2561 fprintf( stderr, " owner=%p", req->owner );
2564 static void dump_set_window_owner_reply( const struct set_window_owner_reply *req )
2566 fprintf( stderr, " full_owner=%p,", req->full_owner );
2567 fprintf( stderr, " prev_owner=%p", req->prev_owner );
2570 static void dump_get_window_info_request( const struct get_window_info_request *req )
2572 fprintf( stderr, " handle=%p", req->handle );
2575 static void dump_get_window_info_reply( const struct get_window_info_reply *req )
2577 fprintf( stderr, " full_handle=%p,", req->full_handle );
2578 fprintf( stderr, " last_active=%p,", req->last_active );
2579 fprintf( stderr, " pid=%04x,", req->pid );
2580 fprintf( stderr, " tid=%04x,", req->tid );
2581 fprintf( stderr, " atom=%04x,", req->atom );
2582 fprintf( stderr, " is_unicode=%d", req->is_unicode );
2585 static void dump_set_window_info_request( const struct set_window_info_request *req )
2587 fprintf( stderr, " flags=%08x,", req->flags );
2588 fprintf( stderr, " handle=%p,", req->handle );
2589 fprintf( stderr, " style=%08x,", req->style );
2590 fprintf( stderr, " ex_style=%08x,", req->ex_style );
2591 fprintf( stderr, " id=%08x,", req->id );
2592 fprintf( stderr, " is_unicode=%d,", req->is_unicode );
2593 fprintf( stderr, " instance=%p,", req->instance );
2594 fprintf( stderr, " user_data=%lx,", req->user_data );
2595 fprintf( stderr, " extra_offset=%d,", req->extra_offset );
2596 fprintf( stderr, " extra_size=%u,", req->extra_size );
2597 fprintf( stderr, " extra_value=%lx", req->extra_value );
2600 static void dump_set_window_info_reply( const struct set_window_info_reply *req )
2602 fprintf( stderr, " old_style=%08x,", req->old_style );
2603 fprintf( stderr, " old_ex_style=%08x,", req->old_ex_style );
2604 fprintf( stderr, " old_id=%08x,", req->old_id );
2605 fprintf( stderr, " old_instance=%p,", req->old_instance );
2606 fprintf( stderr, " old_user_data=%lx,", req->old_user_data );
2607 fprintf( stderr, " old_extra_value=%lx", req->old_extra_value );
2610 static void dump_set_parent_request( const struct set_parent_request *req )
2612 fprintf( stderr, " handle=%p,", req->handle );
2613 fprintf( stderr, " parent=%p", req->parent );
2616 static void dump_set_parent_reply( const struct set_parent_reply *req )
2618 fprintf( stderr, " old_parent=%p,", req->old_parent );
2619 fprintf( stderr, " full_parent=%p", req->full_parent );
2622 static void dump_get_window_parents_request( const struct get_window_parents_request *req )
2624 fprintf( stderr, " handle=%p", req->handle );
2627 static void dump_get_window_parents_reply( const struct get_window_parents_reply *req )
2629 fprintf( stderr, " count=%d,", req->count );
2630 fprintf( stderr, " parents=" );
2631 dump_varargs_user_handles( cur_size );
2634 static void dump_get_window_children_request( const struct get_window_children_request *req )
2636 fprintf( stderr, " parent=%p,", req->parent );
2637 fprintf( stderr, " atom=%04x,", req->atom );
2638 fprintf( stderr, " tid=%04x,", req->tid );
2639 fprintf( stderr, " class=" );
2640 dump_varargs_unicode_str( cur_size );
2643 static void dump_get_window_children_reply( const struct get_window_children_reply *req )
2645 fprintf( stderr, " count=%d,", req->count );
2646 fprintf( stderr, " children=" );
2647 dump_varargs_user_handles( cur_size );
2650 static void dump_get_window_children_from_point_request( const struct get_window_children_from_point_request *req )
2652 fprintf( stderr, " parent=%p,", req->parent );
2653 fprintf( stderr, " x=%d,", req->x );
2654 fprintf( stderr, " y=%d", req->y );
2657 static void dump_get_window_children_from_point_reply( const struct get_window_children_from_point_reply *req )
2659 fprintf( stderr, " count=%d,", req->count );
2660 fprintf( stderr, " children=" );
2661 dump_varargs_user_handles( cur_size );
2664 static void dump_get_window_tree_request( const struct get_window_tree_request *req )
2666 fprintf( stderr, " handle=%p", req->handle );
2669 static void dump_get_window_tree_reply( const struct get_window_tree_reply *req )
2671 fprintf( stderr, " parent=%p,", req->parent );
2672 fprintf( stderr, " owner=%p,", req->owner );
2673 fprintf( stderr, " next_sibling=%p,", req->next_sibling );
2674 fprintf( stderr, " prev_sibling=%p,", req->prev_sibling );
2675 fprintf( stderr, " first_sibling=%p,", req->first_sibling );
2676 fprintf( stderr, " last_sibling=%p,", req->last_sibling );
2677 fprintf( stderr, " first_child=%p,", req->first_child );
2678 fprintf( stderr, " last_child=%p", req->last_child );
2681 static void dump_set_window_pos_request( const struct set_window_pos_request *req )
2683 fprintf( stderr, " flags=%08x,", req->flags );
2684 fprintf( stderr, " handle=%p,", req->handle );
2685 fprintf( stderr, " previous=%p,", req->previous );
2686 fprintf( stderr, " window=" );
2687 dump_rectangle( &req->window );
2688 fprintf( stderr, "," );
2689 fprintf( stderr, " client=" );
2690 dump_rectangle( &req->client );
2691 fprintf( stderr, "," );
2692 fprintf( stderr, " valid=" );
2693 dump_varargs_rectangles( cur_size );
2696 static void dump_set_window_pos_reply( const struct set_window_pos_reply *req )
2698 fprintf( stderr, " new_style=%08x,", req->new_style );
2699 fprintf( stderr, " new_ex_style=%08x", req->new_ex_style );
2702 static void dump_get_window_rectangles_request( const struct get_window_rectangles_request *req )
2704 fprintf( stderr, " handle=%p", req->handle );
2707 static void dump_get_window_rectangles_reply( const struct get_window_rectangles_reply *req )
2709 fprintf( stderr, " window=" );
2710 dump_rectangle( &req->window );
2711 fprintf( stderr, "," );
2712 fprintf( stderr, " visible=" );
2713 dump_rectangle( &req->visible );
2714 fprintf( stderr, "," );
2715 fprintf( stderr, " client=" );
2716 dump_rectangle( &req->client );
2719 static void dump_get_window_text_request( const struct get_window_text_request *req )
2721 fprintf( stderr, " handle=%p", req->handle );
2724 static void dump_get_window_text_reply( const struct get_window_text_reply *req )
2726 fprintf( stderr, " text=" );
2727 dump_varargs_unicode_str( cur_size );
2730 static void dump_set_window_text_request( const struct set_window_text_request *req )
2732 fprintf( stderr, " handle=%p,", req->handle );
2733 fprintf( stderr, " text=" );
2734 dump_varargs_unicode_str( cur_size );
2737 static void dump_get_windows_offset_request( const struct get_windows_offset_request *req )
2739 fprintf( stderr, " from=%p,", req->from );
2740 fprintf( stderr, " to=%p", req->to );
2743 static void dump_get_windows_offset_reply( const struct get_windows_offset_reply *req )
2745 fprintf( stderr, " x=%d,", req->x );
2746 fprintf( stderr, " y=%d", req->y );
2749 static void dump_get_visible_region_request( const struct get_visible_region_request *req )
2751 fprintf( stderr, " window=%p,", req->window );
2752 fprintf( stderr, " flags=%08x", req->flags );
2755 static void dump_get_visible_region_reply( const struct get_visible_region_reply *req )
2757 fprintf( stderr, " top_win=%p,", req->top_win );
2758 fprintf( stderr, " top_rect=" );
2759 dump_rectangle( &req->top_rect );
2760 fprintf( stderr, "," );
2761 fprintf( stderr, " win_rect=" );
2762 dump_rectangle( &req->win_rect );
2763 fprintf( stderr, "," );
2764 fprintf( stderr, " total_size=%u,", req->total_size );
2765 fprintf( stderr, " region=" );
2766 dump_varargs_rectangles( cur_size );
2769 static void dump_get_window_region_request( const struct get_window_region_request *req )
2771 fprintf( stderr, " window=%p", req->window );
2774 static void dump_get_window_region_reply( const struct get_window_region_reply *req )
2776 fprintf( stderr, " total_size=%u,", req->total_size );
2777 fprintf( stderr, " region=" );
2778 dump_varargs_rectangles( cur_size );
2781 static void dump_set_window_region_request( const struct set_window_region_request *req )
2783 fprintf( stderr, " window=%p,", req->window );
2784 fprintf( stderr, " redraw=%d,", req->redraw );
2785 fprintf( stderr, " region=" );
2786 dump_varargs_rectangles( cur_size );
2789 static void dump_get_update_region_request( const struct get_update_region_request *req )
2791 fprintf( stderr, " window=%p,", req->window );
2792 fprintf( stderr, " from_child=%p,", req->from_child );
2793 fprintf( stderr, " flags=%08x", req->flags );
2796 static void dump_get_update_region_reply( const struct get_update_region_reply *req )
2798 fprintf( stderr, " child=%p,", req->child );
2799 fprintf( stderr, " flags=%08x,", req->flags );
2800 fprintf( stderr, " total_size=%u,", req->total_size );
2801 fprintf( stderr, " region=" );
2802 dump_varargs_rectangles( cur_size );
2805 static void dump_update_window_zorder_request( const struct update_window_zorder_request *req )
2807 fprintf( stderr, " window=%p,", req->window );
2808 fprintf( stderr, " rect=" );
2809 dump_rectangle( &req->rect );
2812 static void dump_redraw_window_request( const struct redraw_window_request *req )
2814 fprintf( stderr, " window=%p,", req->window );
2815 fprintf( stderr, " flags=%08x,", req->flags );
2816 fprintf( stderr, " region=" );
2817 dump_varargs_rectangles( cur_size );
2820 static void dump_set_window_property_request( const struct set_window_property_request *req )
2822 fprintf( stderr, " window=%p,", req->window );
2823 fprintf( stderr, " atom=%04x,", req->atom );
2824 fprintf( stderr, " handle=%p,", req->handle );
2825 fprintf( stderr, " name=" );
2826 dump_varargs_unicode_str( cur_size );
2829 static void dump_remove_window_property_request( const struct remove_window_property_request *req )
2831 fprintf( stderr, " window=%p,", req->window );
2832 fprintf( stderr, " atom=%04x,", req->atom );
2833 fprintf( stderr, " name=" );
2834 dump_varargs_unicode_str( cur_size );
2837 static void dump_remove_window_property_reply( const struct remove_window_property_reply *req )
2839 fprintf( stderr, " handle=%p", req->handle );
2842 static void dump_get_window_property_request( const struct get_window_property_request *req )
2844 fprintf( stderr, " window=%p,", req->window );
2845 fprintf( stderr, " atom=%04x,", req->atom );
2846 fprintf( stderr, " name=" );
2847 dump_varargs_unicode_str( cur_size );
2850 static void dump_get_window_property_reply( const struct get_window_property_reply *req )
2852 fprintf( stderr, " handle=%p", req->handle );
2855 static void dump_get_window_properties_request( const struct get_window_properties_request *req )
2857 fprintf( stderr, " window=%p", req->window );
2860 static void dump_get_window_properties_reply( const struct get_window_properties_reply *req )
2862 fprintf( stderr, " total=%d,", req->total );
2863 fprintf( stderr, " props=" );
2864 dump_varargs_properties( cur_size );
2867 static void dump_create_winstation_request( const struct create_winstation_request *req )
2869 fprintf( stderr, " flags=%08x,", req->flags );
2870 fprintf( stderr, " access=%08x,", req->access );
2871 fprintf( stderr, " attributes=%08x,", req->attributes );
2872 fprintf( stderr, " name=" );
2873 dump_varargs_unicode_str( cur_size );
2876 static void dump_create_winstation_reply( const struct create_winstation_reply *req )
2878 fprintf( stderr, " handle=%p", req->handle );
2881 static void dump_open_winstation_request( const struct open_winstation_request *req )
2883 fprintf( stderr, " access=%08x,", req->access );
2884 fprintf( stderr, " attributes=%08x,", req->attributes );
2885 fprintf( stderr, " name=" );
2886 dump_varargs_unicode_str( cur_size );
2889 static void dump_open_winstation_reply( const struct open_winstation_reply *req )
2891 fprintf( stderr, " handle=%p", req->handle );
2894 static void dump_close_winstation_request( const struct close_winstation_request *req )
2896 fprintf( stderr, " handle=%p", req->handle );
2899 static void dump_get_process_winstation_request( const struct get_process_winstation_request *req )
2903 static void dump_get_process_winstation_reply( const struct get_process_winstation_reply *req )
2905 fprintf( stderr, " handle=%p", req->handle );
2908 static void dump_set_process_winstation_request( const struct set_process_winstation_request *req )
2910 fprintf( stderr, " handle=%p", req->handle );
2913 static void dump_create_desktop_request( const struct create_desktop_request *req )
2915 fprintf( stderr, " flags=%08x,", req->flags );
2916 fprintf( stderr, " access=%08x,", req->access );
2917 fprintf( stderr, " attributes=%08x,", req->attributes );
2918 fprintf( stderr, " name=" );
2919 dump_varargs_unicode_str( cur_size );
2922 static void dump_create_desktop_reply( const struct create_desktop_reply *req )
2924 fprintf( stderr, " handle=%p", req->handle );
2927 static void dump_open_desktop_request( const struct open_desktop_request *req )
2929 fprintf( stderr, " flags=%08x,", req->flags );
2930 fprintf( stderr, " access=%08x,", req->access );
2931 fprintf( stderr, " attributes=%08x,", req->attributes );
2932 fprintf( stderr, " name=" );
2933 dump_varargs_unicode_str( cur_size );
2936 static void dump_open_desktop_reply( const struct open_desktop_reply *req )
2938 fprintf( stderr, " handle=%p", req->handle );
2941 static void dump_close_desktop_request( const struct close_desktop_request *req )
2943 fprintf( stderr, " handle=%p", req->handle );
2946 static void dump_get_thread_desktop_request( const struct get_thread_desktop_request *req )
2948 fprintf( stderr, " tid=%04x", req->tid );
2951 static void dump_get_thread_desktop_reply( const struct get_thread_desktop_reply *req )
2953 fprintf( stderr, " handle=%p", req->handle );
2956 static void dump_set_thread_desktop_request( const struct set_thread_desktop_request *req )
2958 fprintf( stderr, " handle=%p", req->handle );
2961 static void dump_set_user_object_info_request( const struct set_user_object_info_request *req )
2963 fprintf( stderr, " handle=%p,", req->handle );
2964 fprintf( stderr, " flags=%08x,", req->flags );
2965 fprintf( stderr, " obj_flags=%08x", req->obj_flags );
2968 static void dump_set_user_object_info_reply( const struct set_user_object_info_reply *req )
2970 fprintf( stderr, " is_desktop=%d,", req->is_desktop );
2971 fprintf( stderr, " old_obj_flags=%08x,", req->old_obj_flags );
2972 fprintf( stderr, " name=" );
2973 dump_varargs_unicode_str( cur_size );
2976 static void dump_attach_thread_input_request( const struct attach_thread_input_request *req )
2978 fprintf( stderr, " tid_from=%04x,", req->tid_from );
2979 fprintf( stderr, " tid_to=%04x,", req->tid_to );
2980 fprintf( stderr, " attach=%d", req->attach );
2983 static void dump_get_thread_input_request( const struct get_thread_input_request *req )
2985 fprintf( stderr, " tid=%04x", req->tid );
2988 static void dump_get_thread_input_reply( const struct get_thread_input_reply *req )
2990 fprintf( stderr, " focus=%p,", req->focus );
2991 fprintf( stderr, " capture=%p,", req->capture );
2992 fprintf( stderr, " active=%p,", req->active );
2993 fprintf( stderr, " foreground=%p,", req->foreground );
2994 fprintf( stderr, " menu_owner=%p,", req->menu_owner );
2995 fprintf( stderr, " move_size=%p,", req->move_size );
2996 fprintf( stderr, " caret=%p,", req->caret );
2997 fprintf( stderr, " rect=" );
2998 dump_rectangle( &req->rect );
3001 static void dump_get_last_input_time_request( const struct get_last_input_time_request *req )
3005 static void dump_get_last_input_time_reply( const struct get_last_input_time_reply *req )
3007 fprintf( stderr, " time=%08x", req->time );
3010 static void dump_get_key_state_request( const struct get_key_state_request *req )
3012 fprintf( stderr, " tid=%04x,", req->tid );
3013 fprintf( stderr, " key=%d", req->key );
3016 static void dump_get_key_state_reply( const struct get_key_state_reply *req )
3018 fprintf( stderr, " state=%02x,", req->state );
3019 fprintf( stderr, " keystate=" );
3020 dump_varargs_bytes( cur_size );
3023 static void dump_set_key_state_request( const struct set_key_state_request *req )
3025 fprintf( stderr, " tid=%04x,", req->tid );
3026 fprintf( stderr, " keystate=" );
3027 dump_varargs_bytes( cur_size );
3030 static void dump_set_foreground_window_request( const struct set_foreground_window_request *req )
3032 fprintf( stderr, " handle=%p", req->handle );
3035 static void dump_set_foreground_window_reply( const struct set_foreground_window_reply *req )
3037 fprintf( stderr, " previous=%p,", req->previous );
3038 fprintf( stderr, " send_msg_old=%d,", req->send_msg_old );
3039 fprintf( stderr, " send_msg_new=%d", req->send_msg_new );
3042 static void dump_set_focus_window_request( const struct set_focus_window_request *req )
3044 fprintf( stderr, " handle=%p", req->handle );
3047 static void dump_set_focus_window_reply( const struct set_focus_window_reply *req )
3049 fprintf( stderr, " previous=%p", req->previous );
3052 static void dump_set_active_window_request( const struct set_active_window_request *req )
3054 fprintf( stderr, " handle=%p", req->handle );
3057 static void dump_set_active_window_reply( const struct set_active_window_reply *req )
3059 fprintf( stderr, " previous=%p", req->previous );
3062 static void dump_set_capture_window_request( const struct set_capture_window_request *req )
3064 fprintf( stderr, " handle=%p,", req->handle );
3065 fprintf( stderr, " flags=%08x", req->flags );
3068 static void dump_set_capture_window_reply( const struct set_capture_window_reply *req )
3070 fprintf( stderr, " previous=%p,", req->previous );
3071 fprintf( stderr, " full_handle=%p", req->full_handle );
3074 static void dump_set_caret_window_request( const struct set_caret_window_request *req )
3076 fprintf( stderr, " handle=%p,", req->handle );
3077 fprintf( stderr, " width=%d,", req->width );
3078 fprintf( stderr, " height=%d", req->height );
3081 static void dump_set_caret_window_reply( const struct set_caret_window_reply *req )
3083 fprintf( stderr, " previous=%p,", req->previous );
3084 fprintf( stderr, " old_rect=" );
3085 dump_rectangle( &req->old_rect );
3086 fprintf( stderr, "," );
3087 fprintf( stderr, " old_hide=%d,", req->old_hide );
3088 fprintf( stderr, " old_state=%d", req->old_state );
3091 static void dump_set_caret_info_request( const struct set_caret_info_request *req )
3093 fprintf( stderr, " flags=%08x,", req->flags );
3094 fprintf( stderr, " handle=%p,", req->handle );
3095 fprintf( stderr, " x=%d,", req->x );
3096 fprintf( stderr, " y=%d,", req->y );
3097 fprintf( stderr, " hide=%d,", req->hide );
3098 fprintf( stderr, " state=%d", req->state );
3101 static void dump_set_caret_info_reply( const struct set_caret_info_reply *req )
3103 fprintf( stderr, " full_handle=%p,", req->full_handle );
3104 fprintf( stderr, " old_rect=" );
3105 dump_rectangle( &req->old_rect );
3106 fprintf( stderr, "," );
3107 fprintf( stderr, " old_hide=%d,", req->old_hide );
3108 fprintf( stderr, " old_state=%d", req->old_state );
3111 static void dump_set_hook_request( const struct set_hook_request *req )
3113 fprintf( stderr, " id=%d,", req->id );
3114 fprintf( stderr, " pid=%04x,", req->pid );
3115 fprintf( stderr, " tid=%04x,", req->tid );
3116 fprintf( stderr, " event_min=%d,", req->event_min );
3117 fprintf( stderr, " event_max=%d,", req->event_max );
3118 fprintf( stderr, " flags=%d,", req->flags );
3119 fprintf( stderr, " proc=%p,", req->proc );
3120 fprintf( stderr, " unicode=%d,", req->unicode );
3121 fprintf( stderr, " module=" );
3122 dump_varargs_unicode_str( cur_size );
3125 static void dump_set_hook_reply( const struct set_hook_reply *req )
3127 fprintf( stderr, " handle=%p,", req->handle );
3128 fprintf( stderr, " active_hooks=%08x", req->active_hooks );
3131 static void dump_remove_hook_request( const struct remove_hook_request *req )
3133 fprintf( stderr, " handle=%p,", req->handle );
3134 fprintf( stderr, " id=%d,", req->id );
3135 fprintf( stderr, " proc=%p", req->proc );
3138 static void dump_remove_hook_reply( const struct remove_hook_reply *req )
3140 fprintf( stderr, " active_hooks=%08x", req->active_hooks );
3143 static void dump_start_hook_chain_request( const struct start_hook_chain_request *req )
3145 fprintf( stderr, " id=%d,", req->id );
3146 fprintf( stderr, " event=%d,", req->event );
3147 fprintf( stderr, " window=%p,", req->window );
3148 fprintf( stderr, " object_id=%d,", req->object_id );
3149 fprintf( stderr, " child_id=%d", req->child_id );
3152 static void dump_start_hook_chain_reply( const struct start_hook_chain_reply *req )
3154 fprintf( stderr, " handle=%p,", req->handle );
3155 fprintf( stderr, " pid=%04x,", req->pid );
3156 fprintf( stderr, " tid=%04x,", req->tid );
3157 fprintf( stderr, " proc=%p,", req->proc );
3158 fprintf( stderr, " unicode=%d,", req->unicode );
3159 fprintf( stderr, " active_hooks=%08x,", req->active_hooks );
3160 fprintf( stderr, " module=" );
3161 dump_varargs_unicode_str( cur_size );
3164 static void dump_finish_hook_chain_request( const struct finish_hook_chain_request *req )
3166 fprintf( stderr, " id=%d", req->id );
3169 static void dump_get_hook_info_request( const struct get_hook_info_request *req )
3171 fprintf( stderr, " handle=%p,", req->handle );
3172 fprintf( stderr, " get_next=%d,", req->get_next );
3173 fprintf( stderr, " event=%d,", req->event );
3174 fprintf( stderr, " window=%p,", req->window );
3175 fprintf( stderr, " object_id=%d,", req->object_id );
3176 fprintf( stderr, " child_id=%d", req->child_id );
3179 static void dump_get_hook_info_reply( const struct get_hook_info_reply *req )
3181 fprintf( stderr, " handle=%p,", req->handle );
3182 fprintf( stderr, " id=%d,", req->id );
3183 fprintf( stderr, " pid=%04x,", req->pid );
3184 fprintf( stderr, " tid=%04x,", req->tid );
3185 fprintf( stderr, " proc=%p,", req->proc );
3186 fprintf( stderr, " unicode=%d,", req->unicode );
3187 fprintf( stderr, " module=" );
3188 dump_varargs_unicode_str( cur_size );
3191 static void dump_create_class_request( const struct create_class_request *req )
3193 fprintf( stderr, " local=%d,", req->local );
3194 fprintf( stderr, " atom=%04x,", req->atom );
3195 fprintf( stderr, " style=%08x,", req->style );
3196 fprintf( stderr, " instance=%p,", req->instance );
3197 fprintf( stderr, " extra=%d,", req->extra );
3198 fprintf( stderr, " win_extra=%d,", req->win_extra );
3199 fprintf( stderr, " client_ptr=%p,", req->client_ptr );
3200 fprintf( stderr, " name=" );
3201 dump_varargs_unicode_str( cur_size );
3204 static void dump_create_class_reply( const struct create_class_reply *req )
3206 fprintf( stderr, " atom=%04x", req->atom );
3209 static void dump_destroy_class_request( const struct destroy_class_request *req )
3211 fprintf( stderr, " atom=%04x,", req->atom );
3212 fprintf( stderr, " instance=%p,", req->instance );
3213 fprintf( stderr, " name=" );
3214 dump_varargs_unicode_str( cur_size );
3217 static void dump_destroy_class_reply( const struct destroy_class_reply *req )
3219 fprintf( stderr, " client_ptr=%p", req->client_ptr );
3222 static void dump_set_class_info_request( const struct set_class_info_request *req )
3224 fprintf( stderr, " window=%p,", req->window );
3225 fprintf( stderr, " flags=%08x,", req->flags );
3226 fprintf( stderr, " atom=%04x,", req->atom );
3227 fprintf( stderr, " style=%08x,", req->style );
3228 fprintf( stderr, " win_extra=%d,", req->win_extra );
3229 fprintf( stderr, " instance=%p,", req->instance );
3230 fprintf( stderr, " extra_offset=%d,", req->extra_offset );
3231 fprintf( stderr, " extra_size=%u,", req->extra_size );
3232 fprintf( stderr, " extra_value=%lx", req->extra_value );
3235 static void dump_set_class_info_reply( const struct set_class_info_reply *req )
3237 fprintf( stderr, " old_atom=%04x,", req->old_atom );
3238 fprintf( stderr, " old_style=%08x,", req->old_style );
3239 fprintf( stderr, " old_extra=%d,", req->old_extra );
3240 fprintf( stderr, " old_win_extra=%d,", req->old_win_extra );
3241 fprintf( stderr, " old_instance=%p,", req->old_instance );
3242 fprintf( stderr, " old_extra_value=%lx", req->old_extra_value );
3245 static void dump_set_clipboard_info_request( const struct set_clipboard_info_request *req )
3247 fprintf( stderr, " flags=%08x,", req->flags );
3248 fprintf( stderr, " clipboard=%p,", req->clipboard );
3249 fprintf( stderr, " owner=%p,", req->owner );
3250 fprintf( stderr, " viewer=%p,", req->viewer );
3251 fprintf( stderr, " seqno=%08x", req->seqno );
3254 static void dump_set_clipboard_info_reply( const struct set_clipboard_info_reply *req )
3256 fprintf( stderr, " flags=%08x,", req->flags );
3257 fprintf( stderr, " old_clipboard=%p,", req->old_clipboard );
3258 fprintf( stderr, " old_owner=%p,", req->old_owner );
3259 fprintf( stderr, " old_viewer=%p,", req->old_viewer );
3260 fprintf( stderr, " seqno=%08x", req->seqno );
3263 static void dump_open_token_request( const struct open_token_request *req )
3265 fprintf( stderr, " handle=%p,", req->handle );
3266 fprintf( stderr, " access=%08x,", req->access );
3267 fprintf( stderr, " attributes=%08x,", req->attributes );
3268 fprintf( stderr, " flags=%08x", req->flags );
3271 static void dump_open_token_reply( const struct open_token_reply *req )
3273 fprintf( stderr, " token=%p", req->token );
3276 static void dump_set_global_windows_request( const struct set_global_windows_request *req )
3278 fprintf( stderr, " flags=%08x,", req->flags );
3279 fprintf( stderr, " shell_window=%p,", req->shell_window );
3280 fprintf( stderr, " shell_listview=%p,", req->shell_listview );
3281 fprintf( stderr, " progman_window=%p,", req->progman_window );
3282 fprintf( stderr, " taskman_window=%p", req->taskman_window );
3285 static void dump_set_global_windows_reply( const struct set_global_windows_reply *req )
3287 fprintf( stderr, " old_shell_window=%p,", req->old_shell_window );
3288 fprintf( stderr, " old_shell_listview=%p,", req->old_shell_listview );
3289 fprintf( stderr, " old_progman_window=%p,", req->old_progman_window );
3290 fprintf( stderr, " old_taskman_window=%p", req->old_taskman_window );
3293 static void dump_adjust_token_privileges_request( const struct adjust_token_privileges_request *req )
3295 fprintf( stderr, " handle=%p,", req->handle );
3296 fprintf( stderr, " disable_all=%d,", req->disable_all );
3297 fprintf( stderr, " get_modified_state=%d,", req->get_modified_state );
3298 fprintf( stderr, " privileges=" );
3299 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
3302 static void dump_adjust_token_privileges_reply( const struct adjust_token_privileges_reply *req )
3304 fprintf( stderr, " len=%08x,", req->len );
3305 fprintf( stderr, " privileges=" );
3306 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
3309 static void dump_get_token_privileges_request( const struct get_token_privileges_request *req )
3311 fprintf( stderr, " handle=%p", req->handle );
3314 static void dump_get_token_privileges_reply( const struct get_token_privileges_reply *req )
3316 fprintf( stderr, " len=%08x,", req->len );
3317 fprintf( stderr, " privileges=" );
3318 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
3321 static void dump_check_token_privileges_request( const struct check_token_privileges_request *req )
3323 fprintf( stderr, " handle=%p,", req->handle );
3324 fprintf( stderr, " all_required=%d,", req->all_required );
3325 fprintf( stderr, " privileges=" );
3326 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
3329 static void dump_check_token_privileges_reply( const struct check_token_privileges_reply *req )
3331 fprintf( stderr, " has_privileges=%d,", req->has_privileges );
3332 fprintf( stderr, " privileges=" );
3333 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
3336 static void dump_duplicate_token_request( const struct duplicate_token_request *req )
3338 fprintf( stderr, " handle=%p,", req->handle );
3339 fprintf( stderr, " access=%08x,", req->access );
3340 fprintf( stderr, " attributes=%08x,", req->attributes );
3341 fprintf( stderr, " primary=%d,", req->primary );
3342 fprintf( stderr, " impersonation_level=%d", req->impersonation_level );
3345 static void dump_duplicate_token_reply( const struct duplicate_token_reply *req )
3347 fprintf( stderr, " new_handle=%p", req->new_handle );
3350 static void dump_access_check_request( const struct access_check_request *req )
3352 fprintf( stderr, " handle=%p,", req->handle );
3353 fprintf( stderr, " desired_access=%08x,", req->desired_access );
3354 fprintf( stderr, " mapping_read=%08x,", req->mapping_read );
3355 fprintf( stderr, " mapping_write=%08x,", req->mapping_write );
3356 fprintf( stderr, " mapping_execute=%08x,", req->mapping_execute );
3357 fprintf( stderr, " mapping_all=%08x,", req->mapping_all );
3358 fprintf( stderr, " sd=" );
3359 dump_varargs_security_descriptor( cur_size );
3362 static void dump_access_check_reply( const struct access_check_reply *req )
3364 fprintf( stderr, " access_granted=%08x,", req->access_granted );
3365 fprintf( stderr, " access_status=%08x,", req->access_status );
3366 fprintf( stderr, " privileges_len=%08x,", req->privileges_len );
3367 fprintf( stderr, " privileges=" );
3368 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
3371 static void dump_get_token_user_request( const struct get_token_user_request *req )
3373 fprintf( stderr, " handle=%p", req->handle );
3376 static void dump_get_token_user_reply( const struct get_token_user_reply *req )
3378 fprintf( stderr, " user_len=%u,", req->user_len );
3379 fprintf( stderr, " user=" );
3380 dump_varargs_SID( cur_size );
3383 static void dump_get_token_groups_request( const struct get_token_groups_request *req )
3385 fprintf( stderr, " handle=%p", req->handle );
3388 static void dump_get_token_groups_reply( const struct get_token_groups_reply *req )
3390 fprintf( stderr, " user_len=%u,", req->user_len );
3391 fprintf( stderr, " user=" );
3392 dump_varargs_token_groups( cur_size );
3395 static void dump_set_security_object_request( const struct set_security_object_request *req )
3397 fprintf( stderr, " handle=%p,", req->handle );
3398 fprintf( stderr, " security_info=%08x,", req->security_info );
3399 fprintf( stderr, " sd=" );
3400 dump_varargs_security_descriptor( cur_size );
3403 static void dump_get_security_object_request( const struct get_security_object_request *req )
3405 fprintf( stderr, " handle=%p,", req->handle );
3406 fprintf( stderr, " security_info=%08x", req->security_info );
3409 static void dump_get_security_object_reply( const struct get_security_object_reply *req )
3411 fprintf( stderr, " sd_len=%08x,", req->sd_len );
3412 fprintf( stderr, " sd=" );
3413 dump_varargs_security_descriptor( cur_size );
3416 static void dump_create_mailslot_request( const struct create_mailslot_request *req )
3418 fprintf( stderr, " access=%08x,", req->access );
3419 fprintf( stderr, " attributes=%08x,", req->attributes );
3420 fprintf( stderr, " rootdir=%p,", req->rootdir );
3421 fprintf( stderr, " max_msgsize=%08x,", req->max_msgsize );
3422 fprintf( stderr, " read_timeout=" );
3423 dump_timeout( &req->read_timeout );
3424 fprintf( stderr, "," );
3425 fprintf( stderr, " name=" );
3426 dump_varargs_unicode_str( cur_size );
3429 static void dump_create_mailslot_reply( const struct create_mailslot_reply *req )
3431 fprintf( stderr, " handle=%p", req->handle );
3434 static void dump_set_mailslot_info_request( const struct set_mailslot_info_request *req )
3436 fprintf( stderr, " handle=%p,", req->handle );
3437 fprintf( stderr, " flags=%08x,", req->flags );
3438 fprintf( stderr, " read_timeout=" );
3439 dump_timeout( &req->read_timeout );
3442 static void dump_set_mailslot_info_reply( const struct set_mailslot_info_reply *req )
3444 fprintf( stderr, " max_msgsize=%08x,", req->max_msgsize );
3445 fprintf( stderr, " read_timeout=" );
3446 dump_timeout( &req->read_timeout );
3449 static void dump_create_directory_request( const struct create_directory_request *req )
3451 fprintf( stderr, " access=%08x,", req->access );
3452 fprintf( stderr, " attributes=%08x,", req->attributes );
3453 fprintf( stderr, " rootdir=%p,", req->rootdir );
3454 fprintf( stderr, " directory_name=" );
3455 dump_varargs_unicode_str( cur_size );
3458 static void dump_create_directory_reply( const struct create_directory_reply *req )
3460 fprintf( stderr, " handle=%p", req->handle );
3463 static void dump_open_directory_request( const struct open_directory_request *req )
3465 fprintf( stderr, " access=%08x,", req->access );
3466 fprintf( stderr, " attributes=%08x,", req->attributes );
3467 fprintf( stderr, " rootdir=%p,", req->rootdir );
3468 fprintf( stderr, " directory_name=" );
3469 dump_varargs_unicode_str( cur_size );
3472 static void dump_open_directory_reply( const struct open_directory_reply *req )
3474 fprintf( stderr, " handle=%p", req->handle );
3477 static void dump_create_symlink_request( const struct create_symlink_request *req )
3479 fprintf( stderr, " access=%08x,", req->access );
3480 fprintf( stderr, " attributes=%08x,", req->attributes );
3481 fprintf( stderr, " rootdir=%p,", req->rootdir );
3482 fprintf( stderr, " name_len=%u,", req->name_len );
3483 fprintf( stderr, " name=" );
3484 dump_varargs_unicode_str( min(cur_size,req->name_len) );
3485 fputc( ',', stderr );
3486 fprintf( stderr, " target_name=" );
3487 dump_varargs_unicode_str( cur_size );
3490 static void dump_create_symlink_reply( const struct create_symlink_reply *req )
3492 fprintf( stderr, " handle=%p", req->handle );
3495 static void dump_open_symlink_request( const struct open_symlink_request *req )
3497 fprintf( stderr, " access=%08x,", req->access );
3498 fprintf( stderr, " attributes=%08x,", req->attributes );
3499 fprintf( stderr, " rootdir=%p,", req->rootdir );
3500 fprintf( stderr, " name=" );
3501 dump_varargs_unicode_str( cur_size );
3504 static void dump_open_symlink_reply( const struct open_symlink_reply *req )
3506 fprintf( stderr, " handle=%p", req->handle );
3509 static void dump_query_symlink_request( const struct query_symlink_request *req )
3511 fprintf( stderr, " handle=%p", req->handle );
3514 static void dump_query_symlink_reply( const struct query_symlink_reply *req )
3516 fprintf( stderr, " target_name=" );
3517 dump_varargs_unicode_str( cur_size );
3520 static void dump_get_object_info_request( const struct get_object_info_request *req )
3522 fprintf( stderr, " handle=%p", req->handle );
3525 static void dump_get_object_info_reply( const struct get_object_info_reply *req )
3527 fprintf( stderr, " access=%08x,", req->access );
3528 fprintf( stderr, " ref_count=%08x", req->ref_count );
3531 static void dump_get_token_impersonation_level_request( const struct get_token_impersonation_level_request *req )
3533 fprintf( stderr, " handle=%p", req->handle );
3536 static void dump_get_token_impersonation_level_reply( const struct get_token_impersonation_level_reply *req )
3538 fprintf( stderr, " impersonation_level=%d", req->impersonation_level );
3541 static void dump_allocate_locally_unique_id_request( const struct allocate_locally_unique_id_request *req )
3545 static void dump_allocate_locally_unique_id_reply( const struct allocate_locally_unique_id_reply *req )
3547 fprintf( stderr, " luid=" );
3548 dump_luid( &req->luid );
3551 static void dump_create_device_manager_request( const struct create_device_manager_request *req )
3553 fprintf( stderr, " access=%08x,", req->access );
3554 fprintf( stderr, " attributes=%08x", req->attributes );
3557 static void dump_create_device_manager_reply( const struct create_device_manager_reply *req )
3559 fprintf( stderr, " handle=%p", req->handle );
3562 static void dump_create_device_request( const struct create_device_request *req )
3564 fprintf( stderr, " access=%08x,", req->access );
3565 fprintf( stderr, " attributes=%08x,", req->attributes );
3566 fprintf( stderr, " rootdir=%p,", req->rootdir );
3567 fprintf( stderr, " manager=%p,", req->manager );
3568 fprintf( stderr, " user_ptr=%p,", req->user_ptr );
3569 fprintf( stderr, " name=" );
3570 dump_varargs_unicode_str( cur_size );
3573 static void dump_create_device_reply( const struct create_device_reply *req )
3575 fprintf( stderr, " handle=%p", req->handle );
3578 static void dump_delete_device_request( const struct delete_device_request *req )
3580 fprintf( stderr, " handle=%p", req->handle );
3583 static void dump_get_next_device_request_request( const struct get_next_device_request_request *req )
3585 fprintf( stderr, " manager=%p,", req->manager );
3586 fprintf( stderr, " prev=%p,", req->prev );
3587 fprintf( stderr, " status=%08x,", req->status );
3588 fprintf( stderr, " prev_data=" );
3589 dump_varargs_bytes( cur_size );
3592 static void dump_get_next_device_request_reply( const struct get_next_device_request_reply *req )
3594 fprintf( stderr, " next=%p,", req->next );
3595 fprintf( stderr, " code=" );
3596 dump_ioctl_code( &req->code );
3597 fprintf( stderr, "," );
3598 fprintf( stderr, " user_ptr=%p,", req->user_ptr );
3599 fprintf( stderr, " in_size=%u,", req->in_size );
3600 fprintf( stderr, " out_size=%u,", req->out_size );
3601 fprintf( stderr, " next_data=" );
3602 dump_varargs_bytes( cur_size );
3605 static void dump_make_process_system_request( const struct make_process_system_request *req )
3609 static void dump_make_process_system_reply( const struct make_process_system_reply *req )
3611 fprintf( stderr, " event=%p", req->event );
3614 static void dump_get_token_statistics_request( const struct get_token_statistics_request *req )
3616 fprintf( stderr, " handle=%p", req->handle );
3619 static void dump_get_token_statistics_reply( const struct get_token_statistics_reply *req )
3621 fprintf( stderr, " token_id=" );
3622 dump_luid( &req->token_id );
3623 fprintf( stderr, "," );
3624 fprintf( stderr, " modified_id=" );
3625 dump_luid( &req->modified_id );
3626 fprintf( stderr, "," );
3627 fprintf( stderr, " primary=%d,", req->primary );
3628 fprintf( stderr, " impersonation_level=%d,", req->impersonation_level );
3629 fprintf( stderr, " group_count=%d,", req->group_count );
3630 fprintf( stderr, " privilege_count=%d", req->privilege_count );
3633 static void dump_create_completion_request( const struct create_completion_request *req )
3635 fprintf( stderr, " access=%08x,", req->access );
3636 fprintf( stderr, " attributes=%08x,", req->attributes );
3637 fprintf( stderr, " concurrent=%08x,", req->concurrent );
3638 fprintf( stderr, " rootdir=%p,", req->rootdir );
3639 fprintf( stderr, " filename=" );
3640 dump_varargs_string( cur_size );
3643 static void dump_create_completion_reply( const struct create_completion_reply *req )
3645 fprintf( stderr, " handle=%p", req->handle );
3648 static void dump_open_completion_request( const struct open_completion_request *req )
3650 fprintf( stderr, " access=%08x,", req->access );
3651 fprintf( stderr, " attributes=%08x,", req->attributes );
3652 fprintf( stderr, " rootdir=%p,", req->rootdir );
3653 fprintf( stderr, " filename=" );
3654 dump_varargs_string( cur_size );
3657 static void dump_open_completion_reply( const struct open_completion_reply *req )
3659 fprintf( stderr, " handle=%p", req->handle );
3662 static void dump_add_completion_request( const struct add_completion_request *req )
3664 fprintf( stderr, " handle=%p,", req->handle );
3665 fprintf( stderr, " ckey=%lx,", req->ckey );
3666 fprintf( stderr, " cvalue=%lx,", req->cvalue );
3667 fprintf( stderr, " information=%lx,", req->information );
3668 fprintf( stderr, " status=%08x", req->status );
3671 static void dump_remove_completion_request( const struct remove_completion_request *req )
3673 fprintf( stderr, " handle=%p", req->handle );
3676 static void dump_remove_completion_reply( const struct remove_completion_reply *req )
3678 fprintf( stderr, " ckey=%lx,", req->ckey );
3679 fprintf( stderr, " cvalue=%lx,", req->cvalue );
3680 fprintf( stderr, " information=%lx,", req->information );
3681 fprintf( stderr, " status=%08x", req->status );
3684 static void dump_query_completion_request( const struct query_completion_request *req )
3686 fprintf( stderr, " handle=%p", req->handle );
3689 static void dump_query_completion_reply( const struct query_completion_reply *req )
3691 fprintf( stderr, " depth=%08x", req->depth );
3694 static void dump_set_completion_info_request( const struct set_completion_info_request *req )
3696 fprintf( stderr, " handle=%p,", req->handle );
3697 fprintf( stderr, " chandle=%p,", req->chandle );
3698 fprintf( stderr, " ckey=%lx", req->ckey );
3701 static const dump_func req_dumpers[REQ_NB_REQUESTS] = {
3702 (dump_func)dump_new_process_request,
3703 (dump_func)dump_get_new_process_info_request,
3704 (dump_func)dump_new_thread_request,
3705 (dump_func)dump_get_startup_info_request,
3706 (dump_func)dump_init_process_done_request,
3707 (dump_func)dump_init_thread_request,
3708 (dump_func)dump_terminate_process_request,
3709 (dump_func)dump_terminate_thread_request,
3710 (dump_func)dump_get_process_info_request,
3711 (dump_func)dump_set_process_info_request,
3712 (dump_func)dump_get_thread_info_request,
3713 (dump_func)dump_set_thread_info_request,
3714 (dump_func)dump_get_dll_info_request,
3715 (dump_func)dump_suspend_thread_request,
3716 (dump_func)dump_resume_thread_request,
3717 (dump_func)dump_load_dll_request,
3718 (dump_func)dump_unload_dll_request,
3719 (dump_func)dump_queue_apc_request,
3720 (dump_func)dump_get_apc_result_request,
3721 (dump_func)dump_close_handle_request,
3722 (dump_func)dump_set_handle_info_request,
3723 (dump_func)dump_dup_handle_request,
3724 (dump_func)dump_open_process_request,
3725 (dump_func)dump_open_thread_request,
3726 (dump_func)dump_select_request,
3727 (dump_func)dump_create_event_request,
3728 (dump_func)dump_event_op_request,
3729 (dump_func)dump_open_event_request,
3730 (dump_func)dump_create_mutex_request,
3731 (dump_func)dump_release_mutex_request,
3732 (dump_func)dump_open_mutex_request,
3733 (dump_func)dump_create_semaphore_request,
3734 (dump_func)dump_release_semaphore_request,
3735 (dump_func)dump_open_semaphore_request,
3736 (dump_func)dump_create_file_request,
3737 (dump_func)dump_open_file_object_request,
3738 (dump_func)dump_alloc_file_handle_request,
3739 (dump_func)dump_get_handle_fd_request,
3740 (dump_func)dump_flush_file_request,
3741 (dump_func)dump_lock_file_request,
3742 (dump_func)dump_unlock_file_request,
3743 (dump_func)dump_create_socket_request,
3744 (dump_func)dump_accept_socket_request,
3745 (dump_func)dump_set_socket_event_request,
3746 (dump_func)dump_get_socket_event_request,
3747 (dump_func)dump_enable_socket_event_request,
3748 (dump_func)dump_set_socket_deferred_request,
3749 (dump_func)dump_alloc_console_request,
3750 (dump_func)dump_free_console_request,
3751 (dump_func)dump_get_console_renderer_events_request,
3752 (dump_func)dump_open_console_request,
3753 (dump_func)dump_get_console_wait_event_request,
3754 (dump_func)dump_get_console_mode_request,
3755 (dump_func)dump_set_console_mode_request,
3756 (dump_func)dump_set_console_input_info_request,
3757 (dump_func)dump_get_console_input_info_request,
3758 (dump_func)dump_append_console_input_history_request,
3759 (dump_func)dump_get_console_input_history_request,
3760 (dump_func)dump_create_console_output_request,
3761 (dump_func)dump_set_console_output_info_request,
3762 (dump_func)dump_get_console_output_info_request,
3763 (dump_func)dump_write_console_input_request,
3764 (dump_func)dump_read_console_input_request,
3765 (dump_func)dump_write_console_output_request,
3766 (dump_func)dump_fill_console_output_request,
3767 (dump_func)dump_read_console_output_request,
3768 (dump_func)dump_move_console_output_request,
3769 (dump_func)dump_send_console_signal_request,
3770 (dump_func)dump_read_directory_changes_request,
3771 (dump_func)dump_read_change_request,
3772 (dump_func)dump_create_mapping_request,
3773 (dump_func)dump_open_mapping_request,
3774 (dump_func)dump_get_mapping_info_request,
3775 (dump_func)dump_create_snapshot_request,
3776 (dump_func)dump_next_process_request,
3777 (dump_func)dump_next_thread_request,
3778 (dump_func)dump_next_module_request,
3779 (dump_func)dump_wait_debug_event_request,
3780 (dump_func)dump_queue_exception_event_request,
3781 (dump_func)dump_get_exception_status_request,
3782 (dump_func)dump_output_debug_string_request,
3783 (dump_func)dump_continue_debug_event_request,
3784 (dump_func)dump_debug_process_request,
3785 (dump_func)dump_debug_break_request,
3786 (dump_func)dump_set_debugger_kill_on_exit_request,
3787 (dump_func)dump_read_process_memory_request,
3788 (dump_func)dump_write_process_memory_request,
3789 (dump_func)dump_create_key_request,
3790 (dump_func)dump_open_key_request,
3791 (dump_func)dump_delete_key_request,
3792 (dump_func)dump_flush_key_request,
3793 (dump_func)dump_enum_key_request,
3794 (dump_func)dump_set_key_value_request,
3795 (dump_func)dump_get_key_value_request,
3796 (dump_func)dump_enum_key_value_request,
3797 (dump_func)dump_delete_key_value_request,
3798 (dump_func)dump_load_registry_request,
3799 (dump_func)dump_unload_registry_request,
3800 (dump_func)dump_save_registry_request,
3801 (dump_func)dump_set_registry_notification_request,
3802 (dump_func)dump_create_timer_request,
3803 (dump_func)dump_open_timer_request,
3804 (dump_func)dump_set_timer_request,
3805 (dump_func)dump_cancel_timer_request,
3806 (dump_func)dump_get_timer_info_request,
3807 (dump_func)dump_get_thread_context_request,
3808 (dump_func)dump_set_thread_context_request,
3809 (dump_func)dump_get_selector_entry_request,
3810 (dump_func)dump_add_atom_request,
3811 (dump_func)dump_delete_atom_request,
3812 (dump_func)dump_find_atom_request,
3813 (dump_func)dump_get_atom_information_request,
3814 (dump_func)dump_set_atom_information_request,
3815 (dump_func)dump_empty_atom_table_request,
3816 (dump_func)dump_init_atom_table_request,
3817 (dump_func)dump_get_msg_queue_request,
3818 (dump_func)dump_set_queue_fd_request,
3819 (dump_func)dump_set_queue_mask_request,
3820 (dump_func)dump_get_queue_status_request,
3821 (dump_func)dump_get_process_idle_event_request,
3822 (dump_func)dump_send_message_request,
3823 (dump_func)dump_post_quit_message_request,
3824 (dump_func)dump_send_hardware_message_request,
3825 (dump_func)dump_get_message_request,
3826 (dump_func)dump_reply_message_request,
3827 (dump_func)dump_accept_hardware_message_request,
3828 (dump_func)dump_get_message_reply_request,
3829 (dump_func)dump_set_win_timer_request,
3830 (dump_func)dump_kill_win_timer_request,
3831 (dump_func)dump_get_serial_info_request,
3832 (dump_func)dump_set_serial_info_request,
3833 (dump_func)dump_register_async_request,
3834 (dump_func)dump_cancel_async_request,
3835 (dump_func)dump_ioctl_request,
3836 (dump_func)dump_get_ioctl_result_request,
3837 (dump_func)dump_create_named_pipe_request,
3838 (dump_func)dump_get_named_pipe_info_request,
3839 (dump_func)dump_create_window_request,
3840 (dump_func)dump_destroy_window_request,
3841 (dump_func)dump_get_desktop_window_request,
3842 (dump_func)dump_set_window_owner_request,
3843 (dump_func)dump_get_window_info_request,
3844 (dump_func)dump_set_window_info_request,
3845 (dump_func)dump_set_parent_request,
3846 (dump_func)dump_get_window_parents_request,
3847 (dump_func)dump_get_window_children_request,
3848 (dump_func)dump_get_window_children_from_point_request,
3849 (dump_func)dump_get_window_tree_request,
3850 (dump_func)dump_set_window_pos_request,
3851 (dump_func)dump_get_window_rectangles_request,
3852 (dump_func)dump_get_window_text_request,
3853 (dump_func)dump_set_window_text_request,
3854 (dump_func)dump_get_windows_offset_request,
3855 (dump_func)dump_get_visible_region_request,
3856 (dump_func)dump_get_window_region_request,
3857 (dump_func)dump_set_window_region_request,
3858 (dump_func)dump_get_update_region_request,
3859 (dump_func)dump_update_window_zorder_request,
3860 (dump_func)dump_redraw_window_request,
3861 (dump_func)dump_set_window_property_request,
3862 (dump_func)dump_remove_window_property_request,
3863 (dump_func)dump_get_window_property_request,
3864 (dump_func)dump_get_window_properties_request,
3865 (dump_func)dump_create_winstation_request,
3866 (dump_func)dump_open_winstation_request,
3867 (dump_func)dump_close_winstation_request,
3868 (dump_func)dump_get_process_winstation_request,
3869 (dump_func)dump_set_process_winstation_request,
3870 (dump_func)dump_create_desktop_request,
3871 (dump_func)dump_open_desktop_request,
3872 (dump_func)dump_close_desktop_request,
3873 (dump_func)dump_get_thread_desktop_request,
3874 (dump_func)dump_set_thread_desktop_request,
3875 (dump_func)dump_set_user_object_info_request,
3876 (dump_func)dump_attach_thread_input_request,
3877 (dump_func)dump_get_thread_input_request,
3878 (dump_func)dump_get_last_input_time_request,
3879 (dump_func)dump_get_key_state_request,
3880 (dump_func)dump_set_key_state_request,
3881 (dump_func)dump_set_foreground_window_request,
3882 (dump_func)dump_set_focus_window_request,
3883 (dump_func)dump_set_active_window_request,
3884 (dump_func)dump_set_capture_window_request,
3885 (dump_func)dump_set_caret_window_request,
3886 (dump_func)dump_set_caret_info_request,
3887 (dump_func)dump_set_hook_request,
3888 (dump_func)dump_remove_hook_request,
3889 (dump_func)dump_start_hook_chain_request,
3890 (dump_func)dump_finish_hook_chain_request,
3891 (dump_func)dump_get_hook_info_request,
3892 (dump_func)dump_create_class_request,
3893 (dump_func)dump_destroy_class_request,
3894 (dump_func)dump_set_class_info_request,
3895 (dump_func)dump_set_clipboard_info_request,
3896 (dump_func)dump_open_token_request,
3897 (dump_func)dump_set_global_windows_request,
3898 (dump_func)dump_adjust_token_privileges_request,
3899 (dump_func)dump_get_token_privileges_request,
3900 (dump_func)dump_check_token_privileges_request,
3901 (dump_func)dump_duplicate_token_request,
3902 (dump_func)dump_access_check_request,
3903 (dump_func)dump_get_token_user_request,
3904 (dump_func)dump_get_token_groups_request,
3905 (dump_func)dump_set_security_object_request,
3906 (dump_func)dump_get_security_object_request,
3907 (dump_func)dump_create_mailslot_request,
3908 (dump_func)dump_set_mailslot_info_request,
3909 (dump_func)dump_create_directory_request,
3910 (dump_func)dump_open_directory_request,
3911 (dump_func)dump_create_symlink_request,
3912 (dump_func)dump_open_symlink_request,
3913 (dump_func)dump_query_symlink_request,
3914 (dump_func)dump_get_object_info_request,
3915 (dump_func)dump_get_token_impersonation_level_request,
3916 (dump_func)dump_allocate_locally_unique_id_request,
3917 (dump_func)dump_create_device_manager_request,
3918 (dump_func)dump_create_device_request,
3919 (dump_func)dump_delete_device_request,
3920 (dump_func)dump_get_next_device_request_request,
3921 (dump_func)dump_make_process_system_request,
3922 (dump_func)dump_get_token_statistics_request,
3923 (dump_func)dump_create_completion_request,
3924 (dump_func)dump_open_completion_request,
3925 (dump_func)dump_add_completion_request,
3926 (dump_func)dump_remove_completion_request,
3927 (dump_func)dump_query_completion_request,
3928 (dump_func)dump_set_completion_info_request,
3931 static const dump_func reply_dumpers[REQ_NB_REQUESTS] = {
3932 (dump_func)dump_new_process_reply,
3933 (dump_func)dump_get_new_process_info_reply,
3934 (dump_func)dump_new_thread_reply,
3935 (dump_func)dump_get_startup_info_reply,
3937 (dump_func)dump_init_thread_reply,
3938 (dump_func)dump_terminate_process_reply,
3939 (dump_func)dump_terminate_thread_reply,
3940 (dump_func)dump_get_process_info_reply,
3942 (dump_func)dump_get_thread_info_reply,
3944 (dump_func)dump_get_dll_info_reply,
3945 (dump_func)dump_suspend_thread_reply,
3946 (dump_func)dump_resume_thread_reply,
3949 (dump_func)dump_queue_apc_reply,
3950 (dump_func)dump_get_apc_result_reply,
3952 (dump_func)dump_set_handle_info_reply,
3953 (dump_func)dump_dup_handle_reply,
3954 (dump_func)dump_open_process_reply,
3955 (dump_func)dump_open_thread_reply,
3956 (dump_func)dump_select_reply,
3957 (dump_func)dump_create_event_reply,
3959 (dump_func)dump_open_event_reply,
3960 (dump_func)dump_create_mutex_reply,
3961 (dump_func)dump_release_mutex_reply,
3962 (dump_func)dump_open_mutex_reply,
3963 (dump_func)dump_create_semaphore_reply,
3964 (dump_func)dump_release_semaphore_reply,
3965 (dump_func)dump_open_semaphore_reply,
3966 (dump_func)dump_create_file_reply,
3967 (dump_func)dump_open_file_object_reply,
3968 (dump_func)dump_alloc_file_handle_reply,
3969 (dump_func)dump_get_handle_fd_reply,
3970 (dump_func)dump_flush_file_reply,
3971 (dump_func)dump_lock_file_reply,
3973 (dump_func)dump_create_socket_reply,
3974 (dump_func)dump_accept_socket_reply,
3976 (dump_func)dump_get_socket_event_reply,
3979 (dump_func)dump_alloc_console_reply,
3981 (dump_func)dump_get_console_renderer_events_reply,
3982 (dump_func)dump_open_console_reply,
3983 (dump_func)dump_get_console_wait_event_reply,
3984 (dump_func)dump_get_console_mode_reply,
3987 (dump_func)dump_get_console_input_info_reply,
3989 (dump_func)dump_get_console_input_history_reply,
3990 (dump_func)dump_create_console_output_reply,
3992 (dump_func)dump_get_console_output_info_reply,
3993 (dump_func)dump_write_console_input_reply,
3994 (dump_func)dump_read_console_input_reply,
3995 (dump_func)dump_write_console_output_reply,
3996 (dump_func)dump_fill_console_output_reply,
3997 (dump_func)dump_read_console_output_reply,
4001 (dump_func)dump_read_change_reply,
4002 (dump_func)dump_create_mapping_reply,
4003 (dump_func)dump_open_mapping_reply,
4004 (dump_func)dump_get_mapping_info_reply,
4005 (dump_func)dump_create_snapshot_reply,
4006 (dump_func)dump_next_process_reply,
4007 (dump_func)dump_next_thread_reply,
4008 (dump_func)dump_next_module_reply,
4009 (dump_func)dump_wait_debug_event_reply,
4010 (dump_func)dump_queue_exception_event_reply,
4011 (dump_func)dump_get_exception_status_reply,
4015 (dump_func)dump_debug_break_reply,
4017 (dump_func)dump_read_process_memory_reply,
4019 (dump_func)dump_create_key_reply,
4020 (dump_func)dump_open_key_reply,
4023 (dump_func)dump_enum_key_reply,
4025 (dump_func)dump_get_key_value_reply,
4026 (dump_func)dump_enum_key_value_reply,
4032 (dump_func)dump_create_timer_reply,
4033 (dump_func)dump_open_timer_reply,
4034 (dump_func)dump_set_timer_reply,
4035 (dump_func)dump_cancel_timer_reply,
4036 (dump_func)dump_get_timer_info_reply,
4037 (dump_func)dump_get_thread_context_reply,
4038 (dump_func)dump_set_thread_context_reply,
4039 (dump_func)dump_get_selector_entry_reply,
4040 (dump_func)dump_add_atom_reply,
4042 (dump_func)dump_find_atom_reply,
4043 (dump_func)dump_get_atom_information_reply,
4046 (dump_func)dump_init_atom_table_reply,
4047 (dump_func)dump_get_msg_queue_reply,
4049 (dump_func)dump_set_queue_mask_reply,
4050 (dump_func)dump_get_queue_status_reply,
4051 (dump_func)dump_get_process_idle_event_reply,
4055 (dump_func)dump_get_message_reply,
4058 (dump_func)dump_get_message_reply_reply,
4059 (dump_func)dump_set_win_timer_reply,
4061 (dump_func)dump_get_serial_info_reply,
4065 (dump_func)dump_ioctl_reply,
4066 (dump_func)dump_get_ioctl_result_reply,
4067 (dump_func)dump_create_named_pipe_reply,
4068 (dump_func)dump_get_named_pipe_info_reply,
4069 (dump_func)dump_create_window_reply,
4071 (dump_func)dump_get_desktop_window_reply,
4072 (dump_func)dump_set_window_owner_reply,
4073 (dump_func)dump_get_window_info_reply,
4074 (dump_func)dump_set_window_info_reply,
4075 (dump_func)dump_set_parent_reply,
4076 (dump_func)dump_get_window_parents_reply,
4077 (dump_func)dump_get_window_children_reply,
4078 (dump_func)dump_get_window_children_from_point_reply,
4079 (dump_func)dump_get_window_tree_reply,
4080 (dump_func)dump_set_window_pos_reply,
4081 (dump_func)dump_get_window_rectangles_reply,
4082 (dump_func)dump_get_window_text_reply,
4084 (dump_func)dump_get_windows_offset_reply,
4085 (dump_func)dump_get_visible_region_reply,
4086 (dump_func)dump_get_window_region_reply,
4088 (dump_func)dump_get_update_region_reply,
4092 (dump_func)dump_remove_window_property_reply,
4093 (dump_func)dump_get_window_property_reply,
4094 (dump_func)dump_get_window_properties_reply,
4095 (dump_func)dump_create_winstation_reply,
4096 (dump_func)dump_open_winstation_reply,
4098 (dump_func)dump_get_process_winstation_reply,
4100 (dump_func)dump_create_desktop_reply,
4101 (dump_func)dump_open_desktop_reply,
4103 (dump_func)dump_get_thread_desktop_reply,
4105 (dump_func)dump_set_user_object_info_reply,
4107 (dump_func)dump_get_thread_input_reply,
4108 (dump_func)dump_get_last_input_time_reply,
4109 (dump_func)dump_get_key_state_reply,
4111 (dump_func)dump_set_foreground_window_reply,
4112 (dump_func)dump_set_focus_window_reply,
4113 (dump_func)dump_set_active_window_reply,
4114 (dump_func)dump_set_capture_window_reply,
4115 (dump_func)dump_set_caret_window_reply,
4116 (dump_func)dump_set_caret_info_reply,
4117 (dump_func)dump_set_hook_reply,
4118 (dump_func)dump_remove_hook_reply,
4119 (dump_func)dump_start_hook_chain_reply,
4121 (dump_func)dump_get_hook_info_reply,
4122 (dump_func)dump_create_class_reply,
4123 (dump_func)dump_destroy_class_reply,
4124 (dump_func)dump_set_class_info_reply,
4125 (dump_func)dump_set_clipboard_info_reply,
4126 (dump_func)dump_open_token_reply,
4127 (dump_func)dump_set_global_windows_reply,
4128 (dump_func)dump_adjust_token_privileges_reply,
4129 (dump_func)dump_get_token_privileges_reply,
4130 (dump_func)dump_check_token_privileges_reply,
4131 (dump_func)dump_duplicate_token_reply,
4132 (dump_func)dump_access_check_reply,
4133 (dump_func)dump_get_token_user_reply,
4134 (dump_func)dump_get_token_groups_reply,
4136 (dump_func)dump_get_security_object_reply,
4137 (dump_func)dump_create_mailslot_reply,
4138 (dump_func)dump_set_mailslot_info_reply,
4139 (dump_func)dump_create_directory_reply,
4140 (dump_func)dump_open_directory_reply,
4141 (dump_func)dump_create_symlink_reply,
4142 (dump_func)dump_open_symlink_reply,
4143 (dump_func)dump_query_symlink_reply,
4144 (dump_func)dump_get_object_info_reply,
4145 (dump_func)dump_get_token_impersonation_level_reply,
4146 (dump_func)dump_allocate_locally_unique_id_reply,
4147 (dump_func)dump_create_device_manager_reply,
4148 (dump_func)dump_create_device_reply,
4150 (dump_func)dump_get_next_device_request_reply,
4151 (dump_func)dump_make_process_system_reply,
4152 (dump_func)dump_get_token_statistics_reply,
4153 (dump_func)dump_create_completion_reply,
4154 (dump_func)dump_open_completion_reply,
4156 (dump_func)dump_remove_completion_reply,
4157 (dump_func)dump_query_completion_reply,
4161 static const char * const req_names[REQ_NB_REQUESTS] = {
4163 "get_new_process_info",
4166 "init_process_done",
4168 "terminate_process",
4194 "release_semaphore",
4198 "alloc_file_handle",
4207 "enable_socket_event",
4208 "set_socket_deferred",
4211 "get_console_renderer_events",
4213 "get_console_wait_event",
4216 "set_console_input_info",
4217 "get_console_input_info",
4218 "append_console_input_history",
4219 "get_console_input_history",
4220 "create_console_output",
4221 "set_console_output_info",
4222 "get_console_output_info",
4223 "write_console_input",
4224 "read_console_input",
4225 "write_console_output",
4226 "fill_console_output",
4227 "read_console_output",
4228 "move_console_output",
4229 "send_console_signal",
4230 "read_directory_changes",
4240 "queue_exception_event",
4241 "get_exception_status",
4242 "output_debug_string",
4243 "continue_debug_event",
4246 "set_debugger_kill_on_exit",
4247 "read_process_memory",
4248 "write_process_memory",
4261 "set_registry_notification",
4267 "get_thread_context",
4268 "set_thread_context",
4269 "get_selector_entry",
4273 "get_atom_information",
4274 "set_atom_information",
4281 "get_process_idle_event",
4283 "post_quit_message",
4284 "send_hardware_message",
4287 "accept_hardware_message",
4288 "get_message_reply",
4297 "create_named_pipe",
4298 "get_named_pipe_info",
4301 "get_desktop_window",
4306 "get_window_parents",
4307 "get_window_children",
4308 "get_window_children_from_point",
4311 "get_window_rectangles",
4314 "get_windows_offset",
4315 "get_visible_region",
4316 "get_window_region",
4317 "set_window_region",
4318 "get_update_region",
4319 "update_window_zorder",
4321 "set_window_property",
4322 "remove_window_property",
4323 "get_window_property",
4324 "get_window_properties",
4325 "create_winstation",
4328 "get_process_winstation",
4329 "set_process_winstation",
4333 "get_thread_desktop",
4334 "set_thread_desktop",
4335 "set_user_object_info",
4336 "attach_thread_input",
4338 "get_last_input_time",
4341 "set_foreground_window",
4343 "set_active_window",
4344 "set_capture_window",
4350 "finish_hook_chain",
4355 "set_clipboard_info",
4357 "set_global_windows",
4358 "adjust_token_privileges",
4359 "get_token_privileges",
4360 "check_token_privileges",
4365 "set_security_object",
4366 "get_security_object",
4368 "set_mailslot_info",
4375 "get_token_impersonation_level",
4376 "allocate_locally_unique_id",
4377 "create_device_manager",
4380 "get_next_device_request",
4381 "make_process_system",
4382 "get_token_statistics",
4383 "create_completion",
4386 "remove_completion",
4388 "set_completion_info",
4397 { "ABANDONED_WAIT_0", STATUS_ABANDONED_WAIT_0 },
4398 { "ACCESS_DENIED", STATUS_ACCESS_DENIED },
4399 { "ACCESS_VIOLATION", STATUS_ACCESS_VIOLATION },
4400 { "ALERTED", STATUS_ALERTED },
4401 { "ALIAS_EXISTS", STATUS_ALIAS_EXISTS },
4402 { "BAD_DEVICE_TYPE", STATUS_BAD_DEVICE_TYPE },
4403 { "BAD_IMPERSONATION_LEVEL", STATUS_BAD_IMPERSONATION_LEVEL },
4404 { "BREAKPOINT", STATUS_BREAKPOINT },
4405 { "BUFFER_OVERFLOW", STATUS_BUFFER_OVERFLOW },
4406 { "BUFFER_TOO_SMALL", STATUS_BUFFER_TOO_SMALL },
4407 { "CANCELLED", STATUS_CANCELLED },
4408 { "CANT_OPEN_ANONYMOUS", STATUS_CANT_OPEN_ANONYMOUS },
4409 { "CHILD_MUST_BE_VOLATILE", STATUS_CHILD_MUST_BE_VOLATILE },
4410 { "DEBUGGER_INACTIVE", STATUS_DEBUGGER_INACTIVE },
4411 { "DEVICE_BUSY", STATUS_DEVICE_BUSY },
4412 { "DIRECTORY_NOT_EMPTY", STATUS_DIRECTORY_NOT_EMPTY },
4413 { "DISK_FULL", STATUS_DISK_FULL },
4414 { "DLL_NOT_FOUND", STATUS_DLL_NOT_FOUND },
4415 { "ERROR_CLASS_ALREADY_EXISTS", 0xc0010000 | ERROR_CLASS_ALREADY_EXISTS },
4416 { "ERROR_CLASS_DOES_NOT_EXIST", 0xc0010000 | ERROR_CLASS_DOES_NOT_EXIST },
4417 { "ERROR_CLASS_HAS_WINDOWS", 0xc0010000 | ERROR_CLASS_HAS_WINDOWS },
4418 { "ERROR_CLIPBOARD_NOT_OPEN", 0xc0010000 | ERROR_CLIPBOARD_NOT_OPEN },
4419 { "ERROR_INVALID_INDEX", 0xc0010000 | ERROR_INVALID_INDEX },
4420 { "ERROR_INVALID_WINDOW_HANDLE", 0xc0010000 | ERROR_INVALID_WINDOW_HANDLE },
4421 { "FILE_DELETED", STATUS_FILE_DELETED },
4422 { "FILE_IS_A_DIRECTORY", STATUS_FILE_IS_A_DIRECTORY },
4423 { "FILE_LOCK_CONFLICT", STATUS_FILE_LOCK_CONFLICT },
4424 { "GENERIC_NOT_MAPPED", STATUS_GENERIC_NOT_MAPPED },
4425 { "HANDLES_CLOSED", STATUS_HANDLES_CLOSED },
4426 { "HANDLE_NOT_CLOSABLE", STATUS_HANDLE_NOT_CLOSABLE },
4427 { "ILLEGAL_FUNCTION", STATUS_ILLEGAL_FUNCTION },
4428 { "INSTANCE_NOT_AVAILABLE", STATUS_INSTANCE_NOT_AVAILABLE },
4429 { "INVALID_CID", STATUS_INVALID_CID },
4430 { "INVALID_DEVICE_REQUEST", STATUS_INVALID_DEVICE_REQUEST },
4431 { "INVALID_FILE_FOR_SECTION", STATUS_INVALID_FILE_FOR_SECTION },
4432 { "INVALID_HANDLE", STATUS_INVALID_HANDLE },
4433 { "INVALID_PARAMETER", STATUS_INVALID_PARAMETER },
4434 { "INVALID_SECURITY_DESCR", STATUS_INVALID_SECURITY_DESCR },
4435 { "IO_TIMEOUT", STATUS_IO_TIMEOUT },
4436 { "KEY_DELETED", STATUS_KEY_DELETED },
4437 { "MAPPED_FILE_SIZE_ZERO", STATUS_MAPPED_FILE_SIZE_ZERO },
4438 { "MEDIA_WRITE_PROTECTED", STATUS_MEDIA_WRITE_PROTECTED },
4439 { "MUTANT_NOT_OWNED", STATUS_MUTANT_NOT_OWNED },
4440 { "NAME_TOO_LONG", STATUS_NAME_TOO_LONG },
4441 { "NOTIFY_ENUM_DIR", STATUS_NOTIFY_ENUM_DIR },
4442 { "NOT_ALL_ASSIGNED", STATUS_NOT_ALL_ASSIGNED },
4443 { "NOT_A_DIRECTORY", STATUS_NOT_A_DIRECTORY },
4444 { "NOT_IMPLEMENTED", STATUS_NOT_IMPLEMENTED },
4445 { "NOT_REGISTRY_FILE", STATUS_NOT_REGISTRY_FILE },
4446 { "NOT_SUPPORTED", STATUS_NOT_SUPPORTED },
4447 { "NO_DATA_DETECTED", STATUS_NO_DATA_DETECTED },
4448 { "NO_IMPERSONATION_TOKEN", STATUS_NO_IMPERSONATION_TOKEN },
4449 { "NO_MEMORY", STATUS_NO_MEMORY },
4450 { "NO_MORE_ENTRIES", STATUS_NO_MORE_ENTRIES },
4451 { "NO_MORE_FILES", STATUS_NO_MORE_FILES },
4452 { "NO_SUCH_DEVICE", STATUS_NO_SUCH_DEVICE },
4453 { "NO_SUCH_FILE", STATUS_NO_SUCH_FILE },
4454 { "NO_TOKEN", STATUS_NO_TOKEN },
4455 { "OBJECT_NAME_COLLISION", STATUS_OBJECT_NAME_COLLISION },
4456 { "OBJECT_NAME_EXISTS", STATUS_OBJECT_NAME_EXISTS },
4457 { "OBJECT_NAME_INVALID", STATUS_OBJECT_NAME_INVALID },
4458 { "OBJECT_NAME_NOT_FOUND", STATUS_OBJECT_NAME_NOT_FOUND },
4459 { "OBJECT_PATH_INVALID", STATUS_OBJECT_PATH_INVALID },
4460 { "OBJECT_PATH_NOT_FOUND", STATUS_OBJECT_PATH_NOT_FOUND },
4461 { "OBJECT_PATH_SYNTAX_BAD", STATUS_OBJECT_PATH_SYNTAX_BAD },
4462 { "OBJECT_TYPE_MISMATCH", STATUS_OBJECT_TYPE_MISMATCH },
4463 { "PENDING", STATUS_PENDING },
4464 { "PIPE_BUSY", STATUS_PIPE_BUSY },
4465 { "PIPE_CONNECTED", STATUS_PIPE_CONNECTED },
4466 { "PIPE_DISCONNECTED", STATUS_PIPE_DISCONNECTED },
4467 { "PIPE_LISTENING", STATUS_PIPE_LISTENING },
4468 { "PIPE_NOT_AVAILABLE", STATUS_PIPE_NOT_AVAILABLE },
4469 { "PRIVILEGE_NOT_HELD", STATUS_PRIVILEGE_NOT_HELD },
4470 { "PROCESS_IS_TERMINATING", STATUS_PROCESS_IS_TERMINATING },
4471 { "SECTION_TOO_BIG", STATUS_SECTION_TOO_BIG },
4472 { "SEMAPHORE_LIMIT_EXCEEDED", STATUS_SEMAPHORE_LIMIT_EXCEEDED },
4473 { "SHARING_VIOLATION", STATUS_SHARING_VIOLATION },
4474 { "SUSPEND_COUNT_EXCEEDED", STATUS_SUSPEND_COUNT_EXCEEDED },
4475 { "THREAD_IS_TERMINATING", STATUS_THREAD_IS_TERMINATING },
4476 { "TIMEOUT", STATUS_TIMEOUT },
4477 { "TOO_MANY_OPENED_FILES", STATUS_TOO_MANY_OPENED_FILES },
4478 { "UNSUCCESSFUL", STATUS_UNSUCCESSFUL },
4479 { "USER_APC", STATUS_USER_APC },
4480 { "VOLUME_DISMOUNTED", STATUS_VOLUME_DISMOUNTED },
4481 { "WAS_LOCKED", STATUS_WAS_LOCKED },
4485 /* ### make_requests end ### */
4486 /* Everything above this line is generated automatically by tools/make_requests */
4488 static const char *get_status_name( unsigned int status )
4491 static char buffer[10];
4495 for (i = 0; status_names[i].name; i++)
4496 if (status_names[i].value == status) return status_names[i].name;
4498 sprintf( buffer, "%x", status );
4502 void trace_request(void)
4504 enum request req = current->req.request_header.req;
4505 if (req < REQ_NB_REQUESTS)
4507 fprintf( stderr, "%04x: %s(", current->id, req_names[req] );
4508 if (req_dumpers[req])
4510 cur_data = get_req_data();
4511 cur_size = get_req_data_size();
4512 req_dumpers[req]( ¤t->req );
4514 fprintf( stderr, " )\n" );
4516 else fprintf( stderr, "%04x: %d(?)\n", current->id, req );
4519 void trace_reply( enum request req, const union generic_reply *reply )
4521 if (req < REQ_NB_REQUESTS)
4523 fprintf( stderr, "%04x: %s() = %s",
4524 current->id, req_names[req], get_status_name(current->error) );
4525 if (reply_dumpers[req])
4527 fprintf( stderr, " {" );
4528 cur_data = current->reply_data;
4529 cur_size = reply->reply_header.reply_size;
4530 reply_dumpers[req]( reply );
4531 fprintf( stderr, " }" );
4533 fputc( '\n', stderr );
4535 else fprintf( stderr, "%04x: %d() = %s\n",
4536 current->id, req, get_status_name(current->error) );