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
)
265 fprintf( stderr
, "{flags=%08x,eax=%08x,ebx=%08x,ecx=%08x,edx=%08x,esi=%08x,edi=%08x,"
266 "ebp=%08x,eip=%08x,esp=%08x,eflags=%08x,cs=%04x,ds=%04x,es=%04x,"
267 "fs=%04x,gs=%04x,dr0=%08x,dr1=%08x,dr2=%08x,dr3=%08x,dr6=%08x,dr7=%08x,",
268 context
->ContextFlags
, context
->Eax
, context
->Ebx
, context
->Ecx
, context
->Edx
,
269 context
->Esi
, context
->Edi
, context
->Ebp
, context
->Eip
, context
->Esp
, context
->EFlags
,
270 context
->SegCs
, context
->SegDs
, context
->SegEs
, context
->SegFs
, context
->SegGs
,
271 context
->Dr0
, context
->Dr1
, context
->Dr2
, context
->Dr3
, context
->Dr6
, context
->Dr7
);
272 fprintf( stderr
, "float=" );
273 dump_uints( (const int *)&context
->FloatSave
, sizeof(context
->FloatSave
) / sizeof(int) );
274 fprintf( stderr
, "}" );
276 dump_uints( (const int *)context
, sizeof(*context
) / sizeof(int) );
280 static void dump_exc_record( const EXCEPTION_RECORD
*rec
)
283 fprintf( stderr
, "{code=%x,flags=%x,rec=%p,addr=%p,params={",
284 rec
->ExceptionCode
, rec
->ExceptionFlags
, rec
->ExceptionRecord
,
285 rec
->ExceptionAddress
);
286 for (i
= 0; i
< min(rec
->NumberParameters
,EXCEPTION_MAXIMUM_PARAMETERS
); i
++)
288 if (i
) fputc( ',', stderr
);
289 fprintf( stderr
, "%lx", rec
->ExceptionInformation
[i
] );
291 fputc( '}', stderr
);
294 static void dump_varargs_ints( data_size_t size
)
296 const int *data
= cur_data
;
297 data_size_t len
= size
/ sizeof(*data
);
299 fputc( '{', stderr
);
302 fprintf( stderr
, "%d", *data
++ );
303 if (--len
) fputc( ',', stderr
);
305 fputc( '}', stderr
);
309 static void dump_varargs_apc_result( data_size_t size
)
311 const apc_result_t
*result
= cur_data
;
313 if (size
>= sizeof(*result
))
315 dump_apc_result( result
);
316 size
= sizeof(*result
);
321 static void dump_varargs_handles( data_size_t size
)
323 const obj_handle_t
*data
= cur_data
;
324 data_size_t len
= size
/ sizeof(*data
);
326 fputc( '{', stderr
);
329 fprintf( stderr
, "%p", *data
++ );
330 if (--len
) fputc( ',', stderr
);
332 fputc( '}', stderr
);
336 static void dump_varargs_user_handles( data_size_t size
)
338 const user_handle_t
*data
= cur_data
;
339 data_size_t len
= size
/ sizeof(*data
);
341 fputc( '{', stderr
);
344 fprintf( stderr
, "%p", *data
++ );
345 if (--len
) fputc( ',', stderr
);
347 fputc( '}', stderr
);
351 static void dump_varargs_bytes( data_size_t size
)
353 const unsigned char *data
= cur_data
;
354 data_size_t len
= size
;
356 fputc( '{', stderr
);
359 fprintf( stderr
, "%02x", *data
++ );
360 if (--len
) fputc( ',', stderr
);
362 fputc( '}', stderr
);
366 static void dump_varargs_string( data_size_t size
)
368 fprintf( stderr
, "\"%.*s\"", (int)size
, (const char *)cur_data
);
372 static void dump_varargs_unicode_str( data_size_t size
)
374 fprintf( stderr
, "L\"" );
375 dump_strW( cur_data
, size
/ sizeof(WCHAR
), stderr
, "\"\"" );
376 fputc( '\"', stderr
);
380 static void dump_varargs_context( data_size_t size
)
384 fprintf( stderr
, "{}" );
387 dump_context( cur_data
);
391 static void dump_varargs_exc_event( data_size_t size
)
393 const CONTEXT
*ptr
= cur_data
;
397 fprintf( stderr
, "{}" );
400 fprintf( stderr
, "{context=" );
402 fprintf( stderr
, ",rec=" );
403 dump_exc_record( (const EXCEPTION_RECORD
*)(ptr
+ 1) );
404 fputc( '}', stderr
);
408 static void dump_varargs_debug_event( data_size_t size
)
410 const debug_event_t
*event
= cur_data
;
414 fprintf( stderr
, "{}" );
419 case EXCEPTION_DEBUG_EVENT
:
420 fprintf( stderr
, "{exception," );
421 dump_exc_record( &event
->info
.exception
.record
);
422 fprintf( stderr
, ",first=%d}", event
->info
.exception
.first
);
424 case CREATE_THREAD_DEBUG_EVENT
:
425 fprintf( stderr
, "{create_thread,thread=%p,teb=%p,start=%p}",
426 event
->info
.create_thread
.handle
, event
->info
.create_thread
.teb
,
427 event
->info
.create_thread
.start
);
429 case CREATE_PROCESS_DEBUG_EVENT
:
430 fprintf( stderr
, "{create_process,file=%p,process=%p,thread=%p,base=%p,offset=%d,"
431 "size=%d,teb=%p,start=%p,name=%p,unicode=%d}",
432 event
->info
.create_process
.file
, event
->info
.create_process
.process
,
433 event
->info
.create_process
.thread
, event
->info
.create_process
.base
,
434 event
->info
.create_process
.dbg_offset
, event
->info
.create_process
.dbg_size
,
435 event
->info
.create_process
.teb
, event
->info
.create_process
.start
,
436 event
->info
.create_process
.name
, event
->info
.create_process
.unicode
);
438 case EXIT_THREAD_DEBUG_EVENT
:
439 fprintf( stderr
, "{exit_thread,code=%d}", event
->info
.exit
.exit_code
);
441 case EXIT_PROCESS_DEBUG_EVENT
:
442 fprintf( stderr
, "{exit_process,code=%d}", event
->info
.exit
.exit_code
);
444 case LOAD_DLL_DEBUG_EVENT
:
445 fprintf( stderr
, "{load_dll,file=%p,base=%p,offset=%d,size=%d,name=%p,unicode=%d}",
446 event
->info
.load_dll
.handle
, event
->info
.load_dll
.base
,
447 event
->info
.load_dll
.dbg_offset
, event
->info
.load_dll
.dbg_size
,
448 event
->info
.load_dll
.name
, event
->info
.load_dll
.unicode
);
450 case UNLOAD_DLL_DEBUG_EVENT
:
451 fprintf( stderr
, "{unload_dll,base=%p}", event
->info
.unload_dll
.base
);
453 case OUTPUT_DEBUG_STRING_EVENT
:
454 fprintf( stderr
, "{output_string,data=%p,unicode=%d,len=%d}",
455 event
->info
.output_string
.string
, event
->info
.output_string
.unicode
,
456 event
->info
.output_string
.length
);
459 fprintf( stderr
, "{rip,err=%d,type=%d}",
460 event
->info
.rip_info
.error
, event
->info
.rip_info
.type
);
462 case 0: /* zero is the code returned on timeouts */
463 fprintf( stderr
, "{}" );
466 fprintf( stderr
, "{code=??? (%d)}", event
->code
);
472 /* dump a unicode string contained in a buffer; helper for dump_varargs_startup_info */
473 static void dump_inline_unicode_string( const UNICODE_STRING
*str
, const void *data
, data_size_t size
)
475 size_t length
= str
->Length
;
476 size_t offset
= (size_t)str
->Buffer
;
478 if (offset
>= size
) return;
479 if (offset
+ length
> size
) length
= size
- offset
;
480 dump_strW( (const WCHAR
*)data
+ offset
/sizeof(WCHAR
), length
/sizeof(WCHAR
), stderr
, "\"\"" );
483 static void dump_varargs_startup_info( data_size_t size
)
485 const RTL_USER_PROCESS_PARAMETERS
*ptr
= cur_data
;
486 RTL_USER_PROCESS_PARAMETERS params
;
488 if (size
< sizeof(params
.Size
))
490 fprintf( stderr
, "{}" );
493 if (size
> ptr
->Size
) size
= ptr
->Size
;
494 memset( ¶ms
, 0, sizeof(params
) );
495 memcpy( ¶ms
, ptr
, min( size
, sizeof(params
) ));
497 fprintf( stderr
, "{AllocationSize=%x,", params
.AllocationSize
);
498 fprintf( stderr
, "Size=%x,", params
.Size
);
499 fprintf( stderr
, "Flags=%x,", params
.Flags
);
500 fprintf( stderr
, "DebugFlags=%x,", params
.DebugFlags
);
501 fprintf( stderr
, "ConsoleHandle=%p,", params
.ConsoleHandle
);
502 fprintf( stderr
, "ConsoleFlags=%x,", params
.ConsoleFlags
);
503 fprintf( stderr
, "hStdInput=%p,", params
.hStdInput
);
504 fprintf( stderr
, "hStdOutput=%p,", params
.hStdOutput
);
505 fprintf( stderr
, "hStdError=%p,", params
.hStdError
);
506 fprintf( stderr
, "CurrentDirectory.Handle=%p,", params
.CurrentDirectory
.Handle
);
507 fprintf( stderr
, "dwX=%d,", params
.dwX
);
508 fprintf( stderr
, "dwY=%d,", params
.dwY
);
509 fprintf( stderr
, "dwXSize=%d,", params
.dwXSize
);
510 fprintf( stderr
, "dwYSize=%d,", params
.dwYSize
);
511 fprintf( stderr
, "dwXCountChars=%d,", params
.dwXCountChars
);
512 fprintf( stderr
, "dwYCountChars=%d,", params
.dwYCountChars
);
513 fprintf( stderr
, "dwFillAttribute=%x,", params
.dwFillAttribute
);
514 fprintf( stderr
, "dwFlags=%x,", params
.dwFlags
);
515 fprintf( stderr
, "wShowWindow=%x,", params
.wShowWindow
);
516 fprintf( stderr
, "CurrentDirectory.DosPath=L\"" );
517 dump_inline_unicode_string( ¶ms
.CurrentDirectory
.DosPath
, cur_data
, size
);
518 fprintf( stderr
, "\",DllPath=L\"" );
519 dump_inline_unicode_string( ¶ms
.DllPath
, cur_data
, size
);
520 fprintf( stderr
, "\",ImagePathName=L\"" );
521 dump_inline_unicode_string( ¶ms
.ImagePathName
, cur_data
, size
);
522 fprintf( stderr
, "\",CommandLine=L\"" );
523 dump_inline_unicode_string( ¶ms
.CommandLine
, cur_data
, size
);
524 fprintf( stderr
, "\",WindowTitle=L\"" );
525 dump_inline_unicode_string( ¶ms
.WindowTitle
, cur_data
, size
);
526 fprintf( stderr
, "\",Desktop=L\"" );
527 dump_inline_unicode_string( ¶ms
.Desktop
, cur_data
, size
);
528 fprintf( stderr
, "\",ShellInfo=L\"" );
529 dump_inline_unicode_string( ¶ms
.ShellInfo
, cur_data
, size
);
530 fprintf( stderr
, "\",RuntimeInfo=L\"" );
531 dump_inline_unicode_string( ¶ms
.RuntimeInfo
, cur_data
, size
);
532 fprintf( stderr
, "\"}" );
536 static void dump_varargs_input_records( data_size_t size
)
538 const INPUT_RECORD
*rec
= cur_data
;
539 data_size_t len
= size
/ sizeof(*rec
);
541 fputc( '{', stderr
);
544 fprintf( stderr
, "{%04x,...}", rec
->EventType
);
546 if (--len
) fputc( ',', stderr
);
548 fputc( '}', stderr
);
552 static void dump_varargs_rectangles( data_size_t size
)
554 const rectangle_t
*rect
= cur_data
;
555 data_size_t len
= size
/ sizeof(*rect
);
557 fputc( '{', stderr
);
560 dump_rectangle( rect
++ );
561 if (--len
) fputc( ',', stderr
);
563 fputc( '}', stderr
);
567 static void dump_varargs_message_data( data_size_t size
)
569 /* FIXME: dump the structured data */
570 dump_varargs_bytes( size
);
573 static void dump_varargs_properties( data_size_t size
)
575 const property_data_t
*prop
= cur_data
;
576 data_size_t len
= size
/ sizeof(*prop
);
578 fputc( '{', stderr
);
581 fprintf( stderr
, "{atom=%04x,str=%d,handle=%p}",
582 prop
->atom
, prop
->string
, prop
->handle
);
584 if (--len
) fputc( ',', stderr
);
586 fputc( '}', stderr
);
590 static void dump_varargs_LUID_AND_ATTRIBUTES( data_size_t size
)
592 const LUID_AND_ATTRIBUTES
*lat
= cur_data
;
593 data_size_t len
= size
/ sizeof(*lat
);
595 fputc( '{', stderr
);
598 fprintf( stderr
, "{luid=%08x%08x,attr=%x}",
599 lat
->Luid
.HighPart
, lat
->Luid
.LowPart
, lat
->Attributes
);
601 if (--len
) fputc( ',', stderr
);
603 fputc( '}', stderr
);
607 static void dump_inline_sid( const SID
*sid
, data_size_t size
)
612 if ((FIELD_OFFSET(SID
, SubAuthority
[0]) > size
) ||
613 (FIELD_OFFSET(SID
, SubAuthority
[sid
->SubAuthorityCount
]) > size
))
615 fprintf( stderr
, "<invalid sid>" );
619 fputc( '{', stderr
);
620 fprintf( stderr
, "S-%u-%u", sid
->Revision
, MAKELONG(
621 MAKEWORD( sid
->IdentifierAuthority
.Value
[5],
622 sid
->IdentifierAuthority
.Value
[4] ),
623 MAKEWORD( sid
->IdentifierAuthority
.Value
[3],
624 sid
->IdentifierAuthority
.Value
[2] ) ) );
625 for (i
= 0; i
< sid
->SubAuthorityCount
; i
++)
626 fprintf( stderr
, "-%u", sid
->SubAuthority
[i
] );
627 fputc( '}', stderr
);
630 static void dump_varargs_SID( data_size_t size
)
632 const SID
*sid
= cur_data
;
633 dump_inline_sid( sid
, size
);
637 static void dump_inline_acl( const ACL
*acl
, data_size_t size
)
639 const ACE_HEADER
*ace
;
641 fputc( '{', stderr
);
645 if (size
< sizeof(ACL
))
647 fprintf( stderr
, "<invalid acl>}\n" );
651 ace
= (const ACE_HEADER
*)(acl
+ 1);
652 for (i
= 0; i
< acl
->AceCount
; i
++)
654 const SID
*sid
= NULL
;
655 data_size_t sid_size
= 0;
657 if (size
< sizeof(ACE_HEADER
))
659 if (size
< ace
->AceSize
)
661 size
-= ace
->AceSize
;
662 if (i
!= 0) fputc( ',', stderr
);
663 fprintf( stderr
, "{AceType=" );
664 switch (ace
->AceType
)
666 case ACCESS_DENIED_ACE_TYPE
:
667 sid
= (const SID
*)&((const ACCESS_DENIED_ACE
*)ace
)->SidStart
;
668 sid_size
= ace
->AceSize
- FIELD_OFFSET(ACCESS_DENIED_ACE
, SidStart
);
669 fprintf( stderr
, "ACCESS_DENIED_ACE_TYPE,Mask=%x",
670 ((const ACCESS_DENIED_ACE
*)ace
)->Mask
);
672 case ACCESS_ALLOWED_ACE_TYPE
:
673 sid
= (const SID
*)&((const ACCESS_ALLOWED_ACE
*)ace
)->SidStart
;
674 sid_size
= ace
->AceSize
- FIELD_OFFSET(ACCESS_ALLOWED_ACE
, SidStart
);
675 fprintf( stderr
, "ACCESS_ALLOWED_ACE_TYPE,Mask=%x",
676 ((const ACCESS_ALLOWED_ACE
*)ace
)->Mask
);
678 case SYSTEM_AUDIT_ACE_TYPE
:
679 sid
= (const SID
*)&((const SYSTEM_AUDIT_ACE
*)ace
)->SidStart
;
680 sid_size
= ace
->AceSize
- FIELD_OFFSET(SYSTEM_AUDIT_ACE
, SidStart
);
681 fprintf( stderr
, "SYSTEM_AUDIT_ACE_TYPE,Mask=%x",
682 ((const SYSTEM_AUDIT_ACE
*)ace
)->Mask
);
684 case SYSTEM_ALARM_ACE_TYPE
:
685 sid
= (const SID
*)&((const SYSTEM_ALARM_ACE
*)ace
)->SidStart
;
686 sid_size
= ace
->AceSize
- FIELD_OFFSET(SYSTEM_ALARM_ACE
, SidStart
);
687 fprintf( stderr
, "SYSTEM_ALARM_ACE_TYPE,Mask=%x",
688 ((const SYSTEM_ALARM_ACE
*)ace
)->Mask
);
691 fprintf( stderr
, "unknown<%d>", ace
->AceType
);
694 fprintf( stderr
, ",AceFlags=%x,Sid=", ace
->AceFlags
);
696 dump_inline_sid( sid
, sid_size
);
697 ace
= (const ACE_HEADER
*)((const char *)ace
+ ace
->AceSize
);
698 fputc( '}', stderr
);
701 fputc( '}', stderr
);
704 static void dump_inline_security_descriptor( const struct security_descriptor
*sd
, data_size_t size
)
706 fputc( '{', stderr
);
707 if (size
>= sizeof(struct security_descriptor
))
709 size_t offset
= sizeof(struct security_descriptor
);
710 fprintf( stderr
, "control=%08x", sd
->control
);
711 fprintf( stderr
, ",owner=" );
712 if ((sd
->owner_len
> FIELD_OFFSET(SID
, SubAuthority
[255])) || (offset
+ sd
->owner_len
> size
))
715 dump_inline_sid( (const SID
*)((const char *)sd
+ offset
), sd
->owner_len
);
717 fprintf( stderr
, "<not present>" );
718 offset
+= sd
->owner_len
;
719 fprintf( stderr
, ",group=" );
720 if ((sd
->group_len
> FIELD_OFFSET(SID
, SubAuthority
[255])) || (offset
+ sd
->group_len
> size
))
723 dump_inline_sid( (const SID
*)((const char *)sd
+ offset
), sd
->group_len
);
725 fprintf( stderr
, "<not present>" );
726 offset
+= sd
->group_len
;
727 fprintf( stderr
, ",sacl=" );
728 if ((sd
->sacl_len
>= MAX_ACL_LEN
) || (offset
+ sd
->sacl_len
> size
))
730 dump_inline_acl( (const ACL
*)((const char *)sd
+ offset
), sd
->sacl_len
);
731 offset
+= sd
->sacl_len
;
732 fprintf( stderr
, ",dacl=" );
733 if ((sd
->dacl_len
>= MAX_ACL_LEN
) || (offset
+ sd
->dacl_len
> size
))
735 dump_inline_acl( (const ACL
*)((const char *)sd
+ offset
), sd
->dacl_len
);
736 offset
+= sd
->dacl_len
;
738 fputc( '}', stderr
);
741 static void dump_varargs_security_descriptor( data_size_t size
)
743 const struct security_descriptor
*sd
= cur_data
;
744 dump_inline_security_descriptor( sd
, size
);
748 static void dump_varargs_token_groups( data_size_t size
)
750 const struct token_groups
*tg
= cur_data
;
751 fputc( '{', stderr
);
752 if (size
>= sizeof(struct token_groups
))
754 size_t offset
= sizeof(*tg
);
755 fprintf( stderr
, "count=%08x,", tg
->count
);
756 if (tg
->count
* sizeof(unsigned int) <= size
)
759 const unsigned int *attr
= (const unsigned int *)(tg
+ 1);
761 offset
+= tg
->count
* sizeof(unsigned int);
763 fputc( '[', stderr
);
764 for (i
= 0; i
< tg
->count
; i
++)
766 const SID
*sid
= (const SID
*)((const char *)cur_data
+ offset
);
768 fputc( ',', stderr
);
769 fputc( '{', stderr
);
770 fprintf( stderr
, "attributes=%08x", attr
[i
] );
771 fprintf( stderr
, ",sid=" );
772 dump_inline_sid( sid
, size
- offset
);
773 if ((offset
+ FIELD_OFFSET(SID
, SubAuthority
[0]) > size
) ||
774 (offset
+ FIELD_OFFSET(SID
, SubAuthority
[sid
->SubAuthorityCount
]) > size
))
776 offset
+= FIELD_OFFSET(SID
, SubAuthority
[sid
->SubAuthorityCount
]);
777 fputc( '}', stderr
);
779 fputc( ']', stderr
);
782 fputc( '}', stderr
);
785 static void dump_varargs_object_attributes( data_size_t size
)
787 const struct object_attributes
*objattr
= cur_data
;
788 fputc( '{', stderr
);
789 if (size
>= sizeof(struct object_attributes
))
792 fprintf( stderr
, "rootdir=%p,sd=", objattr
->rootdir
);
793 if (objattr
->sd_len
> size
- sizeof(*objattr
) ||
794 objattr
->name_len
> size
- sizeof(*objattr
) - objattr
->sd_len
)
796 dump_inline_security_descriptor( (const struct security_descriptor
*)(objattr
+ 1), objattr
->sd_len
);
797 str
= (const WCHAR
*)objattr
+ (sizeof(*objattr
) + objattr
->sd_len
) / sizeof(WCHAR
);
798 fprintf( stderr
, ",name=L\"" );
799 dump_strW( str
, objattr
->name_len
/ sizeof(WCHAR
), stderr
, "\"\"" );
800 fputc( '\"', stderr
);
801 remove_data( ((sizeof(*objattr
) + objattr
->sd_len
) / sizeof(WCHAR
)) * sizeof(WCHAR
) +
804 fputc( '}', stderr
);
807 typedef void (*dump_func
)( const void *req
);
809 /* Everything below this line is generated automatically by tools/make_requests */
810 /* ### make_requests begin ### */
812 static void dump_new_process_request( const struct new_process_request
*req
)
814 fprintf( stderr
, " inherit_all=%d,", req
->inherit_all
);
815 fprintf( stderr
, " create_flags=%08x,", req
->create_flags
);
816 fprintf( stderr
, " socket_fd=%d,", req
->socket_fd
);
817 fprintf( stderr
, " exe_file=%p,", req
->exe_file
);
818 fprintf( stderr
, " hstdin=%p,", req
->hstdin
);
819 fprintf( stderr
, " hstdout=%p,", req
->hstdout
);
820 fprintf( stderr
, " hstderr=%p,", req
->hstderr
);
821 fprintf( stderr
, " process_access=%08x,", req
->process_access
);
822 fprintf( stderr
, " process_attr=%08x,", req
->process_attr
);
823 fprintf( stderr
, " thread_access=%08x,", req
->thread_access
);
824 fprintf( stderr
, " thread_attr=%08x,", req
->thread_attr
);
825 fprintf( stderr
, " info=" );
826 dump_varargs_startup_info( cur_size
);
827 fputc( ',', stderr
);
828 fprintf( stderr
, " env=" );
829 dump_varargs_unicode_str( cur_size
);
832 static void dump_new_process_reply( const struct new_process_reply
*req
)
834 fprintf( stderr
, " info=%p,", req
->info
);
835 fprintf( stderr
, " pid=%04x,", req
->pid
);
836 fprintf( stderr
, " phandle=%p,", req
->phandle
);
837 fprintf( stderr
, " tid=%04x,", req
->tid
);
838 fprintf( stderr
, " thandle=%p", req
->thandle
);
841 static void dump_get_new_process_info_request( const struct get_new_process_info_request
*req
)
843 fprintf( stderr
, " info=%p", req
->info
);
846 static void dump_get_new_process_info_reply( const struct get_new_process_info_reply
*req
)
848 fprintf( stderr
, " success=%d,", req
->success
);
849 fprintf( stderr
, " exit_code=%d", req
->exit_code
);
852 static void dump_new_thread_request( const struct new_thread_request
*req
)
854 fprintf( stderr
, " access=%08x,", req
->access
);
855 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
856 fprintf( stderr
, " suspend=%d,", req
->suspend
);
857 fprintf( stderr
, " request_fd=%d", req
->request_fd
);
860 static void dump_new_thread_reply( const struct new_thread_reply
*req
)
862 fprintf( stderr
, " tid=%04x,", req
->tid
);
863 fprintf( stderr
, " handle=%p", req
->handle
);
866 static void dump_get_startup_info_request( const struct get_startup_info_request
*req
)
870 static void dump_get_startup_info_reply( const struct get_startup_info_reply
*req
)
872 fprintf( stderr
, " exe_file=%p,", req
->exe_file
);
873 fprintf( stderr
, " hstdin=%p,", req
->hstdin
);
874 fprintf( stderr
, " hstdout=%p,", req
->hstdout
);
875 fprintf( stderr
, " hstderr=%p,", req
->hstderr
);
876 fprintf( stderr
, " info=" );
877 dump_varargs_startup_info( cur_size
);
878 fputc( ',', stderr
);
879 fprintf( stderr
, " env=" );
880 dump_varargs_unicode_str( cur_size
);
883 static void dump_init_process_done_request( const struct init_process_done_request
*req
)
885 fprintf( stderr
, " module=%p,", req
->module
);
886 fprintf( stderr
, " entry=%p,", req
->entry
);
887 fprintf( stderr
, " gui=%d", req
->gui
);
890 static void dump_init_thread_request( const struct init_thread_request
*req
)
892 fprintf( stderr
, " unix_pid=%d,", req
->unix_pid
);
893 fprintf( stderr
, " unix_tid=%d,", req
->unix_tid
);
894 fprintf( stderr
, " debug_level=%d,", req
->debug_level
);
895 fprintf( stderr
, " teb=%p,", req
->teb
);
896 fprintf( stderr
, " peb=%p,", req
->peb
);
897 fprintf( stderr
, " entry=%p,", req
->entry
);
898 fprintf( stderr
, " ldt_copy=%p,", req
->ldt_copy
);
899 fprintf( stderr
, " reply_fd=%d,", req
->reply_fd
);
900 fprintf( stderr
, " wait_fd=%d", req
->wait_fd
);
903 static void dump_init_thread_reply( const struct init_thread_reply
*req
)
905 fprintf( stderr
, " pid=%04x,", req
->pid
);
906 fprintf( stderr
, " tid=%04x,", req
->tid
);
907 fprintf( stderr
, " info_size=%u,", req
->info_size
);
908 fprintf( stderr
, " server_start=" );
909 dump_timeout( &req
->server_start
);
910 fprintf( stderr
, "," );
911 fprintf( stderr
, " version=%d", req
->version
);
914 static void dump_terminate_process_request( const struct terminate_process_request
*req
)
916 fprintf( stderr
, " handle=%p,", req
->handle
);
917 fprintf( stderr
, " exit_code=%d", req
->exit_code
);
920 static void dump_terminate_process_reply( const struct terminate_process_reply
*req
)
922 fprintf( stderr
, " self=%d", req
->self
);
925 static void dump_terminate_thread_request( const struct terminate_thread_request
*req
)
927 fprintf( stderr
, " handle=%p,", req
->handle
);
928 fprintf( stderr
, " exit_code=%d", req
->exit_code
);
931 static void dump_terminate_thread_reply( const struct terminate_thread_reply
*req
)
933 fprintf( stderr
, " self=%d,", req
->self
);
934 fprintf( stderr
, " last=%d", req
->last
);
937 static void dump_get_process_info_request( const struct get_process_info_request
*req
)
939 fprintf( stderr
, " handle=%p", req
->handle
);
942 static void dump_get_process_info_reply( const struct get_process_info_reply
*req
)
944 fprintf( stderr
, " pid=%04x,", req
->pid
);
945 fprintf( stderr
, " ppid=%04x,", req
->ppid
);
946 fprintf( stderr
, " exit_code=%d,", req
->exit_code
);
947 fprintf( stderr
, " priority=%d,", req
->priority
);
948 fprintf( stderr
, " affinity=%d,", req
->affinity
);
949 fprintf( stderr
, " peb=%p,", req
->peb
);
950 fprintf( stderr
, " start_time=" );
951 dump_timeout( &req
->start_time
);
952 fprintf( stderr
, "," );
953 fprintf( stderr
, " end_time=" );
954 dump_timeout( &req
->end_time
);
957 static void dump_set_process_info_request( const struct set_process_info_request
*req
)
959 fprintf( stderr
, " handle=%p,", req
->handle
);
960 fprintf( stderr
, " mask=%d,", req
->mask
);
961 fprintf( stderr
, " priority=%d,", req
->priority
);
962 fprintf( stderr
, " affinity=%d", req
->affinity
);
965 static void dump_get_thread_info_request( const struct get_thread_info_request
*req
)
967 fprintf( stderr
, " handle=%p,", req
->handle
);
968 fprintf( stderr
, " tid_in=%04x", req
->tid_in
);
971 static void dump_get_thread_info_reply( const struct get_thread_info_reply
*req
)
973 fprintf( stderr
, " pid=%04x,", req
->pid
);
974 fprintf( stderr
, " tid=%04x,", req
->tid
);
975 fprintf( stderr
, " teb=%p,", req
->teb
);
976 fprintf( stderr
, " exit_code=%d,", req
->exit_code
);
977 fprintf( stderr
, " priority=%d,", req
->priority
);
978 fprintf( stderr
, " affinity=%d,", req
->affinity
);
979 fprintf( stderr
, " creation_time=" );
980 dump_timeout( &req
->creation_time
);
981 fprintf( stderr
, "," );
982 fprintf( stderr
, " exit_time=" );
983 dump_timeout( &req
->exit_time
);
984 fprintf( stderr
, "," );
985 fprintf( stderr
, " last=%d", req
->last
);
988 static void dump_set_thread_info_request( const struct set_thread_info_request
*req
)
990 fprintf( stderr
, " handle=%p,", req
->handle
);
991 fprintf( stderr
, " mask=%d,", req
->mask
);
992 fprintf( stderr
, " priority=%d,", req
->priority
);
993 fprintf( stderr
, " affinity=%d,", req
->affinity
);
994 fprintf( stderr
, " token=%p", req
->token
);
997 static void dump_get_dll_info_request( const struct get_dll_info_request
*req
)
999 fprintf( stderr
, " handle=%p,", req
->handle
);
1000 fprintf( stderr
, " base_address=%p", req
->base_address
);
1003 static void dump_get_dll_info_reply( const struct get_dll_info_reply
*req
)
1005 fprintf( stderr
, " size=%lu,", (unsigned long)req
->size
);
1006 fprintf( stderr
, " entry_point=%p,", req
->entry_point
);
1007 fprintf( stderr
, " filename=" );
1008 dump_varargs_unicode_str( cur_size
);
1011 static void dump_suspend_thread_request( const struct suspend_thread_request
*req
)
1013 fprintf( stderr
, " handle=%p", req
->handle
);
1016 static void dump_suspend_thread_reply( const struct suspend_thread_reply
*req
)
1018 fprintf( stderr
, " count=%d", req
->count
);
1021 static void dump_resume_thread_request( const struct resume_thread_request
*req
)
1023 fprintf( stderr
, " handle=%p", req
->handle
);
1026 static void dump_resume_thread_reply( const struct resume_thread_reply
*req
)
1028 fprintf( stderr
, " count=%d", req
->count
);
1031 static void dump_load_dll_request( const struct load_dll_request
*req
)
1033 fprintf( stderr
, " handle=%p,", req
->handle
);
1034 fprintf( stderr
, " base=%p,", req
->base
);
1035 fprintf( stderr
, " size=%lu,", (unsigned long)req
->size
);
1036 fprintf( stderr
, " dbg_offset=%d,", req
->dbg_offset
);
1037 fprintf( stderr
, " dbg_size=%d,", req
->dbg_size
);
1038 fprintf( stderr
, " name=%p,", req
->name
);
1039 fprintf( stderr
, " filename=" );
1040 dump_varargs_unicode_str( cur_size
);
1043 static void dump_unload_dll_request( const struct unload_dll_request
*req
)
1045 fprintf( stderr
, " base=%p", req
->base
);
1048 static void dump_queue_apc_request( const struct queue_apc_request
*req
)
1050 fprintf( stderr
, " thread=%p,", req
->thread
);
1051 fprintf( stderr
, " process=%p,", req
->process
);
1052 fprintf( stderr
, " call=" );
1053 dump_apc_call( &req
->call
);
1056 static void dump_queue_apc_reply( const struct queue_apc_reply
*req
)
1058 fprintf( stderr
, " handle=%p,", req
->handle
);
1059 fprintf( stderr
, " self=%d", req
->self
);
1062 static void dump_get_apc_result_request( const struct get_apc_result_request
*req
)
1064 fprintf( stderr
, " handle=%p", req
->handle
);
1067 static void dump_get_apc_result_reply( const struct get_apc_result_reply
*req
)
1069 fprintf( stderr
, " result=" );
1070 dump_apc_result( &req
->result
);
1073 static void dump_close_handle_request( const struct close_handle_request
*req
)
1075 fprintf( stderr
, " handle=%p", req
->handle
);
1078 static void dump_set_handle_info_request( const struct set_handle_info_request
*req
)
1080 fprintf( stderr
, " handle=%p,", req
->handle
);
1081 fprintf( stderr
, " flags=%d,", req
->flags
);
1082 fprintf( stderr
, " mask=%d", req
->mask
);
1085 static void dump_set_handle_info_reply( const struct set_handle_info_reply
*req
)
1087 fprintf( stderr
, " old_flags=%d", req
->old_flags
);
1090 static void dump_dup_handle_request( const struct dup_handle_request
*req
)
1092 fprintf( stderr
, " src_process=%p,", req
->src_process
);
1093 fprintf( stderr
, " src_handle=%p,", req
->src_handle
);
1094 fprintf( stderr
, " dst_process=%p,", req
->dst_process
);
1095 fprintf( stderr
, " access=%08x,", req
->access
);
1096 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1097 fprintf( stderr
, " options=%08x", req
->options
);
1100 static void dump_dup_handle_reply( const struct dup_handle_reply
*req
)
1102 fprintf( stderr
, " handle=%p,", req
->handle
);
1103 fprintf( stderr
, " self=%d,", req
->self
);
1104 fprintf( stderr
, " closed=%d", req
->closed
);
1107 static void dump_open_process_request( const struct open_process_request
*req
)
1109 fprintf( stderr
, " pid=%04x,", req
->pid
);
1110 fprintf( stderr
, " access=%08x,", req
->access
);
1111 fprintf( stderr
, " attributes=%08x", req
->attributes
);
1114 static void dump_open_process_reply( const struct open_process_reply
*req
)
1116 fprintf( stderr
, " handle=%p", req
->handle
);
1119 static void dump_open_thread_request( const struct open_thread_request
*req
)
1121 fprintf( stderr
, " tid=%04x,", req
->tid
);
1122 fprintf( stderr
, " access=%08x,", req
->access
);
1123 fprintf( stderr
, " attributes=%08x", req
->attributes
);
1126 static void dump_open_thread_reply( const struct open_thread_reply
*req
)
1128 fprintf( stderr
, " handle=%p", req
->handle
);
1131 static void dump_select_request( const struct select_request
*req
)
1133 fprintf( stderr
, " flags=%d,", req
->flags
);
1134 fprintf( stderr
, " cookie=%p,", req
->cookie
);
1135 fprintf( stderr
, " signal=%p,", req
->signal
);
1136 fprintf( stderr
, " prev_apc=%p,", req
->prev_apc
);
1137 fprintf( stderr
, " timeout=" );
1138 dump_timeout( &req
->timeout
);
1139 fprintf( stderr
, "," );
1140 fprintf( stderr
, " result=" );
1141 dump_varargs_apc_result( cur_size
);
1142 fputc( ',', stderr
);
1143 fprintf( stderr
, " handles=" );
1144 dump_varargs_handles( cur_size
);
1147 static void dump_select_reply( const struct select_reply
*req
)
1149 fprintf( stderr
, " apc_handle=%p,", req
->apc_handle
);
1150 fprintf( stderr
, " timeout=" );
1151 dump_timeout( &req
->timeout
);
1152 fprintf( stderr
, "," );
1153 fprintf( stderr
, " call=" );
1154 dump_apc_call( &req
->call
);
1157 static void dump_create_event_request( const struct create_event_request
*req
)
1159 fprintf( stderr
, " access=%08x,", req
->access
);
1160 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1161 fprintf( stderr
, " manual_reset=%d,", req
->manual_reset
);
1162 fprintf( stderr
, " initial_state=%d,", req
->initial_state
);
1163 fprintf( stderr
, " objattr=" );
1164 dump_varargs_object_attributes( cur_size
);
1167 static void dump_create_event_reply( const struct create_event_reply
*req
)
1169 fprintf( stderr
, " handle=%p", req
->handle
);
1172 static void dump_event_op_request( const struct event_op_request
*req
)
1174 fprintf( stderr
, " handle=%p,", req
->handle
);
1175 fprintf( stderr
, " op=%d", req
->op
);
1178 static void dump_open_event_request( const struct open_event_request
*req
)
1180 fprintf( stderr
, " access=%08x,", req
->access
);
1181 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1182 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
1183 fprintf( stderr
, " name=" );
1184 dump_varargs_unicode_str( cur_size
);
1187 static void dump_open_event_reply( const struct open_event_reply
*req
)
1189 fprintf( stderr
, " handle=%p", req
->handle
);
1192 static void dump_create_mutex_request( const struct create_mutex_request
*req
)
1194 fprintf( stderr
, " access=%08x,", req
->access
);
1195 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1196 fprintf( stderr
, " owned=%d,", req
->owned
);
1197 fprintf( stderr
, " objattr=" );
1198 dump_varargs_object_attributes( cur_size
);
1201 static void dump_create_mutex_reply( const struct create_mutex_reply
*req
)
1203 fprintf( stderr
, " handle=%p", req
->handle
);
1206 static void dump_release_mutex_request( const struct release_mutex_request
*req
)
1208 fprintf( stderr
, " handle=%p", req
->handle
);
1211 static void dump_release_mutex_reply( const struct release_mutex_reply
*req
)
1213 fprintf( stderr
, " prev_count=%08x", req
->prev_count
);
1216 static void dump_open_mutex_request( const struct open_mutex_request
*req
)
1218 fprintf( stderr
, " access=%08x,", req
->access
);
1219 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1220 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
1221 fprintf( stderr
, " name=" );
1222 dump_varargs_unicode_str( cur_size
);
1225 static void dump_open_mutex_reply( const struct open_mutex_reply
*req
)
1227 fprintf( stderr
, " handle=%p", req
->handle
);
1230 static void dump_create_semaphore_request( const struct create_semaphore_request
*req
)
1232 fprintf( stderr
, " access=%08x,", req
->access
);
1233 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1234 fprintf( stderr
, " initial=%08x,", req
->initial
);
1235 fprintf( stderr
, " max=%08x,", req
->max
);
1236 fprintf( stderr
, " objattr=" );
1237 dump_varargs_object_attributes( cur_size
);
1240 static void dump_create_semaphore_reply( const struct create_semaphore_reply
*req
)
1242 fprintf( stderr
, " handle=%p", req
->handle
);
1245 static void dump_release_semaphore_request( const struct release_semaphore_request
*req
)
1247 fprintf( stderr
, " handle=%p,", req
->handle
);
1248 fprintf( stderr
, " count=%08x", req
->count
);
1251 static void dump_release_semaphore_reply( const struct release_semaphore_reply
*req
)
1253 fprintf( stderr
, " prev_count=%08x", req
->prev_count
);
1256 static void dump_open_semaphore_request( const struct open_semaphore_request
*req
)
1258 fprintf( stderr
, " access=%08x,", req
->access
);
1259 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1260 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
1261 fprintf( stderr
, " name=" );
1262 dump_varargs_unicode_str( cur_size
);
1265 static void dump_open_semaphore_reply( const struct open_semaphore_reply
*req
)
1267 fprintf( stderr
, " handle=%p", req
->handle
);
1270 static void dump_create_file_request( const struct create_file_request
*req
)
1272 fprintf( stderr
, " access=%08x,", req
->access
);
1273 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1274 fprintf( stderr
, " sharing=%08x,", req
->sharing
);
1275 fprintf( stderr
, " create=%d,", req
->create
);
1276 fprintf( stderr
, " options=%08x,", req
->options
);
1277 fprintf( stderr
, " attrs=%08x,", req
->attrs
);
1278 fprintf( stderr
, " objattr=" );
1279 dump_varargs_object_attributes( cur_size
);
1280 fputc( ',', stderr
);
1281 fprintf( stderr
, " filename=" );
1282 dump_varargs_string( cur_size
);
1285 static void dump_create_file_reply( const struct create_file_reply
*req
)
1287 fprintf( stderr
, " handle=%p", req
->handle
);
1290 static void dump_open_file_object_request( const struct open_file_object_request
*req
)
1292 fprintf( stderr
, " access=%08x,", req
->access
);
1293 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1294 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
1295 fprintf( stderr
, " sharing=%08x,", req
->sharing
);
1296 fprintf( stderr
, " options=%08x,", req
->options
);
1297 fprintf( stderr
, " filename=" );
1298 dump_varargs_unicode_str( cur_size
);
1301 static void dump_open_file_object_reply( const struct open_file_object_reply
*req
)
1303 fprintf( stderr
, " handle=%p", req
->handle
);
1306 static void dump_alloc_file_handle_request( const struct alloc_file_handle_request
*req
)
1308 fprintf( stderr
, " access=%08x,", req
->access
);
1309 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1310 fprintf( stderr
, " fd=%d", req
->fd
);
1313 static void dump_alloc_file_handle_reply( const struct alloc_file_handle_reply
*req
)
1315 fprintf( stderr
, " handle=%p", req
->handle
);
1318 static void dump_get_handle_fd_request( const struct get_handle_fd_request
*req
)
1320 fprintf( stderr
, " handle=%p", req
->handle
);
1323 static void dump_get_handle_fd_reply( const struct get_handle_fd_reply
*req
)
1325 fprintf( stderr
, " type=%d,", req
->type
);
1326 fprintf( stderr
, " removable=%d,", req
->removable
);
1327 fprintf( stderr
, " access=%08x,", req
->access
);
1328 fprintf( stderr
, " options=%08x", req
->options
);
1331 static void dump_flush_file_request( const struct flush_file_request
*req
)
1333 fprintf( stderr
, " handle=%p", req
->handle
);
1336 static void dump_flush_file_reply( const struct flush_file_reply
*req
)
1338 fprintf( stderr
, " event=%p", req
->event
);
1341 static void dump_lock_file_request( const struct lock_file_request
*req
)
1343 fprintf( stderr
, " handle=%p,", req
->handle
);
1344 fprintf( stderr
, " offset=" );
1345 dump_file_pos( &req
->offset
);
1346 fprintf( stderr
, "," );
1347 fprintf( stderr
, " count=" );
1348 dump_file_pos( &req
->count
);
1349 fprintf( stderr
, "," );
1350 fprintf( stderr
, " shared=%d,", req
->shared
);
1351 fprintf( stderr
, " wait=%d", req
->wait
);
1354 static void dump_lock_file_reply( const struct lock_file_reply
*req
)
1356 fprintf( stderr
, " handle=%p,", req
->handle
);
1357 fprintf( stderr
, " overlapped=%d", req
->overlapped
);
1360 static void dump_unlock_file_request( const struct unlock_file_request
*req
)
1362 fprintf( stderr
, " handle=%p,", req
->handle
);
1363 fprintf( stderr
, " offset=" );
1364 dump_file_pos( &req
->offset
);
1365 fprintf( stderr
, "," );
1366 fprintf( stderr
, " count=" );
1367 dump_file_pos( &req
->count
);
1370 static void dump_create_socket_request( const struct create_socket_request
*req
)
1372 fprintf( stderr
, " access=%08x,", req
->access
);
1373 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1374 fprintf( stderr
, " family=%d,", req
->family
);
1375 fprintf( stderr
, " type=%d,", req
->type
);
1376 fprintf( stderr
, " protocol=%d,", req
->protocol
);
1377 fprintf( stderr
, " flags=%08x", req
->flags
);
1380 static void dump_create_socket_reply( const struct create_socket_reply
*req
)
1382 fprintf( stderr
, " handle=%p", req
->handle
);
1385 static void dump_accept_socket_request( const struct accept_socket_request
*req
)
1387 fprintf( stderr
, " lhandle=%p,", req
->lhandle
);
1388 fprintf( stderr
, " access=%08x,", req
->access
);
1389 fprintf( stderr
, " attributes=%08x", req
->attributes
);
1392 static void dump_accept_socket_reply( const struct accept_socket_reply
*req
)
1394 fprintf( stderr
, " handle=%p", req
->handle
);
1397 static void dump_set_socket_event_request( const struct set_socket_event_request
*req
)
1399 fprintf( stderr
, " handle=%p,", req
->handle
);
1400 fprintf( stderr
, " mask=%08x,", req
->mask
);
1401 fprintf( stderr
, " event=%p,", req
->event
);
1402 fprintf( stderr
, " window=%p,", req
->window
);
1403 fprintf( stderr
, " msg=%08x", req
->msg
);
1406 static void dump_get_socket_event_request( const struct get_socket_event_request
*req
)
1408 fprintf( stderr
, " handle=%p,", req
->handle
);
1409 fprintf( stderr
, " service=%d,", req
->service
);
1410 fprintf( stderr
, " c_event=%p", req
->c_event
);
1413 static void dump_get_socket_event_reply( const struct get_socket_event_reply
*req
)
1415 fprintf( stderr
, " mask=%08x,", req
->mask
);
1416 fprintf( stderr
, " pmask=%08x,", req
->pmask
);
1417 fprintf( stderr
, " state=%08x,", req
->state
);
1418 fprintf( stderr
, " errors=" );
1419 dump_varargs_ints( cur_size
);
1422 static void dump_enable_socket_event_request( const struct enable_socket_event_request
*req
)
1424 fprintf( stderr
, " handle=%p,", req
->handle
);
1425 fprintf( stderr
, " mask=%08x,", req
->mask
);
1426 fprintf( stderr
, " sstate=%08x,", req
->sstate
);
1427 fprintf( stderr
, " cstate=%08x", req
->cstate
);
1430 static void dump_set_socket_deferred_request( const struct set_socket_deferred_request
*req
)
1432 fprintf( stderr
, " handle=%p,", req
->handle
);
1433 fprintf( stderr
, " deferred=%p", req
->deferred
);
1436 static void dump_alloc_console_request( const struct alloc_console_request
*req
)
1438 fprintf( stderr
, " access=%08x,", req
->access
);
1439 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1440 fprintf( stderr
, " pid=%04x", req
->pid
);
1443 static void dump_alloc_console_reply( const struct alloc_console_reply
*req
)
1445 fprintf( stderr
, " handle_in=%p,", req
->handle_in
);
1446 fprintf( stderr
, " event=%p", req
->event
);
1449 static void dump_free_console_request( const struct free_console_request
*req
)
1453 static void dump_get_console_renderer_events_request( const struct get_console_renderer_events_request
*req
)
1455 fprintf( stderr
, " handle=%p", req
->handle
);
1458 static void dump_get_console_renderer_events_reply( const struct get_console_renderer_events_reply
*req
)
1460 fprintf( stderr
, " data=" );
1461 dump_varargs_bytes( cur_size
);
1464 static void dump_open_console_request( const struct open_console_request
*req
)
1466 fprintf( stderr
, " from=%p,", req
->from
);
1467 fprintf( stderr
, " access=%08x,", req
->access
);
1468 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1469 fprintf( stderr
, " share=%d", req
->share
);
1472 static void dump_open_console_reply( const struct open_console_reply
*req
)
1474 fprintf( stderr
, " handle=%p", req
->handle
);
1477 static void dump_get_console_wait_event_request( const struct get_console_wait_event_request
*req
)
1481 static void dump_get_console_wait_event_reply( const struct get_console_wait_event_reply
*req
)
1483 fprintf( stderr
, " handle=%p", req
->handle
);
1486 static void dump_get_console_mode_request( const struct get_console_mode_request
*req
)
1488 fprintf( stderr
, " handle=%p", req
->handle
);
1491 static void dump_get_console_mode_reply( const struct get_console_mode_reply
*req
)
1493 fprintf( stderr
, " mode=%d", req
->mode
);
1496 static void dump_set_console_mode_request( const struct set_console_mode_request
*req
)
1498 fprintf( stderr
, " handle=%p,", req
->handle
);
1499 fprintf( stderr
, " mode=%d", req
->mode
);
1502 static void dump_set_console_input_info_request( const struct set_console_input_info_request
*req
)
1504 fprintf( stderr
, " handle=%p,", req
->handle
);
1505 fprintf( stderr
, " mask=%d,", req
->mask
);
1506 fprintf( stderr
, " active_sb=%p,", req
->active_sb
);
1507 fprintf( stderr
, " history_mode=%d,", req
->history_mode
);
1508 fprintf( stderr
, " history_size=%d,", req
->history_size
);
1509 fprintf( stderr
, " edition_mode=%d,", req
->edition_mode
);
1510 fprintf( stderr
, " input_cp=%d,", req
->input_cp
);
1511 fprintf( stderr
, " output_cp=%d,", req
->output_cp
);
1512 fprintf( stderr
, " win=%p,", req
->win
);
1513 fprintf( stderr
, " title=" );
1514 dump_varargs_unicode_str( cur_size
);
1517 static void dump_get_console_input_info_request( const struct get_console_input_info_request
*req
)
1519 fprintf( stderr
, " handle=%p", req
->handle
);
1522 static void dump_get_console_input_info_reply( const struct get_console_input_info_reply
*req
)
1524 fprintf( stderr
, " history_mode=%d,", req
->history_mode
);
1525 fprintf( stderr
, " history_size=%d,", req
->history_size
);
1526 fprintf( stderr
, " history_index=%d,", req
->history_index
);
1527 fprintf( stderr
, " edition_mode=%d,", req
->edition_mode
);
1528 fprintf( stderr
, " input_cp=%d,", req
->input_cp
);
1529 fprintf( stderr
, " output_cp=%d,", req
->output_cp
);
1530 fprintf( stderr
, " win=%p,", req
->win
);
1531 fprintf( stderr
, " title=" );
1532 dump_varargs_unicode_str( cur_size
);
1535 static void dump_append_console_input_history_request( const struct append_console_input_history_request
*req
)
1537 fprintf( stderr
, " handle=%p,", req
->handle
);
1538 fprintf( stderr
, " line=" );
1539 dump_varargs_unicode_str( cur_size
);
1542 static void dump_get_console_input_history_request( const struct get_console_input_history_request
*req
)
1544 fprintf( stderr
, " handle=%p,", req
->handle
);
1545 fprintf( stderr
, " index=%d", req
->index
);
1548 static void dump_get_console_input_history_reply( const struct get_console_input_history_reply
*req
)
1550 fprintf( stderr
, " total=%d,", req
->total
);
1551 fprintf( stderr
, " line=" );
1552 dump_varargs_unicode_str( cur_size
);
1555 static void dump_create_console_output_request( const struct create_console_output_request
*req
)
1557 fprintf( stderr
, " handle_in=%p,", req
->handle_in
);
1558 fprintf( stderr
, " access=%08x,", req
->access
);
1559 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1560 fprintf( stderr
, " share=%08x", req
->share
);
1563 static void dump_create_console_output_reply( const struct create_console_output_reply
*req
)
1565 fprintf( stderr
, " handle_out=%p", req
->handle_out
);
1568 static void dump_set_console_output_info_request( const struct set_console_output_info_request
*req
)
1570 fprintf( stderr
, " handle=%p,", req
->handle
);
1571 fprintf( stderr
, " mask=%d,", req
->mask
);
1572 fprintf( stderr
, " cursor_size=%d,", req
->cursor_size
);
1573 fprintf( stderr
, " cursor_visible=%d,", req
->cursor_visible
);
1574 fprintf( stderr
, " cursor_x=%d,", req
->cursor_x
);
1575 fprintf( stderr
, " cursor_y=%d,", req
->cursor_y
);
1576 fprintf( stderr
, " width=%d,", req
->width
);
1577 fprintf( stderr
, " height=%d,", req
->height
);
1578 fprintf( stderr
, " attr=%d,", req
->attr
);
1579 fprintf( stderr
, " win_left=%d,", req
->win_left
);
1580 fprintf( stderr
, " win_top=%d,", req
->win_top
);
1581 fprintf( stderr
, " win_right=%d,", req
->win_right
);
1582 fprintf( stderr
, " win_bottom=%d,", req
->win_bottom
);
1583 fprintf( stderr
, " max_width=%d,", req
->max_width
);
1584 fprintf( stderr
, " max_height=%d", req
->max_height
);
1587 static void dump_get_console_output_info_request( const struct get_console_output_info_request
*req
)
1589 fprintf( stderr
, " handle=%p", req
->handle
);
1592 static void dump_get_console_output_info_reply( const struct get_console_output_info_reply
*req
)
1594 fprintf( stderr
, " cursor_size=%d,", req
->cursor_size
);
1595 fprintf( stderr
, " cursor_visible=%d,", req
->cursor_visible
);
1596 fprintf( stderr
, " cursor_x=%d,", req
->cursor_x
);
1597 fprintf( stderr
, " cursor_y=%d,", req
->cursor_y
);
1598 fprintf( stderr
, " width=%d,", req
->width
);
1599 fprintf( stderr
, " height=%d,", req
->height
);
1600 fprintf( stderr
, " attr=%d,", req
->attr
);
1601 fprintf( stderr
, " win_left=%d,", req
->win_left
);
1602 fprintf( stderr
, " win_top=%d,", req
->win_top
);
1603 fprintf( stderr
, " win_right=%d,", req
->win_right
);
1604 fprintf( stderr
, " win_bottom=%d,", req
->win_bottom
);
1605 fprintf( stderr
, " max_width=%d,", req
->max_width
);
1606 fprintf( stderr
, " max_height=%d", req
->max_height
);
1609 static void dump_write_console_input_request( const struct write_console_input_request
*req
)
1611 fprintf( stderr
, " handle=%p,", req
->handle
);
1612 fprintf( stderr
, " rec=" );
1613 dump_varargs_input_records( cur_size
);
1616 static void dump_write_console_input_reply( const struct write_console_input_reply
*req
)
1618 fprintf( stderr
, " written=%d", req
->written
);
1621 static void dump_read_console_input_request( const struct read_console_input_request
*req
)
1623 fprintf( stderr
, " handle=%p,", req
->handle
);
1624 fprintf( stderr
, " flush=%d", req
->flush
);
1627 static void dump_read_console_input_reply( const struct read_console_input_reply
*req
)
1629 fprintf( stderr
, " read=%d,", req
->read
);
1630 fprintf( stderr
, " rec=" );
1631 dump_varargs_input_records( cur_size
);
1634 static void dump_write_console_output_request( const struct write_console_output_request
*req
)
1636 fprintf( stderr
, " handle=%p,", req
->handle
);
1637 fprintf( stderr
, " x=%d,", req
->x
);
1638 fprintf( stderr
, " y=%d,", req
->y
);
1639 fprintf( stderr
, " mode=%d,", req
->mode
);
1640 fprintf( stderr
, " wrap=%d,", req
->wrap
);
1641 fprintf( stderr
, " data=" );
1642 dump_varargs_bytes( cur_size
);
1645 static void dump_write_console_output_reply( const struct write_console_output_reply
*req
)
1647 fprintf( stderr
, " written=%d,", req
->written
);
1648 fprintf( stderr
, " width=%d,", req
->width
);
1649 fprintf( stderr
, " height=%d", req
->height
);
1652 static void dump_fill_console_output_request( const struct fill_console_output_request
*req
)
1654 fprintf( stderr
, " handle=%p,", req
->handle
);
1655 fprintf( stderr
, " x=%d,", req
->x
);
1656 fprintf( stderr
, " y=%d,", req
->y
);
1657 fprintf( stderr
, " mode=%d,", req
->mode
);
1658 fprintf( stderr
, " count=%d,", req
->count
);
1659 fprintf( stderr
, " wrap=%d,", req
->wrap
);
1660 fprintf( stderr
, " data=" );
1661 dump_char_info( &req
->data
);
1664 static void dump_fill_console_output_reply( const struct fill_console_output_reply
*req
)
1666 fprintf( stderr
, " written=%d", req
->written
);
1669 static void dump_read_console_output_request( const struct read_console_output_request
*req
)
1671 fprintf( stderr
, " handle=%p,", req
->handle
);
1672 fprintf( stderr
, " x=%d,", req
->x
);
1673 fprintf( stderr
, " y=%d,", req
->y
);
1674 fprintf( stderr
, " mode=%d,", req
->mode
);
1675 fprintf( stderr
, " wrap=%d", req
->wrap
);
1678 static void dump_read_console_output_reply( const struct read_console_output_reply
*req
)
1680 fprintf( stderr
, " width=%d,", req
->width
);
1681 fprintf( stderr
, " height=%d,", req
->height
);
1682 fprintf( stderr
, " data=" );
1683 dump_varargs_bytes( cur_size
);
1686 static void dump_move_console_output_request( const struct move_console_output_request
*req
)
1688 fprintf( stderr
, " handle=%p,", req
->handle
);
1689 fprintf( stderr
, " x_src=%d,", req
->x_src
);
1690 fprintf( stderr
, " y_src=%d,", req
->y_src
);
1691 fprintf( stderr
, " x_dst=%d,", req
->x_dst
);
1692 fprintf( stderr
, " y_dst=%d,", req
->y_dst
);
1693 fprintf( stderr
, " w=%d,", req
->w
);
1694 fprintf( stderr
, " h=%d", req
->h
);
1697 static void dump_send_console_signal_request( const struct send_console_signal_request
*req
)
1699 fprintf( stderr
, " signal=%d,", req
->signal
);
1700 fprintf( stderr
, " group_id=%04x", req
->group_id
);
1703 static void dump_read_directory_changes_request( const struct read_directory_changes_request
*req
)
1705 fprintf( stderr
, " filter=%08x,", req
->filter
);
1706 fprintf( stderr
, " handle=%p,", req
->handle
);
1707 fprintf( stderr
, " subtree=%d,", req
->subtree
);
1708 fprintf( stderr
, " want_data=%d,", req
->want_data
);
1709 fprintf( stderr
, " async=" );
1710 dump_async_data( &req
->async
);
1713 static void dump_read_change_request( const struct read_change_request
*req
)
1715 fprintf( stderr
, " handle=%p", req
->handle
);
1718 static void dump_read_change_reply( const struct read_change_reply
*req
)
1720 fprintf( stderr
, " action=%d,", req
->action
);
1721 fprintf( stderr
, " name=" );
1722 dump_varargs_string( cur_size
);
1725 static void dump_create_mapping_request( const struct create_mapping_request
*req
)
1727 fprintf( stderr
, " access=%08x,", req
->access
);
1728 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1729 fprintf( stderr
, " size=" );
1730 dump_file_pos( &req
->size
);
1731 fprintf( stderr
, "," );
1732 fprintf( stderr
, " protect=%d,", req
->protect
);
1733 fprintf( stderr
, " file_handle=%p,", req
->file_handle
);
1734 fprintf( stderr
, " objattr=" );
1735 dump_varargs_object_attributes( cur_size
);
1738 static void dump_create_mapping_reply( const struct create_mapping_reply
*req
)
1740 fprintf( stderr
, " handle=%p", req
->handle
);
1743 static void dump_open_mapping_request( const struct open_mapping_request
*req
)
1745 fprintf( stderr
, " access=%08x,", req
->access
);
1746 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1747 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
1748 fprintf( stderr
, " name=" );
1749 dump_varargs_unicode_str( cur_size
);
1752 static void dump_open_mapping_reply( const struct open_mapping_reply
*req
)
1754 fprintf( stderr
, " handle=%p", req
->handle
);
1757 static void dump_get_mapping_info_request( const struct get_mapping_info_request
*req
)
1759 fprintf( stderr
, " handle=%p", req
->handle
);
1762 static void dump_get_mapping_info_reply( const struct get_mapping_info_reply
*req
)
1764 fprintf( stderr
, " size=" );
1765 dump_file_pos( &req
->size
);
1766 fprintf( stderr
, "," );
1767 fprintf( stderr
, " protect=%d,", req
->protect
);
1768 fprintf( stderr
, " header_size=%d,", req
->header_size
);
1769 fprintf( stderr
, " base=%p,", req
->base
);
1770 fprintf( stderr
, " mapping=%p,", req
->mapping
);
1771 fprintf( stderr
, " shared_file=%p", req
->shared_file
);
1774 static void dump_create_snapshot_request( const struct create_snapshot_request
*req
)
1776 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1777 fprintf( stderr
, " flags=%d,", req
->flags
);
1778 fprintf( stderr
, " pid=%04x", req
->pid
);
1781 static void dump_create_snapshot_reply( const struct create_snapshot_reply
*req
)
1783 fprintf( stderr
, " handle=%p", req
->handle
);
1786 static void dump_next_process_request( const struct next_process_request
*req
)
1788 fprintf( stderr
, " handle=%p,", req
->handle
);
1789 fprintf( stderr
, " reset=%d", req
->reset
);
1792 static void dump_next_process_reply( const struct next_process_reply
*req
)
1794 fprintf( stderr
, " count=%d,", req
->count
);
1795 fprintf( stderr
, " pid=%04x,", req
->pid
);
1796 fprintf( stderr
, " ppid=%04x,", req
->ppid
);
1797 fprintf( stderr
, " heap=%p,", req
->heap
);
1798 fprintf( stderr
, " module=%p,", req
->module
);
1799 fprintf( stderr
, " threads=%d,", req
->threads
);
1800 fprintf( stderr
, " priority=%d,", req
->priority
);
1801 fprintf( stderr
, " handles=%d,", req
->handles
);
1802 fprintf( stderr
, " filename=" );
1803 dump_varargs_unicode_str( cur_size
);
1806 static void dump_next_thread_request( const struct next_thread_request
*req
)
1808 fprintf( stderr
, " handle=%p,", req
->handle
);
1809 fprintf( stderr
, " reset=%d", req
->reset
);
1812 static void dump_next_thread_reply( const struct next_thread_reply
*req
)
1814 fprintf( stderr
, " count=%d,", req
->count
);
1815 fprintf( stderr
, " pid=%04x,", req
->pid
);
1816 fprintf( stderr
, " tid=%04x,", req
->tid
);
1817 fprintf( stderr
, " base_pri=%d,", req
->base_pri
);
1818 fprintf( stderr
, " delta_pri=%d", req
->delta_pri
);
1821 static void dump_next_module_request( const struct next_module_request
*req
)
1823 fprintf( stderr
, " handle=%p,", req
->handle
);
1824 fprintf( stderr
, " reset=%d", req
->reset
);
1827 static void dump_next_module_reply( const struct next_module_reply
*req
)
1829 fprintf( stderr
, " pid=%04x,", req
->pid
);
1830 fprintf( stderr
, " base=%p,", req
->base
);
1831 fprintf( stderr
, " size=%lu,", (unsigned long)req
->size
);
1832 fprintf( stderr
, " filename=" );
1833 dump_varargs_unicode_str( cur_size
);
1836 static void dump_wait_debug_event_request( const struct wait_debug_event_request
*req
)
1838 fprintf( stderr
, " get_handle=%d", req
->get_handle
);
1841 static void dump_wait_debug_event_reply( const struct wait_debug_event_reply
*req
)
1843 fprintf( stderr
, " pid=%04x,", req
->pid
);
1844 fprintf( stderr
, " tid=%04x,", req
->tid
);
1845 fprintf( stderr
, " wait=%p,", req
->wait
);
1846 fprintf( stderr
, " event=" );
1847 dump_varargs_debug_event( cur_size
);
1850 static void dump_queue_exception_event_request( const struct queue_exception_event_request
*req
)
1852 fprintf( stderr
, " first=%d,", req
->first
);
1853 fprintf( stderr
, " record=" );
1854 dump_varargs_exc_event( cur_size
);
1857 static void dump_queue_exception_event_reply( const struct queue_exception_event_reply
*req
)
1859 fprintf( stderr
, " handle=%p", req
->handle
);
1862 static void dump_get_exception_status_request( const struct get_exception_status_request
*req
)
1864 fprintf( stderr
, " handle=%p", req
->handle
);
1867 static void dump_get_exception_status_reply( const struct get_exception_status_reply
*req
)
1869 fprintf( stderr
, " context=" );
1870 dump_varargs_context( cur_size
);
1873 static void dump_output_debug_string_request( const struct output_debug_string_request
*req
)
1875 fprintf( stderr
, " string=%p,", req
->string
);
1876 fprintf( stderr
, " unicode=%d,", req
->unicode
);
1877 fprintf( stderr
, " length=%d", req
->length
);
1880 static void dump_continue_debug_event_request( const struct continue_debug_event_request
*req
)
1882 fprintf( stderr
, " pid=%04x,", req
->pid
);
1883 fprintf( stderr
, " tid=%04x,", req
->tid
);
1884 fprintf( stderr
, " status=%d", req
->status
);
1887 static void dump_debug_process_request( const struct debug_process_request
*req
)
1889 fprintf( stderr
, " pid=%04x,", req
->pid
);
1890 fprintf( stderr
, " attach=%d", req
->attach
);
1893 static void dump_debug_break_request( const struct debug_break_request
*req
)
1895 fprintf( stderr
, " handle=%p", req
->handle
);
1898 static void dump_debug_break_reply( const struct debug_break_reply
*req
)
1900 fprintf( stderr
, " self=%d", req
->self
);
1903 static void dump_set_debugger_kill_on_exit_request( const struct set_debugger_kill_on_exit_request
*req
)
1905 fprintf( stderr
, " kill_on_exit=%d", req
->kill_on_exit
);
1908 static void dump_read_process_memory_request( const struct read_process_memory_request
*req
)
1910 fprintf( stderr
, " handle=%p,", req
->handle
);
1911 fprintf( stderr
, " addr=%p", req
->addr
);
1914 static void dump_read_process_memory_reply( const struct read_process_memory_reply
*req
)
1916 fprintf( stderr
, " data=" );
1917 dump_varargs_bytes( cur_size
);
1920 static void dump_write_process_memory_request( const struct write_process_memory_request
*req
)
1922 fprintf( stderr
, " handle=%p,", req
->handle
);
1923 fprintf( stderr
, " addr=%p,", req
->addr
);
1924 fprintf( stderr
, " data=" );
1925 dump_varargs_bytes( cur_size
);
1928 static void dump_create_key_request( const struct create_key_request
*req
)
1930 fprintf( stderr
, " parent=%p,", req
->parent
);
1931 fprintf( stderr
, " access=%08x,", req
->access
);
1932 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1933 fprintf( stderr
, " options=%08x,", req
->options
);
1934 fprintf( stderr
, " modif=%ld,", (long)req
->modif
);
1935 fprintf( stderr
, " namelen=%u,", req
->namelen
);
1936 fprintf( stderr
, " name=" );
1937 dump_varargs_unicode_str( min(cur_size
,req
->namelen
) );
1938 fputc( ',', stderr
);
1939 fprintf( stderr
, " class=" );
1940 dump_varargs_unicode_str( cur_size
);
1943 static void dump_create_key_reply( const struct create_key_reply
*req
)
1945 fprintf( stderr
, " hkey=%p,", req
->hkey
);
1946 fprintf( stderr
, " created=%d", req
->created
);
1949 static void dump_open_key_request( const struct open_key_request
*req
)
1951 fprintf( stderr
, " parent=%p,", req
->parent
);
1952 fprintf( stderr
, " access=%08x,", req
->access
);
1953 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1954 fprintf( stderr
, " name=" );
1955 dump_varargs_unicode_str( cur_size
);
1958 static void dump_open_key_reply( const struct open_key_reply
*req
)
1960 fprintf( stderr
, " hkey=%p", req
->hkey
);
1963 static void dump_delete_key_request( const struct delete_key_request
*req
)
1965 fprintf( stderr
, " hkey=%p", req
->hkey
);
1968 static void dump_flush_key_request( const struct flush_key_request
*req
)
1970 fprintf( stderr
, " hkey=%p", req
->hkey
);
1973 static void dump_enum_key_request( const struct enum_key_request
*req
)
1975 fprintf( stderr
, " hkey=%p,", req
->hkey
);
1976 fprintf( stderr
, " index=%d,", req
->index
);
1977 fprintf( stderr
, " info_class=%d", req
->info_class
);
1980 static void dump_enum_key_reply( const struct enum_key_reply
*req
)
1982 fprintf( stderr
, " subkeys=%d,", req
->subkeys
);
1983 fprintf( stderr
, " max_subkey=%d,", req
->max_subkey
);
1984 fprintf( stderr
, " max_class=%d,", req
->max_class
);
1985 fprintf( stderr
, " values=%d,", req
->values
);
1986 fprintf( stderr
, " max_value=%d,", req
->max_value
);
1987 fprintf( stderr
, " max_data=%d,", req
->max_data
);
1988 fprintf( stderr
, " modif=%ld,", (long)req
->modif
);
1989 fprintf( stderr
, " total=%u,", req
->total
);
1990 fprintf( stderr
, " namelen=%u,", req
->namelen
);
1991 fprintf( stderr
, " name=" );
1992 dump_varargs_unicode_str( min(cur_size
,req
->namelen
) );
1993 fputc( ',', stderr
);
1994 fprintf( stderr
, " class=" );
1995 dump_varargs_unicode_str( cur_size
);
1998 static void dump_set_key_value_request( const struct set_key_value_request
*req
)
2000 fprintf( stderr
, " hkey=%p,", req
->hkey
);
2001 fprintf( stderr
, " type=%d,", req
->type
);
2002 fprintf( stderr
, " namelen=%u,", req
->namelen
);
2003 fprintf( stderr
, " name=" );
2004 dump_varargs_unicode_str( min(cur_size
,req
->namelen
) );
2005 fputc( ',', stderr
);
2006 fprintf( stderr
, " data=" );
2007 dump_varargs_bytes( cur_size
);
2010 static void dump_get_key_value_request( const struct get_key_value_request
*req
)
2012 fprintf( stderr
, " hkey=%p,", req
->hkey
);
2013 fprintf( stderr
, " name=" );
2014 dump_varargs_unicode_str( cur_size
);
2017 static void dump_get_key_value_reply( const struct get_key_value_reply
*req
)
2019 fprintf( stderr
, " type=%d,", req
->type
);
2020 fprintf( stderr
, " total=%u,", req
->total
);
2021 fprintf( stderr
, " data=" );
2022 dump_varargs_bytes( cur_size
);
2025 static void dump_enum_key_value_request( const struct enum_key_value_request
*req
)
2027 fprintf( stderr
, " hkey=%p,", req
->hkey
);
2028 fprintf( stderr
, " index=%d,", req
->index
);
2029 fprintf( stderr
, " info_class=%d", req
->info_class
);
2032 static void dump_enum_key_value_reply( const struct enum_key_value_reply
*req
)
2034 fprintf( stderr
, " type=%d,", req
->type
);
2035 fprintf( stderr
, " total=%u,", req
->total
);
2036 fprintf( stderr
, " namelen=%u,", req
->namelen
);
2037 fprintf( stderr
, " name=" );
2038 dump_varargs_unicode_str( min(cur_size
,req
->namelen
) );
2039 fputc( ',', stderr
);
2040 fprintf( stderr
, " data=" );
2041 dump_varargs_bytes( cur_size
);
2044 static void dump_delete_key_value_request( const struct delete_key_value_request
*req
)
2046 fprintf( stderr
, " hkey=%p,", req
->hkey
);
2047 fprintf( stderr
, " name=" );
2048 dump_varargs_unicode_str( cur_size
);
2051 static void dump_load_registry_request( const struct load_registry_request
*req
)
2053 fprintf( stderr
, " hkey=%p,", req
->hkey
);
2054 fprintf( stderr
, " file=%p,", req
->file
);
2055 fprintf( stderr
, " name=" );
2056 dump_varargs_unicode_str( cur_size
);
2059 static void dump_unload_registry_request( const struct unload_registry_request
*req
)
2061 fprintf( stderr
, " hkey=%p", req
->hkey
);
2064 static void dump_save_registry_request( const struct save_registry_request
*req
)
2066 fprintf( stderr
, " hkey=%p,", req
->hkey
);
2067 fprintf( stderr
, " file=%p", req
->file
);
2070 static void dump_set_registry_notification_request( const struct set_registry_notification_request
*req
)
2072 fprintf( stderr
, " hkey=%p,", req
->hkey
);
2073 fprintf( stderr
, " event=%p,", req
->event
);
2074 fprintf( stderr
, " subtree=%d,", req
->subtree
);
2075 fprintf( stderr
, " filter=%08x", req
->filter
);
2078 static void dump_create_timer_request( const struct create_timer_request
*req
)
2080 fprintf( stderr
, " access=%08x,", req
->access
);
2081 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
2082 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
2083 fprintf( stderr
, " manual=%d,", req
->manual
);
2084 fprintf( stderr
, " name=" );
2085 dump_varargs_unicode_str( cur_size
);
2088 static void dump_create_timer_reply( const struct create_timer_reply
*req
)
2090 fprintf( stderr
, " handle=%p", req
->handle
);
2093 static void dump_open_timer_request( const struct open_timer_request
*req
)
2095 fprintf( stderr
, " access=%08x,", req
->access
);
2096 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
2097 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
2098 fprintf( stderr
, " name=" );
2099 dump_varargs_unicode_str( cur_size
);
2102 static void dump_open_timer_reply( const struct open_timer_reply
*req
)
2104 fprintf( stderr
, " handle=%p", req
->handle
);
2107 static void dump_set_timer_request( const struct set_timer_request
*req
)
2109 fprintf( stderr
, " handle=%p,", req
->handle
);
2110 fprintf( stderr
, " expire=" );
2111 dump_timeout( &req
->expire
);
2112 fprintf( stderr
, "," );
2113 fprintf( stderr
, " period=%d,", req
->period
);
2114 fprintf( stderr
, " callback=%p,", req
->callback
);
2115 fprintf( stderr
, " arg=%p", req
->arg
);
2118 static void dump_set_timer_reply( const struct set_timer_reply
*req
)
2120 fprintf( stderr
, " signaled=%d", req
->signaled
);
2123 static void dump_cancel_timer_request( const struct cancel_timer_request
*req
)
2125 fprintf( stderr
, " handle=%p", req
->handle
);
2128 static void dump_cancel_timer_reply( const struct cancel_timer_reply
*req
)
2130 fprintf( stderr
, " signaled=%d", req
->signaled
);
2133 static void dump_get_timer_info_request( const struct get_timer_info_request
*req
)
2135 fprintf( stderr
, " handle=%p", req
->handle
);
2138 static void dump_get_timer_info_reply( const struct get_timer_info_reply
*req
)
2140 fprintf( stderr
, " when=" );
2141 dump_timeout( &req
->when
);
2142 fprintf( stderr
, "," );
2143 fprintf( stderr
, " signaled=%d", req
->signaled
);
2146 static void dump_get_thread_context_request( const struct get_thread_context_request
*req
)
2148 fprintf( stderr
, " handle=%p,", req
->handle
);
2149 fprintf( stderr
, " flags=%08x,", req
->flags
);
2150 fprintf( stderr
, " suspend=%d", req
->suspend
);
2153 static void dump_get_thread_context_reply( const struct get_thread_context_reply
*req
)
2155 fprintf( stderr
, " self=%d,", req
->self
);
2156 fprintf( stderr
, " context=" );
2157 dump_varargs_context( cur_size
);
2160 static void dump_set_thread_context_request( const struct set_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
);
2165 fprintf( stderr
, " context=" );
2166 dump_varargs_context( cur_size
);
2169 static void dump_set_thread_context_reply( const struct set_thread_context_reply
*req
)
2171 fprintf( stderr
, " self=%d", req
->self
);
2174 static void dump_get_selector_entry_request( const struct get_selector_entry_request
*req
)
2176 fprintf( stderr
, " handle=%p,", req
->handle
);
2177 fprintf( stderr
, " entry=%d", req
->entry
);
2180 static void dump_get_selector_entry_reply( const struct get_selector_entry_reply
*req
)
2182 fprintf( stderr
, " base=%08x,", req
->base
);
2183 fprintf( stderr
, " limit=%08x,", req
->limit
);
2184 fprintf( stderr
, " flags=%02x", req
->flags
);
2187 static void dump_add_atom_request( const struct add_atom_request
*req
)
2189 fprintf( stderr
, " table=%p,", req
->table
);
2190 fprintf( stderr
, " name=" );
2191 dump_varargs_unicode_str( cur_size
);
2194 static void dump_add_atom_reply( const struct add_atom_reply
*req
)
2196 fprintf( stderr
, " atom=%04x", req
->atom
);
2199 static void dump_delete_atom_request( const struct delete_atom_request
*req
)
2201 fprintf( stderr
, " table=%p,", req
->table
);
2202 fprintf( stderr
, " atom=%04x", req
->atom
);
2205 static void dump_find_atom_request( const struct find_atom_request
*req
)
2207 fprintf( stderr
, " table=%p,", req
->table
);
2208 fprintf( stderr
, " name=" );
2209 dump_varargs_unicode_str( cur_size
);
2212 static void dump_find_atom_reply( const struct find_atom_reply
*req
)
2214 fprintf( stderr
, " atom=%04x", req
->atom
);
2217 static void dump_get_atom_information_request( const struct get_atom_information_request
*req
)
2219 fprintf( stderr
, " table=%p,", req
->table
);
2220 fprintf( stderr
, " atom=%04x", req
->atom
);
2223 static void dump_get_atom_information_reply( const struct get_atom_information_reply
*req
)
2225 fprintf( stderr
, " count=%d,", req
->count
);
2226 fprintf( stderr
, " pinned=%d,", req
->pinned
);
2227 fprintf( stderr
, " total=%u,", req
->total
);
2228 fprintf( stderr
, " name=" );
2229 dump_varargs_unicode_str( cur_size
);
2232 static void dump_set_atom_information_request( const struct set_atom_information_request
*req
)
2234 fprintf( stderr
, " table=%p,", req
->table
);
2235 fprintf( stderr
, " atom=%04x,", req
->atom
);
2236 fprintf( stderr
, " pinned=%d", req
->pinned
);
2239 static void dump_empty_atom_table_request( const struct empty_atom_table_request
*req
)
2241 fprintf( stderr
, " table=%p,", req
->table
);
2242 fprintf( stderr
, " if_pinned=%d", req
->if_pinned
);
2245 static void dump_init_atom_table_request( const struct init_atom_table_request
*req
)
2247 fprintf( stderr
, " entries=%d", req
->entries
);
2250 static void dump_init_atom_table_reply( const struct init_atom_table_reply
*req
)
2252 fprintf( stderr
, " table=%p", req
->table
);
2255 static void dump_get_msg_queue_request( const struct get_msg_queue_request
*req
)
2259 static void dump_get_msg_queue_reply( const struct get_msg_queue_reply
*req
)
2261 fprintf( stderr
, " handle=%p", req
->handle
);
2264 static void dump_set_queue_fd_request( const struct set_queue_fd_request
*req
)
2266 fprintf( stderr
, " handle=%p", req
->handle
);
2269 static void dump_set_queue_mask_request( const struct set_queue_mask_request
*req
)
2271 fprintf( stderr
, " wake_mask=%08x,", req
->wake_mask
);
2272 fprintf( stderr
, " changed_mask=%08x,", req
->changed_mask
);
2273 fprintf( stderr
, " skip_wait=%d", req
->skip_wait
);
2276 static void dump_set_queue_mask_reply( const struct set_queue_mask_reply
*req
)
2278 fprintf( stderr
, " wake_bits=%08x,", req
->wake_bits
);
2279 fprintf( stderr
, " changed_bits=%08x", req
->changed_bits
);
2282 static void dump_get_queue_status_request( const struct get_queue_status_request
*req
)
2284 fprintf( stderr
, " clear=%d", req
->clear
);
2287 static void dump_get_queue_status_reply( const struct get_queue_status_reply
*req
)
2289 fprintf( stderr
, " wake_bits=%08x,", req
->wake_bits
);
2290 fprintf( stderr
, " changed_bits=%08x", req
->changed_bits
);
2293 static void dump_get_process_idle_event_request( const struct get_process_idle_event_request
*req
)
2295 fprintf( stderr
, " handle=%p", req
->handle
);
2298 static void dump_get_process_idle_event_reply( const struct get_process_idle_event_reply
*req
)
2300 fprintf( stderr
, " event=%p", req
->event
);
2303 static void dump_send_message_request( const struct send_message_request
*req
)
2305 fprintf( stderr
, " id=%04x,", req
->id
);
2306 fprintf( stderr
, " type=%d,", req
->type
);
2307 fprintf( stderr
, " flags=%d,", req
->flags
);
2308 fprintf( stderr
, " win=%p,", req
->win
);
2309 fprintf( stderr
, " msg=%08x,", req
->msg
);
2310 fprintf( stderr
, " wparam=%lx,", req
->wparam
);
2311 fprintf( stderr
, " lparam=%lx,", req
->lparam
);
2312 fprintf( stderr
, " timeout=" );
2313 dump_timeout( &req
->timeout
);
2314 fprintf( stderr
, "," );
2315 fprintf( stderr
, " data=" );
2316 dump_varargs_message_data( cur_size
);
2319 static void dump_post_quit_message_request( const struct post_quit_message_request
*req
)
2321 fprintf( stderr
, " exit_code=%d", req
->exit_code
);
2324 static void dump_send_hardware_message_request( const struct send_hardware_message_request
*req
)
2326 fprintf( stderr
, " id=%04x,", req
->id
);
2327 fprintf( stderr
, " win=%p,", req
->win
);
2328 fprintf( stderr
, " msg=%08x,", req
->msg
);
2329 fprintf( stderr
, " time=%08x,", req
->time
);
2330 fprintf( stderr
, " wparam=%lx,", req
->wparam
);
2331 fprintf( stderr
, " lparam=%lx,", req
->lparam
);
2332 fprintf( stderr
, " info=%lx,", req
->info
);
2333 fprintf( stderr
, " x=%d,", req
->x
);
2334 fprintf( stderr
, " y=%d", req
->y
);
2337 static void dump_get_message_request( const struct get_message_request
*req
)
2339 fprintf( stderr
, " flags=%08x,", req
->flags
);
2340 fprintf( stderr
, " get_win=%p,", req
->get_win
);
2341 fprintf( stderr
, " get_first=%08x,", req
->get_first
);
2342 fprintf( stderr
, " get_last=%08x,", req
->get_last
);
2343 fprintf( stderr
, " hw_id=%08x,", req
->hw_id
);
2344 fprintf( stderr
, " wake_mask=%08x,", req
->wake_mask
);
2345 fprintf( stderr
, " changed_mask=%08x", req
->changed_mask
);
2348 static void dump_get_message_reply( const struct get_message_reply
*req
)
2350 fprintf( stderr
, " win=%p,", req
->win
);
2351 fprintf( stderr
, " type=%d,", req
->type
);
2352 fprintf( stderr
, " msg=%08x,", req
->msg
);
2353 fprintf( stderr
, " wparam=%lx,", req
->wparam
);
2354 fprintf( stderr
, " lparam=%lx,", req
->lparam
);
2355 fprintf( stderr
, " info=%lx,", req
->info
);
2356 fprintf( stderr
, " x=%d,", req
->x
);
2357 fprintf( stderr
, " y=%d,", req
->y
);
2358 fprintf( stderr
, " time=%08x,", req
->time
);
2359 fprintf( stderr
, " hw_id=%08x,", req
->hw_id
);
2360 fprintf( stderr
, " active_hooks=%08x,", req
->active_hooks
);
2361 fprintf( stderr
, " total=%u,", req
->total
);
2362 fprintf( stderr
, " data=" );
2363 dump_varargs_message_data( cur_size
);
2366 static void dump_reply_message_request( const struct reply_message_request
*req
)
2368 fprintf( stderr
, " result=%lx,", req
->result
);
2369 fprintf( stderr
, " remove=%d,", req
->remove
);
2370 fprintf( stderr
, " data=" );
2371 dump_varargs_bytes( cur_size
);
2374 static void dump_accept_hardware_message_request( const struct accept_hardware_message_request
*req
)
2376 fprintf( stderr
, " hw_id=%08x,", req
->hw_id
);
2377 fprintf( stderr
, " remove=%d,", req
->remove
);
2378 fprintf( stderr
, " new_win=%p", req
->new_win
);
2381 static void dump_get_message_reply_request( const struct get_message_reply_request
*req
)
2383 fprintf( stderr
, " cancel=%d", req
->cancel
);
2386 static void dump_get_message_reply_reply( const struct get_message_reply_reply
*req
)
2388 fprintf( stderr
, " result=%lx,", req
->result
);
2389 fprintf( stderr
, " data=" );
2390 dump_varargs_bytes( cur_size
);
2393 static void dump_set_win_timer_request( const struct set_win_timer_request
*req
)
2395 fprintf( stderr
, " win=%p,", req
->win
);
2396 fprintf( stderr
, " msg=%08x,", req
->msg
);
2397 fprintf( stderr
, " rate=%08x,", req
->rate
);
2398 fprintf( stderr
, " id=%lx,", req
->id
);
2399 fprintf( stderr
, " lparam=%lx", req
->lparam
);
2402 static void dump_set_win_timer_reply( const struct set_win_timer_reply
*req
)
2404 fprintf( stderr
, " id=%lx", req
->id
);
2407 static void dump_kill_win_timer_request( const struct kill_win_timer_request
*req
)
2409 fprintf( stderr
, " win=%p,", req
->win
);
2410 fprintf( stderr
, " msg=%08x,", req
->msg
);
2411 fprintf( stderr
, " id=%lx", req
->id
);
2414 static void dump_get_serial_info_request( const struct get_serial_info_request
*req
)
2416 fprintf( stderr
, " handle=%p", req
->handle
);
2419 static void dump_get_serial_info_reply( const struct get_serial_info_reply
*req
)
2421 fprintf( stderr
, " readinterval=%08x,", req
->readinterval
);
2422 fprintf( stderr
, " readconst=%08x,", req
->readconst
);
2423 fprintf( stderr
, " readmult=%08x,", req
->readmult
);
2424 fprintf( stderr
, " writeconst=%08x,", req
->writeconst
);
2425 fprintf( stderr
, " writemult=%08x,", req
->writemult
);
2426 fprintf( stderr
, " eventmask=%08x", req
->eventmask
);
2429 static void dump_set_serial_info_request( const struct set_serial_info_request
*req
)
2431 fprintf( stderr
, " handle=%p,", req
->handle
);
2432 fprintf( stderr
, " flags=%d,", req
->flags
);
2433 fprintf( stderr
, " readinterval=%08x,", req
->readinterval
);
2434 fprintf( stderr
, " readconst=%08x,", req
->readconst
);
2435 fprintf( stderr
, " readmult=%08x,", req
->readmult
);
2436 fprintf( stderr
, " writeconst=%08x,", req
->writeconst
);
2437 fprintf( stderr
, " writemult=%08x,", req
->writemult
);
2438 fprintf( stderr
, " eventmask=%08x", req
->eventmask
);
2441 static void dump_register_async_request( const struct register_async_request
*req
)
2443 fprintf( stderr
, " handle=%p,", req
->handle
);
2444 fprintf( stderr
, " type=%d,", req
->type
);
2445 fprintf( stderr
, " count=%d,", req
->count
);
2446 fprintf( stderr
, " async=" );
2447 dump_async_data( &req
->async
);
2450 static void dump_cancel_async_request( const struct cancel_async_request
*req
)
2452 fprintf( stderr
, " handle=%p", req
->handle
);
2455 static void dump_ioctl_request( const struct ioctl_request
*req
)
2457 fprintf( stderr
, " handle=%p,", req
->handle
);
2458 fprintf( stderr
, " code=" );
2459 dump_ioctl_code( &req
->code
);
2460 fprintf( stderr
, "," );
2461 fprintf( stderr
, " async=" );
2462 dump_async_data( &req
->async
);
2463 fprintf( stderr
, "," );
2464 fprintf( stderr
, " in_data=" );
2465 dump_varargs_bytes( cur_size
);
2468 static void dump_ioctl_reply( const struct ioctl_reply
*req
)
2470 fprintf( stderr
, " wait=%p,", req
->wait
);
2471 fprintf( stderr
, " options=%08x,", req
->options
);
2472 fprintf( stderr
, " out_data=" );
2473 dump_varargs_bytes( cur_size
);
2476 static void dump_get_ioctl_result_request( const struct get_ioctl_result_request
*req
)
2478 fprintf( stderr
, " handle=%p,", req
->handle
);
2479 fprintf( stderr
, " user_arg=%p", req
->user_arg
);
2482 static void dump_get_ioctl_result_reply( const struct get_ioctl_result_reply
*req
)
2484 fprintf( stderr
, " out_data=" );
2485 dump_varargs_bytes( cur_size
);
2488 static void dump_create_named_pipe_request( const struct create_named_pipe_request
*req
)
2490 fprintf( stderr
, " access=%08x,", req
->access
);
2491 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
2492 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
2493 fprintf( stderr
, " options=%08x,", req
->options
);
2494 fprintf( stderr
, " flags=%08x,", req
->flags
);
2495 fprintf( stderr
, " maxinstances=%08x,", req
->maxinstances
);
2496 fprintf( stderr
, " outsize=%08x,", req
->outsize
);
2497 fprintf( stderr
, " insize=%08x,", req
->insize
);
2498 fprintf( stderr
, " timeout=" );
2499 dump_timeout( &req
->timeout
);
2500 fprintf( stderr
, "," );
2501 fprintf( stderr
, " name=" );
2502 dump_varargs_unicode_str( cur_size
);
2505 static void dump_create_named_pipe_reply( const struct create_named_pipe_reply
*req
)
2507 fprintf( stderr
, " handle=%p", req
->handle
);
2510 static void dump_get_named_pipe_info_request( const struct get_named_pipe_info_request
*req
)
2512 fprintf( stderr
, " handle=%p", req
->handle
);
2515 static void dump_get_named_pipe_info_reply( const struct get_named_pipe_info_reply
*req
)
2517 fprintf( stderr
, " flags=%08x,", req
->flags
);
2518 fprintf( stderr
, " maxinstances=%08x,", req
->maxinstances
);
2519 fprintf( stderr
, " instances=%08x,", req
->instances
);
2520 fprintf( stderr
, " outsize=%08x,", req
->outsize
);
2521 fprintf( stderr
, " insize=%08x", req
->insize
);
2524 static void dump_create_cursor_request( const struct create_cursor_request
*req
)
2526 fprintf( stderr
, " num_frames=%08x,", req
->num_frames
);
2527 fprintf( stderr
, " delay=%04x", req
->delay
);
2530 static void dump_create_cursor_reply( const struct create_cursor_reply
*req
)
2532 fprintf( stderr
, " handle=%p", req
->handle
);
2535 static void dump_destroy_cursor_request( const struct destroy_cursor_request
*req
)
2537 fprintf( stderr
, " handle=%p", req
->handle
);
2540 static void dump_get_cursor_info_request( const struct get_cursor_info_request
*req
)
2542 fprintf( stderr
, " handle=%p", req
->handle
);
2545 static void dump_get_cursor_info_reply( const struct get_cursor_info_reply
*req
)
2547 fprintf( stderr
, " num_frames=%08x,", req
->num_frames
);
2548 fprintf( stderr
, " delay=%04x", req
->delay
);
2551 static void dump_get_cursor_frame_request( const struct get_cursor_frame_request
*req
)
2553 fprintf( stderr
, " handle=%p,", req
->handle
);
2554 fprintf( stderr
, " frame_idx=%08x", req
->frame_idx
);
2557 static void dump_get_cursor_frame_reply( const struct get_cursor_frame_reply
*req
)
2559 fprintf( stderr
, " xhot=%04x,", req
->xhot
);
2560 fprintf( stderr
, " yhot=%04x,", req
->yhot
);
2561 fprintf( stderr
, " width=%04x,", req
->width
);
2562 fprintf( stderr
, " height=%04x,", req
->height
);
2563 fprintf( stderr
, " and_width_bytes=%04x,", req
->and_width_bytes
);
2564 fprintf( stderr
, " xor_width_bytes=%04x,", req
->xor_width_bytes
);
2565 fprintf( stderr
, " planes=%02x,", req
->planes
);
2566 fprintf( stderr
, " bpp=%02x,", req
->bpp
);
2567 fprintf( stderr
, " data=" );
2568 dump_varargs_bytes( cur_size
);
2571 static void dump_set_cursor_frame_request( const struct set_cursor_frame_request
*req
)
2573 fprintf( stderr
, " handle=%p,", req
->handle
);
2574 fprintf( stderr
, " frame_idx=%08x,", req
->frame_idx
);
2575 fprintf( stderr
, " xhot=%04x,", req
->xhot
);
2576 fprintf( stderr
, " yhot=%04x,", req
->yhot
);
2577 fprintf( stderr
, " width=%04x,", req
->width
);
2578 fprintf( stderr
, " height=%04x,", req
->height
);
2579 fprintf( stderr
, " and_width_bytes=%04x,", req
->and_width_bytes
);
2580 fprintf( stderr
, " xor_width_bytes=%04x,", req
->xor_width_bytes
);
2581 fprintf( stderr
, " planes=%02x,", req
->planes
);
2582 fprintf( stderr
, " bpp=%02x,", req
->bpp
);
2583 fprintf( stderr
, " data=" );
2584 dump_varargs_bytes( cur_size
);
2587 static void dump_create_window_request( const struct create_window_request
*req
)
2589 fprintf( stderr
, " parent=%p,", req
->parent
);
2590 fprintf( stderr
, " owner=%p,", req
->owner
);
2591 fprintf( stderr
, " atom=%04x,", req
->atom
);
2592 fprintf( stderr
, " instance=%p,", req
->instance
);
2593 fprintf( stderr
, " class=" );
2594 dump_varargs_unicode_str( cur_size
);
2597 static void dump_create_window_reply( const struct create_window_reply
*req
)
2599 fprintf( stderr
, " handle=%p,", req
->handle
);
2600 fprintf( stderr
, " parent=%p,", req
->parent
);
2601 fprintf( stderr
, " owner=%p,", req
->owner
);
2602 fprintf( stderr
, " extra=%d,", req
->extra
);
2603 fprintf( stderr
, " class_ptr=%p", req
->class_ptr
);
2606 static void dump_destroy_window_request( const struct destroy_window_request
*req
)
2608 fprintf( stderr
, " handle=%p", req
->handle
);
2611 static void dump_get_desktop_window_request( const struct get_desktop_window_request
*req
)
2613 fprintf( stderr
, " force=%d", req
->force
);
2616 static void dump_get_desktop_window_reply( const struct get_desktop_window_reply
*req
)
2618 fprintf( stderr
, " handle=%p", req
->handle
);
2621 static void dump_set_window_owner_request( const struct set_window_owner_request
*req
)
2623 fprintf( stderr
, " handle=%p,", req
->handle
);
2624 fprintf( stderr
, " owner=%p", req
->owner
);
2627 static void dump_set_window_owner_reply( const struct set_window_owner_reply
*req
)
2629 fprintf( stderr
, " full_owner=%p,", req
->full_owner
);
2630 fprintf( stderr
, " prev_owner=%p", req
->prev_owner
);
2633 static void dump_get_window_info_request( const struct get_window_info_request
*req
)
2635 fprintf( stderr
, " handle=%p", req
->handle
);
2638 static void dump_get_window_info_reply( const struct get_window_info_reply
*req
)
2640 fprintf( stderr
, " full_handle=%p,", req
->full_handle
);
2641 fprintf( stderr
, " last_active=%p,", req
->last_active
);
2642 fprintf( stderr
, " pid=%04x,", req
->pid
);
2643 fprintf( stderr
, " tid=%04x,", req
->tid
);
2644 fprintf( stderr
, " atom=%04x,", req
->atom
);
2645 fprintf( stderr
, " is_unicode=%d", req
->is_unicode
);
2648 static void dump_set_window_info_request( const struct set_window_info_request
*req
)
2650 fprintf( stderr
, " flags=%08x,", req
->flags
);
2651 fprintf( stderr
, " handle=%p,", req
->handle
);
2652 fprintf( stderr
, " style=%08x,", req
->style
);
2653 fprintf( stderr
, " ex_style=%08x,", req
->ex_style
);
2654 fprintf( stderr
, " id=%08x,", req
->id
);
2655 fprintf( stderr
, " is_unicode=%d,", req
->is_unicode
);
2656 fprintf( stderr
, " instance=%p,", req
->instance
);
2657 fprintf( stderr
, " user_data=%lx,", req
->user_data
);
2658 fprintf( stderr
, " extra_offset=%d,", req
->extra_offset
);
2659 fprintf( stderr
, " extra_size=%u,", req
->extra_size
);
2660 fprintf( stderr
, " extra_value=%lx", req
->extra_value
);
2663 static void dump_set_window_info_reply( const struct set_window_info_reply
*req
)
2665 fprintf( stderr
, " old_style=%08x,", req
->old_style
);
2666 fprintf( stderr
, " old_ex_style=%08x,", req
->old_ex_style
);
2667 fprintf( stderr
, " old_id=%08x,", req
->old_id
);
2668 fprintf( stderr
, " old_instance=%p,", req
->old_instance
);
2669 fprintf( stderr
, " old_user_data=%lx,", req
->old_user_data
);
2670 fprintf( stderr
, " old_extra_value=%lx", req
->old_extra_value
);
2673 static void dump_set_parent_request( const struct set_parent_request
*req
)
2675 fprintf( stderr
, " handle=%p,", req
->handle
);
2676 fprintf( stderr
, " parent=%p", req
->parent
);
2679 static void dump_set_parent_reply( const struct set_parent_reply
*req
)
2681 fprintf( stderr
, " old_parent=%p,", req
->old_parent
);
2682 fprintf( stderr
, " full_parent=%p", req
->full_parent
);
2685 static void dump_get_window_parents_request( const struct get_window_parents_request
*req
)
2687 fprintf( stderr
, " handle=%p", req
->handle
);
2690 static void dump_get_window_parents_reply( const struct get_window_parents_reply
*req
)
2692 fprintf( stderr
, " count=%d,", req
->count
);
2693 fprintf( stderr
, " parents=" );
2694 dump_varargs_user_handles( cur_size
);
2697 static void dump_get_window_children_request( const struct get_window_children_request
*req
)
2699 fprintf( stderr
, " parent=%p,", req
->parent
);
2700 fprintf( stderr
, " atom=%04x,", req
->atom
);
2701 fprintf( stderr
, " tid=%04x,", req
->tid
);
2702 fprintf( stderr
, " class=" );
2703 dump_varargs_unicode_str( cur_size
);
2706 static void dump_get_window_children_reply( const struct get_window_children_reply
*req
)
2708 fprintf( stderr
, " count=%d,", req
->count
);
2709 fprintf( stderr
, " children=" );
2710 dump_varargs_user_handles( cur_size
);
2713 static void dump_get_window_children_from_point_request( const struct get_window_children_from_point_request
*req
)
2715 fprintf( stderr
, " parent=%p,", req
->parent
);
2716 fprintf( stderr
, " x=%d,", req
->x
);
2717 fprintf( stderr
, " y=%d", req
->y
);
2720 static void dump_get_window_children_from_point_reply( const struct get_window_children_from_point_reply
*req
)
2722 fprintf( stderr
, " count=%d,", req
->count
);
2723 fprintf( stderr
, " children=" );
2724 dump_varargs_user_handles( cur_size
);
2727 static void dump_get_window_tree_request( const struct get_window_tree_request
*req
)
2729 fprintf( stderr
, " handle=%p", req
->handle
);
2732 static void dump_get_window_tree_reply( const struct get_window_tree_reply
*req
)
2734 fprintf( stderr
, " parent=%p,", req
->parent
);
2735 fprintf( stderr
, " owner=%p,", req
->owner
);
2736 fprintf( stderr
, " next_sibling=%p,", req
->next_sibling
);
2737 fprintf( stderr
, " prev_sibling=%p,", req
->prev_sibling
);
2738 fprintf( stderr
, " first_sibling=%p,", req
->first_sibling
);
2739 fprintf( stderr
, " last_sibling=%p,", req
->last_sibling
);
2740 fprintf( stderr
, " first_child=%p,", req
->first_child
);
2741 fprintf( stderr
, " last_child=%p", req
->last_child
);
2744 static void dump_set_window_pos_request( const struct set_window_pos_request
*req
)
2746 fprintf( stderr
, " flags=%08x,", req
->flags
);
2747 fprintf( stderr
, " handle=%p,", req
->handle
);
2748 fprintf( stderr
, " previous=%p,", req
->previous
);
2749 fprintf( stderr
, " window=" );
2750 dump_rectangle( &req
->window
);
2751 fprintf( stderr
, "," );
2752 fprintf( stderr
, " client=" );
2753 dump_rectangle( &req
->client
);
2754 fprintf( stderr
, "," );
2755 fprintf( stderr
, " valid=" );
2756 dump_varargs_rectangles( cur_size
);
2759 static void dump_set_window_pos_reply( const struct set_window_pos_reply
*req
)
2761 fprintf( stderr
, " new_style=%08x,", req
->new_style
);
2762 fprintf( stderr
, " new_ex_style=%08x", req
->new_ex_style
);
2765 static void dump_get_window_rectangles_request( const struct get_window_rectangles_request
*req
)
2767 fprintf( stderr
, " handle=%p", req
->handle
);
2770 static void dump_get_window_rectangles_reply( const struct get_window_rectangles_reply
*req
)
2772 fprintf( stderr
, " window=" );
2773 dump_rectangle( &req
->window
);
2774 fprintf( stderr
, "," );
2775 fprintf( stderr
, " visible=" );
2776 dump_rectangle( &req
->visible
);
2777 fprintf( stderr
, "," );
2778 fprintf( stderr
, " client=" );
2779 dump_rectangle( &req
->client
);
2782 static void dump_get_window_text_request( const struct get_window_text_request
*req
)
2784 fprintf( stderr
, " handle=%p", req
->handle
);
2787 static void dump_get_window_text_reply( const struct get_window_text_reply
*req
)
2789 fprintf( stderr
, " text=" );
2790 dump_varargs_unicode_str( cur_size
);
2793 static void dump_set_window_text_request( const struct set_window_text_request
*req
)
2795 fprintf( stderr
, " handle=%p,", req
->handle
);
2796 fprintf( stderr
, " text=" );
2797 dump_varargs_unicode_str( cur_size
);
2800 static void dump_get_windows_offset_request( const struct get_windows_offset_request
*req
)
2802 fprintf( stderr
, " from=%p,", req
->from
);
2803 fprintf( stderr
, " to=%p", req
->to
);
2806 static void dump_get_windows_offset_reply( const struct get_windows_offset_reply
*req
)
2808 fprintf( stderr
, " x=%d,", req
->x
);
2809 fprintf( stderr
, " y=%d", req
->y
);
2812 static void dump_get_visible_region_request( const struct get_visible_region_request
*req
)
2814 fprintf( stderr
, " window=%p,", req
->window
);
2815 fprintf( stderr
, " flags=%08x", req
->flags
);
2818 static void dump_get_visible_region_reply( const struct get_visible_region_reply
*req
)
2820 fprintf( stderr
, " top_win=%p,", req
->top_win
);
2821 fprintf( stderr
, " top_rect=" );
2822 dump_rectangle( &req
->top_rect
);
2823 fprintf( stderr
, "," );
2824 fprintf( stderr
, " win_rect=" );
2825 dump_rectangle( &req
->win_rect
);
2826 fprintf( stderr
, "," );
2827 fprintf( stderr
, " total_size=%u,", req
->total_size
);
2828 fprintf( stderr
, " region=" );
2829 dump_varargs_rectangles( cur_size
);
2832 static void dump_get_window_region_request( const struct get_window_region_request
*req
)
2834 fprintf( stderr
, " window=%p", req
->window
);
2837 static void dump_get_window_region_reply( const struct get_window_region_reply
*req
)
2839 fprintf( stderr
, " total_size=%u,", req
->total_size
);
2840 fprintf( stderr
, " region=" );
2841 dump_varargs_rectangles( cur_size
);
2844 static void dump_set_window_region_request( const struct set_window_region_request
*req
)
2846 fprintf( stderr
, " window=%p,", req
->window
);
2847 fprintf( stderr
, " redraw=%d,", req
->redraw
);
2848 fprintf( stderr
, " region=" );
2849 dump_varargs_rectangles( cur_size
);
2852 static void dump_get_update_region_request( const struct get_update_region_request
*req
)
2854 fprintf( stderr
, " window=%p,", req
->window
);
2855 fprintf( stderr
, " from_child=%p,", req
->from_child
);
2856 fprintf( stderr
, " flags=%08x", req
->flags
);
2859 static void dump_get_update_region_reply( const struct get_update_region_reply
*req
)
2861 fprintf( stderr
, " child=%p,", req
->child
);
2862 fprintf( stderr
, " flags=%08x,", req
->flags
);
2863 fprintf( stderr
, " total_size=%u,", req
->total_size
);
2864 fprintf( stderr
, " region=" );
2865 dump_varargs_rectangles( cur_size
);
2868 static void dump_update_window_zorder_request( const struct update_window_zorder_request
*req
)
2870 fprintf( stderr
, " window=%p,", req
->window
);
2871 fprintf( stderr
, " rect=" );
2872 dump_rectangle( &req
->rect
);
2875 static void dump_redraw_window_request( const struct redraw_window_request
*req
)
2877 fprintf( stderr
, " window=%p,", req
->window
);
2878 fprintf( stderr
, " flags=%08x,", req
->flags
);
2879 fprintf( stderr
, " region=" );
2880 dump_varargs_rectangles( cur_size
);
2883 static void dump_set_window_property_request( const struct set_window_property_request
*req
)
2885 fprintf( stderr
, " window=%p,", req
->window
);
2886 fprintf( stderr
, " atom=%04x,", req
->atom
);
2887 fprintf( stderr
, " handle=%p,", req
->handle
);
2888 fprintf( stderr
, " name=" );
2889 dump_varargs_unicode_str( cur_size
);
2892 static void dump_remove_window_property_request( const struct remove_window_property_request
*req
)
2894 fprintf( stderr
, " window=%p,", req
->window
);
2895 fprintf( stderr
, " atom=%04x,", req
->atom
);
2896 fprintf( stderr
, " name=" );
2897 dump_varargs_unicode_str( cur_size
);
2900 static void dump_remove_window_property_reply( const struct remove_window_property_reply
*req
)
2902 fprintf( stderr
, " handle=%p", req
->handle
);
2905 static void dump_get_window_property_request( const struct get_window_property_request
*req
)
2907 fprintf( stderr
, " window=%p,", req
->window
);
2908 fprintf( stderr
, " atom=%04x,", req
->atom
);
2909 fprintf( stderr
, " name=" );
2910 dump_varargs_unicode_str( cur_size
);
2913 static void dump_get_window_property_reply( const struct get_window_property_reply
*req
)
2915 fprintf( stderr
, " handle=%p", req
->handle
);
2918 static void dump_get_window_properties_request( const struct get_window_properties_request
*req
)
2920 fprintf( stderr
, " window=%p", req
->window
);
2923 static void dump_get_window_properties_reply( const struct get_window_properties_reply
*req
)
2925 fprintf( stderr
, " total=%d,", req
->total
);
2926 fprintf( stderr
, " props=" );
2927 dump_varargs_properties( cur_size
);
2930 static void dump_create_winstation_request( const struct create_winstation_request
*req
)
2932 fprintf( stderr
, " flags=%08x,", req
->flags
);
2933 fprintf( stderr
, " access=%08x,", req
->access
);
2934 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
2935 fprintf( stderr
, " name=" );
2936 dump_varargs_unicode_str( cur_size
);
2939 static void dump_create_winstation_reply( const struct create_winstation_reply
*req
)
2941 fprintf( stderr
, " handle=%p", req
->handle
);
2944 static void dump_open_winstation_request( const struct open_winstation_request
*req
)
2946 fprintf( stderr
, " access=%08x,", req
->access
);
2947 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
2948 fprintf( stderr
, " name=" );
2949 dump_varargs_unicode_str( cur_size
);
2952 static void dump_open_winstation_reply( const struct open_winstation_reply
*req
)
2954 fprintf( stderr
, " handle=%p", req
->handle
);
2957 static void dump_close_winstation_request( const struct close_winstation_request
*req
)
2959 fprintf( stderr
, " handle=%p", req
->handle
);
2962 static void dump_get_process_winstation_request( const struct get_process_winstation_request
*req
)
2966 static void dump_get_process_winstation_reply( const struct get_process_winstation_reply
*req
)
2968 fprintf( stderr
, " handle=%p", req
->handle
);
2971 static void dump_set_process_winstation_request( const struct set_process_winstation_request
*req
)
2973 fprintf( stderr
, " handle=%p", req
->handle
);
2976 static void dump_create_desktop_request( const struct create_desktop_request
*req
)
2978 fprintf( stderr
, " flags=%08x,", req
->flags
);
2979 fprintf( stderr
, " access=%08x,", req
->access
);
2980 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
2981 fprintf( stderr
, " name=" );
2982 dump_varargs_unicode_str( cur_size
);
2985 static void dump_create_desktop_reply( const struct create_desktop_reply
*req
)
2987 fprintf( stderr
, " handle=%p", req
->handle
);
2990 static void dump_open_desktop_request( const struct open_desktop_request
*req
)
2992 fprintf( stderr
, " flags=%08x,", req
->flags
);
2993 fprintf( stderr
, " access=%08x,", req
->access
);
2994 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
2995 fprintf( stderr
, " name=" );
2996 dump_varargs_unicode_str( cur_size
);
2999 static void dump_open_desktop_reply( const struct open_desktop_reply
*req
)
3001 fprintf( stderr
, " handle=%p", req
->handle
);
3004 static void dump_close_desktop_request( const struct close_desktop_request
*req
)
3006 fprintf( stderr
, " handle=%p", req
->handle
);
3009 static void dump_get_thread_desktop_request( const struct get_thread_desktop_request
*req
)
3011 fprintf( stderr
, " tid=%04x", req
->tid
);
3014 static void dump_get_thread_desktop_reply( const struct get_thread_desktop_reply
*req
)
3016 fprintf( stderr
, " handle=%p", req
->handle
);
3019 static void dump_set_thread_desktop_request( const struct set_thread_desktop_request
*req
)
3021 fprintf( stderr
, " handle=%p", req
->handle
);
3024 static void dump_set_user_object_info_request( const struct set_user_object_info_request
*req
)
3026 fprintf( stderr
, " handle=%p,", req
->handle
);
3027 fprintf( stderr
, " flags=%08x,", req
->flags
);
3028 fprintf( stderr
, " obj_flags=%08x", req
->obj_flags
);
3031 static void dump_set_user_object_info_reply( const struct set_user_object_info_reply
*req
)
3033 fprintf( stderr
, " is_desktop=%d,", req
->is_desktop
);
3034 fprintf( stderr
, " old_obj_flags=%08x,", req
->old_obj_flags
);
3035 fprintf( stderr
, " name=" );
3036 dump_varargs_unicode_str( cur_size
);
3039 static void dump_attach_thread_input_request( const struct attach_thread_input_request
*req
)
3041 fprintf( stderr
, " tid_from=%04x,", req
->tid_from
);
3042 fprintf( stderr
, " tid_to=%04x,", req
->tid_to
);
3043 fprintf( stderr
, " attach=%d", req
->attach
);
3046 static void dump_get_thread_input_request( const struct get_thread_input_request
*req
)
3048 fprintf( stderr
, " tid=%04x", req
->tid
);
3051 static void dump_get_thread_input_reply( const struct get_thread_input_reply
*req
)
3053 fprintf( stderr
, " focus=%p,", req
->focus
);
3054 fprintf( stderr
, " capture=%p,", req
->capture
);
3055 fprintf( stderr
, " active=%p,", req
->active
);
3056 fprintf( stderr
, " foreground=%p,", req
->foreground
);
3057 fprintf( stderr
, " menu_owner=%p,", req
->menu_owner
);
3058 fprintf( stderr
, " move_size=%p,", req
->move_size
);
3059 fprintf( stderr
, " caret=%p,", req
->caret
);
3060 fprintf( stderr
, " rect=" );
3061 dump_rectangle( &req
->rect
);
3064 static void dump_get_last_input_time_request( const struct get_last_input_time_request
*req
)
3068 static void dump_get_last_input_time_reply( const struct get_last_input_time_reply
*req
)
3070 fprintf( stderr
, " time=%08x", req
->time
);
3073 static void dump_get_key_state_request( const struct get_key_state_request
*req
)
3075 fprintf( stderr
, " tid=%04x,", req
->tid
);
3076 fprintf( stderr
, " key=%d", req
->key
);
3079 static void dump_get_key_state_reply( const struct get_key_state_reply
*req
)
3081 fprintf( stderr
, " state=%02x,", req
->state
);
3082 fprintf( stderr
, " keystate=" );
3083 dump_varargs_bytes( cur_size
);
3086 static void dump_set_key_state_request( const struct set_key_state_request
*req
)
3088 fprintf( stderr
, " tid=%04x,", req
->tid
);
3089 fprintf( stderr
, " keystate=" );
3090 dump_varargs_bytes( cur_size
);
3093 static void dump_set_foreground_window_request( const struct set_foreground_window_request
*req
)
3095 fprintf( stderr
, " handle=%p", req
->handle
);
3098 static void dump_set_foreground_window_reply( const struct set_foreground_window_reply
*req
)
3100 fprintf( stderr
, " previous=%p,", req
->previous
);
3101 fprintf( stderr
, " send_msg_old=%d,", req
->send_msg_old
);
3102 fprintf( stderr
, " send_msg_new=%d", req
->send_msg_new
);
3105 static void dump_set_focus_window_request( const struct set_focus_window_request
*req
)
3107 fprintf( stderr
, " handle=%p", req
->handle
);
3110 static void dump_set_focus_window_reply( const struct set_focus_window_reply
*req
)
3112 fprintf( stderr
, " previous=%p", req
->previous
);
3115 static void dump_set_active_window_request( const struct set_active_window_request
*req
)
3117 fprintf( stderr
, " handle=%p", req
->handle
);
3120 static void dump_set_active_window_reply( const struct set_active_window_reply
*req
)
3122 fprintf( stderr
, " previous=%p", req
->previous
);
3125 static void dump_set_capture_window_request( const struct set_capture_window_request
*req
)
3127 fprintf( stderr
, " handle=%p,", req
->handle
);
3128 fprintf( stderr
, " flags=%08x", req
->flags
);
3131 static void dump_set_capture_window_reply( const struct set_capture_window_reply
*req
)
3133 fprintf( stderr
, " previous=%p,", req
->previous
);
3134 fprintf( stderr
, " full_handle=%p", req
->full_handle
);
3137 static void dump_set_caret_window_request( const struct set_caret_window_request
*req
)
3139 fprintf( stderr
, " handle=%p,", req
->handle
);
3140 fprintf( stderr
, " width=%d,", req
->width
);
3141 fprintf( stderr
, " height=%d", req
->height
);
3144 static void dump_set_caret_window_reply( const struct set_caret_window_reply
*req
)
3146 fprintf( stderr
, " previous=%p,", req
->previous
);
3147 fprintf( stderr
, " old_rect=" );
3148 dump_rectangle( &req
->old_rect
);
3149 fprintf( stderr
, "," );
3150 fprintf( stderr
, " old_hide=%d,", req
->old_hide
);
3151 fprintf( stderr
, " old_state=%d", req
->old_state
);
3154 static void dump_set_caret_info_request( const struct set_caret_info_request
*req
)
3156 fprintf( stderr
, " flags=%08x,", req
->flags
);
3157 fprintf( stderr
, " handle=%p,", req
->handle
);
3158 fprintf( stderr
, " x=%d,", req
->x
);
3159 fprintf( stderr
, " y=%d,", req
->y
);
3160 fprintf( stderr
, " hide=%d,", req
->hide
);
3161 fprintf( stderr
, " state=%d", req
->state
);
3164 static void dump_set_caret_info_reply( const struct set_caret_info_reply
*req
)
3166 fprintf( stderr
, " full_handle=%p,", req
->full_handle
);
3167 fprintf( stderr
, " old_rect=" );
3168 dump_rectangle( &req
->old_rect
);
3169 fprintf( stderr
, "," );
3170 fprintf( stderr
, " old_hide=%d,", req
->old_hide
);
3171 fprintf( stderr
, " old_state=%d", req
->old_state
);
3174 static void dump_set_hook_request( const struct set_hook_request
*req
)
3176 fprintf( stderr
, " id=%d,", req
->id
);
3177 fprintf( stderr
, " pid=%04x,", req
->pid
);
3178 fprintf( stderr
, " tid=%04x,", req
->tid
);
3179 fprintf( stderr
, " event_min=%d,", req
->event_min
);
3180 fprintf( stderr
, " event_max=%d,", req
->event_max
);
3181 fprintf( stderr
, " flags=%d,", req
->flags
);
3182 fprintf( stderr
, " proc=%p,", req
->proc
);
3183 fprintf( stderr
, " unicode=%d,", req
->unicode
);
3184 fprintf( stderr
, " module=" );
3185 dump_varargs_unicode_str( cur_size
);
3188 static void dump_set_hook_reply( const struct set_hook_reply
*req
)
3190 fprintf( stderr
, " handle=%p,", req
->handle
);
3191 fprintf( stderr
, " active_hooks=%08x", req
->active_hooks
);
3194 static void dump_remove_hook_request( const struct remove_hook_request
*req
)
3196 fprintf( stderr
, " handle=%p,", req
->handle
);
3197 fprintf( stderr
, " id=%d,", req
->id
);
3198 fprintf( stderr
, " proc=%p", req
->proc
);
3201 static void dump_remove_hook_reply( const struct remove_hook_reply
*req
)
3203 fprintf( stderr
, " active_hooks=%08x", req
->active_hooks
);
3206 static void dump_start_hook_chain_request( const struct start_hook_chain_request
*req
)
3208 fprintf( stderr
, " id=%d,", req
->id
);
3209 fprintf( stderr
, " event=%d,", req
->event
);
3210 fprintf( stderr
, " window=%p,", req
->window
);
3211 fprintf( stderr
, " object_id=%d,", req
->object_id
);
3212 fprintf( stderr
, " child_id=%d", req
->child_id
);
3215 static void dump_start_hook_chain_reply( const struct start_hook_chain_reply
*req
)
3217 fprintf( stderr
, " handle=%p,", req
->handle
);
3218 fprintf( stderr
, " pid=%04x,", req
->pid
);
3219 fprintf( stderr
, " tid=%04x,", req
->tid
);
3220 fprintf( stderr
, " proc=%p,", req
->proc
);
3221 fprintf( stderr
, " unicode=%d,", req
->unicode
);
3222 fprintf( stderr
, " active_hooks=%08x,", req
->active_hooks
);
3223 fprintf( stderr
, " module=" );
3224 dump_varargs_unicode_str( cur_size
);
3227 static void dump_finish_hook_chain_request( const struct finish_hook_chain_request
*req
)
3229 fprintf( stderr
, " id=%d", req
->id
);
3232 static void dump_get_hook_info_request( const struct get_hook_info_request
*req
)
3234 fprintf( stderr
, " handle=%p,", req
->handle
);
3235 fprintf( stderr
, " get_next=%d,", req
->get_next
);
3236 fprintf( stderr
, " event=%d,", req
->event
);
3237 fprintf( stderr
, " window=%p,", req
->window
);
3238 fprintf( stderr
, " object_id=%d,", req
->object_id
);
3239 fprintf( stderr
, " child_id=%d", req
->child_id
);
3242 static void dump_get_hook_info_reply( const struct get_hook_info_reply
*req
)
3244 fprintf( stderr
, " handle=%p,", req
->handle
);
3245 fprintf( stderr
, " id=%d,", req
->id
);
3246 fprintf( stderr
, " pid=%04x,", req
->pid
);
3247 fprintf( stderr
, " tid=%04x,", req
->tid
);
3248 fprintf( stderr
, " proc=%p,", req
->proc
);
3249 fprintf( stderr
, " unicode=%d,", req
->unicode
);
3250 fprintf( stderr
, " module=" );
3251 dump_varargs_unicode_str( cur_size
);
3254 static void dump_create_class_request( const struct create_class_request
*req
)
3256 fprintf( stderr
, " local=%d,", req
->local
);
3257 fprintf( stderr
, " atom=%04x,", req
->atom
);
3258 fprintf( stderr
, " style=%08x,", req
->style
);
3259 fprintf( stderr
, " instance=%p,", req
->instance
);
3260 fprintf( stderr
, " extra=%d,", req
->extra
);
3261 fprintf( stderr
, " win_extra=%d,", req
->win_extra
);
3262 fprintf( stderr
, " client_ptr=%p,", req
->client_ptr
);
3263 fprintf( stderr
, " name=" );
3264 dump_varargs_unicode_str( cur_size
);
3267 static void dump_create_class_reply( const struct create_class_reply
*req
)
3269 fprintf( stderr
, " atom=%04x", req
->atom
);
3272 static void dump_destroy_class_request( const struct destroy_class_request
*req
)
3274 fprintf( stderr
, " atom=%04x,", req
->atom
);
3275 fprintf( stderr
, " instance=%p,", req
->instance
);
3276 fprintf( stderr
, " name=" );
3277 dump_varargs_unicode_str( cur_size
);
3280 static void dump_destroy_class_reply( const struct destroy_class_reply
*req
)
3282 fprintf( stderr
, " client_ptr=%p", req
->client_ptr
);
3285 static void dump_set_class_info_request( const struct set_class_info_request
*req
)
3287 fprintf( stderr
, " window=%p,", req
->window
);
3288 fprintf( stderr
, " flags=%08x,", req
->flags
);
3289 fprintf( stderr
, " atom=%04x,", req
->atom
);
3290 fprintf( stderr
, " style=%08x,", req
->style
);
3291 fprintf( stderr
, " win_extra=%d,", req
->win_extra
);
3292 fprintf( stderr
, " instance=%p,", req
->instance
);
3293 fprintf( stderr
, " extra_offset=%d,", req
->extra_offset
);
3294 fprintf( stderr
, " extra_size=%u,", req
->extra_size
);
3295 fprintf( stderr
, " extra_value=%lx", req
->extra_value
);
3298 static void dump_set_class_info_reply( const struct set_class_info_reply
*req
)
3300 fprintf( stderr
, " old_atom=%04x,", req
->old_atom
);
3301 fprintf( stderr
, " old_style=%08x,", req
->old_style
);
3302 fprintf( stderr
, " old_extra=%d,", req
->old_extra
);
3303 fprintf( stderr
, " old_win_extra=%d,", req
->old_win_extra
);
3304 fprintf( stderr
, " old_instance=%p,", req
->old_instance
);
3305 fprintf( stderr
, " old_extra_value=%lx", req
->old_extra_value
);
3308 static void dump_set_clipboard_info_request( const struct set_clipboard_info_request
*req
)
3310 fprintf( stderr
, " flags=%08x,", req
->flags
);
3311 fprintf( stderr
, " clipboard=%p,", req
->clipboard
);
3312 fprintf( stderr
, " owner=%p,", req
->owner
);
3313 fprintf( stderr
, " viewer=%p,", req
->viewer
);
3314 fprintf( stderr
, " seqno=%08x", req
->seqno
);
3317 static void dump_set_clipboard_info_reply( const struct set_clipboard_info_reply
*req
)
3319 fprintf( stderr
, " flags=%08x,", req
->flags
);
3320 fprintf( stderr
, " old_clipboard=%p,", req
->old_clipboard
);
3321 fprintf( stderr
, " old_owner=%p,", req
->old_owner
);
3322 fprintf( stderr
, " old_viewer=%p,", req
->old_viewer
);
3323 fprintf( stderr
, " seqno=%08x", req
->seqno
);
3326 static void dump_open_token_request( const struct open_token_request
*req
)
3328 fprintf( stderr
, " handle=%p,", req
->handle
);
3329 fprintf( stderr
, " access=%08x,", req
->access
);
3330 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
3331 fprintf( stderr
, " flags=%08x", req
->flags
);
3334 static void dump_open_token_reply( const struct open_token_reply
*req
)
3336 fprintf( stderr
, " token=%p", req
->token
);
3339 static void dump_set_global_windows_request( const struct set_global_windows_request
*req
)
3341 fprintf( stderr
, " flags=%08x,", req
->flags
);
3342 fprintf( stderr
, " shell_window=%p,", req
->shell_window
);
3343 fprintf( stderr
, " shell_listview=%p,", req
->shell_listview
);
3344 fprintf( stderr
, " progman_window=%p,", req
->progman_window
);
3345 fprintf( stderr
, " taskman_window=%p", req
->taskman_window
);
3348 static void dump_set_global_windows_reply( const struct set_global_windows_reply
*req
)
3350 fprintf( stderr
, " old_shell_window=%p,", req
->old_shell_window
);
3351 fprintf( stderr
, " old_shell_listview=%p,", req
->old_shell_listview
);
3352 fprintf( stderr
, " old_progman_window=%p,", req
->old_progman_window
);
3353 fprintf( stderr
, " old_taskman_window=%p", req
->old_taskman_window
);
3356 static void dump_adjust_token_privileges_request( const struct adjust_token_privileges_request
*req
)
3358 fprintf( stderr
, " handle=%p,", req
->handle
);
3359 fprintf( stderr
, " disable_all=%d,", req
->disable_all
);
3360 fprintf( stderr
, " get_modified_state=%d,", req
->get_modified_state
);
3361 fprintf( stderr
, " privileges=" );
3362 dump_varargs_LUID_AND_ATTRIBUTES( cur_size
);
3365 static void dump_adjust_token_privileges_reply( const struct adjust_token_privileges_reply
*req
)
3367 fprintf( stderr
, " len=%08x,", req
->len
);
3368 fprintf( stderr
, " privileges=" );
3369 dump_varargs_LUID_AND_ATTRIBUTES( cur_size
);
3372 static void dump_get_token_privileges_request( const struct get_token_privileges_request
*req
)
3374 fprintf( stderr
, " handle=%p", req
->handle
);
3377 static void dump_get_token_privileges_reply( const struct get_token_privileges_reply
*req
)
3379 fprintf( stderr
, " len=%08x,", req
->len
);
3380 fprintf( stderr
, " privileges=" );
3381 dump_varargs_LUID_AND_ATTRIBUTES( cur_size
);
3384 static void dump_check_token_privileges_request( const struct check_token_privileges_request
*req
)
3386 fprintf( stderr
, " handle=%p,", req
->handle
);
3387 fprintf( stderr
, " all_required=%d,", req
->all_required
);
3388 fprintf( stderr
, " privileges=" );
3389 dump_varargs_LUID_AND_ATTRIBUTES( cur_size
);
3392 static void dump_check_token_privileges_reply( const struct check_token_privileges_reply
*req
)
3394 fprintf( stderr
, " has_privileges=%d,", req
->has_privileges
);
3395 fprintf( stderr
, " privileges=" );
3396 dump_varargs_LUID_AND_ATTRIBUTES( cur_size
);
3399 static void dump_duplicate_token_request( const struct duplicate_token_request
*req
)
3401 fprintf( stderr
, " handle=%p,", req
->handle
);
3402 fprintf( stderr
, " access=%08x,", req
->access
);
3403 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
3404 fprintf( stderr
, " primary=%d,", req
->primary
);
3405 fprintf( stderr
, " impersonation_level=%d", req
->impersonation_level
);
3408 static void dump_duplicate_token_reply( const struct duplicate_token_reply
*req
)
3410 fprintf( stderr
, " new_handle=%p", req
->new_handle
);
3413 static void dump_access_check_request( const struct access_check_request
*req
)
3415 fprintf( stderr
, " handle=%p,", req
->handle
);
3416 fprintf( stderr
, " desired_access=%08x,", req
->desired_access
);
3417 fprintf( stderr
, " mapping_read=%08x,", req
->mapping_read
);
3418 fprintf( stderr
, " mapping_write=%08x,", req
->mapping_write
);
3419 fprintf( stderr
, " mapping_execute=%08x,", req
->mapping_execute
);
3420 fprintf( stderr
, " mapping_all=%08x,", req
->mapping_all
);
3421 fprintf( stderr
, " sd=" );
3422 dump_varargs_security_descriptor( cur_size
);
3425 static void dump_access_check_reply( const struct access_check_reply
*req
)
3427 fprintf( stderr
, " access_granted=%08x,", req
->access_granted
);
3428 fprintf( stderr
, " access_status=%08x,", req
->access_status
);
3429 fprintf( stderr
, " privileges_len=%08x,", req
->privileges_len
);
3430 fprintf( stderr
, " privileges=" );
3431 dump_varargs_LUID_AND_ATTRIBUTES( cur_size
);
3434 static void dump_get_token_user_request( const struct get_token_user_request
*req
)
3436 fprintf( stderr
, " handle=%p", req
->handle
);
3439 static void dump_get_token_user_reply( const struct get_token_user_reply
*req
)
3441 fprintf( stderr
, " user_len=%u,", req
->user_len
);
3442 fprintf( stderr
, " user=" );
3443 dump_varargs_SID( cur_size
);
3446 static void dump_get_token_groups_request( const struct get_token_groups_request
*req
)
3448 fprintf( stderr
, " handle=%p", req
->handle
);
3451 static void dump_get_token_groups_reply( const struct get_token_groups_reply
*req
)
3453 fprintf( stderr
, " user_len=%u,", req
->user_len
);
3454 fprintf( stderr
, " user=" );
3455 dump_varargs_token_groups( cur_size
);
3458 static void dump_set_security_object_request( const struct set_security_object_request
*req
)
3460 fprintf( stderr
, " handle=%p,", req
->handle
);
3461 fprintf( stderr
, " security_info=%08x,", req
->security_info
);
3462 fprintf( stderr
, " sd=" );
3463 dump_varargs_security_descriptor( cur_size
);
3466 static void dump_get_security_object_request( const struct get_security_object_request
*req
)
3468 fprintf( stderr
, " handle=%p,", req
->handle
);
3469 fprintf( stderr
, " security_info=%08x", req
->security_info
);
3472 static void dump_get_security_object_reply( const struct get_security_object_reply
*req
)
3474 fprintf( stderr
, " sd_len=%08x,", req
->sd_len
);
3475 fprintf( stderr
, " sd=" );
3476 dump_varargs_security_descriptor( cur_size
);
3479 static void dump_create_mailslot_request( const struct create_mailslot_request
*req
)
3481 fprintf( stderr
, " access=%08x,", req
->access
);
3482 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
3483 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
3484 fprintf( stderr
, " max_msgsize=%08x,", req
->max_msgsize
);
3485 fprintf( stderr
, " read_timeout=" );
3486 dump_timeout( &req
->read_timeout
);
3487 fprintf( stderr
, "," );
3488 fprintf( stderr
, " name=" );
3489 dump_varargs_unicode_str( cur_size
);
3492 static void dump_create_mailslot_reply( const struct create_mailslot_reply
*req
)
3494 fprintf( stderr
, " handle=%p", req
->handle
);
3497 static void dump_set_mailslot_info_request( const struct set_mailslot_info_request
*req
)
3499 fprintf( stderr
, " handle=%p,", req
->handle
);
3500 fprintf( stderr
, " flags=%08x,", req
->flags
);
3501 fprintf( stderr
, " read_timeout=" );
3502 dump_timeout( &req
->read_timeout
);
3505 static void dump_set_mailslot_info_reply( const struct set_mailslot_info_reply
*req
)
3507 fprintf( stderr
, " max_msgsize=%08x,", req
->max_msgsize
);
3508 fprintf( stderr
, " read_timeout=" );
3509 dump_timeout( &req
->read_timeout
);
3512 static void dump_create_directory_request( const struct create_directory_request
*req
)
3514 fprintf( stderr
, " access=%08x,", req
->access
);
3515 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
3516 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
3517 fprintf( stderr
, " directory_name=" );
3518 dump_varargs_unicode_str( cur_size
);
3521 static void dump_create_directory_reply( const struct create_directory_reply
*req
)
3523 fprintf( stderr
, " handle=%p", req
->handle
);
3526 static void dump_open_directory_request( const struct open_directory_request
*req
)
3528 fprintf( stderr
, " access=%08x,", req
->access
);
3529 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
3530 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
3531 fprintf( stderr
, " directory_name=" );
3532 dump_varargs_unicode_str( cur_size
);
3535 static void dump_open_directory_reply( const struct open_directory_reply
*req
)
3537 fprintf( stderr
, " handle=%p", req
->handle
);
3540 static void dump_create_symlink_request( const struct create_symlink_request
*req
)
3542 fprintf( stderr
, " access=%08x,", req
->access
);
3543 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
3544 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
3545 fprintf( stderr
, " name_len=%u,", req
->name_len
);
3546 fprintf( stderr
, " name=" );
3547 dump_varargs_unicode_str( min(cur_size
,req
->name_len
) );
3548 fputc( ',', stderr
);
3549 fprintf( stderr
, " target_name=" );
3550 dump_varargs_unicode_str( cur_size
);
3553 static void dump_create_symlink_reply( const struct create_symlink_reply
*req
)
3555 fprintf( stderr
, " handle=%p", req
->handle
);
3558 static void dump_open_symlink_request( const struct open_symlink_request
*req
)
3560 fprintf( stderr
, " access=%08x,", req
->access
);
3561 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
3562 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
3563 fprintf( stderr
, " name=" );
3564 dump_varargs_unicode_str( cur_size
);
3567 static void dump_open_symlink_reply( const struct open_symlink_reply
*req
)
3569 fprintf( stderr
, " handle=%p", req
->handle
);
3572 static void dump_query_symlink_request( const struct query_symlink_request
*req
)
3574 fprintf( stderr
, " handle=%p", req
->handle
);
3577 static void dump_query_symlink_reply( const struct query_symlink_reply
*req
)
3579 fprintf( stderr
, " target_name=" );
3580 dump_varargs_unicode_str( cur_size
);
3583 static void dump_get_object_info_request( const struct get_object_info_request
*req
)
3585 fprintf( stderr
, " handle=%p", req
->handle
);
3588 static void dump_get_object_info_reply( const struct get_object_info_reply
*req
)
3590 fprintf( stderr
, " access=%08x,", req
->access
);
3591 fprintf( stderr
, " ref_count=%08x", req
->ref_count
);
3594 static void dump_get_token_impersonation_level_request( const struct get_token_impersonation_level_request
*req
)
3596 fprintf( stderr
, " handle=%p", req
->handle
);
3599 static void dump_get_token_impersonation_level_reply( const struct get_token_impersonation_level_reply
*req
)
3601 fprintf( stderr
, " impersonation_level=%d", req
->impersonation_level
);
3604 static void dump_allocate_locally_unique_id_request( const struct allocate_locally_unique_id_request
*req
)
3608 static void dump_allocate_locally_unique_id_reply( const struct allocate_locally_unique_id_reply
*req
)
3610 fprintf( stderr
, " luid=" );
3611 dump_luid( &req
->luid
);
3614 static void dump_create_device_manager_request( const struct create_device_manager_request
*req
)
3616 fprintf( stderr
, " access=%08x,", req
->access
);
3617 fprintf( stderr
, " attributes=%08x", req
->attributes
);
3620 static void dump_create_device_manager_reply( const struct create_device_manager_reply
*req
)
3622 fprintf( stderr
, " handle=%p", req
->handle
);
3625 static void dump_create_device_request( const struct create_device_request
*req
)
3627 fprintf( stderr
, " access=%08x,", req
->access
);
3628 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
3629 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
3630 fprintf( stderr
, " manager=%p,", req
->manager
);
3631 fprintf( stderr
, " user_ptr=%p,", req
->user_ptr
);
3632 fprintf( stderr
, " name=" );
3633 dump_varargs_unicode_str( cur_size
);
3636 static void dump_create_device_reply( const struct create_device_reply
*req
)
3638 fprintf( stderr
, " handle=%p", req
->handle
);
3641 static void dump_delete_device_request( const struct delete_device_request
*req
)
3643 fprintf( stderr
, " handle=%p", req
->handle
);
3646 static void dump_get_next_device_request_request( const struct get_next_device_request_request
*req
)
3648 fprintf( stderr
, " manager=%p,", req
->manager
);
3649 fprintf( stderr
, " prev=%p,", req
->prev
);
3650 fprintf( stderr
, " status=%08x,", req
->status
);
3651 fprintf( stderr
, " prev_data=" );
3652 dump_varargs_bytes( cur_size
);
3655 static void dump_get_next_device_request_reply( const struct get_next_device_request_reply
*req
)
3657 fprintf( stderr
, " next=%p,", req
->next
);
3658 fprintf( stderr
, " code=" );
3659 dump_ioctl_code( &req
->code
);
3660 fprintf( stderr
, "," );
3661 fprintf( stderr
, " user_ptr=%p,", req
->user_ptr
);
3662 fprintf( stderr
, " in_size=%u,", req
->in_size
);
3663 fprintf( stderr
, " out_size=%u,", req
->out_size
);
3664 fprintf( stderr
, " next_data=" );
3665 dump_varargs_bytes( cur_size
);
3668 static void dump_make_process_system_request( const struct make_process_system_request
*req
)
3672 static void dump_make_process_system_reply( const struct make_process_system_reply
*req
)
3674 fprintf( stderr
, " event=%p", req
->event
);
3677 static void dump_get_token_statistics_request( const struct get_token_statistics_request
*req
)
3679 fprintf( stderr
, " handle=%p", req
->handle
);
3682 static void dump_get_token_statistics_reply( const struct get_token_statistics_reply
*req
)
3684 fprintf( stderr
, " token_id=" );
3685 dump_luid( &req
->token_id
);
3686 fprintf( stderr
, "," );
3687 fprintf( stderr
, " modified_id=" );
3688 dump_luid( &req
->modified_id
);
3689 fprintf( stderr
, "," );
3690 fprintf( stderr
, " primary=%d,", req
->primary
);
3691 fprintf( stderr
, " impersonation_level=%d,", req
->impersonation_level
);
3692 fprintf( stderr
, " group_count=%d,", req
->group_count
);
3693 fprintf( stderr
, " privilege_count=%d", req
->privilege_count
);
3696 static void dump_create_completion_request( const struct create_completion_request
*req
)
3698 fprintf( stderr
, " access=%08x,", req
->access
);
3699 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
3700 fprintf( stderr
, " concurrent=%08x,", req
->concurrent
);
3701 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
3702 fprintf( stderr
, " filename=" );
3703 dump_varargs_string( cur_size
);
3706 static void dump_create_completion_reply( const struct create_completion_reply
*req
)
3708 fprintf( stderr
, " handle=%p", req
->handle
);
3711 static void dump_open_completion_request( const struct open_completion_request
*req
)
3713 fprintf( stderr
, " access=%08x,", req
->access
);
3714 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
3715 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
3716 fprintf( stderr
, " filename=" );
3717 dump_varargs_string( cur_size
);
3720 static void dump_open_completion_reply( const struct open_completion_reply
*req
)
3722 fprintf( stderr
, " handle=%p", req
->handle
);
3725 static void dump_add_completion_request( const struct add_completion_request
*req
)
3727 fprintf( stderr
, " handle=%p,", req
->handle
);
3728 fprintf( stderr
, " ckey=%lx,", req
->ckey
);
3729 fprintf( stderr
, " cvalue=%lx,", req
->cvalue
);
3730 fprintf( stderr
, " information=%lx,", req
->information
);
3731 fprintf( stderr
, " status=%08x", req
->status
);
3734 static void dump_remove_completion_request( const struct remove_completion_request
*req
)
3736 fprintf( stderr
, " handle=%p", req
->handle
);
3739 static void dump_remove_completion_reply( const struct remove_completion_reply
*req
)
3741 fprintf( stderr
, " ckey=%lx,", req
->ckey
);
3742 fprintf( stderr
, " cvalue=%lx,", req
->cvalue
);
3743 fprintf( stderr
, " information=%lx,", req
->information
);
3744 fprintf( stderr
, " status=%08x", req
->status
);
3747 static void dump_query_completion_request( const struct query_completion_request
*req
)
3749 fprintf( stderr
, " handle=%p", req
->handle
);
3752 static void dump_query_completion_reply( const struct query_completion_reply
*req
)
3754 fprintf( stderr
, " depth=%08x", req
->depth
);
3757 static void dump_set_completion_info_request( const struct set_completion_info_request
*req
)
3759 fprintf( stderr
, " handle=%p,", req
->handle
);
3760 fprintf( stderr
, " chandle=%p,", req
->chandle
);
3761 fprintf( stderr
, " ckey=%lx", req
->ckey
);
3764 static void dump_add_fd_completion_request( const struct add_fd_completion_request
*req
)
3766 fprintf( stderr
, " handle=%p,", req
->handle
);
3767 fprintf( stderr
, " cvalue=%lx,", req
->cvalue
);
3768 fprintf( stderr
, " status=%08x,", req
->status
);
3769 fprintf( stderr
, " information=%lx", req
->information
);
3772 static const dump_func req_dumpers
[REQ_NB_REQUESTS
] = {
3773 (dump_func
)dump_new_process_request
,
3774 (dump_func
)dump_get_new_process_info_request
,
3775 (dump_func
)dump_new_thread_request
,
3776 (dump_func
)dump_get_startup_info_request
,
3777 (dump_func
)dump_init_process_done_request
,
3778 (dump_func
)dump_init_thread_request
,
3779 (dump_func
)dump_terminate_process_request
,
3780 (dump_func
)dump_terminate_thread_request
,
3781 (dump_func
)dump_get_process_info_request
,
3782 (dump_func
)dump_set_process_info_request
,
3783 (dump_func
)dump_get_thread_info_request
,
3784 (dump_func
)dump_set_thread_info_request
,
3785 (dump_func
)dump_get_dll_info_request
,
3786 (dump_func
)dump_suspend_thread_request
,
3787 (dump_func
)dump_resume_thread_request
,
3788 (dump_func
)dump_load_dll_request
,
3789 (dump_func
)dump_unload_dll_request
,
3790 (dump_func
)dump_queue_apc_request
,
3791 (dump_func
)dump_get_apc_result_request
,
3792 (dump_func
)dump_close_handle_request
,
3793 (dump_func
)dump_set_handle_info_request
,
3794 (dump_func
)dump_dup_handle_request
,
3795 (dump_func
)dump_open_process_request
,
3796 (dump_func
)dump_open_thread_request
,
3797 (dump_func
)dump_select_request
,
3798 (dump_func
)dump_create_event_request
,
3799 (dump_func
)dump_event_op_request
,
3800 (dump_func
)dump_open_event_request
,
3801 (dump_func
)dump_create_mutex_request
,
3802 (dump_func
)dump_release_mutex_request
,
3803 (dump_func
)dump_open_mutex_request
,
3804 (dump_func
)dump_create_semaphore_request
,
3805 (dump_func
)dump_release_semaphore_request
,
3806 (dump_func
)dump_open_semaphore_request
,
3807 (dump_func
)dump_create_file_request
,
3808 (dump_func
)dump_open_file_object_request
,
3809 (dump_func
)dump_alloc_file_handle_request
,
3810 (dump_func
)dump_get_handle_fd_request
,
3811 (dump_func
)dump_flush_file_request
,
3812 (dump_func
)dump_lock_file_request
,
3813 (dump_func
)dump_unlock_file_request
,
3814 (dump_func
)dump_create_socket_request
,
3815 (dump_func
)dump_accept_socket_request
,
3816 (dump_func
)dump_set_socket_event_request
,
3817 (dump_func
)dump_get_socket_event_request
,
3818 (dump_func
)dump_enable_socket_event_request
,
3819 (dump_func
)dump_set_socket_deferred_request
,
3820 (dump_func
)dump_alloc_console_request
,
3821 (dump_func
)dump_free_console_request
,
3822 (dump_func
)dump_get_console_renderer_events_request
,
3823 (dump_func
)dump_open_console_request
,
3824 (dump_func
)dump_get_console_wait_event_request
,
3825 (dump_func
)dump_get_console_mode_request
,
3826 (dump_func
)dump_set_console_mode_request
,
3827 (dump_func
)dump_set_console_input_info_request
,
3828 (dump_func
)dump_get_console_input_info_request
,
3829 (dump_func
)dump_append_console_input_history_request
,
3830 (dump_func
)dump_get_console_input_history_request
,
3831 (dump_func
)dump_create_console_output_request
,
3832 (dump_func
)dump_set_console_output_info_request
,
3833 (dump_func
)dump_get_console_output_info_request
,
3834 (dump_func
)dump_write_console_input_request
,
3835 (dump_func
)dump_read_console_input_request
,
3836 (dump_func
)dump_write_console_output_request
,
3837 (dump_func
)dump_fill_console_output_request
,
3838 (dump_func
)dump_read_console_output_request
,
3839 (dump_func
)dump_move_console_output_request
,
3840 (dump_func
)dump_send_console_signal_request
,
3841 (dump_func
)dump_read_directory_changes_request
,
3842 (dump_func
)dump_read_change_request
,
3843 (dump_func
)dump_create_mapping_request
,
3844 (dump_func
)dump_open_mapping_request
,
3845 (dump_func
)dump_get_mapping_info_request
,
3846 (dump_func
)dump_create_snapshot_request
,
3847 (dump_func
)dump_next_process_request
,
3848 (dump_func
)dump_next_thread_request
,
3849 (dump_func
)dump_next_module_request
,
3850 (dump_func
)dump_wait_debug_event_request
,
3851 (dump_func
)dump_queue_exception_event_request
,
3852 (dump_func
)dump_get_exception_status_request
,
3853 (dump_func
)dump_output_debug_string_request
,
3854 (dump_func
)dump_continue_debug_event_request
,
3855 (dump_func
)dump_debug_process_request
,
3856 (dump_func
)dump_debug_break_request
,
3857 (dump_func
)dump_set_debugger_kill_on_exit_request
,
3858 (dump_func
)dump_read_process_memory_request
,
3859 (dump_func
)dump_write_process_memory_request
,
3860 (dump_func
)dump_create_key_request
,
3861 (dump_func
)dump_open_key_request
,
3862 (dump_func
)dump_delete_key_request
,
3863 (dump_func
)dump_flush_key_request
,
3864 (dump_func
)dump_enum_key_request
,
3865 (dump_func
)dump_set_key_value_request
,
3866 (dump_func
)dump_get_key_value_request
,
3867 (dump_func
)dump_enum_key_value_request
,
3868 (dump_func
)dump_delete_key_value_request
,
3869 (dump_func
)dump_load_registry_request
,
3870 (dump_func
)dump_unload_registry_request
,
3871 (dump_func
)dump_save_registry_request
,
3872 (dump_func
)dump_set_registry_notification_request
,
3873 (dump_func
)dump_create_timer_request
,
3874 (dump_func
)dump_open_timer_request
,
3875 (dump_func
)dump_set_timer_request
,
3876 (dump_func
)dump_cancel_timer_request
,
3877 (dump_func
)dump_get_timer_info_request
,
3878 (dump_func
)dump_get_thread_context_request
,
3879 (dump_func
)dump_set_thread_context_request
,
3880 (dump_func
)dump_get_selector_entry_request
,
3881 (dump_func
)dump_add_atom_request
,
3882 (dump_func
)dump_delete_atom_request
,
3883 (dump_func
)dump_find_atom_request
,
3884 (dump_func
)dump_get_atom_information_request
,
3885 (dump_func
)dump_set_atom_information_request
,
3886 (dump_func
)dump_empty_atom_table_request
,
3887 (dump_func
)dump_init_atom_table_request
,
3888 (dump_func
)dump_get_msg_queue_request
,
3889 (dump_func
)dump_set_queue_fd_request
,
3890 (dump_func
)dump_set_queue_mask_request
,
3891 (dump_func
)dump_get_queue_status_request
,
3892 (dump_func
)dump_get_process_idle_event_request
,
3893 (dump_func
)dump_send_message_request
,
3894 (dump_func
)dump_post_quit_message_request
,
3895 (dump_func
)dump_send_hardware_message_request
,
3896 (dump_func
)dump_get_message_request
,
3897 (dump_func
)dump_reply_message_request
,
3898 (dump_func
)dump_accept_hardware_message_request
,
3899 (dump_func
)dump_get_message_reply_request
,
3900 (dump_func
)dump_set_win_timer_request
,
3901 (dump_func
)dump_kill_win_timer_request
,
3902 (dump_func
)dump_get_serial_info_request
,
3903 (dump_func
)dump_set_serial_info_request
,
3904 (dump_func
)dump_register_async_request
,
3905 (dump_func
)dump_cancel_async_request
,
3906 (dump_func
)dump_ioctl_request
,
3907 (dump_func
)dump_get_ioctl_result_request
,
3908 (dump_func
)dump_create_named_pipe_request
,
3909 (dump_func
)dump_get_named_pipe_info_request
,
3910 (dump_func
)dump_create_cursor_request
,
3911 (dump_func
)dump_destroy_cursor_request
,
3912 (dump_func
)dump_get_cursor_info_request
,
3913 (dump_func
)dump_get_cursor_frame_request
,
3914 (dump_func
)dump_set_cursor_frame_request
,
3915 (dump_func
)dump_create_window_request
,
3916 (dump_func
)dump_destroy_window_request
,
3917 (dump_func
)dump_get_desktop_window_request
,
3918 (dump_func
)dump_set_window_owner_request
,
3919 (dump_func
)dump_get_window_info_request
,
3920 (dump_func
)dump_set_window_info_request
,
3921 (dump_func
)dump_set_parent_request
,
3922 (dump_func
)dump_get_window_parents_request
,
3923 (dump_func
)dump_get_window_children_request
,
3924 (dump_func
)dump_get_window_children_from_point_request
,
3925 (dump_func
)dump_get_window_tree_request
,
3926 (dump_func
)dump_set_window_pos_request
,
3927 (dump_func
)dump_get_window_rectangles_request
,
3928 (dump_func
)dump_get_window_text_request
,
3929 (dump_func
)dump_set_window_text_request
,
3930 (dump_func
)dump_get_windows_offset_request
,
3931 (dump_func
)dump_get_visible_region_request
,
3932 (dump_func
)dump_get_window_region_request
,
3933 (dump_func
)dump_set_window_region_request
,
3934 (dump_func
)dump_get_update_region_request
,
3935 (dump_func
)dump_update_window_zorder_request
,
3936 (dump_func
)dump_redraw_window_request
,
3937 (dump_func
)dump_set_window_property_request
,
3938 (dump_func
)dump_remove_window_property_request
,
3939 (dump_func
)dump_get_window_property_request
,
3940 (dump_func
)dump_get_window_properties_request
,
3941 (dump_func
)dump_create_winstation_request
,
3942 (dump_func
)dump_open_winstation_request
,
3943 (dump_func
)dump_close_winstation_request
,
3944 (dump_func
)dump_get_process_winstation_request
,
3945 (dump_func
)dump_set_process_winstation_request
,
3946 (dump_func
)dump_create_desktop_request
,
3947 (dump_func
)dump_open_desktop_request
,
3948 (dump_func
)dump_close_desktop_request
,
3949 (dump_func
)dump_get_thread_desktop_request
,
3950 (dump_func
)dump_set_thread_desktop_request
,
3951 (dump_func
)dump_set_user_object_info_request
,
3952 (dump_func
)dump_attach_thread_input_request
,
3953 (dump_func
)dump_get_thread_input_request
,
3954 (dump_func
)dump_get_last_input_time_request
,
3955 (dump_func
)dump_get_key_state_request
,
3956 (dump_func
)dump_set_key_state_request
,
3957 (dump_func
)dump_set_foreground_window_request
,
3958 (dump_func
)dump_set_focus_window_request
,
3959 (dump_func
)dump_set_active_window_request
,
3960 (dump_func
)dump_set_capture_window_request
,
3961 (dump_func
)dump_set_caret_window_request
,
3962 (dump_func
)dump_set_caret_info_request
,
3963 (dump_func
)dump_set_hook_request
,
3964 (dump_func
)dump_remove_hook_request
,
3965 (dump_func
)dump_start_hook_chain_request
,
3966 (dump_func
)dump_finish_hook_chain_request
,
3967 (dump_func
)dump_get_hook_info_request
,
3968 (dump_func
)dump_create_class_request
,
3969 (dump_func
)dump_destroy_class_request
,
3970 (dump_func
)dump_set_class_info_request
,
3971 (dump_func
)dump_set_clipboard_info_request
,
3972 (dump_func
)dump_open_token_request
,
3973 (dump_func
)dump_set_global_windows_request
,
3974 (dump_func
)dump_adjust_token_privileges_request
,
3975 (dump_func
)dump_get_token_privileges_request
,
3976 (dump_func
)dump_check_token_privileges_request
,
3977 (dump_func
)dump_duplicate_token_request
,
3978 (dump_func
)dump_access_check_request
,
3979 (dump_func
)dump_get_token_user_request
,
3980 (dump_func
)dump_get_token_groups_request
,
3981 (dump_func
)dump_set_security_object_request
,
3982 (dump_func
)dump_get_security_object_request
,
3983 (dump_func
)dump_create_mailslot_request
,
3984 (dump_func
)dump_set_mailslot_info_request
,
3985 (dump_func
)dump_create_directory_request
,
3986 (dump_func
)dump_open_directory_request
,
3987 (dump_func
)dump_create_symlink_request
,
3988 (dump_func
)dump_open_symlink_request
,
3989 (dump_func
)dump_query_symlink_request
,
3990 (dump_func
)dump_get_object_info_request
,
3991 (dump_func
)dump_get_token_impersonation_level_request
,
3992 (dump_func
)dump_allocate_locally_unique_id_request
,
3993 (dump_func
)dump_create_device_manager_request
,
3994 (dump_func
)dump_create_device_request
,
3995 (dump_func
)dump_delete_device_request
,
3996 (dump_func
)dump_get_next_device_request_request
,
3997 (dump_func
)dump_make_process_system_request
,
3998 (dump_func
)dump_get_token_statistics_request
,
3999 (dump_func
)dump_create_completion_request
,
4000 (dump_func
)dump_open_completion_request
,
4001 (dump_func
)dump_add_completion_request
,
4002 (dump_func
)dump_remove_completion_request
,
4003 (dump_func
)dump_query_completion_request
,
4004 (dump_func
)dump_set_completion_info_request
,
4005 (dump_func
)dump_add_fd_completion_request
,
4008 static const dump_func reply_dumpers
[REQ_NB_REQUESTS
] = {
4009 (dump_func
)dump_new_process_reply
,
4010 (dump_func
)dump_get_new_process_info_reply
,
4011 (dump_func
)dump_new_thread_reply
,
4012 (dump_func
)dump_get_startup_info_reply
,
4014 (dump_func
)dump_init_thread_reply
,
4015 (dump_func
)dump_terminate_process_reply
,
4016 (dump_func
)dump_terminate_thread_reply
,
4017 (dump_func
)dump_get_process_info_reply
,
4019 (dump_func
)dump_get_thread_info_reply
,
4021 (dump_func
)dump_get_dll_info_reply
,
4022 (dump_func
)dump_suspend_thread_reply
,
4023 (dump_func
)dump_resume_thread_reply
,
4026 (dump_func
)dump_queue_apc_reply
,
4027 (dump_func
)dump_get_apc_result_reply
,
4029 (dump_func
)dump_set_handle_info_reply
,
4030 (dump_func
)dump_dup_handle_reply
,
4031 (dump_func
)dump_open_process_reply
,
4032 (dump_func
)dump_open_thread_reply
,
4033 (dump_func
)dump_select_reply
,
4034 (dump_func
)dump_create_event_reply
,
4036 (dump_func
)dump_open_event_reply
,
4037 (dump_func
)dump_create_mutex_reply
,
4038 (dump_func
)dump_release_mutex_reply
,
4039 (dump_func
)dump_open_mutex_reply
,
4040 (dump_func
)dump_create_semaphore_reply
,
4041 (dump_func
)dump_release_semaphore_reply
,
4042 (dump_func
)dump_open_semaphore_reply
,
4043 (dump_func
)dump_create_file_reply
,
4044 (dump_func
)dump_open_file_object_reply
,
4045 (dump_func
)dump_alloc_file_handle_reply
,
4046 (dump_func
)dump_get_handle_fd_reply
,
4047 (dump_func
)dump_flush_file_reply
,
4048 (dump_func
)dump_lock_file_reply
,
4050 (dump_func
)dump_create_socket_reply
,
4051 (dump_func
)dump_accept_socket_reply
,
4053 (dump_func
)dump_get_socket_event_reply
,
4056 (dump_func
)dump_alloc_console_reply
,
4058 (dump_func
)dump_get_console_renderer_events_reply
,
4059 (dump_func
)dump_open_console_reply
,
4060 (dump_func
)dump_get_console_wait_event_reply
,
4061 (dump_func
)dump_get_console_mode_reply
,
4064 (dump_func
)dump_get_console_input_info_reply
,
4066 (dump_func
)dump_get_console_input_history_reply
,
4067 (dump_func
)dump_create_console_output_reply
,
4069 (dump_func
)dump_get_console_output_info_reply
,
4070 (dump_func
)dump_write_console_input_reply
,
4071 (dump_func
)dump_read_console_input_reply
,
4072 (dump_func
)dump_write_console_output_reply
,
4073 (dump_func
)dump_fill_console_output_reply
,
4074 (dump_func
)dump_read_console_output_reply
,
4078 (dump_func
)dump_read_change_reply
,
4079 (dump_func
)dump_create_mapping_reply
,
4080 (dump_func
)dump_open_mapping_reply
,
4081 (dump_func
)dump_get_mapping_info_reply
,
4082 (dump_func
)dump_create_snapshot_reply
,
4083 (dump_func
)dump_next_process_reply
,
4084 (dump_func
)dump_next_thread_reply
,
4085 (dump_func
)dump_next_module_reply
,
4086 (dump_func
)dump_wait_debug_event_reply
,
4087 (dump_func
)dump_queue_exception_event_reply
,
4088 (dump_func
)dump_get_exception_status_reply
,
4092 (dump_func
)dump_debug_break_reply
,
4094 (dump_func
)dump_read_process_memory_reply
,
4096 (dump_func
)dump_create_key_reply
,
4097 (dump_func
)dump_open_key_reply
,
4100 (dump_func
)dump_enum_key_reply
,
4102 (dump_func
)dump_get_key_value_reply
,
4103 (dump_func
)dump_enum_key_value_reply
,
4109 (dump_func
)dump_create_timer_reply
,
4110 (dump_func
)dump_open_timer_reply
,
4111 (dump_func
)dump_set_timer_reply
,
4112 (dump_func
)dump_cancel_timer_reply
,
4113 (dump_func
)dump_get_timer_info_reply
,
4114 (dump_func
)dump_get_thread_context_reply
,
4115 (dump_func
)dump_set_thread_context_reply
,
4116 (dump_func
)dump_get_selector_entry_reply
,
4117 (dump_func
)dump_add_atom_reply
,
4119 (dump_func
)dump_find_atom_reply
,
4120 (dump_func
)dump_get_atom_information_reply
,
4123 (dump_func
)dump_init_atom_table_reply
,
4124 (dump_func
)dump_get_msg_queue_reply
,
4126 (dump_func
)dump_set_queue_mask_reply
,
4127 (dump_func
)dump_get_queue_status_reply
,
4128 (dump_func
)dump_get_process_idle_event_reply
,
4132 (dump_func
)dump_get_message_reply
,
4135 (dump_func
)dump_get_message_reply_reply
,
4136 (dump_func
)dump_set_win_timer_reply
,
4138 (dump_func
)dump_get_serial_info_reply
,
4142 (dump_func
)dump_ioctl_reply
,
4143 (dump_func
)dump_get_ioctl_result_reply
,
4144 (dump_func
)dump_create_named_pipe_reply
,
4145 (dump_func
)dump_get_named_pipe_info_reply
,
4146 (dump_func
)dump_create_cursor_reply
,
4148 (dump_func
)dump_get_cursor_info_reply
,
4149 (dump_func
)dump_get_cursor_frame_reply
,
4151 (dump_func
)dump_create_window_reply
,
4153 (dump_func
)dump_get_desktop_window_reply
,
4154 (dump_func
)dump_set_window_owner_reply
,
4155 (dump_func
)dump_get_window_info_reply
,
4156 (dump_func
)dump_set_window_info_reply
,
4157 (dump_func
)dump_set_parent_reply
,
4158 (dump_func
)dump_get_window_parents_reply
,
4159 (dump_func
)dump_get_window_children_reply
,
4160 (dump_func
)dump_get_window_children_from_point_reply
,
4161 (dump_func
)dump_get_window_tree_reply
,
4162 (dump_func
)dump_set_window_pos_reply
,
4163 (dump_func
)dump_get_window_rectangles_reply
,
4164 (dump_func
)dump_get_window_text_reply
,
4166 (dump_func
)dump_get_windows_offset_reply
,
4167 (dump_func
)dump_get_visible_region_reply
,
4168 (dump_func
)dump_get_window_region_reply
,
4170 (dump_func
)dump_get_update_region_reply
,
4174 (dump_func
)dump_remove_window_property_reply
,
4175 (dump_func
)dump_get_window_property_reply
,
4176 (dump_func
)dump_get_window_properties_reply
,
4177 (dump_func
)dump_create_winstation_reply
,
4178 (dump_func
)dump_open_winstation_reply
,
4180 (dump_func
)dump_get_process_winstation_reply
,
4182 (dump_func
)dump_create_desktop_reply
,
4183 (dump_func
)dump_open_desktop_reply
,
4185 (dump_func
)dump_get_thread_desktop_reply
,
4187 (dump_func
)dump_set_user_object_info_reply
,
4189 (dump_func
)dump_get_thread_input_reply
,
4190 (dump_func
)dump_get_last_input_time_reply
,
4191 (dump_func
)dump_get_key_state_reply
,
4193 (dump_func
)dump_set_foreground_window_reply
,
4194 (dump_func
)dump_set_focus_window_reply
,
4195 (dump_func
)dump_set_active_window_reply
,
4196 (dump_func
)dump_set_capture_window_reply
,
4197 (dump_func
)dump_set_caret_window_reply
,
4198 (dump_func
)dump_set_caret_info_reply
,
4199 (dump_func
)dump_set_hook_reply
,
4200 (dump_func
)dump_remove_hook_reply
,
4201 (dump_func
)dump_start_hook_chain_reply
,
4203 (dump_func
)dump_get_hook_info_reply
,
4204 (dump_func
)dump_create_class_reply
,
4205 (dump_func
)dump_destroy_class_reply
,
4206 (dump_func
)dump_set_class_info_reply
,
4207 (dump_func
)dump_set_clipboard_info_reply
,
4208 (dump_func
)dump_open_token_reply
,
4209 (dump_func
)dump_set_global_windows_reply
,
4210 (dump_func
)dump_adjust_token_privileges_reply
,
4211 (dump_func
)dump_get_token_privileges_reply
,
4212 (dump_func
)dump_check_token_privileges_reply
,
4213 (dump_func
)dump_duplicate_token_reply
,
4214 (dump_func
)dump_access_check_reply
,
4215 (dump_func
)dump_get_token_user_reply
,
4216 (dump_func
)dump_get_token_groups_reply
,
4218 (dump_func
)dump_get_security_object_reply
,
4219 (dump_func
)dump_create_mailslot_reply
,
4220 (dump_func
)dump_set_mailslot_info_reply
,
4221 (dump_func
)dump_create_directory_reply
,
4222 (dump_func
)dump_open_directory_reply
,
4223 (dump_func
)dump_create_symlink_reply
,
4224 (dump_func
)dump_open_symlink_reply
,
4225 (dump_func
)dump_query_symlink_reply
,
4226 (dump_func
)dump_get_object_info_reply
,
4227 (dump_func
)dump_get_token_impersonation_level_reply
,
4228 (dump_func
)dump_allocate_locally_unique_id_reply
,
4229 (dump_func
)dump_create_device_manager_reply
,
4230 (dump_func
)dump_create_device_reply
,
4232 (dump_func
)dump_get_next_device_request_reply
,
4233 (dump_func
)dump_make_process_system_reply
,
4234 (dump_func
)dump_get_token_statistics_reply
,
4235 (dump_func
)dump_create_completion_reply
,
4236 (dump_func
)dump_open_completion_reply
,
4238 (dump_func
)dump_remove_completion_reply
,
4239 (dump_func
)dump_query_completion_reply
,
4244 static const char * const req_names
[REQ_NB_REQUESTS
] = {
4246 "get_new_process_info",
4249 "init_process_done",
4251 "terminate_process",
4277 "release_semaphore",
4281 "alloc_file_handle",
4290 "enable_socket_event",
4291 "set_socket_deferred",
4294 "get_console_renderer_events",
4296 "get_console_wait_event",
4299 "set_console_input_info",
4300 "get_console_input_info",
4301 "append_console_input_history",
4302 "get_console_input_history",
4303 "create_console_output",
4304 "set_console_output_info",
4305 "get_console_output_info",
4306 "write_console_input",
4307 "read_console_input",
4308 "write_console_output",
4309 "fill_console_output",
4310 "read_console_output",
4311 "move_console_output",
4312 "send_console_signal",
4313 "read_directory_changes",
4323 "queue_exception_event",
4324 "get_exception_status",
4325 "output_debug_string",
4326 "continue_debug_event",
4329 "set_debugger_kill_on_exit",
4330 "read_process_memory",
4331 "write_process_memory",
4344 "set_registry_notification",
4350 "get_thread_context",
4351 "set_thread_context",
4352 "get_selector_entry",
4356 "get_atom_information",
4357 "set_atom_information",
4364 "get_process_idle_event",
4366 "post_quit_message",
4367 "send_hardware_message",
4370 "accept_hardware_message",
4371 "get_message_reply",
4380 "create_named_pipe",
4381 "get_named_pipe_info",
4389 "get_desktop_window",
4394 "get_window_parents",
4395 "get_window_children",
4396 "get_window_children_from_point",
4399 "get_window_rectangles",
4402 "get_windows_offset",
4403 "get_visible_region",
4404 "get_window_region",
4405 "set_window_region",
4406 "get_update_region",
4407 "update_window_zorder",
4409 "set_window_property",
4410 "remove_window_property",
4411 "get_window_property",
4412 "get_window_properties",
4413 "create_winstation",
4416 "get_process_winstation",
4417 "set_process_winstation",
4421 "get_thread_desktop",
4422 "set_thread_desktop",
4423 "set_user_object_info",
4424 "attach_thread_input",
4426 "get_last_input_time",
4429 "set_foreground_window",
4431 "set_active_window",
4432 "set_capture_window",
4438 "finish_hook_chain",
4443 "set_clipboard_info",
4445 "set_global_windows",
4446 "adjust_token_privileges",
4447 "get_token_privileges",
4448 "check_token_privileges",
4453 "set_security_object",
4454 "get_security_object",
4456 "set_mailslot_info",
4463 "get_token_impersonation_level",
4464 "allocate_locally_unique_id",
4465 "create_device_manager",
4468 "get_next_device_request",
4469 "make_process_system",
4470 "get_token_statistics",
4471 "create_completion",
4474 "remove_completion",
4476 "set_completion_info",
4477 "add_fd_completion",
4486 { "ABANDONED_WAIT_0", STATUS_ABANDONED_WAIT_0
},
4487 { "ACCESS_DENIED", STATUS_ACCESS_DENIED
},
4488 { "ACCESS_VIOLATION", STATUS_ACCESS_VIOLATION
},
4489 { "ALERTED", STATUS_ALERTED
},
4490 { "ALIAS_EXISTS", STATUS_ALIAS_EXISTS
},
4491 { "BAD_DEVICE_TYPE", STATUS_BAD_DEVICE_TYPE
},
4492 { "BAD_IMPERSONATION_LEVEL", STATUS_BAD_IMPERSONATION_LEVEL
},
4493 { "BREAKPOINT", STATUS_BREAKPOINT
},
4494 { "BUFFER_OVERFLOW", STATUS_BUFFER_OVERFLOW
},
4495 { "BUFFER_TOO_SMALL", STATUS_BUFFER_TOO_SMALL
},
4496 { "CANCELLED", STATUS_CANCELLED
},
4497 { "CANT_OPEN_ANONYMOUS", STATUS_CANT_OPEN_ANONYMOUS
},
4498 { "CHILD_MUST_BE_VOLATILE", STATUS_CHILD_MUST_BE_VOLATILE
},
4499 { "DEBUGGER_INACTIVE", STATUS_DEBUGGER_INACTIVE
},
4500 { "DEVICE_BUSY", STATUS_DEVICE_BUSY
},
4501 { "DIRECTORY_NOT_EMPTY", STATUS_DIRECTORY_NOT_EMPTY
},
4502 { "DISK_FULL", STATUS_DISK_FULL
},
4503 { "DLL_NOT_FOUND", STATUS_DLL_NOT_FOUND
},
4504 { "ERROR_CLASS_ALREADY_EXISTS", 0xc0010000 | ERROR_CLASS_ALREADY_EXISTS
},
4505 { "ERROR_CLASS_DOES_NOT_EXIST", 0xc0010000 | ERROR_CLASS_DOES_NOT_EXIST
},
4506 { "ERROR_CLASS_HAS_WINDOWS", 0xc0010000 | ERROR_CLASS_HAS_WINDOWS
},
4507 { "ERROR_CLIPBOARD_NOT_OPEN", 0xc0010000 | ERROR_CLIPBOARD_NOT_OPEN
},
4508 { "ERROR_INVALID_INDEX", 0xc0010000 | ERROR_INVALID_INDEX
},
4509 { "ERROR_INVALID_WINDOW_HANDLE", 0xc0010000 | ERROR_INVALID_WINDOW_HANDLE
},
4510 { "FILE_DELETED", STATUS_FILE_DELETED
},
4511 { "FILE_IS_A_DIRECTORY", STATUS_FILE_IS_A_DIRECTORY
},
4512 { "FILE_LOCK_CONFLICT", STATUS_FILE_LOCK_CONFLICT
},
4513 { "GENERIC_NOT_MAPPED", STATUS_GENERIC_NOT_MAPPED
},
4514 { "HANDLES_CLOSED", STATUS_HANDLES_CLOSED
},
4515 { "HANDLE_NOT_CLOSABLE", STATUS_HANDLE_NOT_CLOSABLE
},
4516 { "ILLEGAL_FUNCTION", STATUS_ILLEGAL_FUNCTION
},
4517 { "INSTANCE_NOT_AVAILABLE", STATUS_INSTANCE_NOT_AVAILABLE
},
4518 { "INVALID_CID", STATUS_INVALID_CID
},
4519 { "INVALID_DEVICE_REQUEST", STATUS_INVALID_DEVICE_REQUEST
},
4520 { "INVALID_FILE_FOR_SECTION", STATUS_INVALID_FILE_FOR_SECTION
},
4521 { "INVALID_HANDLE", STATUS_INVALID_HANDLE
},
4522 { "INVALID_PARAMETER", STATUS_INVALID_PARAMETER
},
4523 { "INVALID_SECURITY_DESCR", STATUS_INVALID_SECURITY_DESCR
},
4524 { "IO_TIMEOUT", STATUS_IO_TIMEOUT
},
4525 { "KEY_DELETED", STATUS_KEY_DELETED
},
4526 { "MAPPED_FILE_SIZE_ZERO", STATUS_MAPPED_FILE_SIZE_ZERO
},
4527 { "MEDIA_WRITE_PROTECTED", STATUS_MEDIA_WRITE_PROTECTED
},
4528 { "MUTANT_NOT_OWNED", STATUS_MUTANT_NOT_OWNED
},
4529 { "NAME_TOO_LONG", STATUS_NAME_TOO_LONG
},
4530 { "NOTIFY_ENUM_DIR", STATUS_NOTIFY_ENUM_DIR
},
4531 { "NOT_ALL_ASSIGNED", STATUS_NOT_ALL_ASSIGNED
},
4532 { "NOT_A_DIRECTORY", STATUS_NOT_A_DIRECTORY
},
4533 { "NOT_IMPLEMENTED", STATUS_NOT_IMPLEMENTED
},
4534 { "NOT_REGISTRY_FILE", STATUS_NOT_REGISTRY_FILE
},
4535 { "NOT_SUPPORTED", STATUS_NOT_SUPPORTED
},
4536 { "NO_DATA_DETECTED", STATUS_NO_DATA_DETECTED
},
4537 { "NO_IMPERSONATION_TOKEN", STATUS_NO_IMPERSONATION_TOKEN
},
4538 { "NO_MEMORY", STATUS_NO_MEMORY
},
4539 { "NO_MORE_ENTRIES", STATUS_NO_MORE_ENTRIES
},
4540 { "NO_MORE_FILES", STATUS_NO_MORE_FILES
},
4541 { "NO_SUCH_DEVICE", STATUS_NO_SUCH_DEVICE
},
4542 { "NO_SUCH_FILE", STATUS_NO_SUCH_FILE
},
4543 { "NO_TOKEN", STATUS_NO_TOKEN
},
4544 { "OBJECT_NAME_COLLISION", STATUS_OBJECT_NAME_COLLISION
},
4545 { "OBJECT_NAME_EXISTS", STATUS_OBJECT_NAME_EXISTS
},
4546 { "OBJECT_NAME_INVALID", STATUS_OBJECT_NAME_INVALID
},
4547 { "OBJECT_NAME_NOT_FOUND", STATUS_OBJECT_NAME_NOT_FOUND
},
4548 { "OBJECT_PATH_INVALID", STATUS_OBJECT_PATH_INVALID
},
4549 { "OBJECT_PATH_NOT_FOUND", STATUS_OBJECT_PATH_NOT_FOUND
},
4550 { "OBJECT_PATH_SYNTAX_BAD", STATUS_OBJECT_PATH_SYNTAX_BAD
},
4551 { "OBJECT_TYPE_MISMATCH", STATUS_OBJECT_TYPE_MISMATCH
},
4552 { "PENDING", STATUS_PENDING
},
4553 { "PIPE_BUSY", STATUS_PIPE_BUSY
},
4554 { "PIPE_CONNECTED", STATUS_PIPE_CONNECTED
},
4555 { "PIPE_DISCONNECTED", STATUS_PIPE_DISCONNECTED
},
4556 { "PIPE_LISTENING", STATUS_PIPE_LISTENING
},
4557 { "PIPE_NOT_AVAILABLE", STATUS_PIPE_NOT_AVAILABLE
},
4558 { "PRIVILEGE_NOT_HELD", STATUS_PRIVILEGE_NOT_HELD
},
4559 { "PROCESS_IS_TERMINATING", STATUS_PROCESS_IS_TERMINATING
},
4560 { "SECTION_TOO_BIG", STATUS_SECTION_TOO_BIG
},
4561 { "SEMAPHORE_LIMIT_EXCEEDED", STATUS_SEMAPHORE_LIMIT_EXCEEDED
},
4562 { "SHARING_VIOLATION", STATUS_SHARING_VIOLATION
},
4563 { "SUSPEND_COUNT_EXCEEDED", STATUS_SUSPEND_COUNT_EXCEEDED
},
4564 { "THREAD_IS_TERMINATING", STATUS_THREAD_IS_TERMINATING
},
4565 { "TIMEOUT", STATUS_TIMEOUT
},
4566 { "TOO_MANY_OPENED_FILES", STATUS_TOO_MANY_OPENED_FILES
},
4567 { "UNSUCCESSFUL", STATUS_UNSUCCESSFUL
},
4568 { "USER_APC", STATUS_USER_APC
},
4569 { "VOLUME_DISMOUNTED", STATUS_VOLUME_DISMOUNTED
},
4570 { "WAS_LOCKED", STATUS_WAS_LOCKED
},
4574 /* ### make_requests end ### */
4575 /* Everything above this line is generated automatically by tools/make_requests */
4577 static const char *get_status_name( unsigned int status
)
4580 static char buffer
[10];
4584 for (i
= 0; status_names
[i
].name
; i
++)
4585 if (status_names
[i
].value
== status
) return status_names
[i
].name
;
4587 sprintf( buffer
, "%x", status
);
4591 void trace_request(void)
4593 enum request req
= current
->req
.request_header
.req
;
4594 if (req
< REQ_NB_REQUESTS
)
4596 fprintf( stderr
, "%04x: %s(", current
->id
, req_names
[req
] );
4597 if (req_dumpers
[req
])
4599 cur_data
= get_req_data();
4600 cur_size
= get_req_data_size();
4601 req_dumpers
[req
]( ¤t
->req
);
4603 fprintf( stderr
, " )\n" );
4605 else fprintf( stderr
, "%04x: %d(?)\n", current
->id
, req
);
4608 void trace_reply( enum request req
, const union generic_reply
*reply
)
4610 if (req
< REQ_NB_REQUESTS
)
4612 fprintf( stderr
, "%04x: %s() = %s",
4613 current
->id
, req_names
[req
], get_status_name(current
->error
) );
4614 if (reply_dumpers
[req
])
4616 fprintf( stderr
, " {" );
4617 cur_data
= current
->reply_data
;
4618 cur_size
= reply
->reply_header
.reply_size
;
4619 reply_dumpers
[req
]( reply
);
4620 fprintf( stderr
, " }" );
4622 fputc( '\n', stderr
);
4624 else fprintf( stderr
, "%04x: %d() = %s\n",
4625 current
->id
, req
, get_status_name(current
->error
) );