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
22 #include "wine/port.h"
27 #include <sys/types.h>
34 #define WIN32_NO_STATUS
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;
57 static void dump_uints( const int *ptr, int len )
62 fprintf( stderr, "%08x", *ptr++ );
63 if (--len) fputc( ',', stderr );
68 static void dump_timeout( const timeout_t *time )
70 fputs( get_timeout_str(*time), stderr );
73 static void dump_uint64( const unsigned __int64 *val )
75 if ((unsigned int)*val != *val)
76 fprintf( stderr, "%x%08x", (unsigned int)(*val >> 32), (unsigned int)*val );
78 fprintf( stderr, "%08x", (unsigned int)*val );
81 static void dump_rectangle( const rectangle_t *rect )
83 fprintf( stderr, "{%d,%d;%d,%d}",
84 rect->left, rect->top, rect->right, rect->bottom );
87 static void dump_char_info( const char_info_t *info )
89 fprintf( stderr, "{'" );
90 dump_strW( &info->ch, 1, stderr, "\'\'" );
91 fprintf( stderr, "',%04x}", info->attr );
94 static void dump_ioctl_code( const ioctl_code_t *code )
98 #define CASE(c) case c: fputs( #c, stderr ); break
99 CASE(FSCTL_DISMOUNT_VOLUME);
100 CASE(FSCTL_PIPE_DISCONNECT);
101 CASE(FSCTL_PIPE_LISTEN);
102 CASE(FSCTL_PIPE_WAIT);
103 default: fprintf( stderr, "%08x", *code ); break;
108 static void dump_apc_call( const apc_call_t *call )
110 fputc( '{', stderr );
114 fprintf( stderr, "APC_NONE" );
117 fprintf( stderr, "APC_USER,func=" );
118 dump_uint64( &call->user.func );
119 fprintf( stderr, ",args={" );
120 dump_uint64( &call->user.args[0] );
121 fputc( ',', stderr );
122 dump_uint64( &call->user.args[1] );
123 fputc( ',', stderr );
124 dump_uint64( &call->user.args[2] );
125 fputc( '}', stderr );
128 fprintf( stderr, "APC_TIMER,time=" );
129 dump_timeout( &call->timer.time );
130 fprintf( stderr, ",arg=" );
131 dump_uint64( &call->timer.arg );
134 fprintf( stderr, "APC_ASYNC_IO,func=" );
135 dump_uint64( &call->async_io.func );
136 fprintf( stderr, ",user=" );
137 dump_uint64( &call->async_io.user );
138 fprintf( stderr, ",sb=" );
139 dump_uint64( &call->async_io.sb );
140 fprintf( stderr, ",status=%s", get_status_name(call->async_io.status) );
142 case APC_VIRTUAL_ALLOC:
143 fprintf( stderr, "APC_VIRTUAL_ALLOC,addr==" );
144 dump_uint64( &call->virtual_alloc.addr );
145 fprintf( stderr, ",size=" );
146 dump_uint64( &call->virtual_alloc.size );
147 fprintf( stderr, ",zero_bits=%u,op_type=%x,prot=%x",
148 call->virtual_alloc.zero_bits, call->virtual_alloc.op_type,
149 call->virtual_alloc.prot );
151 case APC_VIRTUAL_FREE:
152 fprintf( stderr, "APC_VIRTUAL_FREE,addr=" );
153 dump_uint64( &call->virtual_free.addr );
154 fprintf( stderr, ",size=" );
155 dump_uint64( &call->virtual_free.size );
156 fprintf( stderr, ",op_type=%x", call->virtual_free.op_type );
158 case APC_VIRTUAL_QUERY:
159 fprintf( stderr, "APC_VIRTUAL_QUERY,addr=" );
160 dump_uint64( &call->virtual_query.addr );
162 case APC_VIRTUAL_PROTECT:
163 fprintf( stderr, "APC_VIRTUAL_PROTECT,addr=" );
164 dump_uint64( &call->virtual_protect.addr );
165 fprintf( stderr, ",size=" );
166 dump_uint64( &call->virtual_protect.size );
167 fprintf( stderr, ",prot=%x", call->virtual_protect.prot );
169 case APC_VIRTUAL_FLUSH:
170 fprintf( stderr, "APC_VIRTUAL_FLUSH,addr=" );
171 dump_uint64( &call->virtual_flush.addr );
172 fprintf( stderr, ",size=" );
173 dump_uint64( &call->virtual_flush.size );
175 case APC_VIRTUAL_LOCK:
176 fprintf( stderr, "APC_VIRTUAL_LOCK,addr=" );
177 dump_uint64( &call->virtual_lock.addr );
178 fprintf( stderr, ",size=" );
179 dump_uint64( &call->virtual_lock.size );
181 case APC_VIRTUAL_UNLOCK:
182 fprintf( stderr, "APC_VIRTUAL_UNLOCK,addr=" );
183 dump_uint64( &call->virtual_unlock.addr );
184 fprintf( stderr, ",size=" );
185 dump_uint64( &call->virtual_unlock.size );
188 fprintf( stderr, "APC_MAP_VIEW,handle=%04x,addr=", call->map_view.handle );
189 dump_uint64( &call->map_view.addr );
190 fprintf( stderr, ",size=" );
191 dump_uint64( &call->map_view.size );
192 fprintf( stderr, ",offset=" );
193 dump_uint64( &call->map_view.offset );
194 fprintf( stderr, ",zero_bits=%u,alloc_type=%x,prot=%x",
195 call->map_view.zero_bits, call->map_view.alloc_type, call->map_view.prot );
198 fprintf( stderr, "APC_UNMAP_VIEW,addr=" );
199 dump_uint64( &call->unmap_view.addr );
201 case APC_CREATE_THREAD:
202 fprintf( stderr, "APC_CREATE_THREAD,func=" );
203 dump_uint64( &call->create_thread.func );
204 fprintf( stderr, ",arg=" );
205 dump_uint64( &call->create_thread.arg );
206 fprintf( stderr, ",reserve=" );
207 dump_uint64( &call->create_thread.reserve );
208 fprintf( stderr, ",commit=" );
209 dump_uint64( &call->create_thread.commit );
210 fprintf( stderr, ",suspend=%u", call->create_thread.suspend );
213 fprintf( stderr, "type=%u", call->type );
216 fputc( '}', stderr );
219 static void dump_apc_result( const apc_result_t *result )
221 fputc( '{', stderr );
227 fprintf( stderr, "APC_ASYNC_IO,status=%s,total=%u,apc=",
228 get_status_name( result->async_io.status ), result->async_io.total );
229 dump_uint64( &result->async_io.apc );
231 case APC_VIRTUAL_ALLOC:
232 fprintf( stderr, "APC_VIRTUAL_ALLOC,status=%s,addr=",
233 get_status_name( result->virtual_alloc.status ));
234 dump_uint64( &result->virtual_alloc.addr );
235 fprintf( stderr, ",size=" );
236 dump_uint64( &result->virtual_alloc.size );
238 case APC_VIRTUAL_FREE:
239 fprintf( stderr, "APC_VIRTUAL_FREE,status=%s,addr=",
240 get_status_name( result->virtual_free.status ));
241 dump_uint64( &result->virtual_free.addr );
242 fprintf( stderr, ",size=" );
243 dump_uint64( &result->virtual_free.size );
245 case APC_VIRTUAL_QUERY:
246 fprintf( stderr, "APC_VIRTUAL_QUERY,status=%s,base=",
247 get_status_name( result->virtual_query.status ));
248 dump_uint64( &result->virtual_query.base );
249 fprintf( stderr, ",alloc_base=" );
250 dump_uint64( &result->virtual_query.alloc_base );
251 fprintf( stderr, ",size=" );
252 dump_uint64( &result->virtual_query.size );
253 fprintf( stderr, ",state=%x,prot=%x,alloc_prot=%x,alloc_type=%x",
254 result->virtual_query.state, result->virtual_query.prot,
255 result->virtual_query.alloc_prot, result->virtual_query.alloc_type );
257 case APC_VIRTUAL_PROTECT:
258 fprintf( stderr, "APC_VIRTUAL_PROTECT,status=%s,addr=",
259 get_status_name( result->virtual_protect.status ));
260 dump_uint64( &result->virtual_protect.addr );
261 fprintf( stderr, ",size=" );
262 dump_uint64( &result->virtual_protect.size );
263 fprintf( stderr, ",prot=%x", result->virtual_protect.prot );
265 case APC_VIRTUAL_FLUSH:
266 fprintf( stderr, "APC_VIRTUAL_FLUSH,status=%s,addr=",
267 get_status_name( result->virtual_flush.status ));
268 dump_uint64( &result->virtual_flush.addr );
269 fprintf( stderr, ",size=" );
270 dump_uint64( &result->virtual_flush.size );
272 case APC_VIRTUAL_LOCK:
273 fprintf( stderr, "APC_VIRTUAL_LOCK,status=%s,addr=",
274 get_status_name( result->virtual_lock.status ));
275 dump_uint64( &result->virtual_lock.addr );
276 fprintf( stderr, ",size=" );
277 dump_uint64( &result->virtual_lock.size );
279 case APC_VIRTUAL_UNLOCK:
280 fprintf( stderr, "APC_VIRTUAL_UNLOCK,status=%s,addr=",
281 get_status_name( result->virtual_unlock.status ));
282 dump_uint64( &result->virtual_unlock.addr );
283 fprintf( stderr, ",size=" );
284 dump_uint64( &result->virtual_unlock.size );
287 fprintf( stderr, "APC_MAP_VIEW,status=%s,addr=",
288 get_status_name( result->map_view.status ));
289 dump_uint64( &result->map_view.addr );
290 fprintf( stderr, ",size=" );
291 dump_uint64( &result->map_view.size );
294 fprintf( stderr, "APC_UNMAP_VIEW,status=%s",
295 get_status_name( result->unmap_view.status ) );
297 case APC_CREATE_THREAD:
298 fprintf( stderr, "APC_CREATE_THREAD,status=%s,tid=%04x,handle=%04x",
299 get_status_name( result->create_thread.status ),
300 result->create_thread.tid, result->create_thread.handle );
303 fprintf( stderr, "type=%u", result->type );
306 fputc( '}', stderr );
309 static void dump_async_data( const async_data_t *data )
311 fprintf( stderr, "{handle=%04x,event=%04x,callback=", data->handle, data->event );
312 dump_uint64( &data->callback );
313 fprintf( stderr, ",iosb=" );
314 dump_uint64( &data->iosb );
315 fprintf( stderr, ",arg=" );
316 dump_uint64( &data->arg );
317 fprintf( stderr, ",cvalue=" );
318 dump_uint64( &data->cvalue );
319 fputc( '}', stderr );
322 static void dump_luid( const luid_t *luid )
324 fprintf( stderr, "%d.%u", luid->high_part, luid->low_part );
327 static void dump_context( const CONTEXT *context, data_size_t size )
331 memset( &ctx, 0, sizeof(ctx) );
332 memcpy( &ctx, context, min( size, sizeof(CONTEXT) ));
334 fprintf( stderr, "{flags=%08x,eax=%08x,ebx=%08x,ecx=%08x,edx=%08x,esi=%08x,edi=%08x,"
335 "ebp=%08x,eip=%08x,esp=%08x,eflags=%08x,cs=%04x,ds=%04x,es=%04x,"
336 "fs=%04x,gs=%04x,dr0=%08x,dr1=%08x,dr2=%08x,dr3=%08x,dr6=%08x,dr7=%08x,",
337 ctx.ContextFlags, ctx.Eax, ctx.Ebx, ctx.Ecx, ctx.Edx,
338 ctx.Esi, ctx.Edi, ctx.Ebp, ctx.Eip, ctx.Esp, ctx.EFlags,
339 ctx.SegCs, ctx.SegDs, ctx.SegEs, ctx.SegFs, ctx.SegGs,
340 ctx.Dr0, ctx.Dr1, ctx.Dr2, ctx.Dr3, ctx.Dr6, ctx.Dr7 );
341 fprintf( stderr, "float=" );
342 dump_uints( (const int *)&ctx.FloatSave, sizeof(ctx.FloatSave) / sizeof(int) );
343 if (size > FIELD_OFFSET( CONTEXT, ExtendedRegisters ))
345 fprintf( stderr, ",extended=" );
346 dump_uints( (const int *)&ctx.ExtendedRegisters, sizeof(ctx.ExtendedRegisters) / sizeof(int) );
348 fprintf( stderr, "}" );
350 dump_uints( (const int *)&ctx, sizeof(ctx) / sizeof(int) );
354 static void dump_varargs_ints( data_size_t size )
356 const int *data = cur_data;
357 data_size_t len = size / sizeof(*data);
359 fputc( '{', stderr );
362 fprintf( stderr, "%d", *data++ );
363 if (--len) fputc( ',', stderr );
365 fputc( '}', stderr );
369 static void dump_varargs_uints64( data_size_t size )
371 const unsigned __int64 *data = cur_data;
372 data_size_t len = size / sizeof(*data);
374 fputc( '{', stderr );
377 dump_uint64( data++ );
378 if (--len) fputc( ',', stderr );
380 fputc( '}', stderr );
384 static void dump_varargs_apc_result( data_size_t size )
386 const apc_result_t *result = cur_data;
388 if (size >= sizeof(*result))
390 dump_apc_result( result );
391 size = sizeof(*result);
396 static void dump_varargs_handles( data_size_t size )
398 const obj_handle_t *data = cur_data;
399 data_size_t len = size / sizeof(*data);
401 fputc( '{', stderr );
404 fprintf( stderr, "%04x", *data++ );
405 if (--len) fputc( ',', stderr );
407 fputc( '}', stderr );
411 static void dump_varargs_user_handles( data_size_t size )
413 const user_handle_t *data = cur_data;
414 data_size_t len = size / sizeof(*data);
416 fputc( '{', stderr );
419 fprintf( stderr, "%08x", *data++ );
420 if (--len) fputc( ',', stderr );
422 fputc( '}', stderr );
426 static void dump_varargs_bytes( data_size_t size )
428 const unsigned char *data = cur_data;
429 data_size_t len = size;
431 fputc( '{', stderr );
434 fprintf( stderr, "%02x", *data++ );
435 if (--len) fputc( ',', stderr );
437 fputc( '}', stderr );
441 static void dump_varargs_string( data_size_t size )
443 fprintf( stderr, "\"%.*s\"", (int)size, (const char *)cur_data );
447 static void dump_varargs_unicode_str( data_size_t size )
449 fprintf( stderr, "L\"" );
450 dump_strW( cur_data, size / sizeof(WCHAR), stderr, "\"\"" );
451 fputc( '\"', stderr );
455 static void dump_varargs_context( data_size_t size )
459 fprintf( stderr, "{}" );
462 dump_context( cur_data, size );
463 remove_data( min( size, sizeof(CONTEXT) ));
466 static void dump_varargs_debug_event( data_size_t size )
473 fprintf( stderr, "{}" );
476 size = min( size, sizeof(event) );
477 memset( &event, 0, sizeof(event) );
478 memcpy( &event, cur_data, size );
482 case EXCEPTION_DEBUG_EVENT:
483 fprintf( stderr, "{exception,first=%d,exc_code=%08x,flags=%08x,record=",
484 event.exception.first, event.exception.exc_code, event.exception.flags );
485 dump_uint64( &event.exception.record );
486 fprintf( stderr, ",address=" );
487 dump_uint64( &event.exception.address );
488 fprintf( stderr, ",params={" );
489 event.exception.nb_params = min( event.exception.nb_params, EXCEPTION_MAXIMUM_PARAMETERS );
490 for (i = 0; i < event.exception.nb_params; i++)
492 dump_uint64( &event.exception.params[i] );
493 if (i < event.exception.nb_params) fputc( ',', stderr );
495 fprintf( stderr, "}}" );
497 case CREATE_THREAD_DEBUG_EVENT:
498 fprintf( stderr, "{create_thread,thread=%04x,teb=", event.create_thread.handle );
499 dump_uint64( &event.create_thread.teb );
500 fprintf( stderr, ",start=" );
501 dump_uint64( &event.create_thread.start );
502 fputc( '}', stderr );
504 case CREATE_PROCESS_DEBUG_EVENT:
505 fprintf( stderr, "{create_process,file=%04x,process=%04x,thread=%04x,base=",
506 event.create_process.file, event.create_process.process,
507 event.create_process.thread );
508 dump_uint64( &event.create_process.base );
509 fprintf( stderr, ",offset=%d,size=%d,teb=",
510 event.create_process.dbg_offset, event.create_process.dbg_size );
511 dump_uint64( &event.create_process.teb );
512 fprintf( stderr, ",start=" );
513 dump_uint64( &event.create_process.start );
514 fprintf( stderr, ",name=" );
515 dump_uint64( &event.create_process.name );
516 fprintf( stderr, ",unicode=%d}", event.create_process.unicode );
518 case EXIT_THREAD_DEBUG_EVENT:
519 fprintf( stderr, "{exit_thread,code=%d}", event.exit.exit_code );
521 case EXIT_PROCESS_DEBUG_EVENT:
522 fprintf( stderr, "{exit_process,code=%d}", event.exit.exit_code );
524 case LOAD_DLL_DEBUG_EVENT:
525 fprintf( stderr, "{load_dll,file=%04x,base", event.load_dll.handle );
526 dump_uint64( &event.load_dll.base );
527 fprintf( stderr, ",offset=%d,size=%d,name=",
528 event.load_dll.dbg_offset, event.load_dll.dbg_size );
529 dump_uint64( &event.load_dll.name );
530 fprintf( stderr, ",unicode=%d}", event.load_dll.unicode );
532 case UNLOAD_DLL_DEBUG_EVENT:
533 fputs( "{unload_dll,base=", stderr );
534 dump_uint64( &event.unload_dll.base );
535 fputc( '}', stderr );
537 case OUTPUT_DEBUG_STRING_EVENT:
538 fprintf( stderr, "{output_string,string=" );
539 dump_uint64( &event.output_string.string );
540 fprintf( stderr, ",unicode=%d,len=%u}",
541 event.output_string.unicode, event.output_string.length );
544 fprintf( stderr, "{rip,err=%d,type=%d}",
545 event.rip_info.error, event.rip_info.type );
547 case 0: /* zero is the code returned on timeouts */
548 fprintf( stderr, "{}" );
551 fprintf( stderr, "{code=??? (%d)}", event.code );
557 /* dump a unicode string contained in a buffer; helper for dump_varargs_startup_info */
558 static void dump_inline_unicode_string( const UNICODE_STRING *str, const void *data, data_size_t size )
560 size_t length = str->Length;
561 size_t offset = (size_t)str->Buffer;
563 if (offset >= size) return;
564 if (offset + length > size) length = size - offset;
565 dump_strW( (const WCHAR *)data + offset/sizeof(WCHAR), length/sizeof(WCHAR), stderr, "\"\"" );
568 static void dump_varargs_startup_info( data_size_t size )
570 const RTL_USER_PROCESS_PARAMETERS *ptr = cur_data;
571 RTL_USER_PROCESS_PARAMETERS params;
573 if (size < sizeof(params.Size))
575 fprintf( stderr, "{}" );
578 if (size > ptr->Size) size = ptr->Size;
579 memset( ¶ms, 0, sizeof(params) );
580 memcpy( ¶ms, ptr, min( size, sizeof(params) ));
582 fprintf( stderr, "{AllocationSize=%x,", params.AllocationSize );
583 fprintf( stderr, "Size=%x,", params.Size );
584 fprintf( stderr, "Flags=%x,", params.Flags );
585 fprintf( stderr, "DebugFlags=%x,", params.DebugFlags );
586 fprintf( stderr, "ConsoleHandle=%p,", params.ConsoleHandle );
587 fprintf( stderr, "ConsoleFlags=%x,", params.ConsoleFlags );
588 fprintf( stderr, "hStdInput=%p,", params.hStdInput );
589 fprintf( stderr, "hStdOutput=%p,", params.hStdOutput );
590 fprintf( stderr, "hStdError=%p,", params.hStdError );
591 fprintf( stderr, "CurrentDirectory.Handle=%p,", params.CurrentDirectory.Handle );
592 fprintf( stderr, "dwX=%d,", params.dwX );
593 fprintf( stderr, "dwY=%d,", params.dwY );
594 fprintf( stderr, "dwXSize=%d,", params.dwXSize );
595 fprintf( stderr, "dwYSize=%d,", params.dwYSize );
596 fprintf( stderr, "dwXCountChars=%d,", params.dwXCountChars );
597 fprintf( stderr, "dwYCountChars=%d,", params.dwYCountChars );
598 fprintf( stderr, "dwFillAttribute=%x,", params.dwFillAttribute );
599 fprintf( stderr, "dwFlags=%x,", params.dwFlags );
600 fprintf( stderr, "wShowWindow=%x,", params.wShowWindow );
601 fprintf( stderr, "CurrentDirectory.DosPath=L\"" );
602 dump_inline_unicode_string( ¶ms.CurrentDirectory.DosPath, cur_data, size );
603 fprintf( stderr, "\",DllPath=L\"" );
604 dump_inline_unicode_string( ¶ms.DllPath, cur_data, size );
605 fprintf( stderr, "\",ImagePathName=L\"" );
606 dump_inline_unicode_string( ¶ms.ImagePathName, cur_data, size );
607 fprintf( stderr, "\",CommandLine=L\"" );
608 dump_inline_unicode_string( ¶ms.CommandLine, cur_data, size );
609 fprintf( stderr, "\",WindowTitle=L\"" );
610 dump_inline_unicode_string( ¶ms.WindowTitle, cur_data, size );
611 fprintf( stderr, "\",Desktop=L\"" );
612 dump_inline_unicode_string( ¶ms.Desktop, cur_data, size );
613 fprintf( stderr, "\",ShellInfo=L\"" );
614 dump_inline_unicode_string( ¶ms.ShellInfo, cur_data, size );
615 fprintf( stderr, "\",RuntimeInfo=L\"" );
616 dump_inline_unicode_string( ¶ms.RuntimeInfo, cur_data, size );
617 fprintf( stderr, "\"}" );
621 static void dump_varargs_input_records( data_size_t size )
623 const INPUT_RECORD *rec = cur_data;
624 data_size_t len = size / sizeof(*rec);
626 fputc( '{', stderr );
629 fprintf( stderr, "{%04x,...}", rec->EventType );
631 if (--len) fputc( ',', stderr );
633 fputc( '}', stderr );
637 static void dump_varargs_rectangles( data_size_t size )
639 const rectangle_t *rect = cur_data;
640 data_size_t len = size / sizeof(*rect);
642 fputc( '{', stderr );
645 dump_rectangle( rect++ );
646 if (--len) fputc( ',', stderr );
648 fputc( '}', stderr );
652 static void dump_varargs_message_data( data_size_t size )
654 /* FIXME: dump the structured data */
655 dump_varargs_bytes( size );
658 static void dump_varargs_properties( data_size_t size )
660 const property_data_t *prop = cur_data;
661 data_size_t len = size / sizeof(*prop);
663 fputc( '{', stderr );
666 fprintf( stderr, "{atom=%04x,str=%d,data=", prop->atom, prop->string );
667 dump_uint64( &prop->data );
668 fputc( '}', stderr );
670 if (--len) fputc( ',', stderr );
672 fputc( '}', stderr );
676 static void dump_varargs_LUID_AND_ATTRIBUTES( data_size_t size )
678 const LUID_AND_ATTRIBUTES *lat = cur_data;
679 data_size_t len = size / sizeof(*lat);
681 fputc( '{', stderr );
684 fprintf( stderr, "{luid=%08x%08x,attr=%x}",
685 lat->Luid.HighPart, lat->Luid.LowPart, lat->Attributes );
687 if (--len) fputc( ',', stderr );
689 fputc( '}', stderr );
693 static void dump_inline_sid( const SID *sid, data_size_t size )
698 if ((FIELD_OFFSET(SID, SubAuthority[0]) > size) ||
699 (FIELD_OFFSET(SID, SubAuthority[sid->SubAuthorityCount]) > size))
701 fprintf( stderr, "<invalid sid>" );
705 fputc( '{', stderr );
706 fprintf( stderr, "S-%u-%u", sid->Revision, MAKELONG(
707 MAKEWORD( sid->IdentifierAuthority.Value[5],
708 sid->IdentifierAuthority.Value[4] ),
709 MAKEWORD( sid->IdentifierAuthority.Value[3],
710 sid->IdentifierAuthority.Value[2] ) ) );
711 for (i = 0; i < sid->SubAuthorityCount; i++)
712 fprintf( stderr, "-%u", sid->SubAuthority[i] );
713 fputc( '}', stderr );
716 static void dump_varargs_SID( data_size_t size )
718 const SID *sid = cur_data;
719 dump_inline_sid( sid, size );
723 static void dump_inline_acl( const ACL *acl, data_size_t size )
725 const ACE_HEADER *ace;
727 fputc( '{', stderr );
731 if (size < sizeof(ACL))
733 fprintf( stderr, "<invalid acl>}\n" );
737 ace = (const ACE_HEADER *)(acl + 1);
738 for (i = 0; i < acl->AceCount; i++)
740 const SID *sid = NULL;
741 data_size_t sid_size = 0;
743 if (size < sizeof(ACE_HEADER))
745 if (size < ace->AceSize)
747 size -= ace->AceSize;
748 if (i != 0) fputc( ',', stderr );
749 fprintf( stderr, "{AceType=" );
750 switch (ace->AceType)
752 case ACCESS_DENIED_ACE_TYPE:
753 sid = (const SID *)&((const ACCESS_DENIED_ACE *)ace)->SidStart;
754 sid_size = ace->AceSize - FIELD_OFFSET(ACCESS_DENIED_ACE, SidStart);
755 fprintf( stderr, "ACCESS_DENIED_ACE_TYPE,Mask=%x",
756 ((const ACCESS_DENIED_ACE *)ace)->Mask );
758 case ACCESS_ALLOWED_ACE_TYPE:
759 sid = (const SID *)&((const ACCESS_ALLOWED_ACE *)ace)->SidStart;
760 sid_size = ace->AceSize - FIELD_OFFSET(ACCESS_ALLOWED_ACE, SidStart);
761 fprintf( stderr, "ACCESS_ALLOWED_ACE_TYPE,Mask=%x",
762 ((const ACCESS_ALLOWED_ACE *)ace)->Mask );
764 case SYSTEM_AUDIT_ACE_TYPE:
765 sid = (const SID *)&((const SYSTEM_AUDIT_ACE *)ace)->SidStart;
766 sid_size = ace->AceSize - FIELD_OFFSET(SYSTEM_AUDIT_ACE, SidStart);
767 fprintf( stderr, "SYSTEM_AUDIT_ACE_TYPE,Mask=%x",
768 ((const SYSTEM_AUDIT_ACE *)ace)->Mask );
770 case SYSTEM_ALARM_ACE_TYPE:
771 sid = (const SID *)&((const SYSTEM_ALARM_ACE *)ace)->SidStart;
772 sid_size = ace->AceSize - FIELD_OFFSET(SYSTEM_ALARM_ACE, SidStart);
773 fprintf( stderr, "SYSTEM_ALARM_ACE_TYPE,Mask=%x",
774 ((const SYSTEM_ALARM_ACE *)ace)->Mask );
777 fprintf( stderr, "unknown<%d>", ace->AceType );
780 fprintf( stderr, ",AceFlags=%x,Sid=", ace->AceFlags );
782 dump_inline_sid( sid, sid_size );
783 ace = (const ACE_HEADER *)((const char *)ace + ace->AceSize);
784 fputc( '}', stderr );
787 fputc( '}', stderr );
790 static void dump_inline_security_descriptor( const struct security_descriptor *sd, data_size_t size )
792 fputc( '{', stderr );
793 if (size >= sizeof(struct security_descriptor))
795 size_t offset = sizeof(struct security_descriptor);
796 fprintf( stderr, "control=%08x", sd->control );
797 fprintf( stderr, ",owner=" );
798 if ((sd->owner_len > FIELD_OFFSET(SID, SubAuthority[255])) || (offset + sd->owner_len > size))
801 dump_inline_sid( (const SID *)((const char *)sd + offset), sd->owner_len );
803 fprintf( stderr, "<not present>" );
804 offset += sd->owner_len;
805 fprintf( stderr, ",group=" );
806 if ((sd->group_len > FIELD_OFFSET(SID, SubAuthority[255])) || (offset + sd->group_len > size))
809 dump_inline_sid( (const SID *)((const char *)sd + offset), sd->group_len );
811 fprintf( stderr, "<not present>" );
812 offset += sd->group_len;
813 fprintf( stderr, ",sacl=" );
814 if ((sd->sacl_len >= MAX_ACL_LEN) || (offset + sd->sacl_len > size))
816 dump_inline_acl( (const ACL *)((const char *)sd + offset), sd->sacl_len );
817 offset += sd->sacl_len;
818 fprintf( stderr, ",dacl=" );
819 if ((sd->dacl_len >= MAX_ACL_LEN) || (offset + sd->dacl_len > size))
821 dump_inline_acl( (const ACL *)((const char *)sd + offset), sd->dacl_len );
822 offset += sd->dacl_len;
824 fputc( '}', stderr );
827 static void dump_varargs_security_descriptor( data_size_t size )
829 const struct security_descriptor *sd = cur_data;
830 dump_inline_security_descriptor( sd, size );
834 static void dump_varargs_token_groups( data_size_t size )
836 const struct token_groups *tg = cur_data;
837 fputc( '{', stderr );
838 if (size >= sizeof(struct token_groups))
840 size_t offset = sizeof(*tg);
841 fprintf( stderr, "count=%08x,", tg->count );
842 if (tg->count * sizeof(unsigned int) <= size)
845 const unsigned int *attr = (const unsigned int *)(tg + 1);
847 offset += tg->count * sizeof(unsigned int);
849 fputc( '[', stderr );
850 for (i = 0; i < tg->count; i++)
852 const SID *sid = (const SID *)((const char *)cur_data + offset);
854 fputc( ',', stderr );
855 fputc( '{', stderr );
856 fprintf( stderr, "attributes=%08x", attr[i] );
857 fprintf( stderr, ",sid=" );
858 dump_inline_sid( sid, size - offset );
859 if ((offset + FIELD_OFFSET(SID, SubAuthority[0]) > size) ||
860 (offset + FIELD_OFFSET(SID, SubAuthority[sid->SubAuthorityCount]) > size))
862 offset += FIELD_OFFSET(SID, SubAuthority[sid->SubAuthorityCount]);
863 fputc( '}', stderr );
865 fputc( ']', stderr );
868 fputc( '}', stderr );
871 static void dump_varargs_object_attributes( data_size_t size )
873 const struct object_attributes *objattr = cur_data;
874 fputc( '{', stderr );
875 if (size >= sizeof(struct object_attributes))
878 fprintf( stderr, "rootdir=%04x,sd=", objattr->rootdir );
879 if (objattr->sd_len > size - sizeof(*objattr) ||
880 objattr->name_len > size - sizeof(*objattr) - objattr->sd_len)
882 dump_inline_security_descriptor( (const struct security_descriptor *)(objattr + 1), objattr->sd_len );
883 str = (const WCHAR *)objattr + (sizeof(*objattr) + objattr->sd_len) / sizeof(WCHAR);
884 fprintf( stderr, ",name=L\"" );
885 dump_strW( str, objattr->name_len / sizeof(WCHAR), stderr, "\"\"" );
886 fputc( '\"', stderr );
887 remove_data( ((sizeof(*objattr) + objattr->sd_len) / sizeof(WCHAR)) * sizeof(WCHAR) +
890 fputc( '}', stderr );
893 typedef void (*dump_func)( const void *req );
895 /* Everything below this line is generated automatically by tools/make_requests */
896 /* ### make_requests begin ### */
898 static void dump_new_process_request( const struct new_process_request *req )
900 fprintf( stderr, " inherit_all=%d,", req->inherit_all );
901 fprintf( stderr, " create_flags=%08x,", req->create_flags );
902 fprintf( stderr, " socket_fd=%d,", req->socket_fd );
903 fprintf( stderr, " exe_file=%04x,", req->exe_file );
904 fprintf( stderr, " hstdin=%04x,", req->hstdin );
905 fprintf( stderr, " hstdout=%04x,", req->hstdout );
906 fprintf( stderr, " hstderr=%04x,", req->hstderr );
907 fprintf( stderr, " process_access=%08x,", req->process_access );
908 fprintf( stderr, " process_attr=%08x,", req->process_attr );
909 fprintf( stderr, " thread_access=%08x,", req->thread_access );
910 fprintf( stderr, " thread_attr=%08x,", req->thread_attr );
911 fprintf( stderr, " info=" );
912 dump_varargs_startup_info( cur_size );
913 fputc( ',', stderr );
914 fprintf( stderr, " env=" );
915 dump_varargs_unicode_str( cur_size );
918 static void dump_new_process_reply( const struct new_process_reply *req )
920 fprintf( stderr, " info=%04x,", req->info );
921 fprintf( stderr, " pid=%04x,", req->pid );
922 fprintf( stderr, " phandle=%04x,", req->phandle );
923 fprintf( stderr, " tid=%04x,", req->tid );
924 fprintf( stderr, " thandle=%04x", req->thandle );
927 static void dump_get_new_process_info_request( const struct get_new_process_info_request *req )
929 fprintf( stderr, " info=%04x", req->info );
932 static void dump_get_new_process_info_reply( const struct get_new_process_info_reply *req )
934 fprintf( stderr, " success=%d,", req->success );
935 fprintf( stderr, " exit_code=%d", req->exit_code );
938 static void dump_new_thread_request( const struct new_thread_request *req )
940 fprintf( stderr, " access=%08x,", req->access );
941 fprintf( stderr, " attributes=%08x,", req->attributes );
942 fprintf( stderr, " suspend=%d,", req->suspend );
943 fprintf( stderr, " request_fd=%d", req->request_fd );
946 static void dump_new_thread_reply( const struct new_thread_reply *req )
948 fprintf( stderr, " tid=%04x,", req->tid );
949 fprintf( stderr, " handle=%04x", req->handle );
952 static void dump_get_startup_info_request( const struct get_startup_info_request *req )
956 static void dump_get_startup_info_reply( const struct get_startup_info_reply *req )
958 fprintf( stderr, " exe_file=%04x,", req->exe_file );
959 fprintf( stderr, " hstdin=%04x,", req->hstdin );
960 fprintf( stderr, " hstdout=%04x,", req->hstdout );
961 fprintf( stderr, " hstderr=%04x,", req->hstderr );
962 fprintf( stderr, " info=" );
963 dump_varargs_startup_info( cur_size );
964 fputc( ',', stderr );
965 fprintf( stderr, " env=" );
966 dump_varargs_unicode_str( cur_size );
969 static void dump_init_process_done_request( const struct init_process_done_request *req )
971 fprintf( stderr, " gui=%d,", req->gui );
972 fprintf( stderr, " module=" );
973 dump_uint64( &req->module );
974 fprintf( stderr, "," );
975 fprintf( stderr, " ldt_copy=" );
976 dump_uint64( &req->ldt_copy );
977 fprintf( stderr, "," );
978 fprintf( stderr, " entry=" );
979 dump_uint64( &req->entry );
982 static void dump_init_thread_request( const struct init_thread_request *req )
984 fprintf( stderr, " unix_pid=%d,", req->unix_pid );
985 fprintf( stderr, " unix_tid=%d,", req->unix_tid );
986 fprintf( stderr, " debug_level=%d,", req->debug_level );
987 fprintf( stderr, " teb=" );
988 dump_uint64( &req->teb );
989 fprintf( stderr, "," );
990 fprintf( stderr, " entry=" );
991 dump_uint64( &req->entry );
992 fprintf( stderr, "," );
993 fprintf( stderr, " reply_fd=%d,", req->reply_fd );
994 fprintf( stderr, " wait_fd=%d,", req->wait_fd );
995 fprintf( stderr, " peb=" );
996 dump_uint64( &req->peb );
999 static void dump_init_thread_reply( const struct init_thread_reply *req )
1001 fprintf( stderr, " pid=%04x,", req->pid );
1002 fprintf( stderr, " tid=%04x,", req->tid );
1003 fprintf( stderr, " server_start=" );
1004 dump_timeout( &req->server_start );
1005 fprintf( stderr, "," );
1006 fprintf( stderr, " info_size=%u,", req->info_size );
1007 fprintf( stderr, " version=%d", req->version );
1010 static void dump_terminate_process_request( const struct terminate_process_request *req )
1012 fprintf( stderr, " handle=%04x,", req->handle );
1013 fprintf( stderr, " exit_code=%d", req->exit_code );
1016 static void dump_terminate_process_reply( const struct terminate_process_reply *req )
1018 fprintf( stderr, " self=%d", req->self );
1021 static void dump_terminate_thread_request( const struct terminate_thread_request *req )
1023 fprintf( stderr, " handle=%04x,", req->handle );
1024 fprintf( stderr, " exit_code=%d", req->exit_code );
1027 static void dump_terminate_thread_reply( const struct terminate_thread_reply *req )
1029 fprintf( stderr, " self=%d,", req->self );
1030 fprintf( stderr, " last=%d", req->last );
1033 static void dump_get_process_info_request( const struct get_process_info_request *req )
1035 fprintf( stderr, " handle=%04x", req->handle );
1038 static void dump_get_process_info_reply( const struct get_process_info_reply *req )
1040 fprintf( stderr, " pid=%04x,", req->pid );
1041 fprintf( stderr, " ppid=%04x,", req->ppid );
1042 fprintf( stderr, " affinity=" );
1043 dump_uint64( &req->affinity );
1044 fprintf( stderr, "," );
1045 fprintf( stderr, " peb=" );
1046 dump_uint64( &req->peb );
1047 fprintf( stderr, "," );
1048 fprintf( stderr, " start_time=" );
1049 dump_timeout( &req->start_time );
1050 fprintf( stderr, "," );
1051 fprintf( stderr, " end_time=" );
1052 dump_timeout( &req->end_time );
1053 fprintf( stderr, "," );
1054 fprintf( stderr, " exit_code=%d,", req->exit_code );
1055 fprintf( stderr, " priority=%d", req->priority );
1058 static void dump_set_process_info_request( const struct set_process_info_request *req )
1060 fprintf( stderr, " handle=%04x,", req->handle );
1061 fprintf( stderr, " mask=%d,", req->mask );
1062 fprintf( stderr, " priority=%d,", req->priority );
1063 fprintf( stderr, " affinity=" );
1064 dump_uint64( &req->affinity );
1067 static void dump_get_thread_info_request( const struct get_thread_info_request *req )
1069 fprintf( stderr, " handle=%04x,", req->handle );
1070 fprintf( stderr, " tid_in=%04x", req->tid_in );
1073 static void dump_get_thread_info_reply( const struct get_thread_info_reply *req )
1075 fprintf( stderr, " pid=%04x,", req->pid );
1076 fprintf( stderr, " tid=%04x,", req->tid );
1077 fprintf( stderr, " teb=" );
1078 dump_uint64( &req->teb );
1079 fprintf( stderr, "," );
1080 fprintf( stderr, " affinity=" );
1081 dump_uint64( &req->affinity );
1082 fprintf( stderr, "," );
1083 fprintf( stderr, " creation_time=" );
1084 dump_timeout( &req->creation_time );
1085 fprintf( stderr, "," );
1086 fprintf( stderr, " exit_time=" );
1087 dump_timeout( &req->exit_time );
1088 fprintf( stderr, "," );
1089 fprintf( stderr, " exit_code=%d,", req->exit_code );
1090 fprintf( stderr, " priority=%d,", req->priority );
1091 fprintf( stderr, " last=%d", req->last );
1094 static void dump_set_thread_info_request( const struct set_thread_info_request *req )
1096 fprintf( stderr, " handle=%04x,", req->handle );
1097 fprintf( stderr, " mask=%d,", req->mask );
1098 fprintf( stderr, " priority=%d,", req->priority );
1099 fprintf( stderr, " affinity=" );
1100 dump_uint64( &req->affinity );
1101 fprintf( stderr, "," );
1102 fprintf( stderr, " token=%04x", req->token );
1105 static void dump_get_dll_info_request( const struct get_dll_info_request *req )
1107 fprintf( stderr, " handle=%04x,", req->handle );
1108 fprintf( stderr, " base_address=" );
1109 dump_uint64( &req->base_address );
1112 static void dump_get_dll_info_reply( const struct get_dll_info_reply *req )
1114 fprintf( stderr, " entry_point=" );
1115 dump_uint64( &req->entry_point );
1116 fprintf( stderr, "," );
1117 fprintf( stderr, " size=%u,", req->size );
1118 fprintf( stderr, " filename_len=%u,", req->filename_len );
1119 fprintf( stderr, " filename=" );
1120 dump_varargs_unicode_str( cur_size );
1123 static void dump_suspend_thread_request( const struct suspend_thread_request *req )
1125 fprintf( stderr, " handle=%04x", req->handle );
1128 static void dump_suspend_thread_reply( const struct suspend_thread_reply *req )
1130 fprintf( stderr, " count=%d", req->count );
1133 static void dump_resume_thread_request( const struct resume_thread_request *req )
1135 fprintf( stderr, " handle=%04x", req->handle );
1138 static void dump_resume_thread_reply( const struct resume_thread_reply *req )
1140 fprintf( stderr, " count=%d", req->count );
1143 static void dump_load_dll_request( const struct load_dll_request *req )
1145 fprintf( stderr, " handle=%04x,", req->handle );
1146 fprintf( stderr, " base=" );
1147 dump_uint64( &req->base );
1148 fprintf( stderr, "," );
1149 fprintf( stderr, " name=" );
1150 dump_uint64( &req->name );
1151 fprintf( stderr, "," );
1152 fprintf( stderr, " size=%u,", req->size );
1153 fprintf( stderr, " dbg_offset=%d,", req->dbg_offset );
1154 fprintf( stderr, " dbg_size=%d,", req->dbg_size );
1155 fprintf( stderr, " filename=" );
1156 dump_varargs_unicode_str( cur_size );
1159 static void dump_unload_dll_request( const struct unload_dll_request *req )
1161 fprintf( stderr, " base=" );
1162 dump_uint64( &req->base );
1165 static void dump_queue_apc_request( const struct queue_apc_request *req )
1167 fprintf( stderr, " handle=%04x,", req->handle );
1168 fprintf( stderr, " call=" );
1169 dump_apc_call( &req->call );
1172 static void dump_queue_apc_reply( const struct queue_apc_reply *req )
1174 fprintf( stderr, " handle=%04x,", req->handle );
1175 fprintf( stderr, " self=%d", req->self );
1178 static void dump_get_apc_result_request( const struct get_apc_result_request *req )
1180 fprintf( stderr, " handle=%04x", req->handle );
1183 static void dump_get_apc_result_reply( const struct get_apc_result_reply *req )
1185 fprintf( stderr, " result=" );
1186 dump_apc_result( &req->result );
1189 static void dump_close_handle_request( const struct close_handle_request *req )
1191 fprintf( stderr, " handle=%04x", req->handle );
1194 static void dump_set_handle_info_request( const struct set_handle_info_request *req )
1196 fprintf( stderr, " handle=%04x,", req->handle );
1197 fprintf( stderr, " flags=%d,", req->flags );
1198 fprintf( stderr, " mask=%d", req->mask );
1201 static void dump_set_handle_info_reply( const struct set_handle_info_reply *req )
1203 fprintf( stderr, " old_flags=%d", req->old_flags );
1206 static void dump_dup_handle_request( const struct dup_handle_request *req )
1208 fprintf( stderr, " src_process=%04x,", req->src_process );
1209 fprintf( stderr, " src_handle=%04x,", req->src_handle );
1210 fprintf( stderr, " dst_process=%04x,", req->dst_process );
1211 fprintf( stderr, " access=%08x,", req->access );
1212 fprintf( stderr, " attributes=%08x,", req->attributes );
1213 fprintf( stderr, " options=%08x", req->options );
1216 static void dump_dup_handle_reply( const struct dup_handle_reply *req )
1218 fprintf( stderr, " handle=%04x,", req->handle );
1219 fprintf( stderr, " self=%d,", req->self );
1220 fprintf( stderr, " closed=%d", req->closed );
1223 static void dump_open_process_request( const struct open_process_request *req )
1225 fprintf( stderr, " pid=%04x,", req->pid );
1226 fprintf( stderr, " access=%08x,", req->access );
1227 fprintf( stderr, " attributes=%08x", req->attributes );
1230 static void dump_open_process_reply( const struct open_process_reply *req )
1232 fprintf( stderr, " handle=%04x", req->handle );
1235 static void dump_open_thread_request( const struct open_thread_request *req )
1237 fprintf( stderr, " tid=%04x,", req->tid );
1238 fprintf( stderr, " access=%08x,", req->access );
1239 fprintf( stderr, " attributes=%08x", req->attributes );
1242 static void dump_open_thread_reply( const struct open_thread_reply *req )
1244 fprintf( stderr, " handle=%04x", req->handle );
1247 static void dump_select_request( const struct select_request *req )
1249 fprintf( stderr, " flags=%d,", req->flags );
1250 fprintf( stderr, " cookie=" );
1251 dump_uint64( &req->cookie );
1252 fprintf( stderr, "," );
1253 fprintf( stderr, " signal=%04x,", req->signal );
1254 fprintf( stderr, " prev_apc=%04x,", req->prev_apc );
1255 fprintf( stderr, " timeout=" );
1256 dump_timeout( &req->timeout );
1257 fprintf( stderr, "," );
1258 fprintf( stderr, " result=" );
1259 dump_varargs_apc_result( cur_size );
1260 fputc( ',', stderr );
1261 fprintf( stderr, " handles=" );
1262 dump_varargs_handles( cur_size );
1265 static void dump_select_reply( const struct select_reply *req )
1267 fprintf( stderr, " timeout=" );
1268 dump_timeout( &req->timeout );
1269 fprintf( stderr, "," );
1270 fprintf( stderr, " call=" );
1271 dump_apc_call( &req->call );
1272 fprintf( stderr, "," );
1273 fprintf( stderr, " apc_handle=%04x", req->apc_handle );
1276 static void dump_create_event_request( const struct create_event_request *req )
1278 fprintf( stderr, " access=%08x,", req->access );
1279 fprintf( stderr, " attributes=%08x,", req->attributes );
1280 fprintf( stderr, " manual_reset=%d,", req->manual_reset );
1281 fprintf( stderr, " initial_state=%d,", req->initial_state );
1282 fprintf( stderr, " objattr=" );
1283 dump_varargs_object_attributes( cur_size );
1286 static void dump_create_event_reply( const struct create_event_reply *req )
1288 fprintf( stderr, " handle=%04x", req->handle );
1291 static void dump_event_op_request( const struct event_op_request *req )
1293 fprintf( stderr, " handle=%04x,", req->handle );
1294 fprintf( stderr, " op=%d", req->op );
1297 static void dump_open_event_request( const struct open_event_request *req )
1299 fprintf( stderr, " access=%08x,", req->access );
1300 fprintf( stderr, " attributes=%08x,", req->attributes );
1301 fprintf( stderr, " rootdir=%04x,", req->rootdir );
1302 fprintf( stderr, " name=" );
1303 dump_varargs_unicode_str( cur_size );
1306 static void dump_open_event_reply( const struct open_event_reply *req )
1308 fprintf( stderr, " handle=%04x", req->handle );
1311 static void dump_create_mutex_request( const struct create_mutex_request *req )
1313 fprintf( stderr, " access=%08x,", req->access );
1314 fprintf( stderr, " attributes=%08x,", req->attributes );
1315 fprintf( stderr, " owned=%d,", req->owned );
1316 fprintf( stderr, " objattr=" );
1317 dump_varargs_object_attributes( cur_size );
1320 static void dump_create_mutex_reply( const struct create_mutex_reply *req )
1322 fprintf( stderr, " handle=%04x", req->handle );
1325 static void dump_release_mutex_request( const struct release_mutex_request *req )
1327 fprintf( stderr, " handle=%04x", req->handle );
1330 static void dump_release_mutex_reply( const struct release_mutex_reply *req )
1332 fprintf( stderr, " prev_count=%08x", req->prev_count );
1335 static void dump_open_mutex_request( const struct open_mutex_request *req )
1337 fprintf( stderr, " access=%08x,", req->access );
1338 fprintf( stderr, " attributes=%08x,", req->attributes );
1339 fprintf( stderr, " rootdir=%04x,", req->rootdir );
1340 fprintf( stderr, " name=" );
1341 dump_varargs_unicode_str( cur_size );
1344 static void dump_open_mutex_reply( const struct open_mutex_reply *req )
1346 fprintf( stderr, " handle=%04x", req->handle );
1349 static void dump_create_semaphore_request( const struct create_semaphore_request *req )
1351 fprintf( stderr, " access=%08x,", req->access );
1352 fprintf( stderr, " attributes=%08x,", req->attributes );
1353 fprintf( stderr, " initial=%08x,", req->initial );
1354 fprintf( stderr, " max=%08x,", req->max );
1355 fprintf( stderr, " objattr=" );
1356 dump_varargs_object_attributes( cur_size );
1359 static void dump_create_semaphore_reply( const struct create_semaphore_reply *req )
1361 fprintf( stderr, " handle=%04x", req->handle );
1364 static void dump_release_semaphore_request( const struct release_semaphore_request *req )
1366 fprintf( stderr, " handle=%04x,", req->handle );
1367 fprintf( stderr, " count=%08x", req->count );
1370 static void dump_release_semaphore_reply( const struct release_semaphore_reply *req )
1372 fprintf( stderr, " prev_count=%08x", req->prev_count );
1375 static void dump_open_semaphore_request( const struct open_semaphore_request *req )
1377 fprintf( stderr, " access=%08x,", req->access );
1378 fprintf( stderr, " attributes=%08x,", req->attributes );
1379 fprintf( stderr, " rootdir=%04x,", req->rootdir );
1380 fprintf( stderr, " name=" );
1381 dump_varargs_unicode_str( cur_size );
1384 static void dump_open_semaphore_reply( const struct open_semaphore_reply *req )
1386 fprintf( stderr, " handle=%04x", req->handle );
1389 static void dump_create_file_request( const struct create_file_request *req )
1391 fprintf( stderr, " access=%08x,", req->access );
1392 fprintf( stderr, " attributes=%08x,", req->attributes );
1393 fprintf( stderr, " sharing=%08x,", req->sharing );
1394 fprintf( stderr, " create=%d,", req->create );
1395 fprintf( stderr, " options=%08x,", req->options );
1396 fprintf( stderr, " attrs=%08x,", req->attrs );
1397 fprintf( stderr, " objattr=" );
1398 dump_varargs_object_attributes( cur_size );
1399 fputc( ',', stderr );
1400 fprintf( stderr, " filename=" );
1401 dump_varargs_string( cur_size );
1404 static void dump_create_file_reply( const struct create_file_reply *req )
1406 fprintf( stderr, " handle=%04x", req->handle );
1409 static void dump_open_file_object_request( const struct open_file_object_request *req )
1411 fprintf( stderr, " access=%08x,", req->access );
1412 fprintf( stderr, " attributes=%08x,", req->attributes );
1413 fprintf( stderr, " rootdir=%04x,", req->rootdir );
1414 fprintf( stderr, " sharing=%08x,", req->sharing );
1415 fprintf( stderr, " options=%08x,", req->options );
1416 fprintf( stderr, " filename=" );
1417 dump_varargs_unicode_str( cur_size );
1420 static void dump_open_file_object_reply( const struct open_file_object_reply *req )
1422 fprintf( stderr, " handle=%04x", req->handle );
1425 static void dump_alloc_file_handle_request( const struct alloc_file_handle_request *req )
1427 fprintf( stderr, " access=%08x,", req->access );
1428 fprintf( stderr, " attributes=%08x,", req->attributes );
1429 fprintf( stderr, " fd=%d", req->fd );
1432 static void dump_alloc_file_handle_reply( const struct alloc_file_handle_reply *req )
1434 fprintf( stderr, " handle=%04x", req->handle );
1437 static void dump_get_handle_fd_request( const struct get_handle_fd_request *req )
1439 fprintf( stderr, " handle=%04x", req->handle );
1442 static void dump_get_handle_fd_reply( const struct get_handle_fd_reply *req )
1444 fprintf( stderr, " type=%d,", req->type );
1445 fprintf( stderr, " removable=%d,", req->removable );
1446 fprintf( stderr, " access=%08x,", req->access );
1447 fprintf( stderr, " options=%08x", req->options );
1450 static void dump_flush_file_request( const struct flush_file_request *req )
1452 fprintf( stderr, " handle=%04x", req->handle );
1455 static void dump_flush_file_reply( const struct flush_file_reply *req )
1457 fprintf( stderr, " event=%04x", req->event );
1460 static void dump_lock_file_request( const struct lock_file_request *req )
1462 fprintf( stderr, " handle=%04x,", req->handle );
1463 fprintf( stderr, " offset=" );
1464 dump_uint64( &req->offset );
1465 fprintf( stderr, "," );
1466 fprintf( stderr, " count=" );
1467 dump_uint64( &req->count );
1468 fprintf( stderr, "," );
1469 fprintf( stderr, " shared=%d,", req->shared );
1470 fprintf( stderr, " wait=%d", req->wait );
1473 static void dump_lock_file_reply( const struct lock_file_reply *req )
1475 fprintf( stderr, " handle=%04x,", req->handle );
1476 fprintf( stderr, " overlapped=%d", req->overlapped );
1479 static void dump_unlock_file_request( const struct unlock_file_request *req )
1481 fprintf( stderr, " handle=%04x,", req->handle );
1482 fprintf( stderr, " offset=" );
1483 dump_uint64( &req->offset );
1484 fprintf( stderr, "," );
1485 fprintf( stderr, " count=" );
1486 dump_uint64( &req->count );
1489 static void dump_create_socket_request( const struct create_socket_request *req )
1491 fprintf( stderr, " access=%08x,", req->access );
1492 fprintf( stderr, " attributes=%08x,", req->attributes );
1493 fprintf( stderr, " family=%d,", req->family );
1494 fprintf( stderr, " type=%d,", req->type );
1495 fprintf( stderr, " protocol=%d,", req->protocol );
1496 fprintf( stderr, " flags=%08x", req->flags );
1499 static void dump_create_socket_reply( const struct create_socket_reply *req )
1501 fprintf( stderr, " handle=%04x", req->handle );
1504 static void dump_accept_socket_request( const struct accept_socket_request *req )
1506 fprintf( stderr, " lhandle=%04x,", req->lhandle );
1507 fprintf( stderr, " access=%08x,", req->access );
1508 fprintf( stderr, " attributes=%08x", req->attributes );
1511 static void dump_accept_socket_reply( const struct accept_socket_reply *req )
1513 fprintf( stderr, " handle=%04x", req->handle );
1516 static void dump_set_socket_event_request( const struct set_socket_event_request *req )
1518 fprintf( stderr, " handle=%04x,", req->handle );
1519 fprintf( stderr, " mask=%08x,", req->mask );
1520 fprintf( stderr, " event=%04x,", req->event );
1521 fprintf( stderr, " window=%08x,", req->window );
1522 fprintf( stderr, " msg=%08x", req->msg );
1525 static void dump_get_socket_event_request( const struct get_socket_event_request *req )
1527 fprintf( stderr, " handle=%04x,", req->handle );
1528 fprintf( stderr, " service=%d,", req->service );
1529 fprintf( stderr, " c_event=%04x", req->c_event );
1532 static void dump_get_socket_event_reply( const struct get_socket_event_reply *req )
1534 fprintf( stderr, " mask=%08x,", req->mask );
1535 fprintf( stderr, " pmask=%08x,", req->pmask );
1536 fprintf( stderr, " state=%08x,", req->state );
1537 fprintf( stderr, " errors=" );
1538 dump_varargs_ints( cur_size );
1541 static void dump_enable_socket_event_request( const struct enable_socket_event_request *req )
1543 fprintf( stderr, " handle=%04x,", req->handle );
1544 fprintf( stderr, " mask=%08x,", req->mask );
1545 fprintf( stderr, " sstate=%08x,", req->sstate );
1546 fprintf( stderr, " cstate=%08x", req->cstate );
1549 static void dump_set_socket_deferred_request( const struct set_socket_deferred_request *req )
1551 fprintf( stderr, " handle=%04x,", req->handle );
1552 fprintf( stderr, " deferred=%04x", req->deferred );
1555 static void dump_alloc_console_request( const struct alloc_console_request *req )
1557 fprintf( stderr, " access=%08x,", req->access );
1558 fprintf( stderr, " attributes=%08x,", req->attributes );
1559 fprintf( stderr, " pid=%04x", req->pid );
1562 static void dump_alloc_console_reply( const struct alloc_console_reply *req )
1564 fprintf( stderr, " handle_in=%04x,", req->handle_in );
1565 fprintf( stderr, " event=%04x", req->event );
1568 static void dump_free_console_request( const struct free_console_request *req )
1572 static void dump_get_console_renderer_events_request( const struct get_console_renderer_events_request *req )
1574 fprintf( stderr, " handle=%04x", req->handle );
1577 static void dump_get_console_renderer_events_reply( const struct get_console_renderer_events_reply *req )
1579 fprintf( stderr, " data=" );
1580 dump_varargs_bytes( cur_size );
1583 static void dump_open_console_request( const struct open_console_request *req )
1585 fprintf( stderr, " from=%04x,", req->from );
1586 fprintf( stderr, " access=%08x,", req->access );
1587 fprintf( stderr, " attributes=%08x,", req->attributes );
1588 fprintf( stderr, " share=%d", req->share );
1591 static void dump_open_console_reply( const struct open_console_reply *req )
1593 fprintf( stderr, " handle=%04x", req->handle );
1596 static void dump_get_console_wait_event_request( const struct get_console_wait_event_request *req )
1600 static void dump_get_console_wait_event_reply( const struct get_console_wait_event_reply *req )
1602 fprintf( stderr, " handle=%04x", req->handle );
1605 static void dump_get_console_mode_request( const struct get_console_mode_request *req )
1607 fprintf( stderr, " handle=%04x", req->handle );
1610 static void dump_get_console_mode_reply( const struct get_console_mode_reply *req )
1612 fprintf( stderr, " mode=%d", req->mode );
1615 static void dump_set_console_mode_request( const struct set_console_mode_request *req )
1617 fprintf( stderr, " handle=%04x,", req->handle );
1618 fprintf( stderr, " mode=%d", req->mode );
1621 static void dump_set_console_input_info_request( const struct set_console_input_info_request *req )
1623 fprintf( stderr, " handle=%04x,", req->handle );
1624 fprintf( stderr, " mask=%d,", req->mask );
1625 fprintf( stderr, " active_sb=%04x,", req->active_sb );
1626 fprintf( stderr, " history_mode=%d,", req->history_mode );
1627 fprintf( stderr, " history_size=%d,", req->history_size );
1628 fprintf( stderr, " edition_mode=%d,", req->edition_mode );
1629 fprintf( stderr, " input_cp=%d,", req->input_cp );
1630 fprintf( stderr, " output_cp=%d,", req->output_cp );
1631 fprintf( stderr, " win=%08x,", req->win );
1632 fprintf( stderr, " title=" );
1633 dump_varargs_unicode_str( cur_size );
1636 static void dump_get_console_input_info_request( const struct get_console_input_info_request *req )
1638 fprintf( stderr, " handle=%04x", req->handle );
1641 static void dump_get_console_input_info_reply( const struct get_console_input_info_reply *req )
1643 fprintf( stderr, " history_mode=%d,", req->history_mode );
1644 fprintf( stderr, " history_size=%d,", req->history_size );
1645 fprintf( stderr, " history_index=%d,", req->history_index );
1646 fprintf( stderr, " edition_mode=%d,", req->edition_mode );
1647 fprintf( stderr, " input_cp=%d,", req->input_cp );
1648 fprintf( stderr, " output_cp=%d,", req->output_cp );
1649 fprintf( stderr, " win=%08x,", req->win );
1650 fprintf( stderr, " title=" );
1651 dump_varargs_unicode_str( cur_size );
1654 static void dump_append_console_input_history_request( const struct append_console_input_history_request *req )
1656 fprintf( stderr, " handle=%04x,", req->handle );
1657 fprintf( stderr, " line=" );
1658 dump_varargs_unicode_str( cur_size );
1661 static void dump_get_console_input_history_request( const struct get_console_input_history_request *req )
1663 fprintf( stderr, " handle=%04x,", req->handle );
1664 fprintf( stderr, " index=%d", req->index );
1667 static void dump_get_console_input_history_reply( const struct get_console_input_history_reply *req )
1669 fprintf( stderr, " total=%d,", req->total );
1670 fprintf( stderr, " line=" );
1671 dump_varargs_unicode_str( cur_size );
1674 static void dump_create_console_output_request( const struct create_console_output_request *req )
1676 fprintf( stderr, " handle_in=%04x,", req->handle_in );
1677 fprintf( stderr, " access=%08x,", req->access );
1678 fprintf( stderr, " attributes=%08x,", req->attributes );
1679 fprintf( stderr, " share=%08x", req->share );
1682 static void dump_create_console_output_reply( const struct create_console_output_reply *req )
1684 fprintf( stderr, " handle_out=%04x", req->handle_out );
1687 static void dump_set_console_output_info_request( const struct set_console_output_info_request *req )
1689 fprintf( stderr, " handle=%04x,", req->handle );
1690 fprintf( stderr, " mask=%d,", req->mask );
1691 fprintf( stderr, " cursor_size=%d,", req->cursor_size );
1692 fprintf( stderr, " cursor_visible=%d,", req->cursor_visible );
1693 fprintf( stderr, " cursor_x=%d,", req->cursor_x );
1694 fprintf( stderr, " cursor_y=%d,", req->cursor_y );
1695 fprintf( stderr, " width=%d,", req->width );
1696 fprintf( stderr, " height=%d,", req->height );
1697 fprintf( stderr, " attr=%d,", req->attr );
1698 fprintf( stderr, " win_left=%d,", req->win_left );
1699 fprintf( stderr, " win_top=%d,", req->win_top );
1700 fprintf( stderr, " win_right=%d,", req->win_right );
1701 fprintf( stderr, " win_bottom=%d,", req->win_bottom );
1702 fprintf( stderr, " max_width=%d,", req->max_width );
1703 fprintf( stderr, " max_height=%d", req->max_height );
1706 static void dump_get_console_output_info_request( const struct get_console_output_info_request *req )
1708 fprintf( stderr, " handle=%04x", req->handle );
1711 static void dump_get_console_output_info_reply( const struct get_console_output_info_reply *req )
1713 fprintf( stderr, " cursor_size=%d,", req->cursor_size );
1714 fprintf( stderr, " cursor_visible=%d,", req->cursor_visible );
1715 fprintf( stderr, " cursor_x=%d,", req->cursor_x );
1716 fprintf( stderr, " cursor_y=%d,", req->cursor_y );
1717 fprintf( stderr, " width=%d,", req->width );
1718 fprintf( stderr, " height=%d,", req->height );
1719 fprintf( stderr, " attr=%d,", req->attr );
1720 fprintf( stderr, " win_left=%d,", req->win_left );
1721 fprintf( stderr, " win_top=%d,", req->win_top );
1722 fprintf( stderr, " win_right=%d,", req->win_right );
1723 fprintf( stderr, " win_bottom=%d,", req->win_bottom );
1724 fprintf( stderr, " max_width=%d,", req->max_width );
1725 fprintf( stderr, " max_height=%d", req->max_height );
1728 static void dump_write_console_input_request( const struct write_console_input_request *req )
1730 fprintf( stderr, " handle=%04x,", req->handle );
1731 fprintf( stderr, " rec=" );
1732 dump_varargs_input_records( cur_size );
1735 static void dump_write_console_input_reply( const struct write_console_input_reply *req )
1737 fprintf( stderr, " written=%d", req->written );
1740 static void dump_read_console_input_request( const struct read_console_input_request *req )
1742 fprintf( stderr, " handle=%04x,", req->handle );
1743 fprintf( stderr, " flush=%d", req->flush );
1746 static void dump_read_console_input_reply( const struct read_console_input_reply *req )
1748 fprintf( stderr, " read=%d,", req->read );
1749 fprintf( stderr, " rec=" );
1750 dump_varargs_input_records( cur_size );
1753 static void dump_write_console_output_request( const struct write_console_output_request *req )
1755 fprintf( stderr, " handle=%04x,", req->handle );
1756 fprintf( stderr, " x=%d,", req->x );
1757 fprintf( stderr, " y=%d,", req->y );
1758 fprintf( stderr, " mode=%d,", req->mode );
1759 fprintf( stderr, " wrap=%d,", req->wrap );
1760 fprintf( stderr, " data=" );
1761 dump_varargs_bytes( cur_size );
1764 static void dump_write_console_output_reply( const struct write_console_output_reply *req )
1766 fprintf( stderr, " written=%d,", req->written );
1767 fprintf( stderr, " width=%d,", req->width );
1768 fprintf( stderr, " height=%d", req->height );
1771 static void dump_fill_console_output_request( const struct fill_console_output_request *req )
1773 fprintf( stderr, " handle=%04x,", req->handle );
1774 fprintf( stderr, " x=%d,", req->x );
1775 fprintf( stderr, " y=%d,", req->y );
1776 fprintf( stderr, " mode=%d,", req->mode );
1777 fprintf( stderr, " count=%d,", req->count );
1778 fprintf( stderr, " wrap=%d,", req->wrap );
1779 fprintf( stderr, " data=" );
1780 dump_char_info( &req->data );
1783 static void dump_fill_console_output_reply( const struct fill_console_output_reply *req )
1785 fprintf( stderr, " written=%d", req->written );
1788 static void dump_read_console_output_request( const struct read_console_output_request *req )
1790 fprintf( stderr, " handle=%04x,", req->handle );
1791 fprintf( stderr, " x=%d,", req->x );
1792 fprintf( stderr, " y=%d,", req->y );
1793 fprintf( stderr, " mode=%d,", req->mode );
1794 fprintf( stderr, " wrap=%d", req->wrap );
1797 static void dump_read_console_output_reply( const struct read_console_output_reply *req )
1799 fprintf( stderr, " width=%d,", req->width );
1800 fprintf( stderr, " height=%d,", req->height );
1801 fprintf( stderr, " data=" );
1802 dump_varargs_bytes( cur_size );
1805 static void dump_move_console_output_request( const struct move_console_output_request *req )
1807 fprintf( stderr, " handle=%04x,", req->handle );
1808 fprintf( stderr, " x_src=%d,", req->x_src );
1809 fprintf( stderr, " y_src=%d,", req->y_src );
1810 fprintf( stderr, " x_dst=%d,", req->x_dst );
1811 fprintf( stderr, " y_dst=%d,", req->y_dst );
1812 fprintf( stderr, " w=%d,", req->w );
1813 fprintf( stderr, " h=%d", req->h );
1816 static void dump_send_console_signal_request( const struct send_console_signal_request *req )
1818 fprintf( stderr, " signal=%d,", req->signal );
1819 fprintf( stderr, " group_id=%04x", req->group_id );
1822 static void dump_read_directory_changes_request( const struct read_directory_changes_request *req )
1824 fprintf( stderr, " filter=%08x,", req->filter );
1825 fprintf( stderr, " subtree=%d,", req->subtree );
1826 fprintf( stderr, " want_data=%d,", req->want_data );
1827 fprintf( stderr, " async=" );
1828 dump_async_data( &req->async );
1831 static void dump_read_change_request( const struct read_change_request *req )
1833 fprintf( stderr, " handle=%04x", req->handle );
1836 static void dump_read_change_reply( const struct read_change_reply *req )
1838 fprintf( stderr, " action=%d,", req->action );
1839 fprintf( stderr, " name=" );
1840 dump_varargs_string( cur_size );
1843 static void dump_create_mapping_request( const struct create_mapping_request *req )
1845 fprintf( stderr, " access=%08x,", req->access );
1846 fprintf( stderr, " attributes=%08x,", req->attributes );
1847 fprintf( stderr, " protect=%08x,", req->protect );
1848 fprintf( stderr, " size=" );
1849 dump_uint64( &req->size );
1850 fprintf( stderr, "," );
1851 fprintf( stderr, " file_handle=%04x,", req->file_handle );
1852 fprintf( stderr, " objattr=" );
1853 dump_varargs_object_attributes( cur_size );
1856 static void dump_create_mapping_reply( const struct create_mapping_reply *req )
1858 fprintf( stderr, " handle=%04x", req->handle );
1861 static void dump_open_mapping_request( const struct open_mapping_request *req )
1863 fprintf( stderr, " access=%08x,", req->access );
1864 fprintf( stderr, " attributes=%08x,", req->attributes );
1865 fprintf( stderr, " rootdir=%04x,", req->rootdir );
1866 fprintf( stderr, " name=" );
1867 dump_varargs_unicode_str( cur_size );
1870 static void dump_open_mapping_reply( const struct open_mapping_reply *req )
1872 fprintf( stderr, " handle=%04x", req->handle );
1875 static void dump_get_mapping_info_request( const struct get_mapping_info_request *req )
1877 fprintf( stderr, " handle=%04x,", req->handle );
1878 fprintf( stderr, " access=%08x", req->access );
1881 static void dump_get_mapping_info_reply( const struct get_mapping_info_reply *req )
1883 fprintf( stderr, " size=" );
1884 dump_uint64( &req->size );
1885 fprintf( stderr, "," );
1886 fprintf( stderr, " protect=%d,", req->protect );
1887 fprintf( stderr, " header_size=%d,", req->header_size );
1888 fprintf( stderr, " base=" );
1889 dump_uint64( &req->base );
1890 fprintf( stderr, "," );
1891 fprintf( stderr, " mapping=%04x,", req->mapping );
1892 fprintf( stderr, " shared_file=%04x", req->shared_file );
1895 static void dump_get_mapping_committed_range_request( const struct get_mapping_committed_range_request *req )
1897 fprintf( stderr, " handle=%04x,", req->handle );
1898 fprintf( stderr, " offset=" );
1899 dump_uint64( &req->offset );
1902 static void dump_get_mapping_committed_range_reply( const struct get_mapping_committed_range_reply *req )
1904 fprintf( stderr, " size=" );
1905 dump_uint64( &req->size );
1906 fprintf( stderr, "," );
1907 fprintf( stderr, " committed=%d", req->committed );
1910 static void dump_add_mapping_committed_range_request( const struct add_mapping_committed_range_request *req )
1912 fprintf( stderr, " handle=%04x,", req->handle );
1913 fprintf( stderr, " offset=" );
1914 dump_uint64( &req->offset );
1915 fprintf( stderr, "," );
1916 fprintf( stderr, " size=" );
1917 dump_uint64( &req->size );
1920 static void dump_create_snapshot_request( const struct create_snapshot_request *req )
1922 fprintf( stderr, " attributes=%08x,", req->attributes );
1923 fprintf( stderr, " flags=%08x", req->flags );
1926 static void dump_create_snapshot_reply( const struct create_snapshot_reply *req )
1928 fprintf( stderr, " handle=%04x", req->handle );
1931 static void dump_next_process_request( const struct next_process_request *req )
1933 fprintf( stderr, " handle=%04x,", req->handle );
1934 fprintf( stderr, " reset=%d", req->reset );
1937 static void dump_next_process_reply( const struct next_process_reply *req )
1939 fprintf( stderr, " count=%d,", req->count );
1940 fprintf( stderr, " pid=%04x,", req->pid );
1941 fprintf( stderr, " ppid=%04x,", req->ppid );
1942 fprintf( stderr, " threads=%d,", req->threads );
1943 fprintf( stderr, " priority=%d,", req->priority );
1944 fprintf( stderr, " handles=%d,", req->handles );
1945 fprintf( stderr, " filename=" );
1946 dump_varargs_unicode_str( cur_size );
1949 static void dump_next_thread_request( const struct next_thread_request *req )
1951 fprintf( stderr, " handle=%04x,", req->handle );
1952 fprintf( stderr, " reset=%d", req->reset );
1955 static void dump_next_thread_reply( const struct next_thread_reply *req )
1957 fprintf( stderr, " count=%d,", req->count );
1958 fprintf( stderr, " pid=%04x,", req->pid );
1959 fprintf( stderr, " tid=%04x,", req->tid );
1960 fprintf( stderr, " base_pri=%d,", req->base_pri );
1961 fprintf( stderr, " delta_pri=%d", req->delta_pri );
1964 static void dump_wait_debug_event_request( const struct wait_debug_event_request *req )
1966 fprintf( stderr, " get_handle=%d", req->get_handle );
1969 static void dump_wait_debug_event_reply( const struct wait_debug_event_reply *req )
1971 fprintf( stderr, " pid=%04x,", req->pid );
1972 fprintf( stderr, " tid=%04x,", req->tid );
1973 fprintf( stderr, " wait=%04x,", req->wait );
1974 fprintf( stderr, " event=" );
1975 dump_varargs_debug_event( cur_size );
1978 static void dump_queue_exception_event_request( const struct queue_exception_event_request *req )
1980 fprintf( stderr, " first=%d,", req->first );
1981 fprintf( stderr, " code=%08x,", req->code );
1982 fprintf( stderr, " flags=%08x,", req->flags );
1983 fprintf( stderr, " record=" );
1984 dump_uint64( &req->record );
1985 fprintf( stderr, "," );
1986 fprintf( stderr, " address=" );
1987 dump_uint64( &req->address );
1988 fprintf( stderr, "," );
1989 fprintf( stderr, " len=%u,", req->len );
1990 fprintf( stderr, " params=" );
1991 dump_varargs_uints64( min(cur_size,req->len) );
1992 fputc( ',', stderr );
1993 fprintf( stderr, " context=" );
1994 dump_varargs_context( cur_size );
1997 static void dump_queue_exception_event_reply( const struct queue_exception_event_reply *req )
1999 fprintf( stderr, " handle=%04x", req->handle );
2002 static void dump_get_exception_status_request( const struct get_exception_status_request *req )
2004 fprintf( stderr, " handle=%04x", req->handle );
2007 static void dump_get_exception_status_reply( const struct get_exception_status_reply *req )
2009 fprintf( stderr, " context=" );
2010 dump_varargs_context( cur_size );
2013 static void dump_output_debug_string_request( const struct output_debug_string_request *req )
2015 fprintf( stderr, " length=%u,", req->length );
2016 fprintf( stderr, " string=" );
2017 dump_uint64( &req->string );
2018 fprintf( stderr, "," );
2019 fprintf( stderr, " unicode=%d", req->unicode );
2022 static void dump_continue_debug_event_request( const struct continue_debug_event_request *req )
2024 fprintf( stderr, " pid=%04x,", req->pid );
2025 fprintf( stderr, " tid=%04x,", req->tid );
2026 fprintf( stderr, " status=%d", req->status );
2029 static void dump_debug_process_request( const struct debug_process_request *req )
2031 fprintf( stderr, " pid=%04x,", req->pid );
2032 fprintf( stderr, " attach=%d", req->attach );
2035 static void dump_debug_break_request( const struct debug_break_request *req )
2037 fprintf( stderr, " handle=%04x", req->handle );
2040 static void dump_debug_break_reply( const struct debug_break_reply *req )
2042 fprintf( stderr, " self=%d", req->self );
2045 static void dump_set_debugger_kill_on_exit_request( const struct set_debugger_kill_on_exit_request *req )
2047 fprintf( stderr, " kill_on_exit=%d", req->kill_on_exit );
2050 static void dump_read_process_memory_request( const struct read_process_memory_request *req )
2052 fprintf( stderr, " handle=%04x,", req->handle );
2053 fprintf( stderr, " addr=" );
2054 dump_uint64( &req->addr );
2057 static void dump_read_process_memory_reply( const struct read_process_memory_reply *req )
2059 fprintf( stderr, " data=" );
2060 dump_varargs_bytes( cur_size );
2063 static void dump_write_process_memory_request( const struct write_process_memory_request *req )
2065 fprintf( stderr, " handle=%04x,", req->handle );
2066 fprintf( stderr, " addr=" );
2067 dump_uint64( &req->addr );
2068 fprintf( stderr, "," );
2069 fprintf( stderr, " data=" );
2070 dump_varargs_bytes( cur_size );
2073 static void dump_create_key_request( const struct create_key_request *req )
2075 fprintf( stderr, " parent=%04x,", req->parent );
2076 fprintf( stderr, " access=%08x,", req->access );
2077 fprintf( stderr, " attributes=%08x,", req->attributes );
2078 fprintf( stderr, " options=%08x,", req->options );
2079 fprintf( stderr, " namelen=%u,", req->namelen );
2080 fprintf( stderr, " name=" );
2081 dump_varargs_unicode_str( min(cur_size,req->namelen) );
2082 fputc( ',', stderr );
2083 fprintf( stderr, " class=" );
2084 dump_varargs_unicode_str( cur_size );
2087 static void dump_create_key_reply( const struct create_key_reply *req )
2089 fprintf( stderr, " hkey=%04x,", req->hkey );
2090 fprintf( stderr, " created=%d", req->created );
2093 static void dump_open_key_request( const struct open_key_request *req )
2095 fprintf( stderr, " parent=%04x,", req->parent );
2096 fprintf( stderr, " access=%08x,", req->access );
2097 fprintf( stderr, " attributes=%08x,", req->attributes );
2098 fprintf( stderr, " name=" );
2099 dump_varargs_unicode_str( cur_size );
2102 static void dump_open_key_reply( const struct open_key_reply *req )
2104 fprintf( stderr, " hkey=%04x", req->hkey );
2107 static void dump_delete_key_request( const struct delete_key_request *req )
2109 fprintf( stderr, " hkey=%04x", req->hkey );
2112 static void dump_flush_key_request( const struct flush_key_request *req )
2114 fprintf( stderr, " hkey=%04x", req->hkey );
2117 static void dump_enum_key_request( const struct enum_key_request *req )
2119 fprintf( stderr, " hkey=%04x,", req->hkey );
2120 fprintf( stderr, " index=%d,", req->index );
2121 fprintf( stderr, " info_class=%d", req->info_class );
2124 static void dump_enum_key_reply( const struct enum_key_reply *req )
2126 fprintf( stderr, " subkeys=%d,", req->subkeys );
2127 fprintf( stderr, " max_subkey=%d,", req->max_subkey );
2128 fprintf( stderr, " max_class=%d,", req->max_class );
2129 fprintf( stderr, " values=%d,", req->values );
2130 fprintf( stderr, " max_value=%d,", req->max_value );
2131 fprintf( stderr, " max_data=%d,", req->max_data );
2132 fprintf( stderr, " modif=" );
2133 dump_timeout( &req->modif );
2134 fprintf( stderr, "," );
2135 fprintf( stderr, " total=%u,", req->total );
2136 fprintf( stderr, " namelen=%u,", req->namelen );
2137 fprintf( stderr, " name=" );
2138 dump_varargs_unicode_str( min(cur_size,req->namelen) );
2139 fputc( ',', stderr );
2140 fprintf( stderr, " class=" );
2141 dump_varargs_unicode_str( cur_size );
2144 static void dump_set_key_value_request( const struct set_key_value_request *req )
2146 fprintf( stderr, " hkey=%04x,", req->hkey );
2147 fprintf( stderr, " type=%d,", req->type );
2148 fprintf( stderr, " namelen=%u,", req->namelen );
2149 fprintf( stderr, " name=" );
2150 dump_varargs_unicode_str( min(cur_size,req->namelen) );
2151 fputc( ',', stderr );
2152 fprintf( stderr, " data=" );
2153 dump_varargs_bytes( cur_size );
2156 static void dump_get_key_value_request( const struct get_key_value_request *req )
2158 fprintf( stderr, " hkey=%04x,", req->hkey );
2159 fprintf( stderr, " name=" );
2160 dump_varargs_unicode_str( cur_size );
2163 static void dump_get_key_value_reply( const struct get_key_value_reply *req )
2165 fprintf( stderr, " type=%d,", req->type );
2166 fprintf( stderr, " total=%u,", req->total );
2167 fprintf( stderr, " data=" );
2168 dump_varargs_bytes( cur_size );
2171 static void dump_enum_key_value_request( const struct enum_key_value_request *req )
2173 fprintf( stderr, " hkey=%04x,", req->hkey );
2174 fprintf( stderr, " index=%d,", req->index );
2175 fprintf( stderr, " info_class=%d", req->info_class );
2178 static void dump_enum_key_value_reply( const struct enum_key_value_reply *req )
2180 fprintf( stderr, " type=%d,", req->type );
2181 fprintf( stderr, " total=%u,", req->total );
2182 fprintf( stderr, " namelen=%u,", req->namelen );
2183 fprintf( stderr, " name=" );
2184 dump_varargs_unicode_str( min(cur_size,req->namelen) );
2185 fputc( ',', stderr );
2186 fprintf( stderr, " data=" );
2187 dump_varargs_bytes( cur_size );
2190 static void dump_delete_key_value_request( const struct delete_key_value_request *req )
2192 fprintf( stderr, " hkey=%04x,", req->hkey );
2193 fprintf( stderr, " name=" );
2194 dump_varargs_unicode_str( cur_size );
2197 static void dump_load_registry_request( const struct load_registry_request *req )
2199 fprintf( stderr, " hkey=%04x,", req->hkey );
2200 fprintf( stderr, " file=%04x,", req->file );
2201 fprintf( stderr, " name=" );
2202 dump_varargs_unicode_str( cur_size );
2205 static void dump_unload_registry_request( const struct unload_registry_request *req )
2207 fprintf( stderr, " hkey=%04x", req->hkey );
2210 static void dump_save_registry_request( const struct save_registry_request *req )
2212 fprintf( stderr, " hkey=%04x,", req->hkey );
2213 fprintf( stderr, " file=%04x", req->file );
2216 static void dump_set_registry_notification_request( const struct set_registry_notification_request *req )
2218 fprintf( stderr, " hkey=%04x,", req->hkey );
2219 fprintf( stderr, " event=%04x,", req->event );
2220 fprintf( stderr, " subtree=%d,", req->subtree );
2221 fprintf( stderr, " filter=%08x", req->filter );
2224 static void dump_create_timer_request( const struct create_timer_request *req )
2226 fprintf( stderr, " access=%08x,", req->access );
2227 fprintf( stderr, " attributes=%08x,", req->attributes );
2228 fprintf( stderr, " rootdir=%04x,", req->rootdir );
2229 fprintf( stderr, " manual=%d,", req->manual );
2230 fprintf( stderr, " name=" );
2231 dump_varargs_unicode_str( cur_size );
2234 static void dump_create_timer_reply( const struct create_timer_reply *req )
2236 fprintf( stderr, " handle=%04x", req->handle );
2239 static void dump_open_timer_request( const struct open_timer_request *req )
2241 fprintf( stderr, " access=%08x,", req->access );
2242 fprintf( stderr, " attributes=%08x,", req->attributes );
2243 fprintf( stderr, " rootdir=%04x,", req->rootdir );
2244 fprintf( stderr, " name=" );
2245 dump_varargs_unicode_str( cur_size );
2248 static void dump_open_timer_reply( const struct open_timer_reply *req )
2250 fprintf( stderr, " handle=%04x", req->handle );
2253 static void dump_set_timer_request( const struct set_timer_request *req )
2255 fprintf( stderr, " handle=%04x,", req->handle );
2256 fprintf( stderr, " expire=" );
2257 dump_timeout( &req->expire );
2258 fprintf( stderr, "," );
2259 fprintf( stderr, " callback=" );
2260 dump_uint64( &req->callback );
2261 fprintf( stderr, "," );
2262 fprintf( stderr, " arg=" );
2263 dump_uint64( &req->arg );
2264 fprintf( stderr, "," );
2265 fprintf( stderr, " period=%d", req->period );
2268 static void dump_set_timer_reply( const struct set_timer_reply *req )
2270 fprintf( stderr, " signaled=%d", req->signaled );
2273 static void dump_cancel_timer_request( const struct cancel_timer_request *req )
2275 fprintf( stderr, " handle=%04x", req->handle );
2278 static void dump_cancel_timer_reply( const struct cancel_timer_reply *req )
2280 fprintf( stderr, " signaled=%d", req->signaled );
2283 static void dump_get_timer_info_request( const struct get_timer_info_request *req )
2285 fprintf( stderr, " handle=%04x", req->handle );
2288 static void dump_get_timer_info_reply( const struct get_timer_info_reply *req )
2290 fprintf( stderr, " when=" );
2291 dump_timeout( &req->when );
2292 fprintf( stderr, "," );
2293 fprintf( stderr, " signaled=%d", req->signaled );
2296 static void dump_get_thread_context_request( const struct get_thread_context_request *req )
2298 fprintf( stderr, " handle=%04x,", req->handle );
2299 fprintf( stderr, " flags=%08x,", req->flags );
2300 fprintf( stderr, " suspend=%d", req->suspend );
2303 static void dump_get_thread_context_reply( const struct get_thread_context_reply *req )
2305 fprintf( stderr, " self=%d,", req->self );
2306 fprintf( stderr, " context=" );
2307 dump_varargs_context( cur_size );
2310 static void dump_set_thread_context_request( const struct set_thread_context_request *req )
2312 fprintf( stderr, " handle=%04x,", req->handle );
2313 fprintf( stderr, " flags=%08x,", req->flags );
2314 fprintf( stderr, " suspend=%d,", req->suspend );
2315 fprintf( stderr, " context=" );
2316 dump_varargs_context( cur_size );
2319 static void dump_set_thread_context_reply( const struct set_thread_context_reply *req )
2321 fprintf( stderr, " self=%d", req->self );
2324 static void dump_get_selector_entry_request( const struct get_selector_entry_request *req )
2326 fprintf( stderr, " handle=%04x,", req->handle );
2327 fprintf( stderr, " entry=%d", req->entry );
2330 static void dump_get_selector_entry_reply( const struct get_selector_entry_reply *req )
2332 fprintf( stderr, " base=%08x,", req->base );
2333 fprintf( stderr, " limit=%08x,", req->limit );
2334 fprintf( stderr, " flags=%02x", req->flags );
2337 static void dump_add_atom_request( const struct add_atom_request *req )
2339 fprintf( stderr, " table=%04x,", req->table );
2340 fprintf( stderr, " name=" );
2341 dump_varargs_unicode_str( cur_size );
2344 static void dump_add_atom_reply( const struct add_atom_reply *req )
2346 fprintf( stderr, " atom=%04x", req->atom );
2349 static void dump_delete_atom_request( const struct delete_atom_request *req )
2351 fprintf( stderr, " table=%04x,", req->table );
2352 fprintf( stderr, " atom=%04x", req->atom );
2355 static void dump_find_atom_request( const struct find_atom_request *req )
2357 fprintf( stderr, " table=%04x,", req->table );
2358 fprintf( stderr, " name=" );
2359 dump_varargs_unicode_str( cur_size );
2362 static void dump_find_atom_reply( const struct find_atom_reply *req )
2364 fprintf( stderr, " atom=%04x", req->atom );
2367 static void dump_get_atom_information_request( const struct get_atom_information_request *req )
2369 fprintf( stderr, " table=%04x,", req->table );
2370 fprintf( stderr, " atom=%04x", req->atom );
2373 static void dump_get_atom_information_reply( const struct get_atom_information_reply *req )
2375 fprintf( stderr, " count=%d,", req->count );
2376 fprintf( stderr, " pinned=%d,", req->pinned );
2377 fprintf( stderr, " total=%u,", req->total );
2378 fprintf( stderr, " name=" );
2379 dump_varargs_unicode_str( cur_size );
2382 static void dump_set_atom_information_request( const struct set_atom_information_request *req )
2384 fprintf( stderr, " table=%04x,", req->table );
2385 fprintf( stderr, " atom=%04x,", req->atom );
2386 fprintf( stderr, " pinned=%d", req->pinned );
2389 static void dump_empty_atom_table_request( const struct empty_atom_table_request *req )
2391 fprintf( stderr, " table=%04x,", req->table );
2392 fprintf( stderr, " if_pinned=%d", req->if_pinned );
2395 static void dump_init_atom_table_request( const struct init_atom_table_request *req )
2397 fprintf( stderr, " entries=%d", req->entries );
2400 static void dump_init_atom_table_reply( const struct init_atom_table_reply *req )
2402 fprintf( stderr, " table=%04x", req->table );
2405 static void dump_get_msg_queue_request( const struct get_msg_queue_request *req )
2409 static void dump_get_msg_queue_reply( const struct get_msg_queue_reply *req )
2411 fprintf( stderr, " handle=%04x", req->handle );
2414 static void dump_set_queue_fd_request( const struct set_queue_fd_request *req )
2416 fprintf( stderr, " handle=%04x", req->handle );
2419 static void dump_set_queue_mask_request( const struct set_queue_mask_request *req )
2421 fprintf( stderr, " wake_mask=%08x,", req->wake_mask );
2422 fprintf( stderr, " changed_mask=%08x,", req->changed_mask );
2423 fprintf( stderr, " skip_wait=%d", req->skip_wait );
2426 static void dump_set_queue_mask_reply( const struct set_queue_mask_reply *req )
2428 fprintf( stderr, " wake_bits=%08x,", req->wake_bits );
2429 fprintf( stderr, " changed_bits=%08x", req->changed_bits );
2432 static void dump_get_queue_status_request( const struct get_queue_status_request *req )
2434 fprintf( stderr, " clear=%d", req->clear );
2437 static void dump_get_queue_status_reply( const struct get_queue_status_reply *req )
2439 fprintf( stderr, " wake_bits=%08x,", req->wake_bits );
2440 fprintf( stderr, " changed_bits=%08x", req->changed_bits );
2443 static void dump_get_process_idle_event_request( const struct get_process_idle_event_request *req )
2445 fprintf( stderr, " handle=%04x", req->handle );
2448 static void dump_get_process_idle_event_reply( const struct get_process_idle_event_reply *req )
2450 fprintf( stderr, " event=%04x", req->event );
2453 static void dump_send_message_request( const struct send_message_request *req )
2455 fprintf( stderr, " id=%04x,", req->id );
2456 fprintf( stderr, " type=%d,", req->type );
2457 fprintf( stderr, " flags=%d,", req->flags );
2458 fprintf( stderr, " win=%08x,", req->win );
2459 fprintf( stderr, " msg=%08x,", req->msg );
2460 fprintf( stderr, " wparam=" );
2461 dump_uint64( &req->wparam );
2462 fprintf( stderr, "," );
2463 fprintf( stderr, " lparam=" );
2464 dump_uint64( &req->lparam );
2465 fprintf( stderr, "," );
2466 fprintf( stderr, " timeout=" );
2467 dump_timeout( &req->timeout );
2468 fprintf( stderr, "," );
2469 fprintf( stderr, " data=" );
2470 dump_varargs_message_data( cur_size );
2473 static void dump_post_quit_message_request( const struct post_quit_message_request *req )
2475 fprintf( stderr, " exit_code=%d", req->exit_code );
2478 static void dump_send_hardware_message_request( const struct send_hardware_message_request *req )
2480 fprintf( stderr, " id=%04x,", req->id );
2481 fprintf( stderr, " win=%08x,", req->win );
2482 fprintf( stderr, " msg=%08x,", req->msg );
2483 fprintf( stderr, " wparam=" );
2484 dump_uint64( &req->wparam );
2485 fprintf( stderr, "," );
2486 fprintf( stderr, " lparam=" );
2487 dump_uint64( &req->lparam );
2488 fprintf( stderr, "," );
2489 fprintf( stderr, " info=" );
2490 dump_uint64( &req->info );
2491 fprintf( stderr, "," );
2492 fprintf( stderr, " x=%d,", req->x );
2493 fprintf( stderr, " y=%d,", req->y );
2494 fprintf( stderr, " time=%08x", req->time );
2497 static void dump_get_message_request( const struct get_message_request *req )
2499 fprintf( stderr, " flags=%08x,", req->flags );
2500 fprintf( stderr, " get_win=%08x,", req->get_win );
2501 fprintf( stderr, " get_first=%08x,", req->get_first );
2502 fprintf( stderr, " get_last=%08x,", req->get_last );
2503 fprintf( stderr, " hw_id=%08x,", req->hw_id );
2504 fprintf( stderr, " wake_mask=%08x,", req->wake_mask );
2505 fprintf( stderr, " changed_mask=%08x", req->changed_mask );
2508 static void dump_get_message_reply( const struct get_message_reply *req )
2510 fprintf( stderr, " win=%08x,", req->win );
2511 fprintf( stderr, " msg=%08x,", req->msg );
2512 fprintf( stderr, " wparam=" );
2513 dump_uint64( &req->wparam );
2514 fprintf( stderr, "," );
2515 fprintf( stderr, " lparam=" );
2516 dump_uint64( &req->lparam );
2517 fprintf( stderr, "," );
2518 fprintf( stderr, " type=%d,", req->type );
2519 fprintf( stderr, " time=%08x,", req->time );
2520 fprintf( stderr, " active_hooks=%08x,", req->active_hooks );
2521 fprintf( stderr, " total=%u,", req->total );
2522 fprintf( stderr, " data=" );
2523 dump_varargs_message_data( cur_size );
2526 static void dump_reply_message_request( const struct reply_message_request *req )
2528 fprintf( stderr, " remove=%d,", req->remove );
2529 fprintf( stderr, " result=" );
2530 dump_uint64( &req->result );
2531 fprintf( stderr, "," );
2532 fprintf( stderr, " data=" );
2533 dump_varargs_bytes( cur_size );
2536 static void dump_accept_hardware_message_request( const struct accept_hardware_message_request *req )
2538 fprintf( stderr, " hw_id=%08x,", req->hw_id );
2539 fprintf( stderr, " remove=%d,", req->remove );
2540 fprintf( stderr, " new_win=%08x", req->new_win );
2543 static void dump_get_message_reply_request( const struct get_message_reply_request *req )
2545 fprintf( stderr, " cancel=%d", req->cancel );
2548 static void dump_get_message_reply_reply( const struct get_message_reply_reply *req )
2550 fprintf( stderr, " result=" );
2551 dump_uint64( &req->result );
2552 fprintf( stderr, "," );
2553 fprintf( stderr, " data=" );
2554 dump_varargs_bytes( cur_size );
2557 static void dump_set_win_timer_request( const struct set_win_timer_request *req )
2559 fprintf( stderr, " win=%08x,", req->win );
2560 fprintf( stderr, " msg=%08x,", req->msg );
2561 fprintf( stderr, " rate=%08x,", req->rate );
2562 fprintf( stderr, " id=" );
2563 dump_uint64( &req->id );
2564 fprintf( stderr, "," );
2565 fprintf( stderr, " lparam=" );
2566 dump_uint64( &req->lparam );
2569 static void dump_set_win_timer_reply( const struct set_win_timer_reply *req )
2571 fprintf( stderr, " id=" );
2572 dump_uint64( &req->id );
2575 static void dump_kill_win_timer_request( const struct kill_win_timer_request *req )
2577 fprintf( stderr, " win=%08x,", req->win );
2578 fprintf( stderr, " id=" );
2579 dump_uint64( &req->id );
2580 fprintf( stderr, "," );
2581 fprintf( stderr, " msg=%08x", req->msg );
2584 static void dump_is_window_hung_request( const struct is_window_hung_request *req )
2586 fprintf( stderr, " win=%08x", req->win );
2589 static void dump_is_window_hung_reply( const struct is_window_hung_reply *req )
2591 fprintf( stderr, " is_hung=%d", req->is_hung );
2594 static void dump_get_serial_info_request( const struct get_serial_info_request *req )
2596 fprintf( stderr, " handle=%04x", req->handle );
2599 static void dump_get_serial_info_reply( const struct get_serial_info_reply *req )
2601 fprintf( stderr, " readinterval=%08x,", req->readinterval );
2602 fprintf( stderr, " readconst=%08x,", req->readconst );
2603 fprintf( stderr, " readmult=%08x,", req->readmult );
2604 fprintf( stderr, " writeconst=%08x,", req->writeconst );
2605 fprintf( stderr, " writemult=%08x,", req->writemult );
2606 fprintf( stderr, " eventmask=%08x", req->eventmask );
2609 static void dump_set_serial_info_request( const struct set_serial_info_request *req )
2611 fprintf( stderr, " handle=%04x,", req->handle );
2612 fprintf( stderr, " flags=%d,", req->flags );
2613 fprintf( stderr, " readinterval=%08x,", req->readinterval );
2614 fprintf( stderr, " readconst=%08x,", req->readconst );
2615 fprintf( stderr, " readmult=%08x,", req->readmult );
2616 fprintf( stderr, " writeconst=%08x,", req->writeconst );
2617 fprintf( stderr, " writemult=%08x,", req->writemult );
2618 fprintf( stderr, " eventmask=%08x", req->eventmask );
2621 static void dump_register_async_request( const struct register_async_request *req )
2623 fprintf( stderr, " type=%d,", req->type );
2624 fprintf( stderr, " async=" );
2625 dump_async_data( &req->async );
2626 fprintf( stderr, "," );
2627 fprintf( stderr, " count=%d", req->count );
2630 static void dump_cancel_async_request( const struct cancel_async_request *req )
2632 fprintf( stderr, " handle=%04x", req->handle );
2635 static void dump_ioctl_request( const struct ioctl_request *req )
2637 fprintf( stderr, " code=" );
2638 dump_ioctl_code( &req->code );
2639 fprintf( stderr, "," );
2640 fprintf( stderr, " async=" );
2641 dump_async_data( &req->async );
2642 fprintf( stderr, "," );
2643 fprintf( stderr, " blocking=%d,", req->blocking );
2644 fprintf( stderr, " in_data=" );
2645 dump_varargs_bytes( cur_size );
2648 static void dump_ioctl_reply( const struct ioctl_reply *req )
2650 fprintf( stderr, " wait=%04x,", req->wait );
2651 fprintf( stderr, " options=%08x,", req->options );
2652 fprintf( stderr, " out_data=" );
2653 dump_varargs_bytes( cur_size );
2656 static void dump_get_ioctl_result_request( const struct get_ioctl_result_request *req )
2658 fprintf( stderr, " handle=%04x,", req->handle );
2659 fprintf( stderr, " user_arg=" );
2660 dump_uint64( &req->user_arg );
2663 static void dump_get_ioctl_result_reply( const struct get_ioctl_result_reply *req )
2665 fprintf( stderr, " out_data=" );
2666 dump_varargs_bytes( cur_size );
2669 static void dump_create_named_pipe_request( const struct create_named_pipe_request *req )
2671 fprintf( stderr, " access=%08x,", req->access );
2672 fprintf( stderr, " attributes=%08x,", req->attributes );
2673 fprintf( stderr, " rootdir=%04x,", req->rootdir );
2674 fprintf( stderr, " options=%08x,", req->options );
2675 fprintf( stderr, " maxinstances=%08x,", req->maxinstances );
2676 fprintf( stderr, " outsize=%08x,", req->outsize );
2677 fprintf( stderr, " insize=%08x,", req->insize );
2678 fprintf( stderr, " timeout=" );
2679 dump_timeout( &req->timeout );
2680 fprintf( stderr, "," );
2681 fprintf( stderr, " flags=%08x,", req->flags );
2682 fprintf( stderr, " name=" );
2683 dump_varargs_unicode_str( cur_size );
2686 static void dump_create_named_pipe_reply( const struct create_named_pipe_reply *req )
2688 fprintf( stderr, " handle=%04x", req->handle );
2691 static void dump_get_named_pipe_info_request( const struct get_named_pipe_info_request *req )
2693 fprintf( stderr, " handle=%04x", req->handle );
2696 static void dump_get_named_pipe_info_reply( const struct get_named_pipe_info_reply *req )
2698 fprintf( stderr, " flags=%08x,", req->flags );
2699 fprintf( stderr, " maxinstances=%08x,", req->maxinstances );
2700 fprintf( stderr, " instances=%08x,", req->instances );
2701 fprintf( stderr, " outsize=%08x,", req->outsize );
2702 fprintf( stderr, " insize=%08x", req->insize );
2705 static void dump_create_window_request( const struct create_window_request *req )
2707 fprintf( stderr, " parent=%08x,", req->parent );
2708 fprintf( stderr, " owner=%08x,", req->owner );
2709 fprintf( stderr, " atom=%04x,", req->atom );
2710 fprintf( stderr, " instance=" );
2711 dump_uint64( &req->instance );
2712 fprintf( stderr, "," );
2713 fprintf( stderr, " class=" );
2714 dump_varargs_unicode_str( cur_size );
2717 static void dump_create_window_reply( const struct create_window_reply *req )
2719 fprintf( stderr, " handle=%08x,", req->handle );
2720 fprintf( stderr, " parent=%08x,", req->parent );
2721 fprintf( stderr, " owner=%08x,", req->owner );
2722 fprintf( stderr, " extra=%d,", req->extra );
2723 fprintf( stderr, " class_ptr=" );
2724 dump_uint64( &req->class_ptr );
2727 static void dump_destroy_window_request( const struct destroy_window_request *req )
2729 fprintf( stderr, " handle=%08x", req->handle );
2732 static void dump_get_desktop_window_request( const struct get_desktop_window_request *req )
2734 fprintf( stderr, " force=%d", req->force );
2737 static void dump_get_desktop_window_reply( const struct get_desktop_window_reply *req )
2739 fprintf( stderr, " top_window=%08x,", req->top_window );
2740 fprintf( stderr, " msg_window=%08x", req->msg_window );
2743 static void dump_set_window_owner_request( const struct set_window_owner_request *req )
2745 fprintf( stderr, " handle=%08x,", req->handle );
2746 fprintf( stderr, " owner=%08x", req->owner );
2749 static void dump_set_window_owner_reply( const struct set_window_owner_reply *req )
2751 fprintf( stderr, " full_owner=%08x,", req->full_owner );
2752 fprintf( stderr, " prev_owner=%08x", req->prev_owner );
2755 static void dump_get_window_info_request( const struct get_window_info_request *req )
2757 fprintf( stderr, " handle=%08x", req->handle );
2760 static void dump_get_window_info_reply( const struct get_window_info_reply *req )
2762 fprintf( stderr, " full_handle=%08x,", req->full_handle );
2763 fprintf( stderr, " last_active=%08x,", req->last_active );
2764 fprintf( stderr, " pid=%04x,", req->pid );
2765 fprintf( stderr, " tid=%04x,", req->tid );
2766 fprintf( stderr, " atom=%04x,", req->atom );
2767 fprintf( stderr, " is_unicode=%d", req->is_unicode );
2770 static void dump_set_window_info_request( const struct set_window_info_request *req )
2772 fprintf( stderr, " flags=%04x,", req->flags );
2773 fprintf( stderr, " is_unicode=%d,", req->is_unicode );
2774 fprintf( stderr, " handle=%08x,", req->handle );
2775 fprintf( stderr, " style=%08x,", req->style );
2776 fprintf( stderr, " ex_style=%08x,", req->ex_style );
2777 fprintf( stderr, " id=%08x,", req->id );
2778 fprintf( stderr, " instance=" );
2779 dump_uint64( &req->instance );
2780 fprintf( stderr, "," );
2781 fprintf( stderr, " user_data=" );
2782 dump_uint64( &req->user_data );
2783 fprintf( stderr, "," );
2784 fprintf( stderr, " extra_offset=%d,", req->extra_offset );
2785 fprintf( stderr, " extra_size=%u,", req->extra_size );
2786 fprintf( stderr, " extra_value=" );
2787 dump_uint64( &req->extra_value );
2790 static void dump_set_window_info_reply( const struct set_window_info_reply *req )
2792 fprintf( stderr, " old_style=%08x,", req->old_style );
2793 fprintf( stderr, " old_ex_style=%08x,", req->old_ex_style );
2794 fprintf( stderr, " old_instance=" );
2795 dump_uint64( &req->old_instance );
2796 fprintf( stderr, "," );
2797 fprintf( stderr, " old_user_data=" );
2798 dump_uint64( &req->old_user_data );
2799 fprintf( stderr, "," );
2800 fprintf( stderr, " old_extra_value=" );
2801 dump_uint64( &req->old_extra_value );
2802 fprintf( stderr, "," );
2803 fprintf( stderr, " old_id=%08x", req->old_id );
2806 static void dump_set_parent_request( const struct set_parent_request *req )
2808 fprintf( stderr, " handle=%08x,", req->handle );
2809 fprintf( stderr, " parent=%08x", req->parent );
2812 static void dump_set_parent_reply( const struct set_parent_reply *req )
2814 fprintf( stderr, " old_parent=%08x,", req->old_parent );
2815 fprintf( stderr, " full_parent=%08x", req->full_parent );
2818 static void dump_get_window_parents_request( const struct get_window_parents_request *req )
2820 fprintf( stderr, " handle=%08x", req->handle );
2823 static void dump_get_window_parents_reply( const struct get_window_parents_reply *req )
2825 fprintf( stderr, " count=%d,", req->count );
2826 fprintf( stderr, " parents=" );
2827 dump_varargs_user_handles( cur_size );
2830 static void dump_get_window_children_request( const struct get_window_children_request *req )
2832 fprintf( stderr, " desktop=%04x,", req->desktop );
2833 fprintf( stderr, " parent=%08x,", req->parent );
2834 fprintf( stderr, " atom=%04x,", req->atom );
2835 fprintf( stderr, " tid=%04x,", req->tid );
2836 fprintf( stderr, " class=" );
2837 dump_varargs_unicode_str( cur_size );
2840 static void dump_get_window_children_reply( const struct get_window_children_reply *req )
2842 fprintf( stderr, " count=%d,", req->count );
2843 fprintf( stderr, " children=" );
2844 dump_varargs_user_handles( cur_size );
2847 static void dump_get_window_children_from_point_request( const struct get_window_children_from_point_request *req )
2849 fprintf( stderr, " parent=%08x,", req->parent );
2850 fprintf( stderr, " x=%d,", req->x );
2851 fprintf( stderr, " y=%d", req->y );
2854 static void dump_get_window_children_from_point_reply( const struct get_window_children_from_point_reply *req )
2856 fprintf( stderr, " count=%d,", req->count );
2857 fprintf( stderr, " children=" );
2858 dump_varargs_user_handles( cur_size );
2861 static void dump_get_window_tree_request( const struct get_window_tree_request *req )
2863 fprintf( stderr, " handle=%08x", req->handle );
2866 static void dump_get_window_tree_reply( const struct get_window_tree_reply *req )
2868 fprintf( stderr, " parent=%08x,", req->parent );
2869 fprintf( stderr, " owner=%08x,", req->owner );
2870 fprintf( stderr, " next_sibling=%08x,", req->next_sibling );
2871 fprintf( stderr, " prev_sibling=%08x,", req->prev_sibling );
2872 fprintf( stderr, " first_sibling=%08x,", req->first_sibling );
2873 fprintf( stderr, " last_sibling=%08x,", req->last_sibling );
2874 fprintf( stderr, " first_child=%08x,", req->first_child );
2875 fprintf( stderr, " last_child=%08x", req->last_child );
2878 static void dump_set_window_pos_request( const struct set_window_pos_request *req )
2880 fprintf( stderr, " flags=%08x,", req->flags );
2881 fprintf( stderr, " handle=%08x,", req->handle );
2882 fprintf( stderr, " previous=%08x,", req->previous );
2883 fprintf( stderr, " window=" );
2884 dump_rectangle( &req->window );
2885 fprintf( stderr, "," );
2886 fprintf( stderr, " client=" );
2887 dump_rectangle( &req->client );
2888 fprintf( stderr, "," );
2889 fprintf( stderr, " valid=" );
2890 dump_varargs_rectangles( cur_size );
2893 static void dump_set_window_pos_reply( const struct set_window_pos_reply *req )
2895 fprintf( stderr, " new_style=%08x,", req->new_style );
2896 fprintf( stderr, " new_ex_style=%08x", req->new_ex_style );
2899 static void dump_get_window_rectangles_request( const struct get_window_rectangles_request *req )
2901 fprintf( stderr, " handle=%08x", req->handle );
2904 static void dump_get_window_rectangles_reply( const struct get_window_rectangles_reply *req )
2906 fprintf( stderr, " window=" );
2907 dump_rectangle( &req->window );
2908 fprintf( stderr, "," );
2909 fprintf( stderr, " visible=" );
2910 dump_rectangle( &req->visible );
2911 fprintf( stderr, "," );
2912 fprintf( stderr, " client=" );
2913 dump_rectangle( &req->client );
2916 static void dump_get_window_text_request( const struct get_window_text_request *req )
2918 fprintf( stderr, " handle=%08x", req->handle );
2921 static void dump_get_window_text_reply( const struct get_window_text_reply *req )
2923 fprintf( stderr, " text=" );
2924 dump_varargs_unicode_str( cur_size );
2927 static void dump_set_window_text_request( const struct set_window_text_request *req )
2929 fprintf( stderr, " handle=%08x,", req->handle );
2930 fprintf( stderr, " text=" );
2931 dump_varargs_unicode_str( cur_size );
2934 static void dump_get_windows_offset_request( const struct get_windows_offset_request *req )
2936 fprintf( stderr, " from=%08x,", req->from );
2937 fprintf( stderr, " to=%08x", req->to );
2940 static void dump_get_windows_offset_reply( const struct get_windows_offset_reply *req )
2942 fprintf( stderr, " x=%d,", req->x );
2943 fprintf( stderr, " y=%d", req->y );
2946 static void dump_get_visible_region_request( const struct get_visible_region_request *req )
2948 fprintf( stderr, " window=%08x,", req->window );
2949 fprintf( stderr, " flags=%08x", req->flags );
2952 static void dump_get_visible_region_reply( const struct get_visible_region_reply *req )
2954 fprintf( stderr, " top_win=%08x,", req->top_win );
2955 fprintf( stderr, " top_rect=" );
2956 dump_rectangle( &req->top_rect );
2957 fprintf( stderr, "," );
2958 fprintf( stderr, " win_rect=" );
2959 dump_rectangle( &req->win_rect );
2960 fprintf( stderr, "," );
2961 fprintf( stderr, " total_size=%u,", req->total_size );
2962 fprintf( stderr, " region=" );
2963 dump_varargs_rectangles( cur_size );
2966 static void dump_get_window_region_request( const struct get_window_region_request *req )
2968 fprintf( stderr, " window=%08x", req->window );
2971 static void dump_get_window_region_reply( const struct get_window_region_reply *req )
2973 fprintf( stderr, " total_size=%u,", req->total_size );
2974 fprintf( stderr, " region=" );
2975 dump_varargs_rectangles( cur_size );
2978 static void dump_set_window_region_request( const struct set_window_region_request *req )
2980 fprintf( stderr, " window=%08x,", req->window );
2981 fprintf( stderr, " redraw=%d,", req->redraw );
2982 fprintf( stderr, " region=" );
2983 dump_varargs_rectangles( cur_size );
2986 static void dump_get_update_region_request( const struct get_update_region_request *req )
2988 fprintf( stderr, " window=%08x,", req->window );
2989 fprintf( stderr, " from_child=%08x,", req->from_child );
2990 fprintf( stderr, " flags=%08x", req->flags );
2993 static void dump_get_update_region_reply( const struct get_update_region_reply *req )
2995 fprintf( stderr, " child=%08x,", req->child );
2996 fprintf( stderr, " flags=%08x,", req->flags );
2997 fprintf( stderr, " total_size=%u,", req->total_size );
2998 fprintf( stderr, " region=" );
2999 dump_varargs_rectangles( cur_size );
3002 static void dump_update_window_zorder_request( const struct update_window_zorder_request *req )
3004 fprintf( stderr, " window=%08x,", req->window );
3005 fprintf( stderr, " rect=" );
3006 dump_rectangle( &req->rect );
3009 static void dump_redraw_window_request( const struct redraw_window_request *req )
3011 fprintf( stderr, " window=%08x,", req->window );
3012 fprintf( stderr, " flags=%08x,", req->flags );
3013 fprintf( stderr, " region=" );
3014 dump_varargs_rectangles( cur_size );
3017 static void dump_set_window_property_request( const struct set_window_property_request *req )
3019 fprintf( stderr, " window=%08x,", req->window );
3020 fprintf( stderr, " data=" );
3021 dump_uint64( &req->data );
3022 fprintf( stderr, "," );
3023 fprintf( stderr, " atom=%04x,", req->atom );
3024 fprintf( stderr, " name=" );
3025 dump_varargs_unicode_str( cur_size );
3028 static void dump_remove_window_property_request( const struct remove_window_property_request *req )
3030 fprintf( stderr, " window=%08x,", req->window );
3031 fprintf( stderr, " atom=%04x,", req->atom );
3032 fprintf( stderr, " name=" );
3033 dump_varargs_unicode_str( cur_size );
3036 static void dump_remove_window_property_reply( const struct remove_window_property_reply *req )
3038 fprintf( stderr, " data=" );
3039 dump_uint64( &req->data );
3042 static void dump_get_window_property_request( const struct get_window_property_request *req )
3044 fprintf( stderr, " window=%08x,", req->window );
3045 fprintf( stderr, " atom=%04x,", req->atom );
3046 fprintf( stderr, " name=" );
3047 dump_varargs_unicode_str( cur_size );
3050 static void dump_get_window_property_reply( const struct get_window_property_reply *req )
3052 fprintf( stderr, " data=" );
3053 dump_uint64( &req->data );
3056 static void dump_get_window_properties_request( const struct get_window_properties_request *req )
3058 fprintf( stderr, " window=%08x", req->window );
3061 static void dump_get_window_properties_reply( const struct get_window_properties_reply *req )
3063 fprintf( stderr, " total=%d,", req->total );
3064 fprintf( stderr, " props=" );
3065 dump_varargs_properties( cur_size );
3068 static void dump_create_winstation_request( const struct create_winstation_request *req )
3070 fprintf( stderr, " flags=%08x,", req->flags );
3071 fprintf( stderr, " access=%08x,", req->access );
3072 fprintf( stderr, " attributes=%08x,", req->attributes );
3073 fprintf( stderr, " name=" );
3074 dump_varargs_unicode_str( cur_size );
3077 static void dump_create_winstation_reply( const struct create_winstation_reply *req )
3079 fprintf( stderr, " handle=%04x", req->handle );
3082 static void dump_open_winstation_request( const struct open_winstation_request *req )
3084 fprintf( stderr, " access=%08x,", req->access );
3085 fprintf( stderr, " attributes=%08x,", req->attributes );
3086 fprintf( stderr, " name=" );
3087 dump_varargs_unicode_str( cur_size );
3090 static void dump_open_winstation_reply( const struct open_winstation_reply *req )
3092 fprintf( stderr, " handle=%04x", req->handle );
3095 static void dump_close_winstation_request( const struct close_winstation_request *req )
3097 fprintf( stderr, " handle=%04x", req->handle );
3100 static void dump_get_process_winstation_request( const struct get_process_winstation_request *req )
3104 static void dump_get_process_winstation_reply( const struct get_process_winstation_reply *req )
3106 fprintf( stderr, " handle=%04x", req->handle );
3109 static void dump_set_process_winstation_request( const struct set_process_winstation_request *req )
3111 fprintf( stderr, " handle=%04x", req->handle );
3114 static void dump_enum_winstation_request( const struct enum_winstation_request *req )
3116 fprintf( stderr, " index=%08x", req->index );
3119 static void dump_enum_winstation_reply( const struct enum_winstation_reply *req )
3121 fprintf( stderr, " next=%08x,", req->next );
3122 fprintf( stderr, " name=" );
3123 dump_varargs_unicode_str( cur_size );
3126 static void dump_create_desktop_request( const struct create_desktop_request *req )
3128 fprintf( stderr, " flags=%08x,", req->flags );
3129 fprintf( stderr, " access=%08x,", req->access );
3130 fprintf( stderr, " attributes=%08x,", req->attributes );
3131 fprintf( stderr, " name=" );
3132 dump_varargs_unicode_str( cur_size );
3135 static void dump_create_desktop_reply( const struct create_desktop_reply *req )
3137 fprintf( stderr, " handle=%04x", req->handle );
3140 static void dump_open_desktop_request( const struct open_desktop_request *req )
3142 fprintf( stderr, " winsta=%04x,", req->winsta );
3143 fprintf( stderr, " flags=%08x,", req->flags );
3144 fprintf( stderr, " access=%08x,", req->access );
3145 fprintf( stderr, " attributes=%08x,", req->attributes );
3146 fprintf( stderr, " name=" );
3147 dump_varargs_unicode_str( cur_size );
3150 static void dump_open_desktop_reply( const struct open_desktop_reply *req )
3152 fprintf( stderr, " handle=%04x", req->handle );
3155 static void dump_close_desktop_request( const struct close_desktop_request *req )
3157 fprintf( stderr, " handle=%04x", req->handle );
3160 static void dump_get_thread_desktop_request( const struct get_thread_desktop_request *req )
3162 fprintf( stderr, " tid=%04x", req->tid );
3165 static void dump_get_thread_desktop_reply( const struct get_thread_desktop_reply *req )
3167 fprintf( stderr, " handle=%04x", req->handle );
3170 static void dump_set_thread_desktop_request( const struct set_thread_desktop_request *req )
3172 fprintf( stderr, " handle=%04x", req->handle );
3175 static void dump_enum_desktop_request( const struct enum_desktop_request *req )
3177 fprintf( stderr, " winstation=%04x,", req->winstation );
3178 fprintf( stderr, " index=%08x", req->index );
3181 static void dump_enum_desktop_reply( const struct enum_desktop_reply *req )
3183 fprintf( stderr, " next=%08x,", req->next );
3184 fprintf( stderr, " name=" );
3185 dump_varargs_unicode_str( cur_size );
3188 static void dump_set_user_object_info_request( const struct set_user_object_info_request *req )
3190 fprintf( stderr, " handle=%04x,", req->handle );
3191 fprintf( stderr, " flags=%08x,", req->flags );
3192 fprintf( stderr, " obj_flags=%08x", req->obj_flags );
3195 static void dump_set_user_object_info_reply( const struct set_user_object_info_reply *req )
3197 fprintf( stderr, " is_desktop=%d,", req->is_desktop );
3198 fprintf( stderr, " old_obj_flags=%08x,", req->old_obj_flags );
3199 fprintf( stderr, " name=" );
3200 dump_varargs_unicode_str( cur_size );
3203 static void dump_attach_thread_input_request( const struct attach_thread_input_request *req )
3205 fprintf( stderr, " tid_from=%04x,", req->tid_from );
3206 fprintf( stderr, " tid_to=%04x,", req->tid_to );
3207 fprintf( stderr, " attach=%d", req->attach );
3210 static void dump_get_thread_input_request( const struct get_thread_input_request *req )
3212 fprintf( stderr, " tid=%04x", req->tid );
3215 static void dump_get_thread_input_reply( const struct get_thread_input_reply *req )
3217 fprintf( stderr, " focus=%08x,", req->focus );
3218 fprintf( stderr, " capture=%08x,", req->capture );
3219 fprintf( stderr, " active=%08x,", req->active );
3220 fprintf( stderr, " foreground=%08x,", req->foreground );
3221 fprintf( stderr, " menu_owner=%08x,", req->menu_owner );
3222 fprintf( stderr, " move_size=%08x,", req->move_size );
3223 fprintf( stderr, " caret=%08x,", req->caret );
3224 fprintf( stderr, " rect=" );
3225 dump_rectangle( &req->rect );
3228 static void dump_get_last_input_time_request( const struct get_last_input_time_request *req )
3232 static void dump_get_last_input_time_reply( const struct get_last_input_time_reply *req )
3234 fprintf( stderr, " time=%08x", req->time );
3237 static void dump_get_key_state_request( const struct get_key_state_request *req )
3239 fprintf( stderr, " tid=%04x,", req->tid );
3240 fprintf( stderr, " key=%d", req->key );
3243 static void dump_get_key_state_reply( const struct get_key_state_reply *req )
3245 fprintf( stderr, " state=%02x,", req->state );
3246 fprintf( stderr, " keystate=" );
3247 dump_varargs_bytes( cur_size );
3250 static void dump_set_key_state_request( const struct set_key_state_request *req )
3252 fprintf( stderr, " tid=%04x,", req->tid );
3253 fprintf( stderr, " keystate=" );
3254 dump_varargs_bytes( cur_size );
3257 static void dump_set_foreground_window_request( const struct set_foreground_window_request *req )
3259 fprintf( stderr, " handle=%08x", req->handle );
3262 static void dump_set_foreground_window_reply( const struct set_foreground_window_reply *req )
3264 fprintf( stderr, " previous=%08x,", req->previous );
3265 fprintf( stderr, " send_msg_old=%d,", req->send_msg_old );
3266 fprintf( stderr, " send_msg_new=%d", req->send_msg_new );
3269 static void dump_set_focus_window_request( const struct set_focus_window_request *req )
3271 fprintf( stderr, " handle=%08x", req->handle );
3274 static void dump_set_focus_window_reply( const struct set_focus_window_reply *req )
3276 fprintf( stderr, " previous=%08x", req->previous );
3279 static void dump_set_active_window_request( const struct set_active_window_request *req )
3281 fprintf( stderr, " handle=%08x", req->handle );
3284 static void dump_set_active_window_reply( const struct set_active_window_reply *req )
3286 fprintf( stderr, " previous=%08x", req->previous );
3289 static void dump_set_capture_window_request( const struct set_capture_window_request *req )
3291 fprintf( stderr, " handle=%08x,", req->handle );
3292 fprintf( stderr, " flags=%08x", req->flags );
3295 static void dump_set_capture_window_reply( const struct set_capture_window_reply *req )
3297 fprintf( stderr, " previous=%08x,", req->previous );
3298 fprintf( stderr, " full_handle=%08x", req->full_handle );
3301 static void dump_set_caret_window_request( const struct set_caret_window_request *req )
3303 fprintf( stderr, " handle=%08x,", req->handle );
3304 fprintf( stderr, " width=%d,", req->width );
3305 fprintf( stderr, " height=%d", req->height );
3308 static void dump_set_caret_window_reply( const struct set_caret_window_reply *req )
3310 fprintf( stderr, " previous=%08x,", req->previous );
3311 fprintf( stderr, " old_rect=" );
3312 dump_rectangle( &req->old_rect );
3313 fprintf( stderr, "," );
3314 fprintf( stderr, " old_hide=%d,", req->old_hide );
3315 fprintf( stderr, " old_state=%d", req->old_state );
3318 static void dump_set_caret_info_request( const struct set_caret_info_request *req )
3320 fprintf( stderr, " flags=%08x,", req->flags );
3321 fprintf( stderr, " handle=%08x,", req->handle );
3322 fprintf( stderr, " x=%d,", req->x );
3323 fprintf( stderr, " y=%d,", req->y );
3324 fprintf( stderr, " hide=%d,", req->hide );
3325 fprintf( stderr, " state=%d", req->state );
3328 static void dump_set_caret_info_reply( const struct set_caret_info_reply *req )
3330 fprintf( stderr, " full_handle=%08x,", req->full_handle );
3331 fprintf( stderr, " old_rect=" );
3332 dump_rectangle( &req->old_rect );
3333 fprintf( stderr, "," );
3334 fprintf( stderr, " old_hide=%d,", req->old_hide );
3335 fprintf( stderr, " old_state=%d", req->old_state );
3338 static void dump_set_hook_request( const struct set_hook_request *req )
3340 fprintf( stderr, " id=%d,", req->id );
3341 fprintf( stderr, " pid=%04x,", req->pid );
3342 fprintf( stderr, " tid=%04x,", req->tid );
3343 fprintf( stderr, " event_min=%d,", req->event_min );
3344 fprintf( stderr, " event_max=%d,", req->event_max );
3345 fprintf( stderr, " proc=" );
3346 dump_uint64( &req->proc );
3347 fprintf( stderr, "," );
3348 fprintf( stderr, " flags=%d,", req->flags );
3349 fprintf( stderr, " unicode=%d,", req->unicode );
3350 fprintf( stderr, " module=" );
3351 dump_varargs_unicode_str( cur_size );
3354 static void dump_set_hook_reply( const struct set_hook_reply *req )
3356 fprintf( stderr, " handle=%08x,", req->handle );
3357 fprintf( stderr, " active_hooks=%08x", req->active_hooks );
3360 static void dump_remove_hook_request( const struct remove_hook_request *req )
3362 fprintf( stderr, " handle=%08x,", req->handle );
3363 fprintf( stderr, " proc=" );
3364 dump_uint64( &req->proc );
3365 fprintf( stderr, "," );
3366 fprintf( stderr, " id=%d", req->id );
3369 static void dump_remove_hook_reply( const struct remove_hook_reply *req )
3371 fprintf( stderr, " active_hooks=%08x", req->active_hooks );
3374 static void dump_start_hook_chain_request( const struct start_hook_chain_request *req )
3376 fprintf( stderr, " id=%d,", req->id );
3377 fprintf( stderr, " event=%d,", req->event );
3378 fprintf( stderr, " window=%08x,", req->window );
3379 fprintf( stderr, " object_id=%d,", req->object_id );
3380 fprintf( stderr, " child_id=%d", req->child_id );
3383 static void dump_start_hook_chain_reply( const struct start_hook_chain_reply *req )
3385 fprintf( stderr, " handle=%08x,", req->handle );
3386 fprintf( stderr, " pid=%04x,", req->pid );
3387 fprintf( stderr, " tid=%04x,", req->tid );
3388 fprintf( stderr, " unicode=%d,", req->unicode );
3389 fprintf( stderr, " proc=" );
3390 dump_uint64( &req->proc );
3391 fprintf( stderr, "," );
3392 fprintf( stderr, " active_hooks=%08x,", req->active_hooks );
3393 fprintf( stderr, " module=" );
3394 dump_varargs_unicode_str( cur_size );
3397 static void dump_finish_hook_chain_request( const struct finish_hook_chain_request *req )
3399 fprintf( stderr, " id=%d", req->id );
3402 static void dump_get_hook_info_request( const struct get_hook_info_request *req )
3404 fprintf( stderr, " handle=%08x,", req->handle );
3405 fprintf( stderr, " get_next=%d,", req->get_next );
3406 fprintf( stderr, " event=%d,", req->event );
3407 fprintf( stderr, " window=%08x,", req->window );
3408 fprintf( stderr, " object_id=%d,", req->object_id );
3409 fprintf( stderr, " child_id=%d", req->child_id );
3412 static void dump_get_hook_info_reply( const struct get_hook_info_reply *req )
3414 fprintf( stderr, " handle=%08x,", req->handle );
3415 fprintf( stderr, " id=%d,", req->id );
3416 fprintf( stderr, " pid=%04x,", req->pid );
3417 fprintf( stderr, " tid=%04x,", req->tid );
3418 fprintf( stderr, " proc=" );
3419 dump_uint64( &req->proc );
3420 fprintf( stderr, "," );
3421 fprintf( stderr, " unicode=%d,", req->unicode );
3422 fprintf( stderr, " module=" );
3423 dump_varargs_unicode_str( cur_size );
3426 static void dump_create_class_request( const struct create_class_request *req )
3428 fprintf( stderr, " local=%d,", req->local );
3429 fprintf( stderr, " atom=%04x,", req->atom );
3430 fprintf( stderr, " style=%08x,", req->style );
3431 fprintf( stderr, " instance=" );
3432 dump_uint64( &req->instance );
3433 fprintf( stderr, "," );
3434 fprintf( stderr, " extra=%d,", req->extra );
3435 fprintf( stderr, " win_extra=%d,", req->win_extra );
3436 fprintf( stderr, " client_ptr=" );
3437 dump_uint64( &req->client_ptr );
3438 fprintf( stderr, "," );
3439 fprintf( stderr, " name=" );
3440 dump_varargs_unicode_str( cur_size );
3443 static void dump_create_class_reply( const struct create_class_reply *req )
3445 fprintf( stderr, " atom=%04x", req->atom );
3448 static void dump_destroy_class_request( const struct destroy_class_request *req )
3450 fprintf( stderr, " atom=%04x,", req->atom );
3451 fprintf( stderr, " instance=" );
3452 dump_uint64( &req->instance );
3453 fprintf( stderr, "," );
3454 fprintf( stderr, " name=" );
3455 dump_varargs_unicode_str( cur_size );
3458 static void dump_destroy_class_reply( const struct destroy_class_reply *req )
3460 fprintf( stderr, " client_ptr=" );
3461 dump_uint64( &req->client_ptr );
3464 static void dump_set_class_info_request( const struct set_class_info_request *req )
3466 fprintf( stderr, " window=%08x,", req->window );
3467 fprintf( stderr, " flags=%08x,", req->flags );
3468 fprintf( stderr, " atom=%04x,", req->atom );
3469 fprintf( stderr, " style=%08x,", req->style );
3470 fprintf( stderr, " win_extra=%d,", req->win_extra );
3471 fprintf( stderr, " instance=" );
3472 dump_uint64( &req->instance );
3473 fprintf( stderr, "," );
3474 fprintf( stderr, " extra_offset=%d,", req->extra_offset );
3475 fprintf( stderr, " extra_size=%u,", req->extra_size );
3476 fprintf( stderr, " extra_value=" );
3477 dump_uint64( &req->extra_value );
3480 static void dump_set_class_info_reply( const struct set_class_info_reply *req )
3482 fprintf( stderr, " old_atom=%04x,", req->old_atom );
3483 fprintf( stderr, " old_style=%08x,", req->old_style );
3484 fprintf( stderr, " old_extra=%d,", req->old_extra );
3485 fprintf( stderr, " old_win_extra=%d,", req->old_win_extra );
3486 fprintf( stderr, " old_instance=" );
3487 dump_uint64( &req->old_instance );
3488 fprintf( stderr, "," );
3489 fprintf( stderr, " old_extra_value=" );
3490 dump_uint64( &req->old_extra_value );
3493 static void dump_set_clipboard_info_request( const struct set_clipboard_info_request *req )
3495 fprintf( stderr, " flags=%08x,", req->flags );
3496 fprintf( stderr, " clipboard=%08x,", req->clipboard );
3497 fprintf( stderr, " owner=%08x,", req->owner );
3498 fprintf( stderr, " viewer=%08x,", req->viewer );
3499 fprintf( stderr, " seqno=%08x", req->seqno );
3502 static void dump_set_clipboard_info_reply( const struct set_clipboard_info_reply *req )
3504 fprintf( stderr, " flags=%08x,", req->flags );
3505 fprintf( stderr, " old_clipboard=%08x,", req->old_clipboard );
3506 fprintf( stderr, " old_owner=%08x,", req->old_owner );
3507 fprintf( stderr, " old_viewer=%08x,", req->old_viewer );
3508 fprintf( stderr, " seqno=%08x", req->seqno );
3511 static void dump_open_token_request( const struct open_token_request *req )
3513 fprintf( stderr, " handle=%04x,", req->handle );
3514 fprintf( stderr, " access=%08x,", req->access );
3515 fprintf( stderr, " attributes=%08x,", req->attributes );
3516 fprintf( stderr, " flags=%08x", req->flags );
3519 static void dump_open_token_reply( const struct open_token_reply *req )
3521 fprintf( stderr, " token=%04x", req->token );
3524 static void dump_set_global_windows_request( const struct set_global_windows_request *req )
3526 fprintf( stderr, " flags=%08x,", req->flags );
3527 fprintf( stderr, " shell_window=%08x,", req->shell_window );
3528 fprintf( stderr, " shell_listview=%08x,", req->shell_listview );
3529 fprintf( stderr, " progman_window=%08x,", req->progman_window );
3530 fprintf( stderr, " taskman_window=%08x", req->taskman_window );
3533 static void dump_set_global_windows_reply( const struct set_global_windows_reply *req )
3535 fprintf( stderr, " old_shell_window=%08x,", req->old_shell_window );
3536 fprintf( stderr, " old_shell_listview=%08x,", req->old_shell_listview );
3537 fprintf( stderr, " old_progman_window=%08x,", req->old_progman_window );
3538 fprintf( stderr, " old_taskman_window=%08x", req->old_taskman_window );
3541 static void dump_adjust_token_privileges_request( const struct adjust_token_privileges_request *req )
3543 fprintf( stderr, " handle=%04x,", req->handle );
3544 fprintf( stderr, " disable_all=%d,", req->disable_all );
3545 fprintf( stderr, " get_modified_state=%d,", req->get_modified_state );
3546 fprintf( stderr, " privileges=" );
3547 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
3550 static void dump_adjust_token_privileges_reply( const struct adjust_token_privileges_reply *req )
3552 fprintf( stderr, " len=%08x,", req->len );
3553 fprintf( stderr, " privileges=" );
3554 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
3557 static void dump_get_token_privileges_request( const struct get_token_privileges_request *req )
3559 fprintf( stderr, " handle=%04x", req->handle );
3562 static void dump_get_token_privileges_reply( const struct get_token_privileges_reply *req )
3564 fprintf( stderr, " len=%08x,", req->len );
3565 fprintf( stderr, " privileges=" );
3566 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
3569 static void dump_check_token_privileges_request( const struct check_token_privileges_request *req )
3571 fprintf( stderr, " handle=%04x,", req->handle );
3572 fprintf( stderr, " all_required=%d,", req->all_required );
3573 fprintf( stderr, " privileges=" );
3574 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
3577 static void dump_check_token_privileges_reply( const struct check_token_privileges_reply *req )
3579 fprintf( stderr, " has_privileges=%d,", req->has_privileges );
3580 fprintf( stderr, " privileges=" );
3581 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
3584 static void dump_duplicate_token_request( const struct duplicate_token_request *req )
3586 fprintf( stderr, " handle=%04x,", req->handle );
3587 fprintf( stderr, " access=%08x,", req->access );
3588 fprintf( stderr, " attributes=%08x,", req->attributes );
3589 fprintf( stderr, " primary=%d,", req->primary );
3590 fprintf( stderr, " impersonation_level=%d", req->impersonation_level );
3593 static void dump_duplicate_token_reply( const struct duplicate_token_reply *req )
3595 fprintf( stderr, " new_handle=%04x", req->new_handle );
3598 static void dump_access_check_request( const struct access_check_request *req )
3600 fprintf( stderr, " handle=%04x,", req->handle );
3601 fprintf( stderr, " desired_access=%08x,", req->desired_access );
3602 fprintf( stderr, " mapping_read=%08x,", req->mapping_read );
3603 fprintf( stderr, " mapping_write=%08x,", req->mapping_write );
3604 fprintf( stderr, " mapping_execute=%08x,", req->mapping_execute );
3605 fprintf( stderr, " mapping_all=%08x,", req->mapping_all );
3606 fprintf( stderr, " sd=" );
3607 dump_varargs_security_descriptor( cur_size );
3610 static void dump_access_check_reply( const struct access_check_reply *req )
3612 fprintf( stderr, " access_granted=%08x,", req->access_granted );
3613 fprintf( stderr, " access_status=%08x,", req->access_status );
3614 fprintf( stderr, " privileges_len=%08x,", req->privileges_len );
3615 fprintf( stderr, " privileges=" );
3616 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
3619 static void dump_get_token_user_request( const struct get_token_user_request *req )
3621 fprintf( stderr, " handle=%04x", req->handle );
3624 static void dump_get_token_user_reply( const struct get_token_user_reply *req )
3626 fprintf( stderr, " user_len=%u,", req->user_len );
3627 fprintf( stderr, " user=" );
3628 dump_varargs_SID( cur_size );
3631 static void dump_get_token_groups_request( const struct get_token_groups_request *req )
3633 fprintf( stderr, " handle=%04x", req->handle );
3636 static void dump_get_token_groups_reply( const struct get_token_groups_reply *req )
3638 fprintf( stderr, " user_len=%u,", req->user_len );
3639 fprintf( stderr, " user=" );
3640 dump_varargs_token_groups( cur_size );
3643 static void dump_set_security_object_request( const struct set_security_object_request *req )
3645 fprintf( stderr, " handle=%04x,", req->handle );
3646 fprintf( stderr, " security_info=%08x,", req->security_info );
3647 fprintf( stderr, " sd=" );
3648 dump_varargs_security_descriptor( cur_size );
3651 static void dump_get_security_object_request( const struct get_security_object_request *req )
3653 fprintf( stderr, " handle=%04x,", req->handle );
3654 fprintf( stderr, " security_info=%08x", req->security_info );
3657 static void dump_get_security_object_reply( const struct get_security_object_reply *req )
3659 fprintf( stderr, " sd_len=%08x,", req->sd_len );
3660 fprintf( stderr, " sd=" );
3661 dump_varargs_security_descriptor( cur_size );
3664 static void dump_create_mailslot_request( const struct create_mailslot_request *req )
3666 fprintf( stderr, " access=%08x,", req->access );
3667 fprintf( stderr, " attributes=%08x,", req->attributes );
3668 fprintf( stderr, " rootdir=%04x,", req->rootdir );
3669 fprintf( stderr, " read_timeout=" );
3670 dump_timeout( &req->read_timeout );
3671 fprintf( stderr, "," );
3672 fprintf( stderr, " max_msgsize=%08x,", req->max_msgsize );
3673 fprintf( stderr, " name=" );
3674 dump_varargs_unicode_str( cur_size );
3677 static void dump_create_mailslot_reply( const struct create_mailslot_reply *req )
3679 fprintf( stderr, " handle=%04x", req->handle );
3682 static void dump_set_mailslot_info_request( const struct set_mailslot_info_request *req )
3684 fprintf( stderr, " handle=%04x,", req->handle );
3685 fprintf( stderr, " read_timeout=" );
3686 dump_timeout( &req->read_timeout );
3687 fprintf( stderr, "," );
3688 fprintf( stderr, " flags=%08x", req->flags );
3691 static void dump_set_mailslot_info_reply( const struct set_mailslot_info_reply *req )
3693 fprintf( stderr, " read_timeout=" );
3694 dump_timeout( &req->read_timeout );
3695 fprintf( stderr, "," );
3696 fprintf( stderr, " max_msgsize=%08x", req->max_msgsize );
3699 static void dump_create_directory_request( const struct create_directory_request *req )
3701 fprintf( stderr, " access=%08x,", req->access );
3702 fprintf( stderr, " attributes=%08x,", req->attributes );
3703 fprintf( stderr, " rootdir=%04x,", req->rootdir );
3704 fprintf( stderr, " directory_name=" );
3705 dump_varargs_unicode_str( cur_size );
3708 static void dump_create_directory_reply( const struct create_directory_reply *req )
3710 fprintf( stderr, " handle=%04x", req->handle );
3713 static void dump_open_directory_request( const struct open_directory_request *req )
3715 fprintf( stderr, " access=%08x,", req->access );
3716 fprintf( stderr, " attributes=%08x,", req->attributes );
3717 fprintf( stderr, " rootdir=%04x,", req->rootdir );
3718 fprintf( stderr, " directory_name=" );
3719 dump_varargs_unicode_str( cur_size );
3722 static void dump_open_directory_reply( const struct open_directory_reply *req )
3724 fprintf( stderr, " handle=%04x", req->handle );
3727 static void dump_get_directory_entry_request( const struct get_directory_entry_request *req )
3729 fprintf( stderr, " handle=%04x,", req->handle );
3730 fprintf( stderr, " index=%08x", req->index );
3733 static void dump_get_directory_entry_reply( const struct get_directory_entry_reply *req )
3735 fprintf( stderr, " name_len=%u,", req->name_len );
3736 fprintf( stderr, " name=" );
3737 dump_varargs_unicode_str( min(cur_size,req->name_len) );
3738 fputc( ',', stderr );
3739 fprintf( stderr, " type=" );
3740 dump_varargs_unicode_str( cur_size );
3743 static void dump_create_symlink_request( const struct create_symlink_request *req )
3745 fprintf( stderr, " access=%08x,", req->access );
3746 fprintf( stderr, " attributes=%08x,", req->attributes );
3747 fprintf( stderr, " rootdir=%04x,", req->rootdir );
3748 fprintf( stderr, " name_len=%u,", req->name_len );
3749 fprintf( stderr, " name=" );
3750 dump_varargs_unicode_str( min(cur_size,req->name_len) );
3751 fputc( ',', stderr );
3752 fprintf( stderr, " target_name=" );
3753 dump_varargs_unicode_str( cur_size );
3756 static void dump_create_symlink_reply( const struct create_symlink_reply *req )
3758 fprintf( stderr, " handle=%04x", req->handle );
3761 static void dump_open_symlink_request( const struct open_symlink_request *req )
3763 fprintf( stderr, " access=%08x,", req->access );
3764 fprintf( stderr, " attributes=%08x,", req->attributes );
3765 fprintf( stderr, " rootdir=%04x,", req->rootdir );
3766 fprintf( stderr, " name=" );
3767 dump_varargs_unicode_str( cur_size );
3770 static void dump_open_symlink_reply( const struct open_symlink_reply *req )
3772 fprintf( stderr, " handle=%04x", req->handle );
3775 static void dump_query_symlink_request( const struct query_symlink_request *req )
3777 fprintf( stderr, " handle=%04x", req->handle );
3780 static void dump_query_symlink_reply( const struct query_symlink_reply *req )
3782 fprintf( stderr, " target_name=" );
3783 dump_varargs_unicode_str( cur_size );
3786 static void dump_get_object_info_request( const struct get_object_info_request *req )
3788 fprintf( stderr, " handle=%04x", req->handle );
3791 static void dump_get_object_info_reply( const struct get_object_info_reply *req )
3793 fprintf( stderr, " access=%08x,", req->access );
3794 fprintf( stderr, " ref_count=%08x", req->ref_count );
3797 static void dump_unlink_object_request( const struct unlink_object_request *req )
3799 fprintf( stderr, " handle=%04x", req->handle );
3802 static void dump_get_token_impersonation_level_request( const struct get_token_impersonation_level_request *req )
3804 fprintf( stderr, " handle=%04x", req->handle );
3807 static void dump_get_token_impersonation_level_reply( const struct get_token_impersonation_level_reply *req )
3809 fprintf( stderr, " impersonation_level=%d", req->impersonation_level );
3812 static void dump_allocate_locally_unique_id_request( const struct allocate_locally_unique_id_request *req )
3816 static void dump_allocate_locally_unique_id_reply( const struct allocate_locally_unique_id_reply *req )
3818 fprintf( stderr, " luid=" );
3819 dump_luid( &req->luid );
3822 static void dump_create_device_manager_request( const struct create_device_manager_request *req )
3824 fprintf( stderr, " access=%08x,", req->access );
3825 fprintf( stderr, " attributes=%08x", req->attributes );
3828 static void dump_create_device_manager_reply( const struct create_device_manager_reply *req )
3830 fprintf( stderr, " handle=%04x", req->handle );
3833 static void dump_create_device_request( const struct create_device_request *req )
3835 fprintf( stderr, " access=%08x,", req->access );
3836 fprintf( stderr, " attributes=%08x,", req->attributes );
3837 fprintf( stderr, " rootdir=%04x,", req->rootdir );
3838 fprintf( stderr, " user_ptr=" );
3839 dump_uint64( &req->user_ptr );
3840 fprintf( stderr, "," );
3841 fprintf( stderr, " manager=%04x,", req->manager );
3842 fprintf( stderr, " name=" );
3843 dump_varargs_unicode_str( cur_size );
3846 static void dump_create_device_reply( const struct create_device_reply *req )
3848 fprintf( stderr, " handle=%04x", req->handle );
3851 static void dump_delete_device_request( const struct delete_device_request *req )
3853 fprintf( stderr, " handle=%04x", req->handle );
3856 static void dump_get_next_device_request_request( const struct get_next_device_request_request *req )
3858 fprintf( stderr, " manager=%04x,", req->manager );
3859 fprintf( stderr, " prev=%04x,", req->prev );
3860 fprintf( stderr, " status=%08x,", req->status );
3861 fprintf( stderr, " prev_data=" );
3862 dump_varargs_bytes( cur_size );
3865 static void dump_get_next_device_request_reply( const struct get_next_device_request_reply *req )
3867 fprintf( stderr, " next=%04x,", req->next );
3868 fprintf( stderr, " code=" );
3869 dump_ioctl_code( &req->code );
3870 fprintf( stderr, "," );
3871 fprintf( stderr, " user_ptr=" );
3872 dump_uint64( &req->user_ptr );
3873 fprintf( stderr, "," );
3874 fprintf( stderr, " in_size=%u,", req->in_size );
3875 fprintf( stderr, " out_size=%u,", req->out_size );
3876 fprintf( stderr, " next_data=" );
3877 dump_varargs_bytes( cur_size );
3880 static void dump_make_process_system_request( const struct make_process_system_request *req )
3884 static void dump_make_process_system_reply( const struct make_process_system_reply *req )
3886 fprintf( stderr, " event=%04x", req->event );
3889 static void dump_get_token_statistics_request( const struct get_token_statistics_request *req )
3891 fprintf( stderr, " handle=%04x", req->handle );
3894 static void dump_get_token_statistics_reply( const struct get_token_statistics_reply *req )
3896 fprintf( stderr, " token_id=" );
3897 dump_luid( &req->token_id );
3898 fprintf( stderr, "," );
3899 fprintf( stderr, " modified_id=" );
3900 dump_luid( &req->modified_id );
3901 fprintf( stderr, "," );
3902 fprintf( stderr, " primary=%d,", req->primary );
3903 fprintf( stderr, " impersonation_level=%d,", req->impersonation_level );
3904 fprintf( stderr, " group_count=%d,", req->group_count );
3905 fprintf( stderr, " privilege_count=%d", req->privilege_count );
3908 static void dump_create_completion_request( const struct create_completion_request *req )
3910 fprintf( stderr, " access=%08x,", req->access );
3911 fprintf( stderr, " attributes=%08x,", req->attributes );
3912 fprintf( stderr, " concurrent=%08x,", req->concurrent );
3913 fprintf( stderr, " rootdir=%04x,", req->rootdir );
3914 fprintf( stderr, " filename=" );
3915 dump_varargs_string( cur_size );
3918 static void dump_create_completion_reply( const struct create_completion_reply *req )
3920 fprintf( stderr, " handle=%04x", req->handle );
3923 static void dump_open_completion_request( const struct open_completion_request *req )
3925 fprintf( stderr, " access=%08x,", req->access );
3926 fprintf( stderr, " attributes=%08x,", req->attributes );
3927 fprintf( stderr, " rootdir=%04x,", req->rootdir );
3928 fprintf( stderr, " filename=" );
3929 dump_varargs_string( cur_size );
3932 static void dump_open_completion_reply( const struct open_completion_reply *req )
3934 fprintf( stderr, " handle=%04x", req->handle );
3937 static void dump_add_completion_request( const struct add_completion_request *req )
3939 fprintf( stderr, " handle=%04x,", req->handle );
3940 fprintf( stderr, " ckey=" );
3941 dump_uint64( &req->ckey );
3942 fprintf( stderr, "," );
3943 fprintf( stderr, " cvalue=" );
3944 dump_uint64( &req->cvalue );
3945 fprintf( stderr, "," );
3946 fprintf( stderr, " information=%08x,", req->information );
3947 fprintf( stderr, " status=%08x", req->status );
3950 static void dump_remove_completion_request( const struct remove_completion_request *req )
3952 fprintf( stderr, " handle=%04x", req->handle );
3955 static void dump_remove_completion_reply( const struct remove_completion_reply *req )
3957 fprintf( stderr, " ckey=" );
3958 dump_uint64( &req->ckey );
3959 fprintf( stderr, "," );
3960 fprintf( stderr, " cvalue=" );
3961 dump_uint64( &req->cvalue );
3962 fprintf( stderr, "," );
3963 fprintf( stderr, " information=%08x,", req->information );
3964 fprintf( stderr, " status=%08x", req->status );
3967 static void dump_query_completion_request( const struct query_completion_request *req )
3969 fprintf( stderr, " handle=%04x", req->handle );
3972 static void dump_query_completion_reply( const struct query_completion_reply *req )
3974 fprintf( stderr, " depth=%08x", req->depth );
3977 static void dump_set_completion_info_request( const struct set_completion_info_request *req )
3979 fprintf( stderr, " handle=%04x,", req->handle );
3980 fprintf( stderr, " ckey=" );
3981 dump_uint64( &req->ckey );
3982 fprintf( stderr, "," );
3983 fprintf( stderr, " chandle=%04x", req->chandle );
3986 static void dump_add_fd_completion_request( const struct add_fd_completion_request *req )
3988 fprintf( stderr, " handle=%04x,", req->handle );
3989 fprintf( stderr, " cvalue=" );
3990 dump_uint64( &req->cvalue );
3991 fprintf( stderr, "," );
3992 fprintf( stderr, " status=%08x,", req->status );
3993 fprintf( stderr, " information=%08x", req->information );
3996 static void dump_get_window_layered_info_request( const struct get_window_layered_info_request *req )
3998 fprintf( stderr, " handle=%08x", req->handle );
4001 static void dump_get_window_layered_info_reply( const struct get_window_layered_info_reply *req )
4003 fprintf( stderr, " color_key=%08x,", req->color_key );
4004 fprintf( stderr, " alpha=%08x,", req->alpha );
4005 fprintf( stderr, " flags=%08x", req->flags );
4008 static void dump_set_window_layered_info_request( const struct set_window_layered_info_request *req )
4010 fprintf( stderr, " handle=%08x,", req->handle );
4011 fprintf( stderr, " color_key=%08x,", req->color_key );
4012 fprintf( stderr, " alpha=%08x,", req->alpha );
4013 fprintf( stderr, " flags=%08x", req->flags );
4016 static const dump_func req_dumpers[REQ_NB_REQUESTS] = {
4017 (dump_func)dump_new_process_request,
4018 (dump_func)dump_get_new_process_info_request,
4019 (dump_func)dump_new_thread_request,
4020 (dump_func)dump_get_startup_info_request,
4021 (dump_func)dump_init_process_done_request,
4022 (dump_func)dump_init_thread_request,
4023 (dump_func)dump_terminate_process_request,
4024 (dump_func)dump_terminate_thread_request,
4025 (dump_func)dump_get_process_info_request,
4026 (dump_func)dump_set_process_info_request,
4027 (dump_func)dump_get_thread_info_request,
4028 (dump_func)dump_set_thread_info_request,
4029 (dump_func)dump_get_dll_info_request,
4030 (dump_func)dump_suspend_thread_request,
4031 (dump_func)dump_resume_thread_request,
4032 (dump_func)dump_load_dll_request,
4033 (dump_func)dump_unload_dll_request,
4034 (dump_func)dump_queue_apc_request,
4035 (dump_func)dump_get_apc_result_request,
4036 (dump_func)dump_close_handle_request,
4037 (dump_func)dump_set_handle_info_request,
4038 (dump_func)dump_dup_handle_request,
4039 (dump_func)dump_open_process_request,
4040 (dump_func)dump_open_thread_request,
4041 (dump_func)dump_select_request,
4042 (dump_func)dump_create_event_request,
4043 (dump_func)dump_event_op_request,
4044 (dump_func)dump_open_event_request,
4045 (dump_func)dump_create_mutex_request,
4046 (dump_func)dump_release_mutex_request,
4047 (dump_func)dump_open_mutex_request,
4048 (dump_func)dump_create_semaphore_request,
4049 (dump_func)dump_release_semaphore_request,
4050 (dump_func)dump_open_semaphore_request,
4051 (dump_func)dump_create_file_request,
4052 (dump_func)dump_open_file_object_request,
4053 (dump_func)dump_alloc_file_handle_request,
4054 (dump_func)dump_get_handle_fd_request,
4055 (dump_func)dump_flush_file_request,
4056 (dump_func)dump_lock_file_request,
4057 (dump_func)dump_unlock_file_request,
4058 (dump_func)dump_create_socket_request,
4059 (dump_func)dump_accept_socket_request,
4060 (dump_func)dump_set_socket_event_request,
4061 (dump_func)dump_get_socket_event_request,
4062 (dump_func)dump_enable_socket_event_request,
4063 (dump_func)dump_set_socket_deferred_request,
4064 (dump_func)dump_alloc_console_request,
4065 (dump_func)dump_free_console_request,
4066 (dump_func)dump_get_console_renderer_events_request,
4067 (dump_func)dump_open_console_request,
4068 (dump_func)dump_get_console_wait_event_request,
4069 (dump_func)dump_get_console_mode_request,
4070 (dump_func)dump_set_console_mode_request,
4071 (dump_func)dump_set_console_input_info_request,
4072 (dump_func)dump_get_console_input_info_request,
4073 (dump_func)dump_append_console_input_history_request,
4074 (dump_func)dump_get_console_input_history_request,
4075 (dump_func)dump_create_console_output_request,
4076 (dump_func)dump_set_console_output_info_request,
4077 (dump_func)dump_get_console_output_info_request,
4078 (dump_func)dump_write_console_input_request,
4079 (dump_func)dump_read_console_input_request,
4080 (dump_func)dump_write_console_output_request,
4081 (dump_func)dump_fill_console_output_request,
4082 (dump_func)dump_read_console_output_request,
4083 (dump_func)dump_move_console_output_request,
4084 (dump_func)dump_send_console_signal_request,
4085 (dump_func)dump_read_directory_changes_request,
4086 (dump_func)dump_read_change_request,
4087 (dump_func)dump_create_mapping_request,
4088 (dump_func)dump_open_mapping_request,
4089 (dump_func)dump_get_mapping_info_request,
4090 (dump_func)dump_get_mapping_committed_range_request,
4091 (dump_func)dump_add_mapping_committed_range_request,
4092 (dump_func)dump_create_snapshot_request,
4093 (dump_func)dump_next_process_request,
4094 (dump_func)dump_next_thread_request,
4095 (dump_func)dump_wait_debug_event_request,
4096 (dump_func)dump_queue_exception_event_request,
4097 (dump_func)dump_get_exception_status_request,
4098 (dump_func)dump_output_debug_string_request,
4099 (dump_func)dump_continue_debug_event_request,
4100 (dump_func)dump_debug_process_request,
4101 (dump_func)dump_debug_break_request,
4102 (dump_func)dump_set_debugger_kill_on_exit_request,
4103 (dump_func)dump_read_process_memory_request,
4104 (dump_func)dump_write_process_memory_request,
4105 (dump_func)dump_create_key_request,
4106 (dump_func)dump_open_key_request,
4107 (dump_func)dump_delete_key_request,
4108 (dump_func)dump_flush_key_request,
4109 (dump_func)dump_enum_key_request,
4110 (dump_func)dump_set_key_value_request,
4111 (dump_func)dump_get_key_value_request,
4112 (dump_func)dump_enum_key_value_request,
4113 (dump_func)dump_delete_key_value_request,
4114 (dump_func)dump_load_registry_request,
4115 (dump_func)dump_unload_registry_request,
4116 (dump_func)dump_save_registry_request,
4117 (dump_func)dump_set_registry_notification_request,
4118 (dump_func)dump_create_timer_request,
4119 (dump_func)dump_open_timer_request,
4120 (dump_func)dump_set_timer_request,
4121 (dump_func)dump_cancel_timer_request,
4122 (dump_func)dump_get_timer_info_request,
4123 (dump_func)dump_get_thread_context_request,
4124 (dump_func)dump_set_thread_context_request,
4125 (dump_func)dump_get_selector_entry_request,
4126 (dump_func)dump_add_atom_request,
4127 (dump_func)dump_delete_atom_request,
4128 (dump_func)dump_find_atom_request,
4129 (dump_func)dump_get_atom_information_request,
4130 (dump_func)dump_set_atom_information_request,
4131 (dump_func)dump_empty_atom_table_request,
4132 (dump_func)dump_init_atom_table_request,
4133 (dump_func)dump_get_msg_queue_request,
4134 (dump_func)dump_set_queue_fd_request,
4135 (dump_func)dump_set_queue_mask_request,
4136 (dump_func)dump_get_queue_status_request,
4137 (dump_func)dump_get_process_idle_event_request,
4138 (dump_func)dump_send_message_request,
4139 (dump_func)dump_post_quit_message_request,
4140 (dump_func)dump_send_hardware_message_request,
4141 (dump_func)dump_get_message_request,
4142 (dump_func)dump_reply_message_request,
4143 (dump_func)dump_accept_hardware_message_request,
4144 (dump_func)dump_get_message_reply_request,
4145 (dump_func)dump_set_win_timer_request,
4146 (dump_func)dump_kill_win_timer_request,
4147 (dump_func)dump_is_window_hung_request,
4148 (dump_func)dump_get_serial_info_request,
4149 (dump_func)dump_set_serial_info_request,
4150 (dump_func)dump_register_async_request,
4151 (dump_func)dump_cancel_async_request,
4152 (dump_func)dump_ioctl_request,
4153 (dump_func)dump_get_ioctl_result_request,
4154 (dump_func)dump_create_named_pipe_request,
4155 (dump_func)dump_get_named_pipe_info_request,
4156 (dump_func)dump_create_window_request,
4157 (dump_func)dump_destroy_window_request,
4158 (dump_func)dump_get_desktop_window_request,
4159 (dump_func)dump_set_window_owner_request,
4160 (dump_func)dump_get_window_info_request,
4161 (dump_func)dump_set_window_info_request,
4162 (dump_func)dump_set_parent_request,
4163 (dump_func)dump_get_window_parents_request,
4164 (dump_func)dump_get_window_children_request,
4165 (dump_func)dump_get_window_children_from_point_request,
4166 (dump_func)dump_get_window_tree_request,
4167 (dump_func)dump_set_window_pos_request,
4168 (dump_func)dump_get_window_rectangles_request,
4169 (dump_func)dump_get_window_text_request,
4170 (dump_func)dump_set_window_text_request,
4171 (dump_func)dump_get_windows_offset_request,
4172 (dump_func)dump_get_visible_region_request,
4173 (dump_func)dump_get_window_region_request,
4174 (dump_func)dump_set_window_region_request,
4175 (dump_func)dump_get_update_region_request,
4176 (dump_func)dump_update_window_zorder_request,
4177 (dump_func)dump_redraw_window_request,
4178 (dump_func)dump_set_window_property_request,
4179 (dump_func)dump_remove_window_property_request,
4180 (dump_func)dump_get_window_property_request,
4181 (dump_func)dump_get_window_properties_request,
4182 (dump_func)dump_create_winstation_request,
4183 (dump_func)dump_open_winstation_request,
4184 (dump_func)dump_close_winstation_request,
4185 (dump_func)dump_get_process_winstation_request,
4186 (dump_func)dump_set_process_winstation_request,
4187 (dump_func)dump_enum_winstation_request,
4188 (dump_func)dump_create_desktop_request,
4189 (dump_func)dump_open_desktop_request,
4190 (dump_func)dump_close_desktop_request,
4191 (dump_func)dump_get_thread_desktop_request,
4192 (dump_func)dump_set_thread_desktop_request,
4193 (dump_func)dump_enum_desktop_request,
4194 (dump_func)dump_set_user_object_info_request,
4195 (dump_func)dump_attach_thread_input_request,
4196 (dump_func)dump_get_thread_input_request,
4197 (dump_func)dump_get_last_input_time_request,
4198 (dump_func)dump_get_key_state_request,
4199 (dump_func)dump_set_key_state_request,
4200 (dump_func)dump_set_foreground_window_request,
4201 (dump_func)dump_set_focus_window_request,
4202 (dump_func)dump_set_active_window_request,
4203 (dump_func)dump_set_capture_window_request,
4204 (dump_func)dump_set_caret_window_request,
4205 (dump_func)dump_set_caret_info_request,
4206 (dump_func)dump_set_hook_request,
4207 (dump_func)dump_remove_hook_request,
4208 (dump_func)dump_start_hook_chain_request,
4209 (dump_func)dump_finish_hook_chain_request,
4210 (dump_func)dump_get_hook_info_request,
4211 (dump_func)dump_create_class_request,
4212 (dump_func)dump_destroy_class_request,
4213 (dump_func)dump_set_class_info_request,
4214 (dump_func)dump_set_clipboard_info_request,
4215 (dump_func)dump_open_token_request,
4216 (dump_func)dump_set_global_windows_request,
4217 (dump_func)dump_adjust_token_privileges_request,
4218 (dump_func)dump_get_token_privileges_request,
4219 (dump_func)dump_check_token_privileges_request,
4220 (dump_func)dump_duplicate_token_request,
4221 (dump_func)dump_access_check_request,
4222 (dump_func)dump_get_token_user_request,
4223 (dump_func)dump_get_token_groups_request,
4224 (dump_func)dump_set_security_object_request,
4225 (dump_func)dump_get_security_object_request,
4226 (dump_func)dump_create_mailslot_request,
4227 (dump_func)dump_set_mailslot_info_request,
4228 (dump_func)dump_create_directory_request,
4229 (dump_func)dump_open_directory_request,
4230 (dump_func)dump_get_directory_entry_request,
4231 (dump_func)dump_create_symlink_request,
4232 (dump_func)dump_open_symlink_request,
4233 (dump_func)dump_query_symlink_request,
4234 (dump_func)dump_get_object_info_request,
4235 (dump_func)dump_unlink_object_request,
4236 (dump_func)dump_get_token_impersonation_level_request,
4237 (dump_func)dump_allocate_locally_unique_id_request,
4238 (dump_func)dump_create_device_manager_request,
4239 (dump_func)dump_create_device_request,
4240 (dump_func)dump_delete_device_request,
4241 (dump_func)dump_get_next_device_request_request,
4242 (dump_func)dump_make_process_system_request,
4243 (dump_func)dump_get_token_statistics_request,
4244 (dump_func)dump_create_completion_request,
4245 (dump_func)dump_open_completion_request,
4246 (dump_func)dump_add_completion_request,
4247 (dump_func)dump_remove_completion_request,
4248 (dump_func)dump_query_completion_request,
4249 (dump_func)dump_set_completion_info_request,
4250 (dump_func)dump_add_fd_completion_request,
4251 (dump_func)dump_get_window_layered_info_request,
4252 (dump_func)dump_set_window_layered_info_request,
4255 static const dump_func reply_dumpers[REQ_NB_REQUESTS] = {
4256 (dump_func)dump_new_process_reply,
4257 (dump_func)dump_get_new_process_info_reply,
4258 (dump_func)dump_new_thread_reply,
4259 (dump_func)dump_get_startup_info_reply,
4261 (dump_func)dump_init_thread_reply,
4262 (dump_func)dump_terminate_process_reply,
4263 (dump_func)dump_terminate_thread_reply,
4264 (dump_func)dump_get_process_info_reply,
4266 (dump_func)dump_get_thread_info_reply,
4268 (dump_func)dump_get_dll_info_reply,
4269 (dump_func)dump_suspend_thread_reply,
4270 (dump_func)dump_resume_thread_reply,
4273 (dump_func)dump_queue_apc_reply,
4274 (dump_func)dump_get_apc_result_reply,
4276 (dump_func)dump_set_handle_info_reply,
4277 (dump_func)dump_dup_handle_reply,
4278 (dump_func)dump_open_process_reply,
4279 (dump_func)dump_open_thread_reply,
4280 (dump_func)dump_select_reply,
4281 (dump_func)dump_create_event_reply,
4283 (dump_func)dump_open_event_reply,
4284 (dump_func)dump_create_mutex_reply,
4285 (dump_func)dump_release_mutex_reply,
4286 (dump_func)dump_open_mutex_reply,
4287 (dump_func)dump_create_semaphore_reply,
4288 (dump_func)dump_release_semaphore_reply,
4289 (dump_func)dump_open_semaphore_reply,
4290 (dump_func)dump_create_file_reply,
4291 (dump_func)dump_open_file_object_reply,
4292 (dump_func)dump_alloc_file_handle_reply,
4293 (dump_func)dump_get_handle_fd_reply,
4294 (dump_func)dump_flush_file_reply,
4295 (dump_func)dump_lock_file_reply,
4297 (dump_func)dump_create_socket_reply,
4298 (dump_func)dump_accept_socket_reply,
4300 (dump_func)dump_get_socket_event_reply,
4303 (dump_func)dump_alloc_console_reply,
4305 (dump_func)dump_get_console_renderer_events_reply,
4306 (dump_func)dump_open_console_reply,
4307 (dump_func)dump_get_console_wait_event_reply,
4308 (dump_func)dump_get_console_mode_reply,
4311 (dump_func)dump_get_console_input_info_reply,
4313 (dump_func)dump_get_console_input_history_reply,
4314 (dump_func)dump_create_console_output_reply,
4316 (dump_func)dump_get_console_output_info_reply,
4317 (dump_func)dump_write_console_input_reply,
4318 (dump_func)dump_read_console_input_reply,
4319 (dump_func)dump_write_console_output_reply,
4320 (dump_func)dump_fill_console_output_reply,
4321 (dump_func)dump_read_console_output_reply,
4325 (dump_func)dump_read_change_reply,
4326 (dump_func)dump_create_mapping_reply,
4327 (dump_func)dump_open_mapping_reply,
4328 (dump_func)dump_get_mapping_info_reply,
4329 (dump_func)dump_get_mapping_committed_range_reply,
4331 (dump_func)dump_create_snapshot_reply,
4332 (dump_func)dump_next_process_reply,
4333 (dump_func)dump_next_thread_reply,
4334 (dump_func)dump_wait_debug_event_reply,
4335 (dump_func)dump_queue_exception_event_reply,
4336 (dump_func)dump_get_exception_status_reply,
4340 (dump_func)dump_debug_break_reply,
4342 (dump_func)dump_read_process_memory_reply,
4344 (dump_func)dump_create_key_reply,
4345 (dump_func)dump_open_key_reply,
4348 (dump_func)dump_enum_key_reply,
4350 (dump_func)dump_get_key_value_reply,
4351 (dump_func)dump_enum_key_value_reply,
4357 (dump_func)dump_create_timer_reply,
4358 (dump_func)dump_open_timer_reply,
4359 (dump_func)dump_set_timer_reply,
4360 (dump_func)dump_cancel_timer_reply,
4361 (dump_func)dump_get_timer_info_reply,
4362 (dump_func)dump_get_thread_context_reply,
4363 (dump_func)dump_set_thread_context_reply,
4364 (dump_func)dump_get_selector_entry_reply,
4365 (dump_func)dump_add_atom_reply,
4367 (dump_func)dump_find_atom_reply,
4368 (dump_func)dump_get_atom_information_reply,
4371 (dump_func)dump_init_atom_table_reply,
4372 (dump_func)dump_get_msg_queue_reply,
4374 (dump_func)dump_set_queue_mask_reply,
4375 (dump_func)dump_get_queue_status_reply,
4376 (dump_func)dump_get_process_idle_event_reply,
4380 (dump_func)dump_get_message_reply,
4383 (dump_func)dump_get_message_reply_reply,
4384 (dump_func)dump_set_win_timer_reply,
4386 (dump_func)dump_is_window_hung_reply,
4387 (dump_func)dump_get_serial_info_reply,
4391 (dump_func)dump_ioctl_reply,
4392 (dump_func)dump_get_ioctl_result_reply,
4393 (dump_func)dump_create_named_pipe_reply,
4394 (dump_func)dump_get_named_pipe_info_reply,
4395 (dump_func)dump_create_window_reply,
4397 (dump_func)dump_get_desktop_window_reply,
4398 (dump_func)dump_set_window_owner_reply,
4399 (dump_func)dump_get_window_info_reply,
4400 (dump_func)dump_set_window_info_reply,
4401 (dump_func)dump_set_parent_reply,
4402 (dump_func)dump_get_window_parents_reply,
4403 (dump_func)dump_get_window_children_reply,
4404 (dump_func)dump_get_window_children_from_point_reply,
4405 (dump_func)dump_get_window_tree_reply,
4406 (dump_func)dump_set_window_pos_reply,
4407 (dump_func)dump_get_window_rectangles_reply,
4408 (dump_func)dump_get_window_text_reply,
4410 (dump_func)dump_get_windows_offset_reply,
4411 (dump_func)dump_get_visible_region_reply,
4412 (dump_func)dump_get_window_region_reply,
4414 (dump_func)dump_get_update_region_reply,
4418 (dump_func)dump_remove_window_property_reply,
4419 (dump_func)dump_get_window_property_reply,
4420 (dump_func)dump_get_window_properties_reply,
4421 (dump_func)dump_create_winstation_reply,
4422 (dump_func)dump_open_winstation_reply,
4424 (dump_func)dump_get_process_winstation_reply,
4426 (dump_func)dump_enum_winstation_reply,
4427 (dump_func)dump_create_desktop_reply,
4428 (dump_func)dump_open_desktop_reply,
4430 (dump_func)dump_get_thread_desktop_reply,
4432 (dump_func)dump_enum_desktop_reply,
4433 (dump_func)dump_set_user_object_info_reply,
4435 (dump_func)dump_get_thread_input_reply,
4436 (dump_func)dump_get_last_input_time_reply,
4437 (dump_func)dump_get_key_state_reply,
4439 (dump_func)dump_set_foreground_window_reply,
4440 (dump_func)dump_set_focus_window_reply,
4441 (dump_func)dump_set_active_window_reply,
4442 (dump_func)dump_set_capture_window_reply,
4443 (dump_func)dump_set_caret_window_reply,
4444 (dump_func)dump_set_caret_info_reply,
4445 (dump_func)dump_set_hook_reply,
4446 (dump_func)dump_remove_hook_reply,
4447 (dump_func)dump_start_hook_chain_reply,
4449 (dump_func)dump_get_hook_info_reply,
4450 (dump_func)dump_create_class_reply,
4451 (dump_func)dump_destroy_class_reply,
4452 (dump_func)dump_set_class_info_reply,
4453 (dump_func)dump_set_clipboard_info_reply,
4454 (dump_func)dump_open_token_reply,
4455 (dump_func)dump_set_global_windows_reply,
4456 (dump_func)dump_adjust_token_privileges_reply,
4457 (dump_func)dump_get_token_privileges_reply,
4458 (dump_func)dump_check_token_privileges_reply,
4459 (dump_func)dump_duplicate_token_reply,
4460 (dump_func)dump_access_check_reply,
4461 (dump_func)dump_get_token_user_reply,
4462 (dump_func)dump_get_token_groups_reply,
4464 (dump_func)dump_get_security_object_reply,
4465 (dump_func)dump_create_mailslot_reply,
4466 (dump_func)dump_set_mailslot_info_reply,
4467 (dump_func)dump_create_directory_reply,
4468 (dump_func)dump_open_directory_reply,
4469 (dump_func)dump_get_directory_entry_reply,
4470 (dump_func)dump_create_symlink_reply,
4471 (dump_func)dump_open_symlink_reply,
4472 (dump_func)dump_query_symlink_reply,
4473 (dump_func)dump_get_object_info_reply,
4475 (dump_func)dump_get_token_impersonation_level_reply,
4476 (dump_func)dump_allocate_locally_unique_id_reply,
4477 (dump_func)dump_create_device_manager_reply,
4478 (dump_func)dump_create_device_reply,
4480 (dump_func)dump_get_next_device_request_reply,
4481 (dump_func)dump_make_process_system_reply,
4482 (dump_func)dump_get_token_statistics_reply,
4483 (dump_func)dump_create_completion_reply,
4484 (dump_func)dump_open_completion_reply,
4486 (dump_func)dump_remove_completion_reply,
4487 (dump_func)dump_query_completion_reply,
4490 (dump_func)dump_get_window_layered_info_reply,
4494 static const char * const req_names[REQ_NB_REQUESTS] = {
4496 "get_new_process_info",
4499 "init_process_done",
4501 "terminate_process",
4527 "release_semaphore",
4531 "alloc_file_handle",
4540 "enable_socket_event",
4541 "set_socket_deferred",
4544 "get_console_renderer_events",
4546 "get_console_wait_event",
4549 "set_console_input_info",
4550 "get_console_input_info",
4551 "append_console_input_history",
4552 "get_console_input_history",
4553 "create_console_output",
4554 "set_console_output_info",
4555 "get_console_output_info",
4556 "write_console_input",
4557 "read_console_input",
4558 "write_console_output",
4559 "fill_console_output",
4560 "read_console_output",
4561 "move_console_output",
4562 "send_console_signal",
4563 "read_directory_changes",
4568 "get_mapping_committed_range",
4569 "add_mapping_committed_range",
4574 "queue_exception_event",
4575 "get_exception_status",
4576 "output_debug_string",
4577 "continue_debug_event",
4580 "set_debugger_kill_on_exit",
4581 "read_process_memory",
4582 "write_process_memory",
4595 "set_registry_notification",
4601 "get_thread_context",
4602 "set_thread_context",
4603 "get_selector_entry",
4607 "get_atom_information",
4608 "set_atom_information",
4615 "get_process_idle_event",
4617 "post_quit_message",
4618 "send_hardware_message",
4621 "accept_hardware_message",
4622 "get_message_reply",
4632 "create_named_pipe",
4633 "get_named_pipe_info",
4636 "get_desktop_window",
4641 "get_window_parents",
4642 "get_window_children",
4643 "get_window_children_from_point",
4646 "get_window_rectangles",
4649 "get_windows_offset",
4650 "get_visible_region",
4651 "get_window_region",
4652 "set_window_region",
4653 "get_update_region",
4654 "update_window_zorder",
4656 "set_window_property",
4657 "remove_window_property",
4658 "get_window_property",
4659 "get_window_properties",
4660 "create_winstation",
4663 "get_process_winstation",
4664 "set_process_winstation",
4669 "get_thread_desktop",
4670 "set_thread_desktop",
4672 "set_user_object_info",
4673 "attach_thread_input",
4675 "get_last_input_time",
4678 "set_foreground_window",
4680 "set_active_window",
4681 "set_capture_window",
4687 "finish_hook_chain",
4692 "set_clipboard_info",
4694 "set_global_windows",
4695 "adjust_token_privileges",
4696 "get_token_privileges",
4697 "check_token_privileges",
4702 "set_security_object",
4703 "get_security_object",
4705 "set_mailslot_info",
4708 "get_directory_entry",
4714 "get_token_impersonation_level",
4715 "allocate_locally_unique_id",
4716 "create_device_manager",
4719 "get_next_device_request",
4720 "make_process_system",
4721 "get_token_statistics",
4722 "create_completion",
4725 "remove_completion",
4727 "set_completion_info",
4728 "add_fd_completion",
4729 "get_window_layered_info",
4730 "set_window_layered_info",
4739 { "ABANDONED_WAIT_0", STATUS_ABANDONED_WAIT_0 },
4740 { "ACCESS_DENIED", STATUS_ACCESS_DENIED },
4741 { "ACCESS_VIOLATION", STATUS_ACCESS_VIOLATION },
4742 { "ALERTED", STATUS_ALERTED },
4743 { "ALIAS_EXISTS", STATUS_ALIAS_EXISTS },
4744 { "BAD_DEVICE_TYPE", STATUS_BAD_DEVICE_TYPE },
4745 { "BAD_IMPERSONATION_LEVEL", STATUS_BAD_IMPERSONATION_LEVEL },
4746 { "BREAKPOINT", STATUS_BREAKPOINT },
4747 { "BUFFER_OVERFLOW", STATUS_BUFFER_OVERFLOW },
4748 { "BUFFER_TOO_SMALL", STATUS_BUFFER_TOO_SMALL },
4749 { "CANCELLED", STATUS_CANCELLED },
4750 { "CANT_OPEN_ANONYMOUS", STATUS_CANT_OPEN_ANONYMOUS },
4751 { "CHILD_MUST_BE_VOLATILE", STATUS_CHILD_MUST_BE_VOLATILE },
4752 { "DEBUGGER_INACTIVE", STATUS_DEBUGGER_INACTIVE },
4753 { "DEVICE_BUSY", STATUS_DEVICE_BUSY },
4754 { "DIRECTORY_NOT_EMPTY", STATUS_DIRECTORY_NOT_EMPTY },
4755 { "DISK_FULL", STATUS_DISK_FULL },
4756 { "DLL_NOT_FOUND", STATUS_DLL_NOT_FOUND },
4757 { "ERROR_CLASS_ALREADY_EXISTS", 0xc0010000 | ERROR_CLASS_ALREADY_EXISTS },
4758 { "ERROR_CLASS_DOES_NOT_EXIST", 0xc0010000 | ERROR_CLASS_DOES_NOT_EXIST },
4759 { "ERROR_CLASS_HAS_WINDOWS", 0xc0010000 | ERROR_CLASS_HAS_WINDOWS },
4760 { "ERROR_CLIPBOARD_NOT_OPEN", 0xc0010000 | ERROR_CLIPBOARD_NOT_OPEN },
4761 { "ERROR_INVALID_INDEX", 0xc0010000 | ERROR_INVALID_INDEX },
4762 { "ERROR_INVALID_WINDOW_HANDLE", 0xc0010000 | ERROR_INVALID_WINDOW_HANDLE },
4763 { "FILE_DELETED", STATUS_FILE_DELETED },
4764 { "FILE_IS_A_DIRECTORY", STATUS_FILE_IS_A_DIRECTORY },
4765 { "FILE_LOCK_CONFLICT", STATUS_FILE_LOCK_CONFLICT },
4766 { "GENERIC_NOT_MAPPED", STATUS_GENERIC_NOT_MAPPED },
4767 { "HANDLES_CLOSED", STATUS_HANDLES_CLOSED },
4768 { "HANDLE_NOT_CLOSABLE", STATUS_HANDLE_NOT_CLOSABLE },
4769 { "ILLEGAL_FUNCTION", STATUS_ILLEGAL_FUNCTION },
4770 { "INSTANCE_NOT_AVAILABLE", STATUS_INSTANCE_NOT_AVAILABLE },
4771 { "INSUFFICIENT_RESOURCES", STATUS_INSUFFICIENT_RESOURCES },
4772 { "INVALID_CID", STATUS_INVALID_CID },
4773 { "INVALID_DEVICE_REQUEST", STATUS_INVALID_DEVICE_REQUEST },
4774 { "INVALID_FILE_FOR_SECTION", STATUS_INVALID_FILE_FOR_SECTION },
4775 { "INVALID_HANDLE", STATUS_INVALID_HANDLE },
4776 { "INVALID_PARAMETER", STATUS_INVALID_PARAMETER },
4777 { "INVALID_SECURITY_DESCR", STATUS_INVALID_SECURITY_DESCR },
4778 { "IO_TIMEOUT", STATUS_IO_TIMEOUT },
4779 { "KEY_DELETED", STATUS_KEY_DELETED },
4780 { "MAPPED_FILE_SIZE_ZERO", STATUS_MAPPED_FILE_SIZE_ZERO },
4781 { "MEDIA_WRITE_PROTECTED", STATUS_MEDIA_WRITE_PROTECTED },
4782 { "MUTANT_NOT_OWNED", STATUS_MUTANT_NOT_OWNED },
4783 { "NAME_TOO_LONG", STATUS_NAME_TOO_LONG },
4784 { "NOTIFY_ENUM_DIR", STATUS_NOTIFY_ENUM_DIR },
4785 { "NOT_ALL_ASSIGNED", STATUS_NOT_ALL_ASSIGNED },
4786 { "NOT_A_DIRECTORY", STATUS_NOT_A_DIRECTORY },
4787 { "NOT_IMPLEMENTED", STATUS_NOT_IMPLEMENTED },
4788 { "NOT_REGISTRY_FILE", STATUS_NOT_REGISTRY_FILE },
4789 { "NOT_SUPPORTED", STATUS_NOT_SUPPORTED },
4790 { "NO_DATA_DETECTED", STATUS_NO_DATA_DETECTED },
4791 { "NO_IMPERSONATION_TOKEN", STATUS_NO_IMPERSONATION_TOKEN },
4792 { "NO_MEMORY", STATUS_NO_MEMORY },
4793 { "NO_MORE_ENTRIES", STATUS_NO_MORE_ENTRIES },
4794 { "NO_MORE_FILES", STATUS_NO_MORE_FILES },
4795 { "NO_SUCH_DEVICE", STATUS_NO_SUCH_DEVICE },
4796 { "NO_SUCH_FILE", STATUS_NO_SUCH_FILE },
4797 { "NO_TOKEN", STATUS_NO_TOKEN },
4798 { "OBJECT_NAME_COLLISION", STATUS_OBJECT_NAME_COLLISION },
4799 { "OBJECT_NAME_EXISTS", STATUS_OBJECT_NAME_EXISTS },
4800 { "OBJECT_NAME_INVALID", STATUS_OBJECT_NAME_INVALID },
4801 { "OBJECT_NAME_NOT_FOUND", STATUS_OBJECT_NAME_NOT_FOUND },
4802 { "OBJECT_PATH_INVALID", STATUS_OBJECT_PATH_INVALID },
4803 { "OBJECT_PATH_NOT_FOUND", STATUS_OBJECT_PATH_NOT_FOUND },
4804 { "OBJECT_PATH_SYNTAX_BAD", STATUS_OBJECT_PATH_SYNTAX_BAD },
4805 { "OBJECT_TYPE_MISMATCH", STATUS_OBJECT_TYPE_MISMATCH },
4806 { "PENDING", STATUS_PENDING },
4807 { "PIPE_BUSY", STATUS_PIPE_BUSY },
4808 { "PIPE_CONNECTED", STATUS_PIPE_CONNECTED },
4809 { "PIPE_DISCONNECTED", STATUS_PIPE_DISCONNECTED },
4810 { "PIPE_LISTENING", STATUS_PIPE_LISTENING },
4811 { "PIPE_NOT_AVAILABLE", STATUS_PIPE_NOT_AVAILABLE },
4812 { "PRIVILEGE_NOT_HELD", STATUS_PRIVILEGE_NOT_HELD },
4813 { "PROCESS_IS_TERMINATING", STATUS_PROCESS_IS_TERMINATING },
4814 { "SECTION_TOO_BIG", STATUS_SECTION_TOO_BIG },
4815 { "SEMAPHORE_LIMIT_EXCEEDED", STATUS_SEMAPHORE_LIMIT_EXCEEDED },
4816 { "SHARING_VIOLATION", STATUS_SHARING_VIOLATION },
4817 { "SHUTDOWN_IN_PROGRESS", STATUS_SHUTDOWN_IN_PROGRESS },
4818 { "SUSPEND_COUNT_EXCEEDED", STATUS_SUSPEND_COUNT_EXCEEDED },
4819 { "THREAD_IS_TERMINATING", STATUS_THREAD_IS_TERMINATING },
4820 { "TIMEOUT", STATUS_TIMEOUT },
4821 { "TOO_MANY_OPENED_FILES", STATUS_TOO_MANY_OPENED_FILES },
4822 { "UNSUCCESSFUL", STATUS_UNSUCCESSFUL },
4823 { "USER_APC", STATUS_USER_APC },
4824 { "VOLUME_DISMOUNTED", STATUS_VOLUME_DISMOUNTED },
4825 { "WAS_LOCKED", STATUS_WAS_LOCKED },
4829 /* ### make_requests end ### */
4830 /* Everything above this line is generated automatically by tools/make_requests */
4832 static const char *get_status_name( unsigned int status )
4835 static char buffer[10];
4839 for (i = 0; status_names[i].name; i++)
4840 if (status_names[i].value == status) return status_names[i].name;
4842 sprintf( buffer, "%x", status );
4846 void trace_request(void)
4848 enum request req = current->req.request_header.req;
4849 if (req < REQ_NB_REQUESTS)
4851 fprintf( stderr, "%04x: %s(", current->id, req_names[req] );
4852 if (req_dumpers[req])
4854 cur_data = get_req_data();
4855 cur_size = get_req_data_size();
4856 req_dumpers[req]( ¤t->req );
4858 fprintf( stderr, " )\n" );
4860 else fprintf( stderr, "%04x: %d(?)\n", current->id, req );
4863 void trace_reply( enum request req, const union generic_reply *reply )
4865 if (req < REQ_NB_REQUESTS)
4867 fprintf( stderr, "%04x: %s() = %s",
4868 current->id, req_names[req], get_status_name(current->error) );
4869 if (reply_dumpers[req])
4871 fprintf( stderr, " {" );
4872 cur_data = current->reply_data;
4873 cur_size = reply->reply_header.reply_size;
4874 reply_dumpers[req]( reply );
4875 fprintf( stderr, " }" );
4877 fputc( '\n', stderr );
4879 else fprintf( stderr, "%04x: %d() = %s\n",
4880 current->id, req, get_status_name(current->error) );