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_rectangle( const rectangle_t
*rect
)
75 fprintf( stderr
, "{%d,%d;%d,%d}",
76 rect
->left
, rect
->top
, rect
->right
, rect
->bottom
);
79 static void dump_char_info( const char_info_t
*info
)
81 fprintf( stderr
, "{'" );
82 dump_strW( &info
->ch
, 1, stderr
, "\'\'" );
83 fprintf( stderr
, "',%04x}", info
->attr
);
86 static void dump_ioctl_code( const ioctl_code_t
*code
)
90 #define CASE(c) case c: fputs( #c, stderr ); break
91 CASE(FSCTL_DISMOUNT_VOLUME
);
92 CASE(FSCTL_PIPE_DISCONNECT
);
93 CASE(FSCTL_PIPE_LISTEN
);
94 CASE(FSCTL_PIPE_WAIT
);
95 default: fprintf( stderr
, "%08x", *code
); break;
100 static void dump_apc_call( const apc_call_t
*call
)
102 fputc( '{', stderr
);
106 fprintf( stderr
, "APC_NONE" );
109 fprintf( stderr
, "APC_USER,args={%lx,%lx,%lx}",
110 call
->user
.args
[0], call
->user
.args
[1], call
->user
.args
[2] );
113 fprintf( stderr
, "APC_TIMER,time=" );
114 dump_timeout( &call
->timer
.time
);
115 fprintf( stderr
, ",arg=%p", call
->timer
.arg
);
118 fprintf( stderr
, "APC_ASYNC_IO,func=%p,user=%p,sb=%p,status=%s",
119 call
->async_io
.func
, call
->async_io
.user
, call
->async_io
.sb
,
120 get_status_name(call
->async_io
.status
) );
122 case APC_VIRTUAL_ALLOC
:
123 fprintf( stderr
, "APC_VIRTUAL_ALLOC,addr=%p,size=%lu,zero_bits=%u,op_type=%x,prot=%x",
124 call
->virtual_alloc
.addr
, call
->virtual_alloc
.size
,
125 call
->virtual_alloc
.zero_bits
, call
->virtual_alloc
.op_type
,
126 call
->virtual_alloc
.prot
);
128 case APC_VIRTUAL_FREE
:
129 fprintf( stderr
, "APC_VIRTUAL_FREE,addr=%p,size=%lu,op_type=%x",
130 call
->virtual_free
.addr
, call
->virtual_free
.size
,
131 call
->virtual_free
.op_type
);
133 case APC_VIRTUAL_QUERY
:
134 fprintf( stderr
, "APC_VIRTUAL_QUERY,addr=%p", call
->virtual_query
.addr
);
136 case APC_VIRTUAL_PROTECT
:
137 fprintf( stderr
, "APC_VIRTUAL_PROTECT,addr=%p,size=%lu,prot=%x",
138 call
->virtual_protect
.addr
, call
->virtual_protect
.size
,
139 call
->virtual_protect
.prot
);
141 case APC_VIRTUAL_FLUSH
:
142 fprintf( stderr
, "APC_VIRTUAL_FLUSH,addr=%p,size=%lu",
143 call
->virtual_flush
.addr
, call
->virtual_flush
.size
);
145 case APC_VIRTUAL_LOCK
:
146 fprintf( stderr
, "APC_VIRTUAL_LOCK,addr=%p,size=%lu",
147 call
->virtual_lock
.addr
, call
->virtual_lock
.size
);
149 case APC_VIRTUAL_UNLOCK
:
150 fprintf( stderr
, "APC_VIRTUAL_UNLOCK,addr=%p,size=%lu",
151 call
->virtual_unlock
.addr
, call
->virtual_unlock
.size
);
154 fprintf( stderr
, "APC_MAP_VIEW,handle=%p,addr=%p,size=%lu,offset=%x%08x,zero_bits=%u,alloc_type=%x,prot=%x",
155 call
->map_view
.handle
, call
->map_view
.addr
, call
->map_view
.size
,
156 call
->map_view
.offset_high
, call
->map_view
.offset_low
, call
->map_view
.zero_bits
,
157 call
->map_view
.alloc_type
, call
->map_view
.prot
);
160 fprintf( stderr
, "APC_UNMAP_VIEW,addr=%p", call
->unmap_view
.addr
);
162 case APC_CREATE_THREAD
:
163 fprintf( stderr
, "APC_CREATE_THREAD,func=%p,arg=%p,reserve=%lx,commit=%lx,suspend=%u",
164 call
->create_thread
.func
, call
->create_thread
.arg
,
165 call
->create_thread
.reserve
, call
->create_thread
.commit
,
166 call
->create_thread
.suspend
);
169 fprintf( stderr
, "type=%u", call
->type
);
172 fputc( '}', stderr
);
175 static void dump_apc_result( const apc_result_t
*result
)
177 fputc( '{', stderr
);
183 fprintf( stderr
, "APC_ASYNC_IO,status=%s",
184 get_status_name( result
->async_io
.status
) );
186 case APC_VIRTUAL_ALLOC
:
187 fprintf( stderr
, "APC_VIRTUAL_ALLOC,status=%s,addr=%p,size=%lu",
188 get_status_name( result
->virtual_alloc
.status
),
189 result
->virtual_alloc
.addr
, result
->virtual_alloc
.size
);
191 case APC_VIRTUAL_FREE
:
192 fprintf( stderr
, "APC_VIRTUAL_FREE,status=%s,addr=%p,size=%lu",
193 get_status_name( result
->virtual_free
.status
),
194 result
->virtual_free
.addr
, result
->virtual_free
.size
);
196 case APC_VIRTUAL_QUERY
:
197 fprintf( stderr
, "APC_VIRTUAL_QUERY,status=%s,base=%p,alloc_base=%p,size=%lu,state=%x,prot=%x,alloc_prot=%x,alloc_type=%x",
198 get_status_name( result
->virtual_query
.status
),
199 result
->virtual_query
.base
, result
->virtual_query
.alloc_base
,
200 result
->virtual_query
.size
, result
->virtual_query
.state
,
201 result
->virtual_query
.prot
, result
->virtual_query
.alloc_prot
,
202 result
->virtual_query
.alloc_type
);
204 case APC_VIRTUAL_PROTECT
:
205 fprintf( stderr
, "APC_VIRTUAL_PROTECT,status=%s,addr=%p,size=%lu,prot=%x",
206 get_status_name( result
->virtual_protect
.status
),
207 result
->virtual_protect
.addr
, result
->virtual_protect
.size
,
208 result
->virtual_protect
.prot
);
210 case APC_VIRTUAL_FLUSH
:
211 fprintf( stderr
, "APC_VIRTUAL_FLUSH,status=%s,addr=%p,size=%lu",
212 get_status_name( result
->virtual_flush
.status
),
213 result
->virtual_flush
.addr
, result
->virtual_flush
.size
);
215 case APC_VIRTUAL_LOCK
:
216 fprintf( stderr
, "APC_VIRTUAL_LOCK,status=%s,addr=%p,size=%lu",
217 get_status_name( result
->virtual_lock
.status
),
218 result
->virtual_lock
.addr
, result
->virtual_lock
.size
);
220 case APC_VIRTUAL_UNLOCK
:
221 fprintf( stderr
, "APC_VIRTUAL_UNLOCK,status=%s,addr=%p,size=%lu",
222 get_status_name( result
->virtual_unlock
.status
),
223 result
->virtual_unlock
.addr
, result
->virtual_unlock
.size
);
226 fprintf( stderr
, "APC_MAP_VIEW,status=%s,addr=%p,size=%lu",
227 get_status_name( result
->map_view
.status
),
228 result
->map_view
.addr
, result
->map_view
.size
);
231 fprintf( stderr
, "APC_UNMAP_VIEW,status=%s",
232 get_status_name( result
->unmap_view
.status
) );
234 case APC_CREATE_THREAD
:
235 fprintf( stderr
, "APC_CREATE_THREAD,status=%s,tid=%04x,handle=%p",
236 get_status_name( result
->create_thread
.status
),
237 result
->create_thread
.tid
, result
->create_thread
.handle
);
240 fprintf( stderr
, "type=%u", result
->type
);
243 fputc( '}', stderr
);
246 static void dump_async_data( const async_data_t
*data
)
248 fprintf( stderr
, "{callback=%p,iosb=%p,arg=%p,apc=%p,event=%p}",
249 data
->callback
, data
->iosb
, data
->arg
, data
->apc
, data
->event
);
252 static void dump_luid( const luid_t
*luid
)
254 fprintf( stderr
, "%d.%u", luid
->high_part
, luid
->low_part
);
257 static void dump_context( const CONTEXT
*context
)
260 fprintf( stderr
, "{flags=%08x,eax=%08x,ebx=%08x,ecx=%08x,edx=%08x,esi=%08x,edi=%08x,"
261 "ebp=%08x,eip=%08x,esp=%08x,eflags=%08x,cs=%04x,ds=%04x,es=%04x,"
262 "fs=%04x,gs=%04x,dr0=%08x,dr1=%08x,dr2=%08x,dr3=%08x,dr6=%08x,dr7=%08x,",
263 context
->ContextFlags
, context
->Eax
, context
->Ebx
, context
->Ecx
, context
->Edx
,
264 context
->Esi
, context
->Edi
, context
->Ebp
, context
->Eip
, context
->Esp
, context
->EFlags
,
265 context
->SegCs
, context
->SegDs
, context
->SegEs
, context
->SegFs
, context
->SegGs
,
266 context
->Dr0
, context
->Dr1
, context
->Dr2
, context
->Dr3
, context
->Dr6
, context
->Dr7
);
267 fprintf( stderr
, "float=" );
268 dump_uints( (const int *)&context
->FloatSave
, sizeof(context
->FloatSave
) / sizeof(int) );
269 fprintf( stderr
, "}" );
271 dump_uints( (const int *)context
, sizeof(*context
) / sizeof(int) );
275 static void dump_exc_record( const EXCEPTION_RECORD
*rec
)
278 fprintf( stderr
, "{code=%x,flags=%x,rec=%p,addr=%p,params={",
279 rec
->ExceptionCode
, rec
->ExceptionFlags
, rec
->ExceptionRecord
,
280 rec
->ExceptionAddress
);
281 for (i
= 0; i
< min(rec
->NumberParameters
,EXCEPTION_MAXIMUM_PARAMETERS
); i
++)
283 if (i
) fputc( ',', stderr
);
284 fprintf( stderr
, "%lx", rec
->ExceptionInformation
[i
] );
286 fputc( '}', stderr
);
289 static void dump_varargs_ints( data_size_t size
)
291 const int *data
= cur_data
;
292 data_size_t len
= size
/ sizeof(*data
);
294 fputc( '{', stderr
);
297 fprintf( stderr
, "%d", *data
++ );
298 if (--len
) fputc( ',', stderr
);
300 fputc( '}', stderr
);
304 static void dump_varargs_apc_result( data_size_t size
)
306 const apc_result_t
*result
= cur_data
;
308 if (size
>= sizeof(*result
))
310 dump_apc_result( result
);
311 size
= sizeof(*result
);
316 static void dump_varargs_handles( data_size_t size
)
318 const obj_handle_t
*data
= cur_data
;
319 data_size_t len
= size
/ sizeof(*data
);
321 fputc( '{', stderr
);
324 fprintf( stderr
, "%p", *data
++ );
325 if (--len
) fputc( ',', stderr
);
327 fputc( '}', stderr
);
331 static void dump_varargs_user_handles( data_size_t size
)
333 const user_handle_t
*data
= cur_data
;
334 data_size_t len
= size
/ sizeof(*data
);
336 fputc( '{', stderr
);
339 fprintf( stderr
, "%p", *data
++ );
340 if (--len
) fputc( ',', stderr
);
342 fputc( '}', stderr
);
346 static void dump_varargs_bytes( data_size_t size
)
348 const unsigned char *data
= cur_data
;
349 data_size_t len
= size
;
351 fputc( '{', stderr
);
354 fprintf( stderr
, "%02x", *data
++ );
355 if (--len
) fputc( ',', stderr
);
357 fputc( '}', stderr
);
361 static void dump_varargs_string( data_size_t size
)
363 fprintf( stderr
, "\"%.*s\"", (int)size
, (const char *)cur_data
);
367 static void dump_varargs_unicode_str( data_size_t size
)
369 fprintf( stderr
, "L\"" );
370 dump_strW( cur_data
, size
/ sizeof(WCHAR
), stderr
, "\"\"" );
371 fputc( '\"', stderr
);
375 static void dump_varargs_context( data_size_t size
)
379 fprintf( stderr
, "{}" );
382 dump_context( cur_data
);
386 static void dump_varargs_exc_event( data_size_t size
)
388 const CONTEXT
*ptr
= cur_data
;
392 fprintf( stderr
, "{}" );
395 fprintf( stderr
, "{context=" );
397 fprintf( stderr
, ",rec=" );
398 dump_exc_record( (const EXCEPTION_RECORD
*)(ptr
+ 1) );
399 fputc( '}', stderr
);
403 static void dump_varargs_debug_event( data_size_t size
)
405 const debug_event_t
*event
= cur_data
;
409 fprintf( stderr
, "{}" );
414 case EXCEPTION_DEBUG_EVENT
:
415 fprintf( stderr
, "{exception," );
416 dump_exc_record( &event
->info
.exception
.record
);
417 fprintf( stderr
, ",first=%d}", event
->info
.exception
.first
);
419 case CREATE_THREAD_DEBUG_EVENT
:
420 fprintf( stderr
, "{create_thread,thread=%p,teb=%p,start=%p}",
421 event
->info
.create_thread
.handle
, event
->info
.create_thread
.teb
,
422 event
->info
.create_thread
.start
);
424 case CREATE_PROCESS_DEBUG_EVENT
:
425 fprintf( stderr
, "{create_process,file=%p,process=%p,thread=%p,base=%p,offset=%d,"
426 "size=%d,teb=%p,start=%p,name=%p,unicode=%d}",
427 event
->info
.create_process
.file
, event
->info
.create_process
.process
,
428 event
->info
.create_process
.thread
, event
->info
.create_process
.base
,
429 event
->info
.create_process
.dbg_offset
, event
->info
.create_process
.dbg_size
,
430 event
->info
.create_process
.teb
, event
->info
.create_process
.start
,
431 event
->info
.create_process
.name
, event
->info
.create_process
.unicode
);
433 case EXIT_THREAD_DEBUG_EVENT
:
434 fprintf( stderr
, "{exit_thread,code=%d}", event
->info
.exit
.exit_code
);
436 case EXIT_PROCESS_DEBUG_EVENT
:
437 fprintf( stderr
, "{exit_process,code=%d}", event
->info
.exit
.exit_code
);
439 case LOAD_DLL_DEBUG_EVENT
:
440 fprintf( stderr
, "{load_dll,file=%p,base=%p,offset=%d,size=%d,name=%p,unicode=%d}",
441 event
->info
.load_dll
.handle
, event
->info
.load_dll
.base
,
442 event
->info
.load_dll
.dbg_offset
, event
->info
.load_dll
.dbg_size
,
443 event
->info
.load_dll
.name
, event
->info
.load_dll
.unicode
);
445 case UNLOAD_DLL_DEBUG_EVENT
:
446 fprintf( stderr
, "{unload_dll,base=%p}", event
->info
.unload_dll
.base
);
448 case OUTPUT_DEBUG_STRING_EVENT
:
449 fprintf( stderr
, "{output_string,data=%p,unicode=%d,len=%d}",
450 event
->info
.output_string
.string
, event
->info
.output_string
.unicode
,
451 event
->info
.output_string
.length
);
454 fprintf( stderr
, "{rip,err=%d,type=%d}",
455 event
->info
.rip_info
.error
, event
->info
.rip_info
.type
);
457 case 0: /* zero is the code returned on timeouts */
458 fprintf( stderr
, "{}" );
461 fprintf( stderr
, "{code=??? (%d)}", event
->code
);
467 /* dump a unicode string contained in a buffer; helper for dump_varargs_startup_info */
468 static void dump_inline_unicode_string( const UNICODE_STRING
*str
, const void *data
, data_size_t size
)
470 size_t length
= str
->Length
;
471 size_t offset
= (size_t)str
->Buffer
;
473 if (offset
>= size
) return;
474 if (offset
+ length
> size
) length
= size
- offset
;
475 dump_strW( (const WCHAR
*)data
+ offset
/sizeof(WCHAR
), length
/sizeof(WCHAR
), stderr
, "\"\"" );
478 static void dump_varargs_startup_info( data_size_t size
)
480 const RTL_USER_PROCESS_PARAMETERS
*ptr
= cur_data
;
481 RTL_USER_PROCESS_PARAMETERS params
;
483 if (size
< sizeof(params
.Size
))
485 fprintf( stderr
, "{}" );
488 if (size
> ptr
->Size
) size
= ptr
->Size
;
489 memset( ¶ms
, 0, sizeof(params
) );
490 memcpy( ¶ms
, ptr
, min( size
, sizeof(params
) ));
492 fprintf( stderr
, "{AllocationSize=%x,", params
.AllocationSize
);
493 fprintf( stderr
, "Size=%x,", params
.Size
);
494 fprintf( stderr
, "Flags=%x,", params
.Flags
);
495 fprintf( stderr
, "DebugFlags=%x,", params
.DebugFlags
);
496 fprintf( stderr
, "ConsoleHandle=%p,", params
.ConsoleHandle
);
497 fprintf( stderr
, "ConsoleFlags=%x,", params
.ConsoleFlags
);
498 fprintf( stderr
, "hStdInput=%p,", params
.hStdInput
);
499 fprintf( stderr
, "hStdOutput=%p,", params
.hStdOutput
);
500 fprintf( stderr
, "hStdError=%p,", params
.hStdError
);
501 fprintf( stderr
, "CurrentDirectory.Handle=%p,", params
.CurrentDirectory
.Handle
);
502 fprintf( stderr
, "dwX=%d,", params
.dwX
);
503 fprintf( stderr
, "dwY=%d,", params
.dwY
);
504 fprintf( stderr
, "dwXSize=%d,", params
.dwXSize
);
505 fprintf( stderr
, "dwYSize=%d,", params
.dwYSize
);
506 fprintf( stderr
, "dwXCountChars=%d,", params
.dwXCountChars
);
507 fprintf( stderr
, "dwYCountChars=%d,", params
.dwYCountChars
);
508 fprintf( stderr
, "dwFillAttribute=%x,", params
.dwFillAttribute
);
509 fprintf( stderr
, "dwFlags=%x,", params
.dwFlags
);
510 fprintf( stderr
, "wShowWindow=%x,", params
.wShowWindow
);
511 fprintf( stderr
, "CurrentDirectory.DosPath=L\"" );
512 dump_inline_unicode_string( ¶ms
.CurrentDirectory
.DosPath
, cur_data
, size
);
513 fprintf( stderr
, "\",DllPath=L\"" );
514 dump_inline_unicode_string( ¶ms
.DllPath
, cur_data
, size
);
515 fprintf( stderr
, "\",ImagePathName=L\"" );
516 dump_inline_unicode_string( ¶ms
.ImagePathName
, cur_data
, size
);
517 fprintf( stderr
, "\",CommandLine=L\"" );
518 dump_inline_unicode_string( ¶ms
.CommandLine
, cur_data
, size
);
519 fprintf( stderr
, "\",WindowTitle=L\"" );
520 dump_inline_unicode_string( ¶ms
.WindowTitle
, cur_data
, size
);
521 fprintf( stderr
, "\",Desktop=L\"" );
522 dump_inline_unicode_string( ¶ms
.Desktop
, cur_data
, size
);
523 fprintf( stderr
, "\",ShellInfo=L\"" );
524 dump_inline_unicode_string( ¶ms
.ShellInfo
, cur_data
, size
);
525 fprintf( stderr
, "\",RuntimeInfo=L\"" );
526 dump_inline_unicode_string( ¶ms
.RuntimeInfo
, cur_data
, size
);
527 fprintf( stderr
, "\"}" );
531 static void dump_varargs_input_records( data_size_t size
)
533 const INPUT_RECORD
*rec
= cur_data
;
534 data_size_t len
= size
/ sizeof(*rec
);
536 fputc( '{', stderr
);
539 fprintf( stderr
, "{%04x,...}", rec
->EventType
);
541 if (--len
) fputc( ',', stderr
);
543 fputc( '}', stderr
);
547 static void dump_varargs_rectangles( data_size_t size
)
549 const rectangle_t
*rect
= cur_data
;
550 data_size_t len
= size
/ sizeof(*rect
);
552 fputc( '{', stderr
);
555 dump_rectangle( rect
++ );
556 if (--len
) fputc( ',', stderr
);
558 fputc( '}', stderr
);
562 static void dump_varargs_message_data( data_size_t size
)
564 /* FIXME: dump the structured data */
565 dump_varargs_bytes( size
);
568 static void dump_varargs_properties( data_size_t size
)
570 const property_data_t
*prop
= cur_data
;
571 data_size_t len
= size
/ sizeof(*prop
);
573 fputc( '{', stderr
);
576 fprintf( stderr
, "{atom=%04x,str=%d,handle=%p}",
577 prop
->atom
, prop
->string
, prop
->handle
);
579 if (--len
) fputc( ',', stderr
);
581 fputc( '}', stderr
);
585 static void dump_varargs_LUID_AND_ATTRIBUTES( data_size_t size
)
587 const LUID_AND_ATTRIBUTES
*lat
= cur_data
;
588 data_size_t len
= size
/ sizeof(*lat
);
590 fputc( '{', stderr
);
593 fprintf( stderr
, "{luid=%08x%08x,attr=%x}",
594 lat
->Luid
.HighPart
, lat
->Luid
.LowPart
, lat
->Attributes
);
596 if (--len
) fputc( ',', stderr
);
598 fputc( '}', stderr
);
602 static void dump_inline_sid( const SID
*sid
, data_size_t size
)
607 if ((FIELD_OFFSET(SID
, SubAuthority
[0]) > size
) ||
608 (FIELD_OFFSET(SID
, SubAuthority
[sid
->SubAuthorityCount
]) > size
))
610 fprintf( stderr
, "<invalid sid>" );
614 fputc( '{', stderr
);
615 fprintf( stderr
, "S-%u-%u", sid
->Revision
, MAKELONG(
616 MAKEWORD( sid
->IdentifierAuthority
.Value
[5],
617 sid
->IdentifierAuthority
.Value
[4] ),
618 MAKEWORD( sid
->IdentifierAuthority
.Value
[3],
619 sid
->IdentifierAuthority
.Value
[2] ) ) );
620 for (i
= 0; i
< sid
->SubAuthorityCount
; i
++)
621 fprintf( stderr
, "-%u", sid
->SubAuthority
[i
] );
622 fputc( '}', stderr
);
625 static void dump_varargs_SID( data_size_t size
)
627 const SID
*sid
= cur_data
;
628 dump_inline_sid( sid
, size
);
632 static void dump_inline_acl( const ACL
*acl
, data_size_t size
)
634 const ACE_HEADER
*ace
;
636 fputc( '{', stderr
);
640 if (size
< sizeof(ACL
))
642 fprintf( stderr
, "<invalid acl>}\n" );
646 ace
= (const ACE_HEADER
*)(acl
+ 1);
647 for (i
= 0; i
< acl
->AceCount
; i
++)
649 const SID
*sid
= NULL
;
650 data_size_t sid_size
= 0;
652 if (size
< sizeof(ACE_HEADER
))
654 if (size
< ace
->AceSize
)
656 size
-= ace
->AceSize
;
657 if (i
!= 0) fputc( ',', stderr
);
658 fprintf( stderr
, "{AceType=" );
659 switch (ace
->AceType
)
661 case ACCESS_DENIED_ACE_TYPE
:
662 sid
= (const SID
*)&((const ACCESS_DENIED_ACE
*)ace
)->SidStart
;
663 sid_size
= ace
->AceSize
- FIELD_OFFSET(ACCESS_DENIED_ACE
, SidStart
);
664 fprintf( stderr
, "ACCESS_DENIED_ACE_TYPE,Mask=%x",
665 ((const ACCESS_DENIED_ACE
*)ace
)->Mask
);
667 case ACCESS_ALLOWED_ACE_TYPE
:
668 sid
= (const SID
*)&((const ACCESS_ALLOWED_ACE
*)ace
)->SidStart
;
669 sid_size
= ace
->AceSize
- FIELD_OFFSET(ACCESS_ALLOWED_ACE
, SidStart
);
670 fprintf( stderr
, "ACCESS_ALLOWED_ACE_TYPE,Mask=%x",
671 ((const ACCESS_ALLOWED_ACE
*)ace
)->Mask
);
673 case SYSTEM_AUDIT_ACE_TYPE
:
674 sid
= (const SID
*)&((const SYSTEM_AUDIT_ACE
*)ace
)->SidStart
;
675 sid_size
= ace
->AceSize
- FIELD_OFFSET(SYSTEM_AUDIT_ACE
, SidStart
);
676 fprintf( stderr
, "SYSTEM_AUDIT_ACE_TYPE,Mask=%x",
677 ((const SYSTEM_AUDIT_ACE
*)ace
)->Mask
);
679 case SYSTEM_ALARM_ACE_TYPE
:
680 sid
= (const SID
*)&((const SYSTEM_ALARM_ACE
*)ace
)->SidStart
;
681 sid_size
= ace
->AceSize
- FIELD_OFFSET(SYSTEM_ALARM_ACE
, SidStart
);
682 fprintf( stderr
, "SYSTEM_ALARM_ACE_TYPE,Mask=%x",
683 ((const SYSTEM_ALARM_ACE
*)ace
)->Mask
);
686 fprintf( stderr
, "unknown<%d>", ace
->AceType
);
689 fprintf( stderr
, ",AceFlags=%x,Sid=", ace
->AceFlags
);
691 dump_inline_sid( sid
, sid_size
);
692 ace
= (const ACE_HEADER
*)((const char *)ace
+ ace
->AceSize
);
693 fputc( '}', stderr
);
696 fputc( '}', stderr
);
699 static void dump_inline_security_descriptor( const struct security_descriptor
*sd
, data_size_t size
)
701 fputc( '{', stderr
);
702 if (size
>= sizeof(struct security_descriptor
))
704 size_t offset
= sizeof(struct security_descriptor
);
705 fprintf( stderr
, "control=%08x", sd
->control
);
706 fprintf( stderr
, ",owner=" );
707 if ((sd
->owner_len
> FIELD_OFFSET(SID
, SubAuthority
[255])) || (offset
+ sd
->owner_len
> size
))
709 dump_inline_sid( (const SID
*)((const char *)sd
+ offset
), sd
->owner_len
);
710 offset
+= sd
->owner_len
;
711 fprintf( stderr
, ",group=" );
712 if ((sd
->group_len
> FIELD_OFFSET(SID
, SubAuthority
[255])) || (offset
+ sd
->group_len
> size
))
714 dump_inline_sid( (const SID
*)((const char *)sd
+ offset
), sd
->group_len
);
715 offset
+= sd
->group_len
;
716 fprintf( stderr
, ",sacl=" );
717 if ((sd
->sacl_len
>= MAX_ACL_LEN
) || (offset
+ sd
->sacl_len
> size
))
719 dump_inline_acl( (const ACL
*)((const char *)sd
+ offset
), sd
->sacl_len
);
720 offset
+= sd
->sacl_len
;
721 fprintf( stderr
, ",dacl=" );
722 if ((sd
->dacl_len
>= MAX_ACL_LEN
) || (offset
+ sd
->dacl_len
> size
))
724 dump_inline_acl( (const ACL
*)((const char *)sd
+ offset
), sd
->dacl_len
);
725 offset
+= sd
->dacl_len
;
727 fputc( '}', stderr
);
730 static void dump_varargs_security_descriptor( data_size_t size
)
732 const struct security_descriptor
*sd
= cur_data
;
733 dump_inline_security_descriptor( sd
, size
);
737 static void dump_varargs_token_groups( data_size_t size
)
739 const struct token_groups
*tg
= cur_data
;
740 fputc( '{', stderr
);
741 if (size
>= sizeof(struct token_groups
))
743 size_t offset
= sizeof(*tg
);
744 fprintf( stderr
, "count=%08x,", tg
->count
);
745 if (tg
->count
* sizeof(unsigned int) <= size
)
748 const unsigned int *attr
= (const unsigned int *)(tg
+ 1);
750 offset
+= tg
->count
* sizeof(unsigned int);
752 fputc( '[', stderr
);
753 for (i
= 0; i
< tg
->count
; i
++)
755 const SID
*sid
= (const SID
*)((const char *)cur_data
+ offset
);
757 fputc( ',', stderr
);
758 fputc( '{', stderr
);
759 fprintf( stderr
, "attributes=%08x", attr
[i
] );
760 fprintf( stderr
, ",sid=" );
761 dump_inline_sid( sid
, size
- offset
);
762 if ((offset
+ FIELD_OFFSET(SID
, SubAuthority
[0]) > size
) ||
763 (offset
+ FIELD_OFFSET(SID
, SubAuthority
[sid
->SubAuthorityCount
]) > size
))
765 offset
+= FIELD_OFFSET(SID
, SubAuthority
[sid
->SubAuthorityCount
]);
766 fputc( '}', stderr
);
768 fputc( ']', stderr
);
771 fputc( '}', stderr
);
774 typedef void (*dump_func
)( const void *req
);
776 /* Everything below this line is generated automatically by tools/make_requests */
777 /* ### make_requests begin ### */
779 static void dump_new_process_request( const struct new_process_request
*req
)
781 fprintf( stderr
, " inherit_all=%d,", req
->inherit_all
);
782 fprintf( stderr
, " create_flags=%08x,", req
->create_flags
);
783 fprintf( stderr
, " socket_fd=%d,", req
->socket_fd
);
784 fprintf( stderr
, " exe_file=%p,", req
->exe_file
);
785 fprintf( stderr
, " hstdin=%p,", req
->hstdin
);
786 fprintf( stderr
, " hstdout=%p,", req
->hstdout
);
787 fprintf( stderr
, " hstderr=%p,", req
->hstderr
);
788 fprintf( stderr
, " process_access=%08x,", req
->process_access
);
789 fprintf( stderr
, " process_attr=%08x,", req
->process_attr
);
790 fprintf( stderr
, " thread_access=%08x,", req
->thread_access
);
791 fprintf( stderr
, " thread_attr=%08x,", req
->thread_attr
);
792 fprintf( stderr
, " info=" );
793 dump_varargs_startup_info( cur_size
);
794 fputc( ',', stderr
);
795 fprintf( stderr
, " env=" );
796 dump_varargs_unicode_str( cur_size
);
799 static void dump_new_process_reply( const struct new_process_reply
*req
)
801 fprintf( stderr
, " info=%p,", req
->info
);
802 fprintf( stderr
, " pid=%04x,", req
->pid
);
803 fprintf( stderr
, " phandle=%p,", req
->phandle
);
804 fprintf( stderr
, " tid=%04x,", req
->tid
);
805 fprintf( stderr
, " thandle=%p", req
->thandle
);
808 static void dump_get_new_process_info_request( const struct get_new_process_info_request
*req
)
810 fprintf( stderr
, " info=%p", req
->info
);
813 static void dump_get_new_process_info_reply( const struct get_new_process_info_reply
*req
)
815 fprintf( stderr
, " success=%d,", req
->success
);
816 fprintf( stderr
, " exit_code=%d", req
->exit_code
);
819 static void dump_new_thread_request( const struct new_thread_request
*req
)
821 fprintf( stderr
, " access=%08x,", req
->access
);
822 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
823 fprintf( stderr
, " suspend=%d,", req
->suspend
);
824 fprintf( stderr
, " request_fd=%d", req
->request_fd
);
827 static void dump_new_thread_reply( const struct new_thread_reply
*req
)
829 fprintf( stderr
, " tid=%04x,", req
->tid
);
830 fprintf( stderr
, " handle=%p", req
->handle
);
833 static void dump_get_startup_info_request( const struct get_startup_info_request
*req
)
837 static void dump_get_startup_info_reply( const struct get_startup_info_reply
*req
)
839 fprintf( stderr
, " exe_file=%p,", req
->exe_file
);
840 fprintf( stderr
, " hstdin=%p,", req
->hstdin
);
841 fprintf( stderr
, " hstdout=%p,", req
->hstdout
);
842 fprintf( stderr
, " hstderr=%p,", req
->hstderr
);
843 fprintf( stderr
, " info=" );
844 dump_varargs_startup_info( cur_size
);
845 fputc( ',', stderr
);
846 fprintf( stderr
, " env=" );
847 dump_varargs_unicode_str( cur_size
);
850 static void dump_init_process_done_request( const struct init_process_done_request
*req
)
852 fprintf( stderr
, " module=%p,", req
->module
);
853 fprintf( stderr
, " entry=%p,", req
->entry
);
854 fprintf( stderr
, " gui=%d", req
->gui
);
857 static void dump_init_thread_request( const struct init_thread_request
*req
)
859 fprintf( stderr
, " unix_pid=%d,", req
->unix_pid
);
860 fprintf( stderr
, " unix_tid=%d,", req
->unix_tid
);
861 fprintf( stderr
, " debug_level=%d,", req
->debug_level
);
862 fprintf( stderr
, " teb=%p,", req
->teb
);
863 fprintf( stderr
, " peb=%p,", req
->peb
);
864 fprintf( stderr
, " entry=%p,", req
->entry
);
865 fprintf( stderr
, " ldt_copy=%p,", req
->ldt_copy
);
866 fprintf( stderr
, " reply_fd=%d,", req
->reply_fd
);
867 fprintf( stderr
, " wait_fd=%d", req
->wait_fd
);
870 static void dump_init_thread_reply( const struct init_thread_reply
*req
)
872 fprintf( stderr
, " pid=%04x,", req
->pid
);
873 fprintf( stderr
, " tid=%04x,", req
->tid
);
874 fprintf( stderr
, " info_size=%u,", req
->info_size
);
875 fprintf( stderr
, " server_start=" );
876 dump_timeout( &req
->server_start
);
877 fprintf( stderr
, "," );
878 fprintf( stderr
, " version=%d", req
->version
);
881 static void dump_terminate_process_request( const struct terminate_process_request
*req
)
883 fprintf( stderr
, " handle=%p,", req
->handle
);
884 fprintf( stderr
, " exit_code=%d", req
->exit_code
);
887 static void dump_terminate_process_reply( const struct terminate_process_reply
*req
)
889 fprintf( stderr
, " self=%d", req
->self
);
892 static void dump_terminate_thread_request( const struct terminate_thread_request
*req
)
894 fprintf( stderr
, " handle=%p,", req
->handle
);
895 fprintf( stderr
, " exit_code=%d", req
->exit_code
);
898 static void dump_terminate_thread_reply( const struct terminate_thread_reply
*req
)
900 fprintf( stderr
, " self=%d,", req
->self
);
901 fprintf( stderr
, " last=%d", req
->last
);
904 static void dump_get_process_info_request( const struct get_process_info_request
*req
)
906 fprintf( stderr
, " handle=%p", req
->handle
);
909 static void dump_get_process_info_reply( const struct get_process_info_reply
*req
)
911 fprintf( stderr
, " pid=%04x,", req
->pid
);
912 fprintf( stderr
, " ppid=%04x,", req
->ppid
);
913 fprintf( stderr
, " exit_code=%d,", req
->exit_code
);
914 fprintf( stderr
, " priority=%d,", req
->priority
);
915 fprintf( stderr
, " affinity=%d,", req
->affinity
);
916 fprintf( stderr
, " peb=%p,", req
->peb
);
917 fprintf( stderr
, " start_time=" );
918 dump_timeout( &req
->start_time
);
919 fprintf( stderr
, "," );
920 fprintf( stderr
, " end_time=" );
921 dump_timeout( &req
->end_time
);
924 static void dump_set_process_info_request( const struct set_process_info_request
*req
)
926 fprintf( stderr
, " handle=%p,", req
->handle
);
927 fprintf( stderr
, " mask=%d,", req
->mask
);
928 fprintf( stderr
, " priority=%d,", req
->priority
);
929 fprintf( stderr
, " affinity=%d", req
->affinity
);
932 static void dump_get_thread_info_request( const struct get_thread_info_request
*req
)
934 fprintf( stderr
, " handle=%p,", req
->handle
);
935 fprintf( stderr
, " tid_in=%04x", req
->tid_in
);
938 static void dump_get_thread_info_reply( const struct get_thread_info_reply
*req
)
940 fprintf( stderr
, " pid=%04x,", req
->pid
);
941 fprintf( stderr
, " tid=%04x,", req
->tid
);
942 fprintf( stderr
, " teb=%p,", req
->teb
);
943 fprintf( stderr
, " exit_code=%d,", req
->exit_code
);
944 fprintf( stderr
, " priority=%d,", req
->priority
);
945 fprintf( stderr
, " affinity=%d,", req
->affinity
);
946 fprintf( stderr
, " creation_time=" );
947 dump_timeout( &req
->creation_time
);
948 fprintf( stderr
, "," );
949 fprintf( stderr
, " exit_time=" );
950 dump_timeout( &req
->exit_time
);
951 fprintf( stderr
, "," );
952 fprintf( stderr
, " last=%d", req
->last
);
955 static void dump_set_thread_info_request( const struct set_thread_info_request
*req
)
957 fprintf( stderr
, " handle=%p,", req
->handle
);
958 fprintf( stderr
, " mask=%d,", req
->mask
);
959 fprintf( stderr
, " priority=%d,", req
->priority
);
960 fprintf( stderr
, " affinity=%d,", req
->affinity
);
961 fprintf( stderr
, " token=%p", req
->token
);
964 static void dump_get_dll_info_request( const struct get_dll_info_request
*req
)
966 fprintf( stderr
, " handle=%p,", req
->handle
);
967 fprintf( stderr
, " base_address=%p", req
->base_address
);
970 static void dump_get_dll_info_reply( const struct get_dll_info_reply
*req
)
972 fprintf( stderr
, " size=%lu,", (unsigned long)req
->size
);
973 fprintf( stderr
, " entry_point=%p,", req
->entry_point
);
974 fprintf( stderr
, " filename=" );
975 dump_varargs_unicode_str( cur_size
);
978 static void dump_suspend_thread_request( const struct suspend_thread_request
*req
)
980 fprintf( stderr
, " handle=%p", req
->handle
);
983 static void dump_suspend_thread_reply( const struct suspend_thread_reply
*req
)
985 fprintf( stderr
, " count=%d", req
->count
);
988 static void dump_resume_thread_request( const struct resume_thread_request
*req
)
990 fprintf( stderr
, " handle=%p", req
->handle
);
993 static void dump_resume_thread_reply( const struct resume_thread_reply
*req
)
995 fprintf( stderr
, " count=%d", req
->count
);
998 static void dump_load_dll_request( const struct load_dll_request
*req
)
1000 fprintf( stderr
, " handle=%p,", req
->handle
);
1001 fprintf( stderr
, " base=%p,", req
->base
);
1002 fprintf( stderr
, " size=%lu,", (unsigned long)req
->size
);
1003 fprintf( stderr
, " dbg_offset=%d,", req
->dbg_offset
);
1004 fprintf( stderr
, " dbg_size=%d,", req
->dbg_size
);
1005 fprintf( stderr
, " name=%p,", req
->name
);
1006 fprintf( stderr
, " filename=" );
1007 dump_varargs_unicode_str( cur_size
);
1010 static void dump_unload_dll_request( const struct unload_dll_request
*req
)
1012 fprintf( stderr
, " base=%p", req
->base
);
1015 static void dump_queue_apc_request( const struct queue_apc_request
*req
)
1017 fprintf( stderr
, " thread=%p,", req
->thread
);
1018 fprintf( stderr
, " process=%p,", req
->process
);
1019 fprintf( stderr
, " call=" );
1020 dump_apc_call( &req
->call
);
1023 static void dump_queue_apc_reply( const struct queue_apc_reply
*req
)
1025 fprintf( stderr
, " handle=%p,", req
->handle
);
1026 fprintf( stderr
, " self=%d", req
->self
);
1029 static void dump_get_apc_result_request( const struct get_apc_result_request
*req
)
1031 fprintf( stderr
, " handle=%p", req
->handle
);
1034 static void dump_get_apc_result_reply( const struct get_apc_result_reply
*req
)
1036 fprintf( stderr
, " result=" );
1037 dump_apc_result( &req
->result
);
1040 static void dump_close_handle_request( const struct close_handle_request
*req
)
1042 fprintf( stderr
, " handle=%p", req
->handle
);
1045 static void dump_set_handle_info_request( const struct set_handle_info_request
*req
)
1047 fprintf( stderr
, " handle=%p,", req
->handle
);
1048 fprintf( stderr
, " flags=%d,", req
->flags
);
1049 fprintf( stderr
, " mask=%d", req
->mask
);
1052 static void dump_set_handle_info_reply( const struct set_handle_info_reply
*req
)
1054 fprintf( stderr
, " old_flags=%d", req
->old_flags
);
1057 static void dump_dup_handle_request( const struct dup_handle_request
*req
)
1059 fprintf( stderr
, " src_process=%p,", req
->src_process
);
1060 fprintf( stderr
, " src_handle=%p,", req
->src_handle
);
1061 fprintf( stderr
, " dst_process=%p,", req
->dst_process
);
1062 fprintf( stderr
, " access=%08x,", req
->access
);
1063 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1064 fprintf( stderr
, " options=%08x", req
->options
);
1067 static void dump_dup_handle_reply( const struct dup_handle_reply
*req
)
1069 fprintf( stderr
, " handle=%p,", req
->handle
);
1070 fprintf( stderr
, " self=%d,", req
->self
);
1071 fprintf( stderr
, " closed=%d", req
->closed
);
1074 static void dump_open_process_request( const struct open_process_request
*req
)
1076 fprintf( stderr
, " pid=%04x,", req
->pid
);
1077 fprintf( stderr
, " access=%08x,", req
->access
);
1078 fprintf( stderr
, " attributes=%08x", req
->attributes
);
1081 static void dump_open_process_reply( const struct open_process_reply
*req
)
1083 fprintf( stderr
, " handle=%p", req
->handle
);
1086 static void dump_open_thread_request( const struct open_thread_request
*req
)
1088 fprintf( stderr
, " tid=%04x,", req
->tid
);
1089 fprintf( stderr
, " access=%08x,", req
->access
);
1090 fprintf( stderr
, " attributes=%08x", req
->attributes
);
1093 static void dump_open_thread_reply( const struct open_thread_reply
*req
)
1095 fprintf( stderr
, " handle=%p", req
->handle
);
1098 static void dump_select_request( const struct select_request
*req
)
1100 fprintf( stderr
, " flags=%d,", req
->flags
);
1101 fprintf( stderr
, " cookie=%p,", req
->cookie
);
1102 fprintf( stderr
, " signal=%p,", req
->signal
);
1103 fprintf( stderr
, " prev_apc=%p,", req
->prev_apc
);
1104 fprintf( stderr
, " timeout=" );
1105 dump_timeout( &req
->timeout
);
1106 fprintf( stderr
, "," );
1107 fprintf( stderr
, " result=" );
1108 dump_varargs_apc_result( cur_size
);
1109 fputc( ',', stderr
);
1110 fprintf( stderr
, " handles=" );
1111 dump_varargs_handles( cur_size
);
1114 static void dump_select_reply( const struct select_reply
*req
)
1116 fprintf( stderr
, " apc_handle=%p,", req
->apc_handle
);
1117 fprintf( stderr
, " timeout=" );
1118 dump_timeout( &req
->timeout
);
1119 fprintf( stderr
, "," );
1120 fprintf( stderr
, " call=" );
1121 dump_apc_call( &req
->call
);
1124 static void dump_create_event_request( const struct create_event_request
*req
)
1126 fprintf( stderr
, " access=%08x,", req
->access
);
1127 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1128 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
1129 fprintf( stderr
, " manual_reset=%d,", req
->manual_reset
);
1130 fprintf( stderr
, " initial_state=%d,", req
->initial_state
);
1131 fprintf( stderr
, " name=" );
1132 dump_varargs_unicode_str( cur_size
);
1135 static void dump_create_event_reply( const struct create_event_reply
*req
)
1137 fprintf( stderr
, " handle=%p", req
->handle
);
1140 static void dump_event_op_request( const struct event_op_request
*req
)
1142 fprintf( stderr
, " handle=%p,", req
->handle
);
1143 fprintf( stderr
, " op=%d", req
->op
);
1146 static void dump_open_event_request( const struct open_event_request
*req
)
1148 fprintf( stderr
, " access=%08x,", req
->access
);
1149 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1150 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
1151 fprintf( stderr
, " name=" );
1152 dump_varargs_unicode_str( cur_size
);
1155 static void dump_open_event_reply( const struct open_event_reply
*req
)
1157 fprintf( stderr
, " handle=%p", req
->handle
);
1160 static void dump_create_mutex_request( const struct create_mutex_request
*req
)
1162 fprintf( stderr
, " access=%08x,", req
->access
);
1163 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1164 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
1165 fprintf( stderr
, " owned=%d,", req
->owned
);
1166 fprintf( stderr
, " name=" );
1167 dump_varargs_unicode_str( cur_size
);
1170 static void dump_create_mutex_reply( const struct create_mutex_reply
*req
)
1172 fprintf( stderr
, " handle=%p", req
->handle
);
1175 static void dump_release_mutex_request( const struct release_mutex_request
*req
)
1177 fprintf( stderr
, " handle=%p", req
->handle
);
1180 static void dump_release_mutex_reply( const struct release_mutex_reply
*req
)
1182 fprintf( stderr
, " prev_count=%08x", req
->prev_count
);
1185 static void dump_open_mutex_request( const struct open_mutex_request
*req
)
1187 fprintf( stderr
, " access=%08x,", req
->access
);
1188 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1189 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
1190 fprintf( stderr
, " name=" );
1191 dump_varargs_unicode_str( cur_size
);
1194 static void dump_open_mutex_reply( const struct open_mutex_reply
*req
)
1196 fprintf( stderr
, " handle=%p", req
->handle
);
1199 static void dump_create_semaphore_request( const struct create_semaphore_request
*req
)
1201 fprintf( stderr
, " access=%08x,", req
->access
);
1202 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1203 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
1204 fprintf( stderr
, " initial=%08x,", req
->initial
);
1205 fprintf( stderr
, " max=%08x,", req
->max
);
1206 fprintf( stderr
, " name=" );
1207 dump_varargs_unicode_str( cur_size
);
1210 static void dump_create_semaphore_reply( const struct create_semaphore_reply
*req
)
1212 fprintf( stderr
, " handle=%p", req
->handle
);
1215 static void dump_release_semaphore_request( const struct release_semaphore_request
*req
)
1217 fprintf( stderr
, " handle=%p,", req
->handle
);
1218 fprintf( stderr
, " count=%08x", req
->count
);
1221 static void dump_release_semaphore_reply( const struct release_semaphore_reply
*req
)
1223 fprintf( stderr
, " prev_count=%08x", req
->prev_count
);
1226 static void dump_open_semaphore_request( const struct open_semaphore_request
*req
)
1228 fprintf( stderr
, " access=%08x,", req
->access
);
1229 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1230 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
1231 fprintf( stderr
, " name=" );
1232 dump_varargs_unicode_str( cur_size
);
1235 static void dump_open_semaphore_reply( const struct open_semaphore_reply
*req
)
1237 fprintf( stderr
, " handle=%p", req
->handle
);
1240 static void dump_create_file_request( const struct create_file_request
*req
)
1242 fprintf( stderr
, " access=%08x,", req
->access
);
1243 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1244 fprintf( stderr
, " sharing=%08x,", req
->sharing
);
1245 fprintf( stderr
, " create=%d,", req
->create
);
1246 fprintf( stderr
, " options=%08x,", req
->options
);
1247 fprintf( stderr
, " attrs=%08x,", req
->attrs
);
1248 fprintf( stderr
, " filename=" );
1249 dump_varargs_string( cur_size
);
1252 static void dump_create_file_reply( const struct create_file_reply
*req
)
1254 fprintf( stderr
, " handle=%p", req
->handle
);
1257 static void dump_open_file_object_request( const struct open_file_object_request
*req
)
1259 fprintf( stderr
, " access=%08x,", req
->access
);
1260 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1261 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
1262 fprintf( stderr
, " sharing=%08x,", req
->sharing
);
1263 fprintf( stderr
, " options=%08x,", req
->options
);
1264 fprintf( stderr
, " filename=" );
1265 dump_varargs_unicode_str( cur_size
);
1268 static void dump_open_file_object_reply( const struct open_file_object_reply
*req
)
1270 fprintf( stderr
, " handle=%p", req
->handle
);
1273 static void dump_alloc_file_handle_request( const struct alloc_file_handle_request
*req
)
1275 fprintf( stderr
, " access=%08x,", req
->access
);
1276 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1277 fprintf( stderr
, " fd=%d", req
->fd
);
1280 static void dump_alloc_file_handle_reply( const struct alloc_file_handle_reply
*req
)
1282 fprintf( stderr
, " handle=%p", req
->handle
);
1285 static void dump_get_handle_fd_request( const struct get_handle_fd_request
*req
)
1287 fprintf( stderr
, " handle=%p", req
->handle
);
1290 static void dump_get_handle_fd_reply( const struct get_handle_fd_reply
*req
)
1292 fprintf( stderr
, " type=%d,", req
->type
);
1293 fprintf( stderr
, " removable=%d,", req
->removable
);
1294 fprintf( stderr
, " access=%08x,", req
->access
);
1295 fprintf( stderr
, " options=%08x", req
->options
);
1298 static void dump_flush_file_request( const struct flush_file_request
*req
)
1300 fprintf( stderr
, " handle=%p", req
->handle
);
1303 static void dump_flush_file_reply( const struct flush_file_reply
*req
)
1305 fprintf( stderr
, " event=%p", req
->event
);
1308 static void dump_lock_file_request( const struct lock_file_request
*req
)
1310 fprintf( stderr
, " handle=%p,", req
->handle
);
1311 fprintf( stderr
, " offset_low=%08x,", req
->offset_low
);
1312 fprintf( stderr
, " offset_high=%08x,", req
->offset_high
);
1313 fprintf( stderr
, " count_low=%08x,", req
->count_low
);
1314 fprintf( stderr
, " count_high=%08x,", req
->count_high
);
1315 fprintf( stderr
, " shared=%d,", req
->shared
);
1316 fprintf( stderr
, " wait=%d", req
->wait
);
1319 static void dump_lock_file_reply( const struct lock_file_reply
*req
)
1321 fprintf( stderr
, " handle=%p,", req
->handle
);
1322 fprintf( stderr
, " overlapped=%d", req
->overlapped
);
1325 static void dump_unlock_file_request( const struct unlock_file_request
*req
)
1327 fprintf( stderr
, " handle=%p,", req
->handle
);
1328 fprintf( stderr
, " offset_low=%08x,", req
->offset_low
);
1329 fprintf( stderr
, " offset_high=%08x,", req
->offset_high
);
1330 fprintf( stderr
, " count_low=%08x,", req
->count_low
);
1331 fprintf( stderr
, " count_high=%08x", req
->count_high
);
1334 static void dump_create_socket_request( const struct create_socket_request
*req
)
1336 fprintf( stderr
, " access=%08x,", req
->access
);
1337 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1338 fprintf( stderr
, " family=%d,", req
->family
);
1339 fprintf( stderr
, " type=%d,", req
->type
);
1340 fprintf( stderr
, " protocol=%d,", req
->protocol
);
1341 fprintf( stderr
, " flags=%08x", req
->flags
);
1344 static void dump_create_socket_reply( const struct create_socket_reply
*req
)
1346 fprintf( stderr
, " handle=%p", req
->handle
);
1349 static void dump_accept_socket_request( const struct accept_socket_request
*req
)
1351 fprintf( stderr
, " lhandle=%p,", req
->lhandle
);
1352 fprintf( stderr
, " access=%08x,", req
->access
);
1353 fprintf( stderr
, " attributes=%08x", req
->attributes
);
1356 static void dump_accept_socket_reply( const struct accept_socket_reply
*req
)
1358 fprintf( stderr
, " handle=%p", req
->handle
);
1361 static void dump_set_socket_event_request( const struct set_socket_event_request
*req
)
1363 fprintf( stderr
, " handle=%p,", req
->handle
);
1364 fprintf( stderr
, " mask=%08x,", req
->mask
);
1365 fprintf( stderr
, " event=%p,", req
->event
);
1366 fprintf( stderr
, " window=%p,", req
->window
);
1367 fprintf( stderr
, " msg=%08x", req
->msg
);
1370 static void dump_get_socket_event_request( const struct get_socket_event_request
*req
)
1372 fprintf( stderr
, " handle=%p,", req
->handle
);
1373 fprintf( stderr
, " service=%d,", req
->service
);
1374 fprintf( stderr
, " c_event=%p", req
->c_event
);
1377 static void dump_get_socket_event_reply( const struct get_socket_event_reply
*req
)
1379 fprintf( stderr
, " mask=%08x,", req
->mask
);
1380 fprintf( stderr
, " pmask=%08x,", req
->pmask
);
1381 fprintf( stderr
, " state=%08x,", req
->state
);
1382 fprintf( stderr
, " errors=" );
1383 dump_varargs_ints( cur_size
);
1386 static void dump_enable_socket_event_request( const struct enable_socket_event_request
*req
)
1388 fprintf( stderr
, " handle=%p,", req
->handle
);
1389 fprintf( stderr
, " mask=%08x,", req
->mask
);
1390 fprintf( stderr
, " sstate=%08x,", req
->sstate
);
1391 fprintf( stderr
, " cstate=%08x", req
->cstate
);
1394 static void dump_set_socket_deferred_request( const struct set_socket_deferred_request
*req
)
1396 fprintf( stderr
, " handle=%p,", req
->handle
);
1397 fprintf( stderr
, " deferred=%p", req
->deferred
);
1400 static void dump_alloc_console_request( const struct alloc_console_request
*req
)
1402 fprintf( stderr
, " access=%08x,", req
->access
);
1403 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1404 fprintf( stderr
, " pid=%04x", req
->pid
);
1407 static void dump_alloc_console_reply( const struct alloc_console_reply
*req
)
1409 fprintf( stderr
, " handle_in=%p,", req
->handle_in
);
1410 fprintf( stderr
, " event=%p", req
->event
);
1413 static void dump_free_console_request( const struct free_console_request
*req
)
1417 static void dump_get_console_renderer_events_request( const struct get_console_renderer_events_request
*req
)
1419 fprintf( stderr
, " handle=%p", req
->handle
);
1422 static void dump_get_console_renderer_events_reply( const struct get_console_renderer_events_reply
*req
)
1424 fprintf( stderr
, " data=" );
1425 dump_varargs_bytes( cur_size
);
1428 static void dump_open_console_request( const struct open_console_request
*req
)
1430 fprintf( stderr
, " from=%p,", req
->from
);
1431 fprintf( stderr
, " access=%08x,", req
->access
);
1432 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1433 fprintf( stderr
, " share=%d", req
->share
);
1436 static void dump_open_console_reply( const struct open_console_reply
*req
)
1438 fprintf( stderr
, " handle=%p", req
->handle
);
1441 static void dump_get_console_wait_event_request( const struct get_console_wait_event_request
*req
)
1445 static void dump_get_console_wait_event_reply( const struct get_console_wait_event_reply
*req
)
1447 fprintf( stderr
, " handle=%p", req
->handle
);
1450 static void dump_get_console_mode_request( const struct get_console_mode_request
*req
)
1452 fprintf( stderr
, " handle=%p", req
->handle
);
1455 static void dump_get_console_mode_reply( const struct get_console_mode_reply
*req
)
1457 fprintf( stderr
, " mode=%d", req
->mode
);
1460 static void dump_set_console_mode_request( const struct set_console_mode_request
*req
)
1462 fprintf( stderr
, " handle=%p,", req
->handle
);
1463 fprintf( stderr
, " mode=%d", req
->mode
);
1466 static void dump_set_console_input_info_request( const struct set_console_input_info_request
*req
)
1468 fprintf( stderr
, " handle=%p,", req
->handle
);
1469 fprintf( stderr
, " mask=%d,", req
->mask
);
1470 fprintf( stderr
, " active_sb=%p,", req
->active_sb
);
1471 fprintf( stderr
, " history_mode=%d,", req
->history_mode
);
1472 fprintf( stderr
, " history_size=%d,", req
->history_size
);
1473 fprintf( stderr
, " edition_mode=%d,", req
->edition_mode
);
1474 fprintf( stderr
, " input_cp=%d,", req
->input_cp
);
1475 fprintf( stderr
, " output_cp=%d,", req
->output_cp
);
1476 fprintf( stderr
, " win=%p,", req
->win
);
1477 fprintf( stderr
, " title=" );
1478 dump_varargs_unicode_str( cur_size
);
1481 static void dump_get_console_input_info_request( const struct get_console_input_info_request
*req
)
1483 fprintf( stderr
, " handle=%p", req
->handle
);
1486 static void dump_get_console_input_info_reply( const struct get_console_input_info_reply
*req
)
1488 fprintf( stderr
, " history_mode=%d,", req
->history_mode
);
1489 fprintf( stderr
, " history_size=%d,", req
->history_size
);
1490 fprintf( stderr
, " history_index=%d,", req
->history_index
);
1491 fprintf( stderr
, " edition_mode=%d,", req
->edition_mode
);
1492 fprintf( stderr
, " input_cp=%d,", req
->input_cp
);
1493 fprintf( stderr
, " output_cp=%d,", req
->output_cp
);
1494 fprintf( stderr
, " win=%p,", req
->win
);
1495 fprintf( stderr
, " title=" );
1496 dump_varargs_unicode_str( cur_size
);
1499 static void dump_append_console_input_history_request( const struct append_console_input_history_request
*req
)
1501 fprintf( stderr
, " handle=%p,", req
->handle
);
1502 fprintf( stderr
, " line=" );
1503 dump_varargs_unicode_str( cur_size
);
1506 static void dump_get_console_input_history_request( const struct get_console_input_history_request
*req
)
1508 fprintf( stderr
, " handle=%p,", req
->handle
);
1509 fprintf( stderr
, " index=%d", req
->index
);
1512 static void dump_get_console_input_history_reply( const struct get_console_input_history_reply
*req
)
1514 fprintf( stderr
, " total=%d,", req
->total
);
1515 fprintf( stderr
, " line=" );
1516 dump_varargs_unicode_str( cur_size
);
1519 static void dump_create_console_output_request( const struct create_console_output_request
*req
)
1521 fprintf( stderr
, " handle_in=%p,", req
->handle_in
);
1522 fprintf( stderr
, " access=%08x,", req
->access
);
1523 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1524 fprintf( stderr
, " share=%08x", req
->share
);
1527 static void dump_create_console_output_reply( const struct create_console_output_reply
*req
)
1529 fprintf( stderr
, " handle_out=%p", req
->handle_out
);
1532 static void dump_set_console_output_info_request( const struct set_console_output_info_request
*req
)
1534 fprintf( stderr
, " handle=%p,", req
->handle
);
1535 fprintf( stderr
, " mask=%d,", req
->mask
);
1536 fprintf( stderr
, " cursor_size=%d,", req
->cursor_size
);
1537 fprintf( stderr
, " cursor_visible=%d,", req
->cursor_visible
);
1538 fprintf( stderr
, " cursor_x=%d,", req
->cursor_x
);
1539 fprintf( stderr
, " cursor_y=%d,", req
->cursor_y
);
1540 fprintf( stderr
, " width=%d,", req
->width
);
1541 fprintf( stderr
, " height=%d,", req
->height
);
1542 fprintf( stderr
, " attr=%d,", req
->attr
);
1543 fprintf( stderr
, " win_left=%d,", req
->win_left
);
1544 fprintf( stderr
, " win_top=%d,", req
->win_top
);
1545 fprintf( stderr
, " win_right=%d,", req
->win_right
);
1546 fprintf( stderr
, " win_bottom=%d,", req
->win_bottom
);
1547 fprintf( stderr
, " max_width=%d,", req
->max_width
);
1548 fprintf( stderr
, " max_height=%d", req
->max_height
);
1551 static void dump_get_console_output_info_request( const struct get_console_output_info_request
*req
)
1553 fprintf( stderr
, " handle=%p", req
->handle
);
1556 static void dump_get_console_output_info_reply( const struct get_console_output_info_reply
*req
)
1558 fprintf( stderr
, " cursor_size=%d,", req
->cursor_size
);
1559 fprintf( stderr
, " cursor_visible=%d,", req
->cursor_visible
);
1560 fprintf( stderr
, " cursor_x=%d,", req
->cursor_x
);
1561 fprintf( stderr
, " cursor_y=%d,", req
->cursor_y
);
1562 fprintf( stderr
, " width=%d,", req
->width
);
1563 fprintf( stderr
, " height=%d,", req
->height
);
1564 fprintf( stderr
, " attr=%d,", req
->attr
);
1565 fprintf( stderr
, " win_left=%d,", req
->win_left
);
1566 fprintf( stderr
, " win_top=%d,", req
->win_top
);
1567 fprintf( stderr
, " win_right=%d,", req
->win_right
);
1568 fprintf( stderr
, " win_bottom=%d,", req
->win_bottom
);
1569 fprintf( stderr
, " max_width=%d,", req
->max_width
);
1570 fprintf( stderr
, " max_height=%d", req
->max_height
);
1573 static void dump_write_console_input_request( const struct write_console_input_request
*req
)
1575 fprintf( stderr
, " handle=%p,", req
->handle
);
1576 fprintf( stderr
, " rec=" );
1577 dump_varargs_input_records( cur_size
);
1580 static void dump_write_console_input_reply( const struct write_console_input_reply
*req
)
1582 fprintf( stderr
, " written=%d", req
->written
);
1585 static void dump_read_console_input_request( const struct read_console_input_request
*req
)
1587 fprintf( stderr
, " handle=%p,", req
->handle
);
1588 fprintf( stderr
, " flush=%d", req
->flush
);
1591 static void dump_read_console_input_reply( const struct read_console_input_reply
*req
)
1593 fprintf( stderr
, " read=%d,", req
->read
);
1594 fprintf( stderr
, " rec=" );
1595 dump_varargs_input_records( cur_size
);
1598 static void dump_write_console_output_request( const struct write_console_output_request
*req
)
1600 fprintf( stderr
, " handle=%p,", req
->handle
);
1601 fprintf( stderr
, " x=%d,", req
->x
);
1602 fprintf( stderr
, " y=%d,", req
->y
);
1603 fprintf( stderr
, " mode=%d,", req
->mode
);
1604 fprintf( stderr
, " wrap=%d,", req
->wrap
);
1605 fprintf( stderr
, " data=" );
1606 dump_varargs_bytes( cur_size
);
1609 static void dump_write_console_output_reply( const struct write_console_output_reply
*req
)
1611 fprintf( stderr
, " written=%d,", req
->written
);
1612 fprintf( stderr
, " width=%d,", req
->width
);
1613 fprintf( stderr
, " height=%d", req
->height
);
1616 static void dump_fill_console_output_request( const struct fill_console_output_request
*req
)
1618 fprintf( stderr
, " handle=%p,", req
->handle
);
1619 fprintf( stderr
, " x=%d,", req
->x
);
1620 fprintf( stderr
, " y=%d,", req
->y
);
1621 fprintf( stderr
, " mode=%d,", req
->mode
);
1622 fprintf( stderr
, " count=%d,", req
->count
);
1623 fprintf( stderr
, " wrap=%d,", req
->wrap
);
1624 fprintf( stderr
, " data=" );
1625 dump_char_info( &req
->data
);
1628 static void dump_fill_console_output_reply( const struct fill_console_output_reply
*req
)
1630 fprintf( stderr
, " written=%d", req
->written
);
1633 static void dump_read_console_output_request( const struct read_console_output_request
*req
)
1635 fprintf( stderr
, " handle=%p,", req
->handle
);
1636 fprintf( stderr
, " x=%d,", req
->x
);
1637 fprintf( stderr
, " y=%d,", req
->y
);
1638 fprintf( stderr
, " mode=%d,", req
->mode
);
1639 fprintf( stderr
, " wrap=%d", req
->wrap
);
1642 static void dump_read_console_output_reply( const struct read_console_output_reply
*req
)
1644 fprintf( stderr
, " width=%d,", req
->width
);
1645 fprintf( stderr
, " height=%d,", req
->height
);
1646 fprintf( stderr
, " data=" );
1647 dump_varargs_bytes( cur_size
);
1650 static void dump_move_console_output_request( const struct move_console_output_request
*req
)
1652 fprintf( stderr
, " handle=%p,", req
->handle
);
1653 fprintf( stderr
, " x_src=%d,", req
->x_src
);
1654 fprintf( stderr
, " y_src=%d,", req
->y_src
);
1655 fprintf( stderr
, " x_dst=%d,", req
->x_dst
);
1656 fprintf( stderr
, " y_dst=%d,", req
->y_dst
);
1657 fprintf( stderr
, " w=%d,", req
->w
);
1658 fprintf( stderr
, " h=%d", req
->h
);
1661 static void dump_send_console_signal_request( const struct send_console_signal_request
*req
)
1663 fprintf( stderr
, " signal=%d,", req
->signal
);
1664 fprintf( stderr
, " group_id=%04x", req
->group_id
);
1667 static void dump_read_directory_changes_request( const struct read_directory_changes_request
*req
)
1669 fprintf( stderr
, " filter=%08x,", req
->filter
);
1670 fprintf( stderr
, " handle=%p,", req
->handle
);
1671 fprintf( stderr
, " subtree=%d,", req
->subtree
);
1672 fprintf( stderr
, " want_data=%d,", req
->want_data
);
1673 fprintf( stderr
, " async=" );
1674 dump_async_data( &req
->async
);
1677 static void dump_read_change_request( const struct read_change_request
*req
)
1679 fprintf( stderr
, " handle=%p", req
->handle
);
1682 static void dump_read_change_reply( const struct read_change_reply
*req
)
1684 fprintf( stderr
, " action=%d,", req
->action
);
1685 fprintf( stderr
, " name=" );
1686 dump_varargs_string( cur_size
);
1689 static void dump_create_mapping_request( const struct create_mapping_request
*req
)
1691 fprintf( stderr
, " access=%08x,", req
->access
);
1692 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1693 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
1694 fprintf( stderr
, " size_high=%d,", req
->size_high
);
1695 fprintf( stderr
, " size_low=%d,", req
->size_low
);
1696 fprintf( stderr
, " protect=%d,", req
->protect
);
1697 fprintf( stderr
, " file_handle=%p,", req
->file_handle
);
1698 fprintf( stderr
, " name=" );
1699 dump_varargs_unicode_str( cur_size
);
1702 static void dump_create_mapping_reply( const struct create_mapping_reply
*req
)
1704 fprintf( stderr
, " handle=%p", req
->handle
);
1707 static void dump_open_mapping_request( const struct open_mapping_request
*req
)
1709 fprintf( stderr
, " access=%08x,", req
->access
);
1710 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1711 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
1712 fprintf( stderr
, " name=" );
1713 dump_varargs_unicode_str( cur_size
);
1716 static void dump_open_mapping_reply( const struct open_mapping_reply
*req
)
1718 fprintf( stderr
, " handle=%p", req
->handle
);
1721 static void dump_get_mapping_info_request( const struct get_mapping_info_request
*req
)
1723 fprintf( stderr
, " handle=%p", req
->handle
);
1726 static void dump_get_mapping_info_reply( const struct get_mapping_info_reply
*req
)
1728 fprintf( stderr
, " size_high=%d,", req
->size_high
);
1729 fprintf( stderr
, " size_low=%d,", req
->size_low
);
1730 fprintf( stderr
, " protect=%d,", req
->protect
);
1731 fprintf( stderr
, " header_size=%d,", req
->header_size
);
1732 fprintf( stderr
, " base=%p,", req
->base
);
1733 fprintf( stderr
, " mapping=%p,", req
->mapping
);
1734 fprintf( stderr
, " shared_file=%p,", req
->shared_file
);
1735 fprintf( stderr
, " shared_size=%d", req
->shared_size
);
1738 static void dump_create_snapshot_request( const struct create_snapshot_request
*req
)
1740 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1741 fprintf( stderr
, " flags=%d,", req
->flags
);
1742 fprintf( stderr
, " pid=%04x", req
->pid
);
1745 static void dump_create_snapshot_reply( const struct create_snapshot_reply
*req
)
1747 fprintf( stderr
, " handle=%p", req
->handle
);
1750 static void dump_next_process_request( const struct next_process_request
*req
)
1752 fprintf( stderr
, " handle=%p,", req
->handle
);
1753 fprintf( stderr
, " reset=%d", req
->reset
);
1756 static void dump_next_process_reply( const struct next_process_reply
*req
)
1758 fprintf( stderr
, " count=%d,", req
->count
);
1759 fprintf( stderr
, " pid=%04x,", req
->pid
);
1760 fprintf( stderr
, " ppid=%04x,", req
->ppid
);
1761 fprintf( stderr
, " heap=%p,", req
->heap
);
1762 fprintf( stderr
, " module=%p,", req
->module
);
1763 fprintf( stderr
, " threads=%d,", req
->threads
);
1764 fprintf( stderr
, " priority=%d,", req
->priority
);
1765 fprintf( stderr
, " handles=%d,", req
->handles
);
1766 fprintf( stderr
, " filename=" );
1767 dump_varargs_unicode_str( cur_size
);
1770 static void dump_next_thread_request( const struct next_thread_request
*req
)
1772 fprintf( stderr
, " handle=%p,", req
->handle
);
1773 fprintf( stderr
, " reset=%d", req
->reset
);
1776 static void dump_next_thread_reply( const struct next_thread_reply
*req
)
1778 fprintf( stderr
, " count=%d,", req
->count
);
1779 fprintf( stderr
, " pid=%04x,", req
->pid
);
1780 fprintf( stderr
, " tid=%04x,", req
->tid
);
1781 fprintf( stderr
, " base_pri=%d,", req
->base_pri
);
1782 fprintf( stderr
, " delta_pri=%d", req
->delta_pri
);
1785 static void dump_next_module_request( const struct next_module_request
*req
)
1787 fprintf( stderr
, " handle=%p,", req
->handle
);
1788 fprintf( stderr
, " reset=%d", req
->reset
);
1791 static void dump_next_module_reply( const struct next_module_reply
*req
)
1793 fprintf( stderr
, " pid=%04x,", req
->pid
);
1794 fprintf( stderr
, " base=%p,", req
->base
);
1795 fprintf( stderr
, " size=%lu,", (unsigned long)req
->size
);
1796 fprintf( stderr
, " filename=" );
1797 dump_varargs_unicode_str( cur_size
);
1800 static void dump_wait_debug_event_request( const struct wait_debug_event_request
*req
)
1802 fprintf( stderr
, " get_handle=%d", req
->get_handle
);
1805 static void dump_wait_debug_event_reply( const struct wait_debug_event_reply
*req
)
1807 fprintf( stderr
, " pid=%04x,", req
->pid
);
1808 fprintf( stderr
, " tid=%04x,", req
->tid
);
1809 fprintf( stderr
, " wait=%p,", req
->wait
);
1810 fprintf( stderr
, " event=" );
1811 dump_varargs_debug_event( cur_size
);
1814 static void dump_queue_exception_event_request( const struct queue_exception_event_request
*req
)
1816 fprintf( stderr
, " first=%d,", req
->first
);
1817 fprintf( stderr
, " record=" );
1818 dump_varargs_exc_event( cur_size
);
1821 static void dump_queue_exception_event_reply( const struct queue_exception_event_reply
*req
)
1823 fprintf( stderr
, " handle=%p", req
->handle
);
1826 static void dump_get_exception_status_request( const struct get_exception_status_request
*req
)
1828 fprintf( stderr
, " handle=%p", req
->handle
);
1831 static void dump_get_exception_status_reply( const struct get_exception_status_reply
*req
)
1833 fprintf( stderr
, " context=" );
1834 dump_varargs_context( cur_size
);
1837 static void dump_output_debug_string_request( const struct output_debug_string_request
*req
)
1839 fprintf( stderr
, " string=%p,", req
->string
);
1840 fprintf( stderr
, " unicode=%d,", req
->unicode
);
1841 fprintf( stderr
, " length=%d", req
->length
);
1844 static void dump_continue_debug_event_request( const struct continue_debug_event_request
*req
)
1846 fprintf( stderr
, " pid=%04x,", req
->pid
);
1847 fprintf( stderr
, " tid=%04x,", req
->tid
);
1848 fprintf( stderr
, " status=%d", req
->status
);
1851 static void dump_debug_process_request( const struct debug_process_request
*req
)
1853 fprintf( stderr
, " pid=%04x,", req
->pid
);
1854 fprintf( stderr
, " attach=%d", req
->attach
);
1857 static void dump_debug_break_request( const struct debug_break_request
*req
)
1859 fprintf( stderr
, " handle=%p", req
->handle
);
1862 static void dump_debug_break_reply( const struct debug_break_reply
*req
)
1864 fprintf( stderr
, " self=%d", req
->self
);
1867 static void dump_set_debugger_kill_on_exit_request( const struct set_debugger_kill_on_exit_request
*req
)
1869 fprintf( stderr
, " kill_on_exit=%d", req
->kill_on_exit
);
1872 static void dump_read_process_memory_request( const struct read_process_memory_request
*req
)
1874 fprintf( stderr
, " handle=%p,", req
->handle
);
1875 fprintf( stderr
, " addr=%p", req
->addr
);
1878 static void dump_read_process_memory_reply( const struct read_process_memory_reply
*req
)
1880 fprintf( stderr
, " data=" );
1881 dump_varargs_bytes( cur_size
);
1884 static void dump_write_process_memory_request( const struct write_process_memory_request
*req
)
1886 fprintf( stderr
, " handle=%p,", req
->handle
);
1887 fprintf( stderr
, " addr=%p,", req
->addr
);
1888 fprintf( stderr
, " data=" );
1889 dump_varargs_bytes( cur_size
);
1892 static void dump_create_key_request( const struct create_key_request
*req
)
1894 fprintf( stderr
, " parent=%p,", req
->parent
);
1895 fprintf( stderr
, " access=%08x,", req
->access
);
1896 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1897 fprintf( stderr
, " options=%08x,", req
->options
);
1898 fprintf( stderr
, " modif=%ld,", (long)req
->modif
);
1899 fprintf( stderr
, " namelen=%u,", req
->namelen
);
1900 fprintf( stderr
, " name=" );
1901 dump_varargs_unicode_str( min(cur_size
,req
->namelen
) );
1902 fputc( ',', stderr
);
1903 fprintf( stderr
, " class=" );
1904 dump_varargs_unicode_str( cur_size
);
1907 static void dump_create_key_reply( const struct create_key_reply
*req
)
1909 fprintf( stderr
, " hkey=%p,", req
->hkey
);
1910 fprintf( stderr
, " created=%d", req
->created
);
1913 static void dump_open_key_request( const struct open_key_request
*req
)
1915 fprintf( stderr
, " parent=%p,", req
->parent
);
1916 fprintf( stderr
, " access=%08x,", req
->access
);
1917 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1918 fprintf( stderr
, " name=" );
1919 dump_varargs_unicode_str( cur_size
);
1922 static void dump_open_key_reply( const struct open_key_reply
*req
)
1924 fprintf( stderr
, " hkey=%p", req
->hkey
);
1927 static void dump_delete_key_request( const struct delete_key_request
*req
)
1929 fprintf( stderr
, " hkey=%p", req
->hkey
);
1932 static void dump_flush_key_request( const struct flush_key_request
*req
)
1934 fprintf( stderr
, " hkey=%p", req
->hkey
);
1937 static void dump_enum_key_request( const struct enum_key_request
*req
)
1939 fprintf( stderr
, " hkey=%p,", req
->hkey
);
1940 fprintf( stderr
, " index=%d,", req
->index
);
1941 fprintf( stderr
, " info_class=%d", req
->info_class
);
1944 static void dump_enum_key_reply( const struct enum_key_reply
*req
)
1946 fprintf( stderr
, " subkeys=%d,", req
->subkeys
);
1947 fprintf( stderr
, " max_subkey=%d,", req
->max_subkey
);
1948 fprintf( stderr
, " max_class=%d,", req
->max_class
);
1949 fprintf( stderr
, " values=%d,", req
->values
);
1950 fprintf( stderr
, " max_value=%d,", req
->max_value
);
1951 fprintf( stderr
, " max_data=%d,", req
->max_data
);
1952 fprintf( stderr
, " modif=%ld,", (long)req
->modif
);
1953 fprintf( stderr
, " total=%u,", req
->total
);
1954 fprintf( stderr
, " namelen=%u,", req
->namelen
);
1955 fprintf( stderr
, " name=" );
1956 dump_varargs_unicode_str( min(cur_size
,req
->namelen
) );
1957 fputc( ',', stderr
);
1958 fprintf( stderr
, " class=" );
1959 dump_varargs_unicode_str( cur_size
);
1962 static void dump_set_key_value_request( const struct set_key_value_request
*req
)
1964 fprintf( stderr
, " hkey=%p,", req
->hkey
);
1965 fprintf( stderr
, " type=%d,", req
->type
);
1966 fprintf( stderr
, " namelen=%u,", req
->namelen
);
1967 fprintf( stderr
, " name=" );
1968 dump_varargs_unicode_str( min(cur_size
,req
->namelen
) );
1969 fputc( ',', stderr
);
1970 fprintf( stderr
, " data=" );
1971 dump_varargs_bytes( cur_size
);
1974 static void dump_get_key_value_request( const struct get_key_value_request
*req
)
1976 fprintf( stderr
, " hkey=%p,", req
->hkey
);
1977 fprintf( stderr
, " name=" );
1978 dump_varargs_unicode_str( cur_size
);
1981 static void dump_get_key_value_reply( const struct get_key_value_reply
*req
)
1983 fprintf( stderr
, " type=%d,", req
->type
);
1984 fprintf( stderr
, " total=%u,", req
->total
);
1985 fprintf( stderr
, " data=" );
1986 dump_varargs_bytes( cur_size
);
1989 static void dump_enum_key_value_request( const struct enum_key_value_request
*req
)
1991 fprintf( stderr
, " hkey=%p,", req
->hkey
);
1992 fprintf( stderr
, " index=%d,", req
->index
);
1993 fprintf( stderr
, " info_class=%d", req
->info_class
);
1996 static void dump_enum_key_value_reply( const struct enum_key_value_reply
*req
)
1998 fprintf( stderr
, " type=%d,", req
->type
);
1999 fprintf( stderr
, " total=%u,", req
->total
);
2000 fprintf( stderr
, " namelen=%u,", req
->namelen
);
2001 fprintf( stderr
, " name=" );
2002 dump_varargs_unicode_str( min(cur_size
,req
->namelen
) );
2003 fputc( ',', stderr
);
2004 fprintf( stderr
, " data=" );
2005 dump_varargs_bytes( cur_size
);
2008 static void dump_delete_key_value_request( const struct delete_key_value_request
*req
)
2010 fprintf( stderr
, " hkey=%p,", req
->hkey
);
2011 fprintf( stderr
, " name=" );
2012 dump_varargs_unicode_str( cur_size
);
2015 static void dump_load_registry_request( const struct load_registry_request
*req
)
2017 fprintf( stderr
, " hkey=%p,", req
->hkey
);
2018 fprintf( stderr
, " file=%p,", req
->file
);
2019 fprintf( stderr
, " name=" );
2020 dump_varargs_unicode_str( cur_size
);
2023 static void dump_unload_registry_request( const struct unload_registry_request
*req
)
2025 fprintf( stderr
, " hkey=%p", req
->hkey
);
2028 static void dump_save_registry_request( const struct save_registry_request
*req
)
2030 fprintf( stderr
, " hkey=%p,", req
->hkey
);
2031 fprintf( stderr
, " file=%p", req
->file
);
2034 static void dump_set_registry_notification_request( const struct set_registry_notification_request
*req
)
2036 fprintf( stderr
, " hkey=%p,", req
->hkey
);
2037 fprintf( stderr
, " event=%p,", req
->event
);
2038 fprintf( stderr
, " subtree=%d,", req
->subtree
);
2039 fprintf( stderr
, " filter=%08x", req
->filter
);
2042 static void dump_create_timer_request( const struct create_timer_request
*req
)
2044 fprintf( stderr
, " access=%08x,", req
->access
);
2045 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
2046 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
2047 fprintf( stderr
, " manual=%d,", req
->manual
);
2048 fprintf( stderr
, " name=" );
2049 dump_varargs_unicode_str( cur_size
);
2052 static void dump_create_timer_reply( const struct create_timer_reply
*req
)
2054 fprintf( stderr
, " handle=%p", req
->handle
);
2057 static void dump_open_timer_request( const struct open_timer_request
*req
)
2059 fprintf( stderr
, " access=%08x,", req
->access
);
2060 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
2061 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
2062 fprintf( stderr
, " name=" );
2063 dump_varargs_unicode_str( cur_size
);
2066 static void dump_open_timer_reply( const struct open_timer_reply
*req
)
2068 fprintf( stderr
, " handle=%p", req
->handle
);
2071 static void dump_set_timer_request( const struct set_timer_request
*req
)
2073 fprintf( stderr
, " handle=%p,", req
->handle
);
2074 fprintf( stderr
, " expire=" );
2075 dump_timeout( &req
->expire
);
2076 fprintf( stderr
, "," );
2077 fprintf( stderr
, " period=%d,", req
->period
);
2078 fprintf( stderr
, " callback=%p,", req
->callback
);
2079 fprintf( stderr
, " arg=%p", req
->arg
);
2082 static void dump_set_timer_reply( const struct set_timer_reply
*req
)
2084 fprintf( stderr
, " signaled=%d", req
->signaled
);
2087 static void dump_cancel_timer_request( const struct cancel_timer_request
*req
)
2089 fprintf( stderr
, " handle=%p", req
->handle
);
2092 static void dump_cancel_timer_reply( const struct cancel_timer_reply
*req
)
2094 fprintf( stderr
, " signaled=%d", req
->signaled
);
2097 static void dump_get_timer_info_request( const struct get_timer_info_request
*req
)
2099 fprintf( stderr
, " handle=%p", req
->handle
);
2102 static void dump_get_timer_info_reply( const struct get_timer_info_reply
*req
)
2104 fprintf( stderr
, " when=" );
2105 dump_timeout( &req
->when
);
2106 fprintf( stderr
, "," );
2107 fprintf( stderr
, " signaled=%d", req
->signaled
);
2110 static void dump_get_thread_context_request( const struct get_thread_context_request
*req
)
2112 fprintf( stderr
, " handle=%p,", req
->handle
);
2113 fprintf( stderr
, " flags=%08x,", req
->flags
);
2114 fprintf( stderr
, " suspend=%d", req
->suspend
);
2117 static void dump_get_thread_context_reply( const struct get_thread_context_reply
*req
)
2119 fprintf( stderr
, " self=%d,", req
->self
);
2120 fprintf( stderr
, " context=" );
2121 dump_varargs_context( cur_size
);
2124 static void dump_set_thread_context_request( const struct set_thread_context_request
*req
)
2126 fprintf( stderr
, " handle=%p,", req
->handle
);
2127 fprintf( stderr
, " flags=%08x,", req
->flags
);
2128 fprintf( stderr
, " suspend=%d,", req
->suspend
);
2129 fprintf( stderr
, " context=" );
2130 dump_varargs_context( cur_size
);
2133 static void dump_set_thread_context_reply( const struct set_thread_context_reply
*req
)
2135 fprintf( stderr
, " self=%d", req
->self
);
2138 static void dump_get_selector_entry_request( const struct get_selector_entry_request
*req
)
2140 fprintf( stderr
, " handle=%p,", req
->handle
);
2141 fprintf( stderr
, " entry=%d", req
->entry
);
2144 static void dump_get_selector_entry_reply( const struct get_selector_entry_reply
*req
)
2146 fprintf( stderr
, " base=%08x,", req
->base
);
2147 fprintf( stderr
, " limit=%08x,", req
->limit
);
2148 fprintf( stderr
, " flags=%02x", req
->flags
);
2151 static void dump_add_atom_request( const struct add_atom_request
*req
)
2153 fprintf( stderr
, " table=%p,", req
->table
);
2154 fprintf( stderr
, " name=" );
2155 dump_varargs_unicode_str( cur_size
);
2158 static void dump_add_atom_reply( const struct add_atom_reply
*req
)
2160 fprintf( stderr
, " atom=%04x", req
->atom
);
2163 static void dump_delete_atom_request( const struct delete_atom_request
*req
)
2165 fprintf( stderr
, " table=%p,", req
->table
);
2166 fprintf( stderr
, " atom=%04x", req
->atom
);
2169 static void dump_find_atom_request( const struct find_atom_request
*req
)
2171 fprintf( stderr
, " table=%p,", req
->table
);
2172 fprintf( stderr
, " name=" );
2173 dump_varargs_unicode_str( cur_size
);
2176 static void dump_find_atom_reply( const struct find_atom_reply
*req
)
2178 fprintf( stderr
, " atom=%04x", req
->atom
);
2181 static void dump_get_atom_information_request( const struct get_atom_information_request
*req
)
2183 fprintf( stderr
, " table=%p,", req
->table
);
2184 fprintf( stderr
, " atom=%04x", req
->atom
);
2187 static void dump_get_atom_information_reply( const struct get_atom_information_reply
*req
)
2189 fprintf( stderr
, " count=%d,", req
->count
);
2190 fprintf( stderr
, " pinned=%d,", req
->pinned
);
2191 fprintf( stderr
, " total=%u,", req
->total
);
2192 fprintf( stderr
, " name=" );
2193 dump_varargs_unicode_str( cur_size
);
2196 static void dump_set_atom_information_request( const struct set_atom_information_request
*req
)
2198 fprintf( stderr
, " table=%p,", req
->table
);
2199 fprintf( stderr
, " atom=%04x,", req
->atom
);
2200 fprintf( stderr
, " pinned=%d", req
->pinned
);
2203 static void dump_empty_atom_table_request( const struct empty_atom_table_request
*req
)
2205 fprintf( stderr
, " table=%p,", req
->table
);
2206 fprintf( stderr
, " if_pinned=%d", req
->if_pinned
);
2209 static void dump_init_atom_table_request( const struct init_atom_table_request
*req
)
2211 fprintf( stderr
, " entries=%d", req
->entries
);
2214 static void dump_init_atom_table_reply( const struct init_atom_table_reply
*req
)
2216 fprintf( stderr
, " table=%p", req
->table
);
2219 static void dump_get_msg_queue_request( const struct get_msg_queue_request
*req
)
2223 static void dump_get_msg_queue_reply( const struct get_msg_queue_reply
*req
)
2225 fprintf( stderr
, " handle=%p", req
->handle
);
2228 static void dump_set_queue_fd_request( const struct set_queue_fd_request
*req
)
2230 fprintf( stderr
, " handle=%p", req
->handle
);
2233 static void dump_set_queue_mask_request( const struct set_queue_mask_request
*req
)
2235 fprintf( stderr
, " wake_mask=%08x,", req
->wake_mask
);
2236 fprintf( stderr
, " changed_mask=%08x,", req
->changed_mask
);
2237 fprintf( stderr
, " skip_wait=%d", req
->skip_wait
);
2240 static void dump_set_queue_mask_reply( const struct set_queue_mask_reply
*req
)
2242 fprintf( stderr
, " wake_bits=%08x,", req
->wake_bits
);
2243 fprintf( stderr
, " changed_bits=%08x", req
->changed_bits
);
2246 static void dump_get_queue_status_request( const struct get_queue_status_request
*req
)
2248 fprintf( stderr
, " clear=%d", req
->clear
);
2251 static void dump_get_queue_status_reply( const struct get_queue_status_reply
*req
)
2253 fprintf( stderr
, " wake_bits=%08x,", req
->wake_bits
);
2254 fprintf( stderr
, " changed_bits=%08x", req
->changed_bits
);
2257 static void dump_get_process_idle_event_request( const struct get_process_idle_event_request
*req
)
2259 fprintf( stderr
, " handle=%p", req
->handle
);
2262 static void dump_get_process_idle_event_reply( const struct get_process_idle_event_reply
*req
)
2264 fprintf( stderr
, " event=%p", req
->event
);
2267 static void dump_send_message_request( const struct send_message_request
*req
)
2269 fprintf( stderr
, " id=%04x,", req
->id
);
2270 fprintf( stderr
, " type=%d,", req
->type
);
2271 fprintf( stderr
, " flags=%d,", req
->flags
);
2272 fprintf( stderr
, " win=%p,", req
->win
);
2273 fprintf( stderr
, " msg=%08x,", req
->msg
);
2274 fprintf( stderr
, " wparam=%lx,", req
->wparam
);
2275 fprintf( stderr
, " lparam=%lx,", req
->lparam
);
2276 fprintf( stderr
, " timeout=" );
2277 dump_timeout( &req
->timeout
);
2278 fprintf( stderr
, "," );
2279 fprintf( stderr
, " data=" );
2280 dump_varargs_message_data( cur_size
);
2283 static void dump_post_quit_message_request( const struct post_quit_message_request
*req
)
2285 fprintf( stderr
, " exit_code=%d", req
->exit_code
);
2288 static void dump_send_hardware_message_request( const struct send_hardware_message_request
*req
)
2290 fprintf( stderr
, " id=%04x,", req
->id
);
2291 fprintf( stderr
, " win=%p,", req
->win
);
2292 fprintf( stderr
, " msg=%08x,", req
->msg
);
2293 fprintf( stderr
, " time=%08x,", req
->time
);
2294 fprintf( stderr
, " wparam=%lx,", req
->wparam
);
2295 fprintf( stderr
, " lparam=%lx,", req
->lparam
);
2296 fprintf( stderr
, " info=%lx,", req
->info
);
2297 fprintf( stderr
, " x=%d,", req
->x
);
2298 fprintf( stderr
, " y=%d", req
->y
);
2301 static void dump_get_message_request( const struct get_message_request
*req
)
2303 fprintf( stderr
, " flags=%08x,", req
->flags
);
2304 fprintf( stderr
, " get_win=%p,", req
->get_win
);
2305 fprintf( stderr
, " get_first=%08x,", req
->get_first
);
2306 fprintf( stderr
, " get_last=%08x,", req
->get_last
);
2307 fprintf( stderr
, " hw_id=%08x", req
->hw_id
);
2310 static void dump_get_message_reply( const struct get_message_reply
*req
)
2312 fprintf( stderr
, " win=%p,", req
->win
);
2313 fprintf( stderr
, " type=%d,", req
->type
);
2314 fprintf( stderr
, " msg=%08x,", req
->msg
);
2315 fprintf( stderr
, " wparam=%lx,", req
->wparam
);
2316 fprintf( stderr
, " lparam=%lx,", req
->lparam
);
2317 fprintf( stderr
, " info=%lx,", req
->info
);
2318 fprintf( stderr
, " x=%d,", req
->x
);
2319 fprintf( stderr
, " y=%d,", req
->y
);
2320 fprintf( stderr
, " time=%08x,", req
->time
);
2321 fprintf( stderr
, " hw_id=%08x,", req
->hw_id
);
2322 fprintf( stderr
, " active_hooks=%08x,", req
->active_hooks
);
2323 fprintf( stderr
, " total=%u,", req
->total
);
2324 fprintf( stderr
, " data=" );
2325 dump_varargs_message_data( cur_size
);
2328 static void dump_reply_message_request( const struct reply_message_request
*req
)
2330 fprintf( stderr
, " result=%08x,", req
->result
);
2331 fprintf( stderr
, " remove=%d,", req
->remove
);
2332 fprintf( stderr
, " data=" );
2333 dump_varargs_bytes( cur_size
);
2336 static void dump_accept_hardware_message_request( const struct accept_hardware_message_request
*req
)
2338 fprintf( stderr
, " hw_id=%08x,", req
->hw_id
);
2339 fprintf( stderr
, " remove=%d,", req
->remove
);
2340 fprintf( stderr
, " new_win=%p", req
->new_win
);
2343 static void dump_get_message_reply_request( const struct get_message_reply_request
*req
)
2345 fprintf( stderr
, " cancel=%d", req
->cancel
);
2348 static void dump_get_message_reply_reply( const struct get_message_reply_reply
*req
)
2350 fprintf( stderr
, " result=%08x,", req
->result
);
2351 fprintf( stderr
, " data=" );
2352 dump_varargs_bytes( cur_size
);
2355 static void dump_set_win_timer_request( const struct set_win_timer_request
*req
)
2357 fprintf( stderr
, " win=%p,", req
->win
);
2358 fprintf( stderr
, " msg=%08x,", req
->msg
);
2359 fprintf( stderr
, " rate=%08x,", req
->rate
);
2360 fprintf( stderr
, " id=%lx,", req
->id
);
2361 fprintf( stderr
, " lparam=%lx", req
->lparam
);
2364 static void dump_set_win_timer_reply( const struct set_win_timer_reply
*req
)
2366 fprintf( stderr
, " id=%lx", req
->id
);
2369 static void dump_kill_win_timer_request( const struct kill_win_timer_request
*req
)
2371 fprintf( stderr
, " win=%p,", req
->win
);
2372 fprintf( stderr
, " msg=%08x,", req
->msg
);
2373 fprintf( stderr
, " id=%lx", req
->id
);
2376 static void dump_get_serial_info_request( const struct get_serial_info_request
*req
)
2378 fprintf( stderr
, " handle=%p", req
->handle
);
2381 static void dump_get_serial_info_reply( const struct get_serial_info_reply
*req
)
2383 fprintf( stderr
, " readinterval=%08x,", req
->readinterval
);
2384 fprintf( stderr
, " readconst=%08x,", req
->readconst
);
2385 fprintf( stderr
, " readmult=%08x,", req
->readmult
);
2386 fprintf( stderr
, " writeconst=%08x,", req
->writeconst
);
2387 fprintf( stderr
, " writemult=%08x,", req
->writemult
);
2388 fprintf( stderr
, " eventmask=%08x", req
->eventmask
);
2391 static void dump_set_serial_info_request( const struct set_serial_info_request
*req
)
2393 fprintf( stderr
, " handle=%p,", req
->handle
);
2394 fprintf( stderr
, " flags=%d,", req
->flags
);
2395 fprintf( stderr
, " readinterval=%08x,", req
->readinterval
);
2396 fprintf( stderr
, " readconst=%08x,", req
->readconst
);
2397 fprintf( stderr
, " readmult=%08x,", req
->readmult
);
2398 fprintf( stderr
, " writeconst=%08x,", req
->writeconst
);
2399 fprintf( stderr
, " writemult=%08x,", req
->writemult
);
2400 fprintf( stderr
, " eventmask=%08x", req
->eventmask
);
2403 static void dump_register_async_request( const struct register_async_request
*req
)
2405 fprintf( stderr
, " handle=%p,", req
->handle
);
2406 fprintf( stderr
, " type=%d,", req
->type
);
2407 fprintf( stderr
, " count=%d,", req
->count
);
2408 fprintf( stderr
, " async=" );
2409 dump_async_data( &req
->async
);
2412 static void dump_cancel_async_request( const struct cancel_async_request
*req
)
2414 fprintf( stderr
, " handle=%p", req
->handle
);
2417 static void dump_ioctl_request( const struct ioctl_request
*req
)
2419 fprintf( stderr
, " handle=%p,", req
->handle
);
2420 fprintf( stderr
, " code=" );
2421 dump_ioctl_code( &req
->code
);
2422 fprintf( stderr
, "," );
2423 fprintf( stderr
, " async=" );
2424 dump_async_data( &req
->async
);
2425 fprintf( stderr
, "," );
2426 fprintf( stderr
, " in_data=" );
2427 dump_varargs_bytes( cur_size
);
2430 static void dump_ioctl_reply( const struct ioctl_reply
*req
)
2432 fprintf( stderr
, " wait=%p,", req
->wait
);
2433 fprintf( stderr
, " options=%08x,", req
->options
);
2434 fprintf( stderr
, " out_data=" );
2435 dump_varargs_bytes( cur_size
);
2438 static void dump_get_ioctl_result_request( const struct get_ioctl_result_request
*req
)
2440 fprintf( stderr
, " handle=%p,", req
->handle
);
2441 fprintf( stderr
, " user_arg=%p", req
->user_arg
);
2444 static void dump_get_ioctl_result_reply( const struct get_ioctl_result_reply
*req
)
2446 fprintf( stderr
, " out_data=" );
2447 dump_varargs_bytes( cur_size
);
2450 static void dump_create_named_pipe_request( const struct create_named_pipe_request
*req
)
2452 fprintf( stderr
, " access=%08x,", req
->access
);
2453 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
2454 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
2455 fprintf( stderr
, " options=%08x,", req
->options
);
2456 fprintf( stderr
, " flags=%08x,", req
->flags
);
2457 fprintf( stderr
, " maxinstances=%08x,", req
->maxinstances
);
2458 fprintf( stderr
, " outsize=%08x,", req
->outsize
);
2459 fprintf( stderr
, " insize=%08x,", req
->insize
);
2460 fprintf( stderr
, " timeout=" );
2461 dump_timeout( &req
->timeout
);
2462 fprintf( stderr
, "," );
2463 fprintf( stderr
, " name=" );
2464 dump_varargs_unicode_str( cur_size
);
2467 static void dump_create_named_pipe_reply( const struct create_named_pipe_reply
*req
)
2469 fprintf( stderr
, " handle=%p", req
->handle
);
2472 static void dump_get_named_pipe_info_request( const struct get_named_pipe_info_request
*req
)
2474 fprintf( stderr
, " handle=%p", req
->handle
);
2477 static void dump_get_named_pipe_info_reply( const struct get_named_pipe_info_reply
*req
)
2479 fprintf( stderr
, " flags=%08x,", req
->flags
);
2480 fprintf( stderr
, " maxinstances=%08x,", req
->maxinstances
);
2481 fprintf( stderr
, " instances=%08x,", req
->instances
);
2482 fprintf( stderr
, " outsize=%08x,", req
->outsize
);
2483 fprintf( stderr
, " insize=%08x", req
->insize
);
2486 static void dump_create_window_request( const struct create_window_request
*req
)
2488 fprintf( stderr
, " parent=%p,", req
->parent
);
2489 fprintf( stderr
, " owner=%p,", req
->owner
);
2490 fprintf( stderr
, " atom=%04x,", req
->atom
);
2491 fprintf( stderr
, " instance=%p", req
->instance
);
2494 static void dump_create_window_reply( const struct create_window_reply
*req
)
2496 fprintf( stderr
, " handle=%p,", req
->handle
);
2497 fprintf( stderr
, " parent=%p,", req
->parent
);
2498 fprintf( stderr
, " owner=%p,", req
->owner
);
2499 fprintf( stderr
, " extra=%d,", req
->extra
);
2500 fprintf( stderr
, " class_ptr=%p", req
->class_ptr
);
2503 static void dump_destroy_window_request( const struct destroy_window_request
*req
)
2505 fprintf( stderr
, " handle=%p", req
->handle
);
2508 static void dump_get_desktop_window_request( const struct get_desktop_window_request
*req
)
2510 fprintf( stderr
, " force=%d", req
->force
);
2513 static void dump_get_desktop_window_reply( const struct get_desktop_window_reply
*req
)
2515 fprintf( stderr
, " handle=%p", req
->handle
);
2518 static void dump_set_window_owner_request( const struct set_window_owner_request
*req
)
2520 fprintf( stderr
, " handle=%p,", req
->handle
);
2521 fprintf( stderr
, " owner=%p", req
->owner
);
2524 static void dump_set_window_owner_reply( const struct set_window_owner_reply
*req
)
2526 fprintf( stderr
, " full_owner=%p,", req
->full_owner
);
2527 fprintf( stderr
, " prev_owner=%p", req
->prev_owner
);
2530 static void dump_get_window_info_request( const struct get_window_info_request
*req
)
2532 fprintf( stderr
, " handle=%p", req
->handle
);
2535 static void dump_get_window_info_reply( const struct get_window_info_reply
*req
)
2537 fprintf( stderr
, " full_handle=%p,", req
->full_handle
);
2538 fprintf( stderr
, " last_active=%p,", req
->last_active
);
2539 fprintf( stderr
, " pid=%04x,", req
->pid
);
2540 fprintf( stderr
, " tid=%04x,", req
->tid
);
2541 fprintf( stderr
, " atom=%04x,", req
->atom
);
2542 fprintf( stderr
, " is_unicode=%d", req
->is_unicode
);
2545 static void dump_set_window_info_request( const struct set_window_info_request
*req
)
2547 fprintf( stderr
, " flags=%08x,", req
->flags
);
2548 fprintf( stderr
, " handle=%p,", req
->handle
);
2549 fprintf( stderr
, " style=%08x,", req
->style
);
2550 fprintf( stderr
, " ex_style=%08x,", req
->ex_style
);
2551 fprintf( stderr
, " id=%08x,", req
->id
);
2552 fprintf( stderr
, " is_unicode=%d,", req
->is_unicode
);
2553 fprintf( stderr
, " instance=%p,", req
->instance
);
2554 fprintf( stderr
, " user_data=%lx,", req
->user_data
);
2555 fprintf( stderr
, " extra_offset=%d,", req
->extra_offset
);
2556 fprintf( stderr
, " extra_size=%u,", req
->extra_size
);
2557 fprintf( stderr
, " extra_value=%lx", req
->extra_value
);
2560 static void dump_set_window_info_reply( const struct set_window_info_reply
*req
)
2562 fprintf( stderr
, " old_style=%08x,", req
->old_style
);
2563 fprintf( stderr
, " old_ex_style=%08x,", req
->old_ex_style
);
2564 fprintf( stderr
, " old_id=%08x,", req
->old_id
);
2565 fprintf( stderr
, " old_instance=%p,", req
->old_instance
);
2566 fprintf( stderr
, " old_user_data=%lx,", req
->old_user_data
);
2567 fprintf( stderr
, " old_extra_value=%lx", req
->old_extra_value
);
2570 static void dump_set_parent_request( const struct set_parent_request
*req
)
2572 fprintf( stderr
, " handle=%p,", req
->handle
);
2573 fprintf( stderr
, " parent=%p", req
->parent
);
2576 static void dump_set_parent_reply( const struct set_parent_reply
*req
)
2578 fprintf( stderr
, " old_parent=%p,", req
->old_parent
);
2579 fprintf( stderr
, " full_parent=%p", req
->full_parent
);
2582 static void dump_get_window_parents_request( const struct get_window_parents_request
*req
)
2584 fprintf( stderr
, " handle=%p", req
->handle
);
2587 static void dump_get_window_parents_reply( const struct get_window_parents_reply
*req
)
2589 fprintf( stderr
, " count=%d,", req
->count
);
2590 fprintf( stderr
, " parents=" );
2591 dump_varargs_user_handles( cur_size
);
2594 static void dump_get_window_children_request( const struct get_window_children_request
*req
)
2596 fprintf( stderr
, " parent=%p,", req
->parent
);
2597 fprintf( stderr
, " atom=%04x,", req
->atom
);
2598 fprintf( stderr
, " tid=%04x", req
->tid
);
2601 static void dump_get_window_children_reply( const struct get_window_children_reply
*req
)
2603 fprintf( stderr
, " count=%d,", req
->count
);
2604 fprintf( stderr
, " children=" );
2605 dump_varargs_user_handles( cur_size
);
2608 static void dump_get_window_children_from_point_request( const struct get_window_children_from_point_request
*req
)
2610 fprintf( stderr
, " parent=%p,", req
->parent
);
2611 fprintf( stderr
, " x=%d,", req
->x
);
2612 fprintf( stderr
, " y=%d", req
->y
);
2615 static void dump_get_window_children_from_point_reply( const struct get_window_children_from_point_reply
*req
)
2617 fprintf( stderr
, " count=%d,", req
->count
);
2618 fprintf( stderr
, " children=" );
2619 dump_varargs_user_handles( cur_size
);
2622 static void dump_get_window_tree_request( const struct get_window_tree_request
*req
)
2624 fprintf( stderr
, " handle=%p", req
->handle
);
2627 static void dump_get_window_tree_reply( const struct get_window_tree_reply
*req
)
2629 fprintf( stderr
, " parent=%p,", req
->parent
);
2630 fprintf( stderr
, " owner=%p,", req
->owner
);
2631 fprintf( stderr
, " next_sibling=%p,", req
->next_sibling
);
2632 fprintf( stderr
, " prev_sibling=%p,", req
->prev_sibling
);
2633 fprintf( stderr
, " first_sibling=%p,", req
->first_sibling
);
2634 fprintf( stderr
, " last_sibling=%p,", req
->last_sibling
);
2635 fprintf( stderr
, " first_child=%p,", req
->first_child
);
2636 fprintf( stderr
, " last_child=%p", req
->last_child
);
2639 static void dump_set_window_pos_request( const struct set_window_pos_request
*req
)
2641 fprintf( stderr
, " flags=%08x,", req
->flags
);
2642 fprintf( stderr
, " handle=%p,", req
->handle
);
2643 fprintf( stderr
, " previous=%p,", req
->previous
);
2644 fprintf( stderr
, " window=" );
2645 dump_rectangle( &req
->window
);
2646 fprintf( stderr
, "," );
2647 fprintf( stderr
, " client=" );
2648 dump_rectangle( &req
->client
);
2649 fprintf( stderr
, "," );
2650 fprintf( stderr
, " valid=" );
2651 dump_varargs_rectangles( cur_size
);
2654 static void dump_set_window_pos_reply( const struct set_window_pos_reply
*req
)
2656 fprintf( stderr
, " new_style=%08x", req
->new_style
);
2659 static void dump_get_window_rectangles_request( const struct get_window_rectangles_request
*req
)
2661 fprintf( stderr
, " handle=%p", req
->handle
);
2664 static void dump_get_window_rectangles_reply( const struct get_window_rectangles_reply
*req
)
2666 fprintf( stderr
, " window=" );
2667 dump_rectangle( &req
->window
);
2668 fprintf( stderr
, "," );
2669 fprintf( stderr
, " visible=" );
2670 dump_rectangle( &req
->visible
);
2671 fprintf( stderr
, "," );
2672 fprintf( stderr
, " client=" );
2673 dump_rectangle( &req
->client
);
2676 static void dump_get_window_text_request( const struct get_window_text_request
*req
)
2678 fprintf( stderr
, " handle=%p", req
->handle
);
2681 static void dump_get_window_text_reply( const struct get_window_text_reply
*req
)
2683 fprintf( stderr
, " text=" );
2684 dump_varargs_unicode_str( cur_size
);
2687 static void dump_set_window_text_request( const struct set_window_text_request
*req
)
2689 fprintf( stderr
, " handle=%p,", req
->handle
);
2690 fprintf( stderr
, " text=" );
2691 dump_varargs_unicode_str( cur_size
);
2694 static void dump_get_windows_offset_request( const struct get_windows_offset_request
*req
)
2696 fprintf( stderr
, " from=%p,", req
->from
);
2697 fprintf( stderr
, " to=%p", req
->to
);
2700 static void dump_get_windows_offset_reply( const struct get_windows_offset_reply
*req
)
2702 fprintf( stderr
, " x=%d,", req
->x
);
2703 fprintf( stderr
, " y=%d", req
->y
);
2706 static void dump_get_visible_region_request( const struct get_visible_region_request
*req
)
2708 fprintf( stderr
, " window=%p,", req
->window
);
2709 fprintf( stderr
, " flags=%08x", req
->flags
);
2712 static void dump_get_visible_region_reply( const struct get_visible_region_reply
*req
)
2714 fprintf( stderr
, " top_win=%p,", req
->top_win
);
2715 fprintf( stderr
, " top_rect=" );
2716 dump_rectangle( &req
->top_rect
);
2717 fprintf( stderr
, "," );
2718 fprintf( stderr
, " win_rect=" );
2719 dump_rectangle( &req
->win_rect
);
2720 fprintf( stderr
, "," );
2721 fprintf( stderr
, " total_size=%u,", req
->total_size
);
2722 fprintf( stderr
, " region=" );
2723 dump_varargs_rectangles( cur_size
);
2726 static void dump_get_window_region_request( const struct get_window_region_request
*req
)
2728 fprintf( stderr
, " window=%p", req
->window
);
2731 static void dump_get_window_region_reply( const struct get_window_region_reply
*req
)
2733 fprintf( stderr
, " total_size=%u,", req
->total_size
);
2734 fprintf( stderr
, " region=" );
2735 dump_varargs_rectangles( cur_size
);
2738 static void dump_set_window_region_request( const struct set_window_region_request
*req
)
2740 fprintf( stderr
, " window=%p,", req
->window
);
2741 fprintf( stderr
, " redraw=%d,", req
->redraw
);
2742 fprintf( stderr
, " region=" );
2743 dump_varargs_rectangles( cur_size
);
2746 static void dump_get_update_region_request( const struct get_update_region_request
*req
)
2748 fprintf( stderr
, " window=%p,", req
->window
);
2749 fprintf( stderr
, " from_child=%p,", req
->from_child
);
2750 fprintf( stderr
, " flags=%08x", req
->flags
);
2753 static void dump_get_update_region_reply( const struct get_update_region_reply
*req
)
2755 fprintf( stderr
, " child=%p,", req
->child
);
2756 fprintf( stderr
, " flags=%08x,", req
->flags
);
2757 fprintf( stderr
, " total_size=%u,", req
->total_size
);
2758 fprintf( stderr
, " region=" );
2759 dump_varargs_rectangles( cur_size
);
2762 static void dump_update_window_zorder_request( const struct update_window_zorder_request
*req
)
2764 fprintf( stderr
, " window=%p,", req
->window
);
2765 fprintf( stderr
, " rect=" );
2766 dump_rectangle( &req
->rect
);
2769 static void dump_redraw_window_request( const struct redraw_window_request
*req
)
2771 fprintf( stderr
, " window=%p,", req
->window
);
2772 fprintf( stderr
, " flags=%08x,", req
->flags
);
2773 fprintf( stderr
, " region=" );
2774 dump_varargs_rectangles( cur_size
);
2777 static void dump_set_window_property_request( const struct set_window_property_request
*req
)
2779 fprintf( stderr
, " window=%p,", req
->window
);
2780 fprintf( stderr
, " atom=%04x,", req
->atom
);
2781 fprintf( stderr
, " handle=%p,", req
->handle
);
2782 fprintf( stderr
, " name=" );
2783 dump_varargs_unicode_str( cur_size
);
2786 static void dump_remove_window_property_request( const struct remove_window_property_request
*req
)
2788 fprintf( stderr
, " window=%p,", req
->window
);
2789 fprintf( stderr
, " atom=%04x,", req
->atom
);
2790 fprintf( stderr
, " name=" );
2791 dump_varargs_unicode_str( cur_size
);
2794 static void dump_remove_window_property_reply( const struct remove_window_property_reply
*req
)
2796 fprintf( stderr
, " handle=%p", req
->handle
);
2799 static void dump_get_window_property_request( const struct get_window_property_request
*req
)
2801 fprintf( stderr
, " window=%p,", req
->window
);
2802 fprintf( stderr
, " atom=%04x,", req
->atom
);
2803 fprintf( stderr
, " name=" );
2804 dump_varargs_unicode_str( cur_size
);
2807 static void dump_get_window_property_reply( const struct get_window_property_reply
*req
)
2809 fprintf( stderr
, " handle=%p", req
->handle
);
2812 static void dump_get_window_properties_request( const struct get_window_properties_request
*req
)
2814 fprintf( stderr
, " window=%p", req
->window
);
2817 static void dump_get_window_properties_reply( const struct get_window_properties_reply
*req
)
2819 fprintf( stderr
, " total=%d,", req
->total
);
2820 fprintf( stderr
, " props=" );
2821 dump_varargs_properties( cur_size
);
2824 static void dump_create_winstation_request( const struct create_winstation_request
*req
)
2826 fprintf( stderr
, " flags=%08x,", req
->flags
);
2827 fprintf( stderr
, " access=%08x,", req
->access
);
2828 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
2829 fprintf( stderr
, " name=" );
2830 dump_varargs_unicode_str( cur_size
);
2833 static void dump_create_winstation_reply( const struct create_winstation_reply
*req
)
2835 fprintf( stderr
, " handle=%p", req
->handle
);
2838 static void dump_open_winstation_request( const struct open_winstation_request
*req
)
2840 fprintf( stderr
, " access=%08x,", req
->access
);
2841 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
2842 fprintf( stderr
, " name=" );
2843 dump_varargs_unicode_str( cur_size
);
2846 static void dump_open_winstation_reply( const struct open_winstation_reply
*req
)
2848 fprintf( stderr
, " handle=%p", req
->handle
);
2851 static void dump_close_winstation_request( const struct close_winstation_request
*req
)
2853 fprintf( stderr
, " handle=%p", req
->handle
);
2856 static void dump_get_process_winstation_request( const struct get_process_winstation_request
*req
)
2860 static void dump_get_process_winstation_reply( const struct get_process_winstation_reply
*req
)
2862 fprintf( stderr
, " handle=%p", req
->handle
);
2865 static void dump_set_process_winstation_request( const struct set_process_winstation_request
*req
)
2867 fprintf( stderr
, " handle=%p", req
->handle
);
2870 static void dump_create_desktop_request( const struct create_desktop_request
*req
)
2872 fprintf( stderr
, " flags=%08x,", req
->flags
);
2873 fprintf( stderr
, " access=%08x,", req
->access
);
2874 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
2875 fprintf( stderr
, " name=" );
2876 dump_varargs_unicode_str( cur_size
);
2879 static void dump_create_desktop_reply( const struct create_desktop_reply
*req
)
2881 fprintf( stderr
, " handle=%p", req
->handle
);
2884 static void dump_open_desktop_request( const struct open_desktop_request
*req
)
2886 fprintf( stderr
, " flags=%08x,", req
->flags
);
2887 fprintf( stderr
, " access=%08x,", req
->access
);
2888 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
2889 fprintf( stderr
, " name=" );
2890 dump_varargs_unicode_str( cur_size
);
2893 static void dump_open_desktop_reply( const struct open_desktop_reply
*req
)
2895 fprintf( stderr
, " handle=%p", req
->handle
);
2898 static void dump_close_desktop_request( const struct close_desktop_request
*req
)
2900 fprintf( stderr
, " handle=%p", req
->handle
);
2903 static void dump_get_thread_desktop_request( const struct get_thread_desktop_request
*req
)
2905 fprintf( stderr
, " tid=%04x", req
->tid
);
2908 static void dump_get_thread_desktop_reply( const struct get_thread_desktop_reply
*req
)
2910 fprintf( stderr
, " handle=%p", req
->handle
);
2913 static void dump_set_thread_desktop_request( const struct set_thread_desktop_request
*req
)
2915 fprintf( stderr
, " handle=%p", req
->handle
);
2918 static void dump_set_user_object_info_request( const struct set_user_object_info_request
*req
)
2920 fprintf( stderr
, " handle=%p,", req
->handle
);
2921 fprintf( stderr
, " flags=%08x,", req
->flags
);
2922 fprintf( stderr
, " obj_flags=%08x", req
->obj_flags
);
2925 static void dump_set_user_object_info_reply( const struct set_user_object_info_reply
*req
)
2927 fprintf( stderr
, " is_desktop=%d,", req
->is_desktop
);
2928 fprintf( stderr
, " old_obj_flags=%08x,", req
->old_obj_flags
);
2929 fprintf( stderr
, " name=" );
2930 dump_varargs_unicode_str( cur_size
);
2933 static void dump_attach_thread_input_request( const struct attach_thread_input_request
*req
)
2935 fprintf( stderr
, " tid_from=%04x,", req
->tid_from
);
2936 fprintf( stderr
, " tid_to=%04x,", req
->tid_to
);
2937 fprintf( stderr
, " attach=%d", req
->attach
);
2940 static void dump_get_thread_input_request( const struct get_thread_input_request
*req
)
2942 fprintf( stderr
, " tid=%04x", req
->tid
);
2945 static void dump_get_thread_input_reply( const struct get_thread_input_reply
*req
)
2947 fprintf( stderr
, " focus=%p,", req
->focus
);
2948 fprintf( stderr
, " capture=%p,", req
->capture
);
2949 fprintf( stderr
, " active=%p,", req
->active
);
2950 fprintf( stderr
, " foreground=%p,", req
->foreground
);
2951 fprintf( stderr
, " menu_owner=%p,", req
->menu_owner
);
2952 fprintf( stderr
, " move_size=%p,", req
->move_size
);
2953 fprintf( stderr
, " caret=%p,", req
->caret
);
2954 fprintf( stderr
, " rect=" );
2955 dump_rectangle( &req
->rect
);
2958 static void dump_get_last_input_time_request( const struct get_last_input_time_request
*req
)
2962 static void dump_get_last_input_time_reply( const struct get_last_input_time_reply
*req
)
2964 fprintf( stderr
, " time=%08x", req
->time
);
2967 static void dump_get_key_state_request( const struct get_key_state_request
*req
)
2969 fprintf( stderr
, " tid=%04x,", req
->tid
);
2970 fprintf( stderr
, " key=%d", req
->key
);
2973 static void dump_get_key_state_reply( const struct get_key_state_reply
*req
)
2975 fprintf( stderr
, " state=%02x,", req
->state
);
2976 fprintf( stderr
, " keystate=" );
2977 dump_varargs_bytes( cur_size
);
2980 static void dump_set_key_state_request( const struct set_key_state_request
*req
)
2982 fprintf( stderr
, " tid=%04x,", req
->tid
);
2983 fprintf( stderr
, " keystate=" );
2984 dump_varargs_bytes( cur_size
);
2987 static void dump_set_foreground_window_request( const struct set_foreground_window_request
*req
)
2989 fprintf( stderr
, " handle=%p", req
->handle
);
2992 static void dump_set_foreground_window_reply( const struct set_foreground_window_reply
*req
)
2994 fprintf( stderr
, " previous=%p,", req
->previous
);
2995 fprintf( stderr
, " send_msg_old=%d,", req
->send_msg_old
);
2996 fprintf( stderr
, " send_msg_new=%d", req
->send_msg_new
);
2999 static void dump_set_focus_window_request( const struct set_focus_window_request
*req
)
3001 fprintf( stderr
, " handle=%p", req
->handle
);
3004 static void dump_set_focus_window_reply( const struct set_focus_window_reply
*req
)
3006 fprintf( stderr
, " previous=%p", req
->previous
);
3009 static void dump_set_active_window_request( const struct set_active_window_request
*req
)
3011 fprintf( stderr
, " handle=%p", req
->handle
);
3014 static void dump_set_active_window_reply( const struct set_active_window_reply
*req
)
3016 fprintf( stderr
, " previous=%p", req
->previous
);
3019 static void dump_set_capture_window_request( const struct set_capture_window_request
*req
)
3021 fprintf( stderr
, " handle=%p,", req
->handle
);
3022 fprintf( stderr
, " flags=%08x", req
->flags
);
3025 static void dump_set_capture_window_reply( const struct set_capture_window_reply
*req
)
3027 fprintf( stderr
, " previous=%p,", req
->previous
);
3028 fprintf( stderr
, " full_handle=%p", req
->full_handle
);
3031 static void dump_set_caret_window_request( const struct set_caret_window_request
*req
)
3033 fprintf( stderr
, " handle=%p,", req
->handle
);
3034 fprintf( stderr
, " width=%d,", req
->width
);
3035 fprintf( stderr
, " height=%d", req
->height
);
3038 static void dump_set_caret_window_reply( const struct set_caret_window_reply
*req
)
3040 fprintf( stderr
, " previous=%p,", req
->previous
);
3041 fprintf( stderr
, " old_rect=" );
3042 dump_rectangle( &req
->old_rect
);
3043 fprintf( stderr
, "," );
3044 fprintf( stderr
, " old_hide=%d,", req
->old_hide
);
3045 fprintf( stderr
, " old_state=%d", req
->old_state
);
3048 static void dump_set_caret_info_request( const struct set_caret_info_request
*req
)
3050 fprintf( stderr
, " flags=%08x,", req
->flags
);
3051 fprintf( stderr
, " handle=%p,", req
->handle
);
3052 fprintf( stderr
, " x=%d,", req
->x
);
3053 fprintf( stderr
, " y=%d,", req
->y
);
3054 fprintf( stderr
, " hide=%d,", req
->hide
);
3055 fprintf( stderr
, " state=%d", req
->state
);
3058 static void dump_set_caret_info_reply( const struct set_caret_info_reply
*req
)
3060 fprintf( stderr
, " full_handle=%p,", req
->full_handle
);
3061 fprintf( stderr
, " old_rect=" );
3062 dump_rectangle( &req
->old_rect
);
3063 fprintf( stderr
, "," );
3064 fprintf( stderr
, " old_hide=%d,", req
->old_hide
);
3065 fprintf( stderr
, " old_state=%d", req
->old_state
);
3068 static void dump_set_hook_request( const struct set_hook_request
*req
)
3070 fprintf( stderr
, " id=%d,", req
->id
);
3071 fprintf( stderr
, " pid=%04x,", req
->pid
);
3072 fprintf( stderr
, " tid=%04x,", req
->tid
);
3073 fprintf( stderr
, " event_min=%d,", req
->event_min
);
3074 fprintf( stderr
, " event_max=%d,", req
->event_max
);
3075 fprintf( stderr
, " flags=%d,", req
->flags
);
3076 fprintf( stderr
, " proc=%p,", req
->proc
);
3077 fprintf( stderr
, " unicode=%d,", req
->unicode
);
3078 fprintf( stderr
, " module=" );
3079 dump_varargs_unicode_str( cur_size
);
3082 static void dump_set_hook_reply( const struct set_hook_reply
*req
)
3084 fprintf( stderr
, " handle=%p,", req
->handle
);
3085 fprintf( stderr
, " active_hooks=%08x", req
->active_hooks
);
3088 static void dump_remove_hook_request( const struct remove_hook_request
*req
)
3090 fprintf( stderr
, " handle=%p,", req
->handle
);
3091 fprintf( stderr
, " id=%d,", req
->id
);
3092 fprintf( stderr
, " proc=%p", req
->proc
);
3095 static void dump_remove_hook_reply( const struct remove_hook_reply
*req
)
3097 fprintf( stderr
, " active_hooks=%08x", req
->active_hooks
);
3100 static void dump_start_hook_chain_request( const struct start_hook_chain_request
*req
)
3102 fprintf( stderr
, " id=%d,", req
->id
);
3103 fprintf( stderr
, " event=%d,", req
->event
);
3104 fprintf( stderr
, " window=%p,", req
->window
);
3105 fprintf( stderr
, " object_id=%d,", req
->object_id
);
3106 fprintf( stderr
, " child_id=%d", req
->child_id
);
3109 static void dump_start_hook_chain_reply( const struct start_hook_chain_reply
*req
)
3111 fprintf( stderr
, " handle=%p,", req
->handle
);
3112 fprintf( stderr
, " pid=%04x,", req
->pid
);
3113 fprintf( stderr
, " tid=%04x,", req
->tid
);
3114 fprintf( stderr
, " proc=%p,", req
->proc
);
3115 fprintf( stderr
, " unicode=%d,", req
->unicode
);
3116 fprintf( stderr
, " active_hooks=%08x,", req
->active_hooks
);
3117 fprintf( stderr
, " module=" );
3118 dump_varargs_unicode_str( cur_size
);
3121 static void dump_finish_hook_chain_request( const struct finish_hook_chain_request
*req
)
3123 fprintf( stderr
, " id=%d", req
->id
);
3126 static void dump_get_hook_info_request( const struct get_hook_info_request
*req
)
3128 fprintf( stderr
, " handle=%p,", req
->handle
);
3129 fprintf( stderr
, " get_next=%d,", req
->get_next
);
3130 fprintf( stderr
, " event=%d,", req
->event
);
3131 fprintf( stderr
, " window=%p,", req
->window
);
3132 fprintf( stderr
, " object_id=%d,", req
->object_id
);
3133 fprintf( stderr
, " child_id=%d", req
->child_id
);
3136 static void dump_get_hook_info_reply( const struct get_hook_info_reply
*req
)
3138 fprintf( stderr
, " handle=%p,", req
->handle
);
3139 fprintf( stderr
, " id=%d,", req
->id
);
3140 fprintf( stderr
, " pid=%04x,", req
->pid
);
3141 fprintf( stderr
, " tid=%04x,", req
->tid
);
3142 fprintf( stderr
, " proc=%p,", req
->proc
);
3143 fprintf( stderr
, " unicode=%d,", req
->unicode
);
3144 fprintf( stderr
, " module=" );
3145 dump_varargs_unicode_str( cur_size
);
3148 static void dump_create_class_request( const struct create_class_request
*req
)
3150 fprintf( stderr
, " local=%d,", req
->local
);
3151 fprintf( stderr
, " atom=%04x,", req
->atom
);
3152 fprintf( stderr
, " style=%08x,", req
->style
);
3153 fprintf( stderr
, " instance=%p,", req
->instance
);
3154 fprintf( stderr
, " extra=%d,", req
->extra
);
3155 fprintf( stderr
, " win_extra=%d,", req
->win_extra
);
3156 fprintf( stderr
, " client_ptr=%p", req
->client_ptr
);
3159 static void dump_destroy_class_request( const struct destroy_class_request
*req
)
3161 fprintf( stderr
, " atom=%04x,", req
->atom
);
3162 fprintf( stderr
, " instance=%p", req
->instance
);
3165 static void dump_destroy_class_reply( const struct destroy_class_reply
*req
)
3167 fprintf( stderr
, " client_ptr=%p", req
->client_ptr
);
3170 static void dump_set_class_info_request( const struct set_class_info_request
*req
)
3172 fprintf( stderr
, " window=%p,", req
->window
);
3173 fprintf( stderr
, " flags=%08x,", req
->flags
);
3174 fprintf( stderr
, " atom=%04x,", req
->atom
);
3175 fprintf( stderr
, " style=%08x,", req
->style
);
3176 fprintf( stderr
, " win_extra=%d,", req
->win_extra
);
3177 fprintf( stderr
, " instance=%p,", req
->instance
);
3178 fprintf( stderr
, " extra_offset=%d,", req
->extra_offset
);
3179 fprintf( stderr
, " extra_size=%u,", req
->extra_size
);
3180 fprintf( stderr
, " extra_value=%lx", req
->extra_value
);
3183 static void dump_set_class_info_reply( const struct set_class_info_reply
*req
)
3185 fprintf( stderr
, " old_atom=%04x,", req
->old_atom
);
3186 fprintf( stderr
, " old_style=%08x,", req
->old_style
);
3187 fprintf( stderr
, " old_extra=%d,", req
->old_extra
);
3188 fprintf( stderr
, " old_win_extra=%d,", req
->old_win_extra
);
3189 fprintf( stderr
, " old_instance=%p,", req
->old_instance
);
3190 fprintf( stderr
, " old_extra_value=%lx", req
->old_extra_value
);
3193 static void dump_set_clipboard_info_request( const struct set_clipboard_info_request
*req
)
3195 fprintf( stderr
, " flags=%08x,", req
->flags
);
3196 fprintf( stderr
, " clipboard=%p,", req
->clipboard
);
3197 fprintf( stderr
, " owner=%p,", req
->owner
);
3198 fprintf( stderr
, " viewer=%p,", req
->viewer
);
3199 fprintf( stderr
, " seqno=%08x", req
->seqno
);
3202 static void dump_set_clipboard_info_reply( const struct set_clipboard_info_reply
*req
)
3204 fprintf( stderr
, " flags=%08x,", req
->flags
);
3205 fprintf( stderr
, " old_clipboard=%p,", req
->old_clipboard
);
3206 fprintf( stderr
, " old_owner=%p,", req
->old_owner
);
3207 fprintf( stderr
, " old_viewer=%p,", req
->old_viewer
);
3208 fprintf( stderr
, " seqno=%08x", req
->seqno
);
3211 static void dump_open_token_request( const struct open_token_request
*req
)
3213 fprintf( stderr
, " handle=%p,", req
->handle
);
3214 fprintf( stderr
, " access=%08x,", req
->access
);
3215 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
3216 fprintf( stderr
, " flags=%08x", req
->flags
);
3219 static void dump_open_token_reply( const struct open_token_reply
*req
)
3221 fprintf( stderr
, " token=%p", req
->token
);
3224 static void dump_set_global_windows_request( const struct set_global_windows_request
*req
)
3226 fprintf( stderr
, " flags=%08x,", req
->flags
);
3227 fprintf( stderr
, " shell_window=%p,", req
->shell_window
);
3228 fprintf( stderr
, " shell_listview=%p,", req
->shell_listview
);
3229 fprintf( stderr
, " progman_window=%p,", req
->progman_window
);
3230 fprintf( stderr
, " taskman_window=%p", req
->taskman_window
);
3233 static void dump_set_global_windows_reply( const struct set_global_windows_reply
*req
)
3235 fprintf( stderr
, " old_shell_window=%p,", req
->old_shell_window
);
3236 fprintf( stderr
, " old_shell_listview=%p,", req
->old_shell_listview
);
3237 fprintf( stderr
, " old_progman_window=%p,", req
->old_progman_window
);
3238 fprintf( stderr
, " old_taskman_window=%p", req
->old_taskman_window
);
3241 static void dump_adjust_token_privileges_request( const struct adjust_token_privileges_request
*req
)
3243 fprintf( stderr
, " handle=%p,", req
->handle
);
3244 fprintf( stderr
, " disable_all=%d,", req
->disable_all
);
3245 fprintf( stderr
, " get_modified_state=%d,", req
->get_modified_state
);
3246 fprintf( stderr
, " privileges=" );
3247 dump_varargs_LUID_AND_ATTRIBUTES( cur_size
);
3250 static void dump_adjust_token_privileges_reply( const struct adjust_token_privileges_reply
*req
)
3252 fprintf( stderr
, " len=%08x,", req
->len
);
3253 fprintf( stderr
, " privileges=" );
3254 dump_varargs_LUID_AND_ATTRIBUTES( cur_size
);
3257 static void dump_get_token_privileges_request( const struct get_token_privileges_request
*req
)
3259 fprintf( stderr
, " handle=%p", req
->handle
);
3262 static void dump_get_token_privileges_reply( const struct get_token_privileges_reply
*req
)
3264 fprintf( stderr
, " len=%08x,", req
->len
);
3265 fprintf( stderr
, " privileges=" );
3266 dump_varargs_LUID_AND_ATTRIBUTES( cur_size
);
3269 static void dump_check_token_privileges_request( const struct check_token_privileges_request
*req
)
3271 fprintf( stderr
, " handle=%p,", req
->handle
);
3272 fprintf( stderr
, " all_required=%d,", req
->all_required
);
3273 fprintf( stderr
, " privileges=" );
3274 dump_varargs_LUID_AND_ATTRIBUTES( cur_size
);
3277 static void dump_check_token_privileges_reply( const struct check_token_privileges_reply
*req
)
3279 fprintf( stderr
, " has_privileges=%d,", req
->has_privileges
);
3280 fprintf( stderr
, " privileges=" );
3281 dump_varargs_LUID_AND_ATTRIBUTES( cur_size
);
3284 static void dump_duplicate_token_request( const struct duplicate_token_request
*req
)
3286 fprintf( stderr
, " handle=%p,", req
->handle
);
3287 fprintf( stderr
, " access=%08x,", req
->access
);
3288 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
3289 fprintf( stderr
, " primary=%d,", req
->primary
);
3290 fprintf( stderr
, " impersonation_level=%d", req
->impersonation_level
);
3293 static void dump_duplicate_token_reply( const struct duplicate_token_reply
*req
)
3295 fprintf( stderr
, " new_handle=%p", req
->new_handle
);
3298 static void dump_access_check_request( const struct access_check_request
*req
)
3300 fprintf( stderr
, " handle=%p,", req
->handle
);
3301 fprintf( stderr
, " desired_access=%08x,", req
->desired_access
);
3302 fprintf( stderr
, " mapping_read=%08x,", req
->mapping_read
);
3303 fprintf( stderr
, " mapping_write=%08x,", req
->mapping_write
);
3304 fprintf( stderr
, " mapping_execute=%08x,", req
->mapping_execute
);
3305 fprintf( stderr
, " mapping_all=%08x,", req
->mapping_all
);
3306 fprintf( stderr
, " sd=" );
3307 dump_varargs_security_descriptor( cur_size
);
3310 static void dump_access_check_reply( const struct access_check_reply
*req
)
3312 fprintf( stderr
, " access_granted=%08x,", req
->access_granted
);
3313 fprintf( stderr
, " access_status=%08x,", req
->access_status
);
3314 fprintf( stderr
, " privileges_len=%08x,", req
->privileges_len
);
3315 fprintf( stderr
, " privileges=" );
3316 dump_varargs_LUID_AND_ATTRIBUTES( cur_size
);
3319 static void dump_get_token_user_request( const struct get_token_user_request
*req
)
3321 fprintf( stderr
, " handle=%p", req
->handle
);
3324 static void dump_get_token_user_reply( const struct get_token_user_reply
*req
)
3326 fprintf( stderr
, " user_len=%u,", req
->user_len
);
3327 fprintf( stderr
, " user=" );
3328 dump_varargs_SID( cur_size
);
3331 static void dump_get_token_groups_request( const struct get_token_groups_request
*req
)
3333 fprintf( stderr
, " handle=%p", req
->handle
);
3336 static void dump_get_token_groups_reply( const struct get_token_groups_reply
*req
)
3338 fprintf( stderr
, " user_len=%u,", req
->user_len
);
3339 fprintf( stderr
, " user=" );
3340 dump_varargs_token_groups( cur_size
);
3343 static void dump_set_security_object_request( const struct set_security_object_request
*req
)
3345 fprintf( stderr
, " handle=%p,", req
->handle
);
3346 fprintf( stderr
, " security_info=%08x,", req
->security_info
);
3347 fprintf( stderr
, " sd=" );
3348 dump_varargs_security_descriptor( cur_size
);
3351 static void dump_create_mailslot_request( const struct create_mailslot_request
*req
)
3353 fprintf( stderr
, " access=%08x,", req
->access
);
3354 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
3355 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
3356 fprintf( stderr
, " max_msgsize=%08x,", req
->max_msgsize
);
3357 fprintf( stderr
, " read_timeout=" );
3358 dump_timeout( &req
->read_timeout
);
3359 fprintf( stderr
, "," );
3360 fprintf( stderr
, " name=" );
3361 dump_varargs_unicode_str( cur_size
);
3364 static void dump_create_mailslot_reply( const struct create_mailslot_reply
*req
)
3366 fprintf( stderr
, " handle=%p", req
->handle
);
3369 static void dump_set_mailslot_info_request( const struct set_mailslot_info_request
*req
)
3371 fprintf( stderr
, " handle=%p,", req
->handle
);
3372 fprintf( stderr
, " flags=%08x,", req
->flags
);
3373 fprintf( stderr
, " read_timeout=" );
3374 dump_timeout( &req
->read_timeout
);
3377 static void dump_set_mailslot_info_reply( const struct set_mailslot_info_reply
*req
)
3379 fprintf( stderr
, " max_msgsize=%08x,", req
->max_msgsize
);
3380 fprintf( stderr
, " read_timeout=" );
3381 dump_timeout( &req
->read_timeout
);
3384 static void dump_create_directory_request( const struct create_directory_request
*req
)
3386 fprintf( stderr
, " access=%08x,", req
->access
);
3387 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
3388 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
3389 fprintf( stderr
, " directory_name=" );
3390 dump_varargs_unicode_str( cur_size
);
3393 static void dump_create_directory_reply( const struct create_directory_reply
*req
)
3395 fprintf( stderr
, " handle=%p", req
->handle
);
3398 static void dump_open_directory_request( const struct open_directory_request
*req
)
3400 fprintf( stderr
, " access=%08x,", req
->access
);
3401 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
3402 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
3403 fprintf( stderr
, " directory_name=" );
3404 dump_varargs_unicode_str( cur_size
);
3407 static void dump_open_directory_reply( const struct open_directory_reply
*req
)
3409 fprintf( stderr
, " handle=%p", req
->handle
);
3412 static void dump_create_symlink_request( const struct create_symlink_request
*req
)
3414 fprintf( stderr
, " access=%08x,", req
->access
);
3415 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
3416 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
3417 fprintf( stderr
, " name_len=%u,", req
->name_len
);
3418 fprintf( stderr
, " name=" );
3419 dump_varargs_unicode_str( min(cur_size
,req
->name_len
) );
3420 fputc( ',', stderr
);
3421 fprintf( stderr
, " target_name=" );
3422 dump_varargs_unicode_str( cur_size
);
3425 static void dump_create_symlink_reply( const struct create_symlink_reply
*req
)
3427 fprintf( stderr
, " handle=%p", req
->handle
);
3430 static void dump_open_symlink_request( const struct open_symlink_request
*req
)
3432 fprintf( stderr
, " access=%08x,", req
->access
);
3433 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
3434 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
3435 fprintf( stderr
, " name=" );
3436 dump_varargs_unicode_str( cur_size
);
3439 static void dump_open_symlink_reply( const struct open_symlink_reply
*req
)
3441 fprintf( stderr
, " handle=%p", req
->handle
);
3444 static void dump_query_symlink_request( const struct query_symlink_request
*req
)
3446 fprintf( stderr
, " handle=%p", req
->handle
);
3449 static void dump_query_symlink_reply( const struct query_symlink_reply
*req
)
3451 fprintf( stderr
, " target_name=" );
3452 dump_varargs_unicode_str( cur_size
);
3455 static void dump_get_object_info_request( const struct get_object_info_request
*req
)
3457 fprintf( stderr
, " handle=%p", req
->handle
);
3460 static void dump_get_object_info_reply( const struct get_object_info_reply
*req
)
3462 fprintf( stderr
, " access=%08x,", req
->access
);
3463 fprintf( stderr
, " ref_count=%08x", req
->ref_count
);
3466 static void dump_get_token_impersonation_level_request( const struct get_token_impersonation_level_request
*req
)
3468 fprintf( stderr
, " handle=%p", req
->handle
);
3471 static void dump_get_token_impersonation_level_reply( const struct get_token_impersonation_level_reply
*req
)
3473 fprintf( stderr
, " impersonation_level=%d", req
->impersonation_level
);
3476 static void dump_allocate_locally_unique_id_request( const struct allocate_locally_unique_id_request
*req
)
3480 static void dump_allocate_locally_unique_id_reply( const struct allocate_locally_unique_id_reply
*req
)
3482 fprintf( stderr
, " luid=" );
3483 dump_luid( &req
->luid
);
3486 static void dump_create_device_manager_request( const struct create_device_manager_request
*req
)
3488 fprintf( stderr
, " access=%08x,", req
->access
);
3489 fprintf( stderr
, " attributes=%08x", req
->attributes
);
3492 static void dump_create_device_manager_reply( const struct create_device_manager_reply
*req
)
3494 fprintf( stderr
, " handle=%p", req
->handle
);
3497 static void dump_create_device_request( const struct create_device_request
*req
)
3499 fprintf( stderr
, " access=%08x,", req
->access
);
3500 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
3501 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
3502 fprintf( stderr
, " manager=%p,", req
->manager
);
3503 fprintf( stderr
, " user_ptr=%p,", req
->user_ptr
);
3504 fprintf( stderr
, " name=" );
3505 dump_varargs_unicode_str( cur_size
);
3508 static void dump_create_device_reply( const struct create_device_reply
*req
)
3510 fprintf( stderr
, " handle=%p", req
->handle
);
3513 static void dump_delete_device_request( const struct delete_device_request
*req
)
3515 fprintf( stderr
, " handle=%p", req
->handle
);
3518 static void dump_get_next_device_request_request( const struct get_next_device_request_request
*req
)
3520 fprintf( stderr
, " manager=%p,", req
->manager
);
3521 fprintf( stderr
, " prev=%p,", req
->prev
);
3522 fprintf( stderr
, " status=%08x,", req
->status
);
3523 fprintf( stderr
, " prev_data=" );
3524 dump_varargs_bytes( cur_size
);
3527 static void dump_get_next_device_request_reply( const struct get_next_device_request_reply
*req
)
3529 fprintf( stderr
, " next=%p,", req
->next
);
3530 fprintf( stderr
, " code=" );
3531 dump_ioctl_code( &req
->code
);
3532 fprintf( stderr
, "," );
3533 fprintf( stderr
, " user_ptr=%p,", req
->user_ptr
);
3534 fprintf( stderr
, " in_size=%u,", req
->in_size
);
3535 fprintf( stderr
, " out_size=%u,", req
->out_size
);
3536 fprintf( stderr
, " next_data=" );
3537 dump_varargs_bytes( cur_size
);
3540 static void dump_make_process_system_request( const struct make_process_system_request
*req
)
3544 static void dump_make_process_system_reply( const struct make_process_system_reply
*req
)
3546 fprintf( stderr
, " event=%p", req
->event
);
3549 static const dump_func req_dumpers
[REQ_NB_REQUESTS
] = {
3550 (dump_func
)dump_new_process_request
,
3551 (dump_func
)dump_get_new_process_info_request
,
3552 (dump_func
)dump_new_thread_request
,
3553 (dump_func
)dump_get_startup_info_request
,
3554 (dump_func
)dump_init_process_done_request
,
3555 (dump_func
)dump_init_thread_request
,
3556 (dump_func
)dump_terminate_process_request
,
3557 (dump_func
)dump_terminate_thread_request
,
3558 (dump_func
)dump_get_process_info_request
,
3559 (dump_func
)dump_set_process_info_request
,
3560 (dump_func
)dump_get_thread_info_request
,
3561 (dump_func
)dump_set_thread_info_request
,
3562 (dump_func
)dump_get_dll_info_request
,
3563 (dump_func
)dump_suspend_thread_request
,
3564 (dump_func
)dump_resume_thread_request
,
3565 (dump_func
)dump_load_dll_request
,
3566 (dump_func
)dump_unload_dll_request
,
3567 (dump_func
)dump_queue_apc_request
,
3568 (dump_func
)dump_get_apc_result_request
,
3569 (dump_func
)dump_close_handle_request
,
3570 (dump_func
)dump_set_handle_info_request
,
3571 (dump_func
)dump_dup_handle_request
,
3572 (dump_func
)dump_open_process_request
,
3573 (dump_func
)dump_open_thread_request
,
3574 (dump_func
)dump_select_request
,
3575 (dump_func
)dump_create_event_request
,
3576 (dump_func
)dump_event_op_request
,
3577 (dump_func
)dump_open_event_request
,
3578 (dump_func
)dump_create_mutex_request
,
3579 (dump_func
)dump_release_mutex_request
,
3580 (dump_func
)dump_open_mutex_request
,
3581 (dump_func
)dump_create_semaphore_request
,
3582 (dump_func
)dump_release_semaphore_request
,
3583 (dump_func
)dump_open_semaphore_request
,
3584 (dump_func
)dump_create_file_request
,
3585 (dump_func
)dump_open_file_object_request
,
3586 (dump_func
)dump_alloc_file_handle_request
,
3587 (dump_func
)dump_get_handle_fd_request
,
3588 (dump_func
)dump_flush_file_request
,
3589 (dump_func
)dump_lock_file_request
,
3590 (dump_func
)dump_unlock_file_request
,
3591 (dump_func
)dump_create_socket_request
,
3592 (dump_func
)dump_accept_socket_request
,
3593 (dump_func
)dump_set_socket_event_request
,
3594 (dump_func
)dump_get_socket_event_request
,
3595 (dump_func
)dump_enable_socket_event_request
,
3596 (dump_func
)dump_set_socket_deferred_request
,
3597 (dump_func
)dump_alloc_console_request
,
3598 (dump_func
)dump_free_console_request
,
3599 (dump_func
)dump_get_console_renderer_events_request
,
3600 (dump_func
)dump_open_console_request
,
3601 (dump_func
)dump_get_console_wait_event_request
,
3602 (dump_func
)dump_get_console_mode_request
,
3603 (dump_func
)dump_set_console_mode_request
,
3604 (dump_func
)dump_set_console_input_info_request
,
3605 (dump_func
)dump_get_console_input_info_request
,
3606 (dump_func
)dump_append_console_input_history_request
,
3607 (dump_func
)dump_get_console_input_history_request
,
3608 (dump_func
)dump_create_console_output_request
,
3609 (dump_func
)dump_set_console_output_info_request
,
3610 (dump_func
)dump_get_console_output_info_request
,
3611 (dump_func
)dump_write_console_input_request
,
3612 (dump_func
)dump_read_console_input_request
,
3613 (dump_func
)dump_write_console_output_request
,
3614 (dump_func
)dump_fill_console_output_request
,
3615 (dump_func
)dump_read_console_output_request
,
3616 (dump_func
)dump_move_console_output_request
,
3617 (dump_func
)dump_send_console_signal_request
,
3618 (dump_func
)dump_read_directory_changes_request
,
3619 (dump_func
)dump_read_change_request
,
3620 (dump_func
)dump_create_mapping_request
,
3621 (dump_func
)dump_open_mapping_request
,
3622 (dump_func
)dump_get_mapping_info_request
,
3623 (dump_func
)dump_create_snapshot_request
,
3624 (dump_func
)dump_next_process_request
,
3625 (dump_func
)dump_next_thread_request
,
3626 (dump_func
)dump_next_module_request
,
3627 (dump_func
)dump_wait_debug_event_request
,
3628 (dump_func
)dump_queue_exception_event_request
,
3629 (dump_func
)dump_get_exception_status_request
,
3630 (dump_func
)dump_output_debug_string_request
,
3631 (dump_func
)dump_continue_debug_event_request
,
3632 (dump_func
)dump_debug_process_request
,
3633 (dump_func
)dump_debug_break_request
,
3634 (dump_func
)dump_set_debugger_kill_on_exit_request
,
3635 (dump_func
)dump_read_process_memory_request
,
3636 (dump_func
)dump_write_process_memory_request
,
3637 (dump_func
)dump_create_key_request
,
3638 (dump_func
)dump_open_key_request
,
3639 (dump_func
)dump_delete_key_request
,
3640 (dump_func
)dump_flush_key_request
,
3641 (dump_func
)dump_enum_key_request
,
3642 (dump_func
)dump_set_key_value_request
,
3643 (dump_func
)dump_get_key_value_request
,
3644 (dump_func
)dump_enum_key_value_request
,
3645 (dump_func
)dump_delete_key_value_request
,
3646 (dump_func
)dump_load_registry_request
,
3647 (dump_func
)dump_unload_registry_request
,
3648 (dump_func
)dump_save_registry_request
,
3649 (dump_func
)dump_set_registry_notification_request
,
3650 (dump_func
)dump_create_timer_request
,
3651 (dump_func
)dump_open_timer_request
,
3652 (dump_func
)dump_set_timer_request
,
3653 (dump_func
)dump_cancel_timer_request
,
3654 (dump_func
)dump_get_timer_info_request
,
3655 (dump_func
)dump_get_thread_context_request
,
3656 (dump_func
)dump_set_thread_context_request
,
3657 (dump_func
)dump_get_selector_entry_request
,
3658 (dump_func
)dump_add_atom_request
,
3659 (dump_func
)dump_delete_atom_request
,
3660 (dump_func
)dump_find_atom_request
,
3661 (dump_func
)dump_get_atom_information_request
,
3662 (dump_func
)dump_set_atom_information_request
,
3663 (dump_func
)dump_empty_atom_table_request
,
3664 (dump_func
)dump_init_atom_table_request
,
3665 (dump_func
)dump_get_msg_queue_request
,
3666 (dump_func
)dump_set_queue_fd_request
,
3667 (dump_func
)dump_set_queue_mask_request
,
3668 (dump_func
)dump_get_queue_status_request
,
3669 (dump_func
)dump_get_process_idle_event_request
,
3670 (dump_func
)dump_send_message_request
,
3671 (dump_func
)dump_post_quit_message_request
,
3672 (dump_func
)dump_send_hardware_message_request
,
3673 (dump_func
)dump_get_message_request
,
3674 (dump_func
)dump_reply_message_request
,
3675 (dump_func
)dump_accept_hardware_message_request
,
3676 (dump_func
)dump_get_message_reply_request
,
3677 (dump_func
)dump_set_win_timer_request
,
3678 (dump_func
)dump_kill_win_timer_request
,
3679 (dump_func
)dump_get_serial_info_request
,
3680 (dump_func
)dump_set_serial_info_request
,
3681 (dump_func
)dump_register_async_request
,
3682 (dump_func
)dump_cancel_async_request
,
3683 (dump_func
)dump_ioctl_request
,
3684 (dump_func
)dump_get_ioctl_result_request
,
3685 (dump_func
)dump_create_named_pipe_request
,
3686 (dump_func
)dump_get_named_pipe_info_request
,
3687 (dump_func
)dump_create_window_request
,
3688 (dump_func
)dump_destroy_window_request
,
3689 (dump_func
)dump_get_desktop_window_request
,
3690 (dump_func
)dump_set_window_owner_request
,
3691 (dump_func
)dump_get_window_info_request
,
3692 (dump_func
)dump_set_window_info_request
,
3693 (dump_func
)dump_set_parent_request
,
3694 (dump_func
)dump_get_window_parents_request
,
3695 (dump_func
)dump_get_window_children_request
,
3696 (dump_func
)dump_get_window_children_from_point_request
,
3697 (dump_func
)dump_get_window_tree_request
,
3698 (dump_func
)dump_set_window_pos_request
,
3699 (dump_func
)dump_get_window_rectangles_request
,
3700 (dump_func
)dump_get_window_text_request
,
3701 (dump_func
)dump_set_window_text_request
,
3702 (dump_func
)dump_get_windows_offset_request
,
3703 (dump_func
)dump_get_visible_region_request
,
3704 (dump_func
)dump_get_window_region_request
,
3705 (dump_func
)dump_set_window_region_request
,
3706 (dump_func
)dump_get_update_region_request
,
3707 (dump_func
)dump_update_window_zorder_request
,
3708 (dump_func
)dump_redraw_window_request
,
3709 (dump_func
)dump_set_window_property_request
,
3710 (dump_func
)dump_remove_window_property_request
,
3711 (dump_func
)dump_get_window_property_request
,
3712 (dump_func
)dump_get_window_properties_request
,
3713 (dump_func
)dump_create_winstation_request
,
3714 (dump_func
)dump_open_winstation_request
,
3715 (dump_func
)dump_close_winstation_request
,
3716 (dump_func
)dump_get_process_winstation_request
,
3717 (dump_func
)dump_set_process_winstation_request
,
3718 (dump_func
)dump_create_desktop_request
,
3719 (dump_func
)dump_open_desktop_request
,
3720 (dump_func
)dump_close_desktop_request
,
3721 (dump_func
)dump_get_thread_desktop_request
,
3722 (dump_func
)dump_set_thread_desktop_request
,
3723 (dump_func
)dump_set_user_object_info_request
,
3724 (dump_func
)dump_attach_thread_input_request
,
3725 (dump_func
)dump_get_thread_input_request
,
3726 (dump_func
)dump_get_last_input_time_request
,
3727 (dump_func
)dump_get_key_state_request
,
3728 (dump_func
)dump_set_key_state_request
,
3729 (dump_func
)dump_set_foreground_window_request
,
3730 (dump_func
)dump_set_focus_window_request
,
3731 (dump_func
)dump_set_active_window_request
,
3732 (dump_func
)dump_set_capture_window_request
,
3733 (dump_func
)dump_set_caret_window_request
,
3734 (dump_func
)dump_set_caret_info_request
,
3735 (dump_func
)dump_set_hook_request
,
3736 (dump_func
)dump_remove_hook_request
,
3737 (dump_func
)dump_start_hook_chain_request
,
3738 (dump_func
)dump_finish_hook_chain_request
,
3739 (dump_func
)dump_get_hook_info_request
,
3740 (dump_func
)dump_create_class_request
,
3741 (dump_func
)dump_destroy_class_request
,
3742 (dump_func
)dump_set_class_info_request
,
3743 (dump_func
)dump_set_clipboard_info_request
,
3744 (dump_func
)dump_open_token_request
,
3745 (dump_func
)dump_set_global_windows_request
,
3746 (dump_func
)dump_adjust_token_privileges_request
,
3747 (dump_func
)dump_get_token_privileges_request
,
3748 (dump_func
)dump_check_token_privileges_request
,
3749 (dump_func
)dump_duplicate_token_request
,
3750 (dump_func
)dump_access_check_request
,
3751 (dump_func
)dump_get_token_user_request
,
3752 (dump_func
)dump_get_token_groups_request
,
3753 (dump_func
)dump_set_security_object_request
,
3754 (dump_func
)dump_create_mailslot_request
,
3755 (dump_func
)dump_set_mailslot_info_request
,
3756 (dump_func
)dump_create_directory_request
,
3757 (dump_func
)dump_open_directory_request
,
3758 (dump_func
)dump_create_symlink_request
,
3759 (dump_func
)dump_open_symlink_request
,
3760 (dump_func
)dump_query_symlink_request
,
3761 (dump_func
)dump_get_object_info_request
,
3762 (dump_func
)dump_get_token_impersonation_level_request
,
3763 (dump_func
)dump_allocate_locally_unique_id_request
,
3764 (dump_func
)dump_create_device_manager_request
,
3765 (dump_func
)dump_create_device_request
,
3766 (dump_func
)dump_delete_device_request
,
3767 (dump_func
)dump_get_next_device_request_request
,
3768 (dump_func
)dump_make_process_system_request
,
3771 static const dump_func reply_dumpers
[REQ_NB_REQUESTS
] = {
3772 (dump_func
)dump_new_process_reply
,
3773 (dump_func
)dump_get_new_process_info_reply
,
3774 (dump_func
)dump_new_thread_reply
,
3775 (dump_func
)dump_get_startup_info_reply
,
3777 (dump_func
)dump_init_thread_reply
,
3778 (dump_func
)dump_terminate_process_reply
,
3779 (dump_func
)dump_terminate_thread_reply
,
3780 (dump_func
)dump_get_process_info_reply
,
3782 (dump_func
)dump_get_thread_info_reply
,
3784 (dump_func
)dump_get_dll_info_reply
,
3785 (dump_func
)dump_suspend_thread_reply
,
3786 (dump_func
)dump_resume_thread_reply
,
3789 (dump_func
)dump_queue_apc_reply
,
3790 (dump_func
)dump_get_apc_result_reply
,
3792 (dump_func
)dump_set_handle_info_reply
,
3793 (dump_func
)dump_dup_handle_reply
,
3794 (dump_func
)dump_open_process_reply
,
3795 (dump_func
)dump_open_thread_reply
,
3796 (dump_func
)dump_select_reply
,
3797 (dump_func
)dump_create_event_reply
,
3799 (dump_func
)dump_open_event_reply
,
3800 (dump_func
)dump_create_mutex_reply
,
3801 (dump_func
)dump_release_mutex_reply
,
3802 (dump_func
)dump_open_mutex_reply
,
3803 (dump_func
)dump_create_semaphore_reply
,
3804 (dump_func
)dump_release_semaphore_reply
,
3805 (dump_func
)dump_open_semaphore_reply
,
3806 (dump_func
)dump_create_file_reply
,
3807 (dump_func
)dump_open_file_object_reply
,
3808 (dump_func
)dump_alloc_file_handle_reply
,
3809 (dump_func
)dump_get_handle_fd_reply
,
3810 (dump_func
)dump_flush_file_reply
,
3811 (dump_func
)dump_lock_file_reply
,
3813 (dump_func
)dump_create_socket_reply
,
3814 (dump_func
)dump_accept_socket_reply
,
3816 (dump_func
)dump_get_socket_event_reply
,
3819 (dump_func
)dump_alloc_console_reply
,
3821 (dump_func
)dump_get_console_renderer_events_reply
,
3822 (dump_func
)dump_open_console_reply
,
3823 (dump_func
)dump_get_console_wait_event_reply
,
3824 (dump_func
)dump_get_console_mode_reply
,
3827 (dump_func
)dump_get_console_input_info_reply
,
3829 (dump_func
)dump_get_console_input_history_reply
,
3830 (dump_func
)dump_create_console_output_reply
,
3832 (dump_func
)dump_get_console_output_info_reply
,
3833 (dump_func
)dump_write_console_input_reply
,
3834 (dump_func
)dump_read_console_input_reply
,
3835 (dump_func
)dump_write_console_output_reply
,
3836 (dump_func
)dump_fill_console_output_reply
,
3837 (dump_func
)dump_read_console_output_reply
,
3841 (dump_func
)dump_read_change_reply
,
3842 (dump_func
)dump_create_mapping_reply
,
3843 (dump_func
)dump_open_mapping_reply
,
3844 (dump_func
)dump_get_mapping_info_reply
,
3845 (dump_func
)dump_create_snapshot_reply
,
3846 (dump_func
)dump_next_process_reply
,
3847 (dump_func
)dump_next_thread_reply
,
3848 (dump_func
)dump_next_module_reply
,
3849 (dump_func
)dump_wait_debug_event_reply
,
3850 (dump_func
)dump_queue_exception_event_reply
,
3851 (dump_func
)dump_get_exception_status_reply
,
3855 (dump_func
)dump_debug_break_reply
,
3857 (dump_func
)dump_read_process_memory_reply
,
3859 (dump_func
)dump_create_key_reply
,
3860 (dump_func
)dump_open_key_reply
,
3863 (dump_func
)dump_enum_key_reply
,
3865 (dump_func
)dump_get_key_value_reply
,
3866 (dump_func
)dump_enum_key_value_reply
,
3872 (dump_func
)dump_create_timer_reply
,
3873 (dump_func
)dump_open_timer_reply
,
3874 (dump_func
)dump_set_timer_reply
,
3875 (dump_func
)dump_cancel_timer_reply
,
3876 (dump_func
)dump_get_timer_info_reply
,
3877 (dump_func
)dump_get_thread_context_reply
,
3878 (dump_func
)dump_set_thread_context_reply
,
3879 (dump_func
)dump_get_selector_entry_reply
,
3880 (dump_func
)dump_add_atom_reply
,
3882 (dump_func
)dump_find_atom_reply
,
3883 (dump_func
)dump_get_atom_information_reply
,
3886 (dump_func
)dump_init_atom_table_reply
,
3887 (dump_func
)dump_get_msg_queue_reply
,
3889 (dump_func
)dump_set_queue_mask_reply
,
3890 (dump_func
)dump_get_queue_status_reply
,
3891 (dump_func
)dump_get_process_idle_event_reply
,
3895 (dump_func
)dump_get_message_reply
,
3898 (dump_func
)dump_get_message_reply_reply
,
3899 (dump_func
)dump_set_win_timer_reply
,
3901 (dump_func
)dump_get_serial_info_reply
,
3905 (dump_func
)dump_ioctl_reply
,
3906 (dump_func
)dump_get_ioctl_result_reply
,
3907 (dump_func
)dump_create_named_pipe_reply
,
3908 (dump_func
)dump_get_named_pipe_info_reply
,
3909 (dump_func
)dump_create_window_reply
,
3911 (dump_func
)dump_get_desktop_window_reply
,
3912 (dump_func
)dump_set_window_owner_reply
,
3913 (dump_func
)dump_get_window_info_reply
,
3914 (dump_func
)dump_set_window_info_reply
,
3915 (dump_func
)dump_set_parent_reply
,
3916 (dump_func
)dump_get_window_parents_reply
,
3917 (dump_func
)dump_get_window_children_reply
,
3918 (dump_func
)dump_get_window_children_from_point_reply
,
3919 (dump_func
)dump_get_window_tree_reply
,
3920 (dump_func
)dump_set_window_pos_reply
,
3921 (dump_func
)dump_get_window_rectangles_reply
,
3922 (dump_func
)dump_get_window_text_reply
,
3924 (dump_func
)dump_get_windows_offset_reply
,
3925 (dump_func
)dump_get_visible_region_reply
,
3926 (dump_func
)dump_get_window_region_reply
,
3928 (dump_func
)dump_get_update_region_reply
,
3932 (dump_func
)dump_remove_window_property_reply
,
3933 (dump_func
)dump_get_window_property_reply
,
3934 (dump_func
)dump_get_window_properties_reply
,
3935 (dump_func
)dump_create_winstation_reply
,
3936 (dump_func
)dump_open_winstation_reply
,
3938 (dump_func
)dump_get_process_winstation_reply
,
3940 (dump_func
)dump_create_desktop_reply
,
3941 (dump_func
)dump_open_desktop_reply
,
3943 (dump_func
)dump_get_thread_desktop_reply
,
3945 (dump_func
)dump_set_user_object_info_reply
,
3947 (dump_func
)dump_get_thread_input_reply
,
3948 (dump_func
)dump_get_last_input_time_reply
,
3949 (dump_func
)dump_get_key_state_reply
,
3951 (dump_func
)dump_set_foreground_window_reply
,
3952 (dump_func
)dump_set_focus_window_reply
,
3953 (dump_func
)dump_set_active_window_reply
,
3954 (dump_func
)dump_set_capture_window_reply
,
3955 (dump_func
)dump_set_caret_window_reply
,
3956 (dump_func
)dump_set_caret_info_reply
,
3957 (dump_func
)dump_set_hook_reply
,
3958 (dump_func
)dump_remove_hook_reply
,
3959 (dump_func
)dump_start_hook_chain_reply
,
3961 (dump_func
)dump_get_hook_info_reply
,
3963 (dump_func
)dump_destroy_class_reply
,
3964 (dump_func
)dump_set_class_info_reply
,
3965 (dump_func
)dump_set_clipboard_info_reply
,
3966 (dump_func
)dump_open_token_reply
,
3967 (dump_func
)dump_set_global_windows_reply
,
3968 (dump_func
)dump_adjust_token_privileges_reply
,
3969 (dump_func
)dump_get_token_privileges_reply
,
3970 (dump_func
)dump_check_token_privileges_reply
,
3971 (dump_func
)dump_duplicate_token_reply
,
3972 (dump_func
)dump_access_check_reply
,
3973 (dump_func
)dump_get_token_user_reply
,
3974 (dump_func
)dump_get_token_groups_reply
,
3976 (dump_func
)dump_create_mailslot_reply
,
3977 (dump_func
)dump_set_mailslot_info_reply
,
3978 (dump_func
)dump_create_directory_reply
,
3979 (dump_func
)dump_open_directory_reply
,
3980 (dump_func
)dump_create_symlink_reply
,
3981 (dump_func
)dump_open_symlink_reply
,
3982 (dump_func
)dump_query_symlink_reply
,
3983 (dump_func
)dump_get_object_info_reply
,
3984 (dump_func
)dump_get_token_impersonation_level_reply
,
3985 (dump_func
)dump_allocate_locally_unique_id_reply
,
3986 (dump_func
)dump_create_device_manager_reply
,
3987 (dump_func
)dump_create_device_reply
,
3989 (dump_func
)dump_get_next_device_request_reply
,
3990 (dump_func
)dump_make_process_system_reply
,
3993 static const char * const req_names
[REQ_NB_REQUESTS
] = {
3995 "get_new_process_info",
3998 "init_process_done",
4000 "terminate_process",
4026 "release_semaphore",
4030 "alloc_file_handle",
4039 "enable_socket_event",
4040 "set_socket_deferred",
4043 "get_console_renderer_events",
4045 "get_console_wait_event",
4048 "set_console_input_info",
4049 "get_console_input_info",
4050 "append_console_input_history",
4051 "get_console_input_history",
4052 "create_console_output",
4053 "set_console_output_info",
4054 "get_console_output_info",
4055 "write_console_input",
4056 "read_console_input",
4057 "write_console_output",
4058 "fill_console_output",
4059 "read_console_output",
4060 "move_console_output",
4061 "send_console_signal",
4062 "read_directory_changes",
4072 "queue_exception_event",
4073 "get_exception_status",
4074 "output_debug_string",
4075 "continue_debug_event",
4078 "set_debugger_kill_on_exit",
4079 "read_process_memory",
4080 "write_process_memory",
4093 "set_registry_notification",
4099 "get_thread_context",
4100 "set_thread_context",
4101 "get_selector_entry",
4105 "get_atom_information",
4106 "set_atom_information",
4113 "get_process_idle_event",
4115 "post_quit_message",
4116 "send_hardware_message",
4119 "accept_hardware_message",
4120 "get_message_reply",
4129 "create_named_pipe",
4130 "get_named_pipe_info",
4133 "get_desktop_window",
4138 "get_window_parents",
4139 "get_window_children",
4140 "get_window_children_from_point",
4143 "get_window_rectangles",
4146 "get_windows_offset",
4147 "get_visible_region",
4148 "get_window_region",
4149 "set_window_region",
4150 "get_update_region",
4151 "update_window_zorder",
4153 "set_window_property",
4154 "remove_window_property",
4155 "get_window_property",
4156 "get_window_properties",
4157 "create_winstation",
4160 "get_process_winstation",
4161 "set_process_winstation",
4165 "get_thread_desktop",
4166 "set_thread_desktop",
4167 "set_user_object_info",
4168 "attach_thread_input",
4170 "get_last_input_time",
4173 "set_foreground_window",
4175 "set_active_window",
4176 "set_capture_window",
4182 "finish_hook_chain",
4187 "set_clipboard_info",
4189 "set_global_windows",
4190 "adjust_token_privileges",
4191 "get_token_privileges",
4192 "check_token_privileges",
4197 "set_security_object",
4199 "set_mailslot_info",
4206 "get_token_impersonation_level",
4207 "allocate_locally_unique_id",
4208 "create_device_manager",
4211 "get_next_device_request",
4212 "make_process_system",
4221 { "ABANDONED_WAIT_0", STATUS_ABANDONED_WAIT_0
},
4222 { "ACCESS_DENIED", STATUS_ACCESS_DENIED
},
4223 { "ACCESS_VIOLATION", STATUS_ACCESS_VIOLATION
},
4224 { "ALERTED", STATUS_ALERTED
},
4225 { "ALIAS_EXISTS", STATUS_ALIAS_EXISTS
},
4226 { "BAD_DEVICE_TYPE", STATUS_BAD_DEVICE_TYPE
},
4227 { "BAD_IMPERSONATION_LEVEL", STATUS_BAD_IMPERSONATION_LEVEL
},
4228 { "BREAKPOINT", STATUS_BREAKPOINT
},
4229 { "BUFFER_OVERFLOW", STATUS_BUFFER_OVERFLOW
},
4230 { "BUFFER_TOO_SMALL", STATUS_BUFFER_TOO_SMALL
},
4231 { "CANCELLED", STATUS_CANCELLED
},
4232 { "CANT_OPEN_ANONYMOUS", STATUS_CANT_OPEN_ANONYMOUS
},
4233 { "CHILD_MUST_BE_VOLATILE", STATUS_CHILD_MUST_BE_VOLATILE
},
4234 { "DEVICE_BUSY", STATUS_DEVICE_BUSY
},
4235 { "DIRECTORY_NOT_EMPTY", STATUS_DIRECTORY_NOT_EMPTY
},
4236 { "DISK_FULL", STATUS_DISK_FULL
},
4237 { "DLL_NOT_FOUND", STATUS_DLL_NOT_FOUND
},
4238 { "ERROR_CLASS_ALREADY_EXISTS", 0xc0010000 | ERROR_CLASS_ALREADY_EXISTS
},
4239 { "ERROR_CLASS_DOES_NOT_EXIST", 0xc0010000 | ERROR_CLASS_DOES_NOT_EXIST
},
4240 { "ERROR_CLASS_HAS_WINDOWS", 0xc0010000 | ERROR_CLASS_HAS_WINDOWS
},
4241 { "ERROR_CLIPBOARD_NOT_OPEN", 0xc0010000 | ERROR_CLIPBOARD_NOT_OPEN
},
4242 { "ERROR_INVALID_INDEX", 0xc0010000 | ERROR_INVALID_INDEX
},
4243 { "ERROR_INVALID_WINDOW_HANDLE", 0xc0010000 | ERROR_INVALID_WINDOW_HANDLE
},
4244 { "FILE_DELETED", STATUS_FILE_DELETED
},
4245 { "FILE_IS_A_DIRECTORY", STATUS_FILE_IS_A_DIRECTORY
},
4246 { "FILE_LOCK_CONFLICT", STATUS_FILE_LOCK_CONFLICT
},
4247 { "GENERIC_NOT_MAPPED", STATUS_GENERIC_NOT_MAPPED
},
4248 { "HANDLES_CLOSED", STATUS_HANDLES_CLOSED
},
4249 { "HANDLE_NOT_CLOSABLE", STATUS_HANDLE_NOT_CLOSABLE
},
4250 { "ILLEGAL_FUNCTION", STATUS_ILLEGAL_FUNCTION
},
4251 { "INSTANCE_NOT_AVAILABLE", STATUS_INSTANCE_NOT_AVAILABLE
},
4252 { "INVALID_CID", STATUS_INVALID_CID
},
4253 { "INVALID_DEVICE_REQUEST", STATUS_INVALID_DEVICE_REQUEST
},
4254 { "INVALID_FILE_FOR_SECTION", STATUS_INVALID_FILE_FOR_SECTION
},
4255 { "INVALID_HANDLE", STATUS_INVALID_HANDLE
},
4256 { "INVALID_PARAMETER", STATUS_INVALID_PARAMETER
},
4257 { "INVALID_SECURITY_DESCR", STATUS_INVALID_SECURITY_DESCR
},
4258 { "IO_TIMEOUT", STATUS_IO_TIMEOUT
},
4259 { "KEY_DELETED", STATUS_KEY_DELETED
},
4260 { "MAPPED_FILE_SIZE_ZERO", STATUS_MAPPED_FILE_SIZE_ZERO
},
4261 { "MEDIA_WRITE_PROTECTED", STATUS_MEDIA_WRITE_PROTECTED
},
4262 { "MUTANT_NOT_OWNED", STATUS_MUTANT_NOT_OWNED
},
4263 { "NAME_TOO_LONG", STATUS_NAME_TOO_LONG
},
4264 { "NOTIFY_ENUM_DIR", STATUS_NOTIFY_ENUM_DIR
},
4265 { "NOT_ALL_ASSIGNED", STATUS_NOT_ALL_ASSIGNED
},
4266 { "NOT_A_DIRECTORY", STATUS_NOT_A_DIRECTORY
},
4267 { "NOT_IMPLEMENTED", STATUS_NOT_IMPLEMENTED
},
4268 { "NOT_REGISTRY_FILE", STATUS_NOT_REGISTRY_FILE
},
4269 { "NOT_SUPPORTED", STATUS_NOT_SUPPORTED
},
4270 { "NO_DATA_DETECTED", STATUS_NO_DATA_DETECTED
},
4271 { "NO_IMPERSONATION_TOKEN", STATUS_NO_IMPERSONATION_TOKEN
},
4272 { "NO_MEMORY", STATUS_NO_MEMORY
},
4273 { "NO_MORE_ENTRIES", STATUS_NO_MORE_ENTRIES
},
4274 { "NO_MORE_FILES", STATUS_NO_MORE_FILES
},
4275 { "NO_SUCH_DEVICE", STATUS_NO_SUCH_DEVICE
},
4276 { "NO_SUCH_FILE", STATUS_NO_SUCH_FILE
},
4277 { "NO_TOKEN", STATUS_NO_TOKEN
},
4278 { "OBJECT_NAME_COLLISION", STATUS_OBJECT_NAME_COLLISION
},
4279 { "OBJECT_NAME_EXISTS", STATUS_OBJECT_NAME_EXISTS
},
4280 { "OBJECT_NAME_INVALID", STATUS_OBJECT_NAME_INVALID
},
4281 { "OBJECT_NAME_NOT_FOUND", STATUS_OBJECT_NAME_NOT_FOUND
},
4282 { "OBJECT_PATH_INVALID", STATUS_OBJECT_PATH_INVALID
},
4283 { "OBJECT_PATH_NOT_FOUND", STATUS_OBJECT_PATH_NOT_FOUND
},
4284 { "OBJECT_PATH_SYNTAX_BAD", STATUS_OBJECT_PATH_SYNTAX_BAD
},
4285 { "OBJECT_TYPE_MISMATCH", STATUS_OBJECT_TYPE_MISMATCH
},
4286 { "PENDING", STATUS_PENDING
},
4287 { "PIPE_BUSY", STATUS_PIPE_BUSY
},
4288 { "PIPE_CONNECTED", STATUS_PIPE_CONNECTED
},
4289 { "PIPE_DISCONNECTED", STATUS_PIPE_DISCONNECTED
},
4290 { "PIPE_LISTENING", STATUS_PIPE_LISTENING
},
4291 { "PIPE_NOT_AVAILABLE", STATUS_PIPE_NOT_AVAILABLE
},
4292 { "PRIVILEGE_NOT_HELD", STATUS_PRIVILEGE_NOT_HELD
},
4293 { "PROCESS_IS_TERMINATING", STATUS_PROCESS_IS_TERMINATING
},
4294 { "SECTION_TOO_BIG", STATUS_SECTION_TOO_BIG
},
4295 { "SEMAPHORE_LIMIT_EXCEEDED", STATUS_SEMAPHORE_LIMIT_EXCEEDED
},
4296 { "SHARING_VIOLATION", STATUS_SHARING_VIOLATION
},
4297 { "SUSPEND_COUNT_EXCEEDED", STATUS_SUSPEND_COUNT_EXCEEDED
},
4298 { "THREAD_IS_TERMINATING", STATUS_THREAD_IS_TERMINATING
},
4299 { "TIMEOUT", STATUS_TIMEOUT
},
4300 { "TOO_MANY_OPENED_FILES", STATUS_TOO_MANY_OPENED_FILES
},
4301 { "UNSUCCESSFUL", STATUS_UNSUCCESSFUL
},
4302 { "USER_APC", STATUS_USER_APC
},
4303 { "VOLUME_DISMOUNTED", STATUS_VOLUME_DISMOUNTED
},
4304 { "WAS_LOCKED", STATUS_WAS_LOCKED
},
4308 /* ### make_requests end ### */
4309 /* Everything above this line is generated automatically by tools/make_requests */
4311 static const char *get_status_name( unsigned int status
)
4314 static char buffer
[10];
4318 for (i
= 0; status_names
[i
].name
; i
++)
4319 if (status_names
[i
].value
== status
) return status_names
[i
].name
;
4321 sprintf( buffer
, "%x", status
);
4325 void trace_request(void)
4327 enum request req
= current
->req
.request_header
.req
;
4328 if (req
< REQ_NB_REQUESTS
)
4330 fprintf( stderr
, "%04x: %s(", current
->id
, req_names
[req
] );
4331 if (req_dumpers
[req
])
4333 cur_data
= get_req_data();
4334 cur_size
= get_req_data_size();
4335 req_dumpers
[req
]( ¤t
->req
);
4337 fprintf( stderr
, " )\n" );
4339 else fprintf( stderr
, "%04x: %d(?)\n", current
->id
, req
);
4342 void trace_reply( enum request req
, const union generic_reply
*reply
)
4344 if (req
< REQ_NB_REQUESTS
)
4346 fprintf( stderr
, "%04x: %s() = %s",
4347 current
->id
, req_names
[req
], get_status_name(current
->error
) );
4348 if (reply_dumpers
[req
])
4350 fprintf( stderr
, " {" );
4351 cur_data
= current
->reply_data
;
4352 cur_size
= reply
->reply_header
.reply_size
;
4353 reply_dumpers
[req
]( reply
);
4354 fprintf( stderr
, " }" );
4356 fputc( '\n', stderr
);
4358 else fprintf( stderr
, "%04x: %d() = %s\n",
4359 current
->id
, req
, get_status_name(current
->error
) );