wined3d: Combine two glScalef calls into one.
[wine/multimedia.git] / server / trace.c
blob4bcd5456be2170e5fbcd970814b14b46dc779d3b
1 /*
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
21 #include "config.h"
22 #include "wine/port.h"
24 #include <ctype.h>
25 #include <stdarg.h>
26 #include <stdio.h>
27 #include <sys/types.h>
29 #ifdef HAVE_SYS_UIO_H
30 #include <sys/uio.h>
31 #endif
33 #include "ntstatus.h"
34 #define WIN32_NO_STATUS
35 #include "windef.h"
36 #include "winbase.h"
37 #include "wincon.h"
38 #include "winternl.h"
39 #include "winioctl.h"
40 #include "file.h"
41 #include "request.h"
42 #include "unicode.h"
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;
54 cur_size -= size;
57 static void dump_uints( const int *ptr, int len )
59 fputc( '{', stderr );
60 while (len > 0)
62 fprintf( stderr, "%08x", *ptr++ );
63 if (--len) fputc( ',', stderr );
65 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 )
93 switch(*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;
101 #undef CASE
105 static void dump_apc_call( const apc_call_t *call )
107 fputc( '{', stderr );
108 switch(call->type)
110 case APC_NONE:
111 fprintf( stderr, "APC_NONE" );
112 break;
113 case APC_USER:
114 fprintf( stderr, "APC_USER,args={%lx,%lx,%lx}",
115 call->user.args[0], call->user.args[1], call->user.args[2] );
116 break;
117 case APC_TIMER:
118 fprintf( stderr, "APC_TIMER,time=" );
119 dump_timeout( &call->timer.time );
120 fprintf( stderr, ",arg=%p", call->timer.arg );
121 break;
122 case APC_ASYNC_IO:
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) );
126 break;
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 );
132 break;
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 );
137 break;
138 case APC_VIRTUAL_QUERY:
139 fprintf( stderr, "APC_VIRTUAL_QUERY,addr=%p", call->virtual_query.addr );
140 break;
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 );
145 break;
146 case APC_VIRTUAL_FLUSH:
147 fprintf( stderr, "APC_VIRTUAL_FLUSH,addr=%p,size=%lu",
148 call->virtual_flush.addr, call->virtual_flush.size );
149 break;
150 case APC_VIRTUAL_LOCK:
151 fprintf( stderr, "APC_VIRTUAL_LOCK,addr=%p,size=%lu",
152 call->virtual_lock.addr, call->virtual_lock.size );
153 break;
154 case APC_VIRTUAL_UNLOCK:
155 fprintf( stderr, "APC_VIRTUAL_UNLOCK,addr=%p,size=%lu",
156 call->virtual_unlock.addr, call->virtual_unlock.size );
157 break;
158 case APC_MAP_VIEW:
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 );
163 break;
164 case APC_UNMAP_VIEW:
165 fprintf( stderr, "APC_UNMAP_VIEW,addr=%p", call->unmap_view.addr );
166 break;
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 );
172 break;
173 default:
174 fprintf( stderr, "type=%u", call->type );
175 break;
177 fputc( '}', stderr );
180 static void dump_apc_result( const apc_result_t *result )
182 fputc( '{', stderr );
183 switch(result->type)
185 case APC_NONE:
186 break;
187 case APC_ASYNC_IO:
188 fprintf( stderr, "APC_ASYNC_IO,status=%s",
189 get_status_name( result->async_io.status ) );
190 break;
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 );
195 break;
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 );
200 break;
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 );
208 break;
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 );
214 break;
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 );
219 break;
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 );
224 break;
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 );
229 break;
230 case APC_MAP_VIEW:
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 );
234 break;
235 case APC_UNMAP_VIEW:
236 fprintf( stderr, "APC_UNMAP_VIEW,status=%s",
237 get_status_name( result->unmap_view.status ) );
238 break;
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 );
243 break;
244 default:
245 fprintf( stderr, "type=%u", result->type );
246 break;
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 )
264 #ifdef __i386__
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, "}" );
275 #else
276 dump_uints( (const int *)context, sizeof(*context) / sizeof(int) );
277 #endif
280 static void dump_exc_record( const EXCEPTION_RECORD *rec )
282 unsigned int i;
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 );
300 while (len > 0)
302 fprintf( stderr, "%d", *data++ );
303 if (--len) fputc( ',', stderr );
305 fputc( '}', stderr );
306 remove_data( size );
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);
318 remove_data( size );
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 );
327 while (len > 0)
329 fprintf( stderr, "%p", *data++ );
330 if (--len) fputc( ',', stderr );
332 fputc( '}', stderr );
333 remove_data( size );
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 );
342 while (len > 0)
344 fprintf( stderr, "%p", *data++ );
345 if (--len) fputc( ',', stderr );
347 fputc( '}', stderr );
348 remove_data( size );
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 );
357 while (len > 0)
359 fprintf( stderr, "%02x", *data++ );
360 if (--len) fputc( ',', stderr );
362 fputc( '}', stderr );
363 remove_data( size );
366 static void dump_varargs_string( data_size_t size )
368 fprintf( stderr, "\"%.*s\"", (int)size, (const char *)cur_data );
369 remove_data( size );
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 );
377 remove_data( size );
380 static void dump_varargs_context( data_size_t size )
382 if (!size)
384 fprintf( stderr, "{}" );
385 return;
387 dump_context( cur_data );
388 remove_data( size );
391 static void dump_varargs_exc_event( data_size_t size )
393 const CONTEXT *ptr = cur_data;
395 if (!size)
397 fprintf( stderr, "{}" );
398 return;
400 fprintf( stderr, "{context=" );
401 dump_context( ptr );
402 fprintf( stderr, ",rec=" );
403 dump_exc_record( (const EXCEPTION_RECORD *)(ptr + 1) );
404 fputc( '}', stderr );
405 remove_data( size );
408 static void dump_varargs_debug_event( data_size_t size )
410 const debug_event_t *event = cur_data;
412 if (!size)
414 fprintf( stderr, "{}" );
415 return;
417 switch(event->code)
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 );
423 break;
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 );
428 break;
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 );
437 break;
438 case EXIT_THREAD_DEBUG_EVENT:
439 fprintf( stderr, "{exit_thread,code=%d}", event->info.exit.exit_code );
440 break;
441 case EXIT_PROCESS_DEBUG_EVENT:
442 fprintf( stderr, "{exit_process,code=%d}", event->info.exit.exit_code );
443 break;
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 );
449 break;
450 case UNLOAD_DLL_DEBUG_EVENT:
451 fprintf( stderr, "{unload_dll,base=%p}", event->info.unload_dll.base );
452 break;
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 );
457 break;
458 case RIP_EVENT:
459 fprintf( stderr, "{rip,err=%d,type=%d}",
460 event->info.rip_info.error, event->info.rip_info.type );
461 break;
462 case 0: /* zero is the code returned on timeouts */
463 fprintf( stderr, "{}" );
464 break;
465 default:
466 fprintf( stderr, "{code=??? (%d)}", event->code );
467 break;
469 remove_data( size );
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, "{}" );
491 return;
493 if (size > ptr->Size) size = ptr->Size;
494 memset( &params, 0, sizeof(params) );
495 memcpy( &params, 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( &params.CurrentDirectory.DosPath, cur_data, size );
518 fprintf( stderr, "\",DllPath=L\"" );
519 dump_inline_unicode_string( &params.DllPath, cur_data, size );
520 fprintf( stderr, "\",ImagePathName=L\"" );
521 dump_inline_unicode_string( &params.ImagePathName, cur_data, size );
522 fprintf( stderr, "\",CommandLine=L\"" );
523 dump_inline_unicode_string( &params.CommandLine, cur_data, size );
524 fprintf( stderr, "\",WindowTitle=L\"" );
525 dump_inline_unicode_string( &params.WindowTitle, cur_data, size );
526 fprintf( stderr, "\",Desktop=L\"" );
527 dump_inline_unicode_string( &params.Desktop, cur_data, size );
528 fprintf( stderr, "\",ShellInfo=L\"" );
529 dump_inline_unicode_string( &params.ShellInfo, cur_data, size );
530 fprintf( stderr, "\",RuntimeInfo=L\"" );
531 dump_inline_unicode_string( &params.RuntimeInfo, cur_data, size );
532 fprintf( stderr, "\"}" );
533 remove_data( size );
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 );
542 while (len > 0)
544 fprintf( stderr, "{%04x,...}", rec->EventType );
545 rec++;
546 if (--len) fputc( ',', stderr );
548 fputc( '}', stderr );
549 remove_data( size );
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 );
558 while (len > 0)
560 dump_rectangle( rect++ );
561 if (--len) fputc( ',', stderr );
563 fputc( '}', stderr );
564 remove_data( size );
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 );
579 while (len > 0)
581 fprintf( stderr, "{atom=%04x,str=%d,handle=%p}",
582 prop->atom, prop->string, prop->handle );
583 prop++;
584 if (--len) fputc( ',', stderr );
586 fputc( '}', stderr );
587 remove_data( size );
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 );
596 while (len > 0)
598 fprintf( stderr, "{luid=%08x%08x,attr=%x}",
599 lat->Luid.HighPart, lat->Luid.LowPart, lat->Attributes );
600 lat++;
601 if (--len) fputc( ',', stderr );
603 fputc( '}', stderr );
604 remove_data( size );
607 static void dump_inline_sid( const SID *sid, data_size_t size )
609 DWORD i;
611 /* security check */
612 if ((FIELD_OFFSET(SID, SubAuthority[0]) > size) ||
613 (FIELD_OFFSET(SID, SubAuthority[sid->SubAuthorityCount]) > size))
615 fprintf( stderr, "<invalid sid>" );
616 return;
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 );
634 remove_data( size );
637 static void dump_inline_acl( const ACL *acl, data_size_t size )
639 const ACE_HEADER *ace;
640 ULONG i;
641 fputc( '{', stderr );
643 if (size)
645 if (size < sizeof(ACL))
647 fprintf( stderr, "<invalid acl>}\n" );
648 return;
650 size -= sizeof(ACL);
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))
658 return;
659 if (size < ace->AceSize)
660 return;
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 );
671 break;
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 );
677 break;
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 );
683 break;
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 );
689 break;
690 default:
691 fprintf( stderr, "unknown<%d>", ace->AceType );
692 break;
694 fprintf( stderr, ",AceFlags=%x,Sid=", ace->AceFlags );
695 if (sid)
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))
713 return;
714 if (sd->owner_len)
715 dump_inline_sid( (const SID *)((const char *)sd + offset), sd->owner_len );
716 else
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))
721 return;
722 if (sd->group_len)
723 dump_inline_sid( (const SID *)((const char *)sd + offset), sd->group_len );
724 else
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))
729 return;
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))
734 return;
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 );
745 remove_data( 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)
758 unsigned int i;
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);
767 if (i != 0)
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))
775 break;
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))
791 const WCHAR *str;
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)
795 return;
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) +
802 objattr->name_len );
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_len=%u,", req->filename_len );
1008 fprintf( stderr, " filename=" );
1009 dump_varargs_unicode_str( cur_size );
1012 static void dump_suspend_thread_request( const struct suspend_thread_request *req )
1014 fprintf( stderr, " handle=%p", req->handle );
1017 static void dump_suspend_thread_reply( const struct suspend_thread_reply *req )
1019 fprintf( stderr, " count=%d", req->count );
1022 static void dump_resume_thread_request( const struct resume_thread_request *req )
1024 fprintf( stderr, " handle=%p", req->handle );
1027 static void dump_resume_thread_reply( const struct resume_thread_reply *req )
1029 fprintf( stderr, " count=%d", req->count );
1032 static void dump_load_dll_request( const struct load_dll_request *req )
1034 fprintf( stderr, " handle=%p,", req->handle );
1035 fprintf( stderr, " base=%p,", req->base );
1036 fprintf( stderr, " size=%lu,", (unsigned long)req->size );
1037 fprintf( stderr, " dbg_offset=%d,", req->dbg_offset );
1038 fprintf( stderr, " dbg_size=%d,", req->dbg_size );
1039 fprintf( stderr, " name=%p,", req->name );
1040 fprintf( stderr, " filename=" );
1041 dump_varargs_unicode_str( cur_size );
1044 static void dump_unload_dll_request( const struct unload_dll_request *req )
1046 fprintf( stderr, " base=%p", req->base );
1049 static void dump_queue_apc_request( const struct queue_apc_request *req )
1051 fprintf( stderr, " thread=%p,", req->thread );
1052 fprintf( stderr, " process=%p,", req->process );
1053 fprintf( stderr, " call=" );
1054 dump_apc_call( &req->call );
1057 static void dump_queue_apc_reply( const struct queue_apc_reply *req )
1059 fprintf( stderr, " handle=%p,", req->handle );
1060 fprintf( stderr, " self=%d", req->self );
1063 static void dump_get_apc_result_request( const struct get_apc_result_request *req )
1065 fprintf( stderr, " handle=%p", req->handle );
1068 static void dump_get_apc_result_reply( const struct get_apc_result_reply *req )
1070 fprintf( stderr, " result=" );
1071 dump_apc_result( &req->result );
1074 static void dump_close_handle_request( const struct close_handle_request *req )
1076 fprintf( stderr, " handle=%p", req->handle );
1079 static void dump_set_handle_info_request( const struct set_handle_info_request *req )
1081 fprintf( stderr, " handle=%p,", req->handle );
1082 fprintf( stderr, " flags=%d,", req->flags );
1083 fprintf( stderr, " mask=%d", req->mask );
1086 static void dump_set_handle_info_reply( const struct set_handle_info_reply *req )
1088 fprintf( stderr, " old_flags=%d", req->old_flags );
1091 static void dump_dup_handle_request( const struct dup_handle_request *req )
1093 fprintf( stderr, " src_process=%p,", req->src_process );
1094 fprintf( stderr, " src_handle=%p,", req->src_handle );
1095 fprintf( stderr, " dst_process=%p,", req->dst_process );
1096 fprintf( stderr, " access=%08x,", req->access );
1097 fprintf( stderr, " attributes=%08x,", req->attributes );
1098 fprintf( stderr, " options=%08x", req->options );
1101 static void dump_dup_handle_reply( const struct dup_handle_reply *req )
1103 fprintf( stderr, " handle=%p,", req->handle );
1104 fprintf( stderr, " self=%d,", req->self );
1105 fprintf( stderr, " closed=%d", req->closed );
1108 static void dump_open_process_request( const struct open_process_request *req )
1110 fprintf( stderr, " pid=%04x,", req->pid );
1111 fprintf( stderr, " access=%08x,", req->access );
1112 fprintf( stderr, " attributes=%08x", req->attributes );
1115 static void dump_open_process_reply( const struct open_process_reply *req )
1117 fprintf( stderr, " handle=%p", req->handle );
1120 static void dump_open_thread_request( const struct open_thread_request *req )
1122 fprintf( stderr, " tid=%04x,", req->tid );
1123 fprintf( stderr, " access=%08x,", req->access );
1124 fprintf( stderr, " attributes=%08x", req->attributes );
1127 static void dump_open_thread_reply( const struct open_thread_reply *req )
1129 fprintf( stderr, " handle=%p", req->handle );
1132 static void dump_select_request( const struct select_request *req )
1134 fprintf( stderr, " flags=%d,", req->flags );
1135 fprintf( stderr, " cookie=%p,", req->cookie );
1136 fprintf( stderr, " signal=%p,", req->signal );
1137 fprintf( stderr, " prev_apc=%p,", req->prev_apc );
1138 fprintf( stderr, " timeout=" );
1139 dump_timeout( &req->timeout );
1140 fprintf( stderr, "," );
1141 fprintf( stderr, " result=" );
1142 dump_varargs_apc_result( cur_size );
1143 fputc( ',', stderr );
1144 fprintf( stderr, " handles=" );
1145 dump_varargs_handles( cur_size );
1148 static void dump_select_reply( const struct select_reply *req )
1150 fprintf( stderr, " apc_handle=%p,", req->apc_handle );
1151 fprintf( stderr, " timeout=" );
1152 dump_timeout( &req->timeout );
1153 fprintf( stderr, "," );
1154 fprintf( stderr, " call=" );
1155 dump_apc_call( &req->call );
1158 static void dump_create_event_request( const struct create_event_request *req )
1160 fprintf( stderr, " access=%08x,", req->access );
1161 fprintf( stderr, " attributes=%08x,", req->attributes );
1162 fprintf( stderr, " manual_reset=%d,", req->manual_reset );
1163 fprintf( stderr, " initial_state=%d,", req->initial_state );
1164 fprintf( stderr, " objattr=" );
1165 dump_varargs_object_attributes( cur_size );
1168 static void dump_create_event_reply( const struct create_event_reply *req )
1170 fprintf( stderr, " handle=%p", req->handle );
1173 static void dump_event_op_request( const struct event_op_request *req )
1175 fprintf( stderr, " handle=%p,", req->handle );
1176 fprintf( stderr, " op=%d", req->op );
1179 static void dump_open_event_request( const struct open_event_request *req )
1181 fprintf( stderr, " access=%08x,", req->access );
1182 fprintf( stderr, " attributes=%08x,", req->attributes );
1183 fprintf( stderr, " rootdir=%p,", req->rootdir );
1184 fprintf( stderr, " name=" );
1185 dump_varargs_unicode_str( cur_size );
1188 static void dump_open_event_reply( const struct open_event_reply *req )
1190 fprintf( stderr, " handle=%p", req->handle );
1193 static void dump_create_mutex_request( const struct create_mutex_request *req )
1195 fprintf( stderr, " access=%08x,", req->access );
1196 fprintf( stderr, " attributes=%08x,", req->attributes );
1197 fprintf( stderr, " owned=%d,", req->owned );
1198 fprintf( stderr, " objattr=" );
1199 dump_varargs_object_attributes( cur_size );
1202 static void dump_create_mutex_reply( const struct create_mutex_reply *req )
1204 fprintf( stderr, " handle=%p", req->handle );
1207 static void dump_release_mutex_request( const struct release_mutex_request *req )
1209 fprintf( stderr, " handle=%p", req->handle );
1212 static void dump_release_mutex_reply( const struct release_mutex_reply *req )
1214 fprintf( stderr, " prev_count=%08x", req->prev_count );
1217 static void dump_open_mutex_request( const struct open_mutex_request *req )
1219 fprintf( stderr, " access=%08x,", req->access );
1220 fprintf( stderr, " attributes=%08x,", req->attributes );
1221 fprintf( stderr, " rootdir=%p,", req->rootdir );
1222 fprintf( stderr, " name=" );
1223 dump_varargs_unicode_str( cur_size );
1226 static void dump_open_mutex_reply( const struct open_mutex_reply *req )
1228 fprintf( stderr, " handle=%p", req->handle );
1231 static void dump_create_semaphore_request( const struct create_semaphore_request *req )
1233 fprintf( stderr, " access=%08x,", req->access );
1234 fprintf( stderr, " attributes=%08x,", req->attributes );
1235 fprintf( stderr, " initial=%08x,", req->initial );
1236 fprintf( stderr, " max=%08x,", req->max );
1237 fprintf( stderr, " objattr=" );
1238 dump_varargs_object_attributes( cur_size );
1241 static void dump_create_semaphore_reply( const struct create_semaphore_reply *req )
1243 fprintf( stderr, " handle=%p", req->handle );
1246 static void dump_release_semaphore_request( const struct release_semaphore_request *req )
1248 fprintf( stderr, " handle=%p,", req->handle );
1249 fprintf( stderr, " count=%08x", req->count );
1252 static void dump_release_semaphore_reply( const struct release_semaphore_reply *req )
1254 fprintf( stderr, " prev_count=%08x", req->prev_count );
1257 static void dump_open_semaphore_request( const struct open_semaphore_request *req )
1259 fprintf( stderr, " access=%08x,", req->access );
1260 fprintf( stderr, " attributes=%08x,", req->attributes );
1261 fprintf( stderr, " rootdir=%p,", req->rootdir );
1262 fprintf( stderr, " name=" );
1263 dump_varargs_unicode_str( cur_size );
1266 static void dump_open_semaphore_reply( const struct open_semaphore_reply *req )
1268 fprintf( stderr, " handle=%p", req->handle );
1271 static void dump_create_file_request( const struct create_file_request *req )
1273 fprintf( stderr, " access=%08x,", req->access );
1274 fprintf( stderr, " attributes=%08x,", req->attributes );
1275 fprintf( stderr, " sharing=%08x,", req->sharing );
1276 fprintf( stderr, " create=%d,", req->create );
1277 fprintf( stderr, " options=%08x,", req->options );
1278 fprintf( stderr, " attrs=%08x,", req->attrs );
1279 fprintf( stderr, " objattr=" );
1280 dump_varargs_object_attributes( cur_size );
1281 fputc( ',', stderr );
1282 fprintf( stderr, " filename=" );
1283 dump_varargs_string( cur_size );
1286 static void dump_create_file_reply( const struct create_file_reply *req )
1288 fprintf( stderr, " handle=%p", req->handle );
1291 static void dump_open_file_object_request( const struct open_file_object_request *req )
1293 fprintf( stderr, " access=%08x,", req->access );
1294 fprintf( stderr, " attributes=%08x,", req->attributes );
1295 fprintf( stderr, " rootdir=%p,", req->rootdir );
1296 fprintf( stderr, " sharing=%08x,", req->sharing );
1297 fprintf( stderr, " options=%08x,", req->options );
1298 fprintf( stderr, " filename=" );
1299 dump_varargs_unicode_str( cur_size );
1302 static void dump_open_file_object_reply( const struct open_file_object_reply *req )
1304 fprintf( stderr, " handle=%p", req->handle );
1307 static void dump_alloc_file_handle_request( const struct alloc_file_handle_request *req )
1309 fprintf( stderr, " access=%08x,", req->access );
1310 fprintf( stderr, " attributes=%08x,", req->attributes );
1311 fprintf( stderr, " fd=%d", req->fd );
1314 static void dump_alloc_file_handle_reply( const struct alloc_file_handle_reply *req )
1316 fprintf( stderr, " handle=%p", req->handle );
1319 static void dump_get_handle_fd_request( const struct get_handle_fd_request *req )
1321 fprintf( stderr, " handle=%p", req->handle );
1324 static void dump_get_handle_fd_reply( const struct get_handle_fd_reply *req )
1326 fprintf( stderr, " type=%d,", req->type );
1327 fprintf( stderr, " removable=%d,", req->removable );
1328 fprintf( stderr, " access=%08x,", req->access );
1329 fprintf( stderr, " options=%08x", req->options );
1332 static void dump_flush_file_request( const struct flush_file_request *req )
1334 fprintf( stderr, " handle=%p", req->handle );
1337 static void dump_flush_file_reply( const struct flush_file_reply *req )
1339 fprintf( stderr, " event=%p", req->event );
1342 static void dump_lock_file_request( const struct lock_file_request *req )
1344 fprintf( stderr, " handle=%p,", req->handle );
1345 fprintf( stderr, " offset=" );
1346 dump_file_pos( &req->offset );
1347 fprintf( stderr, "," );
1348 fprintf( stderr, " count=" );
1349 dump_file_pos( &req->count );
1350 fprintf( stderr, "," );
1351 fprintf( stderr, " shared=%d,", req->shared );
1352 fprintf( stderr, " wait=%d", req->wait );
1355 static void dump_lock_file_reply( const struct lock_file_reply *req )
1357 fprintf( stderr, " handle=%p,", req->handle );
1358 fprintf( stderr, " overlapped=%d", req->overlapped );
1361 static void dump_unlock_file_request( const struct unlock_file_request *req )
1363 fprintf( stderr, " handle=%p,", req->handle );
1364 fprintf( stderr, " offset=" );
1365 dump_file_pos( &req->offset );
1366 fprintf( stderr, "," );
1367 fprintf( stderr, " count=" );
1368 dump_file_pos( &req->count );
1371 static void dump_create_socket_request( const struct create_socket_request *req )
1373 fprintf( stderr, " access=%08x,", req->access );
1374 fprintf( stderr, " attributes=%08x,", req->attributes );
1375 fprintf( stderr, " family=%d,", req->family );
1376 fprintf( stderr, " type=%d,", req->type );
1377 fprintf( stderr, " protocol=%d,", req->protocol );
1378 fprintf( stderr, " flags=%08x", req->flags );
1381 static void dump_create_socket_reply( const struct create_socket_reply *req )
1383 fprintf( stderr, " handle=%p", req->handle );
1386 static void dump_accept_socket_request( const struct accept_socket_request *req )
1388 fprintf( stderr, " lhandle=%p,", req->lhandle );
1389 fprintf( stderr, " access=%08x,", req->access );
1390 fprintf( stderr, " attributes=%08x", req->attributes );
1393 static void dump_accept_socket_reply( const struct accept_socket_reply *req )
1395 fprintf( stderr, " handle=%p", req->handle );
1398 static void dump_set_socket_event_request( const struct set_socket_event_request *req )
1400 fprintf( stderr, " handle=%p,", req->handle );
1401 fprintf( stderr, " mask=%08x,", req->mask );
1402 fprintf( stderr, " event=%p,", req->event );
1403 fprintf( stderr, " window=%p,", req->window );
1404 fprintf( stderr, " msg=%08x", req->msg );
1407 static void dump_get_socket_event_request( const struct get_socket_event_request *req )
1409 fprintf( stderr, " handle=%p,", req->handle );
1410 fprintf( stderr, " service=%d,", req->service );
1411 fprintf( stderr, " c_event=%p", req->c_event );
1414 static void dump_get_socket_event_reply( const struct get_socket_event_reply *req )
1416 fprintf( stderr, " mask=%08x,", req->mask );
1417 fprintf( stderr, " pmask=%08x,", req->pmask );
1418 fprintf( stderr, " state=%08x,", req->state );
1419 fprintf( stderr, " errors=" );
1420 dump_varargs_ints( cur_size );
1423 static void dump_enable_socket_event_request( const struct enable_socket_event_request *req )
1425 fprintf( stderr, " handle=%p,", req->handle );
1426 fprintf( stderr, " mask=%08x,", req->mask );
1427 fprintf( stderr, " sstate=%08x,", req->sstate );
1428 fprintf( stderr, " cstate=%08x", req->cstate );
1431 static void dump_set_socket_deferred_request( const struct set_socket_deferred_request *req )
1433 fprintf( stderr, " handle=%p,", req->handle );
1434 fprintf( stderr, " deferred=%p", req->deferred );
1437 static void dump_alloc_console_request( const struct alloc_console_request *req )
1439 fprintf( stderr, " access=%08x,", req->access );
1440 fprintf( stderr, " attributes=%08x,", req->attributes );
1441 fprintf( stderr, " pid=%04x", req->pid );
1444 static void dump_alloc_console_reply( const struct alloc_console_reply *req )
1446 fprintf( stderr, " handle_in=%p,", req->handle_in );
1447 fprintf( stderr, " event=%p", req->event );
1450 static void dump_free_console_request( const struct free_console_request *req )
1454 static void dump_get_console_renderer_events_request( const struct get_console_renderer_events_request *req )
1456 fprintf( stderr, " handle=%p", req->handle );
1459 static void dump_get_console_renderer_events_reply( const struct get_console_renderer_events_reply *req )
1461 fprintf( stderr, " data=" );
1462 dump_varargs_bytes( cur_size );
1465 static void dump_open_console_request( const struct open_console_request *req )
1467 fprintf( stderr, " from=%p,", req->from );
1468 fprintf( stderr, " access=%08x,", req->access );
1469 fprintf( stderr, " attributes=%08x,", req->attributes );
1470 fprintf( stderr, " share=%d", req->share );
1473 static void dump_open_console_reply( const struct open_console_reply *req )
1475 fprintf( stderr, " handle=%p", req->handle );
1478 static void dump_get_console_wait_event_request( const struct get_console_wait_event_request *req )
1482 static void dump_get_console_wait_event_reply( const struct get_console_wait_event_reply *req )
1484 fprintf( stderr, " handle=%p", req->handle );
1487 static void dump_get_console_mode_request( const struct get_console_mode_request *req )
1489 fprintf( stderr, " handle=%p", req->handle );
1492 static void dump_get_console_mode_reply( const struct get_console_mode_reply *req )
1494 fprintf( stderr, " mode=%d", req->mode );
1497 static void dump_set_console_mode_request( const struct set_console_mode_request *req )
1499 fprintf( stderr, " handle=%p,", req->handle );
1500 fprintf( stderr, " mode=%d", req->mode );
1503 static void dump_set_console_input_info_request( const struct set_console_input_info_request *req )
1505 fprintf( stderr, " handle=%p,", req->handle );
1506 fprintf( stderr, " mask=%d,", req->mask );
1507 fprintf( stderr, " active_sb=%p,", req->active_sb );
1508 fprintf( stderr, " history_mode=%d,", req->history_mode );
1509 fprintf( stderr, " history_size=%d,", req->history_size );
1510 fprintf( stderr, " edition_mode=%d,", req->edition_mode );
1511 fprintf( stderr, " input_cp=%d,", req->input_cp );
1512 fprintf( stderr, " output_cp=%d,", req->output_cp );
1513 fprintf( stderr, " win=%p,", req->win );
1514 fprintf( stderr, " title=" );
1515 dump_varargs_unicode_str( cur_size );
1518 static void dump_get_console_input_info_request( const struct get_console_input_info_request *req )
1520 fprintf( stderr, " handle=%p", req->handle );
1523 static void dump_get_console_input_info_reply( const struct get_console_input_info_reply *req )
1525 fprintf( stderr, " history_mode=%d,", req->history_mode );
1526 fprintf( stderr, " history_size=%d,", req->history_size );
1527 fprintf( stderr, " history_index=%d,", req->history_index );
1528 fprintf( stderr, " edition_mode=%d,", req->edition_mode );
1529 fprintf( stderr, " input_cp=%d,", req->input_cp );
1530 fprintf( stderr, " output_cp=%d,", req->output_cp );
1531 fprintf( stderr, " win=%p,", req->win );
1532 fprintf( stderr, " title=" );
1533 dump_varargs_unicode_str( cur_size );
1536 static void dump_append_console_input_history_request( const struct append_console_input_history_request *req )
1538 fprintf( stderr, " handle=%p,", req->handle );
1539 fprintf( stderr, " line=" );
1540 dump_varargs_unicode_str( cur_size );
1543 static void dump_get_console_input_history_request( const struct get_console_input_history_request *req )
1545 fprintf( stderr, " handle=%p,", req->handle );
1546 fprintf( stderr, " index=%d", req->index );
1549 static void dump_get_console_input_history_reply( const struct get_console_input_history_reply *req )
1551 fprintf( stderr, " total=%d,", req->total );
1552 fprintf( stderr, " line=" );
1553 dump_varargs_unicode_str( cur_size );
1556 static void dump_create_console_output_request( const struct create_console_output_request *req )
1558 fprintf( stderr, " handle_in=%p,", req->handle_in );
1559 fprintf( stderr, " access=%08x,", req->access );
1560 fprintf( stderr, " attributes=%08x,", req->attributes );
1561 fprintf( stderr, " share=%08x", req->share );
1564 static void dump_create_console_output_reply( const struct create_console_output_reply *req )
1566 fprintf( stderr, " handle_out=%p", req->handle_out );
1569 static void dump_set_console_output_info_request( const struct set_console_output_info_request *req )
1571 fprintf( stderr, " handle=%p,", req->handle );
1572 fprintf( stderr, " mask=%d,", req->mask );
1573 fprintf( stderr, " cursor_size=%d,", req->cursor_size );
1574 fprintf( stderr, " cursor_visible=%d,", req->cursor_visible );
1575 fprintf( stderr, " cursor_x=%d,", req->cursor_x );
1576 fprintf( stderr, " cursor_y=%d,", req->cursor_y );
1577 fprintf( stderr, " width=%d,", req->width );
1578 fprintf( stderr, " height=%d,", req->height );
1579 fprintf( stderr, " attr=%d,", req->attr );
1580 fprintf( stderr, " win_left=%d,", req->win_left );
1581 fprintf( stderr, " win_top=%d,", req->win_top );
1582 fprintf( stderr, " win_right=%d,", req->win_right );
1583 fprintf( stderr, " win_bottom=%d,", req->win_bottom );
1584 fprintf( stderr, " max_width=%d,", req->max_width );
1585 fprintf( stderr, " max_height=%d", req->max_height );
1588 static void dump_get_console_output_info_request( const struct get_console_output_info_request *req )
1590 fprintf( stderr, " handle=%p", req->handle );
1593 static void dump_get_console_output_info_reply( const struct get_console_output_info_reply *req )
1595 fprintf( stderr, " cursor_size=%d,", req->cursor_size );
1596 fprintf( stderr, " cursor_visible=%d,", req->cursor_visible );
1597 fprintf( stderr, " cursor_x=%d,", req->cursor_x );
1598 fprintf( stderr, " cursor_y=%d,", req->cursor_y );
1599 fprintf( stderr, " width=%d,", req->width );
1600 fprintf( stderr, " height=%d,", req->height );
1601 fprintf( stderr, " attr=%d,", req->attr );
1602 fprintf( stderr, " win_left=%d,", req->win_left );
1603 fprintf( stderr, " win_top=%d,", req->win_top );
1604 fprintf( stderr, " win_right=%d,", req->win_right );
1605 fprintf( stderr, " win_bottom=%d,", req->win_bottom );
1606 fprintf( stderr, " max_width=%d,", req->max_width );
1607 fprintf( stderr, " max_height=%d", req->max_height );
1610 static void dump_write_console_input_request( const struct write_console_input_request *req )
1612 fprintf( stderr, " handle=%p,", req->handle );
1613 fprintf( stderr, " rec=" );
1614 dump_varargs_input_records( cur_size );
1617 static void dump_write_console_input_reply( const struct write_console_input_reply *req )
1619 fprintf( stderr, " written=%d", req->written );
1622 static void dump_read_console_input_request( const struct read_console_input_request *req )
1624 fprintf( stderr, " handle=%p,", req->handle );
1625 fprintf( stderr, " flush=%d", req->flush );
1628 static void dump_read_console_input_reply( const struct read_console_input_reply *req )
1630 fprintf( stderr, " read=%d,", req->read );
1631 fprintf( stderr, " rec=" );
1632 dump_varargs_input_records( cur_size );
1635 static void dump_write_console_output_request( const struct write_console_output_request *req )
1637 fprintf( stderr, " handle=%p,", req->handle );
1638 fprintf( stderr, " x=%d,", req->x );
1639 fprintf( stderr, " y=%d,", req->y );
1640 fprintf( stderr, " mode=%d,", req->mode );
1641 fprintf( stderr, " wrap=%d,", req->wrap );
1642 fprintf( stderr, " data=" );
1643 dump_varargs_bytes( cur_size );
1646 static void dump_write_console_output_reply( const struct write_console_output_reply *req )
1648 fprintf( stderr, " written=%d,", req->written );
1649 fprintf( stderr, " width=%d,", req->width );
1650 fprintf( stderr, " height=%d", req->height );
1653 static void dump_fill_console_output_request( const struct fill_console_output_request *req )
1655 fprintf( stderr, " handle=%p,", req->handle );
1656 fprintf( stderr, " x=%d,", req->x );
1657 fprintf( stderr, " y=%d,", req->y );
1658 fprintf( stderr, " mode=%d,", req->mode );
1659 fprintf( stderr, " count=%d,", req->count );
1660 fprintf( stderr, " wrap=%d,", req->wrap );
1661 fprintf( stderr, " data=" );
1662 dump_char_info( &req->data );
1665 static void dump_fill_console_output_reply( const struct fill_console_output_reply *req )
1667 fprintf( stderr, " written=%d", req->written );
1670 static void dump_read_console_output_request( const struct read_console_output_request *req )
1672 fprintf( stderr, " handle=%p,", req->handle );
1673 fprintf( stderr, " x=%d,", req->x );
1674 fprintf( stderr, " y=%d,", req->y );
1675 fprintf( stderr, " mode=%d,", req->mode );
1676 fprintf( stderr, " wrap=%d", req->wrap );
1679 static void dump_read_console_output_reply( const struct read_console_output_reply *req )
1681 fprintf( stderr, " width=%d,", req->width );
1682 fprintf( stderr, " height=%d,", req->height );
1683 fprintf( stderr, " data=" );
1684 dump_varargs_bytes( cur_size );
1687 static void dump_move_console_output_request( const struct move_console_output_request *req )
1689 fprintf( stderr, " handle=%p,", req->handle );
1690 fprintf( stderr, " x_src=%d,", req->x_src );
1691 fprintf( stderr, " y_src=%d,", req->y_src );
1692 fprintf( stderr, " x_dst=%d,", req->x_dst );
1693 fprintf( stderr, " y_dst=%d,", req->y_dst );
1694 fprintf( stderr, " w=%d,", req->w );
1695 fprintf( stderr, " h=%d", req->h );
1698 static void dump_send_console_signal_request( const struct send_console_signal_request *req )
1700 fprintf( stderr, " signal=%d,", req->signal );
1701 fprintf( stderr, " group_id=%04x", req->group_id );
1704 static void dump_read_directory_changes_request( const struct read_directory_changes_request *req )
1706 fprintf( stderr, " filter=%08x,", req->filter );
1707 fprintf( stderr, " handle=%p,", req->handle );
1708 fprintf( stderr, " subtree=%d,", req->subtree );
1709 fprintf( stderr, " want_data=%d,", req->want_data );
1710 fprintf( stderr, " async=" );
1711 dump_async_data( &req->async );
1714 static void dump_read_change_request( const struct read_change_request *req )
1716 fprintf( stderr, " handle=%p", req->handle );
1719 static void dump_read_change_reply( const struct read_change_reply *req )
1721 fprintf( stderr, " action=%d,", req->action );
1722 fprintf( stderr, " name=" );
1723 dump_varargs_string( cur_size );
1726 static void dump_create_mapping_request( const struct create_mapping_request *req )
1728 fprintf( stderr, " access=%08x,", req->access );
1729 fprintf( stderr, " attributes=%08x,", req->attributes );
1730 fprintf( stderr, " size=" );
1731 dump_file_pos( &req->size );
1732 fprintf( stderr, "," );
1733 fprintf( stderr, " protect=%d,", req->protect );
1734 fprintf( stderr, " file_handle=%p,", req->file_handle );
1735 fprintf( stderr, " objattr=" );
1736 dump_varargs_object_attributes( cur_size );
1739 static void dump_create_mapping_reply( const struct create_mapping_reply *req )
1741 fprintf( stderr, " handle=%p", req->handle );
1744 static void dump_open_mapping_request( const struct open_mapping_request *req )
1746 fprintf( stderr, " access=%08x,", req->access );
1747 fprintf( stderr, " attributes=%08x,", req->attributes );
1748 fprintf( stderr, " rootdir=%p,", req->rootdir );
1749 fprintf( stderr, " name=" );
1750 dump_varargs_unicode_str( cur_size );
1753 static void dump_open_mapping_reply( const struct open_mapping_reply *req )
1755 fprintf( stderr, " handle=%p", req->handle );
1758 static void dump_get_mapping_info_request( const struct get_mapping_info_request *req )
1760 fprintf( stderr, " handle=%p", req->handle );
1763 static void dump_get_mapping_info_reply( const struct get_mapping_info_reply *req )
1765 fprintf( stderr, " size=" );
1766 dump_file_pos( &req->size );
1767 fprintf( stderr, "," );
1768 fprintf( stderr, " protect=%d,", req->protect );
1769 fprintf( stderr, " header_size=%d,", req->header_size );
1770 fprintf( stderr, " base=%p,", req->base );
1771 fprintf( stderr, " mapping=%p,", req->mapping );
1772 fprintf( stderr, " shared_file=%p", req->shared_file );
1775 static void dump_create_snapshot_request( const struct create_snapshot_request *req )
1777 fprintf( stderr, " attributes=%08x,", req->attributes );
1778 fprintf( stderr, " flags=%d,", req->flags );
1779 fprintf( stderr, " pid=%04x", req->pid );
1782 static void dump_create_snapshot_reply( const struct create_snapshot_reply *req )
1784 fprintf( stderr, " handle=%p", req->handle );
1787 static void dump_next_process_request( const struct next_process_request *req )
1789 fprintf( stderr, " handle=%p,", req->handle );
1790 fprintf( stderr, " reset=%d", req->reset );
1793 static void dump_next_process_reply( const struct next_process_reply *req )
1795 fprintf( stderr, " count=%d,", req->count );
1796 fprintf( stderr, " pid=%04x,", req->pid );
1797 fprintf( stderr, " ppid=%04x,", req->ppid );
1798 fprintf( stderr, " heap=%p,", req->heap );
1799 fprintf( stderr, " module=%p,", req->module );
1800 fprintf( stderr, " threads=%d,", req->threads );
1801 fprintf( stderr, " priority=%d,", req->priority );
1802 fprintf( stderr, " handles=%d,", req->handles );
1803 fprintf( stderr, " filename=" );
1804 dump_varargs_unicode_str( cur_size );
1807 static void dump_next_thread_request( const struct next_thread_request *req )
1809 fprintf( stderr, " handle=%p,", req->handle );
1810 fprintf( stderr, " reset=%d", req->reset );
1813 static void dump_next_thread_reply( const struct next_thread_reply *req )
1815 fprintf( stderr, " count=%d,", req->count );
1816 fprintf( stderr, " pid=%04x,", req->pid );
1817 fprintf( stderr, " tid=%04x,", req->tid );
1818 fprintf( stderr, " base_pri=%d,", req->base_pri );
1819 fprintf( stderr, " delta_pri=%d", req->delta_pri );
1822 static void dump_next_module_request( const struct next_module_request *req )
1824 fprintf( stderr, " handle=%p,", req->handle );
1825 fprintf( stderr, " reset=%d", req->reset );
1828 static void dump_next_module_reply( const struct next_module_reply *req )
1830 fprintf( stderr, " pid=%04x,", req->pid );
1831 fprintf( stderr, " base=%p,", req->base );
1832 fprintf( stderr, " size=%lu,", (unsigned long)req->size );
1833 fprintf( stderr, " filename=" );
1834 dump_varargs_unicode_str( cur_size );
1837 static void dump_wait_debug_event_request( const struct wait_debug_event_request *req )
1839 fprintf( stderr, " get_handle=%d", req->get_handle );
1842 static void dump_wait_debug_event_reply( const struct wait_debug_event_reply *req )
1844 fprintf( stderr, " pid=%04x,", req->pid );
1845 fprintf( stderr, " tid=%04x,", req->tid );
1846 fprintf( stderr, " wait=%p,", req->wait );
1847 fprintf( stderr, " event=" );
1848 dump_varargs_debug_event( cur_size );
1851 static void dump_queue_exception_event_request( const struct queue_exception_event_request *req )
1853 fprintf( stderr, " first=%d,", req->first );
1854 fprintf( stderr, " record=" );
1855 dump_varargs_exc_event( cur_size );
1858 static void dump_queue_exception_event_reply( const struct queue_exception_event_reply *req )
1860 fprintf( stderr, " handle=%p", req->handle );
1863 static void dump_get_exception_status_request( const struct get_exception_status_request *req )
1865 fprintf( stderr, " handle=%p", req->handle );
1868 static void dump_get_exception_status_reply( const struct get_exception_status_reply *req )
1870 fprintf( stderr, " context=" );
1871 dump_varargs_context( cur_size );
1874 static void dump_output_debug_string_request( const struct output_debug_string_request *req )
1876 fprintf( stderr, " string=%p,", req->string );
1877 fprintf( stderr, " unicode=%d,", req->unicode );
1878 fprintf( stderr, " length=%d", req->length );
1881 static void dump_continue_debug_event_request( const struct continue_debug_event_request *req )
1883 fprintf( stderr, " pid=%04x,", req->pid );
1884 fprintf( stderr, " tid=%04x,", req->tid );
1885 fprintf( stderr, " status=%d", req->status );
1888 static void dump_debug_process_request( const struct debug_process_request *req )
1890 fprintf( stderr, " pid=%04x,", req->pid );
1891 fprintf( stderr, " attach=%d", req->attach );
1894 static void dump_debug_break_request( const struct debug_break_request *req )
1896 fprintf( stderr, " handle=%p", req->handle );
1899 static void dump_debug_break_reply( const struct debug_break_reply *req )
1901 fprintf( stderr, " self=%d", req->self );
1904 static void dump_set_debugger_kill_on_exit_request( const struct set_debugger_kill_on_exit_request *req )
1906 fprintf( stderr, " kill_on_exit=%d", req->kill_on_exit );
1909 static void dump_read_process_memory_request( const struct read_process_memory_request *req )
1911 fprintf( stderr, " handle=%p,", req->handle );
1912 fprintf( stderr, " addr=%p", req->addr );
1915 static void dump_read_process_memory_reply( const struct read_process_memory_reply *req )
1917 fprintf( stderr, " data=" );
1918 dump_varargs_bytes( cur_size );
1921 static void dump_write_process_memory_request( const struct write_process_memory_request *req )
1923 fprintf( stderr, " handle=%p,", req->handle );
1924 fprintf( stderr, " addr=%p,", req->addr );
1925 fprintf( stderr, " data=" );
1926 dump_varargs_bytes( cur_size );
1929 static void dump_create_key_request( const struct create_key_request *req )
1931 fprintf( stderr, " parent=%p,", req->parent );
1932 fprintf( stderr, " access=%08x,", req->access );
1933 fprintf( stderr, " attributes=%08x,", req->attributes );
1934 fprintf( stderr, " options=%08x,", req->options );
1935 fprintf( stderr, " modif=%ld,", (long)req->modif );
1936 fprintf( stderr, " namelen=%u,", req->namelen );
1937 fprintf( stderr, " name=" );
1938 dump_varargs_unicode_str( min(cur_size,req->namelen) );
1939 fputc( ',', stderr );
1940 fprintf( stderr, " class=" );
1941 dump_varargs_unicode_str( cur_size );
1944 static void dump_create_key_reply( const struct create_key_reply *req )
1946 fprintf( stderr, " hkey=%p,", req->hkey );
1947 fprintf( stderr, " created=%d", req->created );
1950 static void dump_open_key_request( const struct open_key_request *req )
1952 fprintf( stderr, " parent=%p,", req->parent );
1953 fprintf( stderr, " access=%08x,", req->access );
1954 fprintf( stderr, " attributes=%08x,", req->attributes );
1955 fprintf( stderr, " name=" );
1956 dump_varargs_unicode_str( cur_size );
1959 static void dump_open_key_reply( const struct open_key_reply *req )
1961 fprintf( stderr, " hkey=%p", req->hkey );
1964 static void dump_delete_key_request( const struct delete_key_request *req )
1966 fprintf( stderr, " hkey=%p", req->hkey );
1969 static void dump_flush_key_request( const struct flush_key_request *req )
1971 fprintf( stderr, " hkey=%p", req->hkey );
1974 static void dump_enum_key_request( const struct enum_key_request *req )
1976 fprintf( stderr, " hkey=%p,", req->hkey );
1977 fprintf( stderr, " index=%d,", req->index );
1978 fprintf( stderr, " info_class=%d", req->info_class );
1981 static void dump_enum_key_reply( const struct enum_key_reply *req )
1983 fprintf( stderr, " subkeys=%d,", req->subkeys );
1984 fprintf( stderr, " max_subkey=%d,", req->max_subkey );
1985 fprintf( stderr, " max_class=%d,", req->max_class );
1986 fprintf( stderr, " values=%d,", req->values );
1987 fprintf( stderr, " max_value=%d,", req->max_value );
1988 fprintf( stderr, " max_data=%d,", req->max_data );
1989 fprintf( stderr, " modif=%ld,", (long)req->modif );
1990 fprintf( stderr, " total=%u,", req->total );
1991 fprintf( stderr, " namelen=%u,", req->namelen );
1992 fprintf( stderr, " name=" );
1993 dump_varargs_unicode_str( min(cur_size,req->namelen) );
1994 fputc( ',', stderr );
1995 fprintf( stderr, " class=" );
1996 dump_varargs_unicode_str( cur_size );
1999 static void dump_set_key_value_request( const struct set_key_value_request *req )
2001 fprintf( stderr, " hkey=%p,", req->hkey );
2002 fprintf( stderr, " type=%d,", req->type );
2003 fprintf( stderr, " namelen=%u,", req->namelen );
2004 fprintf( stderr, " name=" );
2005 dump_varargs_unicode_str( min(cur_size,req->namelen) );
2006 fputc( ',', stderr );
2007 fprintf( stderr, " data=" );
2008 dump_varargs_bytes( cur_size );
2011 static void dump_get_key_value_request( const struct get_key_value_request *req )
2013 fprintf( stderr, " hkey=%p,", req->hkey );
2014 fprintf( stderr, " name=" );
2015 dump_varargs_unicode_str( cur_size );
2018 static void dump_get_key_value_reply( const struct get_key_value_reply *req )
2020 fprintf( stderr, " type=%d,", req->type );
2021 fprintf( stderr, " total=%u,", req->total );
2022 fprintf( stderr, " data=" );
2023 dump_varargs_bytes( cur_size );
2026 static void dump_enum_key_value_request( const struct enum_key_value_request *req )
2028 fprintf( stderr, " hkey=%p,", req->hkey );
2029 fprintf( stderr, " index=%d,", req->index );
2030 fprintf( stderr, " info_class=%d", req->info_class );
2033 static void dump_enum_key_value_reply( const struct enum_key_value_reply *req )
2035 fprintf( stderr, " type=%d,", req->type );
2036 fprintf( stderr, " total=%u,", req->total );
2037 fprintf( stderr, " namelen=%u,", req->namelen );
2038 fprintf( stderr, " name=" );
2039 dump_varargs_unicode_str( min(cur_size,req->namelen) );
2040 fputc( ',', stderr );
2041 fprintf( stderr, " data=" );
2042 dump_varargs_bytes( cur_size );
2045 static void dump_delete_key_value_request( const struct delete_key_value_request *req )
2047 fprintf( stderr, " hkey=%p,", req->hkey );
2048 fprintf( stderr, " name=" );
2049 dump_varargs_unicode_str( cur_size );
2052 static void dump_load_registry_request( const struct load_registry_request *req )
2054 fprintf( stderr, " hkey=%p,", req->hkey );
2055 fprintf( stderr, " file=%p,", req->file );
2056 fprintf( stderr, " name=" );
2057 dump_varargs_unicode_str( cur_size );
2060 static void dump_unload_registry_request( const struct unload_registry_request *req )
2062 fprintf( stderr, " hkey=%p", req->hkey );
2065 static void dump_save_registry_request( const struct save_registry_request *req )
2067 fprintf( stderr, " hkey=%p,", req->hkey );
2068 fprintf( stderr, " file=%p", req->file );
2071 static void dump_set_registry_notification_request( const struct set_registry_notification_request *req )
2073 fprintf( stderr, " hkey=%p,", req->hkey );
2074 fprintf( stderr, " event=%p,", req->event );
2075 fprintf( stderr, " subtree=%d,", req->subtree );
2076 fprintf( stderr, " filter=%08x", req->filter );
2079 static void dump_create_timer_request( const struct create_timer_request *req )
2081 fprintf( stderr, " access=%08x,", req->access );
2082 fprintf( stderr, " attributes=%08x,", req->attributes );
2083 fprintf( stderr, " rootdir=%p,", req->rootdir );
2084 fprintf( stderr, " manual=%d,", req->manual );
2085 fprintf( stderr, " name=" );
2086 dump_varargs_unicode_str( cur_size );
2089 static void dump_create_timer_reply( const struct create_timer_reply *req )
2091 fprintf( stderr, " handle=%p", req->handle );
2094 static void dump_open_timer_request( const struct open_timer_request *req )
2096 fprintf( stderr, " access=%08x,", req->access );
2097 fprintf( stderr, " attributes=%08x,", req->attributes );
2098 fprintf( stderr, " rootdir=%p,", req->rootdir );
2099 fprintf( stderr, " name=" );
2100 dump_varargs_unicode_str( cur_size );
2103 static void dump_open_timer_reply( const struct open_timer_reply *req )
2105 fprintf( stderr, " handle=%p", req->handle );
2108 static void dump_set_timer_request( const struct set_timer_request *req )
2110 fprintf( stderr, " handle=%p,", req->handle );
2111 fprintf( stderr, " expire=" );
2112 dump_timeout( &req->expire );
2113 fprintf( stderr, "," );
2114 fprintf( stderr, " period=%d,", req->period );
2115 fprintf( stderr, " callback=%p,", req->callback );
2116 fprintf( stderr, " arg=%p", req->arg );
2119 static void dump_set_timer_reply( const struct set_timer_reply *req )
2121 fprintf( stderr, " signaled=%d", req->signaled );
2124 static void dump_cancel_timer_request( const struct cancel_timer_request *req )
2126 fprintf( stderr, " handle=%p", req->handle );
2129 static void dump_cancel_timer_reply( const struct cancel_timer_reply *req )
2131 fprintf( stderr, " signaled=%d", req->signaled );
2134 static void dump_get_timer_info_request( const struct get_timer_info_request *req )
2136 fprintf( stderr, " handle=%p", req->handle );
2139 static void dump_get_timer_info_reply( const struct get_timer_info_reply *req )
2141 fprintf( stderr, " when=" );
2142 dump_timeout( &req->when );
2143 fprintf( stderr, "," );
2144 fprintf( stderr, " signaled=%d", req->signaled );
2147 static void dump_get_thread_context_request( const struct get_thread_context_request *req )
2149 fprintf( stderr, " handle=%p,", req->handle );
2150 fprintf( stderr, " flags=%08x,", req->flags );
2151 fprintf( stderr, " suspend=%d", req->suspend );
2154 static void dump_get_thread_context_reply( const struct get_thread_context_reply *req )
2156 fprintf( stderr, " self=%d,", req->self );
2157 fprintf( stderr, " context=" );
2158 dump_varargs_context( cur_size );
2161 static void dump_set_thread_context_request( const struct set_thread_context_request *req )
2163 fprintf( stderr, " handle=%p,", req->handle );
2164 fprintf( stderr, " flags=%08x,", req->flags );
2165 fprintf( stderr, " suspend=%d,", req->suspend );
2166 fprintf( stderr, " context=" );
2167 dump_varargs_context( cur_size );
2170 static void dump_set_thread_context_reply( const struct set_thread_context_reply *req )
2172 fprintf( stderr, " self=%d", req->self );
2175 static void dump_get_selector_entry_request( const struct get_selector_entry_request *req )
2177 fprintf( stderr, " handle=%p,", req->handle );
2178 fprintf( stderr, " entry=%d", req->entry );
2181 static void dump_get_selector_entry_reply( const struct get_selector_entry_reply *req )
2183 fprintf( stderr, " base=%08x,", req->base );
2184 fprintf( stderr, " limit=%08x,", req->limit );
2185 fprintf( stderr, " flags=%02x", req->flags );
2188 static void dump_add_atom_request( const struct add_atom_request *req )
2190 fprintf( stderr, " table=%p,", req->table );
2191 fprintf( stderr, " name=" );
2192 dump_varargs_unicode_str( cur_size );
2195 static void dump_add_atom_reply( const struct add_atom_reply *req )
2197 fprintf( stderr, " atom=%04x", req->atom );
2200 static void dump_delete_atom_request( const struct delete_atom_request *req )
2202 fprintf( stderr, " table=%p,", req->table );
2203 fprintf( stderr, " atom=%04x", req->atom );
2206 static void dump_find_atom_request( const struct find_atom_request *req )
2208 fprintf( stderr, " table=%p,", req->table );
2209 fprintf( stderr, " name=" );
2210 dump_varargs_unicode_str( cur_size );
2213 static void dump_find_atom_reply( const struct find_atom_reply *req )
2215 fprintf( stderr, " atom=%04x", req->atom );
2218 static void dump_get_atom_information_request( const struct get_atom_information_request *req )
2220 fprintf( stderr, " table=%p,", req->table );
2221 fprintf( stderr, " atom=%04x", req->atom );
2224 static void dump_get_atom_information_reply( const struct get_atom_information_reply *req )
2226 fprintf( stderr, " count=%d,", req->count );
2227 fprintf( stderr, " pinned=%d,", req->pinned );
2228 fprintf( stderr, " total=%u,", req->total );
2229 fprintf( stderr, " name=" );
2230 dump_varargs_unicode_str( cur_size );
2233 static void dump_set_atom_information_request( const struct set_atom_information_request *req )
2235 fprintf( stderr, " table=%p,", req->table );
2236 fprintf( stderr, " atom=%04x,", req->atom );
2237 fprintf( stderr, " pinned=%d", req->pinned );
2240 static void dump_empty_atom_table_request( const struct empty_atom_table_request *req )
2242 fprintf( stderr, " table=%p,", req->table );
2243 fprintf( stderr, " if_pinned=%d", req->if_pinned );
2246 static void dump_init_atom_table_request( const struct init_atom_table_request *req )
2248 fprintf( stderr, " entries=%d", req->entries );
2251 static void dump_init_atom_table_reply( const struct init_atom_table_reply *req )
2253 fprintf( stderr, " table=%p", req->table );
2256 static void dump_get_msg_queue_request( const struct get_msg_queue_request *req )
2260 static void dump_get_msg_queue_reply( const struct get_msg_queue_reply *req )
2262 fprintf( stderr, " handle=%p", req->handle );
2265 static void dump_set_queue_fd_request( const struct set_queue_fd_request *req )
2267 fprintf( stderr, " handle=%p", req->handle );
2270 static void dump_set_queue_mask_request( const struct set_queue_mask_request *req )
2272 fprintf( stderr, " wake_mask=%08x,", req->wake_mask );
2273 fprintf( stderr, " changed_mask=%08x,", req->changed_mask );
2274 fprintf( stderr, " skip_wait=%d", req->skip_wait );
2277 static void dump_set_queue_mask_reply( const struct set_queue_mask_reply *req )
2279 fprintf( stderr, " wake_bits=%08x,", req->wake_bits );
2280 fprintf( stderr, " changed_bits=%08x", req->changed_bits );
2283 static void dump_get_queue_status_request( const struct get_queue_status_request *req )
2285 fprintf( stderr, " clear=%d", req->clear );
2288 static void dump_get_queue_status_reply( const struct get_queue_status_reply *req )
2290 fprintf( stderr, " wake_bits=%08x,", req->wake_bits );
2291 fprintf( stderr, " changed_bits=%08x", req->changed_bits );
2294 static void dump_get_process_idle_event_request( const struct get_process_idle_event_request *req )
2296 fprintf( stderr, " handle=%p", req->handle );
2299 static void dump_get_process_idle_event_reply( const struct get_process_idle_event_reply *req )
2301 fprintf( stderr, " event=%p", req->event );
2304 static void dump_send_message_request( const struct send_message_request *req )
2306 fprintf( stderr, " id=%04x,", req->id );
2307 fprintf( stderr, " type=%d,", req->type );
2308 fprintf( stderr, " flags=%d,", req->flags );
2309 fprintf( stderr, " win=%p,", req->win );
2310 fprintf( stderr, " msg=%08x,", req->msg );
2311 fprintf( stderr, " wparam=%lx,", req->wparam );
2312 fprintf( stderr, " lparam=%lx,", req->lparam );
2313 fprintf( stderr, " timeout=" );
2314 dump_timeout( &req->timeout );
2315 fprintf( stderr, "," );
2316 fprintf( stderr, " data=" );
2317 dump_varargs_message_data( cur_size );
2320 static void dump_post_quit_message_request( const struct post_quit_message_request *req )
2322 fprintf( stderr, " exit_code=%d", req->exit_code );
2325 static void dump_send_hardware_message_request( const struct send_hardware_message_request *req )
2327 fprintf( stderr, " id=%04x,", req->id );
2328 fprintf( stderr, " win=%p,", req->win );
2329 fprintf( stderr, " msg=%08x,", req->msg );
2330 fprintf( stderr, " time=%08x,", req->time );
2331 fprintf( stderr, " wparam=%lx,", req->wparam );
2332 fprintf( stderr, " lparam=%lx,", req->lparam );
2333 fprintf( stderr, " info=%lx,", req->info );
2334 fprintf( stderr, " x=%d,", req->x );
2335 fprintf( stderr, " y=%d", req->y );
2338 static void dump_get_message_request( const struct get_message_request *req )
2340 fprintf( stderr, " flags=%08x,", req->flags );
2341 fprintf( stderr, " get_win=%p,", req->get_win );
2342 fprintf( stderr, " get_first=%08x,", req->get_first );
2343 fprintf( stderr, " get_last=%08x,", req->get_last );
2344 fprintf( stderr, " hw_id=%08x,", req->hw_id );
2345 fprintf( stderr, " wake_mask=%08x,", req->wake_mask );
2346 fprintf( stderr, " changed_mask=%08x", req->changed_mask );
2349 static void dump_get_message_reply( const struct get_message_reply *req )
2351 fprintf( stderr, " win=%p,", req->win );
2352 fprintf( stderr, " type=%d,", req->type );
2353 fprintf( stderr, " msg=%08x,", req->msg );
2354 fprintf( stderr, " wparam=%lx,", req->wparam );
2355 fprintf( stderr, " lparam=%lx,", req->lparam );
2356 fprintf( stderr, " info=%lx,", req->info );
2357 fprintf( stderr, " x=%d,", req->x );
2358 fprintf( stderr, " y=%d,", req->y );
2359 fprintf( stderr, " time=%08x,", req->time );
2360 fprintf( stderr, " hw_id=%08x,", req->hw_id );
2361 fprintf( stderr, " active_hooks=%08x,", req->active_hooks );
2362 fprintf( stderr, " total=%u,", req->total );
2363 fprintf( stderr, " data=" );
2364 dump_varargs_message_data( cur_size );
2367 static void dump_reply_message_request( const struct reply_message_request *req )
2369 fprintf( stderr, " result=%lx,", req->result );
2370 fprintf( stderr, " remove=%d,", req->remove );
2371 fprintf( stderr, " data=" );
2372 dump_varargs_bytes( cur_size );
2375 static void dump_accept_hardware_message_request( const struct accept_hardware_message_request *req )
2377 fprintf( stderr, " hw_id=%08x,", req->hw_id );
2378 fprintf( stderr, " remove=%d,", req->remove );
2379 fprintf( stderr, " new_win=%p", req->new_win );
2382 static void dump_get_message_reply_request( const struct get_message_reply_request *req )
2384 fprintf( stderr, " cancel=%d", req->cancel );
2387 static void dump_get_message_reply_reply( const struct get_message_reply_reply *req )
2389 fprintf( stderr, " result=%lx,", req->result );
2390 fprintf( stderr, " data=" );
2391 dump_varargs_bytes( cur_size );
2394 static void dump_set_win_timer_request( const struct set_win_timer_request *req )
2396 fprintf( stderr, " win=%p,", req->win );
2397 fprintf( stderr, " msg=%08x,", req->msg );
2398 fprintf( stderr, " rate=%08x,", req->rate );
2399 fprintf( stderr, " id=%lx,", req->id );
2400 fprintf( stderr, " lparam=%lx", req->lparam );
2403 static void dump_set_win_timer_reply( const struct set_win_timer_reply *req )
2405 fprintf( stderr, " id=%lx", req->id );
2408 static void dump_kill_win_timer_request( const struct kill_win_timer_request *req )
2410 fprintf( stderr, " win=%p,", req->win );
2411 fprintf( stderr, " msg=%08x,", req->msg );
2412 fprintf( stderr, " id=%lx", req->id );
2415 static void dump_get_serial_info_request( const struct get_serial_info_request *req )
2417 fprintf( stderr, " handle=%p", req->handle );
2420 static void dump_get_serial_info_reply( const struct get_serial_info_reply *req )
2422 fprintf( stderr, " readinterval=%08x,", req->readinterval );
2423 fprintf( stderr, " readconst=%08x,", req->readconst );
2424 fprintf( stderr, " readmult=%08x,", req->readmult );
2425 fprintf( stderr, " writeconst=%08x,", req->writeconst );
2426 fprintf( stderr, " writemult=%08x,", req->writemult );
2427 fprintf( stderr, " eventmask=%08x", req->eventmask );
2430 static void dump_set_serial_info_request( const struct set_serial_info_request *req )
2432 fprintf( stderr, " handle=%p,", req->handle );
2433 fprintf( stderr, " flags=%d,", req->flags );
2434 fprintf( stderr, " readinterval=%08x,", req->readinterval );
2435 fprintf( stderr, " readconst=%08x,", req->readconst );
2436 fprintf( stderr, " readmult=%08x,", req->readmult );
2437 fprintf( stderr, " writeconst=%08x,", req->writeconst );
2438 fprintf( stderr, " writemult=%08x,", req->writemult );
2439 fprintf( stderr, " eventmask=%08x", req->eventmask );
2442 static void dump_register_async_request( const struct register_async_request *req )
2444 fprintf( stderr, " handle=%p,", req->handle );
2445 fprintf( stderr, " type=%d,", req->type );
2446 fprintf( stderr, " count=%d,", req->count );
2447 fprintf( stderr, " async=" );
2448 dump_async_data( &req->async );
2451 static void dump_cancel_async_request( const struct cancel_async_request *req )
2453 fprintf( stderr, " handle=%p", req->handle );
2456 static void dump_ioctl_request( const struct ioctl_request *req )
2458 fprintf( stderr, " handle=%p,", req->handle );
2459 fprintf( stderr, " code=" );
2460 dump_ioctl_code( &req->code );
2461 fprintf( stderr, "," );
2462 fprintf( stderr, " async=" );
2463 dump_async_data( &req->async );
2464 fprintf( stderr, "," );
2465 fprintf( stderr, " in_data=" );
2466 dump_varargs_bytes( cur_size );
2469 static void dump_ioctl_reply( const struct ioctl_reply *req )
2471 fprintf( stderr, " wait=%p,", req->wait );
2472 fprintf( stderr, " options=%08x,", req->options );
2473 fprintf( stderr, " out_data=" );
2474 dump_varargs_bytes( cur_size );
2477 static void dump_get_ioctl_result_request( const struct get_ioctl_result_request *req )
2479 fprintf( stderr, " handle=%p,", req->handle );
2480 fprintf( stderr, " user_arg=%p", req->user_arg );
2483 static void dump_get_ioctl_result_reply( const struct get_ioctl_result_reply *req )
2485 fprintf( stderr, " out_data=" );
2486 dump_varargs_bytes( cur_size );
2489 static void dump_create_named_pipe_request( const struct create_named_pipe_request *req )
2491 fprintf( stderr, " access=%08x,", req->access );
2492 fprintf( stderr, " attributes=%08x,", req->attributes );
2493 fprintf( stderr, " rootdir=%p,", req->rootdir );
2494 fprintf( stderr, " options=%08x,", req->options );
2495 fprintf( stderr, " flags=%08x,", req->flags );
2496 fprintf( stderr, " maxinstances=%08x,", req->maxinstances );
2497 fprintf( stderr, " outsize=%08x,", req->outsize );
2498 fprintf( stderr, " insize=%08x,", req->insize );
2499 fprintf( stderr, " timeout=" );
2500 dump_timeout( &req->timeout );
2501 fprintf( stderr, "," );
2502 fprintf( stderr, " name=" );
2503 dump_varargs_unicode_str( cur_size );
2506 static void dump_create_named_pipe_reply( const struct create_named_pipe_reply *req )
2508 fprintf( stderr, " handle=%p", req->handle );
2511 static void dump_get_named_pipe_info_request( const struct get_named_pipe_info_request *req )
2513 fprintf( stderr, " handle=%p", req->handle );
2516 static void dump_get_named_pipe_info_reply( const struct get_named_pipe_info_reply *req )
2518 fprintf( stderr, " flags=%08x,", req->flags );
2519 fprintf( stderr, " maxinstances=%08x,", req->maxinstances );
2520 fprintf( stderr, " instances=%08x,", req->instances );
2521 fprintf( stderr, " outsize=%08x,", req->outsize );
2522 fprintf( stderr, " insize=%08x", req->insize );
2525 static void dump_create_window_request( const struct create_window_request *req )
2527 fprintf( stderr, " parent=%p,", req->parent );
2528 fprintf( stderr, " owner=%p,", req->owner );
2529 fprintf( stderr, " atom=%04x,", req->atom );
2530 fprintf( stderr, " instance=%p,", req->instance );
2531 fprintf( stderr, " class=" );
2532 dump_varargs_unicode_str( cur_size );
2535 static void dump_create_window_reply( const struct create_window_reply *req )
2537 fprintf( stderr, " handle=%p,", req->handle );
2538 fprintf( stderr, " parent=%p,", req->parent );
2539 fprintf( stderr, " owner=%p,", req->owner );
2540 fprintf( stderr, " extra=%d,", req->extra );
2541 fprintf( stderr, " class_ptr=%p", req->class_ptr );
2544 static void dump_destroy_window_request( const struct destroy_window_request *req )
2546 fprintf( stderr, " handle=%p", req->handle );
2549 static void dump_get_desktop_window_request( const struct get_desktop_window_request *req )
2551 fprintf( stderr, " force=%d", req->force );
2554 static void dump_get_desktop_window_reply( const struct get_desktop_window_reply *req )
2556 fprintf( stderr, " handle=%p", req->handle );
2559 static void dump_set_window_owner_request( const struct set_window_owner_request *req )
2561 fprintf( stderr, " handle=%p,", req->handle );
2562 fprintf( stderr, " owner=%p", req->owner );
2565 static void dump_set_window_owner_reply( const struct set_window_owner_reply *req )
2567 fprintf( stderr, " full_owner=%p,", req->full_owner );
2568 fprintf( stderr, " prev_owner=%p", req->prev_owner );
2571 static void dump_get_window_info_request( const struct get_window_info_request *req )
2573 fprintf( stderr, " handle=%p", req->handle );
2576 static void dump_get_window_info_reply( const struct get_window_info_reply *req )
2578 fprintf( stderr, " full_handle=%p,", req->full_handle );
2579 fprintf( stderr, " last_active=%p,", req->last_active );
2580 fprintf( stderr, " pid=%04x,", req->pid );
2581 fprintf( stderr, " tid=%04x,", req->tid );
2582 fprintf( stderr, " atom=%04x,", req->atom );
2583 fprintf( stderr, " is_unicode=%d", req->is_unicode );
2586 static void dump_set_window_info_request( const struct set_window_info_request *req )
2588 fprintf( stderr, " flags=%08x,", req->flags );
2589 fprintf( stderr, " handle=%p,", req->handle );
2590 fprintf( stderr, " style=%08x,", req->style );
2591 fprintf( stderr, " ex_style=%08x,", req->ex_style );
2592 fprintf( stderr, " id=%08x,", req->id );
2593 fprintf( stderr, " is_unicode=%d,", req->is_unicode );
2594 fprintf( stderr, " instance=%p,", req->instance );
2595 fprintf( stderr, " user_data=%lx,", req->user_data );
2596 fprintf( stderr, " extra_offset=%d,", req->extra_offset );
2597 fprintf( stderr, " extra_size=%u,", req->extra_size );
2598 fprintf( stderr, " extra_value=%lx", req->extra_value );
2601 static void dump_set_window_info_reply( const struct set_window_info_reply *req )
2603 fprintf( stderr, " old_style=%08x,", req->old_style );
2604 fprintf( stderr, " old_ex_style=%08x,", req->old_ex_style );
2605 fprintf( stderr, " old_id=%08x,", req->old_id );
2606 fprintf( stderr, " old_instance=%p,", req->old_instance );
2607 fprintf( stderr, " old_user_data=%lx,", req->old_user_data );
2608 fprintf( stderr, " old_extra_value=%lx", req->old_extra_value );
2611 static void dump_set_parent_request( const struct set_parent_request *req )
2613 fprintf( stderr, " handle=%p,", req->handle );
2614 fprintf( stderr, " parent=%p", req->parent );
2617 static void dump_set_parent_reply( const struct set_parent_reply *req )
2619 fprintf( stderr, " old_parent=%p,", req->old_parent );
2620 fprintf( stderr, " full_parent=%p", req->full_parent );
2623 static void dump_get_window_parents_request( const struct get_window_parents_request *req )
2625 fprintf( stderr, " handle=%p", req->handle );
2628 static void dump_get_window_parents_reply( const struct get_window_parents_reply *req )
2630 fprintf( stderr, " count=%d,", req->count );
2631 fprintf( stderr, " parents=" );
2632 dump_varargs_user_handles( cur_size );
2635 static void dump_get_window_children_request( const struct get_window_children_request *req )
2637 fprintf( stderr, " parent=%p,", req->parent );
2638 fprintf( stderr, " atom=%04x,", req->atom );
2639 fprintf( stderr, " tid=%04x,", req->tid );
2640 fprintf( stderr, " class=" );
2641 dump_varargs_unicode_str( cur_size );
2644 static void dump_get_window_children_reply( const struct get_window_children_reply *req )
2646 fprintf( stderr, " count=%d,", req->count );
2647 fprintf( stderr, " children=" );
2648 dump_varargs_user_handles( cur_size );
2651 static void dump_get_window_children_from_point_request( const struct get_window_children_from_point_request *req )
2653 fprintf( stderr, " parent=%p,", req->parent );
2654 fprintf( stderr, " x=%d,", req->x );
2655 fprintf( stderr, " y=%d", req->y );
2658 static void dump_get_window_children_from_point_reply( const struct get_window_children_from_point_reply *req )
2660 fprintf( stderr, " count=%d,", req->count );
2661 fprintf( stderr, " children=" );
2662 dump_varargs_user_handles( cur_size );
2665 static void dump_get_window_tree_request( const struct get_window_tree_request *req )
2667 fprintf( stderr, " handle=%p", req->handle );
2670 static void dump_get_window_tree_reply( const struct get_window_tree_reply *req )
2672 fprintf( stderr, " parent=%p,", req->parent );
2673 fprintf( stderr, " owner=%p,", req->owner );
2674 fprintf( stderr, " next_sibling=%p,", req->next_sibling );
2675 fprintf( stderr, " prev_sibling=%p,", req->prev_sibling );
2676 fprintf( stderr, " first_sibling=%p,", req->first_sibling );
2677 fprintf( stderr, " last_sibling=%p,", req->last_sibling );
2678 fprintf( stderr, " first_child=%p,", req->first_child );
2679 fprintf( stderr, " last_child=%p", req->last_child );
2682 static void dump_set_window_pos_request( const struct set_window_pos_request *req )
2684 fprintf( stderr, " flags=%08x,", req->flags );
2685 fprintf( stderr, " handle=%p,", req->handle );
2686 fprintf( stderr, " previous=%p,", req->previous );
2687 fprintf( stderr, " window=" );
2688 dump_rectangle( &req->window );
2689 fprintf( stderr, "," );
2690 fprintf( stderr, " client=" );
2691 dump_rectangle( &req->client );
2692 fprintf( stderr, "," );
2693 fprintf( stderr, " valid=" );
2694 dump_varargs_rectangles( cur_size );
2697 static void dump_set_window_pos_reply( const struct set_window_pos_reply *req )
2699 fprintf( stderr, " new_style=%08x,", req->new_style );
2700 fprintf( stderr, " new_ex_style=%08x", req->new_ex_style );
2703 static void dump_get_window_rectangles_request( const struct get_window_rectangles_request *req )
2705 fprintf( stderr, " handle=%p", req->handle );
2708 static void dump_get_window_rectangles_reply( const struct get_window_rectangles_reply *req )
2710 fprintf( stderr, " window=" );
2711 dump_rectangle( &req->window );
2712 fprintf( stderr, "," );
2713 fprintf( stderr, " visible=" );
2714 dump_rectangle( &req->visible );
2715 fprintf( stderr, "," );
2716 fprintf( stderr, " client=" );
2717 dump_rectangle( &req->client );
2720 static void dump_get_window_text_request( const struct get_window_text_request *req )
2722 fprintf( stderr, " handle=%p", req->handle );
2725 static void dump_get_window_text_reply( const struct get_window_text_reply *req )
2727 fprintf( stderr, " text=" );
2728 dump_varargs_unicode_str( cur_size );
2731 static void dump_set_window_text_request( const struct set_window_text_request *req )
2733 fprintf( stderr, " handle=%p,", req->handle );
2734 fprintf( stderr, " text=" );
2735 dump_varargs_unicode_str( cur_size );
2738 static void dump_get_windows_offset_request( const struct get_windows_offset_request *req )
2740 fprintf( stderr, " from=%p,", req->from );
2741 fprintf( stderr, " to=%p", req->to );
2744 static void dump_get_windows_offset_reply( const struct get_windows_offset_reply *req )
2746 fprintf( stderr, " x=%d,", req->x );
2747 fprintf( stderr, " y=%d", req->y );
2750 static void dump_get_visible_region_request( const struct get_visible_region_request *req )
2752 fprintf( stderr, " window=%p,", req->window );
2753 fprintf( stderr, " flags=%08x", req->flags );
2756 static void dump_get_visible_region_reply( const struct get_visible_region_reply *req )
2758 fprintf( stderr, " top_win=%p,", req->top_win );
2759 fprintf( stderr, " top_rect=" );
2760 dump_rectangle( &req->top_rect );
2761 fprintf( stderr, "," );
2762 fprintf( stderr, " win_rect=" );
2763 dump_rectangle( &req->win_rect );
2764 fprintf( stderr, "," );
2765 fprintf( stderr, " total_size=%u,", req->total_size );
2766 fprintf( stderr, " region=" );
2767 dump_varargs_rectangles( cur_size );
2770 static void dump_get_window_region_request( const struct get_window_region_request *req )
2772 fprintf( stderr, " window=%p", req->window );
2775 static void dump_get_window_region_reply( const struct get_window_region_reply *req )
2777 fprintf( stderr, " total_size=%u,", req->total_size );
2778 fprintf( stderr, " region=" );
2779 dump_varargs_rectangles( cur_size );
2782 static void dump_set_window_region_request( const struct set_window_region_request *req )
2784 fprintf( stderr, " window=%p,", req->window );
2785 fprintf( stderr, " redraw=%d,", req->redraw );
2786 fprintf( stderr, " region=" );
2787 dump_varargs_rectangles( cur_size );
2790 static void dump_get_update_region_request( const struct get_update_region_request *req )
2792 fprintf( stderr, " window=%p,", req->window );
2793 fprintf( stderr, " from_child=%p,", req->from_child );
2794 fprintf( stderr, " flags=%08x", req->flags );
2797 static void dump_get_update_region_reply( const struct get_update_region_reply *req )
2799 fprintf( stderr, " child=%p,", req->child );
2800 fprintf( stderr, " flags=%08x,", req->flags );
2801 fprintf( stderr, " total_size=%u,", req->total_size );
2802 fprintf( stderr, " region=" );
2803 dump_varargs_rectangles( cur_size );
2806 static void dump_update_window_zorder_request( const struct update_window_zorder_request *req )
2808 fprintf( stderr, " window=%p,", req->window );
2809 fprintf( stderr, " rect=" );
2810 dump_rectangle( &req->rect );
2813 static void dump_redraw_window_request( const struct redraw_window_request *req )
2815 fprintf( stderr, " window=%p,", req->window );
2816 fprintf( stderr, " flags=%08x,", req->flags );
2817 fprintf( stderr, " region=" );
2818 dump_varargs_rectangles( cur_size );
2821 static void dump_set_window_property_request( const struct set_window_property_request *req )
2823 fprintf( stderr, " window=%p,", req->window );
2824 fprintf( stderr, " atom=%04x,", req->atom );
2825 fprintf( stderr, " handle=%p,", req->handle );
2826 fprintf( stderr, " name=" );
2827 dump_varargs_unicode_str( cur_size );
2830 static void dump_remove_window_property_request( const struct remove_window_property_request *req )
2832 fprintf( stderr, " window=%p,", req->window );
2833 fprintf( stderr, " atom=%04x,", req->atom );
2834 fprintf( stderr, " name=" );
2835 dump_varargs_unicode_str( cur_size );
2838 static void dump_remove_window_property_reply( const struct remove_window_property_reply *req )
2840 fprintf( stderr, " handle=%p", req->handle );
2843 static void dump_get_window_property_request( const struct get_window_property_request *req )
2845 fprintf( stderr, " window=%p,", req->window );
2846 fprintf( stderr, " atom=%04x,", req->atom );
2847 fprintf( stderr, " name=" );
2848 dump_varargs_unicode_str( cur_size );
2851 static void dump_get_window_property_reply( const struct get_window_property_reply *req )
2853 fprintf( stderr, " handle=%p", req->handle );
2856 static void dump_get_window_properties_request( const struct get_window_properties_request *req )
2858 fprintf( stderr, " window=%p", req->window );
2861 static void dump_get_window_properties_reply( const struct get_window_properties_reply *req )
2863 fprintf( stderr, " total=%d,", req->total );
2864 fprintf( stderr, " props=" );
2865 dump_varargs_properties( cur_size );
2868 static void dump_create_winstation_request( const struct create_winstation_request *req )
2870 fprintf( stderr, " flags=%08x,", req->flags );
2871 fprintf( stderr, " access=%08x,", req->access );
2872 fprintf( stderr, " attributes=%08x,", req->attributes );
2873 fprintf( stderr, " name=" );
2874 dump_varargs_unicode_str( cur_size );
2877 static void dump_create_winstation_reply( const struct create_winstation_reply *req )
2879 fprintf( stderr, " handle=%p", req->handle );
2882 static void dump_open_winstation_request( const struct open_winstation_request *req )
2884 fprintf( stderr, " access=%08x,", req->access );
2885 fprintf( stderr, " attributes=%08x,", req->attributes );
2886 fprintf( stderr, " name=" );
2887 dump_varargs_unicode_str( cur_size );
2890 static void dump_open_winstation_reply( const struct open_winstation_reply *req )
2892 fprintf( stderr, " handle=%p", req->handle );
2895 static void dump_close_winstation_request( const struct close_winstation_request *req )
2897 fprintf( stderr, " handle=%p", req->handle );
2900 static void dump_get_process_winstation_request( const struct get_process_winstation_request *req )
2904 static void dump_get_process_winstation_reply( const struct get_process_winstation_reply *req )
2906 fprintf( stderr, " handle=%p", req->handle );
2909 static void dump_set_process_winstation_request( const struct set_process_winstation_request *req )
2911 fprintf( stderr, " handle=%p", req->handle );
2914 static void dump_enum_winstation_request( const struct enum_winstation_request *req )
2916 fprintf( stderr, " index=%08x", req->index );
2919 static void dump_enum_winstation_reply( const struct enum_winstation_reply *req )
2921 fprintf( stderr, " next=%08x,", req->next );
2922 fprintf( stderr, " name=" );
2923 dump_varargs_unicode_str( cur_size );
2926 static void dump_create_desktop_request( const struct create_desktop_request *req )
2928 fprintf( stderr, " flags=%08x,", req->flags );
2929 fprintf( stderr, " access=%08x,", req->access );
2930 fprintf( stderr, " attributes=%08x,", req->attributes );
2931 fprintf( stderr, " name=" );
2932 dump_varargs_unicode_str( cur_size );
2935 static void dump_create_desktop_reply( const struct create_desktop_reply *req )
2937 fprintf( stderr, " handle=%p", req->handle );
2940 static void dump_open_desktop_request( const struct open_desktop_request *req )
2942 fprintf( stderr, " flags=%08x,", req->flags );
2943 fprintf( stderr, " access=%08x,", req->access );
2944 fprintf( stderr, " attributes=%08x,", req->attributes );
2945 fprintf( stderr, " name=" );
2946 dump_varargs_unicode_str( cur_size );
2949 static void dump_open_desktop_reply( const struct open_desktop_reply *req )
2951 fprintf( stderr, " handle=%p", req->handle );
2954 static void dump_close_desktop_request( const struct close_desktop_request *req )
2956 fprintf( stderr, " handle=%p", req->handle );
2959 static void dump_get_thread_desktop_request( const struct get_thread_desktop_request *req )
2961 fprintf( stderr, " tid=%04x", req->tid );
2964 static void dump_get_thread_desktop_reply( const struct get_thread_desktop_reply *req )
2966 fprintf( stderr, " handle=%p", req->handle );
2969 static void dump_set_thread_desktop_request( const struct set_thread_desktop_request *req )
2971 fprintf( stderr, " handle=%p", req->handle );
2974 static void dump_enum_desktop_request( const struct enum_desktop_request *req )
2976 fprintf( stderr, " winstation=%p,", req->winstation );
2977 fprintf( stderr, " index=%08x", req->index );
2980 static void dump_enum_desktop_reply( const struct enum_desktop_reply *req )
2982 fprintf( stderr, " next=%08x,", req->next );
2983 fprintf( stderr, " name=" );
2984 dump_varargs_unicode_str( cur_size );
2987 static void dump_set_user_object_info_request( const struct set_user_object_info_request *req )
2989 fprintf( stderr, " handle=%p,", req->handle );
2990 fprintf( stderr, " flags=%08x,", req->flags );
2991 fprintf( stderr, " obj_flags=%08x", req->obj_flags );
2994 static void dump_set_user_object_info_reply( const struct set_user_object_info_reply *req )
2996 fprintf( stderr, " is_desktop=%d,", req->is_desktop );
2997 fprintf( stderr, " old_obj_flags=%08x,", req->old_obj_flags );
2998 fprintf( stderr, " name=" );
2999 dump_varargs_unicode_str( cur_size );
3002 static void dump_attach_thread_input_request( const struct attach_thread_input_request *req )
3004 fprintf( stderr, " tid_from=%04x,", req->tid_from );
3005 fprintf( stderr, " tid_to=%04x,", req->tid_to );
3006 fprintf( stderr, " attach=%d", req->attach );
3009 static void dump_get_thread_input_request( const struct get_thread_input_request *req )
3011 fprintf( stderr, " tid=%04x", req->tid );
3014 static void dump_get_thread_input_reply( const struct get_thread_input_reply *req )
3016 fprintf( stderr, " focus=%p,", req->focus );
3017 fprintf( stderr, " capture=%p,", req->capture );
3018 fprintf( stderr, " active=%p,", req->active );
3019 fprintf( stderr, " foreground=%p,", req->foreground );
3020 fprintf( stderr, " menu_owner=%p,", req->menu_owner );
3021 fprintf( stderr, " move_size=%p,", req->move_size );
3022 fprintf( stderr, " caret=%p,", req->caret );
3023 fprintf( stderr, " rect=" );
3024 dump_rectangle( &req->rect );
3027 static void dump_get_last_input_time_request( const struct get_last_input_time_request *req )
3031 static void dump_get_last_input_time_reply( const struct get_last_input_time_reply *req )
3033 fprintf( stderr, " time=%08x", req->time );
3036 static void dump_get_key_state_request( const struct get_key_state_request *req )
3038 fprintf( stderr, " tid=%04x,", req->tid );
3039 fprintf( stderr, " key=%d", req->key );
3042 static void dump_get_key_state_reply( const struct get_key_state_reply *req )
3044 fprintf( stderr, " state=%02x,", req->state );
3045 fprintf( stderr, " keystate=" );
3046 dump_varargs_bytes( cur_size );
3049 static void dump_set_key_state_request( const struct set_key_state_request *req )
3051 fprintf( stderr, " tid=%04x,", req->tid );
3052 fprintf( stderr, " keystate=" );
3053 dump_varargs_bytes( cur_size );
3056 static void dump_set_foreground_window_request( const struct set_foreground_window_request *req )
3058 fprintf( stderr, " handle=%p", req->handle );
3061 static void dump_set_foreground_window_reply( const struct set_foreground_window_reply *req )
3063 fprintf( stderr, " previous=%p,", req->previous );
3064 fprintf( stderr, " send_msg_old=%d,", req->send_msg_old );
3065 fprintf( stderr, " send_msg_new=%d", req->send_msg_new );
3068 static void dump_set_focus_window_request( const struct set_focus_window_request *req )
3070 fprintf( stderr, " handle=%p", req->handle );
3073 static void dump_set_focus_window_reply( const struct set_focus_window_reply *req )
3075 fprintf( stderr, " previous=%p", req->previous );
3078 static void dump_set_active_window_request( const struct set_active_window_request *req )
3080 fprintf( stderr, " handle=%p", req->handle );
3083 static void dump_set_active_window_reply( const struct set_active_window_reply *req )
3085 fprintf( stderr, " previous=%p", req->previous );
3088 static void dump_set_capture_window_request( const struct set_capture_window_request *req )
3090 fprintf( stderr, " handle=%p,", req->handle );
3091 fprintf( stderr, " flags=%08x", req->flags );
3094 static void dump_set_capture_window_reply( const struct set_capture_window_reply *req )
3096 fprintf( stderr, " previous=%p,", req->previous );
3097 fprintf( stderr, " full_handle=%p", req->full_handle );
3100 static void dump_set_caret_window_request( const struct set_caret_window_request *req )
3102 fprintf( stderr, " handle=%p,", req->handle );
3103 fprintf( stderr, " width=%d,", req->width );
3104 fprintf( stderr, " height=%d", req->height );
3107 static void dump_set_caret_window_reply( const struct set_caret_window_reply *req )
3109 fprintf( stderr, " previous=%p,", req->previous );
3110 fprintf( stderr, " old_rect=" );
3111 dump_rectangle( &req->old_rect );
3112 fprintf( stderr, "," );
3113 fprintf( stderr, " old_hide=%d,", req->old_hide );
3114 fprintf( stderr, " old_state=%d", req->old_state );
3117 static void dump_set_caret_info_request( const struct set_caret_info_request *req )
3119 fprintf( stderr, " flags=%08x,", req->flags );
3120 fprintf( stderr, " handle=%p,", req->handle );
3121 fprintf( stderr, " x=%d,", req->x );
3122 fprintf( stderr, " y=%d,", req->y );
3123 fprintf( stderr, " hide=%d,", req->hide );
3124 fprintf( stderr, " state=%d", req->state );
3127 static void dump_set_caret_info_reply( const struct set_caret_info_reply *req )
3129 fprintf( stderr, " full_handle=%p,", req->full_handle );
3130 fprintf( stderr, " old_rect=" );
3131 dump_rectangle( &req->old_rect );
3132 fprintf( stderr, "," );
3133 fprintf( stderr, " old_hide=%d,", req->old_hide );
3134 fprintf( stderr, " old_state=%d", req->old_state );
3137 static void dump_set_hook_request( const struct set_hook_request *req )
3139 fprintf( stderr, " id=%d,", req->id );
3140 fprintf( stderr, " pid=%04x,", req->pid );
3141 fprintf( stderr, " tid=%04x,", req->tid );
3142 fprintf( stderr, " event_min=%d,", req->event_min );
3143 fprintf( stderr, " event_max=%d,", req->event_max );
3144 fprintf( stderr, " flags=%d,", req->flags );
3145 fprintf( stderr, " proc=%p,", req->proc );
3146 fprintf( stderr, " unicode=%d,", req->unicode );
3147 fprintf( stderr, " module=" );
3148 dump_varargs_unicode_str( cur_size );
3151 static void dump_set_hook_reply( const struct set_hook_reply *req )
3153 fprintf( stderr, " handle=%p,", req->handle );
3154 fprintf( stderr, " active_hooks=%08x", req->active_hooks );
3157 static void dump_remove_hook_request( const struct remove_hook_request *req )
3159 fprintf( stderr, " handle=%p,", req->handle );
3160 fprintf( stderr, " id=%d,", req->id );
3161 fprintf( stderr, " proc=%p", req->proc );
3164 static void dump_remove_hook_reply( const struct remove_hook_reply *req )
3166 fprintf( stderr, " active_hooks=%08x", req->active_hooks );
3169 static void dump_start_hook_chain_request( const struct start_hook_chain_request *req )
3171 fprintf( stderr, " id=%d,", req->id );
3172 fprintf( stderr, " event=%d,", req->event );
3173 fprintf( stderr, " window=%p,", req->window );
3174 fprintf( stderr, " object_id=%d,", req->object_id );
3175 fprintf( stderr, " child_id=%d", req->child_id );
3178 static void dump_start_hook_chain_reply( const struct start_hook_chain_reply *req )
3180 fprintf( stderr, " handle=%p,", req->handle );
3181 fprintf( stderr, " pid=%04x,", req->pid );
3182 fprintf( stderr, " tid=%04x,", req->tid );
3183 fprintf( stderr, " proc=%p,", req->proc );
3184 fprintf( stderr, " unicode=%d,", req->unicode );
3185 fprintf( stderr, " active_hooks=%08x,", req->active_hooks );
3186 fprintf( stderr, " module=" );
3187 dump_varargs_unicode_str( cur_size );
3190 static void dump_finish_hook_chain_request( const struct finish_hook_chain_request *req )
3192 fprintf( stderr, " id=%d", req->id );
3195 static void dump_get_hook_info_request( const struct get_hook_info_request *req )
3197 fprintf( stderr, " handle=%p,", req->handle );
3198 fprintf( stderr, " get_next=%d,", req->get_next );
3199 fprintf( stderr, " event=%d,", req->event );
3200 fprintf( stderr, " window=%p,", req->window );
3201 fprintf( stderr, " object_id=%d,", req->object_id );
3202 fprintf( stderr, " child_id=%d", req->child_id );
3205 static void dump_get_hook_info_reply( const struct get_hook_info_reply *req )
3207 fprintf( stderr, " handle=%p,", req->handle );
3208 fprintf( stderr, " id=%d,", req->id );
3209 fprintf( stderr, " pid=%04x,", req->pid );
3210 fprintf( stderr, " tid=%04x,", req->tid );
3211 fprintf( stderr, " proc=%p,", req->proc );
3212 fprintf( stderr, " unicode=%d,", req->unicode );
3213 fprintf( stderr, " module=" );
3214 dump_varargs_unicode_str( cur_size );
3217 static void dump_create_class_request( const struct create_class_request *req )
3219 fprintf( stderr, " local=%d,", req->local );
3220 fprintf( stderr, " atom=%04x,", req->atom );
3221 fprintf( stderr, " style=%08x,", req->style );
3222 fprintf( stderr, " instance=%p,", req->instance );
3223 fprintf( stderr, " extra=%d,", req->extra );
3224 fprintf( stderr, " win_extra=%d,", req->win_extra );
3225 fprintf( stderr, " client_ptr=%p,", req->client_ptr );
3226 fprintf( stderr, " name=" );
3227 dump_varargs_unicode_str( cur_size );
3230 static void dump_create_class_reply( const struct create_class_reply *req )
3232 fprintf( stderr, " atom=%04x", req->atom );
3235 static void dump_destroy_class_request( const struct destroy_class_request *req )
3237 fprintf( stderr, " atom=%04x,", req->atom );
3238 fprintf( stderr, " instance=%p,", req->instance );
3239 fprintf( stderr, " name=" );
3240 dump_varargs_unicode_str( cur_size );
3243 static void dump_destroy_class_reply( const struct destroy_class_reply *req )
3245 fprintf( stderr, " client_ptr=%p", req->client_ptr );
3248 static void dump_set_class_info_request( const struct set_class_info_request *req )
3250 fprintf( stderr, " window=%p,", req->window );
3251 fprintf( stderr, " flags=%08x,", req->flags );
3252 fprintf( stderr, " atom=%04x,", req->atom );
3253 fprintf( stderr, " style=%08x,", req->style );
3254 fprintf( stderr, " win_extra=%d,", req->win_extra );
3255 fprintf( stderr, " instance=%p,", req->instance );
3256 fprintf( stderr, " extra_offset=%d,", req->extra_offset );
3257 fprintf( stderr, " extra_size=%u,", req->extra_size );
3258 fprintf( stderr, " extra_value=%lx", req->extra_value );
3261 static void dump_set_class_info_reply( const struct set_class_info_reply *req )
3263 fprintf( stderr, " old_atom=%04x,", req->old_atom );
3264 fprintf( stderr, " old_style=%08x,", req->old_style );
3265 fprintf( stderr, " old_extra=%d,", req->old_extra );
3266 fprintf( stderr, " old_win_extra=%d,", req->old_win_extra );
3267 fprintf( stderr, " old_instance=%p,", req->old_instance );
3268 fprintf( stderr, " old_extra_value=%lx", req->old_extra_value );
3271 static void dump_set_clipboard_info_request( const struct set_clipboard_info_request *req )
3273 fprintf( stderr, " flags=%08x,", req->flags );
3274 fprintf( stderr, " clipboard=%p,", req->clipboard );
3275 fprintf( stderr, " owner=%p,", req->owner );
3276 fprintf( stderr, " viewer=%p,", req->viewer );
3277 fprintf( stderr, " seqno=%08x", req->seqno );
3280 static void dump_set_clipboard_info_reply( const struct set_clipboard_info_reply *req )
3282 fprintf( stderr, " flags=%08x,", req->flags );
3283 fprintf( stderr, " old_clipboard=%p,", req->old_clipboard );
3284 fprintf( stderr, " old_owner=%p,", req->old_owner );
3285 fprintf( stderr, " old_viewer=%p,", req->old_viewer );
3286 fprintf( stderr, " seqno=%08x", req->seqno );
3289 static void dump_open_token_request( const struct open_token_request *req )
3291 fprintf( stderr, " handle=%p,", req->handle );
3292 fprintf( stderr, " access=%08x,", req->access );
3293 fprintf( stderr, " attributes=%08x,", req->attributes );
3294 fprintf( stderr, " flags=%08x", req->flags );
3297 static void dump_open_token_reply( const struct open_token_reply *req )
3299 fprintf( stderr, " token=%p", req->token );
3302 static void dump_set_global_windows_request( const struct set_global_windows_request *req )
3304 fprintf( stderr, " flags=%08x,", req->flags );
3305 fprintf( stderr, " shell_window=%p,", req->shell_window );
3306 fprintf( stderr, " shell_listview=%p,", req->shell_listview );
3307 fprintf( stderr, " progman_window=%p,", req->progman_window );
3308 fprintf( stderr, " taskman_window=%p", req->taskman_window );
3311 static void dump_set_global_windows_reply( const struct set_global_windows_reply *req )
3313 fprintf( stderr, " old_shell_window=%p,", req->old_shell_window );
3314 fprintf( stderr, " old_shell_listview=%p,", req->old_shell_listview );
3315 fprintf( stderr, " old_progman_window=%p,", req->old_progman_window );
3316 fprintf( stderr, " old_taskman_window=%p", req->old_taskman_window );
3319 static void dump_adjust_token_privileges_request( const struct adjust_token_privileges_request *req )
3321 fprintf( stderr, " handle=%p,", req->handle );
3322 fprintf( stderr, " disable_all=%d,", req->disable_all );
3323 fprintf( stderr, " get_modified_state=%d,", req->get_modified_state );
3324 fprintf( stderr, " privileges=" );
3325 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
3328 static void dump_adjust_token_privileges_reply( const struct adjust_token_privileges_reply *req )
3330 fprintf( stderr, " len=%08x,", req->len );
3331 fprintf( stderr, " privileges=" );
3332 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
3335 static void dump_get_token_privileges_request( const struct get_token_privileges_request *req )
3337 fprintf( stderr, " handle=%p", req->handle );
3340 static void dump_get_token_privileges_reply( const struct get_token_privileges_reply *req )
3342 fprintf( stderr, " len=%08x,", req->len );
3343 fprintf( stderr, " privileges=" );
3344 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
3347 static void dump_check_token_privileges_request( const struct check_token_privileges_request *req )
3349 fprintf( stderr, " handle=%p,", req->handle );
3350 fprintf( stderr, " all_required=%d,", req->all_required );
3351 fprintf( stderr, " privileges=" );
3352 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
3355 static void dump_check_token_privileges_reply( const struct check_token_privileges_reply *req )
3357 fprintf( stderr, " has_privileges=%d,", req->has_privileges );
3358 fprintf( stderr, " privileges=" );
3359 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
3362 static void dump_duplicate_token_request( const struct duplicate_token_request *req )
3364 fprintf( stderr, " handle=%p,", req->handle );
3365 fprintf( stderr, " access=%08x,", req->access );
3366 fprintf( stderr, " attributes=%08x,", req->attributes );
3367 fprintf( stderr, " primary=%d,", req->primary );
3368 fprintf( stderr, " impersonation_level=%d", req->impersonation_level );
3371 static void dump_duplicate_token_reply( const struct duplicate_token_reply *req )
3373 fprintf( stderr, " new_handle=%p", req->new_handle );
3376 static void dump_access_check_request( const struct access_check_request *req )
3378 fprintf( stderr, " handle=%p,", req->handle );
3379 fprintf( stderr, " desired_access=%08x,", req->desired_access );
3380 fprintf( stderr, " mapping_read=%08x,", req->mapping_read );
3381 fprintf( stderr, " mapping_write=%08x,", req->mapping_write );
3382 fprintf( stderr, " mapping_execute=%08x,", req->mapping_execute );
3383 fprintf( stderr, " mapping_all=%08x,", req->mapping_all );
3384 fprintf( stderr, " sd=" );
3385 dump_varargs_security_descriptor( cur_size );
3388 static void dump_access_check_reply( const struct access_check_reply *req )
3390 fprintf( stderr, " access_granted=%08x,", req->access_granted );
3391 fprintf( stderr, " access_status=%08x,", req->access_status );
3392 fprintf( stderr, " privileges_len=%08x,", req->privileges_len );
3393 fprintf( stderr, " privileges=" );
3394 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
3397 static void dump_get_token_user_request( const struct get_token_user_request *req )
3399 fprintf( stderr, " handle=%p", req->handle );
3402 static void dump_get_token_user_reply( const struct get_token_user_reply *req )
3404 fprintf( stderr, " user_len=%u,", req->user_len );
3405 fprintf( stderr, " user=" );
3406 dump_varargs_SID( cur_size );
3409 static void dump_get_token_groups_request( const struct get_token_groups_request *req )
3411 fprintf( stderr, " handle=%p", req->handle );
3414 static void dump_get_token_groups_reply( const struct get_token_groups_reply *req )
3416 fprintf( stderr, " user_len=%u,", req->user_len );
3417 fprintf( stderr, " user=" );
3418 dump_varargs_token_groups( cur_size );
3421 static void dump_set_security_object_request( const struct set_security_object_request *req )
3423 fprintf( stderr, " handle=%p,", req->handle );
3424 fprintf( stderr, " security_info=%08x,", req->security_info );
3425 fprintf( stderr, " sd=" );
3426 dump_varargs_security_descriptor( cur_size );
3429 static void dump_get_security_object_request( const struct get_security_object_request *req )
3431 fprintf( stderr, " handle=%p,", req->handle );
3432 fprintf( stderr, " security_info=%08x", req->security_info );
3435 static void dump_get_security_object_reply( const struct get_security_object_reply *req )
3437 fprintf( stderr, " sd_len=%08x,", req->sd_len );
3438 fprintf( stderr, " sd=" );
3439 dump_varargs_security_descriptor( cur_size );
3442 static void dump_create_mailslot_request( const struct create_mailslot_request *req )
3444 fprintf( stderr, " access=%08x,", req->access );
3445 fprintf( stderr, " attributes=%08x,", req->attributes );
3446 fprintf( stderr, " rootdir=%p,", req->rootdir );
3447 fprintf( stderr, " max_msgsize=%08x,", req->max_msgsize );
3448 fprintf( stderr, " read_timeout=" );
3449 dump_timeout( &req->read_timeout );
3450 fprintf( stderr, "," );
3451 fprintf( stderr, " name=" );
3452 dump_varargs_unicode_str( cur_size );
3455 static void dump_create_mailslot_reply( const struct create_mailslot_reply *req )
3457 fprintf( stderr, " handle=%p", req->handle );
3460 static void dump_set_mailslot_info_request( const struct set_mailslot_info_request *req )
3462 fprintf( stderr, " handle=%p,", req->handle );
3463 fprintf( stderr, " flags=%08x,", req->flags );
3464 fprintf( stderr, " read_timeout=" );
3465 dump_timeout( &req->read_timeout );
3468 static void dump_set_mailslot_info_reply( const struct set_mailslot_info_reply *req )
3470 fprintf( stderr, " max_msgsize=%08x,", req->max_msgsize );
3471 fprintf( stderr, " read_timeout=" );
3472 dump_timeout( &req->read_timeout );
3475 static void dump_create_directory_request( const struct create_directory_request *req )
3477 fprintf( stderr, " access=%08x,", req->access );
3478 fprintf( stderr, " attributes=%08x,", req->attributes );
3479 fprintf( stderr, " rootdir=%p,", req->rootdir );
3480 fprintf( stderr, " directory_name=" );
3481 dump_varargs_unicode_str( cur_size );
3484 static void dump_create_directory_reply( const struct create_directory_reply *req )
3486 fprintf( stderr, " handle=%p", req->handle );
3489 static void dump_open_directory_request( const struct open_directory_request *req )
3491 fprintf( stderr, " access=%08x,", req->access );
3492 fprintf( stderr, " attributes=%08x,", req->attributes );
3493 fprintf( stderr, " rootdir=%p,", req->rootdir );
3494 fprintf( stderr, " directory_name=" );
3495 dump_varargs_unicode_str( cur_size );
3498 static void dump_open_directory_reply( const struct open_directory_reply *req )
3500 fprintf( stderr, " handle=%p", req->handle );
3503 static void dump_get_directory_entry_request( const struct get_directory_entry_request *req )
3505 fprintf( stderr, " handle=%p,", req->handle );
3506 fprintf( stderr, " index=%08x", req->index );
3509 static void dump_get_directory_entry_reply( const struct get_directory_entry_reply *req )
3511 fprintf( stderr, " name_len=%lu,", (unsigned long)req->name_len );
3512 fprintf( stderr, " name=" );
3513 dump_varargs_unicode_str( min(cur_size,req->name_len) );
3514 fputc( ',', stderr );
3515 fprintf( stderr, " type=" );
3516 dump_varargs_unicode_str( cur_size );
3519 static void dump_create_symlink_request( const struct create_symlink_request *req )
3521 fprintf( stderr, " access=%08x,", req->access );
3522 fprintf( stderr, " attributes=%08x,", req->attributes );
3523 fprintf( stderr, " rootdir=%p,", req->rootdir );
3524 fprintf( stderr, " name_len=%u,", req->name_len );
3525 fprintf( stderr, " name=" );
3526 dump_varargs_unicode_str( min(cur_size,req->name_len) );
3527 fputc( ',', stderr );
3528 fprintf( stderr, " target_name=" );
3529 dump_varargs_unicode_str( cur_size );
3532 static void dump_create_symlink_reply( const struct create_symlink_reply *req )
3534 fprintf( stderr, " handle=%p", req->handle );
3537 static void dump_open_symlink_request( const struct open_symlink_request *req )
3539 fprintf( stderr, " access=%08x,", req->access );
3540 fprintf( stderr, " attributes=%08x,", req->attributes );
3541 fprintf( stderr, " rootdir=%p,", req->rootdir );
3542 fprintf( stderr, " name=" );
3543 dump_varargs_unicode_str( cur_size );
3546 static void dump_open_symlink_reply( const struct open_symlink_reply *req )
3548 fprintf( stderr, " handle=%p", req->handle );
3551 static void dump_query_symlink_request( const struct query_symlink_request *req )
3553 fprintf( stderr, " handle=%p", req->handle );
3556 static void dump_query_symlink_reply( const struct query_symlink_reply *req )
3558 fprintf( stderr, " target_name=" );
3559 dump_varargs_unicode_str( cur_size );
3562 static void dump_get_object_info_request( const struct get_object_info_request *req )
3564 fprintf( stderr, " handle=%p", req->handle );
3567 static void dump_get_object_info_reply( const struct get_object_info_reply *req )
3569 fprintf( stderr, " access=%08x,", req->access );
3570 fprintf( stderr, " ref_count=%08x", req->ref_count );
3573 static void dump_get_token_impersonation_level_request( const struct get_token_impersonation_level_request *req )
3575 fprintf( stderr, " handle=%p", req->handle );
3578 static void dump_get_token_impersonation_level_reply( const struct get_token_impersonation_level_reply *req )
3580 fprintf( stderr, " impersonation_level=%d", req->impersonation_level );
3583 static void dump_allocate_locally_unique_id_request( const struct allocate_locally_unique_id_request *req )
3587 static void dump_allocate_locally_unique_id_reply( const struct allocate_locally_unique_id_reply *req )
3589 fprintf( stderr, " luid=" );
3590 dump_luid( &req->luid );
3593 static void dump_create_device_manager_request( const struct create_device_manager_request *req )
3595 fprintf( stderr, " access=%08x,", req->access );
3596 fprintf( stderr, " attributes=%08x", req->attributes );
3599 static void dump_create_device_manager_reply( const struct create_device_manager_reply *req )
3601 fprintf( stderr, " handle=%p", req->handle );
3604 static void dump_create_device_request( const struct create_device_request *req )
3606 fprintf( stderr, " access=%08x,", req->access );
3607 fprintf( stderr, " attributes=%08x,", req->attributes );
3608 fprintf( stderr, " rootdir=%p,", req->rootdir );
3609 fprintf( stderr, " manager=%p,", req->manager );
3610 fprintf( stderr, " user_ptr=%p,", req->user_ptr );
3611 fprintf( stderr, " name=" );
3612 dump_varargs_unicode_str( cur_size );
3615 static void dump_create_device_reply( const struct create_device_reply *req )
3617 fprintf( stderr, " handle=%p", req->handle );
3620 static void dump_delete_device_request( const struct delete_device_request *req )
3622 fprintf( stderr, " handle=%p", req->handle );
3625 static void dump_get_next_device_request_request( const struct get_next_device_request_request *req )
3627 fprintf( stderr, " manager=%p,", req->manager );
3628 fprintf( stderr, " prev=%p,", req->prev );
3629 fprintf( stderr, " status=%08x,", req->status );
3630 fprintf( stderr, " prev_data=" );
3631 dump_varargs_bytes( cur_size );
3634 static void dump_get_next_device_request_reply( const struct get_next_device_request_reply *req )
3636 fprintf( stderr, " next=%p,", req->next );
3637 fprintf( stderr, " code=" );
3638 dump_ioctl_code( &req->code );
3639 fprintf( stderr, "," );
3640 fprintf( stderr, " user_ptr=%p,", req->user_ptr );
3641 fprintf( stderr, " in_size=%u,", req->in_size );
3642 fprintf( stderr, " out_size=%u,", req->out_size );
3643 fprintf( stderr, " next_data=" );
3644 dump_varargs_bytes( cur_size );
3647 static void dump_make_process_system_request( const struct make_process_system_request *req )
3651 static void dump_make_process_system_reply( const struct make_process_system_reply *req )
3653 fprintf( stderr, " event=%p", req->event );
3656 static void dump_get_token_statistics_request( const struct get_token_statistics_request *req )
3658 fprintf( stderr, " handle=%p", req->handle );
3661 static void dump_get_token_statistics_reply( const struct get_token_statistics_reply *req )
3663 fprintf( stderr, " token_id=" );
3664 dump_luid( &req->token_id );
3665 fprintf( stderr, "," );
3666 fprintf( stderr, " modified_id=" );
3667 dump_luid( &req->modified_id );
3668 fprintf( stderr, "," );
3669 fprintf( stderr, " primary=%d,", req->primary );
3670 fprintf( stderr, " impersonation_level=%d,", req->impersonation_level );
3671 fprintf( stderr, " group_count=%d,", req->group_count );
3672 fprintf( stderr, " privilege_count=%d", req->privilege_count );
3675 static void dump_create_completion_request( const struct create_completion_request *req )
3677 fprintf( stderr, " access=%08x,", req->access );
3678 fprintf( stderr, " attributes=%08x,", req->attributes );
3679 fprintf( stderr, " concurrent=%08x,", req->concurrent );
3680 fprintf( stderr, " rootdir=%p,", req->rootdir );
3681 fprintf( stderr, " filename=" );
3682 dump_varargs_string( cur_size );
3685 static void dump_create_completion_reply( const struct create_completion_reply *req )
3687 fprintf( stderr, " handle=%p", req->handle );
3690 static void dump_open_completion_request( const struct open_completion_request *req )
3692 fprintf( stderr, " access=%08x,", req->access );
3693 fprintf( stderr, " attributes=%08x,", req->attributes );
3694 fprintf( stderr, " rootdir=%p,", req->rootdir );
3695 fprintf( stderr, " filename=" );
3696 dump_varargs_string( cur_size );
3699 static void dump_open_completion_reply( const struct open_completion_reply *req )
3701 fprintf( stderr, " handle=%p", req->handle );
3704 static void dump_add_completion_request( const struct add_completion_request *req )
3706 fprintf( stderr, " handle=%p,", req->handle );
3707 fprintf( stderr, " ckey=%lx,", req->ckey );
3708 fprintf( stderr, " cvalue=%lx,", req->cvalue );
3709 fprintf( stderr, " information=%lx,", req->information );
3710 fprintf( stderr, " status=%08x", req->status );
3713 static void dump_remove_completion_request( const struct remove_completion_request *req )
3715 fprintf( stderr, " handle=%p", req->handle );
3718 static void dump_remove_completion_reply( const struct remove_completion_reply *req )
3720 fprintf( stderr, " ckey=%lx,", req->ckey );
3721 fprintf( stderr, " cvalue=%lx,", req->cvalue );
3722 fprintf( stderr, " information=%lx,", req->information );
3723 fprintf( stderr, " status=%08x", req->status );
3726 static void dump_query_completion_request( const struct query_completion_request *req )
3728 fprintf( stderr, " handle=%p", req->handle );
3731 static void dump_query_completion_reply( const struct query_completion_reply *req )
3733 fprintf( stderr, " depth=%08x", req->depth );
3736 static void dump_set_completion_info_request( const struct set_completion_info_request *req )
3738 fprintf( stderr, " handle=%p,", req->handle );
3739 fprintf( stderr, " chandle=%p,", req->chandle );
3740 fprintf( stderr, " ckey=%lx", req->ckey );
3743 static void dump_add_fd_completion_request( const struct add_fd_completion_request *req )
3745 fprintf( stderr, " handle=%p,", req->handle );
3746 fprintf( stderr, " cvalue=%lx,", req->cvalue );
3747 fprintf( stderr, " status=%08x,", req->status );
3748 fprintf( stderr, " information=%lx", req->information );
3751 static const dump_func req_dumpers[REQ_NB_REQUESTS] = {
3752 (dump_func)dump_new_process_request,
3753 (dump_func)dump_get_new_process_info_request,
3754 (dump_func)dump_new_thread_request,
3755 (dump_func)dump_get_startup_info_request,
3756 (dump_func)dump_init_process_done_request,
3757 (dump_func)dump_init_thread_request,
3758 (dump_func)dump_terminate_process_request,
3759 (dump_func)dump_terminate_thread_request,
3760 (dump_func)dump_get_process_info_request,
3761 (dump_func)dump_set_process_info_request,
3762 (dump_func)dump_get_thread_info_request,
3763 (dump_func)dump_set_thread_info_request,
3764 (dump_func)dump_get_dll_info_request,
3765 (dump_func)dump_suspend_thread_request,
3766 (dump_func)dump_resume_thread_request,
3767 (dump_func)dump_load_dll_request,
3768 (dump_func)dump_unload_dll_request,
3769 (dump_func)dump_queue_apc_request,
3770 (dump_func)dump_get_apc_result_request,
3771 (dump_func)dump_close_handle_request,
3772 (dump_func)dump_set_handle_info_request,
3773 (dump_func)dump_dup_handle_request,
3774 (dump_func)dump_open_process_request,
3775 (dump_func)dump_open_thread_request,
3776 (dump_func)dump_select_request,
3777 (dump_func)dump_create_event_request,
3778 (dump_func)dump_event_op_request,
3779 (dump_func)dump_open_event_request,
3780 (dump_func)dump_create_mutex_request,
3781 (dump_func)dump_release_mutex_request,
3782 (dump_func)dump_open_mutex_request,
3783 (dump_func)dump_create_semaphore_request,
3784 (dump_func)dump_release_semaphore_request,
3785 (dump_func)dump_open_semaphore_request,
3786 (dump_func)dump_create_file_request,
3787 (dump_func)dump_open_file_object_request,
3788 (dump_func)dump_alloc_file_handle_request,
3789 (dump_func)dump_get_handle_fd_request,
3790 (dump_func)dump_flush_file_request,
3791 (dump_func)dump_lock_file_request,
3792 (dump_func)dump_unlock_file_request,
3793 (dump_func)dump_create_socket_request,
3794 (dump_func)dump_accept_socket_request,
3795 (dump_func)dump_set_socket_event_request,
3796 (dump_func)dump_get_socket_event_request,
3797 (dump_func)dump_enable_socket_event_request,
3798 (dump_func)dump_set_socket_deferred_request,
3799 (dump_func)dump_alloc_console_request,
3800 (dump_func)dump_free_console_request,
3801 (dump_func)dump_get_console_renderer_events_request,
3802 (dump_func)dump_open_console_request,
3803 (dump_func)dump_get_console_wait_event_request,
3804 (dump_func)dump_get_console_mode_request,
3805 (dump_func)dump_set_console_mode_request,
3806 (dump_func)dump_set_console_input_info_request,
3807 (dump_func)dump_get_console_input_info_request,
3808 (dump_func)dump_append_console_input_history_request,
3809 (dump_func)dump_get_console_input_history_request,
3810 (dump_func)dump_create_console_output_request,
3811 (dump_func)dump_set_console_output_info_request,
3812 (dump_func)dump_get_console_output_info_request,
3813 (dump_func)dump_write_console_input_request,
3814 (dump_func)dump_read_console_input_request,
3815 (dump_func)dump_write_console_output_request,
3816 (dump_func)dump_fill_console_output_request,
3817 (dump_func)dump_read_console_output_request,
3818 (dump_func)dump_move_console_output_request,
3819 (dump_func)dump_send_console_signal_request,
3820 (dump_func)dump_read_directory_changes_request,
3821 (dump_func)dump_read_change_request,
3822 (dump_func)dump_create_mapping_request,
3823 (dump_func)dump_open_mapping_request,
3824 (dump_func)dump_get_mapping_info_request,
3825 (dump_func)dump_create_snapshot_request,
3826 (dump_func)dump_next_process_request,
3827 (dump_func)dump_next_thread_request,
3828 (dump_func)dump_next_module_request,
3829 (dump_func)dump_wait_debug_event_request,
3830 (dump_func)dump_queue_exception_event_request,
3831 (dump_func)dump_get_exception_status_request,
3832 (dump_func)dump_output_debug_string_request,
3833 (dump_func)dump_continue_debug_event_request,
3834 (dump_func)dump_debug_process_request,
3835 (dump_func)dump_debug_break_request,
3836 (dump_func)dump_set_debugger_kill_on_exit_request,
3837 (dump_func)dump_read_process_memory_request,
3838 (dump_func)dump_write_process_memory_request,
3839 (dump_func)dump_create_key_request,
3840 (dump_func)dump_open_key_request,
3841 (dump_func)dump_delete_key_request,
3842 (dump_func)dump_flush_key_request,
3843 (dump_func)dump_enum_key_request,
3844 (dump_func)dump_set_key_value_request,
3845 (dump_func)dump_get_key_value_request,
3846 (dump_func)dump_enum_key_value_request,
3847 (dump_func)dump_delete_key_value_request,
3848 (dump_func)dump_load_registry_request,
3849 (dump_func)dump_unload_registry_request,
3850 (dump_func)dump_save_registry_request,
3851 (dump_func)dump_set_registry_notification_request,
3852 (dump_func)dump_create_timer_request,
3853 (dump_func)dump_open_timer_request,
3854 (dump_func)dump_set_timer_request,
3855 (dump_func)dump_cancel_timer_request,
3856 (dump_func)dump_get_timer_info_request,
3857 (dump_func)dump_get_thread_context_request,
3858 (dump_func)dump_set_thread_context_request,
3859 (dump_func)dump_get_selector_entry_request,
3860 (dump_func)dump_add_atom_request,
3861 (dump_func)dump_delete_atom_request,
3862 (dump_func)dump_find_atom_request,
3863 (dump_func)dump_get_atom_information_request,
3864 (dump_func)dump_set_atom_information_request,
3865 (dump_func)dump_empty_atom_table_request,
3866 (dump_func)dump_init_atom_table_request,
3867 (dump_func)dump_get_msg_queue_request,
3868 (dump_func)dump_set_queue_fd_request,
3869 (dump_func)dump_set_queue_mask_request,
3870 (dump_func)dump_get_queue_status_request,
3871 (dump_func)dump_get_process_idle_event_request,
3872 (dump_func)dump_send_message_request,
3873 (dump_func)dump_post_quit_message_request,
3874 (dump_func)dump_send_hardware_message_request,
3875 (dump_func)dump_get_message_request,
3876 (dump_func)dump_reply_message_request,
3877 (dump_func)dump_accept_hardware_message_request,
3878 (dump_func)dump_get_message_reply_request,
3879 (dump_func)dump_set_win_timer_request,
3880 (dump_func)dump_kill_win_timer_request,
3881 (dump_func)dump_get_serial_info_request,
3882 (dump_func)dump_set_serial_info_request,
3883 (dump_func)dump_register_async_request,
3884 (dump_func)dump_cancel_async_request,
3885 (dump_func)dump_ioctl_request,
3886 (dump_func)dump_get_ioctl_result_request,
3887 (dump_func)dump_create_named_pipe_request,
3888 (dump_func)dump_get_named_pipe_info_request,
3889 (dump_func)dump_create_window_request,
3890 (dump_func)dump_destroy_window_request,
3891 (dump_func)dump_get_desktop_window_request,
3892 (dump_func)dump_set_window_owner_request,
3893 (dump_func)dump_get_window_info_request,
3894 (dump_func)dump_set_window_info_request,
3895 (dump_func)dump_set_parent_request,
3896 (dump_func)dump_get_window_parents_request,
3897 (dump_func)dump_get_window_children_request,
3898 (dump_func)dump_get_window_children_from_point_request,
3899 (dump_func)dump_get_window_tree_request,
3900 (dump_func)dump_set_window_pos_request,
3901 (dump_func)dump_get_window_rectangles_request,
3902 (dump_func)dump_get_window_text_request,
3903 (dump_func)dump_set_window_text_request,
3904 (dump_func)dump_get_windows_offset_request,
3905 (dump_func)dump_get_visible_region_request,
3906 (dump_func)dump_get_window_region_request,
3907 (dump_func)dump_set_window_region_request,
3908 (dump_func)dump_get_update_region_request,
3909 (dump_func)dump_update_window_zorder_request,
3910 (dump_func)dump_redraw_window_request,
3911 (dump_func)dump_set_window_property_request,
3912 (dump_func)dump_remove_window_property_request,
3913 (dump_func)dump_get_window_property_request,
3914 (dump_func)dump_get_window_properties_request,
3915 (dump_func)dump_create_winstation_request,
3916 (dump_func)dump_open_winstation_request,
3917 (dump_func)dump_close_winstation_request,
3918 (dump_func)dump_get_process_winstation_request,
3919 (dump_func)dump_set_process_winstation_request,
3920 (dump_func)dump_enum_winstation_request,
3921 (dump_func)dump_create_desktop_request,
3922 (dump_func)dump_open_desktop_request,
3923 (dump_func)dump_close_desktop_request,
3924 (dump_func)dump_get_thread_desktop_request,
3925 (dump_func)dump_set_thread_desktop_request,
3926 (dump_func)dump_enum_desktop_request,
3927 (dump_func)dump_set_user_object_info_request,
3928 (dump_func)dump_attach_thread_input_request,
3929 (dump_func)dump_get_thread_input_request,
3930 (dump_func)dump_get_last_input_time_request,
3931 (dump_func)dump_get_key_state_request,
3932 (dump_func)dump_set_key_state_request,
3933 (dump_func)dump_set_foreground_window_request,
3934 (dump_func)dump_set_focus_window_request,
3935 (dump_func)dump_set_active_window_request,
3936 (dump_func)dump_set_capture_window_request,
3937 (dump_func)dump_set_caret_window_request,
3938 (dump_func)dump_set_caret_info_request,
3939 (dump_func)dump_set_hook_request,
3940 (dump_func)dump_remove_hook_request,
3941 (dump_func)dump_start_hook_chain_request,
3942 (dump_func)dump_finish_hook_chain_request,
3943 (dump_func)dump_get_hook_info_request,
3944 (dump_func)dump_create_class_request,
3945 (dump_func)dump_destroy_class_request,
3946 (dump_func)dump_set_class_info_request,
3947 (dump_func)dump_set_clipboard_info_request,
3948 (dump_func)dump_open_token_request,
3949 (dump_func)dump_set_global_windows_request,
3950 (dump_func)dump_adjust_token_privileges_request,
3951 (dump_func)dump_get_token_privileges_request,
3952 (dump_func)dump_check_token_privileges_request,
3953 (dump_func)dump_duplicate_token_request,
3954 (dump_func)dump_access_check_request,
3955 (dump_func)dump_get_token_user_request,
3956 (dump_func)dump_get_token_groups_request,
3957 (dump_func)dump_set_security_object_request,
3958 (dump_func)dump_get_security_object_request,
3959 (dump_func)dump_create_mailslot_request,
3960 (dump_func)dump_set_mailslot_info_request,
3961 (dump_func)dump_create_directory_request,
3962 (dump_func)dump_open_directory_request,
3963 (dump_func)dump_get_directory_entry_request,
3964 (dump_func)dump_create_symlink_request,
3965 (dump_func)dump_open_symlink_request,
3966 (dump_func)dump_query_symlink_request,
3967 (dump_func)dump_get_object_info_request,
3968 (dump_func)dump_get_token_impersonation_level_request,
3969 (dump_func)dump_allocate_locally_unique_id_request,
3970 (dump_func)dump_create_device_manager_request,
3971 (dump_func)dump_create_device_request,
3972 (dump_func)dump_delete_device_request,
3973 (dump_func)dump_get_next_device_request_request,
3974 (dump_func)dump_make_process_system_request,
3975 (dump_func)dump_get_token_statistics_request,
3976 (dump_func)dump_create_completion_request,
3977 (dump_func)dump_open_completion_request,
3978 (dump_func)dump_add_completion_request,
3979 (dump_func)dump_remove_completion_request,
3980 (dump_func)dump_query_completion_request,
3981 (dump_func)dump_set_completion_info_request,
3982 (dump_func)dump_add_fd_completion_request,
3985 static const dump_func reply_dumpers[REQ_NB_REQUESTS] = {
3986 (dump_func)dump_new_process_reply,
3987 (dump_func)dump_get_new_process_info_reply,
3988 (dump_func)dump_new_thread_reply,
3989 (dump_func)dump_get_startup_info_reply,
3990 (dump_func)0,
3991 (dump_func)dump_init_thread_reply,
3992 (dump_func)dump_terminate_process_reply,
3993 (dump_func)dump_terminate_thread_reply,
3994 (dump_func)dump_get_process_info_reply,
3995 (dump_func)0,
3996 (dump_func)dump_get_thread_info_reply,
3997 (dump_func)0,
3998 (dump_func)dump_get_dll_info_reply,
3999 (dump_func)dump_suspend_thread_reply,
4000 (dump_func)dump_resume_thread_reply,
4001 (dump_func)0,
4002 (dump_func)0,
4003 (dump_func)dump_queue_apc_reply,
4004 (dump_func)dump_get_apc_result_reply,
4005 (dump_func)0,
4006 (dump_func)dump_set_handle_info_reply,
4007 (dump_func)dump_dup_handle_reply,
4008 (dump_func)dump_open_process_reply,
4009 (dump_func)dump_open_thread_reply,
4010 (dump_func)dump_select_reply,
4011 (dump_func)dump_create_event_reply,
4012 (dump_func)0,
4013 (dump_func)dump_open_event_reply,
4014 (dump_func)dump_create_mutex_reply,
4015 (dump_func)dump_release_mutex_reply,
4016 (dump_func)dump_open_mutex_reply,
4017 (dump_func)dump_create_semaphore_reply,
4018 (dump_func)dump_release_semaphore_reply,
4019 (dump_func)dump_open_semaphore_reply,
4020 (dump_func)dump_create_file_reply,
4021 (dump_func)dump_open_file_object_reply,
4022 (dump_func)dump_alloc_file_handle_reply,
4023 (dump_func)dump_get_handle_fd_reply,
4024 (dump_func)dump_flush_file_reply,
4025 (dump_func)dump_lock_file_reply,
4026 (dump_func)0,
4027 (dump_func)dump_create_socket_reply,
4028 (dump_func)dump_accept_socket_reply,
4029 (dump_func)0,
4030 (dump_func)dump_get_socket_event_reply,
4031 (dump_func)0,
4032 (dump_func)0,
4033 (dump_func)dump_alloc_console_reply,
4034 (dump_func)0,
4035 (dump_func)dump_get_console_renderer_events_reply,
4036 (dump_func)dump_open_console_reply,
4037 (dump_func)dump_get_console_wait_event_reply,
4038 (dump_func)dump_get_console_mode_reply,
4039 (dump_func)0,
4040 (dump_func)0,
4041 (dump_func)dump_get_console_input_info_reply,
4042 (dump_func)0,
4043 (dump_func)dump_get_console_input_history_reply,
4044 (dump_func)dump_create_console_output_reply,
4045 (dump_func)0,
4046 (dump_func)dump_get_console_output_info_reply,
4047 (dump_func)dump_write_console_input_reply,
4048 (dump_func)dump_read_console_input_reply,
4049 (dump_func)dump_write_console_output_reply,
4050 (dump_func)dump_fill_console_output_reply,
4051 (dump_func)dump_read_console_output_reply,
4052 (dump_func)0,
4053 (dump_func)0,
4054 (dump_func)0,
4055 (dump_func)dump_read_change_reply,
4056 (dump_func)dump_create_mapping_reply,
4057 (dump_func)dump_open_mapping_reply,
4058 (dump_func)dump_get_mapping_info_reply,
4059 (dump_func)dump_create_snapshot_reply,
4060 (dump_func)dump_next_process_reply,
4061 (dump_func)dump_next_thread_reply,
4062 (dump_func)dump_next_module_reply,
4063 (dump_func)dump_wait_debug_event_reply,
4064 (dump_func)dump_queue_exception_event_reply,
4065 (dump_func)dump_get_exception_status_reply,
4066 (dump_func)0,
4067 (dump_func)0,
4068 (dump_func)0,
4069 (dump_func)dump_debug_break_reply,
4070 (dump_func)0,
4071 (dump_func)dump_read_process_memory_reply,
4072 (dump_func)0,
4073 (dump_func)dump_create_key_reply,
4074 (dump_func)dump_open_key_reply,
4075 (dump_func)0,
4076 (dump_func)0,
4077 (dump_func)dump_enum_key_reply,
4078 (dump_func)0,
4079 (dump_func)dump_get_key_value_reply,
4080 (dump_func)dump_enum_key_value_reply,
4081 (dump_func)0,
4082 (dump_func)0,
4083 (dump_func)0,
4084 (dump_func)0,
4085 (dump_func)0,
4086 (dump_func)dump_create_timer_reply,
4087 (dump_func)dump_open_timer_reply,
4088 (dump_func)dump_set_timer_reply,
4089 (dump_func)dump_cancel_timer_reply,
4090 (dump_func)dump_get_timer_info_reply,
4091 (dump_func)dump_get_thread_context_reply,
4092 (dump_func)dump_set_thread_context_reply,
4093 (dump_func)dump_get_selector_entry_reply,
4094 (dump_func)dump_add_atom_reply,
4095 (dump_func)0,
4096 (dump_func)dump_find_atom_reply,
4097 (dump_func)dump_get_atom_information_reply,
4098 (dump_func)0,
4099 (dump_func)0,
4100 (dump_func)dump_init_atom_table_reply,
4101 (dump_func)dump_get_msg_queue_reply,
4102 (dump_func)0,
4103 (dump_func)dump_set_queue_mask_reply,
4104 (dump_func)dump_get_queue_status_reply,
4105 (dump_func)dump_get_process_idle_event_reply,
4106 (dump_func)0,
4107 (dump_func)0,
4108 (dump_func)0,
4109 (dump_func)dump_get_message_reply,
4110 (dump_func)0,
4111 (dump_func)0,
4112 (dump_func)dump_get_message_reply_reply,
4113 (dump_func)dump_set_win_timer_reply,
4114 (dump_func)0,
4115 (dump_func)dump_get_serial_info_reply,
4116 (dump_func)0,
4117 (dump_func)0,
4118 (dump_func)0,
4119 (dump_func)dump_ioctl_reply,
4120 (dump_func)dump_get_ioctl_result_reply,
4121 (dump_func)dump_create_named_pipe_reply,
4122 (dump_func)dump_get_named_pipe_info_reply,
4123 (dump_func)dump_create_window_reply,
4124 (dump_func)0,
4125 (dump_func)dump_get_desktop_window_reply,
4126 (dump_func)dump_set_window_owner_reply,
4127 (dump_func)dump_get_window_info_reply,
4128 (dump_func)dump_set_window_info_reply,
4129 (dump_func)dump_set_parent_reply,
4130 (dump_func)dump_get_window_parents_reply,
4131 (dump_func)dump_get_window_children_reply,
4132 (dump_func)dump_get_window_children_from_point_reply,
4133 (dump_func)dump_get_window_tree_reply,
4134 (dump_func)dump_set_window_pos_reply,
4135 (dump_func)dump_get_window_rectangles_reply,
4136 (dump_func)dump_get_window_text_reply,
4137 (dump_func)0,
4138 (dump_func)dump_get_windows_offset_reply,
4139 (dump_func)dump_get_visible_region_reply,
4140 (dump_func)dump_get_window_region_reply,
4141 (dump_func)0,
4142 (dump_func)dump_get_update_region_reply,
4143 (dump_func)0,
4144 (dump_func)0,
4145 (dump_func)0,
4146 (dump_func)dump_remove_window_property_reply,
4147 (dump_func)dump_get_window_property_reply,
4148 (dump_func)dump_get_window_properties_reply,
4149 (dump_func)dump_create_winstation_reply,
4150 (dump_func)dump_open_winstation_reply,
4151 (dump_func)0,
4152 (dump_func)dump_get_process_winstation_reply,
4153 (dump_func)0,
4154 (dump_func)dump_enum_winstation_reply,
4155 (dump_func)dump_create_desktop_reply,
4156 (dump_func)dump_open_desktop_reply,
4157 (dump_func)0,
4158 (dump_func)dump_get_thread_desktop_reply,
4159 (dump_func)0,
4160 (dump_func)dump_enum_desktop_reply,
4161 (dump_func)dump_set_user_object_info_reply,
4162 (dump_func)0,
4163 (dump_func)dump_get_thread_input_reply,
4164 (dump_func)dump_get_last_input_time_reply,
4165 (dump_func)dump_get_key_state_reply,
4166 (dump_func)0,
4167 (dump_func)dump_set_foreground_window_reply,
4168 (dump_func)dump_set_focus_window_reply,
4169 (dump_func)dump_set_active_window_reply,
4170 (dump_func)dump_set_capture_window_reply,
4171 (dump_func)dump_set_caret_window_reply,
4172 (dump_func)dump_set_caret_info_reply,
4173 (dump_func)dump_set_hook_reply,
4174 (dump_func)dump_remove_hook_reply,
4175 (dump_func)dump_start_hook_chain_reply,
4176 (dump_func)0,
4177 (dump_func)dump_get_hook_info_reply,
4178 (dump_func)dump_create_class_reply,
4179 (dump_func)dump_destroy_class_reply,
4180 (dump_func)dump_set_class_info_reply,
4181 (dump_func)dump_set_clipboard_info_reply,
4182 (dump_func)dump_open_token_reply,
4183 (dump_func)dump_set_global_windows_reply,
4184 (dump_func)dump_adjust_token_privileges_reply,
4185 (dump_func)dump_get_token_privileges_reply,
4186 (dump_func)dump_check_token_privileges_reply,
4187 (dump_func)dump_duplicate_token_reply,
4188 (dump_func)dump_access_check_reply,
4189 (dump_func)dump_get_token_user_reply,
4190 (dump_func)dump_get_token_groups_reply,
4191 (dump_func)0,
4192 (dump_func)dump_get_security_object_reply,
4193 (dump_func)dump_create_mailslot_reply,
4194 (dump_func)dump_set_mailslot_info_reply,
4195 (dump_func)dump_create_directory_reply,
4196 (dump_func)dump_open_directory_reply,
4197 (dump_func)dump_get_directory_entry_reply,
4198 (dump_func)dump_create_symlink_reply,
4199 (dump_func)dump_open_symlink_reply,
4200 (dump_func)dump_query_symlink_reply,
4201 (dump_func)dump_get_object_info_reply,
4202 (dump_func)dump_get_token_impersonation_level_reply,
4203 (dump_func)dump_allocate_locally_unique_id_reply,
4204 (dump_func)dump_create_device_manager_reply,
4205 (dump_func)dump_create_device_reply,
4206 (dump_func)0,
4207 (dump_func)dump_get_next_device_request_reply,
4208 (dump_func)dump_make_process_system_reply,
4209 (dump_func)dump_get_token_statistics_reply,
4210 (dump_func)dump_create_completion_reply,
4211 (dump_func)dump_open_completion_reply,
4212 (dump_func)0,
4213 (dump_func)dump_remove_completion_reply,
4214 (dump_func)dump_query_completion_reply,
4215 (dump_func)0,
4216 (dump_func)0,
4219 static const char * const req_names[REQ_NB_REQUESTS] = {
4220 "new_process",
4221 "get_new_process_info",
4222 "new_thread",
4223 "get_startup_info",
4224 "init_process_done",
4225 "init_thread",
4226 "terminate_process",
4227 "terminate_thread",
4228 "get_process_info",
4229 "set_process_info",
4230 "get_thread_info",
4231 "set_thread_info",
4232 "get_dll_info",
4233 "suspend_thread",
4234 "resume_thread",
4235 "load_dll",
4236 "unload_dll",
4237 "queue_apc",
4238 "get_apc_result",
4239 "close_handle",
4240 "set_handle_info",
4241 "dup_handle",
4242 "open_process",
4243 "open_thread",
4244 "select",
4245 "create_event",
4246 "event_op",
4247 "open_event",
4248 "create_mutex",
4249 "release_mutex",
4250 "open_mutex",
4251 "create_semaphore",
4252 "release_semaphore",
4253 "open_semaphore",
4254 "create_file",
4255 "open_file_object",
4256 "alloc_file_handle",
4257 "get_handle_fd",
4258 "flush_file",
4259 "lock_file",
4260 "unlock_file",
4261 "create_socket",
4262 "accept_socket",
4263 "set_socket_event",
4264 "get_socket_event",
4265 "enable_socket_event",
4266 "set_socket_deferred",
4267 "alloc_console",
4268 "free_console",
4269 "get_console_renderer_events",
4270 "open_console",
4271 "get_console_wait_event",
4272 "get_console_mode",
4273 "set_console_mode",
4274 "set_console_input_info",
4275 "get_console_input_info",
4276 "append_console_input_history",
4277 "get_console_input_history",
4278 "create_console_output",
4279 "set_console_output_info",
4280 "get_console_output_info",
4281 "write_console_input",
4282 "read_console_input",
4283 "write_console_output",
4284 "fill_console_output",
4285 "read_console_output",
4286 "move_console_output",
4287 "send_console_signal",
4288 "read_directory_changes",
4289 "read_change",
4290 "create_mapping",
4291 "open_mapping",
4292 "get_mapping_info",
4293 "create_snapshot",
4294 "next_process",
4295 "next_thread",
4296 "next_module",
4297 "wait_debug_event",
4298 "queue_exception_event",
4299 "get_exception_status",
4300 "output_debug_string",
4301 "continue_debug_event",
4302 "debug_process",
4303 "debug_break",
4304 "set_debugger_kill_on_exit",
4305 "read_process_memory",
4306 "write_process_memory",
4307 "create_key",
4308 "open_key",
4309 "delete_key",
4310 "flush_key",
4311 "enum_key",
4312 "set_key_value",
4313 "get_key_value",
4314 "enum_key_value",
4315 "delete_key_value",
4316 "load_registry",
4317 "unload_registry",
4318 "save_registry",
4319 "set_registry_notification",
4320 "create_timer",
4321 "open_timer",
4322 "set_timer",
4323 "cancel_timer",
4324 "get_timer_info",
4325 "get_thread_context",
4326 "set_thread_context",
4327 "get_selector_entry",
4328 "add_atom",
4329 "delete_atom",
4330 "find_atom",
4331 "get_atom_information",
4332 "set_atom_information",
4333 "empty_atom_table",
4334 "init_atom_table",
4335 "get_msg_queue",
4336 "set_queue_fd",
4337 "set_queue_mask",
4338 "get_queue_status",
4339 "get_process_idle_event",
4340 "send_message",
4341 "post_quit_message",
4342 "send_hardware_message",
4343 "get_message",
4344 "reply_message",
4345 "accept_hardware_message",
4346 "get_message_reply",
4347 "set_win_timer",
4348 "kill_win_timer",
4349 "get_serial_info",
4350 "set_serial_info",
4351 "register_async",
4352 "cancel_async",
4353 "ioctl",
4354 "get_ioctl_result",
4355 "create_named_pipe",
4356 "get_named_pipe_info",
4357 "create_window",
4358 "destroy_window",
4359 "get_desktop_window",
4360 "set_window_owner",
4361 "get_window_info",
4362 "set_window_info",
4363 "set_parent",
4364 "get_window_parents",
4365 "get_window_children",
4366 "get_window_children_from_point",
4367 "get_window_tree",
4368 "set_window_pos",
4369 "get_window_rectangles",
4370 "get_window_text",
4371 "set_window_text",
4372 "get_windows_offset",
4373 "get_visible_region",
4374 "get_window_region",
4375 "set_window_region",
4376 "get_update_region",
4377 "update_window_zorder",
4378 "redraw_window",
4379 "set_window_property",
4380 "remove_window_property",
4381 "get_window_property",
4382 "get_window_properties",
4383 "create_winstation",
4384 "open_winstation",
4385 "close_winstation",
4386 "get_process_winstation",
4387 "set_process_winstation",
4388 "enum_winstation",
4389 "create_desktop",
4390 "open_desktop",
4391 "close_desktop",
4392 "get_thread_desktop",
4393 "set_thread_desktop",
4394 "enum_desktop",
4395 "set_user_object_info",
4396 "attach_thread_input",
4397 "get_thread_input",
4398 "get_last_input_time",
4399 "get_key_state",
4400 "set_key_state",
4401 "set_foreground_window",
4402 "set_focus_window",
4403 "set_active_window",
4404 "set_capture_window",
4405 "set_caret_window",
4406 "set_caret_info",
4407 "set_hook",
4408 "remove_hook",
4409 "start_hook_chain",
4410 "finish_hook_chain",
4411 "get_hook_info",
4412 "create_class",
4413 "destroy_class",
4414 "set_class_info",
4415 "set_clipboard_info",
4416 "open_token",
4417 "set_global_windows",
4418 "adjust_token_privileges",
4419 "get_token_privileges",
4420 "check_token_privileges",
4421 "duplicate_token",
4422 "access_check",
4423 "get_token_user",
4424 "get_token_groups",
4425 "set_security_object",
4426 "get_security_object",
4427 "create_mailslot",
4428 "set_mailslot_info",
4429 "create_directory",
4430 "open_directory",
4431 "get_directory_entry",
4432 "create_symlink",
4433 "open_symlink",
4434 "query_symlink",
4435 "get_object_info",
4436 "get_token_impersonation_level",
4437 "allocate_locally_unique_id",
4438 "create_device_manager",
4439 "create_device",
4440 "delete_device",
4441 "get_next_device_request",
4442 "make_process_system",
4443 "get_token_statistics",
4444 "create_completion",
4445 "open_completion",
4446 "add_completion",
4447 "remove_completion",
4448 "query_completion",
4449 "set_completion_info",
4450 "add_fd_completion",
4453 static const struct
4455 const char *name;
4456 unsigned int value;
4457 } status_names[] =
4459 { "ABANDONED_WAIT_0", STATUS_ABANDONED_WAIT_0 },
4460 { "ACCESS_DENIED", STATUS_ACCESS_DENIED },
4461 { "ACCESS_VIOLATION", STATUS_ACCESS_VIOLATION },
4462 { "ALERTED", STATUS_ALERTED },
4463 { "ALIAS_EXISTS", STATUS_ALIAS_EXISTS },
4464 { "BAD_DEVICE_TYPE", STATUS_BAD_DEVICE_TYPE },
4465 { "BAD_IMPERSONATION_LEVEL", STATUS_BAD_IMPERSONATION_LEVEL },
4466 { "BREAKPOINT", STATUS_BREAKPOINT },
4467 { "BUFFER_OVERFLOW", STATUS_BUFFER_OVERFLOW },
4468 { "BUFFER_TOO_SMALL", STATUS_BUFFER_TOO_SMALL },
4469 { "CANCELLED", STATUS_CANCELLED },
4470 { "CANT_OPEN_ANONYMOUS", STATUS_CANT_OPEN_ANONYMOUS },
4471 { "CHILD_MUST_BE_VOLATILE", STATUS_CHILD_MUST_BE_VOLATILE },
4472 { "DEBUGGER_INACTIVE", STATUS_DEBUGGER_INACTIVE },
4473 { "DEVICE_BUSY", STATUS_DEVICE_BUSY },
4474 { "DIRECTORY_NOT_EMPTY", STATUS_DIRECTORY_NOT_EMPTY },
4475 { "DISK_FULL", STATUS_DISK_FULL },
4476 { "DLL_NOT_FOUND", STATUS_DLL_NOT_FOUND },
4477 { "ERROR_CLASS_ALREADY_EXISTS", 0xc0010000 | ERROR_CLASS_ALREADY_EXISTS },
4478 { "ERROR_CLASS_DOES_NOT_EXIST", 0xc0010000 | ERROR_CLASS_DOES_NOT_EXIST },
4479 { "ERROR_CLASS_HAS_WINDOWS", 0xc0010000 | ERROR_CLASS_HAS_WINDOWS },
4480 { "ERROR_CLIPBOARD_NOT_OPEN", 0xc0010000 | ERROR_CLIPBOARD_NOT_OPEN },
4481 { "ERROR_INVALID_INDEX", 0xc0010000 | ERROR_INVALID_INDEX },
4482 { "ERROR_INVALID_WINDOW_HANDLE", 0xc0010000 | ERROR_INVALID_WINDOW_HANDLE },
4483 { "FILE_DELETED", STATUS_FILE_DELETED },
4484 { "FILE_IS_A_DIRECTORY", STATUS_FILE_IS_A_DIRECTORY },
4485 { "FILE_LOCK_CONFLICT", STATUS_FILE_LOCK_CONFLICT },
4486 { "GENERIC_NOT_MAPPED", STATUS_GENERIC_NOT_MAPPED },
4487 { "HANDLES_CLOSED", STATUS_HANDLES_CLOSED },
4488 { "HANDLE_NOT_CLOSABLE", STATUS_HANDLE_NOT_CLOSABLE },
4489 { "ILLEGAL_FUNCTION", STATUS_ILLEGAL_FUNCTION },
4490 { "INSTANCE_NOT_AVAILABLE", STATUS_INSTANCE_NOT_AVAILABLE },
4491 { "INVALID_CID", STATUS_INVALID_CID },
4492 { "INVALID_DEVICE_REQUEST", STATUS_INVALID_DEVICE_REQUEST },
4493 { "INVALID_FILE_FOR_SECTION", STATUS_INVALID_FILE_FOR_SECTION },
4494 { "INVALID_HANDLE", STATUS_INVALID_HANDLE },
4495 { "INVALID_PARAMETER", STATUS_INVALID_PARAMETER },
4496 { "INVALID_SECURITY_DESCR", STATUS_INVALID_SECURITY_DESCR },
4497 { "IO_TIMEOUT", STATUS_IO_TIMEOUT },
4498 { "KEY_DELETED", STATUS_KEY_DELETED },
4499 { "MAPPED_FILE_SIZE_ZERO", STATUS_MAPPED_FILE_SIZE_ZERO },
4500 { "MEDIA_WRITE_PROTECTED", STATUS_MEDIA_WRITE_PROTECTED },
4501 { "MUTANT_NOT_OWNED", STATUS_MUTANT_NOT_OWNED },
4502 { "NAME_TOO_LONG", STATUS_NAME_TOO_LONG },
4503 { "NOTIFY_ENUM_DIR", STATUS_NOTIFY_ENUM_DIR },
4504 { "NOT_ALL_ASSIGNED", STATUS_NOT_ALL_ASSIGNED },
4505 { "NOT_A_DIRECTORY", STATUS_NOT_A_DIRECTORY },
4506 { "NOT_IMPLEMENTED", STATUS_NOT_IMPLEMENTED },
4507 { "NOT_REGISTRY_FILE", STATUS_NOT_REGISTRY_FILE },
4508 { "NOT_SUPPORTED", STATUS_NOT_SUPPORTED },
4509 { "NO_DATA_DETECTED", STATUS_NO_DATA_DETECTED },
4510 { "NO_IMPERSONATION_TOKEN", STATUS_NO_IMPERSONATION_TOKEN },
4511 { "NO_MEMORY", STATUS_NO_MEMORY },
4512 { "NO_MORE_ENTRIES", STATUS_NO_MORE_ENTRIES },
4513 { "NO_MORE_FILES", STATUS_NO_MORE_FILES },
4514 { "NO_SUCH_DEVICE", STATUS_NO_SUCH_DEVICE },
4515 { "NO_SUCH_FILE", STATUS_NO_SUCH_FILE },
4516 { "NO_TOKEN", STATUS_NO_TOKEN },
4517 { "OBJECT_NAME_COLLISION", STATUS_OBJECT_NAME_COLLISION },
4518 { "OBJECT_NAME_EXISTS", STATUS_OBJECT_NAME_EXISTS },
4519 { "OBJECT_NAME_INVALID", STATUS_OBJECT_NAME_INVALID },
4520 { "OBJECT_NAME_NOT_FOUND", STATUS_OBJECT_NAME_NOT_FOUND },
4521 { "OBJECT_PATH_INVALID", STATUS_OBJECT_PATH_INVALID },
4522 { "OBJECT_PATH_NOT_FOUND", STATUS_OBJECT_PATH_NOT_FOUND },
4523 { "OBJECT_PATH_SYNTAX_BAD", STATUS_OBJECT_PATH_SYNTAX_BAD },
4524 { "OBJECT_TYPE_MISMATCH", STATUS_OBJECT_TYPE_MISMATCH },
4525 { "PENDING", STATUS_PENDING },
4526 { "PIPE_BUSY", STATUS_PIPE_BUSY },
4527 { "PIPE_CONNECTED", STATUS_PIPE_CONNECTED },
4528 { "PIPE_DISCONNECTED", STATUS_PIPE_DISCONNECTED },
4529 { "PIPE_LISTENING", STATUS_PIPE_LISTENING },
4530 { "PIPE_NOT_AVAILABLE", STATUS_PIPE_NOT_AVAILABLE },
4531 { "PRIVILEGE_NOT_HELD", STATUS_PRIVILEGE_NOT_HELD },
4532 { "PROCESS_IS_TERMINATING", STATUS_PROCESS_IS_TERMINATING },
4533 { "SECTION_TOO_BIG", STATUS_SECTION_TOO_BIG },
4534 { "SEMAPHORE_LIMIT_EXCEEDED", STATUS_SEMAPHORE_LIMIT_EXCEEDED },
4535 { "SHARING_VIOLATION", STATUS_SHARING_VIOLATION },
4536 { "SUSPEND_COUNT_EXCEEDED", STATUS_SUSPEND_COUNT_EXCEEDED },
4537 { "THREAD_IS_TERMINATING", STATUS_THREAD_IS_TERMINATING },
4538 { "TIMEOUT", STATUS_TIMEOUT },
4539 { "TOO_MANY_OPENED_FILES", STATUS_TOO_MANY_OPENED_FILES },
4540 { "UNSUCCESSFUL", STATUS_UNSUCCESSFUL },
4541 { "USER_APC", STATUS_USER_APC },
4542 { "VOLUME_DISMOUNTED", STATUS_VOLUME_DISMOUNTED },
4543 { "WAS_LOCKED", STATUS_WAS_LOCKED },
4544 { NULL, 0 }
4547 /* ### make_requests end ### */
4548 /* Everything above this line is generated automatically by tools/make_requests */
4550 static const char *get_status_name( unsigned int status )
4552 int i;
4553 static char buffer[10];
4555 if (status)
4557 for (i = 0; status_names[i].name; i++)
4558 if (status_names[i].value == status) return status_names[i].name;
4560 sprintf( buffer, "%x", status );
4561 return buffer;
4564 void trace_request(void)
4566 enum request req = current->req.request_header.req;
4567 if (req < REQ_NB_REQUESTS)
4569 fprintf( stderr, "%04x: %s(", current->id, req_names[req] );
4570 if (req_dumpers[req])
4572 cur_data = get_req_data();
4573 cur_size = get_req_data_size();
4574 req_dumpers[req]( &current->req );
4576 fprintf( stderr, " )\n" );
4578 else fprintf( stderr, "%04x: %d(?)\n", current->id, req );
4581 void trace_reply( enum request req, const union generic_reply *reply )
4583 if (req < REQ_NB_REQUESTS)
4585 fprintf( stderr, "%04x: %s() = %s",
4586 current->id, req_names[req], get_status_name(current->error) );
4587 if (reply_dumpers[req])
4589 fprintf( stderr, " {" );
4590 cur_data = current->reply_data;
4591 cur_size = reply->reply_header.reply_size;
4592 reply_dumpers[req]( reply );
4593 fprintf( stderr, " }" );
4595 fputc( '\n', stderr );
4597 else fprintf( stderr, "%04x: %d() = %s\n",
4598 current->id, req, get_status_name(current->error) );