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, " priority=%d,", req->priority );
1043 fprintf( stderr, " affinity=%08x,", req->affinity );
1044 fprintf( stderr, " peb=" );
1045 dump_uint64( &req->peb );
1046 fprintf( stderr, "," );
1047 fprintf( stderr, " start_time=" );
1048 dump_timeout( &req->start_time );
1049 fprintf( stderr, "," );
1050 fprintf( stderr, " end_time=" );
1051 dump_timeout( &req->end_time );
1052 fprintf( stderr, "," );
1053 fprintf( stderr, " exit_code=%d", req->exit_code );
1056 static void dump_set_process_info_request( const struct set_process_info_request *req )
1058 fprintf( stderr, " handle=%04x,", req->handle );
1059 fprintf( stderr, " mask=%d,", req->mask );
1060 fprintf( stderr, " priority=%d,", req->priority );
1061 fprintf( stderr, " affinity=%08x", req->affinity );
1064 static void dump_get_thread_info_request( const struct get_thread_info_request *req )
1066 fprintf( stderr, " handle=%04x,", req->handle );
1067 fprintf( stderr, " tid_in=%04x", req->tid_in );
1070 static void dump_get_thread_info_reply( const struct get_thread_info_reply *req )
1072 fprintf( stderr, " pid=%04x,", req->pid );
1073 fprintf( stderr, " tid=%04x,", req->tid );
1074 fprintf( stderr, " teb=" );
1075 dump_uint64( &req->teb );
1076 fprintf( stderr, "," );
1077 fprintf( stderr, " priority=%d,", req->priority );
1078 fprintf( stderr, " affinity=%08x,", req->affinity );
1079 fprintf( stderr, " creation_time=" );
1080 dump_timeout( &req->creation_time );
1081 fprintf( stderr, "," );
1082 fprintf( stderr, " exit_time=" );
1083 dump_timeout( &req->exit_time );
1084 fprintf( stderr, "," );
1085 fprintf( stderr, " exit_code=%d,", req->exit_code );
1086 fprintf( stderr, " last=%d", req->last );
1089 static void dump_set_thread_info_request( const struct set_thread_info_request *req )
1091 fprintf( stderr, " handle=%04x,", req->handle );
1092 fprintf( stderr, " mask=%d,", req->mask );
1093 fprintf( stderr, " priority=%d,", req->priority );
1094 fprintf( stderr, " affinity=%08x,", req->affinity );
1095 fprintf( stderr, " token=%04x", req->token );
1098 static void dump_get_dll_info_request( const struct get_dll_info_request *req )
1100 fprintf( stderr, " handle=%04x,", req->handle );
1101 fprintf( stderr, " base_address=" );
1102 dump_uint64( &req->base_address );
1105 static void dump_get_dll_info_reply( const struct get_dll_info_reply *req )
1107 fprintf( stderr, " entry_point=" );
1108 dump_uint64( &req->entry_point );
1109 fprintf( stderr, "," );
1110 fprintf( stderr, " size=%u,", req->size );
1111 fprintf( stderr, " filename_len=%u,", req->filename_len );
1112 fprintf( stderr, " filename=" );
1113 dump_varargs_unicode_str( cur_size );
1116 static void dump_suspend_thread_request( const struct suspend_thread_request *req )
1118 fprintf( stderr, " handle=%04x", req->handle );
1121 static void dump_suspend_thread_reply( const struct suspend_thread_reply *req )
1123 fprintf( stderr, " count=%d", req->count );
1126 static void dump_resume_thread_request( const struct resume_thread_request *req )
1128 fprintf( stderr, " handle=%04x", req->handle );
1131 static void dump_resume_thread_reply( const struct resume_thread_reply *req )
1133 fprintf( stderr, " count=%d", req->count );
1136 static void dump_load_dll_request( const struct load_dll_request *req )
1138 fprintf( stderr, " handle=%04x,", req->handle );
1139 fprintf( stderr, " base=" );
1140 dump_uint64( &req->base );
1141 fprintf( stderr, "," );
1142 fprintf( stderr, " name=" );
1143 dump_uint64( &req->name );
1144 fprintf( stderr, "," );
1145 fprintf( stderr, " size=%u,", req->size );
1146 fprintf( stderr, " dbg_offset=%d,", req->dbg_offset );
1147 fprintf( stderr, " dbg_size=%d,", req->dbg_size );
1148 fprintf( stderr, " filename=" );
1149 dump_varargs_unicode_str( cur_size );
1152 static void dump_unload_dll_request( const struct unload_dll_request *req )
1154 fprintf( stderr, " base=" );
1155 dump_uint64( &req->base );
1158 static void dump_queue_apc_request( const struct queue_apc_request *req )
1160 fprintf( stderr, " handle=%04x,", req->handle );
1161 fprintf( stderr, " call=" );
1162 dump_apc_call( &req->call );
1165 static void dump_queue_apc_reply( const struct queue_apc_reply *req )
1167 fprintf( stderr, " handle=%04x,", req->handle );
1168 fprintf( stderr, " self=%d", req->self );
1171 static void dump_get_apc_result_request( const struct get_apc_result_request *req )
1173 fprintf( stderr, " handle=%04x", req->handle );
1176 static void dump_get_apc_result_reply( const struct get_apc_result_reply *req )
1178 fprintf( stderr, " result=" );
1179 dump_apc_result( &req->result );
1182 static void dump_close_handle_request( const struct close_handle_request *req )
1184 fprintf( stderr, " handle=%04x", req->handle );
1187 static void dump_set_handle_info_request( const struct set_handle_info_request *req )
1189 fprintf( stderr, " handle=%04x,", req->handle );
1190 fprintf( stderr, " flags=%d,", req->flags );
1191 fprintf( stderr, " mask=%d", req->mask );
1194 static void dump_set_handle_info_reply( const struct set_handle_info_reply *req )
1196 fprintf( stderr, " old_flags=%d", req->old_flags );
1199 static void dump_dup_handle_request( const struct dup_handle_request *req )
1201 fprintf( stderr, " src_process=%04x,", req->src_process );
1202 fprintf( stderr, " src_handle=%04x,", req->src_handle );
1203 fprintf( stderr, " dst_process=%04x,", req->dst_process );
1204 fprintf( stderr, " access=%08x,", req->access );
1205 fprintf( stderr, " attributes=%08x,", req->attributes );
1206 fprintf( stderr, " options=%08x", req->options );
1209 static void dump_dup_handle_reply( const struct dup_handle_reply *req )
1211 fprintf( stderr, " handle=%04x,", req->handle );
1212 fprintf( stderr, " self=%d,", req->self );
1213 fprintf( stderr, " closed=%d", req->closed );
1216 static void dump_open_process_request( const struct open_process_request *req )
1218 fprintf( stderr, " pid=%04x,", req->pid );
1219 fprintf( stderr, " access=%08x,", req->access );
1220 fprintf( stderr, " attributes=%08x", req->attributes );
1223 static void dump_open_process_reply( const struct open_process_reply *req )
1225 fprintf( stderr, " handle=%04x", req->handle );
1228 static void dump_open_thread_request( const struct open_thread_request *req )
1230 fprintf( stderr, " tid=%04x,", req->tid );
1231 fprintf( stderr, " access=%08x,", req->access );
1232 fprintf( stderr, " attributes=%08x", req->attributes );
1235 static void dump_open_thread_reply( const struct open_thread_reply *req )
1237 fprintf( stderr, " handle=%04x", req->handle );
1240 static void dump_select_request( const struct select_request *req )
1242 fprintf( stderr, " flags=%d,", req->flags );
1243 fprintf( stderr, " cookie=" );
1244 dump_uint64( &req->cookie );
1245 fprintf( stderr, "," );
1246 fprintf( stderr, " signal=%04x,", req->signal );
1247 fprintf( stderr, " prev_apc=%04x,", req->prev_apc );
1248 fprintf( stderr, " timeout=" );
1249 dump_timeout( &req->timeout );
1250 fprintf( stderr, "," );
1251 fprintf( stderr, " result=" );
1252 dump_varargs_apc_result( cur_size );
1253 fputc( ',', stderr );
1254 fprintf( stderr, " handles=" );
1255 dump_varargs_handles( cur_size );
1258 static void dump_select_reply( const struct select_reply *req )
1260 fprintf( stderr, " timeout=" );
1261 dump_timeout( &req->timeout );
1262 fprintf( stderr, "," );
1263 fprintf( stderr, " call=" );
1264 dump_apc_call( &req->call );
1265 fprintf( stderr, "," );
1266 fprintf( stderr, " apc_handle=%04x", req->apc_handle );
1269 static void dump_create_event_request( const struct create_event_request *req )
1271 fprintf( stderr, " access=%08x,", req->access );
1272 fprintf( stderr, " attributes=%08x,", req->attributes );
1273 fprintf( stderr, " manual_reset=%d,", req->manual_reset );
1274 fprintf( stderr, " initial_state=%d,", req->initial_state );
1275 fprintf( stderr, " objattr=" );
1276 dump_varargs_object_attributes( cur_size );
1279 static void dump_create_event_reply( const struct create_event_reply *req )
1281 fprintf( stderr, " handle=%04x", req->handle );
1284 static void dump_event_op_request( const struct event_op_request *req )
1286 fprintf( stderr, " handle=%04x,", req->handle );
1287 fprintf( stderr, " op=%d", req->op );
1290 static void dump_open_event_request( const struct open_event_request *req )
1292 fprintf( stderr, " access=%08x,", req->access );
1293 fprintf( stderr, " attributes=%08x,", req->attributes );
1294 fprintf( stderr, " rootdir=%04x,", req->rootdir );
1295 fprintf( stderr, " name=" );
1296 dump_varargs_unicode_str( cur_size );
1299 static void dump_open_event_reply( const struct open_event_reply *req )
1301 fprintf( stderr, " handle=%04x", req->handle );
1304 static void dump_create_mutex_request( const struct create_mutex_request *req )
1306 fprintf( stderr, " access=%08x,", req->access );
1307 fprintf( stderr, " attributes=%08x,", req->attributes );
1308 fprintf( stderr, " owned=%d,", req->owned );
1309 fprintf( stderr, " objattr=" );
1310 dump_varargs_object_attributes( cur_size );
1313 static void dump_create_mutex_reply( const struct create_mutex_reply *req )
1315 fprintf( stderr, " handle=%04x", req->handle );
1318 static void dump_release_mutex_request( const struct release_mutex_request *req )
1320 fprintf( stderr, " handle=%04x", req->handle );
1323 static void dump_release_mutex_reply( const struct release_mutex_reply *req )
1325 fprintf( stderr, " prev_count=%08x", req->prev_count );
1328 static void dump_open_mutex_request( const struct open_mutex_request *req )
1330 fprintf( stderr, " access=%08x,", req->access );
1331 fprintf( stderr, " attributes=%08x,", req->attributes );
1332 fprintf( stderr, " rootdir=%04x,", req->rootdir );
1333 fprintf( stderr, " name=" );
1334 dump_varargs_unicode_str( cur_size );
1337 static void dump_open_mutex_reply( const struct open_mutex_reply *req )
1339 fprintf( stderr, " handle=%04x", req->handle );
1342 static void dump_create_semaphore_request( const struct create_semaphore_request *req )
1344 fprintf( stderr, " access=%08x,", req->access );
1345 fprintf( stderr, " attributes=%08x,", req->attributes );
1346 fprintf( stderr, " initial=%08x,", req->initial );
1347 fprintf( stderr, " max=%08x,", req->max );
1348 fprintf( stderr, " objattr=" );
1349 dump_varargs_object_attributes( cur_size );
1352 static void dump_create_semaphore_reply( const struct create_semaphore_reply *req )
1354 fprintf( stderr, " handle=%04x", req->handle );
1357 static void dump_release_semaphore_request( const struct release_semaphore_request *req )
1359 fprintf( stderr, " handle=%04x,", req->handle );
1360 fprintf( stderr, " count=%08x", req->count );
1363 static void dump_release_semaphore_reply( const struct release_semaphore_reply *req )
1365 fprintf( stderr, " prev_count=%08x", req->prev_count );
1368 static void dump_open_semaphore_request( const struct open_semaphore_request *req )
1370 fprintf( stderr, " access=%08x,", req->access );
1371 fprintf( stderr, " attributes=%08x,", req->attributes );
1372 fprintf( stderr, " rootdir=%04x,", req->rootdir );
1373 fprintf( stderr, " name=" );
1374 dump_varargs_unicode_str( cur_size );
1377 static void dump_open_semaphore_reply( const struct open_semaphore_reply *req )
1379 fprintf( stderr, " handle=%04x", req->handle );
1382 static void dump_create_file_request( const struct create_file_request *req )
1384 fprintf( stderr, " access=%08x,", req->access );
1385 fprintf( stderr, " attributes=%08x,", req->attributes );
1386 fprintf( stderr, " sharing=%08x,", req->sharing );
1387 fprintf( stderr, " create=%d,", req->create );
1388 fprintf( stderr, " options=%08x,", req->options );
1389 fprintf( stderr, " attrs=%08x,", req->attrs );
1390 fprintf( stderr, " objattr=" );
1391 dump_varargs_object_attributes( cur_size );
1392 fputc( ',', stderr );
1393 fprintf( stderr, " filename=" );
1394 dump_varargs_string( cur_size );
1397 static void dump_create_file_reply( const struct create_file_reply *req )
1399 fprintf( stderr, " handle=%04x", req->handle );
1402 static void dump_open_file_object_request( const struct open_file_object_request *req )
1404 fprintf( stderr, " access=%08x,", req->access );
1405 fprintf( stderr, " attributes=%08x,", req->attributes );
1406 fprintf( stderr, " rootdir=%04x,", req->rootdir );
1407 fprintf( stderr, " sharing=%08x,", req->sharing );
1408 fprintf( stderr, " options=%08x,", req->options );
1409 fprintf( stderr, " filename=" );
1410 dump_varargs_unicode_str( cur_size );
1413 static void dump_open_file_object_reply( const struct open_file_object_reply *req )
1415 fprintf( stderr, " handle=%04x", req->handle );
1418 static void dump_alloc_file_handle_request( const struct alloc_file_handle_request *req )
1420 fprintf( stderr, " access=%08x,", req->access );
1421 fprintf( stderr, " attributes=%08x,", req->attributes );
1422 fprintf( stderr, " fd=%d", req->fd );
1425 static void dump_alloc_file_handle_reply( const struct alloc_file_handle_reply *req )
1427 fprintf( stderr, " handle=%04x", req->handle );
1430 static void dump_get_handle_fd_request( const struct get_handle_fd_request *req )
1432 fprintf( stderr, " handle=%04x", req->handle );
1435 static void dump_get_handle_fd_reply( const struct get_handle_fd_reply *req )
1437 fprintf( stderr, " type=%d,", req->type );
1438 fprintf( stderr, " removable=%d,", req->removable );
1439 fprintf( stderr, " access=%08x,", req->access );
1440 fprintf( stderr, " options=%08x", req->options );
1443 static void dump_flush_file_request( const struct flush_file_request *req )
1445 fprintf( stderr, " handle=%04x", req->handle );
1448 static void dump_flush_file_reply( const struct flush_file_reply *req )
1450 fprintf( stderr, " event=%04x", req->event );
1453 static void dump_lock_file_request( const struct lock_file_request *req )
1455 fprintf( stderr, " handle=%04x,", req->handle );
1456 fprintf( stderr, " offset=" );
1457 dump_uint64( &req->offset );
1458 fprintf( stderr, "," );
1459 fprintf( stderr, " count=" );
1460 dump_uint64( &req->count );
1461 fprintf( stderr, "," );
1462 fprintf( stderr, " shared=%d,", req->shared );
1463 fprintf( stderr, " wait=%d", req->wait );
1466 static void dump_lock_file_reply( const struct lock_file_reply *req )
1468 fprintf( stderr, " handle=%04x,", req->handle );
1469 fprintf( stderr, " overlapped=%d", req->overlapped );
1472 static void dump_unlock_file_request( const struct unlock_file_request *req )
1474 fprintf( stderr, " handle=%04x,", req->handle );
1475 fprintf( stderr, " offset=" );
1476 dump_uint64( &req->offset );
1477 fprintf( stderr, "," );
1478 fprintf( stderr, " count=" );
1479 dump_uint64( &req->count );
1482 static void dump_create_socket_request( const struct create_socket_request *req )
1484 fprintf( stderr, " access=%08x,", req->access );
1485 fprintf( stderr, " attributes=%08x,", req->attributes );
1486 fprintf( stderr, " family=%d,", req->family );
1487 fprintf( stderr, " type=%d,", req->type );
1488 fprintf( stderr, " protocol=%d,", req->protocol );
1489 fprintf( stderr, " flags=%08x", req->flags );
1492 static void dump_create_socket_reply( const struct create_socket_reply *req )
1494 fprintf( stderr, " handle=%04x", req->handle );
1497 static void dump_accept_socket_request( const struct accept_socket_request *req )
1499 fprintf( stderr, " lhandle=%04x,", req->lhandle );
1500 fprintf( stderr, " access=%08x,", req->access );
1501 fprintf( stderr, " attributes=%08x", req->attributes );
1504 static void dump_accept_socket_reply( const struct accept_socket_reply *req )
1506 fprintf( stderr, " handle=%04x", req->handle );
1509 static void dump_set_socket_event_request( const struct set_socket_event_request *req )
1511 fprintf( stderr, " handle=%04x,", req->handle );
1512 fprintf( stderr, " mask=%08x,", req->mask );
1513 fprintf( stderr, " event=%04x,", req->event );
1514 fprintf( stderr, " window=%08x,", req->window );
1515 fprintf( stderr, " msg=%08x", req->msg );
1518 static void dump_get_socket_event_request( const struct get_socket_event_request *req )
1520 fprintf( stderr, " handle=%04x,", req->handle );
1521 fprintf( stderr, " service=%d,", req->service );
1522 fprintf( stderr, " c_event=%04x", req->c_event );
1525 static void dump_get_socket_event_reply( const struct get_socket_event_reply *req )
1527 fprintf( stderr, " mask=%08x,", req->mask );
1528 fprintf( stderr, " pmask=%08x,", req->pmask );
1529 fprintf( stderr, " state=%08x,", req->state );
1530 fprintf( stderr, " errors=" );
1531 dump_varargs_ints( cur_size );
1534 static void dump_enable_socket_event_request( const struct enable_socket_event_request *req )
1536 fprintf( stderr, " handle=%04x,", req->handle );
1537 fprintf( stderr, " mask=%08x,", req->mask );
1538 fprintf( stderr, " sstate=%08x,", req->sstate );
1539 fprintf( stderr, " cstate=%08x", req->cstate );
1542 static void dump_set_socket_deferred_request( const struct set_socket_deferred_request *req )
1544 fprintf( stderr, " handle=%04x,", req->handle );
1545 fprintf( stderr, " deferred=%04x", req->deferred );
1548 static void dump_alloc_console_request( const struct alloc_console_request *req )
1550 fprintf( stderr, " access=%08x,", req->access );
1551 fprintf( stderr, " attributes=%08x,", req->attributes );
1552 fprintf( stderr, " pid=%04x", req->pid );
1555 static void dump_alloc_console_reply( const struct alloc_console_reply *req )
1557 fprintf( stderr, " handle_in=%04x,", req->handle_in );
1558 fprintf( stderr, " event=%04x", req->event );
1561 static void dump_free_console_request( const struct free_console_request *req )
1565 static void dump_get_console_renderer_events_request( const struct get_console_renderer_events_request *req )
1567 fprintf( stderr, " handle=%04x", req->handle );
1570 static void dump_get_console_renderer_events_reply( const struct get_console_renderer_events_reply *req )
1572 fprintf( stderr, " data=" );
1573 dump_varargs_bytes( cur_size );
1576 static void dump_open_console_request( const struct open_console_request *req )
1578 fprintf( stderr, " from=%04x,", req->from );
1579 fprintf( stderr, " access=%08x,", req->access );
1580 fprintf( stderr, " attributes=%08x,", req->attributes );
1581 fprintf( stderr, " share=%d", req->share );
1584 static void dump_open_console_reply( const struct open_console_reply *req )
1586 fprintf( stderr, " handle=%04x", req->handle );
1589 static void dump_get_console_wait_event_request( const struct get_console_wait_event_request *req )
1593 static void dump_get_console_wait_event_reply( const struct get_console_wait_event_reply *req )
1595 fprintf( stderr, " handle=%04x", req->handle );
1598 static void dump_get_console_mode_request( const struct get_console_mode_request *req )
1600 fprintf( stderr, " handle=%04x", req->handle );
1603 static void dump_get_console_mode_reply( const struct get_console_mode_reply *req )
1605 fprintf( stderr, " mode=%d", req->mode );
1608 static void dump_set_console_mode_request( const struct set_console_mode_request *req )
1610 fprintf( stderr, " handle=%04x,", req->handle );
1611 fprintf( stderr, " mode=%d", req->mode );
1614 static void dump_set_console_input_info_request( const struct set_console_input_info_request *req )
1616 fprintf( stderr, " handle=%04x,", req->handle );
1617 fprintf( stderr, " mask=%d,", req->mask );
1618 fprintf( stderr, " active_sb=%04x,", req->active_sb );
1619 fprintf( stderr, " history_mode=%d,", req->history_mode );
1620 fprintf( stderr, " history_size=%d,", req->history_size );
1621 fprintf( stderr, " edition_mode=%d,", req->edition_mode );
1622 fprintf( stderr, " input_cp=%d,", req->input_cp );
1623 fprintf( stderr, " output_cp=%d,", req->output_cp );
1624 fprintf( stderr, " win=%08x,", req->win );
1625 fprintf( stderr, " title=" );
1626 dump_varargs_unicode_str( cur_size );
1629 static void dump_get_console_input_info_request( const struct get_console_input_info_request *req )
1631 fprintf( stderr, " handle=%04x", req->handle );
1634 static void dump_get_console_input_info_reply( const struct get_console_input_info_reply *req )
1636 fprintf( stderr, " history_mode=%d,", req->history_mode );
1637 fprintf( stderr, " history_size=%d,", req->history_size );
1638 fprintf( stderr, " history_index=%d,", req->history_index );
1639 fprintf( stderr, " edition_mode=%d,", req->edition_mode );
1640 fprintf( stderr, " input_cp=%d,", req->input_cp );
1641 fprintf( stderr, " output_cp=%d,", req->output_cp );
1642 fprintf( stderr, " win=%08x,", req->win );
1643 fprintf( stderr, " title=" );
1644 dump_varargs_unicode_str( cur_size );
1647 static void dump_append_console_input_history_request( const struct append_console_input_history_request *req )
1649 fprintf( stderr, " handle=%04x,", req->handle );
1650 fprintf( stderr, " line=" );
1651 dump_varargs_unicode_str( cur_size );
1654 static void dump_get_console_input_history_request( const struct get_console_input_history_request *req )
1656 fprintf( stderr, " handle=%04x,", req->handle );
1657 fprintf( stderr, " index=%d", req->index );
1660 static void dump_get_console_input_history_reply( const struct get_console_input_history_reply *req )
1662 fprintf( stderr, " total=%d,", req->total );
1663 fprintf( stderr, " line=" );
1664 dump_varargs_unicode_str( cur_size );
1667 static void dump_create_console_output_request( const struct create_console_output_request *req )
1669 fprintf( stderr, " handle_in=%04x,", req->handle_in );
1670 fprintf( stderr, " access=%08x,", req->access );
1671 fprintf( stderr, " attributes=%08x,", req->attributes );
1672 fprintf( stderr, " share=%08x", req->share );
1675 static void dump_create_console_output_reply( const struct create_console_output_reply *req )
1677 fprintf( stderr, " handle_out=%04x", req->handle_out );
1680 static void dump_set_console_output_info_request( const struct set_console_output_info_request *req )
1682 fprintf( stderr, " handle=%04x,", req->handle );
1683 fprintf( stderr, " mask=%d,", req->mask );
1684 fprintf( stderr, " cursor_size=%d,", req->cursor_size );
1685 fprintf( stderr, " cursor_visible=%d,", req->cursor_visible );
1686 fprintf( stderr, " cursor_x=%d,", req->cursor_x );
1687 fprintf( stderr, " cursor_y=%d,", req->cursor_y );
1688 fprintf( stderr, " width=%d,", req->width );
1689 fprintf( stderr, " height=%d,", req->height );
1690 fprintf( stderr, " attr=%d,", req->attr );
1691 fprintf( stderr, " win_left=%d,", req->win_left );
1692 fprintf( stderr, " win_top=%d,", req->win_top );
1693 fprintf( stderr, " win_right=%d,", req->win_right );
1694 fprintf( stderr, " win_bottom=%d,", req->win_bottom );
1695 fprintf( stderr, " max_width=%d,", req->max_width );
1696 fprintf( stderr, " max_height=%d", req->max_height );
1699 static void dump_get_console_output_info_request( const struct get_console_output_info_request *req )
1701 fprintf( stderr, " handle=%04x", req->handle );
1704 static void dump_get_console_output_info_reply( const struct get_console_output_info_reply *req )
1706 fprintf( stderr, " cursor_size=%d,", req->cursor_size );
1707 fprintf( stderr, " cursor_visible=%d,", req->cursor_visible );
1708 fprintf( stderr, " cursor_x=%d,", req->cursor_x );
1709 fprintf( stderr, " cursor_y=%d,", req->cursor_y );
1710 fprintf( stderr, " width=%d,", req->width );
1711 fprintf( stderr, " height=%d,", req->height );
1712 fprintf( stderr, " attr=%d,", req->attr );
1713 fprintf( stderr, " win_left=%d,", req->win_left );
1714 fprintf( stderr, " win_top=%d,", req->win_top );
1715 fprintf( stderr, " win_right=%d,", req->win_right );
1716 fprintf( stderr, " win_bottom=%d,", req->win_bottom );
1717 fprintf( stderr, " max_width=%d,", req->max_width );
1718 fprintf( stderr, " max_height=%d", req->max_height );
1721 static void dump_write_console_input_request( const struct write_console_input_request *req )
1723 fprintf( stderr, " handle=%04x,", req->handle );
1724 fprintf( stderr, " rec=" );
1725 dump_varargs_input_records( cur_size );
1728 static void dump_write_console_input_reply( const struct write_console_input_reply *req )
1730 fprintf( stderr, " written=%d", req->written );
1733 static void dump_read_console_input_request( const struct read_console_input_request *req )
1735 fprintf( stderr, " handle=%04x,", req->handle );
1736 fprintf( stderr, " flush=%d", req->flush );
1739 static void dump_read_console_input_reply( const struct read_console_input_reply *req )
1741 fprintf( stderr, " read=%d,", req->read );
1742 fprintf( stderr, " rec=" );
1743 dump_varargs_input_records( cur_size );
1746 static void dump_write_console_output_request( const struct write_console_output_request *req )
1748 fprintf( stderr, " handle=%04x,", req->handle );
1749 fprintf( stderr, " x=%d,", req->x );
1750 fprintf( stderr, " y=%d,", req->y );
1751 fprintf( stderr, " mode=%d,", req->mode );
1752 fprintf( stderr, " wrap=%d,", req->wrap );
1753 fprintf( stderr, " data=" );
1754 dump_varargs_bytes( cur_size );
1757 static void dump_write_console_output_reply( const struct write_console_output_reply *req )
1759 fprintf( stderr, " written=%d,", req->written );
1760 fprintf( stderr, " width=%d,", req->width );
1761 fprintf( stderr, " height=%d", req->height );
1764 static void dump_fill_console_output_request( const struct fill_console_output_request *req )
1766 fprintf( stderr, " handle=%04x,", req->handle );
1767 fprintf( stderr, " x=%d,", req->x );
1768 fprintf( stderr, " y=%d,", req->y );
1769 fprintf( stderr, " mode=%d,", req->mode );
1770 fprintf( stderr, " count=%d,", req->count );
1771 fprintf( stderr, " wrap=%d,", req->wrap );
1772 fprintf( stderr, " data=" );
1773 dump_char_info( &req->data );
1776 static void dump_fill_console_output_reply( const struct fill_console_output_reply *req )
1778 fprintf( stderr, " written=%d", req->written );
1781 static void dump_read_console_output_request( const struct read_console_output_request *req )
1783 fprintf( stderr, " handle=%04x,", req->handle );
1784 fprintf( stderr, " x=%d,", req->x );
1785 fprintf( stderr, " y=%d,", req->y );
1786 fprintf( stderr, " mode=%d,", req->mode );
1787 fprintf( stderr, " wrap=%d", req->wrap );
1790 static void dump_read_console_output_reply( const struct read_console_output_reply *req )
1792 fprintf( stderr, " width=%d,", req->width );
1793 fprintf( stderr, " height=%d,", req->height );
1794 fprintf( stderr, " data=" );
1795 dump_varargs_bytes( cur_size );
1798 static void dump_move_console_output_request( const struct move_console_output_request *req )
1800 fprintf( stderr, " handle=%04x,", req->handle );
1801 fprintf( stderr, " x_src=%d,", req->x_src );
1802 fprintf( stderr, " y_src=%d,", req->y_src );
1803 fprintf( stderr, " x_dst=%d,", req->x_dst );
1804 fprintf( stderr, " y_dst=%d,", req->y_dst );
1805 fprintf( stderr, " w=%d,", req->w );
1806 fprintf( stderr, " h=%d", req->h );
1809 static void dump_send_console_signal_request( const struct send_console_signal_request *req )
1811 fprintf( stderr, " signal=%d,", req->signal );
1812 fprintf( stderr, " group_id=%04x", req->group_id );
1815 static void dump_read_directory_changes_request( const struct read_directory_changes_request *req )
1817 fprintf( stderr, " filter=%08x,", req->filter );
1818 fprintf( stderr, " subtree=%d,", req->subtree );
1819 fprintf( stderr, " want_data=%d,", req->want_data );
1820 fprintf( stderr, " async=" );
1821 dump_async_data( &req->async );
1824 static void dump_read_change_request( const struct read_change_request *req )
1826 fprintf( stderr, " handle=%04x", req->handle );
1829 static void dump_read_change_reply( const struct read_change_reply *req )
1831 fprintf( stderr, " action=%d,", req->action );
1832 fprintf( stderr, " name=" );
1833 dump_varargs_string( cur_size );
1836 static void dump_create_mapping_request( const struct create_mapping_request *req )
1838 fprintf( stderr, " access=%08x,", req->access );
1839 fprintf( stderr, " attributes=%08x,", req->attributes );
1840 fprintf( stderr, " protect=%08x,", req->protect );
1841 fprintf( stderr, " size=" );
1842 dump_uint64( &req->size );
1843 fprintf( stderr, "," );
1844 fprintf( stderr, " file_handle=%04x,", req->file_handle );
1845 fprintf( stderr, " objattr=" );
1846 dump_varargs_object_attributes( cur_size );
1849 static void dump_create_mapping_reply( const struct create_mapping_reply *req )
1851 fprintf( stderr, " handle=%04x", req->handle );
1854 static void dump_open_mapping_request( const struct open_mapping_request *req )
1856 fprintf( stderr, " access=%08x,", req->access );
1857 fprintf( stderr, " attributes=%08x,", req->attributes );
1858 fprintf( stderr, " rootdir=%04x,", req->rootdir );
1859 fprintf( stderr, " name=" );
1860 dump_varargs_unicode_str( cur_size );
1863 static void dump_open_mapping_reply( const struct open_mapping_reply *req )
1865 fprintf( stderr, " handle=%04x", req->handle );
1868 static void dump_get_mapping_info_request( const struct get_mapping_info_request *req )
1870 fprintf( stderr, " handle=%04x,", req->handle );
1871 fprintf( stderr, " access=%08x", req->access );
1874 static void dump_get_mapping_info_reply( const struct get_mapping_info_reply *req )
1876 fprintf( stderr, " size=" );
1877 dump_uint64( &req->size );
1878 fprintf( stderr, "," );
1879 fprintf( stderr, " protect=%d,", req->protect );
1880 fprintf( stderr, " header_size=%d,", req->header_size );
1881 fprintf( stderr, " base=" );
1882 dump_uint64( &req->base );
1883 fprintf( stderr, "," );
1884 fprintf( stderr, " mapping=%04x,", req->mapping );
1885 fprintf( stderr, " shared_file=%04x", req->shared_file );
1888 static void dump_get_mapping_committed_range_request( const struct get_mapping_committed_range_request *req )
1890 fprintf( stderr, " handle=%04x,", req->handle );
1891 fprintf( stderr, " offset=" );
1892 dump_uint64( &req->offset );
1895 static void dump_get_mapping_committed_range_reply( const struct get_mapping_committed_range_reply *req )
1897 fprintf( stderr, " size=" );
1898 dump_uint64( &req->size );
1899 fprintf( stderr, "," );
1900 fprintf( stderr, " committed=%d", req->committed );
1903 static void dump_add_mapping_committed_range_request( const struct add_mapping_committed_range_request *req )
1905 fprintf( stderr, " handle=%04x,", req->handle );
1906 fprintf( stderr, " offset=" );
1907 dump_uint64( &req->offset );
1908 fprintf( stderr, "," );
1909 fprintf( stderr, " size=" );
1910 dump_uint64( &req->size );
1913 static void dump_create_snapshot_request( const struct create_snapshot_request *req )
1915 fprintf( stderr, " attributes=%08x,", req->attributes );
1916 fprintf( stderr, " flags=%08x", req->flags );
1919 static void dump_create_snapshot_reply( const struct create_snapshot_reply *req )
1921 fprintf( stderr, " handle=%04x", req->handle );
1924 static void dump_next_process_request( const struct next_process_request *req )
1926 fprintf( stderr, " handle=%04x,", req->handle );
1927 fprintf( stderr, " reset=%d", req->reset );
1930 static void dump_next_process_reply( const struct next_process_reply *req )
1932 fprintf( stderr, " count=%d,", req->count );
1933 fprintf( stderr, " pid=%04x,", req->pid );
1934 fprintf( stderr, " ppid=%04x,", req->ppid );
1935 fprintf( stderr, " threads=%d,", req->threads );
1936 fprintf( stderr, " priority=%d,", req->priority );
1937 fprintf( stderr, " handles=%d,", req->handles );
1938 fprintf( stderr, " filename=" );
1939 dump_varargs_unicode_str( cur_size );
1942 static void dump_next_thread_request( const struct next_thread_request *req )
1944 fprintf( stderr, " handle=%04x,", req->handle );
1945 fprintf( stderr, " reset=%d", req->reset );
1948 static void dump_next_thread_reply( const struct next_thread_reply *req )
1950 fprintf( stderr, " count=%d,", req->count );
1951 fprintf( stderr, " pid=%04x,", req->pid );
1952 fprintf( stderr, " tid=%04x,", req->tid );
1953 fprintf( stderr, " base_pri=%d,", req->base_pri );
1954 fprintf( stderr, " delta_pri=%d", req->delta_pri );
1957 static void dump_wait_debug_event_request( const struct wait_debug_event_request *req )
1959 fprintf( stderr, " get_handle=%d", req->get_handle );
1962 static void dump_wait_debug_event_reply( const struct wait_debug_event_reply *req )
1964 fprintf( stderr, " pid=%04x,", req->pid );
1965 fprintf( stderr, " tid=%04x,", req->tid );
1966 fprintf( stderr, " wait=%04x,", req->wait );
1967 fprintf( stderr, " event=" );
1968 dump_varargs_debug_event( cur_size );
1971 static void dump_queue_exception_event_request( const struct queue_exception_event_request *req )
1973 fprintf( stderr, " first=%d,", req->first );
1974 fprintf( stderr, " code=%08x,", req->code );
1975 fprintf( stderr, " flags=%08x,", req->flags );
1976 fprintf( stderr, " record=" );
1977 dump_uint64( &req->record );
1978 fprintf( stderr, "," );
1979 fprintf( stderr, " address=" );
1980 dump_uint64( &req->address );
1981 fprintf( stderr, "," );
1982 fprintf( stderr, " len=%u,", req->len );
1983 fprintf( stderr, " params=" );
1984 dump_varargs_uints64( min(cur_size,req->len) );
1985 fputc( ',', stderr );
1986 fprintf( stderr, " context=" );
1987 dump_varargs_context( cur_size );
1990 static void dump_queue_exception_event_reply( const struct queue_exception_event_reply *req )
1992 fprintf( stderr, " handle=%04x", req->handle );
1995 static void dump_get_exception_status_request( const struct get_exception_status_request *req )
1997 fprintf( stderr, " handle=%04x", req->handle );
2000 static void dump_get_exception_status_reply( const struct get_exception_status_reply *req )
2002 fprintf( stderr, " context=" );
2003 dump_varargs_context( cur_size );
2006 static void dump_output_debug_string_request( const struct output_debug_string_request *req )
2008 fprintf( stderr, " length=%u,", req->length );
2009 fprintf( stderr, " string=" );
2010 dump_uint64( &req->string );
2011 fprintf( stderr, "," );
2012 fprintf( stderr, " unicode=%d", req->unicode );
2015 static void dump_continue_debug_event_request( const struct continue_debug_event_request *req )
2017 fprintf( stderr, " pid=%04x,", req->pid );
2018 fprintf( stderr, " tid=%04x,", req->tid );
2019 fprintf( stderr, " status=%d", req->status );
2022 static void dump_debug_process_request( const struct debug_process_request *req )
2024 fprintf( stderr, " pid=%04x,", req->pid );
2025 fprintf( stderr, " attach=%d", req->attach );
2028 static void dump_debug_break_request( const struct debug_break_request *req )
2030 fprintf( stderr, " handle=%04x", req->handle );
2033 static void dump_debug_break_reply( const struct debug_break_reply *req )
2035 fprintf( stderr, " self=%d", req->self );
2038 static void dump_set_debugger_kill_on_exit_request( const struct set_debugger_kill_on_exit_request *req )
2040 fprintf( stderr, " kill_on_exit=%d", req->kill_on_exit );
2043 static void dump_read_process_memory_request( const struct read_process_memory_request *req )
2045 fprintf( stderr, " handle=%04x,", req->handle );
2046 fprintf( stderr, " addr=" );
2047 dump_uint64( &req->addr );
2050 static void dump_read_process_memory_reply( const struct read_process_memory_reply *req )
2052 fprintf( stderr, " data=" );
2053 dump_varargs_bytes( cur_size );
2056 static void dump_write_process_memory_request( const struct write_process_memory_request *req )
2058 fprintf( stderr, " handle=%04x,", req->handle );
2059 fprintf( stderr, " addr=" );
2060 dump_uint64( &req->addr );
2061 fprintf( stderr, "," );
2062 fprintf( stderr, " data=" );
2063 dump_varargs_bytes( cur_size );
2066 static void dump_create_key_request( const struct create_key_request *req )
2068 fprintf( stderr, " parent=%04x,", req->parent );
2069 fprintf( stderr, " access=%08x,", req->access );
2070 fprintf( stderr, " attributes=%08x,", req->attributes );
2071 fprintf( stderr, " options=%08x,", req->options );
2072 fprintf( stderr, " namelen=%u,", req->namelen );
2073 fprintf( stderr, " name=" );
2074 dump_varargs_unicode_str( min(cur_size,req->namelen) );
2075 fputc( ',', stderr );
2076 fprintf( stderr, " class=" );
2077 dump_varargs_unicode_str( cur_size );
2080 static void dump_create_key_reply( const struct create_key_reply *req )
2082 fprintf( stderr, " hkey=%04x,", req->hkey );
2083 fprintf( stderr, " created=%d", req->created );
2086 static void dump_open_key_request( const struct open_key_request *req )
2088 fprintf( stderr, " parent=%04x,", req->parent );
2089 fprintf( stderr, " access=%08x,", req->access );
2090 fprintf( stderr, " attributes=%08x,", req->attributes );
2091 fprintf( stderr, " name=" );
2092 dump_varargs_unicode_str( cur_size );
2095 static void dump_open_key_reply( const struct open_key_reply *req )
2097 fprintf( stderr, " hkey=%04x", req->hkey );
2100 static void dump_delete_key_request( const struct delete_key_request *req )
2102 fprintf( stderr, " hkey=%04x", req->hkey );
2105 static void dump_flush_key_request( const struct flush_key_request *req )
2107 fprintf( stderr, " hkey=%04x", req->hkey );
2110 static void dump_enum_key_request( const struct enum_key_request *req )
2112 fprintf( stderr, " hkey=%04x,", req->hkey );
2113 fprintf( stderr, " index=%d,", req->index );
2114 fprintf( stderr, " info_class=%d", req->info_class );
2117 static void dump_enum_key_reply( const struct enum_key_reply *req )
2119 fprintf( stderr, " subkeys=%d,", req->subkeys );
2120 fprintf( stderr, " max_subkey=%d,", req->max_subkey );
2121 fprintf( stderr, " max_class=%d,", req->max_class );
2122 fprintf( stderr, " values=%d,", req->values );
2123 fprintf( stderr, " max_value=%d,", req->max_value );
2124 fprintf( stderr, " max_data=%d,", req->max_data );
2125 fprintf( stderr, " modif=" );
2126 dump_timeout( &req->modif );
2127 fprintf( stderr, "," );
2128 fprintf( stderr, " total=%u,", req->total );
2129 fprintf( stderr, " namelen=%u,", req->namelen );
2130 fprintf( stderr, " name=" );
2131 dump_varargs_unicode_str( min(cur_size,req->namelen) );
2132 fputc( ',', stderr );
2133 fprintf( stderr, " class=" );
2134 dump_varargs_unicode_str( cur_size );
2137 static void dump_set_key_value_request( const struct set_key_value_request *req )
2139 fprintf( stderr, " hkey=%04x,", req->hkey );
2140 fprintf( stderr, " type=%d,", req->type );
2141 fprintf( stderr, " namelen=%u,", req->namelen );
2142 fprintf( stderr, " name=" );
2143 dump_varargs_unicode_str( min(cur_size,req->namelen) );
2144 fputc( ',', stderr );
2145 fprintf( stderr, " data=" );
2146 dump_varargs_bytes( cur_size );
2149 static void dump_get_key_value_request( const struct get_key_value_request *req )
2151 fprintf( stderr, " hkey=%04x,", req->hkey );
2152 fprintf( stderr, " name=" );
2153 dump_varargs_unicode_str( cur_size );
2156 static void dump_get_key_value_reply( const struct get_key_value_reply *req )
2158 fprintf( stderr, " type=%d,", req->type );
2159 fprintf( stderr, " total=%u,", req->total );
2160 fprintf( stderr, " data=" );
2161 dump_varargs_bytes( cur_size );
2164 static void dump_enum_key_value_request( const struct enum_key_value_request *req )
2166 fprintf( stderr, " hkey=%04x,", req->hkey );
2167 fprintf( stderr, " index=%d,", req->index );
2168 fprintf( stderr, " info_class=%d", req->info_class );
2171 static void dump_enum_key_value_reply( const struct enum_key_value_reply *req )
2173 fprintf( stderr, " type=%d,", req->type );
2174 fprintf( stderr, " total=%u,", req->total );
2175 fprintf( stderr, " namelen=%u,", req->namelen );
2176 fprintf( stderr, " name=" );
2177 dump_varargs_unicode_str( min(cur_size,req->namelen) );
2178 fputc( ',', stderr );
2179 fprintf( stderr, " data=" );
2180 dump_varargs_bytes( cur_size );
2183 static void dump_delete_key_value_request( const struct delete_key_value_request *req )
2185 fprintf( stderr, " hkey=%04x,", req->hkey );
2186 fprintf( stderr, " name=" );
2187 dump_varargs_unicode_str( cur_size );
2190 static void dump_load_registry_request( const struct load_registry_request *req )
2192 fprintf( stderr, " hkey=%04x,", req->hkey );
2193 fprintf( stderr, " file=%04x,", req->file );
2194 fprintf( stderr, " name=" );
2195 dump_varargs_unicode_str( cur_size );
2198 static void dump_unload_registry_request( const struct unload_registry_request *req )
2200 fprintf( stderr, " hkey=%04x", req->hkey );
2203 static void dump_save_registry_request( const struct save_registry_request *req )
2205 fprintf( stderr, " hkey=%04x,", req->hkey );
2206 fprintf( stderr, " file=%04x", req->file );
2209 static void dump_set_registry_notification_request( const struct set_registry_notification_request *req )
2211 fprintf( stderr, " hkey=%04x,", req->hkey );
2212 fprintf( stderr, " event=%04x,", req->event );
2213 fprintf( stderr, " subtree=%d,", req->subtree );
2214 fprintf( stderr, " filter=%08x", req->filter );
2217 static void dump_create_timer_request( const struct create_timer_request *req )
2219 fprintf( stderr, " access=%08x,", req->access );
2220 fprintf( stderr, " attributes=%08x,", req->attributes );
2221 fprintf( stderr, " rootdir=%04x,", req->rootdir );
2222 fprintf( stderr, " manual=%d,", req->manual );
2223 fprintf( stderr, " name=" );
2224 dump_varargs_unicode_str( cur_size );
2227 static void dump_create_timer_reply( const struct create_timer_reply *req )
2229 fprintf( stderr, " handle=%04x", req->handle );
2232 static void dump_open_timer_request( const struct open_timer_request *req )
2234 fprintf( stderr, " access=%08x,", req->access );
2235 fprintf( stderr, " attributes=%08x,", req->attributes );
2236 fprintf( stderr, " rootdir=%04x,", req->rootdir );
2237 fprintf( stderr, " name=" );
2238 dump_varargs_unicode_str( cur_size );
2241 static void dump_open_timer_reply( const struct open_timer_reply *req )
2243 fprintf( stderr, " handle=%04x", req->handle );
2246 static void dump_set_timer_request( const struct set_timer_request *req )
2248 fprintf( stderr, " handle=%04x,", req->handle );
2249 fprintf( stderr, " expire=" );
2250 dump_timeout( &req->expire );
2251 fprintf( stderr, "," );
2252 fprintf( stderr, " callback=" );
2253 dump_uint64( &req->callback );
2254 fprintf( stderr, "," );
2255 fprintf( stderr, " arg=" );
2256 dump_uint64( &req->arg );
2257 fprintf( stderr, "," );
2258 fprintf( stderr, " period=%d", req->period );
2261 static void dump_set_timer_reply( const struct set_timer_reply *req )
2263 fprintf( stderr, " signaled=%d", req->signaled );
2266 static void dump_cancel_timer_request( const struct cancel_timer_request *req )
2268 fprintf( stderr, " handle=%04x", req->handle );
2271 static void dump_cancel_timer_reply( const struct cancel_timer_reply *req )
2273 fprintf( stderr, " signaled=%d", req->signaled );
2276 static void dump_get_timer_info_request( const struct get_timer_info_request *req )
2278 fprintf( stderr, " handle=%04x", req->handle );
2281 static void dump_get_timer_info_reply( const struct get_timer_info_reply *req )
2283 fprintf( stderr, " when=" );
2284 dump_timeout( &req->when );
2285 fprintf( stderr, "," );
2286 fprintf( stderr, " signaled=%d", req->signaled );
2289 static void dump_get_thread_context_request( const struct get_thread_context_request *req )
2291 fprintf( stderr, " handle=%04x,", req->handle );
2292 fprintf( stderr, " flags=%08x,", req->flags );
2293 fprintf( stderr, " suspend=%d", req->suspend );
2296 static void dump_get_thread_context_reply( const struct get_thread_context_reply *req )
2298 fprintf( stderr, " self=%d,", req->self );
2299 fprintf( stderr, " context=" );
2300 dump_varargs_context( cur_size );
2303 static void dump_set_thread_context_request( const struct set_thread_context_request *req )
2305 fprintf( stderr, " handle=%04x,", req->handle );
2306 fprintf( stderr, " flags=%08x,", req->flags );
2307 fprintf( stderr, " suspend=%d,", req->suspend );
2308 fprintf( stderr, " context=" );
2309 dump_varargs_context( cur_size );
2312 static void dump_set_thread_context_reply( const struct set_thread_context_reply *req )
2314 fprintf( stderr, " self=%d", req->self );
2317 static void dump_get_selector_entry_request( const struct get_selector_entry_request *req )
2319 fprintf( stderr, " handle=%04x,", req->handle );
2320 fprintf( stderr, " entry=%d", req->entry );
2323 static void dump_get_selector_entry_reply( const struct get_selector_entry_reply *req )
2325 fprintf( stderr, " base=%08x,", req->base );
2326 fprintf( stderr, " limit=%08x,", req->limit );
2327 fprintf( stderr, " flags=%02x", req->flags );
2330 static void dump_add_atom_request( const struct add_atom_request *req )
2332 fprintf( stderr, " table=%04x,", req->table );
2333 fprintf( stderr, " name=" );
2334 dump_varargs_unicode_str( cur_size );
2337 static void dump_add_atom_reply( const struct add_atom_reply *req )
2339 fprintf( stderr, " atom=%04x", req->atom );
2342 static void dump_delete_atom_request( const struct delete_atom_request *req )
2344 fprintf( stderr, " table=%04x,", req->table );
2345 fprintf( stderr, " atom=%04x", req->atom );
2348 static void dump_find_atom_request( const struct find_atom_request *req )
2350 fprintf( stderr, " table=%04x,", req->table );
2351 fprintf( stderr, " name=" );
2352 dump_varargs_unicode_str( cur_size );
2355 static void dump_find_atom_reply( const struct find_atom_reply *req )
2357 fprintf( stderr, " atom=%04x", req->atom );
2360 static void dump_get_atom_information_request( const struct get_atom_information_request *req )
2362 fprintf( stderr, " table=%04x,", req->table );
2363 fprintf( stderr, " atom=%04x", req->atom );
2366 static void dump_get_atom_information_reply( const struct get_atom_information_reply *req )
2368 fprintf( stderr, " count=%d,", req->count );
2369 fprintf( stderr, " pinned=%d,", req->pinned );
2370 fprintf( stderr, " total=%u,", req->total );
2371 fprintf( stderr, " name=" );
2372 dump_varargs_unicode_str( cur_size );
2375 static void dump_set_atom_information_request( const struct set_atom_information_request *req )
2377 fprintf( stderr, " table=%04x,", req->table );
2378 fprintf( stderr, " atom=%04x,", req->atom );
2379 fprintf( stderr, " pinned=%d", req->pinned );
2382 static void dump_empty_atom_table_request( const struct empty_atom_table_request *req )
2384 fprintf( stderr, " table=%04x,", req->table );
2385 fprintf( stderr, " if_pinned=%d", req->if_pinned );
2388 static void dump_init_atom_table_request( const struct init_atom_table_request *req )
2390 fprintf( stderr, " entries=%d", req->entries );
2393 static void dump_init_atom_table_reply( const struct init_atom_table_reply *req )
2395 fprintf( stderr, " table=%04x", req->table );
2398 static void dump_get_msg_queue_request( const struct get_msg_queue_request *req )
2402 static void dump_get_msg_queue_reply( const struct get_msg_queue_reply *req )
2404 fprintf( stderr, " handle=%04x", req->handle );
2407 static void dump_set_queue_fd_request( const struct set_queue_fd_request *req )
2409 fprintf( stderr, " handle=%04x", req->handle );
2412 static void dump_set_queue_mask_request( const struct set_queue_mask_request *req )
2414 fprintf( stderr, " wake_mask=%08x,", req->wake_mask );
2415 fprintf( stderr, " changed_mask=%08x,", req->changed_mask );
2416 fprintf( stderr, " skip_wait=%d", req->skip_wait );
2419 static void dump_set_queue_mask_reply( const struct set_queue_mask_reply *req )
2421 fprintf( stderr, " wake_bits=%08x,", req->wake_bits );
2422 fprintf( stderr, " changed_bits=%08x", req->changed_bits );
2425 static void dump_get_queue_status_request( const struct get_queue_status_request *req )
2427 fprintf( stderr, " clear=%d", req->clear );
2430 static void dump_get_queue_status_reply( const struct get_queue_status_reply *req )
2432 fprintf( stderr, " wake_bits=%08x,", req->wake_bits );
2433 fprintf( stderr, " changed_bits=%08x", req->changed_bits );
2436 static void dump_get_process_idle_event_request( const struct get_process_idle_event_request *req )
2438 fprintf( stderr, " handle=%04x", req->handle );
2441 static void dump_get_process_idle_event_reply( const struct get_process_idle_event_reply *req )
2443 fprintf( stderr, " event=%04x", req->event );
2446 static void dump_send_message_request( const struct send_message_request *req )
2448 fprintf( stderr, " id=%04x,", req->id );
2449 fprintf( stderr, " type=%d,", req->type );
2450 fprintf( stderr, " flags=%d,", req->flags );
2451 fprintf( stderr, " win=%08x,", req->win );
2452 fprintf( stderr, " msg=%08x,", req->msg );
2453 fprintf( stderr, " wparam=" );
2454 dump_uint64( &req->wparam );
2455 fprintf( stderr, "," );
2456 fprintf( stderr, " lparam=" );
2457 dump_uint64( &req->lparam );
2458 fprintf( stderr, "," );
2459 fprintf( stderr, " timeout=" );
2460 dump_timeout( &req->timeout );
2461 fprintf( stderr, "," );
2462 fprintf( stderr, " data=" );
2463 dump_varargs_message_data( cur_size );
2466 static void dump_post_quit_message_request( const struct post_quit_message_request *req )
2468 fprintf( stderr, " exit_code=%d", req->exit_code );
2471 static void dump_send_hardware_message_request( const struct send_hardware_message_request *req )
2473 fprintf( stderr, " id=%04x,", req->id );
2474 fprintf( stderr, " win=%08x,", req->win );
2475 fprintf( stderr, " msg=%08x,", req->msg );
2476 fprintf( stderr, " wparam=" );
2477 dump_uint64( &req->wparam );
2478 fprintf( stderr, "," );
2479 fprintf( stderr, " lparam=" );
2480 dump_uint64( &req->lparam );
2481 fprintf( stderr, "," );
2482 fprintf( stderr, " info=" );
2483 dump_uint64( &req->info );
2484 fprintf( stderr, "," );
2485 fprintf( stderr, " x=%d,", req->x );
2486 fprintf( stderr, " y=%d,", req->y );
2487 fprintf( stderr, " time=%08x", req->time );
2490 static void dump_get_message_request( const struct get_message_request *req )
2492 fprintf( stderr, " flags=%08x,", req->flags );
2493 fprintf( stderr, " get_win=%08x,", req->get_win );
2494 fprintf( stderr, " get_first=%08x,", req->get_first );
2495 fprintf( stderr, " get_last=%08x,", req->get_last );
2496 fprintf( stderr, " hw_id=%08x,", req->hw_id );
2497 fprintf( stderr, " wake_mask=%08x,", req->wake_mask );
2498 fprintf( stderr, " changed_mask=%08x", req->changed_mask );
2501 static void dump_get_message_reply( const struct get_message_reply *req )
2503 fprintf( stderr, " win=%08x,", req->win );
2504 fprintf( stderr, " msg=%08x,", req->msg );
2505 fprintf( stderr, " wparam=" );
2506 dump_uint64( &req->wparam );
2507 fprintf( stderr, "," );
2508 fprintf( stderr, " lparam=" );
2509 dump_uint64( &req->lparam );
2510 fprintf( stderr, "," );
2511 fprintf( stderr, " type=%d,", req->type );
2512 fprintf( stderr, " time=%08x,", req->time );
2513 fprintf( stderr, " active_hooks=%08x,", req->active_hooks );
2514 fprintf( stderr, " total=%u,", req->total );
2515 fprintf( stderr, " data=" );
2516 dump_varargs_message_data( cur_size );
2519 static void dump_reply_message_request( const struct reply_message_request *req )
2521 fprintf( stderr, " remove=%d,", req->remove );
2522 fprintf( stderr, " result=" );
2523 dump_uint64( &req->result );
2524 fprintf( stderr, "," );
2525 fprintf( stderr, " data=" );
2526 dump_varargs_bytes( cur_size );
2529 static void dump_accept_hardware_message_request( const struct accept_hardware_message_request *req )
2531 fprintf( stderr, " hw_id=%08x,", req->hw_id );
2532 fprintf( stderr, " remove=%d,", req->remove );
2533 fprintf( stderr, " new_win=%08x", req->new_win );
2536 static void dump_get_message_reply_request( const struct get_message_reply_request *req )
2538 fprintf( stderr, " cancel=%d", req->cancel );
2541 static void dump_get_message_reply_reply( const struct get_message_reply_reply *req )
2543 fprintf( stderr, " result=" );
2544 dump_uint64( &req->result );
2545 fprintf( stderr, "," );
2546 fprintf( stderr, " data=" );
2547 dump_varargs_bytes( cur_size );
2550 static void dump_set_win_timer_request( const struct set_win_timer_request *req )
2552 fprintf( stderr, " win=%08x,", req->win );
2553 fprintf( stderr, " msg=%08x,", req->msg );
2554 fprintf( stderr, " rate=%08x,", req->rate );
2555 fprintf( stderr, " id=" );
2556 dump_uint64( &req->id );
2557 fprintf( stderr, "," );
2558 fprintf( stderr, " lparam=" );
2559 dump_uint64( &req->lparam );
2562 static void dump_set_win_timer_reply( const struct set_win_timer_reply *req )
2564 fprintf( stderr, " id=" );
2565 dump_uint64( &req->id );
2568 static void dump_kill_win_timer_request( const struct kill_win_timer_request *req )
2570 fprintf( stderr, " win=%08x,", req->win );
2571 fprintf( stderr, " id=" );
2572 dump_uint64( &req->id );
2573 fprintf( stderr, "," );
2574 fprintf( stderr, " msg=%08x", req->msg );
2577 static void dump_is_window_hung_request( const struct is_window_hung_request *req )
2579 fprintf( stderr, " win=%08x", req->win );
2582 static void dump_is_window_hung_reply( const struct is_window_hung_reply *req )
2584 fprintf( stderr, " is_hung=%d", req->is_hung );
2587 static void dump_get_serial_info_request( const struct get_serial_info_request *req )
2589 fprintf( stderr, " handle=%04x", req->handle );
2592 static void dump_get_serial_info_reply( const struct get_serial_info_reply *req )
2594 fprintf( stderr, " readinterval=%08x,", req->readinterval );
2595 fprintf( stderr, " readconst=%08x,", req->readconst );
2596 fprintf( stderr, " readmult=%08x,", req->readmult );
2597 fprintf( stderr, " writeconst=%08x,", req->writeconst );
2598 fprintf( stderr, " writemult=%08x,", req->writemult );
2599 fprintf( stderr, " eventmask=%08x", req->eventmask );
2602 static void dump_set_serial_info_request( const struct set_serial_info_request *req )
2604 fprintf( stderr, " handle=%04x,", req->handle );
2605 fprintf( stderr, " flags=%d,", req->flags );
2606 fprintf( stderr, " readinterval=%08x,", req->readinterval );
2607 fprintf( stderr, " readconst=%08x,", req->readconst );
2608 fprintf( stderr, " readmult=%08x,", req->readmult );
2609 fprintf( stderr, " writeconst=%08x,", req->writeconst );
2610 fprintf( stderr, " writemult=%08x,", req->writemult );
2611 fprintf( stderr, " eventmask=%08x", req->eventmask );
2614 static void dump_register_async_request( const struct register_async_request *req )
2616 fprintf( stderr, " type=%d,", req->type );
2617 fprintf( stderr, " async=" );
2618 dump_async_data( &req->async );
2619 fprintf( stderr, "," );
2620 fprintf( stderr, " count=%d", req->count );
2623 static void dump_cancel_async_request( const struct cancel_async_request *req )
2625 fprintf( stderr, " handle=%04x", req->handle );
2628 static void dump_ioctl_request( const struct ioctl_request *req )
2630 fprintf( stderr, " code=" );
2631 dump_ioctl_code( &req->code );
2632 fprintf( stderr, "," );
2633 fprintf( stderr, " async=" );
2634 dump_async_data( &req->async );
2635 fprintf( stderr, "," );
2636 fprintf( stderr, " blocking=%d,", req->blocking );
2637 fprintf( stderr, " in_data=" );
2638 dump_varargs_bytes( cur_size );
2641 static void dump_ioctl_reply( const struct ioctl_reply *req )
2643 fprintf( stderr, " wait=%04x,", req->wait );
2644 fprintf( stderr, " options=%08x,", req->options );
2645 fprintf( stderr, " out_data=" );
2646 dump_varargs_bytes( cur_size );
2649 static void dump_get_ioctl_result_request( const struct get_ioctl_result_request *req )
2651 fprintf( stderr, " handle=%04x,", req->handle );
2652 fprintf( stderr, " user_arg=" );
2653 dump_uint64( &req->user_arg );
2656 static void dump_get_ioctl_result_reply( const struct get_ioctl_result_reply *req )
2658 fprintf( stderr, " out_data=" );
2659 dump_varargs_bytes( cur_size );
2662 static void dump_create_named_pipe_request( const struct create_named_pipe_request *req )
2664 fprintf( stderr, " access=%08x,", req->access );
2665 fprintf( stderr, " attributes=%08x,", req->attributes );
2666 fprintf( stderr, " rootdir=%04x,", req->rootdir );
2667 fprintf( stderr, " options=%08x,", req->options );
2668 fprintf( stderr, " maxinstances=%08x,", req->maxinstances );
2669 fprintf( stderr, " outsize=%08x,", req->outsize );
2670 fprintf( stderr, " insize=%08x,", req->insize );
2671 fprintf( stderr, " timeout=" );
2672 dump_timeout( &req->timeout );
2673 fprintf( stderr, "," );
2674 fprintf( stderr, " flags=%08x,", req->flags );
2675 fprintf( stderr, " name=" );
2676 dump_varargs_unicode_str( cur_size );
2679 static void dump_create_named_pipe_reply( const struct create_named_pipe_reply *req )
2681 fprintf( stderr, " handle=%04x", req->handle );
2684 static void dump_get_named_pipe_info_request( const struct get_named_pipe_info_request *req )
2686 fprintf( stderr, " handle=%04x", req->handle );
2689 static void dump_get_named_pipe_info_reply( const struct get_named_pipe_info_reply *req )
2691 fprintf( stderr, " flags=%08x,", req->flags );
2692 fprintf( stderr, " maxinstances=%08x,", req->maxinstances );
2693 fprintf( stderr, " instances=%08x,", req->instances );
2694 fprintf( stderr, " outsize=%08x,", req->outsize );
2695 fprintf( stderr, " insize=%08x", req->insize );
2698 static void dump_create_window_request( const struct create_window_request *req )
2700 fprintf( stderr, " parent=%08x,", req->parent );
2701 fprintf( stderr, " owner=%08x,", req->owner );
2702 fprintf( stderr, " atom=%04x,", req->atom );
2703 fprintf( stderr, " instance=" );
2704 dump_uint64( &req->instance );
2705 fprintf( stderr, "," );
2706 fprintf( stderr, " class=" );
2707 dump_varargs_unicode_str( cur_size );
2710 static void dump_create_window_reply( const struct create_window_reply *req )
2712 fprintf( stderr, " handle=%08x,", req->handle );
2713 fprintf( stderr, " parent=%08x,", req->parent );
2714 fprintf( stderr, " owner=%08x,", req->owner );
2715 fprintf( stderr, " extra=%d,", req->extra );
2716 fprintf( stderr, " class_ptr=" );
2717 dump_uint64( &req->class_ptr );
2720 static void dump_destroy_window_request( const struct destroy_window_request *req )
2722 fprintf( stderr, " handle=%08x", req->handle );
2725 static void dump_get_desktop_window_request( const struct get_desktop_window_request *req )
2727 fprintf( stderr, " force=%d", req->force );
2730 static void dump_get_desktop_window_reply( const struct get_desktop_window_reply *req )
2732 fprintf( stderr, " top_window=%08x,", req->top_window );
2733 fprintf( stderr, " msg_window=%08x", req->msg_window );
2736 static void dump_set_window_owner_request( const struct set_window_owner_request *req )
2738 fprintf( stderr, " handle=%08x,", req->handle );
2739 fprintf( stderr, " owner=%08x", req->owner );
2742 static void dump_set_window_owner_reply( const struct set_window_owner_reply *req )
2744 fprintf( stderr, " full_owner=%08x,", req->full_owner );
2745 fprintf( stderr, " prev_owner=%08x", req->prev_owner );
2748 static void dump_get_window_info_request( const struct get_window_info_request *req )
2750 fprintf( stderr, " handle=%08x", req->handle );
2753 static void dump_get_window_info_reply( const struct get_window_info_reply *req )
2755 fprintf( stderr, " full_handle=%08x,", req->full_handle );
2756 fprintf( stderr, " last_active=%08x,", req->last_active );
2757 fprintf( stderr, " pid=%04x,", req->pid );
2758 fprintf( stderr, " tid=%04x,", req->tid );
2759 fprintf( stderr, " atom=%04x,", req->atom );
2760 fprintf( stderr, " is_unicode=%d", req->is_unicode );
2763 static void dump_set_window_info_request( const struct set_window_info_request *req )
2765 fprintf( stderr, " flags=%04x,", req->flags );
2766 fprintf( stderr, " is_unicode=%d,", req->is_unicode );
2767 fprintf( stderr, " handle=%08x,", req->handle );
2768 fprintf( stderr, " style=%08x,", req->style );
2769 fprintf( stderr, " ex_style=%08x,", req->ex_style );
2770 fprintf( stderr, " id=%08x,", req->id );
2771 fprintf( stderr, " instance=" );
2772 dump_uint64( &req->instance );
2773 fprintf( stderr, "," );
2774 fprintf( stderr, " user_data=" );
2775 dump_uint64( &req->user_data );
2776 fprintf( stderr, "," );
2777 fprintf( stderr, " extra_offset=%d,", req->extra_offset );
2778 fprintf( stderr, " extra_size=%u,", req->extra_size );
2779 fprintf( stderr, " extra_value=" );
2780 dump_uint64( &req->extra_value );
2783 static void dump_set_window_info_reply( const struct set_window_info_reply *req )
2785 fprintf( stderr, " old_style=%08x,", req->old_style );
2786 fprintf( stderr, " old_ex_style=%08x,", req->old_ex_style );
2787 fprintf( stderr, " old_instance=" );
2788 dump_uint64( &req->old_instance );
2789 fprintf( stderr, "," );
2790 fprintf( stderr, " old_user_data=" );
2791 dump_uint64( &req->old_user_data );
2792 fprintf( stderr, "," );
2793 fprintf( stderr, " old_extra_value=" );
2794 dump_uint64( &req->old_extra_value );
2795 fprintf( stderr, "," );
2796 fprintf( stderr, " old_id=%08x", req->old_id );
2799 static void dump_set_parent_request( const struct set_parent_request *req )
2801 fprintf( stderr, " handle=%08x,", req->handle );
2802 fprintf( stderr, " parent=%08x", req->parent );
2805 static void dump_set_parent_reply( const struct set_parent_reply *req )
2807 fprintf( stderr, " old_parent=%08x,", req->old_parent );
2808 fprintf( stderr, " full_parent=%08x", req->full_parent );
2811 static void dump_get_window_parents_request( const struct get_window_parents_request *req )
2813 fprintf( stderr, " handle=%08x", req->handle );
2816 static void dump_get_window_parents_reply( const struct get_window_parents_reply *req )
2818 fprintf( stderr, " count=%d,", req->count );
2819 fprintf( stderr, " parents=" );
2820 dump_varargs_user_handles( cur_size );
2823 static void dump_get_window_children_request( const struct get_window_children_request *req )
2825 fprintf( stderr, " desktop=%04x,", req->desktop );
2826 fprintf( stderr, " parent=%08x,", req->parent );
2827 fprintf( stderr, " atom=%04x,", req->atom );
2828 fprintf( stderr, " tid=%04x,", req->tid );
2829 fprintf( stderr, " class=" );
2830 dump_varargs_unicode_str( cur_size );
2833 static void dump_get_window_children_reply( const struct get_window_children_reply *req )
2835 fprintf( stderr, " count=%d,", req->count );
2836 fprintf( stderr, " children=" );
2837 dump_varargs_user_handles( cur_size );
2840 static void dump_get_window_children_from_point_request( const struct get_window_children_from_point_request *req )
2842 fprintf( stderr, " parent=%08x,", req->parent );
2843 fprintf( stderr, " x=%d,", req->x );
2844 fprintf( stderr, " y=%d", req->y );
2847 static void dump_get_window_children_from_point_reply( const struct get_window_children_from_point_reply *req )
2849 fprintf( stderr, " count=%d,", req->count );
2850 fprintf( stderr, " children=" );
2851 dump_varargs_user_handles( cur_size );
2854 static void dump_get_window_tree_request( const struct get_window_tree_request *req )
2856 fprintf( stderr, " handle=%08x", req->handle );
2859 static void dump_get_window_tree_reply( const struct get_window_tree_reply *req )
2861 fprintf( stderr, " parent=%08x,", req->parent );
2862 fprintf( stderr, " owner=%08x,", req->owner );
2863 fprintf( stderr, " next_sibling=%08x,", req->next_sibling );
2864 fprintf( stderr, " prev_sibling=%08x,", req->prev_sibling );
2865 fprintf( stderr, " first_sibling=%08x,", req->first_sibling );
2866 fprintf( stderr, " last_sibling=%08x,", req->last_sibling );
2867 fprintf( stderr, " first_child=%08x,", req->first_child );
2868 fprintf( stderr, " last_child=%08x", req->last_child );
2871 static void dump_set_window_pos_request( const struct set_window_pos_request *req )
2873 fprintf( stderr, " flags=%08x,", req->flags );
2874 fprintf( stderr, " handle=%08x,", req->handle );
2875 fprintf( stderr, " previous=%08x,", req->previous );
2876 fprintf( stderr, " window=" );
2877 dump_rectangle( &req->window );
2878 fprintf( stderr, "," );
2879 fprintf( stderr, " client=" );
2880 dump_rectangle( &req->client );
2881 fprintf( stderr, "," );
2882 fprintf( stderr, " valid=" );
2883 dump_varargs_rectangles( cur_size );
2886 static void dump_set_window_pos_reply( const struct set_window_pos_reply *req )
2888 fprintf( stderr, " new_style=%08x,", req->new_style );
2889 fprintf( stderr, " new_ex_style=%08x", req->new_ex_style );
2892 static void dump_get_window_rectangles_request( const struct get_window_rectangles_request *req )
2894 fprintf( stderr, " handle=%08x", req->handle );
2897 static void dump_get_window_rectangles_reply( const struct get_window_rectangles_reply *req )
2899 fprintf( stderr, " window=" );
2900 dump_rectangle( &req->window );
2901 fprintf( stderr, "," );
2902 fprintf( stderr, " visible=" );
2903 dump_rectangle( &req->visible );
2904 fprintf( stderr, "," );
2905 fprintf( stderr, " client=" );
2906 dump_rectangle( &req->client );
2909 static void dump_get_window_text_request( const struct get_window_text_request *req )
2911 fprintf( stderr, " handle=%08x", req->handle );
2914 static void dump_get_window_text_reply( const struct get_window_text_reply *req )
2916 fprintf( stderr, " text=" );
2917 dump_varargs_unicode_str( cur_size );
2920 static void dump_set_window_text_request( const struct set_window_text_request *req )
2922 fprintf( stderr, " handle=%08x,", req->handle );
2923 fprintf( stderr, " text=" );
2924 dump_varargs_unicode_str( cur_size );
2927 static void dump_get_windows_offset_request( const struct get_windows_offset_request *req )
2929 fprintf( stderr, " from=%08x,", req->from );
2930 fprintf( stderr, " to=%08x", req->to );
2933 static void dump_get_windows_offset_reply( const struct get_windows_offset_reply *req )
2935 fprintf( stderr, " x=%d,", req->x );
2936 fprintf( stderr, " y=%d", req->y );
2939 static void dump_get_visible_region_request( const struct get_visible_region_request *req )
2941 fprintf( stderr, " window=%08x,", req->window );
2942 fprintf( stderr, " flags=%08x", req->flags );
2945 static void dump_get_visible_region_reply( const struct get_visible_region_reply *req )
2947 fprintf( stderr, " top_win=%08x,", req->top_win );
2948 fprintf( stderr, " top_rect=" );
2949 dump_rectangle( &req->top_rect );
2950 fprintf( stderr, "," );
2951 fprintf( stderr, " win_rect=" );
2952 dump_rectangle( &req->win_rect );
2953 fprintf( stderr, "," );
2954 fprintf( stderr, " total_size=%u,", req->total_size );
2955 fprintf( stderr, " region=" );
2956 dump_varargs_rectangles( cur_size );
2959 static void dump_get_window_region_request( const struct get_window_region_request *req )
2961 fprintf( stderr, " window=%08x", req->window );
2964 static void dump_get_window_region_reply( const struct get_window_region_reply *req )
2966 fprintf( stderr, " total_size=%u,", req->total_size );
2967 fprintf( stderr, " region=" );
2968 dump_varargs_rectangles( cur_size );
2971 static void dump_set_window_region_request( const struct set_window_region_request *req )
2973 fprintf( stderr, " window=%08x,", req->window );
2974 fprintf( stderr, " redraw=%d,", req->redraw );
2975 fprintf( stderr, " region=" );
2976 dump_varargs_rectangles( cur_size );
2979 static void dump_get_update_region_request( const struct get_update_region_request *req )
2981 fprintf( stderr, " window=%08x,", req->window );
2982 fprintf( stderr, " from_child=%08x,", req->from_child );
2983 fprintf( stderr, " flags=%08x", req->flags );
2986 static void dump_get_update_region_reply( const struct get_update_region_reply *req )
2988 fprintf( stderr, " child=%08x,", req->child );
2989 fprintf( stderr, " flags=%08x,", req->flags );
2990 fprintf( stderr, " total_size=%u,", req->total_size );
2991 fprintf( stderr, " region=" );
2992 dump_varargs_rectangles( cur_size );
2995 static void dump_update_window_zorder_request( const struct update_window_zorder_request *req )
2997 fprintf( stderr, " window=%08x,", req->window );
2998 fprintf( stderr, " rect=" );
2999 dump_rectangle( &req->rect );
3002 static void dump_redraw_window_request( const struct redraw_window_request *req )
3004 fprintf( stderr, " window=%08x,", req->window );
3005 fprintf( stderr, " flags=%08x,", req->flags );
3006 fprintf( stderr, " region=" );
3007 dump_varargs_rectangles( cur_size );
3010 static void dump_set_window_property_request( const struct set_window_property_request *req )
3012 fprintf( stderr, " window=%08x,", req->window );
3013 fprintf( stderr, " data=" );
3014 dump_uint64( &req->data );
3015 fprintf( stderr, "," );
3016 fprintf( stderr, " atom=%04x,", req->atom );
3017 fprintf( stderr, " name=" );
3018 dump_varargs_unicode_str( cur_size );
3021 static void dump_remove_window_property_request( const struct remove_window_property_request *req )
3023 fprintf( stderr, " window=%08x,", req->window );
3024 fprintf( stderr, " atom=%04x,", req->atom );
3025 fprintf( stderr, " name=" );
3026 dump_varargs_unicode_str( cur_size );
3029 static void dump_remove_window_property_reply( const struct remove_window_property_reply *req )
3031 fprintf( stderr, " data=" );
3032 dump_uint64( &req->data );
3035 static void dump_get_window_property_request( const struct get_window_property_request *req )
3037 fprintf( stderr, " window=%08x,", req->window );
3038 fprintf( stderr, " atom=%04x,", req->atom );
3039 fprintf( stderr, " name=" );
3040 dump_varargs_unicode_str( cur_size );
3043 static void dump_get_window_property_reply( const struct get_window_property_reply *req )
3045 fprintf( stderr, " data=" );
3046 dump_uint64( &req->data );
3049 static void dump_get_window_properties_request( const struct get_window_properties_request *req )
3051 fprintf( stderr, " window=%08x", req->window );
3054 static void dump_get_window_properties_reply( const struct get_window_properties_reply *req )
3056 fprintf( stderr, " total=%d,", req->total );
3057 fprintf( stderr, " props=" );
3058 dump_varargs_properties( cur_size );
3061 static void dump_create_winstation_request( const struct create_winstation_request *req )
3063 fprintf( stderr, " flags=%08x,", req->flags );
3064 fprintf( stderr, " access=%08x,", req->access );
3065 fprintf( stderr, " attributes=%08x,", req->attributes );
3066 fprintf( stderr, " name=" );
3067 dump_varargs_unicode_str( cur_size );
3070 static void dump_create_winstation_reply( const struct create_winstation_reply *req )
3072 fprintf( stderr, " handle=%04x", req->handle );
3075 static void dump_open_winstation_request( const struct open_winstation_request *req )
3077 fprintf( stderr, " access=%08x,", req->access );
3078 fprintf( stderr, " attributes=%08x,", req->attributes );
3079 fprintf( stderr, " name=" );
3080 dump_varargs_unicode_str( cur_size );
3083 static void dump_open_winstation_reply( const struct open_winstation_reply *req )
3085 fprintf( stderr, " handle=%04x", req->handle );
3088 static void dump_close_winstation_request( const struct close_winstation_request *req )
3090 fprintf( stderr, " handle=%04x", req->handle );
3093 static void dump_get_process_winstation_request( const struct get_process_winstation_request *req )
3097 static void dump_get_process_winstation_reply( const struct get_process_winstation_reply *req )
3099 fprintf( stderr, " handle=%04x", req->handle );
3102 static void dump_set_process_winstation_request( const struct set_process_winstation_request *req )
3104 fprintf( stderr, " handle=%04x", req->handle );
3107 static void dump_enum_winstation_request( const struct enum_winstation_request *req )
3109 fprintf( stderr, " index=%08x", req->index );
3112 static void dump_enum_winstation_reply( const struct enum_winstation_reply *req )
3114 fprintf( stderr, " next=%08x,", req->next );
3115 fprintf( stderr, " name=" );
3116 dump_varargs_unicode_str( cur_size );
3119 static void dump_create_desktop_request( const struct create_desktop_request *req )
3121 fprintf( stderr, " flags=%08x,", req->flags );
3122 fprintf( stderr, " access=%08x,", req->access );
3123 fprintf( stderr, " attributes=%08x,", req->attributes );
3124 fprintf( stderr, " name=" );
3125 dump_varargs_unicode_str( cur_size );
3128 static void dump_create_desktop_reply( const struct create_desktop_reply *req )
3130 fprintf( stderr, " handle=%04x", req->handle );
3133 static void dump_open_desktop_request( const struct open_desktop_request *req )
3135 fprintf( stderr, " winsta=%04x,", req->winsta );
3136 fprintf( stderr, " flags=%08x,", req->flags );
3137 fprintf( stderr, " access=%08x,", req->access );
3138 fprintf( stderr, " attributes=%08x,", req->attributes );
3139 fprintf( stderr, " name=" );
3140 dump_varargs_unicode_str( cur_size );
3143 static void dump_open_desktop_reply( const struct open_desktop_reply *req )
3145 fprintf( stderr, " handle=%04x", req->handle );
3148 static void dump_close_desktop_request( const struct close_desktop_request *req )
3150 fprintf( stderr, " handle=%04x", req->handle );
3153 static void dump_get_thread_desktop_request( const struct get_thread_desktop_request *req )
3155 fprintf( stderr, " tid=%04x", req->tid );
3158 static void dump_get_thread_desktop_reply( const struct get_thread_desktop_reply *req )
3160 fprintf( stderr, " handle=%04x", req->handle );
3163 static void dump_set_thread_desktop_request( const struct set_thread_desktop_request *req )
3165 fprintf( stderr, " handle=%04x", req->handle );
3168 static void dump_enum_desktop_request( const struct enum_desktop_request *req )
3170 fprintf( stderr, " winstation=%04x,", req->winstation );
3171 fprintf( stderr, " index=%08x", req->index );
3174 static void dump_enum_desktop_reply( const struct enum_desktop_reply *req )
3176 fprintf( stderr, " next=%08x,", req->next );
3177 fprintf( stderr, " name=" );
3178 dump_varargs_unicode_str( cur_size );
3181 static void dump_set_user_object_info_request( const struct set_user_object_info_request *req )
3183 fprintf( stderr, " handle=%04x,", req->handle );
3184 fprintf( stderr, " flags=%08x,", req->flags );
3185 fprintf( stderr, " obj_flags=%08x", req->obj_flags );
3188 static void dump_set_user_object_info_reply( const struct set_user_object_info_reply *req )
3190 fprintf( stderr, " is_desktop=%d,", req->is_desktop );
3191 fprintf( stderr, " old_obj_flags=%08x,", req->old_obj_flags );
3192 fprintf( stderr, " name=" );
3193 dump_varargs_unicode_str( cur_size );
3196 static void dump_attach_thread_input_request( const struct attach_thread_input_request *req )
3198 fprintf( stderr, " tid_from=%04x,", req->tid_from );
3199 fprintf( stderr, " tid_to=%04x,", req->tid_to );
3200 fprintf( stderr, " attach=%d", req->attach );
3203 static void dump_get_thread_input_request( const struct get_thread_input_request *req )
3205 fprintf( stderr, " tid=%04x", req->tid );
3208 static void dump_get_thread_input_reply( const struct get_thread_input_reply *req )
3210 fprintf( stderr, " focus=%08x,", req->focus );
3211 fprintf( stderr, " capture=%08x,", req->capture );
3212 fprintf( stderr, " active=%08x,", req->active );
3213 fprintf( stderr, " foreground=%08x,", req->foreground );
3214 fprintf( stderr, " menu_owner=%08x,", req->menu_owner );
3215 fprintf( stderr, " move_size=%08x,", req->move_size );
3216 fprintf( stderr, " caret=%08x,", req->caret );
3217 fprintf( stderr, " rect=" );
3218 dump_rectangle( &req->rect );
3221 static void dump_get_last_input_time_request( const struct get_last_input_time_request *req )
3225 static void dump_get_last_input_time_reply( const struct get_last_input_time_reply *req )
3227 fprintf( stderr, " time=%08x", req->time );
3230 static void dump_get_key_state_request( const struct get_key_state_request *req )
3232 fprintf( stderr, " tid=%04x,", req->tid );
3233 fprintf( stderr, " key=%d", req->key );
3236 static void dump_get_key_state_reply( const struct get_key_state_reply *req )
3238 fprintf( stderr, " state=%02x,", req->state );
3239 fprintf( stderr, " keystate=" );
3240 dump_varargs_bytes( cur_size );
3243 static void dump_set_key_state_request( const struct set_key_state_request *req )
3245 fprintf( stderr, " tid=%04x,", req->tid );
3246 fprintf( stderr, " keystate=" );
3247 dump_varargs_bytes( cur_size );
3250 static void dump_set_foreground_window_request( const struct set_foreground_window_request *req )
3252 fprintf( stderr, " handle=%08x", req->handle );
3255 static void dump_set_foreground_window_reply( const struct set_foreground_window_reply *req )
3257 fprintf( stderr, " previous=%08x,", req->previous );
3258 fprintf( stderr, " send_msg_old=%d,", req->send_msg_old );
3259 fprintf( stderr, " send_msg_new=%d", req->send_msg_new );
3262 static void dump_set_focus_window_request( const struct set_focus_window_request *req )
3264 fprintf( stderr, " handle=%08x", req->handle );
3267 static void dump_set_focus_window_reply( const struct set_focus_window_reply *req )
3269 fprintf( stderr, " previous=%08x", req->previous );
3272 static void dump_set_active_window_request( const struct set_active_window_request *req )
3274 fprintf( stderr, " handle=%08x", req->handle );
3277 static void dump_set_active_window_reply( const struct set_active_window_reply *req )
3279 fprintf( stderr, " previous=%08x", req->previous );
3282 static void dump_set_capture_window_request( const struct set_capture_window_request *req )
3284 fprintf( stderr, " handle=%08x,", req->handle );
3285 fprintf( stderr, " flags=%08x", req->flags );
3288 static void dump_set_capture_window_reply( const struct set_capture_window_reply *req )
3290 fprintf( stderr, " previous=%08x,", req->previous );
3291 fprintf( stderr, " full_handle=%08x", req->full_handle );
3294 static void dump_set_caret_window_request( const struct set_caret_window_request *req )
3296 fprintf( stderr, " handle=%08x,", req->handle );
3297 fprintf( stderr, " width=%d,", req->width );
3298 fprintf( stderr, " height=%d", req->height );
3301 static void dump_set_caret_window_reply( const struct set_caret_window_reply *req )
3303 fprintf( stderr, " previous=%08x,", req->previous );
3304 fprintf( stderr, " old_rect=" );
3305 dump_rectangle( &req->old_rect );
3306 fprintf( stderr, "," );
3307 fprintf( stderr, " old_hide=%d,", req->old_hide );
3308 fprintf( stderr, " old_state=%d", req->old_state );
3311 static void dump_set_caret_info_request( const struct set_caret_info_request *req )
3313 fprintf( stderr, " flags=%08x,", req->flags );
3314 fprintf( stderr, " handle=%08x,", req->handle );
3315 fprintf( stderr, " x=%d,", req->x );
3316 fprintf( stderr, " y=%d,", req->y );
3317 fprintf( stderr, " hide=%d,", req->hide );
3318 fprintf( stderr, " state=%d", req->state );
3321 static void dump_set_caret_info_reply( const struct set_caret_info_reply *req )
3323 fprintf( stderr, " full_handle=%08x,", req->full_handle );
3324 fprintf( stderr, " old_rect=" );
3325 dump_rectangle( &req->old_rect );
3326 fprintf( stderr, "," );
3327 fprintf( stderr, " old_hide=%d,", req->old_hide );
3328 fprintf( stderr, " old_state=%d", req->old_state );
3331 static void dump_set_hook_request( const struct set_hook_request *req )
3333 fprintf( stderr, " id=%d,", req->id );
3334 fprintf( stderr, " pid=%04x,", req->pid );
3335 fprintf( stderr, " tid=%04x,", req->tid );
3336 fprintf( stderr, " event_min=%d,", req->event_min );
3337 fprintf( stderr, " event_max=%d,", req->event_max );
3338 fprintf( stderr, " proc=" );
3339 dump_uint64( &req->proc );
3340 fprintf( stderr, "," );
3341 fprintf( stderr, " flags=%d,", req->flags );
3342 fprintf( stderr, " unicode=%d,", req->unicode );
3343 fprintf( stderr, " module=" );
3344 dump_varargs_unicode_str( cur_size );
3347 static void dump_set_hook_reply( const struct set_hook_reply *req )
3349 fprintf( stderr, " handle=%08x,", req->handle );
3350 fprintf( stderr, " active_hooks=%08x", req->active_hooks );
3353 static void dump_remove_hook_request( const struct remove_hook_request *req )
3355 fprintf( stderr, " handle=%08x,", req->handle );
3356 fprintf( stderr, " proc=" );
3357 dump_uint64( &req->proc );
3358 fprintf( stderr, "," );
3359 fprintf( stderr, " id=%d", req->id );
3362 static void dump_remove_hook_reply( const struct remove_hook_reply *req )
3364 fprintf( stderr, " active_hooks=%08x", req->active_hooks );
3367 static void dump_start_hook_chain_request( const struct start_hook_chain_request *req )
3369 fprintf( stderr, " id=%d,", req->id );
3370 fprintf( stderr, " event=%d,", req->event );
3371 fprintf( stderr, " window=%08x,", req->window );
3372 fprintf( stderr, " object_id=%d,", req->object_id );
3373 fprintf( stderr, " child_id=%d", req->child_id );
3376 static void dump_start_hook_chain_reply( const struct start_hook_chain_reply *req )
3378 fprintf( stderr, " handle=%08x,", req->handle );
3379 fprintf( stderr, " pid=%04x,", req->pid );
3380 fprintf( stderr, " tid=%04x,", req->tid );
3381 fprintf( stderr, " unicode=%d,", req->unicode );
3382 fprintf( stderr, " proc=" );
3383 dump_uint64( &req->proc );
3384 fprintf( stderr, "," );
3385 fprintf( stderr, " active_hooks=%08x,", req->active_hooks );
3386 fprintf( stderr, " module=" );
3387 dump_varargs_unicode_str( cur_size );
3390 static void dump_finish_hook_chain_request( const struct finish_hook_chain_request *req )
3392 fprintf( stderr, " id=%d", req->id );
3395 static void dump_get_hook_info_request( const struct get_hook_info_request *req )
3397 fprintf( stderr, " handle=%08x,", req->handle );
3398 fprintf( stderr, " get_next=%d,", req->get_next );
3399 fprintf( stderr, " event=%d,", req->event );
3400 fprintf( stderr, " window=%08x,", req->window );
3401 fprintf( stderr, " object_id=%d,", req->object_id );
3402 fprintf( stderr, " child_id=%d", req->child_id );
3405 static void dump_get_hook_info_reply( const struct get_hook_info_reply *req )
3407 fprintf( stderr, " handle=%08x,", req->handle );
3408 fprintf( stderr, " id=%d,", req->id );
3409 fprintf( stderr, " pid=%04x,", req->pid );
3410 fprintf( stderr, " tid=%04x,", req->tid );
3411 fprintf( stderr, " proc=" );
3412 dump_uint64( &req->proc );
3413 fprintf( stderr, "," );
3414 fprintf( stderr, " unicode=%d,", req->unicode );
3415 fprintf( stderr, " module=" );
3416 dump_varargs_unicode_str( cur_size );
3419 static void dump_create_class_request( const struct create_class_request *req )
3421 fprintf( stderr, " local=%d,", req->local );
3422 fprintf( stderr, " atom=%04x,", req->atom );
3423 fprintf( stderr, " style=%08x,", req->style );
3424 fprintf( stderr, " instance=" );
3425 dump_uint64( &req->instance );
3426 fprintf( stderr, "," );
3427 fprintf( stderr, " extra=%d,", req->extra );
3428 fprintf( stderr, " win_extra=%d,", req->win_extra );
3429 fprintf( stderr, " client_ptr=" );
3430 dump_uint64( &req->client_ptr );
3431 fprintf( stderr, "," );
3432 fprintf( stderr, " name=" );
3433 dump_varargs_unicode_str( cur_size );
3436 static void dump_create_class_reply( const struct create_class_reply *req )
3438 fprintf( stderr, " atom=%04x", req->atom );
3441 static void dump_destroy_class_request( const struct destroy_class_request *req )
3443 fprintf( stderr, " atom=%04x,", req->atom );
3444 fprintf( stderr, " instance=" );
3445 dump_uint64( &req->instance );
3446 fprintf( stderr, "," );
3447 fprintf( stderr, " name=" );
3448 dump_varargs_unicode_str( cur_size );
3451 static void dump_destroy_class_reply( const struct destroy_class_reply *req )
3453 fprintf( stderr, " client_ptr=" );
3454 dump_uint64( &req->client_ptr );
3457 static void dump_set_class_info_request( const struct set_class_info_request *req )
3459 fprintf( stderr, " window=%08x,", req->window );
3460 fprintf( stderr, " flags=%08x,", req->flags );
3461 fprintf( stderr, " atom=%04x,", req->atom );
3462 fprintf( stderr, " style=%08x,", req->style );
3463 fprintf( stderr, " win_extra=%d,", req->win_extra );
3464 fprintf( stderr, " instance=" );
3465 dump_uint64( &req->instance );
3466 fprintf( stderr, "," );
3467 fprintf( stderr, " extra_offset=%d,", req->extra_offset );
3468 fprintf( stderr, " extra_size=%u,", req->extra_size );
3469 fprintf( stderr, " extra_value=" );
3470 dump_uint64( &req->extra_value );
3473 static void dump_set_class_info_reply( const struct set_class_info_reply *req )
3475 fprintf( stderr, " old_atom=%04x,", req->old_atom );
3476 fprintf( stderr, " old_style=%08x,", req->old_style );
3477 fprintf( stderr, " old_extra=%d,", req->old_extra );
3478 fprintf( stderr, " old_win_extra=%d,", req->old_win_extra );
3479 fprintf( stderr, " old_instance=" );
3480 dump_uint64( &req->old_instance );
3481 fprintf( stderr, "," );
3482 fprintf( stderr, " old_extra_value=" );
3483 dump_uint64( &req->old_extra_value );
3486 static void dump_set_clipboard_info_request( const struct set_clipboard_info_request *req )
3488 fprintf( stderr, " flags=%08x,", req->flags );
3489 fprintf( stderr, " clipboard=%08x,", req->clipboard );
3490 fprintf( stderr, " owner=%08x,", req->owner );
3491 fprintf( stderr, " viewer=%08x,", req->viewer );
3492 fprintf( stderr, " seqno=%08x", req->seqno );
3495 static void dump_set_clipboard_info_reply( const struct set_clipboard_info_reply *req )
3497 fprintf( stderr, " flags=%08x,", req->flags );
3498 fprintf( stderr, " old_clipboard=%08x,", req->old_clipboard );
3499 fprintf( stderr, " old_owner=%08x,", req->old_owner );
3500 fprintf( stderr, " old_viewer=%08x,", req->old_viewer );
3501 fprintf( stderr, " seqno=%08x", req->seqno );
3504 static void dump_open_token_request( const struct open_token_request *req )
3506 fprintf( stderr, " handle=%04x,", req->handle );
3507 fprintf( stderr, " access=%08x,", req->access );
3508 fprintf( stderr, " attributes=%08x,", req->attributes );
3509 fprintf( stderr, " flags=%08x", req->flags );
3512 static void dump_open_token_reply( const struct open_token_reply *req )
3514 fprintf( stderr, " token=%04x", req->token );
3517 static void dump_set_global_windows_request( const struct set_global_windows_request *req )
3519 fprintf( stderr, " flags=%08x,", req->flags );
3520 fprintf( stderr, " shell_window=%08x,", req->shell_window );
3521 fprintf( stderr, " shell_listview=%08x,", req->shell_listview );
3522 fprintf( stderr, " progman_window=%08x,", req->progman_window );
3523 fprintf( stderr, " taskman_window=%08x", req->taskman_window );
3526 static void dump_set_global_windows_reply( const struct set_global_windows_reply *req )
3528 fprintf( stderr, " old_shell_window=%08x,", req->old_shell_window );
3529 fprintf( stderr, " old_shell_listview=%08x,", req->old_shell_listview );
3530 fprintf( stderr, " old_progman_window=%08x,", req->old_progman_window );
3531 fprintf( stderr, " old_taskman_window=%08x", req->old_taskman_window );
3534 static void dump_adjust_token_privileges_request( const struct adjust_token_privileges_request *req )
3536 fprintf( stderr, " handle=%04x,", req->handle );
3537 fprintf( stderr, " disable_all=%d,", req->disable_all );
3538 fprintf( stderr, " get_modified_state=%d,", req->get_modified_state );
3539 fprintf( stderr, " privileges=" );
3540 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
3543 static void dump_adjust_token_privileges_reply( const struct adjust_token_privileges_reply *req )
3545 fprintf( stderr, " len=%08x,", req->len );
3546 fprintf( stderr, " privileges=" );
3547 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
3550 static void dump_get_token_privileges_request( const struct get_token_privileges_request *req )
3552 fprintf( stderr, " handle=%04x", req->handle );
3555 static void dump_get_token_privileges_reply( const struct get_token_privileges_reply *req )
3557 fprintf( stderr, " len=%08x,", req->len );
3558 fprintf( stderr, " privileges=" );
3559 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
3562 static void dump_check_token_privileges_request( const struct check_token_privileges_request *req )
3564 fprintf( stderr, " handle=%04x,", req->handle );
3565 fprintf( stderr, " all_required=%d,", req->all_required );
3566 fprintf( stderr, " privileges=" );
3567 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
3570 static void dump_check_token_privileges_reply( const struct check_token_privileges_reply *req )
3572 fprintf( stderr, " has_privileges=%d,", req->has_privileges );
3573 fprintf( stderr, " privileges=" );
3574 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
3577 static void dump_duplicate_token_request( const struct duplicate_token_request *req )
3579 fprintf( stderr, " handle=%04x,", req->handle );
3580 fprintf( stderr, " access=%08x,", req->access );
3581 fprintf( stderr, " attributes=%08x,", req->attributes );
3582 fprintf( stderr, " primary=%d,", req->primary );
3583 fprintf( stderr, " impersonation_level=%d", req->impersonation_level );
3586 static void dump_duplicate_token_reply( const struct duplicate_token_reply *req )
3588 fprintf( stderr, " new_handle=%04x", req->new_handle );
3591 static void dump_access_check_request( const struct access_check_request *req )
3593 fprintf( stderr, " handle=%04x,", req->handle );
3594 fprintf( stderr, " desired_access=%08x,", req->desired_access );
3595 fprintf( stderr, " mapping_read=%08x,", req->mapping_read );
3596 fprintf( stderr, " mapping_write=%08x,", req->mapping_write );
3597 fprintf( stderr, " mapping_execute=%08x,", req->mapping_execute );
3598 fprintf( stderr, " mapping_all=%08x,", req->mapping_all );
3599 fprintf( stderr, " sd=" );
3600 dump_varargs_security_descriptor( cur_size );
3603 static void dump_access_check_reply( const struct access_check_reply *req )
3605 fprintf( stderr, " access_granted=%08x,", req->access_granted );
3606 fprintf( stderr, " access_status=%08x,", req->access_status );
3607 fprintf( stderr, " privileges_len=%08x,", req->privileges_len );
3608 fprintf( stderr, " privileges=" );
3609 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
3612 static void dump_get_token_user_request( const struct get_token_user_request *req )
3614 fprintf( stderr, " handle=%04x", req->handle );
3617 static void dump_get_token_user_reply( const struct get_token_user_reply *req )
3619 fprintf( stderr, " user_len=%u,", req->user_len );
3620 fprintf( stderr, " user=" );
3621 dump_varargs_SID( cur_size );
3624 static void dump_get_token_groups_request( const struct get_token_groups_request *req )
3626 fprintf( stderr, " handle=%04x", req->handle );
3629 static void dump_get_token_groups_reply( const struct get_token_groups_reply *req )
3631 fprintf( stderr, " user_len=%u,", req->user_len );
3632 fprintf( stderr, " user=" );
3633 dump_varargs_token_groups( cur_size );
3636 static void dump_set_security_object_request( const struct set_security_object_request *req )
3638 fprintf( stderr, " handle=%04x,", req->handle );
3639 fprintf( stderr, " security_info=%08x,", req->security_info );
3640 fprintf( stderr, " sd=" );
3641 dump_varargs_security_descriptor( cur_size );
3644 static void dump_get_security_object_request( const struct get_security_object_request *req )
3646 fprintf( stderr, " handle=%04x,", req->handle );
3647 fprintf( stderr, " security_info=%08x", req->security_info );
3650 static void dump_get_security_object_reply( const struct get_security_object_reply *req )
3652 fprintf( stderr, " sd_len=%08x,", req->sd_len );
3653 fprintf( stderr, " sd=" );
3654 dump_varargs_security_descriptor( cur_size );
3657 static void dump_create_mailslot_request( const struct create_mailslot_request *req )
3659 fprintf( stderr, " access=%08x,", req->access );
3660 fprintf( stderr, " attributes=%08x,", req->attributes );
3661 fprintf( stderr, " rootdir=%04x,", req->rootdir );
3662 fprintf( stderr, " read_timeout=" );
3663 dump_timeout( &req->read_timeout );
3664 fprintf( stderr, "," );
3665 fprintf( stderr, " max_msgsize=%08x,", req->max_msgsize );
3666 fprintf( stderr, " name=" );
3667 dump_varargs_unicode_str( cur_size );
3670 static void dump_create_mailslot_reply( const struct create_mailslot_reply *req )
3672 fprintf( stderr, " handle=%04x", req->handle );
3675 static void dump_set_mailslot_info_request( const struct set_mailslot_info_request *req )
3677 fprintf( stderr, " handle=%04x,", req->handle );
3678 fprintf( stderr, " read_timeout=" );
3679 dump_timeout( &req->read_timeout );
3680 fprintf( stderr, "," );
3681 fprintf( stderr, " flags=%08x", req->flags );
3684 static void dump_set_mailslot_info_reply( const struct set_mailslot_info_reply *req )
3686 fprintf( stderr, " read_timeout=" );
3687 dump_timeout( &req->read_timeout );
3688 fprintf( stderr, "," );
3689 fprintf( stderr, " max_msgsize=%08x", req->max_msgsize );
3692 static void dump_create_directory_request( const struct create_directory_request *req )
3694 fprintf( stderr, " access=%08x,", req->access );
3695 fprintf( stderr, " attributes=%08x,", req->attributes );
3696 fprintf( stderr, " rootdir=%04x,", req->rootdir );
3697 fprintf( stderr, " directory_name=" );
3698 dump_varargs_unicode_str( cur_size );
3701 static void dump_create_directory_reply( const struct create_directory_reply *req )
3703 fprintf( stderr, " handle=%04x", req->handle );
3706 static void dump_open_directory_request( const struct open_directory_request *req )
3708 fprintf( stderr, " access=%08x,", req->access );
3709 fprintf( stderr, " attributes=%08x,", req->attributes );
3710 fprintf( stderr, " rootdir=%04x,", req->rootdir );
3711 fprintf( stderr, " directory_name=" );
3712 dump_varargs_unicode_str( cur_size );
3715 static void dump_open_directory_reply( const struct open_directory_reply *req )
3717 fprintf( stderr, " handle=%04x", req->handle );
3720 static void dump_get_directory_entry_request( const struct get_directory_entry_request *req )
3722 fprintf( stderr, " handle=%04x,", req->handle );
3723 fprintf( stderr, " index=%08x", req->index );
3726 static void dump_get_directory_entry_reply( const struct get_directory_entry_reply *req )
3728 fprintf( stderr, " name_len=%u,", req->name_len );
3729 fprintf( stderr, " name=" );
3730 dump_varargs_unicode_str( min(cur_size,req->name_len) );
3731 fputc( ',', stderr );
3732 fprintf( stderr, " type=" );
3733 dump_varargs_unicode_str( cur_size );
3736 static void dump_create_symlink_request( const struct create_symlink_request *req )
3738 fprintf( stderr, " access=%08x,", req->access );
3739 fprintf( stderr, " attributes=%08x,", req->attributes );
3740 fprintf( stderr, " rootdir=%04x,", req->rootdir );
3741 fprintf( stderr, " name_len=%u,", req->name_len );
3742 fprintf( stderr, " name=" );
3743 dump_varargs_unicode_str( min(cur_size,req->name_len) );
3744 fputc( ',', stderr );
3745 fprintf( stderr, " target_name=" );
3746 dump_varargs_unicode_str( cur_size );
3749 static void dump_create_symlink_reply( const struct create_symlink_reply *req )
3751 fprintf( stderr, " handle=%04x", req->handle );
3754 static void dump_open_symlink_request( const struct open_symlink_request *req )
3756 fprintf( stderr, " access=%08x,", req->access );
3757 fprintf( stderr, " attributes=%08x,", req->attributes );
3758 fprintf( stderr, " rootdir=%04x,", req->rootdir );
3759 fprintf( stderr, " name=" );
3760 dump_varargs_unicode_str( cur_size );
3763 static void dump_open_symlink_reply( const struct open_symlink_reply *req )
3765 fprintf( stderr, " handle=%04x", req->handle );
3768 static void dump_query_symlink_request( const struct query_symlink_request *req )
3770 fprintf( stderr, " handle=%04x", req->handle );
3773 static void dump_query_symlink_reply( const struct query_symlink_reply *req )
3775 fprintf( stderr, " target_name=" );
3776 dump_varargs_unicode_str( cur_size );
3779 static void dump_get_object_info_request( const struct get_object_info_request *req )
3781 fprintf( stderr, " handle=%04x", req->handle );
3784 static void dump_get_object_info_reply( const struct get_object_info_reply *req )
3786 fprintf( stderr, " access=%08x,", req->access );
3787 fprintf( stderr, " ref_count=%08x", req->ref_count );
3790 static void dump_unlink_object_request( const struct unlink_object_request *req )
3792 fprintf( stderr, " handle=%04x", req->handle );
3795 static void dump_get_token_impersonation_level_request( const struct get_token_impersonation_level_request *req )
3797 fprintf( stderr, " handle=%04x", req->handle );
3800 static void dump_get_token_impersonation_level_reply( const struct get_token_impersonation_level_reply *req )
3802 fprintf( stderr, " impersonation_level=%d", req->impersonation_level );
3805 static void dump_allocate_locally_unique_id_request( const struct allocate_locally_unique_id_request *req )
3809 static void dump_allocate_locally_unique_id_reply( const struct allocate_locally_unique_id_reply *req )
3811 fprintf( stderr, " luid=" );
3812 dump_luid( &req->luid );
3815 static void dump_create_device_manager_request( const struct create_device_manager_request *req )
3817 fprintf( stderr, " access=%08x,", req->access );
3818 fprintf( stderr, " attributes=%08x", req->attributes );
3821 static void dump_create_device_manager_reply( const struct create_device_manager_reply *req )
3823 fprintf( stderr, " handle=%04x", req->handle );
3826 static void dump_create_device_request( const struct create_device_request *req )
3828 fprintf( stderr, " access=%08x,", req->access );
3829 fprintf( stderr, " attributes=%08x,", req->attributes );
3830 fprintf( stderr, " rootdir=%04x,", req->rootdir );
3831 fprintf( stderr, " user_ptr=" );
3832 dump_uint64( &req->user_ptr );
3833 fprintf( stderr, "," );
3834 fprintf( stderr, " manager=%04x,", req->manager );
3835 fprintf( stderr, " name=" );
3836 dump_varargs_unicode_str( cur_size );
3839 static void dump_create_device_reply( const struct create_device_reply *req )
3841 fprintf( stderr, " handle=%04x", req->handle );
3844 static void dump_delete_device_request( const struct delete_device_request *req )
3846 fprintf( stderr, " handle=%04x", req->handle );
3849 static void dump_get_next_device_request_request( const struct get_next_device_request_request *req )
3851 fprintf( stderr, " manager=%04x,", req->manager );
3852 fprintf( stderr, " prev=%04x,", req->prev );
3853 fprintf( stderr, " status=%08x,", req->status );
3854 fprintf( stderr, " prev_data=" );
3855 dump_varargs_bytes( cur_size );
3858 static void dump_get_next_device_request_reply( const struct get_next_device_request_reply *req )
3860 fprintf( stderr, " next=%04x,", req->next );
3861 fprintf( stderr, " code=" );
3862 dump_ioctl_code( &req->code );
3863 fprintf( stderr, "," );
3864 fprintf( stderr, " user_ptr=" );
3865 dump_uint64( &req->user_ptr );
3866 fprintf( stderr, "," );
3867 fprintf( stderr, " in_size=%u,", req->in_size );
3868 fprintf( stderr, " out_size=%u,", req->out_size );
3869 fprintf( stderr, " next_data=" );
3870 dump_varargs_bytes( cur_size );
3873 static void dump_make_process_system_request( const struct make_process_system_request *req )
3877 static void dump_make_process_system_reply( const struct make_process_system_reply *req )
3879 fprintf( stderr, " event=%04x", req->event );
3882 static void dump_get_token_statistics_request( const struct get_token_statistics_request *req )
3884 fprintf( stderr, " handle=%04x", req->handle );
3887 static void dump_get_token_statistics_reply( const struct get_token_statistics_reply *req )
3889 fprintf( stderr, " token_id=" );
3890 dump_luid( &req->token_id );
3891 fprintf( stderr, "," );
3892 fprintf( stderr, " modified_id=" );
3893 dump_luid( &req->modified_id );
3894 fprintf( stderr, "," );
3895 fprintf( stderr, " primary=%d,", req->primary );
3896 fprintf( stderr, " impersonation_level=%d,", req->impersonation_level );
3897 fprintf( stderr, " group_count=%d,", req->group_count );
3898 fprintf( stderr, " privilege_count=%d", req->privilege_count );
3901 static void dump_create_completion_request( const struct create_completion_request *req )
3903 fprintf( stderr, " access=%08x,", req->access );
3904 fprintf( stderr, " attributes=%08x,", req->attributes );
3905 fprintf( stderr, " concurrent=%08x,", req->concurrent );
3906 fprintf( stderr, " rootdir=%04x,", req->rootdir );
3907 fprintf( stderr, " filename=" );
3908 dump_varargs_string( cur_size );
3911 static void dump_create_completion_reply( const struct create_completion_reply *req )
3913 fprintf( stderr, " handle=%04x", req->handle );
3916 static void dump_open_completion_request( const struct open_completion_request *req )
3918 fprintf( stderr, " access=%08x,", req->access );
3919 fprintf( stderr, " attributes=%08x,", req->attributes );
3920 fprintf( stderr, " rootdir=%04x,", req->rootdir );
3921 fprintf( stderr, " filename=" );
3922 dump_varargs_string( cur_size );
3925 static void dump_open_completion_reply( const struct open_completion_reply *req )
3927 fprintf( stderr, " handle=%04x", req->handle );
3930 static void dump_add_completion_request( const struct add_completion_request *req )
3932 fprintf( stderr, " handle=%04x,", req->handle );
3933 fprintf( stderr, " ckey=" );
3934 dump_uint64( &req->ckey );
3935 fprintf( stderr, "," );
3936 fprintf( stderr, " cvalue=" );
3937 dump_uint64( &req->cvalue );
3938 fprintf( stderr, "," );
3939 fprintf( stderr, " information=%08x,", req->information );
3940 fprintf( stderr, " status=%08x", req->status );
3943 static void dump_remove_completion_request( const struct remove_completion_request *req )
3945 fprintf( stderr, " handle=%04x", req->handle );
3948 static void dump_remove_completion_reply( const struct remove_completion_reply *req )
3950 fprintf( stderr, " ckey=" );
3951 dump_uint64( &req->ckey );
3952 fprintf( stderr, "," );
3953 fprintf( stderr, " cvalue=" );
3954 dump_uint64( &req->cvalue );
3955 fprintf( stderr, "," );
3956 fprintf( stderr, " information=%08x,", req->information );
3957 fprintf( stderr, " status=%08x", req->status );
3960 static void dump_query_completion_request( const struct query_completion_request *req )
3962 fprintf( stderr, " handle=%04x", req->handle );
3965 static void dump_query_completion_reply( const struct query_completion_reply *req )
3967 fprintf( stderr, " depth=%08x", req->depth );
3970 static void dump_set_completion_info_request( const struct set_completion_info_request *req )
3972 fprintf( stderr, " handle=%04x,", req->handle );
3973 fprintf( stderr, " ckey=" );
3974 dump_uint64( &req->ckey );
3975 fprintf( stderr, "," );
3976 fprintf( stderr, " chandle=%04x", req->chandle );
3979 static void dump_add_fd_completion_request( const struct add_fd_completion_request *req )
3981 fprintf( stderr, " handle=%04x,", req->handle );
3982 fprintf( stderr, " cvalue=" );
3983 dump_uint64( &req->cvalue );
3984 fprintf( stderr, "," );
3985 fprintf( stderr, " status=%08x,", req->status );
3986 fprintf( stderr, " information=%08x", req->information );
3989 static void dump_get_window_layered_info_request( const struct get_window_layered_info_request *req )
3991 fprintf( stderr, " handle=%08x", req->handle );
3994 static void dump_get_window_layered_info_reply( const struct get_window_layered_info_reply *req )
3996 fprintf( stderr, " color_key=%08x,", req->color_key );
3997 fprintf( stderr, " alpha=%08x,", req->alpha );
3998 fprintf( stderr, " flags=%08x", req->flags );
4001 static void dump_set_window_layered_info_request( const struct set_window_layered_info_request *req )
4003 fprintf( stderr, " handle=%08x,", req->handle );
4004 fprintf( stderr, " color_key=%08x,", req->color_key );
4005 fprintf( stderr, " alpha=%08x,", req->alpha );
4006 fprintf( stderr, " flags=%08x", req->flags );
4009 static const dump_func req_dumpers[REQ_NB_REQUESTS] = {
4010 (dump_func)dump_new_process_request,
4011 (dump_func)dump_get_new_process_info_request,
4012 (dump_func)dump_new_thread_request,
4013 (dump_func)dump_get_startup_info_request,
4014 (dump_func)dump_init_process_done_request,
4015 (dump_func)dump_init_thread_request,
4016 (dump_func)dump_terminate_process_request,
4017 (dump_func)dump_terminate_thread_request,
4018 (dump_func)dump_get_process_info_request,
4019 (dump_func)dump_set_process_info_request,
4020 (dump_func)dump_get_thread_info_request,
4021 (dump_func)dump_set_thread_info_request,
4022 (dump_func)dump_get_dll_info_request,
4023 (dump_func)dump_suspend_thread_request,
4024 (dump_func)dump_resume_thread_request,
4025 (dump_func)dump_load_dll_request,
4026 (dump_func)dump_unload_dll_request,
4027 (dump_func)dump_queue_apc_request,
4028 (dump_func)dump_get_apc_result_request,
4029 (dump_func)dump_close_handle_request,
4030 (dump_func)dump_set_handle_info_request,
4031 (dump_func)dump_dup_handle_request,
4032 (dump_func)dump_open_process_request,
4033 (dump_func)dump_open_thread_request,
4034 (dump_func)dump_select_request,
4035 (dump_func)dump_create_event_request,
4036 (dump_func)dump_event_op_request,
4037 (dump_func)dump_open_event_request,
4038 (dump_func)dump_create_mutex_request,
4039 (dump_func)dump_release_mutex_request,
4040 (dump_func)dump_open_mutex_request,
4041 (dump_func)dump_create_semaphore_request,
4042 (dump_func)dump_release_semaphore_request,
4043 (dump_func)dump_open_semaphore_request,
4044 (dump_func)dump_create_file_request,
4045 (dump_func)dump_open_file_object_request,
4046 (dump_func)dump_alloc_file_handle_request,
4047 (dump_func)dump_get_handle_fd_request,
4048 (dump_func)dump_flush_file_request,
4049 (dump_func)dump_lock_file_request,
4050 (dump_func)dump_unlock_file_request,
4051 (dump_func)dump_create_socket_request,
4052 (dump_func)dump_accept_socket_request,
4053 (dump_func)dump_set_socket_event_request,
4054 (dump_func)dump_get_socket_event_request,
4055 (dump_func)dump_enable_socket_event_request,
4056 (dump_func)dump_set_socket_deferred_request,
4057 (dump_func)dump_alloc_console_request,
4058 (dump_func)dump_free_console_request,
4059 (dump_func)dump_get_console_renderer_events_request,
4060 (dump_func)dump_open_console_request,
4061 (dump_func)dump_get_console_wait_event_request,
4062 (dump_func)dump_get_console_mode_request,
4063 (dump_func)dump_set_console_mode_request,
4064 (dump_func)dump_set_console_input_info_request,
4065 (dump_func)dump_get_console_input_info_request,
4066 (dump_func)dump_append_console_input_history_request,
4067 (dump_func)dump_get_console_input_history_request,
4068 (dump_func)dump_create_console_output_request,
4069 (dump_func)dump_set_console_output_info_request,
4070 (dump_func)dump_get_console_output_info_request,
4071 (dump_func)dump_write_console_input_request,
4072 (dump_func)dump_read_console_input_request,
4073 (dump_func)dump_write_console_output_request,
4074 (dump_func)dump_fill_console_output_request,
4075 (dump_func)dump_read_console_output_request,
4076 (dump_func)dump_move_console_output_request,
4077 (dump_func)dump_send_console_signal_request,
4078 (dump_func)dump_read_directory_changes_request,
4079 (dump_func)dump_read_change_request,
4080 (dump_func)dump_create_mapping_request,
4081 (dump_func)dump_open_mapping_request,
4082 (dump_func)dump_get_mapping_info_request,
4083 (dump_func)dump_get_mapping_committed_range_request,
4084 (dump_func)dump_add_mapping_committed_range_request,
4085 (dump_func)dump_create_snapshot_request,
4086 (dump_func)dump_next_process_request,
4087 (dump_func)dump_next_thread_request,
4088 (dump_func)dump_wait_debug_event_request,
4089 (dump_func)dump_queue_exception_event_request,
4090 (dump_func)dump_get_exception_status_request,
4091 (dump_func)dump_output_debug_string_request,
4092 (dump_func)dump_continue_debug_event_request,
4093 (dump_func)dump_debug_process_request,
4094 (dump_func)dump_debug_break_request,
4095 (dump_func)dump_set_debugger_kill_on_exit_request,
4096 (dump_func)dump_read_process_memory_request,
4097 (dump_func)dump_write_process_memory_request,
4098 (dump_func)dump_create_key_request,
4099 (dump_func)dump_open_key_request,
4100 (dump_func)dump_delete_key_request,
4101 (dump_func)dump_flush_key_request,
4102 (dump_func)dump_enum_key_request,
4103 (dump_func)dump_set_key_value_request,
4104 (dump_func)dump_get_key_value_request,
4105 (dump_func)dump_enum_key_value_request,
4106 (dump_func)dump_delete_key_value_request,
4107 (dump_func)dump_load_registry_request,
4108 (dump_func)dump_unload_registry_request,
4109 (dump_func)dump_save_registry_request,
4110 (dump_func)dump_set_registry_notification_request,
4111 (dump_func)dump_create_timer_request,
4112 (dump_func)dump_open_timer_request,
4113 (dump_func)dump_set_timer_request,
4114 (dump_func)dump_cancel_timer_request,
4115 (dump_func)dump_get_timer_info_request,
4116 (dump_func)dump_get_thread_context_request,
4117 (dump_func)dump_set_thread_context_request,
4118 (dump_func)dump_get_selector_entry_request,
4119 (dump_func)dump_add_atom_request,
4120 (dump_func)dump_delete_atom_request,
4121 (dump_func)dump_find_atom_request,
4122 (dump_func)dump_get_atom_information_request,
4123 (dump_func)dump_set_atom_information_request,
4124 (dump_func)dump_empty_atom_table_request,
4125 (dump_func)dump_init_atom_table_request,
4126 (dump_func)dump_get_msg_queue_request,
4127 (dump_func)dump_set_queue_fd_request,
4128 (dump_func)dump_set_queue_mask_request,
4129 (dump_func)dump_get_queue_status_request,
4130 (dump_func)dump_get_process_idle_event_request,
4131 (dump_func)dump_send_message_request,
4132 (dump_func)dump_post_quit_message_request,
4133 (dump_func)dump_send_hardware_message_request,
4134 (dump_func)dump_get_message_request,
4135 (dump_func)dump_reply_message_request,
4136 (dump_func)dump_accept_hardware_message_request,
4137 (dump_func)dump_get_message_reply_request,
4138 (dump_func)dump_set_win_timer_request,
4139 (dump_func)dump_kill_win_timer_request,
4140 (dump_func)dump_is_window_hung_request,
4141 (dump_func)dump_get_serial_info_request,
4142 (dump_func)dump_set_serial_info_request,
4143 (dump_func)dump_register_async_request,
4144 (dump_func)dump_cancel_async_request,
4145 (dump_func)dump_ioctl_request,
4146 (dump_func)dump_get_ioctl_result_request,
4147 (dump_func)dump_create_named_pipe_request,
4148 (dump_func)dump_get_named_pipe_info_request,
4149 (dump_func)dump_create_window_request,
4150 (dump_func)dump_destroy_window_request,
4151 (dump_func)dump_get_desktop_window_request,
4152 (dump_func)dump_set_window_owner_request,
4153 (dump_func)dump_get_window_info_request,
4154 (dump_func)dump_set_window_info_request,
4155 (dump_func)dump_set_parent_request,
4156 (dump_func)dump_get_window_parents_request,
4157 (dump_func)dump_get_window_children_request,
4158 (dump_func)dump_get_window_children_from_point_request,
4159 (dump_func)dump_get_window_tree_request,
4160 (dump_func)dump_set_window_pos_request,
4161 (dump_func)dump_get_window_rectangles_request,
4162 (dump_func)dump_get_window_text_request,
4163 (dump_func)dump_set_window_text_request,
4164 (dump_func)dump_get_windows_offset_request,
4165 (dump_func)dump_get_visible_region_request,
4166 (dump_func)dump_get_window_region_request,
4167 (dump_func)dump_set_window_region_request,
4168 (dump_func)dump_get_update_region_request,
4169 (dump_func)dump_update_window_zorder_request,
4170 (dump_func)dump_redraw_window_request,
4171 (dump_func)dump_set_window_property_request,
4172 (dump_func)dump_remove_window_property_request,
4173 (dump_func)dump_get_window_property_request,
4174 (dump_func)dump_get_window_properties_request,
4175 (dump_func)dump_create_winstation_request,
4176 (dump_func)dump_open_winstation_request,
4177 (dump_func)dump_close_winstation_request,
4178 (dump_func)dump_get_process_winstation_request,
4179 (dump_func)dump_set_process_winstation_request,
4180 (dump_func)dump_enum_winstation_request,
4181 (dump_func)dump_create_desktop_request,
4182 (dump_func)dump_open_desktop_request,
4183 (dump_func)dump_close_desktop_request,
4184 (dump_func)dump_get_thread_desktop_request,
4185 (dump_func)dump_set_thread_desktop_request,
4186 (dump_func)dump_enum_desktop_request,
4187 (dump_func)dump_set_user_object_info_request,
4188 (dump_func)dump_attach_thread_input_request,
4189 (dump_func)dump_get_thread_input_request,
4190 (dump_func)dump_get_last_input_time_request,
4191 (dump_func)dump_get_key_state_request,
4192 (dump_func)dump_set_key_state_request,
4193 (dump_func)dump_set_foreground_window_request,
4194 (dump_func)dump_set_focus_window_request,
4195 (dump_func)dump_set_active_window_request,
4196 (dump_func)dump_set_capture_window_request,
4197 (dump_func)dump_set_caret_window_request,
4198 (dump_func)dump_set_caret_info_request,
4199 (dump_func)dump_set_hook_request,
4200 (dump_func)dump_remove_hook_request,
4201 (dump_func)dump_start_hook_chain_request,
4202 (dump_func)dump_finish_hook_chain_request,
4203 (dump_func)dump_get_hook_info_request,
4204 (dump_func)dump_create_class_request,
4205 (dump_func)dump_destroy_class_request,
4206 (dump_func)dump_set_class_info_request,
4207 (dump_func)dump_set_clipboard_info_request,
4208 (dump_func)dump_open_token_request,
4209 (dump_func)dump_set_global_windows_request,
4210 (dump_func)dump_adjust_token_privileges_request,
4211 (dump_func)dump_get_token_privileges_request,
4212 (dump_func)dump_check_token_privileges_request,
4213 (dump_func)dump_duplicate_token_request,
4214 (dump_func)dump_access_check_request,
4215 (dump_func)dump_get_token_user_request,
4216 (dump_func)dump_get_token_groups_request,
4217 (dump_func)dump_set_security_object_request,
4218 (dump_func)dump_get_security_object_request,
4219 (dump_func)dump_create_mailslot_request,
4220 (dump_func)dump_set_mailslot_info_request,
4221 (dump_func)dump_create_directory_request,
4222 (dump_func)dump_open_directory_request,
4223 (dump_func)dump_get_directory_entry_request,
4224 (dump_func)dump_create_symlink_request,
4225 (dump_func)dump_open_symlink_request,
4226 (dump_func)dump_query_symlink_request,
4227 (dump_func)dump_get_object_info_request,
4228 (dump_func)dump_unlink_object_request,
4229 (dump_func)dump_get_token_impersonation_level_request,
4230 (dump_func)dump_allocate_locally_unique_id_request,
4231 (dump_func)dump_create_device_manager_request,
4232 (dump_func)dump_create_device_request,
4233 (dump_func)dump_delete_device_request,
4234 (dump_func)dump_get_next_device_request_request,
4235 (dump_func)dump_make_process_system_request,
4236 (dump_func)dump_get_token_statistics_request,
4237 (dump_func)dump_create_completion_request,
4238 (dump_func)dump_open_completion_request,
4239 (dump_func)dump_add_completion_request,
4240 (dump_func)dump_remove_completion_request,
4241 (dump_func)dump_query_completion_request,
4242 (dump_func)dump_set_completion_info_request,
4243 (dump_func)dump_add_fd_completion_request,
4244 (dump_func)dump_get_window_layered_info_request,
4245 (dump_func)dump_set_window_layered_info_request,
4248 static const dump_func reply_dumpers[REQ_NB_REQUESTS] = {
4249 (dump_func)dump_new_process_reply,
4250 (dump_func)dump_get_new_process_info_reply,
4251 (dump_func)dump_new_thread_reply,
4252 (dump_func)dump_get_startup_info_reply,
4254 (dump_func)dump_init_thread_reply,
4255 (dump_func)dump_terminate_process_reply,
4256 (dump_func)dump_terminate_thread_reply,
4257 (dump_func)dump_get_process_info_reply,
4259 (dump_func)dump_get_thread_info_reply,
4261 (dump_func)dump_get_dll_info_reply,
4262 (dump_func)dump_suspend_thread_reply,
4263 (dump_func)dump_resume_thread_reply,
4266 (dump_func)dump_queue_apc_reply,
4267 (dump_func)dump_get_apc_result_reply,
4269 (dump_func)dump_set_handle_info_reply,
4270 (dump_func)dump_dup_handle_reply,
4271 (dump_func)dump_open_process_reply,
4272 (dump_func)dump_open_thread_reply,
4273 (dump_func)dump_select_reply,
4274 (dump_func)dump_create_event_reply,
4276 (dump_func)dump_open_event_reply,
4277 (dump_func)dump_create_mutex_reply,
4278 (dump_func)dump_release_mutex_reply,
4279 (dump_func)dump_open_mutex_reply,
4280 (dump_func)dump_create_semaphore_reply,
4281 (dump_func)dump_release_semaphore_reply,
4282 (dump_func)dump_open_semaphore_reply,
4283 (dump_func)dump_create_file_reply,
4284 (dump_func)dump_open_file_object_reply,
4285 (dump_func)dump_alloc_file_handle_reply,
4286 (dump_func)dump_get_handle_fd_reply,
4287 (dump_func)dump_flush_file_reply,
4288 (dump_func)dump_lock_file_reply,
4290 (dump_func)dump_create_socket_reply,
4291 (dump_func)dump_accept_socket_reply,
4293 (dump_func)dump_get_socket_event_reply,
4296 (dump_func)dump_alloc_console_reply,
4298 (dump_func)dump_get_console_renderer_events_reply,
4299 (dump_func)dump_open_console_reply,
4300 (dump_func)dump_get_console_wait_event_reply,
4301 (dump_func)dump_get_console_mode_reply,
4304 (dump_func)dump_get_console_input_info_reply,
4306 (dump_func)dump_get_console_input_history_reply,
4307 (dump_func)dump_create_console_output_reply,
4309 (dump_func)dump_get_console_output_info_reply,
4310 (dump_func)dump_write_console_input_reply,
4311 (dump_func)dump_read_console_input_reply,
4312 (dump_func)dump_write_console_output_reply,
4313 (dump_func)dump_fill_console_output_reply,
4314 (dump_func)dump_read_console_output_reply,
4318 (dump_func)dump_read_change_reply,
4319 (dump_func)dump_create_mapping_reply,
4320 (dump_func)dump_open_mapping_reply,
4321 (dump_func)dump_get_mapping_info_reply,
4322 (dump_func)dump_get_mapping_committed_range_reply,
4324 (dump_func)dump_create_snapshot_reply,
4325 (dump_func)dump_next_process_reply,
4326 (dump_func)dump_next_thread_reply,
4327 (dump_func)dump_wait_debug_event_reply,
4328 (dump_func)dump_queue_exception_event_reply,
4329 (dump_func)dump_get_exception_status_reply,
4333 (dump_func)dump_debug_break_reply,
4335 (dump_func)dump_read_process_memory_reply,
4337 (dump_func)dump_create_key_reply,
4338 (dump_func)dump_open_key_reply,
4341 (dump_func)dump_enum_key_reply,
4343 (dump_func)dump_get_key_value_reply,
4344 (dump_func)dump_enum_key_value_reply,
4350 (dump_func)dump_create_timer_reply,
4351 (dump_func)dump_open_timer_reply,
4352 (dump_func)dump_set_timer_reply,
4353 (dump_func)dump_cancel_timer_reply,
4354 (dump_func)dump_get_timer_info_reply,
4355 (dump_func)dump_get_thread_context_reply,
4356 (dump_func)dump_set_thread_context_reply,
4357 (dump_func)dump_get_selector_entry_reply,
4358 (dump_func)dump_add_atom_reply,
4360 (dump_func)dump_find_atom_reply,
4361 (dump_func)dump_get_atom_information_reply,
4364 (dump_func)dump_init_atom_table_reply,
4365 (dump_func)dump_get_msg_queue_reply,
4367 (dump_func)dump_set_queue_mask_reply,
4368 (dump_func)dump_get_queue_status_reply,
4369 (dump_func)dump_get_process_idle_event_reply,
4373 (dump_func)dump_get_message_reply,
4376 (dump_func)dump_get_message_reply_reply,
4377 (dump_func)dump_set_win_timer_reply,
4379 (dump_func)dump_is_window_hung_reply,
4380 (dump_func)dump_get_serial_info_reply,
4384 (dump_func)dump_ioctl_reply,
4385 (dump_func)dump_get_ioctl_result_reply,
4386 (dump_func)dump_create_named_pipe_reply,
4387 (dump_func)dump_get_named_pipe_info_reply,
4388 (dump_func)dump_create_window_reply,
4390 (dump_func)dump_get_desktop_window_reply,
4391 (dump_func)dump_set_window_owner_reply,
4392 (dump_func)dump_get_window_info_reply,
4393 (dump_func)dump_set_window_info_reply,
4394 (dump_func)dump_set_parent_reply,
4395 (dump_func)dump_get_window_parents_reply,
4396 (dump_func)dump_get_window_children_reply,
4397 (dump_func)dump_get_window_children_from_point_reply,
4398 (dump_func)dump_get_window_tree_reply,
4399 (dump_func)dump_set_window_pos_reply,
4400 (dump_func)dump_get_window_rectangles_reply,
4401 (dump_func)dump_get_window_text_reply,
4403 (dump_func)dump_get_windows_offset_reply,
4404 (dump_func)dump_get_visible_region_reply,
4405 (dump_func)dump_get_window_region_reply,
4407 (dump_func)dump_get_update_region_reply,
4411 (dump_func)dump_remove_window_property_reply,
4412 (dump_func)dump_get_window_property_reply,
4413 (dump_func)dump_get_window_properties_reply,
4414 (dump_func)dump_create_winstation_reply,
4415 (dump_func)dump_open_winstation_reply,
4417 (dump_func)dump_get_process_winstation_reply,
4419 (dump_func)dump_enum_winstation_reply,
4420 (dump_func)dump_create_desktop_reply,
4421 (dump_func)dump_open_desktop_reply,
4423 (dump_func)dump_get_thread_desktop_reply,
4425 (dump_func)dump_enum_desktop_reply,
4426 (dump_func)dump_set_user_object_info_reply,
4428 (dump_func)dump_get_thread_input_reply,
4429 (dump_func)dump_get_last_input_time_reply,
4430 (dump_func)dump_get_key_state_reply,
4432 (dump_func)dump_set_foreground_window_reply,
4433 (dump_func)dump_set_focus_window_reply,
4434 (dump_func)dump_set_active_window_reply,
4435 (dump_func)dump_set_capture_window_reply,
4436 (dump_func)dump_set_caret_window_reply,
4437 (dump_func)dump_set_caret_info_reply,
4438 (dump_func)dump_set_hook_reply,
4439 (dump_func)dump_remove_hook_reply,
4440 (dump_func)dump_start_hook_chain_reply,
4442 (dump_func)dump_get_hook_info_reply,
4443 (dump_func)dump_create_class_reply,
4444 (dump_func)dump_destroy_class_reply,
4445 (dump_func)dump_set_class_info_reply,
4446 (dump_func)dump_set_clipboard_info_reply,
4447 (dump_func)dump_open_token_reply,
4448 (dump_func)dump_set_global_windows_reply,
4449 (dump_func)dump_adjust_token_privileges_reply,
4450 (dump_func)dump_get_token_privileges_reply,
4451 (dump_func)dump_check_token_privileges_reply,
4452 (dump_func)dump_duplicate_token_reply,
4453 (dump_func)dump_access_check_reply,
4454 (dump_func)dump_get_token_user_reply,
4455 (dump_func)dump_get_token_groups_reply,
4457 (dump_func)dump_get_security_object_reply,
4458 (dump_func)dump_create_mailslot_reply,
4459 (dump_func)dump_set_mailslot_info_reply,
4460 (dump_func)dump_create_directory_reply,
4461 (dump_func)dump_open_directory_reply,
4462 (dump_func)dump_get_directory_entry_reply,
4463 (dump_func)dump_create_symlink_reply,
4464 (dump_func)dump_open_symlink_reply,
4465 (dump_func)dump_query_symlink_reply,
4466 (dump_func)dump_get_object_info_reply,
4468 (dump_func)dump_get_token_impersonation_level_reply,
4469 (dump_func)dump_allocate_locally_unique_id_reply,
4470 (dump_func)dump_create_device_manager_reply,
4471 (dump_func)dump_create_device_reply,
4473 (dump_func)dump_get_next_device_request_reply,
4474 (dump_func)dump_make_process_system_reply,
4475 (dump_func)dump_get_token_statistics_reply,
4476 (dump_func)dump_create_completion_reply,
4477 (dump_func)dump_open_completion_reply,
4479 (dump_func)dump_remove_completion_reply,
4480 (dump_func)dump_query_completion_reply,
4483 (dump_func)dump_get_window_layered_info_reply,
4487 static const char * const req_names[REQ_NB_REQUESTS] = {
4489 "get_new_process_info",
4492 "init_process_done",
4494 "terminate_process",
4520 "release_semaphore",
4524 "alloc_file_handle",
4533 "enable_socket_event",
4534 "set_socket_deferred",
4537 "get_console_renderer_events",
4539 "get_console_wait_event",
4542 "set_console_input_info",
4543 "get_console_input_info",
4544 "append_console_input_history",
4545 "get_console_input_history",
4546 "create_console_output",
4547 "set_console_output_info",
4548 "get_console_output_info",
4549 "write_console_input",
4550 "read_console_input",
4551 "write_console_output",
4552 "fill_console_output",
4553 "read_console_output",
4554 "move_console_output",
4555 "send_console_signal",
4556 "read_directory_changes",
4561 "get_mapping_committed_range",
4562 "add_mapping_committed_range",
4567 "queue_exception_event",
4568 "get_exception_status",
4569 "output_debug_string",
4570 "continue_debug_event",
4573 "set_debugger_kill_on_exit",
4574 "read_process_memory",
4575 "write_process_memory",
4588 "set_registry_notification",
4594 "get_thread_context",
4595 "set_thread_context",
4596 "get_selector_entry",
4600 "get_atom_information",
4601 "set_atom_information",
4608 "get_process_idle_event",
4610 "post_quit_message",
4611 "send_hardware_message",
4614 "accept_hardware_message",
4615 "get_message_reply",
4625 "create_named_pipe",
4626 "get_named_pipe_info",
4629 "get_desktop_window",
4634 "get_window_parents",
4635 "get_window_children",
4636 "get_window_children_from_point",
4639 "get_window_rectangles",
4642 "get_windows_offset",
4643 "get_visible_region",
4644 "get_window_region",
4645 "set_window_region",
4646 "get_update_region",
4647 "update_window_zorder",
4649 "set_window_property",
4650 "remove_window_property",
4651 "get_window_property",
4652 "get_window_properties",
4653 "create_winstation",
4656 "get_process_winstation",
4657 "set_process_winstation",
4662 "get_thread_desktop",
4663 "set_thread_desktop",
4665 "set_user_object_info",
4666 "attach_thread_input",
4668 "get_last_input_time",
4671 "set_foreground_window",
4673 "set_active_window",
4674 "set_capture_window",
4680 "finish_hook_chain",
4685 "set_clipboard_info",
4687 "set_global_windows",
4688 "adjust_token_privileges",
4689 "get_token_privileges",
4690 "check_token_privileges",
4695 "set_security_object",
4696 "get_security_object",
4698 "set_mailslot_info",
4701 "get_directory_entry",
4707 "get_token_impersonation_level",
4708 "allocate_locally_unique_id",
4709 "create_device_manager",
4712 "get_next_device_request",
4713 "make_process_system",
4714 "get_token_statistics",
4715 "create_completion",
4718 "remove_completion",
4720 "set_completion_info",
4721 "add_fd_completion",
4722 "get_window_layered_info",
4723 "set_window_layered_info",
4732 { "ABANDONED_WAIT_0", STATUS_ABANDONED_WAIT_0 },
4733 { "ACCESS_DENIED", STATUS_ACCESS_DENIED },
4734 { "ACCESS_VIOLATION", STATUS_ACCESS_VIOLATION },
4735 { "ALERTED", STATUS_ALERTED },
4736 { "ALIAS_EXISTS", STATUS_ALIAS_EXISTS },
4737 { "BAD_DEVICE_TYPE", STATUS_BAD_DEVICE_TYPE },
4738 { "BAD_IMPERSONATION_LEVEL", STATUS_BAD_IMPERSONATION_LEVEL },
4739 { "BREAKPOINT", STATUS_BREAKPOINT },
4740 { "BUFFER_OVERFLOW", STATUS_BUFFER_OVERFLOW },
4741 { "BUFFER_TOO_SMALL", STATUS_BUFFER_TOO_SMALL },
4742 { "CANCELLED", STATUS_CANCELLED },
4743 { "CANT_OPEN_ANONYMOUS", STATUS_CANT_OPEN_ANONYMOUS },
4744 { "CHILD_MUST_BE_VOLATILE", STATUS_CHILD_MUST_BE_VOLATILE },
4745 { "DEBUGGER_INACTIVE", STATUS_DEBUGGER_INACTIVE },
4746 { "DEVICE_BUSY", STATUS_DEVICE_BUSY },
4747 { "DIRECTORY_NOT_EMPTY", STATUS_DIRECTORY_NOT_EMPTY },
4748 { "DISK_FULL", STATUS_DISK_FULL },
4749 { "DLL_NOT_FOUND", STATUS_DLL_NOT_FOUND },
4750 { "ERROR_CLASS_ALREADY_EXISTS", 0xc0010000 | ERROR_CLASS_ALREADY_EXISTS },
4751 { "ERROR_CLASS_DOES_NOT_EXIST", 0xc0010000 | ERROR_CLASS_DOES_NOT_EXIST },
4752 { "ERROR_CLASS_HAS_WINDOWS", 0xc0010000 | ERROR_CLASS_HAS_WINDOWS },
4753 { "ERROR_CLIPBOARD_NOT_OPEN", 0xc0010000 | ERROR_CLIPBOARD_NOT_OPEN },
4754 { "ERROR_INVALID_INDEX", 0xc0010000 | ERROR_INVALID_INDEX },
4755 { "ERROR_INVALID_WINDOW_HANDLE", 0xc0010000 | ERROR_INVALID_WINDOW_HANDLE },
4756 { "FILE_DELETED", STATUS_FILE_DELETED },
4757 { "FILE_IS_A_DIRECTORY", STATUS_FILE_IS_A_DIRECTORY },
4758 { "FILE_LOCK_CONFLICT", STATUS_FILE_LOCK_CONFLICT },
4759 { "GENERIC_NOT_MAPPED", STATUS_GENERIC_NOT_MAPPED },
4760 { "HANDLES_CLOSED", STATUS_HANDLES_CLOSED },
4761 { "HANDLE_NOT_CLOSABLE", STATUS_HANDLE_NOT_CLOSABLE },
4762 { "ILLEGAL_FUNCTION", STATUS_ILLEGAL_FUNCTION },
4763 { "INSTANCE_NOT_AVAILABLE", STATUS_INSTANCE_NOT_AVAILABLE },
4764 { "INSUFFICIENT_RESOURCES", STATUS_INSUFFICIENT_RESOURCES },
4765 { "INVALID_CID", STATUS_INVALID_CID },
4766 { "INVALID_DEVICE_REQUEST", STATUS_INVALID_DEVICE_REQUEST },
4767 { "INVALID_FILE_FOR_SECTION", STATUS_INVALID_FILE_FOR_SECTION },
4768 { "INVALID_HANDLE", STATUS_INVALID_HANDLE },
4769 { "INVALID_PARAMETER", STATUS_INVALID_PARAMETER },
4770 { "INVALID_SECURITY_DESCR", STATUS_INVALID_SECURITY_DESCR },
4771 { "IO_TIMEOUT", STATUS_IO_TIMEOUT },
4772 { "KEY_DELETED", STATUS_KEY_DELETED },
4773 { "MAPPED_FILE_SIZE_ZERO", STATUS_MAPPED_FILE_SIZE_ZERO },
4774 { "MEDIA_WRITE_PROTECTED", STATUS_MEDIA_WRITE_PROTECTED },
4775 { "MUTANT_NOT_OWNED", STATUS_MUTANT_NOT_OWNED },
4776 { "NAME_TOO_LONG", STATUS_NAME_TOO_LONG },
4777 { "NOTIFY_ENUM_DIR", STATUS_NOTIFY_ENUM_DIR },
4778 { "NOT_ALL_ASSIGNED", STATUS_NOT_ALL_ASSIGNED },
4779 { "NOT_A_DIRECTORY", STATUS_NOT_A_DIRECTORY },
4780 { "NOT_IMPLEMENTED", STATUS_NOT_IMPLEMENTED },
4781 { "NOT_REGISTRY_FILE", STATUS_NOT_REGISTRY_FILE },
4782 { "NOT_SUPPORTED", STATUS_NOT_SUPPORTED },
4783 { "NO_DATA_DETECTED", STATUS_NO_DATA_DETECTED },
4784 { "NO_IMPERSONATION_TOKEN", STATUS_NO_IMPERSONATION_TOKEN },
4785 { "NO_MEMORY", STATUS_NO_MEMORY },
4786 { "NO_MORE_ENTRIES", STATUS_NO_MORE_ENTRIES },
4787 { "NO_MORE_FILES", STATUS_NO_MORE_FILES },
4788 { "NO_SUCH_DEVICE", STATUS_NO_SUCH_DEVICE },
4789 { "NO_SUCH_FILE", STATUS_NO_SUCH_FILE },
4790 { "NO_TOKEN", STATUS_NO_TOKEN },
4791 { "OBJECT_NAME_COLLISION", STATUS_OBJECT_NAME_COLLISION },
4792 { "OBJECT_NAME_EXISTS", STATUS_OBJECT_NAME_EXISTS },
4793 { "OBJECT_NAME_INVALID", STATUS_OBJECT_NAME_INVALID },
4794 { "OBJECT_NAME_NOT_FOUND", STATUS_OBJECT_NAME_NOT_FOUND },
4795 { "OBJECT_PATH_INVALID", STATUS_OBJECT_PATH_INVALID },
4796 { "OBJECT_PATH_NOT_FOUND", STATUS_OBJECT_PATH_NOT_FOUND },
4797 { "OBJECT_PATH_SYNTAX_BAD", STATUS_OBJECT_PATH_SYNTAX_BAD },
4798 { "OBJECT_TYPE_MISMATCH", STATUS_OBJECT_TYPE_MISMATCH },
4799 { "PENDING", STATUS_PENDING },
4800 { "PIPE_BUSY", STATUS_PIPE_BUSY },
4801 { "PIPE_CONNECTED", STATUS_PIPE_CONNECTED },
4802 { "PIPE_DISCONNECTED", STATUS_PIPE_DISCONNECTED },
4803 { "PIPE_LISTENING", STATUS_PIPE_LISTENING },
4804 { "PIPE_NOT_AVAILABLE", STATUS_PIPE_NOT_AVAILABLE },
4805 { "PRIVILEGE_NOT_HELD", STATUS_PRIVILEGE_NOT_HELD },
4806 { "PROCESS_IS_TERMINATING", STATUS_PROCESS_IS_TERMINATING },
4807 { "SECTION_TOO_BIG", STATUS_SECTION_TOO_BIG },
4808 { "SEMAPHORE_LIMIT_EXCEEDED", STATUS_SEMAPHORE_LIMIT_EXCEEDED },
4809 { "SHARING_VIOLATION", STATUS_SHARING_VIOLATION },
4810 { "SHUTDOWN_IN_PROGRESS", STATUS_SHUTDOWN_IN_PROGRESS },
4811 { "SUSPEND_COUNT_EXCEEDED", STATUS_SUSPEND_COUNT_EXCEEDED },
4812 { "THREAD_IS_TERMINATING", STATUS_THREAD_IS_TERMINATING },
4813 { "TIMEOUT", STATUS_TIMEOUT },
4814 { "TOO_MANY_OPENED_FILES", STATUS_TOO_MANY_OPENED_FILES },
4815 { "UNSUCCESSFUL", STATUS_UNSUCCESSFUL },
4816 { "USER_APC", STATUS_USER_APC },
4817 { "VOLUME_DISMOUNTED", STATUS_VOLUME_DISMOUNTED },
4818 { "WAS_LOCKED", STATUS_WAS_LOCKED },
4822 /* ### make_requests end ### */
4823 /* Everything above this line is generated automatically by tools/make_requests */
4825 static const char *get_status_name( unsigned int status )
4828 static char buffer[10];
4832 for (i = 0; status_names[i].name; i++)
4833 if (status_names[i].value == status) return status_names[i].name;
4835 sprintf( buffer, "%x", status );
4839 void trace_request(void)
4841 enum request req = current->req.request_header.req;
4842 if (req < REQ_NB_REQUESTS)
4844 fprintf( stderr, "%04x: %s(", current->id, req_names[req] );
4845 if (req_dumpers[req])
4847 cur_data = get_req_data();
4848 cur_size = get_req_data_size();
4849 req_dumpers[req]( ¤t->req );
4851 fprintf( stderr, " )\n" );
4853 else fprintf( stderr, "%04x: %d(?)\n", current->id, req );
4856 void trace_reply( enum request req, const union generic_reply *reply )
4858 if (req < REQ_NB_REQUESTS)
4860 fprintf( stderr, "%04x: %s() = %s",
4861 current->id, req_names[req], get_status_name(current->error) );
4862 if (reply_dumpers[req])
4864 fprintf( stderr, " {" );
4865 cur_data = current->reply_data;
4866 cur_size = reply->reply_header.reply_size;
4867 reply_dumpers[req]( reply );
4868 fprintf( stderr, " }" );
4870 fputc( '\n', stderr );
4872 else fprintf( stderr, "%04x: %d() = %s\n",
4873 current->id, req, get_status_name(current->error) );