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 fprintf( stderr
, get_timeout_str(*time
) );
73 static void dump_file_pos( const file_pos_t
*pos
)
75 fprintf( stderr
, "%x%08x", (unsigned int)(*pos
>> 32), (unsigned int)*pos
);
78 static void dump_rectangle( const rectangle_t
*rect
)
80 fprintf( stderr
, "{%d,%d;%d,%d}",
81 rect
->left
, rect
->top
, rect
->right
, rect
->bottom
);
84 static void dump_char_info( const char_info_t
*info
)
86 fprintf( stderr
, "{'" );
87 dump_strW( &info
->ch
, 1, stderr
, "\'\'" );
88 fprintf( stderr
, "',%04x}", info
->attr
);
91 static void dump_ioctl_code( const ioctl_code_t
*code
)
95 #define CASE(c) case c: fputs( #c, stderr ); break
96 CASE(FSCTL_DISMOUNT_VOLUME
);
97 CASE(FSCTL_PIPE_DISCONNECT
);
98 CASE(FSCTL_PIPE_LISTEN
);
99 CASE(FSCTL_PIPE_WAIT
);
100 default: fprintf( stderr
, "%08x", *code
); break;
105 static void dump_apc_call( const apc_call_t
*call
)
107 fputc( '{', stderr
);
111 fprintf( stderr
, "APC_NONE" );
114 fprintf( stderr
, "APC_USER,args={%lx,%lx,%lx}",
115 call
->user
.args
[0], call
->user
.args
[1], call
->user
.args
[2] );
118 fprintf( stderr
, "APC_TIMER,time=" );
119 dump_timeout( &call
->timer
.time
);
120 fprintf( stderr
, ",arg=%p", call
->timer
.arg
);
123 fprintf( stderr
, "APC_ASYNC_IO,func=%p,user=%p,sb=%p,status=%s",
124 call
->async_io
.func
, call
->async_io
.user
, call
->async_io
.sb
,
125 get_status_name(call
->async_io
.status
) );
127 case APC_VIRTUAL_ALLOC
:
128 fprintf( stderr
, "APC_VIRTUAL_ALLOC,addr=%p,size=%lu,zero_bits=%u,op_type=%x,prot=%x",
129 call
->virtual_alloc
.addr
, call
->virtual_alloc
.size
,
130 call
->virtual_alloc
.zero_bits
, call
->virtual_alloc
.op_type
,
131 call
->virtual_alloc
.prot
);
133 case APC_VIRTUAL_FREE
:
134 fprintf( stderr
, "APC_VIRTUAL_FREE,addr=%p,size=%lu,op_type=%x",
135 call
->virtual_free
.addr
, call
->virtual_free
.size
,
136 call
->virtual_free
.op_type
);
138 case APC_VIRTUAL_QUERY
:
139 fprintf( stderr
, "APC_VIRTUAL_QUERY,addr=%p", call
->virtual_query
.addr
);
141 case APC_VIRTUAL_PROTECT
:
142 fprintf( stderr
, "APC_VIRTUAL_PROTECT,addr=%p,size=%lu,prot=%x",
143 call
->virtual_protect
.addr
, call
->virtual_protect
.size
,
144 call
->virtual_protect
.prot
);
146 case APC_VIRTUAL_FLUSH
:
147 fprintf( stderr
, "APC_VIRTUAL_FLUSH,addr=%p,size=%lu",
148 call
->virtual_flush
.addr
, call
->virtual_flush
.size
);
150 case APC_VIRTUAL_LOCK
:
151 fprintf( stderr
, "APC_VIRTUAL_LOCK,addr=%p,size=%lu",
152 call
->virtual_lock
.addr
, call
->virtual_lock
.size
);
154 case APC_VIRTUAL_UNLOCK
:
155 fprintf( stderr
, "APC_VIRTUAL_UNLOCK,addr=%p,size=%lu",
156 call
->virtual_unlock
.addr
, call
->virtual_unlock
.size
);
159 fprintf( stderr
, "APC_MAP_VIEW,handle=%p,addr=%p,size=%lu,offset=%x%08x,zero_bits=%u,alloc_type=%x,prot=%x",
160 call
->map_view
.handle
, call
->map_view
.addr
, call
->map_view
.size
,
161 (unsigned int)(call
->map_view
.offset
>> 32), (unsigned int)call
->map_view
.offset
,
162 call
->map_view
.zero_bits
, call
->map_view
.alloc_type
, call
->map_view
.prot
);
165 fprintf( stderr
, "APC_UNMAP_VIEW,addr=%p", call
->unmap_view
.addr
);
167 case APC_CREATE_THREAD
:
168 fprintf( stderr
, "APC_CREATE_THREAD,func=%p,arg=%p,reserve=%lx,commit=%lx,suspend=%u",
169 call
->create_thread
.func
, call
->create_thread
.arg
,
170 call
->create_thread
.reserve
, call
->create_thread
.commit
,
171 call
->create_thread
.suspend
);
174 fprintf( stderr
, "type=%u", call
->type
);
177 fputc( '}', stderr
);
180 static void dump_apc_result( const apc_result_t
*result
)
182 fputc( '{', stderr
);
188 fprintf( stderr
, "APC_ASYNC_IO,status=%s",
189 get_status_name( result
->async_io
.status
) );
191 case APC_VIRTUAL_ALLOC
:
192 fprintf( stderr
, "APC_VIRTUAL_ALLOC,status=%s,addr=%p,size=%lu",
193 get_status_name( result
->virtual_alloc
.status
),
194 result
->virtual_alloc
.addr
, result
->virtual_alloc
.size
);
196 case APC_VIRTUAL_FREE
:
197 fprintf( stderr
, "APC_VIRTUAL_FREE,status=%s,addr=%p,size=%lu",
198 get_status_name( result
->virtual_free
.status
),
199 result
->virtual_free
.addr
, result
->virtual_free
.size
);
201 case APC_VIRTUAL_QUERY
:
202 fprintf( stderr
, "APC_VIRTUAL_QUERY,status=%s,base=%p,alloc_base=%p,size=%lu,state=%x,prot=%x,alloc_prot=%x,alloc_type=%x",
203 get_status_name( result
->virtual_query
.status
),
204 result
->virtual_query
.base
, result
->virtual_query
.alloc_base
,
205 result
->virtual_query
.size
, result
->virtual_query
.state
,
206 result
->virtual_query
.prot
, result
->virtual_query
.alloc_prot
,
207 result
->virtual_query
.alloc_type
);
209 case APC_VIRTUAL_PROTECT
:
210 fprintf( stderr
, "APC_VIRTUAL_PROTECT,status=%s,addr=%p,size=%lu,prot=%x",
211 get_status_name( result
->virtual_protect
.status
),
212 result
->virtual_protect
.addr
, result
->virtual_protect
.size
,
213 result
->virtual_protect
.prot
);
215 case APC_VIRTUAL_FLUSH
:
216 fprintf( stderr
, "APC_VIRTUAL_FLUSH,status=%s,addr=%p,size=%lu",
217 get_status_name( result
->virtual_flush
.status
),
218 result
->virtual_flush
.addr
, result
->virtual_flush
.size
);
220 case APC_VIRTUAL_LOCK
:
221 fprintf( stderr
, "APC_VIRTUAL_LOCK,status=%s,addr=%p,size=%lu",
222 get_status_name( result
->virtual_lock
.status
),
223 result
->virtual_lock
.addr
, result
->virtual_lock
.size
);
225 case APC_VIRTUAL_UNLOCK
:
226 fprintf( stderr
, "APC_VIRTUAL_UNLOCK,status=%s,addr=%p,size=%lu",
227 get_status_name( result
->virtual_unlock
.status
),
228 result
->virtual_unlock
.addr
, result
->virtual_unlock
.size
);
231 fprintf( stderr
, "APC_MAP_VIEW,status=%s,addr=%p,size=%lu",
232 get_status_name( result
->map_view
.status
),
233 result
->map_view
.addr
, result
->map_view
.size
);
236 fprintf( stderr
, "APC_UNMAP_VIEW,status=%s",
237 get_status_name( result
->unmap_view
.status
) );
239 case APC_CREATE_THREAD
:
240 fprintf( stderr
, "APC_CREATE_THREAD,status=%s,tid=%04x,handle=%p",
241 get_status_name( result
->create_thread
.status
),
242 result
->create_thread
.tid
, result
->create_thread
.handle
);
245 fprintf( stderr
, "type=%u", result
->type
);
248 fputc( '}', stderr
);
251 static void dump_async_data( const async_data_t
*data
)
253 fprintf( stderr
, "{callback=%p,iosb=%p,arg=%p,apc=%p,event=%p}",
254 data
->callback
, data
->iosb
, data
->arg
, data
->apc
, data
->event
);
257 static void dump_luid( const luid_t
*luid
)
259 fprintf( stderr
, "%d.%u", luid
->high_part
, luid
->low_part
);
262 static void dump_context( const CONTEXT
*context
, data_size_t size
)
266 memset( &ctx
, 0, sizeof(ctx
) );
267 memcpy( &ctx
, context
, min( size
, sizeof(CONTEXT
) ));
269 fprintf( stderr
, "{flags=%08x,eax=%08x,ebx=%08x,ecx=%08x,edx=%08x,esi=%08x,edi=%08x,"
270 "ebp=%08x,eip=%08x,esp=%08x,eflags=%08x,cs=%04x,ds=%04x,es=%04x,"
271 "fs=%04x,gs=%04x,dr0=%08x,dr1=%08x,dr2=%08x,dr3=%08x,dr6=%08x,dr7=%08x,",
272 ctx
.ContextFlags
, ctx
.Eax
, ctx
.Ebx
, ctx
.Ecx
, ctx
.Edx
,
273 ctx
.Esi
, ctx
.Edi
, ctx
.Ebp
, ctx
.Eip
, ctx
.Esp
, ctx
.EFlags
,
274 ctx
.SegCs
, ctx
.SegDs
, ctx
.SegEs
, ctx
.SegFs
, ctx
.SegGs
,
275 ctx
.Dr0
, ctx
.Dr1
, ctx
.Dr2
, ctx
.Dr3
, ctx
.Dr6
, ctx
.Dr7
);
276 fprintf( stderr
, "float=" );
277 dump_uints( (const int *)&ctx
.FloatSave
, sizeof(ctx
.FloatSave
) / sizeof(int) );
278 if (size
> FIELD_OFFSET( CONTEXT
, ExtendedRegisters
))
280 fprintf( stderr
, ",extended=" );
281 dump_uints( (const int *)&ctx
.ExtendedRegisters
, sizeof(ctx
.ExtendedRegisters
) / sizeof(int) );
283 fprintf( stderr
, "}" );
285 dump_uints( (const int *)&ctx
, sizeof(ctx
) / sizeof(int) );
289 static void dump_exc_record( const EXCEPTION_RECORD
*rec
)
292 fprintf( stderr
, "{code=%x,flags=%x,rec=%p,addr=%p,params={",
293 rec
->ExceptionCode
, rec
->ExceptionFlags
, rec
->ExceptionRecord
,
294 rec
->ExceptionAddress
);
295 for (i
= 0; i
< min(rec
->NumberParameters
,EXCEPTION_MAXIMUM_PARAMETERS
); i
++)
297 if (i
) fputc( ',', stderr
);
298 fprintf( stderr
, "%lx", rec
->ExceptionInformation
[i
] );
300 fputc( '}', stderr
);
303 static void dump_varargs_ints( data_size_t size
)
305 const int *data
= cur_data
;
306 data_size_t len
= size
/ sizeof(*data
);
308 fputc( '{', stderr
);
311 fprintf( stderr
, "%d", *data
++ );
312 if (--len
) fputc( ',', stderr
);
314 fputc( '}', stderr
);
318 static void dump_varargs_apc_result( data_size_t size
)
320 const apc_result_t
*result
= cur_data
;
322 if (size
>= sizeof(*result
))
324 dump_apc_result( result
);
325 size
= sizeof(*result
);
330 static void dump_varargs_handles( data_size_t size
)
332 const obj_handle_t
*data
= cur_data
;
333 data_size_t len
= size
/ sizeof(*data
);
335 fputc( '{', stderr
);
338 fprintf( stderr
, "%p", *data
++ );
339 if (--len
) fputc( ',', stderr
);
341 fputc( '}', stderr
);
345 static void dump_varargs_user_handles( data_size_t size
)
347 const user_handle_t
*data
= cur_data
;
348 data_size_t len
= size
/ sizeof(*data
);
350 fputc( '{', stderr
);
353 fprintf( stderr
, "%p", *data
++ );
354 if (--len
) fputc( ',', stderr
);
356 fputc( '}', stderr
);
360 static void dump_varargs_bytes( data_size_t size
)
362 const unsigned char *data
= cur_data
;
363 data_size_t len
= size
;
365 fputc( '{', stderr
);
368 fprintf( stderr
, "%02x", *data
++ );
369 if (--len
) fputc( ',', stderr
);
371 fputc( '}', stderr
);
375 static void dump_varargs_string( data_size_t size
)
377 fprintf( stderr
, "\"%.*s\"", (int)size
, (const char *)cur_data
);
381 static void dump_varargs_unicode_str( data_size_t size
)
383 fprintf( stderr
, "L\"" );
384 dump_strW( cur_data
, size
/ sizeof(WCHAR
), stderr
, "\"\"" );
385 fputc( '\"', stderr
);
389 static void dump_varargs_context( data_size_t size
)
393 fprintf( stderr
, "{}" );
396 dump_context( cur_data
, size
);
397 remove_data( min( size
, sizeof(CONTEXT
) ));
400 static void dump_varargs_exc_event( data_size_t size
)
402 const CONTEXT
*ptr
= cur_data
;
406 fprintf( stderr
, "{}" );
409 fprintf( stderr
, "{context=" );
410 dump_context( ptr
, size
);
411 if (size
> sizeof(CONTEXT
))
413 fprintf( stderr
, ",rec=" );
414 dump_exc_record( (const EXCEPTION_RECORD
*)(ptr
+ 1) );
416 fputc( '}', stderr
);
420 static void dump_varargs_debug_event( data_size_t size
)
422 const debug_event_t
*event
= cur_data
;
426 fprintf( stderr
, "{}" );
431 case EXCEPTION_DEBUG_EVENT
:
432 fprintf( stderr
, "{exception," );
433 dump_exc_record( &event
->info
.exception
.record
);
434 fprintf( stderr
, ",first=%d}", event
->info
.exception
.first
);
436 case CREATE_THREAD_DEBUG_EVENT
:
437 fprintf( stderr
, "{create_thread,thread=%p,teb=%p,start=%p}",
438 event
->info
.create_thread
.handle
, event
->info
.create_thread
.teb
,
439 event
->info
.create_thread
.start
);
441 case CREATE_PROCESS_DEBUG_EVENT
:
442 fprintf( stderr
, "{create_process,file=%p,process=%p,thread=%p,base=%p,offset=%d,"
443 "size=%d,teb=%p,start=%p,name=%p,unicode=%d}",
444 event
->info
.create_process
.file
, event
->info
.create_process
.process
,
445 event
->info
.create_process
.thread
, event
->info
.create_process
.base
,
446 event
->info
.create_process
.dbg_offset
, event
->info
.create_process
.dbg_size
,
447 event
->info
.create_process
.teb
, event
->info
.create_process
.start
,
448 event
->info
.create_process
.name
, event
->info
.create_process
.unicode
);
450 case EXIT_THREAD_DEBUG_EVENT
:
451 fprintf( stderr
, "{exit_thread,code=%d}", event
->info
.exit
.exit_code
);
453 case EXIT_PROCESS_DEBUG_EVENT
:
454 fprintf( stderr
, "{exit_process,code=%d}", event
->info
.exit
.exit_code
);
456 case LOAD_DLL_DEBUG_EVENT
:
457 fprintf( stderr
, "{load_dll,file=%p,base=%p,offset=%d,size=%d,name=%p,unicode=%d}",
458 event
->info
.load_dll
.handle
, event
->info
.load_dll
.base
,
459 event
->info
.load_dll
.dbg_offset
, event
->info
.load_dll
.dbg_size
,
460 event
->info
.load_dll
.name
, event
->info
.load_dll
.unicode
);
462 case UNLOAD_DLL_DEBUG_EVENT
:
463 fprintf( stderr
, "{unload_dll,base=%p}", event
->info
.unload_dll
.base
);
465 case OUTPUT_DEBUG_STRING_EVENT
:
466 fprintf( stderr
, "{output_string,data=%p,unicode=%d,len=%d}",
467 event
->info
.output_string
.string
, event
->info
.output_string
.unicode
,
468 event
->info
.output_string
.length
);
471 fprintf( stderr
, "{rip,err=%d,type=%d}",
472 event
->info
.rip_info
.error
, event
->info
.rip_info
.type
);
474 case 0: /* zero is the code returned on timeouts */
475 fprintf( stderr
, "{}" );
478 fprintf( stderr
, "{code=??? (%d)}", event
->code
);
484 /* dump a unicode string contained in a buffer; helper for dump_varargs_startup_info */
485 static void dump_inline_unicode_string( const UNICODE_STRING
*str
, const void *data
, data_size_t size
)
487 size_t length
= str
->Length
;
488 size_t offset
= (size_t)str
->Buffer
;
490 if (offset
>= size
) return;
491 if (offset
+ length
> size
) length
= size
- offset
;
492 dump_strW( (const WCHAR
*)data
+ offset
/sizeof(WCHAR
), length
/sizeof(WCHAR
), stderr
, "\"\"" );
495 static void dump_varargs_startup_info( data_size_t size
)
497 const RTL_USER_PROCESS_PARAMETERS
*ptr
= cur_data
;
498 RTL_USER_PROCESS_PARAMETERS params
;
500 if (size
< sizeof(params
.Size
))
502 fprintf( stderr
, "{}" );
505 if (size
> ptr
->Size
) size
= ptr
->Size
;
506 memset( ¶ms
, 0, sizeof(params
) );
507 memcpy( ¶ms
, ptr
, min( size
, sizeof(params
) ));
509 fprintf( stderr
, "{AllocationSize=%x,", params
.AllocationSize
);
510 fprintf( stderr
, "Size=%x,", params
.Size
);
511 fprintf( stderr
, "Flags=%x,", params
.Flags
);
512 fprintf( stderr
, "DebugFlags=%x,", params
.DebugFlags
);
513 fprintf( stderr
, "ConsoleHandle=%p,", params
.ConsoleHandle
);
514 fprintf( stderr
, "ConsoleFlags=%x,", params
.ConsoleFlags
);
515 fprintf( stderr
, "hStdInput=%p,", params
.hStdInput
);
516 fprintf( stderr
, "hStdOutput=%p,", params
.hStdOutput
);
517 fprintf( stderr
, "hStdError=%p,", params
.hStdError
);
518 fprintf( stderr
, "CurrentDirectory.Handle=%p,", params
.CurrentDirectory
.Handle
);
519 fprintf( stderr
, "dwX=%d,", params
.dwX
);
520 fprintf( stderr
, "dwY=%d,", params
.dwY
);
521 fprintf( stderr
, "dwXSize=%d,", params
.dwXSize
);
522 fprintf( stderr
, "dwYSize=%d,", params
.dwYSize
);
523 fprintf( stderr
, "dwXCountChars=%d,", params
.dwXCountChars
);
524 fprintf( stderr
, "dwYCountChars=%d,", params
.dwYCountChars
);
525 fprintf( stderr
, "dwFillAttribute=%x,", params
.dwFillAttribute
);
526 fprintf( stderr
, "dwFlags=%x,", params
.dwFlags
);
527 fprintf( stderr
, "wShowWindow=%x,", params
.wShowWindow
);
528 fprintf( stderr
, "CurrentDirectory.DosPath=L\"" );
529 dump_inline_unicode_string( ¶ms
.CurrentDirectory
.DosPath
, cur_data
, size
);
530 fprintf( stderr
, "\",DllPath=L\"" );
531 dump_inline_unicode_string( ¶ms
.DllPath
, cur_data
, size
);
532 fprintf( stderr
, "\",ImagePathName=L\"" );
533 dump_inline_unicode_string( ¶ms
.ImagePathName
, cur_data
, size
);
534 fprintf( stderr
, "\",CommandLine=L\"" );
535 dump_inline_unicode_string( ¶ms
.CommandLine
, cur_data
, size
);
536 fprintf( stderr
, "\",WindowTitle=L\"" );
537 dump_inline_unicode_string( ¶ms
.WindowTitle
, cur_data
, size
);
538 fprintf( stderr
, "\",Desktop=L\"" );
539 dump_inline_unicode_string( ¶ms
.Desktop
, cur_data
, size
);
540 fprintf( stderr
, "\",ShellInfo=L\"" );
541 dump_inline_unicode_string( ¶ms
.ShellInfo
, cur_data
, size
);
542 fprintf( stderr
, "\",RuntimeInfo=L\"" );
543 dump_inline_unicode_string( ¶ms
.RuntimeInfo
, cur_data
, size
);
544 fprintf( stderr
, "\"}" );
548 static void dump_varargs_input_records( data_size_t size
)
550 const INPUT_RECORD
*rec
= cur_data
;
551 data_size_t len
= size
/ sizeof(*rec
);
553 fputc( '{', stderr
);
556 fprintf( stderr
, "{%04x,...}", rec
->EventType
);
558 if (--len
) fputc( ',', stderr
);
560 fputc( '}', stderr
);
564 static void dump_varargs_rectangles( data_size_t size
)
566 const rectangle_t
*rect
= cur_data
;
567 data_size_t len
= size
/ sizeof(*rect
);
569 fputc( '{', stderr
);
572 dump_rectangle( rect
++ );
573 if (--len
) fputc( ',', stderr
);
575 fputc( '}', stderr
);
579 static void dump_varargs_message_data( data_size_t size
)
581 /* FIXME: dump the structured data */
582 dump_varargs_bytes( size
);
585 static void dump_varargs_properties( data_size_t size
)
587 const property_data_t
*prop
= cur_data
;
588 data_size_t len
= size
/ sizeof(*prop
);
590 fputc( '{', stderr
);
593 fprintf( stderr
, "{atom=%04x,str=%d,handle=%p}",
594 prop
->atom
, prop
->string
, prop
->handle
);
596 if (--len
) fputc( ',', stderr
);
598 fputc( '}', stderr
);
602 static void dump_varargs_LUID_AND_ATTRIBUTES( data_size_t size
)
604 const LUID_AND_ATTRIBUTES
*lat
= cur_data
;
605 data_size_t len
= size
/ sizeof(*lat
);
607 fputc( '{', stderr
);
610 fprintf( stderr
, "{luid=%08x%08x,attr=%x}",
611 lat
->Luid
.HighPart
, lat
->Luid
.LowPart
, lat
->Attributes
);
613 if (--len
) fputc( ',', stderr
);
615 fputc( '}', stderr
);
619 static void dump_inline_sid( const SID
*sid
, data_size_t size
)
624 if ((FIELD_OFFSET(SID
, SubAuthority
[0]) > size
) ||
625 (FIELD_OFFSET(SID
, SubAuthority
[sid
->SubAuthorityCount
]) > size
))
627 fprintf( stderr
, "<invalid sid>" );
631 fputc( '{', stderr
);
632 fprintf( stderr
, "S-%u-%u", sid
->Revision
, MAKELONG(
633 MAKEWORD( sid
->IdentifierAuthority
.Value
[5],
634 sid
->IdentifierAuthority
.Value
[4] ),
635 MAKEWORD( sid
->IdentifierAuthority
.Value
[3],
636 sid
->IdentifierAuthority
.Value
[2] ) ) );
637 for (i
= 0; i
< sid
->SubAuthorityCount
; i
++)
638 fprintf( stderr
, "-%u", sid
->SubAuthority
[i
] );
639 fputc( '}', stderr
);
642 static void dump_varargs_SID( data_size_t size
)
644 const SID
*sid
= cur_data
;
645 dump_inline_sid( sid
, size
);
649 static void dump_inline_acl( const ACL
*acl
, data_size_t size
)
651 const ACE_HEADER
*ace
;
653 fputc( '{', stderr
);
657 if (size
< sizeof(ACL
))
659 fprintf( stderr
, "<invalid acl>}\n" );
663 ace
= (const ACE_HEADER
*)(acl
+ 1);
664 for (i
= 0; i
< acl
->AceCount
; i
++)
666 const SID
*sid
= NULL
;
667 data_size_t sid_size
= 0;
669 if (size
< sizeof(ACE_HEADER
))
671 if (size
< ace
->AceSize
)
673 size
-= ace
->AceSize
;
674 if (i
!= 0) fputc( ',', stderr
);
675 fprintf( stderr
, "{AceType=" );
676 switch (ace
->AceType
)
678 case ACCESS_DENIED_ACE_TYPE
:
679 sid
= (const SID
*)&((const ACCESS_DENIED_ACE
*)ace
)->SidStart
;
680 sid_size
= ace
->AceSize
- FIELD_OFFSET(ACCESS_DENIED_ACE
, SidStart
);
681 fprintf( stderr
, "ACCESS_DENIED_ACE_TYPE,Mask=%x",
682 ((const ACCESS_DENIED_ACE
*)ace
)->Mask
);
684 case ACCESS_ALLOWED_ACE_TYPE
:
685 sid
= (const SID
*)&((const ACCESS_ALLOWED_ACE
*)ace
)->SidStart
;
686 sid_size
= ace
->AceSize
- FIELD_OFFSET(ACCESS_ALLOWED_ACE
, SidStart
);
687 fprintf( stderr
, "ACCESS_ALLOWED_ACE_TYPE,Mask=%x",
688 ((const ACCESS_ALLOWED_ACE
*)ace
)->Mask
);
690 case SYSTEM_AUDIT_ACE_TYPE
:
691 sid
= (const SID
*)&((const SYSTEM_AUDIT_ACE
*)ace
)->SidStart
;
692 sid_size
= ace
->AceSize
- FIELD_OFFSET(SYSTEM_AUDIT_ACE
, SidStart
);
693 fprintf( stderr
, "SYSTEM_AUDIT_ACE_TYPE,Mask=%x",
694 ((const SYSTEM_AUDIT_ACE
*)ace
)->Mask
);
696 case SYSTEM_ALARM_ACE_TYPE
:
697 sid
= (const SID
*)&((const SYSTEM_ALARM_ACE
*)ace
)->SidStart
;
698 sid_size
= ace
->AceSize
- FIELD_OFFSET(SYSTEM_ALARM_ACE
, SidStart
);
699 fprintf( stderr
, "SYSTEM_ALARM_ACE_TYPE,Mask=%x",
700 ((const SYSTEM_ALARM_ACE
*)ace
)->Mask
);
703 fprintf( stderr
, "unknown<%d>", ace
->AceType
);
706 fprintf( stderr
, ",AceFlags=%x,Sid=", ace
->AceFlags
);
708 dump_inline_sid( sid
, sid_size
);
709 ace
= (const ACE_HEADER
*)((const char *)ace
+ ace
->AceSize
);
710 fputc( '}', stderr
);
713 fputc( '}', stderr
);
716 static void dump_inline_security_descriptor( const struct security_descriptor
*sd
, data_size_t size
)
718 fputc( '{', stderr
);
719 if (size
>= sizeof(struct security_descriptor
))
721 size_t offset
= sizeof(struct security_descriptor
);
722 fprintf( stderr
, "control=%08x", sd
->control
);
723 fprintf( stderr
, ",owner=" );
724 if ((sd
->owner_len
> FIELD_OFFSET(SID
, SubAuthority
[255])) || (offset
+ sd
->owner_len
> size
))
727 dump_inline_sid( (const SID
*)((const char *)sd
+ offset
), sd
->owner_len
);
729 fprintf( stderr
, "<not present>" );
730 offset
+= sd
->owner_len
;
731 fprintf( stderr
, ",group=" );
732 if ((sd
->group_len
> FIELD_OFFSET(SID
, SubAuthority
[255])) || (offset
+ sd
->group_len
> size
))
735 dump_inline_sid( (const SID
*)((const char *)sd
+ offset
), sd
->group_len
);
737 fprintf( stderr
, "<not present>" );
738 offset
+= sd
->group_len
;
739 fprintf( stderr
, ",sacl=" );
740 if ((sd
->sacl_len
>= MAX_ACL_LEN
) || (offset
+ sd
->sacl_len
> size
))
742 dump_inline_acl( (const ACL
*)((const char *)sd
+ offset
), sd
->sacl_len
);
743 offset
+= sd
->sacl_len
;
744 fprintf( stderr
, ",dacl=" );
745 if ((sd
->dacl_len
>= MAX_ACL_LEN
) || (offset
+ sd
->dacl_len
> size
))
747 dump_inline_acl( (const ACL
*)((const char *)sd
+ offset
), sd
->dacl_len
);
748 offset
+= sd
->dacl_len
;
750 fputc( '}', stderr
);
753 static void dump_varargs_security_descriptor( data_size_t size
)
755 const struct security_descriptor
*sd
= cur_data
;
756 dump_inline_security_descriptor( sd
, size
);
760 static void dump_varargs_token_groups( data_size_t size
)
762 const struct token_groups
*tg
= cur_data
;
763 fputc( '{', stderr
);
764 if (size
>= sizeof(struct token_groups
))
766 size_t offset
= sizeof(*tg
);
767 fprintf( stderr
, "count=%08x,", tg
->count
);
768 if (tg
->count
* sizeof(unsigned int) <= size
)
771 const unsigned int *attr
= (const unsigned int *)(tg
+ 1);
773 offset
+= tg
->count
* sizeof(unsigned int);
775 fputc( '[', stderr
);
776 for (i
= 0; i
< tg
->count
; i
++)
778 const SID
*sid
= (const SID
*)((const char *)cur_data
+ offset
);
780 fputc( ',', stderr
);
781 fputc( '{', stderr
);
782 fprintf( stderr
, "attributes=%08x", attr
[i
] );
783 fprintf( stderr
, ",sid=" );
784 dump_inline_sid( sid
, size
- offset
);
785 if ((offset
+ FIELD_OFFSET(SID
, SubAuthority
[0]) > size
) ||
786 (offset
+ FIELD_OFFSET(SID
, SubAuthority
[sid
->SubAuthorityCount
]) > size
))
788 offset
+= FIELD_OFFSET(SID
, SubAuthority
[sid
->SubAuthorityCount
]);
789 fputc( '}', stderr
);
791 fputc( ']', stderr
);
794 fputc( '}', stderr
);
797 static void dump_varargs_object_attributes( data_size_t size
)
799 const struct object_attributes
*objattr
= cur_data
;
800 fputc( '{', stderr
);
801 if (size
>= sizeof(struct object_attributes
))
804 fprintf( stderr
, "rootdir=%p,sd=", objattr
->rootdir
);
805 if (objattr
->sd_len
> size
- sizeof(*objattr
) ||
806 objattr
->name_len
> size
- sizeof(*objattr
) - objattr
->sd_len
)
808 dump_inline_security_descriptor( (const struct security_descriptor
*)(objattr
+ 1), objattr
->sd_len
);
809 str
= (const WCHAR
*)objattr
+ (sizeof(*objattr
) + objattr
->sd_len
) / sizeof(WCHAR
);
810 fprintf( stderr
, ",name=L\"" );
811 dump_strW( str
, objattr
->name_len
/ sizeof(WCHAR
), stderr
, "\"\"" );
812 fputc( '\"', stderr
);
813 remove_data( ((sizeof(*objattr
) + objattr
->sd_len
) / sizeof(WCHAR
)) * sizeof(WCHAR
) +
816 fputc( '}', stderr
);
819 typedef void (*dump_func
)( const void *req
);
821 /* Everything below this line is generated automatically by tools/make_requests */
822 /* ### make_requests begin ### */
824 static void dump_new_process_request( const struct new_process_request
*req
)
826 fprintf( stderr
, " inherit_all=%d,", req
->inherit_all
);
827 fprintf( stderr
, " create_flags=%08x,", req
->create_flags
);
828 fprintf( stderr
, " socket_fd=%d,", req
->socket_fd
);
829 fprintf( stderr
, " exe_file=%p,", req
->exe_file
);
830 fprintf( stderr
, " hstdin=%p,", req
->hstdin
);
831 fprintf( stderr
, " hstdout=%p,", req
->hstdout
);
832 fprintf( stderr
, " hstderr=%p,", req
->hstderr
);
833 fprintf( stderr
, " process_access=%08x,", req
->process_access
);
834 fprintf( stderr
, " process_attr=%08x,", req
->process_attr
);
835 fprintf( stderr
, " thread_access=%08x,", req
->thread_access
);
836 fprintf( stderr
, " thread_attr=%08x,", req
->thread_attr
);
837 fprintf( stderr
, " info=" );
838 dump_varargs_startup_info( cur_size
);
839 fputc( ',', stderr
);
840 fprintf( stderr
, " env=" );
841 dump_varargs_unicode_str( cur_size
);
844 static void dump_new_process_reply( const struct new_process_reply
*req
)
846 fprintf( stderr
, " info=%p,", req
->info
);
847 fprintf( stderr
, " pid=%04x,", req
->pid
);
848 fprintf( stderr
, " phandle=%p,", req
->phandle
);
849 fprintf( stderr
, " tid=%04x,", req
->tid
);
850 fprintf( stderr
, " thandle=%p", req
->thandle
);
853 static void dump_get_new_process_info_request( const struct get_new_process_info_request
*req
)
855 fprintf( stderr
, " info=%p", req
->info
);
858 static void dump_get_new_process_info_reply( const struct get_new_process_info_reply
*req
)
860 fprintf( stderr
, " success=%d,", req
->success
);
861 fprintf( stderr
, " exit_code=%d", req
->exit_code
);
864 static void dump_new_thread_request( const struct new_thread_request
*req
)
866 fprintf( stderr
, " access=%08x,", req
->access
);
867 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
868 fprintf( stderr
, " suspend=%d,", req
->suspend
);
869 fprintf( stderr
, " request_fd=%d", req
->request_fd
);
872 static void dump_new_thread_reply( const struct new_thread_reply
*req
)
874 fprintf( stderr
, " tid=%04x,", req
->tid
);
875 fprintf( stderr
, " handle=%p", req
->handle
);
878 static void dump_get_startup_info_request( const struct get_startup_info_request
*req
)
882 static void dump_get_startup_info_reply( const struct get_startup_info_reply
*req
)
884 fprintf( stderr
, " exe_file=%p,", req
->exe_file
);
885 fprintf( stderr
, " hstdin=%p,", req
->hstdin
);
886 fprintf( stderr
, " hstdout=%p,", req
->hstdout
);
887 fprintf( stderr
, " hstderr=%p,", req
->hstderr
);
888 fprintf( stderr
, " info=" );
889 dump_varargs_startup_info( cur_size
);
890 fputc( ',', stderr
);
891 fprintf( stderr
, " env=" );
892 dump_varargs_unicode_str( cur_size
);
895 static void dump_init_process_done_request( const struct init_process_done_request
*req
)
897 fprintf( stderr
, " module=%p,", req
->module
);
898 fprintf( stderr
, " entry=%p,", req
->entry
);
899 fprintf( stderr
, " gui=%d", req
->gui
);
902 static void dump_init_thread_request( const struct init_thread_request
*req
)
904 fprintf( stderr
, " unix_pid=%d,", req
->unix_pid
);
905 fprintf( stderr
, " unix_tid=%d,", req
->unix_tid
);
906 fprintf( stderr
, " debug_level=%d,", req
->debug_level
);
907 fprintf( stderr
, " teb=%p,", req
->teb
);
908 fprintf( stderr
, " peb=%p,", req
->peb
);
909 fprintf( stderr
, " entry=%p,", req
->entry
);
910 fprintf( stderr
, " ldt_copy=%p,", req
->ldt_copy
);
911 fprintf( stderr
, " reply_fd=%d,", req
->reply_fd
);
912 fprintf( stderr
, " wait_fd=%d", req
->wait_fd
);
915 static void dump_init_thread_reply( const struct init_thread_reply
*req
)
917 fprintf( stderr
, " pid=%04x,", req
->pid
);
918 fprintf( stderr
, " tid=%04x,", req
->tid
);
919 fprintf( stderr
, " info_size=%u,", req
->info_size
);
920 fprintf( stderr
, " server_start=" );
921 dump_timeout( &req
->server_start
);
922 fprintf( stderr
, "," );
923 fprintf( stderr
, " version=%d", req
->version
);
926 static void dump_terminate_process_request( const struct terminate_process_request
*req
)
928 fprintf( stderr
, " handle=%p,", req
->handle
);
929 fprintf( stderr
, " exit_code=%d", req
->exit_code
);
932 static void dump_terminate_process_reply( const struct terminate_process_reply
*req
)
934 fprintf( stderr
, " self=%d", req
->self
);
937 static void dump_terminate_thread_request( const struct terminate_thread_request
*req
)
939 fprintf( stderr
, " handle=%p,", req
->handle
);
940 fprintf( stderr
, " exit_code=%d", req
->exit_code
);
943 static void dump_terminate_thread_reply( const struct terminate_thread_reply
*req
)
945 fprintf( stderr
, " self=%d,", req
->self
);
946 fprintf( stderr
, " last=%d", req
->last
);
949 static void dump_get_process_info_request( const struct get_process_info_request
*req
)
951 fprintf( stderr
, " handle=%p", req
->handle
);
954 static void dump_get_process_info_reply( const struct get_process_info_reply
*req
)
956 fprintf( stderr
, " pid=%04x,", req
->pid
);
957 fprintf( stderr
, " ppid=%04x,", req
->ppid
);
958 fprintf( stderr
, " exit_code=%d,", req
->exit_code
);
959 fprintf( stderr
, " priority=%d,", req
->priority
);
960 fprintf( stderr
, " affinity=%08x,", req
->affinity
);
961 fprintf( stderr
, " peb=%p,", req
->peb
);
962 fprintf( stderr
, " start_time=" );
963 dump_timeout( &req
->start_time
);
964 fprintf( stderr
, "," );
965 fprintf( stderr
, " end_time=" );
966 dump_timeout( &req
->end_time
);
969 static void dump_set_process_info_request( const struct set_process_info_request
*req
)
971 fprintf( stderr
, " handle=%p,", req
->handle
);
972 fprintf( stderr
, " mask=%d,", req
->mask
);
973 fprintf( stderr
, " priority=%d,", req
->priority
);
974 fprintf( stderr
, " affinity=%08x", req
->affinity
);
977 static void dump_get_thread_info_request( const struct get_thread_info_request
*req
)
979 fprintf( stderr
, " handle=%p,", req
->handle
);
980 fprintf( stderr
, " tid_in=%04x", req
->tid_in
);
983 static void dump_get_thread_info_reply( const struct get_thread_info_reply
*req
)
985 fprintf( stderr
, " pid=%04x,", req
->pid
);
986 fprintf( stderr
, " tid=%04x,", req
->tid
);
987 fprintf( stderr
, " teb=%p,", req
->teb
);
988 fprintf( stderr
, " exit_code=%d,", req
->exit_code
);
989 fprintf( stderr
, " priority=%d,", req
->priority
);
990 fprintf( stderr
, " affinity=%08x,", req
->affinity
);
991 fprintf( stderr
, " creation_time=" );
992 dump_timeout( &req
->creation_time
);
993 fprintf( stderr
, "," );
994 fprintf( stderr
, " exit_time=" );
995 dump_timeout( &req
->exit_time
);
996 fprintf( stderr
, "," );
997 fprintf( stderr
, " last=%d", req
->last
);
1000 static void dump_set_thread_info_request( const struct set_thread_info_request
*req
)
1002 fprintf( stderr
, " handle=%p,", req
->handle
);
1003 fprintf( stderr
, " mask=%d,", req
->mask
);
1004 fprintf( stderr
, " priority=%d,", req
->priority
);
1005 fprintf( stderr
, " affinity=%08x,", req
->affinity
);
1006 fprintf( stderr
, " token=%p", req
->token
);
1009 static void dump_get_dll_info_request( const struct get_dll_info_request
*req
)
1011 fprintf( stderr
, " handle=%p,", req
->handle
);
1012 fprintf( stderr
, " base_address=%p", req
->base_address
);
1015 static void dump_get_dll_info_reply( const struct get_dll_info_reply
*req
)
1017 fprintf( stderr
, " size=%lu,", (unsigned long)req
->size
);
1018 fprintf( stderr
, " entry_point=%p,", req
->entry_point
);
1019 fprintf( stderr
, " filename_len=%u,", req
->filename_len
);
1020 fprintf( stderr
, " filename=" );
1021 dump_varargs_unicode_str( cur_size
);
1024 static void dump_suspend_thread_request( const struct suspend_thread_request
*req
)
1026 fprintf( stderr
, " handle=%p", req
->handle
);
1029 static void dump_suspend_thread_reply( const struct suspend_thread_reply
*req
)
1031 fprintf( stderr
, " count=%d", req
->count
);
1034 static void dump_resume_thread_request( const struct resume_thread_request
*req
)
1036 fprintf( stderr
, " handle=%p", req
->handle
);
1039 static void dump_resume_thread_reply( const struct resume_thread_reply
*req
)
1041 fprintf( stderr
, " count=%d", req
->count
);
1044 static void dump_load_dll_request( const struct load_dll_request
*req
)
1046 fprintf( stderr
, " handle=%p,", req
->handle
);
1047 fprintf( stderr
, " base=%p,", req
->base
);
1048 fprintf( stderr
, " size=%lu,", (unsigned long)req
->size
);
1049 fprintf( stderr
, " dbg_offset=%d,", req
->dbg_offset
);
1050 fprintf( stderr
, " dbg_size=%d,", req
->dbg_size
);
1051 fprintf( stderr
, " name=%p,", req
->name
);
1052 fprintf( stderr
, " filename=" );
1053 dump_varargs_unicode_str( cur_size
);
1056 static void dump_unload_dll_request( const struct unload_dll_request
*req
)
1058 fprintf( stderr
, " base=%p", req
->base
);
1061 static void dump_queue_apc_request( const struct queue_apc_request
*req
)
1063 fprintf( stderr
, " thread=%p,", req
->thread
);
1064 fprintf( stderr
, " process=%p,", req
->process
);
1065 fprintf( stderr
, " call=" );
1066 dump_apc_call( &req
->call
);
1069 static void dump_queue_apc_reply( const struct queue_apc_reply
*req
)
1071 fprintf( stderr
, " handle=%p,", req
->handle
);
1072 fprintf( stderr
, " self=%d", req
->self
);
1075 static void dump_get_apc_result_request( const struct get_apc_result_request
*req
)
1077 fprintf( stderr
, " handle=%p", req
->handle
);
1080 static void dump_get_apc_result_reply( const struct get_apc_result_reply
*req
)
1082 fprintf( stderr
, " result=" );
1083 dump_apc_result( &req
->result
);
1086 static void dump_close_handle_request( const struct close_handle_request
*req
)
1088 fprintf( stderr
, " handle=%p", req
->handle
);
1091 static void dump_set_handle_info_request( const struct set_handle_info_request
*req
)
1093 fprintf( stderr
, " handle=%p,", req
->handle
);
1094 fprintf( stderr
, " flags=%d,", req
->flags
);
1095 fprintf( stderr
, " mask=%d", req
->mask
);
1098 static void dump_set_handle_info_reply( const struct set_handle_info_reply
*req
)
1100 fprintf( stderr
, " old_flags=%d", req
->old_flags
);
1103 static void dump_dup_handle_request( const struct dup_handle_request
*req
)
1105 fprintf( stderr
, " src_process=%p,", req
->src_process
);
1106 fprintf( stderr
, " src_handle=%p,", req
->src_handle
);
1107 fprintf( stderr
, " dst_process=%p,", req
->dst_process
);
1108 fprintf( stderr
, " access=%08x,", req
->access
);
1109 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1110 fprintf( stderr
, " options=%08x", req
->options
);
1113 static void dump_dup_handle_reply( const struct dup_handle_reply
*req
)
1115 fprintf( stderr
, " handle=%p,", req
->handle
);
1116 fprintf( stderr
, " self=%d,", req
->self
);
1117 fprintf( stderr
, " closed=%d", req
->closed
);
1120 static void dump_open_process_request( const struct open_process_request
*req
)
1122 fprintf( stderr
, " pid=%04x,", req
->pid
);
1123 fprintf( stderr
, " access=%08x,", req
->access
);
1124 fprintf( stderr
, " attributes=%08x", req
->attributes
);
1127 static void dump_open_process_reply( const struct open_process_reply
*req
)
1129 fprintf( stderr
, " handle=%p", req
->handle
);
1132 static void dump_open_thread_request( const struct open_thread_request
*req
)
1134 fprintf( stderr
, " tid=%04x,", req
->tid
);
1135 fprintf( stderr
, " access=%08x,", req
->access
);
1136 fprintf( stderr
, " attributes=%08x", req
->attributes
);
1139 static void dump_open_thread_reply( const struct open_thread_reply
*req
)
1141 fprintf( stderr
, " handle=%p", req
->handle
);
1144 static void dump_select_request( const struct select_request
*req
)
1146 fprintf( stderr
, " flags=%d,", req
->flags
);
1147 fprintf( stderr
, " cookie=%p,", req
->cookie
);
1148 fprintf( stderr
, " signal=%p,", req
->signal
);
1149 fprintf( stderr
, " prev_apc=%p,", req
->prev_apc
);
1150 fprintf( stderr
, " timeout=" );
1151 dump_timeout( &req
->timeout
);
1152 fprintf( stderr
, "," );
1153 fprintf( stderr
, " result=" );
1154 dump_varargs_apc_result( cur_size
);
1155 fputc( ',', stderr
);
1156 fprintf( stderr
, " handles=" );
1157 dump_varargs_handles( cur_size
);
1160 static void dump_select_reply( const struct select_reply
*req
)
1162 fprintf( stderr
, " apc_handle=%p,", req
->apc_handle
);
1163 fprintf( stderr
, " timeout=" );
1164 dump_timeout( &req
->timeout
);
1165 fprintf( stderr
, "," );
1166 fprintf( stderr
, " call=" );
1167 dump_apc_call( &req
->call
);
1170 static void dump_create_event_request( const struct create_event_request
*req
)
1172 fprintf( stderr
, " access=%08x,", req
->access
);
1173 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1174 fprintf( stderr
, " manual_reset=%d,", req
->manual_reset
);
1175 fprintf( stderr
, " initial_state=%d,", req
->initial_state
);
1176 fprintf( stderr
, " objattr=" );
1177 dump_varargs_object_attributes( cur_size
);
1180 static void dump_create_event_reply( const struct create_event_reply
*req
)
1182 fprintf( stderr
, " handle=%p", req
->handle
);
1185 static void dump_event_op_request( const struct event_op_request
*req
)
1187 fprintf( stderr
, " handle=%p,", req
->handle
);
1188 fprintf( stderr
, " op=%d", req
->op
);
1191 static void dump_open_event_request( const struct open_event_request
*req
)
1193 fprintf( stderr
, " access=%08x,", req
->access
);
1194 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1195 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
1196 fprintf( stderr
, " name=" );
1197 dump_varargs_unicode_str( cur_size
);
1200 static void dump_open_event_reply( const struct open_event_reply
*req
)
1202 fprintf( stderr
, " handle=%p", req
->handle
);
1205 static void dump_create_mutex_request( const struct create_mutex_request
*req
)
1207 fprintf( stderr
, " access=%08x,", req
->access
);
1208 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1209 fprintf( stderr
, " owned=%d,", req
->owned
);
1210 fprintf( stderr
, " objattr=" );
1211 dump_varargs_object_attributes( cur_size
);
1214 static void dump_create_mutex_reply( const struct create_mutex_reply
*req
)
1216 fprintf( stderr
, " handle=%p", req
->handle
);
1219 static void dump_release_mutex_request( const struct release_mutex_request
*req
)
1221 fprintf( stderr
, " handle=%p", req
->handle
);
1224 static void dump_release_mutex_reply( const struct release_mutex_reply
*req
)
1226 fprintf( stderr
, " prev_count=%08x", req
->prev_count
);
1229 static void dump_open_mutex_request( const struct open_mutex_request
*req
)
1231 fprintf( stderr
, " access=%08x,", req
->access
);
1232 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1233 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
1234 fprintf( stderr
, " name=" );
1235 dump_varargs_unicode_str( cur_size
);
1238 static void dump_open_mutex_reply( const struct open_mutex_reply
*req
)
1240 fprintf( stderr
, " handle=%p", req
->handle
);
1243 static void dump_create_semaphore_request( const struct create_semaphore_request
*req
)
1245 fprintf( stderr
, " access=%08x,", req
->access
);
1246 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1247 fprintf( stderr
, " initial=%08x,", req
->initial
);
1248 fprintf( stderr
, " max=%08x,", req
->max
);
1249 fprintf( stderr
, " objattr=" );
1250 dump_varargs_object_attributes( cur_size
);
1253 static void dump_create_semaphore_reply( const struct create_semaphore_reply
*req
)
1255 fprintf( stderr
, " handle=%p", req
->handle
);
1258 static void dump_release_semaphore_request( const struct release_semaphore_request
*req
)
1260 fprintf( stderr
, " handle=%p,", req
->handle
);
1261 fprintf( stderr
, " count=%08x", req
->count
);
1264 static void dump_release_semaphore_reply( const struct release_semaphore_reply
*req
)
1266 fprintf( stderr
, " prev_count=%08x", req
->prev_count
);
1269 static void dump_open_semaphore_request( const struct open_semaphore_request
*req
)
1271 fprintf( stderr
, " access=%08x,", req
->access
);
1272 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1273 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
1274 fprintf( stderr
, " name=" );
1275 dump_varargs_unicode_str( cur_size
);
1278 static void dump_open_semaphore_reply( const struct open_semaphore_reply
*req
)
1280 fprintf( stderr
, " handle=%p", req
->handle
);
1283 static void dump_create_file_request( const struct create_file_request
*req
)
1285 fprintf( stderr
, " access=%08x,", req
->access
);
1286 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1287 fprintf( stderr
, " sharing=%08x,", req
->sharing
);
1288 fprintf( stderr
, " create=%d,", req
->create
);
1289 fprintf( stderr
, " options=%08x,", req
->options
);
1290 fprintf( stderr
, " attrs=%08x,", req
->attrs
);
1291 fprintf( stderr
, " objattr=" );
1292 dump_varargs_object_attributes( cur_size
);
1293 fputc( ',', stderr
);
1294 fprintf( stderr
, " filename=" );
1295 dump_varargs_string( cur_size
);
1298 static void dump_create_file_reply( const struct create_file_reply
*req
)
1300 fprintf( stderr
, " handle=%p", req
->handle
);
1303 static void dump_open_file_object_request( const struct open_file_object_request
*req
)
1305 fprintf( stderr
, " access=%08x,", req
->access
);
1306 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1307 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
1308 fprintf( stderr
, " sharing=%08x,", req
->sharing
);
1309 fprintf( stderr
, " options=%08x,", req
->options
);
1310 fprintf( stderr
, " filename=" );
1311 dump_varargs_unicode_str( cur_size
);
1314 static void dump_open_file_object_reply( const struct open_file_object_reply
*req
)
1316 fprintf( stderr
, " handle=%p", req
->handle
);
1319 static void dump_alloc_file_handle_request( const struct alloc_file_handle_request
*req
)
1321 fprintf( stderr
, " access=%08x,", req
->access
);
1322 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1323 fprintf( stderr
, " fd=%d", req
->fd
);
1326 static void dump_alloc_file_handle_reply( const struct alloc_file_handle_reply
*req
)
1328 fprintf( stderr
, " handle=%p", req
->handle
);
1331 static void dump_get_handle_fd_request( const struct get_handle_fd_request
*req
)
1333 fprintf( stderr
, " handle=%p", req
->handle
);
1336 static void dump_get_handle_fd_reply( const struct get_handle_fd_reply
*req
)
1338 fprintf( stderr
, " type=%d,", req
->type
);
1339 fprintf( stderr
, " removable=%d,", req
->removable
);
1340 fprintf( stderr
, " access=%08x,", req
->access
);
1341 fprintf( stderr
, " options=%08x", req
->options
);
1344 static void dump_flush_file_request( const struct flush_file_request
*req
)
1346 fprintf( stderr
, " handle=%p", req
->handle
);
1349 static void dump_flush_file_reply( const struct flush_file_reply
*req
)
1351 fprintf( stderr
, " event=%p", req
->event
);
1354 static void dump_lock_file_request( const struct lock_file_request
*req
)
1356 fprintf( stderr
, " handle=%p,", req
->handle
);
1357 fprintf( stderr
, " offset=" );
1358 dump_file_pos( &req
->offset
);
1359 fprintf( stderr
, "," );
1360 fprintf( stderr
, " count=" );
1361 dump_file_pos( &req
->count
);
1362 fprintf( stderr
, "," );
1363 fprintf( stderr
, " shared=%d,", req
->shared
);
1364 fprintf( stderr
, " wait=%d", req
->wait
);
1367 static void dump_lock_file_reply( const struct lock_file_reply
*req
)
1369 fprintf( stderr
, " handle=%p,", req
->handle
);
1370 fprintf( stderr
, " overlapped=%d", req
->overlapped
);
1373 static void dump_unlock_file_request( const struct unlock_file_request
*req
)
1375 fprintf( stderr
, " handle=%p,", req
->handle
);
1376 fprintf( stderr
, " offset=" );
1377 dump_file_pos( &req
->offset
);
1378 fprintf( stderr
, "," );
1379 fprintf( stderr
, " count=" );
1380 dump_file_pos( &req
->count
);
1383 static void dump_create_socket_request( const struct create_socket_request
*req
)
1385 fprintf( stderr
, " access=%08x,", req
->access
);
1386 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1387 fprintf( stderr
, " family=%d,", req
->family
);
1388 fprintf( stderr
, " type=%d,", req
->type
);
1389 fprintf( stderr
, " protocol=%d,", req
->protocol
);
1390 fprintf( stderr
, " flags=%08x", req
->flags
);
1393 static void dump_create_socket_reply( const struct create_socket_reply
*req
)
1395 fprintf( stderr
, " handle=%p", req
->handle
);
1398 static void dump_accept_socket_request( const struct accept_socket_request
*req
)
1400 fprintf( stderr
, " lhandle=%p,", req
->lhandle
);
1401 fprintf( stderr
, " ahandle=%p,", req
->ahandle
);
1402 fprintf( stderr
, " access=%08x,", req
->access
);
1403 fprintf( stderr
, " attributes=%08x", req
->attributes
);
1406 static void dump_accept_socket_reply( const struct accept_socket_reply
*req
)
1408 fprintf( stderr
, " handle=%p", req
->handle
);
1411 static void dump_set_socket_event_request( const struct set_socket_event_request
*req
)
1413 fprintf( stderr
, " handle=%p,", req
->handle
);
1414 fprintf( stderr
, " mask=%08x,", req
->mask
);
1415 fprintf( stderr
, " event=%p,", req
->event
);
1416 fprintf( stderr
, " window=%p,", req
->window
);
1417 fprintf( stderr
, " msg=%08x", req
->msg
);
1420 static void dump_get_socket_event_request( const struct get_socket_event_request
*req
)
1422 fprintf( stderr
, " handle=%p,", req
->handle
);
1423 fprintf( stderr
, " service=%d,", req
->service
);
1424 fprintf( stderr
, " c_event=%p", req
->c_event
);
1427 static void dump_get_socket_event_reply( const struct get_socket_event_reply
*req
)
1429 fprintf( stderr
, " mask=%08x,", req
->mask
);
1430 fprintf( stderr
, " pmask=%08x,", req
->pmask
);
1431 fprintf( stderr
, " state=%08x,", req
->state
);
1432 fprintf( stderr
, " errors=" );
1433 dump_varargs_ints( cur_size
);
1436 static void dump_enable_socket_event_request( const struct enable_socket_event_request
*req
)
1438 fprintf( stderr
, " handle=%p,", req
->handle
);
1439 fprintf( stderr
, " mask=%08x,", req
->mask
);
1440 fprintf( stderr
, " sstate=%08x,", req
->sstate
);
1441 fprintf( stderr
, " cstate=%08x", req
->cstate
);
1444 static void dump_set_socket_deferred_request( const struct set_socket_deferred_request
*req
)
1446 fprintf( stderr
, " handle=%p,", req
->handle
);
1447 fprintf( stderr
, " deferred=%p", req
->deferred
);
1450 static void dump_alloc_console_request( const struct alloc_console_request
*req
)
1452 fprintf( stderr
, " access=%08x,", req
->access
);
1453 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1454 fprintf( stderr
, " pid=%04x", req
->pid
);
1457 static void dump_alloc_console_reply( const struct alloc_console_reply
*req
)
1459 fprintf( stderr
, " handle_in=%p,", req
->handle_in
);
1460 fprintf( stderr
, " event=%p", req
->event
);
1463 static void dump_free_console_request( const struct free_console_request
*req
)
1467 static void dump_get_console_renderer_events_request( const struct get_console_renderer_events_request
*req
)
1469 fprintf( stderr
, " handle=%p", req
->handle
);
1472 static void dump_get_console_renderer_events_reply( const struct get_console_renderer_events_reply
*req
)
1474 fprintf( stderr
, " data=" );
1475 dump_varargs_bytes( cur_size
);
1478 static void dump_open_console_request( const struct open_console_request
*req
)
1480 fprintf( stderr
, " from=%p,", req
->from
);
1481 fprintf( stderr
, " access=%08x,", req
->access
);
1482 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1483 fprintf( stderr
, " share=%d", req
->share
);
1486 static void dump_open_console_reply( const struct open_console_reply
*req
)
1488 fprintf( stderr
, " handle=%p", req
->handle
);
1491 static void dump_get_console_wait_event_request( const struct get_console_wait_event_request
*req
)
1495 static void dump_get_console_wait_event_reply( const struct get_console_wait_event_reply
*req
)
1497 fprintf( stderr
, " handle=%p", req
->handle
);
1500 static void dump_get_console_mode_request( const struct get_console_mode_request
*req
)
1502 fprintf( stderr
, " handle=%p", req
->handle
);
1505 static void dump_get_console_mode_reply( const struct get_console_mode_reply
*req
)
1507 fprintf( stderr
, " mode=%d", req
->mode
);
1510 static void dump_set_console_mode_request( const struct set_console_mode_request
*req
)
1512 fprintf( stderr
, " handle=%p,", req
->handle
);
1513 fprintf( stderr
, " mode=%d", req
->mode
);
1516 static void dump_set_console_input_info_request( const struct set_console_input_info_request
*req
)
1518 fprintf( stderr
, " handle=%p,", req
->handle
);
1519 fprintf( stderr
, " mask=%d,", req
->mask
);
1520 fprintf( stderr
, " active_sb=%p,", req
->active_sb
);
1521 fprintf( stderr
, " history_mode=%d,", req
->history_mode
);
1522 fprintf( stderr
, " history_size=%d,", req
->history_size
);
1523 fprintf( stderr
, " edition_mode=%d,", req
->edition_mode
);
1524 fprintf( stderr
, " input_cp=%d,", req
->input_cp
);
1525 fprintf( stderr
, " output_cp=%d,", req
->output_cp
);
1526 fprintf( stderr
, " win=%p,", req
->win
);
1527 fprintf( stderr
, " title=" );
1528 dump_varargs_unicode_str( cur_size
);
1531 static void dump_get_console_input_info_request( const struct get_console_input_info_request
*req
)
1533 fprintf( stderr
, " handle=%p", req
->handle
);
1536 static void dump_get_console_input_info_reply( const struct get_console_input_info_reply
*req
)
1538 fprintf( stderr
, " history_mode=%d,", req
->history_mode
);
1539 fprintf( stderr
, " history_size=%d,", req
->history_size
);
1540 fprintf( stderr
, " history_index=%d,", req
->history_index
);
1541 fprintf( stderr
, " edition_mode=%d,", req
->edition_mode
);
1542 fprintf( stderr
, " input_cp=%d,", req
->input_cp
);
1543 fprintf( stderr
, " output_cp=%d,", req
->output_cp
);
1544 fprintf( stderr
, " win=%p,", req
->win
);
1545 fprintf( stderr
, " title=" );
1546 dump_varargs_unicode_str( cur_size
);
1549 static void dump_append_console_input_history_request( const struct append_console_input_history_request
*req
)
1551 fprintf( stderr
, " handle=%p,", req
->handle
);
1552 fprintf( stderr
, " line=" );
1553 dump_varargs_unicode_str( cur_size
);
1556 static void dump_get_console_input_history_request( const struct get_console_input_history_request
*req
)
1558 fprintf( stderr
, " handle=%p,", req
->handle
);
1559 fprintf( stderr
, " index=%d", req
->index
);
1562 static void dump_get_console_input_history_reply( const struct get_console_input_history_reply
*req
)
1564 fprintf( stderr
, " total=%d,", req
->total
);
1565 fprintf( stderr
, " line=" );
1566 dump_varargs_unicode_str( cur_size
);
1569 static void dump_create_console_output_request( const struct create_console_output_request
*req
)
1571 fprintf( stderr
, " handle_in=%p,", req
->handle_in
);
1572 fprintf( stderr
, " access=%08x,", req
->access
);
1573 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1574 fprintf( stderr
, " share=%08x", req
->share
);
1577 static void dump_create_console_output_reply( const struct create_console_output_reply
*req
)
1579 fprintf( stderr
, " handle_out=%p", req
->handle_out
);
1582 static void dump_set_console_output_info_request( const struct set_console_output_info_request
*req
)
1584 fprintf( stderr
, " handle=%p,", req
->handle
);
1585 fprintf( stderr
, " mask=%d,", req
->mask
);
1586 fprintf( stderr
, " cursor_size=%d,", req
->cursor_size
);
1587 fprintf( stderr
, " cursor_visible=%d,", req
->cursor_visible
);
1588 fprintf( stderr
, " cursor_x=%d,", req
->cursor_x
);
1589 fprintf( stderr
, " cursor_y=%d,", req
->cursor_y
);
1590 fprintf( stderr
, " width=%d,", req
->width
);
1591 fprintf( stderr
, " height=%d,", req
->height
);
1592 fprintf( stderr
, " attr=%d,", req
->attr
);
1593 fprintf( stderr
, " win_left=%d,", req
->win_left
);
1594 fprintf( stderr
, " win_top=%d,", req
->win_top
);
1595 fprintf( stderr
, " win_right=%d,", req
->win_right
);
1596 fprintf( stderr
, " win_bottom=%d,", req
->win_bottom
);
1597 fprintf( stderr
, " max_width=%d,", req
->max_width
);
1598 fprintf( stderr
, " max_height=%d", req
->max_height
);
1601 static void dump_get_console_output_info_request( const struct get_console_output_info_request
*req
)
1603 fprintf( stderr
, " handle=%p", req
->handle
);
1606 static void dump_get_console_output_info_reply( const struct get_console_output_info_reply
*req
)
1608 fprintf( stderr
, " cursor_size=%d,", req
->cursor_size
);
1609 fprintf( stderr
, " cursor_visible=%d,", req
->cursor_visible
);
1610 fprintf( stderr
, " cursor_x=%d,", req
->cursor_x
);
1611 fprintf( stderr
, " cursor_y=%d,", req
->cursor_y
);
1612 fprintf( stderr
, " width=%d,", req
->width
);
1613 fprintf( stderr
, " height=%d,", req
->height
);
1614 fprintf( stderr
, " attr=%d,", req
->attr
);
1615 fprintf( stderr
, " win_left=%d,", req
->win_left
);
1616 fprintf( stderr
, " win_top=%d,", req
->win_top
);
1617 fprintf( stderr
, " win_right=%d,", req
->win_right
);
1618 fprintf( stderr
, " win_bottom=%d,", req
->win_bottom
);
1619 fprintf( stderr
, " max_width=%d,", req
->max_width
);
1620 fprintf( stderr
, " max_height=%d", req
->max_height
);
1623 static void dump_write_console_input_request( const struct write_console_input_request
*req
)
1625 fprintf( stderr
, " handle=%p,", req
->handle
);
1626 fprintf( stderr
, " rec=" );
1627 dump_varargs_input_records( cur_size
);
1630 static void dump_write_console_input_reply( const struct write_console_input_reply
*req
)
1632 fprintf( stderr
, " written=%d", req
->written
);
1635 static void dump_read_console_input_request( const struct read_console_input_request
*req
)
1637 fprintf( stderr
, " handle=%p,", req
->handle
);
1638 fprintf( stderr
, " flush=%d", req
->flush
);
1641 static void dump_read_console_input_reply( const struct read_console_input_reply
*req
)
1643 fprintf( stderr
, " read=%d,", req
->read
);
1644 fprintf( stderr
, " rec=" );
1645 dump_varargs_input_records( cur_size
);
1648 static void dump_write_console_output_request( const struct write_console_output_request
*req
)
1650 fprintf( stderr
, " handle=%p,", req
->handle
);
1651 fprintf( stderr
, " x=%d,", req
->x
);
1652 fprintf( stderr
, " y=%d,", req
->y
);
1653 fprintf( stderr
, " mode=%d,", req
->mode
);
1654 fprintf( stderr
, " wrap=%d,", req
->wrap
);
1655 fprintf( stderr
, " data=" );
1656 dump_varargs_bytes( cur_size
);
1659 static void dump_write_console_output_reply( const struct write_console_output_reply
*req
)
1661 fprintf( stderr
, " written=%d,", req
->written
);
1662 fprintf( stderr
, " width=%d,", req
->width
);
1663 fprintf( stderr
, " height=%d", req
->height
);
1666 static void dump_fill_console_output_request( const struct fill_console_output_request
*req
)
1668 fprintf( stderr
, " handle=%p,", req
->handle
);
1669 fprintf( stderr
, " x=%d,", req
->x
);
1670 fprintf( stderr
, " y=%d,", req
->y
);
1671 fprintf( stderr
, " mode=%d,", req
->mode
);
1672 fprintf( stderr
, " count=%d,", req
->count
);
1673 fprintf( stderr
, " wrap=%d,", req
->wrap
);
1674 fprintf( stderr
, " data=" );
1675 dump_char_info( &req
->data
);
1678 static void dump_fill_console_output_reply( const struct fill_console_output_reply
*req
)
1680 fprintf( stderr
, " written=%d", req
->written
);
1683 static void dump_read_console_output_request( const struct read_console_output_request
*req
)
1685 fprintf( stderr
, " handle=%p,", req
->handle
);
1686 fprintf( stderr
, " x=%d,", req
->x
);
1687 fprintf( stderr
, " y=%d,", req
->y
);
1688 fprintf( stderr
, " mode=%d,", req
->mode
);
1689 fprintf( stderr
, " wrap=%d", req
->wrap
);
1692 static void dump_read_console_output_reply( const struct read_console_output_reply
*req
)
1694 fprintf( stderr
, " width=%d,", req
->width
);
1695 fprintf( stderr
, " height=%d,", req
->height
);
1696 fprintf( stderr
, " data=" );
1697 dump_varargs_bytes( cur_size
);
1700 static void dump_move_console_output_request( const struct move_console_output_request
*req
)
1702 fprintf( stderr
, " handle=%p,", req
->handle
);
1703 fprintf( stderr
, " x_src=%d,", req
->x_src
);
1704 fprintf( stderr
, " y_src=%d,", req
->y_src
);
1705 fprintf( stderr
, " x_dst=%d,", req
->x_dst
);
1706 fprintf( stderr
, " y_dst=%d,", req
->y_dst
);
1707 fprintf( stderr
, " w=%d,", req
->w
);
1708 fprintf( stderr
, " h=%d", req
->h
);
1711 static void dump_send_console_signal_request( const struct send_console_signal_request
*req
)
1713 fprintf( stderr
, " signal=%d,", req
->signal
);
1714 fprintf( stderr
, " group_id=%04x", req
->group_id
);
1717 static void dump_read_directory_changes_request( const struct read_directory_changes_request
*req
)
1719 fprintf( stderr
, " filter=%08x,", req
->filter
);
1720 fprintf( stderr
, " handle=%p,", req
->handle
);
1721 fprintf( stderr
, " subtree=%d,", req
->subtree
);
1722 fprintf( stderr
, " want_data=%d,", req
->want_data
);
1723 fprintf( stderr
, " async=" );
1724 dump_async_data( &req
->async
);
1727 static void dump_read_change_request( const struct read_change_request
*req
)
1729 fprintf( stderr
, " handle=%p", req
->handle
);
1732 static void dump_read_change_reply( const struct read_change_reply
*req
)
1734 fprintf( stderr
, " action=%d,", req
->action
);
1735 fprintf( stderr
, " name=" );
1736 dump_varargs_string( cur_size
);
1739 static void dump_create_mapping_request( const struct create_mapping_request
*req
)
1741 fprintf( stderr
, " access=%08x,", req
->access
);
1742 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1743 fprintf( stderr
, " size=" );
1744 dump_file_pos( &req
->size
);
1745 fprintf( stderr
, "," );
1746 fprintf( stderr
, " protect=%d,", req
->protect
);
1747 fprintf( stderr
, " file_handle=%p,", req
->file_handle
);
1748 fprintf( stderr
, " objattr=" );
1749 dump_varargs_object_attributes( cur_size
);
1752 static void dump_create_mapping_reply( const struct create_mapping_reply
*req
)
1754 fprintf( stderr
, " handle=%p", req
->handle
);
1757 static void dump_open_mapping_request( const struct open_mapping_request
*req
)
1759 fprintf( stderr
, " access=%08x,", req
->access
);
1760 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1761 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
1762 fprintf( stderr
, " name=" );
1763 dump_varargs_unicode_str( cur_size
);
1766 static void dump_open_mapping_reply( const struct open_mapping_reply
*req
)
1768 fprintf( stderr
, " handle=%p", req
->handle
);
1771 static void dump_get_mapping_info_request( const struct get_mapping_info_request
*req
)
1773 fprintf( stderr
, " handle=%p", req
->handle
);
1776 static void dump_get_mapping_info_reply( const struct get_mapping_info_reply
*req
)
1778 fprintf( stderr
, " size=" );
1779 dump_file_pos( &req
->size
);
1780 fprintf( stderr
, "," );
1781 fprintf( stderr
, " protect=%d,", req
->protect
);
1782 fprintf( stderr
, " header_size=%d,", req
->header_size
);
1783 fprintf( stderr
, " base=%p,", req
->base
);
1784 fprintf( stderr
, " mapping=%p,", req
->mapping
);
1785 fprintf( stderr
, " shared_file=%p", req
->shared_file
);
1788 static void dump_create_snapshot_request( const struct create_snapshot_request
*req
)
1790 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1791 fprintf( stderr
, " flags=%d,", req
->flags
);
1792 fprintf( stderr
, " pid=%04x", req
->pid
);
1795 static void dump_create_snapshot_reply( const struct create_snapshot_reply
*req
)
1797 fprintf( stderr
, " handle=%p", req
->handle
);
1800 static void dump_next_process_request( const struct next_process_request
*req
)
1802 fprintf( stderr
, " handle=%p,", req
->handle
);
1803 fprintf( stderr
, " reset=%d", req
->reset
);
1806 static void dump_next_process_reply( const struct next_process_reply
*req
)
1808 fprintf( stderr
, " count=%d,", req
->count
);
1809 fprintf( stderr
, " pid=%04x,", req
->pid
);
1810 fprintf( stderr
, " ppid=%04x,", req
->ppid
);
1811 fprintf( stderr
, " heap=%p,", req
->heap
);
1812 fprintf( stderr
, " module=%p,", req
->module
);
1813 fprintf( stderr
, " threads=%d,", req
->threads
);
1814 fprintf( stderr
, " priority=%d,", req
->priority
);
1815 fprintf( stderr
, " handles=%d,", req
->handles
);
1816 fprintf( stderr
, " filename=" );
1817 dump_varargs_unicode_str( cur_size
);
1820 static void dump_next_thread_request( const struct next_thread_request
*req
)
1822 fprintf( stderr
, " handle=%p,", req
->handle
);
1823 fprintf( stderr
, " reset=%d", req
->reset
);
1826 static void dump_next_thread_reply( const struct next_thread_reply
*req
)
1828 fprintf( stderr
, " count=%d,", req
->count
);
1829 fprintf( stderr
, " pid=%04x,", req
->pid
);
1830 fprintf( stderr
, " tid=%04x,", req
->tid
);
1831 fprintf( stderr
, " base_pri=%d,", req
->base_pri
);
1832 fprintf( stderr
, " delta_pri=%d", req
->delta_pri
);
1835 static void dump_next_module_request( const struct next_module_request
*req
)
1837 fprintf( stderr
, " handle=%p,", req
->handle
);
1838 fprintf( stderr
, " reset=%d", req
->reset
);
1841 static void dump_next_module_reply( const struct next_module_reply
*req
)
1843 fprintf( stderr
, " pid=%04x,", req
->pid
);
1844 fprintf( stderr
, " base=%p,", req
->base
);
1845 fprintf( stderr
, " size=%lu,", (unsigned long)req
->size
);
1846 fprintf( stderr
, " filename=" );
1847 dump_varargs_unicode_str( cur_size
);
1850 static void dump_wait_debug_event_request( const struct wait_debug_event_request
*req
)
1852 fprintf( stderr
, " get_handle=%d", req
->get_handle
);
1855 static void dump_wait_debug_event_reply( const struct wait_debug_event_reply
*req
)
1857 fprintf( stderr
, " pid=%04x,", req
->pid
);
1858 fprintf( stderr
, " tid=%04x,", req
->tid
);
1859 fprintf( stderr
, " wait=%p,", req
->wait
);
1860 fprintf( stderr
, " event=" );
1861 dump_varargs_debug_event( cur_size
);
1864 static void dump_queue_exception_event_request( const struct queue_exception_event_request
*req
)
1866 fprintf( stderr
, " first=%d,", req
->first
);
1867 fprintf( stderr
, " record=" );
1868 dump_varargs_exc_event( cur_size
);
1871 static void dump_queue_exception_event_reply( const struct queue_exception_event_reply
*req
)
1873 fprintf( stderr
, " handle=%p", req
->handle
);
1876 static void dump_get_exception_status_request( const struct get_exception_status_request
*req
)
1878 fprintf( stderr
, " handle=%p", req
->handle
);
1881 static void dump_get_exception_status_reply( const struct get_exception_status_reply
*req
)
1883 fprintf( stderr
, " context=" );
1884 dump_varargs_context( cur_size
);
1887 static void dump_output_debug_string_request( const struct output_debug_string_request
*req
)
1889 fprintf( stderr
, " string=%p,", req
->string
);
1890 fprintf( stderr
, " unicode=%d,", req
->unicode
);
1891 fprintf( stderr
, " length=%d", req
->length
);
1894 static void dump_continue_debug_event_request( const struct continue_debug_event_request
*req
)
1896 fprintf( stderr
, " pid=%04x,", req
->pid
);
1897 fprintf( stderr
, " tid=%04x,", req
->tid
);
1898 fprintf( stderr
, " status=%d", req
->status
);
1901 static void dump_debug_process_request( const struct debug_process_request
*req
)
1903 fprintf( stderr
, " pid=%04x,", req
->pid
);
1904 fprintf( stderr
, " attach=%d", req
->attach
);
1907 static void dump_debug_break_request( const struct debug_break_request
*req
)
1909 fprintf( stderr
, " handle=%p", req
->handle
);
1912 static void dump_debug_break_reply( const struct debug_break_reply
*req
)
1914 fprintf( stderr
, " self=%d", req
->self
);
1917 static void dump_set_debugger_kill_on_exit_request( const struct set_debugger_kill_on_exit_request
*req
)
1919 fprintf( stderr
, " kill_on_exit=%d", req
->kill_on_exit
);
1922 static void dump_read_process_memory_request( const struct read_process_memory_request
*req
)
1924 fprintf( stderr
, " handle=%p,", req
->handle
);
1925 fprintf( stderr
, " addr=%p", req
->addr
);
1928 static void dump_read_process_memory_reply( const struct read_process_memory_reply
*req
)
1930 fprintf( stderr
, " data=" );
1931 dump_varargs_bytes( cur_size
);
1934 static void dump_write_process_memory_request( const struct write_process_memory_request
*req
)
1936 fprintf( stderr
, " handle=%p,", req
->handle
);
1937 fprintf( stderr
, " addr=%p,", req
->addr
);
1938 fprintf( stderr
, " data=" );
1939 dump_varargs_bytes( cur_size
);
1942 static void dump_create_key_request( const struct create_key_request
*req
)
1944 fprintf( stderr
, " parent=%p,", req
->parent
);
1945 fprintf( stderr
, " access=%08x,", req
->access
);
1946 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1947 fprintf( stderr
, " options=%08x,", req
->options
);
1948 fprintf( stderr
, " modif=%ld,", (long)req
->modif
);
1949 fprintf( stderr
, " namelen=%u,", req
->namelen
);
1950 fprintf( stderr
, " name=" );
1951 dump_varargs_unicode_str( min(cur_size
,req
->namelen
) );
1952 fputc( ',', stderr
);
1953 fprintf( stderr
, " class=" );
1954 dump_varargs_unicode_str( cur_size
);
1957 static void dump_create_key_reply( const struct create_key_reply
*req
)
1959 fprintf( stderr
, " hkey=%p,", req
->hkey
);
1960 fprintf( stderr
, " created=%d", req
->created
);
1963 static void dump_open_key_request( const struct open_key_request
*req
)
1965 fprintf( stderr
, " parent=%p,", req
->parent
);
1966 fprintf( stderr
, " access=%08x,", req
->access
);
1967 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1968 fprintf( stderr
, " name=" );
1969 dump_varargs_unicode_str( cur_size
);
1972 static void dump_open_key_reply( const struct open_key_reply
*req
)
1974 fprintf( stderr
, " hkey=%p", req
->hkey
);
1977 static void dump_delete_key_request( const struct delete_key_request
*req
)
1979 fprintf( stderr
, " hkey=%p", req
->hkey
);
1982 static void dump_flush_key_request( const struct flush_key_request
*req
)
1984 fprintf( stderr
, " hkey=%p", req
->hkey
);
1987 static void dump_enum_key_request( const struct enum_key_request
*req
)
1989 fprintf( stderr
, " hkey=%p,", req
->hkey
);
1990 fprintf( stderr
, " index=%d,", req
->index
);
1991 fprintf( stderr
, " info_class=%d", req
->info_class
);
1994 static void dump_enum_key_reply( const struct enum_key_reply
*req
)
1996 fprintf( stderr
, " subkeys=%d,", req
->subkeys
);
1997 fprintf( stderr
, " max_subkey=%d,", req
->max_subkey
);
1998 fprintf( stderr
, " max_class=%d,", req
->max_class
);
1999 fprintf( stderr
, " values=%d,", req
->values
);
2000 fprintf( stderr
, " max_value=%d,", req
->max_value
);
2001 fprintf( stderr
, " max_data=%d,", req
->max_data
);
2002 fprintf( stderr
, " modif=%ld,", (long)req
->modif
);
2003 fprintf( stderr
, " total=%u,", req
->total
);
2004 fprintf( stderr
, " namelen=%u,", req
->namelen
);
2005 fprintf( stderr
, " name=" );
2006 dump_varargs_unicode_str( min(cur_size
,req
->namelen
) );
2007 fputc( ',', stderr
);
2008 fprintf( stderr
, " class=" );
2009 dump_varargs_unicode_str( cur_size
);
2012 static void dump_set_key_value_request( const struct set_key_value_request
*req
)
2014 fprintf( stderr
, " hkey=%p,", req
->hkey
);
2015 fprintf( stderr
, " type=%d,", req
->type
);
2016 fprintf( stderr
, " namelen=%u,", req
->namelen
);
2017 fprintf( stderr
, " name=" );
2018 dump_varargs_unicode_str( min(cur_size
,req
->namelen
) );
2019 fputc( ',', stderr
);
2020 fprintf( stderr
, " data=" );
2021 dump_varargs_bytes( cur_size
);
2024 static void dump_get_key_value_request( const struct get_key_value_request
*req
)
2026 fprintf( stderr
, " hkey=%p,", req
->hkey
);
2027 fprintf( stderr
, " name=" );
2028 dump_varargs_unicode_str( cur_size
);
2031 static void dump_get_key_value_reply( const struct get_key_value_reply
*req
)
2033 fprintf( stderr
, " type=%d,", req
->type
);
2034 fprintf( stderr
, " total=%u,", req
->total
);
2035 fprintf( stderr
, " data=" );
2036 dump_varargs_bytes( cur_size
);
2039 static void dump_enum_key_value_request( const struct enum_key_value_request
*req
)
2041 fprintf( stderr
, " hkey=%p,", req
->hkey
);
2042 fprintf( stderr
, " index=%d,", req
->index
);
2043 fprintf( stderr
, " info_class=%d", req
->info_class
);
2046 static void dump_enum_key_value_reply( const struct enum_key_value_reply
*req
)
2048 fprintf( stderr
, " type=%d,", req
->type
);
2049 fprintf( stderr
, " total=%u,", req
->total
);
2050 fprintf( stderr
, " namelen=%u,", req
->namelen
);
2051 fprintf( stderr
, " name=" );
2052 dump_varargs_unicode_str( min(cur_size
,req
->namelen
) );
2053 fputc( ',', stderr
);
2054 fprintf( stderr
, " data=" );
2055 dump_varargs_bytes( cur_size
);
2058 static void dump_delete_key_value_request( const struct delete_key_value_request
*req
)
2060 fprintf( stderr
, " hkey=%p,", req
->hkey
);
2061 fprintf( stderr
, " name=" );
2062 dump_varargs_unicode_str( cur_size
);
2065 static void dump_load_registry_request( const struct load_registry_request
*req
)
2067 fprintf( stderr
, " hkey=%p,", req
->hkey
);
2068 fprintf( stderr
, " file=%p,", req
->file
);
2069 fprintf( stderr
, " name=" );
2070 dump_varargs_unicode_str( cur_size
);
2073 static void dump_unload_registry_request( const struct unload_registry_request
*req
)
2075 fprintf( stderr
, " hkey=%p", req
->hkey
);
2078 static void dump_save_registry_request( const struct save_registry_request
*req
)
2080 fprintf( stderr
, " hkey=%p,", req
->hkey
);
2081 fprintf( stderr
, " file=%p", req
->file
);
2084 static void dump_set_registry_notification_request( const struct set_registry_notification_request
*req
)
2086 fprintf( stderr
, " hkey=%p,", req
->hkey
);
2087 fprintf( stderr
, " event=%p,", req
->event
);
2088 fprintf( stderr
, " subtree=%d,", req
->subtree
);
2089 fprintf( stderr
, " filter=%08x", req
->filter
);
2092 static void dump_create_timer_request( const struct create_timer_request
*req
)
2094 fprintf( stderr
, " access=%08x,", req
->access
);
2095 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
2096 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
2097 fprintf( stderr
, " manual=%d,", req
->manual
);
2098 fprintf( stderr
, " name=" );
2099 dump_varargs_unicode_str( cur_size
);
2102 static void dump_create_timer_reply( const struct create_timer_reply
*req
)
2104 fprintf( stderr
, " handle=%p", req
->handle
);
2107 static void dump_open_timer_request( const struct open_timer_request
*req
)
2109 fprintf( stderr
, " access=%08x,", req
->access
);
2110 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
2111 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
2112 fprintf( stderr
, " name=" );
2113 dump_varargs_unicode_str( cur_size
);
2116 static void dump_open_timer_reply( const struct open_timer_reply
*req
)
2118 fprintf( stderr
, " handle=%p", req
->handle
);
2121 static void dump_set_timer_request( const struct set_timer_request
*req
)
2123 fprintf( stderr
, " handle=%p,", req
->handle
);
2124 fprintf( stderr
, " expire=" );
2125 dump_timeout( &req
->expire
);
2126 fprintf( stderr
, "," );
2127 fprintf( stderr
, " period=%d,", req
->period
);
2128 fprintf( stderr
, " callback=%p,", req
->callback
);
2129 fprintf( stderr
, " arg=%p", req
->arg
);
2132 static void dump_set_timer_reply( const struct set_timer_reply
*req
)
2134 fprintf( stderr
, " signaled=%d", req
->signaled
);
2137 static void dump_cancel_timer_request( const struct cancel_timer_request
*req
)
2139 fprintf( stderr
, " handle=%p", req
->handle
);
2142 static void dump_cancel_timer_reply( const struct cancel_timer_reply
*req
)
2144 fprintf( stderr
, " signaled=%d", req
->signaled
);
2147 static void dump_get_timer_info_request( const struct get_timer_info_request
*req
)
2149 fprintf( stderr
, " handle=%p", req
->handle
);
2152 static void dump_get_timer_info_reply( const struct get_timer_info_reply
*req
)
2154 fprintf( stderr
, " when=" );
2155 dump_timeout( &req
->when
);
2156 fprintf( stderr
, "," );
2157 fprintf( stderr
, " signaled=%d", req
->signaled
);
2160 static void dump_get_thread_context_request( const struct get_thread_context_request
*req
)
2162 fprintf( stderr
, " handle=%p,", req
->handle
);
2163 fprintf( stderr
, " flags=%08x,", req
->flags
);
2164 fprintf( stderr
, " suspend=%d", req
->suspend
);
2167 static void dump_get_thread_context_reply( const struct get_thread_context_reply
*req
)
2169 fprintf( stderr
, " self=%d,", req
->self
);
2170 fprintf( stderr
, " context=" );
2171 dump_varargs_context( cur_size
);
2174 static void dump_set_thread_context_request( const struct set_thread_context_request
*req
)
2176 fprintf( stderr
, " handle=%p,", req
->handle
);
2177 fprintf( stderr
, " flags=%08x,", req
->flags
);
2178 fprintf( stderr
, " suspend=%d,", req
->suspend
);
2179 fprintf( stderr
, " context=" );
2180 dump_varargs_context( cur_size
);
2183 static void dump_set_thread_context_reply( const struct set_thread_context_reply
*req
)
2185 fprintf( stderr
, " self=%d", req
->self
);
2188 static void dump_get_selector_entry_request( const struct get_selector_entry_request
*req
)
2190 fprintf( stderr
, " handle=%p,", req
->handle
);
2191 fprintf( stderr
, " entry=%d", req
->entry
);
2194 static void dump_get_selector_entry_reply( const struct get_selector_entry_reply
*req
)
2196 fprintf( stderr
, " base=%08x,", req
->base
);
2197 fprintf( stderr
, " limit=%08x,", req
->limit
);
2198 fprintf( stderr
, " flags=%02x", req
->flags
);
2201 static void dump_add_atom_request( const struct add_atom_request
*req
)
2203 fprintf( stderr
, " table=%p,", req
->table
);
2204 fprintf( stderr
, " name=" );
2205 dump_varargs_unicode_str( cur_size
);
2208 static void dump_add_atom_reply( const struct add_atom_reply
*req
)
2210 fprintf( stderr
, " atom=%04x", req
->atom
);
2213 static void dump_delete_atom_request( const struct delete_atom_request
*req
)
2215 fprintf( stderr
, " table=%p,", req
->table
);
2216 fprintf( stderr
, " atom=%04x", req
->atom
);
2219 static void dump_find_atom_request( const struct find_atom_request
*req
)
2221 fprintf( stderr
, " table=%p,", req
->table
);
2222 fprintf( stderr
, " name=" );
2223 dump_varargs_unicode_str( cur_size
);
2226 static void dump_find_atom_reply( const struct find_atom_reply
*req
)
2228 fprintf( stderr
, " atom=%04x", req
->atom
);
2231 static void dump_get_atom_information_request( const struct get_atom_information_request
*req
)
2233 fprintf( stderr
, " table=%p,", req
->table
);
2234 fprintf( stderr
, " atom=%04x", req
->atom
);
2237 static void dump_get_atom_information_reply( const struct get_atom_information_reply
*req
)
2239 fprintf( stderr
, " count=%d,", req
->count
);
2240 fprintf( stderr
, " pinned=%d,", req
->pinned
);
2241 fprintf( stderr
, " total=%u,", req
->total
);
2242 fprintf( stderr
, " name=" );
2243 dump_varargs_unicode_str( cur_size
);
2246 static void dump_set_atom_information_request( const struct set_atom_information_request
*req
)
2248 fprintf( stderr
, " table=%p,", req
->table
);
2249 fprintf( stderr
, " atom=%04x,", req
->atom
);
2250 fprintf( stderr
, " pinned=%d", req
->pinned
);
2253 static void dump_empty_atom_table_request( const struct empty_atom_table_request
*req
)
2255 fprintf( stderr
, " table=%p,", req
->table
);
2256 fprintf( stderr
, " if_pinned=%d", req
->if_pinned
);
2259 static void dump_init_atom_table_request( const struct init_atom_table_request
*req
)
2261 fprintf( stderr
, " entries=%d", req
->entries
);
2264 static void dump_init_atom_table_reply( const struct init_atom_table_reply
*req
)
2266 fprintf( stderr
, " table=%p", req
->table
);
2269 static void dump_get_msg_queue_request( const struct get_msg_queue_request
*req
)
2273 static void dump_get_msg_queue_reply( const struct get_msg_queue_reply
*req
)
2275 fprintf( stderr
, " handle=%p", req
->handle
);
2278 static void dump_set_queue_fd_request( const struct set_queue_fd_request
*req
)
2280 fprintf( stderr
, " handle=%p", req
->handle
);
2283 static void dump_set_queue_mask_request( const struct set_queue_mask_request
*req
)
2285 fprintf( stderr
, " wake_mask=%08x,", req
->wake_mask
);
2286 fprintf( stderr
, " changed_mask=%08x,", req
->changed_mask
);
2287 fprintf( stderr
, " skip_wait=%d", req
->skip_wait
);
2290 static void dump_set_queue_mask_reply( const struct set_queue_mask_reply
*req
)
2292 fprintf( stderr
, " wake_bits=%08x,", req
->wake_bits
);
2293 fprintf( stderr
, " changed_bits=%08x", req
->changed_bits
);
2296 static void dump_get_queue_status_request( const struct get_queue_status_request
*req
)
2298 fprintf( stderr
, " clear=%d", req
->clear
);
2301 static void dump_get_queue_status_reply( const struct get_queue_status_reply
*req
)
2303 fprintf( stderr
, " wake_bits=%08x,", req
->wake_bits
);
2304 fprintf( stderr
, " changed_bits=%08x", req
->changed_bits
);
2307 static void dump_get_process_idle_event_request( const struct get_process_idle_event_request
*req
)
2309 fprintf( stderr
, " handle=%p", req
->handle
);
2312 static void dump_get_process_idle_event_reply( const struct get_process_idle_event_reply
*req
)
2314 fprintf( stderr
, " event=%p", req
->event
);
2317 static void dump_send_message_request( const struct send_message_request
*req
)
2319 fprintf( stderr
, " id=%04x,", req
->id
);
2320 fprintf( stderr
, " type=%d,", req
->type
);
2321 fprintf( stderr
, " flags=%d,", req
->flags
);
2322 fprintf( stderr
, " win=%p,", req
->win
);
2323 fprintf( stderr
, " msg=%08x,", req
->msg
);
2324 fprintf( stderr
, " wparam=%lx,", req
->wparam
);
2325 fprintf( stderr
, " lparam=%lx,", req
->lparam
);
2326 fprintf( stderr
, " timeout=" );
2327 dump_timeout( &req
->timeout
);
2328 fprintf( stderr
, "," );
2329 fprintf( stderr
, " data=" );
2330 dump_varargs_message_data( cur_size
);
2333 static void dump_post_quit_message_request( const struct post_quit_message_request
*req
)
2335 fprintf( stderr
, " exit_code=%d", req
->exit_code
);
2338 static void dump_send_hardware_message_request( const struct send_hardware_message_request
*req
)
2340 fprintf( stderr
, " id=%04x,", req
->id
);
2341 fprintf( stderr
, " win=%p,", req
->win
);
2342 fprintf( stderr
, " msg=%08x,", req
->msg
);
2343 fprintf( stderr
, " time=%08x,", req
->time
);
2344 fprintf( stderr
, " wparam=%lx,", req
->wparam
);
2345 fprintf( stderr
, " lparam=%lx,", req
->lparam
);
2346 fprintf( stderr
, " info=%lx,", req
->info
);
2347 fprintf( stderr
, " x=%d,", req
->x
);
2348 fprintf( stderr
, " y=%d", req
->y
);
2351 static void dump_get_message_request( const struct get_message_request
*req
)
2353 fprintf( stderr
, " flags=%08x,", req
->flags
);
2354 fprintf( stderr
, " get_win=%p,", req
->get_win
);
2355 fprintf( stderr
, " get_first=%08x,", req
->get_first
);
2356 fprintf( stderr
, " get_last=%08x,", req
->get_last
);
2357 fprintf( stderr
, " hw_id=%08x,", req
->hw_id
);
2358 fprintf( stderr
, " wake_mask=%08x,", req
->wake_mask
);
2359 fprintf( stderr
, " changed_mask=%08x", req
->changed_mask
);
2362 static void dump_get_message_reply( const struct get_message_reply
*req
)
2364 fprintf( stderr
, " win=%p,", req
->win
);
2365 fprintf( stderr
, " type=%d,", req
->type
);
2366 fprintf( stderr
, " msg=%08x,", req
->msg
);
2367 fprintf( stderr
, " wparam=%lx,", req
->wparam
);
2368 fprintf( stderr
, " lparam=%lx,", req
->lparam
);
2369 fprintf( stderr
, " info=%lx,", req
->info
);
2370 fprintf( stderr
, " x=%d,", req
->x
);
2371 fprintf( stderr
, " y=%d,", req
->y
);
2372 fprintf( stderr
, " time=%08x,", req
->time
);
2373 fprintf( stderr
, " hw_id=%08x,", req
->hw_id
);
2374 fprintf( stderr
, " active_hooks=%08x,", req
->active_hooks
);
2375 fprintf( stderr
, " total=%u,", req
->total
);
2376 fprintf( stderr
, " data=" );
2377 dump_varargs_message_data( cur_size
);
2380 static void dump_reply_message_request( const struct reply_message_request
*req
)
2382 fprintf( stderr
, " result=%lx,", req
->result
);
2383 fprintf( stderr
, " remove=%d,", req
->remove
);
2384 fprintf( stderr
, " data=" );
2385 dump_varargs_bytes( cur_size
);
2388 static void dump_accept_hardware_message_request( const struct accept_hardware_message_request
*req
)
2390 fprintf( stderr
, " hw_id=%08x,", req
->hw_id
);
2391 fprintf( stderr
, " remove=%d,", req
->remove
);
2392 fprintf( stderr
, " new_win=%p", req
->new_win
);
2395 static void dump_get_message_reply_request( const struct get_message_reply_request
*req
)
2397 fprintf( stderr
, " cancel=%d", req
->cancel
);
2400 static void dump_get_message_reply_reply( const struct get_message_reply_reply
*req
)
2402 fprintf( stderr
, " result=%lx,", req
->result
);
2403 fprintf( stderr
, " data=" );
2404 dump_varargs_bytes( cur_size
);
2407 static void dump_set_win_timer_request( const struct set_win_timer_request
*req
)
2409 fprintf( stderr
, " win=%p,", req
->win
);
2410 fprintf( stderr
, " msg=%08x,", req
->msg
);
2411 fprintf( stderr
, " rate=%08x,", req
->rate
);
2412 fprintf( stderr
, " id=%lx,", req
->id
);
2413 fprintf( stderr
, " lparam=%lx", req
->lparam
);
2416 static void dump_set_win_timer_reply( const struct set_win_timer_reply
*req
)
2418 fprintf( stderr
, " id=%lx", req
->id
);
2421 static void dump_kill_win_timer_request( const struct kill_win_timer_request
*req
)
2423 fprintf( stderr
, " win=%p,", req
->win
);
2424 fprintf( stderr
, " msg=%08x,", req
->msg
);
2425 fprintf( stderr
, " id=%lx", req
->id
);
2428 static void dump_is_window_hung_request( const struct is_window_hung_request
*req
)
2430 fprintf( stderr
, " win=%p", req
->win
);
2433 static void dump_is_window_hung_reply( const struct is_window_hung_reply
*req
)
2435 fprintf( stderr
, " is_hung=%d", req
->is_hung
);
2438 static void dump_get_serial_info_request( const struct get_serial_info_request
*req
)
2440 fprintf( stderr
, " handle=%p", req
->handle
);
2443 static void dump_get_serial_info_reply( const struct get_serial_info_reply
*req
)
2445 fprintf( stderr
, " readinterval=%08x,", req
->readinterval
);
2446 fprintf( stderr
, " readconst=%08x,", req
->readconst
);
2447 fprintf( stderr
, " readmult=%08x,", req
->readmult
);
2448 fprintf( stderr
, " writeconst=%08x,", req
->writeconst
);
2449 fprintf( stderr
, " writemult=%08x,", req
->writemult
);
2450 fprintf( stderr
, " eventmask=%08x", req
->eventmask
);
2453 static void dump_set_serial_info_request( const struct set_serial_info_request
*req
)
2455 fprintf( stderr
, " handle=%p,", req
->handle
);
2456 fprintf( stderr
, " flags=%d,", req
->flags
);
2457 fprintf( stderr
, " readinterval=%08x,", req
->readinterval
);
2458 fprintf( stderr
, " readconst=%08x,", req
->readconst
);
2459 fprintf( stderr
, " readmult=%08x,", req
->readmult
);
2460 fprintf( stderr
, " writeconst=%08x,", req
->writeconst
);
2461 fprintf( stderr
, " writemult=%08x,", req
->writemult
);
2462 fprintf( stderr
, " eventmask=%08x", req
->eventmask
);
2465 static void dump_register_async_request( const struct register_async_request
*req
)
2467 fprintf( stderr
, " handle=%p,", req
->handle
);
2468 fprintf( stderr
, " type=%d,", req
->type
);
2469 fprintf( stderr
, " count=%d,", req
->count
);
2470 fprintf( stderr
, " async=" );
2471 dump_async_data( &req
->async
);
2474 static void dump_cancel_async_request( const struct cancel_async_request
*req
)
2476 fprintf( stderr
, " handle=%p", req
->handle
);
2479 static void dump_ioctl_request( const struct ioctl_request
*req
)
2481 fprintf( stderr
, " handle=%p,", req
->handle
);
2482 fprintf( stderr
, " code=" );
2483 dump_ioctl_code( &req
->code
);
2484 fprintf( stderr
, "," );
2485 fprintf( stderr
, " async=" );
2486 dump_async_data( &req
->async
);
2487 fprintf( stderr
, "," );
2488 fprintf( stderr
, " in_data=" );
2489 dump_varargs_bytes( cur_size
);
2492 static void dump_ioctl_reply( const struct ioctl_reply
*req
)
2494 fprintf( stderr
, " wait=%p,", req
->wait
);
2495 fprintf( stderr
, " options=%08x,", req
->options
);
2496 fprintf( stderr
, " out_data=" );
2497 dump_varargs_bytes( cur_size
);
2500 static void dump_get_ioctl_result_request( const struct get_ioctl_result_request
*req
)
2502 fprintf( stderr
, " handle=%p,", req
->handle
);
2503 fprintf( stderr
, " user_arg=%p", req
->user_arg
);
2506 static void dump_get_ioctl_result_reply( const struct get_ioctl_result_reply
*req
)
2508 fprintf( stderr
, " out_data=" );
2509 dump_varargs_bytes( cur_size
);
2512 static void dump_create_named_pipe_request( const struct create_named_pipe_request
*req
)
2514 fprintf( stderr
, " access=%08x,", req
->access
);
2515 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
2516 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
2517 fprintf( stderr
, " options=%08x,", req
->options
);
2518 fprintf( stderr
, " flags=%08x,", req
->flags
);
2519 fprintf( stderr
, " maxinstances=%08x,", req
->maxinstances
);
2520 fprintf( stderr
, " outsize=%08x,", req
->outsize
);
2521 fprintf( stderr
, " insize=%08x,", req
->insize
);
2522 fprintf( stderr
, " timeout=" );
2523 dump_timeout( &req
->timeout
);
2524 fprintf( stderr
, "," );
2525 fprintf( stderr
, " name=" );
2526 dump_varargs_unicode_str( cur_size
);
2529 static void dump_create_named_pipe_reply( const struct create_named_pipe_reply
*req
)
2531 fprintf( stderr
, " handle=%p", req
->handle
);
2534 static void dump_get_named_pipe_info_request( const struct get_named_pipe_info_request
*req
)
2536 fprintf( stderr
, " handle=%p", req
->handle
);
2539 static void dump_get_named_pipe_info_reply( const struct get_named_pipe_info_reply
*req
)
2541 fprintf( stderr
, " flags=%08x,", req
->flags
);
2542 fprintf( stderr
, " maxinstances=%08x,", req
->maxinstances
);
2543 fprintf( stderr
, " instances=%08x,", req
->instances
);
2544 fprintf( stderr
, " outsize=%08x,", req
->outsize
);
2545 fprintf( stderr
, " insize=%08x", req
->insize
);
2548 static void dump_create_cursor_request( const struct create_cursor_request
*req
)
2550 fprintf( stderr
, " num_frames=%08x,", req
->num_frames
);
2551 fprintf( stderr
, " delay=%04x", req
->delay
);
2554 static void dump_create_cursor_reply( const struct create_cursor_reply
*req
)
2556 fprintf( stderr
, " handle=%p", req
->handle
);
2559 static void dump_destroy_cursor_request( const struct destroy_cursor_request
*req
)
2561 fprintf( stderr
, " handle=%p", req
->handle
);
2564 static void dump_get_cursor_info_request( const struct get_cursor_info_request
*req
)
2566 fprintf( stderr
, " handle=%p", req
->handle
);
2569 static void dump_get_cursor_info_reply( const struct get_cursor_info_reply
*req
)
2571 fprintf( stderr
, " num_frames=%08x,", req
->num_frames
);
2572 fprintf( stderr
, " delay=%04x", req
->delay
);
2575 static void dump_get_cursor_frame_request( const struct get_cursor_frame_request
*req
)
2577 fprintf( stderr
, " handle=%p,", req
->handle
);
2578 fprintf( stderr
, " frame_idx=%08x", req
->frame_idx
);
2581 static void dump_get_cursor_frame_reply( const struct get_cursor_frame_reply
*req
)
2583 fprintf( stderr
, " xhot=%04x,", req
->xhot
);
2584 fprintf( stderr
, " yhot=%04x,", req
->yhot
);
2585 fprintf( stderr
, " width=%04x,", req
->width
);
2586 fprintf( stderr
, " height=%04x,", req
->height
);
2587 fprintf( stderr
, " and_width_bytes=%04x,", req
->and_width_bytes
);
2588 fprintf( stderr
, " xor_width_bytes=%04x,", req
->xor_width_bytes
);
2589 fprintf( stderr
, " planes=%02x,", req
->planes
);
2590 fprintf( stderr
, " bpp=%02x,", req
->bpp
);
2591 fprintf( stderr
, " data=" );
2592 dump_varargs_bytes( cur_size
);
2595 static void dump_set_cursor_frame_request( const struct set_cursor_frame_request
*req
)
2597 fprintf( stderr
, " handle=%p,", req
->handle
);
2598 fprintf( stderr
, " frame_idx=%08x,", req
->frame_idx
);
2599 fprintf( stderr
, " xhot=%04x,", req
->xhot
);
2600 fprintf( stderr
, " yhot=%04x,", req
->yhot
);
2601 fprintf( stderr
, " width=%04x,", req
->width
);
2602 fprintf( stderr
, " height=%04x,", req
->height
);
2603 fprintf( stderr
, " and_width_bytes=%04x,", req
->and_width_bytes
);
2604 fprintf( stderr
, " xor_width_bytes=%04x,", req
->xor_width_bytes
);
2605 fprintf( stderr
, " planes=%02x,", req
->planes
);
2606 fprintf( stderr
, " bpp=%02x,", req
->bpp
);
2607 fprintf( stderr
, " data=" );
2608 dump_varargs_bytes( cur_size
);
2611 static void dump_create_window_request( const struct create_window_request
*req
)
2613 fprintf( stderr
, " parent=%p,", req
->parent
);
2614 fprintf( stderr
, " owner=%p,", req
->owner
);
2615 fprintf( stderr
, " atom=%04x,", req
->atom
);
2616 fprintf( stderr
, " instance=%p,", req
->instance
);
2617 fprintf( stderr
, " class=" );
2618 dump_varargs_unicode_str( cur_size
);
2621 static void dump_create_window_reply( const struct create_window_reply
*req
)
2623 fprintf( stderr
, " handle=%p,", req
->handle
);
2624 fprintf( stderr
, " parent=%p,", req
->parent
);
2625 fprintf( stderr
, " owner=%p,", req
->owner
);
2626 fprintf( stderr
, " extra=%d,", req
->extra
);
2627 fprintf( stderr
, " class_ptr=%p", req
->class_ptr
);
2630 static void dump_destroy_window_request( const struct destroy_window_request
*req
)
2632 fprintf( stderr
, " handle=%p", req
->handle
);
2635 static void dump_get_desktop_window_request( const struct get_desktop_window_request
*req
)
2637 fprintf( stderr
, " force=%d", req
->force
);
2640 static void dump_get_desktop_window_reply( const struct get_desktop_window_reply
*req
)
2642 fprintf( stderr
, " top_window=%p,", req
->top_window
);
2643 fprintf( stderr
, " msg_window=%p", req
->msg_window
);
2646 static void dump_set_window_owner_request( const struct set_window_owner_request
*req
)
2648 fprintf( stderr
, " handle=%p,", req
->handle
);
2649 fprintf( stderr
, " owner=%p", req
->owner
);
2652 static void dump_set_window_owner_reply( const struct set_window_owner_reply
*req
)
2654 fprintf( stderr
, " full_owner=%p,", req
->full_owner
);
2655 fprintf( stderr
, " prev_owner=%p", req
->prev_owner
);
2658 static void dump_get_window_info_request( const struct get_window_info_request
*req
)
2660 fprintf( stderr
, " handle=%p", req
->handle
);
2663 static void dump_get_window_info_reply( const struct get_window_info_reply
*req
)
2665 fprintf( stderr
, " full_handle=%p,", req
->full_handle
);
2666 fprintf( stderr
, " last_active=%p,", req
->last_active
);
2667 fprintf( stderr
, " pid=%04x,", req
->pid
);
2668 fprintf( stderr
, " tid=%04x,", req
->tid
);
2669 fprintf( stderr
, " atom=%04x,", req
->atom
);
2670 fprintf( stderr
, " is_unicode=%d", req
->is_unicode
);
2673 static void dump_set_window_info_request( const struct set_window_info_request
*req
)
2675 fprintf( stderr
, " flags=%08x,", req
->flags
);
2676 fprintf( stderr
, " handle=%p,", req
->handle
);
2677 fprintf( stderr
, " style=%08x,", req
->style
);
2678 fprintf( stderr
, " ex_style=%08x,", req
->ex_style
);
2679 fprintf( stderr
, " id=%08x,", req
->id
);
2680 fprintf( stderr
, " is_unicode=%d,", req
->is_unicode
);
2681 fprintf( stderr
, " instance=%p,", req
->instance
);
2682 fprintf( stderr
, " user_data=%lx,", req
->user_data
);
2683 fprintf( stderr
, " extra_offset=%d,", req
->extra_offset
);
2684 fprintf( stderr
, " extra_size=%u,", req
->extra_size
);
2685 fprintf( stderr
, " extra_value=%lx", req
->extra_value
);
2688 static void dump_set_window_info_reply( const struct set_window_info_reply
*req
)
2690 fprintf( stderr
, " old_style=%08x,", req
->old_style
);
2691 fprintf( stderr
, " old_ex_style=%08x,", req
->old_ex_style
);
2692 fprintf( stderr
, " old_id=%08x,", req
->old_id
);
2693 fprintf( stderr
, " old_instance=%p,", req
->old_instance
);
2694 fprintf( stderr
, " old_user_data=%lx,", req
->old_user_data
);
2695 fprintf( stderr
, " old_extra_value=%lx", req
->old_extra_value
);
2698 static void dump_set_parent_request( const struct set_parent_request
*req
)
2700 fprintf( stderr
, " handle=%p,", req
->handle
);
2701 fprintf( stderr
, " parent=%p", req
->parent
);
2704 static void dump_set_parent_reply( const struct set_parent_reply
*req
)
2706 fprintf( stderr
, " old_parent=%p,", req
->old_parent
);
2707 fprintf( stderr
, " full_parent=%p", req
->full_parent
);
2710 static void dump_get_window_parents_request( const struct get_window_parents_request
*req
)
2712 fprintf( stderr
, " handle=%p", req
->handle
);
2715 static void dump_get_window_parents_reply( const struct get_window_parents_reply
*req
)
2717 fprintf( stderr
, " count=%d,", req
->count
);
2718 fprintf( stderr
, " parents=" );
2719 dump_varargs_user_handles( cur_size
);
2722 static void dump_get_window_children_request( const struct get_window_children_request
*req
)
2724 fprintf( stderr
, " desktop=%p,", req
->desktop
);
2725 fprintf( stderr
, " parent=%p,", req
->parent
);
2726 fprintf( stderr
, " atom=%04x,", req
->atom
);
2727 fprintf( stderr
, " tid=%04x,", req
->tid
);
2728 fprintf( stderr
, " class=" );
2729 dump_varargs_unicode_str( cur_size
);
2732 static void dump_get_window_children_reply( const struct get_window_children_reply
*req
)
2734 fprintf( stderr
, " count=%d,", req
->count
);
2735 fprintf( stderr
, " children=" );
2736 dump_varargs_user_handles( cur_size
);
2739 static void dump_get_window_children_from_point_request( const struct get_window_children_from_point_request
*req
)
2741 fprintf( stderr
, " parent=%p,", req
->parent
);
2742 fprintf( stderr
, " x=%d,", req
->x
);
2743 fprintf( stderr
, " y=%d", req
->y
);
2746 static void dump_get_window_children_from_point_reply( const struct get_window_children_from_point_reply
*req
)
2748 fprintf( stderr
, " count=%d,", req
->count
);
2749 fprintf( stderr
, " children=" );
2750 dump_varargs_user_handles( cur_size
);
2753 static void dump_get_window_tree_request( const struct get_window_tree_request
*req
)
2755 fprintf( stderr
, " handle=%p", req
->handle
);
2758 static void dump_get_window_tree_reply( const struct get_window_tree_reply
*req
)
2760 fprintf( stderr
, " parent=%p,", req
->parent
);
2761 fprintf( stderr
, " owner=%p,", req
->owner
);
2762 fprintf( stderr
, " next_sibling=%p,", req
->next_sibling
);
2763 fprintf( stderr
, " prev_sibling=%p,", req
->prev_sibling
);
2764 fprintf( stderr
, " first_sibling=%p,", req
->first_sibling
);
2765 fprintf( stderr
, " last_sibling=%p,", req
->last_sibling
);
2766 fprintf( stderr
, " first_child=%p,", req
->first_child
);
2767 fprintf( stderr
, " last_child=%p", req
->last_child
);
2770 static void dump_set_window_pos_request( const struct set_window_pos_request
*req
)
2772 fprintf( stderr
, " flags=%08x,", req
->flags
);
2773 fprintf( stderr
, " handle=%p,", req
->handle
);
2774 fprintf( stderr
, " previous=%p,", req
->previous
);
2775 fprintf( stderr
, " window=" );
2776 dump_rectangle( &req
->window
);
2777 fprintf( stderr
, "," );
2778 fprintf( stderr
, " client=" );
2779 dump_rectangle( &req
->client
);
2780 fprintf( stderr
, "," );
2781 fprintf( stderr
, " valid=" );
2782 dump_varargs_rectangles( cur_size
);
2785 static void dump_set_window_pos_reply( const struct set_window_pos_reply
*req
)
2787 fprintf( stderr
, " new_style=%08x,", req
->new_style
);
2788 fprintf( stderr
, " new_ex_style=%08x", req
->new_ex_style
);
2791 static void dump_get_window_rectangles_request( const struct get_window_rectangles_request
*req
)
2793 fprintf( stderr
, " handle=%p", req
->handle
);
2796 static void dump_get_window_rectangles_reply( const struct get_window_rectangles_reply
*req
)
2798 fprintf( stderr
, " window=" );
2799 dump_rectangle( &req
->window
);
2800 fprintf( stderr
, "," );
2801 fprintf( stderr
, " visible=" );
2802 dump_rectangle( &req
->visible
);
2803 fprintf( stderr
, "," );
2804 fprintf( stderr
, " client=" );
2805 dump_rectangle( &req
->client
);
2808 static void dump_get_window_text_request( const struct get_window_text_request
*req
)
2810 fprintf( stderr
, " handle=%p", req
->handle
);
2813 static void dump_get_window_text_reply( const struct get_window_text_reply
*req
)
2815 fprintf( stderr
, " text=" );
2816 dump_varargs_unicode_str( cur_size
);
2819 static void dump_set_window_text_request( const struct set_window_text_request
*req
)
2821 fprintf( stderr
, " handle=%p,", req
->handle
);
2822 fprintf( stderr
, " text=" );
2823 dump_varargs_unicode_str( cur_size
);
2826 static void dump_get_windows_offset_request( const struct get_windows_offset_request
*req
)
2828 fprintf( stderr
, " from=%p,", req
->from
);
2829 fprintf( stderr
, " to=%p", req
->to
);
2832 static void dump_get_windows_offset_reply( const struct get_windows_offset_reply
*req
)
2834 fprintf( stderr
, " x=%d,", req
->x
);
2835 fprintf( stderr
, " y=%d", req
->y
);
2838 static void dump_get_visible_region_request( const struct get_visible_region_request
*req
)
2840 fprintf( stderr
, " window=%p,", req
->window
);
2841 fprintf( stderr
, " flags=%08x", req
->flags
);
2844 static void dump_get_visible_region_reply( const struct get_visible_region_reply
*req
)
2846 fprintf( stderr
, " top_win=%p,", req
->top_win
);
2847 fprintf( stderr
, " top_rect=" );
2848 dump_rectangle( &req
->top_rect
);
2849 fprintf( stderr
, "," );
2850 fprintf( stderr
, " win_rect=" );
2851 dump_rectangle( &req
->win_rect
);
2852 fprintf( stderr
, "," );
2853 fprintf( stderr
, " total_size=%u,", req
->total_size
);
2854 fprintf( stderr
, " region=" );
2855 dump_varargs_rectangles( cur_size
);
2858 static void dump_get_window_region_request( const struct get_window_region_request
*req
)
2860 fprintf( stderr
, " window=%p", req
->window
);
2863 static void dump_get_window_region_reply( const struct get_window_region_reply
*req
)
2865 fprintf( stderr
, " total_size=%u,", req
->total_size
);
2866 fprintf( stderr
, " region=" );
2867 dump_varargs_rectangles( cur_size
);
2870 static void dump_set_window_region_request( const struct set_window_region_request
*req
)
2872 fprintf( stderr
, " window=%p,", req
->window
);
2873 fprintf( stderr
, " redraw=%d,", req
->redraw
);
2874 fprintf( stderr
, " region=" );
2875 dump_varargs_rectangles( cur_size
);
2878 static void dump_get_update_region_request( const struct get_update_region_request
*req
)
2880 fprintf( stderr
, " window=%p,", req
->window
);
2881 fprintf( stderr
, " from_child=%p,", req
->from_child
);
2882 fprintf( stderr
, " flags=%08x", req
->flags
);
2885 static void dump_get_update_region_reply( const struct get_update_region_reply
*req
)
2887 fprintf( stderr
, " child=%p,", req
->child
);
2888 fprintf( stderr
, " flags=%08x,", req
->flags
);
2889 fprintf( stderr
, " total_size=%u,", req
->total_size
);
2890 fprintf( stderr
, " region=" );
2891 dump_varargs_rectangles( cur_size
);
2894 static void dump_update_window_zorder_request( const struct update_window_zorder_request
*req
)
2896 fprintf( stderr
, " window=%p,", req
->window
);
2897 fprintf( stderr
, " rect=" );
2898 dump_rectangle( &req
->rect
);
2901 static void dump_redraw_window_request( const struct redraw_window_request
*req
)
2903 fprintf( stderr
, " window=%p,", req
->window
);
2904 fprintf( stderr
, " flags=%08x,", req
->flags
);
2905 fprintf( stderr
, " region=" );
2906 dump_varargs_rectangles( cur_size
);
2909 static void dump_set_window_property_request( const struct set_window_property_request
*req
)
2911 fprintf( stderr
, " window=%p,", req
->window
);
2912 fprintf( stderr
, " atom=%04x,", req
->atom
);
2913 fprintf( stderr
, " handle=%p,", req
->handle
);
2914 fprintf( stderr
, " name=" );
2915 dump_varargs_unicode_str( cur_size
);
2918 static void dump_remove_window_property_request( const struct remove_window_property_request
*req
)
2920 fprintf( stderr
, " window=%p,", req
->window
);
2921 fprintf( stderr
, " atom=%04x,", req
->atom
);
2922 fprintf( stderr
, " name=" );
2923 dump_varargs_unicode_str( cur_size
);
2926 static void dump_remove_window_property_reply( const struct remove_window_property_reply
*req
)
2928 fprintf( stderr
, " handle=%p", req
->handle
);
2931 static void dump_get_window_property_request( const struct get_window_property_request
*req
)
2933 fprintf( stderr
, " window=%p,", req
->window
);
2934 fprintf( stderr
, " atom=%04x,", req
->atom
);
2935 fprintf( stderr
, " name=" );
2936 dump_varargs_unicode_str( cur_size
);
2939 static void dump_get_window_property_reply( const struct get_window_property_reply
*req
)
2941 fprintf( stderr
, " handle=%p", req
->handle
);
2944 static void dump_get_window_properties_request( const struct get_window_properties_request
*req
)
2946 fprintf( stderr
, " window=%p", req
->window
);
2949 static void dump_get_window_properties_reply( const struct get_window_properties_reply
*req
)
2951 fprintf( stderr
, " total=%d,", req
->total
);
2952 fprintf( stderr
, " props=" );
2953 dump_varargs_properties( cur_size
);
2956 static void dump_create_winstation_request( const struct create_winstation_request
*req
)
2958 fprintf( stderr
, " flags=%08x,", req
->flags
);
2959 fprintf( stderr
, " access=%08x,", req
->access
);
2960 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
2961 fprintf( stderr
, " name=" );
2962 dump_varargs_unicode_str( cur_size
);
2965 static void dump_create_winstation_reply( const struct create_winstation_reply
*req
)
2967 fprintf( stderr
, " handle=%p", req
->handle
);
2970 static void dump_open_winstation_request( const struct open_winstation_request
*req
)
2972 fprintf( stderr
, " access=%08x,", req
->access
);
2973 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
2974 fprintf( stderr
, " name=" );
2975 dump_varargs_unicode_str( cur_size
);
2978 static void dump_open_winstation_reply( const struct open_winstation_reply
*req
)
2980 fprintf( stderr
, " handle=%p", req
->handle
);
2983 static void dump_close_winstation_request( const struct close_winstation_request
*req
)
2985 fprintf( stderr
, " handle=%p", req
->handle
);
2988 static void dump_get_process_winstation_request( const struct get_process_winstation_request
*req
)
2992 static void dump_get_process_winstation_reply( const struct get_process_winstation_reply
*req
)
2994 fprintf( stderr
, " handle=%p", req
->handle
);
2997 static void dump_set_process_winstation_request( const struct set_process_winstation_request
*req
)
2999 fprintf( stderr
, " handle=%p", req
->handle
);
3002 static void dump_enum_winstation_request( const struct enum_winstation_request
*req
)
3004 fprintf( stderr
, " index=%08x", req
->index
);
3007 static void dump_enum_winstation_reply( const struct enum_winstation_reply
*req
)
3009 fprintf( stderr
, " next=%08x,", req
->next
);
3010 fprintf( stderr
, " name=" );
3011 dump_varargs_unicode_str( cur_size
);
3014 static void dump_create_desktop_request( const struct create_desktop_request
*req
)
3016 fprintf( stderr
, " flags=%08x,", req
->flags
);
3017 fprintf( stderr
, " access=%08x,", req
->access
);
3018 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
3019 fprintf( stderr
, " name=" );
3020 dump_varargs_unicode_str( cur_size
);
3023 static void dump_create_desktop_reply( const struct create_desktop_reply
*req
)
3025 fprintf( stderr
, " handle=%p", req
->handle
);
3028 static void dump_open_desktop_request( const struct open_desktop_request
*req
)
3030 fprintf( stderr
, " winsta=%p,", req
->winsta
);
3031 fprintf( stderr
, " flags=%08x,", req
->flags
);
3032 fprintf( stderr
, " access=%08x,", req
->access
);
3033 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
3034 fprintf( stderr
, " name=" );
3035 dump_varargs_unicode_str( cur_size
);
3038 static void dump_open_desktop_reply( const struct open_desktop_reply
*req
)
3040 fprintf( stderr
, " handle=%p", req
->handle
);
3043 static void dump_close_desktop_request( const struct close_desktop_request
*req
)
3045 fprintf( stderr
, " handle=%p", req
->handle
);
3048 static void dump_get_thread_desktop_request( const struct get_thread_desktop_request
*req
)
3050 fprintf( stderr
, " tid=%04x", req
->tid
);
3053 static void dump_get_thread_desktop_reply( const struct get_thread_desktop_reply
*req
)
3055 fprintf( stderr
, " handle=%p", req
->handle
);
3058 static void dump_set_thread_desktop_request( const struct set_thread_desktop_request
*req
)
3060 fprintf( stderr
, " handle=%p", req
->handle
);
3063 static void dump_enum_desktop_request( const struct enum_desktop_request
*req
)
3065 fprintf( stderr
, " winstation=%p,", req
->winstation
);
3066 fprintf( stderr
, " index=%08x", req
->index
);
3069 static void dump_enum_desktop_reply( const struct enum_desktop_reply
*req
)
3071 fprintf( stderr
, " next=%08x,", req
->next
);
3072 fprintf( stderr
, " name=" );
3073 dump_varargs_unicode_str( cur_size
);
3076 static void dump_set_user_object_info_request( const struct set_user_object_info_request
*req
)
3078 fprintf( stderr
, " handle=%p,", req
->handle
);
3079 fprintf( stderr
, " flags=%08x,", req
->flags
);
3080 fprintf( stderr
, " obj_flags=%08x", req
->obj_flags
);
3083 static void dump_set_user_object_info_reply( const struct set_user_object_info_reply
*req
)
3085 fprintf( stderr
, " is_desktop=%d,", req
->is_desktop
);
3086 fprintf( stderr
, " old_obj_flags=%08x,", req
->old_obj_flags
);
3087 fprintf( stderr
, " name=" );
3088 dump_varargs_unicode_str( cur_size
);
3091 static void dump_attach_thread_input_request( const struct attach_thread_input_request
*req
)
3093 fprintf( stderr
, " tid_from=%04x,", req
->tid_from
);
3094 fprintf( stderr
, " tid_to=%04x,", req
->tid_to
);
3095 fprintf( stderr
, " attach=%d", req
->attach
);
3098 static void dump_get_thread_input_request( const struct get_thread_input_request
*req
)
3100 fprintf( stderr
, " tid=%04x", req
->tid
);
3103 static void dump_get_thread_input_reply( const struct get_thread_input_reply
*req
)
3105 fprintf( stderr
, " focus=%p,", req
->focus
);
3106 fprintf( stderr
, " capture=%p,", req
->capture
);
3107 fprintf( stderr
, " active=%p,", req
->active
);
3108 fprintf( stderr
, " foreground=%p,", req
->foreground
);
3109 fprintf( stderr
, " menu_owner=%p,", req
->menu_owner
);
3110 fprintf( stderr
, " move_size=%p,", req
->move_size
);
3111 fprintf( stderr
, " caret=%p,", req
->caret
);
3112 fprintf( stderr
, " rect=" );
3113 dump_rectangle( &req
->rect
);
3116 static void dump_get_last_input_time_request( const struct get_last_input_time_request
*req
)
3120 static void dump_get_last_input_time_reply( const struct get_last_input_time_reply
*req
)
3122 fprintf( stderr
, " time=%08x", req
->time
);
3125 static void dump_get_key_state_request( const struct get_key_state_request
*req
)
3127 fprintf( stderr
, " tid=%04x,", req
->tid
);
3128 fprintf( stderr
, " key=%d", req
->key
);
3131 static void dump_get_key_state_reply( const struct get_key_state_reply
*req
)
3133 fprintf( stderr
, " state=%02x,", req
->state
);
3134 fprintf( stderr
, " keystate=" );
3135 dump_varargs_bytes( cur_size
);
3138 static void dump_set_key_state_request( const struct set_key_state_request
*req
)
3140 fprintf( stderr
, " tid=%04x,", req
->tid
);
3141 fprintf( stderr
, " keystate=" );
3142 dump_varargs_bytes( cur_size
);
3145 static void dump_set_foreground_window_request( const struct set_foreground_window_request
*req
)
3147 fprintf( stderr
, " handle=%p", req
->handle
);
3150 static void dump_set_foreground_window_reply( const struct set_foreground_window_reply
*req
)
3152 fprintf( stderr
, " previous=%p,", req
->previous
);
3153 fprintf( stderr
, " send_msg_old=%d,", req
->send_msg_old
);
3154 fprintf( stderr
, " send_msg_new=%d", req
->send_msg_new
);
3157 static void dump_set_focus_window_request( const struct set_focus_window_request
*req
)
3159 fprintf( stderr
, " handle=%p", req
->handle
);
3162 static void dump_set_focus_window_reply( const struct set_focus_window_reply
*req
)
3164 fprintf( stderr
, " previous=%p", req
->previous
);
3167 static void dump_set_active_window_request( const struct set_active_window_request
*req
)
3169 fprintf( stderr
, " handle=%p", req
->handle
);
3172 static void dump_set_active_window_reply( const struct set_active_window_reply
*req
)
3174 fprintf( stderr
, " previous=%p", req
->previous
);
3177 static void dump_set_capture_window_request( const struct set_capture_window_request
*req
)
3179 fprintf( stderr
, " handle=%p,", req
->handle
);
3180 fprintf( stderr
, " flags=%08x", req
->flags
);
3183 static void dump_set_capture_window_reply( const struct set_capture_window_reply
*req
)
3185 fprintf( stderr
, " previous=%p,", req
->previous
);
3186 fprintf( stderr
, " full_handle=%p", req
->full_handle
);
3189 static void dump_set_caret_window_request( const struct set_caret_window_request
*req
)
3191 fprintf( stderr
, " handle=%p,", req
->handle
);
3192 fprintf( stderr
, " width=%d,", req
->width
);
3193 fprintf( stderr
, " height=%d", req
->height
);
3196 static void dump_set_caret_window_reply( const struct set_caret_window_reply
*req
)
3198 fprintf( stderr
, " previous=%p,", req
->previous
);
3199 fprintf( stderr
, " old_rect=" );
3200 dump_rectangle( &req
->old_rect
);
3201 fprintf( stderr
, "," );
3202 fprintf( stderr
, " old_hide=%d,", req
->old_hide
);
3203 fprintf( stderr
, " old_state=%d", req
->old_state
);
3206 static void dump_set_caret_info_request( const struct set_caret_info_request
*req
)
3208 fprintf( stderr
, " flags=%08x,", req
->flags
);
3209 fprintf( stderr
, " handle=%p,", req
->handle
);
3210 fprintf( stderr
, " x=%d,", req
->x
);
3211 fprintf( stderr
, " y=%d,", req
->y
);
3212 fprintf( stderr
, " hide=%d,", req
->hide
);
3213 fprintf( stderr
, " state=%d", req
->state
);
3216 static void dump_set_caret_info_reply( const struct set_caret_info_reply
*req
)
3218 fprintf( stderr
, " full_handle=%p,", req
->full_handle
);
3219 fprintf( stderr
, " old_rect=" );
3220 dump_rectangle( &req
->old_rect
);
3221 fprintf( stderr
, "," );
3222 fprintf( stderr
, " old_hide=%d,", req
->old_hide
);
3223 fprintf( stderr
, " old_state=%d", req
->old_state
);
3226 static void dump_set_hook_request( const struct set_hook_request
*req
)
3228 fprintf( stderr
, " id=%d,", req
->id
);
3229 fprintf( stderr
, " pid=%04x,", req
->pid
);
3230 fprintf( stderr
, " tid=%04x,", req
->tid
);
3231 fprintf( stderr
, " event_min=%d,", req
->event_min
);
3232 fprintf( stderr
, " event_max=%d,", req
->event_max
);
3233 fprintf( stderr
, " flags=%d,", req
->flags
);
3234 fprintf( stderr
, " proc=%p,", req
->proc
);
3235 fprintf( stderr
, " unicode=%d,", req
->unicode
);
3236 fprintf( stderr
, " module=" );
3237 dump_varargs_unicode_str( cur_size
);
3240 static void dump_set_hook_reply( const struct set_hook_reply
*req
)
3242 fprintf( stderr
, " handle=%p,", req
->handle
);
3243 fprintf( stderr
, " active_hooks=%08x", req
->active_hooks
);
3246 static void dump_remove_hook_request( const struct remove_hook_request
*req
)
3248 fprintf( stderr
, " handle=%p,", req
->handle
);
3249 fprintf( stderr
, " id=%d,", req
->id
);
3250 fprintf( stderr
, " proc=%p", req
->proc
);
3253 static void dump_remove_hook_reply( const struct remove_hook_reply
*req
)
3255 fprintf( stderr
, " active_hooks=%08x", req
->active_hooks
);
3258 static void dump_start_hook_chain_request( const struct start_hook_chain_request
*req
)
3260 fprintf( stderr
, " id=%d,", req
->id
);
3261 fprintf( stderr
, " event=%d,", req
->event
);
3262 fprintf( stderr
, " window=%p,", req
->window
);
3263 fprintf( stderr
, " object_id=%d,", req
->object_id
);
3264 fprintf( stderr
, " child_id=%d", req
->child_id
);
3267 static void dump_start_hook_chain_reply( const struct start_hook_chain_reply
*req
)
3269 fprintf( stderr
, " handle=%p,", req
->handle
);
3270 fprintf( stderr
, " pid=%04x,", req
->pid
);
3271 fprintf( stderr
, " tid=%04x,", req
->tid
);
3272 fprintf( stderr
, " proc=%p,", req
->proc
);
3273 fprintf( stderr
, " unicode=%d,", req
->unicode
);
3274 fprintf( stderr
, " active_hooks=%08x,", req
->active_hooks
);
3275 fprintf( stderr
, " module=" );
3276 dump_varargs_unicode_str( cur_size
);
3279 static void dump_finish_hook_chain_request( const struct finish_hook_chain_request
*req
)
3281 fprintf( stderr
, " id=%d", req
->id
);
3284 static void dump_get_hook_info_request( const struct get_hook_info_request
*req
)
3286 fprintf( stderr
, " handle=%p,", req
->handle
);
3287 fprintf( stderr
, " get_next=%d,", req
->get_next
);
3288 fprintf( stderr
, " event=%d,", req
->event
);
3289 fprintf( stderr
, " window=%p,", req
->window
);
3290 fprintf( stderr
, " object_id=%d,", req
->object_id
);
3291 fprintf( stderr
, " child_id=%d", req
->child_id
);
3294 static void dump_get_hook_info_reply( const struct get_hook_info_reply
*req
)
3296 fprintf( stderr
, " handle=%p,", req
->handle
);
3297 fprintf( stderr
, " id=%d,", req
->id
);
3298 fprintf( stderr
, " pid=%04x,", req
->pid
);
3299 fprintf( stderr
, " tid=%04x,", req
->tid
);
3300 fprintf( stderr
, " proc=%p,", req
->proc
);
3301 fprintf( stderr
, " unicode=%d,", req
->unicode
);
3302 fprintf( stderr
, " module=" );
3303 dump_varargs_unicode_str( cur_size
);
3306 static void dump_create_class_request( const struct create_class_request
*req
)
3308 fprintf( stderr
, " local=%d,", req
->local
);
3309 fprintf( stderr
, " atom=%04x,", req
->atom
);
3310 fprintf( stderr
, " style=%08x,", req
->style
);
3311 fprintf( stderr
, " instance=%p,", req
->instance
);
3312 fprintf( stderr
, " extra=%d,", req
->extra
);
3313 fprintf( stderr
, " win_extra=%d,", req
->win_extra
);
3314 fprintf( stderr
, " client_ptr=%p,", req
->client_ptr
);
3315 fprintf( stderr
, " name=" );
3316 dump_varargs_unicode_str( cur_size
);
3319 static void dump_create_class_reply( const struct create_class_reply
*req
)
3321 fprintf( stderr
, " atom=%04x", req
->atom
);
3324 static void dump_destroy_class_request( const struct destroy_class_request
*req
)
3326 fprintf( stderr
, " atom=%04x,", req
->atom
);
3327 fprintf( stderr
, " instance=%p,", req
->instance
);
3328 fprintf( stderr
, " name=" );
3329 dump_varargs_unicode_str( cur_size
);
3332 static void dump_destroy_class_reply( const struct destroy_class_reply
*req
)
3334 fprintf( stderr
, " client_ptr=%p", req
->client_ptr
);
3337 static void dump_set_class_info_request( const struct set_class_info_request
*req
)
3339 fprintf( stderr
, " window=%p,", req
->window
);
3340 fprintf( stderr
, " flags=%08x,", req
->flags
);
3341 fprintf( stderr
, " atom=%04x,", req
->atom
);
3342 fprintf( stderr
, " style=%08x,", req
->style
);
3343 fprintf( stderr
, " win_extra=%d,", req
->win_extra
);
3344 fprintf( stderr
, " instance=%p,", req
->instance
);
3345 fprintf( stderr
, " extra_offset=%d,", req
->extra_offset
);
3346 fprintf( stderr
, " extra_size=%u,", req
->extra_size
);
3347 fprintf( stderr
, " extra_value=%lx", req
->extra_value
);
3350 static void dump_set_class_info_reply( const struct set_class_info_reply
*req
)
3352 fprintf( stderr
, " old_atom=%04x,", req
->old_atom
);
3353 fprintf( stderr
, " old_style=%08x,", req
->old_style
);
3354 fprintf( stderr
, " old_extra=%d,", req
->old_extra
);
3355 fprintf( stderr
, " old_win_extra=%d,", req
->old_win_extra
);
3356 fprintf( stderr
, " old_instance=%p,", req
->old_instance
);
3357 fprintf( stderr
, " old_extra_value=%lx", req
->old_extra_value
);
3360 static void dump_set_clipboard_info_request( const struct set_clipboard_info_request
*req
)
3362 fprintf( stderr
, " flags=%08x,", req
->flags
);
3363 fprintf( stderr
, " clipboard=%p,", req
->clipboard
);
3364 fprintf( stderr
, " owner=%p,", req
->owner
);
3365 fprintf( stderr
, " viewer=%p,", req
->viewer
);
3366 fprintf( stderr
, " seqno=%08x", req
->seqno
);
3369 static void dump_set_clipboard_info_reply( const struct set_clipboard_info_reply
*req
)
3371 fprintf( stderr
, " flags=%08x,", req
->flags
);
3372 fprintf( stderr
, " old_clipboard=%p,", req
->old_clipboard
);
3373 fprintf( stderr
, " old_owner=%p,", req
->old_owner
);
3374 fprintf( stderr
, " old_viewer=%p,", req
->old_viewer
);
3375 fprintf( stderr
, " seqno=%08x", req
->seqno
);
3378 static void dump_open_token_request( const struct open_token_request
*req
)
3380 fprintf( stderr
, " handle=%p,", req
->handle
);
3381 fprintf( stderr
, " access=%08x,", req
->access
);
3382 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
3383 fprintf( stderr
, " flags=%08x", req
->flags
);
3386 static void dump_open_token_reply( const struct open_token_reply
*req
)
3388 fprintf( stderr
, " token=%p", req
->token
);
3391 static void dump_set_global_windows_request( const struct set_global_windows_request
*req
)
3393 fprintf( stderr
, " flags=%08x,", req
->flags
);
3394 fprintf( stderr
, " shell_window=%p,", req
->shell_window
);
3395 fprintf( stderr
, " shell_listview=%p,", req
->shell_listview
);
3396 fprintf( stderr
, " progman_window=%p,", req
->progman_window
);
3397 fprintf( stderr
, " taskman_window=%p", req
->taskman_window
);
3400 static void dump_set_global_windows_reply( const struct set_global_windows_reply
*req
)
3402 fprintf( stderr
, " old_shell_window=%p,", req
->old_shell_window
);
3403 fprintf( stderr
, " old_shell_listview=%p,", req
->old_shell_listview
);
3404 fprintf( stderr
, " old_progman_window=%p,", req
->old_progman_window
);
3405 fprintf( stderr
, " old_taskman_window=%p", req
->old_taskman_window
);
3408 static void dump_adjust_token_privileges_request( const struct adjust_token_privileges_request
*req
)
3410 fprintf( stderr
, " handle=%p,", req
->handle
);
3411 fprintf( stderr
, " disable_all=%d,", req
->disable_all
);
3412 fprintf( stderr
, " get_modified_state=%d,", req
->get_modified_state
);
3413 fprintf( stderr
, " privileges=" );
3414 dump_varargs_LUID_AND_ATTRIBUTES( cur_size
);
3417 static void dump_adjust_token_privileges_reply( const struct adjust_token_privileges_reply
*req
)
3419 fprintf( stderr
, " len=%08x,", req
->len
);
3420 fprintf( stderr
, " privileges=" );
3421 dump_varargs_LUID_AND_ATTRIBUTES( cur_size
);
3424 static void dump_get_token_privileges_request( const struct get_token_privileges_request
*req
)
3426 fprintf( stderr
, " handle=%p", req
->handle
);
3429 static void dump_get_token_privileges_reply( const struct get_token_privileges_reply
*req
)
3431 fprintf( stderr
, " len=%08x,", req
->len
);
3432 fprintf( stderr
, " privileges=" );
3433 dump_varargs_LUID_AND_ATTRIBUTES( cur_size
);
3436 static void dump_check_token_privileges_request( const struct check_token_privileges_request
*req
)
3438 fprintf( stderr
, " handle=%p,", req
->handle
);
3439 fprintf( stderr
, " all_required=%d,", req
->all_required
);
3440 fprintf( stderr
, " privileges=" );
3441 dump_varargs_LUID_AND_ATTRIBUTES( cur_size
);
3444 static void dump_check_token_privileges_reply( const struct check_token_privileges_reply
*req
)
3446 fprintf( stderr
, " has_privileges=%d,", req
->has_privileges
);
3447 fprintf( stderr
, " privileges=" );
3448 dump_varargs_LUID_AND_ATTRIBUTES( cur_size
);
3451 static void dump_duplicate_token_request( const struct duplicate_token_request
*req
)
3453 fprintf( stderr
, " handle=%p,", req
->handle
);
3454 fprintf( stderr
, " access=%08x,", req
->access
);
3455 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
3456 fprintf( stderr
, " primary=%d,", req
->primary
);
3457 fprintf( stderr
, " impersonation_level=%d", req
->impersonation_level
);
3460 static void dump_duplicate_token_reply( const struct duplicate_token_reply
*req
)
3462 fprintf( stderr
, " new_handle=%p", req
->new_handle
);
3465 static void dump_access_check_request( const struct access_check_request
*req
)
3467 fprintf( stderr
, " handle=%p,", req
->handle
);
3468 fprintf( stderr
, " desired_access=%08x,", req
->desired_access
);
3469 fprintf( stderr
, " mapping_read=%08x,", req
->mapping_read
);
3470 fprintf( stderr
, " mapping_write=%08x,", req
->mapping_write
);
3471 fprintf( stderr
, " mapping_execute=%08x,", req
->mapping_execute
);
3472 fprintf( stderr
, " mapping_all=%08x,", req
->mapping_all
);
3473 fprintf( stderr
, " sd=" );
3474 dump_varargs_security_descriptor( cur_size
);
3477 static void dump_access_check_reply( const struct access_check_reply
*req
)
3479 fprintf( stderr
, " access_granted=%08x,", req
->access_granted
);
3480 fprintf( stderr
, " access_status=%08x,", req
->access_status
);
3481 fprintf( stderr
, " privileges_len=%08x,", req
->privileges_len
);
3482 fprintf( stderr
, " privileges=" );
3483 dump_varargs_LUID_AND_ATTRIBUTES( cur_size
);
3486 static void dump_get_token_user_request( const struct get_token_user_request
*req
)
3488 fprintf( stderr
, " handle=%p", req
->handle
);
3491 static void dump_get_token_user_reply( const struct get_token_user_reply
*req
)
3493 fprintf( stderr
, " user_len=%u,", req
->user_len
);
3494 fprintf( stderr
, " user=" );
3495 dump_varargs_SID( cur_size
);
3498 static void dump_get_token_groups_request( const struct get_token_groups_request
*req
)
3500 fprintf( stderr
, " handle=%p", req
->handle
);
3503 static void dump_get_token_groups_reply( const struct get_token_groups_reply
*req
)
3505 fprintf( stderr
, " user_len=%u,", req
->user_len
);
3506 fprintf( stderr
, " user=" );
3507 dump_varargs_token_groups( cur_size
);
3510 static void dump_set_security_object_request( const struct set_security_object_request
*req
)
3512 fprintf( stderr
, " handle=%p,", req
->handle
);
3513 fprintf( stderr
, " security_info=%08x,", req
->security_info
);
3514 fprintf( stderr
, " sd=" );
3515 dump_varargs_security_descriptor( cur_size
);
3518 static void dump_get_security_object_request( const struct get_security_object_request
*req
)
3520 fprintf( stderr
, " handle=%p,", req
->handle
);
3521 fprintf( stderr
, " security_info=%08x", req
->security_info
);
3524 static void dump_get_security_object_reply( const struct get_security_object_reply
*req
)
3526 fprintf( stderr
, " sd_len=%08x,", req
->sd_len
);
3527 fprintf( stderr
, " sd=" );
3528 dump_varargs_security_descriptor( cur_size
);
3531 static void dump_create_mailslot_request( const struct create_mailslot_request
*req
)
3533 fprintf( stderr
, " access=%08x,", req
->access
);
3534 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
3535 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
3536 fprintf( stderr
, " max_msgsize=%08x,", req
->max_msgsize
);
3537 fprintf( stderr
, " read_timeout=" );
3538 dump_timeout( &req
->read_timeout
);
3539 fprintf( stderr
, "," );
3540 fprintf( stderr
, " name=" );
3541 dump_varargs_unicode_str( cur_size
);
3544 static void dump_create_mailslot_reply( const struct create_mailslot_reply
*req
)
3546 fprintf( stderr
, " handle=%p", req
->handle
);
3549 static void dump_set_mailslot_info_request( const struct set_mailslot_info_request
*req
)
3551 fprintf( stderr
, " handle=%p,", req
->handle
);
3552 fprintf( stderr
, " flags=%08x,", req
->flags
);
3553 fprintf( stderr
, " read_timeout=" );
3554 dump_timeout( &req
->read_timeout
);
3557 static void dump_set_mailslot_info_reply( const struct set_mailslot_info_reply
*req
)
3559 fprintf( stderr
, " max_msgsize=%08x,", req
->max_msgsize
);
3560 fprintf( stderr
, " read_timeout=" );
3561 dump_timeout( &req
->read_timeout
);
3564 static void dump_create_directory_request( const struct create_directory_request
*req
)
3566 fprintf( stderr
, " access=%08x,", req
->access
);
3567 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
3568 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
3569 fprintf( stderr
, " directory_name=" );
3570 dump_varargs_unicode_str( cur_size
);
3573 static void dump_create_directory_reply( const struct create_directory_reply
*req
)
3575 fprintf( stderr
, " handle=%p", req
->handle
);
3578 static void dump_open_directory_request( const struct open_directory_request
*req
)
3580 fprintf( stderr
, " access=%08x,", req
->access
);
3581 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
3582 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
3583 fprintf( stderr
, " directory_name=" );
3584 dump_varargs_unicode_str( cur_size
);
3587 static void dump_open_directory_reply( const struct open_directory_reply
*req
)
3589 fprintf( stderr
, " handle=%p", req
->handle
);
3592 static void dump_get_directory_entry_request( const struct get_directory_entry_request
*req
)
3594 fprintf( stderr
, " handle=%p,", req
->handle
);
3595 fprintf( stderr
, " index=%08x", req
->index
);
3598 static void dump_get_directory_entry_reply( const struct get_directory_entry_reply
*req
)
3600 fprintf( stderr
, " name_len=%lu,", (unsigned long)req
->name_len
);
3601 fprintf( stderr
, " name=" );
3602 dump_varargs_unicode_str( min(cur_size
,req
->name_len
) );
3603 fputc( ',', stderr
);
3604 fprintf( stderr
, " type=" );
3605 dump_varargs_unicode_str( cur_size
);
3608 static void dump_create_symlink_request( const struct create_symlink_request
*req
)
3610 fprintf( stderr
, " access=%08x,", req
->access
);
3611 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
3612 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
3613 fprintf( stderr
, " name_len=%u,", req
->name_len
);
3614 fprintf( stderr
, " name=" );
3615 dump_varargs_unicode_str( min(cur_size
,req
->name_len
) );
3616 fputc( ',', stderr
);
3617 fprintf( stderr
, " target_name=" );
3618 dump_varargs_unicode_str( cur_size
);
3621 static void dump_create_symlink_reply( const struct create_symlink_reply
*req
)
3623 fprintf( stderr
, " handle=%p", req
->handle
);
3626 static void dump_open_symlink_request( const struct open_symlink_request
*req
)
3628 fprintf( stderr
, " access=%08x,", req
->access
);
3629 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
3630 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
3631 fprintf( stderr
, " name=" );
3632 dump_varargs_unicode_str( cur_size
);
3635 static void dump_open_symlink_reply( const struct open_symlink_reply
*req
)
3637 fprintf( stderr
, " handle=%p", req
->handle
);
3640 static void dump_query_symlink_request( const struct query_symlink_request
*req
)
3642 fprintf( stderr
, " handle=%p", req
->handle
);
3645 static void dump_query_symlink_reply( const struct query_symlink_reply
*req
)
3647 fprintf( stderr
, " target_name=" );
3648 dump_varargs_unicode_str( cur_size
);
3651 static void dump_get_object_info_request( const struct get_object_info_request
*req
)
3653 fprintf( stderr
, " handle=%p", req
->handle
);
3656 static void dump_get_object_info_reply( const struct get_object_info_reply
*req
)
3658 fprintf( stderr
, " access=%08x,", req
->access
);
3659 fprintf( stderr
, " ref_count=%08x", req
->ref_count
);
3662 static void dump_get_token_impersonation_level_request( const struct get_token_impersonation_level_request
*req
)
3664 fprintf( stderr
, " handle=%p", req
->handle
);
3667 static void dump_get_token_impersonation_level_reply( const struct get_token_impersonation_level_reply
*req
)
3669 fprintf( stderr
, " impersonation_level=%d", req
->impersonation_level
);
3672 static void dump_allocate_locally_unique_id_request( const struct allocate_locally_unique_id_request
*req
)
3676 static void dump_allocate_locally_unique_id_reply( const struct allocate_locally_unique_id_reply
*req
)
3678 fprintf( stderr
, " luid=" );
3679 dump_luid( &req
->luid
);
3682 static void dump_create_device_manager_request( const struct create_device_manager_request
*req
)
3684 fprintf( stderr
, " access=%08x,", req
->access
);
3685 fprintf( stderr
, " attributes=%08x", req
->attributes
);
3688 static void dump_create_device_manager_reply( const struct create_device_manager_reply
*req
)
3690 fprintf( stderr
, " handle=%p", req
->handle
);
3693 static void dump_create_device_request( const struct create_device_request
*req
)
3695 fprintf( stderr
, " access=%08x,", req
->access
);
3696 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
3697 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
3698 fprintf( stderr
, " manager=%p,", req
->manager
);
3699 fprintf( stderr
, " user_ptr=%p,", req
->user_ptr
);
3700 fprintf( stderr
, " name=" );
3701 dump_varargs_unicode_str( cur_size
);
3704 static void dump_create_device_reply( const struct create_device_reply
*req
)
3706 fprintf( stderr
, " handle=%p", req
->handle
);
3709 static void dump_delete_device_request( const struct delete_device_request
*req
)
3711 fprintf( stderr
, " handle=%p", req
->handle
);
3714 static void dump_get_next_device_request_request( const struct get_next_device_request_request
*req
)
3716 fprintf( stderr
, " manager=%p,", req
->manager
);
3717 fprintf( stderr
, " prev=%p,", req
->prev
);
3718 fprintf( stderr
, " status=%08x,", req
->status
);
3719 fprintf( stderr
, " prev_data=" );
3720 dump_varargs_bytes( cur_size
);
3723 static void dump_get_next_device_request_reply( const struct get_next_device_request_reply
*req
)
3725 fprintf( stderr
, " next=%p,", req
->next
);
3726 fprintf( stderr
, " code=" );
3727 dump_ioctl_code( &req
->code
);
3728 fprintf( stderr
, "," );
3729 fprintf( stderr
, " user_ptr=%p,", req
->user_ptr
);
3730 fprintf( stderr
, " in_size=%u,", req
->in_size
);
3731 fprintf( stderr
, " out_size=%u,", req
->out_size
);
3732 fprintf( stderr
, " next_data=" );
3733 dump_varargs_bytes( cur_size
);
3736 static void dump_make_process_system_request( const struct make_process_system_request
*req
)
3740 static void dump_make_process_system_reply( const struct make_process_system_reply
*req
)
3742 fprintf( stderr
, " event=%p", req
->event
);
3745 static void dump_get_token_statistics_request( const struct get_token_statistics_request
*req
)
3747 fprintf( stderr
, " handle=%p", req
->handle
);
3750 static void dump_get_token_statistics_reply( const struct get_token_statistics_reply
*req
)
3752 fprintf( stderr
, " token_id=" );
3753 dump_luid( &req
->token_id
);
3754 fprintf( stderr
, "," );
3755 fprintf( stderr
, " modified_id=" );
3756 dump_luid( &req
->modified_id
);
3757 fprintf( stderr
, "," );
3758 fprintf( stderr
, " primary=%d,", req
->primary
);
3759 fprintf( stderr
, " impersonation_level=%d,", req
->impersonation_level
);
3760 fprintf( stderr
, " group_count=%d,", req
->group_count
);
3761 fprintf( stderr
, " privilege_count=%d", req
->privilege_count
);
3764 static void dump_create_completion_request( const struct create_completion_request
*req
)
3766 fprintf( stderr
, " access=%08x,", req
->access
);
3767 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
3768 fprintf( stderr
, " concurrent=%08x,", req
->concurrent
);
3769 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
3770 fprintf( stderr
, " filename=" );
3771 dump_varargs_string( cur_size
);
3774 static void dump_create_completion_reply( const struct create_completion_reply
*req
)
3776 fprintf( stderr
, " handle=%p", req
->handle
);
3779 static void dump_open_completion_request( const struct open_completion_request
*req
)
3781 fprintf( stderr
, " access=%08x,", req
->access
);
3782 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
3783 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
3784 fprintf( stderr
, " filename=" );
3785 dump_varargs_string( cur_size
);
3788 static void dump_open_completion_reply( const struct open_completion_reply
*req
)
3790 fprintf( stderr
, " handle=%p", req
->handle
);
3793 static void dump_add_completion_request( const struct add_completion_request
*req
)
3795 fprintf( stderr
, " handle=%p,", req
->handle
);
3796 fprintf( stderr
, " ckey=%lx,", req
->ckey
);
3797 fprintf( stderr
, " cvalue=%lx,", req
->cvalue
);
3798 fprintf( stderr
, " information=%lx,", req
->information
);
3799 fprintf( stderr
, " status=%08x", req
->status
);
3802 static void dump_remove_completion_request( const struct remove_completion_request
*req
)
3804 fprintf( stderr
, " handle=%p", req
->handle
);
3807 static void dump_remove_completion_reply( const struct remove_completion_reply
*req
)
3809 fprintf( stderr
, " ckey=%lx,", req
->ckey
);
3810 fprintf( stderr
, " cvalue=%lx,", req
->cvalue
);
3811 fprintf( stderr
, " information=%lx,", req
->information
);
3812 fprintf( stderr
, " status=%08x", req
->status
);
3815 static void dump_query_completion_request( const struct query_completion_request
*req
)
3817 fprintf( stderr
, " handle=%p", req
->handle
);
3820 static void dump_query_completion_reply( const struct query_completion_reply
*req
)
3822 fprintf( stderr
, " depth=%08x", req
->depth
);
3825 static void dump_set_completion_info_request( const struct set_completion_info_request
*req
)
3827 fprintf( stderr
, " handle=%p,", req
->handle
);
3828 fprintf( stderr
, " chandle=%p,", req
->chandle
);
3829 fprintf( stderr
, " ckey=%lx", req
->ckey
);
3832 static void dump_add_fd_completion_request( const struct add_fd_completion_request
*req
)
3834 fprintf( stderr
, " handle=%p,", req
->handle
);
3835 fprintf( stderr
, " cvalue=%lx,", req
->cvalue
);
3836 fprintf( stderr
, " status=%08x,", req
->status
);
3837 fprintf( stderr
, " information=%lx", req
->information
);
3840 static const dump_func req_dumpers
[REQ_NB_REQUESTS
] = {
3841 (dump_func
)dump_new_process_request
,
3842 (dump_func
)dump_get_new_process_info_request
,
3843 (dump_func
)dump_new_thread_request
,
3844 (dump_func
)dump_get_startup_info_request
,
3845 (dump_func
)dump_init_process_done_request
,
3846 (dump_func
)dump_init_thread_request
,
3847 (dump_func
)dump_terminate_process_request
,
3848 (dump_func
)dump_terminate_thread_request
,
3849 (dump_func
)dump_get_process_info_request
,
3850 (dump_func
)dump_set_process_info_request
,
3851 (dump_func
)dump_get_thread_info_request
,
3852 (dump_func
)dump_set_thread_info_request
,
3853 (dump_func
)dump_get_dll_info_request
,
3854 (dump_func
)dump_suspend_thread_request
,
3855 (dump_func
)dump_resume_thread_request
,
3856 (dump_func
)dump_load_dll_request
,
3857 (dump_func
)dump_unload_dll_request
,
3858 (dump_func
)dump_queue_apc_request
,
3859 (dump_func
)dump_get_apc_result_request
,
3860 (dump_func
)dump_close_handle_request
,
3861 (dump_func
)dump_set_handle_info_request
,
3862 (dump_func
)dump_dup_handle_request
,
3863 (dump_func
)dump_open_process_request
,
3864 (dump_func
)dump_open_thread_request
,
3865 (dump_func
)dump_select_request
,
3866 (dump_func
)dump_create_event_request
,
3867 (dump_func
)dump_event_op_request
,
3868 (dump_func
)dump_open_event_request
,
3869 (dump_func
)dump_create_mutex_request
,
3870 (dump_func
)dump_release_mutex_request
,
3871 (dump_func
)dump_open_mutex_request
,
3872 (dump_func
)dump_create_semaphore_request
,
3873 (dump_func
)dump_release_semaphore_request
,
3874 (dump_func
)dump_open_semaphore_request
,
3875 (dump_func
)dump_create_file_request
,
3876 (dump_func
)dump_open_file_object_request
,
3877 (dump_func
)dump_alloc_file_handle_request
,
3878 (dump_func
)dump_get_handle_fd_request
,
3879 (dump_func
)dump_flush_file_request
,
3880 (dump_func
)dump_lock_file_request
,
3881 (dump_func
)dump_unlock_file_request
,
3882 (dump_func
)dump_create_socket_request
,
3883 (dump_func
)dump_accept_socket_request
,
3884 (dump_func
)dump_set_socket_event_request
,
3885 (dump_func
)dump_get_socket_event_request
,
3886 (dump_func
)dump_enable_socket_event_request
,
3887 (dump_func
)dump_set_socket_deferred_request
,
3888 (dump_func
)dump_alloc_console_request
,
3889 (dump_func
)dump_free_console_request
,
3890 (dump_func
)dump_get_console_renderer_events_request
,
3891 (dump_func
)dump_open_console_request
,
3892 (dump_func
)dump_get_console_wait_event_request
,
3893 (dump_func
)dump_get_console_mode_request
,
3894 (dump_func
)dump_set_console_mode_request
,
3895 (dump_func
)dump_set_console_input_info_request
,
3896 (dump_func
)dump_get_console_input_info_request
,
3897 (dump_func
)dump_append_console_input_history_request
,
3898 (dump_func
)dump_get_console_input_history_request
,
3899 (dump_func
)dump_create_console_output_request
,
3900 (dump_func
)dump_set_console_output_info_request
,
3901 (dump_func
)dump_get_console_output_info_request
,
3902 (dump_func
)dump_write_console_input_request
,
3903 (dump_func
)dump_read_console_input_request
,
3904 (dump_func
)dump_write_console_output_request
,
3905 (dump_func
)dump_fill_console_output_request
,
3906 (dump_func
)dump_read_console_output_request
,
3907 (dump_func
)dump_move_console_output_request
,
3908 (dump_func
)dump_send_console_signal_request
,
3909 (dump_func
)dump_read_directory_changes_request
,
3910 (dump_func
)dump_read_change_request
,
3911 (dump_func
)dump_create_mapping_request
,
3912 (dump_func
)dump_open_mapping_request
,
3913 (dump_func
)dump_get_mapping_info_request
,
3914 (dump_func
)dump_create_snapshot_request
,
3915 (dump_func
)dump_next_process_request
,
3916 (dump_func
)dump_next_thread_request
,
3917 (dump_func
)dump_next_module_request
,
3918 (dump_func
)dump_wait_debug_event_request
,
3919 (dump_func
)dump_queue_exception_event_request
,
3920 (dump_func
)dump_get_exception_status_request
,
3921 (dump_func
)dump_output_debug_string_request
,
3922 (dump_func
)dump_continue_debug_event_request
,
3923 (dump_func
)dump_debug_process_request
,
3924 (dump_func
)dump_debug_break_request
,
3925 (dump_func
)dump_set_debugger_kill_on_exit_request
,
3926 (dump_func
)dump_read_process_memory_request
,
3927 (dump_func
)dump_write_process_memory_request
,
3928 (dump_func
)dump_create_key_request
,
3929 (dump_func
)dump_open_key_request
,
3930 (dump_func
)dump_delete_key_request
,
3931 (dump_func
)dump_flush_key_request
,
3932 (dump_func
)dump_enum_key_request
,
3933 (dump_func
)dump_set_key_value_request
,
3934 (dump_func
)dump_get_key_value_request
,
3935 (dump_func
)dump_enum_key_value_request
,
3936 (dump_func
)dump_delete_key_value_request
,
3937 (dump_func
)dump_load_registry_request
,
3938 (dump_func
)dump_unload_registry_request
,
3939 (dump_func
)dump_save_registry_request
,
3940 (dump_func
)dump_set_registry_notification_request
,
3941 (dump_func
)dump_create_timer_request
,
3942 (dump_func
)dump_open_timer_request
,
3943 (dump_func
)dump_set_timer_request
,
3944 (dump_func
)dump_cancel_timer_request
,
3945 (dump_func
)dump_get_timer_info_request
,
3946 (dump_func
)dump_get_thread_context_request
,
3947 (dump_func
)dump_set_thread_context_request
,
3948 (dump_func
)dump_get_selector_entry_request
,
3949 (dump_func
)dump_add_atom_request
,
3950 (dump_func
)dump_delete_atom_request
,
3951 (dump_func
)dump_find_atom_request
,
3952 (dump_func
)dump_get_atom_information_request
,
3953 (dump_func
)dump_set_atom_information_request
,
3954 (dump_func
)dump_empty_atom_table_request
,
3955 (dump_func
)dump_init_atom_table_request
,
3956 (dump_func
)dump_get_msg_queue_request
,
3957 (dump_func
)dump_set_queue_fd_request
,
3958 (dump_func
)dump_set_queue_mask_request
,
3959 (dump_func
)dump_get_queue_status_request
,
3960 (dump_func
)dump_get_process_idle_event_request
,
3961 (dump_func
)dump_send_message_request
,
3962 (dump_func
)dump_post_quit_message_request
,
3963 (dump_func
)dump_send_hardware_message_request
,
3964 (dump_func
)dump_get_message_request
,
3965 (dump_func
)dump_reply_message_request
,
3966 (dump_func
)dump_accept_hardware_message_request
,
3967 (dump_func
)dump_get_message_reply_request
,
3968 (dump_func
)dump_set_win_timer_request
,
3969 (dump_func
)dump_kill_win_timer_request
,
3970 (dump_func
)dump_is_window_hung_request
,
3971 (dump_func
)dump_get_serial_info_request
,
3972 (dump_func
)dump_set_serial_info_request
,
3973 (dump_func
)dump_register_async_request
,
3974 (dump_func
)dump_cancel_async_request
,
3975 (dump_func
)dump_ioctl_request
,
3976 (dump_func
)dump_get_ioctl_result_request
,
3977 (dump_func
)dump_create_named_pipe_request
,
3978 (dump_func
)dump_get_named_pipe_info_request
,
3979 (dump_func
)dump_create_cursor_request
,
3980 (dump_func
)dump_destroy_cursor_request
,
3981 (dump_func
)dump_get_cursor_info_request
,
3982 (dump_func
)dump_get_cursor_frame_request
,
3983 (dump_func
)dump_set_cursor_frame_request
,
3984 (dump_func
)dump_create_window_request
,
3985 (dump_func
)dump_destroy_window_request
,
3986 (dump_func
)dump_get_desktop_window_request
,
3987 (dump_func
)dump_set_window_owner_request
,
3988 (dump_func
)dump_get_window_info_request
,
3989 (dump_func
)dump_set_window_info_request
,
3990 (dump_func
)dump_set_parent_request
,
3991 (dump_func
)dump_get_window_parents_request
,
3992 (dump_func
)dump_get_window_children_request
,
3993 (dump_func
)dump_get_window_children_from_point_request
,
3994 (dump_func
)dump_get_window_tree_request
,
3995 (dump_func
)dump_set_window_pos_request
,
3996 (dump_func
)dump_get_window_rectangles_request
,
3997 (dump_func
)dump_get_window_text_request
,
3998 (dump_func
)dump_set_window_text_request
,
3999 (dump_func
)dump_get_windows_offset_request
,
4000 (dump_func
)dump_get_visible_region_request
,
4001 (dump_func
)dump_get_window_region_request
,
4002 (dump_func
)dump_set_window_region_request
,
4003 (dump_func
)dump_get_update_region_request
,
4004 (dump_func
)dump_update_window_zorder_request
,
4005 (dump_func
)dump_redraw_window_request
,
4006 (dump_func
)dump_set_window_property_request
,
4007 (dump_func
)dump_remove_window_property_request
,
4008 (dump_func
)dump_get_window_property_request
,
4009 (dump_func
)dump_get_window_properties_request
,
4010 (dump_func
)dump_create_winstation_request
,
4011 (dump_func
)dump_open_winstation_request
,
4012 (dump_func
)dump_close_winstation_request
,
4013 (dump_func
)dump_get_process_winstation_request
,
4014 (dump_func
)dump_set_process_winstation_request
,
4015 (dump_func
)dump_enum_winstation_request
,
4016 (dump_func
)dump_create_desktop_request
,
4017 (dump_func
)dump_open_desktop_request
,
4018 (dump_func
)dump_close_desktop_request
,
4019 (dump_func
)dump_get_thread_desktop_request
,
4020 (dump_func
)dump_set_thread_desktop_request
,
4021 (dump_func
)dump_enum_desktop_request
,
4022 (dump_func
)dump_set_user_object_info_request
,
4023 (dump_func
)dump_attach_thread_input_request
,
4024 (dump_func
)dump_get_thread_input_request
,
4025 (dump_func
)dump_get_last_input_time_request
,
4026 (dump_func
)dump_get_key_state_request
,
4027 (dump_func
)dump_set_key_state_request
,
4028 (dump_func
)dump_set_foreground_window_request
,
4029 (dump_func
)dump_set_focus_window_request
,
4030 (dump_func
)dump_set_active_window_request
,
4031 (dump_func
)dump_set_capture_window_request
,
4032 (dump_func
)dump_set_caret_window_request
,
4033 (dump_func
)dump_set_caret_info_request
,
4034 (dump_func
)dump_set_hook_request
,
4035 (dump_func
)dump_remove_hook_request
,
4036 (dump_func
)dump_start_hook_chain_request
,
4037 (dump_func
)dump_finish_hook_chain_request
,
4038 (dump_func
)dump_get_hook_info_request
,
4039 (dump_func
)dump_create_class_request
,
4040 (dump_func
)dump_destroy_class_request
,
4041 (dump_func
)dump_set_class_info_request
,
4042 (dump_func
)dump_set_clipboard_info_request
,
4043 (dump_func
)dump_open_token_request
,
4044 (dump_func
)dump_set_global_windows_request
,
4045 (dump_func
)dump_adjust_token_privileges_request
,
4046 (dump_func
)dump_get_token_privileges_request
,
4047 (dump_func
)dump_check_token_privileges_request
,
4048 (dump_func
)dump_duplicate_token_request
,
4049 (dump_func
)dump_access_check_request
,
4050 (dump_func
)dump_get_token_user_request
,
4051 (dump_func
)dump_get_token_groups_request
,
4052 (dump_func
)dump_set_security_object_request
,
4053 (dump_func
)dump_get_security_object_request
,
4054 (dump_func
)dump_create_mailslot_request
,
4055 (dump_func
)dump_set_mailslot_info_request
,
4056 (dump_func
)dump_create_directory_request
,
4057 (dump_func
)dump_open_directory_request
,
4058 (dump_func
)dump_get_directory_entry_request
,
4059 (dump_func
)dump_create_symlink_request
,
4060 (dump_func
)dump_open_symlink_request
,
4061 (dump_func
)dump_query_symlink_request
,
4062 (dump_func
)dump_get_object_info_request
,
4063 (dump_func
)dump_get_token_impersonation_level_request
,
4064 (dump_func
)dump_allocate_locally_unique_id_request
,
4065 (dump_func
)dump_create_device_manager_request
,
4066 (dump_func
)dump_create_device_request
,
4067 (dump_func
)dump_delete_device_request
,
4068 (dump_func
)dump_get_next_device_request_request
,
4069 (dump_func
)dump_make_process_system_request
,
4070 (dump_func
)dump_get_token_statistics_request
,
4071 (dump_func
)dump_create_completion_request
,
4072 (dump_func
)dump_open_completion_request
,
4073 (dump_func
)dump_add_completion_request
,
4074 (dump_func
)dump_remove_completion_request
,
4075 (dump_func
)dump_query_completion_request
,
4076 (dump_func
)dump_set_completion_info_request
,
4077 (dump_func
)dump_add_fd_completion_request
,
4080 static const dump_func reply_dumpers
[REQ_NB_REQUESTS
] = {
4081 (dump_func
)dump_new_process_reply
,
4082 (dump_func
)dump_get_new_process_info_reply
,
4083 (dump_func
)dump_new_thread_reply
,
4084 (dump_func
)dump_get_startup_info_reply
,
4086 (dump_func
)dump_init_thread_reply
,
4087 (dump_func
)dump_terminate_process_reply
,
4088 (dump_func
)dump_terminate_thread_reply
,
4089 (dump_func
)dump_get_process_info_reply
,
4091 (dump_func
)dump_get_thread_info_reply
,
4093 (dump_func
)dump_get_dll_info_reply
,
4094 (dump_func
)dump_suspend_thread_reply
,
4095 (dump_func
)dump_resume_thread_reply
,
4098 (dump_func
)dump_queue_apc_reply
,
4099 (dump_func
)dump_get_apc_result_reply
,
4101 (dump_func
)dump_set_handle_info_reply
,
4102 (dump_func
)dump_dup_handle_reply
,
4103 (dump_func
)dump_open_process_reply
,
4104 (dump_func
)dump_open_thread_reply
,
4105 (dump_func
)dump_select_reply
,
4106 (dump_func
)dump_create_event_reply
,
4108 (dump_func
)dump_open_event_reply
,
4109 (dump_func
)dump_create_mutex_reply
,
4110 (dump_func
)dump_release_mutex_reply
,
4111 (dump_func
)dump_open_mutex_reply
,
4112 (dump_func
)dump_create_semaphore_reply
,
4113 (dump_func
)dump_release_semaphore_reply
,
4114 (dump_func
)dump_open_semaphore_reply
,
4115 (dump_func
)dump_create_file_reply
,
4116 (dump_func
)dump_open_file_object_reply
,
4117 (dump_func
)dump_alloc_file_handle_reply
,
4118 (dump_func
)dump_get_handle_fd_reply
,
4119 (dump_func
)dump_flush_file_reply
,
4120 (dump_func
)dump_lock_file_reply
,
4122 (dump_func
)dump_create_socket_reply
,
4123 (dump_func
)dump_accept_socket_reply
,
4125 (dump_func
)dump_get_socket_event_reply
,
4128 (dump_func
)dump_alloc_console_reply
,
4130 (dump_func
)dump_get_console_renderer_events_reply
,
4131 (dump_func
)dump_open_console_reply
,
4132 (dump_func
)dump_get_console_wait_event_reply
,
4133 (dump_func
)dump_get_console_mode_reply
,
4136 (dump_func
)dump_get_console_input_info_reply
,
4138 (dump_func
)dump_get_console_input_history_reply
,
4139 (dump_func
)dump_create_console_output_reply
,
4141 (dump_func
)dump_get_console_output_info_reply
,
4142 (dump_func
)dump_write_console_input_reply
,
4143 (dump_func
)dump_read_console_input_reply
,
4144 (dump_func
)dump_write_console_output_reply
,
4145 (dump_func
)dump_fill_console_output_reply
,
4146 (dump_func
)dump_read_console_output_reply
,
4150 (dump_func
)dump_read_change_reply
,
4151 (dump_func
)dump_create_mapping_reply
,
4152 (dump_func
)dump_open_mapping_reply
,
4153 (dump_func
)dump_get_mapping_info_reply
,
4154 (dump_func
)dump_create_snapshot_reply
,
4155 (dump_func
)dump_next_process_reply
,
4156 (dump_func
)dump_next_thread_reply
,
4157 (dump_func
)dump_next_module_reply
,
4158 (dump_func
)dump_wait_debug_event_reply
,
4159 (dump_func
)dump_queue_exception_event_reply
,
4160 (dump_func
)dump_get_exception_status_reply
,
4164 (dump_func
)dump_debug_break_reply
,
4166 (dump_func
)dump_read_process_memory_reply
,
4168 (dump_func
)dump_create_key_reply
,
4169 (dump_func
)dump_open_key_reply
,
4172 (dump_func
)dump_enum_key_reply
,
4174 (dump_func
)dump_get_key_value_reply
,
4175 (dump_func
)dump_enum_key_value_reply
,
4181 (dump_func
)dump_create_timer_reply
,
4182 (dump_func
)dump_open_timer_reply
,
4183 (dump_func
)dump_set_timer_reply
,
4184 (dump_func
)dump_cancel_timer_reply
,
4185 (dump_func
)dump_get_timer_info_reply
,
4186 (dump_func
)dump_get_thread_context_reply
,
4187 (dump_func
)dump_set_thread_context_reply
,
4188 (dump_func
)dump_get_selector_entry_reply
,
4189 (dump_func
)dump_add_atom_reply
,
4191 (dump_func
)dump_find_atom_reply
,
4192 (dump_func
)dump_get_atom_information_reply
,
4195 (dump_func
)dump_init_atom_table_reply
,
4196 (dump_func
)dump_get_msg_queue_reply
,
4198 (dump_func
)dump_set_queue_mask_reply
,
4199 (dump_func
)dump_get_queue_status_reply
,
4200 (dump_func
)dump_get_process_idle_event_reply
,
4204 (dump_func
)dump_get_message_reply
,
4207 (dump_func
)dump_get_message_reply_reply
,
4208 (dump_func
)dump_set_win_timer_reply
,
4210 (dump_func
)dump_is_window_hung_reply
,
4211 (dump_func
)dump_get_serial_info_reply
,
4215 (dump_func
)dump_ioctl_reply
,
4216 (dump_func
)dump_get_ioctl_result_reply
,
4217 (dump_func
)dump_create_named_pipe_reply
,
4218 (dump_func
)dump_get_named_pipe_info_reply
,
4219 (dump_func
)dump_create_cursor_reply
,
4221 (dump_func
)dump_get_cursor_info_reply
,
4222 (dump_func
)dump_get_cursor_frame_reply
,
4224 (dump_func
)dump_create_window_reply
,
4226 (dump_func
)dump_get_desktop_window_reply
,
4227 (dump_func
)dump_set_window_owner_reply
,
4228 (dump_func
)dump_get_window_info_reply
,
4229 (dump_func
)dump_set_window_info_reply
,
4230 (dump_func
)dump_set_parent_reply
,
4231 (dump_func
)dump_get_window_parents_reply
,
4232 (dump_func
)dump_get_window_children_reply
,
4233 (dump_func
)dump_get_window_children_from_point_reply
,
4234 (dump_func
)dump_get_window_tree_reply
,
4235 (dump_func
)dump_set_window_pos_reply
,
4236 (dump_func
)dump_get_window_rectangles_reply
,
4237 (dump_func
)dump_get_window_text_reply
,
4239 (dump_func
)dump_get_windows_offset_reply
,
4240 (dump_func
)dump_get_visible_region_reply
,
4241 (dump_func
)dump_get_window_region_reply
,
4243 (dump_func
)dump_get_update_region_reply
,
4247 (dump_func
)dump_remove_window_property_reply
,
4248 (dump_func
)dump_get_window_property_reply
,
4249 (dump_func
)dump_get_window_properties_reply
,
4250 (dump_func
)dump_create_winstation_reply
,
4251 (dump_func
)dump_open_winstation_reply
,
4253 (dump_func
)dump_get_process_winstation_reply
,
4255 (dump_func
)dump_enum_winstation_reply
,
4256 (dump_func
)dump_create_desktop_reply
,
4257 (dump_func
)dump_open_desktop_reply
,
4259 (dump_func
)dump_get_thread_desktop_reply
,
4261 (dump_func
)dump_enum_desktop_reply
,
4262 (dump_func
)dump_set_user_object_info_reply
,
4264 (dump_func
)dump_get_thread_input_reply
,
4265 (dump_func
)dump_get_last_input_time_reply
,
4266 (dump_func
)dump_get_key_state_reply
,
4268 (dump_func
)dump_set_foreground_window_reply
,
4269 (dump_func
)dump_set_focus_window_reply
,
4270 (dump_func
)dump_set_active_window_reply
,
4271 (dump_func
)dump_set_capture_window_reply
,
4272 (dump_func
)dump_set_caret_window_reply
,
4273 (dump_func
)dump_set_caret_info_reply
,
4274 (dump_func
)dump_set_hook_reply
,
4275 (dump_func
)dump_remove_hook_reply
,
4276 (dump_func
)dump_start_hook_chain_reply
,
4278 (dump_func
)dump_get_hook_info_reply
,
4279 (dump_func
)dump_create_class_reply
,
4280 (dump_func
)dump_destroy_class_reply
,
4281 (dump_func
)dump_set_class_info_reply
,
4282 (dump_func
)dump_set_clipboard_info_reply
,
4283 (dump_func
)dump_open_token_reply
,
4284 (dump_func
)dump_set_global_windows_reply
,
4285 (dump_func
)dump_adjust_token_privileges_reply
,
4286 (dump_func
)dump_get_token_privileges_reply
,
4287 (dump_func
)dump_check_token_privileges_reply
,
4288 (dump_func
)dump_duplicate_token_reply
,
4289 (dump_func
)dump_access_check_reply
,
4290 (dump_func
)dump_get_token_user_reply
,
4291 (dump_func
)dump_get_token_groups_reply
,
4293 (dump_func
)dump_get_security_object_reply
,
4294 (dump_func
)dump_create_mailslot_reply
,
4295 (dump_func
)dump_set_mailslot_info_reply
,
4296 (dump_func
)dump_create_directory_reply
,
4297 (dump_func
)dump_open_directory_reply
,
4298 (dump_func
)dump_get_directory_entry_reply
,
4299 (dump_func
)dump_create_symlink_reply
,
4300 (dump_func
)dump_open_symlink_reply
,
4301 (dump_func
)dump_query_symlink_reply
,
4302 (dump_func
)dump_get_object_info_reply
,
4303 (dump_func
)dump_get_token_impersonation_level_reply
,
4304 (dump_func
)dump_allocate_locally_unique_id_reply
,
4305 (dump_func
)dump_create_device_manager_reply
,
4306 (dump_func
)dump_create_device_reply
,
4308 (dump_func
)dump_get_next_device_request_reply
,
4309 (dump_func
)dump_make_process_system_reply
,
4310 (dump_func
)dump_get_token_statistics_reply
,
4311 (dump_func
)dump_create_completion_reply
,
4312 (dump_func
)dump_open_completion_reply
,
4314 (dump_func
)dump_remove_completion_reply
,
4315 (dump_func
)dump_query_completion_reply
,
4320 static const char * const req_names
[REQ_NB_REQUESTS
] = {
4322 "get_new_process_info",
4325 "init_process_done",
4327 "terminate_process",
4353 "release_semaphore",
4357 "alloc_file_handle",
4366 "enable_socket_event",
4367 "set_socket_deferred",
4370 "get_console_renderer_events",
4372 "get_console_wait_event",
4375 "set_console_input_info",
4376 "get_console_input_info",
4377 "append_console_input_history",
4378 "get_console_input_history",
4379 "create_console_output",
4380 "set_console_output_info",
4381 "get_console_output_info",
4382 "write_console_input",
4383 "read_console_input",
4384 "write_console_output",
4385 "fill_console_output",
4386 "read_console_output",
4387 "move_console_output",
4388 "send_console_signal",
4389 "read_directory_changes",
4399 "queue_exception_event",
4400 "get_exception_status",
4401 "output_debug_string",
4402 "continue_debug_event",
4405 "set_debugger_kill_on_exit",
4406 "read_process_memory",
4407 "write_process_memory",
4420 "set_registry_notification",
4426 "get_thread_context",
4427 "set_thread_context",
4428 "get_selector_entry",
4432 "get_atom_information",
4433 "set_atom_information",
4440 "get_process_idle_event",
4442 "post_quit_message",
4443 "send_hardware_message",
4446 "accept_hardware_message",
4447 "get_message_reply",
4457 "create_named_pipe",
4458 "get_named_pipe_info",
4466 "get_desktop_window",
4471 "get_window_parents",
4472 "get_window_children",
4473 "get_window_children_from_point",
4476 "get_window_rectangles",
4479 "get_windows_offset",
4480 "get_visible_region",
4481 "get_window_region",
4482 "set_window_region",
4483 "get_update_region",
4484 "update_window_zorder",
4486 "set_window_property",
4487 "remove_window_property",
4488 "get_window_property",
4489 "get_window_properties",
4490 "create_winstation",
4493 "get_process_winstation",
4494 "set_process_winstation",
4499 "get_thread_desktop",
4500 "set_thread_desktop",
4502 "set_user_object_info",
4503 "attach_thread_input",
4505 "get_last_input_time",
4508 "set_foreground_window",
4510 "set_active_window",
4511 "set_capture_window",
4517 "finish_hook_chain",
4522 "set_clipboard_info",
4524 "set_global_windows",
4525 "adjust_token_privileges",
4526 "get_token_privileges",
4527 "check_token_privileges",
4532 "set_security_object",
4533 "get_security_object",
4535 "set_mailslot_info",
4538 "get_directory_entry",
4543 "get_token_impersonation_level",
4544 "allocate_locally_unique_id",
4545 "create_device_manager",
4548 "get_next_device_request",
4549 "make_process_system",
4550 "get_token_statistics",
4551 "create_completion",
4554 "remove_completion",
4556 "set_completion_info",
4557 "add_fd_completion",
4566 { "ABANDONED_WAIT_0", STATUS_ABANDONED_WAIT_0
},
4567 { "ACCESS_DENIED", STATUS_ACCESS_DENIED
},
4568 { "ACCESS_VIOLATION", STATUS_ACCESS_VIOLATION
},
4569 { "ALERTED", STATUS_ALERTED
},
4570 { "ALIAS_EXISTS", STATUS_ALIAS_EXISTS
},
4571 { "BAD_DEVICE_TYPE", STATUS_BAD_DEVICE_TYPE
},
4572 { "BAD_IMPERSONATION_LEVEL", STATUS_BAD_IMPERSONATION_LEVEL
},
4573 { "BREAKPOINT", STATUS_BREAKPOINT
},
4574 { "BUFFER_OVERFLOW", STATUS_BUFFER_OVERFLOW
},
4575 { "BUFFER_TOO_SMALL", STATUS_BUFFER_TOO_SMALL
},
4576 { "CANCELLED", STATUS_CANCELLED
},
4577 { "CANT_OPEN_ANONYMOUS", STATUS_CANT_OPEN_ANONYMOUS
},
4578 { "CHILD_MUST_BE_VOLATILE", STATUS_CHILD_MUST_BE_VOLATILE
},
4579 { "DEBUGGER_INACTIVE", STATUS_DEBUGGER_INACTIVE
},
4580 { "DEVICE_BUSY", STATUS_DEVICE_BUSY
},
4581 { "DIRECTORY_NOT_EMPTY", STATUS_DIRECTORY_NOT_EMPTY
},
4582 { "DISK_FULL", STATUS_DISK_FULL
},
4583 { "DLL_NOT_FOUND", STATUS_DLL_NOT_FOUND
},
4584 { "ERROR_CLASS_ALREADY_EXISTS", 0xc0010000 | ERROR_CLASS_ALREADY_EXISTS
},
4585 { "ERROR_CLASS_DOES_NOT_EXIST", 0xc0010000 | ERROR_CLASS_DOES_NOT_EXIST
},
4586 { "ERROR_CLASS_HAS_WINDOWS", 0xc0010000 | ERROR_CLASS_HAS_WINDOWS
},
4587 { "ERROR_CLIPBOARD_NOT_OPEN", 0xc0010000 | ERROR_CLIPBOARD_NOT_OPEN
},
4588 { "ERROR_INVALID_INDEX", 0xc0010000 | ERROR_INVALID_INDEX
},
4589 { "ERROR_INVALID_WINDOW_HANDLE", 0xc0010000 | ERROR_INVALID_WINDOW_HANDLE
},
4590 { "FILE_DELETED", STATUS_FILE_DELETED
},
4591 { "FILE_IS_A_DIRECTORY", STATUS_FILE_IS_A_DIRECTORY
},
4592 { "FILE_LOCK_CONFLICT", STATUS_FILE_LOCK_CONFLICT
},
4593 { "GENERIC_NOT_MAPPED", STATUS_GENERIC_NOT_MAPPED
},
4594 { "HANDLES_CLOSED", STATUS_HANDLES_CLOSED
},
4595 { "HANDLE_NOT_CLOSABLE", STATUS_HANDLE_NOT_CLOSABLE
},
4596 { "ILLEGAL_FUNCTION", STATUS_ILLEGAL_FUNCTION
},
4597 { "INSTANCE_NOT_AVAILABLE", STATUS_INSTANCE_NOT_AVAILABLE
},
4598 { "INVALID_CID", STATUS_INVALID_CID
},
4599 { "INVALID_DEVICE_REQUEST", STATUS_INVALID_DEVICE_REQUEST
},
4600 { "INVALID_FILE_FOR_SECTION", STATUS_INVALID_FILE_FOR_SECTION
},
4601 { "INVALID_HANDLE", STATUS_INVALID_HANDLE
},
4602 { "INVALID_PARAMETER", STATUS_INVALID_PARAMETER
},
4603 { "INVALID_SECURITY_DESCR", STATUS_INVALID_SECURITY_DESCR
},
4604 { "IO_TIMEOUT", STATUS_IO_TIMEOUT
},
4605 { "KEY_DELETED", STATUS_KEY_DELETED
},
4606 { "MAPPED_FILE_SIZE_ZERO", STATUS_MAPPED_FILE_SIZE_ZERO
},
4607 { "MEDIA_WRITE_PROTECTED", STATUS_MEDIA_WRITE_PROTECTED
},
4608 { "MUTANT_NOT_OWNED", STATUS_MUTANT_NOT_OWNED
},
4609 { "NAME_TOO_LONG", STATUS_NAME_TOO_LONG
},
4610 { "NOTIFY_ENUM_DIR", STATUS_NOTIFY_ENUM_DIR
},
4611 { "NOT_ALL_ASSIGNED", STATUS_NOT_ALL_ASSIGNED
},
4612 { "NOT_A_DIRECTORY", STATUS_NOT_A_DIRECTORY
},
4613 { "NOT_IMPLEMENTED", STATUS_NOT_IMPLEMENTED
},
4614 { "NOT_REGISTRY_FILE", STATUS_NOT_REGISTRY_FILE
},
4615 { "NOT_SUPPORTED", STATUS_NOT_SUPPORTED
},
4616 { "NO_DATA_DETECTED", STATUS_NO_DATA_DETECTED
},
4617 { "NO_IMPERSONATION_TOKEN", STATUS_NO_IMPERSONATION_TOKEN
},
4618 { "NO_MEMORY", STATUS_NO_MEMORY
},
4619 { "NO_MORE_ENTRIES", STATUS_NO_MORE_ENTRIES
},
4620 { "NO_MORE_FILES", STATUS_NO_MORE_FILES
},
4621 { "NO_SUCH_DEVICE", STATUS_NO_SUCH_DEVICE
},
4622 { "NO_SUCH_FILE", STATUS_NO_SUCH_FILE
},
4623 { "NO_TOKEN", STATUS_NO_TOKEN
},
4624 { "OBJECT_NAME_COLLISION", STATUS_OBJECT_NAME_COLLISION
},
4625 { "OBJECT_NAME_EXISTS", STATUS_OBJECT_NAME_EXISTS
},
4626 { "OBJECT_NAME_INVALID", STATUS_OBJECT_NAME_INVALID
},
4627 { "OBJECT_NAME_NOT_FOUND", STATUS_OBJECT_NAME_NOT_FOUND
},
4628 { "OBJECT_PATH_INVALID", STATUS_OBJECT_PATH_INVALID
},
4629 { "OBJECT_PATH_NOT_FOUND", STATUS_OBJECT_PATH_NOT_FOUND
},
4630 { "OBJECT_PATH_SYNTAX_BAD", STATUS_OBJECT_PATH_SYNTAX_BAD
},
4631 { "OBJECT_TYPE_MISMATCH", STATUS_OBJECT_TYPE_MISMATCH
},
4632 { "PENDING", STATUS_PENDING
},
4633 { "PIPE_BUSY", STATUS_PIPE_BUSY
},
4634 { "PIPE_CONNECTED", STATUS_PIPE_CONNECTED
},
4635 { "PIPE_DISCONNECTED", STATUS_PIPE_DISCONNECTED
},
4636 { "PIPE_LISTENING", STATUS_PIPE_LISTENING
},
4637 { "PIPE_NOT_AVAILABLE", STATUS_PIPE_NOT_AVAILABLE
},
4638 { "PRIVILEGE_NOT_HELD", STATUS_PRIVILEGE_NOT_HELD
},
4639 { "PROCESS_IS_TERMINATING", STATUS_PROCESS_IS_TERMINATING
},
4640 { "SECTION_TOO_BIG", STATUS_SECTION_TOO_BIG
},
4641 { "SEMAPHORE_LIMIT_EXCEEDED", STATUS_SEMAPHORE_LIMIT_EXCEEDED
},
4642 { "SHARING_VIOLATION", STATUS_SHARING_VIOLATION
},
4643 { "SHUTDOWN_IN_PROGRESS", STATUS_SHUTDOWN_IN_PROGRESS
},
4644 { "SUSPEND_COUNT_EXCEEDED", STATUS_SUSPEND_COUNT_EXCEEDED
},
4645 { "THREAD_IS_TERMINATING", STATUS_THREAD_IS_TERMINATING
},
4646 { "TIMEOUT", STATUS_TIMEOUT
},
4647 { "TOO_MANY_OPENED_FILES", STATUS_TOO_MANY_OPENED_FILES
},
4648 { "UNSUCCESSFUL", STATUS_UNSUCCESSFUL
},
4649 { "USER_APC", STATUS_USER_APC
},
4650 { "VOLUME_DISMOUNTED", STATUS_VOLUME_DISMOUNTED
},
4651 { "WAS_LOCKED", STATUS_WAS_LOCKED
},
4655 /* ### make_requests end ### */
4656 /* Everything above this line is generated automatically by tools/make_requests */
4658 static const char *get_status_name( unsigned int status
)
4661 static char buffer
[10];
4665 for (i
= 0; status_names
[i
].name
; i
++)
4666 if (status_names
[i
].value
== status
) return status_names
[i
].name
;
4668 sprintf( buffer
, "%x", status
);
4672 void trace_request(void)
4674 enum request req
= current
->req
.request_header
.req
;
4675 if (req
< REQ_NB_REQUESTS
)
4677 fprintf( stderr
, "%04x: %s(", current
->id
, req_names
[req
] );
4678 if (req_dumpers
[req
])
4680 cur_data
= get_req_data();
4681 cur_size
= get_req_data_size();
4682 req_dumpers
[req
]( ¤t
->req
);
4684 fprintf( stderr
, " )\n" );
4686 else fprintf( stderr
, "%04x: %d(?)\n", current
->id
, req
);
4689 void trace_reply( enum request req
, const union generic_reply
*reply
)
4691 if (req
< REQ_NB_REQUESTS
)
4693 fprintf( stderr
, "%04x: %s() = %s",
4694 current
->id
, req_names
[req
], get_status_name(current
->error
) );
4695 if (reply_dumpers
[req
])
4697 fprintf( stderr
, " {" );
4698 cur_data
= current
->reply_data
;
4699 cur_size
= reply
->reply_header
.reply_size
;
4700 reply_dumpers
[req
]( reply
);
4701 fprintf( stderr
, " }" );
4703 fputc( '\n', stderr
);
4705 else fprintf( stderr
, "%04x: %d() = %s\n",
4706 current
->id
, req
, get_status_name(current
->error
) );