advapi32: Implement CredReadDomainCredentials stub and tests.
[wine/multimedia.git] / server / trace.c
blob5d392930ff37ed108ae9d43e802c2e232661b3c0
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 fputs( get_timeout_str(*time), stderr );
73 static void dump_uint64( const unsigned __int64 *val )
75 if ((unsigned int)*val != *val)
76 fprintf( stderr, "%x%08x", (unsigned int)(*val >> 32), (unsigned int)*val );
77 else
78 fprintf( stderr, "%08x", (unsigned int)*val );
81 static void dump_rectangle( const rectangle_t *rect )
83 fprintf( stderr, "{%d,%d;%d,%d}",
84 rect->left, rect->top, rect->right, rect->bottom );
87 static void dump_char_info( const char_info_t *info )
89 fprintf( stderr, "{'" );
90 dump_strW( &info->ch, 1, stderr, "\'\'" );
91 fprintf( stderr, "',%04x}", info->attr );
94 static void dump_ioctl_code( const ioctl_code_t *code )
96 switch(*code)
98 #define CASE(c) case c: fputs( #c, stderr ); break
99 CASE(FSCTL_DISMOUNT_VOLUME);
100 CASE(FSCTL_PIPE_DISCONNECT);
101 CASE(FSCTL_PIPE_LISTEN);
102 CASE(FSCTL_PIPE_WAIT);
103 default: fprintf( stderr, "%08x", *code ); break;
104 #undef CASE
108 static void dump_apc_call( const apc_call_t *call )
110 fputc( '{', stderr );
111 switch(call->type)
113 case APC_NONE:
114 fprintf( stderr, "APC_NONE" );
115 break;
116 case APC_USER:
117 fprintf( stderr, "APC_USER,args={" );
118 dump_uint64( &call->user.args[0] );
119 fputc( ',', stderr );
120 dump_uint64( &call->user.args[1] );
121 fputc( ',', stderr );
122 dump_uint64( &call->user.args[2] );
123 fputc( '}', stderr );
124 break;
125 case APC_TIMER:
126 fprintf( stderr, "APC_TIMER,time=" );
127 dump_timeout( &call->timer.time );
128 fprintf( stderr, ",arg=%p", call->timer.arg );
129 break;
130 case APC_ASYNC_IO:
131 fprintf( stderr, "APC_ASYNC_IO,func=%p,user=%p,sb=%p,status=%s",
132 call->async_io.func, call->async_io.user, call->async_io.sb,
133 get_status_name(call->async_io.status) );
134 break;
135 case APC_VIRTUAL_ALLOC:
136 fprintf( stderr, "APC_VIRTUAL_ALLOC,addr=%p,size=", call->virtual_alloc.addr );
137 dump_uint64( &call->virtual_alloc.size );
138 fprintf( stderr, ",zero_bits=%u,op_type=%x,prot=%x",
139 call->virtual_alloc.zero_bits, call->virtual_alloc.op_type,
140 call->virtual_alloc.prot );
141 break;
142 case APC_VIRTUAL_FREE:
143 fprintf( stderr, "APC_VIRTUAL_FREE,addr=%p,size=", call->virtual_free.addr );
144 dump_uint64( &call->virtual_free.size );
145 fprintf( stderr, ",op_type=%x", call->virtual_free.op_type );
146 break;
147 case APC_VIRTUAL_QUERY:
148 fprintf( stderr, "APC_VIRTUAL_QUERY,addr=%p", call->virtual_query.addr );
149 break;
150 case APC_VIRTUAL_PROTECT:
151 fprintf( stderr, "APC_VIRTUAL_PROTECT,addr=%p,size=", call->virtual_protect.addr );
152 dump_uint64( &call->virtual_protect.size );
153 fprintf( stderr, ",prot=%x", call->virtual_protect.prot );
154 break;
155 case APC_VIRTUAL_FLUSH:
156 fprintf( stderr, "APC_VIRTUAL_FLUSH,addr=%p,size=", call->virtual_flush.addr );
157 dump_uint64( &call->virtual_flush.size );
158 break;
159 case APC_VIRTUAL_LOCK:
160 fprintf( stderr, "APC_VIRTUAL_LOCK,addr=%p,size=", call->virtual_lock.addr );
161 dump_uint64( &call->virtual_lock.size );
162 break;
163 case APC_VIRTUAL_UNLOCK:
164 fprintf( stderr, "APC_VIRTUAL_UNLOCK,addr=%p,size=", call->virtual_unlock.addr );
165 dump_uint64( &call->virtual_unlock.size );
166 break;
167 case APC_MAP_VIEW:
168 fprintf( stderr, "APC_MAP_VIEW,handle=%04x,addr=%p,size=",
169 call->map_view.handle, call->map_view.addr );
170 dump_uint64( &call->map_view.size );
171 fprintf( stderr, ",offset=" );
172 dump_uint64( &call->map_view.offset );
173 fprintf( stderr, ",zero_bits=%u,alloc_type=%x,prot=%x",
174 call->map_view.zero_bits, call->map_view.alloc_type, call->map_view.prot );
175 break;
176 case APC_UNMAP_VIEW:
177 fprintf( stderr, "APC_UNMAP_VIEW,addr=%p", call->unmap_view.addr );
178 break;
179 case APC_CREATE_THREAD:
180 fprintf( stderr, "APC_CREATE_THREAD,func=%p,arg=%p,reserve=",
181 call->create_thread.func, call->create_thread.arg );
182 dump_uint64( &call->create_thread.reserve );
183 fprintf( stderr, ",commit=" );
184 dump_uint64( &call->create_thread.commit );
185 fprintf( stderr, ",suspend=%u", call->create_thread.suspend );
186 break;
187 default:
188 fprintf( stderr, "type=%u", call->type );
189 break;
191 fputc( '}', stderr );
194 static void dump_apc_result( const apc_result_t *result )
196 fputc( '{', stderr );
197 switch(result->type)
199 case APC_NONE:
200 break;
201 case APC_ASYNC_IO:
202 fprintf( stderr, "APC_ASYNC_IO,status=%s",
203 get_status_name( result->async_io.status ) );
204 break;
205 case APC_VIRTUAL_ALLOC:
206 fprintf( stderr, "APC_VIRTUAL_ALLOC,status=%s,addr=%p,size=",
207 get_status_name( result->virtual_alloc.status ), result->virtual_alloc.addr );
208 dump_uint64( &result->virtual_alloc.size );
209 break;
210 case APC_VIRTUAL_FREE:
211 fprintf( stderr, "APC_VIRTUAL_FREE,status=%s,addr=%p,size=",
212 get_status_name( result->virtual_free.status ), result->virtual_free.addr );
213 dump_uint64( &result->virtual_free.size );
214 break;
215 case APC_VIRTUAL_QUERY:
216 fprintf( stderr, "APC_VIRTUAL_QUERY,status=%s,base=%p,alloc_base=%p,size=",
217 get_status_name( result->virtual_query.status ),
218 result->virtual_query.base, result->virtual_query.alloc_base );
219 dump_uint64( &result->virtual_query.size );
220 fprintf( stderr, ",state=%x,prot=%x,alloc_prot=%x,alloc_type=%x",
221 result->virtual_query.state, result->virtual_query.prot,
222 result->virtual_query.alloc_prot, result->virtual_query.alloc_type );
223 break;
224 case APC_VIRTUAL_PROTECT:
225 fprintf( stderr, "APC_VIRTUAL_PROTECT,status=%s,addr=%p,size=",
226 get_status_name( result->virtual_protect.status ), result->virtual_protect.addr );
227 dump_uint64( &result->virtual_protect.size );
228 fprintf( stderr, ",prot=%x", result->virtual_protect.prot );
229 break;
230 case APC_VIRTUAL_FLUSH:
231 fprintf( stderr, "APC_VIRTUAL_FLUSH,status=%s,addr=%p,size=",
232 get_status_name( result->virtual_flush.status ), result->virtual_flush.addr );
233 dump_uint64( &result->virtual_flush.size );
234 break;
235 case APC_VIRTUAL_LOCK:
236 fprintf( stderr, "APC_VIRTUAL_LOCK,status=%s,addr=%p,size=",
237 get_status_name( result->virtual_lock.status ), result->virtual_lock.addr );
238 dump_uint64( &result->virtual_lock.size );
239 break;
240 case APC_VIRTUAL_UNLOCK:
241 fprintf( stderr, "APC_VIRTUAL_UNLOCK,status=%s,addr=%p,size=",
242 get_status_name( result->virtual_unlock.status ), result->virtual_unlock.addr );
243 dump_uint64( &result->virtual_unlock.size );
244 break;
245 case APC_MAP_VIEW:
246 fprintf( stderr, "APC_MAP_VIEW,status=%s,addr=%p,size=",
247 get_status_name( result->map_view.status ), result->map_view.addr );
248 dump_uint64( &result->map_view.size );
249 break;
250 case APC_UNMAP_VIEW:
251 fprintf( stderr, "APC_UNMAP_VIEW,status=%s",
252 get_status_name( result->unmap_view.status ) );
253 break;
254 case APC_CREATE_THREAD:
255 fprintf( stderr, "APC_CREATE_THREAD,status=%s,tid=%04x,handle=%04x",
256 get_status_name( result->create_thread.status ),
257 result->create_thread.tid, result->create_thread.handle );
258 break;
259 default:
260 fprintf( stderr, "type=%u", result->type );
261 break;
263 fputc( '}', stderr );
266 static void dump_async_data( const async_data_t *data )
268 fprintf( stderr, "{handle=%04x,event=%04x,callback=%p,iosb=%p,arg=%p,apc=%p,cvalue=}",
269 data->handle, data->event, data->callback, data->iosb, data->arg, data->apc );
270 dump_uint64( &data->cvalue );
273 static void dump_luid( const luid_t *luid )
275 fprintf( stderr, "%d.%u", luid->high_part, luid->low_part );
278 static void dump_context( const CONTEXT *context, data_size_t size )
280 CONTEXT ctx;
282 memset( &ctx, 0, sizeof(ctx) );
283 memcpy( &ctx, context, min( size, sizeof(CONTEXT) ));
284 #ifdef __i386__
285 fprintf( stderr, "{flags=%08x,eax=%08x,ebx=%08x,ecx=%08x,edx=%08x,esi=%08x,edi=%08x,"
286 "ebp=%08x,eip=%08x,esp=%08x,eflags=%08x,cs=%04x,ds=%04x,es=%04x,"
287 "fs=%04x,gs=%04x,dr0=%08x,dr1=%08x,dr2=%08x,dr3=%08x,dr6=%08x,dr7=%08x,",
288 ctx.ContextFlags, ctx.Eax, ctx.Ebx, ctx.Ecx, ctx.Edx,
289 ctx.Esi, ctx.Edi, ctx.Ebp, ctx.Eip, ctx.Esp, ctx.EFlags,
290 ctx.SegCs, ctx.SegDs, ctx.SegEs, ctx.SegFs, ctx.SegGs,
291 ctx.Dr0, ctx.Dr1, ctx.Dr2, ctx.Dr3, ctx.Dr6, ctx.Dr7 );
292 fprintf( stderr, "float=" );
293 dump_uints( (const int *)&ctx.FloatSave, sizeof(ctx.FloatSave) / sizeof(int) );
294 if (size > FIELD_OFFSET( CONTEXT, ExtendedRegisters ))
296 fprintf( stderr, ",extended=" );
297 dump_uints( (const int *)&ctx.ExtendedRegisters, sizeof(ctx.ExtendedRegisters) / sizeof(int) );
299 fprintf( stderr, "}" );
300 #else
301 dump_uints( (const int *)&ctx, sizeof(ctx) / sizeof(int) );
302 #endif
305 static void dump_exc_record( const EXCEPTION_RECORD *rec )
307 unsigned int i;
308 fprintf( stderr, "{code=%x,flags=%x,rec=%p,addr=%p,params={",
309 rec->ExceptionCode, rec->ExceptionFlags, rec->ExceptionRecord,
310 rec->ExceptionAddress );
311 for (i = 0; i < min(rec->NumberParameters,EXCEPTION_MAXIMUM_PARAMETERS); i++)
313 if (i) fputc( ',', stderr );
314 fprintf( stderr, "%lx", rec->ExceptionInformation[i] );
316 fputc( '}', stderr );
319 static void dump_varargs_ints( data_size_t size )
321 const int *data = cur_data;
322 data_size_t len = size / sizeof(*data);
324 fputc( '{', stderr );
325 while (len > 0)
327 fprintf( stderr, "%d", *data++ );
328 if (--len) fputc( ',', stderr );
330 fputc( '}', stderr );
331 remove_data( size );
334 static void dump_varargs_apc_result( data_size_t size )
336 const apc_result_t *result = cur_data;
338 if (size >= sizeof(*result))
340 dump_apc_result( result );
341 size = sizeof(*result);
343 remove_data( size );
346 static void dump_varargs_handles( data_size_t size )
348 const obj_handle_t *data = cur_data;
349 data_size_t len = size / sizeof(*data);
351 fputc( '{', stderr );
352 while (len > 0)
354 fprintf( stderr, "%04x", *data++ );
355 if (--len) fputc( ',', stderr );
357 fputc( '}', stderr );
358 remove_data( size );
361 static void dump_varargs_user_handles( data_size_t size )
363 const user_handle_t *data = cur_data;
364 data_size_t len = size / sizeof(*data);
366 fputc( '{', stderr );
367 while (len > 0)
369 fprintf( stderr, "%08x", *data++ );
370 if (--len) fputc( ',', stderr );
372 fputc( '}', stderr );
373 remove_data( size );
376 static void dump_varargs_bytes( data_size_t size )
378 const unsigned char *data = cur_data;
379 data_size_t len = size;
381 fputc( '{', stderr );
382 while (len > 0)
384 fprintf( stderr, "%02x", *data++ );
385 if (--len) fputc( ',', stderr );
387 fputc( '}', stderr );
388 remove_data( size );
391 static void dump_varargs_string( data_size_t size )
393 fprintf( stderr, "\"%.*s\"", (int)size, (const char *)cur_data );
394 remove_data( size );
397 static void dump_varargs_unicode_str( data_size_t size )
399 fprintf( stderr, "L\"" );
400 dump_strW( cur_data, size / sizeof(WCHAR), stderr, "\"\"" );
401 fputc( '\"', stderr );
402 remove_data( size );
405 static void dump_varargs_context( data_size_t size )
407 if (!size)
409 fprintf( stderr, "{}" );
410 return;
412 dump_context( cur_data, size );
413 remove_data( min( size, sizeof(CONTEXT) ));
416 static void dump_varargs_exc_event( data_size_t size )
418 const CONTEXT *ptr = cur_data;
420 if (!size)
422 fprintf( stderr, "{}" );
423 return;
425 fprintf( stderr, "{context=" );
426 dump_context( ptr, size );
427 if (size > sizeof(CONTEXT))
429 fprintf( stderr, ",rec=" );
430 dump_exc_record( (const EXCEPTION_RECORD *)(ptr + 1) );
432 fputc( '}', stderr );
433 remove_data( size );
436 static void dump_varargs_debug_event( data_size_t size )
438 const debug_event_t *event = cur_data;
440 if (!size)
442 fprintf( stderr, "{}" );
443 return;
445 switch(event->code)
447 case EXCEPTION_DEBUG_EVENT:
448 fprintf( stderr, "{exception," );
449 dump_exc_record( &event->info.exception.record );
450 fprintf( stderr, ",first=%d}", event->info.exception.first );
451 break;
452 case CREATE_THREAD_DEBUG_EVENT:
453 fprintf( stderr, "{create_thread,thread=%04x,teb=%p,start=%p}",
454 event->info.create_thread.handle, event->info.create_thread.teb,
455 event->info.create_thread.start );
456 break;
457 case CREATE_PROCESS_DEBUG_EVENT:
458 fprintf( stderr, "{create_process,file=%04x,process=%04x,thread=%04x,base=%p,offset=%d,"
459 "size=%d,teb=%p,start=%p,name=%p,unicode=%d}",
460 event->info.create_process.file, event->info.create_process.process,
461 event->info.create_process.thread, event->info.create_process.base,
462 event->info.create_process.dbg_offset, event->info.create_process.dbg_size,
463 event->info.create_process.teb, event->info.create_process.start,
464 event->info.create_process.name, event->info.create_process.unicode );
465 break;
466 case EXIT_THREAD_DEBUG_EVENT:
467 fprintf( stderr, "{exit_thread,code=%d}", event->info.exit.exit_code );
468 break;
469 case EXIT_PROCESS_DEBUG_EVENT:
470 fprintf( stderr, "{exit_process,code=%d}", event->info.exit.exit_code );
471 break;
472 case LOAD_DLL_DEBUG_EVENT:
473 fprintf( stderr, "{load_dll,file=%04x,base=%p,offset=%d,size=%d,name=%p,unicode=%d}",
474 event->info.load_dll.handle, event->info.load_dll.base,
475 event->info.load_dll.dbg_offset, event->info.load_dll.dbg_size,
476 event->info.load_dll.name, event->info.load_dll.unicode );
477 break;
478 case UNLOAD_DLL_DEBUG_EVENT:
479 fprintf( stderr, "{unload_dll,base=%p}", event->info.unload_dll.base );
480 break;
481 case OUTPUT_DEBUG_STRING_EVENT:
482 fprintf( stderr, "{output_string,data=%p,unicode=%d,len=%d}",
483 event->info.output_string.string, event->info.output_string.unicode,
484 event->info.output_string.length );
485 break;
486 case RIP_EVENT:
487 fprintf( stderr, "{rip,err=%d,type=%d}",
488 event->info.rip_info.error, event->info.rip_info.type );
489 break;
490 case 0: /* zero is the code returned on timeouts */
491 fprintf( stderr, "{}" );
492 break;
493 default:
494 fprintf( stderr, "{code=??? (%d)}", event->code );
495 break;
497 remove_data( size );
500 /* dump a unicode string contained in a buffer; helper for dump_varargs_startup_info */
501 static void dump_inline_unicode_string( const UNICODE_STRING *str, const void *data, data_size_t size )
503 size_t length = str->Length;
504 size_t offset = (size_t)str->Buffer;
506 if (offset >= size) return;
507 if (offset + length > size) length = size - offset;
508 dump_strW( (const WCHAR *)data + offset/sizeof(WCHAR), length/sizeof(WCHAR), stderr, "\"\"" );
511 static void dump_varargs_startup_info( data_size_t size )
513 const RTL_USER_PROCESS_PARAMETERS *ptr = cur_data;
514 RTL_USER_PROCESS_PARAMETERS params;
516 if (size < sizeof(params.Size))
518 fprintf( stderr, "{}" );
519 return;
521 if (size > ptr->Size) size = ptr->Size;
522 memset( &params, 0, sizeof(params) );
523 memcpy( &params, ptr, min( size, sizeof(params) ));
525 fprintf( stderr, "{AllocationSize=%x,", params.AllocationSize );
526 fprintf( stderr, "Size=%x,", params.Size );
527 fprintf( stderr, "Flags=%x,", params.Flags );
528 fprintf( stderr, "DebugFlags=%x,", params.DebugFlags );
529 fprintf( stderr, "ConsoleHandle=%p,", params.ConsoleHandle );
530 fprintf( stderr, "ConsoleFlags=%x,", params.ConsoleFlags );
531 fprintf( stderr, "hStdInput=%p,", params.hStdInput );
532 fprintf( stderr, "hStdOutput=%p,", params.hStdOutput );
533 fprintf( stderr, "hStdError=%p,", params.hStdError );
534 fprintf( stderr, "CurrentDirectory.Handle=%p,", params.CurrentDirectory.Handle );
535 fprintf( stderr, "dwX=%d,", params.dwX );
536 fprintf( stderr, "dwY=%d,", params.dwY );
537 fprintf( stderr, "dwXSize=%d,", params.dwXSize );
538 fprintf( stderr, "dwYSize=%d,", params.dwYSize );
539 fprintf( stderr, "dwXCountChars=%d,", params.dwXCountChars );
540 fprintf( stderr, "dwYCountChars=%d,", params.dwYCountChars );
541 fprintf( stderr, "dwFillAttribute=%x,", params.dwFillAttribute );
542 fprintf( stderr, "dwFlags=%x,", params.dwFlags );
543 fprintf( stderr, "wShowWindow=%x,", params.wShowWindow );
544 fprintf( stderr, "CurrentDirectory.DosPath=L\"" );
545 dump_inline_unicode_string( &params.CurrentDirectory.DosPath, cur_data, size );
546 fprintf( stderr, "\",DllPath=L\"" );
547 dump_inline_unicode_string( &params.DllPath, cur_data, size );
548 fprintf( stderr, "\",ImagePathName=L\"" );
549 dump_inline_unicode_string( &params.ImagePathName, cur_data, size );
550 fprintf( stderr, "\",CommandLine=L\"" );
551 dump_inline_unicode_string( &params.CommandLine, cur_data, size );
552 fprintf( stderr, "\",WindowTitle=L\"" );
553 dump_inline_unicode_string( &params.WindowTitle, cur_data, size );
554 fprintf( stderr, "\",Desktop=L\"" );
555 dump_inline_unicode_string( &params.Desktop, cur_data, size );
556 fprintf( stderr, "\",ShellInfo=L\"" );
557 dump_inline_unicode_string( &params.ShellInfo, cur_data, size );
558 fprintf( stderr, "\",RuntimeInfo=L\"" );
559 dump_inline_unicode_string( &params.RuntimeInfo, cur_data, size );
560 fprintf( stderr, "\"}" );
561 remove_data( size );
564 static void dump_varargs_input_records( data_size_t size )
566 const INPUT_RECORD *rec = cur_data;
567 data_size_t len = size / sizeof(*rec);
569 fputc( '{', stderr );
570 while (len > 0)
572 fprintf( stderr, "{%04x,...}", rec->EventType );
573 rec++;
574 if (--len) fputc( ',', stderr );
576 fputc( '}', stderr );
577 remove_data( size );
580 static void dump_varargs_rectangles( data_size_t size )
582 const rectangle_t *rect = cur_data;
583 data_size_t len = size / sizeof(*rect);
585 fputc( '{', stderr );
586 while (len > 0)
588 dump_rectangle( rect++ );
589 if (--len) fputc( ',', stderr );
591 fputc( '}', stderr );
592 remove_data( size );
595 static void dump_varargs_message_data( data_size_t size )
597 /* FIXME: dump the structured data */
598 dump_varargs_bytes( size );
601 static void dump_varargs_properties( data_size_t size )
603 const property_data_t *prop = cur_data;
604 data_size_t len = size / sizeof(*prop);
606 fputc( '{', stderr );
607 while (len > 0)
609 fprintf( stderr, "{atom=%04x,str=%d,data=", prop->atom, prop->string );
610 dump_uint64( &prop->data );
611 fputc( '}', stderr );
612 prop++;
613 if (--len) fputc( ',', stderr );
615 fputc( '}', stderr );
616 remove_data( size );
619 static void dump_varargs_LUID_AND_ATTRIBUTES( data_size_t size )
621 const LUID_AND_ATTRIBUTES *lat = cur_data;
622 data_size_t len = size / sizeof(*lat);
624 fputc( '{', stderr );
625 while (len > 0)
627 fprintf( stderr, "{luid=%08x%08x,attr=%x}",
628 lat->Luid.HighPart, lat->Luid.LowPart, lat->Attributes );
629 lat++;
630 if (--len) fputc( ',', stderr );
632 fputc( '}', stderr );
633 remove_data( size );
636 static void dump_inline_sid( const SID *sid, data_size_t size )
638 DWORD i;
640 /* security check */
641 if ((FIELD_OFFSET(SID, SubAuthority[0]) > size) ||
642 (FIELD_OFFSET(SID, SubAuthority[sid->SubAuthorityCount]) > size))
644 fprintf( stderr, "<invalid sid>" );
645 return;
648 fputc( '{', stderr );
649 fprintf( stderr, "S-%u-%u", sid->Revision, MAKELONG(
650 MAKEWORD( sid->IdentifierAuthority.Value[5],
651 sid->IdentifierAuthority.Value[4] ),
652 MAKEWORD( sid->IdentifierAuthority.Value[3],
653 sid->IdentifierAuthority.Value[2] ) ) );
654 for (i = 0; i < sid->SubAuthorityCount; i++)
655 fprintf( stderr, "-%u", sid->SubAuthority[i] );
656 fputc( '}', stderr );
659 static void dump_varargs_SID( data_size_t size )
661 const SID *sid = cur_data;
662 dump_inline_sid( sid, size );
663 remove_data( size );
666 static void dump_inline_acl( const ACL *acl, data_size_t size )
668 const ACE_HEADER *ace;
669 ULONG i;
670 fputc( '{', stderr );
672 if (size)
674 if (size < sizeof(ACL))
676 fprintf( stderr, "<invalid acl>}\n" );
677 return;
679 size -= sizeof(ACL);
680 ace = (const ACE_HEADER *)(acl + 1);
681 for (i = 0; i < acl->AceCount; i++)
683 const SID *sid = NULL;
684 data_size_t sid_size = 0;
686 if (size < sizeof(ACE_HEADER))
687 return;
688 if (size < ace->AceSize)
689 return;
690 size -= ace->AceSize;
691 if (i != 0) fputc( ',', stderr );
692 fprintf( stderr, "{AceType=" );
693 switch (ace->AceType)
695 case ACCESS_DENIED_ACE_TYPE:
696 sid = (const SID *)&((const ACCESS_DENIED_ACE *)ace)->SidStart;
697 sid_size = ace->AceSize - FIELD_OFFSET(ACCESS_DENIED_ACE, SidStart);
698 fprintf( stderr, "ACCESS_DENIED_ACE_TYPE,Mask=%x",
699 ((const ACCESS_DENIED_ACE *)ace)->Mask );
700 break;
701 case ACCESS_ALLOWED_ACE_TYPE:
702 sid = (const SID *)&((const ACCESS_ALLOWED_ACE *)ace)->SidStart;
703 sid_size = ace->AceSize - FIELD_OFFSET(ACCESS_ALLOWED_ACE, SidStart);
704 fprintf( stderr, "ACCESS_ALLOWED_ACE_TYPE,Mask=%x",
705 ((const ACCESS_ALLOWED_ACE *)ace)->Mask );
706 break;
707 case SYSTEM_AUDIT_ACE_TYPE:
708 sid = (const SID *)&((const SYSTEM_AUDIT_ACE *)ace)->SidStart;
709 sid_size = ace->AceSize - FIELD_OFFSET(SYSTEM_AUDIT_ACE, SidStart);
710 fprintf( stderr, "SYSTEM_AUDIT_ACE_TYPE,Mask=%x",
711 ((const SYSTEM_AUDIT_ACE *)ace)->Mask );
712 break;
713 case SYSTEM_ALARM_ACE_TYPE:
714 sid = (const SID *)&((const SYSTEM_ALARM_ACE *)ace)->SidStart;
715 sid_size = ace->AceSize - FIELD_OFFSET(SYSTEM_ALARM_ACE, SidStart);
716 fprintf( stderr, "SYSTEM_ALARM_ACE_TYPE,Mask=%x",
717 ((const SYSTEM_ALARM_ACE *)ace)->Mask );
718 break;
719 default:
720 fprintf( stderr, "unknown<%d>", ace->AceType );
721 break;
723 fprintf( stderr, ",AceFlags=%x,Sid=", ace->AceFlags );
724 if (sid)
725 dump_inline_sid( sid, sid_size );
726 ace = (const ACE_HEADER *)((const char *)ace + ace->AceSize);
727 fputc( '}', stderr );
730 fputc( '}', stderr );
733 static void dump_inline_security_descriptor( const struct security_descriptor *sd, data_size_t size )
735 fputc( '{', stderr );
736 if (size >= sizeof(struct security_descriptor))
738 size_t offset = sizeof(struct security_descriptor);
739 fprintf( stderr, "control=%08x", sd->control );
740 fprintf( stderr, ",owner=" );
741 if ((sd->owner_len > FIELD_OFFSET(SID, SubAuthority[255])) || (offset + sd->owner_len > size))
742 return;
743 if (sd->owner_len)
744 dump_inline_sid( (const SID *)((const char *)sd + offset), sd->owner_len );
745 else
746 fprintf( stderr, "<not present>" );
747 offset += sd->owner_len;
748 fprintf( stderr, ",group=" );
749 if ((sd->group_len > FIELD_OFFSET(SID, SubAuthority[255])) || (offset + sd->group_len > size))
750 return;
751 if (sd->group_len)
752 dump_inline_sid( (const SID *)((const char *)sd + offset), sd->group_len );
753 else
754 fprintf( stderr, "<not present>" );
755 offset += sd->group_len;
756 fprintf( stderr, ",sacl=" );
757 if ((sd->sacl_len >= MAX_ACL_LEN) || (offset + sd->sacl_len > size))
758 return;
759 dump_inline_acl( (const ACL *)((const char *)sd + offset), sd->sacl_len );
760 offset += sd->sacl_len;
761 fprintf( stderr, ",dacl=" );
762 if ((sd->dacl_len >= MAX_ACL_LEN) || (offset + sd->dacl_len > size))
763 return;
764 dump_inline_acl( (const ACL *)((const char *)sd + offset), sd->dacl_len );
765 offset += sd->dacl_len;
767 fputc( '}', stderr );
770 static void dump_varargs_security_descriptor( data_size_t size )
772 const struct security_descriptor *sd = cur_data;
773 dump_inline_security_descriptor( sd, size );
774 remove_data( size );
777 static void dump_varargs_token_groups( data_size_t size )
779 const struct token_groups *tg = cur_data;
780 fputc( '{', stderr );
781 if (size >= sizeof(struct token_groups))
783 size_t offset = sizeof(*tg);
784 fprintf( stderr, "count=%08x,", tg->count );
785 if (tg->count * sizeof(unsigned int) <= size)
787 unsigned int i;
788 const unsigned int *attr = (const unsigned int *)(tg + 1);
790 offset += tg->count * sizeof(unsigned int);
792 fputc( '[', stderr );
793 for (i = 0; i < tg->count; i++)
795 const SID *sid = (const SID *)((const char *)cur_data + offset);
796 if (i != 0)
797 fputc( ',', stderr );
798 fputc( '{', stderr );
799 fprintf( stderr, "attributes=%08x", attr[i] );
800 fprintf( stderr, ",sid=" );
801 dump_inline_sid( sid, size - offset );
802 if ((offset + FIELD_OFFSET(SID, SubAuthority[0]) > size) ||
803 (offset + FIELD_OFFSET(SID, SubAuthority[sid->SubAuthorityCount]) > size))
804 break;
805 offset += FIELD_OFFSET(SID, SubAuthority[sid->SubAuthorityCount]);
806 fputc( '}', stderr );
808 fputc( ']', stderr );
811 fputc( '}', stderr );
814 static void dump_varargs_object_attributes( data_size_t size )
816 const struct object_attributes *objattr = cur_data;
817 fputc( '{', stderr );
818 if (size >= sizeof(struct object_attributes))
820 const WCHAR *str;
821 fprintf( stderr, "rootdir=%04x,sd=", objattr->rootdir );
822 if (objattr->sd_len > size - sizeof(*objattr) ||
823 objattr->name_len > size - sizeof(*objattr) - objattr->sd_len)
824 return;
825 dump_inline_security_descriptor( (const struct security_descriptor *)(objattr + 1), objattr->sd_len );
826 str = (const WCHAR *)objattr + (sizeof(*objattr) + objattr->sd_len) / sizeof(WCHAR);
827 fprintf( stderr, ",name=L\"" );
828 dump_strW( str, objattr->name_len / sizeof(WCHAR), stderr, "\"\"" );
829 fputc( '\"', stderr );
830 remove_data( ((sizeof(*objattr) + objattr->sd_len) / sizeof(WCHAR)) * sizeof(WCHAR) +
831 objattr->name_len );
833 fputc( '}', stderr );
836 typedef void (*dump_func)( const void *req );
838 /* Everything below this line is generated automatically by tools/make_requests */
839 /* ### make_requests begin ### */
841 static void dump_new_process_request( const struct new_process_request *req )
843 fprintf( stderr, " inherit_all=%d,", req->inherit_all );
844 fprintf( stderr, " create_flags=%08x,", req->create_flags );
845 fprintf( stderr, " socket_fd=%d,", req->socket_fd );
846 fprintf( stderr, " exe_file=%04x,", req->exe_file );
847 fprintf( stderr, " hstdin=%04x,", req->hstdin );
848 fprintf( stderr, " hstdout=%04x,", req->hstdout );
849 fprintf( stderr, " hstderr=%04x,", req->hstderr );
850 fprintf( stderr, " process_access=%08x,", req->process_access );
851 fprintf( stderr, " process_attr=%08x,", req->process_attr );
852 fprintf( stderr, " thread_access=%08x,", req->thread_access );
853 fprintf( stderr, " thread_attr=%08x,", req->thread_attr );
854 fprintf( stderr, " info=" );
855 dump_varargs_startup_info( cur_size );
856 fputc( ',', stderr );
857 fprintf( stderr, " env=" );
858 dump_varargs_unicode_str( cur_size );
861 static void dump_new_process_reply( const struct new_process_reply *req )
863 fprintf( stderr, " info=%04x,", req->info );
864 fprintf( stderr, " pid=%04x,", req->pid );
865 fprintf( stderr, " phandle=%04x,", req->phandle );
866 fprintf( stderr, " tid=%04x,", req->tid );
867 fprintf( stderr, " thandle=%04x", req->thandle );
870 static void dump_get_new_process_info_request( const struct get_new_process_info_request *req )
872 fprintf( stderr, " info=%04x", req->info );
875 static void dump_get_new_process_info_reply( const struct get_new_process_info_reply *req )
877 fprintf( stderr, " success=%d,", req->success );
878 fprintf( stderr, " exit_code=%d", req->exit_code );
881 static void dump_new_thread_request( const struct new_thread_request *req )
883 fprintf( stderr, " access=%08x,", req->access );
884 fprintf( stderr, " attributes=%08x,", req->attributes );
885 fprintf( stderr, " suspend=%d,", req->suspend );
886 fprintf( stderr, " request_fd=%d", req->request_fd );
889 static void dump_new_thread_reply( const struct new_thread_reply *req )
891 fprintf( stderr, " tid=%04x,", req->tid );
892 fprintf( stderr, " handle=%04x", req->handle );
895 static void dump_get_startup_info_request( const struct get_startup_info_request *req )
899 static void dump_get_startup_info_reply( const struct get_startup_info_reply *req )
901 fprintf( stderr, " exe_file=%04x,", req->exe_file );
902 fprintf( stderr, " hstdin=%04x,", req->hstdin );
903 fprintf( stderr, " hstdout=%04x,", req->hstdout );
904 fprintf( stderr, " hstderr=%04x,", req->hstderr );
905 fprintf( stderr, " info=" );
906 dump_varargs_startup_info( cur_size );
907 fputc( ',', stderr );
908 fprintf( stderr, " env=" );
909 dump_varargs_unicode_str( cur_size );
912 static void dump_init_process_done_request( const struct init_process_done_request *req )
914 fprintf( stderr, " module=%p,", req->module );
915 fprintf( stderr, " entry=%p,", req->entry );
916 fprintf( stderr, " gui=%d", req->gui );
919 static void dump_init_thread_request( const struct init_thread_request *req )
921 fprintf( stderr, " unix_pid=%d,", req->unix_pid );
922 fprintf( stderr, " unix_tid=%d,", req->unix_tid );
923 fprintf( stderr, " debug_level=%d,", req->debug_level );
924 fprintf( stderr, " teb=%p,", req->teb );
925 fprintf( stderr, " peb=%p,", req->peb );
926 fprintf( stderr, " entry=%p,", req->entry );
927 fprintf( stderr, " ldt_copy=%p,", req->ldt_copy );
928 fprintf( stderr, " reply_fd=%d,", req->reply_fd );
929 fprintf( stderr, " wait_fd=%d", req->wait_fd );
932 static void dump_init_thread_reply( const struct init_thread_reply *req )
934 fprintf( stderr, " pid=%04x,", req->pid );
935 fprintf( stderr, " tid=%04x,", req->tid );
936 fprintf( stderr, " info_size=%u,", req->info_size );
937 fprintf( stderr, " server_start=" );
938 dump_timeout( &req->server_start );
939 fprintf( stderr, "," );
940 fprintf( stderr, " version=%d", req->version );
943 static void dump_terminate_process_request( const struct terminate_process_request *req )
945 fprintf( stderr, " handle=%04x,", req->handle );
946 fprintf( stderr, " exit_code=%d", req->exit_code );
949 static void dump_terminate_process_reply( const struct terminate_process_reply *req )
951 fprintf( stderr, " self=%d", req->self );
954 static void dump_terminate_thread_request( const struct terminate_thread_request *req )
956 fprintf( stderr, " handle=%04x,", req->handle );
957 fprintf( stderr, " exit_code=%d", req->exit_code );
960 static void dump_terminate_thread_reply( const struct terminate_thread_reply *req )
962 fprintf( stderr, " self=%d,", req->self );
963 fprintf( stderr, " last=%d", req->last );
966 static void dump_get_process_info_request( const struct get_process_info_request *req )
968 fprintf( stderr, " handle=%04x", req->handle );
971 static void dump_get_process_info_reply( const struct get_process_info_reply *req )
973 fprintf( stderr, " pid=%04x,", req->pid );
974 fprintf( stderr, " ppid=%04x,", req->ppid );
975 fprintf( stderr, " exit_code=%d,", req->exit_code );
976 fprintf( stderr, " priority=%d,", req->priority );
977 fprintf( stderr, " affinity=%08x,", req->affinity );
978 fprintf( stderr, " peb=%p,", req->peb );
979 fprintf( stderr, " start_time=" );
980 dump_timeout( &req->start_time );
981 fprintf( stderr, "," );
982 fprintf( stderr, " end_time=" );
983 dump_timeout( &req->end_time );
986 static void dump_set_process_info_request( const struct set_process_info_request *req )
988 fprintf( stderr, " handle=%04x,", req->handle );
989 fprintf( stderr, " mask=%d,", req->mask );
990 fprintf( stderr, " priority=%d,", req->priority );
991 fprintf( stderr, " affinity=%08x", req->affinity );
994 static void dump_get_thread_info_request( const struct get_thread_info_request *req )
996 fprintf( stderr, " handle=%04x,", req->handle );
997 fprintf( stderr, " tid_in=%04x", req->tid_in );
1000 static void dump_get_thread_info_reply( const struct get_thread_info_reply *req )
1002 fprintf( stderr, " pid=%04x,", req->pid );
1003 fprintf( stderr, " tid=%04x,", req->tid );
1004 fprintf( stderr, " teb=%p,", req->teb );
1005 fprintf( stderr, " exit_code=%d,", req->exit_code );
1006 fprintf( stderr, " priority=%d,", req->priority );
1007 fprintf( stderr, " affinity=%08x,", req->affinity );
1008 fprintf( stderr, " creation_time=" );
1009 dump_timeout( &req->creation_time );
1010 fprintf( stderr, "," );
1011 fprintf( stderr, " exit_time=" );
1012 dump_timeout( &req->exit_time );
1013 fprintf( stderr, "," );
1014 fprintf( stderr, " last=%d", req->last );
1017 static void dump_set_thread_info_request( const struct set_thread_info_request *req )
1019 fprintf( stderr, " handle=%04x,", req->handle );
1020 fprintf( stderr, " mask=%d,", req->mask );
1021 fprintf( stderr, " priority=%d,", req->priority );
1022 fprintf( stderr, " affinity=%08x,", req->affinity );
1023 fprintf( stderr, " token=%04x", req->token );
1026 static void dump_get_dll_info_request( const struct get_dll_info_request *req )
1028 fprintf( stderr, " handle=%04x,", req->handle );
1029 fprintf( stderr, " base_address=%p", req->base_address );
1032 static void dump_get_dll_info_reply( const struct get_dll_info_reply *req )
1034 fprintf( stderr, " entry_point=%p,", req->entry_point );
1035 fprintf( stderr, " size=%u,", req->size );
1036 fprintf( stderr, " filename_len=%u,", req->filename_len );
1037 fprintf( stderr, " filename=" );
1038 dump_varargs_unicode_str( cur_size );
1041 static void dump_suspend_thread_request( const struct suspend_thread_request *req )
1043 fprintf( stderr, " handle=%04x", req->handle );
1046 static void dump_suspend_thread_reply( const struct suspend_thread_reply *req )
1048 fprintf( stderr, " count=%d", req->count );
1051 static void dump_resume_thread_request( const struct resume_thread_request *req )
1053 fprintf( stderr, " handle=%04x", req->handle );
1056 static void dump_resume_thread_reply( const struct resume_thread_reply *req )
1058 fprintf( stderr, " count=%d", req->count );
1061 static void dump_load_dll_request( const struct load_dll_request *req )
1063 fprintf( stderr, " handle=%04x,", req->handle );
1064 fprintf( stderr, " base=%p,", req->base );
1065 fprintf( stderr, " name=%p,", req->name );
1066 fprintf( stderr, " size=%u,", req->size );
1067 fprintf( stderr, " dbg_offset=%d,", req->dbg_offset );
1068 fprintf( stderr, " dbg_size=%d,", req->dbg_size );
1069 fprintf( stderr, " filename=" );
1070 dump_varargs_unicode_str( cur_size );
1073 static void dump_unload_dll_request( const struct unload_dll_request *req )
1075 fprintf( stderr, " base=%p", req->base );
1078 static void dump_queue_apc_request( const struct queue_apc_request *req )
1080 fprintf( stderr, " handle=%04x,", req->handle );
1081 fprintf( stderr, " call=" );
1082 dump_apc_call( &req->call );
1085 static void dump_queue_apc_reply( const struct queue_apc_reply *req )
1087 fprintf( stderr, " handle=%04x,", req->handle );
1088 fprintf( stderr, " self=%d", req->self );
1091 static void dump_get_apc_result_request( const struct get_apc_result_request *req )
1093 fprintf( stderr, " handle=%04x", req->handle );
1096 static void dump_get_apc_result_reply( const struct get_apc_result_reply *req )
1098 fprintf( stderr, " result=" );
1099 dump_apc_result( &req->result );
1102 static void dump_close_handle_request( const struct close_handle_request *req )
1104 fprintf( stderr, " handle=%04x", req->handle );
1107 static void dump_set_handle_info_request( const struct set_handle_info_request *req )
1109 fprintf( stderr, " handle=%04x,", req->handle );
1110 fprintf( stderr, " flags=%d,", req->flags );
1111 fprintf( stderr, " mask=%d", req->mask );
1114 static void dump_set_handle_info_reply( const struct set_handle_info_reply *req )
1116 fprintf( stderr, " old_flags=%d", req->old_flags );
1119 static void dump_dup_handle_request( const struct dup_handle_request *req )
1121 fprintf( stderr, " src_process=%04x,", req->src_process );
1122 fprintf( stderr, " src_handle=%04x,", req->src_handle );
1123 fprintf( stderr, " dst_process=%04x,", req->dst_process );
1124 fprintf( stderr, " access=%08x,", req->access );
1125 fprintf( stderr, " attributes=%08x,", req->attributes );
1126 fprintf( stderr, " options=%08x", req->options );
1129 static void dump_dup_handle_reply( const struct dup_handle_reply *req )
1131 fprintf( stderr, " handle=%04x,", req->handle );
1132 fprintf( stderr, " self=%d,", req->self );
1133 fprintf( stderr, " closed=%d", req->closed );
1136 static void dump_open_process_request( const struct open_process_request *req )
1138 fprintf( stderr, " pid=%04x,", req->pid );
1139 fprintf( stderr, " access=%08x,", req->access );
1140 fprintf( stderr, " attributes=%08x", req->attributes );
1143 static void dump_open_process_reply( const struct open_process_reply *req )
1145 fprintf( stderr, " handle=%04x", req->handle );
1148 static void dump_open_thread_request( const struct open_thread_request *req )
1150 fprintf( stderr, " tid=%04x,", req->tid );
1151 fprintf( stderr, " access=%08x,", req->access );
1152 fprintf( stderr, " attributes=%08x", req->attributes );
1155 static void dump_open_thread_reply( const struct open_thread_reply *req )
1157 fprintf( stderr, " handle=%04x", req->handle );
1160 static void dump_select_request( const struct select_request *req )
1162 fprintf( stderr, " flags=%d,", req->flags );
1163 fprintf( stderr, " cookie=%p,", req->cookie );
1164 fprintf( stderr, " signal=%04x,", req->signal );
1165 fprintf( stderr, " prev_apc=%04x,", req->prev_apc );
1166 fprintf( stderr, " timeout=" );
1167 dump_timeout( &req->timeout );
1168 fprintf( stderr, "," );
1169 fprintf( stderr, " result=" );
1170 dump_varargs_apc_result( cur_size );
1171 fputc( ',', stderr );
1172 fprintf( stderr, " handles=" );
1173 dump_varargs_handles( cur_size );
1176 static void dump_select_reply( const struct select_reply *req )
1178 fprintf( stderr, " apc_handle=%04x,", req->apc_handle );
1179 fprintf( stderr, " timeout=" );
1180 dump_timeout( &req->timeout );
1181 fprintf( stderr, "," );
1182 fprintf( stderr, " call=" );
1183 dump_apc_call( &req->call );
1186 static void dump_create_event_request( const struct create_event_request *req )
1188 fprintf( stderr, " access=%08x,", req->access );
1189 fprintf( stderr, " attributes=%08x,", req->attributes );
1190 fprintf( stderr, " manual_reset=%d,", req->manual_reset );
1191 fprintf( stderr, " initial_state=%d,", req->initial_state );
1192 fprintf( stderr, " objattr=" );
1193 dump_varargs_object_attributes( cur_size );
1196 static void dump_create_event_reply( const struct create_event_reply *req )
1198 fprintf( stderr, " handle=%04x", req->handle );
1201 static void dump_event_op_request( const struct event_op_request *req )
1203 fprintf( stderr, " handle=%04x,", req->handle );
1204 fprintf( stderr, " op=%d", req->op );
1207 static void dump_open_event_request( const struct open_event_request *req )
1209 fprintf( stderr, " access=%08x,", req->access );
1210 fprintf( stderr, " attributes=%08x,", req->attributes );
1211 fprintf( stderr, " rootdir=%04x,", req->rootdir );
1212 fprintf( stderr, " name=" );
1213 dump_varargs_unicode_str( cur_size );
1216 static void dump_open_event_reply( const struct open_event_reply *req )
1218 fprintf( stderr, " handle=%04x", req->handle );
1221 static void dump_create_mutex_request( const struct create_mutex_request *req )
1223 fprintf( stderr, " access=%08x,", req->access );
1224 fprintf( stderr, " attributes=%08x,", req->attributes );
1225 fprintf( stderr, " owned=%d,", req->owned );
1226 fprintf( stderr, " objattr=" );
1227 dump_varargs_object_attributes( cur_size );
1230 static void dump_create_mutex_reply( const struct create_mutex_reply *req )
1232 fprintf( stderr, " handle=%04x", req->handle );
1235 static void dump_release_mutex_request( const struct release_mutex_request *req )
1237 fprintf( stderr, " handle=%04x", req->handle );
1240 static void dump_release_mutex_reply( const struct release_mutex_reply *req )
1242 fprintf( stderr, " prev_count=%08x", req->prev_count );
1245 static void dump_open_mutex_request( const struct open_mutex_request *req )
1247 fprintf( stderr, " access=%08x,", req->access );
1248 fprintf( stderr, " attributes=%08x,", req->attributes );
1249 fprintf( stderr, " rootdir=%04x,", req->rootdir );
1250 fprintf( stderr, " name=" );
1251 dump_varargs_unicode_str( cur_size );
1254 static void dump_open_mutex_reply( const struct open_mutex_reply *req )
1256 fprintf( stderr, " handle=%04x", req->handle );
1259 static void dump_create_semaphore_request( const struct create_semaphore_request *req )
1261 fprintf( stderr, " access=%08x,", req->access );
1262 fprintf( stderr, " attributes=%08x,", req->attributes );
1263 fprintf( stderr, " initial=%08x,", req->initial );
1264 fprintf( stderr, " max=%08x,", req->max );
1265 fprintf( stderr, " objattr=" );
1266 dump_varargs_object_attributes( cur_size );
1269 static void dump_create_semaphore_reply( const struct create_semaphore_reply *req )
1271 fprintf( stderr, " handle=%04x", req->handle );
1274 static void dump_release_semaphore_request( const struct release_semaphore_request *req )
1276 fprintf( stderr, " handle=%04x,", req->handle );
1277 fprintf( stderr, " count=%08x", req->count );
1280 static void dump_release_semaphore_reply( const struct release_semaphore_reply *req )
1282 fprintf( stderr, " prev_count=%08x", req->prev_count );
1285 static void dump_open_semaphore_request( const struct open_semaphore_request *req )
1287 fprintf( stderr, " access=%08x,", req->access );
1288 fprintf( stderr, " attributes=%08x,", req->attributes );
1289 fprintf( stderr, " rootdir=%04x,", req->rootdir );
1290 fprintf( stderr, " name=" );
1291 dump_varargs_unicode_str( cur_size );
1294 static void dump_open_semaphore_reply( const struct open_semaphore_reply *req )
1296 fprintf( stderr, " handle=%04x", req->handle );
1299 static void dump_create_file_request( const struct create_file_request *req )
1301 fprintf( stderr, " access=%08x,", req->access );
1302 fprintf( stderr, " attributes=%08x,", req->attributes );
1303 fprintf( stderr, " sharing=%08x,", req->sharing );
1304 fprintf( stderr, " create=%d,", req->create );
1305 fprintf( stderr, " options=%08x,", req->options );
1306 fprintf( stderr, " attrs=%08x,", req->attrs );
1307 fprintf( stderr, " objattr=" );
1308 dump_varargs_object_attributes( cur_size );
1309 fputc( ',', stderr );
1310 fprintf( stderr, " filename=" );
1311 dump_varargs_string( cur_size );
1314 static void dump_create_file_reply( const struct create_file_reply *req )
1316 fprintf( stderr, " handle=%04x", req->handle );
1319 static void dump_open_file_object_request( const struct open_file_object_request *req )
1321 fprintf( stderr, " access=%08x,", req->access );
1322 fprintf( stderr, " attributes=%08x,", req->attributes );
1323 fprintf( stderr, " rootdir=%04x,", req->rootdir );
1324 fprintf( stderr, " sharing=%08x,", req->sharing );
1325 fprintf( stderr, " options=%08x,", req->options );
1326 fprintf( stderr, " filename=" );
1327 dump_varargs_unicode_str( cur_size );
1330 static void dump_open_file_object_reply( const struct open_file_object_reply *req )
1332 fprintf( stderr, " handle=%04x", req->handle );
1335 static void dump_alloc_file_handle_request( const struct alloc_file_handle_request *req )
1337 fprintf( stderr, " access=%08x,", req->access );
1338 fprintf( stderr, " attributes=%08x,", req->attributes );
1339 fprintf( stderr, " fd=%d", req->fd );
1342 static void dump_alloc_file_handle_reply( const struct alloc_file_handle_reply *req )
1344 fprintf( stderr, " handle=%04x", req->handle );
1347 static void dump_get_handle_fd_request( const struct get_handle_fd_request *req )
1349 fprintf( stderr, " handle=%04x", req->handle );
1352 static void dump_get_handle_fd_reply( const struct get_handle_fd_reply *req )
1354 fprintf( stderr, " type=%d,", req->type );
1355 fprintf( stderr, " removable=%d,", req->removable );
1356 fprintf( stderr, " access=%08x,", req->access );
1357 fprintf( stderr, " options=%08x", req->options );
1360 static void dump_flush_file_request( const struct flush_file_request *req )
1362 fprintf( stderr, " handle=%04x", req->handle );
1365 static void dump_flush_file_reply( const struct flush_file_reply *req )
1367 fprintf( stderr, " event=%04x", req->event );
1370 static void dump_lock_file_request( const struct lock_file_request *req )
1372 fprintf( stderr, " handle=%04x,", req->handle );
1373 fprintf( stderr, " offset=" );
1374 dump_uint64( &req->offset );
1375 fprintf( stderr, "," );
1376 fprintf( stderr, " count=" );
1377 dump_uint64( &req->count );
1378 fprintf( stderr, "," );
1379 fprintf( stderr, " shared=%d,", req->shared );
1380 fprintf( stderr, " wait=%d", req->wait );
1383 static void dump_lock_file_reply( const struct lock_file_reply *req )
1385 fprintf( stderr, " handle=%04x,", req->handle );
1386 fprintf( stderr, " overlapped=%d", req->overlapped );
1389 static void dump_unlock_file_request( const struct unlock_file_request *req )
1391 fprintf( stderr, " handle=%04x,", req->handle );
1392 fprintf( stderr, " offset=" );
1393 dump_uint64( &req->offset );
1394 fprintf( stderr, "," );
1395 fprintf( stderr, " count=" );
1396 dump_uint64( &req->count );
1399 static void dump_create_socket_request( const struct create_socket_request *req )
1401 fprintf( stderr, " access=%08x,", req->access );
1402 fprintf( stderr, " attributes=%08x,", req->attributes );
1403 fprintf( stderr, " family=%d,", req->family );
1404 fprintf( stderr, " type=%d,", req->type );
1405 fprintf( stderr, " protocol=%d,", req->protocol );
1406 fprintf( stderr, " flags=%08x", req->flags );
1409 static void dump_create_socket_reply( const struct create_socket_reply *req )
1411 fprintf( stderr, " handle=%04x", req->handle );
1414 static void dump_accept_socket_request( const struct accept_socket_request *req )
1416 fprintf( stderr, " lhandle=%04x,", req->lhandle );
1417 fprintf( stderr, " access=%08x,", req->access );
1418 fprintf( stderr, " attributes=%08x", req->attributes );
1421 static void dump_accept_socket_reply( const struct accept_socket_reply *req )
1423 fprintf( stderr, " handle=%04x", req->handle );
1426 static void dump_set_socket_event_request( const struct set_socket_event_request *req )
1428 fprintf( stderr, " handle=%04x,", req->handle );
1429 fprintf( stderr, " mask=%08x,", req->mask );
1430 fprintf( stderr, " event=%04x,", req->event );
1431 fprintf( stderr, " window=%08x,", req->window );
1432 fprintf( stderr, " msg=%08x", req->msg );
1435 static void dump_get_socket_event_request( const struct get_socket_event_request *req )
1437 fprintf( stderr, " handle=%04x,", req->handle );
1438 fprintf( stderr, " service=%d,", req->service );
1439 fprintf( stderr, " c_event=%04x", req->c_event );
1442 static void dump_get_socket_event_reply( const struct get_socket_event_reply *req )
1444 fprintf( stderr, " mask=%08x,", req->mask );
1445 fprintf( stderr, " pmask=%08x,", req->pmask );
1446 fprintf( stderr, " state=%08x,", req->state );
1447 fprintf( stderr, " errors=" );
1448 dump_varargs_ints( cur_size );
1451 static void dump_enable_socket_event_request( const struct enable_socket_event_request *req )
1453 fprintf( stderr, " handle=%04x,", req->handle );
1454 fprintf( stderr, " mask=%08x,", req->mask );
1455 fprintf( stderr, " sstate=%08x,", req->sstate );
1456 fprintf( stderr, " cstate=%08x", req->cstate );
1459 static void dump_set_socket_deferred_request( const struct set_socket_deferred_request *req )
1461 fprintf( stderr, " handle=%04x,", req->handle );
1462 fprintf( stderr, " deferred=%04x", req->deferred );
1465 static void dump_alloc_console_request( const struct alloc_console_request *req )
1467 fprintf( stderr, " access=%08x,", req->access );
1468 fprintf( stderr, " attributes=%08x,", req->attributes );
1469 fprintf( stderr, " pid=%04x", req->pid );
1472 static void dump_alloc_console_reply( const struct alloc_console_reply *req )
1474 fprintf( stderr, " handle_in=%04x,", req->handle_in );
1475 fprintf( stderr, " event=%04x", req->event );
1478 static void dump_free_console_request( const struct free_console_request *req )
1482 static void dump_get_console_renderer_events_request( const struct get_console_renderer_events_request *req )
1484 fprintf( stderr, " handle=%04x", req->handle );
1487 static void dump_get_console_renderer_events_reply( const struct get_console_renderer_events_reply *req )
1489 fprintf( stderr, " data=" );
1490 dump_varargs_bytes( cur_size );
1493 static void dump_open_console_request( const struct open_console_request *req )
1495 fprintf( stderr, " from=%04x,", req->from );
1496 fprintf( stderr, " access=%08x,", req->access );
1497 fprintf( stderr, " attributes=%08x,", req->attributes );
1498 fprintf( stderr, " share=%d", req->share );
1501 static void dump_open_console_reply( const struct open_console_reply *req )
1503 fprintf( stderr, " handle=%04x", req->handle );
1506 static void dump_get_console_wait_event_request( const struct get_console_wait_event_request *req )
1510 static void dump_get_console_wait_event_reply( const struct get_console_wait_event_reply *req )
1512 fprintf( stderr, " handle=%04x", req->handle );
1515 static void dump_get_console_mode_request( const struct get_console_mode_request *req )
1517 fprintf( stderr, " handle=%04x", req->handle );
1520 static void dump_get_console_mode_reply( const struct get_console_mode_reply *req )
1522 fprintf( stderr, " mode=%d", req->mode );
1525 static void dump_set_console_mode_request( const struct set_console_mode_request *req )
1527 fprintf( stderr, " handle=%04x,", req->handle );
1528 fprintf( stderr, " mode=%d", req->mode );
1531 static void dump_set_console_input_info_request( const struct set_console_input_info_request *req )
1533 fprintf( stderr, " handle=%04x,", req->handle );
1534 fprintf( stderr, " mask=%d,", req->mask );
1535 fprintf( stderr, " active_sb=%04x,", req->active_sb );
1536 fprintf( stderr, " history_mode=%d,", req->history_mode );
1537 fprintf( stderr, " history_size=%d,", req->history_size );
1538 fprintf( stderr, " edition_mode=%d,", req->edition_mode );
1539 fprintf( stderr, " input_cp=%d,", req->input_cp );
1540 fprintf( stderr, " output_cp=%d,", req->output_cp );
1541 fprintf( stderr, " win=%08x,", req->win );
1542 fprintf( stderr, " title=" );
1543 dump_varargs_unicode_str( cur_size );
1546 static void dump_get_console_input_info_request( const struct get_console_input_info_request *req )
1548 fprintf( stderr, " handle=%04x", req->handle );
1551 static void dump_get_console_input_info_reply( const struct get_console_input_info_reply *req )
1553 fprintf( stderr, " history_mode=%d,", req->history_mode );
1554 fprintf( stderr, " history_size=%d,", req->history_size );
1555 fprintf( stderr, " history_index=%d,", req->history_index );
1556 fprintf( stderr, " edition_mode=%d,", req->edition_mode );
1557 fprintf( stderr, " input_cp=%d,", req->input_cp );
1558 fprintf( stderr, " output_cp=%d,", req->output_cp );
1559 fprintf( stderr, " win=%08x,", req->win );
1560 fprintf( stderr, " title=" );
1561 dump_varargs_unicode_str( cur_size );
1564 static void dump_append_console_input_history_request( const struct append_console_input_history_request *req )
1566 fprintf( stderr, " handle=%04x,", req->handle );
1567 fprintf( stderr, " line=" );
1568 dump_varargs_unicode_str( cur_size );
1571 static void dump_get_console_input_history_request( const struct get_console_input_history_request *req )
1573 fprintf( stderr, " handle=%04x,", req->handle );
1574 fprintf( stderr, " index=%d", req->index );
1577 static void dump_get_console_input_history_reply( const struct get_console_input_history_reply *req )
1579 fprintf( stderr, " total=%d,", req->total );
1580 fprintf( stderr, " line=" );
1581 dump_varargs_unicode_str( cur_size );
1584 static void dump_create_console_output_request( const struct create_console_output_request *req )
1586 fprintf( stderr, " handle_in=%04x,", req->handle_in );
1587 fprintf( stderr, " access=%08x,", req->access );
1588 fprintf( stderr, " attributes=%08x,", req->attributes );
1589 fprintf( stderr, " share=%08x", req->share );
1592 static void dump_create_console_output_reply( const struct create_console_output_reply *req )
1594 fprintf( stderr, " handle_out=%04x", req->handle_out );
1597 static void dump_set_console_output_info_request( const struct set_console_output_info_request *req )
1599 fprintf( stderr, " handle=%04x,", req->handle );
1600 fprintf( stderr, " mask=%d,", req->mask );
1601 fprintf( stderr, " cursor_size=%d,", req->cursor_size );
1602 fprintf( stderr, " cursor_visible=%d,", req->cursor_visible );
1603 fprintf( stderr, " cursor_x=%d,", req->cursor_x );
1604 fprintf( stderr, " cursor_y=%d,", req->cursor_y );
1605 fprintf( stderr, " width=%d,", req->width );
1606 fprintf( stderr, " height=%d,", req->height );
1607 fprintf( stderr, " attr=%d,", req->attr );
1608 fprintf( stderr, " win_left=%d,", req->win_left );
1609 fprintf( stderr, " win_top=%d,", req->win_top );
1610 fprintf( stderr, " win_right=%d,", req->win_right );
1611 fprintf( stderr, " win_bottom=%d,", req->win_bottom );
1612 fprintf( stderr, " max_width=%d,", req->max_width );
1613 fprintf( stderr, " max_height=%d", req->max_height );
1616 static void dump_get_console_output_info_request( const struct get_console_output_info_request *req )
1618 fprintf( stderr, " handle=%04x", req->handle );
1621 static void dump_get_console_output_info_reply( const struct get_console_output_info_reply *req )
1623 fprintf( stderr, " cursor_size=%d,", req->cursor_size );
1624 fprintf( stderr, " cursor_visible=%d,", req->cursor_visible );
1625 fprintf( stderr, " cursor_x=%d,", req->cursor_x );
1626 fprintf( stderr, " cursor_y=%d,", req->cursor_y );
1627 fprintf( stderr, " width=%d,", req->width );
1628 fprintf( stderr, " height=%d,", req->height );
1629 fprintf( stderr, " attr=%d,", req->attr );
1630 fprintf( stderr, " win_left=%d,", req->win_left );
1631 fprintf( stderr, " win_top=%d,", req->win_top );
1632 fprintf( stderr, " win_right=%d,", req->win_right );
1633 fprintf( stderr, " win_bottom=%d,", req->win_bottom );
1634 fprintf( stderr, " max_width=%d,", req->max_width );
1635 fprintf( stderr, " max_height=%d", req->max_height );
1638 static void dump_write_console_input_request( const struct write_console_input_request *req )
1640 fprintf( stderr, " handle=%04x,", req->handle );
1641 fprintf( stderr, " rec=" );
1642 dump_varargs_input_records( cur_size );
1645 static void dump_write_console_input_reply( const struct write_console_input_reply *req )
1647 fprintf( stderr, " written=%d", req->written );
1650 static void dump_read_console_input_request( const struct read_console_input_request *req )
1652 fprintf( stderr, " handle=%04x,", req->handle );
1653 fprintf( stderr, " flush=%d", req->flush );
1656 static void dump_read_console_input_reply( const struct read_console_input_reply *req )
1658 fprintf( stderr, " read=%d,", req->read );
1659 fprintf( stderr, " rec=" );
1660 dump_varargs_input_records( cur_size );
1663 static void dump_write_console_output_request( const struct write_console_output_request *req )
1665 fprintf( stderr, " handle=%04x,", req->handle );
1666 fprintf( stderr, " x=%d,", req->x );
1667 fprintf( stderr, " y=%d,", req->y );
1668 fprintf( stderr, " mode=%d,", req->mode );
1669 fprintf( stderr, " wrap=%d,", req->wrap );
1670 fprintf( stderr, " data=" );
1671 dump_varargs_bytes( cur_size );
1674 static void dump_write_console_output_reply( const struct write_console_output_reply *req )
1676 fprintf( stderr, " written=%d,", req->written );
1677 fprintf( stderr, " width=%d,", req->width );
1678 fprintf( stderr, " height=%d", req->height );
1681 static void dump_fill_console_output_request( const struct fill_console_output_request *req )
1683 fprintf( stderr, " handle=%04x,", req->handle );
1684 fprintf( stderr, " x=%d,", req->x );
1685 fprintf( stderr, " y=%d,", req->y );
1686 fprintf( stderr, " mode=%d,", req->mode );
1687 fprintf( stderr, " count=%d,", req->count );
1688 fprintf( stderr, " wrap=%d,", req->wrap );
1689 fprintf( stderr, " data=" );
1690 dump_char_info( &req->data );
1693 static void dump_fill_console_output_reply( const struct fill_console_output_reply *req )
1695 fprintf( stderr, " written=%d", req->written );
1698 static void dump_read_console_output_request( const struct read_console_output_request *req )
1700 fprintf( stderr, " handle=%04x,", req->handle );
1701 fprintf( stderr, " x=%d,", req->x );
1702 fprintf( stderr, " y=%d,", req->y );
1703 fprintf( stderr, " mode=%d,", req->mode );
1704 fprintf( stderr, " wrap=%d", req->wrap );
1707 static void dump_read_console_output_reply( const struct read_console_output_reply *req )
1709 fprintf( stderr, " width=%d,", req->width );
1710 fprintf( stderr, " height=%d,", req->height );
1711 fprintf( stderr, " data=" );
1712 dump_varargs_bytes( cur_size );
1715 static void dump_move_console_output_request( const struct move_console_output_request *req )
1717 fprintf( stderr, " handle=%04x,", req->handle );
1718 fprintf( stderr, " x_src=%d,", req->x_src );
1719 fprintf( stderr, " y_src=%d,", req->y_src );
1720 fprintf( stderr, " x_dst=%d,", req->x_dst );
1721 fprintf( stderr, " y_dst=%d,", req->y_dst );
1722 fprintf( stderr, " w=%d,", req->w );
1723 fprintf( stderr, " h=%d", req->h );
1726 static void dump_send_console_signal_request( const struct send_console_signal_request *req )
1728 fprintf( stderr, " signal=%d,", req->signal );
1729 fprintf( stderr, " group_id=%04x", req->group_id );
1732 static void dump_read_directory_changes_request( const struct read_directory_changes_request *req )
1734 fprintf( stderr, " filter=%08x,", req->filter );
1735 fprintf( stderr, " subtree=%d,", req->subtree );
1736 fprintf( stderr, " want_data=%d,", req->want_data );
1737 fprintf( stderr, " async=" );
1738 dump_async_data( &req->async );
1741 static void dump_read_change_request( const struct read_change_request *req )
1743 fprintf( stderr, " handle=%04x", req->handle );
1746 static void dump_read_change_reply( const struct read_change_reply *req )
1748 fprintf( stderr, " action=%d,", req->action );
1749 fprintf( stderr, " name=" );
1750 dump_varargs_string( cur_size );
1753 static void dump_create_mapping_request( const struct create_mapping_request *req )
1755 fprintf( stderr, " access=%08x,", req->access );
1756 fprintf( stderr, " attributes=%08x,", req->attributes );
1757 fprintf( stderr, " size=" );
1758 dump_uint64( &req->size );
1759 fprintf( stderr, "," );
1760 fprintf( stderr, " protect=%08x,", req->protect );
1761 fprintf( stderr, " file_handle=%04x,", req->file_handle );
1762 fprintf( stderr, " objattr=" );
1763 dump_varargs_object_attributes( cur_size );
1766 static void dump_create_mapping_reply( const struct create_mapping_reply *req )
1768 fprintf( stderr, " handle=%04x", req->handle );
1771 static void dump_open_mapping_request( const struct open_mapping_request *req )
1773 fprintf( stderr, " access=%08x,", req->access );
1774 fprintf( stderr, " attributes=%08x,", req->attributes );
1775 fprintf( stderr, " rootdir=%04x,", req->rootdir );
1776 fprintf( stderr, " name=" );
1777 dump_varargs_unicode_str( cur_size );
1780 static void dump_open_mapping_reply( const struct open_mapping_reply *req )
1782 fprintf( stderr, " handle=%04x", req->handle );
1785 static void dump_get_mapping_info_request( const struct get_mapping_info_request *req )
1787 fprintf( stderr, " handle=%04x,", req->handle );
1788 fprintf( stderr, " access=%08x", req->access );
1791 static void dump_get_mapping_info_reply( const struct get_mapping_info_reply *req )
1793 fprintf( stderr, " size=" );
1794 dump_uint64( &req->size );
1795 fprintf( stderr, "," );
1796 fprintf( stderr, " protect=%d,", req->protect );
1797 fprintf( stderr, " header_size=%d,", req->header_size );
1798 fprintf( stderr, " base=%p,", req->base );
1799 fprintf( stderr, " mapping=%04x,", req->mapping );
1800 fprintf( stderr, " shared_file=%04x", req->shared_file );
1803 static void dump_get_mapping_committed_range_request( const struct get_mapping_committed_range_request *req )
1805 fprintf( stderr, " handle=%04x,", req->handle );
1806 fprintf( stderr, " offset=" );
1807 dump_uint64( &req->offset );
1810 static void dump_get_mapping_committed_range_reply( const struct get_mapping_committed_range_reply *req )
1812 fprintf( stderr, " size=" );
1813 dump_uint64( &req->size );
1814 fprintf( stderr, "," );
1815 fprintf( stderr, " committed=%d", req->committed );
1818 static void dump_add_mapping_committed_range_request( const struct add_mapping_committed_range_request *req )
1820 fprintf( stderr, " handle=%04x,", req->handle );
1821 fprintf( stderr, " offset=" );
1822 dump_uint64( &req->offset );
1823 fprintf( stderr, "," );
1824 fprintf( stderr, " size=" );
1825 dump_uint64( &req->size );
1828 static void dump_create_snapshot_request( const struct create_snapshot_request *req )
1830 fprintf( stderr, " attributes=%08x,", req->attributes );
1831 fprintf( stderr, " flags=%08x", req->flags );
1834 static void dump_create_snapshot_reply( const struct create_snapshot_reply *req )
1836 fprintf( stderr, " handle=%04x", req->handle );
1839 static void dump_next_process_request( const struct next_process_request *req )
1841 fprintf( stderr, " handle=%04x,", req->handle );
1842 fprintf( stderr, " reset=%d", req->reset );
1845 static void dump_next_process_reply( const struct next_process_reply *req )
1847 fprintf( stderr, " count=%d,", req->count );
1848 fprintf( stderr, " pid=%04x,", req->pid );
1849 fprintf( stderr, " ppid=%04x,", req->ppid );
1850 fprintf( stderr, " threads=%d,", req->threads );
1851 fprintf( stderr, " priority=%d,", req->priority );
1852 fprintf( stderr, " handles=%d,", req->handles );
1853 fprintf( stderr, " filename=" );
1854 dump_varargs_unicode_str( cur_size );
1857 static void dump_next_thread_request( const struct next_thread_request *req )
1859 fprintf( stderr, " handle=%04x,", req->handle );
1860 fprintf( stderr, " reset=%d", req->reset );
1863 static void dump_next_thread_reply( const struct next_thread_reply *req )
1865 fprintf( stderr, " count=%d,", req->count );
1866 fprintf( stderr, " pid=%04x,", req->pid );
1867 fprintf( stderr, " tid=%04x,", req->tid );
1868 fprintf( stderr, " base_pri=%d,", req->base_pri );
1869 fprintf( stderr, " delta_pri=%d", req->delta_pri );
1872 static void dump_wait_debug_event_request( const struct wait_debug_event_request *req )
1874 fprintf( stderr, " get_handle=%d", req->get_handle );
1877 static void dump_wait_debug_event_reply( const struct wait_debug_event_reply *req )
1879 fprintf( stderr, " pid=%04x,", req->pid );
1880 fprintf( stderr, " tid=%04x,", req->tid );
1881 fprintf( stderr, " wait=%04x,", req->wait );
1882 fprintf( stderr, " event=" );
1883 dump_varargs_debug_event( cur_size );
1886 static void dump_queue_exception_event_request( const struct queue_exception_event_request *req )
1888 fprintf( stderr, " first=%d,", req->first );
1889 fprintf( stderr, " record=" );
1890 dump_varargs_exc_event( cur_size );
1893 static void dump_queue_exception_event_reply( const struct queue_exception_event_reply *req )
1895 fprintf( stderr, " handle=%04x", req->handle );
1898 static void dump_get_exception_status_request( const struct get_exception_status_request *req )
1900 fprintf( stderr, " handle=%04x", req->handle );
1903 static void dump_get_exception_status_reply( const struct get_exception_status_reply *req )
1905 fprintf( stderr, " context=" );
1906 dump_varargs_context( cur_size );
1909 static void dump_output_debug_string_request( const struct output_debug_string_request *req )
1911 fprintf( stderr, " string=%p,", req->string );
1912 fprintf( stderr, " unicode=%d,", req->unicode );
1913 fprintf( stderr, " length=%d", req->length );
1916 static void dump_continue_debug_event_request( const struct continue_debug_event_request *req )
1918 fprintf( stderr, " pid=%04x,", req->pid );
1919 fprintf( stderr, " tid=%04x,", req->tid );
1920 fprintf( stderr, " status=%d", req->status );
1923 static void dump_debug_process_request( const struct debug_process_request *req )
1925 fprintf( stderr, " pid=%04x,", req->pid );
1926 fprintf( stderr, " attach=%d", req->attach );
1929 static void dump_debug_break_request( const struct debug_break_request *req )
1931 fprintf( stderr, " handle=%04x", req->handle );
1934 static void dump_debug_break_reply( const struct debug_break_reply *req )
1936 fprintf( stderr, " self=%d", req->self );
1939 static void dump_set_debugger_kill_on_exit_request( const struct set_debugger_kill_on_exit_request *req )
1941 fprintf( stderr, " kill_on_exit=%d", req->kill_on_exit );
1944 static void dump_read_process_memory_request( const struct read_process_memory_request *req )
1946 fprintf( stderr, " handle=%04x,", req->handle );
1947 fprintf( stderr, " addr=%p", req->addr );
1950 static void dump_read_process_memory_reply( const struct read_process_memory_reply *req )
1952 fprintf( stderr, " data=" );
1953 dump_varargs_bytes( cur_size );
1956 static void dump_write_process_memory_request( const struct write_process_memory_request *req )
1958 fprintf( stderr, " handle=%04x,", req->handle );
1959 fprintf( stderr, " addr=%p,", req->addr );
1960 fprintf( stderr, " data=" );
1961 dump_varargs_bytes( cur_size );
1964 static void dump_create_key_request( const struct create_key_request *req )
1966 fprintf( stderr, " parent=%04x,", req->parent );
1967 fprintf( stderr, " access=%08x,", req->access );
1968 fprintf( stderr, " attributes=%08x,", req->attributes );
1969 fprintf( stderr, " options=%08x,", req->options );
1970 fprintf( stderr, " namelen=%u,", req->namelen );
1971 fprintf( stderr, " name=" );
1972 dump_varargs_unicode_str( min(cur_size,req->namelen) );
1973 fputc( ',', stderr );
1974 fprintf( stderr, " class=" );
1975 dump_varargs_unicode_str( cur_size );
1978 static void dump_create_key_reply( const struct create_key_reply *req )
1980 fprintf( stderr, " hkey=%04x,", req->hkey );
1981 fprintf( stderr, " created=%d", req->created );
1984 static void dump_open_key_request( const struct open_key_request *req )
1986 fprintf( stderr, " parent=%04x,", req->parent );
1987 fprintf( stderr, " access=%08x,", req->access );
1988 fprintf( stderr, " attributes=%08x,", req->attributes );
1989 fprintf( stderr, " name=" );
1990 dump_varargs_unicode_str( cur_size );
1993 static void dump_open_key_reply( const struct open_key_reply *req )
1995 fprintf( stderr, " hkey=%04x", req->hkey );
1998 static void dump_delete_key_request( const struct delete_key_request *req )
2000 fprintf( stderr, " hkey=%04x", req->hkey );
2003 static void dump_flush_key_request( const struct flush_key_request *req )
2005 fprintf( stderr, " hkey=%04x", req->hkey );
2008 static void dump_enum_key_request( const struct enum_key_request *req )
2010 fprintf( stderr, " hkey=%04x,", req->hkey );
2011 fprintf( stderr, " index=%d,", req->index );
2012 fprintf( stderr, " info_class=%d", req->info_class );
2015 static void dump_enum_key_reply( const struct enum_key_reply *req )
2017 fprintf( stderr, " subkeys=%d,", req->subkeys );
2018 fprintf( stderr, " max_subkey=%d,", req->max_subkey );
2019 fprintf( stderr, " max_class=%d,", req->max_class );
2020 fprintf( stderr, " values=%d,", req->values );
2021 fprintf( stderr, " max_value=%d,", req->max_value );
2022 fprintf( stderr, " max_data=%d,", req->max_data );
2023 fprintf( stderr, " modif=" );
2024 dump_timeout( &req->modif );
2025 fprintf( stderr, "," );
2026 fprintf( stderr, " total=%u,", req->total );
2027 fprintf( stderr, " namelen=%u,", req->namelen );
2028 fprintf( stderr, " name=" );
2029 dump_varargs_unicode_str( min(cur_size,req->namelen) );
2030 fputc( ',', stderr );
2031 fprintf( stderr, " class=" );
2032 dump_varargs_unicode_str( cur_size );
2035 static void dump_set_key_value_request( const struct set_key_value_request *req )
2037 fprintf( stderr, " hkey=%04x,", req->hkey );
2038 fprintf( stderr, " type=%d,", req->type );
2039 fprintf( stderr, " namelen=%u,", req->namelen );
2040 fprintf( stderr, " name=" );
2041 dump_varargs_unicode_str( min(cur_size,req->namelen) );
2042 fputc( ',', stderr );
2043 fprintf( stderr, " data=" );
2044 dump_varargs_bytes( cur_size );
2047 static void dump_get_key_value_request( const struct get_key_value_request *req )
2049 fprintf( stderr, " hkey=%04x,", req->hkey );
2050 fprintf( stderr, " name=" );
2051 dump_varargs_unicode_str( cur_size );
2054 static void dump_get_key_value_reply( const struct get_key_value_reply *req )
2056 fprintf( stderr, " type=%d,", req->type );
2057 fprintf( stderr, " total=%u,", req->total );
2058 fprintf( stderr, " data=" );
2059 dump_varargs_bytes( cur_size );
2062 static void dump_enum_key_value_request( const struct enum_key_value_request *req )
2064 fprintf( stderr, " hkey=%04x,", req->hkey );
2065 fprintf( stderr, " index=%d,", req->index );
2066 fprintf( stderr, " info_class=%d", req->info_class );
2069 static void dump_enum_key_value_reply( const struct enum_key_value_reply *req )
2071 fprintf( stderr, " type=%d,", req->type );
2072 fprintf( stderr, " total=%u,", req->total );
2073 fprintf( stderr, " namelen=%u,", req->namelen );
2074 fprintf( stderr, " name=" );
2075 dump_varargs_unicode_str( min(cur_size,req->namelen) );
2076 fputc( ',', stderr );
2077 fprintf( stderr, " data=" );
2078 dump_varargs_bytes( cur_size );
2081 static void dump_delete_key_value_request( const struct delete_key_value_request *req )
2083 fprintf( stderr, " hkey=%04x,", req->hkey );
2084 fprintf( stderr, " name=" );
2085 dump_varargs_unicode_str( cur_size );
2088 static void dump_load_registry_request( const struct load_registry_request *req )
2090 fprintf( stderr, " hkey=%04x,", req->hkey );
2091 fprintf( stderr, " file=%04x,", req->file );
2092 fprintf( stderr, " name=" );
2093 dump_varargs_unicode_str( cur_size );
2096 static void dump_unload_registry_request( const struct unload_registry_request *req )
2098 fprintf( stderr, " hkey=%04x", req->hkey );
2101 static void dump_save_registry_request( const struct save_registry_request *req )
2103 fprintf( stderr, " hkey=%04x,", req->hkey );
2104 fprintf( stderr, " file=%04x", req->file );
2107 static void dump_set_registry_notification_request( const struct set_registry_notification_request *req )
2109 fprintf( stderr, " hkey=%04x,", req->hkey );
2110 fprintf( stderr, " event=%04x,", req->event );
2111 fprintf( stderr, " subtree=%d,", req->subtree );
2112 fprintf( stderr, " filter=%08x", req->filter );
2115 static void dump_create_timer_request( const struct create_timer_request *req )
2117 fprintf( stderr, " access=%08x,", req->access );
2118 fprintf( stderr, " attributes=%08x,", req->attributes );
2119 fprintf( stderr, " rootdir=%04x,", req->rootdir );
2120 fprintf( stderr, " manual=%d,", req->manual );
2121 fprintf( stderr, " name=" );
2122 dump_varargs_unicode_str( cur_size );
2125 static void dump_create_timer_reply( const struct create_timer_reply *req )
2127 fprintf( stderr, " handle=%04x", req->handle );
2130 static void dump_open_timer_request( const struct open_timer_request *req )
2132 fprintf( stderr, " access=%08x,", req->access );
2133 fprintf( stderr, " attributes=%08x,", req->attributes );
2134 fprintf( stderr, " rootdir=%04x,", req->rootdir );
2135 fprintf( stderr, " name=" );
2136 dump_varargs_unicode_str( cur_size );
2139 static void dump_open_timer_reply( const struct open_timer_reply *req )
2141 fprintf( stderr, " handle=%04x", req->handle );
2144 static void dump_set_timer_request( const struct set_timer_request *req )
2146 fprintf( stderr, " handle=%04x,", req->handle );
2147 fprintf( stderr, " expire=" );
2148 dump_timeout( &req->expire );
2149 fprintf( stderr, "," );
2150 fprintf( stderr, " period=%d,", req->period );
2151 fprintf( stderr, " callback=%p,", req->callback );
2152 fprintf( stderr, " arg=%p", req->arg );
2155 static void dump_set_timer_reply( const struct set_timer_reply *req )
2157 fprintf( stderr, " signaled=%d", req->signaled );
2160 static void dump_cancel_timer_request( const struct cancel_timer_request *req )
2162 fprintf( stderr, " handle=%04x", req->handle );
2165 static void dump_cancel_timer_reply( const struct cancel_timer_reply *req )
2167 fprintf( stderr, " signaled=%d", req->signaled );
2170 static void dump_get_timer_info_request( const struct get_timer_info_request *req )
2172 fprintf( stderr, " handle=%04x", req->handle );
2175 static void dump_get_timer_info_reply( const struct get_timer_info_reply *req )
2177 fprintf( stderr, " when=" );
2178 dump_timeout( &req->when );
2179 fprintf( stderr, "," );
2180 fprintf( stderr, " signaled=%d", req->signaled );
2183 static void dump_get_thread_context_request( const struct get_thread_context_request *req )
2185 fprintf( stderr, " handle=%04x,", req->handle );
2186 fprintf( stderr, " flags=%08x,", req->flags );
2187 fprintf( stderr, " suspend=%d", req->suspend );
2190 static void dump_get_thread_context_reply( const struct get_thread_context_reply *req )
2192 fprintf( stderr, " self=%d,", req->self );
2193 fprintf( stderr, " context=" );
2194 dump_varargs_context( cur_size );
2197 static void dump_set_thread_context_request( const struct set_thread_context_request *req )
2199 fprintf( stderr, " handle=%04x,", req->handle );
2200 fprintf( stderr, " flags=%08x,", req->flags );
2201 fprintf( stderr, " suspend=%d,", req->suspend );
2202 fprintf( stderr, " context=" );
2203 dump_varargs_context( cur_size );
2206 static void dump_set_thread_context_reply( const struct set_thread_context_reply *req )
2208 fprintf( stderr, " self=%d", req->self );
2211 static void dump_get_selector_entry_request( const struct get_selector_entry_request *req )
2213 fprintf( stderr, " handle=%04x,", req->handle );
2214 fprintf( stderr, " entry=%d", req->entry );
2217 static void dump_get_selector_entry_reply( const struct get_selector_entry_reply *req )
2219 fprintf( stderr, " base=%08x,", req->base );
2220 fprintf( stderr, " limit=%08x,", req->limit );
2221 fprintf( stderr, " flags=%02x", req->flags );
2224 static void dump_add_atom_request( const struct add_atom_request *req )
2226 fprintf( stderr, " table=%04x,", req->table );
2227 fprintf( stderr, " name=" );
2228 dump_varargs_unicode_str( cur_size );
2231 static void dump_add_atom_reply( const struct add_atom_reply *req )
2233 fprintf( stderr, " atom=%04x", req->atom );
2236 static void dump_delete_atom_request( const struct delete_atom_request *req )
2238 fprintf( stderr, " table=%04x,", req->table );
2239 fprintf( stderr, " atom=%04x", req->atom );
2242 static void dump_find_atom_request( const struct find_atom_request *req )
2244 fprintf( stderr, " table=%04x,", req->table );
2245 fprintf( stderr, " name=" );
2246 dump_varargs_unicode_str( cur_size );
2249 static void dump_find_atom_reply( const struct find_atom_reply *req )
2251 fprintf( stderr, " atom=%04x", req->atom );
2254 static void dump_get_atom_information_request( const struct get_atom_information_request *req )
2256 fprintf( stderr, " table=%04x,", req->table );
2257 fprintf( stderr, " atom=%04x", req->atom );
2260 static void dump_get_atom_information_reply( const struct get_atom_information_reply *req )
2262 fprintf( stderr, " count=%d,", req->count );
2263 fprintf( stderr, " pinned=%d,", req->pinned );
2264 fprintf( stderr, " total=%u,", req->total );
2265 fprintf( stderr, " name=" );
2266 dump_varargs_unicode_str( cur_size );
2269 static void dump_set_atom_information_request( const struct set_atom_information_request *req )
2271 fprintf( stderr, " table=%04x,", req->table );
2272 fprintf( stderr, " atom=%04x,", req->atom );
2273 fprintf( stderr, " pinned=%d", req->pinned );
2276 static void dump_empty_atom_table_request( const struct empty_atom_table_request *req )
2278 fprintf( stderr, " table=%04x,", req->table );
2279 fprintf( stderr, " if_pinned=%d", req->if_pinned );
2282 static void dump_init_atom_table_request( const struct init_atom_table_request *req )
2284 fprintf( stderr, " entries=%d", req->entries );
2287 static void dump_init_atom_table_reply( const struct init_atom_table_reply *req )
2289 fprintf( stderr, " table=%04x", req->table );
2292 static void dump_get_msg_queue_request( const struct get_msg_queue_request *req )
2296 static void dump_get_msg_queue_reply( const struct get_msg_queue_reply *req )
2298 fprintf( stderr, " handle=%04x", req->handle );
2301 static void dump_set_queue_fd_request( const struct set_queue_fd_request *req )
2303 fprintf( stderr, " handle=%04x", req->handle );
2306 static void dump_set_queue_mask_request( const struct set_queue_mask_request *req )
2308 fprintf( stderr, " wake_mask=%08x,", req->wake_mask );
2309 fprintf( stderr, " changed_mask=%08x,", req->changed_mask );
2310 fprintf( stderr, " skip_wait=%d", req->skip_wait );
2313 static void dump_set_queue_mask_reply( const struct set_queue_mask_reply *req )
2315 fprintf( stderr, " wake_bits=%08x,", req->wake_bits );
2316 fprintf( stderr, " changed_bits=%08x", req->changed_bits );
2319 static void dump_get_queue_status_request( const struct get_queue_status_request *req )
2321 fprintf( stderr, " clear=%d", req->clear );
2324 static void dump_get_queue_status_reply( const struct get_queue_status_reply *req )
2326 fprintf( stderr, " wake_bits=%08x,", req->wake_bits );
2327 fprintf( stderr, " changed_bits=%08x", req->changed_bits );
2330 static void dump_get_process_idle_event_request( const struct get_process_idle_event_request *req )
2332 fprintf( stderr, " handle=%04x", req->handle );
2335 static void dump_get_process_idle_event_reply( const struct get_process_idle_event_reply *req )
2337 fprintf( stderr, " event=%04x", req->event );
2340 static void dump_send_message_request( const struct send_message_request *req )
2342 fprintf( stderr, " id=%04x,", req->id );
2343 fprintf( stderr, " type=%d,", req->type );
2344 fprintf( stderr, " flags=%d,", req->flags );
2345 fprintf( stderr, " win=%08x,", req->win );
2346 fprintf( stderr, " msg=%08x,", req->msg );
2347 fprintf( stderr, " wparam=" );
2348 dump_uint64( &req->wparam );
2349 fprintf( stderr, "," );
2350 fprintf( stderr, " lparam=" );
2351 dump_uint64( &req->lparam );
2352 fprintf( stderr, "," );
2353 fprintf( stderr, " timeout=" );
2354 dump_timeout( &req->timeout );
2355 fprintf( stderr, "," );
2356 fprintf( stderr, " data=" );
2357 dump_varargs_message_data( cur_size );
2360 static void dump_post_quit_message_request( const struct post_quit_message_request *req )
2362 fprintf( stderr, " exit_code=%d", req->exit_code );
2365 static void dump_send_hardware_message_request( const struct send_hardware_message_request *req )
2367 fprintf( stderr, " id=%04x,", req->id );
2368 fprintf( stderr, " win=%08x,", req->win );
2369 fprintf( stderr, " msg=%08x,", req->msg );
2370 fprintf( stderr, " wparam=" );
2371 dump_uint64( &req->wparam );
2372 fprintf( stderr, "," );
2373 fprintf( stderr, " lparam=" );
2374 dump_uint64( &req->lparam );
2375 fprintf( stderr, "," );
2376 fprintf( stderr, " info=" );
2377 dump_uint64( &req->info );
2378 fprintf( stderr, "," );
2379 fprintf( stderr, " x=%d,", req->x );
2380 fprintf( stderr, " y=%d,", req->y );
2381 fprintf( stderr, " time=%08x", req->time );
2384 static void dump_get_message_request( const struct get_message_request *req )
2386 fprintf( stderr, " flags=%08x,", req->flags );
2387 fprintf( stderr, " get_win=%08x,", req->get_win );
2388 fprintf( stderr, " get_first=%08x,", req->get_first );
2389 fprintf( stderr, " get_last=%08x,", req->get_last );
2390 fprintf( stderr, " hw_id=%08x,", req->hw_id );
2391 fprintf( stderr, " wake_mask=%08x,", req->wake_mask );
2392 fprintf( stderr, " changed_mask=%08x", req->changed_mask );
2395 static void dump_get_message_reply( const struct get_message_reply *req )
2397 fprintf( stderr, " win=%08x,", req->win );
2398 fprintf( stderr, " msg=%08x,", req->msg );
2399 fprintf( stderr, " wparam=" );
2400 dump_uint64( &req->wparam );
2401 fprintf( stderr, "," );
2402 fprintf( stderr, " lparam=" );
2403 dump_uint64( &req->lparam );
2404 fprintf( stderr, "," );
2405 fprintf( stderr, " type=%d,", req->type );
2406 fprintf( stderr, " time=%08x,", req->time );
2407 fprintf( stderr, " active_hooks=%08x,", req->active_hooks );
2408 fprintf( stderr, " total=%u,", req->total );
2409 fprintf( stderr, " data=" );
2410 dump_varargs_message_data( cur_size );
2413 static void dump_reply_message_request( const struct reply_message_request *req )
2415 fprintf( stderr, " remove=%d,", req->remove );
2416 fprintf( stderr, " result=" );
2417 dump_uint64( &req->result );
2418 fprintf( stderr, "," );
2419 fprintf( stderr, " data=" );
2420 dump_varargs_bytes( cur_size );
2423 static void dump_accept_hardware_message_request( const struct accept_hardware_message_request *req )
2425 fprintf( stderr, " hw_id=%08x,", req->hw_id );
2426 fprintf( stderr, " remove=%d,", req->remove );
2427 fprintf( stderr, " new_win=%08x", req->new_win );
2430 static void dump_get_message_reply_request( const struct get_message_reply_request *req )
2432 fprintf( stderr, " cancel=%d", req->cancel );
2435 static void dump_get_message_reply_reply( const struct get_message_reply_reply *req )
2437 fprintf( stderr, " result=" );
2438 dump_uint64( &req->result );
2439 fprintf( stderr, "," );
2440 fprintf( stderr, " data=" );
2441 dump_varargs_bytes( cur_size );
2444 static void dump_set_win_timer_request( const struct set_win_timer_request *req )
2446 fprintf( stderr, " win=%08x,", req->win );
2447 fprintf( stderr, " msg=%08x,", req->msg );
2448 fprintf( stderr, " rate=%08x,", req->rate );
2449 fprintf( stderr, " id=" );
2450 dump_uint64( &req->id );
2451 fprintf( stderr, "," );
2452 fprintf( stderr, " lparam=" );
2453 dump_uint64( &req->lparam );
2456 static void dump_set_win_timer_reply( const struct set_win_timer_reply *req )
2458 fprintf( stderr, " id=" );
2459 dump_uint64( &req->id );
2462 static void dump_kill_win_timer_request( const struct kill_win_timer_request *req )
2464 fprintf( stderr, " win=%08x,", req->win );
2465 fprintf( stderr, " id=" );
2466 dump_uint64( &req->id );
2467 fprintf( stderr, "," );
2468 fprintf( stderr, " msg=%08x", req->msg );
2471 static void dump_is_window_hung_request( const struct is_window_hung_request *req )
2473 fprintf( stderr, " win=%08x", req->win );
2476 static void dump_is_window_hung_reply( const struct is_window_hung_reply *req )
2478 fprintf( stderr, " is_hung=%d", req->is_hung );
2481 static void dump_get_serial_info_request( const struct get_serial_info_request *req )
2483 fprintf( stderr, " handle=%04x", req->handle );
2486 static void dump_get_serial_info_reply( const struct get_serial_info_reply *req )
2488 fprintf( stderr, " readinterval=%08x,", req->readinterval );
2489 fprintf( stderr, " readconst=%08x,", req->readconst );
2490 fprintf( stderr, " readmult=%08x,", req->readmult );
2491 fprintf( stderr, " writeconst=%08x,", req->writeconst );
2492 fprintf( stderr, " writemult=%08x,", req->writemult );
2493 fprintf( stderr, " eventmask=%08x", req->eventmask );
2496 static void dump_set_serial_info_request( const struct set_serial_info_request *req )
2498 fprintf( stderr, " handle=%04x,", req->handle );
2499 fprintf( stderr, " flags=%d,", req->flags );
2500 fprintf( stderr, " readinterval=%08x,", req->readinterval );
2501 fprintf( stderr, " readconst=%08x,", req->readconst );
2502 fprintf( stderr, " readmult=%08x,", req->readmult );
2503 fprintf( stderr, " writeconst=%08x,", req->writeconst );
2504 fprintf( stderr, " writemult=%08x,", req->writemult );
2505 fprintf( stderr, " eventmask=%08x", req->eventmask );
2508 static void dump_register_async_request( const struct register_async_request *req )
2510 fprintf( stderr, " type=%d,", req->type );
2511 fprintf( stderr, " count=%d,", req->count );
2512 fprintf( stderr, " async=" );
2513 dump_async_data( &req->async );
2516 static void dump_cancel_async_request( const struct cancel_async_request *req )
2518 fprintf( stderr, " handle=%04x", req->handle );
2521 static void dump_ioctl_request( const struct ioctl_request *req )
2523 fprintf( stderr, " code=" );
2524 dump_ioctl_code( &req->code );
2525 fprintf( stderr, "," );
2526 fprintf( stderr, " async=" );
2527 dump_async_data( &req->async );
2528 fprintf( stderr, "," );
2529 fprintf( stderr, " in_data=" );
2530 dump_varargs_bytes( cur_size );
2533 static void dump_ioctl_reply( const struct ioctl_reply *req )
2535 fprintf( stderr, " wait=%04x,", req->wait );
2536 fprintf( stderr, " options=%08x,", req->options );
2537 fprintf( stderr, " out_data=" );
2538 dump_varargs_bytes( cur_size );
2541 static void dump_get_ioctl_result_request( const struct get_ioctl_result_request *req )
2543 fprintf( stderr, " handle=%04x,", req->handle );
2544 fprintf( stderr, " user_arg=%p", req->user_arg );
2547 static void dump_get_ioctl_result_reply( const struct get_ioctl_result_reply *req )
2549 fprintf( stderr, " out_data=" );
2550 dump_varargs_bytes( cur_size );
2553 static void dump_create_named_pipe_request( const struct create_named_pipe_request *req )
2555 fprintf( stderr, " access=%08x,", req->access );
2556 fprintf( stderr, " attributes=%08x,", req->attributes );
2557 fprintf( stderr, " rootdir=%04x,", req->rootdir );
2558 fprintf( stderr, " options=%08x,", req->options );
2559 fprintf( stderr, " flags=%08x,", req->flags );
2560 fprintf( stderr, " maxinstances=%08x,", req->maxinstances );
2561 fprintf( stderr, " outsize=%08x,", req->outsize );
2562 fprintf( stderr, " insize=%08x,", req->insize );
2563 fprintf( stderr, " timeout=" );
2564 dump_timeout( &req->timeout );
2565 fprintf( stderr, "," );
2566 fprintf( stderr, " name=" );
2567 dump_varargs_unicode_str( cur_size );
2570 static void dump_create_named_pipe_reply( const struct create_named_pipe_reply *req )
2572 fprintf( stderr, " handle=%04x", req->handle );
2575 static void dump_get_named_pipe_info_request( const struct get_named_pipe_info_request *req )
2577 fprintf( stderr, " handle=%04x", req->handle );
2580 static void dump_get_named_pipe_info_reply( const struct get_named_pipe_info_reply *req )
2582 fprintf( stderr, " flags=%08x,", req->flags );
2583 fprintf( stderr, " maxinstances=%08x,", req->maxinstances );
2584 fprintf( stderr, " instances=%08x,", req->instances );
2585 fprintf( stderr, " outsize=%08x,", req->outsize );
2586 fprintf( stderr, " insize=%08x", req->insize );
2589 static void dump_create_window_request( const struct create_window_request *req )
2591 fprintf( stderr, " parent=%08x,", req->parent );
2592 fprintf( stderr, " owner=%08x,", req->owner );
2593 fprintf( stderr, " atom=%04x,", req->atom );
2594 fprintf( stderr, " instance=%p,", req->instance );
2595 fprintf( stderr, " class=" );
2596 dump_varargs_unicode_str( cur_size );
2599 static void dump_create_window_reply( const struct create_window_reply *req )
2601 fprintf( stderr, " handle=%08x,", req->handle );
2602 fprintf( stderr, " parent=%08x,", req->parent );
2603 fprintf( stderr, " owner=%08x,", req->owner );
2604 fprintf( stderr, " extra=%d,", req->extra );
2605 fprintf( stderr, " class_ptr=%p", req->class_ptr );
2608 static void dump_destroy_window_request( const struct destroy_window_request *req )
2610 fprintf( stderr, " handle=%08x", req->handle );
2613 static void dump_get_desktop_window_request( const struct get_desktop_window_request *req )
2615 fprintf( stderr, " force=%d", req->force );
2618 static void dump_get_desktop_window_reply( const struct get_desktop_window_reply *req )
2620 fprintf( stderr, " top_window=%08x,", req->top_window );
2621 fprintf( stderr, " msg_window=%08x", req->msg_window );
2624 static void dump_set_window_owner_request( const struct set_window_owner_request *req )
2626 fprintf( stderr, " handle=%08x,", req->handle );
2627 fprintf( stderr, " owner=%08x", req->owner );
2630 static void dump_set_window_owner_reply( const struct set_window_owner_reply *req )
2632 fprintf( stderr, " full_owner=%08x,", req->full_owner );
2633 fprintf( stderr, " prev_owner=%08x", req->prev_owner );
2636 static void dump_get_window_info_request( const struct get_window_info_request *req )
2638 fprintf( stderr, " handle=%08x", req->handle );
2641 static void dump_get_window_info_reply( const struct get_window_info_reply *req )
2643 fprintf( stderr, " full_handle=%08x,", req->full_handle );
2644 fprintf( stderr, " last_active=%08x,", req->last_active );
2645 fprintf( stderr, " pid=%04x,", req->pid );
2646 fprintf( stderr, " tid=%04x,", req->tid );
2647 fprintf( stderr, " atom=%04x,", req->atom );
2648 fprintf( stderr, " is_unicode=%d", req->is_unicode );
2651 static void dump_set_window_info_request( const struct set_window_info_request *req )
2653 fprintf( stderr, " flags=%08x,", req->flags );
2654 fprintf( stderr, " handle=%08x,", req->handle );
2655 fprintf( stderr, " style=%08x,", req->style );
2656 fprintf( stderr, " ex_style=%08x,", req->ex_style );
2657 fprintf( stderr, " id=%08x,", req->id );
2658 fprintf( stderr, " is_unicode=%d,", req->is_unicode );
2659 fprintf( stderr, " instance=%p,", req->instance );
2660 fprintf( stderr, " user_data=" );
2661 dump_uint64( &req->user_data );
2662 fprintf( stderr, "," );
2663 fprintf( stderr, " extra_offset=%d,", req->extra_offset );
2664 fprintf( stderr, " extra_size=%u,", req->extra_size );
2665 fprintf( stderr, " extra_value=" );
2666 dump_uint64( &req->extra_value );
2669 static void dump_set_window_info_reply( const struct set_window_info_reply *req )
2671 fprintf( stderr, " old_style=%08x,", req->old_style );
2672 fprintf( stderr, " old_ex_style=%08x,", req->old_ex_style );
2673 fprintf( stderr, " old_id=%08x,", req->old_id );
2674 fprintf( stderr, " old_instance=%p,", req->old_instance );
2675 fprintf( stderr, " old_user_data=" );
2676 dump_uint64( &req->old_user_data );
2677 fprintf( stderr, "," );
2678 fprintf( stderr, " old_extra_value=" );
2679 dump_uint64( &req->old_extra_value );
2682 static void dump_set_parent_request( const struct set_parent_request *req )
2684 fprintf( stderr, " handle=%08x,", req->handle );
2685 fprintf( stderr, " parent=%08x", req->parent );
2688 static void dump_set_parent_reply( const struct set_parent_reply *req )
2690 fprintf( stderr, " old_parent=%08x,", req->old_parent );
2691 fprintf( stderr, " full_parent=%08x", req->full_parent );
2694 static void dump_get_window_parents_request( const struct get_window_parents_request *req )
2696 fprintf( stderr, " handle=%08x", req->handle );
2699 static void dump_get_window_parents_reply( const struct get_window_parents_reply *req )
2701 fprintf( stderr, " count=%d,", req->count );
2702 fprintf( stderr, " parents=" );
2703 dump_varargs_user_handles( cur_size );
2706 static void dump_get_window_children_request( const struct get_window_children_request *req )
2708 fprintf( stderr, " desktop=%04x,", req->desktop );
2709 fprintf( stderr, " parent=%08x,", req->parent );
2710 fprintf( stderr, " atom=%04x,", req->atom );
2711 fprintf( stderr, " tid=%04x,", req->tid );
2712 fprintf( stderr, " class=" );
2713 dump_varargs_unicode_str( cur_size );
2716 static void dump_get_window_children_reply( const struct get_window_children_reply *req )
2718 fprintf( stderr, " count=%d,", req->count );
2719 fprintf( stderr, " children=" );
2720 dump_varargs_user_handles( cur_size );
2723 static void dump_get_window_children_from_point_request( const struct get_window_children_from_point_request *req )
2725 fprintf( stderr, " parent=%08x,", req->parent );
2726 fprintf( stderr, " x=%d,", req->x );
2727 fprintf( stderr, " y=%d", req->y );
2730 static void dump_get_window_children_from_point_reply( const struct get_window_children_from_point_reply *req )
2732 fprintf( stderr, " count=%d,", req->count );
2733 fprintf( stderr, " children=" );
2734 dump_varargs_user_handles( cur_size );
2737 static void dump_get_window_tree_request( const struct get_window_tree_request *req )
2739 fprintf( stderr, " handle=%08x", req->handle );
2742 static void dump_get_window_tree_reply( const struct get_window_tree_reply *req )
2744 fprintf( stderr, " parent=%08x,", req->parent );
2745 fprintf( stderr, " owner=%08x,", req->owner );
2746 fprintf( stderr, " next_sibling=%08x,", req->next_sibling );
2747 fprintf( stderr, " prev_sibling=%08x,", req->prev_sibling );
2748 fprintf( stderr, " first_sibling=%08x,", req->first_sibling );
2749 fprintf( stderr, " last_sibling=%08x,", req->last_sibling );
2750 fprintf( stderr, " first_child=%08x,", req->first_child );
2751 fprintf( stderr, " last_child=%08x", req->last_child );
2754 static void dump_set_window_pos_request( const struct set_window_pos_request *req )
2756 fprintf( stderr, " flags=%08x,", req->flags );
2757 fprintf( stderr, " handle=%08x,", req->handle );
2758 fprintf( stderr, " previous=%08x,", req->previous );
2759 fprintf( stderr, " window=" );
2760 dump_rectangle( &req->window );
2761 fprintf( stderr, "," );
2762 fprintf( stderr, " client=" );
2763 dump_rectangle( &req->client );
2764 fprintf( stderr, "," );
2765 fprintf( stderr, " valid=" );
2766 dump_varargs_rectangles( cur_size );
2769 static void dump_set_window_pos_reply( const struct set_window_pos_reply *req )
2771 fprintf( stderr, " new_style=%08x,", req->new_style );
2772 fprintf( stderr, " new_ex_style=%08x", req->new_ex_style );
2775 static void dump_get_window_rectangles_request( const struct get_window_rectangles_request *req )
2777 fprintf( stderr, " handle=%08x", req->handle );
2780 static void dump_get_window_rectangles_reply( const struct get_window_rectangles_reply *req )
2782 fprintf( stderr, " window=" );
2783 dump_rectangle( &req->window );
2784 fprintf( stderr, "," );
2785 fprintf( stderr, " visible=" );
2786 dump_rectangle( &req->visible );
2787 fprintf( stderr, "," );
2788 fprintf( stderr, " client=" );
2789 dump_rectangle( &req->client );
2792 static void dump_get_window_text_request( const struct get_window_text_request *req )
2794 fprintf( stderr, " handle=%08x", req->handle );
2797 static void dump_get_window_text_reply( const struct get_window_text_reply *req )
2799 fprintf( stderr, " text=" );
2800 dump_varargs_unicode_str( cur_size );
2803 static void dump_set_window_text_request( const struct set_window_text_request *req )
2805 fprintf( stderr, " handle=%08x,", req->handle );
2806 fprintf( stderr, " text=" );
2807 dump_varargs_unicode_str( cur_size );
2810 static void dump_get_windows_offset_request( const struct get_windows_offset_request *req )
2812 fprintf( stderr, " from=%08x,", req->from );
2813 fprintf( stderr, " to=%08x", req->to );
2816 static void dump_get_windows_offset_reply( const struct get_windows_offset_reply *req )
2818 fprintf( stderr, " x=%d,", req->x );
2819 fprintf( stderr, " y=%d", req->y );
2822 static void dump_get_visible_region_request( const struct get_visible_region_request *req )
2824 fprintf( stderr, " window=%08x,", req->window );
2825 fprintf( stderr, " flags=%08x", req->flags );
2828 static void dump_get_visible_region_reply( const struct get_visible_region_reply *req )
2830 fprintf( stderr, " top_win=%08x,", req->top_win );
2831 fprintf( stderr, " top_rect=" );
2832 dump_rectangle( &req->top_rect );
2833 fprintf( stderr, "," );
2834 fprintf( stderr, " win_rect=" );
2835 dump_rectangle( &req->win_rect );
2836 fprintf( stderr, "," );
2837 fprintf( stderr, " total_size=%u,", req->total_size );
2838 fprintf( stderr, " region=" );
2839 dump_varargs_rectangles( cur_size );
2842 static void dump_get_window_region_request( const struct get_window_region_request *req )
2844 fprintf( stderr, " window=%08x", req->window );
2847 static void dump_get_window_region_reply( const struct get_window_region_reply *req )
2849 fprintf( stderr, " total_size=%u,", req->total_size );
2850 fprintf( stderr, " region=" );
2851 dump_varargs_rectangles( cur_size );
2854 static void dump_set_window_region_request( const struct set_window_region_request *req )
2856 fprintf( stderr, " window=%08x,", req->window );
2857 fprintf( stderr, " redraw=%d,", req->redraw );
2858 fprintf( stderr, " region=" );
2859 dump_varargs_rectangles( cur_size );
2862 static void dump_get_update_region_request( const struct get_update_region_request *req )
2864 fprintf( stderr, " window=%08x,", req->window );
2865 fprintf( stderr, " from_child=%08x,", req->from_child );
2866 fprintf( stderr, " flags=%08x", req->flags );
2869 static void dump_get_update_region_reply( const struct get_update_region_reply *req )
2871 fprintf( stderr, " child=%08x,", req->child );
2872 fprintf( stderr, " flags=%08x,", req->flags );
2873 fprintf( stderr, " total_size=%u,", req->total_size );
2874 fprintf( stderr, " region=" );
2875 dump_varargs_rectangles( cur_size );
2878 static void dump_update_window_zorder_request( const struct update_window_zorder_request *req )
2880 fprintf( stderr, " window=%08x,", req->window );
2881 fprintf( stderr, " rect=" );
2882 dump_rectangle( &req->rect );
2885 static void dump_redraw_window_request( const struct redraw_window_request *req )
2887 fprintf( stderr, " window=%08x,", req->window );
2888 fprintf( stderr, " flags=%08x,", req->flags );
2889 fprintf( stderr, " region=" );
2890 dump_varargs_rectangles( cur_size );
2893 static void dump_set_window_property_request( const struct set_window_property_request *req )
2895 fprintf( stderr, " window=%08x,", req->window );
2896 fprintf( stderr, " data=" );
2897 dump_uint64( &req->data );
2898 fprintf( stderr, "," );
2899 fprintf( stderr, " atom=%04x,", req->atom );
2900 fprintf( stderr, " name=" );
2901 dump_varargs_unicode_str( cur_size );
2904 static void dump_remove_window_property_request( const struct remove_window_property_request *req )
2906 fprintf( stderr, " window=%08x,", req->window );
2907 fprintf( stderr, " atom=%04x,", req->atom );
2908 fprintf( stderr, " name=" );
2909 dump_varargs_unicode_str( cur_size );
2912 static void dump_remove_window_property_reply( const struct remove_window_property_reply *req )
2914 fprintf( stderr, " data=" );
2915 dump_uint64( &req->data );
2918 static void dump_get_window_property_request( const struct get_window_property_request *req )
2920 fprintf( stderr, " window=%08x,", req->window );
2921 fprintf( stderr, " atom=%04x,", req->atom );
2922 fprintf( stderr, " name=" );
2923 dump_varargs_unicode_str( cur_size );
2926 static void dump_get_window_property_reply( const struct get_window_property_reply *req )
2928 fprintf( stderr, " data=" );
2929 dump_uint64( &req->data );
2932 static void dump_get_window_properties_request( const struct get_window_properties_request *req )
2934 fprintf( stderr, " window=%08x", req->window );
2937 static void dump_get_window_properties_reply( const struct get_window_properties_reply *req )
2939 fprintf( stderr, " total=%d,", req->total );
2940 fprintf( stderr, " props=" );
2941 dump_varargs_properties( cur_size );
2944 static void dump_create_winstation_request( const struct create_winstation_request *req )
2946 fprintf( stderr, " flags=%08x,", req->flags );
2947 fprintf( stderr, " access=%08x,", req->access );
2948 fprintf( stderr, " attributes=%08x,", req->attributes );
2949 fprintf( stderr, " name=" );
2950 dump_varargs_unicode_str( cur_size );
2953 static void dump_create_winstation_reply( const struct create_winstation_reply *req )
2955 fprintf( stderr, " handle=%04x", req->handle );
2958 static void dump_open_winstation_request( const struct open_winstation_request *req )
2960 fprintf( stderr, " access=%08x,", req->access );
2961 fprintf( stderr, " attributes=%08x,", req->attributes );
2962 fprintf( stderr, " name=" );
2963 dump_varargs_unicode_str( cur_size );
2966 static void dump_open_winstation_reply( const struct open_winstation_reply *req )
2968 fprintf( stderr, " handle=%04x", req->handle );
2971 static void dump_close_winstation_request( const struct close_winstation_request *req )
2973 fprintf( stderr, " handle=%04x", req->handle );
2976 static void dump_get_process_winstation_request( const struct get_process_winstation_request *req )
2980 static void dump_get_process_winstation_reply( const struct get_process_winstation_reply *req )
2982 fprintf( stderr, " handle=%04x", req->handle );
2985 static void dump_set_process_winstation_request( const struct set_process_winstation_request *req )
2987 fprintf( stderr, " handle=%04x", req->handle );
2990 static void dump_enum_winstation_request( const struct enum_winstation_request *req )
2992 fprintf( stderr, " index=%08x", req->index );
2995 static void dump_enum_winstation_reply( const struct enum_winstation_reply *req )
2997 fprintf( stderr, " next=%08x,", req->next );
2998 fprintf( stderr, " name=" );
2999 dump_varargs_unicode_str( cur_size );
3002 static void dump_create_desktop_request( const struct create_desktop_request *req )
3004 fprintf( stderr, " flags=%08x,", req->flags );
3005 fprintf( stderr, " access=%08x,", req->access );
3006 fprintf( stderr, " attributes=%08x,", req->attributes );
3007 fprintf( stderr, " name=" );
3008 dump_varargs_unicode_str( cur_size );
3011 static void dump_create_desktop_reply( const struct create_desktop_reply *req )
3013 fprintf( stderr, " handle=%04x", req->handle );
3016 static void dump_open_desktop_request( const struct open_desktop_request *req )
3018 fprintf( stderr, " winsta=%04x,", req->winsta );
3019 fprintf( stderr, " flags=%08x,", req->flags );
3020 fprintf( stderr, " access=%08x,", req->access );
3021 fprintf( stderr, " attributes=%08x,", req->attributes );
3022 fprintf( stderr, " name=" );
3023 dump_varargs_unicode_str( cur_size );
3026 static void dump_open_desktop_reply( const struct open_desktop_reply *req )
3028 fprintf( stderr, " handle=%04x", req->handle );
3031 static void dump_close_desktop_request( const struct close_desktop_request *req )
3033 fprintf( stderr, " handle=%04x", req->handle );
3036 static void dump_get_thread_desktop_request( const struct get_thread_desktop_request *req )
3038 fprintf( stderr, " tid=%04x", req->tid );
3041 static void dump_get_thread_desktop_reply( const struct get_thread_desktop_reply *req )
3043 fprintf( stderr, " handle=%04x", req->handle );
3046 static void dump_set_thread_desktop_request( const struct set_thread_desktop_request *req )
3048 fprintf( stderr, " handle=%04x", req->handle );
3051 static void dump_enum_desktop_request( const struct enum_desktop_request *req )
3053 fprintf( stderr, " winstation=%04x,", req->winstation );
3054 fprintf( stderr, " index=%08x", req->index );
3057 static void dump_enum_desktop_reply( const struct enum_desktop_reply *req )
3059 fprintf( stderr, " next=%08x,", req->next );
3060 fprintf( stderr, " name=" );
3061 dump_varargs_unicode_str( cur_size );
3064 static void dump_set_user_object_info_request( const struct set_user_object_info_request *req )
3066 fprintf( stderr, " handle=%04x,", req->handle );
3067 fprintf( stderr, " flags=%08x,", req->flags );
3068 fprintf( stderr, " obj_flags=%08x", req->obj_flags );
3071 static void dump_set_user_object_info_reply( const struct set_user_object_info_reply *req )
3073 fprintf( stderr, " is_desktop=%d,", req->is_desktop );
3074 fprintf( stderr, " old_obj_flags=%08x,", req->old_obj_flags );
3075 fprintf( stderr, " name=" );
3076 dump_varargs_unicode_str( cur_size );
3079 static void dump_attach_thread_input_request( const struct attach_thread_input_request *req )
3081 fprintf( stderr, " tid_from=%04x,", req->tid_from );
3082 fprintf( stderr, " tid_to=%04x,", req->tid_to );
3083 fprintf( stderr, " attach=%d", req->attach );
3086 static void dump_get_thread_input_request( const struct get_thread_input_request *req )
3088 fprintf( stderr, " tid=%04x", req->tid );
3091 static void dump_get_thread_input_reply( const struct get_thread_input_reply *req )
3093 fprintf( stderr, " focus=%08x,", req->focus );
3094 fprintf( stderr, " capture=%08x,", req->capture );
3095 fprintf( stderr, " active=%08x,", req->active );
3096 fprintf( stderr, " foreground=%08x,", req->foreground );
3097 fprintf( stderr, " menu_owner=%08x,", req->menu_owner );
3098 fprintf( stderr, " move_size=%08x,", req->move_size );
3099 fprintf( stderr, " caret=%08x,", req->caret );
3100 fprintf( stderr, " rect=" );
3101 dump_rectangle( &req->rect );
3104 static void dump_get_last_input_time_request( const struct get_last_input_time_request *req )
3108 static void dump_get_last_input_time_reply( const struct get_last_input_time_reply *req )
3110 fprintf( stderr, " time=%08x", req->time );
3113 static void dump_get_key_state_request( const struct get_key_state_request *req )
3115 fprintf( stderr, " tid=%04x,", req->tid );
3116 fprintf( stderr, " key=%d", req->key );
3119 static void dump_get_key_state_reply( const struct get_key_state_reply *req )
3121 fprintf( stderr, " state=%02x,", req->state );
3122 fprintf( stderr, " keystate=" );
3123 dump_varargs_bytes( cur_size );
3126 static void dump_set_key_state_request( const struct set_key_state_request *req )
3128 fprintf( stderr, " tid=%04x,", req->tid );
3129 fprintf( stderr, " keystate=" );
3130 dump_varargs_bytes( cur_size );
3133 static void dump_set_foreground_window_request( const struct set_foreground_window_request *req )
3135 fprintf( stderr, " handle=%08x", req->handle );
3138 static void dump_set_foreground_window_reply( const struct set_foreground_window_reply *req )
3140 fprintf( stderr, " previous=%08x,", req->previous );
3141 fprintf( stderr, " send_msg_old=%d,", req->send_msg_old );
3142 fprintf( stderr, " send_msg_new=%d", req->send_msg_new );
3145 static void dump_set_focus_window_request( const struct set_focus_window_request *req )
3147 fprintf( stderr, " handle=%08x", req->handle );
3150 static void dump_set_focus_window_reply( const struct set_focus_window_reply *req )
3152 fprintf( stderr, " previous=%08x", req->previous );
3155 static void dump_set_active_window_request( const struct set_active_window_request *req )
3157 fprintf( stderr, " handle=%08x", req->handle );
3160 static void dump_set_active_window_reply( const struct set_active_window_reply *req )
3162 fprintf( stderr, " previous=%08x", req->previous );
3165 static void dump_set_capture_window_request( const struct set_capture_window_request *req )
3167 fprintf( stderr, " handle=%08x,", req->handle );
3168 fprintf( stderr, " flags=%08x", req->flags );
3171 static void dump_set_capture_window_reply( const struct set_capture_window_reply *req )
3173 fprintf( stderr, " previous=%08x,", req->previous );
3174 fprintf( stderr, " full_handle=%08x", req->full_handle );
3177 static void dump_set_caret_window_request( const struct set_caret_window_request *req )
3179 fprintf( stderr, " handle=%08x,", req->handle );
3180 fprintf( stderr, " width=%d,", req->width );
3181 fprintf( stderr, " height=%d", req->height );
3184 static void dump_set_caret_window_reply( const struct set_caret_window_reply *req )
3186 fprintf( stderr, " previous=%08x,", req->previous );
3187 fprintf( stderr, " old_rect=" );
3188 dump_rectangle( &req->old_rect );
3189 fprintf( stderr, "," );
3190 fprintf( stderr, " old_hide=%d,", req->old_hide );
3191 fprintf( stderr, " old_state=%d", req->old_state );
3194 static void dump_set_caret_info_request( const struct set_caret_info_request *req )
3196 fprintf( stderr, " flags=%08x,", req->flags );
3197 fprintf( stderr, " handle=%08x,", req->handle );
3198 fprintf( stderr, " x=%d,", req->x );
3199 fprintf( stderr, " y=%d,", req->y );
3200 fprintf( stderr, " hide=%d,", req->hide );
3201 fprintf( stderr, " state=%d", req->state );
3204 static void dump_set_caret_info_reply( const struct set_caret_info_reply *req )
3206 fprintf( stderr, " full_handle=%08x,", req->full_handle );
3207 fprintf( stderr, " old_rect=" );
3208 dump_rectangle( &req->old_rect );
3209 fprintf( stderr, "," );
3210 fprintf( stderr, " old_hide=%d,", req->old_hide );
3211 fprintf( stderr, " old_state=%d", req->old_state );
3214 static void dump_set_hook_request( const struct set_hook_request *req )
3216 fprintf( stderr, " id=%d,", req->id );
3217 fprintf( stderr, " pid=%04x,", req->pid );
3218 fprintf( stderr, " tid=%04x,", req->tid );
3219 fprintf( stderr, " event_min=%d,", req->event_min );
3220 fprintf( stderr, " event_max=%d,", req->event_max );
3221 fprintf( stderr, " flags=%d,", req->flags );
3222 fprintf( stderr, " proc=%p,", req->proc );
3223 fprintf( stderr, " unicode=%d,", req->unicode );
3224 fprintf( stderr, " module=" );
3225 dump_varargs_unicode_str( cur_size );
3228 static void dump_set_hook_reply( const struct set_hook_reply *req )
3230 fprintf( stderr, " handle=%08x,", req->handle );
3231 fprintf( stderr, " active_hooks=%08x", req->active_hooks );
3234 static void dump_remove_hook_request( const struct remove_hook_request *req )
3236 fprintf( stderr, " handle=%08x,", req->handle );
3237 fprintf( stderr, " id=%d,", req->id );
3238 fprintf( stderr, " proc=%p", req->proc );
3241 static void dump_remove_hook_reply( const struct remove_hook_reply *req )
3243 fprintf( stderr, " active_hooks=%08x", req->active_hooks );
3246 static void dump_start_hook_chain_request( const struct start_hook_chain_request *req )
3248 fprintf( stderr, " id=%d,", req->id );
3249 fprintf( stderr, " event=%d,", req->event );
3250 fprintf( stderr, " window=%08x,", req->window );
3251 fprintf( stderr, " object_id=%d,", req->object_id );
3252 fprintf( stderr, " child_id=%d", req->child_id );
3255 static void dump_start_hook_chain_reply( const struct start_hook_chain_reply *req )
3257 fprintf( stderr, " handle=%08x,", req->handle );
3258 fprintf( stderr, " pid=%04x,", req->pid );
3259 fprintf( stderr, " tid=%04x,", req->tid );
3260 fprintf( stderr, " proc=%p,", req->proc );
3261 fprintf( stderr, " unicode=%d,", req->unicode );
3262 fprintf( stderr, " active_hooks=%08x,", req->active_hooks );
3263 fprintf( stderr, " module=" );
3264 dump_varargs_unicode_str( cur_size );
3267 static void dump_finish_hook_chain_request( const struct finish_hook_chain_request *req )
3269 fprintf( stderr, " id=%d", req->id );
3272 static void dump_get_hook_info_request( const struct get_hook_info_request *req )
3274 fprintf( stderr, " handle=%08x,", req->handle );
3275 fprintf( stderr, " get_next=%d,", req->get_next );
3276 fprintf( stderr, " event=%d,", req->event );
3277 fprintf( stderr, " window=%08x,", req->window );
3278 fprintf( stderr, " object_id=%d,", req->object_id );
3279 fprintf( stderr, " child_id=%d", req->child_id );
3282 static void dump_get_hook_info_reply( const struct get_hook_info_reply *req )
3284 fprintf( stderr, " handle=%08x,", req->handle );
3285 fprintf( stderr, " id=%d,", req->id );
3286 fprintf( stderr, " pid=%04x,", req->pid );
3287 fprintf( stderr, " tid=%04x,", req->tid );
3288 fprintf( stderr, " proc=%p,", req->proc );
3289 fprintf( stderr, " unicode=%d,", req->unicode );
3290 fprintf( stderr, " module=" );
3291 dump_varargs_unicode_str( cur_size );
3294 static void dump_create_class_request( const struct create_class_request *req )
3296 fprintf( stderr, " local=%d,", req->local );
3297 fprintf( stderr, " atom=%04x,", req->atom );
3298 fprintf( stderr, " style=%08x,", req->style );
3299 fprintf( stderr, " instance=%p,", req->instance );
3300 fprintf( stderr, " extra=%d,", req->extra );
3301 fprintf( stderr, " win_extra=%d,", req->win_extra );
3302 fprintf( stderr, " client_ptr=%p,", req->client_ptr );
3303 fprintf( stderr, " name=" );
3304 dump_varargs_unicode_str( cur_size );
3307 static void dump_create_class_reply( const struct create_class_reply *req )
3309 fprintf( stderr, " atom=%04x", req->atom );
3312 static void dump_destroy_class_request( const struct destroy_class_request *req )
3314 fprintf( stderr, " atom=%04x,", req->atom );
3315 fprintf( stderr, " instance=%p,", req->instance );
3316 fprintf( stderr, " name=" );
3317 dump_varargs_unicode_str( cur_size );
3320 static void dump_destroy_class_reply( const struct destroy_class_reply *req )
3322 fprintf( stderr, " client_ptr=%p", req->client_ptr );
3325 static void dump_set_class_info_request( const struct set_class_info_request *req )
3327 fprintf( stderr, " window=%08x,", req->window );
3328 fprintf( stderr, " flags=%08x,", req->flags );
3329 fprintf( stderr, " atom=%04x,", req->atom );
3330 fprintf( stderr, " style=%08x,", req->style );
3331 fprintf( stderr, " win_extra=%d,", req->win_extra );
3332 fprintf( stderr, " instance=%p,", req->instance );
3333 fprintf( stderr, " extra_offset=%d,", req->extra_offset );
3334 fprintf( stderr, " extra_size=%u,", req->extra_size );
3335 fprintf( stderr, " extra_value=" );
3336 dump_uint64( &req->extra_value );
3339 static void dump_set_class_info_reply( const struct set_class_info_reply *req )
3341 fprintf( stderr, " old_atom=%04x,", req->old_atom );
3342 fprintf( stderr, " old_style=%08x,", req->old_style );
3343 fprintf( stderr, " old_extra=%d,", req->old_extra );
3344 fprintf( stderr, " old_win_extra=%d,", req->old_win_extra );
3345 fprintf( stderr, " old_instance=%p,", req->old_instance );
3346 fprintf( stderr, " old_extra_value=" );
3347 dump_uint64( &req->old_extra_value );
3350 static void dump_set_clipboard_info_request( const struct set_clipboard_info_request *req )
3352 fprintf( stderr, " flags=%08x,", req->flags );
3353 fprintf( stderr, " clipboard=%08x,", req->clipboard );
3354 fprintf( stderr, " owner=%08x,", req->owner );
3355 fprintf( stderr, " viewer=%08x,", req->viewer );
3356 fprintf( stderr, " seqno=%08x", req->seqno );
3359 static void dump_set_clipboard_info_reply( const struct set_clipboard_info_reply *req )
3361 fprintf( stderr, " flags=%08x,", req->flags );
3362 fprintf( stderr, " old_clipboard=%08x,", req->old_clipboard );
3363 fprintf( stderr, " old_owner=%08x,", req->old_owner );
3364 fprintf( stderr, " old_viewer=%08x,", req->old_viewer );
3365 fprintf( stderr, " seqno=%08x", req->seqno );
3368 static void dump_open_token_request( const struct open_token_request *req )
3370 fprintf( stderr, " handle=%04x,", req->handle );
3371 fprintf( stderr, " access=%08x,", req->access );
3372 fprintf( stderr, " attributes=%08x,", req->attributes );
3373 fprintf( stderr, " flags=%08x", req->flags );
3376 static void dump_open_token_reply( const struct open_token_reply *req )
3378 fprintf( stderr, " token=%04x", req->token );
3381 static void dump_set_global_windows_request( const struct set_global_windows_request *req )
3383 fprintf( stderr, " flags=%08x,", req->flags );
3384 fprintf( stderr, " shell_window=%08x,", req->shell_window );
3385 fprintf( stderr, " shell_listview=%08x,", req->shell_listview );
3386 fprintf( stderr, " progman_window=%08x,", req->progman_window );
3387 fprintf( stderr, " taskman_window=%08x", req->taskman_window );
3390 static void dump_set_global_windows_reply( const struct set_global_windows_reply *req )
3392 fprintf( stderr, " old_shell_window=%08x,", req->old_shell_window );
3393 fprintf( stderr, " old_shell_listview=%08x,", req->old_shell_listview );
3394 fprintf( stderr, " old_progman_window=%08x,", req->old_progman_window );
3395 fprintf( stderr, " old_taskman_window=%08x", req->old_taskman_window );
3398 static void dump_adjust_token_privileges_request( const struct adjust_token_privileges_request *req )
3400 fprintf( stderr, " handle=%04x,", req->handle );
3401 fprintf( stderr, " disable_all=%d,", req->disable_all );
3402 fprintf( stderr, " get_modified_state=%d,", req->get_modified_state );
3403 fprintf( stderr, " privileges=" );
3404 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
3407 static void dump_adjust_token_privileges_reply( const struct adjust_token_privileges_reply *req )
3409 fprintf( stderr, " len=%08x,", req->len );
3410 fprintf( stderr, " privileges=" );
3411 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
3414 static void dump_get_token_privileges_request( const struct get_token_privileges_request *req )
3416 fprintf( stderr, " handle=%04x", req->handle );
3419 static void dump_get_token_privileges_reply( const struct get_token_privileges_reply *req )
3421 fprintf( stderr, " len=%08x,", req->len );
3422 fprintf( stderr, " privileges=" );
3423 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
3426 static void dump_check_token_privileges_request( const struct check_token_privileges_request *req )
3428 fprintf( stderr, " handle=%04x,", req->handle );
3429 fprintf( stderr, " all_required=%d,", req->all_required );
3430 fprintf( stderr, " privileges=" );
3431 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
3434 static void dump_check_token_privileges_reply( const struct check_token_privileges_reply *req )
3436 fprintf( stderr, " has_privileges=%d,", req->has_privileges );
3437 fprintf( stderr, " privileges=" );
3438 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
3441 static void dump_duplicate_token_request( const struct duplicate_token_request *req )
3443 fprintf( stderr, " handle=%04x,", req->handle );
3444 fprintf( stderr, " access=%08x,", req->access );
3445 fprintf( stderr, " attributes=%08x,", req->attributes );
3446 fprintf( stderr, " primary=%d,", req->primary );
3447 fprintf( stderr, " impersonation_level=%d", req->impersonation_level );
3450 static void dump_duplicate_token_reply( const struct duplicate_token_reply *req )
3452 fprintf( stderr, " new_handle=%04x", req->new_handle );
3455 static void dump_access_check_request( const struct access_check_request *req )
3457 fprintf( stderr, " handle=%04x,", req->handle );
3458 fprintf( stderr, " desired_access=%08x,", req->desired_access );
3459 fprintf( stderr, " mapping_read=%08x,", req->mapping_read );
3460 fprintf( stderr, " mapping_write=%08x,", req->mapping_write );
3461 fprintf( stderr, " mapping_execute=%08x,", req->mapping_execute );
3462 fprintf( stderr, " mapping_all=%08x,", req->mapping_all );
3463 fprintf( stderr, " sd=" );
3464 dump_varargs_security_descriptor( cur_size );
3467 static void dump_access_check_reply( const struct access_check_reply *req )
3469 fprintf( stderr, " access_granted=%08x,", req->access_granted );
3470 fprintf( stderr, " access_status=%08x,", req->access_status );
3471 fprintf( stderr, " privileges_len=%08x,", req->privileges_len );
3472 fprintf( stderr, " privileges=" );
3473 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
3476 static void dump_get_token_user_request( const struct get_token_user_request *req )
3478 fprintf( stderr, " handle=%04x", req->handle );
3481 static void dump_get_token_user_reply( const struct get_token_user_reply *req )
3483 fprintf( stderr, " user_len=%u,", req->user_len );
3484 fprintf( stderr, " user=" );
3485 dump_varargs_SID( cur_size );
3488 static void dump_get_token_groups_request( const struct get_token_groups_request *req )
3490 fprintf( stderr, " handle=%04x", req->handle );
3493 static void dump_get_token_groups_reply( const struct get_token_groups_reply *req )
3495 fprintf( stderr, " user_len=%u,", req->user_len );
3496 fprintf( stderr, " user=" );
3497 dump_varargs_token_groups( cur_size );
3500 static void dump_set_security_object_request( const struct set_security_object_request *req )
3502 fprintf( stderr, " handle=%04x,", req->handle );
3503 fprintf( stderr, " security_info=%08x,", req->security_info );
3504 fprintf( stderr, " sd=" );
3505 dump_varargs_security_descriptor( cur_size );
3508 static void dump_get_security_object_request( const struct get_security_object_request *req )
3510 fprintf( stderr, " handle=%04x,", req->handle );
3511 fprintf( stderr, " security_info=%08x", req->security_info );
3514 static void dump_get_security_object_reply( const struct get_security_object_reply *req )
3516 fprintf( stderr, " sd_len=%08x,", req->sd_len );
3517 fprintf( stderr, " sd=" );
3518 dump_varargs_security_descriptor( cur_size );
3521 static void dump_create_mailslot_request( const struct create_mailslot_request *req )
3523 fprintf( stderr, " access=%08x,", req->access );
3524 fprintf( stderr, " attributes=%08x,", req->attributes );
3525 fprintf( stderr, " rootdir=%04x,", req->rootdir );
3526 fprintf( stderr, " max_msgsize=%08x,", req->max_msgsize );
3527 fprintf( stderr, " read_timeout=" );
3528 dump_timeout( &req->read_timeout );
3529 fprintf( stderr, "," );
3530 fprintf( stderr, " name=" );
3531 dump_varargs_unicode_str( cur_size );
3534 static void dump_create_mailslot_reply( const struct create_mailslot_reply *req )
3536 fprintf( stderr, " handle=%04x", req->handle );
3539 static void dump_set_mailslot_info_request( const struct set_mailslot_info_request *req )
3541 fprintf( stderr, " handle=%04x,", req->handle );
3542 fprintf( stderr, " flags=%08x,", req->flags );
3543 fprintf( stderr, " read_timeout=" );
3544 dump_timeout( &req->read_timeout );
3547 static void dump_set_mailslot_info_reply( const struct set_mailslot_info_reply *req )
3549 fprintf( stderr, " max_msgsize=%08x,", req->max_msgsize );
3550 fprintf( stderr, " read_timeout=" );
3551 dump_timeout( &req->read_timeout );
3554 static void dump_create_directory_request( const struct create_directory_request *req )
3556 fprintf( stderr, " access=%08x,", req->access );
3557 fprintf( stderr, " attributes=%08x,", req->attributes );
3558 fprintf( stderr, " rootdir=%04x,", req->rootdir );
3559 fprintf( stderr, " directory_name=" );
3560 dump_varargs_unicode_str( cur_size );
3563 static void dump_create_directory_reply( const struct create_directory_reply *req )
3565 fprintf( stderr, " handle=%04x", req->handle );
3568 static void dump_open_directory_request( const struct open_directory_request *req )
3570 fprintf( stderr, " access=%08x,", req->access );
3571 fprintf( stderr, " attributes=%08x,", req->attributes );
3572 fprintf( stderr, " rootdir=%04x,", req->rootdir );
3573 fprintf( stderr, " directory_name=" );
3574 dump_varargs_unicode_str( cur_size );
3577 static void dump_open_directory_reply( const struct open_directory_reply *req )
3579 fprintf( stderr, " handle=%04x", req->handle );
3582 static void dump_get_directory_entry_request( const struct get_directory_entry_request *req )
3584 fprintf( stderr, " handle=%04x,", req->handle );
3585 fprintf( stderr, " index=%08x", req->index );
3588 static void dump_get_directory_entry_reply( const struct get_directory_entry_reply *req )
3590 fprintf( stderr, " name_len=%u,", req->name_len );
3591 fprintf( stderr, " name=" );
3592 dump_varargs_unicode_str( min(cur_size,req->name_len) );
3593 fputc( ',', stderr );
3594 fprintf( stderr, " type=" );
3595 dump_varargs_unicode_str( cur_size );
3598 static void dump_create_symlink_request( const struct create_symlink_request *req )
3600 fprintf( stderr, " access=%08x,", req->access );
3601 fprintf( stderr, " attributes=%08x,", req->attributes );
3602 fprintf( stderr, " rootdir=%04x,", req->rootdir );
3603 fprintf( stderr, " name_len=%u,", req->name_len );
3604 fprintf( stderr, " name=" );
3605 dump_varargs_unicode_str( min(cur_size,req->name_len) );
3606 fputc( ',', stderr );
3607 fprintf( stderr, " target_name=" );
3608 dump_varargs_unicode_str( cur_size );
3611 static void dump_create_symlink_reply( const struct create_symlink_reply *req )
3613 fprintf( stderr, " handle=%04x", req->handle );
3616 static void dump_open_symlink_request( const struct open_symlink_request *req )
3618 fprintf( stderr, " access=%08x,", req->access );
3619 fprintf( stderr, " attributes=%08x,", req->attributes );
3620 fprintf( stderr, " rootdir=%04x,", req->rootdir );
3621 fprintf( stderr, " name=" );
3622 dump_varargs_unicode_str( cur_size );
3625 static void dump_open_symlink_reply( const struct open_symlink_reply *req )
3627 fprintf( stderr, " handle=%04x", req->handle );
3630 static void dump_query_symlink_request( const struct query_symlink_request *req )
3632 fprintf( stderr, " handle=%04x", req->handle );
3635 static void dump_query_symlink_reply( const struct query_symlink_reply *req )
3637 fprintf( stderr, " target_name=" );
3638 dump_varargs_unicode_str( cur_size );
3641 static void dump_get_object_info_request( const struct get_object_info_request *req )
3643 fprintf( stderr, " handle=%04x", req->handle );
3646 static void dump_get_object_info_reply( const struct get_object_info_reply *req )
3648 fprintf( stderr, " access=%08x,", req->access );
3649 fprintf( stderr, " ref_count=%08x", req->ref_count );
3652 static void dump_unlink_object_request( const struct unlink_object_request *req )
3654 fprintf( stderr, " handle=%04x", req->handle );
3657 static void dump_get_token_impersonation_level_request( const struct get_token_impersonation_level_request *req )
3659 fprintf( stderr, " handle=%04x", req->handle );
3662 static void dump_get_token_impersonation_level_reply( const struct get_token_impersonation_level_reply *req )
3664 fprintf( stderr, " impersonation_level=%d", req->impersonation_level );
3667 static void dump_allocate_locally_unique_id_request( const struct allocate_locally_unique_id_request *req )
3671 static void dump_allocate_locally_unique_id_reply( const struct allocate_locally_unique_id_reply *req )
3673 fprintf( stderr, " luid=" );
3674 dump_luid( &req->luid );
3677 static void dump_create_device_manager_request( const struct create_device_manager_request *req )
3679 fprintf( stderr, " access=%08x,", req->access );
3680 fprintf( stderr, " attributes=%08x", req->attributes );
3683 static void dump_create_device_manager_reply( const struct create_device_manager_reply *req )
3685 fprintf( stderr, " handle=%04x", req->handle );
3688 static void dump_create_device_request( const struct create_device_request *req )
3690 fprintf( stderr, " access=%08x,", req->access );
3691 fprintf( stderr, " attributes=%08x,", req->attributes );
3692 fprintf( stderr, " rootdir=%04x,", req->rootdir );
3693 fprintf( stderr, " manager=%04x,", req->manager );
3694 fprintf( stderr, " user_ptr=%p,", req->user_ptr );
3695 fprintf( stderr, " name=" );
3696 dump_varargs_unicode_str( cur_size );
3699 static void dump_create_device_reply( const struct create_device_reply *req )
3701 fprintf( stderr, " handle=%04x", req->handle );
3704 static void dump_delete_device_request( const struct delete_device_request *req )
3706 fprintf( stderr, " handle=%04x", req->handle );
3709 static void dump_get_next_device_request_request( const struct get_next_device_request_request *req )
3711 fprintf( stderr, " manager=%04x,", req->manager );
3712 fprintf( stderr, " prev=%04x,", req->prev );
3713 fprintf( stderr, " status=%08x,", req->status );
3714 fprintf( stderr, " prev_data=" );
3715 dump_varargs_bytes( cur_size );
3718 static void dump_get_next_device_request_reply( const struct get_next_device_request_reply *req )
3720 fprintf( stderr, " next=%04x,", req->next );
3721 fprintf( stderr, " code=" );
3722 dump_ioctl_code( &req->code );
3723 fprintf( stderr, "," );
3724 fprintf( stderr, " user_ptr=%p,", req->user_ptr );
3725 fprintf( stderr, " in_size=%u,", req->in_size );
3726 fprintf( stderr, " out_size=%u,", req->out_size );
3727 fprintf( stderr, " next_data=" );
3728 dump_varargs_bytes( cur_size );
3731 static void dump_make_process_system_request( const struct make_process_system_request *req )
3735 static void dump_make_process_system_reply( const struct make_process_system_reply *req )
3737 fprintf( stderr, " event=%04x", req->event );
3740 static void dump_get_token_statistics_request( const struct get_token_statistics_request *req )
3742 fprintf( stderr, " handle=%04x", req->handle );
3745 static void dump_get_token_statistics_reply( const struct get_token_statistics_reply *req )
3747 fprintf( stderr, " token_id=" );
3748 dump_luid( &req->token_id );
3749 fprintf( stderr, "," );
3750 fprintf( stderr, " modified_id=" );
3751 dump_luid( &req->modified_id );
3752 fprintf( stderr, "," );
3753 fprintf( stderr, " primary=%d,", req->primary );
3754 fprintf( stderr, " impersonation_level=%d,", req->impersonation_level );
3755 fprintf( stderr, " group_count=%d,", req->group_count );
3756 fprintf( stderr, " privilege_count=%d", req->privilege_count );
3759 static void dump_create_completion_request( const struct create_completion_request *req )
3761 fprintf( stderr, " access=%08x,", req->access );
3762 fprintf( stderr, " attributes=%08x,", req->attributes );
3763 fprintf( stderr, " concurrent=%08x,", req->concurrent );
3764 fprintf( stderr, " rootdir=%04x,", req->rootdir );
3765 fprintf( stderr, " filename=" );
3766 dump_varargs_string( cur_size );
3769 static void dump_create_completion_reply( const struct create_completion_reply *req )
3771 fprintf( stderr, " handle=%04x", req->handle );
3774 static void dump_open_completion_request( const struct open_completion_request *req )
3776 fprintf( stderr, " access=%08x,", req->access );
3777 fprintf( stderr, " attributes=%08x,", req->attributes );
3778 fprintf( stderr, " rootdir=%04x,", req->rootdir );
3779 fprintf( stderr, " filename=" );
3780 dump_varargs_string( cur_size );
3783 static void dump_open_completion_reply( const struct open_completion_reply *req )
3785 fprintf( stderr, " handle=%04x", req->handle );
3788 static void dump_add_completion_request( const struct add_completion_request *req )
3790 fprintf( stderr, " handle=%04x,", req->handle );
3791 fprintf( stderr, " ckey=" );
3792 dump_uint64( &req->ckey );
3793 fprintf( stderr, "," );
3794 fprintf( stderr, " cvalue=" );
3795 dump_uint64( &req->cvalue );
3796 fprintf( stderr, "," );
3797 fprintf( stderr, " information=%08x,", req->information );
3798 fprintf( stderr, " status=%08x", req->status );
3801 static void dump_remove_completion_request( const struct remove_completion_request *req )
3803 fprintf( stderr, " handle=%04x", req->handle );
3806 static void dump_remove_completion_reply( const struct remove_completion_reply *req )
3808 fprintf( stderr, " ckey=" );
3809 dump_uint64( &req->ckey );
3810 fprintf( stderr, "," );
3811 fprintf( stderr, " cvalue=" );
3812 dump_uint64( &req->cvalue );
3813 fprintf( stderr, "," );
3814 fprintf( stderr, " information=%08x,", req->information );
3815 fprintf( stderr, " status=%08x", req->status );
3818 static void dump_query_completion_request( const struct query_completion_request *req )
3820 fprintf( stderr, " handle=%04x", req->handle );
3823 static void dump_query_completion_reply( const struct query_completion_reply *req )
3825 fprintf( stderr, " depth=%08x", req->depth );
3828 static void dump_set_completion_info_request( const struct set_completion_info_request *req )
3830 fprintf( stderr, " handle=%04x,", req->handle );
3831 fprintf( stderr, " chandle=%04x,", req->chandle );
3832 fprintf( stderr, " ckey=" );
3833 dump_uint64( &req->ckey );
3836 static void dump_add_fd_completion_request( const struct add_fd_completion_request *req )
3838 fprintf( stderr, " handle=%04x,", req->handle );
3839 fprintf( stderr, " cvalue=" );
3840 dump_uint64( &req->cvalue );
3841 fprintf( stderr, "," );
3842 fprintf( stderr, " status=%08x,", req->status );
3843 fprintf( stderr, " information=%08x", req->information );
3846 static void dump_get_window_layered_info_request( const struct get_window_layered_info_request *req )
3848 fprintf( stderr, " handle=%08x", req->handle );
3851 static void dump_get_window_layered_info_reply( const struct get_window_layered_info_reply *req )
3853 fprintf( stderr, " color_key=%08x,", req->color_key );
3854 fprintf( stderr, " alpha=%08x,", req->alpha );
3855 fprintf( stderr, " flags=%08x", req->flags );
3858 static void dump_set_window_layered_info_request( const struct set_window_layered_info_request *req )
3860 fprintf( stderr, " handle=%08x,", req->handle );
3861 fprintf( stderr, " color_key=%08x,", req->color_key );
3862 fprintf( stderr, " alpha=%08x,", req->alpha );
3863 fprintf( stderr, " flags=%08x", req->flags );
3866 static const dump_func req_dumpers[REQ_NB_REQUESTS] = {
3867 (dump_func)dump_new_process_request,
3868 (dump_func)dump_get_new_process_info_request,
3869 (dump_func)dump_new_thread_request,
3870 (dump_func)dump_get_startup_info_request,
3871 (dump_func)dump_init_process_done_request,
3872 (dump_func)dump_init_thread_request,
3873 (dump_func)dump_terminate_process_request,
3874 (dump_func)dump_terminate_thread_request,
3875 (dump_func)dump_get_process_info_request,
3876 (dump_func)dump_set_process_info_request,
3877 (dump_func)dump_get_thread_info_request,
3878 (dump_func)dump_set_thread_info_request,
3879 (dump_func)dump_get_dll_info_request,
3880 (dump_func)dump_suspend_thread_request,
3881 (dump_func)dump_resume_thread_request,
3882 (dump_func)dump_load_dll_request,
3883 (dump_func)dump_unload_dll_request,
3884 (dump_func)dump_queue_apc_request,
3885 (dump_func)dump_get_apc_result_request,
3886 (dump_func)dump_close_handle_request,
3887 (dump_func)dump_set_handle_info_request,
3888 (dump_func)dump_dup_handle_request,
3889 (dump_func)dump_open_process_request,
3890 (dump_func)dump_open_thread_request,
3891 (dump_func)dump_select_request,
3892 (dump_func)dump_create_event_request,
3893 (dump_func)dump_event_op_request,
3894 (dump_func)dump_open_event_request,
3895 (dump_func)dump_create_mutex_request,
3896 (dump_func)dump_release_mutex_request,
3897 (dump_func)dump_open_mutex_request,
3898 (dump_func)dump_create_semaphore_request,
3899 (dump_func)dump_release_semaphore_request,
3900 (dump_func)dump_open_semaphore_request,
3901 (dump_func)dump_create_file_request,
3902 (dump_func)dump_open_file_object_request,
3903 (dump_func)dump_alloc_file_handle_request,
3904 (dump_func)dump_get_handle_fd_request,
3905 (dump_func)dump_flush_file_request,
3906 (dump_func)dump_lock_file_request,
3907 (dump_func)dump_unlock_file_request,
3908 (dump_func)dump_create_socket_request,
3909 (dump_func)dump_accept_socket_request,
3910 (dump_func)dump_set_socket_event_request,
3911 (dump_func)dump_get_socket_event_request,
3912 (dump_func)dump_enable_socket_event_request,
3913 (dump_func)dump_set_socket_deferred_request,
3914 (dump_func)dump_alloc_console_request,
3915 (dump_func)dump_free_console_request,
3916 (dump_func)dump_get_console_renderer_events_request,
3917 (dump_func)dump_open_console_request,
3918 (dump_func)dump_get_console_wait_event_request,
3919 (dump_func)dump_get_console_mode_request,
3920 (dump_func)dump_set_console_mode_request,
3921 (dump_func)dump_set_console_input_info_request,
3922 (dump_func)dump_get_console_input_info_request,
3923 (dump_func)dump_append_console_input_history_request,
3924 (dump_func)dump_get_console_input_history_request,
3925 (dump_func)dump_create_console_output_request,
3926 (dump_func)dump_set_console_output_info_request,
3927 (dump_func)dump_get_console_output_info_request,
3928 (dump_func)dump_write_console_input_request,
3929 (dump_func)dump_read_console_input_request,
3930 (dump_func)dump_write_console_output_request,
3931 (dump_func)dump_fill_console_output_request,
3932 (dump_func)dump_read_console_output_request,
3933 (dump_func)dump_move_console_output_request,
3934 (dump_func)dump_send_console_signal_request,
3935 (dump_func)dump_read_directory_changes_request,
3936 (dump_func)dump_read_change_request,
3937 (dump_func)dump_create_mapping_request,
3938 (dump_func)dump_open_mapping_request,
3939 (dump_func)dump_get_mapping_info_request,
3940 (dump_func)dump_get_mapping_committed_range_request,
3941 (dump_func)dump_add_mapping_committed_range_request,
3942 (dump_func)dump_create_snapshot_request,
3943 (dump_func)dump_next_process_request,
3944 (dump_func)dump_next_thread_request,
3945 (dump_func)dump_wait_debug_event_request,
3946 (dump_func)dump_queue_exception_event_request,
3947 (dump_func)dump_get_exception_status_request,
3948 (dump_func)dump_output_debug_string_request,
3949 (dump_func)dump_continue_debug_event_request,
3950 (dump_func)dump_debug_process_request,
3951 (dump_func)dump_debug_break_request,
3952 (dump_func)dump_set_debugger_kill_on_exit_request,
3953 (dump_func)dump_read_process_memory_request,
3954 (dump_func)dump_write_process_memory_request,
3955 (dump_func)dump_create_key_request,
3956 (dump_func)dump_open_key_request,
3957 (dump_func)dump_delete_key_request,
3958 (dump_func)dump_flush_key_request,
3959 (dump_func)dump_enum_key_request,
3960 (dump_func)dump_set_key_value_request,
3961 (dump_func)dump_get_key_value_request,
3962 (dump_func)dump_enum_key_value_request,
3963 (dump_func)dump_delete_key_value_request,
3964 (dump_func)dump_load_registry_request,
3965 (dump_func)dump_unload_registry_request,
3966 (dump_func)dump_save_registry_request,
3967 (dump_func)dump_set_registry_notification_request,
3968 (dump_func)dump_create_timer_request,
3969 (dump_func)dump_open_timer_request,
3970 (dump_func)dump_set_timer_request,
3971 (dump_func)dump_cancel_timer_request,
3972 (dump_func)dump_get_timer_info_request,
3973 (dump_func)dump_get_thread_context_request,
3974 (dump_func)dump_set_thread_context_request,
3975 (dump_func)dump_get_selector_entry_request,
3976 (dump_func)dump_add_atom_request,
3977 (dump_func)dump_delete_atom_request,
3978 (dump_func)dump_find_atom_request,
3979 (dump_func)dump_get_atom_information_request,
3980 (dump_func)dump_set_atom_information_request,
3981 (dump_func)dump_empty_atom_table_request,
3982 (dump_func)dump_init_atom_table_request,
3983 (dump_func)dump_get_msg_queue_request,
3984 (dump_func)dump_set_queue_fd_request,
3985 (dump_func)dump_set_queue_mask_request,
3986 (dump_func)dump_get_queue_status_request,
3987 (dump_func)dump_get_process_idle_event_request,
3988 (dump_func)dump_send_message_request,
3989 (dump_func)dump_post_quit_message_request,
3990 (dump_func)dump_send_hardware_message_request,
3991 (dump_func)dump_get_message_request,
3992 (dump_func)dump_reply_message_request,
3993 (dump_func)dump_accept_hardware_message_request,
3994 (dump_func)dump_get_message_reply_request,
3995 (dump_func)dump_set_win_timer_request,
3996 (dump_func)dump_kill_win_timer_request,
3997 (dump_func)dump_is_window_hung_request,
3998 (dump_func)dump_get_serial_info_request,
3999 (dump_func)dump_set_serial_info_request,
4000 (dump_func)dump_register_async_request,
4001 (dump_func)dump_cancel_async_request,
4002 (dump_func)dump_ioctl_request,
4003 (dump_func)dump_get_ioctl_result_request,
4004 (dump_func)dump_create_named_pipe_request,
4005 (dump_func)dump_get_named_pipe_info_request,
4006 (dump_func)dump_create_window_request,
4007 (dump_func)dump_destroy_window_request,
4008 (dump_func)dump_get_desktop_window_request,
4009 (dump_func)dump_set_window_owner_request,
4010 (dump_func)dump_get_window_info_request,
4011 (dump_func)dump_set_window_info_request,
4012 (dump_func)dump_set_parent_request,
4013 (dump_func)dump_get_window_parents_request,
4014 (dump_func)dump_get_window_children_request,
4015 (dump_func)dump_get_window_children_from_point_request,
4016 (dump_func)dump_get_window_tree_request,
4017 (dump_func)dump_set_window_pos_request,
4018 (dump_func)dump_get_window_rectangles_request,
4019 (dump_func)dump_get_window_text_request,
4020 (dump_func)dump_set_window_text_request,
4021 (dump_func)dump_get_windows_offset_request,
4022 (dump_func)dump_get_visible_region_request,
4023 (dump_func)dump_get_window_region_request,
4024 (dump_func)dump_set_window_region_request,
4025 (dump_func)dump_get_update_region_request,
4026 (dump_func)dump_update_window_zorder_request,
4027 (dump_func)dump_redraw_window_request,
4028 (dump_func)dump_set_window_property_request,
4029 (dump_func)dump_remove_window_property_request,
4030 (dump_func)dump_get_window_property_request,
4031 (dump_func)dump_get_window_properties_request,
4032 (dump_func)dump_create_winstation_request,
4033 (dump_func)dump_open_winstation_request,
4034 (dump_func)dump_close_winstation_request,
4035 (dump_func)dump_get_process_winstation_request,
4036 (dump_func)dump_set_process_winstation_request,
4037 (dump_func)dump_enum_winstation_request,
4038 (dump_func)dump_create_desktop_request,
4039 (dump_func)dump_open_desktop_request,
4040 (dump_func)dump_close_desktop_request,
4041 (dump_func)dump_get_thread_desktop_request,
4042 (dump_func)dump_set_thread_desktop_request,
4043 (dump_func)dump_enum_desktop_request,
4044 (dump_func)dump_set_user_object_info_request,
4045 (dump_func)dump_attach_thread_input_request,
4046 (dump_func)dump_get_thread_input_request,
4047 (dump_func)dump_get_last_input_time_request,
4048 (dump_func)dump_get_key_state_request,
4049 (dump_func)dump_set_key_state_request,
4050 (dump_func)dump_set_foreground_window_request,
4051 (dump_func)dump_set_focus_window_request,
4052 (dump_func)dump_set_active_window_request,
4053 (dump_func)dump_set_capture_window_request,
4054 (dump_func)dump_set_caret_window_request,
4055 (dump_func)dump_set_caret_info_request,
4056 (dump_func)dump_set_hook_request,
4057 (dump_func)dump_remove_hook_request,
4058 (dump_func)dump_start_hook_chain_request,
4059 (dump_func)dump_finish_hook_chain_request,
4060 (dump_func)dump_get_hook_info_request,
4061 (dump_func)dump_create_class_request,
4062 (dump_func)dump_destroy_class_request,
4063 (dump_func)dump_set_class_info_request,
4064 (dump_func)dump_set_clipboard_info_request,
4065 (dump_func)dump_open_token_request,
4066 (dump_func)dump_set_global_windows_request,
4067 (dump_func)dump_adjust_token_privileges_request,
4068 (dump_func)dump_get_token_privileges_request,
4069 (dump_func)dump_check_token_privileges_request,
4070 (dump_func)dump_duplicate_token_request,
4071 (dump_func)dump_access_check_request,
4072 (dump_func)dump_get_token_user_request,
4073 (dump_func)dump_get_token_groups_request,
4074 (dump_func)dump_set_security_object_request,
4075 (dump_func)dump_get_security_object_request,
4076 (dump_func)dump_create_mailslot_request,
4077 (dump_func)dump_set_mailslot_info_request,
4078 (dump_func)dump_create_directory_request,
4079 (dump_func)dump_open_directory_request,
4080 (dump_func)dump_get_directory_entry_request,
4081 (dump_func)dump_create_symlink_request,
4082 (dump_func)dump_open_symlink_request,
4083 (dump_func)dump_query_symlink_request,
4084 (dump_func)dump_get_object_info_request,
4085 (dump_func)dump_unlink_object_request,
4086 (dump_func)dump_get_token_impersonation_level_request,
4087 (dump_func)dump_allocate_locally_unique_id_request,
4088 (dump_func)dump_create_device_manager_request,
4089 (dump_func)dump_create_device_request,
4090 (dump_func)dump_delete_device_request,
4091 (dump_func)dump_get_next_device_request_request,
4092 (dump_func)dump_make_process_system_request,
4093 (dump_func)dump_get_token_statistics_request,
4094 (dump_func)dump_create_completion_request,
4095 (dump_func)dump_open_completion_request,
4096 (dump_func)dump_add_completion_request,
4097 (dump_func)dump_remove_completion_request,
4098 (dump_func)dump_query_completion_request,
4099 (dump_func)dump_set_completion_info_request,
4100 (dump_func)dump_add_fd_completion_request,
4101 (dump_func)dump_get_window_layered_info_request,
4102 (dump_func)dump_set_window_layered_info_request,
4105 static const dump_func reply_dumpers[REQ_NB_REQUESTS] = {
4106 (dump_func)dump_new_process_reply,
4107 (dump_func)dump_get_new_process_info_reply,
4108 (dump_func)dump_new_thread_reply,
4109 (dump_func)dump_get_startup_info_reply,
4110 NULL,
4111 (dump_func)dump_init_thread_reply,
4112 (dump_func)dump_terminate_process_reply,
4113 (dump_func)dump_terminate_thread_reply,
4114 (dump_func)dump_get_process_info_reply,
4115 NULL,
4116 (dump_func)dump_get_thread_info_reply,
4117 NULL,
4118 (dump_func)dump_get_dll_info_reply,
4119 (dump_func)dump_suspend_thread_reply,
4120 (dump_func)dump_resume_thread_reply,
4121 NULL,
4122 NULL,
4123 (dump_func)dump_queue_apc_reply,
4124 (dump_func)dump_get_apc_result_reply,
4125 NULL,
4126 (dump_func)dump_set_handle_info_reply,
4127 (dump_func)dump_dup_handle_reply,
4128 (dump_func)dump_open_process_reply,
4129 (dump_func)dump_open_thread_reply,
4130 (dump_func)dump_select_reply,
4131 (dump_func)dump_create_event_reply,
4132 NULL,
4133 (dump_func)dump_open_event_reply,
4134 (dump_func)dump_create_mutex_reply,
4135 (dump_func)dump_release_mutex_reply,
4136 (dump_func)dump_open_mutex_reply,
4137 (dump_func)dump_create_semaphore_reply,
4138 (dump_func)dump_release_semaphore_reply,
4139 (dump_func)dump_open_semaphore_reply,
4140 (dump_func)dump_create_file_reply,
4141 (dump_func)dump_open_file_object_reply,
4142 (dump_func)dump_alloc_file_handle_reply,
4143 (dump_func)dump_get_handle_fd_reply,
4144 (dump_func)dump_flush_file_reply,
4145 (dump_func)dump_lock_file_reply,
4146 NULL,
4147 (dump_func)dump_create_socket_reply,
4148 (dump_func)dump_accept_socket_reply,
4149 NULL,
4150 (dump_func)dump_get_socket_event_reply,
4151 NULL,
4152 NULL,
4153 (dump_func)dump_alloc_console_reply,
4154 NULL,
4155 (dump_func)dump_get_console_renderer_events_reply,
4156 (dump_func)dump_open_console_reply,
4157 (dump_func)dump_get_console_wait_event_reply,
4158 (dump_func)dump_get_console_mode_reply,
4159 NULL,
4160 NULL,
4161 (dump_func)dump_get_console_input_info_reply,
4162 NULL,
4163 (dump_func)dump_get_console_input_history_reply,
4164 (dump_func)dump_create_console_output_reply,
4165 NULL,
4166 (dump_func)dump_get_console_output_info_reply,
4167 (dump_func)dump_write_console_input_reply,
4168 (dump_func)dump_read_console_input_reply,
4169 (dump_func)dump_write_console_output_reply,
4170 (dump_func)dump_fill_console_output_reply,
4171 (dump_func)dump_read_console_output_reply,
4172 NULL,
4173 NULL,
4174 NULL,
4175 (dump_func)dump_read_change_reply,
4176 (dump_func)dump_create_mapping_reply,
4177 (dump_func)dump_open_mapping_reply,
4178 (dump_func)dump_get_mapping_info_reply,
4179 (dump_func)dump_get_mapping_committed_range_reply,
4180 NULL,
4181 (dump_func)dump_create_snapshot_reply,
4182 (dump_func)dump_next_process_reply,
4183 (dump_func)dump_next_thread_reply,
4184 (dump_func)dump_wait_debug_event_reply,
4185 (dump_func)dump_queue_exception_event_reply,
4186 (dump_func)dump_get_exception_status_reply,
4187 NULL,
4188 NULL,
4189 NULL,
4190 (dump_func)dump_debug_break_reply,
4191 NULL,
4192 (dump_func)dump_read_process_memory_reply,
4193 NULL,
4194 (dump_func)dump_create_key_reply,
4195 (dump_func)dump_open_key_reply,
4196 NULL,
4197 NULL,
4198 (dump_func)dump_enum_key_reply,
4199 NULL,
4200 (dump_func)dump_get_key_value_reply,
4201 (dump_func)dump_enum_key_value_reply,
4202 NULL,
4203 NULL,
4204 NULL,
4205 NULL,
4206 NULL,
4207 (dump_func)dump_create_timer_reply,
4208 (dump_func)dump_open_timer_reply,
4209 (dump_func)dump_set_timer_reply,
4210 (dump_func)dump_cancel_timer_reply,
4211 (dump_func)dump_get_timer_info_reply,
4212 (dump_func)dump_get_thread_context_reply,
4213 (dump_func)dump_set_thread_context_reply,
4214 (dump_func)dump_get_selector_entry_reply,
4215 (dump_func)dump_add_atom_reply,
4216 NULL,
4217 (dump_func)dump_find_atom_reply,
4218 (dump_func)dump_get_atom_information_reply,
4219 NULL,
4220 NULL,
4221 (dump_func)dump_init_atom_table_reply,
4222 (dump_func)dump_get_msg_queue_reply,
4223 NULL,
4224 (dump_func)dump_set_queue_mask_reply,
4225 (dump_func)dump_get_queue_status_reply,
4226 (dump_func)dump_get_process_idle_event_reply,
4227 NULL,
4228 NULL,
4229 NULL,
4230 (dump_func)dump_get_message_reply,
4231 NULL,
4232 NULL,
4233 (dump_func)dump_get_message_reply_reply,
4234 (dump_func)dump_set_win_timer_reply,
4235 NULL,
4236 (dump_func)dump_is_window_hung_reply,
4237 (dump_func)dump_get_serial_info_reply,
4238 NULL,
4239 NULL,
4240 NULL,
4241 (dump_func)dump_ioctl_reply,
4242 (dump_func)dump_get_ioctl_result_reply,
4243 (dump_func)dump_create_named_pipe_reply,
4244 (dump_func)dump_get_named_pipe_info_reply,
4245 (dump_func)dump_create_window_reply,
4246 NULL,
4247 (dump_func)dump_get_desktop_window_reply,
4248 (dump_func)dump_set_window_owner_reply,
4249 (dump_func)dump_get_window_info_reply,
4250 (dump_func)dump_set_window_info_reply,
4251 (dump_func)dump_set_parent_reply,
4252 (dump_func)dump_get_window_parents_reply,
4253 (dump_func)dump_get_window_children_reply,
4254 (dump_func)dump_get_window_children_from_point_reply,
4255 (dump_func)dump_get_window_tree_reply,
4256 (dump_func)dump_set_window_pos_reply,
4257 (dump_func)dump_get_window_rectangles_reply,
4258 (dump_func)dump_get_window_text_reply,
4259 NULL,
4260 (dump_func)dump_get_windows_offset_reply,
4261 (dump_func)dump_get_visible_region_reply,
4262 (dump_func)dump_get_window_region_reply,
4263 NULL,
4264 (dump_func)dump_get_update_region_reply,
4265 NULL,
4266 NULL,
4267 NULL,
4268 (dump_func)dump_remove_window_property_reply,
4269 (dump_func)dump_get_window_property_reply,
4270 (dump_func)dump_get_window_properties_reply,
4271 (dump_func)dump_create_winstation_reply,
4272 (dump_func)dump_open_winstation_reply,
4273 NULL,
4274 (dump_func)dump_get_process_winstation_reply,
4275 NULL,
4276 (dump_func)dump_enum_winstation_reply,
4277 (dump_func)dump_create_desktop_reply,
4278 (dump_func)dump_open_desktop_reply,
4279 NULL,
4280 (dump_func)dump_get_thread_desktop_reply,
4281 NULL,
4282 (dump_func)dump_enum_desktop_reply,
4283 (dump_func)dump_set_user_object_info_reply,
4284 NULL,
4285 (dump_func)dump_get_thread_input_reply,
4286 (dump_func)dump_get_last_input_time_reply,
4287 (dump_func)dump_get_key_state_reply,
4288 NULL,
4289 (dump_func)dump_set_foreground_window_reply,
4290 (dump_func)dump_set_focus_window_reply,
4291 (dump_func)dump_set_active_window_reply,
4292 (dump_func)dump_set_capture_window_reply,
4293 (dump_func)dump_set_caret_window_reply,
4294 (dump_func)dump_set_caret_info_reply,
4295 (dump_func)dump_set_hook_reply,
4296 (dump_func)dump_remove_hook_reply,
4297 (dump_func)dump_start_hook_chain_reply,
4298 NULL,
4299 (dump_func)dump_get_hook_info_reply,
4300 (dump_func)dump_create_class_reply,
4301 (dump_func)dump_destroy_class_reply,
4302 (dump_func)dump_set_class_info_reply,
4303 (dump_func)dump_set_clipboard_info_reply,
4304 (dump_func)dump_open_token_reply,
4305 (dump_func)dump_set_global_windows_reply,
4306 (dump_func)dump_adjust_token_privileges_reply,
4307 (dump_func)dump_get_token_privileges_reply,
4308 (dump_func)dump_check_token_privileges_reply,
4309 (dump_func)dump_duplicate_token_reply,
4310 (dump_func)dump_access_check_reply,
4311 (dump_func)dump_get_token_user_reply,
4312 (dump_func)dump_get_token_groups_reply,
4313 NULL,
4314 (dump_func)dump_get_security_object_reply,
4315 (dump_func)dump_create_mailslot_reply,
4316 (dump_func)dump_set_mailslot_info_reply,
4317 (dump_func)dump_create_directory_reply,
4318 (dump_func)dump_open_directory_reply,
4319 (dump_func)dump_get_directory_entry_reply,
4320 (dump_func)dump_create_symlink_reply,
4321 (dump_func)dump_open_symlink_reply,
4322 (dump_func)dump_query_symlink_reply,
4323 (dump_func)dump_get_object_info_reply,
4324 NULL,
4325 (dump_func)dump_get_token_impersonation_level_reply,
4326 (dump_func)dump_allocate_locally_unique_id_reply,
4327 (dump_func)dump_create_device_manager_reply,
4328 (dump_func)dump_create_device_reply,
4329 NULL,
4330 (dump_func)dump_get_next_device_request_reply,
4331 (dump_func)dump_make_process_system_reply,
4332 (dump_func)dump_get_token_statistics_reply,
4333 (dump_func)dump_create_completion_reply,
4334 (dump_func)dump_open_completion_reply,
4335 NULL,
4336 (dump_func)dump_remove_completion_reply,
4337 (dump_func)dump_query_completion_reply,
4338 NULL,
4339 NULL,
4340 (dump_func)dump_get_window_layered_info_reply,
4341 NULL,
4344 static const char * const req_names[REQ_NB_REQUESTS] = {
4345 "new_process",
4346 "get_new_process_info",
4347 "new_thread",
4348 "get_startup_info",
4349 "init_process_done",
4350 "init_thread",
4351 "terminate_process",
4352 "terminate_thread",
4353 "get_process_info",
4354 "set_process_info",
4355 "get_thread_info",
4356 "set_thread_info",
4357 "get_dll_info",
4358 "suspend_thread",
4359 "resume_thread",
4360 "load_dll",
4361 "unload_dll",
4362 "queue_apc",
4363 "get_apc_result",
4364 "close_handle",
4365 "set_handle_info",
4366 "dup_handle",
4367 "open_process",
4368 "open_thread",
4369 "select",
4370 "create_event",
4371 "event_op",
4372 "open_event",
4373 "create_mutex",
4374 "release_mutex",
4375 "open_mutex",
4376 "create_semaphore",
4377 "release_semaphore",
4378 "open_semaphore",
4379 "create_file",
4380 "open_file_object",
4381 "alloc_file_handle",
4382 "get_handle_fd",
4383 "flush_file",
4384 "lock_file",
4385 "unlock_file",
4386 "create_socket",
4387 "accept_socket",
4388 "set_socket_event",
4389 "get_socket_event",
4390 "enable_socket_event",
4391 "set_socket_deferred",
4392 "alloc_console",
4393 "free_console",
4394 "get_console_renderer_events",
4395 "open_console",
4396 "get_console_wait_event",
4397 "get_console_mode",
4398 "set_console_mode",
4399 "set_console_input_info",
4400 "get_console_input_info",
4401 "append_console_input_history",
4402 "get_console_input_history",
4403 "create_console_output",
4404 "set_console_output_info",
4405 "get_console_output_info",
4406 "write_console_input",
4407 "read_console_input",
4408 "write_console_output",
4409 "fill_console_output",
4410 "read_console_output",
4411 "move_console_output",
4412 "send_console_signal",
4413 "read_directory_changes",
4414 "read_change",
4415 "create_mapping",
4416 "open_mapping",
4417 "get_mapping_info",
4418 "get_mapping_committed_range",
4419 "add_mapping_committed_range",
4420 "create_snapshot",
4421 "next_process",
4422 "next_thread",
4423 "wait_debug_event",
4424 "queue_exception_event",
4425 "get_exception_status",
4426 "output_debug_string",
4427 "continue_debug_event",
4428 "debug_process",
4429 "debug_break",
4430 "set_debugger_kill_on_exit",
4431 "read_process_memory",
4432 "write_process_memory",
4433 "create_key",
4434 "open_key",
4435 "delete_key",
4436 "flush_key",
4437 "enum_key",
4438 "set_key_value",
4439 "get_key_value",
4440 "enum_key_value",
4441 "delete_key_value",
4442 "load_registry",
4443 "unload_registry",
4444 "save_registry",
4445 "set_registry_notification",
4446 "create_timer",
4447 "open_timer",
4448 "set_timer",
4449 "cancel_timer",
4450 "get_timer_info",
4451 "get_thread_context",
4452 "set_thread_context",
4453 "get_selector_entry",
4454 "add_atom",
4455 "delete_atom",
4456 "find_atom",
4457 "get_atom_information",
4458 "set_atom_information",
4459 "empty_atom_table",
4460 "init_atom_table",
4461 "get_msg_queue",
4462 "set_queue_fd",
4463 "set_queue_mask",
4464 "get_queue_status",
4465 "get_process_idle_event",
4466 "send_message",
4467 "post_quit_message",
4468 "send_hardware_message",
4469 "get_message",
4470 "reply_message",
4471 "accept_hardware_message",
4472 "get_message_reply",
4473 "set_win_timer",
4474 "kill_win_timer",
4475 "is_window_hung",
4476 "get_serial_info",
4477 "set_serial_info",
4478 "register_async",
4479 "cancel_async",
4480 "ioctl",
4481 "get_ioctl_result",
4482 "create_named_pipe",
4483 "get_named_pipe_info",
4484 "create_window",
4485 "destroy_window",
4486 "get_desktop_window",
4487 "set_window_owner",
4488 "get_window_info",
4489 "set_window_info",
4490 "set_parent",
4491 "get_window_parents",
4492 "get_window_children",
4493 "get_window_children_from_point",
4494 "get_window_tree",
4495 "set_window_pos",
4496 "get_window_rectangles",
4497 "get_window_text",
4498 "set_window_text",
4499 "get_windows_offset",
4500 "get_visible_region",
4501 "get_window_region",
4502 "set_window_region",
4503 "get_update_region",
4504 "update_window_zorder",
4505 "redraw_window",
4506 "set_window_property",
4507 "remove_window_property",
4508 "get_window_property",
4509 "get_window_properties",
4510 "create_winstation",
4511 "open_winstation",
4512 "close_winstation",
4513 "get_process_winstation",
4514 "set_process_winstation",
4515 "enum_winstation",
4516 "create_desktop",
4517 "open_desktop",
4518 "close_desktop",
4519 "get_thread_desktop",
4520 "set_thread_desktop",
4521 "enum_desktop",
4522 "set_user_object_info",
4523 "attach_thread_input",
4524 "get_thread_input",
4525 "get_last_input_time",
4526 "get_key_state",
4527 "set_key_state",
4528 "set_foreground_window",
4529 "set_focus_window",
4530 "set_active_window",
4531 "set_capture_window",
4532 "set_caret_window",
4533 "set_caret_info",
4534 "set_hook",
4535 "remove_hook",
4536 "start_hook_chain",
4537 "finish_hook_chain",
4538 "get_hook_info",
4539 "create_class",
4540 "destroy_class",
4541 "set_class_info",
4542 "set_clipboard_info",
4543 "open_token",
4544 "set_global_windows",
4545 "adjust_token_privileges",
4546 "get_token_privileges",
4547 "check_token_privileges",
4548 "duplicate_token",
4549 "access_check",
4550 "get_token_user",
4551 "get_token_groups",
4552 "set_security_object",
4553 "get_security_object",
4554 "create_mailslot",
4555 "set_mailslot_info",
4556 "create_directory",
4557 "open_directory",
4558 "get_directory_entry",
4559 "create_symlink",
4560 "open_symlink",
4561 "query_symlink",
4562 "get_object_info",
4563 "unlink_object",
4564 "get_token_impersonation_level",
4565 "allocate_locally_unique_id",
4566 "create_device_manager",
4567 "create_device",
4568 "delete_device",
4569 "get_next_device_request",
4570 "make_process_system",
4571 "get_token_statistics",
4572 "create_completion",
4573 "open_completion",
4574 "add_completion",
4575 "remove_completion",
4576 "query_completion",
4577 "set_completion_info",
4578 "add_fd_completion",
4579 "get_window_layered_info",
4580 "set_window_layered_info",
4583 static const struct
4585 const char *name;
4586 unsigned int value;
4587 } status_names[] =
4589 { "ABANDONED_WAIT_0", STATUS_ABANDONED_WAIT_0 },
4590 { "ACCESS_DENIED", STATUS_ACCESS_DENIED },
4591 { "ACCESS_VIOLATION", STATUS_ACCESS_VIOLATION },
4592 { "ALERTED", STATUS_ALERTED },
4593 { "ALIAS_EXISTS", STATUS_ALIAS_EXISTS },
4594 { "BAD_DEVICE_TYPE", STATUS_BAD_DEVICE_TYPE },
4595 { "BAD_IMPERSONATION_LEVEL", STATUS_BAD_IMPERSONATION_LEVEL },
4596 { "BREAKPOINT", STATUS_BREAKPOINT },
4597 { "BUFFER_OVERFLOW", STATUS_BUFFER_OVERFLOW },
4598 { "BUFFER_TOO_SMALL", STATUS_BUFFER_TOO_SMALL },
4599 { "CANCELLED", STATUS_CANCELLED },
4600 { "CANT_OPEN_ANONYMOUS", STATUS_CANT_OPEN_ANONYMOUS },
4601 { "CHILD_MUST_BE_VOLATILE", STATUS_CHILD_MUST_BE_VOLATILE },
4602 { "DEBUGGER_INACTIVE", STATUS_DEBUGGER_INACTIVE },
4603 { "DEVICE_BUSY", STATUS_DEVICE_BUSY },
4604 { "DIRECTORY_NOT_EMPTY", STATUS_DIRECTORY_NOT_EMPTY },
4605 { "DISK_FULL", STATUS_DISK_FULL },
4606 { "DLL_NOT_FOUND", STATUS_DLL_NOT_FOUND },
4607 { "ERROR_CLASS_ALREADY_EXISTS", 0xc0010000 | ERROR_CLASS_ALREADY_EXISTS },
4608 { "ERROR_CLASS_DOES_NOT_EXIST", 0xc0010000 | ERROR_CLASS_DOES_NOT_EXIST },
4609 { "ERROR_CLASS_HAS_WINDOWS", 0xc0010000 | ERROR_CLASS_HAS_WINDOWS },
4610 { "ERROR_CLIPBOARD_NOT_OPEN", 0xc0010000 | ERROR_CLIPBOARD_NOT_OPEN },
4611 { "ERROR_INVALID_INDEX", 0xc0010000 | ERROR_INVALID_INDEX },
4612 { "ERROR_INVALID_WINDOW_HANDLE", 0xc0010000 | ERROR_INVALID_WINDOW_HANDLE },
4613 { "FILE_DELETED", STATUS_FILE_DELETED },
4614 { "FILE_IS_A_DIRECTORY", STATUS_FILE_IS_A_DIRECTORY },
4615 { "FILE_LOCK_CONFLICT", STATUS_FILE_LOCK_CONFLICT },
4616 { "GENERIC_NOT_MAPPED", STATUS_GENERIC_NOT_MAPPED },
4617 { "HANDLES_CLOSED", STATUS_HANDLES_CLOSED },
4618 { "HANDLE_NOT_CLOSABLE", STATUS_HANDLE_NOT_CLOSABLE },
4619 { "ILLEGAL_FUNCTION", STATUS_ILLEGAL_FUNCTION },
4620 { "INSTANCE_NOT_AVAILABLE", STATUS_INSTANCE_NOT_AVAILABLE },
4621 { "INSUFFICIENT_RESOURCES", STATUS_INSUFFICIENT_RESOURCES },
4622 { "INVALID_CID", STATUS_INVALID_CID },
4623 { "INVALID_DEVICE_REQUEST", STATUS_INVALID_DEVICE_REQUEST },
4624 { "INVALID_FILE_FOR_SECTION", STATUS_INVALID_FILE_FOR_SECTION },
4625 { "INVALID_HANDLE", STATUS_INVALID_HANDLE },
4626 { "INVALID_PARAMETER", STATUS_INVALID_PARAMETER },
4627 { "INVALID_SECURITY_DESCR", STATUS_INVALID_SECURITY_DESCR },
4628 { "IO_TIMEOUT", STATUS_IO_TIMEOUT },
4629 { "KEY_DELETED", STATUS_KEY_DELETED },
4630 { "MAPPED_FILE_SIZE_ZERO", STATUS_MAPPED_FILE_SIZE_ZERO },
4631 { "MEDIA_WRITE_PROTECTED", STATUS_MEDIA_WRITE_PROTECTED },
4632 { "MUTANT_NOT_OWNED", STATUS_MUTANT_NOT_OWNED },
4633 { "NAME_TOO_LONG", STATUS_NAME_TOO_LONG },
4634 { "NOTIFY_ENUM_DIR", STATUS_NOTIFY_ENUM_DIR },
4635 { "NOT_ALL_ASSIGNED", STATUS_NOT_ALL_ASSIGNED },
4636 { "NOT_A_DIRECTORY", STATUS_NOT_A_DIRECTORY },
4637 { "NOT_IMPLEMENTED", STATUS_NOT_IMPLEMENTED },
4638 { "NOT_REGISTRY_FILE", STATUS_NOT_REGISTRY_FILE },
4639 { "NOT_SUPPORTED", STATUS_NOT_SUPPORTED },
4640 { "NO_DATA_DETECTED", STATUS_NO_DATA_DETECTED },
4641 { "NO_IMPERSONATION_TOKEN", STATUS_NO_IMPERSONATION_TOKEN },
4642 { "NO_MEMORY", STATUS_NO_MEMORY },
4643 { "NO_MORE_ENTRIES", STATUS_NO_MORE_ENTRIES },
4644 { "NO_MORE_FILES", STATUS_NO_MORE_FILES },
4645 { "NO_SUCH_DEVICE", STATUS_NO_SUCH_DEVICE },
4646 { "NO_SUCH_FILE", STATUS_NO_SUCH_FILE },
4647 { "NO_TOKEN", STATUS_NO_TOKEN },
4648 { "OBJECT_NAME_COLLISION", STATUS_OBJECT_NAME_COLLISION },
4649 { "OBJECT_NAME_EXISTS", STATUS_OBJECT_NAME_EXISTS },
4650 { "OBJECT_NAME_INVALID", STATUS_OBJECT_NAME_INVALID },
4651 { "OBJECT_NAME_NOT_FOUND", STATUS_OBJECT_NAME_NOT_FOUND },
4652 { "OBJECT_PATH_INVALID", STATUS_OBJECT_PATH_INVALID },
4653 { "OBJECT_PATH_NOT_FOUND", STATUS_OBJECT_PATH_NOT_FOUND },
4654 { "OBJECT_PATH_SYNTAX_BAD", STATUS_OBJECT_PATH_SYNTAX_BAD },
4655 { "OBJECT_TYPE_MISMATCH", STATUS_OBJECT_TYPE_MISMATCH },
4656 { "PENDING", STATUS_PENDING },
4657 { "PIPE_BUSY", STATUS_PIPE_BUSY },
4658 { "PIPE_CONNECTED", STATUS_PIPE_CONNECTED },
4659 { "PIPE_DISCONNECTED", STATUS_PIPE_DISCONNECTED },
4660 { "PIPE_LISTENING", STATUS_PIPE_LISTENING },
4661 { "PIPE_NOT_AVAILABLE", STATUS_PIPE_NOT_AVAILABLE },
4662 { "PRIVILEGE_NOT_HELD", STATUS_PRIVILEGE_NOT_HELD },
4663 { "PROCESS_IS_TERMINATING", STATUS_PROCESS_IS_TERMINATING },
4664 { "SECTION_TOO_BIG", STATUS_SECTION_TOO_BIG },
4665 { "SEMAPHORE_LIMIT_EXCEEDED", STATUS_SEMAPHORE_LIMIT_EXCEEDED },
4666 { "SHARING_VIOLATION", STATUS_SHARING_VIOLATION },
4667 { "SHUTDOWN_IN_PROGRESS", STATUS_SHUTDOWN_IN_PROGRESS },
4668 { "SUSPEND_COUNT_EXCEEDED", STATUS_SUSPEND_COUNT_EXCEEDED },
4669 { "THREAD_IS_TERMINATING", STATUS_THREAD_IS_TERMINATING },
4670 { "TIMEOUT", STATUS_TIMEOUT },
4671 { "TOO_MANY_OPENED_FILES", STATUS_TOO_MANY_OPENED_FILES },
4672 { "UNSUCCESSFUL", STATUS_UNSUCCESSFUL },
4673 { "USER_APC", STATUS_USER_APC },
4674 { "VOLUME_DISMOUNTED", STATUS_VOLUME_DISMOUNTED },
4675 { "WAS_LOCKED", STATUS_WAS_LOCKED },
4676 { NULL, 0 }
4679 /* ### make_requests end ### */
4680 /* Everything above this line is generated automatically by tools/make_requests */
4682 static const char *get_status_name( unsigned int status )
4684 int i;
4685 static char buffer[10];
4687 if (status)
4689 for (i = 0; status_names[i].name; i++)
4690 if (status_names[i].value == status) return status_names[i].name;
4692 sprintf( buffer, "%x", status );
4693 return buffer;
4696 void trace_request(void)
4698 enum request req = current->req.request_header.req;
4699 if (req < REQ_NB_REQUESTS)
4701 fprintf( stderr, "%04x: %s(", current->id, req_names[req] );
4702 if (req_dumpers[req])
4704 cur_data = get_req_data();
4705 cur_size = get_req_data_size();
4706 req_dumpers[req]( &current->req );
4708 fprintf( stderr, " )\n" );
4710 else fprintf( stderr, "%04x: %d(?)\n", current->id, req );
4713 void trace_reply( enum request req, const union generic_reply *reply )
4715 if (req < REQ_NB_REQUESTS)
4717 fprintf( stderr, "%04x: %s() = %s",
4718 current->id, req_names[req], get_status_name(current->error) );
4719 if (reply_dumpers[req])
4721 fprintf( stderr, " {" );
4722 cur_data = current->reply_data;
4723 cur_size = reply->reply_header.reply_size;
4724 reply_dumpers[req]( reply );
4725 fprintf( stderr, " }" );
4727 fputc( '\n', stderr );
4729 else fprintf( stderr, "%04x: %d() = %s\n",
4730 current->id, req, get_status_name(current->error) );