advapi32: Remove unused function.
[wine.git] / server / trace.c
blob557880d87216dcf7386519458b911869af9bb808
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,func=" );
118 dump_uint64( &call->user.func );
119 fprintf( stderr, ",args={" );
120 dump_uint64( &call->user.args[0] );
121 fputc( ',', stderr );
122 dump_uint64( &call->user.args[1] );
123 fputc( ',', stderr );
124 dump_uint64( &call->user.args[2] );
125 fputc( '}', stderr );
126 break;
127 case APC_TIMER:
128 fprintf( stderr, "APC_TIMER,time=" );
129 dump_timeout( &call->timer.time );
130 fprintf( stderr, ",arg=" );
131 dump_uint64( &call->timer.arg );
132 break;
133 case APC_ASYNC_IO:
134 fprintf( stderr, "APC_ASYNC_IO,func=" );
135 dump_uint64( &call->async_io.func );
136 fprintf( stderr, ",user=" );
137 dump_uint64( &call->async_io.user );
138 fprintf( stderr, ",sb=" );
139 dump_uint64( &call->async_io.sb );
140 fprintf( stderr, ",status=%s", get_status_name(call->async_io.status) );
141 break;
142 case APC_VIRTUAL_ALLOC:
143 fprintf( stderr, "APC_VIRTUAL_ALLOC,addr==" );
144 dump_uint64( &call->virtual_alloc.addr );
145 fprintf( stderr, ",size=" );
146 dump_uint64( &call->virtual_alloc.size );
147 fprintf( stderr, ",zero_bits=%u,op_type=%x,prot=%x",
148 call->virtual_alloc.zero_bits, call->virtual_alloc.op_type,
149 call->virtual_alloc.prot );
150 break;
151 case APC_VIRTUAL_FREE:
152 fprintf( stderr, "APC_VIRTUAL_FREE,addr=" );
153 dump_uint64( &call->virtual_free.addr );
154 fprintf( stderr, ",size=" );
155 dump_uint64( &call->virtual_free.size );
156 fprintf( stderr, ",op_type=%x", call->virtual_free.op_type );
157 break;
158 case APC_VIRTUAL_QUERY:
159 fprintf( stderr, "APC_VIRTUAL_QUERY,addr=" );
160 dump_uint64( &call->virtual_query.addr );
161 break;
162 case APC_VIRTUAL_PROTECT:
163 fprintf( stderr, "APC_VIRTUAL_PROTECT,addr=" );
164 dump_uint64( &call->virtual_protect.addr );
165 fprintf( stderr, ",size=" );
166 dump_uint64( &call->virtual_protect.size );
167 fprintf( stderr, ",prot=%x", call->virtual_protect.prot );
168 break;
169 case APC_VIRTUAL_FLUSH:
170 fprintf( stderr, "APC_VIRTUAL_FLUSH,addr=" );
171 dump_uint64( &call->virtual_flush.addr );
172 fprintf( stderr, ",size=" );
173 dump_uint64( &call->virtual_flush.size );
174 break;
175 case APC_VIRTUAL_LOCK:
176 fprintf( stderr, "APC_VIRTUAL_LOCK,addr=" );
177 dump_uint64( &call->virtual_lock.addr );
178 fprintf( stderr, ",size=" );
179 dump_uint64( &call->virtual_lock.size );
180 break;
181 case APC_VIRTUAL_UNLOCK:
182 fprintf( stderr, "APC_VIRTUAL_UNLOCK,addr=" );
183 dump_uint64( &call->virtual_unlock.addr );
184 fprintf( stderr, ",size=" );
185 dump_uint64( &call->virtual_unlock.size );
186 break;
187 case APC_MAP_VIEW:
188 fprintf( stderr, "APC_MAP_VIEW,handle=%04x,addr=", call->map_view.handle );
189 dump_uint64( &call->map_view.addr );
190 fprintf( stderr, ",size=" );
191 dump_uint64( &call->map_view.size );
192 fprintf( stderr, ",offset=" );
193 dump_uint64( &call->map_view.offset );
194 fprintf( stderr, ",zero_bits=%u,alloc_type=%x,prot=%x",
195 call->map_view.zero_bits, call->map_view.alloc_type, call->map_view.prot );
196 break;
197 case APC_UNMAP_VIEW:
198 fprintf( stderr, "APC_UNMAP_VIEW,addr=" );
199 dump_uint64( &call->unmap_view.addr );
200 break;
201 case APC_CREATE_THREAD:
202 fprintf( stderr, "APC_CREATE_THREAD,func=" );
203 dump_uint64( &call->create_thread.func );
204 fprintf( stderr, ",arg=" );
205 dump_uint64( &call->create_thread.arg );
206 fprintf( stderr, ",reserve=" );
207 dump_uint64( &call->create_thread.reserve );
208 fprintf( stderr, ",commit=" );
209 dump_uint64( &call->create_thread.commit );
210 fprintf( stderr, ",suspend=%u", call->create_thread.suspend );
211 break;
212 default:
213 fprintf( stderr, "type=%u", call->type );
214 break;
216 fputc( '}', stderr );
219 static void dump_apc_result( const apc_result_t *result )
221 fputc( '{', stderr );
222 switch(result->type)
224 case APC_NONE:
225 break;
226 case APC_ASYNC_IO:
227 fprintf( stderr, "APC_ASYNC_IO,status=%s,total=%u,apc=",
228 get_status_name( result->async_io.status ), result->async_io.total );
229 dump_uint64( &result->async_io.apc );
230 break;
231 case APC_VIRTUAL_ALLOC:
232 fprintf( stderr, "APC_VIRTUAL_ALLOC,status=%s,addr=",
233 get_status_name( result->virtual_alloc.status ));
234 dump_uint64( &result->virtual_alloc.addr );
235 fprintf( stderr, ",size=" );
236 dump_uint64( &result->virtual_alloc.size );
237 break;
238 case APC_VIRTUAL_FREE:
239 fprintf( stderr, "APC_VIRTUAL_FREE,status=%s,addr=",
240 get_status_name( result->virtual_free.status ));
241 dump_uint64( &result->virtual_free.addr );
242 fprintf( stderr, ",size=" );
243 dump_uint64( &result->virtual_free.size );
244 break;
245 case APC_VIRTUAL_QUERY:
246 fprintf( stderr, "APC_VIRTUAL_QUERY,status=%s,base=",
247 get_status_name( result->virtual_query.status ));
248 dump_uint64( &result->virtual_query.base );
249 fprintf( stderr, ",alloc_base=" );
250 dump_uint64( &result->virtual_query.alloc_base );
251 fprintf( stderr, ",size=" );
252 dump_uint64( &result->virtual_query.size );
253 fprintf( stderr, ",state=%x,prot=%x,alloc_prot=%x,alloc_type=%x",
254 result->virtual_query.state, result->virtual_query.prot,
255 result->virtual_query.alloc_prot, result->virtual_query.alloc_type );
256 break;
257 case APC_VIRTUAL_PROTECT:
258 fprintf( stderr, "APC_VIRTUAL_PROTECT,status=%s,addr=",
259 get_status_name( result->virtual_protect.status ));
260 dump_uint64( &result->virtual_protect.addr );
261 fprintf( stderr, ",size=" );
262 dump_uint64( &result->virtual_protect.size );
263 fprintf( stderr, ",prot=%x", result->virtual_protect.prot );
264 break;
265 case APC_VIRTUAL_FLUSH:
266 fprintf( stderr, "APC_VIRTUAL_FLUSH,status=%s,addr=",
267 get_status_name( result->virtual_flush.status ));
268 dump_uint64( &result->virtual_flush.addr );
269 fprintf( stderr, ",size=" );
270 dump_uint64( &result->virtual_flush.size );
271 break;
272 case APC_VIRTUAL_LOCK:
273 fprintf( stderr, "APC_VIRTUAL_LOCK,status=%s,addr=",
274 get_status_name( result->virtual_lock.status ));
275 dump_uint64( &result->virtual_lock.addr );
276 fprintf( stderr, ",size=" );
277 dump_uint64( &result->virtual_lock.size );
278 break;
279 case APC_VIRTUAL_UNLOCK:
280 fprintf( stderr, "APC_VIRTUAL_UNLOCK,status=%s,addr=",
281 get_status_name( result->virtual_unlock.status ));
282 dump_uint64( &result->virtual_unlock.addr );
283 fprintf( stderr, ",size=" );
284 dump_uint64( &result->virtual_unlock.size );
285 break;
286 case APC_MAP_VIEW:
287 fprintf( stderr, "APC_MAP_VIEW,status=%s,addr=",
288 get_status_name( result->map_view.status ));
289 dump_uint64( &result->map_view.addr );
290 fprintf( stderr, ",size=" );
291 dump_uint64( &result->map_view.size );
292 break;
293 case APC_UNMAP_VIEW:
294 fprintf( stderr, "APC_UNMAP_VIEW,status=%s",
295 get_status_name( result->unmap_view.status ) );
296 break;
297 case APC_CREATE_THREAD:
298 fprintf( stderr, "APC_CREATE_THREAD,status=%s,tid=%04x,handle=%04x",
299 get_status_name( result->create_thread.status ),
300 result->create_thread.tid, result->create_thread.handle );
301 break;
302 default:
303 fprintf( stderr, "type=%u", result->type );
304 break;
306 fputc( '}', stderr );
309 static void dump_async_data( const async_data_t *data )
311 fprintf( stderr, "{handle=%04x,event=%04x,callback=", data->handle, data->event );
312 dump_uint64( &data->callback );
313 fprintf( stderr, ",iosb=" );
314 dump_uint64( &data->iosb );
315 fprintf( stderr, ",arg=" );
316 dump_uint64( &data->arg );
317 fprintf( stderr, ",cvalue=" );
318 dump_uint64( &data->cvalue );
319 fputc( '}', stderr );
322 static void dump_luid( const luid_t *luid )
324 fprintf( stderr, "%d.%u", luid->high_part, luid->low_part );
327 static void dump_context( const CONTEXT *context, data_size_t size )
329 CONTEXT ctx;
331 memset( &ctx, 0, sizeof(ctx) );
332 memcpy( &ctx, context, min( size, sizeof(CONTEXT) ));
333 #ifdef __i386__
334 fprintf( stderr, "{flags=%08x,eax=%08x,ebx=%08x,ecx=%08x,edx=%08x,esi=%08x,edi=%08x,"
335 "ebp=%08x,eip=%08x,esp=%08x,eflags=%08x,cs=%04x,ds=%04x,es=%04x,"
336 "fs=%04x,gs=%04x,dr0=%08x,dr1=%08x,dr2=%08x,dr3=%08x,dr6=%08x,dr7=%08x,",
337 ctx.ContextFlags, ctx.Eax, ctx.Ebx, ctx.Ecx, ctx.Edx,
338 ctx.Esi, ctx.Edi, ctx.Ebp, ctx.Eip, ctx.Esp, ctx.EFlags,
339 ctx.SegCs, ctx.SegDs, ctx.SegEs, ctx.SegFs, ctx.SegGs,
340 ctx.Dr0, ctx.Dr1, ctx.Dr2, ctx.Dr3, ctx.Dr6, ctx.Dr7 );
341 fprintf( stderr, "float=" );
342 dump_uints( (const int *)&ctx.FloatSave, sizeof(ctx.FloatSave) / sizeof(int) );
343 if (size > FIELD_OFFSET( CONTEXT, ExtendedRegisters ))
345 fprintf( stderr, ",extended=" );
346 dump_uints( (const int *)&ctx.ExtendedRegisters, sizeof(ctx.ExtendedRegisters) / sizeof(int) );
348 fprintf( stderr, "}" );
349 #else
350 dump_uints( (const int *)&ctx, sizeof(ctx) / sizeof(int) );
351 #endif
354 static void dump_exc_record( const EXCEPTION_RECORD *rec )
356 unsigned int i;
357 fprintf( stderr, "{code=%x,flags=%x,rec=%p,addr=%p,params={",
358 rec->ExceptionCode, rec->ExceptionFlags, rec->ExceptionRecord,
359 rec->ExceptionAddress );
360 for (i = 0; i < min(rec->NumberParameters,EXCEPTION_MAXIMUM_PARAMETERS); i++)
362 if (i) fputc( ',', stderr );
363 fprintf( stderr, "%lx", rec->ExceptionInformation[i] );
365 fputc( '}', stderr );
368 static void dump_varargs_ints( data_size_t size )
370 const int *data = cur_data;
371 data_size_t len = size / sizeof(*data);
373 fputc( '{', stderr );
374 while (len > 0)
376 fprintf( stderr, "%d", *data++ );
377 if (--len) fputc( ',', stderr );
379 fputc( '}', stderr );
380 remove_data( size );
383 static void dump_varargs_apc_result( data_size_t size )
385 const apc_result_t *result = cur_data;
387 if (size >= sizeof(*result))
389 dump_apc_result( result );
390 size = sizeof(*result);
392 remove_data( size );
395 static void dump_varargs_handles( data_size_t size )
397 const obj_handle_t *data = cur_data;
398 data_size_t len = size / sizeof(*data);
400 fputc( '{', stderr );
401 while (len > 0)
403 fprintf( stderr, "%04x", *data++ );
404 if (--len) fputc( ',', stderr );
406 fputc( '}', stderr );
407 remove_data( size );
410 static void dump_varargs_user_handles( data_size_t size )
412 const user_handle_t *data = cur_data;
413 data_size_t len = size / sizeof(*data);
415 fputc( '{', stderr );
416 while (len > 0)
418 fprintf( stderr, "%08x", *data++ );
419 if (--len) fputc( ',', stderr );
421 fputc( '}', stderr );
422 remove_data( size );
425 static void dump_varargs_bytes( data_size_t size )
427 const unsigned char *data = cur_data;
428 data_size_t len = size;
430 fputc( '{', stderr );
431 while (len > 0)
433 fprintf( stderr, "%02x", *data++ );
434 if (--len) fputc( ',', stderr );
436 fputc( '}', stderr );
437 remove_data( size );
440 static void dump_varargs_string( data_size_t size )
442 fprintf( stderr, "\"%.*s\"", (int)size, (const char *)cur_data );
443 remove_data( size );
446 static void dump_varargs_unicode_str( data_size_t size )
448 fprintf( stderr, "L\"" );
449 dump_strW( cur_data, size / sizeof(WCHAR), stderr, "\"\"" );
450 fputc( '\"', stderr );
451 remove_data( size );
454 static void dump_varargs_context( data_size_t size )
456 if (!size)
458 fprintf( stderr, "{}" );
459 return;
461 dump_context( cur_data, size );
462 remove_data( min( size, sizeof(CONTEXT) ));
465 static void dump_varargs_exc_event( data_size_t size )
467 const CONTEXT *ptr = cur_data;
469 if (!size)
471 fprintf( stderr, "{}" );
472 return;
474 fprintf( stderr, "{context=" );
475 dump_context( ptr, size );
476 if (size > sizeof(CONTEXT))
478 fprintf( stderr, ",rec=" );
479 dump_exc_record( (const EXCEPTION_RECORD *)(ptr + 1) );
481 fputc( '}', stderr );
482 remove_data( size );
485 static void dump_varargs_debug_event( data_size_t size )
487 const debug_event_t *event = cur_data;
489 if (!size)
491 fprintf( stderr, "{}" );
492 return;
494 switch(event->code)
496 case EXCEPTION_DEBUG_EVENT:
497 fprintf( stderr, "{exception," );
498 dump_exc_record( &event->info.exception.record );
499 fprintf( stderr, ",first=%d}", event->info.exception.first );
500 break;
501 case CREATE_THREAD_DEBUG_EVENT:
502 fprintf( stderr, "{create_thread,thread=%04x,teb=", event->info.create_thread.handle );
503 dump_uint64( &event->info.create_thread.teb );
504 fprintf( stderr, ",start=" );
505 dump_uint64( &event->info.create_thread.start );
506 fputc( '}', stderr );
507 break;
508 case CREATE_PROCESS_DEBUG_EVENT:
509 fprintf( stderr, "{create_process,file=%04x,process=%04x,thread=%04x,base=",
510 event->info.create_process.file, event->info.create_process.process,
511 event->info.create_process.thread );
512 dump_uint64( &event->info.create_process.base );
513 fprintf( stderr, ",offset=%d,size=%d,teb=",
514 event->info.create_process.dbg_offset, event->info.create_process.dbg_size );
515 dump_uint64( &event->info.create_process.teb );
516 fprintf( stderr, ",start=" );
517 dump_uint64( &event->info.create_process.start );
518 fprintf( stderr, ",name=" );
519 dump_uint64( &event->info.create_process.name );
520 fprintf( stderr, ",unicode=%d}", event->info.create_process.unicode );
521 break;
522 case EXIT_THREAD_DEBUG_EVENT:
523 fprintf( stderr, "{exit_thread,code=%d}", event->info.exit.exit_code );
524 break;
525 case EXIT_PROCESS_DEBUG_EVENT:
526 fprintf( stderr, "{exit_process,code=%d}", event->info.exit.exit_code );
527 break;
528 case LOAD_DLL_DEBUG_EVENT:
529 fprintf( stderr, "{load_dll,file=%04x,base", event->info.load_dll.handle );
530 dump_uint64( &event->info.load_dll.base );
531 fprintf( stderr, ",offset=%d,size=%d,name=",
532 event->info.load_dll.dbg_offset, event->info.load_dll.dbg_size );
533 dump_uint64( &event->info.load_dll.name );
534 fprintf( stderr, ",unicode=%d}", event->info.load_dll.unicode );
535 break;
536 case UNLOAD_DLL_DEBUG_EVENT:
537 fputs( "{unload_dll,base=", stderr );
538 dump_uint64( &event->info.unload_dll.base );
539 fputc( '}', stderr );
540 break;
541 case OUTPUT_DEBUG_STRING_EVENT:
542 fprintf( stderr, "{output_string,string=" );
543 dump_uint64( &event->info.output_string.string );
544 fprintf( stderr, ",unicode=%d,len=%u}",
545 event->info.output_string.unicode, event->info.output_string.length );
546 break;
547 case RIP_EVENT:
548 fprintf( stderr, "{rip,err=%d,type=%d}",
549 event->info.rip_info.error, event->info.rip_info.type );
550 break;
551 case 0: /* zero is the code returned on timeouts */
552 fprintf( stderr, "{}" );
553 break;
554 default:
555 fprintf( stderr, "{code=??? (%d)}", event->code );
556 break;
558 remove_data( size );
561 /* dump a unicode string contained in a buffer; helper for dump_varargs_startup_info */
562 static void dump_inline_unicode_string( const UNICODE_STRING *str, const void *data, data_size_t size )
564 size_t length = str->Length;
565 size_t offset = (size_t)str->Buffer;
567 if (offset >= size) return;
568 if (offset + length > size) length = size - offset;
569 dump_strW( (const WCHAR *)data + offset/sizeof(WCHAR), length/sizeof(WCHAR), stderr, "\"\"" );
572 static void dump_varargs_startup_info( data_size_t size )
574 const RTL_USER_PROCESS_PARAMETERS *ptr = cur_data;
575 RTL_USER_PROCESS_PARAMETERS params;
577 if (size < sizeof(params.Size))
579 fprintf( stderr, "{}" );
580 return;
582 if (size > ptr->Size) size = ptr->Size;
583 memset( &params, 0, sizeof(params) );
584 memcpy( &params, ptr, min( size, sizeof(params) ));
586 fprintf( stderr, "{AllocationSize=%x,", params.AllocationSize );
587 fprintf( stderr, "Size=%x,", params.Size );
588 fprintf( stderr, "Flags=%x,", params.Flags );
589 fprintf( stderr, "DebugFlags=%x,", params.DebugFlags );
590 fprintf( stderr, "ConsoleHandle=%p,", params.ConsoleHandle );
591 fprintf( stderr, "ConsoleFlags=%x,", params.ConsoleFlags );
592 fprintf( stderr, "hStdInput=%p,", params.hStdInput );
593 fprintf( stderr, "hStdOutput=%p,", params.hStdOutput );
594 fprintf( stderr, "hStdError=%p,", params.hStdError );
595 fprintf( stderr, "CurrentDirectory.Handle=%p,", params.CurrentDirectory.Handle );
596 fprintf( stderr, "dwX=%d,", params.dwX );
597 fprintf( stderr, "dwY=%d,", params.dwY );
598 fprintf( stderr, "dwXSize=%d,", params.dwXSize );
599 fprintf( stderr, "dwYSize=%d,", params.dwYSize );
600 fprintf( stderr, "dwXCountChars=%d,", params.dwXCountChars );
601 fprintf( stderr, "dwYCountChars=%d,", params.dwYCountChars );
602 fprintf( stderr, "dwFillAttribute=%x,", params.dwFillAttribute );
603 fprintf( stderr, "dwFlags=%x,", params.dwFlags );
604 fprintf( stderr, "wShowWindow=%x,", params.wShowWindow );
605 fprintf( stderr, "CurrentDirectory.DosPath=L\"" );
606 dump_inline_unicode_string( &params.CurrentDirectory.DosPath, cur_data, size );
607 fprintf( stderr, "\",DllPath=L\"" );
608 dump_inline_unicode_string( &params.DllPath, cur_data, size );
609 fprintf( stderr, "\",ImagePathName=L\"" );
610 dump_inline_unicode_string( &params.ImagePathName, cur_data, size );
611 fprintf( stderr, "\",CommandLine=L\"" );
612 dump_inline_unicode_string( &params.CommandLine, cur_data, size );
613 fprintf( stderr, "\",WindowTitle=L\"" );
614 dump_inline_unicode_string( &params.WindowTitle, cur_data, size );
615 fprintf( stderr, "\",Desktop=L\"" );
616 dump_inline_unicode_string( &params.Desktop, cur_data, size );
617 fprintf( stderr, "\",ShellInfo=L\"" );
618 dump_inline_unicode_string( &params.ShellInfo, cur_data, size );
619 fprintf( stderr, "\",RuntimeInfo=L\"" );
620 dump_inline_unicode_string( &params.RuntimeInfo, cur_data, size );
621 fprintf( stderr, "\"}" );
622 remove_data( size );
625 static void dump_varargs_input_records( data_size_t size )
627 const INPUT_RECORD *rec = cur_data;
628 data_size_t len = size / sizeof(*rec);
630 fputc( '{', stderr );
631 while (len > 0)
633 fprintf( stderr, "{%04x,...}", rec->EventType );
634 rec++;
635 if (--len) fputc( ',', stderr );
637 fputc( '}', stderr );
638 remove_data( size );
641 static void dump_varargs_rectangles( data_size_t size )
643 const rectangle_t *rect = cur_data;
644 data_size_t len = size / sizeof(*rect);
646 fputc( '{', stderr );
647 while (len > 0)
649 dump_rectangle( rect++ );
650 if (--len) fputc( ',', stderr );
652 fputc( '}', stderr );
653 remove_data( size );
656 static void dump_varargs_message_data( data_size_t size )
658 /* FIXME: dump the structured data */
659 dump_varargs_bytes( size );
662 static void dump_varargs_properties( data_size_t size )
664 const property_data_t *prop = cur_data;
665 data_size_t len = size / sizeof(*prop);
667 fputc( '{', stderr );
668 while (len > 0)
670 fprintf( stderr, "{atom=%04x,str=%d,data=", prop->atom, prop->string );
671 dump_uint64( &prop->data );
672 fputc( '}', stderr );
673 prop++;
674 if (--len) fputc( ',', stderr );
676 fputc( '}', stderr );
677 remove_data( size );
680 static void dump_varargs_LUID_AND_ATTRIBUTES( data_size_t size )
682 const LUID_AND_ATTRIBUTES *lat = cur_data;
683 data_size_t len = size / sizeof(*lat);
685 fputc( '{', stderr );
686 while (len > 0)
688 fprintf( stderr, "{luid=%08x%08x,attr=%x}",
689 lat->Luid.HighPart, lat->Luid.LowPart, lat->Attributes );
690 lat++;
691 if (--len) fputc( ',', stderr );
693 fputc( '}', stderr );
694 remove_data( size );
697 static void dump_inline_sid( const SID *sid, data_size_t size )
699 DWORD i;
701 /* security check */
702 if ((FIELD_OFFSET(SID, SubAuthority[0]) > size) ||
703 (FIELD_OFFSET(SID, SubAuthority[sid->SubAuthorityCount]) > size))
705 fprintf( stderr, "<invalid sid>" );
706 return;
709 fputc( '{', stderr );
710 fprintf( stderr, "S-%u-%u", sid->Revision, MAKELONG(
711 MAKEWORD( sid->IdentifierAuthority.Value[5],
712 sid->IdentifierAuthority.Value[4] ),
713 MAKEWORD( sid->IdentifierAuthority.Value[3],
714 sid->IdentifierAuthority.Value[2] ) ) );
715 for (i = 0; i < sid->SubAuthorityCount; i++)
716 fprintf( stderr, "-%u", sid->SubAuthority[i] );
717 fputc( '}', stderr );
720 static void dump_varargs_SID( data_size_t size )
722 const SID *sid = cur_data;
723 dump_inline_sid( sid, size );
724 remove_data( size );
727 static void dump_inline_acl( const ACL *acl, data_size_t size )
729 const ACE_HEADER *ace;
730 ULONG i;
731 fputc( '{', stderr );
733 if (size)
735 if (size < sizeof(ACL))
737 fprintf( stderr, "<invalid acl>}\n" );
738 return;
740 size -= sizeof(ACL);
741 ace = (const ACE_HEADER *)(acl + 1);
742 for (i = 0; i < acl->AceCount; i++)
744 const SID *sid = NULL;
745 data_size_t sid_size = 0;
747 if (size < sizeof(ACE_HEADER))
748 return;
749 if (size < ace->AceSize)
750 return;
751 size -= ace->AceSize;
752 if (i != 0) fputc( ',', stderr );
753 fprintf( stderr, "{AceType=" );
754 switch (ace->AceType)
756 case ACCESS_DENIED_ACE_TYPE:
757 sid = (const SID *)&((const ACCESS_DENIED_ACE *)ace)->SidStart;
758 sid_size = ace->AceSize - FIELD_OFFSET(ACCESS_DENIED_ACE, SidStart);
759 fprintf( stderr, "ACCESS_DENIED_ACE_TYPE,Mask=%x",
760 ((const ACCESS_DENIED_ACE *)ace)->Mask );
761 break;
762 case ACCESS_ALLOWED_ACE_TYPE:
763 sid = (const SID *)&((const ACCESS_ALLOWED_ACE *)ace)->SidStart;
764 sid_size = ace->AceSize - FIELD_OFFSET(ACCESS_ALLOWED_ACE, SidStart);
765 fprintf( stderr, "ACCESS_ALLOWED_ACE_TYPE,Mask=%x",
766 ((const ACCESS_ALLOWED_ACE *)ace)->Mask );
767 break;
768 case SYSTEM_AUDIT_ACE_TYPE:
769 sid = (const SID *)&((const SYSTEM_AUDIT_ACE *)ace)->SidStart;
770 sid_size = ace->AceSize - FIELD_OFFSET(SYSTEM_AUDIT_ACE, SidStart);
771 fprintf( stderr, "SYSTEM_AUDIT_ACE_TYPE,Mask=%x",
772 ((const SYSTEM_AUDIT_ACE *)ace)->Mask );
773 break;
774 case SYSTEM_ALARM_ACE_TYPE:
775 sid = (const SID *)&((const SYSTEM_ALARM_ACE *)ace)->SidStart;
776 sid_size = ace->AceSize - FIELD_OFFSET(SYSTEM_ALARM_ACE, SidStart);
777 fprintf( stderr, "SYSTEM_ALARM_ACE_TYPE,Mask=%x",
778 ((const SYSTEM_ALARM_ACE *)ace)->Mask );
779 break;
780 default:
781 fprintf( stderr, "unknown<%d>", ace->AceType );
782 break;
784 fprintf( stderr, ",AceFlags=%x,Sid=", ace->AceFlags );
785 if (sid)
786 dump_inline_sid( sid, sid_size );
787 ace = (const ACE_HEADER *)((const char *)ace + ace->AceSize);
788 fputc( '}', stderr );
791 fputc( '}', stderr );
794 static void dump_inline_security_descriptor( const struct security_descriptor *sd, data_size_t size )
796 fputc( '{', stderr );
797 if (size >= sizeof(struct security_descriptor))
799 size_t offset = sizeof(struct security_descriptor);
800 fprintf( stderr, "control=%08x", sd->control );
801 fprintf( stderr, ",owner=" );
802 if ((sd->owner_len > FIELD_OFFSET(SID, SubAuthority[255])) || (offset + sd->owner_len > size))
803 return;
804 if (sd->owner_len)
805 dump_inline_sid( (const SID *)((const char *)sd + offset), sd->owner_len );
806 else
807 fprintf( stderr, "<not present>" );
808 offset += sd->owner_len;
809 fprintf( stderr, ",group=" );
810 if ((sd->group_len > FIELD_OFFSET(SID, SubAuthority[255])) || (offset + sd->group_len > size))
811 return;
812 if (sd->group_len)
813 dump_inline_sid( (const SID *)((const char *)sd + offset), sd->group_len );
814 else
815 fprintf( stderr, "<not present>" );
816 offset += sd->group_len;
817 fprintf( stderr, ",sacl=" );
818 if ((sd->sacl_len >= MAX_ACL_LEN) || (offset + sd->sacl_len > size))
819 return;
820 dump_inline_acl( (const ACL *)((const char *)sd + offset), sd->sacl_len );
821 offset += sd->sacl_len;
822 fprintf( stderr, ",dacl=" );
823 if ((sd->dacl_len >= MAX_ACL_LEN) || (offset + sd->dacl_len > size))
824 return;
825 dump_inline_acl( (const ACL *)((const char *)sd + offset), sd->dacl_len );
826 offset += sd->dacl_len;
828 fputc( '}', stderr );
831 static void dump_varargs_security_descriptor( data_size_t size )
833 const struct security_descriptor *sd = cur_data;
834 dump_inline_security_descriptor( sd, size );
835 remove_data( size );
838 static void dump_varargs_token_groups( data_size_t size )
840 const struct token_groups *tg = cur_data;
841 fputc( '{', stderr );
842 if (size >= sizeof(struct token_groups))
844 size_t offset = sizeof(*tg);
845 fprintf( stderr, "count=%08x,", tg->count );
846 if (tg->count * sizeof(unsigned int) <= size)
848 unsigned int i;
849 const unsigned int *attr = (const unsigned int *)(tg + 1);
851 offset += tg->count * sizeof(unsigned int);
853 fputc( '[', stderr );
854 for (i = 0; i < tg->count; i++)
856 const SID *sid = (const SID *)((const char *)cur_data + offset);
857 if (i != 0)
858 fputc( ',', stderr );
859 fputc( '{', stderr );
860 fprintf( stderr, "attributes=%08x", attr[i] );
861 fprintf( stderr, ",sid=" );
862 dump_inline_sid( sid, size - offset );
863 if ((offset + FIELD_OFFSET(SID, SubAuthority[0]) > size) ||
864 (offset + FIELD_OFFSET(SID, SubAuthority[sid->SubAuthorityCount]) > size))
865 break;
866 offset += FIELD_OFFSET(SID, SubAuthority[sid->SubAuthorityCount]);
867 fputc( '}', stderr );
869 fputc( ']', stderr );
872 fputc( '}', stderr );
875 static void dump_varargs_object_attributes( data_size_t size )
877 const struct object_attributes *objattr = cur_data;
878 fputc( '{', stderr );
879 if (size >= sizeof(struct object_attributes))
881 const WCHAR *str;
882 fprintf( stderr, "rootdir=%04x,sd=", objattr->rootdir );
883 if (objattr->sd_len > size - sizeof(*objattr) ||
884 objattr->name_len > size - sizeof(*objattr) - objattr->sd_len)
885 return;
886 dump_inline_security_descriptor( (const struct security_descriptor *)(objattr + 1), objattr->sd_len );
887 str = (const WCHAR *)objattr + (sizeof(*objattr) + objattr->sd_len) / sizeof(WCHAR);
888 fprintf( stderr, ",name=L\"" );
889 dump_strW( str, objattr->name_len / sizeof(WCHAR), stderr, "\"\"" );
890 fputc( '\"', stderr );
891 remove_data( ((sizeof(*objattr) + objattr->sd_len) / sizeof(WCHAR)) * sizeof(WCHAR) +
892 objattr->name_len );
894 fputc( '}', stderr );
897 typedef void (*dump_func)( const void *req );
899 /* Everything below this line is generated automatically by tools/make_requests */
900 /* ### make_requests begin ### */
902 static void dump_new_process_request( const struct new_process_request *req )
904 fprintf( stderr, " inherit_all=%d,", req->inherit_all );
905 fprintf( stderr, " create_flags=%08x,", req->create_flags );
906 fprintf( stderr, " socket_fd=%d,", req->socket_fd );
907 fprintf( stderr, " exe_file=%04x,", req->exe_file );
908 fprintf( stderr, " hstdin=%04x,", req->hstdin );
909 fprintf( stderr, " hstdout=%04x,", req->hstdout );
910 fprintf( stderr, " hstderr=%04x,", req->hstderr );
911 fprintf( stderr, " process_access=%08x,", req->process_access );
912 fprintf( stderr, " process_attr=%08x,", req->process_attr );
913 fprintf( stderr, " thread_access=%08x,", req->thread_access );
914 fprintf( stderr, " thread_attr=%08x,", req->thread_attr );
915 fprintf( stderr, " info=" );
916 dump_varargs_startup_info( cur_size );
917 fputc( ',', stderr );
918 fprintf( stderr, " env=" );
919 dump_varargs_unicode_str( cur_size );
922 static void dump_new_process_reply( const struct new_process_reply *req )
924 fprintf( stderr, " info=%04x,", req->info );
925 fprintf( stderr, " pid=%04x,", req->pid );
926 fprintf( stderr, " phandle=%04x,", req->phandle );
927 fprintf( stderr, " tid=%04x,", req->tid );
928 fprintf( stderr, " thandle=%04x", req->thandle );
931 static void dump_get_new_process_info_request( const struct get_new_process_info_request *req )
933 fprintf( stderr, " info=%04x", req->info );
936 static void dump_get_new_process_info_reply( const struct get_new_process_info_reply *req )
938 fprintf( stderr, " success=%d,", req->success );
939 fprintf( stderr, " exit_code=%d", req->exit_code );
942 static void dump_new_thread_request( const struct new_thread_request *req )
944 fprintf( stderr, " access=%08x,", req->access );
945 fprintf( stderr, " attributes=%08x,", req->attributes );
946 fprintf( stderr, " suspend=%d,", req->suspend );
947 fprintf( stderr, " request_fd=%d", req->request_fd );
950 static void dump_new_thread_reply( const struct new_thread_reply *req )
952 fprintf( stderr, " tid=%04x,", req->tid );
953 fprintf( stderr, " handle=%04x", req->handle );
956 static void dump_get_startup_info_request( const struct get_startup_info_request *req )
960 static void dump_get_startup_info_reply( const struct get_startup_info_reply *req )
962 fprintf( stderr, " exe_file=%04x,", req->exe_file );
963 fprintf( stderr, " hstdin=%04x,", req->hstdin );
964 fprintf( stderr, " hstdout=%04x,", req->hstdout );
965 fprintf( stderr, " hstderr=%04x,", req->hstderr );
966 fprintf( stderr, " info=" );
967 dump_varargs_startup_info( cur_size );
968 fputc( ',', stderr );
969 fprintf( stderr, " env=" );
970 dump_varargs_unicode_str( cur_size );
973 static void dump_init_process_done_request( const struct init_process_done_request *req )
975 fprintf( stderr, " gui=%d,", req->gui );
976 fprintf( stderr, " module=" );
977 dump_uint64( &req->module );
978 fprintf( stderr, "," );
979 fprintf( stderr, " ldt_copy=" );
980 dump_uint64( &req->ldt_copy );
981 fprintf( stderr, "," );
982 fprintf( stderr, " entry=" );
983 dump_uint64( &req->entry );
986 static void dump_init_thread_request( const struct init_thread_request *req )
988 fprintf( stderr, " unix_pid=%d,", req->unix_pid );
989 fprintf( stderr, " unix_tid=%d,", req->unix_tid );
990 fprintf( stderr, " debug_level=%d,", req->debug_level );
991 fprintf( stderr, " teb=" );
992 dump_uint64( &req->teb );
993 fprintf( stderr, "," );
994 fprintf( stderr, " entry=" );
995 dump_uint64( &req->entry );
996 fprintf( stderr, "," );
997 fprintf( stderr, " reply_fd=%d,", req->reply_fd );
998 fprintf( stderr, " wait_fd=%d,", req->wait_fd );
999 fprintf( stderr, " peb=" );
1000 dump_uint64( &req->peb );
1003 static void dump_init_thread_reply( const struct init_thread_reply *req )
1005 fprintf( stderr, " pid=%04x,", req->pid );
1006 fprintf( stderr, " tid=%04x,", req->tid );
1007 fprintf( stderr, " server_start=" );
1008 dump_timeout( &req->server_start );
1009 fprintf( stderr, "," );
1010 fprintf( stderr, " info_size=%u,", req->info_size );
1011 fprintf( stderr, " version=%d", req->version );
1014 static void dump_terminate_process_request( const struct terminate_process_request *req )
1016 fprintf( stderr, " handle=%04x,", req->handle );
1017 fprintf( stderr, " exit_code=%d", req->exit_code );
1020 static void dump_terminate_process_reply( const struct terminate_process_reply *req )
1022 fprintf( stderr, " self=%d", req->self );
1025 static void dump_terminate_thread_request( const struct terminate_thread_request *req )
1027 fprintf( stderr, " handle=%04x,", req->handle );
1028 fprintf( stderr, " exit_code=%d", req->exit_code );
1031 static void dump_terminate_thread_reply( const struct terminate_thread_reply *req )
1033 fprintf( stderr, " self=%d,", req->self );
1034 fprintf( stderr, " last=%d", req->last );
1037 static void dump_get_process_info_request( const struct get_process_info_request *req )
1039 fprintf( stderr, " handle=%04x", req->handle );
1042 static void dump_get_process_info_reply( const struct get_process_info_reply *req )
1044 fprintf( stderr, " pid=%04x,", req->pid );
1045 fprintf( stderr, " ppid=%04x,", req->ppid );
1046 fprintf( stderr, " priority=%d,", req->priority );
1047 fprintf( stderr, " affinity=%08x,", req->affinity );
1048 fprintf( stderr, " peb=" );
1049 dump_uint64( &req->peb );
1050 fprintf( stderr, "," );
1051 fprintf( stderr, " start_time=" );
1052 dump_timeout( &req->start_time );
1053 fprintf( stderr, "," );
1054 fprintf( stderr, " end_time=" );
1055 dump_timeout( &req->end_time );
1056 fprintf( stderr, "," );
1057 fprintf( stderr, " exit_code=%d", req->exit_code );
1060 static void dump_set_process_info_request( const struct set_process_info_request *req )
1062 fprintf( stderr, " handle=%04x,", req->handle );
1063 fprintf( stderr, " mask=%d,", req->mask );
1064 fprintf( stderr, " priority=%d,", req->priority );
1065 fprintf( stderr, " affinity=%08x", req->affinity );
1068 static void dump_get_thread_info_request( const struct get_thread_info_request *req )
1070 fprintf( stderr, " handle=%04x,", req->handle );
1071 fprintf( stderr, " tid_in=%04x", req->tid_in );
1074 static void dump_get_thread_info_reply( const struct get_thread_info_reply *req )
1076 fprintf( stderr, " pid=%04x,", req->pid );
1077 fprintf( stderr, " tid=%04x,", req->tid );
1078 fprintf( stderr, " teb=" );
1079 dump_uint64( &req->teb );
1080 fprintf( stderr, "," );
1081 fprintf( stderr, " priority=%d,", req->priority );
1082 fprintf( stderr, " affinity=%08x,", req->affinity );
1083 fprintf( stderr, " creation_time=" );
1084 dump_timeout( &req->creation_time );
1085 fprintf( stderr, "," );
1086 fprintf( stderr, " exit_time=" );
1087 dump_timeout( &req->exit_time );
1088 fprintf( stderr, "," );
1089 fprintf( stderr, " exit_code=%d,", req->exit_code );
1090 fprintf( stderr, " last=%d", req->last );
1093 static void dump_set_thread_info_request( const struct set_thread_info_request *req )
1095 fprintf( stderr, " handle=%04x,", req->handle );
1096 fprintf( stderr, " mask=%d,", req->mask );
1097 fprintf( stderr, " priority=%d,", req->priority );
1098 fprintf( stderr, " affinity=%08x,", req->affinity );
1099 fprintf( stderr, " token=%04x", req->token );
1102 static void dump_get_dll_info_request( const struct get_dll_info_request *req )
1104 fprintf( stderr, " handle=%04x,", req->handle );
1105 fprintf( stderr, " base_address=" );
1106 dump_uint64( &req->base_address );
1109 static void dump_get_dll_info_reply( const struct get_dll_info_reply *req )
1111 fprintf( stderr, " entry_point=" );
1112 dump_uint64( &req->entry_point );
1113 fprintf( stderr, "," );
1114 fprintf( stderr, " size=%u,", req->size );
1115 fprintf( stderr, " filename_len=%u,", req->filename_len );
1116 fprintf( stderr, " filename=" );
1117 dump_varargs_unicode_str( cur_size );
1120 static void dump_suspend_thread_request( const struct suspend_thread_request *req )
1122 fprintf( stderr, " handle=%04x", req->handle );
1125 static void dump_suspend_thread_reply( const struct suspend_thread_reply *req )
1127 fprintf( stderr, " count=%d", req->count );
1130 static void dump_resume_thread_request( const struct resume_thread_request *req )
1132 fprintf( stderr, " handle=%04x", req->handle );
1135 static void dump_resume_thread_reply( const struct resume_thread_reply *req )
1137 fprintf( stderr, " count=%d", req->count );
1140 static void dump_load_dll_request( const struct load_dll_request *req )
1142 fprintf( stderr, " handle=%04x,", req->handle );
1143 fprintf( stderr, " base=" );
1144 dump_uint64( &req->base );
1145 fprintf( stderr, "," );
1146 fprintf( stderr, " name=" );
1147 dump_uint64( &req->name );
1148 fprintf( stderr, "," );
1149 fprintf( stderr, " size=%u,", req->size );
1150 fprintf( stderr, " dbg_offset=%d,", req->dbg_offset );
1151 fprintf( stderr, " dbg_size=%d,", req->dbg_size );
1152 fprintf( stderr, " filename=" );
1153 dump_varargs_unicode_str( cur_size );
1156 static void dump_unload_dll_request( const struct unload_dll_request *req )
1158 fprintf( stderr, " base=" );
1159 dump_uint64( &req->base );
1162 static void dump_queue_apc_request( const struct queue_apc_request *req )
1164 fprintf( stderr, " handle=%04x,", req->handle );
1165 fprintf( stderr, " call=" );
1166 dump_apc_call( &req->call );
1169 static void dump_queue_apc_reply( const struct queue_apc_reply *req )
1171 fprintf( stderr, " handle=%04x,", req->handle );
1172 fprintf( stderr, " self=%d", req->self );
1175 static void dump_get_apc_result_request( const struct get_apc_result_request *req )
1177 fprintf( stderr, " handle=%04x", req->handle );
1180 static void dump_get_apc_result_reply( const struct get_apc_result_reply *req )
1182 fprintf( stderr, " result=" );
1183 dump_apc_result( &req->result );
1186 static void dump_close_handle_request( const struct close_handle_request *req )
1188 fprintf( stderr, " handle=%04x", req->handle );
1191 static void dump_set_handle_info_request( const struct set_handle_info_request *req )
1193 fprintf( stderr, " handle=%04x,", req->handle );
1194 fprintf( stderr, " flags=%d,", req->flags );
1195 fprintf( stderr, " mask=%d", req->mask );
1198 static void dump_set_handle_info_reply( const struct set_handle_info_reply *req )
1200 fprintf( stderr, " old_flags=%d", req->old_flags );
1203 static void dump_dup_handle_request( const struct dup_handle_request *req )
1205 fprintf( stderr, " src_process=%04x,", req->src_process );
1206 fprintf( stderr, " src_handle=%04x,", req->src_handle );
1207 fprintf( stderr, " dst_process=%04x,", req->dst_process );
1208 fprintf( stderr, " access=%08x,", req->access );
1209 fprintf( stderr, " attributes=%08x,", req->attributes );
1210 fprintf( stderr, " options=%08x", req->options );
1213 static void dump_dup_handle_reply( const struct dup_handle_reply *req )
1215 fprintf( stderr, " handle=%04x,", req->handle );
1216 fprintf( stderr, " self=%d,", req->self );
1217 fprintf( stderr, " closed=%d", req->closed );
1220 static void dump_open_process_request( const struct open_process_request *req )
1222 fprintf( stderr, " pid=%04x,", req->pid );
1223 fprintf( stderr, " access=%08x,", req->access );
1224 fprintf( stderr, " attributes=%08x", req->attributes );
1227 static void dump_open_process_reply( const struct open_process_reply *req )
1229 fprintf( stderr, " handle=%04x", req->handle );
1232 static void dump_open_thread_request( const struct open_thread_request *req )
1234 fprintf( stderr, " tid=%04x,", req->tid );
1235 fprintf( stderr, " access=%08x,", req->access );
1236 fprintf( stderr, " attributes=%08x", req->attributes );
1239 static void dump_open_thread_reply( const struct open_thread_reply *req )
1241 fprintf( stderr, " handle=%04x", req->handle );
1244 static void dump_select_request( const struct select_request *req )
1246 fprintf( stderr, " flags=%d,", req->flags );
1247 fprintf( stderr, " cookie=" );
1248 dump_uint64( &req->cookie );
1249 fprintf( stderr, "," );
1250 fprintf( stderr, " signal=%04x,", req->signal );
1251 fprintf( stderr, " prev_apc=%04x,", req->prev_apc );
1252 fprintf( stderr, " timeout=" );
1253 dump_timeout( &req->timeout );
1254 fprintf( stderr, "," );
1255 fprintf( stderr, " result=" );
1256 dump_varargs_apc_result( cur_size );
1257 fputc( ',', stderr );
1258 fprintf( stderr, " handles=" );
1259 dump_varargs_handles( cur_size );
1262 static void dump_select_reply( const struct select_reply *req )
1264 fprintf( stderr, " timeout=" );
1265 dump_timeout( &req->timeout );
1266 fprintf( stderr, "," );
1267 fprintf( stderr, " call=" );
1268 dump_apc_call( &req->call );
1269 fprintf( stderr, "," );
1270 fprintf( stderr, " apc_handle=%04x", req->apc_handle );
1273 static void dump_create_event_request( const struct create_event_request *req )
1275 fprintf( stderr, " access=%08x,", req->access );
1276 fprintf( stderr, " attributes=%08x,", req->attributes );
1277 fprintf( stderr, " manual_reset=%d,", req->manual_reset );
1278 fprintf( stderr, " initial_state=%d,", req->initial_state );
1279 fprintf( stderr, " objattr=" );
1280 dump_varargs_object_attributes( cur_size );
1283 static void dump_create_event_reply( const struct create_event_reply *req )
1285 fprintf( stderr, " handle=%04x", req->handle );
1288 static void dump_event_op_request( const struct event_op_request *req )
1290 fprintf( stderr, " handle=%04x,", req->handle );
1291 fprintf( stderr, " op=%d", req->op );
1294 static void dump_open_event_request( const struct open_event_request *req )
1296 fprintf( stderr, " access=%08x,", req->access );
1297 fprintf( stderr, " attributes=%08x,", req->attributes );
1298 fprintf( stderr, " rootdir=%04x,", req->rootdir );
1299 fprintf( stderr, " name=" );
1300 dump_varargs_unicode_str( cur_size );
1303 static void dump_open_event_reply( const struct open_event_reply *req )
1305 fprintf( stderr, " handle=%04x", req->handle );
1308 static void dump_create_mutex_request( const struct create_mutex_request *req )
1310 fprintf( stderr, " access=%08x,", req->access );
1311 fprintf( stderr, " attributes=%08x,", req->attributes );
1312 fprintf( stderr, " owned=%d,", req->owned );
1313 fprintf( stderr, " objattr=" );
1314 dump_varargs_object_attributes( cur_size );
1317 static void dump_create_mutex_reply( const struct create_mutex_reply *req )
1319 fprintf( stderr, " handle=%04x", req->handle );
1322 static void dump_release_mutex_request( const struct release_mutex_request *req )
1324 fprintf( stderr, " handle=%04x", req->handle );
1327 static void dump_release_mutex_reply( const struct release_mutex_reply *req )
1329 fprintf( stderr, " prev_count=%08x", req->prev_count );
1332 static void dump_open_mutex_request( const struct open_mutex_request *req )
1334 fprintf( stderr, " access=%08x,", req->access );
1335 fprintf( stderr, " attributes=%08x,", req->attributes );
1336 fprintf( stderr, " rootdir=%04x,", req->rootdir );
1337 fprintf( stderr, " name=" );
1338 dump_varargs_unicode_str( cur_size );
1341 static void dump_open_mutex_reply( const struct open_mutex_reply *req )
1343 fprintf( stderr, " handle=%04x", req->handle );
1346 static void dump_create_semaphore_request( const struct create_semaphore_request *req )
1348 fprintf( stderr, " access=%08x,", req->access );
1349 fprintf( stderr, " attributes=%08x,", req->attributes );
1350 fprintf( stderr, " initial=%08x,", req->initial );
1351 fprintf( stderr, " max=%08x,", req->max );
1352 fprintf( stderr, " objattr=" );
1353 dump_varargs_object_attributes( cur_size );
1356 static void dump_create_semaphore_reply( const struct create_semaphore_reply *req )
1358 fprintf( stderr, " handle=%04x", req->handle );
1361 static void dump_release_semaphore_request( const struct release_semaphore_request *req )
1363 fprintf( stderr, " handle=%04x,", req->handle );
1364 fprintf( stderr, " count=%08x", req->count );
1367 static void dump_release_semaphore_reply( const struct release_semaphore_reply *req )
1369 fprintf( stderr, " prev_count=%08x", req->prev_count );
1372 static void dump_open_semaphore_request( const struct open_semaphore_request *req )
1374 fprintf( stderr, " access=%08x,", req->access );
1375 fprintf( stderr, " attributes=%08x,", req->attributes );
1376 fprintf( stderr, " rootdir=%04x,", req->rootdir );
1377 fprintf( stderr, " name=" );
1378 dump_varargs_unicode_str( cur_size );
1381 static void dump_open_semaphore_reply( const struct open_semaphore_reply *req )
1383 fprintf( stderr, " handle=%04x", req->handle );
1386 static void dump_create_file_request( const struct create_file_request *req )
1388 fprintf( stderr, " access=%08x,", req->access );
1389 fprintf( stderr, " attributes=%08x,", req->attributes );
1390 fprintf( stderr, " sharing=%08x,", req->sharing );
1391 fprintf( stderr, " create=%d,", req->create );
1392 fprintf( stderr, " options=%08x,", req->options );
1393 fprintf( stderr, " attrs=%08x,", req->attrs );
1394 fprintf( stderr, " objattr=" );
1395 dump_varargs_object_attributes( cur_size );
1396 fputc( ',', stderr );
1397 fprintf( stderr, " filename=" );
1398 dump_varargs_string( cur_size );
1401 static void dump_create_file_reply( const struct create_file_reply *req )
1403 fprintf( stderr, " handle=%04x", req->handle );
1406 static void dump_open_file_object_request( const struct open_file_object_request *req )
1408 fprintf( stderr, " access=%08x,", req->access );
1409 fprintf( stderr, " attributes=%08x,", req->attributes );
1410 fprintf( stderr, " rootdir=%04x,", req->rootdir );
1411 fprintf( stderr, " sharing=%08x,", req->sharing );
1412 fprintf( stderr, " options=%08x,", req->options );
1413 fprintf( stderr, " filename=" );
1414 dump_varargs_unicode_str( cur_size );
1417 static void dump_open_file_object_reply( const struct open_file_object_reply *req )
1419 fprintf( stderr, " handle=%04x", req->handle );
1422 static void dump_alloc_file_handle_request( const struct alloc_file_handle_request *req )
1424 fprintf( stderr, " access=%08x,", req->access );
1425 fprintf( stderr, " attributes=%08x,", req->attributes );
1426 fprintf( stderr, " fd=%d", req->fd );
1429 static void dump_alloc_file_handle_reply( const struct alloc_file_handle_reply *req )
1431 fprintf( stderr, " handle=%04x", req->handle );
1434 static void dump_get_handle_fd_request( const struct get_handle_fd_request *req )
1436 fprintf( stderr, " handle=%04x", req->handle );
1439 static void dump_get_handle_fd_reply( const struct get_handle_fd_reply *req )
1441 fprintf( stderr, " type=%d,", req->type );
1442 fprintf( stderr, " removable=%d,", req->removable );
1443 fprintf( stderr, " access=%08x,", req->access );
1444 fprintf( stderr, " options=%08x", req->options );
1447 static void dump_flush_file_request( const struct flush_file_request *req )
1449 fprintf( stderr, " handle=%04x", req->handle );
1452 static void dump_flush_file_reply( const struct flush_file_reply *req )
1454 fprintf( stderr, " event=%04x", req->event );
1457 static void dump_lock_file_request( const struct lock_file_request *req )
1459 fprintf( stderr, " handle=%04x,", req->handle );
1460 fprintf( stderr, " offset=" );
1461 dump_uint64( &req->offset );
1462 fprintf( stderr, "," );
1463 fprintf( stderr, " count=" );
1464 dump_uint64( &req->count );
1465 fprintf( stderr, "," );
1466 fprintf( stderr, " shared=%d,", req->shared );
1467 fprintf( stderr, " wait=%d", req->wait );
1470 static void dump_lock_file_reply( const struct lock_file_reply *req )
1472 fprintf( stderr, " handle=%04x,", req->handle );
1473 fprintf( stderr, " overlapped=%d", req->overlapped );
1476 static void dump_unlock_file_request( const struct unlock_file_request *req )
1478 fprintf( stderr, " handle=%04x,", req->handle );
1479 fprintf( stderr, " offset=" );
1480 dump_uint64( &req->offset );
1481 fprintf( stderr, "," );
1482 fprintf( stderr, " count=" );
1483 dump_uint64( &req->count );
1486 static void dump_create_socket_request( const struct create_socket_request *req )
1488 fprintf( stderr, " access=%08x,", req->access );
1489 fprintf( stderr, " attributes=%08x,", req->attributes );
1490 fprintf( stderr, " family=%d,", req->family );
1491 fprintf( stderr, " type=%d,", req->type );
1492 fprintf( stderr, " protocol=%d,", req->protocol );
1493 fprintf( stderr, " flags=%08x", req->flags );
1496 static void dump_create_socket_reply( const struct create_socket_reply *req )
1498 fprintf( stderr, " handle=%04x", req->handle );
1501 static void dump_accept_socket_request( const struct accept_socket_request *req )
1503 fprintf( stderr, " lhandle=%04x,", req->lhandle );
1504 fprintf( stderr, " access=%08x,", req->access );
1505 fprintf( stderr, " attributes=%08x", req->attributes );
1508 static void dump_accept_socket_reply( const struct accept_socket_reply *req )
1510 fprintf( stderr, " handle=%04x", req->handle );
1513 static void dump_set_socket_event_request( const struct set_socket_event_request *req )
1515 fprintf( stderr, " handle=%04x,", req->handle );
1516 fprintf( stderr, " mask=%08x,", req->mask );
1517 fprintf( stderr, " event=%04x,", req->event );
1518 fprintf( stderr, " window=%08x,", req->window );
1519 fprintf( stderr, " msg=%08x", req->msg );
1522 static void dump_get_socket_event_request( const struct get_socket_event_request *req )
1524 fprintf( stderr, " handle=%04x,", req->handle );
1525 fprintf( stderr, " service=%d,", req->service );
1526 fprintf( stderr, " c_event=%04x", req->c_event );
1529 static void dump_get_socket_event_reply( const struct get_socket_event_reply *req )
1531 fprintf( stderr, " mask=%08x,", req->mask );
1532 fprintf( stderr, " pmask=%08x,", req->pmask );
1533 fprintf( stderr, " state=%08x,", req->state );
1534 fprintf( stderr, " errors=" );
1535 dump_varargs_ints( cur_size );
1538 static void dump_enable_socket_event_request( const struct enable_socket_event_request *req )
1540 fprintf( stderr, " handle=%04x,", req->handle );
1541 fprintf( stderr, " mask=%08x,", req->mask );
1542 fprintf( stderr, " sstate=%08x,", req->sstate );
1543 fprintf( stderr, " cstate=%08x", req->cstate );
1546 static void dump_set_socket_deferred_request( const struct set_socket_deferred_request *req )
1548 fprintf( stderr, " handle=%04x,", req->handle );
1549 fprintf( stderr, " deferred=%04x", req->deferred );
1552 static void dump_alloc_console_request( const struct alloc_console_request *req )
1554 fprintf( stderr, " access=%08x,", req->access );
1555 fprintf( stderr, " attributes=%08x,", req->attributes );
1556 fprintf( stderr, " pid=%04x", req->pid );
1559 static void dump_alloc_console_reply( const struct alloc_console_reply *req )
1561 fprintf( stderr, " handle_in=%04x,", req->handle_in );
1562 fprintf( stderr, " event=%04x", req->event );
1565 static void dump_free_console_request( const struct free_console_request *req )
1569 static void dump_get_console_renderer_events_request( const struct get_console_renderer_events_request *req )
1571 fprintf( stderr, " handle=%04x", req->handle );
1574 static void dump_get_console_renderer_events_reply( const struct get_console_renderer_events_reply *req )
1576 fprintf( stderr, " data=" );
1577 dump_varargs_bytes( cur_size );
1580 static void dump_open_console_request( const struct open_console_request *req )
1582 fprintf( stderr, " from=%04x,", req->from );
1583 fprintf( stderr, " access=%08x,", req->access );
1584 fprintf( stderr, " attributes=%08x,", req->attributes );
1585 fprintf( stderr, " share=%d", req->share );
1588 static void dump_open_console_reply( const struct open_console_reply *req )
1590 fprintf( stderr, " handle=%04x", req->handle );
1593 static void dump_get_console_wait_event_request( const struct get_console_wait_event_request *req )
1597 static void dump_get_console_wait_event_reply( const struct get_console_wait_event_reply *req )
1599 fprintf( stderr, " handle=%04x", req->handle );
1602 static void dump_get_console_mode_request( const struct get_console_mode_request *req )
1604 fprintf( stderr, " handle=%04x", req->handle );
1607 static void dump_get_console_mode_reply( const struct get_console_mode_reply *req )
1609 fprintf( stderr, " mode=%d", req->mode );
1612 static void dump_set_console_mode_request( const struct set_console_mode_request *req )
1614 fprintf( stderr, " handle=%04x,", req->handle );
1615 fprintf( stderr, " mode=%d", req->mode );
1618 static void dump_set_console_input_info_request( const struct set_console_input_info_request *req )
1620 fprintf( stderr, " handle=%04x,", req->handle );
1621 fprintf( stderr, " mask=%d,", req->mask );
1622 fprintf( stderr, " active_sb=%04x,", req->active_sb );
1623 fprintf( stderr, " history_mode=%d,", req->history_mode );
1624 fprintf( stderr, " history_size=%d,", req->history_size );
1625 fprintf( stderr, " edition_mode=%d,", req->edition_mode );
1626 fprintf( stderr, " input_cp=%d,", req->input_cp );
1627 fprintf( stderr, " output_cp=%d,", req->output_cp );
1628 fprintf( stderr, " win=%08x,", req->win );
1629 fprintf( stderr, " title=" );
1630 dump_varargs_unicode_str( cur_size );
1633 static void dump_get_console_input_info_request( const struct get_console_input_info_request *req )
1635 fprintf( stderr, " handle=%04x", req->handle );
1638 static void dump_get_console_input_info_reply( const struct get_console_input_info_reply *req )
1640 fprintf( stderr, " history_mode=%d,", req->history_mode );
1641 fprintf( stderr, " history_size=%d,", req->history_size );
1642 fprintf( stderr, " history_index=%d,", req->history_index );
1643 fprintf( stderr, " edition_mode=%d,", req->edition_mode );
1644 fprintf( stderr, " input_cp=%d,", req->input_cp );
1645 fprintf( stderr, " output_cp=%d,", req->output_cp );
1646 fprintf( stderr, " win=%08x,", req->win );
1647 fprintf( stderr, " title=" );
1648 dump_varargs_unicode_str( cur_size );
1651 static void dump_append_console_input_history_request( const struct append_console_input_history_request *req )
1653 fprintf( stderr, " handle=%04x,", req->handle );
1654 fprintf( stderr, " line=" );
1655 dump_varargs_unicode_str( cur_size );
1658 static void dump_get_console_input_history_request( const struct get_console_input_history_request *req )
1660 fprintf( stderr, " handle=%04x,", req->handle );
1661 fprintf( stderr, " index=%d", req->index );
1664 static void dump_get_console_input_history_reply( const struct get_console_input_history_reply *req )
1666 fprintf( stderr, " total=%d,", req->total );
1667 fprintf( stderr, " line=" );
1668 dump_varargs_unicode_str( cur_size );
1671 static void dump_create_console_output_request( const struct create_console_output_request *req )
1673 fprintf( stderr, " handle_in=%04x,", req->handle_in );
1674 fprintf( stderr, " access=%08x,", req->access );
1675 fprintf( stderr, " attributes=%08x,", req->attributes );
1676 fprintf( stderr, " share=%08x", req->share );
1679 static void dump_create_console_output_reply( const struct create_console_output_reply *req )
1681 fprintf( stderr, " handle_out=%04x", req->handle_out );
1684 static void dump_set_console_output_info_request( const struct set_console_output_info_request *req )
1686 fprintf( stderr, " handle=%04x,", req->handle );
1687 fprintf( stderr, " mask=%d,", req->mask );
1688 fprintf( stderr, " cursor_size=%d,", req->cursor_size );
1689 fprintf( stderr, " cursor_visible=%d,", req->cursor_visible );
1690 fprintf( stderr, " cursor_x=%d,", req->cursor_x );
1691 fprintf( stderr, " cursor_y=%d,", req->cursor_y );
1692 fprintf( stderr, " width=%d,", req->width );
1693 fprintf( stderr, " height=%d,", req->height );
1694 fprintf( stderr, " attr=%d,", req->attr );
1695 fprintf( stderr, " win_left=%d,", req->win_left );
1696 fprintf( stderr, " win_top=%d,", req->win_top );
1697 fprintf( stderr, " win_right=%d,", req->win_right );
1698 fprintf( stderr, " win_bottom=%d,", req->win_bottom );
1699 fprintf( stderr, " max_width=%d,", req->max_width );
1700 fprintf( stderr, " max_height=%d", req->max_height );
1703 static void dump_get_console_output_info_request( const struct get_console_output_info_request *req )
1705 fprintf( stderr, " handle=%04x", req->handle );
1708 static void dump_get_console_output_info_reply( const struct get_console_output_info_reply *req )
1710 fprintf( stderr, " cursor_size=%d,", req->cursor_size );
1711 fprintf( stderr, " cursor_visible=%d,", req->cursor_visible );
1712 fprintf( stderr, " cursor_x=%d,", req->cursor_x );
1713 fprintf( stderr, " cursor_y=%d,", req->cursor_y );
1714 fprintf( stderr, " width=%d,", req->width );
1715 fprintf( stderr, " height=%d,", req->height );
1716 fprintf( stderr, " attr=%d,", req->attr );
1717 fprintf( stderr, " win_left=%d,", req->win_left );
1718 fprintf( stderr, " win_top=%d,", req->win_top );
1719 fprintf( stderr, " win_right=%d,", req->win_right );
1720 fprintf( stderr, " win_bottom=%d,", req->win_bottom );
1721 fprintf( stderr, " max_width=%d,", req->max_width );
1722 fprintf( stderr, " max_height=%d", req->max_height );
1725 static void dump_write_console_input_request( const struct write_console_input_request *req )
1727 fprintf( stderr, " handle=%04x,", req->handle );
1728 fprintf( stderr, " rec=" );
1729 dump_varargs_input_records( cur_size );
1732 static void dump_write_console_input_reply( const struct write_console_input_reply *req )
1734 fprintf( stderr, " written=%d", req->written );
1737 static void dump_read_console_input_request( const struct read_console_input_request *req )
1739 fprintf( stderr, " handle=%04x,", req->handle );
1740 fprintf( stderr, " flush=%d", req->flush );
1743 static void dump_read_console_input_reply( const struct read_console_input_reply *req )
1745 fprintf( stderr, " read=%d,", req->read );
1746 fprintf( stderr, " rec=" );
1747 dump_varargs_input_records( cur_size );
1750 static void dump_write_console_output_request( const struct write_console_output_request *req )
1752 fprintf( stderr, " handle=%04x,", req->handle );
1753 fprintf( stderr, " x=%d,", req->x );
1754 fprintf( stderr, " y=%d,", req->y );
1755 fprintf( stderr, " mode=%d,", req->mode );
1756 fprintf( stderr, " wrap=%d,", req->wrap );
1757 fprintf( stderr, " data=" );
1758 dump_varargs_bytes( cur_size );
1761 static void dump_write_console_output_reply( const struct write_console_output_reply *req )
1763 fprintf( stderr, " written=%d,", req->written );
1764 fprintf( stderr, " width=%d,", req->width );
1765 fprintf( stderr, " height=%d", req->height );
1768 static void dump_fill_console_output_request( const struct fill_console_output_request *req )
1770 fprintf( stderr, " handle=%04x,", req->handle );
1771 fprintf( stderr, " x=%d,", req->x );
1772 fprintf( stderr, " y=%d,", req->y );
1773 fprintf( stderr, " mode=%d,", req->mode );
1774 fprintf( stderr, " count=%d,", req->count );
1775 fprintf( stderr, " wrap=%d,", req->wrap );
1776 fprintf( stderr, " data=" );
1777 dump_char_info( &req->data );
1780 static void dump_fill_console_output_reply( const struct fill_console_output_reply *req )
1782 fprintf( stderr, " written=%d", req->written );
1785 static void dump_read_console_output_request( const struct read_console_output_request *req )
1787 fprintf( stderr, " handle=%04x,", req->handle );
1788 fprintf( stderr, " x=%d,", req->x );
1789 fprintf( stderr, " y=%d,", req->y );
1790 fprintf( stderr, " mode=%d,", req->mode );
1791 fprintf( stderr, " wrap=%d", req->wrap );
1794 static void dump_read_console_output_reply( const struct read_console_output_reply *req )
1796 fprintf( stderr, " width=%d,", req->width );
1797 fprintf( stderr, " height=%d,", req->height );
1798 fprintf( stderr, " data=" );
1799 dump_varargs_bytes( cur_size );
1802 static void dump_move_console_output_request( const struct move_console_output_request *req )
1804 fprintf( stderr, " handle=%04x,", req->handle );
1805 fprintf( stderr, " x_src=%d,", req->x_src );
1806 fprintf( stderr, " y_src=%d,", req->y_src );
1807 fprintf( stderr, " x_dst=%d,", req->x_dst );
1808 fprintf( stderr, " y_dst=%d,", req->y_dst );
1809 fprintf( stderr, " w=%d,", req->w );
1810 fprintf( stderr, " h=%d", req->h );
1813 static void dump_send_console_signal_request( const struct send_console_signal_request *req )
1815 fprintf( stderr, " signal=%d,", req->signal );
1816 fprintf( stderr, " group_id=%04x", req->group_id );
1819 static void dump_read_directory_changes_request( const struct read_directory_changes_request *req )
1821 fprintf( stderr, " filter=%08x,", req->filter );
1822 fprintf( stderr, " subtree=%d,", req->subtree );
1823 fprintf( stderr, " want_data=%d,", req->want_data );
1824 fprintf( stderr, " async=" );
1825 dump_async_data( &req->async );
1828 static void dump_read_change_request( const struct read_change_request *req )
1830 fprintf( stderr, " handle=%04x", req->handle );
1833 static void dump_read_change_reply( const struct read_change_reply *req )
1835 fprintf( stderr, " action=%d,", req->action );
1836 fprintf( stderr, " name=" );
1837 dump_varargs_string( cur_size );
1840 static void dump_create_mapping_request( const struct create_mapping_request *req )
1842 fprintf( stderr, " access=%08x,", req->access );
1843 fprintf( stderr, " attributes=%08x,", req->attributes );
1844 fprintf( stderr, " protect=%08x,", req->protect );
1845 fprintf( stderr, " size=" );
1846 dump_uint64( &req->size );
1847 fprintf( stderr, "," );
1848 fprintf( stderr, " file_handle=%04x,", req->file_handle );
1849 fprintf( stderr, " objattr=" );
1850 dump_varargs_object_attributes( cur_size );
1853 static void dump_create_mapping_reply( const struct create_mapping_reply *req )
1855 fprintf( stderr, " handle=%04x", req->handle );
1858 static void dump_open_mapping_request( const struct open_mapping_request *req )
1860 fprintf( stderr, " access=%08x,", req->access );
1861 fprintf( stderr, " attributes=%08x,", req->attributes );
1862 fprintf( stderr, " rootdir=%04x,", req->rootdir );
1863 fprintf( stderr, " name=" );
1864 dump_varargs_unicode_str( cur_size );
1867 static void dump_open_mapping_reply( const struct open_mapping_reply *req )
1869 fprintf( stderr, " handle=%04x", req->handle );
1872 static void dump_get_mapping_info_request( const struct get_mapping_info_request *req )
1874 fprintf( stderr, " handle=%04x,", req->handle );
1875 fprintf( stderr, " access=%08x", req->access );
1878 static void dump_get_mapping_info_reply( const struct get_mapping_info_reply *req )
1880 fprintf( stderr, " size=" );
1881 dump_uint64( &req->size );
1882 fprintf( stderr, "," );
1883 fprintf( stderr, " protect=%d,", req->protect );
1884 fprintf( stderr, " header_size=%d,", req->header_size );
1885 fprintf( stderr, " base=" );
1886 dump_uint64( &req->base );
1887 fprintf( stderr, "," );
1888 fprintf( stderr, " mapping=%04x,", req->mapping );
1889 fprintf( stderr, " shared_file=%04x", req->shared_file );
1892 static void dump_get_mapping_committed_range_request( const struct get_mapping_committed_range_request *req )
1894 fprintf( stderr, " handle=%04x,", req->handle );
1895 fprintf( stderr, " offset=" );
1896 dump_uint64( &req->offset );
1899 static void dump_get_mapping_committed_range_reply( const struct get_mapping_committed_range_reply *req )
1901 fprintf( stderr, " size=" );
1902 dump_uint64( &req->size );
1903 fprintf( stderr, "," );
1904 fprintf( stderr, " committed=%d", req->committed );
1907 static void dump_add_mapping_committed_range_request( const struct add_mapping_committed_range_request *req )
1909 fprintf( stderr, " handle=%04x,", req->handle );
1910 fprintf( stderr, " offset=" );
1911 dump_uint64( &req->offset );
1912 fprintf( stderr, "," );
1913 fprintf( stderr, " size=" );
1914 dump_uint64( &req->size );
1917 static void dump_create_snapshot_request( const struct create_snapshot_request *req )
1919 fprintf( stderr, " attributes=%08x,", req->attributes );
1920 fprintf( stderr, " flags=%08x", req->flags );
1923 static void dump_create_snapshot_reply( const struct create_snapshot_reply *req )
1925 fprintf( stderr, " handle=%04x", req->handle );
1928 static void dump_next_process_request( const struct next_process_request *req )
1930 fprintf( stderr, " handle=%04x,", req->handle );
1931 fprintf( stderr, " reset=%d", req->reset );
1934 static void dump_next_process_reply( const struct next_process_reply *req )
1936 fprintf( stderr, " count=%d,", req->count );
1937 fprintf( stderr, " pid=%04x,", req->pid );
1938 fprintf( stderr, " ppid=%04x,", req->ppid );
1939 fprintf( stderr, " threads=%d,", req->threads );
1940 fprintf( stderr, " priority=%d,", req->priority );
1941 fprintf( stderr, " handles=%d,", req->handles );
1942 fprintf( stderr, " filename=" );
1943 dump_varargs_unicode_str( cur_size );
1946 static void dump_next_thread_request( const struct next_thread_request *req )
1948 fprintf( stderr, " handle=%04x,", req->handle );
1949 fprintf( stderr, " reset=%d", req->reset );
1952 static void dump_next_thread_reply( const struct next_thread_reply *req )
1954 fprintf( stderr, " count=%d,", req->count );
1955 fprintf( stderr, " pid=%04x,", req->pid );
1956 fprintf( stderr, " tid=%04x,", req->tid );
1957 fprintf( stderr, " base_pri=%d,", req->base_pri );
1958 fprintf( stderr, " delta_pri=%d", req->delta_pri );
1961 static void dump_wait_debug_event_request( const struct wait_debug_event_request *req )
1963 fprintf( stderr, " get_handle=%d", req->get_handle );
1966 static void dump_wait_debug_event_reply( const struct wait_debug_event_reply *req )
1968 fprintf( stderr, " pid=%04x,", req->pid );
1969 fprintf( stderr, " tid=%04x,", req->tid );
1970 fprintf( stderr, " wait=%04x,", req->wait );
1971 fprintf( stderr, " event=" );
1972 dump_varargs_debug_event( cur_size );
1975 static void dump_queue_exception_event_request( const struct queue_exception_event_request *req )
1977 fprintf( stderr, " first=%d,", req->first );
1978 fprintf( stderr, " record=" );
1979 dump_varargs_exc_event( cur_size );
1982 static void dump_queue_exception_event_reply( const struct queue_exception_event_reply *req )
1984 fprintf( stderr, " handle=%04x", req->handle );
1987 static void dump_get_exception_status_request( const struct get_exception_status_request *req )
1989 fprintf( stderr, " handle=%04x", req->handle );
1992 static void dump_get_exception_status_reply( const struct get_exception_status_reply *req )
1994 fprintf( stderr, " context=" );
1995 dump_varargs_context( cur_size );
1998 static void dump_output_debug_string_request( const struct output_debug_string_request *req )
2000 fprintf( stderr, " length=%u,", req->length );
2001 fprintf( stderr, " string=" );
2002 dump_uint64( &req->string );
2003 fprintf( stderr, "," );
2004 fprintf( stderr, " unicode=%d", req->unicode );
2007 static void dump_continue_debug_event_request( const struct continue_debug_event_request *req )
2009 fprintf( stderr, " pid=%04x,", req->pid );
2010 fprintf( stderr, " tid=%04x,", req->tid );
2011 fprintf( stderr, " status=%d", req->status );
2014 static void dump_debug_process_request( const struct debug_process_request *req )
2016 fprintf( stderr, " pid=%04x,", req->pid );
2017 fprintf( stderr, " attach=%d", req->attach );
2020 static void dump_debug_break_request( const struct debug_break_request *req )
2022 fprintf( stderr, " handle=%04x", req->handle );
2025 static void dump_debug_break_reply( const struct debug_break_reply *req )
2027 fprintf( stderr, " self=%d", req->self );
2030 static void dump_set_debugger_kill_on_exit_request( const struct set_debugger_kill_on_exit_request *req )
2032 fprintf( stderr, " kill_on_exit=%d", req->kill_on_exit );
2035 static void dump_read_process_memory_request( const struct read_process_memory_request *req )
2037 fprintf( stderr, " handle=%04x,", req->handle );
2038 fprintf( stderr, " addr=" );
2039 dump_uint64( &req->addr );
2042 static void dump_read_process_memory_reply( const struct read_process_memory_reply *req )
2044 fprintf( stderr, " data=" );
2045 dump_varargs_bytes( cur_size );
2048 static void dump_write_process_memory_request( const struct write_process_memory_request *req )
2050 fprintf( stderr, " handle=%04x,", req->handle );
2051 fprintf( stderr, " addr=" );
2052 dump_uint64( &req->addr );
2053 fprintf( stderr, "," );
2054 fprintf( stderr, " data=" );
2055 dump_varargs_bytes( cur_size );
2058 static void dump_create_key_request( const struct create_key_request *req )
2060 fprintf( stderr, " parent=%04x,", req->parent );
2061 fprintf( stderr, " access=%08x,", req->access );
2062 fprintf( stderr, " attributes=%08x,", req->attributes );
2063 fprintf( stderr, " options=%08x,", req->options );
2064 fprintf( stderr, " namelen=%u,", req->namelen );
2065 fprintf( stderr, " name=" );
2066 dump_varargs_unicode_str( min(cur_size,req->namelen) );
2067 fputc( ',', stderr );
2068 fprintf( stderr, " class=" );
2069 dump_varargs_unicode_str( cur_size );
2072 static void dump_create_key_reply( const struct create_key_reply *req )
2074 fprintf( stderr, " hkey=%04x,", req->hkey );
2075 fprintf( stderr, " created=%d", req->created );
2078 static void dump_open_key_request( const struct open_key_request *req )
2080 fprintf( stderr, " parent=%04x,", req->parent );
2081 fprintf( stderr, " access=%08x,", req->access );
2082 fprintf( stderr, " attributes=%08x,", req->attributes );
2083 fprintf( stderr, " name=" );
2084 dump_varargs_unicode_str( cur_size );
2087 static void dump_open_key_reply( const struct open_key_reply *req )
2089 fprintf( stderr, " hkey=%04x", req->hkey );
2092 static void dump_delete_key_request( const struct delete_key_request *req )
2094 fprintf( stderr, " hkey=%04x", req->hkey );
2097 static void dump_flush_key_request( const struct flush_key_request *req )
2099 fprintf( stderr, " hkey=%04x", req->hkey );
2102 static void dump_enum_key_request( const struct enum_key_request *req )
2104 fprintf( stderr, " hkey=%04x,", req->hkey );
2105 fprintf( stderr, " index=%d,", req->index );
2106 fprintf( stderr, " info_class=%d", req->info_class );
2109 static void dump_enum_key_reply( const struct enum_key_reply *req )
2111 fprintf( stderr, " subkeys=%d,", req->subkeys );
2112 fprintf( stderr, " max_subkey=%d,", req->max_subkey );
2113 fprintf( stderr, " max_class=%d,", req->max_class );
2114 fprintf( stderr, " values=%d,", req->values );
2115 fprintf( stderr, " max_value=%d,", req->max_value );
2116 fprintf( stderr, " max_data=%d,", req->max_data );
2117 fprintf( stderr, " modif=" );
2118 dump_timeout( &req->modif );
2119 fprintf( stderr, "," );
2120 fprintf( stderr, " total=%u,", req->total );
2121 fprintf( stderr, " namelen=%u,", req->namelen );
2122 fprintf( stderr, " name=" );
2123 dump_varargs_unicode_str( min(cur_size,req->namelen) );
2124 fputc( ',', stderr );
2125 fprintf( stderr, " class=" );
2126 dump_varargs_unicode_str( cur_size );
2129 static void dump_set_key_value_request( const struct set_key_value_request *req )
2131 fprintf( stderr, " hkey=%04x,", req->hkey );
2132 fprintf( stderr, " type=%d,", req->type );
2133 fprintf( stderr, " namelen=%u,", req->namelen );
2134 fprintf( stderr, " name=" );
2135 dump_varargs_unicode_str( min(cur_size,req->namelen) );
2136 fputc( ',', stderr );
2137 fprintf( stderr, " data=" );
2138 dump_varargs_bytes( cur_size );
2141 static void dump_get_key_value_request( const struct get_key_value_request *req )
2143 fprintf( stderr, " hkey=%04x,", req->hkey );
2144 fprintf( stderr, " name=" );
2145 dump_varargs_unicode_str( cur_size );
2148 static void dump_get_key_value_reply( const struct get_key_value_reply *req )
2150 fprintf( stderr, " type=%d,", req->type );
2151 fprintf( stderr, " total=%u,", req->total );
2152 fprintf( stderr, " data=" );
2153 dump_varargs_bytes( cur_size );
2156 static void dump_enum_key_value_request( const struct enum_key_value_request *req )
2158 fprintf( stderr, " hkey=%04x,", req->hkey );
2159 fprintf( stderr, " index=%d,", req->index );
2160 fprintf( stderr, " info_class=%d", req->info_class );
2163 static void dump_enum_key_value_reply( const struct enum_key_value_reply *req )
2165 fprintf( stderr, " type=%d,", req->type );
2166 fprintf( stderr, " total=%u,", req->total );
2167 fprintf( stderr, " namelen=%u,", req->namelen );
2168 fprintf( stderr, " name=" );
2169 dump_varargs_unicode_str( min(cur_size,req->namelen) );
2170 fputc( ',', stderr );
2171 fprintf( stderr, " data=" );
2172 dump_varargs_bytes( cur_size );
2175 static void dump_delete_key_value_request( const struct delete_key_value_request *req )
2177 fprintf( stderr, " hkey=%04x,", req->hkey );
2178 fprintf( stderr, " name=" );
2179 dump_varargs_unicode_str( cur_size );
2182 static void dump_load_registry_request( const struct load_registry_request *req )
2184 fprintf( stderr, " hkey=%04x,", req->hkey );
2185 fprintf( stderr, " file=%04x,", req->file );
2186 fprintf( stderr, " name=" );
2187 dump_varargs_unicode_str( cur_size );
2190 static void dump_unload_registry_request( const struct unload_registry_request *req )
2192 fprintf( stderr, " hkey=%04x", req->hkey );
2195 static void dump_save_registry_request( const struct save_registry_request *req )
2197 fprintf( stderr, " hkey=%04x,", req->hkey );
2198 fprintf( stderr, " file=%04x", req->file );
2201 static void dump_set_registry_notification_request( const struct set_registry_notification_request *req )
2203 fprintf( stderr, " hkey=%04x,", req->hkey );
2204 fprintf( stderr, " event=%04x,", req->event );
2205 fprintf( stderr, " subtree=%d,", req->subtree );
2206 fprintf( stderr, " filter=%08x", req->filter );
2209 static void dump_create_timer_request( const struct create_timer_request *req )
2211 fprintf( stderr, " access=%08x,", req->access );
2212 fprintf( stderr, " attributes=%08x,", req->attributes );
2213 fprintf( stderr, " rootdir=%04x,", req->rootdir );
2214 fprintf( stderr, " manual=%d,", req->manual );
2215 fprintf( stderr, " name=" );
2216 dump_varargs_unicode_str( cur_size );
2219 static void dump_create_timer_reply( const struct create_timer_reply *req )
2221 fprintf( stderr, " handle=%04x", req->handle );
2224 static void dump_open_timer_request( const struct open_timer_request *req )
2226 fprintf( stderr, " access=%08x,", req->access );
2227 fprintf( stderr, " attributes=%08x,", req->attributes );
2228 fprintf( stderr, " rootdir=%04x,", req->rootdir );
2229 fprintf( stderr, " name=" );
2230 dump_varargs_unicode_str( cur_size );
2233 static void dump_open_timer_reply( const struct open_timer_reply *req )
2235 fprintf( stderr, " handle=%04x", req->handle );
2238 static void dump_set_timer_request( const struct set_timer_request *req )
2240 fprintf( stderr, " handle=%04x,", req->handle );
2241 fprintf( stderr, " expire=" );
2242 dump_timeout( &req->expire );
2243 fprintf( stderr, "," );
2244 fprintf( stderr, " callback=" );
2245 dump_uint64( &req->callback );
2246 fprintf( stderr, "," );
2247 fprintf( stderr, " arg=" );
2248 dump_uint64( &req->arg );
2249 fprintf( stderr, "," );
2250 fprintf( stderr, " period=%d", req->period );
2253 static void dump_set_timer_reply( const struct set_timer_reply *req )
2255 fprintf( stderr, " signaled=%d", req->signaled );
2258 static void dump_cancel_timer_request( const struct cancel_timer_request *req )
2260 fprintf( stderr, " handle=%04x", req->handle );
2263 static void dump_cancel_timer_reply( const struct cancel_timer_reply *req )
2265 fprintf( stderr, " signaled=%d", req->signaled );
2268 static void dump_get_timer_info_request( const struct get_timer_info_request *req )
2270 fprintf( stderr, " handle=%04x", req->handle );
2273 static void dump_get_timer_info_reply( const struct get_timer_info_reply *req )
2275 fprintf( stderr, " when=" );
2276 dump_timeout( &req->when );
2277 fprintf( stderr, "," );
2278 fprintf( stderr, " signaled=%d", req->signaled );
2281 static void dump_get_thread_context_request( const struct get_thread_context_request *req )
2283 fprintf( stderr, " handle=%04x,", req->handle );
2284 fprintf( stderr, " flags=%08x,", req->flags );
2285 fprintf( stderr, " suspend=%d", req->suspend );
2288 static void dump_get_thread_context_reply( const struct get_thread_context_reply *req )
2290 fprintf( stderr, " self=%d,", req->self );
2291 fprintf( stderr, " context=" );
2292 dump_varargs_context( cur_size );
2295 static void dump_set_thread_context_request( const struct set_thread_context_request *req )
2297 fprintf( stderr, " handle=%04x,", req->handle );
2298 fprintf( stderr, " flags=%08x,", req->flags );
2299 fprintf( stderr, " suspend=%d,", req->suspend );
2300 fprintf( stderr, " context=" );
2301 dump_varargs_context( cur_size );
2304 static void dump_set_thread_context_reply( const struct set_thread_context_reply *req )
2306 fprintf( stderr, " self=%d", req->self );
2309 static void dump_get_selector_entry_request( const struct get_selector_entry_request *req )
2311 fprintf( stderr, " handle=%04x,", req->handle );
2312 fprintf( stderr, " entry=%d", req->entry );
2315 static void dump_get_selector_entry_reply( const struct get_selector_entry_reply *req )
2317 fprintf( stderr, " base=%08x,", req->base );
2318 fprintf( stderr, " limit=%08x,", req->limit );
2319 fprintf( stderr, " flags=%02x", req->flags );
2322 static void dump_add_atom_request( const struct add_atom_request *req )
2324 fprintf( stderr, " table=%04x,", req->table );
2325 fprintf( stderr, " name=" );
2326 dump_varargs_unicode_str( cur_size );
2329 static void dump_add_atom_reply( const struct add_atom_reply *req )
2331 fprintf( stderr, " atom=%04x", req->atom );
2334 static void dump_delete_atom_request( const struct delete_atom_request *req )
2336 fprintf( stderr, " table=%04x,", req->table );
2337 fprintf( stderr, " atom=%04x", req->atom );
2340 static void dump_find_atom_request( const struct find_atom_request *req )
2342 fprintf( stderr, " table=%04x,", req->table );
2343 fprintf( stderr, " name=" );
2344 dump_varargs_unicode_str( cur_size );
2347 static void dump_find_atom_reply( const struct find_atom_reply *req )
2349 fprintf( stderr, " atom=%04x", req->atom );
2352 static void dump_get_atom_information_request( const struct get_atom_information_request *req )
2354 fprintf( stderr, " table=%04x,", req->table );
2355 fprintf( stderr, " atom=%04x", req->atom );
2358 static void dump_get_atom_information_reply( const struct get_atom_information_reply *req )
2360 fprintf( stderr, " count=%d,", req->count );
2361 fprintf( stderr, " pinned=%d,", req->pinned );
2362 fprintf( stderr, " total=%u,", req->total );
2363 fprintf( stderr, " name=" );
2364 dump_varargs_unicode_str( cur_size );
2367 static void dump_set_atom_information_request( const struct set_atom_information_request *req )
2369 fprintf( stderr, " table=%04x,", req->table );
2370 fprintf( stderr, " atom=%04x,", req->atom );
2371 fprintf( stderr, " pinned=%d", req->pinned );
2374 static void dump_empty_atom_table_request( const struct empty_atom_table_request *req )
2376 fprintf( stderr, " table=%04x,", req->table );
2377 fprintf( stderr, " if_pinned=%d", req->if_pinned );
2380 static void dump_init_atom_table_request( const struct init_atom_table_request *req )
2382 fprintf( stderr, " entries=%d", req->entries );
2385 static void dump_init_atom_table_reply( const struct init_atom_table_reply *req )
2387 fprintf( stderr, " table=%04x", req->table );
2390 static void dump_get_msg_queue_request( const struct get_msg_queue_request *req )
2394 static void dump_get_msg_queue_reply( const struct get_msg_queue_reply *req )
2396 fprintf( stderr, " handle=%04x", req->handle );
2399 static void dump_set_queue_fd_request( const struct set_queue_fd_request *req )
2401 fprintf( stderr, " handle=%04x", req->handle );
2404 static void dump_set_queue_mask_request( const struct set_queue_mask_request *req )
2406 fprintf( stderr, " wake_mask=%08x,", req->wake_mask );
2407 fprintf( stderr, " changed_mask=%08x,", req->changed_mask );
2408 fprintf( stderr, " skip_wait=%d", req->skip_wait );
2411 static void dump_set_queue_mask_reply( const struct set_queue_mask_reply *req )
2413 fprintf( stderr, " wake_bits=%08x,", req->wake_bits );
2414 fprintf( stderr, " changed_bits=%08x", req->changed_bits );
2417 static void dump_get_queue_status_request( const struct get_queue_status_request *req )
2419 fprintf( stderr, " clear=%d", req->clear );
2422 static void dump_get_queue_status_reply( const struct get_queue_status_reply *req )
2424 fprintf( stderr, " wake_bits=%08x,", req->wake_bits );
2425 fprintf( stderr, " changed_bits=%08x", req->changed_bits );
2428 static void dump_get_process_idle_event_request( const struct get_process_idle_event_request *req )
2430 fprintf( stderr, " handle=%04x", req->handle );
2433 static void dump_get_process_idle_event_reply( const struct get_process_idle_event_reply *req )
2435 fprintf( stderr, " event=%04x", req->event );
2438 static void dump_send_message_request( const struct send_message_request *req )
2440 fprintf( stderr, " id=%04x,", req->id );
2441 fprintf( stderr, " type=%d,", req->type );
2442 fprintf( stderr, " flags=%d,", req->flags );
2443 fprintf( stderr, " win=%08x,", req->win );
2444 fprintf( stderr, " msg=%08x,", req->msg );
2445 fprintf( stderr, " wparam=" );
2446 dump_uint64( &req->wparam );
2447 fprintf( stderr, "," );
2448 fprintf( stderr, " lparam=" );
2449 dump_uint64( &req->lparam );
2450 fprintf( stderr, "," );
2451 fprintf( stderr, " timeout=" );
2452 dump_timeout( &req->timeout );
2453 fprintf( stderr, "," );
2454 fprintf( stderr, " data=" );
2455 dump_varargs_message_data( cur_size );
2458 static void dump_post_quit_message_request( const struct post_quit_message_request *req )
2460 fprintf( stderr, " exit_code=%d", req->exit_code );
2463 static void dump_send_hardware_message_request( const struct send_hardware_message_request *req )
2465 fprintf( stderr, " id=%04x,", req->id );
2466 fprintf( stderr, " win=%08x,", req->win );
2467 fprintf( stderr, " msg=%08x,", req->msg );
2468 fprintf( stderr, " wparam=" );
2469 dump_uint64( &req->wparam );
2470 fprintf( stderr, "," );
2471 fprintf( stderr, " lparam=" );
2472 dump_uint64( &req->lparam );
2473 fprintf( stderr, "," );
2474 fprintf( stderr, " info=" );
2475 dump_uint64( &req->info );
2476 fprintf( stderr, "," );
2477 fprintf( stderr, " x=%d,", req->x );
2478 fprintf( stderr, " y=%d,", req->y );
2479 fprintf( stderr, " time=%08x", req->time );
2482 static void dump_get_message_request( const struct get_message_request *req )
2484 fprintf( stderr, " flags=%08x,", req->flags );
2485 fprintf( stderr, " get_win=%08x,", req->get_win );
2486 fprintf( stderr, " get_first=%08x,", req->get_first );
2487 fprintf( stderr, " get_last=%08x,", req->get_last );
2488 fprintf( stderr, " hw_id=%08x,", req->hw_id );
2489 fprintf( stderr, " wake_mask=%08x,", req->wake_mask );
2490 fprintf( stderr, " changed_mask=%08x", req->changed_mask );
2493 static void dump_get_message_reply( const struct get_message_reply *req )
2495 fprintf( stderr, " win=%08x,", req->win );
2496 fprintf( stderr, " msg=%08x,", req->msg );
2497 fprintf( stderr, " wparam=" );
2498 dump_uint64( &req->wparam );
2499 fprintf( stderr, "," );
2500 fprintf( stderr, " lparam=" );
2501 dump_uint64( &req->lparam );
2502 fprintf( stderr, "," );
2503 fprintf( stderr, " type=%d,", req->type );
2504 fprintf( stderr, " time=%08x,", req->time );
2505 fprintf( stderr, " active_hooks=%08x,", req->active_hooks );
2506 fprintf( stderr, " total=%u,", req->total );
2507 fprintf( stderr, " data=" );
2508 dump_varargs_message_data( cur_size );
2511 static void dump_reply_message_request( const struct reply_message_request *req )
2513 fprintf( stderr, " remove=%d,", req->remove );
2514 fprintf( stderr, " result=" );
2515 dump_uint64( &req->result );
2516 fprintf( stderr, "," );
2517 fprintf( stderr, " data=" );
2518 dump_varargs_bytes( cur_size );
2521 static void dump_accept_hardware_message_request( const struct accept_hardware_message_request *req )
2523 fprintf( stderr, " hw_id=%08x,", req->hw_id );
2524 fprintf( stderr, " remove=%d,", req->remove );
2525 fprintf( stderr, " new_win=%08x", req->new_win );
2528 static void dump_get_message_reply_request( const struct get_message_reply_request *req )
2530 fprintf( stderr, " cancel=%d", req->cancel );
2533 static void dump_get_message_reply_reply( const struct get_message_reply_reply *req )
2535 fprintf( stderr, " result=" );
2536 dump_uint64( &req->result );
2537 fprintf( stderr, "," );
2538 fprintf( stderr, " data=" );
2539 dump_varargs_bytes( cur_size );
2542 static void dump_set_win_timer_request( const struct set_win_timer_request *req )
2544 fprintf( stderr, " win=%08x,", req->win );
2545 fprintf( stderr, " msg=%08x,", req->msg );
2546 fprintf( stderr, " rate=%08x,", req->rate );
2547 fprintf( stderr, " id=" );
2548 dump_uint64( &req->id );
2549 fprintf( stderr, "," );
2550 fprintf( stderr, " lparam=" );
2551 dump_uint64( &req->lparam );
2554 static void dump_set_win_timer_reply( const struct set_win_timer_reply *req )
2556 fprintf( stderr, " id=" );
2557 dump_uint64( &req->id );
2560 static void dump_kill_win_timer_request( const struct kill_win_timer_request *req )
2562 fprintf( stderr, " win=%08x,", req->win );
2563 fprintf( stderr, " id=" );
2564 dump_uint64( &req->id );
2565 fprintf( stderr, "," );
2566 fprintf( stderr, " msg=%08x", req->msg );
2569 static void dump_is_window_hung_request( const struct is_window_hung_request *req )
2571 fprintf( stderr, " win=%08x", req->win );
2574 static void dump_is_window_hung_reply( const struct is_window_hung_reply *req )
2576 fprintf( stderr, " is_hung=%d", req->is_hung );
2579 static void dump_get_serial_info_request( const struct get_serial_info_request *req )
2581 fprintf( stderr, " handle=%04x", req->handle );
2584 static void dump_get_serial_info_reply( const struct get_serial_info_reply *req )
2586 fprintf( stderr, " readinterval=%08x,", req->readinterval );
2587 fprintf( stderr, " readconst=%08x,", req->readconst );
2588 fprintf( stderr, " readmult=%08x,", req->readmult );
2589 fprintf( stderr, " writeconst=%08x,", req->writeconst );
2590 fprintf( stderr, " writemult=%08x,", req->writemult );
2591 fprintf( stderr, " eventmask=%08x", req->eventmask );
2594 static void dump_set_serial_info_request( const struct set_serial_info_request *req )
2596 fprintf( stderr, " handle=%04x,", req->handle );
2597 fprintf( stderr, " flags=%d,", req->flags );
2598 fprintf( stderr, " readinterval=%08x,", req->readinterval );
2599 fprintf( stderr, " readconst=%08x,", req->readconst );
2600 fprintf( stderr, " readmult=%08x,", req->readmult );
2601 fprintf( stderr, " writeconst=%08x,", req->writeconst );
2602 fprintf( stderr, " writemult=%08x,", req->writemult );
2603 fprintf( stderr, " eventmask=%08x", req->eventmask );
2606 static void dump_register_async_request( const struct register_async_request *req )
2608 fprintf( stderr, " type=%d,", req->type );
2609 fprintf( stderr, " async=" );
2610 dump_async_data( &req->async );
2611 fprintf( stderr, "," );
2612 fprintf( stderr, " count=%d", req->count );
2615 static void dump_cancel_async_request( const struct cancel_async_request *req )
2617 fprintf( stderr, " handle=%04x", req->handle );
2620 static void dump_ioctl_request( const struct ioctl_request *req )
2622 fprintf( stderr, " code=" );
2623 dump_ioctl_code( &req->code );
2624 fprintf( stderr, "," );
2625 fprintf( stderr, " async=" );
2626 dump_async_data( &req->async );
2627 fprintf( stderr, "," );
2628 fprintf( stderr, " blocking=%d,", req->blocking );
2629 fprintf( stderr, " in_data=" );
2630 dump_varargs_bytes( cur_size );
2633 static void dump_ioctl_reply( const struct ioctl_reply *req )
2635 fprintf( stderr, " wait=%04x,", req->wait );
2636 fprintf( stderr, " options=%08x,", req->options );
2637 fprintf( stderr, " out_data=" );
2638 dump_varargs_bytes( cur_size );
2641 static void dump_get_ioctl_result_request( const struct get_ioctl_result_request *req )
2643 fprintf( stderr, " handle=%04x,", req->handle );
2644 fprintf( stderr, " user_arg=" );
2645 dump_uint64( &req->user_arg );
2648 static void dump_get_ioctl_result_reply( const struct get_ioctl_result_reply *req )
2650 fprintf( stderr, " out_data=" );
2651 dump_varargs_bytes( cur_size );
2654 static void dump_create_named_pipe_request( const struct create_named_pipe_request *req )
2656 fprintf( stderr, " access=%08x,", req->access );
2657 fprintf( stderr, " attributes=%08x,", req->attributes );
2658 fprintf( stderr, " rootdir=%04x,", req->rootdir );
2659 fprintf( stderr, " options=%08x,", req->options );
2660 fprintf( stderr, " maxinstances=%08x,", req->maxinstances );
2661 fprintf( stderr, " outsize=%08x,", req->outsize );
2662 fprintf( stderr, " insize=%08x,", req->insize );
2663 fprintf( stderr, " timeout=" );
2664 dump_timeout( &req->timeout );
2665 fprintf( stderr, "," );
2666 fprintf( stderr, " flags=%08x,", req->flags );
2667 fprintf( stderr, " name=" );
2668 dump_varargs_unicode_str( cur_size );
2671 static void dump_create_named_pipe_reply( const struct create_named_pipe_reply *req )
2673 fprintf( stderr, " handle=%04x", req->handle );
2676 static void dump_get_named_pipe_info_request( const struct get_named_pipe_info_request *req )
2678 fprintf( stderr, " handle=%04x", req->handle );
2681 static void dump_get_named_pipe_info_reply( const struct get_named_pipe_info_reply *req )
2683 fprintf( stderr, " flags=%08x,", req->flags );
2684 fprintf( stderr, " maxinstances=%08x,", req->maxinstances );
2685 fprintf( stderr, " instances=%08x,", req->instances );
2686 fprintf( stderr, " outsize=%08x,", req->outsize );
2687 fprintf( stderr, " insize=%08x", req->insize );
2690 static void dump_create_window_request( const struct create_window_request *req )
2692 fprintf( stderr, " parent=%08x,", req->parent );
2693 fprintf( stderr, " owner=%08x,", req->owner );
2694 fprintf( stderr, " atom=%04x,", req->atom );
2695 fprintf( stderr, " instance=" );
2696 dump_uint64( &req->instance );
2697 fprintf( stderr, "," );
2698 fprintf( stderr, " class=" );
2699 dump_varargs_unicode_str( cur_size );
2702 static void dump_create_window_reply( const struct create_window_reply *req )
2704 fprintf( stderr, " handle=%08x,", req->handle );
2705 fprintf( stderr, " parent=%08x,", req->parent );
2706 fprintf( stderr, " owner=%08x,", req->owner );
2707 fprintf( stderr, " extra=%d,", req->extra );
2708 fprintf( stderr, " class_ptr=" );
2709 dump_uint64( &req->class_ptr );
2712 static void dump_destroy_window_request( const struct destroy_window_request *req )
2714 fprintf( stderr, " handle=%08x", req->handle );
2717 static void dump_get_desktop_window_request( const struct get_desktop_window_request *req )
2719 fprintf( stderr, " force=%d", req->force );
2722 static void dump_get_desktop_window_reply( const struct get_desktop_window_reply *req )
2724 fprintf( stderr, " top_window=%08x,", req->top_window );
2725 fprintf( stderr, " msg_window=%08x", req->msg_window );
2728 static void dump_set_window_owner_request( const struct set_window_owner_request *req )
2730 fprintf( stderr, " handle=%08x,", req->handle );
2731 fprintf( stderr, " owner=%08x", req->owner );
2734 static void dump_set_window_owner_reply( const struct set_window_owner_reply *req )
2736 fprintf( stderr, " full_owner=%08x,", req->full_owner );
2737 fprintf( stderr, " prev_owner=%08x", req->prev_owner );
2740 static void dump_get_window_info_request( const struct get_window_info_request *req )
2742 fprintf( stderr, " handle=%08x", req->handle );
2745 static void dump_get_window_info_reply( const struct get_window_info_reply *req )
2747 fprintf( stderr, " full_handle=%08x,", req->full_handle );
2748 fprintf( stderr, " last_active=%08x,", req->last_active );
2749 fprintf( stderr, " pid=%04x,", req->pid );
2750 fprintf( stderr, " tid=%04x,", req->tid );
2751 fprintf( stderr, " atom=%04x,", req->atom );
2752 fprintf( stderr, " is_unicode=%d", req->is_unicode );
2755 static void dump_set_window_info_request( const struct set_window_info_request *req )
2757 fprintf( stderr, " flags=%04x,", req->flags );
2758 fprintf( stderr, " is_unicode=%d,", req->is_unicode );
2759 fprintf( stderr, " handle=%08x,", req->handle );
2760 fprintf( stderr, " style=%08x,", req->style );
2761 fprintf( stderr, " ex_style=%08x,", req->ex_style );
2762 fprintf( stderr, " id=%08x,", req->id );
2763 fprintf( stderr, " instance=" );
2764 dump_uint64( &req->instance );
2765 fprintf( stderr, "," );
2766 fprintf( stderr, " user_data=" );
2767 dump_uint64( &req->user_data );
2768 fprintf( stderr, "," );
2769 fprintf( stderr, " extra_offset=%d,", req->extra_offset );
2770 fprintf( stderr, " extra_size=%u,", req->extra_size );
2771 fprintf( stderr, " extra_value=" );
2772 dump_uint64( &req->extra_value );
2775 static void dump_set_window_info_reply( const struct set_window_info_reply *req )
2777 fprintf( stderr, " old_style=%08x,", req->old_style );
2778 fprintf( stderr, " old_ex_style=%08x,", req->old_ex_style );
2779 fprintf( stderr, " old_instance=" );
2780 dump_uint64( &req->old_instance );
2781 fprintf( stderr, "," );
2782 fprintf( stderr, " old_user_data=" );
2783 dump_uint64( &req->old_user_data );
2784 fprintf( stderr, "," );
2785 fprintf( stderr, " old_extra_value=" );
2786 dump_uint64( &req->old_extra_value );
2787 fprintf( stderr, "," );
2788 fprintf( stderr, " old_id=%08x", req->old_id );
2791 static void dump_set_parent_request( const struct set_parent_request *req )
2793 fprintf( stderr, " handle=%08x,", req->handle );
2794 fprintf( stderr, " parent=%08x", req->parent );
2797 static void dump_set_parent_reply( const struct set_parent_reply *req )
2799 fprintf( stderr, " old_parent=%08x,", req->old_parent );
2800 fprintf( stderr, " full_parent=%08x", req->full_parent );
2803 static void dump_get_window_parents_request( const struct get_window_parents_request *req )
2805 fprintf( stderr, " handle=%08x", req->handle );
2808 static void dump_get_window_parents_reply( const struct get_window_parents_reply *req )
2810 fprintf( stderr, " count=%d,", req->count );
2811 fprintf( stderr, " parents=" );
2812 dump_varargs_user_handles( cur_size );
2815 static void dump_get_window_children_request( const struct get_window_children_request *req )
2817 fprintf( stderr, " desktop=%04x,", req->desktop );
2818 fprintf( stderr, " parent=%08x,", req->parent );
2819 fprintf( stderr, " atom=%04x,", req->atom );
2820 fprintf( stderr, " tid=%04x,", req->tid );
2821 fprintf( stderr, " class=" );
2822 dump_varargs_unicode_str( cur_size );
2825 static void dump_get_window_children_reply( const struct get_window_children_reply *req )
2827 fprintf( stderr, " count=%d,", req->count );
2828 fprintf( stderr, " children=" );
2829 dump_varargs_user_handles( cur_size );
2832 static void dump_get_window_children_from_point_request( const struct get_window_children_from_point_request *req )
2834 fprintf( stderr, " parent=%08x,", req->parent );
2835 fprintf( stderr, " x=%d,", req->x );
2836 fprintf( stderr, " y=%d", req->y );
2839 static void dump_get_window_children_from_point_reply( const struct get_window_children_from_point_reply *req )
2841 fprintf( stderr, " count=%d,", req->count );
2842 fprintf( stderr, " children=" );
2843 dump_varargs_user_handles( cur_size );
2846 static void dump_get_window_tree_request( const struct get_window_tree_request *req )
2848 fprintf( stderr, " handle=%08x", req->handle );
2851 static void dump_get_window_tree_reply( const struct get_window_tree_reply *req )
2853 fprintf( stderr, " parent=%08x,", req->parent );
2854 fprintf( stderr, " owner=%08x,", req->owner );
2855 fprintf( stderr, " next_sibling=%08x,", req->next_sibling );
2856 fprintf( stderr, " prev_sibling=%08x,", req->prev_sibling );
2857 fprintf( stderr, " first_sibling=%08x,", req->first_sibling );
2858 fprintf( stderr, " last_sibling=%08x,", req->last_sibling );
2859 fprintf( stderr, " first_child=%08x,", req->first_child );
2860 fprintf( stderr, " last_child=%08x", req->last_child );
2863 static void dump_set_window_pos_request( const struct set_window_pos_request *req )
2865 fprintf( stderr, " flags=%08x,", req->flags );
2866 fprintf( stderr, " handle=%08x,", req->handle );
2867 fprintf( stderr, " previous=%08x,", req->previous );
2868 fprintf( stderr, " window=" );
2869 dump_rectangle( &req->window );
2870 fprintf( stderr, "," );
2871 fprintf( stderr, " client=" );
2872 dump_rectangle( &req->client );
2873 fprintf( stderr, "," );
2874 fprintf( stderr, " valid=" );
2875 dump_varargs_rectangles( cur_size );
2878 static void dump_set_window_pos_reply( const struct set_window_pos_reply *req )
2880 fprintf( stderr, " new_style=%08x,", req->new_style );
2881 fprintf( stderr, " new_ex_style=%08x", req->new_ex_style );
2884 static void dump_get_window_rectangles_request( const struct get_window_rectangles_request *req )
2886 fprintf( stderr, " handle=%08x", req->handle );
2889 static void dump_get_window_rectangles_reply( const struct get_window_rectangles_reply *req )
2891 fprintf( stderr, " window=" );
2892 dump_rectangle( &req->window );
2893 fprintf( stderr, "," );
2894 fprintf( stderr, " visible=" );
2895 dump_rectangle( &req->visible );
2896 fprintf( stderr, "," );
2897 fprintf( stderr, " client=" );
2898 dump_rectangle( &req->client );
2901 static void dump_get_window_text_request( const struct get_window_text_request *req )
2903 fprintf( stderr, " handle=%08x", req->handle );
2906 static void dump_get_window_text_reply( const struct get_window_text_reply *req )
2908 fprintf( stderr, " text=" );
2909 dump_varargs_unicode_str( cur_size );
2912 static void dump_set_window_text_request( const struct set_window_text_request *req )
2914 fprintf( stderr, " handle=%08x,", req->handle );
2915 fprintf( stderr, " text=" );
2916 dump_varargs_unicode_str( cur_size );
2919 static void dump_get_windows_offset_request( const struct get_windows_offset_request *req )
2921 fprintf( stderr, " from=%08x,", req->from );
2922 fprintf( stderr, " to=%08x", req->to );
2925 static void dump_get_windows_offset_reply( const struct get_windows_offset_reply *req )
2927 fprintf( stderr, " x=%d,", req->x );
2928 fprintf( stderr, " y=%d", req->y );
2931 static void dump_get_visible_region_request( const struct get_visible_region_request *req )
2933 fprintf( stderr, " window=%08x,", req->window );
2934 fprintf( stderr, " flags=%08x", req->flags );
2937 static void dump_get_visible_region_reply( const struct get_visible_region_reply *req )
2939 fprintf( stderr, " top_win=%08x,", req->top_win );
2940 fprintf( stderr, " top_rect=" );
2941 dump_rectangle( &req->top_rect );
2942 fprintf( stderr, "," );
2943 fprintf( stderr, " win_rect=" );
2944 dump_rectangle( &req->win_rect );
2945 fprintf( stderr, "," );
2946 fprintf( stderr, " total_size=%u,", req->total_size );
2947 fprintf( stderr, " region=" );
2948 dump_varargs_rectangles( cur_size );
2951 static void dump_get_window_region_request( const struct get_window_region_request *req )
2953 fprintf( stderr, " window=%08x", req->window );
2956 static void dump_get_window_region_reply( const struct get_window_region_reply *req )
2958 fprintf( stderr, " total_size=%u,", req->total_size );
2959 fprintf( stderr, " region=" );
2960 dump_varargs_rectangles( cur_size );
2963 static void dump_set_window_region_request( const struct set_window_region_request *req )
2965 fprintf( stderr, " window=%08x,", req->window );
2966 fprintf( stderr, " redraw=%d,", req->redraw );
2967 fprintf( stderr, " region=" );
2968 dump_varargs_rectangles( cur_size );
2971 static void dump_get_update_region_request( const struct get_update_region_request *req )
2973 fprintf( stderr, " window=%08x,", req->window );
2974 fprintf( stderr, " from_child=%08x,", req->from_child );
2975 fprintf( stderr, " flags=%08x", req->flags );
2978 static void dump_get_update_region_reply( const struct get_update_region_reply *req )
2980 fprintf( stderr, " child=%08x,", req->child );
2981 fprintf( stderr, " flags=%08x,", req->flags );
2982 fprintf( stderr, " total_size=%u,", req->total_size );
2983 fprintf( stderr, " region=" );
2984 dump_varargs_rectangles( cur_size );
2987 static void dump_update_window_zorder_request( const struct update_window_zorder_request *req )
2989 fprintf( stderr, " window=%08x,", req->window );
2990 fprintf( stderr, " rect=" );
2991 dump_rectangle( &req->rect );
2994 static void dump_redraw_window_request( const struct redraw_window_request *req )
2996 fprintf( stderr, " window=%08x,", req->window );
2997 fprintf( stderr, " flags=%08x,", req->flags );
2998 fprintf( stderr, " region=" );
2999 dump_varargs_rectangles( cur_size );
3002 static void dump_set_window_property_request( const struct set_window_property_request *req )
3004 fprintf( stderr, " window=%08x,", req->window );
3005 fprintf( stderr, " data=" );
3006 dump_uint64( &req->data );
3007 fprintf( stderr, "," );
3008 fprintf( stderr, " atom=%04x,", req->atom );
3009 fprintf( stderr, " name=" );
3010 dump_varargs_unicode_str( cur_size );
3013 static void dump_remove_window_property_request( const struct remove_window_property_request *req )
3015 fprintf( stderr, " window=%08x,", req->window );
3016 fprintf( stderr, " atom=%04x,", req->atom );
3017 fprintf( stderr, " name=" );
3018 dump_varargs_unicode_str( cur_size );
3021 static void dump_remove_window_property_reply( const struct remove_window_property_reply *req )
3023 fprintf( stderr, " data=" );
3024 dump_uint64( &req->data );
3027 static void dump_get_window_property_request( const struct get_window_property_request *req )
3029 fprintf( stderr, " window=%08x,", req->window );
3030 fprintf( stderr, " atom=%04x,", req->atom );
3031 fprintf( stderr, " name=" );
3032 dump_varargs_unicode_str( cur_size );
3035 static void dump_get_window_property_reply( const struct get_window_property_reply *req )
3037 fprintf( stderr, " data=" );
3038 dump_uint64( &req->data );
3041 static void dump_get_window_properties_request( const struct get_window_properties_request *req )
3043 fprintf( stderr, " window=%08x", req->window );
3046 static void dump_get_window_properties_reply( const struct get_window_properties_reply *req )
3048 fprintf( stderr, " total=%d,", req->total );
3049 fprintf( stderr, " props=" );
3050 dump_varargs_properties( cur_size );
3053 static void dump_create_winstation_request( const struct create_winstation_request *req )
3055 fprintf( stderr, " flags=%08x,", req->flags );
3056 fprintf( stderr, " access=%08x,", req->access );
3057 fprintf( stderr, " attributes=%08x,", req->attributes );
3058 fprintf( stderr, " name=" );
3059 dump_varargs_unicode_str( cur_size );
3062 static void dump_create_winstation_reply( const struct create_winstation_reply *req )
3064 fprintf( stderr, " handle=%04x", req->handle );
3067 static void dump_open_winstation_request( const struct open_winstation_request *req )
3069 fprintf( stderr, " access=%08x,", req->access );
3070 fprintf( stderr, " attributes=%08x,", req->attributes );
3071 fprintf( stderr, " name=" );
3072 dump_varargs_unicode_str( cur_size );
3075 static void dump_open_winstation_reply( const struct open_winstation_reply *req )
3077 fprintf( stderr, " handle=%04x", req->handle );
3080 static void dump_close_winstation_request( const struct close_winstation_request *req )
3082 fprintf( stderr, " handle=%04x", req->handle );
3085 static void dump_get_process_winstation_request( const struct get_process_winstation_request *req )
3089 static void dump_get_process_winstation_reply( const struct get_process_winstation_reply *req )
3091 fprintf( stderr, " handle=%04x", req->handle );
3094 static void dump_set_process_winstation_request( const struct set_process_winstation_request *req )
3096 fprintf( stderr, " handle=%04x", req->handle );
3099 static void dump_enum_winstation_request( const struct enum_winstation_request *req )
3101 fprintf( stderr, " index=%08x", req->index );
3104 static void dump_enum_winstation_reply( const struct enum_winstation_reply *req )
3106 fprintf( stderr, " next=%08x,", req->next );
3107 fprintf( stderr, " name=" );
3108 dump_varargs_unicode_str( cur_size );
3111 static void dump_create_desktop_request( const struct create_desktop_request *req )
3113 fprintf( stderr, " flags=%08x,", req->flags );
3114 fprintf( stderr, " access=%08x,", req->access );
3115 fprintf( stderr, " attributes=%08x,", req->attributes );
3116 fprintf( stderr, " name=" );
3117 dump_varargs_unicode_str( cur_size );
3120 static void dump_create_desktop_reply( const struct create_desktop_reply *req )
3122 fprintf( stderr, " handle=%04x", req->handle );
3125 static void dump_open_desktop_request( const struct open_desktop_request *req )
3127 fprintf( stderr, " winsta=%04x,", req->winsta );
3128 fprintf( stderr, " flags=%08x,", req->flags );
3129 fprintf( stderr, " access=%08x,", req->access );
3130 fprintf( stderr, " attributes=%08x,", req->attributes );
3131 fprintf( stderr, " name=" );
3132 dump_varargs_unicode_str( cur_size );
3135 static void dump_open_desktop_reply( const struct open_desktop_reply *req )
3137 fprintf( stderr, " handle=%04x", req->handle );
3140 static void dump_close_desktop_request( const struct close_desktop_request *req )
3142 fprintf( stderr, " handle=%04x", req->handle );
3145 static void dump_get_thread_desktop_request( const struct get_thread_desktop_request *req )
3147 fprintf( stderr, " tid=%04x", req->tid );
3150 static void dump_get_thread_desktop_reply( const struct get_thread_desktop_reply *req )
3152 fprintf( stderr, " handle=%04x", req->handle );
3155 static void dump_set_thread_desktop_request( const struct set_thread_desktop_request *req )
3157 fprintf( stderr, " handle=%04x", req->handle );
3160 static void dump_enum_desktop_request( const struct enum_desktop_request *req )
3162 fprintf( stderr, " winstation=%04x,", req->winstation );
3163 fprintf( stderr, " index=%08x", req->index );
3166 static void dump_enum_desktop_reply( const struct enum_desktop_reply *req )
3168 fprintf( stderr, " next=%08x,", req->next );
3169 fprintf( stderr, " name=" );
3170 dump_varargs_unicode_str( cur_size );
3173 static void dump_set_user_object_info_request( const struct set_user_object_info_request *req )
3175 fprintf( stderr, " handle=%04x,", req->handle );
3176 fprintf( stderr, " flags=%08x,", req->flags );
3177 fprintf( stderr, " obj_flags=%08x", req->obj_flags );
3180 static void dump_set_user_object_info_reply( const struct set_user_object_info_reply *req )
3182 fprintf( stderr, " is_desktop=%d,", req->is_desktop );
3183 fprintf( stderr, " old_obj_flags=%08x,", req->old_obj_flags );
3184 fprintf( stderr, " name=" );
3185 dump_varargs_unicode_str( cur_size );
3188 static void dump_attach_thread_input_request( const struct attach_thread_input_request *req )
3190 fprintf( stderr, " tid_from=%04x,", req->tid_from );
3191 fprintf( stderr, " tid_to=%04x,", req->tid_to );
3192 fprintf( stderr, " attach=%d", req->attach );
3195 static void dump_get_thread_input_request( const struct get_thread_input_request *req )
3197 fprintf( stderr, " tid=%04x", req->tid );
3200 static void dump_get_thread_input_reply( const struct get_thread_input_reply *req )
3202 fprintf( stderr, " focus=%08x,", req->focus );
3203 fprintf( stderr, " capture=%08x,", req->capture );
3204 fprintf( stderr, " active=%08x,", req->active );
3205 fprintf( stderr, " foreground=%08x,", req->foreground );
3206 fprintf( stderr, " menu_owner=%08x,", req->menu_owner );
3207 fprintf( stderr, " move_size=%08x,", req->move_size );
3208 fprintf( stderr, " caret=%08x,", req->caret );
3209 fprintf( stderr, " rect=" );
3210 dump_rectangle( &req->rect );
3213 static void dump_get_last_input_time_request( const struct get_last_input_time_request *req )
3217 static void dump_get_last_input_time_reply( const struct get_last_input_time_reply *req )
3219 fprintf( stderr, " time=%08x", req->time );
3222 static void dump_get_key_state_request( const struct get_key_state_request *req )
3224 fprintf( stderr, " tid=%04x,", req->tid );
3225 fprintf( stderr, " key=%d", req->key );
3228 static void dump_get_key_state_reply( const struct get_key_state_reply *req )
3230 fprintf( stderr, " state=%02x,", req->state );
3231 fprintf( stderr, " keystate=" );
3232 dump_varargs_bytes( cur_size );
3235 static void dump_set_key_state_request( const struct set_key_state_request *req )
3237 fprintf( stderr, " tid=%04x,", req->tid );
3238 fprintf( stderr, " keystate=" );
3239 dump_varargs_bytes( cur_size );
3242 static void dump_set_foreground_window_request( const struct set_foreground_window_request *req )
3244 fprintf( stderr, " handle=%08x", req->handle );
3247 static void dump_set_foreground_window_reply( const struct set_foreground_window_reply *req )
3249 fprintf( stderr, " previous=%08x,", req->previous );
3250 fprintf( stderr, " send_msg_old=%d,", req->send_msg_old );
3251 fprintf( stderr, " send_msg_new=%d", req->send_msg_new );
3254 static void dump_set_focus_window_request( const struct set_focus_window_request *req )
3256 fprintf( stderr, " handle=%08x", req->handle );
3259 static void dump_set_focus_window_reply( const struct set_focus_window_reply *req )
3261 fprintf( stderr, " previous=%08x", req->previous );
3264 static void dump_set_active_window_request( const struct set_active_window_request *req )
3266 fprintf( stderr, " handle=%08x", req->handle );
3269 static void dump_set_active_window_reply( const struct set_active_window_reply *req )
3271 fprintf( stderr, " previous=%08x", req->previous );
3274 static void dump_set_capture_window_request( const struct set_capture_window_request *req )
3276 fprintf( stderr, " handle=%08x,", req->handle );
3277 fprintf( stderr, " flags=%08x", req->flags );
3280 static void dump_set_capture_window_reply( const struct set_capture_window_reply *req )
3282 fprintf( stderr, " previous=%08x,", req->previous );
3283 fprintf( stderr, " full_handle=%08x", req->full_handle );
3286 static void dump_set_caret_window_request( const struct set_caret_window_request *req )
3288 fprintf( stderr, " handle=%08x,", req->handle );
3289 fprintf( stderr, " width=%d,", req->width );
3290 fprintf( stderr, " height=%d", req->height );
3293 static void dump_set_caret_window_reply( const struct set_caret_window_reply *req )
3295 fprintf( stderr, " previous=%08x,", req->previous );
3296 fprintf( stderr, " old_rect=" );
3297 dump_rectangle( &req->old_rect );
3298 fprintf( stderr, "," );
3299 fprintf( stderr, " old_hide=%d,", req->old_hide );
3300 fprintf( stderr, " old_state=%d", req->old_state );
3303 static void dump_set_caret_info_request( const struct set_caret_info_request *req )
3305 fprintf( stderr, " flags=%08x,", req->flags );
3306 fprintf( stderr, " handle=%08x,", req->handle );
3307 fprintf( stderr, " x=%d,", req->x );
3308 fprintf( stderr, " y=%d,", req->y );
3309 fprintf( stderr, " hide=%d,", req->hide );
3310 fprintf( stderr, " state=%d", req->state );
3313 static void dump_set_caret_info_reply( const struct set_caret_info_reply *req )
3315 fprintf( stderr, " full_handle=%08x,", req->full_handle );
3316 fprintf( stderr, " old_rect=" );
3317 dump_rectangle( &req->old_rect );
3318 fprintf( stderr, "," );
3319 fprintf( stderr, " old_hide=%d,", req->old_hide );
3320 fprintf( stderr, " old_state=%d", req->old_state );
3323 static void dump_set_hook_request( const struct set_hook_request *req )
3325 fprintf( stderr, " id=%d,", req->id );
3326 fprintf( stderr, " pid=%04x,", req->pid );
3327 fprintf( stderr, " tid=%04x,", req->tid );
3328 fprintf( stderr, " event_min=%d,", req->event_min );
3329 fprintf( stderr, " event_max=%d,", req->event_max );
3330 fprintf( stderr, " proc=" );
3331 dump_uint64( &req->proc );
3332 fprintf( stderr, "," );
3333 fprintf( stderr, " flags=%d,", req->flags );
3334 fprintf( stderr, " unicode=%d,", req->unicode );
3335 fprintf( stderr, " module=" );
3336 dump_varargs_unicode_str( cur_size );
3339 static void dump_set_hook_reply( const struct set_hook_reply *req )
3341 fprintf( stderr, " handle=%08x,", req->handle );
3342 fprintf( stderr, " active_hooks=%08x", req->active_hooks );
3345 static void dump_remove_hook_request( const struct remove_hook_request *req )
3347 fprintf( stderr, " handle=%08x,", req->handle );
3348 fprintf( stderr, " proc=" );
3349 dump_uint64( &req->proc );
3350 fprintf( stderr, "," );
3351 fprintf( stderr, " id=%d", req->id );
3354 static void dump_remove_hook_reply( const struct remove_hook_reply *req )
3356 fprintf( stderr, " active_hooks=%08x", req->active_hooks );
3359 static void dump_start_hook_chain_request( const struct start_hook_chain_request *req )
3361 fprintf( stderr, " id=%d,", req->id );
3362 fprintf( stderr, " event=%d,", req->event );
3363 fprintf( stderr, " window=%08x,", req->window );
3364 fprintf( stderr, " object_id=%d,", req->object_id );
3365 fprintf( stderr, " child_id=%d", req->child_id );
3368 static void dump_start_hook_chain_reply( const struct start_hook_chain_reply *req )
3370 fprintf( stderr, " handle=%08x,", req->handle );
3371 fprintf( stderr, " pid=%04x,", req->pid );
3372 fprintf( stderr, " tid=%04x,", req->tid );
3373 fprintf( stderr, " unicode=%d,", req->unicode );
3374 fprintf( stderr, " proc=" );
3375 dump_uint64( &req->proc );
3376 fprintf( stderr, "," );
3377 fprintf( stderr, " active_hooks=%08x,", req->active_hooks );
3378 fprintf( stderr, " module=" );
3379 dump_varargs_unicode_str( cur_size );
3382 static void dump_finish_hook_chain_request( const struct finish_hook_chain_request *req )
3384 fprintf( stderr, " id=%d", req->id );
3387 static void dump_get_hook_info_request( const struct get_hook_info_request *req )
3389 fprintf( stderr, " handle=%08x,", req->handle );
3390 fprintf( stderr, " get_next=%d,", req->get_next );
3391 fprintf( stderr, " event=%d,", req->event );
3392 fprintf( stderr, " window=%08x,", req->window );
3393 fprintf( stderr, " object_id=%d,", req->object_id );
3394 fprintf( stderr, " child_id=%d", req->child_id );
3397 static void dump_get_hook_info_reply( const struct get_hook_info_reply *req )
3399 fprintf( stderr, " handle=%08x,", req->handle );
3400 fprintf( stderr, " id=%d,", req->id );
3401 fprintf( stderr, " pid=%04x,", req->pid );
3402 fprintf( stderr, " tid=%04x,", req->tid );
3403 fprintf( stderr, " proc=" );
3404 dump_uint64( &req->proc );
3405 fprintf( stderr, "," );
3406 fprintf( stderr, " unicode=%d,", req->unicode );
3407 fprintf( stderr, " module=" );
3408 dump_varargs_unicode_str( cur_size );
3411 static void dump_create_class_request( const struct create_class_request *req )
3413 fprintf( stderr, " local=%d,", req->local );
3414 fprintf( stderr, " atom=%04x,", req->atom );
3415 fprintf( stderr, " style=%08x,", req->style );
3416 fprintf( stderr, " instance=" );
3417 dump_uint64( &req->instance );
3418 fprintf( stderr, "," );
3419 fprintf( stderr, " extra=%d,", req->extra );
3420 fprintf( stderr, " win_extra=%d,", req->win_extra );
3421 fprintf( stderr, " client_ptr=" );
3422 dump_uint64( &req->client_ptr );
3423 fprintf( stderr, "," );
3424 fprintf( stderr, " name=" );
3425 dump_varargs_unicode_str( cur_size );
3428 static void dump_create_class_reply( const struct create_class_reply *req )
3430 fprintf( stderr, " atom=%04x", req->atom );
3433 static void dump_destroy_class_request( const struct destroy_class_request *req )
3435 fprintf( stderr, " atom=%04x,", req->atom );
3436 fprintf( stderr, " instance=" );
3437 dump_uint64( &req->instance );
3438 fprintf( stderr, "," );
3439 fprintf( stderr, " name=" );
3440 dump_varargs_unicode_str( cur_size );
3443 static void dump_destroy_class_reply( const struct destroy_class_reply *req )
3445 fprintf( stderr, " client_ptr=" );
3446 dump_uint64( &req->client_ptr );
3449 static void dump_set_class_info_request( const struct set_class_info_request *req )
3451 fprintf( stderr, " window=%08x,", req->window );
3452 fprintf( stderr, " flags=%08x,", req->flags );
3453 fprintf( stderr, " atom=%04x,", req->atom );
3454 fprintf( stderr, " style=%08x,", req->style );
3455 fprintf( stderr, " win_extra=%d,", req->win_extra );
3456 fprintf( stderr, " instance=" );
3457 dump_uint64( &req->instance );
3458 fprintf( stderr, "," );
3459 fprintf( stderr, " extra_offset=%d,", req->extra_offset );
3460 fprintf( stderr, " extra_size=%u,", req->extra_size );
3461 fprintf( stderr, " extra_value=" );
3462 dump_uint64( &req->extra_value );
3465 static void dump_set_class_info_reply( const struct set_class_info_reply *req )
3467 fprintf( stderr, " old_atom=%04x,", req->old_atom );
3468 fprintf( stderr, " old_style=%08x,", req->old_style );
3469 fprintf( stderr, " old_extra=%d,", req->old_extra );
3470 fprintf( stderr, " old_win_extra=%d,", req->old_win_extra );
3471 fprintf( stderr, " old_instance=" );
3472 dump_uint64( &req->old_instance );
3473 fprintf( stderr, "," );
3474 fprintf( stderr, " old_extra_value=" );
3475 dump_uint64( &req->old_extra_value );
3478 static void dump_set_clipboard_info_request( const struct set_clipboard_info_request *req )
3480 fprintf( stderr, " flags=%08x,", req->flags );
3481 fprintf( stderr, " clipboard=%08x,", req->clipboard );
3482 fprintf( stderr, " owner=%08x,", req->owner );
3483 fprintf( stderr, " viewer=%08x,", req->viewer );
3484 fprintf( stderr, " seqno=%08x", req->seqno );
3487 static void dump_set_clipboard_info_reply( const struct set_clipboard_info_reply *req )
3489 fprintf( stderr, " flags=%08x,", req->flags );
3490 fprintf( stderr, " old_clipboard=%08x,", req->old_clipboard );
3491 fprintf( stderr, " old_owner=%08x,", req->old_owner );
3492 fprintf( stderr, " old_viewer=%08x,", req->old_viewer );
3493 fprintf( stderr, " seqno=%08x", req->seqno );
3496 static void dump_open_token_request( const struct open_token_request *req )
3498 fprintf( stderr, " handle=%04x,", req->handle );
3499 fprintf( stderr, " access=%08x,", req->access );
3500 fprintf( stderr, " attributes=%08x,", req->attributes );
3501 fprintf( stderr, " flags=%08x", req->flags );
3504 static void dump_open_token_reply( const struct open_token_reply *req )
3506 fprintf( stderr, " token=%04x", req->token );
3509 static void dump_set_global_windows_request( const struct set_global_windows_request *req )
3511 fprintf( stderr, " flags=%08x,", req->flags );
3512 fprintf( stderr, " shell_window=%08x,", req->shell_window );
3513 fprintf( stderr, " shell_listview=%08x,", req->shell_listview );
3514 fprintf( stderr, " progman_window=%08x,", req->progman_window );
3515 fprintf( stderr, " taskman_window=%08x", req->taskman_window );
3518 static void dump_set_global_windows_reply( const struct set_global_windows_reply *req )
3520 fprintf( stderr, " old_shell_window=%08x,", req->old_shell_window );
3521 fprintf( stderr, " old_shell_listview=%08x,", req->old_shell_listview );
3522 fprintf( stderr, " old_progman_window=%08x,", req->old_progman_window );
3523 fprintf( stderr, " old_taskman_window=%08x", req->old_taskman_window );
3526 static void dump_adjust_token_privileges_request( const struct adjust_token_privileges_request *req )
3528 fprintf( stderr, " handle=%04x,", req->handle );
3529 fprintf( stderr, " disable_all=%d,", req->disable_all );
3530 fprintf( stderr, " get_modified_state=%d,", req->get_modified_state );
3531 fprintf( stderr, " privileges=" );
3532 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
3535 static void dump_adjust_token_privileges_reply( const struct adjust_token_privileges_reply *req )
3537 fprintf( stderr, " len=%08x,", req->len );
3538 fprintf( stderr, " privileges=" );
3539 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
3542 static void dump_get_token_privileges_request( const struct get_token_privileges_request *req )
3544 fprintf( stderr, " handle=%04x", req->handle );
3547 static void dump_get_token_privileges_reply( const struct get_token_privileges_reply *req )
3549 fprintf( stderr, " len=%08x,", req->len );
3550 fprintf( stderr, " privileges=" );
3551 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
3554 static void dump_check_token_privileges_request( const struct check_token_privileges_request *req )
3556 fprintf( stderr, " handle=%04x,", req->handle );
3557 fprintf( stderr, " all_required=%d,", req->all_required );
3558 fprintf( stderr, " privileges=" );
3559 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
3562 static void dump_check_token_privileges_reply( const struct check_token_privileges_reply *req )
3564 fprintf( stderr, " has_privileges=%d,", req->has_privileges );
3565 fprintf( stderr, " privileges=" );
3566 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
3569 static void dump_duplicate_token_request( const struct duplicate_token_request *req )
3571 fprintf( stderr, " handle=%04x,", req->handle );
3572 fprintf( stderr, " access=%08x,", req->access );
3573 fprintf( stderr, " attributes=%08x,", req->attributes );
3574 fprintf( stderr, " primary=%d,", req->primary );
3575 fprintf( stderr, " impersonation_level=%d", req->impersonation_level );
3578 static void dump_duplicate_token_reply( const struct duplicate_token_reply *req )
3580 fprintf( stderr, " new_handle=%04x", req->new_handle );
3583 static void dump_access_check_request( const struct access_check_request *req )
3585 fprintf( stderr, " handle=%04x,", req->handle );
3586 fprintf( stderr, " desired_access=%08x,", req->desired_access );
3587 fprintf( stderr, " mapping_read=%08x,", req->mapping_read );
3588 fprintf( stderr, " mapping_write=%08x,", req->mapping_write );
3589 fprintf( stderr, " mapping_execute=%08x,", req->mapping_execute );
3590 fprintf( stderr, " mapping_all=%08x,", req->mapping_all );
3591 fprintf( stderr, " sd=" );
3592 dump_varargs_security_descriptor( cur_size );
3595 static void dump_access_check_reply( const struct access_check_reply *req )
3597 fprintf( stderr, " access_granted=%08x,", req->access_granted );
3598 fprintf( stderr, " access_status=%08x,", req->access_status );
3599 fprintf( stderr, " privileges_len=%08x,", req->privileges_len );
3600 fprintf( stderr, " privileges=" );
3601 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
3604 static void dump_get_token_user_request( const struct get_token_user_request *req )
3606 fprintf( stderr, " handle=%04x", req->handle );
3609 static void dump_get_token_user_reply( const struct get_token_user_reply *req )
3611 fprintf( stderr, " user_len=%u,", req->user_len );
3612 fprintf( stderr, " user=" );
3613 dump_varargs_SID( cur_size );
3616 static void dump_get_token_groups_request( const struct get_token_groups_request *req )
3618 fprintf( stderr, " handle=%04x", req->handle );
3621 static void dump_get_token_groups_reply( const struct get_token_groups_reply *req )
3623 fprintf( stderr, " user_len=%u,", req->user_len );
3624 fprintf( stderr, " user=" );
3625 dump_varargs_token_groups( cur_size );
3628 static void dump_set_security_object_request( const struct set_security_object_request *req )
3630 fprintf( stderr, " handle=%04x,", req->handle );
3631 fprintf( stderr, " security_info=%08x,", req->security_info );
3632 fprintf( stderr, " sd=" );
3633 dump_varargs_security_descriptor( cur_size );
3636 static void dump_get_security_object_request( const struct get_security_object_request *req )
3638 fprintf( stderr, " handle=%04x,", req->handle );
3639 fprintf( stderr, " security_info=%08x", req->security_info );
3642 static void dump_get_security_object_reply( const struct get_security_object_reply *req )
3644 fprintf( stderr, " sd_len=%08x,", req->sd_len );
3645 fprintf( stderr, " sd=" );
3646 dump_varargs_security_descriptor( cur_size );
3649 static void dump_create_mailslot_request( const struct create_mailslot_request *req )
3651 fprintf( stderr, " access=%08x,", req->access );
3652 fprintf( stderr, " attributes=%08x,", req->attributes );
3653 fprintf( stderr, " rootdir=%04x,", req->rootdir );
3654 fprintf( stderr, " read_timeout=" );
3655 dump_timeout( &req->read_timeout );
3656 fprintf( stderr, "," );
3657 fprintf( stderr, " max_msgsize=%08x,", req->max_msgsize );
3658 fprintf( stderr, " name=" );
3659 dump_varargs_unicode_str( cur_size );
3662 static void dump_create_mailslot_reply( const struct create_mailslot_reply *req )
3664 fprintf( stderr, " handle=%04x", req->handle );
3667 static void dump_set_mailslot_info_request( const struct set_mailslot_info_request *req )
3669 fprintf( stderr, " handle=%04x,", req->handle );
3670 fprintf( stderr, " read_timeout=" );
3671 dump_timeout( &req->read_timeout );
3672 fprintf( stderr, "," );
3673 fprintf( stderr, " flags=%08x", req->flags );
3676 static void dump_set_mailslot_info_reply( const struct set_mailslot_info_reply *req )
3678 fprintf( stderr, " read_timeout=" );
3679 dump_timeout( &req->read_timeout );
3680 fprintf( stderr, "," );
3681 fprintf( stderr, " max_msgsize=%08x", req->max_msgsize );
3684 static void dump_create_directory_request( const struct create_directory_request *req )
3686 fprintf( stderr, " access=%08x,", req->access );
3687 fprintf( stderr, " attributes=%08x,", req->attributes );
3688 fprintf( stderr, " rootdir=%04x,", req->rootdir );
3689 fprintf( stderr, " directory_name=" );
3690 dump_varargs_unicode_str( cur_size );
3693 static void dump_create_directory_reply( const struct create_directory_reply *req )
3695 fprintf( stderr, " handle=%04x", req->handle );
3698 static void dump_open_directory_request( const struct open_directory_request *req )
3700 fprintf( stderr, " access=%08x,", req->access );
3701 fprintf( stderr, " attributes=%08x,", req->attributes );
3702 fprintf( stderr, " rootdir=%04x,", req->rootdir );
3703 fprintf( stderr, " directory_name=" );
3704 dump_varargs_unicode_str( cur_size );
3707 static void dump_open_directory_reply( const struct open_directory_reply *req )
3709 fprintf( stderr, " handle=%04x", req->handle );
3712 static void dump_get_directory_entry_request( const struct get_directory_entry_request *req )
3714 fprintf( stderr, " handle=%04x,", req->handle );
3715 fprintf( stderr, " index=%08x", req->index );
3718 static void dump_get_directory_entry_reply( const struct get_directory_entry_reply *req )
3720 fprintf( stderr, " name_len=%u,", req->name_len );
3721 fprintf( stderr, " name=" );
3722 dump_varargs_unicode_str( min(cur_size,req->name_len) );
3723 fputc( ',', stderr );
3724 fprintf( stderr, " type=" );
3725 dump_varargs_unicode_str( cur_size );
3728 static void dump_create_symlink_request( const struct create_symlink_request *req )
3730 fprintf( stderr, " access=%08x,", req->access );
3731 fprintf( stderr, " attributes=%08x,", req->attributes );
3732 fprintf( stderr, " rootdir=%04x,", req->rootdir );
3733 fprintf( stderr, " name_len=%u,", req->name_len );
3734 fprintf( stderr, " name=" );
3735 dump_varargs_unicode_str( min(cur_size,req->name_len) );
3736 fputc( ',', stderr );
3737 fprintf( stderr, " target_name=" );
3738 dump_varargs_unicode_str( cur_size );
3741 static void dump_create_symlink_reply( const struct create_symlink_reply *req )
3743 fprintf( stderr, " handle=%04x", req->handle );
3746 static void dump_open_symlink_request( const struct open_symlink_request *req )
3748 fprintf( stderr, " access=%08x,", req->access );
3749 fprintf( stderr, " attributes=%08x,", req->attributes );
3750 fprintf( stderr, " rootdir=%04x,", req->rootdir );
3751 fprintf( stderr, " name=" );
3752 dump_varargs_unicode_str( cur_size );
3755 static void dump_open_symlink_reply( const struct open_symlink_reply *req )
3757 fprintf( stderr, " handle=%04x", req->handle );
3760 static void dump_query_symlink_request( const struct query_symlink_request *req )
3762 fprintf( stderr, " handle=%04x", req->handle );
3765 static void dump_query_symlink_reply( const struct query_symlink_reply *req )
3767 fprintf( stderr, " target_name=" );
3768 dump_varargs_unicode_str( cur_size );
3771 static void dump_get_object_info_request( const struct get_object_info_request *req )
3773 fprintf( stderr, " handle=%04x", req->handle );
3776 static void dump_get_object_info_reply( const struct get_object_info_reply *req )
3778 fprintf( stderr, " access=%08x,", req->access );
3779 fprintf( stderr, " ref_count=%08x", req->ref_count );
3782 static void dump_unlink_object_request( const struct unlink_object_request *req )
3784 fprintf( stderr, " handle=%04x", req->handle );
3787 static void dump_get_token_impersonation_level_request( const struct get_token_impersonation_level_request *req )
3789 fprintf( stderr, " handle=%04x", req->handle );
3792 static void dump_get_token_impersonation_level_reply( const struct get_token_impersonation_level_reply *req )
3794 fprintf( stderr, " impersonation_level=%d", req->impersonation_level );
3797 static void dump_allocate_locally_unique_id_request( const struct allocate_locally_unique_id_request *req )
3801 static void dump_allocate_locally_unique_id_reply( const struct allocate_locally_unique_id_reply *req )
3803 fprintf( stderr, " luid=" );
3804 dump_luid( &req->luid );
3807 static void dump_create_device_manager_request( const struct create_device_manager_request *req )
3809 fprintf( stderr, " access=%08x,", req->access );
3810 fprintf( stderr, " attributes=%08x", req->attributes );
3813 static void dump_create_device_manager_reply( const struct create_device_manager_reply *req )
3815 fprintf( stderr, " handle=%04x", req->handle );
3818 static void dump_create_device_request( const struct create_device_request *req )
3820 fprintf( stderr, " access=%08x,", req->access );
3821 fprintf( stderr, " attributes=%08x,", req->attributes );
3822 fprintf( stderr, " rootdir=%04x,", req->rootdir );
3823 fprintf( stderr, " user_ptr=" );
3824 dump_uint64( &req->user_ptr );
3825 fprintf( stderr, "," );
3826 fprintf( stderr, " manager=%04x,", req->manager );
3827 fprintf( stderr, " name=" );
3828 dump_varargs_unicode_str( cur_size );
3831 static void dump_create_device_reply( const struct create_device_reply *req )
3833 fprintf( stderr, " handle=%04x", req->handle );
3836 static void dump_delete_device_request( const struct delete_device_request *req )
3838 fprintf( stderr, " handle=%04x", req->handle );
3841 static void dump_get_next_device_request_request( const struct get_next_device_request_request *req )
3843 fprintf( stderr, " manager=%04x,", req->manager );
3844 fprintf( stderr, " prev=%04x,", req->prev );
3845 fprintf( stderr, " status=%08x,", req->status );
3846 fprintf( stderr, " prev_data=" );
3847 dump_varargs_bytes( cur_size );
3850 static void dump_get_next_device_request_reply( const struct get_next_device_request_reply *req )
3852 fprintf( stderr, " next=%04x,", req->next );
3853 fprintf( stderr, " code=" );
3854 dump_ioctl_code( &req->code );
3855 fprintf( stderr, "," );
3856 fprintf( stderr, " user_ptr=" );
3857 dump_uint64( &req->user_ptr );
3858 fprintf( stderr, "," );
3859 fprintf( stderr, " in_size=%u,", req->in_size );
3860 fprintf( stderr, " out_size=%u,", req->out_size );
3861 fprintf( stderr, " next_data=" );
3862 dump_varargs_bytes( cur_size );
3865 static void dump_make_process_system_request( const struct make_process_system_request *req )
3869 static void dump_make_process_system_reply( const struct make_process_system_reply *req )
3871 fprintf( stderr, " event=%04x", req->event );
3874 static void dump_get_token_statistics_request( const struct get_token_statistics_request *req )
3876 fprintf( stderr, " handle=%04x", req->handle );
3879 static void dump_get_token_statistics_reply( const struct get_token_statistics_reply *req )
3881 fprintf( stderr, " token_id=" );
3882 dump_luid( &req->token_id );
3883 fprintf( stderr, "," );
3884 fprintf( stderr, " modified_id=" );
3885 dump_luid( &req->modified_id );
3886 fprintf( stderr, "," );
3887 fprintf( stderr, " primary=%d,", req->primary );
3888 fprintf( stderr, " impersonation_level=%d,", req->impersonation_level );
3889 fprintf( stderr, " group_count=%d,", req->group_count );
3890 fprintf( stderr, " privilege_count=%d", req->privilege_count );
3893 static void dump_create_completion_request( const struct create_completion_request *req )
3895 fprintf( stderr, " access=%08x,", req->access );
3896 fprintf( stderr, " attributes=%08x,", req->attributes );
3897 fprintf( stderr, " concurrent=%08x,", req->concurrent );
3898 fprintf( stderr, " rootdir=%04x,", req->rootdir );
3899 fprintf( stderr, " filename=" );
3900 dump_varargs_string( cur_size );
3903 static void dump_create_completion_reply( const struct create_completion_reply *req )
3905 fprintf( stderr, " handle=%04x", req->handle );
3908 static void dump_open_completion_request( const struct open_completion_request *req )
3910 fprintf( stderr, " access=%08x,", req->access );
3911 fprintf( stderr, " attributes=%08x,", req->attributes );
3912 fprintf( stderr, " rootdir=%04x,", req->rootdir );
3913 fprintf( stderr, " filename=" );
3914 dump_varargs_string( cur_size );
3917 static void dump_open_completion_reply( const struct open_completion_reply *req )
3919 fprintf( stderr, " handle=%04x", req->handle );
3922 static void dump_add_completion_request( const struct add_completion_request *req )
3924 fprintf( stderr, " handle=%04x,", req->handle );
3925 fprintf( stderr, " ckey=" );
3926 dump_uint64( &req->ckey );
3927 fprintf( stderr, "," );
3928 fprintf( stderr, " cvalue=" );
3929 dump_uint64( &req->cvalue );
3930 fprintf( stderr, "," );
3931 fprintf( stderr, " information=%08x,", req->information );
3932 fprintf( stderr, " status=%08x", req->status );
3935 static void dump_remove_completion_request( const struct remove_completion_request *req )
3937 fprintf( stderr, " handle=%04x", req->handle );
3940 static void dump_remove_completion_reply( const struct remove_completion_reply *req )
3942 fprintf( stderr, " ckey=" );
3943 dump_uint64( &req->ckey );
3944 fprintf( stderr, "," );
3945 fprintf( stderr, " cvalue=" );
3946 dump_uint64( &req->cvalue );
3947 fprintf( stderr, "," );
3948 fprintf( stderr, " information=%08x,", req->information );
3949 fprintf( stderr, " status=%08x", req->status );
3952 static void dump_query_completion_request( const struct query_completion_request *req )
3954 fprintf( stderr, " handle=%04x", req->handle );
3957 static void dump_query_completion_reply( const struct query_completion_reply *req )
3959 fprintf( stderr, " depth=%08x", req->depth );
3962 static void dump_set_completion_info_request( const struct set_completion_info_request *req )
3964 fprintf( stderr, " handle=%04x,", req->handle );
3965 fprintf( stderr, " ckey=" );
3966 dump_uint64( &req->ckey );
3967 fprintf( stderr, "," );
3968 fprintf( stderr, " chandle=%04x", req->chandle );
3971 static void dump_add_fd_completion_request( const struct add_fd_completion_request *req )
3973 fprintf( stderr, " handle=%04x,", req->handle );
3974 fprintf( stderr, " cvalue=" );
3975 dump_uint64( &req->cvalue );
3976 fprintf( stderr, "," );
3977 fprintf( stderr, " status=%08x,", req->status );
3978 fprintf( stderr, " information=%08x", req->information );
3981 static void dump_get_window_layered_info_request( const struct get_window_layered_info_request *req )
3983 fprintf( stderr, " handle=%08x", req->handle );
3986 static void dump_get_window_layered_info_reply( const struct get_window_layered_info_reply *req )
3988 fprintf( stderr, " color_key=%08x,", req->color_key );
3989 fprintf( stderr, " alpha=%08x,", req->alpha );
3990 fprintf( stderr, " flags=%08x", req->flags );
3993 static void dump_set_window_layered_info_request( const struct set_window_layered_info_request *req )
3995 fprintf( stderr, " handle=%08x,", req->handle );
3996 fprintf( stderr, " color_key=%08x,", req->color_key );
3997 fprintf( stderr, " alpha=%08x,", req->alpha );
3998 fprintf( stderr, " flags=%08x", req->flags );
4001 static const dump_func req_dumpers[REQ_NB_REQUESTS] = {
4002 (dump_func)dump_new_process_request,
4003 (dump_func)dump_get_new_process_info_request,
4004 (dump_func)dump_new_thread_request,
4005 (dump_func)dump_get_startup_info_request,
4006 (dump_func)dump_init_process_done_request,
4007 (dump_func)dump_init_thread_request,
4008 (dump_func)dump_terminate_process_request,
4009 (dump_func)dump_terminate_thread_request,
4010 (dump_func)dump_get_process_info_request,
4011 (dump_func)dump_set_process_info_request,
4012 (dump_func)dump_get_thread_info_request,
4013 (dump_func)dump_set_thread_info_request,
4014 (dump_func)dump_get_dll_info_request,
4015 (dump_func)dump_suspend_thread_request,
4016 (dump_func)dump_resume_thread_request,
4017 (dump_func)dump_load_dll_request,
4018 (dump_func)dump_unload_dll_request,
4019 (dump_func)dump_queue_apc_request,
4020 (dump_func)dump_get_apc_result_request,
4021 (dump_func)dump_close_handle_request,
4022 (dump_func)dump_set_handle_info_request,
4023 (dump_func)dump_dup_handle_request,
4024 (dump_func)dump_open_process_request,
4025 (dump_func)dump_open_thread_request,
4026 (dump_func)dump_select_request,
4027 (dump_func)dump_create_event_request,
4028 (dump_func)dump_event_op_request,
4029 (dump_func)dump_open_event_request,
4030 (dump_func)dump_create_mutex_request,
4031 (dump_func)dump_release_mutex_request,
4032 (dump_func)dump_open_mutex_request,
4033 (dump_func)dump_create_semaphore_request,
4034 (dump_func)dump_release_semaphore_request,
4035 (dump_func)dump_open_semaphore_request,
4036 (dump_func)dump_create_file_request,
4037 (dump_func)dump_open_file_object_request,
4038 (dump_func)dump_alloc_file_handle_request,
4039 (dump_func)dump_get_handle_fd_request,
4040 (dump_func)dump_flush_file_request,
4041 (dump_func)dump_lock_file_request,
4042 (dump_func)dump_unlock_file_request,
4043 (dump_func)dump_create_socket_request,
4044 (dump_func)dump_accept_socket_request,
4045 (dump_func)dump_set_socket_event_request,
4046 (dump_func)dump_get_socket_event_request,
4047 (dump_func)dump_enable_socket_event_request,
4048 (dump_func)dump_set_socket_deferred_request,
4049 (dump_func)dump_alloc_console_request,
4050 (dump_func)dump_free_console_request,
4051 (dump_func)dump_get_console_renderer_events_request,
4052 (dump_func)dump_open_console_request,
4053 (dump_func)dump_get_console_wait_event_request,
4054 (dump_func)dump_get_console_mode_request,
4055 (dump_func)dump_set_console_mode_request,
4056 (dump_func)dump_set_console_input_info_request,
4057 (dump_func)dump_get_console_input_info_request,
4058 (dump_func)dump_append_console_input_history_request,
4059 (dump_func)dump_get_console_input_history_request,
4060 (dump_func)dump_create_console_output_request,
4061 (dump_func)dump_set_console_output_info_request,
4062 (dump_func)dump_get_console_output_info_request,
4063 (dump_func)dump_write_console_input_request,
4064 (dump_func)dump_read_console_input_request,
4065 (dump_func)dump_write_console_output_request,
4066 (dump_func)dump_fill_console_output_request,
4067 (dump_func)dump_read_console_output_request,
4068 (dump_func)dump_move_console_output_request,
4069 (dump_func)dump_send_console_signal_request,
4070 (dump_func)dump_read_directory_changes_request,
4071 (dump_func)dump_read_change_request,
4072 (dump_func)dump_create_mapping_request,
4073 (dump_func)dump_open_mapping_request,
4074 (dump_func)dump_get_mapping_info_request,
4075 (dump_func)dump_get_mapping_committed_range_request,
4076 (dump_func)dump_add_mapping_committed_range_request,
4077 (dump_func)dump_create_snapshot_request,
4078 (dump_func)dump_next_process_request,
4079 (dump_func)dump_next_thread_request,
4080 (dump_func)dump_wait_debug_event_request,
4081 (dump_func)dump_queue_exception_event_request,
4082 (dump_func)dump_get_exception_status_request,
4083 (dump_func)dump_output_debug_string_request,
4084 (dump_func)dump_continue_debug_event_request,
4085 (dump_func)dump_debug_process_request,
4086 (dump_func)dump_debug_break_request,
4087 (dump_func)dump_set_debugger_kill_on_exit_request,
4088 (dump_func)dump_read_process_memory_request,
4089 (dump_func)dump_write_process_memory_request,
4090 (dump_func)dump_create_key_request,
4091 (dump_func)dump_open_key_request,
4092 (dump_func)dump_delete_key_request,
4093 (dump_func)dump_flush_key_request,
4094 (dump_func)dump_enum_key_request,
4095 (dump_func)dump_set_key_value_request,
4096 (dump_func)dump_get_key_value_request,
4097 (dump_func)dump_enum_key_value_request,
4098 (dump_func)dump_delete_key_value_request,
4099 (dump_func)dump_load_registry_request,
4100 (dump_func)dump_unload_registry_request,
4101 (dump_func)dump_save_registry_request,
4102 (dump_func)dump_set_registry_notification_request,
4103 (dump_func)dump_create_timer_request,
4104 (dump_func)dump_open_timer_request,
4105 (dump_func)dump_set_timer_request,
4106 (dump_func)dump_cancel_timer_request,
4107 (dump_func)dump_get_timer_info_request,
4108 (dump_func)dump_get_thread_context_request,
4109 (dump_func)dump_set_thread_context_request,
4110 (dump_func)dump_get_selector_entry_request,
4111 (dump_func)dump_add_atom_request,
4112 (dump_func)dump_delete_atom_request,
4113 (dump_func)dump_find_atom_request,
4114 (dump_func)dump_get_atom_information_request,
4115 (dump_func)dump_set_atom_information_request,
4116 (dump_func)dump_empty_atom_table_request,
4117 (dump_func)dump_init_atom_table_request,
4118 (dump_func)dump_get_msg_queue_request,
4119 (dump_func)dump_set_queue_fd_request,
4120 (dump_func)dump_set_queue_mask_request,
4121 (dump_func)dump_get_queue_status_request,
4122 (dump_func)dump_get_process_idle_event_request,
4123 (dump_func)dump_send_message_request,
4124 (dump_func)dump_post_quit_message_request,
4125 (dump_func)dump_send_hardware_message_request,
4126 (dump_func)dump_get_message_request,
4127 (dump_func)dump_reply_message_request,
4128 (dump_func)dump_accept_hardware_message_request,
4129 (dump_func)dump_get_message_reply_request,
4130 (dump_func)dump_set_win_timer_request,
4131 (dump_func)dump_kill_win_timer_request,
4132 (dump_func)dump_is_window_hung_request,
4133 (dump_func)dump_get_serial_info_request,
4134 (dump_func)dump_set_serial_info_request,
4135 (dump_func)dump_register_async_request,
4136 (dump_func)dump_cancel_async_request,
4137 (dump_func)dump_ioctl_request,
4138 (dump_func)dump_get_ioctl_result_request,
4139 (dump_func)dump_create_named_pipe_request,
4140 (dump_func)dump_get_named_pipe_info_request,
4141 (dump_func)dump_create_window_request,
4142 (dump_func)dump_destroy_window_request,
4143 (dump_func)dump_get_desktop_window_request,
4144 (dump_func)dump_set_window_owner_request,
4145 (dump_func)dump_get_window_info_request,
4146 (dump_func)dump_set_window_info_request,
4147 (dump_func)dump_set_parent_request,
4148 (dump_func)dump_get_window_parents_request,
4149 (dump_func)dump_get_window_children_request,
4150 (dump_func)dump_get_window_children_from_point_request,
4151 (dump_func)dump_get_window_tree_request,
4152 (dump_func)dump_set_window_pos_request,
4153 (dump_func)dump_get_window_rectangles_request,
4154 (dump_func)dump_get_window_text_request,
4155 (dump_func)dump_set_window_text_request,
4156 (dump_func)dump_get_windows_offset_request,
4157 (dump_func)dump_get_visible_region_request,
4158 (dump_func)dump_get_window_region_request,
4159 (dump_func)dump_set_window_region_request,
4160 (dump_func)dump_get_update_region_request,
4161 (dump_func)dump_update_window_zorder_request,
4162 (dump_func)dump_redraw_window_request,
4163 (dump_func)dump_set_window_property_request,
4164 (dump_func)dump_remove_window_property_request,
4165 (dump_func)dump_get_window_property_request,
4166 (dump_func)dump_get_window_properties_request,
4167 (dump_func)dump_create_winstation_request,
4168 (dump_func)dump_open_winstation_request,
4169 (dump_func)dump_close_winstation_request,
4170 (dump_func)dump_get_process_winstation_request,
4171 (dump_func)dump_set_process_winstation_request,
4172 (dump_func)dump_enum_winstation_request,
4173 (dump_func)dump_create_desktop_request,
4174 (dump_func)dump_open_desktop_request,
4175 (dump_func)dump_close_desktop_request,
4176 (dump_func)dump_get_thread_desktop_request,
4177 (dump_func)dump_set_thread_desktop_request,
4178 (dump_func)dump_enum_desktop_request,
4179 (dump_func)dump_set_user_object_info_request,
4180 (dump_func)dump_attach_thread_input_request,
4181 (dump_func)dump_get_thread_input_request,
4182 (dump_func)dump_get_last_input_time_request,
4183 (dump_func)dump_get_key_state_request,
4184 (dump_func)dump_set_key_state_request,
4185 (dump_func)dump_set_foreground_window_request,
4186 (dump_func)dump_set_focus_window_request,
4187 (dump_func)dump_set_active_window_request,
4188 (dump_func)dump_set_capture_window_request,
4189 (dump_func)dump_set_caret_window_request,
4190 (dump_func)dump_set_caret_info_request,
4191 (dump_func)dump_set_hook_request,
4192 (dump_func)dump_remove_hook_request,
4193 (dump_func)dump_start_hook_chain_request,
4194 (dump_func)dump_finish_hook_chain_request,
4195 (dump_func)dump_get_hook_info_request,
4196 (dump_func)dump_create_class_request,
4197 (dump_func)dump_destroy_class_request,
4198 (dump_func)dump_set_class_info_request,
4199 (dump_func)dump_set_clipboard_info_request,
4200 (dump_func)dump_open_token_request,
4201 (dump_func)dump_set_global_windows_request,
4202 (dump_func)dump_adjust_token_privileges_request,
4203 (dump_func)dump_get_token_privileges_request,
4204 (dump_func)dump_check_token_privileges_request,
4205 (dump_func)dump_duplicate_token_request,
4206 (dump_func)dump_access_check_request,
4207 (dump_func)dump_get_token_user_request,
4208 (dump_func)dump_get_token_groups_request,
4209 (dump_func)dump_set_security_object_request,
4210 (dump_func)dump_get_security_object_request,
4211 (dump_func)dump_create_mailslot_request,
4212 (dump_func)dump_set_mailslot_info_request,
4213 (dump_func)dump_create_directory_request,
4214 (dump_func)dump_open_directory_request,
4215 (dump_func)dump_get_directory_entry_request,
4216 (dump_func)dump_create_symlink_request,
4217 (dump_func)dump_open_symlink_request,
4218 (dump_func)dump_query_symlink_request,
4219 (dump_func)dump_get_object_info_request,
4220 (dump_func)dump_unlink_object_request,
4221 (dump_func)dump_get_token_impersonation_level_request,
4222 (dump_func)dump_allocate_locally_unique_id_request,
4223 (dump_func)dump_create_device_manager_request,
4224 (dump_func)dump_create_device_request,
4225 (dump_func)dump_delete_device_request,
4226 (dump_func)dump_get_next_device_request_request,
4227 (dump_func)dump_make_process_system_request,
4228 (dump_func)dump_get_token_statistics_request,
4229 (dump_func)dump_create_completion_request,
4230 (dump_func)dump_open_completion_request,
4231 (dump_func)dump_add_completion_request,
4232 (dump_func)dump_remove_completion_request,
4233 (dump_func)dump_query_completion_request,
4234 (dump_func)dump_set_completion_info_request,
4235 (dump_func)dump_add_fd_completion_request,
4236 (dump_func)dump_get_window_layered_info_request,
4237 (dump_func)dump_set_window_layered_info_request,
4240 static const dump_func reply_dumpers[REQ_NB_REQUESTS] = {
4241 (dump_func)dump_new_process_reply,
4242 (dump_func)dump_get_new_process_info_reply,
4243 (dump_func)dump_new_thread_reply,
4244 (dump_func)dump_get_startup_info_reply,
4245 NULL,
4246 (dump_func)dump_init_thread_reply,
4247 (dump_func)dump_terminate_process_reply,
4248 (dump_func)dump_terminate_thread_reply,
4249 (dump_func)dump_get_process_info_reply,
4250 NULL,
4251 (dump_func)dump_get_thread_info_reply,
4252 NULL,
4253 (dump_func)dump_get_dll_info_reply,
4254 (dump_func)dump_suspend_thread_reply,
4255 (dump_func)dump_resume_thread_reply,
4256 NULL,
4257 NULL,
4258 (dump_func)dump_queue_apc_reply,
4259 (dump_func)dump_get_apc_result_reply,
4260 NULL,
4261 (dump_func)dump_set_handle_info_reply,
4262 (dump_func)dump_dup_handle_reply,
4263 (dump_func)dump_open_process_reply,
4264 (dump_func)dump_open_thread_reply,
4265 (dump_func)dump_select_reply,
4266 (dump_func)dump_create_event_reply,
4267 NULL,
4268 (dump_func)dump_open_event_reply,
4269 (dump_func)dump_create_mutex_reply,
4270 (dump_func)dump_release_mutex_reply,
4271 (dump_func)dump_open_mutex_reply,
4272 (dump_func)dump_create_semaphore_reply,
4273 (dump_func)dump_release_semaphore_reply,
4274 (dump_func)dump_open_semaphore_reply,
4275 (dump_func)dump_create_file_reply,
4276 (dump_func)dump_open_file_object_reply,
4277 (dump_func)dump_alloc_file_handle_reply,
4278 (dump_func)dump_get_handle_fd_reply,
4279 (dump_func)dump_flush_file_reply,
4280 (dump_func)dump_lock_file_reply,
4281 NULL,
4282 (dump_func)dump_create_socket_reply,
4283 (dump_func)dump_accept_socket_reply,
4284 NULL,
4285 (dump_func)dump_get_socket_event_reply,
4286 NULL,
4287 NULL,
4288 (dump_func)dump_alloc_console_reply,
4289 NULL,
4290 (dump_func)dump_get_console_renderer_events_reply,
4291 (dump_func)dump_open_console_reply,
4292 (dump_func)dump_get_console_wait_event_reply,
4293 (dump_func)dump_get_console_mode_reply,
4294 NULL,
4295 NULL,
4296 (dump_func)dump_get_console_input_info_reply,
4297 NULL,
4298 (dump_func)dump_get_console_input_history_reply,
4299 (dump_func)dump_create_console_output_reply,
4300 NULL,
4301 (dump_func)dump_get_console_output_info_reply,
4302 (dump_func)dump_write_console_input_reply,
4303 (dump_func)dump_read_console_input_reply,
4304 (dump_func)dump_write_console_output_reply,
4305 (dump_func)dump_fill_console_output_reply,
4306 (dump_func)dump_read_console_output_reply,
4307 NULL,
4308 NULL,
4309 NULL,
4310 (dump_func)dump_read_change_reply,
4311 (dump_func)dump_create_mapping_reply,
4312 (dump_func)dump_open_mapping_reply,
4313 (dump_func)dump_get_mapping_info_reply,
4314 (dump_func)dump_get_mapping_committed_range_reply,
4315 NULL,
4316 (dump_func)dump_create_snapshot_reply,
4317 (dump_func)dump_next_process_reply,
4318 (dump_func)dump_next_thread_reply,
4319 (dump_func)dump_wait_debug_event_reply,
4320 (dump_func)dump_queue_exception_event_reply,
4321 (dump_func)dump_get_exception_status_reply,
4322 NULL,
4323 NULL,
4324 NULL,
4325 (dump_func)dump_debug_break_reply,
4326 NULL,
4327 (dump_func)dump_read_process_memory_reply,
4328 NULL,
4329 (dump_func)dump_create_key_reply,
4330 (dump_func)dump_open_key_reply,
4331 NULL,
4332 NULL,
4333 (dump_func)dump_enum_key_reply,
4334 NULL,
4335 (dump_func)dump_get_key_value_reply,
4336 (dump_func)dump_enum_key_value_reply,
4337 NULL,
4338 NULL,
4339 NULL,
4340 NULL,
4341 NULL,
4342 (dump_func)dump_create_timer_reply,
4343 (dump_func)dump_open_timer_reply,
4344 (dump_func)dump_set_timer_reply,
4345 (dump_func)dump_cancel_timer_reply,
4346 (dump_func)dump_get_timer_info_reply,
4347 (dump_func)dump_get_thread_context_reply,
4348 (dump_func)dump_set_thread_context_reply,
4349 (dump_func)dump_get_selector_entry_reply,
4350 (dump_func)dump_add_atom_reply,
4351 NULL,
4352 (dump_func)dump_find_atom_reply,
4353 (dump_func)dump_get_atom_information_reply,
4354 NULL,
4355 NULL,
4356 (dump_func)dump_init_atom_table_reply,
4357 (dump_func)dump_get_msg_queue_reply,
4358 NULL,
4359 (dump_func)dump_set_queue_mask_reply,
4360 (dump_func)dump_get_queue_status_reply,
4361 (dump_func)dump_get_process_idle_event_reply,
4362 NULL,
4363 NULL,
4364 NULL,
4365 (dump_func)dump_get_message_reply,
4366 NULL,
4367 NULL,
4368 (dump_func)dump_get_message_reply_reply,
4369 (dump_func)dump_set_win_timer_reply,
4370 NULL,
4371 (dump_func)dump_is_window_hung_reply,
4372 (dump_func)dump_get_serial_info_reply,
4373 NULL,
4374 NULL,
4375 NULL,
4376 (dump_func)dump_ioctl_reply,
4377 (dump_func)dump_get_ioctl_result_reply,
4378 (dump_func)dump_create_named_pipe_reply,
4379 (dump_func)dump_get_named_pipe_info_reply,
4380 (dump_func)dump_create_window_reply,
4381 NULL,
4382 (dump_func)dump_get_desktop_window_reply,
4383 (dump_func)dump_set_window_owner_reply,
4384 (dump_func)dump_get_window_info_reply,
4385 (dump_func)dump_set_window_info_reply,
4386 (dump_func)dump_set_parent_reply,
4387 (dump_func)dump_get_window_parents_reply,
4388 (dump_func)dump_get_window_children_reply,
4389 (dump_func)dump_get_window_children_from_point_reply,
4390 (dump_func)dump_get_window_tree_reply,
4391 (dump_func)dump_set_window_pos_reply,
4392 (dump_func)dump_get_window_rectangles_reply,
4393 (dump_func)dump_get_window_text_reply,
4394 NULL,
4395 (dump_func)dump_get_windows_offset_reply,
4396 (dump_func)dump_get_visible_region_reply,
4397 (dump_func)dump_get_window_region_reply,
4398 NULL,
4399 (dump_func)dump_get_update_region_reply,
4400 NULL,
4401 NULL,
4402 NULL,
4403 (dump_func)dump_remove_window_property_reply,
4404 (dump_func)dump_get_window_property_reply,
4405 (dump_func)dump_get_window_properties_reply,
4406 (dump_func)dump_create_winstation_reply,
4407 (dump_func)dump_open_winstation_reply,
4408 NULL,
4409 (dump_func)dump_get_process_winstation_reply,
4410 NULL,
4411 (dump_func)dump_enum_winstation_reply,
4412 (dump_func)dump_create_desktop_reply,
4413 (dump_func)dump_open_desktop_reply,
4414 NULL,
4415 (dump_func)dump_get_thread_desktop_reply,
4416 NULL,
4417 (dump_func)dump_enum_desktop_reply,
4418 (dump_func)dump_set_user_object_info_reply,
4419 NULL,
4420 (dump_func)dump_get_thread_input_reply,
4421 (dump_func)dump_get_last_input_time_reply,
4422 (dump_func)dump_get_key_state_reply,
4423 NULL,
4424 (dump_func)dump_set_foreground_window_reply,
4425 (dump_func)dump_set_focus_window_reply,
4426 (dump_func)dump_set_active_window_reply,
4427 (dump_func)dump_set_capture_window_reply,
4428 (dump_func)dump_set_caret_window_reply,
4429 (dump_func)dump_set_caret_info_reply,
4430 (dump_func)dump_set_hook_reply,
4431 (dump_func)dump_remove_hook_reply,
4432 (dump_func)dump_start_hook_chain_reply,
4433 NULL,
4434 (dump_func)dump_get_hook_info_reply,
4435 (dump_func)dump_create_class_reply,
4436 (dump_func)dump_destroy_class_reply,
4437 (dump_func)dump_set_class_info_reply,
4438 (dump_func)dump_set_clipboard_info_reply,
4439 (dump_func)dump_open_token_reply,
4440 (dump_func)dump_set_global_windows_reply,
4441 (dump_func)dump_adjust_token_privileges_reply,
4442 (dump_func)dump_get_token_privileges_reply,
4443 (dump_func)dump_check_token_privileges_reply,
4444 (dump_func)dump_duplicate_token_reply,
4445 (dump_func)dump_access_check_reply,
4446 (dump_func)dump_get_token_user_reply,
4447 (dump_func)dump_get_token_groups_reply,
4448 NULL,
4449 (dump_func)dump_get_security_object_reply,
4450 (dump_func)dump_create_mailslot_reply,
4451 (dump_func)dump_set_mailslot_info_reply,
4452 (dump_func)dump_create_directory_reply,
4453 (dump_func)dump_open_directory_reply,
4454 (dump_func)dump_get_directory_entry_reply,
4455 (dump_func)dump_create_symlink_reply,
4456 (dump_func)dump_open_symlink_reply,
4457 (dump_func)dump_query_symlink_reply,
4458 (dump_func)dump_get_object_info_reply,
4459 NULL,
4460 (dump_func)dump_get_token_impersonation_level_reply,
4461 (dump_func)dump_allocate_locally_unique_id_reply,
4462 (dump_func)dump_create_device_manager_reply,
4463 (dump_func)dump_create_device_reply,
4464 NULL,
4465 (dump_func)dump_get_next_device_request_reply,
4466 (dump_func)dump_make_process_system_reply,
4467 (dump_func)dump_get_token_statistics_reply,
4468 (dump_func)dump_create_completion_reply,
4469 (dump_func)dump_open_completion_reply,
4470 NULL,
4471 (dump_func)dump_remove_completion_reply,
4472 (dump_func)dump_query_completion_reply,
4473 NULL,
4474 NULL,
4475 (dump_func)dump_get_window_layered_info_reply,
4476 NULL,
4479 static const char * const req_names[REQ_NB_REQUESTS] = {
4480 "new_process",
4481 "get_new_process_info",
4482 "new_thread",
4483 "get_startup_info",
4484 "init_process_done",
4485 "init_thread",
4486 "terminate_process",
4487 "terminate_thread",
4488 "get_process_info",
4489 "set_process_info",
4490 "get_thread_info",
4491 "set_thread_info",
4492 "get_dll_info",
4493 "suspend_thread",
4494 "resume_thread",
4495 "load_dll",
4496 "unload_dll",
4497 "queue_apc",
4498 "get_apc_result",
4499 "close_handle",
4500 "set_handle_info",
4501 "dup_handle",
4502 "open_process",
4503 "open_thread",
4504 "select",
4505 "create_event",
4506 "event_op",
4507 "open_event",
4508 "create_mutex",
4509 "release_mutex",
4510 "open_mutex",
4511 "create_semaphore",
4512 "release_semaphore",
4513 "open_semaphore",
4514 "create_file",
4515 "open_file_object",
4516 "alloc_file_handle",
4517 "get_handle_fd",
4518 "flush_file",
4519 "lock_file",
4520 "unlock_file",
4521 "create_socket",
4522 "accept_socket",
4523 "set_socket_event",
4524 "get_socket_event",
4525 "enable_socket_event",
4526 "set_socket_deferred",
4527 "alloc_console",
4528 "free_console",
4529 "get_console_renderer_events",
4530 "open_console",
4531 "get_console_wait_event",
4532 "get_console_mode",
4533 "set_console_mode",
4534 "set_console_input_info",
4535 "get_console_input_info",
4536 "append_console_input_history",
4537 "get_console_input_history",
4538 "create_console_output",
4539 "set_console_output_info",
4540 "get_console_output_info",
4541 "write_console_input",
4542 "read_console_input",
4543 "write_console_output",
4544 "fill_console_output",
4545 "read_console_output",
4546 "move_console_output",
4547 "send_console_signal",
4548 "read_directory_changes",
4549 "read_change",
4550 "create_mapping",
4551 "open_mapping",
4552 "get_mapping_info",
4553 "get_mapping_committed_range",
4554 "add_mapping_committed_range",
4555 "create_snapshot",
4556 "next_process",
4557 "next_thread",
4558 "wait_debug_event",
4559 "queue_exception_event",
4560 "get_exception_status",
4561 "output_debug_string",
4562 "continue_debug_event",
4563 "debug_process",
4564 "debug_break",
4565 "set_debugger_kill_on_exit",
4566 "read_process_memory",
4567 "write_process_memory",
4568 "create_key",
4569 "open_key",
4570 "delete_key",
4571 "flush_key",
4572 "enum_key",
4573 "set_key_value",
4574 "get_key_value",
4575 "enum_key_value",
4576 "delete_key_value",
4577 "load_registry",
4578 "unload_registry",
4579 "save_registry",
4580 "set_registry_notification",
4581 "create_timer",
4582 "open_timer",
4583 "set_timer",
4584 "cancel_timer",
4585 "get_timer_info",
4586 "get_thread_context",
4587 "set_thread_context",
4588 "get_selector_entry",
4589 "add_atom",
4590 "delete_atom",
4591 "find_atom",
4592 "get_atom_information",
4593 "set_atom_information",
4594 "empty_atom_table",
4595 "init_atom_table",
4596 "get_msg_queue",
4597 "set_queue_fd",
4598 "set_queue_mask",
4599 "get_queue_status",
4600 "get_process_idle_event",
4601 "send_message",
4602 "post_quit_message",
4603 "send_hardware_message",
4604 "get_message",
4605 "reply_message",
4606 "accept_hardware_message",
4607 "get_message_reply",
4608 "set_win_timer",
4609 "kill_win_timer",
4610 "is_window_hung",
4611 "get_serial_info",
4612 "set_serial_info",
4613 "register_async",
4614 "cancel_async",
4615 "ioctl",
4616 "get_ioctl_result",
4617 "create_named_pipe",
4618 "get_named_pipe_info",
4619 "create_window",
4620 "destroy_window",
4621 "get_desktop_window",
4622 "set_window_owner",
4623 "get_window_info",
4624 "set_window_info",
4625 "set_parent",
4626 "get_window_parents",
4627 "get_window_children",
4628 "get_window_children_from_point",
4629 "get_window_tree",
4630 "set_window_pos",
4631 "get_window_rectangles",
4632 "get_window_text",
4633 "set_window_text",
4634 "get_windows_offset",
4635 "get_visible_region",
4636 "get_window_region",
4637 "set_window_region",
4638 "get_update_region",
4639 "update_window_zorder",
4640 "redraw_window",
4641 "set_window_property",
4642 "remove_window_property",
4643 "get_window_property",
4644 "get_window_properties",
4645 "create_winstation",
4646 "open_winstation",
4647 "close_winstation",
4648 "get_process_winstation",
4649 "set_process_winstation",
4650 "enum_winstation",
4651 "create_desktop",
4652 "open_desktop",
4653 "close_desktop",
4654 "get_thread_desktop",
4655 "set_thread_desktop",
4656 "enum_desktop",
4657 "set_user_object_info",
4658 "attach_thread_input",
4659 "get_thread_input",
4660 "get_last_input_time",
4661 "get_key_state",
4662 "set_key_state",
4663 "set_foreground_window",
4664 "set_focus_window",
4665 "set_active_window",
4666 "set_capture_window",
4667 "set_caret_window",
4668 "set_caret_info",
4669 "set_hook",
4670 "remove_hook",
4671 "start_hook_chain",
4672 "finish_hook_chain",
4673 "get_hook_info",
4674 "create_class",
4675 "destroy_class",
4676 "set_class_info",
4677 "set_clipboard_info",
4678 "open_token",
4679 "set_global_windows",
4680 "adjust_token_privileges",
4681 "get_token_privileges",
4682 "check_token_privileges",
4683 "duplicate_token",
4684 "access_check",
4685 "get_token_user",
4686 "get_token_groups",
4687 "set_security_object",
4688 "get_security_object",
4689 "create_mailslot",
4690 "set_mailslot_info",
4691 "create_directory",
4692 "open_directory",
4693 "get_directory_entry",
4694 "create_symlink",
4695 "open_symlink",
4696 "query_symlink",
4697 "get_object_info",
4698 "unlink_object",
4699 "get_token_impersonation_level",
4700 "allocate_locally_unique_id",
4701 "create_device_manager",
4702 "create_device",
4703 "delete_device",
4704 "get_next_device_request",
4705 "make_process_system",
4706 "get_token_statistics",
4707 "create_completion",
4708 "open_completion",
4709 "add_completion",
4710 "remove_completion",
4711 "query_completion",
4712 "set_completion_info",
4713 "add_fd_completion",
4714 "get_window_layered_info",
4715 "set_window_layered_info",
4718 static const struct
4720 const char *name;
4721 unsigned int value;
4722 } status_names[] =
4724 { "ABANDONED_WAIT_0", STATUS_ABANDONED_WAIT_0 },
4725 { "ACCESS_DENIED", STATUS_ACCESS_DENIED },
4726 { "ACCESS_VIOLATION", STATUS_ACCESS_VIOLATION },
4727 { "ALERTED", STATUS_ALERTED },
4728 { "ALIAS_EXISTS", STATUS_ALIAS_EXISTS },
4729 { "BAD_DEVICE_TYPE", STATUS_BAD_DEVICE_TYPE },
4730 { "BAD_IMPERSONATION_LEVEL", STATUS_BAD_IMPERSONATION_LEVEL },
4731 { "BREAKPOINT", STATUS_BREAKPOINT },
4732 { "BUFFER_OVERFLOW", STATUS_BUFFER_OVERFLOW },
4733 { "BUFFER_TOO_SMALL", STATUS_BUFFER_TOO_SMALL },
4734 { "CANCELLED", STATUS_CANCELLED },
4735 { "CANT_OPEN_ANONYMOUS", STATUS_CANT_OPEN_ANONYMOUS },
4736 { "CHILD_MUST_BE_VOLATILE", STATUS_CHILD_MUST_BE_VOLATILE },
4737 { "DEBUGGER_INACTIVE", STATUS_DEBUGGER_INACTIVE },
4738 { "DEVICE_BUSY", STATUS_DEVICE_BUSY },
4739 { "DIRECTORY_NOT_EMPTY", STATUS_DIRECTORY_NOT_EMPTY },
4740 { "DISK_FULL", STATUS_DISK_FULL },
4741 { "DLL_NOT_FOUND", STATUS_DLL_NOT_FOUND },
4742 { "ERROR_CLASS_ALREADY_EXISTS", 0xc0010000 | ERROR_CLASS_ALREADY_EXISTS },
4743 { "ERROR_CLASS_DOES_NOT_EXIST", 0xc0010000 | ERROR_CLASS_DOES_NOT_EXIST },
4744 { "ERROR_CLASS_HAS_WINDOWS", 0xc0010000 | ERROR_CLASS_HAS_WINDOWS },
4745 { "ERROR_CLIPBOARD_NOT_OPEN", 0xc0010000 | ERROR_CLIPBOARD_NOT_OPEN },
4746 { "ERROR_INVALID_INDEX", 0xc0010000 | ERROR_INVALID_INDEX },
4747 { "ERROR_INVALID_WINDOW_HANDLE", 0xc0010000 | ERROR_INVALID_WINDOW_HANDLE },
4748 { "FILE_DELETED", STATUS_FILE_DELETED },
4749 { "FILE_IS_A_DIRECTORY", STATUS_FILE_IS_A_DIRECTORY },
4750 { "FILE_LOCK_CONFLICT", STATUS_FILE_LOCK_CONFLICT },
4751 { "GENERIC_NOT_MAPPED", STATUS_GENERIC_NOT_MAPPED },
4752 { "HANDLES_CLOSED", STATUS_HANDLES_CLOSED },
4753 { "HANDLE_NOT_CLOSABLE", STATUS_HANDLE_NOT_CLOSABLE },
4754 { "ILLEGAL_FUNCTION", STATUS_ILLEGAL_FUNCTION },
4755 { "INSTANCE_NOT_AVAILABLE", STATUS_INSTANCE_NOT_AVAILABLE },
4756 { "INSUFFICIENT_RESOURCES", STATUS_INSUFFICIENT_RESOURCES },
4757 { "INVALID_CID", STATUS_INVALID_CID },
4758 { "INVALID_DEVICE_REQUEST", STATUS_INVALID_DEVICE_REQUEST },
4759 { "INVALID_FILE_FOR_SECTION", STATUS_INVALID_FILE_FOR_SECTION },
4760 { "INVALID_HANDLE", STATUS_INVALID_HANDLE },
4761 { "INVALID_PARAMETER", STATUS_INVALID_PARAMETER },
4762 { "INVALID_SECURITY_DESCR", STATUS_INVALID_SECURITY_DESCR },
4763 { "IO_TIMEOUT", STATUS_IO_TIMEOUT },
4764 { "KEY_DELETED", STATUS_KEY_DELETED },
4765 { "MAPPED_FILE_SIZE_ZERO", STATUS_MAPPED_FILE_SIZE_ZERO },
4766 { "MEDIA_WRITE_PROTECTED", STATUS_MEDIA_WRITE_PROTECTED },
4767 { "MUTANT_NOT_OWNED", STATUS_MUTANT_NOT_OWNED },
4768 { "NAME_TOO_LONG", STATUS_NAME_TOO_LONG },
4769 { "NOTIFY_ENUM_DIR", STATUS_NOTIFY_ENUM_DIR },
4770 { "NOT_ALL_ASSIGNED", STATUS_NOT_ALL_ASSIGNED },
4771 { "NOT_A_DIRECTORY", STATUS_NOT_A_DIRECTORY },
4772 { "NOT_IMPLEMENTED", STATUS_NOT_IMPLEMENTED },
4773 { "NOT_REGISTRY_FILE", STATUS_NOT_REGISTRY_FILE },
4774 { "NOT_SUPPORTED", STATUS_NOT_SUPPORTED },
4775 { "NO_DATA_DETECTED", STATUS_NO_DATA_DETECTED },
4776 { "NO_IMPERSONATION_TOKEN", STATUS_NO_IMPERSONATION_TOKEN },
4777 { "NO_MEMORY", STATUS_NO_MEMORY },
4778 { "NO_MORE_ENTRIES", STATUS_NO_MORE_ENTRIES },
4779 { "NO_MORE_FILES", STATUS_NO_MORE_FILES },
4780 { "NO_SUCH_DEVICE", STATUS_NO_SUCH_DEVICE },
4781 { "NO_SUCH_FILE", STATUS_NO_SUCH_FILE },
4782 { "NO_TOKEN", STATUS_NO_TOKEN },
4783 { "OBJECT_NAME_COLLISION", STATUS_OBJECT_NAME_COLLISION },
4784 { "OBJECT_NAME_EXISTS", STATUS_OBJECT_NAME_EXISTS },
4785 { "OBJECT_NAME_INVALID", STATUS_OBJECT_NAME_INVALID },
4786 { "OBJECT_NAME_NOT_FOUND", STATUS_OBJECT_NAME_NOT_FOUND },
4787 { "OBJECT_PATH_INVALID", STATUS_OBJECT_PATH_INVALID },
4788 { "OBJECT_PATH_NOT_FOUND", STATUS_OBJECT_PATH_NOT_FOUND },
4789 { "OBJECT_PATH_SYNTAX_BAD", STATUS_OBJECT_PATH_SYNTAX_BAD },
4790 { "OBJECT_TYPE_MISMATCH", STATUS_OBJECT_TYPE_MISMATCH },
4791 { "PENDING", STATUS_PENDING },
4792 { "PIPE_BUSY", STATUS_PIPE_BUSY },
4793 { "PIPE_CONNECTED", STATUS_PIPE_CONNECTED },
4794 { "PIPE_DISCONNECTED", STATUS_PIPE_DISCONNECTED },
4795 { "PIPE_LISTENING", STATUS_PIPE_LISTENING },
4796 { "PIPE_NOT_AVAILABLE", STATUS_PIPE_NOT_AVAILABLE },
4797 { "PRIVILEGE_NOT_HELD", STATUS_PRIVILEGE_NOT_HELD },
4798 { "PROCESS_IS_TERMINATING", STATUS_PROCESS_IS_TERMINATING },
4799 { "SECTION_TOO_BIG", STATUS_SECTION_TOO_BIG },
4800 { "SEMAPHORE_LIMIT_EXCEEDED", STATUS_SEMAPHORE_LIMIT_EXCEEDED },
4801 { "SHARING_VIOLATION", STATUS_SHARING_VIOLATION },
4802 { "SHUTDOWN_IN_PROGRESS", STATUS_SHUTDOWN_IN_PROGRESS },
4803 { "SUSPEND_COUNT_EXCEEDED", STATUS_SUSPEND_COUNT_EXCEEDED },
4804 { "THREAD_IS_TERMINATING", STATUS_THREAD_IS_TERMINATING },
4805 { "TIMEOUT", STATUS_TIMEOUT },
4806 { "TOO_MANY_OPENED_FILES", STATUS_TOO_MANY_OPENED_FILES },
4807 { "UNSUCCESSFUL", STATUS_UNSUCCESSFUL },
4808 { "USER_APC", STATUS_USER_APC },
4809 { "VOLUME_DISMOUNTED", STATUS_VOLUME_DISMOUNTED },
4810 { "WAS_LOCKED", STATUS_WAS_LOCKED },
4811 { NULL, 0 }
4814 /* ### make_requests end ### */
4815 /* Everything above this line is generated automatically by tools/make_requests */
4817 static const char *get_status_name( unsigned int status )
4819 int i;
4820 static char buffer[10];
4822 if (status)
4824 for (i = 0; status_names[i].name; i++)
4825 if (status_names[i].value == status) return status_names[i].name;
4827 sprintf( buffer, "%x", status );
4828 return buffer;
4831 void trace_request(void)
4833 enum request req = current->req.request_header.req;
4834 if (req < REQ_NB_REQUESTS)
4836 fprintf( stderr, "%04x: %s(", current->id, req_names[req] );
4837 if (req_dumpers[req])
4839 cur_data = get_req_data();
4840 cur_size = get_req_data_size();
4841 req_dumpers[req]( &current->req );
4843 fprintf( stderr, " )\n" );
4845 else fprintf( stderr, "%04x: %d(?)\n", current->id, req );
4848 void trace_reply( enum request req, const union generic_reply *reply )
4850 if (req < REQ_NB_REQUESTS)
4852 fprintf( stderr, "%04x: %s() = %s",
4853 current->id, req_names[req], get_status_name(current->error) );
4854 if (reply_dumpers[req])
4856 fprintf( stderr, " {" );
4857 cur_data = current->reply_data;
4858 cur_size = reply->reply_header.reply_size;
4859 reply_dumpers[req]( reply );
4860 fprintf( stderr, " }" );
4862 fputc( '\n', stderr );
4864 else fprintf( stderr, "%04x: %d() = %s\n",
4865 current->id, req, get_status_name(current->error) );