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