dplayx: Tests for checking the behaviour of groups in a C/S session.
[wine/gsoc_dplay.git] / server / trace.c
blob70cb13b09cdd8abac8aa34b1d2642880e71fef41
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, data_size_t size )
264 CONTEXT ctx;
266 memset( &ctx, 0, sizeof(ctx) );
267 memcpy( &ctx, context, min( size, sizeof(CONTEXT) ));
268 #ifdef __i386__
269 fprintf( stderr, "{flags=%08x,eax=%08x,ebx=%08x,ecx=%08x,edx=%08x,esi=%08x,edi=%08x,"
270 "ebp=%08x,eip=%08x,esp=%08x,eflags=%08x,cs=%04x,ds=%04x,es=%04x,"
271 "fs=%04x,gs=%04x,dr0=%08x,dr1=%08x,dr2=%08x,dr3=%08x,dr6=%08x,dr7=%08x,",
272 ctx.ContextFlags, ctx.Eax, ctx.Ebx, ctx.Ecx, ctx.Edx,
273 ctx.Esi, ctx.Edi, ctx.Ebp, ctx.Eip, ctx.Esp, ctx.EFlags,
274 ctx.SegCs, ctx.SegDs, ctx.SegEs, ctx.SegFs, ctx.SegGs,
275 ctx.Dr0, ctx.Dr1, ctx.Dr2, ctx.Dr3, ctx.Dr6, ctx.Dr7 );
276 fprintf( stderr, "float=" );
277 dump_uints( (const int *)&ctx.FloatSave, sizeof(ctx.FloatSave) / sizeof(int) );
278 if (size > FIELD_OFFSET( CONTEXT, ExtendedRegisters ))
280 fprintf( stderr, ",extended=" );
281 dump_uints( (const int *)&ctx.ExtendedRegisters, sizeof(ctx.ExtendedRegisters) / sizeof(int) );
283 fprintf( stderr, "}" );
284 #else
285 dump_uints( (const int *)&ctx, sizeof(ctx) / sizeof(int) );
286 #endif
289 static void dump_exc_record( const EXCEPTION_RECORD *rec )
291 unsigned int i;
292 fprintf( stderr, "{code=%x,flags=%x,rec=%p,addr=%p,params={",
293 rec->ExceptionCode, rec->ExceptionFlags, rec->ExceptionRecord,
294 rec->ExceptionAddress );
295 for (i = 0; i < min(rec->NumberParameters,EXCEPTION_MAXIMUM_PARAMETERS); i++)
297 if (i) fputc( ',', stderr );
298 fprintf( stderr, "%lx", rec->ExceptionInformation[i] );
300 fputc( '}', stderr );
303 static void dump_varargs_ints( data_size_t size )
305 const int *data = cur_data;
306 data_size_t len = size / sizeof(*data);
308 fputc( '{', stderr );
309 while (len > 0)
311 fprintf( stderr, "%d", *data++ );
312 if (--len) fputc( ',', stderr );
314 fputc( '}', stderr );
315 remove_data( size );
318 static void dump_varargs_apc_result( data_size_t size )
320 const apc_result_t *result = cur_data;
322 if (size >= sizeof(*result))
324 dump_apc_result( result );
325 size = sizeof(*result);
327 remove_data( size );
330 static void dump_varargs_handles( data_size_t size )
332 const obj_handle_t *data = cur_data;
333 data_size_t len = size / sizeof(*data);
335 fputc( '{', stderr );
336 while (len > 0)
338 fprintf( stderr, "%p", *data++ );
339 if (--len) fputc( ',', stderr );
341 fputc( '}', stderr );
342 remove_data( size );
345 static void dump_varargs_user_handles( data_size_t size )
347 const user_handle_t *data = cur_data;
348 data_size_t len = size / sizeof(*data);
350 fputc( '{', stderr );
351 while (len > 0)
353 fprintf( stderr, "%p", *data++ );
354 if (--len) fputc( ',', stderr );
356 fputc( '}', stderr );
357 remove_data( size );
360 static void dump_varargs_bytes( data_size_t size )
362 const unsigned char *data = cur_data;
363 data_size_t len = size;
365 fputc( '{', stderr );
366 while (len > 0)
368 fprintf( stderr, "%02x", *data++ );
369 if (--len) fputc( ',', stderr );
371 fputc( '}', stderr );
372 remove_data( size );
375 static void dump_varargs_string( data_size_t size )
377 fprintf( stderr, "\"%.*s\"", (int)size, (const char *)cur_data );
378 remove_data( size );
381 static void dump_varargs_unicode_str( data_size_t size )
383 fprintf( stderr, "L\"" );
384 dump_strW( cur_data, size / sizeof(WCHAR), stderr, "\"\"" );
385 fputc( '\"', stderr );
386 remove_data( size );
389 static void dump_varargs_context( data_size_t size )
391 if (!size)
393 fprintf( stderr, "{}" );
394 return;
396 dump_context( cur_data, size );
397 remove_data( min( size, sizeof(CONTEXT) ));
400 static void dump_varargs_exc_event( data_size_t size )
402 const CONTEXT *ptr = cur_data;
404 if (!size)
406 fprintf( stderr, "{}" );
407 return;
409 fprintf( stderr, "{context=" );
410 dump_context( ptr, size );
411 if (size > sizeof(CONTEXT))
413 fprintf( stderr, ",rec=" );
414 dump_exc_record( (const EXCEPTION_RECORD *)(ptr + 1) );
416 fputc( '}', stderr );
417 remove_data( size );
420 static void dump_varargs_debug_event( data_size_t size )
422 const debug_event_t *event = cur_data;
424 if (!size)
426 fprintf( stderr, "{}" );
427 return;
429 switch(event->code)
431 case EXCEPTION_DEBUG_EVENT:
432 fprintf( stderr, "{exception," );
433 dump_exc_record( &event->info.exception.record );
434 fprintf( stderr, ",first=%d}", event->info.exception.first );
435 break;
436 case CREATE_THREAD_DEBUG_EVENT:
437 fprintf( stderr, "{create_thread,thread=%p,teb=%p,start=%p}",
438 event->info.create_thread.handle, event->info.create_thread.teb,
439 event->info.create_thread.start );
440 break;
441 case CREATE_PROCESS_DEBUG_EVENT:
442 fprintf( stderr, "{create_process,file=%p,process=%p,thread=%p,base=%p,offset=%d,"
443 "size=%d,teb=%p,start=%p,name=%p,unicode=%d}",
444 event->info.create_process.file, event->info.create_process.process,
445 event->info.create_process.thread, event->info.create_process.base,
446 event->info.create_process.dbg_offset, event->info.create_process.dbg_size,
447 event->info.create_process.teb, event->info.create_process.start,
448 event->info.create_process.name, event->info.create_process.unicode );
449 break;
450 case EXIT_THREAD_DEBUG_EVENT:
451 fprintf( stderr, "{exit_thread,code=%d}", event->info.exit.exit_code );
452 break;
453 case EXIT_PROCESS_DEBUG_EVENT:
454 fprintf( stderr, "{exit_process,code=%d}", event->info.exit.exit_code );
455 break;
456 case LOAD_DLL_DEBUG_EVENT:
457 fprintf( stderr, "{load_dll,file=%p,base=%p,offset=%d,size=%d,name=%p,unicode=%d}",
458 event->info.load_dll.handle, event->info.load_dll.base,
459 event->info.load_dll.dbg_offset, event->info.load_dll.dbg_size,
460 event->info.load_dll.name, event->info.load_dll.unicode );
461 break;
462 case UNLOAD_DLL_DEBUG_EVENT:
463 fprintf( stderr, "{unload_dll,base=%p}", event->info.unload_dll.base );
464 break;
465 case OUTPUT_DEBUG_STRING_EVENT:
466 fprintf( stderr, "{output_string,data=%p,unicode=%d,len=%d}",
467 event->info.output_string.string, event->info.output_string.unicode,
468 event->info.output_string.length );
469 break;
470 case RIP_EVENT:
471 fprintf( stderr, "{rip,err=%d,type=%d}",
472 event->info.rip_info.error, event->info.rip_info.type );
473 break;
474 case 0: /* zero is the code returned on timeouts */
475 fprintf( stderr, "{}" );
476 break;
477 default:
478 fprintf( stderr, "{code=??? (%d)}", event->code );
479 break;
481 remove_data( size );
484 /* dump a unicode string contained in a buffer; helper for dump_varargs_startup_info */
485 static void dump_inline_unicode_string( const UNICODE_STRING *str, const void *data, data_size_t size )
487 size_t length = str->Length;
488 size_t offset = (size_t)str->Buffer;
490 if (offset >= size) return;
491 if (offset + length > size) length = size - offset;
492 dump_strW( (const WCHAR *)data + offset/sizeof(WCHAR), length/sizeof(WCHAR), stderr, "\"\"" );
495 static void dump_varargs_startup_info( data_size_t size )
497 const RTL_USER_PROCESS_PARAMETERS *ptr = cur_data;
498 RTL_USER_PROCESS_PARAMETERS params;
500 if (size < sizeof(params.Size))
502 fprintf( stderr, "{}" );
503 return;
505 if (size > ptr->Size) size = ptr->Size;
506 memset( &params, 0, sizeof(params) );
507 memcpy( &params, ptr, min( size, sizeof(params) ));
509 fprintf( stderr, "{AllocationSize=%x,", params.AllocationSize );
510 fprintf( stderr, "Size=%x,", params.Size );
511 fprintf( stderr, "Flags=%x,", params.Flags );
512 fprintf( stderr, "DebugFlags=%x,", params.DebugFlags );
513 fprintf( stderr, "ConsoleHandle=%p,", params.ConsoleHandle );
514 fprintf( stderr, "ConsoleFlags=%x,", params.ConsoleFlags );
515 fprintf( stderr, "hStdInput=%p,", params.hStdInput );
516 fprintf( stderr, "hStdOutput=%p,", params.hStdOutput );
517 fprintf( stderr, "hStdError=%p,", params.hStdError );
518 fprintf( stderr, "CurrentDirectory.Handle=%p,", params.CurrentDirectory.Handle );
519 fprintf( stderr, "dwX=%d,", params.dwX );
520 fprintf( stderr, "dwY=%d,", params.dwY );
521 fprintf( stderr, "dwXSize=%d,", params.dwXSize );
522 fprintf( stderr, "dwYSize=%d,", params.dwYSize );
523 fprintf( stderr, "dwXCountChars=%d,", params.dwXCountChars );
524 fprintf( stderr, "dwYCountChars=%d,", params.dwYCountChars );
525 fprintf( stderr, "dwFillAttribute=%x,", params.dwFillAttribute );
526 fprintf( stderr, "dwFlags=%x,", params.dwFlags );
527 fprintf( stderr, "wShowWindow=%x,", params.wShowWindow );
528 fprintf( stderr, "CurrentDirectory.DosPath=L\"" );
529 dump_inline_unicode_string( &params.CurrentDirectory.DosPath, cur_data, size );
530 fprintf( stderr, "\",DllPath=L\"" );
531 dump_inline_unicode_string( &params.DllPath, cur_data, size );
532 fprintf( stderr, "\",ImagePathName=L\"" );
533 dump_inline_unicode_string( &params.ImagePathName, cur_data, size );
534 fprintf( stderr, "\",CommandLine=L\"" );
535 dump_inline_unicode_string( &params.CommandLine, cur_data, size );
536 fprintf( stderr, "\",WindowTitle=L\"" );
537 dump_inline_unicode_string( &params.WindowTitle, cur_data, size );
538 fprintf( stderr, "\",Desktop=L\"" );
539 dump_inline_unicode_string( &params.Desktop, cur_data, size );
540 fprintf( stderr, "\",ShellInfo=L\"" );
541 dump_inline_unicode_string( &params.ShellInfo, cur_data, size );
542 fprintf( stderr, "\",RuntimeInfo=L\"" );
543 dump_inline_unicode_string( &params.RuntimeInfo, cur_data, size );
544 fprintf( stderr, "\"}" );
545 remove_data( size );
548 static void dump_varargs_input_records( data_size_t size )
550 const INPUT_RECORD *rec = cur_data;
551 data_size_t len = size / sizeof(*rec);
553 fputc( '{', stderr );
554 while (len > 0)
556 fprintf( stderr, "{%04x,...}", rec->EventType );
557 rec++;
558 if (--len) fputc( ',', stderr );
560 fputc( '}', stderr );
561 remove_data( size );
564 static void dump_varargs_rectangles( data_size_t size )
566 const rectangle_t *rect = cur_data;
567 data_size_t len = size / sizeof(*rect);
569 fputc( '{', stderr );
570 while (len > 0)
572 dump_rectangle( rect++ );
573 if (--len) fputc( ',', stderr );
575 fputc( '}', stderr );
576 remove_data( size );
579 static void dump_varargs_message_data( data_size_t size )
581 /* FIXME: dump the structured data */
582 dump_varargs_bytes( size );
585 static void dump_varargs_properties( data_size_t size )
587 const property_data_t *prop = cur_data;
588 data_size_t len = size / sizeof(*prop);
590 fputc( '{', stderr );
591 while (len > 0)
593 fprintf( stderr, "{atom=%04x,str=%d,handle=%p}",
594 prop->atom, prop->string, prop->handle );
595 prop++;
596 if (--len) fputc( ',', stderr );
598 fputc( '}', stderr );
599 remove_data( size );
602 static void dump_varargs_LUID_AND_ATTRIBUTES( data_size_t size )
604 const LUID_AND_ATTRIBUTES *lat = cur_data;
605 data_size_t len = size / sizeof(*lat);
607 fputc( '{', stderr );
608 while (len > 0)
610 fprintf( stderr, "{luid=%08x%08x,attr=%x}",
611 lat->Luid.HighPart, lat->Luid.LowPart, lat->Attributes );
612 lat++;
613 if (--len) fputc( ',', stderr );
615 fputc( '}', stderr );
616 remove_data( size );
619 static void dump_inline_sid( const SID *sid, data_size_t size )
621 DWORD i;
623 /* security check */
624 if ((FIELD_OFFSET(SID, SubAuthority[0]) > size) ||
625 (FIELD_OFFSET(SID, SubAuthority[sid->SubAuthorityCount]) > size))
627 fprintf( stderr, "<invalid sid>" );
628 return;
631 fputc( '{', stderr );
632 fprintf( stderr, "S-%u-%u", sid->Revision, MAKELONG(
633 MAKEWORD( sid->IdentifierAuthority.Value[5],
634 sid->IdentifierAuthority.Value[4] ),
635 MAKEWORD( sid->IdentifierAuthority.Value[3],
636 sid->IdentifierAuthority.Value[2] ) ) );
637 for (i = 0; i < sid->SubAuthorityCount; i++)
638 fprintf( stderr, "-%u", sid->SubAuthority[i] );
639 fputc( '}', stderr );
642 static void dump_varargs_SID( data_size_t size )
644 const SID *sid = cur_data;
645 dump_inline_sid( sid, size );
646 remove_data( size );
649 static void dump_inline_acl( const ACL *acl, data_size_t size )
651 const ACE_HEADER *ace;
652 ULONG i;
653 fputc( '{', stderr );
655 if (size)
657 if (size < sizeof(ACL))
659 fprintf( stderr, "<invalid acl>}\n" );
660 return;
662 size -= sizeof(ACL);
663 ace = (const ACE_HEADER *)(acl + 1);
664 for (i = 0; i < acl->AceCount; i++)
666 const SID *sid = NULL;
667 data_size_t sid_size = 0;
669 if (size < sizeof(ACE_HEADER))
670 return;
671 if (size < ace->AceSize)
672 return;
673 size -= ace->AceSize;
674 if (i != 0) fputc( ',', stderr );
675 fprintf( stderr, "{AceType=" );
676 switch (ace->AceType)
678 case ACCESS_DENIED_ACE_TYPE:
679 sid = (const SID *)&((const ACCESS_DENIED_ACE *)ace)->SidStart;
680 sid_size = ace->AceSize - FIELD_OFFSET(ACCESS_DENIED_ACE, SidStart);
681 fprintf( stderr, "ACCESS_DENIED_ACE_TYPE,Mask=%x",
682 ((const ACCESS_DENIED_ACE *)ace)->Mask );
683 break;
684 case ACCESS_ALLOWED_ACE_TYPE:
685 sid = (const SID *)&((const ACCESS_ALLOWED_ACE *)ace)->SidStart;
686 sid_size = ace->AceSize - FIELD_OFFSET(ACCESS_ALLOWED_ACE, SidStart);
687 fprintf( stderr, "ACCESS_ALLOWED_ACE_TYPE,Mask=%x",
688 ((const ACCESS_ALLOWED_ACE *)ace)->Mask );
689 break;
690 case SYSTEM_AUDIT_ACE_TYPE:
691 sid = (const SID *)&((const SYSTEM_AUDIT_ACE *)ace)->SidStart;
692 sid_size = ace->AceSize - FIELD_OFFSET(SYSTEM_AUDIT_ACE, SidStart);
693 fprintf( stderr, "SYSTEM_AUDIT_ACE_TYPE,Mask=%x",
694 ((const SYSTEM_AUDIT_ACE *)ace)->Mask );
695 break;
696 case SYSTEM_ALARM_ACE_TYPE:
697 sid = (const SID *)&((const SYSTEM_ALARM_ACE *)ace)->SidStart;
698 sid_size = ace->AceSize - FIELD_OFFSET(SYSTEM_ALARM_ACE, SidStart);
699 fprintf( stderr, "SYSTEM_ALARM_ACE_TYPE,Mask=%x",
700 ((const SYSTEM_ALARM_ACE *)ace)->Mask );
701 break;
702 default:
703 fprintf( stderr, "unknown<%d>", ace->AceType );
704 break;
706 fprintf( stderr, ",AceFlags=%x,Sid=", ace->AceFlags );
707 if (sid)
708 dump_inline_sid( sid, sid_size );
709 ace = (const ACE_HEADER *)((const char *)ace + ace->AceSize);
710 fputc( '}', stderr );
713 fputc( '}', stderr );
716 static void dump_inline_security_descriptor( const struct security_descriptor *sd, data_size_t size )
718 fputc( '{', stderr );
719 if (size >= sizeof(struct security_descriptor))
721 size_t offset = sizeof(struct security_descriptor);
722 fprintf( stderr, "control=%08x", sd->control );
723 fprintf( stderr, ",owner=" );
724 if ((sd->owner_len > FIELD_OFFSET(SID, SubAuthority[255])) || (offset + sd->owner_len > size))
725 return;
726 if (sd->owner_len)
727 dump_inline_sid( (const SID *)((const char *)sd + offset), sd->owner_len );
728 else
729 fprintf( stderr, "<not present>" );
730 offset += sd->owner_len;
731 fprintf( stderr, ",group=" );
732 if ((sd->group_len > FIELD_OFFSET(SID, SubAuthority[255])) || (offset + sd->group_len > size))
733 return;
734 if (sd->group_len)
735 dump_inline_sid( (const SID *)((const char *)sd + offset), sd->group_len );
736 else
737 fprintf( stderr, "<not present>" );
738 offset += sd->group_len;
739 fprintf( stderr, ",sacl=" );
740 if ((sd->sacl_len >= MAX_ACL_LEN) || (offset + sd->sacl_len > size))
741 return;
742 dump_inline_acl( (const ACL *)((const char *)sd + offset), sd->sacl_len );
743 offset += sd->sacl_len;
744 fprintf( stderr, ",dacl=" );
745 if ((sd->dacl_len >= MAX_ACL_LEN) || (offset + sd->dacl_len > size))
746 return;
747 dump_inline_acl( (const ACL *)((const char *)sd + offset), sd->dacl_len );
748 offset += sd->dacl_len;
750 fputc( '}', stderr );
753 static void dump_varargs_security_descriptor( data_size_t size )
755 const struct security_descriptor *sd = cur_data;
756 dump_inline_security_descriptor( sd, size );
757 remove_data( size );
760 static void dump_varargs_token_groups( data_size_t size )
762 const struct token_groups *tg = cur_data;
763 fputc( '{', stderr );
764 if (size >= sizeof(struct token_groups))
766 size_t offset = sizeof(*tg);
767 fprintf( stderr, "count=%08x,", tg->count );
768 if (tg->count * sizeof(unsigned int) <= size)
770 unsigned int i;
771 const unsigned int *attr = (const unsigned int *)(tg + 1);
773 offset += tg->count * sizeof(unsigned int);
775 fputc( '[', stderr );
776 for (i = 0; i < tg->count; i++)
778 const SID *sid = (const SID *)((const char *)cur_data + offset);
779 if (i != 0)
780 fputc( ',', stderr );
781 fputc( '{', stderr );
782 fprintf( stderr, "attributes=%08x", attr[i] );
783 fprintf( stderr, ",sid=" );
784 dump_inline_sid( sid, size - offset );
785 if ((offset + FIELD_OFFSET(SID, SubAuthority[0]) > size) ||
786 (offset + FIELD_OFFSET(SID, SubAuthority[sid->SubAuthorityCount]) > size))
787 break;
788 offset += FIELD_OFFSET(SID, SubAuthority[sid->SubAuthorityCount]);
789 fputc( '}', stderr );
791 fputc( ']', stderr );
794 fputc( '}', stderr );
797 static void dump_varargs_object_attributes( data_size_t size )
799 const struct object_attributes *objattr = cur_data;
800 fputc( '{', stderr );
801 if (size >= sizeof(struct object_attributes))
803 const WCHAR *str;
804 fprintf( stderr, "rootdir=%p,sd=", objattr->rootdir );
805 if (objattr->sd_len > size - sizeof(*objattr) ||
806 objattr->name_len > size - sizeof(*objattr) - objattr->sd_len)
807 return;
808 dump_inline_security_descriptor( (const struct security_descriptor *)(objattr + 1), objattr->sd_len );
809 str = (const WCHAR *)objattr + (sizeof(*objattr) + objattr->sd_len) / sizeof(WCHAR);
810 fprintf( stderr, ",name=L\"" );
811 dump_strW( str, objattr->name_len / sizeof(WCHAR), stderr, "\"\"" );
812 fputc( '\"', stderr );
813 remove_data( ((sizeof(*objattr) + objattr->sd_len) / sizeof(WCHAR)) * sizeof(WCHAR) +
814 objattr->name_len );
816 fputc( '}', stderr );
819 typedef void (*dump_func)( const void *req );
821 /* Everything below this line is generated automatically by tools/make_requests */
822 /* ### make_requests begin ### */
824 static void dump_new_process_request( const struct new_process_request *req )
826 fprintf( stderr, " inherit_all=%d,", req->inherit_all );
827 fprintf( stderr, " create_flags=%08x,", req->create_flags );
828 fprintf( stderr, " socket_fd=%d,", req->socket_fd );
829 fprintf( stderr, " exe_file=%p,", req->exe_file );
830 fprintf( stderr, " hstdin=%p,", req->hstdin );
831 fprintf( stderr, " hstdout=%p,", req->hstdout );
832 fprintf( stderr, " hstderr=%p,", req->hstderr );
833 fprintf( stderr, " process_access=%08x,", req->process_access );
834 fprintf( stderr, " process_attr=%08x,", req->process_attr );
835 fprintf( stderr, " thread_access=%08x,", req->thread_access );
836 fprintf( stderr, " thread_attr=%08x,", req->thread_attr );
837 fprintf( stderr, " info=" );
838 dump_varargs_startup_info( cur_size );
839 fputc( ',', stderr );
840 fprintf( stderr, " env=" );
841 dump_varargs_unicode_str( cur_size );
844 static void dump_new_process_reply( const struct new_process_reply *req )
846 fprintf( stderr, " info=%p,", req->info );
847 fprintf( stderr, " pid=%04x,", req->pid );
848 fprintf( stderr, " phandle=%p,", req->phandle );
849 fprintf( stderr, " tid=%04x,", req->tid );
850 fprintf( stderr, " thandle=%p", req->thandle );
853 static void dump_get_new_process_info_request( const struct get_new_process_info_request *req )
855 fprintf( stderr, " info=%p", req->info );
858 static void dump_get_new_process_info_reply( const struct get_new_process_info_reply *req )
860 fprintf( stderr, " success=%d,", req->success );
861 fprintf( stderr, " exit_code=%d", req->exit_code );
864 static void dump_new_thread_request( const struct new_thread_request *req )
866 fprintf( stderr, " access=%08x,", req->access );
867 fprintf( stderr, " attributes=%08x,", req->attributes );
868 fprintf( stderr, " suspend=%d,", req->suspend );
869 fprintf( stderr, " request_fd=%d", req->request_fd );
872 static void dump_new_thread_reply( const struct new_thread_reply *req )
874 fprintf( stderr, " tid=%04x,", req->tid );
875 fprintf( stderr, " handle=%p", req->handle );
878 static void dump_get_startup_info_request( const struct get_startup_info_request *req )
882 static void dump_get_startup_info_reply( const struct get_startup_info_reply *req )
884 fprintf( stderr, " exe_file=%p,", req->exe_file );
885 fprintf( stderr, " hstdin=%p,", req->hstdin );
886 fprintf( stderr, " hstdout=%p,", req->hstdout );
887 fprintf( stderr, " hstderr=%p,", req->hstderr );
888 fprintf( stderr, " info=" );
889 dump_varargs_startup_info( cur_size );
890 fputc( ',', stderr );
891 fprintf( stderr, " env=" );
892 dump_varargs_unicode_str( cur_size );
895 static void dump_init_process_done_request( const struct init_process_done_request *req )
897 fprintf( stderr, " module=%p,", req->module );
898 fprintf( stderr, " entry=%p,", req->entry );
899 fprintf( stderr, " gui=%d", req->gui );
902 static void dump_init_thread_request( const struct init_thread_request *req )
904 fprintf( stderr, " unix_pid=%d,", req->unix_pid );
905 fprintf( stderr, " unix_tid=%d,", req->unix_tid );
906 fprintf( stderr, " debug_level=%d,", req->debug_level );
907 fprintf( stderr, " teb=%p,", req->teb );
908 fprintf( stderr, " peb=%p,", req->peb );
909 fprintf( stderr, " entry=%p,", req->entry );
910 fprintf( stderr, " ldt_copy=%p,", req->ldt_copy );
911 fprintf( stderr, " reply_fd=%d,", req->reply_fd );
912 fprintf( stderr, " wait_fd=%d", req->wait_fd );
915 static void dump_init_thread_reply( const struct init_thread_reply *req )
917 fprintf( stderr, " pid=%04x,", req->pid );
918 fprintf( stderr, " tid=%04x,", req->tid );
919 fprintf( stderr, " info_size=%u,", req->info_size );
920 fprintf( stderr, " server_start=" );
921 dump_timeout( &req->server_start );
922 fprintf( stderr, "," );
923 fprintf( stderr, " version=%d", req->version );
926 static void dump_terminate_process_request( const struct terminate_process_request *req )
928 fprintf( stderr, " handle=%p,", req->handle );
929 fprintf( stderr, " exit_code=%d", req->exit_code );
932 static void dump_terminate_process_reply( const struct terminate_process_reply *req )
934 fprintf( stderr, " self=%d", req->self );
937 static void dump_terminate_thread_request( const struct terminate_thread_request *req )
939 fprintf( stderr, " handle=%p,", req->handle );
940 fprintf( stderr, " exit_code=%d", req->exit_code );
943 static void dump_terminate_thread_reply( const struct terminate_thread_reply *req )
945 fprintf( stderr, " self=%d,", req->self );
946 fprintf( stderr, " last=%d", req->last );
949 static void dump_get_process_info_request( const struct get_process_info_request *req )
951 fprintf( stderr, " handle=%p", req->handle );
954 static void dump_get_process_info_reply( const struct get_process_info_reply *req )
956 fprintf( stderr, " pid=%04x,", req->pid );
957 fprintf( stderr, " ppid=%04x,", req->ppid );
958 fprintf( stderr, " exit_code=%d,", req->exit_code );
959 fprintf( stderr, " priority=%d,", req->priority );
960 fprintf( stderr, " affinity=%08x,", req->affinity );
961 fprintf( stderr, " peb=%p,", req->peb );
962 fprintf( stderr, " start_time=" );
963 dump_timeout( &req->start_time );
964 fprintf( stderr, "," );
965 fprintf( stderr, " end_time=" );
966 dump_timeout( &req->end_time );
969 static void dump_set_process_info_request( const struct set_process_info_request *req )
971 fprintf( stderr, " handle=%p,", req->handle );
972 fprintf( stderr, " mask=%d,", req->mask );
973 fprintf( stderr, " priority=%d,", req->priority );
974 fprintf( stderr, " affinity=%08x", req->affinity );
977 static void dump_get_thread_info_request( const struct get_thread_info_request *req )
979 fprintf( stderr, " handle=%p,", req->handle );
980 fprintf( stderr, " tid_in=%04x", req->tid_in );
983 static void dump_get_thread_info_reply( const struct get_thread_info_reply *req )
985 fprintf( stderr, " pid=%04x,", req->pid );
986 fprintf( stderr, " tid=%04x,", req->tid );
987 fprintf( stderr, " teb=%p,", req->teb );
988 fprintf( stderr, " exit_code=%d,", req->exit_code );
989 fprintf( stderr, " priority=%d,", req->priority );
990 fprintf( stderr, " affinity=%08x,", req->affinity );
991 fprintf( stderr, " creation_time=" );
992 dump_timeout( &req->creation_time );
993 fprintf( stderr, "," );
994 fprintf( stderr, " exit_time=" );
995 dump_timeout( &req->exit_time );
996 fprintf( stderr, "," );
997 fprintf( stderr, " last=%d", req->last );
1000 static void dump_set_thread_info_request( const struct set_thread_info_request *req )
1002 fprintf( stderr, " handle=%p,", req->handle );
1003 fprintf( stderr, " mask=%d,", req->mask );
1004 fprintf( stderr, " priority=%d,", req->priority );
1005 fprintf( stderr, " affinity=%08x,", req->affinity );
1006 fprintf( stderr, " token=%p", req->token );
1009 static void dump_get_dll_info_request( const struct get_dll_info_request *req )
1011 fprintf( stderr, " handle=%p,", req->handle );
1012 fprintf( stderr, " base_address=%p", req->base_address );
1015 static void dump_get_dll_info_reply( const struct get_dll_info_reply *req )
1017 fprintf( stderr, " size=%lu,", (unsigned long)req->size );
1018 fprintf( stderr, " entry_point=%p,", req->entry_point );
1019 fprintf( stderr, " filename_len=%u,", req->filename_len );
1020 fprintf( stderr, " filename=" );
1021 dump_varargs_unicode_str( cur_size );
1024 static void dump_suspend_thread_request( const struct suspend_thread_request *req )
1026 fprintf( stderr, " handle=%p", req->handle );
1029 static void dump_suspend_thread_reply( const struct suspend_thread_reply *req )
1031 fprintf( stderr, " count=%d", req->count );
1034 static void dump_resume_thread_request( const struct resume_thread_request *req )
1036 fprintf( stderr, " handle=%p", req->handle );
1039 static void dump_resume_thread_reply( const struct resume_thread_reply *req )
1041 fprintf( stderr, " count=%d", req->count );
1044 static void dump_load_dll_request( const struct load_dll_request *req )
1046 fprintf( stderr, " handle=%p,", req->handle );
1047 fprintf( stderr, " base=%p,", req->base );
1048 fprintf( stderr, " size=%lu,", (unsigned long)req->size );
1049 fprintf( stderr, " dbg_offset=%d,", req->dbg_offset );
1050 fprintf( stderr, " dbg_size=%d,", req->dbg_size );
1051 fprintf( stderr, " name=%p,", req->name );
1052 fprintf( stderr, " filename=" );
1053 dump_varargs_unicode_str( cur_size );
1056 static void dump_unload_dll_request( const struct unload_dll_request *req )
1058 fprintf( stderr, " base=%p", req->base );
1061 static void dump_queue_apc_request( const struct queue_apc_request *req )
1063 fprintf( stderr, " thread=%p,", req->thread );
1064 fprintf( stderr, " process=%p,", req->process );
1065 fprintf( stderr, " call=" );
1066 dump_apc_call( &req->call );
1069 static void dump_queue_apc_reply( const struct queue_apc_reply *req )
1071 fprintf( stderr, " handle=%p,", req->handle );
1072 fprintf( stderr, " self=%d", req->self );
1075 static void dump_get_apc_result_request( const struct get_apc_result_request *req )
1077 fprintf( stderr, " handle=%p", req->handle );
1080 static void dump_get_apc_result_reply( const struct get_apc_result_reply *req )
1082 fprintf( stderr, " result=" );
1083 dump_apc_result( &req->result );
1086 static void dump_close_handle_request( const struct close_handle_request *req )
1088 fprintf( stderr, " handle=%p", req->handle );
1091 static void dump_set_handle_info_request( const struct set_handle_info_request *req )
1093 fprintf( stderr, " handle=%p,", req->handle );
1094 fprintf( stderr, " flags=%d,", req->flags );
1095 fprintf( stderr, " mask=%d", req->mask );
1098 static void dump_set_handle_info_reply( const struct set_handle_info_reply *req )
1100 fprintf( stderr, " old_flags=%d", req->old_flags );
1103 static void dump_dup_handle_request( const struct dup_handle_request *req )
1105 fprintf( stderr, " src_process=%p,", req->src_process );
1106 fprintf( stderr, " src_handle=%p,", req->src_handle );
1107 fprintf( stderr, " dst_process=%p,", req->dst_process );
1108 fprintf( stderr, " access=%08x,", req->access );
1109 fprintf( stderr, " attributes=%08x,", req->attributes );
1110 fprintf( stderr, " options=%08x", req->options );
1113 static void dump_dup_handle_reply( const struct dup_handle_reply *req )
1115 fprintf( stderr, " handle=%p,", req->handle );
1116 fprintf( stderr, " self=%d,", req->self );
1117 fprintf( stderr, " closed=%d", req->closed );
1120 static void dump_open_process_request( const struct open_process_request *req )
1122 fprintf( stderr, " pid=%04x,", req->pid );
1123 fprintf( stderr, " access=%08x,", req->access );
1124 fprintf( stderr, " attributes=%08x", req->attributes );
1127 static void dump_open_process_reply( const struct open_process_reply *req )
1129 fprintf( stderr, " handle=%p", req->handle );
1132 static void dump_open_thread_request( const struct open_thread_request *req )
1134 fprintf( stderr, " tid=%04x,", req->tid );
1135 fprintf( stderr, " access=%08x,", req->access );
1136 fprintf( stderr, " attributes=%08x", req->attributes );
1139 static void dump_open_thread_reply( const struct open_thread_reply *req )
1141 fprintf( stderr, " handle=%p", req->handle );
1144 static void dump_select_request( const struct select_request *req )
1146 fprintf( stderr, " flags=%d,", req->flags );
1147 fprintf( stderr, " cookie=%p,", req->cookie );
1148 fprintf( stderr, " signal=%p,", req->signal );
1149 fprintf( stderr, " prev_apc=%p,", req->prev_apc );
1150 fprintf( stderr, " timeout=" );
1151 dump_timeout( &req->timeout );
1152 fprintf( stderr, "," );
1153 fprintf( stderr, " result=" );
1154 dump_varargs_apc_result( cur_size );
1155 fputc( ',', stderr );
1156 fprintf( stderr, " handles=" );
1157 dump_varargs_handles( cur_size );
1160 static void dump_select_reply( const struct select_reply *req )
1162 fprintf( stderr, " apc_handle=%p,", req->apc_handle );
1163 fprintf( stderr, " timeout=" );
1164 dump_timeout( &req->timeout );
1165 fprintf( stderr, "," );
1166 fprintf( stderr, " call=" );
1167 dump_apc_call( &req->call );
1170 static void dump_create_event_request( const struct create_event_request *req )
1172 fprintf( stderr, " access=%08x,", req->access );
1173 fprintf( stderr, " attributes=%08x,", req->attributes );
1174 fprintf( stderr, " manual_reset=%d,", req->manual_reset );
1175 fprintf( stderr, " initial_state=%d,", req->initial_state );
1176 fprintf( stderr, " objattr=" );
1177 dump_varargs_object_attributes( cur_size );
1180 static void dump_create_event_reply( const struct create_event_reply *req )
1182 fprintf( stderr, " handle=%p", req->handle );
1185 static void dump_event_op_request( const struct event_op_request *req )
1187 fprintf( stderr, " handle=%p,", req->handle );
1188 fprintf( stderr, " op=%d", req->op );
1191 static void dump_open_event_request( const struct open_event_request *req )
1193 fprintf( stderr, " access=%08x,", req->access );
1194 fprintf( stderr, " attributes=%08x,", req->attributes );
1195 fprintf( stderr, " rootdir=%p,", req->rootdir );
1196 fprintf( stderr, " name=" );
1197 dump_varargs_unicode_str( cur_size );
1200 static void dump_open_event_reply( const struct open_event_reply *req )
1202 fprintf( stderr, " handle=%p", req->handle );
1205 static void dump_create_mutex_request( const struct create_mutex_request *req )
1207 fprintf( stderr, " access=%08x,", req->access );
1208 fprintf( stderr, " attributes=%08x,", req->attributes );
1209 fprintf( stderr, " owned=%d,", req->owned );
1210 fprintf( stderr, " objattr=" );
1211 dump_varargs_object_attributes( cur_size );
1214 static void dump_create_mutex_reply( const struct create_mutex_reply *req )
1216 fprintf( stderr, " handle=%p", req->handle );
1219 static void dump_release_mutex_request( const struct release_mutex_request *req )
1221 fprintf( stderr, " handle=%p", req->handle );
1224 static void dump_release_mutex_reply( const struct release_mutex_reply *req )
1226 fprintf( stderr, " prev_count=%08x", req->prev_count );
1229 static void dump_open_mutex_request( const struct open_mutex_request *req )
1231 fprintf( stderr, " access=%08x,", req->access );
1232 fprintf( stderr, " attributes=%08x,", req->attributes );
1233 fprintf( stderr, " rootdir=%p,", req->rootdir );
1234 fprintf( stderr, " name=" );
1235 dump_varargs_unicode_str( cur_size );
1238 static void dump_open_mutex_reply( const struct open_mutex_reply *req )
1240 fprintf( stderr, " handle=%p", req->handle );
1243 static void dump_create_semaphore_request( const struct create_semaphore_request *req )
1245 fprintf( stderr, " access=%08x,", req->access );
1246 fprintf( stderr, " attributes=%08x,", req->attributes );
1247 fprintf( stderr, " initial=%08x,", req->initial );
1248 fprintf( stderr, " max=%08x,", req->max );
1249 fprintf( stderr, " objattr=" );
1250 dump_varargs_object_attributes( cur_size );
1253 static void dump_create_semaphore_reply( const struct create_semaphore_reply *req )
1255 fprintf( stderr, " handle=%p", req->handle );
1258 static void dump_release_semaphore_request( const struct release_semaphore_request *req )
1260 fprintf( stderr, " handle=%p,", req->handle );
1261 fprintf( stderr, " count=%08x", req->count );
1264 static void dump_release_semaphore_reply( const struct release_semaphore_reply *req )
1266 fprintf( stderr, " prev_count=%08x", req->prev_count );
1269 static void dump_open_semaphore_request( const struct open_semaphore_request *req )
1271 fprintf( stderr, " access=%08x,", req->access );
1272 fprintf( stderr, " attributes=%08x,", req->attributes );
1273 fprintf( stderr, " rootdir=%p,", req->rootdir );
1274 fprintf( stderr, " name=" );
1275 dump_varargs_unicode_str( cur_size );
1278 static void dump_open_semaphore_reply( const struct open_semaphore_reply *req )
1280 fprintf( stderr, " handle=%p", req->handle );
1283 static void dump_create_file_request( const struct create_file_request *req )
1285 fprintf( stderr, " access=%08x,", req->access );
1286 fprintf( stderr, " attributes=%08x,", req->attributes );
1287 fprintf( stderr, " sharing=%08x,", req->sharing );
1288 fprintf( stderr, " create=%d,", req->create );
1289 fprintf( stderr, " options=%08x,", req->options );
1290 fprintf( stderr, " attrs=%08x,", req->attrs );
1291 fprintf( stderr, " objattr=" );
1292 dump_varargs_object_attributes( cur_size );
1293 fputc( ',', stderr );
1294 fprintf( stderr, " filename=" );
1295 dump_varargs_string( cur_size );
1298 static void dump_create_file_reply( const struct create_file_reply *req )
1300 fprintf( stderr, " handle=%p", req->handle );
1303 static void dump_open_file_object_request( const struct open_file_object_request *req )
1305 fprintf( stderr, " access=%08x,", req->access );
1306 fprintf( stderr, " attributes=%08x,", req->attributes );
1307 fprintf( stderr, " rootdir=%p,", req->rootdir );
1308 fprintf( stderr, " sharing=%08x,", req->sharing );
1309 fprintf( stderr, " options=%08x,", req->options );
1310 fprintf( stderr, " filename=" );
1311 dump_varargs_unicode_str( cur_size );
1314 static void dump_open_file_object_reply( const struct open_file_object_reply *req )
1316 fprintf( stderr, " handle=%p", req->handle );
1319 static void dump_alloc_file_handle_request( const struct alloc_file_handle_request *req )
1321 fprintf( stderr, " access=%08x,", req->access );
1322 fprintf( stderr, " attributes=%08x,", req->attributes );
1323 fprintf( stderr, " fd=%d", req->fd );
1326 static void dump_alloc_file_handle_reply( const struct alloc_file_handle_reply *req )
1328 fprintf( stderr, " handle=%p", req->handle );
1331 static void dump_get_handle_fd_request( const struct get_handle_fd_request *req )
1333 fprintf( stderr, " handle=%p", req->handle );
1336 static void dump_get_handle_fd_reply( const struct get_handle_fd_reply *req )
1338 fprintf( stderr, " type=%d,", req->type );
1339 fprintf( stderr, " removable=%d,", req->removable );
1340 fprintf( stderr, " access=%08x,", req->access );
1341 fprintf( stderr, " options=%08x", req->options );
1344 static void dump_flush_file_request( const struct flush_file_request *req )
1346 fprintf( stderr, " handle=%p", req->handle );
1349 static void dump_flush_file_reply( const struct flush_file_reply *req )
1351 fprintf( stderr, " event=%p", req->event );
1354 static void dump_lock_file_request( const struct lock_file_request *req )
1356 fprintf( stderr, " handle=%p,", req->handle );
1357 fprintf( stderr, " offset=" );
1358 dump_file_pos( &req->offset );
1359 fprintf( stderr, "," );
1360 fprintf( stderr, " count=" );
1361 dump_file_pos( &req->count );
1362 fprintf( stderr, "," );
1363 fprintf( stderr, " shared=%d,", req->shared );
1364 fprintf( stderr, " wait=%d", req->wait );
1367 static void dump_lock_file_reply( const struct lock_file_reply *req )
1369 fprintf( stderr, " handle=%p,", req->handle );
1370 fprintf( stderr, " overlapped=%d", req->overlapped );
1373 static void dump_unlock_file_request( const struct unlock_file_request *req )
1375 fprintf( stderr, " handle=%p,", req->handle );
1376 fprintf( stderr, " offset=" );
1377 dump_file_pos( &req->offset );
1378 fprintf( stderr, "," );
1379 fprintf( stderr, " count=" );
1380 dump_file_pos( &req->count );
1383 static void dump_create_socket_request( const struct create_socket_request *req )
1385 fprintf( stderr, " access=%08x,", req->access );
1386 fprintf( stderr, " attributes=%08x,", req->attributes );
1387 fprintf( stderr, " family=%d,", req->family );
1388 fprintf( stderr, " type=%d,", req->type );
1389 fprintf( stderr, " protocol=%d,", req->protocol );
1390 fprintf( stderr, " flags=%08x", req->flags );
1393 static void dump_create_socket_reply( const struct create_socket_reply *req )
1395 fprintf( stderr, " handle=%p", req->handle );
1398 static void dump_accept_socket_request( const struct accept_socket_request *req )
1400 fprintf( stderr, " lhandle=%p,", req->lhandle );
1401 fprintf( stderr, " access=%08x,", req->access );
1402 fprintf( stderr, " attributes=%08x", req->attributes );
1405 static void dump_accept_socket_reply( const struct accept_socket_reply *req )
1407 fprintf( stderr, " handle=%p", req->handle );
1410 static void dump_set_socket_event_request( const struct set_socket_event_request *req )
1412 fprintf( stderr, " handle=%p,", req->handle );
1413 fprintf( stderr, " mask=%08x,", req->mask );
1414 fprintf( stderr, " event=%p,", req->event );
1415 fprintf( stderr, " window=%p,", req->window );
1416 fprintf( stderr, " msg=%08x", req->msg );
1419 static void dump_get_socket_event_request( const struct get_socket_event_request *req )
1421 fprintf( stderr, " handle=%p,", req->handle );
1422 fprintf( stderr, " service=%d,", req->service );
1423 fprintf( stderr, " c_event=%p", req->c_event );
1426 static void dump_get_socket_event_reply( const struct get_socket_event_reply *req )
1428 fprintf( stderr, " mask=%08x,", req->mask );
1429 fprintf( stderr, " pmask=%08x,", req->pmask );
1430 fprintf( stderr, " state=%08x,", req->state );
1431 fprintf( stderr, " errors=" );
1432 dump_varargs_ints( cur_size );
1435 static void dump_enable_socket_event_request( const struct enable_socket_event_request *req )
1437 fprintf( stderr, " handle=%p,", req->handle );
1438 fprintf( stderr, " mask=%08x,", req->mask );
1439 fprintf( stderr, " sstate=%08x,", req->sstate );
1440 fprintf( stderr, " cstate=%08x", req->cstate );
1443 static void dump_set_socket_deferred_request( const struct set_socket_deferred_request *req )
1445 fprintf( stderr, " handle=%p,", req->handle );
1446 fprintf( stderr, " deferred=%p", req->deferred );
1449 static void dump_alloc_console_request( const struct alloc_console_request *req )
1451 fprintf( stderr, " access=%08x,", req->access );
1452 fprintf( stderr, " attributes=%08x,", req->attributes );
1453 fprintf( stderr, " pid=%04x", req->pid );
1456 static void dump_alloc_console_reply( const struct alloc_console_reply *req )
1458 fprintf( stderr, " handle_in=%p,", req->handle_in );
1459 fprintf( stderr, " event=%p", req->event );
1462 static void dump_free_console_request( const struct free_console_request *req )
1466 static void dump_get_console_renderer_events_request( const struct get_console_renderer_events_request *req )
1468 fprintf( stderr, " handle=%p", req->handle );
1471 static void dump_get_console_renderer_events_reply( const struct get_console_renderer_events_reply *req )
1473 fprintf( stderr, " data=" );
1474 dump_varargs_bytes( cur_size );
1477 static void dump_open_console_request( const struct open_console_request *req )
1479 fprintf( stderr, " from=%p,", req->from );
1480 fprintf( stderr, " access=%08x,", req->access );
1481 fprintf( stderr, " attributes=%08x,", req->attributes );
1482 fprintf( stderr, " share=%d", req->share );
1485 static void dump_open_console_reply( const struct open_console_reply *req )
1487 fprintf( stderr, " handle=%p", req->handle );
1490 static void dump_get_console_wait_event_request( const struct get_console_wait_event_request *req )
1494 static void dump_get_console_wait_event_reply( const struct get_console_wait_event_reply *req )
1496 fprintf( stderr, " handle=%p", req->handle );
1499 static void dump_get_console_mode_request( const struct get_console_mode_request *req )
1501 fprintf( stderr, " handle=%p", req->handle );
1504 static void dump_get_console_mode_reply( const struct get_console_mode_reply *req )
1506 fprintf( stderr, " mode=%d", req->mode );
1509 static void dump_set_console_mode_request( const struct set_console_mode_request *req )
1511 fprintf( stderr, " handle=%p,", req->handle );
1512 fprintf( stderr, " mode=%d", req->mode );
1515 static void dump_set_console_input_info_request( const struct set_console_input_info_request *req )
1517 fprintf( stderr, " handle=%p,", req->handle );
1518 fprintf( stderr, " mask=%d,", req->mask );
1519 fprintf( stderr, " active_sb=%p,", req->active_sb );
1520 fprintf( stderr, " history_mode=%d,", req->history_mode );
1521 fprintf( stderr, " history_size=%d,", req->history_size );
1522 fprintf( stderr, " edition_mode=%d,", req->edition_mode );
1523 fprintf( stderr, " input_cp=%d,", req->input_cp );
1524 fprintf( stderr, " output_cp=%d,", req->output_cp );
1525 fprintf( stderr, " win=%p,", req->win );
1526 fprintf( stderr, " title=" );
1527 dump_varargs_unicode_str( cur_size );
1530 static void dump_get_console_input_info_request( const struct get_console_input_info_request *req )
1532 fprintf( stderr, " handle=%p", req->handle );
1535 static void dump_get_console_input_info_reply( const struct get_console_input_info_reply *req )
1537 fprintf( stderr, " history_mode=%d,", req->history_mode );
1538 fprintf( stderr, " history_size=%d,", req->history_size );
1539 fprintf( stderr, " history_index=%d,", req->history_index );
1540 fprintf( stderr, " edition_mode=%d,", req->edition_mode );
1541 fprintf( stderr, " input_cp=%d,", req->input_cp );
1542 fprintf( stderr, " output_cp=%d,", req->output_cp );
1543 fprintf( stderr, " win=%p,", req->win );
1544 fprintf( stderr, " title=" );
1545 dump_varargs_unicode_str( cur_size );
1548 static void dump_append_console_input_history_request( const struct append_console_input_history_request *req )
1550 fprintf( stderr, " handle=%p,", req->handle );
1551 fprintf( stderr, " line=" );
1552 dump_varargs_unicode_str( cur_size );
1555 static void dump_get_console_input_history_request( const struct get_console_input_history_request *req )
1557 fprintf( stderr, " handle=%p,", req->handle );
1558 fprintf( stderr, " index=%d", req->index );
1561 static void dump_get_console_input_history_reply( const struct get_console_input_history_reply *req )
1563 fprintf( stderr, " total=%d,", req->total );
1564 fprintf( stderr, " line=" );
1565 dump_varargs_unicode_str( cur_size );
1568 static void dump_create_console_output_request( const struct create_console_output_request *req )
1570 fprintf( stderr, " handle_in=%p,", req->handle_in );
1571 fprintf( stderr, " access=%08x,", req->access );
1572 fprintf( stderr, " attributes=%08x,", req->attributes );
1573 fprintf( stderr, " share=%08x", req->share );
1576 static void dump_create_console_output_reply( const struct create_console_output_reply *req )
1578 fprintf( stderr, " handle_out=%p", req->handle_out );
1581 static void dump_set_console_output_info_request( const struct set_console_output_info_request *req )
1583 fprintf( stderr, " handle=%p,", req->handle );
1584 fprintf( stderr, " mask=%d,", req->mask );
1585 fprintf( stderr, " cursor_size=%d,", req->cursor_size );
1586 fprintf( stderr, " cursor_visible=%d,", req->cursor_visible );
1587 fprintf( stderr, " cursor_x=%d,", req->cursor_x );
1588 fprintf( stderr, " cursor_y=%d,", req->cursor_y );
1589 fprintf( stderr, " width=%d,", req->width );
1590 fprintf( stderr, " height=%d,", req->height );
1591 fprintf( stderr, " attr=%d,", req->attr );
1592 fprintf( stderr, " win_left=%d,", req->win_left );
1593 fprintf( stderr, " win_top=%d,", req->win_top );
1594 fprintf( stderr, " win_right=%d,", req->win_right );
1595 fprintf( stderr, " win_bottom=%d,", req->win_bottom );
1596 fprintf( stderr, " max_width=%d,", req->max_width );
1597 fprintf( stderr, " max_height=%d", req->max_height );
1600 static void dump_get_console_output_info_request( const struct get_console_output_info_request *req )
1602 fprintf( stderr, " handle=%p", req->handle );
1605 static void dump_get_console_output_info_reply( const struct get_console_output_info_reply *req )
1607 fprintf( stderr, " cursor_size=%d,", req->cursor_size );
1608 fprintf( stderr, " cursor_visible=%d,", req->cursor_visible );
1609 fprintf( stderr, " cursor_x=%d,", req->cursor_x );
1610 fprintf( stderr, " cursor_y=%d,", req->cursor_y );
1611 fprintf( stderr, " width=%d,", req->width );
1612 fprintf( stderr, " height=%d,", req->height );
1613 fprintf( stderr, " attr=%d,", req->attr );
1614 fprintf( stderr, " win_left=%d,", req->win_left );
1615 fprintf( stderr, " win_top=%d,", req->win_top );
1616 fprintf( stderr, " win_right=%d,", req->win_right );
1617 fprintf( stderr, " win_bottom=%d,", req->win_bottom );
1618 fprintf( stderr, " max_width=%d,", req->max_width );
1619 fprintf( stderr, " max_height=%d", req->max_height );
1622 static void dump_write_console_input_request( const struct write_console_input_request *req )
1624 fprintf( stderr, " handle=%p,", req->handle );
1625 fprintf( stderr, " rec=" );
1626 dump_varargs_input_records( cur_size );
1629 static void dump_write_console_input_reply( const struct write_console_input_reply *req )
1631 fprintf( stderr, " written=%d", req->written );
1634 static void dump_read_console_input_request( const struct read_console_input_request *req )
1636 fprintf( stderr, " handle=%p,", req->handle );
1637 fprintf( stderr, " flush=%d", req->flush );
1640 static void dump_read_console_input_reply( const struct read_console_input_reply *req )
1642 fprintf( stderr, " read=%d,", req->read );
1643 fprintf( stderr, " rec=" );
1644 dump_varargs_input_records( cur_size );
1647 static void dump_write_console_output_request( const struct write_console_output_request *req )
1649 fprintf( stderr, " handle=%p,", req->handle );
1650 fprintf( stderr, " x=%d,", req->x );
1651 fprintf( stderr, " y=%d,", req->y );
1652 fprintf( stderr, " mode=%d,", req->mode );
1653 fprintf( stderr, " wrap=%d,", req->wrap );
1654 fprintf( stderr, " data=" );
1655 dump_varargs_bytes( cur_size );
1658 static void dump_write_console_output_reply( const struct write_console_output_reply *req )
1660 fprintf( stderr, " written=%d,", req->written );
1661 fprintf( stderr, " width=%d,", req->width );
1662 fprintf( stderr, " height=%d", req->height );
1665 static void dump_fill_console_output_request( const struct fill_console_output_request *req )
1667 fprintf( stderr, " handle=%p,", req->handle );
1668 fprintf( stderr, " x=%d,", req->x );
1669 fprintf( stderr, " y=%d,", req->y );
1670 fprintf( stderr, " mode=%d,", req->mode );
1671 fprintf( stderr, " count=%d,", req->count );
1672 fprintf( stderr, " wrap=%d,", req->wrap );
1673 fprintf( stderr, " data=" );
1674 dump_char_info( &req->data );
1677 static void dump_fill_console_output_reply( const struct fill_console_output_reply *req )
1679 fprintf( stderr, " written=%d", req->written );
1682 static void dump_read_console_output_request( const struct read_console_output_request *req )
1684 fprintf( stderr, " handle=%p,", req->handle );
1685 fprintf( stderr, " x=%d,", req->x );
1686 fprintf( stderr, " y=%d,", req->y );
1687 fprintf( stderr, " mode=%d,", req->mode );
1688 fprintf( stderr, " wrap=%d", req->wrap );
1691 static void dump_read_console_output_reply( const struct read_console_output_reply *req )
1693 fprintf( stderr, " width=%d,", req->width );
1694 fprintf( stderr, " height=%d,", req->height );
1695 fprintf( stderr, " data=" );
1696 dump_varargs_bytes( cur_size );
1699 static void dump_move_console_output_request( const struct move_console_output_request *req )
1701 fprintf( stderr, " handle=%p,", req->handle );
1702 fprintf( stderr, " x_src=%d,", req->x_src );
1703 fprintf( stderr, " y_src=%d,", req->y_src );
1704 fprintf( stderr, " x_dst=%d,", req->x_dst );
1705 fprintf( stderr, " y_dst=%d,", req->y_dst );
1706 fprintf( stderr, " w=%d,", req->w );
1707 fprintf( stderr, " h=%d", req->h );
1710 static void dump_send_console_signal_request( const struct send_console_signal_request *req )
1712 fprintf( stderr, " signal=%d,", req->signal );
1713 fprintf( stderr, " group_id=%04x", req->group_id );
1716 static void dump_read_directory_changes_request( const struct read_directory_changes_request *req )
1718 fprintf( stderr, " filter=%08x,", req->filter );
1719 fprintf( stderr, " handle=%p,", req->handle );
1720 fprintf( stderr, " subtree=%d,", req->subtree );
1721 fprintf( stderr, " want_data=%d,", req->want_data );
1722 fprintf( stderr, " async=" );
1723 dump_async_data( &req->async );
1726 static void dump_read_change_request( const struct read_change_request *req )
1728 fprintf( stderr, " handle=%p", req->handle );
1731 static void dump_read_change_reply( const struct read_change_reply *req )
1733 fprintf( stderr, " action=%d,", req->action );
1734 fprintf( stderr, " name=" );
1735 dump_varargs_string( cur_size );
1738 static void dump_create_mapping_request( const struct create_mapping_request *req )
1740 fprintf( stderr, " access=%08x,", req->access );
1741 fprintf( stderr, " attributes=%08x,", req->attributes );
1742 fprintf( stderr, " size=" );
1743 dump_file_pos( &req->size );
1744 fprintf( stderr, "," );
1745 fprintf( stderr, " protect=%d,", req->protect );
1746 fprintf( stderr, " file_handle=%p,", req->file_handle );
1747 fprintf( stderr, " objattr=" );
1748 dump_varargs_object_attributes( cur_size );
1751 static void dump_create_mapping_reply( const struct create_mapping_reply *req )
1753 fprintf( stderr, " handle=%p", req->handle );
1756 static void dump_open_mapping_request( const struct open_mapping_request *req )
1758 fprintf( stderr, " access=%08x,", req->access );
1759 fprintf( stderr, " attributes=%08x,", req->attributes );
1760 fprintf( stderr, " rootdir=%p,", req->rootdir );
1761 fprintf( stderr, " name=" );
1762 dump_varargs_unicode_str( cur_size );
1765 static void dump_open_mapping_reply( const struct open_mapping_reply *req )
1767 fprintf( stderr, " handle=%p", req->handle );
1770 static void dump_get_mapping_info_request( const struct get_mapping_info_request *req )
1772 fprintf( stderr, " handle=%p", req->handle );
1775 static void dump_get_mapping_info_reply( const struct get_mapping_info_reply *req )
1777 fprintf( stderr, " size=" );
1778 dump_file_pos( &req->size );
1779 fprintf( stderr, "," );
1780 fprintf( stderr, " protect=%d,", req->protect );
1781 fprintf( stderr, " header_size=%d,", req->header_size );
1782 fprintf( stderr, " base=%p,", req->base );
1783 fprintf( stderr, " mapping=%p,", req->mapping );
1784 fprintf( stderr, " shared_file=%p", req->shared_file );
1787 static void dump_create_snapshot_request( const struct create_snapshot_request *req )
1789 fprintf( stderr, " attributes=%08x,", req->attributes );
1790 fprintf( stderr, " flags=%d,", req->flags );
1791 fprintf( stderr, " pid=%04x", req->pid );
1794 static void dump_create_snapshot_reply( const struct create_snapshot_reply *req )
1796 fprintf( stderr, " handle=%p", req->handle );
1799 static void dump_next_process_request( const struct next_process_request *req )
1801 fprintf( stderr, " handle=%p,", req->handle );
1802 fprintf( stderr, " reset=%d", req->reset );
1805 static void dump_next_process_reply( const struct next_process_reply *req )
1807 fprintf( stderr, " count=%d,", req->count );
1808 fprintf( stderr, " pid=%04x,", req->pid );
1809 fprintf( stderr, " ppid=%04x,", req->ppid );
1810 fprintf( stderr, " heap=%p,", req->heap );
1811 fprintf( stderr, " module=%p,", req->module );
1812 fprintf( stderr, " threads=%d,", req->threads );
1813 fprintf( stderr, " priority=%d,", req->priority );
1814 fprintf( stderr, " handles=%d,", req->handles );
1815 fprintf( stderr, " filename=" );
1816 dump_varargs_unicode_str( cur_size );
1819 static void dump_next_thread_request( const struct next_thread_request *req )
1821 fprintf( stderr, " handle=%p,", req->handle );
1822 fprintf( stderr, " reset=%d", req->reset );
1825 static void dump_next_thread_reply( const struct next_thread_reply *req )
1827 fprintf( stderr, " count=%d,", req->count );
1828 fprintf( stderr, " pid=%04x,", req->pid );
1829 fprintf( stderr, " tid=%04x,", req->tid );
1830 fprintf( stderr, " base_pri=%d,", req->base_pri );
1831 fprintf( stderr, " delta_pri=%d", req->delta_pri );
1834 static void dump_next_module_request( const struct next_module_request *req )
1836 fprintf( stderr, " handle=%p,", req->handle );
1837 fprintf( stderr, " reset=%d", req->reset );
1840 static void dump_next_module_reply( const struct next_module_reply *req )
1842 fprintf( stderr, " pid=%04x,", req->pid );
1843 fprintf( stderr, " base=%p,", req->base );
1844 fprintf( stderr, " size=%lu,", (unsigned long)req->size );
1845 fprintf( stderr, " filename=" );
1846 dump_varargs_unicode_str( cur_size );
1849 static void dump_wait_debug_event_request( const struct wait_debug_event_request *req )
1851 fprintf( stderr, " get_handle=%d", req->get_handle );
1854 static void dump_wait_debug_event_reply( const struct wait_debug_event_reply *req )
1856 fprintf( stderr, " pid=%04x,", req->pid );
1857 fprintf( stderr, " tid=%04x,", req->tid );
1858 fprintf( stderr, " wait=%p,", req->wait );
1859 fprintf( stderr, " event=" );
1860 dump_varargs_debug_event( cur_size );
1863 static void dump_queue_exception_event_request( const struct queue_exception_event_request *req )
1865 fprintf( stderr, " first=%d,", req->first );
1866 fprintf( stderr, " record=" );
1867 dump_varargs_exc_event( cur_size );
1870 static void dump_queue_exception_event_reply( const struct queue_exception_event_reply *req )
1872 fprintf( stderr, " handle=%p", req->handle );
1875 static void dump_get_exception_status_request( const struct get_exception_status_request *req )
1877 fprintf( stderr, " handle=%p", req->handle );
1880 static void dump_get_exception_status_reply( const struct get_exception_status_reply *req )
1882 fprintf( stderr, " context=" );
1883 dump_varargs_context( cur_size );
1886 static void dump_output_debug_string_request( const struct output_debug_string_request *req )
1888 fprintf( stderr, " string=%p,", req->string );
1889 fprintf( stderr, " unicode=%d,", req->unicode );
1890 fprintf( stderr, " length=%d", req->length );
1893 static void dump_continue_debug_event_request( const struct continue_debug_event_request *req )
1895 fprintf( stderr, " pid=%04x,", req->pid );
1896 fprintf( stderr, " tid=%04x,", req->tid );
1897 fprintf( stderr, " status=%d", req->status );
1900 static void dump_debug_process_request( const struct debug_process_request *req )
1902 fprintf( stderr, " pid=%04x,", req->pid );
1903 fprintf( stderr, " attach=%d", req->attach );
1906 static void dump_debug_break_request( const struct debug_break_request *req )
1908 fprintf( stderr, " handle=%p", req->handle );
1911 static void dump_debug_break_reply( const struct debug_break_reply *req )
1913 fprintf( stderr, " self=%d", req->self );
1916 static void dump_set_debugger_kill_on_exit_request( const struct set_debugger_kill_on_exit_request *req )
1918 fprintf( stderr, " kill_on_exit=%d", req->kill_on_exit );
1921 static void dump_read_process_memory_request( const struct read_process_memory_request *req )
1923 fprintf( stderr, " handle=%p,", req->handle );
1924 fprintf( stderr, " addr=%p", req->addr );
1927 static void dump_read_process_memory_reply( const struct read_process_memory_reply *req )
1929 fprintf( stderr, " data=" );
1930 dump_varargs_bytes( cur_size );
1933 static void dump_write_process_memory_request( const struct write_process_memory_request *req )
1935 fprintf( stderr, " handle=%p,", req->handle );
1936 fprintf( stderr, " addr=%p,", req->addr );
1937 fprintf( stderr, " data=" );
1938 dump_varargs_bytes( cur_size );
1941 static void dump_create_key_request( const struct create_key_request *req )
1943 fprintf( stderr, " parent=%p,", req->parent );
1944 fprintf( stderr, " access=%08x,", req->access );
1945 fprintf( stderr, " attributes=%08x,", req->attributes );
1946 fprintf( stderr, " options=%08x,", req->options );
1947 fprintf( stderr, " modif=%ld,", (long)req->modif );
1948 fprintf( stderr, " namelen=%u,", req->namelen );
1949 fprintf( stderr, " name=" );
1950 dump_varargs_unicode_str( min(cur_size,req->namelen) );
1951 fputc( ',', stderr );
1952 fprintf( stderr, " class=" );
1953 dump_varargs_unicode_str( cur_size );
1956 static void dump_create_key_reply( const struct create_key_reply *req )
1958 fprintf( stderr, " hkey=%p,", req->hkey );
1959 fprintf( stderr, " created=%d", req->created );
1962 static void dump_open_key_request( const struct open_key_request *req )
1964 fprintf( stderr, " parent=%p,", req->parent );
1965 fprintf( stderr, " access=%08x,", req->access );
1966 fprintf( stderr, " attributes=%08x,", req->attributes );
1967 fprintf( stderr, " name=" );
1968 dump_varargs_unicode_str( cur_size );
1971 static void dump_open_key_reply( const struct open_key_reply *req )
1973 fprintf( stderr, " hkey=%p", req->hkey );
1976 static void dump_delete_key_request( const struct delete_key_request *req )
1978 fprintf( stderr, " hkey=%p", req->hkey );
1981 static void dump_flush_key_request( const struct flush_key_request *req )
1983 fprintf( stderr, " hkey=%p", req->hkey );
1986 static void dump_enum_key_request( const struct enum_key_request *req )
1988 fprintf( stderr, " hkey=%p,", req->hkey );
1989 fprintf( stderr, " index=%d,", req->index );
1990 fprintf( stderr, " info_class=%d", req->info_class );
1993 static void dump_enum_key_reply( const struct enum_key_reply *req )
1995 fprintf( stderr, " subkeys=%d,", req->subkeys );
1996 fprintf( stderr, " max_subkey=%d,", req->max_subkey );
1997 fprintf( stderr, " max_class=%d,", req->max_class );
1998 fprintf( stderr, " values=%d,", req->values );
1999 fprintf( stderr, " max_value=%d,", req->max_value );
2000 fprintf( stderr, " max_data=%d,", req->max_data );
2001 fprintf( stderr, " modif=%ld,", (long)req->modif );
2002 fprintf( stderr, " total=%u,", req->total );
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, " class=" );
2008 dump_varargs_unicode_str( cur_size );
2011 static void dump_set_key_value_request( const struct set_key_value_request *req )
2013 fprintf( stderr, " hkey=%p,", req->hkey );
2014 fprintf( stderr, " type=%d,", req->type );
2015 fprintf( stderr, " namelen=%u,", req->namelen );
2016 fprintf( stderr, " name=" );
2017 dump_varargs_unicode_str( min(cur_size,req->namelen) );
2018 fputc( ',', stderr );
2019 fprintf( stderr, " data=" );
2020 dump_varargs_bytes( cur_size );
2023 static void dump_get_key_value_request( const struct get_key_value_request *req )
2025 fprintf( stderr, " hkey=%p,", req->hkey );
2026 fprintf( stderr, " name=" );
2027 dump_varargs_unicode_str( cur_size );
2030 static void dump_get_key_value_reply( const struct get_key_value_reply *req )
2032 fprintf( stderr, " type=%d,", req->type );
2033 fprintf( stderr, " total=%u,", req->total );
2034 fprintf( stderr, " data=" );
2035 dump_varargs_bytes( cur_size );
2038 static void dump_enum_key_value_request( const struct enum_key_value_request *req )
2040 fprintf( stderr, " hkey=%p,", req->hkey );
2041 fprintf( stderr, " index=%d,", req->index );
2042 fprintf( stderr, " info_class=%d", req->info_class );
2045 static void dump_enum_key_value_reply( const struct enum_key_value_reply *req )
2047 fprintf( stderr, " type=%d,", req->type );
2048 fprintf( stderr, " total=%u,", req->total );
2049 fprintf( stderr, " namelen=%u,", req->namelen );
2050 fprintf( stderr, " name=" );
2051 dump_varargs_unicode_str( min(cur_size,req->namelen) );
2052 fputc( ',', stderr );
2053 fprintf( stderr, " data=" );
2054 dump_varargs_bytes( cur_size );
2057 static void dump_delete_key_value_request( const struct delete_key_value_request *req )
2059 fprintf( stderr, " hkey=%p,", req->hkey );
2060 fprintf( stderr, " name=" );
2061 dump_varargs_unicode_str( cur_size );
2064 static void dump_load_registry_request( const struct load_registry_request *req )
2066 fprintf( stderr, " hkey=%p,", req->hkey );
2067 fprintf( stderr, " file=%p,", req->file );
2068 fprintf( stderr, " name=" );
2069 dump_varargs_unicode_str( cur_size );
2072 static void dump_unload_registry_request( const struct unload_registry_request *req )
2074 fprintf( stderr, " hkey=%p", req->hkey );
2077 static void dump_save_registry_request( const struct save_registry_request *req )
2079 fprintf( stderr, " hkey=%p,", req->hkey );
2080 fprintf( stderr, " file=%p", req->file );
2083 static void dump_set_registry_notification_request( const struct set_registry_notification_request *req )
2085 fprintf( stderr, " hkey=%p,", req->hkey );
2086 fprintf( stderr, " event=%p,", req->event );
2087 fprintf( stderr, " subtree=%d,", req->subtree );
2088 fprintf( stderr, " filter=%08x", req->filter );
2091 static void dump_create_timer_request( const struct create_timer_request *req )
2093 fprintf( stderr, " access=%08x,", req->access );
2094 fprintf( stderr, " attributes=%08x,", req->attributes );
2095 fprintf( stderr, " rootdir=%p,", req->rootdir );
2096 fprintf( stderr, " manual=%d,", req->manual );
2097 fprintf( stderr, " name=" );
2098 dump_varargs_unicode_str( cur_size );
2101 static void dump_create_timer_reply( const struct create_timer_reply *req )
2103 fprintf( stderr, " handle=%p", req->handle );
2106 static void dump_open_timer_request( const struct open_timer_request *req )
2108 fprintf( stderr, " access=%08x,", req->access );
2109 fprintf( stderr, " attributes=%08x,", req->attributes );
2110 fprintf( stderr, " rootdir=%p,", req->rootdir );
2111 fprintf( stderr, " name=" );
2112 dump_varargs_unicode_str( cur_size );
2115 static void dump_open_timer_reply( const struct open_timer_reply *req )
2117 fprintf( stderr, " handle=%p", req->handle );
2120 static void dump_set_timer_request( const struct set_timer_request *req )
2122 fprintf( stderr, " handle=%p,", req->handle );
2123 fprintf( stderr, " expire=" );
2124 dump_timeout( &req->expire );
2125 fprintf( stderr, "," );
2126 fprintf( stderr, " period=%d,", req->period );
2127 fprintf( stderr, " callback=%p,", req->callback );
2128 fprintf( stderr, " arg=%p", req->arg );
2131 static void dump_set_timer_reply( const struct set_timer_reply *req )
2133 fprintf( stderr, " signaled=%d", req->signaled );
2136 static void dump_cancel_timer_request( const struct cancel_timer_request *req )
2138 fprintf( stderr, " handle=%p", req->handle );
2141 static void dump_cancel_timer_reply( const struct cancel_timer_reply *req )
2143 fprintf( stderr, " signaled=%d", req->signaled );
2146 static void dump_get_timer_info_request( const struct get_timer_info_request *req )
2148 fprintf( stderr, " handle=%p", req->handle );
2151 static void dump_get_timer_info_reply( const struct get_timer_info_reply *req )
2153 fprintf( stderr, " when=" );
2154 dump_timeout( &req->when );
2155 fprintf( stderr, "," );
2156 fprintf( stderr, " signaled=%d", req->signaled );
2159 static void dump_get_thread_context_request( const struct get_thread_context_request *req )
2161 fprintf( stderr, " handle=%p,", req->handle );
2162 fprintf( stderr, " flags=%08x,", req->flags );
2163 fprintf( stderr, " suspend=%d", req->suspend );
2166 static void dump_get_thread_context_reply( const struct get_thread_context_reply *req )
2168 fprintf( stderr, " self=%d,", req->self );
2169 fprintf( stderr, " context=" );
2170 dump_varargs_context( cur_size );
2173 static void dump_set_thread_context_request( const struct set_thread_context_request *req )
2175 fprintf( stderr, " handle=%p,", req->handle );
2176 fprintf( stderr, " flags=%08x,", req->flags );
2177 fprintf( stderr, " suspend=%d,", req->suspend );
2178 fprintf( stderr, " context=" );
2179 dump_varargs_context( cur_size );
2182 static void dump_set_thread_context_reply( const struct set_thread_context_reply *req )
2184 fprintf( stderr, " self=%d", req->self );
2187 static void dump_get_selector_entry_request( const struct get_selector_entry_request *req )
2189 fprintf( stderr, " handle=%p,", req->handle );
2190 fprintf( stderr, " entry=%d", req->entry );
2193 static void dump_get_selector_entry_reply( const struct get_selector_entry_reply *req )
2195 fprintf( stderr, " base=%08x,", req->base );
2196 fprintf( stderr, " limit=%08x,", req->limit );
2197 fprintf( stderr, " flags=%02x", req->flags );
2200 static void dump_add_atom_request( const struct add_atom_request *req )
2202 fprintf( stderr, " table=%p,", req->table );
2203 fprintf( stderr, " name=" );
2204 dump_varargs_unicode_str( cur_size );
2207 static void dump_add_atom_reply( const struct add_atom_reply *req )
2209 fprintf( stderr, " atom=%04x", req->atom );
2212 static void dump_delete_atom_request( const struct delete_atom_request *req )
2214 fprintf( stderr, " table=%p,", req->table );
2215 fprintf( stderr, " atom=%04x", req->atom );
2218 static void dump_find_atom_request( const struct find_atom_request *req )
2220 fprintf( stderr, " table=%p,", req->table );
2221 fprintf( stderr, " name=" );
2222 dump_varargs_unicode_str( cur_size );
2225 static void dump_find_atom_reply( const struct find_atom_reply *req )
2227 fprintf( stderr, " atom=%04x", req->atom );
2230 static void dump_get_atom_information_request( const struct get_atom_information_request *req )
2232 fprintf( stderr, " table=%p,", req->table );
2233 fprintf( stderr, " atom=%04x", req->atom );
2236 static void dump_get_atom_information_reply( const struct get_atom_information_reply *req )
2238 fprintf( stderr, " count=%d,", req->count );
2239 fprintf( stderr, " pinned=%d,", req->pinned );
2240 fprintf( stderr, " total=%u,", req->total );
2241 fprintf( stderr, " name=" );
2242 dump_varargs_unicode_str( cur_size );
2245 static void dump_set_atom_information_request( const struct set_atom_information_request *req )
2247 fprintf( stderr, " table=%p,", req->table );
2248 fprintf( stderr, " atom=%04x,", req->atom );
2249 fprintf( stderr, " pinned=%d", req->pinned );
2252 static void dump_empty_atom_table_request( const struct empty_atom_table_request *req )
2254 fprintf( stderr, " table=%p,", req->table );
2255 fprintf( stderr, " if_pinned=%d", req->if_pinned );
2258 static void dump_init_atom_table_request( const struct init_atom_table_request *req )
2260 fprintf( stderr, " entries=%d", req->entries );
2263 static void dump_init_atom_table_reply( const struct init_atom_table_reply *req )
2265 fprintf( stderr, " table=%p", req->table );
2268 static void dump_get_msg_queue_request( const struct get_msg_queue_request *req )
2272 static void dump_get_msg_queue_reply( const struct get_msg_queue_reply *req )
2274 fprintf( stderr, " handle=%p", req->handle );
2277 static void dump_set_queue_fd_request( const struct set_queue_fd_request *req )
2279 fprintf( stderr, " handle=%p", req->handle );
2282 static void dump_set_queue_mask_request( const struct set_queue_mask_request *req )
2284 fprintf( stderr, " wake_mask=%08x,", req->wake_mask );
2285 fprintf( stderr, " changed_mask=%08x,", req->changed_mask );
2286 fprintf( stderr, " skip_wait=%d", req->skip_wait );
2289 static void dump_set_queue_mask_reply( const struct set_queue_mask_reply *req )
2291 fprintf( stderr, " wake_bits=%08x,", req->wake_bits );
2292 fprintf( stderr, " changed_bits=%08x", req->changed_bits );
2295 static void dump_get_queue_status_request( const struct get_queue_status_request *req )
2297 fprintf( stderr, " clear=%d", req->clear );
2300 static void dump_get_queue_status_reply( const struct get_queue_status_reply *req )
2302 fprintf( stderr, " wake_bits=%08x,", req->wake_bits );
2303 fprintf( stderr, " changed_bits=%08x", req->changed_bits );
2306 static void dump_get_process_idle_event_request( const struct get_process_idle_event_request *req )
2308 fprintf( stderr, " handle=%p", req->handle );
2311 static void dump_get_process_idle_event_reply( const struct get_process_idle_event_reply *req )
2313 fprintf( stderr, " event=%p", req->event );
2316 static void dump_send_message_request( const struct send_message_request *req )
2318 fprintf( stderr, " id=%04x,", req->id );
2319 fprintf( stderr, " type=%d,", req->type );
2320 fprintf( stderr, " flags=%d,", req->flags );
2321 fprintf( stderr, " win=%p,", req->win );
2322 fprintf( stderr, " msg=%08x,", req->msg );
2323 fprintf( stderr, " wparam=%lx,", req->wparam );
2324 fprintf( stderr, " lparam=%lx,", req->lparam );
2325 fprintf( stderr, " timeout=" );
2326 dump_timeout( &req->timeout );
2327 fprintf( stderr, "," );
2328 fprintf( stderr, " data=" );
2329 dump_varargs_message_data( cur_size );
2332 static void dump_post_quit_message_request( const struct post_quit_message_request *req )
2334 fprintf( stderr, " exit_code=%d", req->exit_code );
2337 static void dump_send_hardware_message_request( const struct send_hardware_message_request *req )
2339 fprintf( stderr, " id=%04x,", req->id );
2340 fprintf( stderr, " win=%p,", req->win );
2341 fprintf( stderr, " msg=%08x,", req->msg );
2342 fprintf( stderr, " time=%08x,", req->time );
2343 fprintf( stderr, " wparam=%lx,", req->wparam );
2344 fprintf( stderr, " lparam=%lx,", req->lparam );
2345 fprintf( stderr, " info=%lx,", req->info );
2346 fprintf( stderr, " x=%d,", req->x );
2347 fprintf( stderr, " y=%d", req->y );
2350 static void dump_get_message_request( const struct get_message_request *req )
2352 fprintf( stderr, " flags=%08x,", req->flags );
2353 fprintf( stderr, " get_win=%p,", req->get_win );
2354 fprintf( stderr, " get_first=%08x,", req->get_first );
2355 fprintf( stderr, " get_last=%08x,", req->get_last );
2356 fprintf( stderr, " hw_id=%08x,", req->hw_id );
2357 fprintf( stderr, " wake_mask=%08x,", req->wake_mask );
2358 fprintf( stderr, " changed_mask=%08x", req->changed_mask );
2361 static void dump_get_message_reply( const struct get_message_reply *req )
2363 fprintf( stderr, " win=%p,", req->win );
2364 fprintf( stderr, " type=%d,", req->type );
2365 fprintf( stderr, " msg=%08x,", req->msg );
2366 fprintf( stderr, " wparam=%lx,", req->wparam );
2367 fprintf( stderr, " lparam=%lx,", req->lparam );
2368 fprintf( stderr, " info=%lx,", req->info );
2369 fprintf( stderr, " x=%d,", req->x );
2370 fprintf( stderr, " y=%d,", req->y );
2371 fprintf( stderr, " time=%08x,", req->time );
2372 fprintf( stderr, " hw_id=%08x,", req->hw_id );
2373 fprintf( stderr, " active_hooks=%08x,", req->active_hooks );
2374 fprintf( stderr, " total=%u,", req->total );
2375 fprintf( stderr, " data=" );
2376 dump_varargs_message_data( cur_size );
2379 static void dump_reply_message_request( const struct reply_message_request *req )
2381 fprintf( stderr, " result=%lx,", req->result );
2382 fprintf( stderr, " remove=%d,", req->remove );
2383 fprintf( stderr, " data=" );
2384 dump_varargs_bytes( cur_size );
2387 static void dump_accept_hardware_message_request( const struct accept_hardware_message_request *req )
2389 fprintf( stderr, " hw_id=%08x,", req->hw_id );
2390 fprintf( stderr, " remove=%d,", req->remove );
2391 fprintf( stderr, " new_win=%p", req->new_win );
2394 static void dump_get_message_reply_request( const struct get_message_reply_request *req )
2396 fprintf( stderr, " cancel=%d", req->cancel );
2399 static void dump_get_message_reply_reply( const struct get_message_reply_reply *req )
2401 fprintf( stderr, " result=%lx,", req->result );
2402 fprintf( stderr, " data=" );
2403 dump_varargs_bytes( cur_size );
2406 static void dump_set_win_timer_request( const struct set_win_timer_request *req )
2408 fprintf( stderr, " win=%p,", req->win );
2409 fprintf( stderr, " msg=%08x,", req->msg );
2410 fprintf( stderr, " rate=%08x,", req->rate );
2411 fprintf( stderr, " id=%lx,", req->id );
2412 fprintf( stderr, " lparam=%lx", req->lparam );
2415 static void dump_set_win_timer_reply( const struct set_win_timer_reply *req )
2417 fprintf( stderr, " id=%lx", req->id );
2420 static void dump_kill_win_timer_request( const struct kill_win_timer_request *req )
2422 fprintf( stderr, " win=%p,", req->win );
2423 fprintf( stderr, " msg=%08x,", req->msg );
2424 fprintf( stderr, " id=%lx", req->id );
2427 static void dump_is_window_hung_request( const struct is_window_hung_request *req )
2429 fprintf( stderr, " win=%p", req->win );
2432 static void dump_is_window_hung_reply( const struct is_window_hung_reply *req )
2434 fprintf( stderr, " is_hung=%d", req->is_hung );
2437 static void dump_get_serial_info_request( const struct get_serial_info_request *req )
2439 fprintf( stderr, " handle=%p", req->handle );
2442 static void dump_get_serial_info_reply( const struct get_serial_info_reply *req )
2444 fprintf( stderr, " readinterval=%08x,", req->readinterval );
2445 fprintf( stderr, " readconst=%08x,", req->readconst );
2446 fprintf( stderr, " readmult=%08x,", req->readmult );
2447 fprintf( stderr, " writeconst=%08x,", req->writeconst );
2448 fprintf( stderr, " writemult=%08x,", req->writemult );
2449 fprintf( stderr, " eventmask=%08x", req->eventmask );
2452 static void dump_set_serial_info_request( const struct set_serial_info_request *req )
2454 fprintf( stderr, " handle=%p,", req->handle );
2455 fprintf( stderr, " flags=%d,", req->flags );
2456 fprintf( stderr, " readinterval=%08x,", req->readinterval );
2457 fprintf( stderr, " readconst=%08x,", req->readconst );
2458 fprintf( stderr, " readmult=%08x,", req->readmult );
2459 fprintf( stderr, " writeconst=%08x,", req->writeconst );
2460 fprintf( stderr, " writemult=%08x,", req->writemult );
2461 fprintf( stderr, " eventmask=%08x", req->eventmask );
2464 static void dump_register_async_request( const struct register_async_request *req )
2466 fprintf( stderr, " handle=%p,", req->handle );
2467 fprintf( stderr, " type=%d,", req->type );
2468 fprintf( stderr, " count=%d,", req->count );
2469 fprintf( stderr, " async=" );
2470 dump_async_data( &req->async );
2473 static void dump_cancel_async_request( const struct cancel_async_request *req )
2475 fprintf( stderr, " handle=%p", req->handle );
2478 static void dump_ioctl_request( const struct ioctl_request *req )
2480 fprintf( stderr, " handle=%p,", req->handle );
2481 fprintf( stderr, " code=" );
2482 dump_ioctl_code( &req->code );
2483 fprintf( stderr, "," );
2484 fprintf( stderr, " async=" );
2485 dump_async_data( &req->async );
2486 fprintf( stderr, "," );
2487 fprintf( stderr, " in_data=" );
2488 dump_varargs_bytes( cur_size );
2491 static void dump_ioctl_reply( const struct ioctl_reply *req )
2493 fprintf( stderr, " wait=%p,", req->wait );
2494 fprintf( stderr, " options=%08x,", req->options );
2495 fprintf( stderr, " out_data=" );
2496 dump_varargs_bytes( cur_size );
2499 static void dump_get_ioctl_result_request( const struct get_ioctl_result_request *req )
2501 fprintf( stderr, " handle=%p,", req->handle );
2502 fprintf( stderr, " user_arg=%p", req->user_arg );
2505 static void dump_get_ioctl_result_reply( const struct get_ioctl_result_reply *req )
2507 fprintf( stderr, " out_data=" );
2508 dump_varargs_bytes( cur_size );
2511 static void dump_create_named_pipe_request( const struct create_named_pipe_request *req )
2513 fprintf( stderr, " access=%08x,", req->access );
2514 fprintf( stderr, " attributes=%08x,", req->attributes );
2515 fprintf( stderr, " rootdir=%p,", req->rootdir );
2516 fprintf( stderr, " options=%08x,", req->options );
2517 fprintf( stderr, " flags=%08x,", req->flags );
2518 fprintf( stderr, " maxinstances=%08x,", req->maxinstances );
2519 fprintf( stderr, " outsize=%08x,", req->outsize );
2520 fprintf( stderr, " insize=%08x,", req->insize );
2521 fprintf( stderr, " timeout=" );
2522 dump_timeout( &req->timeout );
2523 fprintf( stderr, "," );
2524 fprintf( stderr, " name=" );
2525 dump_varargs_unicode_str( cur_size );
2528 static void dump_create_named_pipe_reply( const struct create_named_pipe_reply *req )
2530 fprintf( stderr, " handle=%p", req->handle );
2533 static void dump_get_named_pipe_info_request( const struct get_named_pipe_info_request *req )
2535 fprintf( stderr, " handle=%p", req->handle );
2538 static void dump_get_named_pipe_info_reply( const struct get_named_pipe_info_reply *req )
2540 fprintf( stderr, " flags=%08x,", req->flags );
2541 fprintf( stderr, " maxinstances=%08x,", req->maxinstances );
2542 fprintf( stderr, " instances=%08x,", req->instances );
2543 fprintf( stderr, " outsize=%08x,", req->outsize );
2544 fprintf( stderr, " insize=%08x", req->insize );
2547 static void dump_create_window_request( const struct create_window_request *req )
2549 fprintf( stderr, " parent=%p,", req->parent );
2550 fprintf( stderr, " owner=%p,", req->owner );
2551 fprintf( stderr, " atom=%04x,", req->atom );
2552 fprintf( stderr, " instance=%p,", req->instance );
2553 fprintf( stderr, " class=" );
2554 dump_varargs_unicode_str( cur_size );
2557 static void dump_create_window_reply( const struct create_window_reply *req )
2559 fprintf( stderr, " handle=%p,", req->handle );
2560 fprintf( stderr, " parent=%p,", req->parent );
2561 fprintf( stderr, " owner=%p,", req->owner );
2562 fprintf( stderr, " extra=%d,", req->extra );
2563 fprintf( stderr, " class_ptr=%p", req->class_ptr );
2566 static void dump_destroy_window_request( const struct destroy_window_request *req )
2568 fprintf( stderr, " handle=%p", req->handle );
2571 static void dump_get_desktop_window_request( const struct get_desktop_window_request *req )
2573 fprintf( stderr, " force=%d", req->force );
2576 static void dump_get_desktop_window_reply( const struct get_desktop_window_reply *req )
2578 fprintf( stderr, " top_window=%p,", req->top_window );
2579 fprintf( stderr, " msg_window=%p", req->msg_window );
2582 static void dump_set_window_owner_request( const struct set_window_owner_request *req )
2584 fprintf( stderr, " handle=%p,", req->handle );
2585 fprintf( stderr, " owner=%p", req->owner );
2588 static void dump_set_window_owner_reply( const struct set_window_owner_reply *req )
2590 fprintf( stderr, " full_owner=%p,", req->full_owner );
2591 fprintf( stderr, " prev_owner=%p", req->prev_owner );
2594 static void dump_get_window_info_request( const struct get_window_info_request *req )
2596 fprintf( stderr, " handle=%p", req->handle );
2599 static void dump_get_window_info_reply( const struct get_window_info_reply *req )
2601 fprintf( stderr, " full_handle=%p,", req->full_handle );
2602 fprintf( stderr, " last_active=%p,", req->last_active );
2603 fprintf( stderr, " pid=%04x,", req->pid );
2604 fprintf( stderr, " tid=%04x,", req->tid );
2605 fprintf( stderr, " atom=%04x,", req->atom );
2606 fprintf( stderr, " is_unicode=%d", req->is_unicode );
2609 static void dump_set_window_info_request( const struct set_window_info_request *req )
2611 fprintf( stderr, " flags=%08x,", req->flags );
2612 fprintf( stderr, " handle=%p,", req->handle );
2613 fprintf( stderr, " style=%08x,", req->style );
2614 fprintf( stderr, " ex_style=%08x,", req->ex_style );
2615 fprintf( stderr, " id=%08x,", req->id );
2616 fprintf( stderr, " is_unicode=%d,", req->is_unicode );
2617 fprintf( stderr, " instance=%p,", req->instance );
2618 fprintf( stderr, " user_data=%lx,", req->user_data );
2619 fprintf( stderr, " extra_offset=%d,", req->extra_offset );
2620 fprintf( stderr, " extra_size=%u,", req->extra_size );
2621 fprintf( stderr, " extra_value=%lx", req->extra_value );
2624 static void dump_set_window_info_reply( const struct set_window_info_reply *req )
2626 fprintf( stderr, " old_style=%08x,", req->old_style );
2627 fprintf( stderr, " old_ex_style=%08x,", req->old_ex_style );
2628 fprintf( stderr, " old_id=%08x,", req->old_id );
2629 fprintf( stderr, " old_instance=%p,", req->old_instance );
2630 fprintf( stderr, " old_user_data=%lx,", req->old_user_data );
2631 fprintf( stderr, " old_extra_value=%lx", req->old_extra_value );
2634 static void dump_set_parent_request( const struct set_parent_request *req )
2636 fprintf( stderr, " handle=%p,", req->handle );
2637 fprintf( stderr, " parent=%p", req->parent );
2640 static void dump_set_parent_reply( const struct set_parent_reply *req )
2642 fprintf( stderr, " old_parent=%p,", req->old_parent );
2643 fprintf( stderr, " full_parent=%p", req->full_parent );
2646 static void dump_get_window_parents_request( const struct get_window_parents_request *req )
2648 fprintf( stderr, " handle=%p", req->handle );
2651 static void dump_get_window_parents_reply( const struct get_window_parents_reply *req )
2653 fprintf( stderr, " count=%d,", req->count );
2654 fprintf( stderr, " parents=" );
2655 dump_varargs_user_handles( cur_size );
2658 static void dump_get_window_children_request( const struct get_window_children_request *req )
2660 fprintf( stderr, " desktop=%p,", req->desktop );
2661 fprintf( stderr, " parent=%p,", req->parent );
2662 fprintf( stderr, " atom=%04x,", req->atom );
2663 fprintf( stderr, " tid=%04x,", req->tid );
2664 fprintf( stderr, " class=" );
2665 dump_varargs_unicode_str( cur_size );
2668 static void dump_get_window_children_reply( const struct get_window_children_reply *req )
2670 fprintf( stderr, " count=%d,", req->count );
2671 fprintf( stderr, " children=" );
2672 dump_varargs_user_handles( cur_size );
2675 static void dump_get_window_children_from_point_request( const struct get_window_children_from_point_request *req )
2677 fprintf( stderr, " parent=%p,", req->parent );
2678 fprintf( stderr, " x=%d,", req->x );
2679 fprintf( stderr, " y=%d", req->y );
2682 static void dump_get_window_children_from_point_reply( const struct get_window_children_from_point_reply *req )
2684 fprintf( stderr, " count=%d,", req->count );
2685 fprintf( stderr, " children=" );
2686 dump_varargs_user_handles( cur_size );
2689 static void dump_get_window_tree_request( const struct get_window_tree_request *req )
2691 fprintf( stderr, " handle=%p", req->handle );
2694 static void dump_get_window_tree_reply( const struct get_window_tree_reply *req )
2696 fprintf( stderr, " parent=%p,", req->parent );
2697 fprintf( stderr, " owner=%p,", req->owner );
2698 fprintf( stderr, " next_sibling=%p,", req->next_sibling );
2699 fprintf( stderr, " prev_sibling=%p,", req->prev_sibling );
2700 fprintf( stderr, " first_sibling=%p,", req->first_sibling );
2701 fprintf( stderr, " last_sibling=%p,", req->last_sibling );
2702 fprintf( stderr, " first_child=%p,", req->first_child );
2703 fprintf( stderr, " last_child=%p", req->last_child );
2706 static void dump_set_window_pos_request( const struct set_window_pos_request *req )
2708 fprintf( stderr, " flags=%08x,", req->flags );
2709 fprintf( stderr, " handle=%p,", req->handle );
2710 fprintf( stderr, " previous=%p,", req->previous );
2711 fprintf( stderr, " window=" );
2712 dump_rectangle( &req->window );
2713 fprintf( stderr, "," );
2714 fprintf( stderr, " client=" );
2715 dump_rectangle( &req->client );
2716 fprintf( stderr, "," );
2717 fprintf( stderr, " valid=" );
2718 dump_varargs_rectangles( cur_size );
2721 static void dump_set_window_pos_reply( const struct set_window_pos_reply *req )
2723 fprintf( stderr, " new_style=%08x,", req->new_style );
2724 fprintf( stderr, " new_ex_style=%08x", req->new_ex_style );
2727 static void dump_get_window_rectangles_request( const struct get_window_rectangles_request *req )
2729 fprintf( stderr, " handle=%p", req->handle );
2732 static void dump_get_window_rectangles_reply( const struct get_window_rectangles_reply *req )
2734 fprintf( stderr, " window=" );
2735 dump_rectangle( &req->window );
2736 fprintf( stderr, "," );
2737 fprintf( stderr, " visible=" );
2738 dump_rectangle( &req->visible );
2739 fprintf( stderr, "," );
2740 fprintf( stderr, " client=" );
2741 dump_rectangle( &req->client );
2744 static void dump_get_window_text_request( const struct get_window_text_request *req )
2746 fprintf( stderr, " handle=%p", req->handle );
2749 static void dump_get_window_text_reply( const struct get_window_text_reply *req )
2751 fprintf( stderr, " text=" );
2752 dump_varargs_unicode_str( cur_size );
2755 static void dump_set_window_text_request( const struct set_window_text_request *req )
2757 fprintf( stderr, " handle=%p,", req->handle );
2758 fprintf( stderr, " text=" );
2759 dump_varargs_unicode_str( cur_size );
2762 static void dump_get_windows_offset_request( const struct get_windows_offset_request *req )
2764 fprintf( stderr, " from=%p,", req->from );
2765 fprintf( stderr, " to=%p", req->to );
2768 static void dump_get_windows_offset_reply( const struct get_windows_offset_reply *req )
2770 fprintf( stderr, " x=%d,", req->x );
2771 fprintf( stderr, " y=%d", req->y );
2774 static void dump_get_visible_region_request( const struct get_visible_region_request *req )
2776 fprintf( stderr, " window=%p,", req->window );
2777 fprintf( stderr, " flags=%08x", req->flags );
2780 static void dump_get_visible_region_reply( const struct get_visible_region_reply *req )
2782 fprintf( stderr, " top_win=%p,", req->top_win );
2783 fprintf( stderr, " top_rect=" );
2784 dump_rectangle( &req->top_rect );
2785 fprintf( stderr, "," );
2786 fprintf( stderr, " win_rect=" );
2787 dump_rectangle( &req->win_rect );
2788 fprintf( stderr, "," );
2789 fprintf( stderr, " total_size=%u,", req->total_size );
2790 fprintf( stderr, " region=" );
2791 dump_varargs_rectangles( cur_size );
2794 static void dump_get_window_region_request( const struct get_window_region_request *req )
2796 fprintf( stderr, " window=%p", req->window );
2799 static void dump_get_window_region_reply( const struct get_window_region_reply *req )
2801 fprintf( stderr, " total_size=%u,", req->total_size );
2802 fprintf( stderr, " region=" );
2803 dump_varargs_rectangles( cur_size );
2806 static void dump_set_window_region_request( const struct set_window_region_request *req )
2808 fprintf( stderr, " window=%p,", req->window );
2809 fprintf( stderr, " redraw=%d,", req->redraw );
2810 fprintf( stderr, " region=" );
2811 dump_varargs_rectangles( cur_size );
2814 static void dump_get_update_region_request( const struct get_update_region_request *req )
2816 fprintf( stderr, " window=%p,", req->window );
2817 fprintf( stderr, " from_child=%p,", req->from_child );
2818 fprintf( stderr, " flags=%08x", req->flags );
2821 static void dump_get_update_region_reply( const struct get_update_region_reply *req )
2823 fprintf( stderr, " child=%p,", req->child );
2824 fprintf( stderr, " flags=%08x,", req->flags );
2825 fprintf( stderr, " total_size=%u,", req->total_size );
2826 fprintf( stderr, " region=" );
2827 dump_varargs_rectangles( cur_size );
2830 static void dump_update_window_zorder_request( const struct update_window_zorder_request *req )
2832 fprintf( stderr, " window=%p,", req->window );
2833 fprintf( stderr, " rect=" );
2834 dump_rectangle( &req->rect );
2837 static void dump_redraw_window_request( const struct redraw_window_request *req )
2839 fprintf( stderr, " window=%p,", req->window );
2840 fprintf( stderr, " flags=%08x,", req->flags );
2841 fprintf( stderr, " region=" );
2842 dump_varargs_rectangles( cur_size );
2845 static void dump_set_window_property_request( const struct set_window_property_request *req )
2847 fprintf( stderr, " window=%p,", req->window );
2848 fprintf( stderr, " atom=%04x,", req->atom );
2849 fprintf( stderr, " handle=%p,", req->handle );
2850 fprintf( stderr, " name=" );
2851 dump_varargs_unicode_str( cur_size );
2854 static void dump_remove_window_property_request( const struct remove_window_property_request *req )
2856 fprintf( stderr, " window=%p,", req->window );
2857 fprintf( stderr, " atom=%04x,", req->atom );
2858 fprintf( stderr, " name=" );
2859 dump_varargs_unicode_str( cur_size );
2862 static void dump_remove_window_property_reply( const struct remove_window_property_reply *req )
2864 fprintf( stderr, " handle=%p", req->handle );
2867 static void dump_get_window_property_request( const struct get_window_property_request *req )
2869 fprintf( stderr, " window=%p,", req->window );
2870 fprintf( stderr, " atom=%04x,", req->atom );
2871 fprintf( stderr, " name=" );
2872 dump_varargs_unicode_str( cur_size );
2875 static void dump_get_window_property_reply( const struct get_window_property_reply *req )
2877 fprintf( stderr, " handle=%p", req->handle );
2880 static void dump_get_window_properties_request( const struct get_window_properties_request *req )
2882 fprintf( stderr, " window=%p", req->window );
2885 static void dump_get_window_properties_reply( const struct get_window_properties_reply *req )
2887 fprintf( stderr, " total=%d,", req->total );
2888 fprintf( stderr, " props=" );
2889 dump_varargs_properties( cur_size );
2892 static void dump_create_winstation_request( const struct create_winstation_request *req )
2894 fprintf( stderr, " flags=%08x,", req->flags );
2895 fprintf( stderr, " access=%08x,", req->access );
2896 fprintf( stderr, " attributes=%08x,", req->attributes );
2897 fprintf( stderr, " name=" );
2898 dump_varargs_unicode_str( cur_size );
2901 static void dump_create_winstation_reply( const struct create_winstation_reply *req )
2903 fprintf( stderr, " handle=%p", req->handle );
2906 static void dump_open_winstation_request( const struct open_winstation_request *req )
2908 fprintf( stderr, " access=%08x,", req->access );
2909 fprintf( stderr, " attributes=%08x,", req->attributes );
2910 fprintf( stderr, " name=" );
2911 dump_varargs_unicode_str( cur_size );
2914 static void dump_open_winstation_reply( const struct open_winstation_reply *req )
2916 fprintf( stderr, " handle=%p", req->handle );
2919 static void dump_close_winstation_request( const struct close_winstation_request *req )
2921 fprintf( stderr, " handle=%p", req->handle );
2924 static void dump_get_process_winstation_request( const struct get_process_winstation_request *req )
2928 static void dump_get_process_winstation_reply( const struct get_process_winstation_reply *req )
2930 fprintf( stderr, " handle=%p", req->handle );
2933 static void dump_set_process_winstation_request( const struct set_process_winstation_request *req )
2935 fprintf( stderr, " handle=%p", req->handle );
2938 static void dump_enum_winstation_request( const struct enum_winstation_request *req )
2940 fprintf( stderr, " index=%08x", req->index );
2943 static void dump_enum_winstation_reply( const struct enum_winstation_reply *req )
2945 fprintf( stderr, " next=%08x,", req->next );
2946 fprintf( stderr, " name=" );
2947 dump_varargs_unicode_str( cur_size );
2950 static void dump_create_desktop_request( const struct create_desktop_request *req )
2952 fprintf( stderr, " flags=%08x,", req->flags );
2953 fprintf( stderr, " access=%08x,", req->access );
2954 fprintf( stderr, " attributes=%08x,", req->attributes );
2955 fprintf( stderr, " name=" );
2956 dump_varargs_unicode_str( cur_size );
2959 static void dump_create_desktop_reply( const struct create_desktop_reply *req )
2961 fprintf( stderr, " handle=%p", req->handle );
2964 static void dump_open_desktop_request( const struct open_desktop_request *req )
2966 fprintf( stderr, " winsta=%p,", req->winsta );
2967 fprintf( stderr, " flags=%08x,", req->flags );
2968 fprintf( stderr, " access=%08x,", req->access );
2969 fprintf( stderr, " attributes=%08x,", req->attributes );
2970 fprintf( stderr, " name=" );
2971 dump_varargs_unicode_str( cur_size );
2974 static void dump_open_desktop_reply( const struct open_desktop_reply *req )
2976 fprintf( stderr, " handle=%p", req->handle );
2979 static void dump_close_desktop_request( const struct close_desktop_request *req )
2981 fprintf( stderr, " handle=%p", req->handle );
2984 static void dump_get_thread_desktop_request( const struct get_thread_desktop_request *req )
2986 fprintf( stderr, " tid=%04x", req->tid );
2989 static void dump_get_thread_desktop_reply( const struct get_thread_desktop_reply *req )
2991 fprintf( stderr, " handle=%p", req->handle );
2994 static void dump_set_thread_desktop_request( const struct set_thread_desktop_request *req )
2996 fprintf( stderr, " handle=%p", req->handle );
2999 static void dump_enum_desktop_request( const struct enum_desktop_request *req )
3001 fprintf( stderr, " winstation=%p,", req->winstation );
3002 fprintf( stderr, " index=%08x", req->index );
3005 static void dump_enum_desktop_reply( const struct enum_desktop_reply *req )
3007 fprintf( stderr, " next=%08x,", req->next );
3008 fprintf( stderr, " name=" );
3009 dump_varargs_unicode_str( cur_size );
3012 static void dump_set_user_object_info_request( const struct set_user_object_info_request *req )
3014 fprintf( stderr, " handle=%p,", req->handle );
3015 fprintf( stderr, " flags=%08x,", req->flags );
3016 fprintf( stderr, " obj_flags=%08x", req->obj_flags );
3019 static void dump_set_user_object_info_reply( const struct set_user_object_info_reply *req )
3021 fprintf( stderr, " is_desktop=%d,", req->is_desktop );
3022 fprintf( stderr, " old_obj_flags=%08x,", req->old_obj_flags );
3023 fprintf( stderr, " name=" );
3024 dump_varargs_unicode_str( cur_size );
3027 static void dump_attach_thread_input_request( const struct attach_thread_input_request *req )
3029 fprintf( stderr, " tid_from=%04x,", req->tid_from );
3030 fprintf( stderr, " tid_to=%04x,", req->tid_to );
3031 fprintf( stderr, " attach=%d", req->attach );
3034 static void dump_get_thread_input_request( const struct get_thread_input_request *req )
3036 fprintf( stderr, " tid=%04x", req->tid );
3039 static void dump_get_thread_input_reply( const struct get_thread_input_reply *req )
3041 fprintf( stderr, " focus=%p,", req->focus );
3042 fprintf( stderr, " capture=%p,", req->capture );
3043 fprintf( stderr, " active=%p,", req->active );
3044 fprintf( stderr, " foreground=%p,", req->foreground );
3045 fprintf( stderr, " menu_owner=%p,", req->menu_owner );
3046 fprintf( stderr, " move_size=%p,", req->move_size );
3047 fprintf( stderr, " caret=%p,", req->caret );
3048 fprintf( stderr, " rect=" );
3049 dump_rectangle( &req->rect );
3052 static void dump_get_last_input_time_request( const struct get_last_input_time_request *req )
3056 static void dump_get_last_input_time_reply( const struct get_last_input_time_reply *req )
3058 fprintf( stderr, " time=%08x", req->time );
3061 static void dump_get_key_state_request( const struct get_key_state_request *req )
3063 fprintf( stderr, " tid=%04x,", req->tid );
3064 fprintf( stderr, " key=%d", req->key );
3067 static void dump_get_key_state_reply( const struct get_key_state_reply *req )
3069 fprintf( stderr, " state=%02x,", req->state );
3070 fprintf( stderr, " keystate=" );
3071 dump_varargs_bytes( cur_size );
3074 static void dump_set_key_state_request( const struct set_key_state_request *req )
3076 fprintf( stderr, " tid=%04x,", req->tid );
3077 fprintf( stderr, " keystate=" );
3078 dump_varargs_bytes( cur_size );
3081 static void dump_set_foreground_window_request( const struct set_foreground_window_request *req )
3083 fprintf( stderr, " handle=%p", req->handle );
3086 static void dump_set_foreground_window_reply( const struct set_foreground_window_reply *req )
3088 fprintf( stderr, " previous=%p,", req->previous );
3089 fprintf( stderr, " send_msg_old=%d,", req->send_msg_old );
3090 fprintf( stderr, " send_msg_new=%d", req->send_msg_new );
3093 static void dump_set_focus_window_request( const struct set_focus_window_request *req )
3095 fprintf( stderr, " handle=%p", req->handle );
3098 static void dump_set_focus_window_reply( const struct set_focus_window_reply *req )
3100 fprintf( stderr, " previous=%p", req->previous );
3103 static void dump_set_active_window_request( const struct set_active_window_request *req )
3105 fprintf( stderr, " handle=%p", req->handle );
3108 static void dump_set_active_window_reply( const struct set_active_window_reply *req )
3110 fprintf( stderr, " previous=%p", req->previous );
3113 static void dump_set_capture_window_request( const struct set_capture_window_request *req )
3115 fprintf( stderr, " handle=%p,", req->handle );
3116 fprintf( stderr, " flags=%08x", req->flags );
3119 static void dump_set_capture_window_reply( const struct set_capture_window_reply *req )
3121 fprintf( stderr, " previous=%p,", req->previous );
3122 fprintf( stderr, " full_handle=%p", req->full_handle );
3125 static void dump_set_caret_window_request( const struct set_caret_window_request *req )
3127 fprintf( stderr, " handle=%p,", req->handle );
3128 fprintf( stderr, " width=%d,", req->width );
3129 fprintf( stderr, " height=%d", req->height );
3132 static void dump_set_caret_window_reply( const struct set_caret_window_reply *req )
3134 fprintf( stderr, " previous=%p,", req->previous );
3135 fprintf( stderr, " old_rect=" );
3136 dump_rectangle( &req->old_rect );
3137 fprintf( stderr, "," );
3138 fprintf( stderr, " old_hide=%d,", req->old_hide );
3139 fprintf( stderr, " old_state=%d", req->old_state );
3142 static void dump_set_caret_info_request( const struct set_caret_info_request *req )
3144 fprintf( stderr, " flags=%08x,", req->flags );
3145 fprintf( stderr, " handle=%p,", req->handle );
3146 fprintf( stderr, " x=%d,", req->x );
3147 fprintf( stderr, " y=%d,", req->y );
3148 fprintf( stderr, " hide=%d,", req->hide );
3149 fprintf( stderr, " state=%d", req->state );
3152 static void dump_set_caret_info_reply( const struct set_caret_info_reply *req )
3154 fprintf( stderr, " full_handle=%p,", req->full_handle );
3155 fprintf( stderr, " old_rect=" );
3156 dump_rectangle( &req->old_rect );
3157 fprintf( stderr, "," );
3158 fprintf( stderr, " old_hide=%d,", req->old_hide );
3159 fprintf( stderr, " old_state=%d", req->old_state );
3162 static void dump_set_hook_request( const struct set_hook_request *req )
3164 fprintf( stderr, " id=%d,", req->id );
3165 fprintf( stderr, " pid=%04x,", req->pid );
3166 fprintf( stderr, " tid=%04x,", req->tid );
3167 fprintf( stderr, " event_min=%d,", req->event_min );
3168 fprintf( stderr, " event_max=%d,", req->event_max );
3169 fprintf( stderr, " flags=%d,", req->flags );
3170 fprintf( stderr, " proc=%p,", req->proc );
3171 fprintf( stderr, " unicode=%d,", req->unicode );
3172 fprintf( stderr, " module=" );
3173 dump_varargs_unicode_str( cur_size );
3176 static void dump_set_hook_reply( const struct set_hook_reply *req )
3178 fprintf( stderr, " handle=%p,", req->handle );
3179 fprintf( stderr, " active_hooks=%08x", req->active_hooks );
3182 static void dump_remove_hook_request( const struct remove_hook_request *req )
3184 fprintf( stderr, " handle=%p,", req->handle );
3185 fprintf( stderr, " id=%d,", req->id );
3186 fprintf( stderr, " proc=%p", req->proc );
3189 static void dump_remove_hook_reply( const struct remove_hook_reply *req )
3191 fprintf( stderr, " active_hooks=%08x", req->active_hooks );
3194 static void dump_start_hook_chain_request( const struct start_hook_chain_request *req )
3196 fprintf( stderr, " id=%d,", req->id );
3197 fprintf( stderr, " event=%d,", req->event );
3198 fprintf( stderr, " window=%p,", req->window );
3199 fprintf( stderr, " object_id=%d,", req->object_id );
3200 fprintf( stderr, " child_id=%d", req->child_id );
3203 static void dump_start_hook_chain_reply( const struct start_hook_chain_reply *req )
3205 fprintf( stderr, " handle=%p,", req->handle );
3206 fprintf( stderr, " pid=%04x,", req->pid );
3207 fprintf( stderr, " tid=%04x,", req->tid );
3208 fprintf( stderr, " proc=%p,", req->proc );
3209 fprintf( stderr, " unicode=%d,", req->unicode );
3210 fprintf( stderr, " active_hooks=%08x,", req->active_hooks );
3211 fprintf( stderr, " module=" );
3212 dump_varargs_unicode_str( cur_size );
3215 static void dump_finish_hook_chain_request( const struct finish_hook_chain_request *req )
3217 fprintf( stderr, " id=%d", req->id );
3220 static void dump_get_hook_info_request( const struct get_hook_info_request *req )
3222 fprintf( stderr, " handle=%p,", req->handle );
3223 fprintf( stderr, " get_next=%d,", req->get_next );
3224 fprintf( stderr, " event=%d,", req->event );
3225 fprintf( stderr, " window=%p,", req->window );
3226 fprintf( stderr, " object_id=%d,", req->object_id );
3227 fprintf( stderr, " child_id=%d", req->child_id );
3230 static void dump_get_hook_info_reply( const struct get_hook_info_reply *req )
3232 fprintf( stderr, " handle=%p,", req->handle );
3233 fprintf( stderr, " id=%d,", req->id );
3234 fprintf( stderr, " pid=%04x,", req->pid );
3235 fprintf( stderr, " tid=%04x,", req->tid );
3236 fprintf( stderr, " proc=%p,", req->proc );
3237 fprintf( stderr, " unicode=%d,", req->unicode );
3238 fprintf( stderr, " module=" );
3239 dump_varargs_unicode_str( cur_size );
3242 static void dump_create_class_request( const struct create_class_request *req )
3244 fprintf( stderr, " local=%d,", req->local );
3245 fprintf( stderr, " atom=%04x,", req->atom );
3246 fprintf( stderr, " style=%08x,", req->style );
3247 fprintf( stderr, " instance=%p,", req->instance );
3248 fprintf( stderr, " extra=%d,", req->extra );
3249 fprintf( stderr, " win_extra=%d,", req->win_extra );
3250 fprintf( stderr, " client_ptr=%p,", req->client_ptr );
3251 fprintf( stderr, " name=" );
3252 dump_varargs_unicode_str( cur_size );
3255 static void dump_create_class_reply( const struct create_class_reply *req )
3257 fprintf( stderr, " atom=%04x", req->atom );
3260 static void dump_destroy_class_request( const struct destroy_class_request *req )
3262 fprintf( stderr, " atom=%04x,", req->atom );
3263 fprintf( stderr, " instance=%p,", req->instance );
3264 fprintf( stderr, " name=" );
3265 dump_varargs_unicode_str( cur_size );
3268 static void dump_destroy_class_reply( const struct destroy_class_reply *req )
3270 fprintf( stderr, " client_ptr=%p", req->client_ptr );
3273 static void dump_set_class_info_request( const struct set_class_info_request *req )
3275 fprintf( stderr, " window=%p,", req->window );
3276 fprintf( stderr, " flags=%08x,", req->flags );
3277 fprintf( stderr, " atom=%04x,", req->atom );
3278 fprintf( stderr, " style=%08x,", req->style );
3279 fprintf( stderr, " win_extra=%d,", req->win_extra );
3280 fprintf( stderr, " instance=%p,", req->instance );
3281 fprintf( stderr, " extra_offset=%d,", req->extra_offset );
3282 fprintf( stderr, " extra_size=%u,", req->extra_size );
3283 fprintf( stderr, " extra_value=%lx", req->extra_value );
3286 static void dump_set_class_info_reply( const struct set_class_info_reply *req )
3288 fprintf( stderr, " old_atom=%04x,", req->old_atom );
3289 fprintf( stderr, " old_style=%08x,", req->old_style );
3290 fprintf( stderr, " old_extra=%d,", req->old_extra );
3291 fprintf( stderr, " old_win_extra=%d,", req->old_win_extra );
3292 fprintf( stderr, " old_instance=%p,", req->old_instance );
3293 fprintf( stderr, " old_extra_value=%lx", req->old_extra_value );
3296 static void dump_set_clipboard_info_request( const struct set_clipboard_info_request *req )
3298 fprintf( stderr, " flags=%08x,", req->flags );
3299 fprintf( stderr, " clipboard=%p,", req->clipboard );
3300 fprintf( stderr, " owner=%p,", req->owner );
3301 fprintf( stderr, " viewer=%p,", req->viewer );
3302 fprintf( stderr, " seqno=%08x", req->seqno );
3305 static void dump_set_clipboard_info_reply( const struct set_clipboard_info_reply *req )
3307 fprintf( stderr, " flags=%08x,", req->flags );
3308 fprintf( stderr, " old_clipboard=%p,", req->old_clipboard );
3309 fprintf( stderr, " old_owner=%p,", req->old_owner );
3310 fprintf( stderr, " old_viewer=%p,", req->old_viewer );
3311 fprintf( stderr, " seqno=%08x", req->seqno );
3314 static void dump_open_token_request( const struct open_token_request *req )
3316 fprintf( stderr, " handle=%p,", req->handle );
3317 fprintf( stderr, " access=%08x,", req->access );
3318 fprintf( stderr, " attributes=%08x,", req->attributes );
3319 fprintf( stderr, " flags=%08x", req->flags );
3322 static void dump_open_token_reply( const struct open_token_reply *req )
3324 fprintf( stderr, " token=%p", req->token );
3327 static void dump_set_global_windows_request( const struct set_global_windows_request *req )
3329 fprintf( stderr, " flags=%08x,", req->flags );
3330 fprintf( stderr, " shell_window=%p,", req->shell_window );
3331 fprintf( stderr, " shell_listview=%p,", req->shell_listview );
3332 fprintf( stderr, " progman_window=%p,", req->progman_window );
3333 fprintf( stderr, " taskman_window=%p", req->taskman_window );
3336 static void dump_set_global_windows_reply( const struct set_global_windows_reply *req )
3338 fprintf( stderr, " old_shell_window=%p,", req->old_shell_window );
3339 fprintf( stderr, " old_shell_listview=%p,", req->old_shell_listview );
3340 fprintf( stderr, " old_progman_window=%p,", req->old_progman_window );
3341 fprintf( stderr, " old_taskman_window=%p", req->old_taskman_window );
3344 static void dump_adjust_token_privileges_request( const struct adjust_token_privileges_request *req )
3346 fprintf( stderr, " handle=%p,", req->handle );
3347 fprintf( stderr, " disable_all=%d,", req->disable_all );
3348 fprintf( stderr, " get_modified_state=%d,", req->get_modified_state );
3349 fprintf( stderr, " privileges=" );
3350 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
3353 static void dump_adjust_token_privileges_reply( const struct adjust_token_privileges_reply *req )
3355 fprintf( stderr, " len=%08x,", req->len );
3356 fprintf( stderr, " privileges=" );
3357 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
3360 static void dump_get_token_privileges_request( const struct get_token_privileges_request *req )
3362 fprintf( stderr, " handle=%p", req->handle );
3365 static void dump_get_token_privileges_reply( const struct get_token_privileges_reply *req )
3367 fprintf( stderr, " len=%08x,", req->len );
3368 fprintf( stderr, " privileges=" );
3369 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
3372 static void dump_check_token_privileges_request( const struct check_token_privileges_request *req )
3374 fprintf( stderr, " handle=%p,", req->handle );
3375 fprintf( stderr, " all_required=%d,", req->all_required );
3376 fprintf( stderr, " privileges=" );
3377 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
3380 static void dump_check_token_privileges_reply( const struct check_token_privileges_reply *req )
3382 fprintf( stderr, " has_privileges=%d,", req->has_privileges );
3383 fprintf( stderr, " privileges=" );
3384 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
3387 static void dump_duplicate_token_request( const struct duplicate_token_request *req )
3389 fprintf( stderr, " handle=%p,", req->handle );
3390 fprintf( stderr, " access=%08x,", req->access );
3391 fprintf( stderr, " attributes=%08x,", req->attributes );
3392 fprintf( stderr, " primary=%d,", req->primary );
3393 fprintf( stderr, " impersonation_level=%d", req->impersonation_level );
3396 static void dump_duplicate_token_reply( const struct duplicate_token_reply *req )
3398 fprintf( stderr, " new_handle=%p", req->new_handle );
3401 static void dump_access_check_request( const struct access_check_request *req )
3403 fprintf( stderr, " handle=%p,", req->handle );
3404 fprintf( stderr, " desired_access=%08x,", req->desired_access );
3405 fprintf( stderr, " mapping_read=%08x,", req->mapping_read );
3406 fprintf( stderr, " mapping_write=%08x,", req->mapping_write );
3407 fprintf( stderr, " mapping_execute=%08x,", req->mapping_execute );
3408 fprintf( stderr, " mapping_all=%08x,", req->mapping_all );
3409 fprintf( stderr, " sd=" );
3410 dump_varargs_security_descriptor( cur_size );
3413 static void dump_access_check_reply( const struct access_check_reply *req )
3415 fprintf( stderr, " access_granted=%08x,", req->access_granted );
3416 fprintf( stderr, " access_status=%08x,", req->access_status );
3417 fprintf( stderr, " privileges_len=%08x,", req->privileges_len );
3418 fprintf( stderr, " privileges=" );
3419 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
3422 static void dump_get_token_user_request( const struct get_token_user_request *req )
3424 fprintf( stderr, " handle=%p", req->handle );
3427 static void dump_get_token_user_reply( const struct get_token_user_reply *req )
3429 fprintf( stderr, " user_len=%u,", req->user_len );
3430 fprintf( stderr, " user=" );
3431 dump_varargs_SID( cur_size );
3434 static void dump_get_token_groups_request( const struct get_token_groups_request *req )
3436 fprintf( stderr, " handle=%p", req->handle );
3439 static void dump_get_token_groups_reply( const struct get_token_groups_reply *req )
3441 fprintf( stderr, " user_len=%u,", req->user_len );
3442 fprintf( stderr, " user=" );
3443 dump_varargs_token_groups( cur_size );
3446 static void dump_set_security_object_request( const struct set_security_object_request *req )
3448 fprintf( stderr, " handle=%p,", req->handle );
3449 fprintf( stderr, " security_info=%08x,", req->security_info );
3450 fprintf( stderr, " sd=" );
3451 dump_varargs_security_descriptor( cur_size );
3454 static void dump_get_security_object_request( const struct get_security_object_request *req )
3456 fprintf( stderr, " handle=%p,", req->handle );
3457 fprintf( stderr, " security_info=%08x", req->security_info );
3460 static void dump_get_security_object_reply( const struct get_security_object_reply *req )
3462 fprintf( stderr, " sd_len=%08x,", req->sd_len );
3463 fprintf( stderr, " sd=" );
3464 dump_varargs_security_descriptor( cur_size );
3467 static void dump_create_mailslot_request( const struct create_mailslot_request *req )
3469 fprintf( stderr, " access=%08x,", req->access );
3470 fprintf( stderr, " attributes=%08x,", req->attributes );
3471 fprintf( stderr, " rootdir=%p,", req->rootdir );
3472 fprintf( stderr, " max_msgsize=%08x,", req->max_msgsize );
3473 fprintf( stderr, " read_timeout=" );
3474 dump_timeout( &req->read_timeout );
3475 fprintf( stderr, "," );
3476 fprintf( stderr, " name=" );
3477 dump_varargs_unicode_str( cur_size );
3480 static void dump_create_mailslot_reply( const struct create_mailslot_reply *req )
3482 fprintf( stderr, " handle=%p", req->handle );
3485 static void dump_set_mailslot_info_request( const struct set_mailslot_info_request *req )
3487 fprintf( stderr, " handle=%p,", req->handle );
3488 fprintf( stderr, " flags=%08x,", req->flags );
3489 fprintf( stderr, " read_timeout=" );
3490 dump_timeout( &req->read_timeout );
3493 static void dump_set_mailslot_info_reply( const struct set_mailslot_info_reply *req )
3495 fprintf( stderr, " max_msgsize=%08x,", req->max_msgsize );
3496 fprintf( stderr, " read_timeout=" );
3497 dump_timeout( &req->read_timeout );
3500 static void dump_create_directory_request( const struct create_directory_request *req )
3502 fprintf( stderr, " access=%08x,", req->access );
3503 fprintf( stderr, " attributes=%08x,", req->attributes );
3504 fprintf( stderr, " rootdir=%p,", req->rootdir );
3505 fprintf( stderr, " directory_name=" );
3506 dump_varargs_unicode_str( cur_size );
3509 static void dump_create_directory_reply( const struct create_directory_reply *req )
3511 fprintf( stderr, " handle=%p", req->handle );
3514 static void dump_open_directory_request( const struct open_directory_request *req )
3516 fprintf( stderr, " access=%08x,", req->access );
3517 fprintf( stderr, " attributes=%08x,", req->attributes );
3518 fprintf( stderr, " rootdir=%p,", req->rootdir );
3519 fprintf( stderr, " directory_name=" );
3520 dump_varargs_unicode_str( cur_size );
3523 static void dump_open_directory_reply( const struct open_directory_reply *req )
3525 fprintf( stderr, " handle=%p", req->handle );
3528 static void dump_get_directory_entry_request( const struct get_directory_entry_request *req )
3530 fprintf( stderr, " handle=%p,", req->handle );
3531 fprintf( stderr, " index=%08x", req->index );
3534 static void dump_get_directory_entry_reply( const struct get_directory_entry_reply *req )
3536 fprintf( stderr, " name_len=%lu,", (unsigned long)req->name_len );
3537 fprintf( stderr, " name=" );
3538 dump_varargs_unicode_str( min(cur_size,req->name_len) );
3539 fputc( ',', stderr );
3540 fprintf( stderr, " type=" );
3541 dump_varargs_unicode_str( cur_size );
3544 static void dump_create_symlink_request( const struct create_symlink_request *req )
3546 fprintf( stderr, " access=%08x,", req->access );
3547 fprintf( stderr, " attributes=%08x,", req->attributes );
3548 fprintf( stderr, " rootdir=%p,", req->rootdir );
3549 fprintf( stderr, " name_len=%u,", req->name_len );
3550 fprintf( stderr, " name=" );
3551 dump_varargs_unicode_str( min(cur_size,req->name_len) );
3552 fputc( ',', stderr );
3553 fprintf( stderr, " target_name=" );
3554 dump_varargs_unicode_str( cur_size );
3557 static void dump_create_symlink_reply( const struct create_symlink_reply *req )
3559 fprintf( stderr, " handle=%p", req->handle );
3562 static void dump_open_symlink_request( const struct open_symlink_request *req )
3564 fprintf( stderr, " access=%08x,", req->access );
3565 fprintf( stderr, " attributes=%08x,", req->attributes );
3566 fprintf( stderr, " rootdir=%p,", req->rootdir );
3567 fprintf( stderr, " name=" );
3568 dump_varargs_unicode_str( cur_size );
3571 static void dump_open_symlink_reply( const struct open_symlink_reply *req )
3573 fprintf( stderr, " handle=%p", req->handle );
3576 static void dump_query_symlink_request( const struct query_symlink_request *req )
3578 fprintf( stderr, " handle=%p", req->handle );
3581 static void dump_query_symlink_reply( const struct query_symlink_reply *req )
3583 fprintf( stderr, " target_name=" );
3584 dump_varargs_unicode_str( cur_size );
3587 static void dump_get_object_info_request( const struct get_object_info_request *req )
3589 fprintf( stderr, " handle=%p", req->handle );
3592 static void dump_get_object_info_reply( const struct get_object_info_reply *req )
3594 fprintf( stderr, " access=%08x,", req->access );
3595 fprintf( stderr, " ref_count=%08x", req->ref_count );
3598 static void dump_get_token_impersonation_level_request( const struct get_token_impersonation_level_request *req )
3600 fprintf( stderr, " handle=%p", req->handle );
3603 static void dump_get_token_impersonation_level_reply( const struct get_token_impersonation_level_reply *req )
3605 fprintf( stderr, " impersonation_level=%d", req->impersonation_level );
3608 static void dump_allocate_locally_unique_id_request( const struct allocate_locally_unique_id_request *req )
3612 static void dump_allocate_locally_unique_id_reply( const struct allocate_locally_unique_id_reply *req )
3614 fprintf( stderr, " luid=" );
3615 dump_luid( &req->luid );
3618 static void dump_create_device_manager_request( const struct create_device_manager_request *req )
3620 fprintf( stderr, " access=%08x,", req->access );
3621 fprintf( stderr, " attributes=%08x", req->attributes );
3624 static void dump_create_device_manager_reply( const struct create_device_manager_reply *req )
3626 fprintf( stderr, " handle=%p", req->handle );
3629 static void dump_create_device_request( const struct create_device_request *req )
3631 fprintf( stderr, " access=%08x,", req->access );
3632 fprintf( stderr, " attributes=%08x,", req->attributes );
3633 fprintf( stderr, " rootdir=%p,", req->rootdir );
3634 fprintf( stderr, " manager=%p,", req->manager );
3635 fprintf( stderr, " user_ptr=%p,", req->user_ptr );
3636 fprintf( stderr, " name=" );
3637 dump_varargs_unicode_str( cur_size );
3640 static void dump_create_device_reply( const struct create_device_reply *req )
3642 fprintf( stderr, " handle=%p", req->handle );
3645 static void dump_delete_device_request( const struct delete_device_request *req )
3647 fprintf( stderr, " handle=%p", req->handle );
3650 static void dump_get_next_device_request_request( const struct get_next_device_request_request *req )
3652 fprintf( stderr, " manager=%p,", req->manager );
3653 fprintf( stderr, " prev=%p,", req->prev );
3654 fprintf( stderr, " status=%08x,", req->status );
3655 fprintf( stderr, " prev_data=" );
3656 dump_varargs_bytes( cur_size );
3659 static void dump_get_next_device_request_reply( const struct get_next_device_request_reply *req )
3661 fprintf( stderr, " next=%p,", req->next );
3662 fprintf( stderr, " code=" );
3663 dump_ioctl_code( &req->code );
3664 fprintf( stderr, "," );
3665 fprintf( stderr, " user_ptr=%p,", req->user_ptr );
3666 fprintf( stderr, " in_size=%u,", req->in_size );
3667 fprintf( stderr, " out_size=%u,", req->out_size );
3668 fprintf( stderr, " next_data=" );
3669 dump_varargs_bytes( cur_size );
3672 static void dump_make_process_system_request( const struct make_process_system_request *req )
3676 static void dump_make_process_system_reply( const struct make_process_system_reply *req )
3678 fprintf( stderr, " event=%p", req->event );
3681 static void dump_get_token_statistics_request( const struct get_token_statistics_request *req )
3683 fprintf( stderr, " handle=%p", req->handle );
3686 static void dump_get_token_statistics_reply( const struct get_token_statistics_reply *req )
3688 fprintf( stderr, " token_id=" );
3689 dump_luid( &req->token_id );
3690 fprintf( stderr, "," );
3691 fprintf( stderr, " modified_id=" );
3692 dump_luid( &req->modified_id );
3693 fprintf( stderr, "," );
3694 fprintf( stderr, " primary=%d,", req->primary );
3695 fprintf( stderr, " impersonation_level=%d,", req->impersonation_level );
3696 fprintf( stderr, " group_count=%d,", req->group_count );
3697 fprintf( stderr, " privilege_count=%d", req->privilege_count );
3700 static void dump_create_completion_request( const struct create_completion_request *req )
3702 fprintf( stderr, " access=%08x,", req->access );
3703 fprintf( stderr, " attributes=%08x,", req->attributes );
3704 fprintf( stderr, " concurrent=%08x,", req->concurrent );
3705 fprintf( stderr, " rootdir=%p,", req->rootdir );
3706 fprintf( stderr, " filename=" );
3707 dump_varargs_string( cur_size );
3710 static void dump_create_completion_reply( const struct create_completion_reply *req )
3712 fprintf( stderr, " handle=%p", req->handle );
3715 static void dump_open_completion_request( const struct open_completion_request *req )
3717 fprintf( stderr, " access=%08x,", req->access );
3718 fprintf( stderr, " attributes=%08x,", req->attributes );
3719 fprintf( stderr, " rootdir=%p,", req->rootdir );
3720 fprintf( stderr, " filename=" );
3721 dump_varargs_string( cur_size );
3724 static void dump_open_completion_reply( const struct open_completion_reply *req )
3726 fprintf( stderr, " handle=%p", req->handle );
3729 static void dump_add_completion_request( const struct add_completion_request *req )
3731 fprintf( stderr, " handle=%p,", req->handle );
3732 fprintf( stderr, " ckey=%lx,", req->ckey );
3733 fprintf( stderr, " cvalue=%lx,", req->cvalue );
3734 fprintf( stderr, " information=%lx,", req->information );
3735 fprintf( stderr, " status=%08x", req->status );
3738 static void dump_remove_completion_request( const struct remove_completion_request *req )
3740 fprintf( stderr, " handle=%p", req->handle );
3743 static void dump_remove_completion_reply( const struct remove_completion_reply *req )
3745 fprintf( stderr, " ckey=%lx,", req->ckey );
3746 fprintf( stderr, " cvalue=%lx,", req->cvalue );
3747 fprintf( stderr, " information=%lx,", req->information );
3748 fprintf( stderr, " status=%08x", req->status );
3751 static void dump_query_completion_request( const struct query_completion_request *req )
3753 fprintf( stderr, " handle=%p", req->handle );
3756 static void dump_query_completion_reply( const struct query_completion_reply *req )
3758 fprintf( stderr, " depth=%08x", req->depth );
3761 static void dump_set_completion_info_request( const struct set_completion_info_request *req )
3763 fprintf( stderr, " handle=%p,", req->handle );
3764 fprintf( stderr, " chandle=%p,", req->chandle );
3765 fprintf( stderr, " ckey=%lx", req->ckey );
3768 static void dump_add_fd_completion_request( const struct add_fd_completion_request *req )
3770 fprintf( stderr, " handle=%p,", req->handle );
3771 fprintf( stderr, " cvalue=%lx,", req->cvalue );
3772 fprintf( stderr, " status=%08x,", req->status );
3773 fprintf( stderr, " information=%lx", req->information );
3776 static const dump_func req_dumpers[REQ_NB_REQUESTS] = {
3777 (dump_func)dump_new_process_request,
3778 (dump_func)dump_get_new_process_info_request,
3779 (dump_func)dump_new_thread_request,
3780 (dump_func)dump_get_startup_info_request,
3781 (dump_func)dump_init_process_done_request,
3782 (dump_func)dump_init_thread_request,
3783 (dump_func)dump_terminate_process_request,
3784 (dump_func)dump_terminate_thread_request,
3785 (dump_func)dump_get_process_info_request,
3786 (dump_func)dump_set_process_info_request,
3787 (dump_func)dump_get_thread_info_request,
3788 (dump_func)dump_set_thread_info_request,
3789 (dump_func)dump_get_dll_info_request,
3790 (dump_func)dump_suspend_thread_request,
3791 (dump_func)dump_resume_thread_request,
3792 (dump_func)dump_load_dll_request,
3793 (dump_func)dump_unload_dll_request,
3794 (dump_func)dump_queue_apc_request,
3795 (dump_func)dump_get_apc_result_request,
3796 (dump_func)dump_close_handle_request,
3797 (dump_func)dump_set_handle_info_request,
3798 (dump_func)dump_dup_handle_request,
3799 (dump_func)dump_open_process_request,
3800 (dump_func)dump_open_thread_request,
3801 (dump_func)dump_select_request,
3802 (dump_func)dump_create_event_request,
3803 (dump_func)dump_event_op_request,
3804 (dump_func)dump_open_event_request,
3805 (dump_func)dump_create_mutex_request,
3806 (dump_func)dump_release_mutex_request,
3807 (dump_func)dump_open_mutex_request,
3808 (dump_func)dump_create_semaphore_request,
3809 (dump_func)dump_release_semaphore_request,
3810 (dump_func)dump_open_semaphore_request,
3811 (dump_func)dump_create_file_request,
3812 (dump_func)dump_open_file_object_request,
3813 (dump_func)dump_alloc_file_handle_request,
3814 (dump_func)dump_get_handle_fd_request,
3815 (dump_func)dump_flush_file_request,
3816 (dump_func)dump_lock_file_request,
3817 (dump_func)dump_unlock_file_request,
3818 (dump_func)dump_create_socket_request,
3819 (dump_func)dump_accept_socket_request,
3820 (dump_func)dump_set_socket_event_request,
3821 (dump_func)dump_get_socket_event_request,
3822 (dump_func)dump_enable_socket_event_request,
3823 (dump_func)dump_set_socket_deferred_request,
3824 (dump_func)dump_alloc_console_request,
3825 (dump_func)dump_free_console_request,
3826 (dump_func)dump_get_console_renderer_events_request,
3827 (dump_func)dump_open_console_request,
3828 (dump_func)dump_get_console_wait_event_request,
3829 (dump_func)dump_get_console_mode_request,
3830 (dump_func)dump_set_console_mode_request,
3831 (dump_func)dump_set_console_input_info_request,
3832 (dump_func)dump_get_console_input_info_request,
3833 (dump_func)dump_append_console_input_history_request,
3834 (dump_func)dump_get_console_input_history_request,
3835 (dump_func)dump_create_console_output_request,
3836 (dump_func)dump_set_console_output_info_request,
3837 (dump_func)dump_get_console_output_info_request,
3838 (dump_func)dump_write_console_input_request,
3839 (dump_func)dump_read_console_input_request,
3840 (dump_func)dump_write_console_output_request,
3841 (dump_func)dump_fill_console_output_request,
3842 (dump_func)dump_read_console_output_request,
3843 (dump_func)dump_move_console_output_request,
3844 (dump_func)dump_send_console_signal_request,
3845 (dump_func)dump_read_directory_changes_request,
3846 (dump_func)dump_read_change_request,
3847 (dump_func)dump_create_mapping_request,
3848 (dump_func)dump_open_mapping_request,
3849 (dump_func)dump_get_mapping_info_request,
3850 (dump_func)dump_create_snapshot_request,
3851 (dump_func)dump_next_process_request,
3852 (dump_func)dump_next_thread_request,
3853 (dump_func)dump_next_module_request,
3854 (dump_func)dump_wait_debug_event_request,
3855 (dump_func)dump_queue_exception_event_request,
3856 (dump_func)dump_get_exception_status_request,
3857 (dump_func)dump_output_debug_string_request,
3858 (dump_func)dump_continue_debug_event_request,
3859 (dump_func)dump_debug_process_request,
3860 (dump_func)dump_debug_break_request,
3861 (dump_func)dump_set_debugger_kill_on_exit_request,
3862 (dump_func)dump_read_process_memory_request,
3863 (dump_func)dump_write_process_memory_request,
3864 (dump_func)dump_create_key_request,
3865 (dump_func)dump_open_key_request,
3866 (dump_func)dump_delete_key_request,
3867 (dump_func)dump_flush_key_request,
3868 (dump_func)dump_enum_key_request,
3869 (dump_func)dump_set_key_value_request,
3870 (dump_func)dump_get_key_value_request,
3871 (dump_func)dump_enum_key_value_request,
3872 (dump_func)dump_delete_key_value_request,
3873 (dump_func)dump_load_registry_request,
3874 (dump_func)dump_unload_registry_request,
3875 (dump_func)dump_save_registry_request,
3876 (dump_func)dump_set_registry_notification_request,
3877 (dump_func)dump_create_timer_request,
3878 (dump_func)dump_open_timer_request,
3879 (dump_func)dump_set_timer_request,
3880 (dump_func)dump_cancel_timer_request,
3881 (dump_func)dump_get_timer_info_request,
3882 (dump_func)dump_get_thread_context_request,
3883 (dump_func)dump_set_thread_context_request,
3884 (dump_func)dump_get_selector_entry_request,
3885 (dump_func)dump_add_atom_request,
3886 (dump_func)dump_delete_atom_request,
3887 (dump_func)dump_find_atom_request,
3888 (dump_func)dump_get_atom_information_request,
3889 (dump_func)dump_set_atom_information_request,
3890 (dump_func)dump_empty_atom_table_request,
3891 (dump_func)dump_init_atom_table_request,
3892 (dump_func)dump_get_msg_queue_request,
3893 (dump_func)dump_set_queue_fd_request,
3894 (dump_func)dump_set_queue_mask_request,
3895 (dump_func)dump_get_queue_status_request,
3896 (dump_func)dump_get_process_idle_event_request,
3897 (dump_func)dump_send_message_request,
3898 (dump_func)dump_post_quit_message_request,
3899 (dump_func)dump_send_hardware_message_request,
3900 (dump_func)dump_get_message_request,
3901 (dump_func)dump_reply_message_request,
3902 (dump_func)dump_accept_hardware_message_request,
3903 (dump_func)dump_get_message_reply_request,
3904 (dump_func)dump_set_win_timer_request,
3905 (dump_func)dump_kill_win_timer_request,
3906 (dump_func)dump_is_window_hung_request,
3907 (dump_func)dump_get_serial_info_request,
3908 (dump_func)dump_set_serial_info_request,
3909 (dump_func)dump_register_async_request,
3910 (dump_func)dump_cancel_async_request,
3911 (dump_func)dump_ioctl_request,
3912 (dump_func)dump_get_ioctl_result_request,
3913 (dump_func)dump_create_named_pipe_request,
3914 (dump_func)dump_get_named_pipe_info_request,
3915 (dump_func)dump_create_window_request,
3916 (dump_func)dump_destroy_window_request,
3917 (dump_func)dump_get_desktop_window_request,
3918 (dump_func)dump_set_window_owner_request,
3919 (dump_func)dump_get_window_info_request,
3920 (dump_func)dump_set_window_info_request,
3921 (dump_func)dump_set_parent_request,
3922 (dump_func)dump_get_window_parents_request,
3923 (dump_func)dump_get_window_children_request,
3924 (dump_func)dump_get_window_children_from_point_request,
3925 (dump_func)dump_get_window_tree_request,
3926 (dump_func)dump_set_window_pos_request,
3927 (dump_func)dump_get_window_rectangles_request,
3928 (dump_func)dump_get_window_text_request,
3929 (dump_func)dump_set_window_text_request,
3930 (dump_func)dump_get_windows_offset_request,
3931 (dump_func)dump_get_visible_region_request,
3932 (dump_func)dump_get_window_region_request,
3933 (dump_func)dump_set_window_region_request,
3934 (dump_func)dump_get_update_region_request,
3935 (dump_func)dump_update_window_zorder_request,
3936 (dump_func)dump_redraw_window_request,
3937 (dump_func)dump_set_window_property_request,
3938 (dump_func)dump_remove_window_property_request,
3939 (dump_func)dump_get_window_property_request,
3940 (dump_func)dump_get_window_properties_request,
3941 (dump_func)dump_create_winstation_request,
3942 (dump_func)dump_open_winstation_request,
3943 (dump_func)dump_close_winstation_request,
3944 (dump_func)dump_get_process_winstation_request,
3945 (dump_func)dump_set_process_winstation_request,
3946 (dump_func)dump_enum_winstation_request,
3947 (dump_func)dump_create_desktop_request,
3948 (dump_func)dump_open_desktop_request,
3949 (dump_func)dump_close_desktop_request,
3950 (dump_func)dump_get_thread_desktop_request,
3951 (dump_func)dump_set_thread_desktop_request,
3952 (dump_func)dump_enum_desktop_request,
3953 (dump_func)dump_set_user_object_info_request,
3954 (dump_func)dump_attach_thread_input_request,
3955 (dump_func)dump_get_thread_input_request,
3956 (dump_func)dump_get_last_input_time_request,
3957 (dump_func)dump_get_key_state_request,
3958 (dump_func)dump_set_key_state_request,
3959 (dump_func)dump_set_foreground_window_request,
3960 (dump_func)dump_set_focus_window_request,
3961 (dump_func)dump_set_active_window_request,
3962 (dump_func)dump_set_capture_window_request,
3963 (dump_func)dump_set_caret_window_request,
3964 (dump_func)dump_set_caret_info_request,
3965 (dump_func)dump_set_hook_request,
3966 (dump_func)dump_remove_hook_request,
3967 (dump_func)dump_start_hook_chain_request,
3968 (dump_func)dump_finish_hook_chain_request,
3969 (dump_func)dump_get_hook_info_request,
3970 (dump_func)dump_create_class_request,
3971 (dump_func)dump_destroy_class_request,
3972 (dump_func)dump_set_class_info_request,
3973 (dump_func)dump_set_clipboard_info_request,
3974 (dump_func)dump_open_token_request,
3975 (dump_func)dump_set_global_windows_request,
3976 (dump_func)dump_adjust_token_privileges_request,
3977 (dump_func)dump_get_token_privileges_request,
3978 (dump_func)dump_check_token_privileges_request,
3979 (dump_func)dump_duplicate_token_request,
3980 (dump_func)dump_access_check_request,
3981 (dump_func)dump_get_token_user_request,
3982 (dump_func)dump_get_token_groups_request,
3983 (dump_func)dump_set_security_object_request,
3984 (dump_func)dump_get_security_object_request,
3985 (dump_func)dump_create_mailslot_request,
3986 (dump_func)dump_set_mailslot_info_request,
3987 (dump_func)dump_create_directory_request,
3988 (dump_func)dump_open_directory_request,
3989 (dump_func)dump_get_directory_entry_request,
3990 (dump_func)dump_create_symlink_request,
3991 (dump_func)dump_open_symlink_request,
3992 (dump_func)dump_query_symlink_request,
3993 (dump_func)dump_get_object_info_request,
3994 (dump_func)dump_get_token_impersonation_level_request,
3995 (dump_func)dump_allocate_locally_unique_id_request,
3996 (dump_func)dump_create_device_manager_request,
3997 (dump_func)dump_create_device_request,
3998 (dump_func)dump_delete_device_request,
3999 (dump_func)dump_get_next_device_request_request,
4000 (dump_func)dump_make_process_system_request,
4001 (dump_func)dump_get_token_statistics_request,
4002 (dump_func)dump_create_completion_request,
4003 (dump_func)dump_open_completion_request,
4004 (dump_func)dump_add_completion_request,
4005 (dump_func)dump_remove_completion_request,
4006 (dump_func)dump_query_completion_request,
4007 (dump_func)dump_set_completion_info_request,
4008 (dump_func)dump_add_fd_completion_request,
4011 static const dump_func reply_dumpers[REQ_NB_REQUESTS] = {
4012 (dump_func)dump_new_process_reply,
4013 (dump_func)dump_get_new_process_info_reply,
4014 (dump_func)dump_new_thread_reply,
4015 (dump_func)dump_get_startup_info_reply,
4016 (dump_func)0,
4017 (dump_func)dump_init_thread_reply,
4018 (dump_func)dump_terminate_process_reply,
4019 (dump_func)dump_terminate_thread_reply,
4020 (dump_func)dump_get_process_info_reply,
4021 (dump_func)0,
4022 (dump_func)dump_get_thread_info_reply,
4023 (dump_func)0,
4024 (dump_func)dump_get_dll_info_reply,
4025 (dump_func)dump_suspend_thread_reply,
4026 (dump_func)dump_resume_thread_reply,
4027 (dump_func)0,
4028 (dump_func)0,
4029 (dump_func)dump_queue_apc_reply,
4030 (dump_func)dump_get_apc_result_reply,
4031 (dump_func)0,
4032 (dump_func)dump_set_handle_info_reply,
4033 (dump_func)dump_dup_handle_reply,
4034 (dump_func)dump_open_process_reply,
4035 (dump_func)dump_open_thread_reply,
4036 (dump_func)dump_select_reply,
4037 (dump_func)dump_create_event_reply,
4038 (dump_func)0,
4039 (dump_func)dump_open_event_reply,
4040 (dump_func)dump_create_mutex_reply,
4041 (dump_func)dump_release_mutex_reply,
4042 (dump_func)dump_open_mutex_reply,
4043 (dump_func)dump_create_semaphore_reply,
4044 (dump_func)dump_release_semaphore_reply,
4045 (dump_func)dump_open_semaphore_reply,
4046 (dump_func)dump_create_file_reply,
4047 (dump_func)dump_open_file_object_reply,
4048 (dump_func)dump_alloc_file_handle_reply,
4049 (dump_func)dump_get_handle_fd_reply,
4050 (dump_func)dump_flush_file_reply,
4051 (dump_func)dump_lock_file_reply,
4052 (dump_func)0,
4053 (dump_func)dump_create_socket_reply,
4054 (dump_func)dump_accept_socket_reply,
4055 (dump_func)0,
4056 (dump_func)dump_get_socket_event_reply,
4057 (dump_func)0,
4058 (dump_func)0,
4059 (dump_func)dump_alloc_console_reply,
4060 (dump_func)0,
4061 (dump_func)dump_get_console_renderer_events_reply,
4062 (dump_func)dump_open_console_reply,
4063 (dump_func)dump_get_console_wait_event_reply,
4064 (dump_func)dump_get_console_mode_reply,
4065 (dump_func)0,
4066 (dump_func)0,
4067 (dump_func)dump_get_console_input_info_reply,
4068 (dump_func)0,
4069 (dump_func)dump_get_console_input_history_reply,
4070 (dump_func)dump_create_console_output_reply,
4071 (dump_func)0,
4072 (dump_func)dump_get_console_output_info_reply,
4073 (dump_func)dump_write_console_input_reply,
4074 (dump_func)dump_read_console_input_reply,
4075 (dump_func)dump_write_console_output_reply,
4076 (dump_func)dump_fill_console_output_reply,
4077 (dump_func)dump_read_console_output_reply,
4078 (dump_func)0,
4079 (dump_func)0,
4080 (dump_func)0,
4081 (dump_func)dump_read_change_reply,
4082 (dump_func)dump_create_mapping_reply,
4083 (dump_func)dump_open_mapping_reply,
4084 (dump_func)dump_get_mapping_info_reply,
4085 (dump_func)dump_create_snapshot_reply,
4086 (dump_func)dump_next_process_reply,
4087 (dump_func)dump_next_thread_reply,
4088 (dump_func)dump_next_module_reply,
4089 (dump_func)dump_wait_debug_event_reply,
4090 (dump_func)dump_queue_exception_event_reply,
4091 (dump_func)dump_get_exception_status_reply,
4092 (dump_func)0,
4093 (dump_func)0,
4094 (dump_func)0,
4095 (dump_func)dump_debug_break_reply,
4096 (dump_func)0,
4097 (dump_func)dump_read_process_memory_reply,
4098 (dump_func)0,
4099 (dump_func)dump_create_key_reply,
4100 (dump_func)dump_open_key_reply,
4101 (dump_func)0,
4102 (dump_func)0,
4103 (dump_func)dump_enum_key_reply,
4104 (dump_func)0,
4105 (dump_func)dump_get_key_value_reply,
4106 (dump_func)dump_enum_key_value_reply,
4107 (dump_func)0,
4108 (dump_func)0,
4109 (dump_func)0,
4110 (dump_func)0,
4111 (dump_func)0,
4112 (dump_func)dump_create_timer_reply,
4113 (dump_func)dump_open_timer_reply,
4114 (dump_func)dump_set_timer_reply,
4115 (dump_func)dump_cancel_timer_reply,
4116 (dump_func)dump_get_timer_info_reply,
4117 (dump_func)dump_get_thread_context_reply,
4118 (dump_func)dump_set_thread_context_reply,
4119 (dump_func)dump_get_selector_entry_reply,
4120 (dump_func)dump_add_atom_reply,
4121 (dump_func)0,
4122 (dump_func)dump_find_atom_reply,
4123 (dump_func)dump_get_atom_information_reply,
4124 (dump_func)0,
4125 (dump_func)0,
4126 (dump_func)dump_init_atom_table_reply,
4127 (dump_func)dump_get_msg_queue_reply,
4128 (dump_func)0,
4129 (dump_func)dump_set_queue_mask_reply,
4130 (dump_func)dump_get_queue_status_reply,
4131 (dump_func)dump_get_process_idle_event_reply,
4132 (dump_func)0,
4133 (dump_func)0,
4134 (dump_func)0,
4135 (dump_func)dump_get_message_reply,
4136 (dump_func)0,
4137 (dump_func)0,
4138 (dump_func)dump_get_message_reply_reply,
4139 (dump_func)dump_set_win_timer_reply,
4140 (dump_func)0,
4141 (dump_func)dump_is_window_hung_reply,
4142 (dump_func)dump_get_serial_info_reply,
4143 (dump_func)0,
4144 (dump_func)0,
4145 (dump_func)0,
4146 (dump_func)dump_ioctl_reply,
4147 (dump_func)dump_get_ioctl_result_reply,
4148 (dump_func)dump_create_named_pipe_reply,
4149 (dump_func)dump_get_named_pipe_info_reply,
4150 (dump_func)dump_create_window_reply,
4151 (dump_func)0,
4152 (dump_func)dump_get_desktop_window_reply,
4153 (dump_func)dump_set_window_owner_reply,
4154 (dump_func)dump_get_window_info_reply,
4155 (dump_func)dump_set_window_info_reply,
4156 (dump_func)dump_set_parent_reply,
4157 (dump_func)dump_get_window_parents_reply,
4158 (dump_func)dump_get_window_children_reply,
4159 (dump_func)dump_get_window_children_from_point_reply,
4160 (dump_func)dump_get_window_tree_reply,
4161 (dump_func)dump_set_window_pos_reply,
4162 (dump_func)dump_get_window_rectangles_reply,
4163 (dump_func)dump_get_window_text_reply,
4164 (dump_func)0,
4165 (dump_func)dump_get_windows_offset_reply,
4166 (dump_func)dump_get_visible_region_reply,
4167 (dump_func)dump_get_window_region_reply,
4168 (dump_func)0,
4169 (dump_func)dump_get_update_region_reply,
4170 (dump_func)0,
4171 (dump_func)0,
4172 (dump_func)0,
4173 (dump_func)dump_remove_window_property_reply,
4174 (dump_func)dump_get_window_property_reply,
4175 (dump_func)dump_get_window_properties_reply,
4176 (dump_func)dump_create_winstation_reply,
4177 (dump_func)dump_open_winstation_reply,
4178 (dump_func)0,
4179 (dump_func)dump_get_process_winstation_reply,
4180 (dump_func)0,
4181 (dump_func)dump_enum_winstation_reply,
4182 (dump_func)dump_create_desktop_reply,
4183 (dump_func)dump_open_desktop_reply,
4184 (dump_func)0,
4185 (dump_func)dump_get_thread_desktop_reply,
4186 (dump_func)0,
4187 (dump_func)dump_enum_desktop_reply,
4188 (dump_func)dump_set_user_object_info_reply,
4189 (dump_func)0,
4190 (dump_func)dump_get_thread_input_reply,
4191 (dump_func)dump_get_last_input_time_reply,
4192 (dump_func)dump_get_key_state_reply,
4193 (dump_func)0,
4194 (dump_func)dump_set_foreground_window_reply,
4195 (dump_func)dump_set_focus_window_reply,
4196 (dump_func)dump_set_active_window_reply,
4197 (dump_func)dump_set_capture_window_reply,
4198 (dump_func)dump_set_caret_window_reply,
4199 (dump_func)dump_set_caret_info_reply,
4200 (dump_func)dump_set_hook_reply,
4201 (dump_func)dump_remove_hook_reply,
4202 (dump_func)dump_start_hook_chain_reply,
4203 (dump_func)0,
4204 (dump_func)dump_get_hook_info_reply,
4205 (dump_func)dump_create_class_reply,
4206 (dump_func)dump_destroy_class_reply,
4207 (dump_func)dump_set_class_info_reply,
4208 (dump_func)dump_set_clipboard_info_reply,
4209 (dump_func)dump_open_token_reply,
4210 (dump_func)dump_set_global_windows_reply,
4211 (dump_func)dump_adjust_token_privileges_reply,
4212 (dump_func)dump_get_token_privileges_reply,
4213 (dump_func)dump_check_token_privileges_reply,
4214 (dump_func)dump_duplicate_token_reply,
4215 (dump_func)dump_access_check_reply,
4216 (dump_func)dump_get_token_user_reply,
4217 (dump_func)dump_get_token_groups_reply,
4218 (dump_func)0,
4219 (dump_func)dump_get_security_object_reply,
4220 (dump_func)dump_create_mailslot_reply,
4221 (dump_func)dump_set_mailslot_info_reply,
4222 (dump_func)dump_create_directory_reply,
4223 (dump_func)dump_open_directory_reply,
4224 (dump_func)dump_get_directory_entry_reply,
4225 (dump_func)dump_create_symlink_reply,
4226 (dump_func)dump_open_symlink_reply,
4227 (dump_func)dump_query_symlink_reply,
4228 (dump_func)dump_get_object_info_reply,
4229 (dump_func)dump_get_token_impersonation_level_reply,
4230 (dump_func)dump_allocate_locally_unique_id_reply,
4231 (dump_func)dump_create_device_manager_reply,
4232 (dump_func)dump_create_device_reply,
4233 (dump_func)0,
4234 (dump_func)dump_get_next_device_request_reply,
4235 (dump_func)dump_make_process_system_reply,
4236 (dump_func)dump_get_token_statistics_reply,
4237 (dump_func)dump_create_completion_reply,
4238 (dump_func)dump_open_completion_reply,
4239 (dump_func)0,
4240 (dump_func)dump_remove_completion_reply,
4241 (dump_func)dump_query_completion_reply,
4242 (dump_func)0,
4243 (dump_func)0,
4246 static const char * const req_names[REQ_NB_REQUESTS] = {
4247 "new_process",
4248 "get_new_process_info",
4249 "new_thread",
4250 "get_startup_info",
4251 "init_process_done",
4252 "init_thread",
4253 "terminate_process",
4254 "terminate_thread",
4255 "get_process_info",
4256 "set_process_info",
4257 "get_thread_info",
4258 "set_thread_info",
4259 "get_dll_info",
4260 "suspend_thread",
4261 "resume_thread",
4262 "load_dll",
4263 "unload_dll",
4264 "queue_apc",
4265 "get_apc_result",
4266 "close_handle",
4267 "set_handle_info",
4268 "dup_handle",
4269 "open_process",
4270 "open_thread",
4271 "select",
4272 "create_event",
4273 "event_op",
4274 "open_event",
4275 "create_mutex",
4276 "release_mutex",
4277 "open_mutex",
4278 "create_semaphore",
4279 "release_semaphore",
4280 "open_semaphore",
4281 "create_file",
4282 "open_file_object",
4283 "alloc_file_handle",
4284 "get_handle_fd",
4285 "flush_file",
4286 "lock_file",
4287 "unlock_file",
4288 "create_socket",
4289 "accept_socket",
4290 "set_socket_event",
4291 "get_socket_event",
4292 "enable_socket_event",
4293 "set_socket_deferred",
4294 "alloc_console",
4295 "free_console",
4296 "get_console_renderer_events",
4297 "open_console",
4298 "get_console_wait_event",
4299 "get_console_mode",
4300 "set_console_mode",
4301 "set_console_input_info",
4302 "get_console_input_info",
4303 "append_console_input_history",
4304 "get_console_input_history",
4305 "create_console_output",
4306 "set_console_output_info",
4307 "get_console_output_info",
4308 "write_console_input",
4309 "read_console_input",
4310 "write_console_output",
4311 "fill_console_output",
4312 "read_console_output",
4313 "move_console_output",
4314 "send_console_signal",
4315 "read_directory_changes",
4316 "read_change",
4317 "create_mapping",
4318 "open_mapping",
4319 "get_mapping_info",
4320 "create_snapshot",
4321 "next_process",
4322 "next_thread",
4323 "next_module",
4324 "wait_debug_event",
4325 "queue_exception_event",
4326 "get_exception_status",
4327 "output_debug_string",
4328 "continue_debug_event",
4329 "debug_process",
4330 "debug_break",
4331 "set_debugger_kill_on_exit",
4332 "read_process_memory",
4333 "write_process_memory",
4334 "create_key",
4335 "open_key",
4336 "delete_key",
4337 "flush_key",
4338 "enum_key",
4339 "set_key_value",
4340 "get_key_value",
4341 "enum_key_value",
4342 "delete_key_value",
4343 "load_registry",
4344 "unload_registry",
4345 "save_registry",
4346 "set_registry_notification",
4347 "create_timer",
4348 "open_timer",
4349 "set_timer",
4350 "cancel_timer",
4351 "get_timer_info",
4352 "get_thread_context",
4353 "set_thread_context",
4354 "get_selector_entry",
4355 "add_atom",
4356 "delete_atom",
4357 "find_atom",
4358 "get_atom_information",
4359 "set_atom_information",
4360 "empty_atom_table",
4361 "init_atom_table",
4362 "get_msg_queue",
4363 "set_queue_fd",
4364 "set_queue_mask",
4365 "get_queue_status",
4366 "get_process_idle_event",
4367 "send_message",
4368 "post_quit_message",
4369 "send_hardware_message",
4370 "get_message",
4371 "reply_message",
4372 "accept_hardware_message",
4373 "get_message_reply",
4374 "set_win_timer",
4375 "kill_win_timer",
4376 "is_window_hung",
4377 "get_serial_info",
4378 "set_serial_info",
4379 "register_async",
4380 "cancel_async",
4381 "ioctl",
4382 "get_ioctl_result",
4383 "create_named_pipe",
4384 "get_named_pipe_info",
4385 "create_window",
4386 "destroy_window",
4387 "get_desktop_window",
4388 "set_window_owner",
4389 "get_window_info",
4390 "set_window_info",
4391 "set_parent",
4392 "get_window_parents",
4393 "get_window_children",
4394 "get_window_children_from_point",
4395 "get_window_tree",
4396 "set_window_pos",
4397 "get_window_rectangles",
4398 "get_window_text",
4399 "set_window_text",
4400 "get_windows_offset",
4401 "get_visible_region",
4402 "get_window_region",
4403 "set_window_region",
4404 "get_update_region",
4405 "update_window_zorder",
4406 "redraw_window",
4407 "set_window_property",
4408 "remove_window_property",
4409 "get_window_property",
4410 "get_window_properties",
4411 "create_winstation",
4412 "open_winstation",
4413 "close_winstation",
4414 "get_process_winstation",
4415 "set_process_winstation",
4416 "enum_winstation",
4417 "create_desktop",
4418 "open_desktop",
4419 "close_desktop",
4420 "get_thread_desktop",
4421 "set_thread_desktop",
4422 "enum_desktop",
4423 "set_user_object_info",
4424 "attach_thread_input",
4425 "get_thread_input",
4426 "get_last_input_time",
4427 "get_key_state",
4428 "set_key_state",
4429 "set_foreground_window",
4430 "set_focus_window",
4431 "set_active_window",
4432 "set_capture_window",
4433 "set_caret_window",
4434 "set_caret_info",
4435 "set_hook",
4436 "remove_hook",
4437 "start_hook_chain",
4438 "finish_hook_chain",
4439 "get_hook_info",
4440 "create_class",
4441 "destroy_class",
4442 "set_class_info",
4443 "set_clipboard_info",
4444 "open_token",
4445 "set_global_windows",
4446 "adjust_token_privileges",
4447 "get_token_privileges",
4448 "check_token_privileges",
4449 "duplicate_token",
4450 "access_check",
4451 "get_token_user",
4452 "get_token_groups",
4453 "set_security_object",
4454 "get_security_object",
4455 "create_mailslot",
4456 "set_mailslot_info",
4457 "create_directory",
4458 "open_directory",
4459 "get_directory_entry",
4460 "create_symlink",
4461 "open_symlink",
4462 "query_symlink",
4463 "get_object_info",
4464 "get_token_impersonation_level",
4465 "allocate_locally_unique_id",
4466 "create_device_manager",
4467 "create_device",
4468 "delete_device",
4469 "get_next_device_request",
4470 "make_process_system",
4471 "get_token_statistics",
4472 "create_completion",
4473 "open_completion",
4474 "add_completion",
4475 "remove_completion",
4476 "query_completion",
4477 "set_completion_info",
4478 "add_fd_completion",
4481 static const struct
4483 const char *name;
4484 unsigned int value;
4485 } status_names[] =
4487 { "ABANDONED_WAIT_0", STATUS_ABANDONED_WAIT_0 },
4488 { "ACCESS_DENIED", STATUS_ACCESS_DENIED },
4489 { "ACCESS_VIOLATION", STATUS_ACCESS_VIOLATION },
4490 { "ALERTED", STATUS_ALERTED },
4491 { "ALIAS_EXISTS", STATUS_ALIAS_EXISTS },
4492 { "BAD_DEVICE_TYPE", STATUS_BAD_DEVICE_TYPE },
4493 { "BAD_IMPERSONATION_LEVEL", STATUS_BAD_IMPERSONATION_LEVEL },
4494 { "BREAKPOINT", STATUS_BREAKPOINT },
4495 { "BUFFER_OVERFLOW", STATUS_BUFFER_OVERFLOW },
4496 { "BUFFER_TOO_SMALL", STATUS_BUFFER_TOO_SMALL },
4497 { "CANCELLED", STATUS_CANCELLED },
4498 { "CANT_OPEN_ANONYMOUS", STATUS_CANT_OPEN_ANONYMOUS },
4499 { "CHILD_MUST_BE_VOLATILE", STATUS_CHILD_MUST_BE_VOLATILE },
4500 { "DEBUGGER_INACTIVE", STATUS_DEBUGGER_INACTIVE },
4501 { "DEVICE_BUSY", STATUS_DEVICE_BUSY },
4502 { "DIRECTORY_NOT_EMPTY", STATUS_DIRECTORY_NOT_EMPTY },
4503 { "DISK_FULL", STATUS_DISK_FULL },
4504 { "DLL_NOT_FOUND", STATUS_DLL_NOT_FOUND },
4505 { "ERROR_CLASS_ALREADY_EXISTS", 0xc0010000 | ERROR_CLASS_ALREADY_EXISTS },
4506 { "ERROR_CLASS_DOES_NOT_EXIST", 0xc0010000 | ERROR_CLASS_DOES_NOT_EXIST },
4507 { "ERROR_CLASS_HAS_WINDOWS", 0xc0010000 | ERROR_CLASS_HAS_WINDOWS },
4508 { "ERROR_CLIPBOARD_NOT_OPEN", 0xc0010000 | ERROR_CLIPBOARD_NOT_OPEN },
4509 { "ERROR_INVALID_INDEX", 0xc0010000 | ERROR_INVALID_INDEX },
4510 { "ERROR_INVALID_WINDOW_HANDLE", 0xc0010000 | ERROR_INVALID_WINDOW_HANDLE },
4511 { "FILE_DELETED", STATUS_FILE_DELETED },
4512 { "FILE_IS_A_DIRECTORY", STATUS_FILE_IS_A_DIRECTORY },
4513 { "FILE_LOCK_CONFLICT", STATUS_FILE_LOCK_CONFLICT },
4514 { "GENERIC_NOT_MAPPED", STATUS_GENERIC_NOT_MAPPED },
4515 { "HANDLES_CLOSED", STATUS_HANDLES_CLOSED },
4516 { "HANDLE_NOT_CLOSABLE", STATUS_HANDLE_NOT_CLOSABLE },
4517 { "ILLEGAL_FUNCTION", STATUS_ILLEGAL_FUNCTION },
4518 { "INSTANCE_NOT_AVAILABLE", STATUS_INSTANCE_NOT_AVAILABLE },
4519 { "INVALID_CID", STATUS_INVALID_CID },
4520 { "INVALID_DEVICE_REQUEST", STATUS_INVALID_DEVICE_REQUEST },
4521 { "INVALID_FILE_FOR_SECTION", STATUS_INVALID_FILE_FOR_SECTION },
4522 { "INVALID_HANDLE", STATUS_INVALID_HANDLE },
4523 { "INVALID_PARAMETER", STATUS_INVALID_PARAMETER },
4524 { "INVALID_SECURITY_DESCR", STATUS_INVALID_SECURITY_DESCR },
4525 { "IO_TIMEOUT", STATUS_IO_TIMEOUT },
4526 { "KEY_DELETED", STATUS_KEY_DELETED },
4527 { "MAPPED_FILE_SIZE_ZERO", STATUS_MAPPED_FILE_SIZE_ZERO },
4528 { "MEDIA_WRITE_PROTECTED", STATUS_MEDIA_WRITE_PROTECTED },
4529 { "MUTANT_NOT_OWNED", STATUS_MUTANT_NOT_OWNED },
4530 { "NAME_TOO_LONG", STATUS_NAME_TOO_LONG },
4531 { "NOTIFY_ENUM_DIR", STATUS_NOTIFY_ENUM_DIR },
4532 { "NOT_ALL_ASSIGNED", STATUS_NOT_ALL_ASSIGNED },
4533 { "NOT_A_DIRECTORY", STATUS_NOT_A_DIRECTORY },
4534 { "NOT_IMPLEMENTED", STATUS_NOT_IMPLEMENTED },
4535 { "NOT_REGISTRY_FILE", STATUS_NOT_REGISTRY_FILE },
4536 { "NOT_SUPPORTED", STATUS_NOT_SUPPORTED },
4537 { "NO_DATA_DETECTED", STATUS_NO_DATA_DETECTED },
4538 { "NO_IMPERSONATION_TOKEN", STATUS_NO_IMPERSONATION_TOKEN },
4539 { "NO_MEMORY", STATUS_NO_MEMORY },
4540 { "NO_MORE_ENTRIES", STATUS_NO_MORE_ENTRIES },
4541 { "NO_MORE_FILES", STATUS_NO_MORE_FILES },
4542 { "NO_SUCH_DEVICE", STATUS_NO_SUCH_DEVICE },
4543 { "NO_SUCH_FILE", STATUS_NO_SUCH_FILE },
4544 { "NO_TOKEN", STATUS_NO_TOKEN },
4545 { "OBJECT_NAME_COLLISION", STATUS_OBJECT_NAME_COLLISION },
4546 { "OBJECT_NAME_EXISTS", STATUS_OBJECT_NAME_EXISTS },
4547 { "OBJECT_NAME_INVALID", STATUS_OBJECT_NAME_INVALID },
4548 { "OBJECT_NAME_NOT_FOUND", STATUS_OBJECT_NAME_NOT_FOUND },
4549 { "OBJECT_PATH_INVALID", STATUS_OBJECT_PATH_INVALID },
4550 { "OBJECT_PATH_NOT_FOUND", STATUS_OBJECT_PATH_NOT_FOUND },
4551 { "OBJECT_PATH_SYNTAX_BAD", STATUS_OBJECT_PATH_SYNTAX_BAD },
4552 { "OBJECT_TYPE_MISMATCH", STATUS_OBJECT_TYPE_MISMATCH },
4553 { "PENDING", STATUS_PENDING },
4554 { "PIPE_BUSY", STATUS_PIPE_BUSY },
4555 { "PIPE_CONNECTED", STATUS_PIPE_CONNECTED },
4556 { "PIPE_DISCONNECTED", STATUS_PIPE_DISCONNECTED },
4557 { "PIPE_LISTENING", STATUS_PIPE_LISTENING },
4558 { "PIPE_NOT_AVAILABLE", STATUS_PIPE_NOT_AVAILABLE },
4559 { "PRIVILEGE_NOT_HELD", STATUS_PRIVILEGE_NOT_HELD },
4560 { "PROCESS_IS_TERMINATING", STATUS_PROCESS_IS_TERMINATING },
4561 { "SECTION_TOO_BIG", STATUS_SECTION_TOO_BIG },
4562 { "SEMAPHORE_LIMIT_EXCEEDED", STATUS_SEMAPHORE_LIMIT_EXCEEDED },
4563 { "SHARING_VIOLATION", STATUS_SHARING_VIOLATION },
4564 { "SHUTDOWN_IN_PROGRESS", STATUS_SHUTDOWN_IN_PROGRESS },
4565 { "SUSPEND_COUNT_EXCEEDED", STATUS_SUSPEND_COUNT_EXCEEDED },
4566 { "THREAD_IS_TERMINATING", STATUS_THREAD_IS_TERMINATING },
4567 { "TIMEOUT", STATUS_TIMEOUT },
4568 { "TOO_MANY_OPENED_FILES", STATUS_TOO_MANY_OPENED_FILES },
4569 { "UNSUCCESSFUL", STATUS_UNSUCCESSFUL },
4570 { "USER_APC", STATUS_USER_APC },
4571 { "VOLUME_DISMOUNTED", STATUS_VOLUME_DISMOUNTED },
4572 { "WAS_LOCKED", STATUS_WAS_LOCKED },
4573 { NULL, 0 }
4576 /* ### make_requests end ### */
4577 /* Everything above this line is generated automatically by tools/make_requests */
4579 static const char *get_status_name( unsigned int status )
4581 int i;
4582 static char buffer[10];
4584 if (status)
4586 for (i = 0; status_names[i].name; i++)
4587 if (status_names[i].value == status) return status_names[i].name;
4589 sprintf( buffer, "%x", status );
4590 return buffer;
4593 void trace_request(void)
4595 enum request req = current->req.request_header.req;
4596 if (req < REQ_NB_REQUESTS)
4598 fprintf( stderr, "%04x: %s(", current->id, req_names[req] );
4599 if (req_dumpers[req])
4601 cur_data = get_req_data();
4602 cur_size = get_req_data_size();
4603 req_dumpers[req]( &current->req );
4605 fprintf( stderr, " )\n" );
4607 else fprintf( stderr, "%04x: %d(?)\n", current->id, req );
4610 void trace_reply( enum request req, const union generic_reply *reply )
4612 if (req < REQ_NB_REQUESTS)
4614 fprintf( stderr, "%04x: %s() = %s",
4615 current->id, req_names[req], get_status_name(current->error) );
4616 if (reply_dumpers[req])
4618 fprintf( stderr, " {" );
4619 cur_data = current->reply_data;
4620 cur_size = reply->reply_header.reply_size;
4621 reply_dumpers[req]( reply );
4622 fprintf( stderr, " }" );
4624 fputc( '\n', stderr );
4626 else fprintf( stderr, "%04x: %d() = %s\n",
4627 current->id, req, get_status_name(current->error) );